PageSourceSearch

https://nano-gpt.com/_next/static/chunks/47367-95d81524084bf49e.js

js nano-gpt.com collected 2026-09-24 18:21:35 UTC 7,538 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[47367],{43515:(e,l,t)=>{t.d(l,{D:()=>function e(l){return l.reduce((l,t)=>"group"in t?{...l,...e(t.items)}:(l[t.value]=t,l),{})}})},46289:(e,l,t)=>{t.d(l,{c:()=>n});function n(e){return"group"in e}},47367:(e,l,t)=>{t.d(l,{l:()=>b});var n=t(95155),o=t(12115),r=t(89074),a=t(18507),i=t(13494),s=t(65214),u=t(69954),c=t(76121),d=t(43515),p=t(95130),f=t(86861),v=t(96384),h=t(19455);let g={withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},b=(0,u.P9)((e,l)=>{let t=(0,s.Y)("Select",g,e),{classNames:u,styles:b,unstyled:m,vars:y,dropdownOpened:w,defaultDropdownOpened:x,onDropdownClose:j,onDropdownOpen:S,onFocus:O,onBlur:D,onClick:C,onChange:E,data:_,value:k,defaultValue:G,selectFirstOptionOnChange:A,onOptionSubmit:N,comboboxProps:I,readOnly:F,disabled:B,filter:P,limit:T,withScrollArea:V,maxDropdownHeight:M,size:R,searchable:z,rightSection:L,checkIconPosition:Y,withCheckIcon:Z,withAlignedLabels:H,nothingFoundMessage:W,name:q,form:J,searchValue:K,defaultSearchValue:Q,onSearchChange:U,allowDeselect:X,error:$,rightSectionPointerEvents:ee,id:el,clearable:et,clearButtonProps:en,hiddenInputProps:eo,renderOption:er,onClear:ea,autoComplete:ei,scrollAreaProps:es,__defaultRightSection:eu,__clearSection:ec,__clearable:ed,chevronColor:ep,autoSelectOnBlur:ef,attributes:ev,...eh}=t,eg=(0,o.useMemo)(()=>(0,c.d)(_),[_]),eb=(0,o.useRef)({}),em=(0,o.useMemo)(()=>(0,d.D)(eg),[eg]),ey=(0,r.B)(el),[ew,ex,ej]=(0,a.Z)({value:k,defaultValue:G,finalValue:null,onChange:E}),eS="string"==typeof ew?ew in em?em[ew]:eb.current[ew]:void 0,eO=function(e){let l=(0,o.useRef)(void 0);return(0,o.useEffect)(()=>{l.current=e},[e]),l.current}(eS),[eD,eC,eE]=(0,a.Z)({value:K,defaultValue:Q,finalValue:eS?eS.label:"",onChange:U}),e_=(0,v.B)({opened:w,defaultOpened:x,onDropdownOpen:()=>{null==S||S(),e_.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{null==j||j(),setTimeout(e_.resetSelectedOption,0)}}),ek=e=>{eC(e),e_.resetSelectedOption()},{resolvedClassNames:eG,resolvedStyles:eA}=(0,i.Y)({props:t,styles:b,classNames:u});(0,o.useEffect)(()=>{A&&e_.selectFirstOption()},[A,eD]),(0,o.useEffect)(()=>{null===k&&ek(""),"string"==typeof k&&eS&&((null==eO?void 0:eO.value)!==eS.value||(null==eO?void 0:eO.label)!==eS.label)&&ek(eS.label)},[k,eS]),(0,o.useEffect)(()=>{if(!ej&&!eE){var e,l;ek("string"==typeof ew?ew in em?null==(e=em[ew])?void 0:e.label:(null==(l=eb.current[ew])?void 0:l.label)||"":"")}},[em,ew]),(0,o.useEffect)(()=>{ew&&ew in em&&(eb.current[ew]=em[ew])},[em,ew]);let eN=(0,n.jsx)(p.G.ClearButton,{...en,onClear:()=>{ex(null,null),ek(""),null==ea||ea()}}),eI=et&&!!ew&&!B&&!F;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(p.G,{store:e_,__staticSelector:"Select",classNames:eG,styles:eA,unstyled:m,readOnly:F,size:R,attributes:ev,keepMounted:ef,onOptionSubmit:e=>{null==N||N(e);let l=X&&em[e].value===ew?null:em[e],t=l?l.value:null;t!==ew&&ex(t,l),ej||ek("string"==typeof t&&(null==l?void 0:l.label)||""),e_.closeDropdown()},...I,children:[(0,n.jsx)(p.G.Target,{targetType:z?"input":"button",autoComplete:ei,children:(0,n.jsx)(h.O,{id:ey,ref:l,__defaultRightSection:(0,n.jsx)(p.G.Chevron,{size:R,error:$,unstyled:m,color:ep}),__clearSection:eN,__clearable:eI,rightSection:L,rightSectionPointerEvents:ee||"none",...eh,size:R,__staticSelector:"Select",disabled:B,readOnly:F||!z,value:eD,onChange:e=>{ek(e.currentTarget.value),e_.openDropdown(),A&&e_.selectFirstOption()},onFocus:e=>{z&&e_.openDropdown(),null==O||O(e)},onBlur:e=>{ef&&e_.clickSelectedOption(),z&&e_.closeDropdown();let l="string"==typeof ew&&(ew in em?em[ew]:eb.current[ew]);ek(l&&l.label||""),null==D||D(e)},onClick:e=>{z?e_.openDropdown():e_.toggleDropdown(),null==C||C(e)},classNames:eG,styles:eA,unstyled:m,pointer:!z,error:$,attributes:ev})}),(0,n.jsx)(f.i,{data:eg,hidden:F||B,filter:P,search:eD,limit:T,hiddenWhenEmpty:!W,withScrollArea:V,maxDropdownHeight:M,filterOptions:!!z&&(null==eS?void 0:eS.label)!==eD,value:ew,checkIconPosition:Y,withCheckIcon:Z,withAlignedLabels:H,nothingFoundMessage:W,unstyled:m,labelId:eh.label?"".concat(ey,"-label"):void 0,"aria-label":eh.label?void 0:eh["aria-label"],renderOption:er,scrollAreaProps:es})]}),(0,n.jsx)(p.G.HiddenInput,{value:ew,name:q,form:J,disabled:B,...eo})]})});b.classes={...h.O.classes,...p.G.classes},b.displayName="@mantine/core/Select"},76121:(e,l,t)=>{t.d(l,{d:()=>n});function n(e){return e?e.map(e=>(function e(l){return"string"==typeof l?{value:l,label:l}:"value"in l&&!("label"in l)?{value:l.value,label:l.value,disabled:l.disabled}:"number"==typeof l?{value:l.toString(),label:l.toString()}
1:"group"in l?{group:l.group,items:l.items.map(l=>e(l))}:l})(e)):[]}},86861:(e,l,t)=>{t.d(l,{i:()=>d});var n=t(95155),o=t(29722),r=t(48513),a=t(59124),i=t(95130),s=t(46289),u=t(42698);function c(e){let{data:l,withCheckIcon:t,withAlignedLabels:a,value:d,checkIconPosition:p,unstyled:f,renderOption:v}=e;if(!(0,s.c)(l)){var h;let e=(h=l.value,Array.isArray(d)?d.includes(h):d===h),s=t&&(e?(0,n.jsx)(r.S,{className:u.A.optionsDropdownCheckIcon}):a?(0,n.jsx)("div",{className:u.A.optionsDropdownCheckPlaceholder}):null),c=(0,n.jsxs)(n.Fragment,{children:["left"===p&&s,(0,n.jsx)("span",{children:l.label}),"right"===p&&s]});return(0,n.jsx)(i.G.Option,{value:l.value,disabled:l.disabled,className:(0,o.A)({[u.A.optionsDropdownOption]:!f}),"data-reverse":"right"===p||void 0,"data-checked":e||void 0,"aria-selected":e,active:e,children:"function"==typeof v?v({option:l,checked:e}):c})}let g=l.items.map(e=>(0,n.jsx)(c,{data:e,value:d,unstyled:f,withCheckIcon:t,withAlignedLabels:a,checkIconPosition:p,renderOption:v},e.value));return(0,n.jsx)(i.G.Group,{label:l.group,children:g})}function d(e){let{data:l,hidden:t,hiddenWhenEmpty:o,filter:r,search:u,limit:d,maxDropdownHeight:p,withScrollArea:f=!0,filterOptions:v=!0,withCheckIcon:h=!1,withAlignedLabels:g=!1,value:b,checkIconPosition:m,nothingFoundMessage:y,unstyled:w,labelId:x,renderOption:j,scrollAreaProps:S,"aria-label":O}=e;!function e(l){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if(Array.isArray(l))for(let n of l)if((0,s.c)(n))e(n.items,t);else{if(void 0===n.value)throw Error("[@mantine/core] Each option must have value property");if("string"!=typeof n.value)throw Error("[@mantine/core] Option value must be a string, other data formats are not supported, got ".concat(typeof n.value));if(t.has(n.value))throw Error('[@mantine/core] Duplicate options are not supported. Option with value "'.concat(n.value,'" was provided more than once'));t.add(n.value)}}(l);let D="string"==typeof u?(r||function e(l){let{options:t,search:n,limit:o}=l,r=n.trim().toLowerCase(),a=[];for(let l=0;l<t.length;l+=1){let i=t[l];if(a.length===o)break;(0,s.c)(i)&&a.push({group:i.group,items:e({options:i.items,search:n,limit:o-a.length})}),!(0,s.c)(i)&&i.label.toLowerCase().includes(r)&&a.push(i)}return a})({options:l,search:v?u:"",limit:null!=d?d:1/0}):l,C=function(e){if(0===e.length)return!0;for(let l of e)if(!("group"in l)||l.items.length>0)return!1;return!0}(D),E=D.map(e=>(0,n.jsx)(c,{data:e,withCheckIcon:h,withAlignedLabels:g,value:b,checkIconPosition:m,unstyled:w,renderOption:j},(0,s.c)(e)?e.group:e.value));return(0,n.jsx)(i.G.Dropdown,{hidden:t||o&&C,"data-composed":!0,children:(0,n.jsxs)(i.G.Options,{labelledBy:x,"aria-label":O,children:[f?(0,n.jsx)(a.F.Autosize,{mah:null!=p?p:220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...S,children:E}):E,C&&y&&(0,n.jsx)(i.G.Empty,{children:y})]})})}}}]);

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.