12 |
- var BSN=function(M){"use strict";const Ms="aria-describedby",ue="aria-expanded",qt="aria-hidden",ge="aria-modal",Bs="aria-pressed",Ie="aria-selected",ke="focus",Le="focusin",Rs="focusout",pe="keydown",Ro="keyup",D="click",Ws="mousedown",Wo="hover",me="mouseenter",Oe="mouseleave",Fo="pointerdown",jo="pointermove",zo="pointerup",Ne="touchstart",Ko="dragstart",Vo='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]',Me="ArrowDown",Be="ArrowUp",Fs="ArrowLeft",js="ArrowRight",Re="Escape",Xo="transitionDuration",qo="transitionDelay",We="transitionend",zs="transitionProperty",Uo=()=>{const e=/(iPhone|iPod|iPad)/;return navigator?.userAgentData?.brands.some(t=>e.test(t.brand))||e.test(navigator?.userAgent)||!1},ve=()=>{},Yo=(e,t,s,n)=>{e.addEventListener(t,s,!1)},Zo=(e,t,s,n)=>{e.removeEventListener(t,s,!1)},U=(e,t)=>e.getAttribute(t),Ut=(e,t)=>e.hasAttribute(t),I=(e,t,s)=>e.setAttribute(t,s),yt=(e,t)=>e.removeAttribute(t),d=(e,...t)=>{e.classList.add(...t)},v=(e,...t)=>{e.classList.remove(...t)},h=(e,t)=>e.classList.contains(t),Yt=e=>e!=null&&typeof e=="object"||!1,A=e=>Yt(e)&&typeof e.nodeType=="number"&&[1,2,3,4,5,6,7,8,9,10,11].some(t=>e.nodeType===t)||!1,Y=e=>A(e)&&e.nodeType===1||!1,Rt=new Map,Ct={data:Rt,set:(e,t,s)=>{Y(e)&&(Rt.has(t)||Rt.set(t,new Map),Rt.get(t).set(e,s))},getAllFor:e=>Rt.get(e)||null,get:(e,t)=>{if(!Y(e)||!t)return null;const s=Ct.getAllFor(t);return e&&s&&s.get(e)||null},remove:(e,t)=>{const s=Ct.getAllFor(t);!s||!Y(e)||(s.delete(e),s.size===0&&Rt.delete(t))}},R=(e,t)=>Ct.get(e,t),Ks=e=>e?.trim().replace(/(?:^\w|[A-Z]|\b\w)/g,(t,s)=>s===0?t.toLowerCase():t.toUpperCase()).replace(/\s+/g,""),Zt=e=>typeof e=="string"||!1,Vs=e=>Yt(e)&&e.constructor.name==="Window"||!1,Xs=e=>A(e)&&e.nodeType===9||!1,b=e=>Xs(e)?e:A(e)?e.ownerDocument:Vs(e)?e.document:globalThis.document,rt=(e,...t)=>Object.assign(e,...t),ut=e=>{if(!e)return;if(Zt(e))return b().createElement(e);const{tagName:t}=e,s=ut(t);if(!s)return;const n={...e};return delete n.tagName,rt(s,n)},w=(e,t)=>e.dispatchEvent(t),W=(e,t,s)=>{const n=getComputedStyle(e,s),o=t.replace("webkit","Webkit").replace(/([A-Z])/g,"-$1").toLowerCase();return n.getPropertyValue(o)},Qo=e=>{const t=W(e,zs),s=W(e,qo),n=s.includes("ms")?1:1e3,o=t&&t!=="none"?parseFloat(s)*n:0;return Number.isNaN(o)?0:o},Qt=e=>{const t=W(e,zs),s=W(e,Xo),n=s.includes("ms")?1:1e3,o=t&&t!=="none"?parseFloat(s)*n:0;return Number.isNaN(o)?0:o},S=(e,t)=>{let s=0;const n=new Event(We),o=Qt(e),i=Qo(e);if(o){const r=c=>{c.target===e&&(t.apply(e,[c]),e.removeEventListener(We,r),s=1)};e.addEventListener(We,r),setTimeout(()=>{s||w(e,n)},o+i+17)}else t.apply(e,[n])},ct=(e,t)=>e.focus(t),qs=e=>["true",!0].includes(e)?!0:["false",!1].includes(e)?!1:["null","",null,void 0].includes(e)?null:e!==""&&!Number.isNaN(+e)?+e:e,be=e=>Object.entries(e),Go=(e,t,s,n)=>{if(!Y(e))return t;const o={...s},i={...e.dataset},r={...t},c={},a="title";return be(i).forEach(([l,f])=>{const u=typeof l=="string"&&l.includes(n)?Ks(l.replace(n,"")):Ks(l);c[u]=qs(f)}),be(o).forEach(([l,f])=>{o[l]=qs(f)}),be(t).forEach(([l,f])=>{l in o?r[l]=o[l]:l in c?r[l]=c[l]:r[l]=l===a?U(e,a):f}),r},Us=e=>Object.keys(e),E=(e,t)=>{const s=new CustomEvent(e,{cancelable:!0,bubbles:!0});return Yt(t)&&rt(s,t),s},Gt={passive:!0},St=e=>e.offsetHeight,H=(e,t)=>{be(t).forEach(([s,n])=>{if(n&&Zt(s)&&s.includes("--"))e.style.setProperty(s,n);else{const o={};o[s]=n,rt(e.style,o)}})},Fe=e=>Yt(e)&&e.constructor.name==="Map"||!1,Jo=e=>typeof e=="number"||!1,gt=new Map,g={set:(e,t,s,n)=>{Y(e)&&(n&&n.length?(gt.has(e)||gt.set(e,new Map),gt.get(e).set(n,setTimeout(t,s))):gt.set(e,setTimeout(t,s)))},get:(e,t)=>{if(!Y(e))return null;const s=gt.get(e);return t&&s&&Fe(s)?s.get(t)||null:Jo(s)?s:null},clear:(e,t)=>{if(!Y(e))return;const s=gt.get(e);t&&t.length&&Fe(s)?(clearTimeout(s.get(t)),s.delete(t),s.size===0&>.delete(e)):(clearTimeout(s),gt.delete(e))}},Jt=e=>e.toLowerCase(),Z=(e,t)=>(A(t)?t:b()).querySelectorAll(e),je=new Map;function Ys(e){const{shiftKey:t,code:s}=e,n=b(this),o=[...Z(Vo,this)].filter(c=>!Ut(c,"disabled")&&!U(c,qt));if(!o.length)return;const i=o[0],r=o[o.length-1];s==="Tab"&&(t&&n.activeElement===i?(r.focus(),e.preventDefault()):!t&&n.activeElement===r&&(i.focus(),e.preventDefault()))}const ze=e=>je.has(e)===!0,ti=e=>{ze(e)||(Yo(e,"keydown",Ys),je.set(e,!0))},ei=e=>{ze(e)&&(Zo(e,"keydown",Ys),je.delete(e))},we=e=>{ze(e)?ei(e):ti(e)},P=e=>Y(e)&&"offsetWidth"in e||!1,Ht=(e,t)=>{const{width:s,height:n,top:o,right:i,bottom:r,left:c}=e.getBoundingClientRect();let a=1,l=1;if(t&&P(e)){const{offsetWidth:f,offsetHeight:u}=e;a=f>0?Math.round(s)/f:1,l=u>0?Math.round(n)/u:1}return{width:s/a,height:n/l,top:o/l,right:i/a,bottom:r/l,left:c/a,x:c/a,y:o/l}},_t=e=>b(e).body,at=e=>b(e).documentElement,si=e=>{const t=Vs(e),s=t?e.scrollX:e.scrollLeft,n=t?e.scrollY:e.scrollTop;return{x:s,y:n}},Zs=e=>A(e)&&e.constructor.name==="ShadowRoot"||!1,ni=e=>e.nodeName==="HTML"?e:Y(e)&&e.assignedSlot||A(e)&&e.parentNode||Zs(e)&&e.host||at(e),Qs=e=>e?Xs(e)?e.defaultView:A(e)?e?.ownerDocument?.defaultView:e:window,oi=e=>A(e)&&["TABLE","TD","TH"].includes(e.nodeName)||!1,Gs=(e,t)=>e.matches(t),ii=e=>{if(!P(e))return!1;const{width:t,height:s}=Ht(e),{offsetWidth:n,offsetHeight:o}=e;return Math.round(t)!==n||Math.round(s)!==o},ri=(e,t,s)=>{const n=P(t),o=Ht(e,n&&ii(t)),i={x:0,y:0};if(n){const r=Ht(t,!0);i.x=r.x+t.clientLeft,i.y=r.y+t.clientTop}return{x:o.left+s.x-i.x,y:o.top+s.y-i.y,width:o.width,height:o.height}};let Js=0,tn=0;const Wt=new Map,en=(e,t)=>{let s=t?Js:tn;if(t){const n=en(e),o=Wt.get(n)||new Map;Wt.has(n)||Wt.set(n,o),Fe(o)&&!o.has(t)?(o.set(t,s),Js+=1):s=o.get(t)}else{const n=e.id||e;Wt.has(n)?s=Wt.get(n):(Wt.set(n,s),tn+=1)}return s},ci=e=>Array.isArray(e)||!1,sn=e=>{if(!A(e))return!1;const{top:t,bottom:s}=Ht(e),{clientHeight:n}=at(e);return t<=n&&s>=0},ai=e=>typeof e=="function"||!1,li=e=>Yt(e)&&e.constructor.name==="NodeList"||!1,pt=e=>at(e).dir==="rtl",B=(e,t)=>!e||!t?null:e.closest(t)||B(e.getRootNode().host,t)||null,_=(e,t)=>Y(e)?e:(Y(t)?t:b()).querySelector(e),Ke=(e,t)=>(A(t)?t:b()).getElementsByTagName(e),di=(e,t)=>b(t).getElementById(e),lt=(e,t)=>(t&&A(t)?t:b()).getElementsByClassName(e),Ft={},nn=e=>{const{type:t,currentTarget:s}=e;Ft[t].forEach((n,o)=>{s===o&&n.forEach((i,r)=>{r.apply(o,[e]),typeof i=="object"&&i.once&&L(o,t,r,i)})})},k=(e,t,s,n)=>{Ft[t]||(Ft[t]=new Map);const o=Ft[t];o.has(e)||o.set(e,new Map);const i=o.get(e),{size:r}=i;i.set(s,n),r||e.addEventListener(t,nn,n)},L=(e,t,s,n)=>{const o=Ft[t],i=o&&o.get(e),r=i&&i.get(s),c=r!==void 0?r:n;i&&i.has(s)&&i.delete(s),o&&(!i||!i.size)&&o.delete(e),(!o||!o.size)&&delete Ft[t],(!i||!i.size)&&e.removeEventListener(t,nn,c)},N="fade",p="show",Ee="data-bs-dismiss",Te="alert",on="Alert",ot=e=>h(e,"disabled")||U(e,"disabled")==="true",hi="5.1.2";class J{constructor(t,s){let n;try{if(Y(t))n=t;else if(Zt(t)){if(n=_(t),!n)throw Error(`"${t}" is not a valid selector.`)}else throw Error("your target is not an instance of HTMLElement.")}catch(i){throw Error(`${this.name} Error: ${i.message}`)}const o=Ct.get(n,this.name);o&&o._toggleEventListeners(),this.element=n,this.options=this.defaults&&Us(this.defaults).length?Go(n,this.defaults,s||{},"bs"):{},Ct.set(n,this.name,this)}get version(){return hi}get name(){return"BaseComponent"}get defaults(){return{}}_toggleEventListeners=()=>{};dispose(){Ct.remove(this.element,this.name),Us(this).forEach(t=>{delete this[t]})}}const fi=`.${Te}`,ui=`[${Ee}="${Te}"]`,gi=e=>R(e,on),pi=e=>new Ve(e),rn=E(`close.bs.${Te}`),mi=E(`closed.bs.${Te}`),cn=e=>{const{element:t}=e;w(t,mi),e._toggleEventListeners(),e.dispose(),t.remove()};class Ve extends J{static selector=fi;static init=pi;static getInstance=gi;dismiss;constructor(t){super(t),this.dismiss=_(ui,this.element),this._toggleEventListeners(!0)}get name(){return on}close=t=>{const{element:s,dismiss:n}=this;!s||!h(s,p)||t&&n&&ot(n)||(w(s,rn),!rn.defaultPrevented&&(v(s,p),h(s,N)?S(s,()=>cn(this)):cn(this)))};_toggleEventListeners=t=>{const s=t?k:L,{dismiss:n,close:o}=this;n&&s(n,D,o)};dispose(){this._toggleEventListeners(),super.dispose()}}const T="active",it="data-bs-toggle",vi="button",an="Button",bi=`[${it}="${vi}"]`,wi=e=>R(e,an),Ei=e=>new Xe(e);class Xe extends J{static selector=bi;static init=Ei;static getInstance=wi;constructor(t){super(t);const{element:s}=this;this.isActive=h(s,T),I(s,Bs,String(!!this.isActive)),this._toggleEventListeners(!0)}get name(){return an}toggle=t=>{t&&t.preventDefault();const{element:s,isActive:n}=this;if(ot(s))return;(n?v:d)(s,T),I(s,Bs,n?"false":"true"),this.isActive=h(s,T)};_toggleEventListeners=t=>{(t?k:L)(this.element,D,this.toggle)};dispose(){this._toggleEventListeners(),super.dispose()}}const qe="data-bs-target",At="carousel",ln="Carousel",dn="data-bs-parent",Ti="data-bs-container",z=e=>{const t=[qe,dn,Ti,"href"],s=b(e);return t.map(n=>{const o=U(e,n);return o?n===dn?B(e,o):_(o,s):null}).filter(n=>n)[0]},te=`[data-bs-ride="${At}"]`,tt=`${At}-item`,Ue="data-bs-slide-to",mt="data-bs-slide",vt="paused",hn={pause:"hover",keyboard:!1,touch:!0,interval:5e3},dt=e=>R(e,ln),$i=e=>new ts(e);let ee=0,$e=0,Ye=0;const Ze=E(`slide.bs.${At}`),Qe=E(`slid.bs.${At}`),fn=e=>{const{index:t,direction:s,element:n,slides:o,options:i}=e;if(e.isAnimating){const r=Je(e),c=s==="left"?"next":"prev",a=s==="left"?"start":"end";d(o[t],T),v(o[t],`${tt}-${c}`),v(o[t],`${tt}-${a}`),v(o[r],T),v(o[r],`${tt}-${a}`),w(n,Qe),g.clear(n,mt),e.cycle&&!b(n).hidden&&i.interval&&!e.isPaused&&e.cycle()}};function yi(){const e=dt(this);e&&!e.isPaused&&!g.get(this,vt)&&d(this,vt)}function Ci(){const e=dt(this);e&&e.isPaused&&!g.get(this,vt)&&e.cycle()}function Si(e){e.preventDefault();const t=B(this,te)||z(this),s=t&&dt(t);if(ot(this)||!s||s.isAnimating)return;const n=+(U(this,Ue)||0);this&&!h(this,T)&&!Number.isNaN(n)&&s.to(n)}function Hi(e){e.preventDefault();const t=B(this,te)||z(this),s=t&&dt(t);if(ot(this)||!s||s.isAnimating)return;const n=U(this,mt);n==="next"?s.next():n==="prev"&&s.prev()}const _i=({code:e,target:t})=>{const s=b(t),[n]=[...Z(te,s)].filter(a=>sn(a)),o=dt(n);if(!o||o.isAnimating||/textarea|input|select/i.test(t.nodeName))return;const i=pt(n);e===(i?js:Fs)?o.prev():e===(i?Fs:js)&&o.next()};function un(e){const{target:t}=e,s=dt(this);s&&s.isTouch&&(s.indicator&&!s.indicator.contains(t)||!s.controls.includes(t))&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())}function Ai(e){const{target:t}=e,s=dt(this);if(!s||s.isAnimating||s.isTouch)return;const{controls:n,indicators:o}=s;[...n,...o].every(i=>i===t||i.contains(t))||(ee=e.pageX,this.contains(t)&&(s.isTouch=!0,gn(s,!0)))}const Pi=e=>{$e=e.pageX},xi=e=>{const{target:t}=e,s=b(t),n=[...Z(te,s)].map(c=>dt(c)).find(c=>c.isTouch);if(!n)return;const{element:o,index:i}=n,r=pt(o);Ye=e.pageX,n.isTouch=!1,gn(n),!s.getSelection()?.toString().length&&o.contains(t)&&Math.abs(ee-Ye)>120&&($e<ee?n.to(i+(r?-1:1)):$e>ee&&n.to(i+(r?1:-1))),ee=0,$e=0,Ye=0},Ge=(e,t)=>{const{indicators:s}=e;[...s].forEach(n=>v(n,T)),e.indicators[t]&&d(s[t],T)},gn=(e,t)=>{const{element:s}=e,n=t?k:L;n(b(s),jo,Pi,Gt),n(b(s),zo,xi,Gt)},Je=e=>{const{slides:t,element:s}=e,n=_(`.${tt}.${T}`,s);return n?[...t].indexOf(n):-1};class ts extends J{static selector=te;static init=$i;static getInstance=dt;constructor(t,s){super(t,s);const{element:n}=this;this.direction=pt(n)?"right":"left",this.isTouch=!1,this.slides=lt(tt,n);const{slides:o}=this;if(o.length<2)return;const i=Je(this),r=[...o].find(l=>Gs(l,`.${tt}-next`));this.index=i;const c=b(n);this.controls=[...Z(`[${mt}]`,n),...Z(`[${mt}][${qe}="#${n.id}"]`,c)].filter((l,f,u)=>f===u.indexOf(l)),this.indicator=_(`.${At}-indicators`,n),this.indicators=[...this.indicator?Z(`[${Ue}]`,this.indicator):[],...Z(`[${Ue}][${qe}="#${n.id}"]`,c)].filter((l,f,u)=>f===u.indexOf(l));const{options:a}=this;this.options.interval=a.interval===!0?hn.interval:a.interval,r?this.index=[...o].indexOf(r):i<0&&(this.index=0,d(o[0],T),this.indicators.length&&Ge(this,0)),this.indicators.length&&Ge(this,this.index),this._toggleEventListeners(!0),a.interval&&this.cycle()}get name(){return ln}get defaults(){return hn}get isPaused(){return h(this.element,vt)}get isAnimating(){return _(`.${tt}-next,.${tt}-prev`,this.element)!==null}cycle(){const{element:t,options:s,isPaused:n,index:o}=this;g.clear(t,At),n&&(g.clear(t,vt),v(t,vt)),g.set(t,()=>{this.element&&!this.isPaused&&!this.isTouch&&sn(t)&&this.to(o+1)},s.interval,At)}pause(){const{element:t,options:s}=this;this.isPaused||!s.interval||(d(t,vt),g.set(t,()=>{},1,vt))}next(){this.isAnimating||this.to(this.index+1)}prev(){this.isAnimating||this.to(this.index-1)}to(t){const{element:s,slides:n,options:o}=this,i=Je(this),r=pt(s);let c=t;if(this.isAnimating||i===c||g.get(s,mt))return;i<c||i===0&&c===n.length-1?this.direction=r?"right":"left":(i>c||i===n.length-1&&c===0)&&(this.direction=r?"left":"right");const{direction:a}=this;c<0?c=n.length-1:c>=n.length&&(c=0);const l=a==="left"?"next":"prev",f=a==="left"?"start":"end",u={relatedTarget:n[c],from:i,to:c,direction:a};rt(Ze,u),rt(Qe,u),w(s,Ze),!Ze.defaultPrevented&&(this.index=c,Ge(this,c),Qt(n[c])&&h(s,"slide")?g.set(s,()=>{d(n[c],`${tt}-${l}`),St(n[c]),d(n[c],`${tt}-${f}`),d(n[i],`${tt}-${f}`),S(n[c],()=>this.slides&&this.slides.length&&fn(this))},0,mt):(d(n[c],T),v(n[i],T),g.set(s,()=>{g.clear(s,mt),s&&o.interval&&!this.isPaused&&this.cycle(),w(s,Qe)},0,mt)))}_toggleEventListeners=t=>{const{element:s,options:n,slides:o,controls:i,indicators:r}=this,{touch:c,pause:a,interval:l,keyboard:f}=n,u=t?k:L;a&&l&&(u(s,me,yi),u(s,Oe,Ci)),c&&o.length>2&&(u(s,Fo,Ai,Gt),u(s,Ne,un,{passive:!1}),u(s,Ko,un,{passive:!1})),i.length&&i.forEach($=>{u($,D,Hi)}),r.length&&r.forEach($=>{u($,D,Si)}),f&&u(b(s),pe,_i)};dispose(){const{isAnimating:t}=this,s={...this,isAnimating:t};this._toggleEventListeners(),super.dispose(),s.isAnimating&&S(s.slides[s.index],()=>{fn(s)})}}const Pt="collapsing",K="collapse",pn="Collapse",Di=`.${K}`,mn=`[${it}="${K}"]`,Ii={parent:null},ye=e=>R(e,pn),ki=e=>new es(e),vn=E(`show.bs.${K}`),Li=E(`shown.bs.${K}`),bn=E(`hide.bs.${K}`),Oi=E(`hidden.bs.${K}`),Ni=e=>{const{element:t,parent:s,triggers:n}=e;w(t,vn),vn.defaultPrevented||(g.set(t,ve,17),s&&g.set(s,ve,17),d(t,Pt),v(t,K),H(t,{height:`${t.scrollHeight}px`}),S(t,()=>{g.clear(t),s&&g.clear(s),n.forEach(o=>I(o,ue,"true")),v(t,Pt),d(t,K),d(t,p),H(t,{height:""}),w(t,Li)}))},wn=e=>{const{element:t,parent:s,triggers:n}=e;w(t,bn),bn.defaultPrevented||(g.set(t,ve,17),s&&g.set(s,ve,17),H(t,{height:`${t.scrollHeight}px`}),v(t,K),v(t,p),d(t,Pt),St(t),H(t,{height:"0px"}),S(t,()=>{g.clear(t),s&&g.clear(s),n.forEach(o=>I(o,ue,"false")),v(t,Pt),d(t,K),H(t,{height:""}),w(t,Oi)}))},Mi=e=>{const{target:t}=e,s=t&&B(t,mn),n=s&&z(s),o=n&&ye(n);s&&ot(s)||o&&(o.toggle(),s?.tagName==="A"&&e.preventDefault())};class es extends J{static selector=Di;static init=ki;static getInstance=ye;constructor(t,s){super(t,s);const{element:n,options:o}=this,i=b(n);this.triggers=[...Z(mn,i)].filter(r=>z(r)===n),this.parent=P(o.parent)?o.parent:Zt(o.parent)?z(n)||_(o.parent,i):null,this._toggleEventListeners(!0)}get name(){return pn}get defaults(){return Ii}hide(){const{triggers:t,element:s}=this;g.get(s)||(wn(this),t.length&&t.forEach(n=>d(n,`${K}d`)))}show(){const{element:t,parent:s,triggers:n}=this;let o,i;s&&(o=[...Z(`.${K}.${p}`,s)].find(r=>ye(r)),i=o&&ye(o)),(!s||!g.get(s))&&!g.get(t)&&(i&&o!==t&&(wn(i),i.triggers.forEach(r=>{d(r,`${K}d`)})),Ni(this),n.length&&n.forEach(r=>v(r,`${K}d`)))}toggle(){h(this.element,p)?this.hide():this.show()}_toggleEventListeners=t=>{const s=t?k:L,{triggers:n}=this;n.length&&n.forEach(o=>{s(o,D,Mi)})};dispose(){this._toggleEventListeners(),super.dispose()}}const Bi=e=>e!=null&&typeof e=="object"||!1,Ri=e=>Bi(e)&&typeof e.nodeType=="number"&&[1,2,3,4,5,6,7,8,9,10,11].some(t=>e.nodeType===t)||!1,En=e=>Ri(e)&&e.nodeType===1||!1,Wi=e=>typeof e=="function"||!1,Fi="1.0.7",Tn="PositionObserver Error";class ss{entries;static version=Fi;_tick;_root;_callback;constructor(t,s){if(!Wi(t))throw new Error(`${Tn}: ${t} is not a function.`);this.entries=new Map,this._callback=t,this._root=En(s?.root)?s.root:document?.documentElement,this._tick=0}observe=t=>{if(!En(t))throw new Error(`${Tn}: ${t} is not an instance of Element.`);this._root.contains(t)&&this._new(t).then(({boundingClientRect:s})=>{if(s&&!this.getEntry(t)){const{clientWidth:n,clientHeight:o}=this._root;this.entries.set(t,{target:t,boundingClientRect:s,clientWidth:n,clientHeight:o})}this._tick||(this._tick=requestAnimationFrame(this._runCallback))})};unobserve=t=>{this.entries.has(t)&&this.entries.delete(t)};_runCallback=()=>{if(!this.entries.size)return;const{clientWidth:t,clientHeight:s}=this._root,n=new Promise(o=>{const i=[];this.entries.forEach(({target:r,boundingClientRect:c,clientWidth:a,clientHeight:l})=>{this._root.contains(r)&&this._new(r).then(({boundingClientRect:f,isIntersecting:u})=>{if(!u)return;const{left:$,top:O}=f;if(c.top!==O||c.left!==$||a!==t||l!==s){const F={target:r,boundingClientRect:f,clientHeight:s,clientWidth:t};this.entries.set(r,F),i.push(F)}})}),o(i)});this._tick=requestAnimationFrame(async()=>{const o=await n;o.length&&this._callback(o,this),this._runCallback()})};_new=t=>new Promise(s=>{new IntersectionObserver(([n],o)=>{o.disconnect(),s(n)}).observe(t)});getEntry=t=>this.entries.get(t);disconnect=()=>{cancelAnimationFrame(this._tick),this.entries.clear(),this._tick=0}}const xt=["dropdown","dropup","dropstart","dropend"],$n="Dropdown",yn="dropdown-menu",Cn=e=>{const t=B(e,"A");return e.tagName==="A"&&Ut(e,"href")&&U(e,"href")?.slice(-1)==="#"||t&&Ut(t,"href")&&U(t,"href")?.slice(-1)==="#"},[et,ns,os,is]=xt,ji=`[${it}="${et}"]`,se=e=>R(e,$n),zi=e=>new ls(e),Ki=`${yn}-end`,Sn=[et,ns],Hn=[os,is],_n=["A","BUTTON"],Vi={offset:5,display:"dynamic"},rs=E(`show.bs.${et}`),An=E(`shown.bs.${et}`),cs=E(`hide.bs.${et}`),Pn=E(`hidden.bs.${et}`),xn=E(`updated.bs.${et}`),Dn=e=>{const{element:t,menu:s,parentElement:n,options:o}=e,{offset:i}=o;if(W(s,"position")==="static")return;const r=pt(t),c=h(s,Ki);["margin","top","bottom","left","right"].forEach(j=>{const Nt={};Nt[j]="",H(s,Nt)});let l=xt.find(j=>h(n,j))||et;const f={dropdown:[i,0,0],dropup:[0,0,i],dropstart:r?[-1,0,0,i]:[-1,i,0],dropend:r?[-1,i,0]:[-1,0,0,i]},u={dropdown:{top:"100%"},dropup:{top:"auto",bottom:"100%"},dropstart:r?{left:"100%",right:"auto"}:{left:"auto",right:"100%"},dropend:r?{left:"auto",right:"100%"}:{left:"100%",right:"auto"},menuStart:r?{right:"0",left:"auto"}:{right:"auto",left:"0"},menuEnd:r?{right:"auto",left:"0"}:{right:"0",left:"auto"}},{offsetWidth:$,offsetHeight:O}=s,{clientWidth:F,clientHeight:st}=at(t),{left:m,top:q,width:Lt,height:Ot}=Ht(t),C=m-$-i<0,Et=m+$+Lt+i>=F,ft=q+O+i>=st,nt=q+O+Ot+i>=st,zt=q-O-i<0,y=(!r&&c||r&&!c)&&m+Lt-$<0,V=(r&&c||!r&&!c)&&m+$>=F;if(Hn.includes(l)&&C&&Et&&(l=et),l===os&&(r?Et:C)&&(l=is),l===is&&(r?C:Et)&&(l=os),l===ns&&zt&&!nt&&(l=et),l===et&&nt&&!zt&&(l=ns),Hn.includes(l)&&ft&&rt(u[l],{top:"auto",bottom:0}),Sn.includes(l)&&(y||V)){let j={left:"auto",right:"auto"};!y&&V&&!r&&(j={left:"auto",right:0}),y&&!V&&r&&(j={left:0,right:"auto"}),j&&rt(u[l],j)}const Kt=f[l];H(s,{...u[l],margin:`${Kt.map(j=>j&&`${j}px`).join(" ")}`}),Sn.includes(l)&&c&&c&&H(s,u[!r&&y||r&&V?"menuStart":"menuEnd"]),w(n,xn)},Xi=e=>Array.from(e.children).map(t=>{if(t&&_n.includes(t.tagName))return t;const{firstElementChild:s}=t;return s&&_n.includes(s.tagName)?s:null}).filter(t=>t),In=e=>{const{element:t,options:s,menu:n}=e,o=e.open?k:L,i=b(t);o(i,D,kn),o(i,ke,kn),o(i,pe,Ui),o(i,Ro,Yi),s.display==="dynamic"&&(e.open?e._observer.observe(n):e._observer.disconnect())},as=e=>{const t=[...xt,"btn-group","input-group"].map(s=>lt(`${s} ${p}`,b(e))).find(s=>s.length);if(t&&t.length)return[...t[0].children].find(s=>xt.some(n=>n===U(s,it)))},kn=e=>{const{target:t,type:s}=e;if(!P(t))return;const n=as(t),o=n&&se(n);if(!o)return;const{parentElement:i,menu:r}=o,c=i&&i.contains(t)&&(t.tagName==="form"||B(t,"form")!==null);[D,Ws].includes(s)&&Cn(t)&&e.preventDefault(),!c&&s!==ke&&t!==n&&t!==r&&o.hide()};function qi(e){const t=se(this);ot(this)||t&&(e.stopPropagation(),t.toggle(),Cn(this)&&e.preventDefault())}const Ui=e=>{[Me,Be].includes(e.code)&&e.preventDefault()};function Yi(e){const{code:t}=e,s=as(this);if(!s)return;const n=se(s),{activeElement:o}=b(s);if(!n||!o)return;const{menu:i,open:r}=n,c=Xi(i);if(c&&c.length&&[Me,Be].includes(t)){let a=c.indexOf(o);o===s?a=0:t===Be?a=a>1?a-1:0:t===Me&&(a=a<c.length-1?a+1:a),c[a]&&ct(c[a])}Re===t&&r&&(n.toggle(),ct(s))}class ls extends J{static selector=ji;static init=zi;static getInstance=se;constructor(t,s){super(t,s);const{parentElement:n}=this.element,[o]=lt(yn,n);o&&(this.parentElement=n,this.menu=o,this._observer=new ss(()=>Dn(this)),this._toggleEventListeners(!0))}get name(){return $n}get defaults(){return Vi}toggle(){this.open?this.hide():this.show()}show(){const{element:t,open:s,menu:n,parentElement:o}=this;if(s)return;const i=as(t),r=i&&se(i);r&&r.hide(),[rs,An,xn].forEach(c=>{c.relatedTarget=t}),w(o,rs),!rs.defaultPrevented&&(d(n,p),d(o,p),I(t,ue,"true"),Dn(this),this.open=!s,ct(t),In(this),w(o,An))}hide(){const{element:t,open:s,menu:n,parentElement:o}=this;s&&([cs,Pn].forEach(i=>{i.relatedTarget=t}),w(o,cs),!cs.defaultPrevented&&(v(n,p),v(o,p),I(t,ue,"false"),this.open=!s,In(this),w(o,Pn)))}_toggleEventListeners=t=>{(t?k:L)(this.element,D,qi)};dispose(){this.open&&this.hide(),this._toggleEventListeners(),super.dispose()}}const X="modal",ds="Modal",hs="Offcanvas",Zi="fixed-top",Qi="fixed-bottom",Ln="sticky-top",On="position-sticky",Nn=e=>[...lt(Zi,e),...lt(Qi,e),...lt(Ln,e),...lt(On,e),...lt("is-fixed",e)],Gi=e=>{const t=_t(e);H(t,{paddingRight:"",overflow:""});const s=Nn(t);s.length&&s.forEach(n=>{H(n,{paddingRight:"",marginRight:""})})},Mn=e=>{const{clientWidth:t}=at(e),{innerWidth:s}=Qs(e);return Math.abs(s-t)},Bn=(e,t)=>{const s=_t(e),n=parseInt(W(s,"paddingRight"),10),i=W(s,"overflow")==="hidden"&&n?0:Mn(e),r=Nn(s);t&&(H(s,{overflow:"hidden",paddingRight:`${n+i}px`}),r.length&&r.forEach(c=>{const a=W(c,"paddingRight");if(c.style.paddingRight=`${parseInt(a,10)+i}px`,[Ln,On].some(l=>h(c,l))){const l=W(c,"marginRight");c.style.marginRight=`${parseInt(l,10)-i}px`}}))},Q="offcanvas",bt=ut({tagName:"div",className:"popup-container"}),Rn=(e,t)=>{const s=A(t)&&t.nodeName==="BODY",n=A(t)&&!s?t:bt,o=s?t:_t(e);A(e)&&(n===bt&&o.append(bt),n.append(e))},Wn=(e,t)=>{const s=A(t)&&t.nodeName==="BODY",n=A(t)&&!s?t:bt;A(e)&&(e.remove(),n===bt&&!bt.children.length&&bt.remove())},fs=(e,t)=>{const s=A(t)&&t.nodeName!=="BODY"?t:bt;return A(e)&&s.contains(e)},Fn="backdrop",jn=`${X}-${Fn}`,zn=`${Q}-${Fn}`,Kn=`.${X}.${p}`,us=`.${Q}.${p}`,x=ut("div"),Dt=e=>_(`${Kn},${us}`,b(e)),gs=e=>{const t=e?jn:zn;[jn,zn].forEach(s=>{v(x,s)}),d(x,t)},Vn=(e,t,s)=>{gs(s),Rn(x,_t(e)),t&&d(x,N)},Xn=()=>{h(x,p)||(d(x,p),St(x))},Ce=()=>{v(x,p)},qn=e=>{Dt(e)||(v(x,N),Wn(x,_t(e)),Gi(e))},Un=e=>P(e)&&W(e,"visibility")!=="hidden"&&e.offsetParent!==null,Ji=`.${X}`,tr=`[${it}="${X}"]`,er=`[${Ee}="${X}"]`,Yn=`${X}-static`,sr={backdrop:!0,keyboard:!0},ne=e=>R(e,ds),nr=e=>new ms(e),Se=E(`show.bs.${X}`),Zn=E(`shown.bs.${X}`),ps=E(`hide.bs.${X}`),Qn=E(`hidden.bs.${X}`),Gn=e=>{const{element:t}=e,s=Mn(t),{clientHeight:n,scrollHeight:o}=at(t),{clientHeight:i,scrollHeight:r}=t,c=i!==r;if(!c&&s){const l={[pt(t)?"paddingLeft":"paddingRight"]:`${s}px`};H(t,l)}Bn(t,c||n!==o)},Jn=(e,t)=>{const s=t?k:L,{element:n}=e;s(n,D,rr),s(b(n),pe,ir),t?e._observer.observe(n):e._observer.disconnect()},to=e=>{const{triggers:t,element:s,relatedTarget:n}=e;qn(s),H(s,{paddingRight:"",display:""}),Jn(e);const o=Se.relatedTarget||t.find(Un);o&&ct(o),Qn.relatedTarget=n||void 0,w(s,Qn),we(s)},eo=e=>{const{element:t,relatedTarget:s}=e;ct(t),Jn(e,!0),Zn.relatedTarget=s||void 0,w(t,Zn),we(t)},so=e=>{const{element:t,hasFade:s}=e;H(t,{display:"block"}),Gn(e),Dt(t)||H(_t(t),{overflow:"hidden"}),d(t,p),yt(t,qt),I(t,ge,"true"),s?S(t,()=>eo(e)):eo(e)},no=e=>{const{element:t,options:s,hasFade:n}=e;s.backdrop&&n&&h(x,p)&&!Dt(t)?(Ce(),S(x,()=>to(e))):to(e)};function or(e){const t=z(this),s=t&&ne(t);ot(this)||s&&(this.tagName==="A"&&e.preventDefault(),s.relatedTarget=this,s.toggle())}const ir=({code:e,target:t})=>{const s=_(Kn,b(t)),n=s&&ne(s);if(!n)return;const{options:o}=n;o.keyboard&&e===Re&&h(s,p)&&(n.relatedTarget=null,n.hide())},rr=e=>{const{currentTarget:t}=e,s=t&&ne(t);if(!s||!t||g.get(t))return;const{options:n,isStatic:o,modalDialog:i}=s,{backdrop:r}=n,{target:c}=e,a=b(t)?.getSelection()?.toString().length,l=i.contains(c),f=c&&B(c,er);o&&!l?g.set(t,()=>{d(t,Yn),S(i,()=>cr(s))},17):(f||!a&&!o&&!l&&r)&&(s.relatedTarget=f||null,s.hide(),e.preventDefault())},cr=e=>{const{element:t,modalDialog:s}=e,n=(Qt(s)||0)+17;v(t,Yn),g.set(t,()=>g.clear(t),n)};class ms extends J{static selector=Ji;static init=nr;static getInstance=ne;constructor(t,s){super(t,s);const{element:n}=this,o=_(`.${X}-dialog`,n);o&&(this.modalDialog=o,this.triggers=[...Z(tr,b(n))].filter(i=>z(i)===n),this.isStatic=this.options.backdrop==="static",this.hasFade=h(n,N),this.relatedTarget=null,this._observer=new ResizeObserver(()=>this.update()),this._toggleEventListeners(!0))}get name(){return ds}get defaults(){return sr}toggle(){h(this.element,p)?this.hide():this.show()}show(){const{element:t,options:s,hasFade:n,relatedTarget:o}=this,{backdrop:i}=s;let r=0;if(h(t,p)||(Se.relatedTarget=o||void 0,w(t,Se),Se.defaultPrevented))return;const c=Dt(t);if(c&&c!==t){const a=ne(c)||R(c,hs);a&&a.hide()}i?(fs(x)?gs(!0):Vn(t,n,!0),r=Qt(x),Xn(),setTimeout(()=>so(this),r)):(so(this),c&&h(x,p)&&Ce())}hide(){const{element:t,hasFade:s,relatedTarget:n}=this;h(t,p)&&(ps.relatedTarget=n||void 0,w(t,ps),!ps.defaultPrevented&&(v(t,p),I(t,qt,"true"),yt(t,ge),s?S(t,()=>no(this)):no(this)))}update=()=>{h(this.element,p)&&Gn(this)};_toggleEventListeners=t=>{const s=t?k:L,{triggers:n}=this;n.length&&n.forEach(o=>{s(o,D,or)})};dispose(){const t={...this},{modalDialog:s,hasFade:n}=t,o=()=>setTimeout(()=>super.dispose(),17);this.hide(),this._toggleEventListeners(),n?S(s,o):o()}}const ar=`.${Q}`,oo=`[${it}="${Q}"]`,lr=`[${Ee}="${Q}"]`,He=`${Q}-toggling`,dr={backdrop:!0,keyboard:!0,scroll:!1},oe=e=>R(e,hs),hr=e=>new bs(e),_e=E(`show.bs.${Q}`),io=E(`shown.bs.${Q}`),vs=E(`hide.bs.${Q}`),ro=E(`hidden.bs.${Q}`),fr=e=>{const{element:t}=e,{clientHeight:s,scrollHeight:n}=at(t);Bn(t,s!==n)},co=(e,t)=>{const s=t?k:L,n=b(e.element);s(n,pe,mr),s(n,D,pr)},ao=e=>{const{element:t,options:s}=e;s.scroll||(fr(e),H(_t(t),{overflow:"hidden"})),d(t,He),d(t,p),H(t,{visibility:"visible"}),S(t,()=>vr(e))},ur=e=>{const{element:t,options:s}=e,n=Dt(t);t.blur(),!n&&s.backdrop&&h(x,p)&&Ce(),S(t,()=>br(e))};function gr(e){const t=z(this),s=t&&oe(t);ot(this)||s&&(s.relatedTarget=this,s.toggle(),this.tagName==="A"&&e.preventDefault())}const pr=e=>{const{target:t}=e,s=_(us,b(t));if(!s)return;const n=_(lr,s),o=oe(s);if(!o)return;const{options:i,triggers:r}=o,{backdrop:c}=i,a=B(t,oo),l=b(s).getSelection();x.contains(t)&&c==="static"||(!(l&&l.toString().length)&&(!s.contains(t)&&c&&(!a||r.includes(t))||n&&n.contains(t))&&(o.relatedTarget=n&&n.contains(t)?n:void 0,o.hide()),a&&a.tagName==="A"&&e.preventDefault())},mr=({code:e,target:t})=>{const s=_(us,b(t)),n=s&&oe(s);n&&n.options.keyboard&&e===Re&&(n.relatedTarget=void 0,n.hide())},vr=e=>{const{element:t}=e;v(t,He),yt(t,qt),I(t,ge,"true"),I(t,"role","dialog"),w(t,io),co(e,!0),ct(t),we(t)},br=e=>{const{element:t,triggers:s}=e;I(t,qt,"true"),yt(t,ge),yt(t,"role"),H(t,{visibility:""});const n=_e.relatedTarget||s.find(Un);n&&ct(n),qn(t),w(t,ro),v(t,He),we(t),Dt(t)||co(e)};class bs extends J{static selector=ar;static init=hr;static getInstance=oe;constructor(t,s){super(t,s);const{element:n}=this;this.triggers=[...Z(oo,b(n))].filter(o=>z(o)===n),this.relatedTarget=void 0,this._toggleEventListeners(!0)}get name(){return hs}get defaults(){return dr}toggle(){h(this.element,p)?this.hide():this.show()}show(){const{element:t,options:s,relatedTarget:n}=this;let o=0;if(h(t,p)||(_e.relatedTarget=n||void 0,io.relatedTarget=n||void 0,w(t,_e),_e.defaultPrevented))return;const i=Dt(t);if(i&&i!==t){const r=oe(i)||R(i,ds);r&&r.hide()}s.backdrop?(fs(x)?gs():Vn(t,!0),o=Qt(x),Xn(),setTimeout(()=>ao(this),o)):(ao(this),i&&h(x,p)&&Ce())}hide(){const{element:t,relatedTarget:s}=this;h(t,p)&&(vs.relatedTarget=s||void 0,ro.relatedTarget=s||void 0,w(t,vs),!vs.defaultPrevented&&(d(t,He),v(t,p),ur(this)))}_toggleEventListeners=t=>{const s=t?k:L;this.triggers.forEach(n=>{s(n,D,gr)})};dispose(){const{element:t}=this,s=h(t,p),n=()=>setTimeout(()=>super.dispose(),1);this.hide(),this._toggleEventListeners(),s?S(t,n):n()}}const It="popover",ws="Popover",ht="tooltip",lo=e=>{const t=e===ht,s=t?`${e}-inner`:`${e}-body`,n=t?"":`<h3 class="${e}-header"></h3>`,o=`<div class="${e}-arrow"></div>`,i=`<div class="${s}"></div>`;return`<div class="${e}" role="${ht}">${n+o+i}</div>`},ho={top:"top",bottom:"bottom",left:"start",right:"end"},Es=e=>{requestAnimationFrame(()=>{const t=/\b(top|bottom|start|end)+/,{element:s,tooltip:n,container:o,offsetParent:i,options:r,arrow:c}=e;if(!n)return;const a=pt(s),{x:l,y:f}=si(i);H(n,{top:"",left:"",right:"",bottom:""});const{offsetWidth:u,offsetHeight:$}=n,{clientWidth:O,clientHeight:F,offsetWidth:st}=at(s);let{placement:m}=r;const{clientWidth:q,offsetWidth:Lt}=o,C=W(o,"position")==="fixed",Et=Math.abs(C?q-Lt:O-st),ft=a&&C?Et:0,nt=O-(a?0:Et)-1,zt=e._observer.getEntry(s),{width:y,height:V,left:Kt,right:j,top:Nt}=zt?.boundingClientRect||Ht(s,!0),{x:Pe,y:Vt}=ri(s,i,{x:l,y:f});H(c,{top:"",left:"",right:"",bottom:""});let Mt=0,ae="",Tt=0,ks="",Xt="",xe="",Ls="";const Bt=c.offsetWidth||0,$t=c.offsetHeight||0,Os=Bt/2;let le=Nt-$-$t<0,de=Nt+$+V+$t>=F,he=Kt-u-Bt<ft,fe=Kt+u+y+Bt>=nt;const De=["left","right"],Ns=["top","bottom"];le=De.includes(m)?Nt+V/2-$/2-$t<0:le,de=De.includes(m)?Nt+$/2+V/2+$t>=F:de,he=Ns.includes(m)?Kt+y/2-u/2<ft:he,fe=Ns.includes(m)?Kt+u/2+y/2>=nt:fe,m=De.includes(m)&&he&&fe?"top":m,m=m==="top"&&le?"bottom":m,m=m==="bottom"&&de?"top":m,m=m==="left"&&he?"right":m,m=m==="right"&&fe?"left":m,n.className.includes(m)||(n.className=n.className.replace(t,ho[m])),De.includes(m)?(m==="left"?Tt=Pe-u-Bt:Tt=Pe+y+Bt,le&&de?(Mt=0,ae=0,Xt=Vt+V/2-$t/2):le?(Mt=Vt,ae="",Xt=V/2-Bt):de?(Mt=Vt-$+V,ae="",Xt=$-V/2-Bt):(Mt=Vt-$/2+V/2,Xt=$/2-$t/2)):Ns.includes(m)&&(m==="top"?Mt=Vt-$-$t:Mt=Vt+V+$t,he?(Tt=0,xe=Pe+y/2-Os):fe?(Tt="auto",ks=0,Ls=y/2+nt-j-Os):(Tt=Pe-u/2+y/2,xe=u/2-Os)),H(n,{top:`${Mt}px`,bottom:ae===""?"":`${ae}px`,left:Tt==="auto"?Tt:`${Tt}px`,right:ks!==""?`${ks}px`:""}),P(c)&&(Xt!==""&&(c.style.top=`${Xt}px`),xe!==""?c.style.left=`${xe}px`:Ls!==""&&(c.style.right=`${Ls}px`));const Gr=E(`updated.bs.${Jt(e.name)}`);w(s,Gr)})},Ts={template:lo(ht),title:"",customClass:"",trigger:"hover focus",placement:"top",sanitizeFn:void 0,animation:!0,delay:200,container:document.body,content:"",dismissible:!1,btnClose:""},fo="data-original-title",kt="Tooltip",wt=(e,t,s)=>{if(Zt(t)&&t.length){let n=t.trim();ai(s)&&(n=s(n));const i=new DOMParser().parseFromString(n,"text/html");e.append(...i.body.childNodes)}else P(t)?e.append(t):(li(t)||ci(t)&&t.every(A))&&e.append(...t)},wr=e=>{const t=e.name===kt,{id:s,element:n,options:o}=e,{title:i,placement:r,template:c,animation:a,customClass:l,sanitizeFn:f,dismissible:u,content:$,btnClose:O}=o,F=t?ht:It,st={...ho};let m=[],q=[];pt(n)&&(st.left="end",st.right="start");const Lt=`bs-${F}-${st[r]}`;let Ot;if(P(c))Ot=c;else{const y=ut("div");wt(y,c,f),Ot=y.firstChild}if(!P(Ot))return;e.tooltip=Ot.cloneNode(!0);const{tooltip:C}=e;I(C,"id",s),I(C,"role",ht);const Et=t?`${ht}-inner`:`${It}-body`,ft=t?null:_(`.${It}-header`,C),nt=_(`.${Et}`,C);e.arrow=_(`.${F}-arrow`,C);const{arrow:zt}=e;if(P(i))m=[i.cloneNode(!0)];else{const y=ut("div");wt(y,i,f),m=[...y.childNodes]}if(P($))q=[$.cloneNode(!0)];else{const y=ut("div");wt(y,$,f),q=[...y.childNodes]}if(u)if(i)if(P(O))m=[...m,O.cloneNode(!0)];else{const y=ut("div");wt(y,O,f),m=[...m,y.firstChild]}else if(ft&&ft.remove(),P(O))q=[...q,O.cloneNode(!0)];else{const y=ut("div");wt(y,O,f),q=[...q,y.firstChild]}t?i&&nt&&wt(nt,i,f):(i&&ft&&wt(ft,m,f),$&&nt&&wt(nt,q,f),e.btn=_(".btn-close",C)||void 0),d(C,"position-absolute"),d(zt,"position-absolute"),h(C,F)||d(C,F),a&&!h(C,N)&&d(C,N),l&&!h(C,l)&&d(C,l),h(C,Lt)||d(C,Lt)},Er=e=>{const t=["HTML","BODY"],s=[];let{parentNode:n}=e;for(;n&&!t.includes(n.nodeName);)n=ni(n),Zs(n)||oi(n)||s.push(n);return s.find((o,i)=>(W(o,"position")!=="relative"||W(o,"position")==="relative"&&o.offsetHeight!==o.scrollHeight)&&s.slice(i+1).every(r=>W(r,"position")==="static")?o:null)||b(e).body},Tr=`[${it}="${ht}"],[data-tip="${ht}"]`,uo="title";let go=e=>R(e,kt);const $r=e=>new Ae(e),yr=e=>{const{element:t,tooltip:s,container:n}=e;yt(t,Ms),Wn(s,n)},ie=e=>{const{tooltip:t,container:s}=e;return t&&fs(t,s)},Cr=(e,t)=>{const{element:s}=e;e._toggleEventListeners(),Ut(s,fo)&&e.name===kt&&wo(e),t&&t()},po=(e,t)=>{const s=t?k:L,{element:n}=e;s(b(n),Ne,e.handleTouch,Gt)},mo=e=>{const{element:t}=e,s=E(`shown.bs.${Jt(e.name)}`);po(e,!0),w(t,s),g.clear(t,"in")},vo=e=>{const{element:t}=e,s=E(`hidden.bs.${Jt(e.name)}`);po(e),yr(e),w(t,s),g.clear(t,"out")},bo=(e,t)=>{const s=t?k:L,{element:n,tooltip:o}=e,i=B(n,`.${X}`),r=B(n,`.${Q}`);t?[n,o].forEach(c=>e._observer.observe(c)):e._observer.disconnect(),i&&s(i,`hide.bs.${X}`,e.handleHide),r&&s(r,`hide.bs.${Q}`,e.handleHide)},wo=(e,t)=>{const s=[fo,uo],{element:n}=e;I(n,s[t?0:1],t||U(n,s[0])||""),yt(n,s[t?1:0])};class Ae extends J{static selector=Tr;static init=$r;static getInstance=go;static styleTip=Es;constructor(t,s){super(t,s);const{element:n}=this,o=this.name===kt,i=o?ht:It,r=o?kt:ws;go=f=>R(f,r),this.enabled=!0,this.id=`${i}-${en(n,i)}`;const{options:c}=this;if(!c.title&&o||!o&&!c.content)return;rt(Ts,{titleAttr:""}),Ut(n,uo)&&o&&typeof c.title=="string"&&wo(this,c.title);const a=Er(n),l=["sticky","fixed","relative"].some(f=>W(a,"position")===f)?a:Qs(n);this.container=a,this.offsetParent=l,wr(this),this.tooltip&&(this._observer=new ss(()=>this.update()),this._toggleEventListeners(!0))}get name(){return kt}get defaults(){return Ts}handleFocus=()=>ct(this.element);handleShow=()=>this.show();show(){const{options:t,tooltip:s,element:n,container:o,id:i}=this,{animation:r}=t,c=g.get(n,"out");g.clear(n,"out"),s&&!c&&!ie(this)&&g.set(n,()=>{const a=E(`show.bs.${Jt(this.name)}`);w(n,a),a.defaultPrevented||(Rn(s,o),I(n,Ms,`#${i}`),this.update(),bo(this,!0),h(s,p)||d(s,p),r?S(s,()=>mo(this)):mo(this))},17,"in")}handleHide=()=>this.hide();hide(){const{options:t,tooltip:s,element:n}=this,{animation:o,delay:i}=t;g.clear(n,"in"),s&&ie(this)&&g.set(n,()=>{const r=E(`hide.bs.${Jt(this.name)}`);w(n,r),r.defaultPrevented||(this.update(),v(s,p),bo(this),o?S(s,()=>vo(this)):vo(this))},i+17,"out")}update=()=>{Es(this)};toggle=()=>{const{tooltip:t}=this;t&&!ie(this)?this.show():this.hide()};enable(){const{enabled:t}=this;t||(this._toggleEventListeners(!0),this.enabled=!t)}disable(){const{tooltip:t,enabled:s}=this;s&&(t&&ie(this)&&this.hide(),this._toggleEventListeners(),this.enabled=!s)}toggleEnabled(){this.enabled?this.disable():this.enable()}handleTouch=({target:t})=>{const{tooltip:s,element:n}=this;s&&s.contains(t)||t===n||t&&n.contains(t)||this.hide()};_toggleEventListeners=t=>{const s=t?k:L,{element:n,options:o,btn:i}=this,{trigger:r}=o,a=!!(this.name!==kt&&o.dismissible);r.includes("manual")||(this.enabled=!!t,r.split(" ").forEach(f=>{f===Wo?(s(n,Ws,this.handleShow),s(n,me,this.handleShow),a||(s(n,Oe,this.handleHide),s(b(n),Ne,this.handleTouch,Gt))):f===D?s(n,f,a?this.handleShow:this.toggle):f===ke&&(s(n,Le,this.handleShow),a||s(n,Rs,this.handleHide),Uo()&&s(n,D,this.handleFocus)),a&&i&&s(i,D,this.handleHide)}))};dispose(){const{tooltip:t,options:s}=this,n={...this,name:this.name},o=()=>setTimeout(()=>Cr(n,()=>super.dispose()),17);s.animation&&ie(n)?(this.options.delay=0,this.hide(),S(t,o)):o()}}const Sr=`[${it}="${It}"],[data-tip="${It}"]`,Hr=rt({},Ts,{template:lo(It),content:"",dismissible:!1,btnClose:'<button class="btn-close position-absolute top-0 end-0 m-1" aria-label="Close"></button>'}),_r=e=>R(e,ws),Ar=e=>new $s(e);class $s extends Ae{static selector=Sr;static init=Ar;static getInstance=_r;static styleTip=Es;constructor(t,s){super(t,s)}get name(){return ws}get defaults(){return Hr}show=()=>{super.show();const{options:t,btn:s}=this;t.dismissible&&s&&setTimeout(()=>ct(s),17)}}const Pr="scrollspy",Eo="ScrollSpy",xr='[data-bs-spy="scroll"]',Dr="[href]",Ir={offset:10,target:void 0},kr=e=>R(e,Eo),Lr=e=>new Cs(e),To=E(`activate.bs.${Pr}`),Or=e=>{const{target:t,_itemsLength:s,_observables:n}=e,o=Ke("A",t),i=b(t);!o.length||s===n.size||(n.clear(),Array.from(o).forEach(r=>{const c=U(r,"href")?.slice(1),a=c?.length?i.getElementById(c):null;a&&!ot(r)&&e._observables.set(a,r)}),e._itemsLength=e._observables.size)},$o=e=>{Array.from(Ke("A",e)).forEach(t=>{h(t,T)&&v(t,T)})},yo=(e,t)=>{const{target:s,element:n}=e;$o(s),e._activeItem=t,d(t,T);let o=t;for(;o!==s;)if(o=o.parentElement,["nav","dropdown-menu","list-group"].some(i=>h(o,i))){const i=o.previousElementSibling;i&&!h(i,T)&&d(i,T)}To.relatedTarget=t,w(n,To)},ys=(e,t)=>{const{scrollTarget:s,element:n,options:o}=e;return(s!==n?Ht(t).top+s.scrollTop:t.offsetTop)-(o.offset||10)};class Cs extends J{static selector=xr;static init=Lr;static getInstance=kr;constructor(t,s){super(t,s);const{element:n,options:o}=this,i=_(o.target,b(n));i&&(this.target=i,this.scrollTarget=n.clientHeight<n.scrollHeight?n:at(n),this._observables=new Map,this.refresh(),this._observer=new ss(()=>{requestAnimationFrame(()=>this.refresh())},{root:this.scrollTarget}),this._toggleEventListeners(!0))}get name(){return Eo}get defaults(){return Ir}refresh=()=>{const{target:t,scrollTarget:s}=this;if(!t||t.offsetHeight===0)return;Or(this);const{_itemsLength:n,_observables:o,_activeItem:i}=this;if(!n)return;const r=o.entries().toArray(),{scrollTop:c,scrollHeight:a,clientHeight:l}=s;if(c>=a-l){const u=r[n-1]?.[1];i!==u&&yo(this,u);return}const f=r[0]?.[0]?ys(this,r[0][0]):null;if(f!==null&&c<f&&f>0){this._activeItem=null,$o(t);return}for(let u=0;u<n;u+=1){const[$,O]=r[u],F=ys(this,$),st=r[u+1]?.[0],m=st?ys(this,st):null;if(i!==O&&c>=F&&(m===null||c<m)){yo(this,O);break}}};_scrollTo=t=>{const s=B(t.target,Dr),n=s&&U(s,"href")?.slice(1),o=n&&di(n,this.target);o&&(this.scrollTarget.scrollTo({top:o.offsetTop,behavior:"smooth"}),t.preventDefault())};_toggleEventListeners=t=>{const{target:s,_observables:n,_observer:o,_scrollTo:i}=this;(t?k:L)(s,D,i),t?n?.forEach((c,a)=>o.observe(a)):o.disconnect()};dispose(){this._toggleEventListeners(),super.dispose()}}const re="tab",Co="Tab",Ss=`[${it}="${re}"]`,So=e=>R(e,Co),Nr=e=>new As(e),Hs=E(`show.bs.${re}`),Ho=E(`shown.bs.${re}`),_s=E(`hide.bs.${re}`),_o=E(`hidden.bs.${re}`),ce=new Map,Ao=e=>{const{tabContent:t,nav:s}=e;t&&h(t,Pt)&&(t.style.height="",v(t,Pt)),s&&g.clear(s)},Po=e=>{const{element:t,tabContent:s,content:n,nav:o}=e,{tab:i}=P(o)&&ce.get(o)||{tab:null};if(s&&n&&h(n,N)){const{currentHeight:r,nextHeight:c}=ce.get(t)||{currentHeight:0,nextHeight:0};r!==c?setTimeout(()=>{s.style.height=`${c}px`,St(s),S(s,()=>Ao(e))},50):Ao(e)}else o&&g.clear(o);Ho.relatedTarget=i,w(t,Ho)},xo=e=>{const{element:t,content:s,tabContent:n,nav:o}=e,{tab:i,content:r}=o&&ce.get(o)||{tab:null,content:null};let c=0;if(n&&s&&h(s,N)&&([r,s].forEach(a=>{a&&d(a,"overflow-hidden")}),c=r?r.scrollHeight:0),Hs.relatedTarget=i,_o.relatedTarget=t,w(t,Hs),!Hs.defaultPrevented){if(s&&d(s,T),r&&v(r,T),n&&s&&h(s,N)){const a=s.scrollHeight;ce.set(t,{currentHeight:c,nextHeight:a,tab:null,content:null}),d(n,Pt),n.style.height=`${c}px`,St(n),[r,s].forEach(l=>{l&&v(l,"overflow-hidden")})}s&&s&&h(s,N)?setTimeout(()=>{d(s,p),S(s,()=>{Po(e)})},1):(s&&d(s,p),Po(e)),i&&w(i,_o)}},Do=e=>{const{nav:t}=e;if(!P(t))return{tab:null,content:null};const s=lt(T,t);let n=null;s.length===1&&!xt.some(i=>h(s[0].parentElement,i))?[n]=s:s.length>1&&(n=s[s.length-1]);const o=P(n)?z(n):null;return{tab:n,content:o}},Io=e=>{if(!P(e))return null;const t=B(e,`.${xt.join(",.")}`);return t?_(`.${xt[0]}-toggle`,t):null},Mr=e=>{const t=B(e.target,Ss),s=t&&So(t);s&&(e.preventDefault(),s.show())};class As extends J{static selector=Ss;static init=Nr;static getInstance=So;constructor(t){super(t);const{element:s}=this,n=z(s);if(!n)return;const o=B(s,".nav"),i=B(n,".tab-content");this.nav=o,this.content=n,this.tabContent=i,this.dropdown=Io(s);const{tab:r}=Do(this);if(o&&!r){const c=_(Ss,o),a=c&&z(c);a&&(d(c,T),d(a,p),d(a,T),I(s,Ie,"true"))}this._toggleEventListeners(!0)}get name(){return Co}show(){const{element:t,content:s,nav:n,dropdown:o}=this;if(n&&g.get(n)||h(t,T))return;const{tab:i,content:r}=Do(this);if(n&&i&&ce.set(n,{tab:i,content:r,currentHeight:0,nextHeight:0}),_s.relatedTarget=t,!P(i)||(w(i,_s),_s.defaultPrevented))return;d(t,T),I(t,Ie,"true");const c=P(i)&&Io(i);if(c&&h(c,T)&&v(c,T),n){const a=()=>{i&&(v(i,T),I(i,Ie,"false")),o&&!h(o,T)&&d(o,T)};r&&(h(r,N)||s&&h(s,N))?g.set(n,a,1):a()}r&&(v(r,p),h(r,N)?S(r,()=>xo(this)):xo(this))}_toggleEventListeners=t=>{(t?k:L)(this.element,D,Mr)};dispose(){this._toggleEventListeners(),super.dispose()}}const G="toast",ko="Toast",Br=`.${G}`,Rr=`[${Ee}="${G}"]`,Wr=`[${it}="${G}"]`,jt="showing",Lo="hide",Fr={animation:!0,autohide:!0,delay:5e3},Ps=e=>R(e,ko),jr=e=>new xs(e),Oo=E(`show.bs.${G}`),zr=E(`shown.bs.${G}`),No=E(`hide.bs.${G}`),Kr=E(`hidden.bs.${G}`),Mo=e=>{const{element:t,options:s}=e;v(t,jt),g.clear(t,jt),w(t,zr),s.autohide&&g.set(t,()=>e.hide(),s.delay,G)},Bo=e=>{const{element:t}=e;v(t,jt),v(t,p),d(t,Lo),g.clear(t,G),w(t,Kr)},Vr=e=>{const{element:t,options:s}=e;d(t,jt),s.animation?(St(t),S(t,()=>Bo(e))):Bo(e)},Xr=e=>{const{element:t,options:s}=e;g.set(t,()=>{v(t,Lo),St(t),d(t,p),d(t,jt),s.animation?S(t,()=>Mo(e)):Mo(e)},17,jt)};function qr(e){const t=z(this),s=t&&Ps(t);ot(this)||s&&(this.tagName==="A"&&e.preventDefault(),s.relatedTarget=this,s.show())}const Ur=e=>{const t=e.target,s=Ps(t),{type:n,relatedTarget:o}=e;!s||t===o||t.contains(o)||([me,Le].includes(n)?g.clear(t,G):g.set(t,()=>s.hide(),s.options.delay,G))};class xs extends J{static selector=Br;static init=jr;static getInstance=Ps;constructor(t,s){super(t,s);const{element:n,options:o}=this;o.animation&&!h(n,N)?d(n,N):!o.animation&&h(n,N)&&v(n,N),this.dismiss=_(Rr,n),this.triggers=[...Z(Wr,b(n))].filter(i=>z(i)===n),this._toggleEventListeners(!0)}get name(){return ko}get defaults(){return Fr}get isShown(){return h(this.element,p)}show=()=>{const{element:t,isShown:s}=this;!t||s||(w(t,Oo),Oo.defaultPrevented||Xr(this))};hide=()=>{const{element:t,isShown:s}=this;!t||!s||(w(t,No),No.defaultPrevented||Vr(this))};_toggleEventListeners=t=>{const s=t?k:L,{element:n,triggers:o,dismiss:i,options:r,hide:c}=this;i&&s(i,D,c),r.autohide&&[Le,Rs,me,Oe].forEach(a=>s(n,a,Ur)),o.length&&o.forEach(a=>{s(a,D,qr)})};dispose(){const{element:t,isShown:s}=this;this._toggleEventListeners(),g.clear(t,G),s&&v(t,p),super.dispose()}}const Ds=new Map;[Ve,Xe,ts,es,ls,ms,bs,$s,Cs,As,xs,Ae].forEach(e=>Ds.set(e.prototype.name,e));const Yr=(e,t)=>{[...t].forEach(s=>e(s))},Zr=(e,t)=>{const s=Ct.getAllFor(e);s&&[...s].forEach(([n,o])=>{t.contains(n)&&o.dispose()})},Is=e=>{const t=e&&e.nodeName?e:document,s=[...Ke("*",t)];Ds.forEach(n=>{const{init:o,selector:i}=n;Yr(o,s.filter(r=>Gs(r,i)))})},Qr=e=>{const t=e&&e.nodeName?e:document;Ds.forEach(s=>{Zr(s.prototype.name,t)})};return document.body?Is():k(document,"DOMContentLoaded",()=>Is(),{once:!0}),M.Alert=Ve,M.Button=Xe,M.Carousel=ts,M.Collapse=es,M.Dropdown=ls,M.Modal=ms,M.Offcanvas=bs,M.Popover=$s,M.ScrollSpy=Cs,M.Tab=As,M.Toast=xs,M.Tooltip=Ae,M.initCallback=Is,M.removeDataAPI=Qr,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"}),M}({});
- //# sourceMappingURL=bootstrap-native.js.map
|