PageSourceSearch

https://www.xstable.ai/_next/static/chunks/6294.c77c39740890c542.js

js xstable.ai collected 2026-10-05 14:39:08 UTC 6,986 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6294],{4580:(e,t,r)=>{r.d(t,{sG:()=>i});var n=r(20801);r(68);var o=r(83292),l=r(80069),i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,o.TL)(`Primitive.${t}`),i=n.forwardRef((e,n)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(o?r:t,{...i,ref:n})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{})},7260:(e,t,r)=>{function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}r.d(t,{mK:()=>n}),"undefined"!=typeof window&&window.document&&window.document.createElement},32859:(e,t,r)=>{r.d(t,{N:()=>o});var n=r(20801),o=globalThis?.document?n.useLayoutEffect:()=>{}},44170:(e,t,r)=>{r.d(t,{s:()=>i,t:()=>l});var n=r(20801);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function l(...e){return t=>{let r=!1,n=e.map(e=>{let n=o(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():o(e[t],null)}}}}function i(...e){return n.useCallback(l(...e),e)}},45107:(e,t,r)=>{r.d(t,{i:()=>u});var n,o=r(20801),l=r(32859),i=(n||(n=r.t(o,2)))[" useInsertionEffect ".trim().toString()]||l.N;function u({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[l,u,c]=function({defaultProp:e,onChange:t}){let[r,n]=o.useState(e),l=o.useRef(r),u=o.useRef(t);return i(()=>{u.current=t},[t]),o.useEffect(()=>{l.current!==r&&(u.current?.(r),l.current=r)},[r,l]),[r,n,u]}({defaultProp:t,onChange:r}),a=void 0!==e,s=a?e:l;{let t=o.useRef(void 0!==e);o.useEffect(()=>{let e=t.current;if(e!==a){let t=a?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. 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.`)}t.current=a},[a,n])}return[s,o.useCallback(t=>{if(a){let r="function"==typeof t?t(e):t;r!==e&&c.current?.(r)}else u(t)},[a,e,u,c])]}Symbol("RADIX:SYNC_STATE")},83292:(e,t,r)=>{r.d(t,{TL:()=>i});var n=r(20801),o=r(44170),l=r(80069);function i(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:r,...l}=e;if(n.isValidElement(r)){var i;let e,u,c=(i=r,(u=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(u=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),a=function(e,t){let r={...t};for(let n in t){let o=e[n],l=t[n];/^on[A-Z]/.test(n)?o&&l?r[n]=(...e)=>{let t=l(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...l}:"className"===n&&(r[n]=[o,l].filter(Boolean).join(" "))}return{...e,...r}}(l,r.props);return r.type!==n.Fragment&&(a.ref=t?(0,o.t)(t,c):c),n.cloneElement(r,a)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=n.forwardRef((e,r)=>{let{children:o,...i}=e,u=n.Children.toArray(o),a=u.find(c);if(a){let e=a.props.children,o=u.map(t=>t!==a?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,l.jsx)(t,{...i,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,o):null})}return(0,l.jsx)(t,{...i,ref:r,children:o})});return r.displayName=`${e}.Slot`,r}var u=Symbol("radix.slottable");function c(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===u}},86294:(e,t,r)=>{r.d(t,{bL:()=>x,zi:()=>E});var n=r(20801),o=r(7260),l=r(44170),i=r(97226),u=r(45107),c=r(32859),a=r(4580),s=r(80069),f="Switch",[d,p]=(0,i.A)(f),[m,h]=d(f),v=n.forwardRef((e,t)=>{let{__scopeSwitch:r,name:i,checked:c,defaultChecked:d,required:p,disabled:h,value:v="on",onCheckedChange:b,form:y,...x}=e,[E,N]=n.useState(null),S=(0,l.s)(t,e=>N(e)),C=n.useRef(!1),k=!E||y||!!E.closest("form"),[R,_]=(0,u.i)({prop:c,defaultProp:null!=d&&d,onChange:b,caller:f});return(0,s.jsxs)(m,{scope:r,checked:R,disabled:h,children:[(0,s.jsx)(a.sG.button,{type:"button",role:"switch","aria-checked":R,"aria-required":p,"data-state":g(R),"data-disabled":h?"":void 0,disabled:h,value:v,...x,ref:S,onClick:(0,o.mK)(e.onClick,e=>{_(e=>!e),k&&(C.current=e.isPropagationStopped(),C.current||e.stopPropagation())})}),k&&(0,s.jsx)(w,{control:E,bubbles:!C.current,name:i,value:v,checked:R,required:p,disabled:h,form:y,style:{transform:"translateX(-100%)"}})]})});v.displayName=f;var b="SwitchThumb",y=n.forwardRef((e,t)=>
1{let{__scopeSwitch:r,...n}=e,o=h(b,r);return(0,s.jsx)(a.sG.span,{"data-state":g(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});y.displayName=b;var w=n.forwardRef((e,t)=>{let{__scopeSwitch:r,control:o,checked:i,bubbles:u=!0,...a}=e,f=n.useRef(null),d=(0,l.s)(f,t),p=function(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(i),m=function(e){let[t,r]=n.useState(void 0);return(0,c.N)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,o;if(!Array.isArray(t)||!t.length)return;let l=t[0];if("borderBoxSize"in l){let e=l.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,o=t.blockSize}else n=e.offsetWidth,o=e.offsetHeight;r({width:n,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}(o);return n.useEffect(()=>{let e=f.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(p!==i&&t){let r=new Event("click",{bubbles:u});t.call(e,i),e.dispatchEvent(r)}},[p,i,u]),(0,s.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:i,...a,tabIndex:-1,ref:d,style:{...a.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function g(e){return e?"checked":"unchecked"}w.displayName="SwitchBubbleInput";var x=v,E=y},97226:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(20801),o=r(80069);function l(e,t=[]){let r=[],i=()=>{let t=r.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return i.scopeName=e,[function(t,l){let i=n.createContext(l),u=r.length;r=[...r,l];let c=t=>{let{scope:r,children:l,...c}=t,a=r?.[e]?.[u]||i,s=n.useMemo(()=>c,Object.values(c));return(0,o.jsx)(a.Provider,{value:s,children:l})};return c.displayName=t+"Provider",[c,function(r,o){let c=o?.[e]?.[u]||i,a=n.useContext(c);if(a)return a;if(void 0!==l)return l;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(i,...t)]}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.