PageSourceSearch

https://huntersinsights.com/assets/focus-management-zpJZeZqO.js

js huntersinsights.com collected 2026-10-04 23:18:25 UTC 3,392 bytes, 5 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="6ddffcf8-9d9c-5541-be97-d2a05c774585")}catch(e){}}();
3import{_ as e,f as t,u as n}from"./render-D-6lIDot.js";function r(t){return e.isServer?null:t instanceof Node?t.ownerDocument:t!=null&&t.hasOwnProperty(`current`)&&t.current instanceof Node?t.current.ownerDocument:document}var i=[`[contentEditable=true]`,`[tabindex]`,`a[href]`,`area[href]`,`button:not([disabled])`,`iframe`,`input:not([disabled])`,`select:not([disabled])`,`textarea:not([disabled])`].map(e=>`${e}:not([tabindex='-1'])`).join(`,`),a=(e=>(e[e.First=1]=`First`,e[e.Previous=2]=`Previous`,e[e.Next=4]=`Next`,e[e.Last=8]=`Last`,e[e.WrapAround=16]=`WrapAround`,e[e.NoScroll=32]=`NoScroll`,e))(a||{}),o=(e=>(e[e.Error=0]=`Error`,e[e.Overflow=1]=`Overflow`,e[e.Success=2]=`Success`,e[e.Underflow=3]=`Underflow`,e))(o||{}),s=(e=>(e[e.Previous=-1]=`Previous`,e[e.Next=1]=`Next`,e))(s||{});function c(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(i)).sort((e,t)=>Math.sign((e.tabIndex||2**53-1)-(t.tabIndex||2**53-1)))}var l=(e=>(e[e.Strict=0]=`Strict`,e[e.Loose=1]=`Loose`,e))(l||{});function u(e,t=0){return e===r(e)?.body?!1:n(t,{0(){return e.matches(i)},1(){let t=e;for(;t!==null;){if(t.matches(i))return!0;t=t.parentElement}return!1}})}function d(e){let n=r(e);t().nextFrame(()=>{n&&!u(n.activeElement,0)&&p(e)})}var f=(e=>(e[e.Keyboard=0]=`Keyboard`,e[e.Mouse=1]=`Mouse`,e))(f||{});typeof window<`u`&&typeof document<`u`&&(document.addEventListener(`keydown`,e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible=``)},!0),document.addEventListener(`click`,e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible=``)},!0));function p(e){e?.focus({preventScroll:!0})}var m=[`textarea`,`input`].join(`,`);function h(e){return(e?.matches)?.call(e,m)??!1}function g(e,t=e=>e){return e.slice().sort((e,n)=>{let r=t(e),i=t(n);if(r===null||i===null)return 0;let a=r.compareDocumentPosition(i);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function _(e,t){return v(c(),t,{relativeTo:e})}function v(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){let a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,o=Array.isArray(e)?n?g(e):e:c(e);i.length>0&&o.length>1&&(o=o.filter(e=>!i.includes(e))),r??=a.activeElement;let s=(()=>{if(t&5)return 1;if(t&10)return-1;throw Error(`Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last`)})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,o.indexOf(r))-1;if(t&4)return Math.max(0,o.indexOf(r))+1;if(t&8)return o.length-1;throw Error(`Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last`)})(),u=t&32?{preventScroll:!0}:{},d=0,f=o.length,p;do{if(d>=f||d+f<=0)return 0;let e=l+d;if(t&16)e=(e+f)%f;else{if(e<0)return 3;if(e>=f)return 1}p=o[e],p?.focus(u),d+=s}while(p!==a.activeElement);return t&6&&h(p)&&p.select(),2}export{v as a,c,r as d,o as i,u as l,g as n,l as o,a as r,_ as s,d as t,p as u};
4//# sourceMappingURL=focus-management-zpJZeZqO.js.map
5//# debugId=6ddffcf8-9d9c-5541-be97-d2a05c774585

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.