PageSourceSearch

https://tourtochichenitza.com/assets/accordion-B0Sd3L5R.js

js tourtochichenitza.com collected 2026-10-07 14:56:49 UTC 27,140 bytes, 1 lines download raw bytes

1import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-CwJFpaho.js";import{t as n}from"./react-dom-DX3XddaT.js";import{t as r}from"./jsx-runtime-NZYk81nU.js";import{m as i}from"./DefaultLayout-CJi7ayM2.js";import{t as a}from"./utils-DojpP95n.js";var o=e(t(),1),s=r(),c=Object.defineProperty,l=(e,t)=>c(e,`name`,{value:t,configurable:!0});function u(e,t){let n=o.createContext(t);n.displayName=e+`Context`;let r=l(e=>{let{children:t,...r}=e,i=o.useMemo(()=>r,Object.values(r));return(0,s.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,s=o.useContext(n);if(s)return s;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return l(i,`useContext`),[r,i]}l(u,`createContext`);function d(e,t=[]){let n=[];function r(t,r){let i=o.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let c=l(t=>{let{scope:n,children:r,...c}=t,l=n?.[e]?.[a]||i,u=o.useMemo(()=>c,Object.values(c));return(0,s.jsx)(l.Provider,{value:u,children:r})},`Provider`);c.displayName=t+`Provider`;function u(n,s,c={}){let{optional:l=!1}=c,u=s?.[e]?.[a]||i,d=o.useContext(u);if(d)return d;if(r!==void 0)return r;if(!l)throw Error(`\`${n}\` must be used within \`${t}\``)}return l(u,`useContext`),[c,u]}l(r,`createContext`);let i=l(()=>{let t=n.map(e=>o.createContext(e));return l(function(n){let r=n?.[e]||t;return o.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,f(i,...t)]}l(d,`createContextScope`);function f(...e){let t=e[0];if(e.length===1)return t;let n=l(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return l(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}l(f,`composeContextScopes`);var p=Object.defineProperty,m=(e,t)=>p(e,`name`,{value:t,configurable:!0});function h(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}m(h,`setRef`);function g(...e){return t=>{let n=!1,r=e.map(e=>{let r=h(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():h(e[t],null)}}}}m(g,`composeRefs`);function _(...e){return o.useCallback(g(...e),e)}m(_,`useComposedRefs`);var v=Object.defineProperty,y=(e,t)=>v(e,`name`,{value:t,configurable:!0});function b(e){let t=o.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,s=!1,c=[];S(r)&&typeof C==`function`&&(r=C(r._payload)),o.Children.forEach(r,e=>{if(ie(e)){s=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;S(n)&&typeof C==`function`&&(n=C(n._payload)),a=te(t,n),c.push(a?.props?.children)}else c.push(e)}),a?a=o.cloneElement(a,void 0,c):!s&&o.Children.count(r)===1&&o.isValidElement(r)&&(a=r);let l=a?re(a):void 0,u=_(n,l);if(!a){if(r||r===0)throw Error(s?ce(e):se(e));return r}let d=ne(i,a.props??{});return a.type!==o.Fragment&&(d.ref=n?u:l),o.cloneElement(a,d)});return t.displayName=`${e}.Slot`,t}y(b,`createSlot`);var x=Symbol.for(`radix.slottable`);function ee(e){let t=y(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=x,t}y(ee,`createSlottable`);var te=y((e,t)=>{if(`child`in e.props){let t=e.props.child;return o.isValidElement(t)?o.cloneElement(t,void 0,e.props.children(t.props.children)):null}return o.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function ne(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}y(ne,`mergeProps`);function re(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}y(re,`getElementRef`);function ie(e){return o.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===x}y(ie,`isSlottable`);var ae=Symbol.for(`react.lazy`);function S(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===ae&&`_payload`in e&&oe(e._payload)}y(S,`isLazyComponent`);function oe(e){return typeof e==`object`&&!!e&&`then`in e}y(oe,`isPromiseLike`);var se=y(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),ce=y(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),C=o.use,le=Object.defineProperty,w=(e,t)=>le(e,`name`,{value:t,configurable:!0});function ue(e){let t=e+`CollectionProvider`,[n,r]=d(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=w(e=>{let{scope:t,children:n}=e,r=o.useRef(null),a=o.useRef(new Map).current;return(0,s.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);c.displayName=t;let l=e+`CollectionSlot`,u=b(l),f=o.forwardRef((e,t)=>
1{let{scope:n,children:r}=e,i=_(t,a(l,n).collectionRef);return(0,s.jsx)(u,{ref:i,children:r})});f.displayName=l;let p=e+`CollectionItemSlot`,m=`data-radix-collection-item`,h=b(p),g=o.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,c=o.useRef(null),l=_(t,c),u=a(p,n);return o.useEffect(()=>(u.itemMap.set(c,{ref:c,...i}),()=>void u.itemMap.delete(c))),(0,s.jsx)(h,{[m]:``,ref:l,children:r})});g.displayName=p;function v(t){let n=a(e+`CollectionConsumer`,t);return o.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${m}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return w(v,`useCollection`),[{Provider:c,Slot:f,ItemSlot:g},v,r]}w(ue,`createCollection`);var de=new WeakMap,T=class e extends Map{static{w(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],de.set(this,!0)}set(e,t){return de.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=this.#e.length,a=D(e),o=a>=0?a:i+a,s=o<0||o>=i?-1:o;if(s===this.size||r&&s===this.size-1||s===-1)return this.set(t,n),this;let c=this.size+ +!r;a<0&&o++;let l=[...this.#e],u,d=!1;for(let e=o;e<c;e++)if(o===e){let i=l[e];l[e]===t&&(i=l[e+1]),r&&this.delete(t),u=this.get(i),this.set(t,n)}else{!d&&l[e-1]===t&&(d=!0);let n=l[d?e:e-1],r=u;u=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=E(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=E(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return E(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=r===0&&e.length===1?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&e.length===1?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(t===void 0)return r;t<0&&(t+=this.size),n!==void 0&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function E(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=fe(e,t);return n===-1?void 0:e[n]}w(E,`at`);function fe(e,t){let n=e.length,r=D(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}w(fe,`toSafeIndex`);function D(e){return e!==e||e===0?0:Math.trunc(e)}w(D,`toSafeInteger`);function pe(e){let t=e+`CollectionProvider`,[n,r]=d(t),[i,a]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new T,setItemMap:w(()=>void 0,`setItemMap`)}),c=w(({state:e,...t})=>e?(0,s.jsx)(u,{...t,state:e}):(0,s.jsx)(l,{...t}),`CollectionProvider`);c.displayName=t;let l=w(e=>{let t=y();return(0,s.jsx)(u,{...e,state:t})},`CollectionInit`);l.displayName=t+`Init`;let u=w(e=>{let{scope:t,children:n,state:r}=e,a=o.useRef(null),[c,l]=o.useState(null),u=_(a,l),[d,f]=r;return o.useEffect(()=>{if(!c)return;let e=ge(()=>{});return e.observe(c,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[c]),(0,s.jsx)(i,{scope:t,itemMap:d,setItemMap:f,collectionRef:u,collectionRefObject:a,collectionElement:c,children:n})},`CollectionProviderImpl`);u.displayName=t+`Impl`;let f=e+`CollectionSlot`,p=b(f),m=o.forwardRef((e,t)=>
1{let{scope:n,children:r}=e,i=_(t,a(f,n).collectionRef);return(0,s.jsx)(p,{ref:i,children:r})});m.displayName=f;let h=e+`CollectionItemSlot`,g=b(h),v=o.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,c=o.useRef(null),[l,u]=o.useState(null),d=_(t,c,u),{setItemMap:f}=a(h,n),p=o.useRef(i);me(p.current,i)||(p.current=i);let m=p.current;return o.useEffect(()=>{let e=m;return f(t=>l?t.has(l)?t.set(l,{...e,element:l}).toSorted(O):(t.set(l,{...e,element:l}),t.toSorted(O)):t),()=>{f(e=>!l||!e.has(l)?e:(e.delete(l),new T(e)))}},[l,m,f]),(0,s.jsx)(g,{"data-radix-collection-item":``,ref:d,children:r})});v.displayName=h;function y(){return o.useState(new T)}w(y,`useInitCollection`);function x(t){let{itemMap:n}=a(e+`CollectionConsumer`,t);return n}return w(x,`useCollection`),[{Provider:c,Slot:m,ItemSlot:v},{createCollectionScope:r,useCollection:x,useInitCollection:y}]}w(pe,`createCollection`);function me(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}w(me,`shallowEqual`);function he(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}w(he,`isElementPreceding`);function O(e,t){return!e[1].element||!t[1].element?0:he(e[1].element,t[1].element)?-1:1}w(O,`sortByDocumentPosition`);function ge(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}w(ge,`getChildListObserver`);var _e=Object.defineProperty,k=(e,t)=>_e(e,`name`,{value:t,configurable:!0}),ve=!!(typeof window<`u`&&window.document&&window.document.createElement);function A(e,t,{checkForDefaultPrevented:n=!0}={}){return k(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}k(A,`composeEventHandlers`);function ye(e){if(!ve)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}k(ye,`getOwnerWindow`);function j(e){if(!ve)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}k(j,`getOwnerDocument`);function be(e,t=!1){let{activeElement:n}=j(e);if(!n?.nodeName)return null;if(xe(n)&&n.contentDocument)return be(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=j(n).getElementById(e);if(t)return t}}return n}k(be,`getActiveElement`);function xe(e){return e.tagName===`IFRAME`}k(xe,`isFrame`);var M=globalThis?.document?o.useLayoutEffect:()=>{},Se=Object.defineProperty,Ce=(e,t)=>Se(e,`name`,{value:t,configurable:!0}),we=o.useEffectEvent,Te=o.useInsertionEffect;function Ee(e){if(typeof we==`function`)return we(e);let t=o.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof Te==`function`?Te(()=>{t.current=e}):M(()=>{t.current=e}),o.useMemo(()=>((...e)=>t.current?.(...e)),[])}Ce(Ee,`useEffectEvent`);var De=Object.defineProperty,N=(e,t)=>De(e,`name`,{value:t,configurable:!0}),Oe=o.useInsertionEffect||M;function P({prop:e,defaultProp:t,onChange:n=N(()=>{},`onChange`),caller:r}){let[i,a,s]=ke({defaultProp:t,onChange:n}),c=e!==void 0;return[c?e:i,o.useCallback(t=>{if(c){let n=Ae(t)?t(e):t;n!==e&&s.current?.(n)}else a(t)},[c,e,a,s])]}N(P,`useControllableState`);function ke({defaultProp:e,onChange:t}){let[n,r]=o.useState(e),i=o.useRef(n),a=o.useRef(t);return Oe(()=>{a.current=t},[t]),o.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}N(ke,`useUncontrolledState`);function Ae(e){return typeof e==`function`}N(Ae,`isFunction`);var je=Symbol(`RADIX:SYNC_STATE`);function Me(e,t,n,r){let{prop:i,defaultProp:a,onChange:s,caller:c}=t,l=i!==void 0,u=Ee(s),d=[{...n,state:a}];r&&d.push(r);let[f,p]=o.useReducer((t,n)=>{if(n.type===je)return{...t,state:n.state};let r=e(t,n);return l&&!Object.is(r.state,t.state)&&u(r.state),r},...d),m=f.state,h=o.useRef(m);o.useEffect(()=>{h.current!==m&&(h.current=m,l||u(m))},[m,h,l]);let g=o.useMemo(()=>i===void 0?f:{...f,state:i},[f,i]);return o.useEffect(()=>{l&&!Object.is(i,f.state)&&p({type:je,state:i})},[i,f.state,l]),[g,p]}N(Me,`useControllableStateReducer`);var Ne=e(n(),1),Pe=Object.defineProperty,F=(e,t)=>Pe(e,`name`,{value:t,configurable:!0});
1function Fe(e){let t=o.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,s=!1,c=[];I(r)&&typeof L==`function`&&(r=L(r._payload)),o.Children.forEach(r,e=>{if(Ve(e)){s=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;I(n)&&typeof L==`function`&&(n=L(n._payload)),a=Re(t,n),c.push(a?.props?.children)}else c.push(e)}),a?a=o.cloneElement(a,void 0,c):!s&&o.Children.count(r)===1&&o.isValidElement(r)&&(a=r);let l=a?Be(a):void 0,u=_(n,l);if(!a){if(r||r===0)throw Error(s?Ge(e):We(e));return r}let d=ze(i,a.props??{});return a.type!==o.Fragment&&(d.ref=n?u:l),o.cloneElement(a,d)});return t.displayName=`${e}.Slot`,t}F(Fe,`createSlot`);var Ie=Symbol.for(`radix.slottable`);function Le(e){let t=F(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=Ie,t}F(Le,`createSlottable`);var Re=F((e,t)=>{if(`child`in e.props){let t=e.props.child;return o.isValidElement(t)?o.cloneElement(t,void 0,e.props.children(t.props.children)):null}return o.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function ze(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}F(ze,`mergeProps`);function Be(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}F(Be,`getElementRef`);function Ve(e){return o.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Ie}F(Ve,`isSlottable`);var He=Symbol.for(`react.lazy`);function I(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===He&&`_payload`in e&&Ue(e._payload)}F(I,`isLazyComponent`);function Ue(e){return typeof e==`object`&&!!e&&`then`in e}F(Ue,`isPromiseLike`);var We=F(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Ge=F(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),L=o.use,Ke=Object.defineProperty,qe=(e,t)=>Ke(e,`name`,{value:t,configurable:!0}),R=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Fe(`Primitive.${t}`),r=o.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,s.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Je(e,t){e&&Ne.flushSync(()=>e.dispatchEvent(t))}qe(Je,`dispatchDiscreteCustomEvent`);var Ye=Object.defineProperty,z=(e,t)=>Ye(e,`name`,{value:t,configurable:!0});function Xe(e,t){return o.useReducer((e,n)=>t[e][n]??e,e)}z(Xe,`useStateMachine`);var Ze=z(e=>{let{present:t,children:n}=e,r=Qe(t),i=typeof n==`function`?n({present:r.isPresent}):o.Children.only(n),a=$e(r.ref,et(i));return typeof n==`function`||r.isPresent?o.cloneElement(i,{ref:a}):null},`Presence`);function Qe(e){let[t,n]=o.useState(),r=o.useRef(null),i=o.useRef(e),a=o.useRef(`none`),s=o.useRef(void 0),[c,l]=Xe(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return o.useEffect(()=>{c===`mounted`?(a.current=s.current??V(r.current),s.current=void 0):a.current=`none`},[c]),M(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=V(t);e?(s.current=o,l(`MOUNT`)):o===`none`||t?.display===`none`?l(`UNMOUNT`):l(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,l]),M(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=z(a=>{let o=V(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(l(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=z(e=>{e.target===t&&(a.current=V(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}l(`ANIMATION_END`)},[t,l]),{isPresent:[`mounted`,`unmountSuspended`].includes(c),ref:o.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,s.current=V(t)}else r.current=null;n(e)},[])}}z(Qe,`usePresence`);function B(e,t){if(typeof e==`function`)return e(t);
1e!=null&&(e.current=t)}z(B,`setRef`);function $e(...e){let t=o.useRef(e);return t.current=e,o.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=B(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():B(n[e],null)}}},[])}z($e,`useStableComposedRefs`);function V(e){return e?.animationName||`none`}z(V,`getAnimationName`);function et(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}z(et,`getElementRef`);var tt=Object.defineProperty,nt=(e,t)=>tt(e,`name`,{value:t,configurable:!0}),rt=o.useId||(()=>void 0),it=0;function H(e){let[t,n]=o.useState(rt());return M(()=>{e||n(e=>e??String(it++))},[e]),e||(t?`radix-${t}`:``)}nt(H,`useId`);var at=Object.defineProperty,U=(e,t)=>at(e,`name`,{value:t,configurable:!0}),W=`Collapsible`,[ot,st]=d(W),[ct,G]=ot(W),lt=o.forwardRef(U(function(e,t){let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:c,...l}=e,[u,d]=P({prop:r,defaultProp:i??!1,onChange:c,caller:W});return(0,s.jsx)(ct,{scope:n,disabled:a,contentId:H(),open:u,onOpenToggle:o.useCallback(()=>d(e=>!e),[d]),children:(0,s.jsx)(R.div,{"data-state":K(u),"data-disabled":a?``:void 0,...l,ref:t})})},`Collapsible`)),ut=`CollapsibleTrigger`,dt=o.forwardRef(U(function(e,t){let{__scopeCollapsible:n,...r}=e,i=G(ut,n);return(0,s.jsx)(R.button,{type:`button`,"aria-controls":i.open?i.contentId:void 0,"aria-expanded":i.open||!1,"data-state":K(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:A(e.onClick,i.onOpenToggle)})},`CollapsibleTrigger`)),ft=`CollapsibleContent`,pt=o.forwardRef(U(function(e,t){let{forceMount:n,...r}=e,i=G(ft,e.__scopeCollapsible);return(0,s.jsx)(Ze,{present:n||i.open,children:({present:e})=>(0,s.jsx)(mt,{...r,ref:t,present:e})})},`CollapsibleContent`)),mt=o.forwardRef(U(function(e,t){let{__scopeCollapsible:n,present:r,children:i,...a}=e,c=G(ft,n),[l,u]=o.useState(r),d=o.useRef(null),f=_(t,d),p=o.useRef(0),m=p.current,h=o.useRef(0),g=h.current,v=c.open||l,y=o.useRef(v),b=o.useRef(void 0);return o.useEffect(()=>{let e=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(e)},[]),M(()=>{let e=d.current;if(e){b.current=b.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();p.current=t.height,h.current=t.width,y.current||(e.style.transitionDuration=b.current.transitionDuration,e.style.animationName=b.current.animationName),u(r)}},[c.open,r]),(0,s.jsx)(R.div,{"data-state":K(c.open),"data-disabled":c.disabled?``:void 0,id:c.contentId,hidden:!v,...a,ref:f,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...e.style},children:v&&i})},`CollapsibleContentImpl`));function K(e){return e?`open`:`closed`}U(K,`getState`);var ht=lt,gt=dt,_t=pt,vt=Object.defineProperty,yt=(e,t)=>vt(e,`name`,{value:t,configurable:!0}),bt=o.createContext(void 0);function xt(e){let t=o.useContext(bt);return e||t||`ltr`}yt(xt,`useDirection`);var St=Object.defineProperty,q=(e,t)=>St(e,`name`,{value:t,configurable:!0}),J=`Accordion`,Ct=[`Home`,`End`,`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`],[Y,wt,Tt]=ue(J),[X,Et]=d(J,[Tt,st]),Z=st(),Dt=o.forwardRef(q(function(e,t){let{type:n,...r}=e,i=r,a=r;return(0,s.jsx)(Y.Provider,{scope:e.__scopeAccordion,children:n===`multiple`?(0,s.jsx)(Nt,{...a,ref:t}):(0,s.jsx)(Mt,{...i,ref:t})})},`Accordion`)),[Ot,kt]=X(J),[At,jt]=X(J,{collapsible:!1}),Mt=o.forwardRef(q(function(e,t){let{value:n,defaultValue:r,onValueChange:i=q(()=>{},`onValueChange`),collapsible:a=!1,...c}=e,[l,u]=P({prop:n,defaultProp:r??``,onChange:i,caller:J});return(0,s.jsx)(Ot,{scope:e.__scopeAccordion,value:o.useMemo(()=>l?[l]:[],[l]),onItemOpen:u,onItemClose:o.useCallback(()=>a&&u(``),[a,u]),children:(0,s.jsx)(At,{scope:e.__scopeAccordion,collapsible:a,children:(0,s.jsx)(Ft,{...c,ref:t})})})},`AccordionImplSingle`)),Nt=o.forwardRef(q(function(e,t){let{value:n,defaultValue:r,onValueChange:i=q(()=>{},`onValueChange`),...a}=e,[c,l]=P({prop:n,defaultProp:r??[],onChange:i,caller:J}),u=o.useCallback(e=>l((t=[])=>[...t,e]),[l]),d=o.useCallback(e=>l((t=[])=>t.filter(t=>t!==e)),[l]);return(0,s.jsx)(Ot,{scope:e.__scopeAccordion,value:c,onItemOpen:u,onItemClose:d,children:(0,s.jsx)(At,{scope:e.__scopeAccordion,collapsible:!0,children:(0,s.jsx)(Ft,{...a,ref:t})})})},`AccordionImplMultiple`)),[Pt,Q]=X(J),Ft=o.forwardRef(q(function(e,t){let{__scopeAccordion:n,disabled:r,dir:i,orientation:a=`vertical`,...c}=e,l=_(o.useRef(null),t),u=wt(n),d=xt(i)===`ltr`,f=A(e.onKeyDown,e=>
1{if(!Ct.includes(e.key))return;let t=e.target,n=u().filter(e=>!e.ref.current?.disabled),r=n.findIndex(e=>e.ref.current===t),i=n.length;if(r===-1)return;e.preventDefault();let o=r,s=i-1,c=q(()=>{o=r+1,o>s&&(o=0)},`moveNext`),l=q(()=>{o=r-1,o<0&&(o=s)},`movePrev`);switch(e.key){case`Home`:o=0;break;case`End`:o=s;break;case`ArrowRight`:a===`horizontal`&&(d?c():l());break;case`ArrowDown`:a===`vertical`&&c();break;case`ArrowLeft`:a===`horizontal`&&(d?l():c());break;case`ArrowUp`:a===`vertical`&&l()}n[o%i].ref.current?.focus()});return(0,s.jsx)(Pt,{scope:n,disabled:r,direction:i,orientation:a,children:(0,s.jsx)(Y.Slot,{scope:n,children:(0,s.jsx)(R.div,{...c,"data-orientation":a,ref:l,onKeyDown:r?void 0:f})})})},`AccordionImpl`)),$=`AccordionItem`,[It,Lt]=X($),Rt=o.forwardRef(q(function(e,t){let{__scopeAccordion:n,value:r,...i}=e,a=Q($,n),o=kt($,n),c=Z(n),l=H(),u=r&&o.value.includes(r)||!1,d=a.disabled||e.disabled;return(0,s.jsx)(It,{scope:n,open:u,disabled:d,triggerId:l,children:(0,s.jsx)(ht,{"data-orientation":a.orientation,"data-state":Gt(u),...c,...i,ref:t,disabled:d,open:u,onOpenChange:e=>{e?o.onItemOpen(r):o.onItemClose(r)}})})},`AccordionItem`)),zt=`AccordionHeader`,Bt=o.forwardRef(q(function(e,t){let{__scopeAccordion:n,...r}=e,i=Q(J,n),a=Lt(zt,n);return(0,s.jsx)(R.h3,{"data-orientation":i.orientation,"data-state":Gt(a.open),"data-disabled":a.disabled?``:void 0,...r,ref:t})},`AccordionHeader`)),Vt=`AccordionTrigger`,Ht=o.forwardRef(q(function(e,t){let{__scopeAccordion:n,...r}=e,i=Q(J,n),a=Lt(Vt,n),o=jt(Vt,n),c=Z(n);return(0,s.jsx)(Y.ItemSlot,{scope:n,children:(0,s.jsx)(gt,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...c,...r,ref:t})})},`AccordionTrigger`)),Ut=`AccordionContent`,Wt=o.forwardRef(q(function(e,t){let{__scopeAccordion:n,...r}=e,i=Q(J,n),a=Lt(Ut,n),o=Z(n);return(0,s.jsx)(_t,{role:`region`,"aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":`var(--radix-collapsible-content-height)`,"--radix-accordion-content-width":`var(--radix-collapsible-content-width)`,...e.style}})},`AccordionContent`));function Gt(e){return e?`open`:`closed`}q(Gt,`getState`);var Kt=Dt,qt=Rt,Jt=Bt,Yt=Ht,Xt=Wt,Zt=Kt,Qt=o.forwardRef(({className:e,...t},n)=>(0,s.jsx)(qt,{ref:n,className:a(`border-b`,e),...t}));Qt.displayName=`AccordionItem`;var $t=o.forwardRef(({className:e,children:t,...n},r)=>(0,s.jsx)(Jt,{className:`flex`,children:(0,s.jsxs)(Yt,{ref:r,type:`button`,className:a(`flex flex-1 items-center justify-between py-4 font-medium transition-all [&[data-state=open]>svg]:rotate-180`,e),...n,children:[t,(0,s.jsx)(i,{className:`h-4 w-4 shrink-0 transition-transform duration-200`})]})}));$t.displayName=Yt.displayName;var en=o.forwardRef(({className:e,children:t,...n},r)=>(0,s.jsx)(Xt,{ref:r,className:`overflow-hidden text-sm transition-all data-[state=closed]:h-0 data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down`,...n,children:(0,s.jsx)(`div`,{className:a(`pb-4 pt-0`,e),children:t})}));en.displayName=Xt.displayName;export{$t as i,en as n,Qt as r,Zt 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.