idea-react 3.0.0-beta.4 → 3.0.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,15 +1,15 @@
1
- import{_ as e}from"@swc/helpers/_/_apply_decs_2203_r";import{_ as t}from"@swc/helpers/_/_class_private_field_get";import{_ as n}from"@swc/helpers/_/_class_private_field_init";import{_ as r}from"@swc/helpers/_/_class_private_field_set";import{_ as i}from"@swc/helpers/_/_define_property";import{_ as a}from"@swc/helpers/_/_identity";import{_ as o}from"@swc/helpers/_/_object_spread";import{_ as s}from"@swc/helpers/_/_object_spread_props";import{_ as c}from"@swc/helpers/_/_object_without_properties";import{Fragment as l,jsx as u,jsxs as d}from"react/jsx-runtime";import f from"classnames";import{action as p,computed as m,observable as h}from"mobx";import{observer as g}from"mobx-react";import*as _ from"react";import v,{Children as y,Component as b,Fragment as x,PureComponent as S,cloneElement as C,createElement as w,createRef as T,forwardRef as E,isValidElement as D}from"react";import O from"@shikijs/langs/css";import k from"@shikijs/langs/html";import A from"@shikijs/langs/javascript";import j from"@shikijs/langs/json";import M from"@shikijs/langs/jsx";import N from"@shikijs/langs/sh";import P from"@shikijs/langs/tsx";import F from"@shikijs/langs/typescript";import I from"@shikijs/themes/github-dark";import L from"@shikijs/themes/github-light";import{createHighlighterCoreSync as ee}from"shiki/core";import{createJavaScriptRegexEngine as te}from"shiki/engine/javascript";import{ObservedComponent as ne,reaction as re}from"mobx-react-helper";import{Day as ie,Second as ae,Timestamp as oe,blobOf as se,changeMonth as ce,diffTime as le,formatDate as R,scrollTo as ue,sleep as de,splitArray as fe,uniqueID as pe}from"web-utility";import{Defer as me}from"iterable-observer";import{_ as z}from"@swc/helpers/_/_async_to_generator";import{createReactEditorJS as he}from"react-editor-js";import ge from"editorjs-html";import{LiveEditor as _e,LiveError as ve,LivePreview as ye,LiveProvider as be}from"react-live";import{createPortal as xe}from"react-dom";import Se from"html2canvas";import{renderToStaticMarkup as Ce}from"react-dom/server";var we=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports);const B=e=>e,Te=e=>typeof e.href==`string`,Ee=e=>e.preventDefault(),V=B(e=>{let{as:t,variant:n,theme:r,size:i,icon:a,styled:l,disabled:d,active:p,className:m}=e,h=c(e,[`as`,`variant`,`theme`,`size`,`icon`,`styled`,`disabled`,`active`,`className`]),g=Te(h),_=t==null?g?`a`:`button`:t,v=_===`button`,y=!v&&d?typeof _==`string`?void 0:Ee:h.onClick,b=f(n===!1?void 0:n?`btn-${n}`:a?void 0:`btn`,r&&`theme-${r}`,i&&`btn-${i}`,{"btn-icon":a,"btn-styled":l,disabled:d,active:p},m);return/*#__PURE__*/ u(_,s(o({},h),{className:b,type:v?h.type||`button`:h.type,href:d?void 0:h.href,disabled:v||typeof _!=`string`?d:void 0,"aria-disabled":!v&&d||void 0,"aria-pressed":!g||h.role===`button`?p==null?h[`aria-pressed`]:p:h[`aria-pressed`],tabIndex:!v&&d?-1:h.tabIndex,onClick:y}))});V.displayName=`Button`;const De=B(e=>{let{as:t=`input`,variant:n,theme:r,size:i,icon:a,styled:l,active:d,className:p,type:m=`button`}=e,h=c(e,[`as`,`variant`,`theme`,`size`,`icon`,`styled`,`active`,`className`,`type`]);return/*#__PURE__*/ u(t,s(o({},h),{type:m,className:f(n===!1?void 0:n?`btn-${n}`:`btn`,r&&`theme-${r}`,i&&`btn-${i}`,{"btn-icon":a,"btn-styled":l,active:d},p)}))});De.displayName=`ButtonInput`;const H=B(e=>{let{as:t=`span`,className:n,style:r,name:i,size:a}=e,s=c(e,[`as`,`className`,`style`,`name`,`size`]);return/*#__PURE__*/ u(t,o({className:f(`bi-${i}`,n),style:o({fontSize:a&&`${a}rem`},r)},s))});H.displayName=`Icon`;let Oe;var ke,Ae,je,Me,Ne,Pe,Fe;const Ie=B(e=>{let{as:t=`div`,theme:n,size:r,flush:i,gap:a,className:l}=e,d=c(e,[`as`,`theme`,`size`,`flush`,`gap`,`className`]);return/*#__PURE__*/ u(t,s(o({},d),{className:f(`accordion`,n&&`theme-${n}`,r&&`accordion-${r}`,{"accordion-flush":i,"accordion-gap":a},l)}))});Ie.displayName=`Accordion`;const Le=B(e=>{let{as:t=`details`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`accordion-item`,n)}))});Le.displayName=`AccordionItem`;const Re=B(e=>{let{as:t=`summary`,icon:n=`chevron-down`,className:r,children:i}=e,a=c(e,[`as`,`icon`,`className`,`children`]);return/*#__PURE__*/ d(t,s(o({},a),{className:f(`accordion-header`,r),children:[i,n&&/*#__PURE__*/ u(H,{name:n,className:`accordion-icon`,"aria-hidden":`true`})]}))});Re.displayName=`AccordionHeader`;const ze=B(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`accordion-body`,n)}))});ze.displayName=`AccordionBody`;let Be;new(Oe=(ke=/*#__PURE__*/ new WeakMap,Ae=class extends (Ne=b){get componentProps(){return this.props}get expanded(){return t(this,ke)}set expanded(e){r(this,ke,e)}get items(){var e,t;return[...(e=(t=document.querySelector(this.componentProps.target))==null?void 0:t.querySelectorAll(`:scope > .accordion-item`))==null?[]:e]}componentDidMount(){document.addEventListener(`toggle`,this.refresh,!0),this.refresh()}componentDidUpdate(e){e.target!==this.componentProps.target&&(this.restoreNames(),this.refresh())}componentWillUnmount(){document.removeEventListener(`toggle`,this.refresh,!0),this.restoreNames()}render(){let e=this.componentProps,{target:t}=e,n=c(e,[`target`]);return/*#__PURE__*/ u(V,s(o({as:this.componentProps.as},n),{"aria-expanded":this.expanded,onClick:this.handleClick}))}constructor(...e){super(...e),n(this,ke,{writable:!0,value:(Fe(this),Pe(this,!1))}),i(this,`names`,/* @__PURE__ */ new Map),i(this,`restoreNames`,()=>{for(let[e,t]of this.names)e.setAttribute(`name`,t);this.names.clear()}),i(this,`refresh`,p(()=>{let{items:e}=this;this.expanded=!!e.length&&e.every(({open:e})=>e)})),i(this,`handleClick`,e=>{var t,n;if((t=(n=this.componentProps).onClick)==null||t.call(n,e),e.defaultPrevented)return;let{items:r,expanded:i}=this;for(let e of r){let t=e.getAttribute(`name`);!i&&t&&(this.names.set(e,t),e.removeAttribute(`name`)),e.open=!i}i&&this.restoreNames(),this.refresh()})}},{e:[Pe,Fe],c:[Be,Me]}=e(Ae,[[h,1,`expanded`]],[g],Ne),Ae),je=class extends a{constructor(){super(Be),i(this,`displayName`,`AccordionToggle`),Me()}},i(je,Oe,void 0),je);const U=B(e=>{let{as:t=`button`,dismiss:n,className:r,type:i=`button`,"aria-label":a=`Close`}=e,l=c(e,[`as`,`dismiss`,`className`,`type`,`aria-label`]);return/*#__PURE__*/ u(t,s(o({},l),{type:i,className:f(`btn-close`,r),"data-bs-dismiss":n,"aria-label":a}))});U.displayName=`CloseButton`;let Ve;var He,Ue,We,Ge,Ke,qe,Je,Ye,Xe;let W;new(Ve=(He=/*#__PURE__*/ new WeakMap,Ue=/*#__PURE__*/ new WeakMap,We=class extends (qe=b){get componentProps(){return this.props}get hiding(){return t(this,He)}set hiding(e){r(this,He,e)}get closed(){return t(this,Ue)}set closed(e){r(this,Ue,e)}componentDidUpdate(){if(this.closed&&!this.notified){var e,t;this.notified=!0,(e=(t=this.componentProps).onClosed)==null||e.call(t)}}componentWillUnmount(){clearTimeout(this.timer)}render(){var e,t;let n=(e=this.componentProps.as)==null?`div`:e,r=this.componentProps,{as:i,theme:a,dismissible:l,instant:p,closeLabel:m=`Close`,onClose:h,onClosed:g,className:_,children:v}=r,y=c(r,[`as`,`theme`,`dismissible`,`instant`,`closeLabel`,`onClose`,`onClosed`,`className`,`children`]);return this.closed?null:/*#__PURE__*/ d(n,s(o({},y),{ref:this.root,role:(t=y.role)==null?`alert`:t,className:f(`alert`,a&&`theme-${a}`,{"alert-instant":p,hiding:this.hiding},_),onTransitionEnd:this.handleTransitionEnd,children:[v,l&&/*#__PURE__*/ u(U,{className:`ms-auto`,"aria-label":m,onClick:this.handleClose})]}))}constructor(...e){super(...e),n(this,He,{writable:!0,value:(Xe(this),Je(this,!1))}),n(this,Ue,{writable:!0,value:Ye(this,!1)}),i(this,`root`,/*#__PURE__*/ T()),i(this,`timer`,void 0),i(this,`notified`,!1),i(this,`finishClose`,p(()=>{this.closed||(clearTimeout(this.timer),this.closed=!0)})),i(this,`close`,p(()=>{var e,t;if(this.hiding||this.closed)return;if((e=(t=this.componentProps).onClose)==null||e.call(t),this.componentProps.instant)return this.finishClose();this.hiding=!0;let n=getComputedStyle(this.root.current),r=n.transitionDuration.split(`,`).map(W.milliseconds),i=n.transitionDelay.split(`,`).map(W.milliseconds),a=Math.max(0,...r.map((e,t)=>e+(i[t%i.length]||0)));this.timer=setTimeout(this.finishClose,a)})),i(this,`handleClose`,e=>{e.defaultPrevented||this.close()}),i(this,`handleTransitionEnd`,e=>{var t,n;(t=(n=this.componentProps).onTransitionEnd)==null||t.call(n,e),e.target===e.currentTarget&&this.hiding&&this.finishClose()})}},{e:[Je,Ye,Xe],c:[W,Ke]}=e(We,[[h,1,`hiding`],[h,1,`closed`]],[g],qe),We),Ge=class extends a{constructor(){super(W),i(this,`displayName`,`Alert`),i(this,`milliseconds`,e=>(parseFloat(e)||0)*(e.trim().endsWith(`ms`)?1:1e3)),Ke()}},i(Ge,Ve,void 0),Ge);const Ze=B(e=>{let{as:t=`a`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`alert-link`,n)}))});Ze.displayName=`AlertLink`;const Qe=B(e=>{let{as:t=`h4`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`alert-heading`,n)}))});Qe.displayName=`AlertHeading`;function $e(e){return t=>{t&&new IntersectionObserver(([{isIntersecting:t,target:n}],r)=>{if(!t)return;let i=[`animate__animated`,`animate__${e}`];n.classList.add(...i),n.addEventListener(`animationend`,()=>n.classList.remove(...i),{once:!0}),r.disconnect()}).observe(t)}}const et=B(e=>{let{as:t=`span`,className:n,style:r,size:i,theme:a,subtle:l,src:p,alt:m,status:h,statusLabel:g=h,children:_}=e,v=c(e,[`as`,`className`,`style`,`size`,`theme`,`subtle`,`src`,`alt`,`status`,`statusLabel`,`children`]);return/*#__PURE__*/ d(t,s(o({className:f(`avatar`,typeof i==`string`&&`avatar-${i}`,a&&`theme-${a}`,l&&`avatar-subtle`,n),style:typeof i==`number`?o({"--bs-avatar-size":`${i}rem`},r):r},v),{children:[p?/*#__PURE__*/ u(`img`,{className:`avatar-img`,src:p,alt:m}):_,h&&/*#__PURE__*/ u(`span`,{className:`avatar-status status-${h}`,role:`img`,"aria-label":g})]}))});et.displayName=`Avatar`;const tt=B(e=>{let{as:t=`img`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`avatar-img`,n)}))});tt.displayName=`AvatarImage`;const nt=B(e=>{let{as:t=`div`,className:n,size:r,children:i}=e,a=c(e,[`as`,`className`,`size`,`children`]);return/*#__PURE__*/ u(t,s(o({className:f(`avatar-stack`,r&&`avatar-stack-${r}`,n)},a),{children:i}))});nt.displayName=`AvatarStack`;const rt=e=>typeof e.href==`string`,it=B(e=>{let{as:t,variant:n=`solid`,theme:r,pill:i,className:a}=e,l=c(e,[`as`,`variant`,`theme`,`pill`,`className`]),d=t==null?rt(l)?`a`:`span`:t,p=f(`badge`,n!==`solid`&&`badge-${n}`,r&&`theme-${r}`,{"rounded-pill":i},a);return/*#__PURE__*/ u(d,s(o({},l),{className:p}))});it.displayName=`Badge`;const at=B(e=>{let{as:t=`ol`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`breadcrumb`,n)}))});at.displayName=`Breadcrumb`;const ot=B(e=>{let{as:t=`li`}=e,n=c(e,[`as`]);return/*#__PURE__*/ u(t,s(o({},n),{className:f(`breadcrumb-item`,n.className)}))});ot.displayName=`BreadcrumbItem`;const st=B(e=>{let{as:t=`a`,active:n,className:r,"aria-current":i=n?`page`:void 0}=e,a=c(e,[`as`,`active`,`className`,`aria-current`]);return/*#__PURE__*/ u(t,s(o({},a),{className:f(`breadcrumb-link`,{active:n},r),"aria-current":i}))});st.displayName=`BreadcrumbLink`;const ct=B(e=>{let{as:t=`li`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`breadcrumb-divider`,n),"aria-hidden":`true`}))});ct.displayName=`BreadcrumbDivider`;const lt=B(e=>{let{as:t=`div`,vertical:n,size:r,divider:i,role:a=`group`,className:l}=e,d=c(e,[`as`,`vertical`,`size`,`divider`,`role`,`className`]);return/*#__PURE__*/ u(t,s(o({role:a},d),{className:f(n?`btn-group-vertical`:`btn-group`,r&&`btn-group-${r}`,i&&`btn-group-divider`,l)}))});lt.displayName=`ButtonGroup`;const ut=B(e=>{let{as:t=`div`,className:n,role:r=`toolbar`}=e,i=c(e,[`as`,`className`,`role`]);return/*#__PURE__*/ u(t,s(o({role:r},i),{className:f(`btn-toolbar`,n)}))});ut.displayName=`ButtonToolbar`;const dt=B(e=>{let{as:t=`div`,row:n,body:r,theme:i,subtle:a,translucent:l,className:d}=e,p=c(e,[`as`,`row`,`body`,`theme`,`subtle`,`translucent`,`className`]);return/*#__PURE__*/ u(t,s(o({},p),{className:f(`card`,{"card-row":n,"card-body":r,"card-subtle":a,"card-translucent":l},i&&`theme-${i}`,d)}))});dt.displayName=`Card`;const ft=B(e=>{let{as:t=`img`,placement:n,className:r}=e,i=c(e,[`as`,`placement`,`className`]);return/*#__PURE__*/ u(t,s(o({},i),{className:f(n?`card-img-${n}`:`card-img`,r)}))});ft.displayName=`CardImage`;const pt=B(e=>{let{as:t=`p`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`card-subtitle`,n)}))});pt.displayName=`CardSubtitle`;const mt=B(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`card-group`,n)}))});mt.displayName=`CardGroup`;const ht=B(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`card-img-overlay`,n)}))});ht.displayName=`CardImageOverlay`;const gt=B(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`card-header`,n)}))});gt.displayName=`CardHeader`;const _t=B(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`card-body`,n)}))});_t.displayName=`CardBody`;const vt=B(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`card-footer`,n)}))});vt.displayName=`CardFooter`;const yt=B(e=>{let{as:t=`h4`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`card-title`,n)}))});yt.displayName=`CardTitle`;const bt=B(e=>{let{as:t=`p`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`card-text`,n)}))});bt.displayName=`CardText`;var xt,St,Ct,wt,Tt,Et,Dt,Ot,kt,At=/*#__PURE__*/ new WeakMap,jt=/*#__PURE__*/ new WeakMap,Mt=class{get activeIndex(){return t(this,At)}set activeIndex(e){r(this,At,e)}get playing(){return t(this,jt)}set playing(e){r(this,jt,e)}constructor(e,t,a){i(this,`count`,void 0),i(this,`ends`,void 0),i(this,`interval`,void 0),n(this,At,{writable:!0,value:void 0}),n(this,jt,{writable:!0,value:void 0}),i(this,`timer`,void 0),i(this,`hovering`,void 0),i(this,`visible`,void 0),i(this,`onChange`,void 0),i(this,`onNavigate`,void 0),i(this,`setIndex`,void 0),i(this,`next`,void 0),i(this,`previous`,void 0),i(this,`play`,void 0),i(this,`pause`,void 0),i(this,`toggle`,void 0),i(this,`setHovering`,void 0),i(this,`setVisible`,void 0),i(this,`update`,void 0),i(this,`dispose`,void 0),i(this,`schedule`,void 0),i(this,`clearTimer`,void 0),this.count=e,this.ends=t,this.interval=a,r(this,At,(kt(this),xt(this,0))),r(this,jt,St(this,!1)),this.hovering=!1,this.visible=!0,this.setIndex=Ct(this,(e,t=!1,n,r=!1)=>{let i=Math.max(0,Math.min(e,this.count-1));if(i!==this.activeIndex){var a,o,s,c;let e=this.activeIndex;this.activeIndex=i,(a=(o=this).onChange)==null||a.call(o,i),r||(s=(c=this).onNavigate)==null||s.call(c,i,e,n)}t?this.pause():this.schedule()}),this.next=wt(this,(e=!1)=>{this.activeIndex===this.count-1&&this.ends===`stop`?e||this.pause():this.setIndex(this.activeIndex===this.count-1?0:this.activeIndex+1,e,1)}),this.previous=Tt(this,(e=!1)=>{this.activeIndex===0&&this.ends===`stop`?e||this.pause():this.setIndex(this.activeIndex===0?this.count-1:this.activeIndex-1,e,-1)}),this.play=Et(this,()=>{this.playing=!0,this.schedule()}),this.pause=Dt(this,()=>{this.playing=!1,this.clearTimer()}),this.toggle=Ot(this,()=>this.playing?this.pause():this.play()),this.setHovering=e=>{this.hovering=e,this.schedule()},this.setVisible=e=>{this.visible=e,this.schedule()},this.update=(e,t,n)=>{this.count=e,this.ends=t,this.interval=n,this.activeIndex>=e?this.setIndex(Math.max(0,e-1)):this.schedule()},this.dispose=()=>this.clearTimer(),this.schedule=()=>{this.clearTimer(),!this.playing||this.hovering||!this.visible||this.count<2||(this.timer=setTimeout(this.next,Math.max(0,this.interval(this.activeIndex))))},this.clearTimer=()=>{this.timer&&clearTimeout(this.timer),this.timer=void 0}}};({e:[xt,St,Ct,wt,Tt,Et,Dt,Ot,kt]}=e(Mt,[[h,1,`activeIndex`],[h,1,`playing`],[p,0,`setIndex`],[p,0,`next`],[p,0,`previous`],[p,0,`play`],[p,0,`pause`],[p,0,`toggle`]],[]));var Nt=class{get looping(){return!!this.clone||this.frame!==void 0}constructor(){i(this,`frame`,void 0),i(this,`clone`,void 0),i(this,`track`,void 0),i(this,`snap`,``),i(this,`navigate`,(e,t,n)=>{this.dispose(),!n||e.scrollLeft===t?e.scrollTo({left:t,behavior:`instant`}):(this.track=e,this.snap=e.style.scrollSnapType,e.style.scrollSnapType=`none`,this.animate(e,e.scrollLeft,t))}),i(this,`loop`,(e,t,n,r)=>{this.dispose(),this.track=e,this.snap=e.style.scrollSnapType;let i=n.cloneNode(!0);i.removeAttribute(`id`);for(let e of i.querySelectorAll(`[id]`))e.removeAttribute(`id`);i.setAttribute(`aria-hidden`,`true`),i.inert=!0,i.dataset.carouselClone=`true`,i.classList.remove(`active`),this.clone=i,e.style.scrollSnapType=`none`,r?e.append(i):e.prepend(i);let a=t.offsetLeft,o=i.offsetLeft;e.scrollTo({left:a,behavior:`instant`}),this.animate(e,a,o,()=>{this.dispose(),e.scrollTo({left:n.offsetLeft,behavior:`instant`})})}),i(this,`animate`,(e,t,n,r=this.dispose)=>{let i=window.performance.now(),a=o=>{let s=Math.min(1,(o-i)/400),c=1-Math.pow(1-s,3);e.scrollTo({left:t+(n-t)*c,behavior:`instant`}),s<1?this.frame=window.requestAnimationFrame(a):r()};this.frame=window.requestAnimationFrame(a)}),i(this,`dispose`,()=>{var e;this.frame!==void 0&&window.cancelAnimationFrame(this.frame),this.frame=void 0,(e=this.clone)==null||e.remove(),this.clone=void 0,this.track&&(this.track.style.scrollSnapType=this.snap),this.track=void 0})}};let Pt;var Ft,It,Lt,Rt;const zt=B(e=>{let{as:t=`div`,interval:n,active:r,className:i,children:a}=e,l=c(e,[`as`,`interval`,`active`,`className`,`children`]);return/*#__PURE__*/ u(t,s(o({},l),{className:f(`carousel-item`,{active:r},i),"data-bs-interval":n,children:a}))});zt.displayName=`CarouselSlide`;let Bt;new(Pt=(Ft=class extends (Rt=b){componentDidMount(){var e;this.updateStore(),this.props.autoplay&&this.store.play(),document.addEventListener(`visibilitychange`,this.handleVisibilityChange),(e=this.track.current)==null||e.addEventListener(`scroll`,this.handleScroll,{passive:!0})}componentDidUpdate(){this.updateStore()}componentWillUnmount(){var e;this.store.dispose(),this.scroller.dispose(),document.removeEventListener(`visibilitychange`,this.handleVisibilityChange),(e=this.track.current)==null||e.removeEventListener(`scroll`,this.handleScroll)}render(){var e,t,n;let r=(e=this.props.as)==null?`div`:e,i=this.getSlides(),a=this.props,{as:l,autoplay:p,center:m,children:h,className:g,controls:_,controlsPlacement:v=`overlay`,dark:y,ends:b,fade:x,fade:S,indicators:C,interval:w,items:T,itemsGap:E,itemsPeek:D,keyboard:O,onChange:k,onClick:A,pause:j,playPause:M,style:N}=a,P=c(a,[`as`,`autoplay`,`center`,`children`,`className`,`controls`,`controlsPlacement`,`dark`,`ends`,`fade`,`fade`,`indicators`,`interval`,`items`,`itemsGap`,`itemsPeek`,`keyboard`,`onChange`,`onClick`,`pause`,`playPause`,`style`]),F=v===`overlay`,I=o({},N,T&&{"--bs-carousel-items":T},E!==void 0&&{"--bs-carousel-items-gap":E},D!==void 0&&{"--bs-carousel-items-peek":D}),L=/*#__PURE__*/ d(`div`,{className:`d-flex justify-content-between align-items-center gap-2`,children:[this.renderIndicators(),/*#__PURE__*/ d(`div`,{className:`d-flex align-items-center gap-2`,children:[this.renderPlayPause(),this.renderControls()]})]});return/*#__PURE__*/ d(r,s(o({},P),{ref:this.root,className:f(`carousel`,{"carousel-fade":S,"carousel-dark":y,"carousel-center":m},g),style:I,role:`region`,"aria-label":(t=this.props[`aria-label`])==null?`Carousel`:t,"aria-roledescription":`carousel`,onClick:this.handleClick,onKeyDown:this.handleKeyDown,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onFocusCapture:this.handleFocusCapture,onBlurCapture:this.handleBlurCapture,children:[v===`top`&&L,/*#__PURE__*/ u(`div`,{ref:this.track,className:`carousel-inner`,tabIndex:0,"aria-label":(n=this.props[`aria-label`])==null?`Carousel slides`:n,onScroll:this.handleScroll,children:i.map(this.renderSlide)}),F&&this.renderControls(),v===`bottom`&&L,F&&(this.props.playPause||this.props.autoplay)&&this.renderPlayPause(),F&&this.renderIndicators()]}))}constructor(...e){super(...e),i(this,`root`,/*#__PURE__*/ T()),i(this,`track`,/*#__PURE__*/ T()),i(this,`store`,new Mt(0,`loop`,()=>5e3)),i(this,`scroller`,new Nt),i(this,`getSlides`,()=>y.toArray(this.props.children)),i(this,`getSlideInterval`,e=>{var t;let n=this.getSlides()[e],r=/*#__PURE__*/ D(n)?n.props.interval:void 0;return(t=r==null?this.props.interval:r)==null?5e3:t}),i(this,`updateStore`,()=>{var e;let t=this.getSlides();this.store.onChange=this.props.onChange,this.store.onNavigate=this.scrollToActive,this.store.update(t.length,(e=this.props.ends)==null?`loop`:e,this.getSlideInterval)}),i(this,`handleVisibilityChange`,()=>this.store.setVisible(!document.hidden)),i(this,`handleMouseEnter`,()=>{this.props.pause!==!1&&this.store.setHovering(!0)}),i(this,`handleMouseLeave`,()=>this.store.setHovering(!1)),i(this,`handleFocusCapture`,()=>{this.props.pause!==!1&&this.store.setHovering(!0)}),i(this,`handleBlurCapture`,({currentTarget:e,relatedTarget:t})=>{t instanceof Node&&e.contains(t)||this.store.setHovering(!1)}),i(this,`handleScroll`,()=>{let e=this.track.current;if(!e||this.scroller.looping)return;let t=[...e.children],n=t.reduce((n,r,i)=>{var a;return Math.abs(r.offsetLeft-e.scrollLeft)<Math.abs(((a=t[n])==null?void 0:a.offsetLeft)-e.scrollLeft)?i:n},0);n!==this.store.activeIndex&&this.store.setIndex(n,!0,void 0,!0)}),i(this,`handleKeyDown`,e=>{var t,n;(t=(n=this.props).onKeyDown)==null||t.call(n,e),e.defaultPrevented||this.scroller.looping||this.props.keyboard===!1||e.altKey||e.ctrlKey||e.metaKey||e.target instanceof HTMLElement&&/^(INPUT|TEXTAREA|SELECT)$/.test(e.target.tagName)||(e.key===`ArrowLeft`?(e.preventDefault(),this.store.previous(!0)):e.key===`ArrowRight`&&(e.preventDefault(),this.store.next(!0)))}),i(this,`handleClick`,e=>{var t,n,r;if((n=(r=this.props).onClick)==null||n.call(r,e),e.defaultPrevented||this.scroller.looping)return;let i=e.target instanceof Element?e.target.closest(`[data-carousel-action]`):null,{carouselAction:a,index:o}=(t=i==null?void 0:i.dataset)==null?{}:t;switch(a){case`previous`:this.store.previous(!0);break;case`next`:this.store.next(!0);break;case`slide`:o!==void 0&&this.store.setIndex(Number(o),!0);break;case`toggle`:this.store.toggle()}}),i(this,`scrollToActive`,(e,t,n)=>{var r;let i=this.track.current,a=this.root.current;if(!i||!a)return;this.scroller.dispose();let o=[...i.children],s=o[e];if(!s)return;let c=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,l=getComputedStyle(a),u=Number.parseFloat(l.getPropertyValue(`--bs-carousel-items`))||1,d=Number.parseFloat(l.getPropertyValue(`--bs-carousel-items-peek`))||0,f=o.some(e=>e.style.width||e.style.flexBasis),p=n===1&&e===0&&t===o.length-1||n===-1&&t===0&&e===o.length-1,m=((r=this.props.ends)==null?`loop`:r)===`loop`&&!this.props.fade&&!c&&u===1&&d===0&&!this.props.center&&!f;p&&m?this.scroller.loop(i,o[t],s,n===1):this.scroller.navigate(i,s.offsetLeft,!p&&!c)}),i(this,`renderSlide`,(e,t)=>{let n=this.store.activeIndex===t;return/*#__PURE__*/ D(e)&&typeof e.type!=`string`?/*#__PURE__*/ C(e,{active:n,"aria-hidden":!n}):/*#__PURE__*/ u(zt,{active:n,"aria-hidden":!n,children:e},t)}),i(this,`renderControls`,()=>{let{controls:e=!0,ends:t=`loop`}=this.props;if(!e)return null;let n=this.store.activeIndex===0,r=this.store.activeIndex===this.getSlides().length-1,i=this.props.controlsPlacement===`overlay`?`carousel-control-prev`:`btn btn-subtle theme-secondary`;return/*#__PURE__*/ d(l,{children:[/*#__PURE__*/ d(`button`,{type:`button`,className:i,"data-carousel-action":`previous`,"aria-label":`Previous`,disabled:t===`stop`&&n,children:[/*#__PURE__*/ u(H,{name:`chevron-left`,"aria-hidden":`true`}),/*#__PURE__*/ u(`span`,{className:`visually-hidden`,children:`Previous`})]}),/*#__PURE__*/ d(`button`,{type:`button`,className:this.props.controlsPlacement===`overlay`?`carousel-control-next`:`btn btn-subtle theme-secondary`,"data-carousel-action":`next`,"aria-label":`Next`,disabled:t===`stop`&&r,children:[/*#__PURE__*/ u(H,{name:`chevron-right`,"aria-hidden":`true`}),/*#__PURE__*/ u(`span`,{className:`visually-hidden`,children:`Next`})]})]})}),i(this,`renderIndicators`,()=>this.props.indicators&&this.getSlides().length>1?/*#__PURE__*/ u(`div`,{className:`carousel-indicators`,children:this.getSlides().map((e,t)=>/*#__PURE__*/ u(`button`,{type:`button`,"data-carousel-action":`slide`,"data-index":t,"aria-label":`Slide ${t+1}`,"aria-current":this.store.activeIndex===t?`true`:void 0,className:f({active:this.store.activeIndex===t})},t))}):null),i(this,`renderPlayPause`,()=>(this.props.playPause||this.props.autoplay)&&/*#__PURE__*/ u(`button`,{type:`button`,className:`btn-icon btn-sm carousel-control-play-pause`,"data-carousel-action":`toggle`,"aria-label":this.store.playing?`Pause`:`Play`,children:/*#__PURE__*/ u(H,{name:this.store.playing?`pause-fill`:`play-fill`,"aria-hidden":`true`})}))}},{c:[Bt,Lt]}=e(Ft,[],[g],Rt),Ft),It=class extends a{constructor(){super(Bt),i(this,`displayName`,`Carousel`),Lt()}},i(It,Pt,void 0),It);let Vt,Ht;var Ut,Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,nn,rn,an;const on=`idea-react:collapse-toggle`,sn=`idea-react:collapse-change`,cn=`idea-react:collapse-open`;let ln;new(Vt=(Ut=/*#__PURE__*/ new WeakMap,Wt=class extends (Zt=b){get componentProps(){return this.props}get expanded(){return t(this,Ut)}set expanded(e){r(this,Ut,e)}get isOpen(){var e;return(e=this.componentProps.open)==null?this.expanded:e}componentDidMount(){this.root.current.addEventListener(on,this.handleToggle),document.addEventListener(cn,this.handlePeerOpen),this.notify(),this.isOpen&&this.notifyOpen()}componentDidUpdate(e){e.open!==this.componentProps.open&&this.isOpen&&this.notifyOpen(),this.notify()}componentWillUnmount(){this.root.current.removeEventListener(on,this.handleToggle),document.removeEventListener(cn,this.handlePeerOpen)}render(){var e;let t=(e=this.componentProps.as)==null?`div`:e,n=this.componentProps,{as:r,open:i,defaultOpen:a,parent:l,onOpenChange:d,horizontal:p,className:m}=n,h=c(n,[`as`,`open`,`defaultOpen`,`parent`,`onOpenChange`,`horizontal`,`className`]);return/*#__PURE__*/ u(t,s(o({},h),{ref:this.root,className:f(`collapse`,{"collapse-horizontal":p,show:this.isOpen},m)}))}constructor(...e){var t;super(...e),n(this,Ut,{writable:!0,value:($t(this),Qt(this,(t=this.componentProps.defaultOpen)!=null&&t))}),i(this,`root`,/*#__PURE__*/ T()),i(this,`notify`,()=>this.root.current.dispatchEvent(new Event(sn,{bubbles:!0}))),i(this,`notifyOpen`,()=>this.root.current.dispatchEvent(new Event(cn,{bubbles:!0}))),i(this,`setOpen`,p(e=>{var t,n;e!==this.isOpen&&((t=(n=this.componentProps).onOpenChange)==null||t.call(n,e),this.componentProps.open===void 0&&(this.expanded=e,e&&this.notifyOpen()))})),i(this,`handleToggle`,e=>{e.target===this.root.current&&this.setOpen(!this.isOpen)}),i(this,`handlePeerOpen`,({target:e})=>{let{parent:t}=this.componentProps,n=this.root.current,r=t?n==null?void 0:n.closest(t):null;t&&r&&e instanceof Element&&e!==n&&e.closest(t)===r&&this.setOpen(!1)})}},{e:[Qt,$t],c:[ln,Xt]}=e(Wt,[[h,1,`expanded`]],[g],Zt),Wt),Gt=class extends a{constructor(){super(ln),i(this,`displayName`,`Collapse`),Xt()}},i(Gt,Vt,void 0),Gt);let un;new(Ht=(Kt=/*#__PURE__*/ new WeakMap,qt=/*#__PURE__*/ new WeakMap,Jt=class extends (tn=b){get componentProps(){return this.props}get expanded(){return t(this,Kt)}set expanded(e){r(this,Kt,e)}get controls(){return t(this,qt)}set controls(e){r(this,qt,e)}get targets(){return[...document.querySelectorAll(this.componentProps.target)]}componentDidMount(){document.addEventListener(sn,this.refresh),this.refresh()}componentDidUpdate(e){e.target!==this.componentProps.target&&this.refresh()}componentWillUnmount(){document.removeEventListener(sn,this.refresh)}render(){var e;let t=this.componentProps,{as:n,target:r,href:i,type:a=`button`,variant:l,theme:d,size:p,disabled:m,icon:h,styled:g,className:_}=t,v=c(t,[`as`,`target`,`href`,`type`,`variant`,`theme`,`size`,`disabled`,`icon`,`styled`,`className`]),y=n==null?i?`a`:`button`:n,b=y===`button`,x=f(l===!1?void 0:l?`btn-${l}`:h?void 0:`btn`,d&&`theme-${d}`,p&&`btn-${p}`,{"btn-icon":h,"btn-styled":g,disabled:m},_);return/*#__PURE__*/ u(y,s(o({},v),{type:b?a:void 0,href:m?void 0:i,disabled:b||typeof y!=`string`?m:void 0,"aria-disabled":!b&&m||void 0,tabIndex:!b&&m?-1:v.tabIndex,className:x,role:(e=v.role)==null?`button`:e,"aria-controls":this.controls||void 0,"aria-expanded":this.expanded,onClick:this.handleClick}))}constructor(...e){super(...e),n(this,Kt,{writable:!0,value:(an(this),nn(this,!1))}),n(this,qt,{writable:!0,value:rn(this,``)}),i(this,`refresh`,p(()=>{let{targets:e}=this;this.expanded=e.some(e=>e.classList.contains(`show`)),this.controls=e.map(({id:e})=>e).filter(Boolean).join(` `)})),i(this,`handleClick`,e=>{var t,n;if((t=(n=this.componentProps).onClick)==null||t.call(n,e),!e.defaultPrevented&&(e.preventDefault(),!this.componentProps.disabled))for(let e of this.targets)e.dispatchEvent(new Event(on))})}},{e:[nn,rn,an],c:[un,en]}=e(Jt,[[h,1,`expanded`],[h,1,`controls`]],[g],tn),Jt),Yt=class extends a{constructor(){super(un),i(this,`displayName`,`CollapseToggle`),en()}},i(Yt,Ht,void 0),Yt);const dn=[`primary`,`secondary`,`success`,`danger`,`warning`,`info`,`dark`,`light`];function fn(e,t=[]){let n=t[0]?dn.filter(e=>!t.find(t=>t===e)):dn;return n[[...e].reduce((e,t)=>e+t.charCodeAt(0),0)%n.length]}var pn={hiddenBackdrop:`Ocw1GG_hiddenBackdrop`};const mn=e=>(parseFloat(e)||0)*(e.trim().endsWith(`ms`)?1:1e3),hn=B(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`dialog-header`,n)}))});hn.displayName=`DialogHeader`;const gn=B(e=>{let{as:t=`h1`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`dialog-title`,n)}))});gn.displayName=`DialogTitle`;const _n=B(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`dialog-body`,n)}))});_n.displayName=`DialogBody`;const vn=B(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`dialog-footer`,n)}))});vn.displayName=`DialogFooter`;var yn=class e extends b{get componentProps(){return this.props}get open(){var e,t;return(e=(t=this.element.current)==null?void 0:t.open)!=null&&e}componentDidMount(){this.componentProps.open&&this.show()}componentDidUpdate({open:e,modal:t,scroll:n}){let r=this.componentProps.modal!==t,i=this.componentProps.open!==e,a=this.open;(i||r||this.componentProps.scroll!==n)&&(this.open&&this.componentProps.modal!==t&&(this.switchingMode=!0,this.close()),this.componentProps.scroll?this.unlockScroll():this.open&&this.componentProps.modal!==!1&&this.lockScroll(),(i||r)&&(this.componentProps.open||!i&&r&&a?this.show():this.close()))}componentWillUnmount(){this.finishClose()}render(){var e;let t=(e=this.componentProps.as)==null?`dialog`:e,n=this.componentProps,{as:r,open:i,modal:a,keyboard:l,backdrop:d=!0,theme:p,dialog:m=!0,size:h,fullscreen:g,scrollable:_,animation:v=`fade`,scroll:y,className:b,onCancel:x,onClick:S,onKeyDown:C,onClose:w}=n,T=c(n,[`as`,`open`,`modal`,`keyboard`,`backdrop`,`theme`,`dialog`,`size`,`fullscreen`,`scrollable`,`animation`,`scroll`,`className`,`onCancel`,`onClick`,`onKeyDown`,`onClose`]);return/*#__PURE__*/ u(t,s(o({},T),{ref:this.element,className:f(m&&`dialog`,m&&h&&`dialog-${h}`,m&&g&&(g===!0?`dialog-fullscreen`:`${g}-down:dialog-fullscreen`),m&&_&&`dialog-scrollable`,m&&v!==`fade`&&`dialog-${v}`,d===!1&&pn.hiddenBackdrop,b),"data-backdrop":d===!1?`false`:void 0,"data-bs-theme":p,onCancel:this.handleCancel,onKeyDown:this.handleKeyDown,onClick:this.handleClick,onClose:this.handleClose}))}constructor(...t){super(...t),i(this,`element`,/*#__PURE__*/ T()),i(this,`returnFocus`,void 0),i(this,`switchingMode`,!1),i(this,`closeTimer`,void 0),i(this,`show`,()=>{var e;if(clearTimeout(this.closeTimer),(e=this.element.current)==null||e.classList.remove(`hiding`),this.open)return;let t=this.element.current;t&&(!this.switchingMode&&document.activeElement instanceof HTMLElement&&(this.returnFocus=document.activeElement),this.componentProps.modal===!1?t.show():t.showModal(),this.componentProps.modal!==!1&&!this.componentProps.scroll&&this.lockScroll())}),i(this,`lockScroll`,()=>{let{scrollLocks:t}=e;t.size||(e.bodyOverflow=document.body.style.overflow,document.body.style.overflow=`hidden`),t.add(this)}),i(this,`unlockScroll`,()=>{let{scrollLocks:t}=e;t.delete(this)&&(t.size||(document.body.style.overflow=e.bodyOverflow))}),i(this,`close`,()=>{let e=this.element.current;if(!this.open||!e||this.switchingMode)return this.finishClose();let{transitionDuration:t,transitionDelay:n}=getComputedStyle(e),r=t.split(`,`).map(mn),i=n.split(`,`).map(mn),a=Math.max(0,...r.map((e,t)=>e+i[t%i.length]));if(!a)return this.finishClose();e.classList.contains(`hiding`)||(e.classList.add(`hiding`),this.closeTimer=setTimeout(this.finishClose,a))}),i(this,`finishClose`,()=>{var e,t,n;clearTimeout(this.closeTimer),(e=this.element.current)==null||e.classList.remove(`hiding`),this.unlockScroll(),this.open&&((t=this.element.current)==null||t.close(),(n=this.returnFocus)==null||n.focus())}),i(this,`handleClose`,e=>{var t,n;if(this.switchingMode||(t=(n=this.componentProps).onClose)==null||t.call(n,e),!this.open){var r;this.unlockScroll(),(r=this.returnFocus)==null||r.focus()}this.switchingMode=!1}),i(this,`handleCancel`,e=>{let{onCancel:t,keyboard:n=!0}=this.componentProps;t==null||t(e);let{defaultPrevented:r}=e;e.preventDefault(),n&&!r&&this.close()}),i(this,`handleKeyDown`,e=>{let{onKeyDown:t,keyboard:n=!0}=this.componentProps;t==null||t(e);let{key:r,defaultPrevented:i}=e;r===`Escape`&&n&&!i&&(e.preventDefault(),this.close())}),i(this,`handleClick`,e=>{let{onClick:t,backdrop:n=!0}=this.componentProps;t==null||t(e);let{defaultPrevented:r,target:i,currentTarget:a,clientX:o,clientY:s}=e;if(n!==!0||r||i!==a)return;let{left:c,right:l,top:u,bottom:d}=a.getBoundingClientRect();(o<c||o>l||s<u||s>d)&&this.close()})}};i(yn,`scrollLocks`,/* @__PURE__ */ new Set),i(yn,`bodyOverflow`,``);let bn;var xn,Sn,Cn,wn,Tn,En,Dn,On;const kn=B(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`drawer-header`,n)}))});kn.displayName=`DrawerHeader`;const An=B(e=>{let{as:t=`h5`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`drawer-title`,n)}))});An.displayName=`DrawerTitle`;const jn=B(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`drawer-body`,n)}))});jn.displayName=`DrawerBody`;const Mn=B(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`drawer-footer`,n)}))});Mn.displayName=`DrawerFooter`;const Nn={sm:576,md:768,lg:1024,xl:1280,"2xl":1536};let Pn;new(bn=(xn=/*#__PURE__*/ new WeakMap,Sn=class extends (Tn=b){get componentProps(){return this.props}get expanded(){return t(this,xn)}set expanded(e){r(this,xn,e)}componentDidMount(){this.observeBreakpoint()}componentDidUpdate({responsive:e,open:t}){e!==this.componentProps.responsive&&this.observeBreakpoint(),t!==this.componentProps.open&&this.componentProps.open&&(this.dismissed=!1)}componentWillUnmount(){var e;(e=this.media)==null||e.removeEventListener(`change`,this.handleBreakpoint)}render(){let e=this.componentProps,{as:t,title:n,placement:r=`end`,footer:i,bodyClassName:a,onDismiss:l,sheet:p,translucent:m,responsive:h,animation:g=`slide`,fullscreen:_,open:v,modal:y,scroll:b,backdrop:x,className:S,children:C}=e,w=c(e,[`as`,`title`,`placement`,`footer`,`bodyClassName`,`onDismiss`,`sheet`,`translucent`,`responsive`,`animation`,`fullscreen`,`open`,`modal`,`scroll`,`backdrop`,`className`,`children`]);return/*#__PURE__*/ d(yn,s(o({as:this.componentProps.as},w),{ref:this.dialog,open:this.expanded||v,modal:this.expanded?!1:y==null?!(b&&x===!1):y,scroll:b,backdrop:x,dialog:!1,tabIndex:-1,"aria-label":typeof n==`string`?n:w[`aria-label`],className:f(h?`${h}:drawer`:`drawer`,`drawer-${r}`,{"drawer-sheet":p,"drawer-translucent":m,"drawer-instant":g===`instant`,"drawer-fullscreen":_===!0},S),onClose:this.handleClose,children:[/*#__PURE__*/ d(kn,{children:[/*#__PURE__*/ u(An,{children:n}),/*#__PURE__*/ u(U,{onClick:this.handleDismiss})]}),/*#__PURE__*/ u(jn,{className:a,children:C}),i&&/*#__PURE__*/ u(Mn,{children:i})]}))}constructor(...e){super(...e),n(this,xn,{writable:!0,value:(On(this),En(this,!1))}),i(this,`dialog`,/*#__PURE__*/ T()),i(this,`media`,void 0),i(this,`dismissed`,!1),i(this,`observeBreakpoint`,()=>{var e,t;(e=this.media)==null||e.removeEventListener(`change`,this.handleBreakpoint);let{responsive:n}=this.componentProps;this.media=n?window.matchMedia(`(min-width: ${Nn[n]}px)`):void 0,this.handleBreakpoint(),(t=this.media)==null||t.addEventListener(`change`,this.handleBreakpoint)}),i(this,`handleBreakpoint`,Dn(this,()=>{var e,t;return this.expanded=(e=(t=this.media)==null?void 0:t.matches)!=null&&e})),i(this,`handleDismiss`,()=>{var e,t,n;(e=(t=this.componentProps).onDismiss)==null||e.call(t),this.dismissed=!0,(n=this.dialog.current)==null||n.close()}),i(this,`handleClose`,()=>{var e,t;this.dismissed||this.expanded||(e=(t=this.componentProps).onDismiss)==null||e.call(t),this.dismissed=!1})}},{e:[En,Dn,On],c:[Pn,wn]}=e(Sn,[[h,1,`expanded`],[p,0,`handleBreakpoint`]],[g],Tn),Sn),Cn=class extends a{constructor(){super(Pn),i(this,`displayName`,`Drawer`),wn()}},i(Cn,bn,void 0),Cn);var Fn=class extends S{get componentProps(){return this.props}componentDidMount(){window.addEventListener(`click`,this.switchClick,!0)}componentWillUnmount(){window.removeEventListener(`click`,this.switchClick,!0)}render(){var e;let t=(e=this.componentProps.as)==null?`div`:e,n=this.componentProps,{as:r,children:i,onInnerClick:a,onOuterClick:l}=n,d=c(n,[`as`,`children`,`onInnerClick`,`onOuterClick`]);return/*#__PURE__*/ u(t,s(o({ref:this.root},d),{children:i}))}constructor(...e){super(...e),i(this,`root`,/*#__PURE__*/ T()),i(this,`switchClick`,e=>{var t;let{onInnerClick:n,onOuterClick:r}=this.componentProps;(t=this.root.current)!=null&&t.contains(e.target)?n==null||n(e):r==null||r(e)})}};
1
+ import{_ as e}from"@swc/helpers/_/_apply_decs_2203_r";import{_ as t}from"@swc/helpers/_/_class_private_field_get";import{_ as n}from"@swc/helpers/_/_class_private_field_init";import{_ as r}from"@swc/helpers/_/_class_private_field_set";import{_ as i}from"@swc/helpers/_/_define_property";import{_ as a}from"@swc/helpers/_/_identity";import{_ as o}from"@swc/helpers/_/_object_spread";import{_ as s}from"@swc/helpers/_/_object_spread_props";import{_ as c}from"@swc/helpers/_/_object_without_properties";import{Fragment as l,jsx as u,jsxs as d}from"react/jsx-runtime";import f from"classnames";import{action as p,computed as m,observable as h}from"mobx";import{observer as g}from"mobx-react";import*as _ from"react";import v,{Children as y,Component as b,Fragment as x,PureComponent as S,cloneElement as C,createElement as w,createRef as T,forwardRef as E,isValidElement as D}from"react";import O from"@shikijs/langs/css";import k from"@shikijs/langs/html";import A from"@shikijs/langs/javascript";import j from"@shikijs/langs/json";import M from"@shikijs/langs/jsx";import N from"@shikijs/langs/sh";import P from"@shikijs/langs/tsx";import F from"@shikijs/langs/typescript";import I from"@shikijs/themes/github-dark";import ee from"@shikijs/themes/github-light";import{createHighlighterCoreSync as te}from"shiki/core";import{createJavaScriptRegexEngine as ne}from"shiki/engine/javascript";import{ObservedComponent as re,reaction as ie}from"mobx-react-helper";import{Day as ae,Second as oe,Timestamp as se,blobOf as ce,changeMonth as le,diffTime as ue,formatDate as L,scrollTo as de,sleep as fe,splitArray as pe,uniqueID as me}from"web-utility";import{Defer as he}from"iterable-observer";import{_ as R}from"@swc/helpers/_/_async_to_generator";import{createReactEditorJS as ge}from"react-editor-js";import _e from"editorjs-html";import{LiveEditor as ve,LiveError as ye,LivePreview as be,LiveProvider as xe}from"react-live";import{createPortal as Se}from"react-dom";import Ce from"html2canvas";import{renderToStaticMarkup as we}from"react-dom/server";var Te=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports);const z=e=>e,Ee=e=>typeof e.href==`string`,De=e=>e.preventDefault(),B=z(e=>{let{as:t,variant:n,theme:r,size:i,icon:a,styled:l,disabled:d,active:p,className:m}=e,h=c(e,[`as`,`variant`,`theme`,`size`,`icon`,`styled`,`disabled`,`active`,`className`]),g=Ee(h),_=t==null?g?`a`:`button`:t,v=_===`button`,y=!v&&d?typeof _==`string`?void 0:De:h.onClick,b=f(n===!1?void 0:n?`btn-${n}`:a?void 0:`btn`,r&&`theme-${r}`,i&&`btn-${i}`,{"btn-icon":a,"btn-styled":l,disabled:d,active:p},m);return/*#__PURE__*/ u(_,s(o({},h),{className:b,type:v?h.type||`button`:h.type,href:d?void 0:h.href,disabled:v||typeof _!=`string`?d:void 0,"aria-disabled":!v&&d||void 0,"aria-pressed":!g||h.role===`button`?p==null?h[`aria-pressed`]:p:h[`aria-pressed`],tabIndex:!v&&d?-1:h.tabIndex,onClick:y}))});B.displayName=`Button`;const Oe=z(e=>{let{as:t=`input`,variant:n,theme:r,size:i,icon:a,styled:l,active:d,className:p,type:m=`button`}=e,h=c(e,[`as`,`variant`,`theme`,`size`,`icon`,`styled`,`active`,`className`,`type`]);return/*#__PURE__*/ u(t,s(o({},h),{type:m,className:f(n===!1?void 0:n?`btn-${n}`:`btn`,r&&`theme-${r}`,i&&`btn-${i}`,{"btn-icon":a,"btn-styled":l,active:d},p)}))});Oe.displayName=`ButtonInput`;const V=z(e=>{let{as:t=`span`,className:n,style:r,name:i,size:a}=e,s=c(e,[`as`,`className`,`style`,`name`,`size`]);return/*#__PURE__*/ u(t,o({className:f(`bi-${i}`,n),style:o({fontSize:a&&`${a}rem`},r)},s))});V.displayName=`Icon`;let ke;var Ae,je,Me,Ne,Pe,Fe,Ie;const Le=z(e=>{let{as:t=`div`,theme:n,size:r,flush:i,gap:a,className:l}=e,d=c(e,[`as`,`theme`,`size`,`flush`,`gap`,`className`]);return/*#__PURE__*/ u(t,s(o({},d),{className:f(`accordion`,n&&`theme-${n}`,r&&`accordion-${r}`,{"accordion-flush":i,"accordion-gap":a},l)}))});Le.displayName=`Accordion`;const Re=z(e=>{let{as:t=`details`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`accordion-item`,n)}))});Re.displayName=`AccordionItem`;const ze=z(e=>{let{as:t=`summary`,icon:n=`chevron-down`,className:r,children:i}=e,a=c(e,[`as`,`icon`,`className`,`children`]);return/*#__PURE__*/ d(t,s(o({},a),{className:f(`accordion-header`,r),children:[i,n&&/*#__PURE__*/ u(V,{name:n,className:`accordion-icon`,"aria-hidden":`true`})]}))});ze.displayName=`AccordionHeader`;const Be=z(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`accordion-body`,n)}))});Be.displayName=`AccordionBody`;let Ve;new(ke=(Ae=/*#__PURE__*/ new WeakMap,je=class extends (Pe=b){get componentProps(){return this.props}get expanded(){return t(this,Ae)}set expanded(e){r(this,Ae,e)}get items(){var e,t;return[...(e=(t=document.querySelector(this.componentProps.target))==null?void 0:t.querySelectorAll(`:scope > .accordion-item`))==null?[]:e]}componentDidMount(){document.addEventListener(`toggle`,this.refresh,!0),this.refresh()}componentDidUpdate(e){e.target!==this.componentProps.target&&(this.restoreNames(),this.refresh())}componentWillUnmount(){document.removeEventListener(`toggle`,this.refresh,!0),this.restoreNames()}render(){let e=this.componentProps,{target:t}=e,n=c(e,[`target`]);return/*#__PURE__*/ u(B,s(o({as:this.componentProps.as},n),{"aria-expanded":this.expanded,onClick:this.handleClick}))}constructor(...e){super(...e),n(this,Ae,{writable:!0,value:(Ie(this),Fe(this,!1))}),i(this,`names`,/* @__PURE__ */ new Map),i(this,`restoreNames`,()=>{for(let[e,t]of this.names)e.setAttribute(`name`,t);this.names.clear()}),i(this,`refresh`,p(()=>{let{items:e}=this;this.expanded=!!e.length&&e.every(({open:e})=>e)})),i(this,`handleClick`,e=>{var t,n;if((t=(n=this.componentProps).onClick)==null||t.call(n,e),e.defaultPrevented)return;let{items:r,expanded:i}=this;for(let e of r){let t=e.getAttribute(`name`);!i&&t&&(this.names.set(e,t),e.removeAttribute(`name`)),e.open=!i}i&&this.restoreNames(),this.refresh()})}},{e:[Fe,Ie],c:[Ve,Ne]}=e(je,[[h,1,`expanded`]],[g],Pe),je),Me=class extends a{constructor(){super(Ve),i(this,`displayName`,`AccordionToggle`),Ne()}},i(Me,ke,void 0),Me);const H=z(e=>{let{as:t=`button`,dismiss:n,className:r,type:i=`button`,"aria-label":a=`Close`}=e,l=c(e,[`as`,`dismiss`,`className`,`type`,`aria-label`]);return/*#__PURE__*/ u(t,s(o({},l),{type:i,className:f(`btn-close`,r),"data-bs-dismiss":n,"aria-label":a}))});H.displayName=`CloseButton`;let He;var Ue,We,Ge,Ke,qe,Je,Ye,Xe,Ze;let U;new(He=(Ue=/*#__PURE__*/ new WeakMap,We=/*#__PURE__*/ new WeakMap,Ge=class extends (Je=b){get componentProps(){return this.props}get hiding(){return t(this,Ue)}set hiding(e){r(this,Ue,e)}get closed(){return t(this,We)}set closed(e){r(this,We,e)}componentDidUpdate(){if(this.closed&&!this.notified){var e,t;this.notified=!0,(e=(t=this.componentProps).onClosed)==null||e.call(t)}}componentWillUnmount(){clearTimeout(this.timer)}render(){var e,t;let n=(e=this.componentProps.as)==null?`div`:e,r=this.componentProps,{as:i,theme:a,dismissible:l,instant:p,closeLabel:m=`Close`,onClose:h,onClosed:g,className:_,children:v}=r,y=c(r,[`as`,`theme`,`dismissible`,`instant`,`closeLabel`,`onClose`,`onClosed`,`className`,`children`]);return this.closed?null:/*#__PURE__*/ d(n,s(o({},y),{ref:this.root,role:(t=y.role)==null?`alert`:t,className:f(`alert`,a&&`theme-${a}`,{"alert-instant":p,hiding:this.hiding},_),onTransitionEnd:this.handleTransitionEnd,children:[v,l&&/*#__PURE__*/ u(H,{className:`ms-auto`,"aria-label":m,onClick:this.handleClose})]}))}constructor(...e){super(...e),n(this,Ue,{writable:!0,value:(Ze(this),Ye(this,!1))}),n(this,We,{writable:!0,value:Xe(this,!1)}),i(this,`root`,/*#__PURE__*/ T()),i(this,`timer`,void 0),i(this,`notified`,!1),i(this,`finishClose`,p(()=>{this.closed||(clearTimeout(this.timer),this.closed=!0)})),i(this,`close`,p(()=>{var e,t;if(this.hiding||this.closed)return;if((e=(t=this.componentProps).onClose)==null||e.call(t),this.componentProps.instant)return this.finishClose();this.hiding=!0;let n=getComputedStyle(this.root.current),r=n.transitionDuration.split(`,`).map(U.milliseconds),i=n.transitionDelay.split(`,`).map(U.milliseconds),a=Math.max(0,...r.map((e,t)=>e+(i[t%i.length]||0)));this.timer=setTimeout(this.finishClose,a)})),i(this,`handleClose`,e=>{e.defaultPrevented||this.close()}),i(this,`handleTransitionEnd`,e=>{var t,n;(t=(n=this.componentProps).onTransitionEnd)==null||t.call(n,e),e.target===e.currentTarget&&this.hiding&&this.finishClose()})}},{e:[Ye,Xe,Ze],c:[U,qe]}=e(Ge,[[h,1,`hiding`],[h,1,`closed`]],[g],Je),Ge),Ke=class extends a{constructor(){super(U),i(this,`displayName`,`Alert`),i(this,`milliseconds`,e=>(parseFloat(e)||0)*(e.trim().endsWith(`ms`)?1:1e3)),qe()}},i(Ke,He,void 0),Ke);const Qe=z(e=>{let{as:t=`a`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`alert-link`,n)}))});Qe.displayName=`AlertLink`;const $e=z(e=>{let{as:t=`h4`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`alert-heading`,n)}))});$e.displayName=`AlertHeading`;function et(e){return t=>{t&&new IntersectionObserver(([{isIntersecting:t,target:n}],r)=>{if(!t)return;let i=[`animate__animated`,`animate__${e}`];n.classList.add(...i),n.addEventListener(`animationend`,()=>n.classList.remove(...i),{once:!0}),r.disconnect()}).observe(t)}}const tt=z(e=>{let{as:t=`span`,className:n,style:r,size:i,theme:a,subtle:l,src:p,alt:m,status:h,statusLabel:g=h,children:_}=e,v=c(e,[`as`,`className`,`style`,`size`,`theme`,`subtle`,`src`,`alt`,`status`,`statusLabel`,`children`]);return/*#__PURE__*/ d(t,s(o({className:f(`avatar`,typeof i==`string`&&`avatar-${i}`,a&&`theme-${a}`,l&&`avatar-subtle`,n),style:typeof i==`number`?o({"--bs-avatar-size":`${i}rem`},r):r},v),{children:[p?/*#__PURE__*/ u(`img`,{className:`avatar-img`,src:p,alt:m}):_,h&&/*#__PURE__*/ u(`span`,{className:`avatar-status status-${h}`,role:`img`,"aria-label":g})]}))});tt.displayName=`Avatar`;const nt=z(e=>{let{as:t=`img`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`avatar-img`,n)}))});nt.displayName=`AvatarImage`;const rt=z(e=>{let{as:t=`div`,className:n,size:r,children:i}=e,a=c(e,[`as`,`className`,`size`,`children`]);return/*#__PURE__*/ u(t,s(o({className:f(`avatar-stack`,r&&`avatar-stack-${r}`,n)},a),{children:i}))});rt.displayName=`AvatarStack`;const it=e=>typeof e.href==`string`,at=z(e=>{let{as:t,variant:n=`solid`,theme:r,pill:i,className:a}=e,l=c(e,[`as`,`variant`,`theme`,`pill`,`className`]),d=t==null?it(l)?`a`:`span`:t,p=f(`badge`,n!==`solid`&&`badge-${n}`,r&&`theme-${r}`,{"rounded-pill":i},a);return/*#__PURE__*/ u(d,s(o({},l),{className:p}))});at.displayName=`Badge`;const ot=z(e=>{let{as:t=`ol`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`breadcrumb`,n)}))});ot.displayName=`Breadcrumb`;const st=z(e=>{let{as:t=`li`}=e,n=c(e,[`as`]);return/*#__PURE__*/ u(t,s(o({},n),{className:f(`breadcrumb-item`,n.className)}))});st.displayName=`BreadcrumbItem`;const ct=z(e=>{let{as:t=`a`,active:n,className:r,"aria-current":i=n?`page`:void 0}=e,a=c(e,[`as`,`active`,`className`,`aria-current`]);return/*#__PURE__*/ u(t,s(o({},a),{className:f(`breadcrumb-link`,{active:n},r),"aria-current":i}))});ct.displayName=`BreadcrumbLink`;const lt=z(e=>{let{as:t=`li`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`breadcrumb-divider`,n),"aria-hidden":`true`}))});lt.displayName=`BreadcrumbDivider`;const ut=z(e=>{let{as:t=`div`,vertical:n,size:r,divider:i,role:a=`group`,className:l}=e,d=c(e,[`as`,`vertical`,`size`,`divider`,`role`,`className`]);return/*#__PURE__*/ u(t,s(o({role:a},d),{className:f(n?`btn-group-vertical`:`btn-group`,r&&`btn-group-${r}`,i&&`btn-group-divider`,l)}))});ut.displayName=`ButtonGroup`;const dt=z(e=>{let{as:t=`div`,className:n,role:r=`toolbar`}=e,i=c(e,[`as`,`className`,`role`]);return/*#__PURE__*/ u(t,s(o({role:r},i),{className:f(`btn-toolbar`,n)}))});dt.displayName=`ButtonToolbar`;const ft=z(e=>{let{as:t=`div`,row:n,body:r,theme:i,subtle:a,translucent:l,className:d}=e,p=c(e,[`as`,`row`,`body`,`theme`,`subtle`,`translucent`,`className`]);return/*#__PURE__*/ u(t,s(o({},p),{className:f(`card`,{"card-row":n,"card-body":r,"card-subtle":a,"card-translucent":l},i&&`theme-${i}`,d)}))});ft.displayName=`Card`;const pt=z(e=>{let{as:t=`img`,placement:n,className:r}=e,i=c(e,[`as`,`placement`,`className`]);return/*#__PURE__*/ u(t,s(o({},i),{className:f(n?`card-img-${n}`:`card-img`,r)}))});pt.displayName=`CardImage`;const mt=z(e=>{let{as:t=`p`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`card-subtitle`,n)}))});mt.displayName=`CardSubtitle`;const ht=z(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`card-group`,n)}))});ht.displayName=`CardGroup`;const gt=z(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`card-img-overlay`,n)}))});gt.displayName=`CardImageOverlay`;const _t=z(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`card-header`,n)}))});_t.displayName=`CardHeader`;const vt=z(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`card-body`,n)}))});vt.displayName=`CardBody`;const yt=z(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`card-footer`,n)}))});yt.displayName=`CardFooter`;const bt=z(e=>{let{as:t=`h4`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`card-title`,n)}))});bt.displayName=`CardTitle`;const xt=z(e=>{let{as:t=`p`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`card-text`,n)}))});xt.displayName=`CardText`;var St,Ct,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt,Nt=/*#__PURE__*/ new WeakMap,Pt=/*#__PURE__*/ new WeakMap,Ft=/*#__PURE__*/ new WeakMap,It=/*#__PURE__*/ new WeakMap,Lt=class{get activeIndex(){return t(this,Nt)}set activeIndex(e){r(this,Nt,e)}get playing(){return t(this,Pt)}set playing(e){r(this,Pt,e)}get hovering(){return t(this,Ft)}set hovering(e){r(this,Ft,e)}get visible(){return t(this,It)}set visible(e){r(this,It,e)}get cycling(){return this.playing&&!this.hovering&&this.visible}constructor(e,t,a){i(this,`count`,void 0),i(this,`ends`,void 0),i(this,`interval`,void 0),n(this,Nt,{writable:!0,value:void 0}),n(this,Pt,{writable:!0,value:void 0}),i(this,`timer`,void 0),n(this,Ft,{writable:!0,value:void 0}),n(this,It,{writable:!0,value:void 0}),i(this,`onChange`,void 0),i(this,`onNavigate`,void 0),i(this,`setIndex`,void 0),i(this,`next`,void 0),i(this,`previous`,void 0),i(this,`play`,void 0),i(this,`pause`,void 0),i(this,`toggle`,void 0),i(this,`setHovering`,void 0),i(this,`setVisible`,void 0),i(this,`update`,void 0),i(this,`dispose`,void 0),i(this,`schedule`,void 0),i(this,`clearTimer`,void 0),this.count=e,this.ends=t,this.interval=a,r(this,Nt,(Mt(this),St(this,0))),r(this,Pt,Ct(this,!1)),r(this,Ft,wt(this,!1)),r(this,It,Tt(this,!0)),this.setIndex=Et(this,(e,t=!1,n,r=!1)=>{let i=Math.max(0,Math.min(e,this.count-1));if(i!==this.activeIndex){var a,o,s,c;let e=this.activeIndex;this.activeIndex=i,(a=(o=this).onChange)==null||a.call(o,i),r||(s=(c=this).onNavigate)==null||s.call(c,i,e,n)}t?this.pause():this.schedule()}),this.next=Dt(this,(e=!1)=>{this.activeIndex===this.count-1&&this.ends===`stop`?e||this.pause():this.setIndex(this.activeIndex===this.count-1?0:this.activeIndex+1,e,1)}),this.previous=Ot(this,(e=!1)=>{this.activeIndex===0&&this.ends===`stop`?e||this.pause():this.setIndex(this.activeIndex===0?this.count-1:this.activeIndex-1,e,-1)}),this.play=kt(this,()=>{this.playing=!0,this.schedule()}),this.pause=At(this,()=>{this.playing=!1,this.clearTimer()}),this.toggle=jt(this,()=>this.playing?this.pause():this.play()),this.setHovering=p(e=>{this.hovering=e,this.schedule()}),this.setVisible=p(e=>{this.visible=e,this.schedule()}),this.update=(e,t,n)=>{this.count=e,this.ends=t,this.interval=n,this.activeIndex>=e?this.setIndex(Math.max(0,e-1)):this.schedule()},this.dispose=()=>this.clearTimer(),this.schedule=()=>{this.clearTimer(),!this.cycling||this.count<2||(this.timer=setTimeout(this.next,Math.max(0,this.interval(this.activeIndex))))},this.clearTimer=()=>{this.timer&&clearTimeout(this.timer),this.timer=void 0}}};({e:[St,Ct,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt]}=e(Lt,[[h,1,`activeIndex`],[h,1,`playing`],[h,1,`hovering`],[h,1,`visible`],[m,3,`cycling`],[p,0,`setIndex`],[p,0,`next`],[p,0,`previous`],[p,0,`play`],[p,0,`pause`],[p,0,`toggle`]],[]));var Rt=class{get looping(){return!!this.clone||this.frame!==void 0}constructor(){i(this,`frame`,void 0),i(this,`clone`,void 0),i(this,`track`,void 0),i(this,`snap`,``),i(this,`navigate`,(e,t,n)=>{this.dispose(),!n||e.scrollLeft===t?e.scrollTo({left:t,behavior:`instant`}):(this.track=e,this.snap=e.style.scrollSnapType,e.style.scrollSnapType=`none`,this.animate(e,e.scrollLeft,t))}),i(this,`loop`,(e,t,n,r)=>{this.dispose(),this.track=e,this.snap=e.style.scrollSnapType;let i=n.cloneNode(!0);i.removeAttribute(`id`);for(let e of i.querySelectorAll(`[id]`))e.removeAttribute(`id`);i.setAttribute(`aria-hidden`,`true`),i.inert=!0,i.dataset.carouselClone=`true`,i.classList.remove(`active`),this.clone=i,e.style.scrollSnapType=`none`,r?e.append(i):e.prepend(i);let a=t.offsetLeft,o=i.offsetLeft;e.scrollTo({left:a,behavior:`instant`}),this.animate(e,a,o,()=>{this.dispose(),e.scrollTo({left:n.offsetLeft,behavior:`instant`})})}),i(this,`animate`,(e,t,n,r=this.dispose)=>{let i=window.performance.now(),a=o=>{let s=Math.min(1,(o-i)/400),c=1-Math.pow(1-s,3);e.scrollTo({left:t+(n-t)*c,behavior:`instant`}),s<1?this.frame=window.requestAnimationFrame(a):r()};this.frame=window.requestAnimationFrame(a)}),i(this,`dispose`,()=>{var e;this.frame!==void 0&&window.cancelAnimationFrame(this.frame),this.frame=void 0,(e=this.clone)==null||e.remove(),this.clone=void 0,this.track&&(this.track.style.scrollSnapType=this.snap),this.track=void 0})}},zt={paused:`SzYbbW_paused`};let Bt;var Vt,Ht,Ut,Wt;const Gt=z(e=>{let{as:t=`div`,interval:n,active:r,className:i,children:a}=e,l=c(e,[`as`,`interval`,`active`,`className`,`children`]);return/*#__PURE__*/ u(t,s(o({},l),{className:f(`carousel-item`,{active:r},i),"data-bs-interval":n,children:a}))});Gt.displayName=`CarouselSlide`;let Kt;new(Bt=(Vt=class extends (Wt=b){componentDidMount(){var e;this.updateStore(),this.props.autoplay&&this.store.play(),document.addEventListener(`visibilitychange`,this.handleVisibilityChange),(e=this.track.current)==null||e.addEventListener(`scroll`,this.handleScroll,{passive:!0})}componentDidUpdate(){var e;this.updateStore();let t=document.activeElement;if(t instanceof HTMLButtonElement&&t.disabled&&(e=this.root.current)!=null&&e.contains(t)){var n;let e=t.dataset.carouselAction===`next`?`previous`:`next`;(n=this.root.current.querySelector(`[data-carousel-action="${e}"]`))==null||n.focus()}}componentWillUnmount(){var e;this.store.dispose(),this.scroller.dispose(),document.removeEventListener(`visibilitychange`,this.handleVisibilityChange),(e=this.track.current)==null||e.removeEventListener(`scroll`,this.handleScroll)}render(){var e,t,n;let r=(e=this.props.as)==null?`div`:e,i=this.getSlides(),a=this.props,{as:l,auto:p,autoplay:m,center:h,children:g,className:_,controls:v,controlsPlacement:y=`overlay`,controlsClassName:b,controlsStart:x,dark:S,ends:C,fade:w,indicators:T,indicatorPlacement:E,innerClassName:D,interval:O,items:k,itemsGap:A,itemsPeek:j,keyboard:M,onChange:N,onClick:P,pause:F,playPause:I,style:ee}=a,te=c(a,/* @__PURE__ */ `as.auto.autoplay.center.children.className.controls.controlsPlacement.controlsClassName.controlsStart.dark.ends.fade.indicators.indicatorPlacement.innerClassName.interval.items.itemsGap.itemsPeek.keyboard.onChange.onClick.pause.playPause.style`.split(`.`)),ne=y===`overlay`,re=o({},ee,k&&{"--bs-carousel-items":k},A!==void 0&&{"--bs-carousel-items-gap":A},j!==void 0&&{"--bs-carousel-items-peek":j},this.store.playing&&{"--bs-carousel-interval":`${this.getSlideInterval(this.store.activeIndex)}ms`});return/*#__PURE__*/ d(r,s(o(s(o({},te),{ref:this.root,className:f(`carousel`,{"carousel-overlay":ne,"carousel-auto":p,"carousel-fade":w,"carousel-dark":S,"carousel-center":h,"carousel-playing":this.store.playing,[zt.paused]:this.store.playing&&!this.store.cycling},_),style:re,role:`region`,"aria-label":(t=this.props[`aria-label`])==null?`Carousel`:t,"aria-roledescription":`carousel`}),S&&{"data-bs-theme":`dark`}),{onClick:this.handleClick,onKeyDown:this.handleKeyDown,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onFocusCapture:this.handleFocusCapture,onBlurCapture:this.handleBlurCapture,children:[y===`top`&&this.renderControls(),/*#__PURE__*/ u(`div`,{ref:this.track,className:f(`carousel-inner`,D),tabIndex:0,"aria-label":(n=this.props[`aria-label`])==null?`Carousel slides`:n,onScroll:this.handleScroll,children:i.map(this.renderSlide)}),y!==`top`&&this.renderControls()]}))}constructor(...e){super(...e),i(this,`root`,/*#__PURE__*/ T()),i(this,`track`,/*#__PURE__*/ T()),i(this,`store`,new Lt(0,`loop`,()=>5e3)),i(this,`scroller`,new Rt),i(this,`getSlides`,()=>y.toArray(this.props.children)),i(this,`getSlideInterval`,e=>{var t;let n=this.getSlides()[e],r=/*#__PURE__*/ D(n)?n.props.interval:void 0;return(t=r==null?this.props.interval:r)==null?5e3:t}),i(this,`updateStore`,()=>{var e;let t=this.getSlides();this.store.onChange=this.props.onChange,this.store.onNavigate=this.scrollToActive,this.store.update(t.length,(e=this.props.ends)==null?`loop`:e,this.getSlideInterval)}),i(this,`handleVisibilityChange`,()=>this.store.setVisible(!document.hidden)),i(this,`handleMouseEnter`,()=>{this.props.pause!==!1&&this.store.setHovering(!0)}),i(this,`handleMouseLeave`,()=>this.store.setHovering(!1)),i(this,`handleFocusCapture`,()=>{this.props.pause!==!1&&this.store.setHovering(!0)}),i(this,`handleBlurCapture`,({currentTarget:e,relatedTarget:t})=>{t instanceof Node&&e.contains(t)||this.store.setHovering(!1)}),i(this,`handleScroll`,()=>{let e=this.track.current;if(!e||this.scroller.looping)return;let t=[...e.children],n=t.reduce((n,r,i)=>{var a;return Math.abs(r.offsetLeft-e.scrollLeft)<Math.abs(((a=t[n])==null?void 0:a.offsetLeft)-e.scrollLeft)?i:n},0);n!==this.store.activeIndex&&this.store.setIndex(n,!0,void 0,!0)}),i(this,`handleKeyDown`,e=>{var t,n;(t=(n=this.props).onKeyDown)==null||t.call(n,e),e.defaultPrevented||this.scroller.looping||this.props.keyboard===!1||e.altKey||e.ctrlKey||e.metaKey||e.target instanceof HTMLElement&&/^(INPUT|TEXTAREA|SELECT)$/.test(e.target.tagName)||(e.key===`ArrowLeft`?(e.preventDefault(),this.store.previous(!0)):e.key===`ArrowRight`&&(e.preventDefault(),this.store.next(!0)))}),i(this,`handleClick`,e=>{var t,n,r;if((n=(r=this.props).onClick)==null||n.call(r,e),e.defaultPrevented||this.scroller.looping)return;let i=e.target instanceof Element?e.target.closest(`[data-carousel-action]`):null,{carouselAction:a,index:o}=(t=i==null?void 0:i.dataset)==null?{}:t;switch(a){case`previous`:this.store.previous(!0);break;case`next`:this.store.next(!0);break;case`slide`:o!==void 0&&this.store.setIndex(Number(o),!0);break;case`toggle`:this.store.toggle()}}),i(this,`scrollToActive`,(e,t,n)=>{var r;let i=this.track.current,a=this.root.current;if(!i||!a)return;this.scroller.dispose();let o=[...i.children],s=o[e];if(!s)return;let c=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,l=getComputedStyle(a),u=Number.parseFloat(l.getPropertyValue(`--bs-carousel-items`))||1,d=Number.parseFloat(l.getPropertyValue(`--bs-carousel-items-peek`))||0,f=o.some(e=>e.style.width||e.style.flexBasis),p=n===1&&e===0&&t===o.length-1||n===-1&&t===0&&e===o.length-1,m=((r=this.props.ends)==null?`loop`:r)===`loop`&&!this.props.fade&&!c&&u===1&&d===0&&!this.props.center&&!f;p&&m?this.scroller.loop(i,o[t],s,n===1):this.scroller.navigate(i,s.offsetLeft,!p&&!c)}),i(this,`renderSlide`,(e,t)=>{let n=this.store.activeIndex===t;return/*#__PURE__*/ D(e)&&typeof e.type!=`string`?/*#__PURE__*/ C(e,{active:n,"aria-hidden":!n}):/*#__PURE__*/ u(Gt,{active:n,"aria-hidden":!n,children:e},t)}),i(this,`renderControl`,e=>{var t;let{controls:n=!0,ends:r=`loop`}=this.props;if(!n)return null;let i=e===`previous`,a=this.store.activeIndex===(i?0:this.getSlides().length-1),o=((t=this.props.controlsPlacement)==null?`overlay`:t)===`overlay`,s=i?`Previous`:`Next`;return/*#__PURE__*/ d(B,{type:`button`,variant:o?`subtle`:void 0,theme:o?`secondary`:void 0,size:`sm`,"data-carousel-action":e,"aria-label":s,disabled:r===`stop`&&a,icon:!0,children:[/*#__PURE__*/ u(V,{name:i?`chevron-left`:`chevron-right`,size:1,"aria-hidden":`true`}),/*#__PURE__*/ u(`span`,{className:`visually-hidden`,children:s})]})}),i(this,`renderIndicators`,()=>this.props.indicators&&this.getSlides().length>1?/*#__PURE__*/ u(`div`,{className:`carousel-indicators`,children:this.getSlides().map((e,t)=>/*#__PURE__*/ u(`button`,{type:`button`,"data-bs-target":this.props.id?`#${this.props.id}`:``,"data-carousel-action":`slide`,"data-index":t,"aria-label":`Slide ${t+1}`,"aria-current":this.store.activeIndex===t?`true`:void 0,className:f({active:this.store.activeIndex===t})},t))}):null),i(this,`renderPlayPause`,()=>(this.props.playPause||this.props.autoplay)&&/*#__PURE__*/ u(B,{type:`button`,className:f(`carousel-control-play-pause`,{paused:!this.store.playing}),size:`sm`,"data-carousel-action":`toggle`,"aria-label":this.store.playing?`Pause`:`Play`,icon:!0,children:/*#__PURE__*/ u(V,{name:this.store.playing?`pause-fill`:`play-fill`,size:1,"aria-hidden":`true`})})),i(this,`renderControls`,()=>{let{controls:e=!0,controlsPlacement:t=`overlay`,controlsClassName:n=`d-flex justify-content-between align-items-center`,controlsStart:r,indicators:i,indicatorPlacement:a=`start`,autoplay:o,playPause:s}=this.props;if(!e&&!i&&!o&&!s&&!r)return null;let c=a===`between`,f=this.renderControl(`previous`),p=this.renderControl(`next`),m=/*#__PURE__*/ d(l,{children:[this.renderPlayPause(),f,p]});return/*#__PURE__*/ d(`div`,{className:t===`overlay`?`carousel-overlay-controls`:n,children:[r,a===`start`&&this.renderIndicators(),c?f:/*#__PURE__*/ u(`div`,{className:`d-inline-flex gap-1`,children:m}),a!==`start`&&this.renderIndicators(),c&&this.renderPlayPause(),c&&p]})})}},{c:[Kt,Ut]}=e(Vt,[],[g],Wt),Vt),Ht=class extends a{constructor(){super(Kt),i(this,`displayName`,`Carousel`),Ut()}},i(Ht,Bt,void 0),Ht);let qt,Jt;var Yt,Xt,Zt,Qt,W,$t,en,tn,nn,rn,an,on,sn,cn,ln,un;const dn=`idea-react:collapse-toggle`,fn=`idea-react:collapse-change`,pn=`idea-react:collapse-open`;let mn;new(qt=(Yt=/*#__PURE__*/ new WeakMap,Xt=class extends (nn=b){get componentProps(){return this.props}get expanded(){return t(this,Yt)}set expanded(e){r(this,Yt,e)}get isOpen(){var e;return(e=this.componentProps.open)==null?this.expanded:e}componentDidMount(){this.root.current.addEventListener(dn,this.handleToggle),document.addEventListener(pn,this.handlePeerOpen),this.notify(),this.isOpen&&this.notifyOpen()}componentDidUpdate(e){e.open!==this.componentProps.open&&this.isOpen&&this.notifyOpen(),this.notify()}componentWillUnmount(){this.root.current.removeEventListener(dn,this.handleToggle),document.removeEventListener(pn,this.handlePeerOpen)}render(){var e;let t=(e=this.componentProps.as)==null?`div`:e,n=this.componentProps,{as:r,open:i,defaultOpen:a,parent:l,onOpenChange:d,horizontal:p,className:m}=n,h=c(n,[`as`,`open`,`defaultOpen`,`parent`,`onOpenChange`,`horizontal`,`className`]);return/*#__PURE__*/ u(t,s(o({},h),{ref:this.root,className:f(`collapse`,{"collapse-horizontal":p,show:this.isOpen},m)}))}constructor(...e){var t;super(...e),n(this,Yt,{writable:!0,value:(an(this),rn(this,(t=this.componentProps.defaultOpen)!=null&&t))}),i(this,`root`,/*#__PURE__*/ T()),i(this,`notify`,()=>this.root.current.dispatchEvent(new Event(fn,{bubbles:!0}))),i(this,`notifyOpen`,()=>this.root.current.dispatchEvent(new Event(pn,{bubbles:!0}))),i(this,`setOpen`,p(e=>{var t,n;e!==this.isOpen&&((t=(n=this.componentProps).onOpenChange)==null||t.call(n,e),this.componentProps.open===void 0&&(this.expanded=e,e&&this.notifyOpen()))})),i(this,`handleToggle`,e=>{e.target===this.root.current&&this.setOpen(!this.isOpen)}),i(this,`handlePeerOpen`,({target:e})=>{let{parent:t}=this.componentProps,n=this.root.current,r=t?n==null?void 0:n.closest(t):null;t&&r&&e instanceof Element&&e!==n&&e.closest(t)===r&&this.setOpen(!1)})}},{e:[rn,an],c:[mn,tn]}=e(Xt,[[h,1,`expanded`]],[g],nn),Xt),Zt=class extends a{constructor(){super(mn),i(this,`displayName`,`Collapse`),tn()}},i(Zt,qt,void 0),Zt);let hn;new(Jt=(Qt=/*#__PURE__*/ new WeakMap,W=/*#__PURE__*/ new WeakMap,$t=class extends (sn=b){get componentProps(){return this.props}get expanded(){return t(this,Qt)}set expanded(e){r(this,Qt,e)}get controls(){return t(this,W)}set controls(e){r(this,W,e)}get targets(){return[...document.querySelectorAll(this.componentProps.target)]}componentDidMount(){document.addEventListener(fn,this.refresh),this.refresh()}componentDidUpdate(e){e.target!==this.componentProps.target&&this.refresh()}componentWillUnmount(){document.removeEventListener(fn,this.refresh)}render(){var e;let t=this.componentProps,{as:n,target:r,href:i,type:a=`button`,variant:l,theme:d,size:p,disabled:m,icon:h,styled:g,className:_}=t,v=c(t,[`as`,`target`,`href`,`type`,`variant`,`theme`,`size`,`disabled`,`icon`,`styled`,`className`]),y=n==null?i?`a`:`button`:n,b=y===`button`,x=f(l===!1?void 0:l?`btn-${l}`:h?void 0:`btn`,d&&`theme-${d}`,p&&`btn-${p}`,{"btn-icon":h,"btn-styled":g,disabled:m},_);return/*#__PURE__*/ u(y,s(o({},v),{type:b?a:void 0,href:m?void 0:i,disabled:b||typeof y!=`string`?m:void 0,"aria-disabled":!b&&m||void 0,tabIndex:!b&&m?-1:v.tabIndex,className:x,role:(e=v.role)==null?`button`:e,"aria-controls":this.controls||void 0,"aria-expanded":this.expanded,onClick:this.handleClick}))}constructor(...e){super(...e),n(this,Qt,{writable:!0,value:(un(this),cn(this,!1))}),n(this,W,{writable:!0,value:ln(this,``)}),i(this,`refresh`,p(()=>{let{targets:e}=this;this.expanded=e.some(e=>e.classList.contains(`show`)),this.controls=e.map(({id:e})=>e).filter(Boolean).join(` `)})),i(this,`handleClick`,e=>{var t,n;if((t=(n=this.componentProps).onClick)==null||t.call(n,e),!e.defaultPrevented&&(e.preventDefault(),!this.componentProps.disabled))for(let e of this.targets)e.dispatchEvent(new Event(dn))})}},{e:[cn,ln,un],c:[hn,on]}=e($t,[[h,1,`expanded`],[h,1,`controls`]],[g],sn),$t),en=class extends a{constructor(){super(hn),i(this,`displayName`,`CollapseToggle`),on()}},i(en,Jt,void 0),en);const gn=[`primary`,`secondary`,`success`,`danger`,`warning`,`info`,`dark`,`light`];function _n(e,t=[]){let n=t[0]?gn.filter(e=>!t.find(t=>t===e)):gn;return n[[...e].reduce((e,t)=>e+t.charCodeAt(0),0)%n.length]}var vn={hiddenBackdrop:`Ocw1GG_hiddenBackdrop`};const yn=e=>(parseFloat(e)||0)*(e.trim().endsWith(`ms`)?1:1e3),bn=z(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`dialog-header`,n)}))});bn.displayName=`DialogHeader`;const xn=z(e=>{let{as:t=`h1`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`dialog-title`,n)}))});xn.displayName=`DialogTitle`;const Sn=z(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`dialog-body`,n)}))});Sn.displayName=`DialogBody`;const Cn=z(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`dialog-footer`,n)}))});Cn.displayName=`DialogFooter`;var wn=class e extends b{get componentProps(){return this.props}get open(){var e,t;return(e=(t=this.element.current)==null?void 0:t.open)!=null&&e}componentDidMount(){this.componentProps.open&&this.show()}componentDidUpdate({open:e,modal:t,scroll:n}){let r=this.componentProps.modal!==t,i=this.componentProps.open!==e,a=this.open;(i||r||this.componentProps.scroll!==n)&&(this.open&&this.componentProps.modal!==t&&(this.switchingMode=!0,this.close()),this.componentProps.scroll?this.unlockScroll():this.open&&this.componentProps.modal!==!1&&this.lockScroll(),(i||r)&&(this.componentProps.open||!i&&r&&a?this.show():this.close()))}componentWillUnmount(){this.finishClose()}render(){var e;let t=(e=this.componentProps.as)==null?`dialog`:e,n=this.componentProps,{as:r,open:i,modal:a,keyboard:l,backdrop:d=!0,theme:p,dialog:m=!0,size:h,fullscreen:g,scrollable:_,animation:v=`fade`,scroll:y,className:b,onCancel:x,onClick:S,onKeyDown:C,onClose:w}=n,T=c(n,[`as`,`open`,`modal`,`keyboard`,`backdrop`,`theme`,`dialog`,`size`,`fullscreen`,`scrollable`,`animation`,`scroll`,`className`,`onCancel`,`onClick`,`onKeyDown`,`onClose`]);return/*#__PURE__*/ u(t,s(o({},T),{ref:this.element,className:f(m&&`dialog`,m&&h&&`dialog-${h}`,m&&g&&(g===!0?`dialog-fullscreen`:`${g}-down:dialog-fullscreen`),m&&_&&`dialog-scrollable`,m&&v!==`fade`&&`dialog-${v}`,d===!1&&vn.hiddenBackdrop,b),"data-backdrop":d===!1?`false`:void 0,"data-bs-theme":p,onCancel:this.handleCancel,onKeyDown:this.handleKeyDown,onClick:this.handleClick,onClose:this.handleClose}))}constructor(...t){super(...t),i(this,`element`,/*#__PURE__*/ T()),i(this,`returnFocus`,void 0),i(this,`switchingMode`,!1),i(this,`closeTimer`,void 0),i(this,`show`,()=>{var e;if(clearTimeout(this.closeTimer),(e=this.element.current)==null||e.classList.remove(`hiding`),this.open)return;let t=this.element.current;t&&(!this.switchingMode&&document.activeElement instanceof HTMLElement&&(this.returnFocus=document.activeElement),this.componentProps.modal===!1?t.show():t.showModal(),this.componentProps.modal!==!1&&!this.componentProps.scroll&&this.lockScroll())}),i(this,`lockScroll`,()=>{let{scrollLocks:t}=e;t.size||(e.bodyOverflow=document.body.style.overflow,document.body.style.overflow=`hidden`),t.add(this)}),i(this,`unlockScroll`,()=>{let{scrollLocks:t}=e;t.delete(this)&&(t.size||(document.body.style.overflow=e.bodyOverflow))}),i(this,`close`,()=>{let e=this.element.current;if(!this.open||!e||this.switchingMode)return this.finishClose();let{transitionDuration:t,transitionDelay:n}=getComputedStyle(e),r=t.split(`,`).map(yn),i=n.split(`,`).map(yn),a=Math.max(0,...r.map((e,t)=>e+i[t%i.length]));if(!a)return this.finishClose();e.classList.contains(`hiding`)||(e.classList.add(`hiding`),this.closeTimer=setTimeout(this.finishClose,a))}),i(this,`finishClose`,()=>{var e,t,n;clearTimeout(this.closeTimer),(e=this.element.current)==null||e.classList.remove(`hiding`),this.unlockScroll(),this.open&&((t=this.element.current)==null||t.close(),(n=this.returnFocus)==null||n.focus())}),i(this,`handleClose`,e=>{var t,n;if(this.switchingMode||(t=(n=this.componentProps).onClose)==null||t.call(n,e),!this.open){var r;this.unlockScroll(),(r=this.returnFocus)==null||r.focus()}this.switchingMode=!1}),i(this,`handleCancel`,e=>{let{onCancel:t,keyboard:n=!0}=this.componentProps;t==null||t(e);let{defaultPrevented:r}=e;e.preventDefault(),n&&!r&&this.close()}),i(this,`handleKeyDown`,e=>{let{onKeyDown:t,keyboard:n=!0}=this.componentProps;t==null||t(e);let{key:r,defaultPrevented:i}=e;r===`Escape`&&n&&!i&&(e.preventDefault(),this.close())}),i(this,`handleClick`,e=>{let{onClick:t,backdrop:n=!0}=this.componentProps;t==null||t(e);let{defaultPrevented:r,target:i,currentTarget:a,clientX:o,clientY:s}=e;if(n!==!0||r||i!==a)return;let{left:c,right:l,top:u,bottom:d}=a.getBoundingClientRect();(o<c||o>l||s<u||s>d)&&this.close()})}};i(wn,`scrollLocks`,/* @__PURE__ */ new Set),i(wn,`bodyOverflow`,``);let Tn;var En,Dn,On,kn,An,jn,Mn,Nn;const Pn=z(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`drawer-header`,n)}))});Pn.displayName=`DrawerHeader`;const Fn=z(e=>{let{as:t=`h5`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`drawer-title`,n)}))});Fn.displayName=`DrawerTitle`;const In=z(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`drawer-body`,n)}))});In.displayName=`DrawerBody`;const Ln=z(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`drawer-footer`,n)}))});Ln.displayName=`DrawerFooter`;const Rn={sm:576,md:768,lg:1024,xl:1280,"2xl":1536};let zn;new(Tn=(En=/*#__PURE__*/ new WeakMap,Dn=class extends (An=b){get componentProps(){return this.props}get expanded(){return t(this,En)}set expanded(e){r(this,En,e)}componentDidMount(){this.observeBreakpoint()}componentDidUpdate({responsive:e,open:t}){e!==this.componentProps.responsive&&this.observeBreakpoint(),t!==this.componentProps.open&&this.componentProps.open&&(this.dismissed=!1)}componentWillUnmount(){var e;(e=this.media)==null||e.removeEventListener(`change`,this.handleBreakpoint)}render(){let e=this.componentProps,{as:t,title:n,placement:r=`end`,footer:i,bodyClassName:a,onDismiss:l,sheet:p,translucent:m,responsive:h,animation:g=`slide`,fullscreen:_,open:v,modal:y,scroll:b,backdrop:x,className:S,children:C}=e,w=c(e,[`as`,`title`,`placement`,`footer`,`bodyClassName`,`onDismiss`,`sheet`,`translucent`,`responsive`,`animation`,`fullscreen`,`open`,`modal`,`scroll`,`backdrop`,`className`,`children`]);return/*#__PURE__*/ d(wn,s(o({as:this.componentProps.as},w),{ref:this.dialog,open:this.expanded||v,modal:this.expanded?!1:y==null?!(b&&x===!1):y,scroll:b,backdrop:x,dialog:!1,tabIndex:-1,"aria-label":typeof n==`string`?n:w[`aria-label`],className:f(h?`${h}:drawer`:`drawer`,`drawer-${r}`,{"drawer-sheet":p,"drawer-translucent":m,"drawer-instant":g===`instant`,"drawer-fullscreen":_===!0},S),onClose:this.handleClose,children:[/*#__PURE__*/ d(Pn,{children:[/*#__PURE__*/ u(Fn,{children:n}),/*#__PURE__*/ u(H,{onClick:this.handleDismiss})]}),/*#__PURE__*/ u(In,{className:a,children:C}),i&&/*#__PURE__*/ u(Ln,{children:i})]}))}constructor(...e){super(...e),n(this,En,{writable:!0,value:(Nn(this),jn(this,!1))}),i(this,`dialog`,/*#__PURE__*/ T()),i(this,`media`,void 0),i(this,`dismissed`,!1),i(this,`observeBreakpoint`,()=>{var e,t;(e=this.media)==null||e.removeEventListener(`change`,this.handleBreakpoint);let{responsive:n}=this.componentProps;this.media=n?window.matchMedia(`(min-width: ${Rn[n]}px)`):void 0,this.handleBreakpoint(),(t=this.media)==null||t.addEventListener(`change`,this.handleBreakpoint)}),i(this,`handleBreakpoint`,Mn(this,()=>{var e,t;return this.expanded=(e=(t=this.media)==null?void 0:t.matches)!=null&&e})),i(this,`handleDismiss`,()=>{var e,t,n;(e=(t=this.componentProps).onDismiss)==null||e.call(t),this.dismissed=!0,(n=this.dialog.current)==null||n.close()}),i(this,`handleClose`,()=>{var e,t;this.dismissed||this.expanded||(e=(t=this.componentProps).onDismiss)==null||e.call(t),this.dismissed=!1})}},{e:[jn,Mn,Nn],c:[zn,kn]}=e(Dn,[[h,1,`expanded`],[p,0,`handleBreakpoint`]],[g],An),Dn),On=class extends a{constructor(){super(zn),i(this,`displayName`,`Drawer`),kn()}},i(On,Tn,void 0),On);var Bn=class extends S{get componentProps(){return this.props}componentDidMount(){window.addEventListener(`click`,this.switchClick,!0)}componentWillUnmount(){window.removeEventListener(`click`,this.switchClick,!0)}render(){var e;let t=(e=this.componentProps.as)==null?`div`:e,n=this.componentProps,{as:r,children:i,onInnerClick:a,onOuterClick:l}=n,d=c(n,[`as`,`children`,`onInnerClick`,`onOuterClick`]);return/*#__PURE__*/ u(t,s(o({ref:this.root},d),{children:i}))}constructor(...e){super(...e),i(this,`root`,/*#__PURE__*/ T()),i(this,`switchClick`,e=>{var t;let{onInnerClick:n,onOuterClick:r}=this.componentProps;(t=this.root.current)!=null&&t.contains(e.target)?n==null||n(e):r==null||r(e)})}};
2
2
  /*!
3
3
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
4
4
  *
5
5
  * Copyright (c) 2014-2017, Jon Schlinkert.
6
6
  * Released under the MIT License.
7
7
  */
8
- function In(e){return Object.prototype.toString.call(e)===`[object Object]`}function Ln(e){var t,n;return In(e)!==!1&&(t=e.constructor,t===void 0||(n=t.prototype,In(n)!==!1&&n.hasOwnProperty(`isPrototypeOf`)!==!1))}var Rn=/* @__PURE__ */ we(((e,t,n)=>{var r=n&&n.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=n&&n.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.prettyPrint=void 0;var a=[];function o(e){var t=typeof e;return e!==null&&(t===`object`||t===`function`)}function s(e){return Object.prototype.toString.call(e)===`[object RegExp]`}function c(e){return Object.getOwnPropertySymbols(e).filter(function(t){return Object.prototype.propertyIsEnumerable.call(e,t)})}function l(e,t,n){n===void 0&&(n=``);var u=r(r({},{indent:` `,singleQuotes:!0}),t),d=u.inlineCharacterLimit===void 0?{newLine:`
8
+ function Vn(e){return Object.prototype.toString.call(e)===`[object Object]`}function Hn(e){var t,n;return Vn(e)!==!1&&(t=e.constructor,t===void 0||(n=t.prototype,Vn(n)!==!1&&n.hasOwnProperty(`isPrototypeOf`)!==!1))}var Un=/* @__PURE__ */ Te(((e,t,n)=>{var r=n&&n.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=n&&n.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.prettyPrint=void 0;var a=[];function o(e){var t=typeof e;return e!==null&&(t===`object`||t===`function`)}function s(e){return Object.prototype.toString.call(e)===`[object RegExp]`}function c(e){return Object.getOwnPropertySymbols(e).filter(function(t){return Object.prototype.propertyIsEnumerable.call(e,t)})}function l(e,t,n){n===void 0&&(n=``);var u=r(r({},{indent:` `,singleQuotes:!0}),t),d=u.inlineCharacterLimit===void 0?{newLine:`
9
9
  `,newLineOrSpace:`
10
10
  `,pad:n,indent:n+u.indent}:{newLine:`@@__PRETTY_PRINT_NEW_LINE__@@`,newLineOrSpace:`@@__PRETTY_PRINT_NEW_LINE_OR_SPACE__@@`,pad:`@@__PRETTY_PRINT_PAD__@@`,indent:`@@__PRETTY_PRINT_INDENT__@@`},f=function(e){if(u.inlineCharacterLimit===void 0)return e;var t=e.replace(new RegExp(d.newLine,`g`),``).replace(new RegExp(d.newLineOrSpace,`g`),` `).replace(RegExp(d.pad+`|`+d.indent,`g`),``);return t.length<=u.inlineCharacterLimit?t:e.replace(RegExp(d.newLine+`|`+d.newLineOrSpace,`g`),`
11
11
  `).replace(new RegExp(d.pad,`g`),n).replace(new RegExp(d.indent,`g`),n+u.indent)};if(a.indexOf(e)!==-1)return`"[Circular]"`;if(e==null||typeof e==`number`||typeof e==`boolean`||typeof e==`function`||typeof e==`symbol`||s(e))return String(e);if(e instanceof Date)return`new Date('${e.toISOString()}')`;if(Array.isArray(e)){if(e.length===0)return`[]`;a.push(e);var p=`[`+d.newLine+e.map(function(t,r){var i=e.length-1===r?d.newLine:`,`+d.newLineOrSpace,a=l(t,u,n+u.indent);return u.transform&&(a=u.transform(e,r,a)),d.indent+a+i}).join(``)+d.pad+`]`;return a.pop(),f(p)}if(o(e)){var m=i(i([],Object.keys(e),!0),c(e),!0);if(u.filter&&(m=m.filter(function(t){return u.filter&&u.filter(e,t)})),m.length===0)return`{}`;a.push(e);var p=`{`+d.newLine+m.map(function(t,r){var i=m.length-1===r?d.newLine:`,`+d.newLineOrSpace,a=typeof t==`symbol`,o=!a&&/^[a-z$_][a-z$_0-9]*$/i.test(t.toString()),s=a||o?t:l(t,u),c=l(e[t],u,n+u.indent);return u.transform&&(c=u.transform(e,t,c)),d.indent+String(s)+`: `+c+i}).join(``)+d.pad+`}`;return a.pop(),f(p)}return e=String(e).replace(/[\r\n]/g,function(e){return e===`
12
- `?`\\n`:`\\r`}),u.singleQuotes?(e=e.replace(/\\?'/g,`\\'`),`'${e}'`):(e=e.replace(/"/g,`\\"`),`"${e}"`)}e.prettyPrint=l})),zn=/* @__PURE__ */ we((e=>{
12
+ `?`\\n`:`\\r`}),u.singleQuotes?(e=e.replace(/\\?'/g,`\\'`),`'${e}'`):(e=e.replace(/"/g,`\\"`),`"${e}"`)}e.prettyPrint=l})),Wn=/* @__PURE__ */ Te((e=>{
13
13
  /** @license React v16.13.1
14
14
  * react-is.production.min.js
15
15
  *
@@ -18,15 +18,15 @@ function In(e){return Object.prototype.toString.call(e)===`[object Object]`}func
18
18
  * This source code is licensed under the MIT license found in the
19
19
  * LICENSE file in the root directory of this source tree.
20
20
  */
21
- var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.memo`):60115,m=t?Symbol.for(`react.lazy`):60116;function h(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e=e&&e.$$typeof,e){case c:case d:case m:case p:case s:return e;default:return t}}case r:return t}}}e.ForwardRef=d,e.Memo=p,e.isContextConsumer=function(e){return h(e)===c},e.isContextProvider=function(e){return h(e)===s},e.isForwardRef=function(e){return h(e)===d},e.isLazy=function(e){return h(e)===m},e.isMemo=function(e){return h(e)===p},e.isProfiler=function(e){return h(e)===o},e.isStrictMode=function(e){return h(e)===a},e.isSuspense=function(e){return h(e)===f}})),Bn=/* @__PURE__ */ we(((e,t)=>{t.exports=zn()})),Vn=Rn(),G=Bn(),K=(function(e,t){return e===0?``:Array(e*t).fill(` `).join(``)});function Hn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Un(e){if(Array.isArray(e))return Hn(e)}function Wn(e,t,n){return(t=Zn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gn(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Kn(){throw TypeError(`Invalid attempt to spread non-iterable instance.
22
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qn(Object(n),!0).forEach(function(t){Wn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yn(e){return Un(e)||Gn(e)||Qn(e)||Kn()}function Xn(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Zn(e){var t=Xn(e,`string`);return typeof t==`symbol`?t:t+``}function q(e){"@babel/helpers - typeof";return q=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},q(e)}function Qn(e,t){if(e){if(typeof e==`string`)return Hn(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hn(e,t):void 0}}function $n(e,t){if(e===null||q(e)!==`object`||e instanceof Date||e instanceof RegExp)return e;if(/*#__PURE__*/ _.isValidElement(e)){var n=Jn({},e);return delete n._owner,n}return t.add(e),Array.isArray(e)?e.map(function(e){return $n(e,t)}):Object.keys(e).sort().reduce(function(n,r){return n[r]=r===`current`||t.has(e[r])?`[Circular]`:$n(e[r],t),n},{})}function er(e){return $n(e,/* @__PURE__ */ new WeakSet)}var tr=function(e){return{type:`string`,value:e}},nr=function(e){return{type:`number`,value:e}},rr=function(e,t,n,r){return{type:`ReactElement`,displayName:e,props:t,defaultProps:n,childrens:r}},ir=function(e,t){return{type:`ReactFragment`,key:e,childrens:t}},ar=!!x,or=function(e){return!e.name||e.name===`_default`?`No Display Name`:e.name},sr=function(e){switch(!0){case!!e.displayName:return e.displayName;case e.$$typeof===G.Memo:return sr(e.type);case e.$$typeof===G.ForwardRef:return sr(e.render);default:return or(e)}},cr=function(e){switch(!0){case typeof e.type==`string`:return e.type;case typeof e.type==`function`:return e.type.displayName?e.type.displayName:or(e.type);case(0,G.isForwardRef)(e):case(0,G.isMemo)(e):return sr(e.type);case(0,G.isContextConsumer)(e):return`${e.type._context.displayName||`Context`}.Consumer`;case(0,G.isContextProvider)(e):return`${e.type.displayName||`Context`}.Provider`;case(0,G.isLazy)(e):return`Lazy`;case(0,G.isProfiler)(e):return`Profiler`;case(0,G.isStrictMode)(e):return`StrictMode`;case(0,G.isSuspense)(e):return`Suspense`;default:return`UnknownElementType`}},lr=function(e,t){return t!==`children`},ur=function(e){return e!==!0&&e!==!1&&e!==null&&e!==``},dr=function(e,t){var n={};return Object.keys(e).filter(function(n){return t(e[n],n)}).forEach(function(t){return n[t]=e[t]}),n},fr=function(e,t){var n=t.displayName,r=n===void 0?cr:n;if(typeof e==`string`)return tr(e);if(typeof e==`number`)return nr(e);if(!/*#__PURE__*/ v.isValidElement(e))throw Error(`react-element-to-jsx-string: Expected a React.Element, got \`${q(e)}\``);var i=r(e),a=dr(e.props,lr),o=e.key;typeof o==`string`&&o.search(/^\./)&&(a.key=o);var s=dr(e.type.defaultProps||{},lr),c=v.Children.toArray(e.props.children).filter(ur).map(function(e){return fr(e,t)});return ar&&e.type===x?ir(o,c):rr(i,a,s,c)};function pr(){}var mr=function(e){return e.toString().split(`
23
- `).map(function(e){return e.trim()}).join(``)},hr=(function(e,t){var n=t.functionValue,r=n===void 0?mr:n;return!t.showFunctions&&r===mr?r(pr):r(e)}),gr=(function(e,t,n,r){var i=er(e),a=(0,Vn.prettyPrint)(i,{transform:function(e,t,i){var a=e[t];return a&&/*#__PURE__*/ D(a)?Br(fr(a,r),!0,n,r):typeof a==`function`?hr(a,r):i}});return t?a.replace(/\s+/g,` `).replace(/{ /g,`{`).replace(/ }/g,`}`).replace(/\[ /g,`[`).replace(/ ]/g,`]`):a.replace(/\t/g,K(1,r.tabStop)).replace(/\n([^$])/g,`
24
- ${K(n+1,r.tabStop)}$1`)}),_r=function(e){return e.replace(/"/g,`&quot;`)},vr=function(e,t,n,r){if(typeof e==`number`)return`{${String(e)}}`;if(typeof e==`string`)return`"${_r(e)}"`;if(q(e)===`symbol`){var i=e.valueOf().toString().replace(/Symbol\((.*)\)/,`$1`);return i?`{Symbol('${i}')}`:`{Symbol()}`}return typeof e==`function`?`{${hr(e,r)}}`:/*#__PURE__*/ D(e)?`{${Br(fr(e,r),!0,n,r)}}`:e instanceof Date?isNaN(e.valueOf())?`{new Date(NaN)}`:`{new Date("${e.toISOString()}")}`:Ln(e)||Array.isArray(e)?`{${gr(e,t,n,r)}}`:`{${String(e)}}`},yr=(function(e,t,n,r,i,a,o,s){if(!t&&!r)throw Error(`The prop "${e}" has no value and no default: could not be formatted`);var c=t?n:i,l=s.useBooleanShorthandSyntax,u=s.tabStop,d=vr(c,a,o,s),f=` `,p=`
21
+ var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.memo`):60115,m=t?Symbol.for(`react.lazy`):60116;function h(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e=e&&e.$$typeof,e){case c:case d:case m:case p:case s:return e;default:return t}}case r:return t}}}e.ForwardRef=d,e.Memo=p,e.isContextConsumer=function(e){return h(e)===c},e.isContextProvider=function(e){return h(e)===s},e.isForwardRef=function(e){return h(e)===d},e.isLazy=function(e){return h(e)===m},e.isMemo=function(e){return h(e)===p},e.isProfiler=function(e){return h(e)===o},e.isStrictMode=function(e){return h(e)===a},e.isSuspense=function(e){return h(e)===f}})),Gn=/* @__PURE__ */ Te(((e,t)=>{t.exports=Wn()})),Kn=Un(),G=Gn(),K=(function(e,t){return e===0?``:Array(e*t).fill(` `).join(``)});function qn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Jn(e){if(Array.isArray(e))return qn(e)}function Yn(e,t,n){return(t=nr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xn(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Zn(){throw TypeError(`Invalid attempt to spread non-iterable instance.
22
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Qn(Object(n),!0).forEach(function(t){Yn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function er(e){return Jn(e)||Xn(e)||rr(e)||Zn()}function tr(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function nr(e){var t=tr(e,`string`);return typeof t==`symbol`?t:t+``}function q(e){"@babel/helpers - typeof";return q=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},q(e)}function rr(e,t){if(e){if(typeof e==`string`)return qn(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qn(e,t):void 0}}function ir(e,t){if(e===null||q(e)!==`object`||e instanceof Date||e instanceof RegExp)return e;if(/*#__PURE__*/ _.isValidElement(e)){var n=$n({},e);return delete n._owner,n}return t.add(e),Array.isArray(e)?e.map(function(e){return ir(e,t)}):Object.keys(e).sort().reduce(function(n,r){return n[r]=r===`current`||t.has(e[r])?`[Circular]`:ir(e[r],t),n},{})}function ar(e){return ir(e,/* @__PURE__ */ new WeakSet)}var or=function(e){return{type:`string`,value:e}},sr=function(e){return{type:`number`,value:e}},cr=function(e,t,n,r){return{type:`ReactElement`,displayName:e,props:t,defaultProps:n,childrens:r}},lr=function(e,t){return{type:`ReactFragment`,key:e,childrens:t}},ur=!!x,dr=function(e){return!e.name||e.name===`_default`?`No Display Name`:e.name},fr=function(e){switch(!0){case!!e.displayName:return e.displayName;case e.$$typeof===G.Memo:return fr(e.type);case e.$$typeof===G.ForwardRef:return fr(e.render);default:return dr(e)}},pr=function(e){switch(!0){case typeof e.type==`string`:return e.type;case typeof e.type==`function`:return e.type.displayName?e.type.displayName:dr(e.type);case(0,G.isForwardRef)(e):case(0,G.isMemo)(e):return fr(e.type);case(0,G.isContextConsumer)(e):return`${e.type._context.displayName||`Context`}.Consumer`;case(0,G.isContextProvider)(e):return`${e.type.displayName||`Context`}.Provider`;case(0,G.isLazy)(e):return`Lazy`;case(0,G.isProfiler)(e):return`Profiler`;case(0,G.isStrictMode)(e):return`StrictMode`;case(0,G.isSuspense)(e):return`Suspense`;default:return`UnknownElementType`}},mr=function(e,t){return t!==`children`},hr=function(e){return e!==!0&&e!==!1&&e!==null&&e!==``},gr=function(e,t){var n={};return Object.keys(e).filter(function(n){return t(e[n],n)}).forEach(function(t){return n[t]=e[t]}),n},_r=function(e,t){var n=t.displayName,r=n===void 0?pr:n;if(typeof e==`string`)return or(e);if(typeof e==`number`)return sr(e);if(!/*#__PURE__*/ v.isValidElement(e))throw Error(`react-element-to-jsx-string: Expected a React.Element, got \`${q(e)}\``);var i=r(e),a=gr(e.props,mr),o=e.key;typeof o==`string`&&o.search(/^\./)&&(a.key=o);var s=gr(e.type.defaultProps||{},mr),c=v.Children.toArray(e.props.children).filter(hr).map(function(e){return _r(e,t)});return ur&&e.type===x?lr(o,c):cr(i,a,s,c)};function vr(){}var yr=function(e){return e.toString().split(`
23
+ `).map(function(e){return e.trim()}).join(``)},br=(function(e,t){var n=t.functionValue,r=n===void 0?yr:n;return!t.showFunctions&&r===yr?r(vr):r(e)}),xr=(function(e,t,n,r){var i=ar(e),a=(0,Kn.prettyPrint)(i,{transform:function(e,t,i){var a=e[t];return a&&/*#__PURE__*/ D(a)?Gr(_r(a,r),!0,n,r):typeof a==`function`?br(a,r):i}});return t?a.replace(/\s+/g,` `).replace(/{ /g,`{`).replace(/ }/g,`}`).replace(/\[ /g,`[`).replace(/ ]/g,`]`):a.replace(/\t/g,K(1,r.tabStop)).replace(/\n([^$])/g,`
24
+ ${K(n+1,r.tabStop)}$1`)}),Sr=function(e){return e.replace(/"/g,`&quot;`)},Cr=function(e,t,n,r){if(typeof e==`number`)return`{${String(e)}}`;if(typeof e==`string`)return`"${Sr(e)}"`;if(q(e)===`symbol`){var i=e.valueOf().toString().replace(/Symbol\((.*)\)/,`$1`);return i?`{Symbol('${i}')}`:`{Symbol()}`}return typeof e==`function`?`{${br(e,r)}}`:/*#__PURE__*/ D(e)?`{${Gr(_r(e,r),!0,n,r)}}`:e instanceof Date?isNaN(e.valueOf())?`{new Date(NaN)}`:`{new Date("${e.toISOString()}")}`:Hn(e)||Array.isArray(e)?`{${xr(e,t,n,r)}}`:`{${String(e)}}`},wr=(function(e,t,n,r,i,a,o,s){if(!t&&!r)throw Error(`The prop "${e}" has no value and no default: could not be formatted`);var c=t?n:i,l=s.useBooleanShorthandSyntax,u=s.tabStop,d=Cr(c,a,o,s),f=` `,p=`
25
25
  ${K(o+1,u)}`,m=d.includes(`
26
- `);return l&&d===`{true}`?(f+=`${e}`,p+=`${e}`):(f+=`${e}=${d}`,p+=`${e}=${d}`),{attributeFormattedInline:f,attributeFormattedMultiline:p,isMultilineAttribute:m}}),br=(function(e,t){var n=e.slice(0,e.length>0?e.length-1:0),r=e[e.length-1];return r&&(t.type===`string`||t.type===`number`)&&(r.type===`string`||r.type===`number`)?n.push(tr(String(r.value)+String(t.value))):(r&&n.push(r),n.push(t)),n}),xr=function(e){return[`key`,`ref`].includes(e)},Sr=(function(e){return function(t){var n=t.includes(`key`),r=t.includes(`ref`),i=t.filter(function(e){return!xr(e)}),a=Yn(e?i.sort():i);return r&&a.unshift(`ref`),n&&a.unshift(`key`),a}});function Cr(e,t){return Array.isArray(t)?function(e){return t.indexOf(e)===-1}:function(n){return t(e[n],n)}}var wr=function(e,t,n,r,i){var a=i.tabStop;return e.type===`string`?t.split(`
26
+ `);return l&&d===`{true}`?(f+=`${e}`,p+=`${e}`):(f+=`${e}=${d}`,p+=`${e}=${d}`),{attributeFormattedInline:f,attributeFormattedMultiline:p,isMultilineAttribute:m}}),Tr=(function(e,t){var n=e.slice(0,e.length>0?e.length-1:0),r=e[e.length-1];return r&&(t.type===`string`||t.type===`number`)&&(r.type===`string`||r.type===`number`)?n.push(or(String(r.value)+String(t.value))):(r&&n.push(r),n.push(t)),n}),Er=function(e){return[`key`,`ref`].includes(e)},Dr=(function(e){return function(t){var n=t.includes(`key`),r=t.includes(`ref`),i=t.filter(function(e){return!Er(e)}),a=er(e?i.sort():i);return r&&a.unshift(`ref`),n&&a.unshift(`key`),a}});function Or(e,t){return Array.isArray(t)?function(e){return t.indexOf(e)===-1}:function(n){return t(e[n],n)}}var kr=function(e,t,n,r,i){var a=i.tabStop;return e.type===`string`?t.split(`
27
27
  `).map(function(e,t){return t===0?e:`${K(r,a)}${e}`}).join(`
28
- `):t},Tr=function(e,t,n){return function(r){return wr(r,Br(r,e,t,n),e,t,n)}},Er=function(e,t){return function(n){var r=Object.keys(e).includes(n);return!r||r&&e[n]!==t[n]}},Dr=function(e,t,n,r,i){return i?K(n,r).length+t.length>i:e.length>1},Or=function(e,t,n,r,i,a,o){return(Dr(e,t,i,a,o)||n)&&!r},kr=(function(e,t,n,r){var i=e.type,a=e.displayName,o=a===void 0?``:a,s=e.childrens,c=e.props,l=c===void 0?{}:c,u=e.defaultProps,d=u===void 0?{}:u;if(i!==`ReactElement`)throw Error(`The "formatReactElementNode" function could only format node of type "ReactElement". Given: ${i}`);var f=r.filterProps,p=r.maxInlineAttributesLineLength,m=r.showDefaultProps,h=r.sortProps,g=r.tabStop,_=`<${o}`,v=_,y=_,b=!1,x=[],S=Cr(l,f);Object.keys(l).filter(S).filter(Er(d,l)).forEach(function(e){return x.push(e)}),Object.keys(d).filter(S).filter(function(){return m}).filter(function(e){return!x.includes(e)}).forEach(function(e){return x.push(e)});var C=Sr(h)(x);if(C.forEach(function(e){var i=yr(e,Object.keys(l).includes(e),l[e],Object.keys(d).includes(e),d[e],t,n,r),a=i.attributeFormattedInline,o=i.attributeFormattedMultiline;i.isMultilineAttribute&&(b=!0),v+=a,y+=o}),y+=`
29
- ${K(n,g)}`,_=Or(C,v,b,t,n,g,p)?y:v,s&&s.length>0){var w=n+1;_+=`>`,t||(_+=`
30
- `,_+=K(w,g)),_+=s.reduce(br,[]).map(Tr(t,w,r)).join(t?``:`
28
+ `):t},Ar=function(e,t,n){return function(r){return kr(r,Gr(r,e,t,n),e,t,n)}},jr=function(e,t){return function(n){var r=Object.keys(e).includes(n);return!r||r&&e[n]!==t[n]}},Mr=function(e,t,n,r,i){return i?K(n,r).length+t.length>i:e.length>1},Nr=function(e,t,n,r,i,a,o){return(Mr(e,t,i,a,o)||n)&&!r},Pr=(function(e,t,n,r){var i=e.type,a=e.displayName,o=a===void 0?``:a,s=e.childrens,c=e.props,l=c===void 0?{}:c,u=e.defaultProps,d=u===void 0?{}:u;if(i!==`ReactElement`)throw Error(`The "formatReactElementNode" function could only format node of type "ReactElement". Given: ${i}`);var f=r.filterProps,p=r.maxInlineAttributesLineLength,m=r.showDefaultProps,h=r.sortProps,g=r.tabStop,_=`<${o}`,v=_,y=_,b=!1,x=[],S=Or(l,f);Object.keys(l).filter(S).filter(jr(d,l)).forEach(function(e){return x.push(e)}),Object.keys(d).filter(S).filter(function(){return m}).filter(function(e){return!x.includes(e)}).forEach(function(e){return x.push(e)});var C=Dr(h)(x);if(C.forEach(function(e){var i=wr(e,Object.keys(l).includes(e),l[e],Object.keys(d).includes(e),d[e],t,n,r),a=i.attributeFormattedInline,o=i.attributeFormattedMultiline;i.isMultilineAttribute&&(b=!0),v+=a,y+=o}),y+=`
29
+ ${K(n,g)}`,_=Nr(C,v,b,t,n,g,p)?y:v,s&&s.length>0){var w=n+1;_+=`>`,t||(_+=`
30
+ `,_+=K(w,g)),_+=s.reduce(Tr,[]).map(Ar(t,w,r)).join(t?``:`
31
31
  ${K(w,g)}`),t||(_+=`
32
- `,_+=K(w-1,g)),_+=`</${o}>`}else Dr(C,v,n,g,p)||(_+=` `),_+=`/>`;return _}),Ar=``,jr=`React.Fragment`,Mr=function(e,t,n){var r={};return t&&(r={key:t}),{type:`ReactElement`,displayName:e,props:r,defaultProps:{},childrens:n}},Nr=function(e){return!!e.key},Pr=function(e){return e.childrens.length===0},Fr=(function(e,t,n,r){var i=e.type,a=e.key,o=e.childrens;if(i!==`ReactFragment`)throw Error(`The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: ${i}`);return kr(Mr(r.useFragmentShortSyntax?Pr(e)||Nr(e)?jr:Ar:jr,a,o),t,n,r)}),Ir=[`<`,`>`,`{`,`}`],Lr=function(e){return Ir.some(function(t){return e.includes(t)})},Rr=function(e){return Lr(e)?`{\`${e}\`}`:e},zr=function(e){var t=e;return t.endsWith(` `)&&(t=t.replace(/^(.*?)(\s+)$/,`$1{'$2'}`)),t.startsWith(` `)&&(t=t.replace(/^(\s+)(.*)$/,`{'$1'}$2`)),t},Br=(function(e,t,n,r){if(e.type===`number`)return String(e.value);if(e.type===`string`)return e.value?`${zr(Rr(String(e.value)))}`:``;if(e.type===`ReactElement`)return kr(e,t,n,r);if(e.type===`ReactFragment`)return Fr(e,t,n,r);throw TypeError(`Unknow format type "${e.type}"`)}),Vr=(function(e,t){return Br(e,!1,0,t)}),Hr=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.filterProps,r=n===void 0?[]:n,i=t.showDefaultProps,a=i===void 0||i,o=t.showFunctions,s=o!==void 0&&o,c=t.functionValue,l=t.tabStop,u=l===void 0?2:l,d=t.useBooleanShorthandSyntax,f=d===void 0||d,p=t.useFragmentShortSyntax,m=p===void 0||p,h=t.sortProps,g=h===void 0||h,_=t.maxInlineAttributesLineLength,v=t.displayName;if(!e)throw Error(`react-element-to-jsx-string: Expected a ReactElement`);var y={filterProps:r,showDefaultProps:a,showFunctions:s,functionValue:c,tabStop:u,useBooleanShorthandSyntax:f,useFragmentShortSyntax:m,sortProps:g,maxInlineAttributesLineLength:_,displayName:v};return Vr(fr(e,y),y)};const Ur=ee({themes:[L,I],langs:[O,k,A,j,M,N,F,P],engine:te()}),Wr=B(e=>{let{as:t=`pre`,className:n=``,language:r,header:i,children:a}=e,f=c(e,[`as`,`className`,`language`,`header`,`children`]),p=typeof a==`string`?a:Hr(/*#__PURE__*/ D(a)?a:/*#__PURE__*/ u(l,{children:a})),m=Ur.codeToHtml(p,{lang:r,themes:{light:`github-light`,dark:`github-dark`},defaultColor:!1,structure:`inline`,transformers:[{span:({properties:e})=>{e.style=`${e.style};color:light-dark(var(--shiki-light),var(--shiki-dark))`}}]}),h=/*#__PURE__*/ u(t,s(o({className:`m-0 shiki language-${r} ${n}`},f),{children:/*#__PURE__*/ u(`code`,{dangerouslySetInnerHTML:{__html:m},className:`language-${r}`})}));return i?/*#__PURE__*/ d(`figure`,{className:`m-0`,children:[/*#__PURE__*/ u(`figcaption`,{className:`px-3 pb-6 mb-6 bg-body-tertiary border-bottom`,children:i}),h]}):h});Wr.displayName=`CodeBlock`;let Gr;var Kr,qr,Jr,Yr,Xr,Zr=re(e=>e.componentProps.endTime),Qr,$r;let ei;new(Gr=(Kr=/*#__PURE__*/ new WeakMap,qr=class extends (Xr=ne){get componentProps(){return this.observedProps}get rest(){return t(this,Kr)}set rest(e){r(this,Kr,e)}get endTimestamp(){return+new Date(this.componentProps.endTime||Date.now())}get timeSections(){let{units:e}=this.componentProps,{rest:t}=this;return e.reduce((n,{label:r},i)=>{let a=e.slice(i).map(({scale:e})=>e).reduce((e,t)=>e*t,1),o=~~(t/a);return t-=o*a,n.push({value:o,label:r}),n},[])}stop(){this.timer&&(window.clearInterval(this.timer),this.timer=0)}componentDidMount(){super.componentDidMount(),this.initTimer()}initTimer(){this.stop(),this.tick(),this.timer=window.setInterval(this.tick,ae)}componentWillUnmount(){super.componentWillUnmount(),this.stop()}render(){let e=this.componentProps,{as:t,className:n=``,itemClassName:r=`border rounded px-4 py-3 d-flex flex-column justify-content-center align-items-center`,units:i,endTime:a,onEnd:l}=e,f=c(e,[`as`,`className`,`itemClassName`,`units`,`endTime`,`onEnd`]),p=t==null?`ol`:t,{timeSections:m}=this;return/*#__PURE__*/ u(p,s(o({className:`list-unstyled m-0 ${n}`},f),{children:m.map(({value:e,label:t})=>/*#__PURE__*/ d(`li`,{className:r,children:[/*#__PURE__*/ u(`strong`,{children:(e+``).padStart(2,`0`)}),/*#__PURE__*/ u(`span`,{children:t})]},t))}))}constructor(...e){super(...e),n(this,Kr,{writable:!0,value:($r(this),Qr(this,0))}),i(this,`timer`,0),i(this,`tick`,()=>{let{onEnd:e,endTime:t}=this.componentProps,n=this.endTimestamp-Date.now();n>0?this.rest=n:(this.rest=0,this.stop(),e==null||e(t))})}},{e:[Qr,$r],c:[ei,Yr]}=e(qr,[[h,1,`rest`],[m,3,`timeSections`],[Zr,2,`initTimer`]],[g],Xr),qr),Jr=class extends a{constructor(){super(ei),i(this,`displayName`,`Countdown`),Yr()}},i(Jr,Gr,void 0),Jr);var ti,ni,ri,ii=class extends Error{constructor(e=`Dialog closed`){super(e)}},ai=/*#__PURE__*/ new WeakMap,oi=/*#__PURE__*/ new WeakMap,si=class{get input(){return t(this,ai)}set input(e){r(this,ai,e)}get defer(){return t(this,oi)}set defer(e){r(this,oi,e)}open(e){e&&(this.input=e);let t=new me;this.defer=t;let n=p(()=>this.defer===t&&(this.defer=void 0));return t.promise.then(n,n),t.promise}constructor(e){n(this,ai,{writable:!0,value:(ri(this),ti(this,{}))}),n(this,oi,{writable:!0,value:ni(this)}),i(this,`Component`,void 0),this.Component=g(t=>/*#__PURE__*/ u(e,s(o({},t,this.input),{defer:this.defer}))),this.Component.displayName=`DialogComponent`}};({e:[ti,ni,ri]}=e(si,[[h,1,`input`],[h,1,`defer`],[p,2,`open`]],[]));let ci;var li,ui,di,fi,pi,mi,hi;const gi=he();let _i;new(ci=(li=/*#__PURE__*/ new WeakMap,ui=class extends (pi=b){get componentProps(){return this.props}get innerValue(){return t(this,li)}set innerValue(e){r(this,li,e)}render(){var e;let t=(e=this.componentProps.as)==null?`div`:e,n=this.componentProps,{as:r,name:i,required:a,className:l,style:p,tabIndex:m=-1,onBlur:h,children:g}=n,_=c(n,[`as`,`name`,`required`,`className`,`style`,`tabIndex`,`onBlur`,`children`]),{innerValue:v}=this;return/*#__PURE__*/ d(t,s(o({},this.componentProps.as?_:{}),{className:f(`form-control`,l),style:p,tabIndex:m,onBlur:this.handleBlur,children:[/*#__PURE__*/ u(`input`,{hidden:!0,name:i,required:a,value:JSON.stringify(v)}),/*#__PURE__*/ u(gi,s(o({},_),{onInitialize:this.initialize}))]}))}constructor(...e){var t;super(...e),t=this,i(this,`core`,void 0),n(this,li,{writable:!0,value:(hi(this),mi(this,this.componentProps.defaultValue))}),i(this,`setInnerValue`,p(e=>this.innerValue=e)),i(this,`handleBlur`,e=>z(function*(){var n,r;(n=(r=t.componentProps).onBlur)==null||n.call(r,e),t.core&&t.setInnerValue(yield t.core.save())})()),i(this,`initialize`,e=>{var t,n;(t=(n=this.componentProps).onInitialize)==null||t.call(n,e),this.core=e})}},{e:[mi,hi],c:[_i,fi]}=e(ui,[[h,1,`innerValue`]],[g],pi),ui),di=class extends a{constructor(){super(_i),i(this,`displayName`,`Editor`),fi()}},i(di,ci,void 0),di);const vi=ge({link:({data:{link:e}})=>`<a href="${e}">${e}</a>`}),yi=B(e=>{let{as:t=`article`,data:n}=e,r=c(e,[`as`,`data`]);return/*#__PURE__*/ u(t,s(o({},r),{dangerouslySetInnerHTML:{__html:vi.parse(n)}}))});yi.displayName=`EditorHTML`;const bi=B(e=>{let{as:t=`div`,className:n=``,children:r,maxWidth:i=`100%`,duration:a,height:l}=e,d=c(e,[`as`,`className`,`children`,`maxWidth`,`duration`,`height`]);return/*#__PURE__*/ u(t,s(o({className:`overflow-hidden max-w-100 ${n}`},d),{children:/*#__PURE__*/ u(`div`,{className:`d-inline-block align-top text-nowrap ONAURG_scrollWrap`,style:{maxWidth:i,animationDuration:a,height:l,lineHeight:l},children:/*#__PURE__*/ u(`div`,{className:`d-inline-block ONAURG_scrollItem`,style:{animationDuration:a},children:r})})}))}),xi=B(e=>{let{as:t,children:n,className:r=``,style:i,maxWidth:a,duration:l,height:f}=e,p=c(e,[`as`,`children`,`className`,`style`,`maxWidth`,`duration`,`height`]);return f?/*#__PURE__*/ u(t==null?`div`:t,s(o({},p),{className:`overflow-hidden ONAURG_scrollHeightWrap ${r}`,style:o({maxWidth:a,"--scroll-height":f},i),children:/*#__PURE__*/ d(`div`,{className:`d-inline-block overflow-hidden max-w-100 ONAURG_scrollContainer`,children:[/*#__PURE__*/ u(`div`,{className:`d-block overflow-hidden text-wrap text-break ONAURG_unScrollItem`,children:n}),/*#__PURE__*/ u(bi,{duration:l,children:n})]})})):/*#__PURE__*/ u(bi,s(o({as:t},p),{className:r,style:i,maxWidth:a,duration:l,height:f,children:n}))});bi.displayName=`HorizontalMarquee`,xi.displayName=`HorizontalMarqueeBox`;const Si=({scope:e,children:t})=>{let n=typeof t==`string`?t:Hr(/*#__PURE__*/ D(t)?t:/*#__PURE__*/ u(l,{children:t}));return/*#__PURE__*/ d(be,{code:n,scope:e,language:`tsx`,children:[/*#__PURE__*/ u(ye,{className:`mb-3`}),/*#__PURE__*/ u(_e,{}),/*#__PURE__*/ u(ve,{className:`fg-danger small p-2`})]})},J=B(e=>{let{as:t=`span`,animation:n=`border`,size:r,theme:i,className:a,role:l=`status`}=e,d=c(e,[`as`,`animation`,`size`,`theme`,`className`,`role`]);return/*#__PURE__*/ u(t,s(o({},d),{role:l,className:f(`spinner-${n}`,r&&`spinner-${r}`,i&&`theme-${i}`,a)}))});J.displayName=`Spinner`;const Ci=B(e=>{let{as:t,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(H,s(o({as:t},r),{className:f(`spinner-rotate`,n)}))});Ci.displayName=`SpinnerIcon`;const wi=B(e=>{let{as:t=`div`,className:n=``,children:r=`Loading...`,opacity:i=25,style:a}=e,l=c(e,[`as`,`className`,`children`,`opacity`,`style`]);return/*#__PURE__*/ d(t,s(o({className:`fixed-top h-100 w-100 d-flex justify-content-center align-items-center bg-black ${n}`,style:s(o({},a),{opacity:i/100})},l),{children:[/*#__PURE__*/ u(J,{theme:`success`}),/*#__PURE__*/ u(`span`,{className:`ms-3 fg-white`,children:r})]}))});wi.displayName=`Loading`;var Ti,Ei,Di,Oi,ki;const Ai={sm:576,md:768,lg:1024,xl:1280,"2xl":1536},ji={top:`bottom`,bottom:`top`,left:`right`,right:`left`};var Mi=/*#__PURE__*/ new WeakMap,Ni=/*#__PURE__*/ new WeakMap,Pi=/*#__PURE__*/ new WeakMap,Y=class{get placement(){return t(this,Mi)}set placement(e){r(this,Mi,e)}get style(){return t(this,Ni)}set style(e){r(this,Ni,e)}get arrowStyle(){return t(this,Pi)}set arrowStyle(e){r(this,Pi,e)}attach(e,t,n){this.dispose(),this.reference=e,this.element=t,this.options=n,window.addEventListener(`resize`,this.update),document.addEventListener(`scroll`,this.update,!0),this.resize=new window.ResizeObserver(this.update),this.resize.observe(e),this.resize.observe(t),this.update()}constructor(){n(this,Mi,{writable:!0,value:(ki(this),Ti(this,`top`))}),n(this,Ni,{writable:!0,value:Ei(this,{})}),n(this,Pi,{writable:!0,value:Di(this,{})}),i(this,`reference`,void 0),i(this,`element`,void 0),i(this,`resize`,void 0),i(this,`options`,{}),i(this,`dispose`,()=>{var e;window.removeEventListener(`resize`,this.update),document.removeEventListener(`scroll`,this.update,!0),(e=this.resize)==null||e.disconnect(),this.resize=void 0,this.reference=void 0,this.element=void 0}),i(this,`update`,Oi(this,()=>{let{reference:e,element:t,options:n}=this;if(!e||!t)return;let{responsivePlacement:r,offset:i=0,padding:a=8,flip:o=!0}=n,s=Object.keys(Ai).reverse().find(e=>window.innerWidth>=Ai[e]&&(r==null?void 0:r[e])),[c,l]=(s&&(r==null?void 0:r[s])||n.placement||`top`).split(`-`),u=e.getBoundingClientRect(),d=t.getBoundingClientRect(),[f,p]=typeof i==`number`?[0,i]:i,m={top:u.top-a,bottom:window.innerHeight-u.bottom-a,left:u.left-a,right:window.innerWidth-u.right-a},h=(c===`top`||c===`bottom`?d.height:d.width)+p,g=o&&m[c]<h&&m[ji[c]]>m[c]?ji[c]:c,_=u.left+(u.width-d.width)/2,v=u.top+(u.height-d.height)/2;g===`top`||g===`bottom`?(v=g===`top`?u.top-d.height-p:u.bottom+p,l&&(_=l===`start`?u.left:u.right-d.width),_+=f):(_=g===`left`?u.left-d.width-p:u.right+p,l&&(v=l===`start`?u.top:u.bottom-d.height),v+=f),_=Math.max(a,Math.min(_,window.innerWidth-d.width-a)),v=Math.max(a,Math.min(v,window.innerHeight-d.height-a));let y=g===`top`||g===`bottom`?{left:Math.max(8,Math.min(d.width-8,u.left+u.width/2-_))}:{top:Math.max(8,Math.min(d.height-8,u.top+u.height/2-v))};(this.arrowStyle.left!==y.left||this.arrowStyle.top!==y.top)&&(this.arrowStyle=y);let b=t.offsetParent,x=b instanceof HTMLElement&&(b!==document.body||getComputedStyle(b).position!==`static`)?b:void 0,S=x==null?void 0:x.getBoundingClientRect();_+=x?x.scrollLeft-S.left-x.clientLeft:window.scrollX,v+=x?x.scrollTop-S.top-x.clientTop:window.scrollY;let C=l?`${g}-${l}`:g;this.placement!==C&&(this.placement=C);let w=Math.max(0,window.innerWidth-a*2),T=Math.max(0,window.innerHeight-a*2);(this.style.left!==_||this.style.top!==v||this.style.maxWidth!==w||this.style.maxHeight!==T)&&(this.style={position:`absolute`,left:_,top:v,right:`auto`,bottom:`auto`,margin:0,maxWidth:w,maxHeight:T})}))}};({e:[Ti,Ei,Di,Oi,ki]}=e(Y,[[h,1,`placement`],[h,1,`style`],[h,1,`arrowStyle`],[p,0,`update`]],[]));const Fi={top:`top`,right:`end`,bottom:`bottom`,left:`start`},Ii={top:`position-absolute start-50 translate-middle-x`,right:`position-absolute top-50 translate-middle-y`,bottom:`position-absolute start-50 translate-middle-x`,left:`position-absolute top-50 translate-middle-y`},Li=B(e=>{let{as:t=`div`,title:n,placement:r=`top`,show:i=!0,role:a=`tooltip`,className:l,children:p,arrowStyle:m}=e,h=c(e,[`as`,`title`,`placement`,`show`,`role`,`className`,`children`,`arrowStyle`]);return/*#__PURE__*/ d(t,s(o({},h),{className:f(`popover`,{show:i},`bs-popover-${Fi[r]}`,l),role:a,hidden:!i,"data-bs-placement":r,children:[/*#__PURE__*/ u(`div`,{style:m,className:f(`popover-arrow`,Ii[r])}),n!=null&&/*#__PURE__*/ u(`h3`,{className:`popover-header`,children:n}),/*#__PURE__*/ u(`div`,{className:`popover-body`,children:p})]}))});Li.displayName=`Popover`;const Ri=B(e=>{let{as:t=`div`,placement:n=`top`,show:r=!0,role:i=`tooltip`,className:a,children:l,arrowStyle:p}=e,m=c(e,[`as`,`placement`,`show`,`role`,`className`,`children`,`arrowStyle`]);return/*#__PURE__*/ d(t,s(o({},m),{className:f(`tooltip`,{show:r},`bs-tooltip-${Fi[n]}`,a),role:i,hidden:!r,"data-bs-placement":n,children:[/*#__PURE__*/ u(`div`,{style:p,className:f(`tooltip-arrow`,Ii[n])}),/*#__PURE__*/ u(`div`,{className:`tooltip-inner`,children:l})]}))});Ri.displayName=`Tooltip`;let zi;var Bi,Vi,Hi,Ui,Wi,Gi,Ki,qi;let Ji;new(zi=(Bi=/*#__PURE__*/ new WeakMap,Vi=class extends (Wi=b){get componentProps(){return this.props}get open(){return t(this,Bi)}set open(e){r(this,Bi,e)}componentWillUnmount(){document.removeEventListener(`pointerdown`,this.handleOutside),clearTimeout(this.timer),this.position.dispose()}componentDidMount(){document.addEventListener(`pointerdown`,this.handleOutside)}componentDidUpdate(e){let{open:t,root:n,overlay:r,props:i,position:a}=this,{placement:o=`top`,responsivePlacement:s,offset:c=i.detail==null?8:12,padding:l,flip:u,container:d}=i;if(!t)return a.dispose();n.current&&r.current&&(a.element!==r.current||e.placement!==i.placement||e.responsivePlacement!==s||e.offset!==i.offset||e.padding!==l||e.flip!==u||e.container!==d?a.attach(n.current,r.current,{placement:o,responsivePlacement:s,offset:c,padding:l,flip:u}):a.update())}render(){var e;let t=(e=this.componentProps.as)==null?`span`:e,n=this.componentProps,{as:r,title:i,detail:a,placement:l=`top`,responsivePlacement:p,container:m,offset:h,padding:g,flip:_,trigger:v,delay:y,overlayClassName:b,children:x,className:S=``,onMouseEnter:w,onMouseLeave:T,onFocus:E,onBlur:O,onClick:k,onKeyDown:A}=n,j=c(n,[`as`,`title`,`detail`,`placement`,`responsivePlacement`,`container`,`offset`,`padding`,`flip`,`trigger`,`delay`,`overlayClassName`,`children`,`className`,`onMouseEnter`,`onMouseLeave`,`onFocus`,`onBlur`,`onClick`,`onKeyDown`]),M=this.open?this.id:void 0,N=this.position.element?this.position.placement.split(`-`)[0]:l,P=f(`w-max`,b),F=a==null?/*#__PURE__*/ u(Ri,{ref:this.overlay,id:M,style:o({},this.position.style),arrowStyle:o({},this.position.arrowStyle),className:P,placement:N,children:i}):/*#__PURE__*/ u(Li,{ref:this.overlay,id:M,style:o({},this.position.style),arrowStyle:o({},this.position.arrowStyle),className:P,title:i,placement:N,children:a}),I=this.open&&m?typeof m==`string`?document.querySelector(m):typeof m==`function`?m():m:void 0;if(this.open&&m&&!I)throw Error(`Overlay container was not found`);let L=/*#__PURE__*/ D(x)?/*#__PURE__*/ C(x,{"aria-describedby":[x.props[`aria-describedby`],M].filter(Boolean).join(` `)||void 0}):x;return/*#__PURE__*/ d(t,s(o({},j),{ref:this.root,className:`position-relative d-inline-block ${S}`,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur,onClick:this.handleClick,onKeyDown:this.handleKeyDown,children:[L,this.open&&(I?/*#__PURE__*/ xe(F,I):F)]}))}constructor(...e){super(...e),n(this,Bi,{writable:!0,value:(qi(this),Gi(this,!1))}),i(this,`id`,pe()),i(this,`root`,/*#__PURE__*/ T()),i(this,`overlay`,/*#__PURE__*/ T()),i(this,`position`,new Y),i(this,`timer`,void 0),i(this,`setOpen`,Ki(this,e=>this.open=e)),i(this,`hide`,()=>{clearTimeout(this.timer),this.setOpen(!1)}),i(this,`setOpenAfterDelay`,e=>{clearTimeout(this.timer);let{delay:t}=this.componentProps,n=typeof t==`number`?t:t==null?void 0:t[e?`show`:`hide`];if(!n)return this.setOpen(e);this.timer=setTimeout(()=>this.setOpen(e),n)}),i(this,`contains`,e=>{var t,n;return e instanceof Node&&(!!((t=this.root.current)!=null&&t.contains(e))||!!((n=this.overlay.current)!=null&&n.contains(e)))}),i(this,`hasTrigger`,e=>(this.componentProps.trigger?Array.isArray(this.componentProps.trigger)?this.componentProps.trigger:[this.componentProps.trigger]:[`hover`,`focus`]).includes(e)),i(this,`handleMouseEnter`,e=>{var t,n;(t=(n=this.componentProps).onMouseEnter)==null||t.call(n,e),!e.defaultPrevented&&this.hasTrigger(`hover`)&&this.setOpenAfterDelay(!0)}),i(this,`handleMouseLeave`,e=>{var t,n;(t=(n=this.componentProps).onMouseLeave)==null||t.call(n,e),!e.defaultPrevented&&this.hasTrigger(`hover`)&&!this.contains(e.relatedTarget)&&!this.contains(document.activeElement)&&this.setOpenAfterDelay(!1)}),i(this,`handleFocus`,e=>{var t,n;(t=(n=this.componentProps).onFocus)==null||t.call(n,e),!e.defaultPrevented&&this.hasTrigger(`focus`)&&this.setOpenAfterDelay(!0)}),i(this,`handleBlur`,e=>{var t,n;(t=(n=this.componentProps).onBlur)==null||t.call(n,e),!e.defaultPrevented&&this.hasTrigger(`focus`)&&!this.contains(e.relatedTarget)&&this.setOpenAfterDelay(!1)}),i(this,`handleClick`,e=>{var t,n,r;(t=(n=this.componentProps).onClick)==null||t.call(n,e),!e.defaultPrevented&&this.hasTrigger(`click`)&&!(e.target instanceof Node&&(r=this.overlay.current)!=null&&r.contains(e.target))&&this.setOpenAfterDelay(!this.open)}),i(this,`handleOutside`,({target:e})=>{e instanceof Node&&!this.contains(e)&&this.hide()}),i(this,`handleKeyDown`,e=>{var t,n;(t=(n=this.componentProps).onKeyDown)==null||t.call(n,e),!e.defaultPrevented&&e.key===`Escape`&&this.open&&(e.preventDefault(),this.hide())})}},{e:[Gi,Ki,qi],c:[Ji,Ui]}=e(Vi,[[h,1,`open`],[p,0,`setOpen`]],[g],Wi),Vi),Hi=class extends a{constructor(){super(Ji),i(this,`displayName`,`OverlayBox`),Ui()}},i(Hi,zi,void 0),Hi);let Yi;var Xi,Zi,Qi,$i,ea,ta,na;let ra;new(Yi=(Xi=/*#__PURE__*/ new WeakMap,Zi=class extends (ea=ne){get componentProps(){return this.props}get observedComponentProps(){return this.observedProps}get weekFormatter(){var e;let{locale:t=(e=globalThis.navigator)==null?void 0:e.language}=this.observedComponentProps;return new Intl.DateTimeFormat(t,{weekday:`long`})}get currentDate(){return t(this,Xi)}set currentDate(e){r(this,Xi,e)}get dateGrid(){let e=new Date(this.currentDate);e.setDate(1),e=/* @__PURE__ */ new Date(+e-e.getDay()*ie);let t=Array.from(Array(42),(t,n)=>new Date(+e+n*ie));return fe(t,7)}changeMonth(e){var t,n;this.currentDate=ce(this.currentDate,e),(t=(n=this.componentProps).onChange)==null||t.call(n,this.currentDate)}render(){var e;let t=(e=this.componentProps.as)==null?`table`:e,{weekFormatter:n,currentDate:r,dateGrid:i}=this,a=this.observedComponentProps,{as:l,className:f=``,style:p,theme:m=`primary`,onChange:h,onSelect:g}=a,_=c(a,[`as`,`className`,`style`,`theme`,`onChange`,`onSelect`]);return/*#__PURE__*/ d(t,s(o({},_),{className:`table ${f}`,style:o({tableLayout:`fixed`},p),children:[/*#__PURE__*/ u(`caption`,{children:/*#__PURE__*/ d(`div`,{className:`d-flex justify-content-between align-items-center`,children:[/*#__PURE__*/ u(V,{theme:m,onClick:this.changePreviousMonth,children:`<`}),R(r,`YYYY-MM`),/*#__PURE__*/ u(V,{theme:m,onClick:this.changeNextMonth,children:`>`})]})}),/*#__PURE__*/ u(`thead`,{children:/*#__PURE__*/ u(`tr`,{children:i[0].map((e,t,{length:r})=>/*#__PURE__*/ u(`th`,{className:`theme-${m} theme-contrast`,style:{width:`calc(100% / ${r})`},scope:`col`,children:n.format(e)},t))})}),/*#__PURE__*/ u(`tbody`,{children:i.map(e=>/*#__PURE__*/ u(`tr`,{children:e.map(this.renderDate)},e[0]+``))})]}))}constructor(...e){super(...e),n(this,Xi,{writable:!0,value:(na(this),ta(this,/* @__PURE__ */ new Date))}),i(this,`changePreviousMonth`,()=>this.changeMonth(-1)),i(this,`changeNextMonth`,()=>this.changeMonth(1)),i(this,`handleCellClick`,({target:e,currentTarget:t})=>{var n,r,i;if(!(e instanceof Element))return;let a=e.closest(`[data-calendar-index]`);if(!a||!t.contains(a))return;let o=a.dataset.calendarDate,s=Number(a.dataset.calendarIndex),c=(n=this.componentProps.value)==null?void 0:n.filter(({date:e})=>R(e,`YYYY-MM-DD`)===o),l=c==null?void 0:c[s];l&&((r=(i=this.componentProps).onSelect)==null||r.call(i,l))}),i(this,`renderDate`,e=>{let{value:t}=this.observedComponentProps,n=R(e,`YYYY-MM-DD`),r=t==null?void 0:t.filter(({date:e})=>R(e,`YYYY-MM-DD`)===n);return/*#__PURE__*/ d(`td`,{className:f({"opacity-50":e.getMonth()!==this.currentDate.getMonth(),"fw-bold":n===R(/* @__PURE__ */ new Date,`YYYY-MM-DD`)}),onClick:this.handleCellClick,children:[/*#__PURE__*/ u(`time`,{className:`d-block`,dateTime:e.toJSON(),children:e.getDate()}),r==null?void 0:r.map((e,t)=>typeof e.content==`object`?e.content:/*#__PURE__*/ u(Ji,{title:e.content,children:/*#__PURE__*/ u(it,{className:`d-inline-block text-decoration-none w-100 text-truncate`,theme:fn(e.content+``,[`light`]),"data-calendar-date":n,"data-calendar-index":t,href:e.link,children:e.content})},`${n}-${t}`))]},e+``)})}},{e:[ta,na],c:[ra,$i]}=e(Zi,[[m,3,`weekFormatter`],[h,1,`currentDate`],[m,3,`dateGrid`],[p,2,`changeMonth`]],[g],ea),Zi),Qi=class extends a{constructor(){super(ra),i(this,`displayName`,`MonthCalendar`),$i()}},i(Qi,Yi,void 0),Qi);const ia=({avatar:e,name:t})=>/*#__PURE__*/ d(l,{children:[/*#__PURE__*/ u(et,{size:2,style:{marginRight:`0.5rem`},src:e}),/*#__PURE__*/ u(`span`,{className:`align-middle`,children:t})]});ia.displayName=`Nameplate`;const X=B(e=>{let{as:t=`nav`,variant:n,vertical:r,fill:i,justified:a,cardHeader:l,navbar:d,className:p}=e,m=c(e,[`as`,`variant`,`vertical`,`fill`,`justified`,`cardHeader`,`navbar`,`className`]);return/*#__PURE__*/ u(t,s(o({},m),{className:f(`nav`,d&&`navbar-nav`,n&&`nav-${n}`,l&&n===`tabs`&&`card-header-tabs`,r&&(n===`pills`?`nav-pills-vertical`:`flex-column`),{"nav-fill":i,"nav-justified":a},p)}))});X.displayName=`Nav`;const aa=B(e=>{let{as:t=`li`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`nav-item`,n)}))});aa.displayName=`NavItem`;const oa=B(e=>{let{as:t=`a`,disabled:n,active:r,className:i,href:a,onClick:l,tabIndex:d}=e,p=c(e,[`as`,`disabled`,`active`,`className`,`href`,`onClick`,`tabIndex`]);return/*#__PURE__*/ u(t,s(o({},p),{href:n?void 0:a,tabIndex:n?-1:d,"aria-disabled":n||void 0,"aria-current":r?`page`:p[`aria-current`],className:f(`nav-link`,{active:r,disabled:n,"pe-none":n},i),onClick:n?void 0:l}))});oa.displayName=`NavLink`;let sa;var ca,la,ua,da,fa,pa,ma,ha,ga;const _a=Array.from({length:6},(e,t)=>`h${t+1}`).join(`,`);let va;new(sa=(ca=/*#__PURE__*/ new WeakMap,la=/*#__PURE__*/ new WeakMap,ua=class extends (pa=b){get componentProps(){return this.props}get list(){return t(this,ca)}set list(e){r(this,ca,e)}get scrollY(){return t(this,la)}set scrollY(e){r(this,la,e)}get currentActiveId(){var e;let{list:t,scrollY:n}=this,r=t.findIndex(({top:e})=>e>n);return(e=t[r<0?t.length-1:r-1])==null?void 0:e.id}componentDidMount(){globalThis.document&&(window.addEventListener(`scroll`,this.updateScrollY),window.addEventListener(`resize`,this.updateScrollY),this.initList(),this.updateScrollY())}static slugOf(e){let t=e.toLowerCase().replace(/\W+/g,`-`).replace(/^-+|-+$/g,``);return!t||document.getElementById(t)?pe():t}initList(){let{rootSelector:e}=this.componentProps,t=e?document.querySelector(e):document;t&&(this.list=Array.from(t.querySelectorAll(_a),e=>{var t;let n=e.textContent.trim();(t=e).id||(t.id=va.slugOf(n));let{id:r,tagName:i}=e,a=e.getBoundingClientRect().top+window.scrollY;return{id:r,level:+i[1],text:n,top:a}}))}componentWillUnmount(){window.removeEventListener(`scroll`,this.updateScrollY),window.removeEventListener(`resize`,this.updateScrollY)}render(){let{list:e}=this,t=this.componentProps,{depth:n,minDepth:r,rootSelector:i,onItemClick:a}=t,l=c(t,[`depth`,`minDepth`,`rootSelector`,`onItemClick`]);return/*#__PURE__*/ u(X,s(o({as:this.componentProps.as},l),{variant:`underline`,vertical:!0,children:e.map(this.renderLink)}))}constructor(...e){super(...e),n(this,ca,{writable:!0,value:(ga(this),ma(this,[]))}),n(this,la,{writable:!0,value:ha(this,0)}),i(this,`updateScrollY`,p(()=>{this.scrollY=window.scrollY,this.list=this.list.map(e=>{let t=document.getElementById(e.id);return t?s(o({},e),{top:t.getBoundingClientRect().top+this.scrollY}):e})})),i(this,`scrollTo`,e=>()=>{var t,n;setTimeout(()=>ue(`[id="${e.id}"]`)),(t=(n=this.componentProps).onItemClick)==null||t.call(n,e)}),i(this,`renderLink`,({id:e,level:t,text:n,top:r})=>{let{currentActiveId:i}=this,{depth:a=1/0,minDepth:o=1}=this.componentProps;return o<=t&&t<=a&&/*#__PURE__*/ u(oa,{className:f(`justify-content-start text-wrap min-w-0`,i===e&&`active`),style:{paddingInlineStart:`${t-o+.75}rem`},href:`#${e}`,"aria-current":i===e?`location`:void 0,onClick:this.scrollTo({id:e,level:t,text:n,top:r}),children:n},e)})}},{e:[ma,ha,ga],c:[va,fa]}=e(ua,[[h,1,`list`],[h,1,`scrollY`],[m,3,`currentActiveId`],[p,2,`initList`]],[g],pa),ua),da=class extends a{constructor(){super(va),i(this,`displayName`,`PageNav`),fa()}},i(da,sa,void 0),da);var ya,ba,xa,Sa,Ca,wa,Ta;let Ea;var Da=/*#__PURE__*/ new WeakMap,Oa=/*#__PURE__*/ new WeakMap,ka=/*#__PURE__*/ new WeakMap,Aa=class extends (ba=b){get componentProps(){return this.props}get scrollLeft(){return t(this,Da)}set scrollLeft(e){r(this,Da,e)}get scrollWidth(){return t(this,Oa)}set scrollWidth(e){r(this,Oa,e)}get clientWidth(){return t(this,ka)}set clientWidth(e){r(this,ka,e)}get canScrollLeft(){return this.scrollLeft>0}get canScrollRight(){return this.scrollLeft+this.clientWidth<this.scrollWidth}componentDidMount(){let e=this.updateScroll();e&&(e.addEventListener(`scroll`,this.updateScroll),this.resizeObserver=new ResizeObserver(this.updateScroll),this.resizeObserver.observe(e))}componentWillUnmount(){var e,t;(e=this.resizeObserver)==null||e.disconnect(),(t=this.scrollerRef.current)==null||t.removeEventListener(`scroll`,this.updateScroll)}render(){var e;let t=(e=this.componentProps.as)==null?`div`:e,{canScrollLeft:n,canScrollRight:r}=this,i=this.componentProps,{as:a,className:l=``,children:f,rootRef:p}=i,m=c(i,[`as`,`className`,`children`,`rootRef`]);return/*#__PURE__*/ d(t,s(o({},m),{ref:p,className:`position-relative overflow-y-hidden ${l}`,children:[n&&/*#__PURE__*/ u(`button`,{type:`button`,className:`position-absolute top-0 bottom-0 start-0 z-1 border-0 px-2 nZcgHq_scrollButtonLeft`,"aria-label":`Scroll left`,onClick:this.scrollBackward,children:/*#__PURE__*/ u(H,{name:`caret-left-fill`})}),/*#__PURE__*/ u(`div`,{ref:this.scrollerRef,className:`overflow-x-auto nZcgHq_scrollerInner`,children:f}),r&&/*#__PURE__*/ u(`button`,{type:`button`,className:`position-absolute top-0 bottom-0 end-0 z-1 border-0 px-2 nZcgHq_scrollButtonRight`,"aria-label":`Scroll right`,onClick:this.scrollForward,children:/*#__PURE__*/ u(H,{name:`caret-right-fill`})})]}))}constructor(...e){super(...e),i(this,`scrollerRef`,(Ta(this),/*#__PURE__*/ T())),n(this,Da,{writable:!0,value:xa(this,0)}),n(this,Oa,{writable:!0,value:Sa(this,0)}),n(this,ka,{writable:!0,value:Ca(this,0)}),i(this,`updateScroll`,wa(this,()=>{let e=this.scrollerRef.current;return e&&(this.scrollLeft=e.scrollLeft,this.scrollWidth=e.scrollWidth,this.clientWidth=e.clientWidth),e})),i(this,`resizeObserver`,void 0),i(this,`scrollBy`,e=>{let t=this.scrollerRef.current;t==null||t.scrollBy({left:e*t.clientWidth*.8,behavior:`smooth`})}),i(this,`scrollBackward`,()=>this.scrollBy(-1)),i(this,`scrollForward`,()=>this.scrollBy(1))}};({e:[xa,Sa,Ca,wa,Ta],c:[Ea,ya]}=e(Aa,[[h,1,`scrollLeft`],[h,1,`scrollWidth`],[h,1,`clientWidth`],[m,3,`canScrollLeft`],[m,3,`canScrollRight`],[p,0,`updateScroll`]],[g],ba)),ya();const ja=B(e=>{let{as:t,className:n=``,children:r,ref:i,variant:a,vertical:l,fill:d,justified:f,cardHeader:p,navbar:m}=e,h=c(e,[`as`,`className`,`children`,`ref`,`variant`,`vertical`,`fill`,`justified`,`cardHeader`,`navbar`]);return/*#__PURE__*/ u(Ea,s(o({as:t},t?h:{}),{rootRef:t?i:void 0,className:n,children:/*#__PURE__*/ u(X,s(o({},t?{}:h),{ref:t?void 0:i,className:`flex-nowrap`,variant:a,vertical:l,fill:d,justified:f,cardHeader:p,navbar:m,children:r}))}))});ja.displayName=`ScrollNav`;let Ma,Na;var Pa,Fa,Ia,La,Ra,za,Ba,Va,Ha,Ua,Wa,Ga,Ka,qa,Ja,Ya,Xa,Za,Qa;const $a=B(e=>{let{as:t,active:n,selected:r,className:i}=e,a=c(e,[`as`,`active`,`selected`,`className`]);return/*#__PURE__*/ u(V,s(o({as:t},a),{className:f(`menu-item`,{active:n,selected:r},i),"aria-current":n||r&&a.href?`true`:a[`aria-current`],"aria-pressed":a.href||r==null?a[`aria-pressed`]:r}))});$a.displayName=`MenuItem`;const eo=B(e=>{let{as:t=`div`,theme:n,translucent:r,scrollable:i,show:a,className:l}=e,d=c(e,[`as`,`theme`,`translucent`,`scrollable`,`show`,`className`]);return/*#__PURE__*/ u(t,s(o({},d),{"data-bs-theme":n,className:f(`menu`,{show:a},r&&`menu-translucent`,i&&`menu-scrollable`,l)}))});eo.displayName=`MenuPanel`;const to=B(e=>{let{as:t,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(H,s(o({as:t,"aria-hidden":`true`},r),{className:f(`menu-item-icon`,n)}))});to.displayName=`MenuItemIcon`;const no=B(e=>{let{as:t,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(H,s(o({as:t,"aria-hidden":`true`},r),{name:`check`,className:f(`menu-item-check`,n)}))});no.displayName=`MenuItemCheck`;const ro=B(e=>{let{as:t=`span`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`menu-text`,n)}))});ro.displayName=`MenuText`;const io=B(e=>{let{as:t=`h6`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`menu-header`,n)}))});io.displayName=`MenuHeader`;const ao=B(e=>{let{as:t=`hr`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`menu-divider`,n)}))});ao.displayName=`MenuDivider`;const oo=B(e=>{let{as:t=`span`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`menu-item-content`,n)}))});oo.displayName=`MenuItemContent`;const so=B(e=>{let{as:t=`small`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`menu-item-description`,n)}))});so.displayName=`MenuItemDescription`;let co;new(Ma=(Pa=/*#__PURE__*/ new WeakMap,Fa=class extends (Ha=b){get componentProps(){return this.props}get open(){return t(this,Pa)}set open(e){r(this,Pa,e)}componentDidUpdate(){let{position:e,panel:t,trigger:n}=this;if(!this.open)return e.dispose();t.current&&n.current&&(e.element===t.current?e.update():e.attach(n.current,t.current,{placement:`right-start`,offset:2}))}componentWillUnmount(){this.position.dispose()}render(){var e;let t=(e=this.componentProps.as)==null?`div`:e,n=this.componentProps,{as:r,label:i,className:a,children:l}=n,p=c(n,[`as`,`label`,`className`,`children`]),{open:m}=this;return/*#__PURE__*/ d(t,s(o({},p),{className:f(`submenu`,{show:m},a),onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onKeyDown:this.handleKeyDown,children:[/*#__PURE__*/ u(V,{ref:this.trigger,className:`menu-item`,"aria-haspopup":`true`,"aria-expanded":m,onClick:this.handleClick,children:i}),/*#__PURE__*/ u(`div`,{ref:this.panel,style:o({},this.position.style),"data-bs-placement":this.position.placement,className:f(`menu start-100 top-0`,{show:m}),hidden:!m,children:l})]}))}constructor(...e){super(...e),n(this,Pa,{writable:!0,value:(Ga(this),Ua(this,!1))}),i(this,`panel`,/*#__PURE__*/ T()),i(this,`trigger`,/*#__PURE__*/ T()),i(this,`position`,new Y),i(this,`setOpen`,Wa(this,e=>this.open=e)),i(this,`handleClick`,()=>this.setOpen(!this.open)),i(this,`handleMouseEnter`,e=>{var t,n;(t=(n=this.componentProps).onMouseEnter)==null||t.call(n,e),e.defaultPrevented||this.setOpen(!0)}),i(this,`handleMouseLeave`,e=>{var t,n;(t=(n=this.componentProps).onMouseLeave)==null||t.call(n,e),e.defaultPrevented||this.setOpen(!1)}),i(this,`handleKeyDown`,e=>{var t,n;if((t=(n=this.componentProps).onKeyDown)==null||t.call(n,e),e.defaultPrevented)return;let{key:r}=e;if(r===`ArrowRight`&&(e.preventDefault(),e.stopPropagation(),this.setOpen(!0),queueMicrotask(()=>{var e,t;return(t=this.panel.current)==null||(e=t.querySelector(`a[href], button:not(:disabled)`))==null?void 0:e.focus()})),(r===`ArrowLeft`||r===`Escape`)&&this.open){var i;e.preventDefault(),e.stopPropagation(),this.setOpen(!1),(i=this.trigger.current)==null||i.focus()}})}},{e:[Ua,Wa,Ga],c:[co,Va]}=e(Fa,[[h,1,`open`],[p,0,`setOpen`]],[g],Ha),Fa),Ia=class extends a{constructor(){super(co),i(this,`displayName`,`MenuSubmenu`),Va()}},i(Ia,Ma,void 0),Ia);const lo={"top-start":[`bottom-100`,`start-0`],"top-end":[`bottom-100`,`end-0`],"bottom-start":[`top-100`,`start-0`],"bottom-end":[`top-100`,`end-0`],"left-start":[`end-100`,`top-0`],"left-end":[`end-100`,`bottom-0`],"right-start":[`start-100`,`top-0`],"right-end":[`start-100`,`bottom-0`]},uo={sm:576,md:768,lg:1024,xl:1280,"2xl":1536};let Z;new(Na=(La=/*#__PURE__*/ new WeakMap,Ra=/*#__PURE__*/ new WeakMap,za=class extends (qa=b){get componentProps(){return this.props}get open(){return t(this,La)}set open(e){r(this,La,e)}get responsiveDirection(){return t(this,Ra)}set responsiveDirection(e){r(this,Ra,e)}componentDidMount(){document.addEventListener(`pointerdown`,this.handleOutside),this.observePlacement()}componentDidUpdate({responsivePlacement:e}){var t,n;e!==this.componentProps.responsivePlacement&&this.observePlacement();let{trigger:r,panel:i,position:a,componentProps:o}=this;if(!this.open)return a.dispose();if(!r.current||!i.current)return;let{placement:s,align:c,offset:l,padding:u,flip:d}=o,f={placement:(t=(n=this.responsiveDirection)==null?s:n)==null?`bottom-${c==null?`end`:c}`:t,offset:l,padding:u,flip:d};a.element===i.current?(a.options=f,a.update()):a.attach(r.current,i.current,f)}componentWillUnmount(){document.removeEventListener(`pointerdown`,this.handleOutside),this.position.dispose();for(let{query:e}of this.media)e.removeEventListener(`change`,this.handlePlacement)}items(e=this.panel.current){var t;return[...(t=e==null?void 0:e.querySelectorAll(`a[href]:not([aria-disabled="true"]), button:not(:disabled):not([aria-disabled="true"])`))==null?[]:t].filter(t=>!t.closest(`[hidden]`)&&t.closest(`.menu`)===e)}render(){var e,t;let n=(e=this.componentProps.as)==null?`div`:e,r=this.componentProps,{as:i,label:a,autoClose:l,align:p=`end`,placement:m,responsivePlacement:h,theme:g,translucent:_,scrollable:v,split:y,nav:b,offset:x,padding:S,flip:C,menuClassName:w,toggleProps:T,onOpenChange:E,onKeyDown:D,onBlur:O,children:k,className:A,id:j}=r,M=c(r,[`as`,`label`,`autoClose`,`align`,`placement`,`responsivePlacement`,`theme`,`translucent`,`scrollable`,`split`,`nav`,`offset`,`padding`,`flip`,`menuClassName`,`toggleProps`,`onOpenChange`,`onKeyDown`,`onBlur`,`children`,`className`,`id`]),{open:N}=this,P=(t=this.responsiveDirection)==null?m:t,F=this.position.element?this.position.placement:P,I=F?lo[F]:[`top-100`,p===`end`?`end-0`:`start-0`];return/*#__PURE__*/ d(n,s(o({},M),{ref:this.root,id:j,"data-bs-theme":g,className:f(y?`btn-group`:`d-inline-block`,`position-relative`,A),onKeyDown:this.handleKeyDown,onBlur:this.handleBlur,children:[/*#__PURE__*/ u(V,s(o({variant:!b&&void 0},T),{ref:this.trigger,"aria-expanded":N,"aria-haspopup":`true`,className:f(T==null?void 0:T.className,y&&`menu-toggle-split`,b&&`nav-link`),"aria-controls":j?`${j}-menu`:void 0,onClick:this.handleToggle,children:a})),/*#__PURE__*/ u(`div`,{ref:this.panel,id:j?`${j}-menu`:void 0,"data-bs-placement":F==null?`bottom-${p}`:F,style:o({},this.position.style),className:f(`menu`,I,_&&`menu-translucent`,v&&`menu-scrollable`,{show:N},w),hidden:!N,onClick:this.handleSelect,children:k})]}))}constructor(...e){super(...e),n(this,La,{writable:!0,value:(Qa(this),Ja(this,!1))}),n(this,Ra,{writable:!0,value:Ya(this)}),i(this,`root`,/*#__PURE__*/ T()),i(this,`trigger`,/*#__PURE__*/ T()),i(this,`panel`,/*#__PURE__*/ T()),i(this,`media`,[]),i(this,`position`,new Y),i(this,`observePlacement`,()=>{for(let{query:e}of this.media)e.removeEventListener(`change`,this.handlePlacement);this.media=Object.keys(uo).flatMap(e=>{var t;let n=(t=this.componentProps.responsivePlacement)==null?void 0:t[e];if(!n)return[];let r=window.matchMedia(`(min-width: ${uo[e]}px)`);return r.addEventListener(`change`,this.handlePlacement),[{query:r,placement:n}]}),this.handlePlacement()}),i(this,`handlePlacement`,Xa(this,()=>{var e;return this.responsiveDirection=(e=[...this.media].reverse().find(({query:e})=>e.matches))==null?void 0:e.placement})),i(this,`setOpen`,Za(this,e=>{var t,n;this.open!==e&&(this.open=e,(t=(n=this.componentProps).onOpenChange)==null||t.call(n,e))})),i(this,`handleOutside`,({target:e})=>{var t;let{autoClose:n=!0}=this.componentProps;n!==!1&&n!==`inside`&&e instanceof Node&&!((t=this.root.current)!=null&&t.contains(e))&&this.setOpen(!1)}),i(this,`handleKeyDown`,e=>{var t,n;(t=(n=this.componentProps).onKeyDown)==null||t.call(n,e);let{key:r,defaultPrevented:i}=e;if(!i){if(r===`Escape`&&this.open){var a;return e.preventDefault(),this.setOpen(!1),(a=this.trigger.current)==null?void 0:a.focus()}if(r===`Tab`)return this.setOpen(!1);e.target instanceof Element&&e.target.matches(`input, textarea, select, [contenteditable="true"]`)||[`ArrowDown`,`ArrowUp`,`Home`,`End`].includes(r)&&(e.preventDefault(),this.setOpen(!0),queueMicrotask(()=>{var t;let n=e.target instanceof Element?e.target.closest(`.menu`):void 0,i=this.items(n==null?this.panel.current:n),a=i.findIndex(e=>e===document.activeElement),o=r===`Home`?0:i.length-1;r===`ArrowDown`&&(o=(a+1)%i.length),r===`ArrowUp`&&(o=a<=0?i.length-1:a-1),(t=i[o])==null||t.focus()}))}}),i(this,`handleBlur`,e=>{let{onBlur:t,autoClose:n=!0}=this.componentProps;t==null||t(e);let{defaultPrevented:r,currentTarget:i,relatedTarget:a}=e;!r&&n!==!1&&n!==`inside`&&!i.contains(a)&&this.setOpen(!1)}),i(this,`handleToggle`,()=>this.setOpen(!this.open)),i(this,`handleSelect`,({target:e,defaultPrevented:t})=>{let{autoClose:n=!0}=this.componentProps;n&&!t&&n!==`outside`&&e instanceof Element&&!e.closest(`.submenu > .menu-item`)&&e.closest(`a[href], button:not(:disabled)`)&&this.setOpen(!1)})}},{e:[Ja,Ya,Xa,Za,Qa],c:[Z,Ka]}=e(za,[[h,1,`open`],[h,1,`responsiveDirection`],[p,0,`handlePlacement`],[p,0,`setOpen`]],[g],qa),za),Ba=class extends a{constructor(){super(Z),i(this,`displayName`,`Menu`),Ka()}},i(Ba,Na,void 0),Ba);const fo=B(e=>{let{as:t=`button`,value:n,className:r,children:i}=e,a=c(e,[`as`,`value`,`className`,`children`]);return/*#__PURE__*/ u(t,s(o({},a),{type:`button`,className:f(`menu-item`,r),"data-value":n,children:i}))});fo.displayName=`Option`;var po=class extends b{render(){var e,t;let{align:n,className:r,menuClassName:i,children:a,theme:o=`primary`,variant:s=`solid`,size:c,disabled:p,style:m,value:h,onChange:g,valueRender:_,name:v,placeholder:b,"aria-label":x}=this.props,S=y.toArray(a).find(e=>/*#__PURE__*/ D(e)&&e.type===fo&&e.props.value===h);return/*#__PURE__*/ d(l,{children:[/*#__PURE__*/ u(Z,{align:n,className:`w-100`,menuClassName:i,label:(e=(t=_==null?void 0:_(h==null?``:h))==null?S==null?void 0:S.props.children:t)==null?b:e,toggleProps:{className:f(`w-100 d-flex justify-content-between align-items-center`,r),theme:o,variant:s,size:c,disabled:p,style:m,"aria-label":x},onClick:this.handleSelect,children:y.map(a,this.renderOption)}),v&&/*#__PURE__*/ u(`input`,{type:`hidden`,name:v,value:h==null?``:h,disabled:p})]})}constructor(...e){super(...e),i(this,`handleSelect`,({target:e,defaultPrevented:t})=>{var n,r,i;if(t||this.props.disabled||!(e instanceof Element))return;let a=e.closest(`[data-value]`);a&&!a.disabled&&a.getAttribute(`aria-disabled`)!==`true`&&((r=(i=this.props).onChange)==null||r.call(i,(n=a.dataset.value)==null?``:n))}),i(this,`renderOption`,e=>/*#__PURE__*/ D(e)&&e.type===fo?/*#__PURE__*/ C(e,{className:f(e.props.className,e.props.value===this.props.value&&`selected`),"aria-selected":e.props.value===this.props.value}):e)}};i(po,`displayName`,`Select`);const Q=B(e=>{let{as:t=`img`,fluid:n,thumbnail:r,className:i}=e,a=c(e,[`as`,`fluid`,`thumbnail`,`className`]);return/*#__PURE__*/ u(t,s(o({},a),{className:f({"img-fluid":n,"img-thumbnail":r},i)}))});Q.displayName=`Image`;let mo;var ho,go,_o,vo,yo,bo,xo,So,Co;function wo(e,t,n){return z(function*(){let r=yield Se(e,{useCORS:!0});return new Promise((e,i)=>r.toBlob(t=>t?e(URL.createObjectURL(t)):i(),t,n))})()}let To;new(mo=(ho=/*#__PURE__*/ new WeakMap,go=/*#__PURE__*/ new WeakMap,_o=class extends (bo=b){get loading(){return t(this,ho)}set loading(e){r(this,ho,e)}get imageURI(){return t(this,go)}set imageURI(e){r(this,go,e)}componentDidMount(){var e,t;(e=(t=globalThis).addEventListener)==null||e.call(t,`resize`,this.generateImage)}componentWillUnmount(){var e,t;(e=(t=globalThis).removeEventListener)==null||e.call(t,`resize`,this.generateImage)}render(){let e=this.props,{className:t=``,children:n}=e,r=c(e,[`className`,`children`]),{loading:i,imageURI:a}=this;return/*#__PURE__*/ d(l,{children:[i&&/*#__PURE__*/ u(wi,{}),/*#__PURE__*/ d(`div`,s(o({},r),{ref:this.root,className:`position-relative ${t}`,onMouseEnter:a?void 0:this.generateImage,onTouchStart:a?void 0:this.generateImage,children:[n,a&&/*#__PURE__*/ u(Q,{className:`position-absolute start-0 top-0 w-100 h-100`,src:a,alt:`Share Image`,fluid:!0,onClick:this.share})]}))]})}constructor(...e){var t;super(...e),t=this,i(this,`root`,(Co(this),/*#__PURE__*/ T())),n(this,ho,{writable:!0,value:xo(this,!1)}),n(this,go,{writable:!0,value:So(this,``)}),i(this,`generateImage`,()=>z(function*(){t.imageURI&&(URL.revokeObjectURL(t.imageURI),t.imageURI=``),t.loading=!0,t.imageURI=yield wo(t.root.current),t.loading=!1})()),i(this,`share`,e=>z(function*(){var n,r;e.stopPropagation();let i=yield se(t.imageURI),a=new File([i],`${t.props.title}.png`,{type:i.type});yield(n=(r=navigator).share)==null?void 0:n.call(r,o({files:[a]},t.props))})())}},{e:[xo,So,Co],c:[To,yo]}=e(_o,[[h,1,`loading`],[h,1,`imageURI`]],[g],bo),_o),vo=class extends a{constructor(){super(To),i(this,`displayName`,`ShareBox`),yo()}},i(vo,mo,void 0),vo);const Eo=B(e=>{let{as:t,animation:n,loading:r,disabled:i,children:a}=e,f=c(e,[`as`,`animation`,`loading`,`disabled`,`children`]);return/*#__PURE__*/ d(V,s(o({as:t},f),{disabled:r||i,children:[r&&/*#__PURE__*/ d(l,{children:[/*#__PURE__*/ u(J,{className:a?`me-2`:``,size:`sm`,animation:n,role:`status`,"aria-hidden":`true`}),!a&&/*#__PURE__*/ u(`span`,{className:`visually-hidden`,children:`Loading...`})]}),a]}))});Eo.displayName=`SpinnerButton`;const Do=B(e=>{let{as:t=`tr`,animation:n=`border`,theme:r=`primary`,size:i,colSpan:a}=e,l=c(e,[`as`,`animation`,`theme`,`size`,`colSpan`]);return/*#__PURE__*/ u(t,s(o({},l),{children:/*#__PURE__*/ u(`td`,{className:`text-center p-4`,colSpan:a,children:/*#__PURE__*/ u(J,{animation:n,theme:r,size:i,role:`status`,"aria-label":`Loading`})})}))});Do.displayName=`TableSpinner`;let Oo;var ko,Ao,jo,Mo,No,Po,Fo,Io,Lo;let Ro;new(Oo=(ko=/*#__PURE__*/ new WeakMap,Ao=/*#__PURE__*/ new WeakMap,jo=class extends (Po=b){get expanded(){return t(this,ko)}set expanded(e){r(this,ko,e)}get overflowed(){return t(this,Ao)}set overflowed(e){r(this,Ao,e)}componentDidMount(){this.checkOverflow(),window.addEventListener(`resize`,this.checkOverflow)}componentDidUpdate({rows:e,children:t}){this.expanded||t===this.props.children&&e===this.props.rows||this.checkOverflow()}componentWillUnmount(){window.removeEventListener(`resize`,this.checkOverflow)}render(){let{children:e,rows:t=3,expandText:n=`⏬`,collapseText:r}=this.props,{expanded:i,overflowed:a}=this,o={overflow:`hidden`,display:`-webkit-box`,WebkitBoxOrient:`vertical`,WebkitLineClamp:t};return/*#__PURE__*/ d(l,{children:[/*#__PURE__*/ u(`div`,{ref:this.contentRef,style:i?void 0:o,children:e}),(a||i)&&/*#__PURE__*/ u(`button`,{type:`button`,className:`bg-transparent border-0 p-0`,"aria-expanded":i,onClick:this.toggle,children:i?r:n})]})}constructor(...e){super(...e),n(this,ko,{writable:!0,value:(Lo(this),Fo(this,!1))}),n(this,Ao,{writable:!0,value:Io(this,!1)}),i(this,`contentRef`,/*#__PURE__*/ T()),i(this,`checkOverflow`,p(()=>{let{current:e}=this.contentRef;e&&(this.overflowed=e.scrollHeight>e.clientHeight)})),i(this,`toggle`,p(()=>{this.expanded=!this.expanded,this.expanded||requestAnimationFrame(this.checkOverflow)}))}},{e:[Fo,Io,Lo],c:[Ro,No]}=e(jo,[[h,1,`expanded`],[h,1,`overflowed`]],[g],Po),jo),Mo=class extends a{constructor(){super(Ro),i(this,`displayName`,`TextTruncateContent`),No()}},i(Mo,Oo,void 0),Mo);const zo=B(e=>{let{as:t=`div`,rows:n=3,expandText:r=`⏬`,collapseText:i=`⏫`,children:a}=e,l=c(e,[`as`,`rows`,`expandText`,`collapseText`,`children`]);return/*#__PURE__*/ u(t,s(o({},l),{children:/*#__PURE__*/ u(Ro,{rows:n,expandText:r,collapseText:i,children:a})}))});zo.displayName=`TextTruncate`;const Bo=B(e=>{let{as:t=`time`,dateTime:n,format:r}=e,i=c(e,[`as`,`dateTime`,`format`]);return/*#__PURE__*/ u(t,s(o({dateTime:new Date(n).toJSON()},i),{children:R(n,r)}))});Bo.displayName=`Time`;const Vo={ms:`millisecond(s)`,s:`second(s)`,m:`minute(s)`,H:`hour(s)`,D:`day(s)`,W:`week(s)`,M:`month(s)`,Y:`year(s)`},Ho=B(e=>{let{as:t=`time`,date:n,unitWords:r=Vo,beforeWord:i=` before`,afterWord:a=` after`}=e,l=c(e,[`as`,`date`,`unitWords`,`beforeWord`,`afterWord`]);n=new Date(n);let{distance:u,unit:f}=le(n);return/*#__PURE__*/ d(t,s(o({},l),{dateTime:n.toJSON(),title:n.toLocaleString(),children:[Math.abs(u),` `,r[f],u<0?i:a]}))});Ho.displayName=`TimeDistance`;const Uo=B(e=>{let{as:t=`ol`,className:n,events:r,timeFormat:i}=e,a=c(e,[`as`,`className`,`events`,`timeFormat`]);return/*#__PURE__*/ u(t,s(o({className:`list-unstyled M_u5hG_timeline ${n}`},a),{children:r.map(({title:e,summary:t,time:n,link:r,people:a})=>/*#__PURE__*/ u(`li`,{className:`position-relative M_u5hG_timelineItem M_u5hG_right`,children:/*#__PURE__*/ u(dt,{children:/*#__PURE__*/ d(_t,{className:`p-4 d-flex flex-column gap-3 align-items-center`,children:[/*#__PURE__*/ u(yt,{className:`h5 m-0`,children:/*#__PURE__*/ u(`a`,{className:`text-decoration-none stretched-link`,href:r,children:e})}),/*#__PURE__*/ d(`div`,{className:`small fg-3 d-flex gap-2`,children:[`⏲️`,/*#__PURE__*/ u(Bo,{dateTime:n[0],format:i}),n[1]&&`~`,n[1]&&/*#__PURE__*/ u(Bo,{dateTime:n[1],format:i})]}),/*#__PURE__*/ u(`ul`,{className:`list-unstyled m-0 d-flex gap-2 flex-wrap justify-content-around`,children:a==null?void 0:a.map(e=>/*#__PURE__*/ u(`li`,{children:/*#__PURE__*/ u(ia,o({},e))},e.name))}),/*#__PURE__*/ u(bt,{className:`m-0`,children:t})]})})},e))}))});Uo.displayName=`Timeline`;let Wo;var Go,Ko,qo,Jo,Yo,Xo,Zo,Qo,$o;let es;new(Wo=(Go=/*#__PURE__*/ new WeakMap,Ko=/*#__PURE__*/ new WeakMap,qo=class extends (Xo=b){get componentProps(){return this.props}get echoed(){return t(this,Go)}set echoed(e){r(this,Go,e)}get started(){return t(this,Ko)}set started(e){r(this,Ko,e)}componentDidMount(){this.start()}componentWillUnmount(){var e;(e=this.visibilityObserver)==null||e.disconnect()}componentDidUpdate(){var e;this.forwardRootRef((e=this.root)==null?null:e)}render(){var e;let t=(e=this.componentProps.as)==null?`pre`:e,n=this.componentProps,{as:r,rootRef:i,className:a,text:l,intervals:d}=n,p=c(n,[`as`,`rootRef`,`className`,`text`,`intervals`]),{started:m,echoed:h}=this;return/*#__PURE__*/ u(t,s(o({},p),{ref:this.init,className:f(`text-wrap`,a),children:m?h+(h===l?``:`_`):l}))}constructor(...e){var t;super(...e),t=this,n(this,Go,{writable:!0,value:($o(this),Zo(this,``))}),n(this,Ko,{writable:!0,value:Qo(this,!1)}),i(this,`visibilityObserver`,void 0),i(this,`root`,void 0),i(this,`forwardedRootRef`,void 0),i(this,`releaseRootRef`,void 0),i(this,`start`,p(()=>this.started=!0)),i(this,`echo`,p(e=>this.echoed+=e)),i(this,`forwardRootRef`,e=>{var t,n;let{rootRef:r}=this.componentProps;if((this.root!==e||this.forwardedRootRef!==r)&&((t=(n=this).releaseRootRef)==null||t.call(n),this.releaseRootRef=void 0,this.root=e,this.forwardedRootRef=r,e)){if(typeof r==`function`){let t=r(e);this.releaseRootRef=typeof t==`function`?t:()=>r(null)}else r&&(r.current=e,this.releaseRootRef=()=>r.current=null)}}),i(this,`init`,e=>{var n;(n=this.visibilityObserver)==null||n.disconnect(),this.forwardRootRef(e),e&&(this.visibilityObserver=new IntersectionObserver(([{isIntersecting:e}],n)=>z(function*(){if(!e)return;n.disconnect();let{text:r,intervals:i=150}=t.componentProps;for(let e of r)yield de(i/1e3),t.echo(e)})()),this.visibilityObserver.observe(e))})}},{e:[Zo,Qo,$o],c:[es,Yo]}=e(qo,[[h,1,`echoed`],[h,1,`started`]],[g],Xo),qo),Jo=class extends a{constructor(){super(es),i(this,`displayName`,`TypeEchoContent`),Yo()}},i(Jo,Wo,void 0),Jo);const ts=B(e=>{let{as:t,text:n,intervals:r,ref:i}=e,a=c(e,[`as`,`text`,`intervals`,`ref`]);return/*#__PURE__*/ u(es,s(o({as:t},a),{rootRef:i,text:n,intervals:r}))});ts.displayName=`TypeEcho`;const ns=B(e=>{let{as:t=`div`,fluid:n,className:r}=e,i=c(e,[`as`,`fluid`,`className`]);return/*#__PURE__*/ u(t,s(o({},i),{className:f(n===!0?`container-fluid`:n?`${n}:container`:`container`,r)}))});ns.displayName=`Container`;const rs=B(e=>{let{as:t=`div`,xs:n,sm:r,md:i,lg:a,xl:l,"2xl":d,className:p}=e,m=c(e,[`as`,`xs`,`sm`,`md`,`lg`,`xl`,`2xl`,`className`]),h=[[`sm`,r],[`md`,i],[`lg`,a],[`xl`,l],[`2xl`,d]];return/*#__PURE__*/ u(t,s(o({},m),{className:f(`row`,n!==void 0&&`row-cols-${n}`,h.map(([e,t])=>t!==void 0&&`${e}:row-cols-${t}`),p)}))});rs.displayName=`Row`;const is=B(e=>{let{as:t=`div`,xs:n,sm:r,md:i,lg:a,xl:l,"2xl":d,className:p}=e,m=c(e,[`as`,`xs`,`sm`,`md`,`lg`,`xl`,`2xl`,`className`]),h=[[`sm`,r],[`md`,i],[`lg`,a],[`xl`,l],[`2xl`,d]],g=h.some(([,e])=>e!==void 0);return/*#__PURE__*/ u(t,s(o({},m),{className:f({col:n===void 0&&!g||n===!0,[`col-${n}`]:n!==void 0&&n!==!0},h.map(([e,t])=>t!==void 0&&(t===!0?`${e}:col`:`${e}:col-${t}`)),p)}))});is.displayName=`Col`;const as=B(e=>{let{as:t,striped:n,stripedColumns:r,hover:i,bordered:a,borderless:l,small:d,responsive:p,className:m,children:h}=e,g=c(e,[`as`,`striped`,`stripedColumns`,`hover`,`bordered`,`borderless`,`small`,`responsive`,`className`,`children`]),_=t==null?`div`:t,v=/*#__PURE__*/ u(!p&&t?t:`table`,s(o({},p&&t?{}:g),{className:f(`table`,{"table-striped":n,"table-striped-columns":r,"table-hover":i,"table-bordered":a,"table-borderless":l,"table-sm":d},p&&t?void 0:m),children:h}));return p?/*#__PURE__*/ u(_,s(o({},t?g:{}),{className:f(`table-responsive`,p!==!0&&`${p}:table-responsive`,t&&m),children:v})):v});as.displayName=`Table`;const os=B(({as:e=`address`,email:t,website:n})=>/*#__PURE__*/ d(e,{className:`mb-0 d-flex justify-content-around gap-2`,children:[t&&/*#__PURE__*/ u(`a`,{rel:`noreferrer`,target:`_blank`,href:`mailto:`+t,children:/*#__PURE__*/ u(H,{name:`envelope`})}),n&&/*#__PURE__*/ u(`a`,{rel:`noreferrer`,target:`_blank`,href:n,children:/*#__PURE__*/ u(H,{name:`globe2`})})]}));os.displayName=`UserAddress`;const ss=`UcKh3G_image`,cs=B(e=>{let{as:t,className:n=``,title:r,rank:i=[],linkOf:a}=e,l=c(e,[`as`,`className`,`title`,`rank`,`linkOf`]);return/*#__PURE__*/ u(ns,s(o({as:t,className:n},l),{children:/*#__PURE__*/ d(rs,{className:`UcKh3G_rankBox`,children:[/*#__PURE__*/ d(is,{xs:12,lg:7,children:[/*#__PURE__*/ d(`div`,{className:`shadow rounded-3 UcKh3G_title`,children:[/*#__PURE__*/ d(`div`,{className:`UcKh3G_medal`,children:[/*#__PURE__*/ u(`i`,{className:`d-inline-block ms-1 overflow-hidden rounded-circle`}),/*#__PURE__*/ u(`i`,{className:`d-inline-block ms-1 overflow-hidden rounded-circle`}),/*#__PURE__*/ u(`i`,{className:`d-inline-block ms-1 overflow-hidden rounded-circle`})]}),/*#__PURE__*/ u(`h3`,{"data-text":r,className:`position-relative m-auto mb-0 fw-bold text-center`,children:r})]}),/*#__PURE__*/ u(`ul`,{className:`row mt-2 g-0 align-items-end text-center ps-0 pt-2 list-unstyled UcKh3G_topUsers`,children:i.slice(0,3).map(e=>/*#__PURE__*/ d(`li`,{className:`col`,children:[/*#__PURE__*/ u(`div`,{className:`shadow-lg overflow-hidden rounded-circle m-auto ${ss}`,children:/*#__PURE__*/ u(Q,{src:e.avatar,alt:e.name,loading:`lazy`,fluid:!0})}),/*#__PURE__*/ d(`div`,{className:`position-relative overflow-hidden UcKh3G_topUser`,children:[/*#__PURE__*/ d(`div`,{className:`position-relative`,children:[/*#__PURE__*/ u(`i`,{className:`d-block overflow-hidden m-auto mb-1 rounded-circle`}),/*#__PURE__*/ u(`a`,{className:`d-block mb-0 stretched-link`,href:(a==null?void 0:a(e))||`#`,children:e.name}),/*#__PURE__*/ u(`strong`,{children:e.score})]}),/*#__PURE__*/ u(os,o({},e))]})]},e.id))})]}),/*#__PURE__*/ u(is,{xs:12,lg:5,children:/*#__PURE__*/ u(as,{className:`my-3 pt-2 UcKh3G_restUsers`,responsive:!0,children:/*#__PURE__*/ u(`tbody`,{children:i.slice(3,10).map((e,t,{length:n})=>/*#__PURE__*/ d(`tr`,{className:`position-relative`,children:[/*#__PURE__*/ u(`td`,{className:`align-middle`,children:/*#__PURE__*/ u(it,{className:`fw-bold fst-italic`,children:(t+4+``).padStart((n+``).length,`0`)})}),/*#__PURE__*/ d(`td`,{className:`position-relative text-truncate UcKh3G_name`,children:[/*#__PURE__*/ u(`div`,{className:`d-inline-block overflow-hidden align-middle rounded-circle ${ss}`,children:/*#__PURE__*/ u(Q,{src:e.avatar,alt:e.name,loading:`lazy`,fluid:!0})}),/*#__PURE__*/ u(`a`,{className:`ms-2 d-inline-block align-middle stretched-link`,style:{color:`rgb(248, ${(t+2)*15}, ${(t+2)*35})`},href:(a==null?void 0:a(e))||`#`,children:e.name})]}),/*#__PURE__*/ u(`td`,{className:`align-middle`,children:e.score}),/*#__PURE__*/ u(`td`,{className:`align-middle`,children:/*#__PURE__*/ u(os,o({},e))})]},e.id))})})})]})}))});cs.displayName=`UserRankView`;const ls=B(e=>{let{as:t=`div`,className:n=``,children:r,duration:i}=e,a=c(e,[`as`,`className`,`children`,`duration`]);return/*#__PURE__*/ u(t,s(o({className:`overflow-hidden h-100 ${n}`},a),{children:/*#__PURE__*/ u(`div`,{className:`d-inline-block max-w-100 max-h-100 x8UL2q_scrollWrap`,style:{"--duration":i},children:/*#__PURE__*/ u(`div`,{className:`d-inline-block x8UL2q_scrollItem`,children:r})})}))});ls.displayName=`VerticalMarquee`;const us=[`🐵`,`🐔`,`🐶`,`🐷`,`🐭`,`🐮`,`🐯`,`🐰`,`🐲`,`🐍`,`🐴`,`🐐`],ds=e=>{let t=e<0?e+1:e;return us[(t%12+12)%12]},fs=B(e=>{let{as:t=`ol`,className:n=``,itemClassName:r=`border rounded px-4 py-3 d-flex flex-column justify-content-center align-items-center`,startYear:i,endYear:a=(/* @__PURE__ */ new Date()).getFullYear(),itemOf:l}=e,f=c(e,[`as`,`className`,`itemClassName`,`startYear`,`endYear`,`itemOf`]);return/*#__PURE__*/ u(t,s(o({className:`list-unstyled m-0 d-flex flex-wrap justify-content-center gap-3 ${n}`},f),{children:Array.from({length:a-i+1},(e,t)=>{let n=a-t;if(n===0)return null;let i=ds(n),{link:o=`#`,title:s}=(l==null?void 0:l(n,i))||{};return/*#__PURE__*/ u(`li`,{className:r,children:/*#__PURE__*/ d(`a`,{className:`d-inline-block p-3 text-decoration-none text-center`,href:o,children:[/*#__PURE__*/ u(`div`,{className:`fs-3xl`,children:i}),s]})},n)})}))});fs.displayName=`ZodiacBar`;const ps=B(e=>{let{as:t=`label`,className:n,end:r,size:i,validation:a}=e,l=c(e,[`as`,`className`,`end`,`size`,`validation`]);return/*#__PURE__*/ u(t,s(o({},l),{className:f(`form-control form-adorn`,r&&`form-adorn-end`,i&&`form-control-${i}`,a&&`is-${a}`,n)}))});ps.displayName=`FormAdornment`;const ms=B(e=>{let{as:t=`span`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`form-adorn-text`,n)}))});ms.displayName=`FormAdornmentText`;const hs=B(e=>{let{as:t,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(H,s(o({as:t},r),{className:f(`form-adorn-icon`,n)}))});hs.displayName=`FormAdornmentIcon`;const gs=B(e=>{let{as:t=`input`,className:n,validation:r}=e,i=c(e,[`as`,`className`,`validation`]);return/*#__PURE__*/ u(t,s(o({},i),{"aria-invalid":r?r===`invalid`:i[`aria-invalid`],className:f(`form-ghost`,r&&`is-${r}`,n)}))});gs.displayName=`FormGhost`;var _s=class extends b{componentDidMount(){this.setIndeterminate()}componentDidUpdate(){this.setIndeterminate()}render(){let e=this.props,{as:t=`input`,className:n,size:r,theme:i,validation:a,indeterminate:l,forwardedRef:d}=e,p=c(e,[`as`,`className`,`size`,`theme`,`validation`,`indeterminate`,`forwardedRef`]);return/*#__PURE__*/ u(t,s(o({},p),{ref:this.setInputRef,type:`checkbox`,"aria-invalid":a?a===`invalid`:p[`aria-invalid`],"aria-checked":l?`mixed`:p[`aria-checked`],className:f(`check`,r&&`check-${r}`,i&&`theme-${i}`,a&&`is-${a}`,n)}))}constructor(...e){super(...e),i(this,`input`,void 0),i(this,`setIndeterminate`,()=>{this.input&&(this.input.indeterminate=this.props.indeterminate||!1)}),i(this,`setInputRef`,e=>{this.input=e||void 0;let{forwardedRef:t}=this.props;typeof t==`function`?t(e):t&&(t.current=e)})}};const vs=B(/*#__PURE__*/ E((e,t)=>/*#__PURE__*/ u(_s,s(o({},e),{forwardedRef:t}))));vs.displayName=`Checkbox`;var ys=class extends b{updatePlugin(){}componentDidMount(){this.initialize()}componentDidUpdate(e){this.configurationChanged(e)?(this.dispose(),this.initialize()):this.updatePlugin()}componentWillUnmount(){this.dispose()}dispose(){var e;this.revision++,(e=this.instance)==null||e.dispose(),this.instance=void 0}constructor(...e){var t;super(...e),t=this,i(this,`element`,/*#__PURE__*/ T()),i(this,`instance`,void 0),i(this,`revision`,0),i(this,`initialize`,()=>z(function*(){let e=++t.revision,n=yield t.load();e===t.revision&&t.element.current&&(t.instance=n(t.element.current),t.updatePlugin())})())}},bs=class extends ys{render(){let e=this.props,{as:t=`div`,className:n,theme:r,separator:i,allowDuplicates:a,maxChips:l,createOnBlur:d,dismissible:p,placeholder:m,onValuesChange:h,forwardedRef:g,validation:_}=e,v=c(e,[`as`,`className`,`theme`,`separator`,`allowDuplicates`,`maxChips`,`createOnBlur`,`dismissible`,`placeholder`,`onValuesChange`,`forwardedRef`,`validation`]);return/*#__PURE__*/ u(t,s(o({},v),{ref:this.setRef,className:f(`chip-input`,r&&`theme-${r}`,_&&`is-${_}`,n),"data-bs-chips":``,"data-bs-separator":i,"data-bs-allow-duplicates":a,"data-bs-max-chips":l,"data-bs-create-on-blur":d}))}constructor(...e){var t;super(...e),t=this,i(this,`configurationChanged`,e=>e.separator!==this.props.separator||e.allowDuplicates!==this.props.allowDuplicates||e.maxChips!==this.props.maxChips||e.createOnBlur!==this.props.createOnBlur||e.dismissible!==this.props.dismissible||e.placeholder!==this.props.placeholder),i(this,`load`,()=>z(function*(){let[{default:e},{default:n}]=yield Promise.all([import(`bootstrap/js/src/chips.js`),import(`bootstrap/js/src/dom/event-handler.js`)]),{separator:r=`,`,allowDuplicates:i=!1,maxChips:a=null,createOnBlur:o=!0,dismissible:s=!0,placeholder:c=``}=t.props;return l=>{let d=e.getOrCreateInstance(l,{separator:r,allowDuplicates:i,maxChips:a,createOnBlur:o,dismissible:s,placeholder:c,dismissIcon:Ce(/*#__PURE__*/ u(H,{name:`x-lg`,"aria-hidden":`true`}))});return l.addEventListener(`change.bs.chips`,t.handleValuesChange),{dispose:()=>{l.removeEventListener(`change.bs.chips`,t.handleValuesChange),n.off(l,`.bs.chips`),d.dispose()}}}})()),i(this,`handleValuesChange`,e=>{var t,n;return(t=(n=this.props).onValuesChange)==null?void 0:t.call(n,e.values)}),i(this,`setRef`,e=>{this.element.current=e;let{forwardedRef:t}=this.props;typeof t==`function`?t(e):t&&(t.current=e)})}};const xs=B(/*#__PURE__*/ E((e,t)=>/*#__PURE__*/ u(bs,s(o({},e),{forwardedRef:t}))));xs.displayName=`ChipInput`;const Ss=B(e=>{let{as:t=`button`,className:n,active:r,theme:i}=e,a=c(e,[`as`,`className`,`active`,`theme`]);return/*#__PURE__*/ u(t,s(o({},a),{className:f(`chip`,{active:r},i&&`theme-${i}`,n),type:`button`,"aria-pressed":r}))});Ss.displayName=`Chip`;const Cs=B(e=>{let{as:t,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(H,s(o({as:t},r),{className:f(`chip-icon`,n)}))});Cs.displayName=`ChipIcon`;const ws=B(e=>{let{as:t=`img`,className:n,alt:r=``}=e,i=c(e,[`as`,`className`,`alt`]);return/*#__PURE__*/ u(t,s(o({},i),{alt:r,className:f(`chip-img`,n)}))});ws.displayName=`ChipImage`;const Ts=B(e=>{let{as:t=`button`,className:n,children:r,"aria-label":i=`Remove`}=e,a=c(e,[`as`,`className`,`children`,`aria-label`]);return/*#__PURE__*/ u(t,s(o({},a),{type:`button`,"aria-label":i,className:f(`chip-dismiss`,n),children:r==null?/*#__PURE__*/ u(H,{name:`x-lg`,"aria-hidden":`true`}):r}))});Ts.displayName=`ChipDismiss`;const Es=B(e=>{let{as:t=`span`,className:n,active:r,theme:i}=e,a=c(e,[`as`,`className`,`active`,`theme`]);var l;return/*#__PURE__*/ u(t,s(o({},a),{tabIndex:(l=a.tabIndex)==null?0:l,className:f(`chip`,{active:r},i&&`theme-${i}`,n)}))});Es.displayName=`ChipToken`;const Ds=B(e=>{let{as:t=`label`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`chip-input-label`,n)}))});Ds.displayName=`ChipInputLabel`;let Os;var ks,$,As,js,Ms,Ns,Ps,Fs,Is,Ls,Rs,zs,Bs,Vs,Hs,Us;const Ws=B(e=>{let{as:t=`button`,className:n,value:r,children:i,description:a,icon:l,checkedIcon:p,searchText:m}=e,h=c(e,[`as`,`className`,`value`,`children`,`description`,`icon`,`checkedIcon`,`searchText`]);var g;return/*#__PURE__*/ d(t,s(o({},h),{type:`button`,role:`option`,"aria-selected":(g=h[`aria-selected`])!=null&&g,className:f(`menu-item`,n),"data-bs-value":r,"data-search-text":m,"data-label":Ks(i),"data-option-hidden":h.hidden||void 0,children:[l&&/*#__PURE__*/ u(H,{name:l,className:`menu-item-icon`,"aria-hidden":`true`}),a?/*#__PURE__*/ d(oo,{children:[i,/*#__PURE__*/ u(so,{children:a})]}):i,p&&/*#__PURE__*/ u(H,{name:`check-lg`,className:`menu-item-check`,"aria-hidden":`true`})]}))});Ws.displayName=`ComboboxOption`;const Gs=B(e=>{let{as:t=`div`,label:n,children:r}=e,i=c(e,[`as`,`label`,`children`]);return/*#__PURE__*/ d(t,s(o({},i),{role:`group`,"aria-label":typeof n==`string`?n:void 0,children:[/*#__PURE__*/ u(io,{children:n}),r]}))});Gs.displayName=`ComboboxGroup`;const Ks=e=>y.toArray(e).map(e=>/*#__PURE__*/ D(e)?Ks(e.props.children):String(e)).join(` `),qs=e=>y.toArray(e).flatMap(e=>/*#__PURE__*/ D(e)&&e.type===Ws?[e]:/*#__PURE__*/ D(e)?qs(e.props.children):[]);let Js;new(Os=(ks=/*#__PURE__*/ new WeakMap,$=/*#__PURE__*/ new WeakMap,As=/*#__PURE__*/ new WeakMap,js=/*#__PURE__*/ new WeakMap,Ms=class extends (Fs=b){get componentProps(){return this.props}get query(){return t(this,ks)}set query(e){r(this,ks,e)}get current(){return t(this,$)}set current(e){r(this,$,e)}get visibleOptionCount(){return t(this,As)}set visibleOptionCount(e){r(this,As,e)}get selectedLabel(){return t(this,js)}set selectedLabel(e){r(this,js,e)}get values(){var e;let t=(e=this.componentProps.value)==null?this.current:e;return Array.isArray(t)?t:t?[t]:[]}componentDidMount(){var e;this.updateAccessibility(),this.optionObserver=new MutationObserver(this.updateAccessibility);let t=(e=this.menu.current)==null?void 0:e.panel.current;t&&this.optionObserver.observe(t,{childList:!0,subtree:!0,characterData:!0})}componentDidUpdate(){this.updateAccessibility()}componentWillUnmount(){var e;(e=this.optionObserver)==null||e.disconnect()}render(){var e,t,n,r;let i=(e=this.componentProps.as)==null?`div`:e,a=this.componentProps,{as:p,className:m,id:h,name:g,value:_,defaultValue:v,placeholder:b=`Select an item…`,disabled:x,multiple:S,onChange:C,onClick:w,menuClassName:T,children:E,controlSize:D,search:O,searchNormalize:k,searchPlaceholder:A=`Search…`,noResultsText:j=`No results found`,validation:M}=a,N=c(a,[`as`,`className`,`id`,`name`,`value`,`defaultValue`,`placeholder`,`disabled`,`multiple`,`onChange`,`onClick`,`menuClassName`,`children`,`controlSize`,`search`,`searchNormalize`,`searchPlaceholder`,`noResultsText`,`validation`]),P=qs(E).filter(e=>this.values.includes(e.props.value)),F=P.length>0||!!this.selectedLabel,I=S&&P.length>1?`${P.length} selected`:(t=(r=P[0])==null?void 0:r.props.children)==null?this.selectedLabel:t,L=this.visibleOptionCount===0;return/*#__PURE__*/ d(i,s(o({},N),{className:f(`combobox`,m),children:[/*#__PURE__*/ d(Z,{ref:this.menu,className:`w-100`,id:h?`${h}-combobox`:void 0,label:/*#__PURE__*/ d(l,{children:[/*#__PURE__*/ u(`span`,{className:f(`combobox-value`,!F&&`combobox-placeholder`),children:F?I:b}),/*#__PURE__*/ u(H,{name:`chevron-down`,className:`combobox-caret`,"aria-hidden":`true`})]}),toggleProps:{id:h,className:f(`form-control combobox-toggle`,D&&`form-control-${D}`,M&&`is-${M}`),variant:!1,disabled:x,"aria-haspopup":`listbox`,"aria-label":(n=this.componentProps[`aria-label`])==null?b:n,"aria-labelledby":this.componentProps[`aria-labelledby`],"aria-describedby":this.componentProps[`aria-describedby`],"aria-invalid":M?M===`invalid`:this.componentProps[`aria-invalid`]},autoClose:!S,menuClassName:f(T,`combobox-menu`),onClick:this.handleClick,children:[O&&/*#__PURE__*/ u(`div`,{className:`combobox-search`,children:/*#__PURE__*/ u(`input`,{type:`search`,className:`form-control combobox-search-input`,"aria-label":A,placeholder:A,autoComplete:`off`,value:this.query,onChange:this.handleSearch})}),y.map(E,this.renderChild),O&&L&&/*#__PURE__*/ u(`div`,{className:`combobox-empty`,role:`status`,children:j})]}),this.values.length||S?this.values.map(this.renderHiddenInput):this.renderHiddenInput(``)]}))}constructor(...e){var t;super(...e),n(this,ks,{writable:!0,value:(Us(this),Is(this,``))}),n(this,$,{writable:!0,value:Ls(this,(t=this.componentProps.defaultValue)==null?this.componentProps.multiple?[]:``:t)}),n(this,As,{writable:!0,value:Rs(this,0)}),n(this,js,{writable:!0,value:zs(this,``)}),i(this,`menu`,/*#__PURE__*/ T()),i(this,`optionObserver`,void 0),i(this,`updateAccessibility`,Bs(this,()=>{var e,t,n,r,i,a,o,s;let c=(a=this.menu.current)==null?void 0:a.panel.current,l=[...(e=c==null?void 0:c.querySelectorAll(`[data-bs-value]`))==null?[]:e],u=[],d=0;for(let e of l){var f,p,m,h,g;let t=(f=e.dataset.bsValue)==null?``:f,n=(p=(m=e.dataset.searchText)==null?e.textContent:m)==null?``:p,r=e.dataset.optionHidden!==`true`&&this.normalize(n).includes(this.normalize(this.query)),i=this.values.includes(t);e.setAttribute(`role`,`option`),e.setAttribute(`aria-selected`,String(i)),e.classList.toggle(`selected`,i),e.hidden=!r,e.style.display=r?``:`none`,r&&d++,i&&u.push((h=(g=e.dataset.label)==null?e.textContent:g)==null?``:h)}for(let e of(t=c==null?void 0:c.querySelectorAll(`[role="group"]`))==null?[]:t){let t=[...e.querySelectorAll(`[data-bs-value]`)].some(({hidden:e})=>!e);e.hidden=!t,e.style.display=t?``:`none`}this.visibleOptionCount=d,this.selectedLabel=this.componentProps.multiple&&u.length>1?`${u.length} selected`:(n=u[0])==null?``:n,c==null||c.setAttribute(`role`,`listbox`),c==null||c.setAttribute(`aria-multiselectable`,String(!!this.componentProps.multiple)),c==null||c.setAttribute(`aria-label`,(r=(i=this.componentProps[`aria-label`])==null?this.componentProps.placeholder:i)==null?`Options`:r),(s=this.menu.current)==null||(o=s.trigger.current)==null||o.setAttribute(`aria-haspopup`,`listbox`)})),i(this,`setCurrent`,Vs(this,e=>this.current=e)),i(this,`handleSearch`,Hs(this,({currentTarget:{value:e}})=>this.query=e)),i(this,`handleClick`,e=>{var t,n,r,i,a;(n=(r=this.componentProps).onClick)==null||n.call(r,e);let{target:o,defaultPrevented:s}=e;if(s||this.componentProps.disabled||!(o instanceof Element))return;let c=o.closest(`[data-bs-value]`);if(!c||c.disabled||c.getAttribute(`aria-disabled`)===`true`)return;let l=(t=c.dataset.bsValue)==null?``:t,u=this.componentProps.multiple?this.values.includes(l)?this.values.filter(e=>e!==l):[...this.values,l]:l;(i=(a=this.componentProps).onChange)==null||i.call(a,u),this.componentProps.value===void 0&&this.setCurrent(u)}),i(this,`normalize`,e=>{let t=e.toLocaleLowerCase();return this.componentProps.searchNormalize?t.normalize(`NFD`).replace(RegExp(`[\\u0300-\\u036F\\u0483-\\u0489\\u0591-\\u05BD\\u05BF\\u05C1-\\u05C2\\u05C4-\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065F\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7-\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u07FD\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0859-\\u085B\\u0897-\\u089F\\u08CA-\\u08E1\\u08E3-\\u0903\\u093A-\\u093C\\u093E-\\u094F\\u0951-\\u0957\\u0962-\\u0963\\u0981-\\u0983\\u09BC\\u09BE-\\u09C4\\u09C7-\\u09C8\\u09CB-\\u09CD\\u09D7\\u09E2-\\u09E3\\u09FE\\u0A01-\\u0A03\\u0A3C\\u0A3E-\\u0A42\\u0A47-\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70-\\u0A71\\u0A75\\u0A81-\\u0A83\\u0ABC\\u0ABE-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AE2-\\u0AE3\\u0AFA-\\u0AFF\\u0B01-\\u0B03\\u0B3C\\u0B3E-\\u0B44\\u0B47-\\u0B48\\u0B4B-\\u0B4D\\u0B55-\\u0B57\\u0B62-\\u0B63\\u0B82\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD7\\u0C00-\\u0C04\\u0C3C\\u0C3E-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55-\\u0C56\\u0C62-\\u0C63\\u0C81-\\u0C83\\u0CBC\\u0CBE-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5-\\u0CD6\\u0CE2-\\u0CE3\\u0CF3\\u0D00-\\u0D03\\u0D3B-\\u0D3C\\u0D3E-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4D\\u0D57\\u0D62-\\u0D63\\u0D81-\\u0D83\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DF2-\\u0DF3\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EBC\\u0EC8-\\u0ECE\\u0F18-\\u0F19\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F3F\\u0F71-\\u0F84\\u0F86-\\u0F87\\u0F8D-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102B-\\u103E\\u1056-\\u1059\\u105E-\\u1060\\u1062-\\u1064\\u1067-\\u106D\\u1071-\\u1074\\u1082-\\u108D\\u108F\\u109A-\\u109D\\u135D-\\u135F\\u1712-\\u1715\\u1732-\\u1734\\u1752-\\u1753\\u1772-\\u1773\\u17B4-\\u17D3\\u17DD\\u180B-\\u180D\\u180F\\u1885-\\u1886\\u18A9\\u1920-\\u192B\\u1930-\\u193B\\u1A17-\\u1A1B\\u1A55-\\u1A5E\\u1A60-\\u1A7C\\u1A7F\\u1AB0-\\u1ADD\\u1AE0-\\u1AEB\\u1B00-\\u1B04\\u1B34-\\u1B44\\u1B6B-\\u1B73\\u1B80-\\u1B82\\u1BA1-\\u1BAD\\u1BE6-\\u1BF3\\u1C24-\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE8\\u1CED\\u1CF4\\u1CF7-\\u1CF9\\u1DC0-\\u1DFF\\u20D0-\\u20F0\\u2CEF-\\u2CF1\\u2D7F\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099-\\u309A\\uA66F-\\uA672\\uA674-\\uA67D\\uA69E-\\uA69F\\uA6F0-\\uA6F1\\uA802\\uA806\\uA80B\\uA823-\\uA827\\uA82C\\uA880-\\uA881\\uA8B4-\\uA8C5\\uA8E0-\\uA8F1\\uA8FF\\uA926-\\uA92D\\uA947-\\uA953\\uA980-\\uA983\\uA9B3-\\uA9C0\\uA9E5\\uAA29-\\uAA36\\uAA43\\uAA4C-\\uAA4D\\uAA7B-\\uAA7D\\uAAB0\\uAAB2-\\uAAB4\\uAAB7-\\uAAB8\\uAABE-\\uAABF\\uAAC1\\uAAEB-\\uAAEF\\uAAF5-\\uAAF6\\uABE3-\\uABEA\\uABEC-\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE2F\\u{101FD}\\u{102E0}\\u{10376}-\\u{1037A}\\u{10A01}-\\u{10A03}\\u{10A05}-\\u{10A06}\\u{10A0C}-\\u{10A0F}\\u{10A38}-\\u{10A3A}\\u{10A3F}\\u{10AE5}-\\u{10AE6}\\u{10D24}-\\u{10D27}\\u{10D69}-\\u{10D6D}\\u{10EAB}-\\u{10EAC}\\u{10EFA}-\\u{10EFF}\\u{10F46}-\\u{10F50}\\u{10F82}-\\u{10F85}\\u{11000}-\\u{11002}\\u{11038}-\\u{11046}\\u{11070}\\u{11073}-\\u{11074}\\u{1107F}-\\u{11082}\\u{110B0}-\\u{110BA}\\u{110C2}\\u{11100}-\\u{11102}\\u{11127}-\\u{11134}\\u{11145}-\\u{11146}\\u{11173}\\u{11180}-\\u{11182}\\u{111B3}-\\u{111C0}\\u{111C9}-\\u{111CC}\\u{111CE}-\\u{111CF}\\u{1122C}-\\u{11237}\\u{1123E}\\u{11241}\\u{112DF}-\\u{112EA}\\u{11300}-\\u{11303}\\u{1133B}-\\u{1133C}\\u{1133E}-\\u{11344}\\u{11347}-\\u{11348}\\u{1134B}-\\u{1134D}\\u{11357}\\u{11362}-\\u{11363}\\u{11366}-\\u{1136C}\\u{11370}-\\u{11374}\\u{113B8}-\\u{113C0}\\u{113C2}\\u{113C5}\\u{113C7}-\\u{113CA}\\u{113CC}-\\u{113D0}\\u{113D2}\\u{113E1}-\\u{113E2}\\u{11435}-\\u{11446}\\u{1145E}\\u{114B0}-\\u{114C3}\\u{115AF}-\\u{115B5}\\u{115B8}-\\u{115C0}\\u{115DC}-\\u{115DD}\\u{11630}-\\u{11640}\\u{116AB}-\\u{116B7}\\u{1171D}-\\u{1172B}\\u{1182C}-\\u{1183A}\\u{11930}-\\u{11935}\\u{11937}-\\u{11938}\\u{1193B}-\\u{1193E}\\u{11940}\\u{11942}-\\u{11943}\\u{119D1}-\\u{119D7}\\u{119DA}-\\u{119E0}\\u{119E4}\\u{11A01}-\\u{11A0A}\\u{11A33}-\\u{11A39}\\u{11A3B}-\\u{11A3E}\\u{11A47}\\u{11A51}-\\u{11A5B}\\u{11A8A}-\\u{11A99}\\u{11B60}-\\u{11B67}\\u{11C2F}-\\u{11C36}\\u{11C38}-\\u{11C3F}\\u{11C92}-\\u{11CA7}\\u{11CA9}-\\u{11CB6}\\u{11D31}-\\u{11D36}\\u{11D3A}\\u{11D3C}-\\u{11D3D}\\u{11D3F}-\\u{11D45}\\u{11D47}\\u{11D8A}-\\u{11D8E}\\u{11D90}-\\u{11D91}\\u{11D93}-\\u{11D97}\\u{11EF3}-\\u{11EF6}\\u{11F00}-\\u{11F01}\\u{11F03}\\u{11F34}-\\u{11F3A}\\u{11F3E}-\\u{11F42}\\u{11F5A}\\u{13440}\\u{13447}-\\u{13455}\\u{1611E}-\\u{1612F}\\u{16AF0}-\\u{16AF4}\\u{16B30}-\\u{16B36}\\u{16F4F}\\u{16F51}-\\u{16F87}\\u{16F8F}-\\u{16F92}\\u{16FE4}\\u{16FF0}-\\u{16FF1}\\u{1BC9D}-\\u{1BC9E}\\u{1CF00}-\\u{1CF2D}\\u{1CF30}-\\u{1CF46}\\u{1D165}-\\u{1D169}\\u{1D16D}-\\u{1D172}\\u{1D17B}-\\u{1D182}\\u{1D185}-\\u{1D18B}\\u{1D1AA}-\\u{1D1AD}\\u{1D242}-\\u{1D244}\\u{1DA00}-\\u{1DA36}\\u{1DA3B}-\\u{1DA6C}\\u{1DA75}\\u{1DA84}\\u{1DA9B}-\\u{1DA9F}\\u{1DAA1}-\\u{1DAAF}\\u{1E000}-\\u{1E006}\\u{1E008}-\\u{1E018}\\u{1E01B}-\\u{1E021}\\u{1E023}-\\u{1E024}\\u{1E026}-\\u{1E02A}\\u{1E08F}\\u{1E130}-\\u{1E136}\\u{1E2AE}\\u{1E2EC}-\\u{1E2EF}\\u{1E4EC}-\\u{1E4EF}\\u{1E5EE}-\\u{1E5EF}\\u{1E6E3}\\u{1E6E6}\\u{1E6EE}-\\u{1E6EF}\\u{1E6F5}\\u{1E8D0}-\\u{1E8D6}\\u{1E944}-\\u{1E94A}\\u{E0100}-\\u{E01EF}]`,`gu`),``):t}),i(this,`matches`,e=>{var t;return this.normalize((t=e.props.searchText)==null?Ks(e.props.children):t).includes(this.normalize(this.query))}),i(this,`renderChild`,e=>{if(!/*#__PURE__*/ D(e))return e;if(e.type===Ws){let t=e,n=this.values.includes(t.props.value);return/*#__PURE__*/ C(t,{hidden:t.props.hidden||!this.matches(t),className:f(t.props.className,n&&`selected`),"aria-selected":n,role:`option`})}let t=qs(e.props.children);return/*#__PURE__*/ C(e,s(o({},e.type===Gs&&{hidden:!t.some(this.matches)}),{children:y.map(e.props.children,this.renderChild)}))}),i(this,`renderHiddenInput`,e=>/*#__PURE__*/ u(`input`,{type:`hidden`,name:this.componentProps.name,value:e,disabled:this.componentProps.disabled},e))}},{e:[Is,Ls,Rs,zs,Bs,Vs,Hs,Us],c:[Js,Ps]}=e(Ms,[[h,1,`query`],[h,1,`current`],[h,1,`visibleOptionCount`],[h,1,`selectedLabel`],[p,0,`updateAccessibility`],[p,0,`setCurrent`],[p,0,`handleSearch`]],[g],Fs),Ms),Ns=class extends a{constructor(){super(Js),i(this,`displayName`,`Combobox`),Ps()}},i(Ns,Os,void 0),Ns);const Ys={sm:`form-control-sm`,lg:`form-control-lg`},Xs=B(e=>{let{as:t=`input`,className:n,plaintext:r,ghost:i,caret:a,color:l,controlSize:d,validation:p}=e,m=c(e,[`as`,`className`,`plaintext`,`ghost`,`caret`,`color`,`controlSize`,`validation`]);return/*#__PURE__*/ u(t,s(o({},m),{"aria-invalid":p?p===`invalid`:m[`aria-invalid`],className:f(i?`form-ghost`:r?`form-control-plaintext`:`form-control`,!i&&a&&`form-control-caret`,!i&&!r&&l&&`form-control-color`,!i&&!r&&d&&Ys[d],p&&`is-${p}`,n)}))});Xs.displayName=`FormControl`;const Zs=B(e=>{let{as:t=`textarea`,className:n,controlSize:r,validation:i}=e,a=c(e,[`as`,`className`,`controlSize`,`validation`]);return/*#__PURE__*/ u(t,s(o({},a),{"aria-invalid":i?i===`invalid`:a[`aria-invalid`],className:f(`form-control`,r&&Ys[r],i&&`is-${i}`,n)}))});Zs.displayName=`FormTextArea`;const Qs=B(e=>{let{as:t=`select`,className:n,controlSize:r,validation:i}=e,a=c(e,[`as`,`className`,`controlSize`,`validation`]);return/*#__PURE__*/ u(t,s(o({},a),{"aria-invalid":i?i===`invalid`:a[`aria-invalid`],className:f(`form-control`,r&&Ys[r],i&&`is-${i}`,n)}))});Qs.displayName=`FormSelect`;var $s=class extends ys{render(){let e=this.props,{as:t,className:n,enhanced:r,inline:i,selectionMode:a,min:l,max:p,options:m,displayMonthsCount:h,selectedDates:g,firstWeekday:_,placement:v,datepickerTheme:y,onDatesChange:b,ghost:x,controlSize:S,validation:C,kind:w=`input`,hostProps:T,leadingIcon:E,forwardedRef:D}=e,O=c(e,[`as`,`className`,`enhanced`,`inline`,`selectionMode`,`min`,`max`,`options`,`displayMonthsCount`,`selectedDates`,`firstWeekday`,`placement`,`datepickerTheme`,`onDatesChange`,`ghost`,`controlSize`,`validation`,`kind`,`hostProps`,`leadingIcon`,`forwardedRef`]),k=t==null?w===`div`?`div`:`input`:t,A={"data-bs-toggle":r||w!==`input`?`datepicker`:void 0,"data-bs-inline":i||w===`div`||void 0,"data-bs-selection-mode":a,"data-bs-display-months-count":h,"data-bs-selected-dates":g?JSON.stringify(g):void 0,"data-bs-first-weekday":_,"data-bs-placement":v,"data-bs-datepicker-theme":y,"data-bs-date-min":r?l:void 0,"data-bs-date-max":r?p:void 0};if(w===`button`){let{children:e}=T,n=c(T,[`children`]);return/*#__PURE__*/ d(V,s(o({as:t},n,A),{ref:this.setRef,children:[E&&/*#__PURE__*/ u(H,{name:E,"aria-hidden":`true`}),/*#__PURE__*/ u(`span`,{"data-bs-datepicker-display":``,children:e})]}))}return w===`div`?/*#__PURE__*/ u(k,s(o({},T,A),{ref:this.setRef})):/*#__PURE__*/ u(k,s(o({},O,A),{ref:this.setRef,className:f(x?`form-ghost`:`form-control`,S&&`form-control-${S}`,C&&`is-${C}`,n),"aria-invalid":C?C===`invalid`:O[`aria-invalid`],type:r?`text`:`date`,min:l,max:p}))}constructor(...e){var t;super(...e),t=this,i(this,`configurationChanged`,e=>e.options!==this.props.options||e.enhanced!==this.props.enhanced||e.inline!==this.props.inline||e.selectionMode!==this.props.selectionMode||e.displayMonthsCount!==this.props.displayMonthsCount||e.firstWeekday!==this.props.firstWeekday||e.placement!==this.props.placement||e.datepickerTheme!==this.props.datepickerTheme||e.min!==this.props.min||e.max!==this.props.max||JSON.stringify(e.selectedDates)!==JSON.stringify(this.props.selectedDates)),i(this,`load`,()=>z(function*(){let{enhanced:e,kind:n=`input`}=t.props;if(!e&&n===`input`)return()=>({dispose:()=>void 0});let{ReactDatepicker:r}=yield import(`./DatePickerPlugin-DB3nnslN.mjs`),{options:i,inline:a,selectionMode:s,min:c,max:l,displayMonthsCount:u,selectedDates:d,firstWeekday:f,placement:p,datepickerTheme:m}=t.props,h=o({},i,a!==void 0&&{inline:a},s!==void 0&&{selectionMode:s},c!==void 0&&{dateMin:String(c)},l!==void 0&&{dateMax:String(l)},u!==void 0&&{displayMonthsCount:u},d!==void 0&&{selectedDates:d},f!==void 0&&{firstWeekday:f},p!==void 0&&{placement:p},m!==void 0&&{datepickerTheme:m});return e=>{let n=[...e.childNodes],i=r.getOrCreateInstance(e,h);return e.addEventListener(`change.bs.datepicker`,t.handleDatesChange),{dispose:()=>{e.removeEventListener(`change.bs.datepicker`,t.handleDatesChange),i.dispose(),t.props.kind===`div`&&e.replaceChildren(...n)}}}})()),i(this,`handleDatesChange`,e=>{var t,n;return(t=(n=this.props).onDatesChange)==null?void 0:t.call(n,e.dates)}),i(this,`setRef`,e=>{this.element.current=e;let{forwardedRef:t}=this.props;typeof t==`function`?t(e):t&&(t.current=e)})}};const ec=B(/*#__PURE__*/ E((e,t)=>/*#__PURE__*/ u($s,s(o({},e),{forwardedRef:t}))));ec.displayName=`DatePicker`;const tc=B(/*#__PURE__*/ E((e,t)=>{let[n,...r]=[e,t],{as:i,options:a,inline:o,selectionMode:s,displayMonthsCount:l,selectedDates:d,firstWeekday:f,placement:p,datepickerTheme:m,onDatesChange:h,leadingIcon:g}=n,_=c(n,[`as`,`options`,`inline`,`selectionMode`,`displayMonthsCount`,`selectedDates`,`firstWeekday`,`placement`,`datepickerTheme`,`onDatesChange`,`leadingIcon`]),[v]=r;return/*#__PURE__*/ u($s,{as:i,kind:`button`,leadingIcon:g,hostProps:_,forwardedRef:v,options:a,inline:o,selectionMode:s,displayMonthsCount:l,selectedDates:d,firstWeekday:f,placement:p,datepickerTheme:m,onDatesChange:h})}));tc.displayName=`DatePickerButton`;const nc=B(/*#__PURE__*/ E((e,t)=>{let[n,...r]=[e,t],{as:i,options:a,selectionMode:o,displayMonthsCount:s,selectedDates:l,firstWeekday:d,placement:f,datepickerTheme:p,onDatesChange:m,inline:h=!0}=n,g=c(n,[`as`,`options`,`selectionMode`,`displayMonthsCount`,`selectedDates`,`firstWeekday`,`placement`,`datepickerTheme`,`onDatesChange`,`inline`]),[_]=r;return/*#__PURE__*/ u($s,{as:i,kind:`div`,hostProps:g,forwardedRef:_,options:a,inline:h,selectionMode:o,displayMonthsCount:s,selectedDates:l,firstWeekday:d,placement:f,datepickerTheme:p,onDatesChange:m})}));nc.displayName=`DatePickerInline`;const rc=B(e=>{let{as:t=`small`,className:n,block:r}=e,i=c(e,[`as`,`className`,`block`]);return/*#__PURE__*/ u(t,s(o({},i),{className:f(`form-text`,r&&`d-block`,n)}))});rc.displayName=`FormText`;const ic=B(e=>{let{as:t=`div`,className:n,type:r=`invalid`,tooltip:i}=e,a=c(e,[`as`,`className`,`type`,`tooltip`]);return/*#__PURE__*/ u(t,s(o({},a),{className:f({tooltip:i},i?`${r}-tooltip`:`${r}-feedback`,n)}))});ic.displayName=`FormFeedback`;const ac=B(e=>{let{as:t=`form`,className:n,validated:r}=e,i=c(e,[`as`,`className`,`validated`]);return/*#__PURE__*/ u(t,s(o({},i),{className:f(r&&`was-validated`,n)}))});ac.displayName=`Form`;const oc=B(e=>{let{as:t=`fieldset`}=e,n=c(e,[`as`]);return/*#__PURE__*/ u(t,o({},n))});oc.displayName=`FormFieldset`;const sc=B(e=>{let{as:t=`div`,className:n,card:r}=e,i=c(e,[`as`,`className`,`card`]);return/*#__PURE__*/ u(t,s(o({},i),{className:f(`form-field`,r&&`form-field-card`,n)}))});sc.displayName=`FormField`;const cc=B(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`form-group`,n)}))});cc.displayName=`FormGroup`;const lc=B(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`form-field-content`,n)}))});lc.displayName=`FormFieldContent`;const uc=B(e=>{let{as:t=`label`,className:n,plain:r,column:i,controlSize:a}=e,l=c(e,[`as`,`className`,`plain`,`column`,`controlSize`]);return/*#__PURE__*/ u(t,s(o({},l),{className:f(i?`col-form-label`:!r&&`form-label`,i&&a&&`col-form-label-${a}`,n)}))});uc.displayName=`FormLabel`;const dc=B(e=>{let{as:t=`legend`,className:n,column:r,controlSize:i}=e,a=c(e,[`as`,`className`,`column`,`controlSize`]);return/*#__PURE__*/ u(t,s(o({},a),{className:f(r&&`col-form-label`,r&&i&&`col-form-label-${i}`,n)}))});dc.displayName=`FormLegend`;const fc=e=>/*#__PURE__*/ D(e)&&(e.type===`label`||e.type===uc),pc=B(e=>{let{as:t=`div`,className:n,always:r,children:i}=e,a=c(e,[`as`,`className`,`always`,`children`]),l=y.toArray(i);return/*#__PURE__*/ d(t,s(o({},a),{className:f(`form-floating`,r&&`form-floating-always`,n),children:[l.filter(fc),l.filter(e=>!fc(e))]}))});pc.displayName=`FormFloatingLabel`;const mc=B(e=>{let{as:t=`div`,className:n,size:r}=e,i=c(e,[`as`,`className`,`size`]);return/*#__PURE__*/ u(t,s(o({},i),{className:f(`input-group`,r&&`input-group-${r}`,n)}))});mc.displayName=`InputGroup`;const hc=B(e=>{let{as:t,className:n}=e,r=c(e,[`as`,`className`]),i=t==null?typeof r.htmlFor==`string`?`label`:`span`:t;return/*#__PURE__*/ u(i,s(o({},r),{className:f(`input-group-text`,n)}))});hc.displayName=`InputGroupText`;const gc=B(e=>{let{as:t,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(V,s(o({as:t},r),{className:f(`input-group-btn`,n)}))});gc.displayName=`InputGroupButton`;const _c=B(e=>{let{as:t,children:n}=e,r=c(e,[`as`,`children`]),i=s(o({},n.props,r),{className:f(`input-group-ignore`,n.props.className)});return t?/*#__PURE__*/ w(t,i):/*#__PURE__*/ C(n,i)});_c.displayName=`InputGroupIgnore`;var vc=class extends Z{componentDidMount(){var e,t;this.root.current=(e=(t=this.trigger.current)==null?void 0:t.closest(`.input-group`))==null?null:e,super.componentDidMount()}render(){return/*#__PURE__*/ u(yc,s(o({},this.props),{owner:this}))}constructor(...e){super(...e),i(this,`handlePanelClick`,e=>{var t,n;(t=(n=this.props).onClick)==null||t.call(n,e),e.defaultPrevented||this.handleSelect(e)}),i(this,`handleTriggerKeyDown`,this.handleKeyDown),i(this,`handleBlur`,e=>{var t,n,r;(t=(n=this.props).onBlur)==null||t.call(n,e);let{autoClose:i=!0}=this.props;!e.defaultPrevented&&i!==!1&&i!==`inside`&&!((r=this.root.current)!=null&&r.contains(e.relatedTarget))&&this.setOpen(!1)})}};i(vc,`displayName`,`InputGroupMenu`);const yc=g(({owner:{open:e,trigger:t,panel:n,handleToggle:r,handleTriggerKeyDown:i,handleBlur:a,handlePanelClick:c,handleKeyDown:p},id:m,label:h,split:g,toggleProps:_,className:v,children:y,align:b=`end`,menuClassName:x})=>{var S;return/*#__PURE__*/ d(l,{children:[/*#__PURE__*/ u(V,s(o({},_),{ref:t,className:f(`input-group-btn`,g&&`menu-toggle-split`,_==null?void 0:_.className,v),"aria-label":g?(S=_==null?void 0:_[`aria-label`])==null?`Toggle menu`:S:_==null?void 0:_[`aria-label`],"aria-expanded":e,"aria-controls":m?`${m}-menu`:void 0,onClick:r,onKeyDown:i,onBlur:a,children:h})),/*#__PURE__*/ u(`div`,{ref:n,id:m?`${m}-menu`:void 0,className:f(`menu top-100`,b===`end`?`end-0`:`start-0`,e&&`show`,x),hidden:!e,onClick:c,onKeyDown:p,onBlur:a,children:y})]})});var bc=class extends ys{updatePlugin(){var e,t,n,r;let{value:i}=this.props,a=(t=this.element.current)==null?void 0:t.querySelector(`.otp-slots`);a==null||a.classList.add(`min-w-0`,`max-w-100`);for(let t of(e=a==null?void 0:a.querySelectorAll(`.otp-slot`))==null?[]:e)t.classList.add(`min-w-0`);i!==void 0&&((n=this.instance)==null?void 0:n.getValue())!==String(i)&&((r=this.instance)==null||r.setValue(String(i)))}dispose(){var e,t;(e=this.element.current)==null||e.removeEventListener(`complete.bs.otpInput`,this.handleComplete),(t=this.element.current)==null||t.removeEventListener(`input.bs.otpInput`,this.handleValueChange),super.dispose()}render(){let e=this.props,{as:t=`div`,className:n,wrapperClassName:r,length:i,type:a=`numeric`,mask:l,groups:d,separator:p,connected:m,size:h,validation:g,onComplete:_,onValueChange:v,forwardedRef:y,autoComplete:b=`one-time-code`}=e,x=c(e,[`as`,`className`,`wrapperClassName`,`length`,`type`,`mask`,`groups`,`separator`,`connected`,`size`,`validation`,`onComplete`,`onValueChange`,`forwardedRef`,`autoComplete`]);return/*#__PURE__*/ u(t,s(o({},this.props.as?x:{}),{ref:this.setRootRef,className:f(`otp min-w-0 max-w-100`,m&&`otp-connected`,h&&`otp-${h}`,g&&`is-${g}`,r),"data-bs-otp":``,"data-bs-length":i,"data-bs-type":a,"data-bs-mask":l||void 0,"data-bs-groups":d?JSON.stringify(d):void 0,"data-bs-separator":p,children:/*#__PURE__*/ u(`input`,s(o({},this.props.as?{}:x),{ref:this.props.as?void 0:this.forwardRef,name:x.name,type:`text`,maxLength:i,autoComplete:b,inputMode:a===`numeric`?`numeric`:`text`,"aria-invalid":g?g===`invalid`:x[`aria-invalid`],pattern:a===`numeric`?`[0-9]*`:a===`alpha`?`[A-Za-z]*`:`[A-Za-z0-9]*`,className:f(`otp-input`,n)}))}))}constructor(...e){var t;super(...e),t=this,i(this,`configurationChanged`,e=>e.length!==this.props.length||e.type!==this.props.type||e.mask!==this.props.mask||e.separator!==this.props.separator||JSON.stringify(e.groups)!==JSON.stringify(this.props.groups)),i(this,`load`,()=>z(function*(){let{default:e}=yield import(`bootstrap/js/src/otp-input.js`),{length:n,type:r=`numeric`,mask:i=!1,groups:a=null,separator:o=`·`}=t.props;return s=>(s.addEventListener(`complete.bs.otpInput`,t.handleComplete),s.addEventListener(`input.bs.otpInput`,t.handleValueChange),e.getOrCreateInstance(s,{length:n,type:r,mask:i,groups:a,separator:o}))})()),i(this,`handleComplete`,e=>{var t,n;return(t=(n=this.props).onComplete)==null?void 0:t.call(n,e.value)}),i(this,`handleValueChange`,e=>{var t,n;return(t=(n=this.props).onValueChange)==null?void 0:t.call(n,e.value)}),i(this,`forwardRef`,e=>{let{forwardedRef:t}=this.props;typeof t==`function`?t(e):t&&(t.current=e)}),i(this,`setRootRef`,e=>{this.element.current=e,this.props.as&&this.forwardRef(e)})}};const xc=B(/*#__PURE__*/ E((e,t)=>/*#__PURE__*/ u(bc,s(o({},e),{forwardedRef:t}))));xc.displayName=`OTPInput`;const Sc=[`weak`,`fair`,`good`,`strong`];var Cc=class extends b{componentDidMount(){this.mounted=!0,this.initialize()}componentDidUpdate(e){e.input!==this.props.input||e.minLength!==this.props.minLength||e.messages!==this.props.messages||e.weights!==this.props.weights||e.thresholds!==this.props.thresholds||e.scorer!==this.props.scorer||e.variant!==this.props.variant||e.strength!==this.props.strength||e.showText!==this.props.showText?(this.dispose(),this.initialize()):this.props.strength===void 0&&this.handleInput()}componentWillUnmount(){this.mounted=!1,this.dispose()}render(){var e,t;let n=this.props,{className:r,input:i,minLength:a,messages:p,weights:m,thresholds:h,scorer:g,forwardedRef:_,variant:v=`segments`,strength:y,showText:b=!0}=n,x=c(n,[`className`,`input`,`minLength`,`messages`,`weights`,`thresholds`,`scorer`,`forwardedRef`,`variant`,`strength`,`showText`]),S=v===`bar`,C=y?Sc.indexOf(y)+1:0;return/*#__PURE__*/ d(l,{children:[/*#__PURE__*/ u(`div`,s(o({},x),{ref:this.setMeterRef,className:f(S?`strength-bar`:`strength`,r),"data-bs-strength":y,role:`meter`,"aria-valuemin":0,"aria-valuemax":Sc.length,"aria-valuenow":C,"aria-valuetext":y||`Empty`,children:!S&&Sc.map((e,t)=>/*#__PURE__*/ u(`div`,{className:f(`strength-segment`,t<C&&`active`)},e))})),b&&/*#__PURE__*/ u(`span`,{className:`strength-text`,"data-bs-strength":y,children:y&&((e=(t=this.props.messages)==null?void 0:t[y])==null?y:e)})]})}constructor(...e){var t;super(...e),t=this,i(this,`meter`,void 0),i(this,`instance`,void 0),i(this,`instanceElement`,void 0),i(this,`passwordInput`,void 0),i(this,`mounted`,!1),i(this,`revision`,0),i(this,`initialize`,()=>z(function*(){var e,n,r;let i=++t.revision,a=t.meter;if(!a||t.props.strength!==void 0)return;let{default:s}=yield import(`bootstrap/js/src/strength.js`),{input:c,minLength:l,messages:u,weights:d,thresholds:f,scorer:p}=t.props,m=o({},c!==void 0&&{input:c},l!==void 0&&{minLength:l},u!==void 0&&{messages:o({},s.Default.messages,u)},d!==void 0&&{weights:d},f!==void 0&&{thresholds:f},p!==void 0&&{scorer:p});t.mounted&&t.meter===a&&i===t.revision&&(t.instanceElement=a,t.instance=s.getOrCreateInstance(a,m),t.passwordInput=typeof c==`string`?document.querySelector(c)||void 0:c||((e=a.parentElement)==null?void 0:e.querySelector(`input[type="password"]`))||void 0,(n=t.passwordInput)==null||n.addEventListener(`input`,t.handleInput),(r=t.passwordInput)==null||r.addEventListener(`change`,t.handleInput),t.handleInput())})()),i(this,`handleInput`,()=>{var e;let t=(e=this.instance)==null?void 0:e.getStrength(),n=t?Sc.indexOf(t)+1:0,r=this.instanceElement;r==null||r.setAttribute(`aria-valuenow`,String(n)),r==null||r.setAttribute(`aria-valuetext`,t||`Empty`)}),i(this,`dispose`,()=>{var e,t,n;this.revision++,(e=this.passwordInput)==null||e.removeEventListener(`input`,this.handleInput),(t=this.passwordInput)==null||t.removeEventListener(`change`,this.handleInput),(n=this.instance)==null||n.dispose(),this.instance=void 0,this.instanceElement=void 0,this.passwordInput=void 0}),i(this,`setMeterRef`,e=>{this.meter=e||void 0;let{forwardedRef:t}=this.props;typeof t==`function`?t(e):t&&(t.current=e)})}};const wc=/*#__PURE__*/ E((e,t)=>/*#__PURE__*/ u(Cc,s(o({},e),{forwardedRef:t})));wc.displayName=`PasswordStrength`;const Tc=B(e=>{let{as:t=`input`,className:n,size:r,theme:i,validation:a}=e,l=c(e,[`as`,`className`,`size`,`theme`,`validation`]);return/*#__PURE__*/ u(t,s(o({},l),{type:`radio`,"aria-invalid":a?a===`invalid`:l[`aria-invalid`],className:f(`radio`,r&&`radio-${r}`,i&&`theme-${i}`,a&&`is-${a}`,n)}))});Tc.displayName=`Radio`;const Ec=B(e=>{let{as:t,type:n=`checkbox`,indeterminate:r}=e,i=c(e,[`as`,`type`,`indeterminate`]);return n===`checkbox`?/*#__PURE__*/ u(vs,s(o({as:t},i),{indeterminate:r})):/*#__PURE__*/ u(Tc,o({as:t},i))});Ec.displayName=`FormCheck`;var Dc=class extends ys{dispose(){var e;(e=this.element.current)==null||e.removeEventListener(`changed.bs.range`,this.handleValueChange),super.dispose()}render(){var e;let t=this.props,{as:n=`div`,className:r,wrapperClassName:i,min:a=0,max:l=100,value:d,defaultValue:p,bubble:m,theme:h,formatter:g,onValueChange:_,forwardedRef:v,validation:y,style:b}=t,x=c(t,[`as`,`className`,`wrapperClassName`,`min`,`max`,`value`,`defaultValue`,`bubble`,`theme`,`formatter`,`onValueChange`,`forwardedRef`,`validation`,`style`]),S=Number((e=d==null?p:d)==null?(Number(a)+Number(l))/2:e),C=Number(l)<=Number(a)?0:Math.max(0,Math.min(1,(S-Number(a))/(Number(l)-Number(a))));return/*#__PURE__*/ u(n,s(o({},this.props.as?x:{}),{ref:this.setRootRef,className:f(`form-range`,h&&`theme-${h}`,y&&`is-${y}`,i),"data-bs-bubble":m||void 0,style:{"--bs-range-fill":C},children:/*#__PURE__*/ u(`input`,s(o({},this.props.as?{}:x),{ref:this.props.as?void 0:this.forwardRef,name:x.name,type:`range`,min:a,max:l,value:d,defaultValue:p,"aria-invalid":y?y===`invalid`:x[`aria-invalid`],className:f(`form-range-input`,y&&`is-${y}`,r),style:b}))}))}constructor(...e){var t;super(...e),t=this,i(this,`configurationChanged`,e=>e.bubble!==this.props.bubble||e.formatter!==this.props.formatter||e.list!==this.props.list||e.min!==this.props.min||e.max!==this.props.max),i(this,`load`,()=>z(function*(){let{default:e}=yield import(`bootstrap/js/src/range.js`),{bubble:n=!1,formatter:r=null}=t.props;return i=>(i.addEventListener(`changed.bs.range`,t.handleValueChange),e.getOrCreateInstance(i,{bubble:n,formatter:r}))})()),i(this,`updatePlugin`,()=>{var e;return(e=this.instance)==null?void 0:e.update()}),i(this,`handleValueChange`,e=>{var t,n;return(t=(n=this.props).onValueChange)==null?void 0:t.call(n,e.value)}),i(this,`forwardRef`,e=>{let{forwardedRef:t}=this.props;typeof t==`function`?t(e):t&&(t.current=e)}),i(this,`setRootRef`,e=>{this.element.current=e,this.props.as&&this.forwardRef(e)})}};const Oc=B(/*#__PURE__*/ E((e,t)=>/*#__PURE__*/ u(Dc,s(o({},e),{forwardedRef:t}))));Oc.displayName=`FormRange`;const kc=new Set((/* @__PURE__ */ `accessKey.accept.alt.autoCapitalize.autoComplete.autoFocus.capture.checked.contentEditable.contextMenu.defaultChecked.defaultValue.dir.dirName.disabled.draggable.enterKeyHint.form.formAction.formEncType.formMethod.formNoValidate.formTarget.hidden.height.id.inlist.inputMode.is.itemID.itemProp.itemRef.itemScope.itemType.lang.list.max.maxLength.min.minLength.multiple.name.nonce.pattern.part.popover.popoverTarget.popoverTargetAction.placeholder.about.content.datatype.prefix.property.radioGroup.readOnly.rel.resource.results.rev.role.required.slot.spellCheck.src.step.tabIndex.title.typeof.translate.value.vocab.width.autoCorrect.autoSave.color.security.unselectable.exportparts.inert.onAnimationEnd.onAnimationIteration.onAnimationStart.onAbort.onAuxClick.onBeforeInput.onBeforeToggle.onBlur.onCanPlay.onCanPlayThrough.onChange.onClick.onCompositionEnd.onCompositionStart.onCompositionUpdate.onContextMenu.onCopy.onCut.onDoubleClick.onDrag.onDragEnd.onDragEnter.onDragExit.onDragLeave.onDragOver.onDragStart.onDrop.onDurationChange.onEmptied.onEncrypted.onEnded.onError.onFocus.onGotPointerCapture.onInput.onInvalid.onKeyDown.onKeyPress.onKeyUp.onLoad.onLoadedData.onLoadedMetadata.onLoadStart.onLostPointerCapture.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onPaste.onPause.onPlay.onPlaying.onPointerCancel.onPointerDown.onPointerEnter.onPointerLeave.onPointerMove.onPointerOut.onPointerOver.onPointerUp.onProgress.onRateChange.onScroll.onSeeked.onSeeking.onSelect.onScrollEnd.onStalled.onSuspend.onTimeUpdate.onToggle.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onVolumeChange.onWaiting.onWheel`.split(`.`)).flatMap(e=>[e,`${e}Capture`]));function Ac(e){let t={},n={};for(let[r,i]of Object.entries(e))(kc.has(r)||r.startsWith(`aria-`)?t:n)[r]=i;return{inputProps:t,rootProps:n}}const jc=B(e=>{let{as:t=`label`,id:n,className:r,size:i,theme:a,validation:l,width:p,indicatorWidth:m,inputRef:h,inputId:g,inputClassName:_,inputStyle:v,style:y,children:b}=e,{inputProps:x,rootProps:S}=Ac(c(e,[`as`,`id`,`className`,`size`,`theme`,`validation`,`width`,`indicatorWidth`,`inputRef`,`inputId`,`inputClassName`,`inputStyle`,`style`,`children`])),{"aria-invalid":C}=x;return/*#__PURE__*/ d(t,s(o({id:n},S),{className:f(`switch`,i&&`switch-${i}`,a&&`theme-${a}`,l&&`is-${l}`,r),style:o({"--bs-switch-width":p,"--bs-switch-indicator-width":m},y),children:[/*#__PURE__*/ u(`input`,s(o({},x),{ref:h,id:g,role:`switch`,type:`checkbox`,className:f(l&&`is-${l}`,_),style:v,"aria-invalid":l?l===`invalid`:C})),b]}))});jc.displayName=`FormSwitch`;const Mc=B(e=>{let{as:t=`ul`,flush:n,numbered:r,horizontal:i,className:a}=e,l=c(e,[`as`,`flush`,`numbered`,`horizontal`,`className`]),d=f(`list-group`,{"list-group-flush":n,"list-group-numbered":r},i&&(i===!0?`list-group-horizontal`:`${i}:list-group-horizontal`),a);return/*#__PURE__*/ u(t,s(o({},l),{className:d}))});Mc.displayName=`ListGroup`;const Nc=e=>typeof e.href==`string`,Pc=e=>typeof e.type==`string`,Fc=B(e=>{let{as:t,theme:n,action:r,active:i,disabled:a,className:l}=e,d=c(e,[`as`,`theme`,`action`,`active`,`disabled`,`className`]),p=t==null?`a`:t,m=t==null?`button`:t,h=t==null?`li`:t,g=f(`list-group-item`,n&&`theme-${n}`,r&&`list-group-item-action`,{active:i,disabled:a},a&&`pe-none`,l);return Nc(d)?/*#__PURE__*/ u(p,s(o({},d),{className:g,href:a?void 0:d.href,"aria-current":i?`true`:void 0,"aria-disabled":a||void 0,tabIndex:a?-1:d.tabIndex,onClick:a?void 0:d.onClick})):Pc(d)?/*#__PURE__*/ u(m,s(o({},d),{type:d.type||`button`,className:g,"aria-current":i?`true`:void 0,disabled:a})):/*#__PURE__*/ u(h,s(o({},d),{className:g,"aria-current":i?`true`:void 0,"aria-disabled":a||void 0}))});Fc.displayName=`ListGroupItem`;const Ic=B(e=>{let{as:t=`nav`,expand:n,theme:r,translucent:i,className:a}=e,l=c(e,[`as`,`expand`,`theme`,`translucent`,`className`]);return/*#__PURE__*/ u(t,s(o({},l),{className:f(`navbar`,i&&`navbar-translucent`,n&&(n===!0?`navbar-expand`:`${n}:navbar-expand`),a),"data-bs-theme":r}))});Ic.displayName=`Navbar`;const Lc=B(e=>{let{as:t=`a`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`navbar-brand`,n)}))});Lc.displayName=`NavbarBrand`;const Rc=B(e=>{let{as:t=`ul`,variant:n,nav:r,className:i}=e,a=c(e,[`as`,`variant`,`nav`,`className`]);return/*#__PURE__*/ u(t,s(o({},a),{className:f(`navbar-nav`,(r||n)&&`nav`,n&&`nav-${n}`,i)}))});Rc.displayName=`NavbarNav`;const zc=B(e=>{let{as:t=`span`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`navbar-text`,n)}))});zc.displayName=`NavbarText`;const Bc=B(e=>{let{as:t,expanded:n,className:r,"aria-label":i=`Toggle navigation`}=e,a=c(e,[`as`,`expanded`,`className`,`aria-label`]);return/*#__PURE__*/ u(V,s(o({as:t},a),{type:`button`,className:f(`navbar-toggler`,r),"aria-label":i,"aria-expanded":n,icon:!0,children:/*#__PURE__*/ u(`span`,{className:`navbar-toggler-icon`,"aria-hidden":`true`})}))});Bc.displayName=`NavbarToggler`;var Vc,Hc,Uc,Wc,Gc,Kc,qc,Jc=/*#__PURE__*/ new WeakMap,Yc=/*#__PURE__*/ new WeakMap,Xc=/*#__PURE__*/ new WeakMap,Zc=class{get initialized(){return t(this,Jc)}set initialized(e){r(this,Jc,e)}get open(){return t(this,Yc)}set open(e){r(this,Yc,e)}get overflowIndices(){return t(this,Xc)}set overflowIndices(e){r(this,Xc,e)}constructor(){n(this,Jc,{writable:!0,value:(qc(this),Vc(this,!1))}),n(this,Yc,{writable:!0,value:Hc(this,!1)}),n(this,Xc,{writable:!0,value:Uc(this,[])}),i(this,`setOpen`,Wc(this,e=>this.open=e)),i(this,`toggle`,Gc(this,()=>this.open=!this.open)),i(this,`setOverflowIndices`,Kc(this,e=>{this.initialized=!0,this.overflowIndices=e}))}};({e:[Vc,Hc,Uc,Wc,Gc,Kc,qc]}=e(Zc,[[h,1,`initialized`],[h,1,`open`],[h,1,`overflowIndices`],[p,0,`setOpen`],[p,0,`toggle`],[p,0,`setOverflowIndices`]],[]));let Qc;var $c,el,tl,nl;let rl;new(Qc=($c=class extends (nl=b){get componentProps(){return this.props}componentDidMount(){if(this.updateOverflow(),window.addEventListener(`resize`,this.updateOverflow),document.addEventListener(`pointerdown`,this.handleOutside),typeof ResizeObserver<`u`){var e,t;this.resizeObserver=new ResizeObserver(this.updateOverflow),this.root.current&&this.resizeObserver.observe(this.root.current),this.nav.current&&this.resizeObserver.observe(this.nav.current);for(let n of(e=(t=this.nav.current)==null?void 0:t.children)==null?[]:e)this.resizeObserver.observe(n)}}componentDidUpdate(){this.updateOverflow()}componentWillUnmount(){var e;(e=this.resizeObserver)==null||e.disconnect(),window.removeEventListener(`resize`,this.updateOverflow),document.removeEventListener(`pointerdown`,this.handleOutside)}render(){var e;let t=(e=this.componentProps.as)==null?`div`:e,n=this.componentProps,{as:r,children:i,className:a,collapseBelow:l,fill:p,iconPlacement:m=`start`,justified:h,menuPlacement:g=`bottom-end`,menuStrategy:_=`absolute`,minimumVisibleItems:v,moreIcon:b,moreText:x=`More`,onClick:S,onKeyDown:C,onOverflowChange:w,threshold:T,"aria-label":E,variant:D}=n,O=c(n,[`as`,`children`,`className`,`collapseBelow`,`fill`,`iconPlacement`,`justified`,`menuPlacement`,`menuStrategy`,`minimumVisibleItems`,`moreIcon`,`moreText`,`onClick`,`onKeyDown`,`onOverflowChange`,`threshold`,`aria-label`,`variant`]),k=y.toArray(i),A=this.store.overflowIndices.length>0,j=`${this.componentProps.id}-menu`,[M,N]=g.split(`-`),P=M===`top`?[`bottom-100`,N===`end`?`end-0`:`start-0`]:M===`bottom`?[`top-100`,N===`end`?`end-0`:`start-0`]:M===`left`?[`end-100`,N===`end`?`bottom-0`:`top-0`]:[`start-100`,N===`end`?`bottom-0`:`top-0`],F=b==null?/*#__PURE__*/ u(H,{name:`three-dots`,"aria-hidden":`true`}):b,I=x===!1?null:x;return/*#__PURE__*/ u(t,s(o({},O),{ref:this.root,className:f(`nav-overflow d-flex align-items-start position-relative`,this.store.initialized&&`nav-overflow-initialized`,a),onClick:this.handleClick,onKeyDown:this.handleKeyDown,children:/*#__PURE__*/ d(X,{ref:this.nav,variant:D,fill:p,justified:h,"aria-label":E,className:`flex-nowrap flex-grow-1`,children:[k.map((e,t)=>this.renderChild(e,t)),/*#__PURE__*/ d(`div`,{className:f(`nav-item nav-overflow-item flex-shrink-0`,!A&&`position-absolute invisible`),"data-menu-placement":g,children:[/*#__PURE__*/ d(`button`,{ref:this.toggleButton,type:`button`,className:`nav-link`,"aria-haspopup":`menu`,"aria-expanded":this.store.open,"aria-controls":j,"aria-label":I?void 0:`More`,"data-overflow-toggle":!0,children:[m===`start`&&F,I,m===`end`&&F]}),/*#__PURE__*/ u(`div`,{id:j,className:f(`menu nav-overflow-menu`,P,_===`fixed`&&`position-fixed`,{show:this.store.open&&A}),role:`menu`,hidden:!this.store.open||!A,children:this.store.overflowIndices.map(e=>this.renderChild(k[e],e,!0))})]})]})}))}constructor(...e){super(...e),i(this,`root`,/*#__PURE__*/ T()),i(this,`nav`,/*#__PURE__*/ T()),i(this,`toggleButton`,/*#__PURE__*/ T()),i(this,`store`,new Zc),i(this,`resizeObserver`,void 0),i(this,`updateOverflow`,()=>{var e,t,n,r,i,a;let o=this.root.current,s=this.nav.current;if(!o||!s)return;let c=[...s.children].filter(e=>{var t;return e!==((t=this.toggleButton.current)==null?void 0:t.parentElement)}),l=c.map(e=>e.getBoundingClientRect().width||e.offsetWidth),u=Number.parseFloat(getComputedStyle(s).columnGap)||0,d=l.reduce((e,t)=>e+t,0)+u*Math.max(0,c.length-1),f=((n=this.toggleButton.current)==null?void 0:n.getBoundingClientRect().width)||((r=this.toggleButton.current)==null?void 0:r.offsetWidth)||0,p=o.clientWidth,m=this.getCollapseBelow(),h=m>0&&p>0&&p<m,g=c.map(e=>e.classList.contains(`nav-overflow-keep`)),_=c.map((e,t)=>t),v=Math.max(0,Math.min((e=(t=this.componentProps.minimumVisibleItems)==null?this.componentProps.threshold:t)==null?0:e,c.length)),y=d;if(h)for(let e=_.length-1;e>=0;e--)g[e]||_.splice(e,1);else if(p>0&&d>p)for(;y+f>p&&_.length>v;){let e=_.findLast(e=>!g[e]);if(e===void 0)break;y-=l[e]+(_.length>1?u:0),_.splice(_.indexOf(e),1)}let b=new Set(_),x=c.map((e,t)=>t).filter(e=>!b.has(e)),S=this.store.overflowIndices,C=S.length!==x.length||S.some((e,t)=>e!==x[t]);(!this.store.initialized||C)&&this.store.setOverflowIndices(x),C&&((i=(a=this.componentProps).onOverflowChange)==null||i.call(a,x.length,_.length))}),i(this,`getCollapseBelow`,()=>{let{collapseBelow:e=0}=this.componentProps;if(typeof e==`number`)return e;let t=getComputedStyle(this.root.current).getPropertyValue(`--bs-breakpoint-${e}`);return Number.parseFloat(t)||0}),i(this,`handleClick`,e=>{var t,n;(t=(n=this.componentProps).onClick)==null||t.call(n,e);let r=e.target instanceof Element?e.target:null;e.defaultPrevented||(r!=null&&r.closest(`[data-overflow-toggle]`)?this.store.toggle():r!=null&&r.closest(`.nav-overflow-menu`)&&!r.closest(`[aria-haspopup="true"]`)&&this.store.setOpen(!1))}),i(this,`handleKeyDown`,e=>{var t,n;if((t=(n=this.componentProps).onKeyDown)==null||t.call(n,e),!e.defaultPrevented){if(e.key===`Escape`&&this.store.open){var r;this.store.setOpen(!1),(r=this.toggleButton.current)==null||r.focus()}else e.key===`ArrowDown`&&e.target===this.toggleButton.current&&(e.preventDefault(),this.store.setOpen(!0),queueMicrotask(()=>{var e,t;return(t=this.root.current)==null||(e=t.querySelector(`.nav-overflow-menu a[href]:not([aria-disabled="true"]), .nav-overflow-menu button:not(:disabled)`))==null?void 0:e.focus()}))}}),i(this,`handleOutside`,e=>{var t;e.target instanceof Node&&!((t=this.root.current)!=null&&t.contains(e.target))&&this.store.setOpen(!1)}),i(this,`renderChild`,(e,t,n=!1)=>{if(!/*#__PURE__*/ D(e))return/*#__PURE__*/ u(`span`,{children:e},t);if(n)return e.type===Z?/*#__PURE__*/ C(e,{className:f(e.props.className,`nav-overflow-submenu`)}):/*#__PURE__*/ C(e,{className:f(e.props.className,`menu-item`),role:`menuitem`});let r=this.store.overflowIndices.includes(t);return/*#__PURE__*/ C(e,{className:f(e.props.className,r&&`position-absolute invisible`),"aria-hidden":r||void 0,tabIndex:r?-1:e.props.tabIndex})})}},{c:[rl,tl]}=e($c,[],[g],nl),$c),el=class extends a{constructor(){super(rl),i(this,`displayName`,`NavOverflow`),tl()}},i(el,Qc,void 0),el);const il=B(e=>{let{as:t=`ul`,theme:n,size:r,className:i}=e,a=c(e,[`as`,`theme`,`size`,`className`]);return/*#__PURE__*/ u(t,s(o({},a),{className:f(`pagination`,n&&`theme-${n}`,r&&`pagination-${r}`,i)}))});il.displayName=`Pagination`;const al=B(e=>{let{as:t=`li`,active:n,disabled:r,className:i,children:a}=e,l=c(e,[`as`,`active`,`disabled`,`className`,`children`]);var d,p;let m=/*#__PURE__*/ D(a)&&a.type===ol?/*#__PURE__*/ C(a,{active:(d=a.props.active)==null?n:d,disabled:(p=a.props.disabled)==null?r:p}):a;return/*#__PURE__*/ u(t,s(o({},l),{className:f(`page-item`,{active:n,disabled:r},i),children:m}))});al.displayName=`PageItem`;const ol=B(e=>{let{as:t,active:n,disabled:r,className:i,href:a,tabIndex:l,onClick:d,"aria-current":p}=e,m=c(e,[`as`,`active`,`disabled`,`className`,`href`,`tabIndex`,`onClick`,`aria-current`]);return/*#__PURE__*/ u(t==null?a===void 0?`span`:`a`:t,s(o({},m),{className:f(`page-link`,i),href:r?void 0:a,tabIndex:r?-1:l,"aria-disabled":r||void 0,"aria-current":p==null?n?`page`:void 0:p,onClick:r?void 0:d}))});ol.displayName=`PageLink`;const sl=B(e=>{let{as:t=`span`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`page-link`,n)}))});sl.displayName=`PageText`;const cl=B(e=>{let{as:t=`span`,size:n,animation:r,theme:i,width:a,className:l,style:d,"aria-hidden":p=!0}=e,m=c(e,[`as`,`size`,`animation`,`theme`,`width`,`className`,`style`,`aria-hidden`]);return/*#__PURE__*/ u(t,s(o({},m),{className:f(`placeholder`,n&&`placeholder-${n}`,r&&`placeholder-${r}`,i&&`bg-${i}`,l),style:o({width:a},d),"aria-hidden":p}))});cl.displayName=`Placeholder`;const ll=B(e=>{let{as:t=`div`,animation:n=`wave`,className:r}=e,i=c(e,[`as`,`animation`,`className`]);return/*#__PURE__*/ u(t,s(o({},i),{className:f(`placeholder-${n}`,r),"aria-hidden":`true`}))});ll.displayName=`PlaceholderAnimation`;const ul=B(e=>{let{as:t,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(V,s(o({as:t},r),{className:f(`placeholder`,n),"aria-hidden":`true`,disabled:!0}))});ul.displayName=`PlaceholderButton`;const dl=B(e=>{let{as:t=`div`,value:n,min:r=0,max:i=100,theme:a,striped:l,animated:d,barProps:p={},className:m,style:h,children:g}=e,_=c(e,[`as`,`value`,`min`,`max`,`theme`,`striped`,`animated`,`barProps`,`className`,`style`,`children`]);if(![n,r,i].every(Number.isFinite)||i<=r)throw RangeError(`Progress requires finite values and max greater than min`);let v=Math.min(i,Math.max(r,n)),y=`${(v-r)/(i-r)*100}%`,b=s(o({width:`min(100%, calc(var(--_progress-width) + var(--_progress-stack-offset, 100%)))`},h),{"--_progress-width":y}),{className:x,style:S}=p,C=c(p,[`className`,`style`]);return/*#__PURE__*/ u(t,s(o({},_),{className:f(`progress`,m),style:b,role:`progressbar`,"aria-valuenow":v,"aria-valuemin":r,"aria-valuemax":i,children:/*#__PURE__*/ u(`div`,s(o({},C),{className:f(`progress-bar`,a&&`theme-${a}`,{"progress-bar-striped":l||d,"progress-bar-animated":d},x),style:o({width:`var(--_progress-bar-width, ${y})`},S),children:g}))}))});dl.displayName=`Progress`;const fl=B(e=>{let{as:t=`div`,className:n,style:r}=e,i=c(e,[`as`,`className`,`style`]);return/*#__PURE__*/ u(t,s(o({},i),{className:f(`progress-stacked`,n),style:o({"--_progress-stack-offset":`0%`,"--_progress-bar-width":`100%`},r)}))});fl.displayName=`ProgressStack`;var pl,ml,hl,gl,_l,vl=/*#__PURE__*/ new WeakMap,yl=/*#__PURE__*/ new WeakMap,bl=class{get activeId(){return t(this,vl)}set activeId(e){r(this,vl,e)}get guides(){return t(this,yl)}set guides(e){r(this,yl,e)}constructor(){n(this,vl,{writable:!0,value:(_l(this),pl(this,``))}),n(this,yl,{writable:!0,value:ml(this)}),i(this,`setGuides`,hl(this,e=>this.guides=e)),i(this,`setActiveId`,gl(this,e=>this.activeId=e))}};({e:[pl,ml,hl,gl,_l]}=e(bl,[[h,1,`activeId`],[h,1,`guides`],[p,0,`setGuides`],[p,0,`setActiveId`]],[]));let xl;var Sl,Cl,wl,Tl;let El;new(xl=(Sl=class extends (Tl=b){get componentProps(){return this.props}componentDidMount(){var e;this.mounted=!0,this.refresh(),(e=this.root.current)==null||e.addEventListener(`scroll`,this.handleScroll,{passive:!0}),window.addEventListener(`scroll`,this.handleScroll,{passive:!0}),window.addEventListener(`resize`,this.handleResize),document.addEventListener(`click`,this.handleNavigationClick)}componentDidUpdate(e){(e.children!==this.componentProps.children||e.target!==this.componentProps.target||e.rootMargin!==this.componentProps.rootMargin||e.topMargin!==this.componentProps.topMargin||e.threshold!==this.componentProps.threshold||e.scrollRoot!==this.componentProps.scrollRoot)&&this.refresh(),e.debug!==this.componentProps.debug&&this.updateGuides()}componentWillUnmount(){var e,t,n;this.mounted=!1,(e=this.observer)==null||e.disconnect(),(t=this.bottomObserver)==null||t.disconnect(),(n=this.root.current)==null||n.removeEventListener(`scroll`,this.handleScroll),window.removeEventListener(`scroll`,this.handleScroll),window.removeEventListener(`resize`,this.handleResize),document.removeEventListener(`click`,this.handleNavigationClick)}render(){var e,t,n;let r=(e=this.componentProps.as)==null?`div`:e,i=this.componentProps,{as:a,children:l,className:p,debug:m,onActiveChange:h,onClick:g,onKeyDown:_,rootMargin:v,scrollRoot:y,smoothScroll:b,target:x,threshold:S,topMargin:C}=i,w=c(i,[`as`,`children`,`className`,`debug`,`onActiveChange`,`onClick`,`onKeyDown`,`rootMargin`,`scrollRoot`,`smoothScroll`,`target`,`threshold`,`topMargin`]);return/*#__PURE__*/ d(r,s(o({},w),{ref:this.root,className:f(`scrollspy`,p),"data-active-id":this.store.activeId||void 0,"data-bs-root-margin":(t=this.componentProps.rootMargin)==null?void 0:t,tabIndex:(n=this.componentProps.tabIndex)==null?0:n,onClick:this.componentProps.onClick,onKeyDown:this.componentProps.onKeyDown,children:[l,/*#__PURE__*/ u(`div`,{ref:this.sentinel,className:`position-relative invisible m-0 border-0 p-0 w-0 h-0`,"aria-hidden":`true`}),this.renderDebug()]}))}constructor(...e){super(...e),i(this,`root`,/*#__PURE__*/ T()),i(this,`store`,new bl),i(this,`entries`,[]),i(this,`observer`,void 0),i(this,`bottomObserver`,void 0),i(this,`intersecting`,/* @__PURE__ */ new Set),i(this,`atBottom`,!1),i(this,`mounted`,!1),i(this,`sentinel`,/*#__PURE__*/ T()),i(this,`refresh`,()=>{var e;let t=this.root.current;if(!t)return;let n=this.componentProps.target?document.querySelector(this.componentProps.target):t,r=[...(e=n==null?void 0:n.querySelectorAll(`a[href^="#"]`))==null?[]:e];this.entries=r.flatMap(e=>{var t;let n=(t=e.getAttribute(`href`))==null?void 0:t.slice(1);if(!n)return[];let r=decodeURIComponent(n),i=document.getElementById(r);return!i||i.hidden||i.closest(`[hidden]`)||i.getAttribute(`aria-hidden`)===`true`||getComputedStyle(i).display===`none`||getComputedStyle(i).visibility===`hidden`?[]:[{id:r,link:e,section:i}]}),this.entries.sort((e,t)=>e.section.getBoundingClientRect().top-t.section.getBoundingClientRect().top),this.rebuildObservers(),this.updateActive(),this.updateGuides()}),i(this,`handleResize`,()=>{this.rebuildObservers(),this.updateGuides()}),i(this,`handleScroll`,()=>this.updateGuides()),i(this,`getRootHeight`,()=>{var e,t;return this.componentProps.scrollRoot===`window`?document.documentElement.clientHeight||window.innerHeight:(e=(t=this.root.current)==null?void 0:t.clientHeight)==null?0:e}),i(this,`getRootMargin`,()=>{if(this.componentProps.rootMargin!=null)return this.componentProps.rootMargin;let{topMargin:e=`12%`}=this.componentProps,t=Number.parseFloat(e)||0,n=this.getRootHeight(),r=e.endsWith(`%`)?t:n?t/n*100:12;return`0px 0px -${Math.min(Math.max(100-r,0),100)}% 0px`}),i(this,`rebuildObservers`,()=>{var e,t,n;(t=this.observer)==null||t.disconnect(),(n=this.bottomObserver)==null||n.disconnect(),this.intersecting.clear(),this.atBottom=!1;let r=this.componentProps.scrollRoot===`window`?null:this.root.current,i=new window.IntersectionObserver(e=>{if(this.mounted&&this.observer===i){for(let t of e)t.isIntersecting?this.intersecting.add(t.target):this.intersecting.delete(t.target);this.updateActive()}},{root:r,rootMargin:this.getRootMargin(),threshold:(e=this.componentProps.threshold)==null?[0]:e});this.observer=i;for(let e of new Set(this.entries.map(e=>e.section)))i.observe(e);let a=new window.IntersectionObserver(e=>{var t,n;if(!this.mounted||this.bottomObserver!==a)return;let i=(t=r==null?document.scrollingElement:r)==null?document.documentElement:t;this.atBottom=!!((n=e.at(-1))!=null&&n.isIntersecting)&&i.scrollHeight>i.clientHeight,this.updateActive(),this.updateGuides()},{root:r,threshold:[0]});this.bottomObserver=a,this.sentinel.current&&a.observe(this.sentinel.current)}),i(this,`handleNavigationClick`,e=>{if(!this.componentProps.smoothScroll||e.defaultPrevented)return;let t=e.target instanceof Element?e.target.closest(`a[href^="#"]`):null,n=this.entries.find(e=>e.link===t);if(!t||!n)return;e.preventDefault();let r=this.root.current,{scrollRoot:i=`self`}=this.componentProps;if(i===`window`)window.scrollTo({top:window.scrollY+n.section.getBoundingClientRect().top,behavior:`smooth`});else if(r){let e=r.scrollTop+n.section.getBoundingClientRect().top-r.getBoundingClientRect().top;r.scrollTo({top:e,behavior:`smooth`})}window.history.replaceState(null,``,`#${encodeURIComponent(n.id)}`);let a=!n.section.hasAttribute(`tabindex`);a&&(n.section.tabIndex=-1),n.section.focus({preventScroll:!0}),a&&n.section.removeAttribute(`tabindex`),this.updateActive()}),i(this,`getActivationLine`,e=>{var t;let n=this.getRootMargin().trim().split(/\s+/),r=(t=n[2])==null?n[0]:t,i=Number.parseFloat(r)||0;return e+(r.endsWith(`%`)?e*i/100:i)}),i(this,`updateGuides`,()=>{let e=this.root.current;if(!this.componentProps.debug||!e)return this.store.setGuides(void 0);let t=e.getBoundingClientRect(),n=this.getRootHeight();this.store.setGuides({top:this.componentProps.scrollRoot===`window`?0:t.top,left:this.componentProps.scrollRoot===`window`?0:t.left,width:this.componentProps.scrollRoot===`window`?window.innerWidth:e.clientWidth,height:n,line:this.getActivationLine(n),atBottom:this.atBottom})}),i(this,`updateActive`,()=>{var e,t,n,r,i,a;if(!this.root.current||!this.entries.length)return;let o=this.entries.at(-1),s=(e=(t=(n=this.atBottom?o:void 0)==null?[...this.entries].reverse().find(({section:e})=>this.intersecting.has(e)):n)==null?this.entries.find(e=>e.id===this.store.activeId):t)==null?this.entries[0]:e,c=new Set(this.entries.filter(e=>e.id===s.id).map(e=>e.link)),l=s.link.closest(`.nav`),u=l==null||(r=l.parentElement)==null?void 0:r.closest(`.nav`);for(;u&&u!==this.root.current;){var d;let e=[...this.entries].reverse().find(e=>e.link.closest(`.nav`)===u&&!!(e.section.compareDocumentPosition(s.section)&Node.DOCUMENT_POSITION_FOLLOWING));e&&c.add(e.link),l=u,u=(d=l.parentElement)==null?void 0:d.closest(`.nav`)}for(let{link:e}of this.entries){let t=c.has(e);e.classList.toggle(`active`,t),t?e.setAttribute(`aria-current`,`location`):e.removeAttribute(`aria-current`)}s.id!==this.store.activeId&&(this.store.setActiveId(s.id),(i=(a=this.componentProps).onActiveChange)==null||i.call(a,s.id))}),i(this,`renderDebug`,()=>{let e=this.store.guides;if(!this.componentProps.debug||!e)return null;let{top:t,left:n,width:r,height:i,line:a,atBottom:o}=e;return/*#__PURE__*/ xe(/*#__PURE__*/ d(`div`,{className:`position-fixed overflow-hidden pe-none`,style:{top:t,left:n,width:r,height:i,zIndex:1080},"aria-hidden":`true`,"data-scrollspy-debug":!0,children:[/*#__PURE__*/ u(`div`,{className:`position-absolute start-0 end-0 border-top border-danger border-2`,style:{top:a,borderTopStyle:`dashed`},"data-scrollspy-line":!0}),/*#__PURE__*/ u(`div`,{className:`position-absolute bottom-0 start-0 end-0 border-top border-danger`,style:{height:12,borderTop:`1px solid #dc3545`,background:o?`rgb(220 53 69 / 40%)`:`rgb(220 53 69 / 10%)`},"data-scrollspy-bottom":o?`reached`:`pending`})]}),document.body)})}},{c:[El,wl]}=e(Sl,[],[g],Tl),Sl),Cl=class extends a{constructor(){super(El),i(this,`displayName`,`ScrollSpy`),wl()}},i(Cl,xl,void 0),Cl);const Dl=B(e=>{let{as:t=`div`,direction:n=`vertical`,gap:r,className:i}=e,a=c(e,[`as`,`direction`,`gap`,`className`]);return/*#__PURE__*/ u(t,s(o({},a),{className:f(n===`horizontal`?`hstack`:`vstack`,r!==void 0&&`gap-${r}`,i)}))});Dl.displayName=`Stack`;const Ol=(e,t)=>f(`stepper`,e===!0?`stepper-horizontal`:e&&`${e}:stepper-horizontal`,t),kl=B(e=>{let{as:t=`ol`,horizontal:n,className:r}=e,i=c(e,[`as`,`horizontal`,`className`]);return/*#__PURE__*/ u(t,s(o({},i),{className:Ol(n,r)}))});kl.displayName=`Stepper`;const Al=B(e=>{let{as:t=`nav`,horizontal:n,className:r}=e,i=c(e,[`as`,`horizontal`,`className`]);return/*#__PURE__*/ u(t,s(o({},i),{className:Ol(n,r)}))});Al.displayName=`StepperNav`;const jl=B(e=>{let{as:t=`li`,active:n,theme:r,className:i}=e,a=c(e,[`as`,`active`,`theme`,`className`]);return/*#__PURE__*/ u(t,s(o({},a),{className:f(`stepper-item`,{active:n},r&&`theme-${r}`,i)}))});jl.displayName=`StepperItem`;const Ml=B(e=>{let{as:t=`a`,active:n,theme:r,className:i}=e,a=c(e,[`as`,`active`,`theme`,`className`]);return/*#__PURE__*/ u(t,s(o({},a),{className:f(`stepper-item`,{active:n},r&&`theme-${r}`,i)}))});Ml.displayName=`StepperLink`;const Nl=B(e=>{let{as:t=`button`,active:n,theme:r,className:i,type:a=`button`}=e,l=c(e,[`as`,`active`,`theme`,`className`,`type`]);return/*#__PURE__*/ u(t,s(o({},l),{type:a,className:f(`stepper-item p-0 border-0 bg-transparent`,{active:n},r&&`theme-${r}`,i)}))});Nl.displayName=`StepperButton`;const Pl=B(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`stepper-overflow`,n)}))});Pl.displayName=`StepperOverflow`;let Fl;var Il,Ll,Rl,zl,Bl,Vl,Hl,Ul;const Wl=B(e=>{let{as:t=`div`,eventKey:n,label:r,disabled:i}=e,a=c(e,[`as`,`eventKey`,`label`,`disabled`]);return/*#__PURE__*/ u(t,o({},a))});Wl.displayName=`Tab`;let Gl;new(Fl=(Il=/*#__PURE__*/ new WeakMap,Ll=class extends (Bl=b){get componentProps(){return this.props}get tabs(){return y.toArray(this.componentProps.children).filter(e=>typeof e!=`string`||e.trim()).map(e=>{if(!/*#__PURE__*/ D(e)||typeof e.props.eventKey!=`string`||!(`label`in e.props))throw TypeError(`Tabs children must be Tab elements.`);return e})}get selectedKey(){return t(this,Il)}set selectedKey(e){r(this,Il,e)}get activeKey(){var e,t,n;let r=(e=this.componentProps.activeKey)==null?this.selectedKey:e;return this.tabs.some(({props:e})=>e.eventKey===r&&!e.disabled)?r:(t=(n=this.tabs.find(({props:e})=>!e.disabled))==null?void 0:n.props.eventKey)==null?``:t}render(){var e;let t=(e=this.componentProps.as)==null?`div`:e,n=this.componentProps,{as:r,activeKey:i,className:a,defaultActiveKey:l,fade:u,onChange:f,onClick:p,onKeyDown:m,id:h,orientation:g,children:_,variant:v}=n,y=c(n,[`as`,`activeKey`,`className`,`defaultActiveKey`,`fade`,`onChange`,`onClick`,`onKeyDown`,`id`,`orientation`,`children`,`variant`]);return/*#__PURE__*/ d(t,s(o({},y),{ref:this.root,id:this.componentProps.id,className:a,onClick:this.handleClick,onKeyDown:this.handleKeyDown,children:[this.renderTabs(),this.renderPanels()]}))}constructor(...e){var t,r,a,o,s;super(...e),i(this,`root`,(Ul(this),/*#__PURE__*/ T())),n(this,Il,{writable:!0,value:Vl(this,(t=(r=(a=this.componentProps.defaultActiveKey)==null?(o=this.tabs.find(({props:e})=>!e.disabled))==null?void 0:o.props.eventKey:a)==null?(s=this.tabs[0])==null?void 0:s.props.eventKey:r)==null?``:t)}),i(this,`handleClick`,e=>{var t,n,r;if((t=(n=this.componentProps).onClick)==null||t.call(n,e),e.defaultPrevented)return;let i=e.target.closest(`[data-tab-index]`),a=i&&((r=this.tabs[Number(i.dataset.tabIndex)])==null?void 0:r.props);a&&!a.disabled&&this.activate(a.eventKey)}),i(this,`handleKeyDown`,e=>{var t,n,r,i;if((t=(n=this.componentProps).onKeyDown)==null||t.call(n,e),e.defaultPrevented)return;let a=e.target.closest(`[data-tab-index]`),o=Number(a==null?void 0:a.dataset.tabIndex),{tabs:s}=this;if(!a||Number.isNaN(o))return;let c=this.componentProps.orientation!==`vertical`,l=c?e.key===`ArrowLeft`:e.key===`ArrowUp`,u=c?e.key===`ArrowRight`:e.key===`ArrowDown`,d=s.map(({props:e},t)=>e.disabled?-1:t).filter(e=>e>=0),f=d.indexOf(o),p=e.key===`Home`?d[0]:e.key===`End`?d.at(-1):l?d[(f-1+d.length)%d.length]:u?d[(f+1)%d.length]:void 0;if(p===void 0)return;e.preventDefault();let m=s[p];this.activate(m.props.eventKey),(i=this.root.current)==null||(r=i.querySelector(`[data-tab-index="${p}"]`))==null||r.focus()}),i(this,`activate`,Hl(this,e=>{var t,n;(t=(n=this.componentProps).onChange)==null||t.call(n,e),this.componentProps.activeKey===void 0&&(this.selectedKey=e)})),i(this,`tabId`,e=>`${this.componentProps.id}-tab-${encodeURIComponent(e)}`),i(this,`panelId`,e=>`${this.componentProps.id}-panel-${encodeURIComponent(e)}`),i(this,`renderTabs`,()=>{var e;let{orientation:t=`horizontal`,variant:n=`tabs`}=this.componentProps,r=n===`list-group`;return/*#__PURE__*/ u(`div`,{className:f(r?`list-group`:`nav`,!r&&`nav-${n}`,t===`vertical`&&(r?`flex-column`:n===`pills`?`nav-pills-vertical`:`flex-column`)),role:`tablist`,"aria-label":(e=this.componentProps[`aria-label`])==null?`Tabs`:e,"aria-orientation":t,children:this.tabs.map(({props:e},t)=>{let n=e.eventKey===this.activeKey;return/*#__PURE__*/ u(`button`,{id:this.tabId(e.eventKey),type:`button`,role:`tab`,"data-tab-index":t,"aria-controls":this.panelId(e.eventKey),"aria-selected":n,"aria-disabled":e.disabled||void 0,tabIndex:n?0:-1,disabled:e.disabled,className:f(r?`list-group-item list-group-item-action`:`nav-link`,{active:n},e.disabled&&`disabled`),children:e.label},e.eventKey)})})}),i(this,`renderPanels`,()=>{let{fade:e=!0}=this.componentProps;return/*#__PURE__*/ u(`div`,{className:`tab-content`,children:this.tabs.map(t=>{var n;let{eventKey:r,className:i}=t.props,a=r===this.activeKey;return/*#__PURE__*/ C(t,{key:r,id:this.panelId(r),role:`tabpanel`,"aria-labelledby":this.tabId(r),"aria-hidden":!a,tabIndex:(n=t.props.tabIndex)==null?0:n,className:f(`tab-pane`,{active:a,show:a&&e},!e&&`tab-pane-instant`,i),hidden:!a})})})})}},{e:[Vl,Hl,Ul],c:[Gl,zl]}=e(Ll,[[h,1,`selectedKey`],[p,0,`activate`]],[g],Bl),Ll),Rl=class extends a{constructor(){super(Gl),i(this,`displayName`,`Tabs`),zl()}},i(Rl,Fl,void 0),Rl);var Kl,ql;const Jl={"top-start":`top-0 start-0`,"top-center":`top-0 start-50 translate-middle-x`,"top-end":`top-0 end-0`,"middle-start":`top-50 start-0 translate-middle-y`,"middle-center":`top-50 start-50 translate-middle`,"middle-end":`top-50 end-0 translate-middle-y`,"bottom-start":`bottom-0 start-0`,"bottom-center":`bottom-0 start-50 translate-middle-x`,"bottom-end":`bottom-0 end-0`},Yl=B(e=>{let{as:t=`div`,position:n=`top-end`,className:r,"aria-live":i=`polite`,"aria-atomic":a=!0}=e,l=c(e,[`as`,`position`,`className`,`aria-live`,`aria-atomic`]),d=n===`static`;return/*#__PURE__*/ u(t,s(o({},l),{className:f(`toast-container`,!d&&`position-fixed`,!d&&`p-3`,d?`position-static`:Jl[n],r),"aria-live":i,"aria-atomic":a}))});Yl.displayName=`ToastContainer`;const Xl=B(e=>{let{as:t=`div`,theme:n,show:r=!0,translucent:i,instant:a,role:l=`status`,className:d}=e,p=c(e,[`as`,`theme`,`show`,`translucent`,`instant`,`role`,`className`]);return/*#__PURE__*/ u(t,s(o({},p),{className:f(`toast`,{show:r,"toast-translucent":i,"toast-instant":a},n&&`theme-${n}`,d),role:l}))});Xl.displayName=`ToastItem`;const Zl=B(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`toast-header`,n)}))});Zl.displayName=`ToastHeader`;const Ql=B(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`toast-body`,n)}))});Ql.displayName=`ToastBody`;var $l=/*#__PURE__*/ new WeakMap,eu=class{get messages(){return t(this,$l)}set messages(e){r(this,$l,e)}open(e){var t,n;let r=(t=e.id)==null?pe():t;this.close(r);let i=Date.now(),{promise:a,resolve:c}=Promise.withResolvers(),l=e.delay===0?void 0:setTimeout(()=>this.close(r),(n=e.delay)==null?3e3:n),u=s(o({},e),{id:r,openedAt:i,resolve:c,timer:l});return this.messages=[...this.messages,u],a}close(e){let t=this.messages.find(t=>t.id===e);if(!t)return;let{resolve:n,timer:r}=t,i=c(t,[`resolve`,`timer`]);clearTimeout(r),n==null||n(s(o({},i),{closedAt:Date.now()})),this.messages=this.messages.filter(t=>t.id!==e)}constructor(e=oe){i(this,`TimeScalar`,void 0),n(this,$l,{writable:!0,value:void 0}),i(this,`Component`,void 0),i(this,`renderMessage`,void 0),i(this,`handleDismiss`,void 0),this.TimeScalar=e,r(this,$l,(ql(this),Kl(this,[]))),this.Component=g(({position:e})=>/*#__PURE__*/ u(Yl,{position:e,onClick:this.handleDismiss,children:this.messages.map(this.renderMessage)})),this.renderMessage=({id:e,openedAt:t,title:n,body:r,theme:i,translucent:a,instant:o,role:s,delay:c=3e3})=>{let l=!!n||c===0,f=this.TimeScalar.distanceOf(Date.now(),t).toShortString();return/*#__PURE__*/ d(Xl,{theme:i,translucent:a,instant:o,role:s,children:[l&&/*#__PURE__*/ d(Zl,{children:[/*#__PURE__*/ u(`strong`,{className:`me-auto`,children:n}),/*#__PURE__*/ u(`small`,{children:f}),/*#__PURE__*/ u(U,{"data-toast-dismiss":e})]}),/*#__PURE__*/ u(Ql,{children:r})]},e)},this.handleDismiss=({target:e})=>{var t;if(!(e instanceof Element))return;let n=(t=e.closest(`[data-toast-dismiss]`))==null?void 0:t.dataset.toastDismiss;n&&this.close(n)},this.Component.displayName=`ToastComponent`}};({e:[Kl,ql]}=e(eu,[[h,1,`messages`],[p,2,`open`],[p,2,`close`]],[]));const tu=B(e=>{let{as:t=`label`,type:n=`checkbox`,variant:r=`solid`,className:i,theme:a,name:l,value:p,checked:m,defaultChecked:h,disabled:g,required:_,size:v,inputRef:y,inputClassName:b,inputStyle:x,children:S,onChange:C}=e,w=c(e,[`as`,`type`,`variant`,`className`,`theme`,`name`,`value`,`checked`,`defaultChecked`,`disabled`,`required`,`size`,`inputRef`,`inputClassName`,`inputStyle`,`children`,`onChange`]);var T;let{inputProps:E,rootProps:D}=Ac(w);return/*#__PURE__*/ d(t,s(o({},D),{className:f(`btn-check`,`btn-${r}`,a&&`theme-${a}`,v&&`btn-${v}`,i),children:[/*#__PURE__*/ u(`input`,s(o({},E),{ref:y,className:b,style:x,type:n,name:l,value:p,checked:m,defaultChecked:h,disabled:g,required:_,autoComplete:(T=E.autoComplete)==null?`off`:T,onChange:C})),S]}))});tu.displayName=`ToggleButton`;var nu=class extends b{get componentProps(){return this.props}render(){var e,t;let n=this.componentProps,{as:r=`button`,target:i,attribute:a,value:l,onToggled:d,theme:p,variant:m,disabled:h}=n,g=c(n,[`as`,`target`,`attribute`,`value`,`onToggled`,`theme`,`variant`,`disabled`]);return r===`button`?/*#__PURE__*/ u(V,s(o({},g),{theme:p,variant:m,disabled:h,onClick:this.handleClick})):/*#__PURE__*/ u(r,s(o({},g),{className:f(p&&`theme-${p}`,m&&`btn-${m}`,g.className),role:(e=g.role)==null?`button`:e,tabIndex:h?-1:(t=g.tabIndex)==null?0:t,"aria-disabled":h||void 0,onClick:this.handleClick,onKeyDown:this.handleKeyDown}))}constructor(...e){super(...e),i(this,`handleClick`,e=>{var t,n;if((t=(n=this.componentProps).onClick)==null||t.call(n,e),e.defaultPrevented||this.componentProps.disabled)return;let{target:r,attribute:i=`class`,value:a,onToggled:o}=this.componentProps,s=r?[...document.querySelectorAll(r)]:[e.currentTarget],c=s.map(e=>{var t,n;return{element:e,attribute:(t=e.dataset.bsAttribute)==null?i:t,value:(n=e.dataset.bsValue)==null?a:n}});if(c.some(({attribute:e})=>e.toLowerCase()===`id`))throw TypeError(`Toggler cannot change the id attribute`);for(let{element:e,attribute:t,value:n}of c){if(n==null)continue;let r=String(n),i=new window.CustomEvent(`toggle.bs.toggler`,{cancelable:!0});if(e.dispatchEvent(i)){if(t===`class`)for(let t of r.split(/\s+/).filter(Boolean))e.classList.toggle(t);else e.getAttribute(t)===r?e.removeAttribute(t):e.setAttribute(t,r);e.dispatchEvent(new window.CustomEvent(`toggled.bs.toggler`))}}o==null||o(s)}),i(this,`handleKeyDown`,e=>{var t,n;(t=(n=this.componentProps).onKeyDown)==null||t.call(n,e),e.defaultPrevented||this.componentProps.disabled||e.key!==`Enter`&&e.key!==` `||(e.preventDefault(),e.currentTarget.click())})}};i(nu,`displayName`,`Toggler`);export{Ie as Accordion,ze as AccordionBody,Re as AccordionHeader,Le as AccordionItem,Be as AccordionToggle,W as Alert,Qe as AlertHeading,Ze as AlertLink,et as Avatar,tt as AvatarImage,nt as AvatarStack,it as Badge,at as Breadcrumb,ct as BreadcrumbDivider,ot as BreadcrumbItem,st as BreadcrumbLink,V as Button,lt as ButtonGroup,De as ButtonInput,ut as ButtonToolbar,dt as Card,_t as CardBody,vt as CardFooter,mt as CardGroup,gt as CardHeader,ft as CardImage,ht as CardImageOverlay,pt as CardSubtitle,bt as CardText,yt as CardTitle,Bt as Carousel,zt as CarouselSlide,vs as Checkbox,Ss as Chip,Ts as ChipDismiss,Cs as ChipIcon,ws as ChipImage,xs as ChipInput,Ds as ChipInputLabel,Es as ChipToken,Fn as ClickBoundary,U as CloseButton,Wr as CodeBlock,is as Col,ln as Collapse,un as CollapseToggle,Js as Combobox,Gs as ComboboxGroup,Ws as ComboboxOption,ns as Container,ei as Countdown,ec as DatePicker,tc as DatePickerButton,nc as DatePickerInline,si as Dialog,_n as DialogBody,ii as DialogClose,vn as DialogFooter,hn as DialogHeader,gn as DialogTitle,Pn as Drawer,jn as DrawerBody,Mn as DrawerFooter,kn as DrawerHeader,An as DrawerTitle,_i as Editor,yi as EditorHTML,Y as FloatingPosition,ac as Form,ps as FormAdornment,hs as FormAdornmentIcon,ms as FormAdornmentText,Ec as FormCheck,Xs as FormControl,ic as FormFeedback,sc as FormField,lc as FormFieldContent,oc as FormFieldset,pc as FormFloatingLabel,gs as FormGhost,cc as FormGroup,uc as FormLabel,dc as FormLegend,Oc as FormRange,Qs as FormSelect,jc as FormSwitch,rc as FormText,Zs as FormTextArea,bi as HorizontalMarquee,xi as HorizontalMarqueeBox,H as Icon,Q as Image,mc as InputGroup,gc as InputGroupButton,_c as InputGroupIgnore,vc as InputGroupMenu,hc as InputGroupText,Mc as ListGroup,Fc as ListGroupItem,Si as LiveTSX,wi as Loading,Z as Menu,ao as MenuDivider,io as MenuHeader,$a as MenuItem,no as MenuItemCheck,oo as MenuItemContent,so as MenuItemDescription,to as MenuItemIcon,eo as MenuPanel,co as MenuSubmenu,ro as MenuText,ra as MonthCalendar,ia as Nameplate,yn as NativeDialog,X as Nav,aa as NavItem,oa as NavLink,rl as NavOverflow,Ic as Navbar,Lc as NavbarBrand,Rc as NavbarNav,zc as NavbarText,Bc as NavbarToggler,xc as OTPInput,Ii as OVERLAY_ARROW_POSITIONS,Fi as OVERLAY_DIRECTIONS,fo as Option,Ji as OverlayBox,al as PageItem,ol as PageLink,va as PageNav,sl as PageText,il as Pagination,wc as PasswordStrength,cl as Placeholder,ll as PlaceholderAnimation,ul as PlaceholderButton,Li as Popover,dl as Progress,fl as ProgressStack,Tc as Radio,rs as Row,ja as ScrollNav,El as ScrollSpy,po as Select,To as ShareBox,J as Spinner,Eo as SpinnerButton,Ci as SpinnerIcon,Dl as Stack,kl as Stepper,Nl as StepperButton,jl as StepperItem,Ml as StepperLink,Al as StepperNav,Pl as StepperOverflow,Wl as Tab,as as Table,Do as TableSpinner,Gl as Tabs,zo as TextTruncate,Bo as Time,Ho as TimeDistance,Uo as Timeline,eu as Toast,Ql as ToastBody,Yl as ToastContainer,Zl as ToastHeader,Xl as ToastItem,tu as ToggleButton,nu as Toggler,Ri as Tooltip,ts as TypeEcho,cs as UserRankView,dn as VariantColors,ls as VerticalMarquee,fs as ZodiacBar,us as ZodiacSigns,$e as animate,wo as elementToImage,vi as parser,B as polymorphic,fn as text2color,ds as zodiacOf};
32
+ `,_+=K(w-1,g)),_+=`</${o}>`}else Mr(C,v,n,g,p)||(_+=` `),_+=`/>`;return _}),Fr=``,Ir=`React.Fragment`,Lr=function(e,t,n){var r={};return t&&(r={key:t}),{type:`ReactElement`,displayName:e,props:r,defaultProps:{},childrens:n}},Rr=function(e){return!!e.key},zr=function(e){return e.childrens.length===0},Br=(function(e,t,n,r){var i=e.type,a=e.key,o=e.childrens;if(i!==`ReactFragment`)throw Error(`The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: ${i}`);return Pr(Lr(r.useFragmentShortSyntax?zr(e)||Rr(e)?Ir:Fr:Ir,a,o),t,n,r)}),Vr=[`<`,`>`,`{`,`}`],Hr=function(e){return Vr.some(function(t){return e.includes(t)})},Ur=function(e){return Hr(e)?`{\`${e}\`}`:e},Wr=function(e){var t=e;return t.endsWith(` `)&&(t=t.replace(/^(.*?)(\s+)$/,`$1{'$2'}`)),t.startsWith(` `)&&(t=t.replace(/^(\s+)(.*)$/,`{'$1'}$2`)),t},Gr=(function(e,t,n,r){if(e.type===`number`)return String(e.value);if(e.type===`string`)return e.value?`${Wr(Ur(String(e.value)))}`:``;if(e.type===`ReactElement`)return Pr(e,t,n,r);if(e.type===`ReactFragment`)return Br(e,t,n,r);throw TypeError(`Unknow format type "${e.type}"`)}),Kr=(function(e,t){return Gr(e,!1,0,t)}),qr=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.filterProps,r=n===void 0?[]:n,i=t.showDefaultProps,a=i===void 0||i,o=t.showFunctions,s=o!==void 0&&o,c=t.functionValue,l=t.tabStop,u=l===void 0?2:l,d=t.useBooleanShorthandSyntax,f=d===void 0||d,p=t.useFragmentShortSyntax,m=p===void 0||p,h=t.sortProps,g=h===void 0||h,_=t.maxInlineAttributesLineLength,v=t.displayName;if(!e)throw Error(`react-element-to-jsx-string: Expected a ReactElement`);var y={filterProps:r,showDefaultProps:a,showFunctions:s,functionValue:c,tabStop:u,useBooleanShorthandSyntax:f,useFragmentShortSyntax:m,sortProps:g,maxInlineAttributesLineLength:_,displayName:v};return Kr(_r(e,y),y)};const Jr=te({themes:[ee,I],langs:[O,k,A,j,M,N,F,P],engine:ne()}),Yr=z(e=>{let{as:t=`pre`,className:n=``,language:r,header:i,children:a}=e,f=c(e,[`as`,`className`,`language`,`header`,`children`]),p=typeof a==`string`?a:qr(/*#__PURE__*/ D(a)?a:/*#__PURE__*/ u(l,{children:a})),m=Jr.codeToHtml(p,{lang:r,themes:{light:`github-light`,dark:`github-dark`},defaultColor:!1,structure:`inline`,transformers:[{span:({properties:e})=>{e.style=`${e.style};color:light-dark(var(--shiki-light),var(--shiki-dark))`}}]}),h=/*#__PURE__*/ u(t,s(o({className:`m-0 shiki language-${r} ${n}`},f),{children:/*#__PURE__*/ u(`code`,{dangerouslySetInnerHTML:{__html:m},className:`language-${r}`})}));return i?/*#__PURE__*/ d(`figure`,{className:`m-0`,children:[/*#__PURE__*/ u(`figcaption`,{className:`px-3 pb-6 mb-6 bg-body-tertiary border-bottom`,children:i}),h]}):h});Yr.displayName=`CodeBlock`;let Xr;var Zr,Qr,$r,ei,ti,ni=ie(e=>e.componentProps.endTime),ri,ii;let ai;new(Xr=(Zr=/*#__PURE__*/ new WeakMap,Qr=class extends (ti=re){get componentProps(){return this.observedProps}get rest(){return t(this,Zr)}set rest(e){r(this,Zr,e)}get endTimestamp(){return+new Date(this.componentProps.endTime||Date.now())}get timeSections(){let{units:e}=this.componentProps,{rest:t}=this;return e.reduce((n,{label:r},i)=>{let a=e.slice(i).map(({scale:e})=>e).reduce((e,t)=>e*t,1),o=~~(t/a);return t-=o*a,n.push({value:o,label:r}),n},[])}stop(){this.timer&&(window.clearInterval(this.timer),this.timer=0)}componentDidMount(){super.componentDidMount(),this.initTimer()}initTimer(){this.stop(),this.tick(),this.timer=window.setInterval(this.tick,oe)}componentWillUnmount(){super.componentWillUnmount(),this.stop()}render(){let e=this.componentProps,{as:t,className:n=``,itemClassName:r=`border rounded px-4 py-3 d-flex flex-column justify-content-center align-items-center`,units:i,endTime:a,onEnd:l}=e,f=c(e,[`as`,`className`,`itemClassName`,`units`,`endTime`,`onEnd`]),p=t==null?`ol`:t,{timeSections:m}=this;return/*#__PURE__*/ u(p,s(o({className:`list-unstyled m-0 ${n}`},f),{children:m.map(({value:e,label:t})=>/*#__PURE__*/ d(`li`,{className:r,children:[/*#__PURE__*/ u(`strong`,{children:(e+``).padStart(2,`0`)}),/*#__PURE__*/ u(`span`,{children:t})]},t))}))}constructor(...e){super(...e),n(this,Zr,{writable:!0,value:(ii(this),ri(this,0))}),i(this,`timer`,0),i(this,`tick`,()=>{let{onEnd:e,endTime:t}=this.componentProps,n=this.endTimestamp-Date.now();n>0?this.rest=n:(this.rest=0,this.stop(),e==null||e(t))})}},{e:[ri,ii],c:[ai,ei]}=e(Qr,[[h,1,`rest`],[m,3,`timeSections`],[ni,2,`initTimer`]],[g],ti),Qr),$r=class extends a{constructor(){super(ai),i(this,`displayName`,`Countdown`),ei()}},i($r,Xr,void 0),$r);var oi,si,ci,li=class extends Error{constructor(e=`Dialog closed`){super(e)}},ui=/*#__PURE__*/ new WeakMap,di=/*#__PURE__*/ new WeakMap,fi=class{get input(){return t(this,ui)}set input(e){r(this,ui,e)}get defer(){return t(this,di)}set defer(e){r(this,di,e)}open(e){e&&(this.input=e);let t=new he;this.defer=t;let n=p(()=>this.defer===t&&(this.defer=void 0));return t.promise.then(n,n),t.promise}constructor(e){n(this,ui,{writable:!0,value:(ci(this),oi(this,{}))}),n(this,di,{writable:!0,value:si(this)}),i(this,`Component`,void 0),this.Component=g(t=>/*#__PURE__*/ u(e,s(o({},t,this.input),{defer:this.defer}))),this.Component.displayName=`DialogComponent`}};({e:[oi,si,ci]}=e(fi,[[h,1,`input`],[h,1,`defer`],[p,2,`open`]],[]));let pi;var mi,hi,gi,_i,vi,yi,bi;const xi=ge();let Si;new(pi=(mi=/*#__PURE__*/ new WeakMap,hi=class extends (vi=b){get componentProps(){return this.props}get innerValue(){return t(this,mi)}set innerValue(e){r(this,mi,e)}render(){var e;let t=(e=this.componentProps.as)==null?`div`:e,n=this.componentProps,{as:r,name:i,required:a,className:l,style:p,tabIndex:m=-1,onBlur:h,children:g}=n,_=c(n,[`as`,`name`,`required`,`className`,`style`,`tabIndex`,`onBlur`,`children`]),{innerValue:v}=this;return/*#__PURE__*/ d(t,s(o({},this.componentProps.as?_:{}),{className:f(`form-control`,l),style:p,tabIndex:m,onBlur:this.handleBlur,children:[/*#__PURE__*/ u(`input`,{hidden:!0,name:i,required:a,value:JSON.stringify(v)}),/*#__PURE__*/ u(xi,s(o({},_),{onInitialize:this.initialize}))]}))}constructor(...e){var t;super(...e),t=this,i(this,`core`,void 0),n(this,mi,{writable:!0,value:(bi(this),yi(this,this.componentProps.defaultValue))}),i(this,`setInnerValue`,p(e=>this.innerValue=e)),i(this,`handleBlur`,e=>R(function*(){var n,r;(n=(r=t.componentProps).onBlur)==null||n.call(r,e),t.core&&t.setInnerValue(yield t.core.save())})()),i(this,`initialize`,e=>{var t,n;(t=(n=this.componentProps).onInitialize)==null||t.call(n,e),this.core=e})}},{e:[yi,bi],c:[Si,_i]}=e(hi,[[h,1,`innerValue`]],[g],vi),hi),gi=class extends a{constructor(){super(Si),i(this,`displayName`,`Editor`),_i()}},i(gi,pi,void 0),gi);const Ci=_e({link:({data:{link:e}})=>`<a href="${e}">${e}</a>`}),wi=z(e=>{let{as:t=`article`,data:n}=e,r=c(e,[`as`,`data`]);return/*#__PURE__*/ u(t,s(o({},r),{dangerouslySetInnerHTML:{__html:Ci.parse(n)}}))});wi.displayName=`EditorHTML`;const Ti=z(e=>{let{as:t=`div`,className:n=``,children:r,maxWidth:i=`100%`,duration:a,height:l}=e,d=c(e,[`as`,`className`,`children`,`maxWidth`,`duration`,`height`]);return/*#__PURE__*/ u(t,s(o({className:`overflow-hidden max-w-100 ${n}`},d),{children:/*#__PURE__*/ u(`div`,{className:`d-inline-block align-top text-nowrap ONAURG_scrollWrap`,style:{maxWidth:i,animationDuration:a,height:l,lineHeight:l},children:/*#__PURE__*/ u(`div`,{className:`d-inline-block ONAURG_scrollItem`,style:{animationDuration:a},children:r})})}))}),Ei=z(e=>{let{as:t,children:n,className:r=``,style:i,maxWidth:a,duration:l,height:f}=e,p=c(e,[`as`,`children`,`className`,`style`,`maxWidth`,`duration`,`height`]);return f?/*#__PURE__*/ u(t==null?`div`:t,s(o({},p),{className:`overflow-hidden ONAURG_scrollHeightWrap ${r}`,style:o({maxWidth:a,"--scroll-height":f},i),children:/*#__PURE__*/ d(`div`,{className:`d-inline-block overflow-hidden max-w-100 ONAURG_scrollContainer`,children:[/*#__PURE__*/ u(`div`,{className:`d-block overflow-hidden text-wrap text-break ONAURG_unScrollItem`,children:n}),/*#__PURE__*/ u(Ti,{duration:l,children:n})]})})):/*#__PURE__*/ u(Ti,s(o({as:t},p),{className:r,style:i,maxWidth:a,duration:l,height:f,children:n}))});Ti.displayName=`HorizontalMarquee`,Ei.displayName=`HorizontalMarqueeBox`;const Di=({scope:e,children:t})=>{let n=typeof t==`string`?t:qr(/*#__PURE__*/ D(t)?t:/*#__PURE__*/ u(l,{children:t}));return/*#__PURE__*/ d(xe,{code:n,scope:e,language:`tsx`,children:[/*#__PURE__*/ u(be,{className:`mb-3`}),/*#__PURE__*/ u(ve,{}),/*#__PURE__*/ u(ye,{className:`fg-danger small p-2`})]})},J=z(e=>{let{as:t=`span`,animation:n=`border`,size:r,theme:i,className:a,role:l=`status`}=e,d=c(e,[`as`,`animation`,`size`,`theme`,`className`,`role`]);return/*#__PURE__*/ u(t,s(o({},d),{role:l,className:f(`spinner-${n}`,r&&`spinner-${r}`,i&&`theme-${i}`,a)}))});J.displayName=`Spinner`;const Oi=z(e=>{let{as:t,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(V,s(o({as:t},r),{className:f(`spinner-rotate`,n)}))});Oi.displayName=`SpinnerIcon`;const ki=z(e=>{let{as:t=`div`,className:n=``,children:r=`Loading...`,opacity:i=25,style:a}=e,l=c(e,[`as`,`className`,`children`,`opacity`,`style`]);return/*#__PURE__*/ d(t,s(o({className:`fixed-top h-100 w-100 d-flex justify-content-center align-items-center bg-black ${n}`,style:s(o({},a),{opacity:i/100})},l),{children:[/*#__PURE__*/ u(J,{theme:`success`}),/*#__PURE__*/ u(`span`,{className:`ms-3 fg-white`,children:r})]}))});ki.displayName=`Loading`;var Ai,ji,Mi,Ni,Pi;const Fi={sm:576,md:768,lg:1024,xl:1280,"2xl":1536},Ii={top:`bottom`,bottom:`top`,left:`right`,right:`left`};var Li=/*#__PURE__*/ new WeakMap,Ri=/*#__PURE__*/ new WeakMap,zi=/*#__PURE__*/ new WeakMap,Y=class{get placement(){return t(this,Li)}set placement(e){r(this,Li,e)}get style(){return t(this,Ri)}set style(e){r(this,Ri,e)}get arrowStyle(){return t(this,zi)}set arrowStyle(e){r(this,zi,e)}attach(e,t,n){this.dispose(),this.reference=e,this.element=t,this.options=n,window.addEventListener(`resize`,this.update),document.addEventListener(`scroll`,this.update,!0),this.resize=new window.ResizeObserver(this.update),this.resize.observe(e),this.resize.observe(t),this.update()}constructor(){n(this,Li,{writable:!0,value:(Pi(this),Ai(this,`top`))}),n(this,Ri,{writable:!0,value:ji(this,{})}),n(this,zi,{writable:!0,value:Mi(this,{})}),i(this,`reference`,void 0),i(this,`element`,void 0),i(this,`resize`,void 0),i(this,`options`,{}),i(this,`dispose`,()=>{var e;window.removeEventListener(`resize`,this.update),document.removeEventListener(`scroll`,this.update,!0),(e=this.resize)==null||e.disconnect(),this.resize=void 0,this.reference=void 0,this.element=void 0}),i(this,`update`,Ni(this,()=>{let{reference:e,element:t,options:n}=this;if(!e||!t)return;let{responsivePlacement:r,offset:i=0,padding:a=8,flip:o=!0}=n,s=Object.keys(Fi).reverse().find(e=>window.innerWidth>=Fi[e]&&(r==null?void 0:r[e])),[c,l]=(s&&(r==null?void 0:r[s])||n.placement||`top`).split(`-`),u=e.getBoundingClientRect(),d=t.getBoundingClientRect(),[f,p]=typeof i==`number`?[0,i]:i,m={top:u.top-a,bottom:window.innerHeight-u.bottom-a,left:u.left-a,right:window.innerWidth-u.right-a},h=(c===`top`||c===`bottom`?d.height:d.width)+p,g=o&&m[c]<h&&m[Ii[c]]>m[c]?Ii[c]:c,_=u.left+(u.width-d.width)/2,v=u.top+(u.height-d.height)/2;g===`top`||g===`bottom`?(v=g===`top`?u.top-d.height-p:u.bottom+p,l&&(_=l===`start`?u.left:u.right-d.width),_+=f):(_=g===`left`?u.left-d.width-p:u.right+p,l&&(v=l===`start`?u.top:u.bottom-d.height),v+=f),_=Math.max(a,Math.min(_,window.innerWidth-d.width-a)),v=Math.max(a,Math.min(v,window.innerHeight-d.height-a));let y=g===`top`||g===`bottom`?{left:Math.max(8,Math.min(d.width-8,u.left+u.width/2-_))}:{top:Math.max(8,Math.min(d.height-8,u.top+u.height/2-v))};(this.arrowStyle.left!==y.left||this.arrowStyle.top!==y.top)&&(this.arrowStyle=y);let b=t.offsetParent,x=b instanceof HTMLElement&&(b!==document.body||getComputedStyle(b).position!==`static`)?b:void 0,S=x==null?void 0:x.getBoundingClientRect();_+=x?x.scrollLeft-S.left-x.clientLeft:window.scrollX,v+=x?x.scrollTop-S.top-x.clientTop:window.scrollY;let C=l?`${g}-${l}`:g;this.placement!==C&&(this.placement=C);let w=Math.max(0,window.innerWidth-a*2),T=Math.max(0,window.innerHeight-a*2);(this.style.left!==_||this.style.top!==v||this.style.maxWidth!==w||this.style.maxHeight!==T)&&(this.style={position:`absolute`,left:_,top:v,right:`auto`,bottom:`auto`,margin:0,maxWidth:w,maxHeight:T})}))}};({e:[Ai,ji,Mi,Ni,Pi]}=e(Y,[[h,1,`placement`],[h,1,`style`],[h,1,`arrowStyle`],[p,0,`update`]],[]));const Bi={top:`top`,right:`end`,bottom:`bottom`,left:`start`},Vi={top:`position-absolute start-50 translate-middle-x`,right:`position-absolute top-50 translate-middle-y`,bottom:`position-absolute start-50 translate-middle-x`,left:`position-absolute top-50 translate-middle-y`},Hi=z(e=>{let{as:t=`div`,title:n,placement:r=`top`,show:i=!0,role:a=`tooltip`,className:l,children:p,arrowStyle:m}=e,h=c(e,[`as`,`title`,`placement`,`show`,`role`,`className`,`children`,`arrowStyle`]);return/*#__PURE__*/ d(t,s(o({},h),{className:f(`popover`,{show:i},`bs-popover-${Bi[r]}`,l),role:a,hidden:!i,"data-bs-placement":r,children:[/*#__PURE__*/ u(`div`,{style:m,className:f(`popover-arrow`,Vi[r])}),n!=null&&/*#__PURE__*/ u(`h3`,{className:`popover-header`,children:n}),/*#__PURE__*/ u(`div`,{className:`popover-body`,children:p})]}))});Hi.displayName=`Popover`;const Ui=z(e=>{let{as:t=`div`,placement:n=`top`,show:r=!0,role:i=`tooltip`,className:a,children:l,arrowStyle:p}=e,m=c(e,[`as`,`placement`,`show`,`role`,`className`,`children`,`arrowStyle`]);return/*#__PURE__*/ d(t,s(o({},m),{className:f(`tooltip`,{show:r},`bs-tooltip-${Bi[n]}`,a),role:i,hidden:!r,"data-bs-placement":n,children:[/*#__PURE__*/ u(`div`,{style:p,className:f(`tooltip-arrow`,Vi[n])}),/*#__PURE__*/ u(`div`,{className:`tooltip-inner`,children:l})]}))});Ui.displayName=`Tooltip`;let Wi;var Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi;let $i;new(Wi=(Gi=/*#__PURE__*/ new WeakMap,Ki=class extends (Yi=b){get componentProps(){return this.props}get open(){return t(this,Gi)}set open(e){r(this,Gi,e)}componentWillUnmount(){document.removeEventListener(`pointerdown`,this.handleOutside),clearTimeout(this.timer),this.position.dispose()}componentDidMount(){document.addEventListener(`pointerdown`,this.handleOutside)}componentDidUpdate(e){let{open:t,root:n,overlay:r,props:i,position:a}=this,{placement:o=`top`,responsivePlacement:s,offset:c=i.detail==null?8:12,padding:l,flip:u,container:d}=i;if(!t)return a.dispose();n.current&&r.current&&(a.element!==r.current||e.placement!==i.placement||e.responsivePlacement!==s||e.offset!==i.offset||e.padding!==l||e.flip!==u||e.container!==d?a.attach(n.current,r.current,{placement:o,responsivePlacement:s,offset:c,padding:l,flip:u}):a.update())}render(){var e;let t=(e=this.componentProps.as)==null?`span`:e,n=this.componentProps,{as:r,title:i,detail:a,placement:l=`top`,responsivePlacement:p,container:m,offset:h,padding:g,flip:_,trigger:v,delay:y,overlayClassName:b,children:x,className:S=``,onMouseEnter:w,onMouseLeave:T,onFocus:E,onBlur:O,onClick:k,onKeyDown:A}=n,j=c(n,[`as`,`title`,`detail`,`placement`,`responsivePlacement`,`container`,`offset`,`padding`,`flip`,`trigger`,`delay`,`overlayClassName`,`children`,`className`,`onMouseEnter`,`onMouseLeave`,`onFocus`,`onBlur`,`onClick`,`onKeyDown`]),M=this.open?this.id:void 0,N=this.position.element?this.position.placement.split(`-`)[0]:l,P=f(`w-max`,b),F=a==null?/*#__PURE__*/ u(Ui,{ref:this.overlay,id:M,style:o({},this.position.style),arrowStyle:o({},this.position.arrowStyle),className:P,placement:N,children:i}):/*#__PURE__*/ u(Hi,{ref:this.overlay,id:M,style:o({},this.position.style),arrowStyle:o({},this.position.arrowStyle),className:P,title:i,placement:N,children:a}),I=this.open&&m?typeof m==`string`?document.querySelector(m):typeof m==`function`?m():m:void 0;if(this.open&&m&&!I)throw Error(`Overlay container was not found`);let ee=/*#__PURE__*/ D(x)?/*#__PURE__*/ C(x,{"aria-describedby":[x.props[`aria-describedby`],M].filter(Boolean).join(` `)||void 0}):x;return/*#__PURE__*/ d(t,s(o({},j),{ref:this.root,className:`position-relative d-inline-block ${S}`,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur,onClick:this.handleClick,onKeyDown:this.handleKeyDown,children:[ee,this.open&&(I?/*#__PURE__*/ Se(F,I):F)]}))}constructor(...e){super(...e),n(this,Gi,{writable:!0,value:(Qi(this),Xi(this,!1))}),i(this,`id`,me()),i(this,`root`,/*#__PURE__*/ T()),i(this,`overlay`,/*#__PURE__*/ T()),i(this,`position`,new Y),i(this,`timer`,void 0),i(this,`setOpen`,Zi(this,e=>this.open=e)),i(this,`hide`,()=>{clearTimeout(this.timer),this.setOpen(!1)}),i(this,`setOpenAfterDelay`,e=>{clearTimeout(this.timer);let{delay:t}=this.componentProps,n=typeof t==`number`?t:t==null?void 0:t[e?`show`:`hide`];if(!n)return this.setOpen(e);this.timer=setTimeout(()=>this.setOpen(e),n)}),i(this,`contains`,e=>{var t,n;return e instanceof Node&&(!!((t=this.root.current)!=null&&t.contains(e))||!!((n=this.overlay.current)!=null&&n.contains(e)))}),i(this,`hasTrigger`,e=>(this.componentProps.trigger?Array.isArray(this.componentProps.trigger)?this.componentProps.trigger:[this.componentProps.trigger]:[`hover`,`focus`]).includes(e)),i(this,`handleMouseEnter`,e=>{var t,n;(t=(n=this.componentProps).onMouseEnter)==null||t.call(n,e),!e.defaultPrevented&&this.hasTrigger(`hover`)&&this.setOpenAfterDelay(!0)}),i(this,`handleMouseLeave`,e=>{var t,n;(t=(n=this.componentProps).onMouseLeave)==null||t.call(n,e),!e.defaultPrevented&&this.hasTrigger(`hover`)&&!this.contains(e.relatedTarget)&&!this.contains(document.activeElement)&&this.setOpenAfterDelay(!1)}),i(this,`handleFocus`,e=>{var t,n;(t=(n=this.componentProps).onFocus)==null||t.call(n,e),!e.defaultPrevented&&this.hasTrigger(`focus`)&&this.setOpenAfterDelay(!0)}),i(this,`handleBlur`,e=>{var t,n;(t=(n=this.componentProps).onBlur)==null||t.call(n,e),!e.defaultPrevented&&this.hasTrigger(`focus`)&&!this.contains(e.relatedTarget)&&this.setOpenAfterDelay(!1)}),i(this,`handleClick`,e=>{var t,n,r;(t=(n=this.componentProps).onClick)==null||t.call(n,e),!e.defaultPrevented&&this.hasTrigger(`click`)&&!(e.target instanceof Node&&(r=this.overlay.current)!=null&&r.contains(e.target))&&this.setOpenAfterDelay(!this.open)}),i(this,`handleOutside`,({target:e})=>{e instanceof Node&&!this.contains(e)&&this.hide()}),i(this,`handleKeyDown`,e=>{var t,n;(t=(n=this.componentProps).onKeyDown)==null||t.call(n,e),!e.defaultPrevented&&e.key===`Escape`&&this.open&&(e.preventDefault(),this.hide())})}},{e:[Xi,Zi,Qi],c:[$i,Ji]}=e(Ki,[[h,1,`open`],[p,0,`setOpen`]],[g],Yi),Ki),qi=class extends a{constructor(){super($i),i(this,`displayName`,`OverlayBox`),Ji()}},i(qi,Wi,void 0),qi);let ea;var ta,na,ra,ia,aa,oa,sa;let ca;new(ea=(ta=/*#__PURE__*/ new WeakMap,na=class extends (aa=re){get componentProps(){return this.props}get observedComponentProps(){return this.observedProps}get weekFormatter(){var e;let{locale:t=(e=globalThis.navigator)==null?void 0:e.language}=this.observedComponentProps;return new Intl.DateTimeFormat(t,{weekday:`long`})}get currentDate(){return t(this,ta)}set currentDate(e){r(this,ta,e)}get dateGrid(){let e=new Date(this.currentDate);e.setDate(1),e=/* @__PURE__ */ new Date(+e-e.getDay()*ae);let t=Array.from(Array(42),(t,n)=>new Date(+e+n*ae));return pe(t,7)}changeMonth(e){var t,n;this.currentDate=le(this.currentDate,e),(t=(n=this.componentProps).onChange)==null||t.call(n,this.currentDate)}render(){var e;let t=(e=this.componentProps.as)==null?`table`:e,{weekFormatter:n,currentDate:r,dateGrid:i}=this,a=this.observedComponentProps,{as:l,className:f=``,style:p,theme:m=`primary`,onChange:h,onSelect:g}=a,_=c(a,[`as`,`className`,`style`,`theme`,`onChange`,`onSelect`]);return/*#__PURE__*/ d(t,s(o({},_),{className:`table ${f}`,style:o({tableLayout:`fixed`},p),children:[/*#__PURE__*/ u(`caption`,{children:/*#__PURE__*/ d(`div`,{className:`d-flex justify-content-between align-items-center`,children:[/*#__PURE__*/ u(B,{theme:m,onClick:this.changePreviousMonth,children:`<`}),L(r,`YYYY-MM`),/*#__PURE__*/ u(B,{theme:m,onClick:this.changeNextMonth,children:`>`})]})}),/*#__PURE__*/ u(`thead`,{children:/*#__PURE__*/ u(`tr`,{children:i[0].map((e,t,{length:r})=>/*#__PURE__*/ u(`th`,{className:`theme-${m} theme-contrast`,style:{width:`calc(100% / ${r})`},scope:`col`,children:n.format(e)},t))})}),/*#__PURE__*/ u(`tbody`,{children:i.map(e=>/*#__PURE__*/ u(`tr`,{children:e.map(this.renderDate)},e[0]+``))})]}))}constructor(...e){super(...e),n(this,ta,{writable:!0,value:(sa(this),oa(this,/* @__PURE__ */ new Date))}),i(this,`changePreviousMonth`,()=>this.changeMonth(-1)),i(this,`changeNextMonth`,()=>this.changeMonth(1)),i(this,`handleCellClick`,({target:e,currentTarget:t})=>{var n,r,i;if(!(e instanceof Element))return;let a=e.closest(`[data-calendar-index]`);if(!a||!t.contains(a))return;let o=a.dataset.calendarDate,s=Number(a.dataset.calendarIndex),c=(n=this.componentProps.value)==null?void 0:n.filter(({date:e})=>L(e,`YYYY-MM-DD`)===o),l=c==null?void 0:c[s];l&&((r=(i=this.componentProps).onSelect)==null||r.call(i,l))}),i(this,`renderDate`,e=>{let{value:t}=this.observedComponentProps,n=L(e,`YYYY-MM-DD`),r=t==null?void 0:t.filter(({date:e})=>L(e,`YYYY-MM-DD`)===n);return/*#__PURE__*/ d(`td`,{className:f({"opacity-50":e.getMonth()!==this.currentDate.getMonth(),"fw-bold":n===L(/* @__PURE__ */ new Date,`YYYY-MM-DD`)}),onClick:this.handleCellClick,children:[/*#__PURE__*/ u(`time`,{className:`d-block`,dateTime:e.toJSON(),children:e.getDate()}),r==null?void 0:r.map((e,t)=>typeof e.content==`object`?e.content:/*#__PURE__*/ u($i,{title:e.content,children:/*#__PURE__*/ u(at,{className:`d-inline-block text-decoration-none w-100 text-truncate`,theme:_n(e.content+``,[`light`]),"data-calendar-date":n,"data-calendar-index":t,href:e.link,children:e.content})},`${n}-${t}`))]},e+``)})}},{e:[oa,sa],c:[ca,ia]}=e(na,[[m,3,`weekFormatter`],[h,1,`currentDate`],[m,3,`dateGrid`],[p,2,`changeMonth`]],[g],aa),na),ra=class extends a{constructor(){super(ca),i(this,`displayName`,`MonthCalendar`),ia()}},i(ra,ea,void 0),ra);const la=({avatar:e,name:t})=>/*#__PURE__*/ d(l,{children:[/*#__PURE__*/ u(tt,{size:2,style:{marginRight:`0.5rem`},src:e}),/*#__PURE__*/ u(`span`,{className:`align-middle`,children:t})]});la.displayName=`Nameplate`;const X=z(e=>{let{as:t=`nav`,variant:n,vertical:r,fill:i,justified:a,cardHeader:l,navbar:d,className:p}=e,m=c(e,[`as`,`variant`,`vertical`,`fill`,`justified`,`cardHeader`,`navbar`,`className`]);return/*#__PURE__*/ u(t,s(o({},m),{className:f(`nav`,d&&`navbar-nav`,n&&`nav-${n}`,l&&n===`tabs`&&`card-header-tabs`,r&&(n===`pills`?`nav-pills-vertical`:`flex-column`),{"nav-fill":i,"nav-justified":a},p)}))});X.displayName=`Nav`;const ua=z(e=>{let{as:t=`li`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`nav-item`,n)}))});ua.displayName=`NavItem`;const da=z(e=>{let{as:t=`a`,disabled:n,active:r,className:i,href:a,onClick:l,tabIndex:d}=e,p=c(e,[`as`,`disabled`,`active`,`className`,`href`,`onClick`,`tabIndex`]);return/*#__PURE__*/ u(t,s(o({},p),{href:n?void 0:a,tabIndex:n?-1:d,"aria-disabled":n||void 0,"aria-current":r?`page`:p[`aria-current`],className:f(`nav-link`,{active:r,disabled:n,"pe-none":n},i),onClick:n?void 0:l}))});da.displayName=`NavLink`;let fa;var pa,ma,ha,ga,_a,va,ya,ba,xa;const Sa=Array.from({length:6},(e,t)=>`h${t+1}`).join(`,`);let Ca;new(fa=(pa=/*#__PURE__*/ new WeakMap,ma=/*#__PURE__*/ new WeakMap,ha=class extends (va=b){get componentProps(){return this.props}get list(){return t(this,pa)}set list(e){r(this,pa,e)}get scrollY(){return t(this,ma)}set scrollY(e){r(this,ma,e)}get currentActiveId(){var e;let{list:t,scrollY:n}=this,r=t.findIndex(({top:e})=>e>n);return(e=t[r<0?t.length-1:r-1])==null?void 0:e.id}componentDidMount(){globalThis.document&&(window.addEventListener(`scroll`,this.updateScrollY),window.addEventListener(`resize`,this.updateScrollY),this.initList(),this.updateScrollY())}static slugOf(e){let t=e.toLowerCase().replace(/\W+/g,`-`).replace(/^-+|-+$/g,``);return!t||document.getElementById(t)?me():t}initList(){let{rootSelector:e}=this.componentProps,t=e?document.querySelector(e):document;t&&(this.list=Array.from(t.querySelectorAll(Sa),e=>{var t;let n=e.textContent.trim();(t=e).id||(t.id=Ca.slugOf(n));let{id:r,tagName:i}=e,a=e.getBoundingClientRect().top+window.scrollY;return{id:r,level:+i[1],text:n,top:a}}))}componentWillUnmount(){window.removeEventListener(`scroll`,this.updateScrollY),window.removeEventListener(`resize`,this.updateScrollY)}render(){let{list:e}=this,t=this.componentProps,{depth:n,minDepth:r,rootSelector:i,onItemClick:a}=t,l=c(t,[`depth`,`minDepth`,`rootSelector`,`onItemClick`]);return/*#__PURE__*/ u(X,s(o({as:this.componentProps.as},l),{variant:`underline`,vertical:!0,children:e.map(this.renderLink)}))}constructor(...e){super(...e),n(this,pa,{writable:!0,value:(xa(this),ya(this,[]))}),n(this,ma,{writable:!0,value:ba(this,0)}),i(this,`updateScrollY`,p(()=>{this.scrollY=window.scrollY,this.list=this.list.map(e=>{let t=document.getElementById(e.id);return t?s(o({},e),{top:t.getBoundingClientRect().top+this.scrollY}):e})})),i(this,`scrollTo`,e=>()=>{var t,n;setTimeout(()=>de(`[id="${e.id}"]`)),(t=(n=this.componentProps).onItemClick)==null||t.call(n,e)}),i(this,`renderLink`,({id:e,level:t,text:n,top:r})=>{let{currentActiveId:i}=this,{depth:a=1/0,minDepth:o=1}=this.componentProps;return o<=t&&t<=a&&/*#__PURE__*/ u(da,{className:f(`justify-content-start text-wrap min-w-0`,i===e&&`active`),style:{paddingInlineStart:`${t-o+.75}rem`},href:`#${e}`,"aria-current":i===e?`location`:void 0,onClick:this.scrollTo({id:e,level:t,text:n,top:r}),children:n},e)})}},{e:[ya,ba,xa],c:[Ca,_a]}=e(ha,[[h,1,`list`],[h,1,`scrollY`],[m,3,`currentActiveId`],[p,2,`initList`]],[g],va),ha),ga=class extends a{constructor(){super(Ca),i(this,`displayName`,`PageNav`),_a()}},i(ga,fa,void 0),ga);var wa,Ta,Ea,Da,Oa,ka,Aa;let ja;var Ma=/*#__PURE__*/ new WeakMap,Na=/*#__PURE__*/ new WeakMap,Pa=/*#__PURE__*/ new WeakMap,Fa=class extends (Ta=b){get componentProps(){return this.props}get scrollLeft(){return t(this,Ma)}set scrollLeft(e){r(this,Ma,e)}get scrollWidth(){return t(this,Na)}set scrollWidth(e){r(this,Na,e)}get clientWidth(){return t(this,Pa)}set clientWidth(e){r(this,Pa,e)}get canScrollLeft(){return this.scrollLeft>0}get canScrollRight(){return this.scrollLeft+this.clientWidth<this.scrollWidth}componentDidMount(){let e=this.updateScroll();e&&(e.addEventListener(`scroll`,this.updateScroll),this.resizeObserver=new ResizeObserver(this.updateScroll),this.resizeObserver.observe(e))}componentWillUnmount(){var e,t;(e=this.resizeObserver)==null||e.disconnect(),(t=this.scrollerRef.current)==null||t.removeEventListener(`scroll`,this.updateScroll)}render(){var e;let t=(e=this.componentProps.as)==null?`div`:e,{canScrollLeft:n,canScrollRight:r}=this,i=this.componentProps,{as:a,className:l=``,children:f,rootRef:p}=i,m=c(i,[`as`,`className`,`children`,`rootRef`]);return/*#__PURE__*/ d(t,s(o({},m),{ref:p,className:`position-relative overflow-y-hidden ${l}`,children:[n&&/*#__PURE__*/ u(`button`,{type:`button`,className:`position-absolute top-0 bottom-0 start-0 z-1 border-0 px-2 nZcgHq_scrollButtonLeft`,"aria-label":`Scroll left`,onClick:this.scrollBackward,children:/*#__PURE__*/ u(V,{name:`caret-left-fill`})}),/*#__PURE__*/ u(`div`,{ref:this.scrollerRef,className:`overflow-x-auto nZcgHq_scrollerInner`,children:f}),r&&/*#__PURE__*/ u(`button`,{type:`button`,className:`position-absolute top-0 bottom-0 end-0 z-1 border-0 px-2 nZcgHq_scrollButtonRight`,"aria-label":`Scroll right`,onClick:this.scrollForward,children:/*#__PURE__*/ u(V,{name:`caret-right-fill`})})]}))}constructor(...e){super(...e),i(this,`scrollerRef`,(Aa(this),/*#__PURE__*/ T())),n(this,Ma,{writable:!0,value:Ea(this,0)}),n(this,Na,{writable:!0,value:Da(this,0)}),n(this,Pa,{writable:!0,value:Oa(this,0)}),i(this,`updateScroll`,ka(this,()=>{let e=this.scrollerRef.current;return e&&(this.scrollLeft=e.scrollLeft,this.scrollWidth=e.scrollWidth,this.clientWidth=e.clientWidth),e})),i(this,`resizeObserver`,void 0),i(this,`scrollBy`,e=>{let t=this.scrollerRef.current;t==null||t.scrollBy({left:e*t.clientWidth*.8,behavior:`smooth`})}),i(this,`scrollBackward`,()=>this.scrollBy(-1)),i(this,`scrollForward`,()=>this.scrollBy(1))}};({e:[Ea,Da,Oa,ka,Aa],c:[ja,wa]}=e(Fa,[[h,1,`scrollLeft`],[h,1,`scrollWidth`],[h,1,`clientWidth`],[m,3,`canScrollLeft`],[m,3,`canScrollRight`],[p,0,`updateScroll`]],[g],Ta)),wa();const Ia=z(e=>{let{as:t,className:n=``,children:r,ref:i,variant:a,vertical:l,fill:d,justified:f,cardHeader:p,navbar:m}=e,h=c(e,[`as`,`className`,`children`,`ref`,`variant`,`vertical`,`fill`,`justified`,`cardHeader`,`navbar`]);return/*#__PURE__*/ u(ja,s(o({as:t},t?h:{}),{rootRef:t?i:void 0,className:n,children:/*#__PURE__*/ u(X,s(o({},t?{}:h),{ref:t?void 0:i,className:`flex-nowrap`,variant:a,vertical:l,fill:d,justified:f,cardHeader:p,navbar:m,children:r}))}))});Ia.displayName=`ScrollNav`;let La,Ra;var za,Ba,Va,Ha,Ua,Wa,Ga,Ka,qa,Ja,Ya,Xa,Za,Qa,$a,eo,to,no,ro;const io=z(e=>{let{as:t,active:n,selected:r,className:i}=e,a=c(e,[`as`,`active`,`selected`,`className`]);return/*#__PURE__*/ u(B,s(o({as:t},a),{className:f(`menu-item`,{active:n,selected:r},i),"aria-current":n||r&&a.href?`true`:a[`aria-current`],"aria-pressed":a.href||r==null?a[`aria-pressed`]:r}))});io.displayName=`MenuItem`;const ao=z(e=>{let{as:t=`div`,theme:n,translucent:r,scrollable:i,show:a,className:l}=e,d=c(e,[`as`,`theme`,`translucent`,`scrollable`,`show`,`className`]);return/*#__PURE__*/ u(t,s(o({},d),{"data-bs-theme":n,className:f(`menu`,{show:a},r&&`menu-translucent`,i&&`menu-scrollable`,l)}))});ao.displayName=`MenuPanel`;const oo=z(e=>{let{as:t,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(V,s(o({as:t,"aria-hidden":`true`},r),{className:f(`menu-item-icon`,n)}))});oo.displayName=`MenuItemIcon`;const so=z(e=>{let{as:t,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(V,s(o({as:t,"aria-hidden":`true`},r),{name:`check`,className:f(`menu-item-check`,n)}))});so.displayName=`MenuItemCheck`;const co=z(e=>{let{as:t=`span`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`menu-text`,n)}))});co.displayName=`MenuText`;const lo=z(e=>{let{as:t=`h6`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`menu-header`,n)}))});lo.displayName=`MenuHeader`;const uo=z(e=>{let{as:t=`hr`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`menu-divider`,n)}))});uo.displayName=`MenuDivider`;const fo=z(e=>{let{as:t=`span`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`menu-item-content`,n)}))});fo.displayName=`MenuItemContent`;const po=z(e=>{let{as:t=`small`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`menu-item-description`,n)}))});po.displayName=`MenuItemDescription`;let mo;new(La=(za=/*#__PURE__*/ new WeakMap,Ba=class extends (qa=b){get componentProps(){return this.props}get open(){return t(this,za)}set open(e){r(this,za,e)}componentDidUpdate(){let{position:e,panel:t,trigger:n}=this;if(!this.open)return e.dispose();t.current&&n.current&&(e.element===t.current?e.update():e.attach(n.current,t.current,{placement:`right-start`,offset:2}))}componentWillUnmount(){this.position.dispose()}render(){var e;let t=(e=this.componentProps.as)==null?`div`:e,n=this.componentProps,{as:r,label:i,className:a,children:l}=n,p=c(n,[`as`,`label`,`className`,`children`]),{open:m}=this;return/*#__PURE__*/ d(t,s(o({},p),{className:f(`submenu`,{show:m},a),onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onKeyDown:this.handleKeyDown,children:[/*#__PURE__*/ u(B,{ref:this.trigger,className:`menu-item`,"aria-haspopup":`true`,"aria-expanded":m,onClick:this.handleClick,children:i}),/*#__PURE__*/ u(`div`,{ref:this.panel,style:o({},this.position.style),"data-bs-placement":this.position.placement,className:f(`menu start-100 top-0`,{show:m}),hidden:!m,children:l})]}))}constructor(...e){super(...e),n(this,za,{writable:!0,value:(Xa(this),Ja(this,!1))}),i(this,`panel`,/*#__PURE__*/ T()),i(this,`trigger`,/*#__PURE__*/ T()),i(this,`position`,new Y),i(this,`setOpen`,Ya(this,e=>this.open=e)),i(this,`handleClick`,()=>this.setOpen(!this.open)),i(this,`handleMouseEnter`,e=>{var t,n;(t=(n=this.componentProps).onMouseEnter)==null||t.call(n,e),e.defaultPrevented||this.setOpen(!0)}),i(this,`handleMouseLeave`,e=>{var t,n;(t=(n=this.componentProps).onMouseLeave)==null||t.call(n,e),e.defaultPrevented||this.setOpen(!1)}),i(this,`handleKeyDown`,e=>{var t,n;if((t=(n=this.componentProps).onKeyDown)==null||t.call(n,e),e.defaultPrevented)return;let{key:r}=e;if(r===`ArrowRight`&&(e.preventDefault(),e.stopPropagation(),this.setOpen(!0),queueMicrotask(()=>{var e,t;return(t=this.panel.current)==null||(e=t.querySelector(`a[href], button:not(:disabled)`))==null?void 0:e.focus()})),(r===`ArrowLeft`||r===`Escape`)&&this.open){var i;e.preventDefault(),e.stopPropagation(),this.setOpen(!1),(i=this.trigger.current)==null||i.focus()}})}},{e:[Ja,Ya,Xa],c:[mo,Ka]}=e(Ba,[[h,1,`open`],[p,0,`setOpen`]],[g],qa),Ba),Va=class extends a{constructor(){super(mo),i(this,`displayName`,`MenuSubmenu`),Ka()}},i(Va,La,void 0),Va);const ho={"top-start":[`bottom-100`,`start-0`],"top-end":[`bottom-100`,`end-0`],"bottom-start":[`top-100`,`start-0`],"bottom-end":[`top-100`,`end-0`],"left-start":[`end-100`,`top-0`],"left-end":[`end-100`,`bottom-0`],"right-start":[`start-100`,`top-0`],"right-end":[`start-100`,`bottom-0`]},go={sm:576,md:768,lg:1024,xl:1280,"2xl":1536};let Z;new(Ra=(Ha=/*#__PURE__*/ new WeakMap,Ua=/*#__PURE__*/ new WeakMap,Wa=class extends (Qa=b){get componentProps(){return this.props}get open(){return t(this,Ha)}set open(e){r(this,Ha,e)}get responsiveDirection(){return t(this,Ua)}set responsiveDirection(e){r(this,Ua,e)}componentDidMount(){document.addEventListener(`pointerdown`,this.handleOutside),this.observePlacement()}componentDidUpdate({responsivePlacement:e}){var t,n;e!==this.componentProps.responsivePlacement&&this.observePlacement();let{trigger:r,panel:i,position:a,componentProps:o}=this;if(!this.open)return a.dispose();if(!r.current||!i.current)return;let{placement:s,align:c,offset:l,padding:u,flip:d}=o,f={placement:(t=(n=this.responsiveDirection)==null?s:n)==null?`bottom-${c==null?`end`:c}`:t,offset:l,padding:u,flip:d};a.element===i.current?(a.options=f,a.update()):a.attach(r.current,i.current,f)}componentWillUnmount(){document.removeEventListener(`pointerdown`,this.handleOutside),this.position.dispose();for(let{query:e}of this.media)e.removeEventListener(`change`,this.handlePlacement)}items(e=this.panel.current){var t;return[...(t=e==null?void 0:e.querySelectorAll(`a[href]:not([aria-disabled="true"]), button:not(:disabled):not([aria-disabled="true"])`))==null?[]:t].filter(t=>!t.closest(`[hidden]`)&&t.closest(`.menu`)===e)}render(){var e,t;let n=(e=this.componentProps.as)==null?`div`:e,r=this.componentProps,{as:i,label:a,autoClose:l,align:p=`end`,placement:m,responsivePlacement:h,theme:g,translucent:_,scrollable:v,split:y,nav:b,offset:x,padding:S,flip:C,menuClassName:w,toggleProps:T,onOpenChange:E,onKeyDown:D,onBlur:O,children:k,className:A,id:j}=r,M=c(r,[`as`,`label`,`autoClose`,`align`,`placement`,`responsivePlacement`,`theme`,`translucent`,`scrollable`,`split`,`nav`,`offset`,`padding`,`flip`,`menuClassName`,`toggleProps`,`onOpenChange`,`onKeyDown`,`onBlur`,`children`,`className`,`id`]),{open:N}=this,P=(t=this.responsiveDirection)==null?m:t,F=this.position.element?this.position.placement:P,I=F?ho[F]:[`top-100`,p===`end`?`end-0`:`start-0`];return/*#__PURE__*/ d(n,s(o({},M),{ref:this.root,id:j,"data-bs-theme":g,className:f(y?`btn-group`:`d-inline-block`,`position-relative`,A),onKeyDown:this.handleKeyDown,onBlur:this.handleBlur,children:[/*#__PURE__*/ u(B,s(o({variant:!b&&void 0},T),{ref:this.trigger,"aria-expanded":N,"aria-haspopup":`true`,className:f(T==null?void 0:T.className,y&&`menu-toggle-split`,b&&`nav-link`),"aria-controls":j?`${j}-menu`:void 0,onClick:this.handleToggle,children:a})),/*#__PURE__*/ u(`div`,{ref:this.panel,id:j?`${j}-menu`:void 0,"data-bs-placement":F==null?`bottom-${p}`:F,style:o({},this.position.style),className:f(`menu`,I,_&&`menu-translucent`,v&&`menu-scrollable`,{show:N},w),hidden:!N,onClick:this.handleSelect,children:k})]}))}constructor(...e){super(...e),n(this,Ha,{writable:!0,value:(ro(this),$a(this,!1))}),n(this,Ua,{writable:!0,value:eo(this)}),i(this,`root`,/*#__PURE__*/ T()),i(this,`trigger`,/*#__PURE__*/ T()),i(this,`panel`,/*#__PURE__*/ T()),i(this,`media`,[]),i(this,`position`,new Y),i(this,`observePlacement`,()=>{for(let{query:e}of this.media)e.removeEventListener(`change`,this.handlePlacement);this.media=Object.keys(go).flatMap(e=>{var t;let n=(t=this.componentProps.responsivePlacement)==null?void 0:t[e];if(!n)return[];let r=window.matchMedia(`(min-width: ${go[e]}px)`);return r.addEventListener(`change`,this.handlePlacement),[{query:r,placement:n}]}),this.handlePlacement()}),i(this,`handlePlacement`,to(this,()=>{var e;return this.responsiveDirection=(e=[...this.media].reverse().find(({query:e})=>e.matches))==null?void 0:e.placement})),i(this,`setOpen`,no(this,e=>{var t,n;this.open!==e&&(this.open=e,(t=(n=this.componentProps).onOpenChange)==null||t.call(n,e))})),i(this,`handleOutside`,({target:e})=>{var t;let{autoClose:n=!0}=this.componentProps;n!==!1&&n!==`inside`&&e instanceof Node&&!((t=this.root.current)!=null&&t.contains(e))&&this.setOpen(!1)}),i(this,`handleKeyDown`,e=>{var t,n;(t=(n=this.componentProps).onKeyDown)==null||t.call(n,e);let{key:r,defaultPrevented:i}=e;if(!i){if(r===`Escape`&&this.open){var a;return e.preventDefault(),this.setOpen(!1),(a=this.trigger.current)==null?void 0:a.focus()}if(r===`Tab`)return this.setOpen(!1);e.target instanceof Element&&e.target.matches(`input, textarea, select, [contenteditable="true"]`)||[`ArrowDown`,`ArrowUp`,`Home`,`End`].includes(r)&&(e.preventDefault(),this.setOpen(!0),queueMicrotask(()=>{var t;let n=e.target instanceof Element?e.target.closest(`.menu`):void 0,i=this.items(n==null?this.panel.current:n),a=i.findIndex(e=>e===document.activeElement),o=r===`Home`?0:i.length-1;r===`ArrowDown`&&(o=(a+1)%i.length),r===`ArrowUp`&&(o=a<=0?i.length-1:a-1),(t=i[o])==null||t.focus()}))}}),i(this,`handleBlur`,e=>{let{onBlur:t,autoClose:n=!0}=this.componentProps;t==null||t(e);let{defaultPrevented:r,currentTarget:i,relatedTarget:a}=e;!r&&n!==!1&&n!==`inside`&&!i.contains(a)&&this.setOpen(!1)}),i(this,`handleToggle`,()=>this.setOpen(!this.open)),i(this,`handleSelect`,({target:e,defaultPrevented:t})=>{let{autoClose:n=!0}=this.componentProps;n&&!t&&n!==`outside`&&e instanceof Element&&!e.closest(`.submenu > .menu-item`)&&e.closest(`a[href], button:not(:disabled)`)&&this.setOpen(!1)})}},{e:[$a,eo,to,no,ro],c:[Z,Za]}=e(Wa,[[h,1,`open`],[h,1,`responsiveDirection`],[p,0,`handlePlacement`],[p,0,`setOpen`]],[g],Qa),Wa),Ga=class extends a{constructor(){super(Z),i(this,`displayName`,`Menu`),Za()}},i(Ga,Ra,void 0),Ga);const _o=z(e=>{let{as:t=`button`,value:n,className:r,children:i}=e,a=c(e,[`as`,`value`,`className`,`children`]);return/*#__PURE__*/ u(t,s(o({},a),{type:`button`,className:f(`menu-item`,r),"data-value":n,children:i}))});_o.displayName=`Option`;var vo=class extends b{render(){var e,t;let{align:n,className:r,menuClassName:i,children:a,theme:o=`primary`,variant:s=`solid`,size:c,disabled:p,style:m,value:h,onChange:g,valueRender:_,name:v,placeholder:b,"aria-label":x}=this.props,S=y.toArray(a).find(e=>/*#__PURE__*/ D(e)&&e.type===_o&&e.props.value===h);return/*#__PURE__*/ d(l,{children:[/*#__PURE__*/ u(Z,{align:n,className:`w-100`,menuClassName:i,label:(e=(t=_==null?void 0:_(h==null?``:h))==null?S==null?void 0:S.props.children:t)==null?b:e,toggleProps:{className:f(`w-100 d-flex justify-content-between align-items-center`,r),theme:o,variant:s,size:c,disabled:p,style:m,"aria-label":x},onClick:this.handleSelect,children:y.map(a,this.renderOption)}),v&&/*#__PURE__*/ u(`input`,{type:`hidden`,name:v,value:h==null?``:h,disabled:p})]})}constructor(...e){super(...e),i(this,`handleSelect`,({target:e,defaultPrevented:t})=>{var n,r,i;if(t||this.props.disabled||!(e instanceof Element))return;let a=e.closest(`[data-value]`);a&&!a.disabled&&a.getAttribute(`aria-disabled`)!==`true`&&((r=(i=this.props).onChange)==null||r.call(i,(n=a.dataset.value)==null?``:n))}),i(this,`renderOption`,e=>/*#__PURE__*/ D(e)&&e.type===_o?/*#__PURE__*/ C(e,{className:f(e.props.className,e.props.value===this.props.value&&`selected`),"aria-selected":e.props.value===this.props.value}):e)}};i(vo,`displayName`,`Select`);const Q=z(e=>{let{as:t=`img`,fluid:n,thumbnail:r,className:i}=e,a=c(e,[`as`,`fluid`,`thumbnail`,`className`]);return/*#__PURE__*/ u(t,s(o({},a),{className:f({"img-fluid":n,"img-thumbnail":r},i)}))});Q.displayName=`Image`;let yo;var bo,xo,So,Co,wo,To,Eo,Do,Oo;function ko(e,t,n){return R(function*(){let r=yield Ce(e,{useCORS:!0});return new Promise((e,i)=>r.toBlob(t=>t?e(URL.createObjectURL(t)):i(),t,n))})()}let Ao;new(yo=(bo=/*#__PURE__*/ new WeakMap,xo=/*#__PURE__*/ new WeakMap,So=class extends (To=b){get loading(){return t(this,bo)}set loading(e){r(this,bo,e)}get imageURI(){return t(this,xo)}set imageURI(e){r(this,xo,e)}componentDidMount(){var e,t;(e=(t=globalThis).addEventListener)==null||e.call(t,`resize`,this.generateImage)}componentWillUnmount(){var e,t;(e=(t=globalThis).removeEventListener)==null||e.call(t,`resize`,this.generateImage)}render(){let e=this.props,{className:t=``,children:n}=e,r=c(e,[`className`,`children`]),{loading:i,imageURI:a}=this;return/*#__PURE__*/ d(l,{children:[i&&/*#__PURE__*/ u(ki,{}),/*#__PURE__*/ d(`div`,s(o({},r),{ref:this.root,className:`position-relative ${t}`,onMouseEnter:a?void 0:this.generateImage,onTouchStart:a?void 0:this.generateImage,children:[n,a&&/*#__PURE__*/ u(Q,{className:`position-absolute start-0 top-0 w-100 h-100`,src:a,alt:`Share Image`,fluid:!0,onClick:this.share})]}))]})}constructor(...e){var t;super(...e),t=this,i(this,`root`,(Oo(this),/*#__PURE__*/ T())),n(this,bo,{writable:!0,value:Eo(this,!1)}),n(this,xo,{writable:!0,value:Do(this,``)}),i(this,`generateImage`,()=>R(function*(){t.imageURI&&(URL.revokeObjectURL(t.imageURI),t.imageURI=``),t.loading=!0,t.imageURI=yield ko(t.root.current),t.loading=!1})()),i(this,`share`,e=>R(function*(){var n,r;e.stopPropagation();let i=yield ce(t.imageURI),a=new File([i],`${t.props.title}.png`,{type:i.type});yield(n=(r=navigator).share)==null?void 0:n.call(r,o({files:[a]},t.props))})())}},{e:[Eo,Do,Oo],c:[Ao,wo]}=e(So,[[h,1,`loading`],[h,1,`imageURI`]],[g],To),So),Co=class extends a{constructor(){super(Ao),i(this,`displayName`,`ShareBox`),wo()}},i(Co,yo,void 0),Co);const jo=z(e=>{let{as:t,animation:n,loading:r,disabled:i,children:a}=e,f=c(e,[`as`,`animation`,`loading`,`disabled`,`children`]);return/*#__PURE__*/ d(B,s(o({as:t},f),{disabled:r||i,children:[r&&/*#__PURE__*/ d(l,{children:[/*#__PURE__*/ u(J,{className:a?`me-2`:``,size:`sm`,animation:n,role:`status`,"aria-hidden":`true`}),!a&&/*#__PURE__*/ u(`span`,{className:`visually-hidden`,children:`Loading...`})]}),a]}))});jo.displayName=`SpinnerButton`;const Mo=z(e=>{let{as:t=`tr`,animation:n=`border`,theme:r=`primary`,size:i,colSpan:a}=e,l=c(e,[`as`,`animation`,`theme`,`size`,`colSpan`]);return/*#__PURE__*/ u(t,s(o({},l),{children:/*#__PURE__*/ u(`td`,{className:`text-center p-4`,colSpan:a,children:/*#__PURE__*/ u(J,{animation:n,theme:r,size:i,role:`status`,"aria-label":`Loading`})})}))});Mo.displayName=`TableSpinner`;let No;var Po,Fo,Io,Lo,Ro,zo,Bo,Vo,Ho;let Uo;new(No=(Po=/*#__PURE__*/ new WeakMap,Fo=/*#__PURE__*/ new WeakMap,Io=class extends (zo=b){get expanded(){return t(this,Po)}set expanded(e){r(this,Po,e)}get overflowed(){return t(this,Fo)}set overflowed(e){r(this,Fo,e)}componentDidMount(){this.checkOverflow(),window.addEventListener(`resize`,this.checkOverflow)}componentDidUpdate({rows:e,children:t}){this.expanded||t===this.props.children&&e===this.props.rows||this.checkOverflow()}componentWillUnmount(){window.removeEventListener(`resize`,this.checkOverflow)}render(){let{children:e,rows:t=3,expandText:n=`⏬`,collapseText:r}=this.props,{expanded:i,overflowed:a}=this,o={overflow:`hidden`,display:`-webkit-box`,WebkitBoxOrient:`vertical`,WebkitLineClamp:t};return/*#__PURE__*/ d(l,{children:[/*#__PURE__*/ u(`div`,{ref:this.contentRef,style:i?void 0:o,children:e}),(a||i)&&/*#__PURE__*/ u(`button`,{type:`button`,className:`bg-transparent border-0 p-0`,"aria-expanded":i,onClick:this.toggle,children:i?r:n})]})}constructor(...e){super(...e),n(this,Po,{writable:!0,value:(Ho(this),Bo(this,!1))}),n(this,Fo,{writable:!0,value:Vo(this,!1)}),i(this,`contentRef`,/*#__PURE__*/ T()),i(this,`checkOverflow`,p(()=>{let{current:e}=this.contentRef;e&&(this.overflowed=e.scrollHeight>e.clientHeight)})),i(this,`toggle`,p(()=>{this.expanded=!this.expanded,this.expanded||requestAnimationFrame(this.checkOverflow)}))}},{e:[Bo,Vo,Ho],c:[Uo,Ro]}=e(Io,[[h,1,`expanded`],[h,1,`overflowed`]],[g],zo),Io),Lo=class extends a{constructor(){super(Uo),i(this,`displayName`,`TextTruncateContent`),Ro()}},i(Lo,No,void 0),Lo);const Wo=z(e=>{let{as:t=`div`,rows:n=3,expandText:r=`⏬`,collapseText:i=`⏫`,children:a}=e,l=c(e,[`as`,`rows`,`expandText`,`collapseText`,`children`]);return/*#__PURE__*/ u(t,s(o({},l),{children:/*#__PURE__*/ u(Uo,{rows:n,expandText:r,collapseText:i,children:a})}))});Wo.displayName=`TextTruncate`;const Go=z(e=>{let{as:t=`time`,dateTime:n,format:r}=e,i=c(e,[`as`,`dateTime`,`format`]);return/*#__PURE__*/ u(t,s(o({dateTime:new Date(n).toJSON()},i),{children:L(n,r)}))});Go.displayName=`Time`;const Ko={ms:`millisecond(s)`,s:`second(s)`,m:`minute(s)`,H:`hour(s)`,D:`day(s)`,W:`week(s)`,M:`month(s)`,Y:`year(s)`},qo=z(e=>{let{as:t=`time`,date:n,unitWords:r=Ko,beforeWord:i=` before`,afterWord:a=` after`}=e,l=c(e,[`as`,`date`,`unitWords`,`beforeWord`,`afterWord`]);n=new Date(n);let{distance:u,unit:f}=ue(n);return/*#__PURE__*/ d(t,s(o({},l),{dateTime:n.toJSON(),title:n.toLocaleString(),children:[Math.abs(u),` `,r[f],u<0?i:a]}))});qo.displayName=`TimeDistance`;const Jo=z(e=>{let{as:t=`ol`,className:n,events:r,timeFormat:i}=e,a=c(e,[`as`,`className`,`events`,`timeFormat`]);return/*#__PURE__*/ u(t,s(o({className:`list-unstyled M_u5hG_timeline ${n}`},a),{children:r.map(({title:e,summary:t,time:n,link:r,people:a})=>/*#__PURE__*/ u(`li`,{className:`position-relative M_u5hG_timelineItem M_u5hG_right`,children:/*#__PURE__*/ u(ft,{children:/*#__PURE__*/ d(vt,{className:`p-4 d-flex flex-column gap-3 align-items-center`,children:[/*#__PURE__*/ u(bt,{className:`h5 m-0`,children:/*#__PURE__*/ u(`a`,{className:`text-decoration-none stretched-link`,href:r,children:e})}),/*#__PURE__*/ d(`div`,{className:`small fg-3 d-flex gap-2`,children:[`⏲️`,/*#__PURE__*/ u(Go,{dateTime:n[0],format:i}),n[1]&&`~`,n[1]&&/*#__PURE__*/ u(Go,{dateTime:n[1],format:i})]}),/*#__PURE__*/ u(`ul`,{className:`list-unstyled m-0 d-flex gap-2 flex-wrap justify-content-around`,children:a==null?void 0:a.map(e=>/*#__PURE__*/ u(`li`,{children:/*#__PURE__*/ u(la,o({},e))},e.name))}),/*#__PURE__*/ u(xt,{className:`m-0`,children:t})]})})},e))}))});Jo.displayName=`Timeline`;let Yo;var Xo,Zo,Qo,$o,es,ts,ns,rs,is;let as;new(Yo=(Xo=/*#__PURE__*/ new WeakMap,Zo=/*#__PURE__*/ new WeakMap,Qo=class extends (ts=b){get componentProps(){return this.props}get echoed(){return t(this,Xo)}set echoed(e){r(this,Xo,e)}get started(){return t(this,Zo)}set started(e){r(this,Zo,e)}componentDidMount(){this.start()}componentWillUnmount(){var e;(e=this.visibilityObserver)==null||e.disconnect()}componentDidUpdate(){var e;this.forwardRootRef((e=this.root)==null?null:e)}render(){var e;let t=(e=this.componentProps.as)==null?`pre`:e,n=this.componentProps,{as:r,rootRef:i,className:a,text:l,intervals:d}=n,p=c(n,[`as`,`rootRef`,`className`,`text`,`intervals`]),{started:m,echoed:h}=this;return/*#__PURE__*/ u(t,s(o({},p),{ref:this.init,className:f(`text-wrap`,a),children:m?h+(h===l?``:`_`):l}))}constructor(...e){var t;super(...e),t=this,n(this,Xo,{writable:!0,value:(is(this),ns(this,``))}),n(this,Zo,{writable:!0,value:rs(this,!1)}),i(this,`visibilityObserver`,void 0),i(this,`root`,void 0),i(this,`forwardedRootRef`,void 0),i(this,`releaseRootRef`,void 0),i(this,`start`,p(()=>this.started=!0)),i(this,`echo`,p(e=>this.echoed+=e)),i(this,`forwardRootRef`,e=>{var t,n;let{rootRef:r}=this.componentProps;if((this.root!==e||this.forwardedRootRef!==r)&&((t=(n=this).releaseRootRef)==null||t.call(n),this.releaseRootRef=void 0,this.root=e,this.forwardedRootRef=r,e)){if(typeof r==`function`){let t=r(e);this.releaseRootRef=typeof t==`function`?t:()=>r(null)}else r&&(r.current=e,this.releaseRootRef=()=>r.current=null)}}),i(this,`init`,e=>{var n;(n=this.visibilityObserver)==null||n.disconnect(),this.forwardRootRef(e),e&&(this.visibilityObserver=new IntersectionObserver(([{isIntersecting:e}],n)=>R(function*(){if(!e)return;n.disconnect();let{text:r,intervals:i=150}=t.componentProps;for(let e of r)yield fe(i/1e3),t.echo(e)})()),this.visibilityObserver.observe(e))})}},{e:[ns,rs,is],c:[as,es]}=e(Qo,[[h,1,`echoed`],[h,1,`started`]],[g],ts),Qo),$o=class extends a{constructor(){super(as),i(this,`displayName`,`TypeEchoContent`),es()}},i($o,Yo,void 0),$o);const os=z(e=>{let{as:t,text:n,intervals:r,ref:i}=e,a=c(e,[`as`,`text`,`intervals`,`ref`]);return/*#__PURE__*/ u(as,s(o({as:t},a),{rootRef:i,text:n,intervals:r}))});os.displayName=`TypeEcho`;const ss=z(e=>{let{as:t=`div`,fluid:n,className:r}=e,i=c(e,[`as`,`fluid`,`className`]);return/*#__PURE__*/ u(t,s(o({},i),{className:f(n===!0?`container-fluid`:n?`${n}:container`:`container`,r)}))});ss.displayName=`Container`;const cs=z(e=>{let{as:t=`div`,xs:n,sm:r,md:i,lg:a,xl:l,"2xl":d,className:p}=e,m=c(e,[`as`,`xs`,`sm`,`md`,`lg`,`xl`,`2xl`,`className`]),h=[[`sm`,r],[`md`,i],[`lg`,a],[`xl`,l],[`2xl`,d]];return/*#__PURE__*/ u(t,s(o({},m),{className:f(`row`,n!==void 0&&`row-cols-${n}`,h.map(([e,t])=>t!==void 0&&`${e}:row-cols-${t}`),p)}))});cs.displayName=`Row`;const $=z(e=>{let{as:t=`div`,xs:n,sm:r,md:i,lg:a,xl:l,"2xl":d,className:p}=e,m=c(e,[`as`,`xs`,`sm`,`md`,`lg`,`xl`,`2xl`,`className`]),h=[[`sm`,r],[`md`,i],[`lg`,a],[`xl`,l],[`2xl`,d]],g=h.some(([,e])=>e!==void 0);return/*#__PURE__*/ u(t,s(o({},m),{className:f({col:n===void 0&&!g||n===!0,[`col-${n}`]:n!==void 0&&n!==!0},h.map(([e,t])=>t!==void 0&&(t===!0?`${e}:col`:`${e}:col-${t}`)),p)}))});$.displayName=`Col`;const ls=z(e=>{let{as:t,striped:n,stripedColumns:r,hover:i,bordered:a,borderless:l,small:d,responsive:p,className:m,children:h}=e,g=c(e,[`as`,`striped`,`stripedColumns`,`hover`,`bordered`,`borderless`,`small`,`responsive`,`className`,`children`]),_=t==null?`div`:t,v=/*#__PURE__*/ u(!p&&t?t:`table`,s(o({},p&&t?{}:g),{className:f(`table`,{"table-striped":n,"table-striped-columns":r,"table-hover":i,"table-bordered":a,"table-borderless":l,"table-sm":d},p&&t?void 0:m),children:h}));return p?/*#__PURE__*/ u(_,s(o({},t?g:{}),{className:f(`table-responsive`,p!==!0&&`${p}:table-responsive`,t&&m),children:v})):v});ls.displayName=`Table`;const us=z(({as:e=`address`,email:t,website:n})=>/*#__PURE__*/ d(e,{className:`mb-0 d-flex justify-content-around gap-2`,children:[t&&/*#__PURE__*/ u(`a`,{rel:`noreferrer`,target:`_blank`,href:`mailto:`+t,children:/*#__PURE__*/ u(V,{name:`envelope`})}),n&&/*#__PURE__*/ u(`a`,{rel:`noreferrer`,target:`_blank`,href:n,children:/*#__PURE__*/ u(V,{name:`globe2`})})]}));us.displayName=`UserAddress`;const ds=`UcKh3G_image`,fs=z(e=>{let{as:t,className:n=``,title:r,rank:i=[],linkOf:a}=e,l=c(e,[`as`,`className`,`title`,`rank`,`linkOf`]);return/*#__PURE__*/ u(ss,s(o({as:t,className:n},l),{children:/*#__PURE__*/ d(cs,{className:`UcKh3G_rankBox`,children:[/*#__PURE__*/ d($,{xs:12,lg:7,children:[/*#__PURE__*/ d(`div`,{className:`shadow rounded-3 UcKh3G_title`,children:[/*#__PURE__*/ d(`div`,{className:`UcKh3G_medal`,children:[/*#__PURE__*/ u(`i`,{className:`d-inline-block ms-1 overflow-hidden rounded-circle`}),/*#__PURE__*/ u(`i`,{className:`d-inline-block ms-1 overflow-hidden rounded-circle`}),/*#__PURE__*/ u(`i`,{className:`d-inline-block ms-1 overflow-hidden rounded-circle`})]}),/*#__PURE__*/ u(`h3`,{"data-text":r,className:`position-relative m-auto mb-0 fw-bold text-center`,children:r})]}),/*#__PURE__*/ u(`ul`,{className:`row mt-2 g-0 align-items-end text-center ps-0 pt-2 list-unstyled UcKh3G_topUsers`,children:i.slice(0,3).map(e=>/*#__PURE__*/ d(`li`,{className:`col`,children:[/*#__PURE__*/ u(`div`,{className:`shadow-lg overflow-hidden rounded-circle m-auto ${ds}`,children:/*#__PURE__*/ u(Q,{src:e.avatar,alt:e.name,loading:`lazy`,fluid:!0})}),/*#__PURE__*/ d(`div`,{className:`position-relative overflow-hidden UcKh3G_topUser`,children:[/*#__PURE__*/ d(`div`,{className:`position-relative`,children:[/*#__PURE__*/ u(`i`,{className:`d-block overflow-hidden m-auto mb-1 rounded-circle`}),/*#__PURE__*/ u(`a`,{className:`d-block mb-0 stretched-link`,href:(a==null?void 0:a(e))||`#`,children:e.name}),/*#__PURE__*/ u(`strong`,{children:e.score})]}),/*#__PURE__*/ u(us,o({},e))]})]},e.id))})]}),/*#__PURE__*/ u($,{xs:12,lg:5,children:/*#__PURE__*/ u(ls,{className:`my-3 pt-2 UcKh3G_restUsers`,responsive:!0,children:/*#__PURE__*/ u(`tbody`,{children:i.slice(3,10).map((e,t,{length:n})=>/*#__PURE__*/ d(`tr`,{className:`position-relative`,children:[/*#__PURE__*/ u(`td`,{className:`align-middle`,children:/*#__PURE__*/ u(at,{className:`fw-bold fst-italic`,children:(t+4+``).padStart((n+``).length,`0`)})}),/*#__PURE__*/ d(`td`,{className:`position-relative text-truncate UcKh3G_name`,children:[/*#__PURE__*/ u(`div`,{className:`d-inline-block overflow-hidden align-middle rounded-circle ${ds}`,children:/*#__PURE__*/ u(Q,{src:e.avatar,alt:e.name,loading:`lazy`,fluid:!0})}),/*#__PURE__*/ u(`a`,{className:`ms-2 d-inline-block align-middle stretched-link`,style:{color:`rgb(248, ${(t+2)*15}, ${(t+2)*35})`},href:(a==null?void 0:a(e))||`#`,children:e.name})]}),/*#__PURE__*/ u(`td`,{className:`align-middle`,children:e.score}),/*#__PURE__*/ u(`td`,{className:`align-middle`,children:/*#__PURE__*/ u(us,o({},e))})]},e.id))})})})]})}))});fs.displayName=`UserRankView`;const ps=z(e=>{let{as:t=`div`,className:n=``,children:r,duration:i}=e,a=c(e,[`as`,`className`,`children`,`duration`]);return/*#__PURE__*/ u(t,s(o({className:`overflow-hidden h-100 ${n}`},a),{children:/*#__PURE__*/ u(`div`,{className:`d-inline-block max-w-100 max-h-100 x8UL2q_scrollWrap`,style:{"--duration":i},children:/*#__PURE__*/ u(`div`,{className:`d-inline-block x8UL2q_scrollItem`,children:r})})}))});ps.displayName=`VerticalMarquee`;const ms=[`🐵`,`🐔`,`🐶`,`🐷`,`🐭`,`🐮`,`🐯`,`🐰`,`🐲`,`🐍`,`🐴`,`🐐`],hs=e=>{let t=e<0?e+1:e;return ms[(t%12+12)%12]},gs=z(e=>{let{as:t=`ol`,className:n=``,itemClassName:r=`border rounded px-4 py-3 d-flex flex-column justify-content-center align-items-center`,startYear:i,endYear:a=(/* @__PURE__ */ new Date()).getFullYear(),itemOf:l}=e,f=c(e,[`as`,`className`,`itemClassName`,`startYear`,`endYear`,`itemOf`]);return/*#__PURE__*/ u(t,s(o({className:`list-unstyled m-0 d-flex flex-wrap justify-content-center gap-3 ${n}`},f),{children:Array.from({length:a-i+1},(e,t)=>{let n=a-t;if(n===0)return null;let i=hs(n),{link:o=`#`,title:s}=(l==null?void 0:l(n,i))||{};return/*#__PURE__*/ u(`li`,{className:r,children:/*#__PURE__*/ d(`a`,{className:`d-inline-block p-3 text-decoration-none text-center`,href:o,children:[/*#__PURE__*/ u(`div`,{className:`fs-3xl`,children:i}),s]})},n)})}))});gs.displayName=`ZodiacBar`;const _s=z(e=>{let{as:t=`label`,className:n,end:r,size:i,validation:a}=e,l=c(e,[`as`,`className`,`end`,`size`,`validation`]);return/*#__PURE__*/ u(t,s(o({},l),{className:f(`form-control form-adorn`,r&&`form-adorn-end`,i&&`form-control-${i}`,a&&`is-${a}`,n)}))});_s.displayName=`FormAdornment`;const vs=z(e=>{let{as:t=`span`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`form-adorn-text`,n)}))});vs.displayName=`FormAdornmentText`;const ys=z(e=>{let{as:t,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(V,s(o({as:t},r),{className:f(`form-adorn-icon`,n)}))});ys.displayName=`FormAdornmentIcon`;const bs=z(e=>{let{as:t=`input`,className:n,validation:r}=e,i=c(e,[`as`,`className`,`validation`]);return/*#__PURE__*/ u(t,s(o({},i),{"aria-invalid":r?r===`invalid`:i[`aria-invalid`],className:f(`form-ghost`,r&&`is-${r}`,n)}))});bs.displayName=`FormGhost`;var xs=class extends b{componentDidMount(){this.setIndeterminate()}componentDidUpdate(){this.setIndeterminate()}render(){let e=this.props,{as:t=`input`,className:n,size:r,theme:i,validation:a,indeterminate:l,forwardedRef:d}=e,p=c(e,[`as`,`className`,`size`,`theme`,`validation`,`indeterminate`,`forwardedRef`]);return/*#__PURE__*/ u(t,s(o({},p),{ref:this.setInputRef,type:`checkbox`,"aria-invalid":a?a===`invalid`:p[`aria-invalid`],"aria-checked":l?`mixed`:p[`aria-checked`],className:f(`check`,r&&`check-${r}`,i&&`theme-${i}`,a&&`is-${a}`,n)}))}constructor(...e){super(...e),i(this,`input`,void 0),i(this,`setIndeterminate`,()=>{this.input&&(this.input.indeterminate=this.props.indeterminate||!1)}),i(this,`setInputRef`,e=>{this.input=e||void 0;let{forwardedRef:t}=this.props;typeof t==`function`?t(e):t&&(t.current=e)})}};const Ss=z(/*#__PURE__*/ E((e,t)=>/*#__PURE__*/ u(xs,s(o({},e),{forwardedRef:t}))));Ss.displayName=`Checkbox`;var Cs=class extends b{updatePlugin(){}componentDidMount(){this.initialize()}componentDidUpdate(e){this.configurationChanged(e)?(this.dispose(),this.initialize()):this.updatePlugin()}componentWillUnmount(){this.dispose()}dispose(){var e;this.revision++,(e=this.instance)==null||e.dispose(),this.instance=void 0}constructor(...e){var t;super(...e),t=this,i(this,`element`,/*#__PURE__*/ T()),i(this,`instance`,void 0),i(this,`revision`,0),i(this,`initialize`,()=>R(function*(){let e=++t.revision,n=yield t.load();e===t.revision&&t.element.current&&(t.instance=n(t.element.current),t.updatePlugin())})())}},ws=class extends Cs{render(){let e=this.props,{as:t=`div`,className:n,theme:r,separator:i,allowDuplicates:a,maxChips:l,createOnBlur:d,dismissible:p,placeholder:m,onValuesChange:h,forwardedRef:g,validation:_}=e,v=c(e,[`as`,`className`,`theme`,`separator`,`allowDuplicates`,`maxChips`,`createOnBlur`,`dismissible`,`placeholder`,`onValuesChange`,`forwardedRef`,`validation`]);return/*#__PURE__*/ u(t,s(o({},v),{ref:this.setRef,className:f(`chip-input`,r&&`theme-${r}`,_&&`is-${_}`,n),"data-bs-chips":``,"data-bs-separator":i,"data-bs-allow-duplicates":a,"data-bs-max-chips":l,"data-bs-create-on-blur":d}))}constructor(...e){var t;super(...e),t=this,i(this,`configurationChanged`,e=>e.separator!==this.props.separator||e.allowDuplicates!==this.props.allowDuplicates||e.maxChips!==this.props.maxChips||e.createOnBlur!==this.props.createOnBlur||e.dismissible!==this.props.dismissible||e.placeholder!==this.props.placeholder),i(this,`load`,()=>R(function*(){let[{default:e},{default:n}]=yield Promise.all([import(`bootstrap/js/src/chips.js`),import(`bootstrap/js/src/dom/event-handler.js`)]),{separator:r=`,`,allowDuplicates:i=!1,maxChips:a=null,createOnBlur:o=!0,dismissible:s=!0,placeholder:c=``}=t.props;return l=>{let d=e.getOrCreateInstance(l,{separator:r,allowDuplicates:i,maxChips:a,createOnBlur:o,dismissible:s,placeholder:c,dismissIcon:we(/*#__PURE__*/ u(V,{name:`x-lg`,"aria-hidden":`true`}))});return l.addEventListener(`change.bs.chips`,t.handleValuesChange),{dispose:()=>{l.removeEventListener(`change.bs.chips`,t.handleValuesChange),n.off(l,`.bs.chips`),d.dispose()}}}})()),i(this,`handleValuesChange`,e=>{var t,n;return(t=(n=this.props).onValuesChange)==null?void 0:t.call(n,e.values)}),i(this,`setRef`,e=>{this.element.current=e;let{forwardedRef:t}=this.props;typeof t==`function`?t(e):t&&(t.current=e)})}};const Ts=z(/*#__PURE__*/ E((e,t)=>/*#__PURE__*/ u(ws,s(o({},e),{forwardedRef:t}))));Ts.displayName=`ChipInput`;const Es=z(e=>{let{as:t=`button`,className:n,active:r,theme:i}=e,a=c(e,[`as`,`className`,`active`,`theme`]);return/*#__PURE__*/ u(t,s(o({},a),{className:f(`chip`,{active:r},i&&`theme-${i}`,n),type:`button`,"aria-pressed":r}))});Es.displayName=`Chip`;const Ds=z(e=>{let{as:t,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(V,s(o({as:t},r),{className:f(`chip-icon`,n)}))});Ds.displayName=`ChipIcon`;const Os=z(e=>{let{as:t=`img`,className:n,alt:r=``}=e,i=c(e,[`as`,`className`,`alt`]);return/*#__PURE__*/ u(t,s(o({},i),{alt:r,className:f(`chip-img`,n)}))});Os.displayName=`ChipImage`;const ks=z(e=>{let{as:t=`button`,className:n,children:r,"aria-label":i=`Remove`}=e,a=c(e,[`as`,`className`,`children`,`aria-label`]);return/*#__PURE__*/ u(t,s(o({},a),{type:`button`,"aria-label":i,className:f(`chip-dismiss`,n),children:r==null?/*#__PURE__*/ u(V,{name:`x-lg`,"aria-hidden":`true`}):r}))});ks.displayName=`ChipDismiss`;const As=z(e=>{let{as:t=`span`,className:n,active:r,theme:i}=e,a=c(e,[`as`,`className`,`active`,`theme`]);var l;return/*#__PURE__*/ u(t,s(o({},a),{tabIndex:(l=a.tabIndex)==null?0:l,className:f(`chip`,{active:r},i&&`theme-${i}`,n)}))});As.displayName=`ChipToken`;const js=z(e=>{let{as:t=`label`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`chip-input-label`,n)}))});js.displayName=`ChipInputLabel`;let Ms;var Ns,Ps,Fs,Is,Ls,Rs,zs,Bs,Vs,Hs,Us,Ws,Gs,Ks,qs,Js;const Ys=z(e=>{let{as:t=`button`,className:n,value:r,children:i,description:a,icon:l,checkedIcon:p,searchText:m}=e,h=c(e,[`as`,`className`,`value`,`children`,`description`,`icon`,`checkedIcon`,`searchText`]);var g;return/*#__PURE__*/ d(t,s(o({},h),{type:`button`,role:`option`,"aria-selected":(g=h[`aria-selected`])!=null&&g,className:f(`menu-item`,n),"data-bs-value":r,"data-search-text":m,"data-label":Zs(i),"data-option-hidden":h.hidden||void 0,children:[l&&/*#__PURE__*/ u(V,{name:l,className:`menu-item-icon`,"aria-hidden":`true`}),a?/*#__PURE__*/ d(fo,{children:[i,/*#__PURE__*/ u(po,{children:a})]}):i,p&&/*#__PURE__*/ u(V,{name:`check-lg`,className:`menu-item-check`,"aria-hidden":`true`})]}))});Ys.displayName=`ComboboxOption`;const Xs=z(e=>{let{as:t=`div`,label:n,children:r}=e,i=c(e,[`as`,`label`,`children`]);return/*#__PURE__*/ d(t,s(o({},i),{role:`group`,"aria-label":typeof n==`string`?n:void 0,children:[/*#__PURE__*/ u(lo,{children:n}),r]}))});Xs.displayName=`ComboboxGroup`;const Zs=e=>y.toArray(e).map(e=>/*#__PURE__*/ D(e)?Zs(e.props.children):String(e)).join(` `),Qs=e=>y.toArray(e).flatMap(e=>/*#__PURE__*/ D(e)&&e.type===Ys?[e]:/*#__PURE__*/ D(e)?Qs(e.props.children):[]);let $s;new(Ms=(Ns=/*#__PURE__*/ new WeakMap,Ps=/*#__PURE__*/ new WeakMap,Fs=/*#__PURE__*/ new WeakMap,Is=/*#__PURE__*/ new WeakMap,Ls=class extends (Bs=b){get componentProps(){return this.props}get query(){return t(this,Ns)}set query(e){r(this,Ns,e)}get current(){return t(this,Ps)}set current(e){r(this,Ps,e)}get visibleOptionCount(){return t(this,Fs)}set visibleOptionCount(e){r(this,Fs,e)}get selectedLabel(){return t(this,Is)}set selectedLabel(e){r(this,Is,e)}get values(){var e;let t=(e=this.componentProps.value)==null?this.current:e;return Array.isArray(t)?t:t?[t]:[]}componentDidMount(){var e;this.updateAccessibility(),this.optionObserver=new MutationObserver(this.updateAccessibility);let t=(e=this.menu.current)==null?void 0:e.panel.current;t&&this.optionObserver.observe(t,{childList:!0,subtree:!0,characterData:!0})}componentDidUpdate(){this.updateAccessibility()}componentWillUnmount(){var e;(e=this.optionObserver)==null||e.disconnect()}render(){var e,t,n,r;let i=(e=this.componentProps.as)==null?`div`:e,a=this.componentProps,{as:p,className:m,id:h,name:g,value:_,defaultValue:v,placeholder:b=`Select an item…`,disabled:x,multiple:S,onChange:C,onClick:w,menuClassName:T,children:E,controlSize:D,search:O,searchNormalize:k,searchPlaceholder:A=`Search…`,noResultsText:j=`No results found`,validation:M}=a,N=c(a,[`as`,`className`,`id`,`name`,`value`,`defaultValue`,`placeholder`,`disabled`,`multiple`,`onChange`,`onClick`,`menuClassName`,`children`,`controlSize`,`search`,`searchNormalize`,`searchPlaceholder`,`noResultsText`,`validation`]),P=Qs(E).filter(e=>this.values.includes(e.props.value)),F=P.length>0||!!this.selectedLabel,I=S&&P.length>1?`${P.length} selected`:(t=(r=P[0])==null?void 0:r.props.children)==null?this.selectedLabel:t,ee=this.visibleOptionCount===0;return/*#__PURE__*/ d(i,s(o({},N),{className:f(`combobox`,m),children:[/*#__PURE__*/ d(Z,{ref:this.menu,className:`w-100`,id:h?`${h}-combobox`:void 0,label:/*#__PURE__*/ d(l,{children:[/*#__PURE__*/ u(`span`,{className:f(`combobox-value`,!F&&`combobox-placeholder`),children:F?I:b}),/*#__PURE__*/ u(V,{name:`chevron-down`,className:`combobox-caret`,"aria-hidden":`true`})]}),toggleProps:{id:h,className:f(`form-control combobox-toggle`,D&&`form-control-${D}`,M&&`is-${M}`),variant:!1,disabled:x,"aria-haspopup":`listbox`,"aria-label":(n=this.componentProps[`aria-label`])==null?b:n,"aria-labelledby":this.componentProps[`aria-labelledby`],"aria-describedby":this.componentProps[`aria-describedby`],"aria-invalid":M?M===`invalid`:this.componentProps[`aria-invalid`]},autoClose:!S,menuClassName:f(T,`combobox-menu`),onClick:this.handleClick,children:[O&&/*#__PURE__*/ u(`div`,{className:`combobox-search`,children:/*#__PURE__*/ u(`input`,{type:`search`,className:`form-control combobox-search-input`,"aria-label":A,placeholder:A,autoComplete:`off`,value:this.query,onChange:this.handleSearch})}),y.map(E,this.renderChild),O&&ee&&/*#__PURE__*/ u(`div`,{className:`combobox-empty`,role:`status`,children:j})]}),this.values.length||S?this.values.map(this.renderHiddenInput):this.renderHiddenInput(``)]}))}constructor(...e){var t;super(...e),n(this,Ns,{writable:!0,value:(Js(this),Vs(this,``))}),n(this,Ps,{writable:!0,value:Hs(this,(t=this.componentProps.defaultValue)==null?this.componentProps.multiple?[]:``:t)}),n(this,Fs,{writable:!0,value:Us(this,0)}),n(this,Is,{writable:!0,value:Ws(this,``)}),i(this,`menu`,/*#__PURE__*/ T()),i(this,`optionObserver`,void 0),i(this,`updateAccessibility`,Gs(this,()=>{var e,t,n,r,i,a,o,s;let c=(a=this.menu.current)==null?void 0:a.panel.current,l=[...(e=c==null?void 0:c.querySelectorAll(`[data-bs-value]`))==null?[]:e],u=[],d=0;for(let e of l){var f,p,m,h,g;let t=(f=e.dataset.bsValue)==null?``:f,n=(p=(m=e.dataset.searchText)==null?e.textContent:m)==null?``:p,r=e.dataset.optionHidden!==`true`&&this.normalize(n).includes(this.normalize(this.query)),i=this.values.includes(t);e.setAttribute(`role`,`option`),e.setAttribute(`aria-selected`,String(i)),e.classList.toggle(`selected`,i),e.hidden=!r,e.style.display=r?``:`none`,r&&d++,i&&u.push((h=(g=e.dataset.label)==null?e.textContent:g)==null?``:h)}for(let e of(t=c==null?void 0:c.querySelectorAll(`[role="group"]`))==null?[]:t){let t=[...e.querySelectorAll(`[data-bs-value]`)].some(({hidden:e})=>!e);e.hidden=!t,e.style.display=t?``:`none`}this.visibleOptionCount=d,this.selectedLabel=this.componentProps.multiple&&u.length>1?`${u.length} selected`:(n=u[0])==null?``:n,c==null||c.setAttribute(`role`,`listbox`),c==null||c.setAttribute(`aria-multiselectable`,String(!!this.componentProps.multiple)),c==null||c.setAttribute(`aria-label`,(r=(i=this.componentProps[`aria-label`])==null?this.componentProps.placeholder:i)==null?`Options`:r),(s=this.menu.current)==null||(o=s.trigger.current)==null||o.setAttribute(`aria-haspopup`,`listbox`)})),i(this,`setCurrent`,Ks(this,e=>this.current=e)),i(this,`handleSearch`,qs(this,({currentTarget:{value:e}})=>this.query=e)),i(this,`handleClick`,e=>{var t,n,r,i,a;(n=(r=this.componentProps).onClick)==null||n.call(r,e);let{target:o,defaultPrevented:s}=e;if(s||this.componentProps.disabled||!(o instanceof Element))return;let c=o.closest(`[data-bs-value]`);if(!c||c.disabled||c.getAttribute(`aria-disabled`)===`true`)return;let l=(t=c.dataset.bsValue)==null?``:t,u=this.componentProps.multiple?this.values.includes(l)?this.values.filter(e=>e!==l):[...this.values,l]:l;(i=(a=this.componentProps).onChange)==null||i.call(a,u),this.componentProps.value===void 0&&this.setCurrent(u)}),i(this,`normalize`,e=>{let t=e.toLocaleLowerCase();return this.componentProps.searchNormalize?t.normalize(`NFD`).replace(RegExp(`[\\u0300-\\u036F\\u0483-\\u0489\\u0591-\\u05BD\\u05BF\\u05C1-\\u05C2\\u05C4-\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065F\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7-\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u07FD\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0859-\\u085B\\u0897-\\u089F\\u08CA-\\u08E1\\u08E3-\\u0903\\u093A-\\u093C\\u093E-\\u094F\\u0951-\\u0957\\u0962-\\u0963\\u0981-\\u0983\\u09BC\\u09BE-\\u09C4\\u09C7-\\u09C8\\u09CB-\\u09CD\\u09D7\\u09E2-\\u09E3\\u09FE\\u0A01-\\u0A03\\u0A3C\\u0A3E-\\u0A42\\u0A47-\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70-\\u0A71\\u0A75\\u0A81-\\u0A83\\u0ABC\\u0ABE-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AE2-\\u0AE3\\u0AFA-\\u0AFF\\u0B01-\\u0B03\\u0B3C\\u0B3E-\\u0B44\\u0B47-\\u0B48\\u0B4B-\\u0B4D\\u0B55-\\u0B57\\u0B62-\\u0B63\\u0B82\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD7\\u0C00-\\u0C04\\u0C3C\\u0C3E-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55-\\u0C56\\u0C62-\\u0C63\\u0C81-\\u0C83\\u0CBC\\u0CBE-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5-\\u0CD6\\u0CE2-\\u0CE3\\u0CF3\\u0D00-\\u0D03\\u0D3B-\\u0D3C\\u0D3E-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4D\\u0D57\\u0D62-\\u0D63\\u0D81-\\u0D83\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DF2-\\u0DF3\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EBC\\u0EC8-\\u0ECE\\u0F18-\\u0F19\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F3F\\u0F71-\\u0F84\\u0F86-\\u0F87\\u0F8D-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102B-\\u103E\\u1056-\\u1059\\u105E-\\u1060\\u1062-\\u1064\\u1067-\\u106D\\u1071-\\u1074\\u1082-\\u108D\\u108F\\u109A-\\u109D\\u135D-\\u135F\\u1712-\\u1715\\u1732-\\u1734\\u1752-\\u1753\\u1772-\\u1773\\u17B4-\\u17D3\\u17DD\\u180B-\\u180D\\u180F\\u1885-\\u1886\\u18A9\\u1920-\\u192B\\u1930-\\u193B\\u1A17-\\u1A1B\\u1A55-\\u1A5E\\u1A60-\\u1A7C\\u1A7F\\u1AB0-\\u1ADD\\u1AE0-\\u1AEB\\u1B00-\\u1B04\\u1B34-\\u1B44\\u1B6B-\\u1B73\\u1B80-\\u1B82\\u1BA1-\\u1BAD\\u1BE6-\\u1BF3\\u1C24-\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE8\\u1CED\\u1CF4\\u1CF7-\\u1CF9\\u1DC0-\\u1DFF\\u20D0-\\u20F0\\u2CEF-\\u2CF1\\u2D7F\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099-\\u309A\\uA66F-\\uA672\\uA674-\\uA67D\\uA69E-\\uA69F\\uA6F0-\\uA6F1\\uA802\\uA806\\uA80B\\uA823-\\uA827\\uA82C\\uA880-\\uA881\\uA8B4-\\uA8C5\\uA8E0-\\uA8F1\\uA8FF\\uA926-\\uA92D\\uA947-\\uA953\\uA980-\\uA983\\uA9B3-\\uA9C0\\uA9E5\\uAA29-\\uAA36\\uAA43\\uAA4C-\\uAA4D\\uAA7B-\\uAA7D\\uAAB0\\uAAB2-\\uAAB4\\uAAB7-\\uAAB8\\uAABE-\\uAABF\\uAAC1\\uAAEB-\\uAAEF\\uAAF5-\\uAAF6\\uABE3-\\uABEA\\uABEC-\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE2F\\u{101FD}\\u{102E0}\\u{10376}-\\u{1037A}\\u{10A01}-\\u{10A03}\\u{10A05}-\\u{10A06}\\u{10A0C}-\\u{10A0F}\\u{10A38}-\\u{10A3A}\\u{10A3F}\\u{10AE5}-\\u{10AE6}\\u{10D24}-\\u{10D27}\\u{10D69}-\\u{10D6D}\\u{10EAB}-\\u{10EAC}\\u{10EFA}-\\u{10EFF}\\u{10F46}-\\u{10F50}\\u{10F82}-\\u{10F85}\\u{11000}-\\u{11002}\\u{11038}-\\u{11046}\\u{11070}\\u{11073}-\\u{11074}\\u{1107F}-\\u{11082}\\u{110B0}-\\u{110BA}\\u{110C2}\\u{11100}-\\u{11102}\\u{11127}-\\u{11134}\\u{11145}-\\u{11146}\\u{11173}\\u{11180}-\\u{11182}\\u{111B3}-\\u{111C0}\\u{111C9}-\\u{111CC}\\u{111CE}-\\u{111CF}\\u{1122C}-\\u{11237}\\u{1123E}\\u{11241}\\u{112DF}-\\u{112EA}\\u{11300}-\\u{11303}\\u{1133B}-\\u{1133C}\\u{1133E}-\\u{11344}\\u{11347}-\\u{11348}\\u{1134B}-\\u{1134D}\\u{11357}\\u{11362}-\\u{11363}\\u{11366}-\\u{1136C}\\u{11370}-\\u{11374}\\u{113B8}-\\u{113C0}\\u{113C2}\\u{113C5}\\u{113C7}-\\u{113CA}\\u{113CC}-\\u{113D0}\\u{113D2}\\u{113E1}-\\u{113E2}\\u{11435}-\\u{11446}\\u{1145E}\\u{114B0}-\\u{114C3}\\u{115AF}-\\u{115B5}\\u{115B8}-\\u{115C0}\\u{115DC}-\\u{115DD}\\u{11630}-\\u{11640}\\u{116AB}-\\u{116B7}\\u{1171D}-\\u{1172B}\\u{1182C}-\\u{1183A}\\u{11930}-\\u{11935}\\u{11937}-\\u{11938}\\u{1193B}-\\u{1193E}\\u{11940}\\u{11942}-\\u{11943}\\u{119D1}-\\u{119D7}\\u{119DA}-\\u{119E0}\\u{119E4}\\u{11A01}-\\u{11A0A}\\u{11A33}-\\u{11A39}\\u{11A3B}-\\u{11A3E}\\u{11A47}\\u{11A51}-\\u{11A5B}\\u{11A8A}-\\u{11A99}\\u{11B60}-\\u{11B67}\\u{11C2F}-\\u{11C36}\\u{11C38}-\\u{11C3F}\\u{11C92}-\\u{11CA7}\\u{11CA9}-\\u{11CB6}\\u{11D31}-\\u{11D36}\\u{11D3A}\\u{11D3C}-\\u{11D3D}\\u{11D3F}-\\u{11D45}\\u{11D47}\\u{11D8A}-\\u{11D8E}\\u{11D90}-\\u{11D91}\\u{11D93}-\\u{11D97}\\u{11EF3}-\\u{11EF6}\\u{11F00}-\\u{11F01}\\u{11F03}\\u{11F34}-\\u{11F3A}\\u{11F3E}-\\u{11F42}\\u{11F5A}\\u{13440}\\u{13447}-\\u{13455}\\u{1611E}-\\u{1612F}\\u{16AF0}-\\u{16AF4}\\u{16B30}-\\u{16B36}\\u{16F4F}\\u{16F51}-\\u{16F87}\\u{16F8F}-\\u{16F92}\\u{16FE4}\\u{16FF0}-\\u{16FF1}\\u{1BC9D}-\\u{1BC9E}\\u{1CF00}-\\u{1CF2D}\\u{1CF30}-\\u{1CF46}\\u{1D165}-\\u{1D169}\\u{1D16D}-\\u{1D172}\\u{1D17B}-\\u{1D182}\\u{1D185}-\\u{1D18B}\\u{1D1AA}-\\u{1D1AD}\\u{1D242}-\\u{1D244}\\u{1DA00}-\\u{1DA36}\\u{1DA3B}-\\u{1DA6C}\\u{1DA75}\\u{1DA84}\\u{1DA9B}-\\u{1DA9F}\\u{1DAA1}-\\u{1DAAF}\\u{1E000}-\\u{1E006}\\u{1E008}-\\u{1E018}\\u{1E01B}-\\u{1E021}\\u{1E023}-\\u{1E024}\\u{1E026}-\\u{1E02A}\\u{1E08F}\\u{1E130}-\\u{1E136}\\u{1E2AE}\\u{1E2EC}-\\u{1E2EF}\\u{1E4EC}-\\u{1E4EF}\\u{1E5EE}-\\u{1E5EF}\\u{1E6E3}\\u{1E6E6}\\u{1E6EE}-\\u{1E6EF}\\u{1E6F5}\\u{1E8D0}-\\u{1E8D6}\\u{1E944}-\\u{1E94A}\\u{E0100}-\\u{E01EF}]`,`gu`),``):t}),i(this,`matches`,e=>{var t;return this.normalize((t=e.props.searchText)==null?Zs(e.props.children):t).includes(this.normalize(this.query))}),i(this,`renderChild`,e=>{if(!/*#__PURE__*/ D(e))return e;if(e.type===Ys){let t=e,n=this.values.includes(t.props.value);return/*#__PURE__*/ C(t,{hidden:t.props.hidden||!this.matches(t),className:f(t.props.className,n&&`selected`),"aria-selected":n,role:`option`})}let t=Qs(e.props.children);return/*#__PURE__*/ C(e,s(o({},e.type===Xs&&{hidden:!t.some(this.matches)}),{children:y.map(e.props.children,this.renderChild)}))}),i(this,`renderHiddenInput`,e=>/*#__PURE__*/ u(`input`,{type:`hidden`,name:this.componentProps.name,value:e,disabled:this.componentProps.disabled},e))}},{e:[Vs,Hs,Us,Ws,Gs,Ks,qs,Js],c:[$s,zs]}=e(Ls,[[h,1,`query`],[h,1,`current`],[h,1,`visibleOptionCount`],[h,1,`selectedLabel`],[p,0,`updateAccessibility`],[p,0,`setCurrent`],[p,0,`handleSearch`]],[g],Bs),Ls),Rs=class extends a{constructor(){super($s),i(this,`displayName`,`Combobox`),zs()}},i(Rs,Ms,void 0),Rs);const ec={sm:`form-control-sm`,lg:`form-control-lg`},tc=z(e=>{let{as:t=`input`,className:n,plaintext:r,ghost:i,caret:a,color:l,controlSize:d,validation:p}=e,m=c(e,[`as`,`className`,`plaintext`,`ghost`,`caret`,`color`,`controlSize`,`validation`]);return/*#__PURE__*/ u(t,s(o({},m),{"aria-invalid":p?p===`invalid`:m[`aria-invalid`],className:f(i?`form-ghost`:r?`form-control-plaintext`:`form-control`,!i&&a&&`form-control-caret`,!i&&!r&&l&&`form-control-color`,!i&&!r&&d&&ec[d],p&&`is-${p}`,n)}))});tc.displayName=`FormControl`;const nc=z(e=>{let{as:t=`textarea`,className:n,controlSize:r,validation:i}=e,a=c(e,[`as`,`className`,`controlSize`,`validation`]);return/*#__PURE__*/ u(t,s(o({},a),{"aria-invalid":i?i===`invalid`:a[`aria-invalid`],className:f(`form-control`,r&&ec[r],i&&`is-${i}`,n)}))});nc.displayName=`FormTextArea`;const rc=z(e=>{let{as:t=`select`,className:n,controlSize:r,validation:i}=e,a=c(e,[`as`,`className`,`controlSize`,`validation`]);return/*#__PURE__*/ u(t,s(o({},a),{"aria-invalid":i?i===`invalid`:a[`aria-invalid`],className:f(`form-control`,r&&ec[r],i&&`is-${i}`,n)}))});rc.displayName=`FormSelect`;var ic=class extends Cs{render(){let e=this.props,{as:t,className:n,enhanced:r,inline:i,selectionMode:a,min:l,max:p,options:m,displayMonthsCount:h,selectedDates:g,firstWeekday:_,placement:v,datepickerTheme:y,onDatesChange:b,ghost:x,controlSize:S,validation:C,kind:w=`input`,hostProps:T,leadingIcon:E,forwardedRef:D}=e,O=c(e,[`as`,`className`,`enhanced`,`inline`,`selectionMode`,`min`,`max`,`options`,`displayMonthsCount`,`selectedDates`,`firstWeekday`,`placement`,`datepickerTheme`,`onDatesChange`,`ghost`,`controlSize`,`validation`,`kind`,`hostProps`,`leadingIcon`,`forwardedRef`]),k=t==null?w===`div`?`div`:`input`:t,A={"data-bs-toggle":r||w!==`input`?`datepicker`:void 0,"data-bs-inline":i||w===`div`||void 0,"data-bs-selection-mode":a,"data-bs-display-months-count":h,"data-bs-selected-dates":g?JSON.stringify(g):void 0,"data-bs-first-weekday":_,"data-bs-placement":v,"data-bs-datepicker-theme":y,"data-bs-date-min":r?l:void 0,"data-bs-date-max":r?p:void 0};if(w===`button`){let{children:e}=T,n=c(T,[`children`]);return/*#__PURE__*/ d(B,s(o({as:t},n,A),{ref:this.setRef,children:[E&&/*#__PURE__*/ u(V,{name:E,"aria-hidden":`true`}),/*#__PURE__*/ u(`span`,{"data-bs-datepicker-display":``,children:e})]}))}return w===`div`?/*#__PURE__*/ u(k,s(o({},T,A),{ref:this.setRef})):/*#__PURE__*/ u(k,s(o({},O,A),{ref:this.setRef,className:f(x?`form-ghost`:`form-control`,S&&`form-control-${S}`,C&&`is-${C}`,n),"aria-invalid":C?C===`invalid`:O[`aria-invalid`],type:r?`text`:`date`,min:l,max:p}))}constructor(...e){var t;super(...e),t=this,i(this,`configurationChanged`,e=>e.options!==this.props.options||e.enhanced!==this.props.enhanced||e.inline!==this.props.inline||e.selectionMode!==this.props.selectionMode||e.displayMonthsCount!==this.props.displayMonthsCount||e.firstWeekday!==this.props.firstWeekday||e.placement!==this.props.placement||e.datepickerTheme!==this.props.datepickerTheme||e.min!==this.props.min||e.max!==this.props.max||JSON.stringify(e.selectedDates)!==JSON.stringify(this.props.selectedDates)),i(this,`load`,()=>R(function*(){let{enhanced:e,kind:n=`input`}=t.props;if(!e&&n===`input`)return()=>({dispose:()=>void 0});let{ReactDatepicker:r}=yield import(`./DatePickerPlugin-DB3nnslN.mjs`),{options:i,inline:a,selectionMode:s,min:c,max:l,displayMonthsCount:u,selectedDates:d,firstWeekday:f,placement:p,datepickerTheme:m}=t.props,h=o({},i,a!==void 0&&{inline:a},s!==void 0&&{selectionMode:s},c!==void 0&&{dateMin:String(c)},l!==void 0&&{dateMax:String(l)},u!==void 0&&{displayMonthsCount:u},d!==void 0&&{selectedDates:d},f!==void 0&&{firstWeekday:f},p!==void 0&&{placement:p},m!==void 0&&{datepickerTheme:m});return e=>{let n=[...e.childNodes],i=r.getOrCreateInstance(e,h);return e.addEventListener(`change.bs.datepicker`,t.handleDatesChange),{dispose:()=>{e.removeEventListener(`change.bs.datepicker`,t.handleDatesChange),i.dispose(),t.props.kind===`div`&&e.replaceChildren(...n)}}}})()),i(this,`handleDatesChange`,e=>{var t,n;return(t=(n=this.props).onDatesChange)==null?void 0:t.call(n,e.dates)}),i(this,`setRef`,e=>{this.element.current=e;let{forwardedRef:t}=this.props;typeof t==`function`?t(e):t&&(t.current=e)})}};const ac=z(/*#__PURE__*/ E((e,t)=>/*#__PURE__*/ u(ic,s(o({},e),{forwardedRef:t}))));ac.displayName=`DatePicker`;const oc=z(/*#__PURE__*/ E((e,t)=>{let[n,...r]=[e,t],{as:i,options:a,inline:o,selectionMode:s,displayMonthsCount:l,selectedDates:d,firstWeekday:f,placement:p,datepickerTheme:m,onDatesChange:h,leadingIcon:g}=n,_=c(n,[`as`,`options`,`inline`,`selectionMode`,`displayMonthsCount`,`selectedDates`,`firstWeekday`,`placement`,`datepickerTheme`,`onDatesChange`,`leadingIcon`]),[v]=r;return/*#__PURE__*/ u(ic,{as:i,kind:`button`,leadingIcon:g,hostProps:_,forwardedRef:v,options:a,inline:o,selectionMode:s,displayMonthsCount:l,selectedDates:d,firstWeekday:f,placement:p,datepickerTheme:m,onDatesChange:h})}));oc.displayName=`DatePickerButton`;const sc=z(/*#__PURE__*/ E((e,t)=>{let[n,...r]=[e,t],{as:i,options:a,selectionMode:o,displayMonthsCount:s,selectedDates:l,firstWeekday:d,placement:f,datepickerTheme:p,onDatesChange:m,inline:h=!0}=n,g=c(n,[`as`,`options`,`selectionMode`,`displayMonthsCount`,`selectedDates`,`firstWeekday`,`placement`,`datepickerTheme`,`onDatesChange`,`inline`]),[_]=r;return/*#__PURE__*/ u(ic,{as:i,kind:`div`,hostProps:g,forwardedRef:_,options:a,inline:h,selectionMode:o,displayMonthsCount:s,selectedDates:l,firstWeekday:d,placement:f,datepickerTheme:p,onDatesChange:m})}));sc.displayName=`DatePickerInline`;const cc=z(e=>{let{as:t=`small`,className:n,block:r}=e,i=c(e,[`as`,`className`,`block`]);return/*#__PURE__*/ u(t,s(o({},i),{className:f(`form-text`,r&&`d-block`,n)}))});cc.displayName=`FormText`;const lc=z(e=>{let{as:t=`div`,className:n,type:r=`invalid`,tooltip:i}=e,a=c(e,[`as`,`className`,`type`,`tooltip`]);return/*#__PURE__*/ u(t,s(o({},a),{className:f({tooltip:i},i?`${r}-tooltip`:`${r}-feedback`,n)}))});lc.displayName=`FormFeedback`;const uc=z(e=>{let{as:t=`form`,className:n,validated:r}=e,i=c(e,[`as`,`className`,`validated`]);return/*#__PURE__*/ u(t,s(o({},i),{className:f(r&&`was-validated`,n)}))});uc.displayName=`Form`;const dc=z(e=>{let{as:t=`fieldset`}=e,n=c(e,[`as`]);return/*#__PURE__*/ u(t,o({},n))});dc.displayName=`FormFieldset`;const fc=z(e=>{let{as:t=`div`,className:n,card:r}=e,i=c(e,[`as`,`className`,`card`]);return/*#__PURE__*/ u(t,s(o({},i),{className:f(`form-field`,r&&`form-field-card`,n)}))});fc.displayName=`FormField`;const pc=z(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`form-group`,n)}))});pc.displayName=`FormGroup`;const mc=z(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`form-field-content`,n)}))});mc.displayName=`FormFieldContent`;const hc=z(e=>{let{as:t=`label`,className:n,plain:r,column:i,controlSize:a}=e,l=c(e,[`as`,`className`,`plain`,`column`,`controlSize`]);return/*#__PURE__*/ u(t,s(o({},l),{className:f(i?`col-form-label`:!r&&`form-label`,i&&a&&`col-form-label-${a}`,n)}))});hc.displayName=`FormLabel`;const gc=z(e=>{let{as:t=`legend`,className:n,column:r,controlSize:i}=e,a=c(e,[`as`,`className`,`column`,`controlSize`]);return/*#__PURE__*/ u(t,s(o({},a),{className:f(r&&`col-form-label`,r&&i&&`col-form-label-${i}`,n)}))});gc.displayName=`FormLegend`;const _c=e=>/*#__PURE__*/ D(e)&&(e.type===`label`||e.type===hc),vc=z(e=>{let{as:t=`div`,className:n,always:r,children:i}=e,a=c(e,[`as`,`className`,`always`,`children`]),l=y.toArray(i);return/*#__PURE__*/ d(t,s(o({},a),{className:f(`form-floating`,r&&`form-floating-always`,n),children:[l.filter(_c),l.filter(e=>!_c(e))]}))});vc.displayName=`FormFloatingLabel`;const yc=z(e=>{let{as:t=`div`,className:n,size:r}=e,i=c(e,[`as`,`className`,`size`]);return/*#__PURE__*/ u(t,s(o({},i),{className:f(`input-group`,r&&`input-group-${r}`,n)}))});yc.displayName=`InputGroup`;const bc=z(e=>{let{as:t,className:n}=e,r=c(e,[`as`,`className`]),i=t==null?typeof r.htmlFor==`string`?`label`:`span`:t;return/*#__PURE__*/ u(i,s(o({},r),{className:f(`input-group-text`,n)}))});bc.displayName=`InputGroupText`;const xc=z(e=>{let{as:t,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(B,s(o({as:t},r),{className:f(`input-group-btn`,n)}))});xc.displayName=`InputGroupButton`;const Sc=z(e=>{let{as:t,children:n}=e,r=c(e,[`as`,`children`]),i=s(o({},n.props,r),{className:f(`input-group-ignore`,n.props.className)});return t?/*#__PURE__*/ w(t,i):/*#__PURE__*/ C(n,i)});Sc.displayName=`InputGroupIgnore`;var Cc=class extends Z{componentDidMount(){var e,t;this.root.current=(e=(t=this.trigger.current)==null?void 0:t.closest(`.input-group`))==null?null:e,super.componentDidMount()}render(){return/*#__PURE__*/ u(wc,s(o({},this.props),{owner:this}))}constructor(...e){super(...e),i(this,`handlePanelClick`,e=>{var t,n;(t=(n=this.props).onClick)==null||t.call(n,e),e.defaultPrevented||this.handleSelect(e)}),i(this,`handleTriggerKeyDown`,this.handleKeyDown),i(this,`handleBlur`,e=>{var t,n,r;(t=(n=this.props).onBlur)==null||t.call(n,e);let{autoClose:i=!0}=this.props;!e.defaultPrevented&&i!==!1&&i!==`inside`&&!((r=this.root.current)!=null&&r.contains(e.relatedTarget))&&this.setOpen(!1)})}};i(Cc,`displayName`,`InputGroupMenu`);const wc=g(({owner:{open:e,trigger:t,panel:n,handleToggle:r,handleTriggerKeyDown:i,handleBlur:a,handlePanelClick:c,handleKeyDown:p},id:m,label:h,split:g,toggleProps:_,className:v,children:y,align:b=`end`,menuClassName:x})=>{var S;return/*#__PURE__*/ d(l,{children:[/*#__PURE__*/ u(B,s(o({},_),{ref:t,className:f(`input-group-btn`,g&&`menu-toggle-split`,_==null?void 0:_.className,v),"aria-label":g?(S=_==null?void 0:_[`aria-label`])==null?`Toggle menu`:S:_==null?void 0:_[`aria-label`],"aria-expanded":e,"aria-controls":m?`${m}-menu`:void 0,onClick:r,onKeyDown:i,onBlur:a,children:h})),/*#__PURE__*/ u(`div`,{ref:n,id:m?`${m}-menu`:void 0,className:f(`menu top-100`,b===`end`?`end-0`:`start-0`,e&&`show`,x),hidden:!e,onClick:c,onKeyDown:p,onBlur:a,children:y})]})});var Tc=class extends Cs{updatePlugin(){var e,t,n,r;let{value:i}=this.props,a=(t=this.element.current)==null?void 0:t.querySelector(`.otp-slots`);a==null||a.classList.add(`min-w-0`,`max-w-100`);for(let t of(e=a==null?void 0:a.querySelectorAll(`.otp-slot`))==null?[]:e)t.classList.add(`min-w-0`);i!==void 0&&((n=this.instance)==null?void 0:n.getValue())!==String(i)&&((r=this.instance)==null||r.setValue(String(i)))}dispose(){var e,t;(e=this.element.current)==null||e.removeEventListener(`complete.bs.otpInput`,this.handleComplete),(t=this.element.current)==null||t.removeEventListener(`input.bs.otpInput`,this.handleValueChange),super.dispose()}render(){let e=this.props,{as:t=`div`,className:n,wrapperClassName:r,length:i,type:a=`numeric`,mask:l,groups:d,separator:p,connected:m,size:h,validation:g,onComplete:_,onValueChange:v,forwardedRef:y,autoComplete:b=`one-time-code`}=e,x=c(e,[`as`,`className`,`wrapperClassName`,`length`,`type`,`mask`,`groups`,`separator`,`connected`,`size`,`validation`,`onComplete`,`onValueChange`,`forwardedRef`,`autoComplete`]);return/*#__PURE__*/ u(t,s(o({},this.props.as?x:{}),{ref:this.setRootRef,className:f(`otp min-w-0 max-w-100`,m&&`otp-connected`,h&&`otp-${h}`,g&&`is-${g}`,r),"data-bs-otp":``,"data-bs-length":i,"data-bs-type":a,"data-bs-mask":l||void 0,"data-bs-groups":d?JSON.stringify(d):void 0,"data-bs-separator":p,children:/*#__PURE__*/ u(`input`,s(o({},this.props.as?{}:x),{ref:this.props.as?void 0:this.forwardRef,name:x.name,type:`text`,maxLength:i,autoComplete:b,inputMode:a===`numeric`?`numeric`:`text`,"aria-invalid":g?g===`invalid`:x[`aria-invalid`],pattern:a===`numeric`?`[0-9]*`:a===`alpha`?`[A-Za-z]*`:`[A-Za-z0-9]*`,className:f(`otp-input`,n)}))}))}constructor(...e){var t;super(...e),t=this,i(this,`configurationChanged`,e=>e.length!==this.props.length||e.type!==this.props.type||e.mask!==this.props.mask||e.separator!==this.props.separator||JSON.stringify(e.groups)!==JSON.stringify(this.props.groups)),i(this,`load`,()=>R(function*(){let{default:e}=yield import(`bootstrap/js/src/otp-input.js`),{length:n,type:r=`numeric`,mask:i=!1,groups:a=null,separator:o=`·`}=t.props;return s=>(s.addEventListener(`complete.bs.otpInput`,t.handleComplete),s.addEventListener(`input.bs.otpInput`,t.handleValueChange),e.getOrCreateInstance(s,{length:n,type:r,mask:i,groups:a,separator:o}))})()),i(this,`handleComplete`,e=>{var t,n;return(t=(n=this.props).onComplete)==null?void 0:t.call(n,e.value)}),i(this,`handleValueChange`,e=>{var t,n;return(t=(n=this.props).onValueChange)==null?void 0:t.call(n,e.value)}),i(this,`forwardRef`,e=>{let{forwardedRef:t}=this.props;typeof t==`function`?t(e):t&&(t.current=e)}),i(this,`setRootRef`,e=>{this.element.current=e,this.props.as&&this.forwardRef(e)})}};const Ec=z(/*#__PURE__*/ E((e,t)=>/*#__PURE__*/ u(Tc,s(o({},e),{forwardedRef:t}))));Ec.displayName=`OTPInput`;const Dc=[`weak`,`fair`,`good`,`strong`];var Oc=class extends b{componentDidMount(){this.mounted=!0,this.initialize()}componentDidUpdate(e){e.input!==this.props.input||e.minLength!==this.props.minLength||e.messages!==this.props.messages||e.weights!==this.props.weights||e.thresholds!==this.props.thresholds||e.scorer!==this.props.scorer||e.variant!==this.props.variant||e.strength!==this.props.strength||e.showText!==this.props.showText?(this.dispose(),this.initialize()):this.props.strength===void 0&&this.handleInput()}componentWillUnmount(){this.mounted=!1,this.dispose()}render(){var e,t;let n=this.props,{className:r,input:i,minLength:a,messages:p,weights:m,thresholds:h,scorer:g,forwardedRef:_,variant:v=`segments`,strength:y,showText:b=!0}=n,x=c(n,[`className`,`input`,`minLength`,`messages`,`weights`,`thresholds`,`scorer`,`forwardedRef`,`variant`,`strength`,`showText`]),S=v===`bar`,C=y?Dc.indexOf(y)+1:0;return/*#__PURE__*/ d(l,{children:[/*#__PURE__*/ u(`div`,s(o({},x),{ref:this.setMeterRef,className:f(S?`strength-bar`:`strength`,r),"data-bs-strength":y,role:`meter`,"aria-valuemin":0,"aria-valuemax":Dc.length,"aria-valuenow":C,"aria-valuetext":y||`Empty`,children:!S&&Dc.map((e,t)=>/*#__PURE__*/ u(`div`,{className:f(`strength-segment`,t<C&&`active`)},e))})),b&&/*#__PURE__*/ u(`span`,{className:`strength-text`,"data-bs-strength":y,children:y&&((e=(t=this.props.messages)==null?void 0:t[y])==null?y:e)})]})}constructor(...e){var t;super(...e),t=this,i(this,`meter`,void 0),i(this,`instance`,void 0),i(this,`instanceElement`,void 0),i(this,`passwordInput`,void 0),i(this,`mounted`,!1),i(this,`revision`,0),i(this,`initialize`,()=>R(function*(){var e,n,r;let i=++t.revision,a=t.meter;if(!a||t.props.strength!==void 0)return;let{default:s}=yield import(`bootstrap/js/src/strength.js`),{input:c,minLength:l,messages:u,weights:d,thresholds:f,scorer:p}=t.props,m=o({},c!==void 0&&{input:c},l!==void 0&&{minLength:l},u!==void 0&&{messages:o({},s.Default.messages,u)},d!==void 0&&{weights:d},f!==void 0&&{thresholds:f},p!==void 0&&{scorer:p});t.mounted&&t.meter===a&&i===t.revision&&(t.instanceElement=a,t.instance=s.getOrCreateInstance(a,m),t.passwordInput=typeof c==`string`?document.querySelector(c)||void 0:c||((e=a.parentElement)==null?void 0:e.querySelector(`input[type="password"]`))||void 0,(n=t.passwordInput)==null||n.addEventListener(`input`,t.handleInput),(r=t.passwordInput)==null||r.addEventListener(`change`,t.handleInput),t.handleInput())})()),i(this,`handleInput`,()=>{var e;let t=(e=this.instance)==null?void 0:e.getStrength(),n=t?Dc.indexOf(t)+1:0,r=this.instanceElement;r==null||r.setAttribute(`aria-valuenow`,String(n)),r==null||r.setAttribute(`aria-valuetext`,t||`Empty`)}),i(this,`dispose`,()=>{var e,t,n;this.revision++,(e=this.passwordInput)==null||e.removeEventListener(`input`,this.handleInput),(t=this.passwordInput)==null||t.removeEventListener(`change`,this.handleInput),(n=this.instance)==null||n.dispose(),this.instance=void 0,this.instanceElement=void 0,this.passwordInput=void 0}),i(this,`setMeterRef`,e=>{this.meter=e||void 0;let{forwardedRef:t}=this.props;typeof t==`function`?t(e):t&&(t.current=e)})}};const kc=/*#__PURE__*/ E((e,t)=>/*#__PURE__*/ u(Oc,s(o({},e),{forwardedRef:t})));kc.displayName=`PasswordStrength`;const Ac=z(e=>{let{as:t=`input`,className:n,size:r,theme:i,validation:a}=e,l=c(e,[`as`,`className`,`size`,`theme`,`validation`]);return/*#__PURE__*/ u(t,s(o({},l),{type:`radio`,"aria-invalid":a?a===`invalid`:l[`aria-invalid`],className:f(`radio`,r&&`radio-${r}`,i&&`theme-${i}`,a&&`is-${a}`,n)}))});Ac.displayName=`Radio`;const jc=z(e=>{let{as:t,type:n=`checkbox`,indeterminate:r}=e,i=c(e,[`as`,`type`,`indeterminate`]);return n===`checkbox`?/*#__PURE__*/ u(Ss,s(o({as:t},i),{indeterminate:r})):/*#__PURE__*/ u(Ac,o({as:t},i))});jc.displayName=`FormCheck`;var Mc=class extends Cs{dispose(){var e;(e=this.element.current)==null||e.removeEventListener(`changed.bs.range`,this.handleValueChange),super.dispose()}render(){var e;let t=this.props,{as:n=`div`,className:r,wrapperClassName:i,min:a=0,max:l=100,value:d,defaultValue:p,bubble:m,theme:h,formatter:g,onValueChange:_,forwardedRef:v,validation:y,style:b}=t,x=c(t,[`as`,`className`,`wrapperClassName`,`min`,`max`,`value`,`defaultValue`,`bubble`,`theme`,`formatter`,`onValueChange`,`forwardedRef`,`validation`,`style`]),S=Number((e=d==null?p:d)==null?(Number(a)+Number(l))/2:e),C=Number(l)<=Number(a)?0:Math.max(0,Math.min(1,(S-Number(a))/(Number(l)-Number(a))));return/*#__PURE__*/ u(n,s(o({},this.props.as?x:{}),{ref:this.setRootRef,className:f(`form-range`,h&&`theme-${h}`,y&&`is-${y}`,i),"data-bs-bubble":m||void 0,style:{"--bs-range-fill":C},children:/*#__PURE__*/ u(`input`,s(o({},this.props.as?{}:x),{ref:this.props.as?void 0:this.forwardRef,name:x.name,type:`range`,min:a,max:l,value:d,defaultValue:p,"aria-invalid":y?y===`invalid`:x[`aria-invalid`],className:f(`form-range-input`,y&&`is-${y}`,r),style:b}))}))}constructor(...e){var t;super(...e),t=this,i(this,`configurationChanged`,e=>e.bubble!==this.props.bubble||e.formatter!==this.props.formatter||e.list!==this.props.list||e.min!==this.props.min||e.max!==this.props.max),i(this,`load`,()=>R(function*(){let{default:e}=yield import(`bootstrap/js/src/range.js`),{bubble:n=!1,formatter:r=null}=t.props;return i=>(i.addEventListener(`changed.bs.range`,t.handleValueChange),e.getOrCreateInstance(i,{bubble:n,formatter:r}))})()),i(this,`updatePlugin`,()=>{var e;return(e=this.instance)==null?void 0:e.update()}),i(this,`handleValueChange`,e=>{var t,n;return(t=(n=this.props).onValueChange)==null?void 0:t.call(n,e.value)}),i(this,`forwardRef`,e=>{let{forwardedRef:t}=this.props;typeof t==`function`?t(e):t&&(t.current=e)}),i(this,`setRootRef`,e=>{this.element.current=e,this.props.as&&this.forwardRef(e)})}};const Nc=z(/*#__PURE__*/ E((e,t)=>/*#__PURE__*/ u(Mc,s(o({},e),{forwardedRef:t}))));Nc.displayName=`FormRange`;const Pc=new Set((/* @__PURE__ */ `accessKey.accept.alt.autoCapitalize.autoComplete.autoFocus.capture.checked.contentEditable.contextMenu.defaultChecked.defaultValue.dir.dirName.disabled.draggable.enterKeyHint.form.formAction.formEncType.formMethod.formNoValidate.formTarget.hidden.height.id.inlist.inputMode.is.itemID.itemProp.itemRef.itemScope.itemType.lang.list.max.maxLength.min.minLength.multiple.name.nonce.pattern.part.popover.popoverTarget.popoverTargetAction.placeholder.about.content.datatype.prefix.property.radioGroup.readOnly.rel.resource.results.rev.role.required.slot.spellCheck.src.step.tabIndex.title.typeof.translate.value.vocab.width.autoCorrect.autoSave.color.security.unselectable.exportparts.inert.onAnimationEnd.onAnimationIteration.onAnimationStart.onAbort.onAuxClick.onBeforeInput.onBeforeToggle.onBlur.onCanPlay.onCanPlayThrough.onChange.onClick.onCompositionEnd.onCompositionStart.onCompositionUpdate.onContextMenu.onCopy.onCut.onDoubleClick.onDrag.onDragEnd.onDragEnter.onDragExit.onDragLeave.onDragOver.onDragStart.onDrop.onDurationChange.onEmptied.onEncrypted.onEnded.onError.onFocus.onGotPointerCapture.onInput.onInvalid.onKeyDown.onKeyPress.onKeyUp.onLoad.onLoadedData.onLoadedMetadata.onLoadStart.onLostPointerCapture.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onPaste.onPause.onPlay.onPlaying.onPointerCancel.onPointerDown.onPointerEnter.onPointerLeave.onPointerMove.onPointerOut.onPointerOver.onPointerUp.onProgress.onRateChange.onScroll.onSeeked.onSeeking.onSelect.onScrollEnd.onStalled.onSuspend.onTimeUpdate.onToggle.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onVolumeChange.onWaiting.onWheel`.split(`.`)).flatMap(e=>[e,`${e}Capture`]));function Fc(e){let t={},n={};for(let[r,i]of Object.entries(e))(Pc.has(r)||r.startsWith(`aria-`)?t:n)[r]=i;return{inputProps:t,rootProps:n}}const Ic=z(e=>{let{as:t=`label`,id:n,className:r,size:i,theme:a,validation:l,width:p,indicatorWidth:m,inputRef:h,inputId:g,inputClassName:_,inputStyle:v,style:y,children:b}=e,{inputProps:x,rootProps:S}=Fc(c(e,[`as`,`id`,`className`,`size`,`theme`,`validation`,`width`,`indicatorWidth`,`inputRef`,`inputId`,`inputClassName`,`inputStyle`,`style`,`children`])),{"aria-invalid":C}=x;return/*#__PURE__*/ d(t,s(o({id:n},S),{className:f(`switch`,i&&`switch-${i}`,a&&`theme-${a}`,l&&`is-${l}`,r),style:o({"--bs-switch-width":p,"--bs-switch-indicator-width":m},y),children:[/*#__PURE__*/ u(`input`,s(o({},x),{ref:h,id:g,role:`switch`,type:`checkbox`,className:f(l&&`is-${l}`,_),style:v,"aria-invalid":l?l===`invalid`:C})),b]}))});Ic.displayName=`FormSwitch`;const Lc=z(e=>{let{as:t=`ul`,flush:n,numbered:r,horizontal:i,className:a}=e,l=c(e,[`as`,`flush`,`numbered`,`horizontal`,`className`]),d=f(`list-group`,{"list-group-flush":n,"list-group-numbered":r},i&&(i===!0?`list-group-horizontal`:`${i}:list-group-horizontal`),a);return/*#__PURE__*/ u(t,s(o({},l),{className:d}))});Lc.displayName=`ListGroup`;const Rc=e=>typeof e.href==`string`,zc=e=>typeof e.type==`string`,Bc=z(e=>{let{as:t,theme:n,action:r,active:i,disabled:a,className:l}=e,d=c(e,[`as`,`theme`,`action`,`active`,`disabled`,`className`]),p=t==null?`a`:t,m=t==null?`button`:t,h=t==null?`li`:t,g=f(`list-group-item`,n&&`theme-${n}`,r&&`list-group-item-action`,{active:i,disabled:a},a&&`pe-none`,l);return Rc(d)?/*#__PURE__*/ u(p,s(o({},d),{className:g,href:a?void 0:d.href,"aria-current":i?`true`:void 0,"aria-disabled":a||void 0,tabIndex:a?-1:d.tabIndex,onClick:a?void 0:d.onClick})):zc(d)?/*#__PURE__*/ u(m,s(o({},d),{type:d.type||`button`,className:g,"aria-current":i?`true`:void 0,disabled:a})):/*#__PURE__*/ u(h,s(o({},d),{className:g,"aria-current":i?`true`:void 0,"aria-disabled":a||void 0}))});Bc.displayName=`ListGroupItem`;const Vc=z(e=>{let{as:t=`nav`,expand:n,theme:r,translucent:i,className:a}=e,l=c(e,[`as`,`expand`,`theme`,`translucent`,`className`]);return/*#__PURE__*/ u(t,s(o({},l),{className:f(`navbar`,i&&`navbar-translucent`,n&&(n===!0?`navbar-expand`:`${n}:navbar-expand`),a),"data-bs-theme":r}))});Vc.displayName=`Navbar`;const Hc=z(e=>{let{as:t=`a`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`navbar-brand`,n)}))});Hc.displayName=`NavbarBrand`;const Uc=z(e=>{let{as:t=`ul`,variant:n,nav:r,className:i}=e,a=c(e,[`as`,`variant`,`nav`,`className`]);return/*#__PURE__*/ u(t,s(o({},a),{className:f(`navbar-nav`,(r||n)&&`nav`,n&&`nav-${n}`,i)}))});Uc.displayName=`NavbarNav`;const Wc=z(e=>{let{as:t=`span`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`navbar-text`,n)}))});Wc.displayName=`NavbarText`;const Gc=z(e=>{let{as:t,expanded:n,className:r,"aria-label":i=`Toggle navigation`}=e,a=c(e,[`as`,`expanded`,`className`,`aria-label`]);return/*#__PURE__*/ u(B,s(o({as:t},a),{type:`button`,className:f(`navbar-toggler`,r),"aria-label":i,"aria-expanded":n,icon:!0,children:/*#__PURE__*/ u(`span`,{className:`navbar-toggler-icon`,"aria-hidden":`true`})}))});Gc.displayName=`NavbarToggler`;var Kc,qc,Jc,Yc,Xc,Zc,Qc,$c=/*#__PURE__*/ new WeakMap,el=/*#__PURE__*/ new WeakMap,tl=/*#__PURE__*/ new WeakMap,nl=class{get initialized(){return t(this,$c)}set initialized(e){r(this,$c,e)}get open(){return t(this,el)}set open(e){r(this,el,e)}get overflowIndices(){return t(this,tl)}set overflowIndices(e){r(this,tl,e)}constructor(){n(this,$c,{writable:!0,value:(Qc(this),Kc(this,!1))}),n(this,el,{writable:!0,value:qc(this,!1)}),n(this,tl,{writable:!0,value:Jc(this,[])}),i(this,`setOpen`,Yc(this,e=>this.open=e)),i(this,`toggle`,Xc(this,()=>this.open=!this.open)),i(this,`setOverflowIndices`,Zc(this,e=>{this.initialized=!0,this.overflowIndices=e}))}};({e:[Kc,qc,Jc,Yc,Xc,Zc,Qc]}=e(nl,[[h,1,`initialized`],[h,1,`open`],[h,1,`overflowIndices`],[p,0,`setOpen`],[p,0,`toggle`],[p,0,`setOverflowIndices`]],[]));let rl;var il,al,ol,sl;let cl;new(rl=(il=class extends (sl=b){get componentProps(){return this.props}componentDidMount(){if(this.updateOverflow(),window.addEventListener(`resize`,this.updateOverflow),document.addEventListener(`pointerdown`,this.handleOutside),typeof ResizeObserver<`u`){var e,t;this.resizeObserver=new ResizeObserver(this.updateOverflow),this.root.current&&this.resizeObserver.observe(this.root.current),this.nav.current&&this.resizeObserver.observe(this.nav.current);for(let n of(e=(t=this.nav.current)==null?void 0:t.children)==null?[]:e)this.resizeObserver.observe(n)}}componentDidUpdate(){this.updateOverflow()}componentWillUnmount(){var e;(e=this.resizeObserver)==null||e.disconnect(),window.removeEventListener(`resize`,this.updateOverflow),document.removeEventListener(`pointerdown`,this.handleOutside)}render(){var e;let t=(e=this.componentProps.as)==null?`div`:e,n=this.componentProps,{as:r,children:i,className:a,collapseBelow:l,fill:p,iconPlacement:m=`start`,justified:h,menuPlacement:g=`bottom-end`,menuStrategy:_=`absolute`,minimumVisibleItems:v,moreIcon:b,moreText:x=`More`,onClick:S,onKeyDown:C,onOverflowChange:w,threshold:T,"aria-label":E,variant:D}=n,O=c(n,[`as`,`children`,`className`,`collapseBelow`,`fill`,`iconPlacement`,`justified`,`menuPlacement`,`menuStrategy`,`minimumVisibleItems`,`moreIcon`,`moreText`,`onClick`,`onKeyDown`,`onOverflowChange`,`threshold`,`aria-label`,`variant`]),k=y.toArray(i),A=this.store.overflowIndices.length>0,j=`${this.componentProps.id}-menu`,[M,N]=g.split(`-`),P=M===`top`?[`bottom-100`,N===`end`?`end-0`:`start-0`]:M===`bottom`?[`top-100`,N===`end`?`end-0`:`start-0`]:M===`left`?[`end-100`,N===`end`?`bottom-0`:`top-0`]:[`start-100`,N===`end`?`bottom-0`:`top-0`],F=b==null?/*#__PURE__*/ u(V,{name:`three-dots`,"aria-hidden":`true`}):b,I=x===!1?null:x;return/*#__PURE__*/ u(t,s(o({},O),{ref:this.root,className:f(`nav-overflow d-flex align-items-start position-relative`,this.store.initialized&&`nav-overflow-initialized`,a),onClick:this.handleClick,onKeyDown:this.handleKeyDown,children:/*#__PURE__*/ d(X,{ref:this.nav,variant:D,fill:p,justified:h,"aria-label":E,className:`flex-nowrap flex-grow-1`,children:[k.map((e,t)=>this.renderChild(e,t)),/*#__PURE__*/ d(`div`,{className:f(`nav-item nav-overflow-item flex-shrink-0`,!A&&`position-absolute invisible`),"data-menu-placement":g,children:[/*#__PURE__*/ d(`button`,{ref:this.toggleButton,type:`button`,className:`nav-link`,"aria-haspopup":`menu`,"aria-expanded":this.store.open,"aria-controls":j,"aria-label":I?void 0:`More`,"data-overflow-toggle":!0,children:[m===`start`&&F,I,m===`end`&&F]}),/*#__PURE__*/ u(`div`,{id:j,className:f(`menu nav-overflow-menu`,P,_===`fixed`&&`position-fixed`,{show:this.store.open&&A}),role:`menu`,hidden:!this.store.open||!A,children:this.store.overflowIndices.map(e=>this.renderChild(k[e],e,!0))})]})]})}))}constructor(...e){super(...e),i(this,`root`,/*#__PURE__*/ T()),i(this,`nav`,/*#__PURE__*/ T()),i(this,`toggleButton`,/*#__PURE__*/ T()),i(this,`store`,new nl),i(this,`resizeObserver`,void 0),i(this,`updateOverflow`,()=>{var e,t,n,r,i,a;let o=this.root.current,s=this.nav.current;if(!o||!s)return;let c=[...s.children].filter(e=>{var t;return e!==((t=this.toggleButton.current)==null?void 0:t.parentElement)}),l=c.map(e=>e.getBoundingClientRect().width||e.offsetWidth),u=Number.parseFloat(getComputedStyle(s).columnGap)||0,d=l.reduce((e,t)=>e+t,0)+u*Math.max(0,c.length-1),f=((n=this.toggleButton.current)==null?void 0:n.getBoundingClientRect().width)||((r=this.toggleButton.current)==null?void 0:r.offsetWidth)||0,p=o.clientWidth,m=this.getCollapseBelow(),h=m>0&&p>0&&p<m,g=c.map(e=>e.classList.contains(`nav-overflow-keep`)),_=c.map((e,t)=>t),v=Math.max(0,Math.min((e=(t=this.componentProps.minimumVisibleItems)==null?this.componentProps.threshold:t)==null?0:e,c.length)),y=d;if(h)for(let e=_.length-1;e>=0;e--)g[e]||_.splice(e,1);else if(p>0&&d>p)for(;y+f>p&&_.length>v;){let e=_.findLast(e=>!g[e]);if(e===void 0)break;y-=l[e]+(_.length>1?u:0),_.splice(_.indexOf(e),1)}let b=new Set(_),x=c.map((e,t)=>t).filter(e=>!b.has(e)),S=this.store.overflowIndices,C=S.length!==x.length||S.some((e,t)=>e!==x[t]);(!this.store.initialized||C)&&this.store.setOverflowIndices(x),C&&((i=(a=this.componentProps).onOverflowChange)==null||i.call(a,x.length,_.length))}),i(this,`getCollapseBelow`,()=>{let{collapseBelow:e=0}=this.componentProps;if(typeof e==`number`)return e;let t=getComputedStyle(this.root.current).getPropertyValue(`--bs-breakpoint-${e}`);return Number.parseFloat(t)||0}),i(this,`handleClick`,e=>{var t,n;(t=(n=this.componentProps).onClick)==null||t.call(n,e);let r=e.target instanceof Element?e.target:null;e.defaultPrevented||(r!=null&&r.closest(`[data-overflow-toggle]`)?this.store.toggle():r!=null&&r.closest(`.nav-overflow-menu`)&&!r.closest(`[aria-haspopup="true"]`)&&this.store.setOpen(!1))}),i(this,`handleKeyDown`,e=>{var t,n;if((t=(n=this.componentProps).onKeyDown)==null||t.call(n,e),!e.defaultPrevented){if(e.key===`Escape`&&this.store.open){var r;this.store.setOpen(!1),(r=this.toggleButton.current)==null||r.focus()}else e.key===`ArrowDown`&&e.target===this.toggleButton.current&&(e.preventDefault(),this.store.setOpen(!0),queueMicrotask(()=>{var e,t;return(t=this.root.current)==null||(e=t.querySelector(`.nav-overflow-menu a[href]:not([aria-disabled="true"]), .nav-overflow-menu button:not(:disabled)`))==null?void 0:e.focus()}))}}),i(this,`handleOutside`,e=>{var t;e.target instanceof Node&&!((t=this.root.current)!=null&&t.contains(e.target))&&this.store.setOpen(!1)}),i(this,`renderChild`,(e,t,n=!1)=>{if(!/*#__PURE__*/ D(e))return/*#__PURE__*/ u(`span`,{children:e},t);if(n)return e.type===Z?/*#__PURE__*/ C(e,{className:f(e.props.className,`nav-overflow-submenu`)}):/*#__PURE__*/ C(e,{className:f(e.props.className,`menu-item`),role:`menuitem`});let r=this.store.overflowIndices.includes(t);return/*#__PURE__*/ C(e,{className:f(e.props.className,r&&`position-absolute invisible`),"aria-hidden":r||void 0,tabIndex:r?-1:e.props.tabIndex})})}},{c:[cl,ol]}=e(il,[],[g],sl),il),al=class extends a{constructor(){super(cl),i(this,`displayName`,`NavOverflow`),ol()}},i(al,rl,void 0),al);const ll=z(e=>{let{as:t=`ul`,theme:n,size:r,className:i}=e,a=c(e,[`as`,`theme`,`size`,`className`]);return/*#__PURE__*/ u(t,s(o({},a),{className:f(`pagination`,n&&`theme-${n}`,r&&`pagination-${r}`,i)}))});ll.displayName=`Pagination`;const ul=z(e=>{let{as:t=`li`,active:n,disabled:r,className:i,children:a}=e,l=c(e,[`as`,`active`,`disabled`,`className`,`children`]);var d,p;let m=/*#__PURE__*/ D(a)&&a.type===dl?/*#__PURE__*/ C(a,{active:(d=a.props.active)==null?n:d,disabled:(p=a.props.disabled)==null?r:p}):a;return/*#__PURE__*/ u(t,s(o({},l),{className:f(`page-item`,{active:n,disabled:r},i),children:m}))});ul.displayName=`PageItem`;const dl=z(e=>{let{as:t,active:n,disabled:r,className:i,href:a,tabIndex:l,onClick:d,"aria-current":p}=e,m=c(e,[`as`,`active`,`disabled`,`className`,`href`,`tabIndex`,`onClick`,`aria-current`]);return/*#__PURE__*/ u(t==null?a===void 0?`span`:`a`:t,s(o({},m),{className:f(`page-link`,i),href:r?void 0:a,tabIndex:r?-1:l,"aria-disabled":r||void 0,"aria-current":p==null?n?`page`:void 0:p,onClick:r?void 0:d}))});dl.displayName=`PageLink`;const fl=z(e=>{let{as:t=`span`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`page-link`,n)}))});fl.displayName=`PageText`;const pl=z(e=>{let{as:t=`span`,size:n,animation:r,theme:i,width:a,className:l,style:d,"aria-hidden":p=!0}=e,m=c(e,[`as`,`size`,`animation`,`theme`,`width`,`className`,`style`,`aria-hidden`]);return/*#__PURE__*/ u(t,s(o({},m),{className:f(`placeholder`,n&&`placeholder-${n}`,r&&`placeholder-${r}`,i&&`bg-${i}`,l),style:o({width:a},d),"aria-hidden":p}))});pl.displayName=`Placeholder`;const ml=z(e=>{let{as:t=`div`,animation:n=`wave`,className:r}=e,i=c(e,[`as`,`animation`,`className`]);return/*#__PURE__*/ u(t,s(o({},i),{className:f(`placeholder-${n}`,r),"aria-hidden":`true`}))});ml.displayName=`PlaceholderAnimation`;const hl=z(e=>{let{as:t,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(B,s(o({as:t},r),{className:f(`placeholder`,n),"aria-hidden":`true`,disabled:!0}))});hl.displayName=`PlaceholderButton`;const gl=z(e=>{let{as:t=`div`,value:n,min:r=0,max:i=100,theme:a,striped:l,animated:d,barProps:p={},className:m,style:h,children:g}=e,_=c(e,[`as`,`value`,`min`,`max`,`theme`,`striped`,`animated`,`barProps`,`className`,`style`,`children`]);if(![n,r,i].every(Number.isFinite)||i<=r)throw RangeError(`Progress requires finite values and max greater than min`);let v=Math.min(i,Math.max(r,n)),y=`${(v-r)/(i-r)*100}%`,b=s(o({width:`min(100%, calc(var(--_progress-width) + var(--_progress-stack-offset, 100%)))`},h),{"--_progress-width":y}),{className:x,style:S}=p,C=c(p,[`className`,`style`]);return/*#__PURE__*/ u(t,s(o({},_),{className:f(`progress`,m),style:b,role:`progressbar`,"aria-valuenow":v,"aria-valuemin":r,"aria-valuemax":i,children:/*#__PURE__*/ u(`div`,s(o({},C),{className:f(`progress-bar`,a&&`theme-${a}`,{"progress-bar-striped":l||d,"progress-bar-animated":d},x),style:o({width:`var(--_progress-bar-width, ${y})`},S),children:g}))}))});gl.displayName=`Progress`;const _l=z(e=>{let{as:t=`div`,className:n,style:r}=e,i=c(e,[`as`,`className`,`style`]);return/*#__PURE__*/ u(t,s(o({},i),{className:f(`progress-stacked`,n),style:o({"--_progress-stack-offset":`0%`,"--_progress-bar-width":`100%`},r)}))});_l.displayName=`ProgressStack`;var vl,yl,bl,xl,Sl,Cl=/*#__PURE__*/ new WeakMap,wl=/*#__PURE__*/ new WeakMap,Tl=class{get activeId(){return t(this,Cl)}set activeId(e){r(this,Cl,e)}get guides(){return t(this,wl)}set guides(e){r(this,wl,e)}constructor(){n(this,Cl,{writable:!0,value:(Sl(this),vl(this,``))}),n(this,wl,{writable:!0,value:yl(this)}),i(this,`setGuides`,bl(this,e=>this.guides=e)),i(this,`setActiveId`,xl(this,e=>this.activeId=e))}};({e:[vl,yl,bl,xl,Sl]}=e(Tl,[[h,1,`activeId`],[h,1,`guides`],[p,0,`setGuides`],[p,0,`setActiveId`]],[]));let El;var Dl,Ol,kl,Al;let jl;new(El=(Dl=class extends (Al=b){get componentProps(){return this.props}componentDidMount(){var e;this.mounted=!0,this.refresh(),(e=this.root.current)==null||e.addEventListener(`scroll`,this.handleScroll,{passive:!0}),window.addEventListener(`scroll`,this.handleScroll,{passive:!0}),window.addEventListener(`resize`,this.handleResize),document.addEventListener(`click`,this.handleNavigationClick)}componentDidUpdate(e){(e.children!==this.componentProps.children||e.target!==this.componentProps.target||e.rootMargin!==this.componentProps.rootMargin||e.topMargin!==this.componentProps.topMargin||e.threshold!==this.componentProps.threshold||e.scrollRoot!==this.componentProps.scrollRoot)&&this.refresh(),e.debug!==this.componentProps.debug&&this.updateGuides()}componentWillUnmount(){var e,t,n;this.mounted=!1,(e=this.observer)==null||e.disconnect(),(t=this.bottomObserver)==null||t.disconnect(),(n=this.root.current)==null||n.removeEventListener(`scroll`,this.handleScroll),window.removeEventListener(`scroll`,this.handleScroll),window.removeEventListener(`resize`,this.handleResize),document.removeEventListener(`click`,this.handleNavigationClick)}render(){var e,t,n;let r=(e=this.componentProps.as)==null?`div`:e,i=this.componentProps,{as:a,children:l,className:p,debug:m,onActiveChange:h,onClick:g,onKeyDown:_,rootMargin:v,scrollRoot:y,smoothScroll:b,target:x,threshold:S,topMargin:C}=i,w=c(i,[`as`,`children`,`className`,`debug`,`onActiveChange`,`onClick`,`onKeyDown`,`rootMargin`,`scrollRoot`,`smoothScroll`,`target`,`threshold`,`topMargin`]);return/*#__PURE__*/ d(r,s(o({},w),{ref:this.root,className:f(`scrollspy`,p),"data-active-id":this.store.activeId||void 0,"data-bs-root-margin":(t=this.componentProps.rootMargin)==null?void 0:t,tabIndex:(n=this.componentProps.tabIndex)==null?0:n,onClick:this.componentProps.onClick,onKeyDown:this.componentProps.onKeyDown,children:[l,/*#__PURE__*/ u(`div`,{ref:this.sentinel,className:`position-relative invisible m-0 border-0 p-0 w-0 h-0`,"aria-hidden":`true`}),this.renderDebug()]}))}constructor(...e){super(...e),i(this,`root`,/*#__PURE__*/ T()),i(this,`store`,new Tl),i(this,`entries`,[]),i(this,`observer`,void 0),i(this,`bottomObserver`,void 0),i(this,`intersecting`,/* @__PURE__ */ new Set),i(this,`atBottom`,!1),i(this,`mounted`,!1),i(this,`sentinel`,/*#__PURE__*/ T()),i(this,`refresh`,()=>{var e;let t=this.root.current;if(!t)return;let n=this.componentProps.target?document.querySelector(this.componentProps.target):t,r=[...(e=n==null?void 0:n.querySelectorAll(`a[href^="#"]`))==null?[]:e];this.entries=r.flatMap(e=>{var t;let n=(t=e.getAttribute(`href`))==null?void 0:t.slice(1);if(!n)return[];let r=decodeURIComponent(n),i=document.getElementById(r);return!i||i.hidden||i.closest(`[hidden]`)||i.getAttribute(`aria-hidden`)===`true`||getComputedStyle(i).display===`none`||getComputedStyle(i).visibility===`hidden`?[]:[{id:r,link:e,section:i}]}),this.entries.sort((e,t)=>e.section.getBoundingClientRect().top-t.section.getBoundingClientRect().top),this.rebuildObservers(),this.updateActive(),this.updateGuides()}),i(this,`handleResize`,()=>{this.rebuildObservers(),this.updateGuides()}),i(this,`handleScroll`,()=>this.updateGuides()),i(this,`getRootHeight`,()=>{var e,t;return this.componentProps.scrollRoot===`window`?document.documentElement.clientHeight||window.innerHeight:(e=(t=this.root.current)==null?void 0:t.clientHeight)==null?0:e}),i(this,`getRootMargin`,()=>{if(this.componentProps.rootMargin!=null)return this.componentProps.rootMargin;let{topMargin:e=`12%`}=this.componentProps,t=Number.parseFloat(e)||0,n=this.getRootHeight(),r=e.endsWith(`%`)?t:n?t/n*100:12;return`0px 0px -${Math.min(Math.max(100-r,0),100)}% 0px`}),i(this,`rebuildObservers`,()=>{var e,t,n;(t=this.observer)==null||t.disconnect(),(n=this.bottomObserver)==null||n.disconnect(),this.intersecting.clear(),this.atBottom=!1;let r=this.componentProps.scrollRoot===`window`?null:this.root.current,i=new window.IntersectionObserver(e=>{if(this.mounted&&this.observer===i){for(let t of e)t.isIntersecting?this.intersecting.add(t.target):this.intersecting.delete(t.target);this.updateActive()}},{root:r,rootMargin:this.getRootMargin(),threshold:(e=this.componentProps.threshold)==null?[0]:e});this.observer=i;for(let e of new Set(this.entries.map(e=>e.section)))i.observe(e);let a=new window.IntersectionObserver(e=>{var t,n;if(!this.mounted||this.bottomObserver!==a)return;let i=(t=r==null?document.scrollingElement:r)==null?document.documentElement:t;this.atBottom=!!((n=e.at(-1))!=null&&n.isIntersecting)&&i.scrollHeight>i.clientHeight,this.updateActive(),this.updateGuides()},{root:r,threshold:[0]});this.bottomObserver=a,this.sentinel.current&&a.observe(this.sentinel.current)}),i(this,`handleNavigationClick`,e=>{if(!this.componentProps.smoothScroll||e.defaultPrevented)return;let t=e.target instanceof Element?e.target.closest(`a[href^="#"]`):null,n=this.entries.find(e=>e.link===t);if(!t||!n)return;e.preventDefault();let r=this.root.current,{scrollRoot:i=`self`}=this.componentProps;if(i===`window`)window.scrollTo({top:window.scrollY+n.section.getBoundingClientRect().top,behavior:`smooth`});else if(r){let e=r.scrollTop+n.section.getBoundingClientRect().top-r.getBoundingClientRect().top;r.scrollTo({top:e,behavior:`smooth`})}window.history.replaceState(null,``,`#${encodeURIComponent(n.id)}`);let a=!n.section.hasAttribute(`tabindex`);a&&(n.section.tabIndex=-1),n.section.focus({preventScroll:!0}),a&&n.section.removeAttribute(`tabindex`),this.updateActive()}),i(this,`getActivationLine`,e=>{var t;let n=this.getRootMargin().trim().split(/\s+/),r=(t=n[2])==null?n[0]:t,i=Number.parseFloat(r)||0;return e+(r.endsWith(`%`)?e*i/100:i)}),i(this,`updateGuides`,()=>{let e=this.root.current;if(!this.componentProps.debug||!e)return this.store.setGuides(void 0);let t=e.getBoundingClientRect(),n=this.getRootHeight();this.store.setGuides({top:this.componentProps.scrollRoot===`window`?0:t.top,left:this.componentProps.scrollRoot===`window`?0:t.left,width:this.componentProps.scrollRoot===`window`?window.innerWidth:e.clientWidth,height:n,line:this.getActivationLine(n),atBottom:this.atBottom})}),i(this,`updateActive`,()=>{var e,t,n,r,i,a;if(!this.root.current||!this.entries.length)return;let o=this.entries.at(-1),s=(e=(t=(n=this.atBottom?o:void 0)==null?[...this.entries].reverse().find(({section:e})=>this.intersecting.has(e)):n)==null?this.entries.find(e=>e.id===this.store.activeId):t)==null?this.entries[0]:e,c=new Set(this.entries.filter(e=>e.id===s.id).map(e=>e.link)),l=s.link.closest(`.nav`),u=l==null||(r=l.parentElement)==null?void 0:r.closest(`.nav`);for(;u&&u!==this.root.current;){var d;let e=[...this.entries].reverse().find(e=>e.link.closest(`.nav`)===u&&!!(e.section.compareDocumentPosition(s.section)&Node.DOCUMENT_POSITION_FOLLOWING));e&&c.add(e.link),l=u,u=(d=l.parentElement)==null?void 0:d.closest(`.nav`)}for(let{link:e}of this.entries){let t=c.has(e);e.classList.toggle(`active`,t),t?e.setAttribute(`aria-current`,`location`):e.removeAttribute(`aria-current`)}s.id!==this.store.activeId&&(this.store.setActiveId(s.id),(i=(a=this.componentProps).onActiveChange)==null||i.call(a,s.id))}),i(this,`renderDebug`,()=>{let e=this.store.guides;if(!this.componentProps.debug||!e)return null;let{top:t,left:n,width:r,height:i,line:a,atBottom:o}=e;return/*#__PURE__*/ Se(/*#__PURE__*/ d(`div`,{className:`position-fixed overflow-hidden pe-none`,style:{top:t,left:n,width:r,height:i,zIndex:1080},"aria-hidden":`true`,"data-scrollspy-debug":!0,children:[/*#__PURE__*/ u(`div`,{className:`position-absolute start-0 end-0 border-top border-danger border-2`,style:{top:a,borderTopStyle:`dashed`},"data-scrollspy-line":!0}),/*#__PURE__*/ u(`div`,{className:`position-absolute bottom-0 start-0 end-0 border-top border-danger`,style:{height:12,borderTop:`1px solid #dc3545`,background:o?`rgb(220 53 69 / 40%)`:`rgb(220 53 69 / 10%)`},"data-scrollspy-bottom":o?`reached`:`pending`})]}),document.body)})}},{c:[jl,kl]}=e(Dl,[],[g],Al),Dl),Ol=class extends a{constructor(){super(jl),i(this,`displayName`,`ScrollSpy`),kl()}},i(Ol,El,void 0),Ol);const Ml=z(e=>{let{as:t=`div`,direction:n=`vertical`,gap:r,className:i}=e,a=c(e,[`as`,`direction`,`gap`,`className`]);return/*#__PURE__*/ u(t,s(o({},a),{className:f(n===`horizontal`?`hstack`:`vstack`,r!==void 0&&`gap-${r}`,i)}))});Ml.displayName=`Stack`;const Nl=(e,t)=>f(`stepper`,e===!0?`stepper-horizontal`:e&&`${e}:stepper-horizontal`,t),Pl=z(e=>{let{as:t=`ol`,horizontal:n,className:r}=e,i=c(e,[`as`,`horizontal`,`className`]);return/*#__PURE__*/ u(t,s(o({},i),{className:Nl(n,r)}))});Pl.displayName=`Stepper`;const Fl=z(e=>{let{as:t=`nav`,horizontal:n,className:r}=e,i=c(e,[`as`,`horizontal`,`className`]);return/*#__PURE__*/ u(t,s(o({},i),{className:Nl(n,r)}))});Fl.displayName=`StepperNav`;const Il=z(e=>{let{as:t=`li`,active:n,theme:r,className:i}=e,a=c(e,[`as`,`active`,`theme`,`className`]);return/*#__PURE__*/ u(t,s(o({},a),{className:f(`stepper-item`,{active:n},r&&`theme-${r}`,i)}))});Il.displayName=`StepperItem`;const Ll=z(e=>{let{as:t=`a`,active:n,theme:r,className:i}=e,a=c(e,[`as`,`active`,`theme`,`className`]);return/*#__PURE__*/ u(t,s(o({},a),{className:f(`stepper-item`,{active:n},r&&`theme-${r}`,i)}))});Ll.displayName=`StepperLink`;const Rl=z(e=>{let{as:t=`button`,active:n,theme:r,className:i,type:a=`button`}=e,l=c(e,[`as`,`active`,`theme`,`className`,`type`]);return/*#__PURE__*/ u(t,s(o({},l),{type:a,className:f(`stepper-item p-0 border-0 bg-transparent`,{active:n},r&&`theme-${r}`,i)}))});Rl.displayName=`StepperButton`;const zl=z(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`stepper-overflow`,n)}))});zl.displayName=`StepperOverflow`;let Bl;var Vl,Hl,Ul,Wl,Gl,Kl,ql,Jl;const Yl=z(e=>{let{as:t=`div`,eventKey:n,label:r,disabled:i}=e,a=c(e,[`as`,`eventKey`,`label`,`disabled`]);return/*#__PURE__*/ u(t,o({},a))});Yl.displayName=`Tab`;let Xl;new(Bl=(Vl=/*#__PURE__*/ new WeakMap,Hl=class extends (Gl=b){get componentProps(){return this.props}get tabs(){return y.toArray(this.componentProps.children).filter(e=>typeof e!=`string`||e.trim()).map(e=>{if(!/*#__PURE__*/ D(e)||typeof e.props.eventKey!=`string`||!(`label`in e.props))throw TypeError(`Tabs children must be Tab elements.`);return e})}get selectedKey(){return t(this,Vl)}set selectedKey(e){r(this,Vl,e)}get activeKey(){var e,t,n;let r=(e=this.componentProps.activeKey)==null?this.selectedKey:e;return this.tabs.some(({props:e})=>e.eventKey===r&&!e.disabled)?r:(t=(n=this.tabs.find(({props:e})=>!e.disabled))==null?void 0:n.props.eventKey)==null?``:t}render(){var e;let t=(e=this.componentProps.as)==null?`div`:e,n=this.componentProps,{as:r,activeKey:i,className:a,defaultActiveKey:l,fade:u,onChange:f,onClick:p,onKeyDown:m,id:h,orientation:g,children:_,variant:v}=n,y=c(n,[`as`,`activeKey`,`className`,`defaultActiveKey`,`fade`,`onChange`,`onClick`,`onKeyDown`,`id`,`orientation`,`children`,`variant`]);return/*#__PURE__*/ d(t,s(o({},y),{ref:this.root,id:this.componentProps.id,className:a,onClick:this.handleClick,onKeyDown:this.handleKeyDown,children:[this.renderTabs(),this.renderPanels()]}))}constructor(...e){var t,r,a,o,s;super(...e),i(this,`root`,(Jl(this),/*#__PURE__*/ T())),n(this,Vl,{writable:!0,value:Kl(this,(t=(r=(a=this.componentProps.defaultActiveKey)==null?(o=this.tabs.find(({props:e})=>!e.disabled))==null?void 0:o.props.eventKey:a)==null?(s=this.tabs[0])==null?void 0:s.props.eventKey:r)==null?``:t)}),i(this,`handleClick`,e=>{var t,n,r;if((t=(n=this.componentProps).onClick)==null||t.call(n,e),e.defaultPrevented)return;let i=e.target.closest(`[data-tab-index]`),a=i&&((r=this.tabs[Number(i.dataset.tabIndex)])==null?void 0:r.props);a&&!a.disabled&&this.activate(a.eventKey)}),i(this,`handleKeyDown`,e=>{var t,n,r,i;if((t=(n=this.componentProps).onKeyDown)==null||t.call(n,e),e.defaultPrevented)return;let a=e.target.closest(`[data-tab-index]`),o=Number(a==null?void 0:a.dataset.tabIndex),{tabs:s}=this;if(!a||Number.isNaN(o))return;let c=this.componentProps.orientation!==`vertical`,l=c?e.key===`ArrowLeft`:e.key===`ArrowUp`,u=c?e.key===`ArrowRight`:e.key===`ArrowDown`,d=s.map(({props:e},t)=>e.disabled?-1:t).filter(e=>e>=0),f=d.indexOf(o),p=e.key===`Home`?d[0]:e.key===`End`?d.at(-1):l?d[(f-1+d.length)%d.length]:u?d[(f+1)%d.length]:void 0;if(p===void 0)return;e.preventDefault();let m=s[p];this.activate(m.props.eventKey),(i=this.root.current)==null||(r=i.querySelector(`[data-tab-index="${p}"]`))==null||r.focus()}),i(this,`activate`,ql(this,e=>{var t,n;(t=(n=this.componentProps).onChange)==null||t.call(n,e),this.componentProps.activeKey===void 0&&(this.selectedKey=e)})),i(this,`tabId`,e=>`${this.componentProps.id}-tab-${encodeURIComponent(e)}`),i(this,`panelId`,e=>`${this.componentProps.id}-panel-${encodeURIComponent(e)}`),i(this,`renderTabs`,()=>{var e;let{orientation:t=`horizontal`,variant:n=`tabs`}=this.componentProps,r=n===`list-group`;return/*#__PURE__*/ u(`div`,{className:f(r?`list-group`:`nav`,!r&&`nav-${n}`,t===`vertical`&&(r?`flex-column`:n===`pills`?`nav-pills-vertical`:`flex-column`)),role:`tablist`,"aria-label":(e=this.componentProps[`aria-label`])==null?`Tabs`:e,"aria-orientation":t,children:this.tabs.map(({props:e},t)=>{let n=e.eventKey===this.activeKey;return/*#__PURE__*/ u(`button`,{id:this.tabId(e.eventKey),type:`button`,role:`tab`,"data-tab-index":t,"aria-controls":this.panelId(e.eventKey),"aria-selected":n,"aria-disabled":e.disabled||void 0,tabIndex:n?0:-1,disabled:e.disabled,className:f(r?`list-group-item list-group-item-action`:`nav-link`,{active:n},e.disabled&&`disabled`),children:e.label},e.eventKey)})})}),i(this,`renderPanels`,()=>{let{fade:e=!0}=this.componentProps;return/*#__PURE__*/ u(`div`,{className:`tab-content`,children:this.tabs.map(t=>{var n;let{eventKey:r,className:i}=t.props,a=r===this.activeKey;return/*#__PURE__*/ C(t,{key:r,id:this.panelId(r),role:`tabpanel`,"aria-labelledby":this.tabId(r),"aria-hidden":!a,tabIndex:(n=t.props.tabIndex)==null?0:n,className:f(`tab-pane`,{active:a,show:a&&e},!e&&`tab-pane-instant`,i),hidden:!a})})})})}},{e:[Kl,ql,Jl],c:[Xl,Wl]}=e(Hl,[[h,1,`selectedKey`],[p,0,`activate`]],[g],Gl),Hl),Ul=class extends a{constructor(){super(Xl),i(this,`displayName`,`Tabs`),Wl()}},i(Ul,Bl,void 0),Ul);var Zl,Ql;const $l={"top-start":`top-0 start-0`,"top-center":`top-0 start-50 translate-middle-x`,"top-end":`top-0 end-0`,"middle-start":`top-50 start-0 translate-middle-y`,"middle-center":`top-50 start-50 translate-middle`,"middle-end":`top-50 end-0 translate-middle-y`,"bottom-start":`bottom-0 start-0`,"bottom-center":`bottom-0 start-50 translate-middle-x`,"bottom-end":`bottom-0 end-0`},eu=z(e=>{let{as:t=`div`,position:n=`top-end`,className:r,"aria-live":i=`polite`,"aria-atomic":a=!0}=e,l=c(e,[`as`,`position`,`className`,`aria-live`,`aria-atomic`]),d=n===`static`;return/*#__PURE__*/ u(t,s(o({},l),{className:f(`toast-container`,!d&&`position-fixed`,!d&&`p-3`,d?`position-static`:$l[n],r),"aria-live":i,"aria-atomic":a}))});eu.displayName=`ToastContainer`;const tu=z(e=>{let{as:t=`div`,theme:n,show:r=!0,translucent:i,instant:a,role:l=`status`,className:d}=e,p=c(e,[`as`,`theme`,`show`,`translucent`,`instant`,`role`,`className`]);return/*#__PURE__*/ u(t,s(o({},p),{className:f(`toast`,{show:r,"toast-translucent":i,"toast-instant":a},n&&`theme-${n}`,d),role:l}))});tu.displayName=`ToastItem`;const nu=z(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`toast-header`,n)}))});nu.displayName=`ToastHeader`;const ru=z(e=>{let{as:t=`div`,className:n}=e,r=c(e,[`as`,`className`]);return/*#__PURE__*/ u(t,s(o({},r),{className:f(`toast-body`,n)}))});ru.displayName=`ToastBody`;var iu=/*#__PURE__*/ new WeakMap,au=class{get messages(){return t(this,iu)}set messages(e){r(this,iu,e)}open(e){var t,n;let r=(t=e.id)==null?me():t;this.close(r);let i=Date.now(),{promise:a,resolve:c}=Promise.withResolvers(),l=e.delay===0?void 0:setTimeout(()=>this.close(r),(n=e.delay)==null?3e3:n),u=s(o({},e),{id:r,openedAt:i,resolve:c,timer:l});return this.messages=[...this.messages,u],a}close(e){let t=this.messages.find(t=>t.id===e);if(!t)return;let{resolve:n,timer:r}=t,i=c(t,[`resolve`,`timer`]);clearTimeout(r),n==null||n(s(o({},i),{closedAt:Date.now()})),this.messages=this.messages.filter(t=>t.id!==e)}constructor(e=se){i(this,`TimeScalar`,void 0),n(this,iu,{writable:!0,value:void 0}),i(this,`Component`,void 0),i(this,`renderMessage`,void 0),i(this,`handleDismiss`,void 0),this.TimeScalar=e,r(this,iu,(Ql(this),Zl(this,[]))),this.Component=g(({position:e})=>/*#__PURE__*/ u(eu,{position:e,onClick:this.handleDismiss,children:this.messages.map(this.renderMessage)})),this.renderMessage=({id:e,openedAt:t,title:n,body:r,theme:i,translucent:a,instant:o,role:s,delay:c=3e3})=>{let l=!!n||c===0,f=this.TimeScalar.distanceOf(Date.now(),t).toShortString();return/*#__PURE__*/ d(tu,{theme:i,translucent:a,instant:o,role:s,children:[l&&/*#__PURE__*/ d(nu,{children:[/*#__PURE__*/ u(`strong`,{className:`me-auto`,children:n}),/*#__PURE__*/ u(`small`,{children:f}),/*#__PURE__*/ u(H,{"data-toast-dismiss":e})]}),/*#__PURE__*/ u(ru,{children:r})]},e)},this.handleDismiss=({target:e})=>{var t;if(!(e instanceof Element))return;let n=(t=e.closest(`[data-toast-dismiss]`))==null?void 0:t.dataset.toastDismiss;n&&this.close(n)},this.Component.displayName=`ToastComponent`}};({e:[Zl,Ql]}=e(au,[[h,1,`messages`],[p,2,`open`],[p,2,`close`]],[]));const ou=z(e=>{let{as:t=`label`,type:n=`checkbox`,variant:r=`solid`,className:i,theme:a,name:l,value:p,checked:m,defaultChecked:h,disabled:g,required:_,size:v,inputRef:y,inputClassName:b,inputStyle:x,children:S,onChange:C}=e,w=c(e,[`as`,`type`,`variant`,`className`,`theme`,`name`,`value`,`checked`,`defaultChecked`,`disabled`,`required`,`size`,`inputRef`,`inputClassName`,`inputStyle`,`children`,`onChange`]);var T;let{inputProps:E,rootProps:D}=Fc(w);return/*#__PURE__*/ d(t,s(o({},D),{className:f(`btn-check`,`btn-${r}`,a&&`theme-${a}`,v&&`btn-${v}`,i),children:[/*#__PURE__*/ u(`input`,s(o({},E),{ref:y,className:b,style:x,type:n,name:l,value:p,checked:m,defaultChecked:h,disabled:g,required:_,autoComplete:(T=E.autoComplete)==null?`off`:T,onChange:C})),S]}))});ou.displayName=`ToggleButton`;var su=class extends b{get componentProps(){return this.props}render(){var e,t;let n=this.componentProps,{as:r=`button`,target:i,attribute:a,value:l,onToggled:d,theme:p,variant:m,disabled:h}=n,g=c(n,[`as`,`target`,`attribute`,`value`,`onToggled`,`theme`,`variant`,`disabled`]);return r===`button`?/*#__PURE__*/ u(B,s(o({},g),{theme:p,variant:m,disabled:h,onClick:this.handleClick})):/*#__PURE__*/ u(r,s(o({},g),{className:f(p&&`theme-${p}`,m&&`btn-${m}`,g.className),role:(e=g.role)==null?`button`:e,tabIndex:h?-1:(t=g.tabIndex)==null?0:t,"aria-disabled":h||void 0,onClick:this.handleClick,onKeyDown:this.handleKeyDown}))}constructor(...e){super(...e),i(this,`handleClick`,e=>{var t,n;if((t=(n=this.componentProps).onClick)==null||t.call(n,e),e.defaultPrevented||this.componentProps.disabled)return;let{target:r,attribute:i=`class`,value:a,onToggled:o}=this.componentProps,s=r?[...document.querySelectorAll(r)]:[e.currentTarget],c=s.map(e=>{var t,n;return{element:e,attribute:(t=e.dataset.bsAttribute)==null?i:t,value:(n=e.dataset.bsValue)==null?a:n}});if(c.some(({attribute:e})=>e.toLowerCase()===`id`))throw TypeError(`Toggler cannot change the id attribute`);for(let{element:e,attribute:t,value:n}of c){if(n==null)continue;let r=String(n),i=new window.CustomEvent(`toggle.bs.toggler`,{cancelable:!0});if(e.dispatchEvent(i)){if(t===`class`)for(let t of r.split(/\s+/).filter(Boolean))e.classList.toggle(t);else e.getAttribute(t)===r?e.removeAttribute(t):e.setAttribute(t,r);e.dispatchEvent(new window.CustomEvent(`toggled.bs.toggler`))}}o==null||o(s)}),i(this,`handleKeyDown`,e=>{var t,n;(t=(n=this.componentProps).onKeyDown)==null||t.call(n,e),e.defaultPrevented||this.componentProps.disabled||e.key!==`Enter`&&e.key!==` `||(e.preventDefault(),e.currentTarget.click())})}};i(su,`displayName`,`Toggler`);export{Le as Accordion,Be as AccordionBody,ze as AccordionHeader,Re as AccordionItem,Ve as AccordionToggle,U as Alert,$e as AlertHeading,Qe as AlertLink,tt as Avatar,nt as AvatarImage,rt as AvatarStack,at as Badge,ot as Breadcrumb,lt as BreadcrumbDivider,st as BreadcrumbItem,ct as BreadcrumbLink,B as Button,ut as ButtonGroup,Oe as ButtonInput,dt as ButtonToolbar,ft as Card,vt as CardBody,yt as CardFooter,ht as CardGroup,_t as CardHeader,pt as CardImage,gt as CardImageOverlay,mt as CardSubtitle,xt as CardText,bt as CardTitle,Kt as Carousel,Gt as CarouselSlide,Ss as Checkbox,Es as Chip,ks as ChipDismiss,Ds as ChipIcon,Os as ChipImage,Ts as ChipInput,js as ChipInputLabel,As as ChipToken,Bn as ClickBoundary,H as CloseButton,Yr as CodeBlock,$ as Col,mn as Collapse,hn as CollapseToggle,$s as Combobox,Xs as ComboboxGroup,Ys as ComboboxOption,ss as Container,ai as Countdown,ac as DatePicker,oc as DatePickerButton,sc as DatePickerInline,fi as Dialog,Sn as DialogBody,li as DialogClose,Cn as DialogFooter,bn as DialogHeader,xn as DialogTitle,zn as Drawer,In as DrawerBody,Ln as DrawerFooter,Pn as DrawerHeader,Fn as DrawerTitle,Si as Editor,wi as EditorHTML,Y as FloatingPosition,uc as Form,_s as FormAdornment,ys as FormAdornmentIcon,vs as FormAdornmentText,jc as FormCheck,tc as FormControl,lc as FormFeedback,fc as FormField,mc as FormFieldContent,dc as FormFieldset,vc as FormFloatingLabel,bs as FormGhost,pc as FormGroup,hc as FormLabel,gc as FormLegend,Nc as FormRange,rc as FormSelect,Ic as FormSwitch,cc as FormText,nc as FormTextArea,Ti as HorizontalMarquee,Ei as HorizontalMarqueeBox,V as Icon,Q as Image,yc as InputGroup,xc as InputGroupButton,Sc as InputGroupIgnore,Cc as InputGroupMenu,bc as InputGroupText,Lc as ListGroup,Bc as ListGroupItem,Di as LiveTSX,ki as Loading,Z as Menu,uo as MenuDivider,lo as MenuHeader,io as MenuItem,so as MenuItemCheck,fo as MenuItemContent,po as MenuItemDescription,oo as MenuItemIcon,ao as MenuPanel,mo as MenuSubmenu,co as MenuText,ca as MonthCalendar,la as Nameplate,wn as NativeDialog,X as Nav,ua as NavItem,da as NavLink,cl as NavOverflow,Vc as Navbar,Hc as NavbarBrand,Uc as NavbarNav,Wc as NavbarText,Gc as NavbarToggler,Ec as OTPInput,Vi as OVERLAY_ARROW_POSITIONS,Bi as OVERLAY_DIRECTIONS,_o as Option,$i as OverlayBox,ul as PageItem,dl as PageLink,Ca as PageNav,fl as PageText,ll as Pagination,kc as PasswordStrength,pl as Placeholder,ml as PlaceholderAnimation,hl as PlaceholderButton,Hi as Popover,gl as Progress,_l as ProgressStack,Ac as Radio,cs as Row,Ia as ScrollNav,jl as ScrollSpy,vo as Select,Ao as ShareBox,J as Spinner,jo as SpinnerButton,Oi as SpinnerIcon,Ml as Stack,Pl as Stepper,Rl as StepperButton,Il as StepperItem,Ll as StepperLink,Fl as StepperNav,zl as StepperOverflow,Yl as Tab,ls as Table,Mo as TableSpinner,Xl as Tabs,Wo as TextTruncate,Go as Time,qo as TimeDistance,Jo as Timeline,au as Toast,ru as ToastBody,eu as ToastContainer,nu as ToastHeader,tu as ToastItem,ou as ToggleButton,su as Toggler,Ui as Tooltip,os as TypeEcho,fs as UserRankView,gn as VariantColors,ps as VerticalMarquee,gs as ZodiacBar,ms as ZodiacSigns,et as animate,ko as elementToImage,Ci as parser,z as polymorphic,_n as text2color,hs as zodiacOf};