To stretch a programming analogy, freedom and immigration are two of the key standard library modules on which the USA's phenomenal strength has been built.
It's a nation of immigrants. Immigration has provided a hard-working, motivated and passionate population out to create a better life and with entrepreneurialism deeply rooted in its DNA. Immigration drives economic activity. Immigrants with the guts to risk guns and bureaucrats are the same as the ones who start businesses and change countries. The Mayflower was a boatload of immigrants.
Individual freedom, a laissez-faire economy, free markets and free trade (comparatively at least) when combined with immigration have created a great nation. It's created wealth, prosperity and happiness not just in the US, but all the nations it has influenced in the last 200 years.
There was a time when the USA proclaimed to the world:
"Give me your tired, your poor,
Your huddled masses yearning to breathe free,
The wretched refuse of your teeming shore.
Send these, the homeless, tempest-tost to me,
I lift my lamp beside the golden door!"
There was a time when an American President called out "Tear Down this Wall" to another nation that erected barriers between peoples.
The standard library might need some patching, but for the entire world's sake let's hope those two modules don't get deprecated any time soon.