PageSourceSearch

https://slovicka-z-tabule.macaly.app/assets/lessons._id-DohTf65d.js

js slovicka-z-tabule.macaly.app collected 2026-10-03 04:59:28 UTC 106,658 bytes, 45 lines download raw bytes

vendor: 4,848 bytes, line 1
1import{g as l,j as i,R as Ne,a as Qn,r as yt,b as Ko,o as Xe,l as Ke,c as Yo,m as Xo,L as Ut}from"./index-C85f1AT8.js";import{a as se,C as pe,A as qo}from"./card-BE0rv6DZ.js";import{A as Sn}from"./app-header-CkdO2Dh7.js";import{b as G,u as W,a as Oe,c as Z,B as te}from"./mascot-DcGQbnxF.js";import{B as at}from"./badge-Dz8vYgS9.js";import{X as Go}from"./x-BIwCmcOc.js";import{a as Ge,c as Zo}from"./index-B67xpBGK.js";import{I as Cn}from"./input-C5SoR5uG.js";import{T as It}from"./textarea-L7VVpylV.js";import{L as Ie}from"./label-7yR_Sk9c.js";import{C as nn}from"./check-Ccw3dRUG.js";import{f as Nn}from"./format-Dl4Xl_50.js";import{L as Qo}from"./language-badge-DBD1xfnM.js";import{a as Jo}from"./languages-mpaHQyyW.js";import{U as Jn,P as es}from"./users-CpziNkDE.js";import{L as ut}from"./loader-circle-DK58xUzj.js";import{C as En}from"./circle-alert-BBmA6UgA.js";import{C as ts}from"./chevron-left-D3weigqo.js";import{T as Pn}from"./trash-2-kidPkDNM.js";import{R as ns}from"./repeat-BGkwshSj.js";import{C as rs,M as os}from"./messages-square-adVGi23C.js";import{B as ss}from"./book-open-B0s53RwT.js";import{S as is}from"./user-DpXWtx2H.js";import"./auth_helpers-DV8vHpKc.js";var as=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],cs=as.reduce((e,t)=>{const n=G(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:c,...a}=o,u=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(u,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),er=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),ls="VisuallyHidden",ds=l.forwardRef((e,t)=>i.jsx(cs.span,{...e,ref:t,style:{...er,...e.style}}));ds.displayName=ls;function us(e){const t=e+"CollectionProvider",[n,r]=Ge(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=d=>{const{scope:g,children:y}=d,x=Ne.useRef(null),b=Ne.useRef(new Map).current;return i.jsx(o,{scope:g,itemMap:b,collectionRef:x,children:y})};c.displayName=t;const a=e+"CollectionSlot",u=G(a),f=Ne.forwardRef((d,g)=>{const{scope:y,children:x}=d,b=s(a,y),N=W(g,b.collectionRef);return i.jsx(u,{ref:N,children:x})});f.displayName=a;const m=e+"CollectionItemSlot",p="data-radix-collection-item",v=G(m),h=Ne.forwardRef((d,g)=>{const{scope:y,children:x,...b}=d,N=Ne.useRef(null),S=W(g,N),E=s(m,y);return Ne.useEffect(()=>(E.itemMap.set(N,{ref:N,...b}),()=>void E.itemMap.delete(N))),i.jsx(v,{[p]:"",ref:S,children:x})});h.displayName=m;function w(d){const g=s(e+"CollectionConsumer",d);return Ne.useCallback(()=>{const x=g.collectionRef.current;if(!x)return[];const b=Array.from(x.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((E,C)=>b.indexOf(E.ref.current)-b.indexOf(C.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:f,ItemSlot:h},w,r]}function L(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var U=globalThis?.document?l.useLayoutEffect:()=>{},fs=Qn[" useInsertionEffect ".trim().toString()]||U;function ft({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,c]=ms({defaultProp:t,onChange:n}),a=e!==void 0,u=a?e:o;{const m=l.useRef(e!==void 0);l.useEffect(()=>{const p=m.current;p!==a&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=a},[a,r])}const f=l.useCallback(m=>{if(a){const p=ps(m)?m(e):m;p!==e&&c.current?.(p)}else s(m)},[a,e,s,c]);return[u,f]}function ms({defaultProp:e,onChange:t}){const[n,r]=l.useState(e),o=l.useRef(n),s=l.useRef(t);return fs(()=>{s.current=t},[t]),l.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function ps(e){return typeof e=="function"}function hs(e,t){return l.useReducer((n,r)=>t[n][r]??n,e)}var Ze=e=>{const{present:t,children:n}=e,r=vs(t),o=typeof n=="function"?n({present:r.isPresent}):l.Children.only(n),s=W(r.ref,gs(o));return typeof n=="function"||r.isPresent?l.cloneElement(o,{ref:s}):null};Ze.displayName="Presence";function vs(e){const[t,n]=l.useState(),r=l.useRef(null),o=l.useRef(e),s=l.useRef("none"),c=e?"mounted":"unmounted",[a,u]=hs(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const f=et(r.current);s.current=a==="mounted"?f:"none"},[a]),U(()=>{const f=r.current,m=o.current;if(m!==e){const v=s.current,h=et(f);e?u("MOUNT"):h==="none"||f?.display==="none"?u("UNMOUNT"):u(m&&v!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),U(()=>
vendor: 4,359 bytes, line 1
1{if(t){let f;const m=t.ownerDocument.defaultView??window,p=h=>{const d=et(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&d&&(u("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",f=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},v=h=>{h.target===t&&(s.current=et(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{m.clearTimeout(f),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:l.useCallback(f=>{r.current=f?getComputedStyle(f):null,n(f)},[])}}function et(e){return e?.animationName||"none"}function gs(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)}var xs=Qn[" useId ".trim().toString()]||(()=>{}),ys=0;function Le(e){const[t,n]=l.useState(xs());return U(()=>{n(r=>r??String(ys++))},[e]),e||(t?`radix-${t}`:"")}var ws=l.createContext(void 0);function bs(e){const t=l.useContext(ws);return e||t||"ltr"}var Ss=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],tr=Ss.reduce((e,t)=>{const n=G(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:c,...a}=o,u=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(u,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Cs(e,t){e&&yt.flushSync(()=>e.dispatchEvent(t))}function Pe(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>t.current?.(...n),[])}function Ns(e,t=globalThis?.document){const n=Pe(e);l.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Es="DismissableLayer",Kt="dismissableLayer.update",Ps="dismissableLayer.pointerDownOutside",Rs="dismissableLayer.focusOutside",Rn,nr=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rn=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:c,onDismiss:a,...u}=e,f=l.useContext(nr),[m,p]=l.useState(null),v=m?.ownerDocument??globalThis?.document,[,h]=l.useState({}),w=W(t,C=>p(C)),d=Array.from(f.layers),[g]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),y=d.indexOf(g),x=m?d.indexOf(m):-1,b=f.layersWithOutsidePointerEventsDisabled.size>0,N=x>=y,S=Ts(C=>{const j=C.target,k=[...f.branches].some(T=>T.contains(j));!N||k||(o?.(C),c?.(C),C.defaultPrevented||a?.())},v),E=Os(C=>{const j=C.target;[...f.branches].some(T=>T.contains(j))||(s?.(C),c?.(C),C.defaultPrevented||a?.())},v);return Ns(C=>{x===f.layers.size-1&&(r?.(C),!C.defaultPrevented&&a&&(C.preventDefault(),a()))},v),l.useEffect(()=>{if(m)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Rn=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(m)),f.layers.add(m),jn(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Rn)}},[m,v,n,f]),l.useEffect(()=>()=>{m&&(f.layers.delete(m),f.layersWithOutsidePointerEventsDisabled.delete(m),jn())},[m,f]),l.useEffect(()=>{const C=()=>h({});return document.addEventListener(Kt,C),()=>document.removeEventListener(Kt,C)},[]),i.jsx(tr.div,{...u,ref:w,style:{pointerEvents:b?N?"auto":"none":void 0,...e.style},onFocusCapture:L(e.onFocusCapture,E.onFocusCapture),onBlurCapture:L(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:L(e.onPointerDownCapture,S.onPointerDownCapture)})});rn.displayName=Es;var js="DismissableLayerBranch",As=l.forwardRef((e,t)=>{const n=l.useContext(nr),r=l.useRef(null),o=W(t,r);return l.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),i.jsx(tr.div,{...e,ref:o})});As.displayName=js;function Ts(e,t=globalThis?.document){const n=Pe(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const s=a=>
vendor: 4,739 bytes, line 1
1{if(a.target&&!r.current){let u=function(){rr(Ps,n,f,{discrete:!0})};const f={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Os(e,t=globalThis?.document){const n=Pe(e),r=l.useRef(!1);return l.useEffect(()=>{const o=s=>{s.target&&!r.current&&rr(Rs,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function jn(){const e=new CustomEvent(Kt);document.dispatchEvent(e)}function rr(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Cs(o,s):o.dispatchEvent(s)}var ks=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Is=ks.reduce((e,t)=>{const n=G(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:c,...a}=o,u=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(u,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Dt="focusScope.autoFocusOnMount",_t="focusScope.autoFocusOnUnmount",An={bubbles:!1,cancelable:!0},Ds="FocusScope",on=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...c}=e,[a,u]=l.useState(null),f=Pe(o),m=Pe(s),p=l.useRef(null),v=W(t,d=>u(d)),h=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let d=function(b){if(h.paused||!a)return;const N=b.target;a.contains(N)?p.current=N:he(p.current,{select:!0})},g=function(b){if(h.paused||!a)return;const N=b.relatedTarget;N!==null&&(a.contains(N)||he(p.current,{select:!0}))},y=function(b){if(document.activeElement===document.body)for(const S of b)S.removedNodes.length>0&&he(a)};document.addEventListener("focusin",d),document.addEventListener("focusout",g);const x=new MutationObserver(y);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",g),x.disconnect()}}},[r,a,h.paused]),l.useEffect(()=>{if(a){On.add(h);const d=document.activeElement;if(!a.contains(d)){const y=new CustomEvent(Dt,An);a.addEventListener(Dt,f),a.dispatchEvent(y),y.defaultPrevented||(_s(Fs(or(a)),{select:!0}),document.activeElement===d&&he(a))}return()=>{a.removeEventListener(Dt,f),setTimeout(()=>{const y=new CustomEvent(_t,An);a.addEventListener(_t,m),a.dispatchEvent(y),y.defaultPrevented||he(d??document.body,{select:!0}),a.removeEventListener(_t,m),On.remove(h)},0)}}},[a,f,m,h]);const w=l.useCallback(d=>{if(!n&&!r||h.paused)return;const g=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,y=document.activeElement;if(g&&y){const x=d.currentTarget,[b,N]=Ms(x);b&&N?!d.shiftKey&&y===N?(d.preventDefault(),n&&he(b,{select:!0})):d.shiftKey&&y===b&&(d.preventDefault(),n&&he(N,{select:!0})):y===x&&d.preventDefault()}},[n,r,h.paused]);return i.jsx(Is.div,{tabIndex:-1,...c,ref:v,onKeyDown:w})});on.displayName=Ds;function _s(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(he(r,{select:t}),document.activeElement!==n)return}function Ms(e){const t=or(e),n=Tn(t,e),r=Tn(t.reverse(),e);return[n,r]}function or(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Tn(e,t){for(const n of e)if(!Ls(n,{upTo:t}))return n}function Ls(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 $s(e){return e instanceof HTMLInputElement&&"select"in e}function he(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&$s(e)&&t&&e.select()}}var On=zs();function zs(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=kn(e,t),e.unshift(t)},remove(t){e=kn(e,t),e[0]?.resume()}}}function kn(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Fs(e){return e.filter(t=>t.tagName!=="A")}var Bs=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ws=Bs.reduce((e,t)=>
vendor: 6,951 bytes, lines 1-16
1{const n=G(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:c,...a}=o,u=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(u,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Hs="Portal",sn=l.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=l.useState(!1);U(()=>s(!0),[]);const c=n||o&&globalThis?.document?.body;return c?Ko.createPortal(i.jsx(Ws.div,{...r,ref:t}),c):null});sn.displayName=Hs;var Vs=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Qe=Vs.reduce((e,t)=>{const n=G(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:c,...a}=o,u=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(u,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Mt=0;function sr(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??In()),document.body.insertAdjacentElement("beforeend",e[1]??In()),Mt++,()=>{Mt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Mt--}},[])}function In(){const 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 ie=function(){return ie=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},ie.apply(this,arguments)};function ir(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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Us(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var ct="right-scroll-bar-position",lt="width-before-scroll-bar",Ks="with-scroll-bars-hidden",Ys="--removed-body-scroll-bar-size";function Lt(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Xs(e,t){var n=l.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var qs=typeof window<"u"?l.useLayoutEffect:l.useEffect,Dn=new WeakMap;function Gs(e,t){var n=Xs(null,function(r){return e.forEach(function(o){return Lt(o,r)})});return qs(function(){var r=Dn.get(n);if(r){var o=new Set(r),s=new Set(e),c=n.current;o.forEach(function(a){s.has(a)||Lt(a,null)}),s.forEach(function(a){o.has(a)||Lt(a,c)})}Dn.set(n,e)},[e]),n}function Zs(e){return e}function Qs(e,t){t===void 0&&(t=Zs);var n=[],r=!1,o={read:function(){if(r)throw new 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(s){var c=t(s,r);return n.push(c),function(){n=n.filter(function(a){return a!==c})}},assignSyncMedium:function(s){for(r=!0;n.length;){var c=n;n=[],c.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var c=[];if(n.length){var a=n;n=[],a.forEach(s),c=n}var u=function(){var m=c;c=[],m.forEach(s)},f=function(){return Promise.resolve().then(u)};f(),n={push:function(m){c.push(m),f()},filter:function(m){return c=c.filter(m),n}}}};return o}function Js(e){e===void 0&&(e={});var t=Qs(null);return t.options=ie({async:!0,ssr:!1},e),t}var ar=function(e){var t=e.sideCar,n=ir(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return l.createElement(r,ie({},n))};ar.isSideCarExport=!0;function ei(e,t){return e.useMedium(t),ar}var cr=Js(),$t=function(){},wt=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:$t,onWheelCapture:$t,onTouchMoveCapture:$t}),o=r[0],s=r[1],c=e.forwardProps,a=e.children,u=e.className,f=e.removeScrollBar,m=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,w=e.noIsolation,d=e.inert,g=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,b=e.gapMode,N=ir(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,E=Gs([n,t]),C=ie(ie({},N),o);return l.createElement(l.Fragment,null,m&&l.createElement(S,{sideCar:cr,removeScrollBar:f,shards:p,noRelative:h,noIsolation:w,inert:d,setCallbacks:s,allowPinchZoom:!!g,lockRef:n,gapMode:b}),c?l.cloneElement(l.Children.only(a),ie(ie({},C),{ref:E})):l.createElement(x,ie({},C,{className:u,ref:E}),a))});wt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};wt.classNames={fullWidth:lt,zeroRight:ct};var ti=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ni(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ti();return t&&e.setAttribute("nonce",t),e}function ri(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function oi(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var si=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ni())&&(ri(t,n),oi(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ii=function(){var e=si();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},lr=function(){var e=ii(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},ai={left:0,top:0,right:0,gap:0},zt=function(e){return parseInt(e||"",10)||0},ci=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[zt(n),zt(r),zt(o)]},li=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ai;var t=ci(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])}},di=lr(),$e="data-scroll-locked",ui=function(e,t,n,r){var o=e.left,s=e.top,c=e.right,a=e.gap;return n===void 0&&(n="margin"),`
2  .`.concat(Ks,` {
3   overflow: hidden `).concat(r,`;
4   padding-right: `).concat(a,"px ").concat(r,`;
5  }
6  body[`).concat($e,`] {
7    overflow: hidden `).concat(r,`;
8    overscroll-behavior: contain;
9    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
10    padding-left: `.concat(o,`px;
11    padding-top: `).concat(s,`px;
12    padding-right: `).concat(c,`px;
13    margin-left:0;
14    margin-top:0;
15    margin-right: `).concat(a,"px ").concat(r,`;
16    `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
16")].filter(Boolean).join(""),`
17  }
18  
19  .`).concat(ct,` {
20    right: `).concat(a,"px ").concat(r,`;
21  }
22  
23  .`).concat(lt,` {
24    margin-right: `).concat(a,"px ").concat(r,`;
25  }
26  
27  .`).concat(ct," .").concat(ct,` {
28    right: 0 `).concat(r,`;
29  }
30  
31  .`).concat(lt," .").concat(lt,` {
32    margin-right: 0 `).concat(r,`;
33  }
34  
35  body[`).concat($e,`] {
36    `).concat(Ys,": ").concat(a,`px;
37  }
38`)},_n=function(){var e=parseInt(document.body.getAttribute($e)||"0",10);return isFinite(e)?e:0},fi=function(){l.useEffect(function(){return document.body.setAttribute($e,(_n()+1).toString()),function(){var e=_n()-1;e<=0?document.body.removeAttribute($e):document.body.setAttribute($e,e.toString())}},[])},mi=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;fi();var s=l.useMemo(function(){return li(o)},[o]);return l.createElement(di,{styles:ui(s,!t,o,n?"":"!important")})},Yt=!1;if(typeof window<"u")try{var tt=Object.defineProperty({},"passive",{get:function(){return Yt=!0,!0}});window.addEventListener("test",tt,tt),window.removeEventListener("test",tt,tt)}catch{Yt=!1}var De=Yt?{passive:!1}:!1,pi=function(e){return e.tagName==="TEXTAREA"},dr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!pi(e)&&n[t]==="visible")},hi=function(e){return dr(e,"overflowY")},vi=function(e){return dr(e,"overflowX")},Mn=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=ur(e,r);if(o){var s=fr(e,r),c=s[1],a=s[2];if(c>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},gi=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},xi=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ur=function(e,t){return e==="v"?hi(t):vi(t)},fr=function(e,t){return e==="v"?gi(t):xi(t)},yi=function(e,t){return e==="h"&&t==="rtl"?-1:1},wi=function(e,t,n,r,o){var s=yi(e,window.getComputedStyle(t).direction),c=s*r,a=n.target,u=t.contains(a),f=!1,m=c>0,p=0,v=0;do{if(!a)break;var h=fr(e,a),w=h[0],d=h[1],g=h[2],y=d-g-s*w;(w||y)&&ur(e,a)&&(p+=y,v+=w);var x=a.parentNode;a=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!u&&a!==document.body||u&&(t.contains(a)||t===a));return(m&&Math.abs(p)<1||!m&&Math.abs(v)<1)&&(f=!0),f},nt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ln=function(e){return[e.deltaX,e.deltaY]},$n=function(e){return e&&"current"in e?e.current:e},bi=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Si=function(e){return`
39  .block-interactivity-`.concat(e,` {pointer-events: none;}
40  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41`)},Ci=0,_e=[];function Ni(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(Ci++)[0],s=l.useState(lr)[0],c=l.useRef(e);l.useEffect(function(){c.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=Us([e.lockRef.current],(e.shards||[]).map($n),!0).filter(Boolean);return d.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=l.useCallback(function(d,g){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var y=nt(d),x=n.current,b="deltaX"in d?d.deltaX:x[0]-y[0],N="deltaY"in d?d.deltaY:x[1]-y[1],S,E=d.target,C=Math.abs(b)>Math.abs(N)?"h":"v";if("touches"in d&&C==="h"&&E.type==="range")return!1;var j=window.getSelection(),k=j&&j.anchorNode,T=k?k===E||k.contains(E):!1;if(T)return!1;var I=Mn(C,E);if(!I)return!0;if(I?S=C:(S=C==="v"?"h":"v",I=Mn(C,E)),!I)return!1;if(!r.current&&"changedTouches"in d&&(b||N)&&(r.current=S),!S)return!0;var _=r.current||S;return wi(_,g,d,_==="h"?b:N)},[]),u=l.useCallback(function(d){var g=d;if(!(!_e.length||_e[_e.length-1]!==s)){var y="deltaY"in g?Ln(g):nt(g),x=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&bi(S.delta,y)})[0];if(x&&x.should){g.cancelable&&g.preventDefault();return}
vendor: 4,335 bytes, line 41
41if(!x){var b=(c.current.shards||[]).map($n).filter(Boolean).filter(function(S){return S.contains(g.target)}),N=b.length>0?a(g,b[0]):!c.current.noIsolation;N&&g.cancelable&&g.preventDefault()}}},[]),f=l.useCallback(function(d,g,y,x){var b={name:d,delta:g,target:y,should:x,shadowParent:Ei(y)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(N){return N!==b})},1)},[]),m=l.useCallback(function(d){n.current=nt(d),r.current=void 0},[]),p=l.useCallback(function(d){f(d.type,Ln(d),d.target,a(d,e.lockRef.current))},[]),v=l.useCallback(function(d){f(d.type,nt(d),d.target,a(d,e.lockRef.current))},[]);l.useEffect(function(){return _e.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",u,De),document.addEventListener("touchmove",u,De),document.addEventListener("touchstart",m,De),function(){_e=_e.filter(function(d){return d!==s}),document.removeEventListener("wheel",u,De),document.removeEventListener("touchmove",u,De),document.removeEventListener("touchstart",m,De)}},[]);var h=e.removeScrollBar,w=e.inert;return l.createElement(l.Fragment,null,w?l.createElement(s,{styles:Si(o)}):null,h?l.createElement(mi,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ei(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Pi=ei(cr,Ni);var an=l.forwardRef(function(e,t){return l.createElement(wt,ie({},e,{ref:t,sideCar:Pi}))});an.classNames=wt.classNames;var Ri=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Me=new WeakMap,rt=new WeakMap,ot={},Ft=0,mr=function(e){return e&&(e.host||mr(e.parentNode))},ji=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=mr(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Ai=function(e,t,n,r){var o=ji(t,Array.isArray(e)?e:[e]);ot[n]||(ot[n]=new WeakMap);var s=ot[n],c=[],a=new Set,u=new Set(o),f=function(p){!p||a.has(p)||(a.add(p),f(p.parentNode))};o.forEach(f);var m=function(p){!p||u.has(p)||Array.prototype.forEach.call(p.children,function(v){if(a.has(v))m(v);else try{var h=v.getAttribute(r),w=h!==null&&h!=="false",d=(Me.get(v)||0)+1,g=(s.get(v)||0)+1;Me.set(v,d),s.set(v,g),c.push(v),d===1&&w&&rt.set(v,!0),g===1&&v.setAttribute(n,"true"),w||v.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",v,y)}})};return m(t),a.clear(),Ft++,function(){c.forEach(function(p){var v=Me.get(p)-1,h=s.get(p)-1;Me.set(p,v),s.set(p,h),v||(rt.has(p)||p.removeAttribute(r),rt.delete(p)),h||p.removeAttribute(n)}),Ft--,Ft||(Me=new WeakMap,Me=new WeakMap,rt=new WeakMap,ot={})}},pr=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Ri(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Ai(r,o,n,"aria-hidden")):function(){return null}},bt="Dialog",[hr]=Ge(bt),[Ti,oe]=hr(bt),vr=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:c=!0}=e,a=l.useRef(null),u=l.useRef(null),[f,m]=ft({prop:r,defaultProp:o??!1,onChange:s,caller:bt});return i.jsx(Ti,{scope:t,triggerRef:a,contentRef:u,contentId:Le(),titleId:Le(),descriptionId:Le(),open:f,onOpenChange:m,onOpenToggle:l.useCallback(()=>m(p=>!p),[m]),modal:c,children:n})};vr.displayName=bt;var gr="DialogTrigger",xr=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=oe(gr,n),s=W(t,o.triggerRef);return i.jsx(Qe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":dn(o.open),...r,ref:s,onClick:L(e.onClick,o.onOpenToggle)})});xr.displayName=gr;var cn="DialogPortal",[Oi,yr]=hr(cn,{forceMount:void 0}),wr=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=oe(cn,t);return i.jsx(Oi,{scope:t,forceMount:n,children:l.Children.map(r,c=>i.jsx(Ze,{present:n||s.open,children:i.jsx(sn,{asChild:!0,container:o,children:c})}))})};wr.displayName=cn;var mt="DialogOverlay",br=l.forwardRef((e,t)=>{const n=yr(mt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=oe(mt,e.__scopeDialog);return s.modal?i.jsx(Ze,{present:r||s.open,children:i.jsx(Ii,{...o,ref:t})}):null});br.displayName=mt;var ki=G("DialogOverlay.RemoveScroll"),Ii=l.forwardRef((e,t)=>
vendor: 4,359 bytes, lines 41-45
41{const{__scopeDialog:n,...r}=e,o=oe(mt,n);return i.jsx(an,{as:ki,allowPinchZoom:!0,shards:[o.contentRef],children:i.jsx(Qe.div,{"data-state":dn(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Re="DialogContent",Sr=l.forwardRef((e,t)=>{const n=yr(Re,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=oe(Re,e.__scopeDialog);return i.jsx(Ze,{present:r||s.open,children:s.modal?i.jsx(Di,{...o,ref:t}):i.jsx(_i,{...o,ref:t})})});Sr.displayName=Re;var Di=l.forwardRef((e,t)=>{const n=oe(Re,e.__scopeDialog),r=l.useRef(null),o=W(t,n.contentRef,r);return l.useEffect(()=>{const s=r.current;if(s)return pr(s)},[]),i.jsx(Cr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:L(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:L(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,a=c.button===0&&c.ctrlKey===!0;(c.button===2||a)&&s.preventDefault()}),onFocusOutside:L(e.onFocusOutside,s=>s.preventDefault())})}),_i=l.forwardRef((e,t)=>{const n=oe(Re,e.__scopeDialog),r=l.useRef(!1),o=l.useRef(!1);return i.jsx(Cr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=s.target;n.triggerRef.current?.contains(c)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Cr=l.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...c}=e,a=oe(Re,n),u=l.useRef(null),f=W(t,u);return sr(),i.jsxs(i.Fragment,{children:[i.jsx(on,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:i.jsx(rn,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":dn(a.open),...c,ref:f,onDismiss:()=>a.onOpenChange(!1)})}),i.jsxs(i.Fragment,{children:[i.jsx(Mi,{titleId:a.titleId}),i.jsx($i,{contentRef:u,descriptionId:a.descriptionId})]})]})}),ln="DialogTitle",Nr=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=oe(ln,n);return i.jsx(Qe.h2,{id:o.titleId,...r,ref:t})});Nr.displayName=ln;var Er="DialogDescription",Pr=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=oe(Er,n);return i.jsx(Qe.p,{id:o.descriptionId,...r,ref:t})});Pr.displayName=Er;var Rr="DialogClose",jr=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=oe(Rr,n);return i.jsx(Qe.button,{type:"button",...r,ref:t,onClick:L(e.onClick,()=>o.onOpenChange(!1))})});jr.displayName=Rr;function dn(e){return e?"open":"closed"}var Ar="DialogTitleWarning",[ql,Tr]=Zo(Ar,{contentName:Re,titleName:ln,docsSlug:"dialog"}),Mi=({titleId:e})=>{const t=Tr(Ar),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
42
43If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
44
45For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Li="DialogDescriptionWarning",$i=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Tr(Li).contentName}}.`;return l.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},zi=vr,Fi=xr,Bi=wr,Wi=br,Hi=Sr,Vi=Nr,Ui=Pr,Or=jr;function kr(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Ir(e){const[t,n]=l.useState(void 0);return U(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let c,a;if("borderBoxSize"in s){const u=s.borderBoxSize,f=Array.isArray(u)?u[0]:u;c=f.inlineSize,a=f.blockSize}else c=e.offsetWidth,a=e.offsetHeight;n({width:c,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ki=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],un=Ki.reduce((e,t)=>
vendor: 4,101 bytes, line 45
45{const n=G(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:c,...a}=o,u=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(u,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),St="Checkbox",[Yi]=Ge(St),[Xi,fn]=Yi(St);function qi(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:s,form:c,name:a,onCheckedChange:u,required:f,value:m="on",internal_do_not_use_render:p}=e,[v,h]=ft({prop:n,defaultProp:o??!1,onChange:u,caller:St}),[w,d]=l.useState(null),[g,y]=l.useState(null),x=l.useRef(!1),b=w?!!c||!!w.closest("form"):!0,N={checked:v,disabled:s,setChecked:h,control:w,setControl:d,name:a,form:c,value:m,hasConsumerStoppedPropagationRef:x,required:f,defaultChecked:ve(o)?!1:o,isFormControl:b,bubbleInput:g,setBubbleInput:y};return i.jsx(Xi,{scope:t,...N,children:Gi(p)?p(N):r})}var Dr="CheckboxTrigger",_r=l.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:s,value:c,disabled:a,checked:u,required:f,setControl:m,setChecked:p,hasConsumerStoppedPropagationRef:v,isFormControl:h,bubbleInput:w}=fn(Dr,e),d=W(o,m),g=l.useRef(u);return l.useEffect(()=>{const y=s?.form;if(y){const x=()=>p(g.current);return y.addEventListener("reset",x),()=>y.removeEventListener("reset",x)}},[s,p]),i.jsx(un.button,{type:"button",role:"checkbox","aria-checked":ve(u)?"mixed":u,"aria-required":f,"data-state":Br(u),"data-disabled":a?"":void 0,disabled:a,value:c,...r,ref:d,onKeyDown:L(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:L(n,y=>{p(x=>ve(x)?!0:!x),w&&h&&(v.current=y.isPropagationStopped(),v.current||y.stopPropagation())})})});_r.displayName=Dr;var Mr=l.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:s,required:c,disabled:a,value:u,onCheckedChange:f,form:m,...p}=e;return i.jsx(qi,{__scopeCheckbox:n,checked:o,defaultChecked:s,disabled:a,required:c,onCheckedChange:f,name:r,form:m,value:u,internal_do_not_use_render:({isFormControl:v})=>i.jsxs(i.Fragment,{children:[i.jsx(_r,{...p,ref:t,__scopeCheckbox:n}),v&&i.jsx(Fr,{__scopeCheckbox:n})]})})});Mr.displayName=St;var Lr="CheckboxIndicator",$r=l.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,s=fn(Lr,n);return i.jsx(Ze,{present:r||ve(s.checked)||s.checked===!0,children:i.jsx(un.span,{"data-state":Br(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});$r.displayName=Lr;var zr="CheckboxBubbleInput",Fr=l.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:s,defaultChecked:c,required:a,disabled:u,name:f,value:m,form:p,bubbleInput:v,setBubbleInput:h}=fn(zr,e),w=W(n,h),d=kr(s),g=Ir(r);l.useEffect(()=>{const x=v;if(!x)return;const b=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(b,"checked").set,E=!o.current;if(d!==s&&S){const C=new Event("click",{bubbles:E});x.indeterminate=ve(s),S.call(x,ve(s)?!1:s),x.dispatchEvent(C)}},[v,d,s,o]);const y=l.useRef(ve(s)?!1:s);return i.jsx(un.input,{type:"checkbox","aria-hidden":!0,defaultChecked:c??y.current,required:a,disabled:u,name:f,value:m,form:p,...t,tabIndex:-1,ref:w,style:{...t.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Fr.displayName=zr;function Gi(e){return typeof e=="function"}function ve(e){return e==="indeterminate"}function Br(e){return ve(e)?"indeterminate":e?"checked":"unchecked"}const Zi=["top","right","bottom","left"],ge=Math.min,X=Math.max,pt=Math.round,st=Math.floor,ce=e=>({x:e,y:e}),Qi={left:"right",right:"left",bottom:"top",top:"bottom"};function Xt(e,t,n){return X(e,ge(t,n))}function de(e,t){return typeof e=="function"?e(t):e}function ue(e){return e.split("-")[0]}function Be(e){return e.split("-")[1]}function mn(e){return e==="x"?"y":"x"}function pn(e){return e==="y"?"height":"width"}function ae(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function hn(e){return mn(ae(e))}function Ji(e,t,n){n===void 0&&(n=!1);const r=Be(e),o=hn(e),s=pn(o);let c=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>
vendor: 6,421 bytes, line 45
45t.floating[s]&&(c=ht(c)),[c,ht(c)]}function ea(e){const t=ht(e);return[qt(e),t,qt(t)]}function qt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const zn=["left","right"],Fn=["right","left"],ta=["top","bottom"],na=["bottom","top"];function ra(e,t,n){switch(e){case"top":case"bottom":return n?t?Fn:zn:t?zn:Fn;case"left":case"right":return t?ta:na;default:return[]}}function oa(e,t,n,r){const o=Be(e);let s=ra(ue(e),n==="start",r);return o&&(s=s.map(c=>c+"-"+o),t&&(s=s.concat(s.map(qt)))),s}function ht(e){const t=ue(e);return Qi[t]+e.slice(t.length)}function sa(e){return{top:0,right:0,bottom:0,left:0,...e}}function Wr(e){return typeof e!="number"?sa(e):{top:e,right:e,bottom:e,left:e}}function vt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Bn(e,t,n){let{reference:r,floating:o}=e;const s=ae(t),c=hn(t),a=pn(c),u=ue(t),f=s==="y",m=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,v=r[a]/2-o[a]/2;let h;switch(u){case"top":h={x:m,y:r.y-o.height};break;case"bottom":h={x:m,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:p};break;case"left":h={x:r.x-o.width,y:p};break;default:h={x:r.x,y:r.y}}switch(Be(t)){case"start":h[c]-=v*(n&&f?-1:1);break;case"end":h[c]+=v*(n&&f?-1:1);break}return h}async function ia(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:c,elements:a,strategy:u}=e,{boundary:f="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:v=!1,padding:h=0}=de(t,e),w=Wr(h),g=a[v?p==="floating"?"reference":"floating":p],y=vt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(g)))==null||n?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:f,rootBoundary:m,strategy:u})),x=p==="floating"?{x:r,y:o,width:c.floating.width,height:c.floating.height}:c.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),N=await(s.isElement==null?void 0:s.isElement(b))?await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1}:{x:1,y:1},S=vt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:b,strategy:u}):x);return{top:(y.top-S.top+w.top)/N.y,bottom:(S.bottom-y.bottom+w.bottom)/N.y,left:(y.left-S.left+w.left)/N.x,right:(S.right-y.right+w.right)/N.x}}const aa=50,ca=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:c}=n,a=c.detectOverflow?c:{...c,detectOverflow:ia},u=await(c.isRTL==null?void 0:c.isRTL(t));let f=await c.getElementRects({reference:e,floating:t,strategy:o}),{x:m,y:p}=Bn(f,r,u),v=r,h=0;const w={};for(let d=0;d<s.length;d++){const g=s[d];if(!g)continue;const{name:y,fn:x}=g,{x:b,y:N,data:S,reset:E}=await x({x:m,y:p,initialPlacement:r,placement:v,strategy:o,middlewareData:w,rects:f,platform:a,elements:{reference:e,floating:t}});m=b??m,p=N??p,w[y]={...w[y],...S},E&&h<aa&&(h++,typeof E=="object"&&(E.placement&&(v=E.placement),E.rects&&(f=E.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:m,y:p}=Bn(f,v,u)),d=-1)}return{x:m,y:p,placement:v,strategy:o,middlewareData:w}},la=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:c,elements:a,middlewareData:u}=t,{element:f,padding:m=0}=de(e,t)||{};if(f==null)return{};const p=Wr(m),v={x:n,y:r},h=hn(o),w=pn(h),d=await c.getDimensions(f),g=h==="y",y=g?"top":"left",x=g?"bottom":"right",b=g?"clientHeight":"clientWidth",N=s.reference[w]+s.reference[h]-v[h]-s.floating[w],S=v[h]-s.reference[h],E=await(c.getOffsetParent==null?void 0:c.getOffsetParent(f));let C=E?E[b]:0;(!C||!await(c.isElement==null?void 0:c.isElement(E)))&&(C=a.floating[b]||s.floating[w]);const j=N/2-S/2,k=C/2-d[w]/2-1,T=ge(p[y],k),I=ge(p[x],k),_=T,M=C-d[w]-I,O=C/2-d[w]/2+j,B=Xt(_,O,M),A=!u.arrow&&Be(o)!=null&&O!==B&&s.reference[w]/2-(O<_?T:I)-d[w]/2<0,D=A?O<_?O-_:O-M:0;return{[h]:v[h]+D,data:{[h]:B,centerOffset:O-B-D,...A&&{alignmentOffset:D}},reset:A}}}),da=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:c,initialPlacement:a,platform:u,elements:f}=t,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:v,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:d=!0,...g}=de(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=ue(o),x=ae(a),b=ue(a)===a,N=await(u.isRTL==null?void 0:u.isRTL(f.floating)),S=v||(b||!d?[ht(a)]:ea(a)),E=w!=="none";!v&&E&&S.push(...oa(a,d,w,N));const C=[a,...S],j=await u.detectOverflow(t,g),k=[];let T=((r=s.flip)==null?void 0:r.overflows)||[];if(m&&k.push(j[y]),p){const O=Ji(o,c,N);k.push(j[O[0]],j[O[1]])}if(T=[...T,{placement:o,overflows:k}],!k.every(O=>O<=0)){var I,_;const O=(((I=s.flip)==null?void 0:I.index)||0)+1,B=C[O];if(B&&(!(p==="alignment"?x!==ae(B):!1)||T.every(R=>ae(R.placement)===x?R.overflows[0]>0:!0)))return{data:{index:O,overflows:T},reset:{placement:B}};let A=(_=T.filter(D=>D.overflows[0]<=0).sort((D,R)=>D.overflows[1]-R.overflows[1])[0])==null?void 0:_.placement;if(!A)switch(h){case"bestFit":{var M;const D=(M=T.filter(R=>{if(E){const $=ae(R.placement);return $===x||$==="y"}return!0}).map(R=>[R.placement,R.overflows.filter($=>$>0).reduce(($,Y)=>$+Y,0)]).sort((R,$)=>R[1]-$[1])[0])==null?void 0:M[0];D&&(A=D);break}case"initialPlacement":A=a;break}if(o!==A)return{reset:{placement:A}}}return{}}}};function Wn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Hn(e){return Zi.some(t=>e[t]>=0)}const ua=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=de(e,t);switch(o){case"referenceHidden":{const c=await r.detectOverflow(t,{...s,elementContext:"reference"}),a=Wn(c,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Hn(a)}}}case"escaped":{const c=await r.detectOverflow(t,{...s,altBoundary:!0}),a=Wn(c,n.floating);return{data:{escapedOffsets:a,escaped:Hn(a)}}}default:return{}}}}},Hr=new Set(["left","top"]);async function fa(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),c=ue(n),a=Be(n),u=ae(n)==="y",f=Hr.has(c)?-1:1,m=s&&u?-1:1,p=de(t,e);let{mainAxis:v,crossAxis:h,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}
45:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof w=="number"&&(h=a==="end"?w*-1:w),u?{x:h*m,y:v*f}:{x:v*f,y:h*m}}const ma=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:c,middlewareData:a}=t,u=await fa(t,e);return c===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:s+u.y,data:{...u,placement:c}}}}},pa=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:c=!0,crossAxis:a=!1,limiter:u={fn:y=>{let{x,y:b}=y;return{x,y:b}}},...f}=de(e,t),m={x:n,y:r},p=await s.detectOverflow(t,f),v=ae(ue(o)),h=mn(v);let w=m[h],d=m[v];if(c){const y=h==="y"?"top":"left",x=h==="y"?"bottom":"right",b=w+p[y],N=w-p[x];w=Xt(b,w,N)}if(a){const y=v==="y"?"top":"left",x=v==="y"?"bottom":"right",b=d+p[y],N=d-p[x];d=Xt(b,d,N)}const g=u.fn({...t,[h]:w,[v]:d});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:c,[v]:a}}}}}},ha=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:c}=t,{offset:a=0,mainAxis:u=!0,crossAxis:f=!0}=de(e,t),m={x:n,y:r},p=ae(o),v=mn(p);let h=m[v],w=m[p];const d=de(a,t),g=typeof d=="number"?{mainAxis:d,crossAxis:0}:{mainAxis:0,crossAxis:0,...d};if(u){const b=v==="y"?"height":"width",N=s.reference[v]-s.floating[b]+g.mainAxis,S=s.reference[v]+s.reference[b]-g.mainAxis;h<N?h=N:h>S&&(h=S)}if(f){var y,x;const b=v==="y"?"width":"height",N=Hr.has(ue(o)),S=s.reference[p]-s.floating[b]+(N&&((y=c.offset)==null?void 0:y[p])||0)+(N?0:g.crossAxis),E=s.reference[p]+s.reference[b]+(N?0:((x=c.offset)==null?void 0:x[p])||0)-(N?g.crossAxis:0);w<S?w=S:w>E&&(w=E)}return{[v]:h,[p]:w}}}},va=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:c,elements:a}=t,{apply:u=()=>{},...f}=de(e,t),m=await c.detectOverflow(t,f),p=ue(o),v=Be(o),h=ae(o)==="y",{width:w,height:d}=s.floating;let g,y;p==="top"||p==="bottom"?(g=p,y=v===(await(c.isRTL==null?void 0:c.isRTL(a.floating))?"start":"end")?"left":"right"):(y=p,g=v==="end"?"top":"bottom");const x=d-m.top-m.bottom,b=w-m.left-m.right,N=ge(d-m[g],x),S=ge(w-m[y],b),E=!t.middlewareData.shift;let C=N,j=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=x),E&&!v){const T=X(m.left,0),I=X(m.right,0),_=X(m.top,0),M=X(m.bottom,0);h?j=w-2*(T!==0||I!==0?T+I:X(m.left,m.right)):C=d-2*(_!==0||M!==0?_+M:X(m.top,m.bottom))}await u({...t,availableWidth:j,availableHeight:C});const k=await c.getDimensions(a.floating);return w!==k.width||d!==k.height?{reset:{rects:!0}}:{}}}};function Ct(){return typeof window<"u"}function We(e){return Vr(e)?(e.nodeName||"").toLowerCase():"#document"}function q(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function le(e){var t;return(t=(Vr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Vr(e){return Ct()?e instanceof Node||e instanceof q(e).Node:!1}function ne(e){return Ct()?e instanceof Element||e instanceof q(e).Element:!1}function fe(e){return Ct()?e instanceof HTMLElement||e instanceof q(e).HTMLElement:!1}function Vn(e){return!Ct()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof q(e).ShadowRoot}function Je(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=re(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function ga(e){return/^(table|td|th)$/.test(We(e))}function Nt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const xa=/transform|translate|scale|rotate|perspective|filter/,ya=/paint|layout|strict|content/,Ee=e=>!!e&&e!=="none";let Bt;function vn(e){const t=ne(e)?re(e):e;return Ee(t.transform)||Ee(t.translate)||Ee(t.scale)||Ee(t.rotate)||Ee(t.perspective)||!gn()&&(Ee(t.backdropFilter)||Ee(t.filter))||xa.test(t.willChange||"")||ya.test(t.contain||"")}function wa(e){let t=xe(e);for(;fe(t)&&!Fe(t);){if(vn(t))return t;if(Nt(t))return null;t=xe(t)}return null}function gn(){return Bt==null&&(Bt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Bt}function Fe(e){return/^(html|body|#document)$/.test(We(e))}function re(e){return q(e).getComputedStyle(e)}function Et(e){return ne(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xe(e){if(We(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Vn(e)&&e.host||le(e);return Vn(t)?t.host:t}function Ur(e){const t=xe(e);return Fe(t)?e.ownerDocument?e.ownerDocument.body:e.body:fe(t)&&Je(t)?t:Ur(t)}function qe(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ur(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=q(o);if(s){const a=Gt(c);
vendor: 4,186 bytes, line 45
45return t.concat(c,c.visualViewport||[],Je(o)?o:[],a&&n?qe(a):[])}else return t.concat(o,qe(o,[],n))}function Gt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Kr(e){const t=re(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=fe(e),s=o?e.offsetWidth:n,c=o?e.offsetHeight:r,a=pt(n)!==s||pt(r)!==c;return a&&(n=s,r=c),{width:n,height:r,$:a}}function xn(e){return ne(e)?e:e.contextElement}function ze(e){const t=xn(e);if(!fe(t))return ce(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Kr(t);let c=(s?pt(n.width):n.width)/r,a=(s?pt(n.height):n.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!a||!Number.isFinite(a))&&(a=1),{x:c,y:a}}const ba=ce(0);function Yr(e){const t=q(e);return!gn()||!t.visualViewport?ba:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Sa(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==q(e)?!1:t}function je(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=xn(e);let c=ce(1);t&&(r?ne(r)&&(c=ze(r)):c=ze(e));const a=Sa(s,n,r)?Yr(s):ce(0);let u=(o.left+a.x)/c.x,f=(o.top+a.y)/c.y,m=o.width/c.x,p=o.height/c.y;if(s){const v=q(s),h=r&&ne(r)?q(r):r;let w=v,d=Gt(w);for(;d&&r&&h!==w;){const g=ze(d),y=d.getBoundingClientRect(),x=re(d),b=y.left+(d.clientLeft+parseFloat(x.paddingLeft))*g.x,N=y.top+(d.clientTop+parseFloat(x.paddingTop))*g.y;u*=g.x,f*=g.y,m*=g.x,p*=g.y,u+=b,f+=N,w=q(d),d=Gt(w)}}return vt({width:m,height:p,x:u,y:f})}function Pt(e,t){const n=Et(e).scrollLeft;return t?t.left+n:je(le(e)).left+n}function Xr(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Pt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Ca(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",c=le(r),a=t?Nt(t.floating):!1;if(r===c||a&&s)return n;let u={scrollLeft:0,scrollTop:0},f=ce(1);const m=ce(0),p=fe(r);if((p||!p&&!s)&&((We(r)!=="body"||Je(c))&&(u=Et(r)),p)){const h=je(r);f=ze(r),m.x=h.x+r.clientLeft,m.y=h.y+r.clientTop}const v=c&&!p&&!s?Xr(c,u):ce(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-u.scrollLeft*f.x+m.x+v.x,y:n.y*f.y-u.scrollTop*f.y+m.y+v.y}}function Na(e){return Array.from(e.getClientRects())}function Ea(e){const t=le(e),n=Et(e),r=e.ownerDocument.body,o=X(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=X(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let c=-n.scrollLeft+Pt(e);const a=-n.scrollTop;return re(r).direction==="rtl"&&(c+=X(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:c,y:a}}const Un=25;function Pa(e,t){const n=q(e),r=le(e),o=n.visualViewport;let s=r.clientWidth,c=r.clientHeight,a=0,u=0;if(o){s=o.width,c=o.height;const m=gn();(!m||m&&t==="fixed")&&(a=o.offsetLeft,u=o.offsetTop)}const f=Pt(r);if(f<=0){const m=r.ownerDocument,p=m.body,v=getComputedStyle(p),h=m.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,w=Math.abs(r.clientWidth-p.clientWidth-h);w<=Un&&(s-=w)}else f<=Un&&(s+=f);return{width:s,height:c,x:a,y:u}}function Ra(e,t){const n=je(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=fe(e)?ze(e):ce(1),c=e.clientWidth*s.x,a=e.clientHeight*s.y,u=o*s.x,f=r*s.y;return{width:c,height:a,x:u,y:f}}function Kn(e,t,n){let r;if(t==="viewport")r=Pa(e,n);else if(t==="document")r=Ea(le(e));else if(ne(t))r=Ra(t,n);else{const o=Yr(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return vt(r)}function qr(e,t){const n=xe(e);return n===t||!ne(n)||Fe(n)?!1:re(n).position==="fixed"||qr(n,t)}function ja(e,t){const n=t.get(e);if(n)return n;let r=qe(e,[],!1).filter(a=>ne(a)&&We(a)!=="body"),o=null;const s=re(e).position==="fixed";let c=s?xe(e):e;for(;ne(c)&&!Fe(c);){const a=re(c),u=vn(c);!u&&a.position==="fixed"&&(o=null),(s?!u&&!o:!u&&a.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||Je(c)&&!u&&qr(e,c))?r=r.filter(m=>m!==c):o=a,c=xe(c)}return t.set(e,r),r}function Aa(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const c=[...n==="clippingAncestors"?Nt(t)?[]:ja(t,this._c):[].concat(n),r],a=Kn(t,c[0],o);let u=a.top,f=a.right,m=a.bottom,p=a.left;for(let v=1;v<c.length;v++){const h=Kn(t,c[v],o);u=X(h.top,u),f=ge(h.right,f),m=ge(h.bottom,m),p=X(h.left,p)}
vendor: 4,684 bytes, line 45
45return{width:f-p,height:m-u,x:p,y:u}}function Ta(e){const{width:t,height:n}=Kr(e);return{width:t,height:n}}function Oa(e,t,n){const r=fe(t),o=le(t),s=n==="fixed",c=je(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const u=ce(0);function f(){u.x=Pt(o)}if(r||!r&&!s)if((We(t)!=="body"||Je(o))&&(a=Et(t)),r){const h=je(t,!0,s,t);u.x=h.x+t.clientLeft,u.y=h.y+t.clientTop}else o&&f();s&&!r&&o&&f();const m=o&&!r&&!s?Xr(o,a):ce(0),p=c.left+a.scrollLeft-u.x-m.x,v=c.top+a.scrollTop-u.y-m.y;return{x:p,y:v,width:c.width,height:c.height}}function Wt(e){return re(e).position==="static"}function Yn(e,t){if(!fe(e)||re(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return le(e)===n&&(n=n.ownerDocument.body),n}function Gr(e,t){const n=q(e);if(Nt(e))return n;if(!fe(e)){let o=xe(e);for(;o&&!Fe(o);){if(ne(o)&&!Wt(o))return o;o=xe(o)}return n}let r=Yn(e,t);for(;r&&ga(r)&&Wt(r);)r=Yn(r,t);return r&&Fe(r)&&Wt(r)&&!vn(r)?n:r||wa(e)||n}const ka=async function(e){const t=this.getOffsetParent||Gr,n=this.getDimensions,r=await n(e.floating);return{reference:Oa(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ia(e){return re(e).direction==="rtl"}const Da={convertOffsetParentRelativeRectToViewportRelativeRect:Ca,getDocumentElement:le,getClippingRect:Aa,getOffsetParent:Gr,getElementRects:ka,getClientRects:Na,getDimensions:Ta,getScale:ze,isElement:ne,isRTL:Ia};function Zr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function _a(e,t){let n=null,r;const o=le(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function c(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),s();const f=e.getBoundingClientRect(),{left:m,top:p,width:v,height:h}=f;if(a||t(),!v||!h)return;const w=st(p),d=st(o.clientWidth-(m+v)),g=st(o.clientHeight-(p+h)),y=st(m),b={rootMargin:-w+"px "+-d+"px "+-g+"px "+-y+"px",threshold:X(0,ge(1,u))||1};let N=!0;function S(E){const C=E[0].intersectionRatio;if(C!==u){if(!N)return c();C?c(!1,C):r=setTimeout(()=>{c(!1,1e-7)},1e3)}C===1&&!Zr(f,e.getBoundingClientRect())&&c(),N=!1}try{n=new IntersectionObserver(S,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,b)}n.observe(e)}return c(!0),s}function Ma(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,f=xn(e),m=o||s?[...f?qe(f):[],...t?qe(t):[]]:[];m.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const p=f&&a?_a(f,n):null;let v=-1,h=null;c&&(h=new ResizeObserver(y=>{let[x]=y;x&&x.target===f&&h&&t&&(h.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var b;(b=h)==null||b.observe(t)})),n()}),f&&!u&&h.observe(f),t&&h.observe(t));let w,d=u?je(e):null;u&&g();function g(){const y=je(e);d&&!Zr(d,y)&&n(),d=y,w=requestAnimationFrame(g)}return n(),()=>{var y;m.forEach(x=>{o&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),p?.(),(y=h)==null||y.disconnect(),h=null,u&&cancelAnimationFrame(w)}}const La=ma,$a=pa,za=da,Fa=va,Ba=ua,Xn=la,Wa=ha,Ha=(e,t,n)=>{const r=new Map,o={platform:Da,...n},s={...o.platform,_c:r};return ca(e,t,{...o,platform:s})};var Va=typeof document<"u",Ua=function(){},dt=Va?l.useLayoutEffect:Ua;function gt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!gt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!gt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Qr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function qn(e,t){const n=Qr(e);return Math.round(t*n)/n}function Ht(e){const t=l.useRef(e);return dt(()=>{t.current=e}),t}function Ka(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:c}={},transform:a=!0,whileElementsMounted:u,open:f}=e,[m,p]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,h]=l.useState(r);gt(v,r)||h(r);const[w,d]=l.useState(null),[g,y]=l.useState(null),x=l.useCallback(R=>{R!==E.current&&(E.current=R,d(R))},[]),b=l.useCallback(R=>{R!==C.current&&(C.current=R,y(R))},[]),N=s||w,S=c||g,E=l.useRef(null),C=l.useRef(null),j=l.useRef(m),k=u!=null,T=Ht(u),I=Ht(o),_=Ht(f),M=l.useCallback(()=>
vendor: 8,581 bytes, line 45
45{if(!E.current||!C.current)return;const R={placement:t,strategy:n,middleware:v};I.current&&(R.platform=I.current),Ha(E.current,C.current,R).then($=>{const Y={...$,isPositioned:_.current!==!1};O.current&&!gt(j.current,Y)&&(j.current=Y,yt.flushSync(()=>{p(Y)}))})},[v,t,n,I,_]);dt(()=>{f===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,p(R=>({...R,isPositioned:!1})))},[f]);const O=l.useRef(!1);dt(()=>(O.current=!0,()=>{O.current=!1}),[]),dt(()=>{if(N&&(E.current=N),S&&(C.current=S),N&&S){if(T.current)return T.current(N,S,M);M()}},[N,S,M,T,k]);const B=l.useMemo(()=>({reference:E,floating:C,setReference:x,setFloating:b}),[x,b]),A=l.useMemo(()=>({reference:N,floating:S}),[N,S]),D=l.useMemo(()=>{const R={position:n,left:0,top:0};if(!A.floating)return R;const $=qn(A.floating,m.x),Y=qn(A.floating,m.y);return a?{...R,transform:"translate("+$+"px, "+Y+"px)",...Qr(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:$,top:Y}},[n,a,A.floating,m.x,m.y]);return l.useMemo(()=>({...m,update:M,refs:B,elements:A,floatingStyles:D}),[m,M,B,A,D])}const Ya=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Xn({element:r.current,padding:o}).fn(n):{}:r?Xn({element:r,padding:o}).fn(n):{}}}},Xa=(e,t)=>{const n=La(e);return{name:n.name,fn:n.fn,options:[e,t]}},qa=(e,t)=>{const n=$a(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ga=(e,t)=>({fn:Wa(e).fn,options:[e,t]}),Za=(e,t)=>{const n=za(e);return{name:n.name,fn:n.fn,options:[e,t]}},Qa=(e,t)=>{const n=Fa(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ja=(e,t)=>{const n=Ba(e);return{name:n.name,fn:n.fn,options:[e,t]}},ec=(e,t)=>{const n=Ya(e);return{name:n.name,fn:n.fn,options:[e,t]}};var tc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],nc=tc.reduce((e,t)=>{const n=G(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:c,...a}=o,u=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(u,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),rc="Arrow",Jr=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return i.jsx(nc.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:i.jsx("polygon",{points:"0,0 30,0 15,10"})})});Jr.displayName=rc;var oc=Jr,sc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],eo=sc.reduce((e,t)=>{const n=G(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:c,...a}=o,u=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(u,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),yn="Popper",[to,no]=Ge(yn),[ic,ro]=to(yn),oo=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return i.jsx(ic,{scope:t,anchor:r,onAnchorChange:o,children:n})};oo.displayName=yn;var so="PopperAnchor",io=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=ro(so,n),c=l.useRef(null),a=W(t,c),u=l.useRef(null);return l.useEffect(()=>{const f=u.current;u.current=r?.current||c.current,f!==u.current&&s.onAnchorChange(u.current)}),r?null:i.jsx(eo.div,{...o,ref:a})});io.displayName=so;var wn="PopperContent",[ac,cc]=to(wn),ao=l.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:c=0,arrowPadding:a=0,avoidCollisions:u=!0,collisionBoundary:f=[],collisionPadding:m=0,sticky:p="partial",hideWhenDetached:v=!1,updatePositionStrategy:h="optimized",onPlaced:w,...d}=e,g=ro(wn,n),[y,x]=l.useState(null),b=W(t,P=>x(P)),[N,S]=l.useState(null),E=Ir(N),C=E?.width??0,j=E?.height??0,k=r+(s!=="center"?"-"+s:""),T=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},I=Array.isArray(f)?f:[f],_=I.length>0,M={padding:T,boundary:I.filter(dc),altBoundary:_},{refs:O,floatingStyles:B,placement:A,isPositioned:D,middlewareData:R}=Ka({strategy:"fixed",placement:k,whileElementsMounted:(...P)=>Ma(...P,{animationFrame:h==="always"}),elements:{reference:g.anchor},middleware:[Xa({mainAxis:o+j,alignmentAxis:c}),u&&qa({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Ga():void 0,...M}),u&&Za({...M}),Qa({...M,apply:({elements:P,rects:H,availableWidth:K,availableHeight:z})=>{const{width:F,height:V}=H.reference,J=P.floating.style;J.setProperty("--radix-popper-available-width",`${K}px`),J.setProperty("--radix-popper-available-height",`${z}px`),J.setProperty("--radix-popper-anchor-width",`${F}px`),J.setProperty("--radix-popper-anchor-height",`${V}px`)}}),N&&ec({element:N,padding:a}),uc({arrowWidth:C,arrowHeight:j}),v&&Ja({strategy:"referenceHidden",...M})]}),[$,Y]=uo(A),be=Pe(w);U(()=>{D&&be?.()},[D,be]);const Ve=R.arrow?.x,Ue=R.arrow?.y,me=R.arrow?.centerOffset!==0,[ke,Se]=l.useState();return U(()=>{y&&Se(window.getComputedStyle(y).zIndex)},[y]),i.jsx("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:D?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ke,"--radix-popper-transform-origin":[R.transformOrigin?.x,R.transformOrigin?.y].join(" "),...R.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:i.jsx(ac,{scope:n,placedSide:$,onArrowChange:S,arrowX:Ve,arrowY:Ue,shouldHideArrow:me,children:i.jsx(eo.div,{"data-side":$,"data-align":Y,...d,ref:b,style:{...d.style,animation:D?void 0:"none"}})})})});ao.displayName=wn;var co="PopperArrow",lc={top:"bottom",right:"left",bottom:"top",left:"right"},lo=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=cc(co,r),c=lc[s.placedSide];return i.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:i.jsx(oc,{...o,ref:n,style:{...o.style,display:"block"}})})});lo.displayName=co;function dc(e){return e!==null}var uc=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,c=o.arrow?.centerOffset!==0,a=c?0:e.arrowWidth,u=c?0:e.arrowHeight,[f,m]=uo(n),p={start:"0%",center:"50%",end:"100%"}[m],v=(o.arrow?.x??0)+a/2,h=(o.arrow?.y??0)+u/2;let w="",d="";return f==="bottom"?(w=c?p:`${v}px`,d=`${-u}px`):f==="top"?(w=c?p:`${v}px`,d=`${r.floating.height+u}px`):f==="right"?(w=`${-u}px`,d=c?p:`${h}px`):f==="left"&&(w=`${r.floating.width+u}px`,d=c?p:`${h}px`),{data:{x:w,y:d}}}});function uo(e){const[t,n="center"]=e.split("-");return[t,n]}var fc=oo,mc=io,pc=ao,hc=lo;function Gn(e,[t,n]){return Math.min(n,Math.max(t,e))}var vc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Q=vc.reduce((e,t)=>{const n=G(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:c,...a}=o,u=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(u,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),gc=[" ","Enter","ArrowUp","ArrowDown"],xc=[" ","Enter"],Ae="Select",[Rt,jt,yc]=us(Ae),[He]=Ge(Ae,[yc,no]),At=no(),[wc,ye]=He(Ae),[bc,Sc]=He(Ae),fo=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:c,defaultValue:a,onValueChange:u,dir:f,name:m,autoComplete:p,disabled:v,required:h,form:w}=e,d=At(t),[g,y]=l.useState(null),[x,b]=l.useState(null),[N,S]=l.useState(!1),E=bs(f),[C,j]=ft({prop:r,defaultProp:o??!1,onChange:s,caller:Ae}),[k,T]=ft({prop:c,defaultProp:a,onChange:u,caller:Ae}),I=l.useRef(null),_=g?w||!!g.closest("form"):!0,[M,O]=l.useState(new Set),B=Array.from(M).map(A=>A.props.value).join(";");return i.jsx(fc,{...d,children:i.jsxs(wc,{required:h,scope:t,trigger:g,onTriggerChange:y,valueNode:x,onValueNodeChange:b,valueNodeHasChildren:N,onValueNodeHasChildrenChange:S,contentId:Le(),value:k,onValueChange:T,open:C,onOpenChange:j,dir:E,triggerPointerDownPosRef:I,disabled:v,children:[i.jsx(Rt.Provider,{scope:t,children:i.jsx(bc,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(A=>{O(D=>new Set(D).add(A))},[]),onNativeOptionRemove:l.useCallback(A=>{O(D=>{const R=new Set(D);return R.delete(A),R})},[]),children:n})}),_?i.jsxs(Do,{"aria-hidden":!0,required:h,tabIndex:-1,name:m,autoComplete:p,value:k,onChange:A=>T(A.target.value),disabled:v,form:w,children:[k===void 0?i.jsx("option",{value:""}):null,Array.from(M)]},B):null]})})};fo.displayName=Ae;var mo="SelectTrigger",po=l.forwardRef((e,t)=>
vendor: 12,568 bytes, line 45
45{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=At(n),c=ye(mo,n),a=c.disabled||r,u=W(t,c.onTriggerChange),f=jt(n),m=l.useRef("touch"),[p,v,h]=Mo(d=>{const g=f().filter(b=>!b.disabled),y=g.find(b=>b.value===c.value),x=Lo(g,d,y);x!==void 0&&c.onValueChange(x.value)}),w=d=>{a||(c.onOpenChange(!0),h()),d&&(c.triggerPointerDownPosRef.current={x:Math.round(d.pageX),y:Math.round(d.pageY)})};return i.jsx(mc,{asChild:!0,...s,children:i.jsx(Q.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":_o(c.value)?"":void 0,...o,ref:u,onClick:L(o.onClick,d=>{d.currentTarget.focus(),m.current!=="mouse"&&w(d)}),onPointerDown:L(o.onPointerDown,d=>{m.current=d.pointerType;const g=d.target;g.hasPointerCapture(d.pointerId)&&g.releasePointerCapture(d.pointerId),d.button===0&&d.ctrlKey===!1&&d.pointerType==="mouse"&&(w(d),d.preventDefault())}),onKeyDown:L(o.onKeyDown,d=>{const g=p.current!=="";!(d.ctrlKey||d.altKey||d.metaKey)&&d.key.length===1&&v(d.key),!(g&&d.key===" ")&&gc.includes(d.key)&&(w(),d.preventDefault())})})})});po.displayName=mo;var ho="SelectValue",vo=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:c="",...a}=e,u=ye(ho,n),{onValueNodeHasChildrenChange:f}=u,m=s!==void 0,p=W(t,u.onValueNodeChange);return U(()=>{f(m)},[f,m]),i.jsx(Q.span,{...a,ref:p,style:{pointerEvents:"none"},children:_o(u.value)?i.jsx(i.Fragment,{children:c}):s})});vo.displayName=ho;var Cc="SelectIcon",go=l.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return i.jsx(Q.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});go.displayName=Cc;var Nc="SelectPortal",xo=e=>i.jsx(sn,{asChild:!0,...e});xo.displayName=Nc;var Te="SelectContent",yo=l.forwardRef((e,t)=>{const n=ye(Te,e.__scopeSelect),[r,o]=l.useState();if(U(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?yt.createPortal(i.jsx(wo,{scope:e.__scopeSelect,children:i.jsx(Rt.Slot,{scope:e.__scopeSelect,children:i.jsx("div",{children:e.children})})}),s):null}return i.jsx(bo,{...e,ref:t})});yo.displayName=Te;var ee=10,[wo,we]=He(Te),Ec="SelectContentImpl",Pc=G("SelectContent.RemoveScroll"),bo=l.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:c,side:a,sideOffset:u,align:f,alignOffset:m,arrowPadding:p,collisionBoundary:v,collisionPadding:h,sticky:w,hideWhenDetached:d,avoidCollisions:g,...y}=e,x=ye(Te,n),[b,N]=l.useState(null),[S,E]=l.useState(null),C=W(t,P=>N(P)),[j,k]=l.useState(null),[T,I]=l.useState(null),_=jt(n),[M,O]=l.useState(!1),B=l.useRef(!1);l.useEffect(()=>{if(b)return pr(b)},[b]),sr();const A=l.useCallback(P=>{const[H,...K]=_().map(V=>V.ref.current),[z]=K.slice(-1),F=document.activeElement;for(const V of P)if(V===F||(V?.scrollIntoView({block:"nearest"}),V===H&&S&&(S.scrollTop=0),V===z&&S&&(S.scrollTop=S.scrollHeight),V?.focus(),document.activeElement!==F))return},[_,S]),D=l.useCallback(()=>A([j,b]),[A,j,b]);l.useEffect(()=>{M&&D()},[M,D]);const{onOpenChange:R,triggerPointerDownPosRef:$}=x;l.useEffect(()=>{if(b){let P={x:0,y:0};const H=z=>{P={x:Math.abs(Math.round(z.pageX)-($.current?.x??0)),y:Math.abs(Math.round(z.pageY)-($.current?.y??0))}},K=z=>{P.x<=10&&P.y<=10?z.preventDefault():b.contains(z.target)||R(!1),document.removeEventListener("pointermove",H),$.current=null};return $.current!==null&&(document.addEventListener("pointermove",H),document.addEventListener("pointerup",K,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",H),document.removeEventListener("pointerup",K,{capture:!0})}}},[b,R,$]),l.useEffect(()=>{const P=()=>R(!1);return window.addEventListener("blur",P),window.addEventListener("resize",P),()=>{window.removeEventListener("blur",P),window.removeEventListener("resize",P)}},[R]);const[Y,be]=Mo(P=>{const H=_().filter(F=>!F.disabled),K=H.find(F=>F.ref.current===document.activeElement),z=Lo(H,P,K);z&&setTimeout(()=>z.ref.current.focus())}),Ve=l.useCallback((P,H,K)=>{const z=!B.current&&!K;(x.value!==void 0&&x.value===H||z)&&(k(P),z&&(B.current=!0))},[x.value]),Ue=l.useCallback(()=>b?.focus(),[b]),me=l.useCallback((P,H,K)=>{const z=!B.current&&!K;(x.value!==void 0&&x.value===H||z)&&I(P)},[x.value]),ke=r==="popper"?Zt:So,Se=ke===Zt?{side:a,sideOffset:u,align:f,alignOffset:m,arrowPadding:p,collisionBoundary:v,collisionPadding:h,sticky:w,hideWhenDetached:d,avoidCollisions:g}:{};return i.jsx(wo,{scope:n,content:b,viewport:S,onViewportChange:E,itemRefCallback:Ve,selectedItem:j,onItemLeave:Ue,itemTextRefCallback:me,focusSelectedItem:D,selectedItemText:T,position:r,isPositioned:M,searchRef:Y,children:i.jsx(an,{as:Pc,allowPinchZoom:!0,children:i.jsx(on,{asChild:!0,trapped:x.open,onMountAutoFocus:P=>{P.preventDefault()},onUnmountAutoFocus:L(o,P=>{x.trigger?.focus({preventScroll:!0}),P.preventDefault()}),children:i.jsx(rn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:P=>P.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:i.jsx(ke,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:P=>P.preventDefault(),...y,...Se,onPlaced:()=>O(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:L(y.onKeyDown,P=>{const H=P.ctrlKey||P.altKey||P.metaKey;if(P.key==="Tab"&&P.preventDefault(),!H&&P.key.length===1&&be(P.key),["ArrowUp","ArrowDown","Home","End"].includes(P.key)){let z=_().filter(F=>!F.disabled).map(F=>F.ref.current);if(["ArrowUp","End"].includes(P.key)&&(z=z.slice().reverse()),["ArrowUp","ArrowDown"].includes(P.key)){const F=P.target,V=z.indexOf(F);z=z.slice(V+1)}setTimeout(()=>A(z)),P.preventDefault()}})})})})})})});bo.displayName=Ec;var Rc="SelectItemAlignedPosition",So=l.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=ye(Te,n),c=we(Te,n),[a,u]=l.useState(null),[f,m]=l.useState(null),p=W(t,C=>m(C)),v=jt(n),h=l.useRef(!1),w=l.useRef(!0),{viewport:d,selectedItem:g,selectedItemText:y,focusSelectedItem:x}=c,b=l.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&f&&d&&g&&y){const C=s.trigger.getBoundingClientRect(),j=f.getBoundingClientRect(),k=s.valueNode.getBoundingClientRect(),T=y.getBoundingClientRect();if(s.dir!=="rtl"){const F=T.left-j.left,V=k.left-F,J=C.left-V,Ce=C.width+J,Tt=Math.max(Ce,j.width),Ot=window.innerWidth-ee,kt=Gn(V,[ee,Math.max(ee,Ot-Tt)]);a.style.minWidth=Ce+"px",a.style.left=kt+"px"}else{const F=j.right-T.right,V=window.innerWidth-k.right-F,J=window.innerWidth-C.right-V,Ce=C.width+J,Tt=Math.max(Ce,j.width),Ot=window.innerWidth-ee,kt=Gn(V,[ee,Math.max(ee,Ot-Tt)]);a.style.minWidth=Ce+"px",a.style.right=kt+"px"}const I=v(),_=window.innerHeight-ee*2,M=d.scrollHeight,O=window.getComputedStyle(f),B=parseInt(O.borderTopWidth,10),A=parseInt(O.paddingTop,10),D=parseInt(O.borderBottomWidth,10),R=parseInt(O.paddingBottom,10),$=B+A+M+R+D,Y=Math.min(g.offsetHeight*5,$),be=window.getComputedStyle(d),Ve=parseInt(be.paddingTop,10),Ue=parseInt(be.paddingBottom,10),me=C.top+C.height/2-ee,ke=_-me,Se=g.offsetHeight/2,P=g.offsetTop+Se,H=B+A+P,K=$-H;if(H<=me){const F=I.length>0&&g===I[I.length-1].ref.current;a.style.bottom="0px";const V=f.clientHeight-d.offsetTop-d.offsetHeight,J=Math.max(ke,Se+(F?Ue:0)+V+D),Ce=H+J;a.style.height=Ce+"px"}else{const F=I.length>0&&g===I[0].ref.current;a.style.top="0px";const J=Math.max(me,B+d.offsetTop+(F?Ve:0)+Se)+K;a.style.height=J+"px",d.scrollTop=H-me+d.offsetTop}a.style.margin=`${ee}px 0`,a.style.minHeight=Y+"px",a.style.maxHeight=_+"px",r?.(),requestAnimationFrame(()=>h.current=!0)}},[v,s.trigger,s.valueNode,a,f,d,g,y,s.dir,r]);U(()=>b(),[b]);const[N,S]=l.useState();U(()=>{f&&S(window.getComputedStyle(f).zIndex)},[f]);const E=l.useCallback(C=>{C&&w.current===!0&&(b(),x?.(),w.current=!1)},[b,x]);return i.jsx(Ac,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:h,onScrollButtonChange:E,children:i.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N},children:i.jsx(Q.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});So.displayName=Rc;var jc="SelectPopperPosition",Zt=l.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=ee,...s}=e,c=At(n);return i.jsx(pc,{...c,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Zt.displayName=jc;var[Ac,bn]=He(Te,{}),Qt="SelectViewport",Co=l.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=we(Qt,n),c=bn(Qt,n),a=W(t,s.onViewportChange),u=l.useRef(0);return i.jsxs(i.Fragment,{children:[i.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),i.jsx(Rt.Slot,{scope:n,children:i.jsx(Q.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:L(o.onScroll,f=>{const m=f.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:v}=c;if(v?.current&&p){const h=Math.abs(u.current-m.scrollTop);if(h>0){const w=window.innerHeight-ee*2,d=parseFloat(p.style.minHeight),g=parseFloat(p.style.height),y=Math.max(d,g);if(y<w){const x=y+h,b=Math.min(w,x),N=x-b;p.style.height=b+"px",p.style.bottom==="0px"&&(m.scrollTop=N>0?N:0,p.style.justifyContent="flex-end")}}}u.current=m.scrollTop})})})]})});Co.displayName=Qt;var No="SelectGroup",[Tc,Oc]=He(No),kc=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Le();return i.jsx(Tc,{scope:n,id:o,children:i.jsx(Q.div,{role:"group","aria-labelledby":o,...r,ref:t})})});kc.displayName=No;var Eo="SelectLabel",Ic=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Oc(Eo,n);return i.jsx(Q.div,{id:o.id,...r,ref:t})});Ic.displayName=Eo;var xt="SelectItem",[Dc,Po]=He(xt),Ro=l.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...c}=e,a=ye(xt,n),u=we(xt,n),f=a.value===r,[m,p]=l.useState(s??""),[v,h]=l.useState(!1),w=W(t,x=>u.itemRefCallback?.(x,r,o)),d=Le(),g=l.useRef("touch"),y=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return i.jsx(Dc,{scope:n,value:r,disabled:o,textId:d,isSelected:f,onItemTextChange:l.useCallback(x=>{p(b=>b||(x?.textContent??"").trim())},[]),children:i.jsx(Rt.ItemSlot,{scope:n,value:r,disabled:o,textValue:m,children:i.jsx(Q.div,{role:"option","aria-labelledby":d,"data-highlighted":v?"":void 0,"aria-selected":f&&v,"data-state":f?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...c,ref:w,onFocus:L(c.onFocus,()=>h(!0)),onBlur:L(c.onBlur,()=>h(!1)),onClick:L(c.onClick,()=>{g.current!=="mouse"&&y()}),onPointerUp:L(c.onPointerUp,()=>{g.current==="mouse"&&y()}),onPointerDown:L(c.onPointerDown,x=>{g.current=x.pointerType}),onPointerMove:L(c.onPointerMove,x=>{g.current=x.pointerType,o?u.onItemLeave?.():g.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:L(c.onPointerLeave,x=>{x.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:L(c.onKeyDown,x=>{u.searchRef?.current!==""&&x.key===" "||(xc.includes(x.key)&&y(),x.key===" "&&x.preventDefault())})})})})});Ro.displayName=xt;var Ye="SelectItemText",jo=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,c=ye(Ye,n),a=we(Ye,n),u=Po(Ye,n),f=Sc(Ye,n),[m,p]=l.useState(null),v=W(t,y=>p(y),u.onItemTextChange,y=>a.itemTextRefCallback?.(y,u.value,u.disabled)),h=m?.textContent,w=l.useMemo(()=>i.jsx("option",{value:u.value,disabled:u.disabled,children:h},u.value),[u.disabled,u.value,h]),{onNativeOptionAdd:d,onNativeOptionRemove:g}=f;return U(()=>(d(w),()=>g(w)),[d,g,w]),i.jsxs(i.Fragment,{children:[i.jsx(Q.span,{id:u.textId,...s,ref:v}),u.isSelected&&c.valueNode&&!c.valueNodeHasChildren?yt.createPortal(s.children,c.valueNode):null]})});jo.displayName=Ye;var Ao="SelectItemIndicator",To=l.forwardRef((e,t)=>
vendor: 5,915 bytes, line 45
45{const{__scopeSelect:n,...r}=e;return Po(Ao,n).isSelected?i.jsx(Q.span,{"aria-hidden":!0,...r,ref:t}):null});To.displayName=Ao;var Jt="SelectScrollUpButton",Oo=l.forwardRef((e,t)=>{const n=we(Jt,e.__scopeSelect),r=bn(Jt,e.__scopeSelect),[o,s]=l.useState(!1),c=W(t,r.onScrollButtonChange);return U(()=>{if(n.viewport&&n.isPositioned){let a=function(){const f=u.scrollTop>0;s(f)};const u=n.viewport;return a(),u.addEventListener("scroll",a),()=>u.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?i.jsx(Io,{...e,ref:c,onAutoScroll:()=>{const{viewport:a,selectedItem:u}=n;a&&u&&(a.scrollTop=a.scrollTop-u.offsetHeight)}}):null});Oo.displayName=Jt;var en="SelectScrollDownButton",ko=l.forwardRef((e,t)=>{const n=we(en,e.__scopeSelect),r=bn(en,e.__scopeSelect),[o,s]=l.useState(!1),c=W(t,r.onScrollButtonChange);return U(()=>{if(n.viewport&&n.isPositioned){let a=function(){const f=u.scrollHeight-u.clientHeight,m=Math.ceil(u.scrollTop)<f;s(m)};const u=n.viewport;return a(),u.addEventListener("scroll",a),()=>u.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?i.jsx(Io,{...e,ref:c,onAutoScroll:()=>{const{viewport:a,selectedItem:u}=n;a&&u&&(a.scrollTop=a.scrollTop+u.offsetHeight)}}):null});ko.displayName=en;var Io=l.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=we("SelectScrollButton",n),c=l.useRef(null),a=jt(n),u=l.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return l.useEffect(()=>()=>u(),[u]),U(()=>{a().find(m=>m.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[a]),i.jsx(Q.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:L(o.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(r,50))}),onPointerMove:L(o.onPointerMove,()=>{s.onItemLeave?.(),c.current===null&&(c.current=window.setInterval(r,50))}),onPointerLeave:L(o.onPointerLeave,()=>{u()})})}),_c="SelectSeparator",Mc=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return i.jsx(Q.div,{"aria-hidden":!0,...r,ref:t})});Mc.displayName=_c;var tn="SelectArrow",Lc=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=At(n),s=ye(tn,n),c=we(tn,n);return s.open&&c.position==="popper"?i.jsx(hc,{...o,...r,ref:t}):null});Lc.displayName=tn;var $c="SelectBubbleInput",Do=l.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=l.useRef(null),s=W(r,o),c=kr(t);return l.useEffect(()=>{const a=o.current;if(!a)return;const u=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(u,"value").set;if(c!==t&&m){const p=new Event("change",{bubbles:!0});m.call(a,t),a.dispatchEvent(p)}},[c,t]),i.jsx(Q.select,{...n,style:{...er,...n.style},ref:s,defaultValue:t})});Do.displayName=$c;function _o(e){return e===""||e===void 0}function Mo(e){const t=Pe(e),n=l.useRef(""),r=l.useRef(0),o=l.useCallback(c=>{const a=n.current+c;t(a),(function u(f){n.current=f,window.clearTimeout(r.current),f!==""&&(r.current=window.setTimeout(()=>u(""),1e3))})(a)},[t]),s=l.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function Lo(e,t,n){const o=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let c=zc(e,Math.max(s,0));o.length===1&&(c=c.filter(f=>f!==n));const u=c.find(f=>f.textValue.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}function zc(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Fc=fo,Bc=po,Wc=vo,Hc=go,Vc=xo,Uc=yo,Kc=Co,Yc=Ro,Xc=jo,qc=To,Gc=Oo,Zc=ko;const Qc=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],$o=Oe("chevron-down",Qc);const Jc=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],el=Oe("chevron-up",Jc);const tl=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],nl=Oe("image",tl);const rl=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],ol=Oe("pencil-line",rl);const sl=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],il=Oe("pencil",sl);const al=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],cl=Oe("share-2",al);const ll=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],dl=Oe("wand-sparkles",ll);function zo({...e}){return i.jsx(zi,{"data-slot":"dialog",...e})}function Fo({...e}){return i.jsx(Fi,{"data-slot":"dialog-trigger",...e})}function ul({...e}){return i.jsx(Bi,{"data-slot":"dialog-portal",...e})}function fl({className:e,...t}){return i.jsx(Wi,{"data-slot":"dialog-overlay",className:Z("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",e),...t})}function Bo({className:e,children:t,showCloseButton:n=!0,...r}){return i.jsxs(ul,{"data-slot":"dialog-portal",children:[i.jsx(fl,{}),i.jsxs(Hi,{"data-slot":"dialog-content",className:Z("fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 roun
45ded-lg border bg-background p-6 shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg",e),...r,children:[t,n&&i.jsxs(Or,{"data-slot":"dialog-close",className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[i.jsx(Go,{}),i.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Wo({className:e,...t}){return i.jsx("div",{"data-slot":"dialog-header",className:Z("flex flex-col gap-2 text-center sm:text-left",e),...t})}function Ho({className:e,showCloseButton:t=!1,children:n,...r}){return i.jsxs("div",{"data-slot":"dialog-footer",className:Z("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...r,children:[n,t&&i.jsx(Or,{asChild:!0,children:i.jsx(te,{variant:"outline",children:"Close"})})]})}function Vo({className:e,...t}){return i.jsx(Vi,{"data-slot":"dialog-title",className:Z("text-lg leading-none font-semibold",e),...t})}function Uo({className:e,...t}){return i.jsx(Ui,{"data-slot":"dialog-description",className:Z("text-sm text-muted-foreground",e),...t})}function ml({...e}){return i.jsx(Fc,{"data-slot":"select",...e})}function pl({...e}){return i.jsx(Wc,{"data-slot":"select-value",...e})}function hl({className:e,size:t="default",children:n,...r}){return i.jsxs(Bc,{"data-slot":"select-trigger","data-size":t,className:Z("flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",e),...r,children:[n,i.jsx(Hc,{asChild:!0,children:i.jsx($o,{className:"size-4 opacity-50"})})]})}function vl({className:e,children:t,position:n="item-aligned",align:r="center",...o}){return i.jsx(Vc,{children:i.jsxs(Uc,{"data-slot":"select-content",className:Z("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,align:r,...o,children:[i.jsx(gl,{}),i.jsx(Kc,{className:Z("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),i.jsx(xl,{})]})})}function Vt({className:e,children:t,...n}){return i.jsxs(Yc,{"data-slot":"select-item",className:Z("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[i.jsx("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:i.jsx(qc,{children:i.jsx(nn,{className:"size-4"})})}),i.jsx(Xc,{children:t})]})}function gl({className:e,...t}){return i.jsx(Gc,{"data-slot":"select-scroll-up-button",className:Z("flex cursor-default items-center justify-center py-1",e),...t,children:i.jsx(el,{className:"size-4"})})}function xl({className:e,...t}){return i.jsx(Zc,{"data-slot":"select-scroll-down-button",className:Z("flex cursor-default items-center justify-center py-1",e),...t,children:i.jsx($o,{className:"size-4"})})}function yl({className:e,...t}){return i.jsx(Mr,{"data-slot":"checkbox",className:Z("peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary",e),...t,children:i.jsx($r,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:i.jsx(nn,{className:"size-3.5"})})})}function wl({lessonId:e,lessonTitle:t}){const[n,r]=l.useState(!1),[o,s]=l.useState(new Set),[c,a]=l.useState(!1),[u,f]=l.useState(null),m=Xe(se.lektor.listMyStudents),p=Xe(se.lessons.listAssignments,{lessonId:e}),v=Ke(se.lessons.assignToStudents),h=l.useMemo(()=>{const S=new Map;for(const E of p??[])S.set(E.studentId,{cloneLessonId:E.cloneLessonId,assignedAt:E.assignedAt});return S}
45,[p]),w=S=>{h.has(S)||s(E=>{const C=new Set(E);return C.has(S)?C.delete(S):C.add(S),C})},d=()=>{s(new Set),f(null)},g=S=>{r(S),S||d()},y=async()=>{if(o.size!==0){a(!0);try{const S=await v({lessonId:e,studentIds:Array.from(o)}),E=[];S.assigned.length>0&&E.push(`Přiřazeno ${S.assigned.length} ${S.assigned.length===1?"studentovi":"studentům"}`),S.skipped.length>0&&E.push(`${S.skipped.length} přeskočeno (už měli)`),S.failed.length>0&&E.push(`${S.failed.length} selhalo`),f(E.join(" · ")||"Hotovo"),s(new Set)}catch(S){const E=S instanceof Error?S.message:"unknown_error";f(`Chyba: ${E}`)}finally{a(!1)}}},x=m??[],b=x.length>0,N=(p?.length??0)>0;return i.jsxs(zo,{open:n,onOpenChange:g,children:[i.jsx(Fo,{asChild:!0,children:i.jsxs(te,{variant:"outline",size:"sm",children:[i.jsx(cl,{className:"size-4"}),"Přiřadit studentům"]})}),i.jsxs(Bo,{className:"sm:max-w-lg max-h-[90vh] overflow-y-auto",children:[i.jsxs(Wo,{children:[i.jsx(Vo,{children:"Přiřadit lekci studentům"}),i.jsxs(Uo,{children:["„",t,'" — student dostane vlastní kopii ve svém přehledu.']})]}),b?i.jsx("div",{className:"space-y-2 mt-2",children:x.map(S=>{const E=h.has(S._id),C=o.has(S._id);return i.jsxs("label",{className:`flex items-center gap-3 p-3 rounded-lg border transition-colors ${E?"bg-muted/50 cursor-default":C?"border-primary bg-primary/5 curs
45or-pointer":"hover:bg-muted/30 cursor-pointer"}`,children:[i.jsx(yl,{checked:C||E,disabled:E,onCheckedChange:()=>w(S._id),"aria-label":`Přiřadit ${S.name??S.email??"studentovi"}`}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("div",{className:"font-medium text-sm truncate",children:S.name??S.email??"Student"}),i.jsxs("div",{className:"text-xs text-muted-foreground",children:[S.email&&S.name?S.email:null,S.level?` · ${S.level}`:"",(!S.level&&S.email&&S.name,"")]})]}),E&&i.jsxs("div",{className:"flex items-center gap-1 text-xs text-primary shrink-0",children:[i.jsx(nn,{className:"size-3.5"}),i.jsx("span",{children:"má ji"})]})]},S._id)})}):i.jsxs("div",{className:"py-8 text-center text-sm text-muted-foreground",children:[i.jsx(Jn,{className:"size-8 mx-auto mb-2 opacity-50"}),"Zatím nemáš žádné spárované studenty. Pozvi je pomocí kódu."]}),N&&i.jsx(pe,{className:"p-3 bg-muted/40 mt-2",children:i.jsxs("div",{className:"text-xs text-muted-foreground",children:["Přiřazeno ",p?.length," ",p?.length===1?"studentovi":"studentům"," · další přiřazení stejnému studentovi přeskočíme"]})}),u&&i.jsx("div",{className:`text-sm p-3 rounded-lg ${u.startsWith("Chyba")?"bg-destructive/10 text-destructive":"bg-primary/10 text-primary"}`,children:u}),i.jsxs(Ho,{className:"mt-2",children:[i.jsx(te,{type:"button",variant:"outline",onClick:()=>g(!1),disabled:c,children:"Zavřít"}),i.jsxs(te,{type:"button",onClick:y,disabled:c||o.size===0||!b,children:[c&&i.jsx(ut,{className:"size-4 animate-spin mr-2"}),"Přiřadit ",o.size>0&&`(${o.size})`]})]})]})]})}function Gl(){return i.jsx(qo,{children:i.jsx(bl,{})})}function bl(){const{id:e}=Yo.useParams(),t=e,n=Xo(),r=Xe(se.lessons.get,{id:t}),o=Xe(se.users.getMe),s=Xe(se.lessons.listAssignments,o?.role==="lektor"?{lessonId:t}:"skip"),c=Ke(se.lessons.remove),a=Ke(se.vocabulary.addItem),u=Ke(se.vocabulary.updateItem),f=Ke(se.vocabulary.deleteItem),m=o?.role==="lektor",v=m&&r?.userId===o?._id&&r?.status==="parsed";if(r===void 0)return i.jsx("div",{className:"min-h-dvh grid place-items-center",children:i.jsx(ut,{className:"size-6 animate-spin text-primary"})});if(r===null)return i.jsxs("div",{className:"min-h-dvh",children:[i.jsx(Sn,{}),i.jsx("main",{className:"max-w-3xl mx-auto p-6",children:i.jsxs(pe,{className:"p-10 text-center",children:[i.jsx(En,{className:"size-10 text-muted-foreground mx-auto mb-3"}),i.jsx("h1",{className:"font-display text-2xl mb-2",children:"Lekce nenalezena"}),i.jsx(te,{asChild:!0,className:"mt-4",children:i.jsx(Ut,{to:"/dashboard",children:"Zpět na přehled"})})]})})]});const h=async()=>{confirm("Opravdu smazat tuto lekci a všechna její slovíčka?")&&(await c({id:t}),n({to:"/dashboard"}))},w={word:r.vocabulary.filter(d=>d.itemType==="word").length,phrase:r.vocabulary.filter(d=>d.itemType==="phrase").length,grammar:r.vocabulary.filter(d=>d.itemType==="grammar").length};return i.jsxs("div",{className:"min-h-dvh pb-20",children:[i.jsx(Sn,{crumbs:[{label:"Lekce",to:"/dashboard"},{label:r.title}]}),i.jsxs("main",{className:"max-w-5xl mx-auto px-6 pt-8",children:[i.jsxs(Ut,{to:"/dashboard",className:"inline-flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground mb-4",children:[i.jsx(ts,{className:"size-4"})," Zpět"]}),i.jsxs("div",{className:"flex items-start justify-between gap-4 mb-6",children:[i.jsxs("div",{children:[i.jsx("h1",{className:"font-display text-4xl mb-2",children:r.title}),i.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[i.jsx(Sl,{status:r.status}),i.jsx(Qo,{code:r.targetLanguage}),i.jsx("span",{className:"text-sm text-muted-foreground",children:Nn(r.createdAt)}),w.word>0&&i.jsxs(at,{variant:"secondary",children:[w.word," slov"]}),w.phrase>0&&i.jsxs(at,{variant:"secondary",children:[w.phrase," frází"]}),w.grammar>0&&i.jsxs(at,{variant:"secondary",children:[w.grammar," gramatika"]})]})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[v&&i.jsx(wl,{lessonId:t,lessonTitle:r.title}),i.jsx(te,{variant:"ghost",size:"icon",onClick:h,"aria-label":"Smazat lekci",children:i.jsx(Pn,{className:"size-4"})})]})]}),r.status==="parsing"&&i.jsx(pe,{className:"p-6 mb-6 bg-primary/5 border-primary/20",children:i.jsxs("div",{className:"flex items-start gap-3",children:[i.jsx(ut,{className:"size-5 animate-spin text-primary shrink-0 mt-0.5"}),i.jsxs("div",{children:[i.jsx("div",{className:"font-display text-lg",children:"AI zpracovává lekci…"}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"Jakmile bude hotovo, slovíčka se zobrazí tady."})]})]})}),r.status==="error"&&i.jsx(pe,{className:"p-6 mb-6 bg-destructive/5 border-destructive/20",children:i.jsxs("div",{className:"flex items-start gap-3",children:[i.jsx(En,{className:"size-5 text-destructive shrink-0 mt-0.5"}),i.jsxs("div",{children:[i.jsx("div",{className:"font-display text-lg",children:"Nepodařilo se zpracovat"}),i.jsx("p",{className:"text-sm text-muted-foreground",children:r.errorMessage??"Zkus to prosím znovu."})]})]})}),r.attachments.length>0&&i.jsxs(pe,{className:"p-5 mb-6",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[i.jsx(nl,{className:"size-4 text-muted-foreground"}),i.jsxs("span",{className:"text-sm font-display",children:["Přílohy (",r.attachments.length,")"]})]}),i.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-2",children:r.attachments.map(d=>i.jsx("a",{href:d.url??"#",target:"_blank",rel:"noreferrer",className:"block aspect-square rounded-lg overflow-hidden bg-muted border",children:d.url?i.jsx("img",{src:d.url,alt:d.filename,className:"size-full object-cover"}):i.jsx("div",{className:"size-full grid place-items-center text-xs text-muted-foreground",children:d.filename})},d._id))})]}),i.jsxs(pe,{className:"p-6 mb-6",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[i.jsx(dl,{className:"size-4 text-primary"}),i.jsx("h2",{className:"font-display text-lg",children:"Cvičit tuto lekci"})]}),i.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Vyber si režim. Slovíčka a fráze z této lekce se ti budou míchat."}),i.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-2",children:[i.jsx(it,{to:"/practice/$lessonId/$mode",params:{lessonId:t,mode:"flashcards"},icon:ns,title:"Kartičky",desc:"SRS opakování",disabled:r.vocabulary.length===0}),i.jsx(it,{to:"/practice/$lessonId/$mode",params:{lessonId:t,mode:"quiz"},icon:rs,title:"Kvíz",desc:"Výběr z možností",disabled:r.vocabulary.length<4}),i.jsx(it,{to:"/practice/$lessonId/$mode",params:{lessonId:t,mode:"fill"},icon:ol,title:"Doplňovačka",desc:"Doplň slovo do věty",disabled:r.vocabulary.length===0}),i.jsx(it,{to:"/practice/$lessonId/$mode",params:{lessonId:t,mode:"chat"},icon:os,title:"Konverzace",desc:`AI chat v ${Jo(r.targetLanguage).czechName.toLowerCase()}`})]})]}),i.jsxs(pe,{className:"p-6",children:[i.jsxs("div",{className:"flex items-center justify-between gap-4 mb-4",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(ss,{className:"size-4 text-primary"}),i.jsxs("h2",{className:"font-display text-lg",children:["Slovíčka a fráze (",r.vocabulary.length,")"]})]}),i.jsx(Zn,{lessonId:t,onSave:async d=>{await a({lessonId:t,...d})},trigger:i.jsxs(te,{variant:"outline",size:"sm",children:[i.jsx(es,{className:"size-4"})," Přidat"]})})]}),r.vocabulary.length===0?i.jsxs("div",{className:"text-center py-8 text-muted-foreground",children:[i.jsx(is,{className:"size-8 mx-auto mb-2 opacity-50"}),i.jsxs("p",{className:"text-sm",children:["Zatím žádná slovíčka.",r.status==="draft"&&" Přidej poznámky nebo vyfoť sešit."]})]}):i.jsx("div",{className:"divide-y",children:r.vocabulary.map(d=>i.jsxs("div",{className:"py-3 first:pt-0 last:pb-0",children:[i.jsxs("div",{className:"flex items-start justify-between gap-3",children:[i.jsxs("div",{className:"flex flex-wrap items-baseline gap-3",children:[i.jsx("span",{className:"font-display text-lg",children:d.term}),i.jsx("span",{className:"text-muted-foreground",children:"—"}),i.jsx("span",{className:"text-foreground",children:d.translation}),i.jsx(Cl,{type:d.itemType}),i.jsx(Nl,{box:d.srsBox})]}),i.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[i.jsx(Zn,{item:d,onSave:async g=>{await u({id:d._id,...g})},trigger:i.jsx(te,{variant:"ghost",size:"icon","aria-label":"Upravit",children:i.jsx(il,{className:"size-4"})})}),i.jsx(te,{variant:"ghost",size:"icon","aria-label":"Smazat",onClick:async()=>{confirm("Opravdu smazat tuto položku?")&&await f({id:d._id})},children:i.jsx(Pn,{className:"size-4"})})]})]}),d.example&&i.jsxs("div",{className:"mt-1 text-sm text-muted-foreground",children:[i.jsxs("span",{className:"italic",children:['"',d.example,'"']}),d.exampleTranslation&&i.jsxs("span",{children:[" · ",d.exampleTranslation]})]}),d.notes&&i.jsxs("div",{className:"mt-1 text-xs text-muted-foreground
45/80",children:["Poznámka: ",d.notes]})]},d._id))})]}),m&&(s?.length??0)>0&&i.jsxs(pe,{className:"p-5 mt-6",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[i.jsx(Jn,{className:"size-4 text-primary"}),i.jsxs("h2",{className:"font-display text-lg",children:["Přiřazeno studentům (",s?.length,")"]})]}),i.jsx("div",{className:"space-y-1.5",children:s?.map(d=>i.jsxs("div",{className:"flex items-center justify-between text-sm py-1.5",children:[i.jsx("div",{className:"flex items-center gap-2 min-w-0",children:i.jsx("span",{className:"font-medium truncate",children:d.studentName??d.studentEmail??"Student"})}),i.jsx("span",{className:"text-xs text-muted-foreground shrink-0",children:Nn(d.assignedAt)})]},d._id))})]})]})]})}function Zn({item:e,lessonId:t,onSave:n,trigger:r}){const[o,s]=l.useState(!1),[c,a]=l.useState(e?.term??""),[u,f]=l.useState(e?.translation??""),[m,p]=l.useState(e?.itemType??"word"),[v,h]=l.useState(e?.example??""),[w,d]=l.useState(e?.exampleTranslation??""),[g,y]=l.useState(e?.notes??""),[x,b]=l.useState(!1),N=!!e,S=()=>{a(e?.term??""),f(e?.translation??""),p(e?.itemType??"word"),h(e?.example??""),d(e?.exampleTranslation??""),y(e?.notes??"")};l.useEffect(()=>{o&&S()},[o]);const E=async C=>{C.preventDefault(),!(!c.trim()||!u.trim())&&(b(!0),await n({term:c.trim(),translation:u.trim(),itemType:m,example:v.trim()||void 0,exampleTranslation:w.trim()||void 0,notes:g.trim()||void 0}),b(!1),s(!1))};return i.jsxs(zo,{open:o,onOpenChange:s,children:[i.jsx(Fo,{asChild:!0,children:r}),i.jsxs(Bo,{className:"sm:max-w-md max-h-[90vh] overflow-y-auto",children:[i.jsxs(Wo,{children:[i.jsx(Vo,{children:N?"Upravit slovíčko nebo frázi":"Přidat slovíčko nebo frázi"}),i.jsx(Uo,{children:"Změny se projeví okamžitě v procvičování."})]}),i.jsxs("form",{id:"vocab-form",onSubmit:E,className:"space-y-4 mt-2",children:[i.jsxs("div",{className:"grid gap-2",children:[i.jsx(Ie,{htmlFor:"term",children:"V cizím jazyce"}),i.jsx(Cn,{id:"term",value:c,onChange:C=>a(C.target.value),placeholder:"např. to book a flight",required:!0})]}),i.jsxs("div",{className:"grid gap-2",children:[i.jsx(Ie,{htmlFor:"translation",children:"Překlad"}),i.jsx(Cn,{id:"translation",value:u,onChange:C=>f(C.target.value),placeholder:"např. rezervovat letenku",required:!0})]}),i.jsxs("div",{className:"grid gap-2",children:[i.jsx(Ie,{htmlFor:"type",children:"Typ"}),i.jsxs(ml,{value:m,onValueChange:C=>p(C),children:[i.jsx(hl,{id:"type",className:"w-full",children:i.jsx(pl,{})}),i.jsxs(vl,{children:[i.jsx(Vt,{value:"word",children:"Slovo"}),i.jsx(Vt,{value:"phrase",children:"Fráze"}),i.jsx(Vt,{value:"grammar",children:"Gramatika"})]})]})]}),i.jsxs("div",{className:"grid gap-2",children:[i.jsx(Ie,{htmlFor:"example",children:"Příklad (volitelně)"}),i.jsx(It,{id:"example",value:v,onChange:C=>h(C.target.value),placeholder:"Věta s tímto slovem/frází v cizím jazyce",rows:2})]}),i.jsxs("div",{className:"grid gap-2",children:[i.jsx(Ie,{htmlFor:"exampleTranslation",children:"Překlad příkladu (volitelně)"}),i.jsx(It,{id:"exampleTranslation",value:w,onChange:C=>d(C.target.value),placeholder:"Český překlad příkladu",rows:2})]}),i.jsxs("div",{className:"grid gap-2",children:[i.jsx(Ie,{htmlFor:"notes",children:"Poznámka (volitelně)"}),i.jsx(It,{id:"notes",value:g,onChange:C=>y(C.target.value),placeholder:"Další poznámka, např. výslovnost, kontext",rows:2})]})]}),i.jsxs(Ho,{className:"mt-4",children:[i.jsx(te,{type:"button",variant:"outline",onClick:()=>s(!1),children:"Zrušit"}),i.jsxs(te,{type:"submit",form:"vocab-form",disabled:x||!c.trim()||!u.trim(),children:[x&&i.jsx(ut,{className:"size-4 animate-spin mr-2"}),N?"Uložit":"Přidat"]})]})]})]})}function it({to:e,params:t,icon:n,title:r,desc:o,disabled:s}){const c=i.jsxs("div",{className:`p-4 rounded-xl border bg-background transition-all ${s?"opacity-50 pointer-events-none":"hover:border-primary hover:bg-primary/5 curs
45or-pointer"}`,children:[i.jsx(n,{className:"size-5 text-primary mb-2"}),i.jsx("div",{className:"font-display text-base",children:r}),i.jsx("div",{className:"text-xs text-muted-foreground",children:o})]});return s?i.jsx("div",{children:c}):i.jsx(Ut,{to:e,params:t,children:c})}function Sl({status:e}){const t={draft:{label:"Koncept",variant:"outline"},parsing:{label:"Zpracovává se",variant:"secondary"},parsed:{label:"Hotovo",variant:"default"},error:{label:"Chyba",variant:"destructive"}},n=t[e]??t.draft;return i.jsx(at,{variant:n.variant,children:n.label})}function Cl({type:e}){const t={word:{label:"slovo",cls:"bg-primary/10 text-primary"},phrase:{label:"fráze",cls:"bg-secondary text-secondary-foreground"},grammar:{label:"gramatika",cls:"bg-accent/30 text-accent-foreground"}},n=t[e]??t.word;return i.jsx("span",{className:`text-[10px] uppercase tracking-wider px-1.5 py-0.5 rounded-full ${n.cls}`,children:n.label})}function Nl({box:e}){if(e===0)return i.jsx("span",{className:"text-[10px] text-muted-foreground",children:"nové"});const t=e>=5?"🔥 dobře znám":e>=3?"učím se":"opakuji";return i.jsxs("span",{className:"text-[10px] text-muted-foreground",children:["krabice ",e," · ",t]})}export{Gl as component};

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.