Resourcefulness quantification approach for resilient communities and countries