webmapgl.loadBundle("chunk-8a31c5e5.js",["exports","./chunk-7f23ca92.js"],function(t,e){var n=new WeakMap;function o(t,e,o,r){void 0===r&&(r=0),n.has(t)!==o&&(o?function(t,e,o){var r=e.parentNode,a=e.cloneNode(!1);a.classList.add("cloned-input"),a.tabIndex=-1,r.appendChild(a),n.set(t,a);var i="rtl"===t.ownerDocument.dir?9999:-9999;t.style.pointerEvents="none",e.style.transform="translate3d("+i+"px,"+o+"px,0) scale(0)"}(t,e,r):function(t,e){var o=n.get(t);o&&(n.delete(t),o.remove()),t.style.pointerEvents="",e.style.transform=""}(t,e))}function r(t){return t===t.getRootNode().activeElement}var a="input, textarea, [no-blur]",i=.3;function u(t,n,a,u){var l,c=function(t){l=e.pointerCoord(t)},s=function(c){l&&(function(t,e,n){if(l&&n){var o=l.x-n.x,r=l.y-n.y;return o*o+r*r>36}return!1}(0,0,e.pointerCoord(c))||r(n)||(c.preventDefault(),c.stopPropagation(),function(t,e,n,r){var a=function(t,e,n){return function(e,n,o,r){var a=e.top,u=e.bottom,l=n.top,c=l+15,s=.5*Math.min(n.bottom,t.ownerDocument.defaultView.innerHeight-o)-u,d=c-a,f=Math.round(s<0?-s:d>0?-d:0),v=Math.min(f,a-l),m=Math.abs(v);return{scrollAmount:v,scrollDuration:Math.min(400,Math.max(150,m/i)),scrollPadding:o,inputSafeY:4-(a-c)}}((t.closest("ion-item,[ion-item]")||t).getBoundingClientRect(),e.getBoundingClientRect(),n)}(t,n,r);Math.abs(a.scrollAmount)<4?e.focus():(o(t,e,!0,a.inputSafeY),e.focus(),n.scrollByPoint(0,a.scrollAmount,a.scrollDuration).then(function(){o(t,e,!1,a.inputSafeY),e.focus()}))}(t,n,a,u)))};return t.addEventListener("touchstart",c,!0),t.addEventListener("touchend",s,!0),function(){t.removeEventListener("touchstart",c,!0),t.removeEventListener("touchend",s,!0)}}var l="$ionPaddingTimer";function c(t,e){if("INPUT"===t.tagName&&!(t.parentElement&&"ION-INPUT"===t.parentElement.tagName||t.parentElement&&t.parentElement.parentElement&&"ION-SEARCHBAR"===t.parentElement.parentElement.tagName)){var n=t.closest("ion-content");if(null!==n){var o=n[l];o&&clearTimeout(o),e>0?n.style.setProperty("--keyboard-offset",e+"px"):n[l]=setTimeout(function(){n.style.setProperty("--keyboard-offset","0px")},120)}}}t.startInputShims=function(t,e){var n=e.getNumber("keyboardHeight",290),i=e.getBoolean("scrollAssist",!0),l=e.getBoolean("hideCaretOnScroll",!0),s=e.getBoolean("inputBlurring",!0),d=e.getBoolean("scrollPadding",!0),f=new WeakMap,v=new WeakMap;function m(t){var e=(t.shadowRoot||t).querySelector("input")||(t.shadowRoot||t).querySelector("textarea"),a=t.closest("ion-content");if(e){if(a&&l&&!f.has(t)){var c=function(t,e,n){if(!n||!e)return function(){};var a=function(n){r(e)&&o(t,e,n)},i=function(){return o(t,e,!1)},u=function(){return a(!0)},l=function(){return a(!1)};return n.addEventListener("ionScrollStart",u),n.addEventListener("ionScrollEnd",l),e.addEventListener("blur",i),function(){n.removeEventListener("ionScrollStart",u),n.removeEventListener("ionScrollEnd",l),e.addEventListener("ionBlur",i)}}(t,e,a);f.set(t,c)}a&&i&&!v.has(t)&&(c=u(t,e,a,n),v.set(t,c))}}s&&function(t){var e=!0,n=!1;t.addEventListener("ionScrollStart",function(){n=!0}),t.addEventListener("focusin",function(){e=!0},!0),t.addEventListener("touchend",function(o){if(n)n=!1;else{var r=t.activeElement;if(r&&!r.matches(a)){var i=o.target;i!==r&&(i.matches(a)||i.closest(a)||(e=!1,setTimeout(function(){e||r.blur()},50)))}}},!1)}(t),d&&function(t,e){t.addEventListener("focusin",function(t){c(t.target,e)}),t.addEventListener("focusout",function(t){c(t.target,0)})}(t,n);for(var p=0,E=Array.from(t.querySelectorAll("ion-input, ion-textarea"));p<E.length;p++)m(E[p]);t.body.addEventListener("ionInputDidLoad",function(t){m(t.target)}),t.body.addEventListener("ionInputDidUnload",function(t){var e,n;e=t.target,l&&((n=f.get(e))&&n(),f.delete(e)),i&&((n=v.get(e))&&n(),v.delete(e))})}});