@bicharts/chart-host 0.6.109 → 0.6.110
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/adapters.mjs +3 -3
- package/dist/card.mjs +2 -2
- package/dist/{chunk-ABGDJ3NJ.mjs → chunk-3JCWTEEH.mjs} +11 -1
- package/dist/{chunk-JQ7FFCOE.mjs → chunk-5VQ3IQF7.mjs} +63 -16
- package/dist/{chunk-TN5JRULV.mjs → chunk-7XT5OJ6M.mjs} +1 -1
- package/dist/{chunk-GQLEU3VC.mjs → chunk-AEO5SFEQ.mjs} +1 -1
- package/dist/{chunk-QAPZIFOB.mjs → chunk-FT75ONSB.mjs} +17 -1
- package/dist/{chunk-4DOKJ3R3.mjs → chunk-IL5M7K6Z.mjs} +2 -2
- package/dist/{chunk-3ER4C7TG.mjs → chunk-KGVNZR23.mjs} +1 -1
- package/dist/{chunk-USZSHKIB.mjs → chunk-KY4FI2HA.mjs} +1 -1
- package/dist/{chunk-TH577JHI.mjs → chunk-NJWR3DFK.mjs} +110 -109
- package/dist/{chunk-3EQOJHRA.mjs → chunk-PELRAFYZ.mjs} +1 -1
- package/dist/{chunk-G4CKILIL.mjs → chunk-Q43WOKSV.mjs} +1 -1
- package/dist/{chunk-5WTQN5DL.mjs → chunk-S564YXNE.mjs} +1 -1
- package/dist/geo-world.mjs +1 -1
- package/dist/geo.mjs +1 -1
- package/dist/{geoWorld110m.generated-TD2TA7S7.mjs → geoWorld110m-3PRV3V4G.mjs} +1 -1
- package/dist/index.mjs +14 -12
- package/dist/legend-fit.mjs +3 -3
- package/dist/page.mjs +6 -4
- package/dist/provinces.mjs +2 -2
- package/dist/react.mjs +33 -11
- package/dist/testing.mjs +1 -1
- package/dist/types/contract.d.ts +14 -1
- package/dist/types/defaults.d.ts +2 -1
- package/dist/types/filterScope.d.ts +8 -0
- package/dist/types/geo-world.d.ts +1 -1
- package/dist/types/geoWorld110m.d.ts +1 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/types/keyboardMarks.d.ts +3 -2
- package/dist/types/page.d.ts +1 -1
- package/dist/types/react.d.ts +10 -1
- package/dist/zoom-memory.mjs +1 -1
- package/package.json +1 -1
|
@@ -591,7 +591,7 @@ var G = /^\s*\d{4}(-\d{2}(-\d{2})?)?\s*$/;
|
|
|
591
591
|
var P = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
592
592
|
var W = /\b(?:GMT|UTC)\b/i;
|
|
593
593
|
|
|
594
|
-
// ../shape-core/dist/chunk-
|
|
594
|
+
// ../shape-core/dist/chunk-DTBXJVUG.mjs
|
|
595
595
|
/*! @bicharts/shape-core — Apache-2.0. Bundled reference data: GeoNames (https://www.geonames.org/) CC BY 4.0; US Census/TIGER (public domain). Full text: NOTICE in this package. */
|
|
596
596
|
var on = "AB|CA|Alberta|-113.75|52.18,AK|US|Alaska|-148.32|61.29,AL|US|Alabama|-86.73|33.08,AR|US|Arkansas|-92.85|35.29,AZ|US|Arizona|-111.99|33.32,BC|CA|British Columbia|-122.73|49.27,CA|US|California|-119.21|35.2,CO|US|Colorado|-105|39.63,CT|US|Connecticut|-73.01|41.42,DC|US|District of Columbia|-77.04|38.9,DE|US|Delaware|-75.59|39.57,FL|US|Florida|-81.29|27.53,GA|US|Georgia|-84.02|33.43,HI|US|Hawaii|-157.73|21.26,IA|US|Iowa|-92.79|41.88,ID|US|Idaho|-115.65|44.2,IL|US|Illinois|-88.05|41.67,IN|US|Indiana|-86.27|40.23,KS|US|Kansas|-96|38.59,KY|US|Kentucky|-84.91|38.13,LA|US|Louisiana|-91.28|30.57,MA|US|Massachusetts|-71.28|42.32,MB|CA|Manitoba|-97.3|49.88,MD|US|Maryland|-76.79|39.18,ME|US|Maine|-70.01|43.92,MI|US|Michigan|-83.69|42.56,MN|US|Minnesota|-93.26|44.98,MO|US|Missouri|-92.66|38.73,MS|US|Mississippi|-89.62|32.36,MT|US|Montana|-111.07|46.37,MX01|MX|Aguascalientes|-102.29|21.91,MX02|MX|Baja California|-116.5|32.46,MX03|MX|Baja California Sur|-110.12|23.52,MX04|MX|Campeche|-91.08|19.25,MX05|MX|Chiapas|-92.77|16.28,MX06|MX|Chihuahua|-106.27|30.1,MX07|MX|Coahuila|-101.88|26.32,MX08|MX|Colima|-103.94|19.15,MX09|MX|Mexico City|-99.13|19.41,MX10|MX|Durango|-104.24|24.64,MX11|MX|Guanajuato|-101.37|20.87,MX12|MX|Guerrero|-99.83|17.31,MX13|MX|Hidalgo|-98.81|20.13,MX14|MX|Jalisco|-103.39|20.64,MX15|MX|M\xE9xico|-99.14|19.51,MX16|MX|Michoac\xE1n|-101.68|19.49,MX17|MX|Morelos|-99.15|18.88,MX18|MX|Nayarit|-104.89|21.5,MX19|MX|Nuevo Le\xF3n|-100.26|25.69,MX20|MX|Oaxaca|-96.23|17.05,MX21|MX|Puebla|-98.12|19.07,MX22|MX|Quer\xE9taro|-100.35|20.57,MX23|MX|Quintana Roo|-87.09|20.7,MX24|MX|San Luis Potos\xED|-100.7|22.22,MX25|MX|Sinaloa|-107.49|24.63,MX26|MX|Sonora|-111.05|29.37,MX27|MX|Tabasco|-92.98|17.99,MX28|MX|Tamaulipas|-98.33|24.92,MX29|MX|Tlaxcala|-98.19|19.31,MX30|MX|Veracruz|-96.31|19.2,MX31|MX|Yucat\xE1n|-89.52|20.94,MX32|MX|Zacatecas|-102.7|22.93,NB|CA|New Brunswick|-65.73|45.83,NC|US|North Carolina|-79.61|35.57,ND|US|North Dakota|-98.8|47.31,NE|US|Nebraska|-96.42|41.07,NH|US|New Hampshire|-71.37|43,NJ|US|New Jersey|-74.34|40.51,NL|CA|Newfoundland and Labrador|-52.77|47.55,NM|US|New Mexico|-106.28|34.69,NS|CA|Nova Scotia|-63.11|44.86,NV|US|Nevada|-115.95|36.72,NY|US|New York|-74.13|40.89,OH|US|Ohio|-82.75|40.53,OK|US|Oklahoma|-97.01|35.66,ON|CA|Ontario|-79.27|43.94,OR|US|Oregon|-122.75|44.96,PA|US|Pennsylvania|-76.12|40.23,PE|CA|Prince Edward Island|-63.13|46.23,QC|CA|Quebec|-73.14|45.89,RI|US|Rhode Island|-71.45|41.79,SC|US|South Carolina|-80.69|33.6,SD|US|South Dakota|-98.66|43.89,SK|CA|Saskatchewan|-105.99|51.63,TN|US|Tennessee|-87.53|35.63,TX|US|Texas|-97.51|31.01,UT|US|Utah|-111.96|40.5,VA|US|Virginia|-77.08|37.61,VT|US|Vermont|-73.21|44.48,WA|US|Washington|-121.46|47.29,WI|US|Wisconsin|-88.6|43.36,WV|US|West Virginia|-81.42|38.99,WY|US|Wyoming|-105.54|42.26,YT|CA|Yukon|-135.05|60.72";
|
|
597
597
|
var rn = "006|-66.84|18.26,007|-66.15|18.15,008|-64.74|17.74,009|-66.12|18.37,010|-72.6|42.26,011|-72.53|42.07,012|-73.21|42.37,013|-72.51|42.58,014|-71.81|42.59,015|-71.85|42.23,016|-71.84|42.28,017|-71.44|42.33,018|-71.21|42.64,019|-70.89|42.66,020|-71.28|42.12,021|-71.05|42.31,022|-71.04|42.35,023|-70.86|41.98,024|-71.22|42.37,025|-70.6|41.71,026|-70.2|41.73,027|-71.07|41.77,028|-71.62|41.69,029|-71.47|41.82,030|-71.51|42.9,031|-71.48|43,032|-71.65|43.57,033|-71.58|43.26,034|-72.19|42.91,035|-71.31|44.69,036|-72.32|43.17,037|-72.13|43.69,038|-71.1|43.56,039|-70.76|43.24,040|-70.6|43.78,041|-70.27|43.7,042|-70.49|44.38,043|-69.75|44.3,044|-68.83|45.45,045|-69.57|43.99,046|-67.8|44.79,047|-68.34|46.55,048|-69.17|44.2,049|-69.97|44.99,050|-72.43|43.85,051|-72.65|43.28,052|-73.14|43.03,053|-72.77|42.94,054|-72.98|44.58,056|-72.6|44.35,057|-73.04|43.69,058|-72.12|44.68,059|-71.7|44.79,060|-72.81|41.88,061|-72.69|41.74,062|-72.12|41.81,063|-72.03|41.5,064|-72.61|41.46,065|-72.94|41.36,066|-73.22|41.24,067|-73.24|41.68,068|-73.42|41.28,069|-73.57|41.14,070|-74.28|40.76,071|-74.2|40.74,072|-74.2|40.68,073|-74.08|40.71,074|-74.4|41.09,075|-74.17|40.92,076|-74.01|40.94,077|-74.17|40.28,078|-74.81|40.97,079|-74.55|40.74,080|-74.98|39.78,081|-75.07|39.94,082|-74.68|39.32,083|-75.04|39.45,084|-74.48|39.35,085|-74.62|40.25,086|-74.68|40.23,087|-74.22|39.96,088|-74.72|40.54,089|-74.48|40.45,100|-73.96|40.77,101|-73.95|40.78,102|-74.02|40.72,103|-74.15|40.58,104|-73.85|40.9,105|-73.75|41.27,106|-73.74|41.02,107|-73.84|40.96,108|-73.8|40.95,109|-74.27|41.3,110|-73.69|40.74,111|-73.93|40.76,112|-73.94|40.66,113|-73.84|40.73,114|-73.77|40.69,115|-73.62|40.71,116|-73.88|40.57,117|-73.23|40.82,118|-73.5|40.77,119|-72.53|40.95,120|-74.22|42.92,121|-74.4|43.46,122|-73.81|42.7,123|-73.96|42.82,124|-74.27|42.09,125|-73.7|41.89,126|-73.88|41.69,127|-74.75|41.74,128|-73.91|43.61,129|-74.03|44.53,130|-76.16|43.08,131|-76.46|43.27,132|-76.2|43.03,133|-75.07|43.45,134|-75.35|43.03,135|-75.15|43.14,136|-75.39|44.33,137|-75.2|42.21,138|-75.46|42.43,139|-75.88|42.12,140|-78.48|43.01,141|-78.7|42.49,142|-78.8|42.91,143|-78.96|43.12,144|-77.71|42.96,145|-77.17|43.14,146|-77.65|43.17,147|-78.84|42.21,148|-77.18|42.29,149|-76.78|42.09,150|-80.23|40.56,151|-80.18|40.53,152|-79.97|40.46,153|-80.24|40.01,154|-79.65|39.92,155|-78.8|39.95,156|-79.47|40.33,157|-79.02|40.71,158|-78.66|41.32,159|-78.84|40.35,160|-79.88|40.93,161|-80.3|41.19,162|-79.35|41.08,163|-79.58|41.59,164|-80|41.87,165|-80.04|42.1,166|-78.28|40.48,167|-78.47|41.76,168|-78|40.97,169|-77.37|41.8,170|-77.29|40.44,171|-76.78|40.33,172|-77.81|39.98,173|-76.93|39.89,174|-76.72|39.97,175|-76.24|40.05,176|-76.34|40.05,177|-77.22|41.34,178|-76.77|40.93,179|-76.27|40.69,180|-75.45|40.67,181|-75.47|40.6,182|-75.88|40.9,183|-75.19|41.12,184|-75.38|41.53,185|-75.68|41.37,186|-76.17|41.4,187|-75.86|41.22,188|-76.12|41.82,189|-75.14|40.36,190|-75.37|39.97,191|-75.15|40.01,193|-75.78|39.92,194|-75.46|40.19,195|-75.9|40.42,196|-75.95|40.34,197|-75.68|39.53,198|-75.58|39.77,199|-75.46|38.83,200|-77.02|38.9,201|-77.68|38.9,202|-77.03|38.89,203|-77.01|38.86,204|-77.05|38.89,205|-77.01|38.87,206|-76.76|38.45,207|-76.78|38.88,208|-77.23|39.15,209|-76.99|39.05,210|-76.32|39.53,211|-76.73|39.58,212|-76.58|39.31,214|-76.55|39,215|-79.08|39.56,216|-76.02|38.86,217|-77.5|39.52,218|-75.57|38.27,219|-75.94|39.57,220|-77.25|38.78,221|-77.25|38.92,222|-77.11|38.88,223|-77.13|38.79,224|-77.25|38.22,225|-77.51|38.09,226|-78.25|39.03,227|-78.05|38.49,228|-78.79|38.57,229|-78.55|38.02,230|-78.09|37.66,231|-76.96|37.55,232|-77.46|37.51,233|-76.3|36.68,234|-76.66|36.77,235|-76.26|36.87,236|-76.44|37.12,237|-76.38|36.85,238|-77.41|36.94,239|-78.39|37.03,240|-80.1|37.23,241|-79.89|36.9,242|-82.49|36.83,243|-81.13|36.86,244|-79.51|38.05,245|-79.11|37.15,246|-81.8|37.19,247|-81.14|37.39,248|-81.64|37.47,249|-80.32|37.95,250|-81.45|38.27,251|-81.89|38.64,252|-81.45|38.77,253|-81.64|38.42,254|-78.11|39.45,255|-82.19|38.25,256|-82.08|37.76,257|-82.41|38.4,258|-81.21|37.72,259|-80.89|37.83,260|-80.63|40.05,261|-81.27|39.2,262|-80.02|38.75,263|-80.23|39.27,264|-80.65|39.21,265|-80.05|39.59,266|-80.8|38.48,267|-78.98|39.33,268|-79.12|38.88,270|-80.45|36.24,271|-80.24|36.06,272|-79.82|35.86,273|-79.52|35.55,274|-79.81|36.09,275|-78.54|35.93,276|-78.65|35.81,277|-78.9|35.99,278|-77.32|35.88,279|-76.5|36.19,280|-81.2|35.4,281|-80.41|35.21,282|-80.83|35.22,283|-78.94|34.96,284|-78.23|34.39,285|-77.23|35.06,286|-81.36|36.06,287|-82.78|35.51,288|-82.55|35.6,289|-83.97|35.11,290|-80.88|34.19,291|-80.62|33.71,292|-80.96|34.04,293|-81.86|34.78,294|-80.08|33.05,295|-79.49|34.07,296|-82.57|34.61,297|-80.92|34.83,298|-81.74|33.51,299|-80.96|32.55,300|-84.08|33.85,301|-84.91|34.04,302|-84.55|33.25,303|-84.42|33.77,304|-82.11|32.48,305|-83.81|34.58,306|-83.14|33.86,307|-85.1|34.71,308|-82.34|33.35,309|-82.01|33.4,310|-83.42|32.64,312|-83.64|32.83,313|-81.49|31.68,314|-81.15|32.03,315|-82.21|31.4,316|-83.21|31.02,317|-83.87|31.48,318|-84.69|32.45,319|-84.95|32.47,320|-82.58|30.27,321|-81.48|29.39,322|-81.69|30.3,323|-84.25|30.29,324|-85.58|30.55,325|-87.03|30.76,326|-82.6|29.58,327|-81.28|28.79,328|-81.32|28.47,329|-80.67|27.96,330|-80.58|25.31,331|-80.38|25.74,333|-80.25|26.13,334|-81.01|26.64,335|-82.22|28.19,336|-82.47|28.01,337|-82.73|27.85,338|-81.64|27.72,339|-81.71|26.77,341|-81.32|26.11,342|-82.16|27.29,344|-82.35|29.01,346|-82.52|28.41,347|-81.4|28.29,349|-80.72|27.34,350|-86.8|34.05,351|-86.38|33.43,352|-86.77|33.5,354|-87.86|33.07,355|-87.71|33.96,356|-87.4|34.67,357|-86.26|34.75,358|-86.59|34.69,359|-85.94|34.27,360|-86.09|32.09,361|-86.27|32.31,362|-85.65|33.53,363|-85.56|31.34,364|-86.97|31.38,365|-88.14|31.32,366|-88.19|30.68,367|-87.34|32.33,368|-85.41|32.61,369|-88.25|32.12,370|-87.02|36.12,371|-86.23|35.75,372|-86.83|36.15,373|-85.36|35.32,374|-85.33|35.06,376|-82.3|36.36,377|-84.31|36.27,378|-83.35|36.3,379|-83.97|35.97,380|-89.43|35.55,381|-89.96|35.1,382|-88.68|36.29,383|-88.5|35.61,384|-87.36|35.34,385|-85.34|36.18,386|-89.76|34.57,387|-90.81|33.54,388|-88.63|34.36,389|-89.9|33.77,390|-90|32.53,391|-90.67|32.51,392|-90.22|32.32,393|-88.8|32.42,394|-89.26|31.23,395|-89|30.59,396|-90.67|31.32,397|-88.87|33.53,398|-84.67|31.32,400|-85.29|38.07,401|-86.2|37.85,402|-85.66|38.19,403|-84.2|38.06,404|-84.42|37.53,405|-84.45|38.04,406|-84.87|38.22,407|-84.12|36.95,408|-83.26|36.9,409|-83.74|36.95,410|-84.32|38.64,411|-83.06|38.38,412|-82.67|37.89,413|-83.48|37.58,414|-83.15|37.84,415|-82.39|37.46,416|-82.78|37.54,417|-83.25|37.23,418|-82.88|37.21,420|-88.57|36.9,421|-86.09|36.89,422|-87.11|36.95,423|-87.02|37.52,424|-87.7|37.47,425|-84.71|37.15,426|-84.82|36.81,427|-85.73|37.32,430|-82.9|40.21,431|-82.99|39.69,432|-82.97|39.98,433|-83.38|40.55,434|-83.3|41.42,435|-84.22|41.46,436|-83.54|41.67,437|-81.66|39.85,438|-81.88|40.27,439|-80.9|40.25,440|-80.97|41.64,441|-81.66|41.42,442|-81.6|41.13,443|-81.54|41.07,444|-80.77|41.09,445|-80.64|41.05,446|-81.53|40.65,447|-81.39|40.83,448|-82.77|41.02,449|-82.55|40.74,450|-84.48|39.43,451|-83.84|39.16,452|-84.48|39.18,453|-84.3|39.97,454|-84.18|39.74,455|-83.81|39.94,456|-82.86|38.99,457|-81.78|39.35,458|-84.23|40.83,460|-86.13|40.17,461|-86.18|39.62,462|-86.14|39.79,463|-87.05|41.41,464|-87.34|41.55,465|-86.08|41.44,466|-86.28|41.66,467|-85.21|41.17,468|-85.17|41.09,469|-86.14|40.76,470|-85.08|39.16,471|-86.02|38.43,472|-85.74|39.05,473|-85.15|40.09,474|-86.63|38.99,475|-87.03|38.46,476|-87.53|38.13,477|-87.58|38.03,478|-87.29|39.45,479|-87.11|40.5,480|-82.79|42.83,481|-83.62|42.2,482|-83.1|42.38,483|-83.35|42.66,484|-83.22|43.29,485|-83.69|43.03,486|-84.36|43.99,487|-83.67|44.45,488|-84.67|43.02,489|-84.59|42.74,490|-85.54|42.2,491|-86.36|41.87,492|-84.36|42.06,493|-85.57|43.33,494|-86.14|43.39,495|-85.66|42.96,496|-85.52|44.44,497|-84.37|45.17,498|-86.94|46.17,499|-88.93|46.6,500|-94.77|41.63,501|-92.79|41.84,502|-93.67|42.12,503|-93.63|41.59,504|-93.37|43.17,505|-94.45|42.77,506|-92.45|42.65,507|-92.31|42.49,508|-94.56|40.96,510|-95.91|42.6,511|-96.39|42.52,512|-96.06|43.28,513|-95.16|43.27,514|-95.08|42.11,515|-95.55|41.44,516|-95.37|40.74,520|-90.98|42.46,521|-91.73|43.2,522|-92.31|41.9,523|-91.66|41.87,524|-91.69|41.96,525|-92.46|40.95,526|-91.44|40.88,527|-90.88|41.64,528|-90.61|41.56,530|-88.24|43.51,531|-88.33|42.75,532|-87.98|43.06,534|-87.86|42.74,535|-89.66|42.95,537|-89.38|43.08,538|-90.73|42.88,539|-89.55|43.64,540|-92.46|45.08,541|-88.23|45.09,542|-87.6|44.52,543|-88.01|44.53,544|-89.85|44.93,545|-89.86|45.89,546|-90.87|43.93,547|-91.52|44.85,548|-91.63|46.04,549|-88.96|44.19,550|-92.98|45.17,551|-93.08|44.96,553|-94.06|44.99,554|-93.31|45.01,556|-91.03|47.67,557|-92.68|47.39,558|-92.08|46.96,559|-92.28|43.89,560|-94.04|44.02,561|-95.65|43.92,562|-95.75|45.08,563|-94.59|45.83,564|-94.5|46.63,565|-96.08|46.86,566|-94.31|47.88,567|-96.22|48.39,570|-97.07|43.48,571|-96.76|43.54,572|-97.18|45.04,573|-98.53|43.91,574|-98.93|45.36,575|-100.61|43.86,576|-101.59|45.43,577|-103.11|44.26,580|-97.39|46.66,581|-96.83|46.86,582|-97.72|48.25,583|-99.34|48.32,584|-99.12|46.88,585|-100.98|46.76,586|-102.99|46.75,587|-101.7|48.34,588|-103.48|48.2,590|-108.62|45.98,591|-108.45|45.69,592|-105.6|48.2,593|-105.58|46.4,594|-111.24|47.79,595|-109.12|48.38,596|-111.74|46.65,597|-112.31|45.48,598|-114.25|46.97,599|-114.57|48.37,600|-88.15|42.29,601|-88.47|42.01,602|-87.69|42.04,603|-87.79|41.89,604|-88.09|41.39,605|-88.55|41.69,606|-87.69|41.83,607|-87.82|42.03,608|-87.76|41.84,609|-87.92|40.8,610|-89.56|42.18,611|-89.08|42.28,612|-90.29|41.5,613|-89.16|41.34,614|-90.43|40.82,615|-89.68|40.71,616|-89.61|40.72,617|-88.89|40.52,618|-88.15|40.11,619|-88.19|39.66,620|-90.01|39.13,622|-89.72|38.41,623|-91.02|39.99,624|-88.19|39.04,625|-89.21|39.63,626|-90|39.86,627|-89.66|39.8,628|-88.65|38.35,629|-88.89|37.55,630|-90.83|38.35,631|-90.32|38.64,633|-91.11|39.02,634|-91.78|39.93,635|-92.61|40.2,636|-90.64|37.61,637|-89.81|37.37,638|-89.73|36.55,639|-90.62|36.84,640|-94.1|39.07,641|-94.58|39.14,644|-94.69|40.13,645|-94.83|39.75,646|-93.55|39.89,647|-94.15|38.06,648|-94.35|36.93,650|-92.23|38.45,651|-92.19|38.51,652|-92.38|39.21,653|-93.26|38.71,654|-92.03|37.93,655|-91.92|37.67,656|-93.08|36.76,657|-92.43|37.03,658|-93.3|37.22,660|-95.12|38.84,661|-94.73|39.11,662|-94.72|38.95,664|-96.15|39.64,665|-96.34|39.4,666|-95.76|39.06,667|-95.23|37.64,668|-96.39|38.36,669|-97.86|39.77,670|-98.49|37.33,671|-98.4|37.44,672|-97.33|37.7,673|-95.81|37.23,674|-97.79|38.98,675|-98.99|38.25,676|-99.47|39.34,677|-101.15|39.35,678|-100.82|37.91,679|-101.43|37.18,680|-96.46|41.55,681|-96.05|41.24,683|-96.93|40.39,684|-97.26|40.89,685|-96.69|40.82,686|-97.68|41.55,687|-98.16|42.43,688|-99.15|41.34,689|-98.9|40.34,690|-100.99|40.37,691|-101.59|41.42,692|-100.64|42.67,693|-102.84|42.29,700|-89.93|29.63,701|-89.93|30.02,703|-90.65|29.62,704|-90.27|30.66,705|-92.25|30.2,706|-93.21|30.34,707|-91.2|30.57,708|-91.1|30.45,710|-93.4|32.45,711|-93.75|32.47,712|-91.95|32.56,713|-91.86|31.43,714|-92.84|31.57,716|-91.75|33.61,717|-92.79|33.48,718|-93.84|33.66,719|-93.61|34.4,720|-91.9|34.92,721|-92.56|34.93,722|-92.37|34.7,723|-90.59|35.07,724|-90.76|36.04,725|-91.81|36.01,726|-92.93|36.15,727|-94.05|36.11,728|-93.33|35.3,729|-94.08|35.29,730|-97.83|35.31,731|-97.5|35.43,734|-97.14|34.21,735|-98.81|34.53,736|-99.33|35.52,737|-98.2|36.42,738|-99.54|36.5,739|-101.67|36.74,740|-96.19|36.34,741|-95.96|36.15,743|-95.02|36.55,744|-95.44|35.64,745|-95.65|34.66,746|-97.05|36.71,747|-95.41|34.02,748|-96.66|35.17,749|-94.69|35.23,750|-96.76|33.06,751|-96.32|32.48,752|-96.78|32.79,753|-96.84|32.81,754|-95.67|33.37,755|-94.45|33.3,756|-94.58|32.49,757|-95.37|32.24,758|-95.68|31.44,759|-94.29|31.29,760|-97.54|32.59,761|-97.38|32.77,762|-97.44|33.52,763|-98.87|33.73,764|-98.59|32.61,765|-97.62|31.11,766|-97.06|31.7,767|-97.15|31.57,768|-99.37|31.23,769|-100.88|31.03,770|-95.39|29.79,772|-95.37|29.77,773|-95.24|30.48,774|-96.02|29.38,775|-94.98|29.68,776|-94.16|30.27,777|-94.19|29.96,778|-96.32|30.67,779|-96.95|28.92,780|-99.01|28.67,781|-97.93|29.08,782|-98.53|29.47,783|-98.14|27.63,784|-97.44|27.73,785|-98.19|26.39,786|-98.1|30.27,787|-97.78|30.3,788|-100.26|29.44,789|-96.87|29.92,790|-101.63|35.48,791|-101.85|35.21,792|-100.57|34.25,793|-102.15|33.37,794|-101.88|33.58,795|-100.31|32.7,796|-99.72|32.46,797|-102.22|31.57,798|-104.17|30.53,799|-106.16|31.8,800|-105.11|39.91,801|-104.47|39.51,802|-104.93|39.78,803|-105.31|40.04,804|-106.16|39.98,805|-105.35|40.57,806|-104.49|40.38,807|-103.09|40.4,808|-103.16|39.12,809|-104.67|38.79,810|-103.58|37.77,811|-106.39|37.54,812|-106.39|38.46,813|-108.42|37.49,814|-108.02|38.43,815|-108.7|38.92,816|-107.86|39.99,820|-105.27|41.31,821|-110.51|44.57,822|-104.67|42.39,823|-107.03|41.75,824|-108.65|44.32,825|-108.91|43.14,826|-106.43|43.1,827|-105|44.2,828|-106.71|44.55,829|-109.71|42.82,830|-110.51|43.7,831|-110.53|42.6,832|-112.17|42.66,833|-114.23|42.81,834|-111.63|43.86,835|-115.77|46.07,836|-115.99|44,837|-116.04|43.58,838|-116.47|47.77,840|-110.86|40.53,841|-111.81|40.71,843|-112.18|41.67,844|-112.01|41.23,845|-109.72|38.09,846|-111.68|39.63,847|-112.82|37.61,850|-112.09|33.63,851|-111.41|33,852|-111.69|33.6,853|-113.44|33.49,855|-110.3|33.43,856|-110.59|32,857|-111.09|32.18,859|-109.81|34.23,860|-111.15|35.89,863|-112.57|34.85,864|-113.79|35.66,865|-109.55|36.03,870|-106.9|35.22,871|-106.72|35.12,873|-108.56|35.44,874|-108.23|36.59,875|-106.04|36.27,877|-104.68|36.06,878|-107.94|34,879|-107.48|33.2,880|-108.03|32.37,881|-103.81|34.26,882|-104.07|32.87,883|-105.48|33.62,884|-103.79|35.74,890|-114.84|37,891|-115.42|36.33,893|-116.96|39.5,894|-118.06|41.29,895|-119.72|39.9,897|-119.8|39.18,898|-115.71|40.95,900|-118.32|34.04,902|-118.76|34.07,903|-118.34|33.95,904|-118.48|34.02,905|-118.33|33.83,906|-118.03|33.93,907|-118.45|33.39,908|-118.18|33.8,910|-118.25|34.28,911|-118.13|34.15,912|-118.25|34.19,913|-118.55|34.36,914|-118.47|34.18,915|-118.33|34.19,916|-118.38|34.18,917|-117.78|34.14,918|-118.13|34.09,919|-116.62|32.73,920|-116.7|33.16,921|-117.14|32.85,922|-115.5|33.59,923|-117.14|34.66,924|-117.33|34.17,925|-117.06|33.68,926|-117.73|33.63,927|-117.85|33.74,928|-117.71|33.85,930|-119.12|34.39,931|-119.97|34.48,932|-119.07|35.98,933|-119.01|35.35,934|-120.5|35.38,935|-118.36|37.37,936|-119.72|36.95,937|-119.85|36.71,939|-121.42|36.34,940|-122.31|37.41,941|-122.44|37.77,943|-122.13|37.44,944|-122.32|37.53,945|-122.05|38.09,946|-122.19|37.78,947|-122.26|37.89,948|-122.3|37.97,949|-122.74|38.14,950|-121.42|36.85,951|-121.76|37.33,952|-120.79|38.14,953|-120.56|37.62,954|-123.15|39.08,955|-123.75|40.5,956|-121.34|38.62,957|-120.86|39.13,958|-121.44|38.58,959|-121.73|39.47,960|-122.42|41.06,961|-120.33|40.52,967|-155.53|19.6,968|-157.83|21.34,969|144.77|13.45,970|-121.45|45.3,971|-123.79|45.64,972|-122.74|45.57,973|-123.26|44.68,974|-123.46|43.61,975|-123.06|42.34,976|-120.4|42.67,977|-120.77|44.32,978|-118.59|45.21,979|-117.63|43.34,980|-121.78|47.42,981|-122.32|47.6,982|-121.79|48.39,983|-123.87|47.96,984|-122.46|47.18,985|-123.27|46.94,986|-122.15|45.99,988|-119.91|48,989|-120.57|46.71,990|-117.56|47.62,991|-118.13|47.91,992|-117.4|47.67,993|-118.82|46.4,994|-117.21|46.2,995|-156.93|60.89,996|-151.66|60.82,997|-146.69|65.19,998|-136.2|58.94,999|-131.24|55.86";
|
|
@@ -601,14 +601,14 @@ var Tn = new Set(Array.from(sn).filter((n) => n.includes(" ") && n !== "n a").ma
|
|
|
601
601
|
function T2(n) {
|
|
602
602
|
return n ? sn.has(n) || Tn.has(n.replace(/ /g, "")) : true;
|
|
603
603
|
}
|
|
604
|
-
var
|
|
604
|
+
var pt = 80;
|
|
605
605
|
function g3(n) {
|
|
606
606
|
return g(n.normalize("NFD").replace(/\p{Diacritic}/gu, "").toLowerCase()).replace(/[^\p{L}\p{Nd}\s]/gu, " ").replace(/\s+/g, " ").trim();
|
|
607
607
|
}
|
|
608
608
|
function h2(n) {
|
|
609
609
|
return l(n);
|
|
610
610
|
}
|
|
611
|
-
var hn = "AD AND,AE ARE,AF AFG,AG ATG,AI AIA,AL ALB,AM ARM,AO AGO,AQ ATA,AR ARG,AS ASM,AT AUT,AU AUS,AW ABW,AX ALA,AZ AZE,BA BIH,BB BRB,BD BGD,BE BEL,BF BFA,BG BGR,BH BHR,BI BDI,BJ BEN,BL BLM,BM BMU,BN BRN,BO BOL,BQ BES,BR BRA,BS BHS,BT BTN,BV BVT,BW BWA,BY BLR,BZ BLZ,CA CAN,CC CCK,CD COD,CF CAF,CG COG,CH CHE,CI CIV,CK COK,CL CHL,CM CMR,CN CHN,CO COL,CR CRI,CU CUB,CV CPV,CW CUW,CX CXR,CY CYP,CZ CZE,DE DEU,DJ DJI,DK DNK,DM DMA,DO DOM,DZ DZA,EC ECU,EE EST,EG EGY,EH ESH,ER ERI,ES ESP,ET ETH,FI FIN,FJ FJI,FK FLK,FM FSM,FO FRO,FR FRA,GA GAB,GB GBR,GD GRD,GE GEO,GF GUF,GG GGY,GH GHA,GI GIB,GL GRL,GM GMB,GN GIN,GP GLP,GQ GNQ,GR GRC,GS SGS,GT GTM,GU GUM,GW GNB,GY GUY,HK HKG,HM HMD,HN HND,HR HRV,HT HTI,HU HUN,ID IDN,IE IRL,IL ISR,IM IMN,IN IND,IO IOT,IQ IRQ,IR IRN,IS ISL,IT ITA,JE JEY,JM JAM,JO JOR,JP JPN,KE KEN,KG KGZ,KH KHM,KI KIR,KM COM,KN KNA,KP PRK,KR KOR,KW KWT,KY CYM,KZ KAZ,LA LAO,LB LBN,LC LCA,LI LIE,LK LKA,LR LBR,LS LSO,LT LTU,LU LUX,LV LVA,LY LBY,MA MAR,MC MCO,MD MDA,ME MNE,MF MAF,MG MDG,MH MHL,MK MKD,ML MLI,MM MMR,MN MNG,MO MAC,MP MNP,MQ MTQ,MR MRT,MS MSR,MT MLT,MU MUS,MV MDV,MW MWI,MX MEX,MY MYS,MZ MOZ,NA NAM,NC NCL,NE NER,NF NFK,NG NGA,NI NIC,NL NLD,NO NOR,NP NPL,NR NRU,NU NIU,NZ NZL,OM OMN,PA PAN,PE PER,PF PYF,PG PNG,PH PHL,PK PAK,PL POL,PM SPM,PN PCN,PR PRI,PS PSE,PT PRT,PW PLW,PY PRY,QA QAT,RE REU,RO ROU,RS SRB,RU RUS,RW RWA,SA SAU,SB SLB,SC SYC,SD SDN,SE SWE,SG SGP,SH SHN,SI SVN,SJ SJM,SK SVK,SL SLE,SM SMR,SN SEN,SO SOM,SR SUR,SS SSD,ST STP,SV SLV,SX SXM,SY SYR,SZ SWZ,TC TCA,TD TCD,TF ATF,TG TGO,TH THA,TJ TJK,TK TKL,TL TLS,TM TKM,TN TUN,TO TON,TR TUR,TT TTO,TV TUV,TW TWN,TZ TZA,UA UKR,UG UGA,UM UMI,US USA,UY URY,UZ UZB,VA VAT,VC VCT,VE VEN,VG VGB,VI VIR,VN VNM,VU VUT,WF WLF,WS WSM,YE YEM,YT MYT,ZA ZAF,ZM ZMB,ZW ZWE";
|
|
611
|
+
var hn = "AD AND,AE ARE,AF AFG,AG ATG,AI AIA,AL ALB,AM ARM,AO AGO,AQ ATA,AR ARG,AS ASM,AT AUT,AU AUS,AW ABW,AX ALA,AZ AZE,BA BIH,BB BRB,BD BGD,BE BEL,BF BFA,BG BGR,BH BHR,BI BDI,BJ BEN,BL BLM,BM BMU,BN BRN,BO BOL,BQ BES,BR BRA,BS BHS,BT BTN,BV BVT,BW BWA,BY BLR,BZ BLZ,CA CAN,CC CCK,CD COD,CF CAF,CG COG,CH CHE,CI CIV,CK COK,CL CHL,CM CMR,CN CHN,CO COL,CR CRI,CU CUB,CV CPV,CW CUW,CX CXR,CY CYP,CZ CZE,DE DEU,DJ DJI,DK DNK,DM DMA,DO DOM,DZ DZA,EC ECU,EE EST,EG EGY,EH ESH,ER ERI,ES ESP,ET ETH,FI FIN,FJ FJI,FK FLK,FM FSM,FO FRO,FR FRA,GA GAB,GB GBR,GD GRD,GE GEO,GF GUF,GG GGY,GH GHA,GI GIB,GL GRL,GM GMB,GN GIN,GP GLP,GQ GNQ,GR GRC,GS SGS,GT GTM,GU GUM,GW GNB,GY GUY,HK HKG,HM HMD,HN HND,HR HRV,HT HTI,HU HUN,ID IDN,IE IRL,IL ISR,IM IMN,IN IND,IO IOT,IQ IRQ,IR IRN,IS ISL,IT ITA,JE JEY,JM JAM,JO JOR,JP JPN,KE KEN,KG KGZ,KH KHM,KI KIR,KM COM,KN KNA,KP PRK,KR KOR,KW KWT,KY CYM,KZ KAZ,LA LAO,LB LBN,LC LCA,LI LIE,LK LKA,LR LBR,LS LSO,LT LTU,LU LUX,LV LVA,LY LBY,MA MAR,MC MCO,MD MDA,ME MNE,MF MAF,MG MDG,MH MHL,MK MKD,ML MLI,MM MMR,MN MNG,MO MAC,MP MNP,MQ MTQ,MR MRT,MS MSR,MT MLT,MU MUS,MV MDV,MW MWI,MX MEX,MY MYS,MZ MOZ,NA NAM,NC NCL,NE NER,NF NFK,NG NGA,NI NIC,NL NLD,NO NOR,NP NPL,NR NRU,NU NIU,NZ NZL,OM OMN,PA PAN,PE PER,PF PYF,PG PNG,PH PHL,PK PAK,PL POL,PM SPM,PN PCN,PR PRI,PS PSE,PT PRT,PW PLW,PY PRY,QA QAT,RE REU,RO ROU,RS SRB,RU RUS,RW RWA,SA SAU,SB SLB,SC SYC,SD SDN,SE SWE,SG SGP,SH SHN,SI SVN,SJ SJM,SK SVK,SL SLE,SM SMR,SN SEN,SO SOM,SR SUR,SS SSD,ST STP,SV SLV,SX SXM,SY SYR,SZ SWZ,TC TCA,TD TCD,TF ATF,TG TGO,TH THA,TJ TJK,TK TKL,TL TLS,TM TKM,TN TUN,TO TON,TR TUR,TT TTO,TV TUV,TW TWN,TZ TZA,UA UKR,UG UGA,UM UMI,US USA,UY URY,UZ UZB,VA VAT,VC VCT,VE VEN,VG VGB,VI VIR,VN VNM,VU VUT,WF WLF,WS WSM,XK XKX,YE YEM,YT MYT,ZA ZAF,ZM ZMB,ZW ZWE";
|
|
612
612
|
var C = (() => {
|
|
613
613
|
let n = /* @__PURE__ */ new Map();
|
|
614
614
|
for (let e of hn.split(",")) {
|
|
@@ -621,7 +621,7 @@ var Ln = new Set(C.keys());
|
|
|
621
621
|
var Pn = new Set(C.values());
|
|
622
622
|
var Un = ["en", "fr", "es", "de", "it", "pt", "ru", "ja", "zh", "ko", "ar", "hi", "tr", "pl", "he", "nl", "sv", "fi", "nb", "da", "cs", "el", "uk", "ro", "id", "vi", "th", "sk", "hu", "hr"];
|
|
623
623
|
var En = { usa: "USA", "u.s.": "USA", "u.s.a.": "USA", us: "USA", america: "USA", "united states of america": "USA", "the united states": "USA", uk: "GBR", "u.k.": "GBR", "great britain": "GBR", britain: "GBR", england: "GBR", "south korea": "KOR", "north korea": "PRK", korea: "KOR", "ivory coast": "CIV", "cote d ivoire": "CIV", vietnam: "VNM", laos: "LAO", syria: "SYR", iran: "IRN", russia: "RUS", moldova: "MDA", tanzania: "TZA", bolivia: "BOL", venezuela: "VEN", brunei: "BRN", "czech republic": "CZE", czechia: "CZE", slovakia: "SVK", uae: "ARE", "united arab emirates": "ARE", drc: "COD", "dr congo": "COD", "democratic republic of the congo": "COD", "republic of the congo": "COG", congo: "COG", swaziland: "SWZ", eswatini: "SWZ", "cape verde": "CPV", "cabo verde": "CPV", burma: "MMR", myanmar: "MMR", holland: "NLD", "the netherlands": "NLD", netherlands: "NLD", vatican: "VAT", "vatican city": "VAT", palestine: "PSE", macau: "MAC", macao: "MAC", "hong kong": "HKG", taiwan: "TWN", turkey: "TUR", turkiye: "TUR", macedonia: "MKD", "north macedonia": "MKD", gambia: "GMB", "the gambia": "GMB", bahamas: "BHS", "the bahamas": "BHS", "east timor": "TLS", "timor leste": "TLS" };
|
|
624
|
-
var Bn = Object.freeze({ "Antigua and Barbuda": "ATG", "Bosnia and Herzegovina": "BIH", "Heard Island and McDonald Islands": "HMD", "Saint Kitts and Nevis": "KNA", "St Kitts and Nevis": "KNA", "Saint Pierre and Miquelon": "SPM", "St Pierre and Miquelon": "SPM", "Saint Vincent and the Grenadines": "VCT", "St Vincent and the Grenadines": "VCT", "Sao Tome and Principe": "STP", "South Georgia and the South Sandwich Islands": "SGS", "Svalbard and Jan Mayen": "SJM", "Trinidad and Tobago": "TTO", "Turks and Caicos Islands": "TCA", "Turks and Caicos": "TCA", "Wallis and Futuna": "WLF", "Saint Helena, Ascension and Tristan da Cunha": "SHN", "Bonaire, Sint Eustatius and Saba": "BES", "United Kingdom of Great Britain and Northern Ireland": "GBR", "Bolivia, Plurinational State of": "BOL", "Bolivia (Plurinational State of)": "BOL", "Brunei Darussalam": "BRN", "Congo, The Democratic Republic of the": "COD", "Congo, Democratic Republic of the": "COD", "Democratic Republic of Congo": "COD", "Falkland Islands (Malvinas)": "FLK", "Holy See (Vatican City State)": "VAT", "Holy See": "VAT", "Iran, Islamic Republic of": "IRN", "Iran (Islamic Republic of)": "IRN", "Islamic Republic of Iran": "IRN", "Korea, Republic of": "KOR", "Republic of Korea": "KOR", "Korea (the Republic of)": "KOR", "Korea, Democratic People's Republic of": "PRK", "Democratic People's Republic of Korea": "PRK", "Korea (the Democratic People's Republic of)": "PRK", "Lao People's Democratic Republic": "LAO", "Micronesia, Federated States of": "FSM", "Micronesia (Federated States of)": "FSM", "Moldova, Republic of": "MDA", "Republic of Moldova": "MDA", "Palestine, State of": "PSE", "State of Palestine": "PSE", "Russian Federation": "RUS", "Syrian Arab Republic": "SYR", "Taiwan, Province of China": "TWN", "Tanzania, United Republic of": "TZA", "United Republic of Tanzania": "TZA", "Venezuela, Bolivarian Republic of": "VEN", "Venezuela (Bolivarian Republic of)": "VEN", "Viet Nam": "VNM", "Virgin Islands, British": "VGB", "Virgin Islands, U.S.": "VIR", "Saint Martin (French part)": "MAF", "Sint Maarten (Dutch part)": "SXM", "Netherlands (Kingdom of the)": "NLD", "Macedonia, the former Yugoslav Republic of": "MKD" });
|
|
624
|
+
var Bn = Object.freeze({ "Antigua and Barbuda": "ATG", "Bosnia and Herzegovina": "BIH", "Heard Island and McDonald Islands": "HMD", "Saint Kitts and Nevis": "KNA", "St Kitts and Nevis": "KNA", "Saint Pierre and Miquelon": "SPM", "St Pierre and Miquelon": "SPM", "Saint Vincent and the Grenadines": "VCT", "St Vincent and the Grenadines": "VCT", "Sao Tome and Principe": "STP", "South Georgia and the South Sandwich Islands": "SGS", "Svalbard and Jan Mayen": "SJM", "Trinidad and Tobago": "TTO", "Turks and Caicos Islands": "TCA", "Turks and Caicos": "TCA", "Wallis and Futuna": "WLF", "Saint Helena, Ascension and Tristan da Cunha": "SHN", "Bonaire, Sint Eustatius and Saba": "BES", "United Kingdom of Great Britain and Northern Ireland": "GBR", "Bolivia, Plurinational State of": "BOL", "Bolivia (Plurinational State of)": "BOL", "Brunei Darussalam": "BRN", "Congo, The Democratic Republic of the": "COD", "Congo, Democratic Republic of the": "COD", "Democratic Republic of Congo": "COD", "Falkland Islands (Malvinas)": "FLK", "Holy See (Vatican City State)": "VAT", "Holy See": "VAT", "Iran, Islamic Republic of": "IRN", "Iran (Islamic Republic of)": "IRN", "Islamic Republic of Iran": "IRN", "Korea, Republic of": "KOR", "Republic of Korea": "KOR", "Korea (the Republic of)": "KOR", "Korea, Democratic People's Republic of": "PRK", "Democratic People's Republic of Korea": "PRK", "Korea (the Democratic People's Republic of)": "PRK", "Lao People's Democratic Republic": "LAO", "Micronesia, Federated States of": "FSM", "Micronesia (Federated States of)": "FSM", "Moldova, Republic of": "MDA", "Republic of Moldova": "MDA", "Palestine, State of": "PSE", "State of Palestine": "PSE", "Russian Federation": "RUS", "Syrian Arab Republic": "SYR", "Taiwan, Province of China": "TWN", "Tanzania, United Republic of": "TZA", "United Republic of Tanzania": "TZA", "Venezuela, Bolivarian Republic of": "VEN", "Venezuela (Bolivarian Republic of)": "VEN", "Viet Nam": "VNM", "Virgin Islands, British": "VGB", "Virgin Islands, U.S.": "VIR", "Saint Martin (French part)": "MAF", "Sint Maarten (Dutch part)": "SXM", "Netherlands (Kingdom of the)": "NLD", "Macedonia, the former Yugoslav Republic of": "MKD", Kosovo: "XKX", "Republic of Kosovo": "XKX" });
|
|
625
625
|
var Z = null;
|
|
626
626
|
var _ = null;
|
|
627
627
|
function ln() {
|
|
@@ -681,7 +681,7 @@ function I(n) {
|
|
|
681
681
|
let t = e.toUpperCase();
|
|
682
682
|
return t.length === 3 && Pn.has(t) ? t : t.length === 2 && Ln.has(t) ? C.get(t) ?? null : On(e);
|
|
683
683
|
}
|
|
684
|
-
var cn = { "north-america": "AG AI AW BB BL BM BQ BS BZ CA CR CU CW DM DO GD GL GP GT HN HT JM KN KY LC MF MQ MS MX NI PA PM PR SV SX TC TT US VC VG VI", "south-america": "AR BO BR CL CO EC FK GF GY PE PY SR UY VE", europe: "AD AL AT AX BA BE BG BY CH CY CZ DE DK EE ES FI FO FR GB GG GI GR HR HU IE IM IS IT JE LI LT LU LV MC MD ME MK MT NL NO PL PT RO RS RU SE SI SJ SK SM UA VA", africa: "AO BF BI BJ BW CD CF CG CI CM CV DJ DZ EG EH ER ET GA GH GM GN GQ GW KE KM LR LS LY MA MG ML MR MU MW MZ NA NE NG RE RW SC SD SH SL SN SO SS ST SZ TD TG TN TZ UG YT ZA ZM ZW", asia: "AE AF AM AZ BD BH BN BT CC CN CX GE HK ID IL IN IO IQ IR JO JP KG KH KP KR KW KZ LA LB LK MM MN MO MV MY NP OM PH PK PS QA SA SG SY TH TJ TL TM TR TW UZ VN YE", oceania: "AS AU CK FJ FM GU KI MH MP NC NF NR NU NZ PF PG PN PW SB TK TO TV UM VU WF WS", antarctica: "AQ BV GS HM TF" };
|
|
684
|
+
var cn = { "north-america": "AG AI AW BB BL BM BQ BS BZ CA CR CU CW DM DO GD GL GP GT HN HT JM KN KY LC MF MQ MS MX NI PA PM PR SV SX TC TT US VC VG VI", "south-america": "AR BO BR CL CO EC FK GF GY PE PY SR UY VE", europe: "AD AL AT AX BA BE BG BY CH CY CZ DE DK EE ES FI FO FR GB GG GI GR HR HU IE IM IS IT JE LI LT LU LV MC MD ME MK MT NL NO PL PT RO RS RU SE SI SJ SK SM UA VA XK", africa: "AO BF BI BJ BW CD CF CG CI CM CV DJ DZ EG EH ER ET GA GH GM GN GQ GW KE KM LR LS LY MA MG ML MR MU MW MZ NA NE NG RE RW SC SD SH SL SN SO SS ST SZ TD TG TN TZ UG YT ZA ZM ZW", asia: "AE AF AM AZ BD BH BN BT CC CN CX GE HK ID IL IN IO IQ IR JO JP KG KH KP KR KW KZ LA LB LK MM MN MO MV MY NP OM PH PK PS QA SA SG SY TH TJ TL TM TR TW UZ VN YE", oceania: "AS AU CK FJ FM GU KI MH MP NC NF NR NU NZ PF PG PN PW SB TK TO TV UM VU WF WS", antarctica: "AQ BV GS HM TF" };
|
|
685
685
|
var E = (() => {
|
|
686
686
|
let n = /* @__PURE__ */ new Map();
|
|
687
687
|
for (let e of Object.keys(cn)) for (let t of cn[e].split(/\s+/)) t && n.set(t, e);
|
|
@@ -703,39 +703,39 @@ function B(n) {
|
|
|
703
703
|
let i = I(String(n));
|
|
704
704
|
return i ? E.get(i) ?? null : null;
|
|
705
705
|
}
|
|
706
|
-
var
|
|
707
|
-
var pn = new Set([...
|
|
708
|
-
var
|
|
709
|
-
var R = ((n) => n[
|
|
710
|
-
var
|
|
706
|
+
var dn = new Set("AE BH CY EG IL IQ IR JO KW LB OM PS QA SA SY TR YE".split(" "));
|
|
707
|
+
var pn = new Set([...dn].map((n) => C.get(n)).filter((n) => !!n));
|
|
708
|
+
var Xn = /* @__PURE__ */ Symbol.for("@bicharts/shape-core/admin1-lookup/v1");
|
|
709
|
+
var R = ((n) => n[Xn] ??= { lookup: null })(globalThis);
|
|
710
|
+
var Vn = (() => {
|
|
711
711
|
let n = /* @__PURE__ */ new Map();
|
|
712
712
|
return C.forEach((e, t) => n.set(e, t)), n;
|
|
713
713
|
})();
|
|
714
714
|
function bt(n) {
|
|
715
715
|
if (!n || typeof n.cities != "string" || typeof n.admin1 != "string") throw new Error("admin1 lookup: not a lookup document");
|
|
716
716
|
if (R.lookup && R.lookup.version === n.version) return { cities: R.lookup.cityCount, admin1: R.lookup.admin1Count };
|
|
717
|
-
let e = /* @__PURE__ */ new Map(), t = (
|
|
718
|
-
if (!
|
|
719
|
-
let p3 = e.get(
|
|
720
|
-
p3 ? p3.push(s2) : e.set(
|
|
717
|
+
let e = /* @__PURE__ */ new Map(), t = (f2, s2) => {
|
|
718
|
+
if (!f2) return;
|
|
719
|
+
let p3 = e.get(f2);
|
|
720
|
+
p3 ? p3.push(s2) : e.set(f2, [s2]);
|
|
721
721
|
}, i = 0;
|
|
722
|
-
for (let
|
|
722
|
+
for (let f2 of n.cities.split(`
|
|
723
723
|
`)) {
|
|
724
|
-
let s2 =
|
|
724
|
+
let s2 = f2.split("|");
|
|
725
725
|
if (s2.length < 6) continue;
|
|
726
726
|
let p3 = { cc: s2[1], a1: s2[2], popK: +s2[3] || 0, lat: +s2[4], lon: +s2[5], pid: s2[7] || "" };
|
|
727
727
|
t(s2[0], { ...p3, primary: true });
|
|
728
728
|
for (let S of (s2[6] || "").split(";")) t(S, { ...p3, primary: false });
|
|
729
729
|
i++;
|
|
730
730
|
}
|
|
731
|
-
let o2 = /* @__PURE__ */ new Map(), r2 = /* @__PURE__ */ new Map(), a3 = (
|
|
732
|
-
if (!
|
|
733
|
-
let p3 = r2.get(
|
|
734
|
-
p3 ? p3.includes(s2) || p3.push(s2) : r2.set(
|
|
731
|
+
let o2 = /* @__PURE__ */ new Map(), r2 = /* @__PURE__ */ new Map(), a3 = (f2, s2) => {
|
|
732
|
+
if (!f2) return;
|
|
733
|
+
let p3 = r2.get(f2);
|
|
734
|
+
p3 ? p3.includes(s2) || p3.push(s2) : r2.set(f2, [s2]);
|
|
735
735
|
}, l2 = 0;
|
|
736
|
-
for (let
|
|
736
|
+
for (let f2 of n.admin1.split(`
|
|
737
737
|
`)) {
|
|
738
|
-
let s2 =
|
|
738
|
+
let s2 = f2.split("|");
|
|
739
739
|
if (!(s2.length < 2 || !s2[0].includes("."))) {
|
|
740
740
|
o2.set(s2[0], s2[1]), a3(s2[1], s2[0]);
|
|
741
741
|
for (let p3 of (s2[2] || "").split(";")) a3(p3, s2[0]);
|
|
@@ -743,28 +743,28 @@ function bt(n) {
|
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
745
|
let u3 = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Set();
|
|
746
|
-
for (let
|
|
746
|
+
for (let f2 of (n.crosswalk || "").split(`
|
|
747
747
|
`)) {
|
|
748
|
-
let [s2, p3] =
|
|
748
|
+
let [s2, p3] = f2.split("|");
|
|
749
749
|
s2 && p3 && (u3.set(s2, p3), c.add(p3));
|
|
750
750
|
}
|
|
751
|
-
e.forEach((
|
|
751
|
+
e.forEach((f2) => f2.forEach((s2) => {
|
|
752
752
|
s2.pid && c.add(s2.pid);
|
|
753
753
|
}));
|
|
754
|
-
let
|
|
755
|
-
for (let
|
|
754
|
+
let d2 = /* @__PURE__ */ new Map();
|
|
755
|
+
for (let f2 of (n.centers || "").split(`
|
|
756
756
|
`)) {
|
|
757
|
-
let [s2, p3, S] =
|
|
758
|
-
s2 && isFinite(+p3) && isFinite(+S) && p3 !== "" && S !== "" && (
|
|
757
|
+
let [s2, p3, S] = f2.split("|");
|
|
758
|
+
s2 && isFinite(+p3) && isFinite(+S) && p3 !== "" && S !== "" && (d2.set(s2, [+p3, +S]), c.add(s2));
|
|
759
759
|
}
|
|
760
|
-
return R.lookup = { version: n.version, cityByKey: e, admin1ByCode: o2, admin1ByKey: r2, provinceOfCode: u3, provinceIds: c, centers:
|
|
760
|
+
return R.lookup = { version: n.version, cityByKey: e, admin1ByCode: o2, admin1ByKey: r2, provinceOfCode: u3, provinceIds: c, centers: d2, cityCount: i, admin1Count: l2 }, { cities: i, admin1: l2 };
|
|
761
761
|
}
|
|
762
762
|
function W2() {
|
|
763
763
|
return R.lookup !== null;
|
|
764
764
|
}
|
|
765
765
|
function mn(n) {
|
|
766
766
|
let e = I(n);
|
|
767
|
-
return e ?
|
|
767
|
+
return e ? Vn.get(e) ?? null : null;
|
|
768
768
|
}
|
|
769
769
|
var Yn = 10;
|
|
770
770
|
function Mn(n, e = {}) {
|
|
@@ -772,13 +772,13 @@ function Mn(n, e = {}) {
|
|
|
772
772
|
let t = g3(String(n)), i = R.lookup.cityByKey.get(t);
|
|
773
773
|
if (!i || i.length === 0) return { status: "unmatched" };
|
|
774
774
|
let o2 = e.country ? mn(e.country) : null;
|
|
775
|
-
if (e.country && o2 ? i = i.filter((
|
|
776
|
-
let r2 = i.filter((
|
|
777
|
-
for (let
|
|
778
|
-
let
|
|
779
|
-
l2.has(
|
|
775
|
+
if (e.country && o2 ? i = i.filter((d2) => d2.cc === o2) : e.region && (i = i.filter((d2) => B(d2.cc) === e.region)), i.length === 0) return { status: "unmatched" };
|
|
776
|
+
let r2 = i.filter((d2) => d2.primary), a3 = r2.length > 0 ? r2 : i, l2 = /* @__PURE__ */ new Map();
|
|
777
|
+
for (let d2 of a3) {
|
|
778
|
+
let f2 = `${d2.cc}|${d2.a1}|${d2.lat}|${d2.lon}`;
|
|
779
|
+
l2.has(f2) || l2.set(f2, d2);
|
|
780
780
|
}
|
|
781
|
-
let u3 = [...l2.values()].sort((
|
|
781
|
+
let u3 = [...l2.values()].sort((d2, f2) => f2.popK - d2.popK), c = u3[0];
|
|
782
782
|
return u3.length === 1 || c.popK >= Yn * Math.max(u3[1].popK, 1) ? !c.a1 && !c.pid ? { status: "unmatched" } : { status: "resolved", cc: c.cc, admin1: c.a1, code: `${c.cc}.${c.a1}`, provinceId: c.pid || null, lat: c.lat, lon: c.lon, popK: c.popK } : { status: "ambiguous", candidates: u3.length };
|
|
783
783
|
}
|
|
784
784
|
function vn(n, e) {
|
|
@@ -789,7 +789,7 @@ function vn(n, e) {
|
|
|
789
789
|
function Zn(n) {
|
|
790
790
|
return !R.lookup || !n ? null : R.lookup.provinceOfCode.get(n) ?? null;
|
|
791
791
|
}
|
|
792
|
-
function
|
|
792
|
+
function Gt(n) {
|
|
793
793
|
return !R.lookup || !n ? false : R.lookup.provinceIds.has(String(n).trim().toUpperCase());
|
|
794
794
|
}
|
|
795
795
|
function gn(n) {
|
|
@@ -814,18 +814,18 @@ function nn(n, e) {
|
|
|
814
814
|
let t = n.filter((i) => i.row.kinds.includes(_n[e || "north-america"]));
|
|
815
815
|
return t.length ? t : (e || "north-america") === "world" ? n : t;
|
|
816
816
|
}
|
|
817
|
-
var
|
|
818
|
-
function
|
|
819
|
-
n !==
|
|
817
|
+
var X = a;
|
|
818
|
+
function Ot(n) {
|
|
819
|
+
n !== X && (X = n || "", D = null, x2 = null, H2 = null, k = null, F = null);
|
|
820
820
|
}
|
|
821
821
|
function Wn() {
|
|
822
|
-
return
|
|
822
|
+
return X.length > 0;
|
|
823
823
|
}
|
|
824
824
|
var zn = { US: "washington", CA: "ottawa", MX: "mexico city", GB: "london", FR: "paris", DE: "berlin", IT: "rome", ES: "madrid", PT: "lisbon", NL: "amsterdam", BE: "brussels", CH: "bern", AT: "vienna", IE: "dublin", PL: "warsaw", SE: "stockholm", NO: "oslo", DK: "copenhagen", FI: "helsinki", IS: "reykjavik", CZ: "prague", SK: "bratislava", HU: "budapest", RO: "bucharest", BG: "sofia", GR: "athens", TR: "ankara", UA: "kyiv", RU: "moscow", RS: "belgrade", HR: "zagreb", SI: "ljubljana", EE: "tallinn", LV: "riga", LT: "vilnius", JP: "tokyo", CN: "beijing", KR: "seoul", KP: "pyongyang", IN: "new delhi", PK: "islamabad", BD: "dhaka", LK: "colombo", TH: "bangkok", VN: "hanoi", PH: "manila", ID: "jakarta", MY: "kuala lumpur", SG: "singapore", MM: "naypyidaw", KH: "phnom penh", LA: "vientiane", NP: "kathmandu", AF: "kabul", IR: "tehran", IQ: "baghdad", SA: "riyadh", AE: "abu dhabi", QA: "doha", KW: "kuwait city", BH: "manama", OM: "muscat", JO: "amman", LB: "beirut", SY: "damascus", IL: "jerusalem", YE: "sanaa", EG: "cairo", LY: "tripoli", TN: "tunis", DZ: "algiers", MA: "rabat", SD: "khartoum", ET: "addis ababa", KE: "nairobi", TZ: "dodoma", UG: "kampala", NG: "abuja", GH: "accra", CI: "yamoussoukro", SN: "dakar", ML: "bamako", CM: "yaounde", CD: "kinshasa", CG: "brazzaville", AO: "luanda", ZM: "lusaka", ZW: "harare", MZ: "maputo", BW: "gaborone", NA: "windhoek", ZA: "pretoria", AU: "canberra", NZ: "wellington", PG: "port moresby", FJ: "suva", BR: "brasilia", AR: "buenos aires", CL: "santiago", PE: "lima", CO: "bogota", VE: "caracas", EC: "quito", BO: "la paz", PY: "asuncion", UY: "montevideo", GY: "georgetown", SR: "paramaribo", CU: "havana", DO: "santo domingo", HT: "port au prince", JM: "kingston", TT: "port of spain", PA: "panama city", CR: "san jose", NI: "managua", HN: "tegucigalpa", SV: "san salvador", GT: "guatemala city", BZ: "belmopan", AZ: "baku", AM: "yerevan", GE: "tbilisi", KZ: "astana", UZ: "tashkent", TM: "ashgabat", KG: "bishkek", TJ: "dushanbe", MN: "ulaanbaatar", BY: "minsk", MD: "chisinau", AL: "tirana", MK: "skopje", BA: "sarajevo", ME: "podgorica", XK: "pristina", CY: "nicosia", MT: "valletta", LU: "luxembourg" };
|
|
825
825
|
var D = null;
|
|
826
826
|
function K2() {
|
|
827
827
|
if (D) return D;
|
|
828
|
-
let n = /* @__PURE__ */ new Map(), e =
|
|
828
|
+
let n = /* @__PURE__ */ new Map(), e = X, t = (i, o2, r2) => {
|
|
829
829
|
if (!i) return;
|
|
830
830
|
let a3 = n.get(i);
|
|
831
831
|
a3 ? a3.some((l2) => l2.row === o2) || a3.push({ row: o2, primary: r2 }) : n.set(i, [{ row: o2, primary: r2 }]);
|
|
@@ -853,7 +853,7 @@ function yn() {
|
|
|
853
853
|
}
|
|
854
854
|
return x2 = n, n;
|
|
855
855
|
}
|
|
856
|
-
function
|
|
856
|
+
function V(n, e) {
|
|
857
857
|
if (!n) return;
|
|
858
858
|
let t = Sn(K2(), yn(), n);
|
|
859
859
|
if (t) return t;
|
|
@@ -871,13 +871,13 @@ function Sn(n, e, t) {
|
|
|
871
871
|
}
|
|
872
872
|
var H2 = null;
|
|
873
873
|
function Qn() {
|
|
874
|
-
return H2 || (H2 =
|
|
874
|
+
return H2 || (H2 = Nn(K2())), H2;
|
|
875
875
|
}
|
|
876
876
|
var k = null;
|
|
877
877
|
function jn() {
|
|
878
|
-
return k || (k =
|
|
878
|
+
return k || (k = Nn(yn())), k;
|
|
879
879
|
}
|
|
880
|
-
function
|
|
880
|
+
function Nn(n) {
|
|
881
881
|
let e = /* @__PURE__ */ new Map();
|
|
882
882
|
for (let [t, i] of n) {
|
|
883
883
|
let o2 = l(t);
|
|
@@ -895,11 +895,12 @@ function bn(n) {
|
|
|
895
895
|
for (let t of e.values()) t.sort((i, o2) => o2.row.pop - i.row.pop);
|
|
896
896
|
return e;
|
|
897
897
|
}
|
|
898
|
+
var $n = "XKX|21.17|42.67";
|
|
898
899
|
var F = null;
|
|
899
|
-
function
|
|
900
|
+
function qn() {
|
|
900
901
|
if (F) return F;
|
|
901
902
|
let n = /* @__PURE__ */ new Map();
|
|
902
|
-
for (let t of an
|
|
903
|
+
for (let t of `${$n},${an}`.split(",")) {
|
|
903
904
|
let i = t.split("|");
|
|
904
905
|
i.length < 3 || n.set(i[0], { lon: +i[1], lat: +i[2] });
|
|
905
906
|
}
|
|
@@ -927,14 +928,14 @@ function Y2() {
|
|
|
927
928
|
return J = n, n;
|
|
928
929
|
}
|
|
929
930
|
var Q2 = null;
|
|
930
|
-
function
|
|
931
|
+
function nt() {
|
|
931
932
|
if (Q2) return Q2;
|
|
932
933
|
let n = new a2();
|
|
933
934
|
for (let [e, t] of Y2()) n.add(e, t);
|
|
934
935
|
return Q2 = n, n;
|
|
935
936
|
}
|
|
936
937
|
var j2 = null;
|
|
937
|
-
function
|
|
938
|
+
function tt2() {
|
|
938
939
|
if (j2) return j2;
|
|
939
940
|
let n = /* @__PURE__ */ new Map();
|
|
940
941
|
for (let e of rn.split(",")) {
|
|
@@ -943,26 +944,26 @@ function nt() {
|
|
|
943
944
|
}
|
|
944
945
|
return j2 = n, n;
|
|
945
946
|
}
|
|
946
|
-
var
|
|
947
|
-
var
|
|
947
|
+
var et = /* @__PURE__ */ new Set(["USA", "PRI", "VIR", "GUM", "ASM", "MNP"]);
|
|
948
|
+
var bn = /* @__PURE__ */ new Set(["USA", "CAN", "MEX"]);
|
|
948
949
|
function Rn(n, e) {
|
|
949
|
-
return e !== "north-america" || !!n &&
|
|
950
|
+
return e !== "north-america" || !!n && bn.has(n);
|
|
950
951
|
}
|
|
951
952
|
function An(n) {
|
|
952
953
|
if (n == null) return null;
|
|
953
954
|
let e = g3(String(n));
|
|
954
955
|
if (!e) return null;
|
|
955
956
|
let t = Y2().get(e);
|
|
956
|
-
return t ? t.key : T2(e) ? null :
|
|
957
|
+
return t ? t.key : T2(e) ? null : nt().get(h2(String(n)))?.key ?? null;
|
|
957
958
|
}
|
|
958
|
-
function
|
|
959
|
+
function ot(n) {
|
|
959
960
|
return Y2().get(g3(n))?.cc ?? null;
|
|
960
961
|
}
|
|
961
|
-
function
|
|
962
|
-
let e =
|
|
962
|
+
function rt(n) {
|
|
963
|
+
let e = ot(n);
|
|
963
964
|
return e ? L2(e) : null;
|
|
964
965
|
}
|
|
965
|
-
function
|
|
966
|
+
function at(n) {
|
|
966
967
|
if (n == null) return null;
|
|
967
968
|
let e = String(n).trim().replace(/\.0+$/, "");
|
|
968
969
|
if (!e) return null;
|
|
@@ -977,13 +978,13 @@ function Gn(n) {
|
|
|
977
978
|
let i = e.padStart(5, "0").slice(0, 3);
|
|
978
979
|
return i === e ? [e] : [e, i];
|
|
979
980
|
}
|
|
980
|
-
let t =
|
|
981
|
+
let t = at(e);
|
|
981
982
|
return t ? [t.slice(0, 3)] : [];
|
|
982
983
|
}
|
|
983
|
-
function
|
|
984
|
+
function st(n) {
|
|
984
985
|
return !!n && n.ambiguous === true && !("precision" in n);
|
|
985
986
|
}
|
|
986
|
-
function
|
|
987
|
+
function lt(n) {
|
|
987
988
|
let e = null, t = typeof n.lat == "string" ? n.lat.trim() : n.lat, i = typeof n.lon == "string" ? n.lon.trim() : n.lon;
|
|
988
989
|
if (t != null && t !== "" && i !== void 0 && i !== null && i !== "") {
|
|
989
990
|
let a3 = +t, l2 = +i;
|
|
@@ -991,15 +992,15 @@ function st(n) {
|
|
|
991
992
|
else return { lat: a3, lon: l2, precision: "latlon" };
|
|
992
993
|
}
|
|
993
994
|
let o2 = I(n.country), r2 = An(n.state);
|
|
994
|
-
if (r2 && o2 &&
|
|
995
|
-
let a3 = g3(String(n.city)), l2 =
|
|
995
|
+
if (r2 && o2 && rt(r2) !== o2 && (r2 = null), r2 && n.region && n.region !== "north-america" && (r2 = null), n.city !== void 0 && n.city !== null) {
|
|
996
|
+
let a3 = g3(String(n.city)), l2 = V(a3, h2(String(n.city))), u3 = l2 ? nn(l2, n.mapKind) : null;
|
|
996
997
|
if (u3 && u3.length) {
|
|
997
|
-
let c = n.state === void 0 || n.state === null ? "" : String(n.state).trim(),
|
|
998
|
+
let c = n.state === void 0 || n.state === null ? "" : String(n.state).trim(), d2 = c ? g3(c) : "", f2 = c ? An(c) : null, s2 = [], p3 = -1;
|
|
998
999
|
for (let M2 of u3) {
|
|
999
|
-
let
|
|
1000
|
-
if (c &&
|
|
1000
|
+
let N2 = M2.row, m2 = 0;
|
|
1001
|
+
if (c && N2.a1 !== "") if (f2 && N2.a1 === f2 || g3(N2.a1) === d2) m2++;
|
|
1001
1002
|
else continue;
|
|
1002
|
-
if (o2) if (L2(
|
|
1003
|
+
if (o2) if (L2(N2.cc) === o2) m2++;
|
|
1003
1004
|
else continue;
|
|
1004
1005
|
m2 > p3 ? (p3 = m2, s2 = [M2]) : m2 === p3 && s2.push(M2);
|
|
1005
1006
|
}
|
|
@@ -1016,13 +1017,13 @@ function st(n) {
|
|
|
1016
1017
|
let c = Mn(String(n.city), { country: n.country ?? null, region: n.region ?? null });
|
|
1017
1018
|
if (c.status === "ambiguous") return { ambiguous: true, matches: c.candidates };
|
|
1018
1019
|
if (c.status === "resolved" && Rn(L2(c.cc), n.mapKind)) {
|
|
1019
|
-
let
|
|
1020
|
-
if (!
|
|
1020
|
+
let d2 = n.state === void 0 || n.state === null ? "" : String(n.state).trim(), f2 = d2 ? z(d2, { country: n.country ?? null, region: n.region ?? null }) : null;
|
|
1021
|
+
if (!f2 || f2.status === "resolved" && f2.provinceId === c.provinceId) return { lat: c.lat, lon: c.lon, precision: "city" };
|
|
1021
1022
|
}
|
|
1022
1023
|
}
|
|
1023
1024
|
}
|
|
1024
|
-
if (!o2 ||
|
|
1025
|
-
let l2 =
|
|
1025
|
+
if (!o2 || et.has(o2)) for (let a3 of Gn(n.zip)) {
|
|
1026
|
+
let l2 = tt2().get(a3);
|
|
1026
1027
|
if (l2) return { lat: l2.lat, lon: l2.lon, precision: "zip3" };
|
|
1027
1028
|
}
|
|
1028
1029
|
if (r2) {
|
|
@@ -1037,24 +1038,24 @@ function st(n) {
|
|
|
1037
1038
|
if (u3 && (!o2 || l2 === o2) && Rn(l2, n.mapKind)) return { lat: u3[1], lon: u3[0], precision: "state" };
|
|
1038
1039
|
}
|
|
1039
1040
|
}
|
|
1040
|
-
if (o2 && (n.mapKind !== "north-america" ||
|
|
1041
|
-
let a3 =
|
|
1041
|
+
if (o2 && (n.mapKind !== "north-america" || bn.has(o2))) {
|
|
1042
|
+
let a3 = qn().get(o2);
|
|
1042
1043
|
if (a3) return { lat: a3.lat, lon: a3.lon, precision: "country" };
|
|
1043
1044
|
}
|
|
1044
1045
|
return e;
|
|
1045
1046
|
}
|
|
1046
1047
|
var w2 = { latlon: 0, city: 1, zip3: 2, state: 3, country: 4 };
|
|
1047
1048
|
var Cn = 8;
|
|
1048
|
-
function
|
|
1049
|
-
let i = new Array(n.length), o2 = new Array(n.length), r2 = new Array(n.length), a3 = /* @__PURE__ */ new Set(), l2 = [], u3 = /* @__PURE__ */ new Set(), c = [],
|
|
1049
|
+
function xt(n, e, t) {
|
|
1050
|
+
let i = new Array(n.length), o2 = new Array(n.length), r2 = new Array(n.length), a3 = /* @__PURE__ */ new Set(), l2 = [], u3 = /* @__PURE__ */ new Set(), c = [], d2 = /* @__PURE__ */ new Set(), f2 = [], s2 = { latlon: 0, city: 0, zip3: 0, state: 0, country: 0 }, p3 = 0, S = 0, M2 = null;
|
|
1050
1051
|
for (let m2 = 0; m2 < n.length; ++m2) {
|
|
1051
|
-
let O2 = n[m2],
|
|
1052
|
-
if (
|
|
1052
|
+
let O2 = n[m2], b2 = lt({ ...O2, mapKind: e, region: t });
|
|
1053
|
+
if (st(b2)) {
|
|
1053
1054
|
i[m2] = null, o2[m2] = null, r2[m2] = null, S++;
|
|
1054
1055
|
let A2 = q(O2);
|
|
1055
|
-
A2 && !
|
|
1056
|
-
} else if (
|
|
1057
|
-
if (i[m2] =
|
|
1056
|
+
A2 && !d2.has(A2.toLowerCase()) && (d2.add(A2.toLowerCase()), f2.length < Cn && f2.push(A2));
|
|
1057
|
+
} else if (b2) {
|
|
1058
|
+
if (i[m2] = b2.lat, o2[m2] = b2.lon, r2[m2] = b2.precision, p3++, s2[b2.precision]++, (M2 === null || w2[b2.precision] > w2[M2]) && (M2 = b2.precision), w2[b2.precision] > w2.city) {
|
|
1058
1059
|
let A2 = q(O2);
|
|
1059
1060
|
A2 && !u3.has(A2.toLowerCase()) && (u3.add(A2.toLowerCase()), c.length < Cn && c.push(A2));
|
|
1060
1061
|
}
|
|
@@ -1064,29 +1065,29 @@ function Dt(n, e, t) {
|
|
|
1064
1065
|
A2 && !a3.has(A2.toLowerCase()) && (a3.add(A2.toLowerCase()), l2.push(A2));
|
|
1065
1066
|
}
|
|
1066
1067
|
}
|
|
1067
|
-
let
|
|
1068
|
-
return { lat: i, lon: o2, precisions: r2, precision: M2, precisionCounts: s2, coarseExamples: c, unmatched: l2, ambiguousRows: S, ambiguousExamples:
|
|
1068
|
+
let N2 = !Wn() && n.some((m2) => m2.city !== null && m2.city !== void 0 && String(m2.city).trim() !== "");
|
|
1069
|
+
return { lat: i, lon: o2, precisions: r2, precision: M2, precisionCounts: s2, coarseExamples: c, unmatched: l2, ambiguousRows: S, ambiguousExamples: f2, matchedRows: p3, totalRows: n.length, ...N2 ? { cityTableMissing: true } : {} };
|
|
1069
1070
|
}
|
|
1070
1071
|
function q(n) {
|
|
1071
1072
|
let e = [n.city, n.state, n.zip, n.country].filter((t) => t != null && String(t).trim() !== "").map((t) => String(t).trim()).join(", ");
|
|
1072
1073
|
return e || (n.label === null || n.label === void 0 ? "" : String(n.label).trim());
|
|
1073
1074
|
}
|
|
1074
|
-
function
|
|
1075
|
+
function kt(n, e) {
|
|
1075
1076
|
if (!n) return false;
|
|
1076
|
-
let t =
|
|
1077
|
+
let t = V(n);
|
|
1077
1078
|
return t ? nn(t, e).length > 0 : false;
|
|
1078
1079
|
}
|
|
1079
1080
|
|
|
1080
|
-
// ../shape-core/dist/chunk-
|
|
1081
|
+
// ../shape-core/dist/chunk-YDYFP2T4.mjs
|
|
1081
1082
|
/*! @bicharts/shape-core — Apache-2.0. Bundled reference data: GeoNames (https://www.geonames.org/) CC BY 4.0; US Census/TIGER (public domain). Full text: NOTICE in this package. */
|
|
1082
1083
|
var An2 = "006007008009010011012013014015016017018019020021022023024025026027028029030031032033034035036037038039040041042043044045046047048049050051052053054056057058059060061062063064065066067068069070071072073074075076077078079080081082083084085086087088089100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191193194195196197198199200201202203204205206207208209210211212214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310312313314315316317318319320321322323324325326327328329330331333334335336337338339341342344346347349350351352354355356357358359360361362363364365366367368369370371372373374376377378379380381382383384385386387388389390391392393394395396397398400401402403404405406407408409410411412413414415416417418420421422423424425426427430431432433434435436437438439440441442443444445446447448449450451452453454455456457458460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508510511512513514515516520521522523524525526527528530531532534535537538539540541542543544545546547548549550551553554556557558559560561562563564565566567570571572573574575576577580581582583584585586587588590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620622623624625626627628629630631633634635636637638639640641644645646647648650651652653654655656657658660661662664665666667668669670671672673674675676677678679680681683684685686687688689690691692693700701703704705706707708710711712713714716717718719720721722723724725726727728729730731734735736737738739740741743744745746747748749750751752753754755756757758759760761762763764765766767768769770772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816820821822823824825826827828829830831832833834835836837838840841843844845846847850851852853855856857859860863864865870871873874875877878879880881882883884890891893894895897898900902903904905906907908910911912913914915916917918919920921922923924925926927928930931932933934935936937939940941943944945946947948949950951952953954955956957958959960961967968969970971972973974975976977978979980981982983984985986988989990991992993994995996997998999";
|
|
1083
1084
|
var w3 = new Set(An2.match(/.{3}/g) ?? []);
|
|
1084
|
-
var
|
|
1085
|
-
var pn2 = new Set(
|
|
1085
|
+
var dn2 = [["AL", "Alabama"], ["AK", "Alaska"], ["AZ", "Arizona"], ["AR", "Arkansas"], ["CA", "California"], ["CO", "Colorado"], ["CT", "Connecticut"], ["DE", "Delaware"], ["FL", "Florida"], ["GA", "Georgia"], ["HI", "Hawaii"], ["ID", "Idaho"], ["IL", "Illinois"], ["IN", "Indiana"], ["IA", "Iowa"], ["KS", "Kansas"], ["KY", "Kentucky"], ["LA", "Louisiana"], ["ME", "Maine"], ["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"], ["OH", "Ohio"], ["OK", "Oklahoma"], ["OR", "Oregon"], ["PA", "Pennsylvania"], ["RI", "Rhode Island"], ["SC", "South Carolina"], ["SD", "South Dakota"], ["TN", "Tennessee"], ["TX", "Texas"], ["UT", "Utah"], ["VT", "Vermont"], ["VA", "Virginia"], ["WA", "Washington"], ["WV", "West Virginia"], ["WI", "Wisconsin"], ["WY", "Wyoming"], ["DC", "District of Columbia"], ["PR", "Puerto Rico"], ["GU", "Guam"], ["VI", "U.S. Virgin Islands"], ["AS", "American Samoa"], ["MP", "Northern Mariana Islands"]];
|
|
1086
|
+
var pn2 = new Set(dn2.map((n) => n[0]));
|
|
1086
1087
|
var Cn2 = { "Ala.": "AL", "Alab.": "AL", "Ariz.": "AZ", "Ark.": "AR", "Calif.": "CA", "Cal.": "CA", "Colo.": "CO", "Col.": "CO", "Conn.": "CT", "Del.": "DE", "Fla.": "FL", "Flor.": "FL", "Ga.": "GA", "Ill.": "IL", "Ind.": "IN", "Kan.": "KS", "Kans.": "KS", "Ky.": "KY", "La.": "LA", "Md.": "MD", "Mass.": "MA", "Mich.": "MI", "Minn.": "MN", "Miss.": "MS", "Mo.": "MO", "Mont.": "MT", "Neb.": "NE", "Nebr.": "NE", "Nev.": "NV", "N.H.": "NH", "N.J.": "NJ", "N.M.": "NM", "N.Mex.": "NM", "N. Mex.": "NM", "N.Y.": "NY", "N.C.": "NC", "N.D.": "ND", "N.Dak.": "ND", "N. Dak.": "ND", "Okla.": "OK", "Ore.": "OR", "Oreg.": "OR", "Pa.": "PA", "Penn.": "PA", "Penna.": "PA", "R.I.": "RI", "S.C.": "SC", "S.D.": "SD", "S.Dak.": "SD", "S. Dak.": "SD", "Tenn.": "TN", "Tex.": "TX", "Vt.": "VT", "Va.": "VA", "Wash.": "WA", "W.Va.": "WV", "W. Va.": "WV", "Wis.": "WI", "Wisc.": "WI", "Wyo.": "WY", "D.C.": "DC", "Wash. D.C.": "DC", "Wash., D.C.": "DC", "P.R.": "PR", "V.I.": "VI" };
|
|
1087
1088
|
var Y3 = (() => {
|
|
1088
1089
|
let n = /* @__PURE__ */ new Map();
|
|
1089
|
-
for (let [s2, o2] of
|
|
1090
|
+
for (let [s2, o2] of dn2) n.set(g4(o2), s2);
|
|
1090
1091
|
n.set(g4("Washington DC"), "DC"), n.set(g4("Washington D.C."), "DC"), n.set(g4("US Virgin Islands"), "VI");
|
|
1091
1092
|
for (let [s2, o2] of Object.entries(Cn2)) {
|
|
1092
1093
|
let r2 = g4(s2);
|
|
@@ -1110,7 +1111,7 @@ function yn2(n) {
|
|
|
1110
1111
|
function g4(n) {
|
|
1111
1112
|
return g3(n);
|
|
1112
1113
|
}
|
|
1113
|
-
var
|
|
1114
|
+
var fn = /* @__PURE__ */ new Set(["zip", "zipcode", "postal", "postcode", "plz"]);
|
|
1114
1115
|
function y2(n, s2) {
|
|
1115
1116
|
if (!n) return false;
|
|
1116
1117
|
for (let o2 of g2(n)) if (s2.has(o2)) return true;
|
|
@@ -1131,7 +1132,7 @@ function En2(n, s2) {
|
|
|
1131
1132
|
return pn2.has(r2) ? r2 : mn2(o2);
|
|
1132
1133
|
}
|
|
1133
1134
|
case "us-zip5":
|
|
1134
|
-
return
|
|
1135
|
+
return at(o2);
|
|
1135
1136
|
case "us-county-fips":
|
|
1136
1137
|
return /^\d{5}$/.test(o2) && Sn2.has(o2.slice(0, 2)) ? o2 : null;
|
|
1137
1138
|
default:
|
|
@@ -1174,7 +1175,7 @@ function Fn(n, s2) {
|
|
|
1174
1175
|
return { iso: o2, unmatched: I3, matchedRows: N2, totalRows: n.length };
|
|
1175
1176
|
}
|
|
1176
1177
|
|
|
1177
|
-
// ../shape-core/dist/chunk-
|
|
1178
|
+
// ../shape-core/dist/chunk-O6A7HGFH.mjs
|
|
1178
1179
|
var import_papaparse = __toESM(require_papaparse_min(), 1);
|
|
1179
1180
|
/*! @bicharts/shape-core — Apache-2.0. Bundled reference data: GeoNames (https://www.geonames.org/) CC BY 4.0; US Census/TIGER (public domain). Full text: NOTICE in this package. */
|
|
1180
1181
|
function Ct(t, e, n) {
|
|
@@ -1183,7 +1184,7 @@ function Ct(t, e, n) {
|
|
|
1183
1184
|
return s2 ? "US-" + s2 : null;
|
|
1184
1185
|
}
|
|
1185
1186
|
if (!W2()) return null;
|
|
1186
|
-
if (e === "admin1-code") return
|
|
1187
|
+
if (e === "admin1-code") return Gt(t) ? t.toUpperCase() : null;
|
|
1187
1188
|
let i = n == null ? null : String(n), r2 = new Set(vn(t, i).map(Zn).filter((s2) => !!s2));
|
|
1188
1189
|
return r2.size === 1 ? [...r2][0] : null;
|
|
1189
1190
|
}
|
|
@@ -1242,7 +1243,7 @@ function We(t) {
|
|
|
1242
1243
|
return [...t].sort((e, n) => n.length - e.length).map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&").replace(/\s+/g, "\\s+")).join("|");
|
|
1243
1244
|
}
|
|
1244
1245
|
var Nt = new RegExp("^\\s*(?:(?:sum|count|count\\s+distinct|distinct\\s+count)\\s+of\\s+|(?:" + We(Et) + ")\\s+)", "i");
|
|
1245
|
-
function
|
|
1246
|
+
function It(t) {
|
|
1246
1247
|
for (let e of t) {
|
|
1247
1248
|
let n = e.codePointAt(0) ?? 0;
|
|
1248
1249
|
if (n >= 11904 && n <= 40959 || n >= 44032 && n <= 55215) return true;
|
|
@@ -1250,12 +1251,12 @@ function It2(t) {
|
|
|
1250
1251
|
return false;
|
|
1251
1252
|
}
|
|
1252
1253
|
var Nn2 = "[\u2013\u2014-]";
|
|
1253
|
-
function
|
|
1254
|
-
let e = t.filter((r2) => !
|
|
1254
|
+
function kt2(t) {
|
|
1255
|
+
let e = t.filter((r2) => !It(r2)), n = t.filter(It), i = [];
|
|
1255
1256
|
return e.length && i.push("(?:\\s+|\\s*" + Nn2 + "\\s*)(" + We(e) + ")"), n.length && i.push("\\s*(" + We(n) + ")"), new RegExp("(?:" + i.join("|") + ")\\s*$", "i");
|
|
1256
1257
|
}
|
|
1257
|
-
var $e =
|
|
1258
|
-
var kn2 =
|
|
1258
|
+
var $e = kt2(Rn3);
|
|
1259
|
+
var kn2 = kt2(En3);
|
|
1259
1260
|
function Ce(t, e) {
|
|
1260
1261
|
let n = e.exec(t);
|
|
1261
1262
|
if (!n) return null;
|
|
@@ -1278,9 +1279,9 @@ function Ln2(t) {
|
|
|
1278
1279
|
return Nt.test(e) || Ce(e, $e) !== null;
|
|
1279
1280
|
}
|
|
1280
1281
|
var Fn2 = ["count (distinct)", "count distinct", "distinct count", "standard deviation", "average", "variance", "median", "product", "stddev", "std dev", "count", "sum", "avg", "min", "minimum", "max", "maximum", "var"];
|
|
1281
|
-
var
|
|
1282
|
+
var Rt2 = new RegExp("^\\s*(" + [...Fn2].sort((t, e) => e.length - t.length).map((t) => t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&").replace(/\s+/g, "\\s+")).join("|") + ")\\s+of\\s+", "i");
|
|
1282
1283
|
var we = { Sum: ["Sum of "], Avg: ["Average of "], Average: ["Average of "], Count: ["Count of "], CountNonNull: ["Count of "], Min: ["Min of ", "First ", "Earliest "], Max: ["Max of ", "Last ", "Latest "], Median: ["Median of "], StandardDeviation: ["Standard deviation of "], Variance: ["Variance of "] };
|
|
1283
|
-
var
|
|
1284
|
+
var Ot2 = new RegExp("^(" + Object.keys(we).join("|") + ")\\((.+)\\)$");
|
|
1284
1285
|
function zn2(t) {
|
|
1285
1286
|
let e = Me(t);
|
|
1286
1287
|
return e.length === 0 ? "" : e.replace(Dn, " ");
|
|
@@ -1316,7 +1317,7 @@ function Bt(t) {
|
|
|
1316
1317
|
}
|
|
1317
1318
|
return e.discourageAggregationAcrossGroups === true ? { nature: n, additivity: "intensive_rate", basis: "host-flag", suppressed: false } : Wn2(e.name) ? { nature: n, additivity: "intensive_rate", basis: "name", suppressed: false } : { nature: n, additivity: "additive", basis: "default", suppressed: false };
|
|
1318
1319
|
}
|
|
1319
|
-
function
|
|
1320
|
+
function Gt2(t) {
|
|
1320
1321
|
let e = Bt(t), n = t ?? {};
|
|
1321
1322
|
if (e.nature === "Categorical") return ["first", "distinctcount", "count"];
|
|
1322
1323
|
if (e.nature === "Ordinal") return Bn2(n) ? ["median", "average", "min", "max", "first", "distinctcount", "count"] : ["first", "distinctcount", "count"];
|
|
@@ -1330,7 +1331,7 @@ function Gt(t) {
|
|
|
1330
1331
|
}
|
|
1331
1332
|
}
|
|
1332
1333
|
function Ti(t) {
|
|
1333
|
-
return
|
|
1334
|
+
return Gt2(t)[0];
|
|
1334
1335
|
}
|
|
1335
1336
|
function Ii(t, e) {
|
|
1336
1337
|
if (e !== "sum" && e !== "count") return false;
|
|
@@ -1365,7 +1366,7 @@ function N(e) {
|
|
|
1365
1366
|
function fe(e, t) {
|
|
1366
1367
|
if (!An(e)) return false;
|
|
1367
1368
|
let n = I(e);
|
|
1368
|
-
return n ? t === "world" ? true :
|
|
1369
|
+
return n ? t === "world" ? true : bn.has(n) : false;
|
|
1369
1370
|
}
|
|
1370
1371
|
function re(e) {
|
|
1371
1372
|
let t = F3(e);
|
|
@@ -1401,13 +1402,13 @@ function ie(e) {
|
|
|
1401
1402
|
return Math.round(n / t.length * 1e3) / 10;
|
|
1402
1403
|
}
|
|
1403
1404
|
function pe(e, t) {
|
|
1404
|
-
return y2(t,
|
|
1405
|
+
return y2(t, fn) ? true : se2(e).some((n) => /^\d{5}(-\d{4})?$/.test(n.replace(/\.0+$/, "")));
|
|
1405
1406
|
}
|
|
1406
1407
|
function Tr2(e, t) {
|
|
1407
1408
|
let n = F3(e);
|
|
1408
1409
|
if (n.length === 0) return 0;
|
|
1409
1410
|
let o2 = 0;
|
|
1410
|
-
for (let a3 of n)
|
|
1411
|
+
for (let a3 of n) kt(a3, t) && o2++;
|
|
1411
1412
|
return Math.round(o2 / n.length * 1e3) / 10;
|
|
1412
1413
|
}
|
|
1413
1414
|
function te(e, t) {
|
|
@@ -1477,7 +1478,7 @@ function Rr(e, t, n, o2, a3) {
|
|
|
1477
1478
|
for (let d2 of C3) {
|
|
1478
1479
|
if (p3.has(d2)) continue;
|
|
1479
1480
|
let S = b2(d2), O2 = Tr2(S, o2);
|
|
1480
|
-
O2 <
|
|
1481
|
+
O2 < pt || te(S, (H3) => kt(H3, o2)) < ee || (!s2 || O2 > s2.pct) && (s2 = { name: d2, pct: O2 });
|
|
1481
1482
|
}
|
|
1482
1483
|
s2 && (i.city = s2.name, u3.push(`city=${s2.name} (${s2.pct}% known cities)`));
|
|
1483
1484
|
}
|
|
@@ -1506,13 +1507,13 @@ export {
|
|
|
1506
1507
|
o,
|
|
1507
1508
|
bt,
|
|
1508
1509
|
W2 as W,
|
|
1509
|
-
|
|
1510
|
-
|
|
1510
|
+
Ot,
|
|
1511
|
+
xt,
|
|
1511
1512
|
Yn2 as Yn,
|
|
1512
1513
|
Fn,
|
|
1513
1514
|
Si,
|
|
1514
1515
|
Bt,
|
|
1515
|
-
Gt,
|
|
1516
|
+
Gt2 as Gt,
|
|
1516
1517
|
Ti,
|
|
1517
1518
|
Ii,
|
|
1518
1519
|
Rr
|