PageSourceSearch

https://tech.alpsalpine.com/assets/components/utils-bTNLUo2I.js

js alpsalpine.com collected 2026-09-24 18:15:26 UTC 2,944 bytes, 1 lines download raw bytes

1import{d as e,m as t,t as n}from"./jsx-runtime-CPHOs-8T.js";var r=t(e(),1),i=n(),a=(0,r.createContext)({www:``,tech:``,recruit:``});a.displayName=`UrlPrefix`;function o(){return(0,r.useContext)(a)}function s(e){let t={www:e.getAttribute(`data-www-url`)||``,tech:e.getAttribute(`data-tech-url`)||``,recruit:e.getAttribute(`data-recruit-url`)||``};return({children:e})=>(0,i.jsx)(c,{value:t,children:e})}function c({children:e,value:t}){return(0,i.jsx)(a.Provider,{value:t,children:e})}var l=typeof document<`u`?r.useLayoutEffect:()=>{},u={prefix:String(Math.round(Math.random()*1e10)),current:0},d=r.createContext(u),f=r.createContext(!1);typeof window<`u`&&window.document&&window.document.createElement;var p=new WeakMap;function m(e=!1){let t=(0,r.useContext)(d),n=(0,r.useRef)(null);if(n.current===null&&!e){let e=r.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(e){let n=p.get(e);n==null?p.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,p.delete(e))}n.current=++t.current}return n.current}function h(e){let t=(0,r.useContext)(d),n=m(!!e),i=`react-aria${t.prefix}`;return e||`${i}-${n}`}function g(e){let t=r.useId(),[n]=(0,r.useState)(x()),i=n?`react-aria`:`react-aria${u.prefix}`;return e||`${i}-${t}`}var _=typeof r.useId==`function`?g:h;function v(){return!1}function y(){return!0}function b(e){return()=>{}}function x(){return typeof r.useSyncExternalStore==`function`?r.useSyncExternalStore(b,v,y):(0,r.useContext)(f)}function S(e){let[t,n]=(0,r.useState)(e),i=(0,r.useRef)(t),a=(0,r.useRef)(null),o=(0,r.useRef)(()=>{if(!a.current)return;let e=a.current.next();if(e.done){a.current=null;return}i.current===e.value?o.current():n(e.value)});return l(()=>{i.current=t,a.current&&o.current()}),[t,(0,r.useCallback)(e=>{a.current=e(i.current),o.current()},[o])]}var C=!!(typeof window<`u`&&window.document&&window.document.createElement),w=new Map,T;typeof FinalizationRegistry<`u`&&(T=new FinalizationRegistry(e=>{w.delete(e)}));var E=new WeakMap;function D(e){let[t,n]=(0,r.useState)(e),i=(0,r.useRef)(null),a=_(t),o=(0,r.useRef)(null),s=E.get(o);if(T&&s!==a&&(s!=null&&T.unregister(o),T.register(o,a,o),E.set(o,a)),C){let e=w.get(a);e&&!e.includes(i)?e.push(i):w.set(a,[i])}return l(()=>{let e=a;return()=>{T&&(T.unregister(o),E.delete(o)),w.delete(e)}},[a]),(0,r.useEffect)(()=>{let e=i.current;return e&&n(e),()=>{e&&(i.current=null)}}),a}function O(e,t){if(e===t)return e;let n=w.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=w.get(t);return r?(r.forEach(t=>t.current=e),e):t}function k(e=[]){let t=D(),[n,i]=S(t),a=(0,r.useCallback)(()=>{i(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,i]);return l(a,[t,a,...e]),n}function A(e){return e.filter(e=>!!e).join(` `)}function j(e,t){return Object.hasOwn(e,t)}function M(e,t){return t.includes(e)}export{O as a,l as c,k as i,s as l,A as n,D as o,j as r,x as s,M as t,o as u};

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.