PageSourceSearch

https://www.convex.dev/_next/static/immutable/chunks/0ibiw0o2ahcpe.js

js convex.dev collected 2026-10-02 14:31:33 UTC 36,054 bytes, 14 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,394594,e=>{"use strict";var t=e.i(843476),n=e.i(785865),i=e.i(612028),r=e.i(657688),o=e.i(522016);let l={src:e.i(992449).default,width:20,height:20,blurWidth:0,blurHeight:0};e.s(["PlanCard",0,function({title:e,description:s,badge:a,price:u,features:c,underlineFirstFeature:d,href:p,trackingEvent:f,cta:v,className:m,variant:h="default"}){let b=!!a,x=()=>{f&&(0,n.capture)(f.name,f.properties)},g="pdf"===h,S=(0,t.jsx)("div",{className:(0,i.cn)(`
2          flex h-full min-w-0 flex-col gap-8 overflow-hidden rounded-4xl border
3          border-neutral-n12/11 bg-oldLace p-5
4        `,!g&&"shadow-[0px_14px_15px_0px_#05050508] transition-shadow",b&&"border-tikkaMasala"),children:(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-8",children:[(0,t.jsxs)("header",{children:[(0,t.jsx)("h3",{className:"mb-1.5 text-center text-xl/none font-medium",children:e}),(0,t.jsx)("p",{className:"text-center text-base leading-none text-balance",children:s})]}),(0,t.jsxs)("p",{className:"flex items-baseline gap-1",children:[(0,t.jsx)("span",{className:"text-2xl/none font-bold",children:u.amount}),(0,t.jsx)("span",{className:"text-base leading-none font-medium",children:u.note})]}),(0,t.jsx)("ul",{className:"flex grow flex-col gap-2 text-left",role:"list",children:c.map((e,n)=>(0,t.jsxs)("li",{className:(0,i.cn)("flex items-center gap-2",!0===d&&0===n&&"border-b border-neutral-n12/9 pb-2"),children:[(0,t.jsx)(r.default,{src:l,width:20,height:20,alt:"","aria-hidden":!0,className:"size-5"}),(0,t.jsx)("span",{className:"text-sm leading-none [&>strong]:font-medium",children:e})]},"string"==typeof e?e:e.key??n))}),!g&&(0,t.jsx)(o.default,{href:p??"",onClick:x,className:(0,i.cn)(`
5                relative z-10 rounded-full border border-transparent px-9 py-3
6                text-center text-base leading-none font-medium
7                shadow-[0px_8px_8px_0px_#00000012,0px_91px_100px_0px_#00000021]
8              `,v.featured?"bg-neutral-n11 text-neutral-white":"bg-neutral-white text-neutral-n11"),children:v.label})]})});return g?(0,t.jsxs)("div",{className:(0,i.cn)("relative",m),children:[b&&(0,t.jsx)("span",{className:"\n              absolute top-0 left-1/2 -translate-1/2 rounded-sm bg-tikkaMasala\n              px-2 py-1 text-2xs font-medium tracking-wider text-neutral-white\n              uppercase\n            ","aria-hidden":!0,children:a}),S]}):(0,t.jsxs)("div",{className:(0,i.cn)("relative",m),children:[b&&(0,t.jsx)("span",{className:"\n            absolute top-0 left-1/2 z-20 -translate-1/2 rounded-sm\n            bg-tikkaMasala px-2 py-1 text-2xs font-medium tracking-wider\n            text-neutral-white uppercase\n          ","aria-hidden":!0,children:a}),(0,t.jsx)(o.default,{href:p??"",onClick:x,"aria-label":v.label,"data-markdown-hidden":"true",tabIndex:-1,className:"absolute inset-0 z-0 rounded-4xl"}),S]})}],394594)},495375,e=>{"use strict";let t,n,i,r,o,l,s;var a=e.i(843476),u=e.i(271645),c=e.i(914189),d=e.i(835696),p=e.i(255743),f=e.i(294316);let v=(0,u.createContext)(void 0);function m(){return(0,u.useContext)(v)}let h=(0,u.createContext)(void 0);function b(){return(0,u.useContext)(h)}var x=e.i(813581),g=e.i(700020);let S=(0,u.createContext)(null);function y(e){var t,n,i;let r=null!=(n=null==(t=(0,u.useContext)(S))?void 0:t.value)?n:void 0;return(null!=(i=null==e?void 0:e.length)?i:0)>0?[r,...e].filter(Boolean).join(" "):r}S.displayName="LabelContext";let O=Object.assign((0,g.forwardRefWithAs)(function(e,t){var n;let i=(0,u.useId)(),r=function e(){let t=(0,u.useContext)(S);if(null===t){let t=Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),o=b(),l=m(),{id:s=`headlessui-label-${i}`,htmlFor:a=null!=o?o:null==(n=r.props)?void 0:n.htmlFor,passive:v=!1,...h}=e,y=(0,f.useSyncRefs)(t);(0,d.useIsoMorphicEffect)(()=>r.register(s),[s,r.register]);let O=(0,c.useEvent)(e=>{let t=e.currentTarget;if(!(e.target!==e.currentTarget&&x.isInteractiveElement(e.target))&&(x.isHTMLLabelElement(t)&&e.preventDefault(),r.props&&"onClick"in r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),x.isHTMLLabelElement(t))){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(x.isHTMLInputElement(e)&&("file"===e.type||"radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}}),E=(0,p.useSlot)({...r.slot,disabled:l||!1}),R={ref:y,...r.props,id:s,htmlFor:a,onClick:O};return v&&("onClick"in R&&(delete R.htmlFor,delete R.onClick),"onClick"in h&&delete h.onClick),(0,g.useRender)()({ourProps:R,theirProps:h,slot:E,defaultTag:a?"label":"div",name:r.name||"Label"})}),{});var E=e.i(783222),R=e.i(433336),w=e.i(174080),I=e.i(394487),P=e.i(746725),k=e.i(992704),T=((t=T||{})[t.Left=0]="Left",t[t.Right=2]="Right",t),C=e.i(233538),L=e.i(544508),F=e.i(402155),M=e.i(929644);let D=new Map,N=new Map;function j(e){var t;let n=null!=(t=N.get(e))?t:0;return N.set(e,n+1),0!==n?()=>A(e):(D.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>A(e))}function A(e){var t;let n=null!=(t=N.get(e))?t:1;if(1===n?N.delete(e):N.set(e,n-1),1!==n)return;let i=D.get(e);i&&(null===i["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",i["aria-hidden"]),e.inert=i.inert,D.delete(e))}var _=e.i(941444),B=e.i(877891),z=e.i(952744),K=e.i(605083),H=e.i(22357),V=((n=V||{})[n.Ignore=0]="Ignore",n[n.Select=1]="Select",n[n.Close=2]="Close",n);let U={kind:0},$={kind:2};var W=e.i(144279),Q=e.i(101852);let q=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function G(e){var t,n;let i=null!=(t=e.innerText)?t:"",r=e.cloneNode(!0);if(!x.isHTMLElement(r))return i;let o=!1;for(let e of r.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),o=!0;let l=o?null!=(n=r.innerText)?n:"":i;return q.test(l)&&(l=l.replace(q,"")),l}function Y(e){return[e.screenX,e.screenY]}var X=e.i(83733),J=e.i(919751);function Z(e,t){return e?e+"["+t+"]":t}var ee=e.i(2788);let et=(0,u.createContext)(null);function en({children:e}){let t=(0,u.useContext)(et);if(!t)return u.default.createElement(u.default.Fragment,null,e);let{target:n}=t;return n?(0,w.createPortal)(u.default.createElement(u.default.Fragment,null,e),n):null}function ei({data:e,form:t,disabled:n,onReset:i,overrides:r}){let[o,l]=(0,u.useState)(null),s=(0,P.useDisposables)();return(0,u.useEffect)(()=>
8{if(i&&o)return s.addEventListener(o,"reset",i)},[o,t,i]),u.default.createElement(en,null,u.default.createElement(er,{setForm:l,formId:t}),(function e(t={},n=null,i=[]){for(let[r,o]of Object.entries(t))!function t(n,i,r){if(Array.isArray(r))for(let[e,o]of r.entries())t(n,Z(i,e.toString()),o);else r instanceof Date?n.push([i,r.toISOString()]):"boolean"==typeof r?n.push([i,r?"1":"0"]):"string"==typeof r?n.push([i,r]):"number"==typeof r?n.push([i,`${r}`]):null==r?n.push([i,""]):function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(r)&&!(0,u.isValidElement)(r)&&e(r,i,n)}(i,Z(n,r),o);return i})(e).map(([e,i])=>u.default.createElement(ee.Hidden,{features:ee.HiddenFeatures.Hidden,...(0,g.compact)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:e,value:i,...r})})))}function er({setForm:e,formId:t}){return(0,u.useEffect)(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:u.default.createElement(ee.Hidden,{features:ee.HiddenFeatures.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let n=t.closest("form");n&&e(n)}})}function eo(e,t){let[n,i]=(0,u.useState)(t);return e||n===t||i(t),e?n:t}u.default.forwardRef(function({children:e,freeze:t},n){let i=eo(t,e);return(0,u.isValidElement)(i)?(0,u.cloneElement)(i,{ref:n}):u.default.createElement(u.default.Fragment,null,i)});var el=e.i(233137),es=e.i(341650),ea=e.i(140407),eu=((i=eu||{})[i.First=0]="First",i[i.Previous=1]="Previous",i[i.Next=2]="Next",i[i.Last=3]="Last",i[i.Specific=4]="Specific",i[i.Nothing=5]="Nothing",i);function ec(e,t){let n=t.resolveItems();if(n.length<=0)return null;let i=t.resolveActiveIndex(),r=null!=i?i:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return i;case 1:-1===r&&(r=n.length);for(let e=r-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return i;case 2:for(let e=r+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return i;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return i;case 4:for(let i=0;i<n.length;++i)if(t.resolveId(n[i],i,n)===e.id)return i;return i;case 5:return null;default:throw Error("Unexpected object: "+e)}}var ed=e.i(652265),ep=e.i(397701);let ef=(0,u.createContext)(null);ef.displayName="DescriptionContext",Object.assign((0,g.forwardRefWithAs)(function(e,t){let n=(0,u.useId)(),i=m(),{id:r=`headlessui-description-${n}`,...o}=e,l=function e(){let t=(0,u.useContext)(ef);if(null===t){let t=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),s=(0,f.useSyncRefs)(t);(0,d.useIsoMorphicEffect)(()=>l.register(r),[r,l.register]);let a=(0,p.useSlot)({...l.slot,disabled:i||!1}),c={ref:s,...l.props,id:r};return(0,g.useRender)()({ourProps:c,theirProps:o,slot:a,defaultTag:"p",name:l.name||"Description"})}),{});var ev=e.i(998348),em=e.i(635307),eh=e.i(825720);let eb={kind:"Idle"},ex={kind:"Moved"};function eg(e){let t=e.getBoundingClientRect();return`${t.x},${t.y}`}var eS=Object.defineProperty,ey=(e,t,n)=>{let i;return(i="symbol"!=typeof t?t+"":t)in e?eS(e,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[i]=n,n},eO=((r=eO||{})[r.Open=0]="Open",r[r.Closed=1]="Closed",r),eE=((o=eE||{})[o.Single=0]="Single",o[o.Multi=1]="Multi",o),eR=((l=eR||{})[l.Pointer=0]="Pointer",l[l.Other=1]="Other",l),ew=((s=ew||{})[s.OpenListbox=0]="OpenListbox",s[s.CloseListbox=1]="CloseListbox",s[s.GoToOption=2]="GoToOption",s[s.Search=3]="Search",s[s.ClearSearch=4]="ClearSearch",s[s.SelectOption=5]="SelectOption",s[s.RegisterOptions=6]="RegisterOptions",s[s.UnregisterOptions=7]="UnregisterOptions",s[s.SetButtonElement=8]="SetButtonElement",s[s.SetOptionsElement=9]="SetOptionsElement",s[s.SortOptions=10]="SortOptions",s[s.MarkButtonAsMoved=11]="MarkButtonAsMoved",s);function eI(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,i=(0,ed.sortByDomNode)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),r=n?i.indexOf(n):null;return -1===r&&(r=null),{options:i,activeOptionIndex:r}}let eP={1(e){if(e.dataRef.current.disabled||1===e.listboxState)return e;let t=e.buttonElement?{kind:"Tracked",position:eg(e.buttonElement)}:e.buttonPositionState;return{...e,activeOptionIndex:null,pendingFocus:{focus:eu.Nothing},listboxState:1,__demoMode:!1,buttonPositionState:t}},0(e,t){if(e.dataRef.current.disabled||0===e.listboxState)return e;let n=e.activeOptionIndex,{isSelected:i}=e.dataRef.current,r=e.options.findIndex(e=>i(e.dataRef.current.value));return -1!==r&&(n=r),{...e,frozenValue:!1,pendingFocus:t.focus,listboxState:0,activeOptionIndex:n,__demoMode:!1,buttonPositionState:eb}},2(e,t){var n,i,r,o,l;if(e.dataRef.current.disabled||1===e.listboxState)return e;let s={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===eu.Nothing)return{...s,activeOptionIndex:null};if(t.focus===eu.Specific)return{...s,activeOptionIndex:e.options.findIndex(e=>e.id===t.id)};if(t.focus===eu.Previous){let n=e.activeOptionIndex;if(null!==n){let o=e.options[n].dataRef.current.domRef,l=ec(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==l){let t=e.options[l].dataRef.current.domRef;if((null==(i=o.current)?void 0:i.previousElementSibling)===t.current||(null==(r=t.current)?void 0:r.previousElementSibling)===null)return{...s,activeOptionIndex:l}}}}else if(t.focus===eu.Next){let n=e.activeOptionIndex;if(null!==n){let i=e.options[n].dataRef.current.domRef,r=ec(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==r){let t=e.options[r].dataRef.current.domRef;if((null==(o=i.current)?void 0:o.nextElementSibling)===t.current||(null==(l=t.current)?void 0:l.nextElementSibling)===null)return{...s,activeOptionIndex:r}}}}let a=eI(e),u=ec(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...s,...a,activeOptionIndex:u}},3:(e,t)=>
8{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=+(""===e.searchQuery),i=e.searchQuery+t.value.toLowerCase(),r=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(i))}),o=r?e.options.indexOf(r):-1;return -1===o||o===e.activeOptionIndex?{...e,searchQuery:i}:{...e,searchQuery:i,activeOptionIndex:o,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:e=>0===e.dataRef.current.mode?{...e,frozenValue:!0}:{...e},6:(e,t)=>{let n=e.options.concat(t.options),i=e.activeOptionIndex;if(e.pendingFocus.focus!==eu.Nothing&&(i=ec(e.pendingFocus,{resolveItems:()=>n,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),null===e.activeOptionIndex){let{isSelected:t}=e.dataRef.current;if(t){let e=n.findIndex(e=>null==t?void 0:t(e.dataRef.current.value));-1!==e&&(i=e)}}return{...e,options:n,activeOptionIndex:i,pendingFocus:{focus:eu.Nothing},pendingShouldSort:!0}},7:(e,t)=>{let n=e.options,i=[],r=new Set(t.options);for(let[e,t]of n.entries())if(r.has(t.id)&&(i.push(e),r.delete(t.id),0===r.size))break;if(i.length>0)for(let e of(n=n.slice(),i.reverse()))n.splice(e,1);return{...e,options:n,activationTrigger:1}},8:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},9:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},10:e=>e.pendingShouldSort?{...e,...eI(e),pendingShouldSort:!1}:e,11:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:ex}};class ek extends eh.Machine{constructor(e){super(e),ey(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:i,value:r}=this.state.dataRef.current;return(0,ep.match)(i,{0:()=>null==t?void 0:t(e),1:()=>{let i=r.slice(),o=i.findIndex(t=>n(t,e));return -1===o?i.push(e):i.splice(o,1),null==t?void 0:t(i)}})},registerOption:(0,eh.batch)(()=>{let e=[],t=new Set;return[(n,i)=>{t.has(i)||(t.add(i),e.push({id:n,dataRef:i}))},()=>(t.clear(),this.send({type:6,options:e.splice(0)}))]}),unregisterOption:(0,eh.batch)(()=>{let e=[];return[t=>e.push(t),()=>{this.send({type:7,options:e.splice(0)})}]}),goToOption:(0,eh.batch)(()=>{let e=null;return[(t,n)=>{e={type:2,...t,trigger:n}},()=>e&&this.send(e)]}),closeListbox:()=>{this.send({type:1})},openListbox:e=>{this.send({type:0,focus:e})},selectActiveOption:()=>{var e;if(null!==this.state.activeOptionIndex){let{dataRef:e}=this.state.options[this.state.activeOptionIndex];this.actions.selectOption(e.current.value)}else 0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(e=this.state.buttonElement)||e.focus({preventScroll:!0}))},selectOption:e=>{this.send({type:5,value:e})},search:e=>{this.send({type:3,value:e})},clearSearch:()=>{this.send({type:4})},setButtonElement:e=>{this.send({type:8,element:e})},setOptionsElement:e=>{this.send({type:9,element:e})}}),ey(this,"selectors",{activeDescendantId(e){var t;let n=e.activeOptionIndex,i=e.options;return null===n||null==(t=i[n])?void 0:t.id},isActive(e,t){var n;let i=e.activeOptionIndex,r=e.options;return null!==i&&(null==(n=r[i])?void 0:n.id)===t},hasFrozenValue:e=>e.frozenValue,shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.listboxState&&0!==e.activationTrigger&&this.isActive(e,t)},didButtonMove:e=>"Moved"===e.buttonPositionState.kind}),this.on(6,()=>{requestAnimationFrame(()=>{this.send({type:10})})});{let e=this.state.id,t=es.stackMachines.get(null);this.disposables.add(t.on(es.ActionTypes.Push,n=>{t.selectors.isTop(n,e)||0!==this.state.listboxState||this.actions.closeListbox()})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.buttonElement&&(e.dispose(),e.add(function(e,t,n){let i=(0,L.disposables)();if("Tracked"===t.kind){let r=function(){o!==eg(e)&&(i.dispose(),n())},{position:o}=t,l=new ResizeObserver(r);l.observe(e),i.add(()=>l.disconnect()),i.addEventListener(window,"scroll",r,{passive:!0}),i.addEventListener(window,"resize",r)}return()=>i.dispose()}(t.buttonElement,t.buttonPositionState,()=>{this.send({type:11})})))})}),this.on(5,(e,t)=>{var n;this.actions.onChange(t.value),0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(n=this.state.buttonElement)||n.focus({preventScroll:!0}))})}static new({id:e,__demoMode:t=!1}){return new ek({id:e,dataRef:{current:{}},listboxState:+!t,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:eu.Nothing},frozenValue:!1,__demoMode:t,buttonPositionState:eb})}reduce(e,t){return(0,ep.match)(t.type,eP,e,t)}}var eT=e.i(526599);let eC=(0,u.createContext)(null);function eL(e){let t=(0,u.useContext)(eC);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,eF),t}return t}function eF({id:e,__demoMode:t=!1}){let n=(0,u.useMemo)(()=>ek.new({id:e,__demoMode:t}),[]);return(0,eT.useOnUnmount)(()=>n.dispose()),n}let eM=(0,u.createContext)(null);function eD(e){let t=(0,u.useContext)(eM);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,eD),t}return t}eM.displayName="ListboxDataContext";let eN=u.Fragment,ej=(0,u.createContext)(!1),eA=g.RenderFeatures.RenderStrategy|g.RenderFeatures.Static,e_=u.Fragment,eB=(0,g.forwardRefWithAs)(function(e,t){let n=(0,u.useId)(),i=m(),{value:r,defaultValue:o,form:l,name:s,onChange:a,by:v,invalid:h=!1,disabled:b=i||!1,horizontal:x=!1,multiple:O=!1,__demoMode:E=!1,...R}=e,I=(0,f.useSyncRefs)(t),P=function(e){let[t]=(0,u.useState)(e);return t}(o),[k=O?[]:void 0,T]=function(e,t,n){let[i,r]=(0,u.useState)(n),o=void 0!==e,l=(0,u.useRef)(o),s=(0,u.useRef)(!1),a=(0,u.useRef)(!1);return!o||l.current||s.current?o||!l.current||a.current||(a.current=!0,l.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(s.current=!0,l.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[o?e:i,(0,c.useEvent)(e=>(o||(0,w.flushSync)(()=>r(e)),null==t?void 0:t(e)))]}(r,a,P),C=eF({id:n,__demoMode:E}),L=(0,u.useRef)({static:!1,hold:!1}),F=(0,u.useRef)(new Map),M=function(e=function(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}){return(0,u.useCallback)((t,n)=>"string"==typeof e?(null==t?void 0:t[e])===(null==n?void 0:n[e]):e(t,n),[e])}(v),D=(0,u.useCallback)(e=>(0,ep.match)(N.mode,{[eE.Multi]:()=>k.some(t=>M(t,e)),[eE.Single]:()=>M(k,e)}
8),[k]),N=(0,p.useSlot)({value:k,disabled:b,invalid:h,mode:O?eE.Multi:eE.Single,orientation:x?"horizontal":"vertical",onChange:T,compare:M,isSelected:D,optionsPropsRef:L,listRef:F});(0,d.useIsoMorphicEffect)(()=>{C.state.dataRef.current=N},[N]);let j=(0,ea.useSlice)(C,e=>e.listboxState),A=es.stackMachines.get(null),_=(0,ea.useSlice)(A,(0,u.useCallback)(e=>A.selectors.isTop(e,n),[A,n])),[B,K]=(0,ea.useSlice)(C,e=>[e.buttonElement,e.optionsElement]);(0,z.useOutsideClick)(_,[B,K],(e,t)=>{C.send({type:ew.CloseListbox}),(0,ed.isFocusableElement)(t,ed.FocusableMode.Loose)||(e.preventDefault(),null==B||B.focus())});let H=(0,p.useSlot)({open:j===eO.Open,disabled:b,invalid:h,value:k}),[V,U]=function({inherit:e=!1}={}){let t=y(),[n,i]=(0,u.useState)([]),r=e?[t,...n].filter(Boolean):n;return[r.length>0?r.join(" "):void 0,(0,u.useMemo)(()=>function(e){let t=(0,c.useEvent)(e=>(i(t=>[...t,e]),()=>i(t=>{let n=t.slice(),i=n.indexOf(e);return -1!==i&&n.splice(i,1),n}))),n=(0,u.useMemo)(()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value}),[t,e.slot,e.name,e.props,e.value]);return u.default.createElement(S.Provider,{value:n},e.children)},[i])]}({inherit:!0}),$=(0,u.useCallback)(()=>{if(void 0!==P)return null==T?void 0:T(P)},[T,P]),W=(0,g.useRender)();return u.default.createElement(U,{value:V,props:{htmlFor:null==B?void 0:B.id},slot:{open:j===eO.Open,disabled:b}},u.default.createElement(J.FloatingProvider,null,u.default.createElement(eC.Provider,{value:C},u.default.createElement(eM.Provider,{value:N},u.default.createElement(el.OpenClosedProvider,{value:(0,ep.match)(j,{[eO.Open]:el.State.Open,[eO.Closed]:el.State.Closed})},null!=s&&null!=k&&u.default.createElement(ei,{disabled:b,data:{[s]:k},form:l,onReset:$}),W({ourProps:{ref:I},theirProps:R,slot:H,defaultTag:eN,name:"Listbox"}))))))}),ez=(0,g.forwardRefWithAs)(function(e,t){var n,i,r;let o,l=(0,u.useId)(),s=b(),a=eD("Listbox.Button"),d=eL("Listbox.Button"),{id:v=s||`headlessui-listbox-button-${l}`,disabled:m=a.disabled||!1,autoFocus:h=!1,...S}=e,O=(0,f.useSyncRefs)(t,(0,J.useFloatingReference)(),d.actions.setButtonElement),P=(0,J.useFloatingReferenceProps)(),[k,L,F]=(0,ea.useSlice)(d,e=>[e.listboxState,e.buttonElement,e.optionsElement]);!function(e,{trigger:t,action:n,close:i,select:r}){let o=(0,u.useRef)(null),l=(0,u.useRef)(null),s=(0,u.useRef)(null);(0,H.useDocumentEvent)(e&&null!==t,"pointerdown",e=>{x.isNode(null==e?void 0:e.target)&&null!=t&&t.contains(e.target)&&(l.current=e.x,s.current=e.y,o.current=e.timeStamp)}),(0,H.useDocumentEvent)(e&&null!==t,"pointerup",e=>{var t,a;let u=o.current;if(null===u||(o.current=null,!x.isHTMLorSVGElement(e.target))||5>Math.abs(e.x-(null!=(t=l.current)?t:e.x))&&5>Math.abs(e.y-(null!=(a=s.current)?a:e.y)))return;let c=n(e);switch(c.kind){case 0:return;case 1:e.timeStamp-u>200&&(r(c.target),i());break;case 2:i()}},{capture:!0})}(k===eO.Open,{trigger:L,action:(0,u.useCallback)(e=>{if(null!=L&&L.contains(e.target))return U;let t=e.target.closest('[role="option"]:not([data-disabled])');return x.isHTMLElement(t)?{kind:1,target:t}:null!=F&&F.contains(e.target)?U:$},[L,F]),close:d.actions.closeListbox,select:d.actions.selectActiveOption});let M=(0,c.useEvent)(e=>{switch(e.key){case ev.Keys.Enter:!function(e){var t,n;let i=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(i){for(let t of i.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(n=i.requestSubmit)||n.call(i)}}(e.currentTarget);break;case ev.Keys.Space:case ev.Keys.ArrowDown:e.preventDefault(),d.actions.openListbox({focus:a.value?eu.Nothing:eu.First});break;case ev.Keys.ArrowUp:e.preventDefault(),d.actions.openListbox({focus:a.value?eu.Nothing:eu.Last})}}),D=(0,c.useEvent)(e=>{e.key===ev.Keys.Space&&e.preventDefault()}),N=(n=e=>{var t;d.state.listboxState===eO.Open?((0,w.flushSync)(()=>d.actions.closeListbox()),null==(t=d.state.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),d.actions.openListbox({focus:eu.Nothing}))},o=(0,u.useRef)(null),{onPointerDown:(0,c.useEvent)(e=>{o.current=e.pointerType,(0,C.isDisabledReactIssue7711)(e.currentTarget)||"mouse"!==e.pointerType||e.button!==T.Left||(e.preventDefault(),n(e))}),onClick:(0,c.useEvent)(e=>{"mouse"!==o.current&&((0,C.isDisabledReactIssue7711)(e.currentTarget)||n(e))})}),j=(0,c.useEvent)(e=>e.preventDefault()),A=y([v]),_=null!=(r=null==(i=(0,u.useContext)(ef))?void 0:i.value)?r:void 0,{isFocusVisible:B,focusProps:z}=(0,E.useFocusRing)({autoFocus:h}),{isHovered:K,hoverProps:V}=(0,R.useHover)({isDisabled:m}),{pressed:Q,pressProps:q}=(0,I.useActivePress)({disabled:m}),G=(0,p.useSlot)({open:k===eO.Open,active:Q||k===eO.Open,disabled:m,invalid:a.invalid,value:a.value,hover:K,focus:B,autofocus:h}),Y=(0,ea.useSlice)(d,e=>
8e.listboxState===eO.Open),X=(0,g.mergeProps)(P(),{ref:O,id:v,type:(0,W.useResolveButtonType)(e,L),"aria-haspopup":"listbox","aria-controls":null==F?void 0:F.id,"aria-expanded":Y,"aria-labelledby":A,"aria-describedby":_,disabled:m||void 0,autoFocus:h,onKeyDown:M,onKeyUp:D,onKeyPress:j},N,z,V,q);return(0,g.useRender)()({ourProps:X,theirProps:S,slot:G,defaultTag:"button",name:"Listbox.Button"})}),eK=(0,g.forwardRefWithAs)(function(e,t){let n=(0,u.useId)(),{id:i=`headlessui-listbox-options-${n}`,anchor:r,portal:o=!1,modal:l=!0,transition:s=!1,...a}=e,v=(0,J.useResolvedAnchor)(r),[m,h]=(0,u.useState)(null);v&&(o=!0);let b=eD("Listbox.Options"),x=eL("Listbox.Options"),[S,y,O,E]=(0,ea.useSlice)(x,e=>[e.listboxState,e.buttonElement,e.optionsElement,e.__demoMode]),R=(0,K.useOwnerDocument)(y),I=(0,K.useOwnerDocument)(O),T=(0,el.useOpenClosed)(),[C,D]=(0,X.useTransition)(s,m,null!==T?(T&el.State.Open)===el.State.Open:S===eO.Open);(0,B.useOnDisappear)(C,y,x.actions.closeListbox);let N=!E&&l&&S===eO.Open;(0,Q.useScrollLock)(N,I),function(e,{allowed:t,disallowed:n}={}){let i=(0,M.useIsTopLayer)(e,"inert-others");(0,d.useIsoMorphicEffect)(()=>{var e,r;if(!i)return;let o=(0,L.disposables)();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&o.add(j(t));let l=null!=(r=null==t?void 0:t())?r:[];for(let e of l){if(!e)continue;let t=(0,F.getOwnerDocument)(e);if(!t)continue;let n=e.parentElement;for(;n&&n!==t.body;){for(let e of n.children)l.some(t=>e.contains(t))||o.add(j(e));n=n.parentElement}}return o.dispose},[i,t,n])}(!E&&l&&S===eO.Open,{allowed:(0,u.useCallback)(()=>[y,O],[y,O])});let A=!(0,ea.useSlice)(x,x.selectors.didButtonMove)&&C,_=eo((0,ea.useSlice)(x,x.selectors.hasFrozenValue)&&!e.static,b.value),z=(0,u.useCallback)(e=>b.compare(_,e),[b.compare,_]),H=(0,ea.useSlice)(x,e=>{var t;if(null==v||!(null!=(t=null==v?void 0:v.to)&&t.includes("selection")))return null;let n=e.options.findIndex(e=>z(e.dataRef.current.value));return -1===n&&(n=0),n}),V=(()=>{if(null==v)return;if(null===H)return{...v,inner:void 0};let e=Array.from(b.listRef.current.values());return{...v,inner:{listRef:{current:e},index:H}}})(),[U,$]=(0,J.useFloatingPanel)(V),W=(0,J.useFloatingPanelProps)(),q=(0,f.useSyncRefs)(t,v?U:null,x.actions.setOptionsElement,h),G=(0,P.useDisposables)();(0,u.useEffect)(()=>{O&&S===eO.Open&&((0,F.isActiveElement)(O)||null==O||O.focus({preventScroll:!0}))},[S,O]);let Y=(0,c.useEvent)(e=>{var t;switch(G.dispose(),e.key){case ev.Keys.Space:if(""!==x.state.searchQuery)return e.preventDefault(),e.stopPropagation(),x.actions.search(e.key);case ev.Keys.Enter:e.preventDefault(),e.stopPropagation(),x.actions.selectActiveOption();break;case(0,ep.match)(b.orientation,{vertical:ev.Keys.ArrowDown,horizontal:ev.Keys.ArrowRight}):return e.preventDefault(),e.stopPropagation(),x.actions.goToOption({focus:eu.Next});case(0,ep.match)(b.orientation,{vertical:ev.Keys.ArrowUp,horizontal:ev.Keys.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),x.actions.goToOption({focus:eu.Previous});case ev.Keys.Home:case ev.Keys.PageUp:return e.preventDefault(),e.stopPropagation(),x.actions.goToOption({focus:eu.First});case ev.Keys.End:case ev.Keys.PageDown:return e.preventDefault(),e.stopPropagation(),x.actions.goToOption({focus:eu.Last});case ev.Keys.Escape:e.preventDefault(),e.stopPropagation(),(0,w.flushSync)(()=>x.actions.closeListbox()),null==(t=x.state.buttonElement)||t.focus({preventScroll:!0});return;case ev.Keys.Tab:e.preventDefault(),e.stopPropagation(),(0,w.flushSync)(()=>x.actions.closeListbox()),(0,ed.focusFrom)(x.state.buttonElement,e.shiftKey?ed.Focus.Previous:ed.Focus.Next);break;default:1===e.key.length&&(x.actions.search(e.key),G.setTimeout(()=>x.actions.clearSearch(),350))}}),Z=(0,ea.useSlice)(x,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),ee=(0,p.useSlot)({open:S===eO.Open}),et=(0,g.mergeProps)(v?W():{},{id:i,ref:q,"aria-activedescendant":(0,ea.useSlice)(x,x.selectors.activeDescendantId),"aria-multiselectable":b.mode===eE.Multi||void 0,"aria-labelledby":Z,"aria-orientation":b.orientation,onKeyDown:Y,role:"listbox",tabIndex:S===eO.Open?0:void 0,style:{...a.style,...$,"--button-width":(0,k.useElementSize)(C,y,!0).width},...(0,X.transitionDataAttributes)(D)}),en=(0,g.useRender)(),ei=(0,u.useMemo)(()=>b.mode===eE.Multi?b:{...b,isSelected:z},[b,z]);return u.default.createElement(em.Portal,{enabled:!!o&&(e.static||C),ownerDocument:R},u.default.createElement(eM.Provider,{value:ei},en({ourProps:et,theirProps:a,slot:ee,defaultTag:"div",features:eA,visible:A,name:"Listbox.Options"}
8)))}),eH=(0,g.forwardRefWithAs)(function(e,t){let n,i,r,o=(0,u.useId)(),{id:l=`headlessui-listbox-option-${o}`,disabled:s=!1,value:a,...v}=e,m=!0===(0,u.useContext)(ej),h=eD("Listbox.Option"),b=eL("Listbox.Option"),x=(0,ea.useSlice)(b,e=>b.selectors.isActive(e,l)),S=h.isSelected(a),y=(0,u.useRef)(null),O=(n=(0,u.useRef)(""),i=(0,u.useRef)(""),(0,c.useEvent)(()=>{let e=y.current;if(!e)return"";let t=e.innerText;if(n.current===t)return i.current;let r=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():G(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return G(e).trim()})(e).trim().toLowerCase();return n.current=t,i.current=r,r})),E=(0,_.useLatestValue)({disabled:s,value:a,domRef:y,get textValue(){return O()}}),R=(0,f.useSyncRefs)(t,y,e=>{e?h.listRef.current.set(l,e):h.listRef.current.delete(l)}),w=(0,ea.useSlice)(b,e=>b.selectors.shouldScrollIntoView(e,l));(0,d.useIsoMorphicEffect)(()=>{if(w)return(0,L.disposables)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=y.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[w,y]),(0,d.useIsoMorphicEffect)(()=>{if(!m)return b.actions.registerOption(l,E),()=>b.actions.unregisterOption(l)},[E,l,m]);let I=(0,c.useEvent)(e=>{if(s)return e.preventDefault();b.actions.selectOption(a)}),P=(0,c.useEvent)(()=>{if(s)return b.actions.goToOption({focus:eu.Nothing});b.actions.goToOption({focus:eu.Specific,id:l})}),k=(r=(0,u.useRef)([-1,-1]),{wasMoved(e){let t=Y(e);return(r.current[0]!==t[0]||r.current[1]!==t[1])&&(r.current=t,!0)},update(e){r.current=Y(e)}}),T=(0,c.useEvent)(e=>k.update(e)),C=(0,c.useEvent)(e=>{k.wasMoved(e)&&(s||x&&b.state.activationTrigger===eR.Pointer||b.actions.goToOption({focus:eu.Specific,id:l},eR.Pointer))}),F=(0,c.useEvent)(e=>{k.wasMoved(e)&&(s||x&&b.state.activationTrigger===eR.Pointer&&b.actions.goToOption({focus:eu.Nothing}))}),M=(0,p.useSlot)({active:x,focus:x,selected:S,disabled:s,selectedOption:S&&m}),D=m?{}:{id:l,ref:R,role:"option",tabIndex:!0===s?void 0:-1,"aria-disabled":!0===s||void 0,"aria-selected":S,disabled:void 0,onClick:I,onFocus:P,onPointerEnter:T,onMouseEnter:T,onPointerMove:C,onMouseMove:C,onPointerLeave:F,onMouseLeave:F},N=(0,g.useRender)();return!S&&m?null:N({ourProps:D,theirProps:v,slot:M,defaultTag:"div",name:"Listbox.Option"})}),eV=Object.assign(eB,{Button:ez,Label:O,Options:eK,Option:eH,SelectedOption:(0,g.forwardRefWithAs)(function(e,t){let{options:n,placeholder:i,...r}=e,o={ref:(0,f.useSyncRefs)(t)},l=eD("ListboxSelectedOption"),s=(0,p.useSlot)({}),a=void 0===l.value||null===l.value||l.mode===eE.Multi&&Array.isArray(l.value)&&0===l.value.length,c=(0,g.useRender)();return u.default.createElement(ej.Provider,{value:!0},c({ourProps:o,theirProps:{...r,children:u.default.createElement(u.default.Fragment,null,i&&a?i:n)},slot:s,defaultTag:e_,name:"ListboxSelectedOption"}))})});var eU=e.i(572226),e$=e.i(612028);e.s(["default",0,function({value:e,onChange:t,options:n,className:i,label:r}){let o=n.find(t=>t.value===e);return(0,a.jsxs)(eV,{value:e,onChange:t,children:[r&&(0,a.jsx)(O,{className:"w-full text-sm leading-none font-medium md:w-auto",children:r}),(0,a.jsxs)("div",{className:(0,e$.cn)("relative",i),children:[(0,a.jsxs)(ez,{className:"\n            relative flex w-full items-center justify-between gap-2 rounded-lg\n            bg-oldLace p-3 pr-10 text-left text-[15px] font-medium\n            shadow-[0_2px_11px_0_rgba(0,0,0,0.05)]\n          ",children:[(0,a.jsx)("span",{className:"truncate",children:o?.label}),o?.badge&&(0,a.jsx)("span",{className:(0,e$.cn)(`
9                  shrink-0 rounded-[4px] border px-1.5 py-0.5 text-2xs
10                  font-medium uppercase
11                `,o.badge.className),children:o.badge.text}),(0,a.jsx)(eU.ChevronDownIcon,{className:"\n              pointer-events-none absolute top-1/2 right-3 size-5\n              -translate-y-1/2\n            "})]}
11),(0,a.jsx)(eK,{anchor:{to:"bottom start",gap:"4px"},transition:!0,className:"\n            z-50 w-(--button-width) rounded-lg bg-oldLace py-1\n            shadow-[0_2px_11px_0_rgba(0,0,0,0.1)] transition duration-100\n            ease-out\n            data-closed:opacity-0\n          ",children:n.map(e=>(0,a.jsxs)(eH,{value:e.value,className:"\n                mx-1 flex cursor-pointer items-center justify-between gap-2\n                rounded-md px-2 py-2.5 text-[15px] font-medium select-none\n                data-focus:bg-[rgba(0,0,0,0.04)]\n              ",children:[(0,a.jsx)("span",{className:"truncate",children:e.label}),e.badge&&(0,a.jsx)("span",{className:(0,e$.cn)(`
12                      shrink-0 rounded-[4px] border px-1.5 py-0.5 text-2xs
13                      font-medium uppercase
14                    `,e.badge.className),children:e.badge.text})]},e.value))})]})]})}],495375)},120452,e=>{"use strict";var t=e.i(843476),n=e.i(998307),i=e.i(854056),r=e.i(657688),o=e.i(271645);let l={src:e.i(621914).default,width:16,height:16,blurWidth:0,blurHeight:0};e.s(["default",0,function({children:e,label:s="More information",className:a}){let[u,c]=(0,o.useState)(!1),[d,p]=(0,o.useState)(null),f=(0,o.useRef)(null),v=(0,o.useRef)(null),m=(0,o.useId)();return(0,o.useLayoutEffect)(()=>{if(!u)return;let e=requestAnimationFrame(()=>{let e=f.current,t=v.current;if(!e||!t)return;let n=e.getBoundingClientRect(),i=t.getBoundingClientRect(),r=n.left+n.width/2-i.left;p(Math.max(12,Math.min(i.width-12,r)))});return()=>cancelAnimationFrame(e)},[u]),(0,t.jsxs)(n.Popover,{onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),onFocus:()=>c(!0),onBlur:()=>c(!1),className:a,children:[(0,t.jsx)(n.PopoverButton,{"aria-label":s,"aria-describedby":u?m:void 0,ref:f,className:"h-4",children:(0,t.jsx)(r.default,{src:l,width:16,height:16,alt:"","aria-hidden":!0,className:"size-4"})}),(0,t.jsx)(i.Transition,{enter:"transition duration-100 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"opacity-100",leaveTo:"opacity-0",show:u,children:(0,t.jsxs)(n.PopoverPanel,{ref:v,anchor:{to:"top",gap:"12px",padding:12},className:"z-40 overflow-visible!",children:[(0,t.jsx)("div",{id:m,role:"tooltip",className:"\n              max-w-sm rounded-sm border border-neutral-n10 bg-neutral-n12 px-3\n              py-4 text-neutral-white\n            ",children:e}),(0,t.jsx)("div",{className:"\n              absolute -bottom-1.5 size-3 -translate-x-1/2 rotate-45\n              bg-neutral-n12\n            ",style:{left:null!=d?`${d}px`:"50%"},"aria-hidden":!0})]})})]})}],120452)}]);

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.