const e=(e,t=[])=>{const n={};return t.forEach((t=>{e.hasAttribute(t)&&(null!==e.getAttribute(t)&&(n[t]=e.getAttribute(t)),e.removeAttribute(t))})),n},t=(e,t,n,r)=>{if("undefined"!=typeof window){const i=window,a=i&&i.Ionic&&i.Ionic.config;if(a){const i=a.get("_ael");if(i)return i(e,t,n,r);if(a._ael)return a._ael(e,t,n,r)}}return e.addEventListener(t,n,r)},n=(e,t,n,r)=>{if("undefined"!=typeof window){const i=window,a=i&&i.Ionic&&i.Ionic.config;if(a){const i=a.get("_rel");if(i)return i(e,t,n,r);if(a._rel)return a._rel(e,t,n,r)}}return e.removeEventListener(t,n,r)},r=(e,t=e)=>e.shadowRoot||t,i=e=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(e):"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e),a=e=>!!e.shadowRoot&&!!e.attachShadow,o=e=>{const t=e.closest("ion-item");return t?t.querySelector("ion-label"):null},s=(e,t)=>{let n;const r=e.getAttribute("aria-labelledby"),i=e.id;let a=null!==r&&""!==r.trim()?r:t+"-lbl",s=null!==r&&""!==r.trim()?document.querySelector("#"+r):o(e);return s?(null===r&&(s.id=a),n=s.textContent,s.setAttribute("aria-hidden","true")):""!==i.trim()&&(s=document.querySelector(`label[for=${i}]`),s&&(s.id=a=i+"-lbl",n=s.textContent)),{label:s,labelId:a,labelText:n}},u=(e,t,n,r,i)=>{if(e||a(t)){let e=t.querySelector("input.aux-input");e||(e=t.ownerDocument.createElement("input"),e.type="hidden",e.classList.add("aux-input"),t.appendChild(e)),e.disabled=i,e.name=n,e.value=r||""}},l=(e,t,n)=>Math.max(e,Math.min(t,n)),d=(e,t)=>{if(!e){const e="ASSERT: "+t;throw console.error(e),new Error(e)}},f=e=>e.timeStamp||Date.now(),c=e=>{if(e){const t=e.changedTouches;if(t&&t.length>0){const e=t[0];return{x:e.clientX,y:e.clientY}}if(void 0!==e.pageX)return{x:e.pageX,y:e.pageY}}return{x:0,y:0}},m=e=>{const t="rtl"===document.dir;switch(e){case"start":return t;case"end":return!t;default:throw new Error(`"${e}" is not a valid value for [side]. Use "start" or "end" instead.`)}},w=(e,t)=>{const n=e._original||e;return{_original:e,emit:_(n.emit.bind(n),t)}},_=(e,t=0)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(e,t,...r)}};export{t as a,s as b,u as c,w as d,i as e,o as f,r as g,a as h,e as i,l as j,m as k,d as l,_ as m,f as n,c as p,n as r}