blade-code 0.10.94 → 0.10.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blade.js +2 -2
- package/dist/{chunk-nahy2t67.js → chunk-09ya3a21.js} +1 -1
- package/dist/{chunk-fts2cp88.js → chunk-2f0wn3ne.js} +1 -1
- package/dist/{chunk-v5c34zya.js → chunk-2ge1zqts.js} +1 -1
- package/dist/{chunk-5hh577nr.js → chunk-2zzc7g29.js} +1 -1
- package/dist/{chunk-wxm2zjs9.js → chunk-3aayczyy.js} +1 -1
- package/dist/{chunk-0z3c8p6d.js → chunk-4fmyjf1x.js} +1 -1
- package/dist/chunk-4hb71f98.js +1 -0
- package/dist/{chunk-pkcvxa1z.js → chunk-4p69xraf.js} +1 -1
- package/dist/{chunk-zgd524h0.js → chunk-4smdhn1h.js} +1 -1
- package/dist/{chunk-kfmpnq2r.js → chunk-871g570t.js} +255 -255
- package/dist/{chunk-088bnp26.js → chunk-8pvsw4gw.js} +1 -1
- package/dist/{chunk-0ytp28pf.js → chunk-bd4nqrtm.js} +1 -1
- package/dist/{chunk-b5bwg47r.js → chunk-bxtqcgvs.js} +1 -1
- package/dist/{chunk-vnnxvpnn.js → chunk-cbafxem4.js} +1 -1
- package/dist/{chunk-076txzms.js → chunk-cnnht4m3.js} +1 -1
- package/dist/{chunk-kp6cjt82.js → chunk-cvybf60x.js} +1 -1
- package/dist/{chunk-xdvjwtfc.js → chunk-e5ht9d18.js} +1 -1
- package/dist/{chunk-reb25993.js → chunk-eqbcxa12.js} +1 -1
- package/dist/{chunk-rvpveaf3.js → chunk-es4evt6m.js} +1 -1
- package/dist/{chunk-73hasjfg.js → chunk-esstp9h0.js} +2 -2
- package/dist/{chunk-216xzne9.js → chunk-f66cptes.js} +1 -1
- package/dist/chunk-gnzcz6e1.js +1 -0
- package/dist/{chunk-gzv143jr.js → chunk-h2a3edj4.js} +1 -1
- package/dist/{chunk-8488pkzv.js → chunk-hajer580.js} +1 -1
- package/dist/{chunk-4rw9kt3s.js → chunk-hfd00skc.js} +1 -1
- package/dist/{chunk-bbvw06fr.js → chunk-hqb6qxzj.js} +1 -1
- package/dist/{chunk-939sa81a.js → chunk-hrpqz2jv.js} +1 -1
- package/dist/{chunk-zd410m70.js → chunk-ktt7vmqz.js} +1 -1
- package/dist/{chunk-k40dje0b.js → chunk-qp165b79.js} +1 -1
- package/dist/{chunk-7cx577bv.js → chunk-rjw8pj7t.js} +1 -1
- package/dist/{chunk-0538yd6h.js → chunk-rrav5aea.js} +1 -1
- package/dist/chunk-s2erwc49.js +8 -0
- package/dist/{chunk-5qanqw0d.js → chunk-sckqp0t9.js} +1 -1
- package/dist/{chunk-cd2xwddv.js → chunk-vt99w0vh.js} +1 -1
- package/dist/{chunk-zkxszt12.js → chunk-vxwqsmqg.js} +1 -1
- package/dist/{chunk-k8c48qxn.js → chunk-wwzc3ryj.js} +1 -1
- package/dist/{chunk-11fmyrjt.js → chunk-xm8w4jaa.js} +1 -1
- package/dist/web/assets/{ChatView-DacNycYI.js → ChatView-CpKiglLV.js} +7 -7
- package/dist/web/assets/{CodeBlockHighlighter-CevKBV7g.js → CodeBlockHighlighter-BzmHeWKU.js} +1 -1
- package/dist/web/assets/FilePreview-uShTCL2_.js +59 -0
- package/dist/web/assets/{KanbanBoard-C9620zMQ.js → KanbanBoard-CnZoKZFy.js} +2 -2
- package/dist/web/assets/{MarkdownRenderer-DR0tbtqc.js → MarkdownRenderer-CxcqGo57.js} +3 -3
- package/dist/web/assets/{SettingsModal-C_TpGMs0.js → SettingsModal-Bu5uH8ic.js} +2 -2
- package/dist/web/assets/{TaskSwitcher-CGWELaxg.js → TaskSwitcher-BDwk7i6w.js} +6 -6
- package/dist/web/assets/{TerminalPanel-DPxm68h1.js → TerminalPanel-PiLhnW-8.js} +2 -2
- package/dist/web/assets/{arrow-left-n3ENbaSb.js → arrow-left-B7RwOx8T.js} +1 -1
- package/dist/web/assets/{calendar-clock-C2E8mlWS.js → calendar-clock-BeSXiMFw.js} +1 -1
- package/dist/web/assets/{chevrons-up-down-DgOF3xz6.js → chevrons-up-down-DuC8PppK.js} +1 -1
- package/dist/web/assets/{clock-3-D9h1svFg.js → clock-3-lYrt_Amt.js} +1 -1
- package/dist/web/assets/{external-link-kvylbcSF.js → external-link-BTHyQJWk.js} +1 -1
- package/dist/web/assets/{folder-C_KPQmg6.js → folder-CX6zAF9w.js} +1 -1
- package/dist/web/assets/{index-DI8ZWdWH.js → index-B5mUEr6D.js} +3 -3
- package/dist/web/assets/{index-D11FYWsc.js → index-FdbcPJSj.js} +56 -56
- package/dist/web/assets/index-zY4JU9fd.css +1 -0
- package/dist/web/assets/{pause-hCE9Bvm9.js → pause-qlDcCjBJ.js} +1 -1
- package/dist/web/assets/{play-BpCmIsMH.js → play-BGPTTFWa.js} +1 -1
- package/dist/web/assets/session-events-Ci1823tS.js +22 -0
- package/dist/web/assets/{teamService-7LNlaq8e.js → teamService-Bk8B4hZp.js} +1 -1
- package/dist/web/assets/{vendor-radix-DXRuAJHH.js → vendor-radix-Bc1_Q9tz.js} +1 -1
- package/dist/web/assets/{vendor-react-DG5dkZ_t.js → vendor-react-DofNRwfy.js} +1 -1
- package/dist/web/index.html +5 -5
- package/package.json +1 -1
- package/dist/chunk-fc7dbcad.js +0 -1
- package/dist/chunk-h9ww5k16.js +0 -1
- package/dist/chunk-k3crvmvt.js +0 -8
- package/dist/web/assets/FilePreview-DiS4nCrp.js +0 -54
- package/dist/web/assets/index-C8M-7zAh.css +0 -1
- package/dist/web/assets/session-events-qDVUI3Ca.js +0 -22
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as a,R as Pt,j as m,a as Rn,b as uo}from"./vendor-react-DG5dkZ_t.js";function en(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Re(...e){return t=>{let n=!1;const r=e.map(o=>{const i=en(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():en(e[o],null)}}}}function F(...e){return a.useCallback(Re(...e),e)}var fo=Symbol.for("react.lazy"),He=Pt[" use ".trim().toString()];function po(e){return typeof e=="object"&&e!==null&&"then"in e}function An(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===fo&&"_payload"in e&&po(e._payload)}function ho(e){const t=vo(e),n=a.forwardRef((r,o)=>{let{children:i,...s}=r;An(i)&&typeof He=="function"&&(i=He(i._payload));const c=a.Children.toArray(i),u=c.find(go);if(u){const l=u.props.children,f=c.map(d=>d===u?a.Children.count(l)>1?a.Children.only(null):a.isValidElement(l)?l.props.children:null:d);return m.jsx(t,{...s,ref:o,children:a.isValidElement(l)?a.cloneElement(l,void 0,f):null})}return m.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var xa=ho("Slot");function vo(e){const t=a.forwardRef((n,r)=>{let{children:o,...i}=n;if(An(o)&&typeof He=="function"&&(o=He(o._payload)),a.isValidElement(o)){const s=wo(o),c=yo(i,o.props);return o.type!==a.Fragment&&(c.ref=r?Re(r,s):s),a.cloneElement(o,c)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var mo=Symbol("radix.slottable");function go(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===mo}function yo(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...c)=>{const u=i(...c);return o(...c),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function wo(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function _(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function bo(e,t){const n=a.createContext(t),r=i=>{const{children:s,...c}=i,u=a.useMemo(()=>c,Object.values(c));return m.jsx(n.Provider,{value:u,children:s})};r.displayName=e+"Provider";function o(i){const s=a.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function Ae(e,t=[]){let n=[];function r(i,s){const c=a.createContext(s),u=n.length;n=[...n,s];const l=d=>{var w;const{scope:p,children:h,...g}=d,v=((w=p==null?void 0:p[e])==null?void 0:w[u])||c,y=a.useMemo(()=>g,Object.values(g));return m.jsx(v.Provider,{value:y,children:h})};l.displayName=i+"Provider";function f(d,p){var v;const h=((v=p==null?void 0:p[e])==null?void 0:v[u])||c,g=a.useContext(h);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,f]}const o=()=>{const i=n.map(s=>a.createContext(s));return function(c){const u=(c==null?void 0:c[e])||i;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return o.scopeName=e,[r,xo(o,...t)]}function xo(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((c,{useScope:u,scopeName:l})=>{const d=u(i)[`__scope${l}`];return{...c,...d}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var ne=globalThis!=null&&globalThis.document?a.useLayoutEffect:()=>{},Co=Pt[" useId ".trim().toString()]||(()=>{}),So=0;function Se(e){const[t,n]=a.useState(Co());return ne(()=>{n(r=>r??String(So++))},[e]),e||(t?`radix-${t}`:"")}var Eo=Pt[" useInsertionEffect ".trim().toString()]||ne;function Rt({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=Po({defaultProp:t,onChange:n}),c=e!==void 0,u=c?e:o;{const f=a.useRef(e!==void 0);a.useEffect(()=>{const d=f.current;d!==c&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${c?"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.`),f.current=c},[c,r])}const l=a.useCallback(f=>{var d;if(c){const p=Ro(f)?f(e):f;p!==e&&((d=s.current)==null||d.call(s,p))}else i(f)},[c,e,i,s]);return[u,l]}function Po({defaultProp:e,onChange:t}){const[n,r]=a.useState(e),o=a.useRef(n),i=a.useRef(t);return Eo(()=>{i.current=t},[t]),a.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function Ro(e){return typeof e=="function"}function Ao(e){const t=To(e),n=a.forwardRef((r,o)=>{const{children:i,...s}=r,c=a.Children.toArray(i),u=c.find(Do);if(u){const l=u.props.children,f=c.map(d=>d===u?a.Children.count(l)>1?a.Children.only(null):a.isValidElement(l)?l.props.children:null:d);return m.jsx(t,{...s,ref:o,children:a.isValidElement(l)?a.cloneElement(l,void 0,f):null})}return m.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function To(e){const t=a.forwardRef((n,r)=>{const{children:o,...i}=n;if(a.isValidElement(o)){const s=No(o),c=_o(i,o.props);return o.type!==a.Fragment&&(c.ref=r?Re(r,s):s),a.cloneElement(o,c)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Oo=Symbol("radix.slottable");function Do(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Oo}function _o(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...c)=>{const u=i(...c);return o(...c),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function No(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Lo=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],L=Lo.reduce((e,t)=>{const n=Ao(`Primitive.${t}`),r=a.forwardRef((o,i)=>{const{asChild:s,...c}=o,u=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(u,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Mo(e,t){e&&Rn.flushSync(()=>e.dispatchEvent(t))}function B(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Io(e,t=globalThis==null?void 0:globalThis.document){const n=B(e);a.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 jo="DismissableLayer",yt="dismissableLayer.update",ko="dismissableLayer.pointerDownOutside",Fo="dismissableLayer.focusOutside",tn,Tn=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ke=a.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:c,...u}=e,l=a.useContext(Tn),[f,d]=a.useState(null),p=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=a.useState({}),g=F(t,E=>d(E)),v=Array.from(l.layers),[y]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),w=v.indexOf(y),b=f?v.indexOf(f):-1,C=l.layersWithOutsidePointerEventsDisabled.size>0,x=b>=w,S=Ho(E=>{const O=E.target,R=[...l.branches].some(A=>A.contains(O));!x||R||(o==null||o(E),s==null||s(E),E.defaultPrevented||c==null||c())},p),P=Bo(E=>{const O=E.target;[...l.branches].some(A=>A.contains(O))||(i==null||i(E),s==null||s(E),E.defaultPrevented||c==null||c())},p);return Io(E=>{b===l.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&c&&(E.preventDefault(),c()))},p),a.useEffect(()=>{if(f)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(tn=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),nn(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=tn)}},[f,p,n,l]),a.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),nn())},[f,l]),a.useEffect(()=>{const E=()=>h({});return document.addEventListener(yt,E),()=>document.removeEventListener(yt,E)},[]),m.jsx(L.div,{...u,ref:g,style:{pointerEvents:C?x?"auto":"none":void 0,...e.style},onFocusCapture:_(e.onFocusCapture,P.onFocusCapture),onBlurCapture:_(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:_(e.onPointerDownCapture,S.onPointerDownCapture)})});Ke.displayName=jo;var Wo="DismissableLayerBranch",$o=a.forwardRef((e,t)=>{const n=a.useContext(Tn),r=a.useRef(null),o=F(t,r);return a.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),m.jsx(L.div,{...e,ref:o})});$o.displayName=Wo;function Ho(e,t=globalThis==null?void 0:globalThis.document){const n=B(e),r=a.useRef(!1),o=a.useRef(()=>{});return a.useEffect(()=>{const i=c=>{if(c.target&&!r.current){let u=function(){On(ko,n,l,{discrete:!0})};const l={originalEvent:c};c.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},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Bo(e,t=globalThis==null?void 0:globalThis.document){const n=B(e),r=a.useRef(!1);return a.useEffect(()=>{const o=i=>{i.target&&!r.current&&On(Fo,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function nn(){const e=new CustomEvent(yt);document.dispatchEvent(e)}function On(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Mo(o,i):o.dispatchEvent(i)}var lt="focusScope.autoFocusOnMount",ut="focusScope.autoFocusOnUnmount",rn={bubbles:!1,cancelable:!0},Vo="FocusScope",At=a.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[c,u]=a.useState(null),l=B(o),f=B(i),d=a.useRef(null),p=F(t,v=>u(v)),h=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(r){let v=function(C){if(h.paused||!c)return;const x=C.target;c.contains(x)?d.current=x:ie(d.current,{select:!0})},y=function(C){if(h.paused||!c)return;const x=C.relatedTarget;x!==null&&(c.contains(x)||ie(d.current,{select:!0}))},w=function(C){if(document.activeElement===document.body)for(const S of C)S.removedNodes.length>0&&ie(c)};document.addEventListener("focusin",v),document.addEventListener("focusout",y);const b=new MutationObserver(w);return c&&b.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",y),b.disconnect()}}},[r,c,h.paused]),a.useEffect(()=>{if(c){sn.add(h);const v=document.activeElement;if(!c.contains(v)){const w=new CustomEvent(lt,rn);c.addEventListener(lt,l),c.dispatchEvent(w),w.defaultPrevented||(zo(Ko(Dn(c)),{select:!0}),document.activeElement===v&&ie(c))}return()=>{c.removeEventListener(lt,l),setTimeout(()=>{const w=new CustomEvent(ut,rn);c.addEventListener(ut,f),c.dispatchEvent(w),w.defaultPrevented||ie(v??document.body,{select:!0}),c.removeEventListener(ut,f),sn.remove(h)},0)}}},[c,l,f,h]);const g=a.useCallback(v=>{if(!n&&!r||h.paused)return;const y=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,w=document.activeElement;if(y&&w){const b=v.currentTarget,[C,x]=Uo(b);C&&x?!v.shiftKey&&w===x?(v.preventDefault(),n&&ie(C,{select:!0})):v.shiftKey&&w===C&&(v.preventDefault(),n&&ie(x,{select:!0})):w===b&&v.preventDefault()}},[n,r,h.paused]);return m.jsx(L.div,{tabIndex:-1,...s,ref:p,onKeyDown:g})});At.displayName=Vo;function zo(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ie(r,{select:t}),document.activeElement!==n)return}function Uo(e){const t=Dn(e),n=on(t,e),r=on(t.reverse(),e);return[n,r]}function Dn(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 on(e,t){for(const n of e)if(!Yo(n,{upTo:t}))return n}function Yo(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 Xo(e){return e instanceof HTMLInputElement&&"select"in e}function ie(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Xo(e)&&t&&e.select()}}var sn=Go();function Go(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=cn(e,t),e.unshift(t)},remove(t){var n;e=cn(e,t),(n=e[0])==null||n.resume()}}}function cn(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ko(e){return e.filter(t=>t.tagName!=="A")}var Zo="Portal",Tt=a.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[o,i]=a.useState(!1);ne(()=>i(!0),[]);const s=n||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return s?uo.createPortal(m.jsx(L.div,{...r,ref:t}),s):null});Tt.displayName=Zo;function qo(e,t){return a.useReducer((n,r)=>t[n][r]??n,e)}var X=e=>{const{present:t,children:n}=e,r=Qo(t),o=typeof n=="function"?n({present:r.isPresent}):a.Children.only(n),i=F(r.ref,Jo(o));return typeof n=="function"||r.isPresent?a.cloneElement(o,{ref:i}):null};X.displayName="Presence";function Qo(e){const[t,n]=a.useState(),r=a.useRef(null),o=a.useRef(e),i=a.useRef("none"),s=e?"mounted":"unmounted",[c,u]=qo(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const l=Ne(r.current);i.current=c==="mounted"?l:"none"},[c]),ne(()=>{const l=r.current,f=o.current;if(f!==e){const p=i.current,h=Ne(l);e?u("MOUNT"):h==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(f&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),ne(()=>{if(t){let l;const f=t.ownerDocument.defaultView??window,d=h=>{const v=Ne(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&v&&(u("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",l=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},p=h=>{h.target===t&&(i.current=Ne(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(l),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:a.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function Ne(e){return(e==null?void 0:e.animationName)||"none"}function Jo(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ft=0;function _n(){a.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??an()),document.body.insertAdjacentElement("beforeend",e[1]??an()),ft++,()=>{ft===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ft--}},[])}function an(){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 Z=function(){return Z=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Z.apply(this,arguments)};function Nn(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 Ca(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function c(f){try{l(r.next(f))}catch(d){s(d)}}function u(f){try{l(r.throw(f))}catch(d){s(d)}}function l(f){f.done?i(f.value):o(f.value).then(c,u)}l((r=r.apply(e,t||[])).next())})}function Sa(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=c(0),s.throw=c(1),s.return=c(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(l){return function(f){return u([l,f])}}function u(l){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(n=0)),n;)try{if(r=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,o=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){n.label=l[1];break}if(l[0]===6&&n.label<i[1]){n.label=i[1],i=l;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(l);break}i[2]&&n.ops.pop(),n.trys.pop();continue}l=t.call(e,n)}catch(f){l=[6,f],o=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Ea(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(c){s={error:c}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function ei(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Fe="right-scroll-bar-position",We="width-before-scroll-bar",ti="with-scroll-bars-hidden",ni="--removed-body-scroll-bar-size";function dt(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ri(e,t){var n=a.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 oi=typeof window<"u"?a.useLayoutEffect:a.useEffect,ln=new WeakMap;function ii(e,t){var n=ri(null,function(r){return e.forEach(function(o){return dt(o,r)})});return oi(function(){var r=ln.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(c){i.has(c)||dt(c,null)}),i.forEach(function(c){o.has(c)||dt(c,s)})}ln.set(n,e)},[e]),n}function si(e){return e}function ci(e,t){t===void 0&&(t=si);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(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(c){return c!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(c){return i(c)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var c=n;n=[],c.forEach(i),s=n}var u=function(){var f=s;s=[],f.forEach(i)},l=function(){return Promise.resolve().then(u)};l(),n={push:function(f){s.push(f),l()},filter:function(f){return s=s.filter(f),n}}}};return o}function ai(e){e===void 0&&(e={});var t=ci(null);return t.options=Z({async:!0,ssr:!1},e),t}var Ln=function(e){var t=e.sideCar,n=Nn(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 a.createElement(r,Z({},n))};Ln.isSideCarExport=!0;function li(e,t){return e.useMedium(t),Ln}var Mn=ai(),pt=function(){},Ze=a.forwardRef(function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:pt,onWheelCapture:pt,onTouchMoveCapture:pt}),o=r[0],i=r[1],s=e.forwardProps,c=e.children,u=e.className,l=e.removeScrollBar,f=e.enabled,d=e.shards,p=e.sideCar,h=e.noRelative,g=e.noIsolation,v=e.inert,y=e.allowPinchZoom,w=e.as,b=w===void 0?"div":w,C=e.gapMode,x=Nn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,P=ii([n,t]),E=Z(Z({},x),o);return a.createElement(a.Fragment,null,f&&a.createElement(S,{sideCar:Mn,removeScrollBar:l,shards:d,noRelative:h,noIsolation:g,inert:v,setCallbacks:i,allowPinchZoom:!!y,lockRef:n,gapMode:C}),s?a.cloneElement(a.Children.only(c),Z(Z({},E),{ref:P})):a.createElement(b,Z({},E,{className:u,ref:P}),c))});Ze.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ze.classNames={fullWidth:We,zeroRight:Fe};var ui=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function fi(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ui();return t&&e.setAttribute("nonce",t),e}function di(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function pi(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var hi=function(){var e=0,t=null;return{add:function(n){e==0&&(t=fi())&&(di(t,n),pi(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},vi=function(){var e=hi();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},In=function(){var e=vi(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},mi={left:0,top:0,right:0,gap:0},ht=function(e){return parseInt(e||"",10)||0},gi=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[ht(n),ht(r),ht(o)]},yi=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return mi;var t=gi(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])}},wi=In(),he="data-scroll-locked",bi=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
1
|
+
import{r as a,a as Pt,j as m,b as Rn,c as uo}from"./vendor-react-DofNRwfy.js";function en(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Re(...e){return t=>{let n=!1;const r=e.map(o=>{const i=en(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():en(e[o],null)}}}}function F(...e){return a.useCallback(Re(...e),e)}var fo=Symbol.for("react.lazy"),He=Pt[" use ".trim().toString()];function po(e){return typeof e=="object"&&e!==null&&"then"in e}function An(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===fo&&"_payload"in e&&po(e._payload)}function ho(e){const t=vo(e),n=a.forwardRef((r,o)=>{let{children:i,...s}=r;An(i)&&typeof He=="function"&&(i=He(i._payload));const c=a.Children.toArray(i),u=c.find(go);if(u){const l=u.props.children,f=c.map(d=>d===u?a.Children.count(l)>1?a.Children.only(null):a.isValidElement(l)?l.props.children:null:d);return m.jsx(t,{...s,ref:o,children:a.isValidElement(l)?a.cloneElement(l,void 0,f):null})}return m.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var xa=ho("Slot");function vo(e){const t=a.forwardRef((n,r)=>{let{children:o,...i}=n;if(An(o)&&typeof He=="function"&&(o=He(o._payload)),a.isValidElement(o)){const s=wo(o),c=yo(i,o.props);return o.type!==a.Fragment&&(c.ref=r?Re(r,s):s),a.cloneElement(o,c)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var mo=Symbol("radix.slottable");function go(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===mo}function yo(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...c)=>{const u=i(...c);return o(...c),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function wo(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function _(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function bo(e,t){const n=a.createContext(t),r=i=>{const{children:s,...c}=i,u=a.useMemo(()=>c,Object.values(c));return m.jsx(n.Provider,{value:u,children:s})};r.displayName=e+"Provider";function o(i){const s=a.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function Ae(e,t=[]){let n=[];function r(i,s){const c=a.createContext(s),u=n.length;n=[...n,s];const l=d=>{var w;const{scope:p,children:h,...g}=d,v=((w=p==null?void 0:p[e])==null?void 0:w[u])||c,y=a.useMemo(()=>g,Object.values(g));return m.jsx(v.Provider,{value:y,children:h})};l.displayName=i+"Provider";function f(d,p){var v;const h=((v=p==null?void 0:p[e])==null?void 0:v[u])||c,g=a.useContext(h);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,f]}const o=()=>{const i=n.map(s=>a.createContext(s));return function(c){const u=(c==null?void 0:c[e])||i;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return o.scopeName=e,[r,xo(o,...t)]}function xo(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((c,{useScope:u,scopeName:l})=>{const d=u(i)[`__scope${l}`];return{...c,...d}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var ne=globalThis!=null&&globalThis.document?a.useLayoutEffect:()=>{},Co=Pt[" useId ".trim().toString()]||(()=>{}),So=0;function Se(e){const[t,n]=a.useState(Co());return ne(()=>{n(r=>r??String(So++))},[e]),e||(t?`radix-${t}`:"")}var Eo=Pt[" useInsertionEffect ".trim().toString()]||ne;function Rt({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=Po({defaultProp:t,onChange:n}),c=e!==void 0,u=c?e:o;{const f=a.useRef(e!==void 0);a.useEffect(()=>{const d=f.current;d!==c&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${c?"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.`),f.current=c},[c,r])}const l=a.useCallback(f=>{var d;if(c){const p=Ro(f)?f(e):f;p!==e&&((d=s.current)==null||d.call(s,p))}else i(f)},[c,e,i,s]);return[u,l]}function Po({defaultProp:e,onChange:t}){const[n,r]=a.useState(e),o=a.useRef(n),i=a.useRef(t);return Eo(()=>{i.current=t},[t]),a.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function Ro(e){return typeof e=="function"}function Ao(e){const t=To(e),n=a.forwardRef((r,o)=>{const{children:i,...s}=r,c=a.Children.toArray(i),u=c.find(Do);if(u){const l=u.props.children,f=c.map(d=>d===u?a.Children.count(l)>1?a.Children.only(null):a.isValidElement(l)?l.props.children:null:d);return m.jsx(t,{...s,ref:o,children:a.isValidElement(l)?a.cloneElement(l,void 0,f):null})}return m.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function To(e){const t=a.forwardRef((n,r)=>{const{children:o,...i}=n;if(a.isValidElement(o)){const s=No(o),c=_o(i,o.props);return o.type!==a.Fragment&&(c.ref=r?Re(r,s):s),a.cloneElement(o,c)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Oo=Symbol("radix.slottable");function Do(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Oo}function _o(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...c)=>{const u=i(...c);return o(...c),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function No(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Lo=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],L=Lo.reduce((e,t)=>{const n=Ao(`Primitive.${t}`),r=a.forwardRef((o,i)=>{const{asChild:s,...c}=o,u=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(u,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Mo(e,t){e&&Rn.flushSync(()=>e.dispatchEvent(t))}function B(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Io(e,t=globalThis==null?void 0:globalThis.document){const n=B(e);a.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 jo="DismissableLayer",yt="dismissableLayer.update",ko="dismissableLayer.pointerDownOutside",Fo="dismissableLayer.focusOutside",tn,Tn=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ke=a.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:c,...u}=e,l=a.useContext(Tn),[f,d]=a.useState(null),p=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=a.useState({}),g=F(t,E=>d(E)),v=Array.from(l.layers),[y]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),w=v.indexOf(y),b=f?v.indexOf(f):-1,C=l.layersWithOutsidePointerEventsDisabled.size>0,x=b>=w,S=Ho(E=>{const O=E.target,R=[...l.branches].some(A=>A.contains(O));!x||R||(o==null||o(E),s==null||s(E),E.defaultPrevented||c==null||c())},p),P=Bo(E=>{const O=E.target;[...l.branches].some(A=>A.contains(O))||(i==null||i(E),s==null||s(E),E.defaultPrevented||c==null||c())},p);return Io(E=>{b===l.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&c&&(E.preventDefault(),c()))},p),a.useEffect(()=>{if(f)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(tn=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),nn(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=tn)}},[f,p,n,l]),a.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),nn())},[f,l]),a.useEffect(()=>{const E=()=>h({});return document.addEventListener(yt,E),()=>document.removeEventListener(yt,E)},[]),m.jsx(L.div,{...u,ref:g,style:{pointerEvents:C?x?"auto":"none":void 0,...e.style},onFocusCapture:_(e.onFocusCapture,P.onFocusCapture),onBlurCapture:_(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:_(e.onPointerDownCapture,S.onPointerDownCapture)})});Ke.displayName=jo;var Wo="DismissableLayerBranch",$o=a.forwardRef((e,t)=>{const n=a.useContext(Tn),r=a.useRef(null),o=F(t,r);return a.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),m.jsx(L.div,{...e,ref:o})});$o.displayName=Wo;function Ho(e,t=globalThis==null?void 0:globalThis.document){const n=B(e),r=a.useRef(!1),o=a.useRef(()=>{});return a.useEffect(()=>{const i=c=>{if(c.target&&!r.current){let u=function(){On(ko,n,l,{discrete:!0})};const l={originalEvent:c};c.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},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Bo(e,t=globalThis==null?void 0:globalThis.document){const n=B(e),r=a.useRef(!1);return a.useEffect(()=>{const o=i=>{i.target&&!r.current&&On(Fo,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function nn(){const e=new CustomEvent(yt);document.dispatchEvent(e)}function On(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Mo(o,i):o.dispatchEvent(i)}var lt="focusScope.autoFocusOnMount",ut="focusScope.autoFocusOnUnmount",rn={bubbles:!1,cancelable:!0},Vo="FocusScope",At=a.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[c,u]=a.useState(null),l=B(o),f=B(i),d=a.useRef(null),p=F(t,v=>u(v)),h=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(r){let v=function(C){if(h.paused||!c)return;const x=C.target;c.contains(x)?d.current=x:ie(d.current,{select:!0})},y=function(C){if(h.paused||!c)return;const x=C.relatedTarget;x!==null&&(c.contains(x)||ie(d.current,{select:!0}))},w=function(C){if(document.activeElement===document.body)for(const S of C)S.removedNodes.length>0&&ie(c)};document.addEventListener("focusin",v),document.addEventListener("focusout",y);const b=new MutationObserver(w);return c&&b.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",y),b.disconnect()}}},[r,c,h.paused]),a.useEffect(()=>{if(c){sn.add(h);const v=document.activeElement;if(!c.contains(v)){const w=new CustomEvent(lt,rn);c.addEventListener(lt,l),c.dispatchEvent(w),w.defaultPrevented||(zo(Ko(Dn(c)),{select:!0}),document.activeElement===v&&ie(c))}return()=>{c.removeEventListener(lt,l),setTimeout(()=>{const w=new CustomEvent(ut,rn);c.addEventListener(ut,f),c.dispatchEvent(w),w.defaultPrevented||ie(v??document.body,{select:!0}),c.removeEventListener(ut,f),sn.remove(h)},0)}}},[c,l,f,h]);const g=a.useCallback(v=>{if(!n&&!r||h.paused)return;const y=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,w=document.activeElement;if(y&&w){const b=v.currentTarget,[C,x]=Uo(b);C&&x?!v.shiftKey&&w===x?(v.preventDefault(),n&&ie(C,{select:!0})):v.shiftKey&&w===C&&(v.preventDefault(),n&&ie(x,{select:!0})):w===b&&v.preventDefault()}},[n,r,h.paused]);return m.jsx(L.div,{tabIndex:-1,...s,ref:p,onKeyDown:g})});At.displayName=Vo;function zo(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ie(r,{select:t}),document.activeElement!==n)return}function Uo(e){const t=Dn(e),n=on(t,e),r=on(t.reverse(),e);return[n,r]}function Dn(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 on(e,t){for(const n of e)if(!Yo(n,{upTo:t}))return n}function Yo(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 Xo(e){return e instanceof HTMLInputElement&&"select"in e}function ie(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Xo(e)&&t&&e.select()}}var sn=Go();function Go(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=cn(e,t),e.unshift(t)},remove(t){var n;e=cn(e,t),(n=e[0])==null||n.resume()}}}function cn(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ko(e){return e.filter(t=>t.tagName!=="A")}var Zo="Portal",Tt=a.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[o,i]=a.useState(!1);ne(()=>i(!0),[]);const s=n||o&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return s?uo.createPortal(m.jsx(L.div,{...r,ref:t}),s):null});Tt.displayName=Zo;function qo(e,t){return a.useReducer((n,r)=>t[n][r]??n,e)}var X=e=>{const{present:t,children:n}=e,r=Qo(t),o=typeof n=="function"?n({present:r.isPresent}):a.Children.only(n),i=F(r.ref,Jo(o));return typeof n=="function"||r.isPresent?a.cloneElement(o,{ref:i}):null};X.displayName="Presence";function Qo(e){const[t,n]=a.useState(),r=a.useRef(null),o=a.useRef(e),i=a.useRef("none"),s=e?"mounted":"unmounted",[c,u]=qo(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const l=Ne(r.current);i.current=c==="mounted"?l:"none"},[c]),ne(()=>{const l=r.current,f=o.current;if(f!==e){const p=i.current,h=Ne(l);e?u("MOUNT"):h==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(f&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),ne(()=>{if(t){let l;const f=t.ownerDocument.defaultView??window,d=h=>{const v=Ne(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&v&&(u("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",l=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},p=h=>{h.target===t&&(i.current=Ne(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(l),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:a.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function Ne(e){return(e==null?void 0:e.animationName)||"none"}function Jo(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ft=0;function _n(){a.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??an()),document.body.insertAdjacentElement("beforeend",e[1]??an()),ft++,()=>{ft===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ft--}},[])}function an(){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 Z=function(){return Z=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Z.apply(this,arguments)};function Nn(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 Ca(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function c(f){try{l(r.next(f))}catch(d){s(d)}}function u(f){try{l(r.throw(f))}catch(d){s(d)}}function l(f){f.done?i(f.value):o(f.value).then(c,u)}l((r=r.apply(e,t||[])).next())})}function Sa(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=c(0),s.throw=c(1),s.return=c(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(l){return function(f){return u([l,f])}}function u(l){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(n=0)),n;)try{if(r=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,o=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){n.label=l[1];break}if(l[0]===6&&n.label<i[1]){n.label=i[1],i=l;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(l);break}i[2]&&n.ops.pop(),n.trys.pop();continue}l=t.call(e,n)}catch(f){l=[6,f],o=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Ea(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(c){s={error:c}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function ei(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Fe="right-scroll-bar-position",We="width-before-scroll-bar",ti="with-scroll-bars-hidden",ni="--removed-body-scroll-bar-size";function dt(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ri(e,t){var n=a.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 oi=typeof window<"u"?a.useLayoutEffect:a.useEffect,ln=new WeakMap;function ii(e,t){var n=ri(null,function(r){return e.forEach(function(o){return dt(o,r)})});return oi(function(){var r=ln.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(c){i.has(c)||dt(c,null)}),i.forEach(function(c){o.has(c)||dt(c,s)})}ln.set(n,e)},[e]),n}function si(e){return e}function ci(e,t){t===void 0&&(t=si);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(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(c){return c!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(c){return i(c)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var c=n;n=[],c.forEach(i),s=n}var u=function(){var f=s;s=[],f.forEach(i)},l=function(){return Promise.resolve().then(u)};l(),n={push:function(f){s.push(f),l()},filter:function(f){return s=s.filter(f),n}}}};return o}function ai(e){e===void 0&&(e={});var t=ci(null);return t.options=Z({async:!0,ssr:!1},e),t}var Ln=function(e){var t=e.sideCar,n=Nn(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 a.createElement(r,Z({},n))};Ln.isSideCarExport=!0;function li(e,t){return e.useMedium(t),Ln}var Mn=ai(),pt=function(){},Ze=a.forwardRef(function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:pt,onWheelCapture:pt,onTouchMoveCapture:pt}),o=r[0],i=r[1],s=e.forwardProps,c=e.children,u=e.className,l=e.removeScrollBar,f=e.enabled,d=e.shards,p=e.sideCar,h=e.noRelative,g=e.noIsolation,v=e.inert,y=e.allowPinchZoom,w=e.as,b=w===void 0?"div":w,C=e.gapMode,x=Nn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,P=ii([n,t]),E=Z(Z({},x),o);return a.createElement(a.Fragment,null,f&&a.createElement(S,{sideCar:Mn,removeScrollBar:l,shards:d,noRelative:h,noIsolation:g,inert:v,setCallbacks:i,allowPinchZoom:!!y,lockRef:n,gapMode:C}),s?a.cloneElement(a.Children.only(c),Z(Z({},E),{ref:P})):a.createElement(b,Z({},E,{className:u,ref:P}),c))});Ze.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ze.classNames={fullWidth:We,zeroRight:Fe};var ui=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function fi(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ui();return t&&e.setAttribute("nonce",t),e}function di(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function pi(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var hi=function(){var e=0,t=null;return{add:function(n){e==0&&(t=fi())&&(di(t,n),pi(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},vi=function(){var e=hi();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},In=function(){var e=vi(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},mi={left:0,top:0,right:0,gap:0},ht=function(e){return parseInt(e||"",10)||0},gi=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[ht(n),ht(r),ht(o)]},yi=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return mi;var t=gi(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])}},wi=In(),he="data-scroll-locked",bi=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
2
2
|
.`.concat(ti,` {
|
|
3
3
|
overflow: hidden `).concat(r,`;
|
|
4
4
|
padding-right: `).concat(c,"px ").concat(r,`;
|