1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7188],{33300:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var s=r(37876),n=r(14232),a=r(90030),i=r(31117),o=r(77073);function l(e){return"$"+(e/100).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}let d={donation:{label:"Donation",cls:"bg-orange-100 text-orange-700 dark:bg-orange-400/15 dark:text-orange-300"},monthly:{label:"Monthly",cls:"bg-purple-100 text-purple-700 dark:bg-purple-400/15 dark:text-purple-300"},vendor:{label:"Vendor",cls:"bg-sky-100 text-sky-700 dark:bg-sky-400/15 dark:text-sky-300"},sponsor:{label:"Sponsor",cls:"bg-indigo-100 text-indigo-700 dark:bg-indigo-400/15 dark:text-indigo-300"},ticket:{label:"Ticket",cls:"bg-teal-100 text-teal-700 dark:bg-teal-400/15 dark:text-teal-300"},program_ad:{label:"Book ad",cls:"bg-fuchsia-100 text-fuchsia-700 dark:bg-fuchsia-400/15 dark:text-fuchsia-300"},pos:{label:"Card sale",cls:"bg-emerald-100 text-emerald-700 dark:bg-emerald-400/15 dark:text-emerald-300"},membership:{label:"Membership",cls:"bg-amber-100 text-amber-700 dark:bg-amber-400/15 dark:text-amber-300"},other:{label:"Other",cls:"bg-gray-100 text-gray-600 dark:bg-white/10 dark:text-white/60"}};function c({category:e,type:t}){let r=d[e]||d["monthly"===t?"monthly":"donation"];return(0,s.jsx)("span",{className:`${r.cls} text-xs font-semibold px-2 py-0.5 rounded-full whitespace-nowrap`,children:r.label})}function h(){let{isAdmin:e}
1=(0,a.It)(),[t,r]=(0,n.useState)([]),[h,u]=(0,n.useState)(null),[m,x]=(0,n.useState)(!0),[p,g]=(0,n.useState)(""),[f,y]=(0,n.useState)(""),[b,v]=(0,n.useState)([]),[w,k]=(0,n.useState)({}),[j,_]=(0,n.useState)({}),[S,N]=(0,n.useState)(null),[C,F]=(0,n.useState)(null),[R,z]=(0,n.useState)("all"),[A,T]=(0,n.useState)(null),[E,O]=(0,n.useState)(!1),[$,D]=(0,n.useState)(null);(0,n.useEffect)(()=>{(0,o.B)("/api/admin/donation-series?days=90",F).catch(()=>{}),fetch("/api/admin/stripe-stats").then(e=>e.json()).then(u).catch(()=>{}),fetch("/api/admin/attribute-donation").then(e=>e.json()).then(e=>{v(e.causes??[]),k(e.attributions??{})}).catch(()=>{})},[]),(0,n.useEffect)(()=>{x(!0),fetch("/api/admin/donors").then(e=>e.json()).then(e=>{e.error&&!e.payments&&y(e.error),r(e.payments??e.donors??[]),T(e.totals??null),O(!!e.truncated),D(e.year??null),x(!1)}).catch(()=>x(!1))},[]);let L=e=>b.find(t=>t.slug===e)?.title||e;async function I(e){let t=j[e.id]||b[0]?.slug;if(t){N(e.id);try{let r=await fetch("/api/admin/attribute-donation",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({stripeId:e.id,causeSlug:t,amountCents:e.amount,email:e.email})}),s=await r.json();if(!r.ok)throw Error(s.error||"Failed");k(r=>({...r,[e.id]:t}))}catch(e){y(e.message)}finally{N(null)}}}let U=t.filter(e=>{if("all"!==R&&(e.category||"donation")!==R)return!1;if(!p)return!0;let t=p.toLowerCase();return(e.email||"").toLowerCase().includes(t)||(e.name||"").toLowerCase().includes(t)||(e.description||"").toLowerCase().includes(t)}),P=U.reduce((e,t)=>e+t.amount,0);return(0,s.jsxs)(a.Ay,{title:"Donors",children:[(0,s.jsx)("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3 md:gap-4 mb-6",children:[{label:"YTD total net of fees",value:h?l(h.allNetAfterFeesCents??h.netAfterFeesCents??h.totalRaised):"â",sub:h?`Gross ${l(h.allTotalCents??h.totalRaised)}${h.allFeesCents?` \xb7 less ${l(h.allFeesCents)} fees`:""}${h.allNeedFee?" \xb7 fees still filling in":""}`:`Jan 1 â ${new Date().toLocaleString("default",{month:"short",day:"numeric"})}`,color:"linear-gradient(135deg,#F26644,#FF9933)"},{label:"Donations, net of fees",value:h?l(h.netAfterFeesCents??h.totalRaised):"â",sub:h?`of the total above \xb7 ${h.count??0} gifts`:"gifts only",color:"linear-gradient(135deg,#F26644,#FF9933)"},{label:"This month",value:h?l(h.allThisMonthCents??h.thisMonth):"â",sub:`${new Date().toLocaleString("default",{month:"long",year:"numeric"})} \xb7 all payments`,color:"linear-gradient(135deg,#F26644,#FF9933)"},{label:"Donors YTD",value:h?h.donorCount:"â",sub:`Unique donors \xb7 avg gift ${h?l(h.avgDonation):"â"}`,color:"linear-gradient(135deg,#F26644,#FF9933)"}].map(({label:e,value:t,sub:r,color:n})=>
1(0,s.jsxs)("div",{className:"bg-white dark:bg-white/4 rounded-2xl border border-gray-100 dark:border-white/10 p-4 md:p-5 shadow-xs",children:[(0,s.jsx)("div",{className:"w-8 h-8 rounded-lg mb-3",style:{background:n}}),(0,s.jsx)("p",{className:"text-2xl font-black text-gray-900 dark:text-white",children:m?(0,s.jsx)("span",{className:"text-gray-200",children:"â"}):t}),(0,s.jsx)("p",{className:"text-gray-500 dark:text-white/60 text-xs font-medium mt-0.5",children:e}),(0,s.jsx)("p",{className:"text-gray-400 dark:text-white/40 text-xs",children:r})]},e))}),(0,s.jsxs)("div",{className:"bg-white dark:bg-white/4 border border-gray-100 dark:border-white/10 rounded-2xl shadow-xs p-5 mb-6",children:[(0,s.jsx)("h3",{className:"font-bold text-gray-900 dark:text-white mb-1",children:"Donations over time"}),(0,s.jsx)("p",{className:"text-gray-400 dark:text-white/40 text-xs mb-3",children:"Net daily donations (last 90 days) â refunds subtracted, POS / membership / ticket revenue excluded."}),C?0===(C.labels||[]).length?(0,s.jsx)("p",{className:"text-gray-400 dark:text-white/40 text-sm py-16 text-center",children:"No donation data (or Stripe isnât configured)."}):(0,s.jsx)(i.Q9,{labels:C.labels,series:[{key:"don",label:"Donations",data:C.amounts||[],color:i.mU[2]}],format:i.Ss,height:240}):(0,s.jsx)("div",{className:"h-[240px] rounded-xl bg-gray-50 dark:bg-white/5 animate-pulse"})]}),(0,s.jsxs)("div",{className:"bg-white dark:bg-white/4 border border-gray-100 dark:border-white/10 rounded-2xl shadow-xs p-5 mb-4",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-baseline justify-between gap-3 mb-1",children:[(0,s.jsxs)("h3",{className:"font-bold text-gray-900 dark:text-white",children:["All Stripe payments",$?` \xb7 ${$}`:""]}),(0,s.jsxs)("span",{className:"text-xs font-semibold text-gray-400 dark:text-white/40",children:["Jan 1 â ",new Date().toLocaleString("default",{month:"short",day:"numeric"})]})]}),(0,s.jsxs)("p",{className:"text-gray-400 dark:text-white/40 text-xs mb-4",children:["Year to date â the same payments as the total above. Refunds are subtracted; a fully refunded payment is left out.",E&&" Showing the first 5,000 of the year."]}),A&&(0,s.jsx)("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:[{label:"All payments",t:A.all,note:"every kind"},{label:"Donations only",t:A.gifts,note:"gifts, incl. monthly"},{label:"Vendor & sponsor",t:{count:(A.byCategory?.vendor?.count||0)+(A.byCategory?.sponsor?.count||0),amountCents:(A.byCategory?.vendor?.amountCents||0)+(A.byCategory?.sponsor?.amountCents||0)},note:"booth fees & sponsorships"},{label:"Tickets & card sales",t:{count:(A.byCategory?.ticket?.count||0)+(A.byCategory?.pos?.count||0),amountCents:(A.byCategory?.ticket?.amountCents||0)+(A.byCategory?.pos?.amountCents||0)},note:"events & in-person"}].map(({label:e,t,note:r})=>(0,s.jsxs)("div",{className:"rounded-xl bg-gray-50 dark:bg-white/4 px-4 py-3",children:[(0,s.jsx)("p",{className:"text-xl font-black text-gray-900 dark:text-white tabular-nums",children:l(t.amountCents||0)}),(0,s.jsx)("p",{className:"text-gray-500 dark:text-white/60 text-xs font-medium mt-0.5",children:e}),(0,s.jsxs)("p",{className:"text-gray-400 dark:text-white/40 text-xs",children:[t.count||0," payment",1===t.count?"":"s"," \xb7 ",r]})]},e))}),A?.byCategory&&(0,s.jsx)("div",{className:"flex flex-wrap gap-1.5 mt-4",children:[["all","All",A.all.count],...Object.entries(A.byCategory).sort((e,t)=>t[1].amountCents-e[1].amountCents).map(([e,t])=>[e,d[e]?.label||e,t.count])].map(([e,t,r])=>(0,s.jsxs)("button",{onClick:()=>z(e),className:`text-xs font-semibold px-3 py-1.5 rounded-full border transition-colors ${R===e?"bg-[#0F2044] text-white border-[#0F2044]":"bg-white dark:bg-white/4 text-gray-600 dark:text-white/60 border-gray-200 dark:border-white/10 hover:bg-gray-50 dark:hover:bg-white/6"}`,children:[t," ",(0,s.jsx)("span",{className:"opacity-60 tabular-nums",children:r})]},e))})]}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[(0,s.jsxs)("div",{className:"flex-1 min-w-0 relative",children:[(0,s.jsxs)("svg",{className:"absolute left-3.5 to
1p-1/2 -translate-y-1/2 text-gray-400 dark:text-white/40",width:"15",height:"15",fill:"none",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",children:[(0,s.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,s.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),(0,s.jsx)("input",{type:"text",placeholder:"Search by name or emailâ¦",value:p,onChange:e=>g(e.target.value),className:"w-full bg-white dark:bg-white/4 border border-gray-200 dark:border-white/10 rounded-xl pl-9 pr-4 py-2.5 text-sm focus:outline-hidden focus:ring-2 focus:ring-[#F26644]/20 focus:border-[#F26644] transition-all shadow-xs dark:text-white dark:placeholder-white/30"})]}),(0,s.jsxs)("button",{onClick:function(){let e=new Blob([["date,name,email,amount,kind,recurring,fee,stripe_id,description",...U.map(e=>[new Date(1e3*e.date).toLocaleDateString(),`"${(e.name||"").replace(/"/g,'""')}"`,e.email||"",(e.amount/100).toFixed(2),e.category||"donation","monthly"===e.type?"yes":"no",null==e.fee?"":(e.fee/100).toFixed(2),e.id,`"${(e.description||"").replace(/"/g,'""')}"`].join(","))].join("\n")],{type:"text/csv"}),t=URL.createObjectURL(e),r=document.createElement("a");r.href=t,r.download=`payments-${R}-${new Date().toISOString().slice(0,10)}.csv`,r.click(),URL.revokeObjectURL(t)},disabled:!U.length,className:"flex items-center gap-1.5 border border-gray-200 dark:border-white/10 bg-white dark:bg-white/4 text-gray-600 dark:text-white/60 text-xs font-semibold px-4 py-2.5 rounded-xl hover:bg-gray-50 dark:hover:bg-white/6 transition-all shadow-xs disabled:opacity-50",children:[(0,s.jsxs)("svg",{width:"13",height:"13",fill:"none",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",children:[(0,s.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,s.jsx)("polyline",{points:"7 10 12 15 17 10"}),(0,s.jsx)("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]}),(0,s.jsx)("span",{className:"hidden sm:inline",children:"Export CSV"})]}),e&&(0,s.jsx)("a",{href:"https://dashboard.stripe.com/payments",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 text-xs font-semibold px-4 py-2.5 rounded-xl text-white transition-all hover:opacity-90",style:{background:"linear-gradient(135deg,#635bff,#7c74ff)"},children:"Open Stripe â"})]}),!m&&t.length>0&&(0,s.jsxs)("p",{className:"text-gray-500 dark:text-white/50 text-xs mb-3",children:["Showing ",(0,s.jsx)("b",{className:"text-gray-700 dark:text-white/80",children:U.length})," of ",t.length," payments",("all"!==R||p)&&(0,s.jsxs)(s.Fragment,{children:[" \xb7 ",(0,s.jsx)("b",{className:"text-gray-700 dark:text-white/80 tabular-nums",children:l(P)})]})]}),f&&(0,s.jsx)("div",{className:"bg-amber-50 border border-amber-200 rounded-2xl px-5 py-4 mb-4 text-amber-800 text-sm",children:"Stripe not configured"===f?e?"Add STRIPE_SECRET_KEY to your environment variables to see donor data.":"Donor data isnât available right now. Contact your administrator.":`Error: ${f}`}
1),(0,s.jsx)("div",{className:"bg-white dark:bg-white/4 rounded-2xl border border-gray-100 dark:border-white/10 shadow-xs overflow-x-auto",children:m?(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2 text-gray-300 dark:text-white/40 py-16",children:[(0,s.jsxs)("svg",{className:"animate-spin",width:"18",height:"18",fill:"none",viewBox:"0 0 24 24",children:[(0,s.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,s.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Loadingâ¦"]}):0===U.length?(0,s.jsx)("div",{className:"text-center py-14",children:(0,s.jsx)("p",{className:"text-gray-400 dark:text-white/40 text-sm font-medium",children:"No payments found"})}):(0,s.jsxs)("table",{className:"w-full min-w-[500px]",children:[(0,s.jsx)("thead",{children:(0,s.jsx)("tr",{className:"border-b border-gray-100 dark:border-white/10",children:["Paid by","Amount","Kind","Date","Cause",""].map(e=>(0,s.jsx)("th",{className:"text-left px-5 py-3.5 text-xs font-semibold text-gray-400 dark:text-white/40 uppercase tracking-wide",children:e},e))})}),(0,s.jsx)("tbody",{children:U.map((e,t)=>(0,s.jsxs)("tr",{className:`border-b border-gray-50 dark:border-white/10 hover:bg-gray-50/60 dark:hover:bg-white/6 transition-colors ${t===U.length-1?"border-0":""}`,children:[(0,s.jsx)("td",{className:"px-5 py-4",children:(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"w-8 h-8 rounded-full flex items-center justify-center text-white text-xs font-bold shrink-0",style:{background:`hsl(${37*(e.email||e.id).charCodeAt(0)%360},55%,45%)`},children:(e.name?.[0]||e.email?.[0]||"?").toUpperCase()}),(0,s.jsxs)("div",{className:"min-w-0",children:[e.name&&(0,s.jsx)("p",{className:"text-gray-900 dark:text-white text-sm font-medium truncate",children:e.name}),(0,s.jsx)("p",{className:`text-sm truncate ${e.name?"text-gray-400 dark:text-white/40":"text-gray-700 dark:text-white/60 font-medium"}`,children:e.email||"Anonymous"}),e.description&&(0,s.jsx)("p",{className:"text-gray-400 dark:text-white/35 text-xs truncate max-w-[18rem]",title:e.description,children:e.description})]})]})}),(0,s.jsxs)("td",{className:"px-5 py-4",children:[(0,s.jsx)("span",{className:"text-gray-900 dark:text-white font-bold text-sm tabular-nums",children:l(e.amount)}),null!=e.fee&&(0,s.jsxs)("p",{className:"text-gray-400 dark:text-white/35 text-xs tabular-nums whitespace-nowrap",children:["less ",l(e.fee)," fee"]})]}),(0,s.jsxs)("td",{className:"px-5 py-4",children:[(0,s.jsx)(c,{category:e.category,type:e.type}),"monthly"!==e.category&&"monthly"===e.type&&(0,s.jsx)("span",{className:"block text-gray-400 dark:text-white/35 text-xs mt-0.5",children:"recurring"})]}),(0,s.jsx)("td",{className:"px-5 py-4 text-gray-400 dark:text-white/40 text-sm",children:new Date(1e3*e.date).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}),(0,s.jsx)("td",{className:"px-5 py-4",children:w[e.id]?(0,s.jsxs)("span",{className:"inline-flex items-center gap-1 bg-emerald-50 text-emerald-700 text-xs font-semibold px-2 py-1 rounded-full",children:[(0,s.jsx)("svg",{width:"11",height:"11",fill:"none",stroke:"currentColor",strokeWidth:"3",viewBox:"0 0 24 24",children:(0,s.jsx)("polyline",{points:"20 6 9 17 4 12"})}),L(w[e.id])]}):!1===e.gift?(0,s.jsx)("span",{className:"text-gray-300 dark:text-white/30 text-xs",title:"Only donations can be counted toward a cause. This is a vendor, ticket or card-sale payment.",children:"not a gift"}):b.length?(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[b.length>1&&(0,s.jsx)("select",{value:j[e.id]||b[0].slug,onChange:t=>_(r=>({...r,[e.id]:t.target.value})),className:"border border-gray-200 dark:border-white/10 rounded-lg px-2 py-1 text-xs bg-white dark:bg-white/4 dark:text-white max-w-[130px]",children:b.map(e=>(0,s.jsx)("option",{value:e.slug,children:e.title},e.slug))}),(0,s.jsx)("button",{onClick:()=>I(e),disabled:S===e.id,title:`Count this donation toward ${L(j[e.id]||b[0].slug)}`,className:"text-xs font-semibold px-2.5 py-1 rounded-lg border border-emerald-200 text-emerald-700 hover:bg-emerald-50 transition-colors disabled:opacity-50 whitespace-nowrap",children:S===e.id?"Addingâ¦":b.length>1?"Attribute":`+ ${b[0].title}`})]}):(0,s.jsx)("span",{className:"text-gray-300 dark:text-white/40 text-xs",children:"â"})}),(0,s.jsxs)("td",{className:"px-5 py-4 whitespace-nowrap",children:[e.receiptUrl&&(0,s.jsx)("a",{href:e.receiptUrl,target:"_blank",rel:"noopener noreferrer",className:"text-gray-300 dark:text-white/40 hover:text-[#635bff] transition-colors text-xs",children:"Receipt"}),e.stripeUrl&&(0,s.jsx)("a",{href:e.stripeUrl,target:"_blank",rel:"noopener noreferrer",title:e.id,className:"text-gray-300 dark:text-white/40 hover:text-[#635bff] transition-colors text-xs ml-2",children:"Stripe â"})]})]},e.id))})]})})]})}},59232:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/donors",function(){return r(33300)}])},72552:()=>{},72784:(e,t,r)=>{"use strict";var s=r(65364);r(72552);var n=r(14232),a=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(n),i=void 0!==s&&s.env&&!0,o=function(e){return"[object String]"===Object.prototype.toString.call(e)},l=function(){function e(e){var t=void 0===e?{}:e,r=t.name,s=void 0===r?"stylesheet":r,n=t.optimizeForSpeed,a=void 0===n?i:n;d(o(s),"`name` must be a string"),this._name=s,this._deletedRulePlaceholder="#"+s+"-deleted-rule____{}",d("boolean"==typeof a,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=a,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l=document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var t,r=e.prototype;return r.setOptimizeForSpeed=function(e){d("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),d(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},r.isOptimizeForSpeed=function(){return this._optimizeForSpeed},r.inject=function(){var e=this;if(d(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.get
1Sheet(),this._optimizeForSpeed||(i||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},r.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},r.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},r.insertRule=function(e,t){if(d(o(e),"`insertRule` accepts only strings"),this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof t&&(t=r.cssRules.length);try{r.insertRule(e,t)}catch(t){return i||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var s=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,s))}return this._rulesCount++},r.replaceRule=function(e,t){if(this._optimizeForSpeed){var r=this.getSheet();if(t.trim()||(t=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(t,e)}catch(s){i||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,e)}}else{var s=this._tags[e];d(s,"old rule at index `"+e+"` not found"),s.textContent=t}return e},r.deleteRule=function(e){if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];d(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},r.flush=function(){this._injected=!1,this._rulesCount=0,this._tags.forEac
1h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]},r.cssRules=function(){var e=this;return this._tags.reduce(function(t,r){return r?t=t.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},r.makeStyleTag=function(e,t,r){t&&d(o(t),"makeStyleTag accepts only strings as second parameter");var s=document.createElement("style");this._nonce&&s.setAttribute("nonce",this._nonce),s.type="text/css",s.setAttribute("data-"+e,""),t&&s.appendChild(document.createTextNode(t));var n=document.head||document.getElementsByTagName("head")[0];return r?n.insertBefore(s,r):n.appendChild(s),s},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var r=0;r<t.length;r++){var s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}(e.prototype,t),e}();function d(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var c=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},h={};function u(e,t){if(!t)return"jsx-"+e;var r=String(t),s=e+r;return h[s]||(h[s]="jsx-"+c(e+"-"+r)),h[s]}function m(e,t){var r=e+t;return h[r]||(h[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),h[r]}var x=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,s=void 0===r?null:r,n=t.optimizeForSpeed,a=void 0!==n&&n;this._sheet=s||new l({name:"styled-jsx",optimizeForSpeed:a}),this._sheet.inject(),s&&"boolean"==typeof a&&(this._sheet.setOptimizeForSpeed(a),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),s=r.styleId,n=r.rules;if(s in this._instancesCounts){this._instancesCounts[s]+=1;return}var a=n.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[s]=a,this._instancesCounts[s]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var s=this._fromServer&&this._fromServer[r];s?(s.parentNode.removeChild(s),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],s=e[1];return a.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:s}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,s=e.id;if(r){var n=u(s,r);return{styleId:n,rules:Array.isArray(t)?t.map(function(e){return m(n,e)}):[m(n,t)]}}return{styleId:u(s),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),p=n.createContext(null);p.displayName="StyleSheetContext";var g=a.default.useInsertionEffect||a.default.useLayoutEffect,f=new x;function y(e){var t=f||n.useContext(p);return t&&g(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}y.dynamic=function(e){return e.map(function(e){return u(e[0],e[1])}).join(" ")},t.style=y},75961:(e,t,r)=>{"use strict";e.exports=r(72784).style},77073:(e,t,r)=>{"use strict";r.d(t,{B:()=>n});var s=r(79004);function n(e,t,{key:r=e}={}){if(r){let e=(0,s.tv)(`json:${r}`);if(void 0!==e)try{t(e)}catch{}}return fetch(e).then(e=>e.json()).then(e=>(r&&(0,s.lx)(`json:${r}`,e),t(e)))}}},e=>{e.O(0,[8230,8766,5466,30,1117,636,6593,8792],()=>e(e.s=59232)),_N_E=e.O()}]);
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.