!function(){"use strict";const t="is-open",e=".nte-tap-tooltip-host, .about-thanks-hint, .nte-trade-limit-help";let n=!1;function o(t){return t?.querySelector?.('[role="tooltip"], .nte-tap-tooltip, .about-thanks-tooltip, .nte-trade-limit-tooltip')||null}function i(e,n){if(!e)return;e.classList.toggle(t,n),e.setAttribute("aria-expanded",n?"true":"false");let i=o(e);i&&i.setAttribute("aria-hidden",n?"false":"true")}function l(n){document.querySelectorAll(`${e}.${t}`).forEach(t=>{t!==n&&i(t,!1)})}function a(e){if(!e||"1"===e.dataset.nteTapTooltipBound)return;e.dataset.nteTapTooltipBound="1",e.hasAttribute("tabindex")||e.setAttribute("tabindex","0"),e.getAttribute("role")||e.setAttribute("role","button"),i(e,!1);let n=o(e);n&&!n.id&&(n.id="nte-tap-tip-"+Math.random().toString(36).slice(2,10)),n?.id&&e.setAttribute("aria-describedby",n.id),e.addEventListener("click",n=>{n.preventDefault(),n.stopPropagation();let o=!e.classList.contains(t);l(),i(e,o)}),e.addEventListener("keydown",t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e.click())})}globalThis.init_tap_tooltips=function(t,o){!function(){if(document.getElementById("nte-tap-tooltip-styles"))return;let t=document.createElement("style");t.id="nte-tap-tooltip-styles",t.textContent='\n      .nte-tap-tooltip-host,\n      .about-thanks-hint,\n      .nte-trade-limit-help {\n        -webkit-tap-highlight-color: transparent;\n      }\n      .nte-tap-tooltip-host:focus-visible,\n      .about-thanks-hint:focus-visible,\n      .nte-trade-limit-help:focus-visible {\n        outline: 2px solid rgba(34, 211, 238, 0.55);\n        outline-offset: 2px;\n      }\n      .nte-tap-tooltip-host.is-open [role="tooltip"],\n      .nte-tap-tooltip-host.is-open .nte-tap-tooltip,\n      .nte-tap-tooltip-host.is-open .about-thanks-tooltip,\n      .nte-tap-tooltip-host.is-open .nte-trade-limit-tooltip,\n      .about-thanks-hint.is-open .about-thanks-tooltip,\n      .nte-trade-limit-help.is-open .nte-trade-limit-tooltip {\n        opacity: 1 !important;\n        visibility: visible !important;\n        pointer-events: auto;\n      }\n    ',(document.head||document.documentElement).appendChild(t)}(),n||(n=!0,document.addEventListener("click",t=>{t.target.closest(e)||l()},!0),document.addEventListener("keydown",t=>{"Escape"===t.key&&l()})),(t&&t.querySelectorAll?t:document).querySelectorAll(o||e).forEach(a)},globalThis.close_all_tap_tooltips=l}();