{"version":3,"sources":["../node_modules/@ionic/core/dist/esm/legacy/ion-button_2-md.entry.js","../node_modules/@ionic/core/dist/esm/legacy/chunk-9d21e8e5.js","../node_modules/@ionic/core/dist/esm/legacy/chunk-d102c9d1.js"],"names":["__webpack_require__","r","__webpack_exports__","d","Button","Icon","CACHED_MAP","_chunk_f257aad1_js__WEBPACK_IMPORTED_MODULE_0__","_chunk_9d21e8e5_js__WEBPACK_IMPORTED_MODULE_2__","_chunk_d102c9d1_js__WEBPACK_IMPORTED_MODULE_3__","hostRef","_this","this","Object","inToolbar","inItem","buttonType","disabled","routerDirection","strong","type","handleClick","ev","href","el","form","closest","preventDefault","fakeButton","document","createElement","style","display","appendChild","click","remove","onFocus","ionFocus","emit","onBlur","ionBlur","prototype","componentWillLoad","defineProperty","get","querySelector","enumerable","configurable","undefined","fill","hasIconOnly","render","_a","mode","_b","rel","target","size","color","expand","shape","finalSize","TagType","attrs","download","onClick","aria-disabled","class","assign","name","rippleType","getNamedUrl","url","win","window","Ionicons","map","Map","getIconMap","getName","icon","ios","md","toLowerCase","isSrc","isStr","test","trim","replace","getSrc","src","str","length","val","isValid","elm","nodeType","nodeName","i","attributes","value","indexOf","childNodes","requests","getSvgContent","req","fetch","then","rsp","status","text","Promise","resolve","svgContent","div","innerHTML","removeChild","svgElm","firstElementChild","setAttribute","validateContent","set","getIonMode","isVisible","lazy","connectedCallback","waitUntilVisible","loadIcon","disconnectedCallback","io","disconnect","rootMargin","cb","IntersectionObserver","io_1","data","isIntersecting","observe","getUrl","ariaLabel","label","flipRtl","role","createColorClasses","ownerDocument","dir","ref","documentElement","getAttribute","ion-color","getClassMap","hostContext","openURL","tslib__WEBPACK_IMPORTED_MODULE_0__","selector","classes","Array","isArray","split","filter","c","getClassList","forEach","SCHEME","direction","router","componentOnReady","sent","push","rIC","callback","requestIdleCallback","setTimeout","hasShadowDom","shadowRoot","attachShadow","findItemLabel","componentEl","itemEl","renderHiddenInput","always","container","input","classList","add","clamp","min","n","max","Math","assert","actual","reason","message","console","error","Error","now","timeStamp","Date","pointerCoord","changedTouches","touch","x","clientX","y","clientY","pageX","pageY","isEndSide","side","isRTL","debounceEvent","event","wait","original","_original","debounce","bind","func","timer","args","_i","arguments","clearTimeout","apply","concat"],"mappings":"4FAAAA,EAAAC,EAAAC,GAAAF,EAAAG,EAAAD,EAAA,+BAAAE,IAAAJ,EAAAG,EAAAD,EAAA,6BAAAG,IAAA,IAuLAC,EAvLAC,EAAAP,EAAA,IAAAQ,GAAAR,EAAA,IAAAA,EAAA,OAAAS,EAAAT,EAAA,MAaAI,EAEA,WACA,SAAAA,EAAAM,GACA,IAAAC,EAAAC,KAEIC,OAAAN,EAAA,EAAAM,CAAgBD,KAAAF,GACpBE,KAAAE,WAAA,EACAF,KAAAG,QAAA,EAKAH,KAAAI,WAAA,SAKAJ,KAAAK,UAAA,EAMAL,KAAAM,gBAAA,UAKAN,KAAAO,QAAA,EAKAP,KAAAQ,KAAA,SAEAR,KAAAS,YAAA,SAAAC,GACA,cAAAX,EAAAS,KACQP,OAAAL,EAAA,EAAAK,CAAOF,EAAAY,KAAAD,EAAAX,EAAAO,sBACR,GAAUL,OAAAJ,EAAA,EAAAI,CAAYF,EAAAa,IAAA,CAI7B,IAAAC,EAAAd,EAAAa,GAAAE,QAAA,QAEA,GAAAD,EAAA,CACAH,EAAAK,iBACA,IAAAC,EAAAC,SAAAC,cAAA,UACAF,EAAAR,KAAAT,EAAAS,KACAQ,EAAAG,MAAAC,QAAA,OACAP,EAAAQ,YAAAL,GACAA,EAAAM,QACAN,EAAAO,YAKAvB,KAAAwB,QAAA,WACAzB,EAAA0B,SAAAC,QAGA1B,KAAA2B,OAAA,WACA5B,EAAA6B,QAAAF,QAGA1B,KAAAyB,SAAoBxB,OAAAN,EAAA,EAAAM,CAAWD,KAAA,cAC/BA,KAAA4B,QAAmB3B,OAAAN,EAAA,EAAAM,CAAWD,KAAA,aAqG9B,OAlGAR,EAAAqC,UAAAC,kBAAA,WACA9B,KAAAE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IAAA8G,EAAAD,EAAA,GACA,OACAE,EAAAD,EAAAE,QACAC,EAAAH,EAAAI,SAIA,QAAA9J,IAAA1B,EAAAyL,MACA,OACAJ,EAAArL,EAAAyL,MACAF,EAAAvL,EAAA0L,OAKA,OACAL,EAAA,EACAE,EAAA,GAYA,SAAAI,EAAAC,GACA,IAAAC,EAAA,QAAAtL,SAAAoH,IAEA,OAAAiE,GACA,YACA,OAAAC,EAEA,UACA,OAAAA,EAEA,QACA,UAAAf,MAAA,IAAAc,EAAA,qEAIA,SAAAE,EAAAC,EAAAC,GACA,IAAAC,EAAAF,EAAAG,WAAAH,EACA,OACAG,UAAAH,EACA/K,KAAAmL,EAAAF,EAAAjL,KAAAoL,KAAAH,GAAAD,IAIA,SAAAG,EAAAE,EAAAL,GAKA,IAAAM,EACA,YALA,IAAAN,IACAA,EAAA,GAIA,WAGA,IAFA,IAAAO,EAAA,GAEAC,EAAA,EAAoBA,EAAAC,UAAAnI,OAAuBkI,IAC3CD,EAAAC,GAAAC,UAAAD,GAGAE,aAAAJ,GACAA,EAAAhD,WAAAqD,WAAA,GAAAN,EAAAL,GAAAY,OAAAL,KAlIA7N,EAAAG,EAAAD,EAAA,sBAAAuK,IAAAzK,EAAAG,EAAAD,EAAA,sBAAA4L,IAAA9L,EAAAG,EAAAD,EAAA,sBAAAuL,IAAAzL,EAAAG,EAAAD,EAAA,sBAAAkN,IAAApN,EAAAG,EAAAD,EAAA,sBAAAuN,IAAAzN,EAAAG,EAAAD,EAAA,sBAAA8K,IAAAhL,EAAAG,EAAAD,EAAA,sBAAA2K,IAAA7K,EAAAG,EAAAD,EAAA,sBAAA+M,IAAAjN,EAAAG,EAAAD,EAAA,sBAAAmM,IAAArM,EAAAG,EAAAD,EAAA,sBAAAsM,IAAAxM,EAAAG,EAAAD,EAAA,sBAAAiL","file":"static/js/25.04efc604.chunk.js","sourcesContent":["import { r as registerInstance, c as createEvent, d as getIonMode$1, h, H as Host, e as getElement, i as getAssetPath, j as getMode } from './chunk-f257aad1.js';\nimport './chunk-1074393c.js';\nimport { o as openURL, c as createColorClasses$1 } from './chunk-9d21e8e5.js';\nimport { h as hasShadowDom } from './chunk-d102c9d1.js';\n/**\n * @virtualProp {\"ios\" | \"md\"} mode - The mode determines which platform styles to use.\n *\n * @slot - Content is placed between the named slots if provided without a slot.\n * @slot icon-only - Should be used on an icon in a button that has no text.\n * @slot start - Content is placed to the left of the button text in LTR, and to the right in RTL.\n * @slot end - Content is placed to the right of the button text in LTR, and to the left in RTL.\n */\n\nvar Button =\n/** @class */\nfunction () {\n function Button(hostRef) {\n var _this = this;\n\n registerInstance(this, hostRef);\n this.inToolbar = false;\n this.inItem = false;\n /**\n * The type of button.\n */\n\n this.buttonType = 'button';\n /**\n * If `true`, the user cannot interact with the button.\n */\n\n this.disabled = false;\n /**\n * When using a router, it specifies the transition direction when navigating to\n * another page using `href`.\n */\n\n this.routerDirection = 'forward';\n /**\n * If `true`, activates a button with a heavier font weight.\n */\n\n this.strong = false;\n /**\n * The type of the button.\n */\n\n this.type = 'button';\n\n this.handleClick = function (ev) {\n if (_this.type === 'button') {\n openURL(_this.href, ev, _this.routerDirection);\n } else if (hasShadowDom(_this.el)) {\n // this button wants to specifically submit a form\n // climb up the dom to see if we're in a
\n // and if so, then use JS to submit it\n var form = _this.el.closest('form');\n\n if (form) {\n ev.preventDefault();\n var fakeButton = document.createElement('button');\n fakeButton.type = _this.type;\n fakeButton.style.display = 'none';\n form.appendChild(fakeButton);\n fakeButton.click();\n fakeButton.remove();\n }\n }\n };\n\n this.onFocus = function () {\n _this.ionFocus.emit();\n };\n\n this.onBlur = function () {\n _this.ionBlur.emit();\n };\n\n this.ionFocus = createEvent(this, \"ionFocus\", 7);\n this.ionBlur = createEvent(this, \"ionBlur\", 7);\n }\n\n Button.prototype.componentWillLoad = function () {\n this.inToolbar = !!this.el.closest('ion-buttons');\n this.inItem = !!this.el.closest('ion-item') || !!this.el.closest('ion-item-divider');\n };\n\n Object.defineProperty(Button.prototype, \"hasIconOnly\", {\n get: function get() {\n return !!this.el.querySelector('ion-icon[slot=\"icon-only\"]');\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Button.prototype, \"rippleType\", {\n get: function get() {\n var hasClearFill = this.fill === undefined || this.fill === 'clear'; // If the button is in a toolbar, has a clear fill (which is the default)\n // and only has an icon we use the unbounded \"circular\" ripple effect\n\n if (hasClearFill && this.hasIconOnly && this.inToolbar) {\n return 'unbounded';\n }\n\n return 'bounded';\n },\n enumerable: true,\n configurable: true\n });\n\n Button.prototype.render = function () {\n var _a;\n\n var mode = getIonMode$1(this);\n\n var _b = this,\n buttonType = _b.buttonType,\n type = _b.type,\n disabled = _b.disabled,\n rel = _b.rel,\n target = _b.target,\n size = _b.size,\n href = _b.href,\n color = _b.color,\n expand = _b.expand,\n hasIconOnly = _b.hasIconOnly,\n shape = _b.shape,\n strong = _b.strong;\n\n var finalSize = size === undefined && this.inItem ? 'small' : size;\n var TagType = href === undefined ? 'button' : 'a';\n var attrs = TagType === 'button' ? {\n type: type\n } : {\n download: this.download,\n href: href,\n rel: rel,\n target: target\n };\n var fill = this.fill;\n\n if (fill === undefined) {\n fill = this.inToolbar ? 'clear' : 'solid';\n }\n\n return h(Host, {\n onClick: this.handleClick,\n \"aria-disabled\": disabled ? 'true' : null,\n class: Object.assign({}, createColorClasses$1(color), (_a = {}, _a[mode] = true, _a[buttonType] = true, _a[buttonType + \"-\" + expand] = expand !== undefined, _a[buttonType + \"-\" + finalSize] = finalSize !== undefined, _a[buttonType + \"-\" + shape] = shape !== undefined, _a[buttonType + \"-\" + fill] = true, _a[buttonType + \"-strong\"] = strong, _a['button-has-icon-only'] = hasIconOnly, _a['button-disabled'] = disabled, _a['ion-activatable'] = true, _a['ion-focusable'] = true, _a))\n }, h(TagType, Object.assign({}, attrs, {\n class: \"button-native\",\n disabled: disabled,\n onFocus: this.onFocus,\n onBlur: this.onBlur\n }), h(\"span\", {\n class: \"button-inner\"\n }, h(\"slot\", {\n name: \"icon-only\"\n }), h(\"slot\", {\n name: \"start\"\n }), h(\"slot\", null), h(\"slot\", {\n name: \"end\"\n })), mode === 'md' && h(\"ion-ripple-effect\", {\n type: this.rippleType\n })));\n };\n\n Object.defineProperty(Button.prototype, \"el\", {\n get: function get() {\n return getElement(this);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Button, \"style\", {\n get: function get() {\n return \":host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-hover:initial;--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family,inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;pointer-events:auto;-webkit-font-kerning:none;font-kerning:none}:host(.button-disabled){--opacity:.5;pointer-events:none}:host(.button-disabled) .button-native{cursor:default;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary,#3880ff);--background-focused:var(--ion-color-primary-shade,#3171e0);--background-hover:var(--ion-color-primary-tint,#4c8dff);--color:var(--ion-color-primary-contrast,#fff);--color-activated:var(--ion-color-primary-contrast,#fff);--color-focused:var(--ion-color-primary-contrast,#fff)}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-solid.ion-color.ion-focused) .button-native{background:var(--ion-color-shade)}:host(.button-outline){--border-color:var(--ion-color-primary,#3880ff);--background:transparent;--color:var(--ion-color-primary,#3880ff);--color-focused:var(--ion-color-primary,#3880ff)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-outline.ion-focused.ion-color) .button-native{background:rgba(var(--ion-color-base-rgb),.1);color:var(--ion-color-base)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary,#3880ff)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-focused.ion-color) .button-native{background:rgba(var(--ion-color-base-rgb),.1);color:var(--ion-color-base)}:host(.button-clear.activated.ion-color) .button-native{background:transparent}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;display:block;width:100%;clear:both;contain:content}:host(.button-block) .button-native:after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;display:block;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}\\@supports ((-webkit-margin-start:0) or (margin-inline-start:0)) or (-webkit-margin-start:0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.button-native::-moz-focus-inner{border:0}.button-inner{display:-ms-flexbox;display:flex;-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%}::slotted(ion-icon){font-size:1.4em;pointer-events:none}::slotted(ion-icon[slot=start]){margin-left:-.3em;margin-right:.3em;margin-top:0;margin-bottom:0}\\@supports ((-webkit-margin-start:0) or (margin-inline-start:0)) or (-webkit-margin-start:0){::slotted(ion-icon[slot=start]){margin-left:unset;margin-right:unset;-webkit-margin-start:-.3em;margin-inline-start:-.3em;-webkit-margin-end:.3em;margin-inline-end:.3em}}::slotted(ion-icon[slot=end]){margin-left:.3em;margin-right:-.2em;margin-top:0;margin-bottom:0}\\@supports ((-webkit-margin-start:0) or (margin-inline-start:0)) or (-webkit-margin-start:0){::slotted(ion-icon[slot=end]){margin-left:unset;margin-right:unset;-webkit-margin-start:.3em;margin-inline-start:.3em;-webkit-margin-end:-.2em;margin-inline-end:-.2em}}::slotted(ion-icon[slot=icon-only]){font-size:1.8em}ion-ripple-effect{color:var(--ripple-color)}:host(.ion-focused) .button-native{background:var(--background-focused);color:var(--color-focused)}:host(.activated) .button-native{background:var(--background-activated);color:var(--color-activated)}\\@media (any-hover:hover){:host(:hover) .button-native{background:var(--background-hover);color:var(--color-hover)}}:host{--border-radius:4px;--padding-top:0;--padding-bottom:0;--padding-start:1.1em;--padding-end:1.1em;--transition:box-shadow 280ms cubic-bezier(.4,0,.2,1),background-color 15ms linear,color 15ms linear;margin-left:2px;margin-right:2px;margin-top:4px;margin-bottom:4px;height:36px;font-size:14px;font-weight:500;letter-spacing:.06em;text-transform:uppercase}\\@supports ((-webkit-margin-start:0) or (margin-inline-start:0)) or (-webkit-margin-start:0){:host{margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px}}:host(.button-solid){--background-activated:var(--background);--box-shadow:0 3px 1px -2px rgba(0,0,0,0.2),0 2px 2px 0 rgba(0,0,0,0.14),0 1px 5px 0 rgba(0,0,0,0.12)}:host(.button-solid.activated){--box-shadow:0 5px 5px -3px rgba(0,0,0,0.2),0 8px 10px 1px rgba(0,0,0,0.14),0 3px 14px 2px rgba(0,0,0,0.12)}:host(.button-outline){--border-width:2px;--border-style:solid;--box-shadow:none;--background-activated:transparent;--background-focused:rgba(var(--ion-color-primary-rgb,56,128,255),0.1);--background-hover:rgba(var(--ion-color-primary-rgb,56,128,255),0.04);--color-activated:var(--ion-color-primary,#3880ff)}:host(.button-outline.activated.ion-color) .button-native{background:transparent}:host(.button-clear){--background-activated:transparent;--background-focused:rgba(var(--ion-color-primary-rgb,56,128,255),0.1);--background-hover:rgba(var(--ion-color-primary-rgb,56,128,255),0.04);--color-activated:var(--ion-color-primary,#3880ff);--color-focused:var(--ion-color-primary,#3880ff)}:host(.button-round){--border-radius:64px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-large){--padding-top:0;--padding-start:1em;--padding-end:1em;--padding-bottom:0;height:2.8em;font-size:20px}:host(.button-small){--padding-top:0;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:0;height:2.1em;font-size:13px}:host(.button-strong){font-weight:700}::slotted(ion-icon[slot=icon-only]){padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}\\@media (any-hover:hover){:host(.button-solid.ion-color:hover) .button-native{background:var(--ion-color-tint)}:host(.button-clear.ion-color:hover) .button-native,:host(.button-outline.ion-color:hover) .button-native{background:rgba(var(--ion-color-base-rgb),.04)}}\";\n },\n enumerable: true,\n configurable: true\n });\n return Button;\n}();\n\nvar CACHED_MAP;\n\nvar getIconMap = function getIconMap() {\n if (!CACHED_MAP) {\n var win = window;\n win.Ionicons = win.Ionicons || {};\n CACHED_MAP = win.Ionicons.map = win.Ionicons.map || new Map();\n }\n\n return CACHED_MAP;\n};\n\nvar getUrl = function getUrl(i) {\n var url = getSrc(i.src);\n\n if (url) {\n return url;\n }\n\n url = getName(i.name, i.icon, i.mode, i.ios, i.md);\n\n if (url) {\n return getNamedUrl(url);\n }\n\n if (i.icon) {\n url = getSrc(i.icon);\n\n if (url) {\n return url;\n }\n\n url = getSrc(i.icon[i.mode]);\n\n if (url) {\n return url;\n }\n }\n\n return null;\n};\n\nvar getNamedUrl = function getNamedUrl(name) {\n var url = getIconMap().get(name);\n\n if (url) {\n return url;\n }\n\n return getAssetPath(\"svg/\" + name + \".svg\");\n};\n\nvar getName = function getName(name, icon, mode, ios, md) {\n // default to \"md\" if somehow the mode wasn't set\n mode = (mode && mode.toLowerCase()) === 'ios' ? 'ios' : 'md'; // if an icon was passed in using the ios or md attributes\n // set the iconName to whatever was passed in\n\n if (ios && mode === 'ios') {\n name = ios.toLowerCase();\n } else if (md && mode === 'md') {\n name = md.toLowerCase();\n } else {\n if (!name && icon && !isSrc(icon)) {\n name = icon;\n }\n\n if (isStr(name)) {\n name = name.toLowerCase();\n\n if (!/^md-|^ios-|^logo-/.test(name)) {\n // this does not have one of the defaults\n // so lets auto add in the mode prefix for them\n name = mode + '-' + name;\n }\n }\n }\n\n if (!isStr(name) || name.trim() === '') {\n return null;\n } // only allow alpha characters and dash\n\n\n var invalidChars = name.replace(/[a-z]|-|\\d/gi, '');\n\n if (invalidChars !== '') {\n return null;\n }\n\n return name;\n};\n\nvar getSrc = function getSrc(src) {\n if (isStr(src)) {\n src = src.trim();\n\n if (isSrc(src)) {\n return src;\n }\n }\n\n return null;\n};\n\nvar isSrc = function isSrc(str) {\n return str.length > 0 && /(\\/|\\.)/.test(str);\n};\n\nvar isStr = function isStr(val) {\n return typeof val === 'string';\n};\n\nvar validateContent = function validateContent(svgContent) {\n if (svgContent) {\n var div = document.createElement('div');\n div.innerHTML = svgContent; // setup this way to ensure it works on our buddy IE\n\n for (var i = div.childNodes.length - 1; i >= 0; i--) {\n if (div.childNodes[i].nodeName.toLowerCase() !== 'svg') {\n div.removeChild(div.childNodes[i]);\n }\n } // must only have 1 root element\n\n\n var svgElm = div.firstElementChild;\n\n if (svgElm && svgElm.nodeName.toLowerCase() === 'svg') {\n svgElm.setAttribute('class', 's-ion-icon'); // root element must be an svg\n // lets double check we've got valid elements\n // do not allow scripts\n\n if (isValid(svgElm)) {\n return div.innerHTML;\n }\n }\n }\n\n return '';\n};\n\nvar isValid = function isValid(elm) {\n if (elm.nodeType === 1) {\n if (elm.nodeName.toLowerCase() === 'script') {\n return false;\n }\n\n for (var i = 0; i < elm.attributes.length; i++) {\n var val = elm.attributes[i].value;\n\n if (isStr(val) && val.toLowerCase().indexOf('on') === 0) {\n return false;\n }\n }\n\n for (var i = 0; i < elm.childNodes.length; i++) {\n if (!isValid(elm.childNodes[i])) {\n return false;\n }\n }\n }\n\n return true;\n};\n\nvar requests = new Map();\n\nvar getSvgContent = function getSvgContent(url) {\n // see if we already have a request for this url\n var req = requests.get(url);\n\n if (!req) {\n // we don't already have a request\n req = fetch(url).then(function (rsp) {\n if (rsp.status <= 299) {\n return rsp.text();\n }\n\n return Promise.resolve(null);\n }).then(function (svgContent) {\n return validateContent(svgContent);\n }); // cache for the same requests\n\n requests.set(url, req);\n }\n\n return req;\n};\n/**\n * @virtualProp {\"ios\" | \"md\"} mode - The mode determines which platform styles to use.\n */\n\n\nvar Icon =\n/** @class */\nfunction () {\n function Icon(hostRef) {\n registerInstance(this, hostRef);\n this.mode = getIonMode(this);\n this.isVisible = false;\n /**\n * If enabled, ion-icon will be loaded lazily when it's visible in the viewport.\n * Default, `false`.\n */\n\n this.lazy = false;\n }\n\n Icon.prototype.connectedCallback = function () {\n var _this = this; // purposely do not return the promise here because loading\n // the svg file should not hold up loading the app\n // only load the svg if it's visible\n\n\n this.waitUntilVisible(this.el, '50px', function () {\n _this.isVisible = true;\n\n _this.loadIcon();\n });\n };\n\n Icon.prototype.disconnectedCallback = function () {\n if (this.io) {\n this.io.disconnect();\n this.io = undefined;\n }\n };\n\n Icon.prototype.waitUntilVisible = function (el, rootMargin, cb) {\n var _this = this;\n\n if (this.lazy && typeof window !== 'undefined' && window.IntersectionObserver) {\n var io_1 = this.io = new window.IntersectionObserver(function (data) {\n if (data[0].isIntersecting) {\n io_1.disconnect();\n _this.io = undefined;\n cb();\n }\n }, {\n rootMargin: rootMargin\n });\n io_1.observe(el);\n } else {\n // browser doesn't support IntersectionObserver\n // so just fallback to always show it\n cb();\n }\n };\n\n Icon.prototype.loadIcon = function () {\n var _this = this;\n\n if (this.isVisible) {\n var url = getUrl(this);\n\n if (url) {\n getSvgContent(url).then(function (svgContent) {\n return _this.svgContent = svgContent;\n });\n }\n }\n\n if (!this.ariaLabel) {\n var label = getName(this.name, this.icon, this.mode, this.ios, this.md); // user did not provide a label\n // come up with the label based on the icon name\n\n if (label) {\n this.ariaLabel = label.replace('ios-', '').replace('md-', '').replace(/\\-/g, ' ');\n }\n }\n };\n\n Icon.prototype.render = function () {\n var _a, _b;\n\n var mode = this.mode || 'md';\n var flipRtl = this.flipRtl || this.ariaLabel && this.ariaLabel.indexOf('arrow') > -1 && this.flipRtl !== false;\n return h(Host, {\n role: \"img\",\n class: Object.assign((_a = {}, _a[mode] = true, _a), createColorClasses(this.color), (_b = {}, _b[\"icon-\" + this.size] = !!this.size, _b['flip-rtl'] = !!flipRtl && this.el.ownerDocument.dir === 'rtl', _b))\n }, this.svgContent ? h(\"div\", {\n class: \"icon-inner\",\n innerHTML: this.svgContent\n }) : h(\"div\", {\n class: \"icon-inner\"\n }));\n };\n\n Object.defineProperty(Icon, \"assetsDirs\", {\n get: function get() {\n return [\"svg\"];\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Icon.prototype, \"el\", {\n get: function get() {\n return getElement(this);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Icon, \"watchers\", {\n get: function get() {\n return {\n \"name\": [\"loadIcon\"],\n \"src\": [\"loadIcon\"],\n \"icon\": [\"loadIcon\"]\n };\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Icon, \"style\", {\n get: function get() {\n return \":host{display:inline-block;width:1em;height:1em;contain:strict;fill:currentColor;-webkit-box-sizing:content-box!important;box-sizing:content-box!important}.icon-inner,svg{display:block;height:100%;width:100%}:host(.flip-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(.icon-small){font-size:18px!important}:host(.icon-large){font-size:32px!important}:host(.ion-color){color:var(--ion-color-base)!important}:host(.ion-color-primary){--ion-color-base:var(--ion-color-primary,#3880ff)}:host(.ion-color-secondary){--ion-color-base:var(--ion-color-secondary,#0cd1e8)}:host(.ion-color-tertiary){--ion-color-base:var(--ion-color-tertiary,#f4a942)}:host(.ion-color-success){--ion-color-base:var(--ion-color-success,#10dc60)}:host(.ion-color-warning){--ion-color-base:var(--ion-color-warning,#ffce00)}:host(.ion-color-danger){--ion-color-base:var(--ion-color-danger,#f14141)}:host(.ion-color-light){--ion-color-base:var(--ion-color-light,#f4f5f8)}:host(.ion-color-medium){--ion-color-base:var(--ion-color-medium,#989aa2)}:host(.ion-color-dark){--ion-color-base:var(--ion-color-dark,#222428)}\";\n },\n enumerable: true,\n configurable: true\n });\n return Icon;\n}();\n\nvar getIonMode = function getIonMode(ref) {\n return getMode(ref) || document.documentElement.getAttribute('mode') || 'md';\n};\n\nvar createColorClasses = function createColorClasses(color) {\n var _a;\n\n return color ? (_a = {\n 'ion-color': true\n }, _a[\"ion-color-\" + color] = true, _a) : null;\n};\n\nexport { Button as ion_button, Icon as ion_icon };","import * as tslib_1 from \"tslib\";\n\nfunction hostContext(selector, el) {\n return el.closest(selector) !== null;\n}\n/**\n * Create the mode and color classes for the component based on the classes passed in\n */\n\n\nfunction createColorClasses(color) {\n var _a;\n\n return typeof color === 'string' && color.length > 0 ? (_a = {\n 'ion-color': true\n }, _a[\"ion-color-\" + color] = true, _a) : undefined;\n}\n\nfunction getClassList(classes) {\n if (classes !== undefined) {\n var array = Array.isArray(classes) ? classes : classes.split(' ');\n return array.filter(function (c) {\n return c != null;\n }).map(function (c) {\n return c.trim();\n }).filter(function (c) {\n return c !== '';\n });\n }\n\n return [];\n}\n\nfunction getClassMap(classes) {\n var map = {};\n getClassList(classes).forEach(function (c) {\n return map[c] = true;\n });\n return map;\n}\n\nvar SCHEME = /^[a-z][a-z0-9+\\-.]*:/;\n\nfunction openURL(url, ev, direction) {\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n var router;\n return tslib_1.__generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!(url != null && url[0] !== '#' && !SCHEME.test(url))) return [3\n /*break*/\n , 2];\n router = document.querySelector('ion-router');\n if (!router) return [3\n /*break*/\n , 2];\n\n if (ev != null) {\n ev.preventDefault();\n }\n\n return [4\n /*yield*/\n , router.componentOnReady()];\n\n case 1:\n _a.sent();\n\n return [2\n /*return*/\n , router.push(url, direction)];\n\n case 2:\n return [2\n /*return*/\n , false];\n }\n });\n });\n}\n\nexport { createColorClasses as c, getClassMap as g, hostContext as h, openURL as o };","function rIC(callback) {\n if ('requestIdleCallback' in window) {\n window.requestIdleCallback(callback);\n } else {\n setTimeout(callback, 32);\n }\n}\n\nfunction hasShadowDom(el) {\n return !!el.shadowRoot && !!el.attachShadow;\n}\n\nfunction findItemLabel(componentEl) {\n var itemEl = componentEl.closest('ion-item');\n\n if (itemEl) {\n return itemEl.querySelector('ion-label');\n }\n\n return null;\n}\n\nfunction renderHiddenInput(always, container, name, value, disabled) {\n if (always || hasShadowDom(container)) {\n var input = container.querySelector('input.aux-input');\n\n if (!input) {\n input = container.ownerDocument.createElement('input');\n input.type = 'hidden';\n input.classList.add('aux-input');\n container.appendChild(input);\n }\n\n input.disabled = disabled;\n input.name = name;\n input.value = value || '';\n }\n}\n\nfunction clamp(min, n, max) {\n return Math.max(min, Math.min(n, max));\n}\n\nfunction assert(actual, reason) {\n if (!actual) {\n var message = 'ASSERT: ' + reason;\n console.error(message);\n debugger; // tslint:disable-line\n\n throw new Error(message);\n }\n}\n\nfunction now(ev) {\n return ev.timeStamp || Date.now();\n}\n\nfunction pointerCoord(ev) {\n // get X coordinates for either a mouse click\n // or a touch depending on the given event\n if (ev) {\n var changedTouches = ev.changedTouches;\n\n if (changedTouches && changedTouches.length > 0) {\n var touch = changedTouches[0];\n return {\n x: touch.clientX,\n y: touch.clientY\n };\n }\n\n if (ev.pageX !== undefined) {\n return {\n x: ev.pageX,\n y: ev.pageY\n };\n }\n }\n\n return {\n x: 0,\n y: 0\n };\n}\n/**\n * @hidden\n * Given a side, return if it should be on the end\n * based on the value of dir\n * @param side the side\n * @param isRTL whether the application dir is rtl\n */\n\n\nfunction isEndSide(side) {\n var isRTL = document.dir === 'rtl';\n\n switch (side) {\n case 'start':\n return isRTL;\n\n case 'end':\n return !isRTL;\n\n default:\n throw new Error(\"\\\"\" + side + \"\\\" is not a valid value for [side]. Use \\\"start\\\" or \\\"end\\\" instead.\");\n }\n}\n\nfunction debounceEvent(event, wait) {\n var original = event._original || event;\n return {\n _original: event,\n emit: debounce(original.emit.bind(original), wait)\n };\n}\n\nfunction debounce(func, wait) {\n if (wait === void 0) {\n wait = 0;\n }\n\n var timer;\n return function () {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n\n clearTimeout(timer);\n timer = setTimeout.apply(void 0, [func, wait].concat(args));\n };\n}\n\nexport { rIC as a, assert as b, clamp as c, debounceEvent as d, debounce as e, findItemLabel as f, hasShadowDom as h, isEndSide as i, now as n, pointerCoord as p, renderHiddenInput as r };"],"sourceRoot":""}