PageSourceSearch

https://www.us-debt-clock.com/assets/WorldDebt-D8RbZx91.js

js us-debt-clock.com collected 2026-10-02 06:59:51 UTC 25,178 bytes, 11 lines download raw bytes

1import{l as me,m as Ne,o as a,p as D,j as e,H as ye,A as Ce,B as ke,G as ie,O as p,D as Pe,T as Ge,U as Te,q as N,k,F as $e,c as A,i as Se,a as We}from"./index-CMQG5J0E.js";import{r as b}from"./react-pRwqyV2Z.js";import{L as c}from"./router-D_N-N4OQ.js";import{C as d}from"./card-DSdkshdi.js";import{I as Ue}from"./input-Bhhc96HJ.js";import{w as Ae,r as ce,g as P}from"./worldDebtData-F1AVqPIV.js";import{E as Me}from"./ExploreMoreLinks-D-8b452y.js";import{D as Re,a as Le}from"./DataLastUpdated-CmIq3PI0.js";import{S as Fe}from"./search-kSxUex9q.js";import{C as Ie}from"./circle-help-hG01VfAd.js";import{C as Be}from"./chevron-down-CqE7rPLK.js";import"./charts-m7s5G5wy.js";import"./calendar-BS6eneV8.js";import"./refresh-cw-BM0iBNkk.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const qe=me("ArrowRightLeft",[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]]);/**
7 * @license lucide-react v0.462.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const ze=me("Map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]),M="https://www.us-debt-clock.com/blogpost/US%20Debt%20Clock%20vs%20World%20Debt%20Clock_%20www.us-debt-clock.com.png";function at(){var B,q,z,H,E,J,_,O,Q,K,V,X,Y,Z,ee,te,se,ae,oe,re,le,ne,de;const[G,be]=b.useState(""),[T,he]=b.useState("All"),[u,$]=b.useState("totalDebt"),[g,xe]=b.useState(0),[R,pe]=b.useState("US"),[L,ue]=b.useState("CN"),h=Ne(),r=b.useMemo(()=>Ae.map(t=>t.code==="US"?{...t,totalDebt:h.totalDebt||t.totalDebt,debtToGDP:Math.round(h.debtToGDPRatio)||t.debtToGDP,debtPerCapita:h.debtPerCitizen||t.debtPerCapita}:t),[h.totalDebt,h.debtToGDPRatio,h.debtPerCitizen]),F=r.filter(t=>{const s=t.name.toLowerCase().includes(G.toLowerCase())||t.code.toLowerCase().includes(G.toLowerCase()),U=T==="All"||t.region===T;return s&&U}).sort((t,s)=>u==="totalDebt"?s.totalDebt-t.totalDebt:u==="debtToGDP"?s.debtToGDP-t.debtToGDP:s.debtPerCapita-t.debtPerCapita),j=r.reduce((t,s)=>t+s.totalDebt,0),ge=r.reduce((t,s)=>t+s.gdp,0),je=r.reduce((t,s)=>t+s.population,0),S=j/ge*100,W=[...r].sort((t,s)=>s.totalDebt-t.totalDebt),fe=[...r].sort((t,s)=>s.debtToGDP-t.debtToGDP),x=[...r].sort((t,s)=>s.debtPerCapita-t.debtPerCapita),f=W.slice(0,5),i=fe.slice(0,5),w=r.find(t=>t.code===R)||r[0],y=r.find(t=>t.code===L)||r[1],C=ce.filter(t=>t!=="All").map(t=>{const s=r.filter(m=>m.region===t),U=s.reduce((m,v)=>m+v.totalDebt,0),ve=s.reduce((m,v)=>m+v.debtToGDP,0)/s.length,De=[...s].sort((m,v)=>v.totalDebt-m.totalDebt)[0];return{region:t,countries:s,totalDebt:U,averageDebtToGDP:ve,leader:De}}).sort((t,s)=>s.totalDebt-t.totalDebt),we=Math.max(...C.map(t=>t.totalDebt)),o=r.find(t=>t.code==="US"),l=r.find(t=>t.code==="CN"),n=r.find(t=>t.code==="JP"),I=[{question:"Which country has the most debt in the world?",answer:`The United States has the most debt in the world at ${a((o==null?void 0:o.totalDebt)||38e12)}. China ranks second with approximately ${a((l==null?void 0:l.totalDebt)||187e11)}, followed by Japan at ${a((n==null?void 0:n.totalDebt)||98e11)}. The U.S. debt is more than twice that of any other nation.`},{question:"Is this the same as the live US debt clock?",answer:"No. This page is for world debt rankings and country comparisons. If you want the real-time U.S.-only debt counter, use our Live Debt Clock page at /live."},{question:"Is the world debt clock live in real time?",answer:"The U.S. figure is updated from live Treasury-based data when available. International government debt figures are latest-available estimates from international and national sources, so the worldwide debt clock is best used as a live comparison dashboard rather than a second-by-second official counter for every country."},{question:"How much is the total world debt?",answer:`Total global government debt exceeds ${a(j)}. This represents approximately ${S.toFixed(1)}% of global GDP. The debt is spread across ${r.length} major economies tracked on this page, with the top 10 countries accounting for over 75% of the total.`},{question:"Which country has the highest debt-to-GDP ratio?",answer:`${(B=i[0])==null?void 0:B.name} has the highest debt-to-GDP ratio at ${(q=i[0])==null?void 0:q.debtToGDP}%, followed by ${(z=i[1])==null?void 0:z.name} (${(H=i[1])==null?void 0:H.debtToGDP}%) and ${(E=i[2])==null?void 0:E.name} (${(J=i[2])==null?void 0:J.debtToGDP}%). A ratio over 100% means the country owes more than its entire annual economic output.`},{question:"Who has more debt, the US or China?",answer:`The US has significantly more debt than China. The US national debt is ${a((o==null?void 0:o.totalDebt)||38e12)} while China's is approximately ${a((l==null?void 0:l.totalDebt)||187e11)}. However, China's debt-to-GDP ratio (${(l==null?void 0:l.debtToGDP)||83}
11%) is lower than the US (${(o==null?void 0:o.debtToGDP)||125}%) due to its larger relative GDP growth.`},{question:"What is Japan's debt-to-GDP ratio?",answer:`Japan has the world's highest debt-to-GDP ratio among major economies at ${(n==null?void 0:n.debtToGDP)||230}%. Despite this, Japan has avoided a debt crisis due to several factors: most debt is held domestically, the Bank of Japan holds significant amounts, and Japan runs large trade surpluses. However, this level of debt is unprecedented for a developed economy.`},{question:"Which country has the highest debt per capita?",answer:`${(_=x[0])==null?void 0:_.name} has the highest debt per capita at ${D((O=x[0])==null?void 0:O.debtPerCapita)}, followed by ${(Q=x[1])==null?void 0:Q.name} (${D((K=x[1])==null?void 0:K.debtPerCapita)}) and ${(V=x[2])==null?void 0:V.name} (${D((X=x[2])==null?void 0:X.debtPerCapita)}). This metric shows how much debt each citizen would owe if the national debt were divided equally.`},{question:"Is global debt sustainable?",answer:`Global debt sustainability is a major concern among economists. With total government debt exceeding ${a(j)} and averaging ${S.toFixed(1)}% of global GDP, many countries face challenges. Rising interest rates increase debt servicing costs, and aging populations strain government budgets. However, countries with strong economies and reserve currencies (like the US) have more flexibility than others.`},{question:"How does US debt compare to other G7 countries?",answer:`Among G7 countries (US, Japan, Germany, UK, France, Italy, Canada), the US has the largest absolute debt but Japan has the highest debt-to-GDP ratio (${(n==null?void 0:n.debtToGDP)||230}%). The US debt-to-GDP ratio (${(o==null?void 0:o.debtToGDP)||125}%) is higher than Germany (~65%) but lower than Italy (~140%). All G7 nations have seen debt increase significantly since 2008.`}];return e.jsxs(e.Fragment,{children:[e.jsxs(ye,{children:[e.jsx("title",{children:"World Debt Clock Live: Worldwide Debt by Country, Map & Rankings"}),e.jsx("meta",{name:"description",content:`World debt clock live comparison: the United States has the most debt at ${a((o==null?void 0:o.totalDebt)||38e12)}. Compare worldwide debt by country, map region debt, debt-to-GDP, and debt per person.`}),e.jsx("meta",{name:"keywords",content:"world debt clock, worldwide debt clock, worlds debt clock, world debt clock live, world debt clock by country, world debt clock map, world national debt clock, total world debt clock, which country has the most debt, global debt by country, debt to gdp by country, national debt ranking"}),e.jsx("link",{rel:"canonical",href:"https://www.us-debt-clock.com/world"}),e.jsx("meta",{property:"og:title",content:"World Debt Clock Live: Worldwide Debt by Country, Map & Rankings"}),e.jsx("meta",{property:"og:description",content:`US: ${a((o==null?void 0:o.totalDebt)||38e12)} | China: ${a((l==null?void 0:l.totalDebt)||187e11)} | Japan: ${(n==null?void 0:n.debtToGDP)||230}% debt-to-GDP. Compare worldwide debt by country.`}),e.jsx("meta",{property:"og:type",content:"website"}),e.jsx("meta",{property:"og:url",content:"https://www.us-debt-clock.com/world"}),e.jsx("meta",{property:"og:image",content:M}),e.jsx("meta",{property:"og:image:secure_url",content:M}),e.jsx("meta",{property:"og:image:type",content:"image/png"}),e.jsx("meta",{property:"og:image:width",content:"1200"}),e.jsx("meta",{property:"og:image:height",content:"675"}),e.jsx("meta",{property:"og:image:alt",content:"World Debt Clock country-by-country comparison preview"}),e.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),e.jsx("meta",{name:"twitter:title",content:"World Debt Clock Live: Worldwide Debt by Country, Map & Rankings"}),e.jsx("meta",{name:"twitter:description",content:`US: ${a((o==null?void 0:o.totalDebt)||38e12)} | China: ${a((l==null?void 0:l.totalDebt)||187e11)} | Japan: ${(n==null?void 0:n.debtToGDP)||230}% debt-to-GDP. Compare worldwide debt by country.`}),e.jsx("meta",{name:"twitter:image",content:M}),e.jsx("meta",{name:"twitter:image:alt",content:"World Debt Clock country-by-country comparison preview"})]}),e.jsx(Ce,{headline:"World Debt Clock - Worldwide Government Debt Data",description:"Comprehensive comparison of worldwide government debt by country including total debt, debt-to-GDP ratios, per capita figures, comparisons, and regional map data.",datePublished:"2024-01-01",dateModified:new Date().toISOString().split("T")[0],url:"https://www.us-debt-clock.com/world"}),e.jsx(ke,{items:[{name:"Home",url:"https://www.us-debt-clock.com"},{name:"World Debt Clock",url:"https://www.us-debt-clock.com/world"}]}),e.jsx("div",{className:"min-h-screen bg-background py-12 px-2 md:px-4 pb-20",children:e.jsxs("div",{className:"w-[90%] sm:w-[85%] md:w-full mx-auto max-w-7xl",children:[e.jsxs("div",{className:"mb-8",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx(ie,{className:"w-10 h-10 text-blue-500"}),e.jsx("h1",{className:"text-4xl md:text-5xl font-bold",children:"World Debt Clock"})]}),e.jsxs("p",{className:"text-xl text-muted-foreground mb-3",children:["A worldwide debt clock for comparing national debt by country, live U.S. debt, debt-to-GDP, debt per person, and regional debt map data across ",r.length," major economies."]}),e.jsx(Re,{date:Le.worldDebt,dataType:"World debt data",showRefreshNote:!0}),e.jsxs("p",{className:"text-sm text-muted-foreground mt-3",children:[e.jsx("span",{className:"font-medium text-foreground",children:"Global data note:"})," ","International debt figures use the latest available estimates from IMF, World Bank, OECD, and national sources. U.S. debt updates more frequently from Treasury data."]}),e.jsxs("p",{className:"text-sm text-muted-foreground mt-3",children:["Need the U.S.-only live counter?"," ",e.jsx(c,{to:"/live",className:"text-blue-500 hover:underline",children:"Use the Live Debt Clock"}),". Global country figures are latest-available estimates, while U.S. debt updates more frequently."]})]}),e.jsxs("div",{id:"global-stats",className:"grid grid-cols-1 md:grid-cols-4 gap-6 mb-8",children:[e.jsxs(d,{className:"p-6 bg-gradient-to-br from-blue-500/10 to-background relative",children:[e.jsx(p,{variant:"corner",title:"World Debt Statistics",text:`Global government debt: ${a(j)}! Compare debt across ${r.length} countries:`,url:"https://www.us-debt-clock.com/world#global-stats",hashtags:["WorldDebt","GlobalDebt","GovernmentDebt"]}),e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx(Pe,{size:18,className:"text-blue-500"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Global Debt"})]}),e.jsx("p",{className:"text-2xl font-bold",children:a(j)})]}),e.jsxs(d,{className:"p-6",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx(Ge,{size:18,className:"text-green-500"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Average Debt/GDP"})]}),e.jsxs("p",{className:"text-2xl font-bold",children:[S.toFixed(1),"%"]})]}),e.jsxs(d,{className:"p-6",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx(Te,{size:18,className:"text-purple-500"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Population (Tracked)"})]}),e.jsxs("p",{className:"text-2xl font-bold",children:[(je/1e9).toFixed(2),"B"]})]}),e.jsxs(d,{className:"p-6",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx(ie,{size:18,className:"text-orange-500"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Countries Tracked"})]}),e.jsx("p",{className:"text-2xl font-bold",children:r.length})]})]}),e.jsxs(d,{id:"country-comparison",className:"p-6 md:p-8 mb-8 relative",children:[e.jsx(p,{variant:"corner",title:"World Debt Clock Country Comparison",text:`${w.name} debt: ${a(w.totalDebt)} vs ${y.name}: ${a(y.totalDebt)}. Compare worldwide debt by country:`,url:"https://www.us-debt-clock.com/world#country-comparison",hashtags:["WorldDebtClock","DebtComparison","NationalDebt"]}),e.jsxs("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between gap-4 mb-6",children:[e.jsxs("div",{children:[e.jsxs("h2",{className:"text-2xl font-bold flex items-center gap-2",children:[e.jsx(qe,{size:24}),"World Debt Clock by Country"]}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Compare two national debt clocks side by side."})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-[1fr_auto_1fr] gap-3 items-center w-full md:w-auto",children:[e.jsx("select",{value:R,onChange:t=>pe(t.target.value),className:"h-10 rounded-md border border-input bg-background px-3 text-sm","aria-label":"First c
11ountry",children:W.map(t=>e.jsx("option",{value:t.code,children:t.name},t.code))}),e.jsx("span",{className:"text-center text-sm text-muted-foreground",children:"vs"}),e.jsx("select",{value:L,onChange:t=>ue(t.target.value),className:"h-10 rounded-md border border-input bg-background px-3 text-sm","aria-label":"Second country",children:W.map(t=>e.jsx("option",{value:t.code,children:t.name},t.code))})]})]}),e.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[w,y].map(t=>{const s=t.totalDebt>=(t.code===w.code?y.totalDebt:w.totalDebt);return e.jsxs(c,{to:`/world/${P(t.name)}`,className:"block rounded-lg border bg-muted/50 p-5 hover:bg-muted transition-colors",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3 mb-5",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"text-4xl",children:t.flag}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold",children:t.name}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:[t.region," · ",t.currency]})]})]}),s&&e.jsx(N,{children:"Higher total debt"})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-3 text-sm",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:"Total debt"}),e.jsx("p",{className:"font-bold",children:a(t.totalDebt)})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:"Debt/GDP"}),e.jsxs("p",{className:"font-bold",children:[t.debtToGDP,"%"]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:"Per person"}),e.jsx("p",{className:"font-bold",children:D(t.debtPerCapita)})]})]})]},t.code)})})]}),e.jsxs(d,{id:"world-debt-map",className:"p-6 md:p-8 mb-8 relative",children:[e.jsx(p,{variant:"corner",title:"World Debt Clock Map",text:`World debt clock map by region: ${(Y=C[0])==null?void 0:Y.region} leads tracked regions with ${a(((Z=C[0])==null?void 0:Z.totalDebt)||0)} in government debt.`,url:"https://www.us-debt-clock.com/world#world-debt-map",hashtags:["WorldDebtClock","DebtMap","GlobalDebt"]}),e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx(ze,{className:"w-8 h-8 text-blue-500"}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold",children:"World Debt Clock Map"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Regional debt totals for the countries tracked on this worldwide debt clock."})]})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:C.map(t=>{var s;return e.jsxs("div",{className:"rounded-lg border bg-muted/40 p-4",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3 mb-3",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold",children:t.region}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:[t.countries.length," countries · leader: ",(s=t.leader)==null?void 0:s.name]})]}),e.jsxs(N,{variant:"outline",children:[t.averageDebtToGDP.toFixed(0),"% avg Debt/GDP"]})]}),e.jsx("div",{className:"h-3 rounded-full bg-background overflow-hidden mb-2",children:e.jsx("div",{className:"h-full bg-blue-500",style:{width:`${Math.max(8,t.totalDebt/we*100)}%`}})}),e.jsx("p",{className:"text-sm font-semibold",children:a(t.totalDebt)})]},t.region)})})]}),e.jsxs("div",{id:"top-countries",className:"grid grid-cols-1 md:grid-cols-2 gap-6 mb-8",children:[e.jsxs(d,{className:"p-6 relative",children:[e.jsx(p,{variant:"corner",title:"Top Countries by Debt",text:`Top 5 countries by debt: 1. ${(ee=f[0])==null?void 0:ee.name} (${a((te=f[0])==null?void 0:te.totalDebt)}), 2. ${(se=f[1])==null?void 0:se.name}, 3. ${(ae=f[2])==null?void 0:ae.name}. See the full rankings:`,url:"https://www.us-debt-clock.com/world#top-countries",hashtags:["WorldDebt","NationalDebt","DebtRanking"]}),e.jsx("h3",{className:"text-xl font-bold mb-4",children:"Top 5 by Total Debt"}),e.jsx("div",{className:"space-y-3",children:f.map((t,s)=>e.jsxs(c,{to:`/world/${P(t.name)}`,className:"flex items-center justify-between p-3 bg-muted hover:bg-muted/70 rounded transition-colors",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"text-2xl",children:t.flag}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold",children:t.name}),e.jsx("p",{className:"text-xs text-muted-foreground",children:a(t.totalDebt)})]})]}),e.jsxs(N,{variant:s===0?"destructive":"outline",children:["#",s+1]})]},t.code))})]}),e.jsxs(d,{className:"p-6 relative",children:[e.jsx(p,{variant:"corner",title:"Top Countries by Debt-to-GDP Ratio",text:`Highest debt-to-GDP ratios: 1. ${(oe=i[0])==null?void 0:oe.name} (${(re=i[0])==null?void 0:re.debtToGDP}%), 2. ${(le=i[1])==null?void 0:le.name} (${(ne=i[1])==null?void 0:ne.debtToGDP}%), 3. ${(de=i[2])==null?void 0:de.name}. See full rankings:`,url:"https://www.us-debt-clock.com/world#top-countries",hashtags:["WorldDebt","DebtToGDP","DebtRanking"]}),e.jsx("h3",{className:"text-xl font-bold mb-4",children:"Top 5 by Debt-to-GDP Ratio"}),e.jsx("div",{className:"space-y-3",children:i.map((t,s)=>e.jsxs(c,{to:`/world/${P(t.name)}`,className:"flex items-center justify-between p-3 bg-muted hover:bg-muted/70 rounded transition-colors",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"text-2xl",children:t.flag}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold",children:t.name}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:[t.debtToGDP,"% of GDP"]})]})]}),e.jsxs(N,{variant:s===0?"destructive":"outline",children:["#",s+1]})]},t.code))})]})]}),e.jsx(d,{className:"p-6 mb-6",children:e.jsxs("div",{className:"flex flex-col md:flex-row gap-4",children:[e.jsxs("div",{className:"flex-1 relative",children:[e.jsx(Fe,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-muted-foreground",size:18}),e.jsx(Ue,{placeholder:"Search by country name or code...",value:G,onChange:t=>be(t.target.value),className:"pl-10"})]}),e.jsx("div",{className:"flex gap-2 flex-wrap",children:ce.map(t=>e.jsx(k,{variant:T===t?"default":"outline",size:"sm",onClick:()=>he(t),children:t},t))}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(k,{variant:u==="totalDebt"?"default":"outline",size:"sm",onClick:()=>$("totalDebt"),children:"Total Debt"}),e.jsx(k,{variant:u==="debtToGDP"?"default":"outline",size:"sm",onClick:()=>$("debtToGDP"),children:"Debt/GDP"}),e.jsx(k,{variant:u==="debtPerCapita"?"default":"outline",size:"sm",onClick:()=>$("debtPerCapita"),children:"Per Capita"})]})]})}),e.jsxs(d,{id:"all-countries",className:"p-6 relative",children:[e.jsx(p,{variant:"corner",title:"World Debt by Country",text:`Compare government debt across ${r.length} countries. Filter by region, sort by total debt, debt-to-GDP, or per capita:`,url:"https://www.us-debt-clock.com/world#all-countries",hashtags:["WorldDebt","CountryDebt","DebtComparison"]}),e.jsxs("h3",{className:"text-2xl font-bold mb-6",children:["All Countries (",F.length,")"]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:F.map(t=>e.jsxs(c,{to:`/world/${P(t.name)}`,className:"p-5 bg-muted hover:bg-muted/70 rounded-lg transition-colors block",children:[e.jsx("div",{className:"flex items-start justify-between mb-3",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"text-3xl",children:t.flag}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-lg font-bold",children:t.name}),e.jsx(N,{variant:"outline",className:"text-xs",children:t.regi
11on})]})]})}),e.jsxs("div",{className:"grid grid-cols-2 gap-3 text-sm",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:"Total Debt"}),e.jsx("p",{className:"font-semibold",children:a(t.totalDebt)})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:"Debt-to-GDP"}),e.jsxs("p",{className:`font-semibold ${t.debtToGDP>100?"text-red-500":t.debtToGDP>60?"text-orange-500":"text-green-500"}`,children:[t.debtToGDP,"%"]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:"Per Capita"}),e.jsx("p",{className:"font-semibold",children:D(t.debtPerCapita)})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:"Population"}),e.jsxs("p",{className:"font-semibold",children:[(t.population/1e6).toFixed(1),"M"]})]})]})]},t.code))})]}),e.jsx($e,{questions:I}),e.jsxs(d,{className:"p-6 md:p-8 mt-8",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx(Ie,{className:"w-8 h-8 text-blue-500"}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold",children:"World Debt FAQs"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Common questions about global debt and country comparisons"})]})]}),e.jsx("div",{className:"space-y-3",children:I.map((t,s)=>e.jsxs(d,{className:A("overflow-hidden transition-all duration-200",g===s&&"ring-1 ring-primary/20"),children:[e.jsxs("button",{onClick:()=>xe(g===s?null:s),className:"w-full px-5 py-4 text-left flex items-center justify-between gap-4 hover:bg-muted/50 transition-colors","aria-expanded":g===s,children:[e.jsx("h3",{className:"font-semibold text-sm md:text-base pr-4",children:t.question}),e.jsx(Be,{className:A("w-5 h-5 text-muted-foreground transition-transform flex-shrink-0",g
11===s&&"rotate-180")})]}),e.jsx("div",{className:A("overflow-hidden transition-all duration-200",g===s?"max-h-[500px]":"max-h-0"),children:e.jsx("p",{className:"px-5 pb-4 text-sm md:text-base text-muted-foreground leading-relaxed",children:t.answer})})]},s))})]}),e.jsxs(d,{className:"p-6 mt-8 bg-muted/50",children:[e.jsx("h4",{className:"font-semibold mb-2",children:"Data Sources & Methodology"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Data compiled from International Monetary Fund (IMF), World Bank, OECD, and national statistics offices. Figures represent general government gross debt as percentage of GDP. Currency conversions use current exchange rates. Last updated: November 2025. Some figures are estimates based on latest available data."})]}),e.jsx(Se,{}),e.jsxs("footer",{className:"mt-12 pt-6 border-t border-white/10",children:[e.jsxs("nav",{className:"flex flex-wrap justify-center gap-4 text-sm text-muted-foreground mb-4",children:[e.jsx(c,{to:"/",className:"hover:text-white transition-colors",children:"US Debt Clock"}),e.jsx(c,{to:"/states",className:"hover:text-white transition-colors",children:"State Debt"}),e.jsx(c,{to:"/presidents",className:"hover:text-white transition-colors",children:"Presidents"}),e.jsx(c,{to:"/projections",className:"hover:text-white transition-colors",children:"Future Projections"}),e.jsx(c,{to:"/about",className:"hover:text-white transition-colors",children:"About"})]}),e.jsxs("p",{className:"text-center text-xs text-muted-foreground/60",children:["Explore ",e.jsx(c,{to:"/",className:"underline hover:text-white",children:"US debt statistics"})," or compare ",e.jsx(c,{to:"/states",className:"underline hover:text-white",children:"debt by state"})]})]})]})}),e.jsx(Me,{exclude:["/world"]}),e.jsx(We,{})]})}export{at as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.