diff --git a/build/catalyst.esm.js b/build/catalyst.esm.js index 8491c113..ca6b5d03 100644 --- a/build/catalyst.esm.js +++ b/build/catalyst.esm.js @@ -1,2 +1,2 @@ -import{p as e,b as a}from"./p-6cd4fa1e.js";export{s as setNonce}from"./p-6cd4fa1e.js";const t=()=>{const a=import.meta.url;const t={};if(a!==""){t.resourcesUrl=new URL(".",a).href}return e(t)};t().then((e=>a([["p-7a8cae77",[[0,"cat-select-demo"],[1,"cat-datepicker",{requiredMarker:[1,"required-marker"],horizontal:[4],autoComplete:[1,"auto-complete"],clearable:[4],disabled:[4],hint:[1],icon:[1],iconRight:[4,"icon-right"],identifier:[1],label:[1],labelHidden:[4,"label-hidden"],max:[1],min:[1],mode:[1],name:[1],placeholder:[1],textPrefix:[1,"text-prefix"],textSuffix:[1,"text-suffix"],readonly:[4],required:[4],step:[2],value:[1025],errors:[4],errorUpdate:[8,"error-update"],nativeAttributes:[16],nativePickerAttributes:[16],hasSlottedLabel:[32],hasSlottedHint:[32],doFocus:[64],doBlur:[64]},null,{value:["onValueChanged"],disabled:["onDisabledChanged"],readonly:["onDisabledChanged"],min:["onMinChanged"],max:["onMinChanged"]}],[1,"cat-pagination",{page:[1026],pageCount:[2,"page-count"],activePadding:[2,"active-padding"],sidePadding:[2,"side-padding"],size:[1],variant:[1],round:[4],compact:[4],iconPrev:[1,"icon-prev"],iconNext:[1,"icon-next"]}],[1,"cat-tabs",{activeTab:[1537,"active-tab"],tabsAlign:[1,"tabs-align"],tabs:[32],setActive:[64],setActiveIndex:[64]},[[0,"keydown","onKeydown"]],{activeTab:["onActiveTabChange"]}],[1,"cat-alert",{color:[513],icon:[1],noIcon:[4,"no-icon"]}],[1,"cat-textarea",{requiredMarker:[1,"required-marker"],horizontal:[4],disabled:[4],hint:[1],identifier:[1],label:[1],labelHidden:[4,"label-hidden"],maxLength:[2,"max-length"],minLength:[2,"min-length"],name:[1],placeholder:[1],readonly:[4],required:[4],rows:[2],value:[1025],errors:[4],errorUpdate:[8,"error-update"],nativeAttributes:[16],hasSlottedLabel:[32],hasSlottedHint:[32],errorMap:[32],doFocus:[64],doBlur:[64],clear:[64]},null,{errors:["onErrorsChanged"]}],[1,"cat-badge",{variant:[513],color:[513],size:[513],round:[516],pulse:[516]}],[1,"cat-button-group",{a11yLabel:[1,"a11y-label"]}],[1,"cat-card"],[1,"cat-datepicker-inline",{disabled:[4],max:[1],min:[1],mode:[1],readonly:[4],step:[2],value:[1025],nativePickerAttributes:[16]},null,{value:["onValueChanged"],disabled:["onDisabledChanged"],readonly:["onDisabledChanged"]}],[1,"cat-form-group",{requiredMarker:[1,"required-marker"],horizontal:[4],labelSize:[1,"label-size"]},null,{requiredMarker:["onRequiredMarkerChanged"],horizontal:["onHorizontalChanged"]}],[1,"cat-radio",{checked:[1028],disabled:[4],identifier:[1],label:[1],labelHidden:[4,"label-hidden"],name:[1],required:[4],value:[1],hint:[1],labelLeft:[4,"label-left"],nativeAttributes:[16],hasSlottedLabel:[32],hasSlottedHint:[32],doFocus:[64],doBlur:[64]}],[1,"cat-radio-group",{name:[1],value:[1025],disabled:[4],a11yLabel:[1,"a11y-label"],labelLeft:[4,"label-left"]},[[0,"keydown","onKeydown"],[0,"input","onInput"],[2,"focus","onFocus"],[2,"blur","onBlur"]],{name:["onNameChanged"],value:["onValueChanged"],disabled:["onDisabledChanged"],labelLeft:["onLabelLeftChanged"]}],[1,"cat-tab",{label:[513],icon:[513],iconOnly:[520,"icon-only"],iconRight:[516,"icon-right"],url:[513],urlTarget:[513,"url-target"],deactivated:[516],error:[516],nativeAttributes:[16]},[[0,"click","onClick"]]],[1,"cat-toggle",{checked:[1028],disabled:[4],identifier:[1],label:[1],labelHidden:[4,"label-hidden"],name:[1],required:[4],value:[8],noValue:[8,"no-value"],resolvedValue:[1032,"resolved-value"],hint:[1],labelLeft:[4,"label-left"],nativeAttributes:[16],hasSlottedLabel:[32],hasSlottedHint:[32],doFocus:[64],doBlur:[64]}],[1,"cat-tooltip",{content:[1],disabled:[4],placement:[1],round:[4],size:[1],showDelay:[2,"show-delay"],hideDelay:[2,"hide-delay"],longTouchDuration:[2,"long-touch-duration"],open:[32]},[[0,"keydown","handleKeyDown"]]],[1,"cat-select",{requiredMarker:[1,"required-marker"],horizontal:[4],multiple:[4],debounce:[2],placement:[1],value:[1025],disabled:[4],placeholder:[1],hint:[1],identifier:[1],label:[1],name:[1],labelHidden:[4,"label-hidden"],required:[4],clearable:[4],tags:[4],tagHint:[1,"tag-hint"],noItems:[1,"no-items"],errors:[4],errorUpdate:[8,"error-update"],nativeAttributes:[16],connector:[32],state:[32],hasSlottedLabel:[32],hasSlottedHint:[32],errorMap:[32],doFocus:[64],doBlur:[64],clear:[64],connect:[64]},[[0,"blur","onBlur"],[0,"keydown","onKeyDown"],[0,"keyup","onKeyUp"]],{connector:["onConnectorChanged"],value:["onValueChanged"],errors:["onErrorsChanged"],state:["onStateChanged"]}],[1,"cat-input",{requiredMarker:[1,"required-marker"],horizontal:[4],autoComplete:[1,"auto-complete"],clearable:[4],togglePassword:[4,"toggle-password"],disabled:[4],hint:[1],icon:[1],iconRight:[4,"icon-right"],identifier:[1],label:[1],labelHidden:[4,"label-hidden"],max:[8],maxLength:[2,"max-length"],min:[8],minLength:[2,"min-length"],name:[1],placeholder:[1],textPrefix:[1,"text-prefix"],textSuffix:[1,"text-suffix"],readonly:[4],required:[4],round:[4],type:[1],value:[1025],errors:[4],errorUpdate:[8,"error-update"],nativeAttributes:[16],hasSlottedLabel:[32],hasSlottedHint:[32],isPasswordShown:[32],errorMap:[32],doFocus:[64],doBlur:[64],clear:[64]},null,{errors:["onErrorsChanged"]}],[1,"cat-dropdown",{placement:[1],noAutoClose:[4,"no-auto-close"],overflow:[4],close:[64]},[[0,"catClick","clickHandler"]]],[1,"cat-avatar",{size:[1],round:[4],label:[1],initials:[1],src:[1],icon:[1],url:[1],urlTarget:[1,"url-target"],backgroundImage:[32]},null,{src:["onSrcChanged"]}],[1,"cat-checkbox",{checked:[1028],indeterminate:[1028],disabled:[4],identifier:[1],label:[1],labelHidden:[4,"label-hidden"],name:[1],required:[4],value:[8],noValue:[8,"no-value"],resolvedValue:[1032,"resolved-value"],hint:[1],labelLeft:[4,"label-left"],nativeAttributes:[16],hasSlottedLabel:[32],hasSlottedHint:[32],doFocus:[64],doBlur:[64]}],[1,"cat-scrollable",{noShadowX:[4,"no-shadow-x"],noShadowY:[4,"no-shadow-y"],noOverflowX:[4,"no-overflow-x"],noOverflowY:[4,"no-overflow-y"],noOverscroll:[4,"no-overscroll"],noScrolledInit:[4,"no-scrolled-init"],scrolledBuffer:[2,"scrolled-buffer"]}],[1,"cat-skeleton",{effect:[1],variant:[1],size:[1],lines:[2]}],[1,"cat-button",{variant:[1],color:[1],active:[4],size:[1],name:[1],value:[1],disabled:[4],loading:[4],submit:[4],noEllipsis:[4,"no-ellipsis"],round:[4],url:[1],urlTarget:[1,"url-target"],icon:[1],iconOnly:[8,"icon-only"],iconRight:[4,"icon-right"],buttonId:[1,"button-id"],a11yLabel:[1,"a11y-label"],a11yCurrent:[1,"a11y-current"],nativeAttributes:[16],nativeContentAttributes:[16],buttonGroupPosition:[1,"button-group-position"],_iconOnly:[32],doFocus:[64],doBlur:[64],doClick:[64]},[[0,"click","haltDisabledEvents"]],{iconOnly:["onIconOnlyChanged"]}],[1,"cat-spinner",{size:[1],a11yLabel:[1,"a11y-label"]}],[1,"cat-icon",{icon:[1],iconSrc:[1,"icon-src"],size:[1],a11yLabel:[1,"a11y-label"]}]]]],e))); +import{p as e,b as a}from"./p-6cd4fa1e.js";export{s as setNonce}from"./p-6cd4fa1e.js";const t=()=>{const a=import.meta.url;const t={};if(a!==""){t.resourcesUrl=new URL(".",a).href}return e(t)};t().then((e=>a([["p-30644946",[[0,"cat-select-demo"],[1,"cat-datepicker",{requiredMarker:[1,"required-marker"],horizontal:[4],autoComplete:[1,"auto-complete"],clearable:[4],disabled:[4],hint:[1],icon:[1],iconRight:[4,"icon-right"],identifier:[1],label:[1],labelHidden:[4,"label-hidden"],max:[1],min:[1],mode:[1],name:[1],placeholder:[1],textPrefix:[1,"text-prefix"],textSuffix:[1,"text-suffix"],readonly:[4],required:[4],step:[2],value:[1025],errors:[4],errorUpdate:[8,"error-update"],nativeAttributes:[16],nativePickerAttributes:[16],hasSlottedLabel:[32],hasSlottedHint:[32],doFocus:[64],doBlur:[64]},null,{value:["onValueChanged"],disabled:["onDisabledChanged"],readonly:["onDisabledChanged"],min:["onMinChanged"],max:["onMinChanged"]}],[1,"cat-pagination",{page:[1026],pageCount:[2,"page-count"],activePadding:[2,"active-padding"],sidePadding:[2,"side-padding"],size:[1],variant:[1],round:[4],compact:[4],iconPrev:[1,"icon-prev"],iconNext:[1,"icon-next"]}],[1,"cat-tabs",{activeTab:[1537,"active-tab"],tabsAlign:[1,"tabs-align"],tabs:[32],setActive:[64],setActiveIndex:[64]},[[0,"keydown","onKeydown"]],{activeTab:["onActiveTabChange"]}],[1,"cat-alert",{color:[513],icon:[1],noIcon:[4,"no-icon"]}],[1,"cat-textarea",{requiredMarker:[1,"required-marker"],horizontal:[4],disabled:[4],hint:[1],identifier:[1],label:[1],labelHidden:[4,"label-hidden"],maxLength:[2,"max-length"],minLength:[2,"min-length"],name:[1],placeholder:[1],readonly:[4],required:[4],rows:[2],value:[1025],errors:[4],errorUpdate:[8,"error-update"],nativeAttributes:[16],hasSlottedLabel:[32],hasSlottedHint:[32],errorMap:[32],doFocus:[64],doBlur:[64],clear:[64]},null,{errors:["onErrorsChanged"]}],[1,"cat-badge",{variant:[513],color:[513],size:[513],round:[516],pulse:[516]}],[1,"cat-button-group",{a11yLabel:[1,"a11y-label"]}],[1,"cat-card"],[1,"cat-datepicker-inline",{disabled:[4],max:[1],min:[1],mode:[1],readonly:[4],step:[2],value:[1025],nativePickerAttributes:[16]},null,{value:["onValueChanged"],disabled:["onDisabledChanged"],readonly:["onDisabledChanged"]}],[1,"cat-form-group",{requiredMarker:[1,"required-marker"],horizontal:[4],labelSize:[1,"label-size"]},null,{requiredMarker:["onRequiredMarkerChanged"],horizontal:["onHorizontalChanged"]}],[1,"cat-radio",{checked:[1028],disabled:[4],identifier:[1],label:[1],labelHidden:[4,"label-hidden"],name:[1],required:[4],value:[1],hint:[1],labelLeft:[4,"label-left"],nativeAttributes:[16],hasSlottedLabel:[32],hasSlottedHint:[32],doFocus:[64],doBlur:[64]}],[1,"cat-radio-group",{name:[1],value:[1025],disabled:[4],a11yLabel:[1,"a11y-label"],labelLeft:[4,"label-left"]},[[0,"keydown","onKeydown"],[0,"input","onInput"],[2,"focus","onFocus"],[2,"blur","onBlur"]],{name:["onNameChanged"],value:["onValueChanged"],disabled:["onDisabledChanged"],labelLeft:["onLabelLeftChanged"]}],[1,"cat-tab",{label:[513],icon:[513],iconOnly:[520,"icon-only"],iconRight:[516,"icon-right"],url:[513],urlTarget:[513,"url-target"],deactivated:[516],error:[516],nativeAttributes:[16]},[[0,"click","onClick"]]],[1,"cat-toggle",{checked:[1028],disabled:[4],identifier:[1],label:[1],labelHidden:[4,"label-hidden"],name:[1],required:[4],value:[8],noValue:[8,"no-value"],resolvedValue:[1032,"resolved-value"],hint:[1],labelLeft:[4,"label-left"],nativeAttributes:[16],hasSlottedLabel:[32],hasSlottedHint:[32],doFocus:[64],doBlur:[64]}],[1,"cat-tooltip",{content:[1],disabled:[4],placement:[1],round:[4],size:[1],showDelay:[2,"show-delay"],hideDelay:[2,"hide-delay"],longTouchDuration:[2,"long-touch-duration"],open:[32]},[[0,"keydown","handleKeyDown"]]],[1,"cat-select",{requiredMarker:[1,"required-marker"],horizontal:[4],multiple:[4],debounce:[2],placement:[1],value:[1025],disabled:[4],placeholder:[1],hint:[1],identifier:[1],label:[1],name:[1],labelHidden:[4,"label-hidden"],required:[4],clearable:[4],tags:[4],tagHint:[1,"tag-hint"],noItems:[1,"no-items"],errors:[4],errorUpdate:[8,"error-update"],nativeAttributes:[16],connector:[32],state:[32],hasSlottedLabel:[32],hasSlottedHint:[32],errorMap:[32],doFocus:[64],doBlur:[64],clear:[64],connect:[64]},[[0,"blur","onBlur"],[0,"keydown","onKeyDown"],[0,"keyup","onKeyUp"]],{connector:["onConnectorChanged"],value:["onValueChanged"],errors:["onErrorsChanged"],state:["onStateChanged"]}],[1,"cat-input",{requiredMarker:[1,"required-marker"],horizontal:[4],autoComplete:[1,"auto-complete"],clearable:[4],togglePassword:[4,"toggle-password"],disabled:[4],hint:[1],icon:[1],iconRight:[4,"icon-right"],identifier:[1],label:[1],labelHidden:[4,"label-hidden"],max:[8],maxLength:[2,"max-length"],min:[8],minLength:[2,"min-length"],name:[1],placeholder:[1],textPrefix:[1,"text-prefix"],textSuffix:[1,"text-suffix"],readonly:[4],required:[4],round:[4],type:[1],value:[1025],errors:[4],errorUpdate:[8,"error-update"],nativeAttributes:[16],hasSlottedLabel:[32],hasSlottedHint:[32],isPasswordShown:[32],errorMap:[32],doFocus:[64],doBlur:[64],clear:[64]},null,{errors:["onErrorsChanged"]}],[1,"cat-dropdown",{placement:[1],noAutoClose:[4,"no-auto-close"],overflow:[4],close:[64]},[[0,"catClick","clickHandler"]]],[1,"cat-avatar",{size:[1],round:[4],label:[1],initials:[1],src:[1],icon:[1],url:[1],urlTarget:[1,"url-target"],backgroundImage:[32]},null,{src:["onSrcChanged"]}],[1,"cat-checkbox",{checked:[1028],indeterminate:[1028],disabled:[4],identifier:[1],label:[1],labelHidden:[4,"label-hidden"],name:[1],required:[4],value:[8],noValue:[8,"no-value"],resolvedValue:[1032,"resolved-value"],hint:[1],labelLeft:[4,"label-left"],nativeAttributes:[16],hasSlottedLabel:[32],hasSlottedHint:[32],doFocus:[64],doBlur:[64]}],[1,"cat-scrollable",{noShadowX:[4,"no-shadow-x"],noShadowY:[4,"no-shadow-y"],noOverflowX:[4,"no-overflow-x"],noOverflowY:[4,"no-overflow-y"],noOverscroll:[4,"no-overscroll"],noScrolledInit:[4,"no-scrolled-init"],scrolledBuffer:[2,"scrolled-buffer"]}],[1,"cat-skeleton",{effect:[1],variant:[1],size:[1],lines:[2]}],[1,"cat-button",{variant:[1],color:[1],active:[4],size:[1],name:[1],value:[1],disabled:[4],loading:[4],submit:[4],noEllipsis:[4,"no-ellipsis"],round:[4],url:[1],urlTarget:[1,"url-target"],icon:[1],iconOnly:[8,"icon-only"],iconRight:[4,"icon-right"],buttonId:[1,"button-id"],a11yLabel:[1,"a11y-label"],a11yCurrent:[1,"a11y-current"],nativeAttributes:[16],nativeContentAttributes:[16],buttonGroupPosition:[1,"button-group-position"],_iconOnly:[32],doFocus:[64],doBlur:[64],doClick:[64]},[[0,"click","haltDisabledEvents"]],{iconOnly:["onIconOnlyChanged"]}],[1,"cat-spinner",{size:[1],a11yLabel:[1,"a11y-label"]}],[1,"cat-icon",{icon:[1],iconSrc:[1,"icon-src"],size:[1],a11yLabel:[1,"a11y-label"]}]]]],e))); //# sourceMappingURL=catalyst.esm.js.map \ No newline at end of file diff --git a/build/index.esm.js b/build/index.esm.js index ef4d439f..30a43221 100644 --- a/build/index.esm.js +++ b/build/index.esm.js @@ -1,4 +1,4 @@ -import{c as t,a as i,b as s,o}from"./p-2f032de7.js";export{C as CatI18nRegistry,d as CatIconRegistry,b as catI18nRegistry,e as catIconRegistry}from"./p-2f032de7.js";var n=t((function(t){ +import{c as t,a as i,b as s,o}from"./p-f65e3491.js";export{C as CatI18nRegistry,d as CatIconRegistry,b as catI18nRegistry,e as catIconRegistry}from"./p-f65e3491.js";var n=t((function(t){ /*! * Toastify js 1.12.0 * https://github.com/apvarun/toastify-js diff --git a/build/p-2f032de7.js b/build/p-2f032de7.js deleted file mode 100644 index e8ada375..00000000 --- a/build/p-2f032de7.js +++ /dev/null @@ -1,2 +0,0 @@ -var n=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function t(n,t,r){return r={path:t,exports:{},require:function(n,t){return e()}},n(r,r.exports),r.exports}function e(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var r=t((function(t){(function(n,e){if(t.exports){t.exports=e()}else{n.log=e()}})(n,(function(){var n=function(){};var t="undefined";var e=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent);var r=["trace","debug","info","warn","error"];function i(n,t){var e=n[t];if(typeof e.bind==="function"){return e.bind(n)}else{try{return Function.prototype.bind.call(e,n)}catch(t){return function(){return Function.prototype.apply.apply(e,[n,arguments])}}}}function o(){if(console.log){if(console.log.apply){console.log.apply(console,arguments)}else{Function.prototype.apply.apply(console.log,[console,arguments])}}if(console.trace)console.trace()}function s(r){if(r==="debug"){r="log"}if(typeof console===t){return false}else if(r==="trace"&&e){return o}else if(console[r]!==undefined){return i(console,r)}else if(console.log!==undefined){return i(console,"log")}else{return n}}function u(t,e){for(var i=0;i=0&&e<=o.levels.SILENT){s=e;if(r!==false){a(e)}u.call(o,e,n);if(typeof console===t&&e{const{detail:t}=n||{};if(t&&t.id!==this.id){this.setLocale(t.locale,true)}}));window.addEventListener("cat-i18n-set",(n=>{const{detail:t}=n||{};if(t&&t.id!==this.id){this.set(t.i18n,true)}}));window.addEventListener("cat-i18n-clear",(n=>{const{detail:t}=n||{};if(t&&t.id!==this.id){this.clear(true)}}))}static getInstance(){if(!i.instance){i.instance=new i}return i.instance}getLocale(){return this._locale??window?.navigator?.language??"en"}setLocale(n,t=false){try{this._locale=Intl.getCanonicalLocales(n)[0];r.info(`[CatI18nRegistry] Set locale: ${this._locale}`);!t&&window.dispatchEvent(this.buildEvent("cat-i18n-setLocale",{locale:n,id:this.id}))}catch(t){r.error(`[CatI18nRegistry] Invalid locale: ${n}`)}}set(n,t=false){const e=Object.entries(n);e.forEach((([n,t])=>this.i18n.set(n,t)));r.info(`[CatI18nRegistry] Registered ${e.length!==1?"messages":"message"}`);!t&&window.dispatchEvent(this.buildEvent("cat-i18n-set",{i18n:n,id:this.id}))}clear(n=false){this.i18n.clear();r.info(`[CatI18nRegistry] Cleared messages`);!n&&window.dispatchEvent(this.buildEvent("cat-i18n-clear"))}t(n,t){const e=this._translator?.(n,t)??this.i18n.get(n);if(e===undefined){r.error(`[CatI18nRegistry] Unknown message key: ${n}`);return n}return e.replace(/{{\s*([-a-zA-Z._]+)\s*}}/g,((n,e)=>`${t?.[e]??""}`))}buildEvent(n,t){return new CustomEvent(n,{bubbles:true,composed:true,detail:t})}}const o=i.getInstance();const s=``;const u=`\n`;const c=``;const l=``;const a=``;const f=``;const d=``;const h=``;const w=``;const v=``;const p=``;const y=``;const g=`\n`;const m=`\n`;const b=``;class x{constructor(){this.id=(Math.random()+1).toString(36).substring(2);this.icons=new Map;this.addIcons({"alert-primary":b,"alert-secondary":d,"alert-info":m,"alert-success":c,"alert-warning":p,"alert-danger":h,"dialog-close":v,"input-close":w,"input-error":u,"input-password-show":g,"input-password-hide":y,"notification-close":w,"pagination-left":a,"pagination-right":f,"select-clear":s,"select-open":l},"$cat",true);window.addEventListener("cat-icons-added",(n=>{const{detail:t}=n||{};if(t&&t.id!==this.id){this.addIcons(t.icons,t.setName,true)}}));window.addEventListener("cat-icons-removed",(n=>{const{detail:t}=n||{};if(t&&t.id!==this.id){this.removeIcons(t.names,t.setName,true)}}))}static getInstance(){if(!x.instance){x.instance=new x}return x.instance}getIcon(n,t){const e=this.icons.get(this.buildName(n,t));if(!e){r.error(`[CatIconRegistry] Unknown icon${t?` in set ${t}`:""}: ${n}`)}return e}addIcons(n,t,e=false){const i=Object.entries(n);const o=i.length;i.forEach((([n,e])=>this.icons.set(this.buildName(n,t),e)));r.info(`[CatIconRegistry] Added ${o!==1?"icons":"icon"}${t?` to set ${t}`:""}`);!e&&window.dispatchEvent(this.buildEvent("cat-icons-added",{id:this.id,icons:n,setName:t}));return this}removeIcons(n,t,e=false){const i=n.length;n.forEach((n=>this.icons.delete(this.buildName(n,t))));r.info(`[CatIconRegistry] Removed ${i!==1?"icons":"icon"}${t?` from set ${t}`:""}`);!e&&window.dispatchEvent(this.buildEvent("cat-icons-removed",{id:this.id,names:n,setName:t}));return this}buildName(n,t){return t?`${t}:${n}`:n}buildEvent(n,t){return new CustomEvent(n,{bubbles:true,composed:true,detail:t})}}const S=x.getInstance();function E(n){return typeof n==="function"}function Z(n){const t=n=>{Error.call(n);n.stack=(new Error).stack};const e=n(t);e.prototype=Object.create(Error.prototype);e.prototype.constructor=e;return e}const L=Z((n=>function t(e){n(this);this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map(((n,t)=>`${t+1}) ${n.toString()}`)).join("\n ")}`:"";this.name="UnsubscriptionError";this.errors=e}));function M(n,t){if(n){const e=n.indexOf(t);0<=e&&n.splice(e,1)}}class I{constructor(n){this.initialTeardown=n;this.closed=false;this._parentage=null;this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=true;const{_parentage:t}=this;if(t){this._parentage=null;if(Array.isArray(t)){for(const n of t){n.remove(this)}}else{t.remove(this)}}const{initialTeardown:e}=this;if(E(e)){try{e()}catch(t){n=t instanceof L?t.errors:[t]}}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const t of r){try{R(t)}catch(t){n=n!==null&&n!==void 0?n:[];if(t instanceof L){n=[...n,...t.errors]}else{n.push(t)}}}}if(n){throw new L(n)}}}add(n){var t;if(n&&n!==this){if(this.closed){R(n)}else{if(n instanceof I){if(n.closed||n._hasParent(this)){return}n._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(n)}}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;if(t===n){this._parentage=null}else if(Array.isArray(t)){M(t,n)}}remove(n){const{_finalizers:t}=this;t&&M(t,n);if(n instanceof I){n._removeParent(this)}}}I.EMPTY=(()=>{const n=new I;n.closed=true;return n})();const C=I.EMPTY;function $(n){return n instanceof I||n&&"closed"in n&&E(n.remove)&&E(n.add)&&E(n.unsubscribe)}function R(n){if(E(n)){n()}else{n.unsubscribe()}}const T={onUnhandledError:null,onStoppedNotification:null,Promise:undefined,useDeprecatedSynchronousErrorHandling:false,useDeprecatedNextContext:false};const B={setTimeout(n,t,...e){const{delegate:r}=B;if(r===null||r===void 0?void 0:r.setTimeout){return r.setTimeout(n,t,...e)}return setTimeout(n,t,...e)},clearTimeout(n){const{delegate:t}=B;return((t===null||t===void 0?void 0:t.clearTimeout)||clearTimeout)(n)},delegate:undefined};function _(n){B.setTimeout((()=>{const{onUnhandledError:t}=T;if(t){t(n)}else{throw n}}))}function O(){}const P=(()=>U("C",undefined,undefined))();function A(n){return U("E",undefined,n)}function N(n){return U("N",n,undefined)}function U(n,t,e){return{kind:n,value:t,error:e}}function j(n){{n()}}class k extends I{constructor(n){super();this.isStopped=false;if(n){this.destination=n;if($(n)){n.add(this)}}else{this.destination=G}}static create(n,t,e){return new q(n,t,e)}next(n){if(this.isStopped){W(N(n),this)}else{this._next(n)}}error(n){if(this.isStopped){W(A(n),this)}else{this.isStopped=true;this._error(n)}}complete(){if(this.isStopped){W(P,this)}else{this.isStopped=true;this._complete()}}unsubscribe(){if(!this.closed){this.isStopped=true;super.unsubscribe();this.destination=null}}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const F=Function.prototype.bind;function V(n,t){return F.call(n,t)}class D{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next){try{t.next(n)}catch(n){z(n)}}}error(n){const{partialObserver:t}=this;if(t.error){try{t.error(n)}catch(n){z(n)}}else{z(n)}}complete(){const{partialObserver:n}=this;if(n.complete){try{n.complete()}catch(n){z(n)}}}}class q extends k{constructor(n,t,e){super();let r;if(E(n)||!n){r={next:n!==null&&n!==void 0?n:undefined,error:t!==null&&t!==void 0?t:undefined,complete:e!==null&&e!==void 0?e:undefined}}else{let t;if(this&&T.useDeprecatedNextContext){t=Object.create(n);t.unsubscribe=()=>this.unsubscribe();r={next:n.next&&V(n.next,t),error:n.error&&V(n.error,t),complete:n.complete&&V(n.complete,t)}}else{r=n}}this.destination=new D(r)}}function z(n){{_(n)}}function Y(n){throw n}function W(n,t){const{onStoppedNotification:e}=T;e&&B.setTimeout((()=>e(n,t)))}const G={closed:true,next:O,error:Y,complete:O};const H=(()=>typeof Symbol==="function"&&Symbol.observable||"@@observable")();function J(n){return n}function K(n){if(n.length===0){return J}if(n.length===1){return n[0]}return function t(e){return n.reduce(((n,t)=>t(n)),e)}}class Q{constructor(n){if(n){this._subscribe=n}}lift(n){const t=new Q;t.source=this;t.operator=n;return t}subscribe(n,t,e){const r=tn(n)?n:new q(n,t,e);j((()=>{const{operator:n,source:t}=this;r.add(n?n.call(r,t):t?this._subscribe(r):this._trySubscribe(r))}));return r}_trySubscribe(n){try{return this._subscribe(n)}catch(t){n.error(t)}}forEach(n,t){t=X(t);return new t(((t,e)=>{const r=new q({next:t=>{try{n(t)}catch(n){e(n);r.unsubscribe()}},error:e,complete:t});this.subscribe(r)}))}_subscribe(n){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(n)}[H](){return this}pipe(...n){return K(n)(this)}toPromise(n){n=X(n);return new n(((n,t)=>{let e;this.subscribe((n=>e=n),(n=>t(n)),(()=>n(e)))}))}}Q.create=n=>new Q(n);function X(n){var t;return(t=n!==null&&n!==void 0?n:T.Promise)!==null&&t!==void 0?t:Promise}function nn(n){return n&&E(n.next)&&E(n.error)&&E(n.complete)}function tn(n){return n&&n instanceof k||nn(n)&&$(n)}function en(n){return E(n===null||n===void 0?void 0:n.lift)}function rn(n){return t=>{if(en(t)){return t.lift((function(t){try{return n(t,this)}catch(n){this.error(n)}}))}throw new TypeError("Unable to lift unknown Observable type")}}function on(n,t,e,r,i){return new sn(n,t,e,r,i)}class sn extends k{constructor(n,t,e,r,i,o){super(n);this.onFinalize=i;this.shouldUnsubscribe=o;this._next=t?function(e){try{t(e)}catch(t){n.error(t)}}:super._next;this._error=r?function(t){try{r(t)}catch(t){n.error(t)}finally{this.unsubscribe()}}:super._error;this._complete=e?function(){try{e()}catch(t){n.error(t)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe();!t&&((n=this.onFinalize)===null||n===void 0?void 0:n.call(this))}}}function un(n){return n&&E(n.schedule)}function cn(n){return n[n.length-1]}function ln(n){return un(cn(n))?n.pop():undefined}function an(n,t){return typeof cn(n)==="number"?n.pop():t}function fn(n,t,e,r){function i(n){return n instanceof e?n:new e((function(t){t(n)}))}return new(e||(e=Promise))((function(e,o){function s(n){try{c(r.next(n))}catch(n){o(n)}}function u(n){try{c(r["throw"](n))}catch(n){o(n)}}function c(n){n.done?e(n.value):i(n.value).then(s,u)}c((r=r.apply(n,t||[])).next())}))}function dn(n){var t=typeof Symbol==="function"&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&typeof n.length==="number")return{next:function(){if(n&&r>=n.length)n=void 0;return{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function hn(n){return this instanceof hn?(this.v=n,this):new hn(n)}function wn(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e.apply(n,t||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(n){if(r[n])i[n]=function(t){return new Promise((function(e,r){o.push([n,t,e,r])>1||u(n,t)}))}}function u(n,t){try{c(r[n](t))}catch(n){f(o[0][3],n)}}function c(n){n.value instanceof hn?Promise.resolve(n.value.v).then(l,a):f(o[0][2],n)}function l(n){u("next",n)}function a(n){u("throw",n)}function f(n,t){if(n(t),o.shift(),o.length)u(o[0][0],o[0][1])}}function vn(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=n[Symbol.asyncIterator],e;return t?t.call(n):(n=typeof dn==="function"?dn(n):n[Symbol.iterator](),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(t){e[t]=n[t]&&function(e){return new Promise((function(r,o){e=n[t](e),i(r,o,e.done,e.value)}))}}function i(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)}}typeof SuppressedError==="function"?SuppressedError:function(n,t,e){var r=new Error(e);return r.name="SuppressedError",r.error=n,r.suppressed=t,r};const pn=n=>n&&typeof n.length==="number"&&typeof n!=="function";function yn(n){return E(n===null||n===void 0?void 0:n.then)}function gn(n){return E(n[H])}function mn(n){return Symbol.asyncIterator&&E(n===null||n===void 0?void 0:n[Symbol.asyncIterator])}function bn(n){return new TypeError(`You provided ${n!==null&&typeof n==="object"?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function xn(){if(typeof Symbol!=="function"||!Symbol.iterator){return"@@iterator"}return Symbol.iterator}const Sn=xn();function En(n){return E(n===null||n===void 0?void 0:n[Sn])}function Zn(n){return wn(this,arguments,(function*t(){const e=n.getReader();try{while(true){const{value:n,done:t}=yield hn(e.read());if(t){return yield hn(void 0)}yield yield hn(n)}}finally{e.releaseLock()}}))}function Ln(n){return E(n===null||n===void 0?void 0:n.getReader)}function Mn(n){if(n instanceof Q){return n}if(n!=null){if(gn(n)){return In(n)}if(pn(n)){return Cn(n)}if(yn(n)){return $n(n)}if(mn(n)){return Tn(n)}if(En(n)){return Rn(n)}if(Ln(n)){return Bn(n)}}throw bn(n)}function In(n){return new Q((t=>{const e=n[H]();if(E(e.subscribe)){return e.subscribe(t)}throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}function Cn(n){return new Q((t=>{for(let e=0;e{n.then((n=>{if(!t.closed){t.next(n);t.complete()}}),(n=>t.error(n))).then(null,_)}))}function Rn(n){return new Q((t=>{for(const e of n){t.next(e);if(t.closed){return}}t.complete()}))}function Tn(n){return new Q((t=>{_n(n,t).catch((n=>t.error(n)))}))}function Bn(n){return Tn(Zn(n))}function _n(n,t){var e,r;var i,o;return fn(this,void 0,void 0,(function*(){try{for(e=vn(n);r=yield e.next(),!r.done;){const n=r.value;t.next(n);if(t.closed){return}}}catch(n){i={error:n}}finally{try{if(r&&!r.done&&(o=e.return))yield o.call(e)}finally{if(i)throw i.error}}t.complete()}))}function On(n,t,e,r=0,i=false){const o=t.schedule((function(){e();if(i){n.add(this.schedule(null,r))}else{this.unsubscribe()}}),r);n.add(o);if(!i){return o}}function Pn(n,t=0){return rn(((e,r)=>{e.subscribe(on(r,(e=>On(r,n,(()=>r.next(e)),t)),(()=>On(r,n,(()=>r.complete()),t)),(e=>On(r,n,(()=>r.error(e)),t))))}))}function An(n,t=0){return rn(((e,r)=>{r.add(n.schedule((()=>e.subscribe(r)),t))}))}function Nn(n,t){return Mn(n).pipe(An(t),Pn(t))}function Un(n,t){return Mn(n).pipe(An(t),Pn(t))}function jn(n,t){return new Q((e=>{let r=0;return t.schedule((function(){if(r===n.length){e.complete()}else{e.next(n[r++]);if(!e.closed){this.schedule()}}}))}))}function kn(n,t){return new Q((e=>{let r;On(e,t,(()=>{r=n[Sn]();On(e,t,(()=>{let n;let t;try{({value:n,done:t}=r.next())}catch(n){e.error(n);return}if(t){e.complete()}else{e.next(n)}}),0,true)}));return()=>E(r===null||r===void 0?void 0:r.return)&&r.return()}))}function Fn(n,t){if(!n){throw new Error("Iterable cannot be null")}return new Q((e=>{On(e,t,(()=>{const r=n[Symbol.asyncIterator]();On(e,t,(()=>{r.next().then((n=>{if(n.done){e.complete()}else{e.next(n.value)}}))}),0,true)}))}))}function Vn(n,t){return Fn(Zn(n),t)}function Dn(n,t){if(n!=null){if(gn(n)){return Nn(n,t)}if(pn(n)){return jn(n,t)}if(yn(n)){return Un(n,t)}if(mn(n)){return Fn(n,t)}if(En(n)){return kn(n,t)}if(Ln(n)){return Vn(n,t)}}throw bn(n)}function qn(n,t){return t?Dn(n,t):Mn(n)}function zn(...n){const t=ln(n);return qn(n,t)}export{i as C,C as E,Q as O,I as S,n as a,o as b,t as c,x as d,S as e,Z as f,j as g,M as h,rn as i,on as j,Mn as k,On as l,E as m,J as n,zn as o,qn as p,ln as q,pn as r,un as s,an as t,O as u,r as v}; -//# sourceMappingURL=p-2f032de7.js.map \ No newline at end of file diff --git a/build/p-2f032de7.js.map b/build/p-2f032de7.js.map deleted file mode 100644 index c5eeb0b6..00000000 --- a/build/p-2f032de7.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["root","definition","module","exports","log","this","noop","undefinedType","isIE","window","navigator","test","userAgent","logMethods","bindMethod","obj","methodName","method","bind","Function","prototype","call","e","apply","arguments","traceForIE","console","trace","realMethod","undefined","replaceLoggingMethods","level","loggerName","i","length","methodFactory","debug","enableLoggingWhenConsoleArrives","defaultMethodFactory","Logger","name","defaultLevel","factory","self","currentLevel","storageKey","persistLevelIfPossible","levelNum","levelName","toUpperCase","localStorage","ignore","document","cookie","encodeURIComponent","getPersistedLevel","storedLevel","location","indexOf","exec","slice","levels","clearPersistedLevel","removeItem","TRACE","DEBUG","INFO","WARN","ERROR","SILENT","getLevel","setLevel","persist","setDefaultLevel","resetLevel","enableAll","disableAll","initialLevel","defaultLogger","_loggersByName","getLogger","TypeError","logger","_log","noConflict","getLoggers","CatI18nRegistry","constructor","id","Math","random","toString","substring","i18n","Map","addEventListener","event","detail","setLocale","locale","set","clear","getInstance","instance","getLocale","_locale","language","silent","Intl","getCanonicalLocales","info","dispatchEvent","buildEvent","err","error","i18nEntries","Object","entries","forEach","key","message","t","params","_translator","get","replace","_match","CustomEvent","bubbles","composed","catI18nRegistry","CatIconRegistry","icons","addIcons","starCircleFilled","clockFilled","infoCircleFilled","checkCircleFilled","dangerFilled","crossCircleFilled","crossOutlined","crossCircleOutlined","alertCircleOutlined","eyeOpenOutlined","eyeClosedOutlined","chevronLeftOutlined","chevronRightOutlined","cross16","chevronDownOutlined","setName","removeIcons","names","getIcon","icon","buildName","iconEntries","iconSize","data","delete","catIconRegistry","isFunction","value","createErrorClass","createImpl","_super","Error","stack","ctorFunc","create","UnsubscriptionError","UnsubscriptionErrorImpl","errors","map","join","arrRemove","arr","item","index","splice","Subscription","initialTeardown","closed","_parentage","_finalizers","unsubscribe","Array","isArray","parent","remove","initialFinalizer","finalizer","execFinalizer","push","add","teardown","_a","_hasParent","_addParent","includes","_removeParent","EMPTY","empty","EMPTY_SUBSCRIPTION","isSubscription","config","onUnhandledError","onStoppedNotification","Promise","useDeprecatedSynchronousErrorHandling","useDeprecatedNextContext","timeoutProvider","setTimeout","handler","timeout","args","delegate","clearTimeout","handle","reportUnhandledError","COMPLETE_NOTIFICATION","createNotification","errorNotification","nextNotification","kind","errorContext","cb","Subscriber","destination","super","isStopped","EMPTY_OBSERVER","next","complete","SafeSubscriber","handleStoppedNotification","_next","_error","_complete","_bind","fn","thisArg","ConsumerObserver","partialObserver","handleUnhandledError","observerOrNext","context","defaultErrorHandler","notification","subscriber","observable","Symbol","identity","x","pipeFromArray","fns","piped","input","reduce","prev","Observable","subscribe","_subscribe","lift","operator","source","isSubscriber","_trySubscribe","sink","promiseCtor","getPromiseCtor","resolve","reject","Symbol_observable","pipe","operations","toPromise","isObserver","hasLift","operate","init","liftedSource","createOperatorSubscriber","onNext","onComplete","onError","onFinalize","OperatorSubscriber","shouldUnsubscribe","isScheduler","schedule","last","popScheduler","pop","popNumber","defaultValue","__awaiter","_arguments","P","generator","adopt","fulfilled","step","rejected","result","done","then","__values","o","s","iterator","m","__await","v","__asyncGenerator","asyncIterator","g","q","verb","n","a","b","resume","settle","r","fulfill","f","shift","__asyncValues","d","SuppressedError","suppressed","isArrayLike","isPromise","isInteropObservable","isAsyncIterable","createInvalidObservableTypeError","getSymbolIterator","isIterable","Symbol_iterator","readableStreamLikeToAsyncGenerator","readableStream","readableStreamLikeToAsyncGenerator_1","reader","getReader","read","releaseLock","isReadableStreamLike","innerFrom","fromInteropObservable","fromArrayLike","fromPromise","fromAsyncIterable","fromIterable","fromReadableStreamLike","obs","array","promise","iterable","asyncIterable","process","catch","asyncIterable_1","asyncIterable_1_1","e_1","e_1_1","return","executeSchedule","parentSubscription","scheduler","work","delay","repeat","scheduleSubscription","observeOn","subscribeOn","scheduleObservable","schedulePromise","scheduleArray","scheduleIterable","scheduleAsyncIterable","scheduleReadableStreamLike","scheduled","from","of"],"sources":["../node_modules/.pnpm/loglevel@1.8.1/node_modules/loglevel/lib/loglevel.js","src/components/cat-i18n/cat-i18n-registry.ts","src/components/cat-icon/cat-icon-registry.ts","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/isFunction.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/createErrorClass.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/UnsubscriptionError.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/arrRemove.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/Subscription.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/config.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/scheduler/timeoutProvider.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/reportUnhandledError.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/noop.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/NotificationFactories.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/errorContext.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/Subscriber.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/symbol/observable.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/identity.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/pipe.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/Observable.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/lift.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/operators/OperatorSubscriber.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/isScheduler.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/args.js","../node_modules/.pnpm/tslib@2.6.1/node_modules/tslib/tslib.es6.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/isArrayLike.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/isPromise.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/isInteropObservable.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/isAsyncIterable.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/throwUnobservableError.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/symbol/iterator.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/isIterable.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/isReadableStreamLike.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/observable/innerFrom.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/executeSchedule.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/operators/observeOn.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/operators/subscribeOn.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/scheduled/scheduleObservable.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/scheduled/schedulePromise.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/scheduled/scheduleArray.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/scheduled/scheduleIterable.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/scheduled/scheduleAsyncIterable.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/scheduled/scheduleReadableStreamLike.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/scheduled/scheduled.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/observable/from.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/observable/of.js"],"sourcesContent":["/*\n* loglevel - https://github.com/pimterry/loglevel\n*\n* Copyright (c) 2013 Tim Perry\n* Licensed under the MIT license.\n*/\n(function (root, definition) {\n \"use strict\";\n if (typeof define === 'function' && define.amd) {\n define(definition);\n } else if (typeof module === 'object' && module.exports) {\n module.exports = definition();\n } else {\n root.log = definition();\n }\n}(this, function () {\n \"use strict\";\n\n // Slightly dubious tricks to cut down minimized file size\n var noop = function() {};\n var undefinedType = \"undefined\";\n var isIE = (typeof window !== undefinedType) && (typeof window.navigator !== undefinedType) && (\n /Trident\\/|MSIE /.test(window.navigator.userAgent)\n );\n\n var logMethods = [\n \"trace\",\n \"debug\",\n \"info\",\n \"warn\",\n \"error\"\n ];\n\n // Cross-browser bind equivalent that works at least back to IE6\n function bindMethod(obj, methodName) {\n var method = obj[methodName];\n if (typeof method.bind === 'function') {\n return method.bind(obj);\n } else {\n try {\n return Function.prototype.bind.call(method, obj);\n } catch (e) {\n // Missing bind shim or IE8 + Modernizr, fallback to wrapping\n return function() {\n return Function.prototype.apply.apply(method, [obj, arguments]);\n };\n }\n }\n }\n\n // Trace() doesn't print the message in IE, so for that case we need to wrap it\n function traceForIE() {\n if (console.log) {\n if (console.log.apply) {\n console.log.apply(console, arguments);\n } else {\n // In old IE, native console methods themselves don't have apply().\n Function.prototype.apply.apply(console.log, [console, arguments]);\n }\n }\n if (console.trace) console.trace();\n }\n\n // Build the best logging method possible for this env\n // Wherever possible we want to bind, not wrap, to preserve stack traces\n function realMethod(methodName) {\n if (methodName === 'debug') {\n methodName = 'log';\n }\n\n if (typeof console === undefinedType) {\n return false; // No method possible, for now - fixed later by enableLoggingWhenConsoleArrives\n } else if (methodName === 'trace' && isIE) {\n return traceForIE;\n } else if (console[methodName] !== undefined) {\n return bindMethod(console, methodName);\n } else if (console.log !== undefined) {\n return bindMethod(console, 'log');\n } else {\n return noop;\n }\n }\n\n // These private functions always need `this` to be set properly\n\n function replaceLoggingMethods(level, loggerName) {\n /*jshint validthis:true */\n for (var i = 0; i < logMethods.length; i++) {\n var methodName = logMethods[i];\n this[methodName] = (i < level) ?\n noop :\n this.methodFactory(methodName, level, loggerName);\n }\n\n // Define log.log as an alias for log.debug\n this.log = this.debug;\n }\n\n // In old IE versions, the console isn't present until you first open it.\n // We build realMethod() replacements here that regenerate logging methods\n function enableLoggingWhenConsoleArrives(methodName, level, loggerName) {\n return function () {\n if (typeof console !== undefinedType) {\n replaceLoggingMethods.call(this, level, loggerName);\n this[methodName].apply(this, arguments);\n }\n };\n }\n\n // By default, we use closely bound real methods wherever possible, and\n // otherwise we wait for a console to appear, and then try again.\n function defaultMethodFactory(methodName, level, loggerName) {\n /*jshint validthis:true */\n return realMethod(methodName) ||\n enableLoggingWhenConsoleArrives.apply(this, arguments);\n }\n\n function Logger(name, defaultLevel, factory) {\n var self = this;\n var currentLevel;\n defaultLevel = defaultLevel == null ? \"WARN\" : defaultLevel;\n\n var storageKey = \"loglevel\";\n if (typeof name === \"string\") {\n storageKey += \":\" + name;\n } else if (typeof name === \"symbol\") {\n storageKey = undefined;\n }\n\n function persistLevelIfPossible(levelNum) {\n var levelName = (logMethods[levelNum] || 'silent').toUpperCase();\n\n if (typeof window === undefinedType || !storageKey) return;\n\n // Use localStorage if available\n try {\n window.localStorage[storageKey] = levelName;\n return;\n } catch (ignore) {}\n\n // Use session cookie as fallback\n try {\n window.document.cookie =\n encodeURIComponent(storageKey) + \"=\" + levelName + \";\";\n } catch (ignore) {}\n }\n\n function getPersistedLevel() {\n var storedLevel;\n\n if (typeof window === undefinedType || !storageKey) return;\n\n try {\n storedLevel = window.localStorage[storageKey];\n } catch (ignore) {}\n\n // Fallback to cookies if local storage gives us nothing\n if (typeof storedLevel === undefinedType) {\n try {\n var cookie = window.document.cookie;\n var location = cookie.indexOf(\n encodeURIComponent(storageKey) + \"=\");\n if (location !== -1) {\n storedLevel = /^([^;]+)/.exec(cookie.slice(location))[1];\n }\n } catch (ignore) {}\n }\n\n // If the stored level is not valid, treat it as if nothing was stored.\n if (self.levels[storedLevel] === undefined) {\n storedLevel = undefined;\n }\n\n return storedLevel;\n }\n\n function clearPersistedLevel() {\n if (typeof window === undefinedType || !storageKey) return;\n\n // Use localStorage if available\n try {\n window.localStorage.removeItem(storageKey);\n return;\n } catch (ignore) {}\n\n // Use session cookie as fallback\n try {\n window.document.cookie =\n encodeURIComponent(storageKey) + \"=; expires=Thu, 01 Jan 1970 00:00:00 UTC\";\n } catch (ignore) {}\n }\n\n /*\n *\n * Public logger API - see https://github.com/pimterry/loglevel for details\n *\n */\n\n self.name = name;\n\n self.levels = { \"TRACE\": 0, \"DEBUG\": 1, \"INFO\": 2, \"WARN\": 3,\n \"ERROR\": 4, \"SILENT\": 5};\n\n self.methodFactory = factory || defaultMethodFactory;\n\n self.getLevel = function () {\n return currentLevel;\n };\n\n self.setLevel = function (level, persist) {\n if (typeof level === \"string\" && self.levels[level.toUpperCase()] !== undefined) {\n level = self.levels[level.toUpperCase()];\n }\n if (typeof level === \"number\" && level >= 0 && level <= self.levels.SILENT) {\n currentLevel = level;\n if (persist !== false) { // defaults to true\n persistLevelIfPossible(level);\n }\n replaceLoggingMethods.call(self, level, name);\n if (typeof console === undefinedType && level < self.levels.SILENT) {\n return \"No console available for logging\";\n }\n } else {\n throw \"log.setLevel() called with invalid level: \" + level;\n }\n };\n\n self.setDefaultLevel = function (level) {\n defaultLevel = level;\n if (!getPersistedLevel()) {\n self.setLevel(level, false);\n }\n };\n\n self.resetLevel = function () {\n self.setLevel(defaultLevel, false);\n clearPersistedLevel();\n };\n\n self.enableAll = function(persist) {\n self.setLevel(self.levels.TRACE, persist);\n };\n\n self.disableAll = function(persist) {\n self.setLevel(self.levels.SILENT, persist);\n };\n\n // Initialize with the right level\n var initialLevel = getPersistedLevel();\n if (initialLevel == null) {\n initialLevel = defaultLevel;\n }\n self.setLevel(initialLevel, false);\n }\n\n /*\n *\n * Top-level API\n *\n */\n\n var defaultLogger = new Logger();\n\n var _loggersByName = {};\n defaultLogger.getLogger = function getLogger(name) {\n if ((typeof name !== \"symbol\" && typeof name !== \"string\") || name === \"\") {\n throw new TypeError(\"You must supply a name when creating a logger.\");\n }\n\n var logger = _loggersByName[name];\n if (!logger) {\n logger = _loggersByName[name] = new Logger(\n name, defaultLogger.getLevel(), defaultLogger.methodFactory);\n }\n return logger;\n };\n\n // Grab the current global log variable in case of overwrite\n var _log = (typeof window !== undefinedType) ? window.log : undefined;\n defaultLogger.noConflict = function() {\n if (typeof window !== undefinedType &&\n window.log === defaultLogger) {\n window.log = _log;\n }\n\n return defaultLogger;\n };\n\n defaultLogger.getLoggers = function getLoggers() {\n return _loggersByName;\n };\n\n // ES6 default export, for compatibility\n defaultLogger['default'] = defaultLogger;\n\n return defaultLogger;\n}));\n","import log from 'loglevel';\n\nexport class CatI18nRegistry {\n private static instance: CatI18nRegistry;\n\n private readonly id = (Math.random() + 1).toString(36).substring(2);\n private readonly i18n: Map = new Map();\n private _locale?: string;\n\n _translator?: (key: string, params?: unknown) => string;\n\n private constructor() {\n // hide constructor\n\n // In rare cases, the registry can be initialized twice. This can happen in\n // a micro frontend architecture where the registry is initialized in the\n // host application and in the micro frontend. To prevent the registry in\n // one application from overwriting the registry in the other, we listen for\n // events that are dispatched when messages are added or removed in other\n // applications and add or remove messages if the event was not dispatched\n // by this registry.\n window.addEventListener('cat-i18n-setLocale', event => {\n const { detail } = (event as CustomEvent) || {};\n if (detail && detail.id !== this.id) {\n this.setLocale(detail.locale, true);\n }\n });\n window.addEventListener('cat-i18n-set', event => {\n const { detail } = (event as CustomEvent) || {};\n if (detail && detail.id !== this.id) {\n this.set(detail.i18n, true);\n }\n });\n window.addEventListener('cat-i18n-clear', event => {\n const { detail } = (event as CustomEvent) || {};\n if (detail && detail.id !== this.id) {\n this.clear(true);\n }\n });\n }\n\n static getInstance(): CatI18nRegistry {\n if (!CatI18nRegistry.instance) {\n CatI18nRegistry.instance = new CatI18nRegistry();\n }\n return CatI18nRegistry.instance;\n }\n\n getLocale(): string {\n return this._locale ?? window?.navigator?.language ?? 'en';\n }\n\n setLocale(locale: string, silent = false): void {\n try {\n this._locale = Intl.getCanonicalLocales(locale)[0];\n log.info(`[CatI18nRegistry] Set locale: ${this._locale}`);\n !silent && window.dispatchEvent(this.buildEvent('cat-i18n-setLocale', { locale, id: this.id }));\n } catch (err) {\n log.error(`[CatI18nRegistry] Invalid locale: ${locale}`);\n }\n }\n\n set(i18n: { [key: string]: string }, silent = false): void {\n const i18nEntries = Object.entries(i18n);\n i18nEntries.forEach(([key, message]) => this.i18n.set(key, message));\n log.info(`[CatI18nRegistry] Registered ${i18nEntries.length !== 1 ? 'messages' : 'message'}`);\n !silent && window.dispatchEvent(this.buildEvent('cat-i18n-set', { i18n, id: this.id }));\n }\n\n clear(silent = false): void {\n this.i18n.clear();\n log.info(`[CatI18nRegistry] Cleared messages`);\n !silent && window.dispatchEvent(this.buildEvent('cat-i18n-clear'));\n }\n\n t(key: string, params?: { [key: string]: unknown }): string {\n const message = this._translator?.(key, params) ?? this.i18n.get(key);\n if (message === undefined) {\n log.error(`[CatI18nRegistry] Unknown message key: ${key}`);\n return key;\n }\n return message.replace(/{{\\s*([-a-zA-Z._]+)\\s*}}/g, (_match, key) => `${params?.[key] ?? ''}`);\n }\n\n private buildEvent(name: string, detail?: T) {\n return new CustomEvent(name, {\n bubbles: true,\n composed: true,\n detail\n });\n }\n}\n\nexport const catI18nRegistry = CatI18nRegistry.getInstance();\n","import cross16 from '@haiilo/catalyst-icons/tmp/assets/16-cross.svg';\nimport alertCircleOutlined from '@haiilo/catalyst-icons/tmp/assets/alert-circle-outlined.svg';\nimport checkCircleFilled from '@haiilo/catalyst-icons/tmp/assets/check-circle-filled.svg';\nimport chevronDownOutlined from '@haiilo/catalyst-icons/tmp/assets/chevron-down-outlined.svg';\nimport chevronLeftOutlined from '@haiilo/catalyst-icons/tmp/assets/chevron-left-outlined.svg';\nimport chevronRightOutlined from '@haiilo/catalyst-icons/tmp/assets/chevron-right-outlined.svg';\nimport clockFilled from '@haiilo/catalyst-icons/tmp/assets/clock-filled.svg';\nimport crossCircleFilled from '@haiilo/catalyst-icons/tmp/assets/cross-circle-filled.svg';\nimport crossCircleOutlined from '@haiilo/catalyst-icons/tmp/assets/cross-circle-outlined.svg';\nimport crossOutlined from '@haiilo/catalyst-icons/tmp/assets/cross-outlined.svg';\nimport dangerFilled from '@haiilo/catalyst-icons/tmp/assets/danger-filled.svg';\nimport eyeClosedOutlined from '@haiilo/catalyst-icons/tmp/assets/eye-closed-outlined.svg';\nimport eyeOpenOutlined from '@haiilo/catalyst-icons/tmp/assets/eye-open-outlined.svg';\nimport infoCircleFilled from '@haiilo/catalyst-icons/tmp/assets/info-circle-filled.svg';\nimport starCircleFilled from '@haiilo/catalyst-icons/tmp/assets/star-circle-filled.svg';\nimport log from 'loglevel';\n\nexport class CatIconRegistry {\n private static instance: CatIconRegistry;\n\n private readonly id = (Math.random() + 1).toString(36).substring(2);\n private readonly icons: Map = new Map();\n\n private constructor() {\n // hide constructor\n\n // register default icons that are used in the framework by other components\n this.addIcons(\n {\n 'alert-primary': starCircleFilled,\n 'alert-secondary': clockFilled,\n 'alert-info': infoCircleFilled,\n 'alert-success': checkCircleFilled,\n 'alert-warning': dangerFilled,\n 'alert-danger': crossCircleFilled,\n 'dialog-close': crossOutlined,\n 'input-close': crossCircleOutlined,\n 'input-error': alertCircleOutlined,\n 'input-password-show': eyeOpenOutlined,\n 'input-password-hide': eyeClosedOutlined,\n 'notification-close': crossCircleOutlined,\n 'pagination-left': chevronLeftOutlined,\n 'pagination-right': chevronRightOutlined,\n 'select-clear': cross16,\n 'select-open': chevronDownOutlined\n },\n '$cat',\n true\n );\n\n // In rare cases, the registry can be initialized twice. This can happen in\n // a micro frontend architecture where the registry is initialized in the\n // host application and in the micro frontend. To prevent the registry in\n // one application from overwriting the registry in the other, we listen for\n // events that are dispatched when icons are added or removed in other\n // applications and add or remove icons if the event was not dispatched by\n // this registry.\n window.addEventListener('cat-icons-added', event => {\n const { detail } = (event as CustomEvent) || {};\n if (detail && detail.id !== this.id) {\n this.addIcons(detail.icons, detail.setName, true);\n }\n });\n window.addEventListener('cat-icons-removed', event => {\n const { detail } = (event as CustomEvent) || {};\n if (detail && detail.id !== this.id) {\n this.removeIcons(detail.names, detail.setName, true);\n }\n });\n }\n\n static getInstance(): CatIconRegistry {\n if (!CatIconRegistry.instance) {\n CatIconRegistry.instance = new CatIconRegistry();\n }\n return CatIconRegistry.instance;\n }\n\n getIcon(name: string, setName?: string): string | undefined {\n const icon = this.icons.get(this.buildName(name, setName));\n if (!icon) {\n log.error(`[CatIconRegistry] Unknown icon${setName ? ` in set ${setName}` : ''}: ${name}`);\n }\n return icon;\n }\n\n addIcons(icons: { [name: string]: string }, setName?: string, silent = false): CatIconRegistry {\n const iconEntries = Object.entries(icons);\n const iconSize = iconEntries.length;\n iconEntries.forEach(([name, data]) => this.icons.set(this.buildName(name, setName), data));\n log.info(`[CatIconRegistry] Added ${iconSize !== 1 ? 'icons' : 'icon'}${setName ? ` to set ${setName}` : ''}`);\n !silent && window.dispatchEvent(this.buildEvent('cat-icons-added', { id: this.id, icons, setName }));\n return this;\n }\n\n removeIcons(names: string[], setName?: string, silent = false): CatIconRegistry {\n const iconSize = names.length;\n names.forEach(name => this.icons.delete(this.buildName(name, setName)));\n log.info(`[CatIconRegistry] Removed ${iconSize !== 1 ? 'icons' : 'icon'}${setName ? ` from set ${setName}` : ''}`);\n !silent && window.dispatchEvent(this.buildEvent('cat-icons-removed', { id: this.id, names, setName }));\n return this;\n }\n\n private buildName(name: string, setName?: string) {\n return setName ? `${setName}:${name}` : name;\n }\n\n private buildEvent(name: string, detail?: T) {\n return new CustomEvent(name, {\n bubbles: true,\n composed: true,\n detail\n });\n }\n}\n\nexport const catIconRegistry = CatIconRegistry.getInstance();\n","export function isFunction(value) {\n return typeof value === 'function';\n}\n//# sourceMappingURL=isFunction.js.map","export function createErrorClass(createImpl) {\n const _super = (instance) => {\n Error.call(instance);\n instance.stack = new Error().stack;\n };\n const ctorFunc = createImpl(_super);\n ctorFunc.prototype = Object.create(Error.prototype);\n ctorFunc.prototype.constructor = ctorFunc;\n return ctorFunc;\n}\n//# sourceMappingURL=createErrorClass.js.map","import { createErrorClass } from './createErrorClass';\nexport const UnsubscriptionError = createErrorClass((_super) => function UnsubscriptionErrorImpl(errors) {\n _super(this);\n this.message = errors\n ? `${errors.length} errors occurred during unsubscription:\n${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\\n ')}`\n : '';\n this.name = 'UnsubscriptionError';\n this.errors = errors;\n});\n//# sourceMappingURL=UnsubscriptionError.js.map","export function arrRemove(arr, item) {\n if (arr) {\n const index = arr.indexOf(item);\n 0 <= index && arr.splice(index, 1);\n }\n}\n//# sourceMappingURL=arrRemove.js.map","import { isFunction } from './util/isFunction';\nimport { UnsubscriptionError } from './util/UnsubscriptionError';\nimport { arrRemove } from './util/arrRemove';\nexport class Subscription {\n constructor(initialTeardown) {\n this.initialTeardown = initialTeardown;\n this.closed = false;\n this._parentage = null;\n this._finalizers = null;\n }\n unsubscribe() {\n let errors;\n if (!this.closed) {\n this.closed = true;\n const { _parentage } = this;\n if (_parentage) {\n this._parentage = null;\n if (Array.isArray(_parentage)) {\n for (const parent of _parentage) {\n parent.remove(this);\n }\n }\n else {\n _parentage.remove(this);\n }\n }\n const { initialTeardown: initialFinalizer } = this;\n if (isFunction(initialFinalizer)) {\n try {\n initialFinalizer();\n }\n catch (e) {\n errors = e instanceof UnsubscriptionError ? e.errors : [e];\n }\n }\n const { _finalizers } = this;\n if (_finalizers) {\n this._finalizers = null;\n for (const finalizer of _finalizers) {\n try {\n execFinalizer(finalizer);\n }\n catch (err) {\n errors = errors !== null && errors !== void 0 ? errors : [];\n if (err instanceof UnsubscriptionError) {\n errors = [...errors, ...err.errors];\n }\n else {\n errors.push(err);\n }\n }\n }\n }\n if (errors) {\n throw new UnsubscriptionError(errors);\n }\n }\n }\n add(teardown) {\n var _a;\n if (teardown && teardown !== this) {\n if (this.closed) {\n execFinalizer(teardown);\n }\n else {\n if (teardown instanceof Subscription) {\n if (teardown.closed || teardown._hasParent(this)) {\n return;\n }\n teardown._addParent(this);\n }\n (this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown);\n }\n }\n }\n _hasParent(parent) {\n const { _parentage } = this;\n return _parentage === parent || (Array.isArray(_parentage) && _parentage.includes(parent));\n }\n _addParent(parent) {\n const { _parentage } = this;\n this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;\n }\n _removeParent(parent) {\n const { _parentage } = this;\n if (_parentage === parent) {\n this._parentage = null;\n }\n else if (Array.isArray(_parentage)) {\n arrRemove(_parentage, parent);\n }\n }\n remove(teardown) {\n const { _finalizers } = this;\n _finalizers && arrRemove(_finalizers, teardown);\n if (teardown instanceof Subscription) {\n teardown._removeParent(this);\n }\n }\n}\nSubscription.EMPTY = (() => {\n const empty = new Subscription();\n empty.closed = true;\n return empty;\n})();\nexport const EMPTY_SUBSCRIPTION = Subscription.EMPTY;\nexport function isSubscription(value) {\n return (value instanceof Subscription ||\n (value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe)));\n}\nfunction execFinalizer(finalizer) {\n if (isFunction(finalizer)) {\n finalizer();\n }\n else {\n finalizer.unsubscribe();\n }\n}\n//# sourceMappingURL=Subscription.js.map","export const config = {\n onUnhandledError: null,\n onStoppedNotification: null,\n Promise: undefined,\n useDeprecatedSynchronousErrorHandling: false,\n useDeprecatedNextContext: false,\n};\n//# sourceMappingURL=config.js.map","export const timeoutProvider = {\n setTimeout(handler, timeout, ...args) {\n const { delegate } = timeoutProvider;\n if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {\n return delegate.setTimeout(handler, timeout, ...args);\n }\n return setTimeout(handler, timeout, ...args);\n },\n clearTimeout(handle) {\n const { delegate } = timeoutProvider;\n return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);\n },\n delegate: undefined,\n};\n//# sourceMappingURL=timeoutProvider.js.map","import { config } from '../config';\nimport { timeoutProvider } from '../scheduler/timeoutProvider';\nexport function reportUnhandledError(err) {\n timeoutProvider.setTimeout(() => {\n const { onUnhandledError } = config;\n if (onUnhandledError) {\n onUnhandledError(err);\n }\n else {\n throw err;\n }\n });\n}\n//# sourceMappingURL=reportUnhandledError.js.map","export function noop() { }\n//# sourceMappingURL=noop.js.map","export const COMPLETE_NOTIFICATION = (() => createNotification('C', undefined, undefined))();\nexport function errorNotification(error) {\n return createNotification('E', undefined, error);\n}\nexport function nextNotification(value) {\n return createNotification('N', value, undefined);\n}\nexport function createNotification(kind, value, error) {\n return {\n kind,\n value,\n error,\n };\n}\n//# sourceMappingURL=NotificationFactories.js.map","import { config } from '../config';\nlet context = null;\nexport function errorContext(cb) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n const isRoot = !context;\n if (isRoot) {\n context = { errorThrown: false, error: null };\n }\n cb();\n if (isRoot) {\n const { errorThrown, error } = context;\n context = null;\n if (errorThrown) {\n throw error;\n }\n }\n }\n else {\n cb();\n }\n}\nexport function captureError(err) {\n if (config.useDeprecatedSynchronousErrorHandling && context) {\n context.errorThrown = true;\n context.error = err;\n }\n}\n//# sourceMappingURL=errorContext.js.map","import { isFunction } from './util/isFunction';\nimport { isSubscription, Subscription } from './Subscription';\nimport { config } from './config';\nimport { reportUnhandledError } from './util/reportUnhandledError';\nimport { noop } from './util/noop';\nimport { nextNotification, errorNotification, COMPLETE_NOTIFICATION } from './NotificationFactories';\nimport { timeoutProvider } from './scheduler/timeoutProvider';\nimport { captureError } from './util/errorContext';\nexport class Subscriber extends Subscription {\n constructor(destination) {\n super();\n this.isStopped = false;\n if (destination) {\n this.destination = destination;\n if (isSubscription(destination)) {\n destination.add(this);\n }\n }\n else {\n this.destination = EMPTY_OBSERVER;\n }\n }\n static create(next, error, complete) {\n return new SafeSubscriber(next, error, complete);\n }\n next(value) {\n if (this.isStopped) {\n handleStoppedNotification(nextNotification(value), this);\n }\n else {\n this._next(value);\n }\n }\n error(err) {\n if (this.isStopped) {\n handleStoppedNotification(errorNotification(err), this);\n }\n else {\n this.isStopped = true;\n this._error(err);\n }\n }\n complete() {\n if (this.isStopped) {\n handleStoppedNotification(COMPLETE_NOTIFICATION, this);\n }\n else {\n this.isStopped = true;\n this._complete();\n }\n }\n unsubscribe() {\n if (!this.closed) {\n this.isStopped = true;\n super.unsubscribe();\n this.destination = null;\n }\n }\n _next(value) {\n this.destination.next(value);\n }\n _error(err) {\n try {\n this.destination.error(err);\n }\n finally {\n this.unsubscribe();\n }\n }\n _complete() {\n try {\n this.destination.complete();\n }\n finally {\n this.unsubscribe();\n }\n }\n}\nconst _bind = Function.prototype.bind;\nfunction bind(fn, thisArg) {\n return _bind.call(fn, thisArg);\n}\nclass ConsumerObserver {\n constructor(partialObserver) {\n this.partialObserver = partialObserver;\n }\n next(value) {\n const { partialObserver } = this;\n if (partialObserver.next) {\n try {\n partialObserver.next(value);\n }\n catch (error) {\n handleUnhandledError(error);\n }\n }\n }\n error(err) {\n const { partialObserver } = this;\n if (partialObserver.error) {\n try {\n partialObserver.error(err);\n }\n catch (error) {\n handleUnhandledError(error);\n }\n }\n else {\n handleUnhandledError(err);\n }\n }\n complete() {\n const { partialObserver } = this;\n if (partialObserver.complete) {\n try {\n partialObserver.complete();\n }\n catch (error) {\n handleUnhandledError(error);\n }\n }\n }\n}\nexport class SafeSubscriber extends Subscriber {\n constructor(observerOrNext, error, complete) {\n super();\n let partialObserver;\n if (isFunction(observerOrNext) || !observerOrNext) {\n partialObserver = {\n next: observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined,\n error: error !== null && error !== void 0 ? error : undefined,\n complete: complete !== null && complete !== void 0 ? complete : undefined,\n };\n }\n else {\n let context;\n if (this && config.useDeprecatedNextContext) {\n context = Object.create(observerOrNext);\n context.unsubscribe = () => this.unsubscribe();\n partialObserver = {\n next: observerOrNext.next && bind(observerOrNext.next, context),\n error: observerOrNext.error && bind(observerOrNext.error, context),\n complete: observerOrNext.complete && bind(observerOrNext.complete, context),\n };\n }\n else {\n partialObserver = observerOrNext;\n }\n }\n this.destination = new ConsumerObserver(partialObserver);\n }\n}\nfunction handleUnhandledError(error) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n captureError(error);\n }\n else {\n reportUnhandledError(error);\n }\n}\nfunction defaultErrorHandler(err) {\n throw err;\n}\nfunction handleStoppedNotification(notification, subscriber) {\n const { onStoppedNotification } = config;\n onStoppedNotification && timeoutProvider.setTimeout(() => onStoppedNotification(notification, subscriber));\n}\nexport const EMPTY_OBSERVER = {\n closed: true,\n next: noop,\n error: defaultErrorHandler,\n complete: noop,\n};\n//# sourceMappingURL=Subscriber.js.map","export const observable = (() => (typeof Symbol === 'function' && Symbol.observable) || '@@observable')();\n//# sourceMappingURL=observable.js.map","export function identity(x) {\n return x;\n}\n//# sourceMappingURL=identity.js.map","import { identity } from './identity';\nexport function pipe(...fns) {\n return pipeFromArray(fns);\n}\nexport function pipeFromArray(fns) {\n if (fns.length === 0) {\n return identity;\n }\n if (fns.length === 1) {\n return fns[0];\n }\n return function piped(input) {\n return fns.reduce((prev, fn) => fn(prev), input);\n };\n}\n//# sourceMappingURL=pipe.js.map","import { SafeSubscriber, Subscriber } from './Subscriber';\nimport { isSubscription } from './Subscription';\nimport { observable as Symbol_observable } from './symbol/observable';\nimport { pipeFromArray } from './util/pipe';\nimport { config } from './config';\nimport { isFunction } from './util/isFunction';\nimport { errorContext } from './util/errorContext';\nexport class Observable {\n constructor(subscribe) {\n if (subscribe) {\n this._subscribe = subscribe;\n }\n }\n lift(operator) {\n const observable = new Observable();\n observable.source = this;\n observable.operator = operator;\n return observable;\n }\n subscribe(observerOrNext, error, complete) {\n const subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);\n errorContext(() => {\n const { operator, source } = this;\n subscriber.add(operator\n ?\n operator.call(subscriber, source)\n : source\n ?\n this._subscribe(subscriber)\n :\n this._trySubscribe(subscriber));\n });\n return subscriber;\n }\n _trySubscribe(sink) {\n try {\n return this._subscribe(sink);\n }\n catch (err) {\n sink.error(err);\n }\n }\n forEach(next, promiseCtor) {\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor((resolve, reject) => {\n const subscriber = new SafeSubscriber({\n next: (value) => {\n try {\n next(value);\n }\n catch (err) {\n reject(err);\n subscriber.unsubscribe();\n }\n },\n error: reject,\n complete: resolve,\n });\n this.subscribe(subscriber);\n });\n }\n _subscribe(subscriber) {\n var _a;\n return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber);\n }\n [Symbol_observable]() {\n return this;\n }\n pipe(...operations) {\n return pipeFromArray(operations)(this);\n }\n toPromise(promiseCtor) {\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor((resolve, reject) => {\n let value;\n this.subscribe((x) => (value = x), (err) => reject(err), () => resolve(value));\n });\n }\n}\nObservable.create = (subscribe) => {\n return new Observable(subscribe);\n};\nfunction getPromiseCtor(promiseCtor) {\n var _a;\n return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise;\n}\nfunction isObserver(value) {\n return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);\n}\nfunction isSubscriber(value) {\n return (value && value instanceof Subscriber) || (isObserver(value) && isSubscription(value));\n}\n//# sourceMappingURL=Observable.js.map","import { isFunction } from './isFunction';\nexport function hasLift(source) {\n return isFunction(source === null || source === void 0 ? void 0 : source.lift);\n}\nexport function operate(init) {\n return (source) => {\n if (hasLift(source)) {\n return source.lift(function (liftedSource) {\n try {\n return init(liftedSource, this);\n }\n catch (err) {\n this.error(err);\n }\n });\n }\n throw new TypeError('Unable to lift unknown Observable type');\n };\n}\n//# sourceMappingURL=lift.js.map","import { Subscriber } from '../Subscriber';\nexport function createOperatorSubscriber(destination, onNext, onComplete, onError, onFinalize) {\n return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize);\n}\nexport class OperatorSubscriber extends Subscriber {\n constructor(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {\n super(destination);\n this.onFinalize = onFinalize;\n this.shouldUnsubscribe = shouldUnsubscribe;\n this._next = onNext\n ? function (value) {\n try {\n onNext(value);\n }\n catch (err) {\n destination.error(err);\n }\n }\n : super._next;\n this._error = onError\n ? function (err) {\n try {\n onError(err);\n }\n catch (err) {\n destination.error(err);\n }\n finally {\n this.unsubscribe();\n }\n }\n : super._error;\n this._complete = onComplete\n ? function () {\n try {\n onComplete();\n }\n catch (err) {\n destination.error(err);\n }\n finally {\n this.unsubscribe();\n }\n }\n : super._complete;\n }\n unsubscribe() {\n var _a;\n if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {\n const { closed } = this;\n super.unsubscribe();\n !closed && ((_a = this.onFinalize) === null || _a === void 0 ? void 0 : _a.call(this));\n }\n }\n}\n//# sourceMappingURL=OperatorSubscriber.js.map","import { isFunction } from './isFunction';\nexport function isScheduler(value) {\n return value && isFunction(value.schedule);\n}\n//# sourceMappingURL=isScheduler.js.map","import { isFunction } from './isFunction';\nimport { isScheduler } from './isScheduler';\nfunction last(arr) {\n return arr[arr.length - 1];\n}\nexport function popResultSelector(args) {\n return isFunction(last(args)) ? args.pop() : undefined;\n}\nexport function popScheduler(args) {\n return isScheduler(last(args)) ? args.pop() : undefined;\n}\nexport function popNumber(args, defaultValue) {\n return typeof last(args) === 'number' ? args.pop() : defaultValue;\n}\n//# sourceMappingURL=args.js.map","/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n function next() {\r\n while (env.stack.length) {\r\n var rec = env.stack.pop();\r\n try {\r\n var result = rec.dispose && rec.dispose.call(rec.value);\r\n if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n};\r\n","export const isArrayLike = ((x) => x && typeof x.length === 'number' && typeof x !== 'function');\n//# sourceMappingURL=isArrayLike.js.map","import { isFunction } from \"./isFunction\";\nexport function isPromise(value) {\n return isFunction(value === null || value === void 0 ? void 0 : value.then);\n}\n//# sourceMappingURL=isPromise.js.map","import { observable as Symbol_observable } from '../symbol/observable';\nimport { isFunction } from './isFunction';\nexport function isInteropObservable(input) {\n return isFunction(input[Symbol_observable]);\n}\n//# sourceMappingURL=isInteropObservable.js.map","import { isFunction } from './isFunction';\nexport function isAsyncIterable(obj) {\n return Symbol.asyncIterator && isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]);\n}\n//# sourceMappingURL=isAsyncIterable.js.map","export function createInvalidObservableTypeError(input) {\n return new TypeError(`You provided ${input !== null && typeof input === 'object' ? 'an invalid object' : `'${input}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`);\n}\n//# sourceMappingURL=throwUnobservableError.js.map","export function getSymbolIterator() {\n if (typeof Symbol !== 'function' || !Symbol.iterator) {\n return '@@iterator';\n }\n return Symbol.iterator;\n}\nexport const iterator = getSymbolIterator();\n//# sourceMappingURL=iterator.js.map","import { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { isFunction } from './isFunction';\nexport function isIterable(input) {\n return isFunction(input === null || input === void 0 ? void 0 : input[Symbol_iterator]);\n}\n//# sourceMappingURL=isIterable.js.map","import { __asyncGenerator, __await } from \"tslib\";\nimport { isFunction } from './isFunction';\nexport function readableStreamLikeToAsyncGenerator(readableStream) {\n return __asyncGenerator(this, arguments, function* readableStreamLikeToAsyncGenerator_1() {\n const reader = readableStream.getReader();\n try {\n while (true) {\n const { value, done } = yield __await(reader.read());\n if (done) {\n return yield __await(void 0);\n }\n yield yield __await(value);\n }\n }\n finally {\n reader.releaseLock();\n }\n });\n}\nexport function isReadableStreamLike(obj) {\n return isFunction(obj === null || obj === void 0 ? void 0 : obj.getReader);\n}\n//# sourceMappingURL=isReadableStreamLike.js.map","import { __asyncValues, __awaiter } from \"tslib\";\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isPromise } from '../util/isPromise';\nimport { Observable } from '../Observable';\nimport { isInteropObservable } from '../util/isInteropObservable';\nimport { isAsyncIterable } from '../util/isAsyncIterable';\nimport { createInvalidObservableTypeError } from '../util/throwUnobservableError';\nimport { isIterable } from '../util/isIterable';\nimport { isReadableStreamLike, readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike';\nimport { isFunction } from '../util/isFunction';\nimport { reportUnhandledError } from '../util/reportUnhandledError';\nimport { observable as Symbol_observable } from '../symbol/observable';\nexport function innerFrom(input) {\n if (input instanceof Observable) {\n return input;\n }\n if (input != null) {\n if (isInteropObservable(input)) {\n return fromInteropObservable(input);\n }\n if (isArrayLike(input)) {\n return fromArrayLike(input);\n }\n if (isPromise(input)) {\n return fromPromise(input);\n }\n if (isAsyncIterable(input)) {\n return fromAsyncIterable(input);\n }\n if (isIterable(input)) {\n return fromIterable(input);\n }\n if (isReadableStreamLike(input)) {\n return fromReadableStreamLike(input);\n }\n }\n throw createInvalidObservableTypeError(input);\n}\nexport function fromInteropObservable(obj) {\n return new Observable((subscriber) => {\n const obs = obj[Symbol_observable]();\n if (isFunction(obs.subscribe)) {\n return obs.subscribe(subscriber);\n }\n throw new TypeError('Provided object does not correctly implement Symbol.observable');\n });\n}\nexport function fromArrayLike(array) {\n return new Observable((subscriber) => {\n for (let i = 0; i < array.length && !subscriber.closed; i++) {\n subscriber.next(array[i]);\n }\n subscriber.complete();\n });\n}\nexport function fromPromise(promise) {\n return new Observable((subscriber) => {\n promise\n .then((value) => {\n if (!subscriber.closed) {\n subscriber.next(value);\n subscriber.complete();\n }\n }, (err) => subscriber.error(err))\n .then(null, reportUnhandledError);\n });\n}\nexport function fromIterable(iterable) {\n return new Observable((subscriber) => {\n for (const value of iterable) {\n subscriber.next(value);\n if (subscriber.closed) {\n return;\n }\n }\n subscriber.complete();\n });\n}\nexport function fromAsyncIterable(asyncIterable) {\n return new Observable((subscriber) => {\n process(asyncIterable, subscriber).catch((err) => subscriber.error(err));\n });\n}\nexport function fromReadableStreamLike(readableStream) {\n return fromAsyncIterable(readableStreamLikeToAsyncGenerator(readableStream));\n}\nfunction process(asyncIterable, subscriber) {\n var asyncIterable_1, asyncIterable_1_1;\n var e_1, _a;\n return __awaiter(this, void 0, void 0, function* () {\n try {\n for (asyncIterable_1 = __asyncValues(asyncIterable); asyncIterable_1_1 = yield asyncIterable_1.next(), !asyncIterable_1_1.done;) {\n const value = asyncIterable_1_1.value;\n subscriber.next(value);\n if (subscriber.closed) {\n return;\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (asyncIterable_1_1 && !asyncIterable_1_1.done && (_a = asyncIterable_1.return)) yield _a.call(asyncIterable_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n subscriber.complete();\n });\n}\n//# sourceMappingURL=innerFrom.js.map","export function executeSchedule(parentSubscription, scheduler, work, delay = 0, repeat = false) {\n const scheduleSubscription = scheduler.schedule(function () {\n work();\n if (repeat) {\n parentSubscription.add(this.schedule(null, delay));\n }\n else {\n this.unsubscribe();\n }\n }, delay);\n parentSubscription.add(scheduleSubscription);\n if (!repeat) {\n return scheduleSubscription;\n }\n}\n//# sourceMappingURL=executeSchedule.js.map","import { executeSchedule } from '../util/executeSchedule';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function observeOn(scheduler, delay = 0) {\n return operate((source, subscriber) => {\n source.subscribe(createOperatorSubscriber(subscriber, (value) => executeSchedule(subscriber, scheduler, () => subscriber.next(value), delay), () => executeSchedule(subscriber, scheduler, () => subscriber.complete(), delay), (err) => executeSchedule(subscriber, scheduler, () => subscriber.error(err), delay)));\n });\n}\n//# sourceMappingURL=observeOn.js.map","import { operate } from '../util/lift';\nexport function subscribeOn(scheduler, delay = 0) {\n return operate((source, subscriber) => {\n subscriber.add(scheduler.schedule(() => source.subscribe(subscriber), delay));\n });\n}\n//# sourceMappingURL=subscribeOn.js.map","import { innerFrom } from '../observable/innerFrom';\nimport { observeOn } from '../operators/observeOn';\nimport { subscribeOn } from '../operators/subscribeOn';\nexport function scheduleObservable(input, scheduler) {\n return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));\n}\n//# sourceMappingURL=scheduleObservable.js.map","import { innerFrom } from '../observable/innerFrom';\nimport { observeOn } from '../operators/observeOn';\nimport { subscribeOn } from '../operators/subscribeOn';\nexport function schedulePromise(input, scheduler) {\n return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));\n}\n//# sourceMappingURL=schedulePromise.js.map","import { Observable } from '../Observable';\nexport function scheduleArray(input, scheduler) {\n return new Observable((subscriber) => {\n let i = 0;\n return scheduler.schedule(function () {\n if (i === input.length) {\n subscriber.complete();\n }\n else {\n subscriber.next(input[i++]);\n if (!subscriber.closed) {\n this.schedule();\n }\n }\n });\n });\n}\n//# sourceMappingURL=scheduleArray.js.map","import { Observable } from '../Observable';\nimport { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { isFunction } from '../util/isFunction';\nimport { executeSchedule } from '../util/executeSchedule';\nexport function scheduleIterable(input, scheduler) {\n return new Observable((subscriber) => {\n let iterator;\n executeSchedule(subscriber, scheduler, () => {\n iterator = input[Symbol_iterator]();\n executeSchedule(subscriber, scheduler, () => {\n let value;\n let done;\n try {\n ({ value, done } = iterator.next());\n }\n catch (err) {\n subscriber.error(err);\n return;\n }\n if (done) {\n subscriber.complete();\n }\n else {\n subscriber.next(value);\n }\n }, 0, true);\n });\n return () => isFunction(iterator === null || iterator === void 0 ? void 0 : iterator.return) && iterator.return();\n });\n}\n//# sourceMappingURL=scheduleIterable.js.map","import { Observable } from '../Observable';\nimport { executeSchedule } from '../util/executeSchedule';\nexport function scheduleAsyncIterable(input, scheduler) {\n if (!input) {\n throw new Error('Iterable cannot be null');\n }\n return new Observable((subscriber) => {\n executeSchedule(subscriber, scheduler, () => {\n const iterator = input[Symbol.asyncIterator]();\n executeSchedule(subscriber, scheduler, () => {\n iterator.next().then((result) => {\n if (result.done) {\n subscriber.complete();\n }\n else {\n subscriber.next(result.value);\n }\n });\n }, 0, true);\n });\n });\n}\n//# sourceMappingURL=scheduleAsyncIterable.js.map","import { scheduleAsyncIterable } from './scheduleAsyncIterable';\nimport { readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike';\nexport function scheduleReadableStreamLike(input, scheduler) {\n return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(input), scheduler);\n}\n//# sourceMappingURL=scheduleReadableStreamLike.js.map","import { scheduleObservable } from './scheduleObservable';\nimport { schedulePromise } from './schedulePromise';\nimport { scheduleArray } from './scheduleArray';\nimport { scheduleIterable } from './scheduleIterable';\nimport { scheduleAsyncIterable } from './scheduleAsyncIterable';\nimport { isInteropObservable } from '../util/isInteropObservable';\nimport { isPromise } from '../util/isPromise';\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isIterable } from '../util/isIterable';\nimport { isAsyncIterable } from '../util/isAsyncIterable';\nimport { createInvalidObservableTypeError } from '../util/throwUnobservableError';\nimport { isReadableStreamLike } from '../util/isReadableStreamLike';\nimport { scheduleReadableStreamLike } from './scheduleReadableStreamLike';\nexport function scheduled(input, scheduler) {\n if (input != null) {\n if (isInteropObservable(input)) {\n return scheduleObservable(input, scheduler);\n }\n if (isArrayLike(input)) {\n return scheduleArray(input, scheduler);\n }\n if (isPromise(input)) {\n return schedulePromise(input, scheduler);\n }\n if (isAsyncIterable(input)) {\n return scheduleAsyncIterable(input, scheduler);\n }\n if (isIterable(input)) {\n return scheduleIterable(input, scheduler);\n }\n if (isReadableStreamLike(input)) {\n return scheduleReadableStreamLike(input, scheduler);\n }\n }\n throw createInvalidObservableTypeError(input);\n}\n//# sourceMappingURL=scheduled.js.map","import { scheduled } from '../scheduled/scheduled';\nimport { innerFrom } from './innerFrom';\nexport function from(input, scheduler) {\n return scheduler ? scheduled(input, scheduler) : innerFrom(input);\n}\n//# sourceMappingURL=from.js.map","import { popScheduler } from '../util/args';\nimport { from } from './from';\nexport function of(...args) {\n const scheduler = popScheduler(args);\n return from(args, scheduler);\n}\n//# sourceMappingURL=of.js.map"],"mappings":"iYAMC,SAAUA,EAAMC,GAIN,GAAkCC,EAAOC,QAAS,CACrDD,EAAAC,QAAiBF,GACzB,KAAW,CACHD,EAAKI,IAAMH,GACnB,CACA,EATA,CASEI,GAAM,WAIJ,IAAIC,EAAO,WAAW,EACtB,IAAIC,EAAgB,YACpB,IAAIC,SAAeC,SAAWF,UAA0BE,OAAOC,YAAcH,GACzE,kBAAkBI,KAAKF,OAAOC,UAAUE,WAG5C,IAAIC,EAAa,CACb,QACA,QACA,OACA,OACA,SAIJ,SAASC,EAAWC,EAAKC,GACrB,IAAIC,EAASF,EAAIC,GACjB,UAAWC,EAAOC,OAAS,WAAY,CACnC,OAAOD,EAAOC,KAAKH,EAC/B,KAAe,CACH,IACI,OAAOI,SAASC,UAAUF,KAAKG,KAAKJ,EAAQF,EAC5D,CAAc,MAAOO,GAEL,OAAO,WACH,OAAOH,SAASC,UAAUG,MAAMA,MAAMN,EAAQ,CAACF,EAAKS,WACxE,CACA,CACA,CACA,CAGI,SAASC,IACL,GAAIC,QAAQtB,IAAK,CACb,GAAIsB,QAAQtB,IAAImB,MAAO,CACnBG,QAAQtB,IAAImB,MAAMG,QAASF,UAC3C,KAAmB,CAEHL,SAASC,UAAUG,MAAMA,MAAMG,QAAQtB,IAAK,CA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AAMN,OAAOgE,iBAC9BoD,GAAgBtH,EAAYwH,GAAW,KACnC3D,EAAS9E,OAAO0E,MAAMF,IAClB,GAAIA,EAAOC,KAAM,CACbxD,EAAWhB,UACnC,KACyB,CACDgB,EAAWjB,KAAKwE,EAAO9I,MAC/C,IACkB,GACH,EAAG,KAAK,GACb,GAEV,CCnBO,SAAS2N,GAA2B5H,EAAOgH,GAC9C,OAAOW,GAAsBxC,GAAmCnF,GAAQgH,EAC5E,CCSO,SAASa,GAAU7H,EAAOgH,GAC7B,GAAIhH,GAAS,KAAM,CACf,GAAI6E,GAAoB7E,GAAQ,CAC5B,OAAOuH,GAAmBvH,EAAOgH,EAC7C,CACQ,GAAIrC,GAAY3E,GAAQ,CACpB,OAAOyH,GAAczH,EAAOgH,EACxC,CACQ,GAAIpC,GAAU5E,GAAQ,CAClB,OAAOwH,GAAgBxH,EAAOgH,EAC1C,CACQ,GAAIlC,GAAgB9E,GAAQ,CACxB,OAAO2H,GAAsB3H,EAAOgH,EAChD,CACQ,GAAI/B,GAAWjF,GAAQ,CACnB,OAAO0H,GAAiB1H,EAAOgH,EAC3C,CACQ,GAAItB,GAAqB1F,GAAQ,CAC7B,OAAO4H,GAA2B5H,EAAOgH,EACrD,CACA,CACI,MAAMjC,GAAiC/E,EAC3C,CCjCO,SAAS8H,GAAK9H,EAAOgH,GACxB,OAAOA,EAAYa,GAAU7H,EAAOgH,GAAarB,GAAU3F,EAC/D,CCFO,SAAS+H,MAAMzK,GAClB,MAAM0J,EAAY7E,GAAa7E,GAC/B,OAAOwK,GAAKxK,EAAM0J,EACtB,Q"} \ No newline at end of file diff --git a/build/p-7a8cae77.entry.js b/build/p-30644946.entry.js similarity index 99% rename from build/p-7a8cae77.entry.js rename to build/p-30644946.entry.js index e0c3525a..4c2457c6 100644 --- a/build/p-7a8cae77.entry.js +++ b/build/p-30644946.entry.js @@ -1,4 +1,4 @@ -import{r as t,h as e,H as r,g as i,c as a}from"./p-6cd4fa1e.js";import{f as n,O as o,g as s,E as l,S as c,h as d,i as h,j as u,k as f,l as p,m,n as b,p as v,q as g,r as y,s as x,t as w,u as k,v as z,b as I,c as $,a as C,e as M,o as D}from"./p-2f032de7.js";const A=n((t=>function e(){t(this);this.name="ObjectUnsubscribedError";this.message="object unsubscribed"}));class S extends o{constructor(){super();this.closed=false;this.currentObservers=null;this.observers=[];this.isStopped=false;this.hasError=false;this.thrownError=null}lift(t){const e=new R(this,this);e.operator=t;return e}_throwIfClosed(){if(this.closed){throw new A}}next(t){s((()=>{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){s((()=>{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(){s((()=>{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:r,observers:i}=this;if(e||r){return l}this.currentObservers=null;i.push(t);return new c((()=>{this.currentObservers=null;d(i,t)}))}_checkFinalizedStatuses(t){const{hasError:e,thrownError:r,isStopped:i}=this;if(e){t.error(r)}else if(i){t.complete()}}asObservable(){const t=new o;t.source=this;return t}}S.create=(t,e)=>new R(t,e);class R extends S{constructor(t,e){super();this.destination=t;this.source=e}next(t){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.next)===null||r===void 0?void 0:r.call(e,t)}error(t){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.error)===null||r===void 0?void 0:r.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,r;return(r=(e=this.source)===null||e===void 0?void 0:e.subscribe(t))!==null&&r!==void 0?r:l}}const T={now(){return(T.delegate||Date).now()},delegate:undefined};class F extends c{constructor(t,e){super()}schedule(t,e=0){return this}}const E={setInterval(t,e,...r){const{delegate:i}=E;if(i===null||i===void 0?void 0:i.setInterval){return i.setInterval(t,e,...r)}return setInterval(t,e,...r)},clearInterval(t){const{delegate:e}=E;return((e===null||e===void 0?void 0:e.clearInterval)||clearInterval)(t)},delegate:undefined};class B extends F{constructor(t,e){super(t,e);this.scheduler=t;this.work=e;this.pending=false}schedule(t,e=0){if(this.closed){return this}this.state=t;const r=this.id;const i=this.scheduler;if(r!=null){this.id=this.recycleAsyncId(i,r,e)}this.pending=true;this.delay=e;this.id=this.id||this.requestAsyncId(i,this.id,e);return this}requestAsyncId(t,e,r=0){return E.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,e,r=0){if(r!=null&&this.delay===r&&this.pending===false){return e}E.clearInterval(e);return undefined}execute(t,e){if(this.closed){return new Error("executing a cancelled action")}this.pending=false;const r=this._execute(t,e);if(r){return r}else if(this.pending===false&&this.id!=null){this.id=this.recycleAsyncId(this.scheduler,this.id,null)}}_execute(t,e){let r=false;let i;try{this.work(t)}catch(t){r=true;i=t?t:new Error("Scheduled action threw falsy error")}if(r){this.unsubscribe();return i}}unsubscribe(){if(!this.closed){const{id:t,scheduler:e}=this;const{actions:r}=e;this.work=this.state=this.scheduler=null;this.pending=false;d(r,this);if(t!=null){this.id=this.recycleAsyncId(e,t,null)}this.delay=null;super.unsubscribe()}}}class O{constructor(t,e=O.now){this.schedulerActionCtor=t;this.now=e}schedule(t,e=0,r){return new this.schedulerActionCtor(this,t).schedule(r,e)}}O.now=T.now;class L extends O{constructor(t,e=O.now){super(t,e);this.actions=[];this._active=false;this._scheduled=undefined}flush(t){const{actions:e}=this;if(this._active){e.push(t);return}let r;this._active=true;do{if(r=t.execute(t.state,t.delay)){break}}while(t=e.shift());this._active=false;if(r){while(t=e.shift()){t.unsubscribe()}throw r}}}const N=new L(B);const j=N;const P=new o((t=>t.complete()));const W=n((t=>function e(){t(this);this.name="EmptyError";this.message="no elements in sequence"}));function H(t){return t instanceof Date&&!isNaN(t)}function _(t,e){return h(((r,i)=>{let a=0;r.subscribe(u(i,(r=>{i.next(t.call(e,r,a++))})))}))}const{isArray:U}=Array;function K(t,e){return U(e)?t(...e):t(e)}function G(t){return _((e=>K(t,e)))}function J(t,e,r,i,a,n,o,s){const l=[];let c=0;let d=0;let h=false;const m=()=>{if(h&&!l.length&&!c){e.complete()}};const b=t=>c{n&&e.next(t);c++;let s=false;f(r(t,d++)).subscribe(u(e,(t=>{a===null||a===void 0?void 0:a(t);if(n){b(t)}else{e.next(t)}}),(()=>{s=true}),undefined,(()=>{if(s){try{c--;while(l.length&&cv(t)))}else{v(t)}}m()}catch(t){e.error(t)}}})))};t.subscribe(u(e,b,(()=>{h=true;m()})));return()=>{s===null||s===void 0?void 0:s()}}function Y(t,e,r=Infinity){if(m(e)){return Y(((r,i)=>_(((t,a)=>e(r,t,i,a)))(f(t(r,i)))),r)}else if(typeof e==="number"){r=e}return h(((e,i)=>J(e,i,t,r)))}function q(t=Infinity){return Y(b,t)}function V(){return q(1)}function Z(...t){return V()(v(t,g(t)))}const X=["addListener","removeListener"];const Q=["addEventListener","removeEventListener"];const tt=["on","off"];function et(t,e,r,i){if(m(r)){i=r;r=undefined}if(i){return et(t,e,r).pipe(G(i))}const[a,n]=nt(t)?Q.map((i=>a=>t[i](e,a,r))):it(t)?X.map(rt(t,e)):at(t)?tt.map(rt(t,e)):[];if(!a){if(y(t)){return Y((t=>et(t,e,r)))(f(t))}}if(!a){throw new TypeError("Invalid event target")}return new o((t=>{const e=(...e)=>t.next(1n(e)}))}function rt(t,e){return r=>i=>t[r](e,i)}function it(t){return m(t.addListener)&&m(t.removeListener)}function at(t){return m(t.on)&&m(t.off)}function nt(t){return m(t.addEventListener)&&m(t.removeEventListener)}function ot(t=0,e,r=j){let i=-1;if(e!=null){if(x(e)){r=e}else{i=e}}return new o((e=>{let a=H(t)?+t-r.now():t;if(a<0){a=0}let n=0;return r.schedule((function(){if(!e.closed){e.next(n++);if(0<=i){this.schedule(undefined,i)}else{e.complete()}}}),a)}))}function st(...t){const e=g(t);const r=w(t,Infinity);const i=t;return!i.length?P:i.length===1?f(i[0]):q(r)(v(i,e))}function lt(t,e){return h(((r,i)=>{let a=0;r.subscribe(u(i,(r=>t.call(e,r,a++)&&i.next(r))))}))}function ct(t){return h(((e,r)=>{let i=false;let a=null;let n=null;let o=false;const s=()=>{n===null||n===void 0?void 0:n.unsubscribe();n=null;if(i){i=false;const t=a;a=null;r.next(t)}o&&r.complete()};const l=()=>{n=null;o&&r.complete()};e.subscribe(u(r,(e=>{i=true;a=e;if(!n){f(t(e)).subscribe(n=u(r,s,l))}}),(()=>{o=true;(!i||!n||n.closed)&&r.complete()})))}))}function dt(t,e=N){return ct((()=>ot(t,e)))}function ht(t){return h(((e,r)=>{let i=null;let a=false;let n;i=e.subscribe(u(r,undefined,undefined,(o=>{n=f(t(o,ht(t)(e)));if(i){i.unsubscribe();i=null;n.subscribe(r)}else{a=true}})));if(a){i.unsubscribe();i=null;n.subscribe(r)}}))}function ut(t,e,r,i,a){return(n,o)=>{let s=r;let l=e;let c=0;n.subscribe(u(o,(e=>{const r=c++;l=s?t(l,e,r):(s=true,e);i&&o.next(l)}),a&&(()=>{s&&o.next(l);o.complete()})))}}function ft(t){return h(((e,r)=>{let i=false;let a=null;let n=null;const o=()=>{n===null||n===void 0?void 0:n.unsubscribe();n=null;if(i){i=false;const t=a;a=null;r.next(t)}};e.subscribe(u(r,(e=>{n===null||n===void 0?void 0:n.unsubscribe();i=true;a=e;n=u(r,o,k);f(t(e)).subscribe(n)}),(()=>{o();r.complete()}),undefined,(()=>{a=n=null})))}))}function pt(t){return h(((e,r)=>{let i=false;e.subscribe(u(r,(t=>{i=true;r.next(t)}),(()=>{if(!i){r.next(t)}r.complete()})))}))}function mt(t){return t<=0?()=>P:h(((e,r)=>{let i=0;e.subscribe(u(r,(e=>{if(++i<=t){r.next(e);if(t<=i){r.complete()}}})))}))}function bt(){return h(((t,e)=>{t.subscribe(u(e,k))}))}function vt(t){return _((()=>t))}function gt(t,e){if(e){return r=>Z(e.pipe(mt(1),bt()),r.pipe(gt(t)))}return Y(((e,r)=>t(e,r).pipe(mt(1),vt(e))))}function yt(t,e=N){const r=ot(t,e);return gt((()=>r))}function xt(t,e=b){t=t!==null&&t!==void 0?t:wt;return h(((r,i)=>{let a;let n=true;r.subscribe(u(i,(r=>{const o=e(r);if(n||!t(a,o)){n=false;a=o;i.next(r)}})))}))}function wt(t,e){return t===e}function kt(t=zt){return h(((e,r)=>{let i=false;e.subscribe(u(r,(t=>{i=true;r.next(t)}),(()=>i?r.complete():r.error(t()))))}))}function zt(){return new W}function It(t,e){const r=arguments.length>=2;return i=>i.pipe(t?lt(((e,r)=>t(e,r,i))):b,mt(1),r?pt(e):kt((()=>new W)))}function $t(t,e){return h(ut(t,e,arguments.length>=2,true))}function Ct(...t){const e=g(t);return h(((r,i)=>{(e?Z(t,r,e):Z(t,r)).subscribe(i)}))}function Mt(t,e){return h(((r,i)=>{let a=null;let n=0;let o=false;const s=()=>o&&!a&&i.complete();r.subscribe(u(i,(r=>{a===null||a===void 0?void 0:a.unsubscribe();let o=0;const l=n++;f(t(r,l)).subscribe(a=u(i,(t=>i.next(e?e(r,t,l,o++):t)),(()=>{a=null;s()})))}),(()=>{o=true;s()})))}))}function Dt(t){return h(((e,r)=>{f(t).subscribe(u(r,(()=>r.complete()),k));!r.closed&&e.subscribe(r)}))}function At(t,e=false){return h(((r,i)=>{let a=0;r.subscribe(u(i,(r=>{const n=t(r,a++);(n||e)&&i.next(r);!n&&i.complete()})))}))}function St(t,e,r){const i=m(t)||e||r?{next:t,error:e,complete:r}:t;return i?h(((t,e)=>{var r;(r=i.subscribe)===null||r===void 0?void 0:r.call(i);let a=true;t.subscribe(u(e,(t=>{var r;(r=i.next)===null||r===void 0?void 0:r.call(i,t);e.next(t)}),(()=>{var t;a=false;(t=i.complete)===null||t===void 0?void 0:t.call(i);e.complete()}),(t=>{var r;a=false;(r=i.error)===null||r===void 0?void 0:r.call(i,t);e.error(t)}),(()=>{var t,e;if(a){(t=i.unsubscribe)===null||t===void 0?void 0:t.call(i)}(e=i.finalize)===null||e===void 0?void 0:e.call(i)})))})):b}function Rt(t,e,r){if(!t.hostElement.hasAttribute(e)&&r!=null){t.hostElement.setAttribute(e,String(r))}}const Tt=':host{display:flex;gap:0.5rem;padding:1.25rem;border-radius:var(--cat-border-radius-l, 0.5rem)}:host([hidden]){display:none}:host(:focus-visible){outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.content{align-self:center}::slotted(:last-child){margin-bottom:0 !important}:host([color=primary]){background-color:rgb(var(--cat-primary-bg, 0, 129, 148));color:rgb(var(--cat-primary-fill, 255, 255, 255));--cat-primary-text:cat-token("color.theme.primary.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.primary.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.primary.fill-active", $wrap: false);--cat-link-decoration:underline}:host([color=secondary]){background-color:rgb(var(--cat-secondary-bg, 105, 118, 135));color:rgb(var(--cat-secondary-fill, 255, 255, 255));--cat-primary-text:cat-token("color.theme.secondary.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.secondary.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.secondary.fill-active", $wrap: false);--cat-link-decoration:underline}:host([color=info]){background-color:rgb(var(--cat-success-bg, 0, 115, 230));color:rgb(var(--cat-success-fill, 255, 255, 255));--cat-primary-text:cat-token("color.theme.info.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.info.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.info.fill-active", $wrap: false);--cat-link-decoration:underline}:host([color=success]){background-color:rgb(var(--cat-success-bg, 0, 132, 88));color:rgb(var(--cat-success-fill, 255, 255, 255));--cat-primary-text:cat-token("color.theme.success.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.success.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.success.fill-active", $wrap: false);--cat-link-decoration:underline}:host([color=warning]){background-color:rgb(var(--cat-warning-bg, 255, 206, 128));color:rgb(var(--cat-warning-fill, 0, 0, 0));--cat-primary-text:cat-token("color.theme.warning.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.warning.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.warning.fill-active", $wrap: false);--cat-link-decoration:underline}:host([color=danger]){background-color:rgb(var(--cat-danger-bg, 217, 52, 13));color:rgb(var(--cat-danger-fill, 255, 255, 255));--cat-primary-text:cat-token("color.theme.danger.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.danger.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.danger.fill-active", $wrap: false);--cat-link-decoration:underline}';const Ft=class{constructor(e){t(this,e);this.mapIcon=new Map([["primary","$cat:alert-primary"],["secondary","$cat:alert-secondary"],["info","$cat:alert-info"],["success","$cat:alert-success"],["warning","$cat:alert-warning"],["danger","$cat:alert-danger"]]);this.mapRole=new Map([["primary","status"],["secondary","status"],["info","status"],["success","status"],["warning","alert"],["danger","alert"]]);this.color="primary";this.icon=undefined;this.noIcon=false}connectedCallback(){Rt(this,"tabindex",0);Rt(this,"role",this.mapRole.get(this.color))}render(){return e(r,null,!this.noIcon&&e("cat-icon",{size:"l",icon:this.icon||this.mapIcon.get(this.color)}),e("div",{class:"content"},e("slot",null)))}get hostElement(){return i(this)}};Ft.style=Tt;const Et=t=>new Promise(((e,r)=>{const i=new Image;i.addEventListener("load",e);i.addEventListener("error",r);i.src=t}));const Bt=":host{display:contents}:host([hidden]){display:none}.avatar{display:inline-flex;align-items:center;justify-content:center;border-radius:var(--cat-border-radius-m, 0.25rem);text-decoration:inherit;color:var(--cat-avatar-fill, #515c6c);background-color:var(--cat-avatar-bg, #f2f4f7);background-size:cover;background-position:center;white-space:nowrap;overflow:hidden;vertical-align:middle;font-weight:600;-webkit-user-select:none;-ms-user-select:none;user-select:none;}.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 Ot=class{constructor(e){t(this,e);this.backgroundImage=undefined;this.size="m";this.round=false;this.label="";this.initials=undefined;this.src=undefined;this.icon=undefined;this.url=undefined;this.urlTarget=undefined}onSrcChanged(t){if(t){Et(t).then((()=>this.backgroundImage=`url(${t})`),(()=>this.backgroundImage=undefined))}else{this.backgroundImage=undefined}}componentWillLoad(){this.onSrcChanged(this.src)}componentWillRender(){if(!this.label){z.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(){return this.initials??(this.label??"").split(" ").map((t=>t[0])).join("")}static get watchers(){return{src:["onSrcChanged"]}}};Ot.style=Bt;const Lt=":host([hidden]){display:none}:host{display:inline-flex;max-width:100%;vertical-align:baseline;align-items:center;justify-content:center;border-radius:var(--cat-border-radius-m, 0.25rem);text-decoration:none;line-height:1.5}:host slot{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}:host([round]){border-radius:10rem}:host([variant=filled]){background-color:rgb(var(--bg));color:rgb(var(--fill));font-weight:600;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:greyscale}:host([variant=outlined]){background-color:white;color:rgb(var(--text));box-shadow:inset 0 0 0 1px rgba(var(--text), 0.2)}:host([color=primary]){--bg:var(--cat-primary-bg, 0, 129, 148);--fill:var(--cat-primary-fill, 255, 255, 255);--text:var(--cat-primary-text, 0, 129, 148)}:host([color=secondary]){--bg:var(--cat-secondary-bg, 105, 118, 135);--fill:var(--cat-secondary-fill, 255, 255, 255);--text:var(--cat-secondary-text, 0, 0, 0)}:host([color=info]){--bg:var(--cat-success-bg, 0, 115, 230);--fill:var(--cat-success-fill, 255, 255, 255);--text:var(--cat-success-text, 0, 115, 230)}:host([color=success]){--bg:var(--cat-success-bg, 0, 132, 88);--fill:var(--cat-success-fill, 255, 255, 255);--text:var(--cat-success-text, 0, 132, 88)}:host([color=warning]){--bg:var(--cat-warning-bg, 255, 206, 128);--fill:var(--cat-warning-fill, 0, 0, 0);--text:var(--cat-warning-text, 159, 97, 0)}:host([color=danger]){--bg:var(--cat-danger-bg, 217, 52, 13);--fill:var(--cat-danger-fill, 255, 255, 255);--text:var(--cat-danger-text, 217, 52, 13)}:host([size=xs]){height:1rem;min-width:1rem;font-size:0.75rem;padding:0 0.25rem}:host([size=s]){height:1.5rem;min-width:1.5rem;font-size:0.75rem;padding:0 0.5rem}:host([size=m]){height:2rem;min-width:2rem;font-size:0.875rem;padding:0 0.75rem}:host([size=l]){height:2.5rem;min-width:2.5rem;font-size:0.9375rem;padding:0 1rem}:host([size=xl]){height:3rem;min-width:3rem;font-size:1.125rem;padding:0 1rem}:host([pulse][variant=filled]){animation:1.5s ease 0s infinite normal none running pulse}:host([pulse][variant=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(--text), 0.2)}70%{box-shadow:transparent 0 0 0 0.5rem, inset 0 0 0 1px rgba(var(--text), 0.2)}100%{box-shadow:transparent 0 0 0 0, inset 0 0 0 1px rgba(var(--text), 0.2)}}";const Nt=class{constructor(e){t(this,e);this.variant="filled";this.color="primary";this.size="m";this.round=false;this.pulse=false}render(){return e("slot",null)}get hostElement(){return i(this)}};Nt.style=Lt;const jt=["xs","s","m","l","xl"];const Pt={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 Wt(t){return typeof t==="string"&&jt.includes(t)}let Ht;try{Ht=typeof Intl!=="undefined"&&Intl.v8BreakIterator}catch{Ht=false}class _t{constructor(){this.EDGE=/(edge)/i.test(navigator.userAgent);this.TRIDENT=/(msie|trident)/i.test(navigator.userAgent);this.BLINK=!!(window.chrome||Ht)&&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 Ut=new Set;let Kt;class Gt{constructor(){this._platform=new _t;this._matchMedia=window.matchMedia.bind(window)}matchMedia(t){if(this._platform.WEBKIT||this._platform.BLINK){Jt(t)}return this._matchMedia(t)}}function Jt(t){if(Ut.has(t)){return}try{if(!Kt){Kt=document.createElement("style");Kt.setAttribute("type","text/css");document.head.appendChild(Kt)}if(Kt.sheet){Kt.sheet.insertRule(`@media ${t} {body{ }}`,0);Ut.add(t)}}catch(t){z.error(t)}}const Yt=':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:var(--cat-border-radius-m, 0.25rem);text-decoration:none;width:100%;box-sizing:border-box;cursor:pointer;transition:color 125ms linear, border-color 125ms linear, background-color 125ms linear, box-shadow 125ms linear}.cat-button:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-button-content{display:flex;flex-direction:column;min-width:0}.cat-button-content-inner{word-wrap:break-word;word-break:break-word}.cat-button-ellipsed .cat-button-content-inner{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.cat-button-disabled{cursor:not-allowed}.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-group-button-first{border-top-right-radius:0;border-bottom-right-radius:0}.cat-group-button-middle{border-radius:0}.cat-group-button-last{border-top-left-radius:0;border-bottom-left-radius:0}.cat-group-button:hover{z-index:1}.cat-group-button:focus-visible{z-index:2}.cat-button-filled{background-color:rgb(var(--bg));color:rgb(var(--fill));font-weight:var(--cat-font-weight-button, 600);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:greyscale}.cat-button-filled.cat-button-disabled{--bg:242, 244, 247;--fill:var(--cat-font-color-muted, 81, 92, 108)}.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.cat-button-disabled{--base:var(--cat-font-color-muted, 81, 92, 108);--text:var(--cat-font-color-muted, 81, 92, 108)}.cat-button-outlined:hover:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.1)}.cat-button-outlined.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.1)}.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:var(--cat-link-button-decoration, none)}.cat-button-text.cat-button-disabled{--text:var(--cat-font-color-muted, 81, 92, 108)}.cat-button-text:hover:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.1)}.cat-button-text.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.1)}.cat-button-link{background-color:transparent;color:rgb(var(--text))}.cat-button-link.cat-button-disabled{--text:var(--cat-font-color-muted, 81, 92, 108)}.cat-button-link:hover:not(.cat-button-disabled):not(.cat-button-loading){text-decoration:var(--cat-link-decoration-hover, underline)}.cat-button-link.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading){text-decoration:var(--cat-link-decoration-hover, underline)}.cat-button-primary{--bg:var(--cat-primary-bg, 0, 129, 148);--fill:var(--cat-primary-fill, 255, 255, 255);--text:var(--cat-primary-text, 0, 129, 148);--base:var(--cat-primary-text, 0, 129, 148)}.cat-button-primary:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-primary-bg-hover, 1, 115, 132);--fill:var(--cat-primary-fill-hover, 255, 255, 255);--text:var(--cat-primary-text-hover, 1, 115, 132)}.cat-button-primary.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-primary:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-primary-bg-active, 2, 99, 113);--fill:var(--cat-primary-fill-active, 255, 255, 255);--text:var(--cat-primary-text-active, 2, 99, 113)}.cat-button-secondary{--bg:var(--cat-secondary-bg, 105, 118, 135);--fill:var(--cat-secondary-fill, 255, 255, 255);--text:var(--cat-secondary-text, 0, 0, 0);--base:var(--cat-secondary-bg, 105, 118, 135)}.cat-button-secondary:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-secondary-bg-hover, 105, 118, 135);--fill:var(--cat-secondary-fill-hover, 255, 255, 255);--text:var(--cat-secondary-text-hover, 0, 0, 0)}.cat-button-secondary.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-secondary:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-secondary-bg-active, 105, 118, 135);--fill:var(--cat-secondary-fill-active, 255, 255, 255);--text:var(--cat-secondary-text-active, 0, 0, 0)}.cat-button-info{--bg:var(--cat-success-bg, 0, 115, 230);--fill:var(--cat-success-fill, 255, 255, 255);--text:var(--cat-success-text, 0, 115, 230);--base:var(--cat-success-text, 0, 115, 230)}.cat-button-info:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-success-bg-hover, 0, 107, 227);--fill:var(--cat-success-fill-hover, 255, 255, 255);--text:var(--cat-success-text-hover, 0, 107, 227)}.cat-button-info.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-info:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-success-bg-active, 0, 96, 223);--fill:var(--cat-success-fill-active, 255, 255, 255);--text:var(--cat-success-text-active, 0, 96, 223)}.cat-button-success{--bg:var(--cat-success-bg, 0, 132, 88);--fill:var(--cat-success-fill, 255, 255, 255);--text:var(--cat-success-text, 0, 132, 88);--base:var(--cat-success-text, 0, 132, 88)}.cat-button-success:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-success-bg-hover, 0, 117, 78);--fill:var(--cat-success-fill-hover, 255, 255, 255);--text:var(--cat-success-text-hover, 0, 117, 78)}.cat-button-success.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-success:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-success-bg-active, 0, 105, 70);--fill:var(--cat-success-fill-active, 255, 255, 255);--text:var(--cat-success-text-active, 0, 105, 70)}.cat-button-warning{--bg:var(--cat-warning-bg, 255, 206, 128);--fill:var(--cat-warning-fill, 0, 0, 0);--text:var(--cat-warning-text, 159, 97, 0);--base:var(--cat-warning-text, 159, 97, 0)}.cat-button-warning:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-warning-bg-hover, 255, 214, 148);--fill:var(--cat-warning-fill-hover, 0, 0, 0);--text:var(--cat-warning-text-hover, 159, 97, 0)}.cat-button-warning.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-warning:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-warning-bg-active, 255, 222, 168);--fill:var(--cat-warning-fill-active, 0, 0, 0);--text:var(--cat-warning-text-active, 159, 97, 0)}.cat-button-danger{--bg:var(--cat-danger-bg, 217, 52, 13);--fill:var(--cat-danger-fill, 255, 255, 255);--text:var(--cat-danger-text, 217, 52, 13);--base:var(--cat-danger-text, 217, 52, 13)}.cat-button-danger:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-danger-bg-hover, 194, 46, 11);--fill:var(--cat-danger-fill-hover, 255, 255, 255);--text:var(--cat-danger-text-hover, 194, 46, 11)}.cat-button-danger.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-danger:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-danger-bg-active, 174, 42, 10);--fill:var(--cat-danger-fill-active, 255, 255, 255);--text:var(--cat-danger-text-active, 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.1875rem 0.25rem;font-size:0.875rem;line-height:1.125rem;gap:0.25rem}.cat-button-xs.cat-button-icon{width:1.5rem;height:1.5rem;padding:0}:host(.cat-button-pull[size=xs]){margin:-0.1875rem -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.1875rem;margin-bottom:-0.1875rem}:host(.cat-button-pull-t[size=xs]){margin-top:-0.1875rem}:host(.cat-button-pull-l[size=xs]){margin-left:-0.25rem}:host(.cat-button-pull-b[size=xs]){margin-bottom:-0.1875rem}: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;gap:0.25rem}.cat-button-s cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-s.cat-button-icon{width:2rem;height:2rem;padding:0}: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;gap:0.25rem}.cat-button-m cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-m.cat-button-icon{width:2.5rem;height:2.5rem;padding:0}: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;gap:0.25rem}.cat-button-l cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-l.cat-button-icon{width:3rem;height:3rem;padding:0}: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;gap:0.25rem}.cat-button-xl.cat-button-icon{width:3.5rem;height:3.5rem;padding:0}: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}:host(.cat-tab)::part(button){padding:1.125rem 0.75rem;--cat-secondary-bg:transparent;--cat-primary-text:transparent;--cat-danger-text:transparent}:host(.cat-tab)::part(content)::before{content:attr(data-text);content:attr(data-text)/"";height:0;visibility:hidden;overflow:hidden;user-select:none;pointer-events:none;font-weight:700}:host(.cat-text-left) .cat-button{justify-content:left}:host(.cat-text-right) .cat-button{justify-content:right}:host(.cat-nav-item){width:100%}:host(.cat-nav-item) .cat-button{box-shadow:none;justify-content:left;gap:0.5rem}:host(.cat-nav-item) .cat-button:focus-visible{outline-offset:-2px}';const qt=class{constructor(e){t(this,e);this.catClick=a(this,"catClick",7);this.catFocus=a(this,"catFocus",7);this.catBlur=a(this,"catBlur",7);this._iconOnly=true;this.variant="outlined";this.color="secondary";this.active=false;this.size="m";this.name=undefined;this.value=undefined;this.disabled=false;this.loading=false;this.submit=false;this.noEllipsis=false;this.round=false;this.url=undefined;this.urlTarget=undefined;this.icon=undefined;this.iconOnly=false;this.iconRight=false;this.buttonId=undefined;this.a11yLabel=undefined;this.a11yCurrent=undefined;this.nativeAttributes=undefined;this.nativeContentAttributes=undefined;this.buttonGroupPosition=undefined}onIconOnlyChanged(t){this.mediaQueryList?.removeEventListener("change",this.mediaQueryListener);this.mediaQueryList=undefined;this.mediaQueryListener=undefined;if(Wt(t)){this.mediaMatcher??(this.mediaMatcher=new Gt);this.mediaQueryList=this.mediaMatcher.matchMedia(Pt[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){z.warn("[A11y] Missing ARIA label on icon button",this)}}haltDisabledEvents(t){if(this.disabled||this.loading){t.preventDefault();t.stopImmediatePropagation()}}async doFocus(t){this.button.focus(t)}async doBlur(){this.button.blur()}async doClick(){this.button.click()}render(){if(this.url){return e("a",{...this.nativeAttributes,ref:t=>this.button=t,href:this.disabled?undefined:this.url,target:this.urlTarget,"aria-disabled":this.disabled?"true":null,"aria-label":this.a11yLabel,"aria-current":this.a11yCurrent,id:this.buttonId,part:"button",class:{"cat-button":true,"cat-button-active":this.active,"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",{...this.nativeAttributes,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,"aria-current":this.a11yCurrent,id:this.buttonId,part:"button",class:{"cat-button":true,"cat-button-active":this.active,"cat-button-icon":this.isIconButton,"cat-button-round":this.round??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),[`cat-group-button-${this.buttonGroupPosition}`]:Boolean(this.buttonGroupPosition),"cat-group-button":Boolean(this.buttonGroupPosition)},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,part:"prefix"}):null,this.isIconButton?e("cat-icon",{icon:this.icon,size:this.iconSize}):e("span",{class:"cat-button-content",part:"content",...this.nativeContentAttributes},e("span",{class:"cat-button-content-inner"},e("slot",null))),this.hasSuffixIcon?e("cat-icon",{icon:this.icon,size:this.iconSize,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"]}}};qt.style=Yt;const Vt=":host{position:relative;display:inline-flex;vertical-align:middle}::slotted(cat-button[variant=outlined]),::slotted(cat-button:not([variant])){margin-right:-1px}::slotted(cat-button[variant=outlined]:last-child),::slotted(cat-button:not([variant]):last-child){margin-right:0}";const Zt=class{constructor(e){t(this,e);this.formElements=[];this.a11yLabel=undefined}render(){return e(r,{role:"group","aria-label":this.a11yLabel},e("slot",{onSlotchange:this.onSlotChange.bind(this)}))}onSlotChange(){this.formElements=Array.from(this.hostElement.querySelectorAll("cat-button"));this.formElements.forEach(((t,e)=>{t.buttonGroupPosition=e===0?"first":e===this.formElements.length-1?"last":"middle"}))}get hostElement(){return i(this)}};Zt.style=Vt;const Xt=":host{display:block;border-radius:var(--cat-border-radius-l, 0.5rem);background-color:white;padding:1.25rem}:host([hidden]){display:none}::slotted(:last-child){margin-bottom:0 !important}::slotted(nav),::slotted(nav:last-child){margin:-1rem -1rem !important}::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 Qt=class{constructor(e){t(this,e)}render(){return e("slot",null)}};Qt.style=Xt;const te=t=>{const{id:r,hint:i,slottedHint:a,errorMap:n}=t;const o=Object.entries(n||{});return e("div",{"aria-live":"polite",id:r+"-hint",class:"hint-section"},o.length?o.map((([r,i])=>e("p",{class:(t.class??"")+" input-hint cat-text-danger"},I.t(`error.${r}`,i)))):[i&&(Array.isArray(i)?i.map((r=>e("p",{class:(t.class??"")+" input-hint"},r))):e("p",{class:(t.class??"")+" input-hint"},i)),a])};const ee=".hint-wrapper{flex:0 1 auto;display:flex;gap:0.5rem}.hint-section{flex:1 1 auto;display:flex;flex-direction:column;gap:0.25rem;color:rgb(var(--cat-font-color-muted, 81, 92, 108));font-size:0.875rem;line-height:1.125rem}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){margin:0 !important}:host{display:flex;flex-direction:column;gap:0.5rem}: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-placeholder{width:calc(1.25rem + 2px);flex-shrink:0}.box{flex:0 0 auto;display:flex;position:relative;height:1.25rem;width:1.25rem;background-color:white;border:1px solid rgb(var(--cat-border-color-dark, 215, 219, 224));border-radius:var(--cat-border-radius-s, 0.125rem);transition:background-color 125ms ease, border-color 125ms 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 125ms ease;width:50%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%) scale(0.99)}:checked+.box{background-color:rgb(var(--cat-primary-bg, 0, 129, 148));border-color:rgb(var(--cat-primary-bg, 0, 129, 148));stroke:rgb(var(--cat-primary-fill, 255, 255, 255))}:checked+.box .check{stroke-dashoffset:0}:indeterminate+.box{background-color:rgb(var(--cat-primary-bg, 0, 129, 148));border-color:rgb(var(--cat-primary-bg, 0, 129, 148));stroke:rgb(var(--cat-primary-fill, 255, 255, 255))}:indeterminate+.box .check{stroke-dashoffset:16px}:indeterminate+.box .dash{stroke-dashoffset:0}:focus-visible+.box{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.is-disabled .box{background-color:#f2f4f7;border-color:rgb(var(--cat-border-color-dark, 215, 219, 224));stroke:rgb(var(--cat-font-color-muted, 81, 92, 108))}:host(.cat-error) .box{border:1px solid rgb(var(--cat-danger-bg, 217, 52, 13))}:host(.cat-error) :checked+.box,:host(.cat-error) :indeterminate+.box{background-color:rgb(var(--cat-danger-bg, 217, 52, 13));border-color:rgb(var(--cat-danger-bg, 217, 52, 13));stroke:rgb(var(--cat-danger-fill, 255, 255, 255))}.label{flex:1 1 auto;min-width:0}.is-hidden .label{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.is-disabled{cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}";let re=0;const ie=class{constructor(e){t(this,e);this.catChange=a(this,"catChange",7);this.catFocus=a(this,"catFocus",7);this.catBlur=a(this,"catBlur",7);this._id=`cat-checkbox-${re++}`;this.hasSlottedLabel=false;this.hasSlottedHint=false;this.checked=false;this.indeterminate=false;this.disabled=false;this.identifier=undefined;this.label="";this.labelHidden=false;this.name=undefined;this.required=false;this.value=undefined;this.noValue=undefined;this.resolvedValue=null;this.hint=undefined;this.labelLeft=false;this.nativeAttributes=undefined}get id(){return this.identifier||this._id}componentWillLoad(){this.updateResolved()}componentWillRender(){this.hasSlottedLabel=!!this.hostElement.querySelector('[slot="label"]');this.hasSlottedHint=!!this.hostElement.querySelector('[slot="hint"]');if(!this.label&&!this.hasSlottedLabel){z.warn("[A11y] Missing ARIA label on checkbox",this)}}async doFocus(t){this.input.focus(t)}async doBlur(){this.input.blur()}render(){return e(r,null,e("label",{htmlFor:this.id,class:{"is-hidden":this.labelHidden,"is-disabled":this.disabled,"label-left":this.labelLeft}},e("input",{...this.nativeAttributes,part:"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,indeterminate:this.indeterminate,onInput:this.onInput.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlur.bind(this),"aria-describedby":this.hasHint?this.id+"-hint":undefined}),e("span",{class:"box","aria-hidden":"true"},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.hasHint&&e("div",{class:{"hint-wrapper":true,"label-left":this.labelLeft}},e("div",{class:"box-placeholder"}),e(te,{id:this.id,hint:this.hint,slottedHint:this.hasSlottedHint&&e("slot",{name:"hint"})})))}get hasHint(){return!!this.hint||!!this.hasSlottedHint}onInput(){this.checked=this.input.checked;this.indeterminate=this.input.indeterminate;this.updateResolved();this.catChange.emit(this.resolvedValue)}onFocus(t){this.catFocus.emit(t)}onBlur(t){this.catBlur.emit(t)}updateResolved(){this.resolvedValue=this.checked?this.value??true:this.noValue??false}get hostElement(){return i(this)}};ie.style=ee;var ae=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"];var ne={_disable:[],allowInput:false,allowInvalidPreload:false,altFormat:"F j, Y",altInput:false,altInputClass:"form-control input",animate:typeof window==="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:true,clickOpens:true,closeOnSelect:true,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:false,enableSeconds:false,enableTime:false,errorHandler:function(t){return typeof console!=="undefined"&&console.warn(t)},getWeek:function(t){var e=new Date(t.getTime());e.setHours(0,0,0,0);e.setDate(e.getDate()+3-(e.getDay()+6)%7);var r=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-r.getTime())/864e5-3+(r.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:false,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"",noCalendar:false,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:undefined,prevArrow:"",shorthandCurrentMonth:false,showMonths:1,static:false,time_24hr:false,weekNumbers:false,wrap:false};var oe={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(t){var e=t%100;if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:false};var se=function(t,e){if(e===void 0){e=2}return("000"+t).slice(e*-1)};var le=function(t){return t===true?1:0};function ce(t,e){var r;return function(){var i=this;var a=arguments;clearTimeout(r);r=setTimeout((function(){return t.apply(i,a)}),e)}}var de=function(t){return t instanceof Array?t:[t]};function he(t,e,r){if(r===true)return t.classList.add(e);t.classList.remove(e)}function ue(t,e,r){var i=window.document.createElement(t);e=e||"";r=r||"";i.className=e;if(r!==undefined)i.textContent=r;return i}function fe(t){while(t.firstChild)t.removeChild(t.firstChild)}function pe(t,e){if(e(t))return t;else if(t.parentNode)return pe(t.parentNode,e);return undefined}function me(t,e){var r=ue("div","numInputWrapper"),i=ue("input","numInput "+t),a=ue("span","arrowUp"),n=ue("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1){i.type="number"}else{i.type="text";i.pattern="\\d*"}if(e!==undefined)for(var o in e)i.setAttribute(o,e[o]);r.appendChild(i);r.appendChild(a);r.appendChild(n);return r}function be(t){try{if(typeof t.composedPath==="function"){var e=t.composedPath();return e[0]}return t.target}catch(e){return t.target}}var ve=function(){return undefined};var ge=function(t,e,r){return r.months[e?"shorthand":"longhand"][t]};var ye={D:ve,F:function(t,e,r){t.setMonth(r.months.longhand.indexOf(e))},G:function(t,e){t.setHours((t.getHours()>=12?12:0)+parseFloat(e))},H:function(t,e){t.setHours(parseFloat(e))},J:function(t,e){t.setDate(parseFloat(e))},K:function(t,e,r){t.setHours(t.getHours()%12+12*le(new RegExp(r.amPM[1],"i").test(e)))},M:function(t,e,r){t.setMonth(r.months.shorthand.indexOf(e))},S:function(t,e){t.setSeconds(parseFloat(e))},U:function(t,e){return new Date(parseFloat(e)*1e3)},W:function(t,e,r){var i=parseInt(e);var a=new Date(t.getFullYear(),0,2+(i-1)*7,0,0,0,0);a.setDate(a.getDate()-a.getDay()+r.firstDayOfWeek);return a},Y:function(t,e){t.setFullYear(parseFloat(e))},Z:function(t,e){return new Date(e)},d:function(t,e){t.setDate(parseFloat(e))},h:function(t,e){t.setHours((t.getHours()>=12?12:0)+parseFloat(e))},i:function(t,e){t.setMinutes(parseFloat(e))},j:function(t,e){t.setDate(parseFloat(e))},l:ve,m:function(t,e){t.setMonth(parseFloat(e)-1)},n:function(t,e){t.setMonth(parseFloat(e)-1)},s:function(t,e){t.setSeconds(parseFloat(e))},u:function(t,e){return new Date(parseFloat(e))},w:ve,y:function(t,e){t.setFullYear(2e3+parseFloat(e))}};var xe={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"};var we={Z:function(t){return t.toISOString()},D:function(t,e,r){return e.weekdays.shorthand[we.w(t,e,r)]},F:function(t,e,r){return ge(we.n(t,e,r)-1,false,e)},G:function(t,e,r){return se(we.h(t,e,r))},H:function(t){return se(t.getHours())},J:function(t,e){return e.ordinal!==undefined?t.getDate()+e.ordinal(t.getDate()):t.getDate()},K:function(t,e){return e.amPM[le(t.getHours()>11)]},M:function(t,e){return ge(t.getMonth(),true,e)},S:function(t){return se(t.getSeconds())},U:function(t){return t.getTime()/1e3},W:function(t,e,r){return r.getWeek(t)},Y:function(t){return se(t.getFullYear(),4)},d:function(t){return se(t.getDate())},h:function(t){return t.getHours()%12?t.getHours()%12:12},i:function(t){return se(t.getMinutes())},j:function(t){return t.getDate()},l:function(t,e){return e.weekdays.longhand[t.getDay()]},m:function(t){return se(t.getMonth()+1)},n:function(t){return t.getMonth()+1},s:function(t){return t.getSeconds()},u:function(t){return t.getTime()},w:function(t){return t.getDay()},y:function(t){return String(t.getFullYear()).substring(2)}};var ke=function(t){var e=t.config,r=e===void 0?ne:e,i=t.l10n,a=i===void 0?oe:i,n=t.isMobile,o=n===void 0?false:n;return function(t,e,i){var n=i||a;if(r.formatDate!==undefined&&!o){return r.formatDate(t,e,n)}return e.split("").map((function(e,i,a){return we[e]&&a[i-1]!=="\\"?we[e](t,n,r):e!=="\\"?e:""})).join("")}};var ze=function(t){var e=t.config,r=e===void 0?ne:e,i=t.l10n,a=i===void 0?oe:i;return function(t,e,i,n){if(t!==0&&!t)return undefined;var o=n||a;var s;var l=t;if(t instanceof Date)s=new Date(t.getTime());else if(typeof t!=="string"&&t.toFixed!==undefined)s=new Date(t);else if(typeof t==="string"){var c=e||(r||ne).dateFormat;var d=String(t).trim();if(d==="today"){s=new Date;i=true}else if(r&&r.parseDate){s=r.parseDate(t,c)}else if(/Z$/.test(d)||/GMT$/.test(d)){s=new Date(t)}else{var h=void 0,u=[];for(var f=0,p=0,m="";fMath.min(e,r)&&t=0?new Date:new Date(r.config.minDate.getTime());var i=Ae(r.config);e.setHours(i.hours,i.minutes,i.seconds,e.getMilliseconds());r.selectedDates=[e];r.latestSelectedDateObj=e}if(t!==undefined&&t.type!=="blur"){$t(t)}var a=r._input.value;h();zt();if(r._input.value!==a){r._debouncedChange()}}function c(t,e){return t%12+12*le(e===r.l10n.amPM[1])}function d(t){switch(t%24){case 0:case 12:return 12;default:return t%12}}function h(){if(r.hourElement===undefined||r.minuteElement===undefined)return;var t=(parseInt(r.hourElement.value.slice(-2),10)||0)%24,e=(parseInt(r.minuteElement.value,10)||0)%60,i=r.secondElement!==undefined?(parseInt(r.secondElement.value,10)||0)%60:0;if(r.amPM!==undefined){t=c(t,r.amPM.textContent)}var a=r.config.minTime!==undefined||r.config.minDate&&r.minDateHasTime&&r.latestSelectedDateObj&&Ie(r.latestSelectedDateObj,r.config.minDate,true)===0;var n=r.config.maxTime!==undefined||r.config.maxDate&&r.maxDateHasTime&&r.latestSelectedDateObj&&Ie(r.latestSelectedDateObj,r.config.maxDate,true)===0;if(r.config.maxTime!==undefined&&r.config.minTime!==undefined&&r.config.minTime>r.config.maxTime){var o=Ce(r.config.minTime.getHours(),r.config.minTime.getMinutes(),r.config.minTime.getSeconds());var s=Ce(r.config.maxTime.getHours(),r.config.maxTime.getMinutes(),r.config.maxTime.getSeconds());var l=Ce(t,e,i);if(l>s&&l=12)];if(r.secondElement!==undefined)r.secondElement.value=se(i)}function p(t){var e=be(t);var r=parseInt(e.value)+(t.delta||0);if(r/1e3>1||t.key==="Enter"&&!/[^\d]/.test(r.toString())){_(r)}}function m(t,e,i,a){if(e instanceof Array)return e.forEach((function(e){return m(t,e,i,a)}));if(t instanceof Array)return t.forEach((function(t){return m(t,e,i,a)}));t.addEventListener(e,i,a);r._handlers.push({remove:function(){return t.removeEventListener(e,i,a)}})}function b(){vt("onChange")}function v(){if(r.config.wrap){["open","close","toggle","clear"].forEach((function(t){Array.prototype.forEach.call(r.element.querySelectorAll("[data-"+t+"]"),(function(e){return m(e,"click",r[t])}))}))}if(r.isMobile){mt();return}var t=ce(q,50);r._debouncedChange=ce(b,Te);if(r.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent))m(r.daysContainer,"mouseover",(function(t){if(r.config.mode==="range")Y(be(t))}));m(r._input,"keydown",J);if(r.calendarContainer!==undefined){m(r.calendarContainer,"keydown",J)}if(!r.config.inline&&!r.config.static)m(window,"resize",t);if(window.ontouchstart!==undefined)m(window.document,"touchstart",H);else m(window.document,"mousedown",H);m(window.document,"focus",H,{capture:true});if(r.config.clickOpens===true){m(r._input,"focus",r.open);m(r._input,"click",r.open)}if(r.daysContainer!==undefined){m(r.monthNav,"click",It);m(r.monthNav,["keyup","increment"],p);m(r.daysContainer,"click",ot)}if(r.timeContainer!==undefined&&r.minuteElement!==undefined&&r.hourElement!==undefined){var e=function(t){return be(t).select()};m(r.timeContainer,["increment"],l);m(r.timeContainer,"blur",l,{capture:true});m(r.timeContainer,"click",y);m([r.hourElement,r.minuteElement],["focus","click"],e);if(r.secondElement!==undefined)m(r.secondElement,"focus",(function(){return r.secondElement&&r.secondElement.select()}));if(r.amPM!==undefined){m(r.amPM,"click",(function(t){l(t)}))}}if(r.config.allowInput){m(r._input,"blur",G)}}function g(t,e){var i=t!==undefined?r.parseDate(t):r.latestSelectedDateObj||(r.config.minDate&&r.config.minDate>r.now?r.config.minDate:r.config.maxDate&&r.config.maxDate1);r.calendarContainer.appendChild(t);var n=r.config.appendTo!==undefined&&r.config.appendTo.nodeType!==undefined;if(r.config.inline||r.config.static){r.calendarContainer.classList.add(r.config.inline?"inline":"static");if(r.config.inline){if(!n&&r.element.parentNode)r.element.parentNode.insertBefore(r.calendarContainer,r._input.nextSibling);else if(r.config.appendTo!==undefined)r.config.appendTo.appendChild(r.calendarContainer)}if(r.config.static){var o=ue("div","flatpickr-wrapper");if(r.element.parentNode)r.element.parentNode.insertBefore(o,r.element);o.appendChild(r.element);if(r.altInput)o.appendChild(r.altInput);o.appendChild(r.calendarContainer)}}if(!r.config.static&&!r.config.inline)(r.config.appendTo!==undefined?r.config.appendTo:window.document.body).appendChild(r.calendarContainer)}function k(t,e,i,a){var n=U(e,true),o=ue("span",t,e.getDate().toString());o.dateObj=e;o.$i=a;o.setAttribute("aria-label",r.formatDate(e,r.config.ariaDateFormat));if(t.indexOf("hidden")===-1&&Ie(e,r.now)===0){r.todayDateElem=o;o.classList.add("today");o.setAttribute("aria-current","date")}if(n){o.tabIndex=-1;if(yt(e)){o.classList.add("selected");r.selectedDateElem=o;if(r.config.mode==="range"){he(o,"startRange",r.selectedDates[0]&&Ie(e,r.selectedDates[0],true)===0);he(o,"endRange",r.selectedDates[1]&&Ie(e,r.selectedDates[1],true)===0);if(t==="nextMonthDay")o.classList.add("inRange")}}}else{o.classList.add("flatpickr-disabled")}if(r.config.mode==="range"){if(xt(e)&&!yt(e))o.classList.add("inRange")}if(r.weekNumbers&&r.config.showMonths===1&&t!=="prevMonthDay"&&a%7===6){r.weekNumbers.insertAdjacentHTML("beforeend",""+r.config.getWeek(e)+"")}vt("onDayCreate",o);return o}function z(t){t.focus();if(r.config.mode==="range")Y(t)}function I(t){var e=t>0?0:r.config.showMonths-1;var i=t>0?r.config.showMonths:-1;for(var a=e;a!=i;a+=t){var n=r.daysContainer.children[a];var o=t>0?0:n.children.length-1;var s=t>0?n.children.length:-1;for(var l=o;l!=s;l+=t){var c=n.children[l];if(c.className.indexOf("hidden")===-1&&U(c.dateObj))return c}}return undefined}function $(t,e){var i=t.className.indexOf("Month")===-1?t.dateObj.getMonth():r.currentMonth;var a=e>0?r.config.showMonths:-1;var n=e>0?1:-1;for(var o=i-r.currentMonth;o!=a;o+=n){var s=r.daysContainer.children[o];var l=i-r.currentMonth===o?t.$i+e:e<0?s.children.length-1:0;var c=s.children.length;for(var d=l;d>=0&&d0?c:-1);d+=n){var h=s.children[d];if(h.className.indexOf("hidden")===-1&&U(h.dateObj)&&Math.abs(t.$i-d)>=Math.abs(e))return z(h)}}r.changeMonth(n);C(I(n),0);return undefined}function C(t,e){var i=n();var a=K(i||document.body);var o=t!==undefined?t:a?i:r.selectedDateElem!==undefined&&K(r.selectedDateElem)?r.selectedDateElem:r.todayDateElem!==undefined&&K(r.todayDateElem)?r.todayDateElem:I(e>0?1:-1);if(o===undefined){r._input.focus()}else if(!a){z(o)}else{$(o,e)}}function M(t,e){var i=(new Date(t,e,1).getDay()-r.l10n.firstDayOfWeek+7)%7;var a=r.utils.getDaysInMonth((e-1+12)%12,t);var n=r.utils.getDaysInMonth(e,t),o=window.document.createDocumentFragment(),s=r.config.showMonths>1,l=s?"prevMonthDay hidden":"prevMonthDay",c=s?"nextMonthDay hidden":"nextMonthDay";var d=a+1-i,h=0;for(;d<=a;d++,h++){o.appendChild(k("flatpickr-day "+l,new Date(t,e-1,d),d,h))}for(d=1;d<=n;d++,h++){o.appendChild(k("flatpickr-day",new Date(t,e,d),d,h))}for(var u=n+1;u<=42-i&&(r.config.showMonths===1||h%7!==0);u++,h++){o.appendChild(k("flatpickr-day "+c,new Date(t,e+1,u%n),u,h))}var f=ue("div","dayContainer");f.appendChild(o);return f}function D(){if(r.daysContainer===undefined){return}fe(r.daysContainer);if(r.weekNumbers)fe(r.weekNumbers);var t=document.createDocumentFragment();for(var e=0;e1||r.config.monthSelectorType!=="dropdown")return;var t=function(t){if(r.config.minDate!==undefined&&r.currentYear===r.config.minDate.getFullYear()&&tr.config.maxDate.getMonth())};r.monthsDropdownContainer.tabIndex=-1;r.monthsDropdownContainer.innerHTML="";for(var e=0;e<12;e++){if(!t(e))continue;var i=ue("option","flatpickr-monthDropdown-month");i.value=new Date(r.currentYear,e).getMonth().toString();i.textContent=ge(e,r.config.shorthandCurrentMonth,r.l10n);i.tabIndex=-1;if(r.currentMonth===e){i.selected=true}r.monthsDropdownContainer.appendChild(i)}}function S(){var t=ue("div","flatpickr-month");var e=window.document.createDocumentFragment();var i;if(r.config.showMonths>1||r.config.monthSelectorType==="static"){i=ue("span","cur-month")}else{r.monthsDropdownContainer=ue("select","flatpickr-monthDropdown-months");r.monthsDropdownContainer.setAttribute("aria-label",r.l10n.monthAriaLabel);m(r.monthsDropdownContainer,"change",(function(t){var e=be(t);var i=parseInt(e.value,10);r.changeMonth(i-r.currentMonth);vt("onMonthChange")}));A();i=r.monthsDropdownContainer}var a=me("cur-year",{tabindex:"-1"});var n=a.getElementsByTagName("input")[0];n.setAttribute("aria-label",r.l10n.yearAriaLabel);if(r.config.minDate){n.setAttribute("min",r.config.minDate.getFullYear().toString())}if(r.config.maxDate){n.setAttribute("max",r.config.maxDate.getFullYear().toString());n.disabled=!!r.config.minDate&&r.config.minDate.getFullYear()===r.config.maxDate.getFullYear()}var o=ue("div","flatpickr-current-month");o.appendChild(i);o.appendChild(a);e.appendChild(o);t.appendChild(e);return{container:t,yearElement:n,monthElement:i}}function R(){fe(r.monthNav);r.monthNav.appendChild(r.prevMonthNav);if(r.config.showMonths){r.yearElements=[];r.monthElements=[]}for(var t=r.config.showMonths;t--;){var e=S();r.yearElements.push(e.yearElement);r.monthElements.push(e.monthElement);r.monthNav.appendChild(e.container)}r.monthNav.appendChild(r.nextMonthNav)}function T(){r.monthNav=ue("div","flatpickr-months");r.yearElements=[];r.monthElements=[];r.prevMonthNav=ue("span","flatpickr-prev-month");r.prevMonthNav.innerHTML=r.config.prevArrow;r.nextMonthNav=ue("span","flatpickr-next-month");r.nextMonthNav.innerHTML=r.config.nextArrow;R();Object.defineProperty(r,"_hidePrevMonthArrow",{get:function(){return r.__hidePrevMonthArrow},set:function(t){if(r.__hidePrevMonthArrow!==t){he(r.prevMonthNav,"flatpickr-disabled",t);r.__hidePrevMonthArrow=t}}});Object.defineProperty(r,"_hideNextMonthArrow",{get:function(){return r.__hideNextMonthArrow},set:function(t){if(r.__hideNextMonthArrow!==t){he(r.nextMonthNav,"flatpickr-disabled",t);r.__hideNextMonthArrow=t}}});r.currentYearElement=r.yearElements[0];wt();return r.monthNav}function F(){r.calendarContainer.classList.add("hasTime");if(r.config.noCalendar)r.calendarContainer.classList.add("noCalendar");var t=Ae(r.config);r.timeContainer=ue("div","flatpickr-time");r.timeContainer.tabIndex=-1;var e=ue("span","flatpickr-time-separator",":");var i=me("flatpickr-hour",{"aria-label":r.l10n.hourAriaLabel});r.hourElement=i.getElementsByTagName("input")[0];var a=me("flatpickr-minute",{"aria-label":r.l10n.minuteAriaLabel});r.minuteElement=a.getElementsByTagName("input")[0];r.hourElement.tabIndex=r.minuteElement.tabIndex=-1;r.hourElement.value=se(r.latestSelectedDateObj?r.latestSelectedDateObj.getHours():r.config.time_24hr?t.hours:d(t.hours));r.minuteElement.value=se(r.latestSelectedDateObj?r.latestSelectedDateObj.getMinutes():t.minutes);r.hourElement.setAttribute("step",r.config.hourIncrement.toString());r.minuteElement.setAttribute("step",r.config.minuteIncrement.toString());r.hourElement.setAttribute("min",r.config.time_24hr?"0":"1");r.hourElement.setAttribute("max",r.config.time_24hr?"23":"12");r.hourElement.setAttribute("maxlength","2");r.minuteElement.setAttribute("min","0");r.minuteElement.setAttribute("max","59");r.minuteElement.setAttribute("maxlength","2");r.timeContainer.appendChild(i);r.timeContainer.appendChild(e);r.timeContainer.appendChild(a);if(r.config.time_24hr)r.timeContainer.classList.add("time24hr");if(r.config.enableSeconds){r.timeContainer.classList.add("hasSeconds");var n=me("flatpickr-second");r.secondElement=n.getElementsByTagName("input")[0];r.secondElement.value=se(r.latestSelectedDateObj?r.latestSelectedDateObj.getSeconds():t.seconds);r.secondElement.setAttribute("step",r.minuteElement.getAttribute("step"));r.secondElement.setAttribute("min","0");r.secondElement.setAttribute("max","59");r.secondElement.setAttribute("maxlength","2");r.timeContainer.appendChild(ue("span","flatpickr-time-separator",":"));r.timeContainer.appendChild(n)}if(!r.config.time_24hr){r.amPM=ue("span","flatpickr-am-pm",r.l10n.amPM[le((r.latestSelectedDateObj?r.hourElement.value:r.config.defaultHour)>11)]);r.amPM.title=r.l10n.toggleTitle;r.amPM.tabIndex=-1;r.timeContainer.appendChild(r.amPM)}return r.timeContainer}function E(){if(!r.weekdayContainer)r.weekdayContainer=ue("div","flatpickr-weekdays");else fe(r.weekdayContainer);for(var t=r.config.showMonths;t--;){var e=ue("div","flatpickr-weekdaycontainer");r.weekdayContainer.appendChild(e)}B();return r.weekdayContainer}function B(){if(!r.weekdayContainer){return}var t=r.l10n.firstDayOfWeek;var e=Re(r.l10n.weekdays.shorthand);if(t>0&&t\n "+e.join("")+"\n \n "}}function O(){r.calendarContainer.classList.add("hasWeeks");var t=ue("div","flatpickr-weekwrapper");t.appendChild(ue("span","flatpickr-weekday",r.l10n.weekAbbreviation));var e=ue("div","flatpickr-weeks");t.appendChild(e);return{weekWrapper:t,weekNumbers:e}}function L(t,e){if(e===void 0){e=true}var i=e?t:t-r.currentMonth;if(i<0&&r._hidePrevMonthArrow===true||i>0&&r._hideNextMonthArrow===true)return;r.currentMonth+=i;if(r.currentMonth<0||r.currentMonth>11){r.currentYear+=r.currentMonth>11?1:-1;r.currentMonth=(r.currentMonth+12)%12;vt("onYearChange");A()}D();vt("onMonthChange");wt()}function N(t,e){if(t===void 0){t=true}if(e===void 0){e=true}r.input.value="";if(r.altInput!==undefined)r.altInput.value="";if(r.mobileInput!==undefined)r.mobileInput.value="";r.selectedDates=[];r.latestSelectedDateObj=undefined;if(e===true){r.currentYear=r._initialDate.getFullYear();r.currentMonth=r._initialDate.getMonth()}if(r.config.enableTime===true){var i=Ae(r.config),a=i.hours,n=i.minutes,o=i.seconds;f(a,n,o)}r.redraw();if(t)vt("onChange")}function j(){r.isOpen=false;if(!r.isMobile){if(r.calendarContainer!==undefined){r.calendarContainer.classList.remove("open")}if(r._input!==undefined){r._input.classList.remove("active")}}vt("onClose")}function P(){if(r.config!==undefined)vt("onDestroy");for(var t=r._handlers.length;t--;){r._handlers[t].remove()}r._handlers=[];if(r.mobileInput){if(r.mobileInput.parentNode)r.mobileInput.parentNode.removeChild(r.mobileInput);r.mobileInput=undefined}else if(r.calendarContainer&&r.calendarContainer.parentNode){if(r.config.static&&r.calendarContainer.parentNode){var e=r.calendarContainer.parentNode;e.lastChild&&e.removeChild(e.lastChild);if(e.parentNode){while(e.firstChild)e.parentNode.insertBefore(e.firstChild,e);e.parentNode.removeChild(e)}}else r.calendarContainer.parentNode.removeChild(r.calendarContainer)}if(r.altInput){r.input.type="text";if(r.altInput.parentNode)r.altInput.parentNode.removeChild(r.altInput);delete r.altInput}if(r.input){r.input.type=r.input._type;r.input.classList.remove("flatpickr-input");r.input.removeAttribute("readonly")}["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(t){try{delete r[t]}catch(t){}}))}function W(t){return r.calendarContainer.contains(t)}function H(t){if(r.isOpen&&!r.config.inline){var e=be(t);var i=W(e);var a=e===r.input||e===r.altInput||r.element.contains(e)||t.path&&t.path.indexOf&&(~t.path.indexOf(r.input)||~t.path.indexOf(r.altInput));var n=!a&&!i&&!W(t.relatedTarget);var o=!r.config.ignoredFocusElements.some((function(t){return t.contains(e)}));if(n&&o){if(r.config.allowInput){r.setDate(r._input.value,false,r.config.altInput?r.config.altFormat:r.config.dateFormat)}if(r.timeContainer!==undefined&&r.minuteElement!==undefined&&r.hourElement!==undefined&&r.input.value!==""&&r.input.value!==undefined){l()}r.close();if(r.config&&r.config.mode==="range"&&r.selectedDates.length===1)r.clear(false)}}}function _(t){if(!t||r.config.minDate&&tr.config.maxDate.getFullYear())return;var e=t,i=r.currentYear!==e;r.currentYear=e||r.currentYear;if(r.config.maxDate&&r.currentYear===r.config.maxDate.getFullYear()){r.currentMonth=Math.min(r.config.maxDate.getMonth(),r.currentMonth)}else if(r.config.minDate&&r.currentYear===r.config.minDate.getFullYear()){r.currentMonth=Math.max(r.config.minDate.getMonth(),r.currentMonth)}if(i){r.redraw();vt("onYearChange");A()}}function U(t,e){var i;if(e===void 0){e=true}var a=r.parseDate(t,undefined,e);if(r.config.minDate&&a&&Ie(a,r.config.minDate,e!==undefined?e:!r.minDateHasTime)<0||r.config.maxDate&&a&&Ie(a,r.config.maxDate,e!==undefined?e:!r.maxDateHasTime)>0)return false;if(!r.config.enable&&r.config.disable.length===0)return true;if(a===undefined)return false;var n=!!r.config.enable,o=(i=r.config.enable)!==null&&i!==void 0?i:r.config.disable;for(var s=0,l=void 0;s=l.from.getTime()&&a.getTime()<=l.to.getTime())return n}return!n}function K(t){if(r.daysContainer!==undefined)return t.className.indexOf("hidden")===-1&&t.className.indexOf("flatpickr-disabled")===-1&&r.daysContainer.contains(t);return false}function G(t){var e=t.target===r._input;var i=r._input.value.trimEnd()!==kt();if(e&&i&&!(t.relatedTarget&&W(t.relatedTarget))){r.setDate(r._input.value,true,t.target===r.altInput?r.config.altFormat:r.config.dateFormat)}}function J(e){var i=be(e);var a=r.config.wrap?t.contains(i):i===r._input;var o=r.config.allowInput;var s=r.isOpen&&(!o||!a);var c=r.config.inline&&a&&!o;if(e.keyCode===13&&a){if(o){r.setDate(r._input.value,true,i===r.altInput?r.config.altFormat:r.config.dateFormat);r.close();return i.blur()}else{r.open()}}else if(W(i)||s||c){var d=!!r.timeContainer&&r.timeContainer.contains(i);switch(e.keyCode){case 13:if(d){e.preventDefault();l();nt()}else ot(e);break;case 27:e.preventDefault();nt();break;case 8:case 46:if(a&&!r.config.allowInput){e.preventDefault();r.clear()}break;case 37:case 39:if(!d&&!a){e.preventDefault();var u=n();if(r.daysContainer!==undefined&&(o===false||u&&K(u))){var f=e.keyCode===39?1:-1;if(!e.ctrlKey)C(undefined,f);else{e.stopPropagation();L(f);C(I(1),0)}}}else if(r.hourElement)r.hourElement.focus();break;case 38:case 40:e.preventDefault();var p=e.keyCode===40?1:-1;if(r.daysContainer&&i.$i!==undefined||i===r.input||i===r.altInput){if(e.ctrlKey){e.stopPropagation();_(r.currentYear-p);C(I(1),0)}else if(!d)C(undefined,p*7)}else if(i===r.currentYearElement){_(r.currentYear-p)}else if(r.config.enableTime){if(!d&&r.hourElement)r.hourElement.focus();l(e);r._debouncedChange()}break;case 9:if(d){var m=[r.hourElement,r.minuteElement,r.secondElement,r.amPM].concat(r.pluginElements).filter((function(t){return t}));var b=m.indexOf(i);if(b!==-1){var v=m[b+(e.shiftKey?-1:1)];e.preventDefault();(v||r._input).focus()}}else if(!r.config.noCalendar&&r.daysContainer&&r.daysContainer.contains(i)&&e.shiftKey){e.preventDefault();r._input.focus()}break}}if(r.amPM!==undefined&&i===r.amPM){switch(e.key){case r.l10n.amPM[0].charAt(0):case r.l10n.amPM[0].charAt(0).toLowerCase():r.amPM.textContent=r.l10n.amPM[0];h();zt();break;case r.l10n.amPM[1].charAt(0):case r.l10n.amPM[1].charAt(0).toLowerCase():r.amPM.textContent=r.l10n.amPM[1];h();zt();break}}if(a||W(i)){vt("onKeyDown",e)}}function Y(t,e){if(e===void 0){e="flatpickr-day"}if(r.selectedDates.length!==1||t&&(!t.classList.contains(e)||t.classList.contains("flatpickr-disabled")))return;var i=t?t.dateObj.getTime():r.days.firstElementChild.dateObj.getTime(),a=r.parseDate(r.selectedDates[0],undefined,true).getTime(),n=Math.min(i,r.selectedDates[0].getTime()),o=Math.max(i,r.selectedDates[0].getTime());var s=false;var l=0,c=0;for(var d=n;dn&&dl))l=d;else if(d>a&&(!c||d ."+e));h.forEach((function(e){var n=e.dateObj;var o=n.getTime();var d=l>0&&o0&&o>c;if(d){e.classList.add("notAllowed");["inRange","startRange","endRange"].forEach((function(t){e.classList.remove(t)}));return}else if(s&&!d)return;["startRange","inRange","endRange","notAllowed"].forEach((function(t){e.classList.remove(t)}));if(t!==undefined){t.classList.add(i<=r.selectedDates[0].getTime()?"startRange":"endRange");if(ai&&o===a)e.classList.add("endRange");if(o>=l&&(c===0||o<=c)&&$e(o,a,i))e.classList.add("inRange")}}))}function q(){if(r.isOpen&&!r.config.static&&!r.config.inline)et()}function V(t,e){if(e===void 0){e=r._positionElement}if(r.isMobile===true){if(t){t.preventDefault();var i=be(t);if(i){i.blur()}}if(r.mobileInput!==undefined){r.mobileInput.focus();r.mobileInput.click()}vt("onOpen");return}else if(r._input.disabled||r.config.inline){return}var a=r.isOpen;r.isOpen=true;if(!a){r.calendarContainer.classList.add("open");r._input.classList.add("active");vt("onOpen");et(e)}if(r.config.enableTime===true&&r.config.noCalendar===true){if(r.config.allowInput===false&&(t===undefined||!r.timeContainer.contains(t.relatedTarget))){setTimeout((function(){return r.hourElement.select()}),50)}}}function Z(t){return function(e){var i=r.config["_"+t+"Date"]=r.parseDate(e,r.config.dateFormat);var a=r.config["_"+(t==="min"?"max":"min")+"Date"];if(i!==undefined){r[t==="min"?"minDateHasTime":"maxDateHasTime"]=i.getHours()>0||i.getMinutes()>0||i.getSeconds()>0}if(r.selectedDates){r.selectedDates=r.selectedDates.filter((function(t){return U(t)}));if(!r.selectedDates.length&&t==="min")u(i);zt()}if(r.daysContainer){at();if(i!==undefined)r.currentYearElement[t]=i.getFullYear().toString();else r.currentYearElement.removeAttribute(t);r.currentYearElement.disabled=!!a&&i!==undefined&&a.getFullYear()===i.getFullYear()}}}function X(){var i=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"];var a=Se(Se({},JSON.parse(JSON.stringify(t.dataset||{}))),e);var n={};r.config.parseDate=a.parseDate;r.config.formatDate=a.formatDate;Object.defineProperty(r.config,"enable",{get:function(){return r.config._enable},set:function(t){r.config._enable=ht(t)}});Object.defineProperty(r.config,"disable",{get:function(){return r.config._disable},set:function(t){r.config._disable=ht(t)}});var s=a.mode==="time";if(!a.dateFormat&&(a.enableTime||s)){var l=Be.defaultConfig.dateFormat||ne.dateFormat;n.dateFormat=a.noCalendar||s?"H:i"+(a.enableSeconds?":S":""):l+" H:i"+(a.enableSeconds?":S":"")}if(a.altInput&&(a.enableTime||s)&&!a.altFormat){var c=Be.defaultConfig.altFormat||ne.altFormat;n.altFormat=a.noCalendar||s?"h:i"+(a.enableSeconds?":S K":" K"):c+(" h:i"+(a.enableSeconds?":S":"")+" K")}Object.defineProperty(r.config,"minDate",{get:function(){return r.config._minDate},set:Z("min")});Object.defineProperty(r.config,"maxDate",{get:function(){return r.config._maxDate},set:Z("max")});var d=function(t){return function(e){r.config[t==="min"?"_minTime":"_maxTime"]=r.parseDate(e,"H:i:S")}};Object.defineProperty(r.config,"minTime",{get:function(){return r.config._minTime},set:d("min")});Object.defineProperty(r.config,"maxTime",{get:function(){return r.config._maxTime},set:d("max")});if(a.mode==="time"){r.config.noCalendar=true;r.config.enableTime=true}Object.assign(r.config,n,a);for(var h=0;h-1){r.config[f]=de(u[f]).map(o).concat(r.config[f])}else if(typeof a[f]==="undefined")r.config[f]=u[f]}}if(!a.altInputClass){r.config.altInputClass=Q().className+" "+r.config.altInputClass}vt("onParseConfig")}function Q(){return r.config.wrap?t.querySelector("[data-input]"):t}function tt(){if(typeof r.config.locale!=="object"&&typeof Be.l10ns[r.config.locale]==="undefined")r.config.errorHandler(new Error("flatpickr: invalid locale "+r.config.locale));r.l10n=Se(Se({},Be.l10ns.default),typeof r.config.locale==="object"?r.config.locale:r.config.locale!=="default"?Be.l10ns[r.config.locale]:undefined);xe.D="("+r.l10n.weekdays.shorthand.join("|")+")";xe.l="("+r.l10n.weekdays.longhand.join("|")+")";xe.M="("+r.l10n.months.shorthand.join("|")+")";xe.F="("+r.l10n.months.longhand.join("|")+")";xe.K="("+r.l10n.amPM[0]+"|"+r.l10n.amPM[1]+"|"+r.l10n.amPM[0].toLowerCase()+"|"+r.l10n.amPM[1].toLowerCase()+")";var i=Se(Se({},e),JSON.parse(JSON.stringify(t.dataset||{})));if(i.time_24hr===undefined&&Be.defaultConfig.time_24hr===undefined){r.config.time_24hr=r.l10n.time_24hr}r.formatDate=ke(r);r.parseDate=ze({config:r.config,l10n:r.l10n})}function et(t){if(typeof r.config.position==="function"){return void r.config.position(r,t)}if(r.calendarContainer===undefined)return;vt("onPreCalendarPosition");var e=t||r._positionElement;var i=Array.prototype.reduce.call(r.calendarContainer.children,(function(t,e){return t+e.offsetHeight}),0),a=r.calendarContainer.offsetWidth,n=r.config.position.split(" "),o=n[0],s=n.length>1?n[1]:null,l=e.getBoundingClientRect(),c=window.innerHeight-l.bottom,d=o==="above"||o!=="below"&&ci;var h=window.pageYOffset+l.top+(!d?e.offsetHeight+2:-i-2);he(r.calendarContainer,"arrowTop",!d);he(r.calendarContainer,"arrowBottom",d);if(r.config.inline)return;var u=window.pageXOffset+l.left;var f=false;var p=false;if(s==="center"){u-=(a-l.width)/2;f=true}else if(s==="right"){u-=a-l.width;p=true}he(r.calendarContainer,"arrowLeft",!f&&!p);he(r.calendarContainer,"arrowCenter",f);he(r.calendarContainer,"arrowRight",p);var m=window.document.body.offsetWidth-(window.pageXOffset+l.right);var b=u+a>window.document.body.offsetWidth;var v=m+a>window.document.body.offsetWidth;he(r.calendarContainer,"rightMost",b);if(r.config.static)return;r.calendarContainer.style.top=h+"px";if(!b){r.calendarContainer.style.left=u+"px";r.calendarContainer.style.right="auto"}else if(!v){r.calendarContainer.style.left="auto";r.calendarContainer.style.right=m+"px"}else{var g=rt();if(g===undefined)return;var y=window.document.body.offsetWidth;var x=Math.max(0,y/2-a/2);var w=".flatpickr-calendar.centerMost:before";var k=".flatpickr-calendar.centerMost:after";var z=g.cssRules.length;var I="{left:"+l.left+"px;right:auto;}";he(r.calendarContainer,"rightMost",false);he(r.calendarContainer,"centerMost",true);g.insertRule(w+","+k+I,z);r.calendarContainer.style.left=x+"px";r.calendarContainer.style.right="auto"}}function rt(){var t=null;for(var e=0;er.currentMonth+r.config.showMonths-1)&&r.config.mode!=="range";r.selectedDateElem=a;if(r.config.mode==="single")r.selectedDates=[n];else if(r.config.mode==="multiple"){var s=yt(n);if(s)r.selectedDates.splice(parseInt(s),1);else r.selectedDates.push(n)}else if(r.config.mode==="range"){if(r.selectedDates.length===2){r.clear(false,false)}r.latestSelectedDateObj=n;r.selectedDates.push(n);if(Ie(n,r.selectedDates[0],true)!==0)r.selectedDates.sort((function(t,e){return t.getTime()-e.getTime()}))}h();if(o){var l=r.currentYear!==n.getFullYear();r.currentYear=n.getFullYear();r.currentMonth=n.getMonth();if(l){vt("onYearChange");A()}vt("onMonthChange")}wt();D();zt();if(!o&&r.config.mode!=="range"&&r.config.showMonths===1)z(a);else if(r.selectedDateElem!==undefined&&r.hourElement===undefined){r.selectedDateElem&&r.selectedDateElem.focus()}if(r.hourElement!==undefined)r.hourElement!==undefined&&r.hourElement.focus();if(r.config.closeOnSelect){var c=r.config.mode==="single"&&!r.config.enableTime;var d=r.config.mode==="range"&&r.selectedDates.length===2&&!r.config.enableTime;if(c||d){nt()}}b()}var st={locale:[tt,B],showMonths:[R,s,E],minDate:[g],maxDate:[g],positionElement:[pt],clickOpens:[function(){if(r.config.clickOpens===true){m(r._input,"focus",r.open);m(r._input,"click",r.open)}else{r._input.removeEventListener("focus",r.open);r._input.removeEventListener("click",r.open)}}]};function lt(t,e){if(t!==null&&typeof t==="object"){Object.assign(r.config,t);for(var i in t){if(st[i]!==undefined)st[i].forEach((function(t){return t()}))}}else{r.config[t]=e;if(st[t]!==undefined)st[t].forEach((function(t){return t()}));else if(ae.indexOf(t)>-1)r.config[t]=de(e)}r.redraw();zt(true)}function ct(t,e){var i=[];if(t instanceof Array)i=t.map((function(t){return r.parseDate(t,e)}));else if(t instanceof Date||typeof t==="number")i=[r.parseDate(t,e)];else if(typeof t==="string"){switch(r.config.mode){case"single":case"time":i=[r.parseDate(t,e)];break;case"multiple":i=t.split(r.config.conjunction).map((function(t){return r.parseDate(t,e)}));break;case"range":i=t.split(r.l10n.rangeSeparator).map((function(t){return r.parseDate(t,e)}));break}}else r.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(t)));r.selectedDates=r.config.allowInvalidPreload?i:i.filter((function(t){return t instanceof Date&&U(t,false)}));if(r.config.mode==="range")r.selectedDates.sort((function(t,e){return t.getTime()-e.getTime()}))}function dt(t,e,i){if(e===void 0){e=false}if(i===void 0){i=r.config.dateFormat}if(t!==0&&!t||t instanceof Array&&t.length===0)return r.clear(e);ct(t,i);r.latestSelectedDateObj=r.selectedDates[r.selectedDates.length-1];r.redraw();g(undefined,e);u();if(r.selectedDates.length===0){r.clear(false)}zt(e);if(e)vt("onChange")}function ht(t){return t.slice().map((function(t){if(typeof t==="string"||typeof t==="number"||t instanceof Date){return r.parseDate(t,undefined,true)}else if(t&&typeof t==="object"&&t.from&&t.to)return{from:r.parseDate(t.from,undefined),to:r.parseDate(t.to,undefined)};return t})).filter((function(t){return t}))}function ut(){r.selectedDates=[];r.now=r.parseDate(r.config.now)||new Date;var t=r.config.defaultDate||((r.input.nodeName==="INPUT"||r.input.nodeName==="TEXTAREA")&&r.input.placeholder&&r.input.value===r.input.placeholder?null:r.input.value);if(t)ct(t,r.config.dateFormat);r._initialDate=r.selectedDates.length>0?r.selectedDates[0]:r.config.minDate&&r.config.minDate.getTime()>r.now.getTime()?r.config.minDate:r.config.maxDate&&r.config.maxDate.getTime()0)r.latestSelectedDateObj=r.selectedDates[0];if(r.config.minTime!==undefined)r.config.minTime=r.parseDate(r.config.minTime,"H:i");if(r.config.maxTime!==undefined)r.config.maxTime=r.parseDate(r.config.maxTime,"H:i");r.minDateHasTime=!!r.config.minDate&&(r.config.minDate.getHours()>0||r.config.minDate.getMinutes()>0||r.config.minDate.getSeconds()>0);r.maxDateHasTime=!!r.config.maxDate&&(r.config.maxDate.getHours()>0||r.config.maxDate.getMinutes()>0||r.config.maxDate.getSeconds()>0)}function ft(){r.input=Q();if(!r.input){r.config.errorHandler(new Error("Invalid input element specified"));return}r.input._type=r.input.type;r.input.type="text";r.input.classList.add("flatpickr-input");r._input=r.input;if(r.config.altInput){r.altInput=ue(r.input.nodeName,r.config.altInputClass);r._input=r.altInput;r.altInput.placeholder=r.input.placeholder;r.altInput.disabled=r.input.disabled;r.altInput.required=r.input.required;r.altInput.tabIndex=r.input.tabIndex;r.altInput.type="text";r.input.setAttribute("type","hidden");if(!r.config.static&&r.input.parentNode)r.input.parentNode.insertBefore(r.altInput,r.input.nextSibling)}if(!r.config.allowInput)r._input.setAttribute("readonly","readonly");pt()}function pt(){r._positionElement=r.config.positionElement||r._input}function mt(){var t=r.config.enableTime?r.config.noCalendar?"time":"datetime-local":"date";r.mobileInput=ue("input",r.input.className+" flatpickr-mobile");r.mobileInput.tabIndex=1;r.mobileInput.type=t;r.mobileInput.disabled=r.input.disabled;r.mobileInput.required=r.input.required;r.mobileInput.placeholder=r.input.placeholder;r.mobileFormatStr=t==="datetime-local"?"Y-m-d\\TH:i:S":t==="date"?"Y-m-d":"H:i:S";if(r.selectedDates.length>0){r.mobileInput.defaultValue=r.mobileInput.value=r.formatDate(r.selectedDates[0],r.mobileFormatStr)}if(r.config.minDate)r.mobileInput.min=r.formatDate(r.config.minDate,"Y-m-d");if(r.config.maxDate)r.mobileInput.max=r.formatDate(r.config.maxDate,"Y-m-d");if(r.input.getAttribute("step"))r.mobileInput.step=String(r.input.getAttribute("step"));r.input.type="hidden";if(r.altInput!==undefined)r.altInput.type="hidden";try{if(r.input.parentNode)r.input.parentNode.insertBefore(r.mobileInput,r.input.nextSibling)}catch(t){}m(r.mobileInput,"change",(function(t){r.setDate(be(t).value,false,r.mobileFormatStr);vt("onChange");vt("onClose")}))}function bt(t){if(r.isOpen===true)return r.close();r.open(t)}function vt(t,e){if(r.config===undefined)return;var i=r.config[t];if(i!==undefined&&i.length>0){for(var a=0;i[a]&&a=0&&Ie(t,r.selectedDates[1])<=0}function wt(){if(r.config.noCalendar||r.isMobile||!r.monthNav)return;r.yearElements.forEach((function(t,e){var i=new Date(r.currentYear,r.currentMonth,1);i.setMonth(r.currentMonth+e);if(r.config.showMonths>1||r.config.monthSelectorType==="static"){r.monthElements[e].textContent=ge(i.getMonth(),r.config.shorthandCurrentMonth,r.l10n)+" "}else{r.monthsDropdownContainer.value=i.getMonth().toString()}t.value=i.getFullYear().toString()}));r._hidePrevMonthArrow=r.config.minDate!==undefined&&(r.currentYear===r.config.minDate.getFullYear()?r.currentMonth<=r.config.minDate.getMonth():r.currentYearr.config.maxDate.getMonth():r.currentYear>r.config.maxDate.getFullYear())}function kt(t){var e=t||(r.config.altInput?r.config.altFormat:r.config.dateFormat);return r.selectedDates.map((function(t){return r.formatDate(t,e)})).filter((function(t,e,i){return r.config.mode!=="range"||r.config.enableTime||i.indexOf(t)===e})).join(r.config.mode!=="range"?r.config.conjunction:r.l10n.rangeSeparator)}function zt(t){if(t===void 0){t=true}if(r.mobileInput!==undefined&&r.mobileFormatStr){r.mobileInput.value=r.latestSelectedDateObj!==undefined?r.formatDate(r.latestSelectedDateObj,r.mobileFormatStr):""}r.input.value=kt(r.config.dateFormat);if(r.altInput!==undefined){r.altInput.value=kt(r.config.altFormat)}if(t!==false)vt("onValueUpdate")}function It(t){var e=be(t);var i=r.prevMonthNav.contains(e);var a=r.nextMonthNav.contains(e);if(i||a){L(i?-1:1)}else if(r.yearElements.indexOf(e)>=0){e.select()}else if(e.classList.contains("arrowUp")){r.changeYear(r.currentYear+1)}else if(e.classList.contains("arrowDown")){r.changeYear(r.currentYear-1)}}function $t(t){t.preventDefault();var e=t.type==="keydown",i=be(t),a=i;if(r.amPM!==undefined&&i===r.amPM){r.amPM.textContent=r.l10n.amPM[le(r.amPM.textContent===r.l10n.amPM[0])]}var n=parseFloat(a.getAttribute("min")),o=parseFloat(a.getAttribute("max")),s=parseFloat(a.getAttribute("step")),l=parseInt(a.value,10),c=t.delta||(e?t.which===38?1:-1:0);var d=l+s*c;if(typeof a.value!=="undefined"&&a.value.length===2){var h=a===r.hourElement,u=a===r.minuteElement;if(do){d=a===r.hourElement?d-o-le(!r.amPM):n;if(u)x(undefined,1,r.hourElement)}if(r.amPM&&h&&(s===1?d+l===23:Math.abs(d-l)>s)){r.amPM.textContent=r.l10n.amPM[le(r.amPM.textContent===r.l10n.amPM[0])]}a.value=se(d)}}a();return r}function Ee(t,e){var r=Array.prototype.slice.call(t).filter((function(t){return t instanceof HTMLElement}));var i=[];for(var a=0;al||h=e.weekStartDay&&a<=e.weekEndDay)r[i].classList.add("week","selected")}}function a(){var t=e.days.childNodes;for(var r=t.length;r--;)t[r].classList.remove("inRange")}function n(){if(e.daysContainer!==undefined)e.daysContainer.addEventListener("mouseover",r)}function o(){if(e.daysContainer!==undefined)e.daysContainer.removeEventListener("mouseover",r)}return{onValueUpdate:i,onMonthChange:i,onYearChange:i,onOpen:i,onClose:a,onParseConfig:function(){e.config.mode="single";e.config.enableTime=false;e.config.dateFormat=e.config.dateFormat?e.config.dateFormat:"\\W\\e\\e\\k #W, Y";e.config.altFormat=e.config.altFormat?e.config.altFormat:"\\W\\e\\e\\k #W, Y"},onReady:[n,i,function(){e.loadedPlugins.push("weekSelect")}],onDestroy:o}}}return e}))}));function Ne(t,e={}){const r=t.mode==="week"?[new Le({})]:[];const i=je(t.mode);return{...e,locale:t.locale,plugins:r,allowInput:true,altInput:true,prevArrow:"←",nextArrow:"→",dateFormat:i,altFormat:t.format,ariaDateFormat:t.format,mode:t.mode==="daterange"?"range":"single",minDate:t.min,maxDate:t.max,enableTime:t.mode==="time"||t.mode==="datetime",noCalendar:t.mode==="time",weekNumbers:true,minuteIncrement:t.step,clickOpens:!t.disabled&&!t.readonly,onReady:(e,r,i)=>{for(const e in t.nativePickerAttributes){const r=t.nativePickerAttributes[e];i.calendarContainer.setAttribute(e,r)}},onClose:function(e,r,i){if(t.mode==="daterange"&&e.length<2){i.clear()}},onChange:(e,r,a)=>{let n=r||undefined;if(t.mode==="daterange"){if(e.length<2){return}else{const t=e[0];const r=e[1];r.setHours(23);r.setMinutes(59);r.setSeconds(59);n=`${a.formatDate(t,i)} - ${a.formatDate(r,i)}`}}else if(t.mode==="week"){n=e[0]?a.config.getWeek(e[0]).toString():undefined}t.applyChange(n)}}}function je(t){if(t==="week"){return"W"}else if(t==="time"){return"H:i"}else{return"Z"}}function Pe(t,e){const r=new Date(2e3,1,3,16,5,6);const i={year:"numeric",month:"2-digit",day:"2-digit"};const a={hour:"2-digit",minute:"2-digit"};return e==="week"?"W":new Intl.DateTimeFormat(t,{date:i,time:a,datetime:{...i,...a},daterange:i}[e]).format(r).replace("2000","Y").replace("00","y").replace("02","m").replace("03","d").replace("04","h").replace("16","H").replace("05","i").replace(/AM|PM/i,"K")}function We(t){const e=new Intl.DateTimeFormat(t,{hour:"2-digit",minute:"2-digit"}).format(new Date).toLowerCase();return e.includes("am")||e.includes("pm")}function He(t){const e=new Intl.Locale(t);const r=e.getWeekInfo?.()??e.weekInfo;return r?.firstDay??1}function _e(t,e="long"){const r=new Date;const i=(r.getUTCDate()-r.getUTCDay()+7)%7;const a=new Intl.DateTimeFormat(t,{weekday:e}).format;return[...Array(7).keys()].map((t=>a(new Date(r.getTime()).setUTCDate(i+t))))}function Ue(t,e="long"){const r=new Date;const i=new Intl.DateTimeFormat(t,{month:e}).format;return[...Array(12).keys()].map((t=>i(new Date(r.getTime()).setUTCMonth(t))))}function Ke(t){return{firstDayOfWeek:He(t),rangeSeparator:" - ",weekAbbreviation:"",yearAriaLabel:I.t("datepicker.year"),monthAriaLabel:I.t("datepicker.month"),hourAriaLabel:I.t("datepicker.hour"),minuteAriaLabel:I.t("datepicker.minute"),toggleTitle:I.t("datepicker.toggle"),scrollTitle:I.t("datepicker.scroll"),time_24hr:!We(t),weekdays:{shorthand:_e(t,"short"),longhand:_e(t,"long")},months:{shorthand:Ue(t,"short"),longhand:Ue(t,"long")}}}const Ge=":host{display:flex}:host([hidden]){display:none}cat-input{flex:1 1 auto;margin:0}";const Je=class{constructor(e){t(this,e);this.catChange=a(this,"catChange",7);this.catFocus=a(this,"catFocus",7);this.catBlur=a(this,"catBlur",7);this.hasSlottedLabel=false;this.hasSlottedHint=false;this.requiredMarker="optional";this.horizontal=false;this.autoComplete=undefined;this.clearable=false;this.disabled=false;this.hint=undefined;this.icon=undefined;this.iconRight=false;this.identifier=undefined;this.label="";this.labelHidden=false;this.max=undefined;this.min=undefined;this.mode="date";this.name=undefined;this.placeholder=undefined;this.textPrefix=undefined;this.textSuffix=undefined;this.readonly=false;this.required=false;this.step=5;this.value=undefined;this.errors=undefined;this.errorUpdate=0;this.nativeAttributes=undefined;this.nativePickerAttributes=undefined}get input(){return this._input?.shadowRoot?.querySelector("input")??undefined}onValueChanged(t){if(t){this.pickr?.setDate(t,false);if(this.mode!=="daterange"||t.includes(" - ")){this.catChange.emit(t)}}else{this.pickr?.clear(false);this.catChange.emit(undefined)}}onDisabledChanged(){this.pickr?.destroy();this.pickr=undefined;setTimeout((()=>this.pickr=this.initDatepicker(this.input)))}componentDidLoad(){this.pickr=this.initDatepicker(this.input)}componentWillRender(){this.hasSlottedLabel=!!this.hostElement.querySelector('[slot="label"]');this.hasSlottedHint=!!this.hostElement.querySelector('[slot="hint"]')}onMinChanged(){this.pickr?.set("minDate",this.min);this.pickr?.set("maxDate",this.max);if(this.value&&!this.pickr?.selectedDates?.length){this.pickr?.clear()}}async doFocus(t){this._input?.doFocus(t)}async doBlur(){this._input?.doBlur()}render(){return e("cat-input",{ref:t=>this._input=t,requiredMarker:this.requiredMarker,horizontal:this.horizontal,autoComplete:this.autoComplete,clearable:this.clearable,disabled:this.disabled,hint:this.hint,icon:this.icon,iconRight:this.iconRight,identifier:this.identifier,label:this.label,labelHidden:this.labelHidden,name:this.name,placeholder:this.placeholder,textPrefix:this.textPrefix,textSuffix:this.textSuffix,readonly:this.readonly,required:this.required,value:this.value,errors:this.errors,errorUpdate:this.errorUpdate,nativeAttributes:this.nativeAttributes,onCatChange:t=>{t.stopPropagation();this.value=t.detail||undefined},onCatFocus:t=>{t.stopPropagation();this.catFocus.emit(t.detail)},onCatBlur:t=>{t.stopPropagation();this.catBlur.emit(t.detail)}},this.hasSlottedLabel&&e("span",{slot:"label"},e("slot",{name:"label"})),this.hasSlottedHint&&e("span",{slot:"hint"},e("slot",{name:"hint"})))}initDatepicker(t){if(this.disabled||this.readonly||!t){return}const e=!!Oe("cat-dropdown",t);const r=e?{"data-dropdown-no-close":""}:{};return Be(t,Ne({locale:Ke(I.getLocale()),format:Pe(I.getLocale(),this.mode),mode:this.mode,min:this.min,max:this.max,step:this.step,disabled:this.disabled,readonly:this.readonly,nativePickerAttributes:{...r,...this.nativePickerAttributes},applyChange:t=>this.value=t}))}get hostElement(){return i(this)}static get watchers(){return{value:["onValueChanged"],disabled:["onDisabledChanged"],readonly:["onDisabledChanged"],min:["onMinChanged"],max:["onMinChanged"]}}};Je.style=Ge;const Ye='@charset "UTF-8";.flatpickr-calendar{background:transparent;opacity:0;display:none;text-align:center;visibility:hidden;padding:0;-webkit-animation:none;animation:none;direction:ltr;border:0;font-size:14px;line-height:24px;border-radius:5px;position:absolute;width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-touch-action:manipulation;touch-action:manipulation;background:#fff;-webkit-box-shadow:1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0,0,0,0.08);box-shadow:1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0,0,0,0.08)}.flatpickr-calendar.open,.flatpickr-calendar.inline{opacity:1;max-height:640px;visibility:visible}.flatpickr-calendar.open{display:inline-block;z-index:99999}.flatpickr-calendar.animate.open{-webkit-animation:fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);animation:fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1)}.flatpickr-calendar.inline{display:block;position:relative;top:2px}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px)}.flatpickr-calendar.static.open{z-index:999;display:block}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7){-webkit-box-shadow:none !important;box-shadow:none !important}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1){-webkit-box-shadow:-2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;box-shadow:-2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6}.flatpickr-calendar .hasWeeks .dayContainer,.flatpickr-calendar .hasTime .dayContainer{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.hasTime .flatpickr-time{height:40px;border-top:1px solid #e6e6e6}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:before,.flatpickr-calendar:after{position:absolute;display:block;pointer-events:none;border:solid transparent;content:\'\';height:0;width:0;left:22px}.flatpickr-calendar.rightMost:before,.flatpickr-calendar.arrowRight:before,.flatpickr-calendar.rightMost:after,.flatpickr-calendar.arrowRight:after{left:auto;right:22px}.flatpickr-calendar.arrowCenter:before,.flatpickr-calendar.arrowCenter:after{left:50%;right:50%}.flatpickr-calendar:before{border-width:5px;margin:0 -5px}.flatpickr-calendar:after{border-width:4px;margin:0 -4px}.flatpickr-calendar.arrowTop:before,.flatpickr-calendar.arrowTop:after{bottom:100%}.flatpickr-calendar.arrowTop:before{border-bottom-color:#e6e6e6}.flatpickr-calendar.arrowTop:after{border-bottom-color:#fff}.flatpickr-calendar.arrowBottom:before,.flatpickr-calendar.arrowBottom:after{top:100%}.flatpickr-calendar.arrowBottom:before{border-top-color:#e6e6e6}.flatpickr-calendar.arrowBottom:after{border-top-color:#fff}.flatpickr-calendar:focus{outline:0}.flatpickr-wrapper{position:relative;display:inline-block}.flatpickr-months{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-months .flatpickr-month{background:transparent;color:rgba(0,0,0,0.9);fill:rgba(0,0,0,0.9);height:34px;line-height:1;text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.flatpickr-months .flatpickr-prev-month,.flatpickr-months .flatpickr-next-month{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-decoration:none;cursor:pointer;position:absolute;top:0;height:34px;padding:10px;z-index:3;color:rgba(0,0,0,0.9);fill:rgba(0,0,0,0.9)}.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,.flatpickr-months .flatpickr-next-month.flatpickr-disabled{display:none}.flatpickr-months .flatpickr-prev-month i,.flatpickr-months .flatpickr-next-month i{position:relative}.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,.flatpickr-months .flatpickr-next-month.flatpickr-prev-month{left:0;}.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,.flatpickr-months .flatpickr-next-month.flatpickr-next-month{right:0;}.flatpickr-months .flatpickr-prev-month:hover,.flatpickr-months .flatpickr-next-month:hover{color:#959ea9}.flatpickr-months .flatpickr-prev-month:hover svg,.flatpickr-months .flatpickr-next-month:hover svg{fill:#f64747}.flatpickr-months .flatpickr-prev-month svg,.flatpickr-months .flatpickr-next-month svg{width:14px;height:14px}.flatpickr-months .flatpickr-prev-month svg path,.flatpickr-months .flatpickr-next-month svg path{-webkit-transition:fill 0.1s;transition:fill 0.1s;fill:inherit}.numInputWrapper{position:relative;height:auto}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%}.numInputWrapper input::-ms-clear{display:none}.numInputWrapper input::-webkit-outer-spin-button,.numInputWrapper input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.numInputWrapper span{position:absolute;right:0;width:14px;padding:0 4px 0 2px;height:50%;line-height:50%;opacity:0;cursor:pointer;border:1px solid rgba(57,57,57,0.15);-webkit-box-sizing:border-box;box-sizing:border-box}.numInputWrapper span:hover{background:rgba(0,0,0,0.1)}.numInputWrapper span:active{background:rgba(0,0,0,0.2)}.numInputWrapper span:after{display:block;content:"";position:absolute}.numInputWrapper span.arrowUp{top:0;border-bottom:0}.numInputWrapper span.arrowUp:after{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgba(57,57,57,0.6);top:26%}.numInputWrapper span.arrowDown{top:50%}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57,57,57,0.6);top:40%}.numInputWrapper span svg{width:inherit;height:auto}.numInputWrapper span svg path{fill:rgba(0,0,0,0.5)}.numInputWrapper:hover{background:rgba(0,0,0,0.05)}.numInputWrapper:hover span{opacity:1}.flatpickr-current-month{font-size:135%;line-height:inherit;font-weight:300;color:inherit;position:absolute;width:75%;left:12.5%;padding:7.48px 0 0 0;line-height:1;height:34px;display:inline-block;text-align:center;-webkit-transform:translate3d(0px, 0px, 0px);transform:translate3d(0px, 0px, 0px)}.flatpickr-current-month span.cur-month{font-family:inherit;font-weight:700;color:inherit;display:inline-block;margin-left:0.5ch;padding:0}.flatpickr-current-month span.cur-month:hover{background:rgba(0,0,0,0.05)}.flatpickr-current-month .numInputWrapper{width:6ch;width:7ch\\0;display:inline-block}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:rgba(0,0,0,0.9)}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:rgba(0,0,0,0.9)}.flatpickr-current-month input.cur-year{background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;cursor:text;padding:0 0 0 0.5ch;margin:0;display:inline-block;font-size:inherit;font-family:inherit;font-weight:300;line-height:inherit;height:auto;border:0;border-radius:0;vertical-align:initial;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-current-month input.cur-year:focus{outline:0}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{font-size:100%;color:rgba(0,0,0,0.5);background:transparent;pointer-events:none}.flatpickr-current-month .flatpickr-monthDropdown-months{appearance:menulist;background:transparent;border:none;border-radius:0;box-sizing:border-box;color:inherit;cursor:pointer;font-size:inherit;font-family:inherit;font-weight:300;height:auto;line-height:inherit;margin:-1px 0 0 0;outline:none;padding:0 0 0 0.5ch;position:relative;vertical-align:initial;-webkit-box-sizing:border-box;-webkit-appearance:menulist;-moz-appearance:menulist;width:auto}.flatpickr-current-month .flatpickr-monthDropdown-months:focus,.flatpickr-current-month .flatpickr-monthDropdown-months:active{outline:none}.flatpickr-current-month .flatpickr-monthDropdown-months:hover{background:rgba(0,0,0,0.05)}.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month{background-color:transparent;outline:none;padding:0}.flatpickr-weekdays{background:transparent;text-align:center;overflow:hidden;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:28px}.flatpickr-weekdays .flatpickr-weekdaycontainer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}span.flatpickr-weekday{cursor:default;font-size:90%;background:transparent;color:rgba(0,0,0,0.54);line-height:1;margin:0;text-align:center;display:block;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-weight:bolder}.dayContainer,.flatpickr-weeks{padding:1px 0 0 0}.flatpickr-days{position:relative;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;width:307.875px}.flatpickr-days:focus{outline:0}.dayContainer{padding:0;outline:0;text-align:left;width:307.875px;min-width:307.875px;max-width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;display:-ms-flexbox;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-wrap:wrap;-ms-flex-pack:justify;-webkit-justify-content:space-around;justify-content:space-around;-webkit-transform:translate3d(0px, 0px, 0px);transform:translate3d(0px, 0px, 0px);opacity:1}.dayContainer+.dayContainer{-webkit-box-shadow:-1px 0 0 #e6e6e6;box-shadow:-1px 0 0 #e6e6e6}.flatpickr-day{background:none;border:1px solid transparent;border-radius:150px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#393939;cursor:pointer;font-weight:400;width:14.2857143%;-webkit-flex-basis:14.2857143%;-ms-flex-preferred-size:14.2857143%;flex-basis:14.2857143%;max-width:39px;height:39px;line-height:39px;margin:0;display:inline-block;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center}.flatpickr-day.inRange,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.today.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day:hover,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.nextMonthDay:hover,.flatpickr-day:focus,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.nextMonthDay:focus{cursor:pointer;outline:0;background:#e6e6e6;border-color:#e6e6e6}.flatpickr-day.today{border-color:#959ea9}.flatpickr-day.today:hover,.flatpickr-day.today:focus{border-color:#959ea9;background:#959ea9;color:#fff}.flatpickr-day.selected,.flatpickr-day.startRange,.flatpickr-day.endRange,.flatpickr-day.selected.inRange,.flatpickr-day.startRange.inRange,.flatpickr-day.endRange.inRange,.flatpickr-day.selected:focus,.flatpickr-day.startRange:focus,.flatpickr-day.endRange:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange:hover,.flatpickr-day.endRange:hover,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.endRange.nextMonthDay{background:#569ff7;-webkit-box-shadow:none;box-shadow:none;color:#fff;border-color:#569ff7}.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange,.flatpickr-day.endRange.startRange{border-radius:50px 0 0 50px}.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange,.flatpickr-day.endRange.endRange{border-radius:0 50px 50px 0}.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n+1)){-webkit-box-shadow:-10px 0 0 #569ff7;box-shadow:-10px 0 0 #569ff7}.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange,.flatpickr-day.endRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;-webkit-box-shadow:-5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;box-shadow:-5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover,.flatpickr-day.prevMonthDay,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.notAllowed.nextMonthDay{color:rgba(57,57,57,0.3);background:transparent;border-color:transparent;cursor:default}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{cursor:not-allowed;color:rgba(57,57,57,0.1)}.flatpickr-day.week.selected{border-radius:0;-webkit-box-shadow:-5px 0 0 #569ff7, 5px 0 0 #569ff7;box-shadow:-5px 0 0 #569ff7, 5px 0 0 #569ff7}.flatpickr-day.hidden{visibility:hidden}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{float:left}.flatpickr-weekwrapper .flatpickr-weeks{padding:0 12px;-webkit-box-shadow:1px 0 0 #e6e6e6;box-shadow:1px 0 0 #e6e6e6}.flatpickr-weekwrapper .flatpickr-weekday{float:none;width:100%;line-height:28px}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{display:block;width:100%;max-width:none;color:rgba(57,57,57,0.3);background:transparent;cursor:default;border:none}.flatpickr-innerContainer{display:block;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.flatpickr-rContainer{display:inline-block;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box}.flatpickr-time{text-align:center;outline:0;display:block;height:0;line-height:40px;max-height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-time:after{content:"";display:table;clear:both}.flatpickr-time .numInputWrapper{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:40%;height:40px;float:left}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#393939}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#393939}.flatpickr-time.hasSeconds .numInputWrapper{width:26%}.flatpickr-time.time24hr .numInputWrapper{width:49%}.flatpickr-time input{background:transparent;-webkit-box-shadow:none;box-shadow:none;border:0;border-radius:0;text-align:center;margin:0;padding:0;height:inherit;line-height:inherit;color:#393939;font-size:14px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-time input.flatpickr-hour{font-weight:bold}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400}.flatpickr-time input:focus{outline:0;border:0}.flatpickr-time .flatpickr-time-separator,.flatpickr-time .flatpickr-am-pm{height:inherit;float:left;line-height:inherit;color:#393939;font-weight:bold;width:2%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.flatpickr-time .flatpickr-am-pm{outline:0;width:18%;cursor:pointer;text-align:center;font-weight:400}.flatpickr-time input:hover,.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time input:focus,.flatpickr-time .flatpickr-am-pm:focus{background:#eee}.flatpickr-input[readonly]{cursor:pointer}@-webkit-keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0, -20px, 0);transform:translate3d(0, -20px, 0)}to{opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0, -20px, 0);transform:translate3d(0, -20px, 0)}to{opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}.flatpickr-calendar{font-size:0.875rem;line-height:1.125rem;font-weight:var(--cat-font-weight-body, 400);box-shadow:0 4px 6px -2px rgba(27, 31, 38, 0.03), 0 12px 16px -4px rgba(27, 31, 38, 0.08);border-radius:var(--cat-border-radius-m, 0.25rem);border:1px solid rgb(var(--cat-border-color, 235, 236, 240));background:white;padding:1rem}.flatpickr-calendar:not(.inline).animate{transform:translateY(-1rem);opacity:0;transition:transform 125ms cubic-bezier(0.3, 0, 0.8, 0.15), opacity 125ms cubic-bezier(0.3, 0, 0.8, 0.15)}.flatpickr-calendar::before,.flatpickr-calendar::after{display:none}.flatpickr-calendar.inline,.flatpickr-calendar.open{display:flex;flex-direction:column;gap:1rem;width:auto !important}.flatpickr-calendar.inline{border:unset;padding:0}.flatpickr-calendar.open{z-index:calc(var(--cat-z-index, 1000) + 100);margin-top:0.75rem;margin-left:-0.75rem}.flatpickr-calendar.open.animate{opacity:1;transform:translateY(0);transition:transform 500ms cubic-bezier(0.05, 0.7, 0.1, 1), opacity 500ms cubic-bezier(0.05, 0.7, 0.1, 1)}.flatpickr-months{gap:0.25rem}.flatpickr-months .flatpickr-month{height:auto}.flatpickr-current-month{font-size:1.125rem;line-height:1.5rem;font-weight:var(--cat-font-weight-head, 600);font-feature-settings:"pnum";height:100%;padding:0;display:flex;position:static;width:auto;gap:0.25rem}.flatpickr-current-month .flatpickr-monthDropdown-months{padding:0 0.25rem;flex:1;margin:unset;font-weight:inherit;border-radius:var(--cat-border-radius-m, 0.25rem)}.flatpickr-current-month .flatpickr-monthDropdown-months:hover,.flatpickr-current-month .flatpickr-monthDropdown-months:focus-within{background-color:rgba(var(--cat-primary-bg, 0, 129, 148), 0.05)}.flatpickr-current-month input.cur-year{padding:0;font-weight:inherit;line-height:2.25rem}.flatpickr-current-month .numInputWrapper{width:7ch}.flatpickr-months .flatpickr-prev-month,.flatpickr-months .flatpickr-next-month{position:static;width:2.25rem;height:2.25rem;padding:0;align-items:center;display:flex;justify-content:center;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}.flatpickr-months .flatpickr-prev-month:hover,.flatpickr-months .flatpickr-next-month:hover{color:rgb(var(--cat-font-color-base, 0, 0, 0))}.flatpickr-weekdays{height:2rem}.flatpickr-weekdays .flatpickr-weekday{color:rgb(var(--cat-font-color-muted, 81, 92, 108));font-size:0.75rem;line-height:1rem;font-weight:700}.flatpickr-weekwrapper .flatpickr-weekday{height:2rem}.flatpickr-weekwrapper .flatpickr-weeks{box-shadow:none;width:2rem;padding:0;margin-right:0.5rem;background:#f2f4f7;border-radius:var(--cat-border-radius-m, 0.25rem)}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{font-size:0.75rem;line-height:1rem;font-weight:700;color:rgb(var(--cat-font-color-muted, 81, 92, 108));text-align:center;line-height:2.25rem}.flatpickr-days{width:15.75rem !important}.dayContainer{width:15.75rem;min-width:15.75rem;max-width:15.75rem}.flatpickr-day{color:rgb(var(--cat-font-color-base, 0, 0, 0));height:2.25rem;line-height:2.25rem;border:0;border-radius:var(--cat-border-radius-m, 0.25rem)}.flatpickr-day:hover{background-color:#f2f4f7;font-weight:700}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{color:rgb(var(--cat-font-color-muted, 81, 92, 108));font-weight:inherit;background-color:inherit !important}.flatpickr-day.today{color:rgb(var(--cat-primary-text, 0, 129, 148));box-shadow:inset 0 0 0 2px rgb(var(--cat-primary-text, 0, 129, 148))}.flatpickr-day.today:hover,.flatpickr-day.today:focus{background-color:#f2f4f7;color:rgb(var(--cat-primary-text, 0, 129, 148))}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover,.flatpickr-day.prevMonthDay,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.notAllowed.nextMonthDay{color:rgba(var(--cat-font-color-muted, 81, 92, 108), 0.5)}.flatpickr-day.selected,.flatpickr-day.selected:hover,.flatpickr-day.selected:focus,.flatpickr-day.selected.inRange,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.startRange,.flatpickr-day.startRange:hover,.flatpickr-day.startRange:focus,.flatpickr-day.startRange.inRange,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.endRange,.flatpickr-day.endRange:hover,.flatpickr-day.endRange:focus,.flatpickr-day.endRange.inRange,.flatpickr-day.endRange.nextMonthDay,.flatpickr-day.endRange.prevMonthDay{font-weight:700;background-color:rgb(var(--cat-primary-bg, 0, 129, 148)) !important;color:rgb(var(--cat-primary-fill, 255, 255, 255)) !important}.flatpickr-day.inRange,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.today.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day:hover,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.nextMonthDay:hover,.flatpickr-day:focus,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.nextMonthDay:focus{background-color:rgba(var(--cat-primary-bg, 0, 129, 148), 0.1)}.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange,.flatpickr-day.endRange.startRange{border-top-left-radius:var(--cat-border-radius-m, 0.25rem);border-bottom-left-radius:var(--cat-border-radius-m, 0.25rem)}.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange,.flatpickr-day.endRange.endRange{border-top-right-radius:var(--cat-border-radius-m, 0.25rem);border-bottom-right-radius:var(--cat-border-radius-m, 0.25rem)}.numInputWrapper{padding:0 1rem 0 0.5rem;border-radius:var(--cat-border-radius-m, 0.25rem)}.numInputWrapper:hover,.numInputWrapper:focus-within{background-color:rgba(var(--cat-primary-bg, 0, 129, 148), 0.05)}.numInputWrapper span{border:none;background:transparent;width:1rem;padding:0;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}.numInputWrapper span.arrowUp::after{content:"↑";align-items:flex-end}.numInputWrapper span.arrowDown::after{content:"↓";align-items:flex-start}.numInputWrapper span::after{font-size:0.75rem;line-height:1rem;font-weight:700;position:static;border:0 !important;font-size:10px;display:flex;height:100%;justify-content:center}.numInputWrapper span:hover{color:rgb(var(--cat-font-color-base, 0, 0, 0));background:transparent}.flatpickr-calendar.hasTime .flatpickr-time{border:1px solid rgb(var(--cat-border-color, 235, 236, 240));border-radius:var(--cat-border-radius-m, 0.25rem);min-width:12rem;height:auto}.flatpickr-calendar.hasTime .flatpickr-time .numInputWrapper{height:2rem;padding:0;margin:0.25rem;display:flex}.flatpickr-calendar.hasTime.noCalendar{padding:0}.flatpickr-calendar.hasTime.noCalendar .flatpickr-time{border:none}.flatpickr-time .flatpickr-time-separator,.flatpickr-time .flatpickr-am-pm{margin:0 0.25rem;font-size:1.125rem;line-height:1.5rem;font-weight:400;font-feature-settings:"pnum";color:rgb(var(--cat-font-color-base, 0, 0, 0));line-height:2.25rem}.flatpickr-time .flatpickr-am-pm{width:25%;padding:0 0.5rem}.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time .flatpickr-am-pm:focus{border-radius:var(--cat-border-radius-m, 0.25rem);background-color:rgba(var(--cat-primary-bg, 0, 129, 148), 0.05)}.flatpickr-time{max-height:unset}.flatpickr-time input{background:transparent !important;color:rgb(var(--cat-font-color-base, 0, 0, 0));font-size:0.9375rem;line-height:2.25rem;font-family:inherit}.flatpickr-time input.flatpickr-hour{font-weight:inherit}.flatpickr-day.inRange:not(.today),.flatpickr-day.week.selected{box-shadow:none}.flatpickr-day.inRange:nth-child(7n+1),.flatpickr-day.week.selected:nth-child(7n+1){border-top-left-radius:var(--cat-border-radius-m, 0.25rem);border-bottom-left-radius:var(--cat-border-radius-m, 0.25rem)}.flatpickr-day.inRange:nth-child(7n+7),.flatpickr-day.week.selected:nth-child(7n+7){border-top-right-radius:var(--cat-border-radius-m, 0.25rem);border-bottom-right-radius:var(--cat-border-radius-m, 0.25rem)}.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n+1)){box-shadow:none}.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange,.flatpickr-day.endRange.startRange.endRange{border-radius:var(--cat-border-radius-m, 0.25rem)}:host{display:inline-flex}:host>div{display:flex}:host([hidden]){display:none}.datepicker-disabled .flatpickr-days,.datepicker-disabled .flatpickr-time,.datepicker-readonly .flatpickr-days,.datepicker-readonly .flatpickr-time{pointer-events:none}.datepicker-disabled .flatpickr-days{opacity:0.75}.datepicker-disabled .flatpickr-time input,.datepicker-disabled .flatpickr-time .flatpickr-time-separator,.datepicker-disabled .flatpickr-time .flatpickr-am-pm{color:rgb(var(--cat-font-color-muted, 81, 92, 108));opacity:0.75}input{display:none}.flatpickr-calendar{box-shadow:unset;background:unset}';const qe=class{constructor(e){t(this,e);this.catChange=a(this,"catChange",7);this.disabled=false;this.max=undefined;this.min=undefined;this.mode="date";this.readonly=false;this.step=5;this.value=undefined;this.nativePickerAttributes=undefined}onValueChanged(t){if(t){this.pickr?.setDate(t,false);this.catChange.emit(t)}else{this.pickr?.clear(false);this.catChange.emit(undefined)}}onDisabledChanged(){this.pickr?.destroy();this.pickr=undefined;setTimeout((()=>this.pickr=this.initDatepicker(this.input)))}componentDidLoad(){this.pickr=this.initDatepicker(this.input)}render(){return e(r,null,e("div",{tabIndex:this.disabled||this.readonly?-1:undefined,class:{"datepicker-wrapper":true,"datepicker-disabled":this.disabled,"datepicker-readonly":this.readonly}},e("input",{ref:t=>this.input=t,value:this.value,disabled:this.disabled,readonly:this.readonly})))}initDatepicker(t){if(!t){return}return Be(t,Ne({locale:Ke(I.getLocale()),format:Pe(I.getLocale(),this.mode),mode:this.mode,min:this.min,max:this.max,step:this.step,disabled:this.disabled,readonly:this.readonly,nativePickerAttributes:this.nativePickerAttributes??{},applyChange:t=>this.value=t},{...this.disabled?{enable:[]}:{},inline:true}))}static get watchers(){return{value:["onValueChanged"],disabled:["onDisabledChanged"],readonly:["onDisabledChanged"]}}};qe.style=Ye;const Ve=Math.min;const Ze=Math.max;const Xe=Math.round;const Qe=Math.floor;const tr=t=>({x:t,y:t});const er={left:"right",right:"left",bottom:"top",top:"bottom"};const rr={start:"end",end:"start"};function ir(t,e,r){return Ze(t,Ve(e,r))}function ar(t,e){return typeof t==="function"?t(e):t}function nr(t){return t.split("-")[0]}function or(t){return t.split("-")[1]}function sr(t){return t==="x"?"y":"x"}function lr(t){return t==="y"?"height":"width"}function cr(t){return["top","bottom"].includes(nr(t))?"y":"x"}function dr(t){return sr(cr(t))}function hr(t,e,r){if(r===void 0){r=false}const i=or(t);const a=dr(t);const n=lr(a);let o=a==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";if(e.reference[n]>e.floating[n]){o=br(o)}return[o,br(o)]}function ur(t){const e=br(t);return[fr(t),e,fr(e)]}function fr(t){return t.replace(/start|end/g,(t=>rr[t]))}function pr(t,e,r){const i=["left","right"];const a=["right","left"];const n=["top","bottom"];const o=["bottom","top"];switch(t){case"top":case"bottom":if(r)return e?a:i;return e?i:a;case"left":case"right":return e?n:o;default:return[]}}function mr(t,e,r,i){const a=or(t);let n=pr(nr(t),r==="start",i);if(a){n=n.map((t=>t+"-"+a));if(e){n=n.concat(n.map(fr))}}return n}function br(t){return t.replace(/left|right|bottom|top/g,(t=>er[t]))}function vr(t){return{top:0,right:0,bottom:0,left:0,...t}}function gr(t){return typeof t!=="number"?vr(t):{top:t,right:t,bottom:t,left:t}}function yr(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function xr(t,e,r){let{reference:i,floating:a}=t;const n=cr(e);const o=dr(e);const s=lr(o);const l=nr(e);const c=n==="y";const d=i.x+i.width/2-a.width/2;const h=i.y+i.height/2-a.height/2;const u=i[s]/2-a[s]/2;let f;switch(l){case"top":f={x:d,y:i.y-a.height};break;case"bottom":f={x:d,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:h};break;case"left":f={x:i.x-a.width,y:h};break;default:f={x:i.x,y:i.y}}switch(or(e)){case"start":f[o]-=u*(r&&c?-1:1);break;case"end":f[o]+=u*(r&&c?-1:1);break}return f}const wr=async(t,e,r)=>{const{placement:i="bottom",strategy:a="absolute",middleware:n=[],platform:o}=r;const s=n.filter(Boolean);const l=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:a});let{x:d,y:h}=xr(c,i,l);let u=i;let f={};let p=0;for(let r=0;rt<=0))){var $,C;const t=((($=n.flip)==null?void 0:$.index)||0)+1;const e=w[t];if(e){return{data:{index:t,overflows:I},reset:{placement:e}}}let r=(C=I.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])==null?void 0:C.placement;if(!r){switch(f){case"bestFit":{var M;const t=(M=I.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])==null?void 0:M[0];if(t){r=t}break}case"initialPlacement":r=s;break}}if(a!==r){return{reset:{placement:r}}}}return{}}}};async function Ir(t,e){const{placement:r,platform:i,elements:a}=t;const n=await(i.isRTL==null?void 0:i.isRTL(a.floating));const o=nr(r);const s=or(r);const l=cr(r)==="y";const c=["left","top"].includes(o)?-1:1;const d=n&&l?-1:1;const h=ar(e,t);let{mainAxis:u,crossAxis:f,alignmentAxis:p}=typeof h==="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};if(s&&typeof p==="number"){f=s==="end"?p*-1:p}return l?{x:f*d,y:u*c}:{x:u*c,y:f*d}}const $r=function(t){if(t===void 0){t=0}return{name:"offset",options:t,async fn(e){const{x:r,y:i}=e;const a=await Ir(e,t);return{x:r+a.x,y:i+a.y,data:a}}}};const Cr=function(t){if(t===void 0){t={}}return{name:"shift",options:t,async fn(e){const{x:r,y:i,placement:a}=e;const{mainAxis:n=true,crossAxis:o=false,limiter:s={fn:t=>{let{x:e,y:r}=t;return{x:e,y:r}}},...l}=ar(t,e);const c={x:r,y:i};const d=await kr(e,l);const h=cr(nr(a));const u=sr(h);let f=c[u];let p=c[h];if(n){const t=u==="y"?"top":"left";const e=u==="y"?"bottom":"right";const r=f+d[t];const i=f-d[e];f=ir(r,f,i)}if(o){const t=h==="y"?"top":"left";const e=h==="y"?"bottom":"right";const r=p+d[t];const i=p-d[e];p=ir(r,p,i)}const m=s.fn({...e,[u]:f,[h]:p});return{...m,data:{x:m.x-r,y:m.y-i}}}}};const Mr=function(t){if(t===void 0){t={}}return{name:"size",options:t,async fn(e){const{placement:r,rects:i,platform:a,elements:n}=e;const{apply:o=(()=>{}),...s}=ar(t,e);const l=await kr(e,s);const c=nr(r);const d=or(r);const h=cr(r)==="y";const{width:u,height:f}=i.floating;let p;let m;if(c==="top"||c==="bottom"){p=c;m=d===(await(a.isRTL==null?void 0:a.isRTL(n.floating))?"start":"end")?"left":"right"}else{m=c;p=d==="end"?"top":"bottom"}const b=f-l[p];const v=u-l[m];const g=!e.middlewareData.shift;let y=b;let x=v;if(h){const t=u-l.left-l.right;x=d||g?Ve(v,t):t}else{const t=f-l.top-l.bottom;y=d||g?Ve(b,t):t}if(g&&!d){const t=Ze(l.left,0);const e=Ze(l.right,0);const r=Ze(l.top,0);const i=Ze(l.bottom,0);if(h){x=u-2*(t!==0||e!==0?t+e:Ze(l.left,l.right))}else{y=f-2*(r!==0||i!==0?r+i:Ze(l.top,l.bottom))}}await o({...e,availableWidth:x,availableHeight:y});const w=await a.getDimensions(n.floating);if(u!==w.width||f!==w.height){return{reset:{rects:true}}}return{}}}};function Dr(t){if(Rr(t)){return(t.nodeName||"").toLowerCase()}return"#document"}function Ar(t){var e;return(t==null?void 0:(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Sr(t){var e;return(e=(Rr(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Rr(t){return t instanceof Node||t instanceof Ar(t).Node}function Tr(t){return t instanceof Element||t instanceof Ar(t).Element}function Fr(t){return t instanceof HTMLElement||t instanceof Ar(t).HTMLElement}function Er(t){if(typeof ShadowRoot==="undefined"){return false}return t instanceof ShadowRoot||t instanceof Ar(t).ShadowRoot}function Br(t){const{overflow:e,overflowX:r,overflowY:i,display:a}=Wr(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&!["inline","contents"].includes(a)}function Or(t){return["table","td","th"].includes(Dr(t))}function Lr(t){const e=jr();const r=Wr(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":false)||!e&&(r.backdropFilter?r.backdropFilter!=="none":false)||!e&&(r.filter?r.filter!=="none":false)||["transform","perspective","filter"].some((t=>(r.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(r.contain||"").includes(t)))}function Nr(t){let e=_r(t);while(Fr(e)&&!Pr(e)){if(Lr(e)){return e}else{e=_r(e)}}return null}function jr(){if(typeof CSS==="undefined"||!CSS.supports)return false;return CSS.supports("-webkit-backdrop-filter","none")}function Pr(t){return["html","body","#document"].includes(Dr(t))}function Wr(t){return Ar(t).getComputedStyle(t)}function Hr(t){if(Tr(t)){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function _r(t){if(Dr(t)==="html"){return t}const e=t.assignedSlot||t.parentNode||Er(t)&&t.host||Sr(t);return Er(e)?e.host:e}function Ur(t){const e=_r(t);if(Pr(e)){return t.ownerDocument?t.ownerDocument.body:t.body}if(Fr(e)&&Br(e)){return e}return Ur(e)}function Kr(t,e,r){var i;if(e===void 0){e=[]}if(r===void 0){r=true}const a=Ur(t);const n=a===((i=t.ownerDocument)==null?void 0:i.body);const o=Ar(a);if(n){return e.concat(o,o.visualViewport||[],Br(a)?a:[],o.frameElement&&r?Kr(o.frameElement):[])}return e.concat(a,Kr(a,[],r))}function Gr(t){const e=Wr(t);let r=parseFloat(e.width)||0;let i=parseFloat(e.height)||0;const a=Fr(t);const n=a?t.offsetWidth:r;const o=a?t.offsetHeight:i;const s=Xe(r)!==n||Xe(i)!==o;if(s){r=n;i=o}return{width:r,height:i,$:s}}function Jr(t){return!Tr(t)?t.contextElement:t}function Yr(t){const e=Jr(t);if(!Fr(e)){return tr(1)}const r=e.getBoundingClientRect();const{width:i,height:a,$:n}=Gr(e);let o=(n?Xe(r.width):r.width)/i;let s=(n?Xe(r.height):r.height)/a;if(!o||!Number.isFinite(o)){o=1}if(!s||!Number.isFinite(s)){s=1}return{x:o,y:s}}const qr=tr(0);function Vr(t){const e=Ar(t);if(!jr()||!e.visualViewport){return qr}return{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Zr(t,e,r){if(e===void 0){e=false}if(!r||e&&r!==Ar(t)){return false}return e}function Xr(t,e,r,i){if(e===void 0){e=false}if(r===void 0){r=false}const a=t.getBoundingClientRect();const n=Jr(t);let o=tr(1);if(e){if(i){if(Tr(i)){o=Yr(i)}}else{o=Yr(t)}}const s=Zr(n,r,i)?Vr(n):tr(0);let l=(a.left+s.x)/o.x;let c=(a.top+s.y)/o.y;let d=a.width/o.x;let h=a.height/o.y;if(n){const t=Ar(n);const e=i&&Tr(i)?Ar(i):i;let r=t.frameElement;while(r&&i&&e!==t){const t=Yr(r);const e=r.getBoundingClientRect();const i=Wr(r);const a=e.left+(r.clientLeft+parseFloat(i.paddingLeft))*t.x;const n=e.top+(r.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x;c*=t.y;d*=t.x;h*=t.y;l+=a;c+=n;r=Ar(r).frameElement}}return yr({width:d,height:h,x:l,y:c})}function Qr(t){let{rect:e,offsetParent:r,strategy:i}=t;const a=Fr(r);const n=Sr(r);if(r===n){return e}let o={scrollLeft:0,scrollTop:0};let s=tr(1);const l=tr(0);if(a||!a&&i!=="fixed"){if(Dr(r)!=="body"||Br(n)){o=Hr(r)}if(Fr(r)){const t=Xr(r);s=Yr(r);l.x=t.x+r.clientLeft;l.y=t.y+r.clientTop}}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-o.scrollLeft*s.x+l.x,y:e.y*s.y-o.scrollTop*s.y+l.y}}function ti(t){return Array.from(t.getClientRects())}function ei(t){return Xr(Sr(t)).left+Hr(t).scrollLeft}function ri(t){const e=Sr(t);const r=Hr(t);const i=t.ownerDocument.body;const a=Ze(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth);const n=Ze(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let o=-r.scrollLeft+ei(t);const s=-r.scrollTop;if(Wr(i).direction==="rtl"){o+=Ze(e.clientWidth,i.clientWidth)-a}return{width:a,height:n,x:o,y:s}}function ii(t,e){const r=Ar(t);const i=Sr(t);const a=r.visualViewport;let n=i.clientWidth;let o=i.clientHeight;let s=0;let l=0;if(a){n=a.width;o=a.height;const t=jr();if(!t||t&&e==="fixed"){s=a.offsetLeft;l=a.offsetTop}}return{width:n,height:o,x:s,y:l}}function ai(t,e){const r=Xr(t,true,e==="fixed");const i=r.top+t.clientTop;const a=r.left+t.clientLeft;const n=Fr(t)?Yr(t):tr(1);const o=t.clientWidth*n.x;const s=t.clientHeight*n.y;const l=a*n.x;const c=i*n.y;return{width:o,height:s,x:l,y:c}}function ni(t,e,r){let i;if(e==="viewport"){i=ii(t,r)}else if(e==="document"){i=ri(Sr(t))}else if(Tr(e)){i=ai(e,r)}else{const r=Vr(t);i={...e,x:e.x-r.x,y:e.y-r.y}}return yr(i)}function oi(t,e){const r=_r(t);if(r===e||!Tr(r)||Pr(r)){return false}return Wr(r).position==="fixed"||oi(r,e)}function si(t,e){const r=e.get(t);if(r){return r}let i=Kr(t,[],false).filter((t=>Tr(t)&&Dr(t)!=="body"));let a=null;const n=Wr(t).position==="fixed";let o=n?_r(t):t;while(Tr(o)&&!Pr(o)){const e=Wr(o);const r=Lr(o);if(!r&&e.position==="fixed"){a=null}const s=n?!r&&!a:!r&&e.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Br(o)&&!r&&oi(t,o);if(s){i=i.filter((t=>t!==o))}else{a=e}o=_r(o)}e.set(t,i);return i}function li(t){let{element:e,boundary:r,rootBoundary:i,strategy:a}=t;const n=r==="clippingAncestors"?si(e,this._c):[].concat(r);const o=[...n,i];const s=o[0];const l=o.reduce(((t,r)=>{const i=ni(e,r,a);t.top=Ze(i.top,t.top);t.right=Ve(i.right,t.right);t.bottom=Ve(i.bottom,t.bottom);t.left=Ze(i.left,t.left);return t}),ni(e,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function ci(t){return Gr(t)}function di(t,e,r){const i=Fr(e);const a=Sr(e);const n=r==="fixed";const o=Xr(t,true,n,e);let s={scrollLeft:0,scrollTop:0};const l=tr(0);if(i||!i&&!n){if(Dr(e)!=="body"||Br(a)){s=Hr(e)}if(i){const t=Xr(e,true,n,e);l.x=t.x+e.clientLeft;l.y=t.y+e.clientTop}else if(a){l.x=ei(a)}}return{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function hi(t,e){if(!Fr(t)||Wr(t).position==="fixed"){return null}if(e){return e(t)}return t.offsetParent}function ui(t,e){const r=Ar(t);if(!Fr(t)){return r}let i=hi(t,e);while(i&&Or(i)&&Wr(i).position==="static"){i=hi(i,e)}if(i&&(Dr(i)==="html"||Dr(i)==="body"&&Wr(i).position==="static"&&!Lr(i))){return r}return i||Nr(t)||r}const fi=async function(t){let{reference:e,floating:r,strategy:i}=t;const a=this.getOffsetParent||ui;const n=this.getDimensions;return{reference:di(e,await a(r),i),floating:{x:0,y:0,...await n(r)}}};function pi(t){return Wr(t).direction==="rtl"}const mi={convertOffsetParentRelativeRectToViewportRelativeRect:Qr,getDocumentElement:Sr,getClippingRect:li,getOffsetParent:ui,getElementRects:fi,getClientRects:ti,getDimensions:ci,getScale:Yr,isElement:Tr,isRTL:pi};function bi(t,e){let r=null;let i;const a=Sr(t);function n(){clearTimeout(i);r&&r.disconnect();r=null}function o(s,l){if(s===void 0){s=false}if(l===void 0){l=1}n();const{left:c,top:d,width:h,height:u}=t.getBoundingClientRect();if(!s){e()}if(!h||!u){return}const f=Qe(d);const p=Qe(a.clientWidth-(c+h));const m=Qe(a.clientHeight-(d+u));const b=Qe(c);const v=-f+"px "+-p+"px "+-m+"px "+-b+"px";const g={rootMargin:v,threshold:Ze(0,Ve(1,l))||1};let y=true;function x(t){const e=t[0].intersectionRatio;if(e!==l){if(!y){return o()}if(!e){i=setTimeout((()=>{o(false,1e-7)}),100)}else{o(false,e)}}y=false}try{r=new IntersectionObserver(x,{...g,root:a.ownerDocument})}catch(t){r=new IntersectionObserver(x,g)}r.observe(t)}o(true);return n}function vi(t,e,r,i){if(i===void 0){i={}}const{ancestorScroll:a=true,ancestorResize:n=true,elementResize:o=typeof ResizeObserver==="function",layoutShift:s=typeof IntersectionObserver==="function",animationFrame:l=false}=i;const c=Jr(t);const d=a||n?[...c?Kr(c):[],...Kr(e)]:[];d.forEach((t=>{a&&t.addEventListener("scroll",r,{passive:true});n&&t.addEventListener("resize",r)}));const h=c&&s?bi(c,r):null;let u=-1;let f=null;if(o){f=new ResizeObserver((t=>{let[i]=t;if(i&&i.target===c&&f){f.unobserve(e);cancelAnimationFrame(u);u=requestAnimationFrame((()=>{f&&f.observe(e)}))}r()}));if(c&&!l){f.observe(c)}f.observe(e)}let p;let m=l?Xr(t):null;if(l){b()}function b(){const e=Xr(t);if(m&&(e.x!==m.x||e.y!==m.y||e.width!==m.width||e.height!==m.height)){r()}m=e;p=requestAnimationFrame(b)}r();return()=>{d.forEach((t=>{a&&t.removeEventListener("scroll",r);n&&t.removeEventListener("resize",r)}));h&&h();f&&f.disconnect();f=null;if(l){cancelAnimationFrame(p)}}}const gi=(t,e,r)=>{const i=new Map;const a={platform:mi,...r};const n={...a.platform,_c:i};return wr(t,e,{...a,platform:n})};const yi=125; +import{r as t,h as e,H as r,g as i,c as a}from"./p-6cd4fa1e.js";import{f as n,O as o,g as s,E as l,S as c,h as d,i as h,j as u,k as f,l as p,m,n as b,p as v,q as g,r as y,s as x,t as w,u as k,v as z,b as I,c as $,a as C,e as M,o as D}from"./p-f65e3491.js";const A=n((t=>function e(){t(this);this.name="ObjectUnsubscribedError";this.message="object unsubscribed"}));class S extends o{constructor(){super();this.closed=false;this.currentObservers=null;this.observers=[];this.isStopped=false;this.hasError=false;this.thrownError=null}lift(t){const e=new R(this,this);e.operator=t;return e}_throwIfClosed(){if(this.closed){throw new A}}next(t){s((()=>{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){s((()=>{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(){s((()=>{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:r,observers:i}=this;if(e||r){return l}this.currentObservers=null;i.push(t);return new c((()=>{this.currentObservers=null;d(i,t)}))}_checkFinalizedStatuses(t){const{hasError:e,thrownError:r,isStopped:i}=this;if(e){t.error(r)}else if(i){t.complete()}}asObservable(){const t=new o;t.source=this;return t}}S.create=(t,e)=>new R(t,e);class R extends S{constructor(t,e){super();this.destination=t;this.source=e}next(t){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.next)===null||r===void 0?void 0:r.call(e,t)}error(t){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.error)===null||r===void 0?void 0:r.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,r;return(r=(e=this.source)===null||e===void 0?void 0:e.subscribe(t))!==null&&r!==void 0?r:l}}const T={now(){return(T.delegate||Date).now()},delegate:undefined};class F extends c{constructor(t,e){super()}schedule(t,e=0){return this}}const E={setInterval(t,e,...r){const{delegate:i}=E;if(i===null||i===void 0?void 0:i.setInterval){return i.setInterval(t,e,...r)}return setInterval(t,e,...r)},clearInterval(t){const{delegate:e}=E;return((e===null||e===void 0?void 0:e.clearInterval)||clearInterval)(t)},delegate:undefined};class B extends F{constructor(t,e){super(t,e);this.scheduler=t;this.work=e;this.pending=false}schedule(t,e=0){if(this.closed){return this}this.state=t;const r=this.id;const i=this.scheduler;if(r!=null){this.id=this.recycleAsyncId(i,r,e)}this.pending=true;this.delay=e;this.id=this.id||this.requestAsyncId(i,this.id,e);return this}requestAsyncId(t,e,r=0){return E.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,e,r=0){if(r!=null&&this.delay===r&&this.pending===false){return e}E.clearInterval(e);return undefined}execute(t,e){if(this.closed){return new Error("executing a cancelled action")}this.pending=false;const r=this._execute(t,e);if(r){return r}else if(this.pending===false&&this.id!=null){this.id=this.recycleAsyncId(this.scheduler,this.id,null)}}_execute(t,e){let r=false;let i;try{this.work(t)}catch(t){r=true;i=t?t:new Error("Scheduled action threw falsy error")}if(r){this.unsubscribe();return i}}unsubscribe(){if(!this.closed){const{id:t,scheduler:e}=this;const{actions:r}=e;this.work=this.state=this.scheduler=null;this.pending=false;d(r,this);if(t!=null){this.id=this.recycleAsyncId(e,t,null)}this.delay=null;super.unsubscribe()}}}class O{constructor(t,e=O.now){this.schedulerActionCtor=t;this.now=e}schedule(t,e=0,r){return new this.schedulerActionCtor(this,t).schedule(r,e)}}O.now=T.now;class L extends O{constructor(t,e=O.now){super(t,e);this.actions=[];this._active=false;this._scheduled=undefined}flush(t){const{actions:e}=this;if(this._active){e.push(t);return}let r;this._active=true;do{if(r=t.execute(t.state,t.delay)){break}}while(t=e.shift());this._active=false;if(r){while(t=e.shift()){t.unsubscribe()}throw r}}}const N=new L(B);const j=N;const P=new o((t=>t.complete()));const W=n((t=>function e(){t(this);this.name="EmptyError";this.message="no elements in sequence"}));function H(t){return t instanceof Date&&!isNaN(t)}function _(t,e){return h(((r,i)=>{let a=0;r.subscribe(u(i,(r=>{i.next(t.call(e,r,a++))})))}))}const{isArray:U}=Array;function K(t,e){return U(e)?t(...e):t(e)}function G(t){return _((e=>K(t,e)))}function J(t,e,r,i,a,n,o,s){const l=[];let c=0;let d=0;let h=false;const m=()=>{if(h&&!l.length&&!c){e.complete()}};const b=t=>c{n&&e.next(t);c++;let s=false;f(r(t,d++)).subscribe(u(e,(t=>{a===null||a===void 0?void 0:a(t);if(n){b(t)}else{e.next(t)}}),(()=>{s=true}),undefined,(()=>{if(s){try{c--;while(l.length&&cv(t)))}else{v(t)}}m()}catch(t){e.error(t)}}})))};t.subscribe(u(e,b,(()=>{h=true;m()})));return()=>{s===null||s===void 0?void 0:s()}}function Y(t,e,r=Infinity){if(m(e)){return Y(((r,i)=>_(((t,a)=>e(r,t,i,a)))(f(t(r,i)))),r)}else if(typeof e==="number"){r=e}return h(((e,i)=>J(e,i,t,r)))}function q(t=Infinity){return Y(b,t)}function V(){return q(1)}function Z(...t){return V()(v(t,g(t)))}const X=["addListener","removeListener"];const Q=["addEventListener","removeEventListener"];const tt=["on","off"];function et(t,e,r,i){if(m(r)){i=r;r=undefined}if(i){return et(t,e,r).pipe(G(i))}const[a,n]=nt(t)?Q.map((i=>a=>t[i](e,a,r))):it(t)?X.map(rt(t,e)):at(t)?tt.map(rt(t,e)):[];if(!a){if(y(t)){return Y((t=>et(t,e,r)))(f(t))}}if(!a){throw new TypeError("Invalid event target")}return new o((t=>{const e=(...e)=>t.next(1n(e)}))}function rt(t,e){return r=>i=>t[r](e,i)}function it(t){return m(t.addListener)&&m(t.removeListener)}function at(t){return m(t.on)&&m(t.off)}function nt(t){return m(t.addEventListener)&&m(t.removeEventListener)}function ot(t=0,e,r=j){let i=-1;if(e!=null){if(x(e)){r=e}else{i=e}}return new o((e=>{let a=H(t)?+t-r.now():t;if(a<0){a=0}let n=0;return r.schedule((function(){if(!e.closed){e.next(n++);if(0<=i){this.schedule(undefined,i)}else{e.complete()}}}),a)}))}function st(...t){const e=g(t);const r=w(t,Infinity);const i=t;return!i.length?P:i.length===1?f(i[0]):q(r)(v(i,e))}function lt(t,e){return h(((r,i)=>{let a=0;r.subscribe(u(i,(r=>t.call(e,r,a++)&&i.next(r))))}))}function ct(t){return h(((e,r)=>{let i=false;let a=null;let n=null;let o=false;const s=()=>{n===null||n===void 0?void 0:n.unsubscribe();n=null;if(i){i=false;const t=a;a=null;r.next(t)}o&&r.complete()};const l=()=>{n=null;o&&r.complete()};e.subscribe(u(r,(e=>{i=true;a=e;if(!n){f(t(e)).subscribe(n=u(r,s,l))}}),(()=>{o=true;(!i||!n||n.closed)&&r.complete()})))}))}function dt(t,e=N){return ct((()=>ot(t,e)))}function ht(t){return h(((e,r)=>{let i=null;let a=false;let n;i=e.subscribe(u(r,undefined,undefined,(o=>{n=f(t(o,ht(t)(e)));if(i){i.unsubscribe();i=null;n.subscribe(r)}else{a=true}})));if(a){i.unsubscribe();i=null;n.subscribe(r)}}))}function ut(t,e,r,i,a){return(n,o)=>{let s=r;let l=e;let c=0;n.subscribe(u(o,(e=>{const r=c++;l=s?t(l,e,r):(s=true,e);i&&o.next(l)}),a&&(()=>{s&&o.next(l);o.complete()})))}}function ft(t){return h(((e,r)=>{let i=false;let a=null;let n=null;const o=()=>{n===null||n===void 0?void 0:n.unsubscribe();n=null;if(i){i=false;const t=a;a=null;r.next(t)}};e.subscribe(u(r,(e=>{n===null||n===void 0?void 0:n.unsubscribe();i=true;a=e;n=u(r,o,k);f(t(e)).subscribe(n)}),(()=>{o();r.complete()}),undefined,(()=>{a=n=null})))}))}function pt(t){return h(((e,r)=>{let i=false;e.subscribe(u(r,(t=>{i=true;r.next(t)}),(()=>{if(!i){r.next(t)}r.complete()})))}))}function mt(t){return t<=0?()=>P:h(((e,r)=>{let i=0;e.subscribe(u(r,(e=>{if(++i<=t){r.next(e);if(t<=i){r.complete()}}})))}))}function bt(){return h(((t,e)=>{t.subscribe(u(e,k))}))}function vt(t){return _((()=>t))}function gt(t,e){if(e){return r=>Z(e.pipe(mt(1),bt()),r.pipe(gt(t)))}return Y(((e,r)=>t(e,r).pipe(mt(1),vt(e))))}function yt(t,e=N){const r=ot(t,e);return gt((()=>r))}function xt(t,e=b){t=t!==null&&t!==void 0?t:wt;return h(((r,i)=>{let a;let n=true;r.subscribe(u(i,(r=>{const o=e(r);if(n||!t(a,o)){n=false;a=o;i.next(r)}})))}))}function wt(t,e){return t===e}function kt(t=zt){return h(((e,r)=>{let i=false;e.subscribe(u(r,(t=>{i=true;r.next(t)}),(()=>i?r.complete():r.error(t()))))}))}function zt(){return new W}function It(t,e){const r=arguments.length>=2;return i=>i.pipe(t?lt(((e,r)=>t(e,r,i))):b,mt(1),r?pt(e):kt((()=>new W)))}function $t(t,e){return h(ut(t,e,arguments.length>=2,true))}function Ct(...t){const e=g(t);return h(((r,i)=>{(e?Z(t,r,e):Z(t,r)).subscribe(i)}))}function Mt(t,e){return h(((r,i)=>{let a=null;let n=0;let o=false;const s=()=>o&&!a&&i.complete();r.subscribe(u(i,(r=>{a===null||a===void 0?void 0:a.unsubscribe();let o=0;const l=n++;f(t(r,l)).subscribe(a=u(i,(t=>i.next(e?e(r,t,l,o++):t)),(()=>{a=null;s()})))}),(()=>{o=true;s()})))}))}function Dt(t){return h(((e,r)=>{f(t).subscribe(u(r,(()=>r.complete()),k));!r.closed&&e.subscribe(r)}))}function At(t,e=false){return h(((r,i)=>{let a=0;r.subscribe(u(i,(r=>{const n=t(r,a++);(n||e)&&i.next(r);!n&&i.complete()})))}))}function St(t,e,r){const i=m(t)||e||r?{next:t,error:e,complete:r}:t;return i?h(((t,e)=>{var r;(r=i.subscribe)===null||r===void 0?void 0:r.call(i);let a=true;t.subscribe(u(e,(t=>{var r;(r=i.next)===null||r===void 0?void 0:r.call(i,t);e.next(t)}),(()=>{var t;a=false;(t=i.complete)===null||t===void 0?void 0:t.call(i);e.complete()}),(t=>{var r;a=false;(r=i.error)===null||r===void 0?void 0:r.call(i,t);e.error(t)}),(()=>{var t,e;if(a){(t=i.unsubscribe)===null||t===void 0?void 0:t.call(i)}(e=i.finalize)===null||e===void 0?void 0:e.call(i)})))})):b}function Rt(t,e,r){if(!t.hostElement.hasAttribute(e)&&r!=null){t.hostElement.setAttribute(e,String(r))}}const Tt=':host{display:flex;gap:0.5rem;padding:1.25rem;border-radius:var(--cat-border-radius-l, 0.5rem)}:host([hidden]){display:none}:host(:focus-visible){outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.content{align-self:center}::slotted(:last-child){margin-bottom:0 !important}:host([color=primary]){background-color:rgb(var(--cat-primary-bg, 0, 129, 148));color:rgb(var(--cat-primary-fill, 255, 255, 255));--cat-primary-text:cat-token("color.theme.primary.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.primary.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.primary.fill-active", $wrap: false);--cat-link-decoration:underline}:host([color=secondary]){background-color:rgb(var(--cat-secondary-bg, 105, 118, 135));color:rgb(var(--cat-secondary-fill, 255, 255, 255));--cat-primary-text:cat-token("color.theme.secondary.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.secondary.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.secondary.fill-active", $wrap: false);--cat-link-decoration:underline}:host([color=info]){background-color:rgb(var(--cat-success-bg, 0, 115, 230));color:rgb(var(--cat-success-fill, 255, 255, 255));--cat-primary-text:cat-token("color.theme.info.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.info.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.info.fill-active", $wrap: false);--cat-link-decoration:underline}:host([color=success]){background-color:rgb(var(--cat-success-bg, 0, 132, 88));color:rgb(var(--cat-success-fill, 255, 255, 255));--cat-primary-text:cat-token("color.theme.success.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.success.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.success.fill-active", $wrap: false);--cat-link-decoration:underline}:host([color=warning]){background-color:rgb(var(--cat-warning-bg, 255, 206, 128));color:rgb(var(--cat-warning-fill, 0, 0, 0));--cat-primary-text:cat-token("color.theme.warning.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.warning.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.warning.fill-active", $wrap: false);--cat-link-decoration:underline}:host([color=danger]){background-color:rgb(var(--cat-danger-bg, 217, 52, 13));color:rgb(var(--cat-danger-fill, 255, 255, 255));--cat-primary-text:cat-token("color.theme.danger.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.danger.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.danger.fill-active", $wrap: false);--cat-link-decoration:underline}';const Ft=class{constructor(e){t(this,e);this.mapIcon=new Map([["primary","$cat:alert-primary"],["secondary","$cat:alert-secondary"],["info","$cat:alert-info"],["success","$cat:alert-success"],["warning","$cat:alert-warning"],["danger","$cat:alert-danger"]]);this.mapRole=new Map([["primary","status"],["secondary","status"],["info","status"],["success","status"],["warning","alert"],["danger","alert"]]);this.color="primary";this.icon=undefined;this.noIcon=false}connectedCallback(){Rt(this,"tabindex",0);Rt(this,"role",this.mapRole.get(this.color))}render(){return e(r,null,!this.noIcon&&e("cat-icon",{size:"l",icon:this.icon||this.mapIcon.get(this.color)}),e("div",{class:"content"},e("slot",null)))}get hostElement(){return i(this)}};Ft.style=Tt;const Et=t=>new Promise(((e,r)=>{const i=new Image;i.addEventListener("load",e);i.addEventListener("error",r);i.src=t}));const Bt=":host{display:contents}:host([hidden]){display:none}.avatar{display:inline-flex;align-items:center;justify-content:center;border-radius:var(--cat-border-radius-m, 0.25rem);text-decoration:inherit;color:var(--cat-avatar-fill, #515c6c);background-color:var(--cat-avatar-bg, #f2f4f7);background-size:cover;background-position:center;white-space:nowrap;overflow:hidden;vertical-align:middle;font-weight:600;-webkit-user-select:none;-ms-user-select:none;user-select:none;}.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 Ot=class{constructor(e){t(this,e);this.backgroundImage=undefined;this.size="m";this.round=false;this.label="";this.initials=undefined;this.src=undefined;this.icon=undefined;this.url=undefined;this.urlTarget=undefined}onSrcChanged(t){if(t){Et(t).then((()=>this.backgroundImage=`url(${t})`),(()=>this.backgroundImage=undefined))}else{this.backgroundImage=undefined}}componentWillLoad(){this.onSrcChanged(this.src)}componentWillRender(){if(!this.label){z.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(){return this.initials??(this.label??"").split(" ").map((t=>t[0])).join("")}static get watchers(){return{src:["onSrcChanged"]}}};Ot.style=Bt;const Lt=":host([hidden]){display:none}:host{display:inline-flex;max-width:100%;vertical-align:baseline;align-items:center;justify-content:center;border-radius:var(--cat-border-radius-m, 0.25rem);text-decoration:none;line-height:1.5}:host slot{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}:host([round]){border-radius:10rem}:host([variant=filled]){background-color:rgb(var(--bg));color:rgb(var(--fill));font-weight:600;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:greyscale}:host([variant=outlined]){background-color:white;color:rgb(var(--text));box-shadow:inset 0 0 0 1px rgba(var(--text), 0.2)}:host([color=primary]){--bg:var(--cat-primary-bg, 0, 129, 148);--fill:var(--cat-primary-fill, 255, 255, 255);--text:var(--cat-primary-text, 0, 129, 148)}:host([color=secondary]){--bg:var(--cat-secondary-bg, 105, 118, 135);--fill:var(--cat-secondary-fill, 255, 255, 255);--text:var(--cat-secondary-text, 0, 0, 0)}:host([color=info]){--bg:var(--cat-success-bg, 0, 115, 230);--fill:var(--cat-success-fill, 255, 255, 255);--text:var(--cat-success-text, 0, 115, 230)}:host([color=success]){--bg:var(--cat-success-bg, 0, 132, 88);--fill:var(--cat-success-fill, 255, 255, 255);--text:var(--cat-success-text, 0, 132, 88)}:host([color=warning]){--bg:var(--cat-warning-bg, 255, 206, 128);--fill:var(--cat-warning-fill, 0, 0, 0);--text:var(--cat-warning-text, 159, 97, 0)}:host([color=danger]){--bg:var(--cat-danger-bg, 217, 52, 13);--fill:var(--cat-danger-fill, 255, 255, 255);--text:var(--cat-danger-text, 217, 52, 13)}:host([size=xs]){height:1rem;min-width:1rem;font-size:0.75rem;padding:0 0.25rem}:host([size=s]){height:1.5rem;min-width:1.5rem;font-size:0.75rem;padding:0 0.5rem}:host([size=m]){height:2rem;min-width:2rem;font-size:0.875rem;padding:0 0.75rem}:host([size=l]){height:2.5rem;min-width:2.5rem;font-size:0.9375rem;padding:0 1rem}:host([size=xl]){height:3rem;min-width:3rem;font-size:1.125rem;padding:0 1rem}:host([pulse][variant=filled]){animation:1.5s ease 0s infinite normal none running pulse}:host([pulse][variant=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(--text), 0.2)}70%{box-shadow:transparent 0 0 0 0.5rem, inset 0 0 0 1px rgba(var(--text), 0.2)}100%{box-shadow:transparent 0 0 0 0, inset 0 0 0 1px rgba(var(--text), 0.2)}}";const Nt=class{constructor(e){t(this,e);this.variant="filled";this.color="primary";this.size="m";this.round=false;this.pulse=false}render(){return e("slot",null)}get hostElement(){return i(this)}};Nt.style=Lt;const jt=["xs","s","m","l","xl"];const Pt={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 Wt(t){return typeof t==="string"&&jt.includes(t)}let Ht;try{Ht=typeof Intl!=="undefined"&&Intl.v8BreakIterator}catch{Ht=false}class _t{constructor(){this.EDGE=/(edge)/i.test(navigator.userAgent);this.TRIDENT=/(msie|trident)/i.test(navigator.userAgent);this.BLINK=!!(window.chrome||Ht)&&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 Ut=new Set;let Kt;class Gt{constructor(){this._platform=new _t;this._matchMedia=window.matchMedia.bind(window)}matchMedia(t){if(this._platform.WEBKIT||this._platform.BLINK){Jt(t)}return this._matchMedia(t)}}function Jt(t){if(Ut.has(t)){return}try{if(!Kt){Kt=document.createElement("style");Kt.setAttribute("type","text/css");document.head.appendChild(Kt)}if(Kt.sheet){Kt.sheet.insertRule(`@media ${t} {body{ }}`,0);Ut.add(t)}}catch(t){z.error(t)}}const Yt=':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:var(--cat-border-radius-m, 0.25rem);text-decoration:none;width:100%;box-sizing:border-box;cursor:pointer;transition:color 125ms linear, border-color 125ms linear, background-color 125ms linear, box-shadow 125ms linear}.cat-button:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-button-content{display:flex;flex-direction:column;min-width:0}.cat-button-content-inner{word-wrap:break-word;word-break:break-word}.cat-button-ellipsed .cat-button-content-inner{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.cat-button-disabled{cursor:not-allowed}.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-group-button-first{border-top-right-radius:0;border-bottom-right-radius:0}.cat-group-button-middle{border-radius:0}.cat-group-button-last{border-top-left-radius:0;border-bottom-left-radius:0}.cat-group-button:hover{z-index:1}.cat-group-button:focus-visible{z-index:2}.cat-button-filled{background-color:rgb(var(--bg));color:rgb(var(--fill));font-weight:var(--cat-font-weight-button, 600);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:greyscale}.cat-button-filled.cat-button-disabled{--bg:242, 244, 247;--fill:var(--cat-font-color-muted, 81, 92, 108)}.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.cat-button-disabled{--base:var(--cat-font-color-muted, 81, 92, 108);--text:var(--cat-font-color-muted, 81, 92, 108)}.cat-button-outlined:hover:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.1)}.cat-button-outlined.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.1)}.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:var(--cat-link-button-decoration, none)}.cat-button-text.cat-button-disabled{--text:var(--cat-font-color-muted, 81, 92, 108)}.cat-button-text:hover:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.1)}.cat-button-text.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.1)}.cat-button-link{background-color:transparent;color:rgb(var(--text))}.cat-button-link.cat-button-disabled{--text:var(--cat-font-color-muted, 81, 92, 108)}.cat-button-link:hover:not(.cat-button-disabled):not(.cat-button-loading){text-decoration:var(--cat-link-decoration-hover, underline)}.cat-button-link.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading){text-decoration:var(--cat-link-decoration-hover, underline)}.cat-button-primary{--bg:var(--cat-primary-bg, 0, 129, 148);--fill:var(--cat-primary-fill, 255, 255, 255);--text:var(--cat-primary-text, 0, 129, 148);--base:var(--cat-primary-text, 0, 129, 148)}.cat-button-primary:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-primary-bg-hover, 1, 115, 132);--fill:var(--cat-primary-fill-hover, 255, 255, 255);--text:var(--cat-primary-text-hover, 1, 115, 132)}.cat-button-primary.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-primary:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-primary-bg-active, 2, 99, 113);--fill:var(--cat-primary-fill-active, 255, 255, 255);--text:var(--cat-primary-text-active, 2, 99, 113)}.cat-button-secondary{--bg:var(--cat-secondary-bg, 105, 118, 135);--fill:var(--cat-secondary-fill, 255, 255, 255);--text:var(--cat-secondary-text, 0, 0, 0);--base:var(--cat-secondary-bg, 105, 118, 135)}.cat-button-secondary:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-secondary-bg-hover, 105, 118, 135);--fill:var(--cat-secondary-fill-hover, 255, 255, 255);--text:var(--cat-secondary-text-hover, 0, 0, 0)}.cat-button-secondary.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-secondary:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-secondary-bg-active, 105, 118, 135);--fill:var(--cat-secondary-fill-active, 255, 255, 255);--text:var(--cat-secondary-text-active, 0, 0, 0)}.cat-button-info{--bg:var(--cat-success-bg, 0, 115, 230);--fill:var(--cat-success-fill, 255, 255, 255);--text:var(--cat-success-text, 0, 115, 230);--base:var(--cat-success-text, 0, 115, 230)}.cat-button-info:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-success-bg-hover, 0, 107, 227);--fill:var(--cat-success-fill-hover, 255, 255, 255);--text:var(--cat-success-text-hover, 0, 107, 227)}.cat-button-info.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-info:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-success-bg-active, 0, 96, 223);--fill:var(--cat-success-fill-active, 255, 255, 255);--text:var(--cat-success-text-active, 0, 96, 223)}.cat-button-success{--bg:var(--cat-success-bg, 0, 132, 88);--fill:var(--cat-success-fill, 255, 255, 255);--text:var(--cat-success-text, 0, 132, 88);--base:var(--cat-success-text, 0, 132, 88)}.cat-button-success:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-success-bg-hover, 0, 117, 78);--fill:var(--cat-success-fill-hover, 255, 255, 255);--text:var(--cat-success-text-hover, 0, 117, 78)}.cat-button-success.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-success:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-success-bg-active, 0, 105, 70);--fill:var(--cat-success-fill-active, 255, 255, 255);--text:var(--cat-success-text-active, 0, 105, 70)}.cat-button-warning{--bg:var(--cat-warning-bg, 255, 206, 128);--fill:var(--cat-warning-fill, 0, 0, 0);--text:var(--cat-warning-text, 159, 97, 0);--base:var(--cat-warning-text, 159, 97, 0)}.cat-button-warning:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-warning-bg-hover, 255, 214, 148);--fill:var(--cat-warning-fill-hover, 0, 0, 0);--text:var(--cat-warning-text-hover, 159, 97, 0)}.cat-button-warning.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-warning:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-warning-bg-active, 255, 222, 168);--fill:var(--cat-warning-fill-active, 0, 0, 0);--text:var(--cat-warning-text-active, 159, 97, 0)}.cat-button-danger{--bg:var(--cat-danger-bg, 217, 52, 13);--fill:var(--cat-danger-fill, 255, 255, 255);--text:var(--cat-danger-text, 217, 52, 13);--base:var(--cat-danger-text, 217, 52, 13)}.cat-button-danger:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-danger-bg-hover, 194, 46, 11);--fill:var(--cat-danger-fill-hover, 255, 255, 255);--text:var(--cat-danger-text-hover, 194, 46, 11)}.cat-button-danger.cat-button-active:not(.cat-button-disabled):not(.cat-button-loading),.cat-button-danger:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-danger-bg-active, 174, 42, 10);--fill:var(--cat-danger-fill-active, 255, 255, 255);--text:var(--cat-danger-text-active, 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.1875rem 0.25rem;font-size:0.875rem;line-height:1.125rem;gap:0.25rem}.cat-button-xs.cat-button-icon{width:1.5rem;height:1.5rem;padding:0}:host(.cat-button-pull[size=xs]){margin:-0.1875rem -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.1875rem;margin-bottom:-0.1875rem}:host(.cat-button-pull-t[size=xs]){margin-top:-0.1875rem}:host(.cat-button-pull-l[size=xs]){margin-left:-0.25rem}:host(.cat-button-pull-b[size=xs]){margin-bottom:-0.1875rem}: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;gap:0.25rem}.cat-button-s cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-s.cat-button-icon{width:2rem;height:2rem;padding:0}: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;gap:0.25rem}.cat-button-m cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-m.cat-button-icon{width:2.5rem;height:2.5rem;padding:0}: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;gap:0.25rem}.cat-button-l cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-l.cat-button-icon{width:3rem;height:3rem;padding:0}: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;gap:0.25rem}.cat-button-xl.cat-button-icon{width:3.5rem;height:3.5rem;padding:0}: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}:host(.cat-tab)::part(button){padding:1.125rem 0.75rem;--cat-secondary-bg:transparent;--cat-primary-text:transparent;--cat-danger-text:transparent}:host(.cat-tab)::part(content)::before{content:attr(data-text);content:attr(data-text)/"";height:0;visibility:hidden;overflow:hidden;user-select:none;pointer-events:none;font-weight:700}:host(.cat-text-left) .cat-button{justify-content:left}:host(.cat-text-right) .cat-button{justify-content:right}:host(.cat-nav-item){width:100%}:host(.cat-nav-item) .cat-button{box-shadow:none;justify-content:left;gap:0.5rem}:host(.cat-nav-item) .cat-button:focus-visible{outline-offset:-2px}';const qt=class{constructor(e){t(this,e);this.catClick=a(this,"catClick",7);this.catFocus=a(this,"catFocus",7);this.catBlur=a(this,"catBlur",7);this._iconOnly=true;this.variant="outlined";this.color="secondary";this.active=false;this.size="m";this.name=undefined;this.value=undefined;this.disabled=false;this.loading=false;this.submit=false;this.noEllipsis=false;this.round=false;this.url=undefined;this.urlTarget=undefined;this.icon=undefined;this.iconOnly=false;this.iconRight=false;this.buttonId=undefined;this.a11yLabel=undefined;this.a11yCurrent=undefined;this.nativeAttributes=undefined;this.nativeContentAttributes=undefined;this.buttonGroupPosition=undefined}onIconOnlyChanged(t){this.mediaQueryList?.removeEventListener("change",this.mediaQueryListener);this.mediaQueryList=undefined;this.mediaQueryListener=undefined;if(Wt(t)){this.mediaMatcher??(this.mediaMatcher=new Gt);this.mediaQueryList=this.mediaMatcher.matchMedia(Pt[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){z.warn("[A11y] Missing ARIA label on icon button",this)}}haltDisabledEvents(t){if(this.disabled||this.loading){t.preventDefault();t.stopImmediatePropagation()}}async doFocus(t){this.button.focus(t)}async doBlur(){this.button.blur()}async doClick(){this.button.click()}render(){if(this.url){return e("a",{...this.nativeAttributes,ref:t=>this.button=t,href:this.disabled?undefined:this.url,target:this.urlTarget,"aria-disabled":this.disabled?"true":null,"aria-label":this.a11yLabel,"aria-current":this.a11yCurrent,id:this.buttonId,part:"button",class:{"cat-button":true,"cat-button-active":this.active,"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",{...this.nativeAttributes,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,"aria-current":this.a11yCurrent,id:this.buttonId,part:"button",class:{"cat-button":true,"cat-button-active":this.active,"cat-button-icon":this.isIconButton,"cat-button-round":this.round??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),[`cat-group-button-${this.buttonGroupPosition}`]:Boolean(this.buttonGroupPosition),"cat-group-button":Boolean(this.buttonGroupPosition)},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,part:"prefix"}):null,this.isIconButton?e("cat-icon",{icon:this.icon,size:this.iconSize}):e("span",{class:"cat-button-content",part:"content",...this.nativeContentAttributes},e("span",{class:"cat-button-content-inner"},e("slot",null))),this.hasSuffixIcon?e("cat-icon",{icon:this.icon,size:this.iconSize,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"]}}};qt.style=Yt;const Vt=":host{position:relative;display:inline-flex;vertical-align:middle}::slotted(cat-button[variant=outlined]),::slotted(cat-button:not([variant])){margin-right:-1px}::slotted(cat-button[variant=outlined]:last-child),::slotted(cat-button:not([variant]):last-child){margin-right:0}";const Zt=class{constructor(e){t(this,e);this.formElements=[];this.a11yLabel=undefined}render(){return e(r,{role:"group","aria-label":this.a11yLabel},e("slot",{onSlotchange:this.onSlotChange.bind(this)}))}onSlotChange(){this.formElements=Array.from(this.hostElement.querySelectorAll("cat-button"));this.formElements.forEach(((t,e)=>{t.buttonGroupPosition=e===0?"first":e===this.formElements.length-1?"last":"middle"}))}get hostElement(){return i(this)}};Zt.style=Vt;const Xt=":host{display:block;border-radius:var(--cat-border-radius-l, 0.5rem);background-color:white;padding:1.25rem}:host([hidden]){display:none}::slotted(:last-child){margin-bottom:0 !important}::slotted(nav),::slotted(nav:last-child){margin:-1rem -1rem !important}::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 Qt=class{constructor(e){t(this,e)}render(){return e("slot",null)}};Qt.style=Xt;const te=t=>{const{id:r,hint:i,slottedHint:a,errorMap:n}=t;const o=Object.entries(n||{});return e("div",{"aria-live":"polite",id:r+"-hint",class:"hint-section"},o.length?o.map((([r,i])=>e("p",{class:(t.class??"")+" input-hint cat-text-danger"},I.t(`error.${r}`,i)))):[i&&(Array.isArray(i)?i.map((r=>e("p",{class:(t.class??"")+" input-hint"},r))):e("p",{class:(t.class??"")+" input-hint"},i)),a])};const ee=".hint-wrapper{flex:0 1 auto;display:flex;gap:0.5rem}.hint-section{flex:1 1 auto;display:flex;flex-direction:column;gap:0.25rem;color:rgb(var(--cat-font-color-muted, 81, 92, 108));font-size:0.875rem;line-height:1.125rem}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){margin:0 !important}:host{display:flex;flex-direction:column;gap:0.5rem}: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-placeholder{width:calc(1.25rem + 2px);flex-shrink:0}.box{flex:0 0 auto;display:flex;position:relative;height:1.25rem;width:1.25rem;background-color:white;border:1px solid rgb(var(--cat-border-color-dark, 215, 219, 224));border-radius:var(--cat-border-radius-s, 0.125rem);transition:background-color 125ms ease, border-color 125ms 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 125ms ease;width:50%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%) scale(0.99)}:checked+.box{background-color:rgb(var(--cat-primary-bg, 0, 129, 148));border-color:rgb(var(--cat-primary-bg, 0, 129, 148));stroke:rgb(var(--cat-primary-fill, 255, 255, 255))}:checked+.box .check{stroke-dashoffset:0}:indeterminate+.box{background-color:rgb(var(--cat-primary-bg, 0, 129, 148));border-color:rgb(var(--cat-primary-bg, 0, 129, 148));stroke:rgb(var(--cat-primary-fill, 255, 255, 255))}:indeterminate+.box .check{stroke-dashoffset:16px}:indeterminate+.box .dash{stroke-dashoffset:0}:focus-visible+.box{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.is-disabled .box{background-color:#f2f4f7;border-color:rgb(var(--cat-border-color-dark, 215, 219, 224));stroke:rgb(var(--cat-font-color-muted, 81, 92, 108))}:host(.cat-error) .box{border:1px solid rgb(var(--cat-danger-bg, 217, 52, 13))}:host(.cat-error) :checked+.box,:host(.cat-error) :indeterminate+.box{background-color:rgb(var(--cat-danger-bg, 217, 52, 13));border-color:rgb(var(--cat-danger-bg, 217, 52, 13));stroke:rgb(var(--cat-danger-fill, 255, 255, 255))}.label{flex:1 1 auto;min-width:0}.is-hidden .label{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.is-disabled{cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}";let re=0;const ie=class{constructor(e){t(this,e);this.catChange=a(this,"catChange",7);this.catFocus=a(this,"catFocus",7);this.catBlur=a(this,"catBlur",7);this._id=`cat-checkbox-${re++}`;this.hasSlottedLabel=false;this.hasSlottedHint=false;this.checked=false;this.indeterminate=false;this.disabled=false;this.identifier=undefined;this.label="";this.labelHidden=false;this.name=undefined;this.required=false;this.value=undefined;this.noValue=undefined;this.resolvedValue=null;this.hint=undefined;this.labelLeft=false;this.nativeAttributes=undefined}get id(){return this.identifier||this._id}componentWillLoad(){this.updateResolved()}componentWillRender(){this.hasSlottedLabel=!!this.hostElement.querySelector('[slot="label"]');this.hasSlottedHint=!!this.hostElement.querySelector('[slot="hint"]');if(!this.label&&!this.hasSlottedLabel){z.warn("[A11y] Missing ARIA label on checkbox",this)}}async doFocus(t){this.input.focus(t)}async doBlur(){this.input.blur()}render(){return e(r,null,e("label",{htmlFor:this.id,class:{"is-hidden":this.labelHidden,"is-disabled":this.disabled,"label-left":this.labelLeft}},e("input",{...this.nativeAttributes,part:"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,indeterminate:this.indeterminate,onInput:this.onInput.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlur.bind(this),"aria-describedby":this.hasHint?this.id+"-hint":undefined}),e("span",{class:"box","aria-hidden":"true"},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.hasHint&&e("div",{class:{"hint-wrapper":true,"label-left":this.labelLeft}},e("div",{class:"box-placeholder"}),e(te,{id:this.id,hint:this.hint,slottedHint:this.hasSlottedHint&&e("slot",{name:"hint"})})))}get hasHint(){return!!this.hint||!!this.hasSlottedHint}onInput(){this.checked=this.input.checked;this.indeterminate=this.input.indeterminate;this.updateResolved();this.catChange.emit(this.resolvedValue)}onFocus(t){this.catFocus.emit(t)}onBlur(t){this.catBlur.emit(t)}updateResolved(){this.resolvedValue=this.checked?this.value??true:this.noValue??false}get hostElement(){return i(this)}};ie.style=ee;var ae=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"];var ne={_disable:[],allowInput:false,allowInvalidPreload:false,altFormat:"F j, Y",altInput:false,altInputClass:"form-control input",animate:typeof window==="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:true,clickOpens:true,closeOnSelect:true,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:false,enableSeconds:false,enableTime:false,errorHandler:function(t){return typeof console!=="undefined"&&console.warn(t)},getWeek:function(t){var e=new Date(t.getTime());e.setHours(0,0,0,0);e.setDate(e.getDate()+3-(e.getDay()+6)%7);var r=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-r.getTime())/864e5-3+(r.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:false,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"",noCalendar:false,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:undefined,prevArrow:"",shorthandCurrentMonth:false,showMonths:1,static:false,time_24hr:false,weekNumbers:false,wrap:false};var oe={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(t){var e=t%100;if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:false};var se=function(t,e){if(e===void 0){e=2}return("000"+t).slice(e*-1)};var le=function(t){return t===true?1:0};function ce(t,e){var r;return function(){var i=this;var a=arguments;clearTimeout(r);r=setTimeout((function(){return t.apply(i,a)}),e)}}var de=function(t){return t instanceof Array?t:[t]};function he(t,e,r){if(r===true)return t.classList.add(e);t.classList.remove(e)}function ue(t,e,r){var i=window.document.createElement(t);e=e||"";r=r||"";i.className=e;if(r!==undefined)i.textContent=r;return i}function fe(t){while(t.firstChild)t.removeChild(t.firstChild)}function pe(t,e){if(e(t))return t;else if(t.parentNode)return pe(t.parentNode,e);return undefined}function me(t,e){var r=ue("div","numInputWrapper"),i=ue("input","numInput "+t),a=ue("span","arrowUp"),n=ue("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1){i.type="number"}else{i.type="text";i.pattern="\\d*"}if(e!==undefined)for(var o in e)i.setAttribute(o,e[o]);r.appendChild(i);r.appendChild(a);r.appendChild(n);return r}function be(t){try{if(typeof t.composedPath==="function"){var e=t.composedPath();return e[0]}return t.target}catch(e){return t.target}}var ve=function(){return undefined};var ge=function(t,e,r){return r.months[e?"shorthand":"longhand"][t]};var ye={D:ve,F:function(t,e,r){t.setMonth(r.months.longhand.indexOf(e))},G:function(t,e){t.setHours((t.getHours()>=12?12:0)+parseFloat(e))},H:function(t,e){t.setHours(parseFloat(e))},J:function(t,e){t.setDate(parseFloat(e))},K:function(t,e,r){t.setHours(t.getHours()%12+12*le(new RegExp(r.amPM[1],"i").test(e)))},M:function(t,e,r){t.setMonth(r.months.shorthand.indexOf(e))},S:function(t,e){t.setSeconds(parseFloat(e))},U:function(t,e){return new Date(parseFloat(e)*1e3)},W:function(t,e,r){var i=parseInt(e);var a=new Date(t.getFullYear(),0,2+(i-1)*7,0,0,0,0);a.setDate(a.getDate()-a.getDay()+r.firstDayOfWeek);return a},Y:function(t,e){t.setFullYear(parseFloat(e))},Z:function(t,e){return new Date(e)},d:function(t,e){t.setDate(parseFloat(e))},h:function(t,e){t.setHours((t.getHours()>=12?12:0)+parseFloat(e))},i:function(t,e){t.setMinutes(parseFloat(e))},j:function(t,e){t.setDate(parseFloat(e))},l:ve,m:function(t,e){t.setMonth(parseFloat(e)-1)},n:function(t,e){t.setMonth(parseFloat(e)-1)},s:function(t,e){t.setSeconds(parseFloat(e))},u:function(t,e){return new Date(parseFloat(e))},w:ve,y:function(t,e){t.setFullYear(2e3+parseFloat(e))}};var xe={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"};var we={Z:function(t){return t.toISOString()},D:function(t,e,r){return e.weekdays.shorthand[we.w(t,e,r)]},F:function(t,e,r){return ge(we.n(t,e,r)-1,false,e)},G:function(t,e,r){return se(we.h(t,e,r))},H:function(t){return se(t.getHours())},J:function(t,e){return e.ordinal!==undefined?t.getDate()+e.ordinal(t.getDate()):t.getDate()},K:function(t,e){return e.amPM[le(t.getHours()>11)]},M:function(t,e){return ge(t.getMonth(),true,e)},S:function(t){return se(t.getSeconds())},U:function(t){return t.getTime()/1e3},W:function(t,e,r){return r.getWeek(t)},Y:function(t){return se(t.getFullYear(),4)},d:function(t){return se(t.getDate())},h:function(t){return t.getHours()%12?t.getHours()%12:12},i:function(t){return se(t.getMinutes())},j:function(t){return t.getDate()},l:function(t,e){return e.weekdays.longhand[t.getDay()]},m:function(t){return se(t.getMonth()+1)},n:function(t){return t.getMonth()+1},s:function(t){return t.getSeconds()},u:function(t){return t.getTime()},w:function(t){return t.getDay()},y:function(t){return String(t.getFullYear()).substring(2)}};var ke=function(t){var e=t.config,r=e===void 0?ne:e,i=t.l10n,a=i===void 0?oe:i,n=t.isMobile,o=n===void 0?false:n;return function(t,e,i){var n=i||a;if(r.formatDate!==undefined&&!o){return r.formatDate(t,e,n)}return e.split("").map((function(e,i,a){return we[e]&&a[i-1]!=="\\"?we[e](t,n,r):e!=="\\"?e:""})).join("")}};var ze=function(t){var e=t.config,r=e===void 0?ne:e,i=t.l10n,a=i===void 0?oe:i;return function(t,e,i,n){if(t!==0&&!t)return undefined;var o=n||a;var s;var l=t;if(t instanceof Date)s=new Date(t.getTime());else if(typeof t!=="string"&&t.toFixed!==undefined)s=new Date(t);else if(typeof t==="string"){var c=e||(r||ne).dateFormat;var d=String(t).trim();if(d==="today"){s=new Date;i=true}else if(r&&r.parseDate){s=r.parseDate(t,c)}else if(/Z$/.test(d)||/GMT$/.test(d)){s=new Date(t)}else{var h=void 0,u=[];for(var f=0,p=0,m="";fMath.min(e,r)&&t=0?new Date:new Date(r.config.minDate.getTime());var i=Ae(r.config);e.setHours(i.hours,i.minutes,i.seconds,e.getMilliseconds());r.selectedDates=[e];r.latestSelectedDateObj=e}if(t!==undefined&&t.type!=="blur"){$t(t)}var a=r._input.value;h();zt();if(r._input.value!==a){r._debouncedChange()}}function c(t,e){return t%12+12*le(e===r.l10n.amPM[1])}function d(t){switch(t%24){case 0:case 12:return 12;default:return t%12}}function h(){if(r.hourElement===undefined||r.minuteElement===undefined)return;var t=(parseInt(r.hourElement.value.slice(-2),10)||0)%24,e=(parseInt(r.minuteElement.value,10)||0)%60,i=r.secondElement!==undefined?(parseInt(r.secondElement.value,10)||0)%60:0;if(r.amPM!==undefined){t=c(t,r.amPM.textContent)}var a=r.config.minTime!==undefined||r.config.minDate&&r.minDateHasTime&&r.latestSelectedDateObj&&Ie(r.latestSelectedDateObj,r.config.minDate,true)===0;var n=r.config.maxTime!==undefined||r.config.maxDate&&r.maxDateHasTime&&r.latestSelectedDateObj&&Ie(r.latestSelectedDateObj,r.config.maxDate,true)===0;if(r.config.maxTime!==undefined&&r.config.minTime!==undefined&&r.config.minTime>r.config.maxTime){var o=Ce(r.config.minTime.getHours(),r.config.minTime.getMinutes(),r.config.minTime.getSeconds());var s=Ce(r.config.maxTime.getHours(),r.config.maxTime.getMinutes(),r.config.maxTime.getSeconds());var l=Ce(t,e,i);if(l>s&&l=12)];if(r.secondElement!==undefined)r.secondElement.value=se(i)}function p(t){var e=be(t);var r=parseInt(e.value)+(t.delta||0);if(r/1e3>1||t.key==="Enter"&&!/[^\d]/.test(r.toString())){_(r)}}function m(t,e,i,a){if(e instanceof Array)return e.forEach((function(e){return m(t,e,i,a)}));if(t instanceof Array)return t.forEach((function(t){return m(t,e,i,a)}));t.addEventListener(e,i,a);r._handlers.push({remove:function(){return t.removeEventListener(e,i,a)}})}function b(){vt("onChange")}function v(){if(r.config.wrap){["open","close","toggle","clear"].forEach((function(t){Array.prototype.forEach.call(r.element.querySelectorAll("[data-"+t+"]"),(function(e){return m(e,"click",r[t])}))}))}if(r.isMobile){mt();return}var t=ce(q,50);r._debouncedChange=ce(b,Te);if(r.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent))m(r.daysContainer,"mouseover",(function(t){if(r.config.mode==="range")Y(be(t))}));m(r._input,"keydown",J);if(r.calendarContainer!==undefined){m(r.calendarContainer,"keydown",J)}if(!r.config.inline&&!r.config.static)m(window,"resize",t);if(window.ontouchstart!==undefined)m(window.document,"touchstart",H);else m(window.document,"mousedown",H);m(window.document,"focus",H,{capture:true});if(r.config.clickOpens===true){m(r._input,"focus",r.open);m(r._input,"click",r.open)}if(r.daysContainer!==undefined){m(r.monthNav,"click",It);m(r.monthNav,["keyup","increment"],p);m(r.daysContainer,"click",ot)}if(r.timeContainer!==undefined&&r.minuteElement!==undefined&&r.hourElement!==undefined){var e=function(t){return be(t).select()};m(r.timeContainer,["increment"],l);m(r.timeContainer,"blur",l,{capture:true});m(r.timeContainer,"click",y);m([r.hourElement,r.minuteElement],["focus","click"],e);if(r.secondElement!==undefined)m(r.secondElement,"focus",(function(){return r.secondElement&&r.secondElement.select()}));if(r.amPM!==undefined){m(r.amPM,"click",(function(t){l(t)}))}}if(r.config.allowInput){m(r._input,"blur",G)}}function g(t,e){var i=t!==undefined?r.parseDate(t):r.latestSelectedDateObj||(r.config.minDate&&r.config.minDate>r.now?r.config.minDate:r.config.maxDate&&r.config.maxDate1);r.calendarContainer.appendChild(t);var n=r.config.appendTo!==undefined&&r.config.appendTo.nodeType!==undefined;if(r.config.inline||r.config.static){r.calendarContainer.classList.add(r.config.inline?"inline":"static");if(r.config.inline){if(!n&&r.element.parentNode)r.element.parentNode.insertBefore(r.calendarContainer,r._input.nextSibling);else if(r.config.appendTo!==undefined)r.config.appendTo.appendChild(r.calendarContainer)}if(r.config.static){var o=ue("div","flatpickr-wrapper");if(r.element.parentNode)r.element.parentNode.insertBefore(o,r.element);o.appendChild(r.element);if(r.altInput)o.appendChild(r.altInput);o.appendChild(r.calendarContainer)}}if(!r.config.static&&!r.config.inline)(r.config.appendTo!==undefined?r.config.appendTo:window.document.body).appendChild(r.calendarContainer)}function k(t,e,i,a){var n=U(e,true),o=ue("span",t,e.getDate().toString());o.dateObj=e;o.$i=a;o.setAttribute("aria-label",r.formatDate(e,r.config.ariaDateFormat));if(t.indexOf("hidden")===-1&&Ie(e,r.now)===0){r.todayDateElem=o;o.classList.add("today");o.setAttribute("aria-current","date")}if(n){o.tabIndex=-1;if(yt(e)){o.classList.add("selected");r.selectedDateElem=o;if(r.config.mode==="range"){he(o,"startRange",r.selectedDates[0]&&Ie(e,r.selectedDates[0],true)===0);he(o,"endRange",r.selectedDates[1]&&Ie(e,r.selectedDates[1],true)===0);if(t==="nextMonthDay")o.classList.add("inRange")}}}else{o.classList.add("flatpickr-disabled")}if(r.config.mode==="range"){if(xt(e)&&!yt(e))o.classList.add("inRange")}if(r.weekNumbers&&r.config.showMonths===1&&t!=="prevMonthDay"&&a%7===6){r.weekNumbers.insertAdjacentHTML("beforeend",""+r.config.getWeek(e)+"")}vt("onDayCreate",o);return o}function z(t){t.focus();if(r.config.mode==="range")Y(t)}function I(t){var e=t>0?0:r.config.showMonths-1;var i=t>0?r.config.showMonths:-1;for(var a=e;a!=i;a+=t){var n=r.daysContainer.children[a];var o=t>0?0:n.children.length-1;var s=t>0?n.children.length:-1;for(var l=o;l!=s;l+=t){var c=n.children[l];if(c.className.indexOf("hidden")===-1&&U(c.dateObj))return c}}return undefined}function $(t,e){var i=t.className.indexOf("Month")===-1?t.dateObj.getMonth():r.currentMonth;var a=e>0?r.config.showMonths:-1;var n=e>0?1:-1;for(var o=i-r.currentMonth;o!=a;o+=n){var s=r.daysContainer.children[o];var l=i-r.currentMonth===o?t.$i+e:e<0?s.children.length-1:0;var c=s.children.length;for(var d=l;d>=0&&d0?c:-1);d+=n){var h=s.children[d];if(h.className.indexOf("hidden")===-1&&U(h.dateObj)&&Math.abs(t.$i-d)>=Math.abs(e))return z(h)}}r.changeMonth(n);C(I(n),0);return undefined}function C(t,e){var i=n();var a=K(i||document.body);var o=t!==undefined?t:a?i:r.selectedDateElem!==undefined&&K(r.selectedDateElem)?r.selectedDateElem:r.todayDateElem!==undefined&&K(r.todayDateElem)?r.todayDateElem:I(e>0?1:-1);if(o===undefined){r._input.focus()}else if(!a){z(o)}else{$(o,e)}}function M(t,e){var i=(new Date(t,e,1).getDay()-r.l10n.firstDayOfWeek+7)%7;var a=r.utils.getDaysInMonth((e-1+12)%12,t);var n=r.utils.getDaysInMonth(e,t),o=window.document.createDocumentFragment(),s=r.config.showMonths>1,l=s?"prevMonthDay hidden":"prevMonthDay",c=s?"nextMonthDay hidden":"nextMonthDay";var d=a+1-i,h=0;for(;d<=a;d++,h++){o.appendChild(k("flatpickr-day "+l,new Date(t,e-1,d),d,h))}for(d=1;d<=n;d++,h++){o.appendChild(k("flatpickr-day",new Date(t,e,d),d,h))}for(var u=n+1;u<=42-i&&(r.config.showMonths===1||h%7!==0);u++,h++){o.appendChild(k("flatpickr-day "+c,new Date(t,e+1,u%n),u,h))}var f=ue("div","dayContainer");f.appendChild(o);return f}function D(){if(r.daysContainer===undefined){return}fe(r.daysContainer);if(r.weekNumbers)fe(r.weekNumbers);var t=document.createDocumentFragment();for(var e=0;e1||r.config.monthSelectorType!=="dropdown")return;var t=function(t){if(r.config.minDate!==undefined&&r.currentYear===r.config.minDate.getFullYear()&&tr.config.maxDate.getMonth())};r.monthsDropdownContainer.tabIndex=-1;r.monthsDropdownContainer.innerHTML="";for(var e=0;e<12;e++){if(!t(e))continue;var i=ue("option","flatpickr-monthDropdown-month");i.value=new Date(r.currentYear,e).getMonth().toString();i.textContent=ge(e,r.config.shorthandCurrentMonth,r.l10n);i.tabIndex=-1;if(r.currentMonth===e){i.selected=true}r.monthsDropdownContainer.appendChild(i)}}function S(){var t=ue("div","flatpickr-month");var e=window.document.createDocumentFragment();var i;if(r.config.showMonths>1||r.config.monthSelectorType==="static"){i=ue("span","cur-month")}else{r.monthsDropdownContainer=ue("select","flatpickr-monthDropdown-months");r.monthsDropdownContainer.setAttribute("aria-label",r.l10n.monthAriaLabel);m(r.monthsDropdownContainer,"change",(function(t){var e=be(t);var i=parseInt(e.value,10);r.changeMonth(i-r.currentMonth);vt("onMonthChange")}));A();i=r.monthsDropdownContainer}var a=me("cur-year",{tabindex:"-1"});var n=a.getElementsByTagName("input")[0];n.setAttribute("aria-label",r.l10n.yearAriaLabel);if(r.config.minDate){n.setAttribute("min",r.config.minDate.getFullYear().toString())}if(r.config.maxDate){n.setAttribute("max",r.config.maxDate.getFullYear().toString());n.disabled=!!r.config.minDate&&r.config.minDate.getFullYear()===r.config.maxDate.getFullYear()}var o=ue("div","flatpickr-current-month");o.appendChild(i);o.appendChild(a);e.appendChild(o);t.appendChild(e);return{container:t,yearElement:n,monthElement:i}}function R(){fe(r.monthNav);r.monthNav.appendChild(r.prevMonthNav);if(r.config.showMonths){r.yearElements=[];r.monthElements=[]}for(var t=r.config.showMonths;t--;){var e=S();r.yearElements.push(e.yearElement);r.monthElements.push(e.monthElement);r.monthNav.appendChild(e.container)}r.monthNav.appendChild(r.nextMonthNav)}function T(){r.monthNav=ue("div","flatpickr-months");r.yearElements=[];r.monthElements=[];r.prevMonthNav=ue("span","flatpickr-prev-month");r.prevMonthNav.innerHTML=r.config.prevArrow;r.nextMonthNav=ue("span","flatpickr-next-month");r.nextMonthNav.innerHTML=r.config.nextArrow;R();Object.defineProperty(r,"_hidePrevMonthArrow",{get:function(){return r.__hidePrevMonthArrow},set:function(t){if(r.__hidePrevMonthArrow!==t){he(r.prevMonthNav,"flatpickr-disabled",t);r.__hidePrevMonthArrow=t}}});Object.defineProperty(r,"_hideNextMonthArrow",{get:function(){return r.__hideNextMonthArrow},set:function(t){if(r.__hideNextMonthArrow!==t){he(r.nextMonthNav,"flatpickr-disabled",t);r.__hideNextMonthArrow=t}}});r.currentYearElement=r.yearElements[0];wt();return r.monthNav}function F(){r.calendarContainer.classList.add("hasTime");if(r.config.noCalendar)r.calendarContainer.classList.add("noCalendar");var t=Ae(r.config);r.timeContainer=ue("div","flatpickr-time");r.timeContainer.tabIndex=-1;var e=ue("span","flatpickr-time-separator",":");var i=me("flatpickr-hour",{"aria-label":r.l10n.hourAriaLabel});r.hourElement=i.getElementsByTagName("input")[0];var a=me("flatpickr-minute",{"aria-label":r.l10n.minuteAriaLabel});r.minuteElement=a.getElementsByTagName("input")[0];r.hourElement.tabIndex=r.minuteElement.tabIndex=-1;r.hourElement.value=se(r.latestSelectedDateObj?r.latestSelectedDateObj.getHours():r.config.time_24hr?t.hours:d(t.hours));r.minuteElement.value=se(r.latestSelectedDateObj?r.latestSelectedDateObj.getMinutes():t.minutes);r.hourElement.setAttribute("step",r.config.hourIncrement.toString());r.minuteElement.setAttribute("step",r.config.minuteIncrement.toString());r.hourElement.setAttribute("min",r.config.time_24hr?"0":"1");r.hourElement.setAttribute("max",r.config.time_24hr?"23":"12");r.hourElement.setAttribute("maxlength","2");r.minuteElement.setAttribute("min","0");r.minuteElement.setAttribute("max","59");r.minuteElement.setAttribute("maxlength","2");r.timeContainer.appendChild(i);r.timeContainer.appendChild(e);r.timeContainer.appendChild(a);if(r.config.time_24hr)r.timeContainer.classList.add("time24hr");if(r.config.enableSeconds){r.timeContainer.classList.add("hasSeconds");var n=me("flatpickr-second");r.secondElement=n.getElementsByTagName("input")[0];r.secondElement.value=se(r.latestSelectedDateObj?r.latestSelectedDateObj.getSeconds():t.seconds);r.secondElement.setAttribute("step",r.minuteElement.getAttribute("step"));r.secondElement.setAttribute("min","0");r.secondElement.setAttribute("max","59");r.secondElement.setAttribute("maxlength","2");r.timeContainer.appendChild(ue("span","flatpickr-time-separator",":"));r.timeContainer.appendChild(n)}if(!r.config.time_24hr){r.amPM=ue("span","flatpickr-am-pm",r.l10n.amPM[le((r.latestSelectedDateObj?r.hourElement.value:r.config.defaultHour)>11)]);r.amPM.title=r.l10n.toggleTitle;r.amPM.tabIndex=-1;r.timeContainer.appendChild(r.amPM)}return r.timeContainer}function E(){if(!r.weekdayContainer)r.weekdayContainer=ue("div","flatpickr-weekdays");else fe(r.weekdayContainer);for(var t=r.config.showMonths;t--;){var e=ue("div","flatpickr-weekdaycontainer");r.weekdayContainer.appendChild(e)}B();return r.weekdayContainer}function B(){if(!r.weekdayContainer){return}var t=r.l10n.firstDayOfWeek;var e=Re(r.l10n.weekdays.shorthand);if(t>0&&t\n "+e.join("")+"\n \n "}}function O(){r.calendarContainer.classList.add("hasWeeks");var t=ue("div","flatpickr-weekwrapper");t.appendChild(ue("span","flatpickr-weekday",r.l10n.weekAbbreviation));var e=ue("div","flatpickr-weeks");t.appendChild(e);return{weekWrapper:t,weekNumbers:e}}function L(t,e){if(e===void 0){e=true}var i=e?t:t-r.currentMonth;if(i<0&&r._hidePrevMonthArrow===true||i>0&&r._hideNextMonthArrow===true)return;r.currentMonth+=i;if(r.currentMonth<0||r.currentMonth>11){r.currentYear+=r.currentMonth>11?1:-1;r.currentMonth=(r.currentMonth+12)%12;vt("onYearChange");A()}D();vt("onMonthChange");wt()}function N(t,e){if(t===void 0){t=true}if(e===void 0){e=true}r.input.value="";if(r.altInput!==undefined)r.altInput.value="";if(r.mobileInput!==undefined)r.mobileInput.value="";r.selectedDates=[];r.latestSelectedDateObj=undefined;if(e===true){r.currentYear=r._initialDate.getFullYear();r.currentMonth=r._initialDate.getMonth()}if(r.config.enableTime===true){var i=Ae(r.config),a=i.hours,n=i.minutes,o=i.seconds;f(a,n,o)}r.redraw();if(t)vt("onChange")}function j(){r.isOpen=false;if(!r.isMobile){if(r.calendarContainer!==undefined){r.calendarContainer.classList.remove("open")}if(r._input!==undefined){r._input.classList.remove("active")}}vt("onClose")}function P(){if(r.config!==undefined)vt("onDestroy");for(var t=r._handlers.length;t--;){r._handlers[t].remove()}r._handlers=[];if(r.mobileInput){if(r.mobileInput.parentNode)r.mobileInput.parentNode.removeChild(r.mobileInput);r.mobileInput=undefined}else if(r.calendarContainer&&r.calendarContainer.parentNode){if(r.config.static&&r.calendarContainer.parentNode){var e=r.calendarContainer.parentNode;e.lastChild&&e.removeChild(e.lastChild);if(e.parentNode){while(e.firstChild)e.parentNode.insertBefore(e.firstChild,e);e.parentNode.removeChild(e)}}else r.calendarContainer.parentNode.removeChild(r.calendarContainer)}if(r.altInput){r.input.type="text";if(r.altInput.parentNode)r.altInput.parentNode.removeChild(r.altInput);delete r.altInput}if(r.input){r.input.type=r.input._type;r.input.classList.remove("flatpickr-input");r.input.removeAttribute("readonly")}["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(t){try{delete r[t]}catch(t){}}))}function W(t){return r.calendarContainer.contains(t)}function H(t){if(r.isOpen&&!r.config.inline){var e=be(t);var i=W(e);var a=e===r.input||e===r.altInput||r.element.contains(e)||t.path&&t.path.indexOf&&(~t.path.indexOf(r.input)||~t.path.indexOf(r.altInput));var n=!a&&!i&&!W(t.relatedTarget);var o=!r.config.ignoredFocusElements.some((function(t){return t.contains(e)}));if(n&&o){if(r.config.allowInput){r.setDate(r._input.value,false,r.config.altInput?r.config.altFormat:r.config.dateFormat)}if(r.timeContainer!==undefined&&r.minuteElement!==undefined&&r.hourElement!==undefined&&r.input.value!==""&&r.input.value!==undefined){l()}r.close();if(r.config&&r.config.mode==="range"&&r.selectedDates.length===1)r.clear(false)}}}function _(t){if(!t||r.config.minDate&&tr.config.maxDate.getFullYear())return;var e=t,i=r.currentYear!==e;r.currentYear=e||r.currentYear;if(r.config.maxDate&&r.currentYear===r.config.maxDate.getFullYear()){r.currentMonth=Math.min(r.config.maxDate.getMonth(),r.currentMonth)}else if(r.config.minDate&&r.currentYear===r.config.minDate.getFullYear()){r.currentMonth=Math.max(r.config.minDate.getMonth(),r.currentMonth)}if(i){r.redraw();vt("onYearChange");A()}}function U(t,e){var i;if(e===void 0){e=true}var a=r.parseDate(t,undefined,e);if(r.config.minDate&&a&&Ie(a,r.config.minDate,e!==undefined?e:!r.minDateHasTime)<0||r.config.maxDate&&a&&Ie(a,r.config.maxDate,e!==undefined?e:!r.maxDateHasTime)>0)return false;if(!r.config.enable&&r.config.disable.length===0)return true;if(a===undefined)return false;var n=!!r.config.enable,o=(i=r.config.enable)!==null&&i!==void 0?i:r.config.disable;for(var s=0,l=void 0;s=l.from.getTime()&&a.getTime()<=l.to.getTime())return n}return!n}function K(t){if(r.daysContainer!==undefined)return t.className.indexOf("hidden")===-1&&t.className.indexOf("flatpickr-disabled")===-1&&r.daysContainer.contains(t);return false}function G(t){var e=t.target===r._input;var i=r._input.value.trimEnd()!==kt();if(e&&i&&!(t.relatedTarget&&W(t.relatedTarget))){r.setDate(r._input.value,true,t.target===r.altInput?r.config.altFormat:r.config.dateFormat)}}function J(e){var i=be(e);var a=r.config.wrap?t.contains(i):i===r._input;var o=r.config.allowInput;var s=r.isOpen&&(!o||!a);var c=r.config.inline&&a&&!o;if(e.keyCode===13&&a){if(o){r.setDate(r._input.value,true,i===r.altInput?r.config.altFormat:r.config.dateFormat);r.close();return i.blur()}else{r.open()}}else if(W(i)||s||c){var d=!!r.timeContainer&&r.timeContainer.contains(i);switch(e.keyCode){case 13:if(d){e.preventDefault();l();nt()}else ot(e);break;case 27:e.preventDefault();nt();break;case 8:case 46:if(a&&!r.config.allowInput){e.preventDefault();r.clear()}break;case 37:case 39:if(!d&&!a){e.preventDefault();var u=n();if(r.daysContainer!==undefined&&(o===false||u&&K(u))){var f=e.keyCode===39?1:-1;if(!e.ctrlKey)C(undefined,f);else{e.stopPropagation();L(f);C(I(1),0)}}}else if(r.hourElement)r.hourElement.focus();break;case 38:case 40:e.preventDefault();var p=e.keyCode===40?1:-1;if(r.daysContainer&&i.$i!==undefined||i===r.input||i===r.altInput){if(e.ctrlKey){e.stopPropagation();_(r.currentYear-p);C(I(1),0)}else if(!d)C(undefined,p*7)}else if(i===r.currentYearElement){_(r.currentYear-p)}else if(r.config.enableTime){if(!d&&r.hourElement)r.hourElement.focus();l(e);r._debouncedChange()}break;case 9:if(d){var m=[r.hourElement,r.minuteElement,r.secondElement,r.amPM].concat(r.pluginElements).filter((function(t){return t}));var b=m.indexOf(i);if(b!==-1){var v=m[b+(e.shiftKey?-1:1)];e.preventDefault();(v||r._input).focus()}}else if(!r.config.noCalendar&&r.daysContainer&&r.daysContainer.contains(i)&&e.shiftKey){e.preventDefault();r._input.focus()}break}}if(r.amPM!==undefined&&i===r.amPM){switch(e.key){case r.l10n.amPM[0].charAt(0):case r.l10n.amPM[0].charAt(0).toLowerCase():r.amPM.textContent=r.l10n.amPM[0];h();zt();break;case r.l10n.amPM[1].charAt(0):case r.l10n.amPM[1].charAt(0).toLowerCase():r.amPM.textContent=r.l10n.amPM[1];h();zt();break}}if(a||W(i)){vt("onKeyDown",e)}}function Y(t,e){if(e===void 0){e="flatpickr-day"}if(r.selectedDates.length!==1||t&&(!t.classList.contains(e)||t.classList.contains("flatpickr-disabled")))return;var i=t?t.dateObj.getTime():r.days.firstElementChild.dateObj.getTime(),a=r.parseDate(r.selectedDates[0],undefined,true).getTime(),n=Math.min(i,r.selectedDates[0].getTime()),o=Math.max(i,r.selectedDates[0].getTime());var s=false;var l=0,c=0;for(var d=n;dn&&dl))l=d;else if(d>a&&(!c||d ."+e));h.forEach((function(e){var n=e.dateObj;var o=n.getTime();var d=l>0&&o0&&o>c;if(d){e.classList.add("notAllowed");["inRange","startRange","endRange"].forEach((function(t){e.classList.remove(t)}));return}else if(s&&!d)return;["startRange","inRange","endRange","notAllowed"].forEach((function(t){e.classList.remove(t)}));if(t!==undefined){t.classList.add(i<=r.selectedDates[0].getTime()?"startRange":"endRange");if(ai&&o===a)e.classList.add("endRange");if(o>=l&&(c===0||o<=c)&&$e(o,a,i))e.classList.add("inRange")}}))}function q(){if(r.isOpen&&!r.config.static&&!r.config.inline)et()}function V(t,e){if(e===void 0){e=r._positionElement}if(r.isMobile===true){if(t){t.preventDefault();var i=be(t);if(i){i.blur()}}if(r.mobileInput!==undefined){r.mobileInput.focus();r.mobileInput.click()}vt("onOpen");return}else if(r._input.disabled||r.config.inline){return}var a=r.isOpen;r.isOpen=true;if(!a){r.calendarContainer.classList.add("open");r._input.classList.add("active");vt("onOpen");et(e)}if(r.config.enableTime===true&&r.config.noCalendar===true){if(r.config.allowInput===false&&(t===undefined||!r.timeContainer.contains(t.relatedTarget))){setTimeout((function(){return r.hourElement.select()}),50)}}}function Z(t){return function(e){var i=r.config["_"+t+"Date"]=r.parseDate(e,r.config.dateFormat);var a=r.config["_"+(t==="min"?"max":"min")+"Date"];if(i!==undefined){r[t==="min"?"minDateHasTime":"maxDateHasTime"]=i.getHours()>0||i.getMinutes()>0||i.getSeconds()>0}if(r.selectedDates){r.selectedDates=r.selectedDates.filter((function(t){return U(t)}));if(!r.selectedDates.length&&t==="min")u(i);zt()}if(r.daysContainer){at();if(i!==undefined)r.currentYearElement[t]=i.getFullYear().toString();else r.currentYearElement.removeAttribute(t);r.currentYearElement.disabled=!!a&&i!==undefined&&a.getFullYear()===i.getFullYear()}}}function X(){var i=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"];var a=Se(Se({},JSON.parse(JSON.stringify(t.dataset||{}))),e);var n={};r.config.parseDate=a.parseDate;r.config.formatDate=a.formatDate;Object.defineProperty(r.config,"enable",{get:function(){return r.config._enable},set:function(t){r.config._enable=ht(t)}});Object.defineProperty(r.config,"disable",{get:function(){return r.config._disable},set:function(t){r.config._disable=ht(t)}});var s=a.mode==="time";if(!a.dateFormat&&(a.enableTime||s)){var l=Be.defaultConfig.dateFormat||ne.dateFormat;n.dateFormat=a.noCalendar||s?"H:i"+(a.enableSeconds?":S":""):l+" H:i"+(a.enableSeconds?":S":"")}if(a.altInput&&(a.enableTime||s)&&!a.altFormat){var c=Be.defaultConfig.altFormat||ne.altFormat;n.altFormat=a.noCalendar||s?"h:i"+(a.enableSeconds?":S K":" K"):c+(" h:i"+(a.enableSeconds?":S":"")+" K")}Object.defineProperty(r.config,"minDate",{get:function(){return r.config._minDate},set:Z("min")});Object.defineProperty(r.config,"maxDate",{get:function(){return r.config._maxDate},set:Z("max")});var d=function(t){return function(e){r.config[t==="min"?"_minTime":"_maxTime"]=r.parseDate(e,"H:i:S")}};Object.defineProperty(r.config,"minTime",{get:function(){return r.config._minTime},set:d("min")});Object.defineProperty(r.config,"maxTime",{get:function(){return r.config._maxTime},set:d("max")});if(a.mode==="time"){r.config.noCalendar=true;r.config.enableTime=true}Object.assign(r.config,n,a);for(var h=0;h-1){r.config[f]=de(u[f]).map(o).concat(r.config[f])}else if(typeof a[f]==="undefined")r.config[f]=u[f]}}if(!a.altInputClass){r.config.altInputClass=Q().className+" "+r.config.altInputClass}vt("onParseConfig")}function Q(){return r.config.wrap?t.querySelector("[data-input]"):t}function tt(){if(typeof r.config.locale!=="object"&&typeof Be.l10ns[r.config.locale]==="undefined")r.config.errorHandler(new Error("flatpickr: invalid locale "+r.config.locale));r.l10n=Se(Se({},Be.l10ns.default),typeof r.config.locale==="object"?r.config.locale:r.config.locale!=="default"?Be.l10ns[r.config.locale]:undefined);xe.D="("+r.l10n.weekdays.shorthand.join("|")+")";xe.l="("+r.l10n.weekdays.longhand.join("|")+")";xe.M="("+r.l10n.months.shorthand.join("|")+")";xe.F="("+r.l10n.months.longhand.join("|")+")";xe.K="("+r.l10n.amPM[0]+"|"+r.l10n.amPM[1]+"|"+r.l10n.amPM[0].toLowerCase()+"|"+r.l10n.amPM[1].toLowerCase()+")";var i=Se(Se({},e),JSON.parse(JSON.stringify(t.dataset||{})));if(i.time_24hr===undefined&&Be.defaultConfig.time_24hr===undefined){r.config.time_24hr=r.l10n.time_24hr}r.formatDate=ke(r);r.parseDate=ze({config:r.config,l10n:r.l10n})}function et(t){if(typeof r.config.position==="function"){return void r.config.position(r,t)}if(r.calendarContainer===undefined)return;vt("onPreCalendarPosition");var e=t||r._positionElement;var i=Array.prototype.reduce.call(r.calendarContainer.children,(function(t,e){return t+e.offsetHeight}),0),a=r.calendarContainer.offsetWidth,n=r.config.position.split(" "),o=n[0],s=n.length>1?n[1]:null,l=e.getBoundingClientRect(),c=window.innerHeight-l.bottom,d=o==="above"||o!=="below"&&ci;var h=window.pageYOffset+l.top+(!d?e.offsetHeight+2:-i-2);he(r.calendarContainer,"arrowTop",!d);he(r.calendarContainer,"arrowBottom",d);if(r.config.inline)return;var u=window.pageXOffset+l.left;var f=false;var p=false;if(s==="center"){u-=(a-l.width)/2;f=true}else if(s==="right"){u-=a-l.width;p=true}he(r.calendarContainer,"arrowLeft",!f&&!p);he(r.calendarContainer,"arrowCenter",f);he(r.calendarContainer,"arrowRight",p);var m=window.document.body.offsetWidth-(window.pageXOffset+l.right);var b=u+a>window.document.body.offsetWidth;var v=m+a>window.document.body.offsetWidth;he(r.calendarContainer,"rightMost",b);if(r.config.static)return;r.calendarContainer.style.top=h+"px";if(!b){r.calendarContainer.style.left=u+"px";r.calendarContainer.style.right="auto"}else if(!v){r.calendarContainer.style.left="auto";r.calendarContainer.style.right=m+"px"}else{var g=rt();if(g===undefined)return;var y=window.document.body.offsetWidth;var x=Math.max(0,y/2-a/2);var w=".flatpickr-calendar.centerMost:before";var k=".flatpickr-calendar.centerMost:after";var z=g.cssRules.length;var I="{left:"+l.left+"px;right:auto;}";he(r.calendarContainer,"rightMost",false);he(r.calendarContainer,"centerMost",true);g.insertRule(w+","+k+I,z);r.calendarContainer.style.left=x+"px";r.calendarContainer.style.right="auto"}}function rt(){var t=null;for(var e=0;er.currentMonth+r.config.showMonths-1)&&r.config.mode!=="range";r.selectedDateElem=a;if(r.config.mode==="single")r.selectedDates=[n];else if(r.config.mode==="multiple"){var s=yt(n);if(s)r.selectedDates.splice(parseInt(s),1);else r.selectedDates.push(n)}else if(r.config.mode==="range"){if(r.selectedDates.length===2){r.clear(false,false)}r.latestSelectedDateObj=n;r.selectedDates.push(n);if(Ie(n,r.selectedDates[0],true)!==0)r.selectedDates.sort((function(t,e){return t.getTime()-e.getTime()}))}h();if(o){var l=r.currentYear!==n.getFullYear();r.currentYear=n.getFullYear();r.currentMonth=n.getMonth();if(l){vt("onYearChange");A()}vt("onMonthChange")}wt();D();zt();if(!o&&r.config.mode!=="range"&&r.config.showMonths===1)z(a);else if(r.selectedDateElem!==undefined&&r.hourElement===undefined){r.selectedDateElem&&r.selectedDateElem.focus()}if(r.hourElement!==undefined)r.hourElement!==undefined&&r.hourElement.focus();if(r.config.closeOnSelect){var c=r.config.mode==="single"&&!r.config.enableTime;var d=r.config.mode==="range"&&r.selectedDates.length===2&&!r.config.enableTime;if(c||d){nt()}}b()}var st={locale:[tt,B],showMonths:[R,s,E],minDate:[g],maxDate:[g],positionElement:[pt],clickOpens:[function(){if(r.config.clickOpens===true){m(r._input,"focus",r.open);m(r._input,"click",r.open)}else{r._input.removeEventListener("focus",r.open);r._input.removeEventListener("click",r.open)}}]};function lt(t,e){if(t!==null&&typeof t==="object"){Object.assign(r.config,t);for(var i in t){if(st[i]!==undefined)st[i].forEach((function(t){return t()}))}}else{r.config[t]=e;if(st[t]!==undefined)st[t].forEach((function(t){return t()}));else if(ae.indexOf(t)>-1)r.config[t]=de(e)}r.redraw();zt(true)}function ct(t,e){var i=[];if(t instanceof Array)i=t.map((function(t){return r.parseDate(t,e)}));else if(t instanceof Date||typeof t==="number")i=[r.parseDate(t,e)];else if(typeof t==="string"){switch(r.config.mode){case"single":case"time":i=[r.parseDate(t,e)];break;case"multiple":i=t.split(r.config.conjunction).map((function(t){return r.parseDate(t,e)}));break;case"range":i=t.split(r.l10n.rangeSeparator).map((function(t){return r.parseDate(t,e)}));break}}else r.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(t)));r.selectedDates=r.config.allowInvalidPreload?i:i.filter((function(t){return t instanceof Date&&U(t,false)}));if(r.config.mode==="range")r.selectedDates.sort((function(t,e){return t.getTime()-e.getTime()}))}function dt(t,e,i){if(e===void 0){e=false}if(i===void 0){i=r.config.dateFormat}if(t!==0&&!t||t instanceof Array&&t.length===0)return r.clear(e);ct(t,i);r.latestSelectedDateObj=r.selectedDates[r.selectedDates.length-1];r.redraw();g(undefined,e);u();if(r.selectedDates.length===0){r.clear(false)}zt(e);if(e)vt("onChange")}function ht(t){return t.slice().map((function(t){if(typeof t==="string"||typeof t==="number"||t instanceof Date){return r.parseDate(t,undefined,true)}else if(t&&typeof t==="object"&&t.from&&t.to)return{from:r.parseDate(t.from,undefined),to:r.parseDate(t.to,undefined)};return t})).filter((function(t){return t}))}function ut(){r.selectedDates=[];r.now=r.parseDate(r.config.now)||new Date;var t=r.config.defaultDate||((r.input.nodeName==="INPUT"||r.input.nodeName==="TEXTAREA")&&r.input.placeholder&&r.input.value===r.input.placeholder?null:r.input.value);if(t)ct(t,r.config.dateFormat);r._initialDate=r.selectedDates.length>0?r.selectedDates[0]:r.config.minDate&&r.config.minDate.getTime()>r.now.getTime()?r.config.minDate:r.config.maxDate&&r.config.maxDate.getTime()0)r.latestSelectedDateObj=r.selectedDates[0];if(r.config.minTime!==undefined)r.config.minTime=r.parseDate(r.config.minTime,"H:i");if(r.config.maxTime!==undefined)r.config.maxTime=r.parseDate(r.config.maxTime,"H:i");r.minDateHasTime=!!r.config.minDate&&(r.config.minDate.getHours()>0||r.config.minDate.getMinutes()>0||r.config.minDate.getSeconds()>0);r.maxDateHasTime=!!r.config.maxDate&&(r.config.maxDate.getHours()>0||r.config.maxDate.getMinutes()>0||r.config.maxDate.getSeconds()>0)}function ft(){r.input=Q();if(!r.input){r.config.errorHandler(new Error("Invalid input element specified"));return}r.input._type=r.input.type;r.input.type="text";r.input.classList.add("flatpickr-input");r._input=r.input;if(r.config.altInput){r.altInput=ue(r.input.nodeName,r.config.altInputClass);r._input=r.altInput;r.altInput.placeholder=r.input.placeholder;r.altInput.disabled=r.input.disabled;r.altInput.required=r.input.required;r.altInput.tabIndex=r.input.tabIndex;r.altInput.type="text";r.input.setAttribute("type","hidden");if(!r.config.static&&r.input.parentNode)r.input.parentNode.insertBefore(r.altInput,r.input.nextSibling)}if(!r.config.allowInput)r._input.setAttribute("readonly","readonly");pt()}function pt(){r._positionElement=r.config.positionElement||r._input}function mt(){var t=r.config.enableTime?r.config.noCalendar?"time":"datetime-local":"date";r.mobileInput=ue("input",r.input.className+" flatpickr-mobile");r.mobileInput.tabIndex=1;r.mobileInput.type=t;r.mobileInput.disabled=r.input.disabled;r.mobileInput.required=r.input.required;r.mobileInput.placeholder=r.input.placeholder;r.mobileFormatStr=t==="datetime-local"?"Y-m-d\\TH:i:S":t==="date"?"Y-m-d":"H:i:S";if(r.selectedDates.length>0){r.mobileInput.defaultValue=r.mobileInput.value=r.formatDate(r.selectedDates[0],r.mobileFormatStr)}if(r.config.minDate)r.mobileInput.min=r.formatDate(r.config.minDate,"Y-m-d");if(r.config.maxDate)r.mobileInput.max=r.formatDate(r.config.maxDate,"Y-m-d");if(r.input.getAttribute("step"))r.mobileInput.step=String(r.input.getAttribute("step"));r.input.type="hidden";if(r.altInput!==undefined)r.altInput.type="hidden";try{if(r.input.parentNode)r.input.parentNode.insertBefore(r.mobileInput,r.input.nextSibling)}catch(t){}m(r.mobileInput,"change",(function(t){r.setDate(be(t).value,false,r.mobileFormatStr);vt("onChange");vt("onClose")}))}function bt(t){if(r.isOpen===true)return r.close();r.open(t)}function vt(t,e){if(r.config===undefined)return;var i=r.config[t];if(i!==undefined&&i.length>0){for(var a=0;i[a]&&a=0&&Ie(t,r.selectedDates[1])<=0}function wt(){if(r.config.noCalendar||r.isMobile||!r.monthNav)return;r.yearElements.forEach((function(t,e){var i=new Date(r.currentYear,r.currentMonth,1);i.setMonth(r.currentMonth+e);if(r.config.showMonths>1||r.config.monthSelectorType==="static"){r.monthElements[e].textContent=ge(i.getMonth(),r.config.shorthandCurrentMonth,r.l10n)+" "}else{r.monthsDropdownContainer.value=i.getMonth().toString()}t.value=i.getFullYear().toString()}));r._hidePrevMonthArrow=r.config.minDate!==undefined&&(r.currentYear===r.config.minDate.getFullYear()?r.currentMonth<=r.config.minDate.getMonth():r.currentYearr.config.maxDate.getMonth():r.currentYear>r.config.maxDate.getFullYear())}function kt(t){var e=t||(r.config.altInput?r.config.altFormat:r.config.dateFormat);return r.selectedDates.map((function(t){return r.formatDate(t,e)})).filter((function(t,e,i){return r.config.mode!=="range"||r.config.enableTime||i.indexOf(t)===e})).join(r.config.mode!=="range"?r.config.conjunction:r.l10n.rangeSeparator)}function zt(t){if(t===void 0){t=true}if(r.mobileInput!==undefined&&r.mobileFormatStr){r.mobileInput.value=r.latestSelectedDateObj!==undefined?r.formatDate(r.latestSelectedDateObj,r.mobileFormatStr):""}r.input.value=kt(r.config.dateFormat);if(r.altInput!==undefined){r.altInput.value=kt(r.config.altFormat)}if(t!==false)vt("onValueUpdate")}function It(t){var e=be(t);var i=r.prevMonthNav.contains(e);var a=r.nextMonthNav.contains(e);if(i||a){L(i?-1:1)}else if(r.yearElements.indexOf(e)>=0){e.select()}else if(e.classList.contains("arrowUp")){r.changeYear(r.currentYear+1)}else if(e.classList.contains("arrowDown")){r.changeYear(r.currentYear-1)}}function $t(t){t.preventDefault();var e=t.type==="keydown",i=be(t),a=i;if(r.amPM!==undefined&&i===r.amPM){r.amPM.textContent=r.l10n.amPM[le(r.amPM.textContent===r.l10n.amPM[0])]}var n=parseFloat(a.getAttribute("min")),o=parseFloat(a.getAttribute("max")),s=parseFloat(a.getAttribute("step")),l=parseInt(a.value,10),c=t.delta||(e?t.which===38?1:-1:0);var d=l+s*c;if(typeof a.value!=="undefined"&&a.value.length===2){var h=a===r.hourElement,u=a===r.minuteElement;if(do){d=a===r.hourElement?d-o-le(!r.amPM):n;if(u)x(undefined,1,r.hourElement)}if(r.amPM&&h&&(s===1?d+l===23:Math.abs(d-l)>s)){r.amPM.textContent=r.l10n.amPM[le(r.amPM.textContent===r.l10n.amPM[0])]}a.value=se(d)}}a();return r}function Ee(t,e){var r=Array.prototype.slice.call(t).filter((function(t){return t instanceof HTMLElement}));var i=[];for(var a=0;al||h=e.weekStartDay&&a<=e.weekEndDay)r[i].classList.add("week","selected")}}function a(){var t=e.days.childNodes;for(var r=t.length;r--;)t[r].classList.remove("inRange")}function n(){if(e.daysContainer!==undefined)e.daysContainer.addEventListener("mouseover",r)}function o(){if(e.daysContainer!==undefined)e.daysContainer.removeEventListener("mouseover",r)}return{onValueUpdate:i,onMonthChange:i,onYearChange:i,onOpen:i,onClose:a,onParseConfig:function(){e.config.mode="single";e.config.enableTime=false;e.config.dateFormat=e.config.dateFormat?e.config.dateFormat:"\\W\\e\\e\\k #W, Y";e.config.altFormat=e.config.altFormat?e.config.altFormat:"\\W\\e\\e\\k #W, Y"},onReady:[n,i,function(){e.loadedPlugins.push("weekSelect")}],onDestroy:o}}}return e}))}));function Ne(t,e={}){const r=t.mode==="week"?[new Le({})]:[];const i=je(t.mode);return{...e,locale:t.locale,plugins:r,allowInput:true,altInput:true,prevArrow:"←",nextArrow:"→",dateFormat:i,altFormat:t.format,ariaDateFormat:t.format,mode:t.mode==="daterange"?"range":"single",minDate:t.min,maxDate:t.max,enableTime:t.mode==="time"||t.mode==="datetime",noCalendar:t.mode==="time",weekNumbers:true,minuteIncrement:t.step,clickOpens:!t.disabled&&!t.readonly,onReady:(e,r,i)=>{for(const e in t.nativePickerAttributes){const r=t.nativePickerAttributes[e];i.calendarContainer.setAttribute(e,r)}},onClose:function(e,r,i){if(t.mode==="daterange"&&e.length<2){i.clear()}},onChange:(e,r,a)=>{let n=r||undefined;if(t.mode==="daterange"){if(e.length<2){return}else{const t=e[0];const r=e[1];r.setHours(23);r.setMinutes(59);r.setSeconds(59);n=`${a.formatDate(t,i)} - ${a.formatDate(r,i)}`}}else if(t.mode==="week"){n=e[0]?a.config.getWeek(e[0]).toString():undefined}t.applyChange(n)}}}function je(t){if(t==="week"){return"W"}else if(t==="time"){return"H:i"}else{return"Z"}}function Pe(t,e){const r=new Date(2e3,1,3,16,5,6);const i={year:"numeric",month:"2-digit",day:"2-digit"};const a={hour:"2-digit",minute:"2-digit"};return e==="week"?"W":new Intl.DateTimeFormat(t,{date:i,time:a,datetime:{...i,...a},daterange:i}[e]).format(r).replace("2000","Y").replace("00","y").replace("02","m").replace("03","d").replace("04","h").replace("16","H").replace("05","i").replace(/AM|PM/i,"K")}function We(t){const e=new Intl.DateTimeFormat(t,{hour:"2-digit",minute:"2-digit"}).format(new Date).toLowerCase();return e.includes("am")||e.includes("pm")}function He(t){const e=new Intl.Locale(t);const r=e.getWeekInfo?.()??e.weekInfo;return r?.firstDay??1}function _e(t,e="long"){const r=new Date;const i=(r.getUTCDate()-r.getUTCDay()+7)%7;const a=new Intl.DateTimeFormat(t,{weekday:e}).format;return[...Array(7).keys()].map((t=>a(new Date(r.getTime()).setUTCDate(i+t))))}function Ue(t,e="long"){const r=new Date;const i=new Intl.DateTimeFormat(t,{month:e}).format;return[...Array(12).keys()].map((t=>i(new Date(r.getTime()).setUTCMonth(t))))}function Ke(t){return{firstDayOfWeek:He(t),rangeSeparator:" - ",weekAbbreviation:"",yearAriaLabel:I.t("datepicker.year"),monthAriaLabel:I.t("datepicker.month"),hourAriaLabel:I.t("datepicker.hour"),minuteAriaLabel:I.t("datepicker.minute"),toggleTitle:I.t("datepicker.toggle"),scrollTitle:I.t("datepicker.scroll"),time_24hr:!We(t),weekdays:{shorthand:_e(t,"short"),longhand:_e(t,"long")},months:{shorthand:Ue(t,"short"),longhand:Ue(t,"long")}}}const Ge=":host{display:flex}:host([hidden]){display:none}cat-input{flex:1 1 auto;margin:0}";const Je=class{constructor(e){t(this,e);this.catChange=a(this,"catChange",7);this.catFocus=a(this,"catFocus",7);this.catBlur=a(this,"catBlur",7);this.hasSlottedLabel=false;this.hasSlottedHint=false;this.requiredMarker="optional";this.horizontal=false;this.autoComplete=undefined;this.clearable=false;this.disabled=false;this.hint=undefined;this.icon=undefined;this.iconRight=false;this.identifier=undefined;this.label="";this.labelHidden=false;this.max=undefined;this.min=undefined;this.mode="date";this.name=undefined;this.placeholder=undefined;this.textPrefix=undefined;this.textSuffix=undefined;this.readonly=false;this.required=false;this.step=5;this.value=undefined;this.errors=undefined;this.errorUpdate=0;this.nativeAttributes=undefined;this.nativePickerAttributes=undefined}get input(){return this._input?.shadowRoot?.querySelector("input")??undefined}onValueChanged(t){if(t){this.pickr?.setDate(t,false);if(this.mode!=="daterange"||t.includes(" - ")){this.catChange.emit(t)}}else{this.pickr?.clear(false);this.catChange.emit(undefined)}}onDisabledChanged(){this.pickr?.destroy();this.pickr=undefined;setTimeout((()=>this.pickr=this.initDatepicker(this.input)))}componentDidLoad(){this.pickr=this.initDatepicker(this.input)}componentWillRender(){this.hasSlottedLabel=!!this.hostElement.querySelector('[slot="label"]');this.hasSlottedHint=!!this.hostElement.querySelector('[slot="hint"]')}onMinChanged(){this.pickr?.set("minDate",this.min);this.pickr?.set("maxDate",this.max);if(this.value&&!this.pickr?.selectedDates?.length){this.pickr?.clear()}}async doFocus(t){this._input?.doFocus(t)}async doBlur(){this._input?.doBlur()}render(){return e("cat-input",{ref:t=>this._input=t,requiredMarker:this.requiredMarker,horizontal:this.horizontal,autoComplete:this.autoComplete,clearable:this.clearable,disabled:this.disabled,hint:this.hint,icon:this.icon,iconRight:this.iconRight,identifier:this.identifier,label:this.label,labelHidden:this.labelHidden,name:this.name,placeholder:this.placeholder,textPrefix:this.textPrefix,textSuffix:this.textSuffix,readonly:this.readonly,required:this.required,value:this.value,errors:this.errors,errorUpdate:this.errorUpdate,nativeAttributes:this.nativeAttributes,onCatChange:t=>{t.stopPropagation();this.value=t.detail||undefined},onCatFocus:t=>{t.stopPropagation();this.catFocus.emit(t.detail)},onCatBlur:t=>{t.stopPropagation();this.catBlur.emit(t.detail)}},this.hasSlottedLabel&&e("span",{slot:"label"},e("slot",{name:"label"})),this.hasSlottedHint&&e("span",{slot:"hint"},e("slot",{name:"hint"})))}initDatepicker(t){if(this.disabled||this.readonly||!t){return}const e=!!Oe("cat-dropdown",t);const r=e?{"data-dropdown-no-close":""}:{};return Be(t,Ne({locale:Ke(I.getLocale()),format:Pe(I.getLocale(),this.mode),mode:this.mode,min:this.min,max:this.max,step:this.step,disabled:this.disabled,readonly:this.readonly,nativePickerAttributes:{...r,...this.nativePickerAttributes},applyChange:t=>this.value=t}))}get hostElement(){return i(this)}static get watchers(){return{value:["onValueChanged"],disabled:["onDisabledChanged"],readonly:["onDisabledChanged"],min:["onMinChanged"],max:["onMinChanged"]}}};Je.style=Ge;const Ye='@charset "UTF-8";.flatpickr-calendar{background:transparent;opacity:0;display:none;text-align:center;visibility:hidden;padding:0;-webkit-animation:none;animation:none;direction:ltr;border:0;font-size:14px;line-height:24px;border-radius:5px;position:absolute;width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-touch-action:manipulation;touch-action:manipulation;background:#fff;-webkit-box-shadow:1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0,0,0,0.08);box-shadow:1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0,0,0,0.08)}.flatpickr-calendar.open,.flatpickr-calendar.inline{opacity:1;max-height:640px;visibility:visible}.flatpickr-calendar.open{display:inline-block;z-index:99999}.flatpickr-calendar.animate.open{-webkit-animation:fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);animation:fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1)}.flatpickr-calendar.inline{display:block;position:relative;top:2px}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px)}.flatpickr-calendar.static.open{z-index:999;display:block}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7){-webkit-box-shadow:none !important;box-shadow:none !important}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1){-webkit-box-shadow:-2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;box-shadow:-2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6}.flatpickr-calendar .hasWeeks .dayContainer,.flatpickr-calendar .hasTime .dayContainer{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.hasTime .flatpickr-time{height:40px;border-top:1px solid #e6e6e6}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:before,.flatpickr-calendar:after{position:absolute;display:block;pointer-events:none;border:solid transparent;content:\'\';height:0;width:0;left:22px}.flatpickr-calendar.rightMost:before,.flatpickr-calendar.arrowRight:before,.flatpickr-calendar.rightMost:after,.flatpickr-calendar.arrowRight:after{left:auto;right:22px}.flatpickr-calendar.arrowCenter:before,.flatpickr-calendar.arrowCenter:after{left:50%;right:50%}.flatpickr-calendar:before{border-width:5px;margin:0 -5px}.flatpickr-calendar:after{border-width:4px;margin:0 -4px}.flatpickr-calendar.arrowTop:before,.flatpickr-calendar.arrowTop:after{bottom:100%}.flatpickr-calendar.arrowTop:before{border-bottom-color:#e6e6e6}.flatpickr-calendar.arrowTop:after{border-bottom-color:#fff}.flatpickr-calendar.arrowBottom:before,.flatpickr-calendar.arrowBottom:after{top:100%}.flatpickr-calendar.arrowBottom:before{border-top-color:#e6e6e6}.flatpickr-calendar.arrowBottom:after{border-top-color:#fff}.flatpickr-calendar:focus{outline:0}.flatpickr-wrapper{position:relative;display:inline-block}.flatpickr-months{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-months .flatpickr-month{background:transparent;color:rgba(0,0,0,0.9);fill:rgba(0,0,0,0.9);height:34px;line-height:1;text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.flatpickr-months .flatpickr-prev-month,.flatpickr-months .flatpickr-next-month{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-decoration:none;cursor:pointer;position:absolute;top:0;height:34px;padding:10px;z-index:3;color:rgba(0,0,0,0.9);fill:rgba(0,0,0,0.9)}.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,.flatpickr-months .flatpickr-next-month.flatpickr-disabled{display:none}.flatpickr-months .flatpickr-prev-month i,.flatpickr-months .flatpickr-next-month i{position:relative}.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,.flatpickr-months .flatpickr-next-month.flatpickr-prev-month{left:0;}.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,.flatpickr-months .flatpickr-next-month.flatpickr-next-month{right:0;}.flatpickr-months .flatpickr-prev-month:hover,.flatpickr-months .flatpickr-next-month:hover{color:#959ea9}.flatpickr-months .flatpickr-prev-month:hover svg,.flatpickr-months .flatpickr-next-month:hover svg{fill:#f64747}.flatpickr-months .flatpickr-prev-month svg,.flatpickr-months .flatpickr-next-month svg{width:14px;height:14px}.flatpickr-months .flatpickr-prev-month svg path,.flatpickr-months .flatpickr-next-month svg path{-webkit-transition:fill 0.1s;transition:fill 0.1s;fill:inherit}.numInputWrapper{position:relative;height:auto}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%}.numInputWrapper input::-ms-clear{display:none}.numInputWrapper input::-webkit-outer-spin-button,.numInputWrapper input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.numInputWrapper span{position:absolute;right:0;width:14px;padding:0 4px 0 2px;height:50%;line-height:50%;opacity:0;cursor:pointer;border:1px solid rgba(57,57,57,0.15);-webkit-box-sizing:border-box;box-sizing:border-box}.numInputWrapper span:hover{background:rgba(0,0,0,0.1)}.numInputWrapper span:active{background:rgba(0,0,0,0.2)}.numInputWrapper span:after{display:block;content:"";position:absolute}.numInputWrapper span.arrowUp{top:0;border-bottom:0}.numInputWrapper span.arrowUp:after{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgba(57,57,57,0.6);top:26%}.numInputWrapper span.arrowDown{top:50%}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57,57,57,0.6);top:40%}.numInputWrapper span svg{width:inherit;height:auto}.numInputWrapper span svg path{fill:rgba(0,0,0,0.5)}.numInputWrapper:hover{background:rgba(0,0,0,0.05)}.numInputWrapper:hover span{opacity:1}.flatpickr-current-month{font-size:135%;line-height:inherit;font-weight:300;color:inherit;position:absolute;width:75%;left:12.5%;padding:7.48px 0 0 0;line-height:1;height:34px;display:inline-block;text-align:center;-webkit-transform:translate3d(0px, 0px, 0px);transform:translate3d(0px, 0px, 0px)}.flatpickr-current-month span.cur-month{font-family:inherit;font-weight:700;color:inherit;display:inline-block;margin-left:0.5ch;padding:0}.flatpickr-current-month span.cur-month:hover{background:rgba(0,0,0,0.05)}.flatpickr-current-month .numInputWrapper{width:6ch;width:7ch\\0;display:inline-block}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:rgba(0,0,0,0.9)}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:rgba(0,0,0,0.9)}.flatpickr-current-month input.cur-year{background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;cursor:text;padding:0 0 0 0.5ch;margin:0;display:inline-block;font-size:inherit;font-family:inherit;font-weight:300;line-height:inherit;height:auto;border:0;border-radius:0;vertical-align:initial;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-current-month input.cur-year:focus{outline:0}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{font-size:100%;color:rgba(0,0,0,0.5);background:transparent;pointer-events:none}.flatpickr-current-month .flatpickr-monthDropdown-months{appearance:menulist;background:transparent;border:none;border-radius:0;box-sizing:border-box;color:inherit;cursor:pointer;font-size:inherit;font-family:inherit;font-weight:300;height:auto;line-height:inherit;margin:-1px 0 0 0;outline:none;padding:0 0 0 0.5ch;position:relative;vertical-align:initial;-webkit-box-sizing:border-box;-webkit-appearance:menulist;-moz-appearance:menulist;width:auto}.flatpickr-current-month .flatpickr-monthDropdown-months:focus,.flatpickr-current-month .flatpickr-monthDropdown-months:active{outline:none}.flatpickr-current-month .flatpickr-monthDropdown-months:hover{background:rgba(0,0,0,0.05)}.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month{background-color:transparent;outline:none;padding:0}.flatpickr-weekdays{background:transparent;text-align:center;overflow:hidden;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:28px}.flatpickr-weekdays .flatpickr-weekdaycontainer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}span.flatpickr-weekday{cursor:default;font-size:90%;background:transparent;color:rgba(0,0,0,0.54);line-height:1;margin:0;text-align:center;display:block;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-weight:bolder}.dayContainer,.flatpickr-weeks{padding:1px 0 0 0}.flatpickr-days{position:relative;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;width:307.875px}.flatpickr-days:focus{outline:0}.dayContainer{padding:0;outline:0;text-align:left;width:307.875px;min-width:307.875px;max-width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;display:-ms-flexbox;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-wrap:wrap;-ms-flex-pack:justify;-webkit-justify-content:space-around;justify-content:space-around;-webkit-transform:translate3d(0px, 0px, 0px);transform:translate3d(0px, 0px, 0px);opacity:1}.dayContainer+.dayContainer{-webkit-box-shadow:-1px 0 0 #e6e6e6;box-shadow:-1px 0 0 #e6e6e6}.flatpickr-day{background:none;border:1px solid transparent;border-radius:150px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#393939;cursor:pointer;font-weight:400;width:14.2857143%;-webkit-flex-basis:14.2857143%;-ms-flex-preferred-size:14.2857143%;flex-basis:14.2857143%;max-width:39px;height:39px;line-height:39px;margin:0;display:inline-block;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center}.flatpickr-day.inRange,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.today.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day:hover,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.nextMonthDay:hover,.flatpickr-day:focus,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.nextMonthDay:focus{cursor:pointer;outline:0;background:#e6e6e6;border-color:#e6e6e6}.flatpickr-day.today{border-color:#959ea9}.flatpickr-day.today:hover,.flatpickr-day.today:focus{border-color:#959ea9;background:#959ea9;color:#fff}.flatpickr-day.selected,.flatpickr-day.startRange,.flatpickr-day.endRange,.flatpickr-day.selected.inRange,.flatpickr-day.startRange.inRange,.flatpickr-day.endRange.inRange,.flatpickr-day.selected:focus,.flatpickr-day.startRange:focus,.flatpickr-day.endRange:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange:hover,.flatpickr-day.endRange:hover,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.endRange.nextMonthDay{background:#569ff7;-webkit-box-shadow:none;box-shadow:none;color:#fff;border-color:#569ff7}.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange,.flatpickr-day.endRange.startRange{border-radius:50px 0 0 50px}.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange,.flatpickr-day.endRange.endRange{border-radius:0 50px 50px 0}.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n+1)){-webkit-box-shadow:-10px 0 0 #569ff7;box-shadow:-10px 0 0 #569ff7}.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange,.flatpickr-day.endRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;-webkit-box-shadow:-5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;box-shadow:-5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover,.flatpickr-day.prevMonthDay,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.notAllowed.nextMonthDay{color:rgba(57,57,57,0.3);background:transparent;border-color:transparent;cursor:default}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{cursor:not-allowed;color:rgba(57,57,57,0.1)}.flatpickr-day.week.selected{border-radius:0;-webkit-box-shadow:-5px 0 0 #569ff7, 5px 0 0 #569ff7;box-shadow:-5px 0 0 #569ff7, 5px 0 0 #569ff7}.flatpickr-day.hidden{visibility:hidden}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{float:left}.flatpickr-weekwrapper .flatpickr-weeks{padding:0 12px;-webkit-box-shadow:1px 0 0 #e6e6e6;box-shadow:1px 0 0 #e6e6e6}.flatpickr-weekwrapper .flatpickr-weekday{float:none;width:100%;line-height:28px}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{display:block;width:100%;max-width:none;color:rgba(57,57,57,0.3);background:transparent;cursor:default;border:none}.flatpickr-innerContainer{display:block;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.flatpickr-rContainer{display:inline-block;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box}.flatpickr-time{text-align:center;outline:0;display:block;height:0;line-height:40px;max-height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-time:after{content:"";display:table;clear:both}.flatpickr-time .numInputWrapper{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:40%;height:40px;float:left}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#393939}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#393939}.flatpickr-time.hasSeconds .numInputWrapper{width:26%}.flatpickr-time.time24hr .numInputWrapper{width:49%}.flatpickr-time input{background:transparent;-webkit-box-shadow:none;box-shadow:none;border:0;border-radius:0;text-align:center;margin:0;padding:0;height:inherit;line-height:inherit;color:#393939;font-size:14px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-time input.flatpickr-hour{font-weight:bold}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400}.flatpickr-time input:focus{outline:0;border:0}.flatpickr-time .flatpickr-time-separator,.flatpickr-time .flatpickr-am-pm{height:inherit;float:left;line-height:inherit;color:#393939;font-weight:bold;width:2%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.flatpickr-time .flatpickr-am-pm{outline:0;width:18%;cursor:pointer;text-align:center;font-weight:400}.flatpickr-time input:hover,.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time input:focus,.flatpickr-time .flatpickr-am-pm:focus{background:#eee}.flatpickr-input[readonly]{cursor:pointer}@-webkit-keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0, -20px, 0);transform:translate3d(0, -20px, 0)}to{opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0, -20px, 0);transform:translate3d(0, -20px, 0)}to{opacity:1;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}.flatpickr-calendar{font-size:0.875rem;line-height:1.125rem;font-weight:var(--cat-font-weight-body, 400);box-shadow:0 4px 6px -2px rgba(27, 31, 38, 0.03), 0 12px 16px -4px rgba(27, 31, 38, 0.08);border-radius:var(--cat-border-radius-m, 0.25rem);border:1px solid rgb(var(--cat-border-color, 235, 236, 240));background:white;padding:1rem}.flatpickr-calendar:not(.inline).animate{transform:translateY(-1rem);opacity:0;transition:transform 125ms cubic-bezier(0.3, 0, 0.8, 0.15), opacity 125ms cubic-bezier(0.3, 0, 0.8, 0.15)}.flatpickr-calendar::before,.flatpickr-calendar::after{display:none}.flatpickr-calendar.inline,.flatpickr-calendar.open{display:flex;flex-direction:column;gap:1rem;width:auto !important}.flatpickr-calendar.inline{border:unset;padding:0}.flatpickr-calendar.open{z-index:calc(var(--cat-z-index, 1000) + 100);margin-top:0.75rem;margin-left:-0.75rem}.flatpickr-calendar.open.animate{opacity:1;transform:translateY(0);transition:transform 500ms cubic-bezier(0.05, 0.7, 0.1, 1), opacity 500ms cubic-bezier(0.05, 0.7, 0.1, 1)}.flatpickr-months{gap:0.25rem}.flatpickr-months .flatpickr-month{height:auto}.flatpickr-current-month{font-size:1.125rem;line-height:1.5rem;font-weight:var(--cat-font-weight-head, 600);font-feature-settings:"pnum";height:100%;padding:0;display:flex;position:static;width:auto;gap:0.25rem}.flatpickr-current-month .flatpickr-monthDropdown-months{padding:0 0.25rem;flex:1;margin:unset;font-weight:inherit;border-radius:var(--cat-border-radius-m, 0.25rem)}.flatpickr-current-month .flatpickr-monthDropdown-months:hover,.flatpickr-current-month .flatpickr-monthDropdown-months:focus-within{background-color:rgba(var(--cat-primary-bg, 0, 129, 148), 0.05)}.flatpickr-current-month input.cur-year{padding:0;font-weight:inherit;line-height:2.25rem}.flatpickr-current-month .numInputWrapper{width:7ch}.flatpickr-months .flatpickr-prev-month,.flatpickr-months .flatpickr-next-month{position:static;width:2.25rem;height:2.25rem;padding:0;align-items:center;display:flex;justify-content:center;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}.flatpickr-months .flatpickr-prev-month:hover,.flatpickr-months .flatpickr-next-month:hover{color:rgb(var(--cat-font-color-base, 0, 0, 0))}.flatpickr-weekdays{height:2rem}.flatpickr-weekdays .flatpickr-weekday{color:rgb(var(--cat-font-color-muted, 81, 92, 108));font-size:0.75rem;line-height:1rem;font-weight:700}.flatpickr-weekwrapper .flatpickr-weekday{height:2rem}.flatpickr-weekwrapper .flatpickr-weeks{box-shadow:none;width:2rem;padding:0;margin-right:0.5rem;background:#f2f4f7;border-radius:var(--cat-border-radius-m, 0.25rem)}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{font-size:0.75rem;line-height:1rem;font-weight:700;color:rgb(var(--cat-font-color-muted, 81, 92, 108));text-align:center;line-height:2.25rem}.flatpickr-days{width:15.75rem !important}.dayContainer{width:15.75rem;min-width:15.75rem;max-width:15.75rem}.flatpickr-day{color:rgb(var(--cat-font-color-base, 0, 0, 0));height:2.25rem;line-height:2.25rem;border:0;border-radius:var(--cat-border-radius-m, 0.25rem)}.flatpickr-day:hover{background-color:#f2f4f7;font-weight:700}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{color:rgb(var(--cat-font-color-muted, 81, 92, 108));font-weight:inherit;background-color:inherit !important}.flatpickr-day.today{color:rgb(var(--cat-primary-text, 0, 129, 148));box-shadow:inset 0 0 0 2px rgb(var(--cat-primary-text, 0, 129, 148))}.flatpickr-day.today:hover,.flatpickr-day.today:focus{background-color:#f2f4f7;color:rgb(var(--cat-primary-text, 0, 129, 148))}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover,.flatpickr-day.prevMonthDay,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.notAllowed.nextMonthDay{color:rgba(var(--cat-font-color-muted, 81, 92, 108), 0.5)}.flatpickr-day.selected,.flatpickr-day.selected:hover,.flatpickr-day.selected:focus,.flatpickr-day.selected.inRange,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.startRange,.flatpickr-day.startRange:hover,.flatpickr-day.startRange:focus,.flatpickr-day.startRange.inRange,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.endRange,.flatpickr-day.endRange:hover,.flatpickr-day.endRange:focus,.flatpickr-day.endRange.inRange,.flatpickr-day.endRange.nextMonthDay,.flatpickr-day.endRange.prevMonthDay{font-weight:700;background-color:rgb(var(--cat-primary-bg, 0, 129, 148)) !important;color:rgb(var(--cat-primary-fill, 255, 255, 255)) !important}.flatpickr-day.inRange,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.today.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day:hover,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.nextMonthDay:hover,.flatpickr-day:focus,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.nextMonthDay:focus{background-color:rgba(var(--cat-primary-bg, 0, 129, 148), 0.1)}.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange,.flatpickr-day.endRange.startRange{border-top-left-radius:var(--cat-border-radius-m, 0.25rem);border-bottom-left-radius:var(--cat-border-radius-m, 0.25rem)}.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange,.flatpickr-day.endRange.endRange{border-top-right-radius:var(--cat-border-radius-m, 0.25rem);border-bottom-right-radius:var(--cat-border-radius-m, 0.25rem)}.numInputWrapper{padding:0 1rem 0 0.5rem;border-radius:var(--cat-border-radius-m, 0.25rem)}.numInputWrapper:hover,.numInputWrapper:focus-within{background-color:rgba(var(--cat-primary-bg, 0, 129, 148), 0.05)}.numInputWrapper span{border:none;background:transparent;width:1rem;padding:0;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}.numInputWrapper span.arrowUp::after{content:"↑";align-items:flex-end}.numInputWrapper span.arrowDown::after{content:"↓";align-items:flex-start}.numInputWrapper span::after{font-size:0.75rem;line-height:1rem;font-weight:700;position:static;border:0 !important;font-size:10px;display:flex;height:100%;justify-content:center}.numInputWrapper span:hover{color:rgb(var(--cat-font-color-base, 0, 0, 0));background:transparent}.flatpickr-calendar.hasTime .flatpickr-time{border:1px solid rgb(var(--cat-border-color, 235, 236, 240));border-radius:var(--cat-border-radius-m, 0.25rem);min-width:12rem;height:auto}.flatpickr-calendar.hasTime .flatpickr-time .numInputWrapper{height:2rem;padding:0;margin:0.25rem;display:flex}.flatpickr-calendar.hasTime.noCalendar{padding:0}.flatpickr-calendar.hasTime.noCalendar .flatpickr-time{border:none}.flatpickr-time .flatpickr-time-separator,.flatpickr-time .flatpickr-am-pm{margin:0 0.25rem;font-size:1.125rem;line-height:1.5rem;font-weight:400;font-feature-settings:"pnum";color:rgb(var(--cat-font-color-base, 0, 0, 0));line-height:2.25rem}.flatpickr-time .flatpickr-am-pm{width:25%;padding:0 0.5rem}.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time .flatpickr-am-pm:focus{border-radius:var(--cat-border-radius-m, 0.25rem);background-color:rgba(var(--cat-primary-bg, 0, 129, 148), 0.05)}.flatpickr-time{max-height:unset}.flatpickr-time input{background:transparent !important;color:rgb(var(--cat-font-color-base, 0, 0, 0));font-size:0.9375rem;line-height:2.25rem;font-family:inherit}.flatpickr-time input.flatpickr-hour{font-weight:inherit}.flatpickr-day.inRange:not(.today),.flatpickr-day.week.selected{box-shadow:none}.flatpickr-day.inRange:nth-child(7n+1),.flatpickr-day.week.selected:nth-child(7n+1){border-top-left-radius:var(--cat-border-radius-m, 0.25rem);border-bottom-left-radius:var(--cat-border-radius-m, 0.25rem)}.flatpickr-day.inRange:nth-child(7n+7),.flatpickr-day.week.selected:nth-child(7n+7){border-top-right-radius:var(--cat-border-radius-m, 0.25rem);border-bottom-right-radius:var(--cat-border-radius-m, 0.25rem)}.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n+1)){box-shadow:none}.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange,.flatpickr-day.endRange.startRange.endRange{border-radius:var(--cat-border-radius-m, 0.25rem)}:host{display:inline-flex}:host>div{display:flex}:host([hidden]){display:none}.datepicker-disabled .flatpickr-days,.datepicker-disabled .flatpickr-time,.datepicker-readonly .flatpickr-days,.datepicker-readonly .flatpickr-time{pointer-events:none}.datepicker-disabled .flatpickr-days{opacity:0.75}.datepicker-disabled .flatpickr-time input,.datepicker-disabled .flatpickr-time .flatpickr-time-separator,.datepicker-disabled .flatpickr-time .flatpickr-am-pm{color:rgb(var(--cat-font-color-muted, 81, 92, 108));opacity:0.75}input{display:none}.flatpickr-calendar{box-shadow:unset;background:unset}';const qe=class{constructor(e){t(this,e);this.catChange=a(this,"catChange",7);this.disabled=false;this.max=undefined;this.min=undefined;this.mode="date";this.readonly=false;this.step=5;this.value=undefined;this.nativePickerAttributes=undefined}onValueChanged(t){if(t){this.pickr?.setDate(t,false);this.catChange.emit(t)}else{this.pickr?.clear(false);this.catChange.emit(undefined)}}onDisabledChanged(){this.pickr?.destroy();this.pickr=undefined;setTimeout((()=>this.pickr=this.initDatepicker(this.input)))}componentDidLoad(){this.pickr=this.initDatepicker(this.input)}render(){return e(r,null,e("div",{tabIndex:this.disabled||this.readonly?-1:undefined,class:{"datepicker-wrapper":true,"datepicker-disabled":this.disabled,"datepicker-readonly":this.readonly}},e("input",{ref:t=>this.input=t,value:this.value,disabled:this.disabled,readonly:this.readonly})))}initDatepicker(t){if(!t){return}return Be(t,Ne({locale:Ke(I.getLocale()),format:Pe(I.getLocale(),this.mode),mode:this.mode,min:this.min,max:this.max,step:this.step,disabled:this.disabled,readonly:this.readonly,nativePickerAttributes:this.nativePickerAttributes??{},applyChange:t=>this.value=t},{...this.disabled?{enable:[]}:{},inline:true}))}static get watchers(){return{value:["onValueChanged"],disabled:["onDisabledChanged"],readonly:["onDisabledChanged"]}}};qe.style=Ye;const Ve=Math.min;const Ze=Math.max;const Xe=Math.round;const Qe=Math.floor;const tr=t=>({x:t,y:t});const er={left:"right",right:"left",bottom:"top",top:"bottom"};const rr={start:"end",end:"start"};function ir(t,e,r){return Ze(t,Ve(e,r))}function ar(t,e){return typeof t==="function"?t(e):t}function nr(t){return t.split("-")[0]}function or(t){return t.split("-")[1]}function sr(t){return t==="x"?"y":"x"}function lr(t){return t==="y"?"height":"width"}function cr(t){return["top","bottom"].includes(nr(t))?"y":"x"}function dr(t){return sr(cr(t))}function hr(t,e,r){if(r===void 0){r=false}const i=or(t);const a=dr(t);const n=lr(a);let o=a==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";if(e.reference[n]>e.floating[n]){o=br(o)}return[o,br(o)]}function ur(t){const e=br(t);return[fr(t),e,fr(e)]}function fr(t){return t.replace(/start|end/g,(t=>rr[t]))}function pr(t,e,r){const i=["left","right"];const a=["right","left"];const n=["top","bottom"];const o=["bottom","top"];switch(t){case"top":case"bottom":if(r)return e?a:i;return e?i:a;case"left":case"right":return e?n:o;default:return[]}}function mr(t,e,r,i){const a=or(t);let n=pr(nr(t),r==="start",i);if(a){n=n.map((t=>t+"-"+a));if(e){n=n.concat(n.map(fr))}}return n}function br(t){return t.replace(/left|right|bottom|top/g,(t=>er[t]))}function vr(t){return{top:0,right:0,bottom:0,left:0,...t}}function gr(t){return typeof t!=="number"?vr(t):{top:t,right:t,bottom:t,left:t}}function yr(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function xr(t,e,r){let{reference:i,floating:a}=t;const n=cr(e);const o=dr(e);const s=lr(o);const l=nr(e);const c=n==="y";const d=i.x+i.width/2-a.width/2;const h=i.y+i.height/2-a.height/2;const u=i[s]/2-a[s]/2;let f;switch(l){case"top":f={x:d,y:i.y-a.height};break;case"bottom":f={x:d,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:h};break;case"left":f={x:i.x-a.width,y:h};break;default:f={x:i.x,y:i.y}}switch(or(e)){case"start":f[o]-=u*(r&&c?-1:1);break;case"end":f[o]+=u*(r&&c?-1:1);break}return f}const wr=async(t,e,r)=>{const{placement:i="bottom",strategy:a="absolute",middleware:n=[],platform:o}=r;const s=n.filter(Boolean);const l=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:a});let{x:d,y:h}=xr(c,i,l);let u=i;let f={};let p=0;for(let r=0;rt<=0))){var $,C;const t=((($=n.flip)==null?void 0:$.index)||0)+1;const e=w[t];if(e){return{data:{index:t,overflows:I},reset:{placement:e}}}let r=(C=I.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])==null?void 0:C.placement;if(!r){switch(f){case"bestFit":{var M;const t=(M=I.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])==null?void 0:M[0];if(t){r=t}break}case"initialPlacement":r=s;break}}if(a!==r){return{reset:{placement:r}}}}return{}}}};async function Ir(t,e){const{placement:r,platform:i,elements:a}=t;const n=await(i.isRTL==null?void 0:i.isRTL(a.floating));const o=nr(r);const s=or(r);const l=cr(r)==="y";const c=["left","top"].includes(o)?-1:1;const d=n&&l?-1:1;const h=ar(e,t);let{mainAxis:u,crossAxis:f,alignmentAxis:p}=typeof h==="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};if(s&&typeof p==="number"){f=s==="end"?p*-1:p}return l?{x:f*d,y:u*c}:{x:u*c,y:f*d}}const $r=function(t){if(t===void 0){t=0}return{name:"offset",options:t,async fn(e){const{x:r,y:i}=e;const a=await Ir(e,t);return{x:r+a.x,y:i+a.y,data:a}}}};const Cr=function(t){if(t===void 0){t={}}return{name:"shift",options:t,async fn(e){const{x:r,y:i,placement:a}=e;const{mainAxis:n=true,crossAxis:o=false,limiter:s={fn:t=>{let{x:e,y:r}=t;return{x:e,y:r}}},...l}=ar(t,e);const c={x:r,y:i};const d=await kr(e,l);const h=cr(nr(a));const u=sr(h);let f=c[u];let p=c[h];if(n){const t=u==="y"?"top":"left";const e=u==="y"?"bottom":"right";const r=f+d[t];const i=f-d[e];f=ir(r,f,i)}if(o){const t=h==="y"?"top":"left";const e=h==="y"?"bottom":"right";const r=p+d[t];const i=p-d[e];p=ir(r,p,i)}const m=s.fn({...e,[u]:f,[h]:p});return{...m,data:{x:m.x-r,y:m.y-i}}}}};const Mr=function(t){if(t===void 0){t={}}return{name:"size",options:t,async fn(e){const{placement:r,rects:i,platform:a,elements:n}=e;const{apply:o=(()=>{}),...s}=ar(t,e);const l=await kr(e,s);const c=nr(r);const d=or(r);const h=cr(r)==="y";const{width:u,height:f}=i.floating;let p;let m;if(c==="top"||c==="bottom"){p=c;m=d===(await(a.isRTL==null?void 0:a.isRTL(n.floating))?"start":"end")?"left":"right"}else{m=c;p=d==="end"?"top":"bottom"}const b=f-l[p];const v=u-l[m];const g=!e.middlewareData.shift;let y=b;let x=v;if(h){const t=u-l.left-l.right;x=d||g?Ve(v,t):t}else{const t=f-l.top-l.bottom;y=d||g?Ve(b,t):t}if(g&&!d){const t=Ze(l.left,0);const e=Ze(l.right,0);const r=Ze(l.top,0);const i=Ze(l.bottom,0);if(h){x=u-2*(t!==0||e!==0?t+e:Ze(l.left,l.right))}else{y=f-2*(r!==0||i!==0?r+i:Ze(l.top,l.bottom))}}await o({...e,availableWidth:x,availableHeight:y});const w=await a.getDimensions(n.floating);if(u!==w.width||f!==w.height){return{reset:{rects:true}}}return{}}}};function Dr(t){if(Rr(t)){return(t.nodeName||"").toLowerCase()}return"#document"}function Ar(t){var e;return(t==null?void 0:(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Sr(t){var e;return(e=(Rr(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Rr(t){return t instanceof Node||t instanceof Ar(t).Node}function Tr(t){return t instanceof Element||t instanceof Ar(t).Element}function Fr(t){return t instanceof HTMLElement||t instanceof Ar(t).HTMLElement}function Er(t){if(typeof ShadowRoot==="undefined"){return false}return t instanceof ShadowRoot||t instanceof Ar(t).ShadowRoot}function Br(t){const{overflow:e,overflowX:r,overflowY:i,display:a}=Wr(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&!["inline","contents"].includes(a)}function Or(t){return["table","td","th"].includes(Dr(t))}function Lr(t){const e=jr();const r=Wr(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":false)||!e&&(r.backdropFilter?r.backdropFilter!=="none":false)||!e&&(r.filter?r.filter!=="none":false)||["transform","perspective","filter"].some((t=>(r.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(r.contain||"").includes(t)))}function Nr(t){let e=_r(t);while(Fr(e)&&!Pr(e)){if(Lr(e)){return e}else{e=_r(e)}}return null}function jr(){if(typeof CSS==="undefined"||!CSS.supports)return false;return CSS.supports("-webkit-backdrop-filter","none")}function Pr(t){return["html","body","#document"].includes(Dr(t))}function Wr(t){return Ar(t).getComputedStyle(t)}function Hr(t){if(Tr(t)){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function _r(t){if(Dr(t)==="html"){return t}const e=t.assignedSlot||t.parentNode||Er(t)&&t.host||Sr(t);return Er(e)?e.host:e}function Ur(t){const e=_r(t);if(Pr(e)){return t.ownerDocument?t.ownerDocument.body:t.body}if(Fr(e)&&Br(e)){return e}return Ur(e)}function Kr(t,e,r){var i;if(e===void 0){e=[]}if(r===void 0){r=true}const a=Ur(t);const n=a===((i=t.ownerDocument)==null?void 0:i.body);const o=Ar(a);if(n){return e.concat(o,o.visualViewport||[],Br(a)?a:[],o.frameElement&&r?Kr(o.frameElement):[])}return e.concat(a,Kr(a,[],r))}function Gr(t){const e=Wr(t);let r=parseFloat(e.width)||0;let i=parseFloat(e.height)||0;const a=Fr(t);const n=a?t.offsetWidth:r;const o=a?t.offsetHeight:i;const s=Xe(r)!==n||Xe(i)!==o;if(s){r=n;i=o}return{width:r,height:i,$:s}}function Jr(t){return!Tr(t)?t.contextElement:t}function Yr(t){const e=Jr(t);if(!Fr(e)){return tr(1)}const r=e.getBoundingClientRect();const{width:i,height:a,$:n}=Gr(e);let o=(n?Xe(r.width):r.width)/i;let s=(n?Xe(r.height):r.height)/a;if(!o||!Number.isFinite(o)){o=1}if(!s||!Number.isFinite(s)){s=1}return{x:o,y:s}}const qr=tr(0);function Vr(t){const e=Ar(t);if(!jr()||!e.visualViewport){return qr}return{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Zr(t,e,r){if(e===void 0){e=false}if(!r||e&&r!==Ar(t)){return false}return e}function Xr(t,e,r,i){if(e===void 0){e=false}if(r===void 0){r=false}const a=t.getBoundingClientRect();const n=Jr(t);let o=tr(1);if(e){if(i){if(Tr(i)){o=Yr(i)}}else{o=Yr(t)}}const s=Zr(n,r,i)?Vr(n):tr(0);let l=(a.left+s.x)/o.x;let c=(a.top+s.y)/o.y;let d=a.width/o.x;let h=a.height/o.y;if(n){const t=Ar(n);const e=i&&Tr(i)?Ar(i):i;let r=t.frameElement;while(r&&i&&e!==t){const t=Yr(r);const e=r.getBoundingClientRect();const i=Wr(r);const a=e.left+(r.clientLeft+parseFloat(i.paddingLeft))*t.x;const n=e.top+(r.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x;c*=t.y;d*=t.x;h*=t.y;l+=a;c+=n;r=Ar(r).frameElement}}return yr({width:d,height:h,x:l,y:c})}function Qr(t){let{rect:e,offsetParent:r,strategy:i}=t;const a=Fr(r);const n=Sr(r);if(r===n){return e}let o={scrollLeft:0,scrollTop:0};let s=tr(1);const l=tr(0);if(a||!a&&i!=="fixed"){if(Dr(r)!=="body"||Br(n)){o=Hr(r)}if(Fr(r)){const t=Xr(r);s=Yr(r);l.x=t.x+r.clientLeft;l.y=t.y+r.clientTop}}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-o.scrollLeft*s.x+l.x,y:e.y*s.y-o.scrollTop*s.y+l.y}}function ti(t){return Array.from(t.getClientRects())}function ei(t){return Xr(Sr(t)).left+Hr(t).scrollLeft}function ri(t){const e=Sr(t);const r=Hr(t);const i=t.ownerDocument.body;const a=Ze(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth);const n=Ze(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let o=-r.scrollLeft+ei(t);const s=-r.scrollTop;if(Wr(i).direction==="rtl"){o+=Ze(e.clientWidth,i.clientWidth)-a}return{width:a,height:n,x:o,y:s}}function ii(t,e){const r=Ar(t);const i=Sr(t);const a=r.visualViewport;let n=i.clientWidth;let o=i.clientHeight;let s=0;let l=0;if(a){n=a.width;o=a.height;const t=jr();if(!t||t&&e==="fixed"){s=a.offsetLeft;l=a.offsetTop}}return{width:n,height:o,x:s,y:l}}function ai(t,e){const r=Xr(t,true,e==="fixed");const i=r.top+t.clientTop;const a=r.left+t.clientLeft;const n=Fr(t)?Yr(t):tr(1);const o=t.clientWidth*n.x;const s=t.clientHeight*n.y;const l=a*n.x;const c=i*n.y;return{width:o,height:s,x:l,y:c}}function ni(t,e,r){let i;if(e==="viewport"){i=ii(t,r)}else if(e==="document"){i=ri(Sr(t))}else if(Tr(e)){i=ai(e,r)}else{const r=Vr(t);i={...e,x:e.x-r.x,y:e.y-r.y}}return yr(i)}function oi(t,e){const r=_r(t);if(r===e||!Tr(r)||Pr(r)){return false}return Wr(r).position==="fixed"||oi(r,e)}function si(t,e){const r=e.get(t);if(r){return r}let i=Kr(t,[],false).filter((t=>Tr(t)&&Dr(t)!=="body"));let a=null;const n=Wr(t).position==="fixed";let o=n?_r(t):t;while(Tr(o)&&!Pr(o)){const e=Wr(o);const r=Lr(o);if(!r&&e.position==="fixed"){a=null}const s=n?!r&&!a:!r&&e.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Br(o)&&!r&&oi(t,o);if(s){i=i.filter((t=>t!==o))}else{a=e}o=_r(o)}e.set(t,i);return i}function li(t){let{element:e,boundary:r,rootBoundary:i,strategy:a}=t;const n=r==="clippingAncestors"?si(e,this._c):[].concat(r);const o=[...n,i];const s=o[0];const l=o.reduce(((t,r)=>{const i=ni(e,r,a);t.top=Ze(i.top,t.top);t.right=Ve(i.right,t.right);t.bottom=Ve(i.bottom,t.bottom);t.left=Ze(i.left,t.left);return t}),ni(e,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function ci(t){return Gr(t)}function di(t,e,r){const i=Fr(e);const a=Sr(e);const n=r==="fixed";const o=Xr(t,true,n,e);let s={scrollLeft:0,scrollTop:0};const l=tr(0);if(i||!i&&!n){if(Dr(e)!=="body"||Br(a)){s=Hr(e)}if(i){const t=Xr(e,true,n,e);l.x=t.x+e.clientLeft;l.y=t.y+e.clientTop}else if(a){l.x=ei(a)}}return{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function hi(t,e){if(!Fr(t)||Wr(t).position==="fixed"){return null}if(e){return e(t)}return t.offsetParent}function ui(t,e){const r=Ar(t);if(!Fr(t)){return r}let i=hi(t,e);while(i&&Or(i)&&Wr(i).position==="static"){i=hi(i,e)}if(i&&(Dr(i)==="html"||Dr(i)==="body"&&Wr(i).position==="static"&&!Lr(i))){return r}return i||Nr(t)||r}const fi=async function(t){let{reference:e,floating:r,strategy:i}=t;const a=this.getOffsetParent||ui;const n=this.getDimensions;return{reference:di(e,await a(r),i),floating:{x:0,y:0,...await n(r)}}};function pi(t){return Wr(t).direction==="rtl"}const mi={convertOffsetParentRelativeRectToViewportRelativeRect:Qr,getDocumentElement:Sr,getClippingRect:li,getOffsetParent:ui,getElementRects:fi,getClientRects:ti,getDimensions:ci,getScale:Yr,isElement:Tr,isRTL:pi};function bi(t,e){let r=null;let i;const a=Sr(t);function n(){clearTimeout(i);r&&r.disconnect();r=null}function o(s,l){if(s===void 0){s=false}if(l===void 0){l=1}n();const{left:c,top:d,width:h,height:u}=t.getBoundingClientRect();if(!s){e()}if(!h||!u){return}const f=Qe(d);const p=Qe(a.clientWidth-(c+h));const m=Qe(a.clientHeight-(d+u));const b=Qe(c);const v=-f+"px "+-p+"px "+-m+"px "+-b+"px";const g={rootMargin:v,threshold:Ze(0,Ve(1,l))||1};let y=true;function x(t){const e=t[0].intersectionRatio;if(e!==l){if(!y){return o()}if(!e){i=setTimeout((()=>{o(false,1e-7)}),100)}else{o(false,e)}}y=false}try{r=new IntersectionObserver(x,{...g,root:a.ownerDocument})}catch(t){r=new IntersectionObserver(x,g)}r.observe(t)}o(true);return n}function vi(t,e,r,i){if(i===void 0){i={}}const{ancestorScroll:a=true,ancestorResize:n=true,elementResize:o=typeof ResizeObserver==="function",layoutShift:s=typeof IntersectionObserver==="function",animationFrame:l=false}=i;const c=Jr(t);const d=a||n?[...c?Kr(c):[],...Kr(e)]:[];d.forEach((t=>{a&&t.addEventListener("scroll",r,{passive:true});n&&t.addEventListener("resize",r)}));const h=c&&s?bi(c,r):null;let u=-1;let f=null;if(o){f=new ResizeObserver((t=>{let[i]=t;if(i&&i.target===c&&f){f.unobserve(e);cancelAnimationFrame(u);u=requestAnimationFrame((()=>{f&&f.observe(e)}))}r()}));if(c&&!l){f.observe(c)}f.observe(e)}let p;let m=l?Xr(t):null;if(l){b()}function b(){const e=Xr(t);if(m&&(e.x!==m.x||e.y!==m.y||e.width!==m.width||e.height!==m.height)){r()}m=e;p=requestAnimationFrame(b)}r();return()=>{d.forEach((t=>{a&&t.removeEventListener("scroll",r);n&&t.removeEventListener("resize",r)}));h&&h();f&&f.disconnect();f=null;if(l){cancelAnimationFrame(p)}}}const gi=(t,e,r)=>{const i=new Map;const a={platform:mi,...r};const n={...a.platform,_c:i};return wr(t,e,{...a,platform:n})};const yi=125; /*! * tabbable 6.2.0 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE @@ -7,4 +7,4 @@ import{r as t,h as e,H as r,g as i,c as a}from"./p-6cd4fa1e.js";import{f as n,O * focus-trap 7.5.4 * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE */function Qi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function ta(t){for(var e=1;e0){var i=e[e.length-1];if(i!==r){i.pause()}}var a=e.indexOf(r);if(a===-1){e.push(r)}else{e.splice(a,1);e.push(r)}},deactivateTrap:function t(e,r){var i=e.indexOf(r);if(i!==-1){e.splice(i,1)}if(e.length>0){e[e.length-1].unpause()}}};var na=function t(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select==="function"};var oa=function t(e){return(e===null||e===void 0?void 0:e.key)==="Escape"||(e===null||e===void 0?void 0:e.key)==="Esc"||(e===null||e===void 0?void 0:e.keyCode)===27};var sa=function t(e){return(e===null||e===void 0?void 0:e.key)==="Tab"||(e===null||e===void 0?void 0:e.keyCode)===9};var la=function t(e){return sa(e)&&!e.shiftKey};var ca=function t(e){return sa(e)&&e.shiftKey};var da=function t(e){return setTimeout(e,0)};var ha=function t(e,r){var i=-1;e.every((function(t,e){if(r(t)){i=e;return false}return true}));return i};var ua=function t(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a1?a-1:0),s=1;s=0){e=i.activeElement}else{var r=o.tabbableGroups[0];var a=r&&r.firstTabbableNode;e=a||d("fallbackFocus")}}if(!e){throw new Error("Your focus-trap needs to have at least one focusable element")}return e};var u=function t(){o.containerGroups=o.containers.map((function(t){var e=Yi(t,n.tabbableOptions);var r=qi(t,n.tabbableOptions);var i=e.length>0?e[0]:undefined;var a=e.length>0?e[e.length-1]:undefined;var o=r.find((function(t){return Vi(t)}));var s=r.slice().reverse().find((function(t){return Vi(t)}));var l=!!e.find((function(t){return Si(t)>0}));return{container:t,tabbableNodes:e,focusableNodes:r,posTabIndexesFound:l,firstTabbableNode:i,lastTabbableNode:a,firstDomTabbableNode:o,lastDomTabbableNode:s,nextTabbableNode:function t(i){var a=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;var n=e.indexOf(i);if(n<0){if(a){return r.slice(r.indexOf(i)+1).find((function(t){return Vi(t)}))}return r.slice(0,r.indexOf(i)).reverse().find((function(t){return Vi(t)}))}return e[n+(a?1:-1)]}}}));o.tabbableGroups=o.containerGroups.filter((function(t){return t.tabbableNodes.length>0}));if(o.tabbableGroups.length<=0&&!d("fallbackFocus")){throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")}if(o.containerGroups.find((function(t){return t.posTabIndexesFound}))&&o.containerGroups.length>1){throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}};var f=function t(e){var r=e.activeElement;if(!r){return}if(r.shadowRoot&&r.shadowRoot.activeElement!==null){return t(r.shadowRoot)}return r};var p=function t(e){if(e===false){return}if(e===f(document)){return}if(!e||!e.focus){t(h());return}e.focus({preventScroll:!!n.preventScroll});o.mostRecentlyFocusedNode=e;if(na(e)){e.select()}};var m=function t(e){var r=d("setReturnFocus",e);return r?r:r===false?false:e};var b=function t(e){var r=e.target,i=e.event,a=e.isBackward,s=a===void 0?false:a;r=r||fa(i);u();var l=null;if(o.tabbableGroups.length>0){var h=c(r,i);var f=h>=0?o.containerGroups[h]:undefined;if(h<0){if(s){l=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode}else{l=o.tabbableGroups[0].firstTabbableNode}}else if(s){var p=ha(o.tabbableGroups,(function(t){var e=t.firstTabbableNode;return r===e}));if(p<0&&(f.container===r||Xi(r,n.tabbableOptions)&&!Vi(r,n.tabbableOptions)&&!f.nextTabbableNode(r,false))){p=h}if(p>=0){var m=p===0?o.tabbableGroups.length-1:p-1;var b=o.tabbableGroups[m];l=Si(r)>=0?b.lastTabbableNode:b.lastDomTabbableNode}else if(!sa(i)){l=f.nextTabbableNode(r,false)}}else{var v=ha(o.tabbableGroups,(function(t){var e=t.lastTabbableNode;return r===e}));if(v<0&&(f.container===r||Xi(r,n.tabbableOptions)&&!Vi(r,n.tabbableOptions)&&!f.nextTabbableNode(r))){v=h}if(v>=0){var g=v===o.tabbableGroups.length-1?0:v+1;var y=o.tabbableGroups[g];l=Si(r)>=0?y.firstTabbableNode:y.firstDomTabbableNode}else if(!sa(i)){l=f.nextTabbableNode(r)}}}else{l=d("fallbackFocus")}return l};var v=function t(e){var r=fa(e);if(c(r,e)>=0){return}if(ua(n.clickOutsideDeactivates,e)){s.deactivate({returnFocus:n.returnFocusOnDeactivate});return}if(ua(n.allowOutsideClick,e)){return}e.preventDefault()};var g=function t(e){var r=fa(e);var i=c(r,e)>=0;if(i||r instanceof Document){if(i){o.mostRecentlyFocusedNode=r}}else{e.stopImmediatePropagation();var a;var s=true;if(o.mostRecentlyFocusedNode){if(Si(o.mostRecentlyFocusedNode)>0){var l=c(o.mostRecentlyFocusedNode);var d=o.containerGroups[l].tabbableNodes;if(d.length>0){var u=d.findIndex((function(t){return t===o.mostRecentlyFocusedNode}));if(u>=0){if(n.isKeyForward(o.recentNavEvent)){if(u+1=0){a=d[u-1];s=false}}}}}else{if(!o.containerGroups.some((function(t){return t.tabbableNodes.some((function(t){return Si(t)>0}))}))){s=false}}}else{s=false}if(s){a=b({target:o.mostRecentlyFocusedNode,isBackward:n.isKeyBackward(o.recentNavEvent)})}if(a){p(a)}else{p(o.mostRecentlyFocusedNode||h())}}o.recentNavEvent=undefined};var y=function t(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;o.recentNavEvent=e;var i=b({event:e,isBackward:r});if(i){if(sa(e)){e.preventDefault()}p(i)}};var x=function t(e){if(oa(e)&&ua(n.escapeDeactivates,e)!==false){e.preventDefault();s.deactivate();return}if(n.isKeyForward(e)||n.isKeyBackward(e)){y(e,n.isKeyBackward(e))}};var w=function t(e){var r=fa(e);if(c(r,e)>=0){return}if(ua(n.clickOutsideDeactivates,e)){return}if(ua(n.allowOutsideClick,e)){return}e.preventDefault();e.stopImmediatePropagation()};var k=function t(){if(!o.active){return}aa.activateTrap(a,s);o.delayInitialFocusTimer=n.delayInitialFocus?da((function(){p(h())})):p(h());i.addEventListener("focusin",g,true);i.addEventListener("mousedown",v,{capture:true,passive:false});i.addEventListener("touchstart",v,{capture:true,passive:false});i.addEventListener("click",w,{capture:true,passive:false});i.addEventListener("keydown",x,{capture:true,passive:false});return s};var z=function t(){if(!o.active){return}i.removeEventListener("focusin",g,true);i.removeEventListener("mousedown",v,true);i.removeEventListener("touchstart",v,true);i.removeEventListener("click",w,true);i.removeEventListener("keydown",x,true);return s};var I=function t(e){var r=e.some((function(t){var e=Array.from(t.removedNodes);return e.some((function(t){return t===o.mostRecentlyFocusedNode}))}));if(r){p(h())}};var $=typeof window!=="undefined"&&"MutationObserver"in window?new MutationObserver(I):undefined;var C=function t(){if(!$){return}$.disconnect();if(o.active&&!o.paused){o.containers.map((function(t){$.observe(t,{subtree:true,childList:true})}))}};s={get active(){return o.active},get paused(){return o.paused},activate:function t(e){if(o.active){return this}var r=l(e,"onActivate");var a=l(e,"onPostActivate");var n=l(e,"checkCanFocusTrap");if(!n){u()}o.active=true;o.paused=false;o.nodeFocusedBeforeActivation=i.activeElement;r===null||r===void 0||r();var s=function t(){if(n){u()}k();C();a===null||a===void 0||a()};if(n){n(o.containers.concat()).then(s,s);return this}s();return this},deactivate:function t(e){if(!o.active){return this}var r=ta({onDeactivate:n.onDeactivate,onPostDeactivate:n.onPostDeactivate,checkCanReturnFocus:n.checkCanReturnFocus},e);clearTimeout(o.delayInitialFocusTimer);o.delayInitialFocusTimer=undefined;z();o.active=false;o.paused=false;C();aa.deactivateTrap(a,s);var i=l(r,"onDeactivate");var c=l(r,"onPostDeactivate");var d=l(r,"checkCanReturnFocus");var h=l(r,"returnFocus","returnFocusOnDeactivate");i===null||i===void 0||i();var u=function t(){da((function(){if(h){p(m(o.nodeFocusedBeforeActivation))}c===null||c===void 0||c()}))};if(h&&d){d(m(o.nodeFocusedBeforeActivation)).then(u,u);return this}u();return this},pause:function t(e){if(o.paused||!o.active){return this}var r=l(e,"onPause");var i=l(e,"onPostPause");o.paused=true;r===null||r===void 0||r();z();C();i===null||i===void 0||i();return this},unpause:function t(e){if(!o.paused||!o.active){return this}var r=l(e,"onUnpause");var i=l(e,"onPostUnpause");o.paused=false;r===null||r===void 0||r();u();k();C();i===null||i===void 0||i();return this},updateContainerElements:function t(e){var r=[].concat(e).filter(Boolean);o.containers=r.map((function(t){return typeof t==="string"?i.querySelector(t):t}));if(o.active){u()}C();return this}};s.updateContainerElements(e);return s};const ba=t=>(t?Yi(t,{includeContainer:true,getShadowRoot:true}):[]).shift();const va=":host{display:contents}:host([hidden]){display:none}::slotted(nav){padding:0.25rem;min-width:8rem;max-width:16rem}.content{position:fixed;background:white;-webkit-overflow-scrolling:touch;min-height:2rem;max-height:calc(100vh - 48px);box-shadow:0 4px 6px -2px rgba(27, 31, 38, 0.03), 0 12px 16px -4px rgba(27, 31, 38, 0.08);border-radius:var(--cat-border-radius-m, 0.25rem);border:1px solid rgb(var(--cat-border-color, 235, 236, 240));z-index:calc(var(--cat-z-index, 1000) + 100);display:none;opacity:0;transform:scale(0.9);transition:transform 125ms cubic-bezier(0.3, 0, 0.8, 0.15), opacity 125ms cubic-bezier(0.3, 0, 0.8, 0.15)}.content[data-placement^=top]{transform-origin:bottom}.content[data-placement^=top-start]{transform-origin:bottom left}.content[data-placement^=top-end]{transform-origin:bottom right}.content[data-placement^=left]{transform-origin:right}.content[data-placement^=left-start]{transform-origin:right top}.content[data-placement^=left-end]{transform-origin:right bottom}.content[data-placement^=right]{transform-origin:left}.content[data-placement^=right-start]{transform-origin:left top}.content[data-placement^=right-end]{transform-origin:left bottom}.content[data-placement^=bottom]{transform-origin:top}.content[data-placement^=bottom-start]{transform-origin:top left}.content[data-placement^=bottom-end]{transform-origin:top right}.content.show{opacity:1;transform:scale(1);transition:transform 250ms cubic-bezier(0.05, 0.7, 0.1, 1), opacity 250ms cubic-bezier(0.05, 0.7, 0.1, 1)}.content.overflow-auto{overflow:auto}";let ga=0;const ya=class{constructor(e){t(this,e);this.catOpen=a(this,"catOpen",7);this.catClose=a(this,"catClose",7);this.id=ga++;this.isOpen=false;this.placement="bottom-start";this.noAutoClose=false;this.overflow=false}clickHandler(t){if(!this.trigger){this.initTrigger();this.toggle()}const e=t.composedPath();if(!this.noAutoClose&&e.includes(this.content)&&t.target?.slot!=="trigger"&&!e.slice(0,e.indexOf(this.content)).find((t=>this.hasAttribute(t,"data-dropdown-no-close")))){this.close()}}async toggle(){this.isOpen?this.close():this.open()}async open(){if(this.isOpen===null||this.isOpen){return}this.isOpen=null;this.content.style.display="block";setTimeout((()=>{this.isOpen=true;this.content.classList.add("show");this.trigger?.setAttribute("aria-expanded","true");this.catOpen.emit();this.trap=this.trap?this.trap.updateContainerElements(this.content):ma(this.content,{tabbableOptions:{getShadowRoot:true},allowOutsideClick:true,clickOutsideDeactivates:t=>!this.noAutoClose&&!t.composedPath().includes(this.content)&&!t.composedPath().find((t=>this.hasAttribute(t,"data-dropdown-no-close"))),onPostDeactivate:()=>this.close()});this.trap.activate()}))}async close(){if(!this.isOpen){return}this.isOpen=null;this.content.classList.remove("show");setTimeout((()=>{this.isOpen=false;this.content.classList.remove("show");this.content.style.display="";this.trigger?.setAttribute("aria-expanded","false");this.trap?.deactivate();this.catClose.emit()}),yi)}componentDidLoad(){this.keyListener=t=>{if(this.isOpen&&["ArrowDown","ArrowUp"].includes(t.key)){const e=Yi(this.content,{includeContainer:false,getShadowRoot:true});const r=ba(document.activeElement);const i=r?e.indexOf(r):-1;const a=t.key==="ArrowDown"?1:-1;const n=i<0?0:(i+a+e.length)%e.length;e[n].focus();t.preventDefault()}};document.addEventListener("keydown",this.keyListener)}disconnectedCallback(){if(this.keyListener){document.removeEventListener("keydown",this.keyListener)}}render(){return e(r,null,e("slot",{name:"trigger",ref:t=>this.triggerSlot=t}),e("div",{id:this.contentId,class:{content:true,"overflow-auto":!this.overflow},ref:t=>this.content=t},e("slot",{name:"content"})))}get contentId(){return`cat-dropdown-${this.id}`}initTrigger(){this.trigger=this.findTrigger();this.trigger.setAttribute("aria-haspopup","true");this.trigger.setAttribute("aria-expanded","false");this.trigger.setAttribute("aria-controls",this.contentId);this.trigger.addEventListener("click",(()=>this.toggle()));vi(this.trigger,this.content,(()=>this.update()))}findTrigger(){let t;const e=this.triggerSlot?.assignedElements?.()||[];while(!t&&e.length){const r=e.shift();t=r?.hasAttribute("data-trigger")?r:r?.querySelector("[data-trigger]")??undefined}if(!t){t=ba(this.triggerSlot)}if(!t){throw new Error("Cannot find tabbable element. Use [data-trigger] to set the trigger.")}return t}update(){if(this.trigger){gi(this.trigger,this.content,{strategy:"fixed",placement:this.placement,middleware:[$r(ya.OFFSET),zr(),Mr({padding:ya.OFFSET,apply({availableWidth:t,availableHeight:e,elements:r}){Object.assign(r.floating.style,{maxWidth:`${t}px`,maxHeight:`${e}px`})}})]}).then((({x:t,y:e,placement:r})=>{this.content.dataset.placement=r;Object.assign(this.content.style,{left:`${t}px`,top:`${e}px`})}))}}hasAttribute(t,e){return t instanceof HTMLElement&&t.hasAttribute(e)}};ya.OFFSET=4;ya.style=va;const xa=":host{display:block}";const wa=class{constructor(e){t(this,e);this.formElements=[];this.requiredMarker="auto";this.horizontal=false;this.labelSize=undefined}onRequiredMarkerChanged(t){const e=t==="auto"?this.calculate(this.formElements):t;this.formElements.forEach((t=>!t.requiredMarker?.endsWith("!")&&(t.requiredMarker=e)))}onHorizontalChanged(t){this.formElements.forEach((e=>{e.horizontal=t}))}render(){return e(r,{style:{"--label-size":this.labelSize}},e("slot",{onSlotchange:this.onSlotChange.bind(this)}))}onSlotChange(){this.formElements=Array.from(this.hostElement.querySelectorAll("cat-input, cat-textarea, cat-select, cat-datepicker"));this.onRequiredMarkerChanged(this.requiredMarker);this.onHorizontalChanged(this.horizontal)}calculate(t){const e=t.filter((t=>!t.required)).length;const r=t.length-e;return r>=e?"optional":"required"}get hostElement(){return i(this)}static get watchers(){return{requiredMarker:["onRequiredMarkerChanged"],horizontal:["onHorizontalChanged"]}}};wa.style=xa;const ka=":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 za=class{constructor(e){t(this,e);this.icon=undefined;this.iconSrc=undefined;this.size="m";this.a11yLabel=undefined}render(){return e("span",{innerHTML:this.iconSrc||(this.icon?M.getIcon(this.icon):""),"aria-label":this.a11yLabel,"aria-hidden":this.a11yLabel?null:"true",part:"icon",class:{icon:true,[`icon-${this.size}`]:this.size!=="inline"}})}};za.style=ka;function Ia(t){return t!=null&&`${t}`!=="false"}function $a(t,e=0){return Ca(t)?Number(t):e}function Ca(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}const Ma='.hint-wrapper{flex:0 1 auto;display:flex;gap:0.5rem}.hint-section{flex:1 1 auto;display:flex;flex-direction:column;gap:0.25rem;color:rgb(var(--cat-font-color-muted, 81, 92, 108));font-size:0.875rem;line-height:1.125rem}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){margin:0 !important}.cat-bg-primary{background-color:rgb(var(--cat-primary-bg, 0, 129, 148)) !important;color:rgb(var(--cat-primary-fill, 255, 255, 255)) !important;--cat-primary-text:cat-token("color.theme.primary.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.primary.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.primary.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-bg-primary-hover{transition:background-color 125ms, color 125ms}.cat-bg-primary-hover:hover{background-color:rgb(var(--cat-primary-bg-hover, 1, 115, 132)) !important;color:rgb(var(--cat-primary-fill-hover, 255, 255, 255)) !important;--cat-primary-text:cat-token("color.theme.primary.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.primary.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.primary.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-text-primary,.cat-link-primary{color:rgb(var(--cat-primary-text, 0, 129, 148)) !important}.cat-link-primary,.cat-text-primary-hover{transition:color 125ms}.cat-link-primary:hover,.cat-text-primary-hover:hover{color:rgb(var(--cat-primary-text-hover, 1, 115, 132)) !important}.cat-link-primary:active,.cat-text-primary-hover:active{color:rgb(var(--cat-primary-text-active, 2, 99, 113)) !important}.cat-bg-primaryInverted{background-color:#93b4f2 !important;color:black !important;--cat-primary-text:cat-token("color.theme.primaryInverted.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.primaryInverted.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.primaryInverted.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-bg-primaryInverted-hover{transition:background-color 125ms, color 125ms}.cat-bg-primaryInverted-hover:hover{background-color:#93b4f2 !important;color:black !important;--cat-primary-text:cat-token("color.theme.primaryInverted.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.primaryInverted.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.primaryInverted.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-text-primaryInverted,.cat-link-primaryInverted{color:#93b4f2 !important}.cat-link-primaryInverted,.cat-text-primaryInverted-hover{transition:color 125ms}.cat-link-primaryInverted:hover,.cat-text-primaryInverted-hover:hover{color:#93b4f2 !important}.cat-link-primaryInverted:active,.cat-text-primaryInverted-hover:active{color:#93b4f2 !important}.cat-bg-secondary{background-color:rgb(var(--cat-secondary-bg, 105, 118, 135)) !important;color:rgb(var(--cat-secondary-fill, 255, 255, 255)) !important;--cat-primary-text:cat-token("color.theme.secondary.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.secondary.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.secondary.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-bg-secondary-hover{transition:background-color 125ms, color 125ms}.cat-bg-secondary-hover:hover{background-color:rgb(var(--cat-secondary-bg-hover, 105, 118, 135)) !important;color:rgb(var(--cat-secondary-fill-hover, 255, 255, 255)) !important;--cat-primary-text:cat-token("color.theme.secondary.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.secondary.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.secondary.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-text-secondary,.cat-link-secondary{color:rgb(var(--cat-secondary-text, 0, 0, 0)) !important}.cat-link-secondary,.cat-text-secondary-hover{transition:color 125ms}.cat-link-secondary:hover,.cat-text-secondary-hover:hover{color:rgb(var(--cat-secondary-text-hover, 0, 0, 0)) !important}.cat-link-secondary:active,.cat-text-secondary-hover:active{color:rgb(var(--cat-secondary-text-active, 0, 0, 0)) !important}.cat-bg-secondaryInverted{background-color:#697687 !important;color:black !important;--cat-primary-text:cat-token("color.theme.secondaryInverted.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.secondaryInverted.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.secondaryInverted.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-bg-secondaryInverted-hover{transition:background-color 125ms, color 125ms}.cat-bg-secondaryInverted-hover:hover{background-color:#697687 !important;color:black !important;--cat-primary-text:cat-token("color.theme.secondaryInverted.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.secondaryInverted.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.secondaryInverted.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-text-secondaryInverted,.cat-link-secondaryInverted{color:white !important}.cat-link-secondaryInverted,.cat-text-secondaryInverted-hover{transition:color 125ms}.cat-link-secondaryInverted:hover,.cat-text-secondaryInverted-hover:hover{color:white !important}.cat-link-secondaryInverted:active,.cat-text-secondaryInverted-hover:active{color:white !important}.cat-bg-info{background-color:rgb(var(--cat-success-bg, 0, 115, 230)) !important;color:rgb(var(--cat-success-fill, 255, 255, 255)) !important;--cat-primary-text:cat-token("color.theme.info.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.info.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.info.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-bg-info-hover{transition:background-color 125ms, color 125ms}.cat-bg-info-hover:hover{background-color:rgb(var(--cat-success-bg-hover, 0, 107, 227)) !important;color:rgb(var(--cat-success-fill-hover, 255, 255, 255)) !important;--cat-primary-text:cat-token("color.theme.info.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.info.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.info.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-text-info,.cat-link-info{color:rgb(var(--cat-success-text, 0, 115, 230)) !important}.cat-link-info,.cat-text-info-hover{transition:color 125ms}.cat-link-info:hover,.cat-text-info-hover:hover{color:rgb(var(--cat-success-text-hover, 0, 107, 227)) !important}.cat-link-info:active,.cat-text-info-hover:active{color:rgb(var(--cat-success-text-active, 0, 96, 223)) !important}.cat-bg-success{background-color:rgb(var(--cat-success-bg, 0, 132, 88)) !important;color:rgb(var(--cat-success-fill, 255, 255, 255)) !important;--cat-primary-text:cat-token("color.theme.success.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.success.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.success.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-bg-success-hover{transition:background-color 125ms, color 125ms}.cat-bg-success-hover:hover{background-color:rgb(var(--cat-success-bg-hover, 0, 117, 78)) !important;color:rgb(var(--cat-success-fill-hover, 255, 255, 255)) !important;--cat-primary-text:cat-token("color.theme.success.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.success.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.success.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-text-success,.cat-link-success{color:rgb(var(--cat-success-text, 0, 132, 88)) !important}.cat-link-success,.cat-text-success-hover{transition:color 125ms}.cat-link-success:hover,.cat-text-success-hover:hover{color:rgb(var(--cat-success-text-hover, 0, 117, 78)) !important}.cat-link-success:active,.cat-text-success-hover:active{color:rgb(var(--cat-success-text-active, 0, 105, 70)) !important}.cat-bg-warning{background-color:rgb(var(--cat-warning-bg, 255, 206, 128)) !important;color:rgb(var(--cat-warning-fill, 0, 0, 0)) !important;--cat-primary-text:cat-token("color.theme.warning.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.warning.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.warning.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-bg-warning-hover{transition:background-color 125ms, color 125ms}.cat-bg-warning-hover:hover{background-color:rgb(var(--cat-warning-bg-hover, 255, 214, 148)) !important;color:rgb(var(--cat-warning-fill-hover, 0, 0, 0)) !important;--cat-primary-text:cat-token("color.theme.warning.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.warning.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.warning.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-text-warning,.cat-link-warning{color:rgb(var(--cat-warning-text, 159, 97, 0)) !important}.cat-link-warning,.cat-text-warning-hover{transition:color 125ms}.cat-link-warning:hover,.cat-text-warning-hover:hover{color:rgb(var(--cat-warning-text-hover, 159, 97, 0)) !important}.cat-link-warning:active,.cat-text-warning-hover:active{color:rgb(var(--cat-warning-text-active, 159, 97, 0)) !important}.cat-bg-danger{background-color:rgb(var(--cat-danger-bg, 217, 52, 13)) !important;color:rgb(var(--cat-danger-fill, 255, 255, 255)) !important;--cat-primary-text:cat-token("color.theme.danger.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.danger.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.danger.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-bg-danger-hover{transition:background-color 125ms, color 125ms}.cat-bg-danger-hover:hover{background-color:rgb(var(--cat-danger-bg-hover, 194, 46, 11)) !important;color:rgb(var(--cat-danger-fill-hover, 255, 255, 255)) !important;--cat-primary-text:cat-token("color.theme.danger.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.danger.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.danger.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-text-danger,.cat-link-danger{color:rgb(var(--cat-danger-text, 217, 52, 13)) !important}.cat-link-danger,.cat-text-danger-hover{transition:color 125ms}.cat-link-danger:hover,.cat-text-danger-hover:hover{color:rgb(var(--cat-danger-text-hover, 194, 46, 11)) !important}.cat-link-danger:active,.cat-text-danger-hover:active{color:rgb(var(--cat-danger-text-active, 174, 42, 10)) !important}.cat-active{color:rgb(var(--cat-primary-text, 0, 129, 148)) !important}.cat-text-active{color:rgb(var(--cat-primary-text, 0, 129, 148)) !important}.cat-muted{color:rgb(var(--cat-font-color-muted, 81, 92, 108)) !important}.cat-text-muted{color:rgb(var(--cat-font-color-muted, 81, 92, 108)) !important}.cat-bg-muted{background-color:#f2f4f7 !important}.cat-text-reset{color:inherit !important}.cat-link-reset{color:inherit !important;text-decoration:inherit !important}.label{overflow:hidden;word-wrap:break-word;word-break:break-word}.input-field:not(.input-horizontal) .label-container.hidden,.textarea-field:not(.textarea-horizontal) .label-container.hidden,.select-field:not(.select-horizontal) .label-container.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}.label-container{flex-basis:var(--label-size, 33.33%)}.label-container .label-wrapper{display:flex;gap:0.25rem}.label-metadata{display:flex;flex-shrink:0;flex-grow:1;justify-content:space-between;gap:0.25rem;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}.label-optional,.label-character-count{display:inline-flex;align-items:center;max-height:1.25rem;font-size:0.75rem;line-height:1rem}.label-character-count{margin-left:auto}.input-horizontal .label-container.hidden label,.textarea-horizontal .label-container.hidden label,.select-horizontal .label-container.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}.input-horizontal .label-wrapper,.textarea-horizontal .label-wrapper,.select-horizontal .label-wrapper{flex-direction:column}.input-horizontal label,.textarea-horizontal label,.select-horizontal label{min-height:2.5rem;display:inline-flex;align-items:center}.input-horizontal .label-metadata,.textarea-horizontal .label-metadata,.select-horizontal .label-metadata{justify-content:flex-start}.input-horizontal .label-metadata .label-character-count,.textarea-horizontal .label-metadata .label-character-count,.select-horizontal .label-metadata .label-character-count{margin-left:0}:host{display:flex;font-size:0.9375rem;line-height:1.25rem}:host([hidden]){display:none}.input-field,.input-container{display:flex;flex-direction:column;gap:0.5rem;flex:1 1 auto}.input-field.input-horizontal{flex-direction:row;gap:1rem}.input-wrapper{display:flex;align-items:stretch;gap:0.75rem;padding:0 0.75rem;height:2.5rem;overflow:hidden;background:white;border-radius:var(--cat-border-radius-m, 0.25rem);box-shadow:inset 0 0 0 1px rgb(var(--border-color));transition:box-shadow 125ms linear;--border-color:var(--cat-border-color-dark, 215, 219, 224);}.input-wrapper.input-round{border-radius:10rem}.input-wrapper.input-readonly{pointer-events:none}.input-wrapper.input-disabled{background:#f2f4f7;cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}.input-wrapper:not(.input-disabled):hover{box-shadow:inset 0 0 0 1px rgb(var(--border-color)), 0 0 0 1px rgb(var(--border-color))}.input-wrapper:focus-within{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:-1px}.input-wrapper.input-invalid{--border-color:var(--cat-danger-bg, 217, 52, 13), 0.2}.input-wrapper:has(input:-webkit-autofill),.input-wrapper:has(input:-webkit-autofill):hover,.input-wrapper:has(input:-webkit-autofill):focus{background-color:#e8f0fe}.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 rgb(var(--cat-border-color-dark, 215, 219, 224));padding-right:0.75rem}.text-suffix{border-left:1px solid rgb(var(--cat-border-color-dark, 215, 219, 224));padding-left:0.75rem}.icon-prefix,.icon-suffix{align-self:center}.input-inner-wrapper{display:flex;align-items:center;position:relative;flex:1 1 auto}input{font:inherit;margin:0;padding:0;width:100%;min-width:0;border:none;outline:none;background:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.input-disabled input{cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}input.has-clearable,input.has-toggle-password{padding-right:1.5rem}input.has-clearable.has-toggle-password{padding-right:3.5rem}input::placeholder{color:rgb(var(--cat-font-color-muted, 81, 92, 108))}input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus{-webkit-box-shadow:0 0 0 9999px #e8f0fe inset}.clearable{position:absolute;top:calc(50% - 1rem);right:-0.5rem}.toggle-password{position:absolute;top:calc(50% - 1rem);right:-0.5rem}.has-clearable~.toggle-password{right:1.5rem}';let Da=0;const Aa=class{constructor(e){t(this,e);this.catChange=a(this,"catChange",7);this.catFocus=a(this,"catFocus",7);this.catBlur=a(this,"catBlur",7);this._id=`cat-input-${Da++}`;this.hasSlottedLabel=false;this.hasSlottedHint=false;this.isPasswordShown=false;this.errorMap=undefined;this.requiredMarker="optional";this.horizontal=false;this.autoComplete=undefined;this.clearable=false;this.togglePassword=false;this.disabled=false;this.hint=undefined;this.icon=undefined;this.iconRight=false;this.identifier=undefined;this.label="";this.labelHidden=false;this.max=undefined;this.maxLength=undefined;this.min=undefined;this.minLength=undefined;this.name=undefined;this.placeholder=undefined;this.textPrefix=undefined;this.textSuffix=undefined;this.readonly=false;this.required=false;this.round=false;this.type="text";this.value=undefined;this.errors=undefined;this.errorUpdate=0;this.nativeAttributes=undefined}get id(){return this.identifier||this._id}componentWillRender(){this.onErrorsChanged(this.errors);this.hasSlottedLabel=!!this.hostElement.querySelector('[slot="label"]');this.hasSlottedHint=!!this.hostElement.querySelector('[slot="hint"]');if(!this.label&&!this.hasSlottedLabel){z.warn("[A11y] Missing ARIA label on input",this)}}async doFocus(t){const e=this.input.type==="hidden"?this.findSiblingInput(this.input.nextSibling):this.input;e?.focus(t)}async doBlur(){this.input.blur()}async clear(){this.value="";this.catChange.emit(this.value)}onErrorsChanged(t){if(!Ia(this.errorUpdate)){this.errorMap=undefined}else{this.errorMapSrc=Array.isArray(t)?t.reduce(((t,e)=>({...t,[e]:undefined})),{}):t===true?{}:t||undefined;this.showErrorsIfTimeout()||this.showErrorsIfNoFocus()}}render(){return e("div",{class:{"input-field":true,"input-horizontal":this.horizontal}},e("div",{class:{"label-container":true,hidden:this.labelHidden}},(this.hasSlottedLabel||this.label)&&e("label",{htmlFor:this.id,part:"label"},e("span",{class:"label-wrapper"},this.hasSlottedLabel&&e("slot",{name:"label"})||this.label,e("div",{class:"label-metadata"},!this.required&&(this.requiredMarker??"optional").startsWith("optional")&&e("span",{class:"label-optional","aria-hidden":"true"},"(",I.t("input.optional"),")"),this.required&&this.requiredMarker?.startsWith("required")&&e("span",{class:"label-optional","aria-hidden":"true"},"(",I.t("input.required"),")"),this.maxLength&&e("div",{class:"label-character-count","aria-hidden":"true"},this.value?.toString().length??0,"/",this.maxLength))))),e("div",{class:"input-container"},e("div",{class:{"input-wrapper":true,"input-round":this.round,"input-readonly":this.readonly,"input-disabled":this.disabled,"input-invalid":this.invalid},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",onClick:()=>this.doFocus()}),e("div",{class:"input-inner-wrapper"},e("input",{...this.nativeAttributes,part:"input",ref:t=>this.input=t,id:this.id,class:{"has-clearable":this.clearable&&!this.disabled&&!this.readonly&&!!this.value,"has-toggle-password":this.togglePassword&&!this.disabled&&!this.readonly&&!!this.value},autocomplete:this.autoComplete,disabled:this.disabled,max:this.max,maxlength:this.maxLength,min:this.min,minlength:this.minLength,name:this.name,placeholder:this.placeholder,readonly:this.readonly,required:this.required,type:this.isPasswordShown?"text":this.type,value:this.value,onInput:this.onInput.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlur.bind(this),"aria-invalid":this.invalid?"true":undefined,"aria-describedby":this.hasHint?this.id+"-hint":undefined}),this.clearable&&!this.disabled&&!this.readonly&&this.value&&e("cat-button",{class:"clearable",icon:"$cat:input-close","icon-only":"true",size:"s",variant:"text","a11y-label":I.t("input.clear"),onClick:this.clear.bind(this),"data-dropdown-no-close":true}),this.togglePassword&&!this.disabled&&!this.readonly&&this.value&&e("cat-button",{class:"toggle-password",icon:this.isPasswordShown?"$cat:input-password-hide":"$cat:input-password-show","icon-only":"true",size:"s",variant:"text","a11y-label":I.t(this.isPasswordShown?"input.hidePassword":"input.showPassword"),onClick:this.doTogglePassword.bind(this)})),!this.invalid&&this.icon&&this.iconRight&&e("cat-icon",{icon:this.icon,class:"icon-suffix",size:"l",onClick:()=>this.doFocus()}),this.invalid&&e("cat-icon",{icon:"$cat:input-error",class:"icon-suffix cat-text-danger",size:"l"}),this.textSuffix&&e("span",{class:"text-suffix",part:"suffix"},this.textSuffix)),this.hasHint&&e(te,{id:this.id,hint:this.hint,slottedHint:this.hasSlottedHint&&e("slot",{name:"hint"}),errorMap:this.errorMap})))}get hasHint(){return!!this.hint||!!this.hasSlottedHint||this.invalid}get invalid(){return!!Object.keys(this.errorMap||{}).length}onInput(){this.value=this.input.value;this.catChange.emit(this.value);this.showErrorsIfTimeout()}onFocus(t){this.catFocus.emit(t)}onBlur(t){this.catBlur.emit(t);if(Ia(this.errorUpdate)){this.showErrors()}}doTogglePassword(){this.isPasswordShown=!this.isPasswordShown}showErrors(){this.errorMap=this.errorMapSrc}showErrorsIfTimeout(){const t=$a(this.errorUpdate,null);if(t!==null){typeof this.errorUpdateTimeoutId==="number"&&window.clearTimeout(this.errorUpdateTimeoutId);this.errorUpdateTimeoutId=window.setTimeout((()=>this.showErrors()),t);return true}return false}showErrorsIfNoFocus(){const t=document.activeElement===this.hostElement||document.activeElement===this.input;if(!t){this.showErrors()}}findSiblingInput(t){if(t instanceof HTMLInputElement){return t}else if(t?.nextSibling){return this.findSiblingInput(t.nextSibling)}return undefined}get hostElement(){return i(this)}static get watchers(){return{errors:["onErrorsChanged"]}}};Aa.style=Ma;const Sa=":host{display:inline-block}:host([hidden]){display:none}ol{display:flex;flex-wrap:wrap;list-style:none;margin:0;padding:0}li{display:inline-flex;justify-content:center}li.dots{-webkit-user-select:none;-ms-user-select:none;user-select:none;}:host([variant=outlined]) ol{gap:0.75rem}.cat-pagination-xs li.dots,.cat-pagination-xs li.text{height:1.5rem;line-height:1.5rem;font-size:0.875rem}.cat-pagination-xs li.dots{width:1.5rem}:host([variant=outlined]) .cat-pagination-xs{gap:0.375rem}.cat-pagination-s li.dots,.cat-pagination-s li.text{height:2rem;line-height:2rem;font-size:0.9375rem}.cat-pagination-s li.dots{width:2rem}:host([variant=outlined]) .cat-pagination-s{gap:0.5rem}.cat-pagination-m li.dots,.cat-pagination-m li.text{height:2.5rem;line-height:2.5rem;font-size:0.9375rem}.cat-pagination-m li.dots{width:2.5rem}:host([variant=outlined]) .cat-pagination-m{gap:0.625rem}.cat-pagination-l li.dots,.cat-pagination-l li.text{height:3rem;line-height:3rem;font-size:0.9375rem}.cat-pagination-l li.dots{width:3rem}:host([variant=outlined]) .cat-pagination-l{gap:0.75rem}.cat-pagination-xl li.dots,.cat-pagination-xl li.text{height:3.5rem;line-height:3.5rem;font-size:1.125rem}.cat-pagination-xl li.dots{width:3.5rem}:host([variant=outlined]) .cat-pagination-xl{gap:0.875rem}";const Ra=class{constructor(e){t(this,e);this.catChange=a(this,"catChange",7);this.page=0;this.pageCount=1;this.activePadding=1;this.sidePadding=1;this.size="m";this.variant="text";this.round=false;this.compact=false;this.iconPrev="$cat:pagination-left";this.iconNext="$cat:pagination-right"}render(){return e("nav",{role:"navigation"},e("ol",{class:{[`cat-pagination-${this.size}`]:Boolean(this.size)}},e("li",null,e("cat-button",{variant:this.variant,size:this.size,round:this.round,disabled:this.isFirst,a11yLabel:I.t("pagination.prev"),icon:this.iconPrev,iconOnly:true,onClick:()=>this.setPage(this.page-1)})),this.content,e("li",null,e("cat-button",{variant:this.variant,size:this.size,round:this.round,disabled:this.isLast,a11yLabel:I.t("pagination.next"),icon:this.iconNext,iconOnly:true,onClick:()=>this.setPage(this.page+1)}))))}get isFirst(){return this.page===0}get isLast(){return this.page===this.pageCount-1}setPage(t){this.page=t;this.catChange.emit(this.page)}get pages(){if(!this.sidePadding&&!this.activePadding){return[this.page]}const t=new Set;const e=this.page<=this.sidePadding+this.activePadding+1;const r=e?this.sidePadding+2*this.activePadding+2:this.sidePadding;const i=this.page>=this.pageCount-this.sidePadding-this.activePadding-2;const a=i?this.pageCount-this.sidePadding-2*this.activePadding-2:this.pageCount-this.sidePadding;this.addSeq(t,0,r);if(!e&&!i){this.addSeq(t,this.page-this.activePadding,this.page+this.activePadding+1)}this.addSeq(t,a,this.pageCount);return[...t]}addSeq(t,e,r){const i=this.clamp(e,0,this.pageCount);const a=this.clamp(r,0,this.pageCount);Array(a-i).fill(0).forEach(((e,r)=>t.add(i+r)))}clamp(t,e,r){return Math.min(Math.max(t,e),r)}get content(){if(this.compact){return e("li",{class:"text"},this.page+1,"/",this.pageCount)}return this.pages.map(((t,r)=>[r>0&&this.pages[r-1]!==t-1?e("li",{class:"dots"},"…"):null,e("li",null,e("cat-button",{variant:this.variant,size:this.size,round:this.round,color:this.page===t?"primary":undefined,active:this.page===t,a11yLabel:I.t("pagination.page",{page:t+1}),a11yCurrent:this.page===t?"step":undefined,onClick:()=>this.setPage(t)},t+1))]))}};Ra.style=Sa;const Ta=".hint-wrapper{flex:0 1 auto;display:flex;gap:0.5rem}.hint-section{flex:1 1 auto;display:flex;flex-direction:column;gap:0.25rem;color:rgb(var(--cat-font-color-muted, 81, 92, 108));font-size:0.875rem;line-height:1.125rem}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){margin:0 !important}:host{display:flex;flex-direction:column;gap:0.5rem}: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-placeholder{width:calc(1.25rem + 1px);flex-shrink:0}.circle{position:absolute;width:0.75rem;height:0.75rem;background-color:rgb(var(--cat-primary-bg, 0, 129, 148));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 rgb(var(--cat-border-color-dark, 215, 219, 224));border-radius:10rem;cursor:inherit}input:checked{border-color:rgb(var(--cat-primary-bg, 0, 129, 148))}input:checked+.circle{visibility:visible}input:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}:host(.cat-error) input{border-color:rgb(var(--cat-danger-bg, 217, 52, 13))}:host(.cat-error) .circle{background-color:rgb(var(--cat-danger-bg, 217, 52, 13))}.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, 81, 92, 108))}.is-disabled input{background-color:#f2f4f7}.is-disabled input:checked{border-color:rgb(var(--cat-border-color-dark, 215, 219, 224))}.is-disabled .circle{background-color:rgb(var(--cat-border-color-dark, 215, 219, 224))}";let Fa=0;const Ea=class{constructor(e){t(this,e);this.catChange=a(this,"catChange",7);this.catFocus=a(this,"catFocus",7);this.catBlur=a(this,"catBlur",7);this._id=`cat-radio-${++Fa}`;this.hasSlottedLabel=false;this.hasSlottedHint=false;this.checked=false;this.disabled=false;this.identifier=undefined;this.label="";this.labelHidden=false;this.name=undefined;this.required=false;this.value="";this.hint=undefined;this.labelLeft=false;this.nativeAttributes=undefined}get id(){return this.identifier||this._id}componentWillRender(){this.hasSlottedLabel=!!this.hostElement.querySelector('[slot="label"]');this.hasSlottedHint=!!this.hostElement.querySelector('[slot="hint"]');if(!this.label&&!this.hasSlottedLabel){z.warn("[A11y] Missing ARIA label on radio",this)}}async doFocus(t){this.input.focus(t)}async doBlur(){this.input.blur()}render(){return e(r,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",{...this.nativeAttributes,part:"input",ref:t=>this.input=t,id:this.identifier||this.id,type:"radio",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),"aria-describedby":this.hasHint?this.id+"-hint":undefined}),e("span",{class:"circle"})),e("span",{class:"label",part:"label"},this.hasSlottedLabel&&e("slot",{name:"label"})||this.label)),this.hasHint&&e("div",{class:{"hint-wrapper":true,"label-left":this.labelLeft}},e("div",{class:"circle-placeholder"}),e(te,{id:this.id,hint:this.hint,slottedHint:this.hasSlottedHint&&e("slot",{name:"hint"})})))}get hasHint(){return!!this.hint||!!this.hasSlottedHint}onInput(){this.checked=true;this.catChange.emit(this.value)}onFocus(t){this.catFocus.emit(t)}onBlur(t){this.catBlur.emit(t)}get hostElement(){return i(this)}};Ea.style=Ta;const Ba=":host{display:block}:host([hidden]){display:none}";const Oa=class{constructor(e){t(this,e);this.catChange=a(this,"catChange",7);this.catFocus=a(this,"catFocus",7);this.catBlur=a(this,"catBlur",7);this.catRadioGroup=[];this.name=undefined;this.value=undefined;this.disabled=false;this.a11yLabel=undefined;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=>e.disabled=e.disabled||t))}onLabelLeftChanged(t){this.catRadioGroup.forEach((e=>e.labelLeft=e.labelLeft||t))}componentDidLoad(){this.init();this.mutationObserver=new MutationObserver((t=>t.some((t=>t.target.nodeName==="CAT-RADIO"))&&this.init()));this.mutationObserver?.observe(this.hostElement,{childList:true,attributes:true,subtree:true})}disconnectedCallback(){this.mutationObserver?.disconnect()}onKeydown(t){if(["ArrowDown","ArrowUp","ArrowRight","ArrowLeft"].includes(t.key)&&this.catRadioGroup.length){const e=this.catRadioGroup.filter((t=>!t.disabled));const r=document.activeElement;const i=this.catRadioGroup.findIndex((t=>t===r));const a=["ArrowDown","ArrowRight"].includes(t.key)?1:-1;const n=i<0?0:(i+a+e.length)%e.length;e[n].doFocus();e[n].shadowRoot?.querySelector("input")?.click();this.updateTabIndex();t.preventDefault()}}onInput(t){const e=this.catRadioGroup.find((e=>e===t.target));if(e?.localName==="cat-radio"){this.value=e?.checked?e?.value:undefined;this.catChange.emit(this.value)}}onFocus(t){if(!t.relatedTarget){this.catBlur.emit(t)}}onBlur(t){if(!t.relatedTarget){this.catBlur.emit(t)}}render(){return e("div",{role:"radiogroup","aria-label":this.a11yLabel},e("slot",null))}init(){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)}updateTabIndex(){if(this.catRadioGroup.length){this.catRadioGroup.forEach((t=>t.shadowRoot?.querySelector("input")?.setAttribute("tabindex","-1")));const t=this.catRadioGroup.findIndex((t=>t.checked));this.catRadioGroup[t>=0?t:0].shadowRoot?.querySelector("input")?.setAttribute("tabindex","0")}}get hostElement(){return i(this)}static get watchers(){return{name:["onNameChanged"],value:["onValueChanged"],disabled:["onDisabledChanged"],labelLeft:["onLabelLeftChanged"]}}};Oa.style=Ba;const La=":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;inset:0;pointer-events:none}.scrollable-wrapper.cat-scrollable-top .shadow-top,.scrollable-wrapper.cat-scrollable-bottom .shadow-bottom,.scrollable-wrapper.cat-scrollable-left .shadow-left,.scrollable-wrapper.cat-scrollable-right .shadow-right{box-shadow:0 0 4px 1px rgba(16, 29, 48, 0.2)}.scrollable-content{width:100%;overflow:hidden}.scrollable-content.scroll-x{overflow-x:auto}.scrollable-content.scroll-y{overflow-y:auto}.scrollable-content.no-overscroll{overscroll-behavior:contain}";const Na=class{constructor(e){t(this,e);this.scrolledTop=a(this,"scrolledTop",7);this.scrolledLeft=a(this,"scrolledLeft",7);this.scrolledRight=a(this,"scrolledRight",7);this.scrolledBottom=a(this,"scrolledBottom",7);this.init=new S;this.destroyed=new S;this.resizedEntries=new S;this.resizedObserver=new ResizeObserver((t=>this.resizedEntries.next(t)));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=et(this.scrollElement,"scroll").pipe(Dt(this.destroyed));this.resizedObserver.observe(this.scrollElement)}if(this.scrollWrapperElement){this.resizedObserver.observe(this.scrollWrapperElement)}this.attachEmitter("left",this.scrolledLeft);this.attachEmitter("right",this.scrolledRight);this.attachEmitter("bottom",this.scrolledBottom);this.attachEmitter("top",this.scrolledTop);st(this.init,this.scrolled,this.resizedEntries).pipe(dt(Na.THROTTLE),_((()=>({top:this.getScrollOffset("top")>0,left:this.getScrollOffset("left")>0,right:this.getScrollOffset("right")>0,bottom:this.getScrollOffset("bottom")>0}))),xt(),Dt(this.destroyed)).subscribe((({top:t,left:e,right:r,bottom:i})=>{this.toggleClass("cat-scrollable-top",t);this.toggleClass("cat-scrollable-left",e);this.toggleClass("cat-scrollable-right",r);this.toggleClass("cat-scrollable-bottom",i)}))}componentDidLoad(){if(!this.noScrolledInit){this.init.next()}}disconnectedCallback(){this.init.complete();this.destroyed.next();this.destroyed.complete();this.resizedObserver.disconnect()}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){st(this.init,this.scrolled,this.resizedEntries).pipe(dt(Na.THROTTLE),_((()=>this.getScrollOffset(t))),_((t=>t<=this.scrolledBuffer)),xt(),lt((t=>t)),Dt(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){if(e){this.scrollWrapperElement?.classList.add(t)}else{this.scrollWrapperElement?.classList.remove(t)}}};Na.THROTTLE=50;Na.style=La;var ja="__autosizeInputGhost";var Pa={" ":"nbsp","<":"lt",">":"gt"};function Wa(t){return"&"+Pa[t]+";"}function Ha(t){return t.replace(/\s|<|>/g,Wa)}function _a(){var t=document.createElement("div");t.id=ja;t.style.cssText="display:inline-block;height:0;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:nowrap;";document.body.appendChild(t);return t}var Ua=function(t,e){var r=window.getComputedStyle(t);var i="box-sizing:"+r.boxSizing+";border-left:"+r.borderLeftWidth+" solid red"+";border-right:"+r.borderRightWidth+" solid red"+";font-family:"+r.fontFamily+";font-feature-settings:"+r.fontFeatureSettings+";font-kerning:"+r.fontKerning+";font-size:"+r.fontSize+";font-stretch:"+r.fontStretch+";font-style:"+r.fontStyle+";font-variant:"+r.fontVariant+";font-variant-caps:"+r.fontVariantCaps+";font-variant-ligatures:"+r.fontVariantLigatures+";font-variant-numeric:"+r.fontVariantNumeric+";font-weight:"+r.fontWeight+";letter-spacing:"+r.letterSpacing+";margin-left:"+r.marginLeft+";margin-right:"+r.marginRight+";padding-left:"+r.paddingLeft+";padding-right:"+r.paddingRight+";text-indent:"+r.textIndent+";text-transform:"+r.textTransform;function a(){var e=t.value||t.getAttribute("placeholder")||"";var r=document.getElementById(ja)||_a();r.style.cssText+=i;r.innerHTML=Ha(e);var a=window.getComputedStyle(r).width;t.style.width=a;return a}t.addEventListener("input",a);var n=a();if(e&&e.minWidth&&n!=="0px"){t.style.minWidth=n}return function(){t.removeEventListener("input",a);var e=document.getElementById(ja);if(e){e.parentNode.removeChild(e)}}};const Ka='.hint-wrapper{flex:0 1 auto;display:flex;gap:0.5rem}.hint-section{flex:1 1 auto;display:flex;flex-direction:column;gap:0.25rem;color:rgb(var(--cat-font-color-muted, 81, 92, 108));font-size:0.875rem;line-height:1.125rem}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){margin:0 !important}.cat-bg-primary{background-color:rgb(var(--cat-primary-bg, 0, 129, 148)) !important;color:rgb(var(--cat-primary-fill, 255, 255, 255)) !important;--cat-primary-text:cat-token("color.theme.primary.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.primary.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.primary.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-bg-primary-hover{transition:background-color 125ms, color 125ms}.cat-bg-primary-hover:hover{background-color:rgb(var(--cat-primary-bg-hover, 1, 115, 132)) !important;color:rgb(var(--cat-primary-fill-hover, 255, 255, 255)) !important;--cat-primary-text:cat-token("color.theme.primary.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.primary.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.primary.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-text-primary,.cat-link-primary{color:rgb(var(--cat-primary-text, 0, 129, 148)) !important}.cat-link-primary,.cat-text-primary-hover{transition:color 125ms}.cat-link-primary:hover,.cat-text-primary-hover:hover{color:rgb(var(--cat-primary-text-hover, 1, 115, 132)) !important}.cat-link-primary:active,.cat-text-primary-hover:active{color:rgb(var(--cat-primary-text-active, 2, 99, 113)) !important}.cat-bg-primaryInverted{background-color:#93b4f2 !important;color:black !important;--cat-primary-text:cat-token("color.theme.primaryInverted.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.primaryInverted.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.primaryInverted.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-bg-primaryInverted-hover{transition:background-color 125ms, color 125ms}.cat-bg-primaryInverted-hover:hover{background-color:#93b4f2 !important;color:black !important;--cat-primary-text:cat-token("color.theme.primaryInverted.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.primaryInverted.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.primaryInverted.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-text-primaryInverted,.cat-link-primaryInverted{color:#93b4f2 !important}.cat-link-primaryInverted,.cat-text-primaryInverted-hover{transition:color 125ms}.cat-link-primaryInverted:hover,.cat-text-primaryInverted-hover:hover{color:#93b4f2 !important}.cat-link-primaryInverted:active,.cat-text-primaryInverted-hover:active{color:#93b4f2 !important}.cat-bg-secondary{background-color:rgb(var(--cat-secondary-bg, 105, 118, 135)) !important;color:rgb(var(--cat-secondary-fill, 255, 255, 255)) !important;--cat-primary-text:cat-token("color.theme.secondary.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.secondary.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.secondary.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-bg-secondary-hover{transition:background-color 125ms, color 125ms}.cat-bg-secondary-hover:hover{background-color:rgb(var(--cat-secondary-bg-hover, 105, 118, 135)) !important;color:rgb(var(--cat-secondary-fill-hover, 255, 255, 255)) !important;--cat-primary-text:cat-token("color.theme.secondary.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.secondary.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.secondary.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-text-secondary,.cat-link-secondary{color:rgb(var(--cat-secondary-text, 0, 0, 0)) !important}.cat-link-secondary,.cat-text-secondary-hover{transition:color 125ms}.cat-link-secondary:hover,.cat-text-secondary-hover:hover{color:rgb(var(--cat-secondary-text-hover, 0, 0, 0)) !important}.cat-link-secondary:active,.cat-text-secondary-hover:active{color:rgb(var(--cat-secondary-text-active, 0, 0, 0)) !important}.cat-bg-secondaryInverted{background-color:#697687 !important;color:black !important;--cat-primary-text:cat-token("color.theme.secondaryInverted.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.secondaryInverted.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.secondaryInverted.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-bg-secondaryInverted-hover{transition:background-color 125ms, color 125ms}.cat-bg-secondaryInverted-hover:hover{background-color:#697687 !important;color:black !important;--cat-primary-text:cat-token("color.theme.secondaryInverted.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.secondaryInverted.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.secondaryInverted.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-text-secondaryInverted,.cat-link-secondaryInverted{color:white !important}.cat-link-secondaryInverted,.cat-text-secondaryInverted-hover{transition:color 125ms}.cat-link-secondaryInverted:hover,.cat-text-secondaryInverted-hover:hover{color:white !important}.cat-link-secondaryInverted:active,.cat-text-secondaryInverted-hover:active{color:white !important}.cat-bg-info{background-color:rgb(var(--cat-success-bg, 0, 115, 230)) !important;color:rgb(var(--cat-success-fill, 255, 255, 255)) !important;--cat-primary-text:cat-token("color.theme.info.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.info.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.info.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-bg-info-hover{transition:background-color 125ms, color 125ms}.cat-bg-info-hover:hover{background-color:rgb(var(--cat-success-bg-hover, 0, 107, 227)) !important;color:rgb(var(--cat-success-fill-hover, 255, 255, 255)) !important;--cat-primary-text:cat-token("color.theme.info.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.info.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.info.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-text-info,.cat-link-info{color:rgb(var(--cat-success-text, 0, 115, 230)) !important}.cat-link-info,.cat-text-info-hover{transition:color 125ms}.cat-link-info:hover,.cat-text-info-hover:hover{color:rgb(var(--cat-success-text-hover, 0, 107, 227)) !important}.cat-link-info:active,.cat-text-info-hover:active{color:rgb(var(--cat-success-text-active, 0, 96, 223)) !important}.cat-bg-success{background-color:rgb(var(--cat-success-bg, 0, 132, 88)) !important;color:rgb(var(--cat-success-fill, 255, 255, 255)) !important;--cat-primary-text:cat-token("color.theme.success.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.success.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.success.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-bg-success-hover{transition:background-color 125ms, color 125ms}.cat-bg-success-hover:hover{background-color:rgb(var(--cat-success-bg-hover, 0, 117, 78)) !important;color:rgb(var(--cat-success-fill-hover, 255, 255, 255)) !important;--cat-primary-text:cat-token("color.theme.success.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.success.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.success.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-text-success,.cat-link-success{color:rgb(var(--cat-success-text, 0, 132, 88)) !important}.cat-link-success,.cat-text-success-hover{transition:color 125ms}.cat-link-success:hover,.cat-text-success-hover:hover{color:rgb(var(--cat-success-text-hover, 0, 117, 78)) !important}.cat-link-success:active,.cat-text-success-hover:active{color:rgb(var(--cat-success-text-active, 0, 105, 70)) !important}.cat-bg-warning{background-color:rgb(var(--cat-warning-bg, 255, 206, 128)) !important;color:rgb(var(--cat-warning-fill, 0, 0, 0)) !important;--cat-primary-text:cat-token("color.theme.warning.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.warning.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.warning.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-bg-warning-hover{transition:background-color 125ms, color 125ms}.cat-bg-warning-hover:hover{background-color:rgb(var(--cat-warning-bg-hover, 255, 214, 148)) !important;color:rgb(var(--cat-warning-fill-hover, 0, 0, 0)) !important;--cat-primary-text:cat-token("color.theme.warning.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.warning.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.warning.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-text-warning,.cat-link-warning{color:rgb(var(--cat-warning-text, 159, 97, 0)) !important}.cat-link-warning,.cat-text-warning-hover{transition:color 125ms}.cat-link-warning:hover,.cat-text-warning-hover:hover{color:rgb(var(--cat-warning-text-hover, 159, 97, 0)) !important}.cat-link-warning:active,.cat-text-warning-hover:active{color:rgb(var(--cat-warning-text-active, 159, 97, 0)) !important}.cat-bg-danger{background-color:rgb(var(--cat-danger-bg, 217, 52, 13)) !important;color:rgb(var(--cat-danger-fill, 255, 255, 255)) !important;--cat-primary-text:cat-token("color.theme.danger.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.danger.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.danger.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-bg-danger-hover{transition:background-color 125ms, color 125ms}.cat-bg-danger-hover:hover{background-color:rgb(var(--cat-danger-bg-hover, 194, 46, 11)) !important;color:rgb(var(--cat-danger-fill-hover, 255, 255, 255)) !important;--cat-primary-text:cat-token("color.theme.danger.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.danger.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.danger.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-text-danger,.cat-link-danger{color:rgb(var(--cat-danger-text, 217, 52, 13)) !important}.cat-link-danger,.cat-text-danger-hover{transition:color 125ms}.cat-link-danger:hover,.cat-text-danger-hover:hover{color:rgb(var(--cat-danger-text-hover, 194, 46, 11)) !important}.cat-link-danger:active,.cat-text-danger-hover:active{color:rgb(var(--cat-danger-text-active, 174, 42, 10)) !important}.cat-active{color:rgb(var(--cat-primary-text, 0, 129, 148)) !important}.cat-text-active{color:rgb(var(--cat-primary-text, 0, 129, 148)) !important}.cat-muted{color:rgb(var(--cat-font-color-muted, 81, 92, 108)) !important}.cat-text-muted{color:rgb(var(--cat-font-color-muted, 81, 92, 108)) !important}.cat-bg-muted{background-color:#f2f4f7 !important}.cat-text-reset{color:inherit !important}.cat-link-reset{color:inherit !important;text-decoration:inherit !important}.label{overflow:hidden;word-wrap:break-word;word-break:break-word}.input-field:not(.input-horizontal) .label-container.hidden,.textarea-field:not(.textarea-horizontal) .label-container.hidden,.select-field:not(.select-horizontal) .label-container.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}.label-container{flex-basis:var(--label-size, 33.33%)}.label-container .label-wrapper{display:flex;gap:0.25rem}.label-metadata{display:flex;flex-shrink:0;flex-grow:1;justify-content:space-between;gap:0.25rem;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}.label-optional,.label-character-count{display:inline-flex;align-items:center;max-height:1.25rem;font-size:0.75rem;line-height:1rem}.label-character-count{margin-left:auto}.input-horizontal .label-container.hidden label,.textarea-horizontal .label-container.hidden label,.select-horizontal .label-container.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}.input-horizontal .label-wrapper,.textarea-horizontal .label-wrapper,.select-horizontal .label-wrapper{flex-direction:column}.input-horizontal label,.textarea-horizontal label,.select-horizontal label{min-height:2.5rem;display:inline-flex;align-items:center}.input-horizontal .label-metadata,.textarea-horizontal .label-metadata,.select-horizontal .label-metadata{justify-content:flex-start}.input-horizontal .label-metadata .label-character-count,.textarea-horizontal .label-metadata .label-character-count,.select-horizontal .label-metadata .label-character-count{margin-left:0}:host{display:flex;flex-direction:column;gap:0.5rem;line-height:1.25rem;position:relative}:host([hidden]){display:none}label{align-self:flex-start}label.hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.select-field,.select-container{display:flex;flex-direction:column;gap:0.5rem;flex:1 1 auto}.select-field.select-horizontal{flex-direction:row;gap:1rem}.select-wrapper{display:flex;align-items:flex-start;background:white;border-radius:var(--cat-border-radius-m, 0.25rem);box-shadow:inset 0 0 0 1px rgb(var(--border-color));transition:box-shadow 125ms linear;padding:0.25rem;--border-color:var(--cat-border-color-dark, 215, 219, 224);}.select-wrapper:not(.select-disabled):hover{box-shadow:inset 0 0 0 1px rgb(var(--border-color)), 0 0 0 1px rgb(var(--border-color))}.select-wrapper:focus-within{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:-1px}.select-wrapper.select-invalid{--border-color:var(--cat-danger-bg, 217, 52, 13), 0.2}.select-wrapper:has(input:-webkit-autofill),.select-wrapper:has(input:-webkit-autofill):hover,.select-wrapper:has(input:-webkit-autofill):focus{background-color:#e8f0fe}:host(.cat-error) .select-wrapper{box-shadow:0 0 0 1px rgb(var(--cat-danger-bg, 217, 52, 13))}:host(.cat-error) .select-wrapper:not(.input-disabled):hover{box-shadow:0 0 0 2px rgb(var(--cat-danger-bg, 217, 52, 13))}.select-disabled{background:#f2f4f7;cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 81, 92, 108));pointer-events:none}.select-wrapper-inner{display:flex;flex:1 1 auto;align-items:center;gap:0.25rem;min-width:0}.select-wrapper-inner>cat-avatar{display:inline-block;padding-left:0.5rem}.select-wrapper-inner>cat-avatar+.select-input{padding-left:0.25rem}.select-wrapper-inner cat-avatar{--cat-avatar-size:1.25rem;--cat-avatar-font-size:0.5rem}.select-multiple .select-wrapper-inner{flex-wrap:wrap}.select-input{font:inherit;background:none;border:none;outline:none;padding:0.375rem 0.5rem;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.select-input::placeholder{color:rgb(var(--cat-font-color-muted, 81, 92, 108))}.select-disabled .select-input{cursor:inherit}.select-pills{display:contents}.pill{display:inline-flex;align-items:center;gap:0.5rem;padding:0.25rem 0.5rem;background:#f2f4f7;border-radius:var(--cat-border-radius-s, 0.125rem);white-space:nowrap;min-width:0}.pill>span{overflow:hidden;text-overflow:ellipsis;flex:1 1 0%}.pill>cat-button{margin-right:-0.25rem;margin-left:-0.25rem}.select-btn{transition:transform 125ms linear}.select-btn::part(button){outline:none}cat-spinner{padding:0.375rem}.icon-suffix{padding:0.25rem}.select-btn-open{transform:rotate(180deg)}.select-dropdown{position:fixed;right:0;background:white;display:none;overflow:auto;box-shadow:0 4px 6px -2px rgba(27, 31, 38, 0.03), 0 12px 16px -4px rgba(27, 31, 38, 0.08);border-radius:var(--cat-border-radius-m, 0.25rem);border:1px solid rgb(var(--cat-border-color, 235, 236, 240));z-index:calc(var(--cat-z-index, 1000) + 100);width:max-content;top:0;left:0}.select-options-wrapper{max-height:16rem;width:100%}.select-empty{margin:1rem 0;padding:0 1.25rem}.select-options{list-style-type:none;margin:0;padding:0.5rem 0}.select-options cat-checkbox,.select-options .select-option-single{margin:0;padding:0.5rem 1rem}.select-option-inner{display:flex;gap:0.5rem}.select-option-inner cat-avatar{--cat-avatar-size:1.25rem;--cat-avatar-font-size:0.5rem}.select-option-text{flex:1 1 0%;min-width:0}.select-option-single{cursor:pointer}.select-input-transparent-caret{caret-color:transparent}.select-option-empty,.select-option-loading{padding:0.5rem 1rem}.select-option:hover{background-color:rgba(var(--cat-secondary-bg, 105, 118, 135), 0.05)}.select-option-active{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:-2px}.select-option-label{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-wrap:break-word;word-break:break-word}.select-option-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}';const Ga={term:"",isOpen:false,isLoading:false,isResolving:false,options:[],selection:[],tempSelection:[],activeOptionIndex:-1,activeSelectionIndex:-1};let Ja=0;let Ya=0;const qa=class{constructor(e){t(this,e);this.catOpen=a(this,"catOpen",7);this.catClose=a(this,"catClose",7);this.catChange=a(this,"catChange",7);this.catBlur=a(this,"catBlur",7);this._id=`cat-input-${Ja++}`;this.term$=new S;this.more$=new S;this.valueChangedBySelection=false;this.connector=undefined;this.state=Ga;this.hasSlottedLabel=false;this.hasSlottedHint=false;this.errorMap=undefined;this.requiredMarker="optional";this.horizontal=false;this.multiple=false;this.debounce=250;this.placement="bottom-start";this.value=undefined;this.disabled=false;this.placeholder=undefined;this.hint=undefined;this.identifier=undefined;this.label="";this.name=undefined;this.labelHidden=false;this.required=false;this.clearable=false;this.tags=false;this.tagHint=undefined;this.noItems=undefined;this.errors=undefined;this.errorUpdate=0;this.nativeAttributes=undefined}get id(){return this.identifier||this._id}onConnectorChanged(t){this.reset(t);this.resolve()}onValueChanged(){!this.valueChangedBySelection?this.resolve():this.valueChangedBySelection=false}onErrorsChanged(t){if(!Ia(this.errorUpdate)){this.errorMap=undefined}else{this.errorMapSrc=Array.isArray(t)?t.reduce(((t,e)=>({...t,[e]:undefined})),{}):t===true?{}:t||undefined;this.showErrorsIfTimeout()||this.showErrorsIfNoFocus()}}onStateChanged(t,e){const r=r=>t[r]!==e[r];if(r("isOpen")){this.update()}if(r("activeOptionIndex")&&this.state.activeOptionIndex>=0){this.dropdown?.querySelector(`#select-${this.id}-option-${this.state.activeOptionIndex}`)?.scrollIntoView({block:"nearest"})}if(r("selection")){let t;if(!this.multiple&&this.state.selection.length){this.hide()}const r=this.state.selection.map((t=>t.item.id));if(!this.tags){if(this.multiple){t=r}else{t=r.length?r[0]:""}}else{const e=r.filter((t=>!t.startsWith(`select-${this.id}-tag`)));const i=this.state.selection.filter((t=>t.item.id.startsWith(`select-${this.id}-tag`))).map((t=>t.render.label));if(this.multiple){t={ids:e,tags:i}}else{t={id:e.length?e[0]:"",tag:i.length?i[0]:""}}}if(!e.isResolving){this.valueChangedBySelection=true;this.value=t}this.catChange.emit();this.showErrorsIfTimeout()}}componentDidLoad(){if(this.input){Ua(this.input)}if(this.trigger&&this.dropdown){vi(this.trigger,this.dropdown,(()=>this.update()))}}componentWillRender(){this.onErrorsChanged(this.errors);this.hasSlottedLabel=!!this.hostElement.querySelector('[slot="label"]');this.hasSlottedHint=!!this.hostElement.querySelector('[slot="hint"]');if(!this.label&&!this.hasSlottedLabel){z.warn("[A11y] Missing ARIA label on select",this)}}onBlur(t){if(!this.multiple&&this.state.activeOptionIndex>=0){if(this.tags&&this.state.options[this.state.activeOptionIndex].item.id===`select-${this.id}-option-tag`){this.createTag(this.state.term)}else{this.select(this.state.options[this.state.activeOptionIndex])}}this.hide();if(!this.multiple&&(!this.tags||!this.state.selection?.length)){if(this.state.tempSelection?.length){this.patchState({activeSelectionIndex:-1,selection:this.state.tempSelection,tempSelection:[],options:[],term:this.state.tempSelection[0].render.label})}else if(!this.state.selection?.length){this.patchState({activeSelectionIndex:-1,selection:[],tempSelection:[],options:[],term:""})}}else{this.patchState({activeSelectionIndex:-1})}this.catBlur.emit(t);if(Ia(this.errorUpdate)){this.showErrors()}}onKeyDown(t){const e=this.hostElement.shadowRoot?.activeElement===this.input;if(["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(t.key)){this.onArrowKeyDown(t)}else if(["Enter"," "].includes(t.key)&&e){if(this.tags&&this.state.activeOptionIndex===0&&this.state.options[0].item.id===`select-${this.id}-option-tag`){t.preventDefault();if(this.multiple){this.toggleTag(this.state.options[0])}else{this.createTag(this.state.options[0].render.label)}}else if(this.state.activeOptionIndex>=0){t.preventDefault();if(this.multiple){this.toggle(this.state.options[this.state.activeOptionIndex])}else{this.select(this.state.options[this.state.activeOptionIndex])}}else if(this.tags&&t.key==="Enter"&&this.state.activeOptionIndex<0){this.createTag(this.state.term)}}else if(t.key==="Escape"){if(this.hide()){t.stopPropagation()}}else if(t.key==="Backspace"||t.key==="Delete"){this.input?.focus();if(!this.multiple||!this.state.term||this.input?.selectionStart===0&&t.key==="Backspace"){if(this.state.activeSelectionIndex>=0){this.deselect(this.state.selection[this.state.activeSelectionIndex].item.id)}else if(this.state.selection.length){const t=[...this.state.selection];t.pop();this.patchState({selection:t,tempSelection:this.state.term?[...this.state.selection]:[]})}}}else if(t.key==="Tab"){this.trigger?.setAttribute("tabindex","-1");if(this.multiple){this.patchState({activeSelectionIndex:-1,activeOptionIndex:-1})}else if(this.state.activeOptionIndex>=0){if(this.tags&&this.state.options[this.state.activeOptionIndex].item.id===`select-${this.id}-option-tag`){this.createTag(this.state.term)}else{this.select(this.state.options[this.state.activeOptionIndex])}}}else if(t.key.length===1){this.input?.focus()}}onKeyUp(t){if(t.key==="Tab"&&!t.shiftKey){this.hostElement.shadowRoot?.activeElement===this.trigger&&this.input?.focus();if(this.hostElement.shadowRoot?.activeElement===this.input){this.show()}}else if(t.key==="Tab"&&t.shiftKey){const t=this.trigger?.querySelector(`#select-clear-btn-${this.id}`);if(t){this.hostElement.shadowRoot?.activeElement===t&&this.show()}else{this.show()}}}async doFocus(t){this.input?.focus(t)}async doBlur(){this.input?.blur()}async clear(){this.clearInput()}async connect(t){this.connector=t;let e;this.subscription?.unsubscribe();this.subscription=this.term$.asObservable().pipe(ft((t=>t?ot(this.debounce):D(0))),xt(),St((()=>e=this.more$.pipe(lt((()=>!this.state.isLoading)),$t((t=>t+1),0),Ct(0)))),St((()=>this.patchState({options:[]}))),Mt((r=>e.pipe(St((()=>this.patchState({isLoading:true}))),Mt((e=>t.retrieve(r,e))),St((t=>this.patchState({isLoading:false,totalElements:t.totalElements}))),At((t=>!t.last),true),$t(((t,e)=>[...t,...e.content]),[]))))).subscribe((e=>{const r=this.toSelectItems(t,e);if(this.tags&&this.state.term.trim().length&&!r.find((t=>t.render.label.toLowerCase()===this.state.term.toLowerCase()))){let t;if(this.isTagSelected(this.state.term)){t=this.state.selection.find((t=>t.render.label.toLowerCase()===this.state.term.toLowerCase()))?.render.label}r.unshift({item:{id:`select-${this.id}-option-tag`},render:{label:t?t:this.state.term}})}this.patchState({options:r})}))}render(){return e(r,null,e("div",{class:{"select-field":true,"select-horizontal":this.horizontal,"select-multiple":this.multiple}},e("div",{class:{"label-container":true,hidden:this.labelHidden}},(this.hasSlottedLabel||this.label)&&e("label",{htmlFor:this.id,part:"label"},e("span",{class:"label-wrapper"},this.hasSlottedLabel&&e("slot",{name:"label"})||this.label,e("div",{class:"label-metadata"},!this.required&&(this.requiredMarker??"optional").startsWith("optional")&&e("span",{class:"label-optional","aria-hidden":"true"},"(",I.t("input.optional"),")"),this.required&&this.requiredMarker?.startsWith("required")&&e("span",{class:"label-optional","aria-hidden":"true"},"(",I.t("input.required"),")"))))),e("div",{class:"select-container"},e("div",{class:{"select-wrapper":true,"select-disabled":this.disabled,"select-invalid":this.invalid},ref:t=>this.trigger=t,id:this.id,role:"combobox","aria-expanded":this.state.isOpen||this.isPillboxActive(),"aria-controls":this.isPillboxActive()?`select-pillbox-${this.id}`:`select-listbox-${this.id}`,"aria-required":this.required?"true":false,"aria-activedescendant":this.activeDescendant,onClick:t=>this.onClick(t)},e("div",{class:"select-wrapper-inner"},this.multiple&&this.state.selection.length?e("div",{id:`select-pillbox-${this.id}`,role:"listbox","aria-orientation":"horizontal",class:"select-pills"},this.state.selection.map(((t,r)=>e("span",{class:{pill:true,"select-no-open":true,"select-option-active":this.state.activeSelectionIndex===r},role:"option","aria-selected":"true",id:`select-${this.id}-selection-${r}`},t.render.avatar?e("cat-avatar",{label:t.render.label,round:t.render.avatar.round,src:t.render.avatar.src,icon:t.render.avatar.icon,initials:t.render.avatar.initials??""}):null,e("span",null,t.render.label),!this.disabled&&e("cat-button",{size:"xs",variant:"text",icon:"$cat:select-clear",iconOnly:true,a11yLabel:I.t("select.deselect"),onClick:()=>this.deselect(t.item.id),tabIndex:-1,"data-dropdown-no-close":true}))))):this.state.selection.length&&this.state.selection[0].render.avatar?e("cat-avatar",{label:this.state.selection[0].render.label,round:this.state.selection[0].render.avatar.round,src:this.state.selection[0].render.avatar.src,icon:this.state.selection[0].render.avatar.icon,initials:this.state.selection[0].render.avatar.initials??""}):null,e("input",{...this.nativeAttributes,part:"input",class:"select-input",ref:t=>this.input=t,"aria-controls":this.isPillboxActive()?`select-pillbox-${this.id}`:`select-listbox-${this.id}`,"aria-activedescendant":this.activeDescendant,"aria-invalid":this.invalid?"true":undefined,"aria-describedby":this.hasHint?this.id+"-hint":undefined,onInput:this.onInput.bind(this),value:!this.multiple?this.state.term:undefined,placeholder:this.placeholder,disabled:this.disabled||this.state.isResolving})),this.state.isResolving&&e("cat-spinner",null),this.invalid&&e("cat-icon",{icon:"$cat:input-error",class:"icon-suffix cat-text-danger",size:"l"}),(this.state.selection.length||this.state.term.length)&&!this.disabled&&!this.state.isResolving&&this.clearable?e("cat-button",{id:`select-clear-btn-${this.id}`,iconOnly:true,icon:"$cat:input-close",variant:"text",size:"s",a11yLabel:I.t("input.clear"),onCatClick:()=>this.clearInput(),"data-dropdown-no-close":true}):null,!this.state.isResolving&&e("cat-button",{iconOnly:true,icon:"$cat:select-open",class:{"select-btn":true,"select-btn-open":this.state.isOpen},variant:"text",size:"s",a11yLabel:this.state.isOpen?I.t("select.close"):I.t("select.open"),"aria-controls":`select-listbox-${this.id}`,"aria-expanded":this.state.isOpen,tabIndex:-1,disabled:this.disabled||this.state.isResolving,"data-dropdown-no-close":true})),this.hasHint&&e(te,{id:this.id,hint:this.hint,slottedHint:this.hasSlottedHint&&e("slot",{name:"hint"}),errorMap:this.errorMap}))),e("div",{class:"select-dropdown",ref:t=>this.dropdown=t,style:{display:this.state.isOpen?"block":undefined}},this.state.isOpen&&e("cat-scrollable",{class:"select-options-wrapper",scrolledBuffer:56,noOverflowX:true,noOverscroll:true,noScrolledInit:true,onScrolledBottom:()=>this.more$.next()},e("ul",{class:"select-options",role:"listbox","aria-multiselectable":this.multiple,"aria-setsize":this.state.totalElements,id:`select-listbox-${this.id}`},this.optionsList,this.state.isLoading?Array.from(Array(qa.SKELETON_COUNT)).map((()=>e("li",{class:"select-option-loading"},e("cat-skeleton",{variant:"body",lines:1}),e("cat-skeleton",{variant:"body",lines:1})))):!this.state.options.length&&!this.tags&&e("li",{class:"select-option-empty"},this.noItems?this.noItems:I.t("select.empty"))))))}get hasHint(){return!!this.hint||!!this.hasSlottedHint||this.invalid}get invalid(){return!!Object.keys(this.errorMap||{}).length}get optionsList(){return this.state.options.map(((t,r)=>{const i=this.tags&&t.item.id===`select-${this.id}-option-tag`;const a=this.isSelected(t.item.id)||this.tags&&this.isTagSelected(t.render.label);const n=()=>{if(i){return t.render.label+this.tagTextHelp}return t.render.label};return e("li",{role:"option",class:"select-option",id:`select-${this.id}-option-${r}`,"aria-selected":a?"true":"false"},this.multiple?e("cat-checkbox",{class:{"select-option-active":this.state.activeOptionIndex===r},checked:a,tabIndex:-1,labelLeft:true,onFocus:()=>this.input?.focus(),onCatChange:e=>{!i?this.toggle(t):this.toggleTag(t);e.stopPropagation()}},e("span",{slot:"label",class:"select-option-inner"},t.render.avatar?e("cat-avatar",{label:t.render.label,round:t.render.avatar.round,src:t.render.avatar.src,icon:t.render.avatar.icon,initials:t.render.avatar.initials??""}):null,e("span",{class:"select-option-text"},e("span",{class:"select-option-label"},n()),e("span",{class:"select-option-description"},t.render.description)))):e("div",{class:{"select-option-inner":true,"select-option-single":true,"select-option-active":this.state.activeOptionIndex===r},onFocus:()=>this.input?.focus(),onClick:()=>i?this.createTag(t.render.label):this.select(t),tabIndex:-1},t.render.avatar?e("cat-avatar",{label:t.render.label,round:t.render.avatar.round,src:t.render.avatar.src,icon:t.render.avatar.icon,initials:t.render.avatar.initials??""}):null,e("span",{class:"select-option-text"},e("span",{class:"select-option-label"},n()),e("span",{class:"select-option-description"},t.render.description))))}))}resolve(){const t=this.connector;if(!t){return}this.patchState({isResolving:true});const e=this.initIds();let r;if(this.tags){r=this.initTags()}const i=e.length?t.resolve(e).pipe(It()):D([]);i.pipe(ht((()=>D([])))).subscribe((e=>{const i=this.toSelectItems(t,e);if(this.tags){r.filter((t=>!this.isTagSelected(t,i))).forEach(((t,e)=>{const r={id:`select-${this.id}-tag-${e}`,name:t};i.push({item:r,render:{label:r.name}})}))}this.patchState({isResolving:false,selection:i,term:!this.multiple&&i.length?i[0].render.label:""})}))}toSelectItems(t,e){return e.map((e=>({item:{...e,id:t.customId?t.customId(e):e.id},render:t.render(e)})))}show(){if(!this.state.isOpen&&this.connector){this.connect(this.connector);this.patchState({isOpen:true});this.catOpen.emit();this.term$.next("");this.input?.classList.remove("select-input-transparent-caret")}}hide(){if(this.state.isOpen){this.patchState({isOpen:false,activeOptionIndex:-1});this.catClose.emit();return true}return false}search(t){this.patchState({term:t,activeOptionIndex:-1,activeSelectionIndex:-1});this.term$.next(t)}isSelected(t){return this.state.selection.findIndex((e=>e.item.id===t))>=0}select(t){if(!this.isSelected(t.item.id)){let e;if(this.multiple){e=[...this.state.selection,t]}else{e=[t];this.search(t.render.label)}this.patchState({selection:e,tempSelection:[]});if(this.multiple&&this.state.term.trim()&&this.input){this.patchState({term:"",activeOptionIndex:-1});this.term$.next("");this.input.value=""}}this.setTransparentCaret()}deselect(t){if(this.isSelected(t)){this.patchState({selection:this.state.selection.filter((e=>e.item.id!==t)),activeSelectionIndex:-1})}}toggle(t){this.isSelected(t.item.id)?this.deselect(t.item.id):this.tags&&this.isTagSelected(t.render.label)?this.removeTag(t.render.label):this.select(t)}clearInput(){if(this.input&&this.state.term){this.patchState({selection:[],term:"",activeOptionIndex:-1,tempSelection:[]});this.term$.next("");this.input.value=""}else{this.patchState({selection:[],tempSelection:[]})}}reset(t){this.connector=t??this.connector;this.subscription?.unsubscribe();this.subscription=undefined;this.state=Ga}onClick(t){if(this.disabled){return}const e=t.target;this.trigger?.setAttribute("tabindex","0");this.input?.focus();if(e===this.trigger||e===this.input||e.classList.contains("select-btn")||e.nodeName==="SPAN"){this.state.isOpen?this.hide():this.show()}}onInput(){this.search(this.input?.value.trim()||"");if(!this.multiple){if(this.state.selection.length){const t=[...this.state.selection];t.pop();this.patchState({selection:t,tempSelection:[...this.state.selection]})}if(!this.input?.value.trim()){this.patchState({tempSelection:[]})}}this.show()}update(){if(this.trigger&&this.dropdown){gi(this.trigger,this.dropdown,{strategy:"fixed",placement:this.placement,middleware:[$r(qa.DROPDOWN_OFFSET),zr()]}).then((({x:t,y:e,placement:r})=>{if(this.dropdown){this.dropdown.dataset.placement=r;Object.assign(this.dropdown.style,{width:`${this.trigger?.clientWidth}px`,left:`${t}px`,top:`${e}px`})}}))}}patchState(t){this.state={...this.state,...t}}isPillboxActive(){return this.state.activeSelectionIndex>=0}get activeDescendant(){let t=undefined;if(this.state.activeOptionIndex>=0){t=`select-${this.id}-option-${this.state.activeOptionIndex}`}else if(this.state.activeSelectionIndex>=0){t=`select-${this.id}-selection-${this.state.activeSelectionIndex}`}return t}onArrowKeyDown(t){let e=false;this.input?.focus();switch(t.key){case"ArrowDown":e=true;this.state.isOpen?this.patchState({activeOptionIndex:Math.min(this.state.activeOptionIndex+1,this.state.options.length-1),activeSelectionIndex:-1}):this.show();break;case"ArrowUp":e=true;this.state.activeOptionIndex>=0?this.patchState({activeOptionIndex:Math.max(this.state.activeOptionIndex-1,-1),activeSelectionIndex:-1}):this.hide();break;case"ArrowLeft":if(this.input?.selectionStart===0){e=true;let t;this.state.activeSelectionIndex>0?t=Math.max(this.state.activeSelectionIndex-1,-1):t=this.state.selection.length-1;this.patchState({activeSelectionIndex:t,activeOptionIndex:-1})}break;case"ArrowRight":if(this.state.activeSelectionIndex>=0){e=true;let t=-1;if(this.state.activeSelectionIndexe.render.label.toLowerCase()===t.toLowerCase()))>=0}createTag(t){if(t.trim().length&&!this.isTagSelected(t)){const e=this.value;const r=e?.tags;const i={id:`select-${this.id}-tag-${r?.length?r?.length+Ya++:0}`,name:t};this.select({item:i,render:{label:i.name}})}this.setTransparentCaret()}removeTag(t){if(this.isTagSelected(t)){const e=this.state.selection.find((e=>e.render.label.toLowerCase()===t.toLowerCase()));e&&this.deselect(e.item.id)}}toggleTag(t){this.isTagSelected(t.render.label)?this.removeTag(t.render.label):this.createTag(t.render.label)}initIds(){let t=[];if(this.value){if(!this.tags){if(this.multiple){t=this.value}else{t=[this.value]}}else{if(this.multiple){const e=this.value;t=e.ids?e.ids:[]}else{const e=this.value;t=e.id?[e.id]:[]}}}return t}initTags(){let t=[];if(this.value){if(this.multiple){const e=this.value;t=e.tags?e.tags:[]}else{const e=this.value;t=e.tag?[e.tag]:[]}}return t}setTransparentCaret(){if(!this.multiple){this.hide();this.input?.classList.add("select-input-transparent-caret")}}showErrors(){this.errorMap=this.errorMapSrc}showErrorsIfTimeout(){const t=$a(this.errorUpdate,null);if(t!==null){typeof this.errorUpdateTimeoutId==="number"&&window.clearTimeout(this.errorUpdateTimeoutId);this.errorUpdateTimeoutId=window.setTimeout((()=>this.showErrors()),t);return true}return false}showErrorsIfNoFocus(){const t=document.activeElement===this.hostElement||document.activeElement===this.input;if(!t){this.showErrors()}}get hostElement(){return i(this)}static get watchers(){return{connector:["onConnectorChanged"],value:["onValueChanged"],errors:["onErrorsChanged"],state:["onStateChanged"]}}};qa.SKELETON_COUNT=4;qa.DROPDOWN_OFFSET=4;qa.style=Ka;const Va=class{constructor(e){t(this,e)}componentDidLoad(){this.multipleSelect?.connect({resolve:t=>D(t.map((t=>({id:t,firstName:"John",lastName:`Doe (${t})`,desc:"resolved"})))).pipe(yt(500)),retrieve:(t,e)=>t==="no"?D({last:true,content:[],totalElements:0}):D({last:false,totalElements:1e4,content:Array.from({length:10},((r,i)=>({id:""+(i+e*10),firstName:"John",lastName:`Doe (${i+e*10})`,desc:`"${t}": page ${e}`})))}).pipe(yt(500)),render:t=>({label:`${t.firstName} ${t.lastName}`,description:t.desc})});this.multipleSelectAvatar?.connect({resolve:t=>D(t.map((t=>({id:t,firstName:"John",lastName:`Doe (${t})`,desc:"resolved"})))).pipe(yt(500)),retrieve:(t,e)=>t==="no"?D({last:true,content:[],totalElements:0}):D({last:false,totalElements:1e4,content:Array.from({length:10},((r,i)=>({id:""+(i+e*10),firstName:"John",lastName:`Doe (${i+e*10})`,desc:`"${t}": page ${e}`})))}).pipe(yt(500)),render:t=>({label:`${t.firstName} ${t.lastName}`,description:t.desc,avatar:{src:`https://picsum.photos/id/${Math.floor(Math.random()*100)}/200`,round:true}})});this.multipleSelectAvatarInitials?.connect({resolve:t=>D(t.map((t=>({id:t,firstName:"John",lastName:`Doe (${t})`,desc:"resolved"})))).pipe(yt(500)),retrieve:(t,e)=>t==="no"?D({last:true,content:[],totalElements:0}):D({last:false,totalElements:1e4,content:Array.from({length:10},((r,i)=>({id:""+(i+e*10),firstName:"John",lastName:`Doe (${i+e*10})`,desc:`"${t}": page ${e}`})))}).pipe(yt(500)),render:t=>({label:`${t.firstName} ${t.lastName}`,description:t.desc,avatar:{round:true,initials:`JD`}})});this.multipleSelectTagging?.connect(this.countryConnector);this.singleSelect?.connect({resolve:t=>D(t.map((t=>({id:t,firstName:"John",lastName:`Doe (${t})`,desc:"resolved"})))).pipe(yt(500)),retrieve:(t,e)=>t==="no"?D({last:true,content:[],totalElements:0}):D({last:false,totalElements:1e4,content:Array.from({length:10},((r,i)=>({id:""+(i+e*10),firstName:"John",lastName:`Doe (${i+e*10})`,desc:`"${t}": page ${e}`})))}).pipe(yt(500)),render:t=>({label:`${t.firstName} ${t.lastName}`,description:t.desc})});this.singleSelectAvatar?.connect(this.countryConnector);this.singleSelectAvatarInitials?.connect({...this.countryConnector,render:t=>({label:t.country,description:t.capital||"No capital",avatar:{round:true,initials:`${t.country.charAt(0)?.toUpperCase()??"J"}${t.capital?.charAt(0)?.toUpperCase()??"D"}`}})});this.singleSelectTagging?.connect(this.countryConnector);setTimeout((()=>this.multipleSelect&&(this.multipleSelect.value=[])),5e3)}render(){return e(r,{style:{display:"flex",flexDirection:"column"}},e("cat-select",{label:"Multiple Select",hint:"This is a hint!",ref:t=>this.multipleSelect=t,value:["1"],placeholder:"Hello World",onCatChange:()=>console.log("Multiple change",this.multipleSelect?.value),onCatBlur:t=>console.log("Multiple blur",t),multiple:true,noItems:"No results",clearable:true,errorUpdate:false},e("span",{slot:"hint"},'Searching for "no" -',">"," no options are returned!")),e("cat-select",{label:"Multiple with img",ref:t=>this.multipleSelectAvatar=t,value:["1"],placeholder:"Hello World",multiple:true,clearable:true,errorUpdate:false}),e("cat-select",{label:"Multiple with initials",ref:t=>this.multipleSelectAvatarInitials=t,value:["1"],placeholder:"Hello World",multiple:true,clearable:true,errorUpdate:false}),e("cat-select",{label:"Multiple with tagging support",hint:"This is a hint!",ref:t=>this.multipleSelectTagging=t,value:{ids:["1"],tags:["Test","Albania","Algeria"]},placeholder:"Select country",onCatChange:()=>console.log("Multiple tagging change",this.multipleSelectTagging?.value),multiple:true,tags:true,clearable:true,errorUpdate:false}),e("cat-select",{label:"Single Select",hint:"This is a hint!",ref:t=>this.singleSelect=t,placeholder:"Search for a country or capital",onCatBlur:t=>console.log("Single blur",t),clearable:true,errorUpdate:false}),e("cat-select",{label:"Single with img",ref:t=>this.singleSelectAvatar=t,value:"1",placeholder:"Search for a country or capital",clearable:true,errorUpdate:false}),e("cat-select",{label:"Single with initials",ref:t=>this.singleSelectAvatarInitials=t,placeholder:"Hello World",clearable:true,errorUpdate:false}),e("cat-dropdown",{overflow:true},e("cat-button",{slot:"trigger",style:{width:"50%"}},"Open select"),e("div",{slot:"content",style:{width:"400px"}},e("cat-select",{label:"Single with tagging support",ref:t=>this.singleSelectTagging=t,value:{id:"",tag:"Albania"},placeholder:"Search for a country or capital",onCatChange:()=>console.log("Single change",this.singleSelectTagging?.value),tagHint:"new country",tags:true,clearable:true,errorUpdate:false,style:{width:"90%"}}))))}get countryConnector(){return{resolve:t=>D(t.map((t=>Za.find((e=>e.id===t))))).pipe(yt(500)),retrieve:(t,e)=>{const r=Za.filter((e=>e.country.toLowerCase().indexOf(t.toLowerCase())===0||e.capital?.toLowerCase().indexOf(t.toLowerCase())===0));const i=r.slice(e*10,e*10+10);return D({last:i.length<10,totalElements:r.length,content:i}).pipe(yt(500))},render:t=>({label:t.country,description:t.capital||"No capital",avatar:{src:`https://picsum.photos/id/${Math.floor(Math.random()*100)}/200`,round:true}})}}};const Za=[{id:"0",country:"Afghanistan Extra extra large extra large extra large extra large extra large extra large extra large extra large extra large extra large extra large extra large extra large extra large ",capital:"Kabul"},{id:"1",country:"Albania",capital:"Tirana"},{id:"2",country:"Algeria",capital:"Alger"},{id:"3",country:"American Samoa",capital:"Fagatogo"},{id:"4",country:"Andorra",capital:"Andorra la Vella"},{id:"5",country:"Angola",capital:"Luanda"},{id:"6",country:"Anguilla",capital:"The Valley"},{id:"7",country:"Antarctica"},{id:"8",country:"Antigua and Barbuda",capital:"Saint John's"},{id:"9",country:"Argentina",capital:"Buenos Aires"},{id:"10",country:"Armenia",capital:"Yerevan"},{id:"11",country:"Aruba",capital:"Oranjestad"},{id:"12",country:"Australia",capital:"Canberra"},{id:"13",country:"Austria",capital:"Wien"},{id:"14",country:"Azerbaijan",capital:"Baku"},{id:"15",country:"Bahamas",capital:"Nassau"},{id:"16",country:"Bahrain",capital:"al-Manama"},{id:"17",country:"Bangladesh",capital:"Dhaka"},{id:"18",country:"Barbados",capital:"Bridgetown"},{id:"19",country:"Belarus",capital:"Minsk"},{id:"20",country:"Belgium",capital:"Bruxelles [Brussel]"},{id:"21",country:"Belize",capital:"Belmopan"},{id:"22",country:"Benin",capital:"Porto-Novo"},{id:"23",country:"Bermuda",capital:"Hamilton"},{id:"24",country:"Bhutan",capital:"Thimphu"},{id:"25",country:"Bolivia",capital:"La Paz"},{id:"26",country:"Bosnia and Herzegovina",capital:"Sarajevo"},{id:"27",country:"Botswana",capital:"Gaborone"},{id:"28",country:"Bouvet Island"},{id:"29",country:"Brazil",capital:"Brasília"},{id:"30",country:"British Indian Ocean Territory"},{id:"31",country:"Brunei",capital:"Bandar Seri Begawan"},{id:"32",country:"Bulgaria",capital:"Sofia"},{id:"33",country:"Burkina Faso",capital:"Ouagadougou"},{id:"34",country:"Burundi",capital:"Bujumbura"},{id:"35",country:"Cambodia",capital:"Phnom Penh"},{id:"36",country:"Cameroon",capital:"Yaound"},{id:"37",country:"Canada",capital:"Ottawa"},{id:"38",country:"Cape Verde",capital:"Praia"},{id:"39",country:"Cayman Islands",capital:"George Town"},{id:"40",country:"Central African Republic",capital:"Bangui"},{id:"41",country:"Chad",capital:"N'Djam"},{id:"42",country:"Chile",capital:"Santiago de Chile"},{id:"43",country:"China",capital:"Peking"},{id:"44",country:"Christmas Island",capital:"Flying Fish Cove"},{id:"45",country:"Cocos (Keeling) Islands",capital:"West Island"},{id:"46",country:"Colombia",capital:"Santaf"},{id:"47",country:"Comoros",capital:"Moroni"},{id:"48",country:"Congo",capital:"Brazzaville"},{id:"49",country:"Cook Islands",capital:"Avarua"},{id:"50",country:"Costa Rica",capital:"San José"},{id:"51",country:"Croatia",capital:"Zagreb"},{id:"52",country:"Cuba",capital:"La Habana"},{id:"53",country:"Cyprus",capital:"Nicosia"},{id:"54",country:"Czech Republic",capital:"Praha"},{id:"55",country:"Denmark",capital:"Copenhagen"},{id:"56",country:"Djibouti",capital:"Djibouti"},{id:"57",country:"Dominica",capital:"Roseau"},{id:"58",country:"Dominican Republic",capital:"Santo Domingo de Guzm"},{id:"59",country:"East Timor",capital:"Dili"},{id:"60",country:"Ecuador",capital:"Quito"},{id:"61",country:"Egypt",capital:"Cairo"},{id:"62",country:"El Salvador",capital:"San Salvador"},{id:"63",country:"England",capital:"London"},{id:"64",country:"Equatorial Guinea",capital:"Malabo"},{id:"65",country:"Eritrea",capital:"Asmara"},{id:"66",country:"Estonia",capital:"Tallinn"},{id:"67",country:"Ethiopia",capital:"Addis Abeba"},{id:"68",country:"Falkland Islands",capital:"Stanley"},{id:"69",country:"Faroe Islands",capital:"Tórshavn"},{id:"70",country:"Fiji Islands",capital:"Suva"},{id:"71",country:"Finland",capital:"Helsinki [Helsingfors]"},{id:"72",country:"France",capital:"Paris"},{id:"73",country:"French Guiana",capital:"Cayenne"},{id:"74",country:"French Polynesia",capital:"Papeete"},{id:"75",country:"French Southern territories"},{id:"76",country:"Gabon",capital:"Libreville"},{id:"77",country:"Gambia",capital:"Banjul"},{id:"78",country:"Georgia",capital:"Tbilisi"},{id:"79",country:"Germany",capital:"Berlin"},{id:"80",country:"Ghana",capital:"Accra"},{id:"81",country:"Gibraltar",capital:"Gibraltar"},{id:"82",country:"Greece",capital:"Athenai"},{id:"83",country:"Greenland",capital:"Nuuk"},{id:"84",country:"Grenada",capital:"Saint George's"},{id:"85",country:"Guadeloupe",capital:"Basse-Terre"},{id:"86",country:"Guam",capital:"Aga"},{id:"87",country:"Guatemala",capital:"Ciudad de Guatemala"},{id:"88",country:"Guinea",capital:"Conakry"},{id:"89",country:"Guinea-Bissau",capital:"Bissau"},{id:"90",country:"Guyana",capital:"Georgetown"},{id:"91",country:"Haiti",capital:"Port-au-Prince"},{id:"92",country:"Heard Island and McDonald Islands"},{id:"93",country:"Holy See (Vatican City State)",capital:"Citt"},{id:"94",country:"Honduras",capital:"Tegucigalpa"},{id:"95",country:"Hong Kong",capital:"Victoria"},{id:"96",country:"Hungary",capital:"Budapest"},{id:"97",country:"Iceland",capital:"Reykjavík"},{id:"98",country:"India",capital:"New Delhi"},{id:"99",country:"Indonesia",capital:"Jakarta"},{id:"100",country:"Iran",capital:"Tehran"},{id:"101",country:"Iraq",capital:"Baghdad"},{id:"102",country:"Ireland",capital:"Dublin"},{id:"103",country:"Israel",capital:"Jerusalem"},{id:"104",country:"Italy",capital:"Roma"},{id:"105",country:"Ivory Coast",capital:"Yamoussoukro"},{id:"106",country:"Jamaica",capital:"Kingston"},{id:"107",country:"Japan",capital:"Tokyo"},{id:"108",country:"Jordan",capital:"Amman"},{id:"109",country:"Kazakhstan",capital:"Astana"},{id:"110",country:"Kenya",capital:"Nairobi"},{id:"111",country:"Kiribati",capital:"Bairiki"},{id:"112",country:"Kuwait",capital:"Kuwait"},{id:"113",country:"Kyrgyzstan",capital:"Bishkek"},{id:"114",country:"Laos",capital:"Vientiane"},{id:"115",country:"Latvia",capital:"Riga"},{id:"116",country:"Lebanon",capital:"Beirut"},{id:"117",country:"Lesotho",capital:"Maseru"},{id:"118",country:"Liberia",capital:"Monrovia"},{id:"119",country:"Libyan Arab Jamahiriya",capital:"Tripoli"},{id:"120",country:"Liechtenstein",capital:"Vaduz"},{id:"121",country:"Lithuania",capital:"Vilnius"},{id:"122",country:"Luxembourg",capital:"Luxembourg [Luxemburg/L"},{id:"123",country:"Macao",capital:"Macao"},{id:"124",country:"North Macedonia",capital:"Skopje"},{id:"125",country:"Madagascar",capital:"Antananarivo"},{id:"126",country:"Malawi",capital:"Lilongwe"},{id:"127",country:"Malaysia",capital:"Kuala Lumpur"},{id:"128",country:"Maldives",capital:"Male"},{id:"129",country:"Mali",capital:"Bamako"},{id:"130",country:"Malta",capital:"Valletta"},{id:"131",country:"Marshall Islands",capital:"Dalap-Uliga-Darrit"},{id:"132",country:"Martinique",capital:"Fort-de-France"},{id:"133",country:"Mauritania",capital:"Nouakchott"},{id:"134",country:"Mauritius",capital:"Port-Louis"},{id:"135",country:"Mayotte",capital:"Mamoutzou"},{id:"136",country:"Mexico",capital:"Ciudad de M"},{id:"137",country:"Micronesia, Federated States of",capital:"Palikir"},{id:"138",country:"Moldova",capital:"Chisinau"},{id:"139",country:"Monaco",capital:"Monaco-Ville"},{id:"140",country:"Mongolia",capital:"Ulan Bator"},{id:"141",country:"Montenegro",capital:"Podgorica"},{id:"142",country:"Montserrat",capital:"Plymouth"},{id:"143",country:"Morocco",capital:"Rabat"},{id:"144",country:"Mozambique",capital:"Maputo"},{id:"145",country:"Myanmar",capital:"Rangoon (Yangon)"},{id:"146",country:"Namibia",capital:"Windhoek"},{id:"147",country:"Nauru",capital:"Yaren"},{id:"148",country:"Nepal",capital:"Kathmandu"},{id:"149",country:"Netherlands",capital:"Amsterdam"},{id:"150",country:"Netherlands Antilles",capital:"Willemstad"},{id:"151",country:"New Caledonia",capital:"Noum"},{id:"152",country:"New Zealand",capital:"Wellington"},{id:"153",country:"Nicaragua",capital:"Managua"},{id:"154",country:"Niger",capital:"Niamey"},{id:"155",country:"Nigeria",capital:"Abuja"},{id:"156",country:"Niue",capital:"Alofi"},{id:"157",country:"Norfolk Island",capital:"Kingston"},{id:"158",country:"North Korea",capital:"Pyongyang"},{id:"159",country:"Northern Ireland",capital:"Belfast"},{id:"160",country:"Northern Mariana Islands",capital:"Garapan"},{id:"161",country:"Norway",capital:"Oslo"},{id:"162",country:"Oman",capital:"Masqat"},{id:"163",country:"Pakistan",capital:"Islamabad"},{id:"164",country:"Palau",capital:"Koror"},{id:"165",country:"Palestine",capital:"Gaza"},{id:"166",country:"Panama",capital:"Ciudad de Panamá"},{id:"167",country:"Papua New Guinea",capital:"Port Moresby"},{id:"168",country:"Paraguay",capital:"Asunción"},{id:"169",country:"Peru",capital:"Lima"},{id:"170",country:"Philippines",capital:"Manila"},{id:"171",country:"Pitcairn",capital:"Adamstown"},{id:"172",country:"Poland",capital:"Warszawa"},{id:"173",country:"Portugal",capital:"Lisboa"},{id:"174",country:"Puerto Rico",capital:"San Juan"},{id:"175",country:"Qatar",capital:"Doha"},{id:"176",country:"Reunion",capital:"Saint-Denis"},{id:"177",country:"Romania",capital:"Bucuresti"},{id:"178",country:"Russian Federation",capital:"Moscow"},{id:"179",country:"Rwanda",capital:"Kigali"},{id:"180",country:"Saint Helena",capital:"Jamestown"},{id:"181",country:"Saint Kitts and Nevis",capital:"Basseterre"},{id:"182",country:"Saint Lucia",capital:"Castries"},{id:"183",country:"Saint Pierre and Miquelon",capital:"Saint-Pierre"},{id:"184",country:"Saint Vincent and the Grenadines",capital:"Kingstown"},{id:"185",country:"Samoa",capital:"Apia"},{id:"186",country:"San Marino",capital:"San Marino"},{id:"187",country:"Sao Tome and Principe",capital:"São Tomé"},{id:"188",country:"Saudi Arabia",capital:"Riyadh"},{id:"189",country:"Scotland",capital:"Edinburgh"},{id:"190",country:"Senegal",capital:"Dakar"},{id:"191",country:"Serbia",capital:"Belgrade"},{id:"192",country:"Seychelles",capital:"Victoria"},{id:"193",country:"Sierra Leone",capital:"Freetown"},{id:"194",country:"Singapore",capital:"Singapore"},{id:"195",country:"Slovakia",capital:"Bratislava"},{id:"196",country:"Slovenia",capital:"Ljubljana"},{id:"197",country:"Solomon Islands",capital:"Honiara"},{id:"198",country:"Somalia",capital:"Mogadishu"},{id:"199",country:"South Africa",capital:"Pretoria"},{id:"200",country:"South Georgia and the South Sandwich Islands"},{id:"201",country:"South Korea",capital:"Seoul"},{id:"202",country:"South Sudan",capital:"Juba"},{id:"203",country:"Spain",capital:"Madrid"},{id:"204",country:"Sri Lanka",capital:"Colombo, Sri Jayawardenepura Kotte"},{id:"205",country:"Sudan",capital:"Khartum"},{id:"206",country:"Suriname",capital:"Paramaribo"},{id:"207",country:"Svalbard and Jan Mayen",capital:"Longyearbyen"},{id:"208",country:"Swaziland",capital:"Mbabane"},{id:"209",country:"Sweden",capital:"Stockholm"},{id:"210",country:"Switzerland",capital:"Bern"},{id:"211",country:"Syria",capital:"Damascus"},{id:"212",country:"Tajikistan",capital:"Dushanbe"},{id:"213",country:"Tanzania",capital:"Dodoma"},{id:"214",country:"Thailand",capital:"Bangkok"},{id:"215",country:"The Democratic Republic of Congo",capital:"Kinshasa"},{id:"216",country:"Togo",capital:"Lomé"},{id:"217",country:"Tokelau",capital:"Fakaofo"},{id:"218",country:"Tonga",capital:"Nuku'alofa"},{id:"219",country:"Trinidad and Tobago",capital:"Port-of-Spain"},{id:"220",country:"Tunisia",capital:"Tunis"},{id:"221",country:"Turkey",capital:"Ankara"},{id:"222",country:"Turkmenistan",capital:"Ashgabat"},{id:"223",country:"Turks and Caicos Islands",capital:"Cockburn Town"},{id:"224",country:"Tuvalu",capital:"Funafuti"},{id:"225",country:"Uganda",capital:"Kampala"},{id:"226",country:"Ukraine",capital:"Kyiv"},{id:"227",country:"United Arab Emirates",capital:"Abu Dhabi"},{id:"228",country:"United Kingdom",capital:"London"},{id:"229",country:"United States",capital:"Washington"},{id:"230",country:"United States Minor Outlying Islands"},{id:"231",country:"Uruguay",capital:"Montevideo"},{id:"232",country:"Uzbekistan",capital:"Toskent"},{id:"233",country:"Vanuatu",capital:"Port-Vila"},{id:"234",country:"Venezuela",capital:"Caracas"},{id:"235",country:"Vietnam",capital:"Hanoi"},{id:"236",country:"Virgin Islands, British",capital:"Road Town"},{id:"237",country:"Virgin Islands, U.S.",capital:"Charlotte Amalie"},{id:"238",country:"Wales",capital:"Cardiff"},{id:"239",country:"Wallis and Futuna",capital:"Mata-Utu"},{id:"240",country:"Western Sahara",capital:"El-Aai"},{id:"241",country:"Yemen",capital:"Sanaa"},{id:"242",country:"Zambia",capital:"Lusaka"},{id:"243",country:"Zimbabwe",capital:"Harare"}];const Xa=':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]:not(:last-child)){margin-bottom:1rem}:host([variant=body]:not(:last-child)){margin-bottom:2rem}.skeleton{display:block;border-radius:var(--cat-border-radius-m, 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((1.125rem - 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 Qa=class{constructor(e){t(this,e);this.effect="sheen";this.variant="rectangle";this.size="m";this.lines=undefined}render(){return e(r,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)}};Qa.style=Xa;const tn=":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 en=class{constructor(e){t(this,e);this.size="m";this.a11yLabel=undefined}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"})))}};en.style=tn;const rn=":host{display:block}:host([hidden]){display:none}";let an=0;const nn=class{constructor(e){t(this,e);this.catClick=a(this,"catClick",7);this.label="";this.icon=undefined;this.iconOnly=false;this.iconRight=false;this.url=undefined;this.urlTarget=undefined;this.deactivated=false;this.error=false;this.nativeAttributes=undefined}connectedCallback(){if(!this.hostElement.id){this.hostElement.id=`cat-tab-${an++}`}}onClick(t){this.catClick.emit(t)}render(){return e(r,null)}get hostElement(){return i(this)}};nn.style=rn;const on=':host{display:flex;flex-direction:row;box-shadow:inset 0 -1px 0 0 rgb(var(--cat-border-color, 235, 236, 240))}: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}.cat-tab{display:inline-flex;flex-direction:column;align-items:center;justify-content:space-between;position:relative;transition:none}.cat-tab:first-of-type{margin-left:-0.75rem}.cat-tab:last-of-type{margin-right:-0.75rem}.cat-tab::after{opacity:0;content:"";position:absolute;background:currentColor;left:0.75rem;right:0.75rem;bottom:0;height:2px}.cat-tab:hover::after{opacity:0.25}.cat-tab.cat-tab-active{font-weight:700;color:rgb(var(--cat-primary-text-active, 2, 99, 113))}.cat-tab.cat-tab-error{color:rgb(var(--cat-danger-text-active, 174, 42, 10))}.cat-tab.cat-tab-active::after{opacity:1}';const sn=class{constructor(e){t(this,e);this.catChange=a(this,"catChange",7);this.tabs=[];this.activeTab="";this.tabsAlign="left"}componentWillLoad(){this.syncTabs()}componentDidLoad(){this.mutationObserver=new MutationObserver((t=>t.some((t=>t.target.nodeName==="CAT-TAB"))&&this.syncTabs()));this.mutationObserver?.observe(this.hostElement,{childList:true,attributes:true,subtree:true})}disconnectedCallback(){this.mutationObserver?.disconnect()}onActiveTabChange(t){const e=this.tabs.findIndex((e=>e.id===t));this.catChange.emit({id:t,index:e})}onKeydown(t){if(["ArrowDown","ArrowUp","ArrowRight","ArrowLeft"].includes(t.key)){const e=this.hostElement.shadowRoot?.querySelectorAll('cat-button[role="tab"]');const r=Array.from(e??[]).filter((t=>!t.disabled));const i=this.hostElement.shadowRoot?.activeElement;const a=i?r.indexOf(i):-1;const n=["ArrowDown","ArrowRight"].includes(t.key)?1:-1;const o=a<0?0:(a+n+r.length)%r.length;r[o].doFocus();t.preventDefault()}}async setActive(t){this.activate(this.tabs.find((e=>e.id===t)))}async setActiveIndex(t){this.activate(this.tabs[t])}render(){return e(r,null,this.tabs.map((t=>e("cat-button",{buttonId:t.id,role:"tab",part:"tab",class:{"cat-tab":true,"cat-tab-active":t.id===this.activeTab,"cat-tab-error":t.error},active:t.id===this.activeTab,color:t.error?"danger":t.id===this.activeTab?"primary":"secondary",variant:"text",icon:t.icon?t.error?"$cat:input-error":t.icon:undefined,iconOnly:t.iconOnly,iconRight:t.iconRight,url:t.url,disabled:t.deactivated,urlTarget:t.urlTarget,onCatClick:()=>this.click(t),nativeAttributes:{...t.nativeAttributes},nativeContentAttributes:{"data-text":t.label},"data-dropdown-no-close":true},t.label))))}syncTabs(){this.tabs=Array.from(this.hostElement.querySelectorAll("cat-tab"));this.activeTab=this.activeTab||this.tabs.filter((t=>this.canActivate(t)))[0]?.id}canActivate(t){return!!t&&!t.deactivated&&!t.url&&t.id!==this.activeTab}click(t){if(this.canActivate(t)){t.click();this.activate(t)}}activate(t){if(this.canActivate(t)){this.activeTab=t.id}}get hostElement(){return i(this)}static get watchers(){return{activeTab:["onActiveTabChange"]}}};sn.style=on;var ln=new Map;function cn(t){var e=ln.get(t);e&&e.destroy()}function dn(t){var e=ln.get(t);e&&e.update()}var hn=null;"undefined"==typeof window?((hn=function(t){return t}).destroy=function(t){return t},hn.update=function(t){return t}):((hn=function(t,e){return t&&Array.prototype.forEach.call(t.length?t:[t],(function(t){return function(t){if(t&&t.nodeName&&"TEXTAREA"===t.nodeName&&!ln.has(t)){var e,r=null,i=window.getComputedStyle(t),a=(e=t.value,function(){o({testForHeightReduction:""===e||!t.value.startsWith(e),restoreTextAlign:null}),e=t.value}),n=function(e){t.removeEventListener("autosize:destroy",n),t.removeEventListener("autosize:update",s),t.removeEventListener("input",a),window.removeEventListener("resize",s),Object.keys(e).forEach((function(r){return t.style[r]=e[r]})),ln.delete(t)}.bind(t,{height:t.style.height,resize:t.style.resize,textAlign:t.style.textAlign,overflowY:t.style.overflowY,overflowX:t.style.overflowX,wordWrap:t.style.wordWrap});t.addEventListener("autosize:destroy",n),t.addEventListener("autosize:update",s),t.addEventListener("input",a),window.addEventListener("resize",s),t.style.overflowX="hidden",t.style.wordWrap="break-word",ln.set(t,{destroy:n,update:s}),s()}function o(e){var a,n,s=e.restoreTextAlign,l=void 0===s?null:s,c=e.testForHeightReduction,d=void 0===c||c,h=i.overflowY;if(0!==t.scrollHeight&&("vertical"===i.resize?t.style.resize="none":"both"===i.resize&&(t.style.resize="horizontal"),d&&(a=function(t){for(var e=[];t&&t.parentNode&&t.parentNode instanceof Element;)t.parentNode.scrollTop&&e.push([t.parentNode,t.parentNode.scrollTop]),t=t.parentNode;return function(){return e.forEach((function(t){var e=t[0],r=t[1];e.style.scrollBehavior="auto",e.scrollTop=r,e.style.scrollBehavior=null}))}}(t),t.style.height=""),n="content-box"===i.boxSizing?t.scrollHeight-(parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)):t.scrollHeight+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),"none"!==i.maxHeight&&n>parseFloat(i.maxHeight)?("hidden"===i.overflowY&&(t.style.overflow="scroll"),n=parseFloat(i.maxHeight)):"hidden"!==i.overflowY&&(t.style.overflow="hidden"),t.style.height=n+"px",l&&(t.style.textAlign=l),a&&a(),r!==n&&(t.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),r=n),h!==i.overflow&&!l)){var u=i.textAlign;"hidden"===i.overflow&&(t.style.textAlign="start"===u?"end":"start"),o({restoreTextAlign:u,testForHeightReduction:!0})}}function s(){o({testForHeightReduction:!0,restoreTextAlign:null})}}(t)})),t}).destroy=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],cn),t},hn.update=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],dn),t});var un=hn;const fn='.hint-wrapper{flex:0 1 auto;display:flex;gap:0.5rem}.hint-section{flex:1 1 auto;display:flex;flex-direction:column;gap:0.25rem;color:rgb(var(--cat-font-color-muted, 81, 92, 108));font-size:0.875rem;line-height:1.125rem}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){margin:0 !important}.cat-bg-primary{background-color:rgb(var(--cat-primary-bg, 0, 129, 148)) !important;color:rgb(var(--cat-primary-fill, 255, 255, 255)) !important;--cat-primary-text:cat-token("color.theme.primary.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.primary.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.primary.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-bg-primary-hover{transition:background-color 125ms, color 125ms}.cat-bg-primary-hover:hover{background-color:rgb(var(--cat-primary-bg-hover, 1, 115, 132)) !important;color:rgb(var(--cat-primary-fill-hover, 255, 255, 255)) !important;--cat-primary-text:cat-token("color.theme.primary.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.primary.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.primary.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-text-primary,.cat-link-primary{color:rgb(var(--cat-primary-text, 0, 129, 148)) !important}.cat-link-primary,.cat-text-primary-hover{transition:color 125ms}.cat-link-primary:hover,.cat-text-primary-hover:hover{color:rgb(var(--cat-primary-text-hover, 1, 115, 132)) !important}.cat-link-primary:active,.cat-text-primary-hover:active{color:rgb(var(--cat-primary-text-active, 2, 99, 113)) !important}.cat-bg-primaryInverted{background-color:#93b4f2 !important;color:black !important;--cat-primary-text:cat-token("color.theme.primaryInverted.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.primaryInverted.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.primaryInverted.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-bg-primaryInverted-hover{transition:background-color 125ms, color 125ms}.cat-bg-primaryInverted-hover:hover{background-color:#93b4f2 !important;color:black !important;--cat-primary-text:cat-token("color.theme.primaryInverted.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.primaryInverted.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.primaryInverted.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-text-primaryInverted,.cat-link-primaryInverted{color:#93b4f2 !important}.cat-link-primaryInverted,.cat-text-primaryInverted-hover{transition:color 125ms}.cat-link-primaryInverted:hover,.cat-text-primaryInverted-hover:hover{color:#93b4f2 !important}.cat-link-primaryInverted:active,.cat-text-primaryInverted-hover:active{color:#93b4f2 !important}.cat-bg-secondary{background-color:rgb(var(--cat-secondary-bg, 105, 118, 135)) !important;color:rgb(var(--cat-secondary-fill, 255, 255, 255)) !important;--cat-primary-text:cat-token("color.theme.secondary.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.secondary.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.secondary.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-bg-secondary-hover{transition:background-color 125ms, color 125ms}.cat-bg-secondary-hover:hover{background-color:rgb(var(--cat-secondary-bg-hover, 105, 118, 135)) !important;color:rgb(var(--cat-secondary-fill-hover, 255, 255, 255)) !important;--cat-primary-text:cat-token("color.theme.secondary.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.secondary.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.secondary.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-text-secondary,.cat-link-secondary{color:rgb(var(--cat-secondary-text, 0, 0, 0)) !important}.cat-link-secondary,.cat-text-secondary-hover{transition:color 125ms}.cat-link-secondary:hover,.cat-text-secondary-hover:hover{color:rgb(var(--cat-secondary-text-hover, 0, 0, 0)) !important}.cat-link-secondary:active,.cat-text-secondary-hover:active{color:rgb(var(--cat-secondary-text-active, 0, 0, 0)) !important}.cat-bg-secondaryInverted{background-color:#697687 !important;color:black !important;--cat-primary-text:cat-token("color.theme.secondaryInverted.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.secondaryInverted.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.secondaryInverted.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-bg-secondaryInverted-hover{transition:background-color 125ms, color 125ms}.cat-bg-secondaryInverted-hover:hover{background-color:#697687 !important;color:black !important;--cat-primary-text:cat-token("color.theme.secondaryInverted.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.secondaryInverted.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.secondaryInverted.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-text-secondaryInverted,.cat-link-secondaryInverted{color:white !important}.cat-link-secondaryInverted,.cat-text-secondaryInverted-hover{transition:color 125ms}.cat-link-secondaryInverted:hover,.cat-text-secondaryInverted-hover:hover{color:white !important}.cat-link-secondaryInverted:active,.cat-text-secondaryInverted-hover:active{color:white !important}.cat-bg-info{background-color:rgb(var(--cat-success-bg, 0, 115, 230)) !important;color:rgb(var(--cat-success-fill, 255, 255, 255)) !important;--cat-primary-text:cat-token("color.theme.info.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.info.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.info.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-bg-info-hover{transition:background-color 125ms, color 125ms}.cat-bg-info-hover:hover{background-color:rgb(var(--cat-success-bg-hover, 0, 107, 227)) !important;color:rgb(var(--cat-success-fill-hover, 255, 255, 255)) !important;--cat-primary-text:cat-token("color.theme.info.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.info.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.info.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-text-info,.cat-link-info{color:rgb(var(--cat-success-text, 0, 115, 230)) !important}.cat-link-info,.cat-text-info-hover{transition:color 125ms}.cat-link-info:hover,.cat-text-info-hover:hover{color:rgb(var(--cat-success-text-hover, 0, 107, 227)) !important}.cat-link-info:active,.cat-text-info-hover:active{color:rgb(var(--cat-success-text-active, 0, 96, 223)) !important}.cat-bg-success{background-color:rgb(var(--cat-success-bg, 0, 132, 88)) !important;color:rgb(var(--cat-success-fill, 255, 255, 255)) !important;--cat-primary-text:cat-token("color.theme.success.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.success.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.success.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-bg-success-hover{transition:background-color 125ms, color 125ms}.cat-bg-success-hover:hover{background-color:rgb(var(--cat-success-bg-hover, 0, 117, 78)) !important;color:rgb(var(--cat-success-fill-hover, 255, 255, 255)) !important;--cat-primary-text:cat-token("color.theme.success.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.success.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.success.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-text-success,.cat-link-success{color:rgb(var(--cat-success-text, 0, 132, 88)) !important}.cat-link-success,.cat-text-success-hover{transition:color 125ms}.cat-link-success:hover,.cat-text-success-hover:hover{color:rgb(var(--cat-success-text-hover, 0, 117, 78)) !important}.cat-link-success:active,.cat-text-success-hover:active{color:rgb(var(--cat-success-text-active, 0, 105, 70)) !important}.cat-bg-warning{background-color:rgb(var(--cat-warning-bg, 255, 206, 128)) !important;color:rgb(var(--cat-warning-fill, 0, 0, 0)) !important;--cat-primary-text:cat-token("color.theme.warning.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.warning.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.warning.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-bg-warning-hover{transition:background-color 125ms, color 125ms}.cat-bg-warning-hover:hover{background-color:rgb(var(--cat-warning-bg-hover, 255, 214, 148)) !important;color:rgb(var(--cat-warning-fill-hover, 0, 0, 0)) !important;--cat-primary-text:cat-token("color.theme.warning.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.warning.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.warning.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-text-warning,.cat-link-warning{color:rgb(var(--cat-warning-text, 159, 97, 0)) !important}.cat-link-warning,.cat-text-warning-hover{transition:color 125ms}.cat-link-warning:hover,.cat-text-warning-hover:hover{color:rgb(var(--cat-warning-text-hover, 159, 97, 0)) !important}.cat-link-warning:active,.cat-text-warning-hover:active{color:rgb(var(--cat-warning-text-active, 159, 97, 0)) !important}.cat-bg-danger{background-color:rgb(var(--cat-danger-bg, 217, 52, 13)) !important;color:rgb(var(--cat-danger-fill, 255, 255, 255)) !important;--cat-primary-text:cat-token("color.theme.danger.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.danger.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.danger.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-bg-danger-hover{transition:background-color 125ms, color 125ms}.cat-bg-danger-hover:hover{background-color:rgb(var(--cat-danger-bg-hover, 194, 46, 11)) !important;color:rgb(var(--cat-danger-fill-hover, 255, 255, 255)) !important;--cat-primary-text:cat-token("color.theme.danger.fill", $wrap: false);--cat-primary-text-hover:cat-token("color.theme.danger.fill-hover", $wrap: false);--cat-primary-text-active:cat-token("color.theme.danger.fill-active", $wrap: false);--cat-link-decoration:underline}.cat-text-danger,.cat-link-danger{color:rgb(var(--cat-danger-text, 217, 52, 13)) !important}.cat-link-danger,.cat-text-danger-hover{transition:color 125ms}.cat-link-danger:hover,.cat-text-danger-hover:hover{color:rgb(var(--cat-danger-text-hover, 194, 46, 11)) !important}.cat-link-danger:active,.cat-text-danger-hover:active{color:rgb(var(--cat-danger-text-active, 174, 42, 10)) !important}.cat-active{color:rgb(var(--cat-primary-text, 0, 129, 148)) !important}.cat-text-active{color:rgb(var(--cat-primary-text, 0, 129, 148)) !important}.cat-muted{color:rgb(var(--cat-font-color-muted, 81, 92, 108)) !important}.cat-text-muted{color:rgb(var(--cat-font-color-muted, 81, 92, 108)) !important}.cat-bg-muted{background-color:#f2f4f7 !important}.cat-text-reset{color:inherit !important}.cat-link-reset{color:inherit !important;text-decoration:inherit !important}.label{overflow:hidden;word-wrap:break-word;word-break:break-word}.input-field:not(.input-horizontal) .label-container.hidden,.textarea-field:not(.textarea-horizontal) .label-container.hidden,.select-field:not(.select-horizontal) .label-container.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}.label-container{flex-basis:var(--label-size, 33.33%)}.label-container .label-wrapper{display:flex;gap:0.25rem}.label-metadata{display:flex;flex-shrink:0;flex-grow:1;justify-content:space-between;gap:0.25rem;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}.label-optional,.label-character-count{display:inline-flex;align-items:center;max-height:1.25rem;font-size:0.75rem;line-height:1rem}.label-character-count{margin-left:auto}.input-horizontal .label-container.hidden label,.textarea-horizontal .label-container.hidden label,.select-horizontal .label-container.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}.input-horizontal .label-wrapper,.textarea-horizontal .label-wrapper,.select-horizontal .label-wrapper{flex-direction:column}.input-horizontal label,.textarea-horizontal label,.select-horizontal label{min-height:2.5rem;display:inline-flex;align-items:center}.input-horizontal .label-metadata,.textarea-horizontal .label-metadata,.select-horizontal .label-metadata{justify-content:flex-start}.input-horizontal .label-metadata .label-character-count,.textarea-horizontal .label-metadata .label-character-count,.select-horizontal .label-metadata .label-character-count{margin-left: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)}:host([hidden]){display:none}.textarea-field,.textarea-container{display:flex;flex-direction:column;gap:0.5rem;flex:1 1 auto}.textarea-field.textarea-horizontal{flex-direction:row;gap:1rem}.textarea-readonly{pointer-events:none}.textarea-wrapper{position:relative;display:flex;flex-direction:column}.icon-suffix{position:absolute;top:calc(0.625rem - 2px);right:0.75rem;background:rgba(255, 255, 255, 0.75);border-radius:100rem}.textarea-disabled .icon-suffix{background:rgba(242, 244, 247, 0.75)}textarea{margin:0;padding:0.625rem 0.75rem;box-sizing:border-box;min-height:2.5rem;font:inherit;background:white;border-radius:var(--cat-border-radius-m, 0.25rem);border:none;box-shadow:inset 0 0 0 1px rgb(var(--border-color));transition:box-shadow 125ms linear;resize:vertical;--border-color:var(--cat-border-color-dark, 215, 219, 224);}textarea:disabled{background:#f2f4f7;cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 81, 92, 108));resize:none}textarea:not(:disabled):hover{box-shadow:inset 0 0 0 1px rgb(var(--border-color)), 0 0 0 1px rgb(var(--border-color))}textarea:focus{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:-1px}.textarea-invalid textarea{--border-color:var(--cat-danger-bg, 217, 52, 13), 0.2}textarea::placeholder{color:rgb(var(--cat-font-color-muted, 81, 92, 108))}textarea:-webkit-autofill,textarea:-webkit-autofill:hover,textarea:-webkit-autofill:focus{-webkit-box-shadow:0 0 0 9999px #e8f0fe inset}';let pn=0;const mn=class{constructor(e){t(this,e);this.catChange=a(this,"catChange",7);this.catFocus=a(this,"catFocus",7);this.catBlur=a(this,"catBlur",7);this._id=`cat-textarea-${pn++}`;this.hasSlottedLabel=false;this.hasSlottedHint=false;this.errorMap=undefined;this.requiredMarker="optional";this.horizontal=false;this.disabled=false;this.hint=undefined;this.identifier=undefined;this.label="";this.labelHidden=false;this.maxLength=undefined;this.minLength=undefined;this.name=undefined;this.placeholder=undefined;this.readonly=false;this.required=false;this.rows=3;this.value=undefined;this.errors=undefined;this.errorUpdate=0;this.nativeAttributes=undefined}get id(){return this.identifier||this._id}componentWillRender(){this.onErrorsChanged(this.errors);this.hasSlottedLabel=!!this.hostElement.querySelector('[slot="label"]');this.hasSlottedHint=!!this.hostElement.querySelector('[slot="hint"]');if(!this.label&&!this.hasSlottedLabel){z.warn("[A11y] Missing ARIA label on textarea",this)}}componentDidLoad(){un(this.textarea)}async doFocus(t){this.textarea.focus(t)}async doBlur(){this.textarea.blur()}async clear(){this.value="";this.catChange.emit(this.value)}onErrorsChanged(t){if(!Ia(this.errorUpdate)){this.errorMap=undefined}else{this.errorMapSrc=Array.isArray(t)?t.reduce(((t,e)=>({...t,[e]:undefined})),{}):t===true?{}:t||undefined;this.showErrorsIfTimeout()||this.showErrorsIfNoFocus()}}render(){return e(r,null,e("div",{class:{"textarea-field":true,"textarea-horizontal":this.horizontal}},e("div",{class:{"label-container":true,hidden:this.labelHidden}},(this.hasSlottedLabel||this.label)&&e("label",{htmlFor:this.id,part:"label"},e("span",{class:"label-wrapper"},this.hasSlottedLabel&&e("slot",{name:"label"})||this.label,e("div",{class:"label-metadata"},!this.required&&(this.requiredMarker??"optional").startsWith("optional")&&e("span",{class:"label-optional","aria-hidden":"true"},"(",I.t("input.optional"),")"),this.required&&this.requiredMarker?.startsWith("required")&&e("span",{class:"label-optional","aria-hidden":"true"},"(",I.t("input.required"),")"),this.maxLength&&e("div",{class:"label-character-count","aria-hidden":"true"},this.value?.length??0,"/",this.maxLength))))),e("div",{class:"textarea-container"},e("div",{class:{"textarea-wrapper":true,"textarea-readonly":this.readonly,"textarea-disabled":this.disabled,"textarea-invalid":this.invalid}},e("textarea",{...this.nativeAttributes,part:"textarea",ref:t=>this.textarea=t,id:this.id,disabled:this.disabled,maxlength:this.maxLength,minlength:this.minLength,name:this.name,placeholder:this.placeholder,readonly:this.readonly,required:this.required,rows:this.rows,value:this.value,onInput:this.onInput.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlur.bind(this),"aria-invalid":this.invalid?"true":undefined,"aria-describedby":this.hasHint?this.id+"-hint":undefined}),this.invalid&&e("cat-icon",{icon:"$cat:input-error",class:"icon-suffix cat-text-danger",size:"l",onClick:()=>this.textarea.focus()})),this.hasHint&&e(te,{id:this.id,hint:this.hint,slottedHint:this.hasSlottedHint&&e("slot",{name:"hint"}),errorMap:this.errorMap}))))}get hasHint(){return!!this.hint||!!this.hasSlottedHint||this.invalid}get invalid(){return!!Object.keys(this.errorMap||{}).length}onInput(){this.value=this.textarea.value;this.catChange.emit(this.value);this.showErrorsIfTimeout()}onFocus(t){this.catFocus.emit(t)}onBlur(t){this.catBlur.emit(t);if(Ia(this.errorUpdate)){this.showErrors()}}showErrors(){this.errorMap=this.errorMapSrc}showErrorsIfTimeout(){const t=$a(this.errorUpdate,null);if(t!==null){typeof this.errorUpdateTimeoutId==="number"&&window.clearTimeout(this.errorUpdateTimeoutId);this.errorUpdateTimeoutId=window.setTimeout((()=>this.showErrors()),t);return true}return false}showErrorsIfNoFocus(){const t=document.activeElement===this.hostElement||document.activeElement===this.textarea;if(!t){this.showErrors()}}get hostElement(){return i(this)}static get watchers(){return{errors:["onErrorsChanged"]}}};mn.style=fn;const bn='.hint-wrapper{flex:0 1 auto;display:flex;gap:0.5rem}.hint-section{flex:1 1 auto;display:flex;flex-direction:column;gap:0.25rem;color:rgb(var(--cat-font-color-muted, 81, 92, 108));font-size:0.875rem;line-height:1.125rem}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){margin:0 !important}:host{display:flex;flex-direction:column;gap:0.5rem}: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-placeholder{width:calc(2rem + 1px);flex-shrink:0}.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:rgb(var(--cat-border-color-dark, 215, 219, 224));transition:background-color 125ms ease;pointer-events:none}:checked+.toggle{background-color:rgb(var(--cat-primary-bg, 0, 129, 148))}: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 125ms linear;box-shadow:0 1px 2px rgba(27, 31, 38, 0.06), 0 1px 3px rgba(27, 31, 38, 0.1)}:checked+.toggle::after{transform:translateX(calc(-2px + 0.5rem));background:rgb(var(--cat-primary-fill, 255, 255, 255))}.is-disabled .toggle{background-color:rgb(var(--cat-border-color-dark, 215, 219, 224))}:host(.cat-error) .toggle{background-color:rgba(var(--cat-danger-bg, 217, 52, 13), 0.2)}:host(.cat-error) :checked+.toggle{background-color:rgb(var(--cat-danger-bg, 217, 52, 13))}:host(.cat-error) :checked+.toggle::after{background:rgb(var(--cat-danger-fill, 255, 255, 255))}.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, 81, 92, 108))}';let vn=0;const gn=class{constructor(e){t(this,e);this.catChange=a(this,"catChange",7);this.catFocus=a(this,"catFocus",7);this.catBlur=a(this,"catBlur",7);this._id=`cat-toggle-${vn++}`;this.hasSlottedLabel=false;this.hasSlottedHint=false;this.checked=false;this.disabled=false;this.identifier=undefined;this.label="";this.labelHidden=false;this.name=undefined;this.required=false;this.value=undefined;this.noValue=undefined;this.resolvedValue=null;this.hint=undefined;this.labelLeft=false;this.nativeAttributes=undefined}get id(){return this.identifier||this._id}componentWillLoad(){this.updateResolved()}componentWillRender(){this.hasSlottedLabel=!!this.hostElement.querySelector('[slot="label"]');this.hasSlottedHint=!!this.hostElement.querySelector('[slot="hint"]');if(!this.label&&!this.hasSlottedLabel){z.warn("[A11y] Missing ARIA label on toggle",this)}}async doFocus(t){this.input.focus(t)}async doBlur(){this.input.blur()}render(){return e(r,null,e("label",{htmlFor:this.id,class:{"is-hidden":this.labelHidden,"is-disabled":this.disabled,"label-left":this.labelLeft}},e("input",{...this.nativeAttributes,part:"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),"aria-describedby":this.hasHint?this.id+"-hint":undefined}),e("span",{class:"toggle"}),e("span",{class:"label",part:"label"},this.hasSlottedLabel&&e("slot",{name:"label"})||this.label)),this.hasHint&&e("div",{class:{"hint-wrapper":true,"label-left":this.labelLeft}},e("div",{class:"toggle-placeholder"}),e(te,{id:this.id,hint:this.hint,slottedHint:this.hasSlottedHint&&e("slot",{name:"hint"})})))}get hasHint(){return!!this.hint||!!this.hasSlottedHint}onInput(){this.checked=this.input.checked;this.updateResolved();this.catChange.emit(this.resolvedValue)}onFocus(t){this.catFocus.emit(t)}onBlur(t){this.catBlur.emit(t)}updateResolved(){this.resolvedValue=this.checked?this.value??true:this.noValue??false}get hostElement(){return i(this)}};gn.style=bn;const yn="ontouchstart"in window||navigator.maxTouchPoints>0;const xn=':host{display:contents}:host([hidden]){display:none}.tooltip{--cat-font-color-head:cat-token("color.ui.font.tooltip", $wrap: false);--cat-font-color-body:cat-token("color.ui.font.tooltip", $wrap: false);position:fixed;width:max-content;top:0;left:0;box-sizing:border-box;font-size:0.875rem;line-height:1.125rem;font-weight:500;background-color:rgb(var(--cat-bg-tooltip, 0, 0, 0));border-radius:var(--cat-border-radius-m, 0.25rem);color:rgb(var(--cat-font-color-tooltip, 255, 255, 255));transition:opacity 250ms linear, visibility 250ms linear;visibility:hidden;opacity:0;box-shadow:rgba(0, 0, 0, 0.08) 0 1px 8px 0;z-index:calc(var(--cat-z-index, 1000) + 200);max-width:min(100vw - 0.5rem, 20rem)}.tooltip-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}.tooltip-show{opacity:1;visibility:visible}.tooltip p{margin:0}.tooltip-round{border-radius:10rem}.tooltip-s{padding:0.375rem 0.5rem}.tooltip-s.tooltip-round{padding:0.375rem 0.75rem}.tooltip-m{padding:0.75rem}.tooltip-m.tooltip-round{padding:0.75rem 1rem}.tooltip-l{padding:1rem}.tooltip-l.tooltip-round{padding:1rem 1.5rem}';let wn=0;const kn=class{constructor(e){t(this,e);this.id=`cat-tooltip-${wn++}`;this.inactive=false;this.open=false;this.content="";this.disabled=false;this.placement="top";this.round=false;this.size="m";this.showDelay=250;this.hideDelay=0;this.longTouchDuration=1e3;this.boundShowListener=this.showListener.bind(this);this.boundHideListener=this.hideListener.bind(this);this.boundWindowTouchStartListener=this.windowTouchStartListener.bind(this);this.boundTouchStartListener=this.touchStartListener.bind(this);this.boundTouchEndListener=this.touchEndListener.bind(this)}handleKeyDown({key:t}){t==="Escape"&&this.hideTooltip()}componentDidLoad(){const t=this.hostElement.shadowRoot?.querySelector("slot");this.trigger=t?.assignedElements?.()?.[0];if(this.trigger&&!this.trigger.hasAttribute("aria-describedby")){this.trigger.setAttribute("aria-describedby",this.id)}if(yn){window.addEventListener("touchstart",this.boundWindowTouchStartListener);this.trigger?.addEventListener("touchstart",this.boundTouchStartListener);this.trigger?.addEventListener("touchend",this.boundTouchEndListener)}else{this.trigger?.addEventListener("focusin",this.boundShowListener);this.trigger?.addEventListener("focusout",this.boundHideListener);this.trigger?.addEventListener("mouseenter",this.boundShowListener);this.trigger?.addEventListener("mouseleave",this.boundHideListener)}}componentWillRender(){this.inactive=this.disabled||!this.content&&!this.hostElement.querySelector('[slot="content"]')}disconnectedCallback(){if(yn){window.removeEventListener("touchstart",this.boundWindowTouchStartListener);this.trigger?.removeEventListener("touchstart",this.boundTouchStartListener);this.trigger?.removeEventListener("touchend",this.boundTouchEndListener)}else{this.trigger?.removeEventListener("mouseenter",this.boundShowListener);this.trigger?.removeEventListener("mouseleave",this.boundHideListener);this.trigger?.removeEventListener("focusin",this.boundShowListener);this.trigger?.removeEventListener("focusout",this.boundHideListener)}}render(){return e(r,null,e("slot",null),e("div",{ref:t=>this.tooltip=t,id:this.id,role:"tooltip","aria-hidden":!this.open,"aria-live":this.open?"polite":"off",class:{tooltip:true,"tooltip-hidden":this.inactive,"tooltip-round":this.round,[`tooltip-${this.size}`]:Boolean(this.size)}},e("slot",{name:"content"},e("p",null,this.content))))}async update(){if(this.trigger&&this.tooltip){await gi(this.trigger,this.tooltip,{strategy:"fixed",placement:this.placement,middleware:[$r(kn.OFFSET),zr(),Cr({padding:kn.SHIFT_PADDING})]}).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.hideTimeout=undefined;if(!this.showTimeout){this.showTimeout=window.setTimeout((()=>{this.showTimeout=undefined;this.showTooltip()}),this.showDelay)}}hideListener(){window.clearTimeout(this.showTimeout);this.showTimeout=undefined;if(!this.hideTimeout){this.hideTimeout=window.setTimeout((()=>{this.hideTimeout=undefined;this.hideTooltip()}),this.hideDelay)}}touchStartListener(t){t.stopPropagation();if(!this.touchTimeout){this.touchTimeout=window.setTimeout((()=>{this.touchTimeout=undefined;this.showTooltip()}),this.longTouchDuration)}}touchEndListener(){window.clearTimeout(this.touchTimeout);this.touchTimeout=undefined;this.hideTooltip()}windowTouchStartListener(){this.hideTooltip()}showTooltip(){if(this.trigger&&this.tooltip){this.cleanupFloatingUi=vi(this.trigger,this.tooltip,(()=>this.update()))}if(!this.inactive){this.open=true;this.tooltip?.classList.add("tooltip-show")}}hideTooltip(){this.open=false;this.tooltip?.classList.remove("tooltip-show");this.cleanupFloatingUi?.();this.cleanupFloatingUi=undefined}get hostElement(){return i(this)}};kn.OFFSET=4;kn.SHIFT_PADDING=4;kn.style=xn;export{Ft as cat_alert,Ot as cat_avatar,Nt as cat_badge,qt as cat_button,Zt as cat_button_group,Qt as cat_card,ie as cat_checkbox,Je as cat_datepicker,qe as cat_datepicker_inline,ya as cat_dropdown,wa as cat_form_group,za as cat_icon,Aa as cat_input,Ra as cat_pagination,Ea as cat_radio,Oa as cat_radio_group,Na as cat_scrollable,qa as cat_select,Va as cat_select_demo,Qa as cat_skeleton,en as cat_spinner,nn as cat_tab,sn as cat_tabs,mn as cat_textarea,gn as cat_toggle,kn as cat_tooltip}; -//# sourceMappingURL=p-7a8cae77.entry.js.map \ No newline at end of file +//# sourceMappingURL=p-30644946.entry.js.map \ No newline at end of file diff --git a/build/p-7a8cae77.entry.js.map b/build/p-30644946.entry.js.map similarity index 100% rename from build/p-7a8cae77.entry.js.map rename to build/p-30644946.entry.js.map diff --git a/build/p-8135cdac.js b/build/p-8dbdcc2d.js similarity index 99% rename from build/p-8135cdac.js rename to build/p-8dbdcc2d.js index 8491c113..ca6b5d03 100644 --- a/build/p-8135cdac.js +++ b/build/p-8dbdcc2d.js @@ -1,2 +1,2 @@ -import{p as e,b as a}from"./p-6cd4fa1e.js";export{s as setNonce}from"./p-6cd4fa1e.js";const t=()=>{const a=import.meta.url;const t={};if(a!==""){t.resourcesUrl=new URL(".",a).href}return e(t)};t().then((e=>a([["p-7a8cae77",[[0,"cat-select-demo"],[1,"cat-datepicker",{requiredMarker:[1,"required-marker"],horizontal:[4],autoComplete:[1,"auto-complete"],clearable:[4],disabled:[4],hint:[1],icon:[1],iconRight:[4,"icon-right"],identifier:[1],label:[1],labelHidden:[4,"label-hidden"],max:[1],min:[1],mode:[1],name:[1],placeholder:[1],textPrefix:[1,"text-prefix"],textSuffix:[1,"text-suffix"],readonly:[4],required:[4],step:[2],value:[1025],errors:[4],errorUpdate:[8,"error-update"],nativeAttributes:[16],nativePickerAttributes:[16],hasSlottedLabel:[32],hasSlottedHint:[32],doFocus:[64],doBlur:[64]},null,{value:["onValueChanged"],disabled:["onDisabledChanged"],readonly:["onDisabledChanged"],min:["onMinChanged"],max:["onMinChanged"]}],[1,"cat-pagination",{page:[1026],pageCount:[2,"page-count"],activePadding:[2,"active-padding"],sidePadding:[2,"side-padding"],size:[1],variant:[1],round:[4],compact:[4],iconPrev:[1,"icon-prev"],iconNext:[1,"icon-next"]}],[1,"cat-tabs",{activeTab:[1537,"active-tab"],tabsAlign:[1,"tabs-align"],tabs:[32],setActive:[64],setActiveIndex:[64]},[[0,"keydown","onKeydown"]],{activeTab:["onActiveTabChange"]}],[1,"cat-alert",{color:[513],icon:[1],noIcon:[4,"no-icon"]}],[1,"cat-textarea",{requiredMarker:[1,"required-marker"],horizontal:[4],disabled:[4],hint:[1],identifier:[1],label:[1],labelHidden:[4,"label-hidden"],maxLength:[2,"max-length"],minLength:[2,"min-length"],name:[1],placeholder:[1],readonly:[4],required:[4],rows:[2],value:[1025],errors:[4],errorUpdate:[8,"error-update"],nativeAttributes:[16],hasSlottedLabel:[32],hasSlottedHint:[32],errorMap:[32],doFocus:[64],doBlur:[64],clear:[64]},null,{errors:["onErrorsChanged"]}],[1,"cat-badge",{variant:[513],color:[513],size:[513],round:[516],pulse:[516]}],[1,"cat-button-group",{a11yLabel:[1,"a11y-label"]}],[1,"cat-card"],[1,"cat-datepicker-inline",{disabled:[4],max:[1],min:[1],mode:[1],readonly:[4],step:[2],value:[1025],nativePickerAttributes:[16]},null,{value:["onValueChanged"],disabled:["onDisabledChanged"],readonly:["onDisabledChanged"]}],[1,"cat-form-group",{requiredMarker:[1,"required-marker"],horizontal:[4],labelSize:[1,"label-size"]},null,{requiredMarker:["onRequiredMarkerChanged"],horizontal:["onHorizontalChanged"]}],[1,"cat-radio",{checked:[1028],disabled:[4],identifier:[1],label:[1],labelHidden:[4,"label-hidden"],name:[1],required:[4],value:[1],hint:[1],labelLeft:[4,"label-left"],nativeAttributes:[16],hasSlottedLabel:[32],hasSlottedHint:[32],doFocus:[64],doBlur:[64]}],[1,"cat-radio-group",{name:[1],value:[1025],disabled:[4],a11yLabel:[1,"a11y-label"],labelLeft:[4,"label-left"]},[[0,"keydown","onKeydown"],[0,"input","onInput"],[2,"focus","onFocus"],[2,"blur","onBlur"]],{name:["onNameChanged"],value:["onValueChanged"],disabled:["onDisabledChanged"],labelLeft:["onLabelLeftChanged"]}],[1,"cat-tab",{label:[513],icon:[513],iconOnly:[520,"icon-only"],iconRight:[516,"icon-right"],url:[513],urlTarget:[513,"url-target"],deactivated:[516],error:[516],nativeAttributes:[16]},[[0,"click","onClick"]]],[1,"cat-toggle",{checked:[1028],disabled:[4],identifier:[1],label:[1],labelHidden:[4,"label-hidden"],name:[1],required:[4],value:[8],noValue:[8,"no-value"],resolvedValue:[1032,"resolved-value"],hint:[1],labelLeft:[4,"label-left"],nativeAttributes:[16],hasSlottedLabel:[32],hasSlottedHint:[32],doFocus:[64],doBlur:[64]}],[1,"cat-tooltip",{content:[1],disabled:[4],placement:[1],round:[4],size:[1],showDelay:[2,"show-delay"],hideDelay:[2,"hide-delay"],longTouchDuration:[2,"long-touch-duration"],open:[32]},[[0,"keydown","handleKeyDown"]]],[1,"cat-select",{requiredMarker:[1,"required-marker"],horizontal:[4],multiple:[4],debounce:[2],placement:[1],value:[1025],disabled:[4],placeholder:[1],hint:[1],identifier:[1],label:[1],name:[1],labelHidden:[4,"label-hidden"],required:[4],clearable:[4],tags:[4],tagHint:[1,"tag-hint"],noItems:[1,"no-items"],errors:[4],errorUpdate:[8,"error-update"],nativeAttributes:[16],connector:[32],state:[32],hasSlottedLabel:[32],hasSlottedHint:[32],errorMap:[32],doFocus:[64],doBlur:[64],clear:[64],connect:[64]},[[0,"blur","onBlur"],[0,"keydown","onKeyDown"],[0,"keyup","onKeyUp"]],{connector:["onConnectorChanged"],value:["onValueChanged"],errors:["onErrorsChanged"],state:["onStateChanged"]}],[1,"cat-input",{requiredMarker:[1,"required-marker"],horizontal:[4],autoComplete:[1,"auto-complete"],clearable:[4],togglePassword:[4,"toggle-password"],disabled:[4],hint:[1],icon:[1],iconRight:[4,"icon-right"],identifier:[1],label:[1],labelHidden:[4,"label-hidden"],max:[8],maxLength:[2,"max-length"],min:[8],minLength:[2,"min-length"],name:[1],placeholder:[1],textPrefix:[1,"text-prefix"],textSuffix:[1,"text-suffix"],readonly:[4],required:[4],round:[4],type:[1],value:[1025],errors:[4],errorUpdate:[8,"error-update"],nativeAttributes:[16],hasSlottedLabel:[32],hasSlottedHint:[32],isPasswordShown:[32],errorMap:[32],doFocus:[64],doBlur:[64],clear:[64]},null,{errors:["onErrorsChanged"]}],[1,"cat-dropdown",{placement:[1],noAutoClose:[4,"no-auto-close"],overflow:[4],close:[64]},[[0,"catClick","clickHandler"]]],[1,"cat-avatar",{size:[1],round:[4],label:[1],initials:[1],src:[1],icon:[1],url:[1],urlTarget:[1,"url-target"],backgroundImage:[32]},null,{src:["onSrcChanged"]}],[1,"cat-checkbox",{checked:[1028],indeterminate:[1028],disabled:[4],identifier:[1],label:[1],labelHidden:[4,"label-hidden"],name:[1],required:[4],value:[8],noValue:[8,"no-value"],resolvedValue:[1032,"resolved-value"],hint:[1],labelLeft:[4,"label-left"],nativeAttributes:[16],hasSlottedLabel:[32],hasSlottedHint:[32],doFocus:[64],doBlur:[64]}],[1,"cat-scrollable",{noShadowX:[4,"no-shadow-x"],noShadowY:[4,"no-shadow-y"],noOverflowX:[4,"no-overflow-x"],noOverflowY:[4,"no-overflow-y"],noOverscroll:[4,"no-overscroll"],noScrolledInit:[4,"no-scrolled-init"],scrolledBuffer:[2,"scrolled-buffer"]}],[1,"cat-skeleton",{effect:[1],variant:[1],size:[1],lines:[2]}],[1,"cat-button",{variant:[1],color:[1],active:[4],size:[1],name:[1],value:[1],disabled:[4],loading:[4],submit:[4],noEllipsis:[4,"no-ellipsis"],round:[4],url:[1],urlTarget:[1,"url-target"],icon:[1],iconOnly:[8,"icon-only"],iconRight:[4,"icon-right"],buttonId:[1,"button-id"],a11yLabel:[1,"a11y-label"],a11yCurrent:[1,"a11y-current"],nativeAttributes:[16],nativeContentAttributes:[16],buttonGroupPosition:[1,"button-group-position"],_iconOnly:[32],doFocus:[64],doBlur:[64],doClick:[64]},[[0,"click","haltDisabledEvents"]],{iconOnly:["onIconOnlyChanged"]}],[1,"cat-spinner",{size:[1],a11yLabel:[1,"a11y-label"]}],[1,"cat-icon",{icon:[1],iconSrc:[1,"icon-src"],size:[1],a11yLabel:[1,"a11y-label"]}]]]],e))); +import{p as e,b as a}from"./p-6cd4fa1e.js";export{s as setNonce}from"./p-6cd4fa1e.js";const t=()=>{const a=import.meta.url;const t={};if(a!==""){t.resourcesUrl=new URL(".",a).href}return e(t)};t().then((e=>a([["p-30644946",[[0,"cat-select-demo"],[1,"cat-datepicker",{requiredMarker:[1,"required-marker"],horizontal:[4],autoComplete:[1,"auto-complete"],clearable:[4],disabled:[4],hint:[1],icon:[1],iconRight:[4,"icon-right"],identifier:[1],label:[1],labelHidden:[4,"label-hidden"],max:[1],min:[1],mode:[1],name:[1],placeholder:[1],textPrefix:[1,"text-prefix"],textSuffix:[1,"text-suffix"],readonly:[4],required:[4],step:[2],value:[1025],errors:[4],errorUpdate:[8,"error-update"],nativeAttributes:[16],nativePickerAttributes:[16],hasSlottedLabel:[32],hasSlottedHint:[32],doFocus:[64],doBlur:[64]},null,{value:["onValueChanged"],disabled:["onDisabledChanged"],readonly:["onDisabledChanged"],min:["onMinChanged"],max:["onMinChanged"]}],[1,"cat-pagination",{page:[1026],pageCount:[2,"page-count"],activePadding:[2,"active-padding"],sidePadding:[2,"side-padding"],size:[1],variant:[1],round:[4],compact:[4],iconPrev:[1,"icon-prev"],iconNext:[1,"icon-next"]}],[1,"cat-tabs",{activeTab:[1537,"active-tab"],tabsAlign:[1,"tabs-align"],tabs:[32],setActive:[64],setActiveIndex:[64]},[[0,"keydown","onKeydown"]],{activeTab:["onActiveTabChange"]}],[1,"cat-alert",{color:[513],icon:[1],noIcon:[4,"no-icon"]}],[1,"cat-textarea",{requiredMarker:[1,"required-marker"],horizontal:[4],disabled:[4],hint:[1],identifier:[1],label:[1],labelHidden:[4,"label-hidden"],maxLength:[2,"max-length"],minLength:[2,"min-length"],name:[1],placeholder:[1],readonly:[4],required:[4],rows:[2],value:[1025],errors:[4],errorUpdate:[8,"error-update"],nativeAttributes:[16],hasSlottedLabel:[32],hasSlottedHint:[32],errorMap:[32],doFocus:[64],doBlur:[64],clear:[64]},null,{errors:["onErrorsChanged"]}],[1,"cat-badge",{variant:[513],color:[513],size:[513],round:[516],pulse:[516]}],[1,"cat-button-group",{a11yLabel:[1,"a11y-label"]}],[1,"cat-card"],[1,"cat-datepicker-inline",{disabled:[4],max:[1],min:[1],mode:[1],readonly:[4],step:[2],value:[1025],nativePickerAttributes:[16]},null,{value:["onValueChanged"],disabled:["onDisabledChanged"],readonly:["onDisabledChanged"]}],[1,"cat-form-group",{requiredMarker:[1,"required-marker"],horizontal:[4],labelSize:[1,"label-size"]},null,{requiredMarker:["onRequiredMarkerChanged"],horizontal:["onHorizontalChanged"]}],[1,"cat-radio",{checked:[1028],disabled:[4],identifier:[1],label:[1],labelHidden:[4,"label-hidden"],name:[1],required:[4],value:[1],hint:[1],labelLeft:[4,"label-left"],nativeAttributes:[16],hasSlottedLabel:[32],hasSlottedHint:[32],doFocus:[64],doBlur:[64]}],[1,"cat-radio-group",{name:[1],value:[1025],disabled:[4],a11yLabel:[1,"a11y-label"],labelLeft:[4,"label-left"]},[[0,"keydown","onKeydown"],[0,"input","onInput"],[2,"focus","onFocus"],[2,"blur","onBlur"]],{name:["onNameChanged"],value:["onValueChanged"],disabled:["onDisabledChanged"],labelLeft:["onLabelLeftChanged"]}],[1,"cat-tab",{label:[513],icon:[513],iconOnly:[520,"icon-only"],iconRight:[516,"icon-right"],url:[513],urlTarget:[513,"url-target"],deactivated:[516],error:[516],nativeAttributes:[16]},[[0,"click","onClick"]]],[1,"cat-toggle",{checked:[1028],disabled:[4],identifier:[1],label:[1],labelHidden:[4,"label-hidden"],name:[1],required:[4],value:[8],noValue:[8,"no-value"],resolvedValue:[1032,"resolved-value"],hint:[1],labelLeft:[4,"label-left"],nativeAttributes:[16],hasSlottedLabel:[32],hasSlottedHint:[32],doFocus:[64],doBlur:[64]}],[1,"cat-tooltip",{content:[1],disabled:[4],placement:[1],round:[4],size:[1],showDelay:[2,"show-delay"],hideDelay:[2,"hide-delay"],longTouchDuration:[2,"long-touch-duration"],open:[32]},[[0,"keydown","handleKeyDown"]]],[1,"cat-select",{requiredMarker:[1,"required-marker"],horizontal:[4],multiple:[4],debounce:[2],placement:[1],value:[1025],disabled:[4],placeholder:[1],hint:[1],identifier:[1],label:[1],name:[1],labelHidden:[4,"label-hidden"],required:[4],clearable:[4],tags:[4],tagHint:[1,"tag-hint"],noItems:[1,"no-items"],errors:[4],errorUpdate:[8,"error-update"],nativeAttributes:[16],connector:[32],state:[32],hasSlottedLabel:[32],hasSlottedHint:[32],errorMap:[32],doFocus:[64],doBlur:[64],clear:[64],connect:[64]},[[0,"blur","onBlur"],[0,"keydown","onKeyDown"],[0,"keyup","onKeyUp"]],{connector:["onConnectorChanged"],value:["onValueChanged"],errors:["onErrorsChanged"],state:["onStateChanged"]}],[1,"cat-input",{requiredMarker:[1,"required-marker"],horizontal:[4],autoComplete:[1,"auto-complete"],clearable:[4],togglePassword:[4,"toggle-password"],disabled:[4],hint:[1],icon:[1],iconRight:[4,"icon-right"],identifier:[1],label:[1],labelHidden:[4,"label-hidden"],max:[8],maxLength:[2,"max-length"],min:[8],minLength:[2,"min-length"],name:[1],placeholder:[1],textPrefix:[1,"text-prefix"],textSuffix:[1,"text-suffix"],readonly:[4],required:[4],round:[4],type:[1],value:[1025],errors:[4],errorUpdate:[8,"error-update"],nativeAttributes:[16],hasSlottedLabel:[32],hasSlottedHint:[32],isPasswordShown:[32],errorMap:[32],doFocus:[64],doBlur:[64],clear:[64]},null,{errors:["onErrorsChanged"]}],[1,"cat-dropdown",{placement:[1],noAutoClose:[4,"no-auto-close"],overflow:[4],close:[64]},[[0,"catClick","clickHandler"]]],[1,"cat-avatar",{size:[1],round:[4],label:[1],initials:[1],src:[1],icon:[1],url:[1],urlTarget:[1,"url-target"],backgroundImage:[32]},null,{src:["onSrcChanged"]}],[1,"cat-checkbox",{checked:[1028],indeterminate:[1028],disabled:[4],identifier:[1],label:[1],labelHidden:[4,"label-hidden"],name:[1],required:[4],value:[8],noValue:[8,"no-value"],resolvedValue:[1032,"resolved-value"],hint:[1],labelLeft:[4,"label-left"],nativeAttributes:[16],hasSlottedLabel:[32],hasSlottedHint:[32],doFocus:[64],doBlur:[64]}],[1,"cat-scrollable",{noShadowX:[4,"no-shadow-x"],noShadowY:[4,"no-shadow-y"],noOverflowX:[4,"no-overflow-x"],noOverflowY:[4,"no-overflow-y"],noOverscroll:[4,"no-overscroll"],noScrolledInit:[4,"no-scrolled-init"],scrolledBuffer:[2,"scrolled-buffer"]}],[1,"cat-skeleton",{effect:[1],variant:[1],size:[1],lines:[2]}],[1,"cat-button",{variant:[1],color:[1],active:[4],size:[1],name:[1],value:[1],disabled:[4],loading:[4],submit:[4],noEllipsis:[4,"no-ellipsis"],round:[4],url:[1],urlTarget:[1,"url-target"],icon:[1],iconOnly:[8,"icon-only"],iconRight:[4,"icon-right"],buttonId:[1,"button-id"],a11yLabel:[1,"a11y-label"],a11yCurrent:[1,"a11y-current"],nativeAttributes:[16],nativeContentAttributes:[16],buttonGroupPosition:[1,"button-group-position"],_iconOnly:[32],doFocus:[64],doBlur:[64],doClick:[64]},[[0,"click","haltDisabledEvents"]],{iconOnly:["onIconOnlyChanged"]}],[1,"cat-spinner",{size:[1],a11yLabel:[1,"a11y-label"]}],[1,"cat-icon",{icon:[1],iconSrc:[1,"icon-src"],size:[1],a11yLabel:[1,"a11y-label"]}]]]],e))); //# sourceMappingURL=catalyst.esm.js.map \ No newline at end of file diff --git a/build/p-f65e3491.js b/build/p-f65e3491.js new file mode 100644 index 00000000..78a60d57 --- /dev/null +++ b/build/p-f65e3491.js @@ -0,0 +1,2 @@ +var t=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function n(t,n,r){return r={path:n,exports:{},require:function(t,n){return e()}},t(r,r.exports),r.exports}function e(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var r=n((function(n){(function(t,e){if(n.exports){n.exports=e()}else{t.log=e()}})(t,(function(){var t=function(){};var n="undefined";var e=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent);var r=["trace","debug","info","warn","error"];function i(t,n){var e=t[n];if(typeof e.bind==="function"){return e.bind(t)}else{try{return Function.prototype.bind.call(e,t)}catch(n){return function(){return Function.prototype.apply.apply(e,[t,arguments])}}}}function o(){if(console.log){if(console.log.apply){console.log.apply(console,arguments)}else{Function.prototype.apply.apply(console.log,[console,arguments])}}if(console.trace)console.trace()}function s(r){if(r==="debug"){r="log"}if(typeof console===n){return false}else if(r==="trace"&&e){return o}else if(console[r]!==undefined){return i(console,r)}else if(console.log!==undefined){return i(console,"log")}else{return t}}function u(n,e){for(var i=0;i=0&&e<=o.levels.SILENT){s=e;if(r!==false){a(e)}u.call(o,e,t);if(typeof console===n&&e{const{detail:n}=t||{};if(n&&n.id!==this.id){this.setLocale(n.locale,true)}}));window.addEventListener("cat-i18n-set",(t=>{const{detail:n}=t||{};if(n&&n.id!==this.id){this.set(n.i18n,true)}}));window.addEventListener("cat-i18n-clear",(t=>{const{detail:n}=t||{};if(n&&n.id!==this.id){this.clear(true)}}))}static getInstance(){if(!i.instance){i.instance=new i}return i.instance}getLocale(){return this._locale??window?.navigator?.language??"en"}setLocale(t,n=false){try{this._locale=Intl.getCanonicalLocales(t)[0];r.info(`[CatI18nRegistry] Set locale: ${this._locale}`);!n&&window.dispatchEvent(this.buildEvent("cat-i18n-setLocale",{locale:t,id:this.id}))}catch(n){r.error(`[CatI18nRegistry] Invalid locale: ${t}`)}}set(t,n=false){if(typeof t==="function"){this._translator=t;r.info(`[CatI18nRegistry] Registered translator`)}else{const n=Object.entries(t);n.forEach((([t,n])=>this.i18n.set(t,n)));r.info(`[CatI18nRegistry] Registered ${n.length!==1?"messages":"message"}`)}!n&&window.dispatchEvent(this.buildEvent("cat-i18n-set",{i18n:t,id:this.id}))}clear(t=false){this.i18n.clear();r.info(`[CatI18nRegistry] Cleared messages`);!t&&window.dispatchEvent(this.buildEvent("cat-i18n-clear"))}t(t,n){const e=this._translator?.(t,n)??this.i18n.get(t)?.replace(/{{\s*([-a-zA-Z._]+)\s*}}/g,((t,e)=>`${n?.[e]??""}`));if(e===undefined){r.error(`[CatI18nRegistry] Unknown message key: ${t}`);return t}return e}buildEvent(t,n){return new CustomEvent(t,{bubbles:true,composed:true,detail:n})}}const o=i.getInstance();const s=``;const u=`\n`;const c=``;const l=``;const a=``;const f=``;const d=``;const h=``;const w=``;const v=``;const p=``;const y=``;const g=`\n`;const m=`\n`;const b=``;class x{constructor(){this.id=(Math.random()+1).toString(36).substring(2);this.icons=new Map;this.addIcons({"alert-primary":b,"alert-secondary":d,"alert-info":m,"alert-success":c,"alert-warning":p,"alert-danger":h,"dialog-close":v,"input-close":w,"input-error":u,"input-password-show":g,"input-password-hide":y,"notification-close":w,"pagination-left":a,"pagination-right":f,"select-clear":s,"select-open":l},"$cat",true);window.addEventListener("cat-icons-added",(t=>{const{detail:n}=t||{};if(n&&n.id!==this.id){this.addIcons(n.icons,n.setName,true)}}));window.addEventListener("cat-icons-removed",(t=>{const{detail:n}=t||{};if(n&&n.id!==this.id){this.removeIcons(n.names,n.setName,true)}}))}static getInstance(){if(!x.instance){x.instance=new x}return x.instance}getIcon(t,n){const e=this.icons.get(this.buildName(t,n));if(!e){r.error(`[CatIconRegistry] Unknown icon${n?` in set ${n}`:""}: ${t}`)}return e}addIcons(t,n,e=false){const i=Object.entries(t);const o=i.length;i.forEach((([t,e])=>this.icons.set(this.buildName(t,n),e)));r.info(`[CatIconRegistry] Added ${o!==1?"icons":"icon"}${n?` to set ${n}`:""}`);!e&&window.dispatchEvent(this.buildEvent("cat-icons-added",{id:this.id,icons:t,setName:n}));return this}removeIcons(t,n,e=false){const i=t.length;t.forEach((t=>this.icons.delete(this.buildName(t,n))));r.info(`[CatIconRegistry] Removed ${i!==1?"icons":"icon"}${n?` from set ${n}`:""}`);!e&&window.dispatchEvent(this.buildEvent("cat-icons-removed",{id:this.id,names:t,setName:n}));return this}buildName(t,n){return n?`${n}:${t}`:t}buildEvent(t,n){return new CustomEvent(t,{bubbles:true,composed:true,detail:n})}}const S=x.getInstance();function E(t){return typeof t==="function"}function Z(t){const n=t=>{Error.call(t);t.stack=(new Error).stack};const e=t(n);e.prototype=Object.create(Error.prototype);e.prototype.constructor=e;return e}const L=Z((t=>function n(e){t(this);this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map(((t,n)=>`${n+1}) ${t.toString()}`)).join("\n ")}`:"";this.name="UnsubscriptionError";this.errors=e}));function M(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class I{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:n}=this;if(n){this._parentage=null;if(Array.isArray(n)){for(const t of n){t.remove(this)}}else{n.remove(this)}}const{initialTeardown:e}=this;if(E(e)){try{e()}catch(n){t=n instanceof L?n.errors:[n]}}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const n of r){try{R(n)}catch(n){t=t!==null&&t!==void 0?t:[];if(n instanceof L){t=[...t,...n.errors]}else{t.push(n)}}}}if(t){throw new L(t)}}}add(t){var n;if(t&&t!==this){if(this.closed){R(t)}else{if(t instanceof I){if(t.closed||t._hasParent(this)){return}t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;if(n===t){this._parentage=null}else if(Array.isArray(n)){M(n,t)}}remove(t){const{_finalizers:n}=this;n&&M(n,t);if(t instanceof I){t._removeParent(this)}}}I.EMPTY=(()=>{const t=new I;t.closed=true;return t})();const C=I.EMPTY;function $(t){return t instanceof I||t&&"closed"in t&&E(t.remove)&&E(t.add)&&E(t.unsubscribe)}function R(t){if(E(t)){t()}else{t.unsubscribe()}}const T={onUnhandledError:null,onStoppedNotification:null,Promise:undefined,useDeprecatedSynchronousErrorHandling:false,useDeprecatedNextContext:false};const B={setTimeout(t,n,...e){const{delegate:r}=B;if(r===null||r===void 0?void 0:r.setTimeout){return r.setTimeout(t,n,...e)}return setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=B;return((n===null||n===void 0?void 0:n.clearTimeout)||clearTimeout)(t)},delegate:undefined};function _(t){B.setTimeout((()=>{const{onUnhandledError:n}=T;if(n){n(t)}else{throw t}}))}function O(){}const P=(()=>U("C",undefined,undefined))();function A(t){return U("E",undefined,t)}function N(t){return U("N",t,undefined)}function U(t,n,e){return{kind:t,value:n,error:e}}function j(t){{t()}}class k extends I{constructor(t){super();this.isStopped=false;if(t){this.destination=t;if($(t)){t.add(this)}}else{this.destination=G}}static create(t,n,e){return new q(t,n,e)}next(t){if(this.isStopped){W(N(t),this)}else{this._next(t)}}error(t){if(this.isStopped){W(A(t),this)}else{this.isStopped=true;this._error(t)}}complete(){if(this.isStopped){W(P,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 F=Function.prototype.bind;function V(t,n){return F.call(t,n)}class D{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next){try{n.next(t)}catch(t){z(t)}}}error(t){const{partialObserver:n}=this;if(n.error){try{n.error(t)}catch(t){z(t)}}else{z(t)}}complete(){const{partialObserver:t}=this;if(t.complete){try{t.complete()}catch(t){z(t)}}}}class q extends k{constructor(t,n,e){super();let r;if(E(t)||!t){r={next:t!==null&&t!==void 0?t:undefined,error:n!==null&&n!==void 0?n:undefined,complete:e!==null&&e!==void 0?e:undefined}}else{let n;if(this&&T.useDeprecatedNextContext){n=Object.create(t);n.unsubscribe=()=>this.unsubscribe();r={next:t.next&&V(t.next,n),error:t.error&&V(t.error,n),complete:t.complete&&V(t.complete,n)}}else{r=t}}this.destination=new D(r)}}function z(t){{_(t)}}function Y(t){throw t}function W(t,n){const{onStoppedNotification:e}=T;e&&B.setTimeout((()=>e(t,n)))}const G={closed:true,next:O,error:Y,complete:O};const H=(()=>typeof Symbol==="function"&&Symbol.observable||"@@observable")();function J(t){return t}function K(t){if(t.length===0){return J}if(t.length===1){return t[0]}return function n(e){return t.reduce(((t,n)=>n(t)),e)}}class Q{constructor(t){if(t){this._subscribe=t}}lift(t){const n=new Q;n.source=this;n.operator=t;return n}subscribe(t,n,e){const r=nt(t)?t:new q(t,n,e);j((()=>{const{operator:t,source:n}=this;r.add(t?t.call(r,n):n?this._subscribe(r):this._trySubscribe(r))}));return r}_trySubscribe(t){try{return this._subscribe(t)}catch(n){t.error(n)}}forEach(t,n){n=X(n);return new n(((n,e)=>{const r=new q({next:n=>{try{t(n)}catch(t){e(t);r.unsubscribe()}},error:e,complete:n});this.subscribe(r)}))}_subscribe(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)}[H](){return this}pipe(...t){return K(t)(this)}toPromise(t){t=X(t);return new t(((t,n)=>{let e;this.subscribe((t=>e=t),(t=>n(t)),(()=>t(e)))}))}}Q.create=t=>new Q(t);function X(t){var n;return(n=t!==null&&t!==void 0?t:T.Promise)!==null&&n!==void 0?n:Promise}function tt(t){return t&&E(t.next)&&E(t.error)&&E(t.complete)}function nt(t){return t&&t instanceof k||tt(t)&&$(t)}function et(t){return E(t===null||t===void 0?void 0:t.lift)}function rt(t){return n=>{if(et(n)){return n.lift((function(n){try{return t(n,this)}catch(t){this.error(t)}}))}throw new TypeError("Unable to lift unknown Observable type")}}function it(t,n,e,r,i){return new ot(t,n,e,r,i)}class ot extends k{constructor(t,n,e,r,i,o){super(t);this.onFinalize=i;this.shouldUnsubscribe=o;this._next=n?function(e){try{n(e)}catch(n){t.error(n)}}:super._next;this._error=r?function(n){try{r(n)}catch(n){t.error(n)}finally{this.unsubscribe()}}:super._error;this._complete=e?function(){try{e()}catch(n){t.error(n)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe();!n&&((t=this.onFinalize)===null||t===void 0?void 0:t.call(this))}}}function st(t){return t&&E(t.schedule)}function ut(t){return t[t.length-1]}function ct(t){return st(ut(t))?t.pop():undefined}function lt(t,n){return typeof ut(t)==="number"?t.pop():n}function at(t,n,e,r){function i(t){return t instanceof e?t:new e((function(n){n(t)}))}return new(e||(e=Promise))((function(e,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r["throw"](t))}catch(t){o(t)}}function c(t){t.done?e(t.value):i(t.value).then(s,u)}c((r=r.apply(t,n||[])).next())}))}function ft(t){var n=typeof Symbol==="function"&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&r>=t.length)t=void 0;return{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function dt(t){return this instanceof dt?(this.v=t,this):new dt(t)}function ht(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e.apply(t,n||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(t){if(r[t])i[t]=function(n){return new Promise((function(e,r){o.push([t,n,e,r])>1||u(t,n)}))}}function u(t,n){try{c(r[t](n))}catch(t){f(o[0][3],t)}}function c(t){t.value instanceof dt?Promise.resolve(t.value.v).then(l,a):f(o[0][2],t)}function l(t){u("next",t)}function a(t){u("throw",t)}function f(t,n){if(t(n),o.shift(),o.length)u(o[0][0],o[0][1])}}function wt(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t[Symbol.asyncIterator],e;return n?n.call(t):(t=typeof ft==="function"?ft(t):t[Symbol.iterator](),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,o){e=t[n](e),i(r,o,e.done,e.value)}))}}function i(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)}}typeof SuppressedError==="function"?SuppressedError:function(t,n,e){var r=new Error(e);return r.name="SuppressedError",r.error=t,r.suppressed=n,r};const vt=t=>t&&typeof t.length==="number"&&typeof t!=="function";function pt(t){return E(t===null||t===void 0?void 0:t.then)}function yt(t){return E(t[H])}function gt(t){return Symbol.asyncIterator&&E(t===null||t===void 0?void 0:t[Symbol.asyncIterator])}function mt(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 bt(){if(typeof Symbol!=="function"||!Symbol.iterator){return"@@iterator"}return Symbol.iterator}const xt=bt();function St(t){return E(t===null||t===void 0?void 0:t[xt])}function Et(t){return ht(this,arguments,(function*n(){const e=t.getReader();try{while(true){const{value:t,done:n}=yield dt(e.read());if(n){return yield dt(void 0)}yield yield dt(t)}}finally{e.releaseLock()}}))}function Zt(t){return E(t===null||t===void 0?void 0:t.getReader)}function Lt(t){if(t instanceof Q){return t}if(t!=null){if(yt(t)){return Mt(t)}if(vt(t)){return It(t)}if(pt(t)){return Ct(t)}if(gt(t)){return Rt(t)}if(St(t)){return $t(t)}if(Zt(t)){return Tt(t)}}throw mt(t)}function Mt(t){return new Q((n=>{const e=t[H]();if(E(e.subscribe)){return e.subscribe(n)}throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}function It(t){return new Q((n=>{for(let e=0;e{t.then((t=>{if(!n.closed){n.next(t);n.complete()}}),(t=>n.error(t))).then(null,_)}))}function $t(t){return new Q((n=>{for(const e of t){n.next(e);if(n.closed){return}}n.complete()}))}function Rt(t){return new Q((n=>{Bt(t,n).catch((t=>n.error(t)))}))}function Tt(t){return Rt(Et(t))}function Bt(t,n){var e,r;var i,o;return at(this,void 0,void 0,(function*(){try{for(e=wt(t);r=yield e.next(),!r.done;){const t=r.value;n.next(t);if(n.closed){return}}}catch(t){i={error:t}}finally{try{if(r&&!r.done&&(o=e.return))yield o.call(e)}finally{if(i)throw i.error}}n.complete()}))}function _t(t,n,e,r=0,i=false){const o=n.schedule((function(){e();if(i){t.add(this.schedule(null,r))}else{this.unsubscribe()}}),r);t.add(o);if(!i){return o}}function Ot(t,n=0){return rt(((e,r)=>{e.subscribe(it(r,(e=>_t(r,t,(()=>r.next(e)),n)),(()=>_t(r,t,(()=>r.complete()),n)),(e=>_t(r,t,(()=>r.error(e)),n))))}))}function Pt(t,n=0){return rt(((e,r)=>{r.add(t.schedule((()=>e.subscribe(r)),n))}))}function At(t,n){return Lt(t).pipe(Pt(n),Ot(n))}function Nt(t,n){return Lt(t).pipe(Pt(n),Ot(n))}function Ut(t,n){return new Q((e=>{let r=0;return n.schedule((function(){if(r===t.length){e.complete()}else{e.next(t[r++]);if(!e.closed){this.schedule()}}}))}))}function jt(t,n){return new Q((e=>{let r;_t(e,n,(()=>{r=t[xt]();_t(e,n,(()=>{let t;let n;try{({value:t,done:n}=r.next())}catch(t){e.error(t);return}if(n){e.complete()}else{e.next(t)}}),0,true)}));return()=>E(r===null||r===void 0?void 0:r.return)&&r.return()}))}function kt(t,n){if(!t){throw new Error("Iterable cannot be null")}return new Q((e=>{_t(e,n,(()=>{const r=t[Symbol.asyncIterator]();_t(e,n,(()=>{r.next().then((t=>{if(t.done){e.complete()}else{e.next(t.value)}}))}),0,true)}))}))}function Ft(t,n){return kt(Et(t),n)}function Vt(t,n){if(t!=null){if(yt(t)){return At(t,n)}if(vt(t)){return Ut(t,n)}if(pt(t)){return Nt(t,n)}if(gt(t)){return kt(t,n)}if(St(t)){return jt(t,n)}if(Zt(t)){return Ft(t,n)}}throw mt(t)}function Dt(t,n){return n?Vt(t,n):Lt(t)}function qt(...t){const n=ct(t);return Dt(t,n)}export{i as C,C as E,Q as O,I as S,t as a,o as b,n as c,x as d,S as e,Z as f,j as g,M as h,rt as i,it as j,Lt as k,_t as l,E as m,J as n,qt as o,Dt as p,ct as q,vt as r,st as s,lt as t,O as u,r as v}; +//# sourceMappingURL=p-f65e3491.js.map \ No newline at end of file diff --git a/build/p-f65e3491.js.map b/build/p-f65e3491.js.map new file mode 100644 index 00000000..bfa09c82 --- /dev/null +++ b/build/p-f65e3491.js.map @@ -0,0 +1 @@ +{"version":3,"names":["root","definition","module","exports","log","this","noop","undefinedType","isIE","window","navigator","test","userAgent","logMethods","bindMethod","obj","methodName","method","bind","Function","prototype","call","e","apply","arguments","traceForIE","console","trace","realMethod","undefined","replaceLoggingMethods","level","loggerName","i","length","methodFactory","debug","enableLoggingWhenConsoleArrives","defaultMethodFactory","Logger","name","defaultLevel","factory","self","currentLevel","storageKey","persistLevelIfPossible","levelNum","levelName","toUpperCase","localStorage","ignore","document","cookie","encodeURIComponent","getPersistedLevel","storedLevel","location","indexOf","exec","slice","levels","clearPersistedLevel","removeItem","TRACE","DEBUG","INFO","WARN","ERROR","SILENT","getLevel","setLevel","persist","setDefaultLevel","resetLevel","enableAll","disableAll","initialLevel","defaultLogger","_loggersByName","getLogger","TypeError","logger","_log","noConflict","getLoggers","CatI18nRegistry","constructor","id","Math","random","toString","substring","i18n","Map","addEventListener","event","detail","setLocale","locale","set","clear","getInstance","instance","getLocale","_locale","language","silent","Intl","getCanonicalLocales","info","dispatchEvent","buildEvent","err","error","_translator","i18nEntries","Object","entries","forEach","key","message","t","params","get","replace","_match","CustomEvent","bubbles","composed","catI18nRegistry","CatIconRegistry","icons","addIcons","starCircleFilled","clockFilled","infoCircleFilled","checkCircleFilled","dangerFilled","crossCircleFilled","crossOutlined","crossCircleOutlined","alertCircleOutlined","eyeOpenOutlined","eyeClosedOutlined","chevronLeftOutlined","chevronRightOutlined","cross16","chevronDownOutlined","setName","removeIcons","names","getIcon","icon","buildName","iconEntries","iconSize","data","delete","catIconRegistry","isFunction","value","createErrorClass","createImpl","_super","Error","stack","ctorFunc","create","UnsubscriptionError","UnsubscriptionErrorImpl","errors","map","join","arrRemove","arr","item","index","splice","Subscription","initialTeardown","closed","_parentage","_finalizers","unsubscribe","Array","isArray","parent","remove","initialFinalizer","finalizer","execFinalizer","push","add","teardown","_a","_hasParent","_addParent","includes","_removeParent","EMPTY","empty","EMPTY_SUBSCRIPTION","isSubscription","config","onUnhandledError","onStoppedNotification","Promise","useDeprecatedSynchronousErrorHandling","useDeprecatedNextContext","timeoutProvider","setTimeout","handler","timeout","args","delegate","clearTimeout","handle","reportUnhandledError","COMPLETE_NOTIFICATION","createNotification","errorNotification","nextNotification","kind","errorContext","cb","Subscriber","destination","super","isStopped","EMPTY_OBSERVER","next","complete","SafeSubscriber","handleStoppedNotification","_next","_error","_complete","_bind","fn","thisArg","ConsumerObserver","partialObserver","handleUnhandledError","observerOrNext","context","defaultErrorHandler","notification","subscriber","observable","Symbol","identity","x","pipeFromArray","fns","piped","input","reduce","prev","Observable","subscribe","_subscribe","lift","operator","source","isSubscriber","_trySubscribe","sink","promiseCtor","getPromiseCtor","resolve","reject","Symbol_observable","pipe","operations","toPromise","isObserver","hasLift","operate","init","liftedSource","createOperatorSubscriber","onNext","onComplete","onError","onFinalize","OperatorSubscriber","shouldUnsubscribe","isScheduler","schedule","last","popScheduler","pop","popNumber","defaultValue","__awaiter","_arguments","P","generator","adopt","fulfilled","step","rejected","result","done","then","__values","o","s","iterator","m","__await","v","__asyncGenerator","asyncIterator","g","q","verb","n","a","b","resume","settle","r","fulfill","f","shift","__asyncValues","d","SuppressedError","suppressed","isArrayLike","isPromise","isInteropObservable","isAsyncIterable","createInvalidObservableTypeError","getSymbolIterator","isIterable","Symbol_iterator","readableStreamLikeToAsyncGenerator","readableStream","readableStreamLikeToAsyncGenerator_1","reader","getReader","read","releaseLock","isReadableStreamLike","innerFrom","fromInteropObservable","fromArrayLike","fromPromise","fromAsyncIterable","fromIterable","fromReadableStreamLike","obs","array","promise","iterable","asyncIterable","process","catch","asyncIterable_1","asyncIterable_1_1","e_1","e_1_1","return","executeSchedule","parentSubscription","scheduler","work","delay","repeat","scheduleSubscription","observeOn","subscribeOn","scheduleObservable","schedulePromise","scheduleArray","scheduleIterable","scheduleAsyncIterable","scheduleReadableStreamLike","scheduled","from","of"],"sources":["../node_modules/.pnpm/loglevel@1.8.1/node_modules/loglevel/lib/loglevel.js","src/components/cat-i18n/cat-i18n-registry.ts","src/components/cat-icon/cat-icon-registry.ts","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/isFunction.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/createErrorClass.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/UnsubscriptionError.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/arrRemove.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/Subscription.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/config.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/scheduler/timeoutProvider.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/reportUnhandledError.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/noop.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/NotificationFactories.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/errorContext.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/Subscriber.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/symbol/observable.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/identity.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/pipe.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/Observable.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/lift.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/operators/OperatorSubscriber.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/isScheduler.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/args.js","../node_modules/.pnpm/tslib@2.6.1/node_modules/tslib/tslib.es6.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/isArrayLike.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/isPromise.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/isInteropObservable.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/isAsyncIterable.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/throwUnobservableError.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/symbol/iterator.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/isIterable.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/isReadableStreamLike.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/observable/innerFrom.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/util/executeSchedule.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/operators/observeOn.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/operators/subscribeOn.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/scheduled/scheduleObservable.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/scheduled/schedulePromise.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/scheduled/scheduleArray.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/scheduled/scheduleIterable.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/scheduled/scheduleAsyncIterable.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/scheduled/scheduleReadableStreamLike.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/scheduled/scheduled.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/observable/from.js","../node_modules/.pnpm/rxjs@7.5.5/node_modules/rxjs/dist/esm/internal/observable/of.js"],"sourcesContent":["/*\n* loglevel - https://github.com/pimterry/loglevel\n*\n* Copyright (c) 2013 Tim Perry\n* Licensed under the MIT license.\n*/\n(function (root, definition) {\n \"use strict\";\n if (typeof define === 'function' && define.amd) {\n define(definition);\n } else if (typeof module === 'object' && module.exports) {\n module.exports = definition();\n } else {\n root.log = definition();\n }\n}(this, function () {\n \"use strict\";\n\n // Slightly dubious tricks to cut down minimized file size\n var noop = function() {};\n var undefinedType = \"undefined\";\n var isIE = (typeof window !== undefinedType) && (typeof window.navigator !== undefinedType) && (\n /Trident\\/|MSIE /.test(window.navigator.userAgent)\n );\n\n var logMethods = [\n \"trace\",\n \"debug\",\n \"info\",\n \"warn\",\n \"error\"\n ];\n\n // Cross-browser bind equivalent that works at least back to IE6\n function bindMethod(obj, methodName) {\n var method = obj[methodName];\n if (typeof method.bind === 'function') {\n return method.bind(obj);\n } else {\n try {\n return Function.prototype.bind.call(method, obj);\n } catch (e) {\n // Missing bind shim or IE8 + Modernizr, fallback to wrapping\n return function() {\n return Function.prototype.apply.apply(method, [obj, arguments]);\n };\n }\n }\n }\n\n // Trace() doesn't print the message in IE, so for that case we need to wrap it\n function traceForIE() {\n if (console.log) {\n if (console.log.apply) {\n console.log.apply(console, arguments);\n } else {\n // In old IE, native console methods themselves don't have apply().\n Function.prototype.apply.apply(console.log, [console, arguments]);\n }\n }\n if (console.trace) console.trace();\n }\n\n // Build the best logging method possible for this env\n // Wherever possible we want to bind, not wrap, to preserve stack traces\n function realMethod(methodName) {\n if (methodName === 'debug') {\n methodName = 'log';\n }\n\n if (typeof console === undefinedType) {\n return false; // No method possible, for now - fixed later by enableLoggingWhenConsoleArrives\n } else if (methodName === 'trace' && isIE) {\n return traceForIE;\n } else if (console[methodName] !== undefined) {\n return bindMethod(console, methodName);\n } else if (console.log !== undefined) {\n return bindMethod(console, 'log');\n } else {\n return noop;\n }\n }\n\n // These private functions always need `this` to be set properly\n\n function replaceLoggingMethods(level, loggerName) {\n /*jshint validthis:true */\n for (var i = 0; i < logMethods.length; i++) {\n var methodName = logMethods[i];\n this[methodName] = (i < level) ?\n noop :\n this.methodFactory(methodName, level, loggerName);\n }\n\n // Define log.log as an alias for log.debug\n this.log = this.debug;\n }\n\n // In old IE versions, the console isn't present until you first open it.\n // We build realMethod() replacements here that regenerate logging methods\n function enableLoggingWhenConsoleArrives(methodName, level, loggerName) {\n return function () {\n if (typeof console !== undefinedType) {\n replaceLoggingMethods.call(this, level, loggerName);\n this[methodName].apply(this, arguments);\n }\n };\n }\n\n // By default, we use closely bound real methods wherever possible, and\n // otherwise we wait for a console to appear, and then try again.\n function defaultMethodFactory(methodName, level, loggerName) {\n /*jshint validthis:true */\n return realMethod(methodName) ||\n enableLoggingWhenConsoleArrives.apply(this, arguments);\n }\n\n function Logger(name, defaultLevel, factory) {\n var self = this;\n var currentLevel;\n defaultLevel = defaultLevel == null ? \"WARN\" : defaultLevel;\n\n var storageKey = \"loglevel\";\n if (typeof name === \"string\") {\n storageKey += \":\" + name;\n } else if (typeof name === \"symbol\") {\n storageKey = undefined;\n }\n\n function persistLevelIfPossible(levelNum) {\n var levelName = (logMethods[levelNum] || 'silent').toUpperCase();\n\n if (typeof window === undefinedType || !storageKey) return;\n\n // Use localStorage if available\n try {\n window.localStorage[storageKey] = levelName;\n return;\n } catch (ignore) {}\n\n // Use session cookie as fallback\n try {\n window.document.cookie =\n encodeURIComponent(storageKey) + \"=\" + levelName + \";\";\n } catch (ignore) {}\n }\n\n function getPersistedLevel() {\n var storedLevel;\n\n if (typeof window === undefinedType || !storageKey) return;\n\n try {\n storedLevel = window.localStorage[storageKey];\n } catch (ignore) {}\n\n // Fallback to cookies if local storage gives us nothing\n if (typeof storedLevel === undefinedType) {\n try {\n var cookie = window.document.cookie;\n var location = cookie.indexOf(\n encodeURIComponent(storageKey) + \"=\");\n if (location !== -1) {\n storedLevel = /^([^;]+)/.exec(cookie.slice(location))[1];\n }\n } catch (ignore) {}\n }\n\n // If the stored level is not valid, treat it as if nothing was stored.\n if (self.levels[storedLevel] === undefined) {\n storedLevel = undefined;\n }\n\n return storedLevel;\n }\n\n function clearPersistedLevel() {\n if (typeof window === undefinedType || !storageKey) return;\n\n // Use localStorage if available\n try {\n window.localStorage.removeItem(storageKey);\n return;\n } catch (ignore) {}\n\n // Use session cookie as fallback\n try {\n window.document.cookie =\n encodeURIComponent(storageKey) + \"=; expires=Thu, 01 Jan 1970 00:00:00 UTC\";\n } catch (ignore) {}\n }\n\n /*\n *\n * Public logger API - see https://github.com/pimterry/loglevel for details\n *\n */\n\n self.name = name;\n\n self.levels = { \"TRACE\": 0, \"DEBUG\": 1, \"INFO\": 2, \"WARN\": 3,\n \"ERROR\": 4, \"SILENT\": 5};\n\n self.methodFactory = factory || defaultMethodFactory;\n\n self.getLevel = function () {\n return currentLevel;\n };\n\n self.setLevel = function (level, persist) {\n if (typeof level === \"string\" && self.levels[level.toUpperCase()] !== undefined) {\n level = self.levels[level.toUpperCase()];\n }\n if (typeof level === \"number\" && level >= 0 && level <= self.levels.SILENT) {\n currentLevel = level;\n if (persist !== false) { // defaults to true\n persistLevelIfPossible(level);\n }\n replaceLoggingMethods.call(self, level, name);\n if (typeof console === undefinedType && level < self.levels.SILENT) {\n return \"No console available for logging\";\n }\n } else {\n throw \"log.setLevel() called with invalid level: \" + level;\n }\n };\n\n self.setDefaultLevel = function (level) {\n defaultLevel = level;\n if (!getPersistedLevel()) {\n self.setLevel(level, false);\n }\n };\n\n self.resetLevel = function () {\n self.setLevel(defaultLevel, false);\n clearPersistedLevel();\n };\n\n self.enableAll = function(persist) {\n self.setLevel(self.levels.TRACE, persist);\n };\n\n self.disableAll = function(persist) {\n self.setLevel(self.levels.SILENT, persist);\n };\n\n // Initialize with the right level\n var initialLevel = getPersistedLevel();\n if (initialLevel == null) {\n initialLevel = defaultLevel;\n }\n self.setLevel(initialLevel, false);\n }\n\n /*\n *\n * Top-level API\n *\n */\n\n var defaultLogger = new Logger();\n\n var _loggersByName = {};\n defaultLogger.getLogger = function getLogger(name) {\n if ((typeof name !== \"symbol\" && typeof name !== \"string\") || name === \"\") {\n throw new TypeError(\"You must supply a name when creating a logger.\");\n }\n\n var logger = _loggersByName[name];\n if (!logger) {\n logger = _loggersByName[name] = new Logger(\n name, defaultLogger.getLevel(), defaultLogger.methodFactory);\n }\n return logger;\n };\n\n // Grab the current global log variable in case of overwrite\n var _log = (typeof window !== undefinedType) ? window.log : undefined;\n defaultLogger.noConflict = function() {\n if (typeof window !== undefinedType &&\n window.log === defaultLogger) {\n window.log = _log;\n }\n\n return defaultLogger;\n };\n\n defaultLogger.getLoggers = function getLoggers() {\n return _loggersByName;\n };\n\n // ES6 default export, for compatibility\n defaultLogger['default'] = defaultLogger;\n\n return defaultLogger;\n}));\n","import log from 'loglevel';\n\nexport type CatI18nTranslationFn = (key: string, params?: unknown) => string;\n\nexport class CatI18nRegistry {\n private static instance: CatI18nRegistry;\n\n private readonly id = (Math.random() + 1).toString(36).substring(2);\n private readonly i18n: Map = new Map();\n\n private _locale?: string;\n private _translator?: CatI18nTranslationFn;\n\n private constructor() {\n // hide constructor\n\n // In rare cases, the registry can be initialized twice. This can happen in\n // a micro frontend architecture where the registry is initialized in the\n // host application and in the micro frontend. To prevent the registry in\n // one application from overwriting the registry in the other, we listen for\n // events that are dispatched when messages are added or removed in other\n // applications and add or remove messages if the event was not dispatched\n // by this registry.\n window.addEventListener('cat-i18n-setLocale', event => {\n const { detail } = (event as CustomEvent) || {};\n if (detail && detail.id !== this.id) {\n this.setLocale(detail.locale, true);\n }\n });\n window.addEventListener('cat-i18n-set', event => {\n const { detail } = (event as CustomEvent) || {};\n if (detail && detail.id !== this.id) {\n this.set(detail.i18n, true);\n }\n });\n window.addEventListener('cat-i18n-clear', event => {\n const { detail } = (event as CustomEvent) || {};\n if (detail && detail.id !== this.id) {\n this.clear(true);\n }\n });\n }\n\n static getInstance(): CatI18nRegistry {\n if (!CatI18nRegistry.instance) {\n CatI18nRegistry.instance = new CatI18nRegistry();\n }\n return CatI18nRegistry.instance;\n }\n\n getLocale(): string {\n return this._locale ?? window?.navigator?.language ?? 'en';\n }\n\n setLocale(locale: string, silent = false): void {\n try {\n this._locale = Intl.getCanonicalLocales(locale)[0];\n log.info(`[CatI18nRegistry] Set locale: ${this._locale}`);\n !silent && window.dispatchEvent(this.buildEvent('cat-i18n-setLocale', { locale, id: this.id }));\n } catch (err) {\n log.error(`[CatI18nRegistry] Invalid locale: ${locale}`);\n }\n }\n\n set(i18n: { [key: string]: string } | CatI18nTranslationFn, silent = false): void {\n if (typeof i18n === 'function') {\n this._translator = i18n;\n log.info(`[CatI18nRegistry] Registered translator`);\n } else {\n const i18nEntries = Object.entries(i18n);\n i18nEntries.forEach(([key, message]) => this.i18n.set(key, message));\n log.info(`[CatI18nRegistry] Registered ${i18nEntries.length !== 1 ? 'messages' : 'message'}`);\n }\n !silent && window.dispatchEvent(this.buildEvent('cat-i18n-set', { i18n, id: this.id }));\n }\n\n clear(silent = false): void {\n this.i18n.clear();\n log.info(`[CatI18nRegistry] Cleared messages`);\n !silent && window.dispatchEvent(this.buildEvent('cat-i18n-clear'));\n }\n\n t(key: string, params?: { [key: string]: unknown }): string {\n const message =\n this._translator?.(key, params) ??\n this.i18n.get(key)?.replace(/{{\\s*([-a-zA-Z._]+)\\s*}}/g, (_match, key) => `${params?.[key] ?? ''}`);\n if (message === undefined) {\n log.error(`[CatI18nRegistry] Unknown message key: ${key}`);\n return key;\n }\n return message;\n }\n\n private buildEvent(name: string, detail?: T) {\n return new CustomEvent(name, {\n bubbles: true,\n composed: true,\n detail\n });\n }\n}\n\nexport const catI18nRegistry = CatI18nRegistry.getInstance();\n","import cross16 from '@haiilo/catalyst-icons/tmp/assets/16-cross.svg';\nimport alertCircleOutlined from '@haiilo/catalyst-icons/tmp/assets/alert-circle-outlined.svg';\nimport checkCircleFilled from '@haiilo/catalyst-icons/tmp/assets/check-circle-filled.svg';\nimport chevronDownOutlined from '@haiilo/catalyst-icons/tmp/assets/chevron-down-outlined.svg';\nimport chevronLeftOutlined from '@haiilo/catalyst-icons/tmp/assets/chevron-left-outlined.svg';\nimport chevronRightOutlined from '@haiilo/catalyst-icons/tmp/assets/chevron-right-outlined.svg';\nimport clockFilled from '@haiilo/catalyst-icons/tmp/assets/clock-filled.svg';\nimport crossCircleFilled from '@haiilo/catalyst-icons/tmp/assets/cross-circle-filled.svg';\nimport crossCircleOutlined from '@haiilo/catalyst-icons/tmp/assets/cross-circle-outlined.svg';\nimport crossOutlined from '@haiilo/catalyst-icons/tmp/assets/cross-outlined.svg';\nimport dangerFilled from '@haiilo/catalyst-icons/tmp/assets/danger-filled.svg';\nimport eyeClosedOutlined from '@haiilo/catalyst-icons/tmp/assets/eye-closed-outlined.svg';\nimport eyeOpenOutlined from '@haiilo/catalyst-icons/tmp/assets/eye-open-outlined.svg';\nimport infoCircleFilled from '@haiilo/catalyst-icons/tmp/assets/info-circle-filled.svg';\nimport starCircleFilled from '@haiilo/catalyst-icons/tmp/assets/star-circle-filled.svg';\nimport log from 'loglevel';\n\nexport class CatIconRegistry {\n private static instance: CatIconRegistry;\n\n private readonly id = (Math.random() + 1).toString(36).substring(2);\n private readonly icons: Map = new Map();\n\n private constructor() {\n // hide constructor\n\n // register default icons that are used in the framework by other components\n this.addIcons(\n {\n 'alert-primary': starCircleFilled,\n 'alert-secondary': clockFilled,\n 'alert-info': infoCircleFilled,\n 'alert-success': checkCircleFilled,\n 'alert-warning': dangerFilled,\n 'alert-danger': crossCircleFilled,\n 'dialog-close': crossOutlined,\n 'input-close': crossCircleOutlined,\n 'input-error': alertCircleOutlined,\n 'input-password-show': eyeOpenOutlined,\n 'input-password-hide': eyeClosedOutlined,\n 'notification-close': crossCircleOutlined,\n 'pagination-left': chevronLeftOutlined,\n 'pagination-right': chevronRightOutlined,\n 'select-clear': cross16,\n 'select-open': chevronDownOutlined\n },\n '$cat',\n true\n );\n\n // In rare cases, the registry can be initialized twice. This can happen in\n // a micro frontend architecture where the registry is initialized in the\n // host application and in the micro frontend. To prevent the registry in\n // one application from overwriting the registry in the other, we listen for\n // events that are dispatched when icons are added or removed in other\n // applications and add or remove icons if the event was not dispatched by\n // this registry.\n window.addEventListener('cat-icons-added', event => {\n const { detail } = (event as CustomEvent) || {};\n if (detail && detail.id !== this.id) {\n this.addIcons(detail.icons, detail.setName, true);\n }\n });\n window.addEventListener('cat-icons-removed', event => {\n const { detail } = (event as CustomEvent) || {};\n if (detail && detail.id !== this.id) {\n this.removeIcons(detail.names, detail.setName, true);\n }\n });\n }\n\n static getInstance(): CatIconRegistry {\n if (!CatIconRegistry.instance) {\n CatIconRegistry.instance = new CatIconRegistry();\n }\n return CatIconRegistry.instance;\n }\n\n getIcon(name: string, setName?: string): string | undefined {\n const icon = this.icons.get(this.buildName(name, setName));\n if (!icon) {\n log.error(`[CatIconRegistry] Unknown icon${setName ? ` in set ${setName}` : ''}: ${name}`);\n }\n return icon;\n }\n\n addIcons(icons: { [name: string]: string }, setName?: string, silent = false): CatIconRegistry {\n const iconEntries = Object.entries(icons);\n const iconSize = iconEntries.length;\n iconEntries.forEach(([name, data]) => this.icons.set(this.buildName(name, setName), data));\n log.info(`[CatIconRegistry] Added ${iconSize !== 1 ? 'icons' : 'icon'}${setName ? ` to set ${setName}` : ''}`);\n !silent && window.dispatchEvent(this.buildEvent('cat-icons-added', { id: this.id, icons, setName }));\n return this;\n }\n\n removeIcons(names: string[], setName?: string, silent = false): CatIconRegistry {\n const iconSize = names.length;\n names.forEach(name => this.icons.delete(this.buildName(name, setName)));\n log.info(`[CatIconRegistry] Removed ${iconSize !== 1 ? 'icons' : 'icon'}${setName ? ` from set ${setName}` : ''}`);\n !silent && window.dispatchEvent(this.buildEvent('cat-icons-removed', { id: this.id, names, setName }));\n return this;\n }\n\n private buildName(name: string, setName?: string) {\n return setName ? `${setName}:${name}` : name;\n }\n\n private buildEvent(name: string, detail?: T) {\n return new CustomEvent(name, {\n bubbles: true,\n composed: true,\n detail\n });\n }\n}\n\nexport const catIconRegistry = CatIconRegistry.getInstance();\n","export function isFunction(value) {\n return typeof value === 'function';\n}\n//# sourceMappingURL=isFunction.js.map","export function createErrorClass(createImpl) {\n const _super = (instance) => {\n Error.call(instance);\n instance.stack = new Error().stack;\n };\n const ctorFunc = createImpl(_super);\n ctorFunc.prototype = Object.create(Error.prototype);\n ctorFunc.prototype.constructor = ctorFunc;\n return ctorFunc;\n}\n//# sourceMappingURL=createErrorClass.js.map","import { createErrorClass } from './createErrorClass';\nexport const UnsubscriptionError = createErrorClass((_super) => function UnsubscriptionErrorImpl(errors) {\n _super(this);\n this.message = errors\n ? `${errors.length} errors occurred during unsubscription:\n${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\\n ')}`\n : '';\n this.name = 'UnsubscriptionError';\n this.errors = errors;\n});\n//# sourceMappingURL=UnsubscriptionError.js.map","export function arrRemove(arr, item) {\n if (arr) {\n const index = arr.indexOf(item);\n 0 <= index && arr.splice(index, 1);\n }\n}\n//# sourceMappingURL=arrRemove.js.map","import { isFunction } from './util/isFunction';\nimport { UnsubscriptionError } from './util/UnsubscriptionError';\nimport { arrRemove } from './util/arrRemove';\nexport class Subscription {\n constructor(initialTeardown) {\n this.initialTeardown = initialTeardown;\n this.closed = false;\n this._parentage = null;\n this._finalizers = null;\n }\n unsubscribe() {\n let errors;\n if (!this.closed) {\n this.closed = true;\n const { _parentage } = this;\n if (_parentage) {\n this._parentage = null;\n if (Array.isArray(_parentage)) {\n for (const parent of _parentage) {\n parent.remove(this);\n }\n }\n else {\n _parentage.remove(this);\n }\n }\n const { initialTeardown: initialFinalizer } = this;\n if (isFunction(initialFinalizer)) {\n try {\n initialFinalizer();\n }\n catch (e) {\n errors = e instanceof UnsubscriptionError ? e.errors : [e];\n }\n }\n const { _finalizers } = this;\n if (_finalizers) {\n this._finalizers = null;\n for (const finalizer of _finalizers) {\n try {\n execFinalizer(finalizer);\n }\n catch (err) {\n errors = errors !== null && errors !== void 0 ? errors : [];\n if (err instanceof UnsubscriptionError) {\n errors = [...errors, ...err.errors];\n }\n else {\n errors.push(err);\n }\n }\n }\n }\n if (errors) {\n throw new UnsubscriptionError(errors);\n }\n }\n }\n add(teardown) {\n var _a;\n if (teardown && teardown !== this) {\n if (this.closed) {\n execFinalizer(teardown);\n }\n else {\n if (teardown instanceof Subscription) {\n if (teardown.closed || teardown._hasParent(this)) {\n return;\n }\n teardown._addParent(this);\n }\n (this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown);\n }\n }\n }\n _hasParent(parent) {\n const { _parentage } = this;\n return _parentage === parent || (Array.isArray(_parentage) && _parentage.includes(parent));\n }\n _addParent(parent) {\n const { _parentage } = this;\n this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;\n }\n _removeParent(parent) {\n const { _parentage } = this;\n if (_parentage === parent) {\n this._parentage = null;\n }\n else if (Array.isArray(_parentage)) {\n arrRemove(_parentage, parent);\n }\n }\n remove(teardown) {\n const { _finalizers } = this;\n _finalizers && arrRemove(_finalizers, teardown);\n if (teardown instanceof Subscription) {\n teardown._removeParent(this);\n }\n }\n}\nSubscription.EMPTY = (() => {\n const empty = new Subscription();\n empty.closed = true;\n return empty;\n})();\nexport const EMPTY_SUBSCRIPTION = Subscription.EMPTY;\nexport function isSubscription(value) {\n return (value instanceof Subscription ||\n (value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe)));\n}\nfunction execFinalizer(finalizer) {\n if (isFunction(finalizer)) {\n finalizer();\n }\n else {\n finalizer.unsubscribe();\n }\n}\n//# sourceMappingURL=Subscription.js.map","export const config = {\n onUnhandledError: null,\n onStoppedNotification: null,\n Promise: undefined,\n useDeprecatedSynchronousErrorHandling: false,\n useDeprecatedNextContext: false,\n};\n//# sourceMappingURL=config.js.map","export const timeoutProvider = {\n setTimeout(handler, timeout, ...args) {\n const { delegate } = timeoutProvider;\n if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {\n return delegate.setTimeout(handler, timeout, ...args);\n }\n return setTimeout(handler, timeout, ...args);\n },\n clearTimeout(handle) {\n const { delegate } = timeoutProvider;\n return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);\n },\n delegate: undefined,\n};\n//# sourceMappingURL=timeoutProvider.js.map","import { config } from '../config';\nimport { timeoutProvider } from '../scheduler/timeoutProvider';\nexport function reportUnhandledError(err) {\n timeoutProvider.setTimeout(() => {\n const { onUnhandledError } = config;\n if (onUnhandledError) {\n onUnhandledError(err);\n }\n else {\n throw err;\n }\n });\n}\n//# sourceMappingURL=reportUnhandledError.js.map","export function noop() { }\n//# sourceMappingURL=noop.js.map","export const COMPLETE_NOTIFICATION = (() => createNotification('C', undefined, undefined))();\nexport function errorNotification(error) {\n return createNotification('E', undefined, error);\n}\nexport function nextNotification(value) {\n return createNotification('N', value, undefined);\n}\nexport function createNotification(kind, value, error) {\n return {\n kind,\n value,\n error,\n };\n}\n//# sourceMappingURL=NotificationFactories.js.map","import { config } from '../config';\nlet context = null;\nexport function errorContext(cb) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n const isRoot = !context;\n if (isRoot) {\n context = { errorThrown: false, error: null };\n }\n cb();\n if (isRoot) {\n const { errorThrown, error } = context;\n context = null;\n if (errorThrown) {\n throw error;\n }\n }\n }\n else {\n cb();\n }\n}\nexport function captureError(err) {\n if (config.useDeprecatedSynchronousErrorHandling && context) {\n context.errorThrown = true;\n context.error = err;\n }\n}\n//# sourceMappingURL=errorContext.js.map","import { isFunction } from './util/isFunction';\nimport { isSubscription, Subscription } from './Subscription';\nimport { config } from './config';\nimport { reportUnhandledError } from './util/reportUnhandledError';\nimport { noop } from './util/noop';\nimport { nextNotification, errorNotification, COMPLETE_NOTIFICATION } from './NotificationFactories';\nimport { timeoutProvider } from './scheduler/timeoutProvider';\nimport { captureError } from './util/errorContext';\nexport class Subscriber extends Subscription {\n constructor(destination) {\n super();\n this.isStopped = false;\n if (destination) {\n this.destination = destination;\n if (isSubscription(destination)) {\n destination.add(this);\n }\n }\n else {\n this.destination = EMPTY_OBSERVER;\n }\n }\n static create(next, error, complete) {\n return new SafeSubscriber(next, error, complete);\n }\n next(value) {\n if (this.isStopped) {\n handleStoppedNotification(nextNotification(value), this);\n }\n else {\n this._next(value);\n }\n }\n error(err) {\n if (this.isStopped) {\n handleStoppedNotification(errorNotification(err), this);\n }\n else {\n this.isStopped = true;\n this._error(err);\n }\n }\n complete() {\n if (this.isStopped) {\n handleStoppedNotification(COMPLETE_NOTIFICATION, this);\n }\n else {\n this.isStopped = true;\n this._complete();\n }\n }\n unsubscribe() {\n if (!this.closed) {\n this.isStopped = true;\n super.unsubscribe();\n this.destination = null;\n }\n }\n _next(value) {\n this.destination.next(value);\n }\n _error(err) {\n try {\n this.destination.error(err);\n }\n finally {\n this.unsubscribe();\n }\n }\n _complete() {\n try {\n this.destination.complete();\n }\n finally {\n this.unsubscribe();\n }\n }\n}\nconst _bind = Function.prototype.bind;\nfunction bind(fn, thisArg) {\n return _bind.call(fn, thisArg);\n}\nclass ConsumerObserver {\n constructor(partialObserver) {\n this.partialObserver = partialObserver;\n }\n next(value) {\n const { partialObserver } = this;\n if (partialObserver.next) {\n try {\n partialObserver.next(value);\n }\n catch (error) {\n handleUnhandledError(error);\n }\n }\n }\n error(err) {\n const { partialObserver } = this;\n if (partialObserver.error) {\n try {\n partialObserver.error(err);\n }\n catch (error) {\n handleUnhandledError(error);\n }\n }\n else {\n handleUnhandledError(err);\n }\n }\n complete() {\n const { partialObserver } = this;\n if (partialObserver.complete) {\n try {\n partialObserver.complete();\n }\n catch (error) {\n handleUnhandledError(error);\n }\n }\n }\n}\nexport class SafeSubscriber extends Subscriber {\n constructor(observerOrNext, error, complete) {\n super();\n let partialObserver;\n if (isFunction(observerOrNext) || !observerOrNext) {\n partialObserver = {\n next: observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined,\n error: error !== null && error !== void 0 ? error : undefined,\n complete: complete !== null && complete !== void 0 ? complete : undefined,\n };\n }\n else {\n let context;\n if (this && config.useDeprecatedNextContext) {\n context = Object.create(observerOrNext);\n context.unsubscribe = () => this.unsubscribe();\n partialObserver = {\n next: observerOrNext.next && bind(observerOrNext.next, context),\n error: observerOrNext.error && bind(observerOrNext.error, context),\n complete: observerOrNext.complete && bind(observerOrNext.complete, context),\n };\n }\n else {\n partialObserver = observerOrNext;\n }\n }\n this.destination = new ConsumerObserver(partialObserver);\n }\n}\nfunction handleUnhandledError(error) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n captureError(error);\n }\n else {\n reportUnhandledError(error);\n }\n}\nfunction defaultErrorHandler(err) {\n throw err;\n}\nfunction handleStoppedNotification(notification, subscriber) {\n const { onStoppedNotification } = config;\n onStoppedNotification && timeoutProvider.setTimeout(() => onStoppedNotification(notification, subscriber));\n}\nexport const EMPTY_OBSERVER = {\n closed: true,\n next: noop,\n error: defaultErrorHandler,\n complete: noop,\n};\n//# sourceMappingURL=Subscriber.js.map","export const observable = (() => (typeof Symbol === 'function' && Symbol.observable) || '@@observable')();\n//# sourceMappingURL=observable.js.map","export function identity(x) {\n return x;\n}\n//# sourceMappingURL=identity.js.map","import { identity } from './identity';\nexport function pipe(...fns) {\n return pipeFromArray(fns);\n}\nexport function pipeFromArray(fns) {\n if (fns.length === 0) {\n return identity;\n }\n if (fns.length === 1) {\n return fns[0];\n }\n return function piped(input) {\n return fns.reduce((prev, fn) => fn(prev), input);\n };\n}\n//# sourceMappingURL=pipe.js.map","import { SafeSubscriber, Subscriber } from './Subscriber';\nimport { isSubscription } from './Subscription';\nimport { observable as Symbol_observable } from './symbol/observable';\nimport { pipeFromArray } from './util/pipe';\nimport { config } from './config';\nimport { isFunction } from './util/isFunction';\nimport { errorContext } from './util/errorContext';\nexport class Observable {\n constructor(subscribe) {\n if (subscribe) {\n this._subscribe = subscribe;\n }\n }\n lift(operator) {\n const observable = new Observable();\n observable.source = this;\n observable.operator = operator;\n return observable;\n }\n subscribe(observerOrNext, error, complete) {\n const subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);\n errorContext(() => {\n const { operator, source } = this;\n subscriber.add(operator\n ?\n operator.call(subscriber, source)\n : source\n ?\n this._subscribe(subscriber)\n :\n this._trySubscribe(subscriber));\n });\n return subscriber;\n }\n _trySubscribe(sink) {\n try {\n return this._subscribe(sink);\n }\n catch (err) {\n sink.error(err);\n }\n }\n forEach(next, promiseCtor) {\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor((resolve, reject) => {\n const subscriber = new SafeSubscriber({\n next: (value) => {\n try {\n next(value);\n }\n catch (err) {\n reject(err);\n subscriber.unsubscribe();\n }\n },\n error: reject,\n complete: resolve,\n });\n this.subscribe(subscriber);\n });\n }\n _subscribe(subscriber) {\n var _a;\n return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber);\n }\n [Symbol_observable]() {\n return this;\n }\n pipe(...operations) {\n return pipeFromArray(operations)(this);\n }\n toPromise(promiseCtor) {\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor((resolve, reject) => {\n let value;\n this.subscribe((x) => (value = x), (err) => reject(err), () => resolve(value));\n });\n }\n}\nObservable.create = (subscribe) => {\n return new Observable(subscribe);\n};\nfunction getPromiseCtor(promiseCtor) {\n var _a;\n return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise;\n}\nfunction isObserver(value) {\n return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);\n}\nfunction isSubscriber(value) {\n return (value && value instanceof Subscriber) || (isObserver(value) && isSubscription(value));\n}\n//# sourceMappingURL=Observable.js.map","import { isFunction } from './isFunction';\nexport function hasLift(source) {\n return isFunction(source === null || source === void 0 ? void 0 : source.lift);\n}\nexport function operate(init) {\n return (source) => {\n if (hasLift(source)) {\n return source.lift(function (liftedSource) {\n try {\n return init(liftedSource, this);\n }\n catch (err) {\n this.error(err);\n }\n });\n }\n throw new TypeError('Unable to lift unknown Observable type');\n };\n}\n//# sourceMappingURL=lift.js.map","import { Subscriber } from '../Subscriber';\nexport function createOperatorSubscriber(destination, onNext, onComplete, onError, onFinalize) {\n return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize);\n}\nexport class OperatorSubscriber extends Subscriber {\n constructor(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {\n super(destination);\n this.onFinalize = onFinalize;\n this.shouldUnsubscribe = shouldUnsubscribe;\n this._next = onNext\n ? function (value) {\n try {\n onNext(value);\n }\n catch (err) {\n destination.error(err);\n }\n }\n : super._next;\n this._error = onError\n ? function (err) {\n try {\n onError(err);\n }\n catch (err) {\n destination.error(err);\n }\n finally {\n this.unsubscribe();\n }\n }\n : super._error;\n this._complete = onComplete\n ? function () {\n try {\n onComplete();\n }\n catch (err) {\n destination.error(err);\n }\n finally {\n this.unsubscribe();\n }\n }\n : super._complete;\n }\n unsubscribe() {\n var _a;\n if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {\n const { closed } = this;\n super.unsubscribe();\n !closed && ((_a = this.onFinalize) === null || _a === void 0 ? void 0 : _a.call(this));\n }\n }\n}\n//# sourceMappingURL=OperatorSubscriber.js.map","import { isFunction } from './isFunction';\nexport function isScheduler(value) {\n return value && isFunction(value.schedule);\n}\n//# sourceMappingURL=isScheduler.js.map","import { isFunction } from './isFunction';\nimport { isScheduler } from './isScheduler';\nfunction last(arr) {\n return arr[arr.length - 1];\n}\nexport function popResultSelector(args) {\n return isFunction(last(args)) ? args.pop() : undefined;\n}\nexport function popScheduler(args) {\n return isScheduler(last(args)) ? args.pop() : undefined;\n}\nexport function popNumber(args, defaultValue) {\n return typeof last(args) === 'number' ? args.pop() : defaultValue;\n}\n//# sourceMappingURL=args.js.map","/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n function next() {\r\n while (env.stack.length) {\r\n var rec = env.stack.pop();\r\n try {\r\n var result = rec.dispose && rec.dispose.call(rec.value);\r\n if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n};\r\n","export const isArrayLike = ((x) => x && typeof x.length === 'number' && typeof x !== 'function');\n//# sourceMappingURL=isArrayLike.js.map","import { isFunction } from \"./isFunction\";\nexport function isPromise(value) {\n return isFunction(value === null || value === void 0 ? void 0 : value.then);\n}\n//# sourceMappingURL=isPromise.js.map","import { observable as Symbol_observable } from '../symbol/observable';\nimport { isFunction } from './isFunction';\nexport function isInteropObservable(input) {\n return isFunction(input[Symbol_observable]);\n}\n//# sourceMappingURL=isInteropObservable.js.map","import { isFunction } from './isFunction';\nexport function isAsyncIterable(obj) {\n return Symbol.asyncIterator && isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]);\n}\n//# sourceMappingURL=isAsyncIterable.js.map","export function createInvalidObservableTypeError(input) {\n return new TypeError(`You provided ${input !== null && typeof input === 'object' ? 'an invalid object' : `'${input}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`);\n}\n//# sourceMappingURL=throwUnobservableError.js.map","export function getSymbolIterator() {\n if (typeof Symbol !== 'function' || !Symbol.iterator) {\n return '@@iterator';\n }\n return Symbol.iterator;\n}\nexport const iterator = getSymbolIterator();\n//# sourceMappingURL=iterator.js.map","import { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { isFunction } from './isFunction';\nexport function isIterable(input) {\n return isFunction(input === null || input === void 0 ? void 0 : input[Symbol_iterator]);\n}\n//# sourceMappingURL=isIterable.js.map","import { __asyncGenerator, __await } from \"tslib\";\nimport { isFunction } from './isFunction';\nexport function readableStreamLikeToAsyncGenerator(readableStream) {\n return __asyncGenerator(this, arguments, function* readableStreamLikeToAsyncGenerator_1() {\n const reader = readableStream.getReader();\n try {\n while (true) {\n const { value, done } = yield __await(reader.read());\n if (done) {\n return yield __await(void 0);\n }\n yield yield __await(value);\n }\n }\n finally {\n reader.releaseLock();\n }\n });\n}\nexport function isReadableStreamLike(obj) {\n return isFunction(obj === null || obj === void 0 ? void 0 : obj.getReader);\n}\n//# sourceMappingURL=isReadableStreamLike.js.map","import { __asyncValues, __awaiter } from \"tslib\";\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isPromise } from '../util/isPromise';\nimport { Observable } from '../Observable';\nimport { isInteropObservable } from '../util/isInteropObservable';\nimport { isAsyncIterable } from '../util/isAsyncIterable';\nimport { createInvalidObservableTypeError } from '../util/throwUnobservableError';\nimport { isIterable } from '../util/isIterable';\nimport { isReadableStreamLike, readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike';\nimport { isFunction } from '../util/isFunction';\nimport { reportUnhandledError } from '../util/reportUnhandledError';\nimport { observable as Symbol_observable } from '../symbol/observable';\nexport function innerFrom(input) {\n if (input instanceof Observable) {\n return input;\n }\n if (input != null) {\n if (isInteropObservable(input)) {\n return fromInteropObservable(input);\n }\n if (isArrayLike(input)) {\n return fromArrayLike(input);\n }\n if (isPromise(input)) {\n return fromPromise(input);\n }\n if (isAsyncIterable(input)) {\n return fromAsyncIterable(input);\n }\n if (isIterable(input)) {\n return fromIterable(input);\n }\n if (isReadableStreamLike(input)) {\n return fromReadableStreamLike(input);\n }\n }\n throw createInvalidObservableTypeError(input);\n}\nexport function fromInteropObservable(obj) {\n return new Observable((subscriber) => {\n const obs = obj[Symbol_observable]();\n if (isFunction(obs.subscribe)) {\n return obs.subscribe(subscriber);\n }\n throw new TypeError('Provided object does not correctly implement Symbol.observable');\n });\n}\nexport function fromArrayLike(array) {\n return new Observable((subscriber) => {\n for (let i = 0; i < array.length && !subscriber.closed; i++) {\n subscriber.next(array[i]);\n }\n subscriber.complete();\n });\n}\nexport function fromPromise(promise) {\n return new Observable((subscriber) => {\n promise\n .then((value) => {\n if (!subscriber.closed) {\n subscriber.next(value);\n subscriber.complete();\n }\n }, (err) => subscriber.error(err))\n .then(null, reportUnhandledError);\n });\n}\nexport function fromIterable(iterable) {\n return new Observable((subscriber) => {\n for (const value of iterable) {\n subscriber.next(value);\n if (subscriber.closed) {\n return;\n }\n }\n subscriber.complete();\n });\n}\nexport function fromAsyncIterable(asyncIterable) {\n return new Observable((subscriber) => {\n process(asyncIterable, subscriber).catch((err) => subscriber.error(err));\n });\n}\nexport function fromReadableStreamLike(readableStream) {\n return fromAsyncIterable(readableStreamLikeToAsyncGenerator(readableStream));\n}\nfunction process(asyncIterable, subscriber) {\n var asyncIterable_1, asyncIterable_1_1;\n var e_1, _a;\n return __awaiter(this, void 0, void 0, function* () {\n try {\n for (asyncIterable_1 = __asyncValues(asyncIterable); asyncIterable_1_1 = yield asyncIterable_1.next(), !asyncIterable_1_1.done;) {\n const value = asyncIterable_1_1.value;\n subscriber.next(value);\n if (subscriber.closed) {\n return;\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (asyncIterable_1_1 && !asyncIterable_1_1.done && (_a = asyncIterable_1.return)) yield _a.call(asyncIterable_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n subscriber.complete();\n });\n}\n//# sourceMappingURL=innerFrom.js.map","export function executeSchedule(parentSubscription, scheduler, work, delay = 0, repeat = false) {\n const scheduleSubscription = scheduler.schedule(function () {\n work();\n if (repeat) {\n parentSubscription.add(this.schedule(null, delay));\n }\n else {\n this.unsubscribe();\n }\n }, delay);\n parentSubscription.add(scheduleSubscription);\n if (!repeat) {\n return scheduleSubscription;\n }\n}\n//# sourceMappingURL=executeSchedule.js.map","import { executeSchedule } from '../util/executeSchedule';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function observeOn(scheduler, delay = 0) {\n return operate((source, subscriber) => {\n source.subscribe(createOperatorSubscriber(subscriber, (value) => executeSchedule(subscriber, scheduler, () => subscriber.next(value), delay), () => executeSchedule(subscriber, scheduler, () => subscriber.complete(), delay), (err) => executeSchedule(subscriber, scheduler, () => subscriber.error(err), delay)));\n });\n}\n//# sourceMappingURL=observeOn.js.map","import { operate } from '../util/lift';\nexport function subscribeOn(scheduler, delay = 0) {\n return operate((source, subscriber) => {\n subscriber.add(scheduler.schedule(() => source.subscribe(subscriber), delay));\n });\n}\n//# sourceMappingURL=subscribeOn.js.map","import { innerFrom } from '../observable/innerFrom';\nimport { observeOn } from '../operators/observeOn';\nimport { subscribeOn } from '../operators/subscribeOn';\nexport function scheduleObservable(input, scheduler) {\n return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));\n}\n//# sourceMappingURL=scheduleObservable.js.map","import { innerFrom } from '../observable/innerFrom';\nimport { observeOn } from '../operators/observeOn';\nimport { subscribeOn } from '../operators/subscribeOn';\nexport function schedulePromise(input, scheduler) {\n return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));\n}\n//# sourceMappingURL=schedulePromise.js.map","import { Observable } from '../Observable';\nexport function scheduleArray(input, scheduler) {\n return new Observable((subscriber) => {\n let i = 0;\n return scheduler.schedule(function () {\n if (i === input.length) {\n subscriber.complete();\n }\n else {\n subscriber.next(input[i++]);\n if (!subscriber.closed) {\n this.schedule();\n }\n }\n });\n });\n}\n//# sourceMappingURL=scheduleArray.js.map","import { Observable } from '../Observable';\nimport { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { isFunction } from '../util/isFunction';\nimport { executeSchedule } from '../util/executeSchedule';\nexport function scheduleIterable(input, scheduler) {\n return new Observable((subscriber) => {\n let iterator;\n executeSchedule(subscriber, scheduler, () => {\n iterator = input[Symbol_iterator]();\n executeSchedule(subscriber, scheduler, () => {\n let value;\n let done;\n try {\n ({ value, done } = iterator.next());\n }\n catch (err) {\n subscriber.error(err);\n return;\n }\n if (done) {\n subscriber.complete();\n }\n else {\n subscriber.next(value);\n }\n }, 0, true);\n });\n return () => isFunction(iterator === null || iterator === void 0 ? void 0 : iterator.return) && iterator.return();\n });\n}\n//# sourceMappingURL=scheduleIterable.js.map","import { Observable } from '../Observable';\nimport { executeSchedule } from '../util/executeSchedule';\nexport function scheduleAsyncIterable(input, scheduler) {\n if (!input) {\n throw new Error('Iterable cannot be null');\n }\n return new Observable((subscriber) => {\n executeSchedule(subscriber, scheduler, () => {\n const iterator = input[Symbol.asyncIterator]();\n executeSchedule(subscriber, scheduler, () => {\n iterator.next().then((result) => {\n if (result.done) {\n subscriber.complete();\n }\n else {\n subscriber.next(result.value);\n }\n });\n }, 0, true);\n });\n });\n}\n//# sourceMappingURL=scheduleAsyncIterable.js.map","import { scheduleAsyncIterable } from './scheduleAsyncIterable';\nimport { readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike';\nexport function scheduleReadableStreamLike(input, scheduler) {\n return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(input), scheduler);\n}\n//# sourceMappingURL=scheduleReadableStreamLike.js.map","import { scheduleObservable } from './scheduleObservable';\nimport { schedulePromise } from './schedulePromise';\nimport { scheduleArray } from './scheduleArray';\nimport { scheduleIterable } from './scheduleIterable';\nimport { scheduleAsyncIterable } from './scheduleAsyncIterable';\nimport { isInteropObservable } from '../util/isInteropObservable';\nimport { isPromise } from '../util/isPromise';\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isIterable } from '../util/isIterable';\nimport { isAsyncIterable } from '../util/isAsyncIterable';\nimport { createInvalidObservableTypeError } from '../util/throwUnobservableError';\nimport { isReadableStreamLike } from '../util/isReadableStreamLike';\nimport { scheduleReadableStreamLike } from './scheduleReadableStreamLike';\nexport function scheduled(input, scheduler) {\n if (input != null) {\n if (isInteropObservable(input)) {\n return scheduleObservable(input, scheduler);\n }\n if (isArrayLike(input)) {\n return scheduleArray(input, scheduler);\n }\n if (isPromise(input)) {\n return schedulePromise(input, scheduler);\n }\n if (isAsyncIterable(input)) {\n return scheduleAsyncIterable(input, scheduler);\n }\n if (isIterable(input)) {\n return scheduleIterable(input, scheduler);\n }\n if (isReadableStreamLike(input)) {\n return scheduleReadableStreamLike(input, scheduler);\n }\n }\n throw createInvalidObservableTypeError(input);\n}\n//# sourceMappingURL=scheduled.js.map","import { scheduled } from '../scheduled/scheduled';\nimport { innerFrom } from './innerFrom';\nexport function from(input, scheduler) {\n return scheduler ? scheduled(input, scheduler) : innerFrom(input);\n}\n//# sourceMappingURL=from.js.map","import { popScheduler } from '../util/args';\nimport { from } from './from';\nexport function of(...args) {\n const scheduler = popScheduler(args);\n return from(args, scheduler);\n}\n//# sourceMappingURL=of.js.map"],"mappings":"iYAMC,SAAUA,EAAMC,GAIN,GAAkCC,EAAOC,QAAS,CACrDD,EAAAC,QAAiBF,GACzB,KAAW,CACHD,EAAKI,IAAMH,GACnB,CACA,EATA,CASEI,GAAM,WAIJ,IAAIC,EAAO,WAAW,EACtB,IAAIC,EAAgB,YACpB,IAAIC,SAAeC,SAAWF,UAA0BE,OAAOC,YAAcH,GACzE,kBAAkBI,KAAKF,OAAOC,UAAUE,WAG5C,IAAIC,EAAa,CACb,QACA,QACA,OACA,OACA,SAIJ,SAASC,EAAWC,EAAKC,GACrB,IAAIC,EAASF,EAAIC,GACjB,UAAWC,EAAOC,OAAS,WAAY,CACnC,OAAOD,EAAOC,KAAKH,EAC/B,KAAe,CACH,IACI,OAAOI,SAASC,UAAUF,KAAKG,KAAKJ,EAAQF,EAC5D,CAAc,MAAOO,GAEL,OAAO,WACH,OAAOH,SAASC,UAAUG,MAAMA,MAAMN,EAAQ,CAACF,EAAKS,WACxE,CACA,CACA,CACA,CAGI,SAASC,IACL,GAAIC,QAAQtB,IAAK,CACb,GAAIsB,QAAQtB,IAAImB,MAAO,CACnBG,QAAQtB,IAAImB,MAAMG,QAASF,UAC3C,KAAmB,CAEHL,SAASC,UAAUG,MAAMA,MAAMG,QAAQtB,IAAK,CAACsB,QAASF,WACtE,CACA,CACQ,GAAIE,QAAQC,MAAOD,QAAQC,OACnC,CAII,SAASC,EAAWZ,GAChB,GAAIA,IAAe,QAAS,CACxBA,EAAa,KACzB,CAEQ,UAAWU,UAAYnB,EAAe,CAClC,OAAO,KACnB,MAAe,GAAIS,IA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xD,EAAWhB,UACnC,KACyB,CACDgB,EAAWjB,KAAKwE,EAAO9I,MAC/C,IACkB,GACH,EAAG,KAAK,GACb,GAEV,CCnBO,SAAS2N,GAA2B5H,EAAOgH,GAC9C,OAAOW,GAAsBxC,GAAmCnF,GAAQgH,EAC5E,CCSO,SAASa,GAAU7H,EAAOgH,GAC7B,GAAIhH,GAAS,KAAM,CACf,GAAI6E,GAAoB7E,GAAQ,CAC5B,OAAOuH,GAAmBvH,EAAOgH,EAC7C,CACQ,GAAIrC,GAAY3E,GAAQ,CACpB,OAAOyH,GAAczH,EAAOgH,EACxC,CACQ,GAAIpC,GAAU5E,GAAQ,CAClB,OAAOwH,GAAgBxH,EAAOgH,EAC1C,CACQ,GAAIlC,GAAgB9E,GAAQ,CACxB,OAAO2H,GAAsB3H,EAAOgH,EAChD,CACQ,GAAI/B,GAAWjF,GAAQ,CACnB,OAAO0H,GAAiB1H,EAAOgH,EAC3C,CACQ,GAAItB,GAAqB1F,GAAQ,CAC7B,OAAO4H,GAA2B5H,EAAOgH,EACrD,CACA,CACI,MAAMjC,GAAiC/E,EAC3C,CCjCO,SAAS8H,GAAK9H,EAAOgH,GACxB,OAAOA,EAAYa,GAAU7H,EAAOgH,GAAarB,GAAU3F,EAC/D,CCFO,SAAS+H,MAAMzK,GAClB,MAAM0J,EAAY7E,GAAa7E,GAC/B,OAAOwK,GAAKxK,EAAM0J,EACtB,Q"} \ No newline at end of file diff --git a/index.html b/index.html index cc360a2d..855dfd7b 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ - Catalyst | StencilJS