@ionic/core 8.4.1-nightly.20241127 → 8.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/components/ion-menu.js +30 -3
  2. package/components/overlays.js +6 -5
  3. package/dist/cjs/index.cjs.js +1 -1
  4. package/dist/cjs/ion-action-sheet.cjs.entry.js +1 -1
  5. package/dist/cjs/ion-alert.cjs.entry.js +1 -1
  6. package/dist/cjs/ion-datetime_3.cjs.entry.js +1 -1
  7. package/dist/cjs/ion-loading.cjs.entry.js +1 -1
  8. package/dist/cjs/ion-menu_3.cjs.entry.js +31 -4
  9. package/dist/cjs/ion-modal.cjs.entry.js +1 -1
  10. package/dist/cjs/ion-popover.cjs.entry.js +1 -1
  11. package/dist/cjs/ion-select-modal.cjs.entry.js +1 -1
  12. package/dist/cjs/ion-select_3.cjs.entry.js +1 -1
  13. package/dist/cjs/ion-toast.cjs.entry.js +1 -1
  14. package/dist/cjs/{overlays-a6b4fa63.js → overlays-aa669eb8.js} +6 -5
  15. package/dist/collection/components/menu/menu.js +30 -2
  16. package/dist/collection/utils/overlays.js +6 -5
  17. package/dist/docs.json +1 -1
  18. package/dist/esm/index.js +1 -1
  19. package/dist/esm/ion-action-sheet.entry.js +1 -1
  20. package/dist/esm/ion-alert.entry.js +1 -1
  21. package/dist/esm/ion-datetime_3.entry.js +1 -1
  22. package/dist/esm/ion-loading.entry.js +1 -1
  23. package/dist/esm/ion-menu_3.entry.js +31 -4
  24. package/dist/esm/ion-modal.entry.js +1 -1
  25. package/dist/esm/ion-popover.entry.js +1 -1
  26. package/dist/esm/ion-select-modal.entry.js +1 -1
  27. package/dist/esm/ion-select_3.entry.js +1 -1
  28. package/dist/esm/ion-toast.entry.js +1 -1
  29. package/dist/esm/{overlays-dcc93658.js → overlays-e7b9d6d9.js} +6 -5
  30. package/dist/esm-es5/index.js +1 -1
  31. package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
  32. package/dist/esm-es5/ion-alert.entry.js +1 -1
  33. package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
  34. package/dist/esm-es5/ion-loading.entry.js +1 -1
  35. package/dist/esm-es5/ion-menu_3.entry.js +1 -1
  36. package/dist/esm-es5/ion-modal.entry.js +1 -1
  37. package/dist/esm-es5/ion-popover.entry.js +1 -1
  38. package/dist/esm-es5/ion-select-modal.entry.js +1 -1
  39. package/dist/esm-es5/ion-select_3.entry.js +1 -1
  40. package/dist/esm-es5/ion-toast.entry.js +1 -1
  41. package/dist/ionic/index.esm.js +1 -1
  42. package/dist/ionic/ionic.esm.js +1 -1
  43. package/dist/ionic/{p-cd8bd2e1.system.entry.js → p-1046866e.system.entry.js} +1 -1
  44. package/dist/ionic/p-12a722b8.system.entry.js +4 -0
  45. package/dist/ionic/{p-3974e3c3.system.entry.js → p-14e159ea.system.entry.js} +1 -1
  46. package/dist/ionic/{p-ed19d108.system.entry.js → p-1fe02220.system.entry.js} +1 -1
  47. package/dist/ionic/{p-0ce9d0a6.entry.js → p-2b9b78c7.entry.js} +1 -1
  48. package/dist/ionic/{p-7e3faa44.system.entry.js → p-2bd0ae94.system.entry.js} +2 -2
  49. package/dist/ionic/p-322c5fb4.system.js +1 -1
  50. package/dist/ionic/p-508d024a.entry.js +4 -0
  51. package/dist/ionic/{p-63ad99b8.system.entry.js → p-626fd66d.system.entry.js} +1 -1
  52. package/dist/ionic/{p-c7c0c9d2.system.entry.js → p-6499df44.system.entry.js} +1 -1
  53. package/dist/ionic/{p-73747722.entry.js → p-6b280620.entry.js} +1 -1
  54. package/dist/ionic/{p-9318ed44.entry.js → p-8b8be2fd.entry.js} +1 -1
  55. package/dist/ionic/{p-de5ed31e.entry.js → p-942b5e13.entry.js} +1 -1
  56. package/dist/ionic/{p-33fa7400.entry.js → p-982315a6.entry.js} +1 -1
  57. package/dist/ionic/{p-a56f691f.entry.js → p-9e33104d.entry.js} +1 -1
  58. package/dist/ionic/{p-5dcd3d43.entry.js → p-a43467d8.entry.js} +1 -1
  59. package/dist/ionic/{p-0cccca18.system.entry.js → p-b2272f51.system.entry.js} +1 -1
  60. package/dist/ionic/{p-3c186721.entry.js → p-b79ba17c.entry.js} +1 -1
  61. package/dist/ionic/{p-a696e441.system.js → p-c449820c.system.js} +1 -1
  62. package/dist/ionic/{p-3b13af78.system.entry.js → p-e4f69534.system.entry.js} +1 -1
  63. package/dist/ionic/{p-20e70007.system.entry.js → p-e85d901b.system.entry.js} +1 -1
  64. package/dist/ionic/{p-5e074501.entry.js → p-fec61c32.entry.js} +1 -1
  65. package/hydrate/index.js +35 -7
  66. package/hydrate/index.mjs +35 -7
  67. package/package.json +1 -1
  68. package/dist/ionic/p-33df3f1f.entry.js +0 -4
  69. package/dist/ionic/p-475d32bd.system.entry.js +0 -4
  70. /package/dist/esm-es5/{overlays-dcc93658.js → overlays-e7b9d6d9.js} +0 -0
  71. /package/dist/ionic/{p-5e01fc7f.system.js → p-0aa833fb.system.js} +0 -0
  72. /package/dist/ionic/{p-96573065.js → p-e6635685.js} +0 -0
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(t,r,e,a){function i(t){return t instanceof e?t:new e((function(r){r(t)}))}return new(e||(e=Promise))((function(e,n){function o(t){try{d(a.next(t))}catch(t){n(t)}}function s(t){try{d(a["throw"](t))}catch(t){n(t)}}function d(t){t.done?e(t.value):i(t.value).then(o,s)}d((a=a.apply(t,r||[])).next())}))};var __generator=this&&this.__generator||function(t,r){var e={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},a,i,n,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(r){return d([t,r])}}function d(s){if(a)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(e=0)),e)try{if(a=1,i&&(n=s[0]&2?i["return"]:s[0]?i["throw"]||((n=i["return"])&&n.call(i),0):i.next)&&!(n=n.call(i,s[1])).done)return n;if(i=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:e.label++;return{value:s[1],done:false};case 5:e.label++;i=s[1];s=[0];continue;case 7:s=e.ops.pop();e.trys.pop();continue;default:if(!(n=e.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){e.label=s[1];break}if(s[0]===6&&e.label<n[1]){e.label=n[1];n=s;break}if(n&&e.label<n[2]){e.label=n[2];e.ops.push(s);break}if(n[2])e.ops.pop();e.trys.pop();continue}s=r.call(t,e)}catch(t){s=[6,t];i=0}finally{a=n=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,r,e){if(e||arguments.length===2)for(var a=0,i=r.length,n;a<i;a++){if(n||!(a in r)){if(!n)n=Array.prototype.slice.call(r,0,a);n[a]=r[a]}}return t.concat(n||Array.prototype.slice.call(r))};
2
2
  /*!
3
3
  * (C) Ionic http://ionicframework.com - MIT License
4
- */System.register(["./p-25180df3.system.js","./p-9ea607bd.system.js","./p-8635f5e6.system.js","./p-3ad285e3.system.js","./p-4f255d5a.system.js","./p-ff4b7e40.system.js","./p-8985cdb6.system.js","./p-5e01fc7f.system.js","./p-4609d030.system.js","./p-f9a53abb.system.js","./p-a69b9fc5.system.js","./p-abe101da.system.js","./p-9146695e.system.js","./p-e673a0a2.system.js","./p-3e1e14d9.system.js","./p-792919fd.system.js","./p-9f3008d4.system.js","./p-20d469d0.system.js","./p-b06ac4a5.system.js"],(function(t){"use strict";var r,e,a,i,n,o,s,d,f,u,c,h,l,p,v,m,b,w,x,y,g,k,_,A,Y,j,D,M,E,S,P,O,B,C,I,z,R,W,L,T,N,K,V;return{setters:[function(t){r=t.r;e=t.d;a=t.w;i=t.h;n=t.f;o=t.i},function(t){s=t.f;d=t.i;f=t.d;u=t.r;c=t.a;h=t.p},function(t){l=t.C;p=t.a;v=t.d},function(t){m=t.g;b=t.j;w=t.r;x=t.h;y=t.k},function(t){g=t.c},function(t){k=t.p},function(t){_=t.g},function(t){A=t.G;Y=t.O;j=t.F;D=t.e;M=t.B;E=t.j;S=t.k;P=t.f;O=t.g;B=t.h},function(t){C=t.g},function(t){I=t.e;z=t.w},function(t){R=t.b;W=t.c},function(t){L=t.KEYBOARD_DID_OPEN},function(t){T=t.c},function(t){N=t.g},function(t){K=t.createGesture},function(t){V=t.w},function(){},function(){},function(){}],execute:function(){var Z=this;var F;(function(t){t["Dark"]="DARK";t["Light"]="LIGHT";t["Default"]="DEFAULT"})(F||(F={}));var G={getEngine:function(){var t=_();if(t===null||t===void 0?void 0:t.isPluginAvailable("StatusBar")){return t.Plugins.StatusBar}return undefined},setStyle:function(t){var r=this.getEngine();if(!r){return}r.setStyle(t)},getStyle:function(){return __awaiter(this,void 0,void 0,(function(){var t,r;return __generator(this,(function(e){switch(e.label){case 0:t=this.getEngine();if(!t){return[2,F.Default]}return[4,t.getInfo()];case 1:r=e.sent().style;return[2,r]}}))}))}};var H=function(t,r){if(r===1){return 0}var e=1/(1-r);var a=-(r*e);return t*e+a};var U=function(){if(!V||V.innerWidth>=768){return}G.setStyle({style:F.Dark})};var q=function(t){if(t===void 0){t=F.Default}if(!V||V.innerWidth>=768){return}G.setStyle({style:t})};var J=function(t,r){return __awaiter(Z,void 0,void 0,(function(){var e;return __generator(this,(function(a){switch(a.label){case 0:if(typeof t.canDismiss!=="function"){return[2]}return[4,t.canDismiss(undefined,A)];case 1:e=a.sent();if(!e){return[2]}if(r.isRunning()){r.onFinish((function(){t.dismiss(undefined,"handler")}),{oneTimeCallback:true})}else{t.dismiss(undefined,"handler")}return[2]}}))}))};var Q=function(t){return.00255275*Math.pow(2.71828,-14.9619*t)-1.00255*Math.pow(2.71828,-.0380968*t)+1};var X={MIN_PRESENTING_SCALE:.915};var $=function(t,r,e,a){var i=.5;var n=t.offsetHeight;var o=false;var c=false;var h=null;var l=null;var p=.2;var v=true;var w=0;var x=function(){if(h&&d(h)){return h.scrollY}else{return true}};var y=function(t){var r=t.event.target;if(r===null||!r.closest){return true}h=s(r);if(h){if(d(h)){var e=m(h);l=e.querySelector(".inner-scroll")}else{l=h}var a=!!h.querySelector("ion-refresher");return!a&&l.scrollTop===0}var i=r.closest("ion-footer");if(i===null){return true}return false};var g=function(e){var a=e.deltaY;v=x();c=t.canDismiss!==undefined&&t.canDismiss!==true;if(a>0&&h){f(h)}r.progressStart(true,o?1:0)};var k=function(t){var a=t.deltaY;if(a>0&&h){f(h)}var o=t.deltaY/n;var s=o>=0&&c;var d=s?p:.9999;var u=s?Q(o/d):o;var l=b(1e-4,u,d);r.progressStep(l);if(l>=i&&w<i){q(e)}else if(l<i&&w>=i){U()}w=l};var _=function(e){var s=e.velocityY;var d=e.deltaY/n;var f=d>=0&&c;var l=f?p:.9999;var m=f?Q(d/l):d;var w=b(1e-4,m,l);var x=(e.deltaY+s*1e3)/n;var y=!f&&x>=i;var g=y?-.001:.001;if(!y){r.easing("cubic-bezier(1, 0, 0.68, 0.28)");g+=N([0,0],[1,0],[.68,.28],[1,1],w)[0]}else{r.easing("cubic-bezier(0.32, 0.72, 0, 1)");g+=N([0,0],[.32,.72],[0,1],[1,1],w)[0]}var k=y?tt(d*n,s):tt((1-w)*n,s);o=y;A.enable(false);if(h){u(h,v)}r.onFinish((function(){if(!y){A.enable(true)}})).progressEnd(y?1:0,g,k);if(f&&w>l/4){J(t,r)}else if(y){a()}};var A=K({el:t,gestureName:"modalSwipeToClose",gesturePriority:Y,direction:"y",threshold:10,canStart:y,onStart:g,onMove:k,onEnd:_});return A};var tt=function(t,r){return b(400,t/Math.abs(r*1.1),500)};var rt=function(t){var r=t.currentBreakpoint,e=t.backdropBreakpoint;var a=e===undefined||e<r;var i=a?"calc(var(--backdrop-opacity) * ".concat(r,")"):"0";var n=T("backdropAnimation").fromTo("opacity",0,i);if(a){n.beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"])}var o=T("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:"translateY(100%)"},{offset:1,opacity:1,transform:"translateY(".concat(100-r*100,"%)")}]);return{wrapperAnimation:o,backdropAnimation:n}};var et=function(t){var r=t.currentBreakpoint,e=t.backdropBreakpoint;var a="calc(var(--backdrop-opacity) * ".concat(H(r,e),")");var i=[{offset:0,opacity:a},{offset:1,opacity:0}];var n=[{offset:0,opacity:a},{offset:e,opacity:0},{offset:1,opacity:0}];var o=T("backdropAnimation").keyframes(e!==0?n:i);var s=T("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:"translateY(".concat(100-r*100,"%)")},{offset:1,opacity:1,transform:"translateY(100%)"}]);return{wrapperAnimation:s,backdropAnimation:o}};var at=function(){var t=T().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]);var r=T().fromTo("transform","translateY(100vh)","translateY(0vh)");return{backdropAnimation:t,wrapperAnimation:r}};var it=function(t,r){var e=r.presentingEl,a=r.currentBreakpoint;var i=m(t);var n=a!==undefined?rt(r):at(),o=n.wrapperAnimation,s=n.backdropAnimation;s.addElement(i.querySelector("ion-backdrop"));o.addElement(i.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});var d=T("entering-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(500).addAnimation(o);if(e){var f=window.innerWidth<768;var u=e.tagName==="ION-MODAL"&&e.presentingElement!==undefined;var c=m(e);var h=T().beforeStyles({transform:"translateY(0)","transform-origin":"top center",overflow:"hidden"});var l=document.body;if(f){var p=!CSS.supports("width","max(0px, 1px)")?"30px":"max(30px, var(--ion-safe-area-top))";var v=u?"-10px":p;var b=X.MIN_PRESENTING_SCALE;var w="translateY(".concat(v,") scale(").concat(b,")");h.afterStyles({transform:w}).beforeAddWrite((function(){return l.style.setProperty("background-color","black")})).addElement(e).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"},{offset:1,filter:"contrast(0.85)",transform:w,borderRadius:"10px 10px 0 0"}]);d.addAnimation(h)}else{d.addAnimation(s);if(!u){o.fromTo("opacity","0","1")}else{var b=u?X.MIN_PRESENTING_SCALE:1;var w="translateY(-10px) scale(".concat(b,")");h.afterStyles({transform:w}).addElement(c.querySelector(".modal-wrapper")).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0) scale(1)"},{offset:1,filter:"contrast(0.85)",transform:w}]);var x=T().afterStyles({transform:w}).addElement(c.querySelector(".modal-shadow")).keyframes([{offset:0,opacity:"1",transform:"translateY(0) scale(1)"},{offset:1,opacity:"0",transform:w}]);d.addAnimation([h,x])}}}else{d.addAnimation(s)}return d};var nt=function(){var t=T().fromTo("opacity","var(--backdrop-opacity)",0);var r=T().fromTo("transform","translateY(0vh)","translateY(100vh)");return{backdropAnimation:t,wrapperAnimation:r}};var ot=function(t,r,e){if(e===void 0){e=500}var a=r.presentingEl,i=r.currentBreakpoint;var n=m(t);var o=i!==undefined?et(r):nt(),s=o.wrapperAnimation,d=o.backdropAnimation;d.addElement(n.querySelector("ion-backdrop"));s.addElement(n.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});var f=T("leaving-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(e).addAnimation(s);if(a){var u=window.innerWidth<768;var c=a.tagName==="ION-MODAL"&&a.presentingElement!==undefined;var h=m(a);var l=T().beforeClearStyles(["transform"]).afterClearStyles(["transform"]).onFinish((function(t){if(t!==1){return}a.style.setProperty("overflow","");var r=Array.from(p.querySelectorAll("ion-modal:not(.overlay-hidden)")).filter((function(t){return t.presentingElement!==undefined})).length;if(r<=1){p.style.setProperty("background-color","")}}));var p=document.body;if(u){var v=!CSS.supports("width","max(0px, 1px)")?"30px":"max(30px, var(--ion-safe-area-top))";var b=c?"-10px":v;var w=X.MIN_PRESENTING_SCALE;var x="translateY(".concat(b,") scale(").concat(w,")");l.addElement(a).keyframes([{offset:0,filter:"contrast(0.85)",transform:x,borderRadius:"10px 10px 0 0"},{offset:1,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"}]);f.addAnimation(l)}else{f.addAnimation(d);if(!c){s.fromTo("opacity","1","0")}else{var w=c?X.MIN_PRESENTING_SCALE:1;var x="translateY(-10px) scale(".concat(w,")");l.addElement(h.querySelector(".modal-wrapper")).afterStyles({transform:"translate3d(0, 0, 0)"}).keyframes([{offset:0,filter:"contrast(0.85)",transform:x},{offset:1,filter:"contrast(1)",transform:"translateY(0) scale(1)"}]);var y=T().addElement(h.querySelector(".modal-shadow")).afterStyles({transform:"translateY(0) scale(1)"}).keyframes([{offset:0,opacity:"0",transform:x},{offset:1,opacity:"1",transform:"translateY(0) scale(1)"}]);f.addAnimation([l,y])}}}else{f.addAnimation(d)}return f};var st=function(){var t=T().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]);var r=T().keyframes([{offset:0,opacity:.01,transform:"translateY(40px)"},{offset:1,opacity:1,transform:"translateY(0px)"}]);return{backdropAnimation:t,wrapperAnimation:r}};var dt=function(t,r){var e=r.currentBreakpoint;var a=m(t);var i=e!==undefined?rt(r):st(),n=i.wrapperAnimation,o=i.backdropAnimation;o.addElement(a.querySelector("ion-backdrop"));n.addElement(a.querySelector(".modal-wrapper"));return T().addElement(t).easing("cubic-bezier(0.36,0.66,0.04,1)").duration(280).addAnimation([o,n])};var ft=function(){var t=T().fromTo("opacity","var(--backdrop-opacity)",0);var r=T().keyframes([{offset:0,opacity:.99,transform:"translateY(0px)"},{offset:1,opacity:0,transform:"translateY(40px)"}]);return{backdropAnimation:t,wrapperAnimation:r}};var ut=function(t,r){var e=r.currentBreakpoint;var a=m(t);var i=e!==undefined?et(r):ft(),n=i.wrapperAnimation,o=i.backdropAnimation;o.addElement(a.querySelector("ion-backdrop"));n.addElement(a.querySelector(".modal-wrapper"));return T().easing("cubic-bezier(0.47,0,0.745,0.715)").duration(200).addAnimation([o,n])};var ct=function(t,r,e,a,i,n,o,f,u,c){if(o===void 0){o=[]}var h=[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1,opacity:.01}];var l=[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1-i,opacity:0},{offset:1,opacity:0}];var p={WRAPPER_KEYFRAMES:[{offset:0,transform:"translateY(0%)"},{offset:1,transform:"translateY(100%)"}],BACKDROP_KEYFRAMES:i!==0?l:h};var v=t.querySelector("ion-content");var x=e.clientHeight;var y=a;var g=0;var k=false;var _=.95;var A=n.childAnimations.find((function(t){return t.id==="wrapperAnimation"}));var Y=n.childAnimations.find((function(t){return t.id==="backdropAnimation"}));var D=o[o.length-1];var M=o[0];var E=function(){t.style.setProperty("pointer-events","auto");r.style.setProperty("pointer-events","auto");t.classList.remove(j)};var S=function(){t.style.setProperty("pointer-events","none");r.style.setProperty("pointer-events","none");t.classList.add(j)};if(A&&Y){A.keyframes(__spreadArray([],p.WRAPPER_KEYFRAMES,true));Y.keyframes(__spreadArray([],p.BACKDROP_KEYFRAMES,true));n.progressStart(true,1-y);var P=y>i;if(P){E()}else{S()}}if(v&&y!==D){v.scrollY=false}var O=function(t){var r=s(t.event.target);y=f();if(y===1&&r){var e=d(r)?m(r).querySelector(".inner-scroll"):r;var a=!!r.querySelector("ion-refresher");return!a&&e.scrollTop===0}return true};var B=function(r){k=t.canDismiss!==undefined&&t.canDismiss!==true&&M===0;if(r.deltaY>0&&v){v.scrollY=false}w((function(){t.focus()}));n.progressStart(true,1-y)};var C=function(t){if(t.deltaY>0&&v){v.scrollY=false}var r=1-y;var e=o.length>1?1-o[1]:undefined;var a=r+t.deltaY/x;var i=e!==undefined&&a>=e&&k;var s=i?_:.9999;var d=i&&e!==undefined?e+Q((a-e)/(s-e)):a;g=b(1e-4,d,s);n.progressStep(g)};var I=function(t){var r=t.velocityY;var e=(t.deltaY+r*350)/x;var a=y-e;var i=o.reduce((function(t,r){return Math.abs(r-a)<Math.abs(t-a)?r:t}));z({breakpoint:i,breakpointOffset:g,canDismiss:k,animated:true})};var z=function(r){var e=r.breakpoint,a=r.canDismiss,s=r.breakpointOffset,d=r.animated;var f=a&&e===0;var h=f?y:e;var l=h!==0;y=0;if(A&&Y){A.keyframes([{offset:0,transform:"translateY(".concat(s*100,"%)")},{offset:1,transform:"translateY(".concat((1-h)*100,"%)")}]);Y.keyframes([{offset:0,opacity:"calc(var(--backdrop-opacity) * ".concat(H(1-s,i),")")},{offset:1,opacity:"calc(var(--backdrop-opacity) * ".concat(H(h,i),")")}]);n.progressStep(0)}R.enable(false);if(f){J(t,n)}else if(!l){u()}if(v&&h===o[o.length-1]){v.scrollY=true}return new Promise((function(t){n.onFinish((function(){if(l){if(A&&Y){w((function(){A.keyframes(__spreadArray([],p.WRAPPER_KEYFRAMES,true));Y.keyframes(__spreadArray([],p.BACKDROP_KEYFRAMES,true));n.progressStart(true,1-h);y=h;c(y);var r=y>i;if(r){E()}else{S()}R.enable(true);t()}))}else{R.enable(true);t()}}else{t()}}),{oneTimeCallback:true}).progressEnd(1,0,d?500:0)}))};var R=K({el:e,gestureName:"modalSheet",gesturePriority:40,direction:"y",threshold:10,canStart:O,onStart:B,onMove:C,onEnd:I});return{gesture:R,moveSheetToBreakpoint:z}};var ht=':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}';var lt=ht;var pt=':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}';var vt=pt;var mt=t("ion_modal",function(){function t(t){var a=this;r(this,t);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=g();this.triggerController=D();this.coreDelegate=l();this.isSheetModal=false;this.inheritedAttributes={};this.inline=false;this.gestureAnimationDismissing=false;this.onHandleClick=function(){var t=a,r=t.sheetTransition,e=t.handleBehavior;if(e!=="cycle"||r!==undefined){return}a.moveToNextBreakpoint()};this.onBackdropTap=function(){var t=a.sheetTransition;if(t!==undefined){return}a.dismiss(undefined,M)};this.onLifecycle=function(t){var r=a.usersElement;var e=bt[t.type];if(r&&e){var i=new CustomEvent(e,{bubbles:false,cancelable:false,detail:t.detail});r.dispatchEvent(i)}};this.presented=false;this.hasController=false;this.overlayIndex=undefined;this.delegate=undefined;this.keyboardClose=true;this.enterAnimation=undefined;this.leaveAnimation=undefined;this.breakpoints=undefined;this.initialBreakpoint=undefined;this.backdropBreakpoint=0;this.handle=undefined;this.handleBehavior="none";this.component=undefined;this.componentProps=undefined;this.cssClass=undefined;this.backdropDismiss=true;this.showBackdrop=true;this.animated=true;this.presentingElement=undefined;this.htmlAttributes=undefined;this.isOpen=false;this.trigger=undefined;this.keepContentsMounted=false;this.focusTrap=true;this.canDismiss=true}t.prototype.onIsOpenChange=function(t,r){if(t===true&&r===false){this.present()}else if(t===false&&r===true){this.dismiss()}};t.prototype.triggerChanged=function(){var t=this,r=t.trigger,e=t.el,a=t.triggerController;if(r){a.addClickListener(e,r)}};t.prototype.breakpointsChanged=function(t){if(t!==undefined){this.sortedBreakpoints=t.sort((function(t,r){return t-r}))}};t.prototype.connectedCallback=function(){var t=this.el;E(t);this.triggerChanged()};t.prototype.disconnectedCallback=function(){this.triggerController.removeClickListener()};t.prototype.componentWillLoad=function(){var t=this;var r;var e=this,a=e.breakpoints,i=e.initialBreakpoint,n=e.el,o=e.htmlAttributes;var s=this.isSheetModal=a!==undefined&&i!==undefined;var d=["aria-label","role"];this.inheritedAttributes=x(n,d);if(o!==undefined){d.forEach((function(r){var e;var a=o[r];if(a){t.inheritedAttributes=Object.assign(Object.assign({},t.inheritedAttributes),(e={},e[r]=o[r],e));delete o[r]}}))}if(s){this.currentBreakpoint=this.initialBreakpoint}if(a!==undefined&&i!==undefined&&!a.includes(i)){k("Your breakpoints array must include the initialBreakpoint value.")}if(!((r=this.htmlAttributes)===null||r===void 0?void 0:r.id)){S(this.el)}};t.prototype.componentDidLoad=function(){var t=this;if(this.isOpen===true){w((function(){return t.present()}))}this.breakpointsChanged(this.breakpoints);this.triggerChanged()};t.prototype.getDelegate=function(t){if(t===void 0){t=false}if(this.workingDelegate&&!t){return{delegate:this.workingDelegate,inline:this.inline}}var r=this.el.parentNode;var e=this.inline=r!==null&&!this.hasController;var a=this.workingDelegate=e?this.delegate||this.coreDelegate:this.delegate;return{inline:e,delegate:a}};t.prototype.checkCanDismiss=function(t,r){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(a){e=this.canDismiss;if(typeof e==="function"){return[2,e(t,r)]}return[2,e]}))}))};t.prototype.present=function(){return __awaiter(this,void 0,void 0,(function(){var t,r,e,i,n,o,s,d,f,u;var c=this;return __generator(this,(function(h){switch(h.label){case 0:return[4,this.lockController.lock()];case 1:t=h.sent();if(this.presented){t();return[2]}r=this,e=r.presentingElement,i=r.el;this.currentBreakpoint=this.initialBreakpoint;n=this.getDelegate(true),o=n.inline,s=n.delegate;this.ionMount.emit();d=this;return[4,p(s,i,this.component,["ion-page"],this.componentProps,o)];case 2:d.usersElement=h.sent();if(!y(i))return[3,4];return[4,I(this.usersElement)];case 3:h.sent();return[3,6];case 4:if(!!this.keepContentsMounted)return[3,6];return[4,z()];case 5:h.sent();h.label=6;case 6:a((function(){return c.el.classList.add("show-modal")}));f=e!==undefined;if(!(f&&R(this)==="ios"))return[3,8];u=this;return[4,G.getStyle()];case 7:u.statusBarStyle=h.sent();U();h.label=8;case 8:return[4,P(this,"modalEnter",it,dt,{presentingEl:e,currentBreakpoint:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint})];case 9:h.sent();if(typeof window!=="undefined"){this.keyboardOpenCallback=function(){if(c.gesture){c.gesture.enable(false);w((function(){if(c.gesture){c.gesture.enable(true)}}))}};window.addEventListener(L,this.keyboardOpenCallback)}if(this.isSheetModal){this.initSheetGesture()}else if(f){this.initSwipeToClose()}t();return[2]}}))}))};t.prototype.initSwipeToClose=function(){var t=this;var r;if(R(this)!=="ios"){return}var e=this.el;var a=this.leaveAnimation||W.get("modalLeave",ot);var i=this.animation=a(e,{presentingEl:this.presentingElement});var n=c(e);if(!n){h(e);return}var o=(r=this.statusBarStyle)!==null&&r!==void 0?r:F.Default;this.gesture=$(e,i,o,(function(){t.gestureAnimationDismissing=true;q(t.statusBarStyle);t.animation.onFinish((function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.dismiss(undefined,A)];case 1:t.sent();this.gestureAnimationDismissing=false;return[2]}}))}))}))}));this.gesture.enable(true)};t.prototype.initSheetGesture=function(){var t=this;var r=this,e=r.wrapperEl,a=r.initialBreakpoint,i=r.backdropBreakpoint;if(!e||a===undefined){return}var n=this.enterAnimation||W.get("modalEnter",it);var o=this.animation=n(this.el,{presentingEl:this.presentingElement,currentBreakpoint:a,backdropBreakpoint:i});o.progressStart(true,1);var s=ct(this.el,this.backdropEl,e,a,i,o,this.sortedBreakpoints,(function(){var r;return(r=t.currentBreakpoint)!==null&&r!==void 0?r:0}),(function(){return t.sheetOnDismiss()}),(function(r){if(t.currentBreakpoint!==r){t.currentBreakpoint=r;t.ionBreakpointDidChange.emit({breakpoint:r})}})),d=s.gesture,f=s.moveSheetToBreakpoint;this.gesture=d;this.moveSheetToBreakpoint=f;this.gesture.enable(true)};t.prototype.sheetOnDismiss=function(){var t=this;this.gestureAnimationDismissing=true;this.animation.onFinish((function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:this.currentBreakpoint=0;this.ionBreakpointDidChange.emit({breakpoint:this.currentBreakpoint});return[4,this.dismiss(undefined,A)];case 1:t.sent();this.gestureAnimationDismissing=false;return[2]}}))}))}))};t.prototype.dismiss=function(t,r){return __awaiter(this,void 0,void 0,(function(){var e,i,n,o,s,d,f;var u=this;return __generator(this,(function(c){switch(c.label){case 0:if(this.gestureAnimationDismissing&&r!==A){return[2,false]}return[4,this.lockController.lock()];case 1:i=c.sent();n=r!=="handler";if(!n)return[3,3];return[4,this.checkCanDismiss(t,r)];case 2:n=!c.sent();c.label=3;case 3:if(n){i();return[2,false]}o=this.presentingElement;s=o!==undefined;if(s&&R(this)==="ios"){q(this.statusBarStyle)}if(typeof window!=="undefined"&&this.keyboardOpenCallback){window.removeEventListener(L,this.keyboardOpenCallback);this.keyboardOpenCallback=undefined}return[4,O(this,t,r,"modalLeave",ot,ut,{presentingEl:o,currentBreakpoint:(e=this.currentBreakpoint)!==null&&e!==void 0?e:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint})];case 4:d=c.sent();if(!d)return[3,6];f=this.getDelegate().delegate;return[4,v(f,this.usersElement)];case 5:c.sent();a((function(){return u.el.classList.remove("show-modal")}));if(this.animation){this.animation.destroy()}if(this.gesture){this.gesture.destroy()}c.label=6;case 6:this.currentBreakpoint=undefined;this.animation=undefined;i();return[2,d]}}))}))};t.prototype.onDidDismiss=function(){return B(this.el,"ionModalDidDismiss")};t.prototype.onWillDismiss=function(){return B(this.el,"ionModalWillDismiss")};t.prototype.setCurrentBreakpoint=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,a,i,n,o;return __generator(this,(function(s){switch(s.label){case 0:if(!this.isSheetModal){k("setCurrentBreakpoint is only supported on sheet modals.");return[2]}if(!this.breakpoints.includes(t)){k("Attempted to set invalid breakpoint value ".concat(t,". Please double check that the breakpoint value is part of your defined breakpoints."));return[2]}r=this,e=r.currentBreakpoint,a=r.moveSheetToBreakpoint,i=r.canDismiss,n=r.breakpoints,o=r.animated;if(e===t){return[2]}if(!a)return[3,2];this.sheetTransition=a({breakpoint:t,breakpointOffset:1-e,canDismiss:i!==undefined&&i!==true&&n[0]===0,animated:o});return[4,this.sheetTransition];case 1:s.sent();this.sheetTransition=undefined;s.label=2;case 2:return[2]}}))}))};t.prototype.getCurrentBreakpoint=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.currentBreakpoint]}))}))};t.prototype.moveToNextBreakpoint=function(){return __awaiter(this,void 0,void 0,(function(){var t,r,e,a,i,n,o;return __generator(this,(function(s){switch(s.label){case 0:t=this,r=t.breakpoints,e=t.currentBreakpoint;if(!r||e==null){return[2,false]}a=r.filter((function(t){return t!==0}));i=a.indexOf(e);n=(i+1)%a.length;o=a[n];return[4,this.setCurrentBreakpoint(o)];case 1:s.sent();return[2,true]}}))}))};t.prototype.render=function(){var t;var r=this;var e=this,a=e.handle,o=e.isSheetModal,s=e.presentingElement,d=e.htmlAttributes,f=e.handleBehavior,u=e.inheritedAttributes,c=e.focusTrap;var h=a!==false&&o;var l=R(this);var p=s!==undefined&&l==="ios";var v=f==="cycle";return i(n,Object.assign({key:"b4da5111fe4719fa450c39b2d4bd884a302a7924","no-router":true,tabindex:"-1"},d,{style:{zIndex:"".concat(2e4+this.overlayIndex)},class:Object.assign((t={},t[l]=true,t["modal-default"]=!p&&!o,t["modal-card"]=p,t["modal-sheet"]=o,t["overlay-hidden"]=true,t[j]=c===false,t),C(this.cssClass)),onIonBackdropTap:this.onBackdropTap,onIonModalDidPresent:this.onLifecycle,onIonModalWillPresent:this.onLifecycle,onIonModalWillDismiss:this.onLifecycle,onIonModalDidDismiss:this.onLifecycle}),i("ion-backdrop",{key:"c12dbf747e0eb914eaf1331798548ffc7e147763",ref:function(t){return r.backdropEl=t},visible:this.showBackdrop,tappable:this.backdropDismiss,part:"backdrop"}),l==="ios"&&i("div",{key:"da546ee80c6576b5acc66e959fd5009e0b9a8160",class:"modal-shadow"}),i("div",Object.assign({key:"306ebe6427440ad5f7ed36d590e562d15a503b75",role:"dialog"},u,{"aria-modal":"true",class:"modal-wrapper ion-overlay-wrapper",part:"content",ref:function(t){return r.wrapperEl=t}}),h&&i("button",{key:"c5d17e346fe255a7c0cacbbf15c0083f2d09c488",class:"modal-handle",tabIndex:!v?-1:0,"aria-label":"Activate to adjust the size of the dialog overlaying the screen",onClick:v?this.onHandleClick:undefined,part:"handle"}),i("slot",{key:"5cc714170a00b67f3eda0cd1d6f37c1489a99c83"})))};Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}},enumerable:false,configurable:true});return t}());var bt={ionModalDidPresent:"ionViewDidEnter",ionModalWillPresent:"ionViewWillEnter",ionModalWillDismiss:"ionViewWillLeave",ionModalDidDismiss:"ionViewDidLeave"};mt.style={ios:lt,md:vt}}}}));
4
+ */System.register(["./p-25180df3.system.js","./p-9ea607bd.system.js","./p-8635f5e6.system.js","./p-3ad285e3.system.js","./p-4f255d5a.system.js","./p-ff4b7e40.system.js","./p-8985cdb6.system.js","./p-0aa833fb.system.js","./p-4609d030.system.js","./p-f9a53abb.system.js","./p-a69b9fc5.system.js","./p-abe101da.system.js","./p-9146695e.system.js","./p-e673a0a2.system.js","./p-3e1e14d9.system.js","./p-792919fd.system.js","./p-9f3008d4.system.js","./p-20d469d0.system.js","./p-b06ac4a5.system.js"],(function(t){"use strict";var r,e,a,i,n,o,s,d,f,u,c,h,l,p,v,m,b,w,x,y,g,k,_,A,Y,j,D,M,E,S,P,O,B,C,I,z,R,W,L,T,N,K,V;return{setters:[function(t){r=t.r;e=t.d;a=t.w;i=t.h;n=t.f;o=t.i},function(t){s=t.f;d=t.i;f=t.d;u=t.r;c=t.a;h=t.p},function(t){l=t.C;p=t.a;v=t.d},function(t){m=t.g;b=t.j;w=t.r;x=t.h;y=t.k},function(t){g=t.c},function(t){k=t.p},function(t){_=t.g},function(t){A=t.G;Y=t.O;j=t.F;D=t.e;M=t.B;E=t.j;S=t.k;P=t.f;O=t.g;B=t.h},function(t){C=t.g},function(t){I=t.e;z=t.w},function(t){R=t.b;W=t.c},function(t){L=t.KEYBOARD_DID_OPEN},function(t){T=t.c},function(t){N=t.g},function(t){K=t.createGesture},function(t){V=t.w},function(){},function(){},function(){}],execute:function(){var Z=this;var F;(function(t){t["Dark"]="DARK";t["Light"]="LIGHT";t["Default"]="DEFAULT"})(F||(F={}));var G={getEngine:function(){var t=_();if(t===null||t===void 0?void 0:t.isPluginAvailable("StatusBar")){return t.Plugins.StatusBar}return undefined},setStyle:function(t){var r=this.getEngine();if(!r){return}r.setStyle(t)},getStyle:function(){return __awaiter(this,void 0,void 0,(function(){var t,r;return __generator(this,(function(e){switch(e.label){case 0:t=this.getEngine();if(!t){return[2,F.Default]}return[4,t.getInfo()];case 1:r=e.sent().style;return[2,r]}}))}))}};var H=function(t,r){if(r===1){return 0}var e=1/(1-r);var a=-(r*e);return t*e+a};var U=function(){if(!V||V.innerWidth>=768){return}G.setStyle({style:F.Dark})};var q=function(t){if(t===void 0){t=F.Default}if(!V||V.innerWidth>=768){return}G.setStyle({style:t})};var J=function(t,r){return __awaiter(Z,void 0,void 0,(function(){var e;return __generator(this,(function(a){switch(a.label){case 0:if(typeof t.canDismiss!=="function"){return[2]}return[4,t.canDismiss(undefined,A)];case 1:e=a.sent();if(!e){return[2]}if(r.isRunning()){r.onFinish((function(){t.dismiss(undefined,"handler")}),{oneTimeCallback:true})}else{t.dismiss(undefined,"handler")}return[2]}}))}))};var Q=function(t){return.00255275*Math.pow(2.71828,-14.9619*t)-1.00255*Math.pow(2.71828,-.0380968*t)+1};var X={MIN_PRESENTING_SCALE:.915};var $=function(t,r,e,a){var i=.5;var n=t.offsetHeight;var o=false;var c=false;var h=null;var l=null;var p=.2;var v=true;var w=0;var x=function(){if(h&&d(h)){return h.scrollY}else{return true}};var y=function(t){var r=t.event.target;if(r===null||!r.closest){return true}h=s(r);if(h){if(d(h)){var e=m(h);l=e.querySelector(".inner-scroll")}else{l=h}var a=!!h.querySelector("ion-refresher");return!a&&l.scrollTop===0}var i=r.closest("ion-footer");if(i===null){return true}return false};var g=function(e){var a=e.deltaY;v=x();c=t.canDismiss!==undefined&&t.canDismiss!==true;if(a>0&&h){f(h)}r.progressStart(true,o?1:0)};var k=function(t){var a=t.deltaY;if(a>0&&h){f(h)}var o=t.deltaY/n;var s=o>=0&&c;var d=s?p:.9999;var u=s?Q(o/d):o;var l=b(1e-4,u,d);r.progressStep(l);if(l>=i&&w<i){q(e)}else if(l<i&&w>=i){U()}w=l};var _=function(e){var s=e.velocityY;var d=e.deltaY/n;var f=d>=0&&c;var l=f?p:.9999;var m=f?Q(d/l):d;var w=b(1e-4,m,l);var x=(e.deltaY+s*1e3)/n;var y=!f&&x>=i;var g=y?-.001:.001;if(!y){r.easing("cubic-bezier(1, 0, 0.68, 0.28)");g+=N([0,0],[1,0],[.68,.28],[1,1],w)[0]}else{r.easing("cubic-bezier(0.32, 0.72, 0, 1)");g+=N([0,0],[.32,.72],[0,1],[1,1],w)[0]}var k=y?tt(d*n,s):tt((1-w)*n,s);o=y;A.enable(false);if(h){u(h,v)}r.onFinish((function(){if(!y){A.enable(true)}})).progressEnd(y?1:0,g,k);if(f&&w>l/4){J(t,r)}else if(y){a()}};var A=K({el:t,gestureName:"modalSwipeToClose",gesturePriority:Y,direction:"y",threshold:10,canStart:y,onStart:g,onMove:k,onEnd:_});return A};var tt=function(t,r){return b(400,t/Math.abs(r*1.1),500)};var rt=function(t){var r=t.currentBreakpoint,e=t.backdropBreakpoint;var a=e===undefined||e<r;var i=a?"calc(var(--backdrop-opacity) * ".concat(r,")"):"0";var n=T("backdropAnimation").fromTo("opacity",0,i);if(a){n.beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"])}var o=T("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:"translateY(100%)"},{offset:1,opacity:1,transform:"translateY(".concat(100-r*100,"%)")}]);return{wrapperAnimation:o,backdropAnimation:n}};var et=function(t){var r=t.currentBreakpoint,e=t.backdropBreakpoint;var a="calc(var(--backdrop-opacity) * ".concat(H(r,e),")");var i=[{offset:0,opacity:a},{offset:1,opacity:0}];var n=[{offset:0,opacity:a},{offset:e,opacity:0},{offset:1,opacity:0}];var o=T("backdropAnimation").keyframes(e!==0?n:i);var s=T("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:"translateY(".concat(100-r*100,"%)")},{offset:1,opacity:1,transform:"translateY(100%)"}]);return{wrapperAnimation:s,backdropAnimation:o}};var at=function(){var t=T().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]);var r=T().fromTo("transform","translateY(100vh)","translateY(0vh)");return{backdropAnimation:t,wrapperAnimation:r}};var it=function(t,r){var e=r.presentingEl,a=r.currentBreakpoint;var i=m(t);var n=a!==undefined?rt(r):at(),o=n.wrapperAnimation,s=n.backdropAnimation;s.addElement(i.querySelector("ion-backdrop"));o.addElement(i.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});var d=T("entering-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(500).addAnimation(o);if(e){var f=window.innerWidth<768;var u=e.tagName==="ION-MODAL"&&e.presentingElement!==undefined;var c=m(e);var h=T().beforeStyles({transform:"translateY(0)","transform-origin":"top center",overflow:"hidden"});var l=document.body;if(f){var p=!CSS.supports("width","max(0px, 1px)")?"30px":"max(30px, var(--ion-safe-area-top))";var v=u?"-10px":p;var b=X.MIN_PRESENTING_SCALE;var w="translateY(".concat(v,") scale(").concat(b,")");h.afterStyles({transform:w}).beforeAddWrite((function(){return l.style.setProperty("background-color","black")})).addElement(e).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"},{offset:1,filter:"contrast(0.85)",transform:w,borderRadius:"10px 10px 0 0"}]);d.addAnimation(h)}else{d.addAnimation(s);if(!u){o.fromTo("opacity","0","1")}else{var b=u?X.MIN_PRESENTING_SCALE:1;var w="translateY(-10px) scale(".concat(b,")");h.afterStyles({transform:w}).addElement(c.querySelector(".modal-wrapper")).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0) scale(1)"},{offset:1,filter:"contrast(0.85)",transform:w}]);var x=T().afterStyles({transform:w}).addElement(c.querySelector(".modal-shadow")).keyframes([{offset:0,opacity:"1",transform:"translateY(0) scale(1)"},{offset:1,opacity:"0",transform:w}]);d.addAnimation([h,x])}}}else{d.addAnimation(s)}return d};var nt=function(){var t=T().fromTo("opacity","var(--backdrop-opacity)",0);var r=T().fromTo("transform","translateY(0vh)","translateY(100vh)");return{backdropAnimation:t,wrapperAnimation:r}};var ot=function(t,r,e){if(e===void 0){e=500}var a=r.presentingEl,i=r.currentBreakpoint;var n=m(t);var o=i!==undefined?et(r):nt(),s=o.wrapperAnimation,d=o.backdropAnimation;d.addElement(n.querySelector("ion-backdrop"));s.addElement(n.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});var f=T("leaving-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(e).addAnimation(s);if(a){var u=window.innerWidth<768;var c=a.tagName==="ION-MODAL"&&a.presentingElement!==undefined;var h=m(a);var l=T().beforeClearStyles(["transform"]).afterClearStyles(["transform"]).onFinish((function(t){if(t!==1){return}a.style.setProperty("overflow","");var r=Array.from(p.querySelectorAll("ion-modal:not(.overlay-hidden)")).filter((function(t){return t.presentingElement!==undefined})).length;if(r<=1){p.style.setProperty("background-color","")}}));var p=document.body;if(u){var v=!CSS.supports("width","max(0px, 1px)")?"30px":"max(30px, var(--ion-safe-area-top))";var b=c?"-10px":v;var w=X.MIN_PRESENTING_SCALE;var x="translateY(".concat(b,") scale(").concat(w,")");l.addElement(a).keyframes([{offset:0,filter:"contrast(0.85)",transform:x,borderRadius:"10px 10px 0 0"},{offset:1,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"}]);f.addAnimation(l)}else{f.addAnimation(d);if(!c){s.fromTo("opacity","1","0")}else{var w=c?X.MIN_PRESENTING_SCALE:1;var x="translateY(-10px) scale(".concat(w,")");l.addElement(h.querySelector(".modal-wrapper")).afterStyles({transform:"translate3d(0, 0, 0)"}).keyframes([{offset:0,filter:"contrast(0.85)",transform:x},{offset:1,filter:"contrast(1)",transform:"translateY(0) scale(1)"}]);var y=T().addElement(h.querySelector(".modal-shadow")).afterStyles({transform:"translateY(0) scale(1)"}).keyframes([{offset:0,opacity:"0",transform:x},{offset:1,opacity:"1",transform:"translateY(0) scale(1)"}]);f.addAnimation([l,y])}}}else{f.addAnimation(d)}return f};var st=function(){var t=T().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]);var r=T().keyframes([{offset:0,opacity:.01,transform:"translateY(40px)"},{offset:1,opacity:1,transform:"translateY(0px)"}]);return{backdropAnimation:t,wrapperAnimation:r}};var dt=function(t,r){var e=r.currentBreakpoint;var a=m(t);var i=e!==undefined?rt(r):st(),n=i.wrapperAnimation,o=i.backdropAnimation;o.addElement(a.querySelector("ion-backdrop"));n.addElement(a.querySelector(".modal-wrapper"));return T().addElement(t).easing("cubic-bezier(0.36,0.66,0.04,1)").duration(280).addAnimation([o,n])};var ft=function(){var t=T().fromTo("opacity","var(--backdrop-opacity)",0);var r=T().keyframes([{offset:0,opacity:.99,transform:"translateY(0px)"},{offset:1,opacity:0,transform:"translateY(40px)"}]);return{backdropAnimation:t,wrapperAnimation:r}};var ut=function(t,r){var e=r.currentBreakpoint;var a=m(t);var i=e!==undefined?et(r):ft(),n=i.wrapperAnimation,o=i.backdropAnimation;o.addElement(a.querySelector("ion-backdrop"));n.addElement(a.querySelector(".modal-wrapper"));return T().easing("cubic-bezier(0.47,0,0.745,0.715)").duration(200).addAnimation([o,n])};var ct=function(t,r,e,a,i,n,o,f,u,c){if(o===void 0){o=[]}var h=[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1,opacity:.01}];var l=[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1-i,opacity:0},{offset:1,opacity:0}];var p={WRAPPER_KEYFRAMES:[{offset:0,transform:"translateY(0%)"},{offset:1,transform:"translateY(100%)"}],BACKDROP_KEYFRAMES:i!==0?l:h};var v=t.querySelector("ion-content");var x=e.clientHeight;var y=a;var g=0;var k=false;var _=.95;var A=n.childAnimations.find((function(t){return t.id==="wrapperAnimation"}));var Y=n.childAnimations.find((function(t){return t.id==="backdropAnimation"}));var D=o[o.length-1];var M=o[0];var E=function(){t.style.setProperty("pointer-events","auto");r.style.setProperty("pointer-events","auto");t.classList.remove(j)};var S=function(){t.style.setProperty("pointer-events","none");r.style.setProperty("pointer-events","none");t.classList.add(j)};if(A&&Y){A.keyframes(__spreadArray([],p.WRAPPER_KEYFRAMES,true));Y.keyframes(__spreadArray([],p.BACKDROP_KEYFRAMES,true));n.progressStart(true,1-y);var P=y>i;if(P){E()}else{S()}}if(v&&y!==D){v.scrollY=false}var O=function(t){var r=s(t.event.target);y=f();if(y===1&&r){var e=d(r)?m(r).querySelector(".inner-scroll"):r;var a=!!r.querySelector("ion-refresher");return!a&&e.scrollTop===0}return true};var B=function(r){k=t.canDismiss!==undefined&&t.canDismiss!==true&&M===0;if(r.deltaY>0&&v){v.scrollY=false}w((function(){t.focus()}));n.progressStart(true,1-y)};var C=function(t){if(t.deltaY>0&&v){v.scrollY=false}var r=1-y;var e=o.length>1?1-o[1]:undefined;var a=r+t.deltaY/x;var i=e!==undefined&&a>=e&&k;var s=i?_:.9999;var d=i&&e!==undefined?e+Q((a-e)/(s-e)):a;g=b(1e-4,d,s);n.progressStep(g)};var I=function(t){var r=t.velocityY;var e=(t.deltaY+r*350)/x;var a=y-e;var i=o.reduce((function(t,r){return Math.abs(r-a)<Math.abs(t-a)?r:t}));z({breakpoint:i,breakpointOffset:g,canDismiss:k,animated:true})};var z=function(r){var e=r.breakpoint,a=r.canDismiss,s=r.breakpointOffset,d=r.animated;var f=a&&e===0;var h=f?y:e;var l=h!==0;y=0;if(A&&Y){A.keyframes([{offset:0,transform:"translateY(".concat(s*100,"%)")},{offset:1,transform:"translateY(".concat((1-h)*100,"%)")}]);Y.keyframes([{offset:0,opacity:"calc(var(--backdrop-opacity) * ".concat(H(1-s,i),")")},{offset:1,opacity:"calc(var(--backdrop-opacity) * ".concat(H(h,i),")")}]);n.progressStep(0)}R.enable(false);if(f){J(t,n)}else if(!l){u()}if(v&&h===o[o.length-1]){v.scrollY=true}return new Promise((function(t){n.onFinish((function(){if(l){if(A&&Y){w((function(){A.keyframes(__spreadArray([],p.WRAPPER_KEYFRAMES,true));Y.keyframes(__spreadArray([],p.BACKDROP_KEYFRAMES,true));n.progressStart(true,1-h);y=h;c(y);var r=y>i;if(r){E()}else{S()}R.enable(true);t()}))}else{R.enable(true);t()}}else{t()}}),{oneTimeCallback:true}).progressEnd(1,0,d?500:0)}))};var R=K({el:e,gestureName:"modalSheet",gesturePriority:40,direction:"y",threshold:10,canStart:O,onStart:B,onMove:C,onEnd:I});return{gesture:R,moveSheetToBreakpoint:z}};var ht=':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}';var lt=ht;var pt=':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}';var vt=pt;var mt=t("ion_modal",function(){function t(t){var a=this;r(this,t);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=g();this.triggerController=D();this.coreDelegate=l();this.isSheetModal=false;this.inheritedAttributes={};this.inline=false;this.gestureAnimationDismissing=false;this.onHandleClick=function(){var t=a,r=t.sheetTransition,e=t.handleBehavior;if(e!=="cycle"||r!==undefined){return}a.moveToNextBreakpoint()};this.onBackdropTap=function(){var t=a.sheetTransition;if(t!==undefined){return}a.dismiss(undefined,M)};this.onLifecycle=function(t){var r=a.usersElement;var e=bt[t.type];if(r&&e){var i=new CustomEvent(e,{bubbles:false,cancelable:false,detail:t.detail});r.dispatchEvent(i)}};this.presented=false;this.hasController=false;this.overlayIndex=undefined;this.delegate=undefined;this.keyboardClose=true;this.enterAnimation=undefined;this.leaveAnimation=undefined;this.breakpoints=undefined;this.initialBreakpoint=undefined;this.backdropBreakpoint=0;this.handle=undefined;this.handleBehavior="none";this.component=undefined;this.componentProps=undefined;this.cssClass=undefined;this.backdropDismiss=true;this.showBackdrop=true;this.animated=true;this.presentingElement=undefined;this.htmlAttributes=undefined;this.isOpen=false;this.trigger=undefined;this.keepContentsMounted=false;this.focusTrap=true;this.canDismiss=true}t.prototype.onIsOpenChange=function(t,r){if(t===true&&r===false){this.present()}else if(t===false&&r===true){this.dismiss()}};t.prototype.triggerChanged=function(){var t=this,r=t.trigger,e=t.el,a=t.triggerController;if(r){a.addClickListener(e,r)}};t.prototype.breakpointsChanged=function(t){if(t!==undefined){this.sortedBreakpoints=t.sort((function(t,r){return t-r}))}};t.prototype.connectedCallback=function(){var t=this.el;E(t);this.triggerChanged()};t.prototype.disconnectedCallback=function(){this.triggerController.removeClickListener()};t.prototype.componentWillLoad=function(){var t=this;var r;var e=this,a=e.breakpoints,i=e.initialBreakpoint,n=e.el,o=e.htmlAttributes;var s=this.isSheetModal=a!==undefined&&i!==undefined;var d=["aria-label","role"];this.inheritedAttributes=x(n,d);if(o!==undefined){d.forEach((function(r){var e;var a=o[r];if(a){t.inheritedAttributes=Object.assign(Object.assign({},t.inheritedAttributes),(e={},e[r]=o[r],e));delete o[r]}}))}if(s){this.currentBreakpoint=this.initialBreakpoint}if(a!==undefined&&i!==undefined&&!a.includes(i)){k("Your breakpoints array must include the initialBreakpoint value.")}if(!((r=this.htmlAttributes)===null||r===void 0?void 0:r.id)){S(this.el)}};t.prototype.componentDidLoad=function(){var t=this;if(this.isOpen===true){w((function(){return t.present()}))}this.breakpointsChanged(this.breakpoints);this.triggerChanged()};t.prototype.getDelegate=function(t){if(t===void 0){t=false}if(this.workingDelegate&&!t){return{delegate:this.workingDelegate,inline:this.inline}}var r=this.el.parentNode;var e=this.inline=r!==null&&!this.hasController;var a=this.workingDelegate=e?this.delegate||this.coreDelegate:this.delegate;return{inline:e,delegate:a}};t.prototype.checkCanDismiss=function(t,r){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(a){e=this.canDismiss;if(typeof e==="function"){return[2,e(t,r)]}return[2,e]}))}))};t.prototype.present=function(){return __awaiter(this,void 0,void 0,(function(){var t,r,e,i,n,o,s,d,f,u;var c=this;return __generator(this,(function(h){switch(h.label){case 0:return[4,this.lockController.lock()];case 1:t=h.sent();if(this.presented){t();return[2]}r=this,e=r.presentingElement,i=r.el;this.currentBreakpoint=this.initialBreakpoint;n=this.getDelegate(true),o=n.inline,s=n.delegate;this.ionMount.emit();d=this;return[4,p(s,i,this.component,["ion-page"],this.componentProps,o)];case 2:d.usersElement=h.sent();if(!y(i))return[3,4];return[4,I(this.usersElement)];case 3:h.sent();return[3,6];case 4:if(!!this.keepContentsMounted)return[3,6];return[4,z()];case 5:h.sent();h.label=6;case 6:a((function(){return c.el.classList.add("show-modal")}));f=e!==undefined;if(!(f&&R(this)==="ios"))return[3,8];u=this;return[4,G.getStyle()];case 7:u.statusBarStyle=h.sent();U();h.label=8;case 8:return[4,P(this,"modalEnter",it,dt,{presentingEl:e,currentBreakpoint:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint})];case 9:h.sent();if(typeof window!=="undefined"){this.keyboardOpenCallback=function(){if(c.gesture){c.gesture.enable(false);w((function(){if(c.gesture){c.gesture.enable(true)}}))}};window.addEventListener(L,this.keyboardOpenCallback)}if(this.isSheetModal){this.initSheetGesture()}else if(f){this.initSwipeToClose()}t();return[2]}}))}))};t.prototype.initSwipeToClose=function(){var t=this;var r;if(R(this)!=="ios"){return}var e=this.el;var a=this.leaveAnimation||W.get("modalLeave",ot);var i=this.animation=a(e,{presentingEl:this.presentingElement});var n=c(e);if(!n){h(e);return}var o=(r=this.statusBarStyle)!==null&&r!==void 0?r:F.Default;this.gesture=$(e,i,o,(function(){t.gestureAnimationDismissing=true;q(t.statusBarStyle);t.animation.onFinish((function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.dismiss(undefined,A)];case 1:t.sent();this.gestureAnimationDismissing=false;return[2]}}))}))}))}));this.gesture.enable(true)};t.prototype.initSheetGesture=function(){var t=this;var r=this,e=r.wrapperEl,a=r.initialBreakpoint,i=r.backdropBreakpoint;if(!e||a===undefined){return}var n=this.enterAnimation||W.get("modalEnter",it);var o=this.animation=n(this.el,{presentingEl:this.presentingElement,currentBreakpoint:a,backdropBreakpoint:i});o.progressStart(true,1);var s=ct(this.el,this.backdropEl,e,a,i,o,this.sortedBreakpoints,(function(){var r;return(r=t.currentBreakpoint)!==null&&r!==void 0?r:0}),(function(){return t.sheetOnDismiss()}),(function(r){if(t.currentBreakpoint!==r){t.currentBreakpoint=r;t.ionBreakpointDidChange.emit({breakpoint:r})}})),d=s.gesture,f=s.moveSheetToBreakpoint;this.gesture=d;this.moveSheetToBreakpoint=f;this.gesture.enable(true)};t.prototype.sheetOnDismiss=function(){var t=this;this.gestureAnimationDismissing=true;this.animation.onFinish((function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:this.currentBreakpoint=0;this.ionBreakpointDidChange.emit({breakpoint:this.currentBreakpoint});return[4,this.dismiss(undefined,A)];case 1:t.sent();this.gestureAnimationDismissing=false;return[2]}}))}))}))};t.prototype.dismiss=function(t,r){return __awaiter(this,void 0,void 0,(function(){var e,i,n,o,s,d,f;var u=this;return __generator(this,(function(c){switch(c.label){case 0:if(this.gestureAnimationDismissing&&r!==A){return[2,false]}return[4,this.lockController.lock()];case 1:i=c.sent();n=r!=="handler";if(!n)return[3,3];return[4,this.checkCanDismiss(t,r)];case 2:n=!c.sent();c.label=3;case 3:if(n){i();return[2,false]}o=this.presentingElement;s=o!==undefined;if(s&&R(this)==="ios"){q(this.statusBarStyle)}if(typeof window!=="undefined"&&this.keyboardOpenCallback){window.removeEventListener(L,this.keyboardOpenCallback);this.keyboardOpenCallback=undefined}return[4,O(this,t,r,"modalLeave",ot,ut,{presentingEl:o,currentBreakpoint:(e=this.currentBreakpoint)!==null&&e!==void 0?e:this.initialBreakpoint,backdropBreakpoint:this.backdropBreakpoint})];case 4:d=c.sent();if(!d)return[3,6];f=this.getDelegate().delegate;return[4,v(f,this.usersElement)];case 5:c.sent();a((function(){return u.el.classList.remove("show-modal")}));if(this.animation){this.animation.destroy()}if(this.gesture){this.gesture.destroy()}c.label=6;case 6:this.currentBreakpoint=undefined;this.animation=undefined;i();return[2,d]}}))}))};t.prototype.onDidDismiss=function(){return B(this.el,"ionModalDidDismiss")};t.prototype.onWillDismiss=function(){return B(this.el,"ionModalWillDismiss")};t.prototype.setCurrentBreakpoint=function(t){return __awaiter(this,void 0,void 0,(function(){var r,e,a,i,n,o;return __generator(this,(function(s){switch(s.label){case 0:if(!this.isSheetModal){k("setCurrentBreakpoint is only supported on sheet modals.");return[2]}if(!this.breakpoints.includes(t)){k("Attempted to set invalid breakpoint value ".concat(t,". Please double check that the breakpoint value is part of your defined breakpoints."));return[2]}r=this,e=r.currentBreakpoint,a=r.moveSheetToBreakpoint,i=r.canDismiss,n=r.breakpoints,o=r.animated;if(e===t){return[2]}if(!a)return[3,2];this.sheetTransition=a({breakpoint:t,breakpointOffset:1-e,canDismiss:i!==undefined&&i!==true&&n[0]===0,animated:o});return[4,this.sheetTransition];case 1:s.sent();this.sheetTransition=undefined;s.label=2;case 2:return[2]}}))}))};t.prototype.getCurrentBreakpoint=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.currentBreakpoint]}))}))};t.prototype.moveToNextBreakpoint=function(){return __awaiter(this,void 0,void 0,(function(){var t,r,e,a,i,n,o;return __generator(this,(function(s){switch(s.label){case 0:t=this,r=t.breakpoints,e=t.currentBreakpoint;if(!r||e==null){return[2,false]}a=r.filter((function(t){return t!==0}));i=a.indexOf(e);n=(i+1)%a.length;o=a[n];return[4,this.setCurrentBreakpoint(o)];case 1:s.sent();return[2,true]}}))}))};t.prototype.render=function(){var t;var r=this;var e=this,a=e.handle,o=e.isSheetModal,s=e.presentingElement,d=e.htmlAttributes,f=e.handleBehavior,u=e.inheritedAttributes,c=e.focusTrap;var h=a!==false&&o;var l=R(this);var p=s!==undefined&&l==="ios";var v=f==="cycle";return i(n,Object.assign({key:"b4da5111fe4719fa450c39b2d4bd884a302a7924","no-router":true,tabindex:"-1"},d,{style:{zIndex:"".concat(2e4+this.overlayIndex)},class:Object.assign((t={},t[l]=true,t["modal-default"]=!p&&!o,t["modal-card"]=p,t["modal-sheet"]=o,t["overlay-hidden"]=true,t[j]=c===false,t),C(this.cssClass)),onIonBackdropTap:this.onBackdropTap,onIonModalDidPresent:this.onLifecycle,onIonModalWillPresent:this.onLifecycle,onIonModalWillDismiss:this.onLifecycle,onIonModalDidDismiss:this.onLifecycle}),i("ion-backdrop",{key:"c12dbf747e0eb914eaf1331798548ffc7e147763",ref:function(t){return r.backdropEl=t},visible:this.showBackdrop,tappable:this.backdropDismiss,part:"backdrop"}),l==="ios"&&i("div",{key:"da546ee80c6576b5acc66e959fd5009e0b9a8160",class:"modal-shadow"}),i("div",Object.assign({key:"306ebe6427440ad5f7ed36d590e562d15a503b75",role:"dialog"},u,{"aria-modal":"true",class:"modal-wrapper ion-overlay-wrapper",part:"content",ref:function(t){return r.wrapperEl=t}}),h&&i("button",{key:"c5d17e346fe255a7c0cacbbf15c0083f2d09c488",class:"modal-handle",tabIndex:!v?-1:0,"aria-label":"Activate to adjust the size of the dialog overlaying the screen",onClick:v?this.onHandleClick:undefined,part:"handle"}),i("slot",{key:"5cc714170a00b67f3eda0cd1d6f37c1489a99c83"})))};Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}},enumerable:false,configurable:true});return t}());var bt={ionModalDidPresent:"ionViewDidEnter",ionModalWillPresent:"ionViewWillEnter",ionModalWillDismiss:"ionViewWillLeave",ionModalDidDismiss:"ionViewDidLeave"};mt.style={ios:lt,md:vt}}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import{r as o,h as i,j as e,f as t,i as c}from"./p-d836d43e.js";import{b as r}from"./p-0574e87e.js";import{s as n}from"./p-96573065.js";import{g as a}from"./p-47794def.js";import"./p-7b30edcc.js";import"./p-b51e4004.js";import"./p-ecceeb90.js";import"./p-3cc276f4.js";import"./p-9b97df10.js";import"./p-06fee233.js";const s=class{constructor(i){o(this,i),this.header=void 0,this.multiple=void 0,this.options=[]}closeModal(){const o=this.el.closest("ion-modal");o&&o.dismiss()}findOptionFromEvent(o){const{options:i}=this;return i.find((i=>i.value===o.target.value))}getValues(o){const{multiple:i,options:e}=this;if(i)return e.filter((o=>o.checked)).map((o=>o.value));const t=o?this.findOptionFromEvent(o):null;return t?t.value:void 0}callOptionHandler(o){const i=this.findOptionFromEvent(o),e=this.getValues(o);(null==i?void 0:i.handler)&&n(i.handler,e)}setChecked(o){const{multiple:i}=this,e=this.findOptionFromEvent(o);i&&e&&(e.checked=o.detail.checked)}renderRadioOptions(){const o=this.options.filter((o=>o.checked)).map((o=>o.value))[0];return i("ion-radio-group",{value:o,onIonChange:o=>this.callOptionHandler(o)},this.options.map((e=>i("ion-item",{class:Object.assign({"item-radio-checked":e.value===o},a(e.cssClass))},i("ion-radio",{value:e.value,disabled:e.disabled,justify:"start",labelPlacement:"end",onClick:()=>this.closeModal(),onKeyUp:o=>{" "===o.key&&this.closeModal()}},e.text)))))}renderCheckboxOptions(){return this.options.map((o=>i("ion-item",{class:Object.assign({"item-checkbox-checked":o.checked},a(o.cssClass))},i("ion-checkbox",{value:o.value,disabled:o.disabled,checked:o.checked,justify:"start",labelPlacement:"end",onIonChange:o=>{this.setChecked(o),this.callOptionHandler(o),e(this)}},o.text))))}render(){return i(t,{key:"f4b92f4fc3d646f9a327e43a9622abaf69659c28",class:r(this)},i("ion-header",{key:"11232ef496e7abd69e55cef988963a4869a7b01e"},i("ion-toolbar",{key:"e7c41878691a504d44c658db02807867df542588"},void 0!==this.header&&i("ion-title",{key:"fcf9d33e0f3e0076ff14805de68848f9ef199cca"},this.header),i("ion-buttons",{key:"748a967ae0ce68bc2fd018a6b9ebe0e4b810f6ac",slot:"end"},i("ion-button",{key:"f5e60791870b5085a31b7af70ed4bb3fb83eb185",onClick:()=>this.closeModal()},"Close")))),i("ion-content",{key:"159797957b6f788a9b393d91864c18db34481c68"},i("ion-list",{key:"4124554fe8b2411637cbf02f08e50e0d8f804175"},!0===this.multiple?this.renderCheckboxOptions():this.renderRadioOptions())))}get el(){return c(this)}};s.style={ionic:".sc-ion-select-modal-ionic-h{height:100%}ion-list.sc-ion-select-modal-ionic ion-radio.sc-ion-select-modal-ionic::part(container){display:none}ion-list.sc-ion-select-modal-ionic ion-radio.sc-ion-select-modal-ionic::part(label){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-item.sc-ion-select-modal-ionic{--inner-border-width:0}.item-radio-checked.sc-ion-select-modal-ionic{--background:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.08);--background-focused:var(--ion-color-primary, #0054e9);--background-focused-opacity:0.2;--background-hover:var(--ion-color-primary, #0054e9);--background-hover-opacity:0.12}.item-checkbox-checked.sc-ion-select-modal-ionic{--background-activated:var(--ion-item-color, var(--ion-text-color, #000));--background-focused:var(--ion-item-color, var(--ion-text-color, #000));--background-hover:var(--ion-item-color, var(--ion-text-color, #000));--color:var(--ion-color-primary, #0054e9)}",ios:".sc-ion-select-modal-ios-h{height:100%}",md:".sc-ion-select-modal-md-h{height:100%}ion-list.sc-ion-select-modal-md ion-radio.sc-ion-select-modal-md::part(container){display:none}ion-list.sc-ion-select-modal-md ion-radio.sc-ion-select-modal-md::part(label){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-item.sc-ion-select-modal-md{--inner-border-width:0}.item-radio-checked.sc-ion-select-modal-md{--background:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.08);--background-focused:var(--ion-color-primary, #0054e9);--background-focused-opacity:0.2;--background-hover:var(--ion-color-primary, #0054e9);--background-hover-opacity:0.12}.item-checkbox-checked.sc-ion-select-modal-md{--background-activated:var(--ion-item-color, var(--ion-text-color, #000));--background-focused:var(--ion-item-color, var(--ion-text-color, #000));--background-hover:var(--ion-item-color, var(--ion-text-color, #000));--color:var(--ion-color-primary, #0054e9)}"};export{s as ion_select_modal}
4
+ import{r as o,h as i,j as e,f as t,i as c}from"./p-d836d43e.js";import{b as r}from"./p-0574e87e.js";import{s as n}from"./p-e6635685.js";import{g as a}from"./p-47794def.js";import"./p-7b30edcc.js";import"./p-b51e4004.js";import"./p-ecceeb90.js";import"./p-3cc276f4.js";import"./p-9b97df10.js";import"./p-06fee233.js";const s=class{constructor(i){o(this,i),this.header=void 0,this.multiple=void 0,this.options=[]}closeModal(){const o=this.el.closest("ion-modal");o&&o.dismiss()}findOptionFromEvent(o){const{options:i}=this;return i.find((i=>i.value===o.target.value))}getValues(o){const{multiple:i,options:e}=this;if(i)return e.filter((o=>o.checked)).map((o=>o.value));const t=o?this.findOptionFromEvent(o):null;return t?t.value:void 0}callOptionHandler(o){const i=this.findOptionFromEvent(o),e=this.getValues(o);(null==i?void 0:i.handler)&&n(i.handler,e)}setChecked(o){const{multiple:i}=this,e=this.findOptionFromEvent(o);i&&e&&(e.checked=o.detail.checked)}renderRadioOptions(){const o=this.options.filter((o=>o.checked)).map((o=>o.value))[0];return i("ion-radio-group",{value:o,onIonChange:o=>this.callOptionHandler(o)},this.options.map((e=>i("ion-item",{class:Object.assign({"item-radio-checked":e.value===o},a(e.cssClass))},i("ion-radio",{value:e.value,disabled:e.disabled,justify:"start",labelPlacement:"end",onClick:()=>this.closeModal(),onKeyUp:o=>{" "===o.key&&this.closeModal()}},e.text)))))}renderCheckboxOptions(){return this.options.map((o=>i("ion-item",{class:Object.assign({"item-checkbox-checked":o.checked},a(o.cssClass))},i("ion-checkbox",{value:o.value,disabled:o.disabled,checked:o.checked,justify:"start",labelPlacement:"end",onIonChange:o=>{this.setChecked(o),this.callOptionHandler(o),e(this)}},o.text))))}render(){return i(t,{key:"f4b92f4fc3d646f9a327e43a9622abaf69659c28",class:r(this)},i("ion-header",{key:"11232ef496e7abd69e55cef988963a4869a7b01e"},i("ion-toolbar",{key:"e7c41878691a504d44c658db02807867df542588"},void 0!==this.header&&i("ion-title",{key:"fcf9d33e0f3e0076ff14805de68848f9ef199cca"},this.header),i("ion-buttons",{key:"748a967ae0ce68bc2fd018a6b9ebe0e4b810f6ac",slot:"end"},i("ion-button",{key:"f5e60791870b5085a31b7af70ed4bb3fb83eb185",onClick:()=>this.closeModal()},"Close")))),i("ion-content",{key:"159797957b6f788a9b393d91864c18db34481c68"},i("ion-list",{key:"4124554fe8b2411637cbf02f08e50e0d8f804175"},!0===this.multiple?this.renderCheckboxOptions():this.renderRadioOptions())))}get el(){return c(this)}};s.style={ionic:".sc-ion-select-modal-ionic-h{height:100%}ion-list.sc-ion-select-modal-ionic ion-radio.sc-ion-select-modal-ionic::part(container){display:none}ion-list.sc-ion-select-modal-ionic ion-radio.sc-ion-select-modal-ionic::part(label){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-item.sc-ion-select-modal-ionic{--inner-border-width:0}.item-radio-checked.sc-ion-select-modal-ionic{--background:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.08);--background-focused:var(--ion-color-primary, #0054e9);--background-focused-opacity:0.2;--background-hover:var(--ion-color-primary, #0054e9);--background-hover-opacity:0.12}.item-checkbox-checked.sc-ion-select-modal-ionic{--background-activated:var(--ion-item-color, var(--ion-text-color, #000));--background-focused:var(--ion-item-color, var(--ion-text-color, #000));--background-hover:var(--ion-item-color, var(--ion-text-color, #000));--color:var(--ion-color-primary, #0054e9)}",ios:".sc-ion-select-modal-ios-h{height:100%}",md:".sc-ion-select-modal-md-h{height:100%}ion-list.sc-ion-select-modal-md ion-radio.sc-ion-select-modal-md::part(container){display:none}ion-list.sc-ion-select-modal-md ion-radio.sc-ion-select-modal-md::part(label){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-item.sc-ion-select-modal-md{--inner-border-width:0}.item-radio-checked.sc-ion-select-modal-md{--background:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.08);--background-focused:var(--ion-color-primary, #0054e9);--background-focused-opacity:0.2;--background-hover:var(--ion-color-primary, #0054e9);--background-hover-opacity:0.12}.item-checkbox-checked.sc-ion-select-modal-md{--background-activated:var(--ion-item-color, var(--ion-text-color, #000));--background-focused:var(--ion-item-color, var(--ion-text-color, #000));--background-hover:var(--ion-item-color, var(--ion-text-color, #000));--color:var(--ion-color-primary, #0054e9)}"};export{s as ion_select_modal}
package/hydrate/index.js CHANGED
@@ -5404,11 +5404,12 @@ const createTriggerController = () => {
5404
5404
  * like TalkBack do not announce or interact with the content until the
5405
5405
  * animation is complete, avoiding confusion for users.
5406
5406
  *
5407
- * If the overlay is being presented, it prevents focus rings from appearing
5408
- * in incorrect positions due to the transition (specifically `transform`
5409
- * styles), ensuring that when aria-hidden is removed, the focus rings are
5410
- * correctly displayed in the final location of the elements. This only
5411
- * applies to Android devices.
5407
+ * When the overlay is presented on an Android device, TalkBack's focus rings
5408
+ * may appear in the wrong position due to the transition (specifically
5409
+ * `transform` styles). This occurs because the focus rings are initially
5410
+ * displayed at the starting position of the elements before the transition
5411
+ * begins. This workaround ensures the focus rings do not appear in the
5412
+ * incorrect location.
5412
5413
  *
5413
5414
  * If this solution is applied to iOS devices, then it leads to a bug where
5414
5415
  * the overlays cannot be accessed by screen readers. This is due to
@@ -17849,6 +17850,22 @@ class Menu {
17849
17850
  }
17850
17851
  beforeAnimation(shouldOpen, role) {
17851
17852
  assert(!this.isAnimating, '_before() should not be called while animating');
17853
+ /**
17854
+ * When the menu is presented on an Android device, TalkBack's focus rings
17855
+ * may appear in the wrong position due to the transition (specifically
17856
+ * `transform` styles). This occurs because the focus rings are initially
17857
+ * displayed at the starting position of the elements before the transition
17858
+ * begins. This workaround ensures the focus rings do not appear in the
17859
+ * incorrect location.
17860
+ *
17861
+ * If this solution is applied to iOS devices, then it leads to a bug where
17862
+ * the overlays cannot be accessed by screen readers. This is due to
17863
+ * VoiceOver not being able to update the accessibility tree when the
17864
+ * `aria-hidden` is removed.
17865
+ */
17866
+ if (isPlatform('android')) {
17867
+ this.el.setAttribute('aria-hidden', 'true');
17868
+ }
17852
17869
  // this places the menu into the correct location before it animates in
17853
17870
  // this css class doesn't actually kick off any animations
17854
17871
  this.el.classList.add(SHOW_MENU);
@@ -17901,6 +17918,16 @@ class Menu {
17901
17918
  this.blocker.unblock();
17902
17919
  }
17903
17920
  if (isOpen) {
17921
+ /**
17922
+ * When the menu is presented on an Android device, TalkBack's focus rings
17923
+ * may appear in the wrong position due to the transition (specifically
17924
+ * `transform` styles). The menu is hidden from screen readers during the
17925
+ * transition to prevent this. Once the transition is complete, the menu
17926
+ * is shown again.
17927
+ */
17928
+ if (isPlatform('android')) {
17929
+ this.el.removeAttribute('aria-hidden');
17930
+ }
17904
17931
  // emit open event
17905
17932
  this.ionDidOpen.emit();
17906
17933
  /**
@@ -17916,6 +17943,7 @@ class Menu {
17916
17943
  document.addEventListener('focus', this.handleFocus, true);
17917
17944
  }
17918
17945
  else {
17946
+ this.el.removeAttribute('aria-hidden');
17919
17947
  // remove css classes and unhide content from screen readers
17920
17948
  this.el.classList.remove(SHOW_MENU);
17921
17949
  /**
@@ -17982,14 +18010,14 @@ class Menu {
17982
18010
  * the ionBackButton listener in the menu controller
17983
18011
  * will handle closing the menu when Escape is pressed.
17984
18012
  */
17985
- return (hAsync(Host, { key: '5aaea91873d0885b97304372223b2a6ed16ca28b', onKeyDown: shouldUseCloseWatcher() ? null : this.onKeydown, role: "navigation", "aria-label": inheritedAttributes['aria-label'] || 'menu', class: {
18013
+ return (hAsync(Host, { key: 'da96fdb4c5ddf60e615cc4cdda7ccdb3fd7e089b', onKeyDown: shouldUseCloseWatcher() ? null : this.onKeydown, role: "navigation", "aria-label": inheritedAttributes['aria-label'] || 'menu', class: {
17986
18014
  [mode]: true,
17987
18015
  [`menu-type-${type}`]: true,
17988
18016
  'menu-enabled': !disabled,
17989
18017
  [`menu-side-${side}`]: true,
17990
18018
  'menu-pane-visible': isPaneVisible,
17991
18019
  'split-pane-side': hostContext('ion-split-pane', el),
17992
- } }, hAsync("div", { key: '3ba822411ad11eff52c518fecf1b2a5b47e0b678', class: "menu-inner", part: "container", ref: (el) => (this.menuInnerEl = el) }, hAsync("slot", { key: 'd28a78e98493b21d43ea8b19e96b21547adf1916' })), hAsync("ion-backdrop", { key: '0468c15d111737f5cb646918dcfacedadf907a8f', ref: (el) => (this.backdropEl = el), class: "menu-backdrop", tappable: false, stopPropagation: false, part: "backdrop" })));
18020
+ } }, hAsync("div", { key: '894e680fe227534711128c7aca980964ddb5a08a', class: "menu-inner", part: "container", ref: (el) => (this.menuInnerEl = el) }, hAsync("slot", { key: 'e9f5934518dc0cceaeadf1f2820614595fec6bc9' })), hAsync("ion-backdrop", { key: '7282077817657b1bb6c155f1404c0a519fece993', ref: (el) => (this.backdropEl = el), class: "menu-backdrop", tappable: false, stopPropagation: false, part: "backdrop" })));
17993
18021
  }
17994
18022
  get el() { return getElement(this); }
17995
18023
  static get watchers() { return {
package/hydrate/index.mjs CHANGED
@@ -5400,11 +5400,12 @@ const createTriggerController = () => {
5400
5400
  * like TalkBack do not announce or interact with the content until the
5401
5401
  * animation is complete, avoiding confusion for users.
5402
5402
  *
5403
- * If the overlay is being presented, it prevents focus rings from appearing
5404
- * in incorrect positions due to the transition (specifically `transform`
5405
- * styles), ensuring that when aria-hidden is removed, the focus rings are
5406
- * correctly displayed in the final location of the elements. This only
5407
- * applies to Android devices.
5403
+ * When the overlay is presented on an Android device, TalkBack's focus rings
5404
+ * may appear in the wrong position due to the transition (specifically
5405
+ * `transform` styles). This occurs because the focus rings are initially
5406
+ * displayed at the starting position of the elements before the transition
5407
+ * begins. This workaround ensures the focus rings do not appear in the
5408
+ * incorrect location.
5408
5409
  *
5409
5410
  * If this solution is applied to iOS devices, then it leads to a bug where
5410
5411
  * the overlays cannot be accessed by screen readers. This is due to
@@ -17845,6 +17846,22 @@ class Menu {
17845
17846
  }
17846
17847
  beforeAnimation(shouldOpen, role) {
17847
17848
  assert(!this.isAnimating, '_before() should not be called while animating');
17849
+ /**
17850
+ * When the menu is presented on an Android device, TalkBack's focus rings
17851
+ * may appear in the wrong position due to the transition (specifically
17852
+ * `transform` styles). This occurs because the focus rings are initially
17853
+ * displayed at the starting position of the elements before the transition
17854
+ * begins. This workaround ensures the focus rings do not appear in the
17855
+ * incorrect location.
17856
+ *
17857
+ * If this solution is applied to iOS devices, then it leads to a bug where
17858
+ * the overlays cannot be accessed by screen readers. This is due to
17859
+ * VoiceOver not being able to update the accessibility tree when the
17860
+ * `aria-hidden` is removed.
17861
+ */
17862
+ if (isPlatform('android')) {
17863
+ this.el.setAttribute('aria-hidden', 'true');
17864
+ }
17848
17865
  // this places the menu into the correct location before it animates in
17849
17866
  // this css class doesn't actually kick off any animations
17850
17867
  this.el.classList.add(SHOW_MENU);
@@ -17897,6 +17914,16 @@ class Menu {
17897
17914
  this.blocker.unblock();
17898
17915
  }
17899
17916
  if (isOpen) {
17917
+ /**
17918
+ * When the menu is presented on an Android device, TalkBack's focus rings
17919
+ * may appear in the wrong position due to the transition (specifically
17920
+ * `transform` styles). The menu is hidden from screen readers during the
17921
+ * transition to prevent this. Once the transition is complete, the menu
17922
+ * is shown again.
17923
+ */
17924
+ if (isPlatform('android')) {
17925
+ this.el.removeAttribute('aria-hidden');
17926
+ }
17900
17927
  // emit open event
17901
17928
  this.ionDidOpen.emit();
17902
17929
  /**
@@ -17912,6 +17939,7 @@ class Menu {
17912
17939
  document.addEventListener('focus', this.handleFocus, true);
17913
17940
  }
17914
17941
  else {
17942
+ this.el.removeAttribute('aria-hidden');
17915
17943
  // remove css classes and unhide content from screen readers
17916
17944
  this.el.classList.remove(SHOW_MENU);
17917
17945
  /**
@@ -17978,14 +18006,14 @@ class Menu {
17978
18006
  * the ionBackButton listener in the menu controller
17979
18007
  * will handle closing the menu when Escape is pressed.
17980
18008
  */
17981
- return (hAsync(Host, { key: '5aaea91873d0885b97304372223b2a6ed16ca28b', onKeyDown: shouldUseCloseWatcher() ? null : this.onKeydown, role: "navigation", "aria-label": inheritedAttributes['aria-label'] || 'menu', class: {
18009
+ return (hAsync(Host, { key: 'da96fdb4c5ddf60e615cc4cdda7ccdb3fd7e089b', onKeyDown: shouldUseCloseWatcher() ? null : this.onKeydown, role: "navigation", "aria-label": inheritedAttributes['aria-label'] || 'menu', class: {
17982
18010
  [mode]: true,
17983
18011
  [`menu-type-${type}`]: true,
17984
18012
  'menu-enabled': !disabled,
17985
18013
  [`menu-side-${side}`]: true,
17986
18014
  'menu-pane-visible': isPaneVisible,
17987
18015
  'split-pane-side': hostContext('ion-split-pane', el),
17988
- } }, hAsync("div", { key: '3ba822411ad11eff52c518fecf1b2a5b47e0b678', class: "menu-inner", part: "container", ref: (el) => (this.menuInnerEl = el) }, hAsync("slot", { key: 'd28a78e98493b21d43ea8b19e96b21547adf1916' })), hAsync("ion-backdrop", { key: '0468c15d111737f5cb646918dcfacedadf907a8f', ref: (el) => (this.backdropEl = el), class: "menu-backdrop", tappable: false, stopPropagation: false, part: "backdrop" })));
18016
+ } }, hAsync("div", { key: '894e680fe227534711128c7aca980964ddb5a08a', class: "menu-inner", part: "container", ref: (el) => (this.menuInnerEl = el) }, hAsync("slot", { key: 'e9f5934518dc0cceaeadf1f2820614595fec6bc9' })), hAsync("ion-backdrop", { key: '7282077817657b1bb6c155f1404c0a519fece993', ref: (el) => (this.backdropEl = el), class: "menu-backdrop", tappable: false, stopPropagation: false, part: "backdrop" })));
17989
18017
  }
17990
18018
  get el() { return getElement(this); }
17991
18019
  static get watchers() { return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ionic/core",
3
- "version": "8.4.1-nightly.20241127",
3
+ "version": "8.4.1",
4
4
  "description": "Base components for Ionic",
5
5
  "keywords": [
6
6
  "ionic",
@@ -1,4 +0,0 @@
1
- /*!
2
- * (C) Ionic http://ionicframework.com - MIT License
3
- */
4
- import{r as t,d as e,h as i,f as n,i as o}from"./p-d836d43e.js";import{g as s}from"./p-2408c236.js";import{o as r,B as a,n as d,q as h,G as l}from"./p-96573065.js";import{G as c}from"./p-9b97df10.js";import{shouldUseCloseWatcher as m}from"./p-ecceeb90.js";import{n as p,i as u,m as b,j as f}from"./p-b51e4004.js";import{m as v}from"./p-b82d4cab.js";import{h as g,c as x}from"./p-47794def.js";import{c as w,b as y}from"./p-0574e87e.js";import{u as k,v as z}from"./p-da2b833b.js";import"./p-7b30edcc.js";import"./p-3cc276f4.js";import"./p-06fee233.js";import"./p-c7e16491.js";const C=class{constructor(i){t(this,i),this.ionWillOpen=e(this,"ionWillOpen",7),this.ionWillClose=e(this,"ionWillClose",7),this.ionDidOpen=e(this,"ionDidOpen",7),this.ionDidClose=e(this,"ionDidClose",7),this.ionMenuChange=e(this,"ionMenuChange",7),this.lastOnEnd=0,this.blocker=c.createBlocker({disableScroll:!0}),this.didLoad=!1,this.operationCancelled=!1,this.isAnimating=!1,this._isOpen=!1,this.inheritedAttributes={},this.handleFocus=t=>{const e=r(document);e&&!e.contains(this.el)||this.trapKeyboardFocus(t,document)},this.isPaneVisible=!1,this.isEndSide=!1,this.contentId=void 0,this.menuId=void 0,this.type=void 0,this.disabled=!1,this.side="start",this.swipeGesture=!0,this.maxEdgeStart=50}typeChanged(t,e){const i=this.contentEl;i&&(void 0!==e&&i.classList.remove(`menu-content-${e}`),i.classList.add(`menu-content-${t}`),i.removeAttribute("style")),this.menuInnerEl&&this.menuInnerEl.removeAttribute("style"),this.animation=void 0}disabledChanged(){this.updateState(),this.ionMenuChange.emit({disabled:this.disabled,open:this._isOpen})}sideChanged(){this.isEndSide=p(this.side),this.animation=void 0}swipeGestureChanged(){this.updateState()}async connectedCallback(){"undefined"!=typeof customElements&&null!=customElements&&await customElements.whenDefined("ion-menu"),void 0===this.type&&(this.type=w.get("menuType","overlay"));const t=void 0!==this.contentId?document.getElementById(this.contentId):null;null!==t?(this.el.contains(t)&&console.error('Menu: "contentId" should refer to the main view\'s ion-content, not the ion-content inside of the ion-menu.'),this.contentEl=t,t.classList.add("menu-content"),this.typeChanged(this.type,void 0),this.sideChanged(),v._register(this),this.menuChanged(),this.gesture=(await import("./p-8ededb41.js")).createGesture({el:document,gestureName:"menu-swipe",gesturePriority:30,threshold:10,blurOnStart:!0,canStart:t=>this.canStart(t),onWillStart:()=>this.onWillStart(),onStart:()=>this.onStart(),onMove:t=>this.onMove(t),onEnd:t=>this.onEnd(t)}),this.updateState()):console.error('Menu: must have a "content" element to listen for drag events on.')}componentWillLoad(){this.inheritedAttributes=u(this.el)}async componentDidLoad(){this.didLoad=!0;const t=this.el.closest("ion-split-pane");null!==t&&(this.isPaneVisible=await t.isVisible()),this.menuChanged(),this.updateState()}menuChanged(){this.didLoad&&this.ionMenuChange.emit({disabled:this.disabled,open:this._isOpen})}async disconnectedCallback(){await this.close(!1),this.blocker.destroy(),v._unregister(this),this.animation&&this.animation.destroy(),this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.animation=void 0,this.contentEl=void 0}onSplitPaneChanged(t){const e=this.el.closest("ion-split-pane");null!==e&&e===t.target&&(this.isPaneVisible=t.detail.visible,this.updateState())}onBackdropClick(t){this._isOpen&&this.lastOnEnd<t.timeStamp-100&&t.composedPath&&!t.composedPath().includes(this.menuInnerEl)&&(t.preventDefault(),t.stopPropagation(),this.close(void 0,a))}onKeydown(t){"Escape"===t.key&&this.close(void 0,a)}isOpen(){return Promise.resolve(this._isOpen)}isActive(){return Promise.resolve(this._isActive())}open(t=!0){return this.setOpen(!0,t)}close(t=!0,e){return this.setOpen(!1,t,e)}toggle(t=!0){return this.setOpen(!this._isOpen,t)}setOpen(t,e=!0,i){return v._setOpen(this,t,e,i)}trapKeyboardFocus(t,e){const i=t.target;if(i)if(this.el.contains(i))this.lastFocus=i;else{const{el:t}=this;d(t),this.lastFocus===e.activeElement&&h(t)}}async _setOpen(t,e=!0,i){return!(!this._isActive()||this.isAnimating||t===this._isOpen||(this.beforeAnimation(t,i),await this.loadAnimation(),await this.startAnimation(t,e),this.operationCancelled?(this.operationCancelled=!1,1):(this.afterAnimation(t,i),0)))}async loadAnimation(){const t=this.menuInnerEl.offsetWidth,e=p(this.side);if(t===this.width&&void 0!==this.animation&&e===this.isEndSide)return;this.width=t,this.isEndSide=e,this.animation&&(this.animation.destroy(),this.animation=void 0);const i=this.animation=await v._createAnimation(this.type,this);w.getBoolean("animated",!0)||i.duration(0),i.fill("both")}async startAnimation(t,e){const i=!t,n=y(this),o="ios"===n?"cubic-bezier(0.32,0.72,0,1)":"cubic-bezier(0.0,0.0,0.2,1)",s="ios"===n?"cubic-bezier(1, 0, 0.68, 0.28)":"cubic-bezier(0.4, 0, 0.6, 1)",r=this.animation.direction(i?"reverse":"normal").easing(i?s:o);e?await r.play():r.play({sync:!0}),"reverse"===r.getDirection()&&r.direction("normal")}_isActive(){return!this.disabled&&!this.isPaneVisible}canSwipe(){return this.swipeGesture&&!this.isAnimating&&this._isActive()}canStart(t){return!(document.querySelector("ion-modal.show-modal")||!this.canSwipe())&&(!!this._isOpen||!v._getOpenSync()&&A(window,t.currentX,this.isEndSide,this.maxEdgeStart))}onWillStart(){return this.beforeAnimation(!this._isOpen,l),this.loadAnimation()}onStart(){this.isAnimating&&this.animation?this.animation.progressStart(!0,this._isOpen?1:0):b(!1,"isAnimating has to be true")}onMove(t){if(!this.isAnimating||!this.animation)return void b(!1,"isAnimating has to be true");const e=j(t.deltaX,this._isOpen,this.isEndSide)/this.width;this.animation.progressStep(this._isOpen?1-e:e)}onEnd(t){if(!this.isAnimating||!this.animation)return void b(!1,"isAnimating has to be true");const e=this._isOpen,i=this.isEndSide,n=j(t.deltaX,e,i),o=this.width,r=n/o,a=t.velocityX,d=o/2,h=a>=0&&(a>.2||t.deltaX>d),c=a<=0&&(a<-.2||t.deltaX<-d),m=e?i?h:c:i?c:h;let p=!e&&m;e&&!m&&(p=!0),this.lastOnEnd=t.currentTime;let u=m?.001:-.001;u+=s([0,0],[.4,0],[.6,1],[1,1],f(0,r<0?.01:r,.9999))[0]||0;const v=this._isOpen?!m:m;this.animation.easing("cubic-bezier(0.4, 0.0, 0.6, 1)").onFinish((()=>this.afterAnimation(p,l)),{oneTimeCallback:!0}).progressEnd(v?1:0,this._isOpen?1-u:u,300)}beforeAnimation(t,e){b(!this.isAnimating,"_before() should not be called while animating"),this.el.classList.add(S),this.el.setAttribute("tabindex","0"),this.backdropEl&&this.backdropEl.classList.add(_),this.contentEl&&(this.contentEl.classList.add(O),this.contentEl.setAttribute("aria-hidden","true")),this.blocker.block(),this.isAnimating=!0,t?this.ionWillOpen.emit():this.ionWillClose.emit({role:e})}afterAnimation(t,e){var i;this._isOpen=t,this.isAnimating=!1,this._isOpen||this.blocker.unblock(),t?(this.ionDidOpen.emit(),(null===(i=document.activeElement)||void 0===i?void 0:i.closest("ion-menu"))!==this.el&&this.el.focus(),document.addEventListener("focus",this.handleFocus,!0)):(this.el.classList.remove(S),this.el.removeAttribute("tabindex"),this.contentEl&&(this.contentEl.classList.remove(O),this.contentEl.removeAttribute("aria-hidden")),this.backdropEl&&this.backdropEl.classList.remove(_),this.animation&&this.animation.stop(),this.ionDidClose.emit({role:e}),document.removeEventListener("focus",this.handleFocus,!0))}updateState(){const t=this._isActive();this.gesture&&this.gesture.enable(t&&this.swipeGesture),t||(this.isAnimating&&(this.operationCancelled=!0),this.afterAnimation(!1,l))}render(){const{type:t,disabled:e,el:o,isPaneVisible:s,inheritedAttributes:r,side:a}=this,d=y(this);return i(n,{key:"5aaea91873d0885b97304372223b2a6ed16ca28b",onKeyDown:m()?null:this.onKeydown,role:"navigation","aria-label":r["aria-label"]||"menu",class:{[d]:!0,[`menu-type-${t}`]:!0,"menu-enabled":!e,[`menu-side-${a}`]:!0,"menu-pane-visible":s,"split-pane-side":g("ion-split-pane",o)}},i("div",{key:"3ba822411ad11eff52c518fecf1b2a5b47e0b678",class:"menu-inner",part:"container",ref:t=>this.menuInnerEl=t},i("slot",{key:"d28a78e98493b21d43ea8b19e96b21547adf1916"})),i("ion-backdrop",{key:"0468c15d111737f5cb646918dcfacedadf907a8f",ref:t=>this.backdropEl=t,class:"menu-backdrop",tappable:!1,stopPropagation:!1,part:"backdrop"}))}get el(){return o(this)}static get watchers(){return{type:["typeChanged"],disabled:["disabledChanged"],side:["sideChanged"],swipeGesture:["swipeGestureChanged"]}}},j=(t,e,i)=>Math.max(0,e!==i?-t:t),A=(t,e,i,n)=>i?e>=t.innerWidth-n:e<=n,S="show-menu",_="show-backdrop",O="menu-content-open";C.style={ios:":host{--width:304px;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--background:var(--ion-background-color, #fff);left:0;right:0;top:0;bottom:0;display:none;position:absolute;contain:strict}:host(.show-menu){display:block}.menu-inner{-webkit-transform:translateX(-9999px);transform:translateX(-9999px);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;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);contain:strict}:host(.menu-side-start) .menu-inner{--ion-safe-area-right:0px;top:0;bottom:0}:host(.menu-side-start) .menu-inner{inset-inline-start:0;inset-inline-end:auto}:host-context([dir=rtl]):host(.menu-side-start) .menu-inner,:host-context([dir=rtl]).menu-side-start .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}@supports selector(:dir(rtl)){:host(.menu-side-start:dir(rtl)) .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}}:host(.menu-side-end) .menu-inner{--ion-safe-area-left:0px;top:0;bottom:0}:host(.menu-side-end) .menu-inner{inset-inline-start:auto;inset-inline-end:0}:host-context([dir=rtl]):host(.menu-side-end) .menu-inner,:host-context([dir=rtl]).menu-side-end .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}@supports selector(:dir(rtl)){:host(.menu-side-end:dir(rtl)) .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}}ion-backdrop{display:none;opacity:0.01;z-index:-1}@media (max-width: 340px){.menu-inner{--width:264px}}:host(.menu-type-reveal){z-index:0}:host(.menu-type-reveal.show-menu) .menu-inner{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host(.menu-type-overlay){z-index:1000}:host(.menu-type-overlay) .show-backdrop{display:block;cursor:pointer}:host(.menu-pane-visible){-ms-flex:0 1 auto;flex:0 1 auto;width:var(--side-width, var(--width));min-width:var(--side-min-width, var(--min-width));max-width:var(--side-max-width, var(--max-width))}:host(.menu-pane-visible.split-pane-side){left:0;right:0;top:0;bottom:0;position:relative;-webkit-box-shadow:none;box-shadow:none;z-index:0}:host(.menu-pane-visible.split-pane-side.menu-enabled){display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0}:host(.menu-pane-visible.split-pane-side){-ms-flex-order:-1;order:-1}:host(.menu-pane-visible.split-pane-side[side=end]){-ms-flex-order:1;order:1}:host(.menu-pane-visible) .menu-inner{left:0;right:0;width:auto;-webkit-transform:none;transform:none;-webkit-box-shadow:none;box-shadow:none}:host(.menu-pane-visible) ion-backdrop{display:hidden !important}:host(.menu-pane-visible.split-pane-side){-webkit-border-start:0;border-inline-start:0;-webkit-border-end:var(--border);border-inline-end:var(--border);border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.menu-pane-visible.split-pane-side[side=end]){-webkit-border-start:var(--border);border-inline-start:var(--border);-webkit-border-end:0;border-inline-end:0;border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.menu-type-push){z-index:1000}:host(.menu-type-push) .show-backdrop{display:block}",md:":host{--width:304px;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--background:var(--ion-background-color, #fff);left:0;right:0;top:0;bottom:0;display:none;position:absolute;contain:strict}:host(.show-menu){display:block}.menu-inner{-webkit-transform:translateX(-9999px);transform:translateX(-9999px);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;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);contain:strict}:host(.menu-side-start) .menu-inner{--ion-safe-area-right:0px;top:0;bottom:0}:host(.menu-side-start) .menu-inner{inset-inline-start:0;inset-inline-end:auto}:host-context([dir=rtl]):host(.menu-side-start) .menu-inner,:host-context([dir=rtl]).menu-side-start .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}@supports selector(:dir(rtl)){:host(.menu-side-start:dir(rtl)) .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}}:host(.menu-side-end) .menu-inner{--ion-safe-area-left:0px;top:0;bottom:0}:host(.menu-side-end) .menu-inner{inset-inline-start:auto;inset-inline-end:0}:host-context([dir=rtl]):host(.menu-side-end) .menu-inner,:host-context([dir=rtl]).menu-side-end .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}@supports selector(:dir(rtl)){:host(.menu-side-end:dir(rtl)) .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}}ion-backdrop{display:none;opacity:0.01;z-index:-1}@media (max-width: 340px){.menu-inner{--width:264px}}:host(.menu-type-reveal){z-index:0}:host(.menu-type-reveal.show-menu) .menu-inner{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host(.menu-type-overlay){z-index:1000}:host(.menu-type-overlay) .show-backdrop{display:block;cursor:pointer}:host(.menu-pane-visible){-ms-flex:0 1 auto;flex:0 1 auto;width:var(--side-width, var(--width));min-width:var(--side-min-width, var(--min-width));max-width:var(--side-max-width, var(--max-width))}:host(.menu-pane-visible.split-pane-side){left:0;right:0;top:0;bottom:0;position:relative;-webkit-box-shadow:none;box-shadow:none;z-index:0}:host(.menu-pane-visible.split-pane-side.menu-enabled){display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0}:host(.menu-pane-visible.split-pane-side){-ms-flex-order:-1;order:-1}:host(.menu-pane-visible.split-pane-side[side=end]){-ms-flex-order:1;order:1}:host(.menu-pane-visible) .menu-inner{left:0;right:0;width:auto;-webkit-transform:none;transform:none;-webkit-box-shadow:none;box-shadow:none}:host(.menu-pane-visible) ion-backdrop{display:hidden !important}:host(.menu-pane-visible.split-pane-side){-webkit-border-start:0;border-inline-start:0;-webkit-border-end:var(--border);border-inline-end:var(--border);border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.menu-pane-visible.split-pane-side[side=end]){-webkit-border-start:var(--border);border-inline-start:var(--border);-webkit-border-end:0;border-inline-end:0;border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.menu-type-overlay) .menu-inner{-webkit-box-shadow:4px 0px 16px rgba(0, 0, 0, 0.18);box-shadow:4px 0px 16px rgba(0, 0, 0, 0.18)}"};const E=async t=>{const e=await v.get(t);return!(!e||!await e.isActive())},M=class{constructor(e){t(this,e),this.inheritedAttributes={},this.onClick=async()=>v.toggle(this.menu),this.visible=!1,this.color=void 0,this.disabled=!1,this.menu=void 0,this.autoHide=!0,this.type="button"}componentWillLoad(){this.inheritedAttributes=u(this.el)}componentDidLoad(){this.visibilityChanged()}async visibilityChanged(){this.visible=await E(this.menu)}render(){const{color:t,disabled:e,inheritedAttributes:o}=this,s=y(this),r=w.get("menuIcon","ios"===s?k:z),a=this.autoHide&&!this.visible,d={type:this.type},h=o["aria-label"]||"menu";return i(n,{key:"7ec29715ce7926b7c2b08f3d9cac8aaa16b3dc28",onClick:this.onClick,"aria-disabled":e?"true":null,"aria-hidden":a?"true":null,class:x(t,{[s]:!0,button:!0,"menu-button-hidden":a,"menu-button-disabled":e,"in-toolbar":g("ion-toolbar",this.el),"in-toolbar-color":g("ion-toolbar[color]",this.el),"ion-activatable":!0,"ion-focusable":!0})},i("button",Object.assign({key:"d4c5929264af3ba0328118bcc27d2ab7ef5d3809"},d,{disabled:e,class:"button-native",part:"native","aria-label":h}),i("span",{key:"7bfa6e9a93105486623d044861e879ec79ff64f1",class:"button-inner"},i("slot",{key:"071ab58e285832fc188706166f5547d45d501ac5"},i("ion-icon",{key:"918ec5d791921de9821c347af4f65f97dd94aabf",part:"icon",icon:r,mode:s,lazy:!1,"aria-hidden":"true"}))),"md"===s&&i("ion-ripple-effect",{key:"00ffdd53f635e706c1dbd01b8e7944498650fe81",type:"unbounded"})))}get el(){return o(this)}};M.style={ios:':host{--background:transparent;--color-focused:currentColor;--border-radius:initial;--padding-top:0;--padding-bottom:0;color:var(--color);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;z-index:1}ion-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;pointer-events:none}:host(.menu-button-hidden){display:none}:host(.menu-button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity, 0)}}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--background-focused:currentColor;--background-focused-opacity:.1;--border-radius:4px;--color:var(--ion-color-primary, #0054e9);--padding-start:5px;--padding-end:5px;min-height:32px;font-size:clamp(31px, 1.9375rem, 38.13px)}:host(.ion-activated){opacity:0.4}@media (any-hover: hover){:host(:hover){opacity:0.6}}',md:':host{--background:transparent;--color-focused:currentColor;--border-radius:initial;--padding-top:0;--padding-bottom:0;color:var(--color);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;z-index:1}ion-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;pointer-events:none}:host(.menu-button-hidden){display:none}:host(.menu-button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity, 0)}}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--background-focused:currentColor;--background-focused-opacity:.12;--background-hover:currentColor;--background-hover-opacity:.04;--border-radius:50%;--color:initial;--padding-start:8px;--padding-end:8px;width:3rem;height:3rem;font-size:1.5rem}:host(.ion-color.ion-focused)::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}'};const P=class{constructor(e){t(this,e),this.onClick=()=>v.toggle(this.menu),this.visible=!1,this.menu=void 0,this.autoHide=!0}connectedCallback(){this.visibilityChanged()}async visibilityChanged(){this.visible=await E(this.menu)}render(){const t=y(this),e=this.autoHide&&!this.visible;return i(n,{key:"7c27ea5b0795676bf5cb33e1f83aa142c197f64e",onClick:this.onClick,"aria-hidden":e?"true":null,class:{[t]:!0,"menu-toggle-hidden":e}},i("slot",{key:"69f187becedc0fe34603d41d279f043cf0fdf776"}))}};P.style=":host(.menu-toggle-hidden){display:none}";export{C as ion_menu,M as ion_menu_button,P as ion_menu_toggle}
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,i,n){function r(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,o){function s(t){try{d(n.next(t))}catch(t){o(t)}}function a(t){try{d(n["throw"](t))}catch(t){o(t)}}function d(t){t.done?i(t.value):r(t.value).then(s,a)}d((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,r,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return d([t,e])}}function d(a){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(i=0)),i)try{if(n=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;r=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(a[0]===6&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t];r=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};
2
- /*!
3
- * (C) Ionic http://ionicframework.com - MIT License
4
- */System.register(["./p-25180df3.system.js","./p-e673a0a2.system.js","./p-5e01fc7f.system.js","./p-20d469d0.system.js","./p-9f3008d4.system.js","./p-3ad285e3.system.js","./p-e7ed4a7f.system.js","./p-4609d030.system.js","./p-a69b9fc5.system.js","./p-1e955a45.system.js","./p-792919fd.system.js","./p-8635f5e6.system.js","./p-ff4b7e40.system.js","./p-9146695e.system.js"],(function(t,e){"use strict";var i,n,r,o,s,a,d,h,u,c,f,l,m,p,b,v,g,w,x,y,k,_,z,j;return{setters:[function(t){i=t.r;n=t.d;r=t.h;o=t.f;s=t.i},function(t){a=t.g},function(t){d=t.o;h=t.B;u=t.n;c=t.q;f=t.G},function(t){l=t.G},function(t){m=t.shouldUseCloseWatcher},function(t){p=t.n;b=t.i;v=t.m;g=t.j},function(t){w=t.m},function(t){x=t.h;y=t.c},function(t){k=t.c;_=t.b},function(t){z=t.u;j=t.v},function(){},function(){},function(){},function(){}],execute:function(){var C=this;var S=":host{--width:304px;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--background:var(--ion-background-color, #fff);left:0;right:0;top:0;bottom:0;display:none;position:absolute;contain:strict}:host(.show-menu){display:block}.menu-inner{-webkit-transform:translateX(-9999px);transform:translateX(-9999px);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;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);contain:strict}:host(.menu-side-start) .menu-inner{--ion-safe-area-right:0px;top:0;bottom:0}:host(.menu-side-start) .menu-inner{inset-inline-start:0;inset-inline-end:auto}:host-context([dir=rtl]):host(.menu-side-start) .menu-inner,:host-context([dir=rtl]).menu-side-start .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}@supports selector(:dir(rtl)){:host(.menu-side-start:dir(rtl)) .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}}:host(.menu-side-end) .menu-inner{--ion-safe-area-left:0px;top:0;bottom:0}:host(.menu-side-end) .menu-inner{inset-inline-start:auto;inset-inline-end:0}:host-context([dir=rtl]):host(.menu-side-end) .menu-inner,:host-context([dir=rtl]).menu-side-end .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}@supports selector(:dir(rtl)){:host(.menu-side-end:dir(rtl)) .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}}ion-backdrop{display:none;opacity:0.01;z-index:-1}@media (max-width: 340px){.menu-inner{--width:264px}}:host(.menu-type-reveal){z-index:0}:host(.menu-type-reveal.show-menu) .menu-inner{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host(.menu-type-overlay){z-index:1000}:host(.menu-type-overlay) .show-backdrop{display:block;cursor:pointer}:host(.menu-pane-visible){-ms-flex:0 1 auto;flex:0 1 auto;width:var(--side-width, var(--width));min-width:var(--side-min-width, var(--min-width));max-width:var(--side-max-width, var(--max-width))}:host(.menu-pane-visible.split-pane-side){left:0;right:0;top:0;bottom:0;position:relative;-webkit-box-shadow:none;box-shadow:none;z-index:0}:host(.menu-pane-visible.split-pane-side.menu-enabled){display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0}:host(.menu-pane-visible.split-pane-side){-ms-flex-order:-1;order:-1}:host(.menu-pane-visible.split-pane-side[side=end]){-ms-flex-order:1;order:1}:host(.menu-pane-visible) .menu-inner{left:0;right:0;width:auto;-webkit-transform:none;transform:none;-webkit-box-shadow:none;box-shadow:none}:host(.menu-pane-visible) ion-backdrop{display:hidden !important}:host(.menu-pane-visible.split-pane-side){-webkit-border-start:0;border-inline-start:0;-webkit-border-end:var(--border);border-inline-end:var(--border);border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.menu-pane-visible.split-pane-side[side=end]){-webkit-border-start:var(--border);border-inline-start:var(--border);-webkit-border-end:0;border-inline-end:0;border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.menu-type-push){z-index:1000}:host(.menu-type-push) .show-backdrop{display:block}";var O=S;var E=":host{--width:304px;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--background:var(--ion-background-color, #fff);left:0;right:0;top:0;bottom:0;display:none;position:absolute;contain:strict}:host(.show-menu){display:block}.menu-inner{-webkit-transform:translateX(-9999px);transform:translateX(-9999px);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;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);contain:strict}:host(.menu-side-start) .menu-inner{--ion-safe-area-right:0px;top:0;bottom:0}:host(.menu-side-start) .menu-inner{inset-inline-start:0;inset-inline-end:auto}:host-context([dir=rtl]):host(.menu-side-start) .menu-inner,:host-context([dir=rtl]).menu-side-start .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}@supports selector(:dir(rtl)){:host(.menu-side-start:dir(rtl)) .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}}:host(.menu-side-end) .menu-inner{--ion-safe-area-left:0px;top:0;bottom:0}:host(.menu-side-end) .menu-inner{inset-inline-start:auto;inset-inline-end:0}:host-context([dir=rtl]):host(.menu-side-end) .menu-inner,:host-context([dir=rtl]).menu-side-end .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}@supports selector(:dir(rtl)){:host(.menu-side-end:dir(rtl)) .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}}ion-backdrop{display:none;opacity:0.01;z-index:-1}@media (max-width: 340px){.menu-inner{--width:264px}}:host(.menu-type-reveal){z-index:0}:host(.menu-type-reveal.show-menu) .menu-inner{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host(.menu-type-overlay){z-index:1000}:host(.menu-type-overlay) .show-backdrop{display:block;cursor:pointer}:host(.menu-pane-visible){-ms-flex:0 1 auto;flex:0 1 auto;width:var(--side-width, var(--width));min-width:var(--side-min-width, var(--min-width));max-width:var(--side-max-width, var(--max-width))}:host(.menu-pane-visible.split-pane-side){left:0;right:0;top:0;bottom:0;position:relative;-webkit-box-shadow:none;box-shadow:none;z-index:0}:host(.menu-pane-visible.split-pane-side.menu-enabled){display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0}:host(.menu-pane-visible.split-pane-side){-ms-flex-order:-1;order:-1}:host(.menu-pane-visible.split-pane-side[side=end]){-ms-flex-order:1;order:1}:host(.menu-pane-visible) .menu-inner{left:0;right:0;width:auto;-webkit-transform:none;transform:none;-webkit-box-shadow:none;box-shadow:none}:host(.menu-pane-visible) ion-backdrop{display:hidden !important}:host(.menu-pane-visible.split-pane-side){-webkit-border-start:0;border-inline-start:0;-webkit-border-end:var(--border);border-inline-end:var(--border);border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.menu-pane-visible.split-pane-side[side=end]){-webkit-border-start:var(--border);border-inline-start:var(--border);-webkit-border-end:0;border-inline-end:0;border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.menu-type-overlay) .menu-inner{-webkit-box-shadow:4px 0px 16px rgba(0, 0, 0, 0.18);box-shadow:4px 0px 16px rgba(0, 0, 0, 0.18)}";var M=E;var P="cubic-bezier(0.32,0.72,0,1)";var X="cubic-bezier(0.0,0.0,0.2,1)";var A="cubic-bezier(1, 0, 0.68, 0.28)";var D="cubic-bezier(0.4, 0, 0.6, 1)";var G=t("ion_menu",function(){function t(t){var e=this;i(this,t);this.ionWillOpen=n(this,"ionWillOpen",7);this.ionWillClose=n(this,"ionWillClose",7);this.ionDidOpen=n(this,"ionDidOpen",7);this.ionDidClose=n(this,"ionDidClose",7);this.ionMenuChange=n(this,"ionMenuChange",7);this.lastOnEnd=0;this.blocker=l.createBlocker({disableScroll:true});this.didLoad=false;this.operationCancelled=false;this.isAnimating=false;this._isOpen=false;this.inheritedAttributes={};this.handleFocus=function(t){var i=d(document);if(i&&!i.contains(e.el)){return}e.trapKeyboardFocus(t,document)};this.isPaneVisible=false;this.isEndSide=false;this.contentId=undefined;this.menuId=undefined;this.type=undefined;this.disabled=false;this.side="start";this.swipeGesture=true;this.maxEdgeStart=50}t.prototype.typeChanged=function(t,e){var i=this.contentEl;if(i){if(e!==undefined){i.classList.remove("menu-content-".concat(e))}i.classList.add("menu-content-".concat(t));i.removeAttribute("style")}if(this.menuInnerEl){this.menuInnerEl.removeAttribute("style")}this.animation=undefined};t.prototype.disabledChanged=function(){this.updateState();this.ionMenuChange.emit({disabled:this.disabled,open:this._isOpen})};t.prototype.sideChanged=function(){this.isEndSide=p(this.side);this.animation=undefined};t.prototype.swipeGestureChanged=function(){this.updateState()};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t,i;var n=this;return __generator(this,(function(r){switch(r.label){case 0:if(!(typeof customElements!=="undefined"&&customElements!=null))return[3,2];return[4,customElements.whenDefined("ion-menu")];case 1:r.sent();r.label=2;case 2:if(this.type===undefined){this.type=k.get("menuType","overlay")}t=this.contentId!==undefined?document.getElementById(this.contentId):null;if(t===null){console.error('Menu: must have a "content" element to listen for drag events on.');return[2]}if(this.el.contains(t)){console.error('Menu: "contentId" should refer to the main view\'s ion-content, not the ion-content inside of the ion-menu.')}this.contentEl=t;t.classList.add("menu-content");this.typeChanged(this.type,undefined);this.sideChanged();w._register(this);this.menuChanged();i=this;return[4,e.import("./p-3e1e14d9.system.js")];case 3:i.gesture=r.sent().createGesture({el:document,gestureName:"menu-swipe",gesturePriority:30,threshold:10,blurOnStart:true,canStart:function(t){return n.canStart(t)},onWillStart:function(){return n.onWillStart()},onStart:function(){return n.onStart()},onMove:function(t){return n.onMove(t)},onEnd:function(t){return n.onEnd(t)}});this.updateState();return[2]}}))}))};t.prototype.componentWillLoad=function(){this.inheritedAttributes=b(this.el)};t.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;return __generator(this,(function(i){switch(i.label){case 0:this.didLoad=true;t=this.el.closest("ion-split-pane");if(!(t!==null))return[3,2];e=this;return[4,t.isVisible()];case 1:e.isPaneVisible=i.sent();i.label=2;case 2:this.menuChanged();this.updateState();return[2]}}))}))};t.prototype.menuChanged=function(){if(this.didLoad){this.ionMenuChange.emit({disabled:this.disabled,open:this._isOpen})}};t.prototype.disconnectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.close(false)];case 1:t.sent();this.blocker.destroy();w._unregister(this);if(this.animation){this.animation.destroy()}if(this.gesture){this.gesture.destroy();this.gesture=undefined}this.animation=undefined;this.contentEl=undefined;return[2]}}))}))};t.prototype.onSplitPaneChanged=function(t){var e=this.el.closest("ion-split-pane");if(e!==null&&e===t.target){this.isPaneVisible=t.detail.visible;this.updateState()}};t.prototype.onBackdropClick=function(t){if(this._isOpen&&this.lastOnEnd<t.timeStamp-100){var e=t.composedPath?!t.composedPath().includes(this.menuInnerEl):false;if(e){t.preventDefault();t.stopPropagation();this.close(undefined,h)}}};t.prototype.onKeydown=function(t){if(t.key==="Escape"){this.close(undefined,h)}};t.prototype.isOpen=function(){return Promise.resolve(this._isOpen)};t.prototype.isActive=function(){return Promise.resolve(this._isActive())};t.prototype.open=function(t){if(t===void 0){t=true}return this.setOpen(true,t)};t.prototype.close=function(t,e){if(t===void 0){t=true}return this.setOpen(false,t,e)};t.prototype.toggle=function(t){if(t===void 0){t=true}return this.setOpen(!this._isOpen,t)};t.prototype.setOpen=function(t,e,i){if(e===void 0){e=true}return w._setOpen(this,t,e,i)};t.prototype.trapKeyboardFocus=function(t,e){var i=t.target;if(!i){return}if(this.el.contains(i)){this.lastFocus=i}else{var n=this.el;u(n);if(this.lastFocus===e.activeElement){c(n)}}};t.prototype._setOpen=function(t){return __awaiter(this,arguments,void 0,(function(t,e,i){if(e===void 0){e=true}return __generator(this,(function(n){switch(n.label){case 0:if(!this._isActive()||this.isAnimating||t===this._isOpen){return[2,false]}this.beforeAnimation(t,i);return[4,this.loadAnimation()];case 1:n.sent();return[4,this.startAnimation(t,e)];case 2:n.sent();if(this.operationCancelled){this.operationCancelled=false;return[2,false]}this.afterAnimation(t,i);return[2,true]}}))}))};t.prototype.loadAnimation=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,n;return __generator(this,(function(r){switch(r.label){case 0:t=this.menuInnerEl.offsetWidth;e=p(this.side);if(t===this.width&&this.animation!==undefined&&e===this.isEndSide){return[2]}this.width=t;this.isEndSide=e;if(this.animation){this.animation.destroy();this.animation=undefined}n=this;return[4,w._createAnimation(this.type,this)];case 1:i=n.animation=r.sent();if(!k.getBoolean("animated",true)){i.duration(0)}i.fill("both");return[2]}}))}))};t.prototype.startAnimation=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,n,r,o,s;return __generator(this,(function(a){switch(a.label){case 0:i=!t;n=_(this);r=n==="ios"?P:X;o=n==="ios"?A:D;s=this.animation.direction(i?"reverse":"normal").easing(i?o:r);if(!e)return[3,2];return[4,s.play()];case 1:a.sent();return[3,3];case 2:s.play({sync:true});a.label=3;case 3:if(s.getDirection()==="reverse"){s.direction("normal")}return[2]}}))}))};t.prototype._isActive=function(){return!this.disabled&&!this.isPaneVisible};t.prototype.canSwipe=function(){return this.swipeGesture&&!this.isAnimating&&this._isActive()};t.prototype.canStart=function(t){var e=!!document.querySelector("ion-modal.show-modal");if(e||!this.canSwipe()){return false}if(this._isOpen){return true}else if(w._getOpenSync()){return false}return W(window,t.currentX,this.isEndSide,this.maxEdgeStart)};t.prototype.onWillStart=function(){this.beforeAnimation(!this._isOpen,f);return this.loadAnimation()};t.prototype.onStart=function(){if(!this.isAnimating||!this.animation){v(false,"isAnimating has to be true");return}this.animation.progressStart(true,this._isOpen?1:0)};t.prototype.onMove=function(t){if(!this.isAnimating||!this.animation){v(false,"isAnimating has to be true");return}var e=T(t.deltaX,this._isOpen,this.isEndSide);var i=e/this.width;this.animation.progressStep(this._isOpen?1-i:i)};t.prototype.onEnd=function(t){var e=this;if(!this.isAnimating||!this.animation){v(false,"isAnimating has to be true");return}var i=this._isOpen;var n=this.isEndSide;var r=T(t.deltaX,i,n);var o=this.width;var s=r/o;var d=t.velocityX;var h=o/2;var u=d>=0&&(d>.2||t.deltaX>h);var c=d<=0&&(d<-.2||t.deltaX<-h);var l=i?n?u:c:n?c:u;var m=!i&&l;if(i&&!l){m=true}this.lastOnEnd=t.currentTime;var p=l?.001:-.001;var b=s<0?.01:s;p+=a([0,0],[.4,0],[.6,1],[1,1],g(0,b,.9999))[0]||0;var w=this._isOpen?!l:l;this.animation.easing("cubic-bezier(0.4, 0.0, 0.6, 1)").onFinish((function(){return e.afterAnimation(m,f)}),{oneTimeCallback:true}).progressEnd(w?1:0,this._isOpen?1-p:p,300)};t.prototype.beforeAnimation=function(t,e){v(!this.isAnimating,"_before() should not be called while animating");this.el.classList.add(I);this.el.setAttribute("tabindex","0");if(this.backdropEl){this.backdropEl.classList.add(K)}if(this.contentEl){this.contentEl.classList.add(N);this.contentEl.setAttribute("aria-hidden","true")}this.blocker.block();this.isAnimating=true;if(t){this.ionWillOpen.emit()}else{this.ionWillClose.emit({role:e})}};t.prototype.afterAnimation=function(t,e){var i;this._isOpen=t;this.isAnimating=false;if(!this._isOpen){this.blocker.unblock()}if(t){this.ionDidOpen.emit();var n=(i=document.activeElement)===null||i===void 0?void 0:i.closest("ion-menu");if(n!==this.el){this.el.focus()}document.addEventListener("focus",this.handleFocus,true)}else{this.el.classList.remove(I);this.el.removeAttribute("tabindex");if(this.contentEl){this.contentEl.classList.remove(N);this.contentEl.removeAttribute("aria-hidden")}if(this.backdropEl){this.backdropEl.classList.remove(K)}if(this.animation){this.animation.stop()}this.ionDidClose.emit({role:e});document.removeEventListener("focus",this.handleFocus,true)}};t.prototype.updateState=function(){var t=this._isActive();if(this.gesture){this.gesture.enable(t&&this.swipeGesture)}if(!t){if(this.isAnimating){this.operationCancelled=true}this.afterAnimation(false,f)}};t.prototype.render=function(){var t;var e=this;var i=this,n=i.type,s=i.disabled,a=i.el,d=i.isPaneVisible,h=i.inheritedAttributes,u=i.side;var c=_(this);return r(o,{key:"5aaea91873d0885b97304372223b2a6ed16ca28b",onKeyDown:m()?null:this.onKeydown,role:"navigation","aria-label":h["aria-label"]||"menu",class:(t={},t[c]=true,t["menu-type-".concat(n)]=true,t["menu-enabled"]=!s,t["menu-side-".concat(u)]=true,t["menu-pane-visible"]=d,t["split-pane-side"]=x("ion-split-pane",a),t)},r("div",{key:"3ba822411ad11eff52c518fecf1b2a5b47e0b678",class:"menu-inner",part:"container",ref:function(t){return e.menuInnerEl=t}},r("slot",{key:"d28a78e98493b21d43ea8b19e96b21547adf1916"})),r("ion-backdrop",{key:"0468c15d111737f5cb646918dcfacedadf907a8f",ref:function(t){return e.backdropEl=t},class:"menu-backdrop",tappable:false,stopPropagation:false,part:"backdrop"}))};Object.defineProperty(t.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{type:["typeChanged"],disabled:["disabledChanged"],side:["sideChanged"],swipeGesture:["swipeGestureChanged"]}},enumerable:false,configurable:true});return t}());var T=function(t,e,i){return Math.max(0,e!==i?-t:t)};var W=function(t,e,i,n){if(i){return e>=t.innerWidth-n}else{return e<=n}};var I="show-menu";var K="show-backdrop";var N="menu-content-open";G.style={ios:O,md:M};var q=function(t){return __awaiter(C,void 0,void 0,(function(){var e,i;return __generator(this,(function(n){switch(n.label){case 0:return[4,w.get(t)];case 1:e=n.sent();i=e;if(!i)return[3,3];return[4,e.isActive()];case 2:i=n.sent();n.label=3;case 3:return[2,!!i]}}))}))};var B=':host{--background:transparent;--color-focused:currentColor;--border-radius:initial;--padding-top:0;--padding-bottom:0;color:var(--color);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;z-index:1}ion-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;pointer-events:none}:host(.menu-button-hidden){display:none}:host(.menu-button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity, 0)}}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--background-focused:currentColor;--background-focused-opacity:.1;--border-radius:4px;--color:var(--ion-color-primary, #0054e9);--padding-start:5px;--padding-end:5px;min-height:32px;font-size:clamp(31px, 1.9375rem, 38.13px)}:host(.ion-activated){opacity:0.4}@media (any-hover: hover){:host(:hover){opacity:0.6}}';var F=B;var H=':host{--background:transparent;--color-focused:currentColor;--border-radius:initial;--padding-top:0;--padding-bottom:0;color:var(--color);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;z-index:1}ion-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;pointer-events:none}:host(.menu-button-hidden){display:none}:host(.menu-button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity, 0)}}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--background-focused:currentColor;--background-focused-opacity:.12;--background-hover:currentColor;--background-hover-opacity:.04;--border-radius:50%;--color:initial;--padding-start:8px;--padding-end:8px;width:3rem;height:3rem;font-size:1.5rem}:host(.ion-color.ion-focused)::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}';var J=H;var L=t("ion_menu_button",function(){function t(t){var e=this;i(this,t);this.inheritedAttributes={};this.onClick=function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(t){return[2,w.toggle(this.menu)]}))}))};this.visible=false;this.color=undefined;this.disabled=false;this.menu=undefined;this.autoHide=true;this.type="button"}t.prototype.componentWillLoad=function(){this.inheritedAttributes=b(this.el)};t.prototype.componentDidLoad=function(){this.visibilityChanged()};t.prototype.visibilityChanged=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:t=this;return[4,q(this.menu)];case 1:t.visible=e.sent();return[2]}}))}))};t.prototype.render=function(){var t;var e=this,i=e.color,n=e.disabled,s=e.inheritedAttributes;var a=_(this);var d=k.get("menuIcon",a==="ios"?z:j);var h=this.autoHide&&!this.visible;var u={type:this.type};var c=s["aria-label"]||"menu";return r(o,{key:"7ec29715ce7926b7c2b08f3d9cac8aaa16b3dc28",onClick:this.onClick,"aria-disabled":n?"true":null,"aria-hidden":h?"true":null,class:y(i,(t={},t[a]=true,t.button=true,t["menu-button-hidden"]=h,t["menu-button-disabled"]=n,t["in-toolbar"]=x("ion-toolbar",this.el),t["in-toolbar-color"]=x("ion-toolbar[color]",this.el),t["ion-activatable"]=true,t["ion-focusable"]=true,t))},r("button",Object.assign({key:"d4c5929264af3ba0328118bcc27d2ab7ef5d3809"},u,{disabled:n,class:"button-native",part:"native","aria-label":c}),r("span",{key:"7bfa6e9a93105486623d044861e879ec79ff64f1",class:"button-inner"},r("slot",{key:"071ab58e285832fc188706166f5547d45d501ac5"},r("ion-icon",{key:"918ec5d791921de9821c347af4f65f97dd94aabf",part:"icon",icon:d,mode:a,lazy:false,"aria-hidden":"true"}))),a==="md"&&r("ion-ripple-effect",{key:"00ffdd53f635e706c1dbd01b8e7944498650fe81",type:"unbounded"})))};Object.defineProperty(t.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});return t}());L.style={ios:F,md:J};var Q=":host(.menu-toggle-hidden){display:none}";var R=Q;var U=t("ion_menu_toggle",function(){function t(t){var e=this;i(this,t);this.onClick=function(){return w.toggle(e.menu)};this.visible=false;this.menu=undefined;this.autoHide=true}t.prototype.connectedCallback=function(){this.visibilityChanged()};t.prototype.visibilityChanged=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:t=this;return[4,q(this.menu)];case 1:t.visible=e.sent();return[2]}}))}))};t.prototype.render=function(){var t;var e=_(this);var i=this.autoHide&&!this.visible;return r(o,{key:"7c27ea5b0795676bf5cb33e1f83aa142c197f64e",onClick:this.onClick,"aria-hidden":i?"true":null,class:(t={},t[e]=true,t["menu-toggle-hidden"]=i,t)},r("slot",{key:"69f187becedc0fe34603d41d279f043cf0fdf776"}))};return t}());U.style=R}}}));
File without changes