@iccandle/news 0.0.6 → 0.0.8

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.
@@ -1,10 +1,10 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.cta-loader__overlay{background-color:var(--iccandle-background);position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.cta-loader__content{position:relative;display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center;gap:9rem;padding-left:1.5rem;padding-right:1.5rem}.cta-loader__video{height:100%;max-height:18rem;width:100%;object-fit:contain}@media(min-width:768px){.cta-loader__video{max-height:20rem}}.cta-loader__bar-wrapper{width:100%;max-width:24rem}.cta-loader__bar-track{position:relative;height:.25rem;overflow:hidden;border-radius:9999px;background-color:var( --iccandle-background-secondary, rgba(128, 128, 128, .7) )}.cta-loader__bar-fill{position:absolute;top:0;bottom:0;left:0;width:100%;transform-origin:left;border-radius:9999px;background-color:var(--iccandle-primary, #ffffff);will-change:transform}.news-widget_detail_page__container{background:var(--iccandle-background);display:flex;height:100%;width:100%}.news-widget_detail_page__right_border{display:flex;flex:1;flex-direction:column;min-width:50%;border-right-style:solid;border-right-color:var(--iccandle-border);border-right-width:1px}.news-widget_detail_page__event_details{height:calc(100% - 57px)}.news-widget_detail_page__title_container{display:flex;height:57px;width:100%;align-items:center;justify-content:space-between;border-bottom-style:solid;border-bottom-color:var(--iccandle-border);border-bottom-width:1px}.news-widget_detail_page__title_padding{display:flex;align-items:center;gap:8px;padding:16px}.news-widget_detail_page__title_text{font-size:18px;line-height:calc(1.75 / 1.125);font-weight:600;color:var(--iccandle-title)}.news-widget_detail_page__back_button{height:2.25rem;width:2.25rem;border:none}.news-widget_detail_page__back_icon{color:var(--iccandle-text);height:1.25rem;width:1.25rem}.news-widget_event_details__container{background-color:var(--iccandle-background);box-sizing:border-box;display:flex;min-height:100%;width:100%;min-width:50%;flex:1;flex-direction:column;overflow:auto;gap:16px;padding:16px}.news-widget_event_details__container_sm{height:50%}@media(min-width:40rem){.news-widget_event_details__container_sm{height:100%}}.news-widget_event_details__ghost_button{background-color:var(--iccandle-background);position:absolute;right:50%;bottom:-8px;height:12px;width:24px;color:var(--iccandle-text);border-radius:calc(infinity * 1px);border-style:solid;border-width:1px;border-color:var(--iccandle-border);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.news-widget_event_details__ghost_button_open{rotate:180deg}.news-widget_event_details__icon{height:16px;width:16px}.news-widget_event_details__chart_wrapper{position:relative;height:100%;min-height:500px}.news-widget_event_details__chart{height:100%;min-height:500px;overflow:hidden;border-radius:.75rem;border-style:solid;border-width:1px;border-color:var(--iccandle-border)}.news-widget_event_details_card__container{background-color:var(--iccandle-background);position:relative;border-radius:1rem;border-style:solid;border-width:1px;border-color:var(--iccandle-border);padding:.75rem}@media(min-width:40rem){.news-widget_event_details_card__container{min-height:170px;padding:1rem}}.news-widget_event_details_card__text{font-weight:600;color:var(--iccandle-news-details-title)}.news-widget_event_details_card__event_name{line-height:1.25;font-weight:700;font-size:1rem;color:var(--iccandle-title)}@media(min-width:40rem){.news-widget_event_details_card__event_name{font-size:1.125rem;line-height:1.75rem}}.news-widget_event_details_card__status_container{display:flex;align-items:center;gap:.25rem;font-size:.75rem;line-height:calc(1 / .75);text-wrap:nowrap;color:var(--iccandle-title)}.news-widget_event_details_card__status{height:.5rem;width:.5rem;border-radius:calc(infinity * 1px)}.news-widget_event_details_card__collapsible{display:grid;width:100%;overflow:hidden;transition:grid-template-rows .5s ease-in-out,opacity .5s ease-in-out}.news-widget_event_details_card__collapsible--open{grid-template-rows:1fr;opacity:1}.news-widget_event_details_card__collapsible--closed{grid-template-rows:0fr;opacity:0}.news-widget_event_details_card__text_bold{font-size:.875rem;line-height:1.25rem;font-weight:700}.news-widget_event_details_card__body{display:flex;height:100%;flex-direction:column;align-items:stretch;justify-content:space-between;gap:.75rem}@media(min-width:40rem){.news-widget_event_details_card__body{flex-direction:row;gap:.25rem}}.news-widget_event_details_card__left{display:flex;width:100%;flex-direction:column;gap:.5rem;border-bottom:1px solid var(--iccandle-border);padding-bottom:.75rem}@media(min-width:40rem){.news-widget_event_details_card__left{border-bottom:none;border-right:1px solid var(--iccandle-border);padding-bottom:0;padding-right:1rem}}.news-widget_event_details_card__header_row{display:flex;width:100%;align-items:flex-start;gap:.5rem}@media(min-width:40rem){.news-widget_event_details_card__header_row{align-items:center;gap:.75rem}}.news-widget_event_details_card__header_inner{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:.5rem}.news-widget_event_details_card__timestamp_row{display:flex;width:100%;align-items:center;justify-content:space-between;gap:.5rem}.news-widget_event_details_card__timestamp{font-size:.875rem;color:var(--iccandle-gray)}.news-widget_event_details_card__currency_row{display:flex;width:100%;align-items:center;gap:.5rem}@media(min-width:40rem){.news-widget_event_details_card__currency_row{max-height:2.25rem;gap:.75rem}}.news-widget_event_details_card__currency_icon{width:1.75rem;height:1.75rem;flex-shrink:0}@media(min-width:40rem){.news-widget_event_details_card__currency_icon{width:2.25rem;height:2.25rem}}.news-widget_event_details_card__currency_img{height:100%;width:100%;border-radius:9999px;object-fit:cover}.news-widget_event_details_card__speech_icon{width:1.25rem;height:1.25rem;flex-shrink:0}@media(min-width:40rem){.news-widget_event_details_card__speech_icon{width:1.75rem;height:1.75rem}}.news-widget_event_details_card__values_row{display:flex;width:100%;flex-direction:column;gap:.5rem}@media(min-width:40rem){.news-widget_event_details_card__values_row{flex-direction:row;justify-content:space-between}}.news-widget_event_details_card__values_group{display:flex;flex-wrap:wrap;align-items:flex-start;gap:.5rem}@media(min-width:40rem){.news-widget_event_details_card__values_group{align-items:center;gap:.75rem}}.news-widget_event_details_card__label{font-size:.75rem;font-weight:500;color:var(--iccandle-dark-gray)}.news-widget_event_details_card__fomc_source{margin-top:.5rem;font-size:.75rem;color:var(--iccandle-news-details-title)}@media(min-width:40rem){.news-widget_event_details_card__fomc_source{font-size:.875rem}}.news-widget_event_details_card__fomc_link{word-break:break-all;color:#3b82f6;text-decoration:underline}.news-widget_event_details_card__right{display:flex;width:100%;flex:1;flex-direction:column;align-items:flex-end;justify-content:center;gap:.75rem;padding-left:.25rem}@media(min-width:40rem){.news-widget_event_details_card__right{min-width:40%;padding-left:1rem}}.news-widget_event_details_card__description{font-size:.75rem;color:var(--iccandle-dark-gray);text-align:start;overflow-wrap:break-word;line-height:var(1 / .75)}.news-widget_event_details_card__collapsible_inner{display:flex;min-height:0;flex-direction:column;gap:1rem;overflow:hidden;padding-top:1rem;text-align:left}.news-widget_event_details_card__previous_events_list{display:flex;gap:.75rem;overflow-x:auto;padding-bottom:.75rem}.news-widget_event_details_card__info{display:flex;flex-direction:column;border-radius:.375rem;border-style:solid;border-width:1px;border-color:color-mix(in oklab,var(--iccandle-muted) 50%,transparent);padding-inline:.5rem;padding-block:.25rem;box-shadow:0 1px 2px #0000000d;text-align:left}.news-widget_news_card__container{background:var(--iccandle-background);width:220px;flex-shrink:0;border-radius:.75rem;border-style:solid;border-width:1px;border-color:var(--iccandle-border);padding:.75rem}.news-widget_news_card__title{color:var(--iccandle-news-card-title);font-size:.875rem;line-height:1.25;font-weight:600;text-align:left}.news-widget_news_card__info_card{background:color-mix(in oklab,var(--iccandle-muted) 50%,transparent);flex:1;padding:.25rem;text-align:center;border-radius:.5rem}.news-widget_news_card__font_semibold{font-weight:600}.news-widget_news_card__info_row{display:flex;align-items:stretch;gap:.25rem;font-size:.75rem;line-height:1rem}.news-widget_news_card__label{color:var(--iccandle-gray);margin-bottom:.25rem}.news-widget_news_card__header{display:flex;align-items:flex-start;gap:.75rem;margin-bottom:.75rem}.news-widget_news_card__currency_icon{width:1.75rem;height:1.75rem;flex-shrink:0}.news-widget_news_card__currency_img{height:100%;width:100%;border-radius:9999px;object-fit:cover}.news-widget_news_card__meta{min-width:0}.news-widget_news_card__date{color:var(--iccandle-gray);margin-bottom:.125rem;font-size:.75rem;line-height:1rem}.news-widget_main__container{display:flex;height:100%;width:100%;flex-direction:column;overflow-y:auto}@media(min-width:1024px){.news-widget_main__container--lg{flex-direction:row;overflow-y:unset}}.news-widget_main__iframe_full{height:100%;width:100%;border:none}.news-widget_main__iframe_half{width:100%;height:100%;border:none;flex-shrink:0}@media(min-width:1024px){.news-widget_main__container--lg .news-widget_main__iframe_half{width:50%;height:100%;flex-shrink:1}}.news-widget_main__left{width:100%;height:100%;flex-shrink:0;display:flex;flex-direction:column}@media(min-width:1024px){.news-widget_main__container--lg .news-widget_main__left{width:50%;height:100%;flex-shrink:1}}.news-widget__button{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;color:var(--iccandle-text);transition:color .15s,background-color .15s}.news-widget__button:focus-visible{outline:none;box-shadow:0 0 0 2px var(--iccandle-background),0 0 0 4px var(--iccandle-primary)}.news-widget__button:disabled{pointer-events:none;opacity:.5}.news-widget__button svg{pointer-events:none;width:16px;height:16px;flex-shrink:0}.news-widget__button--ghost{background:transparent}.news-widget__button--ghost:hover{background-color:var(--iccandle-secondary)}.news-widget__button--icon{height:40px;width:40px;padding:0}.news-widget,.news-widget *:before,.news-widget *:after{margin:0;padding:0;border:0 solid}.news-widget,.news-widget *,.news-widget *:before,.news-widget *:after{box-sizing:border-box;letter-spacing:normal}.news-widget{line-height:1.5;tab-size:4;--iccandle-primary: #00dfb9;--iccandle-primary-gradient-end: #ffb84d;--iccandle-background: #ffffff;--iccandle-border: #d1d5dc;--iccandle-text: #000000;--iccandle-secondary: oklch( from var(--iccandle-background) clamp(.92, calc(l - .06) , .98) c h / .92 );--iccandle-green: #22c55e;--iccandle-gray: #667085;--iccandle-dark-gray: #667085;--iccandle-orange: #ffb84d;--iccandle-red: #ef4444;--iccandle-title: #000;--iccandle-news-card-title: #0a0a0a;--iccandle-news-details-title: #344054;--iccandle-muted: hsl(0 0% 96.1%);font-family:var( --iccandle-font, "Inter Tight", ui-sans-serif, system-ui, sans-serif );position:relative;height:100%}.dark{--iccandle-primary: #00dfb9;--iccandle-primary-gradient-end: #ffb84d;--iccandle-background: #1a1a1a;--iccandle-border: rgba(255, 255, 255, .2);--iccandle-text: #ffffff;--iccandle-secondary: oklch( from var(--iccandle-background) clamp(.22, calc(l + .22) , .34) c h / .92 );--iccandle-green: #22c55e;--iccandle-gray: #a3a3a3;--iccandle-dark-gray: #6a7282;--iccandle-orange: #ffb84d;--iccandle-red: #ef4444;--iccandle-title: #fff;--iccandle-news-card-title: #fafafa;--iccandle-news-details-title: #d1d5dc;--iccandle-muted: hsl(0 0% 14.9%)}.news-widget__container{height:100%;width:100%}.news-widget__red{color:var(--iccandle-red)}.news-widget__green{color:var(--iccandle-green)}.news-widget__gray{color:var(--iccandle-gray)}.news-widget__orange{color:var(--iccandle-orange)}.news-widget__bg_green{background:var(--iccandle-green)}.news-widget__bg_gray{background:var(--iccandle-gray)}.news-widget__bg_orange{background:var(--iccandle-orange)}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
2
- import Ae, { createContext as It, useContext as $t, useState as ae, useRef as ue, useCallback as Me, useEffect as pe, useMemo as Ue, forwardRef as Gt, createElement as ze } from "react";
3
- var ke = { exports: {} }, Re = {};
4
- var ft;
2
+ import Ue, { createContext as $t, useContext as Gt, useState as ce, useRef as ue, useCallback as Me, useEffect as pe, useMemo as Te, forwardRef as Jt, createElement as ze } from "react";
3
+ var ke = { exports: {} }, Ee = {};
4
+ var mt;
5
5
  function En() {
6
- if (ft) return Re;
7
- ft = 1;
6
+ if (mt) return Ee;
7
+ mt = 1;
8
8
  var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
9
9
  function n(s, r, i) {
10
10
  var o = null;
@@ -21,12 +21,12 @@ function En() {
21
21
  props: i
22
22
  };
23
23
  }
24
- return Re.Fragment = t, Re.jsx = n, Re.jsxs = n, Re;
24
+ return Ee.Fragment = t, Ee.jsx = n, Ee.jsxs = n, Ee;
25
25
  }
26
- var Ee = {};
27
- var mt;
26
+ var Se = {};
27
+ var _t;
28
28
  function Sn() {
29
- return mt || (mt = 1, process.env.NODE_ENV !== "production" && (function() {
29
+ return _t || (_t = 1, process.env.NODE_ENV !== "production" && (function() {
30
30
  function e(u) {
31
31
  if (u == null) return null;
32
32
  if (typeof u == "function")
@@ -41,7 +41,7 @@ function Sn() {
41
41
  return "StrictMode";
42
42
  case O:
43
43
  return "Suspense";
44
- case J:
44
+ case X:
45
45
  return "SuspenseList";
46
46
  case B:
47
47
  return "Activity";
@@ -59,7 +59,7 @@ function Sn() {
59
59
  case M:
60
60
  var g = u.render;
61
61
  return u = u.displayName, u || (u = g.displayName || g.name || "", u = u !== "" ? "ForwardRef(" + u + ")" : "ForwardRef"), u;
62
- case ce:
62
+ case se:
63
63
  return g = u.displayName || null, g !== null ? g : e(u.type) || "Memo";
64
64
  case k:
65
65
  g = u._payload, u = u._init;
@@ -82,8 +82,8 @@ function Sn() {
82
82
  }
83
83
  if (g) {
84
84
  g = console;
85
- var A = g.error, E = typeof Symbol == "function" && Symbol.toStringTag && u[Symbol.toStringTag] || u.constructor.name || "Object";
86
- return A.call(
85
+ var U = g.error, E = typeof Symbol == "function" && Symbol.toStringTag && u[Symbol.toStringTag] || u.constructor.name || "Object";
86
+ return U.call(
87
87
  g,
88
88
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
89
89
  E
@@ -109,37 +109,37 @@ function Sn() {
109
109
  return Error("react-stack-top-frame");
110
110
  }
111
111
  function o(u) {
112
- if (U.call(u, "key")) {
112
+ if (A.call(u, "key")) {
113
113
  var g = Object.getOwnPropertyDescriptor(u, "key").get;
114
114
  if (g && g.isReactWarning) return !1;
115
115
  }
116
116
  return u.key !== void 0;
117
117
  }
118
118
  function a(u, g) {
119
- function A() {
119
+ function U() {
120
120
  x || (x = !0, console.error(
121
121
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
122
122
  g
123
123
  ));
124
124
  }
125
- A.isReactWarning = !0, Object.defineProperty(u, "key", {
126
- get: A,
125
+ U.isReactWarning = !0, Object.defineProperty(u, "key", {
126
+ get: U,
127
127
  configurable: !0
128
128
  });
129
129
  }
130
130
  function f() {
131
131
  var u = e(this.type);
132
- return se[u] || (se[u] = !0, console.error(
132
+ return re[u] || (re[u] = !0, console.error(
133
133
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
134
134
  )), u = this.props.ref, u !== void 0 ? u : null;
135
135
  }
136
- function d(u, g, A, E, Y, H) {
137
- var S = A.ref;
136
+ function d(u, g, U, E, Y, H) {
137
+ var S = U.ref;
138
138
  return u = {
139
139
  $$typeof: p,
140
140
  type: u,
141
141
  key: g,
142
- props: A,
142
+ props: U,
143
143
  _owner: E
144
144
  }, (S !== void 0 ? S : null) !== null ? Object.defineProperty(u, "ref", {
145
145
  enumerable: !1,
@@ -166,7 +166,7 @@ function Sn() {
166
166
  value: H
167
167
  }), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
168
168
  }
169
- function l(u, g, A, E, Y, H) {
169
+ function l(u, g, U, E, Y, H) {
170
170
  var S = g.children;
171
171
  if (S !== void 0)
172
172
  if (E)
@@ -179,10 +179,10 @@ function Sn() {
179
179
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
180
180
  );
181
181
  else _(S);
182
- if (U.call(g, "key")) {
182
+ if (A.call(g, "key")) {
183
183
  S = e(u);
184
- var z = Object.keys(g).filter(function(X) {
185
- return X !== "key";
184
+ var z = Object.keys(g).filter(function(q) {
185
+ return q !== "key";
186
186
  });
187
187
  E = 0 < z.length ? "{key: someKey, " + z.join(": ..., ") + ": ...}" : "{key: someKey}", N[S + E] || (z = 0 < z.length ? "{" + z.join(": ..., ") + ": ...}" : "{}", console.error(
188
188
  `A props object containing a "key" prop is being spread into JSX:
@@ -197,82 +197,82 @@ React keys must be passed directly to JSX without using spread:
197
197
  S
198
198
  ), N[S + E] = !0);
199
199
  }
200
- if (S = null, A !== void 0 && (n(A), S = "" + A), o(g) && (n(g.key), S = "" + g.key), "key" in g) {
201
- A = {};
200
+ if (S = null, U !== void 0 && (n(U), S = "" + U), o(g) && (n(g.key), S = "" + g.key), "key" in g) {
201
+ U = {};
202
202
  for (var v in g)
203
- v !== "key" && (A[v] = g[v]);
204
- } else A = g;
203
+ v !== "key" && (U[v] = g[v]);
204
+ } else U = g;
205
205
  return S && a(
206
- A,
206
+ U,
207
207
  typeof u == "function" ? u.displayName || u.name || "Unknown" : u
208
208
  ), d(
209
209
  u,
210
210
  S,
211
- A,
211
+ U,
212
212
  r(),
213
213
  Y,
214
214
  H
215
215
  );
216
216
  }
217
217
  function _(u) {
218
- b(u) ? u._store && (u._store.validated = 1) : typeof u == "object" && u !== null && u.$$typeof === k && (u._payload.status === "fulfilled" ? b(u._payload.value) && u._payload.value._store && (u._payload.value._store.validated = 1) : u._store && (u._store.validated = 1));
218
+ C(u) ? u._store && (u._store.validated = 1) : typeof u == "object" && u !== null && u.$$typeof === k && (u._payload.status === "fulfilled" ? C(u._payload.value) && u._payload.value._store && (u._payload.value._store.validated = 1) : u._store && (u._store.validated = 1));
219
219
  }
220
- function b(u) {
220
+ function C(u) {
221
221
  return typeof u == "object" && u !== null && u.$$typeof === p;
222
222
  }
223
- var C = Ae, p = /* @__PURE__ */ Symbol.for("react.transitional.element"), w = /* @__PURE__ */ Symbol.for("react.portal"), h = /* @__PURE__ */ Symbol.for("react.fragment"), D = /* @__PURE__ */ Symbol.for("react.strict_mode"), F = /* @__PURE__ */ Symbol.for("react.profiler"), T = /* @__PURE__ */ Symbol.for("react.consumer"), j = /* @__PURE__ */ Symbol.for("react.context"), M = /* @__PURE__ */ Symbol.for("react.forward_ref"), O = /* @__PURE__ */ Symbol.for("react.suspense"), J = /* @__PURE__ */ Symbol.for("react.suspense_list"), ce = /* @__PURE__ */ Symbol.for("react.memo"), k = /* @__PURE__ */ Symbol.for("react.lazy"), B = /* @__PURE__ */ Symbol.for("react.activity"), le = /* @__PURE__ */ Symbol.for("react.client.reference"), Z = C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, U = Object.prototype.hasOwnProperty, L = Array.isArray, V = console.createTask ? console.createTask : function() {
223
+ var b = Ue, p = /* @__PURE__ */ Symbol.for("react.transitional.element"), w = /* @__PURE__ */ Symbol.for("react.portal"), h = /* @__PURE__ */ Symbol.for("react.fragment"), D = /* @__PURE__ */ Symbol.for("react.strict_mode"), F = /* @__PURE__ */ Symbol.for("react.profiler"), T = /* @__PURE__ */ Symbol.for("react.consumer"), j = /* @__PURE__ */ Symbol.for("react.context"), M = /* @__PURE__ */ Symbol.for("react.forward_ref"), O = /* @__PURE__ */ Symbol.for("react.suspense"), X = /* @__PURE__ */ Symbol.for("react.suspense_list"), se = /* @__PURE__ */ Symbol.for("react.memo"), k = /* @__PURE__ */ Symbol.for("react.lazy"), B = /* @__PURE__ */ Symbol.for("react.activity"), le = /* @__PURE__ */ Symbol.for("react.client.reference"), Z = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, A = Object.prototype.hasOwnProperty, L = Array.isArray, V = console.createTask ? console.createTask : function() {
224
224
  return null;
225
225
  };
226
- C = {
226
+ b = {
227
227
  react_stack_bottom_frame: function(u) {
228
228
  return u();
229
229
  }
230
230
  };
231
- var x, se = {}, y = C.react_stack_bottom_frame.bind(
232
- C,
231
+ var x, re = {}, y = b.react_stack_bottom_frame.bind(
232
+ b,
233
233
  i
234
234
  )(), K = V(s(i)), N = {};
235
- Ee.Fragment = h, Ee.jsx = function(u, g, A) {
235
+ Se.Fragment = h, Se.jsx = function(u, g, U) {
236
236
  var E = 1e4 > Z.recentlyCreatedOwnerStacks++;
237
237
  return l(
238
238
  u,
239
239
  g,
240
- A,
240
+ U,
241
241
  !1,
242
242
  E ? Error("react-stack-top-frame") : y,
243
243
  E ? V(s(u)) : K
244
244
  );
245
- }, Ee.jsxs = function(u, g, A) {
245
+ }, Se.jsxs = function(u, g, U) {
246
246
  var E = 1e4 > Z.recentlyCreatedOwnerStacks++;
247
247
  return l(
248
248
  u,
249
249
  g,
250
- A,
250
+ U,
251
251
  !0,
252
252
  E ? Error("react-stack-top-frame") : y,
253
253
  E ? V(s(u)) : K
254
254
  );
255
255
  };
256
- })()), Ee;
256
+ })()), Se;
257
257
  }
258
- var _t;
258
+ var ht;
259
259
  function Dn() {
260
- return _t || (_t = 1, process.env.NODE_ENV === "production" ? ke.exports = En() : ke.exports = Sn()), ke.exports;
260
+ return ht || (ht = 1, process.env.NODE_ENV === "production" ? ke.exports = En() : ke.exports = Sn()), ke.exports;
261
261
  }
262
262
  var m = Dn();
263
- const Jt = It(null);
263
+ const Xt = $t(null);
264
264
  function An() {
265
- const e = $t(Jt);
265
+ const e = Gt(Xt);
266
266
  if (!e)
267
267
  throw new Error("useCtaLoader must be used within CtaLoaderProvider");
268
268
  return e;
269
269
  }
270
- const ht = 1100, Un = 180;
270
+ const wt = 1100, Un = 180;
271
271
  function Tn({
272
272
  children: e,
273
273
  theme: t
274
274
  }) {
275
- const [n, s] = ae(!1), [r, i] = ae(!1), [o, a] = ae(0), f = ue(null), d = ue(null), l = Me(() => {
275
+ const [n, s] = ce(!1), [r, i] = ce(!1), [o, a] = ce(0), f = ue(null), d = ue(null), l = Me(() => {
276
276
  f.current && window.clearTimeout(f.current), f.current = null, d.current && window.clearTimeout(d.current), d.current = null, d.current = window.setTimeout(() => {
277
277
  d.current = null, s(!1), i(!1);
278
278
  }, Un);
@@ -281,14 +281,14 @@ function Tn({
281
281
  () => requestAnimationFrame(() => i(!0))
282
282
  ), f.current = window.setTimeout(() => {
283
283
  f.current = null, l();
284
- }, ht);
284
+ }, wt);
285
285
  }, [l]);
286
286
  pe(() => l, [l]);
287
- const b = Ue(
287
+ const C = Te(
288
288
  () => ({ start: _, stop: l, visible: n }),
289
289
  [_, l, n]
290
- ), C = t === "light" ? "https://icc-web-assets.s3.ap-southeast-1.amazonaws.com/loader/build-up-white.webm" : "https://icc-web-assets.s3.ap-southeast-1.amazonaws.com/loader/build-up-black.webm";
291
- return /* @__PURE__ */ m.jsxs(Jt.Provider, { value: b, children: [
290
+ ), b = t === "light" ? "https://icc-web-assets.s3.ap-southeast-1.amazonaws.com/loader/build-up-white.webm" : "https://icc-web-assets.s3.ap-southeast-1.amazonaws.com/loader/build-up-black.webm";
291
+ return /* @__PURE__ */ m.jsxs(Xt.Provider, { value: C, children: [
292
292
  e,
293
293
  n && /* @__PURE__ */ m.jsx("div", { className: "cta-loader__overlay", children: /* @__PURE__ */ m.jsxs("div", { className: "cta-loader__content", children: [
294
294
  /* @__PURE__ */ m.jsx(
@@ -300,7 +300,7 @@ function Tn({
300
300
  playsInline: !0,
301
301
  preload: "auto",
302
302
  className: "cta-loader__video",
303
- children: /* @__PURE__ */ m.jsx("source", { src: C, type: "video/webm" })
303
+ children: /* @__PURE__ */ m.jsx("source", { src: b, type: "video/webm" })
304
304
  }
305
305
  ),
306
306
  /* @__PURE__ */ m.jsx("div", { className: "cta-loader__bar-wrapper", children: /* @__PURE__ */ m.jsx("div", { className: "cta-loader__bar-track", children: /* @__PURE__ */ m.jsx(
@@ -309,7 +309,7 @@ function Tn({
309
309
  className: "cta-loader__bar-fill",
310
310
  style: {
311
311
  transform: r ? "scaleX(1)" : "scaleX(0)",
312
- transition: `transform ${ht}ms linear`
312
+ transition: `transform ${wt}ms linear`
313
313
  }
314
314
  },
315
315
  o
@@ -317,55 +317,55 @@ function Tn({
317
317
  ] }) })
318
318
  ] });
319
319
  }
320
- function Xt(e, t) {
320
+ function qt(e, t) {
321
321
  return function() {
322
322
  return e.apply(t, arguments);
323
323
  };
324
324
  }
325
- const { toString: Nn } = Object.prototype, { getPrototypeOf: it } = Object, { iterator: Ie, toStringTag: qt } = Symbol, $e = /* @__PURE__ */ ((e) => (t) => {
325
+ const { toString: Nn } = Object.prototype, { getPrototypeOf: it } = Object, { iterator: Ie, toStringTag: Vt } = Symbol, $e = /* @__PURE__ */ ((e) => (t) => {
326
326
  const n = Nn.call(t);
327
327
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
328
- })(/* @__PURE__ */ Object.create(null)), fe = (e) => (e = e.toLowerCase(), (t) => $e(t) === e), Ge = (e) => (t) => typeof t === e, { isArray: be } = Array, Ce = Ge("undefined");
329
- function Te(e) {
330
- return e !== null && !Ce(e) && e.constructor !== null && !Ce(e.constructor) && re(e.constructor.isBuffer) && e.constructor.isBuffer(e);
328
+ })(/* @__PURE__ */ Object.create(null)), fe = (e) => (e = e.toLowerCase(), (t) => $e(t) === e), Ge = (e) => (t) => typeof t === e, { isArray: Re } = Array, be = Ge("undefined");
329
+ function Ne(e) {
330
+ return e !== null && !be(e) && e.constructor !== null && !be(e.constructor) && ie(e.constructor.isBuffer) && e.constructor.isBuffer(e);
331
331
  }
332
- const Vt = fe("ArrayBuffer");
332
+ const Kt = fe("ArrayBuffer");
333
333
  function vn(e) {
334
334
  let t;
335
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Vt(e.buffer), t;
335
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Kt(e.buffer), t;
336
336
  }
337
- const xn = Ge("string"), re = Ge("function"), Kt = Ge("number"), Ne = (e) => e !== null && typeof e == "object", Ln = (e) => e === !0 || e === !1, je = (e) => {
337
+ const xn = Ge("string"), ie = Ge("function"), zt = Ge("number"), ve = (e) => e !== null && typeof e == "object", Ln = (e) => e === !0 || e === !1, je = (e) => {
338
338
  if ($e(e) !== "object")
339
339
  return !1;
340
340
  const t = it(e);
341
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(qt in e) && !(Ie in e);
341
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Vt in e) && !(Ie in e);
342
342
  }, Pn = (e) => {
343
- if (!Ne(e) || Te(e))
343
+ if (!ve(e) || Ne(e))
344
344
  return !1;
345
345
  try {
346
346
  return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
347
347
  } catch {
348
348
  return !1;
349
349
  }
350
- }, On = fe("Date"), kn = fe("File"), Fn = fe("Blob"), jn = fe("FileList"), Bn = (e) => Ne(e) && re(e.pipe), Yn = (e) => {
350
+ }, On = fe("Date"), kn = fe("File"), Fn = fe("Blob"), jn = fe("FileList"), Bn = (e) => ve(e) && ie(e.pipe), Yn = (e) => {
351
351
  let t;
352
- return e && (typeof FormData == "function" && e instanceof FormData || re(e.append) && ((t = $e(e)) === "formdata" || // detect form-data instance
353
- t === "object" && re(e.toString) && e.toString() === "[object FormData]"));
352
+ return e && (typeof FormData == "function" && e instanceof FormData || ie(e.append) && ((t = $e(e)) === "formdata" || // detect form-data instance
353
+ t === "object" && ie(e.toString) && e.toString() === "[object FormData]"));
354
354
  }, Mn = fe("URLSearchParams"), [Hn, In, $n, Gn] = [
355
355
  "ReadableStream",
356
356
  "Request",
357
357
  "Response",
358
358
  "Headers"
359
359
  ].map(fe), Jn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
360
- function ve(e, t, { allOwnKeys: n = !1 } = {}) {
360
+ function xe(e, t, { allOwnKeys: n = !1 } = {}) {
361
361
  if (e === null || typeof e > "u")
362
362
  return;
363
363
  let s, r;
364
- if (typeof e != "object" && (e = [e]), be(e))
364
+ if (typeof e != "object" && (e = [e]), Re(e))
365
365
  for (s = 0, r = e.length; s < r; s++)
366
366
  t.call(null, e[s], s, e);
367
367
  else {
368
- if (Te(e))
368
+ if (Ne(e))
369
369
  return;
370
370
  const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), o = i.length;
371
371
  let a;
@@ -373,8 +373,8 @@ function ve(e, t, { allOwnKeys: n = !1 } = {}) {
373
373
  a = i[s], t.call(null, e[a], a, e);
374
374
  }
375
375
  }
376
- function zt(e, t) {
377
- if (Te(e))
376
+ function Zt(e, t) {
377
+ if (Ne(e))
378
378
  return null;
379
379
  t = t.toLowerCase();
380
380
  const n = Object.keys(e);
@@ -384,23 +384,23 @@ function zt(e, t) {
384
384
  return r;
385
385
  return null;
386
386
  }
387
- const _e = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Zt = (e) => !Ce(e) && e !== _e;
387
+ const he = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Wt = (e) => !be(e) && e !== he;
388
388
  function Ze() {
389
- const { caseless: e, skipUndefined: t } = Zt(this) && this || {}, n = {}, s = (r, i) => {
389
+ const { caseless: e, skipUndefined: t } = Wt(this) && this || {}, n = {}, s = (r, i) => {
390
390
  if (i === "__proto__" || i === "constructor" || i === "prototype")
391
391
  return;
392
- const o = e && zt(n, i) || i;
393
- je(n[o]) && je(r) ? n[o] = Ze(n[o], r) : je(r) ? n[o] = Ze({}, r) : be(r) ? n[o] = r.slice() : (!t || !Ce(r)) && (n[o] = r);
392
+ const o = e && Zt(n, i) || i;
393
+ je(n[o]) && je(r) ? n[o] = Ze(n[o], r) : je(r) ? n[o] = Ze({}, r) : Re(r) ? n[o] = r.slice() : (!t || !be(r)) && (n[o] = r);
394
394
  };
395
395
  for (let r = 0, i = arguments.length; r < i; r++)
396
- arguments[r] && ve(arguments[r], s);
396
+ arguments[r] && xe(arguments[r], s);
397
397
  return n;
398
398
  }
399
- const Xn = (e, t, n, { allOwnKeys: s } = {}) => (ve(
399
+ const Xn = (e, t, n, { allOwnKeys: s } = {}) => (xe(
400
400
  t,
401
401
  (r, i) => {
402
- n && re(r) ? Object.defineProperty(e, i, {
403
- value: Xt(r, n),
402
+ n && ie(r) ? Object.defineProperty(e, i, {
403
+ value: qt(r, n),
404
404
  writable: !0,
405
405
  enumerable: !0,
406
406
  configurable: !0
@@ -440,9 +440,9 @@ const Xn = (e, t, n, { allOwnKeys: s } = {}) => (ve(
440
440
  return s !== -1 && s === n;
441
441
  }, Zn = (e) => {
442
442
  if (!e) return null;
443
- if (be(e)) return e;
443
+ if (Re(e)) return e;
444
444
  let t = e.length;
445
- if (!Kt(t)) return null;
445
+ if (!zt(t)) return null;
446
446
  const n = new Array(t);
447
447
  for (; t-- > 0; )
448
448
  n[t] = e[t];
@@ -462,18 +462,18 @@ const Xn = (e, t, n, { allOwnKeys: s } = {}) => (ve(
462
462
  return s;
463
463
  }, ts = fe("HTMLFormElement"), ns = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(n, s, r) {
464
464
  return s.toUpperCase() + r;
465
- }), wt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), ss = fe("RegExp"), Wt = (e, t) => {
465
+ }), yt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), ss = fe("RegExp"), Qt = (e, t) => {
466
466
  const n = Object.getOwnPropertyDescriptors(e), s = {};
467
- ve(n, (r, i) => {
467
+ xe(n, (r, i) => {
468
468
  let o;
469
469
  (o = t(r, i, e)) !== !1 && (s[i] = o || r);
470
470
  }), Object.defineProperties(e, s);
471
471
  }, rs = (e) => {
472
- Wt(e, (t, n) => {
473
- if (re(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
472
+ Qt(e, (t, n) => {
473
+ if (ie(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
474
474
  return !1;
475
475
  const s = e[n];
476
- if (re(s)) {
476
+ if (ie(s)) {
477
477
  if (t.enumerable = !1, "writable" in t) {
478
478
  t.writable = !1;
479
479
  return;
@@ -489,66 +489,66 @@ const Xn = (e, t, n, { allOwnKeys: s } = {}) => (ve(
489
489
  n[i] = !0;
490
490
  });
491
491
  };
492
- return be(e) ? s(e) : s(String(e).split(t)), n;
492
+ return Re(e) ? s(e) : s(String(e).split(t)), n;
493
493
  }, os = () => {
494
494
  }, as = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
495
495
  function cs(e) {
496
- return !!(e && re(e.append) && e[qt] === "FormData" && e[Ie]);
496
+ return !!(e && ie(e.append) && e[Vt] === "FormData" && e[Ie]);
497
497
  }
498
498
  const ls = (e) => {
499
499
  const t = new Array(10), n = (s, r) => {
500
- if (Ne(s)) {
500
+ if (ve(s)) {
501
501
  if (t.indexOf(s) >= 0)
502
502
  return;
503
- if (Te(s))
503
+ if (Ne(s))
504
504
  return s;
505
505
  if (!("toJSON" in s)) {
506
506
  t[r] = s;
507
- const i = be(s) ? [] : {};
508
- return ve(s, (o, a) => {
507
+ const i = Re(s) ? [] : {};
508
+ return xe(s, (o, a) => {
509
509
  const f = n(o, r + 1);
510
- !Ce(f) && (i[a] = f);
510
+ !be(f) && (i[a] = f);
511
511
  }), t[r] = void 0, i;
512
512
  }
513
513
  }
514
514
  return s;
515
515
  };
516
516
  return n(e, 0);
517
- }, ds = fe("AsyncFunction"), us = (e) => e && (Ne(e) || re(e)) && re(e.then) && re(e.catch), Qt = ((e, t) => e ? setImmediate : t ? ((n, s) => (_e.addEventListener(
517
+ }, ds = fe("AsyncFunction"), us = (e) => e && (ve(e) || ie(e)) && ie(e.then) && ie(e.catch), en = ((e, t) => e ? setImmediate : t ? ((n, s) => (he.addEventListener(
518
518
  "message",
519
519
  ({ source: r, data: i }) => {
520
- r === _e && i === n && s.length && s.shift()();
520
+ r === he && i === n && s.length && s.shift()();
521
521
  },
522
522
  !1
523
523
  ), (r) => {
524
- s.push(r), _e.postMessage(n, "*");
525
- }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", re(_e.postMessage)), ps = typeof queueMicrotask < "u" ? queueMicrotask.bind(_e) : typeof process < "u" && process.nextTick || Qt, fs = (e) => e != null && re(e[Ie]), c = {
526
- isArray: be,
527
- isArrayBuffer: Vt,
528
- isBuffer: Te,
524
+ s.push(r), he.postMessage(n, "*");
525
+ }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", ie(he.postMessage)), ps = typeof queueMicrotask < "u" ? queueMicrotask.bind(he) : typeof process < "u" && process.nextTick || en, fs = (e) => e != null && ie(e[Ie]), c = {
526
+ isArray: Re,
527
+ isArrayBuffer: Kt,
528
+ isBuffer: Ne,
529
529
  isFormData: Yn,
530
530
  isArrayBufferView: vn,
531
531
  isString: xn,
532
- isNumber: Kt,
532
+ isNumber: zt,
533
533
  isBoolean: Ln,
534
- isObject: Ne,
534
+ isObject: ve,
535
535
  isPlainObject: je,
536
536
  isEmptyObject: Pn,
537
537
  isReadableStream: Hn,
538
538
  isRequest: In,
539
539
  isResponse: $n,
540
540
  isHeaders: Gn,
541
- isUndefined: Ce,
541
+ isUndefined: be,
542
542
  isDate: On,
543
543
  isFile: kn,
544
544
  isBlob: Fn,
545
545
  isRegExp: ss,
546
- isFunction: re,
546
+ isFunction: ie,
547
547
  isStream: Bn,
548
548
  isURLSearchParams: Mn,
549
549
  isTypedArray: Wn,
550
550
  isFileList: jn,
551
- forEach: ve,
551
+ forEach: xe,
552
552
  merge: Ze,
553
553
  extend: Xn,
554
554
  trim: Jn,
@@ -562,29 +562,29 @@ const ls = (e) => {
562
562
  forEachEntry: Qn,
563
563
  matchAll: es,
564
564
  isHTMLForm: ts,
565
- hasOwnProperty: wt,
566
- hasOwnProp: wt,
565
+ hasOwnProperty: yt,
566
+ hasOwnProp: yt,
567
567
  // an alias to avoid ESLint no-prototype-builtins detection
568
- reduceDescriptors: Wt,
568
+ reduceDescriptors: Qt,
569
569
  freezeMethods: rs,
570
570
  toObjectSet: is,
571
571
  toCamelCase: ns,
572
572
  noop: os,
573
573
  toFiniteNumber: as,
574
- findKey: zt,
575
- global: _e,
576
- isContextDefined: Zt,
574
+ findKey: Zt,
575
+ global: he,
576
+ isContextDefined: Wt,
577
577
  isSpecCompliantForm: cs,
578
578
  toJSONObject: ls,
579
579
  isAsyncFn: ds,
580
580
  isThenable: us,
581
- setImmediate: Qt,
581
+ setImmediate: en,
582
582
  asap: ps,
583
583
  isIterable: fs
584
584
  };
585
- let R = class en extends Error {
585
+ let R = class tn extends Error {
586
586
  static from(t, n, s, r, i, o) {
587
- const a = new en(t.message, n || t.code, s, r, i);
587
+ const a = new tn(t.message, n || t.code, s, r, i);
588
588
  return a.cause = t, a.name = t.name, o && Object.assign(a, o), a;
589
589
  }
590
590
  /**
@@ -637,12 +637,12 @@ const ms = null;
637
637
  function We(e) {
638
638
  return c.isPlainObject(e) || c.isArray(e);
639
639
  }
640
- function tn(e) {
640
+ function nn(e) {
641
641
  return c.endsWith(e, "[]") ? e.slice(0, -2) : e;
642
642
  }
643
- function yt(e, t, n) {
643
+ function gt(e, t, n) {
644
644
  return e ? e.concat(t).map(function(r, i) {
645
- return r = tn(r), !n && i ? "[" + r + "]" : r;
645
+ return r = nn(r), !n && i ? "[" + r + "]" : r;
646
646
  }).join(n ? "." : "") : t;
647
647
  }
648
648
  function _s(e) {
@@ -680,22 +680,22 @@ function Je(e, t, n) {
680
680
  if (c.endsWith(w, "{}"))
681
681
  w = s ? w : w.slice(0, -2), p = JSON.stringify(p);
682
682
  else if (c.isArray(p) && _s(p) || (c.isFileList(p) || c.endsWith(w, "[]")) && (D = c.toArray(p)))
683
- return w = tn(w), D.forEach(function(T, j) {
683
+ return w = nn(w), D.forEach(function(T, j) {
684
684
  !(c.isUndefined(T) || T === null) && t.append(
685
685
  // eslint-disable-next-line no-nested-ternary
686
- o === !0 ? yt([w], j, i) : o === null ? w : w + "[]",
686
+ o === !0 ? gt([w], j, i) : o === null ? w : w + "[]",
687
687
  d(T)
688
688
  );
689
689
  }), !1;
690
690
  }
691
- return We(p) ? !0 : (t.append(yt(h, w, i), d(p)), !1);
691
+ return We(p) ? !0 : (t.append(gt(h, w, i), d(p)), !1);
692
692
  }
693
- const _ = [], b = Object.assign(hs, {
693
+ const _ = [], C = Object.assign(hs, {
694
694
  defaultVisitor: l,
695
695
  convertValue: d,
696
696
  isVisitable: We
697
697
  });
698
- function C(p, w) {
698
+ function b(p, w) {
699
699
  if (!c.isUndefined(p)) {
700
700
  if (_.indexOf(p) !== -1)
701
701
  throw Error("Circular reference detected in " + w.join("."));
@@ -705,16 +705,16 @@ function Je(e, t, n) {
705
705
  D,
706
706
  c.isString(F) ? F.trim() : F,
707
707
  w,
708
- b
709
- )) === !0 && C(D, w ? w.concat(F) : [F]);
708
+ C
709
+ )) === !0 && b(D, w ? w.concat(F) : [F]);
710
710
  }), _.pop();
711
711
  }
712
712
  }
713
713
  if (!c.isObject(e))
714
714
  throw new TypeError("data must be an object");
715
- return C(e), t;
715
+ return b(e), t;
716
716
  }
717
- function gt(e) {
717
+ function Ct(e) {
718
718
  const t = {
719
719
  "!": "%21",
720
720
  "'": "%27",
@@ -731,14 +731,14 @@ function gt(e) {
731
731
  function ot(e, t) {
732
732
  this._pairs = [], e && Je(e, this, t);
733
733
  }
734
- const nn = ot.prototype;
735
- nn.append = function(t, n) {
734
+ const sn = ot.prototype;
735
+ sn.append = function(t, n) {
736
736
  this._pairs.push([t, n]);
737
737
  };
738
- nn.toString = function(t) {
738
+ sn.toString = function(t) {
739
739
  const n = t ? function(s) {
740
- return t.call(this, s, gt);
741
- } : gt;
740
+ return t.call(this, s, Ct);
741
+ } : Ct;
742
742
  return this._pairs.map(function(r) {
743
743
  return n(r[0]) + "=" + n(r[1]);
744
744
  }, "").join("&");
@@ -746,7 +746,7 @@ nn.toString = function(t) {
746
746
  function ws(e) {
747
747
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
748
748
  }
749
- function sn(e, t, n) {
749
+ function rn(e, t, n) {
750
750
  if (!t)
751
751
  return e;
752
752
  const s = n && n.encode || ws, r = c.isFunction(n) ? {
@@ -759,7 +759,7 @@ function sn(e, t, n) {
759
759
  }
760
760
  return e;
761
761
  }
762
- class Ct {
762
+ class bt {
763
763
  constructor() {
764
764
  this.handlers = [];
765
765
  }
@@ -859,7 +859,7 @@ function Ts(e) {
859
859
  i = n[s], t[i] = e[i];
860
860
  return t;
861
861
  }
862
- function rn(e) {
862
+ function on(e) {
863
863
  function t(n, s, r, i) {
864
864
  let o = n[i++];
865
865
  if (o === "__proto__") return !0;
@@ -884,13 +884,13 @@ function Ns(e, t, n) {
884
884
  }
885
885
  return (n || JSON.stringify)(e);
886
886
  }
887
- const xe = {
887
+ const Le = {
888
888
  transitional: at,
889
889
  adapter: ["xhr", "http", "fetch"],
890
890
  transformRequest: [function(t, n) {
891
891
  const s = n.getContentType() || "", r = s.indexOf("application/json") > -1, i = c.isObject(t);
892
892
  if (i && c.isHTMLForm(t) && (t = new FormData(t)), c.isFormData(t))
893
- return r ? JSON.stringify(rn(t)) : t;
893
+ return r ? JSON.stringify(on(t)) : t;
894
894
  if (c.isArrayBuffer(t) || c.isBuffer(t) || c.isStream(t) || c.isFile(t) || c.isBlob(t) || c.isReadableStream(t))
895
895
  return t;
896
896
  if (c.isArrayBufferView(t))
@@ -913,7 +913,7 @@ const xe = {
913
913
  return i || r ? (n.setContentType("application/json", !1), Ns(t)) : t;
914
914
  }],
915
915
  transformResponse: [function(t) {
916
- const n = this.transitional || xe.transitional, s = n && n.forcedJSONParsing, r = this.responseType === "json";
916
+ const n = this.transitional || Le.transitional, s = n && n.forcedJSONParsing, r = this.responseType === "json";
917
917
  if (c.isResponse(t) || c.isReadableStream(t))
918
918
  return t;
919
919
  if (t && c.isString(t) && (s && !this.responseType || r)) {
@@ -951,7 +951,7 @@ const xe = {
951
951
  }
952
952
  };
953
953
  c.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
954
- xe.headers[e] = {};
954
+ Le.headers[e] = {};
955
955
  });
956
956
  const vs = c.toObjectSet([
957
957
  "age",
@@ -978,8 +978,8 @@ const vs = c.toObjectSet([
978
978
  `).forEach(function(o) {
979
979
  r = o.indexOf(":"), n = o.substring(0, r).trim().toLowerCase(), s = o.substring(r + 1).trim(), !(!n || t[n] && vs[n]) && (n === "set-cookie" ? t[n] ? t[n].push(s) : t[n] = [s] : t[n] = t[n] ? t[n] + ", " + s : s);
980
980
  }), t;
981
- }, bt = /* @__PURE__ */ Symbol("internals");
982
- function Se(e) {
981
+ }, Rt = /* @__PURE__ */ Symbol("internals");
982
+ function De(e) {
983
983
  return e && String(e).trim().toLowerCase();
984
984
  }
985
985
  function Be(e) {
@@ -1017,14 +1017,14 @@ function ks(e, t) {
1017
1017
  });
1018
1018
  });
1019
1019
  }
1020
- let ie = class {
1020
+ let oe = class {
1021
1021
  constructor(t) {
1022
1022
  t && this.set(t);
1023
1023
  }
1024
1024
  set(t, n, s) {
1025
1025
  const r = this;
1026
1026
  function i(a, f, d) {
1027
- const l = Se(f);
1027
+ const l = De(f);
1028
1028
  if (!l)
1029
1029
  throw new Error("header name must be a non-empty string");
1030
1030
  const _ = c.findKey(r, l);
@@ -1048,7 +1048,7 @@ let ie = class {
1048
1048
  return this;
1049
1049
  }
1050
1050
  get(t, n) {
1051
- if (t = Se(t), t) {
1051
+ if (t = De(t), t) {
1052
1052
  const s = c.findKey(this, t);
1053
1053
  if (s) {
1054
1054
  const r = this[s];
@@ -1065,7 +1065,7 @@ let ie = class {
1065
1065
  }
1066
1066
  }
1067
1067
  has(t, n) {
1068
- if (t = Se(t), t) {
1068
+ if (t = De(t), t) {
1069
1069
  const s = c.findKey(this, t);
1070
1070
  return !!(s && this[s] !== void 0 && (!n || qe(this, this[s], s, n)));
1071
1071
  }
@@ -1075,7 +1075,7 @@ let ie = class {
1075
1075
  const s = this;
1076
1076
  let r = !1;
1077
1077
  function i(o) {
1078
- if (o = Se(o), o) {
1078
+ if (o = De(o), o) {
1079
1079
  const a = c.findKey(s, o);
1080
1080
  a && (!n || qe(s, s[a], a, n)) && (delete s[a], r = !0);
1081
1081
  }
@@ -1133,18 +1133,18 @@ let ie = class {
1133
1133
  return n.forEach((r) => s.set(r)), s;
1134
1134
  }
1135
1135
  static accessor(t) {
1136
- const s = (this[bt] = this[bt] = {
1136
+ const s = (this[Rt] = this[Rt] = {
1137
1137
  accessors: {}
1138
1138
  }).accessors, r = this.prototype;
1139
1139
  function i(o) {
1140
- const a = Se(o);
1140
+ const a = De(o);
1141
1141
  s[a] || (ks(r, o), s[a] = !0);
1142
1142
  }
1143
1143
  return c.isArray(t) ? t.forEach(i) : i(t), this;
1144
1144
  }
1145
1145
  };
1146
- ie.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
1147
- c.reduceDescriptors(ie.prototype, ({ value: e }, t) => {
1146
+ oe.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
1147
+ c.reduceDescriptors(oe.prototype, ({ value: e }, t) => {
1148
1148
  let n = t[0].toUpperCase() + t.slice(1);
1149
1149
  return {
1150
1150
  get: () => e,
@@ -1153,18 +1153,18 @@ c.reduceDescriptors(ie.prototype, ({ value: e }, t) => {
1153
1153
  }
1154
1154
  };
1155
1155
  });
1156
- c.freezeMethods(ie);
1156
+ c.freezeMethods(oe);
1157
1157
  function Ve(e, t) {
1158
- const n = this || xe, s = t || n, r = ie.from(s.headers);
1158
+ const n = this || Le, s = t || n, r = oe.from(s.headers);
1159
1159
  let i = s.data;
1160
1160
  return c.forEach(e, function(a) {
1161
1161
  i = a.call(n, i, r.normalize(), t ? t.status : void 0);
1162
1162
  }), r.normalize(), i;
1163
1163
  }
1164
- function on(e) {
1164
+ function an(e) {
1165
1165
  return !!(e && e.__CANCEL__);
1166
1166
  }
1167
- let Le = class extends R {
1167
+ let Pe = class extends R {
1168
1168
  /**
1169
1169
  * A `CanceledError` is an object that is thrown when an operation is canceled.
1170
1170
  *
@@ -1178,7 +1178,7 @@ let Le = class extends R {
1178
1178
  super(t ?? "canceled", R.ERR_CANCELED, n, s), this.name = "CanceledError", this.__CANCEL__ = !0;
1179
1179
  }
1180
1180
  };
1181
- function an(e, t, n) {
1181
+ function cn(e, t, n) {
1182
1182
  const s = n.config.validateStatus;
1183
1183
  !n.status || !s || s(n.status) ? e(n) : t(new R(
1184
1184
  "Request failed with status code " + n.status,
@@ -1199,13 +1199,13 @@ function js(e, t) {
1199
1199
  return t = t !== void 0 ? t : 1e3, function(f) {
1200
1200
  const d = Date.now(), l = s[i];
1201
1201
  o || (o = d), n[r] = f, s[r] = d;
1202
- let _ = i, b = 0;
1202
+ let _ = i, C = 0;
1203
1203
  for (; _ !== r; )
1204
- b += n[_++], _ = _ % e;
1204
+ C += n[_++], _ = _ % e;
1205
1205
  if (r = (r + 1) % e, r === i && (i = (i + 1) % e), d - o < t)
1206
1206
  return;
1207
- const C = l && d - l;
1208
- return C ? Math.round(b * 1e3 / C) : void 0;
1207
+ const b = l && d - l;
1208
+ return b ? Math.round(C * 1e3 / b) : void 0;
1209
1209
  };
1210
1210
  }
1211
1211
  function Bs(e, t) {
@@ -1239,14 +1239,14 @@ const He = (e, t, n = 3) => {
1239
1239
  };
1240
1240
  e(_);
1241
1241
  }, n);
1242
- }, Rt = (e, t) => {
1242
+ }, Et = (e, t) => {
1243
1243
  const n = e != null;
1244
1244
  return [(s) => t[0]({
1245
1245
  lengthComputable: n,
1246
1246
  total: e,
1247
1247
  loaded: s
1248
1248
  }), t[1]];
1249
- }, Et = (e) => (...t) => c.asap(() => e(...t)), Ys = ee.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, ee.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
1249
+ }, St = (e) => (...t) => c.asap(() => e(...t)), Ys = ee.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, ee.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
1250
1250
  new URL(ee.origin),
1251
1251
  ee.navigator && /(msie|trident)/i.test(ee.navigator.userAgent)
1252
1252
  ) : () => !0, Ms = ee.hasStandardBrowserEnv ? (
@@ -1284,22 +1284,22 @@ function Hs(e) {
1284
1284
  function Is(e, t) {
1285
1285
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
1286
1286
  }
1287
- function cn(e, t, n) {
1287
+ function ln(e, t, n) {
1288
1288
  let s = !Hs(t);
1289
1289
  return e && (s || n == !1) ? Is(e, t) : t;
1290
1290
  }
1291
- const St = (e) => e instanceof ie ? { ...e } : e;
1292
- function ye(e, t) {
1291
+ const Dt = (e) => e instanceof oe ? { ...e } : e;
1292
+ function ge(e, t) {
1293
1293
  t = t || {};
1294
1294
  const n = {};
1295
- function s(d, l, _, b) {
1296
- return c.isPlainObject(d) && c.isPlainObject(l) ? c.merge.call({ caseless: b }, d, l) : c.isPlainObject(l) ? c.merge({}, l) : c.isArray(l) ? l.slice() : l;
1295
+ function s(d, l, _, C) {
1296
+ return c.isPlainObject(d) && c.isPlainObject(l) ? c.merge.call({ caseless: C }, d, l) : c.isPlainObject(l) ? c.merge({}, l) : c.isArray(l) ? l.slice() : l;
1297
1297
  }
1298
- function r(d, l, _, b) {
1298
+ function r(d, l, _, C) {
1299
1299
  if (c.isUndefined(l)) {
1300
1300
  if (!c.isUndefined(d))
1301
- return s(void 0, d, _, b);
1302
- } else return s(d, l, _, b);
1301
+ return s(void 0, d, _, C);
1302
+ } else return s(d, l, _, C);
1303
1303
  }
1304
1304
  function i(d, l) {
1305
1305
  if (!c.isUndefined(l))
@@ -1346,22 +1346,22 @@ function ye(e, t) {
1346
1346
  socketPath: o,
1347
1347
  responseEncoding: o,
1348
1348
  validateStatus: a,
1349
- headers: (d, l, _) => r(St(d), St(l), _, !0)
1349
+ headers: (d, l, _) => r(Dt(d), Dt(l), _, !0)
1350
1350
  };
1351
1351
  return c.forEach(
1352
1352
  Object.keys({ ...e, ...t }),
1353
1353
  function(l) {
1354
1354
  if (l === "__proto__" || l === "constructor" || l === "prototype")
1355
1355
  return;
1356
- const _ = c.hasOwnProp(f, l) ? f[l] : r, b = _(e[l], t[l], l);
1357
- c.isUndefined(b) && _ !== a || (n[l] = b);
1356
+ const _ = c.hasOwnProp(f, l) ? f[l] : r, C = _(e[l], t[l], l);
1357
+ c.isUndefined(C) && _ !== a || (n[l] = C);
1358
1358
  }
1359
1359
  ), n;
1360
1360
  }
1361
- const ln = (e) => {
1362
- const t = ye({}, e);
1361
+ const dn = (e) => {
1362
+ const t = ge({}, e);
1363
1363
  let { data: n, withXSRFToken: s, xsrfHeaderName: r, xsrfCookieName: i, headers: o, auth: a } = t;
1364
- if (t.headers = o = ie.from(o), t.url = sn(cn(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && o.set(
1364
+ if (t.headers = o = oe.from(o), t.url = rn(ln(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && o.set(
1365
1365
  "Authorization",
1366
1366
  "Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
1367
1367
  ), c.isFormData(n)) {
@@ -1381,19 +1381,19 @@ const ln = (e) => {
1381
1381
  return t;
1382
1382
  }, $s = typeof XMLHttpRequest < "u", Gs = $s && function(e) {
1383
1383
  return new Promise(function(n, s) {
1384
- const r = ln(e);
1384
+ const r = dn(e);
1385
1385
  let i = r.data;
1386
- const o = ie.from(r.headers).normalize();
1387
- let { responseType: a, onUploadProgress: f, onDownloadProgress: d } = r, l, _, b, C, p;
1386
+ const o = oe.from(r.headers).normalize();
1387
+ let { responseType: a, onUploadProgress: f, onDownloadProgress: d } = r, l, _, C, b, p;
1388
1388
  function w() {
1389
- C && C(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(l), r.signal && r.signal.removeEventListener("abort", l);
1389
+ b && b(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(l), r.signal && r.signal.removeEventListener("abort", l);
1390
1390
  }
1391
1391
  let h = new XMLHttpRequest();
1392
1392
  h.open(r.method.toUpperCase(), r.url, !0), h.timeout = r.timeout;
1393
1393
  function D() {
1394
1394
  if (!h)
1395
1395
  return;
1396
- const T = ie.from(
1396
+ const T = oe.from(
1397
1397
  "getAllResponseHeaders" in h && h.getAllResponseHeaders()
1398
1398
  ), M = {
1399
1399
  data: !a || a === "text" || a === "json" ? h.responseText : h.response,
@@ -1403,10 +1403,10 @@ const ln = (e) => {
1403
1403
  config: e,
1404
1404
  request: h
1405
1405
  };
1406
- an(function(J) {
1407
- n(J), w();
1408
- }, function(J) {
1409
- s(J), w();
1406
+ cn(function(X) {
1407
+ n(X), w();
1408
+ }, function(X) {
1409
+ s(X), w();
1410
1410
  }, M), h = null;
1411
1411
  }
1412
1412
  "onloadend" in h ? h.onloadend = D : h.onreadystatechange = function() {
@@ -1427,8 +1427,8 @@ const ln = (e) => {
1427
1427
  )), h = null;
1428
1428
  }, i === void 0 && o.setContentType(null), "setRequestHeader" in h && c.forEach(o.toJSON(), function(j, M) {
1429
1429
  h.setRequestHeader(M, j);
1430
- }), c.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), a && a !== "json" && (h.responseType = r.responseType), d && ([b, p] = He(d, !0), h.addEventListener("progress", b)), f && h.upload && ([_, C] = He(f), h.upload.addEventListener("progress", _), h.upload.addEventListener("loadend", C)), (r.cancelToken || r.signal) && (l = (T) => {
1431
- h && (s(!T || T.type ? new Le(null, e, h) : T), h.abort(), h = null);
1430
+ }), c.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), a && a !== "json" && (h.responseType = r.responseType), d && ([C, p] = He(d, !0), h.addEventListener("progress", C)), f && h.upload && ([_, b] = He(f), h.upload.addEventListener("progress", _), h.upload.addEventListener("loadend", b)), (r.cancelToken || r.signal) && (l = (T) => {
1431
+ h && (s(!T || T.type ? new Pe(null, e, h) : T), h.abort(), h = null);
1432
1432
  }, r.cancelToken && r.cancelToken.subscribe(l), r.signal && (r.signal.aborted ? l() : r.signal.addEventListener("abort", l)));
1433
1433
  const F = Fs(r.url);
1434
1434
  if (F && ee.protocols.indexOf(F) === -1) {
@@ -1445,7 +1445,7 @@ const ln = (e) => {
1445
1445
  if (!r) {
1446
1446
  r = !0, a();
1447
1447
  const l = d instanceof Error ? d : this.reason;
1448
- s.abort(l instanceof R ? l : new Le(l instanceof Error ? l.message : l));
1448
+ s.abort(l instanceof R ? l : new Pe(l instanceof Error ? l.message : l));
1449
1449
  }
1450
1450
  };
1451
1451
  let o = t && setTimeout(() => {
@@ -1488,7 +1488,7 @@ const ln = (e) => {
1488
1488
  } finally {
1489
1489
  await t.cancel();
1490
1490
  }
1491
- }, Dt = (e, t, n, s) => {
1491
+ }, At = (e, t, n, s) => {
1492
1492
  const r = qs(e, t);
1493
1493
  let i = 0, o, a = (f) => {
1494
1494
  o || (o = !0, s && s(f));
@@ -1503,8 +1503,8 @@ const ln = (e) => {
1503
1503
  }
1504
1504
  let _ = l.byteLength;
1505
1505
  if (n) {
1506
- let b = i += _;
1507
- n(b);
1506
+ let C = i += _;
1507
+ n(C);
1508
1508
  }
1509
1509
  f.enqueue(new Uint8Array(l));
1510
1510
  } catch (d) {
@@ -1517,13 +1517,13 @@ const ln = (e) => {
1517
1517
  }, {
1518
1518
  highWaterMark: 2
1519
1519
  });
1520
- }, At = 64 * 1024, { isFunction: Fe } = c, Ks = (({ Request: e, Response: t }) => ({
1520
+ }, Ut = 64 * 1024, { isFunction: Fe } = c, Ks = (({ Request: e, Response: t }) => ({
1521
1521
  Request: e,
1522
1522
  Response: t
1523
1523
  }))(c.global), {
1524
- ReadableStream: Ut,
1525
- TextEncoder: Tt
1526
- } = c.global, Nt = (e, ...t) => {
1524
+ ReadableStream: Tt,
1525
+ TextEncoder: Nt
1526
+ } = c.global, vt = (e, ...t) => {
1527
1527
  try {
1528
1528
  return !!e(...t);
1529
1529
  } catch {
@@ -1536,17 +1536,17 @@ const ln = (e) => {
1536
1536
  const { fetch: t, Request: n, Response: s } = e, r = t ? Fe(t) : typeof fetch == "function", i = Fe(n), o = Fe(s);
1537
1537
  if (!r)
1538
1538
  return !1;
1539
- const a = r && Fe(Ut), f = r && (typeof Tt == "function" ? /* @__PURE__ */ ((p) => (w) => p.encode(w))(new Tt()) : async (p) => new Uint8Array(await new n(p).arrayBuffer())), d = i && a && Nt(() => {
1539
+ const a = r && Fe(Tt), f = r && (typeof Nt == "function" ? /* @__PURE__ */ ((p) => (w) => p.encode(w))(new Nt()) : async (p) => new Uint8Array(await new n(p).arrayBuffer())), d = i && a && vt(() => {
1540
1540
  let p = !1;
1541
1541
  const w = new n(ee.origin, {
1542
- body: new Ut(),
1542
+ body: new Tt(),
1543
1543
  method: "POST",
1544
1544
  get duplex() {
1545
1545
  return p = !0, "half";
1546
1546
  }
1547
1547
  }).headers.has("Content-Type");
1548
1548
  return p && !w;
1549
- }), l = o && a && Nt(() => c.isReadableStream(new s("").body)), _ = {
1549
+ }), l = o && a && vt(() => c.isReadableStream(new s("").body)), _ = {
1550
1550
  stream: l && ((p) => p.body)
1551
1551
  };
1552
1552
  r && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((p) => {
@@ -1557,7 +1557,7 @@ const ln = (e) => {
1557
1557
  throw new R(`Response type '${p}' is not supported`, R.ERR_NOT_SUPPORT, h);
1558
1558
  });
1559
1559
  });
1560
- const b = async (p) => {
1560
+ const C = async (p) => {
1561
1561
  if (p == null)
1562
1562
  return 0;
1563
1563
  if (c.isBlob(p))
@@ -1571,9 +1571,9 @@ const ln = (e) => {
1571
1571
  return p.byteLength;
1572
1572
  if (c.isURLSearchParams(p) && (p = p + ""), c.isString(p))
1573
1573
  return (await f(p)).byteLength;
1574
- }, C = async (p, w) => {
1574
+ }, b = async (p, w) => {
1575
1575
  const h = c.toFiniteNumber(p.getContentLength());
1576
- return h ?? b(w);
1576
+ return h ?? C(w);
1577
1577
  };
1578
1578
  return async (p) => {
1579
1579
  let {
@@ -1585,83 +1585,83 @@ const ln = (e) => {
1585
1585
  timeout: j,
1586
1586
  onDownloadProgress: M,
1587
1587
  onUploadProgress: O,
1588
- responseType: J,
1589
- headers: ce,
1588
+ responseType: X,
1589
+ headers: se,
1590
1590
  withCredentials: k = "same-origin",
1591
1591
  fetchOptions: B
1592
- } = ln(p), le = t || fetch;
1593
- J = J ? (J + "").toLowerCase() : "text";
1594
- let Z = Js([F, T && T.toAbortSignal()], j), U = null;
1592
+ } = dn(p), le = t || fetch;
1593
+ X = X ? (X + "").toLowerCase() : "text";
1594
+ let Z = Js([F, T && T.toAbortSignal()], j), A = null;
1595
1595
  const L = Z && Z.unsubscribe && (() => {
1596
1596
  Z.unsubscribe();
1597
1597
  });
1598
1598
  let V;
1599
1599
  try {
1600
- if (O && d && h !== "get" && h !== "head" && (V = await C(ce, D)) !== 0) {
1600
+ if (O && d && h !== "get" && h !== "head" && (V = await b(se, D)) !== 0) {
1601
1601
  let u = new n(w, {
1602
1602
  method: "POST",
1603
1603
  body: D,
1604
1604
  duplex: "half"
1605
1605
  }), g;
1606
- if (c.isFormData(D) && (g = u.headers.get("content-type")) && ce.setContentType(g), u.body) {
1607
- const [A, E] = Rt(
1606
+ if (c.isFormData(D) && (g = u.headers.get("content-type")) && se.setContentType(g), u.body) {
1607
+ const [U, E] = Et(
1608
1608
  V,
1609
- He(Et(O))
1609
+ He(St(O))
1610
1610
  );
1611
- D = Dt(u.body, At, A, E);
1611
+ D = At(u.body, Ut, U, E);
1612
1612
  }
1613
1613
  }
1614
1614
  c.isString(k) || (k = k ? "include" : "omit");
1615
- const x = i && "credentials" in n.prototype, se = {
1615
+ const x = i && "credentials" in n.prototype, re = {
1616
1616
  ...B,
1617
1617
  signal: Z,
1618
1618
  method: h.toUpperCase(),
1619
- headers: ce.normalize().toJSON(),
1619
+ headers: se.normalize().toJSON(),
1620
1620
  body: D,
1621
1621
  duplex: "half",
1622
1622
  credentials: x ? k : void 0
1623
1623
  };
1624
- U = i && new n(w, se);
1625
- let y = await (i ? le(U, B) : le(w, se));
1626
- const K = l && (J === "stream" || J === "response");
1624
+ A = i && new n(w, re);
1625
+ let y = await (i ? le(A, B) : le(w, re));
1626
+ const K = l && (X === "stream" || X === "response");
1627
1627
  if (l && (M || K && L)) {
1628
1628
  const u = {};
1629
1629
  ["status", "statusText", "headers"].forEach((Y) => {
1630
1630
  u[Y] = y[Y];
1631
1631
  });
1632
- const g = c.toFiniteNumber(y.headers.get("content-length")), [A, E] = M && Rt(
1632
+ const g = c.toFiniteNumber(y.headers.get("content-length")), [U, E] = M && Et(
1633
1633
  g,
1634
- He(Et(M), !0)
1634
+ He(St(M), !0)
1635
1635
  ) || [];
1636
1636
  y = new s(
1637
- Dt(y.body, At, A, () => {
1637
+ At(y.body, Ut, U, () => {
1638
1638
  E && E(), L && L();
1639
1639
  }),
1640
1640
  u
1641
1641
  );
1642
1642
  }
1643
- J = J || "text";
1644
- let N = await _[c.findKey(_, J) || "text"](y, p);
1643
+ X = X || "text";
1644
+ let N = await _[c.findKey(_, X) || "text"](y, p);
1645
1645
  return !K && L && L(), await new Promise((u, g) => {
1646
- an(u, g, {
1646
+ cn(u, g, {
1647
1647
  data: N,
1648
- headers: ie.from(y.headers),
1648
+ headers: oe.from(y.headers),
1649
1649
  status: y.status,
1650
1650
  statusText: y.statusText,
1651
1651
  config: p,
1652
- request: U
1652
+ request: A
1653
1653
  });
1654
1654
  });
1655
1655
  } catch (x) {
1656
1656
  throw L && L(), x && x.name === "TypeError" && /Load failed|fetch/i.test(x.message) ? Object.assign(
1657
- new R("Network Error", R.ERR_NETWORK, p, U, x && x.response),
1657
+ new R("Network Error", R.ERR_NETWORK, p, A, x && x.response),
1658
1658
  {
1659
1659
  cause: x.cause || x
1660
1660
  }
1661
- ) : R.from(x, x && x.code, p, U, x && x.response);
1661
+ ) : R.from(x, x && x.code, p, A, x && x.response);
1662
1662
  }
1663
1663
  };
1664
- }, Zs = /* @__PURE__ */ new Map(), dn = (e) => {
1664
+ }, Zs = /* @__PURE__ */ new Map(), un = (e) => {
1665
1665
  let t = e && e.env || {};
1666
1666
  const { fetch: n, Request: s, Response: r } = t, i = [
1667
1667
  s,
@@ -1673,12 +1673,12 @@ const ln = (e) => {
1673
1673
  f = i[a], d = l.get(f), d === void 0 && l.set(f, d = a ? /* @__PURE__ */ new Map() : zs(t)), l = d;
1674
1674
  return d;
1675
1675
  };
1676
- dn();
1676
+ un();
1677
1677
  const lt = {
1678
1678
  http: ms,
1679
1679
  xhr: Gs,
1680
1680
  fetch: {
1681
- get: dn
1681
+ get: un
1682
1682
  }
1683
1683
  };
1684
1684
  c.forEach(lt, (e, t) => {
@@ -1690,7 +1690,7 @@ c.forEach(lt, (e, t) => {
1690
1690
  Object.defineProperty(e, "adapterName", { value: t });
1691
1691
  }
1692
1692
  });
1693
- const vt = (e) => `- ${e}`, Ws = (e) => c.isFunction(e) || e === null || e === !1;
1693
+ const xt = (e) => `- ${e}`, Ws = (e) => c.isFunction(e) || e === null || e === !1;
1694
1694
  function Qs(e, t) {
1695
1695
  e = c.isArray(e) ? e : [e];
1696
1696
  const { length: n } = e;
@@ -1710,8 +1710,8 @@ function Qs(e, t) {
1710
1710
  ([f, d]) => `adapter ${f} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
1711
1711
  );
1712
1712
  let a = n ? o.length > 1 ? `since :
1713
- ` + o.map(vt).join(`
1714
- `) : " " + vt(o[0]) : "as no adapter specified";
1713
+ ` + o.map(xt).join(`
1714
+ `) : " " + xt(o[0]) : "as no adapter specified";
1715
1715
  throw new R(
1716
1716
  "There is no suitable adapter to dispatch the request " + a,
1717
1717
  "ERR_NOT_SUPPORT"
@@ -1719,7 +1719,7 @@ function Qs(e, t) {
1719
1719
  }
1720
1720
  return r;
1721
1721
  }
1722
- const un = {
1722
+ const pn = {
1723
1723
  /**
1724
1724
  * Resolve an adapter from a list of adapter names or functions.
1725
1725
  * @type {Function}
@@ -1733,36 +1733,36 @@ const un = {
1733
1733
  };
1734
1734
  function Ke(e) {
1735
1735
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1736
- throw new Le(null, e);
1736
+ throw new Pe(null, e);
1737
1737
  }
1738
- function xt(e) {
1739
- return Ke(e), e.headers = ie.from(e.headers), e.data = Ve.call(
1738
+ function Lt(e) {
1739
+ return Ke(e), e.headers = oe.from(e.headers), e.data = Ve.call(
1740
1740
  e,
1741
1741
  e.transformRequest
1742
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), un.getAdapter(e.adapter || xe.adapter, e)(e).then(function(s) {
1742
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), pn.getAdapter(e.adapter || Le.adapter, e)(e).then(function(s) {
1743
1743
  return Ke(e), s.data = Ve.call(
1744
1744
  e,
1745
1745
  e.transformResponse,
1746
1746
  s
1747
- ), s.headers = ie.from(s.headers), s;
1747
+ ), s.headers = oe.from(s.headers), s;
1748
1748
  }, function(s) {
1749
- return on(s) || (Ke(e), s && s.response && (s.response.data = Ve.call(
1749
+ return an(s) || (Ke(e), s && s.response && (s.response.data = Ve.call(
1750
1750
  e,
1751
1751
  e.transformResponse,
1752
1752
  s.response
1753
- ), s.response.headers = ie.from(s.response.headers))), Promise.reject(s);
1753
+ ), s.response.headers = oe.from(s.response.headers))), Promise.reject(s);
1754
1754
  });
1755
1755
  }
1756
- const pn = "1.13.5", Xe = {};
1756
+ const fn = "1.13.5", Xe = {};
1757
1757
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1758
1758
  Xe[e] = function(s) {
1759
1759
  return typeof s === e || "a" + (t < 1 ? "n " : " ") + e;
1760
1760
  };
1761
1761
  });
1762
- const Lt = {};
1762
+ const Pt = {};
1763
1763
  Xe.transitional = function(t, n, s) {
1764
1764
  function r(i, o) {
1765
- return "[Axios v" + pn + "] Transitional option '" + i + "'" + o + (s ? ". " + s : "");
1765
+ return "[Axios v" + fn + "] Transitional option '" + i + "'" + o + (s ? ". " + s : "");
1766
1766
  }
1767
1767
  return (i, o, a) => {
1768
1768
  if (t === !1)
@@ -1770,7 +1770,7 @@ Xe.transitional = function(t, n, s) {
1770
1770
  r(o, " has been removed" + (n ? " in " + n : "")),
1771
1771
  R.ERR_DEPRECATED
1772
1772
  );
1773
- return n && !Lt[o] && (Lt[o] = !0, console.warn(
1773
+ return n && !Pt[o] && (Pt[o] = !0, console.warn(
1774
1774
  r(
1775
1775
  o,
1776
1776
  " has been deprecated since v" + n + " and will be removed in the near future"
@@ -1802,11 +1802,11 @@ const Ye = {
1802
1802
  assertOptions: er,
1803
1803
  validators: Xe
1804
1804
  }, de = Ye.validators;
1805
- let he = class {
1805
+ let we = class {
1806
1806
  constructor(t) {
1807
1807
  this.defaults = t || {}, this.interceptors = {
1808
- request: new Ct(),
1809
- response: new Ct()
1808
+ request: new bt(),
1809
+ response: new bt()
1810
1810
  };
1811
1811
  }
1812
1812
  /**
@@ -1835,7 +1835,7 @@ let he = class {
1835
1835
  }
1836
1836
  }
1837
1837
  _request(t, n) {
1838
- typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = ye(this.defaults, n);
1838
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = ge(this.defaults, n);
1839
1839
  const { transitional: s, paramsSerializer: r, headers: i } = n;
1840
1840
  s !== void 0 && Ye.assertOptions(s, {
1841
1841
  silentJSONParsing: de.transitional(de.boolean),
@@ -1860,7 +1860,7 @@ let he = class {
1860
1860
  (p) => {
1861
1861
  delete i[p];
1862
1862
  }
1863
- ), n.headers = ie.concat(o, i);
1863
+ ), n.headers = oe.concat(o, i);
1864
1864
  const a = [];
1865
1865
  let f = !0;
1866
1866
  this.interceptors.request.forEach(function(w) {
@@ -1874,42 +1874,42 @@ let he = class {
1874
1874
  this.interceptors.response.forEach(function(w) {
1875
1875
  d.push(w.fulfilled, w.rejected);
1876
1876
  });
1877
- let l, _ = 0, b;
1877
+ let l, _ = 0, C;
1878
1878
  if (!f) {
1879
- const p = [xt.bind(this), void 0];
1880
- for (p.unshift(...a), p.push(...d), b = p.length, l = Promise.resolve(n); _ < b; )
1879
+ const p = [Lt.bind(this), void 0];
1880
+ for (p.unshift(...a), p.push(...d), C = p.length, l = Promise.resolve(n); _ < C; )
1881
1881
  l = l.then(p[_++], p[_++]);
1882
1882
  return l;
1883
1883
  }
1884
- b = a.length;
1885
- let C = n;
1886
- for (; _ < b; ) {
1884
+ C = a.length;
1885
+ let b = n;
1886
+ for (; _ < C; ) {
1887
1887
  const p = a[_++], w = a[_++];
1888
1888
  try {
1889
- C = p(C);
1889
+ b = p(b);
1890
1890
  } catch (h) {
1891
1891
  w.call(this, h);
1892
1892
  break;
1893
1893
  }
1894
1894
  }
1895
1895
  try {
1896
- l = xt.call(this, C);
1896
+ l = Lt.call(this, b);
1897
1897
  } catch (p) {
1898
1898
  return Promise.reject(p);
1899
1899
  }
1900
- for (_ = 0, b = d.length; _ < b; )
1900
+ for (_ = 0, C = d.length; _ < C; )
1901
1901
  l = l.then(d[_++], d[_++]);
1902
1902
  return l;
1903
1903
  }
1904
1904
  getUri(t) {
1905
- t = ye(this.defaults, t);
1906
- const n = cn(t.baseURL, t.url, t.allowAbsoluteUrls);
1907
- return sn(n, t.params, t.paramsSerializer);
1905
+ t = ge(this.defaults, t);
1906
+ const n = ln(t.baseURL, t.url, t.allowAbsoluteUrls);
1907
+ return rn(n, t.params, t.paramsSerializer);
1908
1908
  }
1909
1909
  };
1910
1910
  c.forEach(["delete", "get", "head", "options"], function(t) {
1911
- he.prototype[t] = function(n, s) {
1912
- return this.request(ye(s || {}, {
1911
+ we.prototype[t] = function(n, s) {
1912
+ return this.request(ge(s || {}, {
1913
1913
  method: t,
1914
1914
  url: n,
1915
1915
  data: (s || {}).data
@@ -1919,7 +1919,7 @@ c.forEach(["delete", "get", "head", "options"], function(t) {
1919
1919
  c.forEach(["post", "put", "patch"], function(t) {
1920
1920
  function n(s) {
1921
1921
  return function(i, o, a) {
1922
- return this.request(ye(a || {}, {
1922
+ return this.request(ge(a || {}, {
1923
1923
  method: t,
1924
1924
  headers: s ? {
1925
1925
  "Content-Type": "multipart/form-data"
@@ -1929,9 +1929,9 @@ c.forEach(["post", "put", "patch"], function(t) {
1929
1929
  }));
1930
1930
  };
1931
1931
  }
1932
- he.prototype[t] = n(), he.prototype[t + "Form"] = n(!0);
1932
+ we.prototype[t] = n(), we.prototype[t + "Form"] = n(!0);
1933
1933
  });
1934
- let tr = class fn {
1934
+ let tr = class mn {
1935
1935
  constructor(t) {
1936
1936
  if (typeof t != "function")
1937
1937
  throw new TypeError("executor must be a function.");
@@ -1955,7 +1955,7 @@ let tr = class fn {
1955
1955
  s.unsubscribe(i);
1956
1956
  }, o;
1957
1957
  }, t(function(i, o, a) {
1958
- s.reason || (s.reason = new Le(i, o, a), n(s.reason));
1958
+ s.reason || (s.reason = new Pe(i, o, a), n(s.reason));
1959
1959
  });
1960
1960
  }
1961
1961
  /**
@@ -1997,7 +1997,7 @@ let tr = class fn {
1997
1997
  static source() {
1998
1998
  let t;
1999
1999
  return {
2000
- token: new fn(function(r) {
2000
+ token: new mn(function(r) {
2001
2001
  t = r;
2002
2002
  }),
2003
2003
  cancel: t
@@ -2086,32 +2086,32 @@ const et = {
2086
2086
  Object.entries(et).forEach(([e, t]) => {
2087
2087
  et[t] = e;
2088
2088
  });
2089
- function mn(e) {
2090
- const t = new he(e), n = Xt(he.prototype.request, t);
2091
- return c.extend(n, he.prototype, t, { allOwnKeys: !0 }), c.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(r) {
2092
- return mn(ye(e, r));
2089
+ function _n(e) {
2090
+ const t = new we(e), n = qt(we.prototype.request, t);
2091
+ return c.extend(n, we.prototype, t, { allOwnKeys: !0 }), c.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(r) {
2092
+ return _n(ge(e, r));
2093
2093
  }, n;
2094
2094
  }
2095
- const G = mn(xe);
2096
- G.Axios = he;
2097
- G.CanceledError = Le;
2098
- G.CancelToken = tr;
2099
- G.isCancel = on;
2100
- G.VERSION = pn;
2101
- G.toFormData = Je;
2102
- G.AxiosError = R;
2103
- G.Cancel = G.CanceledError;
2104
- G.all = function(t) {
2095
+ const J = _n(Le);
2096
+ J.Axios = we;
2097
+ J.CanceledError = Pe;
2098
+ J.CancelToken = tr;
2099
+ J.isCancel = an;
2100
+ J.VERSION = fn;
2101
+ J.toFormData = Je;
2102
+ J.AxiosError = R;
2103
+ J.Cancel = J.CanceledError;
2104
+ J.all = function(t) {
2105
2105
  return Promise.all(t);
2106
2106
  };
2107
- G.spread = nr;
2108
- G.isAxiosError = sr;
2109
- G.mergeConfig = ye;
2110
- G.AxiosHeaders = ie;
2111
- G.formToJSON = (e) => rn(c.isHTMLForm(e) ? new FormData(e) : e);
2112
- G.getAdapter = un.getAdapter;
2113
- G.HttpStatusCode = et;
2114
- G.default = G;
2107
+ J.spread = nr;
2108
+ J.isAxiosError = sr;
2109
+ J.mergeConfig = ge;
2110
+ J.AxiosHeaders = oe;
2111
+ J.formToJSON = (e) => on(c.isHTMLForm(e) ? new FormData(e) : e);
2112
+ J.getAdapter = pn.getAdapter;
2113
+ J.HttpStatusCode = et;
2114
+ J.default = J;
2115
2115
  const {
2116
2116
  Axios: Gr,
2117
2117
  AxiosError: Jr,
@@ -2129,29 +2129,29 @@ const {
2129
2129
  formToJSON: si,
2130
2130
  getAdapter: ri,
2131
2131
  mergeConfig: ii
2132
- } = G, Pt = (e) => {
2132
+ } = J, Ot = (e) => {
2133
2133
  let t;
2134
2134
  const n = /* @__PURE__ */ new Set(), s = (d, l) => {
2135
2135
  const _ = typeof d == "function" ? d(t) : d;
2136
2136
  if (!Object.is(_, t)) {
2137
- const b = t;
2138
- t = l ?? (typeof _ != "object" || _ === null) ? _ : Object.assign({}, t, _), n.forEach((C) => C(t, b));
2137
+ const C = t;
2138
+ t = l ?? (typeof _ != "object" || _ === null) ? _ : Object.assign({}, t, _), n.forEach((b) => b(t, C));
2139
2139
  }
2140
2140
  }, r = () => t, a = { setState: s, getState: r, getInitialState: () => f, subscribe: (d) => (n.add(d), () => n.delete(d)) }, f = t = e(s, r, a);
2141
2141
  return a;
2142
- }, rr = ((e) => e ? Pt(e) : Pt), ir = (e) => e;
2142
+ }, rr = ((e) => e ? Ot(e) : Ot), ir = (e) => e;
2143
2143
  function or(e, t = ir) {
2144
- const n = Ae.useSyncExternalStore(
2144
+ const n = Ue.useSyncExternalStore(
2145
2145
  e.subscribe,
2146
- Ae.useCallback(() => t(e.getState()), [e, t]),
2147
- Ae.useCallback(() => t(e.getInitialState()), [e, t])
2146
+ Ue.useCallback(() => t(e.getState()), [e, t]),
2147
+ Ue.useCallback(() => t(e.getInitialState()), [e, t])
2148
2148
  );
2149
- return Ae.useDebugValue(n), n;
2149
+ return Ue.useDebugValue(n), n;
2150
2150
  }
2151
- const Ot = (e) => {
2151
+ const kt = (e) => {
2152
2152
  const t = rr(e), n = (s) => or(t, s);
2153
2153
  return Object.assign(n, t), n;
2154
- }, ar = ((e) => e ? Ot(e) : Ot), ge = ar((e) => ({
2154
+ }, ar = ((e) => e ? kt(e) : kt), Ce = ar((e) => ({
2155
2155
  newsSelectedCandles: null,
2156
2156
  newsPlayEndTimestamp: null,
2157
2157
  newsTargetCandle: null,
@@ -2182,8 +2182,8 @@ const Ot = (e) => {
2182
2182
  // 30 minutes
2183
2183
  60: 3600
2184
2184
  // 60 minutes (1 hour)
2185
- })[e] || 3600, _n = [10, 15, 20, 25, 30, 35, 40, 45, 50], hn = It(null), lr = () => {
2186
- const e = $t(hn);
2185
+ })[e] || 3600, hn = [10, 15, 20, 25, 30, 35, 40, 45, 50], wn = $t(null), lr = () => {
2186
+ const e = Gt(wn);
2187
2187
  if (!e)
2188
2188
  throw new Error("useWidgetContext must be used inside WidgetProvider");
2189
2189
  return e;
@@ -2194,7 +2194,7 @@ const Ot = (e) => {
2194
2194
  currentSymbol: s,
2195
2195
  setCurrentSymbol: r
2196
2196
  }) => /* @__PURE__ */ m.jsx(
2197
- hn.Provider,
2197
+ wn.Provider,
2198
2198
  {
2199
2199
  value: {
2200
2200
  currentSymbol: s,
@@ -2205,13 +2205,13 @@ const Ot = (e) => {
2205
2205
  children: e
2206
2206
  }
2207
2207
  );
2208
- const wn = (...e) => e.filter((t, n, s) => !!t && t.trim() !== "" && s.indexOf(t) === n).join(" ").trim();
2208
+ const yn = (...e) => e.filter((t, n, s) => !!t && t.trim() !== "" && s.indexOf(t) === n).join(" ").trim();
2209
2209
  const ur = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
2210
2210
  const pr = (e) => e.replace(
2211
2211
  /^([A-Z])|[\s-_]+(\w)/g,
2212
2212
  (t, n, s) => s ? s.toUpperCase() : n.toLowerCase()
2213
2213
  );
2214
- const kt = (e) => {
2214
+ const Ft = (e) => {
2215
2215
  const t = pr(e);
2216
2216
  return t.charAt(0).toUpperCase() + t.slice(1);
2217
2217
  };
@@ -2232,7 +2232,7 @@ const mr = (e) => {
2232
2232
  return !0;
2233
2233
  return !1;
2234
2234
  };
2235
- const _r = Gt(
2235
+ const _r = Jt(
2236
2236
  ({
2237
2237
  color: e = "currentColor",
2238
2238
  size: t = 24,
@@ -2251,7 +2251,7 @@ const _r = Gt(
2251
2251
  height: t,
2252
2252
  stroke: e,
2253
2253
  strokeWidth: s ? Number(n) * 24 / Number(t) : n,
2254
- className: wn("lucide", r),
2254
+ className: yn("lucide", r),
2255
2255
  ...!i && !mr(a) && { "aria-hidden": "true" },
2256
2256
  ...a
2257
2257
  },
@@ -2262,19 +2262,19 @@ const _r = Gt(
2262
2262
  )
2263
2263
  );
2264
2264
  const dt = (e, t) => {
2265
- const n = Gt(
2265
+ const n = Jt(
2266
2266
  ({ className: s, ...r }, i) => ze(_r, {
2267
2267
  ref: i,
2268
2268
  iconNode: t,
2269
- className: wn(
2270
- `lucide-${ur(kt(e))}`,
2269
+ className: yn(
2270
+ `lucide-${ur(Ft(e))}`,
2271
2271
  `lucide-${e}`,
2272
2272
  s
2273
2273
  ),
2274
2274
  ...r
2275
2275
  })
2276
2276
  );
2277
- return n.displayName = kt(e), n;
2277
+ return n.displayName = Ft(e), n;
2278
2278
  };
2279
2279
  const hr = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], wr = dt("chevron-down", hr);
2280
2280
  const yr = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], gr = dt("chevron-left", yr);
@@ -2293,14 +2293,14 @@ const Cr = [
2293
2293
  return "news-widget__orange";
2294
2294
  const n = e.trim().replace(/[kKmMbB%]/g, "").replace(/[^\d.-]/g, ""), s = t.trim().replace(/[kKmMbB%]/g, "").replace(/[^\d.-]/g, ""), r = parseFloat(n) || 0, i = parseFloat(s) || 0;
2295
2295
  return r > i ? "news-widget__green" : r === i ? "news-widget__orange" : "news-widget__red";
2296
- }, Ft = (e) => e.trim().replaceAll(" ", "").replaceAll("_", ""), Rr = new Intl.DateTimeFormat("en-US", {
2296
+ }, jt = (e) => e.trim().replaceAll(" ", "").replaceAll("_", ""), Rr = new Intl.DateTimeFormat("en-US", {
2297
2297
  year: "numeric",
2298
2298
  month: "long",
2299
2299
  day: "2-digit",
2300
2300
  hour: "2-digit",
2301
2301
  minute: "2-digit",
2302
2302
  hour12: !1
2303
- }), yn = (e) => {
2303
+ }), gn = (e) => {
2304
2304
  const t = Rr.formatToParts(e), n = (s) => t.find((r) => r.type === s)?.value ?? "";
2305
2305
  return `${n("year")} ${n("month")} ${n("day")}, ${n("hour")}:${n("minute")}`;
2306
2306
  }, Er = ({
@@ -2325,7 +2325,7 @@ const Cr = [
2325
2325
  /* @__PURE__ */ m.jsxs("div", { className: "news-widget_news_card__header", children: [
2326
2326
  r && /* @__PURE__ */ m.jsx("div", { className: "news-widget_news_card__currency_icon", children: /* @__PURE__ */ m.jsx(Er, { currency: r }) }),
2327
2327
  /* @__PURE__ */ m.jsxs("div", { className: "news-widget_news_card__meta", children: [
2328
- /* @__PURE__ */ m.jsx("div", { className: "news-widget_news_card__date", children: yn(new Date(t ?? 0)) }),
2328
+ /* @__PURE__ */ m.jsx("div", { className: "news-widget_news_card__date", children: gn(new Date(t ?? 0)) }),
2329
2329
  /* @__PURE__ */ m.jsx("div", { className: "news-widget_news_card__title", children: e })
2330
2330
  ] })
2331
2331
  ] }),
@@ -2368,7 +2368,7 @@ const Ar = ({
2368
2368
  /* @__PURE__ */ m.jsx("div", { className: "news-widget_event_details_card__header_row", children: /* @__PURE__ */ m.jsxs("div", { className: "news-widget_event_details_card__header_inner", children: [
2369
2369
  /* @__PURE__ */ m.jsxs("div", { className: "news-widget_event_details_card__timestamp_row", children: [
2370
2370
  /* @__PURE__ */ m.jsxs("p", { className: "news-widget_event_details_card__timestamp", children: [
2371
- e?.timestamp && yn(
2371
+ e?.timestamp && gn(
2372
2372
  new Date(e?.timestamp ?? 0)
2373
2373
  ),
2374
2374
  " "
@@ -2496,7 +2496,7 @@ const Ar = ({
2496
2496
  children: t,
2497
2497
  isCompared: n
2498
2498
  }) => {
2499
- const [s, r] = ae(!1);
2499
+ const [s, r] = ce(!1);
2500
2500
  return /* @__PURE__ */ m.jsxs("div", { className: "news-widget_event_details__container news-widget_event_details__container_sm", children: [
2501
2501
  e && /* @__PURE__ */ m.jsxs("div", { style: { position: "relative" }, children: [
2502
2502
  /* @__PURE__ */ m.jsx(
@@ -2656,44 +2656,44 @@ function Nr(e, t, n = 1) {
2656
2656
  const s = e / t;
2657
2657
  return isFinite(s) ? s : n;
2658
2658
  }
2659
- function jt(e) {
2659
+ function Bt(e) {
2660
2660
  if (e.length === 0) return 0;
2661
2661
  const t = [...e].sort((s, r) => s - r), n = Math.floor(t.length / 2);
2662
2662
  return t.length % 2 !== 0 ? t[n] : (t[n - 1] + t[n]) / 2;
2663
2663
  }
2664
2664
  function vr(e, t, n = []) {
2665
2665
  if (e.length === 0) return [];
2666
- const s = n.map((l) => Math.abs(l.c - l.o)), r = e.map((l) => Math.abs(l.c - l.o)), i = jt(r), o = jt(s), a = Nr(o, i), f = e[0].o, d = t.c;
2666
+ const s = n.map((l) => Math.abs(l.c - l.o)), r = e.map((l) => Math.abs(l.c - l.o)), i = Bt(r), o = Bt(s), a = Nr(o, i), f = e[0].o, d = t.c;
2667
2667
  return e.map((l) => {
2668
- const _ = (l.o - f) * a + d, b = (l.h - f) * a + d, C = (l.l - f) * a + d, p = (l.c - f) * a + d;
2668
+ const _ = (l.o - f) * a + d, C = (l.h - f) * a + d, b = (l.l - f) * a + d, p = (l.c - f) * a + d;
2669
2669
  return {
2670
2670
  o: _,
2671
- h: Math.max(b, _, p),
2672
- l: Math.min(C, _, p),
2671
+ h: Math.max(C, _, p),
2672
+ l: Math.min(b, _, p),
2673
2673
  c: p
2674
2674
  };
2675
2675
  });
2676
2676
  }
2677
- const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 : parseInt(e, 10) * 60, st = 8, gn = 4, rt = 5, Cn = (e) => {
2677
+ const ye = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 : parseInt(e, 10) * 60, st = 8, Cn = 4, rt = 5, bn = (e) => {
2678
2678
  const t = new Date(e + st * 60 * 60 * 1e3), n = t.getUTCDay(), s = t.getUTCHours();
2679
- return n === 0 ? !1 : n === 1 ? s >= rt : n === 6 ? s <= gn : !0;
2680
- }, bn = (e) => {
2679
+ return n === 0 ? !1 : n === 1 ? s >= rt : n === 6 ? s <= Cn : !0;
2680
+ }, Rn = (e) => {
2681
2681
  const t = new Date(e + st * 60 * 60 * 1e3), n = t.getUTCDay(), s = t.getUTCHours();
2682
- if (n === 0 || n === 1 && s < rt || n === 6 && s >= gn) {
2682
+ if (n === 0 || n === 1 && s < rt || n === 6 && s >= Cn) {
2683
2683
  const r = (8 - n) % 7;
2684
2684
  return t.setUTCDate(t.getUTCDate() + r), t.setUTCHours(rt, 0, 0, 0), t.getTime() - st * 60 * 60 * 1e3;
2685
2685
  }
2686
2686
  return e;
2687
2687
  }, xr = (e, t, n) => {
2688
- const s = we(t) * 1e3, r = [];
2688
+ const s = ye(t) * 1e3, r = [];
2689
2689
  let i = e;
2690
2690
  for (let o = 0; o < n; o++)
2691
- i += s, Cn(i) || (i = bn(i)), r.push(i);
2691
+ i += s, bn(i) || (i = Rn(i)), r.push(i);
2692
2692
  return r;
2693
- }, Bt = (e, t, n, s) => {
2693
+ }, Yt = (e, t, n, s) => {
2694
2694
  if (n <= 0) return [];
2695
2695
  if (s === "24x7") {
2696
- const i = we(t) * 1e3;
2696
+ const i = ye(t) * 1e3;
2697
2697
  return Array.from(
2698
2698
  { length: n },
2699
2699
  (o, a) => e + (a + 1) * i
@@ -2701,29 +2701,29 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
2701
2701
  }
2702
2702
  if (s === "1700-1700")
2703
2703
  return xr(e, t, n);
2704
- const r = we(t) * 1e3;
2704
+ const r = ye(t) * 1e3;
2705
2705
  return Array.from(
2706
2706
  { length: n },
2707
2707
  (i, o) => e + (o + 1) * r
2708
2708
  );
2709
2709
  }, Lr = (e, t, n, s) => {
2710
2710
  if (s === "24x7") {
2711
- const i = we(n) * 1e3;
2711
+ const i = ye(n) * 1e3;
2712
2712
  return Math.max(
2713
2713
  0,
2714
2714
  Math.floor((t - e) / i)
2715
2715
  );
2716
2716
  }
2717
2717
  if (s === "1700-1700") {
2718
- const i = we(n) * 1e3;
2718
+ const i = ye(n) * 1e3;
2719
2719
  let o = 0, a = e;
2720
2720
  for (; a < t; )
2721
- a += i, Cn(a) || (a = bn(a)), a <= t && o++;
2721
+ a += i, bn(a) || (a = Rn(a)), a <= t && o++;
2722
2722
  return o;
2723
2723
  }
2724
- const r = we(n) * 1e3;
2724
+ const r = ye(n) * 1e3;
2725
2725
  return Math.max(0, Math.floor((t - e) / r));
2726
- }, Rn = [
2726
+ }, ut = [
2727
2727
  {
2728
2728
  ticker: "EUR_JPY",
2729
2729
  display_name: "EURJPY",
@@ -3134,20 +3134,20 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3134
3134
  resolution: i,
3135
3135
  symbol: o
3136
3136
  }) => {
3137
- const a = ge(
3138
- (C) => C.newsSelectedCandles
3139
- ), f = ge((C) => C.newsTargetCandle), d = ge(
3140
- (C) => C.newsPlayEndTimestamp
3141
- ), l = ge((C) => C.gapCount), _ = ue(a), b = ue(null);
3137
+ const a = Ce(
3138
+ (b) => b.newsSelectedCandles
3139
+ ), f = Ce((b) => b.newsTargetCandle), d = Ce(
3140
+ (b) => b.newsPlayEndTimestamp
3141
+ ), l = Ce((b) => b.gapCount), _ = ue(a), C = ue(null);
3142
3142
  return pe(() => {
3143
- const C = {
3143
+ const b = {
3144
3144
  current: null
3145
3145
  };
3146
3146
  let p = null, w = !1;
3147
3147
  return (async () => {
3148
3148
  if (!w) {
3149
3149
  if (a?.length && f !== null) {
3150
- if (b.current === a) return;
3150
+ if (C.current === a) return;
3151
3151
  t.current = [];
3152
3152
  const h = d != null;
3153
3153
  if (_.current || h)
@@ -3163,39 +3163,39 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3163
3163
  F,
3164
3164
  f[f.length - 1],
3165
3165
  f
3166
- ), M = Rn.find(
3167
- (U) => U.ticker === o || U.display_name === o
3168
- )?.session || "24x7", O = Bt(
3166
+ ), M = ut.find(
3167
+ (A) => A.ticker === o || A.display_name === o
3168
+ )?.session || "24x7", O = Yt(
3169
3169
  f[f.length - 1].timestamp,
3170
3170
  i,
3171
3171
  l || 0,
3172
3172
  M
3173
- ), J = Bt(
3173
+ ), X = Yt(
3174
3174
  l ? O[O.length - 1] : f[f.length - 1].timestamp,
3175
3175
  i,
3176
3176
  T.length,
3177
3177
  M
3178
3178
  ), k = T.map(
3179
- (U, L) => ({
3180
- open: U.o,
3181
- high: U.h,
3182
- low: U.l,
3183
- close: U.c,
3184
- time: J[L]
3179
+ (A, L) => ({
3180
+ open: A.o,
3181
+ high: A.h,
3182
+ low: A.l,
3183
+ close: A.c,
3184
+ time: X[L]
3185
3185
  })
3186
- ).sort((U, L) => U.time - L.time);
3186
+ ).sort((A, L) => A.time - L.time);
3187
3187
  n.current = k.slice(-50);
3188
3188
  let B = 0, le = 0;
3189
3189
  const Z = async () => {
3190
- C.current && (clearInterval(C.current), C.current = null), b.current = a;
3190
+ b.current && (clearInterval(b.current), b.current = null), C.current = a;
3191
3191
  try {
3192
3192
  a && k.length > 0;
3193
- } catch (U) {
3194
- console.error("Error setting visible range:", U);
3193
+ } catch (A) {
3194
+ console.error("Error setting visible range:", A);
3195
3195
  }
3196
3196
  };
3197
3197
  k.length === 0 ? (t.current = [], await Z()) : p = setTimeout(() => {
3198
- w || (C.current = setInterval(() => {
3198
+ w || (b.current = setInterval(() => {
3199
3199
  if (B < k.length) {
3200
3200
  if (r(e, k[B]))
3201
3201
  t.current = k.slice(0, B + 1), B++, le = 0, B === k.length && (t.current = k, Z());
@@ -3216,12 +3216,12 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3216
3216
  s?.current?.resetCache(), s?.current?.activeChart().resetData();
3217
3217
  } catch {
3218
3218
  }
3219
- b.current = null;
3219
+ C.current = null;
3220
3220
  }
3221
3221
  _.current = a;
3222
3222
  }
3223
3223
  })(), () => {
3224
- w = !0, p && clearTimeout(p), C.current && (t.current = [], clearInterval(C.current));
3224
+ w = !0, p && clearTimeout(p), b.current && (t.current = [], clearInterval(b.current));
3225
3225
  };
3226
3226
  }, [
3227
3227
  r,
@@ -3251,8 +3251,8 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3251
3251
  currentSymbol: d,
3252
3252
  currentTimeFrame: l,
3253
3253
  isUpcoming: _ = !1,
3254
- isElapsed: b = !1,
3255
- onBack: C,
3254
+ isElapsed: C = !1,
3255
+ onBack: b,
3256
3256
  pushBar: p,
3257
3257
  iframeRef: w,
3258
3258
  futureRef: h,
@@ -3262,27 +3262,29 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3262
3262
  setGapCountExternal: j,
3263
3263
  setReplayModeExternal: M
3264
3264
  }) => {
3265
- const O = ue(null), { setCurrentSymbol: J, setSelectedTimeframe: ce } = lr(), {
3265
+ const O = ue(null), { setCurrentSymbol: X, setSelectedTimeframe: se } = lr(), {
3266
3266
  setNewsTargetCandle: k,
3267
3267
  setGapCount: B,
3268
3268
  setNewsPlayEndTimestamp: le,
3269
3269
  setNewsSelectedCandles: Z
3270
- } = ge();
3270
+ } = Ce();
3271
3271
  return pe(() => {
3272
3272
  if (!t || t == "" || !s) return;
3273
- const U = () => {
3274
- if (s) {
3275
- const y = s?.activeChart();
3276
- y && y.getAllShapes().forEach((K) => {
3277
- try {
3278
- y.removeEntity(K.id);
3279
- } catch (N) {
3280
- console.error("Failed to remove shape", N);
3281
- }
3282
- });
3283
- }
3273
+ const A = () => {
3274
+ if (s)
3275
+ try {
3276
+ const y = s?.activeChart();
3277
+ y && y.getAllShapes().forEach((K) => {
3278
+ try {
3279
+ y.removeEntity(K.id);
3280
+ } catch (N) {
3281
+ console.error("Failed to remove shape", N);
3282
+ }
3283
+ });
3284
+ } catch {
3285
+ }
3284
3286
  }, L = async () => {
3285
- const { data: y, status: K } = await G.get(
3287
+ const { data: y, status: K } = await J.get(
3286
3288
  `https://corprate-widget.iccandle.ai/news/${t}`,
3287
3289
  {
3288
3290
  headers: { "api-key": n },
@@ -3296,7 +3298,7 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3296
3298
  return y;
3297
3299
  };
3298
3300
  let V = !1;
3299
- const x = [], se = (y, K) => {
3301
+ const x = [], re = (y, K) => {
3300
3302
  const N = window.setTimeout(y, K);
3301
3303
  return x.push(N), N;
3302
3304
  };
@@ -3336,33 +3338,33 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3336
3338
  );
3337
3339
  const H = await y.exportData(), S = H.data.findIndex((v) => v[0] === Y);
3338
3340
  let z = a;
3339
- if (S != -1 && !z && (z = [..._n].sort((v, X) => X - v).find((v) => H.data[S + v]) ?? null), S != -1 && z) {
3340
- const v = E, X = H.data[S + z][0], I = H.data.filter(
3341
- (oe) => oe[0] > v && oe[0] <= X
3341
+ if (S != -1 && !z && (z = [...hn].sort((v, q) => q - v).find((v) => H.data[S + v]) ?? null), S != -1 && z) {
3342
+ const v = E, q = H.data[S + z][0], I = H.data.filter(
3343
+ (ae) => ae[0] > v && ae[0] <= q
3342
3344
  ) ?? [];
3343
3345
  let Q = null, me = null;
3344
3346
  if (I.length > 0) {
3345
- const oe = I.reduce(
3346
- (te, ne, P, q) => Number(ne[3]) < Number(q[te][3]) ? P : te,
3347
+ const ae = I.reduce(
3348
+ (te, ne, P, G) => Number(ne[3]) < Number(G[te][3]) ? P : te,
3347
3349
  0
3348
- ), $ = I[oe];
3350
+ ), $ = I[ae];
3349
3351
  me = {
3350
3352
  time: $[0],
3351
3353
  value: Number($[3])
3352
3354
  };
3353
3355
  }
3354
3356
  if (I.length > 0) {
3355
- const oe = I.reduce(
3356
- (te, ne, P, q) => Number(ne[2]) > Number(q[te][2]) ? P : te,
3357
+ const ae = I.reduce(
3358
+ (te, ne, P, G) => Number(ne[2]) > Number(G[te][2]) ? P : te,
3357
3359
  0
3358
- ), $ = I[oe];
3360
+ ), $ = I[ae];
3359
3361
  Q = {
3360
3362
  time: $[0],
3361
3363
  value: Number($[2])
3362
3364
  };
3363
3365
  }
3364
3366
  if (Q && me && I.length > 0) {
3365
- const oe = Q.value, $ = me.value, ne = H.data[S + 1][1];
3367
+ const ae = Q.value, $ = me.value, ne = H.data[S + 1][1];
3366
3368
  await y.createMultipointShape(
3367
3369
  [
3368
3370
  {
@@ -3370,8 +3372,8 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3370
3372
  price: ne
3371
3373
  },
3372
3374
  {
3373
- time: X,
3374
- price: oe
3375
+ time: q,
3376
+ price: ae
3375
3377
  }
3376
3378
  ],
3377
3379
  {
@@ -3397,7 +3399,7 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3397
3399
  price: $
3398
3400
  },
3399
3401
  {
3400
- time: X,
3402
+ time: q,
3401
3403
  price: ne
3402
3404
  }
3403
3405
  ],
@@ -3420,11 +3422,11 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3420
3422
  [
3421
3423
  {
3422
3424
  time: v,
3423
- price: oe
3425
+ price: ae
3424
3426
  },
3425
3427
  {
3426
- time: X,
3427
- price: oe
3428
+ time: q,
3429
+ price: ae
3428
3430
  }
3429
3431
  ],
3430
3432
  {
@@ -3444,7 +3446,7 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3444
3446
  price: $
3445
3447
  },
3446
3448
  {
3447
- time: X,
3449
+ time: q,
3448
3450
  price: $
3449
3451
  }
3450
3452
  ],
@@ -3460,20 +3462,20 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3460
3462
  }
3461
3463
  );
3462
3464
  const P = Tr.find(
3463
- (Oe) => Ft(Oe.name) == Ft(d)
3465
+ (Oe) => jt(Oe.name) == jt(d)
3464
3466
  )?.pipLocation;
3465
- let q = "", W = "";
3467
+ let G = "", W = "";
3466
3468
  if (P) {
3467
- const Oe = Math.pow(10, -P), ut = parseFloat(
3468
- Math.abs((oe - ne) * Oe).toFixed(
3469
+ const Oe = Math.pow(10, -P), pt = parseFloat(
3470
+ Math.abs((ae - ne) * Oe).toFixed(
3469
3471
  1
3470
3472
  )
3471
- ), pt = parseFloat(
3473
+ ), ft = parseFloat(
3472
3474
  Math.abs(($ - ne) * Oe).toFixed(
3473
3475
  1
3474
3476
  )
3475
3477
  );
3476
- q = `${ut >= 0 ? "+" : ""}${ut.toFixed(2)} pip`, W = `${pt >= 0 ? "-" : ""}${pt.toFixed(2)} pip`;
3478
+ G = `${pt >= 0 ? "+" : ""}${pt.toFixed(2)} pip`, W = `${ft >= 0 ? "-" : ""}${ft.toFixed(2)} pip`;
3477
3479
  }
3478
3480
  await y.createShape(
3479
3481
  {
@@ -3486,7 +3488,7 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3486
3488
  arrowColor: "#12B76A",
3487
3489
  fontsize: 11,
3488
3490
  color: "#12B76A",
3489
- text: q,
3491
+ text: G,
3490
3492
  bold: !0
3491
3493
  }
3492
3494
  }
@@ -3506,10 +3508,10 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3506
3508
  }
3507
3509
  }
3508
3510
  );
3509
- const Pe = Math.floor((v + X) / 2);
3511
+ const _e = Math.floor((v + q) / 2);
3510
3512
  await y.createShape(
3511
3513
  {
3512
- time: Pe
3514
+ time: _e
3513
3515
  },
3514
3516
  {
3515
3517
  shape: "text",
@@ -3529,16 +3531,16 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3529
3531
  from: H.data[0][0],
3530
3532
  to: H.data[H.data.length - 1][0]
3531
3533
  }), _ && r) {
3532
- const v = Math.floor(Date.now() / 1e3), X = Y, I = y.resolution(), Q = 3600 * 24 * 7;
3533
- v - Q >= X + Q && await y.setVisibleRange(
3534
+ const v = Math.floor(Date.now() / 1e3), q = Y, I = y.resolution(), Q = 3600 * 24 * 7;
3535
+ v - Q >= q + Q && await y.setVisibleRange(
3534
3536
  {
3535
3537
  from: v - Q,
3536
- to: X + Q
3538
+ to: q + Q
3537
3539
  },
3538
3540
  { applyDefaultRightMargin: !0, percentRightMargin: 50 }
3539
- ), se(() => {
3541
+ ), re(() => {
3540
3542
  V || O.current !== s || Number(I) <= 30 && y.createShape(
3541
- { time: X },
3543
+ { time: q },
3542
3544
  {
3543
3545
  shape: "vertical_line",
3544
3546
  lock: !0,
@@ -3552,35 +3554,35 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3552
3554
  if (V || O.current !== s) return;
3553
3555
  const E = await L();
3554
3556
  if (V || O.current !== s) return;
3555
- U();
3557
+ A();
3556
3558
  const Y = (E?.event?.timestamp ?? 0) / 1e3, H = tt(l), S = Y - Y % H;
3557
- y.getVisibleBarsRange() || await new Promise((X) => setTimeout(X, 2e3));
3559
+ y.getVisibleBarsRange() || await new Promise((q) => setTimeout(q, 2e3));
3558
3560
  const v = y.getVisibleBarsRange();
3559
3561
  v && v.from <= Y && Y <= v.to ? await K(Y, S) : (_ || await y.setVisibleRange(
3560
3562
  { from: Y },
3561
3563
  { applyDefaultRightMargin: !0, percentRightMargin: 50 }
3562
3564
  ), await K(Y, S));
3563
3565
  }, u = () => {
3564
- se(() => {
3566
+ re(() => {
3565
3567
  V || O.current !== s || d == y.symbol() || (async () => {
3566
3568
  try {
3567
3569
  j(0), M(!1), Z(null), w.current?.contentWindow?.postMessage(
3568
3570
  { action: "handleClose" },
3569
3571
  "*"
3570
- ), J(y.symbol());
3572
+ ), X(y.symbol());
3571
3573
  } catch (E) {
3572
3574
  console.log("error=>", E);
3573
3575
  }
3574
3576
  })();
3575
3577
  }, 300);
3576
3578
  }, g = (E) => {
3577
- se(() => {
3579
+ re(() => {
3578
3580
  V || O.current !== s || l == E || (async () => {
3579
3581
  try {
3580
3582
  j(0), M(!1), Z(null), w.current?.contentWindow?.postMessage(
3581
3583
  { action: "handleClose" },
3582
3584
  "*"
3583
- ), ce(E);
3585
+ ), se(E);
3584
3586
  } catch (Y) {
3585
3587
  console.log("error=>", Y);
3586
3588
  }
@@ -3589,7 +3591,7 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3589
3591
  };
3590
3592
  y.onSymbolChanged().subscribe(null, u), y.onIntervalChanged().subscribe(null, g);
3591
3593
  try {
3592
- b || await N();
3594
+ C || await N();
3593
3595
  } catch (E) {
3594
3596
  console.log("error=>", E);
3595
3597
  }
@@ -3604,7 +3606,7 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3604
3606
  }
3605
3607
  })();
3606
3608
  }), () => {
3607
- V = !0, x.forEach((y) => window.clearTimeout(y)), U(), O.current === s && (O.current = null);
3609
+ V = !0, x.forEach((y) => window.clearTimeout(y)), A(), O.current === s && (O.current = null);
3608
3610
  };
3609
3611
  }, [
3610
3612
  i,
@@ -3616,10 +3618,10 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3616
3618
  r,
3617
3619
  t,
3618
3620
  l,
3619
- ce,
3621
+ se,
3620
3622
  d,
3621
- J,
3622
- b,
3623
+ X,
3624
+ C,
3623
3625
  le,
3624
3626
  Z,
3625
3627
  B,
@@ -3628,14 +3630,15 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3628
3630
  M,
3629
3631
  w
3630
3632
  ]), pe(() => {
3631
- s && s.onChartReady(async () => {
3632
- const U = s?.activeChart();
3633
- U && U.onDataLoaded().subscribe(
3634
- null,
3635
- () => {
3636
- setTimeout(async () => {
3637
- const { data: L } = await U.exportData(), V = tt(l), x = (r?.timestamp ?? 0) / 1e3, se = x - x % V, y = L.findIndex(
3638
- (N) => N[0] === se
3633
+ if (s) {
3634
+ if (t == "" || C) return;
3635
+ s.onChartReady(async () => {
3636
+ const A = s?.activeChart();
3637
+ se(A.resolution()), s.resetCache(), A.resetData(), A && A.onDataLoaded().subscribe(
3638
+ null,
3639
+ async () => {
3640
+ const { data: L } = await A.exportData(), V = tt(l), x = (r?.timestamp ?? 0) / 1e3, re = x - x % V, y = L.findIndex(
3641
+ (N) => N[0] === re
3639
3642
  ), K = L.slice(y - 49, y + 1).map((N) => ({
3640
3643
  o: N[1],
3641
3644
  h: N[2],
@@ -3650,7 +3653,7 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3650
3653
  l: N[3],
3651
3654
  c: N[4],
3652
3655
  timestamp: N[0] * 1e3
3653
- }, g = U.resolution(), A = we(g) * 1e3, E = u.timestamp, Y = r?.timestamp ?? 0, H = Math.floor(Y / A) * A, S = Rn.find(
3656
+ }, g = A.resolution(), U = ye(g) * 1e3, E = u.timestamp, Y = r?.timestamp ?? 0, H = Math.floor(Y / U) * U, S = ut.find(
3654
3657
  (I) => I.ticker === d || I.display_name === d
3655
3658
  )?.session || "24x7", z = Lr(
3656
3659
  E,
@@ -3665,8 +3668,8 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3665
3668
  timestamp: I[0] * 1e3
3666
3669
  }));
3667
3670
  B(z), k(v);
3668
- const X = { newsTargetCandle: v, gapCount: z };
3669
- D.current = X, F.current && (w.current?.contentWindow?.postMessage(
3671
+ const q = { newsTargetCandle: v, gapCount: z };
3672
+ D.current = q, F.current && (w.current?.contentWindow?.postMessage(
3670
3673
  D.current,
3671
3674
  "*"
3672
3675
  ), D.current = null);
@@ -3681,18 +3684,20 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3681
3684
  "*"
3682
3685
  ), D.current = null);
3683
3686
  }
3684
- }, 100);
3685
- },
3686
- !0
3687
- );
3688
- });
3687
+ },
3688
+ !0
3689
+ );
3690
+ });
3691
+ }
3689
3692
  }, [
3690
3693
  t,
3691
3694
  r?.timestamp,
3692
3695
  k,
3696
+ se,
3693
3697
  B,
3694
3698
  l,
3695
3699
  _,
3700
+ C,
3696
3701
  d,
3697
3702
  s,
3698
3703
  D
@@ -3703,7 +3708,7 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3703
3708
  {
3704
3709
  type: "button",
3705
3710
  className: "news-widget__button news-widget__button--ghost news-widget__button--icon news-widget_detail_page__back_button",
3706
- onClick: C,
3711
+ onClick: b,
3707
3712
  children: /* @__PURE__ */ m.jsx(gr, { className: "news-widget_detail_page__back_icon" })
3708
3713
  }
3709
3714
  ),
@@ -3725,7 +3730,7 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3725
3730
  )
3726
3731
  ] }) })
3727
3732
  ] }) });
3728
- }, De = "https://widget-result-news.iccandle.ai", Yt = "https://corprate-widget.iccandle.ai/news", kr = ({
3733
+ }, Ae = "https://widget-result-news.iccandle.ai", Mt = "https://corprate-widget.iccandle.ai/news", kr = ({
3729
3734
  chartWidget: e,
3730
3735
  children: t,
3731
3736
  widgetKey: n,
@@ -3738,58 +3743,57 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3738
3743
  futureRef: d,
3739
3744
  highlightBarsRef: l,
3740
3745
  setGapCountExternal: _,
3741
- setReplayModeExternal: b
3742
- // setNewsPlayEndTimestampExternal,
3746
+ setReplayModeExternal: C
3743
3747
  }) => {
3744
- const { start: C } = An(), [p, w] = ae(""), [h, D] = ae(i), [F, T] = ae(r), [j, M] = ae(i), [O, J] = ae(r), [ce, k] = ae(null), [B, le] = ae(
3748
+ const { start: b } = An(), [p, w] = ce(""), [h, D] = ce(i), [F, T] = ce(r), [j, M] = ce(i), [O, X] = ce(r), [se, k] = ce(null), [B, le] = ce(
3745
3749
  null
3746
- ), Z = ue(null), U = ue(!1), {
3750
+ ), Z = ue(null), A = ue(!1), {
3747
3751
  setNewsSelectedCandles: L,
3748
3752
  setNewsPlayEndTimestamp: V,
3749
3753
  newsTargetCandle: x,
3750
- gapCount: se
3751
- } = ge(), y = ue(null), K = cr[h] || "M15", N = tt("60"), u = B?.[0]?.timestamp ? B?.[0]?.timestamp / 1e3 : 0, g = u - u % N, A = B?.[0]?.candleData.H1?.candles, E = A?.findIndex(($) => $.timestamp === g) || 0, H = (A?.length || 0) - E <= 10, S = "next_pip_up_10" in (B?.[0]?.candleData[K]?.metadata ?? {}), z = !!p && !S, v = ue(z), X = ue(!1);
3754
+ gapCount: re
3755
+ } = Ce(), y = ue(null), K = cr[h] || "M15", N = tt("60"), u = B?.[0]?.timestamp ? B?.[0]?.timestamp / 1e3 : 0, g = u - u % N, U = B?.[0]?.candleData.H1?.candles, E = U?.findIndex(($) => $.timestamp === g) || 0, H = (U?.length || 0) - E <= 10, S = "next_pip_up_10" in (B?.[0]?.candleData[K]?.metadata ?? {}), z = !!p && !S, v = ue(z), q = ue(!1);
3752
3756
  pe(() => {
3753
3757
  if (z !== v.current) {
3754
- if (v.current = z, X.current) {
3755
- X.current = !1;
3758
+ if (v.current = z, q.current) {
3759
+ q.current = !1;
3756
3760
  return;
3757
3761
  }
3758
- C();
3762
+ b();
3759
3763
  }
3760
- }, [z, C]), pe(() => {
3764
+ }, [z, b]), pe(() => {
3761
3765
  const $ = async (P) => {
3762
- const { data: q, status: W } = await G.get(
3763
- `${Yt}/${P}`,
3766
+ const { data: G, status: W } = await J.get(
3767
+ `${Mt}/${P}`,
3764
3768
  {
3765
3769
  headers: { "api-key": n },
3766
3770
  params: { symbol: r }
3767
3771
  }
3768
3772
  );
3769
- return W !== 200 ? (console.error("Failed to fetch news detail"), null) : q;
3773
+ return W !== 200 ? (console.error("Failed to fetch news detail"), null) : G;
3770
3774
  }, te = async (P) => {
3771
- const { data: q, status: W } = await G.get(
3772
- `${Yt}/similar-details`,
3775
+ const { data: G, status: W } = await J.get(
3776
+ `${Mt}/similar-details`,
3773
3777
  {
3774
3778
  headers: { "api-key": n },
3775
3779
  params: { event_id: P }
3776
3780
  }
3777
3781
  );
3778
- return W !== 200 ? (console.error("Failed to fetch compared news"), null) : q;
3782
+ return W !== 200 ? (console.error("Failed to fetch compared news"), null) : G;
3779
3783
  };
3780
3784
  (async () => {
3781
3785
  if (p === "") return;
3782
- const [P, q] = await Promise.all([
3786
+ const [P, G] = await Promise.all([
3783
3787
  $(p),
3784
3788
  te(p)
3785
3789
  ]);
3786
- P && k(P), q && le(q);
3790
+ P && k(P), G && le(G);
3787
3791
  })();
3788
3792
  }, [n, p, r]);
3789
3793
  const I = Me(() => {
3790
- b(!1), _(0), L(null), V(null);
3794
+ C(!1), _(0), L(null), V(null);
3791
3795
  }, [
3792
- b,
3796
+ C,
3793
3797
  _,
3794
3798
  L,
3795
3799
  V
@@ -3798,16 +3802,16 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3798
3802
  }, [r, I]);
3799
3803
  pe(() => {
3800
3804
  const $ = async ({ origin: te, data: ne }) => {
3801
- if (te !== De || typeof ne != "string") return;
3805
+ if (te !== Ae || typeof ne != "string") return;
3802
3806
  const P = JSON.parse(ne);
3803
3807
  if (P.action == "back")
3804
3808
  Q();
3805
3809
  else if (P.action == "back-to-similar-events")
3806
3810
  I();
3807
3811
  else if (P.action == "eventClicked") {
3808
- X.current = !0, C();
3809
- const W = P.data.event, Pe = e?.activeChart();
3810
- await e?.headerReady(), Pe?.clearMarks(2), localStorage.setItem(
3812
+ q.current = !0, b();
3813
+ const W = P.data.event, _e = e?.activeChart();
3814
+ await e?.headerReady(), _e?.clearMarks(2), localStorage.setItem(
3811
3815
  "iccandle:current-news-event",
3812
3816
  JSON.stringify({
3813
3817
  actual: W.actual,
@@ -3819,49 +3823,50 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3819
3823
  timestamp: W.timestamp,
3820
3824
  currency: W.currency
3821
3825
  })
3822
- ), Pe?.refreshMarks(), M(h), J(F), w(W.id);
3826
+ ), _e?.refreshMarks(), M(h), X(F), w(W.id);
3823
3827
  } else if (P.action == "intervalChanged" || P.action == "symbolChanged") {
3824
- const q = P.data;
3825
- if (q.type === 2) return;
3826
- q.resolution && D(q.resolution);
3827
- const W = a?.[q.symbol] ?? r;
3828
+ const G = P.data;
3829
+ if (G.type === 2) return;
3830
+ G.resolution && D(G.resolution);
3831
+ const W = ut.find(
3832
+ (_e) => _e.display_name == G.symbol || _e.ticker == G.symbol
3833
+ )?.ticker || "XAU_USD";
3828
3834
  T(W);
3829
3835
  } else if (P.action == "replay") {
3830
- const q = P.data;
3831
- b(q.isReplay), _(se), L(q.selectedCandles), V(
3836
+ if (S) return;
3837
+ const G = P.data;
3838
+ C(G.isReplay), _(re), L(G.selectedCandles), V(
3832
3839
  x?.[x.length - 1]?.timestamp ?? null
3833
3840
  );
3834
- } else P.action == "iframe-ready" && (U.current = !0, Z.current?.contentWindow?.postMessage(
3841
+ } else P.action == "iframe-ready" && (A.current = !0, Z.current?.contentWindow?.postMessage(
3835
3842
  y.current,
3836
3843
  "*"
3837
3844
  ), y.current = null);
3838
3845
  };
3839
3846
  return window.addEventListener("message", $), () => window.removeEventListener("message", $);
3840
3847
  }, [
3848
+ S,
3841
3849
  x,
3842
- se,
3850
+ re,
3843
3851
  e,
3844
3852
  r,
3845
- C,
3853
+ b,
3846
3854
  I,
3847
3855
  Q,
3848
3856
  a,
3849
3857
  y,
3850
- // setCurrentSymbolCompared,
3851
- // setSelectedTimeframeCompared,
3852
3858
  M,
3853
- J,
3859
+ X,
3854
3860
  F,
3855
3861
  h,
3856
- b,
3862
+ C,
3857
3863
  _,
3858
3864
  V,
3859
3865
  L
3860
- // setNewsPlayEndTimestampExternal,
3861
3866
  ]);
3862
- const me = Ue(() => {
3867
+ const me = Te(() => {
3863
3868
  const $ = B?.[0]?.candleData?.[K]?.metadata;
3864
- return $ ? [..._n].sort((te, ne) => ne - te).find((te) => [
3869
+ return $ ? [...hn].sort((te, ne) => ne - te).find((te) => [
3865
3870
  `next_pip_up_${te}`,
3866
3871
  `next_pip_down_${te}`
3867
3872
  ].some(
@@ -3874,7 +3879,7 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3874
3879
  };
3875
3880
  return window.addEventListener("popstate", $), () => window.removeEventListener("popstate", $);
3876
3881
  }, [Q]);
3877
- const oe = Ue(() => p ? B ? S ? `${De}/${p}?apiKey=${n}&userId=${s}&theme=${o}&interval=${j}&symbol=${O}` : `${De}/similar-events/${p}?apiKey=${n}&userId=${s}&theme=${o}` : `${De}?apiKey=${n}&userId=${s}&theme=${o}` : `${De}?apiKey=${n}&userId=${s}&theme=${o}`, [
3882
+ const ae = Te(() => p ? B ? S ? `${Ae}/${p}?apiKey=${n}&userId=${s}&theme=${o}&interval=${j}&symbol=${O}` : `${Ae}/similar-events/${p}?apiKey=${n}&userId=${s}&theme=${o}` : `${Ae}?apiKey=${n}&userId=${s}&theme=${o}` : `${Ae}?apiKey=${n}&userId=${s}&theme=${o}`, [
3878
3883
  p,
3879
3884
  B,
3880
3885
  S,
@@ -3905,9 +3910,9 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3905
3910
  widgetKey: n,
3906
3911
  theme: o,
3907
3912
  defaultSymbol: r,
3908
- newsDetail: ce,
3913
+ newsDetail: se,
3909
3914
  isUpcoming: H,
3910
- event: ce?.event,
3915
+ event: se?.event,
3911
3916
  selectedCandles: me,
3912
3917
  currentTimeFrame: h,
3913
3918
  currentSymbol: F,
@@ -3915,11 +3920,11 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3915
3920
  isElapsed: S,
3916
3921
  iframeRef: Z,
3917
3922
  pendingMessageRef: y,
3918
- iframeReadyToListenRef: U,
3923
+ iframeReadyToListenRef: A,
3919
3924
  pushBar: f,
3920
3925
  futureRef: d,
3921
3926
  highlightBarsRef: l,
3922
- setReplayModeExternal: b,
3927
+ setReplayModeExternal: C,
3923
3928
  setGapCountExternal: _,
3924
3929
  children: t
3925
3930
  }
@@ -3931,14 +3936,14 @@ const we = (e) => e === "1" ? 60 : e === "5" ? 300 : e === "1D" ? 1440 * 3600 :
3931
3936
  /* @__PURE__ */ m.jsx(
3932
3937
  "iframe",
3933
3938
  {
3934
- src: oe,
3939
+ src: ae,
3935
3940
  ref: Z,
3936
3941
  className: p && !S ? "news-widget_main__iframe_half" : "news-widget_main__iframe_full"
3937
3942
  }
3938
3943
  )
3939
3944
  ] });
3940
3945
  }, Fr = "https://api.iccandle.ai", jr = '"Inter Tight", ui-sans-serif, system-ui, sans-serif';
3941
- function Mt(e) {
3946
+ function Ht(e) {
3942
3947
  return {
3943
3948
  iccandle_primary: e.iccandle_primary,
3944
3949
  iccandle_border: e.iccandle_border,
@@ -3958,10 +3963,10 @@ const Br = async (e) => {
3958
3963
  const n = await t.json();
3959
3964
  return {
3960
3965
  ...n,
3961
- dark: Mt(n.dark),
3962
- light: Mt(n.light)
3966
+ dark: Ht(n.dark),
3967
+ light: Ht(n.light)
3963
3968
  };
3964
- }, Ht = {
3969
+ }, It = {
3965
3970
  iccandle_font: "--iccandle-font",
3966
3971
  iccandle_primary: "--iccandle-primary",
3967
3972
  iccandle_border: "--iccandle-border",
@@ -3970,23 +3975,23 @@ const Br = async (e) => {
3970
3975
  iccandle_primary_gradient_end: "--iccandle-primary-gradient-end"
3971
3976
  };
3972
3977
  function Yr(e, t) {
3973
- const [n, s] = ae(null);
3978
+ const [n, s] = ce(null);
3974
3979
  pe(() => {
3975
3980
  Br(e).then((d) => {
3976
3981
  s(d);
3977
3982
  });
3978
3983
  }, [e]);
3979
- const r = ue(null), [i, o] = ae(null), a = Ue(() => t === "system" ? window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : t, [t]), f = Ue(() => {
3984
+ const r = ue(null), [i, o] = ce(null), a = Te(() => t === "system" ? window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : t, [t]), f = Te(() => {
3980
3985
  if (n)
3981
3986
  return a === "dark" ? n.dark : n.light;
3982
3987
  }, [n, a]);
3983
3988
  return pe(() => {
3984
3989
  if (typeof window > "u" || !f || !i) return;
3985
3990
  const d = i;
3986
- Object.keys(Ht).forEach(
3991
+ Object.keys(It).forEach(
3987
3992
  (l) => {
3988
3993
  d.style.setProperty(
3989
- Ht[l],
3994
+ It[l],
3990
3995
  f[l]
3991
3996
  );
3992
3997
  }