@tagadapay/plugin-sdk 3.1.8 → 3.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/README.md +1129 -1129
  2. package/build-cdn.js +223 -113
  3. package/dist/external-tracker.js +135 -81
  4. package/dist/external-tracker.min.js +2 -2
  5. package/dist/external-tracker.min.js.map +4 -4
  6. package/dist/react/providers/TagadaProvider.js +5 -5
  7. package/dist/tagada-sdk.js +10164 -0
  8. package/dist/tagada-sdk.min.js +45 -0
  9. package/dist/tagada-sdk.min.js.map +7 -0
  10. package/dist/v2/core/funnelClient.d.ts +91 -4
  11. package/dist/v2/core/funnelClient.js +42 -3
  12. package/dist/v2/core/resources/funnel.d.ts +10 -0
  13. package/dist/v2/core/resources/payments.d.ts +21 -1
  14. package/dist/v2/core/resources/payments.js +34 -0
  15. package/dist/v2/core/utils/currency.d.ts +14 -0
  16. package/dist/v2/core/utils/currency.js +40 -0
  17. package/dist/v2/core/utils/index.d.ts +1 -0
  18. package/dist/v2/core/utils/index.js +2 -0
  19. package/dist/v2/core/utils/pluginConfig.d.ts +8 -0
  20. package/dist/v2/core/utils/pluginConfig.js +28 -0
  21. package/dist/v2/core/utils/previewMode.d.ts +4 -0
  22. package/dist/v2/core/utils/previewMode.js +28 -0
  23. package/dist/v2/core/utils/previewModeIndicator.js +101 -101
  24. package/dist/v2/index.d.ts +7 -6
  25. package/dist/v2/index.js +6 -6
  26. package/dist/v2/react/components/ApplePayButton.d.ts +1 -2
  27. package/dist/v2/react/components/ApplePayButton.js +57 -58
  28. package/dist/v2/react/components/FunnelScriptInjector.js +161 -172
  29. package/dist/v2/react/components/GooglePayButton.d.ts +2 -0
  30. package/dist/v2/react/components/GooglePayButton.js +80 -64
  31. package/dist/v2/react/hooks/useFunnel.d.ts +8 -2
  32. package/dist/v2/react/hooks/useFunnel.js +2 -2
  33. package/dist/v2/react/hooks/useGoogleAutocomplete.d.ts +10 -0
  34. package/dist/v2/react/hooks/useGoogleAutocomplete.js +48 -0
  35. package/dist/v2/react/hooks/useGooglePayCheckout.d.ts +21 -0
  36. package/dist/v2/react/hooks/useGooglePayCheckout.js +198 -0
  37. package/dist/v2/react/hooks/usePaymentPolling.d.ts +7 -1
  38. package/dist/v2/react/hooks/usePaymentQuery.d.ts +2 -0
  39. package/dist/v2/react/hooks/usePaymentQuery.js +435 -8
  40. package/dist/v2/react/hooks/usePixelTracking.d.ts +56 -0
  41. package/dist/v2/react/hooks/usePixelTracking.js +508 -0
  42. package/dist/v2/react/hooks/useStepConfig.d.ts +8 -6
  43. package/dist/v2/react/hooks/useStepConfig.js +3 -2
  44. package/dist/v2/react/index.d.ts +6 -2
  45. package/dist/v2/react/index.js +3 -1
  46. package/dist/v2/react/providers/ExpressPaymentMethodsProvider.d.ts +1 -0
  47. package/dist/v2/react/providers/ExpressPaymentMethodsProvider.js +33 -13
  48. package/dist/v2/react/providers/TagadaProvider.js +22 -21
  49. package/dist/v2/standalone/index.js +1 -1
  50. package/package.json +112 -112
@@ -1,5 +1,5 @@
1
1
  /**
2
- * TagadaPay External Tracker v3.1.8
2
+ * TagadaPay External Tracker v3.1.10
3
3
  * CDN Bundle - Standalone tracking for external pages (Debug Build)
4
4
  * @license MIT
5
5
  */
