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M,EAAG,OAAM,YAAW,oBAAmB,cAC/C,MAGM,EAAe,OACrB,GAAI,EAAa,SACX,EAA2B,SACU,MAAvC,EAAiC,cAAW,CAC5C,MAAM,mBAAE,KAAuB,GAAc,EACvC,EAAU,IACR,EAAqB,EAAY,YAAY,GACjD,SAAU,GAEd,IACI,EAAa,QAAQ,UAAU,GAAY,EAC/C,CACA,MAAO,GACH,QAAQ,KAAK,8BAA+B,EAChD,CACJ,CACA,MAnBgB,CACZ,WAAY,SAkBF,EAIZ,KAAO,CACT,KA7fgB,YA8fhB,QACA,WAEJ,IACyB,oBAAV,SACF,OAAO,mBACR,OAAO,iBAAmB,IAE9B,OAAO,iBAAiB,KAAK,MAErC,CACA,MAEA,CAEA,OAAO,QAAU","file":"/npm/@blotoutio/providers-audiohook-sdk@1.45.1/index.cjs.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@blotoutio/providers-audiohook-sdk@1.45.1/index.cjs.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict';\n\nconst packageName = 'audiohook';\n\nconst canLog = () => {\n    try {\n        return localStorage.getItem('edgeTagDebug') === '1';\n    }\n    catch {\n        return false;\n    }\n};\nconst prefix = `[EdgeTag]`;\nconst logger = {\n    log: (...args) => {\n        if (canLog()) {\n            console.log(prefix, ...args);\n        }\n    },\n    error: (...args) => {\n        if (canLog()) {\n            console.error(prefix, ...args);\n        }\n    },\n    info: (...args) => {\n        if (canLog()) {\n            console.info(prefix, ...args);\n        }\n    },\n    trace: (...args) => {\n        if (canLog()) {\n            console.trace(prefix, ...args);\n        }\n    },\n};\n\nconst initAudiohook = (audiohookId) => {\n    var _a;\n    try {\n        const script = document.createElement('script');\n        script.src = `https://js.audiohook.com/analytics.js?audiohookId=${audiohookId}`;\n        const firstScript = document.getElementsByTagName('script')[0];\n        (_a = firstScript.parentNode) === null || _a === void 0 ? void 0 : _a.insertBefore(script, firstScript);\n    }\n    catch {\n        logger.log('Not able initialize the sdk for audiohook');\n    }\n};\nconst init = ({ manifest }) => {\n    if (typeof window == 'undefined' ||\n        !manifest.variables ||\n        manifest.variables['enableBrowser'] !== '1' ||\n        !manifest.variables['pixelId']) {\n        return;\n    }\n    initAudiohook(manifest.variables['pixelId']);\n};\n\nconst expand = (str) => str.split(',').flatMap((entry) => {\n    if (!entry.includes('-')) {\n        return entry;\n    }\n    const result = [];\n    const [start, end] = entry.split('-').map(Number);\n    for (let i = start; i <= end; i++) {\n        result.push(i.toString());\n    }\n    return result;\n});\n/**\n * Exported from https://en.wikipedia.org/wiki/List_of_North_American_Numbering_Plan_area_codes\n *\n * In Dev Tools, select the `tbody` element containing the area codes and run the following code,\n * replacing the emdash character with a simple endash:\n *\n * ```ts\n * [...$0.querySelectorAll('td:first-child')]\n *   .filter(cell => cell.firstChild.nodeName != 'A')\n *   .map(cell => cell.textContent.trim()).join(',')\n * ```\n */\nnew Set([\n    ...expand('200,211,221,222,230,232,233,235,237-238,241,243,244,245,247,255,257,258-259,261,265,266,271,273,274,275,277,278,280,282,283,285-287,288,290-299'),\n    ...expand('300,311,322,324,327,328,333,335,338,342,344,348-349,353,355,356,357-359,362,366,369,370-379,381,382,383-384,387,388,389,390-399'),\n    ...expand('400,411,420,421-422,426-427,428,429,433,439,444,446,449,451-454,455,456,457,459,460,461-462,465,466,467,471,476,477,481-483,485-486,487,488,489,490-499'),\n    ...expand('511,532,535,536,537,538,542-543,545-547,549-550,552-554,555,556,558,560,565,568,569,576,578,583,589,590-599'),\n    ...expand('611,621,624,625,627,632,633,634-635,637-638,642-643,644,648,652-654,655,663,665,666,668,673-676,677,679,685,686,687,688,690-699'),\n    ...expand('711,722,723,729,733,735-736,739,741,744,745-746,748,749-751,752,755,756,759,761,764,766,768,776,777,783,788,789,790-799'),\n    ...expand('811,821,822,823-824,827,834,836,841-842,846,851,852-853,871,874-875,879,880-887,889,890-899'),\n    ...expand('911,921,922,923,924,926,927,932,933,935,942,944,946,950,953,955,957-958,960-969,974,975,976,977,981-982,987,988,990-999'),\n]);\n\n/**\n * Converts camelCase and word delimiters to snake_case format, e.g.\n * `Hello, world!` => `hello_world`\n */\nconst snakeCase = (str) => {\n    let result = '';\n    let boundary = false;\n    for (const char of str) {\n        if (/[a-z]/.test(char)) {\n            if (boundary) {\n                result += '_';\n                boundary = false;\n            }\n            result += char;\n        }\n        else if (/[A-Z]/.test(char)) {\n            if (result) {\n                result += '_';\n                boundary = false;\n            }\n            result += char.toLowerCase();\n        }\n        else {\n            boundary = true;\n        }\n    }\n    return result;\n};\n\n/**\n * ISO-3166 2-leter country codes and their names\n * @see https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2\n */\nconst isoCountries = new Map([\n    ['AD', 'Andorra'],\n    ['AE', 'United Arab Emirates'],\n    ['AF', 'Afghanistan'],\n    ['AG', 'Antigua and Barbuda'],\n    ['AI', 'Anguilla'],\n    ['AL', 'Albania'],\n    ['AM', 'Armenia'],\n    ['AO', 'Angola'],\n    ['AQ', 'Antarctica'],\n    ['AR', 'Argentina'],\n    ['AS', 'American Samoa'],\n    ['AT', 'Austria'],\n    ['AU', 'Australia'],\n    ['AW', 'Aruba'],\n    ['AX', 'Åland Islands'],\n    ['AZ', 'Azerbaijan'],\n    ['BA', 'Bosnia and Herzegovina'],\n    ['BB', 'Barbados'],\n    ['BD', 'Bangladesh'],\n    ['BE', 'Belgium'],\n    ['BF', 'Burkina Faso'],\n    ['BG', 'Bulgaria'],\n    ['BH', 'Bahrain'],\n    ['BI', 'Burundi'],\n    ['BJ', 'Benin'],\n    ['BL', 'Saint Barthélemy'],\n    ['BM', 'Bermuda'],\n    ['BN', 'Brunei Darussalam'],\n    ['BO', 'Bolivia, Plurinational State of'],\n    ['BQ', 'Bonaire, Sint Eustatius and Saba'],\n    ['BR', 'Brazil'],\n    ['BS', 'Bahamas'],\n    ['BT', 'Bhutan'],\n    ['BV', 'Bouvet Island'],\n    ['BW', 'Botswana'],\n    ['BY', 'Belarus'],\n    ['BZ', 'Belize'],\n    ['CA', 'Canada'],\n    ['CC', 'Cocos (Keeling) Islands'],\n    ['CD', 'Congo, Democratic Republic of the'],\n    ['CF', 'Central African Republic'],\n    ['CG', 'Congo'],\n    ['CH', 'Switzerland'],\n    ['CI', \"Côte d'Ivoire\"],\n    ['CK', 'Cook Islands'],\n    ['CL', 'Chile'],\n    ['CM', 'Cameroon'],\n    ['CN', 'China'],\n    ['CO', 'Colombia'],\n    ['CR', 'Costa Rica'],\n    ['CU', 'Cuba'],\n    ['CV', 'Cabo Verde'],\n    ['CW', 'Curaçao'],\n    ['CX', 'Christmas Island'],\n    ['CY', 'Cyprus'],\n    ['CZ', 'Czechia'],\n    ['DE', 'Germany'],\n    ['DJ', 'Djibouti'],\n    ['DK', 'Denmark'],\n    ['DM', 'Dominica'],\n    ['DO', 'Dominican Republic'],\n    ['DZ', 'Algeria'],\n    ['EC', 'Ecuador'],\n    ['EE', 'Estonia'],\n    ['EG', 'Egypt'],\n    ['EH', 'Western Sahara'],\n    ['ER', 'Eritrea'],\n    ['ES', 'Spain'],\n    ['ET', 'Ethiopia'],\n    ['EU', 'European Union'],\n    ['FI', 'Finland'],\n    ['FJ', 'Fiji'],\n    ['FK', 'Falkland Islands (Malvinas)'],\n    ['FM', 'Micronesia, Federated States of'],\n    ['FO', 'Faroe Islands'],\n    ['FR', 'France'],\n    ['GA', 'Gabon'],\n    ['GB', 'Great Britain'],\n    ['GD', 'Grenada'],\n    ['GE', 'Georgia'],\n    ['GF', 'French Guiana'],\n    ['GG', 'Guernsey'],\n    ['GH', 'Ghana'],\n    ['GI', 'Gibraltar'],\n    ['GL', 'Greenland'],\n    ['GM', 'Gambia'],\n    ['GN', 'Guinea'],\n    ['GP', 'Guadeloupe'],\n    ['GQ', 'Equatorial Guinea'],\n    ['GR', 'Greece'],\n    ['GS', 'South Georgia and the South Sandwich Islands'],\n    ['GT', 'Guatemala'],\n    ['GU', 'Guam'],\n    ['GW', 'Guinea-Bissau'],\n    ['GY', 'Guyana'],\n    ['HK', 'Hong Kong'],\n    ['HM', 'Heard Island and McDonald Islands'],\n    ['HN', 'Honduras'],\n    ['HR', 'Croatia'],\n    ['HT', 'Haiti'],\n    ['HU', 'Hungary'],\n    ['ID', 'Indonesia'],\n    ['IE', 'Ireland'],\n    ['IL', 'Israel'],\n    ['IM', 'Isle of Man'],\n    ['IN', 'India'],\n    ['IO', 'British Indian Ocean Territory'],\n    ['IQ', 'Iraq'],\n    ['IR', 'Iran, Islamic Republic of'],\n    ['IS', 'Iceland'],\n    ['IT', 'Italy'],\n    ['JE', 'Jersey'],\n    ['JM', 'Jamaica'],\n    ['JO', 'Jordan'],\n    ['JP', 'Japan'],\n    ['KE', 'Kenya'],\n    ['KG', 'Kyrgyzstan'],\n    ['KH', 'Cambodia'],\n    ['KI', 'Kiribati'],\n    ['KM', 'Comoros'],\n    ['KN', 'Saint Kitts and Nevis'],\n    ['KP', \"Korea, Democratic People's Republic of\"],\n    ['KR', 'Korea, Republic of'],\n    ['KW', 'Kuwait'],\n    ['KY', 'Cayman Islands'],\n    ['KZ', 'Kazakhstan'],\n    ['LA', \"Lao People's Democratic Republic\"],\n    ['LB', 'Lebanon'],\n    ['LC', 'Saint Lucia'],\n    ['LI', 'Liechtenstein'],\n    ['LK', 'Sri Lanka'],\n    ['LR', 'Liberia'],\n    ['LS', 'Lesotho'],\n    ['LT', 'Lithuania'],\n    ['LU', 'Luxembourg'],\n    ['LV', 'Latvia'],\n    ['LY', 'Libya'],\n    ['MA', 'Morocco'],\n    ['MC', 'Monaco'],\n    ['MD', 'Moldova, Republic of'],\n    ['ME', 'Montenegro'],\n    ['MF', 'Saint Martin (French part)'],\n    ['MG', 'Madagascar'],\n    ['MH', 'Marshall Islands'],\n    ['MK', 'North Macedonia'],\n    ['ML', 'Mali'],\n    ['MM', 'Myanmar'],\n    ['MN', 'Mongolia'],\n    ['MO', 'Macao'],\n    ['MP', 'Northern Mariana Islands'],\n    ['MQ', 'Martinique'],\n    ['MR', 'Mauritania'],\n    ['MS', 'Montserrat'],\n    ['MT', 'Malta'],\n    ['MU', 'Mauritius'],\n    ['MV', 'Maldives'],\n    ['MW', 'Malawi'],\n    ['MX', 'Mexico'],\n    ['MY', 'Malaysia'],\n    ['MZ', 'Mozambique'],\n    ['NA', 'Namibia'],\n    ['NC', 'New Caledonia'],\n    ['NE', 'Niger'],\n    ['NF', 'Norfolk Island'],\n    ['NG', 'Nigeria'],\n    ['NI', 'Nicaragua'],\n    ['NL', 'Netherlands, Kingdom of the'],\n    ['NO', 'Norway'],\n    ['NP', 'Nepal'],\n    ['NR', 'Nauru'],\n    ['NU', 'Niue'],\n    ['NZ', 'New Zealand'],\n    ['OM', 'Oman'],\n    ['PA', 'Panama'],\n    ['PE', 'Peru'],\n    ['PF', 'French Polynesia'],\n    ['PG', 'Papua New Guinea'],\n    ['PH', 'Philippines'],\n    ['PK', 'Pakistan'],\n    ['PL', 'Poland'],\n    ['PM', 'Saint Pierre and Miquelon'],\n    ['PN', 'Pitcairn'],\n    ['PR', 'Puerto Rico'],\n    ['PS', 'Palestine, State of'],\n    ['PT', 'Portugal'],\n    ['PW', 'Palau'],\n    ['PY', 'Paraguay'],\n    ['QA', 'Qatar'],\n    ['RE', 'Réunion'],\n    ['RO', 'Romania'],\n    ['RS', 'Serbia'],\n    ['RU', 'Russian Federation'],\n    ['RW', 'Rwanda'],\n    ['SA', 'Saudi Arabia'],\n    ['SB', 'Solomon Islands'],\n    ['SC', 'Seychelles'],\n    ['SD', 'Sudan'],\n    ['SE', 'Sweden'],\n    ['SG', 'Singapore'],\n    ['SH', 'Saint Helena, Ascension and Tristan da Cunha'],\n    ['SI', 'Slovenia'],\n    ['SJ', 'Svalbard and Jan Mayen'],\n    ['SK', 'Slovakia'],\n    ['SL', 'Sierra Leone'],\n    ['SM', 'San Marino'],\n    ['SN', 'Senegal'],\n    ['SO', 'Somalia'],\n    ['SR', 'Suriname'],\n    ['SS', 'South Sudan'],\n    ['ST', 'Sao Tome and Principe'],\n    ['SV', 'El Salvador'],\n    ['SX', 'Sint Maarten (Dutch part)'],\n    ['SY', 'Syrian Arab Republic'],\n    ['SZ', 'Eswatini'],\n    ['TC', 'Turks and Caicos Islands'],\n    ['TD', 'Chad'],\n    ['TF', 'French Southern Territories'],\n    ['TG', 'Togo'],\n    ['TH', 'Thailand'],\n    ['TJ', 'Tajikistan'],\n    ['TK', 'Tokelau'],\n    ['TL', 'Timor-Leste'],\n    ['TM', 'Turkmenistan'],\n    ['TN', 'Tunisia'],\n    ['TO', 'Tonga'],\n    ['TR', 'Türkiye'],\n    ['TT', 'Trinidad and Tobago'],\n    ['TV', 'Tuvalu'],\n    ['TW', 'Taiwan, Province of China'],\n    ['TZ', 'Tanzania, United Republic of'],\n    ['UA', 'Ukraine'],\n    ['UG', 'Uganda'],\n    ['UK', 'United Kingdom of Great Britain and Northern Ireland'],\n    ['UM', 'United States Minor Outlying Islands'],\n    ['US', 'United States of America'],\n    ['UY', 'Uruguay'],\n    ['UZ', 'Uzbekistan'],\n    ['VA', 'Holy See'],\n    ['VC', 'Saint Vincent and the Grenadines'],\n    ['VE', 'Venezuela, Bolivarian Republic of'],\n    ['VG', 'Virgin Islands (British)'],\n    ['VI', 'Virgin Islands (U.S.)'],\n    ['VN', 'Viet Nam'],\n    ['VU', 'Vanuatu'],\n    ['WF', 'Wallis and Futuna'],\n    ['WS', 'Samoa'],\n    ['YE', 'Yemen'],\n    ['YT', 'Mayotte'],\n    ['ZA', 'South Africa'],\n    ['ZM', 'Zambia'],\n    ['ZW', 'Zimbabwe'],\n]);\n/**\n * ISO-3166 US state ISO codes\n * @see https://en.wikipedia.org/wiki/ISO_3166-2:US\n * */\nconst usStates = new Map([\n    ['US-AL', 'Alabama'],\n    ['US-AK', 'Alaska'],\n    ['US-AZ', 'Arizona'],\n    ['US-AR', 'Arkansas'],\n    ['US-CA', 'California'],\n    ['US-CO', 'Colorado'],\n    ['US-CT', 'Connecticut'],\n    ['US-DE', 'Delaware'],\n    ['US-FL', 'Florida'],\n    ['US-GA', 'Georgia'],\n    ['US-HI', 'Hawaii'],\n    ['US-ID', 'Idaho'],\n    ['US-IL', 'Illinois'],\n    ['US-IN', 'Indiana'],\n    ['US-IA', 'Iowa'],\n    ['US-KS', 'Kansas'],\n    ['US-KY', 'Kentucky'],\n    ['US-LA', 'Louisiana'],\n    ['US-ME', 'Maine'],\n    ['US-MD', 'Maryland'],\n    ['US-MA', 'Massachusetts'],\n    ['US-MI', 'Michigan'],\n    ['US-MN', 'Minnesota'],\n    ['US-MS', 'Mississippi'],\n    ['US-MO', 'Missouri'],\n    ['US-MT', 'Montana'],\n    ['US-NE', 'Nebraska'],\n    ['US-NV', 'Nevada'],\n    ['US-NH', 'New Hampshire'],\n    ['US-NJ', 'New Jersey'],\n    ['US-NM', 'New Mexico'],\n    ['US-NY', 'New York'],\n    ['US-NC', 'North Carolina'],\n    ['US-ND', 'North Dakota'],\n    ['US-OH', 'Ohio'],\n    ['US-OK', 'Oklahoma'],\n    ['US-OR', 'Oregon'],\n    ['US-PA', 'Pennsylvania'],\n    ['US-RI', 'Rhode Island'],\n    ['US-SC', 'South Carolina'],\n    ['US-SD', 'South Dakota'],\n    ['US-TN', 'Tennessee'],\n    ['US-TX', 'Texas'],\n    ['US-UT', 'Utah'],\n    ['US-VT', 'Vermont'],\n    ['US-VA', 'Virginia'],\n    ['US-WA', 'Washington'],\n    ['US-WV', 'West Virginia'],\n    ['US-WI', 'Wisconsin'],\n    ['US-WY', 'Wyoming'],\n    ['US-DC', 'District of Columbia'],\n    ['US-AS', 'American Samoa'],\n    ['US-GU', 'Guam'],\n    ['US-MP', 'Northern Mariana Islands'],\n    ['US-PR', 'Puerto Rico'],\n    ['US-UM', 'United States Minor Outlying Islands'],\n    ['US-VI', 'Virgin Islands, U.S.'],\n]);\nnew Set([...isoCountries.keys(), ...usStates.keys()]);\n\nconst prepareData = (data) => {\n    const payload = {};\n    if (data['value'] || data['value'] === 0) {\n        payload['value'] = data['value'];\n    }\n    if (data['currency']) {\n        payload['currency'] = data['currency'];\n    }\n    if (data['orderId']) {\n        payload['id'] = data['orderId'];\n    }\n    if (Array.isArray(data['contents'])) {\n        payload['contents'] = data['contents'].map((item) => {\n            const content = {};\n            if (item.id) {\n                content['product_id'] = item.id;\n            }\n            if (item.quantity) {\n                content['quantity'] = item.quantity;\n            }\n            if (item.item_price || item.item_price === 0) {\n                content['price'] = item.item_price;\n            }\n            if (item.category) {\n                content['product_category'] = item.category;\n            }\n            if (item.title) {\n                content['product_name'] = item.title;\n            }\n            if (item.type) {\n                content['product_type'] = item.type;\n            }\n            if (item.sku) {\n                content['product_sku'] = item.sku;\n            }\n            if (item.variantId) {\n                content['product_variant_id'] = item.variantId;\n            }\n            return content;\n        });\n    }\n    return payload;\n};\nconst tag = ({ data, eventName, manifestVariables, eventId }) => {\n    const payload = {\n        sdkVersion: \"1.45.1\" ,\n    };\n    const windowWithAH = window;\n    if (windowWithAH.ahTrack &&\n        !!manifestVariables['pixelId'] &&\n        manifestVariables['enableBrowser'] === '1') {\n        const { skipTransformation, ...eventData } = data;\n        const payload = {\n            ...(skipTransformation ? eventData : prepareData(data)),\n            event_id: eventId,\n        };\n        try {\n            windowWithAH.ahTrack(snakeCase(eventName), payload);\n        }\n        catch (e) {\n            console.warn('AudioHook track call failed', e);\n        }\n    }\n    return payload;\n};\n\n// eslint-disable-next-line @nx/enforce-module-boundaries\nconst data = {\n    name: packageName,\n    tag,\n    init,\n};\ntry {\n    if (typeof window != 'undefined') {\n        if (!window.edgetagProviders) {\n            window.edgetagProviders = [];\n        }\n        window.edgetagProviders.push(data);\n    }\n}\ncatch {\n    // No window\n}\n\nmodule.exports = data;\n"]}