-
Notifications
You must be signed in to change notification settings - Fork 0
/
chunk-4DZAKISB.js
1 lines (1 loc) · 65.3 KB
/
chunk-4DZAKISB.js
1
import{a as v,b as Ue,c as Xe,d as Ke,e as Qe,f as Je,g as De,h as we}from"./chunk-W625KHT5.js";import{a as xt,d as St}from"./chunk-655SYXLQ.js";import{a as X,b as Ce,c as L,d as Ge}from"./chunk-NDAQC43D.js";import{a as et,c as Ee}from"./chunk-NMYJD6OP.js";import{a as ot}from"./chunk-B43CU5JX.js";import{a as Mt}from"./chunk-TQEIIVVC.js";import{a as ce,b as U}from"./chunk-LF5XB4YN.js";import{a as ke,c as jt,d as tt,g as Tt,h as nt,i as At}from"./chunk-T4WK6ZIE.js";import{a as G}from"./chunk-F7XBNY6P.js";import{a as M,b as J,e as E,f as ee,g as te,j as qe}from"./chunk-VLESUBHY.js";import{a as ne,b as be,c as Et,d as ye,e as kt,f as A,g as W,h as Ye,i as le}from"./chunk-AJPISUXH.js";import{i as wt}from"./chunk-FB7CDEED.js";import{Fa as Ie,G as gt,Hb as It,Jb as Ct,L as ae,O as ve,R as N,Sb as bt,Tb as yt,Xb as Dt,Y as vt,_ as Q,ha as Y,j as ft,o as ht}from"./chunk-XIWENJHJ.js";import{a as q,b as ge,e as mt,i as y}from"./chunk-BL3FZZIZ.js";var xe=(t,e,n,o,i)=>ln(t[1],e[1],n[1],o[1],i).map(r=>cn(t[0],e[0],n[0],o[0],r)),cn=(t,e,n,o,i)=>{let r=3*e*Math.pow(i-1,2),s=-3*n*i+3*n+o*i,a=t*Math.pow(i-1,3);return i*(r+i*s)-a},ln=(t,e,n,o,i)=>(t-=i,e-=i,n-=i,o-=i,un(o-3*n+3*e-t,3*n-6*e+3*t,3*e-3*t,t).filter(s=>s>=0&&s<=1)),dn=(t,e,n)=>{let o=e*e-4*t*n;return o<0?[]:[(-e+Math.sqrt(o))/(2*t),(-e-Math.sqrt(o))/(2*t)]},un=(t,e,n,o)=>{if(t===0)return dn(e,n,o);e/=t,n/=t,o/=t;let i=(3*n-e*e)/3,r=(2*e*e*e-9*e*n+27*o)/27;if(i===0)return[Math.pow(-r,.3333333333333333)];if(r===0)return[Math.sqrt(-i),-Math.sqrt(-i)];let s=Math.pow(r/2,2)+Math.pow(i/3,3);if(s===0)return[Math.pow(r/2,.5)-e/3];if(s>0)return[Math.pow(-(r/2)+Math.sqrt(s),.3333333333333333)-Math.pow(r/2+Math.sqrt(s),.3333333333333333)-e/3];let a=Math.sqrt(Math.pow(-(i/3),3)),c=Math.acos(-(r/(2*Math.sqrt(Math.pow(-(i/3),3))))),d=2*Math.pow(a,1/3);return[d*Math.cos(c/3)-e/3,d*Math.cos((c+2*Math.PI)/3)-e/3,d*Math.cos((c+4*Math.PI)/3)-e/3]};var pn=t=>t!==void 0?(Array.isArray(t)?t:t.split(" ")).filter(n=>n!=null).map(n=>n.trim()).filter(n=>n!==""):[],Se=t=>{let e={};return pn(t).forEach(n=>e[n]=!0),e};var je=(t,e,n,o,i,r)=>y(void 0,null,function*(){var s;if(t)return t.attachViewToDom(e,n,i,o);if(!r&&typeof n!="string"&&!(n instanceof HTMLElement))throw new Error("framework delegate is missing");let a=typeof n=="string"?(s=e.ownerDocument)===null||s===void 0?void 0:s.createElement(n):n;return o&&o.forEach(c=>a.classList.add(c)),i&&Object.assign(a,i),e.appendChild(a),yield new Promise(c=>ne(a,c)),a}),Te=(t,e)=>{if(e){if(t){let n=e.parentElement;return t.removeViewFromDom(n,e)}e.remove()}return Promise.resolve()},Ae=()=>{let t,e;return{attachViewToDom:(c,d,...f)=>y(void 0,[c,d,...f],function*(i,r,s={},a=[]){var p,m;t=i;let u;if(r){let l=typeof r=="string"?(p=t.ownerDocument)===null||p===void 0?void 0:p.createElement(r):r;a.forEach(g=>l.classList.add(g)),Object.assign(l,s),t.appendChild(l),u=l,yield new Promise(g=>ne(l,g))}else if(t.children.length>0&&(t.tagName==="ION-MODAL"||t.tagName==="ION-POPOVER")&&!(u=t.children[0]).classList.contains("ion-delegate-host")){let g=(m=t.ownerDocument)===null||m===void 0?void 0:m.createElement("div");g.classList.add("ion-delegate-host"),a.forEach(D=>g.classList.add(D)),g.append(...t.children),t.appendChild(g),u=g}let h=document.querySelector("ion-app")||document.body;return e=document.createComment("ionic teleport"),t.parentNode.insertBefore(e,t),h.appendChild(t),u??t}),removeViewFromDom:()=>(t&&e&&(e.parentNode.insertBefore(t,e),e.remove()),Promise.resolve())}};var ue='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',Me=(t,e)=>{let n=t.querySelector(ue);Pt(n,e??t)},Rt=(t,e)=>{let n=Array.from(t.querySelectorAll(ue)),o=n.length>0?n[n.length-1]:null;Pt(o,e??t)},Pt=(t,e)=>{let n=t,o=t?.shadowRoot;o&&(n=o.querySelector(ue)||t),n?Ye(n):e.focus()},it=0,mn=0,Re=new WeakMap,Bt=t=>({create(n){return fn(t,n)},dismiss(n,o,i){return In(document,n,o,t,i)},getTop(){return y(this,null,function*(){return de(document,t)})}});var rt=Bt("ion-modal");var st=Bt("ion-popover");var Fe=t=>{typeof document<"u"&&vn(document);let e=it++;t.overlayIndex=e},Pe=t=>(t.hasAttribute("id")||(t.id=`ion-overlay-${++mn}`),t.id),fn=(t,e)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined(t).then(()=>{let n=document.createElement(t);return n.classList.add("overlay-hidden"),Object.assign(n,Object.assign(Object.assign({},e),{hasController:!0})),Lt(document).appendChild(n),new Promise(o=>ne(n,o))}):Promise.resolve(),hn=t=>t.classList.contains("overlay-hidden"),Ft=(t,e)=>{let n=t,o=t?.shadowRoot;o&&(n=o.querySelector(ue)||t),n?Ye(n):e.focus()},gn=(t,e)=>{let n=de(e,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover"),o=t.target;if(!n||!o||n.classList.contains(K))return;let i=()=>{if(n===o)n.lastFocus=void 0;else if(o.tagName==="ION-TOAST")Ft(n.lastFocus,n);else{let s=A(n);if(!s.contains(o))return;let a=s.querySelector(".ion-overlay-wrapper");if(!a)return;if(a.contains(o)||o===s.querySelector("ion-backdrop"))n.lastFocus=o;else{let c=n.lastFocus;Me(a,n),c===e.activeElement&&Rt(a,n),n.lastFocus=e.activeElement}}},r=()=>{if(n.contains(o))n.lastFocus=o;else if(o.tagName==="ION-TOAST")Ft(n.lastFocus,n);else{let s=n.lastFocus;Me(n),s===e.activeElement&&Rt(n),n.lastFocus=e.activeElement}};n.shadowRoot?r():i()},vn=t=>{it===0&&(it=1,t.addEventListener("focus",e=>{gn(e,t)},!0),t.addEventListener("ionBackButton",e=>{let n=de(t);n?.backdropDismiss&&e.detail.register(St,()=>{n.dismiss(void 0,oe)})}),xt()||t.addEventListener("keydown",e=>{if(e.key==="Escape"){let n=de(t);n?.backdropDismiss&&n.dismiss(void 0,oe)}}))},In=(t,e,n,o,i)=>{let r=de(t,o,i);return r?r.dismiss(e,n):Promise.reject("overlay does not exist")},Cn=(t,e)=>(e===void 0&&(e="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover,ion-toast"),Array.from(t.querySelectorAll(e)).filter(n=>n.overlayIndex>0)),Be=(t,e)=>Cn(t,e).filter(n=>!hn(n)),de=(t,e,n)=>{let o=Be(t,e);return n===void 0?o[o.length-1]:o.find(i=>i.id===n)},Ot=(t=!1)=>{let n=Lt(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");n&&(t?n.setAttribute("aria-hidden","true"):n.removeAttribute("aria-hidden"))},Oe=(t,e,n,o,i)=>y(void 0,null,function*(){var r,s;if(t.presented)return;Ot(!0),document.body.classList.add(et),Dn(t.el),t.presented=!0,t.willPresent.emit(),(r=t.willPresentShorthand)===null||r===void 0||r.emit();let a=L(t),c=t.enterAnimation?t.enterAnimation:X.get(e,a==="ios"?n:o);(yield zt(t,c,t.el,i))&&(t.didPresent.emit(),(s=t.didPresentShorthand)===null||s===void 0||s.emit()),t.el.tagName!=="ION-TOAST"&&bn(t.el),t.keyboardClose&&(document.activeElement===null||!t.el.contains(document.activeElement))&&t.el.focus(),t.el.removeAttribute("aria-hidden")}),bn=t=>y(void 0,null,function*(){let e=document.activeElement;if(!e)return;let n=e?.shadowRoot;n&&(e=n.querySelector(ue)||e),yield t.onDidDismiss(),(document.activeElement===null||document.activeElement===document.body)&&e.focus()}),Le=(t,e,n,o,i,r,s)=>y(void 0,null,function*(){var a,c;if(!t.presented)return!1;U!==void 0&&Be(U).length===1&&(Ot(!1),document.body.classList.remove(et)),t.presented=!1;try{t.el.style.setProperty("pointer-events","none"),t.willDismiss.emit({data:e,role:n}),(a=t.willDismissShorthand)===null||a===void 0||a.emit({data:e,role:n});let f=L(t),p=t.leaveAnimation?t.leaveAnimation:X.get(o,f==="ios"?i:r);n!==re&&(yield zt(t,p,t.el,s)),t.didDismiss.emit({data:e,role:n}),(c=t.didDismissShorthand)===null||c===void 0||c.emit({data:e,role:n}),(Re.get(t)||[]).forEach(u=>u.destroy()),Re.delete(t),t.el.classList.add("overlay-hidden"),t.el.style.removeProperty("pointer-events"),t.el.lastFocus!==void 0&&(t.el.lastFocus=void 0)}catch(f){console.error(f)}return t.el.remove(),wn(),!0}),Lt=t=>t.querySelector("ion-app")||t.body,zt=(t,e,n,o)=>y(void 0,null,function*(){n.classList.remove("overlay-hidden");let i=t.el,r=e(i,o);(!t.animated||!X.getBoolean("animated",!0))&&r.duration(0),t.keyboardClose&&r.beforeAddWrite(()=>{let a=n.ownerDocument.activeElement;a?.matches("input,ion-input, ion-textarea")&&a.blur()});let s=Re.get(t)||[];return Re.set(t,[...s,r]),yield r.play(),!0}),ie=(t,e)=>{let n,o=new Promise(i=>n=i);return yn(t,e,i=>{n(i.detail)}),o},yn=(t,e,n)=>{let o=i=>{kt(t,e,o),n(i)};ye(t,e,o)};var oe="backdrop",re="gesture",_t=39;var Nt=()=>{let t,e=()=>{t&&(t(),t=void 0)};return{addClickListener:(o,i)=>{e();let r=i!==void 0?document.getElementById(i):null;if(!r){G(`A trigger element with the ID "${i}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,o);return}t=((a,c)=>{let d=()=>{c.present()};return a.addEventListener("click",d),()=>{a.removeEventListener("click",d)}})(r,o)},removeClickListener:e}},Dn=t=>{var e;if(U===void 0)return;let n=Be(U);for(let o=n.length-1;o>=0;o--){let i=n[o],r=(e=n[o+1])!==null&&e!==void 0?e:t;(r.hasAttribute("aria-hidden")||r.tagName!=="ION-TOAST")&&i.setAttribute("aria-hidden","true")}},wn=()=>{if(U===void 0)return;let t=Be(U);for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.removeAttribute("aria-hidden"),n.tagName!=="ION-TOAST")break}},K="ion-disable-focus-trap";var _e=new ve("USERCONFIG");var ze=class{data;constructor(e={}){this.data=e,console.warn("[Ionic Warning]: NavParams has been deprecated in favor of using Angular's input API. Developers should migrate to either the @Input decorator or the Signals-based input API.")}get(e){return this.data[e]}},Ne=(()=>{class t{zone=N(Ie);applicationRef=N(Ct);config=N(_e);create(n,o,i){return new at(n,o,this.applicationRef,this.zone,i,this.config.useSetInputAPI??!1)}static \u0275fac=function(o){return new(o||t)};static \u0275prov=ae({token:t,factory:t.\u0275fac})}return t})(),at=class{environmentInjector;injector;applicationRef;zone;elementReferenceKey;enableSignalsSupport;elRefMap=new WeakMap;elEventsMap=new WeakMap;constructor(e,n,o,i,r,s){this.environmentInjector=e,this.injector=n,this.applicationRef=o,this.zone=i,this.elementReferenceKey=r,this.enableSignalsSupport=s}attachViewToDom(e,n,o,i){return this.zone.run(()=>new Promise(r=>{let s=q({},o);this.elementReferenceKey!==void 0&&(s[this.elementReferenceKey]=e);let a=Hn(this.zone,this.environmentInjector,this.injector,this.applicationRef,this.elRefMap,this.elEventsMap,e,n,s,i,this.elementReferenceKey,this.enableSignalsSupport);r(a)}))}removeViewFromDom(e,n){return this.zone.run(()=>new Promise(o=>{let i=this.elRefMap.get(n);if(i){i.destroy(),this.elRefMap.delete(n);let r=this.elEventsMap.get(n);r&&(r(),this.elEventsMap.delete(n))}o()}))}},Hn=(t,e,n,o,i,r,s,a,c,d,f,p)=>{let m=Y.create({providers:Zn(c),parent:n}),u=bt(a,{environmentInjector:e,elementInjector:m}),h=u.instance,l=u.location.nativeElement;if(c)if(f&&h[f]!==void 0&&console.error(`[Ionic Error]: ${f} is a reserved property when using ${s.tagName.toLowerCase()}. Rename or remove the "${f}" property from ${a.name}.`),p===!0&&u.setInput!==void 0){let D=c,{modal:k,popover:I}=D,C=mt(D,["modal","popover"]);for(let w in C)u.setInput(w,C[w]);k!==void 0&&Object.assign(h,{modal:k}),I!==void 0&&Object.assign(h,{popover:I})}else Object.assign(h,c);if(d)for(let k of d)l.classList.add(k);let g=Wn(t,h,l);return s.appendChild(l),o.attachView(u.hostView),i.set(l,u),r.set(l,g),l},Vn=[Ue,Xe,Ke,Qe,Je],Wn=(t,e,n)=>t.run(()=>{let o=Vn.filter(i=>typeof e[i]=="function").map(i=>{let r=s=>e[i](s.detail);return n.addEventListener(i,r),()=>n.removeEventListener(i,r)});return()=>o.forEach(i=>i())}),$t=new ve("NavParamsToken"),Zn=t=>[{provide:$t,useValue:t},{provide:ze,useFactory:qn,deps:[$t]}],qn=t=>new ze(t);var Gn=new ve(""),Yn=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:o}=n,i=ht([o.queryParams,o.params,o.data]).pipe(gt(([r,s,a],c)=>(a=q(q(q({},r),s),a),c===0?ft(a):Promise.resolve(a)))).subscribe(r=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==o||o.component===null){this.unsubscribeFromRouteData(n);return}let s=yt(o.component);if(!s){this.unsubscribeFromRouteData(n);return}for(let{templateName:a}of s.inputs)n.activatedComponentRef.setInput(a,r[a])});this.outletDataSubscriptions.set(n,i)}static \u0275fac=function(o){return new(o||t)};static \u0275prov=ae({token:t,factory:t.\u0275fac})}return t})(),Vt=()=>({provide:Gn,useFactory:Un,deps:[wt]});function Un(t){return t?.componentInputBindingEnabled?new Yn:null}var pe=class{ctrl;constructor(e){this.ctrl=e}create(e){return this.ctrl.create(e||{})}dismiss(e,n,o){return this.ctrl.dismiss(e,n,o)}getTop(){return this.ctrl.getTop()}};var $e=()=>{let t;return{lock:()=>y(void 0,null,function*(){let n=t,o;return t=new Promise(i=>o=i),n!==void 0&&(yield n),o})}};var Xn=":host{left:0;right:0;top:0;bottom:0;display:block;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);contain:strict;cursor:pointer;opacity:0.01;-ms-touch-action:none;touch-action:none;z-index:2}:host(.backdrop-hide){background:transparent}:host(.backdrop-no-tappable){cursor:auto}:host{background-color:var(--ion-backdrop-color, #000)}",Kn=Xn,Qn=":host{left:0;right:0;top:0;bottom:0;display:block;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);contain:strict;cursor:pointer;opacity:0.01;-ms-touch-action:none;touch-action:none;z-index:2}:host(.backdrop-hide){background:transparent}:host(.backdrop-no-tappable){cursor:auto}:host{background-color:var(--ion-backdrop-color, #000)}",Jn=Qn,eo=ee(class extends te{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.ionBackdropTap=E(this,"ionBackdropTap",7),this.visible=!0,this.tappable=!0,this.stopPropagation=!0}onMouseDown(e){this.emitTap(e)}emitTap(e){this.stopPropagation&&(e.preventDefault(),e.stopPropagation()),this.tappable&&this.ionBackdropTap.emit()}render(){let e=L(this);return M(J,{key:"c803b4302c8e722064feb03dafe3cb6e190b4f2b",tabindex:"-1","aria-hidden":"true",class:{[e]:!0,"backdrop-hide":!this.visible,"backdrop-no-tappable":!this.tappable}})}static get style(){return{ios:Kn,md:Jn}}},[33,"ion-backdrop",{visible:[4],tappable:[4],stopPropagation:[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]);function He(){if(typeof customElements>"u")return;["ion-backdrop"].forEach(e=>{switch(e){case"ion-backdrop":customElements.get(e)||customElements.define(e,eo);break}})}var me=function(t){return t.Dark="DARK",t.Light="LIGHT",t.Default="DEFAULT",t}(me||{}),ut={getEngine(){let t=Mt();if(t?.isPluginAvailable("StatusBar"))return t.Plugins.StatusBar},setStyle(t){let e=this.getEngine();e&&e.setStyle(t)},getStyle:function(){return y(this,null,function*(){let t=this.getEngine();if(!t)return me.Default;let{style:e}=yield t.getInfo();return e})}},ct=(t,e)=>{if(e===1)return 0;let n=1/(1-e),o=-(e*n);return t*n+o},Gt=()=>{!ce||ce.innerWidth>=768||ut.setStyle({style:me.Dark})},lt=(t=me.Default)=>{!ce||ce.innerWidth>=768||ut.setStyle({style:t})},Yt=(t,e)=>y(void 0,null,function*(){typeof t.canDismiss!="function"||!(yield t.canDismiss(void 0,re))||(e.isRunning()?e.onFinish(()=>{t.dismiss(void 0,"handler")},{oneTimeCallback:!0}):t.dismiss(void 0,"handler"))}),dt=t=>.00255275*2.71828**(-14.9619*t)-1.00255*2.71828**(-.0380968*t)+1,Ve={MIN_PRESENTING_SCALE:.915},to=(t,e,n,o)=>{let r=t.offsetHeight,s=!1,a=!1,c=null,d=null,f=.2,p=!0,m=0,u=()=>c&&ke(c)?c.scrollY:!0,k=Ee({el:t,gestureName:"modalSwipeToClose",gesturePriority:_t,direction:"y",threshold:10,canStart:I=>{let C=I.event.target;return C===null||!C.closest?!0:(c=tt(C),c?(ke(c)?d=A(c).querySelector(".inner-scroll"):d=c,!!!c.querySelector("ion-refresher")&&d.scrollTop===0):C.closest("ion-footer")===null)},onStart:I=>{let{deltaY:C}=I;p=u(),a=t.canDismiss!==void 0&&t.canDismiss!==!0,C>0&&c&&nt(c),e.progressStart(!0,s?1:0)},onMove:I=>{let{deltaY:C}=I;C>0&&c&&nt(c);let w=I.deltaY/r,b=w>=0&&a,x=b?f:.9999,S=b?dt(w/x):w,j=le(1e-4,S,x);e.progressStep(j),j>=.5&&m<.5?lt(n):j<.5&&m>=.5&&Gt(),m=j},onEnd:I=>{let C=I.velocityY,w=I.deltaY/r,b=w>=0&&a,x=b?f:.9999,S=b?dt(w/x):w,j=le(1e-4,S,x),$=(I.deltaY+C*1e3)/r,R=!b&&$>=.5,O=R?-.001:.001;R?(e.easing("cubic-bezier(0.32, 0.72, 0, 1)"),O+=xe([0,0],[.32,.72],[0,1],[1,1],j)[0]):(e.easing("cubic-bezier(1, 0, 0.68, 0.28)"),O+=xe([0,0],[1,0],[.68,.28],[1,1],j)[0]);let H=Wt(R?w*r:(1-j)*r,C);s=R,k.enable(!1),c&&At(c,p),e.onFinish(()=>{R||k.enable(!0)}).progressEnd(R?1:0,O,H),b&&j>x/4?Yt(t,e):R&&o()}});return k},Wt=(t,e)=>le(400,t/Math.abs(e*1.1),500),Ut=t=>{let{currentBreakpoint:e,backdropBreakpoint:n}=t,o=n===void 0||n<e,i=o?`calc(var(--backdrop-opacity) * ${e})`:"0",r=v("backdropAnimation").fromTo("opacity",0,i);return o&&r.beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),{wrapperAnimation:v("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:"translateY(100%)"},{offset:1,opacity:1,transform:`translateY(${100-e*100}%)`}]),backdropAnimation:r}},Xt=t=>{let{currentBreakpoint:e,backdropBreakpoint:n}=t,o=`calc(var(--backdrop-opacity) * ${ct(e,n)})`,i=[{offset:0,opacity:o},{offset:1,opacity:0}],r=[{offset:0,opacity:o},{offset:n,opacity:0},{offset:1,opacity:0}],s=v("backdropAnimation").keyframes(n!==0?r:i);return{wrapperAnimation:v("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:`translateY(${100-e*100}%)`},{offset:1,opacity:1,transform:"translateY(100%)"}]),backdropAnimation:s}},no=()=>{let t=v().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),e=v().fromTo("transform","translateY(100vh)","translateY(0vh)");return{backdropAnimation:t,wrapperAnimation:e}},Zt=(t,e)=>{let{presentingEl:n,currentBreakpoint:o}=e,i=A(t),{wrapperAnimation:r,backdropAnimation:s}=o!==void 0?Ut(e):no();s.addElement(i.querySelector("ion-backdrop")),r.addElement(i.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});let a=v("entering-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(500).addAnimation(r);if(n){let c=window.innerWidth<768,d=n.tagName==="ION-MODAL"&&n.presentingElement!==void 0,f=A(n),p=v().beforeStyles({transform:"translateY(0)","transform-origin":"top center",overflow:"hidden"}),m=document.body;if(c){let u=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",h=d?"-10px":u,l=Ve.MIN_PRESENTING_SCALE,g=`translateY(${h}) scale(${l})`;p.afterStyles({transform:g}).beforeAddWrite(()=>m.style.setProperty("background-color","black")).addElement(n).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"},{offset:1,filter:"contrast(0.85)",transform:g,borderRadius:"10px 10px 0 0"}]),a.addAnimation(p)}else if(a.addAnimation(s),!d)r.fromTo("opacity","0","1");else{let h=`translateY(-10px) scale(${d?Ve.MIN_PRESENTING_SCALE:1})`;p.afterStyles({transform:h}).addElement(f.querySelector(".modal-wrapper")).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0) scale(1)"},{offset:1,filter:"contrast(0.85)",transform:h}]);let l=v().afterStyles({transform:h}).addElement(f.querySelector(".modal-shadow")).keyframes([{offset:0,opacity:"1",transform:"translateY(0) scale(1)"},{offset:1,opacity:"0",transform:h}]);a.addAnimation([p,l])}}else a.addAnimation(s);return a},oo=()=>{let t=v().fromTo("opacity","var(--backdrop-opacity)",0),e=v().fromTo("transform","translateY(0vh)","translateY(100vh)");return{backdropAnimation:t,wrapperAnimation:e}},qt=(t,e,n=500)=>{let{presentingEl:o,currentBreakpoint:i}=e,r=A(t),{wrapperAnimation:s,backdropAnimation:a}=i!==void 0?Xt(e):oo();a.addElement(r.querySelector("ion-backdrop")),s.addElement(r.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});let c=v("leaving-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(n).addAnimation(s);if(o){let d=window.innerWidth<768,f=o.tagName==="ION-MODAL"&&o.presentingElement!==void 0,p=A(o),m=v().beforeClearStyles(["transform"]).afterClearStyles(["transform"]).onFinish(h=>{if(h!==1)return;o.style.setProperty("overflow",""),Array.from(u.querySelectorAll("ion-modal:not(.overlay-hidden)")).filter(g=>g.presentingElement!==void 0).length<=1&&u.style.setProperty("background-color","")}),u=document.body;if(d){let h=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",l=f?"-10px":h,g=Ve.MIN_PRESENTING_SCALE,D=`translateY(${l}) scale(${g})`;m.addElement(o).keyframes([{offset:0,filter:"contrast(0.85)",transform:D,borderRadius:"10px 10px 0 0"},{offset:1,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"}]),c.addAnimation(m)}else if(c.addAnimation(a),!f)s.fromTo("opacity","1","0");else{let l=`translateY(-10px) scale(${f?Ve.MIN_PRESENTING_SCALE:1})`;m.addElement(p.querySelector(".modal-wrapper")).afterStyles({transform:"translate3d(0, 0, 0)"}).keyframes([{offset:0,filter:"contrast(0.85)",transform:l},{offset:1,filter:"contrast(1)",transform:"translateY(0) scale(1)"}]);let g=v().addElement(p.querySelector(".modal-shadow")).afterStyles({transform:"translateY(0) scale(1)"}).keyframes([{offset:0,opacity:"0",transform:l},{offset:1,opacity:"1",transform:"translateY(0) scale(1)"}]);c.addAnimation([m,g])}}else c.addAnimation(a);return c},io=()=>{let t=v().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),e=v().keyframes([{offset:0,opacity:.01,transform:"translateY(40px)"},{offset:1,opacity:1,transform:"translateY(0px)"}]);return{backdropAnimation:t,wrapperAnimation:e}},ro=(t,e)=>{let{currentBreakpoint:n}=e,o=A(t),{wrapperAnimation:i,backdropAnimation:r}=n!==void 0?Ut(e):io();return r.addElement(o.querySelector("ion-backdrop")),i.addElement(o.querySelector(".modal-wrapper")),v().addElement(t).easing("cubic-bezier(0.36,0.66,0.04,1)").duration(280).addAnimation([r,i])},so=()=>{let t=v().fromTo("opacity","var(--backdrop-opacity)",0),e=v().keyframes([{offset:0,opacity:.99,transform:"translateY(0px)"},{offset:1,opacity:0,transform:"translateY(40px)"}]);return{backdropAnimation:t,wrapperAnimation:e}},ao=(t,e)=>{let{currentBreakpoint:n}=e,o=A(t),{wrapperAnimation:i,backdropAnimation:r}=n!==void 0?Xt(e):so();return r.addElement(o.querySelector("ion-backdrop")),i.addElement(o.querySelector(".modal-wrapper")),v().easing("cubic-bezier(0.47,0,0.745,0.715)").duration(200).addAnimation([r,i])},co=(t,e,n,o,i,r,s=[],a,c,d)=>{let f=[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1,opacity:.01}],p=[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1-i,opacity:0},{offset:1,opacity:0}],m={WRAPPER_KEYFRAMES:[{offset:0,transform:"translateY(0%)"},{offset:1,transform:"translateY(100%)"}],BACKDROP_KEYFRAMES:i!==0?p:f},u=t.querySelector("ion-content"),h=n.clientHeight,l=o,g=0,D=!1,k=.95,I=r.childAnimations.find(T=>T.id==="wrapperAnimation"),C=r.childAnimations.find(T=>T.id==="backdropAnimation"),w=s[s.length-1],b=s[0],x=()=>{t.style.setProperty("pointer-events","auto"),e.style.setProperty("pointer-events","auto"),t.classList.remove(K)},S=()=>{t.style.setProperty("pointer-events","none"),e.style.setProperty("pointer-events","none"),t.classList.add(K)};I&&C&&(I.keyframes([...m.WRAPPER_KEYFRAMES]),C.keyframes([...m.BACKDROP_KEYFRAMES]),r.progressStart(!0,1-l),l>i?x():S()),u&&l!==w&&(u.scrollY=!1);let j=T=>{let F=tt(T.event.target);if(l=a(),l===1&&F){let P=ke(F)?A(F).querySelector(".inner-scroll"):F;return!!!F.querySelector("ion-refresher")&&P.scrollTop===0}return!0},$=T=>{D=t.canDismiss!==void 0&&t.canDismiss!==!0&&b===0,T.deltaY>0&&u&&(u.scrollY=!1),W(()=>{t.focus()}),r.progressStart(!0,1-l)},R=T=>{T.deltaY>0&&u&&(u.scrollY=!1);let F=1-l,P=s.length>1?1-s[1]:void 0,z=F+T.deltaY/h,Z=P!==void 0&&z>=P&&D,_=Z?k:.9999,B=Z&&P!==void 0?P+dt((z-P)/(_-P)):z;g=le(1e-4,B,_),r.progressStep(g)},O=T=>{let F=T.velocityY,P=(T.deltaY+F*350)/h,z=l-P,Z=s.reduce((_,B)=>Math.abs(B-z)<Math.abs(_-z)?B:_);H({breakpoint:Z,breakpointOffset:g,canDismiss:D,animated:!0})},H=T=>{let{breakpoint:F,canDismiss:P,breakpointOffset:z,animated:Z}=T,_=P&&F===0,B=_?l:F,fe=B!==0;return l=0,I&&C&&(I.keyframes([{offset:0,transform:`translateY(${z*100}%)`},{offset:1,transform:`translateY(${(1-B)*100}%)`}]),C.keyframes([{offset:0,opacity:`calc(var(--backdrop-opacity) * ${ct(1-z,i)})`},{offset:1,opacity:`calc(var(--backdrop-opacity) * ${ct(B,i)})`}]),r.progressStep(0)),V.enable(!1),_?Yt(t,r):fe||c(),u&&B===s[s.length-1]&&(u.scrollY=!0),new Promise(se=>{r.onFinish(()=>{fe?I&&C?W(()=>{I.keyframes([...m.WRAPPER_KEYFRAMES]),C.keyframes([...m.BACKDROP_KEYFRAMES]),r.progressStart(!0,1-B),l=B,d(l),l>i?x():S(),V.enable(!0),se()}):(V.enable(!0),se()):se()},{oneTimeCallback:!0}).progressEnd(1,0,Z?500:0)})},V=Ee({el:n,gestureName:"modalSheet",gesturePriority:40,direction:"y",threshold:10,canStart:j,onStart:$,onMove:R,onEnd:O});return{gesture:V,moveSheetToBreakpoint:H}},lo=':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be));cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.4)}:host(.modal-card),:host(.modal-sheet){--border-radius:10px}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:10px}}.modal-wrapper{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}@media screen and (max-width: 767px){@supports (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - max(30px, var(--ion-safe-area-top)) - 10px)}}@supports not (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - 40px)}}:host(.modal-card) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}:host(.modal-card){--backdrop-opacity:0;--width:100%;-ms-flex-align:end;align-items:flex-end}:host(.modal-card) .modal-shadow{display:none}:host(.modal-card) ion-backdrop{pointer-events:none}}@media screen and (min-width: 768px){:host(.modal-card){--width:calc(100% - 120px);--height:calc(100% - (120px + var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));--max-width:720px;--max-height:1000px;--backdrop-opacity:0;--box-shadow:0px 0px 30px 10px rgba(0, 0, 0, 0.1);-webkit-transition:all 0.5s ease-in-out;transition:all 0.5s ease-in-out}:host(.modal-card) .modal-wrapper{-webkit-box-shadow:none;box-shadow:none}:host(.modal-card) .modal-shadow{-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}}:host(.modal-sheet) .modal-wrapper{border-start-start-radius:var(--border-radius);border-start-end-radius:var(--border-radius);border-end-end-radius:0;border-end-start-radius:0}',uo=lo,po=':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, var(--ion-background-color-step-350, #c0c0be));cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:2px;--box-shadow:0 28px 48px rgba(0, 0, 0, 0.4)}}.modal-wrapper{-webkit-transform:translate3d(0, 40px, 0);transform:translate3d(0, 40px, 0);opacity:0.01}',mo=po,fo=ee(class extends te{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.didPresent=E(this,"ionModalDidPresent",7),this.willPresent=E(this,"ionModalWillPresent",7),this.willDismiss=E(this,"ionModalWillDismiss",7),this.didDismiss=E(this,"ionModalDidDismiss",7),this.ionBreakpointDidChange=E(this,"ionBreakpointDidChange",7),this.didPresentShorthand=E(this,"didPresent",7),this.willPresentShorthand=E(this,"willPresent",7),this.willDismissShorthand=E(this,"willDismiss",7),this.didDismissShorthand=E(this,"didDismiss",7),this.ionMount=E(this,"ionMount",7),this.lockController=$e(),this.triggerController=Nt(),this.coreDelegate=Ae(),this.isSheetModal=!1,this.inheritedAttributes={},this.inline=!1,this.gestureAnimationDismissing=!1,this.onHandleClick=()=>{let{sheetTransition:e,handleBehavior:n}=this;n!=="cycle"||e!==void 0||this.moveToNextBreakpoint()},this.onBackdropTap=()=>{let{sheetTransition:e}=this;e===void 0&&this.dismiss(void 0,oe)},this.onLifecycle=e=>{let n=this.usersElement,o=ho[e.type];if(n&&o){let i=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e.detail});n.dispatchEvent(i)}},this.presented=!1,this.hasController=!1,this.overlayIndex=void 0,this.delegate=void 0,this.keyboardClose=!0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.breakpoints=void 0,this.initialBreakpoint=void 0,this.backdropBreakpoint=0,this.handle=void 0,this.handleBehavior="none",this.component=void 0,this.componentProps=void 0,this.cssClass=void 0,this.backdropDismiss=!0,this.showBackdrop=!0,this.animated=!0,this.presentingElement=void 0,this.htmlAttributes=void 0,this.isOpen=!1,this.trigger=void 0,this.keepContentsMounted=!1,this.focusTrap=!0,this.canDismiss=!0}onIsOpenChange(e,n){e===!0&&n===!1?this.present():e===!1&&n===!0&&this.dismiss()}triggerChanged(){let{trigger:e,el:n,triggerController:o}=this;e&&o.addClickListener(n,e)}breakpointsChanged(e){e!==void 0&&(this.sortedBreakpoints=e.sort((n,o)=>n-o))}connectedCallback(){let{el:e}=this;Fe(e),this.triggerChanged()}disconnectedCallback(){this.triggerController.removeClickListener()}componentWillLoad(){let{breakpoints:e,initialBreakpoint:n,el:o,htmlAttributes:i}=this,r=this.isSheetModal=e!==void 0&&n!==void 0,s=["aria-label","role"];this.inheritedAttributes=Et(o,s),i!==void 0&&s.forEach(a=>{i[a]&&(this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[a]:i[a]}),delete i[a])}),r&&(this.currentBreakpoint=this.initialBreakpoint),e!==void 0&&n!==void 0&&!e.includes(n)&&G("Your breakpoints array must include the initialBreakpoint value."),Pe(o)}componentDidLoad(){this.isOpen===!0&&W(()=>this.present()),this.breakpointsChanged(this.breakpoints),this.triggerChanged()}getDelegate(e=!1){if(this.workingDelegate&&!e)return{delegate:this.workingDelegate,inline:this.inline};let n=this.el.parentNode,o=this.inline=n!==null&&!this.hasController,i=this.workingDelegate=o?this.delegate||this.coreDelegate:this.delegate;return{inline:o,delegate:i}}checkCanDismiss(e,n){return y(this,null,function*(){let{canDismiss:o}=this;return typeof o=="function"?o(e,n):o})}present(){return y(this,null,function*(){let e=yield this.lockController.lock();if(this.presented){e();return}let{presentingElement:n,el:o}=this;this.currentBreakpoint=this.initialBreakpoint;let{inline:i,delegate:r}=this.getDelegate(!0);this.ionMount.emit(),this.usersElement=yield je(r,o,this.component,["ion-page"],this.componentProps,i),be(o)?yield we(this.usersElement):this.keepContentsMounted||(yield De()),qe(()=>this.el.classList.add("show-modal"));let s=n!==void 0;s&&L(this)==="ios"&&(this.statusBarStyle=yield ut.getStyle(),Gt()),yield Oe(this,"modalEnter",Zt,ro,{presentingEl:n,currentBreakpoint:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint}),typeof window<"u"&&(this.keyboardOpenCallback=()=>{this.gesture&&(this.gesture.enable(!1),W(()=>{this.gesture&&this.gesture.enable(!0)}))},window.addEventListener(ot,this.keyboardOpenCallback)),this.isSheetModal?this.initSheetGesture():s&&this.initSwipeToClose(),e()})}initSwipeToClose(){var e;if(L(this)!=="ios")return;let{el:n}=this,o=this.leaveAnimation||X.get("modalLeave",qt),i=this.animation=o(n,{presentingEl:this.presentingElement});if(!jt(n)){Tt(n);return}let s=(e=this.statusBarStyle)!==null&&e!==void 0?e:me.Default;this.gesture=to(n,i,s,()=>{this.gestureAnimationDismissing=!0,lt(this.statusBarStyle),this.animation.onFinish(()=>y(this,null,function*(){yield this.dismiss(void 0,re),this.gestureAnimationDismissing=!1}))}),this.gesture.enable(!0)}initSheetGesture(){let{wrapperEl:e,initialBreakpoint:n,backdropBreakpoint:o}=this;if(!e||n===void 0)return;let i=this.enterAnimation||X.get("modalEnter",Zt),r=this.animation=i(this.el,{presentingEl:this.presentingElement,currentBreakpoint:n,backdropBreakpoint:o});r.progressStart(!0,1);let{gesture:s,moveSheetToBreakpoint:a}=co(this.el,this.backdropEl,e,n,o,r,this.sortedBreakpoints,()=>{var c;return(c=this.currentBreakpoint)!==null&&c!==void 0?c:0},()=>this.sheetOnDismiss(),c=>{this.currentBreakpoint!==c&&(this.currentBreakpoint=c,this.ionBreakpointDidChange.emit({breakpoint:c}))});this.gesture=s,this.moveSheetToBreakpoint=a,this.gesture.enable(!0)}sheetOnDismiss(){this.gestureAnimationDismissing=!0,this.animation.onFinish(()=>y(this,null,function*(){this.currentBreakpoint=0,this.ionBreakpointDidChange.emit({breakpoint:this.currentBreakpoint}),yield this.dismiss(void 0,re),this.gestureAnimationDismissing=!1}))}dismiss(e,n){return y(this,null,function*(){var o;if(this.gestureAnimationDismissing&&n!==re)return!1;let i=yield this.lockController.lock();if(n!=="handler"&&!(yield this.checkCanDismiss(e,n)))return i(),!1;let{presentingElement:r}=this;r!==void 0&&L(this)==="ios"&<(this.statusBarStyle),typeof window<"u"&&this.keyboardOpenCallback&&(window.removeEventListener(ot,this.keyboardOpenCallback),this.keyboardOpenCallback=void 0);let a=yield Le(this,e,n,"modalLeave",qt,ao,{presentingEl:r,currentBreakpoint:(o=this.currentBreakpoint)!==null&&o!==void 0?o:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint});if(a){let{delegate:c}=this.getDelegate();yield Te(c,this.usersElement),qe(()=>this.el.classList.remove("show-modal")),this.animation&&this.animation.destroy(),this.gesture&&this.gesture.destroy()}return this.currentBreakpoint=void 0,this.animation=void 0,i(),a})}onDidDismiss(){return ie(this.el,"ionModalDidDismiss")}onWillDismiss(){return ie(this.el,"ionModalWillDismiss")}setCurrentBreakpoint(e){return y(this,null,function*(){if(!this.isSheetModal){G("setCurrentBreakpoint is only supported on sheet modals.");return}if(!this.breakpoints.includes(e)){G(`Attempted to set invalid breakpoint value ${e}. Please double check that the breakpoint value is part of your defined breakpoints.`);return}let{currentBreakpoint:n,moveSheetToBreakpoint:o,canDismiss:i,breakpoints:r,animated:s}=this;n!==e&&o&&(this.sheetTransition=o({breakpoint:e,breakpointOffset:1-n,canDismiss:i!==void 0&&i!==!0&&r[0]===0,animated:s}),yield this.sheetTransition,this.sheetTransition=void 0)})}getCurrentBreakpoint(){return y(this,null,function*(){return this.currentBreakpoint})}moveToNextBreakpoint(){return y(this,null,function*(){let{breakpoints:e,currentBreakpoint:n}=this;if(!e||n==null)return!1;let o=e.filter(a=>a!==0),r=(o.indexOf(n)+1)%o.length,s=o[r];return yield this.setCurrentBreakpoint(s),!0})}render(){let{handle:e,isSheetModal:n,presentingElement:o,htmlAttributes:i,handleBehavior:r,inheritedAttributes:s,focusTrap:a}=this,c=e!==!1&&n,d=L(this),f=o!==void 0&&d==="ios",p=r==="cycle";return M(J,Object.assign({key:"fe6fd17cf857127f89d652b9aa3e9473d28c55db","no-router":!0,tabindex:"-1"},i,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign({[d]:!0,"modal-default":!f&&!n,"modal-card":f,"modal-sheet":n,"overlay-hidden":!0,[K]:a===!1},Se(this.cssClass)),onIonBackdropTap:this.onBackdropTap,onIonModalDidPresent:this.onLifecycle,onIonModalWillPresent:this.onLifecycle,onIonModalWillDismiss:this.onLifecycle,onIonModalDidDismiss:this.onLifecycle}),M("ion-backdrop",{key:"0f3a31363c2717e5483bc0412c25804897d4aff8",ref:m=>this.backdropEl=m,visible:this.showBackdrop,tappable:this.backdropDismiss,part:"backdrop"}),d==="ios"&&M("div",{key:"0e5ed59162ff08fe0a9f757e06bdacc75f65c0ed",class:"modal-shadow"}),M("div",Object.assign({key:"35cdbe2238765e5f346ad7be64f7eefa8c78f0c0",role:"dialog"},s,{"aria-modal":"true",class:"modal-wrapper ion-overlay-wrapper",part:"content",ref:m=>this.wrapperEl=m}),c&&M("button",{key:"7a4031eaebf9a098f4c4220a5fe9d1c25cc0ec92",class:"modal-handle",tabIndex:p?0:-1,"aria-label":"Activate to adjust the size of the dialog overlaying the screen",onClick:p?this.onHandleClick:void 0,part:"handle"}),M("slot",{key:"534adc8e5bd850199fe2e9e16f0e7c19217d8486"})))}get el(){return this}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}static get style(){return{ios:uo,md:mo}}},[33,"ion-modal",{hasController:[4,"has-controller"],overlayIndex:[2,"overlay-index"],delegate:[16],keyboardClose:[4,"keyboard-close"],enterAnimation:[16],leaveAnimation:[16],breakpoints:[16],initialBreakpoint:[2,"initial-breakpoint"],backdropBreakpoint:[2,"backdrop-breakpoint"],handle:[4],handleBehavior:[1,"handle-behavior"],component:[1],componentProps:[16],cssClass:[1,"css-class"],backdropDismiss:[4,"backdrop-dismiss"],showBackdrop:[4,"show-backdrop"],animated:[4],presentingElement:[16],htmlAttributes:[16],isOpen:[4,"is-open"],trigger:[1],keepContentsMounted:[4,"keep-contents-mounted"],focusTrap:[4,"focus-trap"],canDismiss:[4,"can-dismiss"],presented:[32],present:[64],dismiss:[64],onDidDismiss:[64],onWillDismiss:[64],setCurrentBreakpoint:[64],getCurrentBreakpoint:[64]},void 0,{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}]),ho={ionModalDidPresent:"ionViewDidEnter",ionModalWillPresent:"ionViewWillEnter",ionModalWillDismiss:"ionViewWillLeave",ionModalDidDismiss:"ionViewDidLeave"};function go(){if(typeof customElements>"u")return;["ion-modal","ion-backdrop"].forEach(e=>{switch(e){case"ion-modal":customElements.get(e)||customElements.define(e,fo);break;case"ion-backdrop":customElements.get(e)||He();break}})}var Kt=go;var vo=t=>{if(!t)return{arrowWidth:0,arrowHeight:0};let{width:e,height:n}=t.getBoundingClientRect();return{arrowWidth:e,arrowHeight:n}},Jt=(t,e,n)=>{let o=e.getBoundingClientRect(),i=o.height,r=o.width;return t==="cover"&&n&&(r=n.getBoundingClientRect().width),{contentWidth:r,contentHeight:i}},Io=(t,e,n,o)=>{let i=[],s=A(o).querySelector(".popover-content");switch(e){case"hover":i=[{eventName:"mouseenter",callback:a=>{document.elementFromPoint(a.clientX,a.clientY)!==t&&n.dismiss(void 0,void 0,!1)}}];break;case"context-menu":case"click":default:i=[{eventName:"click",callback:a=>{if(a.target.closest("[data-ion-popover-trigger]")===t){a.stopPropagation();return}n.dismiss(void 0,void 0,!1)}}];break}return i.forEach(({eventName:a,callback:c})=>s.addEventListener(a,c)),()=>{i.forEach(({eventName:a,callback:c})=>s.removeEventListener(a,c))}},Co=(t,e,n)=>{let o=[];switch(e){case"hover":let i;o=[{eventName:"mouseenter",callback:r=>y(void 0,null,function*(){r.stopPropagation(),i&&clearTimeout(i),i=setTimeout(()=>{W(()=>{n.presentFromTrigger(r),i=void 0})},100)})},{eventName:"mouseleave",callback:r=>{i&&clearTimeout(i);let s=r.relatedTarget;s&&s.closest("ion-popover")!==n&&n.dismiss(void 0,void 0,!1)}},{eventName:"click",callback:r=>r.stopPropagation()},{eventName:"ionPopoverActivateTrigger",callback:r=>n.presentFromTrigger(r,!0)}];break;case"context-menu":o=[{eventName:"contextmenu",callback:r=>{r.preventDefault(),n.presentFromTrigger(r)}},{eventName:"click",callback:r=>r.stopPropagation()},{eventName:"ionPopoverActivateTrigger",callback:r=>n.presentFromTrigger(r,!0)}];break;case"click":default:o=[{eventName:"click",callback:r=>n.presentFromTrigger(r)},{eventName:"ionPopoverActivateTrigger",callback:r=>n.presentFromTrigger(r,!0)}];break}return o.forEach(({eventName:i,callback:r})=>t.addEventListener(i,r)),t.setAttribute("data-ion-popover-trigger","true"),()=>{o.forEach(({eventName:i,callback:r})=>t.removeEventListener(i,r)),t.removeAttribute("data-ion-popover-trigger")}},en=(t,e)=>!e||e.tagName!=="ION-ITEM"?-1:t.findIndex(n=>n===e),bo=(t,e)=>{let n=en(t,e);return t[n+1]},yo=(t,e)=>{let n=en(t,e);return t[n-1]},We=t=>{let n=A(t).querySelector("button");n&&W(()=>n.focus())},Do=t=>t.hasAttribute("data-ion-popover-trigger"),wo=t=>{let e=n=>y(void 0,null,function*(){var o;let i=document.activeElement,r=[],s=(o=n.target)===null||o===void 0?void 0:o.tagName;if(!(s!=="ION-POPOVER"&&s!=="ION-ITEM")){try{r=Array.from(t.querySelectorAll("ion-item:not(ion-popover ion-popover *):not([disabled])"))}catch{}switch(n.key){case"ArrowLeft":(yield t.getParentPopover())&&t.dismiss(void 0,void 0,!1);break;case"ArrowDown":n.preventDefault();let c=bo(r,i);c!==void 0&&We(c);break;case"ArrowUp":n.preventDefault();let d=yo(r,i);d!==void 0&&We(d);break;case"Home":n.preventDefault();let f=r[0];f!==void 0&&We(f);break;case"End":n.preventDefault();let p=r[r.length-1];p!==void 0&&We(p);break;case"ArrowRight":case" ":case"Enter":if(i&&Do(i)){let m=new CustomEvent("ionPopoverActivateTrigger");i.dispatchEvent(m)}break}}});return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},tn=(t,e,n,o,i,r,s,a,c,d,f)=>{var p;let m={top:0,left:0,width:0,height:0};switch(r){case"event":if(!f)return c;let w=f;m={top:w.clientY,left:w.clientX,width:1,height:1};break;case"trigger":default:let b=f,x=d||((p=b?.detail)===null||p===void 0?void 0:p.ionShadowTarget)||b?.target;if(!x)return c;let S=x.getBoundingClientRect();m={top:S.top,left:S.left,width:S.width,height:S.height};break}let u=xo(s,m,e,n,o,i,t),h=So(a,s,m,e,n),l=u.top+h.top,g=u.left+h.left,{arrowTop:D,arrowLeft:k}=ko(s,o,i,l,g,e,n,t),{originX:I,originY:C}=Eo(s,a,t);return{top:l,left:g,referenceCoordinates:m,arrowTop:D,arrowLeft:k,originX:I,originY:C}},Eo=(t,e,n)=>{switch(t){case"top":return{originX:Qt(e),originY:"bottom"};case"bottom":return{originX:Qt(e),originY:"top"};case"left":return{originX:"right",originY:Ze(e)};case"right":return{originX:"left",originY:Ze(e)};case"start":return{originX:n?"left":"right",originY:Ze(e)};case"end":return{originX:n?"right":"left",originY:Ze(e)}}},Qt=t=>{switch(t){case"start":return"left";case"center":return"center";case"end":return"right"}},Ze=t=>{switch(t){case"start":return"top";case"center":return"center";case"end":return"bottom"}},ko=(t,e,n,o,i,r,s,a)=>{let c={arrowTop:o+s/2-e/2,arrowLeft:i+r-e/2},d={arrowTop:o+s/2-e/2,arrowLeft:i-e*1.5};switch(t){case"top":return{arrowTop:o+s,arrowLeft:i+r/2-e/2};case"bottom":return{arrowTop:o-n,arrowLeft:i+r/2-e/2};case"left":return c;case"right":return d;case"start":return a?d:c;case"end":return a?c:d;default:return{arrowTop:0,arrowLeft:0}}},xo=(t,e,n,o,i,r,s)=>{let a={top:e.top,left:e.left-n-i},c={top:e.top,left:e.left+e.width+i};switch(t){case"top":return{top:e.top-o-r,left:e.left};case"right":return c;case"bottom":return{top:e.top+e.height+r,left:e.left};case"left":return a;case"start":return s?c:a;case"end":return s?a:c}},So=(t,e,n,o,i)=>{switch(t){case"center":return To(e,n,o,i);case"end":return jo(e,n,o,i);case"start":default:return{top:0,left:0}}},jo=(t,e,n,o)=>{switch(t){case"start":case"end":case"left":case"right":return{top:-(o-e.height),left:0};case"top":case"bottom":default:return{top:0,left:-(n-e.width)}}},To=(t,e,n,o)=>{switch(t){case"start":case"end":case"left":case"right":return{top:-(o/2-e.height/2),left:0};case"top":case"bottom":default:return{top:0,left:-(n/2-e.width/2)}}},nn=(t,e,n,o,i,r,s,a,c,d,f,p,m=0,u=0,h=0)=>{let l=m,g=u,D=n,k=e,I,C=d,w=f,b=!1,x=!1,S=p?p.top+p.height:r/2-a/2,j=p?p.height:0,$=!1;return D<o+c?(D=o,b=!0,C="left"):s+o+D+c>i&&(x=!0,D=i-s-o,C="right"),S+j+a>r&&(t==="top"||t==="bottom")&&(S-a>0?(k=Math.max(12,S-a-j-(h-1)),l=k+a,w="bottom",$=!0):I=o),{top:k,left:D,bottom:I,originX:C,originY:w,checkSafeAreaLeft:b,checkSafeAreaRight:x,arrowTop:l,arrowLeft:g,addPopoverBottomClass:$}},Ao=(t,e=!1,n,o)=>!(!n&&!o||t!=="top"&&t!=="bottom"&&e),Mo=5,Ro=(t,e)=>{var n;let{event:o,size:i,trigger:r,reference:s,side:a,align:c}=e,d=t.ownerDocument,f=d.dir==="rtl",p=d.defaultView.innerWidth,m=d.defaultView.innerHeight,u=A(t),h=u.querySelector(".popover-content"),l=u.querySelector(".popover-arrow"),g=r||((n=o?.detail)===null||n===void 0?void 0:n.ionShadowTarget)||o?.target,{contentWidth:D,contentHeight:k}=Jt(i,h,g),{arrowWidth:I,arrowHeight:C}=vo(l),w={top:m/2-k/2,left:p/2-D/2,originX:f?"right":"left",originY:"top"},b=tn(f,D,k,I,C,s,a,c,w,r,o),x=i==="cover"?0:Mo,S=i==="cover"?0:25,{originX:j,originY:$,top:R,left:O,bottom:H,checkSafeAreaLeft:V,checkSafeAreaRight:T,arrowTop:F,arrowLeft:P,addPopoverBottomClass:z}=nn(a,b.top,b.left,x,p,m,D,k,S,b.originX,b.originY,b.referenceCoordinates,b.arrowTop,b.arrowLeft,C),Z=v(),_=v(),B=v();return _.addElement(u.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),B.addElement(u.querySelector(".popover-arrow")).addElement(u.querySelector(".popover-content")).fromTo("opacity",.01,1),Z.easing("ease").duration(100).beforeAddWrite(()=>{i==="cover"&&t.style.setProperty("--width",`${D}px`),z&&t.classList.add("popover-bottom"),H!==void 0&&h.style.setProperty("bottom",`${H}px`);let fe=" + var(--ion-safe-area-left, 0)",se=" - var(--ion-safe-area-right, 0)",he=`${O}px`;if(V&&(he=`${O}px${fe}`),T&&(he=`${O}px${se}`),h.style.setProperty("top",`calc(${R}px + var(--offset-y, 0))`),h.style.setProperty("left",`calc(${he} + var(--offset-x, 0))`),h.style.setProperty("transform-origin",`${$} ${j}`),l!==null){let an=b.top!==R||b.left!==O;Ao(a,an,o,r)?(l.style.setProperty("top",`calc(${F}px + var(--offset-y, 0))`),l.style.setProperty("left",`calc(${P}px + var(--offset-x, 0))`)):l.style.setProperty("display","none")}}).addAnimation([_,B])},Fo=t=>{let e=A(t),n=e.querySelector(".popover-content"),o=e.querySelector(".popover-arrow"),i=v(),r=v(),s=v();return r.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),s.addElement(e.querySelector(".popover-arrow")).addElement(e.querySelector(".popover-content")).fromTo("opacity",.99,0),i.easing("ease").afterAddWrite(()=>{t.style.removeProperty("--width"),t.classList.remove("popover-bottom"),n.style.removeProperty("top"),n.style.removeProperty("left"),n.style.removeProperty("bottom"),n.style.removeProperty("transform-origin"),o&&(o.style.removeProperty("top"),o.style.removeProperty("left"),o.style.removeProperty("display"))}).duration(300).addAnimation([r,s])},Po=12,Bo=(t,e)=>{var n;let{event:o,size:i,trigger:r,reference:s,side:a,align:c}=e,d=t.ownerDocument,f=d.dir==="rtl",p=d.defaultView.innerWidth,m=d.defaultView.innerHeight,u=A(t),h=u.querySelector(".popover-content"),l=r||((n=o?.detail)===null||n===void 0?void 0:n.ionShadowTarget)||o?.target,{contentWidth:g,contentHeight:D}=Jt(i,h,l),k={top:m/2-D/2,left:p/2-g/2,originX:f?"right":"left",originY:"top"},I=tn(f,g,D,0,0,s,a,c,k,r,o),C=i==="cover"?0:Po,{originX:w,originY:b,top:x,left:S,bottom:j}=nn(a,I.top,I.left,C,p,m,g,D,0,I.originX,I.originY,I.referenceCoordinates),$=v(),R=v(),O=v(),H=v(),V=v();return R.addElement(u.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),O.addElement(u.querySelector(".popover-wrapper")).duration(150).fromTo("opacity",.01,1),H.addElement(h).beforeStyles({top:`calc(${x}px + var(--offset-y, 0px))`,left:`calc(${S}px + var(--offset-x, 0px))`,"transform-origin":`${b} ${w}`}).beforeAddWrite(()=>{j!==void 0&&h.style.setProperty("bottom",`${j}px`)}).fromTo("transform","scale(0.8)","scale(1)"),V.addElement(u.querySelector(".popover-viewport")).fromTo("opacity",.01,1),$.easing("cubic-bezier(0.36,0.66,0.04,1)").duration(300).beforeAddWrite(()=>{i==="cover"&&t.style.setProperty("--width",`${g}px`),b==="bottom"&&t.classList.add("popover-bottom")}).addAnimation([R,O,H,V])},Oo=t=>{let e=A(t),n=e.querySelector(".popover-content"),o=v(),i=v(),r=v();return i.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),r.addElement(e.querySelector(".popover-wrapper")).fromTo("opacity",.99,0),o.easing("ease").afterAddWrite(()=>{t.style.removeProperty("--width"),t.classList.remove("popover-bottom"),n.style.removeProperty("top"),n.style.removeProperty("left"),n.style.removeProperty("bottom"),n.style.removeProperty("transform-origin")}).duration(150).addAnimation([i,r])},Lo=':host{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;--offset-x:0px;--offset-y:0px;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}:host(.popover-nested){pointer-events:none}:host(.popover-nested) .popover-wrapper{pointer-events:auto}:host(.overlay-hidden){display:none}.popover-wrapper{z-index:10}.popover-content{display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:auto;z-index:10}::slotted(.popover-viewport){--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host(.popover-nested.popover-side-left){--offset-x:5px}:host(.popover-nested.popover-side-right){--offset-x:-5px}:host(.popover-nested.popover-side-start){--offset-x:5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-start),:host-context([dir=rtl]).popover-nested.popover-side-start{--offset-x:-5px}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-start:dir(rtl)){--offset-x:-5px}}:host(.popover-nested.popover-side-end){--offset-x:-5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-end),:host-context([dir=rtl]).popover-nested.popover-side-end{--offset-x:5px}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-end:dir(rtl)){--offset-x:5px}}:host{--width:200px;--max-height:90%;--box-shadow:none;--backdrop-opacity:var(--ion-backdrop-opacity, 0.08)}:host(.popover-desktop){--box-shadow:0px 4px 16px 0px rgba(0, 0, 0, 0.12)}.popover-content{border-radius:10px}:host(.popover-desktop) .popover-content{border:0.5px solid var(--ion-color-step-100, var(--ion-background-color-step-100, #e6e6e6))}.popover-arrow{display:block;position:absolute;width:20px;height:10px;overflow:hidden;z-index:11}.popover-arrow::after{top:3px;border-radius:3px;position:absolute;width:14px;height:14px;-webkit-transform:rotate(45deg);transform:rotate(45deg);background:var(--background);content:"";z-index:10}.popover-arrow::after{inset-inline-start:3px}:host(.popover-bottom) .popover-arrow{top:auto;bottom:-10px}:host(.popover-bottom) .popover-arrow::after{top:-6px}:host(.popover-side-left) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}:host(.popover-side-right) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host(.popover-side-top) .popover-arrow{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host(.popover-side-start) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}:host-context([dir=rtl]):host(.popover-side-start) .popover-arrow,:host-context([dir=rtl]).popover-side-start .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}@supports selector(:dir(rtl)){:host(.popover-side-start:dir(rtl)) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}}:host(.popover-side-end) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host-context([dir=rtl]):host(.popover-side-end) .popover-arrow,:host-context([dir=rtl]).popover-side-end .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}@supports selector(:dir(rtl)){:host(.popover-side-end:dir(rtl)) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}}.popover-arrow,.popover-content{opacity:0}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.popover-translucent) .popover-content,:host(.popover-translucent) .popover-arrow::after{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}}',zo=Lo,_o=":host{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;--offset-x:0px;--offset-y:0px;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}:host(.popover-nested){pointer-events:none}:host(.popover-nested) .popover-wrapper{pointer-events:auto}:host(.overlay-hidden){display:none}.popover-wrapper{z-index:10}.popover-content{display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:auto;z-index:10}::slotted(.popover-viewport){--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host(.popover-nested.popover-side-left){--offset-x:5px}:host(.popover-nested.popover-side-right){--offset-x:-5px}:host(.popover-nested.popover-side-start){--offset-x:5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-start),:host-context([dir=rtl]).popover-nested.popover-side-start{--offset-x:-5px}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-start:dir(rtl)){--offset-x:-5px}}:host(.popover-nested.popover-side-end){--offset-x:-5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-end),:host-context([dir=rtl]).popover-nested.popover-side-end{--offset-x:5px}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-end:dir(rtl)){--offset-x:5px}}:host{--width:250px;--max-height:90%;--box-shadow:0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}.popover-content{border-radius:4px;-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]) .popover-content{-webkit-transform-origin:right top;transform-origin:right top}[dir=rtl] .popover-content{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.popover-content:dir(rtl){-webkit-transform-origin:right top;transform-origin:right top}}.popover-viewport{-webkit-transition-delay:100ms;transition-delay:100ms}.popover-wrapper{opacity:0}",No=_o,on=ee(class extends te{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.didPresent=E(this,"ionPopoverDidPresent",7),this.willPresent=E(this,"ionPopoverWillPresent",7),this.willDismiss=E(this,"ionPopoverWillDismiss",7),this.didDismiss=E(this,"ionPopoverDidDismiss",7),this.didPresentShorthand=E(this,"didPresent",7),this.willPresentShorthand=E(this,"willPresent",7),this.willDismissShorthand=E(this,"willDismiss",7),this.didDismissShorthand=E(this,"didDismiss",7),this.ionMount=E(this,"ionMount",7),this.parentPopover=null,this.coreDelegate=Ae(),this.lockController=$e(),this.inline=!1,this.focusDescendantOnPresent=!1,this.onBackdropTap=()=>{this.dismiss(void 0,oe)},this.onLifecycle=e=>{let n=this.usersElement,o=$o[e.type];if(n&&o){let i=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e.detail});n.dispatchEvent(i)}},this.configureTriggerInteraction=()=>{let{trigger:e,triggerAction:n,el:o,destroyTriggerInteraction:i}=this;if(i&&i(),e===void 0)return;let r=this.triggerEl=e!==void 0?document.getElementById(e):null;if(!r){G(`A trigger element with the ID "${e}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on ion-popover.`,this.el);return}this.destroyTriggerInteraction=Co(r,n,o)},this.configureKeyboardInteraction=()=>{let{destroyKeyboardInteraction:e,el:n}=this;e&&e(),this.destroyKeyboardInteraction=wo(n)},this.configureDismissInteraction=()=>{let{destroyDismissInteraction:e,parentPopover:n,triggerAction:o,triggerEl:i,el:r}=this;!n||!i||(e&&e(),this.destroyDismissInteraction=Io(i,o,r,n))},this.presented=!1,this.hasController=!1,this.delegate=void 0,this.overlayIndex=void 0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.component=void 0,this.componentProps=void 0,this.keyboardClose=!0,this.cssClass=void 0,this.backdropDismiss=!0,this.event=void 0,this.showBackdrop=!0,this.translucent=!1,this.animated=!0,this.htmlAttributes=void 0,this.triggerAction="click",this.trigger=void 0,this.size="auto",this.dismissOnSelect=!1,this.reference="trigger",this.side="bottom",this.alignment=void 0,this.arrow=!0,this.isOpen=!1,this.keyboardEvents=!1,this.focusTrap=!0,this.keepContentsMounted=!1}onTriggerChange(){this.configureTriggerInteraction()}onIsOpenChange(e,n){e===!0&&n===!1?this.present():e===!1&&n===!0&&this.dismiss()}connectedCallback(){let{configureTriggerInteraction:e,el:n}=this;Fe(n),e()}disconnectedCallback(){let{destroyTriggerInteraction:e}=this;e&&e()}componentWillLoad(){let{el:e}=this,n=Pe(e);this.parentPopover=e.closest(`ion-popover:not(#${n})`),this.alignment===void 0&&(this.alignment=L(this)==="ios"?"center":"start")}componentDidLoad(){let{parentPopover:e,isOpen:n}=this;n===!0&&W(()=>this.present()),e&&ye(e,"ionPopoverWillDismiss",()=>{this.dismiss(void 0,void 0,!1)}),this.configureTriggerInteraction()}presentFromTrigger(e,n=!1){return y(this,null,function*(){this.focusDescendantOnPresent=n,yield this.present(e),this.focusDescendantOnPresent=!1})}getDelegate(e=!1){if(this.workingDelegate&&!e)return{delegate:this.workingDelegate,inline:this.inline};let n=this.el.parentNode,o=this.inline=n!==null&&!this.hasController,i=this.workingDelegate=o?this.delegate||this.coreDelegate:this.delegate;return{inline:o,delegate:i}}present(e){return y(this,null,function*(){let n=yield this.lockController.lock();if(this.presented){n();return}let{el:o}=this,{inline:i,delegate:r}=this.getDelegate(!0);this.ionMount.emit(),this.usersElement=yield je(r,o,this.component,["popover-viewport"],this.componentProps,i),this.keyboardEvents||this.configureKeyboardInteraction(),this.configureDismissInteraction(),be(o)?yield we(this.usersElement):this.keepContentsMounted||(yield De()),yield Oe(this,"popoverEnter",Ro,Bo,{event:e||this.event,size:this.size,trigger:this.triggerEl,reference:this.reference,side:this.side,align:this.alignment}),this.focusDescendantOnPresent&&Me(o),n()})}dismiss(e,n,o=!0){return y(this,null,function*(){let i=yield this.lockController.lock(),{destroyKeyboardInteraction:r,destroyDismissInteraction:s}=this;o&&this.parentPopover&&this.parentPopover.dismiss(e,n,o);let a=yield Le(this,e,n,"popoverLeave",Fo,Oo,this.event);if(a){r&&(r(),this.destroyKeyboardInteraction=void 0),s&&(s(),this.destroyDismissInteraction=void 0);let{delegate:c}=this.getDelegate();yield Te(c,this.usersElement)}return i(),a})}getParentPopover(){return y(this,null,function*(){return this.parentPopover})}onDidDismiss(){return ie(this.el,"ionPopoverDidDismiss")}onWillDismiss(){return ie(this.el,"ionPopoverWillDismiss")}render(){let e=L(this),{onLifecycle:n,parentPopover:o,dismissOnSelect:i,side:r,arrow:s,htmlAttributes:a,focusTrap:c}=this,d=Ce("desktop"),f=s&&!o;return M(J,Object.assign({key:"17e5e8b3e7ba5e251665fb9d0ade10c781f82f0e","aria-modal":"true","no-router":!0,tabindex:"-1"},a,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign(Object.assign({},Se(this.cssClass)),{[e]:!0,"popover-translucent":this.translucent,"overlay-hidden":!0,"popover-desktop":d,[`popover-side-${r}`]:!0,[K]:c===!1,"popover-nested":!!o}),onIonPopoverDidPresent:n,onIonPopoverWillPresent:n,onIonPopoverWillDismiss:n,onIonPopoverDidDismiss:n,onIonBackdropTap:this.onBackdropTap}),!o&&M("ion-backdrop",{key:"c12fb94b375d7e88a0c5d715440c0f66ad7ee817",tappable:this.backdropDismiss,visible:this.showBackdrop,part:"backdrop"}),M("div",{key:"478b388cc9a5a382003a2863e968e77a174914ab",class:"popover-wrapper ion-overlay-wrapper",onClick:i?()=>this.dismiss():void 0},f&&M("div",{key:"f1c63a0079f197a8d4577e7c00a654871fb9d816",class:"popover-arrow",part:"arrow"}),M("div",{key:"08b62a321c09ad4b0f90460468ecbc1d56320bf1",class:"popover-content",part:"content"},M("slot",{key:"55645ff597f64d434219caa28015cf2a4ceb0ee5"}))))}get el(){return this}static get watchers(){return{trigger:["onTriggerChange"],triggerAction:["onTriggerChange"],isOpen:["onIsOpenChange"]}}static get style(){return{ios:zo,md:No}}},[33,"ion-popover",{hasController:[4,"has-controller"],delegate:[16],overlayIndex:[2,"overlay-index"],enterAnimation:[16],leaveAnimation:[16],component:[1],componentProps:[16],keyboardClose:[4,"keyboard-close"],cssClass:[1,"css-class"],backdropDismiss:[4,"backdrop-dismiss"],event:[8],showBackdrop:[4,"show-backdrop"],translucent:[4],animated:[4],htmlAttributes:[16],triggerAction:[1,"trigger-action"],trigger:[1],size:[1],dismissOnSelect:[4,"dismiss-on-select"],reference:[1],side:[1],alignment:[1025],arrow:[4],isOpen:[4,"is-open"],keyboardEvents:[4,"keyboard-events"],focusTrap:[4,"focus-trap"],keepContentsMounted:[4,"keep-contents-mounted"],presented:[32],presentFromTrigger:[64],present:[64],dismiss:[64],getParentPopover:[64],onDidDismiss:[64],onWillDismiss:[64]},void 0,{trigger:["onTriggerChange"],triggerAction:["onTriggerChange"],isOpen:["onIsOpenChange"]}]),$o={ionPopoverDidPresent:"ionViewDidEnter",ionPopoverWillPresent:"ionViewWillEnter",ionPopoverWillDismiss:"ionViewWillLeave",ionPopoverDidDismiss:"ionViewDidLeave"};function rn(){if(typeof customElements>"u")return;["ion-popover","ion-backdrop"].forEach(e=>{switch(e){case"ion-popover":customElements.get(e)||customElements.define(e,on);break;case"ion-backdrop":customElements.get(e)||He();break}})}var sn=rn;var Ho=(()=>{class t extends pe{angularDelegate=N(Ne);injector=N(Y);environmentInjector=N(Q);constructor(){super(rt),Kt()}create(n){return super.create(ge(q({},n),{delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"modal")}))}static \u0275fac=function(o){return new(o||t)};static \u0275prov=ae({token:t,factory:t.\u0275fac})}return t})(),pt=class extends pe{angularDelegate=N(Ne);injector=N(Y);environmentInjector=N(Q);constructor(){super(st),sn()}create(e){return super.create(ge(q({},e),{delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"popover")}))}},Bs=(t={})=>vt([{provide:_e,useValue:t},{provide:It,useFactory:Vo,multi:!0,deps:[_e,Dt]},Vt(),Ne,Ho,pt]),Vo=(t,e)=>()=>{e.documentElement.classList.add("ion-ce"),Ge(t)};export{Bs as a};