vendor: 4,398 bytes, line 1
1import{$a as rn,A as Nt,Aa as Pe,Bb as un,Bc as pi,Cb as it,Db as Ve,Eb as He,F as oi,Fb as hn,Gb as fe,H as Xi,Hb as Ue,I as en,Ib as di,Ic as fi,Lc as mn,Ma as T,Pa as ci,Pb as ui,Q as tn,Qb as Te,R as H,Rb as pn,S as si,T as Ct,Ta as sn,W as Rt,Wb as hi,X as A,Y as I,Za as z,_ as nn,_a as pt,ab as xt,ba as p,bb as kt,c as Et,cb as K,dc as fn,eb as Ae,f as ee,fa as ye,fc as _n,ga as x,gb as Pt,h as Ji,ha as ri,hc as At,ib as te,jb as an,k as ii,kb as Fe,la as ai,lb as we,lc as Ft,mb as De,na as on,nb as C,o as Xe,oa as li,ob as R,pa as xe,pb as Be,qa as ke,qc as nt,ta as et,tb as ft,ua as he,ub as ln,v as J,va as It,vb as pe,w as qi,wb as N,wc as gn,x as Zi,xa as ae,xb as cn,y as ue,ya as tt,yb as dn,z as ni}from"./chunk-3JIBNPJF.js";import{a as Ze,b as ti}from"./chunk-TSRGIXR5.js";function _t(t){t||(on(_t),t=p(It));let n=new Et(e=>t.onDestroy(e.next.bind(e)));return e=>e.pipe(H(n))}var k="top",j="bottom",U="right",F="left",Bt="auto",Me=[k,j,U,F],_e="start",Ge="end",vn="clippingParents",Vt="viewport",ot="popper",bn="reference",_i=Me.reduce(function(t,n){return t.concat([n+"-"+_e,n+"-"+Ge])},[]),Ht=[].concat(Me,[Bt]).reduce(function(t,n){return t.concat([n,n+"-"+_e,n+"-"+Ge])},[]),go="beforeRead",mo="read",vo="afterRead",bo="beforeMain",yo="main",wo="afterMain",Do="beforeWrite",To="write",Mo="afterWrite",yn=[go,mo,vo,bo,yo,wo,Do,To,Mo];function G(t){return t?(t.nodeName||"").toLowerCase():null}function E(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function ie(t){var n=E(t).Element;return t instanceof n||t instanceof Element}function B(t){var n=E(t).HTMLElement;return t instanceof n||t instanceof HTMLElement}function st(t){if(typeof ShadowRoot>"u")return!1;var n=E(t).ShadowRoot;return t instanceof n||t instanceof ShadowRoot}function So(t){var n=t.state;Object.keys(n.elements).forEach(function(e){var i=n.styles[e]||{},o=n.attributes[e]||{},s=n.elements[e];!B(s)||!G(s)||(Object.assign(s.style,i),Object.keys(o).forEach(function(r){var a=o[r];a===!1?s.removeAttribute(r):s.setAttribute(r,a===!0?"":a)}))})}function Oo(t){var n=t.state,e={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,e.popper),n.styles=e,n.elements.arrow&&Object.assign(n.elements.arrow.style,e.arrow),function(){Object.keys(n.elements).forEach(function(i){var o=n.elements[i],s=n.attributes[i]||{},r=Object.keys(n.styles.hasOwnProperty(i)?n.styles[i]:e[i]),a=r.reduce(function(l,d){return l[d]="",l},{});!B(o)||!G(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(l){o.removeAttribute(l)}))})}}var wn={name:"applyStyles",enabled:!0,phase:"write",fn:So,effect:Oo,requires:["computeStyles"]};function $(t){return t.split("-")[0]}var le=Math.max,$e=Math.min,ge=Math.round;function rt(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function gt(){return!/^((?!chrome|android).)*safari/i.test(rt())}function ne(t,n,e){n===void 0&&(n=!1),e===void 0&&(e=!1);var i=t.getBoundingClientRect(),o=1,s=1;n&&B(t)&&(o=t.offsetWidth>0&&ge(i.width)/t.offsetWidth||1,s=t.offsetHeight>0&&ge(i.height)/t.offsetHeight||1);var r=ie(t)?E(t):window,a=r.visualViewport,l=!gt()&&e,d=(i.left+(l&&a?a.offsetLeft:0))/o,c=(i.top+(l&&a?a.offsetTop:0))/s,f=i.width/o,u=i.height/s;return{width:f,height:u,top:c,right:d+f,bottom:c+u,left:d,x:d,y:c}}function je(t){var n=ne(t),e=t.offsetWidth,i=t.offsetHeight;return Math.abs(n.width-e)<=1&&(e=n.width),Math.abs(n.height-i)<=1&&(i=n.height),{x:t.offsetLeft,y:t.offsetTop,width:e,height:i}}function mt(t,n){var e=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(e&&st(e)){var i=n;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Q(t){return E(t).getComputedStyle(t)}function gi(t){return["table","td","th"].indexOf(G(t))>=0}function L(t){return((ie(t)?t.ownerDocument:t.document)||window.document).documentElement}function me(t){return G(t)==="html"?t:t.assignedSlot||t.parentNode||(st(t)?t.host:null)||L(t)}function Dn(t){return!B(t)||Q(t).position==="fixed"?null:t.offsetParent}function Eo(t){var n=/firefox/i.test(rt()),e=/Trident/i.test(rt());if(e&&B(t)){var i=Q(t);if(i.position==="fixed")return null}var o=me(t);
vendor: 9,027 bytes, line 1
1for(st(o)&&(o=o.host);B(o)&&["html","body"].indexOf(G(o))<0;){var s=Q(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||n&&s.willChange==="filter"||n&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function ce(t){for(var n=E(t),e=Dn(t);e&&gi(e)&&Q(e).position==="static";)e=Dn(e);return e&&(G(e)==="html"||G(e)==="body"&&Q(e).position==="static")?n:e||Eo(t)||n}function Le(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function We(t,n,e){return le(t,$e(n,e))}function Tn(t,n,e){var i=We(t,n,e);return i>e?e:i}function vt(){return{top:0,right:0,bottom:0,left:0}}function bt(t){return Object.assign({},vt(),t)}function yt(t,n){return n.reduce(function(e,i){return e[i]=t,e},{})}var No=function(n,e){return n=typeof n=="function"?n(Object.assign({},e.rects,{placement:e.placement})):n,bt(typeof n!="number"?n:yt(n,Me))};function Co(t){var n,e=t.state,i=t.name,o=t.options,s=e.elements.arrow,r=e.modifiersData.popperOffsets,a=$(e.placement),l=Le(a),d=[F,U].indexOf(a)>=0,c=d?"height":"width";if(!(!s||!r)){var f=No(o.padding,e),u=je(s),h=l==="y"?k:F,w=l==="y"?j:U,m=e.rects.reference[c]+e.rects.reference[l]-r[l]-e.rects.popper[c],_=r[l]-e.rects.reference[l],b=ce(s),v=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,S=m/2-_/2,g=f[h],y=v-u[c]-f[w],D=v/2-u[c]/2+S,O=We(g,D,y),M=l;e.modifiersData[i]=(n={},n[M]=O,n.centerOffset=O-D,n)}}function Ro(t){var n=t.state,e=t.options,i=e.element,o=i===void 0?"[data-popper-arrow]":i;o!=null&&(typeof o=="string"&&(o=n.elements.popper.querySelector(o),!o)||mt(n.elements.popper,o)&&(n.elements.arrow=o))}var mi={name:"arrow",enabled:!0,phase:"main",fn:Co,effect:Ro,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function oe(t){return t.split("-")[1]}var Io={top:"auto",right:"auto",bottom:"auto",left:"auto"};function xo(t,n){var e=t.x,i=t.y,o=n.devicePixelRatio||1;return{x:ge(e*o)/o||0,y:ge(i*o)/o||0}}function Mn(t){var n,e=t.popper,i=t.popperRect,o=t.placement,s=t.variation,r=t.offsets,a=t.position,l=t.gpuAcceleration,d=t.adaptive,c=t.roundOffsets,f=t.isFixed,u=r.x,h=u===void 0?0:u,w=r.y,m=w===void 0?0:w,_=typeof c=="function"?c({x:h,y:m}):{x:h,y:m};h=_.x,m=_.y;var b=r.hasOwnProperty("x"),v=r.hasOwnProperty("y"),S=F,g=k,y=window;if(d){var D=ce(e),O="clientHeight",M="clientWidth";if(D===E(e)&&(D=L(e),Q(D).position!=="static"&&a==="absolute"&&(O="scrollHeight",M="scrollWidth")),D=D,o===k||(o===F||o===U)&&s===Ge){g=j;var V=f&&D===y&&y.visualViewport?y.visualViewport.height:D[O];m-=V-i.height,m*=l?1:-1}if(o===F||(o===k||o===j)&&s===Ge){S=U;var P=f&&D===y&&y.visualViewport?y.visualViewport.width:D[M];h-=P-i.width,h*=l?1:-1}}var W=Object.assign({position:a},d&&Io),se=c===!0?xo({x:h,y:m},E(e)):{x:h,y:m};if(h=se.x,m=se.y,l){var Y;return Object.assign({},W,(Y={},Y[g]=v?"0":"",Y[S]=b?"0":"",Y.transform=(y.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",Y))}return Object.assign({},W,(n={},n[g]=v?m+"px":"",n[S]=b?h+"px":"",n.transform="",n))}function ko(t){var n=t.state,e=t.options,i=e.gpuAcceleration,o=i===void 0?!0:i,s=e.adaptive,r=s===void 0?!0:s,a=e.roundOffsets,l=a===void 0?!0:a,d={placement:$(n.placement),variation:oe(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:o,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,Mn(Object.assign({},d,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:r,roundOffsets:l})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,Mn(Object.assign({},d,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}var Sn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ko,data:{}};var Ut={passive:!0};function Po(t){var n=t.state,e=t.instance,i=t.options,o=i.scroll,s=o===void 0?!0:o,r=i.resize,a=r===void 0?!0:r,l=E(n.elements.popper),d=[].concat(n.scrollParents.reference,n.scrollParents.popper);return s&&d.forEach(function(c){c.addEventListener("scroll",e.update,Ut)}),a&&l.addEventListener("resize",e.update,Ut),function(){s&&d.forEach(function(c){c.removeEventListener("scroll",e.update,Ut)}),a&&l.removeEventListener("resize",e.update,Ut)}}var On={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Po,data:{}};var Ao={left:"right",right:"left",bottom:"top",top:"bottom"};function at(t){return t.replace(/left|right|bottom|top/g,function(n){return Ao[n]})}var Fo={start:"end",end:"start"};function Gt(t){return t.replace(/start|end/g,function(n){return Fo[n]})}function Ye(t){var n=E(t),e=n.pageXOffset,i=n.pageYOffset;return{scrollLeft:e,scrollTop:i}}function ze(t){return ne(L(t)).left+Ye(t).scrollLeft}function vi(t,n){var e=E(t),i=L(t),o=e.visualViewport,s=i.clientWidth,r=i.clientHeight,a=0,l=0;if(o){s=o.width,r=o.height;var d=gt();(d||!d&&n==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:r,x:a+ze(t),y:l}}function bi(t){var n,e=L(t),i=Ye(t),o=(n=t.ownerDocument)==null?void 0:n.body,s=le(e.scrollWidth,e.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),r=le(e.scrollHeight,e.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-i.scrollLeft+ze(t),l=-i.scrollTop;return Q(o||e).direction==="rtl"&&(a+=le(e.clientWidth,o?o.clientWidth:0)-s),{width:s,height:r,x:a,y:l}}function Ke(t){var n=Q(t),e=n.overflow,i=n.overflowX,o=n.overflowY;return/auto|scroll|overlay|hidden/.test(e+o+i)}function $t(t){return["html","body","#document"].indexOf(G(t))>=0?t.ownerDocument.body:B(t)&&Ke(t)?t:$t(me(t))}function Se(t,n){var e;n===void 0&&(n=[]);var i=$t(t),o=i===((e=t.ownerDocument)==null?void 0:e.body),s=E(i),r=o?[s].concat(s.visualViewport||[],Ke(i)?i:[]):i,a=n.concat(r);return o?a:a.concat(Se(me(r)))}function lt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Bo(t,n){var e=ne(t,!1,n==="fixed");return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function En(t,n,e){return n===Vt?lt(vi(t,e)):ie(n)?Bo(n,e):lt(bi(L(t)))}function Vo(t){var n=Se(me(t)),e=["absolute","fixed"].indexOf(Q(t).position)>=0,i=e&&B(t)?ce(t):t;return ie(i)?n.filter(function(o){return ie(o)&&mt(o,i)&&G(o)!=="body"}):[]}function yi(t,n,e,i){var o=n==="clippingParents"?Vo(t):[].concat(n),s=[].concat(o,[e]),r=s[0],a=s.reduce(function(l,d){var c=En(t,d,i);return l.top=le(c.top,l.top),l.right=$e(c.right,l.right),l.bottom=$e(c.bottom,l.bottom),l.left=le(c.left,l.left),l},En(t,r,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function wt(t){var n=t.reference,e=t.element,i=t.placement,o=i?$(i):null,s=i?oe(i):null,r=n.x+n.width/2-e.width/2,a=n.y+n.height/2-e.height/2,l;switch(o){case k:l={x:r,y:n.y-e.height};break;case j:l={x:r,y:n.y+n.height};break;case U:l={x:n.x+n.width,y:a};break;case F:l={x:n.x-e.width,y:a};break;default:l={x:n.x,y:n.y}}var d=o?Le(o):null;if(d!=null){var c=d==="y"?"height":"width";switch(s){case _e:l[d]=l[d]-(n[c]/2-e[c]/2);break;case Ge:l[d]=l[d]+(n[c]/2-e[c]/2);break;default:}}return l}function Oe(t,n){n===void 0&&(n={});var e=n,i=e.placement,o=i===void 0?t.placement:i,s=e.strategy,r=s===void 0?t.strategy:s,a=e.boundary,l=a===void 0?vn:a,d=e.rootBoundary,c=d===void 0?Vt:d,f=e.elementContext,u=f===void 0?ot:f,h=e.altBoundary,w=h===void 0?!1:h,m=e.padding,_=m===void 0?0:m,b=bt(typeof _!="number"?_:yt(_,Me)),v=u===ot?bn:ot,S=t.rects.popper,g=t.elements[w?v:u],y=yi(ie(g)?g:g.contextElement||L(t.elements.popper),l,c,r),D=ne(t.elements.reference),O=wt({reference:D,element:S,strategy:"absolute",placement:o}),M=lt(Object.assign({},S,O)),V=u===ot?M:D,P={top:y.top-V.top+b.top,bottom:V.bottom-y.bottom+b.bottom,left:y.left-V.left+b.left,right:V.right-y.right+b.right},W=t.modifiersData.offset;if(u===ot&&W){var se=W[o];Object.keys(P).forEach(function(Y){var Ee=[U,j].indexOf(Y)>=0?1:-1,Ne=[k,j].indexOf(Y)>=0?"y":"x";P[Y]+=se[Ne]*Ee})}return P}function wi(t,n){n===void 0&&(n={});var e=n,i=e.placement,o=e.boundary,s=e.rootBoundary,r=e.padding,a=e.flipVariations,l=e.allowedAutoPlacements,d=l===void 0?Ht:l,c=oe(i),f=c?a?_i:_i.filter(function(w){return oe(w)===c}):Me,u=f.filter(function(w){return d.indexOf(w)>=0});u.length===0&&(u=f);var h=u.reduce(function(w,m){return w[m]=Oe(t,{placement:m,boundary:o,rootBoundary:s,padding:r})[$(m)],w},{});return Object.keys(h).sort(function(w,m){return h[w]-h[m]})}function Ho(t){if($(t)===Bt)return[];var n=at(t);return[Gt(t),n,Gt(n)]}function Uo(t){var n=t.state,e=t.options,i=t.name;if(!n.modifiersData[i]._skip){for(var o=e.mainAxis,s=o===void 0?!0:o,r=e.altAxis,a=r===void 0?!0:r,l=e.fallbackPlacements,d=e.padding,c=e.boundary,f=e.rootBoundary,u=e.altBoundary,h=e.flipVariations,w=h===void 0?!0:h,m=e.allowedAutoPlacements,_=n.options.placement,b=$(_),v=b===_,S=l||(v||!w?[at(_)]:H
vendor: 4,230 bytes, line 1
1o(_)),g=[_].concat(S).reduce(function(qe,be){return qe.concat($(be)===Bt?wi(n,{placement:be,boundary:c,rootBoundary:f,padding:d,flipVariations:w,allowedAutoPlacements:m}):be)},[]),y=n.rects.reference,D=n.rects.popper,O=new Map,M=!0,V=g[0],P=0;P<g.length;P++){var W=g[P],se=$(W),Y=oe(W)===_e,Ee=[k,j].indexOf(se)>=0,Ne=Ee?"width":"height",X=Oe(n,{placement:W,boundary:c,rootBoundary:f,altBoundary:u,padding:d}),re=Ee?Y?U:F:Y?j:k;y[Ne]>D[Ne]&&(re=at(re));var Dt=at(re),Ce=[];if(s&&Ce.push(X[se]<=0),a&&Ce.push(X[re]<=0,X[Dt]<=0),Ce.every(function(qe){return qe})){V=W,M=!1;break}O.set(W,Ce)}if(M)for(var Tt=w?3:1,qt=function(be){var ht=g.find(function(St){var Re=O.get(St);if(Re)return Re.slice(0,be).every(function(Zt){return Zt})});if(ht)return V=ht,"break"},ut=Tt;ut>0;ut--){var Mt=qt(ut);if(Mt==="break")break}n.placement!==V&&(n.modifiersData[i]._skip=!0,n.placement=V,n.reset=!0)}}var Di={name:"flip",enabled:!0,phase:"main",fn:Uo,requiresIfExists:["offset"],data:{_skip:!1}};function Go(t,n,e){var i=$(t),o=[F,k].indexOf(i)>=0?-1:1,s=typeof e=="function"?e(Object.assign({},n,{placement:t})):e,r=s[0],a=s[1];return r=r||0,a=(a||0)*o,[F,U].indexOf(i)>=0?{x:a,y:r}:{x:r,y:a}}function $o(t){var n=t.state,e=t.options,i=t.name,o=e.offset,s=o===void 0?[0,0]:o,r=Ht.reduce(function(c,f){return c[f]=Go(f,n.rects,s),c},{}),a=r[n.placement],l=a.x,d=a.y;n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=l,n.modifiersData.popperOffsets.y+=d),n.modifiersData[i]=r}var Ti={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$o};function jo(t){var n=t.state,e=t.name;n.modifiersData[e]=wt({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})}var Nn={name:"popperOffsets",enabled:!0,phase:"read",fn:jo,data:{}};function Mi(t){return t==="x"?"y":"x"}function Lo(t){var n=t.state,e=t.options,i=t.name,o=e.mainAxis,s=o===void 0?!0:o,r=e.altAxis,a=r===void 0?!1:r,l=e.boundary,d=e.rootBoundary,c=e.altBoundary,f=e.padding,u=e.tether,h=u===void 0?!0:u,w=e.tetherOffset,m=w===void 0?0:w,_=Oe(n,{boundary:l,rootBoundary:d,padding:f,altBoundary:c}),b=$(n.placement),v=oe(n.placement),S=!v,g=Le(b),y=Mi(g),D=n.modifiersData.popperOffsets,O=n.rects.reference,M=n.rects.popper,V=typeof m=="function"?m(Object.assign({},n.rects,{placement:n.placement})):m,P=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),W=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,se={x:0,y:0};if(D){if(s){var Y,Ee=g==="y"?k:F,Ne=g==="y"?j:U,X=g==="y"?"height":"width",re=D[g],Dt=re+_[Ee],Ce=re-_[Ne],Tt=h?-M[X]/2:0,qt=v===_e?O[X]:M[X],ut=v===_e?-M[X]:-O[X],Mt=n.elements.arrow,qe=h&&Mt?je(Mt):{width:0,height:0},be=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:vt(),ht=be[Ee],St=be[Ne],Re=We(0,O[X],qe[X]),Zt=S?O[X]/2-Tt-Re-ht-P.mainAxis:qt-Re-ht-P.mainAxis,co=S?-O[X]/2+Tt+Re+St+P.mainAxis:ut+Re+St+P.mainAxis,Xt=n.elements.arrow&&ce(n.elements.arrow),uo=Xt?g==="y"?Xt.clientTop||0:Xt.clientLeft||0:0,Gi=(Y=W?.[g])!=null?Y:0,ho=re+Zt-Gi-uo,po=re+co-Gi,$i=We(h?$e(Dt,ho):Dt,re,h?le(Ce,po):Ce);D[g]=$i,se[g]=$i-re}if(a){var ji,fo=g==="x"?k:F,_o=g==="x"?j:U,Ie=D[y],Ot=y==="y"?"height":"width",Li=Ie+_[fo],Wi=Ie-_[_o],ei=[k,F].indexOf(b)!==-1,Yi=(ji=W?.[y])!=null?ji:0,zi=ei?Li:Ie-O[Ot]-M[Ot]-Yi+P.altAxis,Ki=ei?Ie+O[Ot]+M[Ot]-Yi-P.altAxis:Wi,Qi=h&&ei?Tn(zi,Ie,Ki):We(h?zi:Li,Ie,h?Ki:Wi);D[y]=Qi,se[y]=Qi-Ie}n.modifiersData[i]=se}}var Si={name:"preventOverflow",enabled:!0,phase:"main",fn:Lo,requiresIfExists:["offset"]};function Oi(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Ei(t){return t===E(t)||!B(t)?Ye(t):Oi(t)}function Wo(t){var n=t.getBoundingClientRect(),e=ge(n.width)/t.offsetWidth||1,i=ge(n.height)/t.offsetHeight||1;return e!==1||i!==1}function Ni(t,n,e){e===void 0&&(e=!1);var i=B(n),o=B(n)&&Wo(n),s=L(n),r=ne(t,o,e),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!e)&&((G(n)!=="body"||Ke(s))&&(a=Ei(n)),B(n)?(l=ne(n,!0),l.x+=n.clientLeft,l.y+=n.clientTop):s&&(l.x=ze(s))),{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function Yo(t){var n=new Map,e=new Set,i=[];t.forEach(function(s){n.set(s.name,s)});function o(s){e.add(s.name);
1var r=[].concat(s.requires||[],s.requiresIfExists||[]);r.forEach(function(a){if(!e.has(a)){var l=n.get(a);l&&o(l)}}),i.push(s)}return t.forEach(function(s){e.has(s.name)||o(s)}),i}function Ci(t){var n=Yo(t);return yn.reduce(function(e,i){return e.concat(n.filter(function(o){return o.phase===i}))},[])}function Ri(t){var n;return function(){return n||(n=new Promise(function(e){Promise.resolve().then(function(){n=void 0,e(t())})})),n}}function Ii(t){var n=t.reduce(function(e,i){var o=e[i.name];return e[i.name]=o?Object.assign({},o,i,{options:Object.assign({},o.options,i.options),data:Object.assign({},o.data,i.data)}):i,e},{});return Object.keys(n).map(function(e){return n[e]})}var Cn={placement:"bottom",modifiers:[],strategy:"absolute"};function Rn(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return!n.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function In(t){t===void 0&&(t={});var n=t,e=n.defaultModifiers,i=e===void 0?[]:e,o=n.defaultOptions,s=o===void 0?Cn:o;return function(a,l,d){d===void 0&&(d=s);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Cn,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},f=[],u=!1,h={state:c,setOptions:function(b){var v=typeof b=="function"?b(c.options):b;m(),c.options=Object.assign({},s,c.options,v),c.scrollParents={reference:ie(a)?Se(a):a.contextElement?Se(a.contextElement):[],popper:Se(l)};var S=Ci(Ii([].concat(i,c.options.modifiers)));return c.orderedModifiers=S.filter(function(g){return g.enabled}),w(),h.update()},forceUpdate:function(){if(!u){var b=c.elements,v=b.reference,S=b.popper;if(Rn(v,S)){c.rects={reference:Ni(v,ce(S),c.options.strategy==="fixed"),popper:je(S)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(P){return c.modifiersData[P.name]=Object.assign({},P.data)});for(var g=0;g<c.orderedModifiers.length;g++){if(c.reset===!0){c.reset=!1,g=-1;continue}var y=c.orderedModifiers[g],D=y.fn,O=y.options,M=O===void 0?{}:O,V=y.name;typeof D=="function"&&(c=D({state:c,options:M,name:V,instance:h})||c)}}}},update:Ri(function(){return new Promise(function(_){h.forceUpdate(),_(c)})}),destroy:function(){m(),u=!0}};if(!Rn(a,l))return h;h.setOptions(d).then(function(_){!u&&d.onFirstUpdate&&d.onFirstUpdate(_)});function w(){c.orderedModifiers.forEach(function(_){var b=_.name,v=_.options,S=v===void 0?{}:v,g=_.effect;if(typeof g=="function"){var y=g({state:c,name:b,instance:h,options:S}),D=function(){};f.push(y||D)}})}function m(){f.forEach(function(_){return _()}),f=[]}return h}}var zo=[On,Nn,Sn,wn],xi=In({defaultModifiers:zo});var Ko=["*"];var Qo=["ngbDatepickerDayView",""],Jo=["month"],qo=["year"];function Zo(t,n){if(t&1&&(C(0,"option",3),fe(1),R()),t&2){let e=n.$implicit,i=N();K("value",e),kt("aria-label",i.i18n.getMonthFullName(e,i.date.year)),T(),Ue(i.i18n.getMonthShortName(e,i.date.year))}}function Xo(t,n){if(t&1&&(C(0,"option",3),fe(1),R()),t&2){let e=n.$implicit,i=N();K("value",e),T(),Ue(i.i18n.getYearNumerals(e))}}function es(t,n){if(t&1){let e=ft();C(0,"ngb-datepicker-navigation-select",6),pe("select",function(o){xe(e);let s=N();return ke(s.select.emit(o))}),R()}if(t&2){let e=N();K("date",e.date)("disabled",e.disabled)("months",e.selectBoxes.months)("years",e.selectBoxes.years)}}function ts(t,n){t&1&&Be(0,"div",7)}function is(t,n){t&1&&Be(0,"div",7)}function ns(t,n){if(t&1&&(z(0,ts,1,0,"div",7),C(1,"div",8),fe(2),R(),z(3,is,1,0,"div",7)),t&2){let e=n.$implicit,i=n.$index,o=N(2);te(i>0?0:-1),T(2),di(" ",o.i18n.getMonthLabel(e.firstDate)," "),T(),te(i!==o.months.length-1?3:-1)}}function os(t,n){if(t&1&&we(0,ns,4,3,null,null,Fe),t&2){let e=N();De(e.months)}}function ss(t,n){if(t&1&&(C(0,"div",1),fe(1),R()),t&2){let e=N(2);T(),Ue(e.i18n.getWeekLabel())}}function rs(t,n){if(t&1&&(C(0,"div",2),fe(1),R()),t&2){let e=n.$implicit;T(),Ue(e)}}function as(t,n){if(t&1&&(C(0,"div",0),z(1,ss,2,1,"div",1),we(2,rs,2,1,"div",2,an),R()),t&2){let e=N();T(),te(e.datepicker.showWeekNumbers?1:-1),T(),De(e.viewModel.weekdays)}}function ls(t,n){if(t&1&&(C(0,"div",4),fe(1),R()),t&2){let e=N(2).$implicit,i=N();
1T(),Ue(i.i18n.getWeekNumerals(e.number))}}function cs(t,n){}function ds(t,n){if(t&1&&z(0,cs,0,0,"ng-template",7),t&2){let e=N().$implicit,i=N(3);K("ngTemplateOutlet",i.datepicker.dayTemplate)("ngTemplateOutletContext",e.context)}}function us(t,n){if(t&1){let e=ft();C(0,"div",6),pe("click",function(o){let s=xe(e).$implicit;return N(3).doSelect(s),ke(o.preventDefault())}),z(1,ds,1,2,null,7),R()}if(t&2){let e=n.$implicit;Ae("disabled",e.context.disabled)("hidden",e.hidden)("ngb-dp-today",e.context.today),K("tabindex",e.tabindex),kt("aria-label",e.ariaLabel),T(),te(e.hidden?-1:1)}}function hs(t,n){if(t&1&&(C(0,"div",3),z(1,ls,2,1,"div",4),we(2,us,2,9,"div",5,Fe),R()),t&2){let e=N().$implicit,i=N();T(),te(i.datepicker.showWeekNumbers?1:-1),T(),De(e.days)}}function ps(t,n){if(t&1&&z(0,hs,4,1,"div",3),t&2){let e=n.$implicit;te(e.collapsed?-1:0)}}var fs=["defaultDayTemplate"],_s=["content"],gs=t=>({$implicit:t});function ms(t,n){if(t&1&&Be(0,"div",8),t&2){let e=n.date,i=n.currentMonth,o=n.selected,s=n.disabled,r=n.focused;K("date",e)("currentMonth",i)("selected",o)("disabled",s)("focused",r)}}function vs(t,n){if(t&1&&(C(0,"div",10),fe(1),R()),t&2){let e=N().$implicit,i=N(2);T(),di(" ",i.i18n.getMonthLabel(e.firstDate)," ")}}function bs(t,n){if(t&1&&(C(0,"div",9),z(1,vs,2,1,"div",10),Be(2,"ngb-datepicker-month",11),R()),t&2){let e=n.$implicit,i=N(2);T(),te(i.navigation==="none"||i.displayMonths>1&&i.navigation==="select"?1:-1),T(),K("month",e.firstDate)}}function ys(t,n){if(t&1&&we(0,bs,3,2,"div",9,Fe),t&2){let e=N();De(e.model.months)}}function ws(t,n){if(t&1){let e=ft();C(0,"ngb-datepicker-navigation",12),pe("navigate",function(o){xe(e);let s=N();return ke(s.onNavigateEvent(o))})("select",function(o){xe(e);let s=N();return ke(s.onNavigateDateSelect(o))}),R()}if(t&2){let e=N();K("date",e.model.firstDate)("months",e.model.months)("disabled",e.model.disabled)("showSelect",e.model.navigation==="select")("prevDisabled",e.model.prevDisabled)("nextDisabled",e.model.nextDisabled)("selectBoxes",e.model.selectBoxes)}}function Ds(t,n){}function Ts(t,n){}var Ms=["dialog"];var Vn={animation:!0,transitionTimerDelayMs:5},Ss=(()=>{class t{constructor(){this.animation=Vn.animation}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Os(t){let{transitionDelay:n,transitionDuration:e}=window.getComputedStyle(t),i=parseFloat(n),o=parseFloat(e);return(i+o)*1e3}function de(t){return parseInt(`${t}`,10)}function zt(t){return typeof t=="string"}function ve(t){return!isNaN(de(t))}function q(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function Pi(t){return t!=null}function Es(t){return t&&t.then}function xn(t){return ve(t)?`0${t}`.slice(-2):""}function Ns(t,n){return!n||typeof t.closest>"u"?null:t.closest(n)}function Hn(t){return(t||document.body).getBoundingClientRect()}function Cs(t){return n=>new Et(e=>{let i=r=>t.run(()=>e.next(r)),o=r=>t.run(()=>e.error(r)),s=()=>t.run(()=>e.complete());return n.subscribe({next:i,error:o,complete:s})})}var Rs=()=>{},{transitionTimerDelayMs:Is}=Vn,jt=new Map,Qe=(t,n,e,i)=>{let o=i.context||{},s=jt.get(n);if(s)switch(i.runningTransition){case"continue":return Ji;case"stop":t.run(()=>s.transition$.complete()),o=Object.assign(s.context,o),jt.delete(n)}let r=e(n,i.animation,o)||Rs;if(!i.animation||window.getComputedStyle(n).transitionProperty==="none")return t.run(()=>r()),ii(void 0).pipe(Cs(t));let a=new ee,l=new ee,d=a.pipe(en(!0));jt.set(n,{transition$:a,complete:()=>{l.next(),l.complete()},context:o});let c=Os(n);return t.runOutsideAngular(()=>{let f=J(n,"transitionend").pipe(H(d),ue(({target:h})=>h===n)),u=qi(c+Is).pipe(H(d));ni(u,f,l).pipe(H(d)).subscribe(()=>{jt.delete(n),t.run(()=>{r(),a.next(),a.complete()})})}),a.asObservable()};var Un=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=x({type:t})}static{this.\u0275inj=I({})}}return t})();var Gn=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=x({type:t})}static{this.\u0275inj=I({})}}return t})();var $n=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=x({type:t})}static{this.\u0275inj=I({})}}return t})(),jn=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=x({type:t})}static{this.\u0275inj=I({})}}return t})(),Z=class t{static from(n){return n instanceof t?n:n?new t(n.year,n.month,n.day):null}constructor(n,e,i){this.year=q(n)?n:null,this.month=q(e)?e:null,this.day=q(i)?i:null}equals(n){return n!=null&&this.year===n.year&&this.month===n.month&&this.day===n.day}before(n){return n?this.year===n.year?this.month===n.month?this.day===n.day?!1:this.day<n.day:this.month<n.month:this.year<n.year:!1}after(n){return n?this.year===n.year?this.month===n.month?this.day===n.day?!1:this.day>n.day:this.month>n.month:this.year>n.year:!1}};function kn(t){return new Z(t.getFullYear(),t.getMonth()+1,t.getDate())}function Lt(t){let n=new Date(t.year,t.month-1,t.day,12);return isNaN(n.getTime())||n.setFullYear(t.year),n}function xs(){return new ks}var Jt=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=A({token:t,factory:()=>xs(),providedIn:"root"})}}return t})(),ks=(()=>{class t extends Jt{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(e,i="d",o=1){let s=Lt(e),r=!0,a=s.getMonth();switch(i){case"y":s.setFullYear(s.getFullYear()+o);break;case"m":a+=o,s.setMonth(a),a=a%12,a<0&&(a=a+12);break;case"d":s.setDate(s.getDate()+o),r=!1;break;default:return e}return r&&s.getMonth()!==a&&s.setDate(0),kn(s)}getPrev(e,i="d",o=1){return this.getNext(e,i,-o)}getWeekday(e){let o=Lt(e).getDay();return o===0?7:o}
1getWeekNumber(e,i){i===7&&(i=0);let o=(11-i)%7,s=e[o],r=Lt(s);r.setDate(r.getDate()+4-(r.getDay()||7));let a=r.getTime();return r.setMonth(0),r.setDate(1),Math.floor(Math.round((a-r.getTime())/864e5)/7)+1}getToday(){return kn(new Date)}isValid(e){if(!e||!q(e.year)||!q(e.month)||!q(e.day)||e.year===0)return!1;let i=Lt(e);return!isNaN(i.getTime())&&i.getFullYear()===e.year&&i.getMonth()+1===e.month&&i.getDate()===e.day}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=et(t)))(o||t)}})()}static{this.\u0275prov=A({token:t,factory:t.\u0275fac})}}return t})();function ct(t,n){return!Ps(t,n)}function Ln(t,n){return!t&&!n?!1:!t||!n?!0:t.year!==n.year||t.month!==n.month}function Ps(t,n){return!t&&!n||!!t&&!!n&&t.equals(n)}function As(t,n){if(n&&t&&n.before(t))throw new Error(`'maxDate' ${n} should be greater than 'minDate' ${t}`)}function Wt(t,n,e){return t&&n&&t.before(n)?n:t&&e&&t.after(e)?e:t||null}function ki(t,n){let{minDate:e,maxDate:i,disabled:o,markDisabled:s}=n;return!(t==null||o||s&&s(t,{year:t.year,month:t.month})||e&&t.before(e)||i&&t.after(i))}function Fs(t,n,e,i){if(!n)return[];let o=t.getMonths(n.year);if(e&&n.year===e.year){let s=o.findIndex(r=>r===e.month);o=o.slice(s)}if(i&&n.year===i.year){let s=o.findIndex(r=>r===i.month);o=o.slice(0,s+1)}return o}function Bs(t,n,e){if(!t)return[];let i=n?Math.max(n.year,t.year-500):t.year-10,s=(e?Math.min(e.year,t.year+500):t.year+10)-i+1,r=Array(s);for(let a=0;a<s;a++)r[a]=i+a;return r}function Vs(t,n,e){let i=Object.assign(t.getNext(n,"m"),{day:1});return e!=null&&i.after(e)}function Hs(t,n,e){let i=Object.assign(t.getPrev(n,"m"),{day:1});return e!=null&&(i.year===e.year&&i.month<e.month||i.year<e.year&&e.month===1)}function Us(t,n,e,i,o){let{displayMonths:s,months:r}=e,a=r.splice(0,r.length);return Array.from({length:s},(d,c)=>{let f=Object.assign(t.getNext(n,"m",c),{day:1});if(r[c]=null,!o){let u=a.findIndex(h=>h.firstDate.equals(f));u!==-1&&(r[c]=a.splice(u,1)[0])}return f}).forEach((d,c)=>{r[c]===null&&(r[c]=Gs(t,d,e,i,a.shift()||{}))}),r}function Gs(t,n,e,i,o={}){let{dayTemplateData:s,minDate:r,maxDate:a,firstDayOfWeek:l,markDisabled:d,outsideDays:c,weekdayWidth:f,weekdaysVisible:u}=e,h=t.getToday();o.firstDate=null,o.lastDate=null,o.number=n.month,o.year=n.year,o.weeks=o.weeks||[],o.weekdays=o.weekdays||[],n=$s(t,n,l),u||(o.weekdays.length=0);for(let w=0;w<t.getWeeksPerMonth();w++){let m=o.weeks[w];m||(m=o.weeks[w]={number:0,days:[],collapsed:!0});let _=m.days;for(let b=0;b<t.getDaysPerWeek();b++){w===0&&u&&(o.weekdays[b]=i.getWeekdayLabel(t.getWeekday(n),f));let v=new Z(n.year,n.month,n.day),S=t.getNext(v),g=i.getDayAriaLabel(v),y=!!(r&&v.before(r)||a&&v.after(a));!y&&d&&(y=d(v,{month:o.number,year:o.year}));let D=v.equals(h),O=s?s(v,{month:o.number,year:o.year}):void 0;o.firstDate===null&&v.month===o.number&&(o.firstDate=v),v.month===o.number&&S.month!==o.number&&(o.lastDate=v);let M=_[b];M||(M=_[b]={}),M.date=v,M.context=Object.assign(M.context||{},{$implicit:v,date:v,data:O,currentMonth:o.number,currentYear:o.year,disabled:y,focused:!1,selected:!1,today:D}),M.tabindex=-1,M.ariaLabel=g,M.hidden=!1,n=S}m.number=t.getWeekNumber(_.map(b=>b.date),l),m.collapsed=c==="collapsed"&&_[0].date.month!==o.number&&_[_.length-1].date.month!==o.number}return o}function $s(t,n,e){let i=t.getDaysPerWeek(),o=new Z(n.year,n.month,1),s=t.getWeekday(o)%i;return t.getPrev(o,"d",(i+s-e)%i)}var Je=(()=>{class t{getMonthLabel(e){return`${this.getMonthFullName(e.month,e.year)} ${this.getYearNumerals(e.year)}`}getDayNumerals(e){return`${e.day}`}getWeekNumerals(e){return`${e}`}getYearNumerals(e){return`${e}`}getWeekLabel(){return""}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=A({token:t,factory:()=>new js,providedIn:"root"})}}return t})(),js=(()=>{class t extends Je{constructor(){super(...arguments),this._locale=p(_n),this._monthsShort=[...Array(12).keys()].map(e=>Intl.DateTimeFormat(this._locale,{month:"short",timeZone:"UTC"}).format(Date.UTC(2e3,e))),this._monthsFull=[...Array(12).keys()].map(e=>Intl.DateTimeFormat(this._locale,{month:"long",timeZone:"UTC"}).format(Date.UTC(2e3,e)))}getWeekdayLabel(e,i="narrow"){return[1,2,3,4,5,6,7].map(s=>Intl.DateTimeFormat(this._locale,{weekday:i,timeZone:"UTC"}).format(Date.UTC(2e3,4,s)))[e-1]||""}getMonthShortName(e){return this._monthsShort[e-1]||""}getMonthFullName(e){return this._monthsFull[e-1]||""}getDayAriaLabel(e){let i=new Date(e.year,e.month-1,e.day);return gn(i,"fullDate",this._locale)}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=et(t)))(o||t)}})()}static{this.\u0275prov=A({token:t,factory:t.\u0275fac})}}return t})(),Ai=(()=>{class t{constructor(){this._VALIDATORS={dayTemplateData:e=>{if(this._state.dayTemplateData!==e)return{dayTemplateData:e}},displayMonths:e=>{if(e=de(e),q(e)&&e>0&&this._state.displayMonths!==e)return{displayMonths:e}},disabled:e=>{if(this._state.disabled!==e)return{disabled:e}},firstDayOfWeek:e=>{if(e=de(e),q(e)&&e>=0&&this._state.firstDayOfWeek!==e)return{firstDayOfWeek:e}},focusVisible:e=>{if(this._state.focusVisible!==e&&!this._state.disabled)return{focusVisible:e}},markDisabled:e=>{if(this._state.markDisabled!==e)return{markDisabled:e}},maxDate:e=>{let i=this.toValidDate(e,null);if(ct(this._state.maxDate,i))return{maxDate:i}},minDate:e=>{let i=this.toValidDate(e,null);if(ct(this._state.minDate,i))return{minDate:i}},navigation:e=>{if(this._state.navigation!==e)return{navigation:e}},outsideDays:e=>{if(this._state.outsideDays!==e)return{outsideDays:e}},weekdays:e=>{let i=e===!0||e===!1?"narrow":e,o=e===!0||e===!1?e:!0;if(this._state.weekdayWidth!==i||this._state.weekdaysVisible!==o)return{weekdayWidth:i,weekdaysVisible:o}}},this._calendar=p(Jt),this._i18n=p(Je),this._model$=new ee,this._dateSelect$=new ee,this._state={dayTemplateData:null,markDisabled:null,maxDate:null,minDate:null,disabled:!1,displayMonths:1,firstDate:null,firstDayOfWeek:1,lastDate:null,focusDate:null,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectedDate:null,selectBoxes:{years:[],months:[]},weekdayWidth:"narrow",weekdaysVisible:!0}}get model$(){return this._model$.pipe(ue(e=>e.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe(ue(e=>e!==null))}set(e){let i=Object.keys(e).map(o=>this._VALIDATORS[o](e[o])).reduce((o,s)=>Ze(Ze({},o),s),{});Object.keys(i).length>0&&this._nextState(i)}focus(e){let i=this.toValidDate(e,null);i!=null&&!this._state.disabled&&ct(this._state.focusDate,i)&&this._nextState({focusDate:e})}focusSelect(){ki(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(e){let i=this.toValidDate(e,this._calendar.getToday());i!=null&&!this._state.disabled&&(!this._state.firstDate||Ln(this._state.firstDate,i))&&this._nextState({firstDate:i})}select(e,i={}){let o=this.toValidDate(e,null);o!=null&&!this._state.disabled&&(ct(this._state.selectedDate,o)&&this._nextState({selectedDate:o}),i.emitEvent&&ki(o,this._state)&&this._dateSelect$.next(o))}toValidDate(e,i){let o=Z.from(e);return i===void 0&&(i=this._calendar.getToday()),this._calendar.isValid(o)?o:i}getMonth(e){for(let i of this._state.months)if(e.month===i.number&&e.year===i.year)return i;throw new Error(`month ${e.month} of year ${e.year} not found`)}_nextState(e){let i=this._updateState(e);this._patchContexts(i),this._state=i,this._model$.next(this._state)}_patchContexts(e){let{months:i,displayMonths:o,selectedDate:s,focusDate:r,focusVisible:a,disabled:l,outsideDays:d}=e;e.months.forEach(c=>{c.weeks.forEach(f=>{f.days.forEach(u=>{r&&(u.context.focused=r.equals(u.date)&&a),u.tabindex=!l&&r&&u.date.equals(r)&&r.month===c.number?0:-1,l===!0&&(u.context.disabled=!0),s!==void 0&&(u.context.selected=s!==null&&s.equals(u.date)),c.number!==u.date.month&&(u.hidden=d==="hidden"||d==="collapsed"||o>1&&u.date.after(i[0].firstDate)&&u.date.before(i[o-1].lastDate))})})})}_updateState(e){let i=Object.assign({},this._state,e),o=i.firstDate;if(("minDate"in e||"maxDate"in e)&&(As(i.minDate,i.maxDate),i.focusDate=Wt(i.focusDate,i.minDate,i.maxDate),i.firstDate=Wt(i.firstDate,i.minDate,i.maxDate),o=i.focusDate),"disabled"in e&&(i.focusVisible=!1),"selectedDate"in e&&this._state.months.length===0&&(o=i.selectedDate),"focu
1sVisible"in e||"focusDate"in e&&(i.focusDate=Wt(i.focusDate,i.minDate,i.maxDate),o=i.focusDate,i.months.length!==0&&i.focusDate&&!i.focusDate.before(i.firstDate)&&!i.focusDate.after(i.lastDate)))return i;if("firstDate"in e&&(i.firstDate=Wt(i.firstDate,i.minDate,i.maxDate),o=i.firstDate),o){let s="dayTemplateData"in e||"firstDayOfWeek"in e||"markDisabled"in e||"minDate"in e||"maxDate"in e||"disabled"in e||"outsideDays"in e||"weekdaysVisible"in e,r=Us(this._calendar,o,i,this._i18n,s);i.months=r,i.firstDate=r[0].firstDate,i.lastDate=r[r.length-1].lastDate,"selectedDate"in e&&!ki(i.selectedDate,i)&&(i.selectedDate=null),"firstDate"in e&&(!i.focusDate||i.focusDate.before(i.firstDate)||i.focusDate.after(i.lastDate))&&(i.focusDate=o);let a=!this._state.firstDate||this._state.firstDate.year!==i.firstDate.year,l=!this._state.firstDate||this._state.firstDate.month!==i.firstDate.month;i.navigation==="select"?(("minDate"in e||"maxDate"in e||i.selectBoxes.years.length===0||a)&&(i.selectBoxes.years=Bs(i.firstDate,i.minDate,i.maxDate)),("minDate"in e||"maxDate"in e||i.selectBoxes.months.length===0||a)&&(i.selectBoxes.months=Fs(this._calendar,i.firstDate,i.minDate,i.maxDate))):i.selectBoxes={years:[],months:[]},(i.navigation==="arrows"||i.navigation==="select")&&(l||a||"minDate"in e||"maxDate"in e||"disabled"in e)&&(i.prevDisabled=i.disabled||Hs(this._calendar,i.firstDate,i.minDate),i.nextDisabled=i.disabled||Vs(this._calendar,i.lastDate,i.maxDate))}return i}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=A({token:t,factory:t.\u0275fac})}}return t})(),Kt=function(t){return t[t.PREV=0]="PREV",t[t.NEXT=1]="NEXT",t}(Kt||{}),Vi=(()=>{class t{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekNumbers=!1,this.weekdays="narrow"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Ls(){return new Ws}var Hi=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=A({token:t,factory:()=>Ls(),providedIn:"root"})}}return t})(),Ws=(()=>{class t extends Hi{fromModel(e){return e&&q(e.year)&&q(e.month)&&q(e.day)?{year:e.year,month:e.month,day:e.day}:null}toModel(e){return e&&q(e.year)&&q(e.month)&&q(e.day)?{year:e.year,month:e.month,day:e.day}:null}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=et(t)))(o||t)}})()}static{this.\u0275prov=A({token:t,factory:t.\u0275fac})}}return t})(),Ys=(()=>{class t{processKey(e,i){let{state:o,calendar:s}=i;switch(e.key){case"PageUp":i.focusDate(s.getPrev(o.focusedDate,e.shiftKey?"y":"m",1));break;case"PageDown":i.focusDate(s.getNext(o.focusedDate,e.shiftKey?"y":"m",1));break;case"End":i.focusDate(e.shiftKey?o.maxDate:o.lastDate);break;case"Home":i.focusDate(e.shiftKey?o.minDate:o.firstDate);break;case"ArrowLeft":i.focusDate(s.getPrev(o.focusedDate,"d",1));break;case"ArrowUp":i.focusDate(s.getPrev(o.focusedDate,"d",s.getDaysPerWeek()));break;case"ArrowRight":i.focusDate(s.getNext(o.focusedDate,"d",1));break;case"ArrowDown":i.focusDate(s.getNext(o.focusedDate,"d",s.getDaysPerWeek()));break;case"Enter":case" ":i.focusSelect();break;default:return}e.preventDefault(),e.stopPropagation()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),zs=(()=>{class t{constructor(){this.i18n=p(Je)}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ye({type:t,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(i,o){i&2&&Ae("bg-primary",o.selected)("text-white",o.selected)("text-muted",o.isMuted())("outside",o.isMuted())("active",o.focused)},inputs:{currentMonth:"currentMonth",date:"date",disabled:"disabled",focused:"focused",selected:"selected"},standalone:!0,features:[Te],attrs:Qo,decls:1,vars:1,template:function(i,o){i&1&&fe(0),i&2&&Ue(o.i18n.getDayNumerals(o.date))},styles:[`[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:transparent}[ngbDatepickerDayView]:hover:not(.bg-primary),[ngbDatepickerDayView].active:not(.bg-primary){background-color:var(--bs-tertiary-bg);outline:1px solid var(--bs-border-color)}[ngbDatepickerDayView].outside{opacity:.5} 2`],encapsulation:2,changeDetection:0})}}return t})(),Ks=(()=>{class t{constructor(){this._month=-1,this._year=-1,this.i18n=p(Je),this.select=new ae}changeMonth(e){this.select.emit(new Z(this.date.year,de(e),1))}changeYear(e){this.select.emit(new Z(de(e),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this.monthSelect.nativeElement.value=`${this._month}`),this.date.year!==this._year&&(this._year=this.date.year,this.yearSelect.nativeElement.value=`${this._year}`))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ye({type:t,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(i,o){if(i&1&&(it(Jo,7,Pe),it(qo,7,Pe)),i&2){let s;Ve(s=He())&&(o.monthSelect=s.first),Ve(s=He())&&(o.yearSelect=s.first)}},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},standalone:!0,features:[Te],decls:8,vars:2,consts:()=>{let e;e=$localize`:@@ngb.datepicker.select-month:Select month`;let i;i=$localize`:@@ngb.datepicker.select-month:Select month`;let o;o=$localize`:@@ngb.datepicker.select-year:Select year`;let s;return s=$localize`:@@ngb.datepicker.select-year:Select year`,[["month",""],["year",""],["aria-label",e,"title",i,1,"form-select",3,"change","disabled"],[3,"value"],["aria-label",o,"title",s,1,"form-select",3,"change","disabled"]]},template:function(i,o){if(i&1){let s=ft();C(0,"select",2,0),pe("change",function(a){return xe(s),ke(o.changeMonth(a.target.value))}),we(2,Zo,2,3,"option",3,Fe),R(),C(4,"select",4,1),pe("change",function(a){return xe(s),ke(o.changeYear(a.target.value))}),we(6,Xo,2,2,"option",3,Fe),R()}i&2&&(K("disabled",o.disabled),T(2),De(o.months),T(2),K("disabled",o.disabled),T(2),De(o.years))},styles:[`ngb-datepicker-navigation-select>.form-select{flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}ngb-datepicker-navigation-select>.form-select:focus{z-index:1}ngb-datepicker-navigation-select>.form-select::-ms-value{background-color:transparent!important} 3`],encapsulation:2,changeDetection:0})}}return t})(),Qs=(()=>{class t{constructor(){this.navigation=Kt,this.i18n=p(Je),this.months=[],this.navigate=new ae,this.select=new ae}
3onClickPrev(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ye({type:t,selectors:[["ngb-datepicker-navigation"]],inputs:{date:"date",disabled:"disabled",months:"months",showSelect:"showSelect",prevDisabled:"prevDisabled",nextDisabled:"nextDisabled",selectBoxes:"selectBoxes"},outputs:{navigate:"navigate",select:"select"},standalone:!0,features:[Te],decls:8,vars:4,consts:()=>{let e;e=$localize`:@@ngb.datepicker.previous-month:Previous month`;let i;i=$localize`:@@ngb.datepicker.previous-month:Previous month`;let o;o=$localize`:@@ngb.datepicker.next-month:Next month`;let s;return s=$localize`:@@ngb.datepicker.next-month:Next month`,[[1,"ngb-dp-arrow","ngb-dp-arrow-prev"],["type","button","aria-label",e,"title",i,1,"btn","btn-link","ngb-dp-arrow-btn",3,"click","disabled"],[1,"ngb-dp-navigation-chevron"],[1,"ngb-dp-navigation-select",3,"date","disabled","months","years"],[1,"ngb-dp-arrow","ngb-dp-arrow-next"],["type","button","aria-label",o,"title",s,1,"btn","btn-link","ngb-dp-arrow-btn",3,"click","disabled"],[1,"ngb-dp-navigation-select",3,"select","date","disabled","months","years"],[1,"ngb-dp-arrow"],[1,"ngb-dp-month-name"]]},template:function(i,o){i&1&&(C(0,"div",0)(1,"button",1),pe("click",function(r){return o.onClickPrev(r)}),Be(2,"span",2),R()(),z(3,es,1,4,"ngb-datepicker-navigation-select",3)(4,os,2,0),C(5,"div",4)(6,"button",5),pe("click",function(r){return o.onClickNext(r)}),Be(7,"span",2),R()()),i&2&&(T(),K("disabled",o.prevDisabled),T(2),te(o.showSelect?3:-1),T(),te(o.showSelect?-1:4),T(2),K("disabled",o.nextDisabled))},dependencies:[Ks],styles:[`ngb-datepicker-navigation{display:flex;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;transform:rotate(-135deg)}.ngb-dp-arrow{display:flex;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow-next{justify-content:flex-end}.ngb-dp-arrow-next .ngb-dp-navigation-chevron{transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:flex;flex:1 1 9rem} 4`],encapsulation:2,changeDetection:0})}}return t})(),Js=(()=>{class t{constructor(){this.templateRef=p(ci)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ri({type:t,selectors:[["ng-template","ngbDatepickerContent",""]],standalone:!0})}}return t})(),qs=(()=>{class t{constructor(){this._keyboardService=p(Ys),this._service=p(Ai),this.i18n=p(Je),this.datepicker=p(Wn)}set month(e){this.viewModel=this._service.getMonth(e)}onKeyDown(e){this._keyboardService.processKey(e,this.datepicker)}doSelect(e){!e.context.disabled&&!e.hidden&&this.datepicker.onDateSelect(e.date)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ye({type:t,selectors:[["ngb-datepicker-month"]],hostAttrs:["role","grid"],hostBindings:function(i,o){i&1&&pe("keydown",function(r){return o.onKeyDown(r)})},inputs:{month:"month"},standalone:!0,features:[Te],decls:3,vars:1,consts:[["role","row",1,"ngb-dp-week","ngb-dp-weekdays"],[1,"ngb-dp-weekday","ngb-dp-showweek","small"],["role","columnheader",1,"ngb-dp-weekday","small"],["role","row",1,"ngb-dp-week"],[1,"ngb-dp-week-number","small","text-muted"],["role","gridcell",1,"ngb-dp-day",3,"disabled","tabindex","hidden","ngb-dp-today"],["role","gridcell",1,"ngb-dp-day",3,"click","tabindex"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,o){i&1&&(z(0,as,4,1,"div",0),we(1,ps,1,1,null,null,Fe)),i&2&&(te(o.viewModel.weekdays.length>0?0:-1),T(),De(o.viewModel.weeks))},dependencies:[pi],styles:[`ngb-datepicker-month{display:block}.ngb-dp-weekday,.ngb-dp-week-number{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:var(--bs-info)}.ngb-dp-week{border-radius:.25rem;display:flex}.ngb-dp-weekdays{border-bottom:1px solid var(--bs-border-color);border-radius:0;background-color:var(--bs-tertiary-bg)}
4.ngb-dp-day,.ngb-dp-weekday,.ngb-dp-week-number{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default;pointer-events:none}.ngb-dp-day[tabindex="0"]{z-index:1} 5`],encapsulation:2})}}return t})(),Wn=(()=>{class t{constructor(){this.injector=p(he),this._service=p(Ai),this._calendar=p(Jt),this._i18n=p(Je),this._config=p(Vi),this._nativeElement=p(Pe).nativeElement,this._ngbDateAdapter=p(Hi),this._ngZone=p(tt),this._destroyRef=p(It),this._injector=p(he),this._controlValue=null,this._publicState={},this._initialized=!1,this.dayTemplate=this._config.dayTemplate,this.dayTemplateData=this._config.dayTemplateData,this.displayMonths=this._config.displayMonths,this.firstDayOfWeek=this._config.firstDayOfWeek,this.footerTemplate=this._config.footerTemplate,this.markDisabled=this._config.markDisabled,this.maxDate=this._config.maxDate,this.minDate=this._config.minDate,this.navigation=this._config.navigation,this.outsideDays=this._config.outsideDays,this.showWeekNumbers=this._config.showWeekNumbers,this.startDate=this._config.startDate,this.weekdays=this._config.weekdays,this.navigate=new ae,this.dateSelect=new ae,this.onChange=i=>{},this.onTouched=()=>{};let e=p(At);this._service.dateSelect$.pipe(_t()).subscribe(i=>{this.dateSelect.emit(i)}),this._service.model$.pipe(_t()).subscribe(i=>{let o=i.firstDate,s=this.model?this.model.firstDate:null;this._publicState={maxDate:i.maxDate,minDate:i.minDate,firstDate:i.firstDate,lastDate:i.lastDate,focusedDate:i.focusDate,months:i.months.map(c=>c.firstDate)};let r=!1;if(!o.equals(s)&&(this.navigate.emit({current:s?{year:s.year,month:s.month}:null,next:{year:o.year,month:o.month},preventDefault:()=>r=!0}),r&&s!==null)){this._service.open(s);return}let a=i.selectedDate,l=i.focusDate,d=this.model?this.model.focusDate:null;this.model=i,ct(a,this._controlValue)&&(this._controlValue=a,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(a))),ct(l,d)&&d&&i.focusVisible&&this.focus(),e.markForCheck()})}get state(){return this._publicState}get calendar(){return this._calendar}get i18n(){return this._i18n}focusDate(e){this._service.focus(Z.from(e))}focusSelect(){this._service.focusSelect()}focus(){xt(()=>{this._nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]')?.focus()},{phase:pt.Read,injector:this._injector})}navigateTo(e){this._service.open(Z.from(e?e.day?e:ti(Ze({},e),{day:1}):null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{let e=J(this._contentEl.nativeElement,"focusin"),i=J(this._contentEl.nativeElement,"focusout");Zi(e,i).pipe(ue(o=>{let s=o.target,r=o.relatedTarget;return!(s?.classList.contains("ngb-dp-day")&&r?.classList.contains("ngb-dp-day")&&this._nativeElement.contains(s)&&this._nativeElement.contains(r))}),_t(this._destroyRef)).subscribe(({type:o})=>this._ngZone.run(()=>this._service.set({focusVisible:o==="focusin"})))})}ngOnInit(){if(this.model===void 0){let e={};["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].forEach(i=>e[i]=this[i]),this._service.set(e),this.navigateTo(this.startDate)}this.dayTemplate||(this.dayTemplate=this._defaultDayTemplate),this._initialized=!0}ngOnChanges(e){let i={};if(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].filter(o=>o in e).forEach(o=>i[o]=this[o]),this._service.set(i),"startDate"in e&&this._initialized){let{currentValue:o,previousValue:s}=e.startDate;Ln(s,o)&&this.navigateTo(this.startDate)}}onDateSelect(e){this._service.focus(e),this._service.select(e,{emitEvent:!0})}onNavigateDateSelect(e){this._service.open(e)}onNavigateEvent(e){switch(e){case Kt.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case Kt.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1));break}}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._service.set({disabled:e})}writeValue(e){this._controlValue=Z.from(this._ngbDateAdapter.fromModel(e)),this._service.select(this._controlValue)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ye({type:t,selectors:[["ngb-datepicker"]],contentQueries:function(i,o,s){if
5(i&1&&un(s,Js,7),i&2){let r;Ve(r=He())&&(o.contentTemplateFromContent=r.first)}},viewQuery:function(i,o){if(i&1&&(it(fs,7),it(_s,7)),i&2){let s;Ve(s=He())&&(o._defaultDayTemplate=s.first),Ve(s=He())&&(o._contentEl=s.first)}},hostVars:2,hostBindings:function(i,o){i&2&&Ae("disabled",o.model.disabled)},inputs:{contentTemplate:"contentTemplate",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekNumbers:"showWeekNumbers",startDate:"startDate",weekdays:"weekdays"},outputs:{navigate:"navigate",dateSelect:"dateSelect"},exportAs:["ngbDatepicker"],standalone:!0,features:[ui([{provide:fi,useExisting:Rt(()=>t),multi:!0},Ai]),li,Te],decls:10,vars:9,consts:[["defaultDayTemplate",""],["defaultContentTemplate",""],["content",""],[1,"ngb-dp-header"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes"],[1,"ngb-dp-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext","ngTemplateOutletInjector"],[3,"ngTemplateOutlet"],["ngbDatepickerDayView","",3,"date","currentMonth","selected","disabled","focused"],[1,"ngb-dp-month"],[1,"ngb-dp-month-name"],[3,"month"],[3,"navigate","select","date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes"]],template:function(i,o){if(i&1&&(z(0,ms,1,5,"ng-template",null,0,hi)(2,ys,2,0,"ng-template",null,1,hi),C(4,"div",3),z(5,ws,1,7,"ngb-datepicker-navigation",4),R(),C(6,"div",5,2),z(8,Ds,0,0,"ng-template",6),R(),z(9,Ts,0,0,"ng-template",7)),i&2){let s=hn(3);T(5),te(o.navigation!=="none"?5:-1),T(),Ae("ngb-dp-months",!o.contentTemplate),T(2),K("ngTemplateOutlet",o.contentTemplate||(o.contentTemplateFromContent==null?null:o.contentTemplateFromContent.templateRef)||s)("ngTemplateOutletContext",pn(7,gs,o))("ngTemplateOutletInjector",o.injector),T(),K("ngTemplateOutlet",o.footerTemplate)}},dependencies:[pi,zs,qs,Qs],styles:[`ngb-datepicker{border:1px solid var(--bs-border-color);border-radius:.25rem;display:inline-block}ngb-datepicker-month{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}ngb-datepicker.disabled .ngb-dp-weekday,ngb-datepicker.disabled .ngb-dp-week-number,ngb-datepicker.disabled .ngb-dp-month-name{color:var(--bs-text-muted)}.ngb-dp-body{z-index:1055}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:var(--bs-tertiary-bg)}.ngb-dp-months{display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:var(--bs-tertiary-bg)}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem} 6`],encapsulation:2,changeDetection:0})}}return t})(),Yt=(t,n)=>n?n.some(e=>e.contains(t)):!1,Pn=(t,n)=>!n||Ns(t,n)!=null,Zs=(()=>{let t=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2,n=()=>/Android/.test(navigator.userAgent);return typeof navigator<"u"?!!navigator.userAgent&&(t()||n()):!1})(),Xs=t=>Zs?()=>setTimeout(()=>t(),100):t;function er(t,n,e,i,o,s,r,a){e&&t.runOutsideAngular(Xs(()=>{let l=u=>{let h=u.target;return u.button===2||Yt(h,r)?!1:e==="inside"?Yt(h,s)&&Pn(h,a):e==="outside"?!Yt(h,s):Pn(h,a)||!Yt(h,s)},d=J(n,"keydown").pipe(H(o),ue(u=>u.key==="Escape"),si(u=>u.preventDefault())),c=J(n,"mousedown").pipe(Xe(l),H(o)),f=J(n,"mouseup").pipe(Ct(c),ue(([u,h])=>h),Xi(0),H(o));ni([d.pipe(Xe(u=>0)),f.pipe(Xe(u=>1))]).subscribe(u=>t.run(()=>i(u)))}))}var tr=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Yn(t){let n=Array.from(t.querySelectorAll(tr)).filter(e=>e.tabIndex!==-1);return[n[0],n[n.length-1]]}var zn=(t,n,e,i=!1)=>{t.runOutsideAngular(()=>
6{let o=J(n,"focusin").pipe(H(e),Xe(s=>s.target));J(n,"keydown").pipe(H(e),ue(s=>s.key==="Tab"),Ct(o)).subscribe(([s,r])=>{let[a,l]=Yn(n);(r===a||r===n)&&s.shiftKey&&(l.focus(),s.preventDefault()),r===l&&!s.shiftKey&&(a.focus(),s.preventDefault())}),i&&J(n,"click").pipe(H(e),Ct(o),Xe(s=>s[1])).subscribe(s=>s.focus())})},ir=(()=>{class t{constructor(){this._element=p(nt).documentElement}isRTL(){return(this._element.getAttribute("dir")||"").toLowerCase()==="rtl"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),nr=/\s+/,or=/ +/gi,sr={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 rr(t,n){let[e,i]=sr[t];return n&&i||e}var ar=/^left/,lr=/^right/,cr=/^start/,dr=/^end/;function ur(t,n){let[e,i]=n.split("-"),o=e.replace(ar,"start").replace(lr,"end"),s=[o];if(i){let r=i;(e==="left"||e==="right")&&(r=r.replace(cr,"top").replace(dr,"bottom")),s.push(`${o}-${r}`)}return t&&(s=s.map(r=>`${t}-${r}`)),s.join(" ")}function An({placement:t,baseClass:n},e){let i=Array.isArray(t)?t:t.split(nr),o=["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"],s=i.findIndex(d=>d==="auto");s>=0&&o.forEach(function(d){i.find(c=>c.search("^"+d)!==-1)==null&&i.splice(s++,1,d)});let r=i.map(d=>rr(d,e.isRTL()));return{placement:r.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!n,phase:"write",fn({state:d}){let c=new RegExp(n+"(-[a-z]+)*","gi"),f=d.elements.popper,u=d.placement,h=f.className;h=h.replace(c,""),h+=` ${ur(n,u)}`,h=h.trim().replace(or," "),f.className=h}},Di,Si,mi,{enabled:!0,name:"flip",options:{fallbackPlacements:r}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function Fn(t){return t}function hr(){let t=p(ir),n=null;return{createPopper(e){if(!n){let o=(e.updatePopperOptions||Fn)(An(e,t));n=xi(e.hostElement,e.targetElement,o)}},update(){n&&n.update()},setOptions(e){if(n){let o=(e.updatePopperOptions||Fn)(An(e,t));n.setOptions(o)}},destroy(){n&&(n.destroy(),n=null)}}}function pr(){return new fr}var Kn=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=A({token:t,factory:()=>pr(),providedIn:"root"})}}return t})(),fr=(()=>{class t extends Kn{parse(e){if(e!=null){let i=e.trim().split("-");if(i.length===1&&ve(i[0]))return{year:de(i[0]),month:null,day:null};if(i.length===2&&ve(i[0])&&ve(i[1]))return{year:de(i[0]),month:de(i[1]),day:null};if(i.length===3&&ve(i[0])&&ve(i[1])&&ve(i[2]))return{year:de(i[0]),month:de(i[1]),day:de(i[2])}}return null}format(e){return e?`${e.year}-${ve(e.month)?xn(e.month):""}-${ve(e.day)?xn(e.day):""}`:""}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=et(t)))(o||t)}})()}static{this.\u0275prov=A({token:t,factory:t.\u0275fac})}}return t})(),Bn=(()=>{class t extends Vi{constructor(){super(...arguments),this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=e=>e,this.restoreFocus=!0}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=et(t)))(o||t)}})()}static{this.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function _r(t){return n=>(n.modifiers.push(Ti,{name:"offset",options:{offset:()=>t}}),n)}var wu=(()=>{class t{constructor(){this._parserFormatter=p(Kn),this._elRef=p(Pe),this._vcRef=p(sn),this._ngZone=p(tt),this._calendar=p(Jt),this._dateAdapter=p(Hi),this._document=p(nt),this._changeDetector=p(At),this._injector=p(he),this._config=p(Bn),this._cRef=null,this._disabled=!1,this._elWithFocus=null,this._model=null,this._positioning=hr(),this._destroyCloseHandlers$=new ee,this.autoClose=this._config.autoClose,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.container=this._config.container,this.positionTarget=this._config.positionTarget,this.dateSelect=new ae,this.navigate=new ae,this.closed=new ae,this._onChange=e=>{},this._onTouched=()=>{}
6,this._validatorChange=()=>{}}get disabled(){return this._disabled}set disabled(e){this._disabled=e===""||e&&e!=="false",this.isOpen()&&this._cRef.instance.setDisabledState(this._disabled)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}registerOnValidatorChange(e){this._validatorChange=e}setDisabledState(e){this.disabled=e}validate(e){let{value:i}=e;if(i!=null){let o=this._fromDateStruct(this._dateAdapter.fromModel(i));if(!o)return{ngbDate:{invalid:i}};if(this.minDate&&o.before(Z.from(this.minDate)))return{ngbDate:{minDate:{minDate:this.minDate,actual:i}}};if(this.maxDate&&o.after(Z.from(this.maxDate)))return{ngbDate:{maxDate:{maxDate:this.maxDate,actual:i}}}}return null}writeValue(e){this._model=this._fromDateStruct(this._dateAdapter.fromModel(e)),this._writeModelValue(this._model)}manualDateChange(e,i=!1){let o=e!==this._inputValue;o&&(this._inputValue=e,this._model=this._fromDateStruct(this._parserFormatter.parse(e))),(o||!i)&&this._onChange(this._model?this._dateAdapter.toModel(this._model):e===""?null:e),i&&this._model&&this._writeModelValue(this._model)}isOpen(){return!!this._cRef}open(){if(!this.isOpen()){this._cRef=this._vcRef.createComponent(Wn,{injector:this._injector}),this._applyPopupStyling(this._cRef.location.nativeElement),this._applyDatepickerInputs(this._cRef),this._subscribeForDatepickerOutputs(this._cRef.instance),this._cRef.instance.ngOnInit(),this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model)),this._cRef.instance.registerOnChange(i=>{this.writeValue(i),this._onChange(i),this._onTouched()}),this._cRef.changeDetectorRef.detectChanges(),this._cRef.instance.setDisabledState(this.disabled),this.container==="body"&&this._document.querySelector(this.container)?.appendChild(this._cRef.location.nativeElement),this._elWithFocus=this._document.activeElement,zn(this._ngZone,this._cRef.location.nativeElement,this.closed,!0),setTimeout(()=>this._cRef?.instance.focus());let e;if(zt(this.positionTarget)?e=this._document.querySelector(this.positionTarget):this.positionTarget instanceof HTMLElement?e=this.positionTarget:e=this._elRef.nativeElement,this.positionTarget&&!e)throw new Error("ngbDatepicker could not find element declared in [positionTarget] to position against.");this._ngZone.runOutsideAngular(()=>{this._cRef&&e&&(this._positioning.createPopper({hostElement:e,targetElement:this._cRef.location.nativeElement,placement:this.placement,updatePopperOptions:i=>this.popperOptions(_r([0,2])(i))}),this._afterRenderRef=rn(()=>{this._positioning.update()},{phase:pt.MixedReadWrite,injector:this._injector}))}),this._setCloseHandlers()}}close(){if(this.isOpen()){this._cRef?.destroy(),this._cRef=null,this._positioning.destroy(),this._afterRenderRef?.destroy(),this._destroyCloseHandlers$.next(),this.closed.emit(),this._changeDetector.markForCheck();let e=this._elWithFocus;zt(this.restoreFocus)?e=this._document.querySelector(this.restoreFocus):this.restoreFocus!==void 0&&(e=this.restoreFocus),e&&e.focus?e.focus():this._document.body.focus()}}toggle(){this.isOpen()?this.close():this.open()}navigateTo(e){this.isOpen()&&this._cRef.instance.navigateTo(e)}onBlur(){this._onTouched()}onFocus(){this._elWithFocus=this._elRef.nativeElement}ngOnChanges(e){if((e.minDate||e.maxDate)&&(this._validatorChange(),this.isOpen()&&(e.minDate&&this._cRef.setInput("minDate",this.minDate),e.maxDate&&this._cRef.setInput("maxDate",this.maxDate))),e.datepickerClass){let{currentValue:i,previousValue:o}=e.datepickerClass;this._applyPopupClass(i,o)}e.autoClose&&this.isOpen()&&this._setCloseHandlers()}ngOnDestroy(){this.close()}_applyDatepickerInputs(e){["contentTemplate","dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showNavigation","showWeekNumbers","weekdays"].forEach(i=>{this[i]!==void 0&&e.setInput(i,this[i])}),e.setInput("startDate",this.startDate||this._model)}_applyPopupClass(e,i){let o=this._cRef?.location.nativeElement;o&&(e&&o.classList.add(e),i&&o.classList.remove(i))}_applyPopupStyling(e){e.classList.add("dropdown-menu","show"),this.container==="body"&&e.classList.add("ngb-dp-body"),this._applyPopupClass(this.datepickerClass)}_subscribeForDatepickerOutputs(e){e.navigate.subscribe(i=>this.navigate.emit(i)),e.dateSelect.subscribe(i=>{this.dateSelect.emit(i),(this.autoClose===!0||this.autoClose==="inside")&&this.close()})}_writeModelValue(e){let i=this._parserFormatter.format(e);this._inputValue=i,this._elRef.nativeElement.value=i,this.isOpen()&&(this._cRef.instance.writeValue(this._dateAdapter.toModel(e)),this._onTouched())}_fromDateStruct(e){let i=e?new Z(e.year,e.month,e.day):null;return this._calendar.isValid(i)?i:null}_setCloseHandlers(){this._destroyCloseHandlers$.next(),er(this._ngZone,this._document,this.autoClose,()=>this.close(),this._destroyCloseHandlers$,[],[this._elRef.nativeElement,this._cRef.location.nativeElement])}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ri({type:t,selectors:[["input","ngbDatepicker",""]],hostVars:1,hostBindings:function(i,o){i&1&&pe("input",function(r){return o.manualDateChange(r.target.value)})("change",function(r){return o.manualDateChange(r.target.value,!0)})("focus",function(){return o.onFocus()})("blur",function(){return o.onBlur()}),i&2&&ln("disabled",o.disabled)},inputs:{autoClose:"autoClose",contentTemplate:"contentTemplate",datepickerClass:"datepickerClass",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",minDate:"minDate",maxDate:"maxDate",navigation:"navigation",outsideDays:"outsideDays",placement:"placement",popperOptions:"popperOptions",restoreFocus:"restoreFocus",showWeekNumbers:"showWeekNumbers",startDate:"startDate",container:"container",positionTarget:"positionTarget",weekdays:"weekdays",disabled:"disabled"},outputs:{dateSelect:"dateSelect",navigate:"navigate",closed:"closed"},exportAs:["ngbDatepicker"],standalone:!0,features:[ui([{provide:fi,useExisting:Rt(()=>t),multi:!0},{provide:mn,useExisting:Rt(()=>t),multi:!0},{provide:Vi,useExisting:Bn}]),li]})}}return t})();var Du=new Date(1882,10,12),Tu=new Date(2174,10,25);var Mu=1e3*60*60*24;var Ui=1080,gr=24*Ui,mr=12*Ui+793,Su=29*gr+mr,Ou=11*Ui+204;var Qn=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=x({type:t})}static{this.\u0275inj=I({})}}return t})();var Jn=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=x({type:t})}static{this.\u0275inj=I({})}}return t})(),vr=(()=>{class t{constructor(){this._ngbConfig=p(Ss),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(e){this._animation=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),dt=class{constructor(n,e,i){this.nodes=n,this.viewRef=e,this.componentRef=i}};var br=(()=>{class t{constructor(){this._document=p(nt)}hide(){let e=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),i=this._document.body,o=i.style,{overflow:s,paddingRight:r}=o;if(e>0){let a=parseFloat(window.getComputedStyle(i).paddingRight);o.paddingRight=`${a+e}px`}return o.overflow="hidden",()=>{e>0&&(o.paddingRight=r),o.overflow=s}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),yr=(()=>{class t{constructor(){this._nativeElement=p(Pe).nativeElement,this._zone=p(tt),this._injector=p(he)}ngOnInit(){xt(()=>Qe(this._zone,this._nativeElement,(e,i)=>{i&&Hn(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"}),{injector:this._injector,phase:pt.MixedReadWrite})}hide(){return Qe(this._zone,this._nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ye({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(i,o){i&2&&(Pt("modal-backdrop"+(o.backdropClass?" "+o.backdropClass:"")),Ae("show",!o.animation)("fade",o.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[Te],decls:0,vars:0,template:function(i,o){},encapsulation:2})}}return t})(),Qt=class{update(n){}close(n){}dismiss(n){}},wr=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],Dr=["animation","backdropClass"],Fi=class{_applyWindowOptions(n,e){wr.forEach(i=>
6{Pi(e[i])&&(n[i]=e[i])})}_applyBackdropOptions(n,e){Dr.forEach(i=>{Pi(e[i])&&(n[i]=e[i])})}update(n){this._applyWindowOptions(this._windowCmptRef.instance,n),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,n)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(H(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(H(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(n,e,i,o){this._windowCmptRef=n,this._contentRef=e,this._backdropCmptRef=i,this._beforeDismiss=o,this._closed=new ee,this._dismissed=new ee,this._hidden=new ee,n.instance.dismissEvent.subscribe(s=>{this.dismiss(s)}),this.result=new Promise((s,r)=>{this._resolve=s,this._reject=r}),this.result.then(null,()=>{})}close(n){this._windowCmptRef&&(this._closed.next(n),this._resolve(n),this._removeModalElements())}_dismiss(n){this._dismissed.next(n),this._reject(n),this._removeModalElements()}dismiss(n){if(this._windowCmptRef)if(!this._beforeDismiss)this._dismiss(n);else{let e=this._beforeDismiss();Es(e)?e.then(i=>{i!==!1&&this._dismiss(n)},()=>{}):e!==!1&&this._dismiss(n)}}_removeModalElements(){let n=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():ii(void 0);n.subscribe(()=>{let{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef?.viewRef?.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){let{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Nt(n,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}},Bi=function(t){return t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",t}(Bi||{}),Tr=(()=>{class t{constructor(){this._document=p(nt),this._elRef=p(Pe),this._zone=p(tt),this._injector=p(he),this._closed$=new ee,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new ae,this.shown=new ee,this.hidden=new ee}get fullscreenClass(){return this.fullscreen===!0?" modal-fullscreen":zt(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement,xt(()=>this._show(),{injector:this._injector,phase:pt.MixedReadWrite})}ngOnDestroy(){this._disableEventHandling()}hide(){let{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"stop"},o=Qe(this._zone,e,()=>e.classList.remove("show"),i),s=Qe(this._zone,this._dialogEl.nativeElement,()=>{},i),r=Nt(o,s);return r.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),r}_show(){let e={animation:this.animation,runningTransition:"continue"},i=Qe(this._zone,this._elRef.nativeElement,(s,r)=>{r&&Hn(s),s.classList.add("show")},e),o=Qe(this._zone,this._dialogEl.nativeElement,()=>{},e);Nt(i,o).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){let{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{J(e,"keydown").pipe(H(this._closed$),ue(o=>o.key==="Escape")).subscribe(o=>{this.keyboard?requestAnimationFrame(()=>{o.defaultPrevented||this._zone.run(()=>this.dismiss(Bi.ESC))}):this.backdrop==="static"&&this._bumpBackdrop()});let i=!1;J(this._dialogEl.nativeElement,"mousedown").pipe(H(this._closed$),si(()=>i=!1),tn(()=>J(e,"mouseup").pipe(H(this._closed$),oi(1))),ue(({target:o})=>e===o)).subscribe(()=>{i=!0}),J(e,"click").pipe(H(this._closed$)).subscribe(({target:o})=>{e===o&&(this.backdrop==="static"?this._bumpBackdrop():this.backdrop===!0&&!i&&this._zone.run(()=>this.dismiss(Bi.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){let{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){let i=e.querySelector("[ngbAutofocus]"),o=Yn(e)[0];(i||o||e).focus()}}_restoreFocus(){let e=this._document.body,i=this._elWithFocus,o;i&&i.focus&&e.contains(i)?o=i:o=e,this._zone.runOutsideAngular(()=>{setTimeout(()=>
6o.focus()),this._elWithFocus=null})}_bumpBackdrop(){this.backdrop==="static"&&Qe(this._zone,this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=ye({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(i,o){if(i&1&&it(Ms,7),i&2){let s;Ve(s=He())&&(o._dialogEl=s.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(i,o){i&2&&(kt("aria-modal",!0)("aria-labelledby",o.ariaLabelledBy)("aria-describedby",o.ariaDescribedBy),Pt("modal d-block"+(o.windowClass?" "+o.windowClass:"")),Ae("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:[Te],ngContentSelectors:Ko,decls:4,vars:2,consts:[["dialog",""],["role","document"],[1,"modal-content"]],template:function(i,o){i&1&&(cn(),C(0,"div",1,0)(2,"div",2),dn(3),R()()),i&2&&Pt("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} 7`],encapsulation:2})}}return t})(),Mr=(()=>{class t{constructor(){this._applicationRef=p(fn),this._injector=p(he),this._environmentInjector=p(ai),this._document=p(nt),this._scrollBar=p(br),this._activeWindowCmptHasChanged=new ee,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new ae;let e=p(tt);this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){let i=this._windowCmpts[this._windowCmpts.length-1];zn(e,i.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(i.location.nativeElement)}})}_restoreScrollBar(){let e=this._scrollBarRestoreFn;e&&(this._scrollBarRestoreFn=null,e())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(e,i,o){let s=o.container instanceof HTMLElement?o.container:Pi(o.container)?this._document.querySelector(o.container):this._document.body;if(!s)throw new Error(`The specified modal container "${o.container||"body"}" was not found in the DOM.`);this._hideScrollBar();let r=new Qt;e=o.injector||e;let a=e.get(ai,null)||this._environmentInjector,l=this._getContentRef(e,a,i,r,o),d=o.backdrop!==!1?this._attachBackdrop(s):void 0,c=this._attachWindowComponent(s,l.nodes),f=new Fi(c,l,d,o.beforeDismiss);return this._registerModalRef(f),this._registerWindowCmpt(c),f.hidden.pipe(oi(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),r.close=u=>{f.close(u)},r.dismiss=u=>{f.dismiss(u)},r.update=u=>{f.update(u)},f.update(o),this._modalRefs.length===1&&this._document.body.classList.add("modal-open"),d&&d.instance&&d.changeDetectorRef.detectChanges(),c.changeDetectorRef.detectChanges(),f}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(i=>i.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e){let i=Ft(yr,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(i.hostView),e.appendChild(i.location.nativeElement),i}_attachWindowComponent(e,i){let o=Ft(Tr,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:i});return this._applicationRef.attachView(o.hostView),e.appendChild(o.location.nativeElement),o}_getContentRef(e,i,o,s,r){return o?o instanceof ci?this._createFromTemplateRef(o,s):zt(o)?this._createFromString(o):this._createFromComponent(e,i,o,s,r):new dt([])}_createFromTemplateRef(e,i){let o={$implicit:i,close(r){i.close(r)},dismiss(r){i.dismiss(r)}},s=e.createEmbeddedView(o);return this._applicationRef.attachView(s),new dt([s.rootNodes],s)}_createFromString(e){let i=this._document.createTextNode(`${e}`);return new dt([[i]])}_createFromComponent(e,i,o,s,r){let a=he.create({providers:[{provide:Qt,useValue:s}],parent:e}),l=Ft(o,{environmentInjector:i,elementInjector:a}),d=l.location.nativeElement;return r.scrollable&&d.classList.add("component-host-scrollable"),this._applicationRef.attachView(l.hostView),new dt([[d]],l.hostView,l)}_setAriaHidden(e){let i=e.parentElement;
7i&&e!==this._document.body&&(Array.from(i.children).forEach(o=>{o!==e&&o.nodeName!=="SCRIPT"&&(this._ariaHiddenValues.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,i)=>{e?i.setAttribute("aria-hidden",e):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){let i=()=>{let o=this._modalRefs.indexOf(e);o>-1&&(this._modalRefs.splice(o,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(i,i)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{let i=this._windowCmpts.indexOf(e);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Sr=(()=>{class t{constructor(){this._injector=p(he),this._modalStack=p(Mr),this._config=p(vr)}open(e,i={}){let o=Ze(ti(Ze({},this._config),{animation:this._config.animation}),i);return this._modalStack.open(this._injector,e,o)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),qn=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=x({type:t})}static{this.\u0275inj=I({providers:[Sr]})}}return t})();var Zn=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=x({type:t})}static{this.\u0275inj=I({})}}return t})();var Xn=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=x({type:t})}static{this.\u0275inj=I({})}}return t})();var eo=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=x({type:t})}static{this.\u0275inj=I({})}}return t})();var to=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=x({type:t})}static{this.\u0275inj=I({})}}return t})();var io=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=x({type:t})}static{this.\u0275inj=I({})}}return t})();var no=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=x({type:t})}static{this.\u0275inj=I({})}}return t})();var oo=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=x({type:t})}static{this.\u0275inj=I({})}}return t})();var so=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=x({type:t})}static{this.\u0275inj=I({})}}return t})();var ro=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=x({type:t})}static{this.\u0275inj=I({})}}return t})();var Eu=new nn("live announcer delay",{providedIn:"root",factory:()=>100});var ao=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=x({type:t})}static{this.\u0275inj=I({})}}return t})();var lo=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=x({type:t})}static{this.\u0275inj=I({})}}return t})(),Or=[Un,Gn,$n,jn,Qn,Jn,qn,Zn,lo,Xn,eo,to,io,no,oo,so,ro,ao],Nu=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=x({type:t})}static{this.\u0275inj=I({imports:[Or,Un,Gn,$n,jn,Qn,Jn,qn,Zn,lo,Xn,eo,to,io,no,oo,so,ro,ao]})}}return t})();export{Jt as a,wu as b,Qn as c,Nu as d};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.