@@ -334,29 +334,6 @@ var TagadaTrackerBundle = (() => {
334
334
  }
335
335
  });
336
336
 
337
- // src/v2/core/utils/sessionStorage.ts
338
- function setFunnelSessionCookie(sessionId) {
339
- if (typeof document === "undefined") return;
340
- document.cookie = "".concat(FUNNEL_SESSION_COOKIE_NAME, "=").concat(sessionId, "; path=/; max-age=").concat(SESSION_MAX_AGE, "; SameSite=Lax");
341
- }
342
- function getFunnelSessionCookie() {
343
- if (typeof document === "undefined") return void 0;
344
- const cookie = document.cookie.split("; ").find((row) => row.startsWith("".concat(FUNNEL_SESSION_COOKIE_NAME, "=")));
345
- return cookie ? cookie.split("=")[1] : void 0;
346
- }
347
- function clearFunnelSessionCookie() {
348
- if (typeof document === "undefined") return;
349
- document.cookie = "".concat(FUNNEL_SESSION_COOKIE_NAME, "=; path=/; max-age=0");
350
- }
351
- var FUNNEL_SESSION_COOKIE_NAME, SESSION_MAX_AGE;
352
- var init_sessionStorage = __esm({
353
- "src/v2/core/utils/sessionStorage.ts"() {
354
- "use strict";
355
- FUNNEL_SESSION_COOKIE_NAME = "tgd-funnel-session-id";
356
- SESSION_MAX_AGE = 30 * 24 * 60 * 60;
357
- }
358
- });
359
-
360
337
  // src/v2/core/utils/tokenStorage.ts
