Kurzga commited on
Commit
fefa90d
·
1 Parent(s): 3e9ff40

SmartStock

Browse files

React PWA App main codes and tsx files

.gitignore ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Python sanal ortamı ve cache dosyaları
2
+ .venv/
3
+ __pycache__/
4
+ *.pyc
5
+ instance/
6
+
7
+ # Node.js bağımlılıkları ve build çıktıları
8
+ frontend/node_modules/
9
+ frontend/dist/
10
+ .npm/
11
+
12
+ # VS Code ayarları
13
+ .vscode/
14
+
15
+ # İşletim sistemi dosyaları
16
+ .DS_Store
17
+ Thumbs.db
18
+
19
+ # Log ve ortam değişkeni dosyaları
20
+ *.log
21
+ .env
README.md ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## SmartStock – React PWA + FastAPI
2
+
3
+ Modern, mobil uyumlu bir PWA. Backend `/predict` endpoint’i ile `yfinance` + `ta` kullanır ve seçilen modele göre (RandomForest/SVM/LSTM) yön tahmini yapar.
4
+
5
+ ### Proje Yapısı
6
+
7
+ ```
8
+ StockTrade/
9
+ ├─ backend/
10
+ │ ├─ app/
11
+ │ │ └─ main.py
12
+ │ └─ requirements.txt
13
+ └─ frontend/
14
+ ├─ index.html
15
+ ├─ manifest.webmanifest
16
+ ├─ package.json
17
+ ├─ public/
18
+ │ ├─ sw.js
19
+ │ └─ icons/
20
+ │ ├─ icon-192.svg
21
+ │ └─ icon-512.svg
22
+ ├─ src/
23
+ │ ├─ App.tsx
24
+ │ └─ main.tsx
25
+ ├─ tsconfig.json
26
+ └─ vite.config.ts
27
+ ```
28
+
29
+ ### Backend Kurulum ve Çalıştırma
30
+
31
+ ```bash
32
+ cd "C:\Users\Dell\Desktop\Computer Science\AI\AI-Projects\StockTrade\backend"
33
+ python -m venv .venv
34
+ .venv\Scripts\activate
35
+ pip install -r requirements.txt
36
+ uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
37
+ ```
38
+
39
+ Test:
40
+ ```bash
41
+ curl -X POST http://localhost:8000/predict \
42
+ -H "Content-Type: application/json" \
43
+ -d '{"symbol":"AAPL","model":"RandomForest","horizon_days":5}'
44
+ ```
45
+
46
+ ### Frontend Kurulum ve Çalıştırma
47
+
48
+ ```bash
49
+ cd "C:\Users\Dell\Desktop\Computer Science\AI\AI-Projects\StockTrade\frontend"
50
+ npm install
51
+ npm run dev
52
+ ```
53
+
54
+ Tarayıcıda `http://localhost:5173` adresine gidin. Gerekirse `.env` oluşturup API URL’sini belirtin:
55
+
56
+ ```
57
+ VITE_API_URL=http://localhost:8000
58
+ ```
59
+
60
+ ### Notlar
61
+ - LSTM seçeneği TensorFlow indirir (CPU). İlk kurulum sürebilir.
62
+ - Semboller için `yfinance` ticker’ı kullanılır (ör. AAPL, MSFT, TSLA). BIST için çoğu sembol `BIST:` öneki olmadan karşılık bulur; bulunamazsa `YF` kısıtıdır.
63
+ - Yanıt örneği:
64
+
65
+ ```json
66
+ { "accuracy": 0.67, "trend": "Up" }
67
+ ```
68
+
69
+ ### Üretim İçin
70
+ - Frontend: `npm run build` ardından `dist` klasörünü statik sunucuyla servis edin.
71
+ - Backend: `uvicorn` yerine `gunicorn` + `uvicorn.workers.UvicornWorker` veya benzeri.
72
+
73
+
backend.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ cd "C:\Users\Dell\Desktop\Computer Science\AI\AI-Projects\StockTrade\backend"
2
+ .\.venv\Scripts\Activate.ps1
3
+ uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
backend/app/main.py ADDED
@@ -0,0 +1,507 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ from typing import Literal, Optional
3
+ from fastapi import FastAPI, HTTPException
4
+ from fastapi.middleware.cors import CORSMiddleware
5
+ from fastapi.staticfiles import StaticFiles
6
+ from fastapi.responses import FileResponse
7
+ from fastapi.responses import Response
8
+ import mimetypes
9
+ from pydantic import BaseModel, Field
10
+ import numpy as np
11
+ import pandas as pd
12
+ import yfinance as yf
13
+ import investpy
14
+ import pandas_datareader as pdr
15
+ import ta
16
+ import pickle
17
+ from datetime import datetime, timedelta
18
+ from sklearn.ensemble import RandomForestClassifier
19
+ from sklearn.svm import SVC
20
+ from sklearn.preprocessing import StandardScaler
21
+ from sklearn.metrics import accuracy_score
22
+ import tensorflow as tf
23
+ from tensorflow.keras import Sequential
24
+ from tensorflow.keras.layers import LSTM, Dense, Dropout
25
+ from tensorflow.keras.utils import to_categorical
26
+ from tensorflow.keras.callbacks import EarlyStopping
27
+
28
+ # === Sabitler ===
29
+ MODEL_DIR = "models"
30
+ os.makedirs(MODEL_DIR, exist_ok=True)
31
+
32
+ FEATURE_COLUMNS = [
33
+ "rsi_14", "macd", "macd_signal", "stoch", "ema_20", "sma_50",
34
+ "bb_high", "bb_low", "returns_1d", "range_percent", "log_volume"
35
+ ]
36
+ ALL_FEATURE_COLUMNS = FEATURE_COLUMNS + ["open", "high", "low", "close"]
37
+
38
+ ALPHA_VANTAGE_API_KEY = "BXSBX15BAGWGPZH"
39
+
40
+ # === API Modelleri ===
41
+ class PredictRequest(BaseModel):
42
+ symbol: str
43
+ model: Literal["RandomForest", "SVM", "LSTM"]
44
+ horizon_days: int = Field(..., ge=1, le=60)
45
+
46
+ def model_check(self):
47
+ return True
48
+
49
+ class PredictResponse(BaseModel):
50
+ accuracy: float
51
+ trend: Literal["Up", "Down", "Neutral"]
52
+ details: Optional[dict] = None
53
+
54
+ # === FastAPI config ===
55
+ app = FastAPI(title="SmartStock API", version="1.1.0")
56
+
57
+ app.add_middleware(
58
+ CORSMiddleware,
59
+ allow_origins=["*"], # Geliştirme / demo: tüm originlere izin
60
+ allow_credentials=True,
61
+ allow_methods=["*"],
62
+ allow_headers=["*"],
63
+ )
64
+
65
+ # === Veri indirme ===
66
+ def _generate_demo_data(symbol: str) -> pd.DataFrame:
67
+ dates = pd.date_range(end=pd.Timestamp.now().normalize(), periods=252*2, freq="B")
68
+ np.random.seed(42)
69
+ base_price = 150.0 if symbol.upper() == "AAPL" else 300.0
70
+ returns = np.random.normal(0.0005, 0.015, len(dates))
71
+ prices = [base_price]
72
+ for ret in returns[1:]:
73
+ prices.append(prices[-1] * (1 + ret + np.random.normal(0, 0.005)))
74
+ data = []
75
+ for date, close in zip(dates, prices):
76
+ volatility = 0.008
77
+ high = close * (1 + np.random.uniform(0, volatility))
78
+ low = close * (1 - np.random.uniform(0, volatility))
79
+ open_price = close * (1 + np.random.uniform(-volatility/3, volatility/3))
80
+ volume = np.random.randint(5_000_000, 25_000_000)
81
+ data.append({"open": open_price, "high": high, "low": low, "close": close, "volume": volume})
82
+ df = pd.DataFrame(data, index=dates)
83
+ return df
84
+
85
+ def _download_data(symbol: str) -> pd.DataFrame:
86
+ end_date = datetime.now()
87
+ start_date = end_date - timedelta(days=365*2)
88
+
89
+ # 1. ÖNCELİK: Alpha Vantage
90
+ if ALPHA_VANTAGE_API_KEY.strip():
91
+ try:
92
+ print(f"📡 Alpha Vantage'tan veri çekiliyor: {symbol}")
93
+ # BIST hisseleri için .IS uzantısını Alpha Vantage sevmez, bu yüzden temizleyelim.
94
+ av_symbol = symbol.replace('.IS', '')
95
+ df_av = pdr.get_data_alphavantage(symbols=av_symbol, api_key=ALPHA_VANTAGE_API_KEY, function="TIME_SERIES_DAILY")
96
+
97
+ if df_av is not None and not df_av.empty:
98
+ df_av.index = pd.to_datetime(df_av.index)
99
+ rename_map = {col: col.split(". ")[1].lower().replace("adjusted ", "") for col in df_av.columns if ". " in col}
100
+ df_av.rename(columns=rename_map, inplace=True)
101
+ required_cols = ["open","high","low","close","volume"]
102
+ if all(col in df_av.columns for col in required_cols):
103
+ df = df_av[required_cols].copy()
104
+ df = df[df.index >= start_date]
105
+ if len(df) >= 100:
106
+ print(f"✅ Alpha Vantage verisi başarıyla alındı ({len(df)} satır).")
107
+ return df
108
+ except Exception as e:
109
+ print(f"❌ Alpha Vantage veri çekilemedi: {e}")
110
+
111
+ # 2. ÖNCELİK: Altın Sertifikası için investpy
112
+ if symbol.upper() in ["ALTIN.IS", "ALTINS1.IS"]:
113
+ try:
114
+ print(f"📡 Altın Sertifikası verisi investpy ile çekiliyor...")
115
+ df_invest = investpy.get_stock_historical_data(
116
+ stock="ALTINS1",
117
+ country="turkey",
118
+ from_date=start_date.strftime('%d/%m/%Y'),
119
+ to_date=end_date.strftime('%d/%m/%Y')
120
+ )
121
+ if not df_invest.empty:
122
+ print(f"✅ investpy ile Altın Sertifikası verisi başarıyla alındı ({len(df_invest)} satır).")
123
+ df_invest = df_invest[["Open", "High", "Low", "Close", "Volume"]].rename(columns=str.lower)
124
+ return df_invest
125
+ except Exception as e:
126
+ print(f"❌ investpy ile veri çekilemedi: {e}")
127
+
128
+ # 3. ÖNCELİK: Yahoo Finance
129
+ try:
130
+ print(f"📡 Yahoo Finance'tan veri çekiliyor: {symbol}")
131
+ df_yf = yf.download(symbol, start=start_date, end=end_date, auto_adjust=True)
132
+ if df_yf is not None and not df_yf.empty and len(df_yf) >= 100:
133
+ print(f"✅ Yahoo Finance verisi başarıyla alındı ({len(df_yf)} satır).")
134
+ return df_yf[["Open","High","Low","Close","Volume"]].rename(columns=str.lower)
135
+ except Exception as e:
136
+ print(f"❌ Yahoo Finance veri çekilemedi: {e}")
137
+
138
+ # 4. ÖNCELİK (YEDEK): Demo Veri
139
+ print(f"📝 Demo veri oluşturuluyor: {symbol}")
140
+ return _generate_demo_data(symbol)
141
+
142
+ # --- Feature Engineering ---
143
+ def _build_features(df: pd.DataFrame) -> pd.DataFrame:
144
+ out = df.copy()
145
+ close = out["close"].squeeze()
146
+ high = out["high"].squeeze()
147
+ low = out["low"].squeeze()
148
+ volume = out["volume"].squeeze()
149
+
150
+ out["rsi_14"] = ta.momentum.RSIIndicator(close, window=14).rsi()
151
+ macd = ta.trend.MACD(close)
152
+ out["macd"] = macd.macd()
153
+ out["macd_signal"] = macd.macd_signal()
154
+ out["stoch"] = ta.momentum.StochasticOscillator(high, low, close, window=14).stoch()
155
+ out["ema_20"] = ta.trend.EMAIndicator(close, window=20).ema_indicator()
156
+ out["sma_50"] = ta.trend.SMAIndicator(close, window=50).sma_indicator()
157
+ bb = ta.volatility.BollingerBands(close, window=20)
158
+ out["bb_high"] = bb.bollinger_hband()
159
+ out["bb_low"] = bb.bollinger_lband()
160
+ out["returns_1d"] = close.pct_change()
161
+ out["range_percent"] = (high - low) / close
162
+ out["log_volume"] = np.log1p(volume)
163
+
164
+ out["atr_14"] = ta.volatility.AverageTrueRange(high, low, close, window=14).average_true_range()
165
+ out["adx_14"] = ta.trend.ADXIndicator(high, low, close, window=14).adx()
166
+ out["roc_10"] = ta.momentum.ROCIndicator(close, window=10).roc()
167
+
168
+ return out.dropna().reset_index(drop=True)
169
+
170
+ def _label_trend(df: pd.DataFrame, horizon: int) -> pd.Series:
171
+ close = df["close"].values
172
+ labels = []
173
+
174
+ for i in range(len(close) - horizon):
175
+ future = close[i + horizon]
176
+ current = close[i]
177
+ if future > current:
178
+ labels.append(1)
179
+ elif future < current:
180
+ labels.append(-1)
181
+ else:
182
+ labels.append(0)
183
+
184
+ labels = np.array(labels).squeeze()
185
+ return pd.Series(labels, index=df.index[:len(labels)], name="label")
186
+
187
+ # === Model persistence helpers ===
188
+ def _get_model_paths(symbol: str, model_name: str) -> tuple[str, str]:
189
+ base_path = os.path.join(MODEL_DIR, f"{symbol}_{model_name}")
190
+ return base_path + ".pkl", base_path + ".keras"
191
+
192
+ def _is_model_fresh(data_path: str, max_age_hours: int = 24) -> bool:
193
+ if not os.path.exists(data_path):
194
+ return False
195
+ model_time = datetime.fromtimestamp(os.path.getmtime(data_path))
196
+ return datetime.now() - model_time < timedelta(hours=max_age_hours)
197
+
198
+ def _save_model(model, scaler, symbol: str, model_name: str, lookback: Optional[int] = None, accuracy: Optional[float] = 0.0):
199
+ data_path, keras_path = _get_model_paths(symbol, model_name)
200
+ model_data = {'scaler': scaler, 'trained_at': datetime.now(), 'model_name': model_name, 'lookback': lookback, 'accuracy': accuracy}
201
+ if model_name == "LSTM":
202
+ model.save(keras_path)
203
+ model_data['model'] = None
204
+ with open(data_path, 'wb') as f:
205
+ pickle.dump(model_data, f)
206
+ else:
207
+ model_data['model'] = model
208
+ with open(data_path, 'wb') as f:
209
+ pickle.dump(model_data, f)
210
+
211
+ def _load_model(symbol: str, model_name: str):
212
+ data_path, keras_path = _get_model_paths(symbol, model_name)
213
+ if not os.path.exists(data_path):
214
+ return None, None, None, 0.0
215
+ with open(data_path, 'rb') as f:
216
+ model_data = pickle.load(f)
217
+ model = model_data.get('model')
218
+ scaler = model_data.get('scaler')
219
+ lookback = model_data.get('lookback')
220
+ accuracy = model_data.get('accuracy', 0.0)
221
+ if model_name == "LSTM" and os.path.exists(keras_path):
222
+ try:
223
+ model = tf.keras.models.load_model(keras_path)
224
+ except Exception as e:
225
+ print(f"❌ LSTM model yüklenemedi: {e}")
226
+ return None, None, None, 0.0
227
+ elif model_name == "LSTM" and not os.path.exists(keras_path):
228
+ return None, None, None, 0.0
229
+ return model, scaler, lookback, accuracy
230
+
231
+ def _get_feature_importances(model, feature_names):
232
+ importance_scores = {}
233
+ if hasattr(model, 'feature_importances_'):
234
+ importances = model.feature_importances_
235
+ feature_scores = dict(zip(feature_names, importances))
236
+ sorted_scores = sorted(feature_scores.items(), key=lambda item: item[1], reverse=True)
237
+ for name, score in sorted_scores[:8]:
238
+ importance_scores[name] = round(float(score), 4)
239
+ return importance_scores
240
+
241
+ # === Models ===
242
+ def _train_classical(X_train, y_train, model_name, feature_names):
243
+ scaler = None
244
+ importance = {}
245
+ print(f"🛠️ Klasik model eğitiliyor: {model_name} ({len(X_train)} örnek)")
246
+ if model_name == "RandomForest":
247
+ model = RandomForestClassifier(n_estimators=300, random_state=42, class_weight="balanced_subsample")
248
+ model.fit(X_train, y_train)
249
+ importance = _get_feature_importances(model, feature_names)
250
+ print("📈 RandomForest feature importances:", importance)
251
+ elif model_name == "SVM":
252
+ scaler = StandardScaler()
253
+ X_train = scaler.fit_transform(X_train)
254
+ model = SVC(kernel="rbf", probability=True, class_weight="balanced", random_state=42)
255
+ model.fit(X_train, y_train)
256
+ print("✅ SVM eğitimi tamamlandı")
257
+ else:
258
+ raise ValueError("Desteklenmeyen klasik model")
259
+ print("✅ Klasik model eğitimi tamamlandı")
260
+ return model, scaler, importance
261
+
262
+ # --- LSTM training
263
+ def _train_lstm(X_train, y_train, lookback=30):
264
+ num_classes = 3
265
+ y_cat = to_categorical(y_train + 1, num_classes=num_classes)
266
+
267
+ class_counts = pd.Series(y_train + 1).value_counts()
268
+ max_count = class_counts.max()
269
+ class_weights = {i: float(max_count / count) for i, count in class_counts.items()}
270
+
271
+ scaler = StandardScaler()
272
+ X_scaled = scaler.fit_transform(X_train)
273
+
274
+ X_seq, y_seq = [], []
275
+ for i in range(lookback, len(X_scaled)):
276
+ X_seq.append(X_scaled[i - lookback:i])
277
+ y_seq.append(y_cat[i])
278
+ X_seq, y_seq = np.array(X_seq), np.array(y_seq)
279
+
280
+ model = Sequential([
281
+ LSTM(64, return_sequences=True, input_shape=(X_seq.shape[1], X_seq.shape[2])),
282
+ LSTM(32),
283
+ Dropout(0.3),
284
+ Dense(32, activation="relu"),
285
+ Dense(num_classes, activation="softmax")
286
+ ])
287
+ model.compile(optimizer="adam", loss="categorical_crossentropy", metrics=["accuracy"])
288
+
289
+ early_stop = EarlyStopping(monitor='val_loss', patience=10, restore_best_weights=True)
290
+
291
+ history = model.fit(
292
+ X_seq, y_seq,
293
+ epochs=100,
294
+ batch_size=10,
295
+ validation_split=0.1,
296
+ class_weight=class_weights,
297
+ callbacks=[early_stop],
298
+ verbose=1
299
+ )
300
+
301
+ return model, scaler, lookback, history
302
+
303
+ def _predict_classical(model, scaler, X):
304
+ X_to_predict = X.copy()
305
+ if scaler:
306
+ X_to_predict = scaler.transform(X_to_predict)
307
+ return model.predict(X_to_predict)[0]
308
+
309
+ # DÜZELTME: scaler argümanı kaldırıldı, artık X_scaled bekler (çift ölçekleme önlendi)
310
+ def _predict_lstm(model, X_scaled: np.ndarray, lookback: int) -> int:
311
+ if len(X_scaled) < lookback:
312
+ raise ValueError(f"LSTM tahmin penceresi için yeterli veri yok ({len(X_scaled)} < {lookback}).")
313
+ # Zaten ölçeklenmiş verinin son penceresini al
314
+ last_window = X_scaled[-lookback:].copy()
315
+ window_input = np.expand_dims(last_window, axis=0)
316
+ probs = model.predict(window_input, verbose=0)[0]
317
+ return int(np.argmax(probs) - 1)
318
+
319
+ # === Fiyat tahmini ve print ===
320
+ def _predict_and_print_price(df_feat: pd.DataFrame, trend: str, df_raw: pd.DataFrame) -> float:
321
+ # UYARI DÜZELTMESİ: .item() ile skaler değerin alınması
322
+ last_close = df_feat["close"].iloc[-1].item()
323
+
324
+ if trend == "Up":
325
+ next_close = last_close * (1 + np.random.uniform(0.01, 0.02))
326
+ elif trend == "Down":
327
+ next_close = last_close * (1 - np.random.uniform(0.01, 0.02))
328
+ else:
329
+ next_close = last_close
330
+
331
+ next_close = float(np.round(next_close, 2))
332
+
333
+ last_date = df_raw.index[-1]
334
+ if isinstance(last_date, pd.Timestamp):
335
+ last_date = last_date.date()
336
+
337
+ print(f"📊 {last_date} - Trend: {trend}, Son Kapanış: {last_close:.2f}, Tahmini Kapanış: {next_close:.2f}")
338
+ return next_close
339
+
340
+ # === API Routes ===
341
+ @app.get("/health-check")
342
+ def health_check():
343
+ return {"status": "API is running"}
344
+
345
+ @app.post("/predict", response_model=PredictResponse)
346
+ def predict(req: PredictRequest):
347
+ req.model_check()
348
+ try:
349
+ df_raw = _download_data(req.symbol)
350
+ except Exception as e:
351
+ raise HTTPException(status_code=500, detail=f"Veri çekilemedi: {e}")
352
+
353
+ df_feat = _build_features(df_raw)
354
+ if df_feat.empty or len(df_feat) < 100:
355
+ raise HTTPException(status_code=400, detail=f"{req.symbol} için yeterli temiz veri yok ({len(df_feat)} < 100).")
356
+
357
+ # --- YENİ ve Düzeltilmiş Veri Hazırlığı ---
358
+ # 1. Önce etiketleri (y) ve özellikleri (X) oluşturun
359
+ labels = _label_trend(df_feat, req.horizon_days)
360
+ X_full = df_feat[ALL_FEATURE_COLUMNS].values.astype(np.float32)
361
+ y = labels.values.astype(int)
362
+
363
+ # 2. X'i, y'nin uzunluğuna uyacak şekilde kırpın. Bu, hizalamayı garanti eder.
364
+ X = X_full[:len(y)]
365
+
366
+ # 3. Artık X ve y aynı uzunlukta. Güvenle bölebilirsiniz.
367
+ split_idx = int(len(X) * 0.8)
368
+ if split_idx < 10:
369
+ raise HTTPException(status_code=400, detail="Yeterli eğitim verisi yok.")
370
+
371
+ X_train, X_test = X[:split_idx], X[split_idx:]
372
+ y_train, y_test = y[:split_idx], y[split_idx:]
373
+ # --- Bitiş: Düzeltilmiş Veri Hazırlığı ---
374
+
375
+ model, scaler, lookback, acc = None, None, None, 0.0
376
+ data_path, _ = _get_model_paths(req.symbol, req.model)
377
+
378
+ if _is_model_fresh(data_path):
379
+ model, scaler, lookback, acc = _load_model(req.symbol, req.model)
380
+
381
+ if model is None:
382
+ if req.model in ("RandomForest", "SVM"):
383
+ model, scaler, _ = _train_classical(X_train, y_train, req.model, ALL_FEATURE_COLUMNS)
384
+ X_test_to_eval = scaler.transform(X_test) if scaler else X_test
385
+ acc = float(accuracy_score(y_test, model.predict(X_test_to_eval)))
386
+
387
+ elif req.model == "LSTM":
388
+ lookback = 30
389
+ model, scaler, lookback, _ = _train_lstm(X_train, y_train, lookback=lookback)
390
+
391
+ X_test_scaled = scaler.transform(X_test)
392
+
393
+ X_seq_test, y_seq_test = [], []
394
+ for i in range(lookback, len(X_test_scaled)):
395
+ X_seq_test.append(X_test_scaled[i - lookback:i])
396
+ y_seq_test.append(y_test[i])
397
+
398
+ if X_seq_test:
399
+ X_seq_test = np.array(X_seq_test)
400
+ y_seq_test = np.array(y_seq_test)
401
+
402
+ # Dizilerin aynı uzunlukta olduğunu kontrol et (bu mantıkla artık hep eşit olmalı)
403
+ if len(X_seq_test) == len(y_seq_test):
404
+ preds = np.argmax(model.predict(X_seq_test, verbose=0), axis=1) - 1
405
+ acc = float(accuracy_score(y_seq_test, preds))
406
+
407
+ _save_model(model, scaler, req.symbol, req.model, lookback=lookback, accuracy=acc)
408
+
409
+ # --- Son Tahmin (Final Prediction) ---
410
+ # Son tahmin için tüm veri setini (etiketlenmemiş son veriler dahil) kullan
411
+ X_full_scaled = scaler.transform(X_full) if scaler else X_full
412
+
413
+ if req.model in ("RandomForest", "SVM"):
414
+ # Klasik modeller için son satır yeterli
415
+ next_pred = _predict_classical(model, scaler, X_full[-1:])
416
+ elif req.model == "LSTM":
417
+ # LSTM için ölçeklenmiş tam veriyi ve lookback'i gönder
418
+ next_pred = _predict_lstm(model, X_full_scaled, lookback)
419
+
420
+ trend = {1: "Up", -1: "Down", 0: "Neutral"}.get(int(next_pred), "Neutral")
421
+ next_close = _predict_and_print_price(df_feat, trend, df_raw)
422
+
423
+ return PredictResponse(
424
+ accuracy=round(acc, 4),
425
+ trend=trend,
426
+ details={
427
+ "model": req.model,
428
+ "last_close": df_feat["close"].iloc[-1].item(),
429
+ "predicted_close": next_close
430
+ }
431
+ )
432
+
433
+ # ======================================================
434
+ # === 🔹 FRONTEND (PWA) SERVE - STATIC FILES ===
435
+ # ======================================================
436
+ # FRONTEND_DIST yolunu dinamik hale getir (Render için en doğru yöntem)
437
+ # Bu kod, main.py'nin bulunduğu yerden bir üst dizine çıkıp oradaki 'frontend/dist' klasörünü bulur
438
+
439
+ BASE_DIR = os.path.dirname(os.path.abspath(__file__))
440
+ FRONTEND_DIST = os.path.join(os.path.dirname(BASE_DIR), "frontend", "dist")
441
+
442
+ # mimetypes register (garanti için)
443
+ mimetypes.add_type("application/javascript", ".js")
444
+ mimetypes.add_type("text/css", ".css")
445
+ mimetypes.add_type("application/manifest+json", ".webmanifest")
446
+ mimetypes.add_type("application/manifest+json", ".json")
447
+ mimetypes.add_type("image/png", ".png")
448
+ mimetypes.add_type("image/svg+xml", ".svg")
449
+
450
+ if os.path.isdir(FRONTEND_DIST):
451
+ # 1) assets klasörünü StaticFiles ile bağla (JS, CSS, asset'ler buradan servis edilecek)
452
+ app.mount("/assets", StaticFiles(directory=os.path.join(FRONTEND_DIST, "assets")), name="assets")
453
+
454
+ # 2) sw.js (service worker) - kesinlikle application/javascript ile dön
455
+ @app.get("/sw.js")
456
+ async def serve_sw():
457
+ sw_path = os.path.join(FRONTEND_DIST, "sw.js")
458
+ if not os.path.exists(sw_path):
459
+ raise HTTPException(status_code=404, detail="sw.js not found")
460
+ return FileResponse(sw_path, media_type="application/javascript")
461
+
462
+ # 3) manifest root name (sabit isimle erişiliyorsa) - /manifest.webmanifest isteği için
463
+ @app.get("/manifest.webmanifest")
464
+ async def serve_manifest_root():
465
+ # Önce assets içinde aranır, değilse dist kökündeki varsa onu döndür
466
+ candidates = []
467
+ assets_dir = os.path.join(FRONTEND_DIST, "assets")
468
+ if os.path.isdir(assets_dir):
469
+ candidates = [f for f in os.listdir(assets_dir) if f.endswith(".webmanifest")]
470
+ if candidates:
471
+ return FileResponse(os.path.join(assets_dir, candidates[0]), media_type="application/manifest+json")
472
+ # fallback: dist içindeyse
473
+ fallback = os.path.join(FRONTEND_DIST, "manifest.webmanifest")
474
+ if os.path.exists(fallback):
475
+ return FileResponse(fallback, media_type="application/manifest+json")
476
+ raise HTTPException(status_code=404, detail="manifest not found")
477
+
478
+ # 4) ikonlar
479
+ @app.get("/icon-192.png")
480
+ async def icon_192():
481
+ path = os.path.join(FRONTEND_DIST, "icon-192.png")
482
+ if not os.path.exists(path):
483
+ raise HTTPException(status_code=404, detail="icon-192.png not found")
484
+ return FileResponse(path, media_type="image/png")
485
+
486
+ @app.get("/icon-512.png")
487
+ async def icon_512():
488
+ path = os.path.join(FRONTEND_DIST, "icon-512.png")
489
+ if not os.path.exists(path):
490
+ raise HTTPException(status_code=404, detail="icon-512.png not found")
491
+ return FileResponse(path, media_type="image/png")
492
+
493
+ # 5) SPA catch-all: frontend rotalarını desteklemek için index.html döndür
494
+ @app.get("/{full_path:path}")
495
+ async def serve_index(full_path: str):
496
+ index_path = os.path.join(FRONTEND_DIST, "index.html")
497
+ if not os.path.exists(index_path):
498
+ raise HTTPException(status_code=404, detail="index.html not found")
499
+ return FileResponse(index_path, media_type="text/html")
500
+
501
+ print(f"✅ Frontend dist mounted from: {FRONTEND_DIST}")
502
+ else:
503
+ print(f"⚠️ Frontend dist NOT found at: {FRONTEND_DIST}. Run npm run build and check the path.")
504
+
505
+ if __name__ == "__main__":
506
+ import uvicorn
507
+ uvicorn.run(app, host="0.0.0.0", port=8000)
backend/models/AAPL_LSTM.keras ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8d078a215860cf879dbd8a381c099dc907aa7d52613265b60a766d57ebd75fe6
3
+ size 448289
backend/models/AAPL_LSTM.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0c17f273491319ff9d48fba36e2a78ac9b05fa4fb9361c7ec321ea7f5cc0127
3
+ size 939
build.sh ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+
3
+ # Exit on error
4
+ set -o errexit
5
+
6
+ # Backend bağımlılıklarını kur
7
+ pip install -r requirements.txt
8
+
9
+ # Frontend'i build et
10
+ cd frontend
11
+ npm install
12
+ npm run build
13
+ cd .. # Ana dizine geri dön
frontend.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ cd "C:\Users\Dell\Desktop\Computer Science\AI\AI-Projects\StockTrade\frontend"
2
+ npm run dev
frontend/package-lock.json ADDED
@@ -0,0 +1,1673 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "smartstock-pwa",
3
+ "version": "0.0.1",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "smartstock-pwa",
9
+ "version": "0.0.1",
10
+ "dependencies": {
11
+ "react": "18.3.1",
12
+ "react-dom": "18.3.1"
13
+ },
14
+ "devDependencies": {
15
+ "@types/react": "18.3.3",
16
+ "@types/react-dom": "18.3.0",
17
+ "@vitejs/plugin-react": "4.3.3",
18
+ "typescript": "5.5.4",
19
+ "vite": "5.4.2"
20
+ }
21
+ },
22
+ "node_modules/@babel/code-frame": {
23
+ "version": "7.27.1",
24
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz",
25
+ "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==",
26
+ "dev": true,
27
+ "license": "MIT",
28
+ "dependencies": {
29
+ "@babel/helper-validator-identifier": "^7.27.1",
30
+ "js-tokens": "^4.0.0",
31
+ "picocolors": "^1.1.1"
32
+ },
33
+ "engines": {
34
+ "node": ">=6.9.0"
35
+ }
36
+ },
37
+ "node_modules/@babel/compat-data": {
38
+ "version": "7.28.4",
39
+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.28.4.tgz",
40
+ "integrity": "sha512-YsmSKC29MJwf0gF8Rjjrg5LQCmyh+j/nD8/eP7f+BeoQTKYqs9RoWbjGOdy0+1Ekr68RJZMUOPVQaQisnIo4Rw==",
41
+ "dev": true,
42
+ "license": "MIT",
43
+ "engines": {
44
+ "node": ">=6.9.0"
45
+ }
46
+ },
47
+ "node_modules/@babel/core": {
48
+ "version": "7.28.4",
49
+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.4.tgz",
50
+ "integrity": "sha512-2BCOP7TN8M+gVDj7/ht3hsaO/B/n5oDbiAyyvnRlNOs+u1o+JWNYTQrmpuNp1/Wq2gcFrI01JAW+paEKDMx/CA==",
51
+ "dev": true,
52
+ "license": "MIT",
53
+ "dependencies": {
54
+ "@babel/code-frame": "^7.27.1",
55
+ "@babel/generator": "^7.28.3",
56
+ "@babel/helper-compilation-targets": "^7.27.2",
57
+ "@babel/helper-module-transforms": "^7.28.3",
58
+ "@babel/helpers": "^7.28.4",
59
+ "@babel/parser": "^7.28.4",
60
+ "@babel/template": "^7.27.2",
61
+ "@babel/traverse": "^7.28.4",
62
+ "@babel/types": "^7.28.4",
63
+ "@jridgewell/remapping": "^2.3.5",
64
+ "convert-source-map": "^2.0.0",
65
+ "debug": "^4.1.0",
66
+ "gensync": "^1.0.0-beta.2",
67
+ "json5": "^2.2.3",
68
+ "semver": "^6.3.1"
69
+ },
70
+ "engines": {
71
+ "node": ">=6.9.0"
72
+ },
73
+ "funding": {
74
+ "type": "opencollective",
75
+ "url": "https://opencollective.com/babel"
76
+ }
77
+ },
78
+ "node_modules/@babel/generator": {
79
+ "version": "7.28.3",
80
+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.3.tgz",
81
+ "integrity": "sha512-3lSpxGgvnmZznmBkCRnVREPUFJv2wrv9iAoFDvADJc0ypmdOxdUtcLeBgBJ6zE0PMeTKnxeQzyk0xTBq4Ep7zw==",
82
+ "dev": true,
83
+ "license": "MIT",
84
+ "dependencies": {
85
+ "@babel/parser": "^7.28.3",
86
+ "@babel/types": "^7.28.2",
87
+ "@jridgewell/gen-mapping": "^0.3.12",
88
+ "@jridgewell/trace-mapping": "^0.3.28",
89
+ "jsesc": "^3.0.2"
90
+ },
91
+ "engines": {
92
+ "node": ">=6.9.0"
93
+ }
94
+ },
95
+ "node_modules/@babel/helper-compilation-targets": {
96
+ "version": "7.27.2",
97
+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz",
98
+ "integrity": "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==",
99
+ "dev": true,
100
+ "license": "MIT",
101
+ "dependencies": {
102
+ "@babel/compat-data": "^7.27.2",
103
+ "@babel/helper-validator-option": "^7.27.1",
104
+ "browserslist": "^4.24.0",
105
+ "lru-cache": "^5.1.1",
106
+ "semver": "^6.3.1"
107
+ },
108
+ "engines": {
109
+ "node": ">=6.9.0"
110
+ }
111
+ },
112
+ "node_modules/@babel/helper-globals": {
113
+ "version": "7.28.0",
114
+ "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz",
115
+ "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==",
116
+ "dev": true,
117
+ "license": "MIT",
118
+ "engines": {
119
+ "node": ">=6.9.0"
120
+ }
121
+ },
122
+ "node_modules/@babel/helper-module-imports": {
123
+ "version": "7.27.1",
124
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz",
125
+ "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==",
126
+ "dev": true,
127
+ "license": "MIT",
128
+ "dependencies": {
129
+ "@babel/traverse": "^7.27.1",
130
+ "@babel/types": "^7.27.1"
131
+ },
132
+ "engines": {
133
+ "node": ">=6.9.0"
134
+ }
135
+ },
136
+ "node_modules/@babel/helper-module-transforms": {
137
+ "version": "7.28.3",
138
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.3.tgz",
139
+ "integrity": "sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw==",
140
+ "dev": true,
141
+ "license": "MIT",
142
+ "dependencies": {
143
+ "@babel/helper-module-imports": "^7.27.1",
144
+ "@babel/helper-validator-identifier": "^7.27.1",
145
+ "@babel/traverse": "^7.28.3"
146
+ },
147
+ "engines": {
148
+ "node": ">=6.9.0"
149
+ },
150
+ "peerDependencies": {
151
+ "@babel/core": "^7.0.0"
152
+ }
153
+ },
154
+ "node_modules/@babel/helper-plugin-utils": {
155
+ "version": "7.27.1",
156
+ "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz",
157
+ "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==",
158
+ "dev": true,
159
+ "license": "MIT",
160
+ "engines": {
161
+ "node": ">=6.9.0"
162
+ }
163
+ },
164
+ "node_modules/@babel/helper-string-parser": {
165
+ "version": "7.27.1",
166
+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz",
167
+ "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",
168
+ "dev": true,
169
+ "license": "MIT",
170
+ "engines": {
171
+ "node": ">=6.9.0"
172
+ }
173
+ },
174
+ "node_modules/@babel/helper-validator-identifier": {
175
+ "version": "7.27.1",
176
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz",
177
+ "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==",
178
+ "dev": true,
179
+ "license": "MIT",
180
+ "engines": {
181
+ "node": ">=6.9.0"
182
+ }
183
+ },
184
+ "node_modules/@babel/helper-validator-option": {
185
+ "version": "7.27.1",
186
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz",
187
+ "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==",
188
+ "dev": true,
189
+ "license": "MIT",
190
+ "engines": {
191
+ "node": ">=6.9.0"
192
+ }
193
+ },
194
+ "node_modules/@babel/helpers": {
195
+ "version": "7.28.4",
196
+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.4.tgz",
197
+ "integrity": "sha512-HFN59MmQXGHVyYadKLVumYsA9dBFun/ldYxipEjzA4196jpLZd8UjEEBLkbEkvfYreDqJhZxYAWFPtrfhNpj4w==",
198
+ "dev": true,
199
+ "license": "MIT",
200
+ "dependencies": {
201
+ "@babel/template": "^7.27.2",
202
+ "@babel/types": "^7.28.4"
203
+ },
204
+ "engines": {
205
+ "node": ">=6.9.0"
206
+ }
207
+ },
208
+ "node_modules/@babel/parser": {
209
+ "version": "7.28.4",
210
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.4.tgz",
211
+ "integrity": "sha512-yZbBqeM6TkpP9du/I2pUZnJsRMGGvOuIrhjzC1AwHwW+6he4mni6Bp/m8ijn0iOuZuPI2BfkCoSRunpyjnrQKg==",
212
+ "dev": true,
213
+ "license": "MIT",
214
+ "dependencies": {
215
+ "@babel/types": "^7.28.4"
216
+ },
217
+ "bin": {
218
+ "parser": "bin/babel-parser.js"
219
+ },
220
+ "engines": {
221
+ "node": ">=6.0.0"
222
+ }
223
+ },
224
+ "node_modules/@babel/plugin-transform-react-jsx-self": {
225
+ "version": "7.27.1",
226
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.27.1.tgz",
227
+ "integrity": "sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw==",
228
+ "dev": true,
229
+ "license": "MIT",
230
+ "dependencies": {
231
+ "@babel/helper-plugin-utils": "^7.27.1"
232
+ },
233
+ "engines": {
234
+ "node": ">=6.9.0"
235
+ },
236
+ "peerDependencies": {
237
+ "@babel/core": "^7.0.0-0"
238
+ }
239
+ },
240
+ "node_modules/@babel/plugin-transform-react-jsx-source": {
241
+ "version": "7.27.1",
242
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.27.1.tgz",
243
+ "integrity": "sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw==",
244
+ "dev": true,
245
+ "license": "MIT",
246
+ "dependencies": {
247
+ "@babel/helper-plugin-utils": "^7.27.1"
248
+ },
249
+ "engines": {
250
+ "node": ">=6.9.0"
251
+ },
252
+ "peerDependencies": {
253
+ "@babel/core": "^7.0.0-0"
254
+ }
255
+ },
256
+ "node_modules/@babel/template": {
257
+ "version": "7.27.2",
258
+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz",
259
+ "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==",
260
+ "dev": true,
261
+ "license": "MIT",
262
+ "dependencies": {
263
+ "@babel/code-frame": "^7.27.1",
264
+ "@babel/parser": "^7.27.2",
265
+ "@babel/types": "^7.27.1"
266
+ },
267
+ "engines": {
268
+ "node": ">=6.9.0"
269
+ }
270
+ },
271
+ "node_modules/@babel/traverse": {
272
+ "version": "7.28.4",
273
+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.4.tgz",
274
+ "integrity": "sha512-YEzuboP2qvQavAcjgQNVgsvHIDv6ZpwXvcvjmyySP2DIMuByS/6ioU5G9pYrWHM6T2YDfc7xga9iNzYOs12CFQ==",
275
+ "dev": true,
276
+ "license": "MIT",
277
+ "dependencies": {
278
+ "@babel/code-frame": "^7.27.1",
279
+ "@babel/generator": "^7.28.3",
280
+ "@babel/helper-globals": "^7.28.0",
281
+ "@babel/parser": "^7.28.4",
282
+ "@babel/template": "^7.27.2",
283
+ "@babel/types": "^7.28.4",
284
+ "debug": "^4.3.1"
285
+ },
286
+ "engines": {
287
+ "node": ">=6.9.0"
288
+ }
289
+ },
290
+ "node_modules/@babel/types": {
291
+ "version": "7.28.4",
292
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.4.tgz",
293
+ "integrity": "sha512-bkFqkLhh3pMBUQQkpVgWDWq/lqzc2678eUyDlTBhRqhCHFguYYGM0Efga7tYk4TogG/3x0EEl66/OQ+WGbWB/Q==",
294
+ "dev": true,
295
+ "license": "MIT",
296
+ "dependencies": {
297
+ "@babel/helper-string-parser": "^7.27.1",
298
+ "@babel/helper-validator-identifier": "^7.27.1"
299
+ },
300
+ "engines": {
301
+ "node": ">=6.9.0"
302
+ }
303
+ },
304
+ "node_modules/@esbuild/aix-ppc64": {
305
+ "version": "0.21.5",
306
+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz",
307
+ "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==",
308
+ "cpu": [
309
+ "ppc64"
310
+ ],
311
+ "dev": true,
312
+ "license": "MIT",
313
+ "optional": true,
314
+ "os": [
315
+ "aix"
316
+ ],
317
+ "engines": {
318
+ "node": ">=12"
319
+ }
320
+ },
321
+ "node_modules/@esbuild/android-arm": {
322
+ "version": "0.21.5",
323
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz",
324
+ "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==",
325
+ "cpu": [
326
+ "arm"
327
+ ],
328
+ "dev": true,
329
+ "license": "MIT",
330
+ "optional": true,
331
+ "os": [
332
+ "android"
333
+ ],
334
+ "engines": {
335
+ "node": ">=12"
336
+ }
337
+ },
338
+ "node_modules/@esbuild/android-arm64": {
339
+ "version": "0.21.5",
340
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz",
341
+ "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==",
342
+ "cpu": [
343
+ "arm64"
344
+ ],
345
+ "dev": true,
346
+ "license": "MIT",
347
+ "optional": true,
348
+ "os": [
349
+ "android"
350
+ ],
351
+ "engines": {
352
+ "node": ">=12"
353
+ }
354
+ },
355
+ "node_modules/@esbuild/android-x64": {
356
+ "version": "0.21.5",
357
+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz",
358
+ "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==",
359
+ "cpu": [
360
+ "x64"
361
+ ],
362
+ "dev": true,
363
+ "license": "MIT",
364
+ "optional": true,
365
+ "os": [
366
+ "android"
367
+ ],
368
+ "engines": {
369
+ "node": ">=12"
370
+ }
371
+ },
372
+ "node_modules/@esbuild/darwin-arm64": {
373
+ "version": "0.21.5",
374
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz",
375
+ "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==",
376
+ "cpu": [
377
+ "arm64"
378
+ ],
379
+ "dev": true,
380
+ "license": "MIT",
381
+ "optional": true,
382
+ "os": [
383
+ "darwin"
384
+ ],
385
+ "engines": {
386
+ "node": ">=12"
387
+ }
388
+ },
389
+ "node_modules/@esbuild/darwin-x64": {
390
+ "version": "0.21.5",
391
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz",
392
+ "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==",
393
+ "cpu": [
394
+ "x64"
395
+ ],
396
+ "dev": true,
397
+ "license": "MIT",
398
+ "optional": true,
399
+ "os": [
400
+ "darwin"
401
+ ],
402
+ "engines": {
403
+ "node": ">=12"
404
+ }
405
+ },
406
+ "node_modules/@esbuild/freebsd-arm64": {
407
+ "version": "0.21.5",
408
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz",
409
+ "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==",
410
+ "cpu": [
411
+ "arm64"
412
+ ],
413
+ "dev": true,
414
+ "license": "MIT",
415
+ "optional": true,
416
+ "os": [
417
+ "freebsd"
418
+ ],
419
+ "engines": {
420
+ "node": ">=12"
421
+ }
422
+ },
423
+ "node_modules/@esbuild/freebsd-x64": {
424
+ "version": "0.21.5",
425
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz",
426
+ "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==",
427
+ "cpu": [
428
+ "x64"
429
+ ],
430
+ "dev": true,
431
+ "license": "MIT",
432
+ "optional": true,
433
+ "os": [
434
+ "freebsd"
435
+ ],
436
+ "engines": {
437
+ "node": ">=12"
438
+ }
439
+ },
440
+ "node_modules/@esbuild/linux-arm": {
441
+ "version": "0.21.5",
442
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz",
443
+ "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==",
444
+ "cpu": [
445
+ "arm"
446
+ ],
447
+ "dev": true,
448
+ "license": "MIT",
449
+ "optional": true,
450
+ "os": [
451
+ "linux"
452
+ ],
453
+ "engines": {
454
+ "node": ">=12"
455
+ }
456
+ },
457
+ "node_modules/@esbuild/linux-arm64": {
458
+ "version": "0.21.5",
459
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz",
460
+ "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==",
461
+ "cpu": [
462
+ "arm64"
463
+ ],
464
+ "dev": true,
465
+ "license": "MIT",
466
+ "optional": true,
467
+ "os": [
468
+ "linux"
469
+ ],
470
+ "engines": {
471
+ "node": ">=12"
472
+ }
473
+ },
474
+ "node_modules/@esbuild/linux-ia32": {
475
+ "version": "0.21.5",
476
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz",
477
+ "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==",
478
+ "cpu": [
479
+ "ia32"
480
+ ],
481
+ "dev": true,
482
+ "license": "MIT",
483
+ "optional": true,
484
+ "os": [
485
+ "linux"
486
+ ],
487
+ "engines": {
488
+ "node": ">=12"
489
+ }
490
+ },
491
+ "node_modules/@esbuild/linux-loong64": {
492
+ "version": "0.21.5",
493
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz",
494
+ "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==",
495
+ "cpu": [
496
+ "loong64"
497
+ ],
498
+ "dev": true,
499
+ "license": "MIT",
500
+ "optional": true,
501
+ "os": [
502
+ "linux"
503
+ ],
504
+ "engines": {
505
+ "node": ">=12"
506
+ }
507
+ },
508
+ "node_modules/@esbuild/linux-mips64el": {
509
+ "version": "0.21.5",
510
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz",
511
+ "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==",
512
+ "cpu": [
513
+ "mips64el"
514
+ ],
515
+ "dev": true,
516
+ "license": "MIT",
517
+ "optional": true,
518
+ "os": [
519
+ "linux"
520
+ ],
521
+ "engines": {
522
+ "node": ">=12"
523
+ }
524
+ },
525
+ "node_modules/@esbuild/linux-ppc64": {
526
+ "version": "0.21.5",
527
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz",
528
+ "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==",
529
+ "cpu": [
530
+ "ppc64"
531
+ ],
532
+ "dev": true,
533
+ "license": "MIT",
534
+ "optional": true,
535
+ "os": [
536
+ "linux"
537
+ ],
538
+ "engines": {
539
+ "node": ">=12"
540
+ }
541
+ },
542
+ "node_modules/@esbuild/linux-riscv64": {
543
+ "version": "0.21.5",
544
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz",
545
+ "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==",
546
+ "cpu": [
547
+ "riscv64"
548
+ ],
549
+ "dev": true,
550
+ "license": "MIT",
551
+ "optional": true,
552
+ "os": [
553
+ "linux"
554
+ ],
555
+ "engines": {
556
+ "node": ">=12"
557
+ }
558
+ },
559
+ "node_modules/@esbuild/linux-s390x": {
560
+ "version": "0.21.5",
561
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz",
562
+ "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==",
563
+ "cpu": [
564
+ "s390x"
565
+ ],
566
+ "dev": true,
567
+ "license": "MIT",
568
+ "optional": true,
569
+ "os": [
570
+ "linux"
571
+ ],
572
+ "engines": {
573
+ "node": ">=12"
574
+ }
575
+ },
576
+ "node_modules/@esbuild/linux-x64": {
577
+ "version": "0.21.5",
578
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz",
579
+ "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==",
580
+ "cpu": [
581
+ "x64"
582
+ ],
583
+ "dev": true,
584
+ "license": "MIT",
585
+ "optional": true,
586
+ "os": [
587
+ "linux"
588
+ ],
589
+ "engines": {
590
+ "node": ">=12"
591
+ }
592
+ },
593
+ "node_modules/@esbuild/netbsd-x64": {
594
+ "version": "0.21.5",
595
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz",
596
+ "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==",
597
+ "cpu": [
598
+ "x64"
599
+ ],
600
+ "dev": true,
601
+ "license": "MIT",
602
+ "optional": true,
603
+ "os": [
604
+ "netbsd"
605
+ ],
606
+ "engines": {
607
+ "node": ">=12"
608
+ }
609
+ },
610
+ "node_modules/@esbuild/openbsd-x64": {
611
+ "version": "0.21.5",
612
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz",
613
+ "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==",
614
+ "cpu": [
615
+ "x64"
616
+ ],
617
+ "dev": true,
618
+ "license": "MIT",
619
+ "optional": true,
620
+ "os": [
621
+ "openbsd"
622
+ ],
623
+ "engines": {
624
+ "node": ">=12"
625
+ }
626
+ },
627
+ "node_modules/@esbuild/sunos-x64": {
628
+ "version": "0.21.5",
629
+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz",
630
+ "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==",
631
+ "cpu": [
632
+ "x64"
633
+ ],
634
+ "dev": true,
635
+ "license": "MIT",
636
+ "optional": true,
637
+ "os": [
638
+ "sunos"
639
+ ],
640
+ "engines": {
641
+ "node": ">=12"
642
+ }
643
+ },
644
+ "node_modules/@esbuild/win32-arm64": {
645
+ "version": "0.21.5",
646
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz",
647
+ "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==",
648
+ "cpu": [
649
+ "arm64"
650
+ ],
651
+ "dev": true,
652
+ "license": "MIT",
653
+ "optional": true,
654
+ "os": [
655
+ "win32"
656
+ ],
657
+ "engines": {
658
+ "node": ">=12"
659
+ }
660
+ },
661
+ "node_modules/@esbuild/win32-ia32": {
662
+ "version": "0.21.5",
663
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz",
664
+ "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==",
665
+ "cpu": [
666
+ "ia32"
667
+ ],
668
+ "dev": true,
669
+ "license": "MIT",
670
+ "optional": true,
671
+ "os": [
672
+ "win32"
673
+ ],
674
+ "engines": {
675
+ "node": ">=12"
676
+ }
677
+ },
678
+ "node_modules/@esbuild/win32-x64": {
679
+ "version": "0.21.5",
680
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz",
681
+ "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==",
682
+ "cpu": [
683
+ "x64"
684
+ ],
685
+ "dev": true,
686
+ "license": "MIT",
687
+ "optional": true,
688
+ "os": [
689
+ "win32"
690
+ ],
691
+ "engines": {
692
+ "node": ">=12"
693
+ }
694
+ },
695
+ "node_modules/@jridgewell/gen-mapping": {
696
+ "version": "0.3.13",
697
+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
698
+ "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",
699
+ "dev": true,
700
+ "license": "MIT",
701
+ "dependencies": {
702
+ "@jridgewell/sourcemap-codec": "^1.5.0",
703
+ "@jridgewell/trace-mapping": "^0.3.24"
704
+ }
705
+ },
706
+ "node_modules/@jridgewell/remapping": {
707
+ "version": "2.3.5",
708
+ "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",
709
+ "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",
710
+ "dev": true,
711
+ "license": "MIT",
712
+ "dependencies": {
713
+ "@jridgewell/gen-mapping": "^0.3.5",
714
+ "@jridgewell/trace-mapping": "^0.3.24"
715
+ }
716
+ },
717
+ "node_modules/@jridgewell/resolve-uri": {
718
+ "version": "3.1.2",
719
+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
720
+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
721
+ "dev": true,
722
+ "license": "MIT",
723
+ "engines": {
724
+ "node": ">=6.0.0"
725
+ }
726
+ },
727
+ "node_modules/@jridgewell/sourcemap-codec": {
728
+ "version": "1.5.5",
729
+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
730
+ "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
731
+ "dev": true,
732
+ "license": "MIT"
733
+ },
734
+ "node_modules/@jridgewell/trace-mapping": {
735
+ "version": "0.3.31",
736
+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
737
+ "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
738
+ "dev": true,
739
+ "license": "MIT",
740
+ "dependencies": {
741
+ "@jridgewell/resolve-uri": "^3.1.0",
742
+ "@jridgewell/sourcemap-codec": "^1.4.14"
743
+ }
744
+ },
745
+ "node_modules/@rollup/rollup-android-arm-eabi": {
746
+ "version": "4.52.4",
747
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.52.4.tgz",
748
+ "integrity": "sha512-BTm2qKNnWIQ5auf4deoetINJm2JzvihvGb9R6K/ETwKLql/Bb3Eg2H1FBp1gUb4YGbydMA3jcmQTR73q7J+GAA==",
749
+ "cpu": [
750
+ "arm"
751
+ ],
752
+ "dev": true,
753
+ "license": "MIT",
754
+ "optional": true,
755
+ "os": [
756
+ "android"
757
+ ]
758
+ },
759
+ "node_modules/@rollup/rollup-android-arm64": {
760
+ "version": "4.52.4",
761
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.52.4.tgz",
762
+ "integrity": "sha512-P9LDQiC5vpgGFgz7GSM6dKPCiqR3XYN1WwJKA4/BUVDjHpYsf3iBEmVz62uyq20NGYbiGPR5cNHI7T1HqxNs2w==",
763
+ "cpu": [
764
+ "arm64"
765
+ ],
766
+ "dev": true,
767
+ "license": "MIT",
768
+ "optional": true,
769
+ "os": [
770
+ "android"
771
+ ]
772
+ },
773
+ "node_modules/@rollup/rollup-darwin-arm64": {
774
+ "version": "4.52.4",
775
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.52.4.tgz",
776
+ "integrity": "sha512-QRWSW+bVccAvZF6cbNZBJwAehmvG9NwfWHwMy4GbWi/BQIA/laTIktebT2ipVjNncqE6GLPxOok5hsECgAxGZg==",
777
+ "cpu": [
778
+ "arm64"
779
+ ],
780
+ "dev": true,
781
+ "license": "MIT",
782
+ "optional": true,
783
+ "os": [
784
+ "darwin"
785
+ ]
786
+ },
787
+ "node_modules/@rollup/rollup-darwin-x64": {
788
+ "version": "4.52.4",
789
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.52.4.tgz",
790
+ "integrity": "sha512-hZgP05pResAkRJxL1b+7yxCnXPGsXU0fG9Yfd6dUaoGk+FhdPKCJ5L1Sumyxn8kvw8Qi5PvQ8ulenUbRjzeCTw==",
791
+ "cpu": [
792
+ "x64"
793
+ ],
794
+ "dev": true,
795
+ "license": "MIT",
796
+ "optional": true,
797
+ "os": [
798
+ "darwin"
799
+ ]
800
+ },
801
+ "node_modules/@rollup/rollup-freebsd-arm64": {
802
+ "version": "4.52.4",
803
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.52.4.tgz",
804
+ "integrity": "sha512-xmc30VshuBNUd58Xk4TKAEcRZHaXlV+tCxIXELiE9sQuK3kG8ZFgSPi57UBJt8/ogfhAF5Oz4ZSUBN77weM+mQ==",
805
+ "cpu": [
806
+ "arm64"
807
+ ],
808
+ "dev": true,
809
+ "license": "MIT",
810
+ "optional": true,
811
+ "os": [
812
+ "freebsd"
813
+ ]
814
+ },
815
+ "node_modules/@rollup/rollup-freebsd-x64": {
816
+ "version": "4.52.4",
817
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.52.4.tgz",
818
+ "integrity": "sha512-WdSLpZFjOEqNZGmHflxyifolwAiZmDQzuOzIq9L27ButpCVpD7KzTRtEG1I0wMPFyiyUdOO+4t8GvrnBLQSwpw==",
819
+ "cpu": [
820
+ "x64"
821
+ ],
822
+ "dev": true,
823
+ "license": "MIT",
824
+ "optional": true,
825
+ "os": [
826
+ "freebsd"
827
+ ]
828
+ },
829
+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {
830
+ "version": "4.52.4",
831
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.52.4.tgz",
832
+ "integrity": "sha512-xRiOu9Of1FZ4SxVbB0iEDXc4ddIcjCv2aj03dmW8UrZIW7aIQ9jVJdLBIhxBI+MaTnGAKyvMwPwQnoOEvP7FgQ==",
833
+ "cpu": [
834
+ "arm"
835
+ ],
836
+ "dev": true,
837
+ "license": "MIT",
838
+ "optional": true,
839
+ "os": [
840
+ "linux"
841
+ ]
842
+ },
843
+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {
844
+ "version": "4.52.4",
845
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.52.4.tgz",
846
+ "integrity": "sha512-FbhM2p9TJAmEIEhIgzR4soUcsW49e9veAQCziwbR+XWB2zqJ12b4i/+hel9yLiD8pLncDH4fKIPIbt5238341Q==",
847
+ "cpu": [
848
+ "arm"
849
+ ],
850
+ "dev": true,
851
+ "license": "MIT",
852
+ "optional": true,
853
+ "os": [
854
+ "linux"
855
+ ]
856
+ },
857
+ "node_modules/@rollup/rollup-linux-arm64-gnu": {
858
+ "version": "4.52.4",
859
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.52.4.tgz",
860
+ "integrity": "sha512-4n4gVwhPHR9q/g8lKCyz0yuaD0MvDf7dV4f9tHt0C73Mp8h38UCtSCSE6R9iBlTbXlmA8CjpsZoujhszefqueg==",
861
+ "cpu": [
862
+ "arm64"
863
+ ],
864
+ "dev": true,
865
+ "license": "MIT",
866
+ "optional": true,
867
+ "os": [
868
+ "linux"
869
+ ]
870
+ },
871
+ "node_modules/@rollup/rollup-linux-arm64-musl": {
872
+ "version": "4.52.4",
873
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.52.4.tgz",
874
+ "integrity": "sha512-u0n17nGA0nvi/11gcZKsjkLj1QIpAuPFQbR48Subo7SmZJnGxDpspyw2kbpuoQnyK+9pwf3pAoEXerJs/8Mi9g==",
875
+ "cpu": [
876
+ "arm64"
877
+ ],
878
+ "dev": true,
879
+ "license": "MIT",
880
+ "optional": true,
881
+ "os": [
882
+ "linux"
883
+ ]
884
+ },
885
+ "node_modules/@rollup/rollup-linux-loong64-gnu": {
886
+ "version": "4.52.4",
887
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.52.4.tgz",
888
+ "integrity": "sha512-0G2c2lpYtbTuXo8KEJkDkClE/+/2AFPdPAbmaHoE870foRFs4pBrDehilMcrSScrN/fB/1HTaWO4bqw+ewBzMQ==",
889
+ "cpu": [
890
+ "loong64"
891
+ ],
892
+ "dev": true,
893
+ "license": "MIT",
894
+ "optional": true,
895
+ "os": [
896
+ "linux"
897
+ ]
898
+ },
899
+ "node_modules/@rollup/rollup-linux-ppc64-gnu": {
900
+ "version": "4.52.4",
901
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.52.4.tgz",
902
+ "integrity": "sha512-teSACug1GyZHmPDv14VNbvZFX779UqWTsd7KtTM9JIZRDI5NUwYSIS30kzI8m06gOPB//jtpqlhmraQ68b5X2g==",
903
+ "cpu": [
904
+ "ppc64"
905
+ ],
906
+ "dev": true,
907
+ "license": "MIT",
908
+ "optional": true,
909
+ "os": [
910
+ "linux"
911
+ ]
912
+ },
913
+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {
914
+ "version": "4.52.4",
915
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.52.4.tgz",
916
+ "integrity": "sha512-/MOEW3aHjjs1p4Pw1Xk4+3egRevx8Ji9N6HUIA1Ifh8Q+cg9dremvFCUbOX2Zebz80BwJIgCBUemjqhU5XI5Eg==",
917
+ "cpu": [
918
+ "riscv64"
919
+ ],
920
+ "dev": true,
921
+ "license": "MIT",
922
+ "optional": true,
923
+ "os": [
924
+ "linux"
925
+ ]
926
+ },
927
+ "node_modules/@rollup/rollup-linux-riscv64-musl": {
928
+ "version": "4.52.4",
929
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.52.4.tgz",
930
+ "integrity": "sha512-1HHmsRyh845QDpEWzOFtMCph5Ts+9+yllCrREuBR/vg2RogAQGGBRC8lDPrPOMnrdOJ+mt1WLMOC2Kao/UwcvA==",
931
+ "cpu": [
932
+ "riscv64"
933
+ ],
934
+ "dev": true,
935
+ "license": "MIT",
936
+ "optional": true,
937
+ "os": [
938
+ "linux"
939
+ ]
940
+ },
941
+ "node_modules/@rollup/rollup-linux-s390x-gnu": {
942
+ "version": "4.52.4",
943
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.52.4.tgz",
944
+ "integrity": "sha512-seoeZp4L/6D1MUyjWkOMRU6/iLmCU2EjbMTyAG4oIOs1/I82Y5lTeaxW0KBfkUdHAWN7j25bpkt0rjnOgAcQcA==",
945
+ "cpu": [
946
+ "s390x"
947
+ ],
948
+ "dev": true,
949
+ "license": "MIT",
950
+ "optional": true,
951
+ "os": [
952
+ "linux"
953
+ ]
954
+ },
955
+ "node_modules/@rollup/rollup-linux-x64-gnu": {
956
+ "version": "4.52.4",
957
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.52.4.tgz",
958
+ "integrity": "sha512-Wi6AXf0k0L7E2gteNsNHUs7UMwCIhsCTs6+tqQ5GPwVRWMaflqGec4Sd8n6+FNFDw9vGcReqk2KzBDhCa1DLYg==",
959
+ "cpu": [
960
+ "x64"
961
+ ],
962
+ "dev": true,
963
+ "license": "MIT",
964
+ "optional": true,
965
+ "os": [
966
+ "linux"
967
+ ]
968
+ },
969
+ "node_modules/@rollup/rollup-linux-x64-musl": {
970
+ "version": "4.52.4",
971
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.52.4.tgz",
972
+ "integrity": "sha512-dtBZYjDmCQ9hW+WgEkaffvRRCKm767wWhxsFW3Lw86VXz/uJRuD438/XvbZT//B96Vs8oTA8Q4A0AfHbrxP9zw==",
973
+ "cpu": [
974
+ "x64"
975
+ ],
976
+ "dev": true,
977
+ "license": "MIT",
978
+ "optional": true,
979
+ "os": [
980
+ "linux"
981
+ ]
982
+ },
983
+ "node_modules/@rollup/rollup-openharmony-arm64": {
984
+ "version": "4.52.4",
985
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.52.4.tgz",
986
+ "integrity": "sha512-1ox+GqgRWqaB1RnyZXL8PD6E5f7YyRUJYnCqKpNzxzP0TkaUh112NDrR9Tt+C8rJ4x5G9Mk8PQR3o7Ku2RKqKA==",
987
+ "cpu": [
988
+ "arm64"
989
+ ],
990
+ "dev": true,
991
+ "license": "MIT",
992
+ "optional": true,
993
+ "os": [
994
+ "openharmony"
995
+ ]
996
+ },
997
+ "node_modules/@rollup/rollup-win32-arm64-msvc": {
998
+ "version": "4.52.4",
999
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.52.4.tgz",
1000
+ "integrity": "sha512-8GKr640PdFNXwzIE0IrkMWUNUomILLkfeHjXBi/nUvFlpZP+FA8BKGKpacjW6OUUHaNI6sUURxR2U2g78FOHWQ==",
1001
+ "cpu": [
1002
+ "arm64"
1003
+ ],
1004
+ "dev": true,
1005
+ "license": "MIT",
1006
+ "optional": true,
1007
+ "os": [
1008
+ "win32"
1009
+ ]
1010
+ },
1011
+ "node_modules/@rollup/rollup-win32-ia32-msvc": {
1012
+ "version": "4.52.4",
1013
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.52.4.tgz",
1014
+ "integrity": "sha512-AIy/jdJ7WtJ/F6EcfOb2GjR9UweO0n43jNObQMb6oGxkYTfLcnN7vYYpG+CN3lLxrQkzWnMOoNSHTW54pgbVxw==",
1015
+ "cpu": [
1016
+ "ia32"
1017
+ ],
1018
+ "dev": true,
1019
+ "license": "MIT",
1020
+ "optional": true,
1021
+ "os": [
1022
+ "win32"
1023
+ ]
1024
+ },
1025
+ "node_modules/@rollup/rollup-win32-x64-gnu": {
1026
+ "version": "4.52.4",
1027
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.52.4.tgz",
1028
+ "integrity": "sha512-UF9KfsH9yEam0UjTwAgdK0anlQ7c8/pWPU2yVjyWcF1I1thABt6WXE47cI71pGiZ8wGvxohBoLnxM04L/wj8mQ==",
1029
+ "cpu": [
1030
+ "x64"
1031
+ ],
1032
+ "dev": true,
1033
+ "license": "MIT",
1034
+ "optional": true,
1035
+ "os": [
1036
+ "win32"
1037
+ ]
1038
+ },
1039
+ "node_modules/@rollup/rollup-win32-x64-msvc": {
1040
+ "version": "4.52.4",
1041
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.52.4.tgz",
1042
+ "integrity": "sha512-bf9PtUa0u8IXDVxzRToFQKsNCRz9qLYfR/MpECxl4mRoWYjAeFjgxj1XdZr2M/GNVpT05p+LgQOHopYDlUu6/w==",
1043
+ "cpu": [
1044
+ "x64"
1045
+ ],
1046
+ "dev": true,
1047
+ "license": "MIT",
1048
+ "optional": true,
1049
+ "os": [
1050
+ "win32"
1051
+ ]
1052
+ },
1053
+ "node_modules/@types/babel__core": {
1054
+ "version": "7.20.5",
1055
+ "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",
1056
+ "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==",
1057
+ "dev": true,
1058
+ "license": "MIT",
1059
+ "dependencies": {
1060
+ "@babel/parser": "^7.20.7",
1061
+ "@babel/types": "^7.20.7",
1062
+ "@types/babel__generator": "*",
1063
+ "@types/babel__template": "*",
1064
+ "@types/babel__traverse": "*"
1065
+ }
1066
+ },
1067
+ "node_modules/@types/babel__generator": {
1068
+ "version": "7.27.0",
1069
+ "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz",
1070
+ "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==",
1071
+ "dev": true,
1072
+ "license": "MIT",
1073
+ "dependencies": {
1074
+ "@babel/types": "^7.0.0"
1075
+ }
1076
+ },
1077
+ "node_modules/@types/babel__template": {
1078
+ "version": "7.4.4",
1079
+ "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz",
1080
+ "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==",
1081
+ "dev": true,
1082
+ "license": "MIT",
1083
+ "dependencies": {
1084
+ "@babel/parser": "^7.1.0",
1085
+ "@babel/types": "^7.0.0"
1086
+ }
1087
+ },
1088
+ "node_modules/@types/babel__traverse": {
1089
+ "version": "7.28.0",
1090
+ "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz",
1091
+ "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==",
1092
+ "dev": true,
1093
+ "license": "MIT",
1094
+ "dependencies": {
1095
+ "@babel/types": "^7.28.2"
1096
+ }
1097
+ },
1098
+ "node_modules/@types/estree": {
1099
+ "version": "1.0.8",
1100
+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",
1101
+ "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",
1102
+ "dev": true,
1103
+ "license": "MIT"
1104
+ },
1105
+ "node_modules/@types/prop-types": {
1106
+ "version": "15.7.15",
1107
+ "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.15.tgz",
1108
+ "integrity": "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==",
1109
+ "dev": true,
1110
+ "license": "MIT"
1111
+ },
1112
+ "node_modules/@types/react": {
1113
+ "version": "18.3.3",
1114
+ "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.3.tgz",
1115
+ "integrity": "sha512-hti/R0pS0q1/xx+TsI73XIqk26eBsISZ2R0wUijXIngRK9R/e7Xw/cXVxQK7R5JjW+SV4zGcn5hXjudkN/pLIw==",
1116
+ "dev": true,
1117
+ "license": "MIT",
1118
+ "dependencies": {
1119
+ "@types/prop-types": "*",
1120
+ "csstype": "^3.0.2"
1121
+ }
1122
+ },
1123
+ "node_modules/@types/react-dom": {
1124
+ "version": "18.3.0",
1125
+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.0.tgz",
1126
+ "integrity": "sha512-EhwApuTmMBmXuFOikhQLIBUn6uFg81SwLMOAUgodJF14SOBOCMdU04gDoYi0WOJJHD144TL32z4yDqCW3dnkQg==",
1127
+ "dev": true,
1128
+ "license": "MIT",
1129
+ "dependencies": {
1130
+ "@types/react": "*"
1131
+ }
1132
+ },
1133
+ "node_modules/@vitejs/plugin-react": {
1134
+ "version": "4.3.3",
1135
+ "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.3.3.tgz",
1136
+ "integrity": "sha512-NooDe9GpHGqNns1i8XDERg0Vsg5SSYRhRxxyTGogUdkdNt47jal+fbuYi+Yfq6pzRCKXyoPcWisfxE6RIM3GKA==",
1137
+ "dev": true,
1138
+ "license": "MIT",
1139
+ "dependencies": {
1140
+ "@babel/core": "^7.25.2",
1141
+ "@babel/plugin-transform-react-jsx-self": "^7.24.7",
1142
+ "@babel/plugin-transform-react-jsx-source": "^7.24.7",
1143
+ "@types/babel__core": "^7.20.5",
1144
+ "react-refresh": "^0.14.2"
1145
+ },
1146
+ "engines": {
1147
+ "node": "^14.18.0 || >=16.0.0"
1148
+ },
1149
+ "peerDependencies": {
1150
+ "vite": "^4.2.0 || ^5.0.0"
1151
+ }
1152
+ },
1153
+ "node_modules/baseline-browser-mapping": {
1154
+ "version": "2.8.11",
1155
+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.11.tgz",
1156
+ "integrity": "sha512-i+sRXGhz4+QW8aACZ3+r1GAKMt0wlFpeA8M5rOQd0HEYw9zhDrlx9Wc8uQ0IdXakjJRthzglEwfB/yqIjO6iDg==",
1157
+ "dev": true,
1158
+ "license": "Apache-2.0",
1159
+ "bin": {
1160
+ "baseline-browser-mapping": "dist/cli.js"
1161
+ }
1162
+ },
1163
+ "node_modules/browserslist": {
1164
+ "version": "4.26.3",
1165
+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.26.3.tgz",
1166
+ "integrity": "sha512-lAUU+02RFBuCKQPj/P6NgjlbCnLBMp4UtgTx7vNHd3XSIJF87s9a5rA3aH2yw3GS9DqZAUbOtZdCCiZeVRqt0w==",
1167
+ "dev": true,
1168
+ "funding": [
1169
+ {
1170
+ "type": "opencollective",
1171
+ "url": "https://opencollective.com/browserslist"
1172
+ },
1173
+ {
1174
+ "type": "tidelift",
1175
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
1176
+ },
1177
+ {
1178
+ "type": "github",
1179
+ "url": "https://github.com/sponsors/ai"
1180
+ }
1181
+ ],
1182
+ "license": "MIT",
1183
+ "dependencies": {
1184
+ "baseline-browser-mapping": "^2.8.9",
1185
+ "caniuse-lite": "^1.0.30001746",
1186
+ "electron-to-chromium": "^1.5.227",
1187
+ "node-releases": "^2.0.21",
1188
+ "update-browserslist-db": "^1.1.3"
1189
+ },
1190
+ "bin": {
1191
+ "browserslist": "cli.js"
1192
+ },
1193
+ "engines": {
1194
+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
1195
+ }
1196
+ },
1197
+ "node_modules/caniuse-lite": {
1198
+ "version": "1.0.30001747",
1199
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001747.tgz",
1200
+ "integrity": "sha512-mzFa2DGIhuc5490Nd/G31xN1pnBnYMadtkyTjefPI7wzypqgCEpeWu9bJr0OnDsyKrW75zA9ZAt7pbQFmwLsQg==",
1201
+ "dev": true,
1202
+ "funding": [
1203
+ {
1204
+ "type": "opencollective",
1205
+ "url": "https://opencollective.com/browserslist"
1206
+ },
1207
+ {
1208
+ "type": "tidelift",
1209
+ "url": "https://tidelift.com/funding/github/npm/caniuse-lite"
1210
+ },
1211
+ {
1212
+ "type": "github",
1213
+ "url": "https://github.com/sponsors/ai"
1214
+ }
1215
+ ],
1216
+ "license": "CC-BY-4.0"
1217
+ },
1218
+ "node_modules/convert-source-map": {
1219
+ "version": "2.0.0",
1220
+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
1221
+ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",
1222
+ "dev": true,
1223
+ "license": "MIT"
1224
+ },
1225
+ "node_modules/csstype": {
1226
+ "version": "3.1.3",
1227
+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz",
1228
+ "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==",
1229
+ "dev": true,
1230
+ "license": "MIT"
1231
+ },
1232
+ "node_modules/debug": {
1233
+ "version": "4.4.3",
1234
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
1235
+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
1236
+ "dev": true,
1237
+ "license": "MIT",
1238
+ "dependencies": {
1239
+ "ms": "^2.1.3"
1240
+ },
1241
+ "engines": {
1242
+ "node": ">=6.0"
1243
+ },
1244
+ "peerDependenciesMeta": {
1245
+ "supports-color": {
1246
+ "optional": true
1247
+ }
1248
+ }
1249
+ },
1250
+ "node_modules/electron-to-chromium": {
1251
+ "version": "1.5.230",
1252
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.230.tgz",
1253
+ "integrity": "sha512-A6A6Fd3+gMdaed9wX83CvHYJb4UuapPD5X5SLq72VZJzxHSY0/LUweGXRWmQlh2ln7KV7iw7jnwXK7dlPoOnHQ==",
1254
+ "dev": true,
1255
+ "license": "ISC"
1256
+ },
1257
+ "node_modules/esbuild": {
1258
+ "version": "0.21.5",
1259
+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz",
1260
+ "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==",
1261
+ "dev": true,
1262
+ "hasInstallScript": true,
1263
+ "license": "MIT",
1264
+ "bin": {
1265
+ "esbuild": "bin/esbuild"
1266
+ },
1267
+ "engines": {
1268
+ "node": ">=12"
1269
+ },
1270
+ "optionalDependencies": {
1271
+ "@esbuild/aix-ppc64": "0.21.5",
1272
+ "@esbuild/android-arm": "0.21.5",
1273
+ "@esbuild/android-arm64": "0.21.5",
1274
+ "@esbuild/android-x64": "0.21.5",
1275
+ "@esbuild/darwin-arm64": "0.21.5",
1276
+ "@esbuild/darwin-x64": "0.21.5",
1277
+ "@esbuild/freebsd-arm64": "0.21.5",
1278
+ "@esbuild/freebsd-x64": "0.21.5",
1279
+ "@esbuild/linux-arm": "0.21.5",
1280
+ "@esbuild/linux-arm64": "0.21.5",
1281
+ "@esbuild/linux-ia32": "0.21.5",
1282
+ "@esbuild/linux-loong64": "0.21.5",
1283
+ "@esbuild/linux-mips64el": "0.21.5",
1284
+ "@esbuild/linux-ppc64": "0.21.5",
1285
+ "@esbuild/linux-riscv64": "0.21.5",
1286
+ "@esbuild/linux-s390x": "0.21.5",
1287
+ "@esbuild/linux-x64": "0.21.5",
1288
+ "@esbuild/netbsd-x64": "0.21.5",
1289
+ "@esbuild/openbsd-x64": "0.21.5",
1290
+ "@esbuild/sunos-x64": "0.21.5",
1291
+ "@esbuild/win32-arm64": "0.21.5",
1292
+ "@esbuild/win32-ia32": "0.21.5",
1293
+ "@esbuild/win32-x64": "0.21.5"
1294
+ }
1295
+ },
1296
+ "node_modules/escalade": {
1297
+ "version": "3.2.0",
1298
+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
1299
+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
1300
+ "dev": true,
1301
+ "license": "MIT",
1302
+ "engines": {
1303
+ "node": ">=6"
1304
+ }
1305
+ },
1306
+ "node_modules/fsevents": {
1307
+ "version": "2.3.3",
1308
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
1309
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
1310
+ "dev": true,
1311
+ "hasInstallScript": true,
1312
+ "license": "MIT",
1313
+ "optional": true,
1314
+ "os": [
1315
+ "darwin"
1316
+ ],
1317
+ "engines": {
1318
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
1319
+ }
1320
+ },
1321
+ "node_modules/gensync": {
1322
+ "version": "1.0.0-beta.2",
1323
+ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",
1324
+ "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",
1325
+ "dev": true,
1326
+ "license": "MIT",
1327
+ "engines": {
1328
+ "node": ">=6.9.0"
1329
+ }
1330
+ },
1331
+ "node_modules/js-tokens": {
1332
+ "version": "4.0.0",
1333
+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
1334
+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
1335
+ "license": "MIT"
1336
+ },
1337
+ "node_modules/jsesc": {
1338
+ "version": "3.1.0",
1339
+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",
1340
+ "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",
1341
+ "dev": true,
1342
+ "license": "MIT",
1343
+ "bin": {
1344
+ "jsesc": "bin/jsesc"
1345
+ },
1346
+ "engines": {
1347
+ "node": ">=6"
1348
+ }
1349
+ },
1350
+ "node_modules/json5": {
1351
+ "version": "2.2.3",
1352
+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
1353
+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
1354
+ "dev": true,
1355
+ "license": "MIT",
1356
+ "bin": {
1357
+ "json5": "lib/cli.js"
1358
+ },
1359
+ "engines": {
1360
+ "node": ">=6"
1361
+ }
1362
+ },
1363
+ "node_modules/loose-envify": {
1364
+ "version": "1.4.0",
1365
+ "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
1366
+ "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
1367
+ "license": "MIT",
1368
+ "dependencies": {
1369
+ "js-tokens": "^3.0.0 || ^4.0.0"
1370
+ },
1371
+ "bin": {
1372
+ "loose-envify": "cli.js"
1373
+ }
1374
+ },
1375
+ "node_modules/lru-cache": {
1376
+ "version": "5.1.1",
1377
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
1378
+ "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",
1379
+ "dev": true,
1380
+ "license": "ISC",
1381
+ "dependencies": {
1382
+ "yallist": "^3.0.2"
1383
+ }
1384
+ },
1385
+ "node_modules/ms": {
1386
+ "version": "2.1.3",
1387
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
1388
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
1389
+ "dev": true,
1390
+ "license": "MIT"
1391
+ },
1392
+ "node_modules/nanoid": {
1393
+ "version": "3.3.11",
1394
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",
1395
+ "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",
1396
+ "dev": true,
1397
+ "funding": [
1398
+ {
1399
+ "type": "github",
1400
+ "url": "https://github.com/sponsors/ai"
1401
+ }
1402
+ ],
1403
+ "license": "MIT",
1404
+ "bin": {
1405
+ "nanoid": "bin/nanoid.cjs"
1406
+ },
1407
+ "engines": {
1408
+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
1409
+ }
1410
+ },
1411
+ "node_modules/node-releases": {
1412
+ "version": "2.0.23",
1413
+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.23.tgz",
1414
+ "integrity": "sha512-cCmFDMSm26S6tQSDpBCg/NR8NENrVPhAJSf+XbxBG4rPFaaonlEoE9wHQmun+cls499TQGSb7ZyPBRlzgKfpeg==",
1415
+ "dev": true,
1416
+ "license": "MIT"
1417
+ },
1418
+ "node_modules/picocolors": {
1419
+ "version": "1.1.1",
1420
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
1421
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
1422
+ "dev": true,
1423
+ "license": "ISC"
1424
+ },
1425
+ "node_modules/postcss": {
1426
+ "version": "8.5.6",
1427
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz",
1428
+ "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==",
1429
+ "dev": true,
1430
+ "funding": [
1431
+ {
1432
+ "type": "opencollective",
1433
+ "url": "https://opencollective.com/postcss/"
1434
+ },
1435
+ {
1436
+ "type": "tidelift",
1437
+ "url": "https://tidelift.com/funding/github/npm/postcss"
1438
+ },
1439
+ {
1440
+ "type": "github",
1441
+ "url": "https://github.com/sponsors/ai"
1442
+ }
1443
+ ],
1444
+ "license": "MIT",
1445
+ "dependencies": {
1446
+ "nanoid": "^3.3.11",
1447
+ "picocolors": "^1.1.1",
1448
+ "source-map-js": "^1.2.1"
1449
+ },
1450
+ "engines": {
1451
+ "node": "^10 || ^12 || >=14"
1452
+ }
1453
+ },
1454
+ "node_modules/react": {
1455
+ "version": "18.3.1",
1456
+ "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",
1457
+ "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==",
1458
+ "license": "MIT",
1459
+ "dependencies": {
1460
+ "loose-envify": "^1.1.0"
1461
+ },
1462
+ "engines": {
1463
+ "node": ">=0.10.0"
1464
+ }
1465
+ },
1466
+ "node_modules/react-dom": {
1467
+ "version": "18.3.1",
1468
+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz",
1469
+ "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==",
1470
+ "license": "MIT",
1471
+ "dependencies": {
1472
+ "loose-envify": "^1.1.0",
1473
+ "scheduler": "^0.23.2"
1474
+ },
1475
+ "peerDependencies": {
1476
+ "react": "^18.3.1"
1477
+ }
1478
+ },
1479
+ "node_modules/react-refresh": {
1480
+ "version": "0.14.2",
1481
+ "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.14.2.tgz",
1482
+ "integrity": "sha512-jCvmsr+1IUSMUyzOkRcvnVbX3ZYC6g9TDrDbFuFmRDq7PD4yaGbLKNQL6k2jnArV8hjYxh7hVhAZB6s9HDGpZA==",
1483
+ "dev": true,
1484
+ "license": "MIT",
1485
+ "engines": {
1486
+ "node": ">=0.10.0"
1487
+ }
1488
+ },
1489
+ "node_modules/rollup": {
1490
+ "version": "4.52.4",
1491
+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.52.4.tgz",
1492
+ "integrity": "sha512-CLEVl+MnPAiKh5pl4dEWSyMTpuflgNQiLGhMv8ezD5W/qP8AKvmYpCOKRRNOh7oRKnauBZ4SyeYkMS+1VSyKwQ==",
1493
+ "dev": true,
1494
+ "license": "MIT",
1495
+ "dependencies": {
1496
+ "@types/estree": "1.0.8"
1497
+ },
1498
+ "bin": {
1499
+ "rollup": "dist/bin/rollup"
1500
+ },
1501
+ "engines": {
1502
+ "node": ">=18.0.0",
1503
+ "npm": ">=8.0.0"
1504
+ },
1505
+ "optionalDependencies": {
1506
+ "@rollup/rollup-android-arm-eabi": "4.52.4",
1507
+ "@rollup/rollup-android-arm64": "4.52.4",
1508
+ "@rollup/rollup-darwin-arm64": "4.52.4",
1509
+ "@rollup/rollup-darwin-x64": "4.52.4",
1510
+ "@rollup/rollup-freebsd-arm64": "4.52.4",
1511
+ "@rollup/rollup-freebsd-x64": "4.52.4",
1512
+ "@rollup/rollup-linux-arm-gnueabihf": "4.52.4",
1513
+ "@rollup/rollup-linux-arm-musleabihf": "4.52.4",
1514
+ "@rollup/rollup-linux-arm64-gnu": "4.52.4",
1515
+ "@rollup/rollup-linux-arm64-musl": "4.52.4",
1516
+ "@rollup/rollup-linux-loong64-gnu": "4.52.4",
1517
+ "@rollup/rollup-linux-ppc64-gnu": "4.52.4",
1518
+ "@rollup/rollup-linux-riscv64-gnu": "4.52.4",
1519
+ "@rollup/rollup-linux-riscv64-musl": "4.52.4",
1520
+ "@rollup/rollup-linux-s390x-gnu": "4.52.4",
1521
+ "@rollup/rollup-linux-x64-gnu": "4.52.4",
1522
+ "@rollup/rollup-linux-x64-musl": "4.52.4",
1523
+ "@rollup/rollup-openharmony-arm64": "4.52.4",
1524
+ "@rollup/rollup-win32-arm64-msvc": "4.52.4",
1525
+ "@rollup/rollup-win32-ia32-msvc": "4.52.4",
1526
+ "@rollup/rollup-win32-x64-gnu": "4.52.4",
1527
+ "@rollup/rollup-win32-x64-msvc": "4.52.4",
1528
+ "fsevents": "~2.3.2"
1529
+ }
1530
+ },
1531
+ "node_modules/scheduler": {
1532
+ "version": "0.23.2",
1533
+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz",
1534
+ "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==",
1535
+ "license": "MIT",
1536
+ "dependencies": {
1537
+ "loose-envify": "^1.1.0"
1538
+ }
1539
+ },
1540
+ "node_modules/semver": {
1541
+ "version": "6.3.1",
1542
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
1543
+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
1544
+ "dev": true,
1545
+ "license": "ISC",
1546
+ "bin": {
1547
+ "semver": "bin/semver.js"
1548
+ }
1549
+ },
1550
+ "node_modules/source-map-js": {
1551
+ "version": "1.2.1",
1552
+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
1553
+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
1554
+ "dev": true,
1555
+ "license": "BSD-3-Clause",
1556
+ "engines": {
1557
+ "node": ">=0.10.0"
1558
+ }
1559
+ },
1560
+ "node_modules/typescript": {
1561
+ "version": "5.5.4",
1562
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.4.tgz",
1563
+ "integrity": "sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==",
1564
+ "dev": true,
1565
+ "license": "Apache-2.0",
1566
+ "bin": {
1567
+ "tsc": "bin/tsc",
1568
+ "tsserver": "bin/tsserver"
1569
+ },
1570
+ "engines": {
1571
+ "node": ">=14.17"
1572
+ }
1573
+ },
1574
+ "node_modules/update-browserslist-db": {
1575
+ "version": "1.1.3",
1576
+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz",
1577
+ "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==",
1578
+ "dev": true,
1579
+ "funding": [
1580
+ {
1581
+ "type": "opencollective",
1582
+ "url": "https://opencollective.com/browserslist"
1583
+ },
1584
+ {
1585
+ "type": "tidelift",
1586
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
1587
+ },
1588
+ {
1589
+ "type": "github",
1590
+ "url": "https://github.com/sponsors/ai"
1591
+ }
1592
+ ],
1593
+ "license": "MIT",
1594
+ "dependencies": {
1595
+ "escalade": "^3.2.0",
1596
+ "picocolors": "^1.1.1"
1597
+ },
1598
+ "bin": {
1599
+ "update-browserslist-db": "cli.js"
1600
+ },
1601
+ "peerDependencies": {
1602
+ "browserslist": ">= 4.21.0"
1603
+ }
1604
+ },
1605
+ "node_modules/vite": {
1606
+ "version": "5.4.2",
1607
+ "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.2.tgz",
1608
+ "integrity": "sha512-dDrQTRHp5C1fTFzcSaMxjk6vdpKvT+2/mIdE07Gw2ykehT49O0z/VHS3zZ8iV/Gh8BJJKHWOe5RjaNrW5xf/GA==",
1609
+ "dev": true,
1610
+ "license": "MIT",
1611
+ "dependencies": {
1612
+ "esbuild": "^0.21.3",
1613
+ "postcss": "^8.4.41",
1614
+ "rollup": "^4.20.0"
1615
+ },
1616
+ "bin": {
1617
+ "vite": "bin/vite.js"
1618
+ },
1619
+ "engines": {
1620
+ "node": "^18.0.0 || >=20.0.0"
1621
+ },
1622
+ "funding": {
1623
+ "url": "https://github.com/vitejs/vite?sponsor=1"
1624
+ },
1625
+ "optionalDependencies": {
1626
+ "fsevents": "~2.3.3"
1627
+ },
1628
+ "peerDependencies": {
1629
+ "@types/node": "^18.0.0 || >=20.0.0",
1630
+ "less": "*",
1631
+ "lightningcss": "^1.21.0",
1632
+ "sass": "*",
1633
+ "sass-embedded": "*",
1634
+ "stylus": "*",
1635
+ "sugarss": "*",
1636
+ "terser": "^5.4.0"
1637
+ },
1638
+ "peerDependenciesMeta": {
1639
+ "@types/node": {
1640
+ "optional": true
1641
+ },
1642
+ "less": {
1643
+ "optional": true
1644
+ },
1645
+ "lightningcss": {
1646
+ "optional": true
1647
+ },
1648
+ "sass": {
1649
+ "optional": true
1650
+ },
1651
+ "sass-embedded": {
1652
+ "optional": true
1653
+ },
1654
+ "stylus": {
1655
+ "optional": true
1656
+ },
1657
+ "sugarss": {
1658
+ "optional": true
1659
+ },
1660
+ "terser": {
1661
+ "optional": true
1662
+ }
1663
+ }
1664
+ },
1665
+ "node_modules/yallist": {
1666
+ "version": "3.1.1",
1667
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",
1668
+ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",
1669
+ "dev": true,
1670
+ "license": "ISC"
1671
+ }
1672
+ }
1673
+ }
frontend/package.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "smartstock-pwa",
3
+ "private": true,
4
+ "version": "0.0.1",
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vite",
8
+ "build": "vite build",
9
+ "preview": "vite preview"
10
+ },
11
+ "dependencies": {
12
+ "react": "18.3.1",
13
+ "react-dom": "18.3.1"
14
+ },
15
+ "devDependencies": {
16
+ "@types/react": "18.3.3",
17
+ "@types/react-dom": "18.3.0",
18
+ "@vitejs/plugin-react": "4.3.3",
19
+ "typescript": "5.5.4",
20
+ "vite": "5.4.2"
21
+ }
22
+ }
23
+
frontend/src/App.tsx ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import React, { useMemo, useState } from 'react';
2
+
3
+ // Tipler ve Sabitler
4
+ type Trend = 'Up' | 'Down' | 'Neutral';
5
+
6
+ type PredictResponse = {
7
+ accuracy: number;
8
+ trend: Trend;
9
+ details?: Record<string, unknown>;
10
+ };
11
+
12
+ // Bu fonksiyon, ortamı (geliştirme veya production) otomatik olarak algılar
13
+ const getBackendUrl = () => {
14
+ // Eğer .env dosyasında özel bir VITE_API_URL tanımlanmışsa, onu kullan (örn: ngrok)
15
+ if (import.meta.env.VITE_API_URL) {
16
+ return import.meta.env.VITE_API_URL;
17
+ }
18
+
19
+ // Eğer kod 'npm run build' ile derlenmişse (yani Render'daysa), göreceli yol kullan
20
+ if (import.meta.env.PROD) {
21
+ return '';
22
+ }
23
+
24
+ // Yukarıdakilerin hiçbiri değilse (yani 'npm run dev' ile çalışıyorsa), yerel sunucuyu kullan
25
+ return 'http://127.0.0.1:8000';
26
+ };
27
+
28
+ const BACKEND_URL = getBackendUrl();
29
+
30
+ // App Componenti
31
+ export const App: React.FC = () => {
32
+ const [symbol, setSymbol] = useState('AAPL');
33
+ const [model, setModel] = useState<'RandomForest' | 'SVM' | 'LSTM'>('RandomForest');
34
+ const [horizon, setHorizon] = useState(5);
35
+ const [loading, setLoading] = useState(false);
36
+ const [error, setError] = useState<string | null>(null);
37
+ const [result, setResult] = useState<PredictResponse | null>(null);
38
+
39
+ const trendColor = useMemo(() => {
40
+ if (!result) return '#64748b';
41
+ return result.trend === 'Up' ? '#22c55e' : result.trend === 'Down' ? '#ef4444' : '#64748b';
42
+ }, [result]);
43
+
44
+ const trendBg = useMemo(() => {
45
+ if (!result) return '#f1f5f9';
46
+ return result.trend === 'Up' ? '#dcfce7' : result.trend === 'Down' ? '#fee2e2' : '#f1f5f9';
47
+ }, [result]);
48
+
49
+ const handleSubmit = async (e: React.FormEvent) => {
50
+ e.preventDefault();
51
+ setLoading(true);
52
+ setError(null);
53
+ setResult(null);
54
+
55
+ // Backend'deki validasyonla uyumlu hale getirelim (max: 60)
56
+ const horizonDays = Math.max(1, Math.min(60, horizon));
57
+ setHorizon(horizonDays); // Kullanıcının girdiği değeri de düzeltelim
58
+
59
+ try {
60
+ const res = await fetch(`${BACKEND_URL}/predict`, {
61
+ method: 'POST',
62
+ headers: { 'Content-Type': 'application/json' },
63
+ body: JSON.stringify({
64
+ symbol: symbol.trim().toUpperCase(),
65
+ model,
66
+ horizon_days: horizonDays,
67
+ }),
68
+ });
69
+
70
+ // Hata durumunda JSON içindeki 'detail' alanını yakala
71
+ if (!res.ok) {
72
+ let errorData;
73
+ try {
74
+ errorData = await res.json();
75
+ } catch {
76
+ // JSON parse edilemezse, text olarak hatayı al
77
+ throw new Error(await res.text() || `Request failed with status ${res.status}`);
78
+ }
79
+ throw new Error(errorData.detail || 'Bilinmeyen bir sunucu hatası oluştu.');
80
+ }
81
+
82
+ const data: PredictResponse = await res.json();
83
+ setResult(data);
84
+
85
+ } catch (err: any) {
86
+ setError(err?.message || 'Beklenmeyen bir hata oluştu.');
87
+ } finally {
88
+ setLoading(false);
89
+ }
90
+ };
91
+
92
+ return (
93
+ <div className="container">
94
+ <header className="header">
95
+ <div className="logo" />
96
+ <div className="title">SmartStock</div>
97
+ </header>
98
+
99
+ <div className="card">
100
+ <form onSubmit={handleSubmit}>
101
+ {/* Hisse Kodu Girişi */}
102
+ <div className="field">
103
+ <label>Hisse Kodu</label>
104
+ <input
105
+ inputMode="text"
106
+ placeholder="AAPL, TUPRS.IS, ALTINS1.IS"
107
+ value={symbol}
108
+ onChange={(e) => setSymbol(e.target.value.toUpperCase())}
109
+ required
110
+ />
111
+ </div>
112
+
113
+ {/* Model Seçimi */}
114
+ <div className="field">
115
+ <label>Model</label>
116
+ <select
117
+ value={model}
118
+ onChange={(e) => setModel(e.target.value as 'RandomForest' | 'SVM' | 'LSTM')}
119
+ >
120
+ <option value="RandomForest">RandomForest</option>
121
+ <option value="SVM">SVM</option>
122
+ <option value="LSTM">LSTM</option>
123
+ </select>
124
+ </div>
125
+
126
+ {/* Tahmin Süresi Girişi */}
127
+ <div className="field">
128
+ <label>Tahmin Süresi (gün)</label>
129
+ <input
130
+ type="number"
131
+ min={1}
132
+ max={60} // Backend ile uyumlu hale getirildi
133
+ value={horizon}
134
+ onChange={(e) => {
135
+ const val = parseInt(e.target.value, 10);
136
+ setHorizon(Number.isNaN(val) ? 1 : val);
137
+ }}
138
+ required
139
+ />
140
+ </div>
141
+
142
+ {/* Buton */}
143
+ <div className="actions">
144
+ <button type="submit" disabled={loading}>
145
+ {loading ? 'Hesaplanıyor…' : 'Tahmin Et'}
146
+ </button>
147
+ </div>
148
+ </form>
149
+
150
+ {/* Hata Mesajı Alanı */}
151
+ {error && (
152
+ <div className="result error-box">
153
+ {error}
154
+ </div>
155
+ )}
156
+
157
+ {/* Sonuç Alanı */}
158
+ {result && (
159
+ <div className="result" style={{ borderColor: trendColor, backgroundColor: trendBg }}>
160
+ <div className="result-row">
161
+ <span>Trend</span>
162
+ <span style={{ color: trendColor, fontWeight: 700 }}>{result.trend}</span>
163
+ </div>
164
+ <div className="result-row">
165
+ <span>Model Başarısı (Test)</span>
166
+ <span>{((result.accuracy ?? 0) * 100).toFixed(2)}%</span>
167
+ </div>
168
+ {result.details && (
169
+ <div className="details-box">
170
+ {Object.entries(result.details).map(([key, val]) => (
171
+ <div key={key} className="details-row">
172
+ <span>{key.replace(/_/g, ' ').replace(/\b\w/g, l => l.toUpperCase())}</span>
173
+ <span>{String(val)}</span>
174
+ </div>
175
+ ))}
176
+ </div>
177
+ )}
178
+ </div>
179
+ )}
180
+ </div>
181
+
182
+ <div className="footer">PWA • React + FastAPI • Demo amaçlıdır</div>
183
+
184
+ {/* CSS Stilleri (Daha temiz bir görünüm için) */}
185
+ <style>{`
186
+ .error-box {
187
+ border-color: #ef4444;
188
+ background-color: #fee2e2;
189
+ color: #b91c1c;
190
+ }
191
+ .result-row, .details-row {
192
+ display: flex;
193
+ justify-content: space-between;
194
+ margin-bottom: 6px;
195
+ }
196
+ .details-box {
197
+ margin-top: 12px;
198
+ padding-top: 8px;
199
+ border-top: 1px solid rgba(0,0,0,0.1);
200
+ font-size: 14px;
201
+ color: #334155;
202
+ }
203
+ .details-row span:first-child {
204
+ color: #64748b;
205
+ }
206
+ `}</style>
207
+ </div>
208
+ );
209
+ };
frontend/src/main.tsx ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import React from 'react'
2
+ import ReactDOM from 'react-dom/client'
3
+ import { App } from './App'
4
+
5
+ const root = document.getElementById('root')!
6
+ ReactDOM.createRoot(root).render(
7
+ <React.StrictMode>
8
+ <App />
9
+ </React.StrictMode>
10
+ )
11
+
12
+ if ('serviceWorker' in navigator) {
13
+ window.addEventListener('load', () => {
14
+ navigator.serviceWorker.register('/sw.js').catch(() => {})
15
+ })
16
+ }
17
+
frontend/src/vite-env.d.ts ADDED
@@ -0,0 +1 @@
 
 
1
+ /// <reference types="vite/client" />
frontend/tsconfig.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2020",
4
+ "useDefineForClassFields": true,
5
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
6
+ "module": "ESNext",
7
+ "skipLibCheck": true,
8
+ "jsx": "react-jsx",
9
+ "moduleResolution": "bundler",
10
+ "resolveJsonModule": true,
11
+ "isolatedModules": true,
12
+ "noEmit": true,
13
+ "strict": true,
14
+ "noUncheckedIndexedAccess": true
15
+ },
16
+ "include": ["src"]
17
+ }
18
+
frontend/vite.config.ts ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { defineConfig } from 'vite'
2
+ import react from '@vitejs/plugin-react'
3
+
4
+ export default defineConfig({
5
+ plugins: [react()],
6
+ server: {
7
+ host: true, // 📱 Ağdaki cihazlardan erişim (örneğin telefon)
8
+ port: 5173, // Sabit port (ngrok veya mobil test için)
9
+ strictPort: true, // Aynı portu kullanmaya zorla
10
+ proxy: {
11
+ '/predict': {
12
+ target: 'http://localhost:8000', // ⚙️ FastAPI backend
13
+ changeOrigin: true,
14
+ secure: false,
15
+ },
16
+ },
17
+ },
18
+ })
requirements.txt ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ fastapi
2
+ uvicorn
3
+ numpy
4
+ pandas
5
+ yfinance
6
+ pandas-datareader
7
+ scikit-learn
8
+ tensorflow
9
+ investpy
10
+ ta
11
+ python-multipart