@cfpb/ccdb5-ui 2.11.0 → 2.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ccdb5.css +2 -2
- package/dist/ccdb5.css.map +1 -1
- package/dist/ccdb5.js +4 -4
- package/dist/ccdb5.js.map +1 -1
- package/package.json +14 -14
package/dist/ccdb5.js
CHANGED
|
@@ -332,15 +332,15 @@ For more details see https://formatjs.io/docs/getting-started/message-distributi
|
|
|
332
332
|
The error may be correlated with this previous error:
|
|
333
333
|
`+dt.current.stack+`
|
|
334
334
|
|
|
335
|
-
`),ae}return cu(function(){St.current=t,xt.current=Ut,Ct.current=Wt,dt.current=void 0}),cu(function(){function ae(){try{var ue=r.getState();if(ue===xt.current)return;var he=St.current(ue);if(e(he,Ct.current))return;Ct.current=he,xt.current=ue}catch(ye){dt.current=ye}C()}return J.onStateChange=ae,J.trySubscribe(),ae(),function(){return J.tryUnsubscribe()}},[r,J]),Wt}function Cw(t){t===void 0&&(t=Es);var e=t===Es?P1:function(){return(0,a.useContext)(t)};return function(i,g){g===void 0&&(g=Lc);var C=e(),J=C.store,dt=C.subscription,St=k1(i,g,J,dt);return(0,a.useDebugValue)(St),St}}var vr=Cw();wi(H.unstable_batchedUpdates);var Tw=Un(7322),_r=Un.n(Tw),RS=Un(4481),IS=Un.n(RS),dl=Un(9435),O1=Un.n(dl);_r().extend(IS()),_r().extend(O1());const hu=t=>_r()(new Date(t)).format("YYYY-MM-DD"),jS=t=>_r()(new Date(t)).utc().add(5.5,"hours").format(),Cy=t=>dayjs(new Date(t)).utc().add(5.5,"hours").format("YYYY-MM-DD"),D1=t=>dayjs(new Date(t)).utc().add(5.5,"hours").format("ll"),fu=(t,e)=>_r()(new Date(t)).isSame(new Date(e),"day"),N1=(t,e)=>fu(t,e)?0:new Date(t)<new Date(e)?-1:1,Rc="2011-12-01T12:00:00.000Z",Ic="M/D/YYYY",Ss=hu(new Date),Cs=hu(Rc),Ty="MODAL_TYPE_DATA_EXPORT",My="MODAL_TYPE_EXPORT_CONFIRMATION",Ay="MODAL_TYPE_MORE_ABOUT",FS="Document",Ah="Map",pa="List",to="Trends",To="None",Ys="Per 1000 pop.",Py="complaint_what_happened",Ki="REQUERY_ALWAYS",zf="REQUERY_HITS_ONLY",is="REQUERY_NEVER",Uf=["company","company_public_response","company_response","consumer_consent_provided","consumer_disputed","issue","product","state","submitted_via","tags","timely","zip_code"],Wf=["company_received_max","company_received_min","date_received_max","date_received_min"],Mw=["Day","Week","Month","Quarter","Year"],Aw=["3m","6m","1y","3y","All"],eP=null,Gf=["has_narrative"],ky=["issue","product"],Vf=["Overview","Company","Product"],Ph={};Ph[10]="10 results",Ph[25]="25 results",Ph[50]="50 results",Ph[100]="100 results";const og={created_date_desc:"Newest to oldest",created_date_asc:"Oldest to newest",relevance_desc:"Relevance",relevance_asc:"Relevance (asc)"},os="\u2022",BS=40,HS=14,zS=27,US=13,WS=9,GS=38,Oy={AA:"Armed Forces Americas",AE:"Armed Forces Europe",AL:"Alabama",AK:"Alaska",AS:"American Samoa",AP:"Armed Forces Pacific",AZ:"Arizona",AR:"Arkansas",CA:"California",CO:"Colorado",CT:"Connecticut",DE:"Delaware",DC:"District Of Columbia",FM:"Federated States Of Micronesia",FL:"Florida",GA:"Georgia",GU:"Guam",HI:"Hawaii",ID:"Idaho",IL:"Illinois",IN:"Indiana",IA:"Iowa",KS:"Kansas",KY:"Kentucky",LA:"Louisiana",ME:"Maine",MH:"Marshall Islands",MD:"Maryland",MA:"Massachusetts",MI:"Michigan",MN:"Minnesota",MS:"Mississippi",MO:"Missouri",MT:"Montana",NE:"Nebraska",NV:"Nevada",NH:"New Hampshire",NJ:"New Jersey",NM:"New Mexico",NY:"New York",NC:"North Carolina",ND:"North Dakota",MP:"Northern Mariana Islands",OH:"Ohio",OK:"Oklahoma",OR:"Oregon",PW:"Palau",PA:"Pennsylvania",PR:"Puerto Rico",RI:"Rhode Island",SC:"South Carolina",SD:"South Dakota",TN:"Tennessee",TX:"Texas",UT:"Utah",VT:"Vermont",VI:"Virgin Islands",VA:"Virginia",WA:"Washington",WV:"West Virginia",WI:"Wisconsin",WY:"Wyoming"},L1=["AK","AL","AR","AZ","CA","CO","CT","DC","DE","FL","GA","HI","IA","ID","IL","IN","KS","KY","LA","MA","MD","ME","MI","MN","MO","MS","MT","NC","ND","NE","NH","NJ","NM","NV","NY","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VA","VT","WA","WI","WV","WY"],Dy={AL:{abbr:"AL",name:"Alabama",population:"4850771",id:"01"},AK:{abbr:"AK",name:"Alaska",population:"738565",id:"02"},AZ:{abbr:"AZ",name:"Arizona",population:"6809946",id:"04"},AR:{abbr:"AR",name:"Arkansas",population:"2977944",id:"05"},CA:{abbr:"CA",name:"California",population:"38982847",id:"06"},CO:{abbr:"CO",name:"Colorado",population:"5436519",id:"08"},CT:{abbr:"CT",name:"Connecticut",population:"3594478",id:"09"},DE:{abbr:"DE",name:"Delaware",population:"943732",id:"10"},DC:{abbr:"DC",name:"District of Columbia",population:"672391",id:"11"},FL:{abbr:"FL",name:"Florida",population:"20278447",id:"12"},GA:{abbr:"GA",name:"Georgia",population:"10201635",id:"13"},HI:{abbr:"HI",name:"Hawaii",population:"1421658",id:"15"},ID:{abbr:"ID",name:"Idaho",population:"1657375",id:"16"},IL:{abbr:"IL",name:"Illinois",population:"12854526",id:"17"},IN:{abbr:"IN",name:"Indiana",population:"6614418",id:"18"},IA:{abbr:"IA",name:"Iowa",population:"3118102",id:"19"},KS:{abbr:"KS",name:"Kansas",population:"2903820",id:"20"},KY:{abbr:"KY",name:"Kentucky",population:"4424376",id:"21"},LA:{abbr:"LA",name:"Louisiana",population:"4663461",id:"22"},ME:{abbr:"ME",name:"Maine",population:"1330158",id:"23"},MD:{abbr:"MD",name:"Maryland",population:"5996079",id:"24"},MA:{abbr:"MA",name:"Massachusetts",population:"6789319",id:"25"},MI:{abbr:"MI",name:"Michigan",population:"9925568",id:"26"},MN:{abbr:"MN",name:"Minnesota",population:"5490726",id:"27"},MS:{abbr:"MS",name:"Mississippi",population:"2986220",id:"28"},MO:{abbr:"MO",name:"Missouri",population:"6075300",id:"29"},MT:{abbr:"MT",name:"Montana",population:"1029862",id:"30"},NE:{abbr:"NE",name:"Nebraska",population:"1893921",id:"31"},NV:{abbr:"NV",name:"Nevada",population:"2887725",id:"32"},NH:{abbr:"NH",name:"New Hampshire",population:"1331848",id:"33"},NJ:{abbr:"NJ",name:"New Jersey",population:"8960161",id:"34"},NM:{abbr:"NM",name:"New Mexico",population:"2084828",id:"35"},NY:{abbr:"NY",name:"New York",population:"19798228",id:"36"},NC:{abbr:"NC",name:"North Carolina",population:"10052564",id:"37"},ND:{abbr:"ND",name:"North Dakota",population:"745475",id:"38"},OH:{abbr:"OH",name:"Ohio",population:"11609756",id:"39"},OK:{abbr:"OK",name:"Oklahoma",population:"3896251",id:"40"},OR:{abbr:"OR",name:"Oregon",population:"4025127",id:"41"},PA:{abbr:"PA",name:"Pennsylvania",population:"12790505",id:"42"},PR:{abbr:"PR",name:"Puerto Rico",population:"3468963",id:"72"},RI:{abbr:"RI",name:"Rhode Island",population:"1056138",id:"44"},SC:{abbr:"SC",name:"South Carolina",population:"4893444",id:"45"},SD:{abbr:"SD",name:"South Dakota",population:"855444",id:"46"},TN:{abbr:"TN",name:"Tennessee",population:"6597381",id:"47"},TX:{abbr:"TX",name:"Texas",population:"27419612",id:"48"},UT:{abbr:"UT",name:"Utah",population:"2993941",id:"49"},VT:{abbr:"VT",name:"Vermont",population:"624636",id:"50"},VA:{abbr:"VA",name:"Virginia",population:"8365952",id:"51"},WA:{abbr:"WA",name:"Washington",population:"7169967",id:"53"},WV:{abbr:"WV",name:"West Virginia",population:"1836843",id:"54"},WI:{abbr:"WI",name:"Wisconsin",population:"5763217",id:"55"},WY:{abbr:"WY",name:"Wyoming",population:"583200",id:"56"}},Nl="/data-research/consumer-complaints/search/api/v1/",R1=window.location.origin.indexOf("localhost")>-1?"https://www.consumerfinance.gov/complaint/data-use/":"/complaint/data-use/",Ny="AGGREGATIONS_API_CALLED",ag="AGGREGATIONS_RECEIVED",sg="AGGREGATIONS_FAILED",Ly="COMPLAINTS_API_CALLED",Ry="COMPLAINTS_RECEIVED",I1="COMPLAINTS_FAILED",j1="COMPLAINT_DETAIL_RECEIVED",lg="COMPLAINT_DETAIL_FAILED",F1="COMPLAINT_DETAIL_CALLED",Pw="STATES_API_CALLED",kw="STATES_RECEIVED",B1="STATES_FAILED",Ow="TRENDS_API_CALLED",hp="TRENDS_RECEIVED",ug="TRENDS_FAILED";function fp(){return(t,e)=>{switch(e().query.tab){case Ah:case pa:case to:t(Iy());break;default:return}t(H1())}}function H1(){return(t,e)=>{switch(e().query.tab){case Ah:t(hg());break;case to:t(Yf());break;case pa:t(jy());break;default:break}}}function Iy(){return(t,e)=>{const r=e(),i=r.query.queryString,g=Nl+i+"&size=0";return r.results.loadingAggregations?null:(t(dp(Ny,g)),fetch(g).then(C=>C.json()).then(C=>t(Dw(C))).catch(C=>t(Nw(C))))}}function jy(){return(t,e)=>{const r=e(),i=r.query.queryString,g=Nl+i;return g===r.results.activeCall?null:(t(dp(Ly,g)),fetch(g).then(C=>C.json()).then(C=>t(Lw(C))).catch(C=>t(z1(C))))}}function cg(t){return e=>{const r=Nl+t;e(dp(F1,r)),fetch(r).then(i=>i.json()).then(i=>e(Fy(i))).catch(i=>e(Rw(i)))}}function hg(){return(t,e)=>{const r=e(),i="geo/states/"+r.query.queryString,g=Nl+i+"&no_aggs=true";return g===r.map.activeCall?null:(t(dp(Pw,g)),fetch(g).then(C=>C.json()).then(C=>t(fg(C))).catch(C=>t(U1(C))))}}function Yf(){return(t,e)=>{const r=e(),{query:i,trends:g}=r,C="trends/"+i.queryString,J=Nl+C+"&no_aggs=true";return J===g.activeCall||g.lens==="Company"&&(!i.company||!i.company.length)?null:(t(dp(Ow,J)),fetch(J).then(dt=>dt.json()).then(dt=>t(W1(dt))).catch(dt=>t(dg(dt))))}}function dp(t,e){return{type:t,url:e}}function Dw(t){return{type:ag,data:t}}function Nw(t){return{type:sg,error:t}}function Lw(t){return{type:Ry,data:t}}function z1(t){return{type:I1,error:t}}function Fy(t){return{type:j1,data:t}}function Rw(t){return{type:lg,error:t}}function fg(t){return{type:kw,data:t}}function U1(t){return{type:B1,error:t}}function W1(t){return{type:hp,data:t}}function dg(t){return{type:ug,error:t}}const Xf={tagManagerIsLoaded:!1,EVENT_CATEGORY:"Consumer Complaint Search",getDataLayerOptions:function(t,e,r,i,g){return{event:r||Xf.EVENT_CATEGORY,action:t,label:e||"",eventCallback:i,eventTimeout:g||500}},init:function(){if(Object.prototype.hasOwnProperty.call(window,"google_tag_manager"))Xf.tagManagerIsLoaded=!0;else{let t;Object.defineProperty(window,"google_tag_manager",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e,Xf.tagManagerIsLoaded=!0}})}},sendEvent:function(t){const e=t.eventCallback;Xf.tagManagerIsLoaded?window.dataLayer.push(t):e&&typeof e=="function"&&e()}};Xf.init();const By=Xf;function G1(t){return Array.from(t||"").join(" ")}const VS=(t,e)=>{const r=Oh(),i=_r()(e).startOf("day"),g=_r()(t).startOf("day");if(i.diff(r,"days")!==0)return"";if(_r()(t).isSame(Rc,"day"))return"All";const C=i.diff(g,"years",!0);if(C===3||C===1)return C+"y";const J=i.diff(g,"months",!0);return J===6||J===3?J+"m":""},pg=(t,e,r)=>(t<e?t=e:t>r&&(t=r),t),YS=(t,e,r)=>{let i=new Date(t);const g=new Date(e),C=new Date(r);return i<g?i=g:i>C&&(i=C),i},Mo=(t,e,r)=>typeof t!="object"?r:e in t&&t[e]?t[e]:r;function Iw(t){const e=String(t);let r=0,i,g;if(e.length===0)return r;for(i=0;i<e.length;i++)g=e.charCodeAt(i),r=(r<<5)-r+g,r|=0;return r}function jw(t){const e=[];let r;const i=Uf.concat(Gf);for(let C=0;C<i.length;C++)r=i[C],(Array.isArray(t[r])&&t[r].length||t[r]===!0)&&e.push(r);const g=["company_received_max","company_received_min"];for(let C=0;C<g.length;C++)r=g[C],t[r]&&e.push(r);return e.length?e.length===1&&e[0]==="state":!0}function pp(t){return Iw(JSON.stringify(t))}const Fw=t=>t.toLowerCase(),jc=t=>t.replace(/\s+|\W/g,"-").toLowerCase(),mg=(t,e)=>t+os+e,gg=t=>(typeof t!="undefined"&&JSON.parse(JSON.stringify(t)),t),V1=(t,e)=>{const r=(gg(t)||[]).slice();return r.sort((i,g)=>{const C=e.indexOf(i.key)!==-1,J=e.indexOf(g.key)!==-1;return C&&!J?-1:!C&&J?1:g.doc_count-i.doc_count}),r};function kh(t){const e=_r()(t);return t?e.format("M/D/YYYY"):""}function Hy(t){return t?t.toISOString().substring(0,10):""}function Oh(){if(!Object.prototype.hasOwnProperty.call(window,"MAX_DATE"))if(Object.prototype.hasOwnProperty.call(window,"complaint_public_metadata")){const{metadata_timestamp:t}=window.complaint_public_metadata;window.MAX_DATE=new Date(_r()(t).startOf("day").toString())}else console.error("complaint_public_metadata is missing"),window.MAX_DATE=new Date(_r()().startOf("day").toString());return new Date(window.MAX_DATE.valueOf())}function Dh(t,e){let r=null;const i=(g,C)=>{r=null,t.apply(g,C)};return(...g)=>{r||(r=setTimeout(i,e,this,g))}}function XS(t,e){const r=e.length;for(let i=0;i<r;i++){const g=e[i];t[g]=t[g].bind(t)}return t}function $S(t){if(!t)return t;const e=document.createElement("a");return e.href=t,e.href}function zy(t){return{name:t.name,message:t.message,stack:t.stack}}function nP(t){const e=parseFloat(parseFloat(t*100).toFixed(2));return isNaN(e)?0:e}const Y1=t=>{for(const e in t)if(e!=="trend_period"&&t[e].buckets)return e;return""},$f=(t,e,r)=>{r.forEach(i=>{typeof t[i]!="undefined"&&(typeof t[i]=="string"?e[i]=[t[i]]:e[i]=t[i])})},yg=(t,e)=>{const r=new Set;return r.add(t),e.forEach(i=>{r.add(mg(t,i.key))}),r},ma=(t,e)=>{By.sendEvent(By.getDataLayerOptions(t,e))},Fc=(t,e,r="selected")=>t===e?" "+r:"",qS=t=>e=>r=>{const i=e(r),g=Mo(r,"requery",is);return g===Ki?t.dispatch(fp()):g===zf&&t.dispatch(H1()),i},X1={},$1=t=>t.detail.activeCall,q1=t=>t.detail.data,vg=t=>t.detail.error;var xg;function mp(){return mp=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},mp.apply(this,arguments)}function gp(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",mp({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 19",className:"cf-icon-svg cf-icon-svg__approved-round",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,xg||(xg=a.createElement("path",{d:"M16.417 9.583a7.916 7.916 0 1 1-15.833 0 7.916 7.916 0 0 1 15.833 0Zm-4.105-4.498a.791.791 0 0 0-1.082.29l-3.828 6.63-1.733-2.08a.792.792 0 1 0-1.216 1.014l2.459 2.952a.792.792 0 0 0 1.294-.111L12.6 6.166a.791.791 0 0 0-.29-1.081Z"})))}const Uy=a.forwardRef(gp),Bw=Un.p+"static/media/approved-round.483482ab2825f9f995093ba2785f99d3.svg";var yp,K1;function Wy(){return Wy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Wy.apply(this,arguments)}function Vu(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",Wy({id:"area-chart-icon","data-name":"area chart",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 27 21",ref:e,"aria-labelledby":i},g),r===void 0?a.createElement("title",{id:i},"area chart icon"):r?a.createElement("title",{id:i},r):null,yp||(yp=a.createElement("polygon",{className:"cls-1",points:"27 11 23.48 14 15.26 9 7.04 17 0 15 0 21 27 21 27 11"})),K1||(K1=a.createElement("g",{className:"cls-2"},a.createElement("polygon",{className:"cls-1",points:"6.32 14.79 14.92 6.46 23.36 11.58 27 8.5 27 1 23.48 4 15.26 1 7.04 7 0 9 0 12.94 6.32 14.79"}))))}const Yu=a.forwardRef(Vu),Xu=Un.p+"static/media/area-chart-custom.ea8a03542fb76313bf17aec0bc356ff9.svg";var Nh;function Gy(){return Gy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Gy.apply(this,arguments)}function KS(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",Gy({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg__chart",viewBox:"0 0 15 19",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,Nh||(Nh=a.createElement("path",{d:"M13.55 15.256H1.45a.554.554 0 0 1-.553-.554V3.168a.554.554 0 1 1 1.108 0v10.98h11.544a.554.554 0 0 1 0 1.108zM3.121 13.02V6.888a.476.476 0 0 1 .475-.475h.786a.476.476 0 0 1 .475.475v6.132zm2.785 0V3.507a.476.476 0 0 1 .475-.475h.786a.476.476 0 0 1 .475.475v9.513zm2.785 0V6.888a.476.476 0 0 1 .475-.475h.786a.476.476 0 0 1 .475.475v6.132zm2.786 0v-2.753a.476.476 0 0 1 .475-.475h.785a.476.476 0 0 1 .475.475v2.753z"})))}const ZS=a.forwardRef(KS),QS=Un.p+"static/media/chart.fa96ff019d4e701a6b3b80a73712ce25.svg";var Hw;function Z1(){return Z1=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Z1.apply(this,arguments)}function JS(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",Z1({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg__clock-round",viewBox:"0 0 17 19",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,Hw||(Hw=a.createElement("path",{fillRule:"evenodd",d:"M16.417 9.583A7.917 7.917 0 1 1 8.5 1.666a7.917 7.917 0 0 1 7.917 7.917zm-2.81 0A5.106 5.106 0 1 1 8.5 4.477a5.106 5.106 0 0 1 5.106 5.106zm-.792 0A4.315 4.315 0 1 1 8.5 5.268a4.315 4.315 0 0 1 4.315 4.315zm-2.163-.992a.396.396 0 0 0-.386-.661.75.75 0 0 0-.305.233l-.414.414-.649.648v-2.51a.67.67 0 0 0-.056-.365.399.399 0 0 0-.735.196c-.009.232 0 .465 0 .697v2.933a.402.402 0 0 0 .258.376c.296.11.495-.169.677-.35l.998-.998.612-.613z"})))}const zw=a.forwardRef(JS),tC=Un.p+"static/media/clock-round.e1b2f19139f649738f74ac692f22f946.svg";var Q1;function bg(){return bg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},bg.apply(this,arguments)}function J1(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",bg({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg__copy",viewBox:"0 0 12 19",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,Q1||(Q1=a.createElement("path",{d:"M11.415 5.068v9.16a.463.463 0 0 1-.462.461H9.477v1.477a.463.463 0 0 1-.462.462H1.047a.463.463 0 0 1-.462-.462V4.976a.463.463 0 0 1 .462-.462h1.476V3.037a.463.463 0 0 1 .462-.462h5.937zM8.369 7.874H6.628a.529.529 0 0 1-.527-.527V5.622H1.693v9.897H8.37zm-4.737-4.19v.83h3.352l1.095 1.095a.518.518 0 0 1-.04-.2V3.684zm5.845 3.323v6.574h.83V5.936h-1.74a.517.517 0 0 1-.2-.04z"})))}const Uw=a.forwardRef(J1),eC=Un.p+"static/media/copy.a8f5307add373a77c77df15aa7f1c060.svg";var vp;function qf(){return qf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},qf.apply(this,arguments)}function Vy(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",qf({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 988.2 1200",className:"cf-icon-svg",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,vp||(vp=a.createElement("path",{d:"M494.1 967.2c-17.3 0-33.8-6.8-46-19L18.6 518.6c-25.1-25.6-24.8-66.8.8-91.9 25.3-24.8 65.8-24.8 91.1 0l383.6 383.6 383.6-383.6c25.6-25.1 66.8-24.8 91.9.8 24.8 25.3 24.8 65.8 0 91.1L540.1 948.1c-12.2 12.2-28.7 19.1-46 19.1z"})))}const nC=a.forwardRef(Vy),rC=Un.p+"static/media/down.59a7ecfc3448843a7fa799d1e37c4eb3.svg";var tx;function Yy(){return Yy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Yy.apply(this,arguments)}function Ww(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",Yy({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg__error",viewBox:"0 0 12 19",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,tx||(tx=a.createElement("path",{d:"M11.383 13.644A1.03 1.03 0 0 1 9.928 15.1L6 11.172 2.072 15.1a1.03 1.03 0 1 1-1.455-1.456l3.928-3.928L.617 5.79a1.03 1.03 0 1 1 1.455-1.456L6 8.261l3.928-3.928a1.03 1.03 0 0 1 1.455 1.456L7.455 9.716z"})))}const iC=a.forwardRef(Ww),iP=Un.p+"static/media/error.8c6e52ac74d541cc9dc14b08c6cac23a.svg";var xp;function wg(){return wg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},wg.apply(this,arguments)}function ex(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",wg({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 19",className:"cf-icon-svg cf-icon-svg__error-round",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,xp||(xp=a.createElement("path",{d:"M16.417 9.583a7.916 7.916 0 1 1-15.833 0 7.916 7.916 0 0 1 15.833 0Zm-6.804.01 3.032-3.033a.792.792 0 1 0-1.12-1.12L8.494 8.473 5.46 5.44a.792.792 0 0 0-1.12 1.12l3.033 3.033-3.032 3.033a.791.791 0 1 0 1.12 1.119l3.032-3.033 3.033 3.033a.79.79 0 0 0 1.12 0c.309-.31.309-.81 0-1.12L9.612 9.594Z"})))}const _g=a.forwardRef(ex),Gw=Un.p+"static/media/error-round.711ddbb526473e443c10a73b3bea3fd0.svg";var Xy;function Eg(){return Eg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Eg.apply(this,arguments)}function Vw(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",Eg({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg__external-link",viewBox:"0 0 14 19",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,Xy||(Xy=a.createElement("path",{d:"M13.017 3.622v4.6a.554.554 0 0 1-1.108 0V4.96L9.747 7.122a1.65 1.65 0 0 1 .13.646v5.57A1.664 1.664 0 0 1 8.215 15h-5.57a1.664 1.664 0 0 1-1.662-1.663v-5.57a1.664 1.664 0 0 1 1.662-1.662h5.57A1.654 1.654 0 0 1 9 6.302l2.126-2.126H7.863a.554.554 0 1 1 0-1.108h4.6a.554.554 0 0 1 .554.554M8.77 8.1l-2.844 2.844a.554.554 0 0 1-.784-.783l2.947-2.948H2.645a.555.555 0 0 0-.554.555v5.57a.555.555 0 0 0 .554.553h5.57a.555.555 0 0 0 .554-.554z"})))}const oC=a.forwardRef(Vw),aC=Un.p+"static/media/external-link.ad941be4079ad0a2de240d1718d4e6db.svg";var Yw;function nx(){return nx=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},nx.apply(this,arguments)}function sC(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",nx({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 19",className:"cf-icon-svg cf-icon-svg__help-round",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,Yw||(Yw=a.createElement("path",{d:"M16.476 9.583a7.916 7.916 0 1 1-15.833 0 7.916 7.916 0 0 1 15.833 0Zm-5.034-2.687c0-.404-.073-.774-.223-1.13A2.886 2.886 0 0 0 9.692 4.22a2.747 2.747 0 0 0-1.116-.227 2.899 2.899 0 0 0-2.672 1.773 2.803 2.803 0 0 0-.227 1.128v.02a.792.792 0 0 0 1.583 0v-.02a1.333 1.333 0 0 1 .814-1.22c.155-.067.315-.098.502-.098.18 0 .334.03.485.096a1.294 1.294 0 0 1 .7.71c.067.158.098.322.098.513 0 .225-.027.368-.05.45a1.546 1.546 0 0 1-.132.335 2.11 2.11 0 0 1-.219.318c-.126.15-.25.293-.365.424-.135.142-.26.28-.374.412-.17.2-.323.414-.451.639-.147.258-.262.54-.342.842-.08.301-.12.636-.12.995v.035a.792.792 0 1 0 1.583 0v-.035c0-.222.023-.42.068-.59.044-.168.107-.324.187-.463a2.49 2.49 0 0 1 .276-.39c.098-.115.209-.237.329-.363l.018-.02c.129-.144.264-.301.403-.466.138-.165.267-.352.384-.556a3.083 3.083 0 0 0 .388-1.567ZM9.58 14.195a.983.983 0 0 0-.614-.919l-.004-.001a1.016 1.016 0 0 0-.78 0 .972.972 0 0 0-.62.92c.001.138.027.27.08.391a1.01 1.01 0 0 0 .541.536 1.013 1.013 0 0 0 .78.001l.004-.002c.121-.052.229-.125.318-.214.09-.091.164-.2.216-.32a.98.98 0 0 0 .08-.392Z"})))}const lC=a.forwardRef(sC),oP=Un.p+"static/media/help-round.95b33531bcbf1ad664eef87139877606.svg";var rx;function Ll(){return Ll=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Ll.apply(this,arguments)}function ix(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",Ll({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg__left",viewBox:"0 0 10 19",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,rx||(rx=a.createElement("path",{d:"M8.4 17.269a1.026 1.026 0 0 1-.727-.302l-6.801-6.8a1.03 1.03 0 0 1 0-1.456l6.8-6.8a1.03 1.03 0 0 1 1.456 1.455L3.055 9.439l6.073 6.073A1.03 1.03 0 0 1 8.4 17.27z"})))}const ox=a.forwardRef(ix),aP=Un.p+"static/media/left.eb395946941254121f712cfab4a05b8b.svg";var ax,Sg,sx,Xw,$w;function $y(){return $y=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},$y.apply(this,arguments)}function Cg(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",$y({id:"line-chart-icon","data-name":"line chart",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 27 21",ref:e,"aria-labelledby":i},g),r===void 0?a.createElement("title",{id:i},"line chart icon"):r?a.createElement("title",{id:i},r):null,ax||(ax=a.createElement("g",{className:"cls-1"},a.createElement("line",{className:"cls-2",x1:12,y1:6.27,x2:2,y2:19}),a.createElement("line",{className:"cls-2",x1:22.9,y1:14,x2:14.1,y2:6}),a.createElement("path",{className:"cls-3",d:"M13,4a1,1,0,1,1-1,1,1,1,0,0,1,1-1m0-1a2,2,0,1,0,2,2,2,2,0,0,0-2-2Z"}),a.createElement("path",{className:"cls-3",d:"M24,14a1,1,0,1,1-1,1,1,1,0,0,1,1-1m0-1a2,2,0,1,0,2,2,2,2,0,0,0-2-2Z"}))),Sg||(Sg=a.createElement("line",{className:"cls-2",x1:12,y1:16.45,x2:2,y2:11})),sx||(sx=a.createElement("line",{className:"cls-2",x1:23,y1:6,x2:14,y2:16})),Xw||(Xw=a.createElement("path",{className:"cls-3",d:"M13,16a1,1,0,1,1-1,1,1,1,0,0,1,1-1m0-1a2,2,0,1,0,2,2,2,2,0,0,0-2-2Z"})),$w||($w=a.createElement("path",{className:"cls-3",d:"M24,4a1,1,0,1,1-1,1,1,1,0,0,1,1-1m0-1a2,2,0,1,0,2,2,2,2,0,0,0-2-2Z"})))}const lx=a.forwardRef(Cg),sP=Un.p+"static/media/line-chart-custom.5b2ea8f0a6610dd4792361462e297ff1.svg";var qy;function ux(){return ux=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},ux.apply(this,arguments)}function Tg(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",ux({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg__list",viewBox:"0 0 14 19",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,qy||(qy=a.createElement("path",{d:"M2.85 4.836a1.03 1.03 0 0 1-1.029 1.03h-.003a1.03 1.03 0 1 1 0-2.059h.003a1.03 1.03 0 0 1 1.03 1.03zm0 4.346a1.03 1.03 0 0 1-1.029 1.03h-.003a1.03 1.03 0 1 1 0-2.059h.003a1.03 1.03 0 0 1 1.03 1.03zm0 4.346a1.03 1.03 0 0 1-1.029 1.03h-.003a1.03 1.03 0 1 1 0-2.059h.003a1.03 1.03 0 0 1 1.03 1.03zm1.13-8.692a1.03 1.03 0 0 1 1.029-1.029h7.173a1.03 1.03 0 1 1 0 2.058H5.009a1.03 1.03 0 0 1-1.03-1.029zm9.231 4.347a1.03 1.03 0 0 1-1.029 1.029H5.009a1.03 1.03 0 1 1 0-2.059h7.173a1.03 1.03 0 0 1 1.03 1.03zm0 4.345a1.03 1.03 0 0 1-1.029 1.03H5.009a1.03 1.03 0 1 1 0-2.059h7.173a1.03 1.03 0 0 1 1.03 1.03z"})))}const uC=a.forwardRef(Tg),cC=Un.p+"static/media/list.7ac698bdddc3475610e778556ae1d49d.svg";var Mg;function Ky(){return Ky=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Ky.apply(this,arguments)}function hC(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",Ky({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg__map",viewBox:"0 0 16 19",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,Mg||(Mg=a.createElement("path",{d:"M15.084 15.2H.916a.264.264 0 0 1-.254-.42l2.36-4.492a.865.865 0 0 1 .696-.42h.827a9.51 9.51 0 0 0 .943 1.108H3.912l-1.637 3.116h11.45l-1.637-3.116h-1.34a9.481 9.481 0 0 0 .943-1.109h.591a.866.866 0 0 1 .696.421l2.36 4.492a.264.264 0 0 1-.254.42zM11.4 7.189c0 2.64-2.176 2.888-3.103 5.46a.182.182 0 0 1-.356 0c-.928-2.572-3.104-2.82-3.104-5.46a3.282 3.282 0 0 1 6.563 0zm-1.86-.005a1.425 1.425 0 1 0-1.425 1.425A1.425 1.425 0 0 0 9.54 7.184z"})))}const Ag=a.forwardRef(hC),lP=Un.p+"static/media/map.33090759a7c3ce118040c89ba94fe5be.svg";var cx;function hx(){return hx=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},hx.apply(this,arguments)}function Pg(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",hx({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 19",className:"cf-icon-svg cf-icon-svg__minus-round",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,cx||(cx=a.createElement("path",{d:"M16.416 9.583a7.916 7.916 0 1 1-15.833 0 7.916 7.916 0 0 1 15.833 0Zm-2.958.01a.792.792 0 0 0-.792-.792H4.32a.792.792 0 0 0 0 1.583h8.346a.792.792 0 0 0 .792-.791Z"})))}const kg=a.forwardRef(Pg),Zy=Un.p+"static/media/minus-round.ef44cce4e26bd9b044cd03da032d7c53.svg";var bp;function wp(){return wp=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},wp.apply(this,arguments)}function fC(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",wp({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 19",className:"cf-icon-svg cf-icon-svg__plus-round",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,bp||(bp=a.createElement("path",{d:"M16.416 9.583a7.916 7.916 0 1 1-15.833 0 7.916 7.916 0 0 1 15.833 0Zm-2.958.01a.792.792 0 0 0-.792-.792H9.284V5.42a.792.792 0 1 0-1.583 0V8.8H4.32a.792.792 0 0 0 0 1.584H7.7v3.382a.792.792 0 1 0 1.583 0v-3.382h3.382a.792.792 0 0 0 .792-.791Z"})))}const fx=a.forwardRef(fC),uP=Un.p+"static/media/plus-round.db3c2cb69fbc96047b8079b21ec98d89.svg";var Qy;function dx(){return dx=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},dx.apply(this,arguments)}function dC(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",dx({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg__print",viewBox:"0 0 14 19",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,Qy||(Qy=a.createElement("path",{d:"m8.698 2.358 3.065 3.066v1.95h.16a1.112 1.112 0 0 1 1.109 1.108v4.837a1.112 1.112 0 0 1-1.109 1.108h-.16v1.726a.477.477 0 0 1-.475.475H2.712a.477.477 0 0 1-.475-.475v-1.726h-.16A1.112 1.112 0 0 1 .968 13.32V8.482a1.112 1.112 0 0 1 1.109-1.108h.16v-4.54a.476.476 0 0 1 .475-.476zm-.22 3.876a.61.61 0 0 1-.608-.608v-2.16H3.345v3.908h7.31v-1.14zm2.177 4.512h-7.31v4.773h7.31zm-1.054.874h-5.26v1.109h5.26zm0 1.962h-5.26v1.108h5.26zm2.437-4.485a.554.554 0 1 0-.554.554.554.554 0 0 0 .554-.554z"})))}const px=a.forwardRef(dC),cP=Un.p+"static/media/print.c437f293c0bb3b67debbd019bf8df4d1.svg";var Jy;function mx(){return mx=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},mx.apply(this,arguments)}function gx(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",mx({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg__right",viewBox:"0 0 10 19",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,Jy||(Jy=a.createElement("path",{d:"M1.6 17.262a1.03 1.03 0 0 1-.728-1.757l6.073-6.073L.872 3.36a1.03 1.03 0 0 1 1.455-1.455l6.8 6.8a1.03 1.03 0 0 1 0 1.456l-6.8 6.8a1.025 1.025 0 0 1-.727.302z"})))}const pC=a.forwardRef(gx),qw=Un.p+"static/media/right.05bbc7519af3120311c5befcd3d7ab10.svg";var Kw;function yx(){return yx=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},yx.apply(this,arguments)}function mC(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",yx({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg__search",viewBox:"0 0 15 19",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,Kw||(Kw=a.createElement("path",{d:"M14.147 15.488a1.112 1.112 0 0 1-1.567 0l-3.395-3.395a5.575 5.575 0 1 1 1.568-1.568l3.394 3.395a1.112 1.112 0 0 1 0 1.568zm-6.361-3.903a4.488 4.488 0 1 0-1.681.327 4.443 4.443 0 0 0 1.68-.327z"})))}const gC=a.forwardRef(mC),hP=Un.p+"static/media/search.11cb49c6791363880e4534c2b79acb62.svg";var Zw;function vx(){return vx=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},vx.apply(this,arguments)}function yC(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",vx({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg__up",viewBox:"0 0 17 19",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,Zw||(Zw=a.createElement("path",{d:"M15.3 15.32a1.026 1.026 0 0 1-.727-.302L8.5 8.946l-6.073 6.072a1.03 1.03 0 0 1-1.456-1.455l6.801-6.8a1.03 1.03 0 0 1 1.456 0l6.8 6.8a1.03 1.03 0 0 1-.727 1.757z"})))}const vC=a.forwardRef(yC),fP=Un.p+"static/media/up.5b6c10db551efc1fa5d601e35e96b5ca.svg";var Qw;function xx(){return xx=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},xx.apply(this,arguments)}function xC(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",xx({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg__updating",viewBox:"0 0 16 19",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,Qw||(Qw=a.createElement("path",{d:"M5.857 3.882v3.341a1.03 1.03 0 0 1-2.058 0v-.97a5.401 5.401 0 0 0-1.032 2.27 1.03 1.03 0 1 1-2.02-.395A7.462 7.462 0 0 1 2.235 4.91h-.748a1.03 1.03 0 1 1 0-2.058h3.34a1.03 1.03 0 0 1 1.03 1.03zm-3.25 9.237a1.028 1.028 0 0 1-1.358-.523 7.497 7.497 0 0 1-.37-1.036 1.03 1.03 0 1 1 1.983-.55 5.474 5.474 0 0 0 .269.751 1.029 1.029 0 0 1-.524 1.358zm2.905 2.439a1.028 1.028 0 0 1-1.42.322 7.522 7.522 0 0 1-.885-.652 1.03 1.03 0 0 1 1.34-1.563 5.435 5.435 0 0 0 .643.473 1.03 1.03 0 0 1 .322 1.42zm3.68.438a1.03 1.03 0 0 1-1.014 1.044h-.106a7.488 7.488 0 0 1-.811-.044 1.03 1.03 0 0 1 .224-2.046 5.41 5.41 0 0 0 .664.031h.014a1.03 1.03 0 0 1 1.03 1.015zm.034-12.847a1.03 1.03 0 0 1-1.029 1.01h-.033a1.03 1.03 0 0 1 .017-2.06h.017l.019.001a1.03 1.03 0 0 1 1.009 1.05zm3.236 11.25a1.029 1.029 0 0 1-.3 1.425 7.477 7.477 0 0 1-.797.453 1.03 1.03 0 1 1-.905-1.849 5.479 5.479 0 0 0 .578-.328 1.03 1.03 0 0 1 1.424.3zM10.475 3.504a1.029 1.029 0 0 1 1.41-.359l.018.011a1.03 1.03 0 1 1-1.06 1.764l-.01-.006a1.029 1.029 0 0 1-.358-1.41zm4.26 9.445a7.5 7.5 0 0 1-.315.56 1.03 1.03 0 1 1-1.749-1.086 5.01 5.01 0 0 0 .228-.405 1.03 1.03 0 1 1 1.836.93zm-1.959-6.052a1.03 1.03 0 0 1 1.79-1.016l.008.013a1.03 1.03 0 1 1-1.79 1.017zm2.764 2.487a9.327 9.327 0 0 1 0 .366 1.03 1.03 0 0 1-1.029 1.005h-.025A1.03 1.03 0 0 1 13.482 9.7a4.625 4.625 0 0 0 0-.266 1.03 1.03 0 0 1 1.003-1.055h.026a1.03 1.03 0 0 1 1.029 1.004z"})))}const bC=a.forwardRef(xC),dP=Un.p+"static/media/updating.59617b7eccd7b5512161dfdaed0dabc6.svg";var Jw;function bx(){return bx=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},bx.apply(this,arguments)}function wC(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",bx({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 19",className:"cf-icon-svg cf-icon-svg__warning-round",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,Jw||(Jw=a.createElement("path",{d:"M16.406 9.583a7.916 7.916 0 1 1-15.833 0 7.916 7.916 0 0 1 15.833 0ZM9.48 13.667a1.003 1.003 0 1 0-2.007 0 1.003 1.003 0 0 0 2.007 0ZM7.697 10.83a.792.792 0 0 0 1.583 0V4.562a.792.792 0 0 0-1.583 0v6.268Z"})))}const _C=a.forwardRef(wC),pP=Un.p+"static/media/warning-round.906cf5d40d52ab2ba2960a68ba72ca57.svg",t_={"approved-round":a.createElement(Uy,null),"checkmark-round":a.createElement(Uy,null),"clock-round":a.createElement(zw,null),chart:a.createElement(ZS,null),copy:a.createElement(Uw,null),delete:a.createElement(iC,null),"delete-round":a.createElement(_g,null),down:a.createElement(nC,null),"error-round":a.createElement(_g,null),"external-link":a.createElement(oC,null),"help-round":a.createElement(lC,null),left:a.createElement(ox,null),list:a.createElement(uC,null),map:a.createElement(Ag,null),"minus-round":a.createElement(kg,null),"plus-round":a.createElement(fx,null),printer:a.createElement(px,null),right:a.createElement(pC,null),search:a.createElement(gC,null),updating:a.createElement(bC,null),up:a.createElement(vC,null),"warning-round":a.createElement(_C,null),"line-chart":a.createElement(lx,null),"area-chart":a.createElement(Yu,null)};function EC(t,e){if(!Object.hasOwn(t_,t))return console.error(`No icon with the name ${t}.`),!1;let r=t_[t];return typeof e!="undefined"&&(r=a.cloneElement(r,{className:`cf-icon-svg ${e}`})),r}const si=EC,mP={};var Qr=Un(2652),Ce=Un.n(Qr);const _p=({isLoading:t})=>t?a.createElement("section",{className:"light-box"},a.createElement("div",{className:"loading-box"},si("updating")," ",a.createElement("span",null,"This page is loading"))):null;_p.propTypes={isLoading:Ce().bool.isRequired};const du=t=>t.query,SC=t=>t.query.company_received_max,CC=t=>t.query.company_received_min,wx=t=>t.query.dataNormalization,tv=t=>t.query.date_received_max,Kf=t=>t.query.date_received_min,e_=t=>t.query.dateRange,ev=t=>t.query.enablePer1000,TC=t=>t.query.focus,MC=t=>t.query.mapWarningEnabled,Ep=t=>t.query.has_narrative,n_=t=>t.query.lens,r_=t=>t.query.page,i_=t=>t.query.search,o_=t=>t.query.searchField,Og=t=>t.query.searchText,a_=t=>t.query.size,AC=t=>t.query.sort,s_=t=>t.query.state,$u=t=>t.query.tab,Zf=t=>t.query.totalPages;function Lh(){var t=a.useContext(hy);return np(t),t}var _x;(function(t){t.formatDate="FormattedDate",t.formatTime="FormattedTime",t.formatNumber="FormattedNumber",t.formatList="FormattedList",t.formatDisplayName="FormattedDisplayName"})(_x||(_x={}));var Ex;(function(t){t.formatDate="FormattedDateParts",t.formatTime="FormattedTimeParts",t.formatNumber="FormattedNumberParts",t.formatList="FormattedListParts"})(Ex||(Ex={}));var Sx=function(t){var e=Lh(),r=t.value,i=t.children,g=dc(t,["value","children"]);return i(e.formatNumberToParts(r,g))};Sx.displayName="FormattedNumberParts";var l_=function(t){var e=useIntl(),r=t.value,i=t.children,g=__rest(t,["value","children"]);return i(e.formatListToParts(r,g))};Sx.displayName="FormattedNumberParts";function Cx(t){var e=function(r){var i=Lh(),g=r.value,C=r.children,J=dc(r,["value","children"]),dt=typeof g=="string"?new Date(g||0):g,St=t==="formatDate"?i.formatDateToParts(dt,J):i.formatTimeToParts(dt,J);return C(St)};return e.displayName=Ex[t],e}function Sp(t){var e=function(r){var i=Lh(),g=r.value,C=r.children,J=dc(r,["value","children"]),dt=i[t](g,J);if(typeof C=="function")return C(dt);var St=i.textComponent||a.Fragment;return a.createElement(St,null,dt)};return e.displayName=_x[t],e}function nv(t){return t}function gP(t){return t}var Dg=Sp("formatDate"),yP=Sp("formatTime"),Rh=Sp("formatNumber"),vP=Sp("formatList"),xP=Sp("formatDisplayName"),bP=Cx("formatDate"),wP=Cx("formatTime");const Ng=({label:t,value:e})=>e?a.createElement("div",{className:"layout-row"},a.createElement("span",{className:"body-copy subitem"},t),a.createElement("span",{className:"body-copy"},e)):null;Ng.propTypes={label:Ce().string,value:Ce().string};const rv=({value:t})=>{const e={"Consent provided":["approved-round","cf-icon-approved-round"],"Consent not provided":["delete-round","cf-icon-delete-round"],"Consent withdrawn":["minus-round","cf-icon-minus-round"],"N/A":["help-round","cf-icon-help-round"],Other:["help-round","cf-icon-help-round"]};let r;if(t in e){const i=e[t],g=i[0],C=i[1];r=si(g,C)}else r=si("error-round","cf-icon-error-round"),t="No data available";return a.createElement("div",null,a.createElement("span",{className:"cf-icon__before"},r),a.createElement("span",{className:"body-copy"},t))};rv.propTypes={value:Ce().string};const u_=({value:t})=>{if(!t)return a.createElement("span",{className:"body-copy"},"N/A");const e=["cf-icon__before"];return t.toLowerCase()==="no"&&e.push("not-timely"),a.createElement("div",null,a.createElement("span",{className:"cf-icon__before"},si("clock-round","cf-icon-clock-round"+(t.toLowerCase()==="no"?" not-timely":""))),a.createElement("span",{className:"body-copy"},t))};u_.propTypes={value:Ce().string};const c_=({data:t,error:e,id:r})=>{if(e)return a.createElement("h1",null,"There was a problem retrieving ",r);const i=t.complaint_what_happened||"",g=G1(r);return a.createElement("article",null,a.createElement("h1",{"aria-label":"Complaint "+g},r),a.createElement("div",{className:"card"},a.createElement("div",{className:"card-left layout-column"},a.createElement("h4",null,"Date CFPB received the complaint"),a.createElement("span",{className:"body-copy"},a.createElement(Dg,{value:t.date_received})),a.createElement("br",null),a.createElement("h4",null,"Consumer's state"),a.createElement("span",{className:"body-copy"},t.state),a.createElement("br",null),a.createElement("h4",null,"Consumer's zip"),a.createElement("span",{className:"body-copy"},t.zip_code),a.createElement("br",null),a.createElement("h4",null,"Submitted via"),a.createElement("span",{className:"body-copy"},t.submitted_via),a.createElement("br",null),a.createElement("h4",null,"Tags"),a.createElement("span",{className:"body-copy"},t.tags),a.createElement("br",null),a.createElement("h4",null,"Did consumer dispute the response?"),a.createElement("span",{className:"body-copy"},t.consumer_disputed)),a.createElement("div",{className:"card-right layout-column"},a.createElement("h4",null,"Product"),a.createElement("h3",null,t.product),a.createElement(Ng,{label:"Sub-product:",value:t.sub_product}),a.createElement("br",null),a.createElement("h4",null,"Issue"),a.createElement("h3",null,t.issue),a.createElement(Ng,{label:"Sub-issue:",value:t.sub_issue}),a.createElement("br",null),a.createElement("h4",null,"Consumer consent to publish narrative"),a.createElement(rv,{value:t.consumer_consent_provided}),a.createElement("br",null),i?a.createElement("div",null,a.createElement("h4",null,"Consumer complaint narrative"),a.createElement("span",{className:"body-copy"},i)):null)),a.createElement("h2",{className:"company-information"},"Company information"),a.createElement("div",{className:"card"},a.createElement("div",{className:"card-left layout-column"},a.createElement("h4",null,"Date complaint sent to company"),a.createElement("span",{className:"body-copy"},a.createElement(Dg,{value:t.date_sent_to_company})),a.createElement("br",null),a.createElement("h4",null,"Company name"),a.createElement("span",{className:"body-copy"},t.company),a.createElement("br",null)),a.createElement("div",{className:"card-right layout-column"},a.createElement("h4",null,"Timely response?"),a.createElement(u_,{value:t.timely}),a.createElement("br",null),a.createElement("h4",null,"Company response to consumer"),a.createElement("span",{className:"body-copy"},t.company_response?t.company_response:"N/A"),a.createElement("br",null),a.createElement("h4",null,"Company public response"),a.createElement("span",{className:"body-copy"},t.company_public_response?t.company_public_response:"N/A"))))};c_.propTypes={data:Ce().object,error:Ce().oneOfType([Ce().string,Ce().object]),id:Ce().string};const PC=()=>{const t=Kn(),{id:e}=yi(),r=Si(),i=vr(q1),g=vr(vg),C=vr($1),J=vr(i_),dt=C!=="",St=(0,a.useMemo)(()=>{if(!t)return"";const xt=t.pathname,Ct=xt.indexOf("detail");return xt.substring(0,Ct)+J},[t,J]);return(0,a.useEffect)(()=>{r(cg(e))},[r,e]),a.createElement("section",{className:"card-container"},a.createElement("nav",{className:"layout-row"},a.createElement("div",{className:"back-to-search flex-fixed"},a.createElement(qc,{to:St},si("left","cf-icon-left")," Back to search results")),a.createElement("div",{className:"meaning flex-fixed"},a.createElement("a",{href:R1,target:"_blank",rel:"noopener noreferrer"},"What do all these data points mean?"))),dt?a.createElement(_p,{isLoading:!0}):a.createElement(c_,{data:i,error:g,id:e}))};var iv=Object.defineProperty,kC=Object.defineProperties,OC=Object.getOwnPropertyDescriptors,Lg=Object.getOwnPropertySymbols,h_=Object.prototype.hasOwnProperty,f_=Object.prototype.propertyIsEnumerable,Tx=(t,e,r)=>e in t?iv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Mx=(t,e)=>{for(var r in e||(e={}))h_.call(e,r)&&Tx(t,r,e[r]);if(Lg)for(var r of Lg(e))f_.call(e,r)&&Tx(t,r,e[r]);return t},Ax=(t,e)=>kC(t,OC(e));const d_={activeCall:"",doc_count:0,isLoading:!1,total:0,error:"",lastUpdated:null,lastIndexed:null,loadingAggregations:!1,hasDataIssue:!1,isDataStale:!1,company:[],company_public_response:[],company_response:[],consumer_consent_provided:[],consumer_disputed:[],issue:[],product:[],state:[],submitted_via:[],tag:[],timely:[],zip_code:[]};function DC(t,e){return Ax(Mx({},t),{activeCall:e.url,isLoading:!0})}function NC(t,e){const r=e.data.aggregations,i=Object.keys(r),g=Math.max(t.doc_count,e.data.hits.total.value,e.data._meta.total_record_count),C=Ax(Mx({},t),{doc_count:g,error:"",isLoading:!1,lastUpdated:e.data._meta.last_updated,lastIndexed:e.data._meta.last_indexed,hasDataIssue:e.data._meta.has_data_issue,isDataStale:e.data._meta.is_data_stale,total:e.data.hits.total.value});return i.forEach(J=>{C[J]=r[J][J].buckets}),C}function LC(t,e){return Ax(Mx({},d_),{isLoading:!1,error:zy(e.error)})}function p_(){const t={};return t[Ny]=DC,t[ag]=NC,t[sg]=LC,t}const Cp=p_();function Px(t,e){return e.type in Cp?Cp[e.type](t,e):t}const IC=(t=d_,e)=>Px(t,e),m_={activeCall:"",data:{},error:""},jC=(t=m_,e)=>{switch(e.type){case F1:return{activeCall:e.url,data:{},error:""};case j1:return{activeCall:"",data:e.data.hits.hits[0]._source,error:""};case lg:return{activeCall:"",data:{},error:e.error};default:return t}},kx="changeDateInterval",Ox="changeDateRange",g_="DATES_CHANGED",y_="FILTER_ALL_REMOVED",v_="FILTER_CHANGED",Dx="FILTER_FLAG_CHANGED",x_="FILTER_MULTIPLE_ADDED",b_="FILTER_MULTIPLE_REMOVED",Nx="FILTER_ADDED",w_="FILTER_REMOVED",Rg="FILTER_REPLACED";function __(t){return{type:kx,dateInterval:t,requery:Ki}}function Qf(t,e,r){return{type:g_,filterName:t,minDate:e,maxDate:r,requery:Ki}}function Lx(t){return{type:Ox,dateRange:t,requery:Ki}}function Rx(t,e){return{type:v_,filterName:t,filterValue:e,requery:Ki}}function E_(t){return{type:Dx,filterName:t,requery:Ki}}function S_(t,e){return{type:Nx,filterName:t,filterValue:e,requery:Ki}}function Ig(t,e){return{type:w_,filterName:t,filterValue:e,requery:Ki}}function C_(){return{type:y_,requery:Ki}}function ov(t,e){return console.assert(Array.isArray(e)),{type:x_,filterName:t,values:e,requery:Ki}}function T_(t,e){return console.assert(Array.isArray(e)),{type:b_,filterName:t,values:e,requery:Ki}}function pu(t,e){return console.assert(Array.isArray(e)),{type:Rg,filterName:t,values:e,requery:Ki}}const M_="DATA_NORMALIZATION_SELECTED",Ix="STATE_COMPLAINTS_SHOWN",A_="STATE_FILTER_ADDED",jx="STATE_FILTER_CLEARED",P_="STATE_FILTER_REMOVED";function Fx(t){return{type:M_,requery:is,value:t}}function Rl(t){return{type:A_,selectedState:t,requery:Ki}}function qu(){return{type:jx,requery:Ki}}function Bx(){return{type:Ix,requery:Ki}}function jg(t){return{type:P_,selectedState:t,requery:Ki}}const Ih="NEXT_PAGE_SHOWN",av="PREV_PAGE_SHOWN",sv="SIZE_CHANGED",lv="SORT_CHANGED";function Hx(){return{type:Ih,requery:zf}}function k_(){return{type:av,requery:zf}}function O_(t){return console.assert(typeof t=="number"),{type:sv,size:t,requery:zf}}function uv(t){return{type:lv,sort:t,requery:zf}}const zx="SEARCH_FIELD_CHANGED",Da="SEARCH_TEXT_CHANGED";function cv(t){return{type:zx,searchField:t,requery:Ki}}function Jf(t){return{type:Da,searchText:t,requery:Ki}}const D_="CHART_TYPE_CHANGED",N_="DATA_LENS_CHANGED",Tp="DATA_SUBLENS_CHANGED",Fg="DEPTH_CHANGED",Ux="DEPTH_RESET",Wx="FOCUS_CHANGED",jh="FOCUS_REMOVED",Gx="TRENDS_TOOLTIP_CHANGED";function Vx(t){return{type:D_,chartType:t,requery:is}}function Yx(t){return{type:N_,lens:t,requery:Ki}}function Xx(t){return{type:Tp,requery:Ki,subLens:t}}function $x(t){return{type:Fg,requery:Ki,depth:t}}function L_(){return{type:Ux,requery:Ki}}function R_(t,e,r){return{type:Wx,requery:Ki,filterValues:r,focus:t,lens:e}}function I_(){return{type:jh,requery:Ki}}function qx(t){return{type:Gx,value:t,requery:is}}const FC=Un(6575),Kx="URL_CHANGED";function hv(t){const e=t.search,r=FC.parse(e);return{pathname:t.pathname,params:r}}function Zx(t,e){return{type:Kx,pathname:t,params:e}}function Qx(t){const{pathname:e,params:r}=hv(t);return i=>{i(Zx(e,r)),i(fp())}}const Jx="MAP_WARNING_DISMISSED",fv="MODAL_HID",tb="MODAL_SHOWN",eb="PRINT_MODE_ON",j_="PRINT_MODE_OFF",F_="ROW_COLLAPSED",dv="ROW_EXPANDED",pv="SCREEN_RESIZED",B_="HIDE_ADVANCED_SEARCH_TIPS",nb="SHOW_ADVANCED_SEARCH_TIPS",rb="HIDE_TOUR",ib="SHOW_TOUR",mv="TAB_CHANGED",gv="TOGGLE_FILTER_VISIBILITY",ga="TRENDS_DATE_WARNING_DISMISSED";function Bg(){return{type:gv,requery:is}}function Fh(){return{type:Jx,requery:is}}function ob(){return{type:eb,requery:is}}function ab(){return{type:j_,requery:is}}function sb(){return{type:nb,requery:is}}function H_(){return{type:B_,requery:is}}function Hg(t){return{type:F_,requery:is,value:t}}function Il(){return{type:fv}}function td(t){return{type:tb,modalType:t}}function lb(t){return{type:dv,requery:is,value:t}}function ub(t){return{type:pv,screenWidth:t,requery:is}}function Ku(t){return{type:mv,tab:t,requery:zf}}function Mp(){return{type:rb,requery:is}}function Ap(){return{type:ib,requery:is}}function cb(){return{type:ga,requery:is}}var z_=Object.defineProperty,Bh=Object.getOwnPropertySymbols,U_=Object.prototype.hasOwnProperty,W_=Object.prototype.propertyIsEnumerable,hb=(t,e,r)=>e in t?z_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Bc=(t,e)=>{for(var r in e||(e={}))U_.call(e,r)&&hb(t,r,e[r]);if(Bh)for(var r of Bh(e))W_.call(e,r)&&hb(t,r,e[r]);return t};function BC(){return Bc(Bc(Bc(Bc(Bc(Bc(Bc(Bc(Bc({},te),de),Ht),ie),Rt),X),c),j),V)}const yr=BC();var Hh=Un(4735);const HC=(t,e,r)=>r?!1:t==="Company"?!e||e.length===0:!1,zC=t=>{if(!t)return"";switch(t){case"Overview":return"";case"Company":return"product";default:return"sub_"+t.toLowerCase()}},G_=t=>t.filter(r=>r.name==="Other").reduce((r,i)=>r+i.value,0)>0?t:t.filter(r=>r.name!=="Other"),Pp=(t,e)=>{const r=_r()(t);return _r()(e).diff(r,"days")>366},UC=(t,e)=>Mw.map(r=>({name:r,disabled:Pp(t,e)&&r==="Day"})),V_=()=>{const t=document.getElementById("search-summary");t&&t.scrollIntoView()},jl=(t,e)=>{const r={chartType:{defaultVal:"line",values:["line","area"]},dataNormalization:{defaultVal:To,values:[To,Ys]},dateInterval:{defaultVal:"Month",values:Mw},dateRange:{defaultVal:"3y",values:Aw},lens:{defaultVal:"Overview",values:Vf},searchField:{defaultVal:"all",values:["all","company","complaint_what_happened"]},size:{defaultVal:"10",values:Object.keys(Ph)},sort:{defaultVal:"created_date_desc",values:Object.keys(og)},tab:{defaultVal:to,values:[to,pa,Ah]}};if(r[e]){const i=r[e];return i.values.includes(t)?t:i.defaultVal}return t},Y_=t=>{t.chartType=jl(t.chartType,"chartType"),t.chartType=t.lens==="Overview"?"line":t.chartType;const e={Overview:[""],Company:["product"],Product:["sub_product","issue"]};return e[t.lens]&&!e[t.lens].includes(t.subLens)&&(t.subLens=zC(t.lens)),t};var X_=Un(9552),$_=Un.n(X_),WC=Un(6072),q_=Un.n(WC),yv=Object.defineProperty,K_=Object.defineProperties,vv=Object.getOwnPropertyDescriptors,zg=Object.getOwnPropertySymbols,Z_=Object.prototype.hasOwnProperty,ed=Object.prototype.propertyIsEnumerable,kp=(t,e,r)=>e in t?yv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ug=(t,e)=>{for(var r in e||(e={}))Z_.call(e,r)&&kp(t,r,e[r]);if(zg)for(var r of zg(e))ed.call(e,r)&&kp(t,r,e[r]);return t},Q_=(t,e)=>K_(t,vv(e));_r().extend($_()),_r().extend(O1()),_r().extend(q_()),_r().tz.setDefault("America/New_York");const J_=(t,e)=>{if(!t||t.length===0)return null;const i=[...new Set(t.map(C=>_r()(C.date).toISOString()))].sort().pop(),g=t.filter(C=>fu(C.date,i));return{key:i,date:i,dateRange:e.dateRange,interval:e.interval,values:g}},nd=(t,e)=>{if(!t||!t.dataByTopic||t.dataByTopic.length===0)return null;let r=[];t.dataByTopic.forEach(dt=>{r=r.concat(dt.dates)});const g=[...new Set(r.map(dt=>dt.date))].sort().pop(),C=t.dataByTopic.map(dt=>{const St=dt.dates.find(Ct=>fu(Ct.date,g)),xt=St?St.value:0;return{name:dt.topic,date:g,value:xt}});return{key:g,date:g,dateRange:e.dateRange,interval:e.interval,values:C}},fb=(t,e)=>{const r=jS(t),i=YS(r,e.from,e.to);return kh(i)},db=(t,e,r,i)=>{e=e.toLowerCase();const g=fb(t,r);let C=_r()(t).utc();switch(e){case"day":C=C.format();break;case"week":case"year":C=C.add(1,e).subtract(1,"day").format();break;case"quarter":case"month":default:C=C.endOf(e).subtract(1,"day").format();break}return C=fb(C,r),e==="day"?`Date: ${C}`:i?`Date range: ${g} - ${C}`:`${g} - ${C}`},t2=(t,e,r)=>t.map(i=>{if(!e)return"#20aa3f";const g=i.name.trim(),C=i.parent?i.parent.trim():"";return e[C]?e[C]:e[g]?e[g]:r==="Overview"?"#20aa3f":"#a2a3a4"}),GC=(t,e)=>{let r=t.key;for(;e[r];)r+=" ";return e[r]=!0,t.splitterText?t:{hasChildren:Boolean(t.hasChildren),isNotFilter:!1,isParent:Boolean(t.isParent),name:r,value:Number(t.doc_count),parent:t.parent||!1,width:t.parent?.4:.5}},Wg=(t,e,r,i)=>{if(t){let g=t;return g=g.filter(J=>J.isParent||i.includes(J.parent)),{colorScheme:t2(g,e,r),data:g}}return{colorScheme:[],data:[]}},VC=(t,e,r)=>(r.forEach(i=>{e.find(g=>g.key_as_string===i.key_as_string)||e.push({name:t,doc_count:0,key_as_string:i.key_as_string})}),e.sort((i,g)=>i.key_as_string>g.key_as_string?1:-1).map(i=>({name:t,date:i.key_as_string,value:i.doc_count}))),YC=t=>{if(!t)return t;const e=t.title.split(":");return Q_(Ug({},t),{heading:e[0]+":",date:e[1]?e[1].trim():""})},e2=(t,e,r)=>{const i=_r()(e).utc().startOf(r.toLowerCase());return!_r()(t).utc().isSame(i,"day")},n2=(t,e,r)=>{const i=_r()(e).utc().endOf(r.toLowerCase()),g=_r()(t).utc(),C=g.isSame(i,"day");return i.isAfter(g)&&!C},r2=(t,e,r)=>{const{from:i,to:g}=e;if(!t.dataByTopic)return;const C=t.dataByTopic[0].dates,J=t.dataByTopic[0].dates[0].date,dt=t.dataByTopic[0].dates[C.length-1].date;e2(i,J,r)&&t.dataByTopic.forEach(St=>{St.dates=St.dates.filter(xt=>xt.date!==J)}),n2(g,dt,r)&&t.dataByTopic.forEach(St=>{St.dates=St.dates.filter(xt=>xt.date!==dt)})},xv=(t,e,r)=>{const{from:i,to:g}=e;let C=JSON.parse(JSON.stringify(t));const J=[...new Set(C.map(xt=>xt.date))];J.sort();const dt=J[0],St=J[J.length-1];return e2(i,dt,r)&&(C=C.filter(xt=>xt.date!==dt)),n2(g,St,r)&&(C=C.filter(xt=>xt.date!==St)),C};var XC=Object.defineProperty,pb=Object.defineProperties,rd=Object.getOwnPropertyDescriptors,i2=Object.getOwnPropertySymbols,mb=Object.prototype.hasOwnProperty,gb=Object.prototype.propertyIsEnumerable,Op=(t,e,r)=>e in t?XC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,$a=(t,e)=>{for(var r in e||(e={}))mb.call(e,r)&&Op(t,r,e[r]);if(i2)for(var r of i2(e))gb.call(e,r)&&Op(t,r,e[r]);return t},pl=(t,e)=>pb(t,rd(e));const Xo=()=>({dateRangeArea:[],dateRangeLine:[]}),yb=()=>({activeCall:"",colorMap:{},error:!1,isLoading:!1,results:Xo(),tooltip:!1,total:0}),Ri=(()=>Object.assign({},{chartType:"line",focus:"",lens:"Product",subLens:"sub_product"},$a({},yb())))();function o2(t,e,r,i){t.forEach(g=>{r[g]&&(i[g]=Gg(e,r[g][g].buckets))})}function Gg(t,e){const r=[],i=t.lens==="Company"?"product":"sub-product and issue";for(let C=0;C<e.length;C++){a2(e[C]);const J=e[C],dt=Y1(J);J.isParent=!0;const St=J[dt];J.hasChildren=Boolean(St&&St.buckets.length);const xt=Object.assign({},J);if(delete xt[dt],r.push(xt),St&&St.buckets&&St.buckets.length){const Ct=St.buckets,Ut=`Visualize ${i} trends for ${J.key} >`;Ct.push({hasChildren:!1,isParent:!1,key:Ut,name:Ut,splitterText:Ut,value:"",parent:J.key,width:.5}),r.push(Ct)}}const g=[];return[].concat(...r).map(C=>GC(C,g))}function bv(t){return t==="Product"?"products":t==="Company"?"companies":"values"}function $C(t,e){const{focus:r,lens:i,subLens:g}=t,C=r?g.replace("_","-").toLowerCase():i.toLowerCase(),J="Other",dt=e.dateRangeArea.dateRangeArea.buckets.map(Ct=>({name:J,value:Ct.doc_count,date:Ct.key_as_string}));e.dateRangeBuckets.dateRangeBuckets.buckets.forEach(Ct=>{dt.find(Ut=>Ct.key_as_string===Ut.date)||dt.push({name:J,value:0,date:Ct.key_as_string})});const St=Object.assign({},dt),xt=e[C][C].buckets.slice(0,5);for(let Ct=0;Ct<xt.length;Ct++){const Ut=xt[Ct],Wt=Ut.trend_period.buckets.reverse();for(let ae=0;ae<Wt.length;ae++){const ue=Wt[ae];dt.push({name:Ut.key,value:ue.doc_count,date:ue.key_as_string});const he=dt.findIndex(ye=>ye.name===J&&fu(ye.date,ue.key_as_string));he>-1&&(dt[he].value-=ue.doc_count)}const Kt=Object.values(St);if(Ut.trend_period.buckets.length!==Kt.length)for(let ae=0;ae<Kt.length;ae++){const ue=Kt[ae];dt.filter(ye=>ye.name===Ut.key).find(ye=>fu(ye.date,ue.date))||dt.push({name:Ut.key,value:0,date:ue.date})}}return G_(dt)}function qC(t,e,r,i){const g=e.dateRangeArea.dateRangeArea.buckets,C=e.dateRangeBuckets.dateRangeBuckets.buckets,J=[];if(t==="Overview"&&(J.push({topic:"Complaints",topicName:"Complaints",dashed:!1,show:!0,dates:g.map(dt=>({date:dt.key_as_string,value:dt.doc_count}))}),C.forEach(dt=>{J[0].dates.find(St=>dt.key_as_string===St.date)||J[0].dates.push({date:dt.key_as_string,value:0})}),J[0].dates.sort((dt,St)=>new Date(dt.date)-new Date(St.date))),t!=="Overview"){const dt=r?i.replace("_","-"):t.toLowerCase(),St=e[dt][dt].buckets;for(let xt=0;xt<St.length;xt++){const Ct=St[xt].key,Ut=VC(Ct,St[xt].trend_period.buckets,C);J.push({topic:Ct,topicName:Ct,dashed:!1,show:!0,dates:Ut})}}return{dataByTopic:J.slice(0,5)}}function a2(t){const e=Y1(t);if(t[e]){const r=t[e].buckets;for(let i=0;i<r.length;i++)r[i].parent=t.key,a2(r[i])}}const KC=(t,e)=>{const r={},i=Hh.DataLens,g=[...new Set(e.filter(C=>C.name!=="Other").map(C=>C.name))];for(let C=0;C<g.length;C++){const J=g[C],dt=pg(C,0,10);r[J]=i[dt]}return r.Complaints=Hh.BriteCharts.regular,r.Other=Hh.DataLens[10],r["All other products"]=Hh.DataLens[10],r["All other companies"]=Hh.DataLens[10],r["All other values"]=Hh.DataLens[10],r};function ZC(t,e){const r=e.data.aggregations,{focus:i,lens:g,subLens:C}=t,J=Xo(),dt="dateRangeArea";if(r[dt].doc_count===0){const ae=yb();return $a($a({},t),ae)}const xt=r[dt].doc_count;g!=="Overview"&&(J[dt]=$C(t,r)),J.dateRangeLine=qC(g,r,i,C);const Ct={Overview:["product"],Company:["company"],Product:["product"],"Product-focus":["sub-product","issue"],"Company-focus":["product"]};let Ut=g;i&&(Ut+="-focus");const Wt=Ct[Ut];o2(Wt,t,r,J);const Kt=KC(g,J.dateRangeArea);return pl($a({},t),{activeCall:"",colorMap:Kt,error:!1,isLoading:!1,results:J,total:xt})}function s2(t,e){return pl($a({},t),{focus:e.tab===to?t.focus:"",results:Xo()})}function l2(t,e){return pl($a({},t),{activeCall:e.url,isLoading:!0,tooltip:!1})}function QC(t,e){const r=yb();return pl($a($a({},t),r),{error:zy(e.error)})}function JC(t,e){return pl($a({},t),{chartType:e.chartType,tooltip:!1})}function tT(t,e){const r=jl(e.lens,"lens");return pl($a({},t),{focus:"",lens:r,results:Xo(),tooltip:!1})}function u2(t,e){return pl($a({},t),{subLens:e.subLens})}function eT(t,e){const{focus:r,lens:i}=e;return pl($a({},t),{focus:r,lens:i,tooltip:!1})}function c2(t){return pl($a({},t),{focus:"",results:Xo(),tooltip:!1})}function nT(t,e){const r=e.params,i=Object.assign({},Ri),g=["chartType","focus","lens","subLens"];for(const C of g)r[C]&&(i[C]=jl(r[C],C));return i}function rT(t,e){const r=e.value||!1;if(r&&(r.title=db(r.date,r.interval,r.dateRange,!0),r.values)){r.values.forEach(g=>{g.colorIndex=Object.values(Hh.DataLens).indexOf(t.colorMap[g.name])||0,g.value=Mo(g,"value",0)});let i=0;i=r.values.reduce((g,C)=>g+C.value,i),r.total=i}return pl($a({},t),{tooltip:r})}function iT(t){return pl($a({},t),{focus:""})}function oT(t,e){const r=e.values.includes(t.focus)?"":t.focus;return pl($a({},t),{focus:r})}function aT(){const t={};return t[yr.CHART_TYPE_CHANGED]=JC,t[yr.DATA_LENS_CHANGED]=tT,t[yr.DATA_SUBLENS_CHANGED]=u2,t[yr.FILTER_ALL_REMOVED]=iT,t[yr.FILTER_MULTIPLE_REMOVED]=oT,t[yr.FOCUS_CHANGED]=eT,t[yr.FOCUS_REMOVED]=c2,t[yr.TAB_CHANGED]=s2,t[yr.TRENDS_API_CALLED]=l2,t[yr.TRENDS_FAILED]=QC,t[yr.TRENDS_RECEIVED]=ZC,t[yr.TRENDS_TOOLTIP_CHANGED]=rT,t[yr.URL_CHANGED]=nT,t}const h2=aT();function sT(t,e){return e.type in h2?h2[e.type](t,e):t}const uT=(t=Ri,e)=>{const r=sT(t,e);return Y_(r),r};var cT=Object.defineProperty,hT=Object.defineProperties,f2=Object.getOwnPropertyDescriptors,d2=Object.getOwnPropertySymbols,fT=Object.prototype.hasOwnProperty,dT=Object.prototype.propertyIsEnumerable,p2=(t,e,r)=>e in t?cT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,wv=(t,e)=>{for(var r in e||(e={}))fT.call(e,r)&&p2(t,r,e[r]);if(d2)for(var r of d2(e))dT.call(e,r)&&p2(t,r,e[r]);return t},_v=(t,e)=>hT(t,f2(e));const m2={activeCall:"",error:!1,isLoading:!1,results:{product:[],state:[]}},pT=t=>{const e=Object.values(t.state.buckets).filter(i=>L1.includes(i.key)).map(i=>({name:i.key,value:i.doc_count,issue:i.issue.buckets[0].key,product:i.product.buckets[0].key})),r=e.map(i=>i.name);return r.length>0&&L1.forEach(i=>{r.includes(i)||e.push({name:i,value:0,issue:"",product:""})}),e};function mT(t){return _v(wv({},t),{error:!1,results:{product:[],state:[]}})}function gT(t,e){return _v(wv({},t),{activeCall:e.url,error:!1,isLoading:!0})}function yT(t,e){const r=e.data.aggregations,{state:i}=r,g=["product"],C={};return o2(g,t,r,C),C.state=pT(i),_v(wv({},t),{activeCall:"",error:!1,isLoading:!1,results:C})}function vT(t,e){return _v(wv({},t),{activeCall:"",error:zy(e.error),isLoading:!1,results:{product:[],state:[]}})}function xT(){const t={};return t[yr.STATES_API_CALLED]=gT,t[yr.STATES_RECEIVED]=yT,t[yr.STATES_FAILED]=vT,t[yr.TAB_CHANGED]=mT,t}const g2=xT();function bT(t,e){return e.type in g2?g2[e.type](t,e):t}const _T=(t=m2,e)=>bT(t,e);var ET=Object.defineProperty,ST=Object.defineProperties,y2=Object.getOwnPropertyDescriptors,v2=Object.getOwnPropertySymbols,CT=Object.prototype.hasOwnProperty,TT=Object.prototype.propertyIsEnumerable,x2=(t,e,r)=>e in t?ET(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,_i=(t,e)=>{for(var r in e||(e={}))CT.call(e,r)&&x2(t,r,e[r]);if(v2)for(var r of v2(e))TT.call(e,r)&&x2(t,r,e[r]);return t},yo=(t,e)=>ST(t,y2(e));const vb=Un(6575),xb={breakPoints:{},chartType:"line",dataNormalization:To,dateInterval:"Month",dateRange:"3y",date_received_max:Oh(),date_received_min:new Date(_r()(Oh()).subtract(3,"years")),enablePer1000:!0,focus:"",from:0,mapWarningEnabled:!0,lens:"Product",page:1,queryString:"",search:"",searchAfter:"",searchField:"all",searchText:"",size:"25",sort:"created_date_desc",subLens:"sub_product",tab:to,totalPages:0,trendDepth:5,trendsDateWarningEnabled:!1},b2={searchAfter:"search_after",searchText:"search_term",searchField:"field",from:"frm"},w2={dateInterval:"trend_interval",lens:"lens",subLens:"sub_lens",trendDepth:"trend_depth"},MT=["chartType","dataNormalization","dateInterval","dateRange","focus","lens","searchText","searchField","size","sort","subLens","tab"],AT=["from","page","trendDepth"];function PT(t){const e=t.date_received_max,r=t.date_received_min;if(_r()(e).isSame(xb.date_received_max)&&_r()(r).isSame(Rc))return t.dateRange="All",t;const i={"3y":new Date(_r()(e).subtract(3,"years")),"3m":new Date(_r()(e).subtract(3,"months")),"6m":new Date(_r()(e).subtract(6,"months")),"1y":new Date(_r()(e).subtract(1,"year"))},g=Object.keys(i);let C=!1;for(let J=0;J<g.length&&!C;J++){const dt=g[J];_r()(r).isSame(i[dt],"day")&&(t.dateRange=dt,C=!0)}return C||(t.dateRange=""),t}function kT(t){const e=Object.keys(t);return e.includes("dateRange")&&!e.includes("date_received_min")&&!e.includes("date_received_max")}function OT(t){if(isNaN(Date.parse(t)))return null;const e=new Date(t);return new Date(e.getFullYear(),e.getMonth(),e.getDate()+1)}function _2(t,e){const r=e.params;let i=Object.assign({},xb);if(MT.forEach(g=>{typeof r[g]!="undefined"&&(i[g]=jl(r[g],g))}),$f(r,i,Uf),Wf.forEach(g=>{if(typeof r[g]!="undefined"){const C=OT(r[g]);C&&(i[g]=C)}}),Gf.forEach(g=>{typeof r[g]!="undefined"&&(i[g]=r[g]==="true")}),AT.forEach(g=>{if(typeof r[g]!="undefined"){const C=parseInt(r[g],10);isNaN(C)===!1&&(i[g]=jl(C,g))}}),kT(r)||r.dateRange==="All"){const g={dateRange:r.dateRange};i=bb(i,g)}return i.page=1,PT(i)}function E2(t,e){const r=jl(e.dateInterval,"dateInterval");return yo(_i({},t),{dateInterval:r})}function bb(t,e){const r=jl(e.dateRange,"dateRange"),i=yo(_i({},t),{dateRange:r}),g=Oh(),C={All:new Date(Rc),"3m":new Date(_r()(g).subtract(3,"months")),"6m":new Date(_r()(g).subtract(6,"months")),"1y":new Date(_r()(g).subtract(1,"year")),"3y":new Date(_r()(g).subtract(3,"years"))};return C[r]&&(i.date_received_min=C[r]),i.date_received_max=g,i}function Dp(t,e){const r=[e.filterName+"_min",e.filterName+"_max"];let{maxDate:i,minDate:g}=e;g=_r()(g).isValid()?new Date(_r()(g).startOf("day")):null,i=_r()(i).isValid()?new Date(_r()(i).startOf("day")):null;const C=yo(_i({},t),{[r[0]]:g,[r[1]]:i});r.forEach(dt=>{C[dt]===null&&delete C[dt]});const J=VS(g,i);return J?C.dateRange=J:delete C.dateRange,C}function wb(t){const{date_received_min:e,date_received_max:r,dateInterval:i}=t;Pp(e,r)&&i==="Day"&&(t.dateInterval="Week",t.trendsDateWarningEnabled=!0),Pp(e,r)||(t.trendsDateWarningEnabled=!1)}function S2(t,e){const r=yo(_i({},t),{[e.filterName]:Boolean(!t[e.filterName])});return["has_narrative"].forEach(g=>{r[g]||delete r[g]}),r}function Ev(t,e){const r=Np(1,t);return yo(_i(_i({},t),r),{searchField:e.searchField})}function _b(t,e){const r=Np(1,t);return yo(_i(_i({},t),r),{searchText:e.searchText})}function C2(t,e){const r=_i({},t),i=e.filterName,g=Mo(r,i,[]);return e.values.forEach(C=>{g.indexOf(C)===-1&&g.push(C)}),r[i]=g,r}function Vg(t=[],e){return t.indexOf(e)===-1?t.push(e):t=t.filter(function(r){return r!==e}),[...t]}function Yg(t,e){return yo(_i({},t),{[e.filterName]:Vg(t[e.filterName],e.filterValue.key)})}function Xg(t,e){const r=Mo(t,"state",[]),{abbr:i}=e.selectedState;return r.includes(i)||r.push(i),yo(_i({},t),{state:r})}function $g(t){return yo(_i({},t),{state:[]})}function DT(t){return yo(_i({},t),{tab:pa})}function T2(t,e){const r=Mo(t,"state",[]),{abbr:i}=e.selectedState;return yo(_i({},t),{state:r.filter(C=>C!==i)})}function Eb(t){const e=_i({},t),r=Uf.concat(Wf,Gf);if(t.searchField===Py){const i=r.indexOf("has_narrative");r.splice(i,1)}return r.forEach(i=>{i in e&&delete e[i]}),e.dateRange="All",e.date_received_min=new Date(Rc),e.date_received_max=Oh(),e.focus="",e}function NT(t,e){const r=_i({},t);return e.filterName==="has_narrative"?r.has_narrative=!0:e.filterName in r?r[e.filterName].indexOf(e.filterValue)===-1&&r[e.filterName].push(e.filterValue):r[e.filterName]=[e.filterValue],r}function LT(t,e){const r=_i({},t);if(e.filterName==="has_narrative")delete r.has_narrative;else if(e.filterName in r){const i=r[e.filterName].indexOf(e.filterValue);i!==-1&&r[e.filterName].splice(i,1)}return r}function Sb(t,e){const r=_i({},t);return r[e.filterName]=[...new Set(e.values)],r}function RT(t,e){const r=_i({},t),i=r[e.filterName];return r.focus=e.values.includes(t.focus)?"":t.focus||"",i&&e.values.forEach(g=>{const C=i.indexOf(g);C!==-1&&i.splice(C,1)}),r}function M2(t){return yo(_i({},t),{mapWarningEnabled:!1})}function A2(t){return yo(_i({},t),{trendsDateWarningEnabled:!1})}function Np(t,e){return{from:(t-1)*e.size,page:t,searchAfter:IT(e,t)}}function P2(t){const e=pg(t.page-1,1,t.page),r=Np(e,t);return _i(_i({},t),r)}function k2(t){const e=pg(t.page+1,1,t.totalPages),r=Np(e,t);return _i(_i({},t),r)}function IT(t,e){const{breakPoints:r}=t;return r&&r[e]?r[e].join("_"):""}function O2(t,e){const r=Np(1,t);return yo(_i(_i({},t),r),{size:e.size})}function D2(t,e){const r=Np(1,t),i=jl(e.sort,"sort");return yo(_i(_i({},t),r),{sort:i})}function jT(t,e){const r=jl(e.tab,"tab");return yo(_i({},t),{focus:r===to?t.focus:"",tab:r})}function FT(t,e){const{_meta:r,hits:i}=e.data,g=Math.ceil(i.total.value/t.size),{break_points:C}=r,J=t.page>g?g:t.page;return yo(_i({},t),{breakPoints:C,page:J,totalPages:Object.keys(C).length+1})}function Sv(t,e){return yo(_i({},t),{trendDepth:e.depth})}function zh(t){return yo(_i({},t),{trendDepth:5})}function N2(t,e){const{focus:r,filterValues:i,lens:g}=e,C=g.toLowerCase(),J=[];return C==="company"?J.push(r):i.forEach(dt=>{J.push(dt)}),yo(_i({},t),{[C]:J,focus:r,lens:g,tab:to,trendDepth:25})}function L2(t){const{lens:e}=t,r=e.toLowerCase();return yo(_i({},t),{[r]:[],focus:"",tab:to,trendDepth:5})}function R2(t,e){const r=jl(e.lens,"lens");return yo(_i({},t),{focus:"",lens:r,trendDepth:r==="Company"?10:5})}function Cb(t,e){return yo(_i({},t),{subLens:e.subLens.toLowerCase()})}function BT(t,e){return yo(_i({},t),{chartType:e.chartType})}function I2(t,e){const r=jl(e.value,"dataNormalization");return yo(_i({},t),{dataNormalization:r})}function Cv(t){Uf.forEach(e=>{Array.isArray(t[e])&&t[e].length===0&&delete t[e]})}function qg(t){const e={};Object.keys(t).forEach(dt=>{if(!t[dt]||dt==="queryString")return;let St=t[dt];Wf.indexOf(dt)!==-1&&(St=Hy(St));const xt=["yes","true"];Gf.indexOf(dt)!==-1&&(St=xt.includes(String(St).toLowerCase())),b2[dt]?e[b2[dt]]=St:w2[dt]?e[w2[dt]]=St.toString().toLowerCase():e[dt]=St});const i=[].concat(["search_term","field"],Wf,Uf,Gf),g={List:["frm","search_after","size","sort","format","no_aggs","no_highlight"],Map:[],Trends:["lens","focus","sub_lens","sub_lens_depth","trend_interval","trend_depth"]},C=[].concat(i,g[e.tab]);Object.keys(e).includes("format")&&["size","format","no_aggs"].forEach(St=>{C.includes(St)||C.push(St)});const J=Object.keys(e).filter(dt=>C.includes(dt)).reduce((dt,St)=>(dt[St]=e[St],dt),{});return"?"+vb.stringify(J)}function j2(t){const e={};Object.keys(t).forEach(dt=>{if(!t[dt]||["queryString","url","breakPoints"].includes(dt))return;let St=t[dt];Wf.indexOf(dt)!==-1&&(St=Hy(St)),e[dt]=St});const i=[].concat(["searchText","searchField","tab"],Wf,Uf,Gf),g={List:["sort","size","page"],Map:["dataNormalization","dateRange","expandedRows"],Trends:["chartType","dateRange","dateInterval","expandedRows","lens","focus","subLens"]},C=[].concat(i,g[e.tab]),J=Object.keys(e).filter(dt=>C.includes(dt)).reduce((dt,St)=>(dt[St]=e[St],dt),{});return"?"+vb.stringify(J)}function F2(t){t.enablePer1000=jw(t),t.enablePer1000&&(t.mapWarningEnabled=!0),t.dataNormalization=t.enablePer1000&&t.dataNormalization||To}function Tb(t){t.breakPoints={},t.from=0,t.page=1,t.searchAfter=""}function HT(){const t={};return t[yr.CHART_TYPE_CHANGED]=BT,t[yr.COMPLAINTS_RECEIVED]=FT,t[yr.DATA_LENS_CHANGED]=R2,t[yr.DATA_NORMALIZATION_SELECTED]=I2,t[yr.DATA_SUBLENS_CHANGED]=Cb,t[yr.DATE_INTERVAL_CHANGED]=E2,t[yr.DATE_RANGE_CHANGED]=bb,t[yr.DATES_CHANGED]=Dp,t[yr.DEPTH_CHANGED]=Sv,t[yr.DEPTH_RESET]=zh,t[yr.FILTER_ALL_REMOVED]=Eb,t[yr.FILTER_CHANGED]=Yg,t[yr.FILTER_FLAG_CHANGED]=S2,t[yr.FILTER_MULTIPLE_ADDED]=C2,t[yr.FILTER_MULTIPLE_REMOVED]=RT,t[yr.FILTER_ADDED]=NT,t[yr.FILTER_REMOVED]=LT,t[yr.FILTER_REPLACED]=Sb,t[yr.FOCUS_CHANGED]=N2,t[yr.FOCUS_REMOVED]=L2,t[yr.MAP_WARNING_DISMISSED]=M2,t[yr.NEXT_PAGE_SHOWN]=k2,t[yr.PREV_PAGE_SHOWN]=P2,t[yr.SIZE_CHANGED]=O2,t[yr.SORT_CHANGED]=D2,t[yr.STATE_COMPLAINTS_SHOWN]=DT,t[yr.STATE_FILTER_ADDED]=Xg,t[yr.STATE_FILTER_CLEARED]=$g,t[yr.STATE_FILTER_REMOVED]=T2,t[yr.TAB_CHANGED]=jT,t[yr.TRENDS_DATE_WARNING_DISMISSED]=A2,t[yr.URL_CHANGED]=_2,t[yr.SEARCH_TEXT_CHANGED]=_b,t[yr.SEARCH_FIELD_CHANGED]=Ev,t}const gi=HT();function zT(t,e){return e.type in gi?gi[e.type](t,e):t}const UT=(t=xb,e)=>{const r=zT(t,e);[yr.DATE_INTERVAL_CHANGED,yr.DATE_RANGE_CHANGED,yr.DATES_CHANGED,yr.FILTER_ALL_REMOVED,yr.FILTER_CHANGED,yr.FILTER_FLAG_CHANGED,yr.FILTER_MULTIPLE_ADDED,yr.FILTER_MULTIPLE_REMOVED,yr.FILTER_ADDED,yr.FILTER_REMOVED,yr.FILTER_REPLACED,yr.SEARCH_FIELD_CHANGED,yr.SEARCH_TEXT_CHANGED,yr.SIZE_CHANGED,yr.SORT_CHANGED,yr.TAB_CHANGED].includes(e.type)&&Tb(r),r.tab===Ah&&F2(r),r.tab===to&&(wb(r),Y_(r)),Cv(r);const g=qg(r);return r.queryString=g==="?"?"":g,r.search=j2(r),r};var WT=Object.defineProperty,GT=Object.defineProperties,VT=Object.getOwnPropertyDescriptors,B2=Object.getOwnPropertySymbols,YT=Object.prototype.hasOwnProperty,XT=Object.prototype.propertyIsEnumerable,H2=(t,e,r)=>e in t?WT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Vi=(t,e)=>{for(var r in e||(e={}))YT.call(e,r)&&H2(t,r,e[r]);if(B2)for(var r of B2(e))XT.call(e,r)&&H2(t,r,e[r]);return t},Tv=(t,e)=>GT(t,VT(e));const z2={activeCall:"",error:"",isLoading:!1,items:[]},U2=t=>t.hits.hits.map(e=>{const r=Vi({},e._source);return e.highlight&&Object.keys(e.highlight).forEach(i=>{r[i]=e.highlight[i][0]}),r});function $T(t,e){return Tv(Vi({},t),{activeCall:e.url,isLoading:!0})}function W2(t,e){const r=U2(e.data);return Tv(Vi({},t),{activeCall:"",error:"",isLoading:!1,items:r})}function qT(t,e){return Tv(Vi({},z2),{error:e.error})}function G2(){const t={};return t[Ly]=$T,t[Ry]=W2,t[I1]=qT,t}const V2=G2();function Y2(t,e){return e.type in V2?V2[e.type](t,e):t}const X2=(t=z2,e)=>Y2(t,e);var KT=Object.defineProperty,$2=Object.defineProperties,ZT=Object.getOwnPropertyDescriptors,Mb=Object.getOwnPropertySymbols,QT=Object.prototype.hasOwnProperty,q2=Object.prototype.propertyIsEnumerable,K2=(t,e,r)=>e in t?KT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Xs=(t,e)=>{for(var r in e||(e={}))QT.call(e,r)&&K2(t,r,e[r]);if(Mb)for(var r of Mb(e))q2.call(e,r)&&K2(t,r,e[r]);return t},ml=(t,e)=>$2(t,ZT(e));const Z2={expandedRows:[],isFromExternal:!1,isPrintMode:!1,hasAdvancedSearchTips:!1,hasFilters:!0,showTour:!1,modalTypeShown:!1,width:0};function JT(t,e){const r=e.params;return t.isPrintMode=r.isPrintMode==="true",t.isFromExternal=r.isFromExternal==="true",$f(r,t,["expandedRows"]),t}function Q2(t){return ml(Xs({},t),{hasAdvancedSearchTips:!1})}function tM(t){return ml(Xs({},t),{modalTypeShown:!1})}function J2(t,e){return ml(Xs({},t),{modalTypeShown:e.modalType})}function eM(t){return ml(Xs({},t),{hasAdvancedSearchTips:!0})}function tE(t){return ml(Xs({},t),{isPrintMode:!0})}function nM(t){return ml(Xs({},t),{isFromExternal:!1,isPrintMode:!1})}function eE(t,e){return ml(Xs({},t),{hasFilters:e.screenWidth>749,width:e.screenWidth})}function rM(t){return ml(Xs({},t),{hasFilters:!t.hasFilters})}function nE(t){return ml(Xs({},t),{showTour:!1})}function iM(t){return ml(Xs({},t),{expandedRows:[],hasAdvancedSearchTips:!1,showTour:!0})}function rE(t,e){const{expandedRows:r}=t,i=e.value;return ml(Xs({},t),{expandedRows:r.filter(g=>g!==i)})}function oM(t,e){const{expandedRows:r}=t,i=e.value;return r.includes(i)||r.push(i),ml(Xs({},t),{expandedRows:r})}function iE(t){return ml(Xs({},t),{expandedRows:[]})}function aM(){const t={};return t[yr.DATA_LENS_CHANGED]=iE,t[yr.MODAL_HID]=tM,t[yr.MODAL_SHOWN]=J2,t[yr.PRINT_MODE_ON]=tE,t[yr.PRINT_MODE_OFF]=nM,t[yr.SCREEN_RESIZED]=eE,t[yr.HIDE_ADVANCED_SEARCH_TIPS]=Q2,t[yr.SHOW_ADVANCED_SEARCH_TIPS]=eM,t[yr.TOGGLE_FILTER_VISIBILITY]=rM,t[yr.HIDE_TOUR]=nE,t[yr.SHOW_TOUR]=iM,t[yr.ROW_COLLAPSED]=rE,t[yr.ROW_EXPANDED]=oM,t[yr.URL_CHANGED]=JT,t}const Ab=aM();function sM(t,e){return e.type in Ab?Ab[e.type](t,e):t}const uM=(t=Z2,e)=>sM(t,e),oE=(0,nt.UY)({aggs:IC,detail:jC,map:_T,query:UT,results:X2,trends:uT,view:uM}),TP={},aE=()=>{const t=Si();return a.createElement("header",{className:"content_hero"},a.createElement("h1",{className:"content-header"},"Consumer Complaint Database"),a.createElement("ul",{className:"m-list m-list__horizontal"},a.createElement("li",{className:"m-list_item"},a.createElement("button",{className:"a-btn a-btn__link",onClick:()=>{t(td(Ay))}},"Things to know before you use this database")),a.createElement("li",{className:"m-list_item"},a.createElement("a",{href:R1,target:"_blank",rel:"noopener noreferrer"},"How we use complaint data")),a.createElement("li",{className:"m-list_item"},a.createElement("a",{href:"https://cfpb.github.io/api/ccdb/",target:"_blank",rel:"noopener noreferrer"},"Technical documentation"))))},MP={},cM={};class Zu extends a.Component{constructor(e){super(e),this.state={hasChildren:e.hasChildren},this._toggleChildDisplay=this._toggleChildDisplay.bind(this)}_toggleChildDisplay(){this.setState({hasChildren:!this.state.hasChildren})}componentDidUpdate(e){e.hasChildren!==this.props.hasChildren&&this.setState({hasChildren:this.props.hasChildren})}render(){let e="o-expandable";this.props.className&&(e+=" "+this.props.className);const r=this.state.hasChildren?"true":"false",i=a.createElement(a.Fragment,null,a.createElement("span",{className:"o-expandable_cue-close",role:"img","aria-label":"Hide"},si("minus-round"))),g=a.createElement(a.Fragment,null,a.createElement("span",{className:"o-expandable_cue-open",role:"img","aria-label":"Show"},si("plus-round")));return a.createElement("section",{className:e},a.createElement("button",{className:"o-expandable_header","aria-expanded":r,"aria-label":`Hide ${this.props.title} filter`,onClick:this._toggleChildDisplay},a.createElement("h3",{className:"h4 o-expandable_label"},this.props.title),a.createElement("span",{className:"o-expandable_cues"},this.state.hasChildren?i:g)),this.state.hasChildren?a.createElement("div",{className:"o-expandable_content"},a.createElement("p",null,this.props.desc),this.props.children):null)}}Zu.propTypes={hasChildren:Ce().bool,className:Ce().string,title:Ce().string,desc:Ce().string,children:Ce().node},Zu.defaultProps={hasChildren:!0};const hM={};function $o(){return $o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},$o.apply(this,arguments)}function Kr(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fM(t,e){if(t==null)return{};var r={},i=Object.keys(t),g,C;for(C=0;C<i.length;C++)g=i[C],!(e.indexOf(g)>=0)&&(r[g]=t[g]);return r}function Na(t,e){if(t==null)return{};var r=fM(t,e),i,g;if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(t);for(g=0;g<C.length;g++)i=C[g],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(t,i)&&(r[i]=t[i])}return r}var dM=Un(8492),sE=Un.n(dM);function pM(){var t=(0,a.useReducer)(function(r){return!r},!1),e=t[1];return e}function mM(t){var e=(0,a.useRef)(null);return(0,a.useEffect)(function(){e.current=t}),e.current}var gM=["justify","left","right"],lE="label",yM=["lg","sm"],Mv=Un(7166),uE=Un.n(Mv);function Lp(t){return typeof t=="string"?t:lE}function Av(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var cE=0;function $s(t){return typeof t=="function"}function Qu(t){return typeof t=="string"}function Ts(){}function Pv(t,e){var r={};return e.forEach(function(i){r[i]=t[i]}),r}function vM(t){return cE+=1,(t==null?"":String(t))+cE}function xM(t,e){if(!Qu(t)&&(Av(t,"paginationOption")||Av(t,"customOption")))return t[Lp(e)];var r;return $s(e)?r=e(t):Qu(t)?r=t:r=t[e],Qu(r)||uE()(!1),r}const Ju=xM;function bM(t,e){var r=e.allowNew,i=e.labelKey,g=e.text;return!r||!g.trim()?!1:$s(r)?r(t,e):!t.some(function(C){return Ju(C,i)===g})}const wM=bM;var hE=Un(2303),id=Un.n(hE);function od(t,e){if(!Qu(t))return t[e]}var _M=[{base:"A",letters:"A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"},{base:"AA",letters:"\uA732"},{base:"AE",letters:"\xC6\u01FC\u01E2"},{base:"AO",letters:"\uA734"},{base:"AU",letters:"\uA736"},{base:"AV",letters:"\uA738\uA73A"},{base:"AY",letters:"\uA73C"},{base:"B",letters:"B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181"},{base:"C",letters:"C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E"},{base:"D",letters:"D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779\xD0"},{base:"DZ",letters:"\u01F1\u01C4"},{base:"Dz",letters:"\u01F2\u01C5"},{base:"E",letters:"E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E"},{base:"F",letters:"F\u24BB\uFF26\u1E1E\u0191\uA77B"},{base:"G",letters:"G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E"},{base:"H",letters:"H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"},{base:"I",letters:"I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"},{base:"J",letters:"J\u24BF\uFF2A\u0134\u0248"},{base:"K",letters:"K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"},{base:"L",letters:"L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"},{base:"LJ",letters:"\u01C7"},{base:"Lj",letters:"\u01C8"},{base:"M",letters:"M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C"},{base:"N",letters:"N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4"},{base:"NJ",letters:"\u01CA"},{base:"Nj",letters:"\u01CB"},{base:"O",letters:"O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"},{base:"OI",letters:"\u01A2"},{base:"OO",letters:"\uA74E"},{base:"OU",letters:"\u0222"},{base:"OE",letters:"\x8C\u0152"},{base:"oe",letters:"\x9C\u0153"},{base:"P",letters:"P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"},{base:"Q",letters:"Q\u24C6\uFF31\uA756\uA758\u024A"},{base:"R",letters:"R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"},{base:"S",letters:"S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"},{base:"T",letters:"T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"},{base:"TZ",letters:"\uA728"},{base:"U",letters:"U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"},{base:"V",letters:"V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"},{base:"VY",letters:"\uA760"},{base:"W",letters:"W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"},{base:"X",letters:"X\u24CD\uFF38\u1E8A\u1E8C"},{base:"Y",letters:"Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"},{base:"Z",letters:"Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"},{base:"a",letters:"a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250"},{base:"aa",letters:"\uA733"},{base:"ae",letters:"\xE6\u01FD\u01E3"},{base:"ao",letters:"\uA735"},{base:"au",letters:"\uA737"},{base:"av",letters:"\uA739\uA73B"},{base:"ay",letters:"\uA73D"},{base:"b",letters:"b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253"},{base:"c",letters:"c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"},{base:"d",letters:"d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A"},{base:"dz",letters:"\u01F3\u01C6"},{base:"e",letters:"e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD"},{base:"f",letters:"f\u24D5\uFF46\u1E1F\u0192\uA77C"},{base:"g",letters:"g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F"},{base:"h",letters:"h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"},{base:"j",letters:"j\u24D9\uFF4A\u0135\u01F0\u0249"},{base:"k",letters:"k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"},{base:"l",letters:"l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747"},{base:"lj",letters:"\u01C9"},{base:"m",letters:"m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"},{base:"n",letters:"n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5"},{base:"nj",letters:"\u01CC"},{base:"o",letters:"o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275"},{base:"oi",letters:"\u01A3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\uA74F"},{base:"p",letters:"p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755"},{base:"q",letters:"q\u24E0\uFF51\u024B\uA757\uA759"},{base:"r",letters:"r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"},{base:"s",letters:"s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B"},{base:"t",letters:"t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"},{base:"tz",letters:"\uA729"},{base:"u",letters:"u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"},{base:"v",letters:"v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"},{base:"vy",letters:"\uA761"},{base:"w",letters:"w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"},{base:"x",letters:"x\u24E7\uFF58\u1E8B\u1E8D"},{base:"y",letters:"y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"},{base:"z",letters:"z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"}].reduce(function(t,e){var r=e.base,i=e.letters;return i.split("").forEach(function(g){t[g]=r}),t},{}),Ci="\u0300-\u036F",fE="\u3099\u309A";function Sa(t){return t.normalize("NFD").replace(new RegExp("[".concat(Ci).concat(fE,"]"),"g"),"").replace(/[^\u0000-\u007E]/g,function(e){return _M[e]||e})}var ad=Un(626),Pb=Un.n(ad),Kg={};function qo(t,e){if(!t&&e.indexOf("deprecated")!==-1){if(Kg[e])return;Kg[e]=!0}for(var r=arguments.length,i=new Array(r>2?r-2:0),g=2;g<r;g++)i[g-2]=arguments[g];Pb().apply(void 0,[t,"[react-bootstrap-typeahead] ".concat(e)].concat(i))}function Zg(){Kg={}}function La(t,e,r){var i=t,g=e;return r.caseSensitive||(i=i.toLowerCase(),g=g.toLowerCase()),r.ignoreDiacritics&&(i=Sa(i),g=Sa(g)),g.indexOf(i)!==-1}function Uh(t,e){var r=e.filterBy,i=e.labelKey,g=e.multiple,C=e.selected,J=e.text;if(g&&C.some(function(St){return id()(St,t)}))return!1;if($s(i))return La(J,i(t),e);var dt=r.slice();return Qu(i)&&dt.indexOf(i)===-1&&dt.unshift(i),Qu(t)?(qo(dt.length<=1,"You cannot filter by properties when `option` is a string."),La(J,t,e)):dt.some(function(St){var xt=od(t,St);return Qu(xt)||(qo(!1,"Fields passed to `filterBy` should have string values. Value will be converted to a string; results may be unexpected."),xt=String(xt)),La(J,xt,e)})}function Qg(t){return t.selectionStart!=null}function Wh(t,e){var r=!1;return t.key==="ArrowRight"&&(r=Qg(t.currentTarget)?t.currentTarget.selectionStart===t.currentTarget.value.length:!0),t.key==="Tab"&&(t.preventDefault(),r=!0),e?e(r,t):r}var EM="i",kv=/[\u0300-\u036F]/;function SM(t){return typeof t!="string"&&uE()(!1),t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function dE(t,e){var r=new RegExp(SM(Sa(e)),EM),i=r.exec(Sa(t));if(!i)return null;var g=i.index,C=i[0].length;if(kv.test(t)){for(var J=0;J<=g;J++)kv.test(t[J])&&(g+=1);for(var dt=g;dt<=g+C;dt++)kv.test(t[dt])&&(C+=1)}return{end:g+C,start:g}}function CM(t){var e=t.activeIndex,r=t.initialItem,i=t.isFocused,g=t.isMenuShown,C=t.labelKey,J=t.multiple,dt=t.selected,St=t.text;if(!St||!i||!g||!r||!Qu(r)&&Av(r,"customOption")||e>-1||dt.length&&!J)return"";var xt=Ju(r,C),Ct=dE(xt.toLowerCase(),St.toLowerCase());return Ct&&Ct.start===0?St+xt.slice(Ct.end,xt.length):""}const TM=CM;var MM=Un(4403),mu=Un.n(MM);function Jg(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;return"".concat(t,"-item-").concat(e)}var AM=["activeIndex","id","isFocused","isMenuShown","multiple","onClick","onFocus","placeholder"];function kb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(g){return Object.getOwnPropertyDescriptor(t,g).enumerable})),r.push.apply(r,i)}return r}function sd(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?kb(Object(r),!0).forEach(function(i){Kr(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kb(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}var Ob=function(e){var r=e.activeIndex,i=e.id,g=e.isFocused,C=e.isMenuShown,J=e.multiple,dt=e.onClick,St=e.onFocus,xt=e.placeholder,Ct=Na(e,AM);return function(){var Ut,Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Kt=Av(Wt,"className")?String(Wt.className):void 0;return sd(sd(sd(sd({autoComplete:"off",placeholder:xt,type:"text"},Wt),Ct),{},{"aria-activedescendant":r>=0?Jg(i,r):void 0,"aria-autocomplete":"both","aria-expanded":C,"aria-haspopup":"listbox","aria-multiselectable":J||void 0,"aria-owns":C?i:void 0,className:mu()((Ut={},Kr(Ut,Kt||"",!J),Kr(Ut,"focus",g),Ut))},J&&{inputClassName:Kt}),{},{onClick:dt,onFocus:St,role:"combobox"})}};const Db=Ob;function Nb(t){var e=t.activeItem,r=t.labelKey,i=t.multiple,g=t.selected,C=t.text;return e?Ju(e,r):!i&&g.length&&g[0]?Ju(g[0],r):C}const pE=Nb;function PM(t){var e=t.allowNew,r=t.highlightOnlyResult,i=t.results;return!r||e?!1:i.length===1&&!od(i[0],"disabled")}const mE=PM;function kM(t,e){return!e||e>=t.length?t:t.slice(0,e)}const gE=kM;function yE(t,e){var r=e[t];return!!r&&!!od(r,"disabled")}function Ov(t,e,r){for(var i=t;yE(i,r);)i+=e==="ArrowUp"?-1:1;return i}function t0(t,e,r){var i=t;return i+=e==="ArrowUp"?-1:1,i=Ov(i,e,r),i===r.length?i=-1:i===-2&&(i=r.length-1,i=Ov(i,e,r)),i}function vE(t){var e=t.open,r=t.minLength,i=t.showMenu,g=t.text;return e||e===!1?e:g.length<r?!1:i}function Dv(t){t.preventDefault()}function ld(t){return t==="lg"}function Nv(t){return t==="sm"}var OM=["className","isInvalid","isValid","size"];function xE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(g){return Object.getOwnPropertyDescriptor(t,g).enumerable})),r.push.apply(r,i)}return r}function Lv(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?xE(Object(r),!0).forEach(function(i){Kr(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xE(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function bE(t){var e=t.className,r=t.isInvalid,i=t.isValid,g=t.size,C=Na(t,OM);return Lv(Lv({},C),{},{className:mu()("form-control","rbt-input",{"form-control-lg":ld(g),"form-control-sm":Nv(g),"is-invalid":r,"is-valid":i},e)})}function DM(t,e){var r=!t&&e,i=t&&!e,g,C,J;r?(g="uncontrolled",C="controlled",J="an"):(g="controlled",C="uncontrolled",J="a");var dt="You are changing ".concat(J," ").concat(g," typeahead to be ").concat(C,". ")+"Input elements should not switch from ".concat(g," to ").concat(C," (or vice versa). ")+"Decide between using a controlled or uncontrolled element for the lifetime of the component.";qo(!(r||i),dt)}var NM=[{alt:"onBlur",prop:"onBlur"},{alt:"onInputChange",prop:"onChange"},{alt:"onFocus",prop:"onFocus"},{alt:"onKeyDown",prop:"onKeyDown"}],wE=Ce().oneOf(yM);function tc(t,e){return function(r,i,g){Ce().checkPropTypes(Kr({},i,t),r,"prop",g),$s(e)&&e(r,i,g)}}function LM(t){var e=t.caseSensitive,r=t.filterBy;qo(!e||typeof r!="function","Your `filterBy` function will override the `caseSensitive` prop.")}function _E(t,e){return function(r,i,g){return r[i]!=null&&warn(!1,"The `".concat(i,"` prop is deprecated. ").concat(e)),PropTypes.checkPropTypes(_defineProperty({},i,t),r,"prop",g)}}function EE(t){var e=t.defaultInputValue,r=t.defaultSelected,i=t.multiple,g=t.selected,C=r.length?"defaultSelected":"selected";qo(!(!i&&e&&(r.length||g&&g.length)),"`defaultInputValue` will be overridden by the value from `".concat(C,"`."))}function SE(t){var e=t.defaultSelected,r=t.multiple;qo(r||e.length<=1,"You are passing multiple options to the `defaultSelected` prop of a Typeahead in single-select mode. The selections will be truncated to a single selection.")}function RM(t){var e=t.allowNew,r=t.highlightOnlyResult;qo(!(r&&e),"`highlightOnlyResult` will not work with `allowNew`.")}function CE(t){var e=t.filterBy,r=t.ignoreDiacritics;qo(r||typeof e!="function","Your `filterBy` function will override the `ignoreDiacritics` prop.")}function IM(t){var e=t.inputProps;e&&Object.prototype.toString.call(e)==="[object Object]"&&NM.forEach(function(r){var i=r.alt,g=r.prop,C=i?" Use the top-level `".concat(i,"` prop instead."):null;qo(!e[g],"The `".concat(g,"` property of `inputProps` will be ignored.").concat(C))})}function Lb(t,e,r){qo(t[e]!=null,"The prop `".concat(e,"` is required to make `").concat(r,"` ")+"accessible for users of assistive technologies such as screen readers.")}function jM(t){var e=t.allowNew,r=t.labelKey;qo(!($s(r)&&e),"`labelKey` must be a string when `allowNew={true}`.")}var Rp=Ce().oneOfType([Ce().object,Ce().string]);function TE(t){var e=t.multiple,r=t.onChange,i=t.selected;qo(e||!i||i.length<=1,"You are passing multiple options to the `selected` prop of a Typeahead in single-select mode. This may lead to unexpected behaviors or errors."),qo(!i||i&&$s(r),"You provided a `selected` prop without an `onChange` handler. If you want the typeahead to be uncontrolled, use `defaultSelected`. Otherwise, set `onChange`.")}var ME=["allowNew","delay","emptyLabel","isLoading","minLength","onInputChange","onSearch","options","promptText","searchText","useCache"];function Rv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(g){return Object.getOwnPropertyDescriptor(t,g).enumerable})),r.push.apply(r,i)}return r}function Rb(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Rv(Object(r),!0).forEach(function(i){Kr(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Rv(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}var Fl={delay:Ce().number,isLoading:Ce().bool.isRequired,minLength:Ce().number,onSearch:Ce().func.isRequired,options:Ce().arrayOf(Rp),promptText:Ce().node,searchText:Ce().node,useCache:Ce().bool};function gl(t){var e=t.allowNew,r=t.delay,i=r===void 0?200:r,g=t.emptyLabel,C=t.isLoading,J=t.minLength,dt=J===void 0?2:J,St=t.onInputChange,xt=t.onSearch,Ct=t.options,Ut=Ct===void 0?[]:Ct,Wt=t.promptText,Kt=Wt===void 0?"Type to search...":Wt,ae=t.searchText,ue=ae===void 0?"Searching...":ae,he=t.useCache,ye=he===void 0?!0:he,We=Na(t,ME),en=(0,a.useRef)({}),cn=(0,a.useRef)(null),on=(0,a.useRef)(t.defaultInputValue||""),ze=pM(),Pn=mM(t),_n=(0,a.useCallback)(function(ur){if(on.current=ur,!(!ur||dt&&ur.length<dt)){if(ye&&en.current[ur]){ze();return}xt(ur)}},[ze,dt,xt,ye]);(0,a.useEffect)(function(){return cn.current=sE()(_n,i),function(){cn.current&&cn.current.cancel()}},[i,_n]),(0,a.useEffect)(function(){!C&&Pn&&Pn.isLoading&&ye&&(en.current[on.current]=Ut)});var zn=function(){return on.current.length?C?ue:g:Kt},mr=(0,a.useCallback)(function(ur,br){St&&St(ur,br),cn.current&&cn.current(ur)},[St]),pr=en.current[on.current];return Rb(Rb({},We),{},{allowNew:$s(e)?e:e&&!C,emptyLabel:zn(),isLoading:C,minLength:dt,onInputChange:mr,options:ye&&pr?pr:Ut})}function AE(t){warn(!1,"Warning: `withAsync` is deprecated and will be removed in the next major version. Use `useAsync` instead.");var e=forwardRef(function(r,i){return React.createElement(t,_extends({},r,gl(r),{ref:i}))});return e.displayName="withAsync(".concat(getDisplayName(t),")"),e.propTypes=Fl,e}function PE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ib(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function kE(t,e,r){return e&&Ib(t.prototype,e),r&&Ib(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ui(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ec(t,e){return ec=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,g){return i.__proto__=g,i},ec(t,e)}function e0(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ec(t,e)}function Ip(t){return Ip=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ip(t)}function OE(t,e){if(e&&(Ip(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ui(t)}function ud(t){return ud=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ud(t)}var FM={activeIndex:-1,hintText:"",id:"",initialItem:null,inputNode:null,isOnlyResult:!1,onActiveItemChange:Ts,onAdd:Ts,onInitialItemChange:Ts,onMenuItemClick:Ts,setItem:Ts},jb=(0,a.createContext)(FM),DE=function(){return(0,a.useContext)(jb)};function Fb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(g){return Object.getOwnPropertyDescriptor(t,g).enumerable})),r.push.apply(r,i)}return r}function jp(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Fb(Object(r),!0).forEach(function(i){Kr(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fb(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}var Iv=["activeIndex","disabled","id","inputRef","isFocused","isMenuShown","multiple","onBlur","onChange","onClick","onFocus","onKeyDown","placeholder"],Bb=["activeIndex","hideMenu","isMenuShown","labelKey","onClear","onHide","onRemove","results","selected","text","toggleMenu"],BM=["activeIndex","id","initialItem","inputNode","onActiveItemChange","onAdd","onInitialItemChange","onMenuItemClick","setItem"],Hb=function(e){var r=e.allowNew,i=e.children,g=e.initialItem,C=e.isMenuShown,J=e.onAdd,dt=e.onInitialItemChange,St=e.onKeyDown,xt=e.onMenuToggle,Ct=e.results,Ut=e.selectHint,Wt=TM(e);(0,a.useEffect)(function(){r||Ct.length||dt()});var Kt=(0,a.useRef)(!0);(0,a.useEffect)(function(){if(Kt.current){Kt.current=!1;return}xt(C)},[C,xt]);var ae=function(We){if(St(We),!!g){var en=We.key==="Enter"&&mE(e),cn=Wt&&Wh(We,Ut);(en||cn)&&J(g)}},ue=jp(jp({},Pv(e,Bb)),{},{getInputProps:Db(jp(jp({},Pv(e,Iv)),{},{onKeyDown:ae,value:pE(e)}))}),he=jp(jp({},Pv(e,BM)),{},{hintText:Wt,isOnlyResult:mE(e)});return a.createElement(jb.Provider,{value:he},$s(i)?i(ue):i)};const HM=Hb;function jv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(g){return Object.getOwnPropertyDescriptor(t,g).enumerable})),r.push.apply(r,i)}return r}function Gh(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?jv(Object(r),!0).forEach(function(i){Kr(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jv(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function Fp(t){var e=t.defaultInputValue,r=t.defaultOpen,i=t.defaultSelected,g=t.maxResults,C=t.multiple,J=t.selected?t.selected.slice():i.slice(),dt=e;return!C&&J.length&&(dt=Ju(J[0],t.labelKey),J.length>1&&(J=J.slice(0,1))),{activeIndex:-1,activeItem:void 0,initialItem:void 0,isFocused:!1,selected:J,showMenu:r,shownResults:g,text:dt}}function zb(t,e){return Gh(Gh({},Fp(e)),{},{isFocused:t.isFocused,selected:[],text:""})}function NE(t){return Gh(Gh({},t),{},{isFocused:!0,showMenu:!0})}function n0(t,e){var r=Fp(e),i=r.activeIndex,g=r.activeItem,C=r.initialItem,J=r.shownResults;return Gh(Gh({},t),{},{activeIndex:i,activeItem:g,initialItem:C,showMenu:!1,shownResults:J})}function zM(t,e){return t.showMenu?n0(t,e):Gh(Gh({},t),{},{showMenu:!0})}var LE=["onChange"];function RE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(g){return Object.getOwnPropertyDescriptor(t,g).enumerable})),r.push.apply(r,i)}return r}function Hc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?RE(Object(r),!0).forEach(function(i){Kr(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):RE(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function UM(t){var e=IE();return function(){var i=ud(t),g;if(e){var C=ud(this).constructor;g=Reflect.construct(i,arguments,C)}else g=i.apply(this,arguments);return OE(this,g)}}function IE(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var jE={allowNew:Ce().oneOfType([Ce().bool,Ce().func]),autoFocus:Ce().bool,caseSensitive:tc(Ce().bool,LM),defaultInputValue:tc(Ce().string,EE),defaultOpen:Ce().bool,defaultSelected:tc(Ce().arrayOf(Rp),SE),filterBy:Ce().oneOfType([Ce().arrayOf(Ce().string.isRequired),Ce().func]),highlightOnlyResult:tc(Ce().bool,RM),id:tc(Ce().oneOfType([Ce().number,Ce().string]),Lb),ignoreDiacritics:tc(Ce().bool,CE),labelKey:tc(Ce().oneOfType([Ce().string,Ce().func]),jM),maxResults:Ce().number,minLength:Ce().number,multiple:Ce().bool,onBlur:Ce().func,onChange:Ce().func,onFocus:Ce().func,onInputChange:Ce().func,onKeyDown:Ce().func,onMenuToggle:Ce().func,onPaginate:Ce().func,open:Ce().bool,options:Ce().arrayOf(Rp).isRequired,paginate:Ce().bool,selected:tc(Ce().arrayOf(Rp),TE)},FE={allowNew:!1,autoFocus:!1,caseSensitive:!1,defaultInputValue:"",defaultOpen:!1,defaultSelected:[],filterBy:[],highlightOnlyResult:!1,ignoreDiacritics:!0,labelKey:lE,maxResults:100,minLength:0,multiple:!1,onBlur:Ts,onFocus:Ts,onInputChange:Ts,onKeyDown:Ts,onMenuToggle:Ts,onPaginate:Ts,paginate:!0};function Ub(t,e){var r=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value");r&&r.set&&r.set.call(t,e);var i=new Event("input",{bubbles:!0});t.dispatchEvent(i)}var Bp=function(t){e0(r,t);var e=UM(r);function r(){var i;PE(this,r);for(var g=arguments.length,C=new Array(g),J=0;J<g;J++)C[J]=arguments[J];return i=e.call.apply(e,[this].concat(C)),Kr(Ui(i),"state",Fp(i.props)),Kr(Ui(i),"inputNode",null),Kr(Ui(i),"isMenuShown",!1),Kr(Ui(i),"items",[]),Kr(Ui(i),"blur",function(){i.inputNode&&i.inputNode.blur(),i.hideMenu()}),Kr(Ui(i),"clear",function(){i.setState(zb)}),Kr(Ui(i),"focus",function(){i.inputNode&&i.inputNode.focus()}),Kr(Ui(i),"getInput",function(){return i.inputNode}),Kr(Ui(i),"inputRef",function(dt){i.inputNode=dt}),Kr(Ui(i),"setItem",function(dt,St){i.items[St]=dt}),Kr(Ui(i),"hideMenu",function(){i.setState(n0)}),Kr(Ui(i),"toggleMenu",function(){i.setState(zM)}),Kr(Ui(i),"_handleActiveIndexChange",function(dt){i.setState(function(St){return{activeIndex:dt,activeItem:dt>=0?St.activeItem:void 0}})}),Kr(Ui(i),"_handleActiveItemChange",function(dt){id()(dt,i.state.activeItem)||i.setState({activeItem:dt})}),Kr(Ui(i),"_handleBlur",function(dt){dt.persist(),i.setState({isFocused:!1},function(){return i.props.onBlur(dt)})}),Kr(Ui(i),"_handleChange",function(dt){i.props.onChange&&i.props.onChange(dt)}),Kr(Ui(i),"_handleClear",function(){i.inputNode&&Ub(i.inputNode,""),i.setState(zb,function(){i.props.multiple&&i._handleChange([])})}),Kr(Ui(i),"_handleClick",function(dt){var St;dt.persist();var xt=(St=i.props.inputProps)===null||St===void 0?void 0:St.onClick;i.setState(NE,function(){return $s(xt)&&xt(dt)})}),Kr(Ui(i),"_handleFocus",function(dt){dt.persist(),i.setState(NE,function(){return i.props.onFocus(dt)})}),Kr(Ui(i),"_handleInitialItemChange",function(dt){id()(dt,i.state.initialItem)||i.setState({initialItem:dt})}),Kr(Ui(i),"_handleInputChange",function(dt){dt.persist();var St=dt.currentTarget.value,xt=i.props,Ct=xt.multiple,Ut=xt.onInputChange,Wt=i.state.selected.length&&!Ct;i.setState(function(Kt,ae){var ue=Fp(ae),he=ue.activeIndex,ye=ue.activeItem,We=ue.shownResults;return{activeIndex:he,activeItem:ye,selected:Wt?[]:Kt.selected,showMenu:!0,shownResults:We,text:St}},function(){Ut(St,dt),Wt&&i._handleChange([])})}),Kr(Ui(i),"_handleKeyDown",function(dt){var St=i.state.activeItem;if(!i.isMenuShown){(dt.key==="ArrowUp"||dt.key==="ArrowDown")&&i.setState({showMenu:!0}),i.props.onKeyDown(dt);return}switch(dt.key){case"ArrowUp":case"ArrowDown":dt.preventDefault(),i._handleActiveIndexChange(t0(i.state.activeIndex,dt.key,i.items));break;case"Enter":dt.preventDefault(),St&&i._handleMenuItemSelect(St,dt);break;case"Escape":case"Tab":i.hideMenu();break;default:break}i.props.onKeyDown(dt)}),Kr(Ui(i),"_handleMenuItemSelect",function(dt,St){od(dt,"paginationOption")?i._handlePaginate(St):i._handleSelectionAdd(dt)}),Kr(Ui(i),"_handlePaginate",function(dt){dt.persist(),i.setState(function(St,xt){return{shownResults:St.shownResults+xt.maxResults}},function(){return i.props.onPaginate(dt,i.state.shownResults)})}),Kr(Ui(i),"_handleSelectionAdd",function(dt){var St=i.props,xt=St.multiple,Ct=St.labelKey,Ut,Wt=dt,Kt;!Qu(Wt)&&Wt.customOption&&(Wt=Hc(Hc({},Wt),{},{id:vM("new-id-")})),xt?(Ut=i.state.selected.concat(Wt),Kt=""):(Ut=[Wt],Kt=Ju(Wt,Ct)),i.setState(function(ae,ue){return Hc(Hc({},n0(ae,ue)),{},{initialItem:Wt,selected:Ut,text:Kt})},function(){return i._handleChange(Ut)})}),Kr(Ui(i),"_handleSelectionRemove",function(dt){var St=i.state.selected.filter(function(xt){return!id()(xt,dt)});i.focus(),i.setState(function(xt,Ct){return Hc(Hc({},n0(xt,Ct)),{},{selected:St})},function(){return i._handleChange(St)})}),i}return kE(r,[{key:"componentDidMount",value:function(){this.props.autoFocus&&this.focus()}},{key:"componentDidUpdate",value:function(g,C){var J=this.props,dt=J.labelKey,St=J.multiple,xt=J.selected;DM(xt,g.selected),xt&&!id()(xt,C.selected)&&(this.setState({selected:xt}),St||this.setState({text:xt.length?Ju(xt[0],dt):""}))}},{key:"render",value:function(){var g=this.props,C=g.onChange,J=Na(g,LE),dt=Hc(Hc({},J),this.state),St=dt.filterBy,xt=dt.labelKey,Ct=dt.options,Ut=dt.paginate,Wt=dt.shownResults,Kt=dt.text;this.isMenuShown=vE(dt),this.items=[];var ae=[];if(this.isMenuShown){var ue=$s(St)?St:Uh;ae=Ct.filter(function(We){return ue(We,dt)});var he=Ut&&ae.length>Wt;if(ae=gE(ae,Wt),wM(ae,dt)&&ae.push(Kr({customOption:!0},Lp(xt),Kt)),he){var ye;ae.push((ye={},Kr(ye,Lp(xt),""),Kr(ye,"paginationOption",!0),ye))}}return a.createElement(HM,$o({},dt,{hideMenu:this.hideMenu,inputNode:this.inputNode,inputRef:this.inputRef,isMenuShown:this.isMenuShown,onActiveItemChange:this._handleActiveItemChange,onAdd:this._handleSelectionAdd,onBlur:this._handleBlur,onChange:this._handleInputChange,onClear:this._handleClear,onClick:this._handleClick,onFocus:this._handleFocus,onHide:this.hideMenu,onInitialItemChange:this._handleInitialItemChange,onKeyDown:this._handleKeyDown,onMenuItemClick:this._handleMenuItemSelect,onRemove:this._handleSelectionRemove,results:ae,setItem:this.setItem,toggleMenu:this.toggleMenu}))}}]),r}(a.Component);Kr(Bp,"propTypes",jE),Kr(Bp,"defaultProps",FE);const BE=Bp;var HE=["className","label","onClick","onKeyDown","size"],WM={label:Ce().string,onClick:Ce().func,onKeyDown:Ce().func,size:wE},zE=function(e){var r=e.className,i=e.label,g=i===void 0?"Clear":i,C=e.onClick,J=e.onKeyDown,dt=e.size,St=Na(e,HE);return a.createElement("button",$o({},St,{"aria-label":g,className:mu()("close","btn-close","rbt-close",{"rbt-close-lg":ld(dt),"rbt-close-sm":Nv(dt)},r),onClick:function(Ct){Ct.stopPropagation(),C&&C(Ct)},onKeyDown:function(Ct){Ct.key==="Backspace"&&Ct.preventDefault(),J&&J(Ct)},type:"button"}),a.createElement("span",{"aria-hidden":"true",className:"rbt-close-content"},"\xD7"),a.createElement("span",{className:"sr-only visually-hidden"},g))};zE.propTypes=WM;const Wb=zE;var UE={label:Ce().string},WE=function(e){var r=e.label,i=r===void 0?"Loading...":r;return a.createElement("div",{className:"rbt-loader spinner-border spinner-border-sm",role:"status"},a.createElement("span",{className:"sr-only visually-hidden"},i))};WE.propTypes=UE;const Fv=WE;function GM(t){if(Array.isArray(t))return t}function VM(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var i=[],g=!0,C=!1,J,dt;try{for(r=r.call(t);!(g=(J=r.next()).done)&&(i.push(J.value),!(e&&i.length===e));g=!0);}catch(St){C=!0,dt=St}finally{try{!g&&r.return!=null&&r.return()}finally{if(C)throw dt}}return i}}function GE(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function Hp(t,e){if(t){if(typeof t=="string")return GE(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return GE(t,e)}}function zp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
335
|
+
`),ae}return cu(function(){St.current=t,xt.current=Ut,Ct.current=Wt,dt.current=void 0}),cu(function(){function ae(){try{var ue=r.getState();if(ue===xt.current)return;var he=St.current(ue);if(e(he,Ct.current))return;Ct.current=he,xt.current=ue}catch(ye){dt.current=ye}C()}return J.onStateChange=ae,J.trySubscribe(),ae(),function(){return J.tryUnsubscribe()}},[r,J]),Wt}function Cw(t){t===void 0&&(t=Es);var e=t===Es?P1:function(){return(0,a.useContext)(t)};return function(i,g){g===void 0&&(g=Lc);var C=e(),J=C.store,dt=C.subscription,St=k1(i,g,J,dt);return(0,a.useDebugValue)(St),St}}var vr=Cw();wi(H.unstable_batchedUpdates);var Tw=Un(7322),_r=Un.n(Tw),RS=Un(4481),IS=Un.n(RS),dl=Un(9435),O1=Un.n(dl);_r().extend(IS()),_r().extend(O1());const hu=t=>_r()(new Date(t)).format("YYYY-MM-DD"),jS=t=>_r()(new Date(t)).utc().add(5.5,"hours").format(),Cy=t=>dayjs(new Date(t)).utc().add(5.5,"hours").format("YYYY-MM-DD"),D1=t=>dayjs(new Date(t)).utc().add(5.5,"hours").format("ll"),fu=(t,e)=>_r()(new Date(t)).isSame(new Date(e),"day"),N1=(t,e)=>fu(t,e)?0:new Date(t)<new Date(e)?-1:1,Rc="2011-12-01T12:00:00.000Z",Ic="M/D/YYYY",Ss=hu(new Date),Cs=hu(Rc),Ty="MODAL_TYPE_DATA_EXPORT",My="MODAL_TYPE_EXPORT_CONFIRMATION",Ay="MODAL_TYPE_MORE_ABOUT",FS="Document",Ah="Map",pa="List",to="Trends",To="None",Ys="Per 1000 pop.",Py="complaint_what_happened",Ki="REQUERY_ALWAYS",zf="REQUERY_HITS_ONLY",is="REQUERY_NEVER",Uf=["company","company_public_response","company_response","consumer_consent_provided","consumer_disputed","issue","product","state","submitted_via","tags","timely","zip_code"],Wf=["company_received_max","company_received_min","date_received_max","date_received_min"],Mw=["Day","Week","Month","Quarter","Year"],Aw=["3m","6m","1y","3y","All"],eP=null,Gf=["has_narrative"],ky=["issue","product"],Vf=["Overview","Company","Product"],Ph={};Ph[10]="10 results",Ph[25]="25 results",Ph[50]="50 results",Ph[100]="100 results";const og={created_date_desc:"Newest to oldest",created_date_asc:"Oldest to newest",relevance_desc:"Relevance",relevance_asc:"Relevance (asc)"},os="\u2022",BS=40,HS=14,zS=27,US=13,WS=9,GS=38,Oy={AA:"Armed Forces Americas",AE:"Armed Forces Europe",AL:"Alabama",AK:"Alaska",AS:"American Samoa",AP:"Armed Forces Pacific",AZ:"Arizona",AR:"Arkansas",CA:"California",CO:"Colorado",CT:"Connecticut",DE:"Delaware",DC:"District Of Columbia",FM:"Federated States Of Micronesia",FL:"Florida",GA:"Georgia",GU:"Guam",HI:"Hawaii",ID:"Idaho",IL:"Illinois",IN:"Indiana",IA:"Iowa",KS:"Kansas",KY:"Kentucky",LA:"Louisiana",ME:"Maine",MH:"Marshall Islands",MD:"Maryland",MA:"Massachusetts",MI:"Michigan",MN:"Minnesota",MS:"Mississippi",MO:"Missouri",MT:"Montana",NE:"Nebraska",NV:"Nevada",NH:"New Hampshire",NJ:"New Jersey",NM:"New Mexico",NY:"New York",NC:"North Carolina",ND:"North Dakota",MP:"Northern Mariana Islands",OH:"Ohio",OK:"Oklahoma",OR:"Oregon",PW:"Palau",PA:"Pennsylvania",PR:"Puerto Rico",RI:"Rhode Island",SC:"South Carolina",SD:"South Dakota",TN:"Tennessee",TX:"Texas",UT:"Utah",VT:"Vermont",VI:"Virgin Islands",VA:"Virginia",WA:"Washington",WV:"West Virginia",WI:"Wisconsin",WY:"Wyoming"},L1=["AK","AL","AR","AZ","CA","CO","CT","DC","DE","FL","GA","HI","IA","ID","IL","IN","KS","KY","LA","MA","MD","ME","MI","MN","MO","MS","MT","NC","ND","NE","NH","NJ","NM","NV","NY","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VA","VT","WA","WI","WV","WY"],Dy={AL:{abbr:"AL",name:"Alabama",population:"4850771",id:"01"},AK:{abbr:"AK",name:"Alaska",population:"738565",id:"02"},AZ:{abbr:"AZ",name:"Arizona",population:"6809946",id:"04"},AR:{abbr:"AR",name:"Arkansas",population:"2977944",id:"05"},CA:{abbr:"CA",name:"California",population:"38982847",id:"06"},CO:{abbr:"CO",name:"Colorado",population:"5436519",id:"08"},CT:{abbr:"CT",name:"Connecticut",population:"3594478",id:"09"},DE:{abbr:"DE",name:"Delaware",population:"943732",id:"10"},DC:{abbr:"DC",name:"District of Columbia",population:"672391",id:"11"},FL:{abbr:"FL",name:"Florida",population:"20278447",id:"12"},GA:{abbr:"GA",name:"Georgia",population:"10201635",id:"13"},HI:{abbr:"HI",name:"Hawaii",population:"1421658",id:"15"},ID:{abbr:"ID",name:"Idaho",population:"1657375",id:"16"},IL:{abbr:"IL",name:"Illinois",population:"12854526",id:"17"},IN:{abbr:"IN",name:"Indiana",population:"6614418",id:"18"},IA:{abbr:"IA",name:"Iowa",population:"3118102",id:"19"},KS:{abbr:"KS",name:"Kansas",population:"2903820",id:"20"},KY:{abbr:"KY",name:"Kentucky",population:"4424376",id:"21"},LA:{abbr:"LA",name:"Louisiana",population:"4663461",id:"22"},ME:{abbr:"ME",name:"Maine",population:"1330158",id:"23"},MD:{abbr:"MD",name:"Maryland",population:"5996079",id:"24"},MA:{abbr:"MA",name:"Massachusetts",population:"6789319",id:"25"},MI:{abbr:"MI",name:"Michigan",population:"9925568",id:"26"},MN:{abbr:"MN",name:"Minnesota",population:"5490726",id:"27"},MS:{abbr:"MS",name:"Mississippi",population:"2986220",id:"28"},MO:{abbr:"MO",name:"Missouri",population:"6075300",id:"29"},MT:{abbr:"MT",name:"Montana",population:"1029862",id:"30"},NE:{abbr:"NE",name:"Nebraska",population:"1893921",id:"31"},NV:{abbr:"NV",name:"Nevada",population:"2887725",id:"32"},NH:{abbr:"NH",name:"New Hampshire",population:"1331848",id:"33"},NJ:{abbr:"NJ",name:"New Jersey",population:"8960161",id:"34"},NM:{abbr:"NM",name:"New Mexico",population:"2084828",id:"35"},NY:{abbr:"NY",name:"New York",population:"19798228",id:"36"},NC:{abbr:"NC",name:"North Carolina",population:"10052564",id:"37"},ND:{abbr:"ND",name:"North Dakota",population:"745475",id:"38"},OH:{abbr:"OH",name:"Ohio",population:"11609756",id:"39"},OK:{abbr:"OK",name:"Oklahoma",population:"3896251",id:"40"},OR:{abbr:"OR",name:"Oregon",population:"4025127",id:"41"},PA:{abbr:"PA",name:"Pennsylvania",population:"12790505",id:"42"},PR:{abbr:"PR",name:"Puerto Rico",population:"3468963",id:"72"},RI:{abbr:"RI",name:"Rhode Island",population:"1056138",id:"44"},SC:{abbr:"SC",name:"South Carolina",population:"4893444",id:"45"},SD:{abbr:"SD",name:"South Dakota",population:"855444",id:"46"},TN:{abbr:"TN",name:"Tennessee",population:"6597381",id:"47"},TX:{abbr:"TX",name:"Texas",population:"27419612",id:"48"},UT:{abbr:"UT",name:"Utah",population:"2993941",id:"49"},VT:{abbr:"VT",name:"Vermont",population:"624636",id:"50"},VA:{abbr:"VA",name:"Virginia",population:"8365952",id:"51"},WA:{abbr:"WA",name:"Washington",population:"7169967",id:"53"},WV:{abbr:"WV",name:"West Virginia",population:"1836843",id:"54"},WI:{abbr:"WI",name:"Wisconsin",population:"5763217",id:"55"},WY:{abbr:"WY",name:"Wyoming",population:"583200",id:"56"}},Nl="/data-research/consumer-complaints/search/api/v1/",R1=window.location.origin.indexOf("localhost")>-1?"https://www.consumerfinance.gov/complaint/data-use/":"/complaint/data-use/",Ny="AGGREGATIONS_API_CALLED",ag="AGGREGATIONS_RECEIVED",sg="AGGREGATIONS_FAILED",Ly="COMPLAINTS_API_CALLED",Ry="COMPLAINTS_RECEIVED",I1="COMPLAINTS_FAILED",j1="COMPLAINT_DETAIL_RECEIVED",lg="COMPLAINT_DETAIL_FAILED",F1="COMPLAINT_DETAIL_CALLED",Pw="STATES_API_CALLED",kw="STATES_RECEIVED",B1="STATES_FAILED",Ow="TRENDS_API_CALLED",hp="TRENDS_RECEIVED",ug="TRENDS_FAILED";function fp(){return(t,e)=>{switch(e().query.tab){case Ah:case pa:case to:t(Iy());break;default:return}t(H1())}}function H1(){return(t,e)=>{switch(e().query.tab){case Ah:t(hg());break;case to:t(Yf());break;case pa:t(jy());break;default:break}}}function Iy(){return(t,e)=>{const r=e(),i=r.query.queryString,g=Nl+i+"&size=0";return r.results.loadingAggregations?null:(t(dp(Ny,g)),fetch(g).then(C=>C.json()).then(C=>t(Dw(C))).catch(C=>t(Nw(C))))}}function jy(){return(t,e)=>{const r=e(),i=r.query.queryString,g=Nl+i;return g===r.results.activeCall?null:(t(dp(Ly,g)),fetch(g).then(C=>C.json()).then(C=>t(Lw(C))).catch(C=>t(z1(C))))}}function cg(t){return e=>{const r=Nl+t;e(dp(F1,r)),fetch(r).then(i=>i.json()).then(i=>e(Fy(i))).catch(i=>e(Rw(i)))}}function hg(){return(t,e)=>{const r=e(),i="geo/states/"+r.query.queryString,g=Nl+i+"&no_aggs=true";return g===r.map.activeCall?null:(t(dp(Pw,g)),fetch(g).then(C=>C.json()).then(C=>t(fg(C))).catch(C=>t(U1(C))))}}function Yf(){return(t,e)=>{const r=e(),{query:i,trends:g}=r,C="trends/"+i.queryString,J=Nl+C+"&no_aggs=true";return J===g.activeCall||g.lens==="Company"&&(!i.company||!i.company.length)?null:(t(dp(Ow,J)),fetch(J).then(dt=>dt.json()).then(dt=>t(W1(dt))).catch(dt=>t(dg(dt))))}}function dp(t,e){return{type:t,url:e}}function Dw(t){return{type:ag,data:t}}function Nw(t){return{type:sg,error:t}}function Lw(t){return{type:Ry,data:t}}function z1(t){return{type:I1,error:t}}function Fy(t){return{type:j1,data:t}}function Rw(t){return{type:lg,error:t}}function fg(t){return{type:kw,data:t}}function U1(t){return{type:B1,error:t}}function W1(t){return{type:hp,data:t}}function dg(t){return{type:ug,error:t}}const Xf={tagManagerIsLoaded:!1,EVENT_CATEGORY:"Consumer Complaint Search",getDataLayerOptions:function(t,e,r,i,g){return{event:r||Xf.EVENT_CATEGORY,action:t,label:e||"",eventCallback:i,eventTimeout:g||500}},init:function(){if(Object.prototype.hasOwnProperty.call(window,"google_tag_manager"))Xf.tagManagerIsLoaded=!0;else{let t;Object.defineProperty(window,"google_tag_manager",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e,Xf.tagManagerIsLoaded=!0}})}},sendEvent:function(t){const e=t.eventCallback;Xf.tagManagerIsLoaded?window.dataLayer.push(t):e&&typeof e=="function"&&e()}};Xf.init();const By=Xf;function G1(t){return Array.from(t||"").join(" ")}const VS=(t,e)=>{const r=Oh(),i=_r()(e).startOf("day"),g=_r()(t).startOf("day");if(i.diff(r,"days")!==0)return"";if(_r()(t).isSame(Rc,"day"))return"All";const C=i.diff(g,"years",!0);if(C===3||C===1)return C+"y";const J=i.diff(g,"months",!0);return J===6||J===3?J+"m":""},pg=(t,e,r)=>(t<e?t=e:t>r&&(t=r),t),YS=(t,e,r)=>{let i=new Date(t);const g=new Date(e),C=new Date(r);return i<g?i=g:i>C&&(i=C),i},Mo=(t,e,r)=>typeof t!="object"?r:e in t&&t[e]?t[e]:r;function Iw(t){const e=String(t);let r=0,i,g;if(e.length===0)return r;for(i=0;i<e.length;i++)g=e.charCodeAt(i),r=(r<<5)-r+g,r|=0;return r}function jw(t){const e=[];let r;const i=Uf.concat(Gf);for(let C=0;C<i.length;C++)r=i[C],(Array.isArray(t[r])&&t[r].length||t[r]===!0)&&e.push(r);const g=["company_received_max","company_received_min"];for(let C=0;C<g.length;C++)r=g[C],t[r]&&e.push(r);return e.length?e.length===1&&e[0]==="state":!0}function pp(t){return Iw(JSON.stringify(t))}const Fw=t=>t.toLowerCase(),jc=t=>t.replace(/\s+|\W/g,"-").toLowerCase(),mg=(t,e)=>t+os+e,gg=t=>(typeof t!="undefined"&&JSON.parse(JSON.stringify(t)),t),V1=(t,e)=>{const r=(gg(t)||[]).slice();return r.sort((i,g)=>{const C=e.indexOf(i.key)!==-1,J=e.indexOf(g.key)!==-1;return C&&!J?-1:!C&&J?1:g.doc_count-i.doc_count}),r};function kh(t){const e=_r()(t);return t?e.format("M/D/YYYY"):""}function Hy(t){return t?t.toISOString().substring(0,10):""}function Oh(){if(!Object.prototype.hasOwnProperty.call(window,"MAX_DATE"))if(Object.prototype.hasOwnProperty.call(window,"complaint_public_metadata")){const{metadata_timestamp:t}=window.complaint_public_metadata;window.MAX_DATE=new Date(_r()(t).startOf("day").toString())}else console.error("complaint_public_metadata is missing"),window.MAX_DATE=new Date(_r()().startOf("day").toString());return new Date(window.MAX_DATE.valueOf())}function Dh(t,e){let r=null;const i=(g,C)=>{r=null,t.apply(g,C)};return(...g)=>{r||(r=setTimeout(i,e,this,g))}}function XS(t,e){const r=e.length;for(let i=0;i<r;i++){const g=e[i];t[g]=t[g].bind(t)}return t}function $S(t){if(!t)return t;const e=document.createElement("a");return e.href=t,e.href}function zy(t){return{name:t.name,message:t.message,stack:t.stack}}function nP(t){const e=parseFloat(parseFloat(t*100).toFixed(2));return isNaN(e)?0:e}const Y1=t=>{for(const e in t)if(e!=="trend_period"&&t[e].buckets)return e;return""},$f=(t,e,r)=>{r.forEach(i=>{typeof t[i]!="undefined"&&(typeof t[i]=="string"?e[i]=[t[i]]:e[i]=t[i])})},yg=(t,e)=>{const r=new Set;return r.add(t),e.forEach(i=>{r.add(mg(t,i.key))}),r},ma=(t,e)=>{By.sendEvent(By.getDataLayerOptions(t,e))},Fc=(t,e,r="selected")=>t===e?" "+r:"",qS=t=>e=>r=>{const i=e(r),g=Mo(r,"requery",is);return g===Ki?t.dispatch(fp()):g===zf&&t.dispatch(H1()),i},X1={},$1=t=>t.detail.activeCall,q1=t=>t.detail.data,vg=t=>t.detail.error;var xg;function mp(){return mp=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},mp.apply(this,arguments)}function gp(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",mp({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 19",className:"cf-icon-svg cf-icon-svg__approved-round",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,xg||(xg=a.createElement("path",{d:"M16.417 9.583a7.916 7.916 0 1 1-15.833 0 7.916 7.916 0 0 1 15.833 0Zm-4.105-4.498a.791.791 0 0 0-1.082.29l-3.828 6.63-1.733-2.08a.792.792 0 1 0-1.216 1.014l2.459 2.952a.792.792 0 0 0 1.294-.111L12.6 6.166a.791.791 0 0 0-.29-1.081Z"})))}const Uy=a.forwardRef(gp),Bw=Un.p+"static/media/approved-round.483482ab2825f9f995093ba2785f99d3.svg";var yp,K1;function Wy(){return Wy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Wy.apply(this,arguments)}function Vu(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",Wy({id:"area-chart-icon","data-name":"area chart",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 27 21",ref:e,"aria-labelledby":i},g),r===void 0?a.createElement("title",{id:i},"area chart icon"):r?a.createElement("title",{id:i},r):null,yp||(yp=a.createElement("polygon",{className:"cls-1",points:"27 11 23.48 14 15.26 9 7.04 17 0 15 0 21 27 21 27 11"})),K1||(K1=a.createElement("g",{className:"cls-2"},a.createElement("polygon",{className:"cls-1",points:"6.32 14.79 14.92 6.46 23.36 11.58 27 8.5 27 1 23.48 4 15.26 1 7.04 7 0 9 0 12.94 6.32 14.79"}))))}const Yu=a.forwardRef(Vu),Xu=Un.p+"static/media/area-chart-custom.ea8a03542fb76313bf17aec0bc356ff9.svg";var Nh;function Gy(){return Gy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Gy.apply(this,arguments)}function KS(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",Gy({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg__chart",viewBox:"0 0 15 19",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,Nh||(Nh=a.createElement("path",{d:"M13.55 15.256H1.45a.554.554 0 0 1-.553-.554V3.168a.554.554 0 1 1 1.108 0v10.98h11.544a.554.554 0 0 1 0 1.108zM3.121 13.02V6.888a.476.476 0 0 1 .475-.475h.786a.476.476 0 0 1 .475.475v6.132zm2.785 0V3.507a.476.476 0 0 1 .475-.475h.786a.476.476 0 0 1 .475.475v9.513zm2.785 0V6.888a.476.476 0 0 1 .475-.475h.786a.476.476 0 0 1 .475.475v6.132zm2.786 0v-2.753a.476.476 0 0 1 .475-.475h.785a.476.476 0 0 1 .475.475v2.753z"})))}const ZS=a.forwardRef(KS),QS=Un.p+"static/media/chart.fa96ff019d4e701a6b3b80a73712ce25.svg";var Hw;function Z1(){return Z1=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Z1.apply(this,arguments)}function JS(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",Z1({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg__clock-round",viewBox:"0 0 17 19",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,Hw||(Hw=a.createElement("path",{fillRule:"evenodd",d:"M16.417 9.583A7.917 7.917 0 1 1 8.5 1.666a7.917 7.917 0 0 1 7.917 7.917zm-2.81 0A5.106 5.106 0 1 1 8.5 4.477a5.106 5.106 0 0 1 5.106 5.106zm-.792 0A4.315 4.315 0 1 1 8.5 5.268a4.315 4.315 0 0 1 4.315 4.315zm-2.163-.992a.396.396 0 0 0-.386-.661.75.75 0 0 0-.305.233l-.414.414-.649.648v-2.51a.67.67 0 0 0-.056-.365.399.399 0 0 0-.735.196c-.009.232 0 .465 0 .697v2.933a.402.402 0 0 0 .258.376c.296.11.495-.169.677-.35l.998-.998.612-.613z"})))}const zw=a.forwardRef(JS),tC=Un.p+"static/media/clock-round.e1b2f19139f649738f74ac692f22f946.svg";var Q1;function bg(){return bg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},bg.apply(this,arguments)}function J1(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",bg({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg__copy",viewBox:"0 0 12 19",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,Q1||(Q1=a.createElement("path",{d:"M11.415 5.068v9.16a.463.463 0 0 1-.462.461H9.477v1.477a.463.463 0 0 1-.462.462H1.047a.463.463 0 0 1-.462-.462V4.976a.463.463 0 0 1 .462-.462h1.476V3.037a.463.463 0 0 1 .462-.462h5.937zM8.369 7.874H6.628a.529.529 0 0 1-.527-.527V5.622H1.693v9.897H8.37zm-4.737-4.19v.83h3.352l1.095 1.095a.518.518 0 0 1-.04-.2V3.684zm5.845 3.323v6.574h.83V5.936h-1.74a.517.517 0 0 1-.2-.04z"})))}const Uw=a.forwardRef(J1),eC=Un.p+"static/media/copy.a8f5307add373a77c77df15aa7f1c060.svg";var vp;function qf(){return qf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},qf.apply(this,arguments)}function Vy(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",qf({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 988.2 1200",className:"cf-icon-svg",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,vp||(vp=a.createElement("path",{d:"M494.1 967.2c-17.3 0-33.8-6.8-46-19L18.6 518.6c-25.1-25.6-24.8-66.8.8-91.9 25.3-24.8 65.8-24.8 91.1 0l383.6 383.6 383.6-383.6c25.6-25.1 66.8-24.8 91.9.8 24.8 25.3 24.8 65.8 0 91.1L540.1 948.1c-12.2 12.2-28.7 19.1-46 19.1z"})))}const nC=a.forwardRef(Vy),rC=Un.p+"static/media/down.59a7ecfc3448843a7fa799d1e37c4eb3.svg";var tx;function Yy(){return Yy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Yy.apply(this,arguments)}function Ww(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",Yy({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg__error",viewBox:"0 0 12 19",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,tx||(tx=a.createElement("path",{d:"M11.383 13.644A1.03 1.03 0 0 1 9.928 15.1L6 11.172 2.072 15.1a1.03 1.03 0 1 1-1.455-1.456l3.928-3.928L.617 5.79a1.03 1.03 0 1 1 1.455-1.456L6 8.261l3.928-3.928a1.03 1.03 0 0 1 1.455 1.456L7.455 9.716z"})))}const iC=a.forwardRef(Ww),iP=Un.p+"static/media/error.8c6e52ac74d541cc9dc14b08c6cac23a.svg";var xp;function wg(){return wg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},wg.apply(this,arguments)}function ex(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",wg({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 19",className:"cf-icon-svg cf-icon-svg__error-round",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,xp||(xp=a.createElement("path",{d:"M16.417 9.583a7.916 7.916 0 1 1-15.833 0 7.916 7.916 0 0 1 15.833 0Zm-6.804.01 3.032-3.033a.792.792 0 1 0-1.12-1.12L8.494 8.473 5.46 5.44a.792.792 0 0 0-1.12 1.12l3.033 3.033-3.032 3.033a.791.791 0 1 0 1.12 1.119l3.032-3.033 3.033 3.033a.79.79 0 0 0 1.12 0c.309-.31.309-.81 0-1.12L9.612 9.594Z"})))}const _g=a.forwardRef(ex),Gw=Un.p+"static/media/error-round.711ddbb526473e443c10a73b3bea3fd0.svg";var Xy;function Eg(){return Eg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Eg.apply(this,arguments)}function Vw(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",Eg({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg__external-link",viewBox:"0 0 14 19",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,Xy||(Xy=a.createElement("path",{d:"M13.017 3.622v4.6a.554.554 0 0 1-1.108 0V4.96L9.747 7.122a1.65 1.65 0 0 1 .13.646v5.57A1.664 1.664 0 0 1 8.215 15h-5.57a1.664 1.664 0 0 1-1.662-1.663v-5.57a1.664 1.664 0 0 1 1.662-1.662h5.57A1.654 1.654 0 0 1 9 6.302l2.126-2.126H7.863a.554.554 0 1 1 0-1.108h4.6a.554.554 0 0 1 .554.554M8.77 8.1l-2.844 2.844a.554.554 0 0 1-.784-.783l2.947-2.948H2.645a.555.555 0 0 0-.554.555v5.57a.555.555 0 0 0 .554.553h5.57a.555.555 0 0 0 .554-.554z"})))}const oC=a.forwardRef(Vw),aC=Un.p+"static/media/external-link.ad941be4079ad0a2de240d1718d4e6db.svg";var Yw;function nx(){return nx=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},nx.apply(this,arguments)}function sC(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",nx({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 19",className:"cf-icon-svg cf-icon-svg__help-round",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,Yw||(Yw=a.createElement("path",{d:"M16.476 9.583a7.916 7.916 0 1 1-15.833 0 7.916 7.916 0 0 1 15.833 0Zm-5.034-2.687c0-.404-.073-.774-.223-1.13A2.886 2.886 0 0 0 9.692 4.22a2.747 2.747 0 0 0-1.116-.227 2.899 2.899 0 0 0-2.672 1.773 2.803 2.803 0 0 0-.227 1.128v.02a.792.792 0 0 0 1.583 0v-.02a1.333 1.333 0 0 1 .814-1.22c.155-.067.315-.098.502-.098.18 0 .334.03.485.096a1.294 1.294 0 0 1 .7.71c.067.158.098.322.098.513 0 .225-.027.368-.05.45a1.546 1.546 0 0 1-.132.335 2.11 2.11 0 0 1-.219.318c-.126.15-.25.293-.365.424-.135.142-.26.28-.374.412-.17.2-.323.414-.451.639-.147.258-.262.54-.342.842-.08.301-.12.636-.12.995v.035a.792.792 0 1 0 1.583 0v-.035c0-.222.023-.42.068-.59.044-.168.107-.324.187-.463a2.49 2.49 0 0 1 .276-.39c.098-.115.209-.237.329-.363l.018-.02c.129-.144.264-.301.403-.466.138-.165.267-.352.384-.556a3.083 3.083 0 0 0 .388-1.567ZM9.58 14.195a.983.983 0 0 0-.614-.919l-.004-.001a1.016 1.016 0 0 0-.78 0 .972.972 0 0 0-.62.92c.001.138.027.27.08.391a1.01 1.01 0 0 0 .541.536 1.013 1.013 0 0 0 .78.001l.004-.002c.121-.052.229-.125.318-.214.09-.091.164-.2.216-.32a.98.98 0 0 0 .08-.392Z"})))}const lC=a.forwardRef(sC),oP=Un.p+"static/media/help-round.95b33531bcbf1ad664eef87139877606.svg";var rx;function Ll(){return Ll=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Ll.apply(this,arguments)}function ix(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",Ll({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg__left",viewBox:"0 0 10 19",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,rx||(rx=a.createElement("path",{d:"M8.4 17.269a1.026 1.026 0 0 1-.727-.302l-6.801-6.8a1.03 1.03 0 0 1 0-1.456l6.8-6.8a1.03 1.03 0 0 1 1.456 1.455L3.055 9.439l6.073 6.073A1.03 1.03 0 0 1 8.4 17.27z"})))}const ox=a.forwardRef(ix),aP=Un.p+"static/media/left.eb395946941254121f712cfab4a05b8b.svg";var ax,Sg,sx,Xw,$w;function $y(){return $y=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},$y.apply(this,arguments)}function Cg(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",$y({id:"line-chart-icon","data-name":"line chart",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 27 21",ref:e,"aria-labelledby":i},g),r===void 0?a.createElement("title",{id:i},"line chart icon"):r?a.createElement("title",{id:i},r):null,ax||(ax=a.createElement("g",{className:"cls-1"},a.createElement("line",{className:"cls-2",x1:12,y1:6.27,x2:2,y2:19}),a.createElement("line",{className:"cls-2",x1:22.9,y1:14,x2:14.1,y2:6}),a.createElement("path",{className:"cls-3",d:"M13,4a1,1,0,1,1-1,1,1,1,0,0,1,1-1m0-1a2,2,0,1,0,2,2,2,2,0,0,0-2-2Z"}),a.createElement("path",{className:"cls-3",d:"M24,14a1,1,0,1,1-1,1,1,1,0,0,1,1-1m0-1a2,2,0,1,0,2,2,2,2,0,0,0-2-2Z"}))),Sg||(Sg=a.createElement("line",{className:"cls-2",x1:12,y1:16.45,x2:2,y2:11})),sx||(sx=a.createElement("line",{className:"cls-2",x1:23,y1:6,x2:14,y2:16})),Xw||(Xw=a.createElement("path",{className:"cls-3",d:"M13,16a1,1,0,1,1-1,1,1,1,0,0,1,1-1m0-1a2,2,0,1,0,2,2,2,2,0,0,0-2-2Z"})),$w||($w=a.createElement("path",{className:"cls-3",d:"M24,4a1,1,0,1,1-1,1,1,1,0,0,1,1-1m0-1a2,2,0,1,0,2,2,2,2,0,0,0-2-2Z"})))}const lx=a.forwardRef(Cg),sP=Un.p+"static/media/line-chart-custom.5b2ea8f0a6610dd4792361462e297ff1.svg";var qy;function ux(){return ux=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},ux.apply(this,arguments)}function Tg(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",ux({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg__list",viewBox:"0 0 14 19",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,qy||(qy=a.createElement("path",{d:"M2.85 4.836a1.03 1.03 0 0 1-1.029 1.03h-.003a1.03 1.03 0 1 1 0-2.059h.003a1.03 1.03 0 0 1 1.03 1.03zm0 4.346a1.03 1.03 0 0 1-1.029 1.03h-.003a1.03 1.03 0 1 1 0-2.059h.003a1.03 1.03 0 0 1 1.03 1.03zm0 4.346a1.03 1.03 0 0 1-1.029 1.03h-.003a1.03 1.03 0 1 1 0-2.059h.003a1.03 1.03 0 0 1 1.03 1.03zm1.13-8.692a1.03 1.03 0 0 1 1.029-1.029h7.173a1.03 1.03 0 1 1 0 2.058H5.009a1.03 1.03 0 0 1-1.03-1.029zm9.231 4.347a1.03 1.03 0 0 1-1.029 1.029H5.009a1.03 1.03 0 1 1 0-2.059h7.173a1.03 1.03 0 0 1 1.03 1.03zm0 4.345a1.03 1.03 0 0 1-1.029 1.03H5.009a1.03 1.03 0 1 1 0-2.059h7.173a1.03 1.03 0 0 1 1.03 1.03z"})))}const uC=a.forwardRef(Tg),cC=Un.p+"static/media/list.7ac698bdddc3475610e778556ae1d49d.svg";var Mg;function Ky(){return Ky=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Ky.apply(this,arguments)}function hC(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",Ky({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg__map",viewBox:"0 0 16 19",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,Mg||(Mg=a.createElement("path",{d:"M15.084 15.2H.916a.264.264 0 0 1-.254-.42l2.36-4.492a.865.865 0 0 1 .696-.42h.827a9.51 9.51 0 0 0 .943 1.108H3.912l-1.637 3.116h11.45l-1.637-3.116h-1.34a9.481 9.481 0 0 0 .943-1.109h.591a.866.866 0 0 1 .696.421l2.36 4.492a.264.264 0 0 1-.254.42zM11.4 7.189c0 2.64-2.176 2.888-3.103 5.46a.182.182 0 0 1-.356 0c-.928-2.572-3.104-2.82-3.104-5.46a3.282 3.282 0 0 1 6.563 0zm-1.86-.005a1.425 1.425 0 1 0-1.425 1.425A1.425 1.425 0 0 0 9.54 7.184z"})))}const Ag=a.forwardRef(hC),lP=Un.p+"static/media/map.33090759a7c3ce118040c89ba94fe5be.svg";var cx;function hx(){return hx=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},hx.apply(this,arguments)}function Pg(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",hx({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 19",className:"cf-icon-svg cf-icon-svg__minus-round",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,cx||(cx=a.createElement("path",{d:"M16.416 9.583a7.916 7.916 0 1 1-15.833 0 7.916 7.916 0 0 1 15.833 0Zm-2.958.01a.792.792 0 0 0-.792-.792H4.32a.792.792 0 0 0 0 1.583h8.346a.792.792 0 0 0 .792-.791Z"})))}const kg=a.forwardRef(Pg),Zy=Un.p+"static/media/minus-round.ef44cce4e26bd9b044cd03da032d7c53.svg";var bp;function wp(){return wp=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},wp.apply(this,arguments)}function fC(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",wp({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 19",className:"cf-icon-svg cf-icon-svg__plus-round",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,bp||(bp=a.createElement("path",{d:"M16.416 9.583a7.916 7.916 0 1 1-15.833 0 7.916 7.916 0 0 1 15.833 0Zm-2.958.01a.792.792 0 0 0-.792-.792H9.284V5.42a.792.792 0 1 0-1.583 0V8.8H4.32a.792.792 0 0 0 0 1.584H7.7v3.382a.792.792 0 1 0 1.583 0v-3.382h3.382a.792.792 0 0 0 .792-.791Z"})))}const fx=a.forwardRef(fC),uP=Un.p+"static/media/plus-round.db3c2cb69fbc96047b8079b21ec98d89.svg";var Qy;function dx(){return dx=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},dx.apply(this,arguments)}function dC(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",dx({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg__print",viewBox:"0 0 14 19",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,Qy||(Qy=a.createElement("path",{d:"m8.698 2.358 3.065 3.066v1.95h.16a1.112 1.112 0 0 1 1.109 1.108v4.837a1.112 1.112 0 0 1-1.109 1.108h-.16v1.726a.477.477 0 0 1-.475.475H2.712a.477.477 0 0 1-.475-.475v-1.726h-.16A1.112 1.112 0 0 1 .968 13.32V8.482a1.112 1.112 0 0 1 1.109-1.108h.16v-4.54a.476.476 0 0 1 .475-.476zm-.22 3.876a.61.61 0 0 1-.608-.608v-2.16H3.345v3.908h7.31v-1.14zm2.177 4.512h-7.31v4.773h7.31zm-1.054.874h-5.26v1.109h5.26zm0 1.962h-5.26v1.108h5.26zm2.437-4.485a.554.554 0 1 0-.554.554.554.554 0 0 0 .554-.554z"})))}const px=a.forwardRef(dC),cP=Un.p+"static/media/print.c437f293c0bb3b67debbd019bf8df4d1.svg";var Jy;function mx(){return mx=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},mx.apply(this,arguments)}function gx(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",mx({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg__right",viewBox:"0 0 10 19",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,Jy||(Jy=a.createElement("path",{d:"M1.6 17.262a1.03 1.03 0 0 1-.728-1.757l6.073-6.073L.872 3.36a1.03 1.03 0 0 1 1.455-1.455l6.8 6.8a1.03 1.03 0 0 1 0 1.456l-6.8 6.8a1.025 1.025 0 0 1-.727.302z"})))}const pC=a.forwardRef(gx),qw=Un.p+"static/media/right.05bbc7519af3120311c5befcd3d7ab10.svg";var Kw;function yx(){return yx=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},yx.apply(this,arguments)}function mC(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",yx({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg__search",viewBox:"0 0 15 19",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,Kw||(Kw=a.createElement("path",{d:"M14.147 15.488a1.112 1.112 0 0 1-1.567 0l-3.395-3.395a5.575 5.575 0 1 1 1.568-1.568l3.394 3.395a1.112 1.112 0 0 1 0 1.568zm-6.361-3.903a4.488 4.488 0 1 0-1.681.327 4.443 4.443 0 0 0 1.68-.327z"})))}const gC=a.forwardRef(mC),hP=Un.p+"static/media/search.11cb49c6791363880e4534c2b79acb62.svg";var Zw;function vx(){return vx=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},vx.apply(this,arguments)}function yC(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",vx({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg__up",viewBox:"0 0 17 19",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,Zw||(Zw=a.createElement("path",{d:"M15.3 15.32a1.026 1.026 0 0 1-.727-.302L8.5 8.946l-6.073 6.072a1.03 1.03 0 0 1-1.456-1.455l6.801-6.8a1.03 1.03 0 0 1 1.456 0l6.8 6.8a1.03 1.03 0 0 1-.727 1.757z"})))}const vC=a.forwardRef(yC),fP=Un.p+"static/media/up.5b6c10db551efc1fa5d601e35e96b5ca.svg";var Qw;function xx(){return xx=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},xx.apply(this,arguments)}function xC(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",xx({xmlns:"http://www.w3.org/2000/svg",className:"cf-icon-svg cf-icon-svg__updating",viewBox:"0 0 16 19",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,Qw||(Qw=a.createElement("path",{d:"M5.857 3.882v3.341a1.03 1.03 0 0 1-2.058 0v-.97a5.401 5.401 0 0 0-1.032 2.27 1.03 1.03 0 1 1-2.02-.395A7.462 7.462 0 0 1 2.235 4.91h-.748a1.03 1.03 0 1 1 0-2.058h3.34a1.03 1.03 0 0 1 1.03 1.03zm-3.25 9.237a1.028 1.028 0 0 1-1.358-.523 7.497 7.497 0 0 1-.37-1.036 1.03 1.03 0 1 1 1.983-.55 5.474 5.474 0 0 0 .269.751 1.029 1.029 0 0 1-.524 1.358zm2.905 2.439a1.028 1.028 0 0 1-1.42.322 7.522 7.522 0 0 1-.885-.652 1.03 1.03 0 0 1 1.34-1.563 5.435 5.435 0 0 0 .643.473 1.03 1.03 0 0 1 .322 1.42zm3.68.438a1.03 1.03 0 0 1-1.014 1.044h-.106a7.488 7.488 0 0 1-.811-.044 1.03 1.03 0 0 1 .224-2.046 5.41 5.41 0 0 0 .664.031h.014a1.03 1.03 0 0 1 1.03 1.015zm.034-12.847a1.03 1.03 0 0 1-1.029 1.01h-.033a1.03 1.03 0 0 1 .017-2.06h.017l.019.001a1.03 1.03 0 0 1 1.009 1.05zm3.236 11.25a1.029 1.029 0 0 1-.3 1.425 7.477 7.477 0 0 1-.797.453 1.03 1.03 0 1 1-.905-1.849 5.479 5.479 0 0 0 .578-.328 1.03 1.03 0 0 1 1.424.3zM10.475 3.504a1.029 1.029 0 0 1 1.41-.359l.018.011a1.03 1.03 0 1 1-1.06 1.764l-.01-.006a1.029 1.029 0 0 1-.358-1.41zm4.26 9.445a7.5 7.5 0 0 1-.315.56 1.03 1.03 0 1 1-1.749-1.086 5.01 5.01 0 0 0 .228-.405 1.03 1.03 0 1 1 1.836.93zm-1.959-6.052a1.03 1.03 0 0 1 1.79-1.016l.008.013a1.03 1.03 0 1 1-1.79 1.017zm2.764 2.487a9.327 9.327 0 0 1 0 .366 1.03 1.03 0 0 1-1.029 1.005h-.025A1.03 1.03 0 0 1 13.482 9.7a4.625 4.625 0 0 0 0-.266 1.03 1.03 0 0 1 1.003-1.055h.026a1.03 1.03 0 0 1 1.029 1.004z"})))}const bC=a.forwardRef(xC),dP=Un.p+"static/media/updating.59617b7eccd7b5512161dfdaed0dabc6.svg";var Jw;function bx(){return bx=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},bx.apply(this,arguments)}function wC(t,e){let C=t,{title:r,titleId:i}=C,g=Yi(C,["title","titleId"]);return a.createElement("svg",bx({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 19",className:"cf-icon-svg cf-icon-svg__warning-round",ref:e,"aria-labelledby":i},g),r?a.createElement("title",{id:i},r):null,Jw||(Jw=a.createElement("path",{d:"M16.406 9.583a7.916 7.916 0 1 1-15.833 0 7.916 7.916 0 0 1 15.833 0ZM9.48 13.667a1.003 1.003 0 1 0-2.007 0 1.003 1.003 0 0 0 2.007 0ZM7.697 10.83a.792.792 0 0 0 1.583 0V4.562a.792.792 0 0 0-1.583 0v6.268Z"})))}const _C=a.forwardRef(wC),pP=Un.p+"static/media/warning-round.906cf5d40d52ab2ba2960a68ba72ca57.svg",t_={"approved-round":a.createElement(Uy,null),"checkmark-round":a.createElement(Uy,null),"clock-round":a.createElement(zw,null),chart:a.createElement(ZS,null),copy:a.createElement(Uw,null),delete:a.createElement(iC,null),"delete-round":a.createElement(_g,null),down:a.createElement(nC,null),"error-round":a.createElement(_g,null),"external-link":a.createElement(oC,null),"help-round":a.createElement(lC,null),left:a.createElement(ox,null),list:a.createElement(uC,null),map:a.createElement(Ag,null),"minus-round":a.createElement(kg,null),"plus-round":a.createElement(fx,null),printer:a.createElement(px,null),right:a.createElement(pC,null),search:a.createElement(gC,null),updating:a.createElement(bC,null),up:a.createElement(vC,null),"warning-round":a.createElement(_C,null),"line-chart":a.createElement(lx,null),"area-chart":a.createElement(Yu,null)};function EC(t,e){if(!Object.hasOwn(t_,t))return console.error(`No icon with the name ${t}.`),!1;let r=t_[t];return typeof e!="undefined"&&(r=a.cloneElement(r,{className:`cf-icon-svg ${e}`})),r}const si=EC,mP={};var Qr=Un(2652),Ce=Un.n(Qr);const _p=({isLoading:t})=>t?a.createElement("section",{className:"light-box"},a.createElement("div",{className:"loading-box"},si("updating")," ",a.createElement("span",null,"This page is loading"))):null;_p.propTypes={isLoading:Ce().bool.isRequired};const du=t=>t.query,SC=t=>t.query.company_received_max,CC=t=>t.query.company_received_min,wx=t=>t.query.dataNormalization,tv=t=>t.query.date_received_max,Kf=t=>t.query.date_received_min,e_=t=>t.query.dateRange,ev=t=>t.query.enablePer1000,TC=t=>t.query.focus,MC=t=>t.query.mapWarningEnabled,Ep=t=>t.query.has_narrative,n_=t=>t.query.lens,r_=t=>t.query.page,i_=t=>t.query.search,o_=t=>t.query.searchField,Og=t=>t.query.searchText,a_=t=>t.query.size,AC=t=>t.query.sort,s_=t=>t.query.state,$u=t=>t.query.tab,Zf=t=>t.query.totalPages;function Lh(){var t=a.useContext(hy);return np(t),t}var _x;(function(t){t.formatDate="FormattedDate",t.formatTime="FormattedTime",t.formatNumber="FormattedNumber",t.formatList="FormattedList",t.formatDisplayName="FormattedDisplayName"})(_x||(_x={}));var Ex;(function(t){t.formatDate="FormattedDateParts",t.formatTime="FormattedTimeParts",t.formatNumber="FormattedNumberParts",t.formatList="FormattedListParts"})(Ex||(Ex={}));var Sx=function(t){var e=Lh(),r=t.value,i=t.children,g=dc(t,["value","children"]);return i(e.formatNumberToParts(r,g))};Sx.displayName="FormattedNumberParts";var l_=function(t){var e=useIntl(),r=t.value,i=t.children,g=__rest(t,["value","children"]);return i(e.formatListToParts(r,g))};Sx.displayName="FormattedNumberParts";function Cx(t){var e=function(r){var i=Lh(),g=r.value,C=r.children,J=dc(r,["value","children"]),dt=typeof g=="string"?new Date(g||0):g,St=t==="formatDate"?i.formatDateToParts(dt,J):i.formatTimeToParts(dt,J);return C(St)};return e.displayName=Ex[t],e}function Sp(t){var e=function(r){var i=Lh(),g=r.value,C=r.children,J=dc(r,["value","children"]),dt=i[t](g,J);if(typeof C=="function")return C(dt);var St=i.textComponent||a.Fragment;return a.createElement(St,null,dt)};return e.displayName=_x[t],e}function nv(t){return t}function gP(t){return t}var Dg=Sp("formatDate"),yP=Sp("formatTime"),Rh=Sp("formatNumber"),vP=Sp("formatList"),xP=Sp("formatDisplayName"),bP=Cx("formatDate"),wP=Cx("formatTime");const Ng=({label:t,value:e})=>e?a.createElement("div",{className:"layout-row"},a.createElement("span",{className:"body-copy subitem"},t),a.createElement("span",{className:"body-copy"},e)):null;Ng.propTypes={label:Ce().string,value:Ce().string};const rv=({value:t})=>{const e={"Consent provided":["approved-round","cf-icon-approved-round"],"Consent not provided":["delete-round","cf-icon-delete-round"],"Consent withdrawn":["minus-round","cf-icon-minus-round"],"N/A":["help-round","cf-icon-help-round"],Other:["help-round","cf-icon-help-round"]};let r;if(t in e){const i=e[t],g=i[0],C=i[1];r=si(g,C)}else r=si("error-round","cf-icon-error-round"),t="No data available";return a.createElement("div",null,a.createElement("span",{className:"cf-icon__before"},r),a.createElement("span",{className:"body-copy"},t))};rv.propTypes={value:Ce().string};const u_=({value:t})=>{if(!t)return a.createElement("span",{className:"body-copy"},"N/A");const e=["cf-icon__before"];return t.toLowerCase()==="no"&&e.push("not-timely"),a.createElement("div",null,a.createElement("span",{className:"cf-icon__before"},si("clock-round","cf-icon-clock-round"+(t.toLowerCase()==="no"?" not-timely":""))),a.createElement("span",{className:"body-copy"},t))};u_.propTypes={value:Ce().string};const c_=({data:t,error:e,id:r})=>{if(e)return a.createElement("h1",null,"There was a problem retrieving ",r);const i=t.complaint_what_happened||"",g=G1(r);return a.createElement("article",null,a.createElement("h1",{"aria-label":"Complaint "+g},r),a.createElement("div",{className:"card"},a.createElement("div",{className:"card-left layout-column"},a.createElement("h4",null,"Date CFPB received the complaint"),a.createElement("span",{className:"body-copy"},a.createElement(Dg,{value:t.date_received})),a.createElement("br",null),a.createElement("h4",null,"Consumer's state"),a.createElement("span",{className:"body-copy"},t.state),a.createElement("br",null),a.createElement("h4",null,"Consumer's zip"),a.createElement("span",{className:"body-copy"},t.zip_code),a.createElement("br",null),a.createElement("h4",null,"Submitted via"),a.createElement("span",{className:"body-copy"},t.submitted_via),a.createElement("br",null),a.createElement("h4",null,"Tags"),a.createElement("span",{className:"body-copy"},t.tags),a.createElement("br",null),a.createElement("h4",null,"Did consumer dispute the response?"),a.createElement("span",{className:"body-copy"},t.consumer_disputed)),a.createElement("div",{className:"card-right layout-column"},a.createElement("h4",null,"Product"),a.createElement("h3",null,t.product),a.createElement(Ng,{label:"Sub-product:",value:t.sub_product}),a.createElement("br",null),a.createElement("h4",null,"Issue"),a.createElement("h3",null,t.issue),a.createElement(Ng,{label:"Sub-issue:",value:t.sub_issue}),a.createElement("br",null),a.createElement("h4",null,"Consumer consent to publish narrative"),a.createElement(rv,{value:t.consumer_consent_provided}),a.createElement("br",null),i?a.createElement("div",null,a.createElement("h4",null,"Consumer complaint narrative"),a.createElement("span",{className:"body-copy"},i)):null)),a.createElement("h2",{className:"company-information"},"Company information"),a.createElement("div",{className:"card"},a.createElement("div",{className:"card-left layout-column"},a.createElement("h4",null,"Date complaint sent to company"),a.createElement("span",{className:"body-copy"},a.createElement(Dg,{value:t.date_sent_to_company})),a.createElement("br",null),a.createElement("h4",null,"Company name"),a.createElement("span",{className:"body-copy"},t.company),a.createElement("br",null)),a.createElement("div",{className:"card-right layout-column"},a.createElement("h4",null,"Timely response?"),a.createElement(u_,{value:t.timely}),a.createElement("br",null),a.createElement("h4",null,"Company response to consumer"),a.createElement("span",{className:"body-copy"},t.company_response?t.company_response:"N/A"),a.createElement("br",null),a.createElement("h4",null,"Company public response"),a.createElement("span",{className:"body-copy"},t.company_public_response?t.company_public_response:"N/A"))))};c_.propTypes={data:Ce().object,error:Ce().oneOfType([Ce().string,Ce().object]),id:Ce().string};const PC=()=>{const t=Kn(),{id:e}=yi(),r=Si(),i=vr(q1),g=vr(vg),C=vr($1),J=vr(i_),dt=C!=="",St=(0,a.useMemo)(()=>{if(!t)return"";const xt=t.pathname,Ct=xt.indexOf("detail");return xt.substring(0,Ct)+J},[t,J]);return(0,a.useEffect)(()=>{r(cg(e))},[r,e]),a.createElement("section",{className:"card-container"},a.createElement("nav",{className:"layout-row"},a.createElement("div",{className:"back-to-search flex-fixed"},a.createElement(qc,{to:St},si("left","cf-icon-left")," Back to search results")),a.createElement("div",{className:"meaning flex-fixed"},a.createElement("a",{href:R1,target:"_blank",rel:"noopener noreferrer"},"What do all these data points mean?"))),dt?a.createElement(_p,{isLoading:!0}):a.createElement(c_,{data:i,error:g,id:e}))};var iv=Object.defineProperty,kC=Object.defineProperties,OC=Object.getOwnPropertyDescriptors,Lg=Object.getOwnPropertySymbols,h_=Object.prototype.hasOwnProperty,f_=Object.prototype.propertyIsEnumerable,Tx=(t,e,r)=>e in t?iv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Mx=(t,e)=>{for(var r in e||(e={}))h_.call(e,r)&&Tx(t,r,e[r]);if(Lg)for(var r of Lg(e))f_.call(e,r)&&Tx(t,r,e[r]);return t},Ax=(t,e)=>kC(t,OC(e));const d_={activeCall:"",doc_count:0,isLoading:!1,total:0,error:"",lastUpdated:null,lastIndexed:null,loadingAggregations:!1,hasDataIssue:!1,isDataStale:!1,company:[],company_public_response:[],company_response:[],consumer_consent_provided:[],consumer_disputed:[],issue:[],product:[],state:[],submitted_via:[],tag:[],timely:[],zip_code:[]};function DC(t,e){return Ax(Mx({},t),{activeCall:e.url,isLoading:!0})}function NC(t,e){const r=e.data.aggregations,i=Object.keys(r),g=Math.max(t.doc_count,e.data.hits.total.value,e.data._meta.total_record_count),C=Ax(Mx({},t),{doc_count:g,error:"",isLoading:!1,lastUpdated:e.data._meta.last_updated,lastIndexed:e.data._meta.last_indexed,hasDataIssue:e.data._meta.has_data_issue,isDataStale:e.data._meta.is_data_stale,total:e.data.hits.total.value});return i.forEach(J=>{C[J]=r[J][J].buckets}),C}function LC(t,e){return Ax(Mx({},d_),{isLoading:!1,error:zy(e.error)})}function p_(){const t={};return t[Ny]=DC,t[ag]=NC,t[sg]=LC,t}const Cp=p_();function Px(t,e){return e.type in Cp?Cp[e.type](t,e):t}const IC=(t=d_,e)=>Px(t,e),m_={activeCall:"",data:{},error:""},jC=(t=m_,e)=>{switch(e.type){case F1:return{activeCall:e.url,data:{},error:""};case j1:return{activeCall:"",data:e.data.hits.hits[0]._source,error:""};case lg:return{activeCall:"",data:{},error:e.error};default:return t}},kx="changeDateInterval",Ox="changeDateRange",g_="DATES_CHANGED",y_="FILTER_ALL_REMOVED",v_="FILTER_CHANGED",Dx="FILTER_FLAG_CHANGED",x_="FILTER_MULTIPLE_ADDED",b_="FILTER_MULTIPLE_REMOVED",Nx="FILTER_ADDED",w_="FILTER_REMOVED",Rg="FILTER_REPLACED";function __(t){return{type:kx,dateInterval:t,requery:Ki}}function Qf(t,e,r){return{type:g_,filterName:t,minDate:e,maxDate:r,requery:Ki}}function Lx(t){return{type:Ox,dateRange:t,requery:Ki}}function Rx(t,e){return{type:v_,filterName:t,filterValue:e,requery:Ki}}function E_(t){return{type:Dx,filterName:t,requery:Ki}}function S_(t,e){return{type:Nx,filterName:t,filterValue:e,requery:Ki}}function Ig(t,e){return{type:w_,filterName:t,filterValue:e,requery:Ki}}function C_(){return{type:y_,requery:Ki}}function ov(t,e){return console.assert(Array.isArray(e)),{type:x_,filterName:t,values:e,requery:Ki}}function T_(t,e){return console.assert(Array.isArray(e)),{type:b_,filterName:t,values:e,requery:Ki}}function pu(t,e){return console.assert(Array.isArray(e)),{type:Rg,filterName:t,values:e,requery:Ki}}const M_="DATA_NORMALIZATION_SELECTED",Ix="STATE_COMPLAINTS_SHOWN",A_="STATE_FILTER_ADDED",jx="STATE_FILTER_CLEARED",P_="STATE_FILTER_REMOVED";function Fx(t){return{type:M_,requery:is,value:t}}function Rl(t){return{type:A_,selectedState:t,requery:Ki}}function qu(){return{type:jx,requery:Ki}}function Bx(){return{type:Ix,requery:Ki}}function jg(t){return{type:P_,selectedState:t,requery:Ki}}const Ih="NEXT_PAGE_SHOWN",av="PREV_PAGE_SHOWN",sv="SIZE_CHANGED",lv="SORT_CHANGED";function Hx(){return{type:Ih,requery:zf}}function k_(){return{type:av,requery:zf}}function O_(t){return console.assert(typeof t=="number"),{type:sv,size:t,requery:zf}}function uv(t){return{type:lv,sort:t,requery:zf}}const zx="SEARCH_FIELD_CHANGED",Da="SEARCH_TEXT_CHANGED";function cv(t){return{type:zx,searchField:t,requery:Ki}}function Jf(t){return{type:Da,searchText:t,requery:Ki}}const D_="CHART_TYPE_CHANGED",N_="DATA_LENS_CHANGED",Tp="DATA_SUBLENS_CHANGED",Fg="DEPTH_CHANGED",Ux="DEPTH_RESET",Wx="FOCUS_CHANGED",jh="FOCUS_REMOVED",Gx="TRENDS_TOOLTIP_CHANGED";function Vx(t){return{type:D_,chartType:t,requery:is}}function Yx(t){return{type:N_,lens:t,requery:Ki}}function Xx(t){return{type:Tp,requery:Ki,subLens:t}}function $x(t){return{type:Fg,requery:Ki,depth:t}}function L_(){return{type:Ux,requery:Ki}}function R_(t,e,r){return{type:Wx,requery:Ki,filterValues:r,focus:t,lens:e}}function I_(){return{type:jh,requery:Ki}}function qx(t){return{type:Gx,value:t,requery:is}}const FC=Un(6575),Kx="URL_CHANGED";function hv(t){const e=t.search,r=FC.parse(e);return{pathname:t.pathname,params:r}}function Zx(t,e){return{type:Kx,pathname:t,params:e}}function Qx(t){const{pathname:e,params:r}=hv(t);return i=>{i(Zx(e,r)),i(fp())}}const Jx="MAP_WARNING_DISMISSED",fv="MODAL_HID",tb="MODAL_SHOWN",eb="PRINT_MODE_ON",j_="PRINT_MODE_OFF",F_="ROW_COLLAPSED",dv="ROW_EXPANDED",pv="SCREEN_RESIZED",B_="HIDE_ADVANCED_SEARCH_TIPS",nb="SHOW_ADVANCED_SEARCH_TIPS",rb="HIDE_TOUR",ib="SHOW_TOUR",mv="TAB_CHANGED",gv="TOGGLE_FILTER_VISIBILITY",ga="TRENDS_DATE_WARNING_DISMISSED";function Bg(){return{type:gv,requery:is}}function Fh(){return{type:Jx,requery:is}}function ob(){return{type:eb,requery:is}}function ab(){return{type:j_,requery:is}}function sb(){return{type:nb,requery:is}}function H_(){return{type:B_,requery:is}}function Hg(t){return{type:F_,requery:is,value:t}}function Il(){return{type:fv}}function td(t){return{type:tb,modalType:t}}function lb(t){return{type:dv,requery:is,value:t}}function ub(t){return{type:pv,screenWidth:t,requery:is}}function Ku(t){return{type:mv,tab:t,requery:zf}}function Mp(){return{type:rb,requery:is}}function Ap(){return{type:ib,requery:is}}function cb(){return{type:ga,requery:is}}var z_=Object.defineProperty,Bh=Object.getOwnPropertySymbols,U_=Object.prototype.hasOwnProperty,W_=Object.prototype.propertyIsEnumerable,hb=(t,e,r)=>e in t?z_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Bc=(t,e)=>{for(var r in e||(e={}))U_.call(e,r)&&hb(t,r,e[r]);if(Bh)for(var r of Bh(e))W_.call(e,r)&&hb(t,r,e[r]);return t};function BC(){return Bc(Bc(Bc(Bc(Bc(Bc(Bc(Bc(Bc({},te),de),Ht),ie),Rt),X),c),j),V)}const yr=BC();var Hh=Un(4735);const HC=(t,e,r)=>r?!1:t==="Company"?!e||e.length===0:!1,zC=t=>{if(!t)return"";switch(t){case"Overview":return"";case"Company":return"product";default:return"sub_"+t.toLowerCase()}},G_=t=>t.filter(r=>r.name==="Other").reduce((r,i)=>r+i.value,0)>0?t:t.filter(r=>r.name!=="Other"),Pp=(t,e)=>{const r=_r()(t);return _r()(e).diff(r,"days")>366},UC=(t,e)=>Mw.map(r=>({name:r,disabled:Pp(t,e)&&r==="Day"})),V_=()=>{const t=document.getElementById("search-summary");t&&t.scrollIntoView()},jl=(t,e)=>{const r={chartType:{defaultVal:"line",values:["line","area"]},dataNormalization:{defaultVal:To,values:[To,Ys]},dateInterval:{defaultVal:"Month",values:Mw},dateRange:{defaultVal:"3y",values:Aw},lens:{defaultVal:"Overview",values:Vf},searchField:{defaultVal:"all",values:["all","company","complaint_what_happened"]},size:{defaultVal:"10",values:Object.keys(Ph)},sort:{defaultVal:"created_date_desc",values:Object.keys(og)},tab:{defaultVal:to,values:[to,pa,Ah]}};if(r[e]){const i=r[e];return i.values.includes(t)?t:i.defaultVal}return t},Y_=t=>{t.chartType=jl(t.chartType,"chartType"),t.chartType=t.lens==="Overview"?"line":t.chartType;const e={Overview:[""],Company:["product"],Product:["sub_product","issue"]};return e[t.lens]&&!e[t.lens].includes(t.subLens)&&(t.subLens=zC(t.lens)),t};var X_=Un(9552),$_=Un.n(X_),WC=Un(6072),q_=Un.n(WC),yv=Object.defineProperty,K_=Object.defineProperties,vv=Object.getOwnPropertyDescriptors,zg=Object.getOwnPropertySymbols,Z_=Object.prototype.hasOwnProperty,ed=Object.prototype.propertyIsEnumerable,kp=(t,e,r)=>e in t?yv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ug=(t,e)=>{for(var r in e||(e={}))Z_.call(e,r)&&kp(t,r,e[r]);if(zg)for(var r of zg(e))ed.call(e,r)&&kp(t,r,e[r]);return t},Q_=(t,e)=>K_(t,vv(e));_r().extend($_()),_r().extend(O1()),_r().extend(q_()),_r().tz.setDefault("America/New_York");const J_=(t,e)=>{if(!t||t.length===0)return null;const i=[...new Set(t.map(C=>_r()(C.date).toISOString()))].sort().pop(),g=t.filter(C=>fu(C.date,i));return{key:i,date:i,dateRange:e.dateRange,interval:e.interval,values:g}},nd=(t,e)=>{if(!t||!t.dataByTopic||t.dataByTopic.length===0)return null;let r=[];t.dataByTopic.forEach(dt=>{r=r.concat(dt.dates)});const g=[...new Set(r.map(dt=>dt.date))].sort().pop(),C=t.dataByTopic.map(dt=>{const St=dt.dates.find(Ct=>fu(Ct.date,g)),xt=St?St.value:0;return{name:dt.topic,date:g,value:xt}});return{key:g,date:g,dateRange:e.dateRange,interval:e.interval,values:C}},fb=(t,e)=>{const r=jS(t),i=YS(r,e.from,e.to);return kh(i)},db=(t,e,r,i)=>{e=e.toLowerCase();const g=fb(t,r);let C=_r()(t).utc();switch(e){case"day":C=C.format();break;case"week":case"year":C=C.add(1,e).subtract(1,"day").format();break;case"quarter":case"month":default:C=C.endOf(e).subtract(1,"day").format();break}return C=fb(C,r),e==="day"?`Date: ${C}`:i?`Date range: ${g} - ${C}`:`${g} - ${C}`},t2=(t,e,r)=>t.map(i=>{if(!e)return"#20aa3f";const g=i.name.trim(),C=i.parent?i.parent.trim():"";return e[C]?e[C]:e[g]?e[g]:r==="Overview"?"#20aa3f":"#a2a3a4"}),GC=(t,e)=>{let r=t.key;for(;e[r];)r+=" ";return e[r]=!0,t.splitterText?t:{hasChildren:Boolean(t.hasChildren),isNotFilter:!1,isParent:Boolean(t.isParent),name:r,value:Number(t.doc_count),parent:t.parent||!1,width:t.parent?.4:.5}},Wg=(t,e,r,i)=>{if(t){let g=t;return g=g.filter(J=>J.isParent||i.includes(J.parent)),{colorScheme:t2(g,e,r),data:g}}return{colorScheme:[],data:[]}},VC=(t,e,r)=>(r.forEach(i=>{e.find(g=>g.key_as_string===i.key_as_string)||e.push({name:t,doc_count:0,key_as_string:i.key_as_string})}),e.sort((i,g)=>i.key_as_string>g.key_as_string?1:-1).map(i=>({name:t,date:i.key_as_string,value:i.doc_count}))),YC=t=>{if(!t)return t;const e=t.title.split(":");return Q_(Ug({},t),{heading:e[0]+":",date:e[1]?e[1].trim():""})},e2=(t,e,r)=>{const i=_r()(e).utc().startOf(r.toLowerCase());return!_r()(t).utc().isSame(i,"day")},n2=(t,e,r)=>{const i=_r()(e).utc().endOf(r.toLowerCase()),g=_r()(t).utc(),C=g.isSame(i,"day");return i.isAfter(g)&&!C},r2=(t,e,r)=>{const{from:i,to:g}=e;if(!t.dataByTopic)return;const C=t.dataByTopic[0].dates,J=t.dataByTopic[0].dates[0].date,dt=t.dataByTopic[0].dates[C.length-1].date;e2(i,J,r)&&t.dataByTopic.forEach(St=>{St.dates=St.dates.filter(xt=>xt.date!==J)}),n2(g,dt,r)&&t.dataByTopic.forEach(St=>{St.dates=St.dates.filter(xt=>xt.date!==dt)})},xv=(t,e,r)=>{const{from:i,to:g}=e;let C=JSON.parse(JSON.stringify(t));const J=[...new Set(C.map(xt=>xt.date))];J.sort();const dt=J[0],St=J[J.length-1];return e2(i,dt,r)&&(C=C.filter(xt=>xt.date!==dt)),n2(g,St,r)&&(C=C.filter(xt=>xt.date!==St)),C};var XC=Object.defineProperty,pb=Object.defineProperties,rd=Object.getOwnPropertyDescriptors,i2=Object.getOwnPropertySymbols,mb=Object.prototype.hasOwnProperty,gb=Object.prototype.propertyIsEnumerable,Op=(t,e,r)=>e in t?XC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,$a=(t,e)=>{for(var r in e||(e={}))mb.call(e,r)&&Op(t,r,e[r]);if(i2)for(var r of i2(e))gb.call(e,r)&&Op(t,r,e[r]);return t},pl=(t,e)=>pb(t,rd(e));const Xo=()=>({dateRangeArea:[],dateRangeLine:[]}),yb=()=>({activeCall:"",colorMap:{},error:!1,isLoading:!1,results:Xo(),tooltip:!1,total:0}),Ri=(()=>Object.assign({},{chartType:"line",focus:"",lens:"Product",subLens:"sub_product"},$a({},yb())))();function o2(t,e,r,i){t.forEach(g=>{r[g]&&(i[g]=Gg(e,r[g][g].buckets))})}function Gg(t,e){const r=[],i=t.lens==="Company"?"product":"sub-product and issue";for(let C=0;C<e.length;C++){a2(e[C]);const J=e[C],dt=Y1(J);J.isParent=!0;const St=J[dt];J.hasChildren=Boolean(St&&St.buckets.length);const xt=Object.assign({},J);if(delete xt[dt],r.push(xt),St&&St.buckets&&St.buckets.length){const Ct=St.buckets,Ut=`Visualize ${i} trends for ${J.key} >`;Ct.push({hasChildren:!1,isParent:!1,key:Ut,name:Ut,splitterText:Ut,value:"",parent:J.key,width:.5}),r.push(Ct)}}const g=[];return[].concat(...r).map(C=>GC(C,g))}function bv(t){return t==="Product"?"products":t==="Company"?"companies":"values"}function $C(t,e){const{focus:r,lens:i,subLens:g}=t,C=r?g.replace("_","-").toLowerCase():i.toLowerCase(),J="Other",dt=e.dateRangeArea.dateRangeArea.buckets.map(Ct=>({name:J,value:Ct.doc_count,date:Ct.key_as_string}));e.dateRangeBuckets.dateRangeBuckets.buckets.forEach(Ct=>{dt.find(Ut=>Ct.key_as_string===Ut.date)||dt.push({name:J,value:0,date:Ct.key_as_string})});const St=Object.assign({},dt),xt=e[C][C].buckets.slice(0,5);for(let Ct=0;Ct<xt.length;Ct++){const Ut=xt[Ct],Wt=Ut.trend_period.buckets.reverse();for(let ae=0;ae<Wt.length;ae++){const ue=Wt[ae];dt.push({name:Ut.key,value:ue.doc_count,date:ue.key_as_string});const he=dt.findIndex(ye=>ye.name===J&&fu(ye.date,ue.key_as_string));he>-1&&(dt[he].value-=ue.doc_count)}const Kt=Object.values(St);if(Ut.trend_period.buckets.length!==Kt.length)for(let ae=0;ae<Kt.length;ae++){const ue=Kt[ae];dt.filter(ye=>ye.name===Ut.key).find(ye=>fu(ye.date,ue.date))||dt.push({name:Ut.key,value:0,date:ue.date})}}return G_(dt)}function qC(t,e,r,i){const g=e.dateRangeArea.dateRangeArea.buckets,C=e.dateRangeBuckets.dateRangeBuckets.buckets,J=[];if(t==="Overview"&&(J.push({topic:"Complaints",topicName:"Complaints",dashed:!1,show:!0,dates:g.map(dt=>({date:dt.key_as_string,value:dt.doc_count}))}),C.forEach(dt=>{J[0].dates.find(St=>dt.key_as_string===St.date)||J[0].dates.push({date:dt.key_as_string,value:0})}),J[0].dates.sort((dt,St)=>new Date(dt.date)-new Date(St.date))),t!=="Overview"){const dt=r?i.replace("_","-"):t.toLowerCase(),St=e[dt][dt].buckets;for(let xt=0;xt<St.length;xt++){const Ct=St[xt].key,Ut=VC(Ct,St[xt].trend_period.buckets,C);J.push({topic:Ct,topicName:Ct,dashed:!1,show:!0,dates:Ut})}}return{dataByTopic:J.slice(0,5)}}function a2(t){const e=Y1(t);if(t[e]){const r=t[e].buckets;for(let i=0;i<r.length;i++)r[i].parent=t.key,a2(r[i])}}const KC=(t,e)=>{const r={},i=Hh.DataLens,g=[...new Set(e.filter(C=>C.name!=="Other").map(C=>C.name))];for(let C=0;C<g.length;C++){const J=g[C],dt=pg(C,0,10);r[J]=i[dt]}return r.Complaints=Hh.BriteCharts.regular,r.Other=Hh.DataLens[10],r["All other products"]=Hh.DataLens[10],r["All other companies"]=Hh.DataLens[10],r["All other values"]=Hh.DataLens[10],r};function ZC(t,e){const r=e.data.aggregations,{focus:i,lens:g,subLens:C}=t,J=Xo(),dt="dateRangeArea";if(r[dt].doc_count===0){const ae=yb();return $a($a({},t),ae)}const xt=r[dt].doc_count;g!=="Overview"&&(J[dt]=$C(t,r)),J.dateRangeLine=qC(g,r,i,C);const Ct={Overview:["product"],Company:["company"],Product:["product"],"Product-focus":["sub-product","issue"],"Company-focus":["product"]};let Ut=g;i&&(Ut+="-focus");const Wt=Ct[Ut];o2(Wt,t,r,J);const Kt=KC(g,J.dateRangeArea);return pl($a({},t),{activeCall:"",colorMap:Kt,error:!1,isLoading:!1,results:J,total:xt})}function s2(t,e){return pl($a({},t),{focus:e.tab===to?t.focus:"",results:Xo()})}function l2(t,e){return pl($a({},t),{activeCall:e.url,isLoading:!0,tooltip:!1})}function QC(t,e){const r=yb();return pl($a($a({},t),r),{error:zy(e.error)})}function JC(t,e){return pl($a({},t),{chartType:e.chartType,tooltip:!1})}function tT(t,e){const r=jl(e.lens,"lens");return pl($a({},t),{focus:"",lens:r,results:Xo(),tooltip:!1})}function u2(t,e){return pl($a({},t),{subLens:e.subLens})}function eT(t,e){const{focus:r,lens:i}=e;return pl($a({},t),{focus:r,lens:i,tooltip:!1})}function c2(t){return pl($a({},t),{focus:"",results:Xo(),tooltip:!1})}function nT(t,e){const r=e.params,i=Object.assign({},Ri),g=["chartType","focus","lens","subLens"];for(const C of g)r[C]&&(i[C]=jl(r[C],C));return i}function rT(t,e){const r=e.value||!1;if(r&&(r.title=db(r.date,r.interval,r.dateRange,!0),r.values)){r.values.forEach(g=>{g.colorIndex=Object.values(Hh.DataLens).indexOf(t.colorMap[g.name])||0,g.value=Mo(g,"value",0)});let i=0;i=r.values.reduce((g,C)=>g+C.value,i),r.total=i}return pl($a({},t),{tooltip:r})}function iT(t){return pl($a({},t),{focus:""})}function oT(t,e){const r=e.values.includes(t.focus)?"":t.focus;return pl($a({},t),{focus:r})}function aT(){const t={};return t[yr.CHART_TYPE_CHANGED]=JC,t[yr.DATA_LENS_CHANGED]=tT,t[yr.DATA_SUBLENS_CHANGED]=u2,t[yr.FILTER_ALL_REMOVED]=iT,t[yr.FILTER_MULTIPLE_REMOVED]=oT,t[yr.FOCUS_CHANGED]=eT,t[yr.FOCUS_REMOVED]=c2,t[yr.TAB_CHANGED]=s2,t[yr.TRENDS_API_CALLED]=l2,t[yr.TRENDS_FAILED]=QC,t[yr.TRENDS_RECEIVED]=ZC,t[yr.TRENDS_TOOLTIP_CHANGED]=rT,t[yr.URL_CHANGED]=nT,t}const h2=aT();function sT(t,e){return e.type in h2?h2[e.type](t,e):t}const uT=(t=Ri,e)=>{const r=sT(t,e);return Y_(r),r};var cT=Object.defineProperty,hT=Object.defineProperties,f2=Object.getOwnPropertyDescriptors,d2=Object.getOwnPropertySymbols,fT=Object.prototype.hasOwnProperty,dT=Object.prototype.propertyIsEnumerable,p2=(t,e,r)=>e in t?cT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,wv=(t,e)=>{for(var r in e||(e={}))fT.call(e,r)&&p2(t,r,e[r]);if(d2)for(var r of d2(e))dT.call(e,r)&&p2(t,r,e[r]);return t},_v=(t,e)=>hT(t,f2(e));const m2={activeCall:"",error:!1,isLoading:!1,results:{product:[],state:[]}},pT=t=>{const e=Object.values(t.state.buckets).filter(i=>L1.includes(i.key)).map(i=>({name:i.key,value:i.doc_count,issue:i.issue.buckets[0].key,product:i.product.buckets[0].key})),r=e.map(i=>i.name);return r.length>0&&L1.forEach(i=>{r.includes(i)||e.push({name:i,value:0,issue:"",product:""})}),e};function mT(t){return _v(wv({},t),{error:!1,results:{product:[],state:[]}})}function gT(t,e){return _v(wv({},t),{activeCall:e.url,error:!1,isLoading:!0})}function yT(t,e){const r=e.data.aggregations,{state:i}=r,g=["product"],C={};return o2(g,t,r,C),C.state=pT(i),_v(wv({},t),{activeCall:"",error:!1,isLoading:!1,results:C})}function vT(t,e){return _v(wv({},t),{activeCall:"",error:zy(e.error),isLoading:!1,results:{product:[],state:[]}})}function xT(){const t={};return t[yr.STATES_API_CALLED]=gT,t[yr.STATES_RECEIVED]=yT,t[yr.STATES_FAILED]=vT,t[yr.TAB_CHANGED]=mT,t}const g2=xT();function bT(t,e){return e.type in g2?g2[e.type](t,e):t}const _T=(t=m2,e)=>bT(t,e);var ET=Object.defineProperty,ST=Object.defineProperties,y2=Object.getOwnPropertyDescriptors,v2=Object.getOwnPropertySymbols,CT=Object.prototype.hasOwnProperty,TT=Object.prototype.propertyIsEnumerable,x2=(t,e,r)=>e in t?ET(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,_i=(t,e)=>{for(var r in e||(e={}))CT.call(e,r)&&x2(t,r,e[r]);if(v2)for(var r of v2(e))TT.call(e,r)&&x2(t,r,e[r]);return t},yo=(t,e)=>ST(t,y2(e));const vb=Un(6575),xb={breakPoints:{},chartType:"line",dataNormalization:To,dateInterval:"Month",dateRange:"3y",date_received_max:Oh(),date_received_min:new Date(_r()(Oh()).subtract(3,"years")),enablePer1000:!0,focus:"",from:0,mapWarningEnabled:!0,lens:"Product",page:1,queryString:"",search:"",searchAfter:"",searchField:"all",searchText:"",size:"25",sort:"created_date_desc",subLens:"sub_product",tab:to,totalPages:0,trendDepth:5,trendsDateWarningEnabled:!1},b2={searchAfter:"search_after",searchText:"search_term",searchField:"field",from:"frm"},w2={dateInterval:"trend_interval",lens:"lens",subLens:"sub_lens",trendDepth:"trend_depth"},MT=["chartType","dataNormalization","dateInterval","dateRange","focus","lens","searchText","searchField","size","sort","subLens","tab"],AT=["from","page","trendDepth"];function PT(t){const e=t.date_received_max,r=t.date_received_min;if(_r()(e).isSame(xb.date_received_max)&&_r()(r).isSame(Rc))return t.dateRange="All",t;const i={"3y":new Date(_r()(e).subtract(3,"years")),"3m":new Date(_r()(e).subtract(3,"months")),"6m":new Date(_r()(e).subtract(6,"months")),"1y":new Date(_r()(e).subtract(1,"year"))},g=Object.keys(i);let C=!1;for(let J=0;J<g.length&&!C;J++){const dt=g[J];_r()(r).isSame(i[dt],"day")&&(t.dateRange=dt,C=!0)}return C||(t.dateRange=""),t}function kT(t){const e=Object.keys(t);return e.includes("dateRange")&&!e.includes("date_received_min")&&!e.includes("date_received_max")}function OT(t){if(isNaN(Date.parse(t)))return null;const e=new Date(t);return new Date(e.getFullYear(),e.getMonth(),e.getDate()+1)}function _2(t,e){const r=e.params;let i=Object.assign({},xb);if(MT.forEach(g=>{typeof r[g]!="undefined"&&(i[g]=jl(r[g],g))}),$f(r,i,Uf),Wf.forEach(g=>{if(typeof r[g]!="undefined"){const C=OT(r[g]);C&&(i[g]=C)}}),Gf.forEach(g=>{typeof r[g]!="undefined"&&(i[g]=r[g]==="true")}),AT.forEach(g=>{if(typeof r[g]!="undefined"){const C=parseInt(r[g],10);isNaN(C)===!1&&(i[g]=jl(C,g))}}),kT(r)||r.dateRange==="All"){const g={dateRange:r.dateRange};i=bb(i,g)}return i.page=1,PT(i)}function E2(t,e){const r=jl(e.dateInterval,"dateInterval");return yo(_i({},t),{dateInterval:r})}function bb(t,e){const r=jl(e.dateRange,"dateRange"),i=yo(_i({},t),{dateRange:r}),g=Oh(),C={All:new Date(Rc),"3m":new Date(_r()(g).subtract(3,"months")),"6m":new Date(_r()(g).subtract(6,"months")),"1y":new Date(_r()(g).subtract(1,"year")),"3y":new Date(_r()(g).subtract(3,"years"))};return C[r]&&(i.date_received_min=C[r]),i.date_received_max=g,i}function Dp(t,e){const r=[e.filterName+"_min",e.filterName+"_max"];let{maxDate:i,minDate:g}=e;g=_r()(g).isValid()?new Date(_r()(g).startOf("day")):null,i=_r()(i).isValid()?new Date(_r()(i).startOf("day")):null;const C=yo(_i({},t),{[r[0]]:g,[r[1]]:i});r.forEach(dt=>{C[dt]===null&&delete C[dt]});const J=VS(g,i);return J?C.dateRange=J:delete C.dateRange,C}function wb(t){const{date_received_min:e,date_received_max:r,dateInterval:i}=t;Pp(e,r)&&i==="Day"&&(t.dateInterval="Week",t.trendsDateWarningEnabled=!0),Pp(e,r)||(t.trendsDateWarningEnabled=!1)}function S2(t,e){const r=yo(_i({},t),{[e.filterName]:Boolean(!t[e.filterName])});return["has_narrative"].forEach(g=>{r[g]||delete r[g]}),r}function Ev(t,e){const r=Np(1,t);return yo(_i(_i({},t),r),{searchField:e.searchField})}function _b(t,e){const r=Np(1,t);return yo(_i(_i({},t),r),{searchText:e.searchText})}function C2(t,e){const r=_i({},t),i=e.filterName,g=Mo(r,i,[]);return e.values.forEach(C=>{g.indexOf(C)===-1&&g.push(C)}),r[i]=g,r}function Vg(t=[],e){return t.indexOf(e)===-1?t.push(e):t=t.filter(function(r){return r!==e}),[...t]}function Yg(t,e){return yo(_i({},t),{[e.filterName]:Vg(t[e.filterName],e.filterValue.key)})}function Xg(t,e){const r=Mo(t,"state",[]),{abbr:i}=e.selectedState;return r.includes(i)||r.push(i),yo(_i({},t),{state:r})}function $g(t){return yo(_i({},t),{state:[]})}function DT(t){return yo(_i({},t),{tab:pa})}function T2(t,e){const r=Mo(t,"state",[]),{abbr:i}=e.selectedState;return yo(_i({},t),{state:r.filter(C=>C!==i)})}function Eb(t){const e=_i({},t),r=Uf.concat(Wf,Gf);if(t.searchField===Py){const i=r.indexOf("has_narrative");r.splice(i,1)}return r.forEach(i=>{i in e&&delete e[i]}),e.dateRange="All",e.date_received_min=new Date(Rc),e.date_received_max=Oh(),e.focus="",e}function NT(t,e){const r=_i({},t);return e.filterName==="has_narrative"?r.has_narrative=!0:e.filterName in r?r[e.filterName].indexOf(e.filterValue)===-1&&r[e.filterName].push(e.filterValue):r[e.filterName]=[e.filterValue],r}function LT(t,e){const r=_i({},t);if(e.filterName==="has_narrative")delete r.has_narrative;else if(e.filterName in r){const i=r[e.filterName].indexOf(e.filterValue);i!==-1&&r[e.filterName].splice(i,1)}return r}function Sb(t,e){const r=_i({},t);return r[e.filterName]=[...new Set(e.values)],r}function RT(t,e){const r=_i({},t),i=r[e.filterName];return r.focus=e.values.includes(t.focus)?"":t.focus||"",i&&e.values.forEach(g=>{const C=i.indexOf(g);C!==-1&&i.splice(C,1)}),r}function M2(t){return yo(_i({},t),{mapWarningEnabled:!1})}function A2(t){return yo(_i({},t),{trendsDateWarningEnabled:!1})}function Np(t,e){return{from:(t-1)*e.size,page:t,searchAfter:IT(e,t)}}function P2(t){const e=pg(t.page-1,1,t.page),r=Np(e,t);return _i(_i({},t),r)}function k2(t){const e=pg(t.page+1,1,t.totalPages),r=Np(e,t);return _i(_i({},t),r)}function IT(t,e){const{breakPoints:r}=t;return r&&r[e]?r[e].join("_"):""}function O2(t,e){const r=Np(1,t);return yo(_i(_i({},t),r),{size:e.size})}function D2(t,e){const r=Np(1,t),i=jl(e.sort,"sort");return yo(_i(_i({},t),r),{sort:i})}function jT(t,e){const r=jl(e.tab,"tab");return yo(_i({},t),{focus:r===to?t.focus:"",tab:r})}function FT(t,e){const{_meta:r,hits:i}=e.data,g=Math.ceil(i.total.value/t.size),{break_points:C}=r,J=t.page>g?g:t.page;return yo(_i({},t),{breakPoints:C,page:J,totalPages:Object.keys(C).length+1})}function Sv(t,e){return yo(_i({},t),{trendDepth:e.depth})}function zh(t){return yo(_i({},t),{trendDepth:5})}function N2(t,e){const{focus:r,filterValues:i,lens:g}=e,C=g.toLowerCase(),J=[];return C==="company"?J.push(r):i.forEach(dt=>{J.push(dt)}),yo(_i({},t),{[C]:J,focus:r,lens:g,tab:to,trendDepth:25})}function L2(t){const{lens:e}=t,r=e.toLowerCase();return yo(_i({},t),{[r]:[],focus:"",tab:to,trendDepth:5})}function R2(t,e){const r=jl(e.lens,"lens");return yo(_i({},t),{focus:"",lens:r,trendDepth:r==="Company"?10:5})}function Cb(t,e){return yo(_i({},t),{subLens:e.subLens.toLowerCase()})}function BT(t,e){return yo(_i({},t),{chartType:e.chartType})}function I2(t,e){const r=jl(e.value,"dataNormalization");return yo(_i({},t),{dataNormalization:r})}function Cv(t){Uf.forEach(e=>{Array.isArray(t[e])&&t[e].length===0&&delete t[e]})}function qg(t){const e={};Object.keys(t).forEach(dt=>{if(!t[dt]||dt==="queryString")return;let St=t[dt];Wf.indexOf(dt)!==-1&&(St=Hy(St));const xt=["yes","true"];Gf.indexOf(dt)!==-1&&(St=xt.includes(String(St).toLowerCase())),b2[dt]?e[b2[dt]]=St:w2[dt]?e[w2[dt]]=St.toString().toLowerCase():e[dt]=St});const i=[].concat(["search_term","field"],Wf,Uf,Gf),g={List:["frm","search_after","size","sort","format","no_aggs","no_highlight"],Map:[],Trends:["lens","focus","sub_lens","sub_lens_depth","trend_interval","trend_depth"]},C=[].concat(i,g[e.tab]);Object.keys(e).includes("format")&&["size","format","no_aggs"].forEach(St=>{C.includes(St)||C.push(St)});const J=Object.keys(e).filter(dt=>C.includes(dt)).reduce((dt,St)=>(dt[St]=e[St],dt),{});return"?"+vb.stringify(J)}function j2(t){const e={};Object.keys(t).forEach(dt=>{if(!t[dt]||["queryString","url","breakPoints"].includes(dt))return;let St=t[dt];Wf.indexOf(dt)!==-1&&(St=Hy(St)),e[dt]=St});const i=[].concat(["searchText","searchField","tab"],Wf,Uf,Gf),g={List:["sort","size","page"],Map:["dataNormalization","dateRange","expandedRows"],Trends:["chartType","dateRange","dateInterval","expandedRows","lens","focus","subLens"]},C=[].concat(i,g[e.tab]),J=Object.keys(e).filter(dt=>C.includes(dt)).reduce((dt,St)=>(dt[St]=e[St],dt),{});return"?"+vb.stringify(J)}function F2(t){t.enablePer1000=jw(t),t.enablePer1000&&(t.mapWarningEnabled=!0),t.dataNormalization=t.enablePer1000&&t.dataNormalization||To}function Tb(t){t.breakPoints={},t.from=0,t.page=1,t.searchAfter=""}function HT(){const t={};return t[yr.CHART_TYPE_CHANGED]=BT,t[yr.COMPLAINTS_RECEIVED]=FT,t[yr.DATA_LENS_CHANGED]=R2,t[yr.DATA_NORMALIZATION_SELECTED]=I2,t[yr.DATA_SUBLENS_CHANGED]=Cb,t[yr.DATE_INTERVAL_CHANGED]=E2,t[yr.DATE_RANGE_CHANGED]=bb,t[yr.DATES_CHANGED]=Dp,t[yr.DEPTH_CHANGED]=Sv,t[yr.DEPTH_RESET]=zh,t[yr.FILTER_ALL_REMOVED]=Eb,t[yr.FILTER_CHANGED]=Yg,t[yr.FILTER_FLAG_CHANGED]=S2,t[yr.FILTER_MULTIPLE_ADDED]=C2,t[yr.FILTER_MULTIPLE_REMOVED]=RT,t[yr.FILTER_ADDED]=NT,t[yr.FILTER_REMOVED]=LT,t[yr.FILTER_REPLACED]=Sb,t[yr.FOCUS_CHANGED]=N2,t[yr.FOCUS_REMOVED]=L2,t[yr.MAP_WARNING_DISMISSED]=M2,t[yr.NEXT_PAGE_SHOWN]=k2,t[yr.PREV_PAGE_SHOWN]=P2,t[yr.SIZE_CHANGED]=O2,t[yr.SORT_CHANGED]=D2,t[yr.STATE_COMPLAINTS_SHOWN]=DT,t[yr.STATE_FILTER_ADDED]=Xg,t[yr.STATE_FILTER_CLEARED]=$g,t[yr.STATE_FILTER_REMOVED]=T2,t[yr.TAB_CHANGED]=jT,t[yr.TRENDS_DATE_WARNING_DISMISSED]=A2,t[yr.URL_CHANGED]=_2,t[yr.SEARCH_TEXT_CHANGED]=_b,t[yr.SEARCH_FIELD_CHANGED]=Ev,t}const gi=HT();function zT(t,e){return e.type in gi?gi[e.type](t,e):t}const UT=(t=xb,e)=>{const r=zT(t,e);[yr.DATE_INTERVAL_CHANGED,yr.DATE_RANGE_CHANGED,yr.DATES_CHANGED,yr.FILTER_ALL_REMOVED,yr.FILTER_CHANGED,yr.FILTER_FLAG_CHANGED,yr.FILTER_MULTIPLE_ADDED,yr.FILTER_MULTIPLE_REMOVED,yr.FILTER_ADDED,yr.FILTER_REMOVED,yr.FILTER_REPLACED,yr.SEARCH_FIELD_CHANGED,yr.SEARCH_TEXT_CHANGED,yr.SIZE_CHANGED,yr.SORT_CHANGED,yr.TAB_CHANGED].includes(e.type)&&Tb(r),r.tab===Ah&&F2(r),r.tab===to&&(wb(r),Y_(r)),Cv(r);const g=qg(r);return r.queryString=g==="?"?"":g,r.search=j2(r),r};var WT=Object.defineProperty,GT=Object.defineProperties,VT=Object.getOwnPropertyDescriptors,B2=Object.getOwnPropertySymbols,YT=Object.prototype.hasOwnProperty,XT=Object.prototype.propertyIsEnumerable,H2=(t,e,r)=>e in t?WT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Vi=(t,e)=>{for(var r in e||(e={}))YT.call(e,r)&&H2(t,r,e[r]);if(B2)for(var r of B2(e))XT.call(e,r)&&H2(t,r,e[r]);return t},Tv=(t,e)=>GT(t,VT(e));const z2={activeCall:"",error:"",isLoading:!1,items:[]},U2=t=>t.hits.hits.map(e=>{const r=Vi({},e._source);return e.highlight&&Object.keys(e.highlight).forEach(i=>{r[i]=e.highlight[i][0]}),r});function $T(t,e){return Tv(Vi({},t),{activeCall:e.url,isLoading:!0})}function W2(t,e){const r=U2(e.data);return Tv(Vi({},t),{activeCall:"",error:"",isLoading:!1,items:r})}function qT(t,e){return Tv(Vi({},z2),{error:e.error})}function G2(){const t={};return t[Ly]=$T,t[Ry]=W2,t[I1]=qT,t}const V2=G2();function Y2(t,e){return e.type in V2?V2[e.type](t,e):t}const X2=(t=z2,e)=>Y2(t,e);var KT=Object.defineProperty,$2=Object.defineProperties,ZT=Object.getOwnPropertyDescriptors,Mb=Object.getOwnPropertySymbols,QT=Object.prototype.hasOwnProperty,q2=Object.prototype.propertyIsEnumerable,K2=(t,e,r)=>e in t?KT(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Xs=(t,e)=>{for(var r in e||(e={}))QT.call(e,r)&&K2(t,r,e[r]);if(Mb)for(var r of Mb(e))q2.call(e,r)&&K2(t,r,e[r]);return t},ml=(t,e)=>$2(t,ZT(e));const Z2={expandedRows:[],isFromExternal:!1,isPrintMode:!1,hasAdvancedSearchTips:!1,hasFilters:!0,showTour:!1,modalTypeShown:!1,width:0};function JT(t,e){const r=e.params;return t.isPrintMode=r.isPrintMode==="true",t.isFromExternal=r.isFromExternal==="true",$f(r,t,["expandedRows"]),t}function Q2(t){return ml(Xs({},t),{hasAdvancedSearchTips:!1})}function tM(t){return ml(Xs({},t),{modalTypeShown:!1})}function J2(t,e){return ml(Xs({},t),{modalTypeShown:e.modalType})}function eM(t){return ml(Xs({},t),{hasAdvancedSearchTips:!0})}function tE(t){return ml(Xs({},t),{isPrintMode:!0})}function nM(t){return ml(Xs({},t),{isFromExternal:!1,isPrintMode:!1})}function eE(t,e){return ml(Xs({},t),{hasFilters:e.screenWidth>749,width:e.screenWidth})}function rM(t){return ml(Xs({},t),{hasFilters:!t.hasFilters})}function nE(t){return ml(Xs({},t),{showTour:!1})}function iM(t){return ml(Xs({},t),{expandedRows:[],hasAdvancedSearchTips:!1,showTour:!0})}function rE(t,e){const{expandedRows:r}=t,i=e.value;return ml(Xs({},t),{expandedRows:r.filter(g=>g!==i)})}function oM(t,e){const{expandedRows:r}=t,i=e.value;return r.includes(i)||r.push(i),ml(Xs({},t),{expandedRows:r})}function iE(t){return ml(Xs({},t),{expandedRows:[]})}function aM(){const t={};return t[yr.DATA_LENS_CHANGED]=iE,t[yr.MODAL_HID]=tM,t[yr.MODAL_SHOWN]=J2,t[yr.PRINT_MODE_ON]=tE,t[yr.PRINT_MODE_OFF]=nM,t[yr.SCREEN_RESIZED]=eE,t[yr.HIDE_ADVANCED_SEARCH_TIPS]=Q2,t[yr.SHOW_ADVANCED_SEARCH_TIPS]=eM,t[yr.TOGGLE_FILTER_VISIBILITY]=rM,t[yr.HIDE_TOUR]=nE,t[yr.SHOW_TOUR]=iM,t[yr.ROW_COLLAPSED]=rE,t[yr.ROW_EXPANDED]=oM,t[yr.URL_CHANGED]=JT,t}const Ab=aM();function sM(t,e){return e.type in Ab?Ab[e.type](t,e):t}const uM=(t=Z2,e)=>sM(t,e),oE=(0,nt.UY)({aggs:IC,detail:jC,map:_T,query:UT,results:X2,trends:uT,view:uM}),TP={},aE=()=>{const t=Si();return a.createElement("header",{className:"content_hero"},a.createElement("h1",{className:"content-header"},"Consumer Complaint Database"),a.createElement("ul",{className:"m-list m-list__horizontal"},a.createElement("li",{className:"m-list_item"},a.createElement("button",{className:"a-btn a-btn__link",onClick:()=>{t(td(Ay))}},"Things to know before you use this database")),a.createElement("li",{className:"m-list_item"},a.createElement("a",{href:R1,target:"_blank",rel:"noopener noreferrer"},"How we use complaint data")),a.createElement("li",{className:"m-list_item"},a.createElement("a",{href:"https://cfpb.github.io/api/ccdb/",target:"_blank",rel:"noopener noreferrer"},"Technical documentation"))))},MP={},cM={};class Zu extends a.Component{constructor(e){super(e),this.state={hasChildren:e.hasChildren},this._toggleChildDisplay=this._toggleChildDisplay.bind(this)}_toggleChildDisplay(){this.setState({hasChildren:!this.state.hasChildren})}componentDidUpdate(e){e.hasChildren!==this.props.hasChildren&&this.setState({hasChildren:this.props.hasChildren})}render(){let e="o-expandable";this.props.className&&(e+=" "+this.props.className);const r=this.state.hasChildren?"true":"false",i=a.createElement(a.Fragment,null,a.createElement("span",{className:"o-expandable_cue-close",role:"img","aria-label":"Hide"},si("minus-round"))),g=a.createElement(a.Fragment,null,a.createElement("span",{className:"o-expandable_cue-open",role:"img","aria-label":"Show"},si("plus-round")));return a.createElement("section",{className:e},a.createElement("button",{className:"o-expandable_header","aria-expanded":r,"aria-label":`Hide ${this.props.title} filter`,onClick:this._toggleChildDisplay},a.createElement("h3",{className:"o-expandable_label"},this.props.title),a.createElement("span",{className:"o-expandable_cues"},this.state.hasChildren?i:g)),this.state.hasChildren?a.createElement("div",{className:"o-expandable_content"},a.createElement("p",null,this.props.desc),this.props.children):null)}}Zu.propTypes={hasChildren:Ce().bool,className:Ce().string,title:Ce().string,desc:Ce().string,children:Ce().node},Zu.defaultProps={hasChildren:!0};const hM={};function $o(){return $o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},$o.apply(this,arguments)}function Kr(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fM(t,e){if(t==null)return{};var r={},i=Object.keys(t),g,C;for(C=0;C<i.length;C++)g=i[C],!(e.indexOf(g)>=0)&&(r[g]=t[g]);return r}function Na(t,e){if(t==null)return{};var r=fM(t,e),i,g;if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(t);for(g=0;g<C.length;g++)i=C[g],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(t,i)&&(r[i]=t[i])}return r}var dM=Un(8492),sE=Un.n(dM);function pM(){var t=(0,a.useReducer)(function(r){return!r},!1),e=t[1];return e}function mM(t){var e=(0,a.useRef)(null);return(0,a.useEffect)(function(){e.current=t}),e.current}var gM=["justify","left","right"],lE="label",yM=["lg","sm"],Mv=Un(7166),uE=Un.n(Mv);function Lp(t){return typeof t=="string"?t:lE}function Av(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var cE=0;function $s(t){return typeof t=="function"}function Qu(t){return typeof t=="string"}function Ts(){}function Pv(t,e){var r={};return e.forEach(function(i){r[i]=t[i]}),r}function vM(t){return cE+=1,(t==null?"":String(t))+cE}function xM(t,e){if(!Qu(t)&&(Av(t,"paginationOption")||Av(t,"customOption")))return t[Lp(e)];var r;return $s(e)?r=e(t):Qu(t)?r=t:r=t[e],Qu(r)||uE()(!1),r}const Ju=xM;function bM(t,e){var r=e.allowNew,i=e.labelKey,g=e.text;return!r||!g.trim()?!1:$s(r)?r(t,e):!t.some(function(C){return Ju(C,i)===g})}const wM=bM;var hE=Un(2303),id=Un.n(hE);function od(t,e){if(!Qu(t))return t[e]}var _M=[{base:"A",letters:"A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"},{base:"AA",letters:"\uA732"},{base:"AE",letters:"\xC6\u01FC\u01E2"},{base:"AO",letters:"\uA734"},{base:"AU",letters:"\uA736"},{base:"AV",letters:"\uA738\uA73A"},{base:"AY",letters:"\uA73C"},{base:"B",letters:"B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181"},{base:"C",letters:"C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E"},{base:"D",letters:"D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779\xD0"},{base:"DZ",letters:"\u01F1\u01C4"},{base:"Dz",letters:"\u01F2\u01C5"},{base:"E",letters:"E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E"},{base:"F",letters:"F\u24BB\uFF26\u1E1E\u0191\uA77B"},{base:"G",letters:"G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E"},{base:"H",letters:"H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"},{base:"I",letters:"I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"},{base:"J",letters:"J\u24BF\uFF2A\u0134\u0248"},{base:"K",letters:"K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"},{base:"L",letters:"L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"},{base:"LJ",letters:"\u01C7"},{base:"Lj",letters:"\u01C8"},{base:"M",letters:"M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C"},{base:"N",letters:"N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4"},{base:"NJ",letters:"\u01CA"},{base:"Nj",letters:"\u01CB"},{base:"O",letters:"O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"},{base:"OI",letters:"\u01A2"},{base:"OO",letters:"\uA74E"},{base:"OU",letters:"\u0222"},{base:"OE",letters:"\x8C\u0152"},{base:"oe",letters:"\x9C\u0153"},{base:"P",letters:"P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"},{base:"Q",letters:"Q\u24C6\uFF31\uA756\uA758\u024A"},{base:"R",letters:"R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"},{base:"S",letters:"S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"},{base:"T",letters:"T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"},{base:"TZ",letters:"\uA728"},{base:"U",letters:"U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"},{base:"V",letters:"V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"},{base:"VY",letters:"\uA760"},{base:"W",letters:"W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"},{base:"X",letters:"X\u24CD\uFF38\u1E8A\u1E8C"},{base:"Y",letters:"Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"},{base:"Z",letters:"Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"},{base:"a",letters:"a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250"},{base:"aa",letters:"\uA733"},{base:"ae",letters:"\xE6\u01FD\u01E3"},{base:"ao",letters:"\uA735"},{base:"au",letters:"\uA737"},{base:"av",letters:"\uA739\uA73B"},{base:"ay",letters:"\uA73D"},{base:"b",letters:"b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253"},{base:"c",letters:"c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"},{base:"d",letters:"d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A"},{base:"dz",letters:"\u01F3\u01C6"},{base:"e",letters:"e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD"},{base:"f",letters:"f\u24D5\uFF46\u1E1F\u0192\uA77C"},{base:"g",letters:"g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F"},{base:"h",letters:"h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"},{base:"j",letters:"j\u24D9\uFF4A\u0135\u01F0\u0249"},{base:"k",letters:"k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"},{base:"l",letters:"l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747"},{base:"lj",letters:"\u01C9"},{base:"m",letters:"m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"},{base:"n",letters:"n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5"},{base:"nj",letters:"\u01CC"},{base:"o",letters:"o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275"},{base:"oi",letters:"\u01A3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\uA74F"},{base:"p",letters:"p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755"},{base:"q",letters:"q\u24E0\uFF51\u024B\uA757\uA759"},{base:"r",letters:"r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"},{base:"s",letters:"s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B"},{base:"t",letters:"t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"},{base:"tz",letters:"\uA729"},{base:"u",letters:"u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"},{base:"v",letters:"v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"},{base:"vy",letters:"\uA761"},{base:"w",letters:"w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"},{base:"x",letters:"x\u24E7\uFF58\u1E8B\u1E8D"},{base:"y",letters:"y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"},{base:"z",letters:"z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"}].reduce(function(t,e){var r=e.base,i=e.letters;return i.split("").forEach(function(g){t[g]=r}),t},{}),Ci="\u0300-\u036F",fE="\u3099\u309A";function Sa(t){return t.normalize("NFD").replace(new RegExp("[".concat(Ci).concat(fE,"]"),"g"),"").replace(/[^\u0000-\u007E]/g,function(e){return _M[e]||e})}var ad=Un(626),Pb=Un.n(ad),Kg={};function qo(t,e){if(!t&&e.indexOf("deprecated")!==-1){if(Kg[e])return;Kg[e]=!0}for(var r=arguments.length,i=new Array(r>2?r-2:0),g=2;g<r;g++)i[g-2]=arguments[g];Pb().apply(void 0,[t,"[react-bootstrap-typeahead] ".concat(e)].concat(i))}function Zg(){Kg={}}function La(t,e,r){var i=t,g=e;return r.caseSensitive||(i=i.toLowerCase(),g=g.toLowerCase()),r.ignoreDiacritics&&(i=Sa(i),g=Sa(g)),g.indexOf(i)!==-1}function Uh(t,e){var r=e.filterBy,i=e.labelKey,g=e.multiple,C=e.selected,J=e.text;if(g&&C.some(function(St){return id()(St,t)}))return!1;if($s(i))return La(J,i(t),e);var dt=r.slice();return Qu(i)&&dt.indexOf(i)===-1&&dt.unshift(i),Qu(t)?(qo(dt.length<=1,"You cannot filter by properties when `option` is a string."),La(J,t,e)):dt.some(function(St){var xt=od(t,St);return Qu(xt)||(qo(!1,"Fields passed to `filterBy` should have string values. Value will be converted to a string; results may be unexpected."),xt=String(xt)),La(J,xt,e)})}function Qg(t){return t.selectionStart!=null}function Wh(t,e){var r=!1;return t.key==="ArrowRight"&&(r=Qg(t.currentTarget)?t.currentTarget.selectionStart===t.currentTarget.value.length:!0),t.key==="Tab"&&(t.preventDefault(),r=!0),e?e(r,t):r}var EM="i",kv=/[\u0300-\u036F]/;function SM(t){return typeof t!="string"&&uE()(!1),t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function dE(t,e){var r=new RegExp(SM(Sa(e)),EM),i=r.exec(Sa(t));if(!i)return null;var g=i.index,C=i[0].length;if(kv.test(t)){for(var J=0;J<=g;J++)kv.test(t[J])&&(g+=1);for(var dt=g;dt<=g+C;dt++)kv.test(t[dt])&&(C+=1)}return{end:g+C,start:g}}function CM(t){var e=t.activeIndex,r=t.initialItem,i=t.isFocused,g=t.isMenuShown,C=t.labelKey,J=t.multiple,dt=t.selected,St=t.text;if(!St||!i||!g||!r||!Qu(r)&&Av(r,"customOption")||e>-1||dt.length&&!J)return"";var xt=Ju(r,C),Ct=dE(xt.toLowerCase(),St.toLowerCase());return Ct&&Ct.start===0?St+xt.slice(Ct.end,xt.length):""}const TM=CM;var MM=Un(4403),mu=Un.n(MM);function Jg(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;return"".concat(t,"-item-").concat(e)}var AM=["activeIndex","id","isFocused","isMenuShown","multiple","onClick","onFocus","placeholder"];function kb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(g){return Object.getOwnPropertyDescriptor(t,g).enumerable})),r.push.apply(r,i)}return r}function sd(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?kb(Object(r),!0).forEach(function(i){Kr(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kb(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}var Ob=function(e){var r=e.activeIndex,i=e.id,g=e.isFocused,C=e.isMenuShown,J=e.multiple,dt=e.onClick,St=e.onFocus,xt=e.placeholder,Ct=Na(e,AM);return function(){var Ut,Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Kt=Av(Wt,"className")?String(Wt.className):void 0;return sd(sd(sd(sd({autoComplete:"off",placeholder:xt,type:"text"},Wt),Ct),{},{"aria-activedescendant":r>=0?Jg(i,r):void 0,"aria-autocomplete":"both","aria-expanded":C,"aria-haspopup":"listbox","aria-multiselectable":J||void 0,"aria-owns":C?i:void 0,className:mu()((Ut={},Kr(Ut,Kt||"",!J),Kr(Ut,"focus",g),Ut))},J&&{inputClassName:Kt}),{},{onClick:dt,onFocus:St,role:"combobox"})}};const Db=Ob;function Nb(t){var e=t.activeItem,r=t.labelKey,i=t.multiple,g=t.selected,C=t.text;return e?Ju(e,r):!i&&g.length&&g[0]?Ju(g[0],r):C}const pE=Nb;function PM(t){var e=t.allowNew,r=t.highlightOnlyResult,i=t.results;return!r||e?!1:i.length===1&&!od(i[0],"disabled")}const mE=PM;function kM(t,e){return!e||e>=t.length?t:t.slice(0,e)}const gE=kM;function yE(t,e){var r=e[t];return!!r&&!!od(r,"disabled")}function Ov(t,e,r){for(var i=t;yE(i,r);)i+=e==="ArrowUp"?-1:1;return i}function t0(t,e,r){var i=t;return i+=e==="ArrowUp"?-1:1,i=Ov(i,e,r),i===r.length?i=-1:i===-2&&(i=r.length-1,i=Ov(i,e,r)),i}function vE(t){var e=t.open,r=t.minLength,i=t.showMenu,g=t.text;return e||e===!1?e:g.length<r?!1:i}function Dv(t){t.preventDefault()}function ld(t){return t==="lg"}function Nv(t){return t==="sm"}var OM=["className","isInvalid","isValid","size"];function xE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(g){return Object.getOwnPropertyDescriptor(t,g).enumerable})),r.push.apply(r,i)}return r}function Lv(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?xE(Object(r),!0).forEach(function(i){Kr(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xE(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function bE(t){var e=t.className,r=t.isInvalid,i=t.isValid,g=t.size,C=Na(t,OM);return Lv(Lv({},C),{},{className:mu()("form-control","rbt-input",{"form-control-lg":ld(g),"form-control-sm":Nv(g),"is-invalid":r,"is-valid":i},e)})}function DM(t,e){var r=!t&&e,i=t&&!e,g,C,J;r?(g="uncontrolled",C="controlled",J="an"):(g="controlled",C="uncontrolled",J="a");var dt="You are changing ".concat(J," ").concat(g," typeahead to be ").concat(C,". ")+"Input elements should not switch from ".concat(g," to ").concat(C," (or vice versa). ")+"Decide between using a controlled or uncontrolled element for the lifetime of the component.";qo(!(r||i),dt)}var NM=[{alt:"onBlur",prop:"onBlur"},{alt:"onInputChange",prop:"onChange"},{alt:"onFocus",prop:"onFocus"},{alt:"onKeyDown",prop:"onKeyDown"}],wE=Ce().oneOf(yM);function tc(t,e){return function(r,i,g){Ce().checkPropTypes(Kr({},i,t),r,"prop",g),$s(e)&&e(r,i,g)}}function LM(t){var e=t.caseSensitive,r=t.filterBy;qo(!e||typeof r!="function","Your `filterBy` function will override the `caseSensitive` prop.")}function _E(t,e){return function(r,i,g){return r[i]!=null&&warn(!1,"The `".concat(i,"` prop is deprecated. ").concat(e)),PropTypes.checkPropTypes(_defineProperty({},i,t),r,"prop",g)}}function EE(t){var e=t.defaultInputValue,r=t.defaultSelected,i=t.multiple,g=t.selected,C=r.length?"defaultSelected":"selected";qo(!(!i&&e&&(r.length||g&&g.length)),"`defaultInputValue` will be overridden by the value from `".concat(C,"`."))}function SE(t){var e=t.defaultSelected,r=t.multiple;qo(r||e.length<=1,"You are passing multiple options to the `defaultSelected` prop of a Typeahead in single-select mode. The selections will be truncated to a single selection.")}function RM(t){var e=t.allowNew,r=t.highlightOnlyResult;qo(!(r&&e),"`highlightOnlyResult` will not work with `allowNew`.")}function CE(t){var e=t.filterBy,r=t.ignoreDiacritics;qo(r||typeof e!="function","Your `filterBy` function will override the `ignoreDiacritics` prop.")}function IM(t){var e=t.inputProps;e&&Object.prototype.toString.call(e)==="[object Object]"&&NM.forEach(function(r){var i=r.alt,g=r.prop,C=i?" Use the top-level `".concat(i,"` prop instead."):null;qo(!e[g],"The `".concat(g,"` property of `inputProps` will be ignored.").concat(C))})}function Lb(t,e,r){qo(t[e]!=null,"The prop `".concat(e,"` is required to make `").concat(r,"` ")+"accessible for users of assistive technologies such as screen readers.")}function jM(t){var e=t.allowNew,r=t.labelKey;qo(!($s(r)&&e),"`labelKey` must be a string when `allowNew={true}`.")}var Rp=Ce().oneOfType([Ce().object,Ce().string]);function TE(t){var e=t.multiple,r=t.onChange,i=t.selected;qo(e||!i||i.length<=1,"You are passing multiple options to the `selected` prop of a Typeahead in single-select mode. This may lead to unexpected behaviors or errors."),qo(!i||i&&$s(r),"You provided a `selected` prop without an `onChange` handler. If you want the typeahead to be uncontrolled, use `defaultSelected`. Otherwise, set `onChange`.")}var ME=["allowNew","delay","emptyLabel","isLoading","minLength","onInputChange","onSearch","options","promptText","searchText","useCache"];function Rv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(g){return Object.getOwnPropertyDescriptor(t,g).enumerable})),r.push.apply(r,i)}return r}function Rb(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Rv(Object(r),!0).forEach(function(i){Kr(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Rv(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}var Fl={delay:Ce().number,isLoading:Ce().bool.isRequired,minLength:Ce().number,onSearch:Ce().func.isRequired,options:Ce().arrayOf(Rp),promptText:Ce().node,searchText:Ce().node,useCache:Ce().bool};function gl(t){var e=t.allowNew,r=t.delay,i=r===void 0?200:r,g=t.emptyLabel,C=t.isLoading,J=t.minLength,dt=J===void 0?2:J,St=t.onInputChange,xt=t.onSearch,Ct=t.options,Ut=Ct===void 0?[]:Ct,Wt=t.promptText,Kt=Wt===void 0?"Type to search...":Wt,ae=t.searchText,ue=ae===void 0?"Searching...":ae,he=t.useCache,ye=he===void 0?!0:he,We=Na(t,ME),en=(0,a.useRef)({}),cn=(0,a.useRef)(null),on=(0,a.useRef)(t.defaultInputValue||""),ze=pM(),Pn=mM(t),_n=(0,a.useCallback)(function(ur){if(on.current=ur,!(!ur||dt&&ur.length<dt)){if(ye&&en.current[ur]){ze();return}xt(ur)}},[ze,dt,xt,ye]);(0,a.useEffect)(function(){return cn.current=sE()(_n,i),function(){cn.current&&cn.current.cancel()}},[i,_n]),(0,a.useEffect)(function(){!C&&Pn&&Pn.isLoading&&ye&&(en.current[on.current]=Ut)});var zn=function(){return on.current.length?C?ue:g:Kt},mr=(0,a.useCallback)(function(ur,br){St&&St(ur,br),cn.current&&cn.current(ur)},[St]),pr=en.current[on.current];return Rb(Rb({},We),{},{allowNew:$s(e)?e:e&&!C,emptyLabel:zn(),isLoading:C,minLength:dt,onInputChange:mr,options:ye&&pr?pr:Ut})}function AE(t){warn(!1,"Warning: `withAsync` is deprecated and will be removed in the next major version. Use `useAsync` instead.");var e=forwardRef(function(r,i){return React.createElement(t,_extends({},r,gl(r),{ref:i}))});return e.displayName="withAsync(".concat(getDisplayName(t),")"),e.propTypes=Fl,e}function PE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ib(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function kE(t,e,r){return e&&Ib(t.prototype,e),r&&Ib(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ui(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ec(t,e){return ec=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,g){return i.__proto__=g,i},ec(t,e)}function e0(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ec(t,e)}function Ip(t){return Ip=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ip(t)}function OE(t,e){if(e&&(Ip(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ui(t)}function ud(t){return ud=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ud(t)}var FM={activeIndex:-1,hintText:"",id:"",initialItem:null,inputNode:null,isOnlyResult:!1,onActiveItemChange:Ts,onAdd:Ts,onInitialItemChange:Ts,onMenuItemClick:Ts,setItem:Ts},jb=(0,a.createContext)(FM),DE=function(){return(0,a.useContext)(jb)};function Fb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(g){return Object.getOwnPropertyDescriptor(t,g).enumerable})),r.push.apply(r,i)}return r}function jp(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Fb(Object(r),!0).forEach(function(i){Kr(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fb(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}var Iv=["activeIndex","disabled","id","inputRef","isFocused","isMenuShown","multiple","onBlur","onChange","onClick","onFocus","onKeyDown","placeholder"],Bb=["activeIndex","hideMenu","isMenuShown","labelKey","onClear","onHide","onRemove","results","selected","text","toggleMenu"],BM=["activeIndex","id","initialItem","inputNode","onActiveItemChange","onAdd","onInitialItemChange","onMenuItemClick","setItem"],Hb=function(e){var r=e.allowNew,i=e.children,g=e.initialItem,C=e.isMenuShown,J=e.onAdd,dt=e.onInitialItemChange,St=e.onKeyDown,xt=e.onMenuToggle,Ct=e.results,Ut=e.selectHint,Wt=TM(e);(0,a.useEffect)(function(){r||Ct.length||dt()});var Kt=(0,a.useRef)(!0);(0,a.useEffect)(function(){if(Kt.current){Kt.current=!1;return}xt(C)},[C,xt]);var ae=function(We){if(St(We),!!g){var en=We.key==="Enter"&&mE(e),cn=Wt&&Wh(We,Ut);(en||cn)&&J(g)}},ue=jp(jp({},Pv(e,Bb)),{},{getInputProps:Db(jp(jp({},Pv(e,Iv)),{},{onKeyDown:ae,value:pE(e)}))}),he=jp(jp({},Pv(e,BM)),{},{hintText:Wt,isOnlyResult:mE(e)});return a.createElement(jb.Provider,{value:he},$s(i)?i(ue):i)};const HM=Hb;function jv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(g){return Object.getOwnPropertyDescriptor(t,g).enumerable})),r.push.apply(r,i)}return r}function Gh(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?jv(Object(r),!0).forEach(function(i){Kr(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jv(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function Fp(t){var e=t.defaultInputValue,r=t.defaultOpen,i=t.defaultSelected,g=t.maxResults,C=t.multiple,J=t.selected?t.selected.slice():i.slice(),dt=e;return!C&&J.length&&(dt=Ju(J[0],t.labelKey),J.length>1&&(J=J.slice(0,1))),{activeIndex:-1,activeItem:void 0,initialItem:void 0,isFocused:!1,selected:J,showMenu:r,shownResults:g,text:dt}}function zb(t,e){return Gh(Gh({},Fp(e)),{},{isFocused:t.isFocused,selected:[],text:""})}function NE(t){return Gh(Gh({},t),{},{isFocused:!0,showMenu:!0})}function n0(t,e){var r=Fp(e),i=r.activeIndex,g=r.activeItem,C=r.initialItem,J=r.shownResults;return Gh(Gh({},t),{},{activeIndex:i,activeItem:g,initialItem:C,showMenu:!1,shownResults:J})}function zM(t,e){return t.showMenu?n0(t,e):Gh(Gh({},t),{},{showMenu:!0})}var LE=["onChange"];function RE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(g){return Object.getOwnPropertyDescriptor(t,g).enumerable})),r.push.apply(r,i)}return r}function Hc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?RE(Object(r),!0).forEach(function(i){Kr(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):RE(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function UM(t){var e=IE();return function(){var i=ud(t),g;if(e){var C=ud(this).constructor;g=Reflect.construct(i,arguments,C)}else g=i.apply(this,arguments);return OE(this,g)}}function IE(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var jE={allowNew:Ce().oneOfType([Ce().bool,Ce().func]),autoFocus:Ce().bool,caseSensitive:tc(Ce().bool,LM),defaultInputValue:tc(Ce().string,EE),defaultOpen:Ce().bool,defaultSelected:tc(Ce().arrayOf(Rp),SE),filterBy:Ce().oneOfType([Ce().arrayOf(Ce().string.isRequired),Ce().func]),highlightOnlyResult:tc(Ce().bool,RM),id:tc(Ce().oneOfType([Ce().number,Ce().string]),Lb),ignoreDiacritics:tc(Ce().bool,CE),labelKey:tc(Ce().oneOfType([Ce().string,Ce().func]),jM),maxResults:Ce().number,minLength:Ce().number,multiple:Ce().bool,onBlur:Ce().func,onChange:Ce().func,onFocus:Ce().func,onInputChange:Ce().func,onKeyDown:Ce().func,onMenuToggle:Ce().func,onPaginate:Ce().func,open:Ce().bool,options:Ce().arrayOf(Rp).isRequired,paginate:Ce().bool,selected:tc(Ce().arrayOf(Rp),TE)},FE={allowNew:!1,autoFocus:!1,caseSensitive:!1,defaultInputValue:"",defaultOpen:!1,defaultSelected:[],filterBy:[],highlightOnlyResult:!1,ignoreDiacritics:!0,labelKey:lE,maxResults:100,minLength:0,multiple:!1,onBlur:Ts,onFocus:Ts,onInputChange:Ts,onKeyDown:Ts,onMenuToggle:Ts,onPaginate:Ts,paginate:!0};function Ub(t,e){var r=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value");r&&r.set&&r.set.call(t,e);var i=new Event("input",{bubbles:!0});t.dispatchEvent(i)}var Bp=function(t){e0(r,t);var e=UM(r);function r(){var i;PE(this,r);for(var g=arguments.length,C=new Array(g),J=0;J<g;J++)C[J]=arguments[J];return i=e.call.apply(e,[this].concat(C)),Kr(Ui(i),"state",Fp(i.props)),Kr(Ui(i),"inputNode",null),Kr(Ui(i),"isMenuShown",!1),Kr(Ui(i),"items",[]),Kr(Ui(i),"blur",function(){i.inputNode&&i.inputNode.blur(),i.hideMenu()}),Kr(Ui(i),"clear",function(){i.setState(zb)}),Kr(Ui(i),"focus",function(){i.inputNode&&i.inputNode.focus()}),Kr(Ui(i),"getInput",function(){return i.inputNode}),Kr(Ui(i),"inputRef",function(dt){i.inputNode=dt}),Kr(Ui(i),"setItem",function(dt,St){i.items[St]=dt}),Kr(Ui(i),"hideMenu",function(){i.setState(n0)}),Kr(Ui(i),"toggleMenu",function(){i.setState(zM)}),Kr(Ui(i),"_handleActiveIndexChange",function(dt){i.setState(function(St){return{activeIndex:dt,activeItem:dt>=0?St.activeItem:void 0}})}),Kr(Ui(i),"_handleActiveItemChange",function(dt){id()(dt,i.state.activeItem)||i.setState({activeItem:dt})}),Kr(Ui(i),"_handleBlur",function(dt){dt.persist(),i.setState({isFocused:!1},function(){return i.props.onBlur(dt)})}),Kr(Ui(i),"_handleChange",function(dt){i.props.onChange&&i.props.onChange(dt)}),Kr(Ui(i),"_handleClear",function(){i.inputNode&&Ub(i.inputNode,""),i.setState(zb,function(){i.props.multiple&&i._handleChange([])})}),Kr(Ui(i),"_handleClick",function(dt){var St;dt.persist();var xt=(St=i.props.inputProps)===null||St===void 0?void 0:St.onClick;i.setState(NE,function(){return $s(xt)&&xt(dt)})}),Kr(Ui(i),"_handleFocus",function(dt){dt.persist(),i.setState(NE,function(){return i.props.onFocus(dt)})}),Kr(Ui(i),"_handleInitialItemChange",function(dt){id()(dt,i.state.initialItem)||i.setState({initialItem:dt})}),Kr(Ui(i),"_handleInputChange",function(dt){dt.persist();var St=dt.currentTarget.value,xt=i.props,Ct=xt.multiple,Ut=xt.onInputChange,Wt=i.state.selected.length&&!Ct;i.setState(function(Kt,ae){var ue=Fp(ae),he=ue.activeIndex,ye=ue.activeItem,We=ue.shownResults;return{activeIndex:he,activeItem:ye,selected:Wt?[]:Kt.selected,showMenu:!0,shownResults:We,text:St}},function(){Ut(St,dt),Wt&&i._handleChange([])})}),Kr(Ui(i),"_handleKeyDown",function(dt){var St=i.state.activeItem;if(!i.isMenuShown){(dt.key==="ArrowUp"||dt.key==="ArrowDown")&&i.setState({showMenu:!0}),i.props.onKeyDown(dt);return}switch(dt.key){case"ArrowUp":case"ArrowDown":dt.preventDefault(),i._handleActiveIndexChange(t0(i.state.activeIndex,dt.key,i.items));break;case"Enter":dt.preventDefault(),St&&i._handleMenuItemSelect(St,dt);break;case"Escape":case"Tab":i.hideMenu();break;default:break}i.props.onKeyDown(dt)}),Kr(Ui(i),"_handleMenuItemSelect",function(dt,St){od(dt,"paginationOption")?i._handlePaginate(St):i._handleSelectionAdd(dt)}),Kr(Ui(i),"_handlePaginate",function(dt){dt.persist(),i.setState(function(St,xt){return{shownResults:St.shownResults+xt.maxResults}},function(){return i.props.onPaginate(dt,i.state.shownResults)})}),Kr(Ui(i),"_handleSelectionAdd",function(dt){var St=i.props,xt=St.multiple,Ct=St.labelKey,Ut,Wt=dt,Kt;!Qu(Wt)&&Wt.customOption&&(Wt=Hc(Hc({},Wt),{},{id:vM("new-id-")})),xt?(Ut=i.state.selected.concat(Wt),Kt=""):(Ut=[Wt],Kt=Ju(Wt,Ct)),i.setState(function(ae,ue){return Hc(Hc({},n0(ae,ue)),{},{initialItem:Wt,selected:Ut,text:Kt})},function(){return i._handleChange(Ut)})}),Kr(Ui(i),"_handleSelectionRemove",function(dt){var St=i.state.selected.filter(function(xt){return!id()(xt,dt)});i.focus(),i.setState(function(xt,Ct){return Hc(Hc({},n0(xt,Ct)),{},{selected:St})},function(){return i._handleChange(St)})}),i}return kE(r,[{key:"componentDidMount",value:function(){this.props.autoFocus&&this.focus()}},{key:"componentDidUpdate",value:function(g,C){var J=this.props,dt=J.labelKey,St=J.multiple,xt=J.selected;DM(xt,g.selected),xt&&!id()(xt,C.selected)&&(this.setState({selected:xt}),St||this.setState({text:xt.length?Ju(xt[0],dt):""}))}},{key:"render",value:function(){var g=this.props,C=g.onChange,J=Na(g,LE),dt=Hc(Hc({},J),this.state),St=dt.filterBy,xt=dt.labelKey,Ct=dt.options,Ut=dt.paginate,Wt=dt.shownResults,Kt=dt.text;this.isMenuShown=vE(dt),this.items=[];var ae=[];if(this.isMenuShown){var ue=$s(St)?St:Uh;ae=Ct.filter(function(We){return ue(We,dt)});var he=Ut&&ae.length>Wt;if(ae=gE(ae,Wt),wM(ae,dt)&&ae.push(Kr({customOption:!0},Lp(xt),Kt)),he){var ye;ae.push((ye={},Kr(ye,Lp(xt),""),Kr(ye,"paginationOption",!0),ye))}}return a.createElement(HM,$o({},dt,{hideMenu:this.hideMenu,inputNode:this.inputNode,inputRef:this.inputRef,isMenuShown:this.isMenuShown,onActiveItemChange:this._handleActiveItemChange,onAdd:this._handleSelectionAdd,onBlur:this._handleBlur,onChange:this._handleInputChange,onClear:this._handleClear,onClick:this._handleClick,onFocus:this._handleFocus,onHide:this.hideMenu,onInitialItemChange:this._handleInitialItemChange,onKeyDown:this._handleKeyDown,onMenuItemClick:this._handleMenuItemSelect,onRemove:this._handleSelectionRemove,results:ae,setItem:this.setItem,toggleMenu:this.toggleMenu}))}}]),r}(a.Component);Kr(Bp,"propTypes",jE),Kr(Bp,"defaultProps",FE);const BE=Bp;var HE=["className","label","onClick","onKeyDown","size"],WM={label:Ce().string,onClick:Ce().func,onKeyDown:Ce().func,size:wE},zE=function(e){var r=e.className,i=e.label,g=i===void 0?"Clear":i,C=e.onClick,J=e.onKeyDown,dt=e.size,St=Na(e,HE);return a.createElement("button",$o({},St,{"aria-label":g,className:mu()("close","btn-close","rbt-close",{"rbt-close-lg":ld(dt),"rbt-close-sm":Nv(dt)},r),onClick:function(Ct){Ct.stopPropagation(),C&&C(Ct)},onKeyDown:function(Ct){Ct.key==="Backspace"&&Ct.preventDefault(),J&&J(Ct)},type:"button"}),a.createElement("span",{"aria-hidden":"true",className:"rbt-close-content"},"\xD7"),a.createElement("span",{className:"sr-only visually-hidden"},g))};zE.propTypes=WM;const Wb=zE;var UE={label:Ce().string},WE=function(e){var r=e.label,i=r===void 0?"Loading...":r;return a.createElement("div",{className:"rbt-loader spinner-border spinner-border-sm",role:"status"},a.createElement("span",{className:"sr-only visually-hidden"},i))};WE.propTypes=UE;const Fv=WE;function GM(t){if(Array.isArray(t))return t}function VM(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var i=[],g=!0,C=!1,J,dt;try{for(r=r.call(t);!(g=(J=r.next()).done)&&(i.push(J.value),!(e&&i.length===e));g=!0);}catch(St){C=!0,dt=St}finally{try{!g&&r.return!=null&&r.return()}finally{if(C)throw dt}}return i}}function GE(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function Hp(t,e){if(t){if(typeof t=="string")return GE(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return GE(t,e)}}function zp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
336
336
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gb(t,e){return GM(t)||VM(t,e)||Hp(t,e)||zp()}function yl(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function cd(t){var e=yl(t).Element;return t instanceof e||t instanceof Element}function Bl(t){var e=yl(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Vb(t){if(typeof ShadowRoot=="undefined")return!1;var e=yl(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var hd=Math.max,r0=Math.min,Up=Math.round;function Bv(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Yb(){return!/^((?!chrome|android).)*safari/i.test(Bv())}function Wp(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var i=t.getBoundingClientRect(),g=1,C=1;e&&Bl(t)&&(g=t.offsetWidth>0&&Up(i.width)/t.offsetWidth||1,C=t.offsetHeight>0&&Up(i.height)/t.offsetHeight||1);var J=cd(t)?yl(t):window,dt=J.visualViewport,St=!Yb()&&r,xt=(i.left+(St&&dt?dt.offsetLeft:0))/g,Ct=(i.top+(St&&dt?dt.offsetTop:0))/C,Ut=i.width/g,Wt=i.height/C;return{width:Ut,height:Wt,top:Ct,right:xt+Ut,bottom:Ct+Wt,left:xt,x:xt,y:Ct}}function Xb(t){var e=yl(t),r=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:r,scrollTop:i}}function YM(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function VE(t){return t===yl(t)||!Bl(t)?Xb(t):YM(t)}function nc(t){return t?(t.nodeName||"").toLowerCase():null}function Vh(t){return((cd(t)?t.ownerDocument:t.document)||window.document).documentElement}function $b(t){return Wp(Vh(t)).left+Xb(t).scrollLeft}function zc(t){return yl(t).getComputedStyle(t)}function qb(t){var e=zc(t),r=e.overflow,i=e.overflowX,g=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+g+i)}function XM(t){var e=t.getBoundingClientRect(),r=Up(e.width)/t.offsetWidth||1,i=Up(e.height)/t.offsetHeight||1;return r!==1||i!==1}function $M(t,e,r){r===void 0&&(r=!1);var i=Bl(e),g=Bl(e)&&XM(e),C=Vh(e),J=Wp(t,g,r),dt={scrollLeft:0,scrollTop:0},St={x:0,y:0};return(i||!i&&!r)&&((nc(e)!=="body"||qb(C))&&(dt=VE(e)),Bl(e)?(St=Wp(e,!0),St.x+=e.clientLeft,St.y+=e.clientTop):C&&(St.x=$b(C))),{x:J.left+dt.scrollLeft-St.x,y:J.top+dt.scrollTop-St.y,width:J.width,height:J.height}}function Hv(t){var e=Wp(t),r=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:i}}function zv(t){return nc(t)==="html"?t:t.assignedSlot||t.parentNode||(Vb(t)?t.host:null)||Vh(t)}function YE(t){return["html","body","#document"].indexOf(nc(t))>=0?t.ownerDocument.body:Bl(t)&&qb(t)?t:YE(zv(t))}function fd(t,e){var r;e===void 0&&(e=[]);var i=YE(t),g=i===((r=t.ownerDocument)==null?void 0:r.body),C=yl(i),J=g?[C].concat(C.visualViewport||[],qb(i)?i:[]):i,dt=e.concat(J);return g?dt:dt.concat(fd(zv(J)))}function Uv(t){return["table","td","th"].indexOf(nc(t))>=0}function Gp(t){return!Bl(t)||zc(t).position==="fixed"?null:t.offsetParent}function i0(t){var e=/firefox/i.test(Bv()),r=/Trident/i.test(Bv());if(r&&Bl(t)){var i=zc(t);if(i.position==="fixed")return null}var g=zv(t);for(Vb(g)&&(g=g.host);Bl(g)&&["html","body"].indexOf(nc(g))<0;){var C=zc(g);if(C.transform!=="none"||C.perspective!=="none"||C.contain==="paint"||["transform","perspective"].indexOf(C.willChange)!==-1||e&&C.willChange==="filter"||e&&C.filter&&C.filter!=="none")return g;g=g.parentNode}return null}function Vp(t){for(var e=yl(t),r=Gp(t);r&&Uv(r)&&zc(r).position==="static";)r=Gp(r);return r&&(nc(r)==="html"||nc(r)==="body"&&zc(r).position==="static")?e:r||i0(t)||e}var Ms="top",as="bottom",ss="right",qa="left",Kb="auto",o0=[Ms,as,ss,qa],Yp="start",a0="end",qM="clippingParents",Zb="viewport",s0="popper",KM="reference",XE=o0.reduce(function(t,e){return t.concat([e+"-"+Yp,e+"-"+a0])},[]),Qb=[].concat(o0,[Kb]).reduce(function(t,e){return t.concat([e,e+"-"+Yp,e+"-"+a0])},[]),Jb="beforeRead",ZM="read",Xp="afterRead",$p="beforeMain",$E="main",QM="afterMain",qE="beforeWrite",tw="write",JM="afterWrite",tA=[Jb,ZM,Xp,$p,$E,QM,qE,tw,JM];function KE(t){var e=new Map,r=new Set,i=[];t.forEach(function(C){e.set(C.name,C)});function g(C){r.add(C.name);var J=[].concat(C.requires||[],C.requiresIfExists||[]);J.forEach(function(dt){if(!r.has(dt)){var St=e.get(dt);St&&g(St)}}),i.push(C)}return t.forEach(function(C){r.has(C.name)||g(C)}),i}function eA(t){var e=KE(t);return tA.reduce(function(r,i){return r.concat(e.filter(function(g){return g.phase===i}))},[])}function Zi(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function nA(t){var e=t.reduce(function(r,i){var g=r[i.name];return r[i.name]=g?Object.assign({},g,i,{options:Object.assign({},g.options,i.options),data:Object.assign({},g.data,i.data)}):i,r},{});return Object.keys(e).map(function(r){return e[r]})}var dd={placement:"bottom",modifiers:[],strategy:"absolute"};function qs(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function qp(t){t===void 0&&(t={});var e=t,r=e.defaultModifiers,i=r===void 0?[]:r,g=e.defaultOptions,C=g===void 0?dd:g;return function(dt,St,xt){xt===void 0&&(xt=C);var Ct={placement:"bottom",orderedModifiers:[],options:Object.assign({},dd,C),modifiersData:{},elements:{reference:dt,popper:St},attributes:{},styles:{}},Ut=[],Wt=!1,Kt={state:Ct,setOptions:function(ye){var We=typeof ye=="function"?ye(Ct.options):ye;ue(),Ct.options=Object.assign({},C,Ct.options,We),Ct.scrollParents={reference:cd(dt)?fd(dt):dt.contextElement?fd(dt.contextElement):[],popper:fd(St)};var en=eA(nA([].concat(i,Ct.options.modifiers)));return Ct.orderedModifiers=en.filter(function(cn){return cn.enabled}),ae(),Kt.update()},forceUpdate:function(){if(!Wt){var ye=Ct.elements,We=ye.reference,en=ye.popper;if(qs(We,en)){Ct.rects={reference:$M(We,Vp(en),Ct.options.strategy==="fixed"),popper:Hv(en)},Ct.reset=!1,Ct.placement=Ct.options.placement,Ct.orderedModifiers.forEach(function(mr){return Ct.modifiersData[mr.name]=Object.assign({},mr.data)});for(var cn=0;cn<Ct.orderedModifiers.length;cn++){if(Ct.reset===!0){Ct.reset=!1,cn=-1;continue}var on=Ct.orderedModifiers[cn],ze=on.fn,Pn=on.options,_n=Pn===void 0?{}:Pn,zn=on.name;typeof ze=="function"&&(Ct=ze({state:Ct,options:_n,name:zn,instance:Kt})||Ct)}}}},update:Zi(function(){return new Promise(function(he){Kt.forceUpdate(),he(Ct)})}),destroy:function(){ue(),Wt=!0}};if(!qs(dt,St))return Kt;Kt.setOptions(xt).then(function(he){!Wt&&xt.onFirstUpdate&&xt.onFirstUpdate(he)});function ae(){Ct.orderedModifiers.forEach(function(he){var ye=he.name,We=he.options,en=We===void 0?{}:We,cn=he.effect;if(typeof cn=="function"){var on=cn({state:Ct,name:ye,instance:Kt,options:en}),ze=function(){};Ut.push(on||ze)}})}function ue(){Ut.forEach(function(he){return he()}),Ut=[]}return Kt}}var As=null,Wv={passive:!0};function rA(t){var e=t.state,r=t.instance,i=t.options,g=i.scroll,C=g===void 0?!0:g,J=i.resize,dt=J===void 0?!0:J,St=yl(e.elements.popper),xt=[].concat(e.scrollParents.reference,e.scrollParents.popper);return C&&xt.forEach(function(Ct){Ct.addEventListener("scroll",r.update,Wv)}),dt&&St.addEventListener("resize",r.update,Wv),function(){C&&xt.forEach(function(Ct){Ct.removeEventListener("scroll",r.update,Wv)}),dt&&St.removeEventListener("resize",r.update,Wv)}}const Gv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:rA,data:{}};function rc(t){return t.split("-")[0]}function Uc(t){return t.split("-")[1]}function ew(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function ic(t){var e=t.reference,r=t.element,i=t.placement,g=i?rc(i):null,C=i?Uc(i):null,J=e.x+e.width/2-r.width/2,dt=e.y+e.height/2-r.height/2,St;switch(g){case Ms:St={x:J,y:e.y-r.height};break;case as:St={x:J,y:e.y+e.height};break;case ss:St={x:e.x+e.width,y:dt};break;case qa:St={x:e.x-r.width,y:dt};break;default:St={x:e.x,y:e.y}}var xt=g?ew(g):null;if(xt!=null){var Ct=xt==="y"?"height":"width";switch(C){case Yp:St[xt]=St[xt]-(e[Ct]/2-r[Ct]/2);break;case a0:St[xt]=St[xt]+(e[Ct]/2-r[Ct]/2);break;default:}}return St}function Vv(t){var e=t.state,r=t.name;e.modifiersData[r]=ic({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const nw={name:"popperOffsets",enabled:!0,phase:"read",fn:Vv,data:{}};var rw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function l0(t,e){var r=t.x,i=t.y,g=e.devicePixelRatio||1;return{x:Up(r*g)/g||0,y:Up(i*g)/g||0}}function ZE(t){var e,r=t.popper,i=t.popperRect,g=t.placement,C=t.variation,J=t.offsets,dt=t.position,St=t.gpuAcceleration,xt=t.adaptive,Ct=t.roundOffsets,Ut=t.isFixed,Wt=J.x,Kt=Wt===void 0?0:Wt,ae=J.y,ue=ae===void 0?0:ae,he=typeof Ct=="function"?Ct({x:Kt,y:ue}):{x:Kt,y:ue};Kt=he.x,ue=he.y;var ye=J.hasOwnProperty("x"),We=J.hasOwnProperty("y"),en=qa,cn=Ms,on=window;if(xt){var ze=Vp(r),Pn="clientHeight",_n="clientWidth";if(ze===yl(r)&&(ze=Vh(r),zc(ze).position!=="static"&&dt==="absolute"&&(Pn="scrollHeight",_n="scrollWidth")),ze=ze,g===Ms||(g===qa||g===ss)&&C===a0){cn=as;var zn=Ut&&ze===on&&on.visualViewport?on.visualViewport.height:ze[Pn];ue-=zn-i.height,ue*=St?1:-1}if(g===qa||(g===Ms||g===as)&&C===a0){en=ss;var mr=Ut&&ze===on&&on.visualViewport?on.visualViewport.width:ze[_n];Kt-=mr-i.width,Kt*=St?1:-1}}var pr=Object.assign({position:dt},xt&&rw),ur=Ct===!0?l0({x:Kt,y:ue},yl(r)):{x:Kt,y:ue};if(Kt=ur.x,ue=ur.y,St){var br;return Object.assign({},pr,(br={},br[cn]=We?"0":"",br[en]=ye?"0":"",br.transform=(on.devicePixelRatio||1)<=1?"translate("+Kt+"px, "+ue+"px)":"translate3d("+Kt+"px, "+ue+"px, 0)",br))}return Object.assign({},pr,(e={},e[cn]=We?ue+"px":"",e[en]=ye?Kt+"px":"",e.transform="",e))}function iA(t){var e=t.state,r=t.options,i=r.gpuAcceleration,g=i===void 0?!0:i,C=r.adaptive,J=C===void 0?!0:C,dt=r.roundOffsets,St=dt===void 0?!0:dt,xt={placement:rc(e.placement),variation:Uc(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:g,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,ZE(Object.assign({},xt,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:J,roundOffsets:St})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,ZE(Object.assign({},xt,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:St})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const iw={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:iA,data:{}};function oA(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var i=e.styles[r]||{},g=e.attributes[r]||{},C=e.elements[r];!Bl(C)||!nc(C)||(Object.assign(C.style,i),Object.keys(g).forEach(function(J){var dt=g[J];dt===!1?C.removeAttribute(J):C.setAttribute(J,dt===!0?"":dt)}))})}function aA(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(i){var g=e.elements[i],C=e.attributes[i]||{},J=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:r[i]),dt=J.reduce(function(St,xt){return St[xt]="",St},{});!Bl(g)||!nc(g)||(Object.assign(g.style,dt),Object.keys(C).forEach(function(St){g.removeAttribute(St)}))})}}const sA={name:"applyStyles",enabled:!0,phase:"write",fn:oA,effect:aA,requires:["computeStyles"]};function lA(t,e,r){var i=rc(t),g=[qa,Ms].indexOf(i)>=0?-1:1,C=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,J=C[0],dt=C[1];return J=J||0,dt=(dt||0)*g,[qa,ss].indexOf(i)>=0?{x:dt,y:J}:{x:J,y:dt}}function n(t){var e=t.state,r=t.options,i=t.name,g=r.offset,C=g===void 0?[0,0]:g,J=Qb.reduce(function(Ct,Ut){return Ct[Ut]=lA(Ut,e.rects,C),Ct},{}),dt=J[e.placement],St=dt.x,xt=dt.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=St,e.modifiersData.popperOffsets.y+=xt),e.modifiersData[i]=J}const o={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:n};var p={left:"right",right:"left",bottom:"top",top:"bottom"};function T(t){return t.replace(/left|right|bottom|top/g,function(e){return p[e]})}var q={start:"end",end:"start"};function ut(t){return t.replace(/start|end/g,function(e){return q[e]})}function mt(t,e){var r=yl(t),i=Vh(t),g=r.visualViewport,C=i.clientWidth,J=i.clientHeight,dt=0,St=0;if(g){C=g.width,J=g.height;var xt=Yb();(xt||!xt&&e==="fixed")&&(dt=g.offsetLeft,St=g.offsetTop)}return{width:C,height:J,x:dt+$b(t),y:St}}function gt(t){var e,r=Vh(t),i=Xb(t),g=(e=t.ownerDocument)==null?void 0:e.body,C=hd(r.scrollWidth,r.clientWidth,g?g.scrollWidth:0,g?g.clientWidth:0),J=hd(r.scrollHeight,r.clientHeight,g?g.scrollHeight:0,g?g.clientHeight:0),dt=-i.scrollLeft+$b(t),St=-i.scrollTop;return zc(g||r).direction==="rtl"&&(dt+=hd(r.clientWidth,g?g.clientWidth:0)-C),{width:C,height:J,x:dt,y:St}}function _t(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&Vb(r)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function At(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Ot(t,e){var r=Wp(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function Ft(t,e,r){return e===Zb?At(mt(t,r)):cd(e)?Ot(e,r):At(gt(Vh(t)))}function Nt(t){var e=fd(zv(t)),r=["absolute","fixed"].indexOf(zc(t).position)>=0,i=r&&Bl(t)?Vp(t):t;return cd(i)?e.filter(function(g){return cd(g)&&_t(g,i)&&nc(g)!=="body"}):[]}function $t(t,e,r,i){var g=e==="clippingParents"?Nt(t):[].concat(e),C=[].concat(g,[r]),J=C[0],dt=C.reduce(function(St,xt){var Ct=Ft(t,xt,i);return St.top=hd(Ct.top,St.top),St.right=r0(Ct.right,St.right),St.bottom=r0(Ct.bottom,St.bottom),St.left=hd(Ct.left,St.left),St},Ft(t,J,i));return dt.width=dt.right-dt.left,dt.height=dt.bottom-dt.top,dt.x=dt.left,dt.y=dt.top,dt}function oe(){return{top:0,right:0,bottom:0,left:0}}function re(t){return Object.assign({},oe(),t)}function le(t,e){return e.reduce(function(r,i){return r[i]=t,r},{})}function fe(t,e){e===void 0&&(e={});var r=e,i=r.placement,g=i===void 0?t.placement:i,C=r.strategy,J=C===void 0?t.strategy:C,dt=r.boundary,St=dt===void 0?qM:dt,xt=r.rootBoundary,Ct=xt===void 0?Zb:xt,Ut=r.elementContext,Wt=Ut===void 0?s0:Ut,Kt=r.altBoundary,ae=Kt===void 0?!1:Kt,ue=r.padding,he=ue===void 0?0:ue,ye=re(typeof he!="number"?he:le(he,o0)),We=Wt===s0?KM:s0,en=t.rects.popper,cn=t.elements[ae?We:Wt],on=$t(cd(cn)?cn:cn.contextElement||Vh(t.elements.popper),St,Ct,J),ze=Wp(t.elements.reference),Pn=ic({reference:ze,element:en,strategy:"absolute",placement:g}),_n=At(Object.assign({},en,Pn)),zn=Wt===s0?_n:ze,mr={top:on.top-zn.top+ye.top,bottom:zn.bottom-on.bottom+ye.bottom,left:on.left-zn.left+ye.left,right:zn.right-on.right+ye.right},pr=t.modifiersData.offset;if(Wt===s0&&pr){var ur=pr[g];Object.keys(mr).forEach(function(br){var Hr=[ss,as].indexOf(br)>=0?1:-1,vi=[Ms,as].indexOf(br)>=0?"y":"x";mr[br]+=ur[vi]*Hr})}return mr}function ke(t,e){e===void 0&&(e={});var r=e,i=r.placement,g=r.boundary,C=r.rootBoundary,J=r.padding,dt=r.flipVariations,St=r.allowedAutoPlacements,xt=St===void 0?Qb:St,Ct=Uc(i),Ut=Ct?dt?XE:XE.filter(function(ae){return Uc(ae)===Ct}):o0,Wt=Ut.filter(function(ae){return xt.indexOf(ae)>=0});Wt.length===0&&(Wt=Ut);var Kt=Wt.reduce(function(ae,ue){return ae[ue]=fe(t,{placement:ue,boundary:g,rootBoundary:C,padding:J})[rc(ue)],ae},{});return Object.keys(Kt).sort(function(ae,ue){return Kt[ae]-Kt[ue]})}function be(t){if(rc(t)===Kb)return[];var e=T(t);return[ut(t),e,ut(e)]}function Ae(t){var e=t.state,r=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var g=r.mainAxis,C=g===void 0?!0:g,J=r.altAxis,dt=J===void 0?!0:J,St=r.fallbackPlacements,xt=r.padding,Ct=r.boundary,Ut=r.rootBoundary,Wt=r.altBoundary,Kt=r.flipVariations,ae=Kt===void 0?!0:Kt,ue=r.allowedAutoPlacements,he=e.options.placement,ye=rc(he),We=ye===he,en=St||(We||!ae?[T(he)]:be(he)),cn=[he].concat(en).reduce(function(vo,va){return vo.concat(rc(va)===Kb?ke(e,{placement:va,boundary:Ct,rootBoundary:Ut,padding:xt,flipVariations:ae,allowedAutoPlacements:ue}):va)},[]),on=e.rects.reference,ze=e.rects.popper,Pn=new Map,_n=!0,zn=cn[0],mr=0;mr<cn.length;mr++){var pr=cn[mr],ur=rc(pr),br=Uc(pr)===Yp,Hr=[Ms,as].indexOf(ur)>=0,vi=Hr?"width":"height",xi=fe(e,{placement:pr,boundary:Ct,rootBoundary:Ut,altBoundary:Wt,padding:xt}),gr=Hr?br?ss:qa:br?as:Ms;on[vi]>ze[vi]&&(gr=T(gr));var Ra=T(gr),Ao=[];if(C&&Ao.push(xi[ur]<=0),dt&&Ao.push(xi[gr]<=0,xi[Ra]<=0),Ao.every(function(vo){return vo})){zn=pr,_n=!1;break}Pn.set(pr,Ao)}if(_n)for(var Za=ae?3:1,la=function(va){var xo=cn.find(function(Ds){var Ns=Pn.get(Ds);if(Ns)return Ns.slice(0,va).every(function(Qa){return Qa})});if(xo)return zn=xo,"break"},Ia=Za;Ia>0;Ia--){var Ko=la(Ia);if(Ko==="break")break}e.placement!==zn&&(e.modifiersData[i]._skip=!0,e.placement=zn,e.reset=!0)}}const ln={name:"flip",enabled:!0,phase:"main",fn:Ae,requiresIfExists:["offset"],data:{_skip:!1}};function vn(t){return t==="x"?"y":"x"}function fn(t,e,r){return hd(t,r0(e,r))}function Yn(t,e,r){var i=fn(t,e,r);return i>r?r:i}function Fn(t){var e=t.state,r=t.options,i=t.name,g=r.mainAxis,C=g===void 0?!0:g,J=r.altAxis,dt=J===void 0?!1:J,St=r.boundary,xt=r.rootBoundary,Ct=r.altBoundary,Ut=r.padding,Wt=r.tether,Kt=Wt===void 0?!0:Wt,ae=r.tetherOffset,ue=ae===void 0?0:ae,he=fe(e,{boundary:St,rootBoundary:xt,padding:Ut,altBoundary:Ct}),ye=rc(e.placement),We=Uc(e.placement),en=!We,cn=ew(ye),on=vn(cn),ze=e.modifiersData.popperOffsets,Pn=e.rects.reference,_n=e.rects.popper,zn=typeof ue=="function"?ue(Object.assign({},e.rects,{placement:e.placement})):ue,mr=typeof zn=="number"?{mainAxis:zn,altAxis:zn}:Object.assign({mainAxis:0,altAxis:0},zn),pr=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,ur={x:0,y:0};if(ze){if(C){var br,Hr=cn==="y"?Ms:qa,vi=cn==="y"?as:ss,xi=cn==="y"?"height":"width",gr=ze[cn],Ra=gr+he[Hr],Ao=gr-he[vi],Za=Kt?-_n[xi]/2:0,la=We===Yp?Pn[xi]:_n[xi],Ia=We===Yp?-_n[xi]:-Pn[xi],Ko=e.elements.arrow,vo=Kt&&Ko?Hv(Ko):{width:0,height:0},va=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:oe(),xo=va[Hr],Ds=va[vi],Ns=fn(0,Pn[xi],vo[xi]),Qa=en?Pn[xi]/2-Za-Ns-xo-mr.mainAxis:la-Ns-xo-mr.mainAxis,xl=en?-Pn[xi]/2+Za+Ns+Ds+mr.mainAxis:Ia+Ns+Ds+mr.mainAxis,No=e.elements.arrow&&Vp(e.elements.arrow),bl=No?cn==="y"?No.clientTop||0:No.clientLeft||0:0,Vc=(br=pr==null?void 0:pr[cn])!=null?br:0,ac=gr+Qa-Vc-bl,Ul=gr+xl-Vc,Kh=fn(Kt?r0(Ra,ac):Ra,gr,Kt?hd(Ao,Ul):Ao);ze[cn]=Kh,ur[cn]=Kh-gr}if(dt){var Qp,Jp=cn==="x"?Ms:qa,r1=cn==="x"?as:ss,yu=ze[on],Wl=on==="y"?"height":"width",p0=yu+he[Jp],sc=yu-he[r1],Qs=[Ms,qa].indexOf(ye)!==-1,tm=(Qp=pr==null?void 0:pr[on])!=null?Qp:0,bw=Qs?p0:yu-Pn[Wl]-_n[Wl]-tm+mr.altAxis,m0=Qs?yu+Pn[Wl]+_n[Wl]-tm-mr.altAxis:sc,kS=Kt&&Qs?Yn(bw,yu,m0):fn(Kt?bw:p0,yu,Kt?m0:sc);ze[on]=kS,ur[on]=kS-yu}e.modifiersData[i]=ur}}const Wn={name:"preventOverflow",enabled:!0,phase:"main",fn:Fn,requiresIfExists:["offset"]};var On=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,re(typeof e!="number"?e:le(e,o0))};function Ne(t){var e,r=t.state,i=t.name,g=t.options,C=r.elements.arrow,J=r.modifiersData.popperOffsets,dt=rc(r.placement),St=ew(dt),xt=[qa,ss].indexOf(dt)>=0,Ct=xt?"height":"width";if(!(!C||!J)){var Ut=On(g.padding,r),Wt=Hv(C),Kt=St==="y"?Ms:qa,ae=St==="y"?as:ss,ue=r.rects.reference[Ct]+r.rects.reference[St]-J[St]-r.rects.popper[Ct],he=J[St]-r.rects.reference[St],ye=Vp(C),We=ye?St==="y"?ye.clientHeight||0:ye.clientWidth||0:0,en=ue/2-he/2,cn=Ut[Kt],on=We-Wt[Ct]-Ut[ae],ze=We/2-Wt[Ct]/2+en,Pn=fn(cn,ze,on),_n=St;r.modifiersData[i]=(e={},e[_n]=Pn,e.centerOffset=Pn-ze,e)}}function bn(t){var e=t.state,r=t.options,i=r.element,g=i===void 0?"[data-popper-arrow]":i;g!=null&&(typeof g=="string"&&(g=e.elements.popper.querySelector(g),!g)||_t(e.elements.popper,g)&&(e.elements.arrow=g))}const or={name:"arrow",enabled:!0,phase:"main",fn:Ne,effect:bn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function gn(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function Jn(t){return[Ms,ss,as,qa].some(function(e){return t[e]>=0})}function Nr(t){var e=t.state,r=t.name,i=e.rects.reference,g=e.rects.popper,C=e.modifiersData.preventOverflow,J=fe(e,{elementContext:"reference"}),dt=fe(e,{altBoundary:!0}),St=gn(J,i),xt=gn(dt,g,C),Ct=Jn(St),Ut=Jn(xt);e.modifiersData[r]={referenceClippingOffsets:St,popperEscapeOffsets:xt,isReferenceHidden:Ct,hasPopperEscaped:Ut},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":Ct,"data-popper-escaped":Ut})}const Pr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Nr};var Br=[Gv,nw,iw,sA,o,ln,Wn,or,Pr],hi=qp({defaultModifiers:Br}),fi=Un(5439),ho=Un.n(fi),eo=function(e){return Array.isArray(e)?e[0]:e},Ii=function(e){if(typeof e=="function"){for(var r=arguments.length,i=new Array(r>1?r-1:0),g=1;g<r;g++)i[g-1]=arguments[g];return e.apply(void 0,i)}},ya=function(e,r){if(typeof e=="function")return Ii(e,r);e!=null&&(e.current=r)},vl=function(e){return e.reduce(function(r,i){var g=i[0],C=i[1];return r[g]=C,r},{})},Hl=typeof window!="undefined"&&window.document&&window.document.createElement?a.useLayoutEffect:a.useEffect,gu=[],Mr=function(e,r,i){i===void 0&&(i={});var g=a.useRef(null),C={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||gu},J=a.useState({styles:{popper:{position:C.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),dt=J[0],St=J[1],xt=a.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(Kt){var ae=Kt.state,ue=Object.keys(ae.elements);H.flushSync(function(){St({styles:vl(ue.map(function(he){return[he,ae.styles[he]||{}]})),attributes:vl(ue.map(function(he){return[he,ae.attributes[he]]}))})})},requires:["computeStyles"]}},[]),Ct=a.useMemo(function(){var Wt={onFirstUpdate:C.onFirstUpdate,placement:C.placement,strategy:C.strategy,modifiers:[].concat(C.modifiers,[xt,{name:"applyStyles",enabled:!1}])};return ho()(g.current,Wt)?g.current||Wt:(g.current=Wt,Wt)},[C.onFirstUpdate,C.placement,C.strategy,C.modifiers,xt]),Ut=a.useRef();return Hl(function(){Ut.current&&Ut.current.setOptions(Ct)},[Ct]),Hl(function(){if(!(e==null||r==null)){var Wt=i.createPopper||hi,Kt=Wt(e,r,Ct);return Ut.current=Kt,function(){Kt.destroy(),Ut.current=null}}},[e,r,i.createPopper]),{state:Ut.current?Ut.current.state:null,styles:dt.styles,attributes:dt.attributes,update:Ut.current?Ut.current.update:null,forceUpdate:Ut.current?Ut.current.forceUpdate:null}};function mi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(g){return Object.getOwnPropertyDescriptor(t,g).enumerable})),r.push.apply(r,i)}return r}function Ei(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?mi(Object(r),!0).forEach(function(i){Kr(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):mi(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}var fr={enabled:!0,fn:function(e){e.state.styles.popper.width="".concat(e.state.rects.reference.width,"px")},name:"setPopperWidth",phase:"write"};function Ka(t){var e=[{enabled:!!t.flip,name:"flip"}];return t.align!=="right"&&t.align!=="left"&&e.push(fr),e}function ji(t){var e=t.align==="right"?"end":"start",r=t.dropup?"top":"bottom";return"".concat(r,"-").concat(e)}function ls(t,e){var r=(0,a.useState)(null),i=Gb(r,2),g=i[0],C=i[1],J=Mr(t,g,{modifiers:Ka(e),placement:ji(e),strategy:e.positionFixed?"fixed":"absolute"}),dt=J.attributes,St=J.styles,xt=J.forceUpdate,Ct=t==null?void 0:t.offsetHeight;return(0,a.useEffect)(function(){xt&&xt()},[Ct]),Ei(Ei({},dt.popper),{},{innerRef:C,style:St.popper})}const Ps=ls;var Wc=["referenceElement","isMenuShown"],ks=typeof Element=="undefined"?Ts:Element,D3={align:Ce().oneOf(gM),children:Ce().func.isRequired,dropup:Ce().bool,flip:Ce().bool,isMenuShown:Ce().bool,positionFixed:Ce().bool,referenceElement:Ce().instanceOf(ks)},AP=function(e){var r=e.referenceElement,i=e.isMenuShown,g=Na(e,Wc),C=Ps(r,g);return i?g.children(C):null};AP.propTypes=D3;const N3=AP;function QE(t,e){if(t.contains)return t.contains(e);if(t.compareDocumentPosition)return t===e||!!(t.compareDocumentPosition(e)&16)}const uA=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var cA=!1,hA=!1;try{var fA={get passive(){return cA=!0},get once(){return hA=cA=!0}};uA&&(window.addEventListener("test",fA,fA),window.removeEventListener("test",fA,!0))}catch(t){}function L3(t,e,r,i){if(i&&typeof i!="boolean"&&!hA){var g=i.once,C=i.capture,J=r;!hA&&g&&(J=r.__once||function dt(St){this.removeEventListener(e,dt,C),r.call(this,St)},r.__once=J),t.addEventListener(e,J,cA?i:C)}t.addEventListener(e,r,i)}const R3=L3;function I3(t,e,r,i){var g=i&&typeof i!="boolean"?i.capture:i;t.removeEventListener(e,r,g),r.__once&&t.removeEventListener(e,r.__once,g)}const j3=I3;function F3(t,e,r,i){return R3(t,e,r,i),function(){j3(t,e,r,i)}}const Gc=F3;function B3(t){var e=(0,a.useRef)(t);return(0,a.useEffect)(function(){e.current=t},[t]),e}const H3=B3;function PP(t){var e=H3(t);return(0,a.useCallback)(function(){return e.current&&e.current.apply(e,arguments)},[e])}function ow(t){return t&&t.ownerDocument||document}function z3(t){return t&&"setState"in t?H.findDOMNode(t):t!=null?t:null}const U3=function(t){return ow(z3(t))};var W3=27,kP=function(){};function G3(t){return t.button===0}function V3(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}var OP=function(e){return e&&("current"in e?e.current:e)};function Y3(t,e,r){var i=r===void 0?{}:r,g=i.disabled,C=i.clickTrigger,J=C===void 0?"click":C,dt=(0,a.useRef)(!1),St=e||kP,xt=(0,a.useCallback)(function(Wt){var Kt,ae=OP(t);Pb()(!!ae,"RootClose captured a close event but does not have a ref to compare it to. useRootClose(), should be passed a ref that resolves to a DOM node"),dt.current=!ae||V3(Wt)||!G3(Wt)||!!QE(ae,(Kt=Wt.composedPath==null?void 0:Wt.composedPath()[0])!=null?Kt:Wt.target)},[t]),Ct=PP(function(Wt){dt.current||St(Wt)}),Ut=PP(function(Wt){Wt.keyCode===W3&&St(Wt)});(0,a.useEffect)(function(){if(!(g||t==null)){var Wt=window.event,Kt=U3(OP(t)),ae=Gc(Kt,J,xt,!0),ue=Gc(Kt,J,function(We){if(We===Wt){Wt=void 0;return}Ct(We)}),he=Gc(Kt,"keyup",function(We){if(We===Wt){Wt=void 0;return}Ut(We)}),ye=[];return"ontouchstart"in Kt.documentElement&&(ye=[].slice.call(Kt.body.children).map(function(We){return Gc(We,"mousemove",kP)})),function(){ae(),ue(),he(),ye.forEach(function(We){return We()})}}},[t,g,J,xt,Ct,Ut])}const DP=Y3;function X3(t,e){var r=(0,a.useRef)(null);return DP(r.current,t,e),r}const $3=X3;var q3=["children","onRootClose"];function K3(t){var e=t.children,r=t.onRootClose,i=Na(t,q3),g=$3(r,i);return e(g)}const Z3=K3;var Q3=["onBlur","onClick","onFocus","onRemove","option"];function NP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(g){return Object.getOwnPropertyDescriptor(t,g).enumerable})),r.push.apply(r,i)}return r}function LP(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?NP(Object(r),!0).forEach(function(i){Kr(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):NP(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}var J3={onBlur:Ce().func,onClick:Ce().func,onFocus:Ce().func,onRemove:Ce().func,option:Rp.isRequired};function RP(t){var e=t.onBlur,r=t.onClick,i=t.onFocus,g=t.onRemove,C=t.option,J=Na(t,Q3),dt=(0,a.useState)(!1),St=Gb(dt,2),xt=St[0],Ct=St[1],Ut=(0,a.useState)(null),Wt=Gb(Ut,2),Kt=Wt[0],ae=Wt[1],ue=function(on){Ct(!1),e&&e(on)},he=function(on){Ct(!0),r&&r(on)},ye=function(on){Ct(!0),i&&i(on)},We=function(){g&&g(C)},en=function(on){on.key==="Backspace"&&xt&&(on.preventDefault(),We())};return DP(Kt,ue,LP(LP({},J),{},{disabled:!xt})),{active:xt,onBlur:ue,onClick:he,onFocus:ye,onKeyDown:en,onRemove:$s(g)?We:void 0,ref:ae}}function d4(t){warn(!1,"Warning: `withToken` is deprecated and will be removed in the next major version. Use `useToken` instead.");var e="withToken(".concat(getDisplayName(t),")"),r=function(g){return React.createElement(t,_extends({},g,RP(g)))};return r.displayName=e,r.propTypes=J3,r}var tD=["active","children","className","onRemove","tabIndex"],eD=["children","option","readOnly"],nD=["ref"];function IP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(g){return Object.getOwnPropertyDescriptor(t,g).enumerable})),r.push.apply(r,i)}return r}function jP(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?IP(Object(r),!0).forEach(function(i){Kr(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):IP(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}var rD=(0,a.forwardRef)(function(t,e){var r=t.active,i=t.children,g=t.className,C=t.onRemove,J=t.tabIndex,dt=Na(t,tD);return a.createElement("div",$o({},dt,{className:mu()("rbt-token","rbt-token-removeable",{"rbt-token-active":!!r},g),ref:e,tabIndex:J||0}),i,a.createElement(Wb,{className:"rbt-token-remove-button",label:"Remove",onClick:C,tabIndex:-1}))}),iD=function(e){var r=e.children,i=e.className,g=e.disabled,C=e.href,J=mu()("rbt-token",{"rbt-token-disabled":g},i);return C&&!g?a.createElement("a",{className:J,href:C},r):a.createElement("div",{className:J},r)},oD=function(e){var r=e.children,i=e.option,g=e.readOnly,C=Na(e,eD),J=RP(jP(jP({},C),{},{option:i})),dt=J.ref,St=Na(J,nD),xt=a.createElement("div",{className:"rbt-token-label"},r);return!C.disabled&&!g&&$s(St.onRemove)?a.createElement(rD,$o({},C,St,{ref:dt}),xt):a.createElement(iD,C,xt)};const aD=oD;function JE(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return r&&(r=r.replace(r[0],r[0].toUpperCase())),["Top","Right","Bottom","Left"].map(function(i){return t["".concat(e).concat(i).concat(r)]}).join(" ")}function sD(t,e){var r=window.getComputedStyle(t);e.style.borderStyle=JE(r,"border","style"),e.style.borderWidth=JE(r,"border","width"),e.style.fontSize=r.fontSize,e.style.fontWeight=r.fontWeight,e.style.height=r.height,e.style.lineHeight=r.lineHeight,e.style.margin=JE(r,"margin"),e.style.padding=JE(r,"padding")}var lD=function(){var e=DE(),r=e.hintText,i=e.inputNode,g=(0,a.useRef)(null);return(0,a.useEffect)(function(){i&&g.current&&sD(i,g.current)}),{hintRef:g,hintText:r}},uD=function(e){var r=e.children,i=e.className,g=lD(),C=g.hintRef,J=g.hintText;return a.createElement("div",{className:i,style:{display:"flex",flex:1,height:"100%",position:"relative"}},r,a.createElement("input",{"aria-hidden":!0,className:"rbt-input-hint",ref:C,readOnly:!0,style:{backgroundColor:"transparent",borderColor:"transparent",boxShadow:"none",color:"rgba(0, 0, 0, 0.54)",left:0,pointerEvents:"none",position:"absolute",top:0,width:"100%"},tabIndex:-1,value:J}))};const FP=uD;var cD=(0,a.forwardRef)(function(t,e){return a.createElement("input",$o({},t,{className:mu()("rbt-input-main",t.className),ref:e}))});const BP=cD;var hD=["children","className","inputClassName","inputRef","referenceElementRef","selected"];function fD(t){var e=a.useRef(null),r=a.useRef(null),i=bE(t),g=i.children,C=i.className,J=i.inputClassName,dt=i.inputRef,St=i.referenceElementRef,xt=i.selected,Ct=Na(i,hD);function Ut(ae){r.current=ae,t.inputRef(ae)}function Wt(ae){if(t.disabled){ae.currentTarget.blur();return}var ue=r.current;!ue||ae.currentTarget.contains(ae.target)&&ae.currentTarget!==ae.target||(Qg(ue)&&(ue.selectionStart=ue.value.length),ue.focus())}function Kt(ae){if(ae.key==="Backspace"&&xt.length&&!t.value){var ue;ae.preventDefault();var he=(ue=e.current)===null||ue===void 0?void 0:ue.children;if(he!=null&&he.length){var ye=he[he.length-2];ye==null||ye.focus()}}t.onKeyDown&&t.onKeyDown(ae)}return a.createElement("div",{className:mu()("rbt-input-multi",{disabled:t.disabled},C),onClick:Wt,onFocus:Wt,ref:St,tabIndex:-1},a.createElement("div",{className:"rbt-input-wrapper",ref:e},g,a.createElement(FP,null,a.createElement(BP,$o({},Ct,{className:J,onKeyDown:Kt,ref:Ut,style:{backgroundColor:"transparent",border:0,boxShadow:"none",cursor:"inherit",outline:"none",padding:0,width:"100%",zIndex:1}})))))}const dD=fD;var pD=["inputRef","referenceElementRef"],mD=function(e){var r=e.inputRef,i=e.referenceElementRef,g=Na(e,pD);return a.createElement(FP,null,a.createElement(BP,$o({},bE(g),{ref:function(J){r(J),i(J)}})))};const gD=mD;var yD={children:Ce().string.isRequired,highlightClassName:Ce().string,search:Ce().string.isRequired},HP=function(e){var r=e.children,i=e.highlightClassName,g=i===void 0?"rbt-highlight-text":i,C=e.search;if(!C||!r)return a.createElement(a.Fragment,null,r);for(var J=0,dt=r,St=[];dt;){var xt=dE(dt,C);if(!xt){St.push(dt);break}var Ct=dt.slice(0,xt.start);Ct&&St.push(Ct);var Ut=dt.slice(xt.start,xt.end);St.push(a.createElement("mark",{className:g,key:J},Ut)),J+=1,dt=dt.slice(xt.end)}return a.createElement(a.Fragment,null,St)};HP.propTypes=yD;const zP=HP,UP=t=>typeof t=="object"&&t!=null&&t.nodeType===1,WP=(t,e)=>(!e||t!=="hidden")&&t!=="visible"&&t!=="clip",dA=(t,e)=>{if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){const r=getComputedStyle(t,null);return WP(r.overflowY,e)||WP(r.overflowX,e)||(i=>{const g=(C=>{if(!C.ownerDocument||!C.ownerDocument.defaultView)return null;try{return C.ownerDocument.defaultView.frameElement}catch(J){return null}})(i);return!!g&&(g.clientHeight<i.scrollHeight||g.clientWidth<i.scrollWidth)})(t)}return!1},tS=(t,e,r,i,g,C,J,dt)=>C<t&&J>e||C>t&&J<e?0:C<=t&&dt<=r||J>=e&&dt>=r?C-t-i:J>e&&dt<r||C<t&&dt>r?J-e+g:0,vD=t=>{const e=t.parentElement;return e==null?t.getRootNode().host||null:e},GP=(t,e)=>{var r,i,g,C;if(typeof document=="undefined")return[];const{scrollMode:J,block:dt,inline:St,boundary:xt,skipOverflowHiddenElements:Ct}=e,Ut=typeof xt=="function"?xt:xi=>xi!==xt;if(!UP(t))throw new TypeError("Invalid target");const Wt=document.scrollingElement||document.documentElement,Kt=[];let ae=t;for(;UP(ae)&&Ut(ae);){if(ae=vD(ae),ae===Wt){Kt.push(ae);break}ae!=null&&ae===document.body&&dA(ae)&&!dA(document.documentElement)||ae!=null&&dA(ae,Ct)&&Kt.push(ae)}const ue=(i=(r=window.visualViewport)==null?void 0:r.width)!=null?i:innerWidth,he=(C=(g=window.visualViewport)==null?void 0:g.height)!=null?C:innerHeight,{scrollX:ye,scrollY:We}=window,{height:en,width:cn,top:on,right:ze,bottom:Pn,left:_n}=t.getBoundingClientRect(),{top:zn,right:mr,bottom:pr,left:ur}=(xi=>{const gr=window.getComputedStyle(xi);return{top:parseFloat(gr.scrollMarginTop)||0,right:parseFloat(gr.scrollMarginRight)||0,bottom:parseFloat(gr.scrollMarginBottom)||0,left:parseFloat(gr.scrollMarginLeft)||0}})(t);let br=dt==="start"||dt==="nearest"?on-zn:dt==="end"?Pn+pr:on+en/2-zn+pr,Hr=St==="center"?_n+cn/2-ur+mr:St==="end"?ze+mr:_n-ur;const vi=[];for(let xi=0;xi<Kt.length;xi++){const gr=Kt[xi],{height:Ra,width:Ao,top:Za,right:la,bottom:Ia,left:Ko}=gr.getBoundingClientRect();if(J==="if-needed"&&on>=0&&_n>=0&&Pn<=he&&ze<=ue&&on>=Za&&Pn<=Ia&&_n>=Ko&&ze<=la)return vi;const vo=getComputedStyle(gr),va=parseInt(vo.borderLeftWidth,10),xo=parseInt(vo.borderTopWidth,10),Ds=parseInt(vo.borderRightWidth,10),Ns=parseInt(vo.borderBottomWidth,10);let Qa=0,xl=0;const No="offsetWidth"in gr?gr.offsetWidth-gr.clientWidth-va-Ds:0,bl="offsetHeight"in gr?gr.offsetHeight-gr.clientHeight-xo-Ns:0,Vc="offsetWidth"in gr?gr.offsetWidth===0?0:Ao/gr.offsetWidth:0,ac="offsetHeight"in gr?gr.offsetHeight===0?0:Ra/gr.offsetHeight:0;if(Wt===gr)Qa=dt==="start"?br:dt==="end"?br-he:dt==="nearest"?tS(We,We+he,he,xo,Ns,We+br,We+br+en,en):br-he/2,xl=St==="start"?Hr:St==="center"?Hr-ue/2:St==="end"?Hr-ue:tS(ye,ye+ue,ue,va,Ds,ye+Hr,ye+Hr+cn,cn),Qa=Math.max(0,Qa+We),xl=Math.max(0,xl+ye);else{Qa=dt==="start"?br-Za-xo:dt==="end"?br-Ia+Ns+bl:dt==="nearest"?tS(Za,Ia,Ra,xo,Ns+bl,br,br+en,en):br-(Za+Ra/2)+bl/2,xl=St==="start"?Hr-Ko-va:St==="center"?Hr-(Ko+Ao/2)+No/2:St==="end"?Hr-la+Ds+No:tS(Ko,la,Ao,va,Ds+No,Hr,Hr+cn,cn);const{scrollLeft:Ul,scrollTop:Kh}=gr;Qa=ac===0?0:Math.max(0,Math.min(Kh+Qa/ac,gr.scrollHeight-Ra/ac+bl)),xl=Vc===0?0:Math.max(0,Math.min(Ul+xl/Vc,gr.scrollWidth-Ao/Vc+No)),br+=Kh-Qa,Hr+=Ul-xl}vi.push({el:gr,top:Qa,left:xl})}return vi},xD=t=>t===!1?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&Object.keys(e).length!==0)(t)?t:{block:"start",inline:"nearest"};function bD(t,e){if(!t.isConnected||!(g=>{let C=g;for(;C&&C.parentNode;){if(C.parentNode===document)return!0;C=C.parentNode instanceof ShadowRoot?C.parentNode.host:C.parentNode}return!1})(t))return;const r=(g=>{const C=window.getComputedStyle(g);return{top:parseFloat(C.scrollMarginTop)||0,right:parseFloat(C.scrollMarginRight)||0,bottom:parseFloat(C.scrollMarginBottom)||0,left:parseFloat(C.scrollMarginLeft)||0}})(t);if((g=>typeof g=="object"&&typeof g.behavior=="function")(e))return e.behavior(GP(t,e));const i=typeof e=="boolean"||e==null?void 0:e.behavior;for(const{el:g,top:C,left:J}of GP(t,xD(e))){const dt=C-r.top+r.bottom,St=J-r.left+r.right;g.scroll({top:dt,left:St,behavior:i})}}var wD=["label","onClick","option","position"];function VP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(g){return Object.getOwnPropertyDescriptor(t,g).enumerable})),r.push.apply(r,i)}return r}function YP(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?VP(Object(r),!0).forEach(function(i){Kr(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):VP(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}var _D={option:Rp.isRequired,position:Ce().number};function XP(t){var e=t.label,r=t.onClick,i=t.option,g=t.position,C=Na(t,wD),J=DE(),dt=J.activeIndex,St=J.id,xt=J.isOnlyResult,Ct=J.onActiveItemChange,Ut=J.onInitialItemChange,Wt=J.onMenuItemClick,Kt=J.setItem,ae=(0,a.useRef)(null);(0,a.useEffect)(function(){g===0&&Ut(i)}),(0,a.useEffect)(function(){if(g===dt){Ct(i);var ye=ae.current;ye&&bD(ye,{boundary:ye.parentNode,scrollMode:"if-needed"})}},[dt,Ct,i,g]);var ue=(0,a.useCallback)(function(ye){Wt(i,ye),r&&r(ye)},[r,Wt,i]),he=xt||dt===g;return Kt(i,g),YP(YP({},C),{},{active:he,"aria-label":e,"aria-selected":he,id:Jg(St,g),onClick:ue,onMouseDown:Dv,ref:ae,role:"option"})}function p4(t){warn(!1,"Warning: `withItem` is deprecated and will be removed in the next major version. Use `useItem` instead.");var e=function(i){return React.createElement(t,_extends({},i,XP(i)))};return e.displayName="withItem(".concat(getDisplayName(t),")"),e.propTypes=_D,e}var ED=["active","children","className","disabled","onClick"],$P=(0,a.forwardRef)(function(t,e){var r=t.active,i=t.children,g=t.className,C=t.disabled,J=t.onClick,dt=Na(t,ED);return a.createElement("a",$o({},dt,{className:mu()("dropdown-item",{active:r,disabled:C},g),href:dt.href||"#",onClick:function(xt){xt.preventDefault(),!C&&J&&J(xt)},ref:e}),i)});function pA(t){return a.createElement($P,XP(t))}var SD=["emptyLabel","innerRef","maxHeight","style"];function qP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(g){return Object.getOwnPropertyDescriptor(t,g).enumerable})),r.push.apply(r,i)}return r}function KP(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?qP(Object(r),!0).forEach(function(i){Kr(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qP(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}var CD=function(){return a.createElement("div",{className:"dropdown-divider",role:"separator"})},TD=function(e){return a.createElement("div",$o({},e,{className:"dropdown-header",role:"heading"}))},MD={"aria-label":Ce().string,emptyLabel:Ce().node,id:tc(Ce().oneOfType([Ce().number,Ce().string]),Lb),maxHeight:Ce().string},eS=function(e){var r=e.emptyLabel,i=r===void 0?"No matches found.":r,g=e.innerRef,C=e.maxHeight,J=C===void 0?"300px":C,dt=e.style,St=Na(e,SD),xt=a.Children.count(St.children)===0?a.createElement($P,{disabled:!0,role:"option"},i):St.children;return a.createElement("div",$o({},St,{"aria-label":St["aria-label"]||"menu-options",className:mu()("rbt-menu","dropdown-menu","show",St.className),onMouseDown:Dv,ref:g,role:"listbox",style:KP(KP({},dt),{},{display:"block",maxHeight:J,overflow:"auto"})}),xt)};eS.propTypes=MD,eS.Divider=CD,eS.Header=TD;const ZP=eS;var AD=["labelKey","newSelectionPrefix","options","paginationText","renderMenuItemChildren","text"],PD={newSelectionPrefix:Ce().node,paginationText:Ce().node,renderMenuItemChildren:Ce().func};function kD(t,e){return a.createElement(zP,{search:e.text},Ju(t,e.labelKey))}var QP=function(e){var r=e.labelKey,i=e.newSelectionPrefix,g=i===void 0?"New selection: ":i,C=e.options,J=e.paginationText,dt=J===void 0?"Display additional results...":J,St=e.renderMenuItemChildren,xt=St===void 0?kD:St,Ct=e.text,Ut=Na(e,AD),Wt=function(ae,ue){var he=Ju(ae,r),ye={disabled:!!od(ae,"disabled"),label:he,option:ae,position:ue};return od(ae,"customOption")?a.createElement(pA,$o({},ye,{className:"rbt-menu-custom-option",key:ue,label:he}),g,a.createElement(zP,{search:Ct},he)):od(ae,"paginationOption")?a.createElement(a.Fragment,{key:"pagination-option-divider"},a.createElement(ZP.Divider,null),a.createElement(pA,$o({},ye,{className:"rbt-menu-pagination-option",label:Qu(dt)?dt:""}),dt)):a.createElement(pA,$o({},ye,{key:ue}),xt(ae,e,ue))};return a.createElement(ZP,$o({},Ut,{key:Ct}),C.map(Wt))};QP.propTypes=PD;const OD=QP;function JP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(g){return Object.getOwnPropertyDescriptor(t,g).enumerable})),r.push.apply(r,i)}return r}function Yh(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?JP(Object(r),!0).forEach(function(i){Kr(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):JP(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function DD(t){var e=ND();return function(){var i=ud(t),g;if(e){var C=ud(this).constructor;g=Reflect.construct(i,arguments,C)}else g=i.apply(this,arguments);return OE(this,g)}}function ND(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var LD={clearButton:Ce().bool,inputProps:tc(Ce().object,IM),isInvalid:Ce().bool,isLoading:Ce().bool,isValid:Ce().bool,renderInput:Ce().func,renderMenu:Ce().func,renderToken:Ce().func,size:wE},RD={isLoading:!1},ID=function(e,r,i){return a.createElement(OD,$o({},r,{labelKey:i.labelKey,options:e,text:i.text}))},jD=function(e,r,i){return a.createElement(aD,{disabled:r.disabled,key:i,onRemove:r.onRemove,option:e,tabIndex:r.tabIndex},Ju(e,r.labelKey))},FD=["align","dropup","flip","positionFixed"];function BD(t){return Pv(t,FD)}var mA=function(t){e0(r,t);var e=DD(r);function r(){var i;PE(this,r);for(var g=arguments.length,C=new Array(g),J=0;J<g;J++)C[J]=arguments[J];return i=e.call.apply(e,[this].concat(C)),Kr(Ui(i),"_referenceElement",null),Kr(Ui(i),"referenceElementRef",function(dt){i._referenceElement=dt}),Kr(Ui(i),"_renderInput",function(dt,St){var xt=i.props,Ct=xt.isInvalid,Ut=xt.isValid,Wt=xt.multiple,Kt=xt.renderInput,ae=xt.renderToken,ue=xt.size;if($s(Kt))return Kt(dt,St);var he=Yh(Yh({},dt),{},{isInvalid:Ct,isValid:Ut,size:ue});if(!Wt)return a.createElement(gD,he);var ye=St.labelKey,We=St.onRemove,en=St.selected;return a.createElement(dD,$o({},he,{placeholder:en.length?"":dt.placeholder,selected:en}),en.map(function(cn,on){return(ae||jD)(cn,Yh(Yh({},he),{},{labelKey:ye,onRemove:We}),on)}))}),Kr(Ui(i),"_renderMenu",function(dt,St,xt){var Ct=i.props,Ut=Ct.emptyLabel,Wt=Ct.id,Kt=Ct.maxHeight,ae=Ct.newSelectionPrefix,ue=Ct.paginationText,he=Ct.renderMenu,ye=Ct.renderMenuItemChildren;return(he||ID)(dt,Yh(Yh({},St),{},{emptyLabel:Ut,id:Wt,maxHeight:Kt,newSelectionPrefix:ae,paginationText:ue,renderMenuItemChildren:ye}),xt)}),Kr(Ui(i),"_renderAux",function(dt){var St=dt.onClear,xt=dt.selected,Ct=i.props,Ut=Ct.clearButton,Wt=Ct.disabled,Kt=Ct.isLoading,ae=Ct.size,ue;return Kt?ue=a.createElement(Fv,null):Ut&&!Wt&&xt.length&&(ue=a.createElement(Wb,{onClick:St,onMouseDown:Dv,size:ae})),ue?a.createElement("div",{className:mu()("rbt-aux",{"rbt-aux-lg":ld(ae)})},ue):null}),i}return kE(r,[{key:"render",value:function(){var g=this,C=this.props,J=C.children,dt=C.className,St=C.instanceRef,xt=C.open,Ct=C.options,Ut=C.style;return a.createElement(BE,$o({},this.props,{options:Ct,ref:St}),function(Wt){var Kt=Wt.hideMenu,ae=Wt.isMenuShown,ue=Wt.results,he=g._renderAux(Wt);return a.createElement(Z3,{disabled:xt||!ae,onRootClose:Kt},function(ye){return a.createElement("div",{className:mu()("rbt",{"has-aux":!!he,"is-invalid":g.props.isInvalid,"is-valid":g.props.isValid},dt),ref:ye,style:Yh(Yh({},Ut),{},{outline:"none",position:"relative"}),tabIndex:-1},g._renderInput(Yh(Yh({},Wt.getInputProps(g.props.inputProps)),{},{referenceElementRef:g.referenceElementRef}),Wt),a.createElement(N3,$o({},BD(g.props),{isMenuShown:ae,referenceElement:g._referenceElement}),function(We){return g._renderMenu(ue,We,Wt)}),he,$s(J)?J(Wt):J)})})}}]),r}(a.Component);Kr(mA,"propTypes",LD),Kr(mA,"defaultProps",RD);const tk=(0,a.forwardRef)(function(t,e){return a.createElement(mA,$o({},t,{instanceRef:e}))});var HD=(0,a.forwardRef)(function(t,e){return a.createElement(tk,$o({},gl(t),{ref:e}))});const zD=HD,ek=({label:t,position:e,value:r})=>{if(e<0)return a.createElement("span",null,t);const i=t.substring(0,e),g=t.substr(e,r.length),C=t.substring(e+r.length);return a.createElement("span",null,i,a.createElement("b",null,g),C)},nk=ek;ek.propTypes={label:Ce().string.isRequired,position:Ce().number.isRequired,value:Ce().string.isRequired};var rk=Un(9526);const nS=({onClear:t})=>rk.createElement("button",{className:"a-btn a-btn__link",onClick:t,"aria-label":"clear search"},rk.createElement("div",null,si("delete")," Clear"));nS.propTypes={onClear:Ce().func.isRequired};var UD=Object.defineProperty,ik=Object.getOwnPropertySymbols,WD=Object.prototype.hasOwnProperty,GD=Object.prototype.propertyIsEnumerable,ok=(t,e,r)=>e in t?UD(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,VD=(t,e)=>{for(var r in e||(e={}))WD.call(e,r)&&ok(t,r,e[r]);if(ik)for(var r of ik(e))GD.call(e,r)&&ok(t,r,e[r]);return t};const aw=({ariaLabel:t,className:e,defaultValue:r,delayWait:i,htmlId:g,isDisabled:C,handleChange:J,handleClear:dt,handleSearch:St,hasClearButton:xt,maxResults:Ct,minLength:Ut,options:Wt,placeholder:Kt})=>{const ae=(0,a.useRef)(),[ue,he]=(0,a.useState)(r),[ye,We]=(0,a.useState)(xt&&(!!r||!!ue));(0,a.useEffect)(()=>{ae.current.setState({text:r}),he(ae.current.inputNode.value),r===""?(ae.current.clear(),We(!1)):We(!0)},[r]);const en=()=>{dt&&dt(),ae.current.clear(),he("")};return a.createElement("section",{className:`typeahead ${e|""}`},a.createElement("div",{className:"m-btn-inside-input input-contains-label"},a.createElement("div",{className:`input-contains-label_before
|
|
337
337
|
input-contains-label_before__search`},si("search")),a.createElement("label",{className:"u-visually-hidden",htmlFor:g},t),a.createElement(zD,{id:g,minLength:Ut,className:"typeahead-selector",defaultInputValue:r,delay:i,disabled:C,isLoading:!1,ref:ae,onInputChange:cn=>{We(cn!=="")},onSearch:cn=>{he(cn),St(cn)},onChange:cn=>{J(cn),ae.current.clear(),he("")},options:Wt,maxResults:Ct,placeholder:Kt,renderMenuItemChildren:cn=>a.createElement("li",{className:"typeahead-option body-copy"},a.createElement(nk,VD({},cn)))}),!!ye&&a.createElement(nS,{onClear:()=>{en(),We(!1)}})))};aw.propTypes={ariaLabel:Ce().string.isRequired,className:Ce().string,defaultValue:Ce().string,delayWait:Ce().number.isRequired,isDisabled:Ce().bool.isRequired,handleChange:Ce().func.isRequired,handleClear:Ce().func,handleSearch:Ce().func.isRequired,hasClearButton:Ce().bool,htmlId:Ce().string.isRequired,maxResults:Ce().number,minLength:Ce().number,options:Ce().array,placeholder:Ce().string},aw.defaultProps={className:"",defaultValue:"",delayWait:0,hasClearButton:!1,isDisabled:!1,maxResults:5,minLength:2,placeholder:"Enter your search text"};function gA(t,e,r){const i=t.toLowerCase();if(i===""){e([]);return}return fetch(r).then(g=>g.json()).then(g=>{const C=g.map(J=>({key:J,label:J,position:J.toLowerCase().indexOf(i),value:t}));e(C)})}const YD="company",sw=({delayWait:t,id:e})=>{const r=Si(),i=vr(du),g=vr(TC),C=vr(n_),[J,dt]=(0,a.useState)([]),St=Object.assign({},i);St.searchAfter="";const xt=g&&C==="Company",Ct=qg(St),Ut=Kt=>{r(ov(YD,[Kt[0].key]))},Wt=Kt=>{const ae=Ct+"&text="+Kt,ue=`${Nl}_suggest_company/${ae}`;gA(Kt,dt,ue)};return a.createElement(aw,{ariaLabel:"Start typing to begin listing companies",htmlId:jc("company-typeahead-"+e),delayWait:t,handleChange:Ut,handleSearch:Wt,hasClearButton:!0,options:J,placeholder:"Enter company name",disabled:xt})};sw.propTypes={delayWait:Ce().number,id:Ce().string.isRequired},sw.defaultProps={delayWait:250};const XD=(t,e)=>{let r=t.length;if(r!==e.length)return!1;for(;r--;)if(t[r]!==e[r])return!1;return!0},$D=t=>{if(t==="timely"){const e=/_/g,r=t.replace(e," ");return r[0].toUpperCase()+r.slice(1)+": "}return""},ak=(t,e,r,i)=>{if(!ky.includes(i))return e;const g=t.split(os),C=g[0],J=e.includes(C),dt=e.filter(xt=>xt!==C&&t).filter(xt=>xt!==t),St=[];return J&&r.find(Ct=>Ct.key===C)["sub_"+i+".raw"].buckets.forEach(Ct=>{Ct.key!==g[1]&&St.push(mg(C,Ct.key))}),dt.concat(St)};class yA extends a.Component{_onChange(){this.props.isActive?this.props.removeFilter(this.props):this.props.addFilter(this.props)}render(){const{isActive:e,item:r,fieldName:i}=this.props,g=r.value||r.key,C="layout-row m-form-field m-form-field__checkbox",J=jc(i+"-"+r.key);return a.createElement("li",{className:C},a.createElement("input",{type:"checkbox",className:"flex-fixed a-checkbox","aria-label":r.key,disabled:r.isDisabled,checked:e,id:J,onChange:()=>this._onChange()}),a.createElement("label",{className:"a-label flex-all bucket-key body-copy",htmlFor:J},g),a.createElement("span",{className:"flex-fixed bucket-count"},a.createElement(Rh,{value:r.doc_count})))}}const rS=Oa((t,e)=>{const r=Mo(t.aggs,e.fieldName,[]),i=Mo(t.query,e.fieldName,[]),g=e.item.key,C=g.split(os)[0];return{isActive:i.includes(g)||i.includes(C),aggs:r,filters:i}},(t,e)=>({addFilter:r=>{const{aggs:i,filters:g}=r,{fieldName:C,item:J}=e,dt=J.key;if(dt.indexOf(os)>-1&&ky.includes(C)){const xt=dt.split(os)[0],Ct=dt.split(os)[1],Ut=i.find(ue=>ue.key===xt)["sub_"+C+".raw"].buckets.map(ue=>ue.key).sort(),Wt=xt+os,Kt=g.filter(ue=>ue.indexOf(Wt)>-1).map(ue=>ue.replace(Wt,""));Kt.push(Ct),Kt.sort();let ae;XD(Kt,Ut)?ae=g.filter(ue=>ue.indexOf(Wt)===-1).concat(xt):ae=g.concat(dt),t(pu(C,ae))}else t(Rx(C,J))},removeFilter:r=>{const{aggs:i,filters:g}=r,{fieldName:C,item:J}=e;if(ky.includes(C)){const dt=J.key,St=ak(dt,g,i,C);t(pu(C,St))}else t(Rx(C,J))}}))(yA);yA.propTypes={isActive:Ce().bool,fieldName:Ce().string.isRequired,item:Ce().shape({doc_count:Ce().number.isRequired,key:Ce().string.isRequired,value:Ce().string,isDisabled:Ce().bool}).isRequired,removeFilter:Ce().func.isRequired,addFilter:Ce().func.isRequired},yA.defaultProps={isActive:!1};var qD=Object.defineProperty,KD=Object.defineProperties,ZD=Object.getOwnPropertyDescriptors,sk=Object.getOwnPropertySymbols,QD=Object.prototype.hasOwnProperty,JD=Object.prototype.propertyIsEnumerable,lk=(t,e,r)=>e in t?qD(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,tN=(t,e)=>{for(var r in e||(e={}))QD.call(e,r)&&lk(t,r,e[r]);if(sk)for(var r of sk(e))JD.call(e,r)&&lk(t,r,e[r]);return t},eN=(t,e)=>KD(t,ZD(e));const uk=t=>t.reduce((r,i)=>(r[i.key]=i,r),{}),nN=t=>{const e={};return Object.keys(t).forEach(r=>{e[r]=eN(tN({},t[r]),{doc_count:0})}),e};class vA extends a.Component{constructor(e){super(e),this.state={tracked:e.selections.slice(),cache:uk(e.options)}}componentDidUpdate(e){const r=nN(this.state.cache),i=this.props;if(e.options!==i.options){const g=Object.assign(r,uk(i.options)),C=this.state.tracked.slice();i.selections.forEach(J=>{C.indexOf(J)===-1&&C.push(J),J in g||(g[J]=i.onMissingItem(J))}),this.setState({tracked:C,cache:g})}}render(){return a.createElement("ul",null,this.state.tracked.map(e=>{const r=this.state.cache[e];return r?a.createElement(rS,{item:r,key:r.key,fieldName:this.props.fieldName}):null}))}}vA.propTypes={fieldName:Ce().string.isRequired,onMissingItem:Ce().func,options:Ce().array.isRequired,selections:Ce().array},vA.defaultProps={onMissingItem:t=>({key:t,doc_count:0}),selections:[]};const iS="company";class ck extends a.Component{render(){const e="The complaint is about this company.";return a.createElement(Zu,{title:"Company name",desc:e,className:"aggregation company"},a.createElement(sw,{id:"filter-"+iS}),a.createElement(vA,{fieldName:iS,options:this.props.options,selections:this.props.selections}))}}const rN=Oa(t=>{const e=gg(Mo(t.aggs,iS,[])),r=Mo(t.query,iS,[]),{focus:i}=t.query,g=i&&t.query.lens==="Company";return e.forEach(C=>{C.disabled=Boolean(g&&C.key!==i)}),{options:e,queryString:t.query.queryString,selections:r}})(ck);ck.propTypes={options:Ce().array.isRequired,selections:Ce().array.isRequired};const v4={};var iN=Un(8063),hk=Un.n(iN),oN=Un(9978),fk=Un.n(oN);_r().extend(hk()),_r().extend(fk());const aN=()=>{const t="company_received",e="The date the CFPB sent the complaint to the company",r=vr(CC),i=vr(SC),g=_r()(r).isValid()?hu(r):"",C=_r()(i).isValid()?hu(i):"",[J,dt]=(0,a.useState)(g),[St,xt]=(0,a.useState)(C),Ct=Si(),Ut="'From' date must be less than 'through' date",Wt=(0,a.useRef)(),Kt=(0,a.useRef)();(0,a.useEffect)(()=>{const on=r?hu(r):"";dt(on)},[r]),(0,a.useEffect)(()=>{const on=i?hu(i):"";xt(on)},[i]);const ae=on=>{on==="from"&&Ct(Qf(t,"",St)),on==="through"&&Ct(Qf(t,J,""))},ue=on=>{on.key==="Enter"&&Wt.current.blur()},he=on=>{on.key==="Enter"&&Kt.current.blur()},ye=(0,a.useMemo)(()=>{const on=[];return _r()(J).isAfter(St)&&on.push(Ut),_r()(J).isBefore(Cs)&&on.push("'From' date must be after "+_r()(Cs).format(Ic)),_r()(St).isAfter(Ss)&&on.push("'Through' date must be before "+_r()(Ss).format(Ic)),on},[J,St]),We=()=>{let on=St,ze=J;ze&&!_r()(J).isValid()&&(Wt.current.value="",ze=""),on&&!_r()(St).isValid()&&(Kt.current.value="",on=""),(r!==ze||i!==on)&&Ct(Qf(t,ze,on))},en=(0,a.useMemo)(()=>{const on=["a-text-input"];return(_r()(J).isBefore(Cs)||_r()(J).isAfter(St))&&on.push("a-text-input__error"),on.join(" ")},[J,St]),cn=(0,a.useMemo)(()=>{const on=["a-text-input"];return(_r()(St).isAfter(Ss)||_r()(St).isBefore(J))&&on.push("a-text-input__error"),on.join(" ")},[J,St]);return a.createElement(Zu,{title:e,className:"aggregation date-filter"},a.createElement("div",null,a.createElement("ul",{className:"date-inputs"},a.createElement("li",null,a.createElement("label",{className:"a-label a-label__heading body-copy",htmlFor:`${t}-from`},"From"),a.createElement("div",{className:"m-btn-inside-input"},a.createElement("input",{id:`${t}-from`,className:en,onBlur:We,onChange:on=>dt(on.target.value),onKeyDown:ue,min:Cs,max:Ss,ref:Wt,placeholder:Ic,type:"date",value:J}),a.createElement("button",{className:"a-btn a-btn__link",onClick:()=>ae("from")},si("delete"),a.createElement("span",{className:"u-visually-hidden"},"Clear company received from date filter")))),a.createElement("li",null,a.createElement("label",{className:"a-label a-label__heading body-copy",htmlFor:`${t}-through`},"Through"),a.createElement("div",{className:"m-btn-inside-input"},a.createElement("input",{id:`${t}-through`,className:cn,onBlur:We,onChange:on=>xt(on.target.value),onKeyDown:he,min:Cs,max:Ss,placeholder:Ic,ref:Kt,type:"date",value:St}),a.createElement("button",{className:"a-btn a-btn__link",onClick:()=>ae("through")},si("delete"),a.createElement("span",{className:"u-visually-hidden"},"Clear company received through date filter"))))),ye.length?ye.map((on,ze)=>a.createElement("div",{key:ze},on,a.createElement("span",{"aria-hidden":"true"},si("delete-round","cf-icon-delete-round")))):null))},x4={},sN=()=>{const t=Si(),e=vr(e_),r=vr($u),i=C=>{const J=["a-btn","date-selector","range-"+C];return C===e&&J.push("selected"),J.join(" ").toLowerCase()},g=C=>{e!==C&&(ma("Button",r+":"+C),t(Lx(C)))};return a.createElement("section",{className:"date-ranges m-btn-group"},a.createElement("p",null,"Date range (Click to modify range)"),Aw.map(C=>a.createElement("button",{onClick:()=>{g(C)},className:i(C),key:C},C)))};_r().extend(hk()),_r().extend(fk()),_r().extend(O1());const lN="CFPB updated product and issue options in April 2017 and August 2023.",uN="https://www.consumerfinance.gov/data-research/consumer-complaints/#past-changes",cN=()=>{const t="date_received",e="Date CFPB received the complaint",r=vr(Kf),i=vr(tv),g=_r()(r).isValid()?hu(r):"",C=_r()(i).isValid()?hu(i):"",[J,dt]=(0,a.useState)(g),[St,xt]=(0,a.useState)(C),Ct=Si(),Ut="'From' date must be less than 'through' date",Wt="'From' date cannot be the same as 'Through' date",Kt=(0,a.useRef)(),ae=(0,a.useRef)();(0,a.useEffect)(()=>{const ze=r?hu(r):"";dt(ze)},[r]),(0,a.useEffect)(()=>{const ze=i?hu(i):"";xt(ze)},[i]);const ue=ze=>{ze==="from"&&Ct(Qf(t,Cs,St)),ze==="through"&&Ct(Qf(t,J,Ss))},he=ze=>{ze.key==="Enter"&&Kt.current.blur()},ye=ze=>{ze.key==="Enter"&&ae.current.blur()},We=(0,a.useMemo)(()=>_r()(J).isAfter(St)?Ut:_r()(J).isSame(St)?Wt:!1,[J,St]),en=()=>{let ze=J,Pn=St;ze<Cs&&ze&&(Kt.current.value=Cs,ze=Cs),Pn>Ss&&Pn&&(ae.current.value=Ss,Pn=Ss);const _n=r!==ze||i!==Pn;_r()(Pn).isAfter(ze)&&_n&&Ct(Qf(t,ze,Pn))},cn=(0,a.useMemo)(()=>{const ze=["a-text-input"];return(_r()(J).isBefore(Cs)||_r()(J).isAfter(St)||_r()(J).isSame(St))&&ze.push("a-text-input__error"),ze.join(" ")},[J,St]),on=(0,a.useMemo)(()=>{const ze=["a-text-input"];return(_r()(St).isAfter(Ss)||_r()(St).isBefore(J)||_r()(St).isSame(J))&&ze.push("a-text-input__error"),ze.join(" ")},[J,St]);return a.createElement(Zu,{title:e,className:"aggregation date-filter"},a.createElement("div",null,a.createElement("p",{className:"u-mt15"}," ",lN," ",a.createElement("a",{href:uN,target:"_blank",rel:"noopener noreferrer","aria-label":`Learn more about Product and
|
|
338
338
|
Issue changes (opens in new window)`},"Learn More")),a.createElement("ul",{className:"date-inputs"},a.createElement("li",null,a.createElement("label",{className:"a-label a-label__heading body-copy",htmlFor:`${t}-from`},"From"),a.createElement("div",{className:"m-btn-inside-input"},a.createElement("input",{id:`${t}-from`,className:cn,onBlur:en,onChange:ze=>dt(ze.target.value),onKeyDown:he,min:Cs,max:Ss,ref:Kt,placeholder:Ic,type:"date",value:J}),a.createElement("button",{className:"a-btn a-btn__link",onClick:()=>ue("from")},si("delete"),a.createElement("span",{className:"u-visually-hidden"},"Clear date received from filter")))),a.createElement("li",null,a.createElement("label",{className:"a-label a-label__heading body-copy",htmlFor:`${t}-through`},"Through"),a.createElement("div",{className:"m-btn-inside-input"},a.createElement("input",{id:`${t}-through`,className:on,onBlur:en,onChange:ze=>xt(ze.target.value),onKeyDown:ye,min:Cs,max:Ss,placeholder:Ic,ref:ae,type:"date",value:St}),a.createElement("button",{className:"a-btn a-btn__link",onClick:()=>ue("through")},si("delete"),a.createElement("span",{className:"u-visually-hidden"},"Clear date received through filter"))))),a.createElement(sN,null),We?a.createElement("div",{className:"a-form-alert a-form-alert__error",role:"alert"},a.createElement("span",{"aria-hidden":"true"},si("delete-round","cf-icon-delete-round")),a.createElement("span",{className:"a-form-alert_text"},We+" ")):null))};var hN=Object.defineProperty,dk=Object.getOwnPropertySymbols,fN=Object.prototype.hasOwnProperty,dN=Object.prototype.propertyIsEnumerable,pk=(t,e,r)=>e in t?hN(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,pN=(t,e)=>{for(var r in e||(e={}))fN.call(e,r)&&pk(t,r,e[r]);if(dk)for(var r of dk(e))dN.call(e,r)&&pk(t,r,e[r]);return t};const oS=({ariaLabel:t,className:e,htmlId:r,isDisabled:i,handleChange:g,handleInputChange:C,hasClearButton:J,maxResults:dt,minLength:St,options:xt,placeholder:Ct})=>{const Ut=(0,a.useRef)(),[Wt,Kt]=(0,a.useState)(""),ae=J&&Wt,ue=()=>{Ut.current.clear(),Kt("")};return a.createElement("section",{className:`typeahead ${e|""}`},a.createElement("div",{className:"m-btn-inside-input input-contains-label"},a.createElement("div",{className:`input-contains-label_before
|
|
339
339
|
input-contains-label_before__search`},si("search")),a.createElement("label",{className:"u-visually-hidden",htmlFor:r},t),a.createElement(tk,{id:"zipcode-typeahead",minLength:St,className:"typeahead-selector",disabled:i,isLoading:!1,ref:Ut,onChange:he=>{g(he),ue()},onInputChange:he=>{C(he),Kt(he)},options:xt,maxResults:dt,placeholder:Ct,renderMenuItemChildren:he=>a.createElement("li",{className:"typeahead-option body-copy"},a.createElement(nk,pN({},he)))}),!!ae&&a.createElement(nS,{onClear:ue})))};oS.propTypes={ariaLabel:Ce().string.isRequired,className:Ce().string,isDisabled:Ce().bool.isRequired,handleChange:Ce().func.isRequired,handleInputChange:Ce().func.isRequired,hasClearButton:Ce().bool,htmlId:Ce().string.isRequired,maxResults:Ce().number,minLength:Ce().number,options:Ce().array,placeholder:Ce().string},oS.defaultProps={className:"",hasClearButton:!1,isDisabled:!1,maxResults:5,minLength:2,placeholder:"Enter your search text"};const mk=({hasChildren:t})=>{const e=Si(),r=xt=>Oy[xt]+" ("+xt+")",i=Object.keys(Oy).map(xt=>{const Ct=r(xt);return{key:xt,label:Ct,position:0,normalized:Fw(Ct)}}),[g,C]=(0,a.useState)(i),J="The state in the mailing address provided by the consumer",dt=xt=>{const Ct=Fw(xt);if(Ct===""){C(i);return}const Ut=i.map(Wt=>({key:Wt.key,label:Wt.label,normalized:Wt.normalized,position:Wt.normalized.indexOf(Ct),value:xt}));C(Ut)},St=xt=>{e(ov("state",[xt[0].key]))};return a.createElement(Zu,{title:"State",desc:J,hasChildren:t,className:"aggregation state"},a.createElement(oS,{ariaLabel:"Start typing to begin listing US states",htmlId:"state-typeahead",handleChange:St,handleInputChange:dt,hasClearButton:!0,options:g,placeholder:"Enter state name or abbreviation"}))};mk.propTypes={hasChildren:Ce().bool};const xA="has_narrative",gk="SEARCHING",mN="FILTERING",yk="NOTHING";class vk extends a.Component{render(){const{options:e,toggleFlag:r}=this.props;return a.createElement("section",{className:"single-checkbox"},a.createElement("h4",null,"Only show complaints with narratives?"),a.createElement("div",{className:"m-form-field m-form-field__checkbox"},a.createElement("input",{className:"a-checkbox",checked:e.phase!==yk,disabled:e.phase===gk,id:"filterHasNarrative",onChange:()=>r(),type:"checkbox",value:xA}),a.createElement("label",{className:"a-label",htmlFor:"filterHasNarrative"},"Yes")))}}const gN=Oa(t=>{const e=Mo(t.query,xA,!1),r=t.query.searchField;let i=yk;return r===Py?i=gk:e&&(i=mN),{options:{phase:i}}},t=>({toggleFlag:()=>{t(E_(xA))}}))(vk);vk.propTypes={options:Ce().object.isRequired,toggleFlag:Ce().func.isRequired};const xk=t=>t.aggs,bA=t=>t.aggs.doc_count,yN=t=>t.aggs.hasDataIssue,vN=t=>t.aggs.error,xN=t=>t.aggs.isDataStale,aS=t=>t.aggs.total;var bN=Object.defineProperty,wN=Object.defineProperties,_N=Object.getOwnPropertyDescriptors,bk=Object.getOwnPropertySymbols,EN=Object.prototype.hasOwnProperty,SN=Object.prototype.propertyIsEnumerable,wk=(t,e,r)=>e in t?bN(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,_k=(t,e)=>{for(var r in e||(e={}))EN.call(e,r)&&wk(t,r,e[r]);if(bk)for(var r of bk(e))SN.call(e,r)&&wk(t,r,e[r]);return t},CN=(t,e)=>wN(t,_N(e));class lw extends a.Component{constructor(e){super(e),this.state={hasMore:e.hasMore},this._toggleShowMore=this._toggleShowMore.bind(this)}_buildListComponent(e){const r=this.props.perBucketProps(e,CN(_k({},this.props.listComponentProps),{item:e,key:e.key}));return a.createElement(this.props.listComponent,_k({},r))}_toggleShowMore(){this.setState({hasMore:!this.state.hasMore})}render(){const e=this.props.options,r=e.length>5?e.slice(0,5):e,i=e.length-5;return a.createElement(a.Fragment,null,a.createElement("ul",null,this.state.hasMore?e.map(g=>this._buildListComponent(g)):r.map(g=>this._buildListComponent(g))),i>0?a.createElement("div",null,a.createElement("button",{className:"a-btn a-btn__link more",onClick:this._toggleShowMore},this.state.hasMore?`- Show ${i} less`:`+ Show ${i} more`)):null)}}lw.propTypes={listComponent:Ce().oneOfType([Ce().element,Ce().func,Ce().object]).isRequired,listComponentProps:Ce().object,options:Ce().array.isRequired,perBucketProps:Ce().func,hasMore:Ce().bool},lw.defaultProps={listComponentProps:{},perBucketProps:(t,e)=>e,hasMore:!1};const wA=lw;lw.propTypes={listComponent:Ce().oneOfType([Ce().element,Ce().func,Ce().object]).isRequired,listComponentProps:Ce().object,options:Ce().array.isRequired,perBucketProps:Ce().func,hasMore:Ce().bool},lw.defaultProps={listComponentProps:{},perBucketProps:(t,e)=>e,hasMore:!1};const _4={},Ek="UNCHECKED",Sk="INDETERMINATE",_A="CHECKED";class EA extends a.Component{constructor(e){super(e),this.state={hasChildren:e.hasChildren},XS(this,["_decideClickAction","_toggleChildDisplay"])}_decideClickAction(){const{activeChildren:e,item:r,subitems:i,filters:g,fieldName:C,checkedState:J}=this.props,dt=yg(r.key,i);e.forEach(St=>dt.add(St)),J===_A?this.props.uncheckParent(C,[...dt]):this.props.checkParent({fieldName:C,filters:g,item:r})}_toggleChildDisplay(){this.setState({hasChildren:!this.state.hasChildren})}render(){const{item:e,subitems:r,fieldName:i,checkedState:g}=this.props,C=r.map(xt=>({disabled:e.isDisabled,key:mg(e.key,xt.key),value:xt.key,doc_count:xt.doc_count}));if(C.length===0)return a.createElement(rS,{item:e,key:e.key,fieldName:i});const J="parent m-form-field m-form-field__checkbox body-copy",dt=jc(i+"-"+e.key);let St;return this.state.hasChildren?St=si("up"):St=si("down"),a.createElement("div",{className:"aggregation-branch "+jc(e.key)},a.createElement("li",{className:J},a.createElement("input",{type:"checkbox","aria-label":e.key,disabled:e.isDisabled,checked:g===_A,className:"flex-fixed a-checkbox",id:dt,onChange:this._decideClickAction}),a.createElement("label",{className:this._labelStyle,htmlFor:dt},a.createElement("span",{className:"u-visually-hidden"},e.key)),a.createElement("button",{className:"flex-all a-btn a-btn__link",onClick:this._toggleChildDisplay},a.createElement("span",null,e.key),St),a.createElement("span",{className:"flex-fixed parent-count"},a.createElement(Rh,{value:e.doc_count}))),this.state.hasChildren===!1?null:a.createElement("ul",{className:"children"},C.map(xt=>a.createElement(rS,{item:xt,key:xt.key,fieldName:i}))))}get _labelStyle(){let e="toggle a-label";return this.props.checkedState===Sk&&(e+=" indeterminate"),e}}const Ck=Oa((t,e)=>{const r=Mo(t.query,e.fieldName,[]),i=r.filter(dt=>dt.indexOf(e.item.key)===0),g=i.filter(dt=>dt.indexOf(os)!==-1),C=i.filter(dt=>dt===e.item.key);let J=Ek;return C.length===0&&g.length>0?J=Sk:C.length>0&&(J=_A),{activeChildren:g,checkedState:J,filters:r,focus:t.query.focus,hasChildren:g.length>0}},t=>({uncheckParent:(e,r)=>{t(T_(e,r))},checkParent:e=>{const{fieldName:r,filters:i,item:g}=e,C=i.filter(J=>J.indexOf(g.key+os)===-1);C.push(g.key),t(pu(r,C))}}))(EA);EA.propTypes={activeChildren:Ce().array,checkParent:Ce().func.isRequired,checkedState:Ce().string,fieldName:Ce().string.isRequired,item:Ce().shape({doc_count:Ce().number.isRequired,key:Ce().string.isRequired,value:Ce().string,isDisabled:Ce().bool}).isRequired,hasChildren:Ce().bool,subitems:Ce().array.isRequired,uncheckParent:Ce().func.isRequired,filters:Ce().array.isRequired},EA.defaultProps={checkedState:Ek,hasChildren:!1};const Tk=({hasChildren:t})=>{const e=Si(),[r,i]=(0,a.useState)([]),g=vr(xk),C=vr(du),J="The type of issue and sub-issue the consumer identified in the complaint",dt={fieldName:"issue"},St=Mo(C,"issue",[]),xt=[];St.forEach(ue=>{const he=ue.indexOf(os),ye=he===-1?ue:ue.substr(0,he);xt.indexOf(ye)===-1&&xt.push(ye)});const Ct=V1(Mo(g,"issue",[]),xt),Ut=Ct.map(ue=>ue.key),Wt=ue=>{const he=ue.toLowerCase();if(he===""){i([]);return}const ye=Ut.map(We=>({key:We,label:We,position:We.toLowerCase().indexOf(he),value:ue}));i(ye)},Kt=ue=>{const he=St.filter(ye=>ye.indexOf(ue[0].key+os)===-1).concat(ue[0].key);e(pu("issue",he))},ae=(ue,he)=>(he.subitems=ue["sub_issue.raw"].buckets,he);return a.createElement(Zu,{title:"Issue / sub-issue",desc:J,hasChildren:t,className:"aggregation issue"},a.createElement(oS,{ariaLabel:"Start typing to begin listing issues",htmlId:"issue-typeahead",placeholder:"Enter name of issue",handleChange:Kt,handleInputChange:Wt,hasClearButton:!0,options:r}),a.createElement(wA,{listComponent:Ck,listComponentProps:dt,options:Ct,perBucketProps:ae}))};Tk.propTypes={hasChildren:Ce().bool};class Mk extends a.Component{constructor(e){super(e),this._onBucket=this._onBucket.bind(this)}render(){const e="The type of product and sub-product the consumer identified in the complaint",r={fieldName:"product"};return a.createElement(Zu,{title:"Product / sub-product",desc:e,hasChildren:this.props.hasChildren,className:"aggregation product"},a.createElement(wA,{listComponent:Ck,listComponentProps:r,options:this.props.options,perBucketProps:this._onBucket}))}_onBucket(e,r){return r.subitems=e["sub_product.raw"].buckets,r}}const TN=Oa(t=>{const{focus:e,lens:r,tab:i}=t.query,g=Mo(t.query,"product",[]),C=[];g.forEach(dt=>{const St=dt.indexOf(os),xt=St===-1?dt:dt.substr(0,St);C.indexOf(xt)===-1&&C.push(xt)});const J=V1(t.aggs.product,C);if(e){const dt=i===to&&r==="Product";J.forEach(St=>{St.disabled=dt?St.key!==e:!1,St["sub_product.raw"].buckets.forEach(xt=>{xt.disabled=dt?St.disabled:!1})})}return{options:J}})(Mk);Mk.propTypes={hasChildren:Ce().bool,options:Ce().array.isRequired};const T4={};class Ak extends a.Component{render(){const e={fieldName:this.props.fieldName},{desc:r,fieldName:i,options:g,hasChildren:C,title:J}=this.props;return a.createElement(Zu,{title:J,desc:r,hasChildren:C,className:"aggregation simple "+i},a.createElement(wA,{listComponent:rS,listComponentProps:e,options:g}))}}const Yv=Oa((t,e)=>{const r=Mo(t.query,e.fieldName,[]);return{options:Mo(t.aggs,e.fieldName,[]),hasChildren:r.length>0}})(Ak);Ak.propTypes={fieldName:Ce().string.isRequired,desc:Ce().string,options:Ce().array.isRequired,hasChildren:Ce().bool.isRequired,title:Ce().string.isRequired};const MN="zip_code",SA=({delayWait:t})=>{const e=Si(),r=vr(du),[i,g]=(0,a.useState)([]),C=Object.assign({},r);C.searchAfter="";const J=qg(C),dt=xt=>{e(ov(MN,[xt[0].key])),g([])},St=xt=>{const Ct=J+"&text="+xt,Ut=`${Nl}_suggest_zip/${Ct}`;gA(xt,g,Ut)};return a.createElement(Zu,{title:"ZIP code",desc:"The mailing ZIP code provided by the consumer",className:"aggregation"},a.createElement(aw,{htmlId:"zipcode-typeahead",ariaLabel:"Start typing to begin listing zip codes",delayWait:t,handleSearch:St,handleChange:dt,hasClearButton:!0,options:i,placeholder:"Enter first three digits of ZIP code"}))};SA.propTypes={delayWait:Ce().number},SA.defaultProps={delayWait:250};class CA extends a.Component{render(){const e="The company's optional public-facing response to a consumer's complaint. Companies can choose to select a response from a pre-set list of options that will be posted on the public database.",r="Whether a consumer opted in to publish their complaint narrative",i="Data that supports easier searching and sorting of complaints submitted by or on behalf of consumers";return a.createElement("div",null,!!this.props.hasFilters&&a.createElement("section",{className:"filter-panel"},!!this.props.hasButton&&a.createElement("div",{className:"filter-button"},a.createElement("button",{className:"a-btn",title:"Close filters",onClick:this.props.onFilterToggle},"Close filters ",si("delete"))),a.createElement("h3",null,"Filter results by..."),a.createElement(cN,null),a.createElement("hr",null),a.createElement(TN,null),a.createElement("hr",null),a.createElement(Tk,null),a.createElement("hr",null),a.createElement(mk,null),a.createElement("hr",null),a.createElement(SA,null),a.createElement("hr",null),a.createElement(rN,null),a.createElement("hr",null),a.createElement(Yv,{title:"Did company provide a timely response?",desc:"Whether the company gave a timely response",fieldName:"timely"}),a.createElement("hr",null),a.createElement(Yv,{title:"Company response to consumer",desc:`This is how the company responded. For
|
|
340
340
|
example, 'Closed with explanation'.`,fieldName:"company_response"}),a.createElement("hr",null),a.createElement(Yv,{title:"Company public response",desc:e,fieldName:"company_public_response"}),a.createElement("hr",null),a.createElement(aN,null),a.createElement("hr",null),a.createElement(Yv,{title:"Consumer consent provided?",desc:r,fieldName:"consumer_consent_provided"}),a.createElement("hr",null),a.createElement(gN,null),a.createElement("hr",null),a.createElement(Yv,{title:`How did the consumer submit the
|
|
341
|
-
complaint to the CFPB?`,fieldName:"submitted_via"}),a.createElement("hr",null),a.createElement(Yv,{title:"Tags",desc:i,fieldName:"tags"})))}}const sS=Oa(t=>({hasButton:t.view.width<750,hasFilters:t.view.hasFilters}),t=>({onFilterToggle:()=>{t(Bg())}}))(CA);CA.defaultProps={hasFilters:!0},CA.propTypes={onFilterToggle:Ce().func.isRequired,hasFilters:Ce().bool,hasButton:Ce().bool.isRequired};const AN=t=>t.view.hasAdvancedSearchTips,PN=t=>t.view.expandedRows,k4=t=>t.view.isFromExternal,uw=t=>t.view.isPrintMode,kN=t=>t.view.showTour,cw=t=>t.view.width,ON=t=>t.view.modalTypeShown,DN=()=>{const t=vr($u);return vr(cw)>749?a.createElement("aside",{className:`content_sidebar ${t.toLowerCase()}`},a.createElement(sS,null)):null},O4={},D4={},N4={},L4={},Pk=({text:t,closeFn:e})=>a.createElement("div",{role:"alert",className:"warning m-notification m-notification__visible m-notification__warning"},si("warning-round"),a.createElement("div",{className:"m-notification_content"},a.createElement("div",{className:"
|
|
341
|
+
complaint to the CFPB?`,fieldName:"submitted_via"}),a.createElement("hr",null),a.createElement(Yv,{title:"Tags",desc:i,fieldName:"tags"})))}}const sS=Oa(t=>({hasButton:t.view.width<750,hasFilters:t.view.hasFilters}),t=>({onFilterToggle:()=>{t(Bg())}}))(CA);CA.defaultProps={hasFilters:!0},CA.propTypes={onFilterToggle:Ce().func.isRequired,hasFilters:Ce().bool,hasButton:Ce().bool.isRequired};const AN=t=>t.view.hasAdvancedSearchTips,PN=t=>t.view.expandedRows,k4=t=>t.view.isFromExternal,uw=t=>t.view.isPrintMode,kN=t=>t.view.showTour,cw=t=>t.view.width,ON=t=>t.view.modalTypeShown,DN=()=>{const t=vr($u);return vr(cw)>749?a.createElement("aside",{className:`content_sidebar ${t.toLowerCase()}`},a.createElement(sS,null)):null},O4={},D4={},N4={},L4={},Pk=({text:t,closeFn:e})=>a.createElement("div",{role:"alert",className:"warning m-notification m-notification__visible m-notification__warning"},si("warning-round"),a.createElement("div",{className:"m-notification_content"},a.createElement("div",{className:"m-notification_message"},t)),e?a.createElement("button",{onClick:e,onKeyDown:e,"aria-label":"Dismiss",className:"close"},si("delete")):""),TA=Pk;Pk.propTypes={text:Ce().string.isRequired,closeFn:Ce().func};const NN="We\u2019re currently experiencing technical issues that have delayed the refresh of data on the Consumer Complaint Database. We expect to refresh the data in the next few days.",LN=()=>{const t=vr(yN),e=vr(xN);return t||e?a.createElement("div",null,a.createElement(TA,{text:NN})):null},MA=()=>{const t=vr(bA),e=vr(aS),r=vr($u),i=Si(),g=C=>{ma("Print","tab:"+C),i(ob())};return a.createElement("div",null,a.createElement("summary",{className:"action-bar",id:"search-summary"},a.createElement("div",null,e===t?a.createElement("h2",null,"Showing\xA0",a.createElement(Rh,{value:t}),"\xA0total complaints"):a.createElement("h2",null,"Showing\xA0",a.createElement(Rh,{value:e}),"\xA0matches out of\xA0",a.createElement(Rh,{value:t}),"\xA0total complaints")),a.createElement("div",null,a.createElement("h3",{className:"h4 flex-all export-results"},a.createElement("button",{className:"a-btn a-btn__link export-btn","data-gtm_ignore":"true",onClick:()=>{ma("Export",r+":User Opens Export Modal"),i(td(Ty))}},"Export data"),a.createElement("button",{className:"a-btn a-btn__link print-preview",onClick:()=>{g(r)}},si("printer"),"Print")))),a.createElement(LN,null))},R4={},kk=300,Ok=({row:t})=>{const e=J=>{const dt=/(<em>)?(.*?)(<\/em>)?/gi;return J.replace(dt,"$2")},r=e(t.complaint_id),i="detail/"+e(t.complaint_id),g=J=>a.createElement("span",{className:"body-copy",dangerouslySetInnerHTML:{__html:J}}),C=(J,dt)=>{const St=J.length>kk;return J=J.substring(0,kk),J?a.createElement("div",null,a.createElement("br",null),a.createElement("h4",null,"Consumer Complaint Narrative"),g(J),St?a.createElement("span",null," ",a.createElement(qc,{to:dt},"[...]")):null):null};return a.createElement("li",{className:"card-container"},a.createElement("div",{className:"card"},a.createElement("div",{className:"card-left layout-column"},a.createElement("h3",{className:"to-detail"},a.createElement(qc,{to:i,"aria-label":"Complaint "+G1(r)},r)),a.createElement("h4",null,"Company name"),g(t.company),a.createElement("br",null),a.createElement("h4",null,"Company response to consumer"),g(t.company_response),a.createElement("br",null),a.createElement("h4",null,"Timely response?"),g(t.timely)),a.createElement("div",{className:"card-right layout-column"},a.createElement("div",{className:"layout-row"},a.createElement("div",{className:"layout-row"},a.createElement("h4",null,"Date received:"),a.createElement("span",{className:"body-copy"},a.createElement(Dg,{tabIndex:"0",value:t.date_received}))),a.createElement("div",{className:"spacer"}),a.createElement("div",{className:"layout-row"},a.createElement("h4",null,"Consumer's state:"),g(t.state))),a.createElement("br",null),a.createElement("h4",null,"Product"),a.createElement("h3",{dangerouslySetInnerHTML:{__html:t.product}}),t.sub_product?a.createElement("div",{className:"layout-row"},a.createElement("span",{className:"body-copy subitem"},"Sub-product:"),g(t.sub_product)):null,a.createElement("br",null),a.createElement("h4",null,"Issue"),a.createElement("h3",{dangerouslySetInnerHTML:{__html:t.issue}}),t.sub_issue?a.createElement("div",{className:"layout-row"},a.createElement("span",{className:"body-copy subitem"},"Sub-issue:"),g(t.sub_issue)):null,C(t.complaint_what_happened||"",i))))};Ok.propTypes={row:Ce().object.isRequired};const Dk=({text:t})=>a.createElement("div",{role:"alert",className:"m-notification m-notification__visible m-notification__error"},si("error-round"),a.createElement("div",{className:"m-notification_content"},a.createElement("div",{className:"m-notification_message"},t))),lS=Dk;Dk.propTypes={text:Ce().string.isRequired};const I4={};class Nk extends a.Component{render(){return a.createElement("section",{className:"filter-panel-toggle"},a.createElement("div",{className:"m-btn-group"},a.createElement("p",null,"\xA0"),a.createElement("button",{className:"a-btn",onClick:()=>this.props.onFilterToggle()},this.props.hasFilters?"Close Filters":"Filter results")))}}const AA=Oa(t=>({hasFilters:t.view.hasFilters}),t=>({onFilterToggle:()=>{t(Bg())}}))(Nk);Nk.propTypes={onFilterToggle:Ce().func.isRequired,hasFilters:Ce().bool};const Lk="has_narrative",RN=()=>{const t=vr(Ep),e=Si();return a.createElement("section",{className:"m-btn-group"},a.createElement("p",null,"Read"),a.createElement("button",{"aria-label":"Show only complaints with narratives",id:"btn-add-narratives",className:"a-btn"+Fc(!0,t),disabled:t,onClick:()=>{e(S_(Lk,""))}},"Only complaints with narratives"),a.createElement("button",{"aria-label":"Show all complaints",id:"btn-remove-narratives",className:"a-btn"+Fc(!1,!!t),disabled:!t,onClick:()=>{e(Ig(Lk,""))}},"All complaints"))},IN=()=>{const t=Si(),e=vr(r_),r=vr(Zf)||1,i=()=>{t(Hx())},g=()=>{t(k_())};return a.createElement("nav",{className:"m-pagination",role:"navigation","aria-label":"Pagination"},a.createElement("button",{className:"a-btn m-pagination_btn-prev",onClick:()=>g(),disabled:e<=1},a.createElement("span",{className:"a-btn_icon a-btn_icon__on-left"},si("left")),"Previous"),a.createElement("button",{className:"a-btn m-pagination_btn-next",onClick:()=>i(),disabled:e>=r},"Next",a.createElement("span",{className:`a-btn_icon
|
|
342
342
|
a-btn_icon__on-right`},si("right"))),a.createElement("div",{className:"m-pagination_form"},a.createElement("label",{className:"m-pagination_label"},"Page ",e)))},uS=({id:t,handleChange:e,label:r,title:i,value:g,values:C})=>{const J="select-"+t,dt=(0,a.useMemo)(()=>Array.isArray(C)?Object.prototype.hasOwnProperty.call(C[0],"name")?C:C.map(St=>({name:St,value:St,disabled:St.disabled})):Object.keys(C).map(St=>({name:C[St],value:St,disabled:St.disabled})),[C]);return a.createElement("section",{className:"cf-select","data-tour":J},a.createElement("label",{className:"u-visually-hidden",htmlFor:J},r),a.createElement("p",null,i),a.createElement("select",{value:g,id:J,onChange:e},dt.map(St=>a.createElement("option",{disabled:[St.value,St.name].includes(g)||St.disabled,key:St.name,value:St.value||St.name},St.name))))},Rk=uS;uS.propTypes={id:Ce().string,handleChange:Ce().func.isRequired,label:Ce().string,title:Ce().string,values:Ce().oneOfType([Ce().array,Ce().object]).isRequired,value:Ce().oneOfType([Ce().string,Ce().number])};const B4={},cS=()=>a.createElement("span",{className:"separator"}),H4={},PA=()=>{const t=Si(),e=vr($u),r=i=>{const g=i.toLowerCase()+" tab";return e===i?g+" active":g};return a.createElement("div",{className:"tabbed-navigation","data-tour":"tabbed-navigation"},a.createElement("section",null,a.createElement("button",{className:r("Trends"),onClick:()=>t(Ku("Trends"))},si("chart"),"Trends"),a.createElement("button",{className:r("List"),onClick:()=>t(Ku("List"))},si("list"),"List"),a.createElement("button",{className:r("Map"),onClick:()=>t(Ku("Map"))},si("map"),"Map")))},jN=t=>t.results.isLoading,FN=t=>t.results.items,BN="ERROR",HN="NO_RESULTS",zN="RESULTS",UN=()=>{const t=Si(),e=vr(vN),r=vr(a_),i=vr(AC),g=vr(jN),C=vr(FN),J=vr(cw),dt=(0,a.useMemo)(()=>J<750,[J]),St=he=>{const ye=he.target.value;ma("Dropdown",ye+" results"),t(O_(ye))},xt=he=>{const{value:ye}=he.target;ma("Dropdown",og[ye]),t(uv(ye))},Ct=()=>{let he=HN;return e?he=BN:C.length>0&&(he=zN),he},ae={ERROR:()=>a.createElement(lS,{text:"There was a problem executing your search"}),NO_RESULTS:()=>a.createElement("h2",null,"No results were found for your search"),RESULTS:()=>a.createElement("ul",{className:"cards-panel"},C.map(he=>a.createElement(Ok,{key:he.complaint_id,row:he})))},ue=Ct();return a.createElement("section",{className:"list-panel"},a.createElement(MA,null),a.createElement(PA,null),!!dt&&a.createElement(sS,null),a.createElement(AA,null),a.createElement("div",{className:"layout-row refine-bar"},a.createElement(cS,null),a.createElement(uS,{label:"Select the number of results to display at a time",title:"Show",values:Ph,id:"size",value:r,handleChange:St}),a.createElement(uS,{label:"Choose the order in which the results are displayed",title:"Sort",values:og,id:"sort",value:i,handleChange:xt}),a.createElement(RN,null)),ae[ue](),a.createElement(IN,null),a.createElement(_p,{isLoading:g||!1}))},z4={},WN=()=>{const t=Si(),e=vr(s_),r=e?e.filter(i=>i in Oy).map(i=>Oy[i]).join(", "):"";return a.createElement("div",{className:"map-toolbar"},a.createElement("section",{className:"state-heading"},!r&&a.createElement("span",null,"United States of America"),a.createElement("span",null,r),!!r&&a.createElement("button",{"aria-label":"Clear all map filters",className:"a-btn a-btn__link",onClick:()=>{t(qu())}},si("delete-round"),"Clear")),!!r&&a.createElement("section",{className:"state-navigation"},a.createElement("button",{className:"list a-btn a-btn__link",onClick:()=>{t(Bx())}},"View complaints for filtered states")))},GN=()=>{const t=vr(wx),e=vr(ev),r=Si(),i=(0,a.useMemo)(()=>e?Fc(t,Ys):"a-btn__disabled",[t,e]);return a.createElement("section",{className:"m-btn-group"},a.createElement("p",null,"Map shading"),a.createElement("button",{"aria-label":"Display map by complaints",className:"a-btn"+Fc(t,To),onClick:()=>{r(Fx(To))},disabled:t===To},"Complaints"),a.createElement("button",{"aria-label":"Display map by complaints per 1,000 people",className:"a-btn "+i,disabled:t===Ys,onClick:()=>{r(Fx(Ys))}},"Complaints per 1,000 ",a.createElement("span",null,"population")))},U4={};var us=Un(4375),hw=Un(6659),VN=Un(264);class Ik extends a.Component{constructor(e){super(e),this._selectFocus=this._selectFocus.bind(this),this._toggleRow=this._toggleRow.bind(this)}_formatTip(e){return e.toLocaleString()+" complaints"}_getHeight(e){return e===1?100:e*60}_wrapText(e,r,i){e.each(function(){const g=us.select(this),C=i?g.attr("x"):0;if(g.node().children&&g.node().children.length>0)return;const J=g.text().split(/\s+/).reverse(),dt=1.1,St=g.attr("y")||0,xt=parseFloat(g.attr("dy")||0);let Ct,Ut=[],Wt=0,Kt=0,ae=g.text(null).append("tspan").attr("x",C).attr("y",St).attr("dy",xt+"em");for(;Ct=J.pop();)Ut.push(Ct),ae.text(Ut.join(" ")),ae.node().getComputedTextLength()>r&&(Ut.pop(),ae.text(Ut.join(" ")),Ut=[Ct],ae=g.append("tspan").attr("x",C).attr("y",St).attr("dy",++Wt*dt+xt+"em").text(Ct),Kt++);if(Kt&&!window.document.documentMode){const ue=us.select(g.node().parentNode).select(".view-more-background"),he=ue.attr("height"),ye=parseFloat(he)+Kt*12;ue.attr("height",ye)}})}componentDidMount(){this._redrawChart()}componentDidUpdate(e){const r=this.props;pp(e)!==pp(r)&&this._redrawChart()}_redrawChart(){const{colorScheme:e,data:r,id:i,isPrintMode:g,total:C}=this.props,J=gg(r).filter(ye=>ye.name&&g?ye.name.indexOf("Visualize trends for")===-1:!0);if(!J||!J.length||!C)return;const dt=(0,hw.miniTooltip)();dt.valueFormatter(this._formatTip);const St=C/(0,VN.Fp)(J,ye=>ye.value),xt="#row-chart-"+i;us.selectAll(xt+" .row-chart").remove();const Ct=us.select(xt),Ut=g?750:Ct.node().getBoundingClientRect().width+30,Wt=this._getHeight(J.length),Kt=(0,hw.row)(),ae=Ut/4,ue=Ut<600?40:-65;Kt.margin({left:ae,right:ue,top:20,bottom:10}).colorSchema(e).backgroundColor("#f7f8f9").paddingBetweenGroups(25).enableLabels(!0).labelsTotalCount(C.toLocaleString()).labelsNumberFormat(",d").outerPadding(.1).percentageAxisToMaxRatio(St).yAxisLineWrapLimit(2).yAxisPaddingBetweenChart(20).width(Ut).wrapLabels(!0).height(Wt).on("customMouseOver",dt.show).on("customMouseMove",dt.update).on("customMouseOut",dt.hide),Ct.datum(J).call(Kt),us.selectAll(xt+" .row-chart .metadata-group").datum([]).call(dt),this._wrapText(us.select(xt).selectAll(".tick text"),ae),this._wrapText(us.select(xt).selectAll(".view-more-label"),Ut/2,!0),Ct.selectAll(".y-axis-group .tick").on("click",this._toggleRow),Ct.selectAll(".view-more-label").on("click",this._selectFocus)}_selectFocus(e){const r=this.props.lens==="Overview"?"Product":this.props.lens,i=Mo(this.props.aggs,r.toLowerCase(),[]);this.props.selectFocus(e,r,i)}_toggleRow(e){const{data:r,expandedRows:i}=this.props;r.filter(C=>C.isParent).map(C=>C.name).includes(e)&&(i.includes(e)?this.props.collapseRow(e):this.props.expandRow(e))}render(){return this.props.total>0&&a.createElement("div",{className:"row-chart-section"},a.createElement("h3",null,this.props.title),a.createElement("p",null,this.props.helperText),a.createElement("div",{id:"row-chart-"+this.props.id}))}}const hS=Oa(t=>{const{tab:e}=t.query,r=e===Ah?"Product":t.query.lens,{aggs:i}=t,{expandedRows:g,isPrintMode:C,width:J}=t.view;return{aggs:i,expandedRows:g,lens:r,isPrintMode:C,tab:e,width:J}},t=>({selectFocus:(e,r,i)=>{V_();let g=[];if(r==="Company")g.push(e.parent);else{const C=i.find(dt=>dt.key===e.parent),J="sub_"+r.toLowerCase()+".raw";g=C?yg(e.parent,C[J].buckets):[]}ma("Trends click",e.parent),t(R_(e.parent,r,[...g]))},collapseRow:e=>{ma("Bar chart collapsed",e),t(Hg(e))},expandRow:e=>{ma("Bar chart expanded",e),t(lb(e))}}))(Ik);Ik.propTypes={isPrintMode:Ce().bool,lens:Ce().string,aggs:Ce().object,selectFocus:Ce().func,expandedRows:Ce().array,collapseRow:Ce().func,expandRow:Ce().func,helperText:Ce().string,id:Ce().string.isRequired,colorScheme:Ce().oneOfType([Ce().array,Ce().bool]).isRequired,data:Ce().array.isRequired,title:Ce().string.isRequired,total:Ce().number.isRequired};const V4={};var YN=Un(3183),XN=Un.n(YN),$N=Un(8792),kA=Un.n($N);const qN={AL:"M550,-337L633,-337,633,-253,550,-253,550,-337",AK:"M92,-245L175,-245,175,-162,92,-162,92,-245",AZ:"M92,-428L175,-428,175,-345,92,-345,92,-428",AR:"M367,-428L450,-428,450,-345,367,-345,367,-428",CA:"M0,-520L83,-520,83,-437,0,-437,0,-520",CO:"M183,-520L267,-520,267,-437,183,-437,183,-520",CT:"M825,-612L908,-612,908,-528,825,-528,825,-612",DE:"M825,-520L908,-520,908,-437,825,-437,825,-520",DC:"M733,-428L817,-428,817,-345,733,-345,733,-428",FL:"M733,-245L817,-245,817,-162,733,-162,733,-245",GA:"M642,-337L725,-337,725,-253,642,-253,642,-337",HI:"M0,-245L83,-245,83,-162,0,-162,0,-245",ID:"M92,-703L175,-703,175,-620,92,-620,92,-703",IL:"M458,-703L542,-703,542,-620,458,-620,458,-703",IN:"M458,-612L542,-612,542,-528,458,-528,458,-612",IA:"M367,-612L450,-612,450,-528,367,-528,367,-612",KS:"M275,-428L358,-428,358,-345,275,-345,275,-428",KY:"M458,-520L542,-520,542,-437,458,-437,458,-520",LA:"M367,-337L450,-337,450,-253,367,-253,367,-337",ME:"M917,-887L1000,-887,1000,-803,917,-803,917,-887",MD:"M733,-520L817,-520,817,-437,733,-437,733,-520",MA:"M825,-703L908,-703,908,-620,825,-620,825,-703",MI:"M550,-703L633,-703,633,-620,550,-620,550,-703",MN:"M367,-703L450,-703,450,-620,367,-620,367,-703",MS:"M458,-337L542,-337,542,-253,458,-253,458,-337",MO:"M367,-520L450,-520,450,-437,367,-437,367,-520",MT:"M183,-703L267,-703,267,-620,183,-620,183,-703",NE:"M275,-520L358,-520,358,-437,275,-437,275,-520",NV:"M92,-612L175,-612,175,-528,92,-528,92,-612",NH:"M917,-795L1000,-795,1000,-712,917,-712,917,-795",NJ:"M733,-612L817,-612,817,-528,733,-528,733,-612",NM:"M183,-428L267,-428,267,-345,183,-345,183,-428",NY:"M733,-703L817,-703,817,-620,733,-620,733,-703",NC:"M550,-428L633,-428,633,-345,550,-345,550,-428",ND:"M275,-703L358,-703,358,-620,275,-620,275,-703",OH:"M550,-612L633,-612,633,-528,550,-528,550,-612",OK:"M275,-337L358,-337,358,-253,275,-253,275,-337",OR:"M0,-612L83,-612,83,-528,0,-528,0,-612",PA:"M642,-612L725,-612,725,-528,642,-528,642,-612",RI:"M917,-612L1000,-612,1000,-528,917,-528,917,-612",SC:"M642,-428L725,-428,725,-345,642,-345,642,-428",SD:"M275,-612L358,-612,358,-528,275,-528,275,-612",TN:"M458,-428L542,-428,542,-345,458,-345,458,-428",TX:"M275,-245L358,-245,358,-162,275,-162,275,-245",UT:"M92,-520L175,-520,175,-437,92,-437,92,-520",VT:"M825,-795L908,-795,908,-712,825,-712,825,-795",VA:"M642,-520L725,-520,725,-437,642,-437,642,-520",WA:"M0,-703L83,-703,83,-620,0,-620,0,-703",WV:"M550,-520L633,-520,633,-437,550,-437,550,-520",WI:"M458,-795L542,-795,542,-712,458,-712,458,-795",WY:"M183,-612L267,-612,267,-528,183,-528,183,-612"};var KN=Object.defineProperty,ZN=Object.defineProperties,QN=Object.getOwnPropertyDescriptors,jk=Object.getOwnPropertySymbols,JN=Object.prototype.hasOwnProperty,t5=Object.prototype.propertyIsEnumerable,Fk=(t,e,r)=>e in t?KN(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,e5=(t,e)=>{for(var r in e||(e={}))JN.call(e,r)&&Fk(t,r,e[r]);if(jk)for(var r of jk(e))t5.call(e,r)&&Fk(t,r,e[r]);return t},n5=(t,e)=>ZN(t,QN(e));const r5=1e4,i5=1e5,o5=1e6,fw="#ffffff";function a5(t,e){const r=t.map(C=>C.displayValue),i=new Set(r);let g=us.scaleQuantile().range([fw,...e]);return i.size<e.length?g=g.domain([...i]):g=g.domain(r),g}function s5(t){return t<1e3?t.toLocaleString():t<r5?(Math.floor(t/100)/10).toFixed(1)+"K":t<o5?Math.floor(t/1e3)+"K":(Math.floor(t/i5)/10).toFixed(1)+"M"}function l5(t,e){const r=t.map(J=>Math.round(J)),i=t.map(J=>Math.ceil(J)),g=Array.from(new Set(r)).filter(J=>J>0),C=[{from:0,color:fw,name:"\u2265 0",shortName:"\u2265 0"}];return g.forEach(J=>{const dt=r.indexOf(J),St=i[dt]===J?"\u2265":">",xt=J.toLocaleString(),Ct=s5(J);C.push({from:J,color:e(i[dt]),name:`${St} ${xt}`,shortName:`${St} ${Ct}`})}),C}function u5(t,e){const r=J=>Math.floor(J*100)/100,i=t.map(J=>r(J)),g=Array.from(new Set(i)).filter(J=>J>0),C=[{from:0,color:fw,name:"\u2265 0",shortName:"\u2265 0"}];return g.forEach(J=>{const dt=i.indexOf(J),St=i[dt]===t[dt]?"\u2265":">",xt=J.toFixed(2),Ct=`${St} ${xt}`;C.push({from:J,color:e(t[dt]),name:Ct,shortName:Ct})}),C}function c5(t,e){t=t.filter(function(i){return Boolean(i.name)});const r=t.filter(i=>i.className==="selected").length;return t=t.map(function(i){const g=qN[i.name];let C=h5(i.displayValue,e);return r&&i.className==="deselected"&&(C=C.replace("1)","0.5)")),i.className!=="selected"&&C===fw&&(i.className="empty"),n5(e5({},i),{color:C,path:g})}),t}function h5(t,e){return t?e(t):fw}function f5(t){return`${t.fullName} ${t.displayValue}`}function d5(){const t=".tile-"+this.name;us.select(t).classed("hover",!1)}function p5(){const t=".tile-"+this.name;us.select(t).classed("hover",!0)}function m5(){const t=this.point.displayValue.toLocaleString();return'<div class="highcharts-data-label-state tile-'+this.point.name+" "+this.point.className+' "><span class="abbr">'+this.point.name+'</span><span class="value">'+t+"</span></div>"}function g5(){const t=this.product?'<div class="row u-clearfix"><p class="u-float-left">Product with highest complaint volume</p><p class="u-right">'+this.product+"</p></div>":"",e=this.issue?'<div class="row u-clearfix"><p class="u-float-left">Issue with highest complaint volume</p><p class="u-right">'+this.issue+"</p></div>":"",r=this.value.toLocaleString(),i=this.perCapita?'<div class="row u-clearfix"><p class="u-float-left">Per 1000 population</p><p class="u-right">'+this.perCapita+"</p></div>":"";return'<div class="title">'+this.fullName+'</div><div class="row u-clearfix"><p class="u-float-left">Complaints</p><p class="u-right">'+r+"</p></div>"+i+t+e}function y5(t){const e=t.options.bins;let r=65;const i=17;let g=5;const C=t.chartWidth<600;C&&(r=45,g=1);const J=t.renderer.g("legend-container").add(),dt=t.renderer.g("legend-title").translate(g,0).add(J);t.renderer.label("Key",0,0,null,null,null,!0,!1,"legend-key").add(dt);const St=e.length*(r+g);t.renderer.path(["M",0,0,"L",St,0]).attr({class:"separator","stroke-width":1,stroke:"gray"}).translate(0,25).add(dt);const xt='Map shading: <span class="type">'+t.options.legend.legendTitle+"</span>";t.renderer.label(xt,0,28,null,null,null,!0,!1,"legend-description").add(dt);const Ct=t.renderer.g("legend__tile-map").translate(7,50).add(J);for(let Ut=0;Ut<e.length;Ut++){const Wt=t.renderer.g(`g${Ut}`).translate(Ut*(r+g),0).add(Ct),Kt=e[Ut];t.renderer.rect(0,0,r,i).attr({fill:Kt.color}).addClass("legend-box").add(Wt),t.renderer.text(C?Kt.shortName:Kt.name,0,i).addClass("legend-text").translate(3,-3).add(Wt)}}XN()(kA()),kA().setOptions({lang:{thousandsSep:","}});const v5=["rgba(212, 231, 230, 1)","rgba(180, 210, 209, 1)","rgba(158, 196, 195, 1)","rgba(137, 182, 181, 1)","rgba(112, 166, 165, 1)","rgba(87, 150, 149, 1)"];class x5{constructor({el:e,data:r,isPerCapita:i,events:g,height:C,hasTip:J,width:dt}){const St=a5(r,v5),xt=St.quantiles();let Ct,Ut;i?(Ct=u5(xt,St),Ut="Complaints per 1,000"):(Ct=l5(xt,St),Ut="Complaints"),r=c5(r,St);const Wt={bins:Ct,chart:{styledMode:!0,height:C,width:dt},colorAxis:{dataClasses:Ct,dataClassColor:"category"},title:!1,credits:!1,legend:{enabled:!1,legendTitle:Ut},tooltip:{className:"tooltip",enabled:J,headerFormat:"",pointFormatter:g5,useHTML:!0},plotOptions:{series:{dataLabels:{enabled:!0,formatter:m5,useHTML:!0},states:{hover:{enabled:J}}}},series:[{type:"map",clip:!1,data:r,accessibility:{description:Ut+" in the United States",exposeAsGroupOnly:!1,keyboardNavigation:{enabled:!0},descriptionFormatter:f5}}]};g&&J&&(Wt.plotOptions.series.events=g,Wt.plotOptions.series.point={events:{mouseOver:p5,mouseOut:d5}});const Kt=[{width:700,legendHeight:20},{width:580,legendHeight:25},{width:500,legendHeight:35},{width:400,legendHeight:60},{width:370,legendHeight:70}];let ae=10;Kt.forEach(ue=>{dt<ue.width&&(ae=ue.legendHeight)}),Wt.chart.marginRight=0,Wt.chart.marginLeft=0,Wt.chart.marginTop=ae,Wt.chart.height+=ae,this.draw(e,Wt)}draw(e,r){kA().mapChart(e,r,y5)}}const b5=x5,w5=t=>t.map.activeCall,_5=t=>t.map.error,E5=t=>t.map.results,S5=t=>t.map.results.state;var C5=Object.defineProperty,T5=Object.defineProperties,M5=Object.getOwnPropertyDescriptors,Bk=Object.getOwnPropertySymbols,A5=Object.prototype.hasOwnProperty,P5=Object.prototype.propertyIsEnumerable,Hk=(t,e,r)=>e in t?C5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k5=(t,e)=>{for(var r in e||(e={}))A5.call(e,r)&&Hk(t,r,e[r]);if(Bk)for(var r of Bk(e))P5.call(e,r)&&Hk(t,r,e[r]);return t},O5=(t,e)=>T5(t,M5(e));const D5=()=>{const t=Si(),e=vr(wx),r=vr(s_),i=vr(S5),g=(0,a.useMemo)(()=>i.map(Ct=>{const Ut=Mo(Dy,Ct.name,{name:"",population:1});return Ct.abbr=Ct.name,Ct.fullName=Ut.name,Ct.perCapita=L5(Ct,Ut),Ct}),[i]),C=vr(uw),J=vr(cw),dt=!C,St=(0,a.useCallback)(Ct=>{const{abbr:Ut,fullName:Wt}=Ct.point,Kt={abbr:Ut,name:Wt};r&&r.includes(Ut)?(ma("State Event: remove",Kt.abbr),t(jg(Kt))):(ma("State Event: add",Kt.abbr),t(Rl(Kt)))},[r,t]),xt=(0,a.useCallback)(()=>{const Ct=document.getElementById("tile-chart-map"),Ut=C?650:Ct.clientWidth||J,Wt=N5(g,e,r),Kt={el:Ct,data:Wt,isPerCapita:e!==To,events:{click:St},hasTip:dt,width:Ut};Kt.height=Ut*.75;const ae=new b5(Kt)},[g,e,dt,C,r,J,St]);return(0,a.useEffect)(()=>(xt(),function(){const Ut=document.getElementById("tile-chart-map");if(Ut)for(;Ut.firstChild;)Ut.firstChild.remove()}),[xt]),a.createElement("div",null,a.createElement("div",{id:"tile-chart-map",className:`cfpb-chart ${C?"print":""}`,"data-chart-type":"tile_map","data-testid":"tile-chart-map"}))};function N5(t,e,r){const i=e===To;return t.map(C=>O5(k5({},C),{displayValue:i?C.value:C.perCapita,className:R5(r,C.name)}))}function L5(t,e){const r=e.population;return(t.value/r*1e3).toFixed(2)}const R5=(t,e)=>!t||t.length===0?"":t.includes(e)?"selected":"deselected",I5="\u201CComplaints per 1,000 population\u201D is not available with your filter selections.",j5="Product the consumer identified in the complaint. Click on a product to expand sub-products",F5=()=>{const t=Si(),e=vr(aS),r=vr(w5),i=vr(E5),g=vr(_5),C=vr(ev),J=vr(MC),dt=vr(tv),St=vr(Kf),xt=vr(PN),Ut=vr(cw)<750,Wt=!C&&J,Kt=(0,a.useMemo)(()=>Wg(i.product,!1,"Product",xt),[i,xt]),ae=`Product by highest complaint volume ${kh(St)} to ${kh(dt)}`,ue=()=>{t(Fh())};return a.createElement("section",{className:"map-panel"},a.createElement(MA,null),a.createElement(PA,null),!!g&&a.createElement(lS,{text:"There was a problem executing your search"}),!!Wt&&a.createElement(TA,{text:I5,closeFn:ue}),!!Ut&&a.createElement(sS,null),a.createElement(AA,null),a.createElement("div",{className:"layout-row refine-bar"},a.createElement(cS,null),a.createElement(GN,null)),a.createElement(D5,null),a.createElement(WN,null),a.createElement(hS,{id:"product",colorScheme:Kt.colorScheme,data:Kt.data,title:ae,helperText:j5,total:e}),a.createElement(_p,{isLoading:!!r}))},Y4={},B5=()=>{const t=vr(bA),e=vr(aS),r=vr(Kf),i=vr(tv),g=kh(r)+" - "+kh(i),C=vr(Og),J=vr(uw),dt=(0,a.useMemo)(()=>t===e?a.createElement("div",null,"Showing ",a.createElement("span",null,e.toLocaleString())," complaints"):a.createElement("div",null,"Showing ",a.createElement("span",null,e.toLocaleString())," out of",a.createElement("span",null," ",t.toLocaleString()," ")," total complaints"," "),[t,e]);return J?a.createElement("section",{className:"print-info"},a.createElement("p",null,a.createElement("span",null,"Dates:")," ",g),!!C&&a.createElement("p",null,a.createElement("span",null,"Search Term:")," ",C),a.createElement("div",null,dt)):null},H5=()=>vr(uw)?a.createElement("section",{className:"print-info-footer"},a.createElement("p",null,a.createElement("span",null,"URL:")," ",window.location.href)):null,X4={},$4={},z5=t=>t.trends.chartType,U5=()=>{const t=Si(),e=vr(z5),r=i=>{ma("Button","Trends:"+i),t(Vx(i))};return a.createElement("section",{className:"chart-toggles m-btn-group"},a.createElement("p",null,"Chart type"),a.createElement("button",{"aria-label":"Toggle line chart",className:"a-btn"+Fc("line",e),disabled:e==="line",onClick:()=>{r("line")}},si("line-chart")),a.createElement("button",{"aria-label":"Toggle area chart",className:"a-btn"+Fc("area",e),disabled:e==="area",onClick:()=>{r("area")}},si("area-chart")))},W5="CFPB updated product and issue options in April 2017 and August 2023.",G5="https://www.consumerfinance.gov/data-research/consumer-complaints/#past-changes";class zk extends a.Component{_spanFormatter(e){const{focus:r,lens:i,hasCompanyTypeahead:g,subLens:C}=this.props,J=[],dt=r?C:i,St={Product:"products",product:"products",issue:"issues","Sub-Issue":"sub-issues",sub_product:"sub-products",Company:"companies"};return e.name==="Other"?(J.push(a.createElement("span",{className:"u-left",key:e.name},"All other ",St[dt])),J):r?(J.push(a.createElement("span",{className:"u-left",key:e.name},e.name)),J):(J.push(a.createElement("span",{className:"u-left",id:jc("focus-"+e.name),key:e.name},e.name)),g&&J.push(a.createElement("button",{className:"u-right a-btn a-btn__link close",key:"close_"+e.name,onClick:()=>{this.props.remove(e.name)}},si("delete"))),J)}render(){const{focus:e,hasTotal:r,tooltip:i}=this.props;return i&&i.values?a.createElement("section",{className:"tooltip-container u-clearfix "+e},!!this.props.hasCompanyTypeahead&&a.createElement(sw,{id:"external-tooltip"}),a.createElement("p",{className:"a-micro-copy"},a.createElement("span",{className:"heading"},this.props.tooltip.heading),a.createElement("span",{className:"date"},this.props.tooltip.date)),a.createElement("div",null,a.createElement("ul",{className:"tooltip-ul"},i.values.map((g,C)=>a.createElement("li",{className:"color__"+g.colorIndex,key:C+"-id"},this._spanFormatter(g),a.createElement("span",{className:"u-right"},g.value.toLocaleString())))),!!r&&a.createElement("ul",{className:"m-list__unstyled tooltip-ul total"},a.createElement("li",null,a.createElement("span",{className:"u-left"},"Total"),a.createElement("span",{className:"u-right"},i.total.toLocaleString())))),a.createElement("p",{className:"a-micro-copy warn"},W5," ",a.createElement("a",{href:G5,target:"_blank",rel:"noopener noreferrer","aria-label":`Learn more about Product and
|
|
343
|
-
Issue changes (opens in new window)`},"Learn More"))):null}}const V5=Oa(t=>{const{focus:e,lens:r,subLens:i}=t.query,{chartType:g,tooltip:C}=t.trends;return{focus:e?"focus":"",lens:r,subLens:i,hasCompanyTypeahead:r==="Company"&&!e,hasTotal:g==="area",tooltip:YC(C)}},t=>({remove:e=>{t(Ig("company",e))}}))(zk);zk.propTypes={focus:Ce().string,lens:Ce().string.isRequired,hasCompanyTypeahead:Ce().bool.isRequired,subLens:Ce().string,remove:Ce().func.isRequired,hasTotal:Ce().bool,tooltip:Ce().oneOfType([Ce().bool,Ce().object]).isRequired};const Z4={},Q4={},Uk={Company:{tab1:{displayName:"Products",filterName:"product"}},Product:{tab1:{displayName:"Sub-products",filterName:"sub_product"},tab2:{displayName:"Issues",filterName:"issue"}}};class Wk extends a.Component{_getTabClass(e){e=e.toLowerCase();const r=["tab",e],i=new RegExp(this.props.subLens.toLowerCase(),"g");return e.replace("-","_").match(i)&&r.push("active"),r.join(" ")}render(){const{lens:e,hasProductTab:r}=this.props;if(e==="Overview")return null;const i=Uk[e];return a.createElement("div",{className:"tabbed-navigation lens"},a.createElement("section",null,!!r&&a.createElement("button",{className:this._getTabClass(i.tab1.filterName),onClick:()=>{this.props.onTab(e,i.tab1.filterName)}},i.tab1.displayName),!!Uk[e].tab2&&a.createElement("button",{className:this._getTabClass(i.tab2.filterName),onClick:()=>{this.props.onTab(e,i.tab2.filterName)}},i.tab2.displayName)))}}const Y5=(t,e,r)=>{if(e){if(r["sub-product"]&&r["sub-product"].length)return!0}else return!0;return!1},Gk=Oa(t=>{const{focus:e,lens:r,subLens:i}=t.query,{results:g}=t.trends;return{focus:e,lens:r,hasProductTab:Y5(r,e,g),subLens:i}},t=>({onTab:(e,r)=>{const i={sub_product:"Sub-products",issue:"Issues",product:"Products"};ma("Button",e+":"+i[r]),t(Xx(r.toLowerCase()))}}))(Wk);Wk.propTypes={subLens:Ce().string.isRequired,lens:Ce().string.isRequired,hasProductTab:Ce().bool,onTab:Ce().func.isRequired};class Vk extends a.Component{render(){const{focus:e,lens:r,total:i}=this.props;return a.createElement("div",{className:"focus-header"},a.createElement("button",{className:"a-btn a-btn__link clear-focus",id:"clear-focus",onClick:()=>{this.props.clearFocus(r)}},si("left"),"View "+r.toLowerCase()+" trends"),a.createElement("div",null,a.createElement("section",{className:"focus"},a.createElement("h1",null,e),a.createElement("span",{className:"divider"}),a.createElement("h2",null,i," Complaints"))),a.createElement(Gk,{showTitle:!1,key:"lens-tab"}))}}const X5=Oa(t=>({focus:t.query.focus,lens:t.query.lens,total:t.trends.total.toLocaleString()}),t=>({clearFocus:()=>{t(I_())}}))(Vk);Vk.propTypes={focus:Ce().string,lens:Ce().string.isRequired,total:Ce().string.isRequired,clearFocus:Ce().func.isRequired};const r6={};var $5=Un(9748),fS=Un.n($5),q5=Object.defineProperty,K5=(t,e,r)=>e in t?q5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Z5=(t,e,r)=>(K5(t,typeof e!="symbol"?e+"":e,r),r);class Yk extends a.Component{constructor(e){super(e),Z5(this,"tip",null),this._updateTooltip=this._updateTooltip.bind(this),this._updateInternalTooltip=this._updateInternalTooltip.bind(this)}componentDidMount(){this._redrawChart()}componentDidUpdate(e){const r=this.props;(pp(e.data)!==pp(r.data)||e.width!==r.width||e.isPrintMode!==r.isPrintMode)&&this._redrawChart()}_updateTooltip(e){fu(this.props.tooltip.date,e.date)||this.props.tooltipUpdated({date:e.date,dateRange:this.props.dateRange,interval:this.props.interval,values:e.topics})}_updateInternalTooltip(e,r,i){const{dateRange:g,interval:C}=this.props;this.tip.title(db(e.date,C,g,!1)),this.tip.update(e,r,i)}_chartWidth(e){const{lens:r,isPrintMode:i}=this.props;return i?r==="Overview"?750:500:us.select(e).node().getBoundingClientRect().width}_redrawChart(){const{colorMap:e,dateRange:r,interval:i,lens:g,processData:C,hasChart:J}=this.props;if(!J)return;const dt="#line-chart",St=us.select(dt),xt=this._chartWidth(dt);us.select(dt+" .line-chart").remove();const Ct=(0,hw.line)();this.tip=(0,hw.tooltip)().shouldShowDateInTitle(!1).topicLabel("topics").title("Complaints");const Ut=this.tip,Wt=C.dataByTopic.map(ue=>e[ue.topic]);Ct.margin({left:60,right:10,top:10,bottom:40}).initializeVerticalMarker(!0).isAnimated(!0).tooltipThreshold(1).grid("horizontal").aspectRatio(.5).width(xt).dateLabel("date").colorSchema(Wt),g==="Overview"?Ct.on("customMouseOver",Ut.show).on("customMouseMove",this._updateInternalTooltip).on("customMouseOut",Ut.hide):Ct.on("customMouseMove",this._updateTooltip),St.datum(fS()(C)).call(Ct),us.select(dt+" .metadata-group .vertical-marker-container").datum([]).call(Ut);const ae={dateRange:r,interval:i};if(g!=="Overview"){const ue=nd(C,ae);fu(this.props.tooltip.date,ue.date)||this.props.tooltipUpdated(ue)}}render(){return this.props.hasChart?a.createElement("div",{className:"chart-wrapper"},a.createElement("p",{className:"y-axis-label"},"Complaints"),a.createElement("div",{id:"line-chart"}),a.createElement("p",{className:"x-axis-label"},"Date received by the CFPB")):a.createElement(lS,{text:"Cannot display chart. Adjust your date range or date interval."})}}const Q5=Oa(t=>{const e=t.trends.results.dateRangeLine,r={from:t.query.date_received_min,to:t.query.date_received_max},i=t.query.dateInterval,g=fS()(e);r2(g,r,i);const C=Boolean(g.dataByTopic&&g.dataByTopic[0].dates.length>1);return{colorMap:t.trends.colorMap,data:e,dateRange:r,interval:i,lens:t.query.lens,isPrintMode:t.view.isPrintMode,processData:g,tooltip:t.trends.tooltip,hasChart:C,width:t.view.width}},t=>({tooltipUpdated:e=>{t(qx(e))}}))(Yk);Yk.propTypes={data:Ce().oneOfType([Ce().object,Ce().array]).isRequired,width:Ce().number,isPrintMode:Ce().bool,tooltip:Ce().oneOfType([Ce().bool,Ce().object]),tooltipUpdated:Ce().func,dateRange:Ce().object,interval:Ce().string,lens:Ce().string,colorMap:Ce().object,processData:Ce().oneOfType([Ce().object,Ce().array]),hasChart:Ce().bool};const a6={};class Xk extends a.Component{constructor(e){super(e),this._updateTooltip=this._updateTooltip.bind(this)}componentDidMount(){this._redrawChart()}componentDidUpdate(e){const r=this.props;(pp(e.data)!==pp(r.data)||e.width!==r.width||e.isPrintMode!==r.isPrintMode)&&this._redrawChart()}_updateTooltip(e){fu(this.props.tooltip.date,e.date)||this.props.tooltipUpdated({date:e.date,dateRange:this.props.dateRange,interval:this.props.interval,values:e.values})}_chartWidth(e){const{isPrintMode:r}=this.props;return r?500:us.select(e).node().getBoundingClientRect().width}_redrawChart(){const{colorMap:e,dateRange:r,filteredData:i,interval:g,hasChart:C}=this.props;if(!C)return;const J="#stacked-area-chart",dt=us.select(J),St=this._chartWidth(J);us.select(J+" .stacked-area").remove();const xt=(0,hw.stackedArea)(),Ct=i.filter(Kt=>Kt.name!=="Other"),Ut=[...new Set(Ct.map(Kt=>Kt.name))].map(Kt=>e[Kt]);Ut.push(Hh.DataLens[10]),xt.margin({left:70,right:10,top:10,bottom:40}).areaCurve("linear").initializeVerticalMarker(!0).isAnimated(!1).tooltipThreshold(1).grid("horizontal").aspectRatio(.5).width(St).dateLabel("date").colorSchema(Ut).on("customMouseMove",this._updateTooltip),dt.datum(fS()(i)).call(xt);const Wt={dateRange:r,interval:g};this.props.tooltipUpdated(J_(i,Wt))}render(){return this.props.hasChart?a.createElement("div",{className:"chart-wrapper"},a.createElement("p",{className:"y-axis-label"},"Complaints"),a.createElement("div",{id:"stacked-area-chart"}),a.createElement("p",{className:"x-axis-label"},"Date received by the CFPB")):a.createElement(lS,{text:"Cannot display chart. Adjust your date range or date interval."})}}const J5=Oa(t=>{const e=t.trends.results.dateRangeArea,r={from:t.query.date_received_min,to:t.query.date_received_max},i=t.query.dateInterval,g=fS()(e),C=xv(g,r,i),J=C.length>1;return{colorMap:t.trends.colorMap,data:e,dateRange:r,filteredData:C,interval:i,lens:t.trends.lens,isPrintMode:t.view.isPrintMode,tooltip:t.trends.tooltip,hasChart:J,width:t.view.width}},t=>({tooltipUpdated:e=>{t(qx(e))}}))(Xk);Xk.propTypes={data:Ce().array.isRequired,width:Ce().number,isPrintMode:Ce().bool,tooltip:Ce().oneOfType([Ce().bool,Ce().object]),tooltipUpdated:Ce().func,dateRange:Ce().object,interval:Ce().string,colorMap:Ce().object.isRequired,filteredData:Ce().array,hasChart:Ce().bool};const u6={},$k=5,tL={Overview:"product",Product:"product",Company:"company"};class qk extends a.Component{_showMore(){const{queryCount:e,resultCount:r}=this.props;return r<=$k?!0:e>$k&&e!==r}render(){const{diff:e,increaseDepth:r,depthReset:i,hasToggle:g}=this.props;return g?this._showMore()?a.createElement("div",{className:"trend-depth-toggle"},a.createElement("button",{className:"a-btn a-btn__link",id:"trend-depth-button",onClick:()=>{r(e)}},a.createElement("span",{className:"plus"}),"Show more")):a.createElement("div",{className:"trend-depth-toggle"},a.createElement("button",{className:"a-btn a-btn__link",id:"trend-depth-button",onClick:()=>{i()}},a.createElement("span",{className:"minus"}),"Show less")):null}}const eL=(t,e,r,i)=>t==="Overview"||e?!1:r>5||i>5,nL=Oa(t=>{const{aggs:e,query:r,trends:i}=t,{focus:g,lens:C}=r,J=tL[C],dt=Mo(i.results,J,[]).filter(Ct=>Ct.isParent).length;let St=0;J==="product"?St=Mo(e,J,[]).length:St=pg(Mo(r,J,[]).length,0,10);const xt=r[J]?r[J].filter(Ct=>Ct.indexOf(os)===-1).length:St;return{diff:St-dt,resultCount:dt,queryCount:xt,hasToggle:eL(C,g,dt,xt)}},t=>({increaseDepth:e=>{t($x(e+5))},depthReset:()=>{t(L_())}}))(qk);qk.propTypes={queryCount:Ce().number,resultCount:Ce().number.isRequired,diff:Ce().number.isRequired,increaseDepth:Ce().func.isRequired,depthReset:Ce().func.isRequired,hasToggle:Ce().bool.isRequired};const rL="\u201CDay\u201D interval is disabled when the date range is longer than one year",Kk={sub_product:"Sub-products",sub_issue:"Sub-issues",issue:"Issues",product:"Products"},Zk={product:"Product the consumer identified in the complaint. Click on a company name to expand products.",company:"Product the consumer identified in the complaint. Click on a company name to expand products.",sub_product:"Product and sub-product the consumer identified in the complaint. Click on a product to expand sub-products.",issue:"Product and issue the consumer identified in the complaint. Click on a product to expand issues.",overview:"Product the consumer identified in the complaint. Click on a product to expand sub-products"},Qk={sub_product:"Sub-products the consumer identified in the complaint",product:"Product the consumer identified in the complaint",issue:"Issues the consumer identified in the complaint"};class Jk extends a.Component{_areaChartTitle(){const{focus:e,hasOverview:r,subLens:i}=this.props;return r?"Complaints by date received by the CFPB":e?"Complaints by "+Kk[i].toLowerCase()+", by date received by the CFPB":"Complaints by date received by the CFPB"}_className(){const e=["trends-panel"];return this.props.hasOverview||e.push("external-tooltip"),e.join(" ")}_phaseMap(){const{hasCompanyOverlay:e,dataLensData:r,focusData:i,focusHelperText:g,hasOverview:C,lens:J,lensHelperText:dt,minDate:St,maxDate:xt,productData:Ct,subLensTitle:Ut,total:Wt}=this.props;return e?null:C?a.createElement(hS,{id:"product",colorScheme:Ct.colorScheme,data:Ct.data,title:"Product by highest complaint volume "+St+" to "+xt,helperText:dt,total:Wt}):this.props.focus?a.createElement(hS,{id:J,colorScheme:i.colorScheme,data:i.data,title:Ut+" "+St+" to "+xt,helperText:g,total:Wt}):[a.createElement(Gk,{key:"lens-tab",showTitle:!0}),a.createElement(hS,{id:J,colorScheme:r.colorScheme,data:r.data,title:Ut+" "+St+" to "+xt,helperText:dt,total:Wt,key:J+"row"})]}render(){const{chartType:e,hasCompanyOverlay:r,dateInterval:i,focus:g,intervals:C,isLoading:J,lens:dt,onInterval:St,onLens:xt,hasOverview:Ct,hasMobileFilters:Ut,total:Wt,isTrendsDateWarningEnabled:Kt}=this.props;return a.createElement("section",{className:this._className()},a.createElement(MA,null),a.createElement(PA,null),!!Kt&&a.createElement(TA,{text:rL,closeFn:this.props.onDismissWarning}),!!Ut&&a.createElement(sS,null),a.createElement(AA,null),a.createElement("div",{className:"layout-row refine-bar"},a.createElement(Rk,{label:"Aggregate complaints by",title:"Aggregate by",values:Vf,id:"lens",value:dt,handleChange:xt}),a.createElement(cS,null),a.createElement(Rk,{label:"Choose the Date interval",title:"Date interval",values:C,id:"interval",value:i,handleChange:St}),!Ct&&[a.createElement(cS,{key:"separator"}),a.createElement(U5,{key:"chart-toggles"})]),!!r&&a.createElement("div",{className:"layout-row company-overlay"},a.createElement("section",{className:"company-search"},a.createElement("p",null,"Choose a company to start your visualization using the type-ahead menu below. You can add more than one company to your view"),a.createElement(sw,{id:"modal-search"}))),!!g&&a.createElement(X5,null),!r&&!!Ct&&Wt>0&&a.createElement("div",{className:"layout-row"},a.createElement("section",{className:"chart-description"},a.createElement("h2",{className:"area-chart-title"},this._areaChartTitle()),a.createElement("p",{className:"chart-helper-text"},"A time series graph of complaints for the selected date range. Hover on the chart to see the count for each date interval. Your filter selections will update what you see on the graph."))),!r&&!Ct&&Wt>0&&a.createElement("div",{className:"layout-row"},a.createElement("section",{className:"chart-description"},a.createElement("h2",{className:"area-chart-title"},this._areaChartTitle()),a.createElement("p",{className:"chart-helper-text"},"A time series graph of the (up to five) highest volume complaints for the selected date range. However, you can view all of your selections in the bar chart, below. Hover on the chart to see the count for each date interval. Your filter selections will update what you see on the graph."))),!r&&Wt>0&&a.createElement(a.Fragment,null,a.createElement("div",{className:"layout-row date-range-disclaimer"},a.createElement("strong",null,"Note:\xA0 Data from incomplete time intervals are not shown")),a.createElement("div",{className:"layout-row"},a.createElement("section",{className:"chart"},e==="line"&&a.createElement(Q5,null),e==="area"&&a.createElement(J5,null)),!Ct&&a.createElement(V5,null))),Wt>0&&this._phaseMap(),a.createElement(nL,null),a.createElement(_p,{isLoading:J||!1}))}}const iL=Oa(t=>{const{company:e,dateInterval:r,date_received_max:i,date_received_min:g,lens:C,subLens:J,isTrendsDateWarningEnabled:dt}=t.query,{chartType:St,colorMap:xt,focus:Ct,isLoading:Ut,results:Wt,total:Kt}=t.trends,{expandedRows:ae}=t.view,ue=C.toLowerCase(),he=J.replace("_","-"),ye=J===""?Zk[ue]:Zk[J],We=J===""?Qk[ue]:Qk[J];return{chartType:St,companyData:Wg(Wt.company,!1,C,ae),hasCompanyOverlay:HC(C,e,Ut),dateInterval:r,focus:Ct,focusData:Wg(Wt[he],xt,C,ae),intervals:UC(g,i),isLoading:Ut,productData:Wg(Wt.product,!1,C,ae),dataLensData:Wg(Wt[ue],xt,C,ae),lens:C,minDate:kh(g),maxDate:kh(i),hasOverview:C==="Overview",hasMobileFilters:t.view.width<750,subLens:J,subLensTitle:Kk[J]+", by "+C.toLowerCase()+" from",lensHelperText:ye,focusHelperText:We,total:Kt,isTrendsDateWarningEnabled:dt}},t=>({onDismissWarning:()=>{t(cb())},onInterval:e=>{const{value:r}=e.target;ma("Dropdown","Trends:"+r),t(__(r))},onLens:e=>{const{value:r}=e.target;ma("Dropdown","Trends:"+r),t(Yx(r))}}))(Jk);Jk.propTypes={focus:Ce().string,hasOverview:Ce().bool.isRequired,subLens:Ce().string.isRequired,hasCompanyOverlay:Ce().bool,dataLensData:Ce().object,focusData:Ce().object,focusHelperText:Ce().string,lens:Ce().string.isRequired,lensHelperText:Ce().string,minDate:Ce().string,maxDate:Ce().string,productData:Ce().object,subLensTitle:Ce().string,total:Ce().number,chartType:Ce().string,dateInterval:Ce().string,intervals:Ce().array.isRequired,isLoading:Ce().bool,onInterval:Ce().func.isRequired,onLens:Ce().func.isRequired,hasMobileFilters:Ce().bool,isTrendsDateWarningEnabled:Ce().bool,onDismissWarning:Ce().func};const oL=()=>{const t=vr($u);let e;switch(t){case Ah:e=a.createElement(F5,null);break;case pa:e=a.createElement(UN,null);break;case to:default:e=a.createElement(iL,null);break}return a.createElement("div",{className:"content_main "+t.toLowerCase()},a.createElement(B5,null),e,a.createElement(H5,null))},p6={},m6={};var aL=Object.defineProperty,tO=Object.getOwnPropertySymbols,sL=Object.prototype.hasOwnProperty,lL=Object.prototype.propertyIsEnumerable,eO=(t,e,r)=>e in t?aL(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,uL=(t,e)=>{for(var r in e||(e={}))sL.call(e,r)&&eO(t,r,e[r]);if(tO)for(var r of tO(e))lL.call(e,r)&&eO(t,r,e[r]);return t};const cL="https://files.consumerfinance.gov";function hL(t){return cL+"/ccdb/complaints."+t+".zip"}function fL(t,e,r){const i=uL({},r);return i.size=e,i.format=t,i.no_aggs=!0,delete i.from,delete i.searchAfter,Nl+qg(i)}const OA="csv",nO="json",rO="filtered",Xv="full",dL=()=>{const t=Si(),e=vr(du),r=vr(aS),i=vr(bA),g=vr($u),[C,J]=(0,a.useState)(Xv),[dt,St]=(0,a.useState)(OA),[xt,Ct]=(0,a.useState)(!1);(0,a.useEffect)(()=>{r===i&&J(Xv)},[r,i]);const Ut=(0,a.useMemo)(()=>{const ae=C===Xv?hL(dt):fL(dt,r,e);return $S(ae)},[C,dt,r,e]),Wt=()=>{ma(C===Xv?"Export All Data":"Export Some Data",g+":"+dt),window.location.assign(Ut),t(td(My))},Kt=ae=>{const ue=document.getElementById("export-uri-input");ue.select(),ue.setSelectionRange(0,99999),navigator.clipboard.writeText(ue.value),ae.target.focus(),Ct(!0)};return a.createElement("section",{className:"export-modal"},a.createElement("div",{className:"header layout-row"},a.createElement("h3",{className:"flex-all"},"Export complaints"),a.createElement("button",{className:"a-btn a-btn__link","data-gtm_ignore":"true",onClick:()=>{t(Il())}},"Close",si("delete-round"))),a.createElement("div",{className:"body"},a.createElement("div",{className:"body-copy instructions"},"To download a copy of this dataset, choose the file format and which complaints you want to export below."),a.createElement("div",{className:"group"},a.createElement("div",{className:"group-title"},"Select a format for the exported file"),a.createElement("div",{className:"body-copy"},a.createElement("div",{className:"m-form-field m-form-field__radio m-form-field__lg-target"},a.createElement("input",{checked:dt===OA,className:"a-radio",id:"format_csv",onChange:()=>{Ct(!1),St(OA)},type:"radio",value:"csv"}),a.createElement("label",{className:"a-label",htmlFor:"format_csv"},"CSV")),a.createElement("div",{className:"m-form-field m-form-field__radio m-form-field__lg-target"},a.createElement("input",{checked:dt===nO,className:"a-radio",id:"format_json",onChange:()=>{Ct(!1),St(nO)},type:"radio",value:"json"}),a.createElement("label",{className:"a-label",htmlFor:"format_json"},"JSON")))),r===i?null:a.createElement("div",{className:"group"},a.createElement("div",{className:"group-title"},"Select which complaints you'd like to export"),a.createElement("div",{className:"body-copy"},a.createElement("div",{className:"m-form-field m-form-field__radio m-form-field__lg-target"},a.createElement("input",{checked:C===rO,className:"a-radio",id:"dataset_filtered",onChange:()=>{Ct(!1),J(rO)},type:"radio",value:"filtered"}),a.createElement("label",{className:"a-label",htmlFor:"dataset_filtered"},"Filtered dataset (",a.createElement(Rh,{value:r}),"\xA0complaints)",a.createElement("br",null),"(only the results of the last search and/or filter)")),a.createElement("div",{className:"m-form-field m-form-field__radio m-form-field__lg-target"},a.createElement("input",{checked:C===Xv,className:"a-radio",id:"dataset_full",onChange:()=>{Ct(!1),J(Xv)},type:"radio",value:"full"}),a.createElement("label",{className:"a-label",htmlFor:"dataset_full"},"Full dataset (",a.createElement(Rh,{value:i}),"\xA0complaints)",a.createElement("br",null),"(not recommended due to very large file size)")))),a.createElement("div",{className:"heres-the-url"},a.createElement("h4",null,"Link to your complaint search results for future reference"),a.createElement("div",{className:"layout-row"},a.createElement("input",{className:"flex-all a-text-input",id:"export-uri-input",type:"text",value:Ut,readOnly:!0}),a.createElement("button",{className:`a-btn ${xt?"export-url-copied":"a-btn__secondary"}`,disabled:!Ut,onClick:Kt},!xt&&a.createElement("div",null,a.createElement("span",{className:"a-btn_icon"},si("copy")),"Copy"),!!xt&&a.createElement("div",null,a.createElement("span",{className:"a-btn_icon"},si("checkmark-round")),"Copied")))),a.createElement("div",{className:"timeliness-warning"},"The export process could take several minutes if you're downloading many complaints")),a.createElement("div",{className:"footer layout-row"},a.createElement("button",{className:"a-btn","data-gtm_ignore":"true",onClick:()=>{Wt()}},"Start export"),a.createElement("button",{className:"a-btn a-btn__link a-btn__warning","data-gtm_ignore":"true",onClick:()=>{t(Il())}},"Cancel")))},pL=()=>{const t=Si();return a.createElement("section",{className:"export-modal"},a.createElement("div",{className:"header layout-row"},a.createElement("h3",{className:"flex-all"},"Export complaints"),a.createElement("button",{className:"a-btn a-btn__link","data-gtm_ignore":"true",onClick:()=>{t(Il())}},"Close",si("delete-round"))),a.createElement("div",{className:"body"},a.createElement("div",{className:"body-copy instructions"},"It may take a few minutes for your file to download. You can keep working while it processes.")))},iO=({onClose:t})=>{const e="https://files.consumerfinance.gov/f/documents/201503_cfpb_Narrative-Scrubbing-Standard.pdf",r="https://files.consumerfinance.gov/f/documents/201503_cfpb_disclosure-of-consumer-complaint-narrative-data.pdf";return a.createElement("section",{className:"more-about-modal"},a.createElement("div",{className:"header"},a.createElement("h3",null,"Things you should know before you use this database")),a.createElement("div",{className:"body"},a.createElement("p",{className:"body-copy"},"This database only includes complaints the CFPB sent to companies and complaints are only published after the company responds, confirming a commercial relationship or after 15 days, whichever comes first. This database does not include complaints referred to other regulators, such as complaints about depository institutions with less than $10 billion in assets."),a.createElement("p",{className:"body-copy"},"This database is not a statistical sample of consumers\u2019 experiences in the marketplace. Complaints are not necessarily representative of all consumers\u2019 experiences with a financial product or company. Company-specific information should be considered in the context of that company\u2019s size and/or market share."),a.createElement("p",{className:"body-copy"},"This database only includes a consumer\u2019s description of what happened in their own words if the consumer agrees to share it and after we take steps to\xA0",a.createElement("a",{href:e,target:"_blank",rel:"noopener noreferrer"},"remove personal information"),".\xA0 One consumer\u2019s experience is not necessarily representative of all consumers\u2019 experiences and narratives are not verified before publication."),a.createElement("p",{className:"body-copy"},"This database generally updates daily and doesn\u2019t include complaints that don\u2019t meet our\xA0",a.createElement("a",{href:r,target:"_blank",rel:"noopener noreferrer"},"publication criteria"),".")),a.createElement("div",{className:"footer layout-row"},a.createElement("button",{className:"a-btn",onClick:t},"Close")))};iO.propTypes={onClose:Ce().func.isRequired};var mL=Un(4823),gL=Un.n(mL);const yL=()=>{const t=vr(ON),e=Si(),r=(0,a.useMemo)(()=>({[Ty]:dL,[My]:pL,[Ay]:iO})[t],[t]);return r?a.createElement(gL(),{appElement:document.querySelector("#ccdb-ui-root"),isOpen:!0,contentLabel:"CFPB Modal Dialog",className:"modal-body",overlayClassName:"modal-overlay",onRequestClose:()=>{e(Il())}},a.createElement(r,{onClose:()=>{e(Il())}})):null},g6={},y6={},v6={},oO=({fieldName:t,value:e})=>{const r=vr(xk),i=vr(du),g=Mo(r,t,[]),C=Mo(i,t,[]),J=$D(t),dt=e.split(os).pop(),St=Si(),xt=()=>{if(t==="date_received")St(Lx("All"));else{const Ct=e;if(ky.includes(t)){const Ut=ak(Ct,C,g,t);St(pu(t,Ut))}else St(Ig(t,Ct))}};return a.createElement("li",null,a.createElement("button",{className:"pill flex-fixed",onClick:xt},a.createElement("span",{className:"name"},J,dt),a.createElement("span",{className:"u-visually-hidden"},`Remove ${dt} as a filter`),si("delete")))};oO.propTypes={fieldName:Ce().string.isRequired,value:Ce().string.isRequired};const vL=()=>{const t=Si(),e=vr(du),r=vr(Kf),i=vr(tv),g=vr(Ep),C=Uf.filter(J=>J in e).reduce((J,dt)=>{const St=e[dt].map(xt=>({fieldName:dt,value:xt}));return J.concat(St)},[]);return g&&C.push({fieldName:"has_narrative",value:"Has narrative"}),(!_r()(r).isSame(_r()(Rc),"day")||!_r()(i).isSame(_r()(Oh()),"day"))&&C.unshift({fieldName:"date_received",value:"Date Received: "+_r()(r).format("M/D/YYYY")+" - "+_r()(i).format("M/D/YYYY")}),C.length?a.createElement("section",{className:"pill-panel"},a.createElement("h3",{className:"h4 pill-label flex-fixed"},"Filters applied:"),a.createElement("ul",{className:"layout-row"},C.map(J=>a.createElement(oO,{key:J.fieldName+J.value,fieldName:J.fieldName,value:J.value})),a.createElement("li",{className:"clear-all"},a.createElement("button",{className:"a-btn a-btn__link body-copy",onClick:()=>t(C_())},si("delete"),"Clear all filters")))):null},x6={},b6={},w6={};function aO(){const t=(0,a.useRef)(!0),e=(0,a.useRef)(()=>t.current);return(0,a.useEffect)(()=>(t.current=!0,()=>{t.current=!1}),[]),e.current}function xL(t){const e=(0,a.useRef)(t);return e.current=t,e}function bL(t){const e=xL(t);(0,a.useEffect)(()=>()=>e.current(),[])}const DA=O3(2,31)-1;function sO(t,e,r){const i=r-Date.now();t.current=i<=DA?setTimeout(e,i):setTimeout(()=>sO(t,e,r),DA)}function wL(){const t=aO(),e=(0,a.useRef)();return bL(()=>clearTimeout(e.current)),(0,a.useMemo)(()=>{const r=()=>clearTimeout(e.current);function i(g,C=0){t()&&(r(),C<=DA?e.current=setTimeout(g,C):sO(e,g,Date.now()+C))}return{set:i,clear:r,handleRef:e}},[])}var _L=function(){};function _6(t,e){return function(r,i){if(r[i]!==void 0&&!r[t])return new Error("You have provided a `"+i+"` prop to `"+e+"` "+("without an `"+t+"` handler prop. This will render a read-only field. ")+("If the field should be mutable use `"+lO(i)+"`. ")+("Otherwise, set `"+t+"`."))}}function E6(t,e){var r={};return Object.keys(t).forEach(function(i){if(r[lO(i)]=_L,!1)var g}),r}function S6(t,e){return t[e]!==void 0}function lO(t){return"default"+t.charAt(0).toUpperCase()+t.substr(1)}function C6(t){return!!t&&(typeof t!="function"||t.prototype&&t.prototype.isReactComponent)}function EL(t){var e=SL(t,"string");return typeof e=="symbol"?e:String(e)}function SL(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function uO(t,e,r){var i=(0,a.useRef)(t!==void 0),g=(0,a.useState)(e),C=g[0],J=g[1],dt=t!==void 0,St=i.current;return i.current=dt,!dt&&St&&C!==e&&J(e),[dt?t:C,(0,a.useCallback)(function(xt){for(var Ct=arguments.length,Ut=new Array(Ct>1?Ct-1:0),Wt=1;Wt<Ct;Wt++)Ut[Wt-1]=arguments[Wt];r&&r.apply(void 0,[xt].concat(Ut)),J(xt)},[r])]}function T6(t,e){return Object.keys(e).reduce(function(r,i){var g,C=r,J=C[Utils.defaultKey(i)],dt=C[i],St=_objectWithoutPropertiesLoose(C,[Utils.defaultKey(i),i].map(EL)),xt=e[i],Ct=uO(dt,J,t[xt]),Ut=Ct[0],Wt=Ct[1];return _extends({},St,(g={},g[i]=Ut,g[xt]=Wt,g))},t)}var M6=Un(9018),CL="/Users/jquense/src/uncontrollable/src/uncontrollable.js";function TL(t,e,r){r===void 0&&(r=[]);var i=t.displayName||t.name||"Component",g=Utils.canAcceptRef(t),C=Object.keys(e),J=C.map(Utils.defaultKey);g||!r.length||invariant(!1);var dt=function(xt){_inheritsLoose(Ct,xt);function Ct(){for(var Wt,Kt=arguments.length,ae=new Array(Kt),ue=0;ue<Kt;ue++)ae[ue]=arguments[ue];Wt=xt.call.apply(xt,[this].concat(ae))||this,Wt.handlers=Object.create(null),C.forEach(function(ye){var We=e[ye],en=function(on){if(Wt.props[We]){var ze;Wt._notifying=!0;for(var Pn=arguments.length,_n=new Array(Pn>1?Pn-1:0),zn=1;zn<Pn;zn++)_n[zn-1]=arguments[zn];(ze=Wt.props)[We].apply(ze,[on].concat(_n)),Wt._notifying=!1}Wt.unmounted||Wt.setState(function(mr){var pr,ur=mr.values;return{values:_extends(Object.create(null),ur,(pr={},pr[ye]=on,pr))}})};Wt.handlers[We]=en}),r.length&&(Wt.attachRef=function(ye){Wt.inner=ye});var he=Object.create(null);return C.forEach(function(ye){he[ye]=Wt.props[Utils.defaultKey(ye)]}),Wt.state={values:he,prevProps:{}},Wt}var Ut=Ct.prototype;return Ut.shouldComponentUpdate=function(){return!this._notifying},Ct.getDerivedStateFromProps=function(Kt,ae){var ue=ae.values,he=ae.prevProps,ye={values:_extends(Object.create(null),ue),prevProps:{}};return C.forEach(function(We){ye.prevProps[We]=Kt[We],!Utils.isProp(Kt,We)&&Utils.isProp(he,We)&&(ye.values[We]=Kt[Utils.defaultKey(We)])}),ye},Ut.componentWillUnmount=function(){this.unmounted=!0},Ut.render=function(){var Kt=this,ae=this.props,ue=ae.innerRef,he=_objectWithoutPropertiesLoose(ae,["innerRef"]);J.forEach(function(We){delete he[We]});var ye={};return C.forEach(function(We){var en=Kt.props[We];ye[We]=en!==void 0?en:Kt.state.values[We]}),React.createElement(t,_extends({},he,ye,this.handlers,{ref:ue||this.attachRef}))},Ct}(React.Component);polyfill(dt),dt.displayName="Uncontrolled("+i+")",dt.propTypes=_extends({innerRef:function(){}},Utils.uncontrolledPropTypes(e,i)),r.forEach(function(xt){dt.prototype[xt]=function(){var Ut;return(Ut=this.inner)[xt].apply(Ut,arguments)}});var St=dt;return React.forwardRef&&(St=React.forwardRef(function(xt,Ct){return React.createElement(dt,_extends({},xt,{innerRef:Ct,__source:{fileName:CL,lineNumber:128},__self:this}))}),St.propTypes=dt.propTypes),St.ControlledComponent=t,St.deferControlTo=function(xt,Ct,Ut){return Ct===void 0&&(Ct={}),TL(xt,_extends({},e,Ct),Ut)},St}const cO=t=>!t||typeof t=="function"?t:e=>{t.current=e};function ML(t,e){const r=cO(t),i=cO(e);return g=>{r&&r(g),i&&i(g)}}function AL(t,e){return(0,a.useMemo)(()=>ML(t,e),[t,e])}const $v=AL;var PL=Un(1443),qv=Un.n(PL);function hO(){return(0,a.useState)(null)}var fO=Object.prototype.hasOwnProperty;function dO(t,e,r){for(r of t.keys())if(dw(r,e))return r}function dw(t,e){var r,i,g;if(t===e)return!0;if(t&&e&&(r=t.constructor)===e.constructor){if(r===Date)return t.getTime()===e.getTime();if(r===RegExp)return t.toString()===e.toString();if(r===Array){if((i=t.length)===e.length)for(;i--&&dw(t[i],e[i]););return i===-1}if(r===Set){if(t.size!==e.size)return!1;for(i of t)if(g=i,g&&typeof g=="object"&&(g=dO(e,g),!g)||!e.has(g))return!1;return!0}if(r===Map){if(t.size!==e.size)return!1;for(i of t)if(g=i[0],g&&typeof g=="object"&&(g=dO(e,g),!g)||!dw(i[1],e.get(g)))return!1;return!0}if(r===ArrayBuffer)t=new Uint8Array(t),e=new Uint8Array(e);else if(r===DataView){if((i=t.byteLength)===e.byteLength)for(;i--&&t.getInt8(i)===e.getInt8(i););return i===-1}if(ArrayBuffer.isView(t)){if((i=t.byteLength)===e.byteLength)for(;i--&&t[i]===e[i];);return i===-1}if(!r||typeof t=="object"){i=0;for(r in t)if(fO.call(t,r)&&++i&&!fO.call(e,r)||!(r in e)||!dw(t[r],e[r]))return!1;return Object.keys(e).length===i}}return t!==t&&e!==e}function kL(t){const e=aO();return[t[0],(0,a.useCallback)(r=>{if(e())return t[1](r)},[e,t[1]])]}const OL=kL,DL=qp({defaultModifiers:[Pr,nw,iw,Gv,o,ln,Wn,or]}),NL=["enabled","placement","strategy","modifiers"];function LL(t,e){if(t==null)return{};var r={},i=Object.keys(t),g,C;for(C=0;C<i.length;C++)g=i[C],!(e.indexOf(g)>=0)&&(r[g]=t[g]);return r}const RL={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},IL={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:t})=>()=>{const{reference:e,popper:r}=t.elements;if("removeAttribute"in e){const i=(e.getAttribute("aria-describedby")||"").split(",").filter(g=>g.trim()!==r.id);i.length?e.setAttribute("aria-describedby",i.join(",")):e.removeAttribute("aria-describedby")}},fn:({state:t})=>{var e;const{popper:r,reference:i}=t.elements,g=(e=r.getAttribute("role"))==null?void 0:e.toLowerCase();if(r.id&&g==="tooltip"&&"setAttribute"in i){const C=i.getAttribute("aria-describedby");if(C&&C.split(",").indexOf(r.id)!==-1)return;i.setAttribute("aria-describedby",C?`${C},${r.id}`:r.id)}}},jL=[];function FL(t,e,r={}){let{enabled:i=!0,placement:g="bottom",strategy:C="absolute",modifiers:J=jL}=r,dt=LL(r,NL);const St=(0,a.useRef)(J),xt=(0,a.useRef)(),Ct=(0,a.useCallback)(()=>{var he;(he=xt.current)==null||he.update()},[]),Ut=(0,a.useCallback)(()=>{var he;(he=xt.current)==null||he.forceUpdate()},[]),[Wt,Kt]=OL((0,a.useState)({placement:g,update:Ct,forceUpdate:Ut,attributes:{},styles:{popper:{},arrow:{}}})),ae=(0,a.useMemo)(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:he})=>{const ye={},We={};Object.keys(he.elements).forEach(en=>{ye[en]=he.styles[en],We[en]=he.attributes[en]}),Kt({state:he,styles:ye,attributes:We,update:Ct,forceUpdate:Ut,placement:he.placement})}}),[Ct,Ut,Kt]),ue=(0,a.useMemo)(()=>(dw(St.current,J)||(St.current=J),St.current),[J]);return(0,a.useEffect)(()=>{!xt.current||!i||xt.current.setOptions({placement:g,strategy:C,modifiers:[...ue,ae,RL]})},[C,g,ae,i,ue]),(0,a.useEffect)(()=>{if(!(!i||t==null||e==null))return xt.current=DL(t,e,Object.assign({},dt,{placement:g,strategy:C,modifiers:[...ue,IL,ae]})),()=>{xt.current!=null&&(xt.current.destroy(),xt.current=void 0,Kt(he=>Object.assign({},he,{attributes:{},styles:{popper:{}}})))}},[i,t,e]),Wt}const BL=FL;function HL(t){const e=(0,a.useRef)(t);return(0,a.useEffect)(()=>{e.current=t},[t]),e}const zL=HL;function Kv(t){const e=zL(t);return(0,a.useCallback)(function(...r){return e.current&&e.current(...r)},[e])}const pO=()=>{};function UL(t){return t.button===0}function WL(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}const dS=t=>t&&("current"in t?t.current:t),mO={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function GL(t,e=pO,{disabled:r,clickTrigger:i="click"}={}){const g=(0,a.useRef)(!1),C=(0,a.useRef)(!1),J=(0,a.useCallback)(xt=>{const Ct=dS(t);Pb()(!!Ct,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),g.current=!Ct||WL(xt)||!UL(xt)||!!QE(Ct,xt.target)||C.current,C.current=!1},[t]),dt=Kv(xt=>{const Ct=dS(t);Ct&&QE(Ct,xt.target)&&(C.current=!0)}),St=Kv(xt=>{g.current||e(xt)});(0,a.useEffect)(()=>{var xt,Ct;if(r||t==null)return;const Ut=ow(dS(t)),Wt=Ut.defaultView||window;let Kt=(xt=Wt.event)!=null?xt:(Ct=Wt.parent)==null?void 0:Ct.event,ae=null;mO[i]&&(ae=Gc(Ut,mO[i],dt,!0));const ue=Gc(Ut,i,J,!0),he=Gc(Ut,i,We=>{if(We===Kt){Kt=void 0;return}St(We)});let ye=[];return"ontouchstart"in Ut.documentElement&&(ye=[].slice.call(Ut.body.children).map(We=>Gc(We,"mousemove",pO))),()=>{ae==null||ae(),ue(),he(),ye.forEach(We=>We())}},[t,r,i,J,dt,St])}const VL=GL;function YL(t){return t.code==="Escape"||t.keyCode===27}const XL=()=>{};function $L(t,e,{disabled:r,clickTrigger:i}={}){const g=e||XL;VL(t,g,{disabled:r,clickTrigger:i});const C=Kv(J=>{YL(J)&&g(J)});(0,a.useEffect)(()=>{if(r||t==null)return;const J=ow(dS(t));let dt=(J.defaultView||window).event;const St=Gc(J,"keyup",xt=>{if(xt===dt){dt=void 0;return}C(xt)});return()=>{St()}},[t,r,C])}const qL=$L,gO=(0,a.createContext)(uA?window:void 0),A6=gO.Provider;function KL(){return(0,a.useContext)(gO)}const NA=(t,e)=>uA?t==null?(e||ow()).body:(typeof t=="function"&&(t=t()),t&&"current"in t&&(t=t.current),t&&("nodeType"in t||t.getBoundingClientRect)?t:null):null;function yO(t,e){const r=KL(),[i,g]=(0,a.useState)(()=>NA(t,r==null?void 0:r.document));if(!i){const C=NA(t);C&&g(C)}return(0,a.useEffect)(()=>{e&&i&&e(i)},[e,i]),(0,a.useEffect)(()=>{const C=NA(t);C!==i&&g(C)},[t,i]),i}function ZL(t){const e={};return Array.isArray(t)?(t==null||t.forEach(r=>{e[r.name]=r}),e):t||e}function QL(t={}){return Array.isArray(t)?t:Object.keys(t).map(e=>(t[e].name=e,t[e]))}function JL({enabled:t,enableEvents:e,placement:r,flip:i,offset:g,fixed:C,containerPadding:J,arrowElement:dt,popperConfig:St={}}){var xt,Ct,Ut,Wt,Kt;const ae=ZL(St.modifiers);return Object.assign({},St,{placement:r,enabled:t,strategy:C?"fixed":St.strategy,modifiers:QL(Object.assign({},ae,{eventListeners:{enabled:e,options:(xt=ae.eventListeners)==null?void 0:xt.options},preventOverflow:Object.assign({},ae.preventOverflow,{options:J?Object.assign({padding:J},(Ct=ae.preventOverflow)==null?void 0:Ct.options):(Ut=ae.preventOverflow)==null?void 0:Ut.options}),offset:{options:Object.assign({offset:g},(Wt=ae.offset)==null?void 0:Wt.options)},arrow:Object.assign({},ae.arrow,{enabled:!!dt,options:Object.assign({},(Kt=ae.arrow)==null?void 0:Kt.options,{element:dt})}),flip:Object.assign({enabled:!!i},ae.flip)}))})}const tR=typeof Un.g!="undefined"&&Un.g.navigator&&Un.g.navigator.product==="ReactNative",LA=typeof document!="undefined"||tR?a.useLayoutEffect:a.useEffect;function eR({children:t,in:e,onExited:r,mountOnEnter:i,unmountOnExit:g}){const C=(0,a.useRef)(null),J=(0,a.useRef)(e),dt=Kv(r);(0,a.useEffect)(()=>{e?J.current=!0:dt(C.current)},[e,dt]);const St=$v(C,t.ref),xt=(0,a.cloneElement)(t,{ref:St});return e?xt:g||!J.current&&i?null:xt}const nR=eR;var Os=Un(7557);function rR({in:t,onTransition:e}){const r=(0,a.useRef)(null),i=(0,a.useRef)(!0),g=Kv(e);return LA(()=>{if(!r.current)return;let C=!1;return g({in:t,element:r.current,initial:i.current,isStale:()=>C}),()=>{C=!0}},[t,g]),LA(()=>(i.current=!1,()=>{i.current=!0}),[]),r}function iR({children:t,in:e,onExited:r,onEntered:i,transition:g}){const[C,J]=(0,a.useState)(!e);e&&C&&J(!1);const dt=rR({in:!!e,onTransition:xt=>{const Ct=()=>{xt.isStale()||(xt.in?i==null||i(xt.element,xt.initial):(J(!0),r==null||r(xt.element)))};Promise.resolve(g(xt)).then(Ct,Ut=>{throw xt.in||J(!0),Ut})}}),St=$v(dt,t.ref);return C&&!e?null:(0,a.cloneElement)(t,{ref:St})}function oR(t,e,r){return t?(0,Os.jsx)(t,Object.assign({},r)):e?(0,Os.jsx)(iR,Object.assign({},r,{transition:e})):(0,Os.jsx)(nR,Object.assign({},r))}const vO=a.forwardRef((t,e)=>{const{flip:r,offset:i,placement:g,containerPadding:C,popperConfig:J={},transition:dt,runTransition:St}=t,[xt,Ct]=hO(),[Ut,Wt]=hO(),Kt=$v(Ct,e),ae=yO(t.container),ue=yO(t.target),[he,ye]=(0,a.useState)(!t.show),We=BL(ue,xt,JL({placement:g,enableEvents:!!t.show,containerPadding:C||5,flip:r,offset:i,arrowElement:Ut,popperConfig:J}));t.show&&he&&ye(!1);const en=(...pr)=>{ye(!0),t.onExited&&t.onExited(...pr)},cn=t.show||!he;if(qL(xt,t.onHide,{disabled:!t.rootClose||t.rootCloseDisabled,clickTrigger:t.rootCloseEvent}),!cn)return null;const{onExit:on,onExiting:ze,onEnter:Pn,onEntering:_n,onEntered:zn}=t;let mr=t.children(Object.assign({},We.attributes.popper,{style:We.styles.popper,ref:Kt}),{popper:We,placement:g,show:!!t.show,arrowProps:Object.assign({},We.attributes.arrow,{style:We.styles.arrow,ref:Wt})});return mr=oR(dt,St,{in:!!t.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:mr,onExit:on,onExiting:ze,onExited:en,onEnter:Pn,onEntering:_n,onEntered:zn}),ae?H.createPortal(mr,ae):null});vO.displayName="Overlay";const aR=vO;function xO(t,e){return t.classList?!!e&&t.classList.contains(e):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")!==-1}const bO=["xxl","xl","lg","md","sm","xs"],wO="xs",pw=a.createContext({prefixes:{},breakpoints:bO,minBreakpoint:wO}),{Consumer:k6,Provider:sR}=pw;function O6({prefixes:t={},breakpoints:e=bO,minBreakpoint:r=wO,dir:i,children:g}){const C=useMemo(()=>({prefixes:io({},t),breakpoints:e,minBreakpoint:r,dir:i}),[t,e,r,i]);return _jsx(sR,{value:C,children:g})}function u0(t,e){const{prefixes:r}=(0,a.useContext)(pw);return t||r[e]||e}function D6(){const{breakpoints:t}=useContext(pw);return t}function N6(){const{minBreakpoint:t}=useContext(pw);return t}function _O(){const{dir:t}=(0,a.useContext)(pw);return t==="rtl"}function L6(t,e){typeof e=="string"&&(e={prefix:e});const r=t.prototype&&t.prototype.isReactComponent,{prefix:i,forwardRefAs:g=r?"ref":"innerRef"}=e,C=React.forwardRef((St,dt)=>{var J=Yi(St,[]);J[g]=dt;const xt=u0(J.bsPrefix,i);return _jsx(t,Rs(io({},J),{bsPrefix:xt}))});return C.displayName=`Bootstrap(${t.displayName||t.name})`,C}const R6=null,EO=a.forwardRef((C,g)=>{var J=C,{className:t,bsPrefix:e,as:r="div"}=J,i=Yi(J,["className","bsPrefix","as"]);return e=u0(e,"popover-header"),(0,Os.jsx)(r,io({ref:g,className:qv()(t,e)},i))});EO.displayName="PopoverHeader";const lR=EO,SO=a.forwardRef((C,g)=>{var J=C,{className:t,bsPrefix:e,as:r="div"}=J,i=Yi(J,["className","bsPrefix","as"]);return e=u0(e,"popover-body"),(0,Os.jsx)(r,io({ref:g,className:qv()(t,e)},i))});SO.displayName="PopoverBody";const CO=SO;class I6 extends a.Component{}function TO(t,e){let r=t;return t==="left"?r=e?"end":"start":t==="right"&&(r=e?"start":"end"),r}function MO(t="absolute"){return{position:t,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const uR=Object.assign(a.forwardRef((Wt,Ut)=>{var Kt=Wt,{bsPrefix:t,placement:e="right",className:r,style:i,children:g,body:C,arrowProps:J,hasDoneInitialMeasure:dt,popper:St,show:xt}=Kt,Ct=Yi(Kt,["bsPrefix","placement","className","style","children","body","arrowProps","hasDoneInitialMeasure","popper","show"]);const ae=u0(t,"popover"),ue=_O(),[he]=(e==null?void 0:e.split("-"))||[],ye=TO(he,ue);let We=i;return xt&&!dt&&(We=io(io({},i),MO(St==null?void 0:St.strategy))),(0,Os.jsxs)("div",Rs(io({ref:Ut,role:"tooltip",style:We,"x-placement":he,className:qv()(r,ae,he&&`bs-popover-${ye}`)},Ct),{children:[(0,Os.jsx)("div",io({className:"popover-arrow"},J)),C?(0,Os.jsx)(CO,{children:g}):g]}))}),{Header:lR,Body:CO,POPPER_OFFSET:[0,8]}),AO=a.forwardRef((Ut,Ct)=>{var Wt=Ut,{bsPrefix:t,placement:e="right",className:r,style:i,children:g,arrowProps:C,hasDoneInitialMeasure:J,popper:dt,show:St}=Wt,xt=Yi(Wt,["bsPrefix","placement","className","style","children","arrowProps","hasDoneInitialMeasure","popper","show"]);t=u0(t,"tooltip");const Kt=_O(),[ae]=(e==null?void 0:e.split("-"))||[],ue=TO(ae,Kt);let he=i;return St&&!J&&(he=io(io({},i),MO(dt==null?void 0:dt.strategy))),(0,Os.jsxs)("div",Rs(io({ref:Ct,style:he,role:"tooltip","x-placement":ae,className:qv()(r,t,`bs-tooltip-${ue}`)},xt),{children:[(0,Os.jsx)("div",io({className:"tooltip-arrow"},C)),(0,Os.jsx)("div",{className:`${t}-inner`,children:g})]}))});AO.displayName="Tooltip";const PO=Object.assign(AO,{TOOLTIP_OFFSET:[0,6]});function cR(t){const e=(0,a.useRef)(null),r=u0(void 0,"popover"),i=u0(void 0,"tooltip"),g=(0,a.useMemo)(()=>({name:"offset",options:{offset:()=>{if(t)return t;if(e.current){if(xO(e.current,r))return uR.POPPER_OFFSET;if(xO(e.current,i))return PO.TOOLTIP_OFFSET}return[0,0]}}}),[t,r,i]);return[e,[g]]}function hR(t,e){if(t==null)return{};var r={},i=Object.keys(t),g,C;for(C=0;C<i.length;C++)g=i[C],!(e.indexOf(g)>=0)&&(r[g]=t[g]);return r}function RA(t,e){return RA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,g){return i.__proto__=g,i},RA(t,e)}function fR(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,RA(t,e)}const kO={disabled:!1},OO=a.createContext(null);var dR=function(e){return e.scrollTop},mw="unmounted",c0="exited",Kp="entering",h0="entered",IA="exiting",pd=function(t){fR(e,t);function e(i,g){var C;C=t.call(this,i,g)||this;var J=g,dt=J&&!J.isMounting?i.enter:i.appear,St;return C.appearStatus=null,i.in?dt?(St=c0,C.appearStatus=Kp):St=h0:i.unmountOnExit||i.mountOnEnter?St=mw:St=c0,C.state={status:St},C.nextCallback=null,C}e.getDerivedStateFromProps=function(g,C){var J=g.in;return J&&C.status===mw?{status:c0}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(g){var C=null;if(g!==this.props){var J=this.state.status;this.props.in?J!==Kp&&J!==h0&&(C=Kp):(J===Kp||J===h0)&&(C=IA)}this.updateStatus(!1,C)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var g=this.props.timeout,C,J,dt;return C=J=dt=g,g!=null&&typeof g!="number"&&(C=g.exit,J=g.enter,dt=g.appear!==void 0?g.appear:J),{exit:C,enter:J,appear:dt}},r.updateStatus=function(g,C){if(g===void 0&&(g=!1),C!==null)if(this.cancelNextCallback(),C===Kp){if(this.props.unmountOnExit||this.props.mountOnEnter){var J=this.props.nodeRef?this.props.nodeRef.current:H.findDOMNode(this);J&&dR(J)}this.performEnter(g)}else this.performExit();else this.props.unmountOnExit&&this.state.status===c0&&this.setState({status:mw})},r.performEnter=function(g){var C=this,J=this.props.enter,dt=this.context?this.context.isMounting:g,St=this.props.nodeRef?[dt]:[H.findDOMNode(this),dt],xt=St[0],Ct=St[1],Ut=this.getTimeouts(),Wt=dt?Ut.appear:Ut.enter;if(!g&&!J||kO.disabled){this.safeSetState({status:h0},function(){C.props.onEntered(xt)});return}this.props.onEnter(xt,Ct),this.safeSetState({status:Kp},function(){C.props.onEntering(xt,Ct),C.onTransitionEnd(Wt,function(){C.safeSetState({status:h0},function(){C.props.onEntered(xt,Ct)})})})},r.performExit=function(){var g=this,C=this.props.exit,J=this.getTimeouts(),dt=this.props.nodeRef?void 0:H.findDOMNode(this);if(!C||kO.disabled){this.safeSetState({status:c0},function(){g.props.onExited(dt)});return}this.props.onExit(dt),this.safeSetState({status:IA},function(){g.props.onExiting(dt),g.onTransitionEnd(J.exit,function(){g.safeSetState({status:c0},function(){g.props.onExited(dt)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(g,C){C=this.setNextCallback(C),this.setState(g,C)},r.setNextCallback=function(g){var C=this,J=!0;return this.nextCallback=function(dt){J&&(J=!1,C.nextCallback=null,g(dt))},this.nextCallback.cancel=function(){J=!1},this.nextCallback},r.onTransitionEnd=function(g,C){this.setNextCallback(C);var J=this.props.nodeRef?this.props.nodeRef.current:H.findDOMNode(this),dt=g==null&&!this.props.addEndListener;if(!J||dt){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var St=this.props.nodeRef?[this.nextCallback]:[J,this.nextCallback],xt=St[0],Ct=St[1];this.props.addEndListener(xt,Ct)}g!=null&&setTimeout(this.nextCallback,g)},r.render=function(){var g=this.state.status;if(g===mw)return null;var C=this.props,J=C.children,dt=C.in,St=C.mountOnEnter,xt=C.unmountOnExit,Ct=C.appear,Ut=C.enter,Wt=C.exit,Kt=C.timeout,ae=C.addEndListener,ue=C.onEnter,he=C.onEntering,ye=C.onEntered,We=C.onExit,en=C.onExiting,cn=C.onExited,on=C.nodeRef,ze=hR(C,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return a.createElement(OO.Provider,{value:null},typeof J=="function"?J(g,ze):a.cloneElement(a.Children.only(J),ze))},e}(a.Component);pd.contextType=OO,pd.propTypes={};function Zv(){}pd.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Zv,onEntering:Zv,onEntered:Zv,onExit:Zv,onExiting:Zv,onExited:Zv},pd.UNMOUNTED=mw,pd.EXITED=c0,pd.ENTERING=Kp,pd.ENTERED=h0,pd.EXITING=IA;const pR=pd;function mR(t){var e=ow(t);return e&&e.defaultView||window}function gR(t,e){return mR(t).getComputedStyle(t,e)}var yR=/([A-Z])/g;function vR(t){return t.replace(yR,"-$1").toLowerCase()}var xR=/^ms-/;function pS(t){return vR(t).replace(xR,"-ms-")}var bR=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function wR(t){return!!(t&&bR.test(t))}function _R(t,e){var r="",i="";if(typeof e=="string")return t.style.getPropertyValue(pS(e))||gR(t).getPropertyValue(pS(e));Object.keys(e).forEach(function(g){var C=e[g];!C&&C!==0?t.style.removeProperty(pS(g)):wR(g)?i+=g+"("+C+") ":r+=pS(g)+": "+C+";"}),i&&(r+="transform: "+i+";"),t.style.cssText+=";"+r}const DO=_R;function ER(t,e,r,i){if(r===void 0&&(r=!1),i===void 0&&(i=!0),t){var g=document.createEvent("HTMLEvents");g.initEvent(e,r,i),t.dispatchEvent(g)}}function SR(t){var e=DO(t,"transitionDuration")||"",r=e.indexOf("ms")===-1?1e3:1;return parseFloat(e)*r}function CR(t,e,r){r===void 0&&(r=5);var i=!1,g=setTimeout(function(){i||ER(t,"transitionend",!0)},e+r),C=Gc(t,"transitionend",function(){i=!0},{once:!0});return function(){clearTimeout(g),C()}}function TR(t,e,r,i){r==null&&(r=SR(t)||0);var g=CR(t,r,i),C=Gc(t,"transitionend",e);return function(){g(),C()}}function NO(t,e){const r=DO(t,e)||"",i=r.indexOf("ms")===-1?1e3:1;return parseFloat(r)*i}function MR(t,e){const r=NO(t,"transitionDuration"),i=NO(t,"transitionDelay"),g=TR(t,C=>{C.target===t&&(g(),e(C))},r+i)}function AR(t){t.offsetHeight}function mS(t){return t&&"setState"in t?H.findDOMNode(t):t!=null?t:null}const PR=a.forwardRef((Ut,Ct)=>{var Wt=Ut,{onEnter:t,onEntering:e,onEntered:r,onExit:i,onExiting:g,onExited:C,addEndListener:J,children:dt,childRef:St}=Wt,xt=Yi(Wt,["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children","childRef"]);const Kt=(0,a.useRef)(null),ae=$v(Kt,St),ue=_n=>{ae(mS(_n))},he=_n=>zn=>{_n&&Kt.current&&_n(Kt.current,zn)},ye=(0,a.useCallback)(he(t),[t]),We=(0,a.useCallback)(he(e),[e]),en=(0,a.useCallback)(he(r),[r]),cn=(0,a.useCallback)(he(i),[i]),on=(0,a.useCallback)(he(g),[g]),ze=(0,a.useCallback)(he(C),[C]),Pn=(0,a.useCallback)(he(J),[J]);return(0,Os.jsx)(pR,Rs(io({ref:Ct},xt),{onEnter:ye,onEntered:en,onEntering:We,onExit:cn,onExited:ze,onExiting:on,addEndListener:Pn,nodeRef:Kt,children:typeof dt=="function"?(_n,zn)=>dt(_n,Rs(io({},zn),{ref:ue})):a.cloneElement(dt,{ref:ue})}))}),kR={[Kp]:"show",[h0]:"show"},LO=a.forwardRef((J,C)=>{var dt=J,{className:t,children:e,transitionClasses:r={},onEnter:i}=dt,g=Yi(dt,["className","children","transitionClasses","onEnter"]);const St=io({in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1},g),xt=(0,a.useCallback)((Ct,Ut)=>{AR(Ct),i==null||i(Ct,Ut)},[i]);return(0,Os.jsx)(PR,Rs(io({ref:C,addEndListener:MR},St),{onEnter:xt,childRef:e.ref,children:(Ct,Ut)=>a.cloneElement(e,Rs(io({},Ut),{className:qv()("fade",t,e.props.className,kR[Ct],r[Ct])}))}))});LO.displayName="Fade";const RO=LO;function OR(t,e){const{ref:r}=t,{ref:i}=e;t.ref=r.__wrapped||(r.__wrapped=g=>r(mS(g))),e.ref=i.__wrapped||(i.__wrapped=g=>i(mS(g)))}const IO=a.forwardRef((St,dt)=>{var xt=St,{children:t,transition:e=RO,popperConfig:r={},rootClose:i=!1,placement:g="top",show:C=!1}=xt,J=Yi(xt,["children","transition","popperConfig","rootClose","placement","show"]);const Ct=(0,a.useRef)({}),[Ut,Wt]=(0,a.useState)(null),[Kt,ae]=cR(J.offset),ue=$v(dt,Kt),he=e===!0?RO:e||void 0,ye=Kv(We=>{Wt(We),r==null||r.onFirstUpdate==null||r.onFirstUpdate(We)});return LA(()=>{Ut&&J.target&&(Ct.current.scheduleUpdate==null||Ct.current.scheduleUpdate())},[Ut,J.target]),(0,a.useEffect)(()=>{C||Wt(null)},[C]),(0,Os.jsx)(aR,Rs(io({},J),{ref:ue,popperConfig:Rs(io({},r),{modifiers:ae.concat(r.modifiers||[]),onFirstUpdate:ye}),transition:he,rootClose:i,placement:g,show:C,children:(We,{arrowProps:en,popper:cn,show:on})=>{var ze,Pn;OR(We,en);const _n=cn==null?void 0:cn.placement,zn=Object.assign(Ct.current,{state:cn==null?void 0:cn.state,scheduleUpdate:cn==null?void 0:cn.update,placement:_n,outOfBoundaries:(cn==null||(ze=cn.state)==null||(Pn=ze.modifiersData.hide)==null?void 0:Pn.isReferenceHidden)||!1,strategy:r.strategy}),mr=!!Ut;return typeof t=="function"?t(Rs(io(Rs(io({},We),{placement:_n,show:on}),!e&&on&&{className:"show"}),{popper:zn,arrowProps:en,hasDoneInitialMeasure:mr})):a.cloneElement(t,Rs(io({},We),{placement:_n,arrowProps:en,popper:zn,hasDoneInitialMeasure:mr,className:qv()(t.props.className,!e&&on&&"show"),style:io(io({},t.props.style),We.style)}))}}))});IO.displayName="Overlay";const DR=IO;function NR(t){return t&&typeof t=="object"?t:{show:t,hide:t}}function jO(t,e,r){const[i]=e,g=i.currentTarget,C=i.relatedTarget||i.nativeEvent[r];(!C||C!==g)&&!QE(g,C)&&t(...e)}const B6=Ce().oneOf(["click","hover","focus"]),LR=Ut=>{var Wt=Ut,{trigger:t=["hover","focus"],overlay:e,children:r,popperConfig:i={},show:g,defaultShow:C=!1,onToggle:J,delay:dt,placement:St,flip:xt=St&&St.indexOf("auto")!==-1}=Wt,Ct=Yi(Wt,["trigger","overlay","children","popperConfig","show","defaultShow","onToggle","delay","placement","flip"]);const Kt=(0,a.useRef)(null),ae=$v(Kt,r.ref),ue=wL(),he=(0,a.useRef)(""),[ye,We]=uO(g,C,J),en=NR(dt),{onFocus:cn,onBlur:on,onClick:ze}=typeof r!="function"?a.Children.only(r).props:{},Pn=gr=>{ae(mS(gr))},_n=(0,a.useCallback)(()=>{if(ue.clear(),he.current="show",!en.show){We(!0);return}ue.set(()=>{he.current==="show"&&We(!0)},en.show)},[en.show,We,ue]),zn=(0,a.useCallback)(()=>{if(ue.clear(),he.current="hide",!en.hide){We(!1);return}ue.set(()=>{he.current==="hide"&&We(!1)},en.hide)},[en.hide,We,ue]),mr=(0,a.useCallback)((...gr)=>{_n(),cn==null||cn(...gr)},[_n,cn]),pr=(0,a.useCallback)((...gr)=>{zn(),on==null||on(...gr)},[zn,on]),ur=(0,a.useCallback)((...gr)=>{We(!ye),ze==null||ze(...gr)},[ze,We,ye]),br=(0,a.useCallback)((...gr)=>{jO(_n,gr,"fromElement")},[_n]),Hr=(0,a.useCallback)((...gr)=>{jO(zn,gr,"toElement")},[zn]),vi=t==null?[]:[].concat(t),xi={ref:Pn};return vi.indexOf("click")!==-1&&(xi.onClick=ur),vi.indexOf("focus")!==-1&&(xi.onFocus=mr,xi.onBlur=pr),vi.indexOf("hover")!==-1&&(xi.onMouseOver=br,xi.onMouseOut=Hr),(0,Os.jsxs)(Os.Fragment,{children:[typeof r=="function"?r(xi):(0,a.cloneElement)(r,xi),(0,Os.jsx)(DR,Rs(io({},Ct),{show:ye,onHide:zn,flip:xt,placement:St,popperConfig:i,target:Kt.current,children:e}))]})};var FO=Un(9526);const oc=({children:t,placement:e,text:r})=>FO.createElement(LR,{placement:e,overlay:FO.createElement(PO,null,r)},t);oc.propTypes={children:Ce().element.isRequired,placement:Ce().string,text:Ce().string.isRequired};const z6={},Qv=({id:t,notes:e,placeholderText:r,tooltipText:i})=>{const[g,C]=(0,a.useState)(!1);return a.createElement("div",{className:"o-expandable complex-example"},a.createElement("button",{className:"o-expandable_header","aria-expanded":g,onClick:()=>{C(!g)},title:"Expand content"},a.createElement("h3",{className:"h4 o-expandable_label"},"Additional information and examples"),a.createElement("span",{className:"o-expandable_cues"},g?a.createElement("span",{className:"o-expandable_cue-close",role:"img","aria-label":"Hide"},a.createElement("span",{className:"u-visually-hidden-on-mobile"},si("up"))):a.createElement("span",{className:"o-expandable_cue-open",role:"img","aria-label":"Show"},a.createElement("span",{className:"u-visually-hidden-on-mobile"},si("down"))))),g?a.createElement("div",{className:"o-expandable_content"},i&&r?a.createElement(a.Fragment,null,a.createElement("label",{className:"descriptor",htmlFor:`example-${t}`},"Complex example:"),a.createElement("span",{className:"u-visually-hidden"},i),a.createElement(oc,{text:i},r.length>30?a.createElement("textarea",{className:"a-text-input example-input_full",id:`example-${t}`,rows:2,readOnly:!0,value:r}):a.createElement("input",{className:"a-text-input example-input_full",id:`example-${t}`,rows:2,readOnly:!0,value:r}))):null,a.createElement("h4",{className:"descriptor"},"Notes:"),a.createElement("ul",{className:"m-list"},e.map((J,dt)=>a.createElement("li",{className:"m-list_item",key:dt},J)))):null)};Qv.propTypes={id:Ce().string.isRequired,notes:Ce().array.isRequired,placeholderText:Ce().string,tooltipText:Ce().string};const RR=()=>a.createElement("div",{className:"advanced_tips"},a.createElement("div",null,a.createElement("h3",null,"Search tips"),a.createElement("ul",{className:"m-list"},a.createElement("li",{className:"m-list_item"},"Hover over the examples within the sample search bars below to see what their results should return"),a.createElement("li",{className:"m-list_item"},'When searching within "All data", terms must be found in the same field to be considered a match'),a.createElement("li",{className:"m-list_item"},"The search function will look for any variations of the word that includes the stem \u2013 for example, if deferment is searched, it would return the following variations: deferment, defer, deferred, deferral, etc."))),a.createElement("div",{className:"tips content-l"},a.createElement("div",{className:"tip content-l_col content-l_col-1-3"},a.createElement("h4",null,"AND / OR / NOT"),a.createElement("label",{className:"u-visually-hidden",htmlFor:"example-and"},"Use AND when results must contain all terms"),a.createElement(oc,{text:"Results would include both call (call, called, calling, etc.) as well as harass (harass, harassed, harassing, etc.)."},a.createElement("input",{className:"a-text-input example-input",id:"example-and",type:"text",readOnly:!0,value:"call AND harass"})),a.createElement("label",{className:"u-visually-hidden",htmlFor:"example-or"},"Use OR when results should contain at least one of the terms"),a.createElement(oc,{text:"Results would include either loan (loan, loans, loaned, etc.) or mortage (mortgage, mortgages, etc.)."},a.createElement("input",{className:"a-text-input example-input",id:"example-or",type:"text",readOnly:!0,value:"loan OR mortgage"})),a.createElement("label",{className:"u-visually-hidden",htmlFor:"example-not"},"Use NOT when results should contain at least one of the terms"),a.createElement(oc,{text:"Results would only include claim (claim, claims, claimed, etc.) and cannot include the term accident (accident, accidents, etc.)"},a.createElement("input",{className:"a-text-input example-input",id:"example-not",type:"text",readOnly:!0,value:"claim NOT accident"})),a.createElement("div",{className:"tip-description"},a.createElement("p",null,"Use AND when results must contain both terms"),a.createElement("p",null,"Use OR when results should contain at least one of the terms"),a.createElement("p",null,"Use NOT when results must not contain the term")),a.createElement(Qv,{id:"and-or-not",notes:["The Boolean operators (AND / OR / NOT) must be capitalized","Boolean operators do not honor precedence rules, so parentheses should be used whenever multiple operators are used together \u2013 if they are not used correctly (i.e., having multiple operators outside of parentheses), then your results might not return what you intended."],placeholderText:"call AND (harass* OR annoy* OR threat OR repeat) AND NOT spam",tooltipText:"This example would return results that include the word call (called, calling, etc.) and one of the words in the parentheses, but exclude the word spam (spammed, spamming, etc.)."})),a.createElement("div",{className:"tip content-l_col content-l_col-1-3"},a.createElement("h4",null,"Must/Must not contain"),a.createElement("label",{className:"u-visually-hidden",htmlFor:"example-must-plus"},"Use + if the search must contain the selected term"),a.createElement(oc,{text:"Results must include the word foreclosure (foreclosure, foreclosed, etc.)."},a.createElement("input",{className:"a-text-input example-input",id:"example-must-plus",type:"text",readOnly:!0,value:"+foreclosure"})),a.createElement("label",{className:"u-visually-hidden",htmlFor:"example-must-minus"},"Use - if the search must not contain the selected term"),a.createElement(oc,{text:"Results cannot include the word collect (collect, collects, collecting, etc.)."},a.createElement("input",{className:"a-text-input example-input",id:"example-must-minus",type:"text",readOnly:!0,value:"-collect"})),a.createElement("div",{className:"tip-description"},a.createElement("p",null,"Use + if the search must contain the selected term"),a.createElement("p",null,"Use - if the search must not contain the selected term")),a.createElement(Qv,{id:"must-or-must-not",notes:['Since the terms "insurance" and "claim" do not have to be included in the results, their appearance will give the result a greater relevance score.',"There cannot be a space between the operator (+ / -) and searched term."],placeholderText:"insurance claim +agent +car -accident",tooltipText:"Results must include the terms agent and car but exclude accident \u2013 the terms insurance and claim are optional"})),a.createElement("div",{className:"tip content-l_col content-l_col-1-3"},a.createElement("h4",null,"Wildcard search"),a.createElement("label",{className:"u-visually-hidden",htmlFor:"example-wc-star"},"Use * to substitute any consecutive number of characters."),a.createElement(oc,{text:'Results would include all terms that start with the base "report" (report, reports, reported, reporting, etc.) and "$*.00" would include all variations of whole number dollar values ($8.00, $1234.00, etc.).'},a.createElement("input",{className:"a-text-input example-input",id:"example-wc-star",type:"text",readOnly:!0,value:"report* AND $*.00"})),a.createElement("label",{className:"u-visually-hidden",htmlFor:"example-wc-question"},"Use ? to replace any single character anywhere in a term."),a.createElement(oc,{text:"Results would return variations such as: woman, women, etc."},a.createElement("input",{className:"a-text-input example-input",id:"example-wc-question",type:"text",readOnly:!0,value:"wom?n"})),a.createElement("div",{className:"tip-description"},a.createElement("p",null,"Use * to substitute any consecutive number of characters."),a.createElement("p",null,"Use ? to replace any single character anywhere in a term."))),a.createElement("div",{className:"tip content-l_col content-l_col-1-3"},a.createElement("h4",null,"Proximity search"),a.createElement("label",{className:"u-visually-hidden",htmlFor:"example-proximity"},'Use ~[#] at the end of a phrase to search for terms with up to that number of gap words between them; Order does not matter and the terms should be in a single set of quotation marks (" ").'),a.createElement(oc,{text:'Results would include the terms "auto", "loan", and "default" in any order, with up to three (3) gap words in between them. For example, results could include: "defaulted auto loan", "auto loan that went into default", "Auto Loan with the same defaulted", etc.'},a.createElement("input",{className:"a-text-input example-input_full",id:"example-proximity",type:"text",readOnly:!0,value:'"auto loan default"~3'})),a.createElement("div",{className:"tip-description"},a.createElement("p",null,'Use ~[#] at the end of a phrase to search for terms with up to that number of gap words between them; Order does not matter and the terms should be in a single set of quotation marks (" ").')),a.createElement(Qv,{id:"proximity",notes:['Proximity phrase search must use straight quotes (" ") versus curly quotes (\u201C \u201D), or else the search function will not perform properly',"The closer the specified terms are within the data, the more relevant the search results become."]})),a.createElement("div",{className:"tip content-l_col content-l_col-1-3"},a.createElement("h4",null,"Fuzzy search"),a.createElement("label",{className:"u-visually-hidden",htmlFor:"example-fuzzy"},"Use ~1 at the end of a term to search for terms that are spelled similarly to your keyword within a certain margin of error."),a.createElement(oc,{text:"Results would include the correct spelling of escrow, as well as other (potentially misspelled) versions, such as: escrow, escrowed, escro, esrow, etc."},a.createElement("input",{className:"a-text-input example-input_full",id:"example-fuzzy",type:"text",readOnly:!0,value:"escrow~1"})),a.createElement("div",{className:"tip-description"},a.createElement("p",null,"Use ~1 at the end of a term to search for terms that are spelled similarly to your keyword within a certain margin of error.")),a.createElement(Qv,{id:"fuzzy",notes:["The search looks for a maximum of two changes in the term, where a change is the insertion, deletion or substitution of a single character or transposition of two adjacent characters (this catches about 80% of misspelled words).","Fuzzy term search can only be used with single terms, it does not support phrases."],placeholderText:"escrow~1 -escrow -escrowed",tooltipText:'Results would return the various misspellings of the word "escrow" that fuzzy term search identifies (after excluding the escrow and escrowed).'})),a.createElement("div",{className:"tip content-l_col content-l_col-1-3"},a.createElement("h4",null,"Boost search"),a.createElement("label",{className:"u-visually-hidden",htmlFor:"example-boost"},"Use ^[#] at the end of a term or terms to increase or decrease its relevance compared to the other term(s)."),a.createElement(oc,{text:'Results would be sorted by relevance in favor of the term "pay"'},a.createElement("input",{className:"a-text-input example-input_full",id:"example-boost",type:"text",readOnly:!0,value:"pay^2 OR credit"})),a.createElement("div",{className:"tip-description"},a.createElement("p",null,"Use ^[#] at the end of a term or terms to increase or decrease its relevance compared to the other term(s).")),a.createElement(Qv,{id:"boost",notes:["A boost value between 0 and 1.0 decreases the relevance score while a value greater than 1.0 increases the relevance score."]}))),a.createElement("div",{className:"footer"},a.createElement("h3",null,"Additional notes:"),a.createElement("ul",{className:"m-list"},a.createElement("li",{className:"m-list_item"},'Putting a phrase only in quotations (" ") will search for the words in that order, but it will not be an exact match \u2013 meaning it may include stemmed versions of the term.'),a.createElement("li",{className:"m-list_item"},'The default operator is "AND", meaning if you search "foreclosure house", it will search results that include both words (i.e., foreclosure AND house).'),a.createElement("li",{className:"m-list_item"},"Capitalization does not have an effect on searched terms (expect for the AND / OR / NOT operators)."),a.createElement("li",{className:"m-list_item"},a.createElement("a",{href:"https://www.elastic.co/guide/en/elasticsearch/reference/7.17/elasticsearch-intro.html",target:"_blank",rel:"noopener noreferrer"},"Find out more ",si("external-link"))," ","about Elastic Search")))),jA=({ariaLabel:t,className:e,htmlId:r,isDisabled:i,handleChange:g,handleClear:C,handlePressEnter:J,isClearVisible:dt,placeholder:St,value:xt})=>a.createElement("section",{className:`typeahead ${e|""}`},a.createElement("div",{className:"m-btn-inside-input input-contains-label"},a.createElement("div",{className:`input-contains-label_before
|
|
343
|
+
Issue changes (opens in new window)`},"Learn More"))):null}}const V5=Oa(t=>{const{focus:e,lens:r,subLens:i}=t.query,{chartType:g,tooltip:C}=t.trends;return{focus:e?"focus":"",lens:r,subLens:i,hasCompanyTypeahead:r==="Company"&&!e,hasTotal:g==="area",tooltip:YC(C)}},t=>({remove:e=>{t(Ig("company",e))}}))(zk);zk.propTypes={focus:Ce().string,lens:Ce().string.isRequired,hasCompanyTypeahead:Ce().bool.isRequired,subLens:Ce().string,remove:Ce().func.isRequired,hasTotal:Ce().bool,tooltip:Ce().oneOfType([Ce().bool,Ce().object]).isRequired};const Z4={},Q4={},Uk={Company:{tab1:{displayName:"Products",filterName:"product"}},Product:{tab1:{displayName:"Sub-products",filterName:"sub_product"},tab2:{displayName:"Issues",filterName:"issue"}}};class Wk extends a.Component{_getTabClass(e){e=e.toLowerCase();const r=["tab",e],i=new RegExp(this.props.subLens.toLowerCase(),"g");return e.replace("-","_").match(i)&&r.push("active"),r.join(" ")}render(){const{lens:e,hasProductTab:r}=this.props;if(e==="Overview")return null;const i=Uk[e];return a.createElement("div",{className:"tabbed-navigation lens"},a.createElement("section",null,!!r&&a.createElement("button",{className:this._getTabClass(i.tab1.filterName),onClick:()=>{this.props.onTab(e,i.tab1.filterName)}},i.tab1.displayName),!!Uk[e].tab2&&a.createElement("button",{className:this._getTabClass(i.tab2.filterName),onClick:()=>{this.props.onTab(e,i.tab2.filterName)}},i.tab2.displayName)))}}const Y5=(t,e,r)=>{if(e){if(r["sub-product"]&&r["sub-product"].length)return!0}else return!0;return!1},Gk=Oa(t=>{const{focus:e,lens:r,subLens:i}=t.query,{results:g}=t.trends;return{focus:e,lens:r,hasProductTab:Y5(r,e,g),subLens:i}},t=>({onTab:(e,r)=>{const i={sub_product:"Sub-products",issue:"Issues",product:"Products"};ma("Button",e+":"+i[r]),t(Xx(r.toLowerCase()))}}))(Wk);Wk.propTypes={subLens:Ce().string.isRequired,lens:Ce().string.isRequired,hasProductTab:Ce().bool,onTab:Ce().func.isRequired};class Vk extends a.Component{render(){const{focus:e,lens:r,total:i}=this.props;return a.createElement("div",{className:"focus-header"},a.createElement("button",{className:"a-btn a-btn__link clear-focus",id:"clear-focus",onClick:()=>{this.props.clearFocus(r)}},si("left"),"View "+r.toLowerCase()+" trends"),a.createElement("div",null,a.createElement("section",{className:"focus"},a.createElement("h1",null,e),a.createElement("span",{className:"divider"}),a.createElement("h2",null,i," Complaints"))),a.createElement(Gk,{showTitle:!1,key:"lens-tab"}))}}const X5=Oa(t=>({focus:t.query.focus,lens:t.query.lens,total:t.trends.total.toLocaleString()}),t=>({clearFocus:()=>{t(I_())}}))(Vk);Vk.propTypes={focus:Ce().string,lens:Ce().string.isRequired,total:Ce().string.isRequired,clearFocus:Ce().func.isRequired};const r6={};var $5=Un(9748),fS=Un.n($5),q5=Object.defineProperty,K5=(t,e,r)=>e in t?q5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Z5=(t,e,r)=>(K5(t,typeof e!="symbol"?e+"":e,r),r);class Yk extends a.Component{constructor(e){super(e),Z5(this,"tip",null),this._updateTooltip=this._updateTooltip.bind(this),this._updateInternalTooltip=this._updateInternalTooltip.bind(this)}componentDidMount(){this._redrawChart()}componentDidUpdate(e){const r=this.props;(pp(e.data)!==pp(r.data)||e.width!==r.width||e.isPrintMode!==r.isPrintMode)&&this._redrawChart()}_updateTooltip(e){fu(this.props.tooltip.date,e.date)||this.props.tooltipUpdated({date:e.date,dateRange:this.props.dateRange,interval:this.props.interval,values:e.topics})}_updateInternalTooltip(e,r,i){const{dateRange:g,interval:C}=this.props;this.tip.title(db(e.date,C,g,!1)),this.tip.update(e,r,i)}_chartWidth(e){const{lens:r,isPrintMode:i}=this.props;return i?r==="Overview"?750:500:us.select(e).node().getBoundingClientRect().width}_redrawChart(){const{colorMap:e,dateRange:r,interval:i,lens:g,processData:C,hasChart:J}=this.props;if(!J)return;const dt="#line-chart",St=us.select(dt),xt=this._chartWidth(dt);us.select(dt+" .line-chart").remove();const Ct=(0,hw.line)();this.tip=(0,hw.tooltip)().shouldShowDateInTitle(!1).topicLabel("topics").title("Complaints");const Ut=this.tip,Wt=C.dataByTopic.map(ue=>e[ue.topic]);Ct.margin({left:60,right:10,top:10,bottom:40}).initializeVerticalMarker(!0).isAnimated(!0).tooltipThreshold(1).grid("horizontal").aspectRatio(.5).width(xt).dateLabel("date").colorSchema(Wt),g==="Overview"?Ct.on("customMouseOver",Ut.show).on("customMouseMove",this._updateInternalTooltip).on("customMouseOut",Ut.hide):Ct.on("customMouseMove",this._updateTooltip),St.datum(fS()(C)).call(Ct),us.select(dt+" .metadata-group .vertical-marker-container").datum([]).call(Ut);const ae={dateRange:r,interval:i};if(g!=="Overview"){const ue=nd(C,ae);fu(this.props.tooltip.date,ue.date)||this.props.tooltipUpdated(ue)}}render(){return this.props.hasChart?a.createElement("div",{className:"chart-wrapper"},a.createElement("p",{className:"y-axis-label"},"Complaints"),a.createElement("div",{id:"line-chart"}),a.createElement("p",{className:"x-axis-label"},"Date received by the CFPB")):a.createElement(lS,{text:"Cannot display chart. Adjust your date range or date interval."})}}const Q5=Oa(t=>{const e=t.trends.results.dateRangeLine,r={from:t.query.date_received_min,to:t.query.date_received_max},i=t.query.dateInterval,g=fS()(e);r2(g,r,i);const C=Boolean(g.dataByTopic&&g.dataByTopic[0].dates.length>1);return{colorMap:t.trends.colorMap,data:e,dateRange:r,interval:i,lens:t.query.lens,isPrintMode:t.view.isPrintMode,processData:g,tooltip:t.trends.tooltip,hasChart:C,width:t.view.width}},t=>({tooltipUpdated:e=>{t(qx(e))}}))(Yk);Yk.propTypes={data:Ce().oneOfType([Ce().object,Ce().array]).isRequired,width:Ce().number,isPrintMode:Ce().bool,tooltip:Ce().oneOfType([Ce().bool,Ce().object]),tooltipUpdated:Ce().func,dateRange:Ce().object,interval:Ce().string,lens:Ce().string,colorMap:Ce().object,processData:Ce().oneOfType([Ce().object,Ce().array]),hasChart:Ce().bool};const a6={};class Xk extends a.Component{constructor(e){super(e),this._updateTooltip=this._updateTooltip.bind(this)}componentDidMount(){this._redrawChart()}componentDidUpdate(e){const r=this.props;(pp(e.data)!==pp(r.data)||e.width!==r.width||e.isPrintMode!==r.isPrintMode)&&this._redrawChart()}_updateTooltip(e){fu(this.props.tooltip.date,e.date)||this.props.tooltipUpdated({date:e.date,dateRange:this.props.dateRange,interval:this.props.interval,values:e.values})}_chartWidth(e){const{isPrintMode:r}=this.props;return r?500:us.select(e).node().getBoundingClientRect().width}_redrawChart(){const{colorMap:e,dateRange:r,filteredData:i,interval:g,hasChart:C}=this.props;if(!C)return;const J="#stacked-area-chart",dt=us.select(J),St=this._chartWidth(J);us.select(J+" .stacked-area").remove();const xt=(0,hw.stackedArea)(),Ct=i.filter(Kt=>Kt.name!=="Other"),Ut=[...new Set(Ct.map(Kt=>Kt.name))].map(Kt=>e[Kt]);Ut.push(Hh.DataLens[10]),xt.margin({left:70,right:10,top:10,bottom:40}).areaCurve("linear").initializeVerticalMarker(!0).isAnimated(!1).tooltipThreshold(1).grid("horizontal").aspectRatio(.5).width(St).dateLabel("date").colorSchema(Ut).on("customMouseMove",this._updateTooltip),dt.datum(fS()(i)).call(xt);const Wt={dateRange:r,interval:g};this.props.tooltipUpdated(J_(i,Wt))}render(){return this.props.hasChart?a.createElement("div",{className:"chart-wrapper"},a.createElement("p",{className:"y-axis-label"},"Complaints"),a.createElement("div",{id:"stacked-area-chart"}),a.createElement("p",{className:"x-axis-label"},"Date received by the CFPB")):a.createElement(lS,{text:"Cannot display chart. Adjust your date range or date interval."})}}const J5=Oa(t=>{const e=t.trends.results.dateRangeArea,r={from:t.query.date_received_min,to:t.query.date_received_max},i=t.query.dateInterval,g=fS()(e),C=xv(g,r,i),J=C.length>1;return{colorMap:t.trends.colorMap,data:e,dateRange:r,filteredData:C,interval:i,lens:t.trends.lens,isPrintMode:t.view.isPrintMode,tooltip:t.trends.tooltip,hasChart:J,width:t.view.width}},t=>({tooltipUpdated:e=>{t(qx(e))}}))(Xk);Xk.propTypes={data:Ce().array.isRequired,width:Ce().number,isPrintMode:Ce().bool,tooltip:Ce().oneOfType([Ce().bool,Ce().object]),tooltipUpdated:Ce().func,dateRange:Ce().object,interval:Ce().string,colorMap:Ce().object.isRequired,filteredData:Ce().array,hasChart:Ce().bool};const u6={},$k=5,tL={Overview:"product",Product:"product",Company:"company"};class qk extends a.Component{_showMore(){const{queryCount:e,resultCount:r}=this.props;return r<=$k?!0:e>$k&&e!==r}render(){const{diff:e,increaseDepth:r,depthReset:i,hasToggle:g}=this.props;return g?this._showMore()?a.createElement("div",{className:"trend-depth-toggle"},a.createElement("button",{className:"a-btn a-btn__link",id:"trend-depth-button",onClick:()=>{r(e)}},a.createElement("span",{className:"plus"}),"Show more")):a.createElement("div",{className:"trend-depth-toggle"},a.createElement("button",{className:"a-btn a-btn__link",id:"trend-depth-button",onClick:()=>{i()}},a.createElement("span",{className:"minus"}),"Show less")):null}}const eL=(t,e,r,i)=>t==="Overview"||e?!1:r>5||i>5,nL=Oa(t=>{const{aggs:e,query:r,trends:i}=t,{focus:g,lens:C}=r,J=tL[C],dt=Mo(i.results,J,[]).filter(Ct=>Ct.isParent).length;let St=0;J==="product"?St=Mo(e,J,[]).length:St=pg(Mo(r,J,[]).length,0,10);const xt=r[J]?r[J].filter(Ct=>Ct.indexOf(os)===-1).length:St;return{diff:St-dt,resultCount:dt,queryCount:xt,hasToggle:eL(C,g,dt,xt)}},t=>({increaseDepth:e=>{t($x(e+5))},depthReset:()=>{t(L_())}}))(qk);qk.propTypes={queryCount:Ce().number,resultCount:Ce().number.isRequired,diff:Ce().number.isRequired,increaseDepth:Ce().func.isRequired,depthReset:Ce().func.isRequired,hasToggle:Ce().bool.isRequired};const rL="\u201CDay\u201D interval is disabled when the date range is longer than one year",Kk={sub_product:"Sub-products",sub_issue:"Sub-issues",issue:"Issues",product:"Products"},Zk={product:"Product the consumer identified in the complaint. Click on a company name to expand products.",company:"Product the consumer identified in the complaint. Click on a company name to expand products.",sub_product:"Product and sub-product the consumer identified in the complaint. Click on a product to expand sub-products.",issue:"Product and issue the consumer identified in the complaint. Click on a product to expand issues.",overview:"Product the consumer identified in the complaint. Click on a product to expand sub-products"},Qk={sub_product:"Sub-products the consumer identified in the complaint",product:"Product the consumer identified in the complaint",issue:"Issues the consumer identified in the complaint"};class Jk extends a.Component{_areaChartTitle(){const{focus:e,hasOverview:r,subLens:i}=this.props;return r?"Complaints by date received by the CFPB":e?"Complaints by "+Kk[i].toLowerCase()+", by date received by the CFPB":"Complaints by date received by the CFPB"}_className(){const e=["trends-panel"];return this.props.hasOverview||e.push("external-tooltip"),e.join(" ")}_phaseMap(){const{hasCompanyOverlay:e,dataLensData:r,focusData:i,focusHelperText:g,hasOverview:C,lens:J,lensHelperText:dt,minDate:St,maxDate:xt,productData:Ct,subLensTitle:Ut,total:Wt}=this.props;return e?null:C?a.createElement(hS,{id:"product",colorScheme:Ct.colorScheme,data:Ct.data,title:"Product by highest complaint volume "+St+" to "+xt,helperText:dt,total:Wt}):this.props.focus?a.createElement(hS,{id:J,colorScheme:i.colorScheme,data:i.data,title:Ut+" "+St+" to "+xt,helperText:g,total:Wt}):[a.createElement(Gk,{key:"lens-tab",showTitle:!0}),a.createElement(hS,{id:J,colorScheme:r.colorScheme,data:r.data,title:Ut+" "+St+" to "+xt,helperText:dt,total:Wt,key:J+"row"})]}render(){const{chartType:e,hasCompanyOverlay:r,dateInterval:i,focus:g,intervals:C,isLoading:J,lens:dt,onInterval:St,onLens:xt,hasOverview:Ct,hasMobileFilters:Ut,total:Wt,isTrendsDateWarningEnabled:Kt}=this.props;return a.createElement("section",{className:this._className()},a.createElement(MA,null),a.createElement(PA,null),!!Kt&&a.createElement(TA,{text:rL,closeFn:this.props.onDismissWarning}),!!Ut&&a.createElement(sS,null),a.createElement(AA,null),a.createElement("div",{className:"layout-row refine-bar"},a.createElement(Rk,{label:"Aggregate complaints by",title:"Aggregate by",values:Vf,id:"lens",value:dt,handleChange:xt}),a.createElement(cS,null),a.createElement(Rk,{label:"Choose the Date interval",title:"Date interval",values:C,id:"interval",value:i,handleChange:St}),!Ct&&[a.createElement(cS,{key:"separator"}),a.createElement(U5,{key:"chart-toggles"})]),!!r&&a.createElement("div",{className:"layout-row company-overlay"},a.createElement("section",{className:"company-search"},a.createElement("p",null,"Choose a company to start your visualization using the type-ahead menu below. You can add more than one company to your view"),a.createElement(sw,{id:"modal-search"}))),!!g&&a.createElement(X5,null),!r&&!!Ct&&Wt>0&&a.createElement("div",{className:"layout-row"},a.createElement("section",{className:"chart-description"},a.createElement("h2",{className:"area-chart-title"},this._areaChartTitle()),a.createElement("p",{className:"chart-helper-text"},"A time series graph of complaints for the selected date range. Hover on the chart to see the count for each date interval. Your filter selections will update what you see on the graph."))),!r&&!Ct&&Wt>0&&a.createElement("div",{className:"layout-row"},a.createElement("section",{className:"chart-description"},a.createElement("h2",{className:"area-chart-title"},this._areaChartTitle()),a.createElement("p",{className:"chart-helper-text"},"A time series graph of the (up to five) highest volume complaints for the selected date range. However, you can view all of your selections in the bar chart, below. Hover on the chart to see the count for each date interval. Your filter selections will update what you see on the graph."))),!r&&Wt>0&&a.createElement(a.Fragment,null,a.createElement("div",{className:"layout-row date-range-disclaimer"},a.createElement("strong",null,"Note:\xA0 Data from incomplete time intervals are not shown")),a.createElement("div",{className:"layout-row"},a.createElement("section",{className:"chart"},e==="line"&&a.createElement(Q5,null),e==="area"&&a.createElement(J5,null)),!Ct&&a.createElement(V5,null))),Wt>0&&this._phaseMap(),a.createElement(nL,null),a.createElement(_p,{isLoading:J||!1}))}}const iL=Oa(t=>{const{company:e,dateInterval:r,date_received_max:i,date_received_min:g,lens:C,subLens:J,isTrendsDateWarningEnabled:dt}=t.query,{chartType:St,colorMap:xt,focus:Ct,isLoading:Ut,results:Wt,total:Kt}=t.trends,{expandedRows:ae}=t.view,ue=C.toLowerCase(),he=J.replace("_","-"),ye=J===""?Zk[ue]:Zk[J],We=J===""?Qk[ue]:Qk[J];return{chartType:St,companyData:Wg(Wt.company,!1,C,ae),hasCompanyOverlay:HC(C,e,Ut),dateInterval:r,focus:Ct,focusData:Wg(Wt[he],xt,C,ae),intervals:UC(g,i),isLoading:Ut,productData:Wg(Wt.product,!1,C,ae),dataLensData:Wg(Wt[ue],xt,C,ae),lens:C,minDate:kh(g),maxDate:kh(i),hasOverview:C==="Overview",hasMobileFilters:t.view.width<750,subLens:J,subLensTitle:Kk[J]+", by "+C.toLowerCase()+" from",lensHelperText:ye,focusHelperText:We,total:Kt,isTrendsDateWarningEnabled:dt}},t=>({onDismissWarning:()=>{t(cb())},onInterval:e=>{const{value:r}=e.target;ma("Dropdown","Trends:"+r),t(__(r))},onLens:e=>{const{value:r}=e.target;ma("Dropdown","Trends:"+r),t(Yx(r))}}))(Jk);Jk.propTypes={focus:Ce().string,hasOverview:Ce().bool.isRequired,subLens:Ce().string.isRequired,hasCompanyOverlay:Ce().bool,dataLensData:Ce().object,focusData:Ce().object,focusHelperText:Ce().string,lens:Ce().string.isRequired,lensHelperText:Ce().string,minDate:Ce().string,maxDate:Ce().string,productData:Ce().object,subLensTitle:Ce().string,total:Ce().number,chartType:Ce().string,dateInterval:Ce().string,intervals:Ce().array.isRequired,isLoading:Ce().bool,onInterval:Ce().func.isRequired,onLens:Ce().func.isRequired,hasMobileFilters:Ce().bool,isTrendsDateWarningEnabled:Ce().bool,onDismissWarning:Ce().func};const oL=()=>{const t=vr($u);let e;switch(t){case Ah:e=a.createElement(F5,null);break;case pa:e=a.createElement(UN,null);break;case to:default:e=a.createElement(iL,null);break}return a.createElement("div",{className:"content_main "+t.toLowerCase()},a.createElement(B5,null),e,a.createElement(H5,null))},p6={},m6={};var aL=Object.defineProperty,tO=Object.getOwnPropertySymbols,sL=Object.prototype.hasOwnProperty,lL=Object.prototype.propertyIsEnumerable,eO=(t,e,r)=>e in t?aL(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,uL=(t,e)=>{for(var r in e||(e={}))sL.call(e,r)&&eO(t,r,e[r]);if(tO)for(var r of tO(e))lL.call(e,r)&&eO(t,r,e[r]);return t};const cL="https://files.consumerfinance.gov";function hL(t){return cL+"/ccdb/complaints."+t+".zip"}function fL(t,e,r){const i=uL({},r);return i.size=e,i.format=t,i.no_aggs=!0,delete i.from,delete i.searchAfter,Nl+qg(i)}const OA="csv",nO="json",rO="filtered",Xv="full",dL=()=>{const t=Si(),e=vr(du),r=vr(aS),i=vr(bA),g=vr($u),[C,J]=(0,a.useState)(Xv),[dt,St]=(0,a.useState)(OA),[xt,Ct]=(0,a.useState)(!1);(0,a.useEffect)(()=>{r===i&&J(Xv)},[r,i]);const Ut=(0,a.useMemo)(()=>{const ae=C===Xv?hL(dt):fL(dt,r,e);return $S(ae)},[C,dt,r,e]),Wt=()=>{ma(C===Xv?"Export All Data":"Export Some Data",g+":"+dt),window.location.assign(Ut),t(td(My))},Kt=ae=>{const ue=document.getElementById("export-uri-input");ue.select(),ue.setSelectionRange(0,99999),navigator.clipboard.writeText(ue.value),ae.target.focus(),Ct(!0)};return a.createElement("section",{className:"export-modal"},a.createElement("div",{className:"header layout-row"},a.createElement("h3",{className:"flex-all"},"Export complaints"),a.createElement("button",{className:"a-btn a-btn__link","data-gtm_ignore":"true",onClick:()=>{t(Il())}},"Close",si("delete-round"))),a.createElement("div",{className:"body"},a.createElement("div",{className:"body-copy instructions"},"To download a copy of this dataset, choose the file format and which complaints you want to export below."),a.createElement("div",{className:"group"},a.createElement("div",{className:"group-title"},"Select a format for the exported file"),a.createElement("div",{className:"body-copy"},a.createElement("div",{className:"m-form-field m-form-field__radio m-form-field__lg-target"},a.createElement("input",{checked:dt===OA,className:"a-radio",id:"format_csv",onChange:()=>{Ct(!1),St(OA)},type:"radio",value:"csv"}),a.createElement("label",{className:"a-label",htmlFor:"format_csv"},"CSV")),a.createElement("div",{className:"m-form-field m-form-field__radio m-form-field__lg-target"},a.createElement("input",{checked:dt===nO,className:"a-radio",id:"format_json",onChange:()=>{Ct(!1),St(nO)},type:"radio",value:"json"}),a.createElement("label",{className:"a-label",htmlFor:"format_json"},"JSON")))),r===i?null:a.createElement("div",{className:"group"},a.createElement("div",{className:"group-title"},"Select which complaints you'd like to export"),a.createElement("div",{className:"body-copy"},a.createElement("div",{className:"m-form-field m-form-field__radio m-form-field__lg-target"},a.createElement("input",{checked:C===rO,className:"a-radio",id:"dataset_filtered",onChange:()=>{Ct(!1),J(rO)},type:"radio",value:"filtered"}),a.createElement("label",{className:"a-label",htmlFor:"dataset_filtered"},"Filtered dataset (",a.createElement(Rh,{value:r}),"\xA0complaints)",a.createElement("br",null),"(only the results of the last search and/or filter)")),a.createElement("div",{className:"m-form-field m-form-field__radio m-form-field__lg-target"},a.createElement("input",{checked:C===Xv,className:"a-radio",id:"dataset_full",onChange:()=>{Ct(!1),J(Xv)},type:"radio",value:"full"}),a.createElement("label",{className:"a-label",htmlFor:"dataset_full"},"Full dataset (",a.createElement(Rh,{value:i}),"\xA0complaints)",a.createElement("br",null),"(not recommended due to very large file size)")))),a.createElement("div",{className:"heres-the-url"},a.createElement("h4",null,"Link to your complaint search results for future reference"),a.createElement("div",{className:"layout-row"},a.createElement("input",{className:"flex-all a-text-input",id:"export-uri-input",type:"text",value:Ut,readOnly:!0}),a.createElement("button",{className:`a-btn ${xt?"export-url-copied":"a-btn__secondary"}`,disabled:!Ut,onClick:Kt},!xt&&a.createElement("div",null,a.createElement("span",{className:"a-btn_icon"},si("copy")),"Copy"),!!xt&&a.createElement("div",null,a.createElement("span",{className:"a-btn_icon"},si("checkmark-round")),"Copied")))),a.createElement("div",{className:"timeliness-warning"},"The export process could take several minutes if you're downloading many complaints")),a.createElement("div",{className:"footer layout-row"},a.createElement("button",{className:"a-btn","data-gtm_ignore":"true",onClick:()=>{Wt()}},"Start export"),a.createElement("button",{className:"a-btn a-btn__link a-btn__warning","data-gtm_ignore":"true",onClick:()=>{t(Il())}},"Cancel")))},pL=()=>{const t=Si();return a.createElement("section",{className:"export-modal"},a.createElement("div",{className:"header layout-row"},a.createElement("h3",{className:"flex-all"},"Export complaints"),a.createElement("button",{className:"a-btn a-btn__link","data-gtm_ignore":"true",onClick:()=>{t(Il())}},"Close",si("delete-round"))),a.createElement("div",{className:"body"},a.createElement("div",{className:"body-copy instructions"},"It may take a few minutes for your file to download. You can keep working while it processes.")))},iO=({onClose:t})=>{const e="https://files.consumerfinance.gov/f/documents/201503_cfpb_Narrative-Scrubbing-Standard.pdf",r="https://files.consumerfinance.gov/f/documents/201503_cfpb_disclosure-of-consumer-complaint-narrative-data.pdf";return a.createElement("section",{className:"more-about-modal"},a.createElement("div",{className:"header"},a.createElement("h3",null,"Things you should know before you use this database")),a.createElement("div",{className:"body"},a.createElement("p",{className:"body-copy"},"This database only includes complaints the CFPB sent to companies and complaints are only published after the company responds, confirming a commercial relationship or after 15 days, whichever comes first. This database does not include complaints referred to other regulators, such as complaints about depository institutions with less than $10 billion in assets."),a.createElement("p",{className:"body-copy"},"This database is not a statistical sample of consumers\u2019 experiences in the marketplace. Complaints are not necessarily representative of all consumers\u2019 experiences with a financial product or company. Company-specific information should be considered in the context of that company\u2019s size and/or market share."),a.createElement("p",{className:"body-copy"},"This database only includes a consumer\u2019s description of what happened in their own words if the consumer agrees to share it and after we take steps to\xA0",a.createElement("a",{href:e,target:"_blank",rel:"noopener noreferrer"},"remove personal information"),".\xA0 One consumer\u2019s experience is not necessarily representative of all consumers\u2019 experiences and narratives are not verified before publication."),a.createElement("p",{className:"body-copy"},"This database generally updates daily and doesn\u2019t include complaints that don\u2019t meet our\xA0",a.createElement("a",{href:r,target:"_blank",rel:"noopener noreferrer"},"publication criteria"),".")),a.createElement("div",{className:"footer layout-row"},a.createElement("button",{className:"a-btn",onClick:t},"Close")))};iO.propTypes={onClose:Ce().func.isRequired};var mL=Un(4823),gL=Un.n(mL);const yL=()=>{const t=vr(ON),e=Si(),r=(0,a.useMemo)(()=>({[Ty]:dL,[My]:pL,[Ay]:iO})[t],[t]);return r?a.createElement(gL(),{appElement:document.querySelector("#ccdb-ui-root"),isOpen:!0,contentLabel:"CFPB Modal Dialog",className:"modal-body",overlayClassName:"modal-overlay",onRequestClose:()=>{e(Il())}},a.createElement(r,{onClose:()=>{e(Il())}})):null},g6={},y6={},v6={},oO=({fieldName:t,value:e})=>{const r=vr(xk),i=vr(du),g=Mo(r,t,[]),C=Mo(i,t,[]),J=$D(t),dt=e.split(os).pop(),St=Si(),xt=()=>{if(t==="date_received")St(Lx("All"));else{const Ct=e;if(ky.includes(t)){const Ut=ak(Ct,C,g,t);St(pu(t,Ut))}else St(Ig(t,Ct))}};return a.createElement("li",null,a.createElement("button",{className:"pill flex-fixed",onClick:xt},a.createElement("span",{className:"name"},J,dt),a.createElement("span",{className:"u-visually-hidden"},`Remove ${dt} as a filter`),si("delete")))};oO.propTypes={fieldName:Ce().string.isRequired,value:Ce().string.isRequired};const vL=()=>{const t=Si(),e=vr(du),r=vr(Kf),i=vr(tv),g=vr(Ep),C=Uf.filter(J=>J in e).reduce((J,dt)=>{const St=e[dt].map(xt=>({fieldName:dt,value:xt}));return J.concat(St)},[]);return g&&C.push({fieldName:"has_narrative",value:"Has narrative"}),(!_r()(r).isSame(_r()(Rc),"day")||!_r()(i).isSame(_r()(Oh()),"day"))&&C.unshift({fieldName:"date_received",value:"Date Received: "+_r()(r).format("M/D/YYYY")+" - "+_r()(i).format("M/D/YYYY")}),C.length?a.createElement("section",{className:"pill-panel"},a.createElement("h3",{className:"h4 pill-label flex-fixed"},"Filters applied:"),a.createElement("ul",{className:"layout-row"},C.map(J=>a.createElement(oO,{key:J.fieldName+J.value,fieldName:J.fieldName,value:J.value})),a.createElement("li",{className:"clear-all"},a.createElement("button",{className:"a-btn a-btn__link body-copy",onClick:()=>t(C_())},si("delete"),"Clear all filters")))):null},x6={},b6={},w6={};function aO(){const t=(0,a.useRef)(!0),e=(0,a.useRef)(()=>t.current);return(0,a.useEffect)(()=>(t.current=!0,()=>{t.current=!1}),[]),e.current}function xL(t){const e=(0,a.useRef)(t);return e.current=t,e}function bL(t){const e=xL(t);(0,a.useEffect)(()=>()=>e.current(),[])}const DA=O3(2,31)-1;function sO(t,e,r){const i=r-Date.now();t.current=i<=DA?setTimeout(e,i):setTimeout(()=>sO(t,e,r),DA)}function wL(){const t=aO(),e=(0,a.useRef)();return bL(()=>clearTimeout(e.current)),(0,a.useMemo)(()=>{const r=()=>clearTimeout(e.current);function i(g,C=0){t()&&(r(),C<=DA?e.current=setTimeout(g,C):sO(e,g,Date.now()+C))}return{set:i,clear:r,handleRef:e}},[])}var _L=function(){};function _6(t,e){return function(r,i){if(r[i]!==void 0&&!r[t])return new Error("You have provided a `"+i+"` prop to `"+e+"` "+("without an `"+t+"` handler prop. This will render a read-only field. ")+("If the field should be mutable use `"+lO(i)+"`. ")+("Otherwise, set `"+t+"`."))}}function E6(t,e){var r={};return Object.keys(t).forEach(function(i){if(r[lO(i)]=_L,!1)var g}),r}function S6(t,e){return t[e]!==void 0}function lO(t){return"default"+t.charAt(0).toUpperCase()+t.substr(1)}function C6(t){return!!t&&(typeof t!="function"||t.prototype&&t.prototype.isReactComponent)}function EL(t){var e=SL(t,"string");return typeof e=="symbol"?e:String(e)}function SL(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function uO(t,e,r){var i=(0,a.useRef)(t!==void 0),g=(0,a.useState)(e),C=g[0],J=g[1],dt=t!==void 0,St=i.current;return i.current=dt,!dt&&St&&C!==e&&J(e),[dt?t:C,(0,a.useCallback)(function(xt){for(var Ct=arguments.length,Ut=new Array(Ct>1?Ct-1:0),Wt=1;Wt<Ct;Wt++)Ut[Wt-1]=arguments[Wt];r&&r.apply(void 0,[xt].concat(Ut)),J(xt)},[r])]}function T6(t,e){return Object.keys(e).reduce(function(r,i){var g,C=r,J=C[Utils.defaultKey(i)],dt=C[i],St=_objectWithoutPropertiesLoose(C,[Utils.defaultKey(i),i].map(EL)),xt=e[i],Ct=uO(dt,J,t[xt]),Ut=Ct[0],Wt=Ct[1];return _extends({},St,(g={},g[i]=Ut,g[xt]=Wt,g))},t)}var M6=Un(9018),CL="/Users/jquense/src/uncontrollable/src/uncontrollable.js";function TL(t,e,r){r===void 0&&(r=[]);var i=t.displayName||t.name||"Component",g=Utils.canAcceptRef(t),C=Object.keys(e),J=C.map(Utils.defaultKey);g||!r.length||invariant(!1);var dt=function(xt){_inheritsLoose(Ct,xt);function Ct(){for(var Wt,Kt=arguments.length,ae=new Array(Kt),ue=0;ue<Kt;ue++)ae[ue]=arguments[ue];Wt=xt.call.apply(xt,[this].concat(ae))||this,Wt.handlers=Object.create(null),C.forEach(function(ye){var We=e[ye],en=function(on){if(Wt.props[We]){var ze;Wt._notifying=!0;for(var Pn=arguments.length,_n=new Array(Pn>1?Pn-1:0),zn=1;zn<Pn;zn++)_n[zn-1]=arguments[zn];(ze=Wt.props)[We].apply(ze,[on].concat(_n)),Wt._notifying=!1}Wt.unmounted||Wt.setState(function(mr){var pr,ur=mr.values;return{values:_extends(Object.create(null),ur,(pr={},pr[ye]=on,pr))}})};Wt.handlers[We]=en}),r.length&&(Wt.attachRef=function(ye){Wt.inner=ye});var he=Object.create(null);return C.forEach(function(ye){he[ye]=Wt.props[Utils.defaultKey(ye)]}),Wt.state={values:he,prevProps:{}},Wt}var Ut=Ct.prototype;return Ut.shouldComponentUpdate=function(){return!this._notifying},Ct.getDerivedStateFromProps=function(Kt,ae){var ue=ae.values,he=ae.prevProps,ye={values:_extends(Object.create(null),ue),prevProps:{}};return C.forEach(function(We){ye.prevProps[We]=Kt[We],!Utils.isProp(Kt,We)&&Utils.isProp(he,We)&&(ye.values[We]=Kt[Utils.defaultKey(We)])}),ye},Ut.componentWillUnmount=function(){this.unmounted=!0},Ut.render=function(){var Kt=this,ae=this.props,ue=ae.innerRef,he=_objectWithoutPropertiesLoose(ae,["innerRef"]);J.forEach(function(We){delete he[We]});var ye={};return C.forEach(function(We){var en=Kt.props[We];ye[We]=en!==void 0?en:Kt.state.values[We]}),React.createElement(t,_extends({},he,ye,this.handlers,{ref:ue||this.attachRef}))},Ct}(React.Component);polyfill(dt),dt.displayName="Uncontrolled("+i+")",dt.propTypes=_extends({innerRef:function(){}},Utils.uncontrolledPropTypes(e,i)),r.forEach(function(xt){dt.prototype[xt]=function(){var Ut;return(Ut=this.inner)[xt].apply(Ut,arguments)}});var St=dt;return React.forwardRef&&(St=React.forwardRef(function(xt,Ct){return React.createElement(dt,_extends({},xt,{innerRef:Ct,__source:{fileName:CL,lineNumber:128},__self:this}))}),St.propTypes=dt.propTypes),St.ControlledComponent=t,St.deferControlTo=function(xt,Ct,Ut){return Ct===void 0&&(Ct={}),TL(xt,_extends({},e,Ct),Ut)},St}const cO=t=>!t||typeof t=="function"?t:e=>{t.current=e};function ML(t,e){const r=cO(t),i=cO(e);return g=>{r&&r(g),i&&i(g)}}function AL(t,e){return(0,a.useMemo)(()=>ML(t,e),[t,e])}const $v=AL;var PL=Un(1443),qv=Un.n(PL);function hO(){return(0,a.useState)(null)}var fO=Object.prototype.hasOwnProperty;function dO(t,e,r){for(r of t.keys())if(dw(r,e))return r}function dw(t,e){var r,i,g;if(t===e)return!0;if(t&&e&&(r=t.constructor)===e.constructor){if(r===Date)return t.getTime()===e.getTime();if(r===RegExp)return t.toString()===e.toString();if(r===Array){if((i=t.length)===e.length)for(;i--&&dw(t[i],e[i]););return i===-1}if(r===Set){if(t.size!==e.size)return!1;for(i of t)if(g=i,g&&typeof g=="object"&&(g=dO(e,g),!g)||!e.has(g))return!1;return!0}if(r===Map){if(t.size!==e.size)return!1;for(i of t)if(g=i[0],g&&typeof g=="object"&&(g=dO(e,g),!g)||!dw(i[1],e.get(g)))return!1;return!0}if(r===ArrayBuffer)t=new Uint8Array(t),e=new Uint8Array(e);else if(r===DataView){if((i=t.byteLength)===e.byteLength)for(;i--&&t.getInt8(i)===e.getInt8(i););return i===-1}if(ArrayBuffer.isView(t)){if((i=t.byteLength)===e.byteLength)for(;i--&&t[i]===e[i];);return i===-1}if(!r||typeof t=="object"){i=0;for(r in t)if(fO.call(t,r)&&++i&&!fO.call(e,r)||!(r in e)||!dw(t[r],e[r]))return!1;return Object.keys(e).length===i}}return t!==t&&e!==e}function kL(t){const e=aO();return[t[0],(0,a.useCallback)(r=>{if(e())return t[1](r)},[e,t[1]])]}const OL=kL,DL=qp({defaultModifiers:[Pr,nw,iw,Gv,o,ln,Wn,or]}),NL=["enabled","placement","strategy","modifiers"];function LL(t,e){if(t==null)return{};var r={},i=Object.keys(t),g,C;for(C=0;C<i.length;C++)g=i[C],!(e.indexOf(g)>=0)&&(r[g]=t[g]);return r}const RL={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},IL={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:t})=>()=>{const{reference:e,popper:r}=t.elements;if("removeAttribute"in e){const i=(e.getAttribute("aria-describedby")||"").split(",").filter(g=>g.trim()!==r.id);i.length?e.setAttribute("aria-describedby",i.join(",")):e.removeAttribute("aria-describedby")}},fn:({state:t})=>{var e;const{popper:r,reference:i}=t.elements,g=(e=r.getAttribute("role"))==null?void 0:e.toLowerCase();if(r.id&&g==="tooltip"&&"setAttribute"in i){const C=i.getAttribute("aria-describedby");if(C&&C.split(",").indexOf(r.id)!==-1)return;i.setAttribute("aria-describedby",C?`${C},${r.id}`:r.id)}}},jL=[];function FL(t,e,r={}){let{enabled:i=!0,placement:g="bottom",strategy:C="absolute",modifiers:J=jL}=r,dt=LL(r,NL);const St=(0,a.useRef)(J),xt=(0,a.useRef)(),Ct=(0,a.useCallback)(()=>{var he;(he=xt.current)==null||he.update()},[]),Ut=(0,a.useCallback)(()=>{var he;(he=xt.current)==null||he.forceUpdate()},[]),[Wt,Kt]=OL((0,a.useState)({placement:g,update:Ct,forceUpdate:Ut,attributes:{},styles:{popper:{},arrow:{}}})),ae=(0,a.useMemo)(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:he})=>{const ye={},We={};Object.keys(he.elements).forEach(en=>{ye[en]=he.styles[en],We[en]=he.attributes[en]}),Kt({state:he,styles:ye,attributes:We,update:Ct,forceUpdate:Ut,placement:he.placement})}}),[Ct,Ut,Kt]),ue=(0,a.useMemo)(()=>(dw(St.current,J)||(St.current=J),St.current),[J]);return(0,a.useEffect)(()=>{!xt.current||!i||xt.current.setOptions({placement:g,strategy:C,modifiers:[...ue,ae,RL]})},[C,g,ae,i,ue]),(0,a.useEffect)(()=>{if(!(!i||t==null||e==null))return xt.current=DL(t,e,Object.assign({},dt,{placement:g,strategy:C,modifiers:[...ue,IL,ae]})),()=>{xt.current!=null&&(xt.current.destroy(),xt.current=void 0,Kt(he=>Object.assign({},he,{attributes:{},styles:{popper:{}}})))}},[i,t,e]),Wt}const BL=FL;function HL(t){const e=(0,a.useRef)(t);return(0,a.useEffect)(()=>{e.current=t},[t]),e}const zL=HL;function Kv(t){const e=zL(t);return(0,a.useCallback)(function(...r){return e.current&&e.current(...r)},[e])}const pO=()=>{};function UL(t){return t.button===0}function WL(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}const dS=t=>t&&("current"in t?t.current:t),mO={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function GL(t,e=pO,{disabled:r,clickTrigger:i="click"}={}){const g=(0,a.useRef)(!1),C=(0,a.useRef)(!1),J=(0,a.useCallback)(xt=>{const Ct=dS(t);Pb()(!!Ct,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),g.current=!Ct||WL(xt)||!UL(xt)||!!QE(Ct,xt.target)||C.current,C.current=!1},[t]),dt=Kv(xt=>{const Ct=dS(t);Ct&&QE(Ct,xt.target)&&(C.current=!0)}),St=Kv(xt=>{g.current||e(xt)});(0,a.useEffect)(()=>{var xt,Ct;if(r||t==null)return;const Ut=ow(dS(t)),Wt=Ut.defaultView||window;let Kt=(xt=Wt.event)!=null?xt:(Ct=Wt.parent)==null?void 0:Ct.event,ae=null;mO[i]&&(ae=Gc(Ut,mO[i],dt,!0));const ue=Gc(Ut,i,J,!0),he=Gc(Ut,i,We=>{if(We===Kt){Kt=void 0;return}St(We)});let ye=[];return"ontouchstart"in Ut.documentElement&&(ye=[].slice.call(Ut.body.children).map(We=>Gc(We,"mousemove",pO))),()=>{ae==null||ae(),ue(),he(),ye.forEach(We=>We())}},[t,r,i,J,dt,St])}const VL=GL;function YL(t){return t.code==="Escape"||t.keyCode===27}const XL=()=>{};function $L(t,e,{disabled:r,clickTrigger:i}={}){const g=e||XL;VL(t,g,{disabled:r,clickTrigger:i});const C=Kv(J=>{YL(J)&&g(J)});(0,a.useEffect)(()=>{if(r||t==null)return;const J=ow(dS(t));let dt=(J.defaultView||window).event;const St=Gc(J,"keyup",xt=>{if(xt===dt){dt=void 0;return}C(xt)});return()=>{St()}},[t,r,C])}const qL=$L,gO=(0,a.createContext)(uA?window:void 0),A6=gO.Provider;function KL(){return(0,a.useContext)(gO)}const NA=(t,e)=>uA?t==null?(e||ow()).body:(typeof t=="function"&&(t=t()),t&&"current"in t&&(t=t.current),t&&("nodeType"in t||t.getBoundingClientRect)?t:null):null;function yO(t,e){const r=KL(),[i,g]=(0,a.useState)(()=>NA(t,r==null?void 0:r.document));if(!i){const C=NA(t);C&&g(C)}return(0,a.useEffect)(()=>{e&&i&&e(i)},[e,i]),(0,a.useEffect)(()=>{const C=NA(t);C!==i&&g(C)},[t,i]),i}function ZL(t){const e={};return Array.isArray(t)?(t==null||t.forEach(r=>{e[r.name]=r}),e):t||e}function QL(t={}){return Array.isArray(t)?t:Object.keys(t).map(e=>(t[e].name=e,t[e]))}function JL({enabled:t,enableEvents:e,placement:r,flip:i,offset:g,fixed:C,containerPadding:J,arrowElement:dt,popperConfig:St={}}){var xt,Ct,Ut,Wt,Kt;const ae=ZL(St.modifiers);return Object.assign({},St,{placement:r,enabled:t,strategy:C?"fixed":St.strategy,modifiers:QL(Object.assign({},ae,{eventListeners:{enabled:e,options:(xt=ae.eventListeners)==null?void 0:xt.options},preventOverflow:Object.assign({},ae.preventOverflow,{options:J?Object.assign({padding:J},(Ct=ae.preventOverflow)==null?void 0:Ct.options):(Ut=ae.preventOverflow)==null?void 0:Ut.options}),offset:{options:Object.assign({offset:g},(Wt=ae.offset)==null?void 0:Wt.options)},arrow:Object.assign({},ae.arrow,{enabled:!!dt,options:Object.assign({},(Kt=ae.arrow)==null?void 0:Kt.options,{element:dt})}),flip:Object.assign({enabled:!!i},ae.flip)}))})}const tR=typeof Un.g!="undefined"&&Un.g.navigator&&Un.g.navigator.product==="ReactNative",LA=typeof document!="undefined"||tR?a.useLayoutEffect:a.useEffect;function eR({children:t,in:e,onExited:r,mountOnEnter:i,unmountOnExit:g}){const C=(0,a.useRef)(null),J=(0,a.useRef)(e),dt=Kv(r);(0,a.useEffect)(()=>{e?J.current=!0:dt(C.current)},[e,dt]);const St=$v(C,t.ref),xt=(0,a.cloneElement)(t,{ref:St});return e?xt:g||!J.current&&i?null:xt}const nR=eR;var Os=Un(7557);function rR({in:t,onTransition:e}){const r=(0,a.useRef)(null),i=(0,a.useRef)(!0),g=Kv(e);return LA(()=>{if(!r.current)return;let C=!1;return g({in:t,element:r.current,initial:i.current,isStale:()=>C}),()=>{C=!0}},[t,g]),LA(()=>(i.current=!1,()=>{i.current=!0}),[]),r}function iR({children:t,in:e,onExited:r,onEntered:i,transition:g}){const[C,J]=(0,a.useState)(!e);e&&C&&J(!1);const dt=rR({in:!!e,onTransition:xt=>{const Ct=()=>{xt.isStale()||(xt.in?i==null||i(xt.element,xt.initial):(J(!0),r==null||r(xt.element)))};Promise.resolve(g(xt)).then(Ct,Ut=>{throw xt.in||J(!0),Ut})}}),St=$v(dt,t.ref);return C&&!e?null:(0,a.cloneElement)(t,{ref:St})}function oR(t,e,r){return t?(0,Os.jsx)(t,Object.assign({},r)):e?(0,Os.jsx)(iR,Object.assign({},r,{transition:e})):(0,Os.jsx)(nR,Object.assign({},r))}const vO=a.forwardRef((t,e)=>{const{flip:r,offset:i,placement:g,containerPadding:C,popperConfig:J={},transition:dt,runTransition:St}=t,[xt,Ct]=hO(),[Ut,Wt]=hO(),Kt=$v(Ct,e),ae=yO(t.container),ue=yO(t.target),[he,ye]=(0,a.useState)(!t.show),We=BL(ue,xt,JL({placement:g,enableEvents:!!t.show,containerPadding:C||5,flip:r,offset:i,arrowElement:Ut,popperConfig:J}));t.show&&he&&ye(!1);const en=(...pr)=>{ye(!0),t.onExited&&t.onExited(...pr)},cn=t.show||!he;if(qL(xt,t.onHide,{disabled:!t.rootClose||t.rootCloseDisabled,clickTrigger:t.rootCloseEvent}),!cn)return null;const{onExit:on,onExiting:ze,onEnter:Pn,onEntering:_n,onEntered:zn}=t;let mr=t.children(Object.assign({},We.attributes.popper,{style:We.styles.popper,ref:Kt}),{popper:We,placement:g,show:!!t.show,arrowProps:Object.assign({},We.attributes.arrow,{style:We.styles.arrow,ref:Wt})});return mr=oR(dt,St,{in:!!t.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:mr,onExit:on,onExiting:ze,onExited:en,onEnter:Pn,onEntering:_n,onEntered:zn}),ae?H.createPortal(mr,ae):null});vO.displayName="Overlay";const aR=vO;function xO(t,e){return t.classList?!!e&&t.classList.contains(e):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")!==-1}const bO=["xxl","xl","lg","md","sm","xs"],wO="xs",pw=a.createContext({prefixes:{},breakpoints:bO,minBreakpoint:wO}),{Consumer:k6,Provider:sR}=pw;function O6({prefixes:t={},breakpoints:e=bO,minBreakpoint:r=wO,dir:i,children:g}){const C=useMemo(()=>({prefixes:io({},t),breakpoints:e,minBreakpoint:r,dir:i}),[t,e,r,i]);return _jsx(sR,{value:C,children:g})}function u0(t,e){const{prefixes:r}=(0,a.useContext)(pw);return t||r[e]||e}function D6(){const{breakpoints:t}=useContext(pw);return t}function N6(){const{minBreakpoint:t}=useContext(pw);return t}function _O(){const{dir:t}=(0,a.useContext)(pw);return t==="rtl"}function L6(t,e){typeof e=="string"&&(e={prefix:e});const r=t.prototype&&t.prototype.isReactComponent,{prefix:i,forwardRefAs:g=r?"ref":"innerRef"}=e,C=React.forwardRef((St,dt)=>{var J=Yi(St,[]);J[g]=dt;const xt=u0(J.bsPrefix,i);return _jsx(t,Rs(io({},J),{bsPrefix:xt}))});return C.displayName=`Bootstrap(${t.displayName||t.name})`,C}const R6=null,EO=a.forwardRef((C,g)=>{var J=C,{className:t,bsPrefix:e,as:r="div"}=J,i=Yi(J,["className","bsPrefix","as"]);return e=u0(e,"popover-header"),(0,Os.jsx)(r,io({ref:g,className:qv()(t,e)},i))});EO.displayName="PopoverHeader";const lR=EO,SO=a.forwardRef((C,g)=>{var J=C,{className:t,bsPrefix:e,as:r="div"}=J,i=Yi(J,["className","bsPrefix","as"]);return e=u0(e,"popover-body"),(0,Os.jsx)(r,io({ref:g,className:qv()(t,e)},i))});SO.displayName="PopoverBody";const CO=SO;class I6 extends a.Component{}function TO(t,e){let r=t;return t==="left"?r=e?"end":"start":t==="right"&&(r=e?"start":"end"),r}function MO(t="absolute"){return{position:t,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const uR=Object.assign(a.forwardRef((Wt,Ut)=>{var Kt=Wt,{bsPrefix:t,placement:e="right",className:r,style:i,children:g,body:C,arrowProps:J,hasDoneInitialMeasure:dt,popper:St,show:xt}=Kt,Ct=Yi(Kt,["bsPrefix","placement","className","style","children","body","arrowProps","hasDoneInitialMeasure","popper","show"]);const ae=u0(t,"popover"),ue=_O(),[he]=(e==null?void 0:e.split("-"))||[],ye=TO(he,ue);let We=i;return xt&&!dt&&(We=io(io({},i),MO(St==null?void 0:St.strategy))),(0,Os.jsxs)("div",Rs(io({ref:Ut,role:"tooltip",style:We,"x-placement":he,className:qv()(r,ae,he&&`bs-popover-${ye}`)},Ct),{children:[(0,Os.jsx)("div",io({className:"popover-arrow"},J)),C?(0,Os.jsx)(CO,{children:g}):g]}))}),{Header:lR,Body:CO,POPPER_OFFSET:[0,8]}),AO=a.forwardRef((Ut,Ct)=>{var Wt=Ut,{bsPrefix:t,placement:e="right",className:r,style:i,children:g,arrowProps:C,hasDoneInitialMeasure:J,popper:dt,show:St}=Wt,xt=Yi(Wt,["bsPrefix","placement","className","style","children","arrowProps","hasDoneInitialMeasure","popper","show"]);t=u0(t,"tooltip");const Kt=_O(),[ae]=(e==null?void 0:e.split("-"))||[],ue=TO(ae,Kt);let he=i;return St&&!J&&(he=io(io({},i),MO(dt==null?void 0:dt.strategy))),(0,Os.jsxs)("div",Rs(io({ref:Ct,style:he,role:"tooltip","x-placement":ae,className:qv()(r,t,`bs-tooltip-${ue}`)},xt),{children:[(0,Os.jsx)("div",io({className:"tooltip-arrow"},C)),(0,Os.jsx)("div",{className:`${t}-inner`,children:g})]}))});AO.displayName="Tooltip";const PO=Object.assign(AO,{TOOLTIP_OFFSET:[0,6]});function cR(t){const e=(0,a.useRef)(null),r=u0(void 0,"popover"),i=u0(void 0,"tooltip"),g=(0,a.useMemo)(()=>({name:"offset",options:{offset:()=>{if(t)return t;if(e.current){if(xO(e.current,r))return uR.POPPER_OFFSET;if(xO(e.current,i))return PO.TOOLTIP_OFFSET}return[0,0]}}}),[t,r,i]);return[e,[g]]}function hR(t,e){if(t==null)return{};var r={},i=Object.keys(t),g,C;for(C=0;C<i.length;C++)g=i[C],!(e.indexOf(g)>=0)&&(r[g]=t[g]);return r}function RA(t,e){return RA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,g){return i.__proto__=g,i},RA(t,e)}function fR(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,RA(t,e)}const kO={disabled:!1},OO=a.createContext(null);var dR=function(e){return e.scrollTop},mw="unmounted",c0="exited",Kp="entering",h0="entered",IA="exiting",pd=function(t){fR(e,t);function e(i,g){var C;C=t.call(this,i,g)||this;var J=g,dt=J&&!J.isMounting?i.enter:i.appear,St;return C.appearStatus=null,i.in?dt?(St=c0,C.appearStatus=Kp):St=h0:i.unmountOnExit||i.mountOnEnter?St=mw:St=c0,C.state={status:St},C.nextCallback=null,C}e.getDerivedStateFromProps=function(g,C){var J=g.in;return J&&C.status===mw?{status:c0}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(g){var C=null;if(g!==this.props){var J=this.state.status;this.props.in?J!==Kp&&J!==h0&&(C=Kp):(J===Kp||J===h0)&&(C=IA)}this.updateStatus(!1,C)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var g=this.props.timeout,C,J,dt;return C=J=dt=g,g!=null&&typeof g!="number"&&(C=g.exit,J=g.enter,dt=g.appear!==void 0?g.appear:J),{exit:C,enter:J,appear:dt}},r.updateStatus=function(g,C){if(g===void 0&&(g=!1),C!==null)if(this.cancelNextCallback(),C===Kp){if(this.props.unmountOnExit||this.props.mountOnEnter){var J=this.props.nodeRef?this.props.nodeRef.current:H.findDOMNode(this);J&&dR(J)}this.performEnter(g)}else this.performExit();else this.props.unmountOnExit&&this.state.status===c0&&this.setState({status:mw})},r.performEnter=function(g){var C=this,J=this.props.enter,dt=this.context?this.context.isMounting:g,St=this.props.nodeRef?[dt]:[H.findDOMNode(this),dt],xt=St[0],Ct=St[1],Ut=this.getTimeouts(),Wt=dt?Ut.appear:Ut.enter;if(!g&&!J||kO.disabled){this.safeSetState({status:h0},function(){C.props.onEntered(xt)});return}this.props.onEnter(xt,Ct),this.safeSetState({status:Kp},function(){C.props.onEntering(xt,Ct),C.onTransitionEnd(Wt,function(){C.safeSetState({status:h0},function(){C.props.onEntered(xt,Ct)})})})},r.performExit=function(){var g=this,C=this.props.exit,J=this.getTimeouts(),dt=this.props.nodeRef?void 0:H.findDOMNode(this);if(!C||kO.disabled){this.safeSetState({status:c0},function(){g.props.onExited(dt)});return}this.props.onExit(dt),this.safeSetState({status:IA},function(){g.props.onExiting(dt),g.onTransitionEnd(J.exit,function(){g.safeSetState({status:c0},function(){g.props.onExited(dt)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(g,C){C=this.setNextCallback(C),this.setState(g,C)},r.setNextCallback=function(g){var C=this,J=!0;return this.nextCallback=function(dt){J&&(J=!1,C.nextCallback=null,g(dt))},this.nextCallback.cancel=function(){J=!1},this.nextCallback},r.onTransitionEnd=function(g,C){this.setNextCallback(C);var J=this.props.nodeRef?this.props.nodeRef.current:H.findDOMNode(this),dt=g==null&&!this.props.addEndListener;if(!J||dt){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var St=this.props.nodeRef?[this.nextCallback]:[J,this.nextCallback],xt=St[0],Ct=St[1];this.props.addEndListener(xt,Ct)}g!=null&&setTimeout(this.nextCallback,g)},r.render=function(){var g=this.state.status;if(g===mw)return null;var C=this.props,J=C.children,dt=C.in,St=C.mountOnEnter,xt=C.unmountOnExit,Ct=C.appear,Ut=C.enter,Wt=C.exit,Kt=C.timeout,ae=C.addEndListener,ue=C.onEnter,he=C.onEntering,ye=C.onEntered,We=C.onExit,en=C.onExiting,cn=C.onExited,on=C.nodeRef,ze=hR(C,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return a.createElement(OO.Provider,{value:null},typeof J=="function"?J(g,ze):a.cloneElement(a.Children.only(J),ze))},e}(a.Component);pd.contextType=OO,pd.propTypes={};function Zv(){}pd.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Zv,onEntering:Zv,onEntered:Zv,onExit:Zv,onExiting:Zv,onExited:Zv},pd.UNMOUNTED=mw,pd.EXITED=c0,pd.ENTERING=Kp,pd.ENTERED=h0,pd.EXITING=IA;const pR=pd;function mR(t){var e=ow(t);return e&&e.defaultView||window}function gR(t,e){return mR(t).getComputedStyle(t,e)}var yR=/([A-Z])/g;function vR(t){return t.replace(yR,"-$1").toLowerCase()}var xR=/^ms-/;function pS(t){return vR(t).replace(xR,"-ms-")}var bR=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function wR(t){return!!(t&&bR.test(t))}function _R(t,e){var r="",i="";if(typeof e=="string")return t.style.getPropertyValue(pS(e))||gR(t).getPropertyValue(pS(e));Object.keys(e).forEach(function(g){var C=e[g];!C&&C!==0?t.style.removeProperty(pS(g)):wR(g)?i+=g+"("+C+") ":r+=pS(g)+": "+C+";"}),i&&(r+="transform: "+i+";"),t.style.cssText+=";"+r}const DO=_R;function ER(t,e,r,i){if(r===void 0&&(r=!1),i===void 0&&(i=!0),t){var g=document.createEvent("HTMLEvents");g.initEvent(e,r,i),t.dispatchEvent(g)}}function SR(t){var e=DO(t,"transitionDuration")||"",r=e.indexOf("ms")===-1?1e3:1;return parseFloat(e)*r}function CR(t,e,r){r===void 0&&(r=5);var i=!1,g=setTimeout(function(){i||ER(t,"transitionend",!0)},e+r),C=Gc(t,"transitionend",function(){i=!0},{once:!0});return function(){clearTimeout(g),C()}}function TR(t,e,r,i){r==null&&(r=SR(t)||0);var g=CR(t,r,i),C=Gc(t,"transitionend",e);return function(){g(),C()}}function NO(t,e){const r=DO(t,e)||"",i=r.indexOf("ms")===-1?1e3:1;return parseFloat(r)*i}function MR(t,e){const r=NO(t,"transitionDuration"),i=NO(t,"transitionDelay"),g=TR(t,C=>{C.target===t&&(g(),e(C))},r+i)}function AR(t){t.offsetHeight}function mS(t){return t&&"setState"in t?H.findDOMNode(t):t!=null?t:null}const PR=a.forwardRef((Ut,Ct)=>{var Wt=Ut,{onEnter:t,onEntering:e,onEntered:r,onExit:i,onExiting:g,onExited:C,addEndListener:J,children:dt,childRef:St}=Wt,xt=Yi(Wt,["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children","childRef"]);const Kt=(0,a.useRef)(null),ae=$v(Kt,St),ue=_n=>{ae(mS(_n))},he=_n=>zn=>{_n&&Kt.current&&_n(Kt.current,zn)},ye=(0,a.useCallback)(he(t),[t]),We=(0,a.useCallback)(he(e),[e]),en=(0,a.useCallback)(he(r),[r]),cn=(0,a.useCallback)(he(i),[i]),on=(0,a.useCallback)(he(g),[g]),ze=(0,a.useCallback)(he(C),[C]),Pn=(0,a.useCallback)(he(J),[J]);return(0,Os.jsx)(pR,Rs(io({ref:Ct},xt),{onEnter:ye,onEntered:en,onEntering:We,onExit:cn,onExited:ze,onExiting:on,addEndListener:Pn,nodeRef:Kt,children:typeof dt=="function"?(_n,zn)=>dt(_n,Rs(io({},zn),{ref:ue})):a.cloneElement(dt,{ref:ue})}))}),kR={[Kp]:"show",[h0]:"show"},LO=a.forwardRef((J,C)=>{var dt=J,{className:t,children:e,transitionClasses:r={},onEnter:i}=dt,g=Yi(dt,["className","children","transitionClasses","onEnter"]);const St=io({in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1},g),xt=(0,a.useCallback)((Ct,Ut)=>{AR(Ct),i==null||i(Ct,Ut)},[i]);return(0,Os.jsx)(PR,Rs(io({ref:C,addEndListener:MR},St),{onEnter:xt,childRef:e.ref,children:(Ct,Ut)=>a.cloneElement(e,Rs(io({},Ut),{className:qv()("fade",t,e.props.className,kR[Ct],r[Ct])}))}))});LO.displayName="Fade";const RO=LO;function OR(t,e){const{ref:r}=t,{ref:i}=e;t.ref=r.__wrapped||(r.__wrapped=g=>r(mS(g))),e.ref=i.__wrapped||(i.__wrapped=g=>i(mS(g)))}const IO=a.forwardRef((St,dt)=>{var xt=St,{children:t,transition:e=RO,popperConfig:r={},rootClose:i=!1,placement:g="top",show:C=!1}=xt,J=Yi(xt,["children","transition","popperConfig","rootClose","placement","show"]);const Ct=(0,a.useRef)({}),[Ut,Wt]=(0,a.useState)(null),[Kt,ae]=cR(J.offset),ue=$v(dt,Kt),he=e===!0?RO:e||void 0,ye=Kv(We=>{Wt(We),r==null||r.onFirstUpdate==null||r.onFirstUpdate(We)});return LA(()=>{Ut&&J.target&&(Ct.current.scheduleUpdate==null||Ct.current.scheduleUpdate())},[Ut,J.target]),(0,a.useEffect)(()=>{C||Wt(null)},[C]),(0,Os.jsx)(aR,Rs(io({},J),{ref:ue,popperConfig:Rs(io({},r),{modifiers:ae.concat(r.modifiers||[]),onFirstUpdate:ye}),transition:he,rootClose:i,placement:g,show:C,children:(We,{arrowProps:en,popper:cn,show:on})=>{var ze,Pn;OR(We,en);const _n=cn==null?void 0:cn.placement,zn=Object.assign(Ct.current,{state:cn==null?void 0:cn.state,scheduleUpdate:cn==null?void 0:cn.update,placement:_n,outOfBoundaries:(cn==null||(ze=cn.state)==null||(Pn=ze.modifiersData.hide)==null?void 0:Pn.isReferenceHidden)||!1,strategy:r.strategy}),mr=!!Ut;return typeof t=="function"?t(Rs(io(Rs(io({},We),{placement:_n,show:on}),!e&&on&&{className:"show"}),{popper:zn,arrowProps:en,hasDoneInitialMeasure:mr})):a.cloneElement(t,Rs(io({},We),{placement:_n,arrowProps:en,popper:zn,hasDoneInitialMeasure:mr,className:qv()(t.props.className,!e&&on&&"show"),style:io(io({},t.props.style),We.style)}))}}))});IO.displayName="Overlay";const DR=IO;function NR(t){return t&&typeof t=="object"?t:{show:t,hide:t}}function jO(t,e,r){const[i]=e,g=i.currentTarget,C=i.relatedTarget||i.nativeEvent[r];(!C||C!==g)&&!QE(g,C)&&t(...e)}const B6=Ce().oneOf(["click","hover","focus"]),LR=Ut=>{var Wt=Ut,{trigger:t=["hover","focus"],overlay:e,children:r,popperConfig:i={},show:g,defaultShow:C=!1,onToggle:J,delay:dt,placement:St,flip:xt=St&&St.indexOf("auto")!==-1}=Wt,Ct=Yi(Wt,["trigger","overlay","children","popperConfig","show","defaultShow","onToggle","delay","placement","flip"]);const Kt=(0,a.useRef)(null),ae=$v(Kt,r.ref),ue=wL(),he=(0,a.useRef)(""),[ye,We]=uO(g,C,J),en=NR(dt),{onFocus:cn,onBlur:on,onClick:ze}=typeof r!="function"?a.Children.only(r).props:{},Pn=gr=>{ae(mS(gr))},_n=(0,a.useCallback)(()=>{if(ue.clear(),he.current="show",!en.show){We(!0);return}ue.set(()=>{he.current==="show"&&We(!0)},en.show)},[en.show,We,ue]),zn=(0,a.useCallback)(()=>{if(ue.clear(),he.current="hide",!en.hide){We(!1);return}ue.set(()=>{he.current==="hide"&&We(!1)},en.hide)},[en.hide,We,ue]),mr=(0,a.useCallback)((...gr)=>{_n(),cn==null||cn(...gr)},[_n,cn]),pr=(0,a.useCallback)((...gr)=>{zn(),on==null||on(...gr)},[zn,on]),ur=(0,a.useCallback)((...gr)=>{We(!ye),ze==null||ze(...gr)},[ze,We,ye]),br=(0,a.useCallback)((...gr)=>{jO(_n,gr,"fromElement")},[_n]),Hr=(0,a.useCallback)((...gr)=>{jO(zn,gr,"toElement")},[zn]),vi=t==null?[]:[].concat(t),xi={ref:Pn};return vi.indexOf("click")!==-1&&(xi.onClick=ur),vi.indexOf("focus")!==-1&&(xi.onFocus=mr,xi.onBlur=pr),vi.indexOf("hover")!==-1&&(xi.onMouseOver=br,xi.onMouseOut=Hr),(0,Os.jsxs)(Os.Fragment,{children:[typeof r=="function"?r(xi):(0,a.cloneElement)(r,xi),(0,Os.jsx)(DR,Rs(io({},Ct),{show:ye,onHide:zn,flip:xt,placement:St,popperConfig:i,target:Kt.current,children:e}))]})};var FO=Un(9526);const oc=({children:t,placement:e,text:r})=>FO.createElement(LR,{placement:e,overlay:FO.createElement(PO,null,r)},t);oc.propTypes={children:Ce().element.isRequired,placement:Ce().string,text:Ce().string.isRequired};const z6={},Qv=({id:t,notes:e,placeholderText:r,tooltipText:i})=>{const[g,C]=(0,a.useState)(!1);return a.createElement("div",{className:"o-expandable complex-example"},a.createElement("button",{className:"o-expandable_header","aria-expanded":g,onClick:()=>{C(!g)},title:"Expand content"},a.createElement("h3",{className:"o-expandable_label"},"Additional information and examples"),a.createElement("span",{className:"o-expandable_cues"},g?a.createElement("span",{className:"o-expandable_cue-close",role:"img","aria-label":"Hide"},a.createElement("span",{className:"u-visually-hidden-on-mobile"},si("up"))):a.createElement("span",{className:"o-expandable_cue-open",role:"img","aria-label":"Show"},a.createElement("span",{className:"u-visually-hidden-on-mobile"},si("down"))))),g?a.createElement("div",{className:"o-expandable_content"},i&&r?a.createElement(a.Fragment,null,a.createElement("label",{className:"descriptor",htmlFor:`example-${t}`},"Complex example:"),a.createElement("span",{className:"u-visually-hidden"},i),a.createElement(oc,{text:i},r.length>30?a.createElement("textarea",{className:"a-text-input example-input_full",id:`example-${t}`,rows:2,readOnly:!0,value:r}):a.createElement("input",{className:"a-text-input example-input_full",id:`example-${t}`,rows:2,readOnly:!0,value:r}))):null,a.createElement("h4",{className:"descriptor"},"Notes:"),a.createElement("ul",{className:"m-list"},e.map((J,dt)=>a.createElement("li",{className:"m-list_item",key:dt},J)))):null)};Qv.propTypes={id:Ce().string.isRequired,notes:Ce().array.isRequired,placeholderText:Ce().string,tooltipText:Ce().string};const RR=()=>a.createElement("div",{className:"advanced_tips"},a.createElement("div",null,a.createElement("h3",null,"Search tips"),a.createElement("ul",{className:"m-list"},a.createElement("li",{className:"m-list_item"},"Hover over the examples within the sample search bars below to see what their results should return"),a.createElement("li",{className:"m-list_item"},'When searching within "All data", terms must be found in the same field to be considered a match'),a.createElement("li",{className:"m-list_item"},"The search function will look for any variations of the word that includes the stem \u2013 for example, if deferment is searched, it would return the following variations: deferment, defer, deferred, deferral, etc."))),a.createElement("div",{className:"tips content-l"},a.createElement("div",{className:"tip content-l_col content-l_col-1-3"},a.createElement("h4",null,"AND / OR / NOT"),a.createElement("label",{className:"u-visually-hidden",htmlFor:"example-and"},"Use AND when results must contain all terms"),a.createElement(oc,{text:"Results would include both call (call, called, calling, etc.) as well as harass (harass, harassed, harassing, etc.)."},a.createElement("input",{className:"a-text-input example-input",id:"example-and",type:"text",readOnly:!0,value:"call AND harass"})),a.createElement("label",{className:"u-visually-hidden",htmlFor:"example-or"},"Use OR when results should contain at least one of the terms"),a.createElement(oc,{text:"Results would include either loan (loan, loans, loaned, etc.) or mortage (mortgage, mortgages, etc.)."},a.createElement("input",{className:"a-text-input example-input",id:"example-or",type:"text",readOnly:!0,value:"loan OR mortgage"})),a.createElement("label",{className:"u-visually-hidden",htmlFor:"example-not"},"Use NOT when results should contain at least one of the terms"),a.createElement(oc,{text:"Results would only include claim (claim, claims, claimed, etc.) and cannot include the term accident (accident, accidents, etc.)"},a.createElement("input",{className:"a-text-input example-input",id:"example-not",type:"text",readOnly:!0,value:"claim NOT accident"})),a.createElement("div",{className:"tip-description"},a.createElement("p",null,"Use AND when results must contain both terms"),a.createElement("p",null,"Use OR when results should contain at least one of the terms"),a.createElement("p",null,"Use NOT when results must not contain the term")),a.createElement(Qv,{id:"and-or-not",notes:["The Boolean operators (AND / OR / NOT) must be capitalized","Boolean operators do not honor precedence rules, so parentheses should be used whenever multiple operators are used together \u2013 if they are not used correctly (i.e., having multiple operators outside of parentheses), then your results might not return what you intended."],placeholderText:"call AND (harass* OR annoy* OR threat OR repeat) AND NOT spam",tooltipText:"This example would return results that include the word call (called, calling, etc.) and one of the words in the parentheses, but exclude the word spam (spammed, spamming, etc.)."})),a.createElement("div",{className:"tip content-l_col content-l_col-1-3"},a.createElement("h4",null,"Must/Must not contain"),a.createElement("label",{className:"u-visually-hidden",htmlFor:"example-must-plus"},"Use + if the search must contain the selected term"),a.createElement(oc,{text:"Results must include the word foreclosure (foreclosure, foreclosed, etc.)."},a.createElement("input",{className:"a-text-input example-input",id:"example-must-plus",type:"text",readOnly:!0,value:"+foreclosure"})),a.createElement("label",{className:"u-visually-hidden",htmlFor:"example-must-minus"},"Use - if the search must not contain the selected term"),a.createElement(oc,{text:"Results cannot include the word collect (collect, collects, collecting, etc.)."},a.createElement("input",{className:"a-text-input example-input",id:"example-must-minus",type:"text",readOnly:!0,value:"-collect"})),a.createElement("div",{className:"tip-description"},a.createElement("p",null,"Use + if the search must contain the selected term"),a.createElement("p",null,"Use - if the search must not contain the selected term")),a.createElement(Qv,{id:"must-or-must-not",notes:['Since the terms "insurance" and "claim" do not have to be included in the results, their appearance will give the result a greater relevance score.',"There cannot be a space between the operator (+ / -) and searched term."],placeholderText:"insurance claim +agent +car -accident",tooltipText:"Results must include the terms agent and car but exclude accident \u2013 the terms insurance and claim are optional"})),a.createElement("div",{className:"tip content-l_col content-l_col-1-3"},a.createElement("h4",null,"Wildcard search"),a.createElement("label",{className:"u-visually-hidden",htmlFor:"example-wc-star"},"Use * to substitute any consecutive number of characters."),a.createElement(oc,{text:'Results would include all terms that start with the base "report" (report, reports, reported, reporting, etc.) and "$*.00" would include all variations of whole number dollar values ($8.00, $1234.00, etc.).'},a.createElement("input",{className:"a-text-input example-input",id:"example-wc-star",type:"text",readOnly:!0,value:"report* AND $*.00"})),a.createElement("label",{className:"u-visually-hidden",htmlFor:"example-wc-question"},"Use ? to replace any single character anywhere in a term."),a.createElement(oc,{text:"Results would return variations such as: woman, women, etc."},a.createElement("input",{className:"a-text-input example-input",id:"example-wc-question",type:"text",readOnly:!0,value:"wom?n"})),a.createElement("div",{className:"tip-description"},a.createElement("p",null,"Use * to substitute any consecutive number of characters."),a.createElement("p",null,"Use ? to replace any single character anywhere in a term."))),a.createElement("div",{className:"tip content-l_col content-l_col-1-3"},a.createElement("h4",null,"Proximity search"),a.createElement("label",{className:"u-visually-hidden",htmlFor:"example-proximity"},'Use ~[#] at the end of a phrase to search for terms with up to that number of gap words between them; Order does not matter and the terms should be in a single set of quotation marks (" ").'),a.createElement(oc,{text:'Results would include the terms "auto", "loan", and "default" in any order, with up to three (3) gap words in between them. For example, results could include: "defaulted auto loan", "auto loan that went into default", "Auto Loan with the same defaulted", etc.'},a.createElement("input",{className:"a-text-input example-input_full",id:"example-proximity",type:"text",readOnly:!0,value:'"auto loan default"~3'})),a.createElement("div",{className:"tip-description"},a.createElement("p",null,'Use ~[#] at the end of a phrase to search for terms with up to that number of gap words between them; Order does not matter and the terms should be in a single set of quotation marks (" ").')),a.createElement(Qv,{id:"proximity",notes:['Proximity phrase search must use straight quotes (" ") versus curly quotes (\u201C \u201D), or else the search function will not perform properly',"The closer the specified terms are within the data, the more relevant the search results become."]})),a.createElement("div",{className:"tip content-l_col content-l_col-1-3"},a.createElement("h4",null,"Fuzzy search"),a.createElement("label",{className:"u-visually-hidden",htmlFor:"example-fuzzy"},"Use ~1 at the end of a term to search for terms that are spelled similarly to your keyword within a certain margin of error."),a.createElement(oc,{text:"Results would include the correct spelling of escrow, as well as other (potentially misspelled) versions, such as: escrow, escrowed, escro, esrow, etc."},a.createElement("input",{className:"a-text-input example-input_full",id:"example-fuzzy",type:"text",readOnly:!0,value:"escrow~1"})),a.createElement("div",{className:"tip-description"},a.createElement("p",null,"Use ~1 at the end of a term to search for terms that are spelled similarly to your keyword within a certain margin of error.")),a.createElement(Qv,{id:"fuzzy",notes:["The search looks for a maximum of two changes in the term, where a change is the insertion, deletion or substitution of a single character or transposition of two adjacent characters (this catches about 80% of misspelled words).","Fuzzy term search can only be used with single terms, it does not support phrases."],placeholderText:"escrow~1 -escrow -escrowed",tooltipText:'Results would return the various misspellings of the word "escrow" that fuzzy term search identifies (after excluding the escrow and escrowed).'})),a.createElement("div",{className:"tip content-l_col content-l_col-1-3"},a.createElement("h4",null,"Boost search"),a.createElement("label",{className:"u-visually-hidden",htmlFor:"example-boost"},"Use ^[#] at the end of a term or terms to increase or decrease its relevance compared to the other term(s)."),a.createElement(oc,{text:'Results would be sorted by relevance in favor of the term "pay"'},a.createElement("input",{className:"a-text-input example-input_full",id:"example-boost",type:"text",readOnly:!0,value:"pay^2 OR credit"})),a.createElement("div",{className:"tip-description"},a.createElement("p",null,"Use ^[#] at the end of a term or terms to increase or decrease its relevance compared to the other term(s).")),a.createElement(Qv,{id:"boost",notes:["A boost value between 0 and 1.0 decreases the relevance score while a value greater than 1.0 increases the relevance score."]}))),a.createElement("div",{className:"footer"},a.createElement("h3",null,"Additional notes:"),a.createElement("ul",{className:"m-list"},a.createElement("li",{className:"m-list_item"},'Putting a phrase only in quotations (" ") will search for the words in that order, but it will not be an exact match \u2013 meaning it may include stemmed versions of the term.'),a.createElement("li",{className:"m-list_item"},'The default operator is "AND", meaning if you search "foreclosure house", it will search results that include both words (i.e., foreclosure AND house).'),a.createElement("li",{className:"m-list_item"},"Capitalization does not have an effect on searched terms (expect for the AND / OR / NOT operators)."),a.createElement("li",{className:"m-list_item"},a.createElement("a",{href:"https://www.elastic.co/guide/en/elasticsearch/reference/7.17/elasticsearch-intro.html",target:"_blank",rel:"noopener noreferrer"},"Find out more ",si("external-link"))," ","about Elastic Search")))),jA=({ariaLabel:t,className:e,htmlId:r,isDisabled:i,handleChange:g,handleClear:C,handlePressEnter:J,isClearVisible:dt,placeholder:St,value:xt})=>a.createElement("section",{className:`typeahead ${e|""}`},a.createElement("div",{className:"m-btn-inside-input input-contains-label"},a.createElement("div",{className:`input-contains-label_before
|
|
344
344
|
input-contains-label_before__search`},si("search")),a.createElement("label",{className:"u-visually-hidden",htmlFor:r},t),a.createElement("input",{type:"text",className:"a-text-input",disabled:i,id:r,onChange:g,onKeyDown:J,placeholder:St,value:xt}),!!dt&&a.createElement(nS,{onClear:C})));jA.propTypes={ariaLabel:Ce().string.isRequired,className:Ce().string,isDisabled:Ce().bool.isRequired,handleChange:Ce().func.isRequired,handleClear:Ce().func,handlePressEnter:Ce().func,htmlId:Ce().string.isRequired,isClearVisible:Ce().bool,placeholder:Ce().string,value:Ce().string.isRequired},jA.defaultProps={isClearVisible:!1,isDisabled:!1,placeholder:"Enter your search text"};const BO={all:"All data",company:"Company name",complaint_what_happened:"Narratives"},FA=({debounceWait:t})=>{const e=Si(),r=vr(o_),i=vr(Og),g=vr(AN),[C,J]=(0,a.useState)(i),[dt,St]=(0,a.useState)([]),[xt,Ct]=(0,a.useState)(!0),Ut=Boolean(i||C);(0,a.useEffect)(()=>{J(i)},[i]);const Wt=on=>{e(on?H_():sb())},Kt=on=>{on.preventDefault(),e(Jf(C))},ae=on=>{e(cv(on.target.value))},ue=on=>{on.preventDefault(),Wt(g)},he=on=>{J(on);const ze=`${Nl}_suggest_company/?text=${on}`;gA(on,St,ze)},ye=on=>{e(Jf(on[0].key))},We=()=>{e(Jf(""))},en=()=>{xt&&(e(Jf("")),J("")),Ct(!0)},cn=on=>{on.key==="Enter"&&(Ct(!1),e(Jf(on.target.value)))};return a.createElement("div",null,a.createElement("div",{className:"search-bar",role:"search"},a.createElement("form",{action:"",onSubmit:Kt},a.createElement("h3",{className:"h4"},"Search within"),a.createElement("div",{className:"layout-row"},a.createElement("div",{className:"cf-select flex-fixed"},a.createElement("select",{"aria-label":"Choose which field will be searched",id:"searchField",onChange:ae,value:r},a.createElement("optgroup",{label:"Search Within"},Object.keys(BO).map(on=>a.createElement("option",{key:on,value:on},BO[on]))))),a.createElement("div",{className:"flex-all typeahead-portal"},r==="company"?a.createElement(aw,{ariaLabel:"Enter the term you want to search for",htmlId:"searchText",defaultValue:i,delayWait:t,handleChange:ye,handleClear:We,handleSearch:he,hasClearButton:!0,options:dt,placeholder:"Enter your search term(s)"}):a.createElement(jA,{ariaLabel:"Enter the term you want to search for",htmlId:"searchText",handleChange:on=>J(on.target.value),placeholder:"Enter your search term(s)",value:C,handleClear:en,handlePressEnter:cn,isClearVisible:Ut})),a.createElement("button",{type:"submit",className:"a-btn flex-fixed"},"Search"),a.createElement("a",{className:"u-visually-hidden",href:"#search-summary"},"Skip to Results"),a.createElement("div",{className:"advanced-container flex-fixed"},a.createElement("button",{className:"a-btn a-btn__link",onClick:ue},g?"Hide ":"Show ","advanced search tips"))))),g?a.createElement(RR,null):null)};FA.propTypes={debounceWait:Ce().number},FA.defaultProps={debounceWait:250};class HO extends a.Component{render(){let e=null;return this.props.lastIndexed&&(e=a.createElement("span",{className:"date-subscript"},"(last updated: ",a.createElement(Dg,{value:this.props.lastIndexed}),")")),a.createElement("div",{className:"search-panel"},a.createElement("h2",null,"Search complaint data ",e),a.createElement(FA,null),a.createElement(vL,null))}}const IR=Oa(t=>({lastIndexed:t.aggs.lastIndexed}))(HO);HO.propTypes={lastIndexed:Ce().string};const W6={};/*!
|
|
345
345
|
* Intro.js v7.2.0
|
|
346
346
|
* https://introjs.com
|
|
@@ -351,4 +351,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
351
351
|
* Date: Mon, 14 Aug 2023 19:47:14 GMT
|
|
352
352
|
*/function gS(t){return gS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gS(t)}function no(t,e,r,i){return new(r||(r=Promise))(function(g,C){function J(xt){try{St(i.next(xt))}catch(Ct){C(Ct)}}function dt(xt){try{St(i.throw(xt))}catch(Ct){C(Ct)}}function St(xt){var Ct;xt.done?g(xt.value):(Ct=xt.value,Ct instanceof r?Ct:new r(function(Ut){Ut(Ct)})).then(J,dt)}St((i=i.apply(t,e||[])).next())})}function ro(t,e){var r,i,g,C,J={label:0,sent:function(){if(1&g[0])throw g[1];return g[1]},trys:[],ops:[]};return C={next:dt(0),throw:dt(1),return:dt(2)},typeof Symbol=="function"&&(C[Symbol.iterator]=function(){return this}),C;function dt(St){return function(xt){return function(Ct){if(r)throw new TypeError("Generator is already executing.");for(;C&&(C=0,Ct[0]&&(J=0)),J;)try{if(r=1,i&&(g=2&Ct[0]?i.return:Ct[0]?i.throw||((g=i.return)&&g.call(i),0):i.next)&&!(g=g.call(i,Ct[1])).done)return g;switch(i=0,g&&(Ct=[2&Ct[0],g.value]),Ct[0]){case 0:case 1:g=Ct;break;case 4:return J.label++,{value:Ct[1],done:!1};case 5:J.label++,i=Ct[1],Ct=[0];continue;case 7:Ct=J.ops.pop(),J.trys.pop();continue;default:if(g=J.trys,!((g=g.length>0&&g[g.length-1])||Ct[0]!==6&&Ct[0]!==2)){J=0;continue}if(Ct[0]===3&&(!g||Ct[1]>g[0]&&Ct[1]<g[3])){J.label=Ct[1];break}if(Ct[0]===6&&J.label<g[1]){J.label=g[1],g=Ct;break}if(g&&J.label<g[2]){J.label=g[2],J.ops.push(Ct);break}g[2]&&J.ops.pop(),J.trys.pop();continue}Ct=e.call(t,J)}catch(Ut){Ct=[6,Ut],i=0}finally{r=g=0}if(5&Ct[0])throw Ct[1];return{value:Ct[0]?Ct[1]:void 0,done:!0}}([St,xt])}}}function zO(t,e,r){var i,g=((i={})[t]=e,i.path="/",i.expires=void 0,i);if(r){var C=new Date;C.setTime(C.getTime()+24*r*60*60*1e3),g.expires=C.toUTCString()}var J=[];for(var dt in g)J.push("".concat(dt,"=").concat(g[dt]));return document.cookie=J.join("; "),UO(t)}function UO(t){return(e={},document.cookie.split(";").forEach(function(r){var i=r.split("="),g=i[0],C=i[1];e[g.trim()]=C}),e)[t];var e}typeof SuppressedError=="function"&&SuppressedError;function jR(t,e){e?zO(t._options.dontShowAgainCookie,"true",t._options.dontShowAgainCookieDays):zO(t._options.dontShowAgainCookie,"",-1)}var yS,BA=(yS={},function(t,e){return e===void 0&&(e="introjs-stamp"),yS[e]=yS[e]||0,t[e]===void 0&&(t[e]=yS[e]++),t[e]}),Xh=new(function(){function t(){this.events_key="introjs_event"}return t.prototype._id=function(e,r,i){return e+BA(r)+(i?"_".concat(BA(i)):"")},t.prototype.on=function(e,r,i,g,C){var J=this._id(r,i,g),dt=function(St){return i(g||e,St||window.event)};"addEventListener"in e?e.addEventListener(r,dt,C):"attachEvent"in e&&e.attachEvent("on".concat(r),dt),e[this.events_key]=e[this.events_key]||{},e[this.events_key][J]=dt},t.prototype.off=function(e,r,i,g,C){var J=this._id(r,i,g),dt=e[this.events_key]&&e[this.events_key][J];dt&&("removeEventListener"in e?e.removeEventListener(r,dt,C):"detachEvent"in e&&e.detachEvent("on".concat(r),dt),e[this.events_key][J]=null)},t}()),Do=function(t){return typeof t=="function"};function $h(t,e){if(t instanceof SVGElement){var r=t.getAttribute("class")||"";r.match(e)||t.setAttribute("class","".concat(r," ").concat(e))}else if(t.classList!==void 0)for(var i=0,g=e.split(" ");i<g.length;i++){var C=g[i];t.classList.add(C)}else t.className.match(e)||(t.className+=" ".concat(e))}function HA(t,e){var r="";return"currentStyle"in t?r=t.currentStyle[e]:document.defaultView&&document.defaultView.getComputedStyle&&(r=document.defaultView.getComputedStyle(t,null).getPropertyValue(e)),r&&r.toLowerCase?r.toLowerCase():r}function WO(t,e){if(t){var r=function(i){var g=window.getComputedStyle(i),C=g.position==="absolute",J=/(auto|scroll)/;if(g.position==="fixed")return document.body;for(var dt=i;dt=dt.parentElement;)if(g=window.getComputedStyle(dt),(!C||g.position!=="static")&&J.test(g.overflow+g.overflowY+g.overflowX))return dt;return document.body}(e);r!==document.body&&(r.scrollTop=e.offsetTop-r.offsetTop)}}function zA(){if(window.innerWidth!==void 0)return{width:window.innerWidth,height:window.innerHeight};var t=document.documentElement;return{width:t.clientWidth,height:t.clientHeight}}function GO(t,e,r,i,g){var C;if(e!=="off"&&t&&(C=e==="tooltip"?g.getBoundingClientRect():i.getBoundingClientRect(),!function(dt){var St=dt.getBoundingClientRect();return St.top>=0&&St.left>=0&&St.bottom+80<=window.innerHeight&&St.right<=window.innerWidth}(i))){var J=zA().height;C.bottom-(C.bottom-C.top)<0||i.clientHeight>J?window.scrollBy(0,C.top-(J/2-C.height/2)-r):window.scrollBy(0,C.top-(J/2-C.height/2)+r)}}function gw(t){t.setAttribute("role","button"),t.tabIndex=0}function vS(t){var e=t.parentElement;return!(!e||e.nodeName==="HTML")&&(HA(t,"position")==="fixed"||vS(e))}function Jv(t,e){var r=document.body,i=document.documentElement,g=window.pageYOffset||i.scrollTop||r.scrollTop,C=window.pageXOffset||i.scrollLeft||r.scrollLeft;e=e||r;var J=t.getBoundingClientRect(),dt=e.getBoundingClientRect(),St=HA(e,"position"),xt={width:J.width,height:J.height};return e.tagName.toLowerCase()!=="body"&&St==="relative"||St==="sticky"?Object.assign(xt,{top:J.top-dt.top,left:J.left-dt.left}):vS(t)?Object.assign(xt,{top:J.top,left:J.left}):Object.assign(xt,{top:J.top+g,left:J.left+C})}function UA(t,e){if(t instanceof SVGElement){var r=t.getAttribute("class")||"";t.setAttribute("class",r.replace(e,"").replace(/^\s+|\s+$/g,""))}else t.className=t.className.replace(e,"").replace(/^\s+|\s+$/g,"")}function Zp(t,e){var r="";if(t.style.cssText&&(r+=t.style.cssText),typeof e=="string")r+=e;else for(var i in e)r+="".concat(i,":").concat(e[i],";");t.style.cssText=r}function md(t,e,r){if(r&&e){var i=Jv(e.element,t._targetElement),g=t._options.helperElementPadding;e.element instanceof Element&&vS(e.element)?$h(r,"introjs-fixedTooltip"):UA(r,"introjs-fixedTooltip"),e.position==="floating"&&(g=0),Zp(r,{width:"".concat(i.width+g,"px"),height:"".concat(i.height+g,"px"),top:"".concat(i.top-g/2,"px"),left:"".concat(i.left-g/2,"px")})}}function xS(t,e,r,i,g){return t.left+e+r.width>i.width?(g.style.left="".concat(i.width-r.width-t.left,"px"),!1):(g.style.left="".concat(e,"px"),!0)}function bS(t,e,r,i){return t.left+t.width-e-r.width<0?(i.style.left="".concat(-t.left,"px"),!1):(i.style.right="".concat(e,"px"),!0)}function qh(t,e){t.includes(e)&&t.splice(t.indexOf(e),1)}function FR(t,e,r,i){var g=t.slice(),C=zA(),J=Jv(r).height+10,dt=Jv(r).width+20,St=e.getBoundingClientRect(),xt="floating";if(St.bottom+J>C.height&&qh(g,"bottom"),St.top-J<0&&qh(g,"top"),St.right+dt>C.width&&qh(g,"right"),St.left-dt<0&&qh(g,"left"),i&&(i=i.split("-")[0]),g.length&&(xt=g[0],g.includes(i)&&(xt=i)),xt==="top"||xt==="bottom"){var Ct=void 0,Ut=[];xt==="top"?(Ct="top-middle-aligned",Ut=["top-left-aligned","top-middle-aligned","top-right-aligned"]):(Ct="bottom-middle-aligned",Ut=["bottom-left-aligned","bottom-middle-aligned","bottom-right-aligned"]),xt=function(Wt,Kt,ae,ue){var he=Kt/2,ye=Math.min(ae,window.screen.width);return ye-Wt<Kt&&(qh(ue,"top-left-aligned"),qh(ue,"bottom-left-aligned")),(Wt<he||ye-Wt<he)&&(qh(ue,"top-middle-aligned"),qh(ue,"bottom-middle-aligned")),Wt<Kt&&(qh(ue,"top-right-aligned"),qh(ue,"bottom-right-aligned")),ue.length?ue[0]:null}(St.left,dt,C.width,Ut)||Ct}return xt}function wS(t,e,r,i,g){if(g===void 0&&(g=!1),e){var C,J,dt,St,xt="";r.style.top="",r.style.right="",r.style.bottom="",r.style.left="",r.style.marginLeft="",r.style.marginTop="",i.style.display="inherit",xt=typeof e.tooltipClass=="string"?e.tooltipClass:t._options.tooltipClass,r.className=["introjs-tooltip",xt].filter(Boolean).join(" "),r.setAttribute("role","dialog"),(St=e.position)!=="floating"&&t._options.autoPosition&&(St=FR(t._options.positionPrecedence,e.element,r,St)),J=Jv(e.element),C=Jv(r),dt=zA(),$h(r,"introjs-".concat(St));var Ct=J.width/2-C.width/2;switch(St){case"top-right-aligned":i.className="introjs-arrow bottom-right";var Ut=0;bS(J,Ut,C,r),r.style.bottom="".concat(J.height+20,"px");break;case"top-middle-aligned":i.className="introjs-arrow bottom-middle",g&&(Ct+=5),bS(J,Ct,C,r)&&(r.style.right="",xS(J,Ct,C,dt,r)),r.style.bottom="".concat(J.height+20,"px");break;case"top-left-aligned":case"top":i.className="introjs-arrow bottom",xS(J,g?0:15,C,dt,r),r.style.bottom="".concat(J.height+20,"px");break;case"right":r.style.left="".concat(J.width+20,"px"),J.top+C.height>dt.height?(i.className="introjs-arrow left-bottom",r.style.top="-".concat(C.height-J.height-20,"px")):i.className="introjs-arrow left";break;case"left":g||t._options.showStepNumbers!==!0||(r.style.top="15px"),J.top+C.height>dt.height?(r.style.top="-".concat(C.height-J.height-20,"px"),i.className="introjs-arrow right-bottom"):i.className="introjs-arrow right",r.style.right="".concat(J.width+20,"px");break;case"floating":i.style.display="none",r.style.left="50%",r.style.top="50%",r.style.marginLeft="-".concat(C.width/2,"px"),r.style.marginTop="-".concat(C.height/2,"px");break;case"bottom-right-aligned":i.className="introjs-arrow top-right",bS(J,Ut=0,C,r),r.style.top="".concat(J.height+20,"px");break;case"bottom-middle-aligned":i.className="introjs-arrow top-middle",g&&(Ct+=5),bS(J,Ct,C,r)&&(r.style.right="",xS(J,Ct,C,dt,r)),r.style.top="".concat(J.height+20,"px");break;default:i.className="introjs-arrow top",xS(J,0,C,dt,r),r.style.top="".concat(J.height+20,"px")}}}function VO(){for(var t=0,e=Array.from(document.querySelectorAll(".introjs-showElement"));t<e.length;t++)UA(e[t],/introjs-[a-zA-Z]+/g)}function Wi(t,e){var r=document.createElement(t);e=e||{};var i=/^(?:role|data-|aria-)/;for(var g in e){var C=e[g];g==="style"&&typeof C!="function"?Zp(r,C):typeof C=="string"&&g.match(i)?r.setAttribute(g,C):r[g]=C}return r}function YO(t,e,r){if(r===void 0&&(r=!1),r){var i=e.style.opacity||"1";Zp(e,{opacity:"0"}),window.setTimeout(function(){Zp(e,{opacity:i})},10)}t.appendChild(e)}function XO(t,e){return(t+1)/e*100}function $O(t,e){var r=Wi("div",{className:"introjs-bullets"});t._options.showBullets===!1&&(r.style.display="none");var i=Wi("ul");i.setAttribute("role","tablist");for(var g=function(){var xt=this.getAttribute("data-step-number");xt!=null&&t.goToStep(parseInt(xt,10))},C=0;C<t._introItems.length;C++){var J=t._introItems[C].step,dt=Wi("li"),St=Wi("a");dt.setAttribute("role","presentation"),St.setAttribute("role","tab"),St.onclick=g,C===e.step-1&&(St.className="active"),gw(St),St.innerHTML=" ",St.setAttribute("data-step-number",J.toString()),dt.appendChild(St),i.appendChild(dt)}return r.appendChild(i),r}function qO(t,e,r){var i=t.querySelector(".introjs-progress .introjs-progressbar");if(i){var g=XO(e,r);i.style.cssText="width:".concat(g,"%;"),i.setAttribute("aria-valuenow",g.toString())}}function KO(t,e){return no(this,void 0,void 0,function(){var r,i,g,C,J,dt,St,xt,Ct,Ut,Wt,Kt,ae,ue,he,ye,We,en,cn,on,ze,Pn,_n,zn,mr=this;return ro(this,function(pr){switch(pr.label){case 0:return Do(t._introChangeCallback)?[4,t._introChangeCallback.call(t,e.element)]:[3,2];case 1:pr.sent(),pr.label=2;case 2:return r=document.querySelector(".introjs-helperLayer"),i=document.querySelector(".introjs-tooltipReferenceLayer"),g="introjs-helperLayer",typeof e.highlightClass=="string"&&(g+=" ".concat(e.highlightClass)),typeof t._options.highlightClass=="string"&&(g+=" ".concat(t._options.highlightClass)),r!==null&&i!==null?(St=i.querySelector(".introjs-helperNumberLayer"),xt=i.querySelector(".introjs-tooltiptext"),Ct=i.querySelector(".introjs-tooltip-title"),Ut=i.querySelector(".introjs-arrow"),Wt=i.querySelector(".introjs-tooltip"),dt=i.querySelector(".introjs-skipbutton"),J=i.querySelector(".introjs-prevbutton"),C=i.querySelector(".introjs-nextbutton"),r.className=g,Wt.style.opacity="0",Wt.style.display="none",WO(t._options.scrollToElement,e.element),md(t,e,r),md(t,e,i),VO(),t._lastShowElementTimer&&window.clearTimeout(t._lastShowElementTimer),t._lastShowElementTimer=window.setTimeout(function(){St!==null&&(St.innerHTML="".concat(e.step," ").concat(t._options.stepNumbersOfLabel," ").concat(t._introItems.length)),xt.innerHTML=e.intro||"",Ct.innerHTML=e.title||"",Wt.style.display="block",wS(t,e,Wt,Ut),function(ur,br,Hr){if(ur){var vi=br.querySelector(".introjs-bullets li > a.active"),xi=br.querySelector('.introjs-bullets li > a[data-step-number="'.concat(Hr.step,'"]'));vi&&xi&&(vi.className="",xi.className="active")}}(t._options.showBullets,i,e),qO(i,t._currentStep,t._introItems.length),Wt.style.opacity="1",(C!=null&&/introjs-donebutton/gi.test(C.className)||C!=null)&&C.focus(),GO(t._options.scrollToElement,e.scrollTo,t._options.scrollPadding,e.element,xt)},350)):(Kt=Wi("div",{className:g}),ae=Wi("div",{className:"introjs-tooltipReferenceLayer"}),ue=Wi("div",{className:"introjs-arrow"}),he=Wi("div",{className:"introjs-tooltip"}),ye=Wi("div",{className:"introjs-tooltiptext"}),We=Wi("div",{className:"introjs-tooltip-header"}),en=Wi("h1",{className:"introjs-tooltip-title"}),cn=Wi("div"),Zp(Kt,{"box-shadow":"0 0 1px 2px rgba(33, 33, 33, 0.8), rgba(33, 33, 33, ".concat(t._options.overlayOpacity.toString(),") 0 0 0 5000px")}),WO(t._options.scrollToElement,e.element),md(t,e,Kt),md(t,e,ae),YO(t._targetElement,Kt,!0),YO(t._targetElement,ae),ye.innerHTML=e.intro,en.innerHTML=e.title,cn.className="introjs-tooltipbuttons",t._options.showButtons===!1&&(cn.style.display="none"),We.appendChild(en),he.appendChild(We),he.appendChild(ye),t._options.dontShowAgain&&(on=Wi("div",{className:"introjs-dontShowAgain"}),(ze=Wi("input",{type:"checkbox",id:"introjs-dontShowAgain",name:"introjs-dontShowAgain"})).onchange=function(ur){t.setDontShowAgain(ur.target.checked)},(Pn=Wi("label",{htmlFor:"introjs-dontShowAgain"})).innerText=t._options.dontShowAgainLabel,on.appendChild(ze),on.appendChild(Pn),he.appendChild(on)),he.appendChild($O(t,e)),he.appendChild(function(ur){var br=Wi("div");br.className="introjs-progress",ur._options.showProgress===!1&&(br.style.display="none");var Hr=Wi("div",{className:"introjs-progressbar"});ur._options.progressBarAdditionalClass&&(Hr.className+=" "+ur._options.progressBarAdditionalClass);var vi=XO(ur._currentStep,ur._introItems.length);return Hr.setAttribute("role","progress"),Hr.setAttribute("aria-valuemin","0"),Hr.setAttribute("aria-valuemax","100"),Hr.setAttribute("aria-valuenow",vi.toString()),Hr.style.cssText="width:".concat(vi,"%;"),br.appendChild(Hr),br}(t)),_n=Wi("div"),t._options.showStepNumbers===!0&&(_n.className="introjs-helperNumberLayer",_n.innerHTML="".concat(e.step," ").concat(t._options.stepNumbersOfLabel," ").concat(t._introItems.length),he.appendChild(_n)),he.appendChild(ue),ae.appendChild(he),(C=Wi("a")).onclick=function(){return no(mr,void 0,void 0,function(){return ro(this,function(ur){switch(ur.label){case 0:return t._introItems.length-1===t._currentStep?[3,2]:[4,f0(t)];case 1:return ur.sent(),[3,6];case 2:return/introjs-donebutton/gi.test(C.className)?Do(t._introCompleteCallback)?[4,t._introCompleteCallback.call(t,t._currentStep,"done")]:[3,4]:[3,6];case 3:ur.sent(),ur.label=4;case 4:return[4,d0(t,t._targetElement)];case 5:ur.sent(),ur.label=6;case 6:return[2]}})})},gw(C),C.innerHTML=t._options.nextLabel,(J=Wi("a")).onclick=function(){return no(mr,void 0,void 0,function(){return ro(this,function(ur){switch(ur.label){case 0:return t._currentStep>0?[4,_S(t)]:[3,2];case 1:ur.sent(),ur.label=2;case 2:return[2]}})})},gw(J),J.innerHTML=t._options.prevLabel,gw(dt=Wi("a",{className:"introjs-skipbutton"})),dt.innerHTML=t._options.skipLabel,dt.onclick=function(){return no(mr,void 0,void 0,function(){return ro(this,function(ur){switch(ur.label){case 0:return t._introItems.length-1===t._currentStep&&Do(t._introCompleteCallback)?[4,t._introCompleteCallback.call(t,t._currentStep,"skip")]:[3,2];case 1:ur.sent(),ur.label=2;case 2:return Do(t._introSkipCallback)?[4,t._introSkipCallback.call(t,t._currentStep)]:[3,4];case 3:ur.sent(),ur.label=4;case 4:return[4,d0(t,t._targetElement)];case 5:return ur.sent(),[2]}})})},We.appendChild(dt),t._introItems.length>1&&cn.appendChild(J),cn.appendChild(C),he.appendChild(cn),wS(t,e,he,ue),GO(t._options.scrollToElement,e.scrollTo,t._options.scrollPadding,e.element,he)),(zn=t._targetElement.querySelector(".introjs-disableInteraction"))&&zn.parentNode&&zn.parentNode.removeChild(zn),e.disableInteraction&&function(ur,br){var Hr=document.querySelector(".introjs-disableInteraction");Hr===null&&(Hr=Wi("div",{className:"introjs-disableInteraction"}),ur._targetElement.appendChild(Hr)),md(ur,br,Hr)}(t,e),t._currentStep===0&&t._introItems.length>1?(C!=null&&(C.className="".concat(t._options.buttonClass," introjs-nextbutton"),C.innerHTML=t._options.nextLabel),t._options.hidePrev===!0?(J!=null&&(J.className="".concat(t._options.buttonClass," introjs-prevbutton introjs-hidden")),C!=null&&$h(C,"introjs-fullbutton")):J!=null&&(J.className="".concat(t._options.buttonClass," introjs-prevbutton introjs-disabled"))):t._introItems.length-1===t._currentStep||t._introItems.length===1?(J!=null&&(J.className="".concat(t._options.buttonClass," introjs-prevbutton")),t._options.hideNext===!0?(C!=null&&(C.className="".concat(t._options.buttonClass," introjs-nextbutton introjs-hidden")),J!=null&&$h(J,"introjs-fullbutton")):C!=null&&(t._options.nextToDone===!0?(C.innerHTML=t._options.doneLabel,$h(C,"".concat(t._options.buttonClass," introjs-nextbutton introjs-donebutton"))):C.className="".concat(t._options.buttonClass," introjs-nextbutton introjs-disabled"))):(J!=null&&(J.className="".concat(t._options.buttonClass," introjs-prevbutton")),C!=null&&(C.className="".concat(t._options.buttonClass," introjs-nextbutton"),C.innerHTML=t._options.nextLabel)),J!=null&&J.setAttribute("role","button"),C!=null&&C.setAttribute("role","button"),dt!=null&&dt.setAttribute("role","button"),C!=null&&C.focus(),function(ur){$h(ur,"introjs-showElement");var br=HA(ur,"position");br!=="absolute"&&br!=="relative"&&br!=="sticky"&&br!=="fixed"&&$h(ur,"introjs-relativePosition")}(e.element),Do(t._introAfterChangeCallback)?[4,t._introAfterChangeCallback.call(t,e.element)]:[3,4];case 3:pr.sent(),pr.label=4;case 4:return[2]}})})}function BR(t,e){return no(this,void 0,void 0,function(){return ro(this,function(r){switch(r.label){case 0:return t._currentStep=e-2,t._introItems===void 0?[3,2]:[4,f0(t)];case 1:r.sent(),r.label=2;case 2:return[2]}})})}function HR(t,e){return no(this,void 0,void 0,function(){return ro(this,function(r){switch(r.label){case 0:return t._currentStepNumber=e,t._introItems===void 0?[3,2]:[4,f0(t)];case 1:r.sent(),r.label=2;case 2:return[2]}})})}function f0(t){return no(this,void 0,void 0,function(){var e,r,i;return ro(this,function(g){switch(g.label){case 0:if(t._direction="forward",t._currentStepNumber!==void 0)for(e=0;e<t._introItems.length;e++)t._introItems[e].step===t._currentStepNumber&&(t._currentStep=e-1,t._currentStepNumber=void 0);return t._currentStep===-1?t._currentStep=0:++t._currentStep,r=t._introItems[t._currentStep],i=!0,Do(t._introBeforeChangeCallback)?[4,t._introBeforeChangeCallback.call(t,r&&r.element,t._currentStep,t._direction)]:[3,2];case 1:i=g.sent(),g.label=2;case 2:return i===!1?(--t._currentStep,[2,!1]):t._introItems.length<=t._currentStep?Do(t._introCompleteCallback)?[4,t._introCompleteCallback.call(t,t._currentStep,"end")]:[3,4]:[3,6];case 3:g.sent(),g.label=4;case 4:return[4,d0(t,t._targetElement)];case 5:return g.sent(),[2,!1];case 6:return[4,KO(t,r)];case 7:return g.sent(),[2,!0]}})})}function _S(t){return no(this,void 0,void 0,function(){var e,r;return ro(this,function(i){switch(i.label){case 0:return t._direction="backward",t._currentStep<=0?[2,!1]:(--t._currentStep,e=t._introItems[t._currentStep],r=!0,Do(t._introBeforeChangeCallback)?[4,t._introBeforeChangeCallback.call(t,e&&e.element,t._currentStep,t._direction)]:[3,2]);case 1:r=i.sent(),i.label=2;case 2:return r===!1?(++t._currentStep,[2,!1]):[4,KO(t,e)];case 3:return i.sent(),[2,!0]}})})}function ZO(t,e){return no(this,void 0,void 0,function(){var r,i;return ro(this,function(g){switch(g.label){case 0:return(r=e.code===void 0?e.which:e.code)===null&&(r=e.charCode===null?e.keyCode:e.charCode),r!=="Escape"&&r!==27||t._options.exitOnEsc!==!0?[3,2]:[4,d0(t,t._targetElement)];case 1:return g.sent(),[3,16];case 2:return r!=="ArrowLeft"&&r!==37?[3,4]:[4,_S(t)];case 3:return g.sent(),[3,16];case 4:return r!=="ArrowRight"&&r!==39?[3,6]:[4,f0(t)];case 5:return g.sent(),[3,16];case 6:return r!=="Enter"&&r!=="NumpadEnter"&&r!==13?[3,16]:(i=e.target||e.srcElement)&&i.className.match("introjs-prevbutton")?[4,_S(t)]:[3,8];case 7:return g.sent(),[3,15];case 8:return i&&i.className.match("introjs-skipbutton")?t._introItems.length-1===t._currentStep&&Do(t._introCompleteCallback)?[4,t._introCompleteCallback.call(t,t._currentStep,"skip")]:[3,10]:[3,12];case 9:g.sent(),g.label=10;case 10:return[4,d0(t,t._targetElement)];case 11:return g.sent(),[3,15];case 12:return i&&i.getAttribute("data-step-number")?(i.click(),[3,15]):[3,13];case 13:return[4,f0(t)];case 14:g.sent(),g.label=15;case 15:e.preventDefault?e.preventDefault():e.returnValue=!1,g.label=16;case 16:return[2]}})})}function WA(t){if(t===null||gS(t)!=="object"||"nodeType"in t)return t;var e={};for(var r in t)"jQuery"in window&&t[r]instanceof window.jQuery?e[r]=t[r]:e[r]=WA(t[r]);return e}function t1(t){var e=document.querySelector(".introjs-hints");return e?Array.from(e.querySelectorAll(t)):[]}function GA(t,e){return no(this,void 0,void 0,function(){var r;return ro(this,function(i){switch(i.label){case 0:return r=t1('.introjs-hint[data-step="'.concat(e,'"]'))[0],ES(),r&&$h(r,"introjs-hidehint"),Do(t._hintCloseCallback)?[4,t._hintCloseCallback.call(t,e)]:[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}})})}function zR(t){return no(this,void 0,void 0,function(){var e,r,i,g,C;return ro(this,function(J){switch(J.label){case 0:e=t1(".introjs-hint"),r=0,i=e,J.label=1;case 1:return r<i.length?(g=i[r],(C=g.getAttribute("data-step"))?[4,GA(t,parseInt(C,10))]:[3,3]):[3,4];case 2:J.sent(),J.label=3;case 3:return r++,[3,1];case 4:return[2]}})})}function UR(t){return no(this,void 0,void 0,function(){var e,r,i,g,C;return ro(this,function(J){switch(J.label){case 0:if(!(e=t1(".introjs-hint"))||!e.length)return[3,1];for(r=0,i=e;r<i.length;r++)g=i[r],(C=g.getAttribute("data-step"))&&QO(parseInt(C,10));return[3,3];case 1:return[4,n3(t,t._targetElement)];case 2:J.sent(),J.label=3;case 3:return[2]}})})}function QO(t){var e=t1('.introjs-hint[data-step="'.concat(t,'"]'))[0];e&&UA(e,/introjs-hidehint/g)}function JO(t){var e=t1('.introjs-hint[data-step="'.concat(t,'"]'))[0];e&&e.parentNode&&e.parentNode.removeChild(e)}function WR(t){return no(this,void 0,void 0,function(){var e,r,i,g,C,J,dt;return ro(this,function(St){switch(St.label){case 0:for((e=document.querySelector(".introjs-hints"))===null&&(e=Wi("div",{className:"introjs-hints"})),r=function(Wt){return function(Kt){var ae=Kt||window.event;ae&&ae.stopPropagation&&ae.stopPropagation(),ae&&ae.cancelBubble!==null&&(ae.cancelBubble=!0),e3(t,Wt)}},i=0;i<t._hintItems.length;i++){if(g=t._hintItems[i],document.querySelector('.introjs-hint[data-step="'.concat(i,'"]')))return[2];gw(C=Wi("a",{className:"introjs-hint"})),C.onclick=r(i),g.hintAnimation||$h(C,"introjs-hint-no-anim"),vS(g.element)&&$h(C,"introjs-fixedhint"),J=Wi("div",{className:"introjs-hint-dot"}),dt=Wi("div",{className:"introjs-hint-pulse"}),C.appendChild(J),C.appendChild(dt),C.setAttribute("data-step",i.toString()),g.hintTargetElement=g.element,g.element=C,t3(g.hintPosition,C,g.hintTargetElement),e.appendChild(C)}return document.body.appendChild(e),Do(t._hintsAddedCallback)?[4,t._hintsAddedCallback.call(t)]:[3,2];case 1:St.sent(),St.label=2;case 2:return t._options.hintAutoRefreshInterval>=0&&(t._hintsAutoRefreshFunction=(xt=function(){return SS(t)},Ct=t._options.hintAutoRefreshInterval,function(){for(var Wt=[],Kt=0;Kt<arguments.length;Kt++)Wt[Kt]=arguments[Kt];window.clearTimeout(Ut),Ut=window.setTimeout(function(){xt(Wt)},Ct)}),Xh.on(window,"scroll",t._hintsAutoRefreshFunction,t,!0)),[2]}var xt,Ct,Ut})})}function t3(t,e,r){if(r!==void 0){var i=Jv(r),g=20,C=20;switch(t){default:case"top-left":e.style.left="".concat(i.left,"px"),e.style.top="".concat(i.top,"px");break;case"top-right":e.style.left="".concat(i.left+i.width-g,"px"),e.style.top="".concat(i.top,"px");break;case"bottom-left":e.style.left="".concat(i.left,"px"),e.style.top="".concat(i.top+i.height-C,"px");break;case"bottom-right":e.style.left="".concat(i.left+i.width-g,"px"),e.style.top="".concat(i.top+i.height-C,"px");break;case"middle-left":e.style.left="".concat(i.left,"px"),e.style.top="".concat(i.top+(i.height-C)/2,"px");break;case"middle-right":e.style.left="".concat(i.left+i.width-g,"px"),e.style.top="".concat(i.top+(i.height-C)/2,"px");break;case"middle-middle":e.style.left="".concat(i.left+(i.width-g)/2,"px"),e.style.top="".concat(i.top+(i.height-C)/2,"px");break;case"bottom-middle":e.style.left="".concat(i.left+(i.width-g)/2,"px"),e.style.top="".concat(i.top+i.height-C,"px");break;case"top-middle":e.style.left="".concat(i.left+(i.width-g)/2,"px"),e.style.top="".concat(i.top,"px")}}}function e3(t,e){return no(this,void 0,void 0,function(){var r,i,g,C,J,dt,St,xt,Ct,Ut,Wt;return ro(this,function(Kt){switch(Kt.label){case 0:return r=document.querySelector('.introjs-hint[data-step="'.concat(e,'"]')),i=t._hintItems[e],Do(t._hintClickCallback)?[4,t._hintClickCallback.call(t,r,i,e)]:[3,2];case 1:Kt.sent(),Kt.label=2;case 2:return(g=ES())!==void 0&&parseInt(g,10)===e||(C=Wi("div",{className:"introjs-tooltip"}),J=Wi("div"),dt=Wi("div"),St=Wi("div"),C.onclick=function(ae){ae.stopPropagation?ae.stopPropagation():ae.cancelBubble=!0},J.className="introjs-tooltiptext",(xt=Wi("p")).innerHTML=i.hint||"",J.appendChild(xt),t._options.hintShowButton&&((Ct=Wi("a")).className=t._options.buttonClass,Ct.setAttribute("role","button"),Ct.innerHTML=t._options.hintButtonLabel,Ct.onclick=function(){return GA(t,e)},J.appendChild(Ct)),dt.className="introjs-arrow",C.appendChild(dt),C.appendChild(J),Ut=r.getAttribute("data-step")||"",t._currentStep=parseInt(Ut,10),Wt=t._hintItems[t._currentStep],St.className="introjs-tooltipReferenceLayer introjs-hintReference",St.setAttribute("data-step",Ut),md(t,Wt,St),St.appendChild(C),document.body.appendChild(St),wS(t,Wt,C,dt,!0)),[2]}})})}function ES(){var t=document.querySelector(".introjs-hintReference");if(t&&t.parentNode){var e=t.getAttribute("data-step");return e?(t.parentNode.removeChild(t),e):void 0}}function n3(t,e){return no(this,void 0,void 0,function(){var r,i,g,C,J,dt,St,xt,Ct,Ut;return ro(this,function(Wt){switch(Wt.label){case 0:if(t._hintItems=[],t._options.hints&&t._options.hints.length>0)for(r=0,i=t._options.hints;r<i.length;r++)g=i[r],typeof(C=WA(g)).element=="string"&&(C.element=document.querySelector(C.element)),C.hintPosition=C.hintPosition||t._options.hintPosition,C.hintAnimation=C.hintAnimation||t._options.hintAnimation,C.element!==null&&t._hintItems.push(C);else{if(!(J=Array.from(e.querySelectorAll("*[data-hint]")))||!J.length)return[2,!1];for(dt=0,St=J;dt<St.length;dt++)xt=St[dt],Ct=xt.getAttribute("data-hint-animation"),Ut=t._options.hintAnimation,Ct&&(Ut=Ct==="true"),t._hintItems.push({element:xt,hint:xt.getAttribute("data-hint")||"",hintPosition:xt.getAttribute("data-hint-position")||t._options.hintPosition,hintAnimation:Ut,tooltipClass:xt.getAttribute("data-tooltip-class")||void 0,position:xt.getAttribute("data-position")||t._options.tooltipPosition})}return[4,WR(t)];case 1:return Wt.sent(),Xh.on(document,"click",ES,t,!1),Xh.on(window,"resize",SS,t,!0),[2,!0]}})})}function SS(t){for(var e=0,r=t._hintItems;e<r.length;e++){var i=r[e],g=i.hintTargetElement;t3(i.hintPosition,i.element,g)}}function r3(t,e){var r=Array.from(e.querySelectorAll("*[data-intro]")),i=[];if(t._options.steps&&t._options.steps.length)for(var g=0,C=t._options.steps;g<C.length;g++){var J=WA(Wt=C[g]);if(J.step=i.length+1,J.title=J.title||"",typeof J.element=="string"&&(J.element=document.querySelector(J.element)||void 0),J.element===void 0||J.element===null){var dt=document.querySelector(".introjsFloatingElement");dt===null&&(dt=Wi("div",{className:"introjsFloatingElement"}),document.body.appendChild(dt)),J.element=dt,J.position="floating"}J.position=J.position||t._options.tooltipPosition,J.scrollTo=J.scrollTo||t._options.scrollTo,J.disableInteraction===void 0&&(J.disableInteraction=t._options.disableInteraction),J.element!==null&&i.push(J)}else{var St=void 0;if(r.length<1)return[];for(var xt=0,Ct=r;xt<Ct.length;xt++){var Ut=Ct[xt];if((!t._options.group||Ut.getAttribute("data-intro-group")===t._options.group)&&Ut.style.display!=="none"){var Wt=parseInt(Ut.getAttribute("data-step")||"",10);St=t._options.disableInteraction,Ut.hasAttribute("data-disable-interaction")&&(St=!!Ut.getAttribute("data-disable-interaction")),Wt>0&&(i[Wt-1]={step:Wt,element:Ut,title:Ut.getAttribute("data-title")||"",intro:Ut.getAttribute("data-intro")||"",tooltipClass:Ut.getAttribute("data-tooltip-class")||void 0,highlightClass:Ut.getAttribute("data-highlight-class")||void 0,position:Ut.getAttribute("data-position")||t._options.tooltipPosition,scrollTo:Ut.getAttribute("data-scroll-to")||t._options.scrollTo,disableInteraction:St})}}for(var Kt=0,ae=0,ue=r;ae<ue.length;ae++)if(Ut=ue[ae],(!t._options.group||Ut.getAttribute("data-intro-group")===t._options.group)&&Ut.getAttribute("data-step")===null){for(;i[Kt]!==void 0;)Kt++;St=Ut.hasAttribute("data-disable-interaction")?!!Ut.getAttribute("data-disable-interaction"):t._options.disableInteraction,i[Kt]={element:Ut,title:Ut.getAttribute("data-title")||"",intro:Ut.getAttribute("data-intro")||"",step:Kt+1,tooltipClass:Ut.getAttribute("data-tooltip-class")||void 0,highlightClass:Ut.getAttribute("data-highlight-class")||void 0,position:Ut.getAttribute("data-position")||t._options.tooltipPosition,scrollTo:Ut.getAttribute("data-scroll-to")||t._options.scrollTo,disableInteraction:St}}}for(var he=[],ye=0;ye<i.length;ye++)i[ye]&&he.push(i[ye]);return(i=he).sort(function(We,en){return We.step-en.step}),i}function i3(t,e){var r=t._currentStep;if(r!=null&&r!=-1){var i=t._introItems[r],g=document.querySelector(".introjs-tooltipReferenceLayer"),C=document.querySelector(".introjs-helperLayer"),J=document.querySelector(".introjs-disableInteraction");md(t,i,C),md(t,i,g),md(t,i,J),e&&(t._introItems=r3(t,t._targetElement),function(xt,Ct){if(xt._options.showBullets){var Ut=document.querySelector(".introjs-bullets");Ut&&Ut.parentNode&&Ut.parentNode.replaceChild($O(xt,Ct),Ut)}}(t,i),qO(g,r,t._introItems.length));var dt=document.querySelector(".introjs-arrow"),St=document.querySelector(".introjs-tooltip");return St&&dt&&wS(t,t._introItems[r],St,dt),SS(t),t}}function o3(t){i3(t)}function yw(t,e){if(e===void 0&&(e=!1),t&&t.parentElement){var r=t.parentElement;e?(Zp(t,{opacity:"0"}),window.setTimeout(function(){try{r.removeChild(t)}catch(i){}},500)):r.removeChild(t)}}function d0(t,e,r){return r===void 0&&(r=!1),no(this,void 0,void 0,function(){var i,g,C,J;return ro(this,function(dt){switch(dt.label){case 0:return i=!0,t._introBeforeExitCallback===void 0?[3,2]:[4,t._introBeforeExitCallback.call(t,e)];case 1:i=dt.sent(),dt.label=2;case 2:if(!r&&i===!1)return[2];if((g=Array.from(e.querySelectorAll(".introjs-overlay")))&&g.length)for(C=0,J=g;C<J.length;C++)yw(J[C]);return yw(e.querySelector(".introjs-helperLayer"),!0),yw(e.querySelector(".introjs-tooltipReferenceLayer")),yw(e.querySelector(".introjs-disableInteraction")),yw(document.querySelector(".introjsFloatingElement")),VO(),Xh.off(window,"keydown",ZO,t,!0),Xh.off(window,"resize",o3,t,!0),Do(t._introExitCallback)?[4,t._introExitCallback.call(t)]:[3,4];case 3:dt.sent(),dt.label=4;case 4:return t._currentStep=-1,[2]}})})}function GR(t,e){return no(this,void 0,void 0,function(){var r;return ro(this,function(i){switch(i.label){case 0:return t.isActive()?Do(t._introStartCallback)?[4,t._introStartCallback.call(t,e)]:[3,2]:[2,!1];case 1:i.sent(),i.label=2;case 2:return(r=r3(t,e)).length===0?[2,!1]:(t._introItems=r,function(g,C){var J=this,dt=Wi("div",{className:"introjs-overlay"});Zp(dt,{top:0,bottom:0,left:0,right:0,position:"fixed"}),C.appendChild(dt),g._options.exitOnOverlayClick===!0&&(Zp(dt,{cursor:"pointer"}),dt.onclick=function(){return no(J,void 0,void 0,function(){return ro(this,function(St){switch(St.label){case 0:return[4,d0(g,C)];case 1:return St.sent(),[2]}})})})}(t,e),[4,f0(t)]);case 3:i.sent(),e.addEventListener,t._options.keyboardNavigation&&Xh.on(window,"keydown",ZO,t,!0),Xh.on(window,"resize",o3,t,!0),i.label=4;case 4:return[2,!1]}})})}function a3(t,e,r){return t[e]=r,t}var VA=function(){function t(e){this._currentStep=-1,this._introItems=[],this._hintItems=[],this._targetElement=e,this._options={steps:[],hints:[],isActive:!0,nextLabel:"Next",prevLabel:"Back",skipLabel:"\xD7",doneLabel:"Done",hidePrev:!1,hideNext:!1,nextToDone:!0,tooltipPosition:"bottom",tooltipClass:"",group:"",highlightClass:"",exitOnEsc:!0,exitOnOverlayClick:!0,showStepNumbers:!1,stepNumbersOfLabel:"of",keyboardNavigation:!0,showButtons:!0,showBullets:!0,showProgress:!1,scrollToElement:!0,scrollTo:"element",scrollPadding:30,overlayOpacity:.5,autoPosition:!0,positionPrecedence:["bottom","top","right","left"],disableInteraction:!1,dontShowAgain:!1,dontShowAgainLabel:"Don't show this again",dontShowAgainCookie:"introjs-dontShowAgain",dontShowAgainCookieDays:365,helperElementPadding:10,hintPosition:"top-middle",hintButtonLabel:"Got it",hintShowButton:!0,hintAutoRefreshInterval:10,hintAnimation:!0,buttonClass:"introjs-button",progressBarAdditionalClass:!1}}return t.prototype.isActive=function(){return(!this._options.dontShowAgain||(e=UO(this._options.dontShowAgainCookie))===""||e!=="true")&&this._options.isActive;var e},t.prototype.clone=function(){return new t(this._targetElement)},t.prototype.setOption=function(e,r){return this._options=a3(this._options,e,r),this},t.prototype.setOptions=function(e){return this._options=function(r,i){for(var g=0,C=Object.entries(i);g<C.length;g++){var J=C[g];r=a3(r,J[0],J[1])}return r}(this._options,e),this},t.prototype.start=function(){return no(this,void 0,void 0,function(){return ro(this,function(e){switch(e.label){case 0:return[4,GR(this,this._targetElement)];case 1:return e.sent(),[2,this]}})})},t.prototype.goToStep=function(e){return no(this,void 0,void 0,function(){return ro(this,function(r){switch(r.label){case 0:return[4,BR(this,e)];case 1:return r.sent(),[2,this]}})})},t.prototype.addStep=function(e){return this._options.steps||(this._options.steps=[]),this._options.steps.push(e),this},t.prototype.addSteps=function(e){if(!e.length)return this;for(var r=0;r<e.length;r++)this.addStep(e[r]);return this},t.prototype.goToStepNumber=function(e){return no(this,void 0,void 0,function(){return ro(this,function(r){switch(r.label){case 0:return[4,HR(this,e)];case 1:return r.sent(),[2,this]}})})},t.prototype.nextStep=function(){return no(this,void 0,void 0,function(){return ro(this,function(e){switch(e.label){case 0:return[4,f0(this)];case 1:return e.sent(),[2,this]}})})},t.prototype.previousStep=function(){return no(this,void 0,void 0,function(){return ro(this,function(e){switch(e.label){case 0:return[4,_S(this)];case 1:return e.sent(),[2,this]}})})},t.prototype.currentStep=function(){return this._currentStep},t.prototype.exit=function(e){return no(this,void 0,void 0,function(){return ro(this,function(r){switch(r.label){case 0:return[4,d0(this,this._targetElement,e)];case 1:return r.sent(),[2,this]}})})},t.prototype.refresh=function(e){return i3(this,e),this},t.prototype.setDontShowAgain=function(e){return jR(this,e),this},t.prototype.onbeforechange=function(e){if(!Do(e))throw new Error("Provided callback for onbeforechange was not a function");return this._introBeforeChangeCallback=e,this},t.prototype.onchange=function(e){if(!Do(e))throw new Error("Provided callback for onchange was not a function.");return this._introChangeCallback=e,this},t.prototype.onafterchange=function(e){if(!Do(e))throw new Error("Provided callback for onafterchange was not a function");return this._introAfterChangeCallback=e,this},t.prototype.oncomplete=function(e){if(!Do(e))throw new Error("Provided callback for oncomplete was not a function.");return this._introCompleteCallback=e,this},t.prototype.onhintsadded=function(e){if(!Do(e))throw new Error("Provided callback for onhintsadded was not a function.");return this._hintsAddedCallback=e,this},t.prototype.onhintclick=function(e){if(!Do(e))throw new Error("Provided callback for onhintclick was not a function.");return this._hintClickCallback=e,this},t.prototype.onhintclose=function(e){if(!Do(e))throw new Error("Provided callback for onhintclose was not a function.");return this._hintCloseCallback=e,this},t.prototype.onstart=function(e){if(!Do(e))throw new Error("Provided callback for onstart was not a function.");return this._introStartCallback=e,this},t.prototype.onexit=function(e){if(!Do(e))throw new Error("Provided callback for onexit was not a function.");return this._introExitCallback=e,this},t.prototype.onskip=function(e){if(!Do(e))throw new Error("Provided callback for onskip was not a function.");return this._introSkipCallback=e,this},t.prototype.onbeforeexit=function(e){if(!Do(e))throw new Error("Provided callback for onbeforeexit was not a function.");return this._introBeforeExitCallback=e,this},t.prototype.addHints=function(){return no(this,void 0,void 0,function(){return ro(this,function(e){switch(e.label){case 0:return[4,n3(this,this._targetElement)];case 1:return e.sent(),[2,this]}})})},t.prototype.hideHint=function(e){return no(this,void 0,void 0,function(){return ro(this,function(r){switch(r.label){case 0:return[4,GA(this,e)];case 1:return r.sent(),[2,this]}})})},t.prototype.hideHints=function(){return no(this,void 0,void 0,function(){return ro(this,function(e){switch(e.label){case 0:return[4,zR(this)];case 1:return e.sent(),[2,this]}})})},t.prototype.showHint=function(e){return QO(e),this},t.prototype.showHints=function(){return no(this,void 0,void 0,function(){return ro(this,function(e){switch(e.label){case 0:return[4,UR(this)];case 1:return e.sent(),[2,this]}})})},t.prototype.removeHints=function(){return function(e){for(var r=0,i=t1(".introjs-hint");r<i.length;r++){var g=i[r].getAttribute("data-step");g&&JO(parseInt(g,10))}Xh.off(document,"click",ES,e,!1),Xh.off(window,"resize",SS,e,!0),e._hintsAutoRefreshFunction&&Xh.off(window,"scroll",e._hintsAutoRefreshFunction,e,!0)}(this),this},t.prototype.removeHint=function(e){return JO(e),this},t.prototype.showHintDialog=function(e){return no(this,void 0,void 0,function(){return ro(this,function(r){switch(r.label){case 0:return[4,e3(this,e)];case 1:return r.sent(),[2,this]}})})},t}(),YA=function t(e){var r;if(gS(e)==="object")r=new VA(e);else if(typeof e=="string"){var i=document.querySelector(e);if(!i)throw new Error("There is no element with given selector.");r=new VA(i)}else r=new VA(document.body);return t.instances[BA(r,"introjs-instance")]=r,r};YA.version="7.2.0",YA.instances={};var VR=Un(2279);const s3=Qr.oneOf(["top","right","bottom","left","bottom-left-aligned","bottom-middle-aligned","bottom-right-aligned","top-left-aligned","top-middle-aligned","top-right-aligned","auto"]),l3=Qr.oneOf(["top-middle","top-left","top-right","bottom-left","bottom-right","bottom-middle","middle-left","middle-right","middle-middle"]),u3=Qr.shape({nextLabel:Qr.string,prevLabel:Qr.string,skipLabel:Qr.string,doneLabel:Qr.string,hidePrev:Qr.bool,hideNext:Qr.bool,tooltipPosition:s3,tooltipClass:Qr.string,highlightClass:Qr.string,exitOnEsc:Qr.bool,exitOnOverlayClick:Qr.bool,showStepNumbers:Qr.bool,keyboardNavigation:Qr.bool,showButtons:Qr.bool,showBullets:Qr.bool,showProgress:Qr.bool,scrollToElement:Qr.bool,overlayOpacity:Qr.number,scrollPadding:Qr.number,positionPrecedence:Qr.arrayOf(Qr.string),disableInteraction:Qr.bool,hintPosition:l3,hintButtonLabel:Qr.string,hintAnimation:Qr.bool}),c3={hidePrev:!0,hideNext:!0};function YR(){return typeof window=="undefined"}class XA extends a.Component{constructor(r){super(r);uc(this,"onExit",()=>{const{onExit:r}=this.props;this.isVisible=!1,r(this.introJs._currentStep)});uc(this,"onBeforeExit",()=>{const{onBeforeExit:r}=this.props;return r?r(this.introJs._currentStep):!0});uc(this,"onBeforeChange",r=>{if(!this.isVisible)return!0;const{onBeforeChange:i,onPreventChange:g}=this.props;if(i){const C=i(this.introJs._currentStep,r);return C===!1&&g&&setTimeout(()=>{g(this.introJs._currentStep)},0),C}return!0});uc(this,"onAfterChange",r=>{if(!this.isVisible)return;const{onAfterChange:i}=this.props;i&&i(this.introJs._currentStep,r)});uc(this,"onChange",r=>{if(!this.isVisible)return;const{onChange:i}=this.props;i&&i(this.introJs._currentStep,r)});uc(this,"onComplete",()=>{const{onComplete:r}=this.props;r&&r()});uc(this,"updateStepElement",r=>{const i=document.querySelector(this.introJs._options.steps[r].element);i&&(this.introJs._introItems[r].element=i,this.introJs._introItems[r].position=this.introJs._options.steps[r].position||"auto")});this.introJs=null,this.isConfigured=!1,this.isVisible=!1,this.installIntroJs()}componentDidMount(){this.props.enabled&&(this.configureIntroJs(),this.renderSteps())}componentDidUpdate(r){const{enabled:i,steps:g,options:C}=this.props;(!this.isConfigured||r.steps!==g||r.options!==C)&&(this.configureIntroJs(),this.renderSteps()),r.enabled!==i&&this.renderSteps()}componentWillUnmount(){this.introJs.exit()}installIntroJs(){YR()||(this.introJs=YA(),this.introJs.onexit(this.onExit),this.introJs.onbeforeexit(this.onBeforeExit),this.introJs.onbeforechange(this.onBeforeChange),this.introJs.onafterchange(this.onAfterChange),this.introJs.onchange(this.onChange),this.introJs.oncomplete(this.onComplete))}configureIntroJs(){const{options:r,steps:i}=this.props,g=i.map(C=>(0,a.isValidElement)(C.intro)?Rs(io({},C),{intro:(0,VR.uS)(C.intro)}):C);this.introJs.setOptions(Rs(io({},r),{steps:g})),this.isConfigured=!0}renderSteps(){const{enabled:r,initialStep:i,steps:g,onStart:C}=this.props;r&&g.length>0&&!this.isVisible?(this.introJs.start(),this.isVisible=!0,this.introJs.goToStepNumber(i+1),C&&C(this.introJs._currentStep)):!r&&this.isVisible&&(this.isVisible=!1,this.introJs.exit())}render(){return null}}uc(XA,"propTypes",{enabled:Qr.bool,initialStep:Qr.number.isRequired,steps:Qr.arrayOf(Qr.shape({element:Qr.oneOfType([Qr.string,typeof Element=="undefined"?Qr.any:Qr.instanceOf(Element)]),intro:Qr.node.isRequired,position:s3,tooltipClass:Qr.string,highlightClass:Qr.string})).isRequired,onStart:Qr.func,onExit:Qr.func.isRequired,onBeforeExit:Qr.func,onBeforeChange:Qr.func,onAfterChange:Qr.func,onChange:Qr.func,onPreventChange:Qr.func,onComplete:Qr.func,options:u3}),uc(XA,"defaultProps",{enabled:!1,onStart:null,onBeforeExit:null,onBeforeChange:null,onAfterChange:null,onChange:null,onPreventChange:null,onComplete:null,options:c3});class h3 extends null{constructor(e){super(e),this.introJs=null,this.isConfigured=!1,this.installIntroJs()}componentDidMount(){this.props.enabled&&(this.configureIntroJs(),this.renderHints())}componentDidUpdate(e){const{enabled:r,hints:i,options:g}=this.props;(!this.isConfigured||e.hints!==i||e.options!==g)&&(this.configureIntroJs(),this.renderHints()),e.enabled!==r&&this.renderHints()}componentWillUnmount(){this.introJs.hideHints()}installIntroJs(){if(isServer())return;this.introJs=introJs();const{onClick:e,onClose:r}=this.props;e&&this.introJs.onhintclick(e),r&&this.introJs.onhintclose(r)}configureIntroJs(){const{options:e,hints:r}=this.props;this.introJs.removeHints(),this.introJs.setOptions(Rs(io({},e),{hints:r})),this.isConfigured=!0}renderHints(){const{enabled:e,hints:r}=this.props;e&&r.length>0?this.introJs.showHints():e||this.introJs.hideHints()}render(){return null}}uc(h3,"propTypes",{enabled:Qr.bool,hints:Qr.arrayOf(Qr.shape({element:Qr.string.isRequired,hint:Qr.string.isRequired,hintPosition:l3})).isRequired,onClick:Qr.func,onClose:Qr.func,options:u3}),uc(h3,"defaultProps",{enabled:!1,onClick:null,onClose:null,options:c3});const G6={STEP_1:".content_hero",STEP_2:".m-pagination_btn-next",STEP_3:".saved_search-panel div:nth-child(2)",STEP_4:".back-to-results"},Ks={STEP_1:{selector:".content",label:"Index"},STEP_2:{selector:"header.content_hero .m-list__horizontal",label:"Help Links"},STEP_3:{selector:".tabbed-navigation",label:"Views"},STEP_4:{selector:".filter-panel",label:"Filters"},STEP_5:{selector:".date-filter",label:"Date Received"},STEP_6:{selector:".filter-panel .aggregation.product",label:"Product/Issue"},STEP_7:{selector:".filter-panel .aggregation button",label:"Show/Hide"},STEP_8:{selector:".search-bar",label:"Search Bar"},STEP_9:{selector:"#search-summary h2",label:"Search Summary"},STEP_10:{selector:".export-results button.export-btn",label:"Export Data"},STEP_11:{selector:".export-results button.print-preview",label:"Print Page"},STEP_12:{selector:".map-shading",label:"Map Shading"},STEP_13:{selector:"#tile-chart-map",label:"Tile Map"},STEP_14:{selector:".row-chart-section",label:"Row Charts"},STEP_15:{selector:".tabbed-navigation",label:"Tabbed Navigation"}},cs={STEP_1:{selector:".content",label:"Index"},STEP_2:{selector:"header.content_hero .m-list__horizontal",label:"Help Links"},STEP_3:{selector:".tabbed-navigation",label:"Views"},STEP_4:{selector:".filter-panel",label:"Filters"},STEP_5:{selector:".date-filter",label:"Date Received"},STEP_6:{selector:".filter-panel .aggregation.product",label:"Product/Issue"},STEP_7:{selector:".filter-panel .aggregation button",label:"Show/Hide"},STEP_8:{selector:".search-bar",label:"Search Bar"},STEP_9:{selector:"#search-summary h2",label:"Search Summary"},STEP_10:{selector:".export-results button.export-btn",label:"Export Data"},STEP_11:{selector:".export-results button.print-preview",label:"Print Page"},STEP_12:{selector:'[data-tour="select-size"]',label:"Show Number"},STEP_13:{selector:'[data-tour="select-sort"]',label:"Sort Results"},STEP_14:{selector:".refine-bar section.m-btn-group",label:"Show Narratives"},STEP_15:{selector:".cards-panel",label:"Results"},STEP_16:{selector:".to-detail",label:"View Detailed Complaints"},STEP_17:{selector:".tabbed-navigation",label:"Tabbed Navigation"}},Zs={STEP_1:{selector:".content",label:"Index"},STEP_2:{selector:"header.content_hero .m-list__horizontal",label:"Help Links"},STEP_3:{selector:".tabbed-navigation",label:"Views"},STEP_4:{selector:".filter-panel",label:"Filters"},STEP_5:{selector:".date-filter",label:"Date Received"},STEP_6:{selector:".filter-panel .aggregation.product",label:"Product/Issue"},STEP_7:{selector:".filter-panel .aggregation button",label:"Show/Hide"},STEP_8:{selector:".search-bar",label:"Search Bar"},STEP_9:{selector:"#search-summary h2",label:"Search Summary"},STEP_10:{selector:".export-results button.export-btn",label:"Export Data"},STEP_11:{selector:".export-results button.print-preview",label:"Print Page"},STEP_12:{selector:'[data-tour="select-lens"]',label:"Aggregate By"},STEP_13:{selector:'[data-tour="select-interval"]',label:"Date Interval"},STEP_14:{selector:".row-chart-section",label:"Row Charts"},STEP_15:{selector:".tabbed-navigation",label:"Tabbed Navigation"}},$A=(t,e)=>`<li><button class="a-btn a-btn__link" onclick="document.querySelectorAll('.introjs-bullets li a')[${t+1}].click()">`+e[1].label+"</button></li>";let f3="";Object.entries(Ks).slice(1).forEach((t,e)=>{f3+=$A(e,t)});let d3="";Object.entries(cs).slice(1).forEach((t,e)=>{d3+=$A(e,t)});let p3="";Object.entries(Zs).slice(1).forEach((t,e)=>{p3+=$A(e,t)});const CS={[Ah]:[{element:Ks.STEP_1.selector,intro:'<div><div class="left">Welcome to the Consumer Complaint Database!<br /><br />Complaints the CFPB sends to companies for response are published in the Consumer Complaint Database after the company responds, confirming a commercial relationship with the consumer, or after 15 days, whichever comes first.<br /><br />Complaints the CFPB refers to other regulators, such as complaints about depository institutions with less than $10 billion in assets, are not published in the database. This database is not a statistical sample of consumers\u2019 experiences in the marketplace.</div><div class="right"><h4>Index</h4><ul>'+f3+"</ul></div></div>",tooltipClass:"wide"},{element:Ks.STEP_2.selector,intro:"These links provide more information about this database."},{element:Ks.STEP_3.selector,intro:"You can change how to view complaint data by selecting the three views we have available \u2014 Trends, List, and Map.<br /><br />You are currently on the Map view, which displays complaints by state.<br /><br />To read individual complaints, select List view<br /><br />To visualize complaint data with product and issue breakdowns, select Trends view",position:"top"},{element:Ks.STEP_4.selector,intro:"The \u201CFilter results by\u201D panel lets you filter complaint data. To clear filters, uncheck individual selections in the filter panel or to select \u201CClear all filters\u201D under the Search bar."},{element:Ks.STEP_5.selector,intro:"You can adjust the date range of the complaint data showed using the \u201CDate CFPB received the complaint\u201D filter. <br /> The default date range is three years from today\u2019s date."},{element:Ks.STEP_6.selector,intro:"You can filter complaints by the product and issue the consumer selected when they submitted their complaint.<br /><br />Expand a product or issue to see its sub-products or sub-issues, where available. "},{element:Ks.STEP_7.selector,intro:"The blue show/hide icon allows you to expand or collapse specific filters."},{element:Ks.STEP_8.selector,intro:"Use the \u201CSearch within\u201D bar to find specific words or phrases in complaints. By default, this will search \u201CAll data\u201D, but you can change this using the gray dropdown menu.<br /> <br />Click \u201CShow advanced search tips\u201D to see some advanced ways to refine your word search."},{element:Ks.STEP_9.selector,intro:"As you apply filters and search terms, this will display how many complaints are included out of the total number of complaints published in the database."},{element:Ks.STEP_10.selector,intro:"You can export full or filtered results to CSV or JSON by selecting \u201CExport data\u201D."},{element:Ks.STEP_11.selector,intro:"Select \u201CPrint\u201D to generate a pdf of the current page."},{element:Ks.STEP_12.selector,intro:"Map shading defaults to total complaints, but you can change this to show complaints per 1,000 population in that state."},{element:Ks.STEP_13.selector,intro:"Hover over a tile on the map to view complaint information specific to that state. You can filter to see data specific to a state by selecting the state or using the filter panel."},{element:Ks.STEP_14.selector,intro:"View complaint volume by product in the bar chart. Use the blue arrow by each product to view breakdowns by sub-products.<br /><br />Once the product is expanded, select the \u201CVisualize\u201D link as shown below, to view trends on sub-products and issues:"},{element:Ks.STEP_15.selector,intro:"To learn how to use Trends and List views, select the view and then start the tour."}],[pa]:[{element:cs.STEP_1.selector,intro:'<div><div class="left">Welcome to the Consumer Complaint Database!<br /><br />Complaints the CFPB sends to companies for response are published in the Consumer Complaint Database after the company responds, confirming a commercial relationship with the consumer, or after 15 days, whichever comes first.<br /><br />Complaints the CFPB refers to other regulators, such as complaints about depository institutions with less than $10 billion in assets, are not published in the database. This database is not a statistical sample of consumers\u2019 experiences in the marketplace.</div><div class="right"><h4>Index</h4><ul>'+d3+"</ul></div></div>",tooltipClass:"wide"},{element:cs.STEP_2.selector,intro:"These links provide more information about this database."},{element:cs.STEP_3.selector,intro:"You can change how to view complaint data by selecting the three views we have available \u2014 Trends, List, and Map.<br /><br />You are currently on the List view, which shows individual complaints.<br /><br />To visualize complaint data with product and issue breakdowns, select Trends view.<br /><br />To view complaints by state, select Map view."},{element:cs.STEP_4.selector,intro:"The \u201CFilter results by\u201D panel lets you filter complaint data. To clear filters, uncheck individual selections in the filter panel or to select \u201CClear all filters\u201D under the Search bar."},{element:cs.STEP_5.selector,intro:"You can adjust the date range of the complaint data showed using the \u201CDate CFPB received the complaint\u201D filter. <br /> The default date range is three years from today\u2019s date."},{element:cs.STEP_6.selector,intro:"You can filter complaints by the product and issue the consumer selected when they submitted their complaint.<br /><br />Expand a product or issue to see its sub-products or sub-issues, where available. "},{element:cs.STEP_7.selector,intro:"The blue show/hide icon allows you to expand or collapse specific filters."},{element:cs.STEP_8.selector,intro:"Use the \u201CSearch within\u201D bar to find specific words or phrases in complaints. By default, this will search \u201CAll data\u201D, but you can change this using the gray dropdown menu.<br /> <br />Click \u201CShow advanced search tips\u201D to see some advanced ways to refine your word search."},{element:cs.STEP_9.selector,intro:"As you apply filters and search terms, this will display how many complaints are included out of the total number of complaints published in the database."},{element:cs.STEP_10.selector,intro:"You can export full or filtered results to CSV or JSON by selecting \u201CExport data\u201D."},{element:cs.STEP_11.selector,intro:"Select \u201CPrint\u201D to generate a pdf of the current page."},{element:cs.STEP_12.selector,intro:"Select the number of complaints to view per page here."},{element:cs.STEP_13.selector,intro:"Sort complaints in the list view by \u201CNewest to oldest,\u201D \u201COldest to newest,\u201D \u201CRelevance,\u201D and \u201CRelevance (asc).\u201D<br /><br />Relevancy are based on any applied search terms."},{element:cs.STEP_14.selector,intro:"You can see all complaints or focus on those with consumer complaint narratives.<br /><br />We publish the consumer\u2019s narrative description of what happened from their complaint if the consumer opts to share it publicly and after taking steps to remove personal information."},{element:cs.STEP_15.selector,intro:"These are your search results. As you apply filters and search terms, your results will display here. This view shows a preview of the complaint."},{element:cs.STEP_16.selector,intro:"Click the blue ID number to see more details about a particular complaint."},{element:cs.STEP_17.selector,intro:"To learn how to use Map and Trend views, select the view and then start the tour."}],[to]:[{element:Zs.STEP_1.selector,intro:'<div><div class="left">Welcome to the Consumer Complaint Database!<br /><br />Complaints the CFPB sends to companies for response are published in the Consumer Complaint Database after the company responds, confirming a commercial relationship with the consumer, or after 15 days, whichever comes first.<br /><br />Complaints the CFPB refers to other regulators, such as complaints about depository institutions with less than $10 billion in assets, are not published in the database. This database is not a statistical sample of consumers\u2019 experiences in the marketplace.</div><div class="right"><h4>Index</h4><ul>'+p3+"</ul></div></div>",tooltipClass:"wide first-step"},{element:Zs.STEP_2.selector,intro:"These links provide more information about this database."},{element:Zs.STEP_3.selector,intro:"You can change how to view complaint data by selecting the three views we have available\u2014Trends, List, and Map.<br /><br />You are currently on the Trends view, which visualizes complaint data using a trend line with product and issue breakdowns.<br /><br />To read individual complaints, select List view.<br /><br />To view complaints by state, select Map view.",position:"top"},{element:Zs.STEP_4.selector,intro:"The \u201CFilter results by\u201D panel lets you filter complaint data. To clear filters, uncheck individual selections in the filter panel or to select \u201CClear all filters\u201D under the Search bar."},{element:Zs.STEP_5.selector,intro:"You can adjust the date range of the complaint data showed using the \u201CDate CFPB received the complaint\u201D filter. <br /> The default date range is three years from today\u2019s date."},{element:Zs.STEP_6.selector,intro:"You can filter complaints by the product and issue the consumer selected when they submitted their complaint.<br /><br />Expand a product or issue to see its sub-products or sub-issues, where available. "},{element:Zs.STEP_7.selector,intro:"The blue show/hide icon allows you to expand or collapse specific filters."},{element:Zs.STEP_8.selector,intro:"Use the \u201CSearch within\u201D bar to find specific words or phrases in complaints. By default, this will search \u201CAll data\u201D, but you can change this using the gray dropdown menu.<br /> <br />Click \u201CShow advanced search tips\u201D to see some advanced ways to refine your word search."},{element:Zs.STEP_9.selector,intro:"As you apply filters and search terms, this will display how many complaints are included out of the total number of complaints published in the database."},{element:Zs.STEP_10.selector,intro:"You can export full or filtered results to CSV or JSON by selecting \u201CExport data\u201D."},{element:Zs.STEP_11.selector,intro:"Select \u201CPrint\u201D to generate a pdf of the current page."},{element:Zs.STEP_12.selector,intro:"Select the dropdown to aggregate the data by product or by the company to which the CFPB sent the complaint for response."},{element:Zs.STEP_13.selector,intro:"Select this dropdown to change the time interval displayed on the trend line."},{element:Zs.STEP_14.selector,intro:"View complaint volume by product in the bar chart. Use the blue arrow by each product to view breakdowns by sub-products.<br /><br />Once the product is expanded, select the \u201CVisualize\u201D link as shown below, to view trends on sub-products and issues:"},{element:Zs.STEP_15.selector,intro:"To learn how to use List and Map views, select the view and then start the tour.",position:"top"}]},V6={},XR=()=>{const t=Si();return a.createElement("button",{onClick:()=>t(Ap()),className:"a-btn tour-button"},si("help-round")," Take a tour")},$R=()=>{const t=Si(),e=vr(kN),r=vr($u),i=vr(uw),g=vr(cw),C={disableInteraction:!1,element:".filter-panel-toggle .m-btn-group .a-btn",intro:"On mobile devices, click the Filter Panel toggle button to open the Filter Panel. Please click the button to proceed."},J={disableInteraction:!1,element:".filter-panel-toggle .m-btn-group .a-btn",intro:"Click the Filter Panel toggle button again to close the Filter Panel. Please close the Filter Panel to proceed."},dt=g<750?CS[r].slice(0,3).concat(C,CS[r].slice(4,7),J,CS[r].slice(7)):CS[r],St=(0,a.useRef)(),xt={disableInteraction:!0,scrollToElement:!0,scrollTo:"tooltip",showStepNumbers:!1,exitOnOverlayClick:!1,exitOnEsc:!0,nextLabel:"Next",prevLabel:"Previous",doneLabel:"End Tour",steps:dt};function Ct(Wt){const Kt=Wt.current.introJs.currentStep();if(!dt[Kt])return;dt[Kt].element===".row-chart-section"&&us.select("#row-chart-product .tick.expandable").dispatch("click");const ae=()=>{dt.forEach((ye,We)=>{Wt.current!==null&&Wt.current.updateStepElement(We)})};new MutationObserver(ae).observe(document.querySelector("#ccdb-ui-root"),{subtree:!0,childList:!0});const he=()=>{var ye;(ye=document.querySelector(".introjs-nextbutton"))==null||ye.setAttribute("style","display: inline"),new Promise(en=>{if(Kt===7)return en();const cn=setInterval(()=>{if(document.querySelector(".date-filter")!==null)return clearInterval(cn),en()},10)}).then(()=>{Wt.current.introJs.nextStep().then(()=>{document.querySelector(C.element).removeEventListener("click",he)})})};g<750&&(Kt===3||Kt===7)&&(document.querySelector(".introjs-nextbutton").setAttribute("style","display: none"),document.querySelector(C.element).addEventListener("click",he))}function Ut(Wt){return Wt.current===null?!0:Wt.current.introJs.currentStep()+1<dt.length?window.confirm("Are you sure you want to exit the tour?"):!0}return i?null:a.createElement(a.Fragment,null,a.createElement(XR,null),a.createElement(XA,{enabled:e,initialStep:0,steps:dt,onExit:()=>t(Mp()),options:xt,onBeforeChange:()=>Ct(St),onBeforeExit:()=>Ut(St),ref:St}))};function qR(){const t=Si(),e=Kn();(0,a.useEffect)(()=>{t(Qx(e))},[])}function KR(){const t=Si();(0,a.useEffect)(()=>{const e=Dh(()=>{t(ub(window.innerWidth))},500);return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[t])}function m3(t,e,r=!1){(0,a.useEffect)(()=>(window.addEventListener(t,e,r),function(){window.removeEventListener(t,e)}))}const g3=()=>{qR(),KR();const t=vr(uw),e=Si();return m3("afterprint",()=>{t&&e(ab())}),m3("beforeprint",()=>{t||e(ob())}),(0,a.useEffect)(()=>{t&&setTimeout(()=>{window.print()},1e3)},[t]),a.createElement(go,{locale:"en"},a.createElement("main",{className:`content content__1-3 ${t?"print":""}`,role:"main"},a.createElement(aE,null),a.createElement("div",{className:"content_wrapper"},a.createElement(IR,null),a.createElement(DN,null),a.createElement(oL,null)),a.createElement($R,null),a.createElement(yL,null)))};function y3(t){var e=function(i){var g=i.dispatch,C=i.getState;return function(J){return function(dt){return typeof dt=="function"?dt(g,C,t):J(dt)}}};return e}var v3=y3();v3.withExtraArgument=y3;const ZR=v3;function TS(){return TS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},TS.apply(this,arguments)}var zl;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(zl||(zl={}));var e1=function(t){return t};function Y6(t,e){if(!t){typeof console!="undefined"&&console.warn(e);try{throw new Error(e)}catch(r){}}}var MS="beforeunload",QR="hashchange",x3="popstate";function JR(t){t===void 0&&(t={});var e=t,r=e.window,i=r===void 0?document.defaultView:r,g=i.history;function C(){var Pn=i.location,_n=Pn.pathname,zn=Pn.search,mr=Pn.hash,pr=g.state||{};return[pr.idx,e1({pathname:_n,search:zn,hash:mr,state:pr.usr||null,key:pr.key||"default"})]}var J=null;function dt(){if(J)Kt.call(J),J=null;else{var Pn=zl.Pop,_n=C(),zn=_n[0],mr=_n[1];if(Kt.length){if(zn!=null){var pr=Ct-zn;pr&&(J={action:Pn,location:mr,retry:function(){on(pr*-1)}},on(pr))}}else We(Pn)}}i.addEventListener(x3,dt);var St=zl.Pop,xt=C(),Ct=xt[0],Ut=xt[1],Wt=n1(),Kt=n1();Ct==null&&(Ct=0,g.replaceState(TS({},g.state,{idx:Ct}),""));function ae(Pn){return typeof Pn=="string"?Pn:vw(Pn)}function ue(Pn,_n){return _n===void 0&&(_n=null),e1(TS({pathname:Ut.pathname,hash:"",search:""},typeof Pn=="string"?xw(Pn):Pn,{state:_n,key:PS()}))}function he(Pn,_n){return[{usr:Pn.state,key:Pn.key,idx:_n},ae(Pn)]}function ye(Pn,_n,zn){return!Kt.length||(Kt.call({action:Pn,location:_n,retry:zn}),!1)}function We(Pn){St=Pn;var _n=C();Ct=_n[0],Ut=_n[1],Wt.call({action:St,location:Ut})}function en(Pn,_n){var zn=zl.Push,mr=ue(Pn,_n);function pr(){en(Pn,_n)}if(ye(zn,mr,pr)){var ur=he(mr,Ct+1),br=ur[0],Hr=ur[1];try{g.pushState(br,"",Hr)}catch(vi){i.location.assign(Hr)}We(zn)}}function cn(Pn,_n){var zn=zl.Replace,mr=ue(Pn,_n);function pr(){cn(Pn,_n)}if(ye(zn,mr,pr)){var ur=he(mr,Ct),br=ur[0],Hr=ur[1];g.replaceState(br,"",Hr),We(zn)}}function on(Pn){g.go(Pn)}var ze={get action(){return St},get location(){return Ut},createHref:ae,push:en,replace:cn,go:on,back:function(){on(-1)},forward:function(){on(1)},listen:function(_n){return Wt.push(_n)},block:function(_n){var zn=Kt.push(_n);return Kt.length===1&&i.addEventListener(MS,AS),function(){zn(),Kt.length||i.removeEventListener(MS,AS)}}};return ze}function X6(t){t===void 0&&(t={});var e=t,r=e.window,i=r===void 0?document.defaultView:r,g=i.history;function C(){var _n=xw(i.location.hash.substr(1)),zn=_n.pathname,mr=zn===void 0?"/":zn,pr=_n.search,ur=pr===void 0?"":pr,br=_n.hash,Hr=br===void 0?"":br,vi=g.state||{};return[vi.idx,e1({pathname:mr,search:ur,hash:Hr,state:vi.usr||null,key:vi.key||"default"})]}var J=null;function dt(){if(J)Kt.call(J),J=null;else{var _n=zl.Pop,zn=C(),mr=zn[0],pr=zn[1];if(Kt.length){if(mr!=null){var ur=Ct-mr;ur&&(J={action:_n,location:pr,retry:function(){ze(ur*-1)}},ze(ur))}}else en(_n)}}i.addEventListener(x3,dt),i.addEventListener(QR,function(){var _n=C(),zn=_n[1];vw(zn)!==vw(Ut)&&dt()});var St=zl.Pop,xt=C(),Ct=xt[0],Ut=xt[1],Wt=n1(),Kt=n1();Ct==null&&(Ct=0,g.replaceState(_extends({},g.state,{idx:Ct}),""));function ae(){var _n=document.querySelector("base"),zn="";if(_n&&_n.getAttribute("href")){var mr=i.location.href,pr=mr.indexOf("#");zn=pr===-1?mr:mr.slice(0,pr)}return zn}function ue(_n){return ae()+"#"+(typeof _n=="string"?_n:vw(_n))}function he(_n,zn){return zn===void 0&&(zn=null),e1(_extends({pathname:Ut.pathname,hash:"",search:""},typeof _n=="string"?xw(_n):_n,{state:zn,key:PS()}))}function ye(_n,zn){return[{usr:_n.state,key:_n.key,idx:zn},ue(_n)]}function We(_n,zn,mr){return!Kt.length||(Kt.call({action:_n,location:zn,retry:mr}),!1)}function en(_n){St=_n;var zn=C();Ct=zn[0],Ut=zn[1],Wt.call({action:St,location:Ut})}function cn(_n,zn){var mr=zl.Push,pr=he(_n,zn);function ur(){cn(_n,zn)}if(We(mr,pr,ur)){var br=ye(pr,Ct+1),Hr=br[0],vi=br[1];try{g.pushState(Hr,"",vi)}catch(xi){i.location.assign(vi)}en(mr)}}function on(_n,zn){var mr=zl.Replace,pr=he(_n,zn);function ur(){on(_n,zn)}if(We(mr,pr,ur)){var br=ye(pr,Ct),Hr=br[0],vi=br[1];g.replaceState(Hr,"",vi),en(mr)}}function ze(_n){g.go(_n)}var Pn={get action(){return St},get location(){return Ut},createHref:ue,push:cn,replace:on,go:ze,back:function(){ze(-1)},forward:function(){ze(1)},listen:function(zn){return Wt.push(zn)},block:function(zn){var mr=Kt.push(zn);return Kt.length===1&&i.addEventListener(MS,AS),function(){mr(),Kt.length||i.removeEventListener(MS,AS)}}};return Pn}function $6(t){t===void 0&&(t={});var e=t,r=e.initialEntries,i=r===void 0?["/"]:r,g=e.initialIndex,C=i.map(function(en){var cn=e1(_extends({pathname:"/",search:"",hash:"",state:null,key:PS()},typeof en=="string"?xw(en):en));return cn}),J=b3(g==null?C.length-1:g,0,C.length-1),dt=zl.Pop,St=C[J],xt=n1(),Ct=n1();function Ut(en){return typeof en=="string"?en:vw(en)}function Wt(en,cn){return cn===void 0&&(cn=null),e1(_extends({pathname:St.pathname,search:"",hash:""},typeof en=="string"?xw(en):en,{state:cn,key:PS()}))}function Kt(en,cn,on){return!Ct.length||(Ct.call({action:en,location:cn,retry:on}),!1)}function ae(en,cn){dt=en,St=cn,xt.call({action:dt,location:St})}function ue(en,cn){var on=zl.Push,ze=Wt(en,cn);function Pn(){ue(en,cn)}Kt(on,ze,Pn)&&(J+=1,C.splice(J,C.length,ze),ae(on,ze))}function he(en,cn){var on=zl.Replace,ze=Wt(en,cn);function Pn(){he(en,cn)}Kt(on,ze,Pn)&&(C[J]=ze,ae(on,ze))}function ye(en){var cn=b3(J+en,0,C.length-1),on=zl.Pop,ze=C[cn];function Pn(){ye(en)}Kt(on,ze,Pn)&&(J=cn,ae(on,ze))}var We={get index(){return J},get action(){return dt},get location(){return St},createHref:Ut,push:ue,replace:he,go:ye,back:function(){ye(-1)},forward:function(){ye(1)},listen:function(cn){return xt.push(cn)},block:function(cn){return Ct.push(cn)}};return We}function b3(t,e,r){return Math.min(Math.max(t,e),r)}function AS(t){t.preventDefault(),t.returnValue=""}function n1(){var t=[];return{get length(){return t.length},push:function(r){return t.push(r),function(){t=t.filter(function(i){return i!==r})}},call:function(r){t.forEach(function(i){return i&&i(r)})}}}function PS(){return Math.random().toString(36).substr(2,8)}function vw(t){var e=t.pathname,r=e===void 0?"/":e,i=t.search,g=i===void 0?"":i,C=t.hash,J=C===void 0?"":C;return g&&g!=="?"&&(r+=g.charAt(0)==="?"?g:"?"+g),J&&J!=="#"&&(r+=J.charAt(0)==="#"?J:"#"+J),r}function xw(t){var e={};if(t){var r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));var i=t.indexOf("?");i>=0&&(e.search=t.substr(i),t=t.substr(0,i)),t&&(e.pathname=t)}return e}const t4=[ZR,qS,t=>e=>r=>{const i=e(r),C=t.getState().query.search,J=JR(),dt=J.location;if(dt.search!==C&&!dt.pathname.includes("/detail/"))J.push({search:C});else return i}],e4=(0,c1.Uo)({}),n4=(0,nt.MT)(oE,e4((0,nt.md)(...t4))),w3=()=>a.createElement(go,{locale:"en"},a.createElement("main",{role:"main"},a.createElement(PC,null))),r4=()=>a.createElement(Nc,{store:n4},a.createElement(ms,null,a.createElement(Xc,null,a.createElement(wl,{index:!0,element:a.createElement(g3,null)}),a.createElement(wl,{path:"/data-research/consumer-complaints/search",element:a.createElement(g3,null)}),a.createElement(wl,{path:"/data-research/consumer-complaints/search/detail/:id",element:a.createElement(w3,null)}),a.createElement(wl,{path:"/detail/:id",element:a.createElement(w3,null)})))),i4=document.getElementById("ccdb-ui-root");(0,et.s)(i4).render(a.createElement(r4,null))})()})();
|
|
353
353
|
|
|
354
|
-
//# sourceMappingURL=main.
|
|
354
|
+
//# sourceMappingURL=main.ba5fd82b.js.map
|