vendor: 20,667 bytes, lines 1-41
1import{o as e}from"./chunk-CMxvf4Kt.js";import{t}from"./react-cS1o3OVs.js";import{t as n}from"./react-dom-Dvxju874.js";import{t as r}from"./jsx-runtime-sLPvdpSW.js";import{i,n as a,s as o,t as s}from"./dist-CoNeOCsk.js";import{n as c}from"./dist-BGOBqpW8.js";import{t as l}from"./dist-DSdBMn5s.js";var u=e(t(),1);function d(e,t=globalThis?.document){let n=l(e);u.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var f=r(),p=`DismissableLayer`,m=`dismissableLayer.update`,h=`dismissableLayer.pointerDownOutside`,g=`dismissableLayer.focusOutside`,_,v=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),y=u.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:l,onDismiss:p,...h}=e,g=u.useContext(v),[y,b]=u.useState(null),x=y?.ownerDocument??globalThis?.document,[,w]=u.useState({}),T=c(t,e=>b(e)),E=Array.from(g.layers),[D]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),te=E.indexOf(D),O=y?E.indexOf(y):-1,ne=g.layersWithOutsidePointerEventsDisabled.size>0,k=O>=te,A=ee(e=>{let t=e.target,n=[...g.branches].some(e=>e.contains(t));!k||n||(i?.(e),l?.(e),e.defaultPrevented||p?.())},x),j=S(e=>{let t=e.target;[...g.branches].some(e=>e.contains(t))||(a?.(e),l?.(e),e.defaultPrevented||p?.())},x);return d(e=>{O===g.layers.size-1&&(r?.(e),!e.defaultPrevented&&p&&(e.preventDefault(),p()))},x),u.useEffect(()=>{if(y)return n&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(_=x.body.style.pointerEvents,x.body.style.pointerEvents=`none`),g.layersWithOutsidePointerEventsDisabled.add(y)),g.layers.add(y),C(),()=>{n&&g.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=_)}},[y,x,n,g]),u.useEffect(()=>()=>{y&&(g.layers.delete(y),g.layersWithOutsidePointerEventsDisabled.delete(y),C())},[y,g]),u.useEffect(()=>{let e=()=>w({});return document.addEventListener(m,e),()=>document.removeEventListener(m,e)},[]),(0,f.jsx)(s.div,{...h,ref:T,style:{pointerEvents:ne?k?`auto`:`none`:void 0,...e.style},onFocusCapture:o(e.onFocusCapture,j.onFocusCapture),onBlurCapture:o(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:o(e.onPointerDownCapture,A.onPointerDownCapture)})});y.displayName=p;var b=`DismissableLayerBranch`,x=u.forwardRef((e,t)=>{let n=u.useContext(v),r=u.useRef(null),i=c(t,r);return u.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,f.jsx)(s.div,{...e,ref:i})});x.displayName=b;function ee(e,t=globalThis?.document){let n=l(e),r=u.useRef(!1),i=u.useRef(()=>{});return u.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){w(h,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function S(e,t=globalThis?.document){let n=l(e),r=u.useRef(!1);return u.useEffect(()=>{let e=e=>{e.target&&!r.current&&w(g,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function C(){let e=new CustomEvent(m);document.dispatchEvent(e)}function w(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?a(i,o):i.dispatchEvent(o)}var T=`focusScope.autoFocusOnMount`,E=`focusScope.autoFocusOnUnmount`,D={bubbles:!1,cancelable:!0},te=`FocusScope`,O=u.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[d,p]=u.useState(null),m=l(i),h=l(a),g=u.useRef(null),_=c(t,e=>p(e)),v=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let e=function(e){if(v.paused||!d)return;let t=e.target;d.contains(t)?g.current=t:M(g.current,{select:!0})},t=function(e){if(v.paused||!d)return;let t=e.relatedTarget;t!==null&&(d.contains(t)||M(g.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&M(d)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return d&&r.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,d,v.paused]),u.useEffect(()=>{if(d){ae.add(v);let e=document.activeElement;if(!d.contains(e)){let t=new CustomEvent(T,D);d.addEventListener(T,m),d.dispatchEvent(t),t.defaultPrevented||(ne(ce(A(d)),{select:!0}),document.activeElement===e&&M(d))}return()=>{d.removeEventListener(T,m),setTimeout(()=>{let t=new CustomEvent(E,D);d.addEventListener(E,h),d.dispatchEvent(t),t.defaultPrevented||M(e??document.body,{select:!0}),d.removeEventListener(E,h),ae.remove(v)},0)}}},[d,m,h,v]);let y=u.useCallback(e=>{if(!n&&!r||v.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=k(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&M(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&M(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,v.paused]);return(0,f.jsx)(s.div,{tabIndex:-1,...o,ref:_,onKeyDown:y})});O.displayName=te;function ne(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(M(r,{select:t}),document.activeElement!==n)return}function k(e){let t=A(e);return[j(t,e),j(t.reverse(),e)]}function A(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function j(e,t){for(let n of e)if(!re(n,{upTo:t}))return n}function re(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function ie(e){return e instanceof HTMLInputElement&&`select`in e}function M(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ie(e)&&t&&e.select()}}var ae=oe();function oe(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=se(e,t),e.unshift(t)},remove(t){e=se(e,t),e[0]?.resume()}}}function se(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function ce(e){return e.filter(e=>e.tagName!==`A`)}var le=e(n(),1),ue=`Portal`,de=u.forwardRef((e,t)=>{let{container:n,...r}=e,[a,o]=u.useState(!1);i(()=>o(!0),[]);let c=n||a&&globalThis?.document?.body;return c?le.createPortal((0,f.jsx)(s.div,{...r,ref:t}),c):null});de.displayName=ue;var N=0;function fe(){u.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??pe()),document.body.insertAdjacentElement(`beforeend`,e[1]??pe()),N++,()=>{N===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),N--}},[])}function pe(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var P=function(){return P=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},P.apply(this,arguments)};function me(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function he(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var F=`right-scroll-bar-position`,I=`width-before-scroll-bar`,ge=`with-scroll-bars-hidden`,_e=`--removed-body-scroll-bar-size`;function L(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function ve(e,t){var n=(0,u.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var ye=typeof window<`u`?u.useLayoutEffect:u.useEffect,be=new WeakMap;function xe(e,t){var n=ve(t||null,function(t){return e.forEach(function(e){return L(e,t)})});return ye(function(){var t=be.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||L(e,null)}),i.forEach(function(e){r.has(e)||L(e,a)})}be.set(n,e)},[e]),n}var R=function(){return R=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},R.apply(this,arguments)};function Se(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Ce(e){return e}function we(e,t){t===void 0&&(t=Ce);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Te(e){e===void 0&&(e={});var t=we(null);return t.options=R({async:!0,ssr:!1},e),t}var Ee=function(e){var t=e.sideCar,n=Se(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return u.createElement(r,R({},n))};Ee.isSideCarExport=!0;function De(e,t){return e.useMedium(t),Ee}var z=Te(),B=function(){},V=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:B,onWheelCapture:B,onTouchMoveCapture:B}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,h=e.noIsolation,g=e.inert,_=e.allowPinchZoom,v=e.as,y=v===void 0?`div`:v,b=e.gapMode,x=me(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),ee=p,S=xe([n,t]),C=P(P({},x),i);return u.createElement(u.Fragment,null,d&&u.createElement(ee,{sideCar:z,removeScrollBar:l,shards:f,noRelative:m,noIsolation:h,inert:g,setCallbacks:a,allowPinchZoom:!!_,lockRef:n,gapMode:b}),o?u.cloneElement(u.Children.only(s),P(P({},C),{ref:S})):u.createElement(y,P({},C,{className:c,ref:S}),s))});V.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},V.classNames={fullWidth:I,zeroRight:F};var Oe,ke=function(){if(Oe)return Oe;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Ae(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=ke();return t&&e.setAttribute(`nonce`,t),e}function je(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Me(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Ne=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ae())&&(je(t,n),Me(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Pe=function(){var e=Ne();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Fe=function(){var e=Pe();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Ie={left:0,top:0,right:0,gap:0},H=function(e){return parseInt(e||``,10)||0},Le=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[H(n),H(r),H(i)]},Re=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Ie;var t=Le(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ze=Fe(),U=`data-scroll-locked`,Be=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),` 2 .${ge} { 3 overflow: hidden ${r}; 4 padding-right: ${s}px ${r}; 5 } 6 body[${U}] { 7 overflow: hidden ${r}; 8 overscroll-behavior: contain; 9 ${[t&&`position: relative ${r};`,n===`margin`&&` 10 padding-left: ${i}px; 11 padding-top: ${a}px; 12 padding-right: ${o}px; 13 margin-left:0; 14 margin-top:0; 15 margin-right: ${s}px ${r}; 16 `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)} 17 } 18 19 .${F} { 20 right: ${s}px ${r}; 21 } 22 23 .${I} { 24 margin-right: ${s}px ${r}; 25 } 26 27 .${F} .${F} { 28 right: 0 ${r}; 29 } 30 31 .${I} .${I} { 32 margin-right: 0 ${r}; 33 } 34 35 body[${U}] { 36 ${_e}: ${s}px; 37 } 38`},Ve=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},He=function(){u.useEffect(function(){return document.body.setAttribute(U,(Ve()+1).toString()),function(){var e=Ve()-1;e<=0?document.body.removeAttribute(U):document.body.setAttribute(U,e.toString())}},[])},Ue=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;He();var a=u.useMemo(function(){return Re(i)},[i]);return u.createElement(ze,{styles:Be(a,!t,i,n?``:`!important`)})},W=!1;if(typeof window<`u`)try{var G=Object.defineProperty({},"passive",{get:function(){return W=!0,!0}});window.addEventListener(`test`,G,G),window.removeEventListener(`test`,G,G)}catch{W=!1}var K=W?{passive:!1}:!1,We=function(e){return e.tagName===`TEXTAREA`},Ge=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!We(e)&&n[t]===`visible`)},Ke=function(e){return Ge(e,`overflowY`)},qe=function(e){return Ge(e,`overflowX`)},Je=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Ze(e,r)){var i=Qe(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Ye=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Xe=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Ze=function(e,t){return e===`v`?Ke(t):qe(t)},Qe=function(e,t){return e===`v`?Ye(t):Xe(t)},$e=function(e,t){return e===`h`&&t===`rtl`?-1:1},et=function(e,t,n,r,i){var a=$e(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=Qe(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Ze(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},q=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tt=function(e){return[e.deltaX,e.deltaY]},nt=function(e){return e&&`current`in e?e.current:e},rt=function(e,t){return e[0]===t[0]&&e[1]===t[1]},it=function(e){return` 39 .block-interactivity-${e} {pointer-events: none;} 40 .allow-interactivity-${e} {pointer-events: all;} 41`},at=0,J=[];function ot(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),i=u.useState(at++)[0],a=u.useState(Fe)[0],o=u.useRef(e);u.useEffect(function(){o.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=he([e.lockRef.current],(e.shards||[]).map(nt),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=u.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=q(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Je(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Je(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return et(h,t,e,h===`h`?s:c,!0)},[]),c=u.useCallback(function(e){var n=e;if(!(!J.length||J[J.length-1]!==a)){var r=`deltaY`in n?tt(n):q(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&rt(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(nt).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=u.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:st(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=u.useCallback(function(e){n.current=q(e),r.current=void 0},[]),f=u.useCallback(function(t){l(t.type,tt(t),t.target,s(t,e.lockRef.current))},[]),p=u.useCallback(function(t){l(t.type,q(t),t.target,s(t,e.lockRef.current))},[]);u.useEffect(function(){return J.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener(`wheel`,c,K),document.addEventListener(`touchmove`,c,K),document.addEventListener(`touchstart`,d,K),function(){J=J.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,K),document.removeEventListener(`touchmove`,c,K),document.removeEventListener(`touchstart`,d,K)}},[]);var m=e.removeScrollBar,h=e.inert;return u.createElement(u.Fragment,null,h?u.createElement(a,{styles:it(i)}):null,m?u.createElement(Ue,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function st(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var ct=De(z,ot),lt=u.forwardRef(function(e,t){return u.createElement(V,P({},e,{ref:t,sideCar:ct}))});lt.classNames=V.classNames;var ut=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Y=new WeakMap,X=new WeakMap,Z={},Q=0,$=function(e){return e&&(e.host||$(e.parentNode))},dt=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=$(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},ft=function(e,t,n,r){var i=dt(t,Array.isArray(e)?e:[e]);Z[n]||(Z[n]=new WeakMap);var a=Z[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Y.get(e)||0)+1,l=(a.get(e)||0)+1;Y.set(e,c),a.set(e,l),o.push(e),c===1&&i&&X.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Q++,function(){o.forEach(function(e){var t=Y.get(e)-1,i=a.get(e)-1;Y.set(e,t),a.set(e,i),t||(X.has(e)||e.removeAttribute(r),X.delete(e)),i||e.removeAttribute(n)}),Q--,Q||(Y=new WeakMap,Y=new WeakMap,X=new WeakMap,Z={})}},pt=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||ut(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),ft(r,i,n,`aria-hidden`)):function(){return null}};export{O as a,de as i,lt as n,y as o,fe as r,pt as t};
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.