vrembem 4.0.0-next.14 → 4.0.0-next.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
- (function(y,S){typeof exports=="object"&&typeof module<"u"?S(exports):typeof define=="function"&&define.amd?define(["exports"],S):(y=typeof globalThis<"u"?globalThis:y||self,S(y.vrembem={}))})(this,function(y){"use strict";var Ze=y=>{throw TypeError(y)};var ti=(y,S,D)=>S.has(y)||Ze("Cannot "+D);var O=(y,S,D)=>(ti(y,S,"read from private field"),D?D.call(y):S.get(y)),Y=(y,S,D)=>S.has(y)?Ze("Cannot add the same private member more than once"):S instanceof WeakSet?S.add(y):S.set(y,D),F=(y,S,D,p)=>(ti(y,S,"write to private field"),p?p.call(y,D):S.set(y,D),D);var H,ut,Z,tt,ft,pt,ht,gt,vt;class S{constructor(e,i){Y(this,H);this.value=e,F(this,H,i),this.mql=null}get handler(){return O(this,H)}set handler(e){this.mql&&this.mql.removeEventListener("change",O(this,H)),F(this,H,e)}mount(e,i){return e&&(this.value=e),i&&F(this,H,i),this.value?(this.mql=window.matchMedia(`(min-width: ${this.value})`),this.mql.addEventListener("change",O(this,H)),O(this,H).call(this,this.mql),this):this}unmount(){return this.mql?(this.mql.removeEventListener("change",O(this,H)),this.value=null,F(this,H,null),this.mql=null,this):this}}H=new WeakMap;class D{constructor(){this.collection=[]}async register(e){return await this.deregister(e),this.collection.push(e),this.collection}async deregister(e){const i=this.collection.findIndex(s=>s===e);if(i>=0){const s=this.collection[i];Object.getOwnPropertyNames(s).forEach(n=>{delete s[n]}),this.collection.splice(i,1)}return this.collection}async registerCollection(e){return await Promise.all(Array.from(e,i=>{this.register(i)})),this.collection}async deregisterCollection(){for(;this.collection.length>0;)await this.deregister(this.collection[0]);return this.collection}get(e,i="id"){return this.collection.find(s=>s[i]===e)}}const p={inert:":not([inert]):not([inert] *)",negTabIndex:':not([tabindex^="-"])',disabled:":not(:disabled)"},ei=[`a[href]${p.inert}${p.negTabIndex}`,`area[href]${p.inert}${p.negTabIndex}`,`input:not([type="hidden"]):not([type="radio"])${p.inert}${p.negTabIndex}${p.disabled}`,`input[type="radio"]${p.inert}${p.negTabIndex}${p.disabled}`,`select${p.inert}${p.negTabIndex}${p.disabled}`,`textarea${p.inert}${p.negTabIndex}${p.disabled}`,`button${p.inert}${p.negTabIndex}${p.disabled}`,`details${p.inert} > summary:first-of-type${p.negTabIndex}`,`iframe${p.inert}${p.negTabIndex}`,`audio[controls]${p.inert}${p.negTabIndex}`,`video[controls]${p.inert}${p.negTabIndex}`,`[contenteditable]${p.inert}${p.negTabIndex}`,`[tabindex]${p.inert}${p.negTabIndex}`];class Ht{constructor(e=null,i="[data-focus]"){Y(this,ut);Y(this,Z);Y(this,tt);this.el=e,this.selectorFocus=i,F(this,Z,ii.bind(this)),F(this,tt,si.bind(this))}get focusable(){return O(this,ut)}set focusable(e){F(this,ut,e),O(this,ut).length?(document.removeEventListener("keydown",O(this,tt)),document.addEventListener("keydown",O(this,Z))):(document.removeEventListener("keydown",O(this,Z)),document.addEventListener("keydown",O(this,tt)))}get focusableFirst(){return this.focusable[0]}get focusableLast(){return this.focusable[this.focusable.length-1]}mount(e,i){e&&(this.el=e),i&&(this.selectorFocus=i),this.focusable=this.getFocusable(),this.focus()}unmount(){this.el=null,this.focusable=[],document.removeEventListener("keydown",O(this,Z)),document.removeEventListener("keydown",O(this,tt))}focus(e=this.el,i=this.selectorFocus){(e.querySelector(i)||e).focus()}getFocusable(e=this.el){const i=[],s=document.activeElement,n=e.scrollTop;return e.querySelectorAll(ei.join(",")).forEach(a=>{a.focus(),document.activeElement===a&&i.push(a)}),e.scrollTop=n,s.focus(),i}}ut=new WeakMap,Z=new WeakMap,tt=new WeakMap;function ii(t){(t.key==="Tab"||t.keyCode===9)&&(t.shiftKey?(document.activeElement===this.focusableFirst||document.activeElement===this.el)&&(t.preventDefault(),this.focusableLast.focus()):(document.activeElement===this.focusableLast||document.activeElement===this.el)&&(t.preventDefault(),this.focusableFirst.focus()))}function si(t){(t.key==="Tab"||t.keyCode===9)&&t.preventDefault()}function Pt(){return getComputedStyle(document.body).getPropertyValue("--vb-prefix").trim()}function he(t,e=document.body){if(t.slice(0,2)!=="--"){const s=Pt();s&&(t=`${s}${t}`),t=`--${t}`}const i=getComputedStyle(e).getPropertyValue(t).trim();if(i)return i;throw new Error(`CSS variable "${t}" was not found!`)}function _t(t,e){const s=(t.getAttribute(`data-${e}`)||"").replace(/'/g,'"');return s?JSON.parse(s):{}}function ge(t,e=!0){const i=localStorage.getItem(t),s=i?JSON.parse(i):{};return{get(n){return n?s[n]:s},set(n,r){return r?s[n]=r:delete s[n],e&&localStorage.setItem(t,JSON.stringify(s)),s}}}function zt(t,e,i){const s=e.nodeType===Node.COMMENT_NODE,n=e.nodeType===Node.ELEMENT_NODE;if(e=s||n?e:document.querySelector(e),s&&(i="after"),!e)throw new Error(`Not a valid teleport reference: '${e}'`);if(typeof e[i]!="function")throw new Error(`Not a valid teleport method: '${i}'`);let r=null;return s||(r=document.createComment("teleported #"+t.id),t.before(r)),e[i](t),s&&e.remove(),r}function bt(t,e,i,s="transition-duration"){return new Promise(n=>{if(typeof s=="string"){const r=he(s,t),a=!!r.includes("ms");s=parseFloat(r)*(a?1:1e3)}t.classList.remove(e.finish),t.classList.add(i.start),setTimeout(()=>{t.classList.add(i.finish),t.classList.remove(i.start),n(t)},s)})}function ni(t,e){e&&document.querySelectorAll(e).forEach(s=>{t?s.style.overflow="hidden":s.style.removeProperty("overflow")})}function ri(t,e){e&&document.querySelectorAll(e).forEach(s=>{t?(s.inert=!0,s.setAttribute("aria-hidden",!0)):(s.inert=null,s.removeAttribute("aria-hidden"))})}function wt(t,e){ri(!!t,e.selectorInert),ni(!!t,e.selectorOverflow)}const oi=Object.freeze(Object.defineProperty({__proto__:null,Breakpoint:S,Collection:D,FocusTrap:Ht,cssVar:he,getConfig:_t,getPrefix:Pt,localStore:ge,teleport:zt,transition:bt,updateGlobalState:wt},Symbol.toStringTag,{value:"Module"})),ai={autoMount:!1,dataOpen:"drawer-open",dataClose:"drawer-close",dataToggle:"drawer-toggle",dataBreakpoint:"drawer-breakpoint",dataConfig:"drawer-config",selectorDrawer:".drawer",selectorDialog:".drawer__dialog",selectorScreen:".drawer",selectorFocus:"[data-focus]",selectorInert:null,selectorOverflow:"body",stateOpened:"is-opened",stateOpening:"is-opening",stateClosing:"is-closing",stateClosed:"is-closed",classModal:"drawer_modal",breakpoints:null,customEventPrefix:"drawer:",eventListeners:!0,store:!0,storeKey:"VB:DrawerState",setTabindex:!0,transition:!0,transitionDuration:"drawer-transition-duration"};function li(t){t.store==="opened"?t.open(!1,!1):t.store==="closed"?t.close(!1,!1):t.store==="indeterminate"?t.state="indeterminate":t.el.classList.contains(t.getSetting("stateOpened"))?t.open(!1,!1):t.el.classList.contains(t.getSetting("stateClosed"))?t.close(!1,!1):t.state="indeterminate"}async function ci(t){t.store==="opened"?await t.open(!1,!1):t.store==="closed"?await t.close(!1,!1):t.store==="indeterminate"?t.state!="indeterminate"&&(t.state="indeterminate"):(t.state!=t.inlineState&&(t.state=t.inlineState),t.inlineState==="opened"?await t.open(!1,!1):t.inlineState==="closed"&&await t.close(!1,!1))}function di(t){const e=Pt(),i=t.getAttribute(`data-${this.settings.dataBreakpoint}`);return this.settings.breakpoints&&this.settings.breakpoints[i]?this.settings.breakpoints[i]:getComputedStyle(document.body).getPropertyValue(`--${e}breakpoint-${i}`).trim()?getComputedStyle(document.body).getPropertyValue(`--${e}breakpoint-${i}`).trim():i}function ot(t){const e=typeof t=="string"?this.get(t):this.get(t.id);if(e)return e;throw new Error(`Drawer not found in collection with id of "${t.id||t}".`)}function ve(t){t.state==="opened"?t.mode==="modal"?this.focusTrap.mount(t.dialog,this.settings.selectorFocus):this.focusTrap.focus(t.dialog,this.settings.selectorFocus):(t.trigger&&(t.trigger.focus(),t.trigger=null),this.focusTrap.unmount())}async function ui(t){const e=t.target.closest(`
1
+ (function(y,k){typeof exports=="object"&&typeof module<"u"?k(exports):typeof define=="function"&&define.amd?define(["exports"],k):(y=typeof globalThis<"u"?globalThis:y||self,k(y.vrembem={}))})(this,function(y){"use strict";var Ze=y=>{throw TypeError(y)};var ti=(y,k,D)=>k.has(y)||Ze("Cannot "+D);var O=(y,k,D)=>(ti(y,k,"read from private field"),D?D.call(y):k.get(y)),Y=(y,k,D)=>k.has(y)?Ze("Cannot add the same private member more than once"):k instanceof WeakSet?k.add(y):k.set(y,D),F=(y,k,D,p)=>(ti(y,k,"write to private field"),p?p.call(y,D):k.set(y,D),D);var H,ut,Z,tt,ft,pt,ht,gt,vt;class k{constructor(e,i){Y(this,H);this.value=e,F(this,H,i),this.mql=null}get handler(){return O(this,H)}set handler(e){this.mql&&this.mql.removeEventListener("change",O(this,H)),F(this,H,e)}mount(e,i){return e&&(this.value=e),i&&F(this,H,i),this.value?(this.mql=window.matchMedia(`(min-width: ${this.value})`),this.mql.addEventListener("change",O(this,H)),O(this,H).call(this,this.mql),this):this}unmount(){return this.mql?(this.mql.removeEventListener("change",O(this,H)),this.value=null,F(this,H,null),this.mql=null,this):this}}H=new WeakMap;class D{constructor(){this.collection=[]}async register(e){return await this.deregister(e),this.collection.push(e),this.collection}async deregister(e){const i=this.collection.findIndex(s=>s===e);if(i>=0){const s=this.collection[i];Object.getOwnPropertyNames(s).forEach(n=>{delete s[n]}),this.collection.splice(i,1)}return this.collection}async registerCollection(e){return await Promise.all(Array.from(e,i=>{this.register(i)})),this.collection}async deregisterCollection(){for(;this.collection.length>0;)await this.deregister(this.collection[0]);return this.collection}get(e,i="id"){return this.collection.find(s=>s[i]===e)}}const p={inert:":not([inert]):not([inert] *)",negTabIndex:':not([tabindex^="-"])',disabled:":not(:disabled)"},ei=[`a[href]${p.inert}${p.negTabIndex}`,`area[href]${p.inert}${p.negTabIndex}`,`input:not([type="hidden"]):not([type="radio"])${p.inert}${p.negTabIndex}${p.disabled}`,`input[type="radio"]${p.inert}${p.negTabIndex}${p.disabled}`,`select${p.inert}${p.negTabIndex}${p.disabled}`,`textarea${p.inert}${p.negTabIndex}${p.disabled}`,`button${p.inert}${p.negTabIndex}${p.disabled}`,`details${p.inert} > summary:first-of-type${p.negTabIndex}`,`iframe${p.inert}${p.negTabIndex}`,`audio[controls]${p.inert}${p.negTabIndex}`,`video[controls]${p.inert}${p.negTabIndex}`,`[contenteditable]${p.inert}${p.negTabIndex}`,`[tabindex]${p.inert}${p.negTabIndex}`];class Ht{constructor(e=null,i="[data-focus]"){Y(this,ut);Y(this,Z);Y(this,tt);this.el=e,this.selectorFocus=i,F(this,Z,ii.bind(this)),F(this,tt,si.bind(this))}get focusable(){return O(this,ut)}set focusable(e){F(this,ut,e),O(this,ut).length?(document.removeEventListener("keydown",O(this,tt)),document.addEventListener("keydown",O(this,Z))):(document.removeEventListener("keydown",O(this,Z)),document.addEventListener("keydown",O(this,tt)))}get focusableFirst(){return this.focusable[0]}get focusableLast(){return this.focusable[this.focusable.length-1]}mount(e,i){e&&(this.el=e),i&&(this.selectorFocus=i),this.focusable=this.getFocusable(),this.focus()}unmount(){this.el=null,this.focusable=[],document.removeEventListener("keydown",O(this,Z)),document.removeEventListener("keydown",O(this,tt))}focus(e=this.el,i=this.selectorFocus){(e.querySelector(i)||e).focus()}getFocusable(e=this.el){const i=[],s=document.activeElement,n=e.scrollTop;return e.querySelectorAll(ei.join(",")).forEach(a=>{a.focus(),document.activeElement===a&&i.push(a)}),e.scrollTop=n,s.focus(),i}}ut=new WeakMap,Z=new WeakMap,tt=new WeakMap;function ii(t){(t.key==="Tab"||t.keyCode===9)&&(t.shiftKey?(document.activeElement===this.focusableFirst||document.activeElement===this.el)&&(t.preventDefault(),this.focusableLast.focus()):(document.activeElement===this.focusableLast||document.activeElement===this.el)&&(t.preventDefault(),this.focusableFirst.focus()))}function si(t){(t.key==="Tab"||t.keyCode===9)&&t.preventDefault()}function Pt(){return getComputedStyle(document.body).getPropertyValue("--vb-prefix").trim()}function _t(t,e){const i={fallback:null,element:document.body,...e};if(t.slice(0,2)!=="--"){const n=Pt();n&&(t=`${n}${t}`),t=`--${t}`}const s=getComputedStyle(i.element).getPropertyValue(t).trim();if(s)return s;if(i.fallback)return i.fallback;throw new Error(`CSS variable "${t}" was not found!`)}function zt(t,e){const s=(t.getAttribute(`data-${e}`)||"").replace(/'/g,'"');return s?JSON.parse(s):{}}function Kt(t,e=!0){const i=localStorage.getItem(t),s=i?JSON.parse(i):{};return{get(n){return n?s[n]:s},set(n,r){return r?s[n]=r:delete s[n],e&&localStorage.setItem(t,JSON.stringify(s)),s}}}function Xt(t,e,i){const s=e.nodeType===Node.COMMENT_NODE,n=e.nodeType===Node.ELEMENT_NODE;if(e=s||n?e:document.querySelector(e),s&&(i="after"),!e)throw new Error(`Not a valid teleport reference: '${e}'`);if(typeof e[i]!="function")throw new Error(`Not a valid teleport method: '${i}'`);let r=null;return s||(r=document.createComment("teleported #"+t.id),t.before(r)),e[i](t),s&&e.remove(),r}function ni(t){const e={prefix:_t("prefix-themes",{fallback:"vb-theme-"}),themes:["root","light","dark"],storeKey:"VB:Profile"};for(const[r]of Object.entries(e))t&&t[r]&&(e[r]=t[r]);const i={onInit(){},onChange(){}};for(const[r]of Object.entries(i))t&&t[r]&&(i[r]=t[r]);const s=Kt(e.storeKey),n={settings:e,add(r){e.themes.push(r)},remove(r){const a=e.themes.indexOf(r);~a&&e.themes.splice(a,1)},callback(r){i[r].call(this)},get class(){return`${e.prefix}${this.theme}`},get classes(){return e.themes.map(r=>`${e.prefix}${r}`)},get themes(){return e.themes},get theme(){return s.get("theme")||"root"},set theme(r){e.themes.includes(r)?this.theme!=r&&(s.set("theme",r),document.documentElement.classList.remove(...this.classes),document.documentElement.classList.add(`${e.prefix}${r}`),this.callback("onChange")):console.error(`Not a valid theme value: "${r}"`)}};return n.callback("onInit"),n}function bt(t,e,i,s="transition-duration"){return new Promise(n=>{if(typeof s=="string"){const r=_t(s,{element:t}),a=!!r.includes("ms");s=parseFloat(r)*(a?1:1e3)}t.classList.remove(e.finish),t.classList.add(i.start),setTimeout(()=>{t.classList.add(i.finish),t.classList.remove(i.start),n(t)},s)})}function ri(t,e){e&&document.querySelectorAll(e).forEach(s=>{t?s.style.overflow="hidden":s.style.removeProperty("overflow")})}function oi(t,e){e&&document.querySelectorAll(e).forEach(s=>{t?(s.inert=!0,s.setAttribute("aria-hidden",!0)):(s.inert=null,s.removeAttribute("aria-hidden"))})}function wt(t,e){oi(!!t,e.selectorInert),ri(!!t,e.selectorOverflow)}const ai=Object.freeze(Object.defineProperty({__proto__:null,Breakpoint:k,Collection:D,FocusTrap:Ht,cssVar:_t,getConfig:zt,getPrefix:Pt,localStore:Kt,teleport:Xt,themeStore:ni,transition:bt,updateGlobalState:wt},Symbol.toStringTag,{value:"Module"})),li={autoMount:!1,dataOpen:"drawer-open",dataClose:"drawer-close",dataToggle:"drawer-toggle",dataBreakpoint:"drawer-breakpoint",dataConfig:"drawer-config",selectorDrawer:".drawer",selectorDialog:".drawer__dialog",selectorScreen:".drawer",selectorFocus:"[data-focus]",selectorInert:null,selectorOverflow:"body",stateOpened:"is-opened",stateOpening:"is-opening",stateClosing:"is-closing",stateClosed:"is-closed",classModal:"drawer_modal",breakpoints:null,customEventPrefix:"drawer:",eventListeners:!0,store:!0,storeKey:"VB:DrawerState",setTabindex:!0,transition:!0,transitionDuration:"drawer-transition-duration"};function ci(t){t.store==="opened"?t.open(!1,!1):t.store==="closed"?t.close(!1,!1):t.store==="indeterminate"?t.state="indeterminate":t.el.classList.contains(t.getSetting("stateOpened"))?t.open(!1,!1):t.el.classList.contains(t.getSetting("stateClosed"))?t.close(!1,!1):t.state="indeterminate"}async function di(t){t.store==="opened"?await t.open(!1,!1):t.store==="closed"?await t.close(!1,!1):t.store==="indeterminate"?t.state!="indeterminate"&&(t.state="indeterminate"):(t.state!=t.inlineState&&(t.state=t.inlineState),t.inlineState==="opened"?await t.open(!1,!1):t.inlineState==="closed"&&await t.close(!1,!1))}function ui(t){const e=Pt(),i=t.getAttribute(`data-${this.settings.dataBreakpoint}`);return this.settings.breakpoints&&this.settings.breakpoints[i]?this.settings.breakpoints[i]:getComputedStyle(document.body).getPropertyValue(`--${e}breakpoint-${i}`).trim()?getComputedStyle(document.body).getPropertyValue(`--${e}breakpoint-${i}`).trim():i}function ot(t){const e=typeof t=="string"?this.get(t):this.get(t.id);if(e)return e;throw new Error(`Drawer not found in collection with id of "${t.id||t}".`)}function ve(t){t.state==="opened"?t.mode==="modal"?this.focusTrap.mount(t.dialog,this.settings.selectorFocus):this.focusTrap.focus(t.dialog,this.settings.selectorFocus):(t.trigger&&(t.trigger.focus(),t.trigger=null),this.focusTrap.unmount())}async function fi(t){const e=t.target.closest(`
2
2
  [data-${this.settings.dataOpen}],
3
3
  [data-${this.settings.dataToggle}],
4
4
  [data-${this.settings.dataClose}]
5
- `);if(e){t.preventDefault(),e.matches(`[data-${this.settings.dataToggle}]`)&&e.getAttribute(`data-${this.settings.dataToggle}`).trim().split(" ").forEach(s=>{const n=ot.call(this,s);return n.trigger=e,n.toggle()}),e.matches(`[data-${this.settings.dataOpen}]`)&&e.getAttribute(`data-${this.settings.dataOpen}`).trim().split(" ").forEach(s=>{const n=ot.call(this,s);return n.trigger=e,n.open()}),e.matches(`[data-${this.settings.dataClose}]`)&&e.getAttribute(`data-${this.settings.dataClose}`).trim().split(" ").forEach(s=>{if(s){const n=ot.call(this,s);return n.trigger=e,n.close()}else{const n=t.target.closest(this.settings.selectorDrawer);if(n)return this.close(n)}});return}if(this.activeModal&&t.target.matches(this.settings.selectorScreen))return this.close(this.activeModal.id)}function fi(t){if(t.key==="Escape"&&this.activeModal)return this.close(this.activeModal)}async function Xt(t,e=!0){const i=this.collection.findIndex(s=>s.id===t.id);if(i>=0){const s=this.collection[i];e&&s.state==="opened"&&await s.close(!1),this.store.set(s.id),s.unmountBreakpoint(),Object.getOwnPropertyNames(s).forEach(n=>{delete s[n]}),this.collection.splice(i,1)}return this.collection}async function Kt(t,e,i=!0){const s=ot.call(this,t),n={...this.settings,...s.settings};return e!==void 0&&(n.transition=e),(s.state==="closed"||s.state==="indeterminate")&&(s.state="opening",n.transition?await bt(s.el,{start:n.stateClosing,finish:n.stateClosed},{start:n.stateOpening,finish:n.stateOpened},n.transitionDuration):(s.el.classList.add(n.stateOpened),s.el.classList.remove(n.stateClosed)),s.state="opened",s.mode==="modal"&&wt(!0,n),i&&ve.call(this,s),s.el.dispatchEvent(new CustomEvent(n.customEventPrefix+"opened",{detail:this,bubbles:!0}))),s}async function Tt(t,e,i=!0){const s=ot.call(this,t),n={...this.settings,...s.settings};return e!==void 0&&(n.transition=e),(s.state==="opened"||s.state==="indeterminate")&&(s.state="closing",document.activeElement.blur(),n.transition?await bt(s.el,{start:n.stateOpening,finish:n.stateOpened},{start:n.stateClosing,finish:n.stateClosed},n.transitionDuration):(s.el.classList.add(n.stateClosed),s.el.classList.remove(n.stateOpened)),s.state="closed",s.mode==="modal"&&wt(!1,n),i&&ve.call(this,s),s.el.dispatchEvent(new CustomEvent(n.customEventPrefix+"closed",{detail:this,bubbles:!0}))),s}async function me(t,e,i){const s=ot.call(this,t);return s.state==="closed"?Kt.call(this,s,e,i):Tt.call(this,s,e,i)}function pi(t){switch(t.mode){case"inline":return hi.call(this,t);case"modal":return gi.call(this,t);default:throw new Error(`"${t.mode}" is not a valid drawer mode.`)}}async function hi(t){return t.el.classList.remove(t.getSetting("classModal")),t.dialog.removeAttribute("aria-modal"),wt(!1,{...this.settings,...t.settings}),this.focusTrap.unmount(),await ci(t),t.el.dispatchEvent(new CustomEvent(t.getSetting("customEventPrefix")+"switchMode",{detail:this,bubbles:!0})),t}async function gi(t){return t.el.classList.add(t.getSetting("classModal")),t.dialog.setAttribute("aria-modal","true"),await Tt.call(this,t,!1,!1),t.el.dispatchEvent(new CustomEvent(t.getSetting("customEventPrefix")+"switchMode",{detail:this,bubbles:!0})),t}async function vi(t,e={}){await Xt.call(this,t,!1);const i=this,s=new S;let n,r="indeterminate";const a={id:t.id,el:t,dialog:null,trigger:null,settings:{..._t(t,this.settings.dataConfig),...e},inlineState:"indeterminate",get breakpoint(){return di.call(i,t)},get store(){return i.store.get(this.id)},get mode(){return n},set mode(o){n=o,pi.call(i,this)},get state(){return r},set state(o){r=o,this.mode==="inline"&&o!="opening"&&o!="closing"&&(this.inlineState=o,this.getSetting("store")&&i.store.set(this.id,o)),o==="indeterminate"&&(this.el.classList.remove(this.getSetting("stateOpened")),this.el.classList.remove(this.getSetting("stateOpening")),this.el.classList.remove(this.getSetting("stateClosed")),this.el.classList.remove(this.getSetting("stateClosing")))},open(o,d){return Kt.call(i,this,o,d)},close(o,d){return Tt.call(i,this,o,d)},toggle(o,d){return me.call(i,this,o,d)},deregister(){return Xt.call(i,this)},mountBreakpoint(){const o=this.breakpoint,d=this.handleBreakpoint.bind(this);return s.mount(o,d),this},unmountBreakpoint(){return s.unmount(),this},handleBreakpoint(o){const d=o.matches?"inline":"modal";return this.mode!=d&&(this.mode=d),this},getSetting(o){return o in this.settings?this.settings[o]:i.settings[o]}};this.collection.push(a);const l=t.querySelector(a.getSetting("selectorDialog"));return a.dialog=l||t,a.getSetting("setTabindex")&&a.dialog.setAttribute("tabindex","-1"),await li(a),a.inlineState=a.state,a.mode=t.classList.contains(a.getSetting("classModal"))?"modal":"inline",a.breakpoint&&a.mountBreakpoint(),a}class mi extends D{constructor(i){super();Y(this,ft);Y(this,pt);this.defaults=ai,this.settings={...this.defaults,...i},this.focusTrap=new Ht,this.store=ge(this.settings.storeKey,this.settings.store),F(this,ft,ui.bind(this)),F(this,pt,fi.bind(this)),this.settings.autoMount&&this.mount()}get activeModal(){return this.collection.find(i=>i.state==="opened"&&i.mode==="modal")}async mount(i=null){i&&(this.settings={...this.settings,...i});const s=document.querySelectorAll(this.settings.selectorDrawer);return await this.registerCollection(s),this.settings.eventListeners&&this.mountEventListeners(),this}async unmount(){return await this.deregisterCollection(),this.settings.eventListeners&&this.unmountEventListeners(),this}mountEventListeners(){document.addEventListener("click",O(this,ft),!1),document.addEventListener("keydown",O(this,pt),!1)}unmountEventListeners(){document.removeEventListener("click",O(this,ft),!1),document.removeEventListener("keydown",O(this,pt),!1)}register(i,s={}){let n=typeof i=="string"?document.getElementById(i):i;return n?vi.call(this,n,s):Promise.reject(new Error(`Failed to register; drawer not found with ID of: "${i.id||i}".`))}deregister(i){let s=this.get(i.id||i);return s?Xt.call(this,s):Promise.reject(new Error(`Failed to deregister; drawer does not exist in collection with ID of: "${i.id||i}".`))}open(i,s,n){return Kt.call(this,i,s,n)}close(i,s,n){return Tt.call(this,i,s,n)}toggle(i,s,n){return me.call(this,i,s,n)}}ft=new WeakMap,pt=new WeakMap;const bi={autoMount:!1,dataOpen:"modal-open",dataClose:"modal-close",dataReplace:"modal-replace",dataConfig:"modal-config",selectorModal:".modal",selectorDialog:".modal__dialog",selectorScreen:".modal",selectorRequired:'[role="alertdialog"]',selectorFocus:"[data-focus]",selectorInert:null,selectorOverflow:"body",stateOpened:"is-opened",stateOpening:"is-opening",stateClosing:"is-closing",stateClosed:"is-closed",customEventPrefix:"modal:",eventListeners:!0,teleport:null,teleportMethod:"append",setTabindex:!0,transition:!0,transitionDuration:"modal-transition-duration"};function yt(t){const e=typeof t=="string"?this.get(t):this.get(t.id);if(e)return e;throw new Error(`Modal not found in collection with id of "${t.id||t}".`)}function Dt(){this.active?this.focusTrap.mount(this.active.dialog,this.settings.selectorFocus):(this.trigger&&(this.trigger.focus(),this.trigger=null),this.focusTrap.unmount())}async function wi(t){const e=t.target.closest(`
5
+ `);if(e){t.preventDefault(),e.matches(`[data-${this.settings.dataToggle}]`)&&e.getAttribute(`data-${this.settings.dataToggle}`).trim().split(" ").forEach(s=>{const n=ot.call(this,s);return n.trigger=e,n.toggle()}),e.matches(`[data-${this.settings.dataOpen}]`)&&e.getAttribute(`data-${this.settings.dataOpen}`).trim().split(" ").forEach(s=>{const n=ot.call(this,s);return n.trigger=e,n.open()}),e.matches(`[data-${this.settings.dataClose}]`)&&e.getAttribute(`data-${this.settings.dataClose}`).trim().split(" ").forEach(s=>{if(s){const n=ot.call(this,s);return n.trigger=e,n.close()}else{const n=t.target.closest(this.settings.selectorDrawer);if(n)return this.close(n)}});return}if(this.activeModal&&t.target.matches(this.settings.selectorScreen))return this.close(this.activeModal.id)}function pi(t){if(t.key==="Escape"&&this.activeModal)return this.close(this.activeModal)}async function Yt(t,e=!0){const i=this.collection.findIndex(s=>s.id===t.id);if(i>=0){const s=this.collection[i];e&&s.state==="opened"&&await s.close(!1),this.store.set(s.id),s.unmountBreakpoint(),Object.getOwnPropertyNames(s).forEach(n=>{delete s[n]}),this.collection.splice(i,1)}return this.collection}async function qt(t,e,i=!0){const s=ot.call(this,t),n={...this.settings,...s.settings};return e!==void 0&&(n.transition=e),(s.state==="closed"||s.state==="indeterminate")&&(s.state="opening",n.transition?await bt(s.el,{start:n.stateClosing,finish:n.stateClosed},{start:n.stateOpening,finish:n.stateOpened},n.transitionDuration):(s.el.classList.add(n.stateOpened),s.el.classList.remove(n.stateClosed)),s.state="opened",s.mode==="modal"&&wt(!0,n),i&&ve.call(this,s),s.el.dispatchEvent(new CustomEvent(n.customEventPrefix+"opened",{detail:this,bubbles:!0}))),s}async function Tt(t,e,i=!0){const s=ot.call(this,t),n={...this.settings,...s.settings};return e!==void 0&&(n.transition=e),(s.state==="opened"||s.state==="indeterminate")&&(s.state="closing",document.activeElement.blur(),n.transition?await bt(s.el,{start:n.stateOpening,finish:n.stateOpened},{start:n.stateClosing,finish:n.stateClosed},n.transitionDuration):(s.el.classList.add(n.stateClosed),s.el.classList.remove(n.stateOpened)),s.state="closed",s.mode==="modal"&&wt(!1,n),i&&ve.call(this,s),s.el.dispatchEvent(new CustomEvent(n.customEventPrefix+"closed",{detail:this,bubbles:!0}))),s}async function me(t,e,i){const s=ot.call(this,t);return s.state==="closed"?qt.call(this,s,e,i):Tt.call(this,s,e,i)}function hi(t){switch(t.mode){case"inline":return gi.call(this,t);case"modal":return vi.call(this,t);default:throw new Error(`"${t.mode}" is not a valid drawer mode.`)}}async function gi(t){return t.el.classList.remove(t.getSetting("classModal")),t.dialog.removeAttribute("aria-modal"),wt(!1,{...this.settings,...t.settings}),this.focusTrap.unmount(),await di(t),t.el.dispatchEvent(new CustomEvent(t.getSetting("customEventPrefix")+"switchMode",{detail:this,bubbles:!0})),t}async function vi(t){return t.el.classList.add(t.getSetting("classModal")),t.dialog.setAttribute("aria-modal","true"),await Tt.call(this,t,!1,!1),t.el.dispatchEvent(new CustomEvent(t.getSetting("customEventPrefix")+"switchMode",{detail:this,bubbles:!0})),t}async function mi(t,e={}){await Yt.call(this,t,!1);const i=this,s=new k;let n,r="indeterminate";const a={id:t.id,el:t,dialog:null,trigger:null,settings:{...zt(t,this.settings.dataConfig),...e},inlineState:"indeterminate",get breakpoint(){return ui.call(i,t)},get store(){return i.store.get(this.id)},get mode(){return n},set mode(o){n=o,hi.call(i,this)},get state(){return r},set state(o){r=o,this.mode==="inline"&&o!="opening"&&o!="closing"&&(this.inlineState=o,this.getSetting("store")&&i.store.set(this.id,o)),o==="indeterminate"&&(this.el.classList.remove(this.getSetting("stateOpened")),this.el.classList.remove(this.getSetting("stateOpening")),this.el.classList.remove(this.getSetting("stateClosed")),this.el.classList.remove(this.getSetting("stateClosing")))},open(o,d){return qt.call(i,this,o,d)},close(o,d){return Tt.call(i,this,o,d)},toggle(o,d){return me.call(i,this,o,d)},deregister(){return Yt.call(i,this)},mountBreakpoint(){const o=this.breakpoint,d=this.handleBreakpoint.bind(this);return s.mount(o,d),this},unmountBreakpoint(){return s.unmount(),this},handleBreakpoint(o){const d=o.matches?"inline":"modal";return this.mode!=d&&(this.mode=d),this},getSetting(o){return o in this.settings?this.settings[o]:i.settings[o]}};this.collection.push(a);const l=t.querySelector(a.getSetting("selectorDialog"));return a.dialog=l||t,a.getSetting("setTabindex")&&a.dialog.setAttribute("tabindex","-1"),await ci(a),a.inlineState=a.state,a.mode=t.classList.contains(a.getSetting("classModal"))?"modal":"inline",a.breakpoint&&a.mountBreakpoint(),a}class bi extends D{constructor(i){super();Y(this,ft);Y(this,pt);this.defaults=li,this.settings={...this.defaults,...i},this.focusTrap=new Ht,this.store=Kt(this.settings.storeKey,this.settings.store),F(this,ft,fi.bind(this)),F(this,pt,pi.bind(this)),this.settings.autoMount&&this.mount()}get activeModal(){return this.collection.find(i=>i.state==="opened"&&i.mode==="modal")}async mount(i=null){i&&(this.settings={...this.settings,...i});const s=document.querySelectorAll(this.settings.selectorDrawer);return await this.registerCollection(s),this.settings.eventListeners&&this.mountEventListeners(),this}async unmount(){return await this.deregisterCollection(),this.settings.eventListeners&&this.unmountEventListeners(),this}mountEventListeners(){document.addEventListener("click",O(this,ft),!1),document.addEventListener("keydown",O(this,pt),!1)}unmountEventListeners(){document.removeEventListener("click",O(this,ft),!1),document.removeEventListener("keydown",O(this,pt),!1)}register(i,s={}){let n=typeof i=="string"?document.getElementById(i):i;return n?mi.call(this,n,s):Promise.reject(new Error(`Failed to register; drawer not found with ID of: "${i.id||i}".`))}deregister(i){let s=this.get(i.id||i);return s?Yt.call(this,s):Promise.reject(new Error(`Failed to deregister; drawer does not exist in collection with ID of: "${i.id||i}".`))}open(i,s,n){return qt.call(this,i,s,n)}close(i,s,n){return Tt.call(this,i,s,n)}toggle(i,s,n){return me.call(this,i,s,n)}}ft=new WeakMap,pt=new WeakMap;const wi={autoMount:!1,dataOpen:"modal-open",dataClose:"modal-close",dataReplace:"modal-replace",dataConfig:"modal-config",selectorModal:".modal",selectorDialog:".modal__dialog",selectorScreen:".modal",selectorRequired:'[role="alertdialog"]',selectorFocus:"[data-focus]",selectorInert:null,selectorOverflow:"body",stateOpened:"is-opened",stateOpening:"is-opening",stateClosing:"is-closing",stateClosed:"is-closed",customEventPrefix:"modal:",eventListeners:!0,teleport:null,teleportMethod:"append",setTabindex:!0,transition:!0,transitionDuration:"modal-transition-duration"};function yt(t){const e=typeof t=="string"?this.get(t):this.get(t.id);if(e)return e;throw new Error(`Modal not found in collection with id of "${t.id||t}".`)}function Dt(){this.active?this.focusTrap.mount(this.active.dialog,this.settings.selectorFocus):(this.trigger&&(this.trigger.focus(),this.trigger=null),this.focusTrap.unmount())}async function yi(t){const e=t.target.closest(`
6
6
  [data-${this.settings.dataOpen}],
7
7
  [data-${this.settings.dataReplace}],
8
8
  [data-${this.settings.dataClose}]
9
- `);if(e){if(t.preventDefault(),e.matches(`[data-${this.settings.dataOpen}]`)){const i=e.getAttribute(`data-${this.settings.dataOpen}`).trim(),s=yt.call(this,i);return t.target.closest(this.settings.selectorModal)||(this.trigger=e),s.open()}if(e.matches(`[data-${this.settings.dataReplace}]`)){const i=e.getAttribute(`data-${this.settings.dataReplace}`).trim(),s=yt.call(this,i);return t.target.closest(this.settings.selectorModal)||(this.trigger=e),s.replace()}if(e.matches(`[data-${this.settings.dataClose}]`)){const i=e.getAttribute(`data-${this.settings.dataClose}`).trim();return i==="*"?this.closeAll():this.close(i)}}if(this.active&&t.target.matches(this.settings.selectorScreen)&&!this.active.required)return this.close(this.active.id)}function yi(t){if(t.key==="Escape"&&this.active&&!this.active.dialog.matches(this.settings.selectorRequired))return this.close()}async function Yt(t,e=!0){const i=this.collection.findIndex(s=>s.id===t.id);if(i>=0){const s=this.collection[i];e&&s.state==="opened"?await s.close(!1):this.stack.remove(s),s.getSetting("teleport")&&s.teleportReturn(),Object.getOwnPropertyNames(s).forEach(n=>{delete s[n]}),this.collection.splice(i,1)}return this.collection}async function qt(t,e,i=!0){const s=yt.call(this,t),n={...this.settings,...s.settings};return e!==void 0&&(n.transition=e),this.stack.moveToTop(s),s.state==="closed"&&(s.state="opening",this.stack.add(s),n.transition?await bt(s.el,{start:n.stateClosing,finish:n.stateClosed},{start:n.stateOpening,finish:n.stateOpened},n.transitionDuration):(s.el.classList.add(n.stateOpened),s.el.classList.remove(n.stateClosed)),s.state="opened"),i&&Dt.call(this),s.el.dispatchEvent(new CustomEvent(n.customEventPrefix+"opened",{detail:this,bubbles:!0})),s}async function Ut(t,e,i=!0){const s=t?yt.call(this,t):this.active;if(s&&s.state==="opened"){s.state="closing";const n={...this.settings,...s.settings};e!==void 0&&(n.transition=e),document.activeElement.blur(),n.transition?await bt(s.el,{start:n.stateOpening,finish:n.stateOpened},{start:n.stateClosing,finish:n.stateClosed},n.transitionDuration):(s.el.classList.add(n.stateClosed),s.el.classList.remove(n.stateOpened)),this.stack.remove(s),s.state="closed",i&&Dt.call(this),s.el.dispatchEvent(new CustomEvent(n.customEventPrefix+"closed",{detail:this,bubbles:!0}))}return s}async function Gt(t,e){const i=[];return await Promise.all(this.stack.value.map(async s=>{t&&t===s.id?Promise.resolve():i.push(await Ut.call(this,s,e,!1)),s.trigger=null})),i}async function be(t,e,i=!0){const s=yt.call(this,t);let n,r;return s.state==="opened"?(n=s,r=await Gt.call(this,s.id,e)):(r=Gt.call(this,!1,e),n=qt.call(this,s,e,!1),await Promise.all([n,r])),i&&Dt.call(this),{opened:n,closed:r}}async function xi(t,e={}){await Yt.call(this,t,!1);const i=this,s={id:t.id,state:"closed",el:t,dialog:null,get required(){return this.dialog.matches(this.getSetting("selectorRequired"))},returnRef:null,settings:{..._t(t,this.settings.dataConfig),...e},open(r,a){return qt.call(i,this,r,a)},close(r,a){return Ut.call(i,this,r,a)},replace(r,a){return be.call(i,this,r,a)},deregister(){return Yt.call(i,this)},teleport(r=this.getSetting("teleport"),a=this.getSetting("teleportMethod")){return this.returnRef?(console.error("Element has already been teleported:",this.el),!1):(this.returnRef=zt(this.el,r,a),this.el)},teleportReturn(){return this.returnRef?(this.returnRef=zt(this.el,this.returnRef),this.el):(console.error("No return reference found:",this.el),!1)},getSetting(r){return r in this.settings?this.settings[r]:i.settings[r]}},n=t.querySelector(s.getSetting("selectorDialog"));return s.dialog=n||t,s.dialog.setAttribute("aria-modal","true"),s.dialog.hasAttribute("role")||s.dialog.setAttribute("role","dialog"),s.getSetting("setTabindex")&&s.dialog.setAttribute("tabindex","-1"),s.getSetting("teleport")&&s.teleport(),this.collection.push(s),s.el.classList.contains(this.settings.stateOpened)?await s.open(!1):(s.el.classList.remove(this.settings.stateOpening),s.el.classList.remove(this.settings.stateClosing),s.el.classList.add(this.settings.stateClosed)),s}function Ei(t){const e=[];return{get value(){return[...e]},get top(){return e[e.length-1]},updateIndex(){e.forEach((i,s)=>{i.el.style.zIndex=null;const n=getComputedStyle(i.el)["z-index"];i.el.style.zIndex=parseInt(n)+s+1})},updateGlobalState(){wt(this.top,t),this.updateIndex()},add(i){i.el.style.zIndex=null;const s=getComputedStyle(i.el)["z-index"];i.el.style.zIndex=parseInt(s)+e.length+1,e.push(i),this.updateGlobalState()},remove(i){const s=e.findIndex(n=>n.id===i.id);s>=0&&(i.el.style.zIndex=null,e.splice(s,1),this.updateGlobalState())},moveToTop(i){const s=e.findIndex(n=>n.id===i.id);s>=0&&(e.splice(s,1),this.add(i))}}}class Oi extends D{constructor(i){super();Y(this,ht);Y(this,gt);this.defaults=bi,this.settings={...this.defaults,...i},this.trigger=null,this.focusTrap=new Ht,this.stack=Ei(this.settings),F(this,ht,wi.bind(this)),F(this,gt,yi.bind(this)),this.settings.autoMount&&this.mount()}get active(){return this.stack.top}async mount(i){i&&(this.settings={...this.settings,...i});const s=document.querySelectorAll(this.settings.selectorModal);return await this.registerCollection(s),this.settings.eventListeners&&this.mountEventListeners(),this}async unmount(){return this.trigger=null,await this.deregisterCollection(),this.settings.eventListeners&&this.unmountEventListeners(),this}mountEventListeners(){document.addEventListener("click",O(this,ht),!1),document.addEventListener("keydown",O(this,gt),!1)}unmountEventListeners(){document.removeEventListener("click",O(this,ht),!1),document.removeEventListener("keydown",O(this,gt),!1)}register(i,s={}){let n=typeof i=="string"?document.getElementById(i):i;return n?xi.call(this,n,s):Promise.reject(new Error(`Failed to register; modal not found with ID of: "${i.id||i}".`))}deregister(i){let s=this.get(i.id||i);return s?Yt.call(this,s):Promise.reject(new Error(`Failed to deregister; modal does not exist in collection with ID of: "${i.id||i}".`))}open(i,s,n){return qt.call(this,i,s,n)}close(i,s,n){return Ut.call(this,i,s,n)}replace(i,s,n){return be.call(this,i,s,n)}async closeAll(i=!1,s,n=!0){const r=await Gt.call(this,i,s);return n&&Dt.call(this),r}}ht=new WeakMap,gt=new WeakMap;const $i={autoMount:!1,selectorPopover:".popover",selectorArrow:".popover__arrow",stateActive:"is-active",eventListeners:!0,eventType:"click",placement:"bottom"};function we(t,e){const i=getComputedStyle(t),s={placement:e.placement,event:e.eventType,offset:0,"overflow-padding":0,"flip-padding":0,"arrow-element":e.selectorArrow,"arrow-padding":0};for(const n in s){const r=Pt(),a=i.getPropertyValue(`--${r}popover-${n}`).trim();a&&(s[n]=a)}return s}function Jt(t){let e;const i=typeof t=="string"?t.trim().split(" "):[t];switch(i.forEach(function(s,n){i[n]=parseInt(s,10)}),i.length){case 1:e=i[0];break;case 2:e={top:i[0],right:i[1],bottom:i[0],left:i[1]};break;case 3:e={top:i[0],right:i[1],bottom:i[2],left:i[1]};break;case 4:e={top:i[0],right:i[1],bottom:i[2],left:i[3]};break;default:e=!1;break}return e}function Li(t){return[{name:"offset",options:{offset:[0,parseInt(t.offset,10)]}},{name:"preventOverflow",options:{padding:Jt(t["overflow-padding"])}},{name:"flip",options:{padding:Jt(t["flip-padding"])}},{name:"arrow",options:{element:t["arrow-element"],padding:Jt(t["arrow-padding"])}}]}function ye(t){const e=typeof t=="string"?this.get(t):this.get(t.id);if(e)return e;throw new Error(`Popover not found in collection with id of "${t}".`)}function Ci(t){return typeof t=="string"?t:typeof t.hasAttribute=="function"?t.closest(this.settings.selectorPopover)?(t=t.closest(this.settings.selectorPopover),t.id):t.hasAttribute("aria-controls")?t.getAttribute("aria-controls"):t.hasAttribute("aria-describedby")?t.getAttribute("aria-describedby"):!1:!1}function Si(t){const e=Ci.call(this,t);if(e){const i=document.querySelector(`#${e}`),s=document.querySelector(`[aria-controls="${e}"]`)||document.querySelector(`[aria-describedby="${e}"]`);return!s&&!i?{error:new Error(`No popover elements found using the ID: "${e}".`)}:s?i?{popover:i,trigger:s}:{error:new Error("No popover associated with the provided popover trigger.")}:{error:new Error("No popover trigger associated with the provided popover.")}}else return{error:new Error("Could not resolve the popover ID.")}}async function Qt(t){const e=t?ye.call(this,t):await xe.call(this);return e&&e.state==="opened"&&(e.el.classList.remove(this.settings.stateActive),e.trigger.hasAttribute("aria-controls")&&e.trigger.setAttribute("aria-expanded","false"),e.popper.setOptions({modifiers:[{name:"eventListeners",enabled:!1}]}),e.state="closed",e.trigger===this.trigger&&(this.trigger=null)),e}async function xe(){const t=[];return await Promise.all(this.collection.map(async e=>{e.state==="opened"&&t.push(await Qt.call(this,e))})),t}function Ee(t){t.state=="opened"&&setTimeout(()=>{const e=t.el.closest(":hover")===t.el||t.trigger.closest(":hover")===t.trigger,i=document.activeElement.closest(`#${t.id}, [aria-controls="${t.id}"], [aria-describedby="${t.id}"]`);return!e&&!i&&t.close(),t},1)}function Ai(t){t.state==="opened"?t.close():(this.trigger=t.trigger,t.open(),Oe.call(this,t))}function ki(t){switch(t.key){case"Escape":this.trigger&&this.trigger.focus(),xe.call(this);return;case"Tab":this.collection.forEach(e=>{Ee.call(this,e)});return;default:return}}function Oe(t){const e=this;document.addEventListener("click",function i(s){s.target.closest(`#${t.id}, [aria-controls="${t.id}"], [aria-describedby="${t.id}"]`)?t.el&&!t.el.classList.contains(e.settings.stateActive)&&this.removeEventListener("click",i):(t.el&&t.el.classList.contains(e.settings.stateActive)&&t.close(),this.removeEventListener("click",i))})}var I="top",N="bottom",V="right",R="left",Zt="auto",xt=[I,N,V,R],at="start",Et="end",Pi="clippingParents",$e="viewport",Ot="popper",Ti="reference",Le=xt.reduce(function(t,e){return t.concat([e+"-"+at,e+"-"+Et])},[]),Ce=[].concat(xt,[Zt]).reduce(function(t,e){return t.concat([e,e+"-"+at,e+"-"+Et])},[]),Di="beforeRead",Mi="read",Ii="afterRead",Ri="beforeMain",Bi="main",ji="afterMain",Fi="beforeWrite",Ni="write",Vi="afterWrite",Wi=[Di,Mi,Ii,Ri,Bi,ji,Fi,Ni,Vi];function X(t){return t?(t.nodeName||"").toLowerCase():null}function B(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function J(t){var e=B(t).Element;return t instanceof e||t instanceof Element}function W(t){var e=B(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function te(t){if(typeof ShadowRoot>"u")return!1;var e=B(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Hi(t){var e=t.state;Object.keys(e.elements).forEach(function(i){var s=e.styles[i]||{},n=e.attributes[i]||{},r=e.elements[i];!W(r)||!X(r)||(Object.assign(r.style,s),Object.keys(n).forEach(function(a){var l=n[a];l===!1?r.removeAttribute(a):r.setAttribute(a,l===!0?"":l)}))})}function _i(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(s){var n=e.elements[s],r=e.attributes[s]||{},a=Object.keys(e.styles.hasOwnProperty(s)?e.styles[s]:i[s]),l=a.reduce(function(o,d){return o[d]="",o},{});!W(n)||!X(n)||(Object.assign(n.style,l),Object.keys(r).forEach(function(o){n.removeAttribute(o)}))})}}const zi={name:"applyStyles",enabled:!0,phase:"write",fn:Hi,effect:_i,requires:["computeStyles"]};function K(t){return t.split("-")[0]}var Q=Math.max,Mt=Math.min,lt=Math.round;function ee(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Se(){return!/^((?!chrome|android).)*safari/i.test(ee())}function ct(t,e,i){e===void 0&&(e=!1),i===void 0&&(i=!1);var s=t.getBoundingClientRect(),n=1,r=1;e&&W(t)&&(n=t.offsetWidth>0&&lt(s.width)/t.offsetWidth||1,r=t.offsetHeight>0&&lt(s.height)/t.offsetHeight||1);var a=J(t)?B(t):window,l=a.visualViewport,o=!Se()&&i,d=(s.left+(o&&l?l.offsetLeft:0))/n,c=(s.top+(o&&l?l.offsetTop:0))/r,v=s.width/n,w=s.height/r;return{width:v,height:w,top:c,right:d+v,bottom:c+w,left:d,x:d,y:c}}function ie(t){var e=ct(t),i=t.offsetWidth,s=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-s)<=1&&(s=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:s}}function Ae(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&te(i)){var s=e;do{if(s&&t.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function q(t){return B(t).getComputedStyle(t)}function Xi(t){return["table","td","th"].indexOf(X(t))>=0}function U(t){return((J(t)?t.ownerDocument:t.document)||window.document).documentElement}function It(t){return X(t)==="html"?t:t.assignedSlot||t.parentNode||(te(t)?t.host:null)||U(t)}function ke(t){return!W(t)||q(t).position==="fixed"?null:t.offsetParent}function Ki(t){var e=/firefox/i.test(ee()),i=/Trident/i.test(ee());if(i&&W(t)){var s=q(t);if(s.position==="fixed")return null}var n=It(t);for(te(n)&&(n=n.host);W(n)&&["html","body"].indexOf(X(n))<0;){var r=q(n);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||e&&r.willChange==="filter"||e&&r.filter&&r.filter!=="none")return n;n=n.parentNode}return null}function $t(t){for(var e=B(t),i=ke(t);i&&Xi(i)&&q(i).position==="static";)i=ke(i);return i&&(X(i)==="html"||X(i)==="body"&&q(i).position==="static")?e:i||Ki(t)||e}function se(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Lt(t,e,i){return Q(t,Mt(e,i))}function Yi(t,e,i){var s=Lt(t,e,i);return s>i?i:s}function Pe(){return{top:0,right:0,bottom:0,left:0}}function Te(t){return Object.assign({},Pe(),t)}function De(t,e){return e.reduce(function(i,s){return i[s]=t,i},{})}var qi=function(e,i){return e=typeof e=="function"?e(Object.assign({},i.rects,{placement:i.placement})):e,Te(typeof e!="number"?e:De(e,xt))};function Ui(t){var e,i=t.state,s=t.name,n=t.options,r=i.elements.arrow,a=i.modifiersData.popperOffsets,l=K(i.placement),o=se(l),d=[R,V].indexOf(l)>=0,c=d?"height":"width";if(!(!r||!a)){var v=qi(n.padding,i),w=ie(r),u=o==="y"?I:R,E=o==="y"?N:V,g=i.rects.reference[c]+i.rects.reference[o]-a[o]-i.rects.popper[c],h=a[o]-i.rects.reference[o],x=$t(r),L=x?o==="y"?x.clientHeight||0:x.clientWidth||0:0,C=g/2-h/2,f=v[u],m=L-w[c]-v[E],b=L/2-w[c]/2+C,$=Lt(f,b,m),P=o;i.modifiersData[s]=(e={},e[P]=$,e.centerOffset=$-b,e)}}function Gi(t){var e=t.state,i=t.options,s=i.element,n=s===void 0?"[data-popper-arrow]":s;n!=null&&(typeof n=="string"&&(n=e.elements.popper.querySelector(n),!n)||Ae(e.elements.popper,n)&&(e.elements.arrow=n))}const Ji={name:"arrow",enabled:!0,phase:"main",fn:Ui,effect:Gi,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function dt(t){return t.split("-")[1]}var Qi={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Zi(t,e){var i=t.x,s=t.y,n=e.devicePixelRatio||1;return{x:lt(i*n)/n||0,y:lt(s*n)/n||0}}function Me(t){var e,i=t.popper,s=t.popperRect,n=t.placement,r=t.variation,a=t.offsets,l=t.position,o=t.gpuAcceleration,d=t.adaptive,c=t.roundOffsets,v=t.isFixed,w=a.x,u=w===void 0?0:w,E=a.y,g=E===void 0?0:E,h=typeof c=="function"?c({x:u,y:g}):{x:u,y:g};u=h.x,g=h.y;var x=a.hasOwnProperty("x"),L=a.hasOwnProperty("y"),C=R,f=I,m=window;if(d){var b=$t(i),$="clientHeight",P="clientWidth";if(b===B(i)&&(b=U(i),q(b).position!=="static"&&l==="absolute"&&($="scrollHeight",P="scrollWidth")),b=b,n===I||(n===R||n===V)&&r===Et){f=N;var k=v&&b===m&&m.visualViewport?m.visualViewport.height:b[$];g-=k-s.height,g*=o?1:-1}if(n===R||(n===I||n===N)&&r===Et){C=V;var A=v&&b===m&&m.visualViewport?m.visualViewport.width:b[P];u-=A-s.width,u*=o?1:-1}}var T=Object.assign({position:l},d&&Qi),_=c===!0?Zi({x:u,y:g},B(i)):{x:u,y:g};if(u=_.x,g=_.y,o){var M;return Object.assign({},T,(M={},M[f]=L?"0":"",M[C]=x?"0":"",M.transform=(m.devicePixelRatio||1)<=1?"translate("+u+"px, "+g+"px)":"translate3d("+u+"px, "+g+"px, 0)",M))}return Object.assign({},T,(e={},e[f]=L?g+"px":"",e[C]=x?u+"px":"",e.transform="",e))}function ts(t){var e=t.state,i=t.options,s=i.gpuAcceleration,n=s===void 0?!0:s,r=i.adaptive,a=r===void 0?!0:r,l=i.roundOffsets,o=l===void 0?!0:l,d={placement:K(e.placement),variation:dt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Me(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:o})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Me(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:o})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const es={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ts,data:{}};var Rt={passive:!0};function is(t){var e=t.state,i=t.instance,s=t.options,n=s.scroll,r=n===void 0?!0:n,a=s.resize,l=a===void 0?!0:a,o=B(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&d.forEach(function(c){c.addEventListener("scroll",i.update,Rt)}),l&&o.addEventListener("resize",i.update,Rt),function(){r&&d.forEach(function(c){c.removeEventListener("scroll",i.update,Rt)}),l&&o.removeEventListener("resize",i.update,Rt)}}const ss={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:is,data:{}};var ns={left:"right",right:"left",bottom:"top",top:"bottom"};function Bt(t){return t.replace(/left|right|bottom|top/g,function(e){return ns[e]})}var rs={start:"end",end:"start"};function Ie(t){return t.replace(/start|end/g,function(e){return rs[e]})}function ne(t){var e=B(t),i=e.pageXOffset,s=e.pageYOffset;return{scrollLeft:i,scrollTop:s}}function re(t){return ct(U(t)).left+ne(t).scrollLeft}function os(t,e){var i=B(t),s=U(t),n=i.visualViewport,r=s.clientWidth,a=s.clientHeight,l=0,o=0;if(n){r=n.width,a=n.height;var d=Se();(d||!d&&e==="fixed")&&(l=n.offsetLeft,o=n.offsetTop)}return{width:r,height:a,x:l+re(t),y:o}}function as(t){var e,i=U(t),s=ne(t),n=(e=t.ownerDocument)==null?void 0:e.body,r=Q(i.scrollWidth,i.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),a=Q(i.scrollHeight,i.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),l=-s.scrollLeft+re(t),o=-s.scrollTop;return q(n||i).direction==="rtl"&&(l+=Q(i.clientWidth,n?n.clientWidth:0)-r),{width:r,height:a,x:l,y:o}}function oe(t){var e=q(t),i=e.overflow,s=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+n+s)}function Re(t){return["html","body","#document"].indexOf(X(t))>=0?t.ownerDocument.body:W(t)&&oe(t)?t:Re(It(t))}function Ct(t,e){var i;e===void 0&&(e=[]);var s=Re(t),n=s===((i=t.ownerDocument)==null?void 0:i.body),r=B(s),a=n?[r].concat(r.visualViewport||[],oe(s)?s:[]):s,l=e.concat(a);return n?l:l.concat(Ct(It(a)))}function ae(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ls(t,e){var i=ct(t,!1,e==="fixed");return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}function Be(t,e,i){return e===$e?ae(os(t,i)):J(e)?ls(e,i):ae(as(U(t)))}function cs(t){var e=Ct(It(t)),i=["absolute","fixed"].indexOf(q(t).position)>=0,s=i&&W(t)?$t(t):t;return J(s)?e.filter(function(n){return J(n)&&Ae(n,s)&&X(n)!=="body"}):[]}function ds(t,e,i,s){var n=e==="clippingParents"?cs(t):[].concat(e),r=[].concat(n,[i]),a=r[0],l=r.reduce(function(o,d){var c=Be(t,d,s);return o.top=Q(c.top,o.top),o.right=Mt(c.right,o.right),o.bottom=Mt(c.bottom,o.bottom),o.left=Q(c.left,o.left),o},Be(t,a,s));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function je(t){var e=t.reference,i=t.element,s=t.placement,n=s?K(s):null,r=s?dt(s):null,a=e.x+e.width/2-i.width/2,l=e.y+e.height/2-i.height/2,o;switch(n){case I:o={x:a,y:e.y-i.height};break;case N:o={x:a,y:e.y+e.height};break;case V:o={x:e.x+e.width,y:l};break;case R:o={x:e.x-i.width,y:l};break;default:o={x:e.x,y:e.y}}var d=n?se(n):null;if(d!=null){var c=d==="y"?"height":"width";switch(r){case at:o[d]=o[d]-(e[c]/2-i[c]/2);break;case Et:o[d]=o[d]+(e[c]/2-i[c]/2);break}}return o}function St(t,e){e===void 0&&(e={});var i=e,s=i.placement,n=s===void 0?t.placement:s,r=i.strategy,a=r===void 0?t.strategy:r,l=i.boundary,o=l===void 0?Pi:l,d=i.rootBoundary,c=d===void 0?$e:d,v=i.elementContext,w=v===void 0?Ot:v,u=i.altBoundary,E=u===void 0?!1:u,g=i.padding,h=g===void 0?0:g,x=Te(typeof h!="number"?h:De(h,xt)),L=w===Ot?Ti:Ot,C=t.rects.popper,f=t.elements[E?L:w],m=ds(J(f)?f:f.contextElement||U(t.elements.popper),o,c,a),b=ct(t.elements.reference),$=je({reference:b,element:C,strategy:"absolute",placement:n}),P=ae(Object.assign({},C,$)),k=w===Ot?P:b,A={top:m.top-k.top+x.top,bottom:k.bottom-m.bottom+x.bottom,left:m.left-k.left+x.left,right:k.right-m.right+x.right},T=t.modifiersData.offset;if(w===Ot&&T){var _=T[n];Object.keys(A).forEach(function(M){var et=[V,N].indexOf(M)>=0?1:-1,it=[I,N].indexOf(M)>=0?"y":"x";A[M]+=_[it]*et})}return A}function us(t,e){e===void 0&&(e={});var i=e,s=i.placement,n=i.boundary,r=i.rootBoundary,a=i.padding,l=i.flipVariations,o=i.allowedAutoPlacements,d=o===void 0?Ce:o,c=dt(s),v=c?l?Le:Le.filter(function(E){return dt(E)===c}):xt,w=v.filter(function(E){return d.indexOf(E)>=0});w.length===0&&(w=v);var u=w.reduce(function(E,g){return E[g]=St(t,{placement:g,boundary:n,rootBoundary:r,padding:a})[K(g)],E},{});return Object.keys(u).sort(function(E,g){return u[E]-u[g]})}function fs(t){if(K(t)===Zt)return[];var e=Bt(t);return[Ie(t),e,Ie(e)]}function ps(t){var e=t.state,i=t.options,s=t.name;if(!e.modifiersData[s]._skip){for(var n=i.mainAxis,r=n===void 0?!0:n,a=i.altAxis,l=a===void 0?!0:a,o=i.fallbackPlacements,d=i.padding,c=i.boundary,v=i.rootBoundary,w=i.altBoundary,u=i.flipVariations,E=u===void 0?!0:u,g=i.allowedAutoPlacements,h=e.options.placement,x=K(h),L=x===h,C=o||(L||!E?[Bt(h)]:fs(h)),f=[h].concat(C).reduce(function(mt,G){return mt.concat(K(G)===Zt?us(e,{placement:G,boundary:c,rootBoundary:v,padding:d,flipVariations:E,allowedAutoPlacements:g}):G)},[]),m=e.rects.reference,b=e.rects.popper,$=new Map,P=!0,k=f[0],A=0;A<f.length;A++){var T=f[A],_=K(T),M=dt(T)===at,et=[I,N].indexOf(_)>=0,it=et?"width":"height",j=St(e,{placement:T,boundary:c,rootBoundary:v,altBoundary:w,padding:d}),z=et?M?V:R:M?N:I;m[it]>b[it]&&(z=Bt(z));var jt=Bt(z),st=[];if(r&&st.push(j[_]<=0),l&&st.push(j[z]<=0,j[jt]<=0),st.every(function(mt){return mt})){k=T,P=!1;break}$.set(T,st)}if(P)for(var Ft=E?3:1,de=function(G){var kt=f.find(function(Vt){var nt=$.get(Vt);if(nt)return nt.slice(0,G).every(function(ue){return ue})});if(kt)return k=kt,"break"},At=Ft;At>0;At--){var Nt=de(At);if(Nt==="break")break}e.placement!==k&&(e.modifiersData[s]._skip=!0,e.placement=k,e.reset=!0)}}const hs={name:"flip",enabled:!0,phase:"main",fn:ps,requiresIfExists:["offset"],data:{_skip:!1}};function Fe(t,e,i){return i===void 0&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function Ne(t){return[I,V,N,R].some(function(e){return t[e]>=0})}function gs(t){var e=t.state,i=t.name,s=e.rects.reference,n=e.rects.popper,r=e.modifiersData.preventOverflow,a=St(e,{elementContext:"reference"}),l=St(e,{altBoundary:!0}),o=Fe(a,s),d=Fe(l,n,r),c=Ne(o),v=Ne(d);e.modifiersData[i]={referenceClippingOffsets:o,popperEscapeOffsets:d,isReferenceHidden:c,hasPopperEscaped:v},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":v})}const vs={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:gs};function ms(t,e,i){var s=K(t),n=[R,I].indexOf(s)>=0?-1:1,r=typeof i=="function"?i(Object.assign({},e,{placement:t})):i,a=r[0],l=r[1];return a=a||0,l=(l||0)*n,[R,V].indexOf(s)>=0?{x:l,y:a}:{x:a,y:l}}function bs(t){var e=t.state,i=t.options,s=t.name,n=i.offset,r=n===void 0?[0,0]:n,a=Ce.reduce(function(c,v){return c[v]=ms(v,e.rects,r),c},{}),l=a[e.placement],o=l.x,d=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=o,e.modifiersData.popperOffsets.y+=d),e.modifiersData[s]=a}const ws={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:bs};function ys(t){var e=t.state,i=t.name;e.modifiersData[i]=je({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const xs={name:"popperOffsets",enabled:!0,phase:"read",fn:ys,data:{}};function Es(t){return t==="x"?"y":"x"}function Os(t){var e=t.state,i=t.options,s=t.name,n=i.mainAxis,r=n===void 0?!0:n,a=i.altAxis,l=a===void 0?!1:a,o=i.boundary,d=i.rootBoundary,c=i.altBoundary,v=i.padding,w=i.tether,u=w===void 0?!0:w,E=i.tetherOffset,g=E===void 0?0:E,h=St(e,{boundary:o,rootBoundary:d,padding:v,altBoundary:c}),x=K(e.placement),L=dt(e.placement),C=!L,f=se(x),m=Es(f),b=e.modifiersData.popperOffsets,$=e.rects.reference,P=e.rects.popper,k=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,A=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),T=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,_={x:0,y:0};if(b){if(r){var M,et=f==="y"?I:R,it=f==="y"?N:V,j=f==="y"?"height":"width",z=b[f],jt=z+h[et],st=z-h[it],Ft=u?-P[j]/2:0,de=L===at?$[j]:P[j],At=L===at?-P[j]:-$[j],Nt=e.elements.arrow,mt=u&&Nt?ie(Nt):{width:0,height:0},G=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Pe(),kt=G[et],Vt=G[it],nt=Lt(0,$[j],mt[j]),ue=C?$[j]/2-Ft-nt-kt-A.mainAxis:de-nt-kt-A.mainAxis,Fs=C?-$[j]/2+Ft+nt+Vt+A.mainAxis:At+nt+Vt+A.mainAxis,fe=e.elements.arrow&&$t(e.elements.arrow),Ns=fe?f==="y"?fe.clientTop||0:fe.clientLeft||0:0,ze=(M=T==null?void 0:T[f])!=null?M:0,Vs=z+ue-ze-Ns,Ws=z+Fs-ze,Xe=Lt(u?Mt(jt,Vs):jt,z,u?Q(st,Ws):st);b[f]=Xe,_[f]=Xe-z}if(l){var Ke,Hs=f==="x"?I:R,_s=f==="x"?N:V,rt=b[m],Wt=m==="y"?"height":"width",Ye=rt+h[Hs],qe=rt-h[_s],pe=[I,R].indexOf(x)!==-1,Ue=(Ke=T==null?void 0:T[m])!=null?Ke:0,Ge=pe?Ye:rt-$[Wt]-P[Wt]-Ue+A.altAxis,Je=pe?rt+$[Wt]+P[Wt]-Ue-A.altAxis:qe,Qe=u&&pe?Yi(Ge,rt,Je):Lt(u?Ge:Ye,rt,u?Je:qe);b[m]=Qe,_[m]=Qe-rt}e.modifiersData[s]=_}}const $s={name:"preventOverflow",enabled:!0,phase:"main",fn:Os,requiresIfExists:["offset"]};function Ls(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Cs(t){return t===B(t)||!W(t)?ne(t):Ls(t)}function Ss(t){var e=t.getBoundingClientRect(),i=lt(e.width)/t.offsetWidth||1,s=lt(e.height)/t.offsetHeight||1;return i!==1||s!==1}function As(t,e,i){i===void 0&&(i=!1);var s=W(e),n=W(e)&&Ss(e),r=U(e),a=ct(t,n,i),l={scrollLeft:0,scrollTop:0},o={x:0,y:0};return(s||!s&&!i)&&((X(e)!=="body"||oe(r))&&(l=Cs(e)),W(e)?(o=ct(e,!0),o.x+=e.clientLeft,o.y+=e.clientTop):r&&(o.x=re(r))),{x:a.left+l.scrollLeft-o.x,y:a.top+l.scrollTop-o.y,width:a.width,height:a.height}}function ks(t){var e=new Map,i=new Set,s=[];t.forEach(function(r){e.set(r.name,r)});function n(r){i.add(r.name);var a=[].concat(r.requires||[],r.requiresIfExists||[]);a.forEach(function(l){if(!i.has(l)){var o=e.get(l);o&&n(o)}}),s.push(r)}return t.forEach(function(r){i.has(r.name)||n(r)}),s}function Ps(t){var e=ks(t);return Wi.reduce(function(i,s){return i.concat(e.filter(function(n){return n.phase===s}))},[])}function Ts(t){var e;return function(){return e||(e=new Promise(function(i){Promise.resolve().then(function(){e=void 0,i(t())})})),e}}function Ds(t){var e=t.reduce(function(i,s){var n=i[s.name];return i[s.name]=n?Object.assign({},n,s,{options:Object.assign({},n.options,s.options),data:Object.assign({},n.data,s.data)}):s,i},{});return Object.keys(e).map(function(i){return e[i]})}var Ve={placement:"bottom",modifiers:[],strategy:"absolute"};function We(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(s){return!(s&&typeof s.getBoundingClientRect=="function")})}function Ms(t){t===void 0&&(t={});var e=t,i=e.defaultModifiers,s=i===void 0?[]:i,n=e.defaultOptions,r=n===void 0?Ve:n;return function(l,o,d){d===void 0&&(d=r);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ve,r),modifiersData:{},elements:{reference:l,popper:o},attributes:{},styles:{}},v=[],w=!1,u={state:c,setOptions:function(x){var L=typeof x=="function"?x(c.options):x;g(),c.options=Object.assign({},r,c.options,L),c.scrollParents={reference:J(l)?Ct(l):l.contextElement?Ct(l.contextElement):[],popper:Ct(o)};var C=Ps(Ds([].concat(s,c.options.modifiers)));return c.orderedModifiers=C.filter(function(f){return f.enabled}),E(),u.update()},forceUpdate:function(){if(!w){var x=c.elements,L=x.reference,C=x.popper;if(We(L,C)){c.rects={reference:As(L,$t(C),c.options.strategy==="fixed"),popper:ie(C)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(A){return c.modifiersData[A.name]=Object.assign({},A.data)});for(var f=0;f<c.orderedModifiers.length;f++){if(c.reset===!0){c.reset=!1,f=-1;continue}var m=c.orderedModifiers[f],b=m.fn,$=m.options,P=$===void 0?{}:$,k=m.name;typeof b=="function"&&(c=b({state:c,options:P,name:k,instance:u})||c)}}}},update:Ts(function(){return new Promise(function(h){u.forceUpdate(),h(c)})}),destroy:function(){g(),w=!0}};if(!We(l,o))return u;u.setOptions(d).then(function(h){!w&&d.onFirstUpdate&&d.onFirstUpdate(h)});function E(){c.orderedModifiers.forEach(function(h){var x=h.name,L=h.options,C=L===void 0?{}:L,f=h.effect;if(typeof f=="function"){var m=f({state:c,name:x,instance:u,options:C}),b=function(){};v.push(m||b)}})}function g(){v.forEach(function(h){return h()}),v=[]}return u}}var Is=[ss,xs,es,zi,ws,hs,$s,Ji,vs],Rs=Ms({defaultModifiers:Is});async function le(t){const e=this.collection.findIndex(i=>i.id===t.id);if(e>=0){const i=this.collection[e];i.state==="opened"&&i.close(),i.popper.destroy(),He(i),Object.getOwnPropertyNames(i).forEach(s=>{delete i[s]}),this.collection.splice(e,1)}return this.collection}function He(t){return t.__eventListeners&&(t.__eventListeners.forEach(e=>{e.el.forEach(i=>{e.type.forEach(s=>{t[i].removeEventListener(s,e.listener,!1)})})}),delete t.__eventListeners),t}async function ce(t){const e=ye.call(this,t);return e.el.classList.add(this.settings.stateActive),e.trigger.hasAttribute("aria-controls")&&e.trigger.setAttribute("aria-expanded","true"),e.config=we(e.el,this.settings),e.popper.setOptions({placement:e.config.placement,modifiers:[{name:"eventListeners",enabled:!0},...Li(e.config)]}),e.popper.update(),e.state="opened",e}async function Bs(t,e){le.call(this,t);const i=this,s={id:t.id,state:"closed",el:t,trigger:e,popper:Rs(e,t),config:we(t,this.settings),open(){return ce.call(i,this)},close(){return Qt.call(i,this)},deregister(){return le.call(i,this)}};return s.trigger.hasAttribute("aria-controls")&&s.trigger.setAttribute("aria-expanded","false"),_e.call(this,s),this.collection.push(s),s.el.classList.contains(this.settings.stateActive)&&(await s.open(),Oe.call(this,s)),s}function _e(t){return t.__eventListeners||(t.config.event==="hover"?(t.__eventListeners=[{el:["trigger"],type:["mouseenter","focus"],listener:ce.bind(this,t)},{el:["el","trigger"],type:["mouseleave","focusout"],listener:Ee.bind(this,t)}],t.__eventListeners.forEach(i=>{i.el.forEach(s=>{i.type.forEach(n=>{t[s].addEventListener(n,i.listener,!1)})})})):(t.__eventListeners=[{el:["trigger"],type:["click"],listener:Ai.bind(this,t)}],t.__eventListeners.forEach(i=>{i.el.forEach(s=>{i.type.forEach(n=>{t[s].addEventListener(n,i.listener,!1)})})}))),t}class js extends D{constructor(i){super();Y(this,vt);this.defaults=$i,this.settings={...this.defaults,...i},this.trigger=null,F(this,vt,ki.bind(this)),this.settings.autoMount&&this.mount()}async mount(i){i&&(this.settings={...this.settings,...i});const s=document.querySelectorAll(this.settings.selectorPopover);return await this.registerCollection(s),this.settings.eventListeners&&this.mountEventListeners(!1),this}async unmount(){return this.trigger=null,await this.deregisterCollection(),this.settings.eventListeners&&this.unmountEventListeners(!1),this}mountEventListeners(i=!0){i&&this.collection.forEach(s=>{_e.call(this,s)}),document.addEventListener("keydown",O(this,vt),!1)}unmountEventListeners(i=!0){i&&this.collection.forEach(s=>{He(s)}),document.removeEventListener("keydown",O(this,vt),!1)}register(i){const s=Si.call(this,i);return s.error?Promise.reject(s.error):Bs.call(this,s.popover,s.trigger)}deregister(i){let s=this.get(i.id||i);return s?le.call(this,s):Promise.reject(new Error(`Failed to deregister; popover does not exist in collection with ID of: "${i.id||i}".`))}open(i){return ce.call(this,i)}close(i){return Qt.call(this,i)}}vt=new WeakMap,y.Drawer=mi,y.Modal=Oi,y.Popover=js,y.core=oi,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})});
9
+ `);if(e){if(t.preventDefault(),e.matches(`[data-${this.settings.dataOpen}]`)){const i=e.getAttribute(`data-${this.settings.dataOpen}`).trim(),s=yt.call(this,i);return t.target.closest(this.settings.selectorModal)||(this.trigger=e),s.open()}if(e.matches(`[data-${this.settings.dataReplace}]`)){const i=e.getAttribute(`data-${this.settings.dataReplace}`).trim(),s=yt.call(this,i);return t.target.closest(this.settings.selectorModal)||(this.trigger=e),s.replace()}if(e.matches(`[data-${this.settings.dataClose}]`)){const i=e.getAttribute(`data-${this.settings.dataClose}`).trim();return i==="*"?this.closeAll():this.close(i)}}if(this.active&&t.target.matches(this.settings.selectorScreen)&&!this.active.required)return this.close(this.active.id)}function xi(t){if(t.key==="Escape"&&this.active&&!this.active.dialog.matches(this.settings.selectorRequired))return this.close()}async function Ut(t,e=!0){const i=this.collection.findIndex(s=>s.id===t.id);if(i>=0){const s=this.collection[i];e&&s.state==="opened"?await s.close(!1):this.stack.remove(s),s.getSetting("teleport")&&s.teleportReturn(),Object.getOwnPropertyNames(s).forEach(n=>{delete s[n]}),this.collection.splice(i,1)}return this.collection}async function Gt(t,e,i=!0){const s=yt.call(this,t),n={...this.settings,...s.settings};return e!==void 0&&(n.transition=e),this.stack.moveToTop(s),s.state==="closed"&&(s.state="opening",this.stack.add(s),n.transition?await bt(s.el,{start:n.stateClosing,finish:n.stateClosed},{start:n.stateOpening,finish:n.stateOpened},n.transitionDuration):(s.el.classList.add(n.stateOpened),s.el.classList.remove(n.stateClosed)),s.state="opened"),i&&Dt.call(this),s.el.dispatchEvent(new CustomEvent(n.customEventPrefix+"opened",{detail:this,bubbles:!0})),s}async function Jt(t,e,i=!0){const s=t?yt.call(this,t):this.active;if(s&&s.state==="opened"){s.state="closing";const n={...this.settings,...s.settings};e!==void 0&&(n.transition=e),document.activeElement.blur(),n.transition?await bt(s.el,{start:n.stateOpening,finish:n.stateOpened},{start:n.stateClosing,finish:n.stateClosed},n.transitionDuration):(s.el.classList.add(n.stateClosed),s.el.classList.remove(n.stateOpened)),this.stack.remove(s),s.state="closed",i&&Dt.call(this),s.el.dispatchEvent(new CustomEvent(n.customEventPrefix+"closed",{detail:this,bubbles:!0}))}return s}async function Qt(t,e){const i=[];return await Promise.all(this.stack.value.map(async s=>{t&&t===s.id?Promise.resolve():i.push(await Jt.call(this,s,e,!1)),s.trigger=null})),i}async function be(t,e,i=!0){const s=yt.call(this,t);let n,r;return s.state==="opened"?(n=s,r=await Qt.call(this,s.id,e)):(r=Qt.call(this,!1,e),n=Gt.call(this,s,e,!1),await Promise.all([n,r])),i&&Dt.call(this),{opened:n,closed:r}}async function Ei(t,e={}){await Ut.call(this,t,!1);const i=this,s={id:t.id,state:"closed",el:t,dialog:null,get required(){return this.dialog.matches(this.getSetting("selectorRequired"))},returnRef:null,settings:{...zt(t,this.settings.dataConfig),...e},open(r,a){return Gt.call(i,this,r,a)},close(r,a){return Jt.call(i,this,r,a)},replace(r,a){return be.call(i,this,r,a)},deregister(){return Ut.call(i,this)},teleport(r=this.getSetting("teleport"),a=this.getSetting("teleportMethod")){return this.returnRef?(console.error("Element has already been teleported:",this.el),!1):(this.returnRef=Xt(this.el,r,a),this.el)},teleportReturn(){return this.returnRef?(this.returnRef=Xt(this.el,this.returnRef),this.el):(console.error("No return reference found:",this.el),!1)},getSetting(r){return r in this.settings?this.settings[r]:i.settings[r]}},n=t.querySelector(s.getSetting("selectorDialog"));return s.dialog=n||t,s.dialog.setAttribute("aria-modal","true"),s.dialog.hasAttribute("role")||s.dialog.setAttribute("role","dialog"),s.getSetting("setTabindex")&&s.dialog.setAttribute("tabindex","-1"),s.getSetting("teleport")&&s.teleport(),this.collection.push(s),s.el.classList.contains(this.settings.stateOpened)?await s.open(!1):(s.el.classList.remove(this.settings.stateOpening),s.el.classList.remove(this.settings.stateClosing),s.el.classList.add(this.settings.stateClosed)),s}function Oi(t){const e=[];return{get value(){return[...e]},get top(){return e[e.length-1]},updateIndex(){e.forEach((i,s)=>{i.el.style.zIndex=null;const n=getComputedStyle(i.el)["z-index"];i.el.style.zIndex=parseInt(n)+s+1})},updateGlobalState(){wt(this.top,t),this.updateIndex()},add(i){i.el.style.zIndex=null;const s=getComputedStyle(i.el)["z-index"];i.el.style.zIndex=parseInt(s)+e.length+1,e.push(i),this.updateGlobalState()},remove(i){const s=e.findIndex(n=>n.id===i.id);s>=0&&(i.el.style.zIndex=null,e.splice(s,1),this.updateGlobalState())},moveToTop(i){const s=e.findIndex(n=>n.id===i.id);s>=0&&(e.splice(s,1),this.add(i))}}}class $i extends D{constructor(i){super();Y(this,ht);Y(this,gt);this.defaults=wi,this.settings={...this.defaults,...i},this.trigger=null,this.focusTrap=new Ht,this.stack=Oi(this.settings),F(this,ht,yi.bind(this)),F(this,gt,xi.bind(this)),this.settings.autoMount&&this.mount()}get active(){return this.stack.top}async mount(i){i&&(this.settings={...this.settings,...i});const s=document.querySelectorAll(this.settings.selectorModal);return await this.registerCollection(s),this.settings.eventListeners&&this.mountEventListeners(),this}async unmount(){return this.trigger=null,await this.deregisterCollection(),this.settings.eventListeners&&this.unmountEventListeners(),this}mountEventListeners(){document.addEventListener("click",O(this,ht),!1),document.addEventListener("keydown",O(this,gt),!1)}unmountEventListeners(){document.removeEventListener("click",O(this,ht),!1),document.removeEventListener("keydown",O(this,gt),!1)}register(i,s={}){let n=typeof i=="string"?document.getElementById(i):i;return n?Ei.call(this,n,s):Promise.reject(new Error(`Failed to register; modal not found with ID of: "${i.id||i}".`))}deregister(i){let s=this.get(i.id||i);return s?Ut.call(this,s):Promise.reject(new Error(`Failed to deregister; modal does not exist in collection with ID of: "${i.id||i}".`))}open(i,s,n){return Gt.call(this,i,s,n)}close(i,s,n){return Jt.call(this,i,s,n)}replace(i,s,n){return be.call(this,i,s,n)}async closeAll(i=!1,s,n=!0){const r=await Qt.call(this,i,s);return n&&Dt.call(this),r}}ht=new WeakMap,gt=new WeakMap;const Li={autoMount:!1,selectorPopover:".popover",selectorArrow:".popover__arrow",stateActive:"is-active",eventListeners:!0,eventType:"click",placement:"bottom"};function we(t,e){const i=getComputedStyle(t),s={placement:e.placement,event:e.eventType,offset:0,"overflow-padding":0,"flip-padding":0,"arrow-element":e.selectorArrow,"arrow-padding":0};for(const n in s){const r=Pt(),a=i.getPropertyValue(`--${r}popover-${n}`).trim();a&&(s[n]=a)}return s}function Zt(t){let e;const i=typeof t=="string"?t.trim().split(" "):[t];switch(i.forEach(function(s,n){i[n]=parseInt(s,10)}),i.length){case 1:e=i[0];break;case 2:e={top:i[0],right:i[1],bottom:i[0],left:i[1]};break;case 3:e={top:i[0],right:i[1],bottom:i[2],left:i[1]};break;case 4:e={top:i[0],right:i[1],bottom:i[2],left:i[3]};break;default:e=!1;break}return e}function Ci(t){return[{name:"offset",options:{offset:[0,parseInt(t.offset,10)]}},{name:"preventOverflow",options:{padding:Zt(t["overflow-padding"])}},{name:"flip",options:{padding:Zt(t["flip-padding"])}},{name:"arrow",options:{element:t["arrow-element"],padding:Zt(t["arrow-padding"])}}]}function ye(t){const e=typeof t=="string"?this.get(t):this.get(t.id);if(e)return e;throw new Error(`Popover not found in collection with id of "${t}".`)}function ki(t){return typeof t=="string"?t:typeof t.hasAttribute=="function"?t.closest(this.settings.selectorPopover)?(t=t.closest(this.settings.selectorPopover),t.id):t.hasAttribute("aria-controls")?t.getAttribute("aria-controls"):t.hasAttribute("aria-describedby")?t.getAttribute("aria-describedby"):!1:!1}function Si(t){const e=ki.call(this,t);if(e){const i=document.querySelector(`#${e}`),s=document.querySelector(`[aria-controls="${e}"]`)||document.querySelector(`[aria-describedby="${e}"]`);return!s&&!i?{error:new Error(`No popover elements found using the ID: "${e}".`)}:s?i?{popover:i,trigger:s}:{error:new Error("No popover associated with the provided popover trigger.")}:{error:new Error("No popover trigger associated with the provided popover.")}}else return{error:new Error("Could not resolve the popover ID.")}}async function te(t){const e=t?ye.call(this,t):await xe.call(this);return e&&e.state==="opened"&&(e.el.classList.remove(this.settings.stateActive),e.trigger.hasAttribute("aria-controls")&&e.trigger.setAttribute("aria-expanded","false"),e.popper.setOptions({modifiers:[{name:"eventListeners",enabled:!1}]}),e.state="closed",e.trigger===this.trigger&&(this.trigger=null)),e}async function xe(){const t=[];return await Promise.all(this.collection.map(async e=>{e.state==="opened"&&t.push(await te.call(this,e))})),t}function Ee(t){t.state=="opened"&&setTimeout(()=>{const e=t.el.closest(":hover")===t.el||t.trigger.closest(":hover")===t.trigger,i=document.activeElement.closest(`#${t.id}, [aria-controls="${t.id}"], [aria-describedby="${t.id}"]`);return!e&&!i&&t.close(),t},1)}function Ai(t){t.state==="opened"?t.close():(this.trigger=t.trigger,t.open(),Oe.call(this,t))}function Pi(t){switch(t.key){case"Escape":this.trigger&&this.trigger.focus(),xe.call(this);return;case"Tab":this.collection.forEach(e=>{Ee.call(this,e)});return;default:return}}function Oe(t){const e=this;document.addEventListener("click",function i(s){s.target.closest(`#${t.id}, [aria-controls="${t.id}"], [aria-describedby="${t.id}"]`)?t.el&&!t.el.classList.contains(e.settings.stateActive)&&this.removeEventListener("click",i):(t.el&&t.el.classList.contains(e.settings.stateActive)&&t.close(),this.removeEventListener("click",i))})}var I="top",N="bottom",V="right",R="left",ee="auto",xt=[I,N,V,R],at="start",Et="end",Ti="clippingParents",$e="viewport",Ot="popper",Di="reference",Le=xt.reduce(function(t,e){return t.concat([e+"-"+at,e+"-"+Et])},[]),Ce=[].concat(xt,[ee]).reduce(function(t,e){return t.concat([e,e+"-"+at,e+"-"+Et])},[]),Mi="beforeRead",Ii="read",Ri="afterRead",Bi="beforeMain",ji="main",Fi="afterMain",Ni="beforeWrite",Vi="write",Wi="afterWrite",Hi=[Mi,Ii,Ri,Bi,ji,Fi,Ni,Vi,Wi];function K(t){return t?(t.nodeName||"").toLowerCase():null}function B(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function J(t){var e=B(t).Element;return t instanceof e||t instanceof Element}function W(t){var e=B(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function ie(t){if(typeof ShadowRoot>"u")return!1;var e=B(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function _i(t){var e=t.state;Object.keys(e.elements).forEach(function(i){var s=e.styles[i]||{},n=e.attributes[i]||{},r=e.elements[i];!W(r)||!K(r)||(Object.assign(r.style,s),Object.keys(n).forEach(function(a){var l=n[a];l===!1?r.removeAttribute(a):r.setAttribute(a,l===!0?"":l)}))})}function zi(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(s){var n=e.elements[s],r=e.attributes[s]||{},a=Object.keys(e.styles.hasOwnProperty(s)?e.styles[s]:i[s]),l=a.reduce(function(o,d){return o[d]="",o},{});!W(n)||!K(n)||(Object.assign(n.style,l),Object.keys(r).forEach(function(o){n.removeAttribute(o)}))})}}const Ki={name:"applyStyles",enabled:!0,phase:"write",fn:_i,effect:zi,requires:["computeStyles"]};function X(t){return t.split("-")[0]}var Q=Math.max,Mt=Math.min,lt=Math.round;function se(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function ke(){return!/^((?!chrome|android).)*safari/i.test(se())}function ct(t,e,i){e===void 0&&(e=!1),i===void 0&&(i=!1);var s=t.getBoundingClientRect(),n=1,r=1;e&&W(t)&&(n=t.offsetWidth>0&&lt(s.width)/t.offsetWidth||1,r=t.offsetHeight>0&&lt(s.height)/t.offsetHeight||1);var a=J(t)?B(t):window,l=a.visualViewport,o=!ke()&&i,d=(s.left+(o&&l?l.offsetLeft:0))/n,c=(s.top+(o&&l?l.offsetTop:0))/r,v=s.width/n,w=s.height/r;return{width:v,height:w,top:c,right:d+v,bottom:c+w,left:d,x:d,y:c}}function ne(t){var e=ct(t),i=t.offsetWidth,s=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-s)<=1&&(s=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:s}}function Se(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&ie(i)){var s=e;do{if(s&&t.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function q(t){return B(t).getComputedStyle(t)}function Xi(t){return["table","td","th"].indexOf(K(t))>=0}function U(t){return((J(t)?t.ownerDocument:t.document)||window.document).documentElement}function It(t){return K(t)==="html"?t:t.assignedSlot||t.parentNode||(ie(t)?t.host:null)||U(t)}function Ae(t){return!W(t)||q(t).position==="fixed"?null:t.offsetParent}function Yi(t){var e=/firefox/i.test(se()),i=/Trident/i.test(se());if(i&&W(t)){var s=q(t);if(s.position==="fixed")return null}var n=It(t);for(ie(n)&&(n=n.host);W(n)&&["html","body"].indexOf(K(n))<0;){var r=q(n);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||e&&r.willChange==="filter"||e&&r.filter&&r.filter!=="none")return n;n=n.parentNode}return null}function $t(t){for(var e=B(t),i=Ae(t);i&&Xi(i)&&q(i).position==="static";)i=Ae(i);return i&&(K(i)==="html"||K(i)==="body"&&q(i).position==="static")?e:i||Yi(t)||e}function re(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Lt(t,e,i){return Q(t,Mt(e,i))}function qi(t,e,i){var s=Lt(t,e,i);return s>i?i:s}function Pe(){return{top:0,right:0,bottom:0,left:0}}function Te(t){return Object.assign({},Pe(),t)}function De(t,e){return e.reduce(function(i,s){return i[s]=t,i},{})}var Ui=function(e,i){return e=typeof e=="function"?e(Object.assign({},i.rects,{placement:i.placement})):e,Te(typeof e!="number"?e:De(e,xt))};function Gi(t){var e,i=t.state,s=t.name,n=t.options,r=i.elements.arrow,a=i.modifiersData.popperOffsets,l=X(i.placement),o=re(l),d=[R,V].indexOf(l)>=0,c=d?"height":"width";if(!(!r||!a)){var v=Ui(n.padding,i),w=ne(r),u=o==="y"?I:R,E=o==="y"?N:V,g=i.rects.reference[c]+i.rects.reference[o]-a[o]-i.rects.popper[c],h=a[o]-i.rects.reference[o],x=$t(r),L=x?o==="y"?x.clientHeight||0:x.clientWidth||0:0,C=g/2-h/2,f=v[u],m=L-w[c]-v[E],b=L/2-w[c]/2+C,$=Lt(f,b,m),P=o;i.modifiersData[s]=(e={},e[P]=$,e.centerOffset=$-b,e)}}function Ji(t){var e=t.state,i=t.options,s=i.element,n=s===void 0?"[data-popper-arrow]":s;n!=null&&(typeof n=="string"&&(n=e.elements.popper.querySelector(n),!n)||Se(e.elements.popper,n)&&(e.elements.arrow=n))}const Qi={name:"arrow",enabled:!0,phase:"main",fn:Gi,effect:Ji,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function dt(t){return t.split("-")[1]}var Zi={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ts(t,e){var i=t.x,s=t.y,n=e.devicePixelRatio||1;return{x:lt(i*n)/n||0,y:lt(s*n)/n||0}}function Me(t){var e,i=t.popper,s=t.popperRect,n=t.placement,r=t.variation,a=t.offsets,l=t.position,o=t.gpuAcceleration,d=t.adaptive,c=t.roundOffsets,v=t.isFixed,w=a.x,u=w===void 0?0:w,E=a.y,g=E===void 0?0:E,h=typeof c=="function"?c({x:u,y:g}):{x:u,y:g};u=h.x,g=h.y;var x=a.hasOwnProperty("x"),L=a.hasOwnProperty("y"),C=R,f=I,m=window;if(d){var b=$t(i),$="clientHeight",P="clientWidth";if(b===B(i)&&(b=U(i),q(b).position!=="static"&&l==="absolute"&&($="scrollHeight",P="scrollWidth")),b=b,n===I||(n===R||n===V)&&r===Et){f=N;var A=v&&b===m&&m.visualViewport?m.visualViewport.height:b[$];g-=A-s.height,g*=o?1:-1}if(n===R||(n===I||n===N)&&r===Et){C=V;var S=v&&b===m&&m.visualViewport?m.visualViewport.width:b[P];u-=S-s.width,u*=o?1:-1}}var T=Object.assign({position:l},d&&Zi),_=c===!0?ts({x:u,y:g},B(i)):{x:u,y:g};if(u=_.x,g=_.y,o){var M;return Object.assign({},T,(M={},M[f]=L?"0":"",M[C]=x?"0":"",M.transform=(m.devicePixelRatio||1)<=1?"translate("+u+"px, "+g+"px)":"translate3d("+u+"px, "+g+"px, 0)",M))}return Object.assign({},T,(e={},e[f]=L?g+"px":"",e[C]=x?u+"px":"",e.transform="",e))}function es(t){var e=t.state,i=t.options,s=i.gpuAcceleration,n=s===void 0?!0:s,r=i.adaptive,a=r===void 0?!0:r,l=i.roundOffsets,o=l===void 0?!0:l,d={placement:X(e.placement),variation:dt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Me(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:o})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Me(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:o})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const is={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:es,data:{}};var Rt={passive:!0};function ss(t){var e=t.state,i=t.instance,s=t.options,n=s.scroll,r=n===void 0?!0:n,a=s.resize,l=a===void 0?!0:a,o=B(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&d.forEach(function(c){c.addEventListener("scroll",i.update,Rt)}),l&&o.addEventListener("resize",i.update,Rt),function(){r&&d.forEach(function(c){c.removeEventListener("scroll",i.update,Rt)}),l&&o.removeEventListener("resize",i.update,Rt)}}const ns={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ss,data:{}};var rs={left:"right",right:"left",bottom:"top",top:"bottom"};function Bt(t){return t.replace(/left|right|bottom|top/g,function(e){return rs[e]})}var os={start:"end",end:"start"};function Ie(t){return t.replace(/start|end/g,function(e){return os[e]})}function oe(t){var e=B(t),i=e.pageXOffset,s=e.pageYOffset;return{scrollLeft:i,scrollTop:s}}function ae(t){return ct(U(t)).left+oe(t).scrollLeft}function as(t,e){var i=B(t),s=U(t),n=i.visualViewport,r=s.clientWidth,a=s.clientHeight,l=0,o=0;if(n){r=n.width,a=n.height;var d=ke();(d||!d&&e==="fixed")&&(l=n.offsetLeft,o=n.offsetTop)}return{width:r,height:a,x:l+ae(t),y:o}}function ls(t){var e,i=U(t),s=oe(t),n=(e=t.ownerDocument)==null?void 0:e.body,r=Q(i.scrollWidth,i.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),a=Q(i.scrollHeight,i.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),l=-s.scrollLeft+ae(t),o=-s.scrollTop;return q(n||i).direction==="rtl"&&(l+=Q(i.clientWidth,n?n.clientWidth:0)-r),{width:r,height:a,x:l,y:o}}function le(t){var e=q(t),i=e.overflow,s=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+n+s)}function Re(t){return["html","body","#document"].indexOf(K(t))>=0?t.ownerDocument.body:W(t)&&le(t)?t:Re(It(t))}function Ct(t,e){var i;e===void 0&&(e=[]);var s=Re(t),n=s===((i=t.ownerDocument)==null?void 0:i.body),r=B(s),a=n?[r].concat(r.visualViewport||[],le(s)?s:[]):s,l=e.concat(a);return n?l:l.concat(Ct(It(a)))}function ce(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function cs(t,e){var i=ct(t,!1,e==="fixed");return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}function Be(t,e,i){return e===$e?ce(as(t,i)):J(e)?cs(e,i):ce(ls(U(t)))}function ds(t){var e=Ct(It(t)),i=["absolute","fixed"].indexOf(q(t).position)>=0,s=i&&W(t)?$t(t):t;return J(s)?e.filter(function(n){return J(n)&&Se(n,s)&&K(n)!=="body"}):[]}function us(t,e,i,s){var n=e==="clippingParents"?ds(t):[].concat(e),r=[].concat(n,[i]),a=r[0],l=r.reduce(function(o,d){var c=Be(t,d,s);return o.top=Q(c.top,o.top),o.right=Mt(c.right,o.right),o.bottom=Mt(c.bottom,o.bottom),o.left=Q(c.left,o.left),o},Be(t,a,s));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function je(t){var e=t.reference,i=t.element,s=t.placement,n=s?X(s):null,r=s?dt(s):null,a=e.x+e.width/2-i.width/2,l=e.y+e.height/2-i.height/2,o;switch(n){case I:o={x:a,y:e.y-i.height};break;case N:o={x:a,y:e.y+e.height};break;case V:o={x:e.x+e.width,y:l};break;case R:o={x:e.x-i.width,y:l};break;default:o={x:e.x,y:e.y}}var d=n?re(n):null;if(d!=null){var c=d==="y"?"height":"width";switch(r){case at:o[d]=o[d]-(e[c]/2-i[c]/2);break;case Et:o[d]=o[d]+(e[c]/2-i[c]/2);break}}return o}function kt(t,e){e===void 0&&(e={});var i=e,s=i.placement,n=s===void 0?t.placement:s,r=i.strategy,a=r===void 0?t.strategy:r,l=i.boundary,o=l===void 0?Ti:l,d=i.rootBoundary,c=d===void 0?$e:d,v=i.elementContext,w=v===void 0?Ot:v,u=i.altBoundary,E=u===void 0?!1:u,g=i.padding,h=g===void 0?0:g,x=Te(typeof h!="number"?h:De(h,xt)),L=w===Ot?Di:Ot,C=t.rects.popper,f=t.elements[E?L:w],m=us(J(f)?f:f.contextElement||U(t.elements.popper),o,c,a),b=ct(t.elements.reference),$=je({reference:b,element:C,strategy:"absolute",placement:n}),P=ce(Object.assign({},C,$)),A=w===Ot?P:b,S={top:m.top-A.top+x.top,bottom:A.bottom-m.bottom+x.bottom,left:m.left-A.left+x.left,right:A.right-m.right+x.right},T=t.modifiersData.offset;if(w===Ot&&T){var _=T[n];Object.keys(S).forEach(function(M){var et=[V,N].indexOf(M)>=0?1:-1,it=[I,N].indexOf(M)>=0?"y":"x";S[M]+=_[it]*et})}return S}function fs(t,e){e===void 0&&(e={});var i=e,s=i.placement,n=i.boundary,r=i.rootBoundary,a=i.padding,l=i.flipVariations,o=i.allowedAutoPlacements,d=o===void 0?Ce:o,c=dt(s),v=c?l?Le:Le.filter(function(E){return dt(E)===c}):xt,w=v.filter(function(E){return d.indexOf(E)>=0});w.length===0&&(w=v);var u=w.reduce(function(E,g){return E[g]=kt(t,{placement:g,boundary:n,rootBoundary:r,padding:a})[X(g)],E},{});return Object.keys(u).sort(function(E,g){return u[E]-u[g]})}function ps(t){if(X(t)===ee)return[];var e=Bt(t);return[Ie(t),e,Ie(e)]}function hs(t){var e=t.state,i=t.options,s=t.name;if(!e.modifiersData[s]._skip){for(var n=i.mainAxis,r=n===void 0?!0:n,a=i.altAxis,l=a===void 0?!0:a,o=i.fallbackPlacements,d=i.padding,c=i.boundary,v=i.rootBoundary,w=i.altBoundary,u=i.flipVariations,E=u===void 0?!0:u,g=i.allowedAutoPlacements,h=e.options.placement,x=X(h),L=x===h,C=o||(L||!E?[Bt(h)]:ps(h)),f=[h].concat(C).reduce(function(mt,G){return mt.concat(X(G)===ee?fs(e,{placement:G,boundary:c,rootBoundary:v,padding:d,flipVariations:E,allowedAutoPlacements:g}):G)},[]),m=e.rects.reference,b=e.rects.popper,$=new Map,P=!0,A=f[0],S=0;S<f.length;S++){var T=f[S],_=X(T),M=dt(T)===at,et=[I,N].indexOf(_)>=0,it=et?"width":"height",j=kt(e,{placement:T,boundary:c,rootBoundary:v,altBoundary:w,padding:d}),z=et?M?V:R:M?N:I;m[it]>b[it]&&(z=Bt(z));var jt=Bt(z),st=[];if(r&&st.push(j[_]<=0),l&&st.push(j[z]<=0,j[jt]<=0),st.every(function(mt){return mt})){A=T,P=!1;break}$.set(T,st)}if(P)for(var Ft=E?3:1,fe=function(G){var At=f.find(function(Vt){var nt=$.get(Vt);if(nt)return nt.slice(0,G).every(function(pe){return pe})});if(At)return A=At,"break"},St=Ft;St>0;St--){var Nt=fe(St);if(Nt==="break")break}e.placement!==A&&(e.modifiersData[s]._skip=!0,e.placement=A,e.reset=!0)}}const gs={name:"flip",enabled:!0,phase:"main",fn:hs,requiresIfExists:["offset"],data:{_skip:!1}};function Fe(t,e,i){return i===void 0&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function Ne(t){return[I,V,N,R].some(function(e){return t[e]>=0})}function vs(t){var e=t.state,i=t.name,s=e.rects.reference,n=e.rects.popper,r=e.modifiersData.preventOverflow,a=kt(e,{elementContext:"reference"}),l=kt(e,{altBoundary:!0}),o=Fe(a,s),d=Fe(l,n,r),c=Ne(o),v=Ne(d);e.modifiersData[i]={referenceClippingOffsets:o,popperEscapeOffsets:d,isReferenceHidden:c,hasPopperEscaped:v},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":v})}const ms={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:vs};function bs(t,e,i){var s=X(t),n=[R,I].indexOf(s)>=0?-1:1,r=typeof i=="function"?i(Object.assign({},e,{placement:t})):i,a=r[0],l=r[1];return a=a||0,l=(l||0)*n,[R,V].indexOf(s)>=0?{x:l,y:a}:{x:a,y:l}}function ws(t){var e=t.state,i=t.options,s=t.name,n=i.offset,r=n===void 0?[0,0]:n,a=Ce.reduce(function(c,v){return c[v]=bs(v,e.rects,r),c},{}),l=a[e.placement],o=l.x,d=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=o,e.modifiersData.popperOffsets.y+=d),e.modifiersData[s]=a}const ys={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ws};function xs(t){var e=t.state,i=t.name;e.modifiersData[i]=je({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const Es={name:"popperOffsets",enabled:!0,phase:"read",fn:xs,data:{}};function Os(t){return t==="x"?"y":"x"}function $s(t){var e=t.state,i=t.options,s=t.name,n=i.mainAxis,r=n===void 0?!0:n,a=i.altAxis,l=a===void 0?!1:a,o=i.boundary,d=i.rootBoundary,c=i.altBoundary,v=i.padding,w=i.tether,u=w===void 0?!0:w,E=i.tetherOffset,g=E===void 0?0:E,h=kt(e,{boundary:o,rootBoundary:d,padding:v,altBoundary:c}),x=X(e.placement),L=dt(e.placement),C=!L,f=re(x),m=Os(f),b=e.modifiersData.popperOffsets,$=e.rects.reference,P=e.rects.popper,A=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,S=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),T=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,_={x:0,y:0};if(b){if(r){var M,et=f==="y"?I:R,it=f==="y"?N:V,j=f==="y"?"height":"width",z=b[f],jt=z+h[et],st=z-h[it],Ft=u?-P[j]/2:0,fe=L===at?$[j]:P[j],St=L===at?-P[j]:-$[j],Nt=e.elements.arrow,mt=u&&Nt?ne(Nt):{width:0,height:0},G=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Pe(),At=G[et],Vt=G[it],nt=Lt(0,$[j],mt[j]),pe=C?$[j]/2-Ft-nt-At-S.mainAxis:fe-nt-At-S.mainAxis,Ns=C?-$[j]/2+Ft+nt+Vt+S.mainAxis:St+nt+Vt+S.mainAxis,he=e.elements.arrow&&$t(e.elements.arrow),Vs=he?f==="y"?he.clientTop||0:he.clientLeft||0:0,ze=(M=T==null?void 0:T[f])!=null?M:0,Ws=z+pe-ze-Vs,Hs=z+Ns-ze,Ke=Lt(u?Mt(jt,Ws):jt,z,u?Q(st,Hs):st);b[f]=Ke,_[f]=Ke-z}if(l){var Xe,_s=f==="x"?I:R,zs=f==="x"?N:V,rt=b[m],Wt=m==="y"?"height":"width",Ye=rt+h[_s],qe=rt-h[zs],ge=[I,R].indexOf(x)!==-1,Ue=(Xe=T==null?void 0:T[m])!=null?Xe:0,Ge=ge?Ye:rt-$[Wt]-P[Wt]-Ue+S.altAxis,Je=ge?rt+$[Wt]+P[Wt]-Ue-S.altAxis:qe,Qe=u&&ge?qi(Ge,rt,Je):Lt(u?Ge:Ye,rt,u?Je:qe);b[m]=Qe,_[m]=Qe-rt}e.modifiersData[s]=_}}const Ls={name:"preventOverflow",enabled:!0,phase:"main",fn:$s,requiresIfExists:["offset"]};function Cs(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function ks(t){return t===B(t)||!W(t)?oe(t):Cs(t)}function Ss(t){var e=t.getBoundingClientRect(),i=lt(e.width)/t.offsetWidth||1,s=lt(e.height)/t.offsetHeight||1;return i!==1||s!==1}function As(t,e,i){i===void 0&&(i=!1);var s=W(e),n=W(e)&&Ss(e),r=U(e),a=ct(t,n,i),l={scrollLeft:0,scrollTop:0},o={x:0,y:0};return(s||!s&&!i)&&((K(e)!=="body"||le(r))&&(l=ks(e)),W(e)?(o=ct(e,!0),o.x+=e.clientLeft,o.y+=e.clientTop):r&&(o.x=ae(r))),{x:a.left+l.scrollLeft-o.x,y:a.top+l.scrollTop-o.y,width:a.width,height:a.height}}function Ps(t){var e=new Map,i=new Set,s=[];t.forEach(function(r){e.set(r.name,r)});function n(r){i.add(r.name);var a=[].concat(r.requires||[],r.requiresIfExists||[]);a.forEach(function(l){if(!i.has(l)){var o=e.get(l);o&&n(o)}}),s.push(r)}return t.forEach(function(r){i.has(r.name)||n(r)}),s}function Ts(t){var e=Ps(t);return Hi.reduce(function(i,s){return i.concat(e.filter(function(n){return n.phase===s}))},[])}function Ds(t){var e;return function(){return e||(e=new Promise(function(i){Promise.resolve().then(function(){e=void 0,i(t())})})),e}}function Ms(t){var e=t.reduce(function(i,s){var n=i[s.name];return i[s.name]=n?Object.assign({},n,s,{options:Object.assign({},n.options,s.options),data:Object.assign({},n.data,s.data)}):s,i},{});return Object.keys(e).map(function(i){return e[i]})}var Ve={placement:"bottom",modifiers:[],strategy:"absolute"};function We(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(s){return!(s&&typeof s.getBoundingClientRect=="function")})}function Is(t){t===void 0&&(t={});var e=t,i=e.defaultModifiers,s=i===void 0?[]:i,n=e.defaultOptions,r=n===void 0?Ve:n;return function(l,o,d){d===void 0&&(d=r);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ve,r),modifiersData:{},elements:{reference:l,popper:o},attributes:{},styles:{}},v=[],w=!1,u={state:c,setOptions:function(x){var L=typeof x=="function"?x(c.options):x;g(),c.options=Object.assign({},r,c.options,L),c.scrollParents={reference:J(l)?Ct(l):l.contextElement?Ct(l.contextElement):[],popper:Ct(o)};var C=Ts(Ms([].concat(s,c.options.modifiers)));return c.orderedModifiers=C.filter(function(f){return f.enabled}),E(),u.update()},forceUpdate:function(){if(!w){var x=c.elements,L=x.reference,C=x.popper;if(We(L,C)){c.rects={reference:As(L,$t(C),c.options.strategy==="fixed"),popper:ne(C)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(S){return c.modifiersData[S.name]=Object.assign({},S.data)});for(var f=0;f<c.orderedModifiers.length;f++){if(c.reset===!0){c.reset=!1,f=-1;continue}var m=c.orderedModifiers[f],b=m.fn,$=m.options,P=$===void 0?{}:$,A=m.name;typeof b=="function"&&(c=b({state:c,options:P,name:A,instance:u})||c)}}}},update:Ds(function(){return new Promise(function(h){u.forceUpdate(),h(c)})}),destroy:function(){g(),w=!0}};if(!We(l,o))return u;u.setOptions(d).then(function(h){!w&&d.onFirstUpdate&&d.onFirstUpdate(h)});function E(){c.orderedModifiers.forEach(function(h){var x=h.name,L=h.options,C=L===void 0?{}:L,f=h.effect;if(typeof f=="function"){var m=f({state:c,name:x,instance:u,options:C}),b=function(){};v.push(m||b)}})}function g(){v.forEach(function(h){return h()}),v=[]}return u}}var Rs=[ns,Es,is,Ki,ys,gs,Ls,Qi,ms],Bs=Is({defaultModifiers:Rs});async function de(t){const e=this.collection.findIndex(i=>i.id===t.id);if(e>=0){const i=this.collection[e];i.state==="opened"&&i.close(),i.popper.destroy(),He(i),Object.getOwnPropertyNames(i).forEach(s=>{delete i[s]}),this.collection.splice(e,1)}return this.collection}function He(t){return t.__eventListeners&&(t.__eventListeners.forEach(e=>{e.el.forEach(i=>{e.type.forEach(s=>{t[i].removeEventListener(s,e.listener,!1)})})}),delete t.__eventListeners),t}async function ue(t){const e=ye.call(this,t);return e.el.classList.add(this.settings.stateActive),e.trigger.hasAttribute("aria-controls")&&e.trigger.setAttribute("aria-expanded","true"),e.config=we(e.el,this.settings),e.popper.setOptions({placement:e.config.placement,modifiers:[{name:"eventListeners",enabled:!0},...Ci(e.config)]}),e.popper.update(),e.state="opened",e}async function js(t,e){de.call(this,t);const i=this,s={id:t.id,state:"closed",el:t,trigger:e,popper:Bs(e,t),config:we(t,this.settings),open(){return ue.call(i,this)},close(){return te.call(i,this)},deregister(){return de.call(i,this)}};return s.trigger.hasAttribute("aria-controls")&&s.trigger.setAttribute("aria-expanded","false"),_e.call(this,s),this.collection.push(s),s.el.classList.contains(this.settings.stateActive)&&(await s.open(),Oe.call(this,s)),s}function _e(t){return t.__eventListeners||(t.config.event==="hover"?(t.__eventListeners=[{el:["trigger"],type:["mouseenter","focus"],listener:ue.bind(this,t)},{el:["el","trigger"],type:["mouseleave","focusout"],listener:Ee.bind(this,t)}],t.__eventListeners.forEach(i=>{i.el.forEach(s=>{i.type.forEach(n=>{t[s].addEventListener(n,i.listener,!1)})})})):(t.__eventListeners=[{el:["trigger"],type:["click"],listener:Ai.bind(this,t)}],t.__eventListeners.forEach(i=>{i.el.forEach(s=>{i.type.forEach(n=>{t[s].addEventListener(n,i.listener,!1)})})}))),t}class Fs extends D{constructor(i){super();Y(this,vt);this.defaults=Li,this.settings={...this.defaults,...i},this.trigger=null,F(this,vt,Pi.bind(this)),this.settings.autoMount&&this.mount()}async mount(i){i&&(this.settings={...this.settings,...i});const s=document.querySelectorAll(this.settings.selectorPopover);return await this.registerCollection(s),this.settings.eventListeners&&this.mountEventListeners(!1),this}async unmount(){return this.trigger=null,await this.deregisterCollection(),this.settings.eventListeners&&this.unmountEventListeners(!1),this}mountEventListeners(i=!0){i&&this.collection.forEach(s=>{_e.call(this,s)}),document.addEventListener("keydown",O(this,vt),!1)}unmountEventListeners(i=!0){i&&this.collection.forEach(s=>{He(s)}),document.removeEventListener("keydown",O(this,vt),!1)}register(i){const s=Si.call(this,i);return s.error?Promise.reject(s.error):js.call(this,s.popover,s.trigger)}deregister(i){let s=this.get(i.id||i);return s?de.call(this,s):Promise.reject(new Error(`Failed to deregister; popover does not exist in collection with ID of: "${i.id||i}".`))}open(i){return ue.call(this,i)}close(i){return te.call(this,i)}}vt=new WeakMap,y.Drawer=bi,y.Modal=$i,y.Popover=Fs,y.core=ai,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})});
10
10
  //# sourceMappingURL=index.umd.cjs.map