import{a as r,u as e}from"./_commonjsHelpers-17042db9.js";import{b as t,u as o,a as n,_ as D}from"./sortQuotesByDeliverySpeedEstimate-554f0c2a.js";var M=r(function(r){r.exports=function(r){if(Array.isArray(r))return t(r)},r.exports.__esModule=!0,r.exports.default=r.exports});e(M);var S=r(function(r){r.exports=function(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)},r.exports.__esModule=!0,r.exports.default=r.exports});e(S);var A=r(function(r){r.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},r.exports.__esModule=!0,r.exports.default=r.exports});e(A);var R=e(r(function(r){r.exports=function(r){return M(r)||S(r)||o(r)||A()},r.exports.__esModule=!0,r.exports.default=r.exports})),u={AED:"AE",AFN:"AF",ALL:"AL",AMD:"AM",ANG:"AN",AOA:"AO",ARS:"AR",AUD:"AU",AZN:"AZ",BAM:"BA",BBD:"BB",BDT:"BD",BGN:"BG",BHD:"BH",BIF:"BI",BMD:"BM",BND:"BN",BOB:"BO",BRL:"BR",BSD:"BS",BWP:"BW",BYR:"BY",BZD:"BZ",CAD:"CA",CDF:"CD",CHF:"CH",CLP:"CL",CNY:"CN",COP:"CO",CRC:"CR",CUP:"CU",CVE:"CV",CZK:"CZ",DJF:"DJ",DKK:"DK",DOP:"DO",DZD:"DZ",EGP:"EG",ETB:"ET",EUR:"DE",FJD:"FJ",FKP:"FK",GBP:"GB",GEL:"GE",GHS:"GH",GIP:"GI",GMD:"GM",GNF:"GN",GTQ:"GT",GYD:"GY",HKD:"HK",HNL:"HN",HRK:"HR",HTG:"HT",HUF:"HU",IDR:"ID",ILS:"IL",INR:"IN",IQD:"IQ",IRR:"IR",ISK:"IS",JMD:"JM",JOD:"JO",JPY:"JP",KES:"KE",KGS:"KG",KHR:"KH",KMF:"KM",KPW:"KP",KRW:"KR",KWD:"KW",KYD:"KY",KZT:"KZ",LAK:"LA",LBP:"LB",LKR:"LK",LRD:"LR",LSL:"LS",LYD:"LY",MAD:"MA",MDL:"MD",MGA:"MG",MKD:"MK",MMK:"MM",MNT:"MN",MOP:"MO",MRO:"MR",MUR:"MU",MVR:"MV",MWK:"MW",MXN:"MX",MYR:"MY",MZN:"MZ",NAD:"NA",NGN:"NG",NIO:"NI",NOK:"NO",NPR:"NP",NZD:"NZ",OMR:"OM",PAB:"PA",PEN:"PE",PGK:"PG",PHP:"PH",PKR:"PK",PLN:"PL",PYG:"PY",QAR:"QA",RON:"RO",RSD:"RS",RUB:"RU",RWF:"RW",SAR:"SA",SBD:"SB",SCR:"SC",SDG:"SD",SEK:"SE",SGD:"SG",SLL:"SL",SOS:"SO",SRD:"SR",STD:"ST",SVC:"SV",SYP:"SY",SZL:"SZ",THB:"TH",TJS:"TJ",TMT:"TM",TND:"TN",TOP:"TO",TRY:"TR",TTD:"TT",TWD:"TW",TZS:"TZ",UAH:"UA",UGX:"UG",USD:"US",UYU:"UY",UZS:"UZ",VES:"VE",VND:"VN",VUV:"VU",XAF:"CM",XCD:"AI",XOF:"BJ",XPF:"PF",YER:"YE",ZAR:"ZA",ZMK:"ZM",ZWD:"ZW"};function B(r){var e=function(r){var e=r.sort(function(r,e){return e.receivedAmount-r.receivedAmount});return D(e,1)[0].receivedAmount}(r);return r.filter(function(r){return r.receivedAmount===e})}function K(r,e){return r.find(function(r){return r.targetCountry===u[e]})||r[0]}function s(r,e){var t=B(R(r));return K(n(t),e)}export{s as e};
//# sourceMappingURL=extractQuote-96a6b874.js.map
