PageSourceSearch

https://www.charitynavigator.org/_next/static/chunks/b34cb1df520cb951.js

js charitynavigator.org collected 2026-09-24 08:24:33 UTC 36,505 bytes, 5 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,84363,e=>{"use strict";var t=e.i(43476),n=e.i(43794),i=e.i(99912),o=e.i(5363);e.i(57297);var r=e.i(50765),a=e.i(76093);function s({alertLevel:e,clickable:s,className:l}){if(!e)return null;let u=(0,n.default)("tw-flex tw-flex-row tw-items-center tw-justify-center tw-gap-1 tw-px-6 tw-py-2",{"tw-bg-cn-alert-low":e===i.AlertLevel.LOW,"tw-bg-cn-alert-medium":e===i.AlertLevel.MEDIUM,"tw-bg-cn-alert-high":e===i.AlertLevel.HIGH,"tw-bg-cn-alert-highest":e===i.AlertLevel.HIGHEST},{"tw-text-black":e===i.AlertLevel.LOW||e===i.AlertLevel.MEDIUM,"tw-text-white":e===i.AlertLevel.HIGH||e===i.AlertLevel.HIGHEST},l),c=(0,t.jsxs)("div",{className:u,children:[(0,t.jsx)(r.AlertBell,{className:"tw-h-5 tw-w-5 tw-shrink-0","aria-hidden":!0}),(0,t.jsx)("span",{className:"tw-font-bold",children:(0,o.getAlertLevelMessage)(e)}),s&&(0,t.jsx)(a.AlertQuestionCircle,{className:"tw-h-6 tw-w-6 tw-shrink-0","aria-label":"View details of this alert"})]});return s?(0,t.jsx)("a",{href:"#alert-details-section","aria-label":"View details of this alert",className:"tw-block",onClick:e=>{let t=document.getElementById("alert-details-section");t&&(e.preventDefault(),t.scrollIntoView({behavior:"smooth"}))},children:c}):c}e.s(["AlertBanner",()=>s])},80229,e=>{"use strict";var t,n,i,o,r,a,s,l=((t={}).NOT_501C3="NOT_501C3",t.INSUFFICIENT_BEACONS="INSUFFICIENT_BEACONS",t.GIVING_NOT_RECOMMENDED="GIVING_NOT_RECOMMENDED",t),u=((n={}).AUDIT="AUDIT",n.COMPILATION_OR_REVIEW="COMPILATION_OR_REVIEW",n.AUDIT_AND_AUDIT_COMMITTEE="AUDIT_AND_AUDIT_COMMITTEE",n.NONE="NONE",
1n),c=((i={}).NOT_RATED="Not rated",i.ZERO_STAR="0",i.ONE_STAR="1",i.TWO_STAR="2",i.THREE_STAR="3",i.FOUR_STAR="4",i),d=((o={}).ACCOUNTABILITY="accountability",o.FINANCIAL_HEALTH="financialHealth",o.REVENUE_AND_EXPENSES="revenueAndExpenses",o.MEASUREMENT="measurement",o.LEARNING="learning",o.IMPACT="impact",o.LEADERSHIP="leadership",o.PROGRAM_PLANNING="programPlanning",o.GOVERNANCE="governance",o.COMPENSATION_PRACTICES="compensationPractices",o.WORKPLACE_POLICIES="workplacePolicies",o.SALARY_INFORMATION="salaryInformation",o),p=((r={}).MISSION_VISION_GOAL="missionVisionGoals",r.LEADERSHIP_INVESTMENT="leadershipInvestment",r.EXTERNAL_ENGAGEMENT="externalEngagement",r.ADAPTABILITY="adaptability",r.THEORY_OF_CHANGE_PRACTICES="theoryOfChangePractices",r.THEORY_OF_CHANGE_SHARED_UNDERSTANDING="theoryOfChangeSharedUnderstanding",r.SETS_SMART_OBJECTIVES="setsSmartObjectives",r.MONITORING_AND_EVALUATION_PRACTICES="monitoringAndEvaluationPractices",r.NEEDS_ASSESSMENT="needsAssessment",r.BOARD_APPROVED_BUDGET="boardApprovedBudget",r.INDEPENDENT_BOARD_SIZE="independentBoardSize",r.INDEPENDENT_BOARD_MAJORITY="independentBoardMajority",r.DOCUMENTS_BOARD_MEETING_MINUTES="documentsBoardMeetingMinutes",r.TAX_FORM_DISTRIBUTED_TO_BOARD_BEFORE_FILING="taxFormDistributedToBoardBeforeFiling",r.WEBSITE_REPORTED_ON_TAX_FORM="websiteReportedOnTaxForm",r.NO_MATERIAL_DIVERSION_OF_ASSETS="noMaterialDiversionOfAssets",r.FINANCIAL_STATEMENTS="financialStatements",r.AUDIT_OVERSIGHT_COMMITTEE="auditOversightCommittee",r.NO_LOANS_REPORTED_TO_OR_FROM_OFFICERS="noLoansReportedToOrFromOfficers",r.RECORDS_RETENTION_POLICY="recordsRetentionPolicy",r.TAX_FORM_ON_WEBSITE="taxFormOnWebsite",r.WEBSITE_DISCLOSURES="websiteDisclosures",r.PROGRAM_EXPENSE_RATIO="programExpenseRatio",r.LIABILITIES_TO_ASSETS_RATIO="liabilitiesToAssetsRatio",r.WORKING_CAPITAL="workingCapital",r.FUNDRAISING_EFFICIENCY="fundraisingEfficiency",r.INVESTED_IN_MONITORING_AND_EVALUATION="investedInMonitoringAndEvaluation",r.ESTABLISHED_MONITORING_AND_EVALUATION_SYSTEM="establishedMonitoringAndEvaluationSystem",r.UNDERSTOOD_BARRIERS_TO_ACCESS="understoodBarriersToAccess",r.DEFINED_TARGET_POPULATION="definedTargetPopulation",r.DATA_COLLECTED_ACROSS_PROGRAM_LIFECYCLE="dataCollectedAcrossProgramLifecycle",r.DATA_ANALYSIS_PRACTICES="dataAnalysisPractices",r.LEADERSHIP_COMMITMENT_TO_MONITORING_AND_EVALUATION="leadershipCommitmentToMonitoringAndEvaluation",r.REPORTS_RESULTS_TO_STAKEHOLDERS="reportsResultsToStakeholders",r.RESPONSIBLE_DISCLOSURE_OF_RESULTS="responsibleDisclosureOfResults",r.USES_RESULTS_TO_IMPROVE_PROGRAMS="usesResultsToImprovePrograms",r.COLLECTS_CONSTITUENT_FEEDBACK="collectsConstituentFeedback",r.FEEDBACK_PRACTICES="feedbackPractices",r.COST_EFFECTIVENESS="costEffectiveness",r.DATA_QUALITY="dataQuality",r.NO_REPORTED_COMPENSATION_FOR_BOARD_MEMBERS="noReportedCompensationForBoardMembers",r.CEO_SALARY_DISCLOSED="ceoSalaryDisclosed",r.CEO_COMPENSATION_POLICY="ceoCompensationPolicy",r.PROMOTIONAL_PAY_POLICY="promotionalPayPolicy",r.REGULARLY_REVIEWED_COMPENSATION_STRUCTURE="regularlyReviewedCompensationStructure",r.EMPLOYEE_BENEFIT_RATIO="employeeBenefitRatio",r.WHISTLEBLOWER_POLICY="whistleblowerPolicy",r.CONFLICT_OF_INTEREST_POLICY="conflictOfInterestPolicy",r.WORKPLACE_POLICIES="workplacePolicies",r.HIRING_AND_EMPLOYEE_PERFORMANCE_PRACTICES="hiringAndEmployeePerformancePractices",r.IMPACT_MODEL="impactModel",r.COST_PER_OUTCOME="costPerOutcome",r.SYNTHETIC_CONTRIBUTION_SOURCES="contrubutionSources",r.SYNTHETIC_DONOR_SUPPORT_RATIO="donorSupportRatio",r.SYNTHETIC_TOTAL_REVENUE_AND_EXPENSES="totalRevenueAndExpensesOne",r.SYNTHETIC_HIGH_AVERAGE_COMPENSATION_RATIO="highAverageCompensationRatio",r.SYNTHETIC_SALARIES_KEY_PERSONS="salariesKeyPersons",r),f=((a={}).ACCOUNTABILITY_AND_FINANCE="accountabilityAndFinance",a.IMPACT_AND_MEASUREMENT="impactAndMeasurement",a.CULTURE_AND_COMPENSATION="cultureAndCompensation",a.LEADERSHIP_AND_PLANNING="leadershipAndPlanning",a),E=((s={}).BINARY="BINARY",s.RATIO="RATIO",s.NUMERIC="NUMERIC",s.TEXT="TEXT",s.CHECKBOX="CHECKBOX",s.TABLE="TABLE",s.VERTICAL_BAR="VERTICAL_BAR",s.TABLE_TYPE2="TABLE_TYPE2",s);e.s(["ADDITIONAL_INFO_METRICS",0,["totalRevenueAndExpensesOne","contrubutionSources","donorSupportRatio","highAverageCompensationRatio","salariesKeyPersons"],"BeaconNewEnum",()=>f,"EvaluationAreasEnum",()=>
1d,"FinancialStatementType",()=>u,"MetricEnum",()=>p,"MetricTypes",()=>E,"RatingNotEligibleEnum",()=>l,"StarRatingValue",()=>c,"beaconNewDisplayNames",0,{accountabilityAndFinance:"Accountability & Finance",impactAndMeasurement:"Impact & Measurement",cultureAndCompensation:"Culture & Compensation",leadershipAndPlanning:"Leadership & Planning"},"beaconOrder",0,["accountabilityAndFinance","impactAndMeasurement","leadershipAndPlanning","cultureAndCompensation"],"evaluationAreaOrder",0,{accountabilityAndFinance:["accountability","financialHealth","revenueAndExpenses"],impactAndMeasurement:["measurement","learning","impact"],leadershipAndPlanning:["leadership","governance","programPlanning"],cultureAndCompensation:["compensationPractices","workplacePolicies","salaryInformation"]}])},33633,3935,e=>{"use strict";var t=e.i(71645),n=e.i(14189);function i(e,i){let o=(0,t.useRef)([]),r=(0,n.useEvent)(e);(0,t.useEffect)(()=>{let e=[...o.current];for(let[t,n]of i.entries())if(o.current[t]!==n){let t=r(i,e);return o.current=i,t}},[r,...i])}e.s(["useWatch",()=>i],33633);var o=e.i(13581),r=e.i(52265);let a=[];function s(){"loading"!==document.readyState&&((()=>{function e(e){if(!o.isHTMLorSVGElement(e.target)||e.target===document.body||a[0]===e.target)return;let t=e.target;t=t.closest(r.focusableSelector),a.unshift(null!=t?t:e.target),(a=a.filter(e=>null!=e&&e.isConnected)).splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})})(),document.removeEventListener("DOMContentLoaded",s))}"u">typeof window&&"u">typeof document&&(document.addEventListener("DOMContentLoaded",s),s()),e.s(["history",()=>a],3935)},5363,99912,e=>{"use strict";var t,n,i,o,r=((t={}).LOW="LOW",t.MEDIUM="MEDIUM",t.HIGH="HIGH",t.HIGHEST="HIGHEST",t),a=((n={}).Reported="Reported",n.Alleged="Alleged",n.Confirmed="Confirmed",n),s=((i={}).FakeEntity="Fake Entity",i.FraudulentEntity="Fraudulent Entity",i.Dissolution="Dissolution",i.Fraud="Fraud",i.Embezzlement="Embezzlement",i.SexualAbuseHarassment="Sexual Abuse/Harassment",i.RacialAbuseHarassment="Racial Abuse/Harassment",i.Discrimination="Discrimination",i.AnimalAbuseNeglect="Animal Abuse/Neglect",i.ConspiracyBribery="Conspiracy/Bribery",i.BankruptcyFiling="Bankruptcy Filing",i.DonorDataBreachWithoutDisclosure="Donor Data Breach without Disclosure",i.OtherMaterialIllegalActivity="Other Material Illegal Activity",i.OtherMaterialLawsuit="Other Material Lawsuit",i.OtherMaterialInvestigation="Other Material Investigation",i.MatterOfConcern="Matter of Concern",i.Settlement="Settlement",i.Delinquency="Delinquency",i.Suspension="Suspension",i.SubjectOfCeaseAndDesistOrder="Subject of Cease and Desist Order",i.Revocation="Revocation",i.OtherInabilityToOperateOrSolicit="Other Inability to Operate or Solicit",i);function l(e){switch(e){case r.LOW:return 1;case r.MEDIUM:return 2;case r.HIGH:return 3;case r.HIGHEST:return 4;default:return 0}}function u(e){return[...e].sort((e,t)=>l(t.level)-l(e.level))}function c(e){return u(e)[0]??null}function d(e){return u(e).reduce((e,t)=>`${e}${m(t)}
2
3`,"")}(o={}).Pending="Pending",o.Prevented="Prevented",o.Removed="Removed",o.Active="Active",o.Archived="Archived",e.s(["AlertLevel",()=>r,"OffenseEnum",()=>s,"SeverityEnum",()=>
3a],99912);let p=e=>e?new Date(e).toLocaleString("en-US",{month:"long",day:"numeric",year:"numeric",timeZone:"UTC"}):"Unknown Date",f=e=>`On ${p(e?.publishedDt)}, ${e?.outlet} reported on `,E=e=>`[${e?.outlet}](${e?.url})`,m=e=>{let t,n=(t=e.uploadedResponseUrl?`
4+ This charity has provided a [response to this alert](${e.uploadedResponseUrl}).`:"",e.sources.sort((e,t)=>e.publishedDt?t.publishedDt?new Date(e.publishedDt).getTime()-new Date(t.publishedDt).getTime():1:-1).reduce((e,t)=>{if(!t.isPrimary)return`${e}
5+ On ${p(t.publishedDt)}, ${t.outlet} published an article titled "${t.title}." For more information, please see ${E(t)} article`;return e},t));return`${(e=>{let t=e.sources.find(e=>!0===e.isPrimary)??e.sources[0];if(!t)return"";switch(s[e.offense]){case s.FakeEntity:return`${f(t)} the operations of ${e.nonprofitName} in an article titled, "${t?.title}." It has come to our attention that this organization is not registered with the IRS, but is soliciting from the general public in violation of federal tax law. For more information, please see ${E(t)} article.`;case s.FraudulentEntity:case s.MatterOfConcern:return`${f(t)} the operations of ${e.nonprofitName} in an article titled, "${t?.title}." For more information, please see ${E(t)} article.`;case s.Dissolution:return`${f(t)} the operations of ${e.nonprofitName} in an article titled, "${t?.title}." The reporting indicates that this organization has recently dissolved. For more information, please see ${E(t)} article.`;case s.Embezzlement:return`${f(t)} a material diversion of assets ${e.severity===a.Confirmed?"confirmed to have":"reported to have allegedly"} taken place at ${e.nonprofitName} in an article titled, "${t?.title}." For more information regarding this matter, please see ${E(t)} article.`;case s.OtherMaterialInvestigation:return`${f(t).replace("on","that")} ${e.nonprofitName} is the subject of an active investigation in an article titled, "${t?.title}." For more information regarding this matter, please see ${E(t)} article.`;case s.BankruptcyFiling:return`${f(t)} the bankruptcy of ${e.nonprofitName} in an article titled, "${t?.title}." For more information regarding this matter, please see ${E(t)} article.`;case s.DonorDataBreachWithoutDisclosure:return`${f(t)} a security breach involving donor information ${e.severity===a.Confirmed?"confirmed":"alleged"} to have taken place ${e.nonprofitName}, in an article titled, "${t?.title}." For more information regarding this matter, please see ${E(t)} article.`;case s.Settlement:return`${f(t)} a settlement entered into by ${e.nonprofitName} in an article titled, “${t?.title}.” For more information regarding this matter, please see ${E(t)} article.`;case s.Delinquency:return`This organization appears on the most recent listing of nonprofits that are delinquent with [California state registrations](${t.url})`;case s.Suspension:case s.Revocation:case s.SubjectOfCeaseAndDesistOrder:case s.OtherInabilityToOperateOrSolicit:return`This organization appears on the most recent listing of nonprofits that [May Not Operate or Solicit for Charitable Purposes](${t.url})`;case s.Fraud:case s.SexualAbuseHarassment:case s.RacialAbuseHarassment:case s.Discrimination:case s.AnimalAbuseNeglect:case s.ConspiracyBribery:case s.OtherMaterialIllegalActivity:default:return`${f(t)} the operations of ${e.nonprofitName} in an article titled, "${t?.title}." For more information, please see ${E(t)} article.`}})(e)}${n}`};e.s(["getAlertLevelFromString",0,e=>{if(e)switch(e.trim().toLowerCase().replace(/\s+/g,"")){case"low":case"reviewbeforeproceeding":return r.LOW;case"moderate":case"proceedwithcaution":case"medium":return r.MEDIUM;case"high":case"proceedwithincreasedcaution":return r.HIGH;case"highest":case"superhigh":case"givingnotrecommended":return r.HIGHEST;default:return}},"getAlertLevelMessage",0,function(e){switch(e){case r.LOW:return"Review Before Proceeding";case r.MEDIUM:return"Proceed with Caution";case r.HIGH:return"Proceed with Increased Caution";case r.HIGHEST:return"Giving Not Recommended";default:return}},"getAlertMarkdown",()=>d,"getHighestAlert",()=>c,"sortAlertsBySeverity",()=>u],5363)},95470,36289,3269,14520,40721,4016,e=>{"use strict";let t,n,i,o;var r=e.i(29427),a=e.i(71330),s=e.i(71645),l=e.i(74080),u=e.i(94487);function c(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}function d(e=c){return(0,s.useCallback)((t,n)=>"string"==typeof e?(null==t?void 0:t[e])===(null==n?void 0:n[e]):e(t,n),[e])}e.s(["useByComparator",()=>d],36289);var p=e.i(14189);
5function f(e,t,n){let[i,o]=(0,s.useState)(n),r=void 0!==e,a=(0,s.useRef)(r),u=(0,s.useRef)(!1),c=(0,s.useRef)(!1);return!r||a.current||u.current?r||!a.current||c.current||(c.current=!0,a.current=r,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.")):(u.current=!0,a.current=r,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.")),[r?e:i,(0,p.useEvent)(e=>(r||(0,l.flushSync)(()=>o(e)),null==t?void 0:t(e)))]}function E(e){let[t]=(0,s.useState)(e);return t}e.s(["useControllable",()=>f],3269),e.s(["useDefaultValue",()=>E],14520);var m=e.i(46725),O=e.i(92704),v=e.i(88374),S=e.i(84653),h=e.i(35696),A=e.i(41444),I=e.i(77891),b=e.i(52744),T=e.i(5083),g=e.i(57138),R=e.i(44279),_=e.i(1852),N=e.i(55743),y=e.i(94316),C=e.i(49578),P=e.i(71616),D=e.i(83733),L=e.i(1893),M=e.i(19751);function x(e,t){return e?e+"["+t+"]":t}var F=e.i(20),w=e.i(53664);let B=(0,s.createContext)(null);function H({children:e}){let t=(0,s.useContext)(B);if(!t)return s.default.createElement(s.default.Fragment,null,e);let{target:n}=t;return n?(0,l.createPortal)(s.default.createElement(s.default.Fragment,null,e),n):null}function U({data:e,form:t,disabled:n,onReset:i,overrides:o}
5){let[r,a]=(0,s.useState)(null),l=(0,m.useDisposables)();return(0,s.useEffect)(()=>{if(i&&r)return l.addEventListener(r,"reset",i)},[r,t,i]),s.default.createElement(H,null,s.default.createElement(k,{setForm:a,formId:t}),(function e(t={},n=null,i=[]){for(let[o,r]of Object.entries(t))!function t(n,i,o){if(Array.isArray(o))for(let[e,r]of o.entries())t(n,x(i,e.toString()),r);else o instanceof Date?n.push([i,o.toISOString()]):"boolean"==typeof o?n.push([i,o?"1":"0"]):"string"==typeof o?n.push([i,o]):"number"==typeof o?n.push([i,`${o}`]):null==o?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)}(o)&&!(0,s.isValidElement)(o)&&e(o,i,n)}(i,x(n,o),r);return i})(e).map(([e,i])=>s.default.createElement(w.Hidden,{features:w.HiddenFeatures.Hidden,...(0,F.compact)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:e,value:i,...o})})))}function k({setForm:e,formId:t}){return(0,s.useEffect)(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:s.default.createElement(w.Hidden,{features:w.HiddenFeatures.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let n=t.closest("form");n&&e(n)}})}e.s(["FormFields",()=>U],40721);let $=s.default.forwardRef(function({children:e,freeze:t},n){let i=G(t,e);return(0,s.isValidElement)(i)?(0,s.cloneElement)(i,{ref:n}):s.default.createElement(s.default.Fragment,null,i)});function G(e,t){let[n,i]=(0,s.useState)(t);return e||n===t||i(t),e?n:t}e.s(["Frozen",()=>$,"useFrozenData",()=>G],4016);var V=e.i(42803),K=e.i(33137),Y=e.i(41650),W=e.i(40407),z=e.i(65659),j=e.i(44508),Q=e.i(13581),X=e.i(52265),q=e.i(97701),Z=e.i(2155),J=e.i(35889),ee=e.i(98348),et=e.i(22678),en=e.i(35307),ei=e.i(25720),eo=e.i(67310),er=Object.defineProperty,ea=(e,t,n)=>{let i;return(i="symbol"!=typeof t?t+"":t)in e?er(e,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[i]=n,n},es=((t=es||{})[t.Open=0]="Open",t[t.Closed=1]="Closed",t),el=((n=el||{})[n.Single=0]="Single",n[n.Multi=1]="Multi",n),eu=((i=eu||{})[i.Pointer=0]="Pointer",i[i.Other=1]="Other",i),ec=((o=ec||{})[o.OpenListbox=0]="OpenListbox",o[o.CloseListbox=1]="CloseListbox",o[o.GoToOption=2]="GoToOption",o[o.Search=3]="Search",o[o.ClearSearch=4]="ClearSearch",o[o.SelectOption=5]="SelectOption",o[o.RegisterOptions=6]="RegisterOptions",o[o.UnregisterOptions=7]="UnregisterOptions",o[o.SetButtonElement=8]="SetButtonElement",o[o.SetOptionsElement=9]="SetOptionsElement",o[o.SortOptions=10]="SortOptions",o[o.MarkButtonAsMoved=11]="MarkButtonAsMoved",o);function ed(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,i=(0,X.sortByDomNode)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),o=n?i.indexOf(n):null;return -1===o&&(o=null),{options:i,activeOptionIndex:o}}let ep={1(e){if(e.dataRef.current.disabled||1===e.listboxState)return e;let t=e.buttonElement?eo.ElementPositionState.Tracked((0,eo.computeVisualPosition)(e.buttonElement)):e.buttonPositionState;return{...e,activeOptionIndex:null,pendingFocus:{focus:z.Focus.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,o=e.options.findIndex(e=>i(e.dataRef.current.value));return -1!==o&&(n=o),{...e,frozenValue:!1,pendingFocus:t.focus,listboxState:0,activeOptionIndex:n,__demoMode:!1,buttonPositionState:eo.ElementPositionState.Idle}},2(e,t){var n,i,o,r,a;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===z.Focus.Nothing)return{...s,activeOptionIndex:null};if(t.focus===z.Focus.Specific)return{...s,activeOptionIndex:e.options.findIndex(e=>e.id===t.id)};if(t.focus===z.Focus.Previous){let n=e.activeOptionIndex;if(null!==n){let r=e.options[n].dataRef.current.domRef,a=(0,z.calculateActiveIndex)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==a){let t=e.options[a].dataRef.current.domRef;if((null==(i=r.current)?void 0:i.previousElementSibling)===t.current||(null==(o=t.current)?void 0:o.previousElementSibling)===null)return{...s,activeOptionIndex:a}}}}else if(t.focus===z.Focus.Next){let n=e.activeOptionIndex;if(null!==n){let i=e.options[n].dataRef.current.domRef,o=(0,z.calculateActiveIndex)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==o){let t=e.options[o].dataRef.current.domRef;if((null==(r=i.current)?void 0:r.nextElementSibling)===t.current||(null==(a=t.current)?void 0:a.nextElementSibling)===null)return{...s,activeOptionIndex:o}}}}let l=ed(e),u=(0,z.calculateActiveIndex)(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...s,...l,activeOptionIndex:u}},3:(e,t)=>
5{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=+(""===e.searchQuery),i=e.searchQuery+t.value.toLowerCase(),o=(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))}),r=o?e.options.indexOf(o):-1;return -1===r||r===e.activeOptionIndex?{...e,searchQuery:i}:{...e,searchQuery:i,activeOptionIndex:r,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!==z.Focus.Nothing&&(i=(0,z.calculateActiveIndex)(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:z.Focus.Nothing},pendingShouldSort:!0}},7:(e,t)=>{let n=e.options,i=[],o=new Set(t.options);for(let[e,t]of n.entries())if(o.has(t.id)&&(i.push(e),o.delete(t.id),0===o.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,...ed(e),pendingShouldSort:!1}:e,11:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:eo.ElementPositionState.Moved}};class ef extends ei.Machine{constructor(e){super(e),ea(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:i,value:o}=this.state.dataRef.current;return(0,q.match)(i,{0:()=>null==t?void 0:t(e),1:()=>{let i=o.slice(),r=i.findIndex(t=>n(t,e));return -1===r?i.push(e):i.splice(r,1),null==t?void 0:t(i)}})},registerOption:(0,ei.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,ei.batch)(()=>{let e=[];return[t=>e.push(t),()=>{this.send({type:7,options:e.splice(0)})}]}),goToOption:(0,ei.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})}}),ea(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,o=e.options;return null!==i&&(null==(n=o[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=Y.stackMachines.get(null);this.disposables.add(t.on(Y.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((0,eo.detectMovement)(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 ef({id:e,dataRef:{current:{}},listboxState:+!t,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:z.Focus.Nothing},frozenValue:!1,__demoMode:t,buttonPositionState:eo.ElementPositionState.Idle})}reduce(e,t){return(0,q.match)(t.type,ep,e,t)}}var eE=e.i(26599);let em=(0,s.createContext)(null);function eO(e){let t=(0,s.useContext)(em);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ev),t}return t}function ev({id:e,__demoMode:t=!1}){let n=(0,s.useMemo)(()=>ef.new({id:e,__demoMode:t}),[]);return(0,eE.useOnUnmount)(()=>n.dispose()),n}let eS=(0,s.createContext)(null);function eh(e){let t=(0,s.useContext)(eS);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,eh),t}return t}eS.displayName="ListboxDataContext";let eA=s.Fragment,eI=(0,s.createContext)(!1),eb=F.RenderFeatures.RenderStrategy|F.RenderFeatures.Static,eT=s.Fragment,eg=(0,F.forwardRefWithAs)(function(e,t){let n=(0,s.useId)(),i=(0,L.useDisabled)(),{value:o,defaultValue:r,form:a,name:l,onCh
5ange:u,by:c,invalid:p=!1,disabled:m=i||!1,horizontal:O=!1,multiple:v=!1,__demoMode:S=!1,...A}=e,I=(0,y.useSyncRefs)(t),T=E(r),[g=v?[]:void 0,R]=f(o,u,T),_=ev({id:n,__demoMode:S}),C=(0,s.useRef)({static:!1,hold:!1}),P=(0,s.useRef)(new Map),D=d(c),x=(0,s.useCallback)(e=>(0,q.match)(w.mode,{[el.Multi]:()=>g.some(t=>D(t,e)),[el.Single]:()=>D(g,e)}),[g]),w=(0,N.useSlot)({value:g,disabled:m,invalid:p,mode:v?el.Multi:el.Single,orientation:O?"horizontal":"vertical",onChange:R,compare:D,isSelected:x,optionsPropsRef:C,listRef:P});(0,h.useIsoMorphicEffect)(()=>{_.state.dataRef.current=w},[w]);let B=(0,W.useSlice)(_,e=>e.listboxState),H=Y.stackMachines.get(null),k=(0,W.useSlice)(H,(0,s.useCallback)(e=>H.selectors.isTop(e,n),[H,n])),[$,G]=(0,W.useSlice)(_,e=>[e.buttonElement,e.optionsElement]);(0,b.useOutsideClick)(k,[$,G],(e,t)=>{_.send({type:ec.CloseListbox}),(0,X.isFocusableElement)(t,X.FocusableMode.Loose)||(e.preventDefault(),null==$||$.focus())});let V=(0,N.useSlot)({open:B===es.Open,disabled:m,invalid:p,value:g}),[z,j]=(0,et.useLabels)({inherit:!0}),Q=(0,s.useCallback)(()=>{if(void 0!==T)return null==R?void 0:R(T)},[R,T]),Z=(0,F.useRender)();return s.default.createElement(j,{value:z,props:{htmlFor:null==$?void 0:$.id},slot:{open:B===es.Open,disabled:m}},s.default.createElement(M.FloatingProvider,null,s.default.createElement(em.Provider,{value:_},s.default.createElement(eS.Provider,{value:w},s.default.createElement(K.OpenClosedProvider,{value:(0,q.match)(B,{[es.Open]:K.State.Open,[es.Closed]:K.State.Closed})},null!=l&&null!=g&&s.default.createElement(U,{disabled:m,data:{[l]:g},form:a,onReset:Q}),Z({ourProps:{ref:I},theirProps:A,slot:V,defaultTag:eA,name:"Listbox"}))))))}),eR=(0,F.forwardRefWithAs)(function(e,t){let n=(0,s.useId)(),i=(0,V.useProvidedId)(),o=eh("Listbox.Button"),c=eO("Listbox.Button"),{id:d=i||`headlessui-listbox-button-${n}`,disabled:f=o.disabled||!1,autoFocus:E=!1,...m}=e,O=(0,y.useSyncRefs)(t,(0,M.useFloatingReference)(),c.actions.setButtonElement),S=(0,M.useFloatingReferenceProps)(),[h,A,I]=(0,W.useSlice)(c,e=>[e.listboxState,e.buttonElement,e.optionsElement]),b=h===es.Open;(0,g.useQuickRelease)(b,{trigger:A,action:(0,s.useCallback)(e=>{if(null!=A&&A.contains(e.target))return g.Action.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return Q.isHTMLElement(t)?g.Action.Select(t):null!=I&&I.contains(e.target)?g.Action.Ignore:g.Action.Close},[A,I]),close:c.actions.closeListbox,select:c.actions.selectActiveOption});let T=(0,p.useEvent)(e=>{switch(e.key){case ee.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 ee.Keys.Space:case ee.Keys.ArrowDown:e.preventDefault(),c.actions.openListbox({focus:o.value?z.Focus.Nothing:z.Focus.First});break;case ee.Keys.ArrowUp:e.preventDefault(),c.actions.openListbox({focus:o.value?z.Focus.Nothing:z.Focus.Last})}}),_=(0,p.useEvent)(e=>{e.key===ee.Keys.Space&&e.preventDefault()}),C=(0,v.useHandleToggle)(e=>{var t;c.state.listboxState===es.Open?((0,l.flushSync)(()=>c.actions.closeListbox()),null==(t=c.state.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),c.actions.openListbox({focus:z.Focus.Nothing}))}),P=(0,p.useEvent)(e=>e.preventDefault()),D=(0,et.useLabelledBy)([d]),L=(0,J.useDescribedBy)(),{isFocusVisible:x,focusProps:w}=(0,r.useFocusRing)({autoFocus:E}),{isHovered:B,hoverProps:H}=(0,a.useHover)({isDisabled:f}),{pressed:U,pressProps:k}=(0,u.useActivePress)({disabled:f}),$=(0,N.useSlot)({open:h===es.Open,active:U||h===es.Open,disabled:f,invalid:o.invalid,value:o.value,hover:B,focus:x,autofocus:E}),G=(0,W.useSlice)(c,e=>e.listboxState===es.Open),K=(0,F.mergeProps)(S(),{ref:O,id:d,type:(0,R.useResolveButtonType)(e,A),"aria-haspopup":"listbox","aria-controls":null==I?void 0:I.id,"aria-expanded":G,"aria-labelledby":D,"aria-describedby":L,disabled:f||void 0,autoFocus:E,onKeyDown:T,onKeyUp:_,onKeyPress:P},C,w,H,k);return(0,F.useRender)()({ourProps:K,theirProps:m,slot:$,defaultTag:"button",name:"Listbox.Button"})}),e_=et.Label,eN=(0,F.forwardRefWithAs)(function(e,t){let n=(0,s.useId)(),{id:i=`headlessui-listbox-options-${n}
5`,anchor:o,portal:r=!1,modal:a=!0,transition:u=!1,...c}=e,d=(0,M.useResolvedAnchor)(o),[f,E]=(0,s.useState)(null);d&&(r=!0);let v=eh("Listbox.Options"),h=eO("Listbox.Options"),[A,b,g,R]=(0,W.useSlice)(h,e=>[e.listboxState,e.buttonElement,e.optionsElement,e.__demoMode]),C=(0,T.useOwnerDocument)(b),P=(0,T.useOwnerDocument)(g),L=(0,K.useOpenClosed)(),[x,w]=(0,D.useTransition)(u,f,null!==L?(L&K.State.Open)===K.State.Open:A===es.Open);(0,I.useOnDisappear)(x,b,h.actions.closeListbox);let B=!R&&a&&A===es.Open;(0,_.useScrollLock)(B,P);let H=!R&&a&&A===es.Open;(0,S.useInertOthers)(H,{allowed:(0,s.useCallback)(()=>[b,g],[b,g])});let U=!(0,W.useSlice)(h,h.selectors.didButtonMove)&&x,k=G((0,W.useSlice)(h,h.selectors.hasFrozenValue)&&!e.static,v.value),$=(0,s.useCallback)(e=>v.compare(k,e),[v.compare,k]),V=(0,W.useSlice)(h,e=>{var t;if(null==d||!(null!=(t=null==d?void 0:d.to)&&t.includes("selection")))return null;let n=e.options.findIndex(e=>$(e.dataRef.current.value));return -1===n&&(n=0),n}),Y=(()=>{if(null==d)return;if(null===V)return{...d,inner:void 0};let e=Array.from(v.listRef.current.values());return{...d,inner:{listRef:{current:e},index:V}}})(),[j,Q]=(0,M.useFloatingPanel)(Y),J=(0,M.useFloatingPanelProps)(),et=(0,y.useSyncRefs)(t,d?j:null,h.actions.setOptionsElement,E),ei=(0,m.useDisposables)();(0,s.useEffect)(()=>{g&&A===es.Open&&((0,Z.isActiveElement)(g)||null==g||g.focus({preventScroll:!0}))},[A,g]);let eo=(0,p.useEvent)(e=>{var t;switch(ei.dispose(),e.key){case ee.Keys.Space:if(""!==h.state.searchQuery)return e.preventDefault(),e.stopPropagation(),h.actions.search(e.key);case ee.Keys.Enter:e.preventDefault(),e.stopPropagation(),h.actions.selectActiveOption();break;case(0,q.match)(v.orientation,{vertical:ee.Keys.ArrowDown,horizontal:ee.Keys.ArrowRight}):return e.preventDefault(),e.stopPropagation(),h.actions.goToOption({focus:z.Focus.Next});case(0,q.match)(v.orientation,{vertical:ee.Keys.ArrowUp,horizontal:ee.Keys.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),h.actions.goToOption({focus:z.Focus.Previous});case ee.Keys.Home:case ee.Keys.PageUp:return e.preventDefault(),e.stopPropagation(),h.actions.goToOption({focus:z.Focus.First});case ee.Keys.End:case ee.Keys.PageDown:return e.preventDefault(),e.stopPropagation(),h.actions.goToOption({focus:z.Focus.Last});case ee.Keys.Escape:e.preventDefault(),e.stopPropagation(),(0,l.flushSync)(()=>h.actions.closeListbox()),null==(t=h.state.buttonElement)||t.focus({preventScroll:!0});return;case ee.Keys.Tab:e.preventDefault(),e.stopPropagation(),(0,l.flushSync)(()=>h.actions.closeListbox()),(0,X.focusFrom)(h.state.buttonElement,e.shiftKey?X.Focus.Previous:X.Focus.Next);break;default:1===e.key.length&&(h.actions.search(e.key),ei.setTimeout(()=>h.actions.clearSearch(),350))}}),er=(0,W.useSlice)(h,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),ea=(0,N.useSlot)({open:A===es.Open}),eu=(0,F.mergeProps)(d?J():{},{id:i,ref:et,"aria-activedescendant":(0,W.useSlice)(h,h.selectors.activeDescendantId),"aria-multiselectable":v.mode===el.Multi||void 0,"aria-labelledby":er,"aria-orientation":v.orientation,onKeyDown:eo,role:"listbox",tabIndex:A===es.Open?0:void 0,style:{...c.style,...Q,"--button-width":(0,O.useElementSize)(x,b,!0).width},...(0,D.transitionDataAttributes)(w)}),ec=(0,F.useRender)(),ed=(0,s.useMemo)(()=>v.mode===el.Multi?v:{...v,isSelected:$},[v,$]);return s.default.createElement(en.Portal,{enabled:!!r&&(e.static||x),ownerDocument:C},s.default.createElement(eS.Provider,{value:ed},ec({ourProps:eu,theirProps:c,slot:ea,defaultTag:"div",features:eb,visible:U,name:"Listbox.Options"}
5)))}),ey=(0,F.forwardRefWithAs)(function(e,t){let n=(0,s.useId)(),{id:i=`headlessui-listbox-option-${n}`,disabled:o=!1,value:r,...a}=e,l=!0===(0,s.useContext)(eI),u=eh("Listbox.Option"),c=eO("Listbox.Option"),d=(0,W.useSlice)(c,e=>c.selectors.isActive(e,i)),f=u.isSelected(r),E=(0,s.useRef)(null),m=(0,C.useTextValue)(E),O=(0,A.useLatestValue)({disabled:o,value:r,domRef:E,get textValue(){return m()}}),v=(0,y.useSyncRefs)(t,E,e=>{e?u.listRef.current.set(i,e):u.listRef.current.delete(i)}),S=(0,W.useSlice)(c,e=>c.selectors.shouldScrollIntoView(e,i));(0,h.useIsoMorphicEffect)(()=>{if(S)return(0,j.disposables)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=E.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[S,E]),(0,h.useIsoMorphicEffect)(()=>{if(!l)return c.actions.registerOption(i,O),()=>c.actions.unregisterOption(i)},[O,i,l]);let I=(0,p.useEvent)(e=>{if(o)return e.preventDefault();c.actions.selectOption(r)}),b=(0,p.useEvent)(()=>{if(o)return c.actions.goToOption({focus:z.Focus.Nothing});c.actions.goToOption({focus:z.Focus.Specific,id:i})}),T=(0,P.useTrackedPointer)(),g=(0,p.useEvent)(e=>T.update(e)),R=(0,p.useEvent)(e=>{T.wasMoved(e)&&(o||d&&c.state.activationTrigger===eu.Pointer||c.actions.goToOption({focus:z.Focus.Specific,id:i},eu.Pointer))}),_=(0,p.useEvent)(e=>{T.wasMoved(e)&&(o||d&&c.state.activationTrigger===eu.Pointer&&c.actions.goToOption({focus:z.Focus.Nothing}))}),D=(0,N.useSlot)({active:d,focus:d,selected:f,disabled:o,selectedOption:f&&l}),L=l?{}:{id:i,ref:v,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":f,disabled:void 0,onClick:I,onFocus:b,onPointerEnter:g,onMouseEnter:g,onPointerMove:R,onMouseMove:R,onPointerLeave:_,onMouseLeave:_},M=(0,F.useRender)();return!f&&l?null:M({ourProps:L,theirProps:a,slot:D,defaultTag:"div",name:"Listbox.Option"})}),eC=Object.assign(eg,{Button:eR,Label:e_,Options:eN,Option:ey,SelectedOption:(0,F.forwardRefWithAs)(function(e,t){let{options:n,placeholder:i,...o}=e,r={ref:(0,y.useSyncRefs)(t)},a=eh("ListboxSelectedOption"),l=(0,N.useSlot)({}),u=void 0===a.value||null===a.value||a.mode===el.Multi&&Array.isArray(a.value)&&0===a.value.length,c=(0,F.useRender)();return s.default.createElement(eI.Provider,{value:!0},c({ourProps:r,theirProps:{...o,children:s.default.createElement(s.default.Fragment,null,i&&u?i:n)},slot:l,defaultTag:eT,name:"ListboxSelectedOption"}))})});e.s(["Listbox",()=>eC,"ListboxButton",()=>eR,"ListboxOption",()=>ey,"ListboxOptions",()=>eN],95470)}]);

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.