PageSourceSearch

https://personal-trainer-nuernberg.de/js/chunk-BvZ7Rm-f.js

js personal-trainer-nuernberg.de collected 2026-10-06 02:08:48 UTC 34,008 bytes, 1 lines download raw bytes

1import{r as e,a as n,b as t,G as r,R as o}from"./chunk-DIsplYtC.js";var a={exports:{}},i={},c=e,u=Symbol.for("react.element"),s=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,d=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function p(e,n,t){var r,o={},a=null,i=null;for(r in void 0!==t&&(a=""+t),void 0!==n.key&&(a=""+n.key),void 0!==n.ref&&(i=n.ref),n)l.call(n,r)&&!f.hasOwnProperty(r)&&(o[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps)void 0===o[r]&&(o[r]=n[r]);return{$$typeof:u,type:e,key:a,ref:i,props:o,_owner:d.current}}i.Fragment=s,i.jsx=p,i.jsxs=p,a.exports=i;var v=a.exports;function m(e,n,{checkForDefaultPrevented:t=!0}={}){return function(r){if(null==e||e(r),!1===t||!r.defaultPrevented)return null==n?void 0:n(r)}}function h(...e){return n=>e.forEach((e=>function(e,n){"function"==typeof e?e(n):null!=e&&(e.current=n)}(e,n)))}function g(...n){return e.useCallback(h(...n),n)}function y(...n){const t=n[0];if(1===n.length)return t;const r=()=>{const r=n.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(n){const o=r.reduce(((e,{useScope:t,scopeName:r})=>({...e,...t(n)[`__scope${r}`]})),{});return e.useMemo((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return r.scopeName=t.scopeName,r}var E=e.forwardRef(((n,t)=>{const{children:r,...o}=n,a=e.Children.toArray(r),i=a.find(C);if(i){const n=i.props.children,r=a.map((t=>t===i?e.Children.count(n)>1?e.Children.only(null):e.isValidElement(n)?n.props.children:null:t));return v.jsx(b,{...o,ref:t,children:e.isValidElement(n)?e.cloneElement(n,void 0,r):null})}return v.jsx(b,{...o,ref:t,children:r})}));E.displayName="Slot";var b=e.forwardRef(((n,t)=>{const{children:r,...o}=n;if(e.isValidElement(r)){const n=function(e){var n,t;let r=null==(n=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=null==(t=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}(r);return e.cloneElement(r,{...N(o,r.props),ref:t?h(t,n):n})}return e.Children.count(r)>1?e.Children.only(null):null}));b.displayName="SlotClone";var w=({children:e})=>v.jsx(v.Fragment,{children:e});function C(n){return e.isValidElement(n)&&n.type===w}function N(e,n){const t={...n};for(const r in n){const o=e[r],a=n[r];/^on[A-Z]/.test(r)?o&&a?t[r]=(...e)=>{a(...e),o(...e)}:o&&(t[r]=o):"style"===r?t[r]={...o,...a}:"className"===r&&(t[r]=[o,a].filter(Boolean).join(" "))}return{...e,...t}}function R(t){const r=t+"CollectionProvider",[o,a]=function(n,t=[]){let r=[];const o=()=>{const t=r.map((n=>e.createContext(n)));return function(r){const o=(null==r?void 0:r[n])||t;return e.useMemo((()=>({[`__scope${n}`]:{...r,[n]:o}})),[r,o])}};return o.scopeName=n,[function(t,o){const a=e.createContext(o),i=r.length;function c(t){const{scope:r,children:o,...c}=t,u=(null==r?void 0:r[n][i])||a,s=e.useMemo((()=>c),Object.values(c));return v.jsx(u.Provider,{value:s,children:o})}return r=[...r,o],c.displayName=t+"Provider",[c,function(r,c){const u=(null==c?void 0:c[n][i])||a,s=e.useContext(u);if(s)return s;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${t}\``)}]},y(o,...t)]}(r),[i,c]=o(r,{collectionRef:{current:null},itemMap:new Map}),u=e=>{const{scope:t,children:r}=e,o=n.useRef(null),a=n.useRef(new Map).current;return v.jsx(i,{scope:t,itemMap:a,collectionRef:o,children:r})};u.displayName=r;const s=t+"CollectionSlot",l=n.forwardRef(((e,n)=>{const{scope:t,children:r}=e,o=g(n,c(s,t).collectionRef);return v.jsx(E,{ref:o,children:r})}));l.displayName=s;const d=t+"CollectionItemSlot",f="data-radix-collection-item",p=n.forwardRef(((e,t)=>{const{scope:r,children:o,...a}=e,i=n.useRef(null),u=g(t,i),s=c(d,r);return n.useEffect((()=>(s.itemMap.set(i,{ref:i,...a}),()=>{s.itemMap.delete(i)}))),v.jsx(E,{[f]:"",ref:u,children:o})}));return p.displayName=d,[{Provider:u,Slot:l,ItemSlot:p},function(e){const r=c(t+"CollectionConsumer",e);return n.useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const n=Array.from(e.querySelectorAll(`[${f}]`));return Array.from(r.itemMap.values()).sort(((e,t)=>n.indexOf(e.ref.current)-n.indexOf(t.ref.current)))}),[r.collectionRef,r.itemMap])},a]}function x(n,t=[]){let r=[];const o=()=>{const t=r.map((n=>e.createContext(n)));return function(r){const o=(null==r?void 0:r[n])||t;return e.useMemo((()=>({[`__scope${n}`]:{...r,[n]:o}})),[r,o])}};return o.scopeName=n,[function(t,o){const a=e.createContext(o),i=r.length;r=[...r,o];const c=t=>{var r;const{scope:o,children:c,...u}=t,s=(null==(r=null==o?void 0:o[n])?void 0:r[i])||a,l=e.useMemo((()=>u),Object.values(u));return v.jsx(s.Provider,{value:l,children:c})};return c.displayName=t+"Provider",[c,function(r,c){var u;const s=(null==(u=null==c?void 0:c[n])?void 0:u[i])||a,l=e.useContext(s);if(l)return l;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${t}\``)}]},O(o,...t)]}function O(...n){const t=n[0];if(1===n.length)return t;const r=()=>{const r=n.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(n){const o=r.reduce(((e,{useScope:t,scopeName:r})=>({...e,...t(n)[`__scope${r}`]})),{});return e.useMemo((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return r.scopeName=t.scopeName,r}var S=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((n,t)=>{const r=e.forwardRef(((e,n)=>{const{asChild:r,...o}=e,a=r?E:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),v.jsx(a,{...o,ref:n})}));return r.displayName=`Primitive.${t}`,{...n,[t]:r}}),{});function D(e,n){e&&t.flushSync((()=>
vendor: 4,215 bytes, line 1
1e.dispatchEvent(n)))}function P(n){const t=e.useRef(n);return e.useEffect((()=>{t.current=n})),e.useMemo((()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}var _,M="dismissableLayer.update",T=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),j=e.forwardRef(((n,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:c,onDismiss:u,...s}=n,l=e.useContext(T),[d,f]=e.useState(null),p=(null==d?void 0:d.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,h]=e.useState({}),y=g(t,(e=>f(e))),E=Array.from(l.layers),[b]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),w=E.indexOf(b),C=d?E.indexOf(d):-1,N=l.layersWithOutsidePointerEventsDisabled.size>0,R=C>=w,x=function(n,t=(null==globalThis?void 0:globalThis.document)){const r=P(n),o=e.useRef(!1),a=e.useRef((()=>{}));return e.useEffect((()=>{const e=e=>{if(e.target&&!o.current){let n=function(){k("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=n,t.addEventListener("click",a.current,{once:!0})):n()}else t.removeEventListener("click",a.current);o.current=!1},n=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(n),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}}),[t,r]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const n=e.target,t=[...l.branches].some((e=>e.contains(n)));R&&!t&&(null==a||a(e),null==c||c(e),e.defaultPrevented||null==u||u())}),p),O=function(n,t=(null==globalThis?void 0:globalThis.document)){const r=P(n),o=e.useRef(!1);return e.useEffect((()=>{const e=e=>{e.target&&!o.current&&k("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}((e=>{const n=e.target;[...l.branches].some((e=>e.contains(n)))||(null==i||i(e),null==c||c(e),e.defaultPrevented||null==u||u())}),p);return function(n,t=(null==globalThis?void 0:globalThis.document)){const r=P(n);e.useEffect((()=>{const e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[r,t])}((e=>{C===l.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))}),p),e.useEffect((()=>{if(d)return r&&(0===l.layersWithOutsidePointerEventsDisabled.size&&(_=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),L(),()=>{r&&1===l.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=_)}}),[d,p,r,l]),e.useEffect((()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),L())}),[d,l]),e.useEffect((()=>{const e=()=>h({});return document.addEventListener(M,e),()=>document.removeEventListener(M,e)}),[]),v.jsx(S.div,{...s,ref:y,style:{pointerEvents:N?R?"auto":"none":void 0,...n.style},onFocusCapture:m(n.onFocusCapture,O.onFocusCapture),onBlurCapture:m(n.onBlurCapture,O.onBlurCapture),onPointerDownCapture:m(n.onPointerDownCapture,x.onPointerDownCapture)})}));j.displayName="DismissableLayer";var A=e.forwardRef(((n,t)=>{const r=e.useContext(T),o=e.useRef(null),a=g(t,o);return e.useEffect((()=>{const e=o.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}}),[r.branches]),v.jsx(S.div,{...n,ref:a})}));function L(){const e=new CustomEvent(M);document.dispatchEvent(e)}function k(e,n,t,{discrete:r}){const o=t.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:t});n&&o.addEventListener(e,n,{once:!0}),r?D(o,a):o.dispatchEvent(a)}A.displayName="DismissableLayerBranch";var I=j,F=A,W=Boolean(null==globalThis?void 0:globalThis.document)?e.useLayoutEffect:()=>{},$=e.forwardRef(((n,t)=>{var o;const{container:a,...i}=n,[c,u]=e.useState(!1);W((()=>u(!0)),[]);const s=a||c&&(null==(o=null==globalThis?void 0:globalThis.document)?void 0:o.body);return s?r.createPortal(v.jsx(S.div,{...i,ref:t}),s):null}));$.displayName="Portal";var B=n=>
vendor: 5,844 bytes, line 1
1{const{present:t,children:r}=n,o=function(n){const[t,r]=e.useState(),o=e.useRef({}),a=e.useRef(n),i=e.useRef("none"),c=n?"mounted":"unmounted",[u,s]=function(n,t){return e.useReducer(((e,n)=>t[e][n]??e),n)}(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect((()=>{const e=U(o.current);i.current="mounted"===u?e:"none"}),[u]),W((()=>{const e=o.current,t=a.current;if(t!==n){const r=i.current,o=U(e);n?s("MOUNT"):"none"===o||"none"===(null==e?void 0:e.display)?s("UNMOUNT"):s(t&&r!==o?"ANIMATION_OUT":"UNMOUNT"),a.current=n}}),[n,s]),W((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,r=r=>{const i=U(o.current).includes(r.animationName);if(r.target===t&&i&&(s("ANIMATION_END"),!a.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},c=e=>{e.target===t&&(i.current=U(o.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",r),t.addEventListener("animationend",r),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",r),t.removeEventListener("animationend",r)}}s("ANIMATION_END")}),[t,s]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:e.useCallback((e=>{e&&(o.current=getComputedStyle(e)),r(e)}),[])}}(t),a="function"==typeof r?r({present:o.isPresent}):e.Children.only(r),i=g(o.ref,function(e){var n,t;let r=null==(n=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=null==(t=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}(a));return"function"==typeof r||o.isPresent?e.cloneElement(a,{ref:i}):null};function U(e){return(null==e?void 0:e.animationName)||"none"}function K({prop:n,defaultProp:t,onChange:r=()=>{}}){const[o,a]=function({defaultProp:n,onChange:t}){const r=e.useState(n),[o]=r,a=e.useRef(o),i=P(t);return e.useEffect((()=>{a.current!==o&&(i(o),a.current=o)}),[o,a,i]),r}({defaultProp:t,onChange:r}),i=void 0!==n,c=i?n:o,u=P(r);return[c,e.useCallback((e=>{if(i){const t="function"==typeof e?e(n):e;t!==n&&u(t)}else a(e)}),[i,n,a,u])]}B.displayName="Presence";var Y=o["useId".toString()]||(()=>{}),X=0;function z(n){const[t,r]=e.useState(Y());return W((()=>{n||r((e=>e??String(X++)))}),[n]),n||(t?`radix-${t}`:"")}var V="focusScope.autoFocusOnMount",Z="focusScope.autoFocusOnUnmount",q={bubbles:!1,cancelable:!0},H=e.forwardRef(((n,t)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...c}=n,[u,s]=e.useState(null),l=P(a),d=P(i),f=e.useRef(null),p=g(t,(e=>s(e))),m=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect((()=>{if(o){let e=function(e){if(m.paused||!u)return;const n=e.target;u.contains(n)?f.current=n:ee(f.current,{select:!0})},n=function(e){if(m.paused||!u)return;const n=e.relatedTarget;null!==n&&(u.contains(n)||ee(f.current,{select:!0}))},t=function(e){if(document.activeElement===document.body)for(const n of e)n.removedNodes.length>0&&ee(u)};document.addEventListener("focusin",e),document.addEventListener("focusout",n);const r=new MutationObserver(t);return u&&r.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",n),r.disconnect()}}}),[o,u,m.paused]),e.useEffect((()=>{if(u){ne.add(m);const e=document.activeElement;if(!u.contains(e)){const n=new CustomEvent(V,q);u.addEventListener(V,l),u.dispatchEvent(n),n.defaultPrevented||(function(e,{select:n=!1}={}){const t=document.activeElement;for(const r of e)if(ee(r,{select:n}),document.activeElement!==t)return}(G(u).filter((e=>"A"!==e.tagName)),{select:!0}),document.activeElement===e&&ee(u))}return()=>{u.removeEventListener(V,l),setTimeout((()=>{const n=new CustomEvent(Z,q);u.addEventListener(Z,d),u.dispatchEvent(n),n.defaultPrevented||ee(e??document.body,{select:!0}),u.removeEventListener(Z,d),ne.remove(m)}),0)}}}),[u,l,d,m]);const h=e.useCallback((e=>{if(!r&&!o)return;if(m.paused)return;const n="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,t=document.activeElement;if(n&&t){const n=e.currentTarget,[o,a]=function(e){const n=G(e);return[J(n,e),J(n.reverse(),e)]}(n);o&&a?e.shiftKey||t!==a?e.shiftKey&&t===o&&(e.preventDefault(),r&&ee(a,{select:!0})):(e.preventDefault(),r&&ee(o,{select:!0})):t===n&&e.preventDefault()}}),[r,o,m.paused]);return v.jsx(S.div,{tabIndex:-1,...c,ref:p,onKeyDown:h})}));function G(e){const n=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const n="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||n?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)n.push(t.currentNode);return n}function J(e,n){for(const t of e)if(!Q(t,{upTo:n}))return t}function Q(e,{upTo:n}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==n&&e===n)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function ee(e,{select:n=!1}={}){if(e&&e.focus){const t=document.activeElement;e.focus({preventScroll:!0}),e!==t&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&n&&e.select()}}H.displayName="FocusScope";var ne=function(){let e=[];return{add(n){const t=e[0];n!==t&&(null==t||t.pause()),e=te(e,n),e.unshift(n)},remove(n){var t;e=te(e,n),null==(t=e[0])||t.resume()}}}();function te(e,n){const t=[...e],r=t.indexOf(n);return-1!==r&&t.splice(r,1),t}var re=0;function oe(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
1style.position="fixed",e.style.pointerEvents="none",e}var ae=function(){return ae=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},ae.apply(this,arguments)};function ie(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t}"function"==typeof SuppressedError&&SuppressedError;var ce="right-scroll-bar-position",ue="width-before-scroll-bar";function se(e,n){return"function"==typeof e?e(n):e&&(e.current=n),e}var le="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,de=new WeakMap;function fe(e){return e}var pe=function(n){var t=n.sideCar,r=ie(n,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return e.createElement(o,ae({},r))};pe.isSideCarExport=!0;var ve=function(e){void 0===e&&(e={});var n=function(e,n){void 0===n&&(n=fe);var t=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return t.length?t[t.length-1]:null},useMedium:function(e){var o=n(e,r);return t.push(o),function(){t=t.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;t.length;){var n=t;t=[],n.forEach(e)}t={push:function(n){return e(n)},filter:function(){return t}}},assignMedium:function(e){r=!0;var n=[];if(t.length){var o=t;t=[],o.forEach(e),n=t}var a=function(){var t=n;n=[],t.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),t={push:function(e){n.push(e),i()},filter:function(e){return n=n.filter(e),t}}}}}();return n.options=ae({async:!0,ssr:!1},e),n}(),me=function(){},he=e.forwardRef((function(n,t){var r=e.useRef(null),o=e.useState({onScrollCapture:me,onWheelCapture:me,onTouchMoveCapture:me}),a=o[0],i=o[1],c=n.forwardProps,u=n.children,s=n.className,l=n.removeScrollBar,d=n.enabled,f=n.shards,p=n.sideCar,v=n.noIsolation,m=n.inert,h=n.allowPinchZoom,g=n.as,y=void 0===g?"div":g,E=n.gapMode,b=ie(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=p,C=function(n){var t,r,o=(t=function(e){return n.forEach((function(n){return se(n,e)}))},(r=e.useState((function(){return{value:null,callback:t,facade:{get current(){return r.value},set current(e){var n=r.value;n!==e&&(r.value=e,r.callback(e,n))}}}}))[0]).callback=t,r.facade);return le((function(){var e=de.get(o);if(e){var t=new Set(e),r=new Set(n),a=o.current;t.forEach((function(e){r.has(e)||se(e,null)})),r.forEach((function(e){t.has(e)||se(e,a)}))}de.set(o,n)}),[n]),o}([r,t]),N=ae(ae({},b),a);return e.createElement(e.Fragment,null,d&&e.createElement(w,{sideCar:ve,removeScrollBar:l,shards:f,noIsolation:v,inert:m,setCallbacks:i,allowPinchZoom:!!h,lockRef:r,gapMode:E}),c?e.cloneElement(e.Children.only(u),ae(ae({},N),{ref:C})):e.createElement(y,ae({},N,{className:s,ref:C}),u))}));he.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},he.classNames={fullWidth:ue,zeroRight:ce};var ge=function(){var e=0,n=null;return{add:function(t){var r,o;0==e&&(n=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return n&&e.setAttribute("nonce",n),e}())&&(o=t,(r=n).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(n)),e++},remove:function(){! --e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},ye=function(){var n,t=(n=ge(),function(t,r){e.useEffect((function(){return n.add(t),function(){n.remove()}}),[t&&r])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},Ee={left:0,top:0,right:0,gap:0},be=function(e){return parseInt(e||"",10)||0},we=ye(),Ce="data-scroll-locked",Ne=function(e,n,t,r){var o=e.left,a=e.top,i=e.right,c=e.gap;return void 0===t&&(t="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(c,"px ").concat(r,";\n  }\n  body[").concat(Ce,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([n&&"position: relative ".concat(r,";"),"margin"===t&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(i,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(c,"px ").concat(r,";\n    "),"padding"===t&&"padding-right: ".concat(c,"px ").concat(r,";
1")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(ce," {\n    right: ").concat(c,"px ").concat(r,";\n  }\n  \n  .").concat(ue," {\n    margin-right: ").concat(c,"px ").concat(r,";\n  }\n  \n  .").concat(ce," .").concat(ce," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(ue," .").concat(ue," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(Ce,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(c,"px;\n  }\n")},Re=function(){var e=parseInt(document.body.getAttribute(Ce)||"0",10);return isFinite(e)?e:0},xe=function(n){var t=n.noRelative,r=n.noImportant,o=n.gapMode,a=void 0===o?"margin":o;e.useEffect((function(){return document.body.setAttribute(Ce,(Re()+1).toString()),function(){var e=Re()-1;e<=0?document.body.removeAttribute(Ce):document.body.setAttribute(Ce,e.toString())}}),[]);var i=e.useMemo((function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Ee;var n=function(e){var n=window.getComputedStyle(document.body),t=n["padding"===e?"paddingLeft":"marginLeft"],r=n["padding"===e?"paddingTop":"marginTop"],o=n["padding"===e?"paddingRight":"marginRight"];return[be(t),be(r),be(o)]}(e),t=document.documentElement.clientWidth,r=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,r-t+n[2]-n[0])}}(a)}),[a]);return e.createElement(we,{styles:Ne(i,!t,a,r?"":"!important")})},Oe=!1;if("undefined"!=typeof window)try{var Se=Object.defineProperty({},"passive",{get:function(){return Oe=!0,!0}});window.addEventListener("test",Se,Se),window.removeEventListener("test",Se,Se)}catch(An){Oe=!1}var De=!!Oe&&{passive:!1},Pe=function(e,n){if(!(e instanceof Element))return!1;var t=window.getComputedStyle(e);return"hidden"!==t[n]&&!(t.overflowY===t.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===t[n])},_e=function(e,n){var t=n.ownerDocument,r=n;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Me(e,r)){var o=Te(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==t.body);return!1},Me=function(e,n){return"v"===e?function(e){return Pe(e,"overflowY")}(n):function(e){return Pe(e,"overflowX")}(n)},Te=function(e,n){return"v"===e?[(t=n).scrollTop,t.scrollHeight,t.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(n);var t},je=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ae=function(e){return[e.deltaX,e.deltaY]},Le=function(e){return e&&"current"in e?e.current:e},ke=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Ie=0,Fe=[];function We(e){for(var n=null;null!==e;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const $e=(Be=function(n){var t=e.useRef([]),r=e.useRef([0,0]),o=e.useRef(),a=e.useState(Ie++)[0],i=e.useState(ye)[0],c=e.useRef(n);e.useEffect((function(){c.current=n}),[n]),e.useEffect((function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(a));var e=function(e,n,t){if(t||2===arguments.length)for(var r,o=0,a=n.length;o<a;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))}([n.lockRef.current],(n.shards||[]).map(Le),!0).filter(Boolean);return e.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),e.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[n.inert,n.lockRef.current,n.shards]);var u=e.useCallback((function(e,n){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!c.current.allowPinchZoom;var t,a=je(e),i=r.current,u="deltaX"in e?e.deltaX:i[0]-a[0],s="deltaY"in e?e.deltaY:i[1]-a[1],l=e.target,d=Math.abs(u)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===l.type)return!1;var f=_e(d,l);if(!f)return!0;if(f?t=d:(t="v"===d?"h":"v",f=_e(d,l)),!f)return!1;if(!o.current&&"changedTouches"in e&&(u||s)&&(o.current=t),!t)return!0;var p=o.current||t;return function(e,n,t,r,o){var a=function(e,n){return"h"===e&&"rtl"===n?-1:1}(e,window.getComputedStyle(n).direction),i=a*r,c=t.target,u=n.contains(c),s=!1,l=i>0,d=0,f=0;do{var p=Te(e,c),v=p[0],m=p[1]-p[2]-a*v;(v||m)&&Me(e,c)&&(d+=m,f+=v),c=c instanceof ShadowRoot?c.host:c.parentNode}while(!u&&c!==document.body||u&&(n.contains(c)||n===c));return l&&Math.abs(d)<1?s=!0:l||!(Math.abs(f)<1)&&o||(s=!0),s}(p,n,e,"h"===p?u:s,!0)}),[]),s=e.useCallback((function(e){var n=e;if(Fe.length&&Fe[Fe.length-1]===i){var r="deltaY"in n?Ae(n):je(n),o=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();
vendor: 7,462 bytes, line 1
1else if(!o){var a=(c.current.shards||[]).map(Le).filter(Boolean).filter((function(e){return e.contains(n.target)}));(a.length>0?u(n,a[0]):!c.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),l=e.useCallback((function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:We(r)};t.current.push(a),setTimeout((function(){t.current=t.current.filter((function(e){return e!==a}))}),1)}),[]),d=e.useCallback((function(e){r.current=je(e),o.current=void 0}),[]),f=e.useCallback((function(e){l(e.type,Ae(e),e.target,u(e,n.lockRef.current))}),[]),p=e.useCallback((function(e){l(e.type,je(e),e.target,u(e,n.lockRef.current))}),[]);e.useEffect((function(){return Fe.push(i),n.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,De),document.addEventListener("touchmove",s,De),document.addEventListener("touchstart",d,De),function(){Fe=Fe.filter((function(e){return e!==i})),document.removeEventListener("wheel",s,De),document.removeEventListener("touchmove",s,De),document.removeEventListener("touchstart",d,De)}}),[]);var v=n.removeScrollBar,m=n.inert;return e.createElement(e.Fragment,null,m?e.createElement(i,{styles:ke(a)}):null,v?e.createElement(xe,{gapMode:n.gapMode}):null)},ve.useMedium(Be),pe);var Be,Ue=e.forwardRef((function(n,t){return e.createElement(he,ae({},n,{ref:t,sideCar:$e}))}));Ue.classNames=he.classNames;var Ke=new WeakMap,Ye=new WeakMap,Xe={},ze=0,Ve=function(e){return e&&(e.host||Ve(e.parentNode))},Ze=function(e,n,t){void 0===t&&(t="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),function(e,n,t,r){var o=function(e,n){return n.map((function(n){if(e.contains(n))return n;var t=Ve(n);return t&&e.contains(t)?t:null})).filter((function(e){return Boolean(e)}))}(n,Array.isArray(e)?e:[e]);Xe[t]||(Xe[t]=new WeakMap);var a=Xe[t],i=[],c=new Set,u=new Set(o),s=function(e){e&&!c.has(e)&&(c.add(e),s(e.parentNode))};o.forEach(s);var l=function(e){e&&!u.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(c.has(e))l(e);else try{var n=e.getAttribute(r),o=null!==n&&"false"!==n,u=(Ke.get(e)||0)+1,s=(a.get(e)||0)+1;Ke.set(e,u),a.set(e,s),i.push(e),1===u&&o&&Ye.set(e,!0),1===s&&e.setAttribute(t,"true"),o||e.setAttribute(r,"true")}catch(d){}}))};return l(n),c.clear(),ze++,function(){i.forEach((function(e){var n=Ke.get(e)-1,o=a.get(e)-1;Ke.set(e,n),a.set(e,o),n||(Ye.has(e)||e.removeAttribute(r),Ye.delete(e)),o||e.removeAttribute(t)})),--ze||(Ke=new WeakMap,Ke=new WeakMap,Ye=new WeakMap,Xe={})}}(r,o,t,"aria-hidden")):function(){return null}},qe="Dialog",[He,Ge]=x(qe),[Je,Qe]=He(qe),en=n=>{const{__scopeDialog:t,children:r,open:o,defaultOpen:a,onOpenChange:i,modal:c=!0}=n,u=e.useRef(null),s=e.useRef(null),[l=!1,d]=K({prop:o,defaultProp:a,onChange:i});return v.jsx(Je,{scope:t,triggerRef:u,contentRef:s,contentId:z(),titleId:z(),descriptionId:z(),open:l,onOpenChange:d,onOpenToggle:e.useCallback((()=>d((e=>!e))),[d]),modal:c,children:r})};en.displayName=qe;var nn="DialogTrigger";e.forwardRef(((e,n)=>{const{__scopeDialog:t,...r}=e,o=Qe(nn,t),a=g(n,o.triggerRef);return v.jsx(S.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":wn(o.open),...r,ref:a,onClick:m(e.onClick,o.onOpenToggle)})})).displayName=nn;var tn="DialogPortal",[rn,on]=He(tn,{forceMount:void 0}),an=n=>{const{__scopeDialog:t,forceMount:r,children:o,container:a}=n,i=Qe(tn,t);return v.jsx(rn,{scope:t,forceMount:r,children:e.Children.map(o,(e=>v.jsx(B,{present:r||i.open,children:v.jsx($,{asChild:!0,container:a,children:e})})))})};an.displayName=tn;var cn="DialogOverlay",un=e.forwardRef(((e,n)=>{const t=on(cn,e.__scopeDialog),{forceMount:r=t.forceMount,...o}=e,a=Qe(cn,e.__scopeDialog);return a.modal?v.jsx(B,{present:r||a.open,children:v.jsx(sn,{...o,ref:n})}):null}));un.displayName=cn;var sn=e.forwardRef(((e,n)=>{const{__scopeDialog:t,...r}=e,o=Qe(cn,t);return v.jsx(Ue,{as:E,allowPinchZoom:!0,shards:[o.contentRef],children:v.jsx(S.div,{"data-state":wn(o.open),...r,ref:n,style:{pointerEvents:"auto",...r.style}})})})),ln="DialogContent",dn=e.forwardRef(((e,n)=>{const t=on(ln,e.__scopeDialog),{forceMount:r=t.forceMount,...o}=e,a=Qe(ln,e.__scopeDialog);return v.jsx(B,{present:r||a.open,children:a.modal?v.jsx(fn,{...o,ref:n}):v.jsx(pn,{...o,ref:n})})}));dn.displayName=ln;var fn=e.forwardRef(((n,t)=>{const r=Qe(ln,n.__scopeDialog),o=e.useRef(null),a=g(t,r.contentRef,o);return e.useEffect((()=>{const e=o.current;if(e)return Ze(e)}),[]),v.jsx(vn,{...n,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:m(n.onCloseAutoFocus,(e=>{var n;e.preventDefault(),null==(n=r.triggerRef.current)||n.focus()})),onPointerDownOutside:m(n.onPointerDownOutside,(e=>{const n=e.detail.originalEvent,t=0===n.button&&!0===n.ctrlKey;(2===n.button||t)&&e.preventDefault()})),onFocusOutside:m(n.onFocusOutside,(e=>e.preventDefault()))})})),pn=e.forwardRef(((n,t)=>{const r=Qe(ln,n.__scopeDialog),o=e.useRef(!1),a=e.useRef(!1);return v.jsx(vn,{...n,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{var t,i;null==(t=n.onCloseAutoFocus)||t.call(n,e),e.defaultPrevented||(o.current||null==(i=r.triggerRef.current)||i.focus(),e.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:e=>{var t,i;null==(t=n.onInteractOutside)||t.call(n,e),e.defaultPrevented||(o.current=!0,"pointerdown"===e.detail.originalEvent.type&&(a.current=!0));const c=e.target;(null==(i=r.triggerRef.current)?void 0:i.contains(c))&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&a.current&&e.preventDefault()}})})),vn=e.forwardRef(((n,t)=>{const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,...c}=n,u=Qe(ln,r),s=e.useRef(null),l=g(t,s);return e.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??oe()),document.body.insertAdjacentElement("beforeend",e[1]??oe()),re++,()=>{1===re&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),re--}}),[]),v.jsxs(v.Fragment,{children:[v.jsx(H,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:i,children:v.jsx(j,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":wn(u.open),...c,ref:l,onDismiss:()=>u.onOpenChange(!1)})}),v.jsxs(v.Fragment,{children:[v.jsx(xn,{titleId:u.titleId}),v.jsx(On,{contentRef:s,descriptionId:u.descriptionId})]})]})})),mn="DialogTitle",hn=e.forwardRef(((e,n)=>{const{__scopeDialog:t,...r}=e,o=Qe(mn,t);return v.jsx(S.h2,{id:o.titleId,...r,ref:n})}));hn.displayName=mn;var gn="DialogDescription",yn=e.forwardRef(((e,n)=>{const{__scopeDialog:t,...r}=e,o=Qe(gn,t);return v.jsx(S.p,{id:o.descriptionId,...r,ref:n})}));yn.displayName=gn;var En="DialogClose",bn=e.forwardRef(((e,n)=>{const{__scopeDialog:t,...r}=e,o=Qe(En,t);return v.jsx(S.button,{type:"button",...r,ref:n,onClick:m(e.onClick,(()=>o.onOpenChange(!1)))})}));function wn(e){return e?"open":"closed"}bn.displayName=En;var Cn="DialogTitleWarning",[Nn,Rn]=function(n,t){const r=e.createContext(t),o=n=>{const{children:t,...o}=n,a=e.useMemo((()=>o),Object.values(o));return v.jsx(r.Provider,{value:a,children:t})};return o.displayName=n+"Provider",[o,function(o){const a=e.useContext(r);if(a)return a;
1if(void 0!==t)return t;throw new Error(`\`${o}\` must be used within \`${n}\``)}]}(Cn,{contentName:ln,titleName:mn,docsSlug:"dialog"}),xn=({titleId:n})=>{const t=Rn(Cn),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return e.useEffect((()=>{n&&document.getElementById(n)}),[r,n]),null},On=({contentRef:n,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Rn("DialogDescriptionWarning").contentName}}.`;return e.useEffect((()=>{var e;const r=null==(e=n.current)?void 0:e.getAttribute("aria-describedby");t&&r&&document.getElementById(t)}),[r,n,t]),null},Sn=en,Dn=an,Pn=un,_n=dn,Mn=hn,Tn=yn,jn=bn;export{F as B,_n as C,j as D,Pn as O,S as P,I as R,w as S,Mn as T,x as a,K as b,R as c,B as d,P as e,m as f,$ as g,W as h,D as i,v as j,E as k,jn as l,Tn as m,Dn as n,Sn as o,g 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.