361
338
  function setClientToken(token) {
362
339
  if (typeof window !== "undefined") {
@@ -400,6 +377,29 @@ var TagadaTrackerBundle = (() => {
400
377
  }
401
378
  });
402
379
 
380
+ // src/v2/core/utils/sessionStorage.ts
381
+ function setFunnelSessionCookie(sessionId) {
382
+ if (typeof document === "undefined") return;
383
+ document.cookie = "".concat(FUNNEL_SESSION_COOKIE_NAME, "=").concat(sessionId, "; path=/; max-age=").concat(SESSION_MAX_AGE, "; SameSite=Lax");
384
+ }
385
+ function getFunnelSessionCookie() {
386
+ if (typeof document === "undefined") return void 0;
387
+ const cookie = document.cookie.split("; ").find((row) => row.startsWith("".concat(FUNNEL_SESSION_COOKIE_NAME, "=")));
388
+ return cookie ? cookie.split("=")[1] : void 0;
389
+ }
390
+ function clearFunnelSessionCookie() {
391
+ if (typeof document === "undefined") return;
392
+ document.cookie = "".concat(FUNNEL_SESSION_COOKIE_NAME, "=; path=/; max-age=0");
393
+ }
394
+ var FUNNEL_SESSION_COOKIE_NAME, SESSION_MAX_AGE;
395
+ var init_sessionStorage = __esm({
396
+ "src/v2/core/utils/sessionStorage.ts"() {
397
+ "use strict";
398
+ FUNNEL_SESSION_COOKIE_NAME = "tgd-funnel-session-id";
399
+ SESSION_MAX_AGE = 30 * 24 * 60 * 60;
400
+ }
401
+ });
402
+
403
403
  // src/v2/core/utils/previewMode.ts
404
404
  function getFromStorage(key) {
405
405
  if (typeof window === "undefined") return null;
@@ -489,6 +489,26 @@ var TagadaTrackerBundle = (() => {
489
489
  tagadaClientBaseUrl = storageBaseUrl;
490
490
  }
491
491
  }
492
+ let currency;
493
+ const urlCurrency = urlParams.get("currency");
494
+ if (urlCurrency) {
495
+ currency = urlCurrency;
496
+ } else {
497
+ const storageCurrency = getFromStorage(STORAGE_KEYS.CURRENCY) || getFromCookie(STORAGE_KEYS.CURRENCY);
498
+ if (storageCurrency) {
499
+ currency = storageCurrency;
500
+ }
501
+ }
502
+ let locale;
503
+ const urlLocale = urlParams.get("locale");
504
+ if (urlLocale) {
505
+ locale = urlLocale;
506
+ } else {
507
+ const storageLocale = getFromStorage(STORAGE_KEYS.LOCALE) || getFromCookie(STORAGE_KEYS.LOCALE);
508
+ if (storageLocale) {
509
+ locale = storageLocale;
510
+ }
511
+ }
492
512
  return {
493
513
  forceReset,
494
514
  token,
@@ -498,7 +518,9 @@ var TagadaTrackerBundle = (() => {
498
518
  funnelTracking,
499
519
  funnelEnv,
500
520
  tagadaClientEnv,
501
- tagadaClientBaseUrl
521
+ tagadaClientBaseUrl,
522
+ currency,
523
+ locale
502
524
  };
503
525
  }
504
526
  function isDraftMode() {
@@ -644,7 +666,9 @@ var TagadaTrackerBundle = (() => {
644
666
  FUNNEL_TRACKING: "tgd_funnel_tracking",
645
667
  FORCE_RESET: "tgd_force_reset",
646
668
  CLIENT_ENV: "tgd_client_env",
647
- CLIENT_BASE_URL: "tgd_client_base_url"
669
+ CLIENT_BASE_URL: "tgd_client_base_url",
670
+ CURRENCY: "tgd_currency",
671
+ LOCALE: "tgd_locale"
648
672
  };
649
673
  }
650
674
  });
@@ -921,7 +945,9 @@ var TagadaTrackerBundle = (() => {
921
945
  var funnelClient_exports = {};
922
946
  __export(funnelClient_exports, {
923
947
  FunnelClient: () => FunnelClient,
948
+ TrackingProvider: () => TrackingProvider,
924
949
  getAssignedPaymentFlowId: () => getAssignedPaymentFlowId,
950
+ getAssignedPixels: () => getAssignedPixels,
925
951
  getAssignedScripts: () => getAssignedScripts,
926
952
  getAssignedStaticResources: () => getAssignedStaticResources,
927
953
  getAssignedStepConfig: () => getAssignedStepConfig,
@@ -1085,16 +1111,39 @@ var TagadaTrackerBundle = (() => {
1085
1111
  }
1086
1112
  return scripts.length > 0 ? scripts : void 0;
1087
1113
  }
1088
- var localFunnelConfigCache, localFunnelConfigLoading, FunnelClient;
1114
+ function getAssignedPixels() {
1115
+ const stepConfig = getAssignedStepConfig();
1116
+ const rawPixels = stepConfig == null ? void 0 : stepConfig.pixels;
1117
+ if (!rawPixels || typeof rawPixels !== "object") return void 0;
1118
+ const normalized = {};
1119
+ for (const [key, value] of Object.entries(rawPixels)) {
1120
+ if (!value) continue;
1121
+ if (Array.isArray(value)) {
1122
+ normalized[key] = value;
1123
+ } else if (typeof value === "object") {
1124
+ normalized[key] = [value];
1125
+ }
1126
+ }
1127
+ return Object.keys(normalized).length > 0 ? normalized : void 0;
1128
+ }
1129
+ var TrackingProvider, localFunnelConfigCache, localFunnelConfigLoading, FunnelClient;
1089
1130
  var init_funnelClient = __esm({
1090
1131
  "src/v2/core/funnelClient.ts"() {
1091
1132
  "use strict";
1133
+ init_environment();
1092
1134
  init_funnel();
1093
1135
  init_eventDispatcher();
1094
- init_sessionStorage();
1095
- init_environment();
1096
1136
  init_previewMode();
1097
1137
  init_previewModeIndicator();
1138
+ init_sessionStorage();
1139
+ TrackingProvider = /* @__PURE__ */ ((TrackingProvider2) => {
1140
+ TrackingProvider2["FACEBOOK"] = "facebook";
1141
+ TrackingProvider2["TIKTOK"] = "tiktok";
1142
+ TrackingProvider2["SNAPCHAT"] = "snapchat";
1143
+ TrackingProvider2["META_CONVERSION"] = "meta_conversion";
1144
+ TrackingProvider2["GTM"] = "gtm";
1145
+ return TrackingProvider2;
1146
+ })(TrackingProvider || {});
1098
1147
  localFunnelConfigCache = void 0;
1099
1148
  localFunnelConfigLoading = false;
1100
1149
  FunnelClient = class {
@@ -1227,8 +1276,12 @@ var TagadaTrackerBundle = (() => {
1227
1276
  // 🎯 Pass funnel environment (staging/production)
1228
1277
  tagadaClientEnv: sdkParams.tagadaClientEnv,
1229
1278
  // 🎯 Pass client environment override
1230
- tagadaClientBaseUrl: sdkParams.tagadaClientBaseUrl
1279
+ tagadaClientBaseUrl: sdkParams.tagadaClientBaseUrl,
1231
1280
  // 🎯 Pass custom API base URL
1281
+ currency: sdkParams.currency,
1282
+ // 🌍 Pass display currency override
1283
+ locale: sdkParams.locale
1284
+ // 🌍 Pass display locale override
1232
1285
  });
1233
1286
  if (response.success && response.context) {
1234
1287
  const enriched = this.enrichContext(response.context);
@@ -1507,14 +1560,14 @@ var TagadaTrackerBundle = (() => {
1507
1560
  init_environment();
1508
1561
  init_funnelClient();
1509
1562
 
1510
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/helpers/bind.js
1563
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/helpers/bind.js
1511
1564
  function bind(fn, thisArg) {
1512
1565
  return function wrap() {
1513
1566
  return fn.apply(thisArg, arguments);
1514
1567
  };
1515
1568
  }
1516
1569
 
1517
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/utils.js
1570
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/utils.js
1518
1571
  var { toString } = Object.prototype;
1519
1572
  var { getPrototypeOf } = Object;
1520
1573
  var { iterator, toStringTag } = Symbol;
@@ -1899,7 +1952,7 @@ var TagadaTrackerBundle = (() => {
1899
1952
  isIterable
1900
1953
  };
1901
1954
 
1902
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/core/AxiosError.js
1955
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/core/AxiosError.js
1903
1956
  function AxiosError(message, code, config, request, response) {
1904
1957
  Error.call(this);
1905
1958
  if (Error.captureStackTrace) {
@@ -1978,10 +2031,10 @@ var TagadaTrackerBundle = (() => {
1978
2031
  };
1979
2032
  var AxiosError_default = AxiosError;
1980
2033
 
1981
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/helpers/null.js
2034
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/helpers/null.js
1982
2035
  var null_default = null;
1983
2036
 
1984
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/helpers/toFormData.js
2037
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/helpers/toFormData.js
1985
2038
  function isVisitable(thing) {
1986
2039
  return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
1987
2040
  }
@@ -2096,7 +2149,7 @@ var TagadaTrackerBundle = (() => {
2096
2149
  }
2097
2150
  var toFormData_default = toFormData;
2098
2151
 
2099
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
2152
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
2100
2153
  function encode(str) {
2101
2154
  const charMap = {
2102
2155
  "!": "%21",
@@ -2129,7 +2182,7 @@ var TagadaTrackerBundle = (() => {
2129
2182
  };
2130
2183
  var AxiosURLSearchParams_default = AxiosURLSearchParams;
2131
2184
 
2132
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/helpers/buildURL.js
2185
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/helpers/buildURL.js
2133
2186
  function encode2(val) {
2134
2187
  return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
2135
2188
  }
@@ -2160,7 +2213,7 @@ var TagadaTrackerBundle = (() => {
2160
2213
  return url;
2161
2214
  }
2162
2215
 
2163
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/core/InterceptorManager.js
2216
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/core/InterceptorManager.js
2164
2217
  var InterceptorManager = class {
2165
2218
  constructor() {
2166
2219
  this.handlers = [];
@@ -2224,23 +2277,23 @@ var TagadaTrackerBundle = (() => {
2224
2277
  };
2225
2278
  var InterceptorManager_default = InterceptorManager;
2226
2279
 
2227
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/defaults/transitional.js
2280
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/defaults/transitional.js
2228
2281
  var transitional_default = {
2229
2282
  silentJSONParsing: true,
2230
2283
  forcedJSONParsing: true,
2231
2284
  clarifyTimeoutError: false
2232
2285
  };
2233
2286
 
2234
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js
2287
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js
2235
2288
  var URLSearchParams_default = typeof URLSearchParams !== "undefined" ? URLSearchParams : AxiosURLSearchParams_default;
2236
2289
 
2237
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/platform/browser/classes/FormData.js
2290
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/platform/browser/classes/FormData.js
2238
2291
  var FormData_default = typeof FormData !== "undefined" ? FormData : null;
2239
2292
 
2240
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/platform/browser/classes/Blob.js
2293
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/platform/browser/classes/Blob.js
2241
2294
  var Blob_default = typeof Blob !== "undefined" ? Blob : null;
2242
2295
 
2243
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/platform/browser/index.js
2296
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/platform/browser/index.js
2244
2297
  var browser_default = {
2245
2298
  isBrowser: true,
2246
2299
  classes: {
@@ -2251,7 +2304,7 @@ var TagadaTrackerBundle = (() => {
2251
2304
  protocols: ["http", "https", "file", "blob", "url", "data"]
2252
2305
  };
2253
2306
 
2254
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/platform/common/utils.js
2307
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/platform/common/utils.js
2255
2308
  var utils_exports = {};
2256
2309
  __export(utils_exports, {
2257
2310
  hasBrowserEnv: () => hasBrowserEnv,
@@ -2269,10 +2322,10 @@ var TagadaTrackerBundle = (() => {
2269
2322
  })();
2270
2323
  var origin = hasBrowserEnv && window.location.href || "http://localhost";
2271
2324
 
2272
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/platform/index.js
2325
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/platform/index.js
2273
2326
  var platform_default = __spreadValues(__spreadValues({}, utils_exports), browser_default);
2274
2327
 
2275
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/helpers/toURLEncodedForm.js
2328
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/helpers/toURLEncodedForm.js
2276
2329
  function toURLEncodedForm(data, options) {
2277
2330
  return toFormData_default(data, new platform_default.classes.URLSearchParams(), __spreadValues({
2278
2331
  visitor: function(value, key, path, helpers) {
@@ -2285,7 +2338,7 @@ var TagadaTrackerBundle = (() => {
2285
2338
  }, options));
2286
2339
  }
2287
2340
 
2288
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/helpers/formDataToJSON.js
2341
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/helpers/formDataToJSON.js
2289
2342
  function parsePropPath(name) {
2290
2343
  return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
2291
2344
  return match[0] === "[]" ? "" : match[1] || match[0];
@@ -2338,7 +2391,7 @@ var TagadaTrackerBundle = (() => {
2338
2391
  }
2339
2392
  var formDataToJSON_default = formDataToJSON;
2340
2393
 
2341
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/defaults/index.js
2394
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/defaults/index.js
2342
2395
  function stringifySafely(rawValue, parser, encoder) {
2343
2396
  if (utils_default.isString(rawValue)) {
2344
2397
  try {
@@ -2447,7 +2500,7 @@ var TagadaTrackerBundle = (() => {
2447
2500
  });
2448
2501
  var defaults_default = defaults;
2449
2502
 
2450
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/helpers/parseHeaders.js
2503
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/helpers/parseHeaders.js
2451
2504
  var ignoreDuplicateOf = utils_default.toObjectSet([
2452
2505
  "age",
2453
2506
  "authorization",
@@ -2492,7 +2545,7 @@ var TagadaTrackerBundle = (() => {
2492
2545
  return parsed;
2493
2546
  };
2494
2547
 
2495
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/core/AxiosHeaders.js
2548
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/core/AxiosHeaders.js
2496
2549
  var $internals = Symbol("internals");
2497
2550
  function normalizeHeader(header) {
2498
2551
  return header && String(header).trim().toLowerCase();
@@ -2721,7 +2774,7 @@ var TagadaTrackerBundle = (() => {
2721
2774
  utils_default.freezeMethods(AxiosHeaders);
2722
2775
  var AxiosHeaders_default = AxiosHeaders;
2723
2776
 
2724
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/core/transformData.js
2777
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/core/transformData.js
2725
2778
  function transformData(fns, response) {
2726
2779
  const config = this || defaults_default;
2727
2780
  const context = response || config;
@@ -2734,12 +2787,12 @@ var TagadaTrackerBundle = (() => {
2734
2787
  return data;
2735
2788
  }
2736
2789
 
2737
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/cancel/isCancel.js
2790
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/cancel/isCancel.js
2738
2791
  function isCancel(value) {
2739
2792
  return !!(value && value.__CANCEL__);
2740
2793
  }
2741
2794
 
2742
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/cancel/CanceledError.js
2795
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/cancel/CanceledError.js
2743
2796
  function CanceledError(message, config, request) {
2744
2797
  AxiosError_default.call(this, message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
2745
2798
  this.name = "CanceledError";
@@ -2749,7 +2802,7 @@ var TagadaTrackerBundle = (() => {
2749
2802
  });
2750
2803
  var CanceledError_default = CanceledError;
2751
2804
 
2752
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/core/settle.js
2805
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/core/settle.js
2753
2806
  function settle(resolve, reject, response) {
2754
2807
  const validateStatus2 = response.config.validateStatus;
2755
2808
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
@@ -2765,13 +2818,13 @@ var TagadaTrackerBundle = (() => {
2765
2818
  }
2766
2819
  }
2767
2820
 
2768
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/helpers/parseProtocol.js
2821
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/helpers/parseProtocol.js
2769
2822
  function parseProtocol(url) {
2770
2823
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
2771
2824
  return match && match[1] || "";
2772
2825
  }
2773
2826
 
2774
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/helpers/speedometer.js
2827
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/helpers/speedometer.js
2775
2828
  function speedometer(samplesCount, min) {
2776
2829
  samplesCount = samplesCount || 10;
2777
2830
  const bytes = new Array(samplesCount);
@@ -2807,7 +2860,7 @@ var TagadaTrackerBundle = (() => {
2807
2860
  }
2808
2861
  var speedometer_default = speedometer;
2809
2862
 
2810
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/helpers/throttle.js
2863
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/helpers/throttle.js
2811
2864
  function throttle(fn, freq) {
2812
2865
  let timestamp = 0;
2813
2866
  let threshold = 1e3 / freq;
@@ -2842,7 +2895,7 @@ var TagadaTrackerBundle = (() => {
2842
2895
  }
2843
2896
  var throttle_default = throttle;
2844
2897
 
2845
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/helpers/progressEventReducer.js
2898
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/helpers/progressEventReducer.js
2846
2899
  var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
2847
2900
  let bytesNotified = 0;
2848
2901
  const _speedometer = speedometer_default(50, 250);
@@ -2877,7 +2930,7 @@ var TagadaTrackerBundle = (() => {
2877
2930
  };
2878
2931
  var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
2879
2932
 
2880
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/helpers/isURLSameOrigin.js
2933
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/helpers/isURLSameOrigin.js
2881
2934
  var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url) => {
2882
2935
  url = new URL(url, platform_default.origin);
2883
2936
  return origin2.protocol === url.protocol && origin2.host === url.host && (isMSIE || origin2.port === url.port);
@@ -2886,7 +2939,7 @@ var TagadaTrackerBundle = (() => {
2886
2939
  platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
2887
2940
  ) : () => true;
2888
2941
 
2889
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/helpers/cookies.js
2942
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/helpers/cookies.js
2890
2943
  var cookies_default = platform_default.hasStandardBrowserEnv ? (
2891
2944
  // Standard browser envs support document.cookie
2892
2945
  {
@@ -2932,17 +2985,17 @@ var TagadaTrackerBundle = (() => {
2932
2985
  }
2933
2986
  );
2934
2987
 
2935
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/helpers/isAbsoluteURL.js
2988
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/helpers/isAbsoluteURL.js
2936
2989
  function isAbsoluteURL(url) {
2937
2990
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
2938
2991
  }
2939
2992
 
2940
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/helpers/combineURLs.js
2993
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/helpers/combineURLs.js
2941
2994
  function combineURLs(baseURL, relativeURL) {
2942
2995
  return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
2943
2996
  }
2944
2997
 
2945
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/core/buildFullPath.js
2998
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/core/buildFullPath.js
2946
2999
  function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
2947
3000
  let isRelativeUrl = !isAbsoluteURL(requestedURL);
2948
3001
  if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
@@ -2951,7 +3004,7 @@ var TagadaTrackerBundle = (() => {
2951
3004
  return requestedURL;
2952
3005
  }
2953
3006
 
2954
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/core/mergeConfig.js
3007
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/core/mergeConfig.js
2955
3008
  var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? __spreadValues({}, thing) : thing;
2956
3009
  function mergeConfig(config1, config2) {
2957
3010
  config2 = config2 || {};
@@ -3031,7 +3084,7 @@ var TagadaTrackerBundle = (() => {
3031
3084
  return config;
3032
3085
  }
3033
3086
 
3034
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/helpers/resolveConfig.js
3087
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/helpers/resolveConfig.js
3035
3088
  var resolveConfig_default = (config) => {
3036
3089
  const newConfig = mergeConfig({}, config);
3037
3090
  let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
@@ -3068,7 +3121,7 @@ var TagadaTrackerBundle = (() => {
3068
3121
  return newConfig;
3069
3122
  };
3070
3123
 
3071
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/adapters/xhr.js
3124
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/adapters/xhr.js
3072
3125
  var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
3073
3126
  var xhr_default = isXHRAdapterSupported && function(config) {
3074
3127
  return new Promise(function dispatchXhrRequest(resolve, reject) {
@@ -3198,7 +3251,7 @@ var TagadaTrackerBundle = (() => {
3198
3251
  });
3199
3252
  };
3200
3253
 
3201
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/helpers/composeSignals.js
3254
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/helpers/composeSignals.js
3202
3255
  var composeSignals = (signals, timeout) => {
3203
3256
  const { length } = signals = signals ? signals.filter(Boolean) : [];
3204
3257
  if (timeout || length) {
@@ -3234,7 +3287,7 @@ var TagadaTrackerBundle = (() => {
3234
3287
  };
3235
3288
  var composeSignals_default = composeSignals;
3236
3289
 
3237
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/helpers/trackStream.js
3290
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/helpers/trackStream.js
3238
3291
  var streamChunk = function* (chunk, chunkSize) {
3239
3292
  let len = chunk.byteLength;
3240
3293
  if (!chunkSize || len < chunkSize) {
@@ -3327,7 +3380,7 @@ var TagadaTrackerBundle = (() => {
3327
3380
  });
3328
3381
  };
3329
3382
 
3330
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/adapters/fetch.js
3383
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/adapters/fetch.js
3331
3384
  var DEFAULT_CHUNK_SIZE = 64 * 1024;
3332
3385
  var { isFunction: isFunction2 } = utils_default;
3333
3386
  var globalFetchAPI = (({ Request, Response }) => ({
@@ -3535,7 +3588,7 @@ var TagadaTrackerBundle = (() => {
3535
3588
  };
3536
3589
  var adapter = getFetch();
3537
3590
 
3538
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/adapters/adapters.js
3591
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/adapters/adapters.js
3539
3592
  var knownAdapters = {
3540
3593
  http: null_default,
3541
3594
  xhr: xhr_default,
@@ -3600,7 +3653,7 @@ var TagadaTrackerBundle = (() => {
3600
3653
  adapters: knownAdapters
3601
3654
  };
3602
3655
 
3603
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/core/dispatchRequest.js
3656
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/core/dispatchRequest.js
3604
3657
  function throwIfCancellationRequested(config) {
3605
3658
  if (config.cancelToken) {
3606
3659
  config.cancelToken.throwIfRequested();
@@ -3645,10 +3698,10 @@ var TagadaTrackerBundle = (() => {
3645
3698
  });
3646
3699
  }
3647
3700
 
3648
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/env/data.js
3649
- var VERSION = "1.13.0";
3701
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/env/data.js
3702
+ var VERSION = "1.13.2";
3650
3703
 
3651
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/helpers/validator.js
3704
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/helpers/validator.js
3652
3705
  var validators = {};
3653
3706
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
3654
3707
  validators[type] = function validator(thing) {
@@ -3712,7 +3765,7 @@ var TagadaTrackerBundle = (() => {
3712
3765
  validators
3713
3766
  };
3714
3767
 
3715
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/core/Axios.js
3768
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/core/Axios.js
3716
3769
  var validators2 = validator_default.validators;
3717
3770
  var Axios = class {
3718
3771
  constructor(instanceConfig) {
@@ -3884,7 +3937,7 @@ var TagadaTrackerBundle = (() => {
3884
3937
  });
3885
3938
  var Axios_default = Axios;
3886
3939
 
3887
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/cancel/CancelToken.js
3940
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/cancel/CancelToken.js
3888
3941
  var CancelToken = class _CancelToken {
3889
3942
  constructor(executor) {
3890
3943
  if (typeof executor !== "function") {
@@ -3982,19 +4035,19 @@ var TagadaTrackerBundle = (() => {
3982
4035
  };
3983
4036
  var CancelToken_default = CancelToken;
3984
4037
 
3985
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/helpers/spread.js
4038
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/helpers/spread.js
3986
4039
  function spread(callback) {
3987
4040
  return function wrap(arr) {
3988
4041
  return callback.apply(null, arr);
3989
4042
  };
3990
4043
  }
3991
4044
 
3992
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/helpers/isAxiosError.js
4045
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/helpers/isAxiosError.js
3993
4046
  function isAxiosError(payload) {
3994
4047
  return utils_default.isObject(payload) && payload.isAxiosError === true;
3995
4048
  }
3996
4049
 
3997
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/helpers/HttpStatusCode.js
4050
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/helpers/HttpStatusCode.js
3998
4051
  var HttpStatusCode = {
3999
4052
  Continue: 100,
4000
4053
  SwitchingProtocols: 101,
@@ -4071,7 +4124,7 @@ var TagadaTrackerBundle = (() => {
4071
4124
  });
4072
4125
  var HttpStatusCode_default = HttpStatusCode;
4073
4126
 
4074
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/lib/axios.js
4127
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/lib/axios.js
4075
4128
  function createInstance(defaultConfig) {
4076
4129
  const context = new Axios_default(defaultConfig);
4077
4130
  const instance = bind(Axios_default.prototype.request, context);
@@ -4104,7 +4157,7 @@ var TagadaTrackerBundle = (() => {
4104
4157
  axios.default = axios;
4105
4158
  var axios_default = axios;
4106
4159
 
4107
- // ../../node_modules/.pnpm/axios@1.13.0/node_modules/axios/index.js
4160
+ // ../../node_modules/.pnpm/axios@1.13.2/node_modules/axios/index.js
4108
4161
  var {
4109
4162
  Axios: Axios2,
4110
4163
  AxiosError: AxiosError2,
@@ -7837,6 +7890,7 @@ var TagadaTrackerBundle = (() => {
7837
7890
  }
7838
7891
  };
7839
7892
  var getMetaContent = (name) => {
7893
+ if (typeof document === "undefined") return void 0;
7840
7894
  const metaTag = document.querySelector('meta[name="'.concat(name, '"]'));
7841
7895
  return (metaTag == null ? void 0 : metaTag.getAttribute("content")) || void 0;
7842
7896
  };