| 266 | `:i}function Gq(i,e){return CE(i,A=>A.nodeName.toUpperCase()===e.toUpperCase())}function W2(i,e,A){return CE(i,t=>(function(n,o,a){return typeof n.getAttribute=="function"&&n.getAttribute(o)===a})(t,e,A))}function CE(i,e){return!!gx(i,e)}function gx(i,e){for(var A=i;A&&!e(A);)A=A.parentNode;return A}function Ip(i){var e,A;return(e=i==null||(A=i.ownerDocument)===null||A===void 0?void 0:A.defaultView)!==null&&e!==void 0?e:void 0}function cx(i){var e=Ip(i),A=e?.document.activeElement;return!!A&&CE(A,t=>t===i)}function Kq(i,e){return gx(i,A=>A.nodeName===e)}function o_(i){return W2(i,"data-type","selectable-key")?fo.key:W2(i,"data-type","selectable-value")?fo.value:W2(i,"data-type","insert-selection-area-inside")?fo.inside:W2(i,"data-type","insert-selection-area-after")?fo.after:fo.multi}function Gw(i){return encodeURIComponent(xt(i))}function Uq(i){var e,A=gx(i,n=>!(n==null||!n.hasAttribute)&&n.hasAttribute("data-path")),t=(e=A?.getAttribute("data-path"))!==null&&e!==void 0?e:void 0;return t?ms(decodeURIComponent(t)):void 0}function rIA(i){var{allElements:e,currentElement:A,direction:t,hasPrio:n=()=>!0,margin:o=10}=i,a=iF(e.filter(function(m){var v=m.getBoundingClientRect();return v.width>0&&v.height>0}),s),r=s(A);function s(m){var v=m.getBoundingClientRect();return{x:v.left+v.width/2,y:v.top+v.height/2,rect:v,element:m}}function l(m,v){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,k=m.x-v.x,M=(m.y-v.y)*S;return Math.sqrt(k*k+M*M)}var g=m=>l(m,r);if(t==="Left"||t==="Right"){var C=t==="Left"?a.filter(m=>{return v=r,m.rect.left+o<v.rect.left;var v}):a.filter(m=>{return v=r,m.rect.right>v.rect.right+o;var v}),d=C.filter(m=>{return v=m,S=r,Math.abs(v.y-S.y)<o;var v,S}),B=$E(d,g)||$E(C,m=>l(m,r,10));return B?.element}if(t==="Up"||t==="Down"){var u=t==="Up"?a.filter(m=>{return v=r,m.y+o<v.y;var v}):a.filter(m=>{return v=r,m.y>v.y+o;var v}),E=u.filter(m=>n(m.element)),f=$E(E,g)||$E(u,g);return f?.element}}function Cx(){var i,e,A,t;return typeof navigator<"u"&&(i=(e=(A=navigator)===null||A===void 0||(A=A.platform)===null||A===void 0?void 0:A.toUpperCase().includes("MAC"))!==null&&e!==void 0?e:(t=navigator)===null||t===void 0||(t=t.userAgentData)===null||t===void 0||(t=t.platform)===null||t===void 0?void 0:t.toUpperCase().includes("MAC"))!==null&&i!==void 0&&i}function RC(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"+",A=[];dx(i,arguments.length>2&&arguments[2]!==void 0?arguments[2]:Cx)&&A.push("Ctrl"),i.altKey&&A.push("Alt"),i.shiftKey&&A.push("Shift");var t=i.key.length===1?i.key.toUpperCase():i.key;return t in sIA||A.push(t),A.join(e)}function dx(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cx;return i.ctrlKey||i.metaKey&&e()}var sIA={Ctrl:!0,Command:!0,Control:!0,Alt:!0,Option:!0,Shift:!0};function oi(i,e){e===void 0&&(e={});var A=e.insertAt;if(i&&typeof document<"u"){var t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",A==="top"&&t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n),n.styleSheet?n.styleSheet.cssText=i:n.appendChild(document.createTextNode(i))}}oi(`.jse-absolute-popup.svelte-enkkpn { |