import{$ as Ot,$b as te,Aa as Xi,Ab as _e,Ac as ve,Ba as en,C as ke,Ca as le,Cb as U,D as zt,Da as Et,Db as qe,E as wt,Fa as X,Fc as oi,Ga as fe,Gb as Be,Hb as on,Hc as Rt,Ia as pe,Jb as sn,K as rt,Kb as rn,Lb as x,M as zi,Mb as k,Mc as dn,Nb as an,O as Yi,Oc as xt,Rb as He,Sb as ei,Tb as lt,Ub as me,Uc as Te,Vb as M,Wb as Tt,X as Qi,Xb as Ct,Y as $,Yd as si,_ as Dt,aa as Yt,ac as ln,ba as Ji,bc as Q,c as ji,ca as Z,cc as J,da as Qt,db as C,f as q,fa as qi,fc as ge,gb as ce,gc as Mt,hc as ti,ia as h,k as Ui,m as bt,ma as Qe,mb as Ee,na as Jt,nb as Zt,oa as j,ob as Je,pb as tn,pc as cn,q as Ye,qb as Xt,qc as Ze,s as Ki,sa as qt,sb as nn,sc as ii,tc as St,ua as Zi,uc as ni,va as at,wa as Ie,wb as ee,x as z,xa as Fe,z as Wi,zb as de}from"./chunk-6V7GSX3W.js";import{a as Wt,b as $i}from"./chunk-EQDQRRRY.js";function jn(t,e){let s=!e?.manualCleanup;s&&!e?.injector&&Zi(jn);let i=s?e?.injector?.get(Et)??h(Et):null,n=Un(e?.equal),o;e?.requireSync?o=Xt({kind:0},{equal:n}):o=Xt({kind:1,value:e?.initialValue},{equal:n});let a=t.subscribe({next:r=>o.set({kind:1,value:r}),error:r=>{if(e?.rejectErrors)throw r;o.set({kind:2,error:r})}});if(e?.requireSync&&o().kind===0)throw new Yt(601,!1);return i?.onDestroy(a.unsubscribe.bind(a)),dn(()=>{let r=o();switch(r.kind){case 1:return r.value;case 2:throw r.error;case 0:throw new Yt(601,!1)}},{equal:e?.equal})}function Un(t=Object.is){return(e,s)=>e.kind===1&&s.kind===1&&t(e.value,s.value)}var S="top",G="bottom",I="right",P="left",Pt="auto",Ce=[S,G,I,P],ye="start",Ge="end",un="clippingParents",At="viewport",Xe="popper",hn="reference",ri=Ce.reduce(function(t,e){return t.concat([e+"-"+ye,e+"-"+Ge])},[]),Nt=[].concat(Ce,[Pt]).reduce(function(t,e){return t.concat([e,e+"-"+ye,e+"-"+Ge])},[]),Kn="beforeRead",Wn="read",zn="afterRead",Yn="beforeMain",Qn="main",Jn="afterMain",qn="beforeWrite",Zn="write",Xn="afterWrite",pn=[Kn,Wn,zn,Yn,Qn,Jn,qn,Zn,Xn];function F(t){return t?(t.nodeName||"").toLowerCase():null}function D(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ie(t){var e=D(t).Element;return t instanceof e||t instanceof Element}function A(t){var e=D(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function et(t){if(typeof ShadowRoot>"u")return!1;var e=D(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function eo(t){var e=t.state;Object.keys(e.elements).forEach(function(s){var i=e.styles[s]||{},n=e.attributes[s]||{},o=e.elements[s];!A(o)||!F(o)||(Object.assign(o.style,i),Object.keys(n).forEach(function(a){var r=n[a];r===!1?o.removeAttribute(a):o.setAttribute(a,r===!0?"":r)}))})}function to(t){var e=t.state,s={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,s.popper),e.styles=s,e.elements.arrow&&Object.assign(e.elements.arrow.style,s.arrow),function(){Object.keys(e.elements).forEach(function(i){var n=e.elements[i],o=e.attributes[i]||{},a=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:s[i]),r=a.reduce(function(l,d){return l[d]="",l},{});!A(n)||!F(n)||(Object.assign(n.style,r),Object.keys(o).forEach(function(l){n.removeAttribute(l)}))})}}var fn={name:"applyStyles",enabled:!0,phase:"write",fn:eo,effect:to,requires:["computeStyles"]};function B(t){return t.split("-")[0]}var ue=Math.max,Le=Math.min,be=Math.round;function tt(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function ct(){return!/^((?!chrome|android).)*safari/i.test(tt())}function ne(t,e,s){e===void 0&&(e=!1),s===void 0&&(s=!1);var i=t.getBoundingClientRect(),n=1,o=1;e&&A(t)&&(n=t.offsetWidth>0&&be(i.width)/t.offsetWidth||1,o=t.offsetHeight>0&&be(i.height)/t.offsetHeight||1);var a=ie(t)?D(t):window,r=a.visualViewport,l=!ct()&&s,d=(i.left+(l&&r?r.offsetLeft:0))/n,c=(i.top+(l&&r?r.offsetTop:0))/o,f=i.width/n,p=i.height/o;return{width:f,height:p,top:c,right:d+f,bottom:c+p,left:d,x:d,y:c}}function Ve(t){var e=ne(t),s=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-s)<=1&&(s=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:s,height:i}}function dt(t,e){var s=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(s&&et(s)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function W(t){return D(t).getComputedStyle(t)}function ai(t){return["table","td","th"].indexOf(F(t))>=0}function L(t){return((ie(t)?t.ownerDocument:t.document)||window.document).documentElement}function we(t){return F(t)==="html"?t:t.assignedSlot||t.parentNode||(et(t)?t.host:null)||L(t)}function _n(t){return!A(t)||W(t).position==="fixed"?null:t.offsetParent}function io(t){var e=/firefox/i.test(tt()),s=/Trident/i.test(tt());if(s&&A(t)){var i=W(t);if(i.position==="fixed")return null}var n=we(t);for(et(n)&&(n=n.host);A(n)&&["html","body"].indexOf(F(n))<0;){var o=W(n);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return n;n=n.parentNode}return null}function he(t){for(var e=D(t),s=_n(t);s&&ai(s)&&W(s).position==="static";)s=_n(s);return s&&(F(s)==="html"||F(s)==="body"&&W(s).position==="static")?e:s||io(t)||e}function $e(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function je(t,e,s){return ue(t,Le(e,s))}function mn(t,e,s){var i=je(t,e,s);return i>s?s:i}function ut(){return{top:0,right:0,bottom:0,left:0}}function ht(t){return Object.assign({},ut(),t)}function pt(t,e){return e.reduce(function(s,i){return s[i]=t,s},{})}var no=function(e,s){return e=typeof e=="function"?e(Object.assign({},s.rects,{placement:s.placement})):e,ht(typeof e!="number"?e:pt(e,Ce))};function oo(t){var e,s=t.state,i=t.name,n=t.options,o=s.elements.arrow,a=s.modifiersData.popperOffsets,r=B(s.placement),l=$e(r),d=[P,I].indexOf(r)>=0,c=d?"height":"width";if(!(!o||!a)){var f=no(n.padding,s),p=Ve(o),u=l==="y"?S:P,m=l==="y"?G:I,v=s.rects.reference[c]+s.rects.reference[l]-a[l]-s.rects.popper[c],g=a[l]-s.rects.reference[l],w=he(o),E=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,T=v/2-g/2,_=f[u],y=E-p[c]-f[m],b=E/2-p[c]/2+T,O=je(_,b,y),H=l;s.modifiersData[i]=(e={},e[H]=O,e.centerOffset=O-b,e)}}function so(t){var e=t.state,s=t.options,i=s.element,n=i===void 0?"[data-popper-arrow]":i;n!=null&&(typeof n=="string"&&(n=e.elements.popper.querySelector(n),!n)||dt(e.elements.popper,n)&&(e.elements.arrow=n))}var li={name:"arrow",enabled:!0,phase:"main",fn:oo,effect:so,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function oe(t){return t.split("-")[1]}var ro={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ao(t,e){var s=t.x,i=t.y,n=e.devicePixelRatio||1;return{x:be(s*n)/n||0,y:be(i*n)/n||0}}function gn(t){var e,s=t.popper,i=t.popperRect,n=t.placement,o=t.variation,a=t.offsets,r=t.position,l=t.gpuAcceleration,d=t.adaptive,c=t.roundOffsets,f=t.isFixed,p=a.x,u=p===void 0?0:p,m=a.y,v=m===void 0?0:m,g=typeof c=="function"?c({x:u,y:v}):{x:u,y:v};u=g.x,v=g.y;var w=a.hasOwnProperty("x"),E=a.hasOwnProperty("y"),T=P,_=S,y=window;if(d){var b=he(s),O="clientHeight",H="clientWidth";if(b===D(s)&&(b=L(s),W(b).position!=="static"&&r==="absolute"&&(O="scrollHeight",H="scrollWidth")),b=b,n===S||(n===P||n===I)&&o===Ge){_=G;var N=f&&b===y&&y.visualViewport?y.visualViewport.height:b[O];v-=N-i.height,v*=l?1:-1}if(n===P||(n===S||n===G)&&o===Ge){T=I;var R=f&&b===y&&y.visualViewport?y.visualViewport.width:b[H];u-=R-i.width,u*=l?1:-1}}var V=Object.assign({position:r},d&&ro),re=c===!0?ao({x:u,y:v},D(s)):{x:u,y:v};if(u=re.x,v=re.y,l){var K;return Object.assign({},V,(K={},K[_]=E?"0":"",K[T]=w?"0":"",K.transform=(y.devicePixelRatio||1)<=1?"translate("+u+"px, "+v+"px)":"translate3d("+u+"px, "+v+"px, 0)",K))}return Object.assign({},V,(e={},e[_]=E?v+"px":"",e[T]=w?u+"px":"",e.transform="",e))}function lo(t){var e=t.state,s=t.options,i=s.gpuAcceleration,n=i===void 0?!0:i,o=s.adaptive,a=o===void 0?!0:o,r=s.roundOffsets,l=r===void 0?!0:r,d={placement:B(e.placement),variation:oe(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,gn(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,gn(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var vn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:lo,data:{}};var kt={passive:!0};function co(t){var e=t.state,s=t.instance,i=t.options,n=i.scroll,o=n===void 0?!0:n,a=i.resize,r=a===void 0?!0:a,l=D(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&d.forEach(function(c){c.addEventListener("scroll",s.update,kt)}),r&&l.addEventListener("resize",s.update,kt),function(){o&&d.forEach(function(c){c.removeEventListener("scroll",s.update,kt)}),r&&l.removeEventListener("resize",s.update,kt)}}var yn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:co,data:{}};var uo={left:"right",right:"left",bottom:"top",top:"bottom"};function it(t){return t.replace(/left|right|bottom|top/g,function(e){return uo[e]})}var ho={start:"end",end:"start"};function It(t){return t.replace(/start|end/g,function(e){return ho[e]})}function Ue(t){var e=D(t),s=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:s,scrollTop:i}}function Ke(t){return ne(L(t)).left+Ue(t).scrollLeft}function ci(t,e){var s=D(t),i=L(t),n=s.visualViewport,o=i.clientWidth,a=i.clientHeight,r=0,l=0;if(n){o=n.width,a=n.height;var d=ct();(d||!d&&e==="fixed")&&(r=n.offsetLeft,l=n.offsetTop)}return{width:o,height:a,x:r+Ke(t),y:l}}function di(t){var e,s=L(t),i=Ue(t),n=(e=t.ownerDocument)==null?void 0:e.body,o=ue(s.scrollWidth,s.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),a=ue(s.scrollHeight,s.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),r=-i.scrollLeft+Ke(t),l=-i.scrollTop;return W(n||s).direction==="rtl"&&(r+=ue(s.clientWidth,n?n.clientWidth:0)-o),{width:o,height:a,x:r,y:l}}function We(t){var e=W(t),s=e.overflow,i=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(s+n+i)}function Ft(t){return["html","body","#document"].indexOf(F(t))>=0?t.ownerDocument.body:A(t)&&We(t)?t:Ft(we(t))}function Me(t,e){var s;e===void 0&&(e=[]);var i=Ft(t),n=i===((s=t.ownerDocument)==null?void 0:s.body),o=D(i),a=n?[o].concat(o.visualViewport||[],We(i)?i:[]):i,r=e.concat(a);return n?r:r.concat(Me(we(a)))}function nt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function po(t,e){var s=ne(t,!1,e==="fixed");return s.top=s.top+t.clientTop,s.left=s.left+t.clientLeft,s.bottom=s.top+t.clientHeight,s.right=s.left+t.clientWidth,s.width=t.clientWidth,s.height=t.clientHeight,s.x=s.left,s.y=s.top,s}function bn(t,e,s){return e===At?nt(ci(t,s)):ie(e)?po(e,s):nt(di(L(t)))}function fo(t){var e=Me(we(t)),s=["absolute","fixed"].indexOf(W(t).position)>=0,i=s&&A(t)?he(t):t;return ie(i)?e.filter(function(n){return ie(n)&&dt(n,i)&&F(n)!=="body"}):[]}function ui(t,e,s,i){var n=e==="clippingParents"?fo(t):[].concat(e),o=[].concat(n,[s]),a=o[0],r=o.reduce(function(l,d){var c=bn(t,d,i);return l.top=ue(c.top,l.top),l.right=Le(c.right,l.right),l.bottom=Le(c.bottom,l.bottom),l.left=ue(c.left,l.left),l},bn(t,a,i));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function ft(t){var e=t.reference,s=t.element,i=t.placement,n=i?B(i):null,o=i?oe(i):null,a=e.x+e.width/2-s.width/2,r=e.y+e.height/2-s.height/2,l;switch(n){case S:l={x:a,y:e.y-s.height};break;case G:l={x:a,y:e.y+e.height};break;case I:l={x:e.x+e.width,y:r};break;case P:l={x:e.x-s.width,y:r};break;default:l={x:e.x,y:e.y}}var d=n?$e(n):null;if(d!=null){var c=d==="y"?"height":"width";switch(o){case ye:l[d]=l[d]-(e[c]/2-s[c]/2);break;case Ge:l[d]=l[d]+(e[c]/2-s[c]/2);break;default:}}return l}function Se(t,e){e===void 0&&(e={});var s=e,i=s.placement,n=i===void 0?t.placement:i,o=s.strategy,a=o===void 0?t.strategy:o,r=s.boundary,l=r===void 0?un:r,d=s.rootBoundary,c=d===void 0?At:d,f=s.elementContext,p=f===void 0?Xe:f,u=s.altBoundary,m=u===void 0?!1:u,v=s.padding,g=v===void 0?0:v,w=ht(typeof g!="number"?g:pt(g,Ce)),E=p===Xe?hn:Xe,T=t.rects.popper,_=t.elements[m?E:p],y=ui(ie(_)?_:_.contextElement||L(t.elements.popper),l,c,a),b=ne(t.elements.reference),O=ft({reference:b,element:T,strategy:"absolute",placement:n}),H=nt(Object.assign({},T,O)),N=p===Xe?H:b,R={top:y.top-N.top+w.top,bottom:N.bottom-y.bottom+w.bottom,left:y.left-N.left+w.left,right:N.right-y.right+w.right},V=t.modifiersData.offset;if(p===Xe&&V){var re=V[n];Object.keys(R).forEach(function(K){var Re=[I,G].indexOf(K)>=0?1:-1,xe=[S,G].indexOf(K)>=0?"y":"x";R[K]+=re[xe]*Re})}return R}function hi(t,e){e===void 0&&(e={});var s=e,i=s.placement,n=s.boundary,o=s.rootBoundary,a=s.padding,r=s.flipVariations,l=s.allowedAutoPlacements,d=l===void 0?Nt:l,c=oe(i),f=c?r?ri:ri.filter(function(m){return oe(m)===c}):Ce,p=f.filter(function(m){return d.indexOf(m)>=0});p.length===0&&(p=f);var u=p.reduce(function(m,v){return m[v]=Se(t,{placement:v,boundary:n,rootBoundary:o,padding:a})[B(v)],m},{});return Object.keys(u).sort(function(m,v){return u[m]-u[v]})}function _o(t){if(B(t)===Pt)return[];var e=it(t);return[It(t),e,It(e)]}function mo(t){var e=t.state,s=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var n=s.mainAxis,o=n===void 0?!0:n,a=s.altAxis,r=a===void 0?!0:a,l=s.fallbackPlacements,d=s.padding,c=s.boundary,f=s.rootBoundary,p=s.altBoundary,u=s.flipVariations,m=u===void 0?!0:u,v=s.allowedAutoPlacements,g=e.options.placement,w=B(g),E=w===g,T=l||(E||!m?[it(g)]:_o(g)),_=[g].concat(T).reduce(function(ze,Oe){return ze.concat(B(Oe)===Pt?hi(e,{placement:Oe,boundary:c,rootBoundary:f,padding:d,flipVariations:m,allowedAutoPlacements:v}):Oe)},[]),y=e.rects.reference,b=e.rects.popper,O=new Map,H=!0,N=_[0],R=0;R<_.length;R++){var V=_[R],re=B(V),K=oe(V)===ye,Re=[S,G].indexOf(re)>=0,xe=Re?"width":"height",Y=Se(e,{placement:V,boundary:c,rootBoundary:f,altBoundary:p,padding:d}),ae=Re?K?I:P:K?G:S;y[xe]>b[xe]&&(ae=it(ae));var _t=it(ae),Pe=[];if(o&&Pe.push(Y[re]<=0),r&&Pe.push(Y[ae]<=0,Y[_t]<=0),Pe.every(function(ze){return ze})){N=V,H=!1;break}O.set(V,Pe)}if(H)for(var mt=m?3:1,$t=function(Oe){var st=_.find(function(vt){var Ae=O.get(vt);if(Ae)return Ae.slice(0,Oe).every(function(jt){return jt})});if(st)return N=st,"break"},ot=mt;ot>0;ot--){var gt=$t(ot);if(gt==="break")break}e.placement!==N&&(e.modifiersData[i]._skip=!0,e.placement=N,e.reset=!0)}}var pi={name:"flip",enabled:!0,phase:"main",fn:mo,requiresIfExists:["offset"],data:{_skip:!1}};function go(t,e,s){var i=B(t),n=[P,S].indexOf(i)>=0?-1:1,o=typeof s=="function"?s(Object.assign({},e,{placement:t})):s,a=o[0],r=o[1];return a=a||0,r=(r||0)*n,[P,I].indexOf(i)>=0?{x:r,y:a}:{x:a,y:r}}function vo(t){var e=t.state,s=t.options,i=t.name,n=s.offset,o=n===void 0?[0,0]:n,a=Nt.reduce(function(c,f){return c[f]=go(f,e.rects,o),c},{}),r=a[e.placement],l=r.x,d=r.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=d),e.modifiersData[i]=a}var fi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:vo};function yo(t){var e=t.state,s=t.name;e.modifiersData[s]=ft({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var wn={name:"popperOffsets",enabled:!0,phase:"read",fn:yo,data:{}};function _i(t){return t==="x"?"y":"x"}function bo(t){var e=t.state,s=t.options,i=t.name,n=s.mainAxis,o=n===void 0?!0:n,a=s.altAxis,r=a===void 0?!1:a,l=s.boundary,d=s.rootBoundary,c=s.altBoundary,f=s.padding,p=s.tether,u=p===void 0?!0:p,m=s.tetherOffset,v=m===void 0?0:m,g=Se(e,{boundary:l,rootBoundary:d,padding:f,altBoundary:c}),w=B(e.placement),E=oe(e.placement),T=!E,_=$e(w),y=_i(_),b=e.modifiersData.popperOffsets,O=e.rects.reference,H=e.rects.popper,N=typeof v=="function"?v(Object.assign({},e.rects,{placement:e.placement})):v,R=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),V=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,re={x:0,y:0};if(b){if(o){var K,Re=_==="y"?S:P,xe=_==="y"?G:I,Y=_==="y"?"height":"width",ae=b[_],_t=ae+g[Re],Pe=ae-g[xe],mt=u?-H[Y]/2:0,$t=E===ye?O[Y]:H[Y],ot=E===ye?-H[Y]:-O[Y],gt=e.elements.arrow,ze=u&>?Ve(gt):{width:0,height:0},Oe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:ut(),st=Oe[Re],vt=Oe[xe],Ae=je(0,O[Y],ze[Y]),jt=T?O[Y]/2-mt-Ae-st-R.mainAxis:$t-Ae-st-R.mainAxis,Bn=T?-O[Y]/2+mt+Ae+vt+R.mainAxis:ot+Ae+vt+R.mainAxis,Ut=e.elements.arrow&&he(e.elements.arrow),Hn=Ut?_==="y"?Ut.clientTop||0:Ut.clientLeft||0:0,Ni=(K=V?.[_])!=null?K:0,Gn=ae+jt-Ni-Hn,Ln=ae+Bn-Ni,ki=je(u?Le(_t,Gn):_t,ae,u?ue(Pe,Ln):Pe);b[_]=ki,re[_]=ki-ae}if(r){var Ii,Vn=_==="x"?S:P,$n=_==="x"?G:I,Ne=b[y],yt=y==="y"?"height":"width",Fi=Ne+g[Vn],Bi=Ne-g[$n],Kt=[S,P].indexOf(w)!==-1,Hi=(Ii=V?.[y])!=null?Ii:0,Gi=Kt?Fi:Ne-O[yt]-H[yt]-Hi+R.altAxis,Li=Kt?Ne+O[yt]+H[yt]-Hi-R.altAxis:Bi,Vi=u&&Kt?mn(Gi,Ne,Li):je(u?Gi:Fi,Ne,u?Li:Bi);b[y]=Vi,re[y]=Vi-Ne}e.modifiersData[i]=re}}var mi={name:"preventOverflow",enabled:!0,phase:"main",fn:bo,requiresIfExists:["offset"]};function gi(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function vi(t){return t===D(t)||!A(t)?Ue(t):gi(t)}function wo(t){var e=t.getBoundingClientRect(),s=be(e.width)/t.offsetWidth||1,i=be(e.height)/t.offsetHeight||1;return s!==1||i!==1}function yi(t,e,s){s===void 0&&(s=!1);var i=A(e),n=A(e)&&wo(e),o=L(e),a=ne(t,n,s),r={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!s)&&((F(e)!=="body"||We(o))&&(r=vi(e)),A(e)?(l=ne(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=Ke(o))),{x:a.left+r.scrollLeft-l.x,y:a.top+r.scrollTop-l.y,width:a.width,height:a.height}}function Do(t){var e=new Map,s=new Set,i=[];t.forEach(function(o){e.set(o.name,o)});function n(o){s.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(r){if(!s.has(r)){var l=e.get(r);l&&n(l)}}),i.push(o)}return t.forEach(function(o){s.has(o.name)||n(o)}),i}function bi(t){var e=Do(t);return pn.reduce(function(s,i){return s.concat(e.filter(function(n){return n.phase===i}))},[])}function wi(t){var e;return function(){return e||(e=new Promise(function(s){Promise.resolve().then(function(){e=void 0,s(t())})})),e}}function Di(t){var e=t.reduce(function(s,i){var n=s[i.name];return s[i.name]=n?Object.assign({},n,i,{options:Object.assign({},n.options,i.options),data:Object.assign({},n.data,i.data)}):i,s},{});return Object.keys(e).map(function(s){return e[s]})}var Dn={placement:"bottom",modifiers:[],strategy:"absolute"};function On(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function En(t){t===void 0&&(t={});var e=t,s=e.defaultModifiers,i=s===void 0?[]:s,n=e.defaultOptions,o=n===void 0?Dn:n;return function(r,l,d){d===void 0&&(d=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Dn,o),modifiersData:{},elements:{reference:r,popper:l},attributes:{},styles:{}},f=[],p=!1,u={state:c,setOptions:function(w){var E=typeof w=="function"?w(c.options):w;v(),c.options=Object.assign({},o,c.options,E),c.scrollParents={reference:ie(r)?Me(r):r.contextElement?Me(r.contextElement):[],popper:Me(l)};var T=bi(Di([].concat(i,c.options.modifiers)));return c.orderedModifiers=T.filter(function(_){return _.enabled}),m(),u.update()},forceUpdate:function(){if(!p){var w=c.elements,E=w.reference,T=w.popper;if(On(E,T)){c.rects={reference:yi(E,he(T),c.options.strategy==="fixed"),popper:Ve(T)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(R){return c.modifiersData[R.name]=Object.assign({},R.data)});for(var _=0;_<c.orderedModifiers.length;_++){if(c.reset===!0){c.reset=!1,_=-1;continue}var y=c.orderedModifiers[_],b=y.fn,O=y.options,H=O===void 0?{}:O,N=y.name;typeof b=="function"&&(c=b({state:c,options:H,name:N,instance:u})||c)}}}},update:wi(function(){return new Promise(function(g){u.forceUpdate(),g(c)})}),destroy:function(){v(),p=!0}};if(!On(r,l))return u;u.setOptions(d).then(function(g){!p&&d.onFirstUpdate&&d.onFirstUpdate(g)});function m(){c.orderedModifiers.forEach(function(g){var w=g.name,E=g.options,T=E===void 0?{}:E,_=g.effect;if(typeof _=="function"){var y=_({state:c,name:w,instance:u,options:T}),b=function(){};f.push(y||b)}})}function v(){f.forEach(function(g){return g()}),f=[]}return u}}var Oo=[yn,wn,vn,fn],Oi=En({defaultModifiers:Oo});var Ri=["*"];var Eo=["dialog"];var To=(t,e,s)=>({$implicit:t,pages:e,disabled:s}),Co=t=>({disabled:!0,currentPage:t}),Mo=(t,e,s)=>({disabled:t,$implicit:e,currentPage:s}),xi=(t,e)=>({disabled:t,currentPage:e}),So=t=>({disabled:t});function Ro(t,e){t&1&&(x(0,"span",13),lt(1,7),k())}function xo(t,e){t&1&&(x(0,"span",13),lt(1,8),k())}function Po(t,e){t&1&&(x(0,"span",13),lt(1,9),k())}function Ao(t,e){t&1&&(x(0,"span",13),lt(1,10),k())}function No(t,e){t&1&&Mt(0,"...")}function ko(t,e){if(t&1&&Mt(0),t&2){let s=e.$implicit;ti(s)}}function Io(t,e){}function Fo(t,e){if(t&1&&(x(0,"a",16),ee(1,Io,0,0,"ng-template",12),k()),t&2){let s=M(2).$implicit,i=M(),n=ge(9);C(),_e("ngTemplateOutlet",(i.tplEllipsis==null?null:i.tplEllipsis.templateRef)||n)("ngTemplateOutletContext",ii(2,Co,s))}}function Bo(t,e){}function Ho(t,e){if(t&1){let s=He();x(0,"a",18),me("click",function(n){Ie(s);let o=M().$implicit;return M(2).selectPage(o),Fe(n.preventDefault())}),ee(1,Bo,0,0,"ng-template",12),k()}if(t&2){let s=M().$implicit,i=M(),n=i.$implicit,o=i.disabled,a=M(),r=ge(11);de("tabindex",o?"-1":null)("aria-disabled",o?"true":null),C(),_e("ngTemplateOutlet",(a.tplNumber==null?null:a.tplNumber.templateRef)||r)("ngTemplateOutletContext",ni(4,Mo,o,s,n))}}function Go(t,e){if(t&1&&(x(0,"li",15),ee(1,Fo,2,4,"a",16)(2,Ho,2,8,"a",17),k()),t&2){let s=e.$implicit,i=M(),n=i.$implicit,o=i.disabled,a=M();U("active",s===n)("disabled",a.isEllipsis(s)||o),de("aria-current",s===n?"page":null),C(),Be(a.isEllipsis(s)?1:2)}}function Lo(t,e){if(t&1&&sn(0,Go,3,6,"li",14,on),t&2){let s=e.pages;rn(s)}}function Vo(t,e){}function $o(t,e){if(t&1){let s=He();x(0,"li",15)(1,"a",19),me("click",function(n){return Ie(s),M().selectPage(1),Fe(n.preventDefault())}),ee(2,Vo,0,0,"ng-template",12),k()()}if(t&2){let s=M(),i=ge(1);U("disabled",s.previousDisabled()),C(),de("tabindex",s.previousDisabled()?"-1":null)("aria-disabled",s.previousDisabled()?"true":null),C(),_e("ngTemplateOutlet",(s.tplFirst==null?null:s.tplFirst.templateRef)||i)("ngTemplateOutletContext",St(6,xi,s.previousDisabled(),s.page))}}function jo(t,e){}function Uo(t,e){if(t&1){let s=He();x(0,"li",15)(1,"a",20),me("click",function(n){Ie(s);let o=M();return o.selectPage(o.page-1),Fe(n.preventDefault())}),ee(2,jo,0,0,"ng-template",12),k()()}if(t&2){let s=M(),i=ge(3);U("disabled",s.previousDisabled()),C(),de("tabindex",s.previousDisabled()?"-1":null)("aria-disabled",s.previousDisabled()?"true":null),C(),_e("ngTemplateOutlet",(s.tplPrevious==null?null:s.tplPrevious.templateRef)||i)("ngTemplateOutletContext",ii(6,So,s.previousDisabled()))}}function Ko(t,e){}function Wo(t,e){}function zo(t,e){if(t&1){let s=He();x(0,"li",15)(1,"a",21),me("click",function(n){Ie(s);let o=M();return o.selectPage(o.page+1),Fe(n.preventDefault())}),ee(2,Wo,0,0,"ng-template",12),k()()}if(t&2){let s=M(),i=ge(5);U("disabled",s.nextDisabled()),C(),de("tabindex",s.nextDisabled()?"-1":null)("aria-disabled",s.nextDisabled()?"true":null),C(),_e("ngTemplateOutlet",(s.tplNext==null?null:s.tplNext.templateRef)||i)("ngTemplateOutletContext",St(6,xi,s.nextDisabled(),s.page))}}function Yo(t,e){}function Qo(t,e){if(t&1){let s=He();x(0,"li",15)(1,"a",22),me("click",function(n){Ie(s);let o=M();return o.selectPage(o.pageCount),Fe(n.preventDefault())}),ee(2,Yo,0,0,"ng-template",12),k()()}if(t&2){let s=M(),i=ge(7);U("disabled",s.nextDisabled()),C(),de("tabindex",s.nextDisabled()?"-1":null)("aria-disabled",s.nextDisabled()?"true":null),C(),_e("ngTemplateOutlet",(s.tplLast==null?null:s.tplLast.templateRef)||i)("ngTemplateOutletContext",St(6,xi,s.nextDisabled(),s.page))}}function Jo(t,e){if(t&1&&(x(0,"strong",3),Mt(1),k()),t&2){let s=M();C(),ti(s.header)}}function qo(t,e){}function Zo(t,e){if(t&1){let s=He();x(0,"div",1),ee(1,qo,0,0,"ng-template",4),x(2,"button",5),me("click",function(){Ie(s);let n=M();return Fe(n.hide())}),k()()}if(t&2){let s=M(),i=ge(1);C(),_e("ngTemplateOutlet",s.contentHeaderTpl||i)}}var Rn={animation:!0,transitionTimerDelayMs:5},Lt=(()=>{let e=class e{constructor(){this.animation=Rn.animation}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Xo(t){let{transitionDelay:e,transitionDuration:s}=window.getComputedStyle(t),i=parseFloat(e),n=parseFloat(s);return(i+n)*1e3}function es(t){return parseInt(`${t}`,10)}function ts(t,e,s=0){return Math.max(Math.min(t,e),s)}function Pi(t){return typeof t=="string"}function Tn(t){return!isNaN(es(t))}function Ei(t){return t!=null}function is(t){return t&&t.then}function ns(t,e){return!e||typeof t.closest>"u"?null:t.closest(e)}function Vt(t){return(t||document.body).getBoundingClientRect()}function os(t){return e=>new ji(s=>{let i=a=>t.run(()=>s.next(a)),n=a=>t.run(()=>s.error(a)),o=()=>t.run(()=>s.complete());return e.subscribe({next:i,error:n,complete:o})})}function xn(t=document){let e=t?.activeElement;return e?e.shadowRoot?xn(e.shadowRoot):e:null}var ss=()=>{},{transitionTimerDelayMs:rs}=Rn,Bt=new Map,se=(t,e,s,i)=>{let n=i.context||{},o=Bt.get(e);if(o)switch(i.runningTransition){case"continue":return Ui;case"stop":t.run(()=>o.transition$.complete()),n=Object.assign(o.context,n),Bt.delete(e)}let a=s(e,i.animation,n)||ss;if(!i.animation||window.getComputedStyle(e).transitionProperty==="none")return t.run(()=>a()),bt(void 0).pipe(os(t));let r=new q,l=new q,d=r.pipe(Yi(!0));Bt.set(e,{transition$:r,complete:()=>{l.next(),l.complete()},context:n});let c=Xo(e);return t.runOutsideAngular(()=>{let f=z(e,"transitionend").pipe($(d),ke(({target:u})=>u===e)),p=Wi(c+rs).pipe($(d));zt(p,f,l).pipe($(d)).subscribe(()=>{Bt.delete(e),t.run(()=>{a(),r.next(),r.complete()})})}),r.asObservable()};function as(t,e){if(typeof navigator>"u")return"0px";let{classList:s}=t,i=s.contains("show");i||s.add("show"),t.style[e]="";let n=t.getBoundingClientRect()[e]+"px";return i||s.remove("show"),n}var ls=(t,e,s)=>{let{direction:i,maxSize:n,dimension:o}=s,{classList:a}=t;function r(){a.add("collapse"),i==="show"?a.add("show"):a.remove("show")}if(!e){r();return}return n||(n=as(t,o),s.maxSize=n,t.style[o]=i!=="show"?n:"0px",a.remove("collapse","collapsing","show"),Vt(t),a.add("collapsing")),t.style[o]=i==="show"?n:"0px",()=>{r(),a.remove("collapsing"),t.style[o]=""}},cs=(()=>{let e=class e{constructor(){this._ngbConfig=h(Lt),this.horizontal=!1}get animation(){return this._animation??this._ngbConfig.animation}set animation(i){this._animation=i}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Hd=(()=>{let e=class e{constructor(){this._config=h(cs),this._element=h(pe),this._zone=h(fe),this.animation=this._config.animation,this._afterInit=!1,this._isCollapsed=!1,this.ngbCollapseChange=new X,this.horizontal=this._config.horizontal,this.shown=new X,this.hidden=new X}set collapsed(i){this._isCollapsed!==i&&(this._isCollapsed=i,this._afterInit&&this._runTransitionWithEvents(i,this.animation))}ngOnInit(){this._runTransition(this._isCollapsed,!1),this._afterInit=!0}toggle(i=this._isCollapsed){this.collapsed=!i,this.ngbCollapseChange.next(this._isCollapsed)}_runTransition(i,n){return se(this._zone,this._element.nativeElement,ls,{animation:n,runningTransition:"stop",context:{direction:i?"hide":"show",dimension:this.horizontal?"width":"height"}})}_runTransitionWithEvents(i,n){this._runTransition(i,n).subscribe(()=>{i?this.hidden.emit():this.shown.emit()})}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=j({type:e,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(n,o){n&2&&U("collapse-horizontal",o.horizontal)},inputs:{animation:"animation",collapsed:[0,"ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"],standalone:!0});let t=e;return t})();var Ht=(t,e)=>e?e.some(s=>s.contains(t)):!1,Cn=(t,e)=>!e||ns(t,e)!=null,ds=(()=>{let t=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2,e=()=>/Android/.test(navigator.userAgent);return typeof navigator<"u"?!!navigator.userAgent&&(t()||e()):!1})(),us=t=>ds?()=>setTimeout(()=>t(),100):t;function Pn(t,e,s,i,n,o,a,r){s&&t.runOutsideAngular(us(()=>{let l=p=>{let u=p.target;return p.button===2||Ht(u,a)?!1:s==="inside"?Ht(u,o)&&Cn(u,r):s==="outside"?!Ht(u,o):Cn(u,r)||!Ht(u,o)},d=z(e,"keydown").pipe($(n),ke(p=>p.key==="Escape"),Dt(p=>p.preventDefault())),c=z(e,"mousedown").pipe(Ye(l),$(n)),f=z(e,"mouseup").pipe(Ot(c),ke(([p,u])=>u),zi(0),$(n));zt([d.pipe(Ye(p=>0)),f.pipe(Ye(p=>1))]).subscribe(p=>t.run(()=>i(p)))}))}var An=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Nn(t){let e=Array.from(t.querySelectorAll(An)).filter(s=>s.tabIndex!==-1);return[e[0],e[e.length-1]]}var hs=(t,e,s,i=!1)=>{t.runOutsideAngular(()=>{let n=z(e,"focusin").pipe($(s),Ye(o=>o.target));z(e,"keydown").pipe($(s),ke(o=>o.key==="Tab"),Ot(n)).subscribe(([o,a])=>{let[r,l]=Nn(e);(a===r||a===e)&&o.shiftKey&&(l.focus(),o.preventDefault()),a===l&&!o.shiftKey&&(r.focus(),o.preventDefault())}),i&&z(e,"click").pipe($(s),Ot(n),Ye(o=>o[1])).subscribe(o=>o.focus())})},ps=(()=>{let e=class e{constructor(){this._element=h(Te).documentElement}isRTL(){return(this._element.getAttribute("dir")||"").toLowerCase()==="rtl"}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),fs=/\s+/,_s=/ +/gi,ms={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]};function gs(t,e){let[s,i]=ms[t];return e&&i||s}var vs=/^left/,ys=/^right/,bs=/^start/,ws=/^end/;function Ds(t,e){let[s,i]=e.split("-"),n=s.replace(vs,"start").replace(ys,"end"),o=[n];if(i){let a=i;(s==="left"||s==="right")&&(a=a.replace(bs,"top").replace(ws,"bottom")),o.push(`${n}-${a}`)}return t&&(o=o.map(a=>`${t}-${a}`)),o.join(" ")}function Mn({placement:t,baseClass:e},s){let i=Array.isArray(t)?t:t.split(fs),n=["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"],o=i.findIndex(d=>d==="auto");o>=0&&n.forEach(function(d){i.find(c=>c.search("^"+d)!==-1)==null&&i.splice(o++,1,d)});let a=i.map(d=>gs(d,s.isRTL()));return{placement:a.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!e,phase:"write",fn({state:d}){let c=new RegExp(e+"(-[a-z]+)*","gi"),f=d.elements.popper,p=d.placement,u=f.className;u=u.replace(c,""),u+=` ${Ds(e,p)}`,u=u.trim().replace(_s," "),f.className=u}},pi,mi,li,{enabled:!0,name:"flip",options:{fallbackPlacements:a}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function Sn(t){return t}function kn(){let t=h(ps),e=null;return{createPopper(s){if(!e){let n=(s.updatePopperOptions||Sn)(Mn(s,t));e=Oi(s.hostElement,s.targetElement,n)}},update(){e&&e.update()},setOptions(s){if(e){let n=(s.updatePopperOptions||Sn)(Mn(s,t));e.setOptions(n)}},destroy(){e&&(e.destroy(),e=null)}}}function In(t){return e=>(e.modifiers.push(fi,{name:"offset",options:{offset:()=>t}}),e)}var Gd=new Date(1882,10,12),Ld=new Date(2174,10,25);var Vd=1e3*60*60*24;var Ai=1080,Os=24*Ai,Es=12*Ai+793,$d=29*Os+Es,jd=11*Ai+204;var Ts=(()=>{let e=class e{constructor(){this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=i=>i,this.container=null}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Cs=(()=>{let e=class e{constructor(){this._disabled=!1,this.nativeElement=h(pe).nativeElement,this.tabindex=0}set disabled(i){this._disabled=i===""||i===!0}get disabled(){return this._disabled}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=j({type:e,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:3,hostBindings:function(n,o){n&2&&(ei("tabIndex",o.disabled?-1:o.tabindex),U("disabled",o.disabled))},inputs:{tabindex:"tabindex",disabled:"disabled"},standalone:!0});let t=e;return t})();var Ms=(()=>{let e=class e{constructor(){this.dropdown=h(Fn),this.nativeElement=h(pe).nativeElement}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=j({type:e,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(n,o,a){if(n&1&&te(a,Cs,4),n&2){let r;Q(r=J())&&(o.menuItems=r)}},hostAttrs:[1,"dropdown-menu"],hostVars:2,hostBindings:function(n,o){n&1&&me("keydown.ArrowUp",function(r){return o.dropdown.onKeyDown(r)})("keydown.ArrowDown",function(r){return o.dropdown.onKeyDown(r)})("keydown.Home",function(r){return o.dropdown.onKeyDown(r)})("keydown.End",function(r){return o.dropdown.onKeyDown(r)})("keydown.Enter",function(r){return o.dropdown.onKeyDown(r)})("keydown.Space",function(r){return o.dropdown.onKeyDown(r)})("keydown.Tab",function(r){return o.dropdown.onKeyDown(r)})("keydown.Shift.Tab",function(r){return o.dropdown.onKeyDown(r)}),n&2&&U("show",o.dropdown.isOpen())},standalone:!0});let t=e;return t})(),Ti=(()=>{let e=class e{constructor(){this.dropdown=h(Fn),this.nativeElement=h(pe).nativeElement}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=j({type:e,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(n,o){n&2&&(de("aria-expanded",o.dropdown.isOpen()),U("show",o.dropdown.isOpen()))},standalone:!0});let t=e;return t})(),Ud=(()=>{let e=class e extends Ti{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=Xi(e)))(o||e)}})(),e.\u0275dir=j({type:e,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(n,o){n&1&&me("click",function(){return o.dropdown.toggle()})("keydown.ArrowUp",function(r){return o.dropdown.onKeyDown(r)})("keydown.ArrowDown",function(r){return o.dropdown.onKeyDown(r)})("keydown.Home",function(r){return o.dropdown.onKeyDown(r)})("keydown.End",function(r){return o.dropdown.onKeyDown(r)})("keydown.Tab",function(r){return o.dropdown.onKeyDown(r)})("keydown.Shift.Tab",function(r){return o.dropdown.onKeyDown(r)}),n&2&&(de("aria-expanded",o.dropdown.isOpen()),U("show",o.dropdown.isOpen()))},standalone:!0,features:[cn([{provide:Ti,useExisting:Ji(()=>e)}]),nn]});let t=e;return t})(),Fn=(()=>{let e=class e{constructor(){this._changeDetector=h(Rt),this._config=h(Ts),this._document=h(Te),this._injector=h(le),this._ngZone=h(fe),this._nativeElement=h(pe).nativeElement,this._destroyCloseHandlers$=new q,this._bodyContainer=null,this._positioning=kn(),this.autoClose=this._config.autoClose,this._open=!1,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.container=this._config.container,this.openChange=new X}ngOnInit(){this.display||(this.display=this._nativeElement.closest(".navbar")?"static":"dynamic")}ngAfterContentInit(){Je(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()},{phase:Ee.Write,injector:this._injector})}ngOnChanges(i){if(i.container&&this._open&&this._applyContainer(this.container),i.placement&&!i.placement.firstChange&&(this._positioning.setOptions({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement}),this._applyPlacementClasses()),i.dropdownClass){let{currentValue:n,previousValue:o}=i.dropdownClass;this._applyCustomDropdownClass(n,o)}i.autoClose&&this._open&&(this.autoClose=i.autoClose.currentValue,this._setCloseHandlers())}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&(this._anchor.nativeElement.focus(),this.display==="dynamic"&&this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,updatePopperOptions:i=>this.popperOptions(In([0,2])(i))}),this._applyPlacementClasses(),this._afterRenderRef=Zt(()=>{this._positionMenu()},{phase:Ee.Write,injector:this._injector})})))}_setCloseHandlers(){this._destroyCloseHandlers$.next(),Pn(this._ngZone,this._document,this.autoClose,i=>{this.close(),i===0&&this._anchor.nativeElement.focus()},this._destroyCloseHandlers$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._positioning.destroy(),this._afterRenderRef?.destroy(),this._destroyCloseHandlers$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this.close()}onKeyDown(i){let{key:n}=i,o=this._getMenuElements(),a=-1,r=null,l=this._isEventFromToggle(i);if(!l&&o.length&&o.forEach((d,c)=>{d.contains(i.target)&&(r=d),d===xn(this._document)&&(a=c)}),n===" "||n==="Enter"){r&&(this.autoClose===!0||this.autoClose==="inside")&&z(r,"click").pipe(rt(1)).subscribe(()=>this.close());return}if(n==="Tab"){if(i.target&&this.isOpen()&&this.autoClose)if(this._anchor.nativeElement===i.target){this.container==="body"&&!i.shiftKey?(this._menu.nativeElement.setAttribute("tabindex","0"),this._menu.nativeElement.focus(),this._menu.nativeElement.removeAttribute("tabindex")):i.shiftKey&&this.close();return}else if(this.container==="body"){let d=this._menu.nativeElement.querySelectorAll(An);i.shiftKey&&i.target===d[0]?(this._anchor.nativeElement.focus(),i.preventDefault()):!i.shiftKey&&i.target===d[d.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else z(i.target,"focusout").pipe(rt(1)).subscribe(({relatedTarget:d})=>{this._nativeElement.contains(d)||this.close()});return}if(l||r){if(this.open(),o.length){switch(n){case"ArrowDown":a=Math.min(a+1,o.length-1);break;case"ArrowUp":if(this._isDropup()&&a===-1){a=o.length-1;break}a=Math.max(a-1,0);break;case"Home":a=0;break;case"End":a=o.length-1;break}o[a].focus()}i.preventDefault()}}_isDropup(){return this._nativeElement.classList.contains("dropup")}_isEventFromToggle(i){return this._anchor.nativeElement.contains(i.target)}_getMenuElements(){return this._menu?this._menu.menuItems.filter(({disabled:i})=>!i).map(({nativeElement:i})=>i):[]}_positionMenu(){let i=this._menu;this.isOpen()&&i&&(this.display==="dynamic"?(this._positioning.update(),this._applyPlacementClasses()):this._applyPlacementClasses(this._getFirstPlacement(this.placement)))}_getFirstPlacement(i){return Array.isArray(i)?i[0]:i.split(" ")[0]}_resetContainer(){this._menu&&this._nativeElement.appendChild(this._menu.nativeElement),this._bodyContainer&&(this._document.body.removeChild(this._bodyContainer),this._bodyContainer=null)}_applyContainer(i=null){if(this._resetContainer(),i==="body"){let n=this._menu.nativeElement,o=this._bodyContainer=this._bodyContainer||this._document.createElement("div");o.style.position="absolute",n.style.position="static",o.style.zIndex="1055",o.appendChild(n),this._document.body.appendChild(o)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(i,n){let o=this.container==="body"?this._bodyContainer:this._nativeElement;o&&(n&&o.classList.remove(n),i&&o.classList.add(i))}_applyPlacementClasses(i){if(this._menu){i||(i=this._getFirstPlacement(this.placement)),this._nativeElement.classList.remove("dropup","dropdown"),this.display==="static"?this._menu.nativeElement.setAttribute("data-bs-popper","static"):this._menu.nativeElement.removeAttribute("data-bs-popper");let n=i.search("^top")!==-1?"dropup":"dropdown";this._nativeElement.classList.add(n),this._bodyContainer&&(this._bodyContainer.classList.remove("dropup","dropdown"),this._bodyContainer.classList.add(n))}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=j({type:e,selectors:[["","ngbDropdown",""]],contentQueries:function(n,o,a){if(n&1&&(te(a,Ms,5),te(a,Ti,5)),n&2){let r;Q(r=J())&&(o._menu=r.first),Q(r=J())&&(o._anchor=r.first)}},hostVars:2,hostBindings:function(n,o){n&2&&U("show",o.isOpen())},inputs:{autoClose:"autoClose",dropdownClass:"dropdownClass",_open:[0,"open","_open"],placement:"placement",popperOptions:"popperOptions",container:"container",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],standalone:!0,features:[at]});let t=e;return t})();var Ss=(()=>{let e=class e{constructor(){this._ngbConfig=h(Lt),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(i){this._animation=i}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),De=class{constructor(e,s,i){this.nodes=e,this.viewRef=s,this.componentRef=i}},Ci=class{constructor(e){this._componentType=e,this._windowRef=null,this._contentRef=null,this._document=h(Te),this._applicationRef=h(oi),this._injector=h(le),this._viewContainerRef=h(tn),this._ngZone=h(fe)}open(e,s,i=!1){this._windowRef||(this._contentRef=this._getContentRef(e,s),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));let{nativeElement:n}=this._windowRef.location,o=new q;Je(()=>{o.next(),o.complete()},{injector:this._injector,phase:Ee.MixedReadWrite});let a=o.pipe(Ki(()=>se(this._ngZone,n,({classList:r})=>r.add("show"),{animation:i,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:a}}close(e=!1){return this._windowRef?se(this._ngZone,this._windowRef.location.nativeElement,({classList:s})=>s.remove("show"),{animation:e,runningTransition:"stop"}).pipe(Dt(()=>{this._windowRef?.destroy(),this._contentRef?.viewRef?.destroy(),this._windowRef=null,this._contentRef=null})):bt(void 0)}_getContentRef(e,s){if(e)if(e instanceof ce){let i=e.createEmbeddedView(s);return this._applicationRef.attachView(i),new De([i.rootNodes],i)}else return new De([[this._document.createTextNode(`${e}`)]]);else return new De([])}},Rs=(()=>{let e=class e{constructor(){this._document=h(Te)}hide(){let i=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),n=this._document.body,o=n.style,{overflow:a,paddingRight:r}=o;if(i>0){let l=parseFloat(window.getComputedStyle(n).paddingRight);o.paddingRight=`${l+i}px`}return o.overflow="hidden",()=>{i>0&&(o.paddingRight=r),o.overflow=a}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),xs=(()=>{let e=class e{constructor(){this._nativeElement=h(pe).nativeElement,this._zone=h(fe),this._injector=h(le)}ngOnInit(){Je(()=>se(this._zone,this._nativeElement,(i,n)=>{n&&Vt(i),i.classList.add("show")},{animation:this.animation,runningTransition:"continue"}),{injector:this._injector,phase:Ee.MixedReadWrite})}hide(){return se(this._zone,this._nativeElement,({classList:i})=>i.remove("show"),{animation:this.animation,runningTransition:"stop"})}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Qe({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(n,o){n&2&&(qe("modal-backdrop"+(o.backdropClass?" "+o.backdropClass:"")),U("show",!o.animation)("fade",o.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[Ze],decls:0,vars:0,template:function(n,o){},encapsulation:2});let t=e;return t})(),Gt=class{update(e){}close(e){}dismiss(e){}},Ps=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],As=["animation","backdropClass"],Mi=class{_applyWindowOptions(e,s){Ps.forEach(i=>{Ei(s[i])&&(e[i]=s[i])})}_applyBackdropOptions(e,s){As.forEach(i=>{Ei(s[i])&&(e[i]=s[i])})}update(e){this._applyWindowOptions(this._windowCmptRef.instance,e),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,e)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe($(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe($(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(e,s,i,n){this._windowCmptRef=e,this._contentRef=s,this._backdropCmptRef=i,this._beforeDismiss=n,this._closed=new q,this._dismissed=new q,this._hidden=new q,e.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,a)=>{this._resolve=o,this._reject=a}),this.result.then(null,()=>{})}close(e){this._windowCmptRef&&(this._closed.next(e),this._resolve(e),this._removeModalElements())}_dismiss(e){this._dismissed.next(e),this._reject(e),this._removeModalElements()}dismiss(e){if(this._windowCmptRef)if(!this._beforeDismiss)this._dismiss(e);else{let s=this._beforeDismiss();is(s)?s.then(i=>{i!==!1&&this._dismiss(e)},()=>{}):s!==!1&&this._dismiss(e)}}_removeModalElements(){let e=this._windowCmptRef.instance.hide(),s=this._backdropCmptRef?this._backdropCmptRef.instance.hide():bt(void 0);e.subscribe(()=>{let{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef?.viewRef?.destroy(),this._windowCmptRef=null,this._contentRef=null}),s.subscribe(()=>{if(this._backdropCmptRef){let{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),wt(e,s).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}},Si=function(t){return t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",t}(Si||{}),Ns=(()=>{let e=class e{constructor(){this._document=h(Te),this._elRef=h(pe),this._zone=h(fe),this._injector=h(le),this._closed$=new q,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new X,this.shown=new q,this.hidden=new q}get fullscreenClass(){return this.fullscreen===!0?" modal-fullscreen":Pi(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(i){this.dismissEvent.emit(i)}ngOnInit(){this._elWithFocus=this._document.activeElement,Je(()=>this._show(),{injector:this._injector,phase:Ee.MixedReadWrite})}ngOnDestroy(){this._disableEventHandling()}hide(){let{nativeElement:i}=this._elRef,n={animation:this.animation,runningTransition:"stop"},o=se(this._zone,i,()=>i.classList.remove("show"),n),a=se(this._zone,this._dialogEl.nativeElement,()=>{},n),r=wt(o,a);return r.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),r}_show(){let i={animation:this.animation,runningTransition:"continue"},n=se(this._zone,this._elRef.nativeElement,(a,r)=>{r&&Vt(a),a.classList.add("show")},i),o=se(this._zone,this._dialogEl.nativeElement,()=>{},i);wt(n,o).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){let{nativeElement:i}=this._elRef;this._zone.runOutsideAngular(()=>{z(i,"keydown").pipe($(this._closed$),ke(o=>o.key==="Escape")).subscribe(o=>{this.keyboard?requestAnimationFrame(()=>{o.defaultPrevented||this._zone.run(()=>this.dismiss(Si.ESC))}):this.backdrop==="static"&&this._bumpBackdrop()});let n=!1;z(this._dialogEl.nativeElement,"mousedown").pipe($(this._closed$),Dt(()=>n=!1),Qi(()=>z(i,"mouseup").pipe($(this._closed$),rt(1))),ke(({target:o})=>i===o)).subscribe(()=>{n=!0}),z(i,"click").pipe($(this._closed$)).subscribe(({target:o})=>{i===o&&(this.backdrop==="static"?this._bumpBackdrop():this.backdrop===!0&&!n&&this._zone.run(()=>this.dismiss(Si.BACKDROP_CLICK))),n=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){let{nativeElement:i}=this._elRef;if(!i.contains(document.activeElement)){let n=i.querySelector("[ngbAutofocus]"),o=Nn(i)[0];(n||o||i).focus()}}_restoreFocus(){let i=this._document.body,n=this._elWithFocus,o;n&&n.focus&&i.contains(n)?o=n:o=i,this._zone.runOutsideAngular(()=>{setTimeout(()=>o.focus()),this._elWithFocus=null})}_bumpBackdrop(){this.backdrop==="static"&&se(this._zone,this._elRef.nativeElement,({classList:i})=>(i.add("modal-static"),()=>i.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Qe({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(n,o){if(n&1&&ln(Eo,7),n&2){let a;Q(a=J())&&(o._dialogEl=a.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(n,o){n&2&&(de("aria-modal",!0)("aria-labelledby",o.ariaLabelledBy)("aria-describedby",o.ariaDescribedBy),qe("modal d-block"+(o.windowClass?" "+o.windowClass:"")),U("fade",o.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[Ze],ngContentSelectors:Ri,decls:4,vars:2,consts:[["dialog",""],["role","document"],[1,"modal-content"]],template:function(n,o){n&1&&(Tt(),x(0,"div",1,0)(2,"div",2),Ct(3),k()()),n&2&&qe("modal-dialog"+(o.size?" modal-"+o.size:"")+(o.centered?" modal-dialog-centered":"")+o.fullscreenClass+(o.scrollable?" modal-dialog-scrollable":"")+(o.modalDialogClass?" "+o.modalDialogClass:""))},styles:[`ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden} `],encapsulation:2});let t=e;return t})(),ks=(()=>{let e=class e{constructor(){this._applicationRef=h(oi),this._injector=h(le),this._environmentInjector=h(qt),this._document=h(Te),this._scrollBar=h(Rs),this._activeWindowCmptHasChanged=new q,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new X;let i=h(fe);this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){let n=this._windowCmpts[this._windowCmpts.length-1];hs(i,n.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(n.location.nativeElement)}})}_restoreScrollBar(){let i=this._scrollBarRestoreFn;i&&(this._scrollBarRestoreFn=null,i())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(i,n,o){let a=o.container instanceof HTMLElement?o.container:Ei(o.container)?this._document.querySelector(o.container):this._document.body;if(!a)throw new Error(`The specified modal container "${o.container||"body"}" was not found in the DOM.`);this._hideScrollBar();let r=new Gt;i=o.injector||i;let l=i.get(qt,null)||this._environmentInjector,d=this._getContentRef(i,l,n,r,o),c=o.backdrop!==!1?this._attachBackdrop(a):void 0,f=this._attachWindowComponent(a,d.nodes),p=new Mi(f,d,c,o.beforeDismiss);return this._registerModalRef(p),this._registerWindowCmpt(f),p.hidden.pipe(rt(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),r.close=u=>{p.close(u)},r.dismiss=u=>{p.dismiss(u)},r.update=u=>{p.update(u)},p.update(o),this._modalRefs.length===1&&this._document.body.classList.add("modal-open"),c&&c.instance&&c.changeDetectorRef.detectChanges(),f.changeDetectorRef.detectChanges(),p}get activeInstances(){return this._activeInstances}dismissAll(i){this._modalRefs.forEach(n=>n.dismiss(i))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(i){let n=xt(xs,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(n.hostView),i.appendChild(n.location.nativeElement),n}_attachWindowComponent(i,n){let o=xt(Ns,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:n});return this._applicationRef.attachView(o.hostView),i.appendChild(o.location.nativeElement),o}_getContentRef(i,n,o,a,r){return o?o instanceof ce?this._createFromTemplateRef(o,a):Pi(o)?this._createFromString(o):this._createFromComponent(i,n,o,a,r):new De([])}_createFromTemplateRef(i,n){let o={$implicit:n,close(r){n.close(r)},dismiss(r){n.dismiss(r)}},a=i.createEmbeddedView(o);return this._applicationRef.attachView(a),new De([a.rootNodes],a)}_createFromString(i){let n=this._document.createTextNode(`${i}`);return new De([[n]])}_createFromComponent(i,n,o,a,r){let l=le.create({providers:[{provide:Gt,useValue:a}],parent:i}),d=xt(o,{environmentInjector:n,elementInjector:l}),c=d.location.nativeElement;return r.scrollable&&c.classList.add("component-host-scrollable"),this._applicationRef.attachView(d.hostView),new De([[c]],d.hostView,d)}_setAriaHidden(i){let n=i.parentElement;n&&i!==this._document.body&&(Array.from(n.children).forEach(o=>{o!==i&&o.nodeName!=="SCRIPT"&&(this._ariaHiddenValues.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}),this._setAriaHidden(n))}_revertAriaHidden(){this._ariaHiddenValues.forEach((i,n)=>{i?n.setAttribute("aria-hidden",i):n.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(i){let n=()=>{let o=this._modalRefs.indexOf(i);o>-1&&(this._modalRefs.splice(o,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(i),this._activeInstances.emit(this._modalRefs),i.result.then(n,n)}_registerWindowCmpt(i){this._windowCmpts.push(i),this._activeWindowCmptHasChanged.next(),i.onDestroy(()=>{let n=this._windowCmpts.indexOf(i);n>-1&&(this._windowCmpts.splice(n,1),this._activeWindowCmptHasChanged.next())})}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Kd=(()=>{let e=class e{constructor(){this._injector=h(le),this._modalStack=h(ks),this._config=h(Ss)}open(i,n={}){let o=Wt($i(Wt({},this._config),{animation:this._config.animation}),n);return this._modalStack.open(this._injector,i,o)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(i){this._modalStack.dismissAll(i)}hasOpenModals(){return this._modalStack.hasOpenModals()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Is=(()=>{let e=class e{constructor(){this.disabled=!1,this.boundaryLinks=!1,this.directionLinks=!0,this.ellipses=!0,this.maxSize=0,this.pageSize=10,this.rotate=!1}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Fs=(()=>{let e=class e{constructor(){this.templateRef=h(ce)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=j({type:e,selectors:[["ng-template","ngbPaginationEllipsis",""]],standalone:!0});let t=e;return t})(),Bs=(()=>{let e=class e{constructor(){this.templateRef=h(ce)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=j({type:e,selectors:[["ng-template","ngbPaginationFirst",""]],standalone:!0});let t=e;return t})(),Hs=(()=>{let e=class e{constructor(){this.templateRef=h(ce)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=j({type:e,selectors:[["ng-template","ngbPaginationLast",""]],standalone:!0});let t=e;return t})(),Gs=(()=>{let e=class e{constructor(){this.templateRef=h(ce)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=j({type:e,selectors:[["ng-template","ngbPaginationNext",""]],standalone:!0});let t=e;return t})(),Ls=(()=>{let e=class e{constructor(){this.templateRef=h(ce)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=j({type:e,selectors:[["ng-template","ngbPaginationNumber",""]],standalone:!0});let t=e;return t})(),Vs=(()=>{let e=class e{constructor(){this.templateRef=h(ce)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=j({type:e,selectors:[["ng-template","ngbPaginationPrevious",""]],standalone:!0});let t=e;return t})(),$s=(()=>{let e=class e{constructor(){this.templateRef=h(ce)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=j({type:e,selectors:[["ng-template","ngbPaginationPages",""]],standalone:!0});let t=e;return t})(),Wd=(()=>{let e=class e{constructor(){this._config=h(Is),this.pageCount=0,this.pages=[],this.disabled=this._config.disabled,this.boundaryLinks=this._config.boundaryLinks,this.directionLinks=this._config.directionLinks,this.ellipses=this._config.ellipses,this.rotate=this._config.rotate,this.maxSize=this._config.maxSize,this.page=1,this.pageSize=this._config.pageSize,this.pageChange=new X(!0),this.size=this._config.size}hasPrevious(){return this.page>1}hasNext(){return this.page<this.pageCount}nextDisabled(){return!this.hasNext()||this.disabled}previousDisabled(){return!this.hasPrevious()||this.disabled}selectPage(i){this._updatePages(i)}ngOnChanges(i){this._updatePages(this.page)}isEllipsis(i){return i===-1}_applyEllipses(i,n){this.ellipses&&(i>0&&(i>2?this.pages.unshift(-1):i===2&&this.pages.unshift(2),this.pages.unshift(1)),n<this.pageCount&&(n<this.pageCount-2?this.pages.push(-1):n===this.pageCount-2&&this.pages.push(this.pageCount-1),this.pages.push(this.pageCount)))}_applyRotation(){let i=0,n=this.pageCount,o=Math.floor(this.maxSize/2),a=this.maxSize%2===0?o-1:o;return this.page<=o?n=this.maxSize:this.pageCount-this.page<o?i=this.pageCount-this.maxSize:(i=this.page-o-1,n=this.page+a),[i,n]}_applyPagination(){let n=(Math.ceil(this.page/this.maxSize)-1)*this.maxSize,o=n+this.maxSize;return[n,o]}_setPageInRange(i){let n=this.page;this.page=ts(i,this.pageCount,1),this.page!==n&&Tn(this.collectionSize)&&this.pageChange.emit(this.page)}_updatePages(i){this.pageCount=Math.ceil(this.collectionSize/this.pageSize),Tn(this.pageCount)||(this.pageCount=0),this.pages.length=0;for(let n=1;n<=this.pageCount;n++)this.pages.push(n);if(this._setPageInRange(i),this.maxSize>0&&this.pageCount>this.maxSize){let n=0,o=this.pageCount;this.rotate?[n,o]=this._applyRotation():[n,o]=this._applyPagination(),this.pages=this.pages.slice(n,o),this._applyEllipses(n,o)}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Qe({type:e,selectors:[["ngb-pagination"]],contentQueries:function(n,o,a){if(n&1&&(te(a,Fs,5),te(a,Bs,5),te(a,Hs,5),te(a,Gs,5),te(a,Ls,5),te(a,Vs,5),te(a,$s,5)),n&2){let r;Q(r=J())&&(o.tplEllipsis=r.first),Q(r=J())&&(o.tplFirst=r.first),Q(r=J())&&(o.tplLast=r.first),Q(r=J())&&(o.tplNext=r.first),Q(r=J())&&(o.tplNumber=r.first),Q(r=J())&&(o.tplPrevious=r.first),Q(r=J())&&(o.tplPages=r.first)}},hostAttrs:["role","navigation"],inputs:{disabled:"disabled",boundaryLinks:"boundaryLinks",directionLinks:"directionLinks",ellipses:"ellipses",rotate:"rotate",collectionSize:"collectionSize",maxSize:"maxSize",page:"page",pageSize:"pageSize",size:"size"},outputs:{pageChange:"pageChange"},standalone:!0,features:[at,Ze],decls:20,vars:12,consts:()=>{let i;i=$localize`:@@ngb.pagination.first:««`;let n;n=$localize`:@@ngb.pagination.previous:«`;let o;o=$localize`:@@ngb.pagination.next:»`;let a;a=$localize`:@@ngb.pagination.last:»»`;let r;r=$localize`:@@ngb.pagination.first-aria:First`;let l;l=$localize`:@@ngb.pagination.previous-aria:Previous`;let d;d=$localize`:@@ngb.pagination.next-aria:Next`;let c;return c=$localize`:@@ngb.pagination.last-aria:Last`,[["first",""],["previous",""],["next",""],["last",""],["ellipsis",""],["defaultNumber",""],["defaultPages",""],i,n,o,a,[1,"page-item",3,"disabled"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true"],[1,"page-item",3,"active","disabled"],[1,"page-item"],["tabindex","-1","aria-disabled","true",1,"page-link"],["href","",1,"page-link"],["href","",1,"page-link",3,"click"],["aria-label",r,"href","",1,"page-link",3,"click"],["aria-label",l,"href","",1,"page-link",3,"click"],["aria-label",d,"href","",1,"page-link",3,"click"],["aria-label",c,"href","",1,"page-link",3,"click"]]},template:function(n,o){if(n&1&&(ee(0,Ro,2,0,"ng-template",null,0,ve)(2,xo,2,0,"ng-template",null,1,ve)(4,Po,2,0,"ng-template",null,2,ve)(6,Ao,2,0,"ng-template",null,3,ve)(8,No,1,0,"ng-template",null,4,ve)(10,ko,1,1,"ng-template",null,5,ve)(12,Lo,2,0,"ng-template",null,6,ve),x(14,"ul"),ee(15,$o,3,9,"li",11)(16,Uo,3,8,"li",11)(17,Ko,0,0,"ng-template",12)(18,zo,3,9,"li",11)(19,Qo,3,9,"li",11),k()),n&2){let a=ge(13);C(14),qe("pagination"+(o.size?" pagination-"+o.size:"")),C(),Be(o.boundaryLinks?15:-1),C(),Be(o.directionLinks?16:-1),C(),_e("ngTemplateOutlet",(o.tplPages==null?null:o.tplPages.templateRef)||a)("ngTemplateOutletContext",ni(8,To,o.page,o.pages,o.disabled)),C(),Be(o.directionLinks?18:-1),C(),Be(o.boundaryLinks?19:-1)}},dependencies:[si],encapsulation:2,changeDetection:0});let t=e;return t})();var zd=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Jt({type:e}),e.\u0275inj=Qt({});let t=e;return t})(),js={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]};function Us(t){let e=(t||"").trim();if(e.length===0)return[];let s=e.split(/\s+/).map(n=>n.split(":")).map(n=>js[n[0]]||n),i=s.filter(n=>n.includes("manual"));if(i.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(i.length===1&&s.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i.length?[]:s}function Ks(t,e,s,i,n,o=0,a=0){let r=Us(e);if(r.length===0)return()=>{};let l=new Set,d=[],c;function f(u,m){t.addEventListener(u,m),d.push(()=>t.removeEventListener(u,m))}function p(u,m){clearTimeout(c),m>0?c=setTimeout(u,m):u()}for(let[u,m]of r)m?(f(u,()=>{l.add(u),p(()=>l.size>0&&i(),o)}),f(m,()=>{l.delete(u),p(()=>l.size===0&&n(),a)})):f(u,()=>s()?p(n,a):p(i,o));return()=>d.forEach(u=>u())}var Ws=(()=>{let e=class e{constructor(){this._ngbConfig=h(Lt),this.autohide=!0,this.delay=5e3,this.ariaLive="polite"}get animation(){return this._animation??this._ngbConfig.animation}set animation(i){this._animation=i}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),zs=(t,e)=>{let{classList:s}=t;if(e)s.add("fade");else{s.add("show");return}return Vt(t),s.add("show","showing"),()=>{s.remove("showing")}},Ys=({classList:t})=>(t.add("showing"),()=>{t.remove("show","showing")}),Qs=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=j({type:e,selectors:[["","ngbToastHeader",""]],standalone:!0});let t=e;return t})(),Yd=(()=>{let e=class e{constructor(i){this.ariaLive=i,this._config=h(Ws),this._zone=h(fe),this._injector=h(le),this._element=h(pe),this.animation=this._config.animation,this.delay=this._config.delay,this.autohide=this._config.autohide,this.contentHeaderTpl=null,this.shown=new X,this.hidden=new X,this.ariaLive??=this._config.ariaLive}ngAfterContentInit(){Je(()=>{this._init(),this.show()},{phase:Ee.MixedReadWrite,injector:this._injector})}ngOnChanges(i){"autohide"in i&&(this._clearTimeout(),this._init())}hide(){this._clearTimeout();let i=se(this._zone,this._element.nativeElement,Ys,{animation:this.animation,runningTransition:"stop"});return i.subscribe(()=>{this.hidden.emit()}),i}show(){let i=se(this._zone,this._element.nativeElement,zs,{animation:this.animation,runningTransition:"continue"});return i.subscribe(()=>{this.shown.emit()}),i}_init(){this.autohide&&!this._timeoutID&&(this._timeoutID=setTimeout(()=>this.hide(),this.delay))}_clearTimeout(){this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null)}};e.\u0275fac=function(n){return new(n||e)(en("aria-live"))},e.\u0275cmp=Qe({type:e,selectors:[["ngb-toast"]],contentQueries:function(n,o,a){if(n&1&&te(a,Qs,7,ce),n&2){let r;Q(r=J())&&(o.contentHeaderTpl=r.first)}},hostAttrs:["role","alert","aria-atomic","true",1,"toast"],hostVars:3,hostBindings:function(n,o){n&2&&(de("aria-live",o.ariaLive),U("fade",o.animation))},inputs:{animation:"animation",delay:"delay",autohide:"autohide",header:"header"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbToast"],standalone:!0,features:[at,Ze],ngContentSelectors:Ri,decls:5,vars:1,consts:()=>{let i;return i=$localize`:@@ngb.toast.close-aria:Close`,[["headerTpl",""],[1,"toast-header"],[1,"toast-body"],[1,"me-auto"],[3,"ngTemplateOutlet"],["type","button","aria-label",i,1,"btn-close",3,"click"]]},template:function(n,o){n&1&&(Tt(),ee(0,Jo,2,1,"ng-template",null,0,ve)(2,Zo,3,1,"div",1),x(3,"div",2),Ct(4),k()),n&2&&(C(2),Be(o.contentHeaderTpl||o.header?2:-1))},dependencies:[si],styles:[`ngb-toast{display:block}ngb-toast .toast-header .close{margin-left:auto;margin-bottom:.25rem} `],encapsulation:2});let t=e;return t})(),Qd=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Jt({type:e}),e.\u0275inj=Qt({});let t=e;return t})(),Js=(()=>{let e=class e{constructor(){this._ngbConfig=h(Lt),this.autoClose=!0,this.placement="auto",this.popperOptions=i=>i,this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return this._animation??this._ngbConfig.animation}set animation(i){this._animation=i}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Z({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),qs=0,Zs=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Qe({type:e,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(n,o){n&2&&(ei("id",o.id),qe("tooltip"+(o.tooltipClass?" "+o.tooltipClass:"")),U("fade",o.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},standalone:!0,features:[Ze],ngContentSelectors:Ri,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(n,o){n&1&&(Tt(),an(0,"div",0),x(1,"div",1),Ct(2),k())},styles:[`ngb-tooltip-window{pointer-events:none;position:absolute}ngb-tooltip-window .tooltip-inner{pointer-events:auto}ngb-tooltip-window.bs-tooltip-top,ngb-tooltip-window.bs-tooltip-bottom{padding-left:0;padding-right:0}ngb-tooltip-window.bs-tooltip-start,ngb-tooltip-window.bs-tooltip-end{padding-top:0;padding-bottom:0} `],encapsulation:2,changeDetection:0});let t=e;return t})(),Jd=(()=>{let e=class e{constructor(){this._config=h(Js),this.animation=this._config.animation,this.autoClose=this._config.autoClose,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.triggers=this._config.triggers,this.container=this._config.container,this.disableTooltip=this._config.disableTooltip,this.tooltipClass=this._config.tooltipClass,this.openDelay=this._config.openDelay,this.closeDelay=this._config.closeDelay,this.shown=new X,this.hidden=new X,this._nativeElement=h(pe).nativeElement,this._ngZone=h(fe),this._document=h(Te),this._changeDetector=h(Rt),this._injector=h(le),this._ngbTooltipWindowId=`ngb-tooltip-${qs++}`,this._popupService=new Ci(Zs),this._windowRef=null,this._positioning=kn()}set ngbTooltip(i){this._ngbTooltip=i,!i&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(i){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){let{windowRef:n,transition$:o}=this._popupService.open(this._ngbTooltip,i??this.tooltipContext,this.animation);this._windowRef=n,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("tooltipClass",this.tooltipClass),this._windowRef.setInput("id",this._ngbTooltipWindowId),this._getPositionTargetElement().setAttribute("aria-describedby",this._ngbTooltipWindowId),this.container==="body"&&this._document.body.appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,baseClass:"bs-tooltip",updatePopperOptions:a=>this.popperOptions(In([0,6])(a))}),Promise.resolve().then(()=>{this._positioning.update()}),this._afterRenderRef=Zt(()=>{this._positioning.update()},{phase:Ee.MixedReadWrite,injector:this._injector})}),Pn(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement],[this._nativeElement]),o.subscribe(()=>this.shown.emit())}}close(i=this.animation){this._windowRef!=null&&(this._getPositionTargetElement().removeAttribute("aria-describedby"),this._popupService.close(i).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._afterRenderRef?.destroy(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return this._windowRef!=null}ngOnInit(){this._unregisterListenersFn=Ks(this._nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:i}){i&&this.isOpen()&&this._windowRef.setInput("tooltipClass",i.currentValue)}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return(Pi(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._nativeElement}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=j({type:e,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",tooltipContext:"tooltipContext",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],standalone:!0,features:[at]});let t=e;return t})();var qd=new qi("live announcer delay",{providedIn:"root",factory:()=>100});export{jn as a,Hd as b,Cs as c,Ms as d,Ud as e,Fn as f,Kd as g,Wd as h,zd as i,Yd as j,Qd as k,Jd as l};