From 2dc538c0e1b7b2df3f76e03cd62c9c383db1291f Mon Sep 17 00:00:00 2001 From: line-6000 <154492442+line-6000@users.noreply.github.com> Date: Sun, 28 Jun 2026 11:56:58 +0800 Subject: [PATCH 1/8] feat(epay): support type selectors and preserve callback type --- src/controller/admin/settings_controller.go | 8 +- src/controller/comm/order_controller.go | 15 +- src/controller/comm/pay_controller.go | 3 +- src/model/mdb/orders_mdb.go | 1 + src/model/request/order_request.go | 1 + src/model/response/support_response.go | 6 +- src/model/service/epay_return.go | 12 +- src/model/service/epay_return_test.go | 31 +- src/model/service/order_service.go | 8 + src/mq/worker_test.go | 90 ++++- src/route/router.go | 51 ++- src/route/router_test.go | 345 ++++++++++++++++++++ 12 files changed, 546 insertions(+), 25 deletions(-) diff --git a/src/controller/admin/settings_controller.go b/src/controller/admin/settings_controller.go index c8c4203..a87979e 100644 --- a/src/controller/admin/settings_controller.go +++ b/src/controller/admin/settings_controller.go @@ -26,9 +26,9 @@ import ( // rate.okx_c2c_enabled (bool) — use OKX C2C rate feed // // - group=epay: -// epay.default_token (string) — default token for EPAY submit.php, e.g. "usdt"; empty allows status=4 placeholders when request token/network are also absent -// epay.default_currency (string) — default fiat currency for EPAY submit.php, e.g. "cny"; empty falls back to cny -// epay.default_network (string) — default network for EPAY submit.php, e.g. "tron" or "ton"; empty allows status=4 placeholders when request token/network are also absent +// epay.default_token (string) — default token for EPAY submit.php, e.g. "usdt"; ignored when a supported type=token.network selector is supplied; empty allows status=4 placeholders when request token/network are also absent +// epay.default_currency (string) — default fiat currency for EPAY submit.php, e.g. "cny"; still applies when a supported type selector is supplied; empty falls back to cny +// epay.default_network (string) — default network for EPAY submit.php, e.g. "tron" or "ton"; ignored when a supported type=token.network selector is supplied; empty allows status=4 placeholders when request token/network are also absent // // - group=okpay: // okpay.enabled (bool) — enable OkPay as a switch-network payment option @@ -95,7 +95,7 @@ func (c *BaseAdminController) ListSettings(ctx echo.Context) error { // @Summary Upsert settings // @Description Batch insert/update settings. Returns per-key status; failed items include error_code for frontend i18n. // @Description Supported groups: brand, rate, system, epay, okpay. -// @Description epay group keys: epay.default_token (e.g. "usdt" or "ton", empty allows status=4 placeholders), epay.default_currency (e.g. "cny", empty falls back to cny), epay.default_network (e.g. "tron" or "ton", empty allows status=4 placeholders). +// @Description epay group keys: epay.default_token (e.g. "usdt" or "ton", ignored when a supported type=token.network selector is supplied, empty allows status=4 placeholders), epay.default_currency (e.g. "cny", still applies when a supported type selector is supplied, empty falls back to cny), epay.default_network (e.g. "tron" or "ton", ignored when a supported type=token.network selector is supplied, empty allows status=4 placeholders). // @Description okpay group keys: okpay.enabled, okpay.shop_id, okpay.shop_token, okpay.api_url, okpay.callback_url, okpay.return_url, okpay.timeout_seconds, okpay.allow_tokens. // @Description rate group keys: rate.forced_rate_list (JSON map, e.g. {"cny":{"usdt":0.14635,"ton":0.5}}; base/coin keys are normalized to lowercase), rate.api_url, rate.adjust_percent, rate.okx_c2c_enabled. // @Description brand group keys: brand.checkout_name, brand.logo_url, brand.site_title, brand.success_copy, brand.support_url, brand.background_color, brand.background_image_url. Legacy aliases brand.site_name, brand.page_title and brand.pay_success_text are also supported. diff --git a/src/controller/comm/order_controller.go b/src/controller/comm/order_controller.go index 8fb49de..74df3be 100644 --- a/src/controller/comm/order_controller.go +++ b/src/controller/comm/order_controller.go @@ -3,6 +3,7 @@ package comm import ( "encoding/json" "net/http" + "strings" "github.com/GMWalletApp/epusdt/middleware" "github.com/GMWalletApp/epusdt/model/mdb" @@ -13,6 +14,8 @@ import ( "github.com/labstack/echo/v4" ) +const EPayTypeContextKey = "epay_type" + // apiKeyFromContext returns the api_keys row stamped by CheckApiSign. // Returns nil when the middleware didn't run (should not happen on authed routes). func apiKeyFromContext(ctx echo.Context) *mdb.ApiKey { @@ -101,7 +104,10 @@ func (c *BaseCommController) SwitchNetwork(ctx echo.Context) (err error) { // POST (form) per the legacy EPAY protocol; swagger documents POST as // the canonical form — the GET variant is identical save the transport. // @Summary Create transaction and redirect (EPAY compat) -// @Description Legacy EPAY-style endpoint. Accepts GET (querystring) and POST (form). On success, 302 redirects to /pay/checkout-counter/{trade_id}. Signature uses MD5 of sorted params + secret_key of the api_keys row matching the submitted pid. Optional request token/network/currency override database defaults and must be included in the EPay signature when sent. The server injects internal payment_type=Epay after EPay signature verification; merchants do not send GMPay payment_type to this endpoint. +// @Description Legacy EPAY-style endpoint. Accepts GET (querystring) and POST (form). On success, 302 redirects to /pay/checkout-counter/{trade_id}. Signature uses MD5 of sorted params + secret_key of the api_keys row matching the submitted pid. +// @Description After signature verification, token/network resolution is: supported type=token.network selector (for example usdt.tron) first; otherwise request token/network; otherwise epay.default_token / epay.default_network. If token and network are still both empty, the order is created as status=4 placeholder. Supplying only one of token/network remains invalid. +// @Description Currency resolution is unchanged: request currency -> epay.default_currency -> cny. Supported type selectors bypass only token/network defaults, not currency fallback. +// @Description Success return/notify currently use the stored request type when present, and fall back to alipay only when type was missing. The server injects internal payment_type=Epay after EPay signature verification; merchants do not send GMPay payment_type to this endpoint. // @Tags Payment // @Accept x-www-form-urlencoded // @Produce html @@ -111,7 +117,7 @@ func (c *BaseCommController) SwitchNetwork(ctx echo.Context) (err error) { // @Param notify_url query string false "Callback URL (GET query)" // @Param return_url query string false "Redirect URL after payment (GET query)" // @Param name query string false "Order name (GET query)" -// @Param type query string false "Payment type (e.g. alipay, GET query)" +// @Param type query string false "Opaque merchant type or supported token.network selector such as alipay or usdt.tron (GET query)" // @Param sign query string false "MD5 signature (GET query)" // @Param sign_type query string false "Signature type (MD5, GET query)" // @Param pid formData integer true "API key PID" @@ -120,7 +126,7 @@ func (c *BaseCommController) SwitchNetwork(ctx echo.Context) (err error) { // @Param notify_url formData string true "Callback URL" // @Param return_url formData string false "Redirect URL after payment" // @Param name formData string false "Order name" -// @Param type formData string false "Payment type (e.g. alipay)" +// @Param type formData string false "Opaque merchant type or supported token.network selector such as alipay or usdt.tron" // @Param sign formData string true "MD5 signature" // @Param sign_type formData string false "Signature type (MD5)" // @Success 302 "Redirect to checkout counter" @@ -133,6 +139,9 @@ func (c *BaseCommController) CreateTransactionAndRedirect(ctx echo.Context) (err log.Sugar.Errorf("bind request error: %v", err) return c.FailJson(ctx, constant.ParamsMarshalErr) } + if raw, ok := ctx.Get(EPayTypeContextKey).(string); ok { + req.EpayType = strings.TrimSpace(raw) + } if err = c.ValidateStruct(ctx, req); err != nil { log.Sugar.Errorf("validate request error: %v", err) return c.FailJson(ctx, err) diff --git a/src/controller/comm/pay_controller.go b/src/controller/comm/pay_controller.go index b6703e1..6aef2d4 100644 --- a/src/controller/comm/pay_controller.go +++ b/src/controller/comm/pay_controller.go @@ -14,7 +14,7 @@ import ( // CheckoutCounter 收银台 // @Summary Checkout counter page // @Description Return checkout initialization data when the order exists. This endpoint only confirms order existence and returns base order data; call /pay/check-status/{trade_id} for the current order status (1=waiting payment, 2=paid, 3=expired, 4=waiting token/network selection). -// @Description When status=4, actual_amount is 0 and token/network/receive_address are empty; this state is produced by GMPay placeholders or EPay submit.php when no token/network request values or database defaults exist. The cashier should guide the payer to choose an on-chain token/network or OkPay and then call /pay/switch-network. +// @Description When status=4, actual_amount is 0 and token/network/receive_address are empty; this state is produced by GMPay placeholders or EPay submit.php when no token/network request values or defaults resolve to a concrete payment asset. The cashier should guide the payer to choose an on-chain token/network or OkPay and then call /pay/switch-network. // @Description For EPay orders with a merchant return_url, the response redirect_url is rewritten to the internal /pay/return/{trade_id} hop; the database still stores the merchant's raw return_url. // @Tags Payment // @Produce json @@ -36,6 +36,7 @@ func (c *BaseCommController) CheckoutCounter(ctx echo.Context) (err error) { // Non-EPay or not-yet-paid orders are sent back to the checkout counter. // @Summary Return to merchant (EPAY compat) // @Description Browser-facing success return hop for EPay orders. Paid EPay orders are redirected to the merchant return_url with signed legacy EPay query params. Orders that are not EPay or not yet paid are redirected back to the checkout counter. +// @Description The signed query params currently use the stored request type when present; otherwise type=alipay is returned for compatibility. // @Description This route also returns explicit business errors when the merchant return_url is missing, the order API key is unavailable, or EPay signature construction fails. // @Tags Payment // @Produce html diff --git a/src/model/mdb/orders_mdb.go b/src/model/mdb/orders_mdb.go index ba0a061..14d1a9c 100644 --- a/src/model/mdb/orders_mdb.go +++ b/src/model/mdb/orders_mdb.go @@ -51,6 +51,7 @@ type Orders struct { NotifyUrl string `gorm:"column:notify_url" json:"notify_url" example:"https://example.com/notify"` RedirectUrl string `gorm:"column:redirect_url" json:"redirect_url" example:"https://example.com/success"` Name string `gorm:"column:name" json:"name" example:"VIP月卡"` + EpayType string `gorm:"column:epay_type;size:64;default:''" json:"-"` CallbackNum int `gorm:"column:callback_num;default:0" json:"callback_num" example:"0"` // 回调确认状态 1=回调成功 2=未回调/回调失败 CallBackConfirm int `gorm:"column:callback_confirm;default:2" json:"callback_confirm" enums:"1,2" example:"2"` diff --git a/src/model/request/order_request.go b/src/model/request/order_request.go index 0ecfc96..0513c02 100644 --- a/src/model/request/order_request.go +++ b/src/model/request/order_request.go @@ -18,6 +18,7 @@ type CreateTransactionRequest struct { // empty or any other value is stored as "Gmpay" and uses GMPay JSON. // It is optional for GMPay, but must be included in the signature when sent. PaymentType string `json:"payment_type" form:"payment_type" example:"Epay"` + EpayType string `json:"-" form:"-"` } func (r CreateTransactionRequest) Translates() map[string]string { diff --git a/src/model/response/support_response.go b/src/model/response/support_response.go index cf4913c..eef56e8 100644 --- a/src/model/response/support_response.go +++ b/src/model/response/support_response.go @@ -7,9 +7,9 @@ type NetworkTokenSupport struct { } type EpayPublicConfig struct { - DefaultToken string `json:"default_token" example:""` // EPay default token; empty means submit.php can create a status=4 placeholder when request token/network are also absent. - DefaultCurrency string `json:"default_currency" example:"cny"` // EPay default fiat currency; falls back to cny when unset. - DefaultNetwork string `json:"default_network" example:""` // EPay default network; empty means submit.php can create a status=4 placeholder when request token/network are also absent. + DefaultToken string `json:"default_token" example:""` // EPay default token; ignored when a supported type=token.network selector is supplied. Empty means submit.php can create a status=4 placeholder when request token/network are also absent. + DefaultCurrency string `json:"default_currency" example:"cny"` // EPay default fiat currency; still applies when a supported type selector is supplied and falls back to cny when unset. + DefaultNetwork string `json:"default_network" example:""` // EPay default network; ignored when a supported type=token.network selector is supplied. Empty means submit.php can create a status=4 placeholder when request token/network are also absent. } type SitePublicConfig struct { diff --git a/src/model/service/epay_return.go b/src/model/service/epay_return.go index 78a6ffb..04a0aa2 100644 --- a/src/model/service/epay_return.go +++ b/src/model/service/epay_return.go @@ -71,6 +71,16 @@ func ResolveOrderApiKey(order *mdb.Orders) (*mdb.ApiKey, error) { return row, nil } +func epayResultType(order *mdb.Orders) string { + if order == nil { + return "alipay" + } + if epayType := strings.TrimSpace(order.EpayType); epayType != "" { + return epayType + } + return "alipay" +} + func BuildEPayResultParams(order *mdb.Orders, apiKeyRow *mdb.ApiKey) (map[string]string, error) { if order == nil || apiKeyRow == nil { return nil, constant.EPayReturnSignatureErr @@ -85,7 +95,7 @@ func BuildEPayResultParams(order *mdb.Orders, apiKeyRow *mdb.ApiKey) (map[string PID: pidInt, TradeNo: order.TradeId, OutTradeNo: order.OrderId, - Type: "alipay", + Type: epayResultType(order), Name: order.Name, Money: fmt.Sprintf("%.4f", order.Amount), TradeStatus: "TRADE_SUCCESS", diff --git a/src/model/service/epay_return_test.go b/src/model/service/epay_return_test.go index 35d49f7..7c5e232 100644 --- a/src/model/service/epay_return_test.go +++ b/src/model/service/epay_return_test.go @@ -40,12 +40,13 @@ func TestBuildPublicRedirectURLRewritesOnlyEpayOrders(t *testing.T) { } } -func TestBuildEPayResultParamsMatchesLegacyFields(t *testing.T) { +func TestBuildEPayResultParamsUsesOriginalType(t *testing.T) { params, err := BuildEPayResultParams(&mdb.Orders{ - TradeId: "trade_epay_params", - OrderId: "order_epay_params", - Name: "VIP", - Amount: 1, + TradeId: "trade_epay_params", + OrderId: "order_epay_params", + Name: "VIP", + Amount: 1, + EpayType: "usdt.tron", }, &mdb.ApiKey{ Pid: "1001", SecretKey: "epay-secret", @@ -58,7 +59,7 @@ func TestBuildEPayResultParamsMatchesLegacyFields(t *testing.T) { "pid": "1001", "trade_no": "trade_epay_params", "out_trade_no": "order_epay_params", - "type": "alipay", + "type": "usdt.tron", "name": "VIP", "money": "1.0000", "trade_status": "TRADE_SUCCESS", @@ -88,6 +89,24 @@ func TestBuildEPayResultParamsMatchesLegacyFields(t *testing.T) { } } +func TestBuildEPayResultParamsFallsBackToAlipayWhenTypeMissing(t *testing.T) { + params, err := BuildEPayResultParams(&mdb.Orders{ + TradeId: "trade_epay_fallback", + OrderId: "order_epay_fallback", + Name: "VIP", + Amount: 1, + }, &mdb.ApiKey{ + Pid: "1001", + SecretKey: "epay-secret", + }) + if err != nil { + t.Fatalf("BuildEPayResultParams(): %v", err) + } + if got := params["type"]; got != "alipay" { + t.Fatalf("type = %q, want alipay", got) + } +} + func TestBuildEPayResultParamsRejectsNonNumericPid(t *testing.T) { _, err := BuildEPayResultParams(&mdb.Orders{ TradeId: "trade_bad_pid", diff --git a/src/model/service/order_service.go b/src/model/service/order_service.go index 1101386..ac49245 100644 --- a/src/model/service/order_service.go +++ b/src/model/service/order_service.go @@ -116,6 +116,10 @@ func CreateTransaction(req *request.CreateTransactionRequest, apiKey *mdb.ApiKey if strings.EqualFold(req.PaymentType, mdb.PaymentTypeEpay) { paymentType = mdb.PaymentTypeEpay } + epayType := "" + if paymentType == mdb.PaymentTypeEpay { + epayType = strings.TrimSpace(req.EpayType) + } gCreateTransactionLock.Lock() defer gCreateTransactionLock.Unlock() @@ -146,6 +150,7 @@ func CreateTransaction(req *request.CreateTransactionRequest, apiKey *mdb.ApiKey NotifyUrl: notifyURL, RedirectUrl: req.RedirectUrl, Name: req.Name, + EpayType: epayType, PaymentType: paymentType, PayProvider: mdb.PaymentProviderOnChain, ApiKeyID: apiKeyID(apiKey), @@ -205,6 +210,7 @@ func CreateTransaction(req *request.CreateTransactionRequest, apiKey *mdb.ApiKey NotifyUrl: notifyURL, RedirectUrl: req.RedirectUrl, Name: req.Name, + EpayType: epayType, PaymentType: paymentType, PayProvider: mdb.PaymentProviderOnChain, ApiKeyID: apiKeyID(apiKey), @@ -637,6 +643,7 @@ func SwitchNetwork(req *request.SwitchNetworkRequest) (*response.CheckoutCounter NotifyUrl: "", RedirectUrl: parent.RedirectUrl, Name: parent.Name, + EpayType: parent.EpayType, CallBackConfirm: mdb.CallBackConfirmOk, // don't trigger callback on sub-order PaymentType: parent.PaymentType, PayProvider: mdb.PaymentProviderOnChain, @@ -916,6 +923,7 @@ func switchToOkPay(parent *mdb.Orders, token string) (*response.CheckoutCounterR NotifyUrl: "", RedirectUrl: parent.RedirectUrl, Name: parent.Name, + EpayType: parent.EpayType, CallBackConfirm: mdb.CallBackConfirmOk, PaymentType: parent.PaymentType, PayProvider: mdb.PaymentProviderOkPay, diff --git a/src/mq/worker_test.go b/src/mq/worker_test.go index 4261a1d..93ac2e1 100644 --- a/src/mq/worker_test.go +++ b/src/mq/worker_test.go @@ -5,6 +5,7 @@ import ( "io" "net/http" "net/http/httptest" + "strconv" "sync" "sync/atomic" "testing" @@ -573,6 +574,7 @@ func TestSendOrderCallbackEpayUsesApiKeySecretByPid(t *testing.T) { Status: mdb.StatusPaySuccess, NotifyUrl: server.URL, BlockTransactionId: "block_epay_sign", + EpayType: "usdt.tron", PaymentType: "epay", ApiKeyID: key.ID, } @@ -587,8 +589,8 @@ func TestSendOrderCallbackEpayUsesApiKeySecretByPid(t *testing.T) { if formPayload["sign_type"] != "MD5" { t.Fatalf("sign_type = %q, want MD5", formPayload["sign_type"]) } - if formPayload["type"] != "alipay" { - t.Fatalf("type = %q, want alipay", formPayload["type"]) + if formPayload["type"] != "usdt.tron" { + t.Fatalf("type = %q, want usdt.tron", formPayload["type"]) } if formPayload["trade_status"] != "TRADE_SUCCESS" { t.Fatalf("trade_status = %q, want TRADE_SUCCESS", formPayload["trade_status"]) @@ -629,6 +631,90 @@ func TestSendOrderCallbackEpayUsesApiKeySecretByPid(t *testing.T) { } } +func TestSendOrderCallbackEpayPreservesStoredTypeValues(t *testing.T) { + cleanup := testutil.SetupTestDatabases(t) + defer cleanup() + + key := &mdb.ApiKey{ + Name: "epay-key-stored-type", + Pid: "9201", + SecretKey: "epay-secret-9201", + Status: mdb.ApiKeyStatusEnable, + } + if err := dao.Mdb.Create(key).Error; err != nil { + t.Fatalf("create epay api key: %v", err) + } + + cases := []struct { + name string + epayType string + }{ + {name: "alipay", epayType: "alipay"}, + {name: "non_selector", epayType: "usdt-tron"}, + {name: "unsupported_selector", epayType: "usdc.tron"}, + } + + for idx, tc := range cases { + t.Run(tc.name, func(t *testing.T) { + formPayload := map[string]string{} + server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + if err := r.ParseForm(); err != nil { + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + for k, v := range r.Form { + if len(v) > 0 { + formPayload[k] = v[0] + } + } + _, _ = io.WriteString(w, "ok") + })) + defer server.Close() + + order := &mdb.Orders{ + TradeId: "trade_epay_type_case_" + strconv.Itoa(idx), + OrderId: "order_epay_type_case_" + strconv.Itoa(idx), + Amount: 1, + Currency: "CNY", + ActualAmount: 1, + ReceiveAddress: "wallet_epay_type_case", + Token: "USDT", + Name: "VIP", + Status: mdb.StatusPaySuccess, + NotifyUrl: server.URL, + BlockTransactionId: "block_epay_type_case_" + strconv.Itoa(idx), + EpayType: tc.epayType, + PaymentType: "epay", + ApiKeyID: key.ID, + } + + if err := sendOrderCallback(order); err != nil { + t.Fatalf("send epay callback: %v", err) + } + if got := formPayload["type"]; got != tc.epayType { + t.Fatalf("type = %q, want %q", got, tc.epayType) + } + + signParams := map[string]interface{}{ + "pid": formPayload["pid"], + "trade_no": formPayload["trade_no"], + "out_trade_no": formPayload["out_trade_no"], + "type": formPayload["type"], + "name": formPayload["name"], + "money": formPayload["money"], + "trade_status": formPayload["trade_status"], + } + calcSig, err := sign.Get(signParams, key.SecretKey) + if err != nil { + t.Fatalf("calc epay signature: %v", err) + } + if got := formPayload["sign"]; got != calcSig { + t.Fatalf("sign = %q, want %q", got, calcSig) + } + }) + } +} + func TestDispatchPendingCallbacksEpayAcceptsSuccessAck(t *testing.T) { cleanup := testutil.SetupTestDatabases(t) defer cleanup() diff --git a/src/route/router.go b/src/route/router.go index 4797914..aee31eb 100644 --- a/src/route/router.go +++ b/src/route/router.go @@ -15,12 +15,42 @@ import ( "github.com/GMWalletApp/epusdt/middleware" "github.com/GMWalletApp/epusdt/model/data" "github.com/GMWalletApp/epusdt/model/mdb" + "github.com/GMWalletApp/epusdt/model/service" "github.com/GMWalletApp/epusdt/util/constant" "github.com/GMWalletApp/epusdt/util/sign" "github.com/labstack/echo/v4" echoMiddleware "github.com/labstack/echo/v4/middleware" ) +// resolveEPayTypeSelector only claims the type as a selector when it maps to a +// currently supported payment asset; otherwise the caller should keep the +// legacy token/network/default resolution and treat type as opaque. +func resolveEPayTypeSelector(rawType string) (string, string, bool, error) { + rawType = strings.TrimSpace(rawType) + if rawType == "" || strings.Count(rawType, ".") != 1 { + return "", "", false, nil + } + + parts := strings.SplitN(rawType, ".", 2) + token := strings.TrimSpace(parts[0]) + network := strings.ToLower(strings.TrimSpace(parts[1])) + if token == "" || network == "" { + return "", "", false, nil + } + if !data.IsChainEnabled(network) { + return "", "", false, nil + } + + tokenRow, err := data.GetEnabledChainTokenBySymbol(network, token) + if err != nil { + return "", "", false, err + } + if tokenRow == nil || tokenRow.ID == 0 || !service.ChainTokenReadyForPayment(*tokenRow) { + return "", "", false, nil + } + return token, network, true, nil +} + // RegisterRoute 路由注册 func RegisterRoute(e *echo.Echo) { e.POST("/", func(c echo.Context) error { @@ -130,16 +160,26 @@ func RegisterRoute(e *echo.Echo) { money := getString(params, "money") name := getString(params, "name") + epayType := strings.TrimSpace(getString(params, "type")) notifyURL := getString(params, "notify_url") outTradeNo := getString(params, "out_trade_no") returnURL := getString(params, "return_url") - token := strings.TrimSpace(getString(params, "token")) - if token == "" { - token = data.GetSettingString(mdb.SettingKeyEpayDefaultToken, "") + selectorToken, selectorNetwork, selectorMatched, err := resolveEPayTypeSelector(epayType) + if err != nil { + return comm.Ctrl.FailJson(ctx, constant.SystemErr) } + token := strings.TrimSpace(getString(params, "token")) network := strings.TrimSpace(getString(params, "network")) - if network == "" { - network = data.GetSettingString(mdb.SettingKeyEpayDefaultNetwork, "") + if selectorMatched { + token = selectorToken + network = selectorNetwork + } else { + if token == "" { + token = data.GetSettingString(mdb.SettingKeyEpayDefaultToken, "") + } + if network == "" { + network = data.GetSettingString(mdb.SettingKeyEpayDefaultNetwork, "") + } } currency := strings.TrimSpace(getString(params, "currency")) if currency == "" { @@ -168,6 +208,7 @@ func RegisterRoute(e *echo.Echo) { } ctx.Set("request_body", body) + ctx.Set(comm.EPayTypeContextKey, epayType) ctx.Set(middleware.ApiKeyIDKey, apiKeyRow.ID) ctx.Set(middleware.ApiKeyRowKey, apiKeyRow) diff --git a/src/route/router_test.go b/src/route/router_test.go index 65dc15e..18bbc70 100644 --- a/src/route/router_test.go +++ b/src/route/router_test.go @@ -1272,6 +1272,9 @@ func TestEpaySubmitPhpGetCompatible(t *testing.T) { if order.PaymentType != mdb.PaymentTypeEpay { t.Fatalf("epay payment_type = %q, want %q", order.PaymentType, mdb.PaymentTypeEpay) } + if order.EpayType != "alipay" { + t.Fatalf("epay_type = %q, want alipay", order.EpayType) + } checkoutData := getCheckoutCounterRespData(t, e, tradeID) if checkoutData["payment_type"] != "epay" { t.Fatalf("epay checkout payment_type = %v, want epay", checkoutData["payment_type"]) @@ -1327,6 +1330,100 @@ func TestEpaySubmitPhpRequestTokenNetworkOverrideDefaults(t *testing.T) { } } +func TestEpaySubmitPhpTypeSelectorOverridesRequestAndDefaults(t *testing.T) { + e := setupTestEnv(t) + + if err := data.SetSetting(mdb.SettingGroupEpay, mdb.SettingKeyEpayDefaultToken, "usdc", mdb.SettingTypeString); err != nil { + t.Fatalf("seed epay.default_token: %v", err) + } + if err := data.SetSetting(mdb.SettingGroupEpay, mdb.SettingKeyEpayDefaultNetwork, "solana", mdb.SettingTypeString); err != nil { + t.Fatalf("seed epay.default_network: %v", err) + } + if err := data.SetSetting(mdb.SettingGroupEpay, mdb.SettingKeyEpayDefaultCurrency, "", mdb.SettingTypeString); err != nil { + t.Fatalf("clear epay.default_currency: %v", err) + } + + values := signEpayValues(url.Values{ + "pid": {"1"}, + "name": {"epay-type-selector-001"}, + "type": {"usdt.tron"}, + "money": {"1.00"}, + "out_trade_no": {"epay-type-selector-001"}, + "notify_url": {"https://93.184.216.34/notify"}, + "return_url": {"http://localhost/return"}, + "token": {"usdc"}, + "network": {"solana"}, + }) + + req := httptest.NewRequest(http.MethodGet, "/payments/epay/v1/order/create-transaction/submit.php?"+values.Encode(), nil) + rec := httptest.NewRecorder() + e.ServeHTTP(rec, req) + + if rec.Code != http.StatusFound { + t.Fatalf("expected 302, got %d body=%s", rec.Code, rec.Body.String()) + } + tradeID := strings.TrimPrefix(rec.Header().Get("Location"), "/pay/checkout-counter/") + order, err := data.GetOrderInfoByTradeId(tradeID) + if err != nil { + t.Fatalf("reload epay selector order: %v", err) + } + if order.Token != "USDT" || order.Network != mdb.NetworkTron || order.ReceiveAddress != "TTestTronAddress001" { + t.Fatalf("selector order fields = token %q network %q address %q", order.Token, order.Network, order.ReceiveAddress) + } + if order.Currency != "CNY" { + t.Fatalf("currency = %q, want CNY", order.Currency) + } + if order.EpayType != "usdt.tron" { + t.Fatalf("epay_type = %q, want usdt.tron", order.EpayType) + } +} + +func TestEpaySubmitPhpTypeSelectorUsesDefaultCurrencyWhenMissing(t *testing.T) { + e := setupTestEnv(t) + + if err := data.SetSetting(mdb.SettingGroupEpay, mdb.SettingKeyEpayDefaultToken, "usdc", mdb.SettingTypeString); err != nil { + t.Fatalf("seed epay.default_token: %v", err) + } + if err := data.SetSetting(mdb.SettingGroupEpay, mdb.SettingKeyEpayDefaultNetwork, "solana", mdb.SettingTypeString); err != nil { + t.Fatalf("seed epay.default_network: %v", err) + } + if err := data.SetSetting(mdb.SettingGroupEpay, mdb.SettingKeyEpayDefaultCurrency, "usd", mdb.SettingTypeString); err != nil { + t.Fatalf("seed epay.default_currency: %v", err) + } + if err := data.SetSetting(mdb.SettingGroupRate, "rate.forced_rate_list", `{"cny":{"usdt":0.14285714285714285},"usd":{"usdt":1}}`, mdb.SettingTypeJSON); err != nil { + t.Fatalf("seed rate.forced_rate_list for usd: %v", err) + } + + values := signEpayValues(url.Values{ + "pid": {"1"}, + "name": {"epay-type-default-cur-001"}, + "type": {"usdt.tron"}, + "money": {"1.00"}, + "out_trade_no": {"epay-type-default-cur-001"}, + "notify_url": {"https://93.184.216.34/notify"}, + "return_url": {"http://localhost/return"}, + "token": {"usdc"}, + "network": {"solana"}, + }) + + rec := doFormPost(e, "/payments/epay/v1/order/create-transaction/submit.php", values) + + if rec.Code != http.StatusFound { + t.Fatalf("expected 302, got %d body=%s", rec.Code, rec.Body.String()) + } + tradeID := strings.TrimPrefix(rec.Header().Get("Location"), "/pay/checkout-counter/") + order, err := data.GetOrderInfoByTradeId(tradeID) + if err != nil { + t.Fatalf("reload epay selector order: %v", err) + } + if order.Token != "USDT" || order.Network != mdb.NetworkTron || order.ReceiveAddress != "TTestTronAddress001" { + t.Fatalf("selector order fields = token %q network %q address %q", order.Token, order.Network, order.ReceiveAddress) + } + if order.Currency != "USD" { + t.Fatalf("currency = %q, want USD", order.Currency) + } +} + func TestEpaySubmitPhpWithoutTokenNetworkDefaultsCreatesPlaceholder(t *testing.T) { e := setupTestEnv(t) @@ -1365,12 +1462,95 @@ func TestEpaySubmitPhpWithoutTokenNetworkDefaultsCreatesPlaceholder(t *testing.T if order.PaymentType != mdb.PaymentTypeEpay { t.Fatalf("payment_type = %q, want %q", order.PaymentType, mdb.PaymentTypeEpay) } + if order.EpayType != "alipay" { + t.Fatalf("epay_type = %q, want alipay", order.EpayType) + } checkoutData := getCheckoutCounterRespData(t, e, tradeID) if checkoutData["payment_type"] != "epay" || int(checkoutData["status"].(float64)) != mdb.StatusWaitSelect { t.Fatalf("checkout placeholder data = %#v", checkoutData) } } +func TestEpaySubmitPhpNonSelectorTypeKeepsOldLogic(t *testing.T) { + e := setupTestEnv(t) + + if err := data.SetSetting(mdb.SettingGroupEpay, mdb.SettingKeyEpayDefaultToken, "usdt", mdb.SettingTypeString); err != nil { + t.Fatalf("seed epay.default_token: %v", err) + } + if err := data.SetSetting(mdb.SettingGroupEpay, mdb.SettingKeyEpayDefaultNetwork, "tron", mdb.SettingTypeString); err != nil { + t.Fatalf("seed epay.default_network: %v", err) + } + + values := signEpayValues(url.Values{ + "pid": {"1"}, + "name": {"epay-non-selector-001"}, + "type": {"usdt-tron"}, + "money": {"1.00"}, + "out_trade_no": {"epay-non-selector-001"}, + "notify_url": {"https://93.184.216.34/notify"}, + "return_url": {"http://localhost/return"}, + }) + + req := httptest.NewRequest(http.MethodGet, "/payments/epay/v1/order/create-transaction/submit.php?"+values.Encode(), nil) + rec := httptest.NewRecorder() + e.ServeHTTP(rec, req) + + if rec.Code != http.StatusFound { + t.Fatalf("expected 302, got %d body=%s", rec.Code, rec.Body.String()) + } + tradeID := strings.TrimPrefix(rec.Header().Get("Location"), "/pay/checkout-counter/") + order, err := data.GetOrderInfoByTradeId(tradeID) + if err != nil { + t.Fatalf("reload epay non-selector order: %v", err) + } + if order.Token != "USDT" || order.Network != mdb.NetworkTron || order.ReceiveAddress != "TTestTronAddress001" { + t.Fatalf("non-selector order fields = token %q network %q address %q", order.Token, order.Network, order.ReceiveAddress) + } + if order.EpayType != "usdt-tron" { + t.Fatalf("epay_type = %q, want usdt-tron", order.EpayType) + } +} + +func TestEpaySubmitPhpUnsupportedSelectorFallsBackToOldLogic(t *testing.T) { + e := setupTestEnv(t) + + if err := data.SetSetting(mdb.SettingGroupEpay, mdb.SettingKeyEpayDefaultToken, "usdt", mdb.SettingTypeString); err != nil { + t.Fatalf("seed epay.default_token: %v", err) + } + if err := data.SetSetting(mdb.SettingGroupEpay, mdb.SettingKeyEpayDefaultNetwork, "tron", mdb.SettingTypeString); err != nil { + t.Fatalf("seed epay.default_network: %v", err) + } + + values := signEpayValues(url.Values{ + "pid": {"1"}, + "name": {"epay-unsupported-selector-001"}, + "type": {"usdc.tron"}, + "money": {"1.00"}, + "out_trade_no": {"epay-unsupported-selector-001"}, + "notify_url": {"https://93.184.216.34/notify"}, + "return_url": {"http://localhost/return"}, + }) + + req := httptest.NewRequest(http.MethodGet, "/payments/epay/v1/order/create-transaction/submit.php?"+values.Encode(), nil) + rec := httptest.NewRecorder() + e.ServeHTTP(rec, req) + + if rec.Code != http.StatusFound { + t.Fatalf("expected 302, got %d body=%s", rec.Code, rec.Body.String()) + } + tradeID := strings.TrimPrefix(rec.Header().Get("Location"), "/pay/checkout-counter/") + order, err := data.GetOrderInfoByTradeId(tradeID) + if err != nil { + t.Fatalf("reload epay unsupported selector order: %v", err) + } + if order.Token != "USDT" || order.Network != mdb.NetworkTron || order.ReceiveAddress != "TTestTronAddress001" { + t.Fatalf("unsupported selector order fields = token %q network %q address %q", order.Token, order.Network, order.ReceiveAddress) + } + if order.EpayType != "usdc.tron" { + t.Fatalf("epay_type = %q, want usdc.tron", order.EpayType) + } +} + func TestEpaySubmitPhpRejectsPartialResolvedTokenNetwork(t *testing.T) { e := setupTestEnv(t) @@ -1428,6 +1608,40 @@ func TestEpaySubmitPhpPostFormCompatible(t *testing.T) { } } +func TestEpaySubmitPhpTypeSelectorPostFormCompatible(t *testing.T) { + e := setupTestEnv(t) + + if err := data.SetSetting(mdb.SettingGroupEpay, mdb.SettingKeyEpayDefaultNetwork, "solana", mdb.SettingTypeString); err != nil { + t.Fatalf("seed epay.default_network: %v", err) + } + + values := signEpayValues(url.Values{ + "pid": {"1"}, + "name": {"epay-post-selector-001"}, + "type": {"usdt.tron"}, + "money": {"1.00"}, + "out_trade_no": {"epay-post-selector-001"}, + "notify_url": {"https://93.184.216.34/notify"}, + "return_url": {"http://localhost/return"}, + }) + + rec := doFormPost(e, "/payments/epay/v1/order/create-transaction/submit.php", values) + if rec.Code != http.StatusFound { + t.Fatalf("expected 302, got %d body=%s", rec.Code, rec.Body.String()) + } + tradeID := strings.TrimPrefix(rec.Header().Get("Location"), "/pay/checkout-counter/") + order, err := data.GetOrderInfoByTradeId(tradeID) + if err != nil { + t.Fatalf("reload epay post selector order: %v", err) + } + if order.Token != "USDT" || order.Network != mdb.NetworkTron || order.ReceiveAddress != "TTestTronAddress001" { + t.Fatalf("post selector order fields = token %q network %q address %q", order.Token, order.Network, order.ReceiveAddress) + } + if order.EpayType != "usdt.tron" { + t.Fatalf("epay_type = %q, want usdt.tron", order.EpayType) + } +} + // TestCheckStatus_NotFound verifies that /pay/check-status/:trade_id returns a // graceful JSON error (not 500) when the trade_id doesn't exist. func TestCheckStatus_NotFound(t *testing.T) { @@ -1656,6 +1870,93 @@ func TestPayReturn_PaidEpayRedirectsToMerchantWithSignedParams(t *testing.T) { } } +func TestPayReturn_PaidEpayRedirectsWithOriginalType(t *testing.T) { + e := setupTestEnv(t) + tradeID := mustCreateEPayOrder(t, e, "epay-return-type-001", "https://merchant.example/return", url.Values{ + "type": {"usdt.tron"}, + }) + if err := dao.Mdb.Model(&mdb.Orders{}). + Where("trade_id = ?", tradeID). + Update("status", mdb.StatusPaySuccess).Error; err != nil { + t.Fatalf("mark order paid: %v", err) + } + + req := httptest.NewRequest(http.MethodGet, "/pay/return/"+tradeID, nil) + rec := httptest.NewRecorder() + e.ServeHTTP(rec, req) + if rec.Code != http.StatusFound { + t.Fatalf("expected 302, got %d: %s", rec.Code, rec.Body.String()) + } + + targetURL, err := url.Parse(rec.Header().Get("Location")) + if err != nil { + t.Fatalf("parse redirect location: %v", err) + } + if got := targetURL.Query().Get("type"); got != "usdt.tron" { + t.Fatalf("type = %q, want usdt.tron", got) + } +} + +func TestPayReturn_PaidEpayRedirectsWithNonSelectorType(t *testing.T) { + e := setupTestEnv(t) + tradeID := mustCreateEPayOrder(t, e, "epay-return-non-selector-001", "https://merchant.example/return", url.Values{ + "type": {"usdt-tron"}, + "token": {"usdt"}, + "network": {"tron"}, + "currency": {"cny"}, + }) + if err := dao.Mdb.Model(&mdb.Orders{}). + Where("trade_id = ?", tradeID). + Update("status", mdb.StatusPaySuccess).Error; err != nil { + t.Fatalf("mark order paid: %v", err) + } + + req := httptest.NewRequest(http.MethodGet, "/pay/return/"+tradeID, nil) + rec := httptest.NewRecorder() + e.ServeHTTP(rec, req) + if rec.Code != http.StatusFound { + t.Fatalf("expected 302, got %d: %s", rec.Code, rec.Body.String()) + } + + targetURL, err := url.Parse(rec.Header().Get("Location")) + if err != nil { + t.Fatalf("parse redirect location: %v", err) + } + if got := targetURL.Query().Get("type"); got != "usdt-tron" { + t.Fatalf("type = %q, want usdt-tron", got) + } +} + +func TestPayReturn_PaidEpayRedirectsWithUnsupportedSelectorType(t *testing.T) { + e := setupTestEnv(t) + tradeID := mustCreateEPayOrder(t, e, "epay-return-unsel-001", "https://merchant.example/return", url.Values{ + "type": {"usdc.tron"}, + "token": {"usdt"}, + "network": {"tron"}, + "currency": {"cny"}, + }) + if err := dao.Mdb.Model(&mdb.Orders{}). + Where("trade_id = ?", tradeID). + Update("status", mdb.StatusPaySuccess).Error; err != nil { + t.Fatalf("mark order paid: %v", err) + } + + req := httptest.NewRequest(http.MethodGet, "/pay/return/"+tradeID, nil) + rec := httptest.NewRecorder() + e.ServeHTTP(rec, req) + if rec.Code != http.StatusFound { + t.Fatalf("expected 302, got %d: %s", rec.Code, rec.Body.String()) + } + + targetURL, err := url.Parse(rec.Header().Get("Location")) + if err != nil { + t.Fatalf("parse redirect location: %v", err) + } + if got := targetURL.Query().Get("type"); got != "usdc.tron" { + t.Fatalf("type = %q, want usdc.tron", got) + } +} + func TestPayReturn_UnpaidEpayRedirectsBackToCheckout(t *testing.T) { e := setupTestEnv(t) tradeID := mustCreateEPayOrder(t, e, "epay-return-unpaid-001", "https://merchant.example/return", url.Values{ @@ -2501,6 +2802,9 @@ func TestSwitchNetwork_EpayPlaceholderCompletesChainInPlace(t *testing.T) { if parent.Status != mdb.StatusWaitPay || parent.PaymentType != mdb.PaymentTypeEpay || parent.Network != mdb.NetworkTron || parent.Token != "USDT" || parent.ReceiveAddress == "" { t.Fatalf("parent fields = status %d payment_type %q network %q token %q address %q", parent.Status, parent.PaymentType, parent.Network, parent.Token, parent.ReceiveAddress) } + if parent.EpayType != "alipay" { + t.Fatalf("parent epay_type = %q, want alipay", parent.EpayType) + } if parent.RedirectUrl != "http://localhost/return" { t.Fatalf("stored redirect_url = %q, want merchant raw return_url", parent.RedirectUrl) } @@ -2616,6 +2920,47 @@ func TestSwitchNetwork_OkPayFromEpayWaitSelectPlaceholder(t *testing.T) { } } +func TestSwitchNetwork_EpayChildInheritsOriginalType(t *testing.T) { + e := setupTestEnv(t) + tradeID := mustCreateEPayOrder(t, e, "epay-switch-child-type-001", "http://localhost/return", url.Values{ + "type": {"usdt.tron"}, + }) + + rec := doPost(e, "/pay/switch-network", map[string]interface{}{ + "trade_id": tradeID, + "token": "USDT", + "network": "solana", + }) + if rec.Code != http.StatusOK { + t.Fatalf("switch epay parent to solana failed: %d %s", rec.Code, rec.Body.String()) + } + resp := parseResp(t, rec) + respData, _ := resp["data"].(map[string]interface{}) + subTradeID, _ := respData["trade_id"].(string) + if subTradeID == "" || subTradeID == tradeID { + t.Fatalf("expected child trade_id, got %q", subTradeID) + } + + subOrder, err := data.GetOrderInfoByTradeId(subTradeID) + if err != nil { + t.Fatalf("load sub-order: %v", err) + } + if subOrder.EpayType != "usdt.tron" { + t.Fatalf("sub-order epay_type = %q, want usdt.tron", subOrder.EpayType) + } + apiKeyRow, err := data.GetApiKeyByID(subOrder.ApiKeyID) + if err != nil { + t.Fatalf("load api key: %v", err) + } + params, err := service.BuildEPayResultParams(subOrder, apiKeyRow) + if err != nil { + t.Fatalf("BuildEPayResultParams(): %v", err) + } + if params["type"] != "usdt.tron" { + t.Fatalf("callback type = %q, want usdt.tron", params["type"]) + } +} + func TestSwitchNetwork_OkPayIntegration(t *testing.T) { shopID := strings.TrimSpace(os.Getenv("EPUSDT_OKPAY_ID")) if shopID == "" { From 73aef804990cab77a32c7e199f29944fb07b1224 Mon Sep 17 00:00:00 2001 From: line-6000 <154492442+line-6000@users.noreply.github.com> Date: Sun, 28 Jun 2026 17:33:49 +0800 Subject: [PATCH 2/8] fix(epay): restrict submit type to alipay or supported selectors --- src/controller/comm/order_controller.go | 8 +- src/controller/comm/pay_controller.go | 2 +- src/mq/worker_test.go | 118 +++++++++----------- src/route/router.go | 8 +- src/route/router_test.go | 137 +++++++++--------------- wiki/API.md | 23 ++-- 6 files changed, 128 insertions(+), 168 deletions(-) diff --git a/src/controller/comm/order_controller.go b/src/controller/comm/order_controller.go index 74df3be..2c3b1de 100644 --- a/src/controller/comm/order_controller.go +++ b/src/controller/comm/order_controller.go @@ -105,9 +105,9 @@ func (c *BaseCommController) SwitchNetwork(ctx echo.Context) (err error) { // the canonical form — the GET variant is identical save the transport. // @Summary Create transaction and redirect (EPAY compat) // @Description Legacy EPAY-style endpoint. Accepts GET (querystring) and POST (form). On success, 302 redirects to /pay/checkout-counter/{trade_id}. Signature uses MD5 of sorted params + secret_key of the api_keys row matching the submitted pid. -// @Description After signature verification, token/network resolution is: supported type=token.network selector (for example usdt.tron) first; otherwise request token/network; otherwise epay.default_token / epay.default_network. If token and network are still both empty, the order is created as status=4 placeholder. Supplying only one of token/network remains invalid. +// @Description After signature verification, type accepts only either alipay or a supported type=token.network selector (for example usdt.tron). Token/network resolution is: supported selector first; otherwise request token/network; otherwise epay.default_token / epay.default_network. If token and network are still both empty, the order is created as status=4 placeholder. Supplying only one of token/network remains invalid. // @Description Currency resolution is unchanged: request currency -> epay.default_currency -> cny. Supported type selectors bypass only token/network defaults, not currency fallback. -// @Description Success return/notify currently use the stored request type when present, and fall back to alipay only when type was missing. The server injects internal payment_type=Epay after EPay signature verification; merchants do not send GMPay payment_type to this endpoint. +// @Description Success return/notify reuse the stored request type. On this branch that means either alipay or a supported token.network selector; when the request omitted type, outbound fallback remains alipay. The server injects internal payment_type=Epay after EPay signature verification; merchants do not send GMPay payment_type to this endpoint. // @Tags Payment // @Accept x-www-form-urlencoded // @Produce html @@ -117,7 +117,7 @@ func (c *BaseCommController) SwitchNetwork(ctx echo.Context) (err error) { // @Param notify_url query string false "Callback URL (GET query)" // @Param return_url query string false "Redirect URL after payment (GET query)" // @Param name query string false "Order name (GET query)" -// @Param type query string false "Opaque merchant type or supported token.network selector such as alipay or usdt.tron (GET query)" +// @Param type query string false "Either alipay or a supported token.network selector such as usdt.tron (GET query)" // @Param sign query string false "MD5 signature (GET query)" // @Param sign_type query string false "Signature type (MD5, GET query)" // @Param pid formData integer true "API key PID" @@ -126,7 +126,7 @@ func (c *BaseCommController) SwitchNetwork(ctx echo.Context) (err error) { // @Param notify_url formData string true "Callback URL" // @Param return_url formData string false "Redirect URL after payment" // @Param name formData string false "Order name" -// @Param type formData string false "Opaque merchant type or supported token.network selector such as alipay or usdt.tron" +// @Param type formData string false "Either alipay or a supported token.network selector such as usdt.tron" // @Param sign formData string true "MD5 signature" // @Param sign_type formData string false "Signature type (MD5)" // @Success 302 "Redirect to checkout counter" diff --git a/src/controller/comm/pay_controller.go b/src/controller/comm/pay_controller.go index 6aef2d4..2dc1566 100644 --- a/src/controller/comm/pay_controller.go +++ b/src/controller/comm/pay_controller.go @@ -36,7 +36,7 @@ func (c *BaseCommController) CheckoutCounter(ctx echo.Context) (err error) { // Non-EPay or not-yet-paid orders are sent back to the checkout counter. // @Summary Return to merchant (EPAY compat) // @Description Browser-facing success return hop for EPay orders. Paid EPay orders are redirected to the merchant return_url with signed legacy EPay query params. Orders that are not EPay or not yet paid are redirected back to the checkout counter. -// @Description The signed query params currently use the stored request type when present; otherwise type=alipay is returned for compatibility. +// @Description The signed query params reuse the stored request type. On this branch that means either alipay or a supported token.network selector; if the original request omitted type, type=alipay is returned for compatibility. // @Description This route also returns explicit business errors when the merchant return_url is missing, the order API key is unavailable, or EPay signature construction fails. // @Tags Payment // @Produce html diff --git a/src/mq/worker_test.go b/src/mq/worker_test.go index 93ac2e1..59efdff 100644 --- a/src/mq/worker_test.go +++ b/src/mq/worker_test.go @@ -5,7 +5,6 @@ import ( "io" "net/http" "net/http/httptest" - "strconv" "sync" "sync/atomic" "testing" @@ -631,7 +630,7 @@ func TestSendOrderCallbackEpayUsesApiKeySecretByPid(t *testing.T) { } } -func TestSendOrderCallbackEpayPreservesStoredTypeValues(t *testing.T) { +func TestSendOrderCallbackEpayPreservesStoredAlipayType(t *testing.T) { cleanup := testutil.SetupTestDatabases(t) defer cleanup() @@ -645,73 +644,60 @@ func TestSendOrderCallbackEpayPreservesStoredTypeValues(t *testing.T) { t.Fatalf("create epay api key: %v", err) } - cases := []struct { - name string - epayType string - }{ - {name: "alipay", epayType: "alipay"}, - {name: "non_selector", epayType: "usdt-tron"}, - {name: "unsupported_selector", epayType: "usdc.tron"}, + formPayload := map[string]string{} + server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + if err := r.ParseForm(); err != nil { + http.Error(w, err.Error(), http.StatusBadRequest) + return + } + for k, v := range r.Form { + if len(v) > 0 { + formPayload[k] = v[0] + } + } + _, _ = io.WriteString(w, "ok") + })) + defer server.Close() + + order := &mdb.Orders{ + TradeId: "trade_epay_type_case_alipay", + OrderId: "order_epay_type_case_alipay", + Amount: 1, + Currency: "CNY", + ActualAmount: 1, + ReceiveAddress: "wallet_epay_type_case", + Token: "USDT", + Name: "VIP", + Status: mdb.StatusPaySuccess, + NotifyUrl: server.URL, + BlockTransactionId: "block_epay_type_case_alipay", + EpayType: "alipay", + PaymentType: "epay", + ApiKeyID: key.ID, } - for idx, tc := range cases { - t.Run(tc.name, func(t *testing.T) { - formPayload := map[string]string{} - server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - if err := r.ParseForm(); err != nil { - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - for k, v := range r.Form { - if len(v) > 0 { - formPayload[k] = v[0] - } - } - _, _ = io.WriteString(w, "ok") - })) - defer server.Close() + if err := sendOrderCallback(order); err != nil { + t.Fatalf("send epay callback: %v", err) + } + if got := formPayload["type"]; got != "alipay" { + t.Fatalf("type = %q, want alipay", got) + } - order := &mdb.Orders{ - TradeId: "trade_epay_type_case_" + strconv.Itoa(idx), - OrderId: "order_epay_type_case_" + strconv.Itoa(idx), - Amount: 1, - Currency: "CNY", - ActualAmount: 1, - ReceiveAddress: "wallet_epay_type_case", - Token: "USDT", - Name: "VIP", - Status: mdb.StatusPaySuccess, - NotifyUrl: server.URL, - BlockTransactionId: "block_epay_type_case_" + strconv.Itoa(idx), - EpayType: tc.epayType, - PaymentType: "epay", - ApiKeyID: key.ID, - } - - if err := sendOrderCallback(order); err != nil { - t.Fatalf("send epay callback: %v", err) - } - if got := formPayload["type"]; got != tc.epayType { - t.Fatalf("type = %q, want %q", got, tc.epayType) - } - - signParams := map[string]interface{}{ - "pid": formPayload["pid"], - "trade_no": formPayload["trade_no"], - "out_trade_no": formPayload["out_trade_no"], - "type": formPayload["type"], - "name": formPayload["name"], - "money": formPayload["money"], - "trade_status": formPayload["trade_status"], - } - calcSig, err := sign.Get(signParams, key.SecretKey) - if err != nil { - t.Fatalf("calc epay signature: %v", err) - } - if got := formPayload["sign"]; got != calcSig { - t.Fatalf("sign = %q, want %q", got, calcSig) - } - }) + signParams := map[string]interface{}{ + "pid": formPayload["pid"], + "trade_no": formPayload["trade_no"], + "out_trade_no": formPayload["out_trade_no"], + "type": formPayload["type"], + "name": formPayload["name"], + "money": formPayload["money"], + "trade_status": formPayload["trade_status"], + } + calcSig, err := sign.Get(signParams, key.SecretKey) + if err != nil { + t.Fatalf("calc epay signature: %v", err) + } + if got := formPayload["sign"]; got != calcSig { + t.Fatalf("sign = %q, want %q", got, calcSig) } } diff --git a/src/route/router.go b/src/route/router.go index aee31eb..70a4721 100644 --- a/src/route/router.go +++ b/src/route/router.go @@ -23,8 +23,9 @@ import ( ) // resolveEPayTypeSelector only claims the type as a selector when it maps to a -// currently supported payment asset; otherwise the caller should keep the -// legacy token/network/default resolution and treat type as opaque. +// currently supported payment asset. Non-selector values are handled by the +// caller, which now only accepts empty type or alipay before falling back to +// request token/network/default resolution. func resolveEPayTypeSelector(rawType string) (string, string, bool, error) { rawType = strings.TrimSpace(rawType) if rawType == "" || strings.Count(rawType, ".") != 1 { @@ -168,6 +169,9 @@ func RegisterRoute(e *echo.Echo) { if err != nil { return comm.Ctrl.FailJson(ctx, constant.SystemErr) } + if epayType != "" && !selectorMatched && !strings.EqualFold(epayType, "alipay") { + return comm.Ctrl.FailJson(ctx, constant.ParamsMarshalErr) + } token := strings.TrimSpace(getString(params, "token")) network := strings.TrimSpace(getString(params, "network")) if selectorMatched { diff --git a/src/route/router_test.go b/src/route/router_test.go index 18bbc70..94b0377 100644 --- a/src/route/router_test.go +++ b/src/route/router_test.go @@ -1471,7 +1471,46 @@ func TestEpaySubmitPhpWithoutTokenNetworkDefaultsCreatesPlaceholder(t *testing.T } } -func TestEpaySubmitPhpNonSelectorTypeKeepsOldLogic(t *testing.T) { +func TestEpaySubmitPhpWithoutTypeKeepsCurrentBehavior(t *testing.T) { + e := setupTestEnv(t) + + if err := data.SetSetting(mdb.SettingGroupEpay, mdb.SettingKeyEpayDefaultToken, "usdt", mdb.SettingTypeString); err != nil { + t.Fatalf("seed epay.default_token: %v", err) + } + if err := data.SetSetting(mdb.SettingGroupEpay, mdb.SettingKeyEpayDefaultNetwork, "tron", mdb.SettingTypeString); err != nil { + t.Fatalf("seed epay.default_network: %v", err) + } + + values := signEpayValues(url.Values{ + "pid": {"1"}, + "name": {"epay-empty-type-001"}, + "money": {"1.00"}, + "out_trade_no": {"epay-empty-type-001"}, + "notify_url": {"https://93.184.216.34/notify"}, + "return_url": {"http://localhost/return"}, + }) + + req := httptest.NewRequest(http.MethodGet, "/payments/epay/v1/order/create-transaction/submit.php?"+values.Encode(), nil) + rec := httptest.NewRecorder() + e.ServeHTTP(rec, req) + + if rec.Code != http.StatusFound { + t.Fatalf("expected 302, got %d body=%s", rec.Code, rec.Body.String()) + } + tradeID := strings.TrimPrefix(rec.Header().Get("Location"), "/pay/checkout-counter/") + order, err := data.GetOrderInfoByTradeId(tradeID) + if err != nil { + t.Fatalf("reload epay empty-type order: %v", err) + } + if order.Token != "USDT" || order.Network != mdb.NetworkTron || order.ReceiveAddress != "TTestTronAddress001" { + t.Fatalf("empty-type order fields = token %q network %q address %q", order.Token, order.Network, order.ReceiveAddress) + } + if order.EpayType != "" { + t.Fatalf("epay_type = %q, want empty", order.EpayType) + } +} + +func TestEpaySubmitPhpRejectsNonSelectorType(t *testing.T) { e := setupTestEnv(t) if err := data.SetSetting(mdb.SettingGroupEpay, mdb.SettingKeyEpayDefaultToken, "usdt", mdb.SettingTypeString); err != nil { @@ -1495,23 +1534,16 @@ func TestEpaySubmitPhpNonSelectorTypeKeepsOldLogic(t *testing.T) { rec := httptest.NewRecorder() e.ServeHTTP(rec, req) - if rec.Code != http.StatusFound { - t.Fatalf("expected 302, got %d body=%s", rec.Code, rec.Body.String()) + if rec.Code != http.StatusBadRequest { + t.Fatalf("expected 400, got %d body=%s", rec.Code, rec.Body.String()) } - tradeID := strings.TrimPrefix(rec.Header().Get("Location"), "/pay/checkout-counter/") - order, err := data.GetOrderInfoByTradeId(tradeID) - if err != nil { - t.Fatalf("reload epay non-selector order: %v", err) - } - if order.Token != "USDT" || order.Network != mdb.NetworkTron || order.ReceiveAddress != "TTestTronAddress001" { - t.Fatalf("non-selector order fields = token %q network %q address %q", order.Token, order.Network, order.ReceiveAddress) - } - if order.EpayType != "usdt-tron" { - t.Fatalf("epay_type = %q, want usdt-tron", order.EpayType) + resp := parseResp(t, rec) + if got := int(resp["status_code"].(float64)); got != 10009 { + t.Fatalf("status_code = %d, want 10009", got) } } -func TestEpaySubmitPhpUnsupportedSelectorFallsBackToOldLogic(t *testing.T) { +func TestEpaySubmitPhpRejectsUnsupportedSelectorType(t *testing.T) { e := setupTestEnv(t) if err := data.SetSetting(mdb.SettingGroupEpay, mdb.SettingKeyEpayDefaultToken, "usdt", mdb.SettingTypeString); err != nil { @@ -1535,19 +1567,12 @@ func TestEpaySubmitPhpUnsupportedSelectorFallsBackToOldLogic(t *testing.T) { rec := httptest.NewRecorder() e.ServeHTTP(rec, req) - if rec.Code != http.StatusFound { - t.Fatalf("expected 302, got %d body=%s", rec.Code, rec.Body.String()) + if rec.Code != http.StatusBadRequest { + t.Fatalf("expected 400, got %d body=%s", rec.Code, rec.Body.String()) } - tradeID := strings.TrimPrefix(rec.Header().Get("Location"), "/pay/checkout-counter/") - order, err := data.GetOrderInfoByTradeId(tradeID) - if err != nil { - t.Fatalf("reload epay unsupported selector order: %v", err) - } - if order.Token != "USDT" || order.Network != mdb.NetworkTron || order.ReceiveAddress != "TTestTronAddress001" { - t.Fatalf("unsupported selector order fields = token %q network %q address %q", order.Token, order.Network, order.ReceiveAddress) - } - if order.EpayType != "usdc.tron" { - t.Fatalf("epay_type = %q, want usdc.tron", order.EpayType) + resp := parseResp(t, rec) + if got := int(resp["status_code"].(float64)); got != 10009 { + t.Fatalf("status_code = %d, want 10009", got) } } @@ -1897,66 +1922,6 @@ func TestPayReturn_PaidEpayRedirectsWithOriginalType(t *testing.T) { } } -func TestPayReturn_PaidEpayRedirectsWithNonSelectorType(t *testing.T) { - e := setupTestEnv(t) - tradeID := mustCreateEPayOrder(t, e, "epay-return-non-selector-001", "https://merchant.example/return", url.Values{ - "type": {"usdt-tron"}, - "token": {"usdt"}, - "network": {"tron"}, - "currency": {"cny"}, - }) - if err := dao.Mdb.Model(&mdb.Orders{}). - Where("trade_id = ?", tradeID). - Update("status", mdb.StatusPaySuccess).Error; err != nil { - t.Fatalf("mark order paid: %v", err) - } - - req := httptest.NewRequest(http.MethodGet, "/pay/return/"+tradeID, nil) - rec := httptest.NewRecorder() - e.ServeHTTP(rec, req) - if rec.Code != http.StatusFound { - t.Fatalf("expected 302, got %d: %s", rec.Code, rec.Body.String()) - } - - targetURL, err := url.Parse(rec.Header().Get("Location")) - if err != nil { - t.Fatalf("parse redirect location: %v", err) - } - if got := targetURL.Query().Get("type"); got != "usdt-tron" { - t.Fatalf("type = %q, want usdt-tron", got) - } -} - -func TestPayReturn_PaidEpayRedirectsWithUnsupportedSelectorType(t *testing.T) { - e := setupTestEnv(t) - tradeID := mustCreateEPayOrder(t, e, "epay-return-unsel-001", "https://merchant.example/return", url.Values{ - "type": {"usdc.tron"}, - "token": {"usdt"}, - "network": {"tron"}, - "currency": {"cny"}, - }) - if err := dao.Mdb.Model(&mdb.Orders{}). - Where("trade_id = ?", tradeID). - Update("status", mdb.StatusPaySuccess).Error; err != nil { - t.Fatalf("mark order paid: %v", err) - } - - req := httptest.NewRequest(http.MethodGet, "/pay/return/"+tradeID, nil) - rec := httptest.NewRecorder() - e.ServeHTTP(rec, req) - if rec.Code != http.StatusFound { - t.Fatalf("expected 302, got %d: %s", rec.Code, rec.Body.String()) - } - - targetURL, err := url.Parse(rec.Header().Get("Location")) - if err != nil { - t.Fatalf("parse redirect location: %v", err) - } - if got := targetURL.Query().Get("type"); got != "usdc.tron" { - t.Fatalf("type = %q, want usdc.tron", got) - } -} - func TestPayReturn_UnpaidEpayRedirectsBackToCheckout(t *testing.T) { e := setupTestEnv(t) tradeID := mustCreateEPayOrder(t, e, "epay-return-unpaid-001", "https://merchant.example/return", url.Values{ diff --git a/wiki/API.md b/wiki/API.md index 10d40f5..f30eb7d 100644 --- a/wiki/API.md +++ b/wiki/API.md @@ -441,9 +441,9 @@ function epaySign(array $params, string $secretKey): string | `notify_url` | query/form | string | 是 | 异步回调地址。 | | `return_url` | query/form | string | 否 | 支付完成后的同步跳转地址。 | | `name` | query/form | string | 否 | 商品/订单名称。 | -| `type` | query/form | string | 否 | 兼容字段,如 `alipay`。创建订单时不决定实际链上币种。 | -| `token` | query/form | string | 否 | 可选收款币种。优先级高于后台 `epay.default_token`;传了就必须参与 EPay 签名。 | -| `network` | query/form | string | 否 | 可选收款网络。优先级高于后台 `epay.default_network`;传了就必须参与 EPay 签名。 | +| `type` | query/form | string | 否 | 仅支持空值、`alipay`,或当前已启用并可收款的 `token.network` selector(如 `usdt.tron`)。推荐使用小写 `alipay`。 | +| `token` | query/form | string | 否 | 可选收款币种。仅在 `type` 不是命中的 selector 时参与解析;传了就必须参与 EPay 签名。 | +| `network` | query/form | string | 否 | 可选收款网络。仅在 `type` 不是命中的 selector 时参与解析;传了就必须参与 EPay 签名。 | | `currency` | query/form | string | 否 | 可选法币币种。优先级高于后台 `epay.default_currency`;传了就必须参与 EPay 签名。 | | `sign` | query/form | string | 是 | EPay 签名。 | | `sign_type` | query/form | string | 否 | 通常为 `MD5`。 | @@ -466,13 +466,16 @@ money=100&name=VIP¬ify_url=https://merchant.example/notify&out_trade_no=ORD20 sign=b865b0acbb2b01554c35a1bd33351452 ``` -EPay 接口解析 `token/network/currency` 的优先级: +EPay 接口解析 `type/token/network/currency` 的规则: -- `token`:请求参数 `token` > 数据库 `epay.default_token` > 空。 -- `network`:请求参数 `network` > 数据库 `epay.default_network` > 空。 -- `currency`:请求参数 `currency` > 数据库 `epay.default_currency` > `cny`。 -- 最终 `token/network` 同时有值时,创建具体链上订单;同时为空时,创建状态 `4` 占位订单;只缺一个时返回参数错误。 -- 服务端会在 EPay 签名校验通过后内部注入 `payment_type=Epay`,该字段不参与 EPay 入站签名;但请求里显式传入的 `token/network/currency` 属于原始 EPay 参数,必须参与签名。 +- `type` 只接受三类输入:空值、`alipay`、命中的 `token.network` selector。 +- `type=token.network` 且命中当前已启用支付资产时,会直接确定本次订单的 `token/network`,并覆盖请求参数里的 `token/network` 以及后台 `epay.default_token` / `epay.default_network`。 +- `type` 非空但既不是命中的 selector,也不是 `alipay` 时,直接返回 `10009 invalid params`。例如 `usdt-tron`、未启用的 `usdc.tron` 都会被拒绝。 +- `type` 为空或为 `alipay` 时,`token/network` 继续走原有解析:先看请求参数,再分别用数据库 `epay.default_token` / `epay.default_network` 补齐。 +- `currency` 解析不受 selector 影响:请求参数 `currency` > 数据库 `epay.default_currency` > `cny`。 +- 最终解析结果里,`token/network` 同时有值时创建具体链上订单;同时为空时创建状态 `4` 占位订单;最终只缺一个时返回参数错误。 +- 这意味着“请求里只传了一个值”不一定报错;如果另一个值能被 default 补齐,仍会成功。只有最终解析后仍然只剩一个值,才返回 `10009`。 +- 服务端会在 EPay 签名校验通过后内部注入 `payment_type=Epay`,该字段不参与 EPay 入站签名;但请求里显式传入的 `type/token/network/currency` 仍属于原始 EPay 参数,必须参与签名。 后台默认配置可通过 `/payments/gmpay/v1/config` 的 `epay` 字段查看;新安装默认只预置 `epay.default_currency=cny`,`epay.default_token` 和 `epay.default_network` 为空,因此 EPay 未显式传 token/network 时会创建状态 `4` 占位订单。已有数据库的配置不会被 seed 覆盖,删除或置空 `epay.default_token` 和 `epay.default_network` 后,这两个字段会返回空字符串。 @@ -519,6 +522,8 @@ GMPay 回调验签方式与创建订单一致,但排除 `signature` 字段。 通过 EPay 兼容接口创建的订单,会使用 GET 请求回调 `notify_url`,参数如下: > EPay 回调会把 `pid` 输出为数字;使用 EPay 兼容接口或 `payment_type=Epay` 时,请确保 API Key 的 PID 是数字。 +> +> `type` 出站时使用订单里保存的请求值。当前主分支正常入站能保存下来的只会是 `alipay` 或命中的 `token.network` selector;如果入站请求没传 `type`,出站才回退为 `alipay`。 ```text pid=1000 From 15de0e694074d387592c4e351496d6af3f927492 Mon Sep 17 00:00:00 2001 From: line-6000 <154492442+line-6000@users.noreply.github.com> Date: Sun, 28 Jun 2026 18:14:17 +0800 Subject: [PATCH 3/8] auth: keep init password available until password change --- src/bootstrap/bootstrap.go | 4 +- src/controller/admin/auth_controller.go | 11 +-- src/model/data/admin_user_data.go | 102 ++++++++++++------------ src/model/data/admin_user_data_test.go | 54 +++++++++++-- src/route/admin_router_test.go | 50 ++++++++---- 5 files changed, 144 insertions(+), 77 deletions(-) diff --git a/src/bootstrap/bootstrap.go b/src/bootstrap/bootstrap.go index 6df8cfc..a1ef46a 100644 --- a/src/bootstrap/bootstrap.go +++ b/src/bootstrap/bootstrap.go @@ -55,8 +55,8 @@ func InitApp() { color.Yellow.Println("║ Default admin account created. Save these credentials now. ║") color.Yellow.Printf("║ Username: %-54s║\n", "admin") color.Yellow.Printf("║ Password: %-54s║\n", initialPassword) - color.Yellow.Println("║ The one-time password API remains available until first fetch. ║") - color.Yellow.Println("║ GET /admin/api/v1/auth/init-password (one-time) ║") + color.Yellow.Println("║ The initial password API remains available until password change. ║") + color.Yellow.Println("║ GET /admin/api/v1/auth/init-password ║") color.Yellow.Println("╚════════════════════════════════════════════════════════════════════════╝") } if _, err := appjwt.EnsureSecret(); err != nil { diff --git a/src/controller/admin/auth_controller.go b/src/controller/admin/auth_controller.go index 7325c4a..1779e66 100644 --- a/src/controller/admin/auth_controller.go +++ b/src/controller/admin/auth_controller.go @@ -35,7 +35,7 @@ type MeResponse struct { PasswordIsDefault bool `json:"password_is_default" example:"true"` } -// InitialPasswordResponse is returned by the one-time initial password API. +// InitialPasswordResponse is returned by the initial password API. type InitialPasswordResponse struct { Username string `json:"username" example:"admin"` Password string `json:"password" example:"a1b2c3d4e5f6"` @@ -84,16 +84,17 @@ func (c *BaseAdminController) Login(ctx echo.Context) error { }) } -// GetInitialPassword returns the one-time initial admin password. -// @Summary Get initial admin password (one-time) -// @Description Returns the initial random admin password once, then invalidates it. +// GetInitialPassword returns the initial admin password until it is cleared by +// a successful password change. +// @Summary Get initial admin password +// @Description Returns the initial random admin password until the admin password is changed. // @Tags Admin Auth // @Produce json // @Success 200 {object} response.ApiResponse{data=admin.InitialPasswordResponse} // @Failure 400 {object} response.ApiResponse // @Router /admin/api/v1/auth/init-password [get] func (c *BaseAdminController) GetInitialPassword(ctx echo.Context) error { - password, err := data.ConsumeInitialAdminPassword() + password, err := data.GetInitialAdminPassword() if err != nil { if errors.Is(err, data.ErrInitAdminPasswordAlreadyFetched) || errors.Is(err, data.ErrInitAdminPasswordUnavailable) { return c.FailJson(ctx, constant.InitialAdminPasswordErr) diff --git a/src/model/data/admin_user_data.go b/src/model/data/admin_user_data.go index 786827a..c9a7bbe 100644 --- a/src/model/data/admin_user_data.go +++ b/src/model/data/admin_user_data.go @@ -106,7 +106,7 @@ func initAdminPasswordState(plain string) error { { Group: mdb.SettingGroupSystem, Key: mdb.SettingKeyInitAdminPasswordFetched, Value: "false", Type: mdb.SettingTypeBool, - Description: "Whether initial admin password has been fetched", + Description: "Whether initial admin password plaintext has been cleared", }, { Group: mdb.SettingGroupSystem, Key: mdb.SettingKeyInitAdminPasswordChanged, @@ -138,56 +138,51 @@ func upsertSettingRow(tx *gorm.DB, row mdb.Setting) error { }).Create(&row).Error } -// ConsumeInitialAdminPassword returns the one-time initial admin password. -// After a successful read, the plaintext is deleted and cannot be fetched -// again. -func ConsumeInitialAdminPassword() (string, error) { - var password string - err := dao.Mdb.Transaction(func(tx *gorm.DB) error { - row := new(mdb.Setting) - if err := tx.Model(&mdb.Setting{}). - Where("`key` = ?", mdb.SettingKeyInitAdminPasswordPlain). - Limit(1). - Find(row).Error; err != nil { - return err - } - if row.ID == 0 || row.Value == "" { - var fetched mdb.Setting - if err := tx.Model(&mdb.Setting{}). - Where("`key` = ?", mdb.SettingKeyInitAdminPasswordFetched). - Limit(1). - Find(&fetched).Error; err != nil { - return err - } - if strings.EqualFold(strings.TrimSpace(fetched.Value), "true") { - return ErrInitAdminPasswordAlreadyFetched - } - return ErrInitAdminPasswordUnavailable - } - password = row.Value - res := tx.Unscoped().Where("`key` = ?", mdb.SettingKeyInitAdminPasswordPlain).Delete(&mdb.Setting{}) - if res.Error != nil { - return res.Error - } - if res.RowsAffected == 0 { - return ErrInitAdminPasswordAlreadyFetched - } - return upsertSettingRow(tx, mdb.Setting{ - Group: mdb.SettingGroupSystem, - Key: mdb.SettingKeyInitAdminPasswordFetched, - Value: "true", - Type: mdb.SettingTypeBool, - Description: "Whether initial admin password has been fetched", - }) - }) - if err != nil { +// GetInitialAdminPassword returns the initial admin password plaintext while +// it is still available. The plaintext remains readable until the admin +// password is changed, after which the stored plaintext is deleted. +func GetInitialAdminPassword() (string, error) { + row := new(mdb.Setting) + if err := dao.Mdb.Model(&mdb.Setting{}). + Where("`key` = ?", mdb.SettingKeyInitAdminPasswordPlain). + Limit(1). + Find(row).Error; err != nil { return "", err } - settingsCacheMu.Lock() - delete(settingsCache, mdb.SettingKeyInitAdminPasswordPlain) - settingsCache[mdb.SettingKeyInitAdminPasswordFetched] = "true" - settingsCacheMu.Unlock() - return password, nil + if row.ID != 0 && row.Value != "" { + return row.Value, nil + } + + var fetched mdb.Setting + if err := dao.Mdb.Model(&mdb.Setting{}). + Where("`key` = ?", mdb.SettingKeyInitAdminPasswordFetched). + Limit(1). + Find(&fetched).Error; err != nil { + return "", err + } + if strings.EqualFold(strings.TrimSpace(fetched.Value), "true") { + return "", ErrInitAdminPasswordAlreadyFetched + } + return "", ErrInitAdminPasswordUnavailable +} + +func clearInitialAdminPasswordPlain(tx *gorm.DB) error { + res := tx.Unscoped(). + Where("`key` = ?", mdb.SettingKeyInitAdminPasswordPlain). + Delete(&mdb.Setting{}) + if res.Error != nil { + return res.Error + } + if err := upsertSettingRow(tx, mdb.Setting{ + Group: mdb.SettingGroupSystem, + Key: mdb.SettingKeyInitAdminPasswordFetched, + Value: "true", + Type: mdb.SettingTypeBool, + Description: "Whether initial admin password plaintext has been cleared", + }); err != nil { + return err + } + return nil } // GetInitialAdminPasswordHashInfo returns the initial-password fingerprint @@ -250,7 +245,9 @@ func GetAdminUserByID(id uint64) (*mdb.AdminUser, error) { return u, err } -// UpdateAdminUserPassword rehashes and persists a new password. +// UpdateAdminUserPassword rehashes and persists a new password. When the +// change succeeds, the stored initial-password plaintext is deleted so it can +// no longer be fetched from the public bootstrap route. func UpdateAdminUserPassword(id uint64, newPlain string) error { hash, err := HashPassword(newPlain) if err != nil { @@ -293,6 +290,9 @@ func UpdateAdminUserPassword(id uint64, newPlain string) error { }); err != nil { return err } + if err := clearInitialAdminPasswordPlain(tx); err != nil { + return err + } changedCacheValue = changedValue return nil }) @@ -301,6 +301,8 @@ func UpdateAdminUserPassword(id uint64, newPlain string) error { } if changedCacheValue != "" { settingsCacheMu.Lock() + delete(settingsCache, mdb.SettingKeyInitAdminPasswordPlain) + settingsCache[mdb.SettingKeyInitAdminPasswordFetched] = "true" settingsCache[mdb.SettingKeyInitAdminPasswordChanged] = changedCacheValue settingsCacheMu.Unlock() } diff --git a/src/model/data/admin_user_data_test.go b/src/model/data/admin_user_data_test.go index 5672c67..d5d7e74 100644 --- a/src/model/data/admin_user_data_test.go +++ b/src/model/data/admin_user_data_test.go @@ -42,7 +42,7 @@ func TestUpsertSettingRowRestoresSoftDeletedSetting(t *testing.T) { } } -func TestConsumeInitialAdminPasswordHardDeletesPlaintext(t *testing.T) { +func TestGetInitialAdminPasswordKeepsPlaintext(t *testing.T) { cleanup := testutil.SetupTestDatabases(t) defer cleanup() @@ -51,14 +51,58 @@ func TestConsumeInitialAdminPasswordHardDeletesPlaintext(t *testing.T) { t.Fatalf("seed initial password state: %v", err) } - got, err := ConsumeInitialAdminPassword() + got, err := GetInitialAdminPassword() if err != nil { - t.Fatalf("consume initial password: %v", err) + t.Fatalf("get initial password: %v", err) } if got != password { t.Fatalf("password = %q, want %q", got, password) } + var count int64 + if err := dao.Mdb.Unscoped(). + Model(&mdb.Setting{}). + Where("`key` = ?", mdb.SettingKeyInitAdminPasswordPlain). + Count(&count).Error; err != nil { + t.Fatalf("count plaintext setting: %v", err) + } + if count != 1 { + t.Fatalf("plaintext setting rows after read = %d, want 1", count) + } + if GetSettingBool(mdb.SettingKeyInitAdminPasswordFetched, false) { + t.Fatal("expected fetched flag to stay false before password change") + } +} + +func TestUpdateAdminUserPasswordHardDeletesInitialPasswordPlaintext(t *testing.T) { + cleanup := testutil.SetupTestDatabases(t) + defer cleanup() + + const ( + oldPassword = "init-pass-plain" + newPassword = "new-password-123" + ) + if err := initAdminPasswordState(oldPassword); err != nil { + t.Fatalf("seed initial password state: %v", err) + } + + hash, err := HashPassword(oldPassword) + if err != nil { + t.Fatalf("hash password: %v", err) + } + user := &mdb.AdminUser{ + Username: defaultAdminUsername, + PasswordHash: hash, + Status: mdb.AdminUserStatusEnable, + } + if err := dao.Mdb.Create(user).Error; err != nil { + t.Fatalf("seed admin user: %v", err) + } + + if err := UpdateAdminUserPassword(uint64(user.ID), newPassword); err != nil { + t.Fatalf("update admin password: %v", err) + } + var count int64 if err := dao.Mdb.Unscoped(). Model(&mdb.Setting{}). @@ -67,10 +111,10 @@ func TestConsumeInitialAdminPasswordHardDeletesPlaintext(t *testing.T) { t.Fatalf("count plaintext setting: %v", err) } if count != 0 { - t.Fatalf("plaintext setting rows after consume = %d, want 0", count) + t.Fatalf("plaintext setting rows after password change = %d, want 0", count) } if !GetSettingBool(mdb.SettingKeyInitAdminPasswordFetched, false) { - t.Fatal("expected fetched flag to be true") + t.Fatal("expected fetched flag to be true after password change") } } diff --git a/src/route/admin_router_test.go b/src/route/admin_router_test.go index 7a83da6..5d0a0ae 100644 --- a/src/route/admin_router_test.go +++ b/src/route/admin_router_test.go @@ -290,8 +290,9 @@ func TestAdminChangePassword(t *testing.T) { } } -// TestAdminInitPasswordFlow verifies the one-time initial password endpoint -// and hash-based "password changed" detection flow. +// TestAdminInitPasswordFlow verifies that the initial password stays readable +// until the admin password is changed, along with the hash-based +// "password changed" detection flow. func TestAdminInitPasswordFlow(t *testing.T) { e := setupTestEnv(t) const initPassword = "init-pass-123456" @@ -336,23 +337,18 @@ func TestAdminInitPasswordFlow(t *testing.T) { Count(&plaintextRows).Error; err != nil { t.Fatalf("count init password plaintext rows: %v", err) } - if plaintextRows != 0 { - t.Fatalf("expected init password plaintext to be hard-deleted, got %d rows", plaintextRows) + if plaintextRows != 1 { + t.Fatalf("expected init password plaintext to remain available, got %d rows", plaintextRows) } recFetch2 := doGet(e, "/admin/api/v1/auth/init-password") - if recFetch2.Code != http.StatusBadRequest { - t.Fatalf("second fetch should fail with 400, got %d body=%s", recFetch2.Code, recFetch2.Body.String()) + respFetch2 := assertOK(t, recFetch2) + fetchData2, _ := respFetch2["data"].(map[string]interface{}) + if fetchData2["username"] != testAdminUsername { + t.Fatalf("expected second fetch username=%s, got %v", testAdminUsername, fetchData2["username"]) } - var respFetch2 map[string]interface{} - if err := json.Unmarshal(recFetch2.Body.Bytes(), &respFetch2); err != nil { - t.Fatalf("unmarshal second fetch response: %v", err) - } - if got := int(respFetch2["status_code"].(float64)); got != 10040 { - t.Fatalf("second fetch status_code = %d, want 10040; response=%v", got, respFetch2) - } - if got, _ := respFetch2["message"].(string); got != constant.Errno[10040] { - t.Fatalf("second fetch message = %q, want %q; response=%v", got, constant.Errno[10040], respFetch2) + if fetchData2["password"] != initPassword { + t.Fatalf("expected second fetch password %s, got %v", initPassword, fetchData2["password"]) } token := adminLogin(t, e, testAdminUsername, initPassword) @@ -377,6 +373,30 @@ func TestAdminInitPasswordFlow(t *testing.T) { t.Fatalf("expected password_changed=true after change, got %v", got) } + recFetch3 := doGet(e, "/admin/api/v1/auth/init-password") + if recFetch3.Code != http.StatusBadRequest { + t.Fatalf("fetch after password change should fail with 400, got %d body=%s", recFetch3.Code, recFetch3.Body.String()) + } + var respFetch3 map[string]interface{} + if err := json.Unmarshal(recFetch3.Body.Bytes(), &respFetch3); err != nil { + t.Fatalf("unmarshal fetch-after-change response: %v", err) + } + if got := int(respFetch3["status_code"].(float64)); got != 10040 { + t.Fatalf("fetch after password change status_code = %d, want 10040; response=%v", got, respFetch3) + } + if got, _ := respFetch3["message"].(string); got != constant.Errno[10040] { + t.Fatalf("fetch after password change message = %q, want %q; response=%v", got, constant.Errno[10040], respFetch3) + } + if err := dao.Mdb.Unscoped(). + Model(&mdb.Setting{}). + Where("`key` = ?", mdb.SettingKeyInitAdminPasswordPlain). + Count(&plaintextRows).Error; err != nil { + t.Fatalf("count init password plaintext rows after change: %v", err) + } + if plaintextRows != 0 { + t.Fatalf("expected init password plaintext to be hard-deleted after change, got %d rows", plaintextRows) + } + recMe2 := doGetAdmin(e, "/admin/api/v1/auth/me", token) respMe2 := assertOK(t, recMe2) meData2, _ := respMe2["data"].(map[string]interface{}) From 7d09adff20e967a19dfed8abe5b3184d52c58151 Mon Sep 17 00:00:00 2001 From: line-6000 <154492442+line-6000@users.noreply.github.com> Date: Mon, 29 Jun 2026 13:58:16 +0800 Subject: [PATCH 4/8] feat: return initial admin password from install flow --- src/bootstrap/bootstrap.go | 2 - src/controller/admin/auth_controller.go | 31 ---- src/install/installer.go | 176 +++++++++++++++---- src/install/installer_test.go | 223 ++++++++++++++++++++---- src/middleware/check_jwt.go | 3 + src/model/dao/mdb_table_init.go | 6 + src/model/data/admin_user_data.go | 117 +++++++++---- src/model/data/admin_user_data_test.go | 101 +++++++++++ src/route/admin_router_test.go | 47 +---- src/route/router.go | 1 - 10 files changed, 533 insertions(+), 174 deletions(-) diff --git a/src/bootstrap/bootstrap.go b/src/bootstrap/bootstrap.go index a1ef46a..7148587 100644 --- a/src/bootstrap/bootstrap.go +++ b/src/bootstrap/bootstrap.go @@ -55,8 +55,6 @@ func InitApp() { color.Yellow.Println("║ Default admin account created. Save these credentials now. ║") color.Yellow.Printf("║ Username: %-54s║\n", "admin") color.Yellow.Printf("║ Password: %-54s║\n", initialPassword) - color.Yellow.Println("║ The initial password API remains available until password change. ║") - color.Yellow.Println("║ GET /admin/api/v1/auth/init-password ║") color.Yellow.Println("╚════════════════════════════════════════════════════════════════════════╝") } if _, err := appjwt.EnsureSecret(); err != nil { diff --git a/src/controller/admin/auth_controller.go b/src/controller/admin/auth_controller.go index 1779e66..e74ea0f 100644 --- a/src/controller/admin/auth_controller.go +++ b/src/controller/admin/auth_controller.go @@ -1,8 +1,6 @@ package admin import ( - "errors" - "github.com/GMWalletApp/epusdt/model/data" "github.com/GMWalletApp/epusdt/model/mdb" "github.com/GMWalletApp/epusdt/util/constant" @@ -35,12 +33,6 @@ type MeResponse struct { PasswordIsDefault bool `json:"password_is_default" example:"true"` } -// InitialPasswordResponse is returned by the initial password API. -type InitialPasswordResponse struct { - Username string `json:"username" example:"admin"` - Password string `json:"password" example:"a1b2c3d4e5f6"` -} - // Login verifies credentials, stamps last_login_at, returns a signed JWT. // @Summary Admin login // @Description Verify credentials and return a signed JWT token @@ -84,29 +76,6 @@ func (c *BaseAdminController) Login(ctx echo.Context) error { }) } -// GetInitialPassword returns the initial admin password until it is cleared by -// a successful password change. -// @Summary Get initial admin password -// @Description Returns the initial random admin password until the admin password is changed. -// @Tags Admin Auth -// @Produce json -// @Success 200 {object} response.ApiResponse{data=admin.InitialPasswordResponse} -// @Failure 400 {object} response.ApiResponse -// @Router /admin/api/v1/auth/init-password [get] -func (c *BaseAdminController) GetInitialPassword(ctx echo.Context) error { - password, err := data.GetInitialAdminPassword() - if err != nil { - if errors.Is(err, data.ErrInitAdminPasswordAlreadyFetched) || errors.Is(err, data.ErrInitAdminPasswordUnavailable) { - return c.FailJson(ctx, constant.InitialAdminPasswordErr) - } - return c.FailJson(ctx, err) - } - return c.SucJson(ctx, InitialPasswordResponse{ - Username: "admin", - Password: password, - }) -} - // GetInitialPasswordHash returns the initial-password fingerprint so the // frontend can warn until the password is changed. // @Summary Get initial admin password hash diff --git a/src/install/installer.go b/src/install/installer.go index 15f8fa9..58f75a2 100644 --- a/src/install/installer.go +++ b/src/install/installer.go @@ -3,23 +3,25 @@ // When the .env config file is absent (or has install=true) the HTTP start // command calls RunInstallServer, which listens on the same address the main // server will eventually use (default :8000) and mounts two JSON endpoints -// under /install consumed by the frontend install UI: +// consumed by the frontend install UI: // -// GET /install/defaults — default field values for the form -// POST /install — validate + write .env, then shut down +// GET /api/install/defaults — default field values for the form +// POST /api/install — validate + initialize install state, then shut down // // The HTTP listen address is submitted as two separate fields (http_bind_addr // and http_bind_port) and combined internally as "ADDR:PORT" before writing // the http_listen key in .env. This makes the form easier for users who only // want to change the port without touching the bind address. // -// Once the .env is written the install server stops and normal bootstrap -// proceeds on the same port without a restart. +// Once install state is initialized and the .env is finalized with +// install=false, the install server stops and normal bootstrap proceeds on the +// same port without a restart. package install import ( "bytes" "context" + "errors" "fmt" "net/http" "os" @@ -28,10 +30,15 @@ import ( "text/template" "time" + "github.com/GMWalletApp/epusdt/config" + "github.com/GMWalletApp/epusdt/model/dao" + "github.com/GMWalletApp/epusdt/model/data" luluHttp "github.com/GMWalletApp/epusdt/util/http" + appLog "github.com/GMWalletApp/epusdt/util/log" "github.com/gookit/color" "github.com/labstack/echo/v4" "github.com/labstack/echo/v4/middleware" + "go.uber.org/zap" ) // DefaultInstallAddr is the listen address used by the install API. @@ -59,6 +66,14 @@ type InstallRequest struct { OrderNoticeMaxRetry int `json:"order_notice_max_retry" form:"order_notice_max_retry" example:"1"` } +// InstallSubmitResponse is returned when the install request succeeds. +type InstallSubmitResponse struct { + // Completion message for the install request. + Message string `json:"message" example:"install complete, starting server…"` + // Initial admin password, returned only while the plaintext is still available. + InitPassword string `json:"init_password,omitempty" example:"a1b2c3d4e5f6"` +} + // InstallDefaults returns sensible default values for the install form. func InstallDefaults() InstallRequest { return InstallRequest{ @@ -149,28 +164,20 @@ func (h *installHandler) GetDefaults(c echo.Context) error { return c.JSON(http.StatusOK, InstallDefaults()) } -// Submit validates the install payload, writes the .env file, and signals -// the install server to shut down so the main bootstrap can proceed. +// Submit validates the install payload, writes the .env file, initializes the +// minimum DB/admin state, and signals the install server to shut down so the +// main bootstrap can proceed. // http_bind_addr and http_bind_port are combined as "ADDR:PORT" to produce // the http_listen config key (e.g. 0.0.0.0:8000). // // @Summary Install — submit configuration -// @Description Validates the submitted configuration and writes the .env file. -// -// http_bind_addr + http_bind_port are joined internally as "ADDR:PORT" for -// the http_listen config key (defaults: 127.0.0.1 and 8000 respectively). -// http_bind_port must be in the range 1–65535 if provided. -// app_uri is required. All other fields are optional and fall back to -// the defaults returned by GET /api/install/defaults. -// Sets install=false in the written .env, then shuts down the install -// server so that normal application bootstrap starts on the same port. -// After installation completes this route is no longer served. -// +// @Description Validates the submitted configuration, writes install=true, performs the minimum DB setup needed to ensure the default admin exists, optionally returns init_password, then rewrites install=false before shutting down the install server. +// @Description http_bind_addr + http_bind_port are joined internally as "ADDR:PORT" for http_listen. app_uri is required; other fields fall back to GET /api/install/defaults. // @Tags Install // @Accept json // @Produce json // @Param body body InstallRequest true "Install configuration" -// @Success 200 {object} map[string]string "message" +// @Success 200 {object} InstallSubmitResponse // @Failure 400 {object} map[string]string "error" // @Failure 500 {object} map[string]string "error" // @Router /api/install [post] @@ -210,16 +217,26 @@ func (h *installHandler) Submit(c echo.Context) error { req.OrderNoticeMaxRetry = d.OrderNoticeMaxRetry } - if err := writeEnvFile(h.envFilePath, req); err != nil { + if err := writeEnvFile(h.envFilePath, req, true); err != nil { + return c.JSON(http.StatusInternalServerError, map[string]interface{}{"error": err.Error()}) + } + initPassword, err := initializeInstallState(h.envFilePath) + if err != nil { + return c.JSON(http.StatusInternalServerError, map[string]interface{}{"error": err.Error()}) + } + if err := writeEnvFile(h.envFilePath, req, false); err != nil { return c.JSON(http.StatusInternalServerError, map[string]interface{}{"error": err.Error()}) } go func() { close(h.done) }() - return c.JSON(http.StatusOK, map[string]interface{}{"message": "install complete, starting server…"}) + return c.JSON(http.StatusOK, InstallSubmitResponse{ + Message: "install complete, starting server…", + InitPassword: initPassword, + }) } -// RunInstallServer starts the install REST API on listenAddr (default :8000) -// under the /install path and blocks until the .env file has been written. +// RunInstallServer starts the install UI and REST API on listenAddr +// (default :8000), then blocks until installation has been finalized. // The caller should then proceed with normal app initialisation (bootstrap.InitApp). func RunInstallServer(listenAddr, envFilePath string) { if listenAddr == "" { @@ -264,13 +281,18 @@ var formControlledKeys = map[string]bool{ "install": true, } -// writeEnvFile renders and writes a minimal .env file. +type envTemplateData struct { + *InstallRequest + InstallValue string +} + +// writeEnvFile renders and atomically writes a minimal .env file. // If the file already exists, values for keys that are NOT controlled by the // install form are preserved from the existing file so that operator-specific // settings (tg_bot_token, db_type, etc.) survive a re-install. // Keys that the form controls (app_uri, http_listen, …) always use the // submitted values. -func writeEnvFile(path string, r *InstallRequest) error { +func writeEnvFile(path string, r *InstallRequest, installEnabled bool) error { // Collect existing non-empty key→value pairs for non-form keys. existingValues := map[string]string{} if data, err := os.ReadFile(path); err == nil { @@ -295,7 +317,14 @@ func writeEnvFile(path string, r *InstallRequest) error { // Render the template into a buffer first. var buf bytes.Buffer - if err := envTemplate.Execute(&buf, r); err != nil { + renderData := envTemplateData{ + InstallRequest: r, + InstallValue: "false", + } + if installEnabled { + renderData.InstallValue = "true" + } + if err := envTemplate.Execute(&buf, renderData); err != nil { return fmt.Errorf("render env template: %w", err) } @@ -315,13 +344,96 @@ func writeEnvFile(path string, r *InstallRequest) error { } } - f, err := os.OpenFile(path, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0o600) + f, err := os.CreateTemp(filepath.Dir(path), ".env.tmp.*") if err != nil { - return fmt.Errorf("open config file: %w", err) + return fmt.Errorf("open temp config file: %w", err) + } + tempPath := f.Name() + defer func() { + _ = os.Remove(tempPath) + }() + if _, err = fmt.Fprint(f, strings.Join(lines, "\n")); err != nil { + _ = f.Close() + return err + } + if err = f.Close(); err != nil { + return err + } + if err = os.Rename(tempPath, path); err != nil { + return fmt.Errorf("replace config file: %w", err) + } + return nil +} + +func initializeInstallState(envFilePath string) (string, error) { + if err := initInstallConfig(envFilePath); err != nil { + return "", err + } + if err := initInstallDatabases(); err != nil { + closeInstallDatabases() + return "", err + } + defer closeInstallDatabases() + + password, created, err := data.EnsureDefaultAdmin() + if err != nil { + return "", err + } + if created { + password = strings.TrimSpace(password) + if password == "" { + return "", errors.New("default admin created without initial password") + } + return password, nil + } + + password, err = data.GetInitialAdminPassword() + if err != nil { + if errors.Is(err, data.ErrInitAdminPasswordUnavailable) || errors.Is(err, data.ErrInitAdminPasswordAlreadyFetched) { + return "", nil + } + return "", err + } + return strings.TrimSpace(password), nil +} + +func initInstallConfig(envFilePath string) (err error) { + defer func() { + if recovered := recover(); recovered != nil { + err = fmt.Errorf("init config: %v", recovered) + } + }() + config.SetConfigPath(envFilePath) + config.Init() + return nil +} + +func initInstallDatabases() error { + if appLog.Sugar == nil { + appLog.Sugar = zap.NewNop().Sugar() + } + if err := dao.DBInit(); err != nil { + return fmt.Errorf("init store db: %w", err) + } + if err := dao.RuntimeInit(); err != nil { + return fmt.Errorf("init runtime db: %w", err) + } + return nil +} + +func closeInstallDatabases() { + if dao.RuntimeDB != nil { + if db, err := dao.RuntimeDB.DB(); err == nil { + _ = db.Close() + } + dao.RuntimeDB = nil + } + if dao.Mdb != nil { + if db, err := dao.Mdb.DB(); err == nil { + _ = db.Close() + } + dao.Mdb = nil } - defer f.Close() - _, err = fmt.Fprint(f, strings.Join(lines, "\n")) - return err } var envTemplate = template.Must(template.New("env").Parse(`app_name={{.AppName}} @@ -360,5 +472,5 @@ order_notice_max_retry={{.OrderNoticeMaxRetry}} api_rate_url= # Set to true to re-run the install wizard on next startup. -install=false +install={{.InstallValue}} `)) diff --git a/src/install/installer_test.go b/src/install/installer_test.go index 48d1589..5a0b72e 100644 --- a/src/install/installer_test.go +++ b/src/install/installer_test.go @@ -10,9 +10,89 @@ import ( "testing" "time" + "github.com/GMWalletApp/epusdt/config" + "github.com/GMWalletApp/epusdt/model/dao" + "github.com/GMWalletApp/epusdt/model/data" "github.com/labstack/echo/v4" + "github.com/spf13/viper" ) +func resetInstallTestState(t *testing.T) { + t.Helper() + + closeInstallDatabases() + dao.ResetMdbTableInitForTest() + config.SetConfigPath("") + viper.Reset() + + t.Cleanup(func() { + closeInstallDatabases() + dao.ResetMdbTableInitForTest() + config.SetConfigPath("") + viper.Reset() + }) +} + +func newInstallTestAPI(envPath string) (*echo.Echo, *installHandler) { + h := &installHandler{envFilePath: envPath, done: make(chan struct{})} + e := echo.New() + e.POST("/install", h.Submit) + return e, h +} + +func submitInstallRequest(t *testing.T, e *echo.Echo, payload string) *httptest.ResponseRecorder { + t.Helper() + + req := httptest.NewRequest(http.MethodPost, "/install", strings.NewReader(payload)) + req.Header.Set("Content-Type", "application/json") + rec := httptest.NewRecorder() + e.ServeHTTP(rec, req) + return rec +} + +func decodeBody(t *testing.T, rec *httptest.ResponseRecorder) map[string]interface{} { + t.Helper() + + var body map[string]interface{} + if err := json.Unmarshal(rec.Body.Bytes(), &body); err != nil { + t.Fatalf("decode body: %v", err) + } + return body +} + +func assertDoneClosed(t *testing.T, done <-chan struct{}) { + t.Helper() + + select { + case <-done: + case <-time.After(500 * time.Millisecond): + t.Fatal("handler did not close done channel within timeout") + } +} + +func changeInstalledAdminPassword(t *testing.T, envPath, newPassword string) { + t.Helper() + + if err := initInstallConfig(envPath); err != nil { + t.Fatalf("reopen install config: %v", err) + } + if err := initInstallDatabases(); err != nil { + t.Fatalf("reopen install databases: %v", err) + } + defer closeInstallDatabases() + + user, err := data.GetAdminUserByUsername("admin") + if err != nil { + t.Fatalf("load admin user: %v", err) + } + if user.ID == 0 { + t.Fatal("expected seeded admin user") + } + if err := data.UpdateAdminUserPassword(uint64(user.ID), newPassword); err != nil { + t.Fatalf("change admin password: %v", err) + } +} + func TestInstallDefaults(t *testing.T) { d := InstallDefaults() if d.AppName != "epusdt" { @@ -43,7 +123,7 @@ func TestWriteEnvFile(t *testing.T) { OrderExpirationTime: 15, OrderNoticeMaxRetry: 3, } - if err := writeEnvFile(path, req); err != nil { + if err := writeEnvFile(path, req, false); err != nil { t.Fatalf("writeEnvFile: %v", err) } @@ -144,29 +224,30 @@ func TestInstallServerServesSPAOnInstallRoute(t *testing.T) { } } -func TestInstallAPISubmit(t *testing.T) { +func TestInstallAPISubmitReturnsInitialPassword(t *testing.T) { + resetInstallTestState(t) + dir := t.TempDir() envPath := filepath.Join(dir, ".env") - h := &installHandler{envFilePath: envPath, done: make(chan struct{})} - e := echo.New() - e.POST("/install", h.Submit) + e, h := newInstallTestAPI(envPath) payload := `{"app_name":"testapp","app_uri":"http://10.0.0.1:8000","http_bind_addr":"0.0.0.0","http_bind_port":8000,"order_expiration_time":10,"order_notice_max_retry":1}` - req := httptest.NewRequest(http.MethodPost, "/install", strings.NewReader(payload)) - req.Header.Set("Content-Type", "application/json") - rec := httptest.NewRecorder() - e.ServeHTTP(rec, req) + rec := submitInstallRequest(t, e, payload) if rec.Code != http.StatusOK { t.Fatalf("status = %d, want 200; body: %s", rec.Code, rec.Body.String()) } - // done channel should be closed after successful submit - select { - case <-h.done: - case <-time.After(500 * time.Millisecond): - t.Fatal("handler did not close done channel within timeout") + body := decodeBody(t, rec) + if got, _ := body["message"].(string); got == "" { + t.Fatalf("expected success message, got body=%v", body) } + initPassword, _ := body["init_password"].(string) + if strings.TrimSpace(initPassword) == "" { + t.Fatalf("expected non-empty init_password, got body=%v", body) + } + assertDoneClosed(t, h.done) + data, err := os.ReadFile(envPath) if err != nil { t.Fatalf("env file not written: %v", err) @@ -178,20 +259,107 @@ func TestInstallAPISubmit(t *testing.T) { if !strings.Contains(content, "http_listen=0.0.0.0:8000") { t.Errorf("env file missing http_listen; content:\n%s", content) } + if !strings.Contains(content, "install=false") { + t.Errorf("env file missing install=false; content:\n%s", content) + } +} + +func TestInstallAPISubmitRepeatInstallReturnsSamePasswordWhilePlaintextExists(t *testing.T) { + resetInstallTestState(t) + + dir := t.TempDir() + envPath := filepath.Join(dir, ".env") + payload := `{"app_name":"testapp","app_uri":"http://10.0.0.1:8000","http_bind_addr":"0.0.0.0","http_bind_port":8000,"order_expiration_time":10,"order_notice_max_retry":1}` + + e1, h1 := newInstallTestAPI(envPath) + rec1 := submitInstallRequest(t, e1, payload) + if rec1.Code != http.StatusOK { + t.Fatalf("first install status = %d, want 200; body: %s", rec1.Code, rec1.Body.String()) + } + body1 := decodeBody(t, rec1) + password1, _ := body1["init_password"].(string) + if strings.TrimSpace(password1) == "" { + t.Fatalf("expected first init_password, got body=%v", body1) + } + assertDoneClosed(t, h1.done) + + e2, h2 := newInstallTestAPI(envPath) + rec2 := submitInstallRequest(t, e2, payload) + if rec2.Code != http.StatusOK { + t.Fatalf("second install status = %d, want 200; body: %s", rec2.Code, rec2.Body.String()) + } + body2 := decodeBody(t, rec2) + password2, _ := body2["init_password"].(string) + if password2 != password1 { + t.Fatalf("expected repeat install to return same init_password %q, got %q", password1, password2) + } + assertDoneClosed(t, h2.done) +} + +func TestInstallAPISubmitRepeatInstallOmitsPasswordAfterPasswordChange(t *testing.T) { + resetInstallTestState(t) + + dir := t.TempDir() + envPath := filepath.Join(dir, ".env") + payload := `{"app_name":"testapp","app_uri":"http://10.0.0.1:8000","http_bind_addr":"0.0.0.0","http_bind_port":8000,"order_expiration_time":10,"order_notice_max_retry":1}` + + e1, h1 := newInstallTestAPI(envPath) + rec1 := submitInstallRequest(t, e1, payload) + if rec1.Code != http.StatusOK { + t.Fatalf("first install status = %d, want 200; body: %s", rec1.Code, rec1.Body.String()) + } + assertDoneClosed(t, h1.done) + + changeInstalledAdminPassword(t, envPath, "new-password-456") + + e2, h2 := newInstallTestAPI(envPath) + rec2 := submitInstallRequest(t, e2, payload) + if rec2.Code != http.StatusOK { + t.Fatalf("repeat install status = %d, want 200; body: %s", rec2.Code, rec2.Body.String()) + } + body2 := decodeBody(t, rec2) + if got, ok := body2["init_password"]; ok { + t.Fatalf("expected init_password to be omitted after password change, got %v", got) + } + if got, _ := body2["message"].(string); got == "" { + t.Fatalf("expected success message, got body=%v", body2) + } + assertDoneClosed(t, h2.done) +} + +func TestInstallAPISubmitInitFailureKeepsInstallMode(t *testing.T) { + resetInstallTestState(t) + + dir := t.TempDir() + envPath := filepath.Join(dir, ".env") + + e, h := newInstallTestAPI(envPath) + payload := `{"app_name":"testapp","app_uri":"http://10.0.0.1:8000","http_bind_addr":"0.0.0.0","http_bind_port":8000,"runtime_root_path":"/dev/null/runtime","order_expiration_time":10,"order_notice_max_retry":1}` + rec := submitInstallRequest(t, e, payload) + if rec.Code != http.StatusInternalServerError { + t.Fatalf("status = %d, want 500; body: %s", rec.Code, rec.Body.String()) + } + select { + case <-h.done: + t.Fatal("handler should not close done channel on init failure") + case <-time.After(100 * time.Millisecond): + } + contentBytes, err := os.ReadFile(envPath) + if err != nil { + t.Fatalf("read env after init failure: %v", err) + } + content := string(contentBytes) + if !strings.Contains(content, "install=true") { + t.Fatalf("expected env to keep install=true after failure; content:\n%s", content) + } } func TestInstallAPISubmitMissingURI(t *testing.T) { dir := t.TempDir() envPath := filepath.Join(dir, ".env") - h := &installHandler{envFilePath: envPath, done: make(chan struct{})} - e := echo.New() - e.POST("/install", h.Submit) - - req := httptest.NewRequest(http.MethodPost, "/install", strings.NewReader(`{"app_name":"x"}`)) - req.Header.Set("Content-Type", "application/json") - rec := httptest.NewRecorder() - e.ServeHTTP(rec, req) + e, _ := newInstallTestAPI(envPath) + rec := submitInstallRequest(t, e, `{"app_name":"x"}`) if rec.Code != http.StatusBadRequest { t.Fatalf("status = %d, want 400", rec.Code) @@ -205,15 +373,8 @@ func TestInstallAPISubmitInvalidPort(t *testing.T) { dir := t.TempDir() envPath := filepath.Join(dir, ".env") - h := &installHandler{envFilePath: envPath, done: make(chan struct{})} - e := echo.New() - e.POST("/install", h.Submit) - - payload := `{"app_uri":"http://example.com","http_bind_port":99999}` - req := httptest.NewRequest(http.MethodPost, "/install", strings.NewReader(payload)) - req.Header.Set("Content-Type", "application/json") - rec := httptest.NewRecorder() - e.ServeHTTP(rec, req) + e, _ := newInstallTestAPI(envPath) + rec := submitInstallRequest(t, e, `{"app_uri":"http://example.com","http_bind_port":99999}`) if rec.Code != http.StatusBadRequest { t.Fatalf("status = %d, want 400; body: %s", rec.Code, rec.Body.String()) diff --git a/src/middleware/check_jwt.go b/src/middleware/check_jwt.go index 0149bb5..19556a1 100644 --- a/src/middleware/check_jwt.go +++ b/src/middleware/check_jwt.go @@ -27,6 +27,9 @@ const ( func CheckAdminJWT() echo.MiddlewareFunc { return func(next echo.HandlerFunc) echo.HandlerFunc { return func(ctx echo.Context) error { + if ctx.Path() == "" { + return next(ctx) + } token, err := adminTokenFromAuthorization(ctx.Request().Header.Get("Authorization")) if err != nil { return err diff --git a/src/model/dao/mdb_table_init.go b/src/model/dao/mdb_table_init.go index 1512bf9..b7a2fcf 100644 --- a/src/model/dao/mdb_table_init.go +++ b/src/model/dao/mdb_table_init.go @@ -14,6 +14,12 @@ import ( var once sync.Once +// ResetMdbTableInitForTest resets the install/startup migration guard so tests +// can exercise fresh temporary databases in the same process. +func ResetMdbTableInitForTest() { + once = sync.Once{} +} + // MdbTableInit performs AutoMigrate for all primary DB tables and seeds // the minimum static rows: chains, chain tokens, default settings, and // a Telegram notification channel migrated from legacy settings keys. diff --git a/src/model/data/admin_user_data.go b/src/model/data/admin_user_data.go index c9a7bbe..026437b 100644 --- a/src/model/data/admin_user_data.go +++ b/src/model/data/admin_user_data.go @@ -40,39 +40,47 @@ type InitialAdminPasswordHashInfo struct { // can print it to the console. Idempotent — subsequent calls return // ("", false, nil). func EnsureDefaultAdmin() (password string, created bool, err error) { - if err := purgeDeletedInitialAdminPasswordPlain(); err != nil { + if err := dao.Mdb.Transaction(func(tx *gorm.DB) error { + if err := purgeDeletedInitialAdminPasswordPlainTx(tx); err != nil { + return err + } + var count int64 + if err := tx.Model(&mdb.AdminUser{}).Count(&count).Error; err != nil { + return err + } + if count > 0 { + return nil + } + + password = randomAdminPassword() + hash, err := HashPassword(password) + if err != nil { + return err + } + user := &mdb.AdminUser{ + Username: defaultAdminUsername, + PasswordHash: hash, + Status: mdb.AdminUserStatusEnable, + } + if err := tx.Create(user).Error; err != nil { + return err + } + if err := initAdminPasswordStateTx(tx, password); err != nil { + return err + } + created = true + return nil + }); err != nil { return "", false, err } - var count int64 - if err := dao.Mdb.Model(&mdb.AdminUser{}).Count(&count).Error; err != nil { - return "", false, err + if created { + cacheInitialAdminPasswordState(password) } - if count > 0 { - return "", false, nil - } - password = randomAdminPassword() - hash, err := HashPassword(password) - if err != nil { - return "", false, err - } - user := &mdb.AdminUser{ - Username: defaultAdminUsername, - PasswordHash: hash, - Status: mdb.AdminUserStatusEnable, - } - if err := dao.Mdb.Create(user).Error; err != nil { - return "", false, err - } - if err := initAdminPasswordState(password); err != nil { - // Account was already created; surface both for visibility while - // preserving created=true and password for emergency fallback. - return password, true, err - } - return password, true, nil + return password, created, nil } -func purgeDeletedInitialAdminPasswordPlain() error { - return dao.Mdb.Unscoped(). +func purgeDeletedInitialAdminPasswordPlainTx(tx *gorm.DB) error { + return tx.Unscoped(). Where("`key` = ? AND deleted_at IS NOT NULL", mdb.SettingKeyInitAdminPasswordPlain). Delete(&mdb.Setting{}).Error } @@ -91,12 +99,20 @@ func HashInitialAdminPassword(plain string) string { } func initAdminPasswordState(plain string) error { + if err := initAdminPasswordStateTx(dao.Mdb, plain); err != nil { + return err + } + cacheInitialAdminPasswordState(plain) + return nil +} + +func initAdminPasswordStateTx(tx *gorm.DB, plain string) error { hash := HashInitialAdminPassword(plain) settings := []mdb.Setting{ { Group: mdb.SettingGroupSystem, Key: mdb.SettingKeyInitAdminPasswordPlain, Value: plain, Type: mdb.SettingTypeString, - Description: "One-time readable initial admin password", + Description: "Readable initial admin password until password change", }, { Group: mdb.SettingGroupSystem, Key: mdb.SettingKeyInitAdminPasswordHash, @@ -115,18 +131,21 @@ func initAdminPasswordState(plain string) error { }, } for _, row := range settings { - if err := upsertSettingRow(dao.Mdb, row); err != nil { + if err := upsertSettingRow(tx, row); err != nil { return err } } - // Keep in-process cache coherent for the current process. + return nil +} + +func cacheInitialAdminPasswordState(plain string) { + hash := HashInitialAdminPassword(plain) settingsCacheMu.Lock() settingsCache[mdb.SettingKeyInitAdminPasswordPlain] = plain settingsCache[mdb.SettingKeyInitAdminPasswordHash] = hash settingsCache[mdb.SettingKeyInitAdminPasswordFetched] = "false" settingsCache[mdb.SettingKeyInitAdminPasswordChanged] = "false" settingsCacheMu.Unlock() - return nil } func upsertSettingRow(tx *gorm.DB, row mdb.Setting) error { @@ -247,12 +266,13 @@ func GetAdminUserByID(id uint64) (*mdb.AdminUser, error) { // UpdateAdminUserPassword rehashes and persists a new password. When the // change succeeds, the stored initial-password plaintext is deleted so it can -// no longer be fetched from the public bootstrap route. +// no longer be returned by the install flow. func UpdateAdminUserPassword(id uint64, newPlain string) error { hash, err := HashPassword(newPlain) if err != nil { return err } + clearedPlaintext := false changedCacheValue := "" err = dao.Mdb.Transaction(func(tx *gorm.DB) error { if err := tx.Model(&mdb.AdminUser{}). @@ -261,8 +281,18 @@ func UpdateAdminUserPassword(id uint64, newPlain string) error { return err } + var plainRow mdb.Setting + if err := tx.Model(&mdb.Setting{}). + Where("`key` = ?", mdb.SettingKeyInitAdminPasswordPlain). + Limit(1). + Find(&plainRow).Error; err != nil { + return err + } + hasPlaintext := plainRow.ID != 0 && strings.TrimSpace(plainRow.Value) != "" + // Old installs may not have initial-password metadata; skip in - // that case to keep password updates backward compatible. + // that case to keep password_changed backward compatible, but still + // clear any leftover plaintext if it exists. var initHashRow mdb.Setting if err := tx.Model(&mdb.Setting{}). Where("`key` = ?", mdb.SettingKeyInitAdminPasswordHash). @@ -272,6 +302,12 @@ func UpdateAdminUserPassword(id uint64, newPlain string) error { } initHash := strings.TrimSpace(initHashRow.Value) if initHash == "" { + if hasPlaintext { + if err := clearInitialAdminPasswordPlain(tx); err != nil { + return err + } + clearedPlaintext = true + } return nil } @@ -293,17 +329,22 @@ func UpdateAdminUserPassword(id uint64, newPlain string) error { if err := clearInitialAdminPasswordPlain(tx); err != nil { return err } + clearedPlaintext = true changedCacheValue = changedValue return nil }) if err != nil { return err } - if changedCacheValue != "" { + if clearedPlaintext || changedCacheValue != "" { settingsCacheMu.Lock() - delete(settingsCache, mdb.SettingKeyInitAdminPasswordPlain) - settingsCache[mdb.SettingKeyInitAdminPasswordFetched] = "true" - settingsCache[mdb.SettingKeyInitAdminPasswordChanged] = changedCacheValue + if clearedPlaintext { + delete(settingsCache, mdb.SettingKeyInitAdminPasswordPlain) + settingsCache[mdb.SettingKeyInitAdminPasswordFetched] = "true" + } + if changedCacheValue != "" { + settingsCache[mdb.SettingKeyInitAdminPasswordChanged] = changedCacheValue + } settingsCacheMu.Unlock() } return nil diff --git a/src/model/data/admin_user_data_test.go b/src/model/data/admin_user_data_test.go index d5d7e74..49b8aee 100644 --- a/src/model/data/admin_user_data_test.go +++ b/src/model/data/admin_user_data_test.go @@ -118,6 +118,55 @@ func TestUpdateAdminUserPasswordHardDeletesInitialPasswordPlaintext(t *testing.T } } +func TestUpdateAdminUserPasswordHardDeletesPlaintextWithoutHashMetadata(t *testing.T) { + cleanup := testutil.SetupTestDatabases(t) + defer cleanup() + + const ( + oldPassword = "legacy-init-pass" + newPassword = "new-password-456" + ) + if err := upsertSettingRow(dao.Mdb, mdb.Setting{ + Group: mdb.SettingGroupSystem, + Key: mdb.SettingKeyInitAdminPasswordPlain, + Value: oldPassword, + Type: mdb.SettingTypeString, + }); err != nil { + t.Fatalf("seed plaintext setting: %v", err) + } + + hash, err := HashPassword(oldPassword) + if err != nil { + t.Fatalf("hash password: %v", err) + } + user := &mdb.AdminUser{ + Username: defaultAdminUsername, + PasswordHash: hash, + Status: mdb.AdminUserStatusEnable, + } + if err := dao.Mdb.Create(user).Error; err != nil { + t.Fatalf("seed admin user: %v", err) + } + + if err := UpdateAdminUserPassword(uint64(user.ID), newPassword); err != nil { + t.Fatalf("update admin password: %v", err) + } + + var count int64 + if err := dao.Mdb.Unscoped(). + Model(&mdb.Setting{}). + Where("`key` = ?", mdb.SettingKeyInitAdminPasswordPlain). + Count(&count).Error; err != nil { + t.Fatalf("count plaintext setting: %v", err) + } + if count != 0 { + t.Fatalf("plaintext setting rows after password change = %d, want 0", count) + } + if !GetSettingBool(mdb.SettingKeyInitAdminPasswordFetched, false) { + t.Fatal("expected fetched flag to be true after clearing plaintext") + } +} + func TestEnsureDefaultAdminPurgesLegacySoftDeletedPlaintext(t *testing.T) { cleanup := testutil.SetupTestDatabases(t) defer cleanup() @@ -164,3 +213,55 @@ func TestEnsureDefaultAdminPurgesLegacySoftDeletedPlaintext(t *testing.T) { t.Fatalf("legacy plaintext rows after ensure = %d, want 0", count) } } + +func TestEnsureDefaultAdminRollsBackWhenInitialPasswordStateFails(t *testing.T) { + cleanup := testutil.SetupTestDatabases(t) + defer cleanup() + + if err := dao.Mdb.Exec(` +CREATE TRIGGER fail_initial_password_state +BEFORE INSERT ON settings +WHEN NEW.key = 'system.init_admin_password_plain' +BEGIN + SELECT RAISE(FAIL, 'forced initial password state failure'); +END; +`).Error; err != nil { + t.Fatalf("create failure trigger: %v", err) + } + + password, created, err := EnsureDefaultAdmin() + if err == nil { + t.Fatal("expected EnsureDefaultAdmin to fail") + } + if created || password != "" { + t.Fatalf("created=%v password=%q, want no created admin on failure", created, password) + } + + var adminCount int64 + if err := dao.Mdb.Model(&mdb.AdminUser{}).Count(&adminCount).Error; err != nil { + t.Fatalf("count admin users after failure: %v", err) + } + if adminCount != 0 { + t.Fatalf("admin users after failed initial password state = %d, want 0", adminCount) + } + + if err := dao.Mdb.Exec(`DROP TRIGGER fail_initial_password_state`).Error; err != nil { + t.Fatalf("drop failure trigger: %v", err) + } + + password, created, err = EnsureDefaultAdmin() + if err != nil { + t.Fatalf("retry EnsureDefaultAdmin: %v", err) + } + if !created || password == "" { + t.Fatalf("retry created=%v password=%q, want new admin with password", created, password) + } + + got, err := GetInitialAdminPassword() + if err != nil { + t.Fatalf("get initial password after retry: %v", err) + } + if got != password { + t.Fatalf("initial password after retry = %q, want %q", got, password) + } +} diff --git a/src/route/admin_router_test.go b/src/route/admin_router_test.go index 5d0a0ae..23eb62c 100644 --- a/src/route/admin_router_test.go +++ b/src/route/admin_router_test.go @@ -290,10 +290,9 @@ func TestAdminChangePassword(t *testing.T) { } } -// TestAdminInitPasswordFlow verifies that the initial password stays readable -// until the admin password is changed, along with the hash-based -// "password changed" detection flow. -func TestAdminInitPasswordFlow(t *testing.T) { +// TestAdminInitialPasswordMetadataFlow verifies that the public plaintext route +// is gone while the hash-based default-password detection flow still works. +func TestAdminInitialPasswordMetadataFlow(t *testing.T) { e := setupTestEnv(t) const initPassword = "init-pass-123456" @@ -321,14 +320,11 @@ func TestAdminInitPasswordFlow(t *testing.T) { t.Fatalf("expected password_changed=false before change, got true") } - recFetch := doGet(e, "/admin/api/v1/auth/init-password") - respFetch := assertOK(t, recFetch) - fetchData, _ := respFetch["data"].(map[string]interface{}) - if fetchData["username"] != testAdminUsername { - t.Fatalf("expected username=%s, got %v", testAdminUsername, fetchData["username"]) - } - if fetchData["password"] != initPassword { - t.Fatalf("expected initial password %s, got %v", initPassword, fetchData["password"]) + token := adminLogin(t, e, testAdminUsername, initPassword) + + recFetch := doGetAdmin(e, "/admin/api/v1/auth/init-password", token) + if recFetch.Code != http.StatusNotFound { + t.Fatalf("expected removed init-password route to return 404, got %d body=%s", recFetch.Code, recFetch.Body.String()) } var plaintextRows int64 if err := dao.Mdb.Unscoped(). @@ -341,18 +337,6 @@ func TestAdminInitPasswordFlow(t *testing.T) { t.Fatalf("expected init password plaintext to remain available, got %d rows", plaintextRows) } - recFetch2 := doGet(e, "/admin/api/v1/auth/init-password") - respFetch2 := assertOK(t, recFetch2) - fetchData2, _ := respFetch2["data"].(map[string]interface{}) - if fetchData2["username"] != testAdminUsername { - t.Fatalf("expected second fetch username=%s, got %v", testAdminUsername, fetchData2["username"]) - } - if fetchData2["password"] != initPassword { - t.Fatalf("expected second fetch password %s, got %v", initPassword, fetchData2["password"]) - } - - token := adminLogin(t, e, testAdminUsername, initPassword) - recMe1 := doGetAdmin(e, "/admin/api/v1/auth/me", token) respMe1 := assertOK(t, recMe1) meData1, _ := respMe1["data"].(map[string]interface{}) @@ -372,21 +356,6 @@ func TestAdminInitPasswordFlow(t *testing.T) { if got, _ := hashData2["password_changed"].(bool); !got { t.Fatalf("expected password_changed=true after change, got %v", got) } - - recFetch3 := doGet(e, "/admin/api/v1/auth/init-password") - if recFetch3.Code != http.StatusBadRequest { - t.Fatalf("fetch after password change should fail with 400, got %d body=%s", recFetch3.Code, recFetch3.Body.String()) - } - var respFetch3 map[string]interface{} - if err := json.Unmarshal(recFetch3.Body.Bytes(), &respFetch3); err != nil { - t.Fatalf("unmarshal fetch-after-change response: %v", err) - } - if got := int(respFetch3["status_code"].(float64)); got != 10040 { - t.Fatalf("fetch after password change status_code = %d, want 10040; response=%v", got, respFetch3) - } - if got, _ := respFetch3["message"].(string); got != constant.Errno[10040] { - t.Fatalf("fetch after password change message = %q, want %q; response=%v", got, constant.Errno[10040], respFetch3) - } if err := dao.Mdb.Unscoped(). Model(&mdb.Setting{}). Where("`key` = ?", mdb.SettingKeyInitAdminPasswordPlain). diff --git a/src/route/router.go b/src/route/router.go index 70a4721..c5e4dc6 100644 --- a/src/route/router.go +++ b/src/route/router.go @@ -263,7 +263,6 @@ func registerAdminRoutes(e *echo.Echo) { // Public (no JWT) adminV1.POST("/auth/login", admin.Ctrl.Login) - adminV1.GET("/auth/init-password", admin.Ctrl.GetInitialPassword) adminV1.GET("/auth/init-password-hash", admin.Ctrl.GetInitialPasswordHash) // Authenticated From 1cdb1edd86482d3334109dd3960b13544d0423e2 Mon Sep 17 00:00:00 2001 From: line-6000 <154492442+line-6000@users.noreply.github.com> Date: Mon, 29 Jun 2026 14:26:54 +0800 Subject: [PATCH 5/8] feat: add epctl installer, docker validation script, and bilingual docs --- README.en.md | 9 +- README.md | 7 + epctl | 1467 ++++++++++++++++++++++++++++++++++++++++++ epctl-docker-test.sh | 379 +++++++++++ wiki/EPCTL.en.md | 213 ++++++ wiki/EPCTL.md | 213 ++++++ 6 files changed, 2287 insertions(+), 1 deletion(-) create mode 100755 epctl create mode 100755 epctl-docker-test.sh create mode 100644 wiki/EPCTL.en.md create mode 100644 wiki/EPCTL.md diff --git a/README.en.md b/README.en.md index e541b5b..dabbeeb 100644 --- a/README.en.md +++ b/README.en.md @@ -10,7 +10,7 @@

English | - 简体中文 + 简体中文

@@ -88,17 +88,24 @@ Quick-start links: | Guide | Description | |-------|-------------| +| [Repo-local: epctl installer](wiki/EPCTL.en.md) | Linux binary install, upgrade, status inspection, and Docker validation | | [Docker Deployment](https://epusdt.com/guide/installation/docker) | Recommended one-command setup | | [aaPanel Deployment](https://epusdt.com/guide/installation/aapanel) | Great for aaPanel users | | [Manual Deployment](https://epusdt.com/guide/installation/manual.html) | Full manual control | | [Developer API Docs](https://epusdt.com) | Integration reference | +The repository also ships these top-level scripts: + +- [`./epctl`](./epctl) for Linux binary install, upgrade, config inspection, service status, logs, and initial password retrieval +- [`./epctl-docker-test.sh`](./epctl-docker-test.sh) for real Ubuntu + systemd installation validation inside local Docker + --- ## Project Structure ```text Epusdt +├── epctl Linux binary installation and operations script ├── src/ Core project source code └── wiki/ Documentation assets and knowledge base ``` diff --git a/README.md b/README.md index 8845987..9ddb8eb 100644 --- a/README.md +++ b/README.md @@ -94,17 +94,24 @@ Epusdt 已完成第三方安全审计。 | 教程 | 说明 | |------|------| +| [仓库内:epctl 安装脚本](wiki/EPCTL.md) | Linux 二进制安装、升级、状态查看与 Docker 验收脚本 | | [Docker 部署](https://epusdt.com/guide/installation/docker) | 推荐方式,一键启动 | | [宝塔面板部署](https://epusdt.com/guide/installation/aapanel) | 适合宝塔用户 | | [手动部署](https://epusdt.com/guide/installation/manual.html) | 完全手动控制 | | [开发者 API 文档](https://epusdt.com/zh/guide/integration/gmpay.html) | 接口集成指南 | +仓库内还提供顶层脚本: + +- [`./epctl`](./epctl) 用于 Linux 二进制安装、升级、查看配置、状态和初始化密码 +- [`./epctl-docker-test.sh`](./epctl-docker-test.sh) 用于在本机 Docker 里跑 Ubuntu + systemd 的真实安装验收 + --- ## 项目结构 ```text Epusdt +├── epctl Linux 二进制安装与运维脚本 ├── src/ 项目核心代码 └── wiki/ 文档与知识库 ``` diff --git a/epctl b/epctl new file mode 100755 index 0000000..2d0c0bb --- /dev/null +++ b/epctl @@ -0,0 +1,1467 @@ +#!/usr/bin/env bash +set -euo pipefail + +readonly EPCTL_NAME="epctl" +readonly REPO_OWNER="GMWalletApp" +readonly REPO_NAME="epusdt" +readonly SERVICE_NAME="epusdt" +readonly SYSTEM_USER="epusdt" +readonly INSTALL_DIR="/opt/epusdt" +readonly BIN_PATH="${INSTALL_DIR}/epusdt" +readonly CONFIG_PATH="${INSTALL_DIR}/.env" +readonly CONFIG_EXAMPLE_PATH="${INSTALL_DIR}/.env.example" +readonly WWW_PATH="${INSTALL_DIR}/www" +readonly CACHE_ROOT="/tmp/epusdt" +readonly SYSTEMD_UNIT_PATH="/etc/systemd/system/${SERVICE_NAME}.service" +readonly SELF_INSTALL_PATH="/usr/local/bin/${EPCTL_NAME}" +readonly DEFAULT_APP_URI="http://127.0.0.1:8000" +readonly DEFAULT_LISTEN="127.0.0.1:8000" +readonly SCRIPT_SOURCE_PATH="$(readlink -f "${BASH_SOURCE[0]}")" + +COLOR_RESET="" +COLOR_BOLD="" +COLOR_DIM="" +COLOR_CYAN="" +COLOR_GREEN="" +COLOR_YELLOW="" +COLOR_RED="" +COLOR_BLUE="" + +ACTIVE_LANG="" +POSITIONAL_ARGS=() + +detect_default_language() { + local raw normalized + + raw="${EPCTL_LANG:-}" + if [[ -z "${raw}" ]]; then + printf 'zh\n' + return + fi + + normalized="${raw,,}" + case "${normalized}" in + zh|zh-*|zh_*|cn|chs|cht|中文) + printf 'zh\n' + ;; + en|en-*|en_*|english) + printf 'en\n' + ;; + *) + printf '%s\n' "${raw}" + ;; + esac +} + +set_language() { + local requested normalized fallback_lang + + requested="${1:-$(detect_default_language)}" + normalized="${requested,,}" + fallback_lang="${ACTIVE_LANG:-$(detect_default_language)}" + case "${normalized}" in + zh|zh-*|zh_*|cn|chs|cht|中文) + ACTIVE_LANG="zh" + ;; + en|en-*|en_*|english) + ACTIVE_LANG="en" + ;; + *) + ACTIVE_LANG="${fallback_lang}" + die "$(trf unsupported_language "${requested}")" + ;; + esac + + export EPCTL_LANG="${ACTIVE_LANG}" +} + +trf() { + local key="$1" + shift || true + local template + + case "${ACTIVE_LANG}:${key}" in + en:label_warn) template='warn' ;; + zh:label_warn) template='警告' ;; + en:label_ok) template='ok' ;; + zh:label_ok) template='完成' ;; + en:label_error) template='error' ;; + zh:label_error) template='错误' ;; + en:only_linux) template='this script only supports Linux' ;; + zh:only_linux) template='本脚本仅支持 Linux' ;; + en:missing_dependency) template='missing dependency: %s' ;; + zh:missing_dependency) template='缺少依赖:%s' ;; + en:root_required) template='this command must be run as root' ;; + zh:root_required) template='此命令必须以 root 身份执行' ;; + en:release_tag_required) template='release tag is required' ;; + zh:release_tag_required) template='必须提供 release tag' ;; + en:release_tag_invalid) template='--tag must match a release tag such as v1.0.6' ;; + zh:release_tag_invalid) template='--tag 必须是有效的 release tag,例如 v1.0.6' ;; + en:unsupported_arch) template='unsupported architecture: %s' ;; + zh:unsupported_arch) template='不支持的架构:%s' ;; + en:checksum_missing) template='checksum entry for %s not found in %s' ;; + zh:checksum_missing) template='在 %s 中找不到 %s 的校验项' ;; + en:latest_release_resolve_failed) template='failed to resolve the latest release tag from GitHub' ;; + zh:latest_release_resolve_failed) template='无法从 GitHub 解析最新 release tag' ;; + en:using_latest_without_confirmation) template='using latest release tag %s without confirmation because EPCTL_ASSUME_YES=1' ;; + zh:using_latest_without_confirmation) template='检测到 EPCTL_ASSUME_YES=1,直接使用最新 release tag %s,不再二次确认' ;; + en:latest_tag_no_tty) template='no --tag provided and no interactive terminal available; pass --tag explicitly or set EPCTL_ASSUME_YES=1' ;; + zh:latest_tag_no_tty) template='未提供 --tag,且当前不是交互终端;请显式传入 --tag,或设置 EPCTL_ASSUME_YES=1' ;; + en:latest_prompt) template='latest release tag is %s. Continue? [y/N] ' ;; + zh:latest_prompt) template='检测到最新 release tag 为 %s,是否继续?[y/N] ' ;; + en:cancelled) template='cancelled' ;; + zh:cancelled) template='已取消' ;; + en:cached_release_files) template='using cached release files in %s' ;; + zh:cached_release_files) template='使用缓存中的 release 文件:%s' ;; + en:downloading_archive) template='downloading %s' ;; + zh:downloading_archive) template='正在下载 %s' ;; + en:checksum_skipped) template='sha256sum not found; skipped checksum verification' ;; + zh:checksum_skipped) template='未检测到 sha256sum,已跳过校验' ;; + en:archive_missing_binary) template='release archive is missing the epusdt binary' ;; + zh:archive_missing_binary) template='release 压缩包中缺少 epusdt 二进制文件' ;; + en:archive_missing_env_example) template='release archive is missing .env.example' ;; + zh:archive_missing_env_example) template='release 压缩包中缺少 .env.example' ;; + en:keeping_existing_config) template='keeping existing config at %s' ;; + zh:keeping_existing_config) template='保留现有配置文件:%s' ;; + en:service_failed_active) template='service %s failed to become active' ;; + zh:service_failed_active) template='服务 %s 未能成功进入 active 状态' ;; + en:service_installed) template='installed %s to %s from %s' ;; + zh:service_installed) template='已将 %s 安装到 %s,来源版本:%s' ;; + en:self_install_current) template='%s already points to the current script' ;; + zh:self_install_current) template='%s 已经指向当前脚本,无需重复安装' ;; + en:self_install_done) template='installed %s into /usr/local/bin' ;; + zh:self_install_done) template='已将 %s 安装到 /usr/local/bin' ;; + en:config_not_found) template='config file not found: %s' ;; + zh:config_not_found) template='找不到配置文件:%s' ;; + en:http_listen_not_found) template='http_listen not found in %s' ;; + zh:http_listen_not_found) template='在 %s 中找不到 http_listen' ;; + en:http_listen_parse_failed) template='failed to parse the port from http_listen=%s' ;; + zh:http_listen_parse_failed) template='无法从 http_listen=%s 中解析端口' ;; + en:curl_partial_body) template='curl failed and returned a partial response body:' ;; + zh:curl_partial_body) template='curl 请求失败,并返回了部分响应体:' ;; + en:init_password_http_failed) template='init-password request failed with HTTP %s: %s' ;; + zh:init_password_http_failed) template='init-password 请求失败,HTTP %s:%s' ;; + en:response_body_label) template='response body:' ;; + zh:response_body_label) template='响应体:' ;; + en:response_body_empty) template='response body is empty' ;; + zh:response_body_empty) template='响应体为空' ;; + en:lines_positive_integer) template='--lines must be a positive integer' ;; + zh:lines_positive_integer) template='--lines 必须是正整数' ;; + en:state_not_installed) template='not installed' ;; + zh:state_not_installed) template='未安装' ;; + en:state_no_systemctl) template='unit exists, but systemctl is unavailable' ;; + zh:state_no_systemctl) template='unit 文件已存在,但 systemctl 不可用' ;; + en:state_no_systemd) template='unit exists, but systemd is unavailable' ;; + zh:state_no_systemd) template='unit 文件已存在,但 systemd 不可用' ;; + en:state_active) template='active' ;; + zh:state_active) template='运行中' ;; + en:state_inactive) template='installed but inactive' ;; + zh:state_inactive) template='已安装,但未运行' ;; + en:menu_title) template='EPCTL Console' ;; + zh:menu_title) template='EPCTL 控制台' ;; + en:menu_subtitle) template='Linux binary manager for epusdt' ;; + zh:menu_subtitle) template='面向 epusdt 的 Linux 二进制管理工具' ;; + en:label_service) template='service' ;; + zh:label_service) template='服务状态' ;; + en:label_install_dir) template='install dir' ;; + zh:label_install_dir) template='安装目录' ;; + en:label_config) template='config' ;; + zh:label_config) template='配置文件' ;; + en:menu_section_setup) template='Setup and release management' ;; + zh:menu_section_setup) template='部署与发布' ;; + en:menu_section_runtime) template='Runtime inspection' ;; + zh:menu_section_runtime) template='运行查看' ;; + en:menu_section_tools) template='Language and help' ;; + zh:menu_section_tools) template='语言与帮助' ;; + en:menu_badge_direct) template='direct' ;; + zh:menu_badge_direct) template='直达' ;; + en:menu_badge_confirm) template='confirm' ;; + zh:menu_badge_confirm) template='确认' ;; + en:menu_exit) template='Quit' ;; + zh:menu_exit) template='退出' ;; + en:menu_hint_direct) template='Direct items run immediately after selection.' ;; + zh:menu_hint_direct) template='带 [直达] 的项目会在选择后直接执行。' ;; + en:menu_hint_confirm) template='Confirm items show an extra confirmation step first.' ;; + zh:menu_hint_confirm) template='带 [确认] 的项目会先显示确认步骤。' ;; + en:command_completed) template='command completed' ;; + zh:command_completed) template='命令执行完成' ;; + en:command_failed_exit) template='command failed with exit code %s' ;; + zh:command_failed_exit) template='命令执行失败,退出码:%s' ;; + en:invalid_selection) template='invalid selection: %s' ;; + zh:invalid_selection) template='无效选择:%s' ;; + en:arg_requires_value) template='%s requires a value' ;; + zh:arg_requires_value) template='%s 需要一个参数值' ;; + en:unknown_arg) template='unknown argument for %s: %s' ;; + zh:unknown_arg) template='%s 命令不支持该参数:%s' ;; + en:unknown_command) template='unknown command: %s' ;; + zh:unknown_command) template='未知命令:%s' ;; + en:input_release_tag) template='Release tag (blank = latest)' ;; + zh:input_release_tag) template='Release tag(留空则使用 latest)' ;; + en:input_upgrade_tag) template='Upgrade tag (blank = latest)' ;; + zh:input_upgrade_tag) template='升级目标 tag(留空则使用 latest)' ;; + en:input_app_uri) template='app_uri' ;; + zh:input_app_uri) template='app_uri' ;; + en:input_http_listen) template='http_listen' ;; + zh:input_http_listen) template='http_listen' ;; + en:input_log_lines) template='Log lines' ;; + zh:input_log_lines) template='日志行数' ;; + en:press_enter_continue) template='Press Enter to return to the menu...' ;; + zh:press_enter_continue) template='按回车返回菜单...' ;; + en:menu_select_action) template='Select an action [0-10]: ' ;; + zh:menu_select_action) template='请选择操作 [0-10]:' ;; + en:menu_language_prompt) template='Choose a language / 请选择语言: 1) 中文 2) English' ;; + zh:menu_language_prompt) template='请选择语言 / Choose a language:1)中文 2)English' ;; + en:menu_language_input) template='Language selection(语言选择)' ;; + zh:menu_language_input) template='语言选择(Language selection)' ;; + en:menu_confirm_prompt) template='Continue? / 是否继续? [y/N] ' ;; + zh:menu_confirm_prompt) template='是否继续?/ Continue? [y/N] ' ;; + en:menu_cancelled_back) template='Cancelled and returned to the menu / 已取消,返回菜单' ;; + zh:menu_cancelled_back) template='已取消,返回菜单 / Cancelled and returned to the menu' ;; + en:language_switched) template='Language switched to %s / 语言已切换为 %s' ;; + zh:language_switched) template='语言已切换为 %s / Language switched to %s' ;; + en:language_name_zh) template='中文' ;; + zh:language_name_zh) template='中文' ;; + en:language_name_en) template='English' ;; + zh:language_name_en) template='English' ;; + en:unsupported_language) template='unsupported language: %s' ;; + zh:unsupported_language) template='不支持的语言:%s' ;; + en:current_language) template='current language' ;; + zh:current_language) template='当前语言' ;; + en:base_image_label) template='base image' ;; + zh:base_image_label) template='基础镜像' ;; + en:action_download_title) template='Download release package' ;; + zh:action_download_title) template='下载 release 包' ;; + en:action_download_desc) template='This will download the selected GitHub release archive into %s, and verify SHA256 when sha256sum is available. It will not install or start the service.' ;; + zh:action_download_desc) template='此操作会把选定的 GitHub release 压缩包下载到 %s,并在本机有 sha256sum 时校验 SHA256。它不会安装,也不会启动服务。' ;; + en:action_install_title) template='Install or refresh the service' ;; + zh:action_install_title) template='安装或刷新服务' ;; + en:action_install_desc) template='This will install epusdt into %s, create or reuse %s, write %s, and enable %s through systemd. Existing .env will be kept.' ;; + zh:action_install_desc) template='此操作会把 epusdt 安装到 %s,创建或复用 %s,写入 %s,并通过 systemd 启用 %s。若已有 .env,则会保留。' ;; + en:action_upgrade_title) template='Upgrade the service' ;; + zh:action_upgrade_title) template='升级服务' ;; + en:action_upgrade_desc) template='This will download and install a newer release into %s, then restart %s. The existing .env configuration will be preserved.' ;; + zh:action_upgrade_desc) template='此操作会下载并安装较新的 release 到 %s,然后重启 %s。现有 .env 配置会被保留。' ;; + en:action_self_install_title) template='Install epctl into PATH' ;; + zh:action_self_install_title) template='安装 epctl 到 PATH' ;; + en:action_self_install_desc) template='This will install %s into /usr/local/bin so it can be called from anywhere. Use %s to force Chinese or %s to force English.' ;; + zh:action_self_install_desc) template='此操作会把 %s 安装到 /usr/local/bin,便于在任意目录直接调用。之后可用 %s 强制中文,或用 %s 强制英文。' ;; + en:action_show_config_title) template='Show active config' ;; + zh:action_show_config_title) template='查看当前配置' ;; + en:action_show_config_desc) template='This will print the full active configuration file %s to the terminal. Sensitive values will be visible.' ;; + zh:action_show_config_desc) template='此操作会把当前生效的配置文件 %s 完整输出到终端,其中敏感配置也会直接显示。' ;; + en:action_init_password_title) template='Request initial admin password' ;; + zh:action_init_password_title) template='获取初始化密码' ;; + en:action_init_password_desc) template='This will call the local HTTP route /admin/api/v1/auth/init-password based on http_listen in %s. It does not read the database directly.' ;; + zh:action_init_password_desc) template='此操作会根据 %s 中的 http_listen,请求本地 HTTP 路由 /admin/api/v1/auth/init-password。它不会直接读取数据库。' ;; + en:action_status_title) template='Show service status' ;; + zh:action_status_title) template='查看服务状态' ;; + en:action_status_desc) template='This will run systemctl status for %s and print the current runtime state, recent logs, and unit summary.' ;; + zh:action_status_desc) template='此操作会对 %s 执行 systemctl status,并输出当前运行状态、最近日志和 unit 摘要。' ;; + en:action_logs_title) template='Show recent logs' ;; + zh:action_logs_title) template='查看最近日志' ;; + en:action_logs_desc) template='This will read recent journal logs for %s. You can choose how many lines to print next.' ;; + zh:action_logs_desc) template='此操作会读取 %s 的最近 journal 日志。下一步你可以选择要输出多少行。' ;; + en:action_language_title) template='Switch language(切换语言)' ;; + zh:action_language_title) template='Switch language(切换语言)' ;; + en:action_language_desc) template='This only changes the current interactive interface language. It does not change the service config or installation files. / 此操作只会切换当前交互界面的语言,不会修改服务配置,也不会改动安装文件。' ;; + zh:action_language_desc) template='此操作只会切换当前交互界面的语言,不会修改服务配置,也不会改动安装文件。 / This only changes the current interactive interface language. It does not change the service config or installation files.' ;; + en:action_help_title) template='Show help' ;; + zh:action_help_title) template='查看帮助' ;; + en:action_help_desc) template='This will print the full command help, including all non-interactive commands and global options.' ;; + zh:action_help_desc) template='此操作会输出完整命令帮助,包括所有非交互命令和全局参数。' ;; + *) + template="missing translation: ${key}" + ;; + esac + + printf -- "${template}" "$@" +} + +init_colors() { + if [[ -n "${NO_COLOR:-}" || "${EPCTL_NO_COLOR:-}" == "1" ]]; then + return + fi + + if [[ -t 1 || -t 2 ]]; then + COLOR_RESET=$'\033[0m' + COLOR_BOLD=$'\033[1m' + COLOR_DIM=$'\033[2m' + COLOR_CYAN=$'\033[36m' + COLOR_GREEN=$'\033[32m' + COLOR_YELLOW=$'\033[33m' + COLOR_RED=$'\033[31m' + COLOR_BLUE=$'\033[34m' + fi +} + +log() { + printf '%b[%s]%b %s\n' "${COLOR_CYAN}${COLOR_BOLD}" "${EPCTL_NAME}" "${COLOR_RESET}" "$*" >&2 +} + +warn() { + printf '%b[%s] %s:%b %s\n' "${COLOR_YELLOW}${COLOR_BOLD}" "${EPCTL_NAME}" "$(trf label_warn)" "${COLOR_RESET}" "$*" >&2 +} + +success() { + printf '%b[%s] %s:%b %s\n' "${COLOR_GREEN}${COLOR_BOLD}" "${EPCTL_NAME}" "$(trf label_ok)" "${COLOR_RESET}" "$*" >&2 +} + +die() { + printf '%b[%s] %s:%b %s\n' "${COLOR_RED}${COLOR_BOLD}" "${EPCTL_NAME}" "$(trf label_error)" "${COLOR_RESET}" "$*" >&2 + exit 1 +} + +usage() { + if [[ "${ACTIVE_LANG}" == "zh" ]]; then + cat <<'EOF' +用法: + epctl [--lang zh|en] [--no-color] + epctl zh + epctl en + epctl [--lang zh|en] menu + epctl [--lang zh|en] download [--tag ] + epctl [--lang zh|en] install [--tag ] [--app-uri URL] [--listen ADDR:PORT] + epctl [--lang zh|en] upgrade [--tag ] + epctl [--lang zh|en] self-install + epctl [--lang zh|en] show-config + epctl [--lang zh|en] init-password + epctl [--lang zh|en] status + epctl [--lang zh|en] logs [--lines N] + +全局选项: + --lang zh|en 切换界面语言 + --no-color 禁用彩色输出 + 快捷方式 `epctl zh` 直接进入中文;`epctl en` 直接进入英文 + +命令说明: + menu 进入交互式菜单;直接执行 `epctl` 也会进入 + download 下载 GitHub Release 包到 /tmp/epusdt// + install 安装或刷新 /opt/epusdt,并注册 epusdt.service + upgrade 升级到新的 release,保留现有 .env + self-install 安装 epctl 到 /usr/local/bin + show-config 输出当前生效的 /opt/epusdt/.env + init-password 通过本地 HTTP 路由请求初始化管理员密码 + status 显示 epusdt 的 systemd 状态 + logs 显示最近的服务日志 + +说明: + - 仅支持 Linux + - 仅支持二进制安装 + - install / upgrade / self-install 会写入 /opt、/etc/systemd、/usr/local/bin + - 需要提权的命令会自动通过 sudo 重新执行 + - tag 需要是真实的 GitHub release tag,例如 v1.0.6 + - 未提供 --tag 时,会自动解析 latest,并要求二次确认 +EOF + else + cat <<'EOF' +Usage: + epctl [--lang zh|en] [--no-color] + epctl zh + epctl en + epctl [--lang zh|en] menu + epctl [--lang zh|en] download [--tag ] + epctl [--lang zh|en] install [--tag ] [--app-uri URL] [--listen ADDR:PORT] + epctl [--lang zh|en] upgrade [--tag ] + epctl [--lang zh|en] self-install + epctl [--lang zh|en] show-config + epctl [--lang zh|en] init-password + epctl [--lang zh|en] status + epctl [--lang zh|en] logs [--lines N] + +Global options: + --lang zh|en Select the interface language + --no-color Disable colored output + Shortcut `epctl zh` enters Chinese directly; `epctl en` enters English directly + +Command summary: + menu Open the interactive menu; `epctl` with no arguments does this too + download Download a GitHub release archive into /tmp/epusdt// + install Install or refresh /opt/epusdt and register epusdt.service + upgrade Upgrade to a newer release while keeping the existing .env + self-install Install epctl into /usr/local/bin + show-config Print the active /opt/epusdt/.env file + init-password Request the initial admin password from the local HTTP route + status Show the systemd status of epusdt + logs Show recent service logs + +Notes: + - Linux only + - Binary installation only + - install / upgrade / self-install write into /opt, /etc/systemd, and /usr/local/bin + - privileged commands automatically re-exec through sudo + - tags must match real GitHub release tags such as v1.0.6 + - if --tag is omitted, epctl resolves the latest release and asks for confirmation +EOF + fi +} + +parse_global_options() { + POSITIONAL_ARGS=() + while [[ $# -gt 0 ]]; do + case "$1" in + --lang) + [[ $# -ge 2 ]] || die "$(trf arg_requires_value "--lang")" + set_language "$2" + shift 2 + ;; + --lang=*) + set_language "${1#*=}" + shift + ;; + --no-color) + export EPCTL_NO_COLOR=1 + shift + ;; + *) + POSITIONAL_ARGS+=("$1") + shift + ;; + esac + done +} + +require_linux() { + [[ "$(uname -s)" == "Linux" ]] || die "$(trf only_linux)" +} + +have_command() { + command -v "$1" >/dev/null 2>&1 +} + +require_command() { + have_command "$1" || die "$(trf missing_dependency "$1")" +} + +is_interactive_terminal() { + [[ -t 0 && -t 1 ]] +} + +require_root() { + [[ "${EUID}" -eq 0 ]] || die "$(trf root_required)" +} + +ensure_root_via_sudo() { + if [[ "${EUID}" -eq 0 ]]; then + return + fi + + require_command sudo + exec sudo -- "${SCRIPT_SOURCE_PATH}" --lang "${ACTIVE_LANG}" "$@" +} + +require_release_tag() { + local tag="$1" + [[ -n "${tag}" ]] || die "$(trf release_tag_required)" + [[ "${tag}" == v* ]] || die "$(trf release_tag_invalid)" +} + +map_arch() { + case "$(uname -m)" in + x86_64|amd64) + printf 'amd64\n' + ;; + aarch64|arm64) + printf 'arm64\n' + ;; + *) + die "$(trf unsupported_arch "$(uname -m)")" + ;; + esac +} + +asset_version_from_tag() { + local tag="$1" + printf '%s\n' "${tag#v}" +} + +cache_dir_for_tag() { + local tag="$1" + printf '%s/%s\n' "${CACHE_ROOT}" "${tag}" +} + +archive_name_for_tag() { + local tag="$1" + local arch="$2" + printf 'epusdt-%s-linux-%s.tar.gz\n' "$(asset_version_from_tag "${tag}")" "${arch}" +} + +release_base_url_for_tag() { + local tag="$1" + printf 'https://github.com/%s/%s/releases/download/%s\n' "${REPO_OWNER}" "${REPO_NAME}" "${tag}" +} + +download_file() { + local url="$1" + local destination="$2" + local partial="${destination}.part" + rm -f "${partial}" + curl --fail --location --silent --show-error --output "${partial}" "${url}" + mv "${partial}" "${destination}" +} + +verify_checksum() { + local sums_path="$1" + local archive_path="$2" + local archive_name + local checksum_line + + archive_name="$(basename "${archive_path}")" + checksum_line="$(grep -F " ${archive_name}" "${sums_path}" || true)" + [[ -n "${checksum_line}" ]] || die "$(trf checksum_missing "${archive_name}" "$(basename "${sums_path}")")" + + ( + cd "$(dirname "${archive_path}")" + printf '%s\n' "${checksum_line}" | sha256sum -c - >&2 + ) +} + +ensure_download_dependencies() { + require_command curl + require_command grep + require_command sed +} + +latest_release_tag() { + local api_url="https://api.github.com/repos/${REPO_OWNER}/${REPO_NAME}/releases/latest" + local response tag + + ensure_download_dependencies + response="$(curl --fail --location --silent --show-error "${api_url}")" + tag="$(printf '%s\n' "${response}" | sed -n 's/^[[:space:]]*"tag_name":[[:space:]]*"\([^"]\+\)".*$/\1/p' | head -n 1)" + [[ -n "${tag}" ]] || die "$(trf latest_release_resolve_failed)" + require_release_tag "${tag}" + printf '%s\n' "${tag}" +} + +is_affirmative_reply() { + local reply="${1:-}" + reply="${reply,,}" + + case "${reply}" in + y|yes|ok|true|1|s|shi|是|确认|確認) + return 0 + ;; + *) + return 1 + ;; + esac +} + +confirm_latest_release_tag() { + local tag="$1" + local reply + + if [[ "${EPCTL_ASSUME_YES:-}" == "1" ]]; then + log "$(trf using_latest_without_confirmation "${tag}")" + printf '%s\n' "${tag}" + return + fi + + if [[ ! -t 0 ]]; then + die "$(trf latest_tag_no_tty)" + fi + + printf '%b[%s]%b %s' "${COLOR_CYAN}${COLOR_BOLD}" "${EPCTL_NAME}" "${COLOR_RESET}" "$(trf latest_prompt "${tag}")" >&2 + read -r reply + if is_affirmative_reply "${reply}"; then + printf '%s\n' "${tag}" + return + fi + + die "$(trf cancelled)" +} + +resolve_effective_tag() { + local requested_tag="$1" + local latest_tag + + if [[ -n "${requested_tag}" ]]; then + require_release_tag "${requested_tag}" + printf '%s\n' "${requested_tag}" + return + fi + + latest_tag="$(latest_release_tag)" + confirm_latest_release_tag "${latest_tag}" +} + +download_release() { + local tag="$1" + local arch archive_name release_base_url cache_dir archive_path sums_path + + require_linux + ensure_download_dependencies + + arch="$(map_arch)" + archive_name="$(archive_name_for_tag "${tag}" "${arch}")" + release_base_url="$(release_base_url_for_tag "${tag}")" + cache_dir="$(cache_dir_for_tag "${tag}")" + archive_path="${cache_dir}/${archive_name}" + sums_path="${cache_dir}/SHA256SUMS" + + mkdir -p "${cache_dir}" + + if [[ -f "${archive_path}" && -f "${sums_path}" ]]; then + log "$(trf cached_release_files "${cache_dir}")" + else + log "$(trf downloading_archive "${archive_name}")" + download_file "${release_base_url}/${archive_name}" "${archive_path}" + download_file "${release_base_url}/SHA256SUMS" "${sums_path}" + fi + + if have_command sha256sum; then + verify_checksum "${sums_path}" "${archive_path}" + else + warn "$(trf checksum_skipped)" + fi + + printf '%s\n' "${archive_path}" +} + +escape_sed_replacement() { + printf '%s' "$1" | sed -e 's/[&|\\]/\\&/g' +} + +set_env_key() { + local file="$1" + local key="$2" + local value="$3" + local escaped + + escaped="$(escape_sed_replacement "${value}")" + if grep -q "^${key}=" "${file}"; then + sed -i "s|^${key}=.*$|${key}=${escaped}|" "${file}" + else + printf '%s=%s\n' "${key}" "${value}" >> "${file}" + fi +} + +ensure_system_user() { + if ! getent group "${SYSTEM_USER}" >/dev/null 2>&1; then + groupadd --system "${SYSTEM_USER}" + fi + if ! id -u "${SYSTEM_USER}" >/dev/null 2>&1; then + useradd --system --gid "${SYSTEM_USER}" --home-dir "${INSTALL_DIR}" --shell /usr/sbin/nologin "${SYSTEM_USER}" + fi +} + +extract_release_archive() { + local tag="$1" + local archive_path="$2" + local extract_dir + + extract_dir="$(cache_dir_for_tag "${tag}")/extract" + rm -rf "${extract_dir}" + mkdir -p "${extract_dir}" + tar -xzf "${archive_path}" -C "${extract_dir}" + [[ -f "${extract_dir}/epusdt" ]] || die "$(trf archive_missing_binary)" + [[ -f "${extract_dir}/.env.example" ]] || die "$(trf archive_missing_env_example)" + printf '%s\n' "${extract_dir}" +} + +create_default_config_if_missing() { + local app_uri="$1" + local listen="$2" + + if [[ -f "${CONFIG_PATH}" ]]; then + log "$(trf keeping_existing_config "${CONFIG_PATH}")" + return + fi + + cp "${CONFIG_EXAMPLE_PATH}" "${CONFIG_PATH}" + set_env_key "${CONFIG_PATH}" "install" "false" + set_env_key "${CONFIG_PATH}" "app_uri" "${app_uri}" + set_env_key "${CONFIG_PATH}" "http_listen" "${listen}" + chmod 0644 "${CONFIG_PATH}" +} + +write_systemd_unit() { + cat > "${SYSTEMD_UNIT_PATH}" <&2 + printf '\n' >&2 + fi + rm -f "${body_file}" + return "${curl_rc}" + fi + + if [[ "${http_code}" =~ ^2[0-9][0-9]$ ]]; then + cat "${body_file}" + rm -f "${body_file}" + return 0 + fi + + warn "$(trf init_password_http_failed "${http_code}" "${url}")" + if [[ -s "${body_file}" ]]; then + printf '%b%s%b\n' "${COLOR_YELLOW}${COLOR_BOLD}" "$(trf response_body_label)" "${COLOR_RESET}" >&2 + cat "${body_file}" >&2 + printf '\n' >&2 + else + warn "$(trf response_body_empty)" + fi + rm -f "${body_file}" + return 1 +} + +command_status() { + local original_args=("$@") + + require_linux + while [[ $# -gt 0 ]]; do + case "$1" in + -h|--help) + usage + exit 0 + ;; + *) + die "$(trf unknown_arg "status" "$1")" + ;; + esac + done + + ensure_root_via_sudo status "${original_args[@]}" + require_root + require_command systemctl + systemctl status "${SERVICE_NAME}" --no-pager +} + +command_logs() { + local lines="100" + local original_args=("$@") + + while [[ $# -gt 0 ]]; do + case "$1" in + --lines) + [[ $# -ge 2 ]] || die "$(trf arg_requires_value "--lines")" + lines="$2" + shift 2 + ;; + --lines=*) + lines="${1#*=}" + shift + ;; + -h|--help) + usage + exit 0 + ;; + *) + die "$(trf unknown_arg "logs" "$1")" + ;; + esac + done + + [[ "${lines}" =~ ^[1-9][0-9]*$ ]] || die "$(trf lines_positive_integer)" + require_linux + ensure_root_via_sudo logs "${original_args[@]}" + require_root + require_command journalctl + journalctl -u "${SERVICE_NAME}" --no-pager -q -n "${lines}" +} + +prompt_input() { + local label="$1" + local default_value="${2:-}" + local input + + if [[ -n "${default_value}" ]]; then + printf '%b%s%b [%s]: ' "${COLOR_BOLD}" "${label}" "${COLOR_RESET}" "${default_value}" >&2 + else + printf '%b%s%b: ' "${COLOR_BOLD}" "${label}" "${COLOR_RESET}" >&2 + fi + + read -r input || return 1 + if [[ -z "${input}" ]]; then + printf '%s\n' "${default_value}" + else + printf '%s\n' "${input}" + fi +} + +pause_for_menu() { + printf '\n' + printf '%b%s%b' "${COLOR_DIM}" "$(trf press_enter_continue)" "${COLOR_RESET}" + read -r _ || true +} + +print_rule() { + local char="${1:--}" + local width="${2:-64}" + local line + + printf -v line '%*s' "${width}" '' + line="${line// /${char}}" + printf '%b%s%b\n' "${COLOR_DIM}" "${line}" "${COLOR_RESET}" +} + +format_badge() { + local text="$1" + local color="${2:-${COLOR_BLUE}}" + printf '%b[%s]%b' "${color}${COLOR_BOLD}" "${text}" "${COLOR_RESET}" +} + +format_service_state_badge() { + local state="$1" + local color="${COLOR_RED}" + + case "${state}" in + "$(trf state_active)") + color="${COLOR_GREEN}" + ;; + "$(trf state_inactive)") + color="${COLOR_YELLOW}" + ;; + esac + + format_badge "${state}" "${color}" +} + +format_menu_item_badge() { + local kind="$1" + local label color + + case "${kind}" in + direct) + label="$(trf menu_badge_direct)" + color="${COLOR_GREEN}" + ;; + confirm) + label="$(trf menu_badge_confirm)" + color="${COLOR_YELLOW}" + ;; + *) + return 0 + ;; + esac + + format_badge "${label}" "${color}" +} + +print_menu_meta_line() { + local label="$1" + local value="$2" + printf ' %b%s%b %s\n' "${COLOR_DIM}" "${label}:" "${COLOR_RESET}" "${value}" +} + +print_menu_section_title() { + printf '\n%b%s%b\n' "${COLOR_BLUE}${COLOR_BOLD}" "$1" "${COLOR_RESET}" +} + +print_menu_item() { + local index="$1" + local title="$2" + local mode="${3:-}" + + printf ' %b%2s%b. %s' "${COLOR_CYAN}${COLOR_BOLD}" "${index}" "${COLOR_RESET}" "${title}" + if [[ -n "${mode}" ]]; then + printf ' %s' "$(format_menu_item_badge "${mode}")" + fi + printf '\n' +} + +print_menu_action_preview() { + local title="$1" + local description="$2" + + printf '\n' >&2 + print_rule "-" 64 >&2 + printf '%b> %s%b\n' "${COLOR_BLUE}${COLOR_BOLD}" "${title}" "${COLOR_RESET}" >&2 + printf '%s\n' "${description}" >&2 + print_rule "-" 64 >&2 +} + +confirm_menu_action() { + local title="$1" + local description="$2" + local reply + + print_menu_action_preview "${title}" "${description}" + printf '%b%s%b' "${COLOR_BOLD}" "$(trf menu_confirm_prompt)" "${COLOR_RESET}" >&2 + read -r reply || return 1 + if is_affirmative_reply "${reply}"; then + return 0 + fi + + warn "$(trf menu_cancelled_back)" + pause_for_menu + return 1 +} + +service_state_summary() { + if [[ ! -f "${SYSTEMD_UNIT_PATH}" ]]; then + printf '%s\n' "$(trf state_not_installed)" + return + fi + + if ! have_command systemctl; then + printf '%s\n' "$(trf state_no_systemctl)" + return + fi + + if [[ ! -d /run/systemd/system ]]; then + printf '%s\n' "$(trf state_no_systemd)" + return + fi + + if systemctl is-active --quiet "${SERVICE_NAME}" >/dev/null 2>&1; then + printf '%s\n' "$(trf state_active)" + return + fi + + printf '%s\n' "$(trf state_inactive)" +} + +print_menu_header() { + local current_lang_label service_state + + if [[ "${ACTIVE_LANG}" == "zh" ]]; then + current_lang_label="$(trf language_name_zh)" + else + current_lang_label="$(trf language_name_en)" + fi + + service_state="$(service_state_summary)" + + printf '\n' + print_rule "=" 64 + printf '%b%s%b\n' "${COLOR_CYAN}${COLOR_BOLD}" "$(trf menu_title)" "${COLOR_RESET}" + printf '%b%s%b\n' "${COLOR_DIM}" "$(trf menu_subtitle)" "${COLOR_RESET}" + print_rule "-" 64 + print_menu_meta_line "$(trf label_service)" "$(format_service_state_badge "${service_state}")" + print_menu_meta_line "$(trf label_install_dir)" "${INSTALL_DIR}" + print_menu_meta_line "$(trf label_config)" "${CONFIG_PATH}" + print_menu_meta_line "$(trf current_language)" "$(format_badge "${current_lang_label}" "${COLOR_CYAN}")" + print_rule "-" 64 +} + +print_menu_options() { + print_menu_section_title "$(trf menu_section_setup)" + print_menu_item "1" "$(trf action_download_title)" "confirm" + print_menu_item "2" "$(trf action_install_title)" "confirm" + print_menu_item "3" "$(trf action_upgrade_title)" "confirm" + print_menu_item "4" "$(trf action_self_install_title)" "confirm" + + print_menu_section_title "$(trf menu_section_runtime)" + print_menu_item "5" "$(trf action_show_config_title)" "direct" + print_menu_item "6" "$(trf action_init_password_title)" "confirm" + print_menu_item "7" "$(trf action_status_title)" "direct" + print_menu_item "8" "$(trf action_logs_title)" "direct" + + print_menu_section_title "$(trf menu_section_tools)" + print_menu_item "9" "$(trf action_language_title)" "direct" + print_menu_item "10" "$(trf action_help_title)" "direct" + print_menu_item "0" "$(trf menu_exit)" + + print_rule "-" 64 + printf '%b%s%b\n' "${COLOR_DIM}" "$(trf menu_hint_direct)" "${COLOR_RESET}" + printf '%b%s%b\n' "${COLOR_DIM}" "$(trf menu_hint_confirm)" "${COLOR_RESET}" +} + +run_menu_command() { + local rc + + printf '\n' + if EPCTL_LANG="${ACTIVE_LANG}" "${SCRIPT_SOURCE_PATH}" --lang "${ACTIVE_LANG}" "$@"; then + success "$(trf command_completed)" + else + rc="$?" + warn "$(trf command_failed_exit "${rc}")" + fi + + pause_for_menu +} + +interactive_download() { + local tag + + confirm_menu_action \ + "$(trf action_download_title)" \ + "$(trf action_download_desc "${CACHE_ROOT}")" || return 0 + + tag="$(prompt_input "$(trf input_release_tag)")" || return 0 + if [[ -n "${tag}" ]]; then + run_menu_command download --tag "${tag}" + else + run_menu_command download + fi +} + +interactive_install() { + local tag app_uri listen + + confirm_menu_action \ + "$(trf action_install_title)" \ + "$(trf action_install_desc "${INSTALL_DIR}" "${SYSTEM_USER}" "${SYSTEMD_UNIT_PATH}" "${SERVICE_NAME}")" || return 0 + + tag="$(prompt_input "$(trf input_release_tag)")" || return 0 + app_uri="$(prompt_input "$(trf input_app_uri)" "${DEFAULT_APP_URI}")" || return 0 + listen="$(prompt_input "$(trf input_http_listen)" "${DEFAULT_LISTEN}")" || return 0 + + if [[ -n "${tag}" ]]; then + run_menu_command install --tag "${tag}" --app-uri "${app_uri}" --listen "${listen}" + else + run_menu_command install --app-uri "${app_uri}" --listen "${listen}" + fi +} + +interactive_upgrade() { + local tag + + confirm_menu_action \ + "$(trf action_upgrade_title)" \ + "$(trf action_upgrade_desc "${INSTALL_DIR}" "${SERVICE_NAME}")" || return 0 + + tag="$(prompt_input "$(trf input_upgrade_tag)")" || return 0 + if [[ -n "${tag}" ]]; then + run_menu_command upgrade --tag "${tag}" + else + run_menu_command upgrade + fi +} + +interactive_logs() { + local lines + + print_menu_action_preview \ + "$(trf action_logs_title)" \ + "$(trf action_logs_desc "${SERVICE_NAME}")" + + lines="$(prompt_input "$(trf input_log_lines)" "100")" || return 0 + run_menu_command logs --lines "${lines}" +} + +interactive_switch_language() { + local choice + + print_menu_action_preview \ + "$(trf action_language_title)" \ + "$(trf action_language_desc)" + + printf '\n%b%s%b\n' "${COLOR_BOLD}" "$(trf menu_language_prompt)" "${COLOR_RESET}" + choice="$(prompt_input "$(trf menu_language_input)")" || return 0 + case "${choice}" in + 1|zh|ZH|cn|CN|中文) + set_language "zh" + success "$(trf language_switched "$(trf language_name_zh)" "$(trf language_name_zh)")" + ;; + 2|en|EN|english|English|英文|英语) + set_language "en" + success "$(trf language_switched "$(trf language_name_en)" "$(trf language_name_en)")" + ;; + *) + warn "$(trf invalid_selection "${choice}")" + ;; + esac + pause_for_menu +} + +interactive_menu() { + local choice + + require_linux + while true; do + print_menu_header + print_menu_options + printf '%b%s%b' "${COLOR_BOLD}" "$(trf menu_select_action)" "${COLOR_RESET}" + read -r choice || return 0 + + case "${choice}" in + 1) + interactive_download + ;; + 2) + interactive_install + ;; + 3) + interactive_upgrade + ;; + 4) + if confirm_menu_action \ + "$(trf action_self_install_title)" \ + "$(trf action_self_install_desc "${EPCTL_NAME}" "${EPCTL_NAME} --lang zh" "${EPCTL_NAME} --lang en")"; then + run_menu_command self-install + fi + ;; + 5) + print_menu_action_preview \ + "$(trf action_show_config_title)" \ + "$(trf action_show_config_desc "${CONFIG_PATH}")" + run_menu_command show-config + ;; + 6) + if confirm_menu_action \ + "$(trf action_init_password_title)" \ + "$(trf action_init_password_desc "${CONFIG_PATH}")"; then + run_menu_command init-password + fi + ;; + 7) + print_menu_action_preview \ + "$(trf action_status_title)" \ + "$(trf action_status_desc "${SERVICE_NAME}")" + run_menu_command status + ;; + 8) + interactive_logs + ;; + 9) + interactive_switch_language + ;; + 10) + print_menu_action_preview \ + "$(trf action_help_title)" \ + "$(trf action_help_desc)" + usage + pause_for_menu + ;; + 0|q|Q|quit|QUIT|exit|EXIT) + return 0 + ;; + *) + warn "$(trf invalid_selection "${choice}")" + pause_for_menu + ;; + esac + done +} + +main() { + local command="${1:-}" + shift || true + + case "${command}" in + zh|zh-cn|zh_cn|cn|中文) + set_language "zh" + if [[ $# -gt 0 ]]; then + main "$@" + elif is_interactive_terminal; then + interactive_menu + else + usage + fi + ;; + en|en-us|en_us|english) + set_language "en" + if [[ $# -gt 0 ]]; then + main "$@" + elif is_interactive_terminal; then + interactive_menu + else + usage + fi + ;; + menu|interactive) + interactive_menu + ;; + download) + command_download "$@" + ;; + install) + command_install "$@" + ;; + upgrade) + command_upgrade "$@" + ;; + self-install) + command_self_install "$@" + ;; + show-config) + command_show_config "$@" + ;; + init-password) + command_init_password "$@" + ;; + status) + command_status "$@" + ;; + logs) + command_logs "$@" + ;; + -h|--help|help) + usage + ;; + "") + if is_interactive_terminal; then + interactive_menu + else + usage + exit 1 + fi + ;; + *) + die "$(trf unknown_command "${command}")" + ;; + esac +} + +set_language "" +parse_global_options "$@" +init_colors +main "${POSITIONAL_ARGS[@]}" diff --git a/epctl-docker-test.sh b/epctl-docker-test.sh new file mode 100755 index 0000000..2a663fb --- /dev/null +++ b/epctl-docker-test.sh @@ -0,0 +1,379 @@ +#!/usr/bin/env bash +set -euo pipefail + +readonly SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +readonly IMAGE_TAG="epctl-ubuntu-systemd-test:$(date +%s)-$$" +readonly CONTAINER_NAME="epctl-systemd-test-$$" +readonly BASE_IMAGE="ubuntu:24.04" + +ACTIVE_LANG="" +POSITIONAL_ARGS=() + +detect_default_language() { + local raw normalized + + raw="${EPCTL_LANG:-}" + if [[ -z "${raw}" ]]; then + printf 'zh\n' + return + fi + + normalized="${raw,,}" + case "${normalized}" in + zh|zh-*|zh_*|cn|chs|cht|中文) + printf 'zh\n' + ;; + en|en-*|en_*|english) + printf 'en\n' + ;; + *) + printf '%s\n' "${raw}" + ;; + esac +} + +set_language() { + local requested normalized fallback_lang + + requested="${1:-$(detect_default_language)}" + normalized="${requested,,}" + fallback_lang="${ACTIVE_LANG:-$(detect_default_language)}" + case "${normalized}" in + zh|zh-*|zh_*|cn|chs|cht|中文) + ACTIVE_LANG="zh" + ;; + en|en-*|en_*|english) + ACTIVE_LANG="en" + ;; + *) + ACTIVE_LANG="${fallback_lang}" + die "$(trf unsupported_language "${requested}")" + ;; + esac + + export EPCTL_LANG="${ACTIVE_LANG}" +} + +trf() { + local key="$1" + shift || true + local template + + case "${ACTIVE_LANG}:${key}" in + en:usage) template='Usage:' ;; + zh:usage) template='用法:' ;; + en:example) template='Example:' ;; + zh:example) template='示例:' ;; + en:missing_dependency) template='missing dependency: %s' ;; + zh:missing_dependency) template='缺少依赖:%s' ;; + en:arg_requires_value) template='%s requires a value' ;; + zh:arg_requires_value) template='%s 需要一个参数值' ;; + en:unsupported_language) template='unsupported language: %s' ;; + zh:unsupported_language) template='不支持的语言:%s' ;; + en:unsupported_arch) template='unsupported architecture: %s' ;; + zh:unsupported_arch) template='不支持的架构:%s' ;; + en:test_failed_collecting) template='test failed; collecting container diagnostics' ;; + zh:test_failed_collecting) template='测试失败,正在收集容器诊断信息' ;; + en:install_tag_invalid) template='install tag must be a real GitHub release tag such as v1.0.6' ;; + zh:install_tag_invalid) template='安装 tag 必须是真实的 GitHub release tag,例如 v1.0.6' ;; + en:upgrade_tag_invalid) template='upgrade tag must be a real GitHub release tag such as v1.0.6' ;; + zh:upgrade_tag_invalid) template='升级 tag 必须是真实的 GitHub release tag,例如 v1.0.6' ;; + en:base_image) template='base image: %s' ;; + zh:base_image) template='基础镜像:%s' ;; + en:building_image) template='building the Ubuntu systemd test image' ;; + zh:building_image) template='正在构建 Ubuntu systemd 测试镜像' ;; + en:starting_container) template='starting the test container' ;; + zh:starting_container) template='正在启动测试容器' ;; + en:systemd_not_ready) template='systemd did not become ready inside the container' ;; + zh:systemd_not_ready) template='容器内的 systemd 未能及时就绪' ;; + en:self_installing) template='installing epctl into PATH' ;; + zh:self_installing) template='正在将 epctl 安装到 PATH' ;; + en:downloading_release) template='downloading release %s' ;; + zh:downloading_release) template='正在下载 release %s' ;; + en:installing_release) template='installing epusdt from release %s' ;; + zh:installing_release) template='正在从 release %s 安装 epusdt' ;; + en:waiting_assets) template='waiting for epusdt to start and release www assets' ;; + zh:waiting_assets) template='正在等待 epusdt 启动并释放 www 静态文件' ;; + en:upgrading_release) template='upgrading epusdt from %s to %s' ;; + zh:upgrading_release) template='正在将 epusdt 从 %s 升级到 %s' ;; + en:checking_init_password) template='checking init-password behavior' ;; + zh:checking_init_password) template='正在检查 init-password 行为' ;; + en:expected_second_failure) template='expected init-password to fail after the password was changed' ;; + zh:expected_second_failure) template='密码修改后,init-password 本应失败,但它却成功了' ;; + en:verification_succeeded) template='docker verification succeeded for install=%s%s' ;; + zh:verification_succeeded) template='Docker 验证通过,install=%s%s' ;; + *) + template="missing translation: ${key}" + ;; + esac + + printf -- "${template}" "$@" +} + +log() { + printf '[epctl-docker-test] %s\n' "$*" >&2 +} + +die() { + printf '[epctl-docker-test] error: %s\n' "$*" >&2 + exit 1 +} + +usage() { + if [[ "${ACTIVE_LANG}" == "zh" ]]; then + cat <<'EOF' +用法: + ./epctl-docker-test.sh [--lang zh|en] [upgrade-tag] + +示例: + ./epctl-docker-test.sh v1.0.6 + ./epctl-docker-test.sh --lang zh v1.0.6 v1.0.8 +EOF + else + cat <<'EOF' +Usage: + ./epctl-docker-test.sh [--lang zh|en] [upgrade-tag] + +Example: + ./epctl-docker-test.sh v1.0.6 + ./epctl-docker-test.sh --lang en v1.0.6 v1.0.8 +EOF + fi +} + +parse_global_options() { + POSITIONAL_ARGS=() + while [[ $# -gt 0 ]]; do + case "$1" in + --lang) + [[ $# -ge 2 ]] || die "$(trf arg_requires_value "--lang")" + set_language "$2" + shift 2 + ;; + --lang=*) + set_language "${1#*=}" + shift + ;; + *) + POSITIONAL_ARGS+=("$1") + shift + ;; + esac + done +} + +require_command() { + command -v "$1" >/dev/null 2>&1 || die "$(trf missing_dependency "$1")" +} + +map_arch() { + case "$(uname -m)" in + x86_64|amd64) + printf 'amd64\n' + ;; + aarch64|arm64) + printf 'arm64\n' + ;; + *) + die "$(trf unsupported_arch "$(uname -m)")" + ;; + esac +} + +docker_bash() { + docker exec "${CONTAINER_NAME}" bash -lc "$1" +} + +cleanup() { + local exit_code="$?" + if [[ "${exit_code}" -ne 0 ]]; then + log "$(trf test_failed_collecting)" + docker exec "${CONTAINER_NAME}" bash -lc 'systemctl status epusdt --no-pager || true' || true + docker exec "${CONTAINER_NAME}" bash -lc 'journalctl -u epusdt --no-pager -n 100 || true' || true + fi + docker rm -f "${CONTAINER_NAME}" >/dev/null 2>&1 || true + docker rmi -f "${IMAGE_TAG}" >/dev/null 2>&1 || true + rm -rf "${TMPDIR_PATH:-}" +} + +wait_for_systemd() { + local attempt + for attempt in $(seq 1 30); do + if docker exec "${CONTAINER_NAME}" bash -lc 'systemctl show --property=Version --value >/dev/null 2>&1'; then + return 0 + fi + sleep 1 + done + return 1 +} + +set_language "" +parse_global_options "$@" + +INSTALL_TAG="${POSITIONAL_ARGS[0]:-}" +UPGRADE_TAG="${POSITIONAL_ARGS[1]:-}" +[[ -n "${INSTALL_TAG}" ]] || { + usage + exit 1 +} +[[ "${INSTALL_TAG}" == v* ]] || die "$(trf install_tag_invalid)" +if [[ -n "${UPGRADE_TAG}" && "${UPGRADE_TAG}" != v* ]]; then + die "$(trf upgrade_tag_invalid)" +fi + +require_command docker +require_command curl + +ASSET_ARCH="$(map_arch)" +ASSET_URL="https://github.com/GMWalletApp/epusdt/releases/download/${INSTALL_TAG}/epusdt-${INSTALL_TAG#v}-linux-${ASSET_ARCH}.tar.gz" +SUMS_URL="https://github.com/GMWalletApp/epusdt/releases/download/${INSTALL_TAG}/SHA256SUMS" + +curl --fail --silent --show-error --head "${ASSET_URL}" >/dev/null +curl --fail --silent --show-error --head "${SUMS_URL}" >/dev/null +if [[ -n "${UPGRADE_TAG}" ]]; then + curl --fail --silent --show-error --head "https://github.com/GMWalletApp/epusdt/releases/download/${UPGRADE_TAG}/epusdt-${UPGRADE_TAG#v}-linux-${ASSET_ARCH}.tar.gz" >/dev/null + curl --fail --silent --show-error --head "https://github.com/GMWalletApp/epusdt/releases/download/${UPGRADE_TAG}/SHA256SUMS" >/dev/null +fi + +TMPDIR_PATH="$(mktemp -d)" +trap cleanup EXIT + +cat > "${TMPDIR_PATH}/Dockerfile" < /etc/sudoers.d/tester \ + && chmod 0440 /etc/sudoers.d/tester + +STOPSIGNAL SIGRTMIN+3 + +CMD ["/sbin/init"] +EOF + +log "$(trf base_image "${BASE_IMAGE}")" +log "$(trf building_image)" +docker build -t "${IMAGE_TAG}" "${TMPDIR_PATH}" >/dev/null + +log "$(trf starting_container)" +docker run -d \ + --name "${CONTAINER_NAME}" \ + --privileged \ + --cgroupns=host \ + -e container=docker \ + --tmpfs /run \ + --tmpfs /run/lock \ + -v /sys/fs/cgroup:/sys/fs/cgroup:rw \ + -v "${SCRIPT_DIR}:/work" \ + -w /work \ + "${IMAGE_TAG}" \ + /sbin/init >/dev/null + +wait_for_systemd || die "$(trf systemd_not_ready)" + +log "$(trf self_installing)" +docker exec "${CONTAINER_NAME}" bash -lc "su - tester -c 'cd /work && ./epctl self-install'" +docker_bash '[[ -x /usr/local/bin/epctl ]]' +docker exec "${CONTAINER_NAME}" bash -lc 'su - tester -c "EPCTL_NO_COLOR=1 epctl help | grep -q \"^用法:\""' +docker exec "${CONTAINER_NAME}" bash -lc 'su - tester -c "EPCTL_NO_COLOR=1 epctl --lang zh help | grep -q \"^用法:\""' +docker exec "${CONTAINER_NAME}" bash -lc 'su - tester -c "EPCTL_NO_COLOR=1 epctl --lang en help | grep -q \"^Usage:\""' + +log "$(trf downloading_release "${INSTALL_TAG}")" +docker exec "${CONTAINER_NAME}" env TAG="${INSTALL_TAG}" bash -lc 'su - tester -c "epctl download --tag ${TAG}"' + +log "$(trf installing_release "${INSTALL_TAG}")" +docker exec "${CONTAINER_NAME}" env TAG="${INSTALL_TAG}" bash -lc 'su - tester -c "epctl install --tag ${TAG} --app-uri http://127.0.0.1:8000"' + +log "$(trf waiting_assets)" +docker exec "${CONTAINER_NAME}" bash -lc ' +for _ in $(seq 1 30); do + if systemctl is-active --quiet epusdt && [[ -f /opt/epusdt/www/index.html ]]; then + exit 0 + fi + sleep 1 +done +systemctl status epusdt --no-pager || true +journalctl -u epusdt --no-pager -n 100 || true +exit 1 +' + +docker_bash '[[ -x /opt/epusdt/epusdt ]]' +docker_bash '[[ -f /opt/epusdt/.env ]]' +docker_bash 'systemctl is-active --quiet epusdt' +docker_bash '[[ -f /opt/epusdt/www/index.html ]]' +docker exec "${CONTAINER_NAME}" bash -lc 'su - tester -c "epctl show-config | grep -q \"^install=false$\""' +docker exec "${CONTAINER_NAME}" bash -lc 'su - tester -c "EPCTL_NO_COLOR=1 epctl --lang zh show-config | grep -q \"^install=false$\""' +docker exec "${CONTAINER_NAME}" bash -lc ' +su - tester -c "epctl status >/tmp/epctl-status.out 2>/tmp/epctl-status.err" +! grep -q "systemd-journal" /tmp/epctl-status.err +' +docker exec "${CONTAINER_NAME}" bash -lc ' +su - tester -c "epctl logs --lines 50 >/tmp/epctl-logs.out 2>/tmp/epctl-logs.err" +! grep -q "systemd-journal" /tmp/epctl-logs.err +' + +if [[ -n "${UPGRADE_TAG}" ]]; then + log "$(trf upgrading_release "${INSTALL_TAG}" "${UPGRADE_TAG}")" + docker exec "${CONTAINER_NAME}" env TAG="${UPGRADE_TAG}" bash -lc 'su - tester -c "epctl upgrade --tag ${TAG}"' + docker exec "${CONTAINER_NAME}" bash -lc ' +for _ in $(seq 1 30); do + if systemctl is-active --quiet epusdt && [[ -f /opt/epusdt/www/index.html ]]; then + exit 0 + fi + sleep 1 +done +systemctl status epusdt --no-pager || true +journalctl -u epusdt --no-pager -n 100 || true +exit 1 +' + docker exec "${CONTAINER_NAME}" bash -lc 'su - tester -c "epctl show-config | grep -q \"^install=false$\""' + docker exec "${CONTAINER_NAME}" bash -lc ' +su - tester -c "epctl status >/tmp/epctl-status-upgrade.out 2>/tmp/epctl-status-upgrade.err" +! grep -q "systemd-journal" /tmp/epctl-status-upgrade.err +' +fi + +log "$(trf checking_init_password)" +docker exec "${CONTAINER_NAME}" bash -lc ' +response="$(su - tester -c "epctl init-password")" +password="$(printf "%s\n" "${response}" | jq -r ".data.password")" +printf "%s\n" "${response}" | jq -e ".status_code == 200 and (.data.password | type == \"string\" and length > 0)" >/dev/null + +login_payload="$(jq -nc --arg username admin --arg password "${password}" "{username:\$username,password:\$password}")" +token="$(curl --fail --silent --show-error \ + -H "Content-Type: application/json" \ + -d "${login_payload}" \ + http://127.0.0.1:8000/admin/api/v1/auth/login | jq -r ".data.token")" +[[ -n "${token}" && "${token}" != "null" ]] + +change_payload="$(jq -nc --arg old_password "${password}" --arg new_password "new-pass-789" "{old_password:\$old_password,new_password:\$new_password}")" +curl --fail --silent --show-error \ + -H "Authorization: Bearer ${token}" \ + -H "Content-Type: application/json" \ + -d "${change_payload}" \ + http://127.0.0.1:8000/admin/api/v1/auth/password | jq -e ".status_code == 200" >/dev/null + +failure_output="$(mktemp)" +if su - tester -c "epctl init-password" >"${failure_output}" 2>&1; then + cat "${failure_output}" >&2 + rm -f "${failure_output}" + echo "'"$(trf expected_second_failure)"'" >&2 + exit 1 +fi +grep -Eq "\"status_code\"[[:space:]]*:[[:space:]]*10040" "${failure_output}" +rm -f "${failure_output}" +' + +log "$(trf verification_succeeded "${INSTALL_TAG}" "${UPGRADE_TAG:+ upgrade=${UPGRADE_TAG}}")" diff --git a/wiki/EPCTL.en.md b/wiki/EPCTL.en.md new file mode 100644 index 0000000..3e1ab9b --- /dev/null +++ b/wiki/EPCTL.en.md @@ -0,0 +1,213 @@ +# epctl Installation and Verification Scripts + +`epctl` is the repo-root Linux binary installer and service manager for released `epusdt` binaries on GitHub Releases. +`epctl-docker-test.sh` is the matching end-to-end validation script. It launches Ubuntu + systemd in Docker and verifies download, install, startup, upgrade, and init-password behavior with real release artifacts. + +## Scope + +- Linux only +- Binary installation only +- Release source is fixed to `https://github.com/GMWalletApp/epusdt/releases` +- Service management is based on systemd + +## Dependencies and Privileges + +`epctl` expects these commands: + +- `curl` +- `tar` +- `systemctl` +- `install` +- `grep` +- `sed` + +Notes: + +- `install`, `upgrade`, and `self-install` write into `/opt`, `/etc/systemd`, and `/usr/local/bin` +- `status` and `logs` automatically re-run through `sudo` when needed +- in practice, the operator should have `sudo` access + +## Fixed Paths + +| Item | Path | +|------|------| +| Install directory | `/opt/epusdt` | +| Main binary | `/opt/epusdt/epusdt` | +| Active config | `/opt/epusdt/.env` | +| Example config | `/opt/epusdt/.env.example` | +| Extracted frontend assets | `/opt/epusdt/www` | +| Download cache | `/tmp/epusdt//` | +| systemd unit | `/etc/systemd/system/epusdt.service` | +| Global epctl path | `/usr/local/bin/epctl` | + +## Quick Start + +Run the interactive menu from the repo root: + +```bash +./epctl +``` + +The default interactive language is Chinese. You can force either language: + +```bash +./epctl zh +./epctl en +./epctl --lang zh help +./epctl --lang en help +``` + +Install the script into PATH: + +```bash +./epctl self-install +epctl +``` + +## Common Commands + +Download a specific release: + +```bash +./epctl download --tag v1.0.8 +``` + +Install the service: + +```bash +./epctl install --tag v1.0.8 \ + --app-uri https://pay.example.com \ + --listen 127.0.0.1:18000 +``` + +Upgrade to a newer release: + +```bash +./epctl upgrade --tag v1.0.9 +``` + +Inspect config, status, and logs: + +```bash +./epctl show-config +./epctl status +./epctl logs --lines 200 +``` + +Request the initial admin password: + +```bash +./epctl init-password +``` + +## Behavior When `--tag` Is Omitted + +For `download`, `install`, and `upgrade`, `epctl` resolves the current latest GitHub release tag first, then shows the exact tag and asks for confirmation. + +Example: + +```bash +./epctl install --app-uri https://pay.example.com +``` + +In interactive use, the script will display the resolved latest tag before continuing. +For automation, passing `--tag` explicitly is preferred. If you intentionally want to skip the confirmation, use: + +```bash +EPCTL_ASSUME_YES=1 ./epctl download +``` + +## What Happens on First Install + +`install` performs these steps: + +1. Detect the current CPU architecture and download the matching GitHub Release archive +2. Extract into `/tmp/epusdt//extract/` +3. Install the binary to `/opt/epusdt/epusdt` +4. Install `.env.example` to `/opt/epusdt/.env.example` +5. Create the system user and group `epusdt` +6. Auto-create `/opt/epusdt/.env` from `.env.example` if it does not exist +7. Write and enable `epusdt.service` + +When `.env` is auto-created, the script applies only the minimum bootstrap changes: + +- `install=false` +- `app_uri=<--app-uri, default http://127.0.0.1:8000>` +- `http_listen=<--listen, default 127.0.0.1:8000>` + +If `/opt/epusdt/.env` already exists, install and upgrade keep it unchanged. + +## systemd Service Details + +The service name is fixed to `epusdt.service` and uses these core settings: + +```ini +WorkingDirectory=/opt/epusdt +ExecStart=/opt/epusdt/epusdt http start +User=epusdt +Group=epusdt +Restart=always +RestartSec=3 +``` + +The working directory stays at `/opt/epusdt` because the program extracts its `www/` assets next to the binary. + +## What `init-password` Does + +`epctl init-password` only calls the local HTTP route: + +```text +GET /admin/api/v1/auth/init-password +``` + +It does not read the database directly. + +The script reads `http_listen` from `/opt/epusdt/.env` and normalizes these listen values into a local request target: + +- `:8000` -> `127.0.0.1:8000` +- `0.0.0.0:8000` -> `127.0.0.1:8000` + +If the API returns `10040`, the bootstrap plaintext password is no longer available. Common reasons are: + +- the admin password has already been changed +- the initial password has already been consumed and cannot be fetched again + +In that case, `epctl` prints the original HTTP error body for diagnosis. + +## Docker Validation Script + +The repo also provides: + +```bash +./epctl-docker-test.sh [upgrade-tag] +``` + +Examples: + +```bash +./epctl-docker-test.sh v1.0.6 +./epctl-docker-test.sh --lang en v1.0.6 v1.0.8 +``` + +It performs these checks on the local machine: + +- builds an `ubuntu:24.04` + systemd test image +- starts a privileged container +- runs `epctl self-install` inside the container +- downloads real GitHub Release artifacts +- installs `epusdt` +- verifies the systemd service, `www/index.html`, config output, logs, and status +- verifies that `init-password` succeeds once and later returns `10040` after the admin password is changed + +Requirements: + +- Docker installed locally +- permission to run Docker +- outbound access to GitHub Releases + +## Recommendations + +- Prefer explicit `--tag` values in automation +- After installation, run `./epctl show-config` once to verify the active `.env` +- Change the admin password immediately after retrieving the initial password +- If you want to validate the installer itself, run `./epctl-docker-test.sh` first diff --git a/wiki/EPCTL.md b/wiki/EPCTL.md new file mode 100644 index 0000000..e58dcb8 --- /dev/null +++ b/wiki/EPCTL.md @@ -0,0 +1,213 @@ +# epctl 安装与验证脚本 + +`epctl` 是仓库顶层的 Linux 二进制安装管理脚本,面向已经发布到 GitHub Releases 的 `epusdt` 二进制包。 +`epctl-docker-test.sh` 是配套的真实验收脚本,用本机 Docker 启动 Ubuntu + systemd 容器,完整验证安装、启动、升级和初始化密码流程。 + +## 适用范围 + +- 仅支持 Linux +- 仅支持二进制安装 +- 安装源固定为 `https://github.com/GMWalletApp/epusdt/releases` +- 默认通过 systemd 管理服务 + +## 依赖与权限 + +`epctl` 依赖这些基础命令: + +- `curl` +- `tar` +- `systemctl` +- `install` +- `grep` +- `sed` + +其中: + +- `install`、`upgrade`、`self-install` 需要写入 `/opt`、`/etc/systemd`、`/usr/local/bin` +- `status`、`logs` 会在需要时自动通过 `sudo` 重新执行 +- 所以日常使用建议当前用户具备 `sudo` 权限 + +## 固定路径 + +| 项目 | 路径 | +|------|------| +| 安装目录 | `/opt/epusdt` | +| 主程序 | `/opt/epusdt/epusdt` | +| 配置文件 | `/opt/epusdt/.env` | +| 示例配置 | `/opt/epusdt/.env.example` | +| 前端释放目录 | `/opt/epusdt/www` | +| 下载缓存 | `/tmp/epusdt//` | +| systemd unit | `/etc/systemd/system/epusdt.service` | +| epctl 全局安装位置 | `/usr/local/bin/epctl` | + +## 快速开始 + +直接在仓库根目录运行交互菜单: + +```bash +./epctl +``` + +默认优先进入中文界面。你也可以显式指定语言: + +```bash +./epctl zh +./epctl en +./epctl --lang zh help +./epctl --lang en help +``` + +如果想把脚本装进 PATH: + +```bash +./epctl self-install +epctl +``` + +## 常用命令 + +下载指定版本: + +```bash +./epctl download --tag v1.0.8 +``` + +安装服务: + +```bash +./epctl install --tag v1.0.8 \ + --app-uri https://pay.example.com \ + --listen 127.0.0.1:18000 +``` + +升级到新版本: + +```bash +./epctl upgrade --tag v1.0.9 +``` + +查看配置、状态、日志: + +```bash +./epctl show-config +./epctl status +./epctl logs --lines 200 +``` + +请求初始化管理员密码: + +```bash +./epctl init-password +``` + +## 不传 `--tag` 时的行为 + +`download`、`install`、`upgrade` 在未传 `--tag` 时,会先调用 GitHub API 解析当前 latest release tag,再向用户显示实际 tag 并确认。 + +例如: + +```bash +./epctl install --app-uri https://pay.example.com +``` + +交互模式下会先提示检测到的最新 tag。 +非交互脚本执行时,建议显式传入 `--tag`。如果你明确要跳过确认,可以设置: + +```bash +EPCTL_ASSUME_YES=1 ./epctl download +``` + +## 首次安装时会发生什么 + +执行 `install` 时,脚本会: + +1. 按当前机器架构下载 GitHub Release 压缩包 +2. 解压到 `/tmp/epusdt//extract/` +3. 安装二进制到 `/opt/epusdt/epusdt` +4. 安装 `.env.example` 到 `/opt/epusdt/.env.example` +5. 创建系统用户和组 `epusdt` +6. 若 `/opt/epusdt/.env` 不存在,则从 `.env.example` 自动生成 +7. 写入并启用 `epusdt.service` + +自动生成 `.env` 时,脚本只会补默认上线所需的最小改动: + +- `install=false` +- `app_uri=<--app-uri,默认 http://127.0.0.1:8000>` +- `http_listen=<--listen,默认 127.0.0.1:8000>` + +如果 `/opt/epusdt/.env` 已存在,则安装和升级都会保留它,不会覆盖。 + +## systemd 服务说明 + +脚本注册的服务名固定为 `epusdt.service`,核心参数如下: + +```ini +WorkingDirectory=/opt/epusdt +ExecStart=/opt/epusdt/epusdt http start +User=epusdt +Group=epusdt +Restart=always +RestartSec=3 +``` + +`WorkingDirectory` 固定为 `/opt/epusdt`,因为程序会在二进制同级目录释放 `www/` 静态文件。 + +## `init-password` 的含义 + +`epctl init-password` 只会请求本地 HTTP 路由: + +```text +GET /admin/api/v1/auth/init-password +``` + +它不会直接读数据库。 + +脚本会从 `/opt/epusdt/.env` 解析 `http_listen`,然后自动把这些监听写法转成本地可请求地址: + +- `:8000` -> `127.0.0.1:8000` +- `0.0.0.0:8000` -> `127.0.0.1:8000` + +如果接口返回 `10040`,含义是初始化明文密码已经不可用。常见原因是: + +- 管理员已经登录并修改过密码 +- 初始化密码已经被消费,当前不再允许再次取回 + +此时脚本会直接把接口原始错误输出出来,方便排查。 + +## Docker 验收脚本 + +仓库顶层提供: + +```bash +./epctl-docker-test.sh [upgrade-tag] +``` + +示例: + +```bash +./epctl-docker-test.sh v1.0.6 +./epctl-docker-test.sh --lang zh v1.0.6 v1.0.8 +``` + +它会在本机: + +- 构建 `ubuntu:24.04` + systemd 测试镜像 +- 启动一个特权容器 +- 在容器内执行 `epctl self-install` +- 下载真实 GitHub Release +- 安装 `epusdt` +- 检查 `systemd` 服务、`www/index.html`、配置文件、日志、状态输出 +- 验证 `init-password` 首次成功、修改管理员密码后再次请求返回 `10040` + +运行前提: + +- 本机已安装 Docker +- 当前用户有权限执行 Docker +- 宿主机能够访问 GitHub Releases + +## 建议 + +- 自动化部署场景优先显式传 `--tag` +- 生产环境建议安装完成后先执行一次 `./epctl show-config` +- 首次拿到初始化密码后,建议立即登录后台修改管理员密码 +- 如果只是验证脚本是否可用,优先跑 `./epctl-docker-test.sh` From 5e4dcfb539d02e32eeb87979a214ea7871c6d127 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 29 Jun 2026 06:27:32 +0000 Subject: [PATCH 6/8] chore(www): sync frontend build --- src/www/assets/401-BxmwY4ZX.js | 1 - src/www/assets/401-CvFvdOr5.js | 1 + src/www/assets/403-DROJKVmF.js | 1 - src/www/assets/403-DfLmRqHM.js | 1 + src/www/assets/404-CfnT1SCK.js | 1 - src/www/assets/404-pq4P7jD8.js | 1 + src/www/assets/500-Ch8AmacC.js | 1 + src/www/assets/500-Ckr9SgA0.js | 1 - src/www/assets/503-DqC0HW48.js | 1 + src/www/assets/503-KDAPoK8D.js | 1 - ...nly-fFIveJVd.js => ClientOnly-Bj5CESUC.js} | 2 +- .../{Match-Cm64cgS9.js => Match-DrG03Wse.js} | 2 +- ...atches-DYR79wJf.js => Matches-9qnXJNrS.js} | 2 +- src/www/assets/_error-BSLzv73v.js | 1 - src/www/assets/_error-BWjxg4aC.js | 1 + src/www/assets/_error-CeoUllM-.js | 2 - src/www/assets/_error-CtV7sHbI.js | 2 + src/www/assets/_trade_id-BQK1SM3u.js | 2 - src/www/assets/_trade_id-Busmu9hU.js | 4 -- src/www/assets/_trade_id-CrABgEyD.js | 4 ++ src/www/assets/_trade_id-DIf2n6tl.js | 2 + ...sses-BOy7duFM.js => addresses-CNbxs6Fb.js} | 4 +- ...nce-CslRyYyk.js => appearance-Cl8fvRSv.js} | 2 +- ....js => auth-animation-context-CmPA3sF3.js} | 2 +- ...ore-Csn6HPxJ.js => auth-store-De4Y7PFV.js} | 2 +- .../{badge-BP05f1dq.js => badge-VJlwwTW5.js} | 2 +- ...{button-BgMnOYKD.js => button-C_NDYaz8.js} | 2 +- .../{card-C7G2YcSg.js => card-DiF5YaRi.js} | 2 +- src/www/assets/chains-D5PNpB55.js | 1 + src/www/assets/chains-ZsMRX5G9.js | 1 - ...e-B0tGSNqG.js => chains-store-DCzO87jZ.js} | 2 +- ...ckbox-CKrZFk1G.js => checkbox-CTHgcB3t.js} | 2 +- ...f2Gm.js => coming-soon-dialog-B34F88bO.js} | 2 +- ...ommand-CIv3ggHf.js => command-B_SlhXkX.js} | 2 +- ...YmxNnOr3.js => confirm-dialog-D1L-0EhT.js} | 4 +- ...on-DsKMU9xz.js => crypto-icon-DnliVYVs.js} | 2 +- ...oard-DLh95Ec3.js => dashboard-C_GaAVh0.js} | 6 +- ...ble-C3Nm2K6Z.js => data-table-1LQSBhN2.js} | 4 +- ...{dialog-BJ5VA2v_.js => dialog-CZ-2RPb-.js} | 2 +- ...isplay-JOhpHnKq.js => display-CqGwMVHS.js} | 2 +- .../{dist-C97YBjnT.js => dist-BNFQuJTu.js} | 2 +- .../{dist-036CEgdV.js => dist-C5heX0fx.js} | 2 +- .../{dist-C6i4A_Js.js => dist-CHFjpVqk.js} | 2 +- .../{dist-BFnxq45V.js => dist-Cc8_LDAq.js} | 2 +- .../{dist-BSXD7MjW.js => dist-CsIb2aLK.js} | 2 +- .../{dist-D7AUoOWu.js => dist-D0DoWChj.js} | 2 +- .../{dist-B0ikDpJU.js => dist-D4X8zGEB.js} | 2 +- .../{dist-CKFLmh1A.js => dist-DPPquN_M.js} | 2 +- .../{dist-Bmn8KNt7.js => dist-Dtn5c_cx.js} | 2 +- .../{dist-Clua1vrx.js => dist-DvwKOQ8R.js} | 2 +- .../{dist-BGqHIBUe.js => dist-JOUh6qvR.js} | 2 +- .../{dist-DGDEBCW9.js => dist-ZdRQQNeu.js} | 2 +- .../{dist-CPQ-sRtL.js => dist-iiotRAEO.js} | 2 +- .../{dist-_ND6L-P3.js => dist-rcWP-8Cu.js} | 2 +- ...-8-hEBtzr.js => dropdown-menu-DzCIpsuG.js} | 2 +- ...-CppUpD8k.js => editor.client-CF-kC0wX.js} | 4 +- ...te-BdzO6t8R.js => empty-state-CxE4wU3V.js} | 2 +- .../{epay-F8J9Rfxi.js => epay-BPdlNSqh.js} | 2 +- ...{epusdt-DkhuuUpL.js => epusdt-BvGYu9TV.js} | 2 +- ...{es2015-D8VLlhse.js => es2015-DT8UeWzs.js} | 2 +- ...-CtpKPVa7.js => font-provider-BPsIRWbb.js} | 2 +- src/www/assets/forbidden-CgQyYxDt.js | 1 + src/www/assets/forbidden-DZPSchCU.js | 1 - .../{form-BhKmyN6D.js => form-KfFEakes.js} | 2 +- src/www/assets/general-error-BoAB2alm.js | 1 + src/www/assets/general-error-BoIfl_4Z.js | 1 - ...{header-D45l3Ai7.js => header-DVAsq5d6.js} | 2 +- .../{help-n4xnORtp.js => help-Bq6Uj7UY.js} | 2 +- .../{index-DhgNijKi.js => index-3E84QvKw.js} | 2 +- .../{input-BleRUV2A.js => input-8zzM34r5.js} | 2 +- src/www/assets/install-B-GE7uWS.js | 1 + src/www/assets/install-C3-O8MFY.js | 1 - ...s-d7FQWamq.js => integrations-Clnk2I57.js} | 2 +- src/www/assets/keys-D6xhmsEg.js | 2 - src/www/assets/keys-DvE6Ll4y.js | 2 + .../{label-CQ1eaOwZ.js => label-DNL0sHKL.js} | 2 +- ...{labels-D0HnAPk9.js => labels-Cbc2zlmv.js} | 2 +- ...3-DM.js => lazyRouteComponent-JF8ipq5d.js} | 2 +- .../{lib-DCke3ZPi.js => lib-DDezYSnW.js} | 2 +- .../{link-BYG8nKNO.js => link-DPnL8P5J.js} | 2 +- src/www/assets/logo-Ce__4GTc.js | 1 - src/www/assets/logo-agrtpj2n.js | 1 + ...text-fyhANC4b.js => long-text-DNqlDi0R.js} | 2 +- .../{main-DnJ8otd-.js => main-C1R3Hvq1.js} | 2 +- ...w7L8t.js => maintenance-error-DeZhljU8.js} | 2 +- src/www/assets/messages-BOatyqUm.js | 1 + src/www/assets/messages-Bp0bCjzp.js | 1 - src/www/assets/not-found-error-BvJzTnw0.js | 1 + src/www/assets/not-found-error-CHHM1I1c.js | 1 - ...-OX72ELc1.js => notifications-xdKOW8nn.js} | 2 +- src/www/assets/okpay-Ce2WH04h.js | 1 - src/www/assets/okpay-D5pTA_4W.js | 1 + ...{orders-XoL5rQoL.js => orders-C2v2goOf.js} | 2 +- ...er-CDwG3nxs.js => page-header-GTtyZFBB.js} | 2 +- src/www/assets/password-CiaPXG92.js | 1 - src/www/assets/password-DElKXGVw.js | 1 + ...D8nK3bk7.js => password-input-95hMTMdh.js} | 2 +- .../{pay-D-KPn-qm.js => pay-BNu4n_oI.js} | 4 +- ...-CWhCyjHa.js => payment-setup-BFIKIu1u.js} | 2 +- ...opover-YeKifm3K.js => popover-NQZzcPDh.js} | 2 +- ...up-DrQ9k883.js => radio-group-D2rceepu.js} | 2 +- .../{route-BxnuR592.js => route-C6USHQDN.js} | 2 +- .../{route-B7oa6zSg.js => route-CAiA_U_q.js} | 2 +- .../{route-3D4HslVP.js => route-D1gzbhTf.js} | 2 +- .../{route-CMVRG6IO.js => route-DvJeidrw.js} | 2 +- .../{route-C6lKmXki.js => route-GrVEK0V1.js} | 2 +- .../{route-9wAONQMq.js => route-lp7ScXTd.js} | 2 +- .../{route-Bin9ihv_.js => route-wzPKSRj2.js} | 2 +- ...{router-BluvjQRz.js => router-eyRTkMwc.js} | 4 +- src/www/assets/rpc-cAFAt1WZ.js | 1 + src/www/assets/rpc-m8HV1fJx.js | 1 - src/www/assets/search-provider-Bl2HDfcG.js | 1 - src/www/assets/search-provider-C-_FQI9C.js | 1 + ...{select-C9s05In_.js => select-CzebumOF.js} | 2 +- ...ator-DbmFQXe4.js => separator-CsUemQNs.js} | 2 +- ...tings-BbpP20ev.js => settings-eRG1_Yuf.js} | 2 +- ...jDF.js => show-submitted-data-BqZb-_Pf.js} | 2 +- ...av-DDS5oBdd.js => sidebar-nav-LZqaVZGH.js} | 2 +- ...ign-in-MWZiX7xb.js => sign-in-_ux3l1kN.js} | 2 +- ...leton-BQsmx80h.js => skeleton-CmDjDV1O.js} | 2 +- ...{switch-CVYl00Vs.js => switch-CgoJjvdz.js} | 2 +- ...{system-CcMhRmKJ.js => system-CzKDOsCg.js} | 2 +- .../{table-503PQfKg.js => table-9UOy2Vxt.js} | 2 +- .../{tabs-x8EHz9HA.js => tabs-6Ep1KePr.js} | 2 +- ...egram-DTazPg6z.js => telegram-Br_DijOI.js} | 2 +- ...tarea-BaSGKw3a.js => textarea-C8ejjLzk.js} | 2 +- ...CyJJNAox.js => theme-provider-BREWrHp_.js} | 2 +- ...h-B3Qb32n8.js => theme-switch-CHLQml_8.js} | 2 +- ...ooltip-Gx9CUpPD.js => tooltip-xZuTTfnF.js} | 2 +- src/www/assets/unauthorized-error-B6bKLdq-.js | 1 - src/www/assets/unauthorized-error-CtrGmVOn.js | 1 + ...{wallet-Bgblr4kl.js => wallet-CtiawGS1.js} | 2 +- src/www/index.html | 60 +++++++++---------- src/www/sw.js | 2 +- 134 files changed, 155 insertions(+), 155 deletions(-) delete mode 100644 src/www/assets/401-BxmwY4ZX.js create mode 100644 src/www/assets/401-CvFvdOr5.js delete mode 100644 src/www/assets/403-DROJKVmF.js create mode 100644 src/www/assets/403-DfLmRqHM.js delete mode 100644 src/www/assets/404-CfnT1SCK.js create mode 100644 src/www/assets/404-pq4P7jD8.js create mode 100644 src/www/assets/500-Ch8AmacC.js delete mode 100644 src/www/assets/500-Ckr9SgA0.js create mode 100644 src/www/assets/503-DqC0HW48.js delete mode 100644 src/www/assets/503-KDAPoK8D.js rename src/www/assets/{ClientOnly-fFIveJVd.js => ClientOnly-Bj5CESUC.js} (99%) rename src/www/assets/{Match-Cm64cgS9.js => Match-DrG03Wse.js} (99%) rename src/www/assets/{Matches-DYR79wJf.js => Matches-9qnXJNrS.js} (90%) delete mode 100644 src/www/assets/_error-BSLzv73v.js create mode 100644 src/www/assets/_error-BWjxg4aC.js delete mode 100644 src/www/assets/_error-CeoUllM-.js create mode 100644 src/www/assets/_error-CtV7sHbI.js delete mode 100644 src/www/assets/_trade_id-BQK1SM3u.js delete mode 100644 src/www/assets/_trade_id-Busmu9hU.js create mode 100644 src/www/assets/_trade_id-CrABgEyD.js create mode 100644 src/www/assets/_trade_id-DIf2n6tl.js rename src/www/assets/{addresses-BOy7duFM.js => addresses-CNbxs6Fb.js} (81%) rename src/www/assets/{appearance-CslRyYyk.js => appearance-Cl8fvRSv.js} (79%) rename src/www/assets/{auth-animation-context-CO6PD8ih.js => auth-animation-context-CmPA3sF3.js} (89%) rename src/www/assets/{auth-store-Csn6HPxJ.js => auth-store-De4Y7PFV.js} (64%) rename src/www/assets/{badge-BP05f1dq.js => badge-VJlwwTW5.js} (90%) rename src/www/assets/{button-BgMnOYKD.js => button-C_NDYaz8.js} (99%) rename src/www/assets/{card-C7G2YcSg.js => card-DiF5YaRi.js} (86%) create mode 100644 src/www/assets/chains-D5PNpB55.js delete mode 100644 src/www/assets/chains-ZsMRX5G9.js rename src/www/assets/{chains-store-B0tGSNqG.js => chains-store-DCzO87jZ.js} (92%) rename src/www/assets/{checkbox-CKrZFk1G.js => checkbox-CTHgcB3t.js} (92%) rename src/www/assets/{coming-soon-dialog-BWHKf2Gm.js => coming-soon-dialog-B34F88bO.js} (78%) rename src/www/assets/{command-CIv3ggHf.js => command-B_SlhXkX.js} (97%) rename src/www/assets/{confirm-dialog-YmxNnOr3.js => confirm-dialog-D1L-0EhT.js} (93%) rename src/www/assets/{crypto-icon-DsKMU9xz.js => crypto-icon-DnliVYVs.js} (97%) rename src/www/assets/{dashboard-DLh95Ec3.js => dashboard-C_GaAVh0.js} (98%) rename src/www/assets/{data-table-C3Nm2K6Z.js => data-table-1LQSBhN2.js} (81%) rename src/www/assets/{dialog-BJ5VA2v_.js => dialog-CZ-2RPb-.js} (93%) rename src/www/assets/{display-JOhpHnKq.js => display-CqGwMVHS.js} (54%) rename src/www/assets/{dist-C97YBjnT.js => dist-BNFQuJTu.js} (80%) rename src/www/assets/{dist-036CEgdV.js => dist-C5heX0fx.js} (89%) rename src/www/assets/{dist-C6i4A_Js.js => dist-CHFjpVqk.js} (85%) rename src/www/assets/{dist-BFnxq45V.js => dist-Cc8_LDAq.js} (96%) rename src/www/assets/{dist-BSXD7MjW.js => dist-CsIb2aLK.js} (99%) rename src/www/assets/{dist-D7AUoOWu.js => dist-D0DoWChj.js} (91%) rename src/www/assets/{dist-B0ikDpJU.js => dist-D4X8zGEB.js} (83%) rename src/www/assets/{dist-CKFLmh1A.js => dist-DPPquN_M.js} (97%) rename src/www/assets/{dist-Bmn8KNt7.js => dist-Dtn5c_cx.js} (73%) rename src/www/assets/{dist-Clua1vrx.js => dist-DvwKOQ8R.js} (93%) rename src/www/assets/{dist-BGqHIBUe.js => dist-JOUh6qvR.js} (99%) rename src/www/assets/{dist-DGDEBCW9.js => dist-ZdRQQNeu.js} (88%) rename src/www/assets/{dist-CPQ-sRtL.js => dist-iiotRAEO.js} (92%) rename src/www/assets/{dist-_ND6L-P3.js => dist-rcWP-8Cu.js} (93%) rename src/www/assets/{dropdown-menu-8-hEBtzr.js => dropdown-menu-DzCIpsuG.js} (96%) rename src/www/assets/{editor.client-CppUpD8k.js => editor.client-CF-kC0wX.js} (96%) rename src/www/assets/{empty-state-BdzO6t8R.js => empty-state-CxE4wU3V.js} (78%) rename src/www/assets/{epay-F8J9Rfxi.js => epay-BPdlNSqh.js} (56%) rename src/www/assets/{epusdt-DkhuuUpL.js => epusdt-BvGYu9TV.js} (90%) rename src/www/assets/{es2015-D8VLlhse.js => es2015-DT8UeWzs.js} (98%) rename src/www/assets/{font-provider-CtpKPVa7.js => font-provider-BPsIRWbb.js} (91%) create mode 100644 src/www/assets/forbidden-CgQyYxDt.js delete mode 100644 src/www/assets/forbidden-DZPSchCU.js rename src/www/assets/{form-BhKmyN6D.js => form-KfFEakes.js} (99%) create mode 100644 src/www/assets/general-error-BoAB2alm.js delete mode 100644 src/www/assets/general-error-BoIfl_4Z.js rename src/www/assets/{header-D45l3Ai7.js => header-DVAsq5d6.js} (81%) rename src/www/assets/{help-n4xnORtp.js => help-Bq6Uj7UY.js} (88%) rename src/www/assets/{index-DhgNijKi.js => index-3E84QvKw.js} (99%) rename src/www/assets/{input-BleRUV2A.js => input-8zzM34r5.js} (84%) create mode 100644 src/www/assets/install-B-GE7uWS.js delete mode 100644 src/www/assets/install-C3-O8MFY.js rename src/www/assets/{integrations-d7FQWamq.js => integrations-Clnk2I57.js} (86%) delete mode 100644 src/www/assets/keys-D6xhmsEg.js create mode 100644 src/www/assets/keys-DvE6Ll4y.js rename src/www/assets/{label-CQ1eaOwZ.js => label-DNL0sHKL.js} (83%) rename src/www/assets/{labels-D0HnAPk9.js => labels-Cbc2zlmv.js} (78%) rename src/www/assets/{lazyRouteComponent-iygd3-DM.js => lazyRouteComponent-JF8ipq5d.js} (85%) rename src/www/assets/{lib-DCke3ZPi.js => lib-DDezYSnW.js} (69%) rename src/www/assets/{link-BYG8nKNO.js => link-DPnL8P5J.js} (95%) delete mode 100644 src/www/assets/logo-Ce__4GTc.js create mode 100644 src/www/assets/logo-agrtpj2n.js rename src/www/assets/{long-text-fyhANC4b.js => long-text-DNqlDi0R.js} (78%) rename src/www/assets/{main-DnJ8otd-.js => main-C1R3Hvq1.js} (82%) rename src/www/assets/{maintenance-error-CuCw7L8t.js => maintenance-error-DeZhljU8.js} (51%) create mode 100644 src/www/assets/messages-BOatyqUm.js delete mode 100644 src/www/assets/messages-Bp0bCjzp.js create mode 100644 src/www/assets/not-found-error-BvJzTnw0.js delete mode 100644 src/www/assets/not-found-error-CHHM1I1c.js rename src/www/assets/{notifications-OX72ELc1.js => notifications-xdKOW8nn.js} (68%) delete mode 100644 src/www/assets/okpay-Ce2WH04h.js create mode 100644 src/www/assets/okpay-D5pTA_4W.js rename src/www/assets/{orders-XoL5rQoL.js => orders-C2v2goOf.js} (80%) rename src/www/assets/{page-header-CDwG3nxs.js => page-header-GTtyZFBB.js} (87%) delete mode 100644 src/www/assets/password-CiaPXG92.js create mode 100644 src/www/assets/password-DElKXGVw.js rename src/www/assets/{password-input-D8nK3bk7.js => password-input-95hMTMdh.js} (76%) rename src/www/assets/{pay-D-KPn-qm.js => pay-BNu4n_oI.js} (56%) rename src/www/assets/{payment-setup-CWhCyjHa.js => payment-setup-BFIKIu1u.js} (85%) rename src/www/assets/{popover-YeKifm3K.js => popover-NQZzcPDh.js} (92%) rename src/www/assets/{radio-group-DrQ9k883.js => radio-group-D2rceepu.js} (88%) rename src/www/assets/{route-BxnuR592.js => route-C6USHQDN.js} (65%) rename src/www/assets/{route-B7oa6zSg.js => route-CAiA_U_q.js} (99%) rename src/www/assets/{route-3D4HslVP.js => route-D1gzbhTf.js} (79%) rename src/www/assets/{route-CMVRG6IO.js => route-DvJeidrw.js} (64%) rename src/www/assets/{route-C6lKmXki.js => route-GrVEK0V1.js} (88%) rename src/www/assets/{route-9wAONQMq.js => route-lp7ScXTd.js} (52%) rename src/www/assets/{route-Bin9ihv_.js => route-wzPKSRj2.js} (95%) rename src/www/assets/{router-BluvjQRz.js => router-eyRTkMwc.js} (77%) create mode 100644 src/www/assets/rpc-cAFAt1WZ.js delete mode 100644 src/www/assets/rpc-m8HV1fJx.js delete mode 100644 src/www/assets/search-provider-Bl2HDfcG.js create mode 100644 src/www/assets/search-provider-C-_FQI9C.js rename src/www/assets/{select-C9s05In_.js => select-CzebumOF.js} (97%) rename src/www/assets/{separator-DbmFQXe4.js => separator-CsUemQNs.js} (85%) rename src/www/assets/{settings-BbpP20ev.js => settings-eRG1_Yuf.js} (94%) rename src/www/assets/{show-submitted-data-C8ocsjDF.js => show-submitted-data-BqZb-_Pf.js} (64%) rename src/www/assets/{sidebar-nav-DDS5oBdd.js => sidebar-nav-LZqaVZGH.js} (78%) rename src/www/assets/{sign-in-MWZiX7xb.js => sign-in-_ux3l1kN.js} (62%) rename src/www/assets/{skeleton-BQsmx80h.js => skeleton-CmDjDV1O.js} (65%) rename src/www/assets/{switch-CVYl00Vs.js => switch-CgoJjvdz.js} (89%) rename src/www/assets/{system-CcMhRmKJ.js => system-CzKDOsCg.js} (73%) rename src/www/assets/{table-503PQfKg.js => table-9UOy2Vxt.js} (90%) rename src/www/assets/{tabs-x8EHz9HA.js => tabs-6Ep1KePr.js} (92%) rename src/www/assets/{telegram-DTazPg6z.js => telegram-Br_DijOI.js} (75%) rename src/www/assets/{textarea-BaSGKw3a.js => textarea-C8ejjLzk.js} (80%) rename src/www/assets/{theme-provider-CyJJNAox.js => theme-provider-BREWrHp_.js} (94%) rename src/www/assets/{theme-switch-B3Qb32n8.js => theme-switch-CHLQml_8.js} (68%) rename src/www/assets/{tooltip-Gx9CUpPD.js => tooltip-xZuTTfnF.js} (94%) delete mode 100644 src/www/assets/unauthorized-error-B6bKLdq-.js create mode 100644 src/www/assets/unauthorized-error-CtrGmVOn.js rename src/www/assets/{wallet-Bgblr4kl.js => wallet-CtiawGS1.js} (88%) diff --git a/src/www/assets/401-BxmwY4ZX.js b/src/www/assets/401-BxmwY4ZX.js deleted file mode 100644 index 0a4d9aa..0000000 --- a/src/www/assets/401-BxmwY4ZX.js +++ /dev/null @@ -1 +0,0 @@ -import{t as e}from"./unauthorized-error-B6bKLdq-.js";var t=e;export{t as component}; \ No newline at end of file diff --git a/src/www/assets/401-CvFvdOr5.js b/src/www/assets/401-CvFvdOr5.js new file mode 100644 index 0000000..3b3d3ca --- /dev/null +++ b/src/www/assets/401-CvFvdOr5.js @@ -0,0 +1 @@ +import{t as e}from"./unauthorized-error-CtrGmVOn.js";var t=e;export{t as component}; \ No newline at end of file diff --git a/src/www/assets/403-DROJKVmF.js b/src/www/assets/403-DROJKVmF.js deleted file mode 100644 index 5171c8a..0000000 --- a/src/www/assets/403-DROJKVmF.js +++ /dev/null @@ -1 +0,0 @@ -import{t as e}from"./forbidden-DZPSchCU.js";var t=e;export{t as component}; \ No newline at end of file diff --git a/src/www/assets/403-DfLmRqHM.js b/src/www/assets/403-DfLmRqHM.js new file mode 100644 index 0000000..b2961a6 --- /dev/null +++ b/src/www/assets/403-DfLmRqHM.js @@ -0,0 +1 @@ +import{t as e}from"./forbidden-CgQyYxDt.js";var t=e;export{t as component}; \ No newline at end of file diff --git a/src/www/assets/404-CfnT1SCK.js b/src/www/assets/404-CfnT1SCK.js deleted file mode 100644 index 3f78728..0000000 --- a/src/www/assets/404-CfnT1SCK.js +++ /dev/null @@ -1 +0,0 @@ -import{t as e}from"./not-found-error-CHHM1I1c.js";var t=e;export{t as component}; \ No newline at end of file diff --git a/src/www/assets/404-pq4P7jD8.js b/src/www/assets/404-pq4P7jD8.js new file mode 100644 index 0000000..5174e10 --- /dev/null +++ b/src/www/assets/404-pq4P7jD8.js @@ -0,0 +1 @@ +import{t as e}from"./not-found-error-BvJzTnw0.js";var t=e;export{t as component}; \ No newline at end of file diff --git a/src/www/assets/500-Ch8AmacC.js b/src/www/assets/500-Ch8AmacC.js new file mode 100644 index 0000000..384d46c --- /dev/null +++ b/src/www/assets/500-Ch8AmacC.js @@ -0,0 +1 @@ +import{t as e}from"./general-error-BoAB2alm.js";var t=e;export{t as component}; \ No newline at end of file diff --git a/src/www/assets/500-Ckr9SgA0.js b/src/www/assets/500-Ckr9SgA0.js deleted file mode 100644 index 87008b9..0000000 --- a/src/www/assets/500-Ckr9SgA0.js +++ /dev/null @@ -1 +0,0 @@ -import{t as e}from"./general-error-BoIfl_4Z.js";var t=e;export{t as component}; \ No newline at end of file diff --git a/src/www/assets/503-DqC0HW48.js b/src/www/assets/503-DqC0HW48.js new file mode 100644 index 0000000..5f816ba --- /dev/null +++ b/src/www/assets/503-DqC0HW48.js @@ -0,0 +1 @@ +import{t as e}from"./maintenance-error-DeZhljU8.js";var t=e;export{t as component}; \ No newline at end of file diff --git a/src/www/assets/503-KDAPoK8D.js b/src/www/assets/503-KDAPoK8D.js deleted file mode 100644 index 113325a..0000000 --- a/src/www/assets/503-KDAPoK8D.js +++ /dev/null @@ -1 +0,0 @@ -import{t as e}from"./maintenance-error-CuCw7L8t.js";var t=e;export{t as component}; \ No newline at end of file diff --git a/src/www/assets/ClientOnly-fFIveJVd.js b/src/www/assets/ClientOnly-Bj5CESUC.js similarity index 99% rename from src/www/assets/ClientOnly-fFIveJVd.js rename to src/www/assets/ClientOnly-Bj5CESUC.js index 613341d..b559aab 100644 --- a/src/www/assets/ClientOnly-fFIveJVd.js +++ b/src/www/assets/ClientOnly-Bj5CESUC.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";import{m as r,n as i}from"./useStore-CupyIEEP.js";function a(e){let t=new Map,n,r,i=e=>{e.next&&(e.prev?(e.prev.next=e.next,e.next.prev=e.prev,e.next=void 0,r&&(r.next=e,e.prev=r)):(e.next.prev=void 0,n=e.next,e.next=void 0,r&&(e.prev=r,r.next=e)),r=e)};return{get(e){let n=t.get(e);if(n)return i(n),n.value},set(a,o){if(t.size>=e&&n){let e=n;t.delete(e.key),e.next&&(n=e.next,e.next.prev=void 0),e===r&&(r=void 0)}let s=t.get(a);if(s)s.value=o,i(s);else{let e={key:a,value:o,prev:r};r&&(r.next=e),r=e,n||=e,t.set(a,e)}},clear(){t.clear(),n=void 0,r=void 0}}}var o=4,s=5;function c(e){let t=e.indexOf(`{`);if(t===-1)return null;let n=e.indexOf(`}`,t);return n===-1||t+1>=e.length?null:[t,n]}function l(e,t,n=new Uint16Array(6)){let r=e.indexOf(`/`,t),i=r===-1?e.length:r,a=e.substring(t,i);if(!a||!a.includes(`$`))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(a===`$`){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(a.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;let o=c(a);if(o){let[r,s]=o,c=a.charCodeAt(r+1);if(c===45){if(r+2!e.skipOnParamError&&e.caseSensitive===d&&e.prefix===p&&e.suffix===h);if(g)o=g;else{let e=m(1,n.fullPath??n.from,d,p,h);o=e,e.depth=a,e.parent=i,i.dynamic??=[],i.dynamic.push(e)}break}case 3:{let t=r.substring(s,e[1]),l=r.substring(e[4],c),d=u&&!!(t||l),p=t?d?t:t.toLowerCase():void 0,h=l?d?l:l.toLowerCase():void 0,g=!f&&i.optional?.find(e=>!e.skipOnParamError&&e.caseSensitive===d&&e.prefix===p&&e.suffix===h);if(g)o=g;else{let e=m(3,n.fullPath??n.from,d,p,h);o=e,e.parent=i,e.depth=a,i.optional??=[],i.optional.push(e)}break}case 2:{let t=r.substring(s,e[1]),l=r.substring(e[4],c),d=u&&!!(t||l),f=t?d?t:t.toLowerCase():void 0,p=l?d?l:l.toLowerCase():void 0,h=m(2,n.fullPath??n.from,d,f,p);o=h,h.parent=i,h.depth=a,i.wildcard??=[],i.wildcard.push(h)}}i=o}if(f&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(`/`)+1)===95){let e=p(n.fullPath??n.from);e.kind=s,e.parent=i,a++,e.depth=a,i.pathless??=[],i.pathless.push(e),i=e}let h=(n.path||!n.children)&&!n.isRoot;if(h&&r.endsWith(`/`)){let e=p(n.fullPath??n.from);e.kind=o,e.parent=i,a++,e.depth=a,i.index=e,i=e}i.parse=n.options?.params?.parse??null,i.skipOnParamError=f,i.parsingPriority=n.options?.skipRouteOnParseError?.priority??0,h&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(let r of n.children)u(e,t,r,d,i,a,c)}function d(e,t){if(e.skipOnParamError&&!t.skipOnParamError)return-1;if(!e.skipOnParamError&&t.skipOnParamError)return 1;if(e.skipOnParamError&&t.skipOnParamError&&(e.parsingPriority||t.parsingPriority))return t.parsingPriority-e.parsingPriority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function f(e){if(e.pathless)for(let t of e.pathless)f(t);if(e.static)for(let t of e.static.values())f(t);if(e.staticInsensitive)for(let t of e.staticInsensitive.values())f(t);if(e.dynamic?.length){e.dynamic.sort(d);for(let t of e.dynamic)f(t)}if(e.optional?.length){e.optional.sort(d);for(let t of e.optional)f(t)}if(e.wildcard?.length){e.wildcard.sort(d);for(let t of e.wildcard)f(t)}}function p(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}function m(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:n,prefix:r,suffix:i}}function h(e,t){let n=p(`/`),r=new Uint16Array(6);for(let t of e)u(!1,r,t,1,n,0);f(n),t.masksTree=n,t.flatCache=a(1e3)}function g(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=x(e,t.masksTree);return t.flatCache.set(e,r),r}function _(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=p(`/`),u(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),x(r,o,n)}function v(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=x(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=C(a.route)),t.matchCache.set(r,a),a}function y(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function b(e,t=!1,n){let r=p(e.fullPath),o=new Uint16Array(6),s={},c={},l=0;return u(t,o,e,1,r,0,e=>{if(n?.(e,l),e.id in s&&i(),s[e.id]=e,l!==0&&e.path){let t=y(e.fullPath);(!c[t]||e.fullPath.endsWith(`/`))&&(c[t]=e)}l++}),f(r),{processedTree:{segmentTree:r,singleCache:a(1e3),matchCache:a(1e3),flatCache:null,masksTree:null},routesById:s,routesByPath:c}}function x(e,t,n=!1){let r=e.split(`/`),i=T(e,r,t,n);if(!i)return null;let[a]=S(e,r,i);return{route:i.node.route,rawParams:a,parsedParams:i.parsedParams}}function S(e,t,n){let r=w(n.node),i=null,a=Object.create(null),c=n.extract?.part??0,l=n.extract?.node??0,u=n.extract?.path??0,d=n.extract?.segment??0;for(;l=0;n--){let i=r.optional[n];l.push({node:i,index:a,skipped:e,depth:t,statics:h,dynamics:g,optionals:_,extract:v,rawParams:y,parsedParams:b})}if(!x)for(let e=r.optional.length-1;e>=0;e--){let n=r.optional[e],{prefix:i,suffix:o}=n;if(i||o){let e=n.caseSensitive?S:C??=S.toLowerCase();if(i&&!e.startsWith(i)||o&&!e.endsWith(o))continue}l.push({node:n,index:a+1,skipped:p,depth:t,statics:h,dynamics:g,optionals:_+1,extract:v,rawParams:y,parsedParams:b})}}if(!x&&r.dynamic&&S)for(let e=r.dynamic.length-1;e>=0;e--){let t=r.dynamic[e],{prefix:n,suffix:i}=t;if(n||i){let e=t.caseSensitive?S:C??=S.toLowerCase();if(n&&!e.startsWith(n)||i&&!e.endsWith(i))continue}l.push({node:t,index:a+1,skipped:p,depth:m+1,statics:h,dynamics:g+1,optionals:_,extract:v,rawParams:y,parsedParams:b})}if(!x&&r.staticInsensitive){let e=r.staticInsensitive.get(C??=S.toLowerCase());e&&l.push({node:e,index:a+1,skipped:p,depth:m+1,statics:h+1,dynamics:g,optionals:_,extract:v,rawParams:y,parsedParams:b})}if(!x&&r.static){let e=r.static.get(S);e&&l.push({node:e,index:a+1,skipped:p,depth:m+1,statics:h+1,dynamics:g,optionals:_,extract:v,rawParams:y,parsedParams:b})}if(r.pathless){let e=m+1;for(let t=r.pathless.length-1;t>=0;t--){let n=r.pathless[t];l.push({node:n,index:a,skipped:p,depth:e,statics:h,dynamics:g,optionals:_,extract:v,rawParams:y,parsedParams:b})}}}if(f&&u)return D(u,f)?f:u;if(f)return f;if(u)return u;if(i&&d){let n=d.index;for(let e=0;ee.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===o)>(e.node.kind===o)||t.node.kind===o==(e.node.kind===o)&&t.depth>e.depth))):!0}function O(e){return k(e.filter(e=>e!==void 0).join(`/`))}function k(e){return e.replace(/\/{2,}/g,`/`)}function A(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function j(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function M(e){return j(A(e))}function N(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function P(e,t,n){return N(e,n)===N(t,n)}function F({base:e,to:t,trailingSlash:n=`never`,cache:i}){let a=t.startsWith(`/`),o=!a&&t===`.`,s;if(i){s=a?t:o?e:e+`\0`+t;let n=i.get(s);if(n)return n}let c;if(o)c=e.split(`/`);else if(a)c=t.split(`/`);else{for(c=e.split(`/`);c.length>1&&r(c)===``;)c.pop();let n=t.split(`/`);for(let e=0,t=n.length;e1&&(r(c)===``?n===`never`&&c.pop():n===`always`&&c.push(``));let u,d=``;for(let e=0;e0&&(d+=`/`);let t=c[e];if(!t)continue;u=l(t,0,u);let n=u[0];if(n===0){d+=t;continue}let r=u[5],i=t.substring(0,u[1]),a=t.substring(u[4],r),o=t.substring(u[2],u[3]);n===1?d+=i||a?`${i}{$${o}}${a}`:`$${o}`:n===2?d+=i||a?`${i}{$}${a}`:`$`:d+=`${i}{-$${o}}${a}`}d=k(d);let f=d||`/`;return s&&i&&i.set(s,f),f}function I(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=Array.from(t.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),r=new RegExp(n,`g`);return e=>e.replace(r,e=>t.get(e)??e)}function L(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>z(e,n)).join(`/`):z(r,n):r}function R({path:e,params:t,decoder:n,...r}){let i=!1,a=Object.create(null);if(!e||e===`/`)return{interpolatedPath:`/`,usedParams:a,isMissingParams:i};if(!e.includes(`$`))return{interpolatedPath:e,usedParams:a,isMissingParams:i};let o=e.length,s=0,c,u=``;for(;s!0,()=>!1)}function W(){return()=>{}}export{b as _,P as a,N as c,A as d,j as f,h as g,_ as h,I as i,F as l,v as m,U as n,R as o,g as p,k as r,O as s,H as t,M as u,a as v}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{m as r,n as i}from"./useStore-CupyIEEP.js";function a(e){let t=new Map,n,r,i=e=>{e.next&&(e.prev?(e.prev.next=e.next,e.next.prev=e.prev,e.next=void 0,r&&(r.next=e,e.prev=r)):(e.next.prev=void 0,n=e.next,e.next=void 0,r&&(e.prev=r,r.next=e)),r=e)};return{get(e){let n=t.get(e);if(n)return i(n),n.value},set(a,o){if(t.size>=e&&n){let e=n;t.delete(e.key),e.next&&(n=e.next,e.next.prev=void 0),e===r&&(r=void 0)}let s=t.get(a);if(s)s.value=o,i(s);else{let e={key:a,value:o,prev:r};r&&(r.next=e),r=e,n||=e,t.set(a,e)}},clear(){t.clear(),n=void 0,r=void 0}}}var o=4,s=5;function c(e){let t=e.indexOf(`{`);if(t===-1)return null;let n=e.indexOf(`}`,t);return n===-1||t+1>=e.length?null:[t,n]}function l(e,t,n=new Uint16Array(6)){let r=e.indexOf(`/`,t),i=r===-1?e.length:r,a=e.substring(t,i);if(!a||!a.includes(`$`))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(a===`$`){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(a.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;let o=c(a);if(o){let[r,s]=o,c=a.charCodeAt(r+1);if(c===45){if(r+2!e.skipOnParamError&&e.caseSensitive===d&&e.prefix===p&&e.suffix===h);if(g)o=g;else{let e=m(1,n.fullPath??n.from,d,p,h);o=e,e.depth=a,e.parent=i,i.dynamic??=[],i.dynamic.push(e)}break}case 3:{let t=r.substring(s,e[1]),l=r.substring(e[4],c),d=u&&!!(t||l),p=t?d?t:t.toLowerCase():void 0,h=l?d?l:l.toLowerCase():void 0,g=!f&&i.optional?.find(e=>!e.skipOnParamError&&e.caseSensitive===d&&e.prefix===p&&e.suffix===h);if(g)o=g;else{let e=m(3,n.fullPath??n.from,d,p,h);o=e,e.parent=i,e.depth=a,i.optional??=[],i.optional.push(e)}break}case 2:{let t=r.substring(s,e[1]),l=r.substring(e[4],c),d=u&&!!(t||l),f=t?d?t:t.toLowerCase():void 0,p=l?d?l:l.toLowerCase():void 0,h=m(2,n.fullPath??n.from,d,f,p);o=h,h.parent=i,h.depth=a,i.wildcard??=[],i.wildcard.push(h)}}i=o}if(f&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(`/`)+1)===95){let e=p(n.fullPath??n.from);e.kind=s,e.parent=i,a++,e.depth=a,i.pathless??=[],i.pathless.push(e),i=e}let h=(n.path||!n.children)&&!n.isRoot;if(h&&r.endsWith(`/`)){let e=p(n.fullPath??n.from);e.kind=o,e.parent=i,a++,e.depth=a,i.index=e,i=e}i.parse=n.options?.params?.parse??null,i.skipOnParamError=f,i.parsingPriority=n.options?.skipRouteOnParseError?.priority??0,h&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(let r of n.children)u(e,t,r,d,i,a,c)}function d(e,t){if(e.skipOnParamError&&!t.skipOnParamError)return-1;if(!e.skipOnParamError&&t.skipOnParamError)return 1;if(e.skipOnParamError&&t.skipOnParamError&&(e.parsingPriority||t.parsingPriority))return t.parsingPriority-e.parsingPriority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function f(e){if(e.pathless)for(let t of e.pathless)f(t);if(e.static)for(let t of e.static.values())f(t);if(e.staticInsensitive)for(let t of e.staticInsensitive.values())f(t);if(e.dynamic?.length){e.dynamic.sort(d);for(let t of e.dynamic)f(t)}if(e.optional?.length){e.optional.sort(d);for(let t of e.optional)f(t)}if(e.wildcard?.length){e.wildcard.sort(d);for(let t of e.wildcard)f(t)}}function p(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}function m(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:n,prefix:r,suffix:i}}function h(e,t){let n=p(`/`),r=new Uint16Array(6);for(let t of e)u(!1,r,t,1,n,0);f(n),t.masksTree=n,t.flatCache=a(1e3)}function g(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=x(e,t.masksTree);return t.flatCache.set(e,r),r}function _(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=p(`/`),u(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),x(r,o,n)}function v(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=x(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=C(a.route)),t.matchCache.set(r,a),a}function y(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function b(e,t=!1,n){let r=p(e.fullPath),o=new Uint16Array(6),s={},c={},l=0;return u(t,o,e,1,r,0,e=>{if(n?.(e,l),e.id in s&&i(),s[e.id]=e,l!==0&&e.path){let t=y(e.fullPath);(!c[t]||e.fullPath.endsWith(`/`))&&(c[t]=e)}l++}),f(r),{processedTree:{segmentTree:r,singleCache:a(1e3),matchCache:a(1e3),flatCache:null,masksTree:null},routesById:s,routesByPath:c}}function x(e,t,n=!1){let r=e.split(`/`),i=T(e,r,t,n);if(!i)return null;let[a]=S(e,r,i);return{route:i.node.route,rawParams:a,parsedParams:i.parsedParams}}function S(e,t,n){let r=w(n.node),i=null,a=Object.create(null),c=n.extract?.part??0,l=n.extract?.node??0,u=n.extract?.path??0,d=n.extract?.segment??0;for(;l=0;n--){let i=r.optional[n];l.push({node:i,index:a,skipped:e,depth:t,statics:h,dynamics:g,optionals:_,extract:v,rawParams:y,parsedParams:b})}if(!x)for(let e=r.optional.length-1;e>=0;e--){let n=r.optional[e],{prefix:i,suffix:o}=n;if(i||o){let e=n.caseSensitive?S:C??=S.toLowerCase();if(i&&!e.startsWith(i)||o&&!e.endsWith(o))continue}l.push({node:n,index:a+1,skipped:p,depth:t,statics:h,dynamics:g,optionals:_+1,extract:v,rawParams:y,parsedParams:b})}}if(!x&&r.dynamic&&S)for(let e=r.dynamic.length-1;e>=0;e--){let t=r.dynamic[e],{prefix:n,suffix:i}=t;if(n||i){let e=t.caseSensitive?S:C??=S.toLowerCase();if(n&&!e.startsWith(n)||i&&!e.endsWith(i))continue}l.push({node:t,index:a+1,skipped:p,depth:m+1,statics:h,dynamics:g+1,optionals:_,extract:v,rawParams:y,parsedParams:b})}if(!x&&r.staticInsensitive){let e=r.staticInsensitive.get(C??=S.toLowerCase());e&&l.push({node:e,index:a+1,skipped:p,depth:m+1,statics:h+1,dynamics:g,optionals:_,extract:v,rawParams:y,parsedParams:b})}if(!x&&r.static){let e=r.static.get(S);e&&l.push({node:e,index:a+1,skipped:p,depth:m+1,statics:h+1,dynamics:g,optionals:_,extract:v,rawParams:y,parsedParams:b})}if(r.pathless){let e=m+1;for(let t=r.pathless.length-1;t>=0;t--){let n=r.pathless[t];l.push({node:n,index:a,skipped:p,depth:e,statics:h,dynamics:g,optionals:_,extract:v,rawParams:y,parsedParams:b})}}}if(f&&u)return D(u,f)?f:u;if(f)return f;if(u)return u;if(i&&d){let n=d.index;for(let e=0;ee.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===o)>(e.node.kind===o)||t.node.kind===o==(e.node.kind===o)&&t.depth>e.depth))):!0}function O(e){return k(e.filter(e=>e!==void 0).join(`/`))}function k(e){return e.replace(/\/{2,}/g,`/`)}function A(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function j(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function M(e){return j(A(e))}function N(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function P(e,t,n){return N(e,n)===N(t,n)}function F({base:e,to:t,trailingSlash:n=`never`,cache:i}){let a=t.startsWith(`/`),o=!a&&t===`.`,s;if(i){s=a?t:o?e:e+`\0`+t;let n=i.get(s);if(n)return n}let c;if(o)c=e.split(`/`);else if(a)c=t.split(`/`);else{for(c=e.split(`/`);c.length>1&&r(c)===``;)c.pop();let n=t.split(`/`);for(let e=0,t=n.length;e1&&(r(c)===``?n===`never`&&c.pop():n===`always`&&c.push(``));let u,d=``;for(let e=0;e0&&(d+=`/`);let t=c[e];if(!t)continue;u=l(t,0,u);let n=u[0];if(n===0){d+=t;continue}let r=u[5],i=t.substring(0,u[1]),a=t.substring(u[4],r),o=t.substring(u[2],u[3]);n===1?d+=i||a?`${i}{$${o}}${a}`:`$${o}`:n===2?d+=i||a?`${i}{$}${a}`:`$`:d+=`${i}{-$${o}}${a}`}d=k(d);let f=d||`/`;return s&&i&&i.set(s,f),f}function I(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=Array.from(t.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),r=new RegExp(n,`g`);return e=>e.replace(r,e=>t.get(e)??e)}function L(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>z(e,n)).join(`/`):z(r,n):r}function R({path:e,params:t,decoder:n,...r}){let i=!1,a=Object.create(null);if(!e||e===`/`)return{interpolatedPath:`/`,usedParams:a,isMissingParams:i};if(!e.includes(`$`))return{interpolatedPath:e,usedParams:a,isMissingParams:i};let o=e.length,s=0,c,u=``;for(;s!0,()=>!1)}function W(){return()=>{}}export{b as _,P as a,N as c,A as d,j as f,h as g,_ as h,I as i,F as l,v as m,U as n,R as o,g as p,k as r,O as s,H as t,M as u,a as v}; \ No newline at end of file diff --git a/src/www/assets/Match-Cm64cgS9.js b/src/www/assets/Match-DrG03Wse.js similarity index 99% rename from src/www/assets/Match-Cm64cgS9.js rename to src/www/assets/Match-DrG03Wse.js index 18eb620..bd67f41 100644 --- a/src/www/assets/Match-Cm64cgS9.js +++ b/src/www/assets/Match-DrG03Wse.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";import{o as r,t as i}from"./useRouter-DtTm7XkK.js";import{a,c as o,f as s,g as c,h as l,i as u,l as d,m as f,n as p,o as m,p as h,r as g,s as _,t as v,u as y}from"./useStore-CupyIEEP.js";import{_ as b,f as x,g as S,h as C,i as w,l as T,m as E,o as D,p as O,r as k,s as A,t as ee,u as te,v as ne}from"./ClientOnly-fFIveJVd.js";import{i as j,r as re,t as M}from"./redirect-DMNGvjzO.js";import{n as ie}from"./matchContext-BFCdcHzo.js";function ae(){try{return typeof window<`u`&&typeof window.sessionStorage==`object`?window.sessionStorage:void 0}catch{return}}var oe=`tsr-scroll-restoration-v1_3`;function se(){let e=ae();if(!e)return null;let t={};try{let n=JSON.parse(e.getItem(`tsr-scroll-restoration-v1_3`)||`{}`);s(n)&&(t=n)}catch{}return{get state(){return t},set:e=>{t=d(e,t)||t},persist:()=>{try{e.setItem(oe,JSON.stringify(t))}catch{}}}}var ce=se(),le=e=>e.state.__TSR_key||e.href;function ue(e){let t=[],n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(` > `)}`.toLowerCase()}var N=!1,P=`window`,de=`data-scroll-restoration-id`;function fe(e,t){if(!ce)return;let n=ce;if((t??e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup||!n)return;e.isScrollRestorationSetup=!0,N=!1;let r=e.options.getScrollRestorationKey||le,i=new Map;window.history.scrollRestoration=`manual`;let a=t=>{if(!(N||!e.isScrollRestoring))if(t.target===document||t.target===window)i.set(P,{scrollX:window.scrollX||0,scrollY:window.scrollY||0});else{let e=t.target;i.set(e,{scrollX:e.scrollLeft||0,scrollY:e.scrollTop||0})}},o=t=>{if(!e.isScrollRestoring||!t||i.size===0||!n)return;let r=n.state[t]||={};for(let[e,t]of i){let n;if(e===P)n=P;else if(e.isConnected){let t=e.getAttribute(de);n=t?`[${de}="${t}"]`:ue(e)}n&&(r[n]=t)}};document.addEventListener(`scroll`,a,!0),e.subscribe(`onBeforeLoad`,e=>{o(e.fromLocation?r(e.fromLocation):void 0),i.clear()}),window.addEventListener(`pagehide`,()=>{o(r(e.stores.resolvedLocation.get()??e.stores.location.get())),n.persist()}),e.subscribe(`onRendered`,t=>{let a=r(t.toLocation),o=e.options.scrollRestorationBehavior,c=e.options.scrollToTopSelectors;if(i.clear(),!e.resetNextScroll){e.resetNextScroll=!0;return}if(!(typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))){N=!0;try{let t=e.isScrollRestoring?n.state[a]:void 0,r=!1;if(t)for(let e in t){let n=t[e];if(!s(n))continue;let{scrollX:i,scrollY:a}=n;if(!(!Number.isFinite(i)||!Number.isFinite(a))){if(e===P)window.scrollTo({top:a,left:i,behavior:o}),r=!0;else if(e){let t;try{t=document.querySelector(e)}catch{continue}t&&(t.scrollLeft=i,t.scrollTop=a,r=!0)}}}if(!r){let t=e.history.location.hash.slice(1);if(t){let e=window.history.state?.__hashScrollIntoViewOptions??!0;if(e){let n=document.getElementById(t);n&&n.scrollIntoView(e)}}else{let e={top:0,left:0,behavior:o};if(window.scrollTo(e),c)for(let t of c){if(t===P)continue;let n=typeof t==`function`?t():document.querySelector(t);n&&n.scrollTo(e)}}}}finally{N=!1}e.isScrollRestoring&&n.set(e=>(e[a]||={},e))}})}function pe(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function me(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function he(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=me(r):Array.isArray(t)?t.push(me(r)):n[e]=[t,me(r)]}return n}var ge=ve(JSON.parse),_e=ye(JSON.stringify,JSON.parse);function ve(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=he(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function ye(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=pe(e,r);return t?`?${t}`:``}}function be(e){return{input:({url:t})=>{for(let n of e)t=F(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=Se(e[n],t);return t}}}function xe(e){let t=te(e.basepath),n=`/${t}`,r=`${n}/`,i=e.caseSensitive?n:n.toLowerCase(),a=e.caseSensitive?r:r.toLowerCase();return{input:({url:t})=>{let r=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return r===i?t.pathname=`/`:r.startsWith(a)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=A([`/`,t,e.pathname]),e)}}function F(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Se(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Ce(e){let t=e;return{get(){return t},set(e){t=d(e,t)}}}function we(e){return{get(){return e()}}}function Te(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),h=n(e.statusCode),g=n(e.redirect),_=n([]),v=n([]),y=n([]),b=r(()=>I(o,_.get())),x=r(()=>I(s,v.get())),S=r(()=>I(c,y.get())),C=r(()=>_.get()[0]),w=r(()=>_.get().some(e=>o.get(e)?.get().status===`pending`)),T=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),E=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:b.get(),location:p.get(),resolvedLocation:m.get(),statusCode:h.get(),redirect:g.get()})),D=ne(64);function O(e){let t=D.get(e);return t||(t=r(()=>{let t=_.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),D.set(e,t)),t}let k={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:h,redirect:g,matchesId:_,pendingIds:v,cachedIds:y,matches:b,pendingMatches:x,cachedMatches:S,firstId:C,hasPending:w,matchRouteDeps:T,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:E,getRouteMatchStore:O,setMatches:A,setPending:ee,setCached:te};A(e.matches),a?.(k);function A(e){L(e,o,_,n,i)}function ee(e){L(e,s,v,n,i)}function te(e){L(e,c,y,n,i)}return k}function I(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function L(e,t,n,r,i){let a=e.map(e=>e.id),o=new Set(a);i(()=>{for(let e of t.keys())o.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}u(n.get(),a)||n.set(a)})}var R=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},Ee=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),z=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),B=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},De=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},V=(e,t,n)=>{if(!(!M(n)&&!j(n)))throw M(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:M(n)?`redirected`:r.status===`pending`?`success`:r.status,context:B(e,t.index),isFetching:!1,error:n})),j(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),M(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},Oe=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},ke=(e,t,n)=>{let r=B(e,n);e.updateMatch(t,e=>({...e,context:r}))},H=(e,t,n,r)=>{let{id:i,routeId:a}=e.matches[t],o=e.router.looseRoutesById[a];if(n instanceof Promise)throw n;n.routerCode=r,e.firstBadMatchIndex??=t,V(e,e.router.getMatch(i),n);try{o.options.onError?.(n)}catch(t){n=t,V(e,e.router.getMatch(i),n)}e.updateMatch(i,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!M(n)&&!j(n)&&(e.serialError??=n)},Ae=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!z(e,t)&&(n.options.loader||n.options.beforeLoad||Be(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{R(e)},i);r._nonReactive.pendingTimeout=t}},je=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;Ae(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&V(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},Me=(e,t,n,r)=>{let i=e.router.getMatch(t),o=i._nonReactive.loadPromise;i._nonReactive.loadPromise=a(()=>{o?.resolve(),o=void 0});let{paramsError:s,searchError:c}=i;s&&H(e,n,s,`PARSE_PARAMS`),c&&H(e,n,c,`VALIDATE_SEARCH`),Ae(e,t,r,i);let l=new AbortController,u=!1,d=()=>{u||(u=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:l})))},f=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{d(),f()});return}i._nonReactive.beforeLoadPromise=a();let p={...B(e,n,!1),...i.__routeContext},{search:m,params:g,cause:_}=i,v=z(e,t),y={search:m,abortController:l,params:g,preload:v,context:p,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:v?`preload`:_,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},b=r=>{if(r===void 0){e.router.batch(()=>{d(),f()});return}(M(r)||j(r))&&(d(),H(e,n,r,`BEFORE_LOAD`)),e.router.batch(()=>{d(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),f()})},x;try{if(x=r.options.beforeLoad(y),h(x))return d(),x.catch(t=>{H(e,n,t,`BEFORE_LOAD`)}).then(b)}catch(t){d(),H(e,n,t,`BEFORE_LOAD`)}b(x)},Ne=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>Me(e,n,t,i),s=()=>{if(Oe(e,n))return;let t=je(e,n,i);return h(t)?t.then(o):o()};return a()},Pe=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},Fe=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=B(e,r),d=z(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},Ie=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{U(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(Fe(e,t,n,r,i)),l=!!s&&h(c);if((l||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;V(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let u=a._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:B(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:B(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,j(t)&&await i.options.notFoundComponent?.preload?.(),V(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,V(e,e.router.getMatch(n),t)}!M(o)&&!j(o)&&await U(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:B(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),V(e,r,t)}},Le=async(e,t,n)=>{async function r(r,a,o,l,u){let f=Date.now()-a.updatedAt,p=r?u.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:u.options.staleTime??e.router.options.defaultStaleTime??0,m=u.options.shouldReload,h=typeof m==`function`?m(Fe(e,t,i,n,u)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||o!==void 0&&o!==l.id);s=g===`success`&&(_||(h??v)),r&&u.options.preload===!1||(s&&!e.sync&&d?(c=!0,(async()=>{try{await Ie(e,t,i,n,u);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){M(t)&&await e.router.navigate(t.options)}})()):g!==`success`||s?await Ie(e,t,i,n,u):ke(e,i,n))}let{id:i,routeId:o}=e.matches[n],s=!1,c=!1,l=e.router.looseRoutesById[o],u=l.options.loader,d=((typeof u==`function`?void 0:u?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(Oe(e,i)){if(!e.router.getMatch(i))return e.matches[n];ke(e,i,n)}else{let t=e.router.getMatch(i),s=e.router.stores.matchesId.get()[n],c=(s&&e.router.stores.matchStores.get(s)||null)?.routeId===o?s:e.router.stores.matches.get().find(e=>e.routeId===o)?.id,u=z(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&d)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&&V(e,n,a),n.status===`pending`&&await r(u,t,c,n,l)}else{let n=u&&!e.router.stores.matchStores.has(i),o=e.router.getMatch(i);o._nonReactive.loaderPromise=a(),n!==o.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(u,t,c,o,l)}}let f=e.router.getMatch(i);c||(f._nonReactive.loaderPromise?.resolve(),f._nonReactive.loadPromise?.resolve(),f._nonReactive.loadPromise=void 0),clearTimeout(f._nonReactive.pendingTimeout),f._nonReactive.pendingTimeout=void 0,c||(f._nonReactive.loaderPromise=void 0),f._nonReactive.dehydrated=void 0;let p=c?f.isFetching:!1;return p!==f.isFetching||f.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:p,invalid:!1})),e.router.getMatch(i)):f};async function Re(e){let t=e,n=[];Ee(t.router)&&R(t);let r;for(let e=0;e({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:l},isFetching:!1})),u=e,await U(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await U(e,[`errorComponent`])}for(let e=0;e<=u;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=Pe(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let d=R(t);if(h(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function ze(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function U(e,t=W){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===W?(()=>{if(e._componentsPromise===void 0){let t=ze(e,W);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():ze(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function Be(e){for(let t of W)if(e.options[t]?.preload)return!0;return!1}var W=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`],G=`__TSR_index`,Ve=`popstate`,He=`beforeunload`;function Ue(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=K(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[G];i=We(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[G];i=We(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[G]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function We(e,t){t||={};let n=q();return{...t,key:n,__TSR_key:n,[G]:e}}function Ge(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>K(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=q();t.history.replaceState({[G]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=K(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[G]-l.state[G],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=Ue({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(He,S,{capture:!0}),t.removeEventListener(Ve,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(He,S,{capture:!0}),t.addEventListener(Ve,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function Ke(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function K(e,t){let n=Ke(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=q();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[G]:0,key:a,__TSR_key:a}}}function q(){return(Math.random()+1).toString(36).substring(7)}function J(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var qe=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=w(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Ge()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=ne(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=Te(Ye(this.latestLocation),e),fe(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=te(o);t&&t!==`/`&&e.push(xe({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:be(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a)`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=b(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&S(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:m(e).path,external:!1,searchStr:o,search:l(t?.search,i),hash:m(r.slice(1)).path,state:c(t?.state,a)}}let o=new URL(i,this.origin),s=F(this.rewrite,o),u=this.options.parseSearch(s.search),d=this.options.stringifySearch(u);return s.search=d,{href:s.href.replace(s.origin,``),publicHref:i,pathname:m(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:d,search:l(t?.search,u),hash:m(s.hash.slice(1)).path,state:c(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>T({base:e,to:k(t),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>Xe({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=this.resolvePathWithBase(i,`.`),s=r.search,u=Object.assign(Object.create(null),r.params),f=t.to?this.resolvePathWithBase(a,`${t.to}`):this.resolvePathWithBase(a,`.`),p=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?u:Object.assign(u,d(t.params,u)),h=this.getMatchedRoutes(f),g=h.matchedRoutes;if((!h.foundRoute||h.foundRoute.path!==`/`&&h.routeParams[`**`])&&this.options.notFoundRoute&&(g=[...g,this.options.notFoundRoute]),Object.keys(p).length>0)for(let e of g){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(p,t(p))}catch{}}let _=e.leaveParams?f:m(D({path:f,params:p,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,v=s;if(e._includeValidateSearch&&this.options.search?.strict){let e={};g.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,X(t.options.validateSearch,{...e,...v}))}catch{}}),v=e}v=Ze({search:v,dest:t,destRoutes:g,_includeValidateSearch:e._includeValidateSearch}),v=l(s,v);let y=this.options.stringifySearch(v),b=t.hash===!0?n.hash:t.hash?d(t.hash,n.hash):void 0,x=b?`#${b}`:``,S=t.state===!0?n.state:t.state?d(t.state,n.state):{};S=c(n.state,S);let C=`${_}${y}${x}`,w,T,E=!1;if(this.rewrite){let e=new URL(C,this.origin),t=Se(this.rewrite,e);w=e.href.replace(e.origin,``),t.origin===this.origin?T=t.pathname+t.search+t.hash:(T=t.href,E=!0)}else w=o(C),T=w;return{publicHref:T,href:w,pathname:_,search:v,searchStr:y,state:S,hash:b??``,external:E,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=O(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,d(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=_(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},i=x(this.latestLocation.href)===x(n.href),o=this.commitLocationPromise;if(this.commitLocationPromise=a(()=>{o?.resolve(),o=void 0}),i&&r())this.load();else{let{maskedLocation:r,hashScrollIntoView:i,...a}=n;r&&(a={...r,state:{...r.state,__tempKey:void 0,__tempLocation:{...a,search:a.searchStr,state:{...a.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(a.unmaskOnReload??this.options.unmaskOnReload??!1)&&(a.state.__tempKey=this.tempLocationKey)),a.state.__hashScrollIntoViewOptions=i??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,this.history[n.replace?`replace`:`push`](a.publicHref,a.state,{ignoreBlocker:t})}return this.resetNextScroll=n.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=K(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=F(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(y(t,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return Promise.resolve()}return i.replace?window.location.replace(t):window.location.href=t,Promise.resolve()}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t,n,r,i=this.stores.resolvedLocation.get()??this.stores.location.get();for(r=new Promise(a=>{this.startTransition(async()=>{try{this.beforeLoad();let t=this.latestLocation,n=J(t,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...n}),this.emit({type:`onBeforeLoad`,...n}),await Re({router:this,sync:e?.sync,forceStaleReload:i.href===t.href,matches:this.stores.pendingMatches.get(),location:t,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){M(e)?(t=e,this.navigate({...t.options,replace:!0,ignoreBlocker:!0})):j(e)&&(n=e);let r=t?t.status:n?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(r),this.stores.redirect.set(t)})}this.latestLoadPromise===r&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),a()})}),this.latestLoadPromise=r,await r;this.latestLoadPromise&&r!==this.latestLoadPromise;)await this.latestLoadPromise;let a;this.hasNotFoundMatch()?a=404:this.stores.matches.get().some(e=>e.status===`error`)&&(a=500),a!==void 0&&this.stores.statusCode.set(a)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(J(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&y(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`?!0:e-t.updatedAt>=r}})},this.loadRouteChunk=U,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...r,...this.stores.cachedIds.get()]),a=n.filter(e=>!i.has(e.id));if(a.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...a])}try{return n=await Re({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(M(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});j(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=C(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!_(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?_(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??_e,parseSearch:e.parseSearch??ge,protocolAllowlist:e.protocolAllowlist??g}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:i,parsedParams:o}=n,{matchedRoutes:s}=n,u=!1;(r?r.path!==`/`&&i[`**`]:x(e.pathname))&&(this.options.notFoundRoute?s=[...s,this.options.notFoundRoute]:u=!0);let d=u?$e(this.options.notFoundMode,s):void 0,f=Array(s.length),p=new Map;for(let e of this.stores.matchStores.values())e.routeId&&p.set(e.routeId,e.get());for(let n=0;nthis.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:f,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return f}matchRoutesLightweight(e){let{matchedRoutes:t,routeParams:n,parsedParams:r}=this.getMatchedRoutes(e.pathname),i=f(t),a={...e.search};for(let e of t)try{Object.assign(a,X(e.options.validateSearch,a))}catch{}let o=f(this.stores.matchesId.get()),s=o&&this.stores.matchStores.get(o)?.get(),c=s&&s.routeId===i.id&&s.pathname===e.pathname,l;if(c)l=s.params;else{let e=Object.assign(Object.create(null),n);for(let i of t)try{et(i,n,r??{},e)}catch{}l=e}return{matchedRoutes:t,fullPath:i.fullPath,search:a,params:l}}},Y=class extends Error{},Je=class extends Error{};function Ye(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function X(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new Y(`Async validation not supported`);if(n.issues)throw new Y(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function Xe({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=x(e),a,o,s=E(i,n,!0);return s&&(a=s.route,Object.assign(r,s.rawParams),o=Object.assign(Object.create(null),s.parsedParams)),{matchedRoutes:s?.branch||[t.__root__],routeParams:r,foundRoute:a,parsedParams:o}}function Ze({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return Qe(n)(e,t,r??!1)}function Qe(e){let t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(let n of e)`search`in n.options?n.options.search?.middlewares&&t.middlewares.push(...n.options.search.middlewares):(n.options.preSearchFilters||n.options.postSearchFilters)&&t.middlewares.push(({search:e,next:t})=>{let r=e;`preSearchFilters`in n.options&&n.options.preSearchFilters&&(r=n.options.preSearchFilters.reduce((e,t)=>t(e),e));let i=t(r);return`postSearchFilters`in n.options&&n.options.postSearchFilters?n.options.postSearchFilters.reduce((e,t)=>t(e),i):i}),n.options.validateSearch&&t.middlewares.push(({search:e,next:r})=>{let i=r(e);if(!t._includeValidateSearch)return i;try{return{...i,...X(n.options.validateSearch,i)??void 0}}catch{return i}});t.middlewares.push(({search:e})=>{let n=t.dest;return n.search?n.search===!0?e:d(n.search,e):{}});let n=(e,t,r)=>{if(e>=r.length)return t;let i=r[e];return i({search:t,next:t=>n(e+1,t,r)})};return function(e,r,i){return t.dest=r,t._includeValidateSearch=i,n(0,e,t.middlewares)}}function $e(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return re}function et(e,t,n,r){let i=e.options.params?.parse??e.options.parseParams;if(i)if(e.options.skipRouteOnParseError)for(let e in t)e in n&&(r[e]=n[e]);else{let e=i(r);Object.assign(r,e)}}var Z=e(t(),1),Q=n();function tt(e){let t=e.errorComponent??rt;return(0,Q.jsx)(nt,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?Z.createElement(t,{error:n,reset:r}):e.children})}var nt=class extends Z.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function rt({error:e}){let[t,n]=Z.useState(!1);return(0,Q.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,Q.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,Q.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,Q.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,Q.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,Q.jsx)(`div`,{children:(0,Q.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,Q.jsx)(`code`,{children:e.message}):null})}):null]})}function it(e){let t=i(),n=`not-found-${v(t.stores.location,e=>e.pathname)}-${v(t.stores.status,e=>e)}`;return(0,Q.jsx)(tt,{getResetKey:()=>n,onCatch:(t,n)=>{if(j(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(j(t))return e.fallback?.(t);throw t},children:e.children})}function at(){return(0,Q.jsx)(`p`,{children:`Not Found`})}function $(e){return(0,Q.jsx)(Q.Fragment,{children:e.children})}function ot(e,t,n){return t.options.notFoundComponent?(0,Q.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,Q.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,Q.jsx)(at,{})}var st=Z.memo(function({matchId:e}){let t=i(),n=t.stores.matchStores.get(e);n||p();let r=v(t.stores.loadedAt,e=>e),a=v(n,e=>e);return(0,Q.jsx)(ct,{router:t,matchId:e,resetKey:r,matchState:Z.useMemo(()=>{let e=a.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:a.ssr,_displayPending:a._displayPending,parentRouteId:n}},[a._displayPending,a.routeId,a.ssr,t.routesById])})});function ct({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,Q.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?Z.Suspense:$,f=s?tt:$,p=l?it:$;return(0,Q.jsxs)(i.isRoot?i.options.shellComponent??$:$,{children:[(0,Q.jsx)(ie.Provider,{value:t,children:(0,Q.jsx)(d,{fallback:o,children:(0,Q.jsx)(f,{getResetKey:()=>n,errorComponent:s||rt,onCatch:(e,t)=>{if(j(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,Q.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return Z.createElement(l,e)},children:u||r._displayPending?(0,Q.jsx)(ee,{fallback:o,children:(0,Q.jsx)(ut,{matchId:t})}):(0,Q.jsx)(ut,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(lt,{resetKey:n}),(e.options.scrollRestoration,null)]}):null]})}function lt({resetKey:e}){let t=i(),n=Z.useRef(void 0);return r(()=>{let e=t.latestLocation.href;(n.current===void 0||n.current!==e)&&(t.emit({type:`onRendered`,...J(t.stores.location.get(),t.stores.resolvedLocation.get())}),n.current=e)},[t.latestLocation.state.__TSR_key,e,t]),null}var ut=Z.memo(function({matchId:e}){let t=i(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||p();let o=v(r,e=>e),s=o.routeId,c=t.routesById[s],l=Z.useMemo(()=>{let e=(t.routesById[s].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:s,loaderDeps:o.loaderDeps,params:o._strictParams,search:o._strictSearch});return e?JSON.stringify(e):void 0},[s,o.loaderDeps,o._strictParams,o._strictSearch,t.options.defaultRemountDeps,t.routesById]),u=Z.useMemo(()=>{let e=c.options.component??t.options.defaultComponent;return e?(0,Q.jsx)(e,{},l):(0,Q.jsx)(dt,{})},[l,c.options.component,t.options.defaultComponent]);if(o._displayPending)throw n(o,`displayPendingPromise`);if(o._forcePending)throw n(o,`minPendingPromise`);if(o.status===`pending`){let e=c.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(o.id);if(n&&!n._nonReactive.minPendingPromise){let t=a();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(o,`loadPromise`)}if(o.status===`notFound`)return j(o.error)||p(),ot(t,c,o.error);if(o.status===`redirected`)throw M(o.error)||p(),n(o,`loadPromise`);if(o.status===`error`)throw o.error;return u}),dt=Z.memo(function(){let e=i(),t=Z.useContext(ie),n,r=!1,a;{let i=t?e.stores.matchStores.get(t):void 0;[n,r]=v(i,e=>[e?.routeId,e?.globalNotFound??!1]),a=v(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let o=n?e.routesById[n]:void 0,s=e.options.defaultPendingComponent?(0,Q.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return o||p(),ot(e,o,void 0);if(!a)return null;let c=(0,Q.jsx)(st,{matchId:a});return n===`__root__`?(0,Q.jsx)(Z.Suspense,{fallback:s,children:c}):c});export{rt as a,Ce as c,tt as i,we as l,dt as n,qe as o,$ as r,J as s,st as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{o as r,t as i}from"./useRouter-DtTm7XkK.js";import{a,c as o,f as s,g as c,h as l,i as u,l as d,m as f,n as p,o as m,p as h,r as g,s as _,t as v,u as y}from"./useStore-CupyIEEP.js";import{_ as b,f as x,g as S,h as C,i as w,l as T,m as E,o as D,p as O,r as k,s as A,t as ee,u as te,v as ne}from"./ClientOnly-Bj5CESUC.js";import{i as j,r as re,t as M}from"./redirect-DMNGvjzO.js";import{n as ie}from"./matchContext-BFCdcHzo.js";function ae(){try{return typeof window<`u`&&typeof window.sessionStorage==`object`?window.sessionStorage:void 0}catch{return}}var oe=`tsr-scroll-restoration-v1_3`;function se(){let e=ae();if(!e)return null;let t={};try{let n=JSON.parse(e.getItem(`tsr-scroll-restoration-v1_3`)||`{}`);s(n)&&(t=n)}catch{}return{get state(){return t},set:e=>{t=d(e,t)||t},persist:()=>{try{e.setItem(oe,JSON.stringify(t))}catch{}}}}var ce=se(),le=e=>e.state.__TSR_key||e.href;function ue(e){let t=[],n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(` > `)}`.toLowerCase()}var N=!1,P=`window`,de=`data-scroll-restoration-id`;function fe(e,t){if(!ce)return;let n=ce;if((t??e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup||!n)return;e.isScrollRestorationSetup=!0,N=!1;let r=e.options.getScrollRestorationKey||le,i=new Map;window.history.scrollRestoration=`manual`;let a=t=>{if(!(N||!e.isScrollRestoring))if(t.target===document||t.target===window)i.set(P,{scrollX:window.scrollX||0,scrollY:window.scrollY||0});else{let e=t.target;i.set(e,{scrollX:e.scrollLeft||0,scrollY:e.scrollTop||0})}},o=t=>{if(!e.isScrollRestoring||!t||i.size===0||!n)return;let r=n.state[t]||={};for(let[e,t]of i){let n;if(e===P)n=P;else if(e.isConnected){let t=e.getAttribute(de);n=t?`[${de}="${t}"]`:ue(e)}n&&(r[n]=t)}};document.addEventListener(`scroll`,a,!0),e.subscribe(`onBeforeLoad`,e=>{o(e.fromLocation?r(e.fromLocation):void 0),i.clear()}),window.addEventListener(`pagehide`,()=>{o(r(e.stores.resolvedLocation.get()??e.stores.location.get())),n.persist()}),e.subscribe(`onRendered`,t=>{let a=r(t.toLocation),o=e.options.scrollRestorationBehavior,c=e.options.scrollToTopSelectors;if(i.clear(),!e.resetNextScroll){e.resetNextScroll=!0;return}if(!(typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))){N=!0;try{let t=e.isScrollRestoring?n.state[a]:void 0,r=!1;if(t)for(let e in t){let n=t[e];if(!s(n))continue;let{scrollX:i,scrollY:a}=n;if(!(!Number.isFinite(i)||!Number.isFinite(a))){if(e===P)window.scrollTo({top:a,left:i,behavior:o}),r=!0;else if(e){let t;try{t=document.querySelector(e)}catch{continue}t&&(t.scrollLeft=i,t.scrollTop=a,r=!0)}}}if(!r){let t=e.history.location.hash.slice(1);if(t){let e=window.history.state?.__hashScrollIntoViewOptions??!0;if(e){let n=document.getElementById(t);n&&n.scrollIntoView(e)}}else{let e={top:0,left:0,behavior:o};if(window.scrollTo(e),c)for(let t of c){if(t===P)continue;let n=typeof t==`function`?t():document.querySelector(t);n&&n.scrollTo(e)}}}}finally{N=!1}e.isScrollRestoring&&n.set(e=>(e[a]||={},e))}})}function pe(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function me(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function he(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=me(r):Array.isArray(t)?t.push(me(r)):n[e]=[t,me(r)]}return n}var ge=ve(JSON.parse),_e=ye(JSON.stringify,JSON.parse);function ve(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=he(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function ye(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=pe(e,r);return t?`?${t}`:``}}function be(e){return{input:({url:t})=>{for(let n of e)t=F(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=Se(e[n],t);return t}}}function xe(e){let t=te(e.basepath),n=`/${t}`,r=`${n}/`,i=e.caseSensitive?n:n.toLowerCase(),a=e.caseSensitive?r:r.toLowerCase();return{input:({url:t})=>{let r=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return r===i?t.pathname=`/`:r.startsWith(a)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=A([`/`,t,e.pathname]),e)}}function F(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Se(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Ce(e){let t=e;return{get(){return t},set(e){t=d(e,t)}}}function we(e){return{get(){return e()}}}function Te(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),h=n(e.statusCode),g=n(e.redirect),_=n([]),v=n([]),y=n([]),b=r(()=>I(o,_.get())),x=r(()=>I(s,v.get())),S=r(()=>I(c,y.get())),C=r(()=>_.get()[0]),w=r(()=>_.get().some(e=>o.get(e)?.get().status===`pending`)),T=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),E=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:b.get(),location:p.get(),resolvedLocation:m.get(),statusCode:h.get(),redirect:g.get()})),D=ne(64);function O(e){let t=D.get(e);return t||(t=r(()=>{let t=_.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),D.set(e,t)),t}let k={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:h,redirect:g,matchesId:_,pendingIds:v,cachedIds:y,matches:b,pendingMatches:x,cachedMatches:S,firstId:C,hasPending:w,matchRouteDeps:T,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:E,getRouteMatchStore:O,setMatches:A,setPending:ee,setCached:te};A(e.matches),a?.(k);function A(e){L(e,o,_,n,i)}function ee(e){L(e,s,v,n,i)}function te(e){L(e,c,y,n,i)}return k}function I(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function L(e,t,n,r,i){let a=e.map(e=>e.id),o=new Set(a);i(()=>{for(let e of t.keys())o.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}u(n.get(),a)||n.set(a)})}var R=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},Ee=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),z=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),B=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},De=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},V=(e,t,n)=>{if(!(!M(n)&&!j(n)))throw M(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:M(n)?`redirected`:r.status===`pending`?`success`:r.status,context:B(e,t.index),isFetching:!1,error:n})),j(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),M(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},Oe=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},ke=(e,t,n)=>{let r=B(e,n);e.updateMatch(t,e=>({...e,context:r}))},H=(e,t,n,r)=>{let{id:i,routeId:a}=e.matches[t],o=e.router.looseRoutesById[a];if(n instanceof Promise)throw n;n.routerCode=r,e.firstBadMatchIndex??=t,V(e,e.router.getMatch(i),n);try{o.options.onError?.(n)}catch(t){n=t,V(e,e.router.getMatch(i),n)}e.updateMatch(i,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!M(n)&&!j(n)&&(e.serialError??=n)},Ae=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!z(e,t)&&(n.options.loader||n.options.beforeLoad||Be(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{R(e)},i);r._nonReactive.pendingTimeout=t}},je=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;Ae(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&V(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},Me=(e,t,n,r)=>{let i=e.router.getMatch(t),o=i._nonReactive.loadPromise;i._nonReactive.loadPromise=a(()=>{o?.resolve(),o=void 0});let{paramsError:s,searchError:c}=i;s&&H(e,n,s,`PARSE_PARAMS`),c&&H(e,n,c,`VALIDATE_SEARCH`),Ae(e,t,r,i);let l=new AbortController,u=!1,d=()=>{u||(u=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:l})))},f=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{d(),f()});return}i._nonReactive.beforeLoadPromise=a();let p={...B(e,n,!1),...i.__routeContext},{search:m,params:g,cause:_}=i,v=z(e,t),y={search:m,abortController:l,params:g,preload:v,context:p,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:v?`preload`:_,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},b=r=>{if(r===void 0){e.router.batch(()=>{d(),f()});return}(M(r)||j(r))&&(d(),H(e,n,r,`BEFORE_LOAD`)),e.router.batch(()=>{d(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),f()})},x;try{if(x=r.options.beforeLoad(y),h(x))return d(),x.catch(t=>{H(e,n,t,`BEFORE_LOAD`)}).then(b)}catch(t){d(),H(e,n,t,`BEFORE_LOAD`)}b(x)},Ne=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>Me(e,n,t,i),s=()=>{if(Oe(e,n))return;let t=je(e,n,i);return h(t)?t.then(o):o()};return a()},Pe=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},Fe=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=B(e,r),d=z(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},Ie=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{U(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(Fe(e,t,n,r,i)),l=!!s&&h(c);if((l||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;V(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let u=a._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:B(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:B(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,j(t)&&await i.options.notFoundComponent?.preload?.(),V(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,V(e,e.router.getMatch(n),t)}!M(o)&&!j(o)&&await U(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:B(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),V(e,r,t)}},Le=async(e,t,n)=>{async function r(r,a,o,l,u){let f=Date.now()-a.updatedAt,p=r?u.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:u.options.staleTime??e.router.options.defaultStaleTime??0,m=u.options.shouldReload,h=typeof m==`function`?m(Fe(e,t,i,n,u)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||o!==void 0&&o!==l.id);s=g===`success`&&(_||(h??v)),r&&u.options.preload===!1||(s&&!e.sync&&d?(c=!0,(async()=>{try{await Ie(e,t,i,n,u);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){M(t)&&await e.router.navigate(t.options)}})()):g!==`success`||s?await Ie(e,t,i,n,u):ke(e,i,n))}let{id:i,routeId:o}=e.matches[n],s=!1,c=!1,l=e.router.looseRoutesById[o],u=l.options.loader,d=((typeof u==`function`?void 0:u?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(Oe(e,i)){if(!e.router.getMatch(i))return e.matches[n];ke(e,i,n)}else{let t=e.router.getMatch(i),s=e.router.stores.matchesId.get()[n],c=(s&&e.router.stores.matchStores.get(s)||null)?.routeId===o?s:e.router.stores.matches.get().find(e=>e.routeId===o)?.id,u=z(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&d)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&&V(e,n,a),n.status===`pending`&&await r(u,t,c,n,l)}else{let n=u&&!e.router.stores.matchStores.has(i),o=e.router.getMatch(i);o._nonReactive.loaderPromise=a(),n!==o.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(u,t,c,o,l)}}let f=e.router.getMatch(i);c||(f._nonReactive.loaderPromise?.resolve(),f._nonReactive.loadPromise?.resolve(),f._nonReactive.loadPromise=void 0),clearTimeout(f._nonReactive.pendingTimeout),f._nonReactive.pendingTimeout=void 0,c||(f._nonReactive.loaderPromise=void 0),f._nonReactive.dehydrated=void 0;let p=c?f.isFetching:!1;return p!==f.isFetching||f.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:p,invalid:!1})),e.router.getMatch(i)):f};async function Re(e){let t=e,n=[];Ee(t.router)&&R(t);let r;for(let e=0;e({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:l},isFetching:!1})),u=e,await U(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await U(e,[`errorComponent`])}for(let e=0;e<=u;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=Pe(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let d=R(t);if(h(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function ze(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function U(e,t=W){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===W?(()=>{if(e._componentsPromise===void 0){let t=ze(e,W);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():ze(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function Be(e){for(let t of W)if(e.options[t]?.preload)return!0;return!1}var W=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`],G=`__TSR_index`,Ve=`popstate`,He=`beforeunload`;function Ue(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=K(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[G];i=We(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[G];i=We(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[G]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function We(e,t){t||={};let n=q();return{...t,key:n,__TSR_key:n,[G]:e}}function Ge(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>K(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=q();t.history.replaceState({[G]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=K(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[G]-l.state[G],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=Ue({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(He,S,{capture:!0}),t.removeEventListener(Ve,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(He,S,{capture:!0}),t.addEventListener(Ve,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function Ke(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function K(e,t){let n=Ke(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=q();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[G]:0,key:a,__TSR_key:a}}}function q(){return(Math.random()+1).toString(36).substring(7)}function J(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var qe=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=w(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Ge()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=ne(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=Te(Ye(this.latestLocation),e),fe(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=te(o);t&&t!==`/`&&e.push(xe({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:be(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a)`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=b(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&S(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:m(e).path,external:!1,searchStr:o,search:l(t?.search,i),hash:m(r.slice(1)).path,state:c(t?.state,a)}}let o=new URL(i,this.origin),s=F(this.rewrite,o),u=this.options.parseSearch(s.search),d=this.options.stringifySearch(u);return s.search=d,{href:s.href.replace(s.origin,``),publicHref:i,pathname:m(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:d,search:l(t?.search,u),hash:m(s.hash.slice(1)).path,state:c(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>T({base:e,to:k(t),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>Xe({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=this.resolvePathWithBase(i,`.`),s=r.search,u=Object.assign(Object.create(null),r.params),f=t.to?this.resolvePathWithBase(a,`${t.to}`):this.resolvePathWithBase(a,`.`),p=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?u:Object.assign(u,d(t.params,u)),h=this.getMatchedRoutes(f),g=h.matchedRoutes;if((!h.foundRoute||h.foundRoute.path!==`/`&&h.routeParams[`**`])&&this.options.notFoundRoute&&(g=[...g,this.options.notFoundRoute]),Object.keys(p).length>0)for(let e of g){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(p,t(p))}catch{}}let _=e.leaveParams?f:m(D({path:f,params:p,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,v=s;if(e._includeValidateSearch&&this.options.search?.strict){let e={};g.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,X(t.options.validateSearch,{...e,...v}))}catch{}}),v=e}v=Ze({search:v,dest:t,destRoutes:g,_includeValidateSearch:e._includeValidateSearch}),v=l(s,v);let y=this.options.stringifySearch(v),b=t.hash===!0?n.hash:t.hash?d(t.hash,n.hash):void 0,x=b?`#${b}`:``,S=t.state===!0?n.state:t.state?d(t.state,n.state):{};S=c(n.state,S);let C=`${_}${y}${x}`,w,T,E=!1;if(this.rewrite){let e=new URL(C,this.origin),t=Se(this.rewrite,e);w=e.href.replace(e.origin,``),t.origin===this.origin?T=t.pathname+t.search+t.hash:(T=t.href,E=!0)}else w=o(C),T=w;return{publicHref:T,href:w,pathname:_,search:v,searchStr:y,state:S,hash:b??``,external:E,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=O(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,d(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=_(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},i=x(this.latestLocation.href)===x(n.href),o=this.commitLocationPromise;if(this.commitLocationPromise=a(()=>{o?.resolve(),o=void 0}),i&&r())this.load();else{let{maskedLocation:r,hashScrollIntoView:i,...a}=n;r&&(a={...r,state:{...r.state,__tempKey:void 0,__tempLocation:{...a,search:a.searchStr,state:{...a.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(a.unmaskOnReload??this.options.unmaskOnReload??!1)&&(a.state.__tempKey=this.tempLocationKey)),a.state.__hashScrollIntoViewOptions=i??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,this.history[n.replace?`replace`:`push`](a.publicHref,a.state,{ignoreBlocker:t})}return this.resetNextScroll=n.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=K(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=F(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(y(t,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return Promise.resolve()}return i.replace?window.location.replace(t):window.location.href=t,Promise.resolve()}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t,n,r,i=this.stores.resolvedLocation.get()??this.stores.location.get();for(r=new Promise(a=>{this.startTransition(async()=>{try{this.beforeLoad();let t=this.latestLocation,n=J(t,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...n}),this.emit({type:`onBeforeLoad`,...n}),await Re({router:this,sync:e?.sync,forceStaleReload:i.href===t.href,matches:this.stores.pendingMatches.get(),location:t,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){M(e)?(t=e,this.navigate({...t.options,replace:!0,ignoreBlocker:!0})):j(e)&&(n=e);let r=t?t.status:n?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(r),this.stores.redirect.set(t)})}this.latestLoadPromise===r&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),a()})}),this.latestLoadPromise=r,await r;this.latestLoadPromise&&r!==this.latestLoadPromise;)await this.latestLoadPromise;let a;this.hasNotFoundMatch()?a=404:this.stores.matches.get().some(e=>e.status===`error`)&&(a=500),a!==void 0&&this.stores.statusCode.set(a)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(J(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&y(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`?!0:e-t.updatedAt>=r}})},this.loadRouteChunk=U,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...r,...this.stores.cachedIds.get()]),a=n.filter(e=>!i.has(e.id));if(a.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...a])}try{return n=await Re({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(M(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});j(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=C(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!_(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?_(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??_e,parseSearch:e.parseSearch??ge,protocolAllowlist:e.protocolAllowlist??g}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:i,parsedParams:o}=n,{matchedRoutes:s}=n,u=!1;(r?r.path!==`/`&&i[`**`]:x(e.pathname))&&(this.options.notFoundRoute?s=[...s,this.options.notFoundRoute]:u=!0);let d=u?$e(this.options.notFoundMode,s):void 0,f=Array(s.length),p=new Map;for(let e of this.stores.matchStores.values())e.routeId&&p.set(e.routeId,e.get());for(let n=0;nthis.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:f,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return f}matchRoutesLightweight(e){let{matchedRoutes:t,routeParams:n,parsedParams:r}=this.getMatchedRoutes(e.pathname),i=f(t),a={...e.search};for(let e of t)try{Object.assign(a,X(e.options.validateSearch,a))}catch{}let o=f(this.stores.matchesId.get()),s=o&&this.stores.matchStores.get(o)?.get(),c=s&&s.routeId===i.id&&s.pathname===e.pathname,l;if(c)l=s.params;else{let e=Object.assign(Object.create(null),n);for(let i of t)try{et(i,n,r??{},e)}catch{}l=e}return{matchedRoutes:t,fullPath:i.fullPath,search:a,params:l}}},Y=class extends Error{},Je=class extends Error{};function Ye(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function X(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new Y(`Async validation not supported`);if(n.issues)throw new Y(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function Xe({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=x(e),a,o,s=E(i,n,!0);return s&&(a=s.route,Object.assign(r,s.rawParams),o=Object.assign(Object.create(null),s.parsedParams)),{matchedRoutes:s?.branch||[t.__root__],routeParams:r,foundRoute:a,parsedParams:o}}function Ze({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return Qe(n)(e,t,r??!1)}function Qe(e){let t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(let n of e)`search`in n.options?n.options.search?.middlewares&&t.middlewares.push(...n.options.search.middlewares):(n.options.preSearchFilters||n.options.postSearchFilters)&&t.middlewares.push(({search:e,next:t})=>{let r=e;`preSearchFilters`in n.options&&n.options.preSearchFilters&&(r=n.options.preSearchFilters.reduce((e,t)=>t(e),e));let i=t(r);return`postSearchFilters`in n.options&&n.options.postSearchFilters?n.options.postSearchFilters.reduce((e,t)=>t(e),i):i}),n.options.validateSearch&&t.middlewares.push(({search:e,next:r})=>{let i=r(e);if(!t._includeValidateSearch)return i;try{return{...i,...X(n.options.validateSearch,i)??void 0}}catch{return i}});t.middlewares.push(({search:e})=>{let n=t.dest;return n.search?n.search===!0?e:d(n.search,e):{}});let n=(e,t,r)=>{if(e>=r.length)return t;let i=r[e];return i({search:t,next:t=>n(e+1,t,r)})};return function(e,r,i){return t.dest=r,t._includeValidateSearch=i,n(0,e,t.middlewares)}}function $e(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return re}function et(e,t,n,r){let i=e.options.params?.parse??e.options.parseParams;if(i)if(e.options.skipRouteOnParseError)for(let e in t)e in n&&(r[e]=n[e]);else{let e=i(r);Object.assign(r,e)}}var Z=e(t(),1),Q=n();function tt(e){let t=e.errorComponent??rt;return(0,Q.jsx)(nt,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?Z.createElement(t,{error:n,reset:r}):e.children})}var nt=class extends Z.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function rt({error:e}){let[t,n]=Z.useState(!1);return(0,Q.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,Q.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,Q.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,Q.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,Q.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,Q.jsx)(`div`,{children:(0,Q.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,Q.jsx)(`code`,{children:e.message}):null})}):null]})}function it(e){let t=i(),n=`not-found-${v(t.stores.location,e=>e.pathname)}-${v(t.stores.status,e=>e)}`;return(0,Q.jsx)(tt,{getResetKey:()=>n,onCatch:(t,n)=>{if(j(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(j(t))return e.fallback?.(t);throw t},children:e.children})}function at(){return(0,Q.jsx)(`p`,{children:`Not Found`})}function $(e){return(0,Q.jsx)(Q.Fragment,{children:e.children})}function ot(e,t,n){return t.options.notFoundComponent?(0,Q.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,Q.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,Q.jsx)(at,{})}var st=Z.memo(function({matchId:e}){let t=i(),n=t.stores.matchStores.get(e);n||p();let r=v(t.stores.loadedAt,e=>e),a=v(n,e=>e);return(0,Q.jsx)(ct,{router:t,matchId:e,resetKey:r,matchState:Z.useMemo(()=>{let e=a.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:a.ssr,_displayPending:a._displayPending,parentRouteId:n}},[a._displayPending,a.routeId,a.ssr,t.routesById])})});function ct({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,Q.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?Z.Suspense:$,f=s?tt:$,p=l?it:$;return(0,Q.jsxs)(i.isRoot?i.options.shellComponent??$:$,{children:[(0,Q.jsx)(ie.Provider,{value:t,children:(0,Q.jsx)(d,{fallback:o,children:(0,Q.jsx)(f,{getResetKey:()=>n,errorComponent:s||rt,onCatch:(e,t)=>{if(j(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,Q.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return Z.createElement(l,e)},children:u||r._displayPending?(0,Q.jsx)(ee,{fallback:o,children:(0,Q.jsx)(ut,{matchId:t})}):(0,Q.jsx)(ut,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(lt,{resetKey:n}),(e.options.scrollRestoration,null)]}):null]})}function lt({resetKey:e}){let t=i(),n=Z.useRef(void 0);return r(()=>{let e=t.latestLocation.href;(n.current===void 0||n.current!==e)&&(t.emit({type:`onRendered`,...J(t.stores.location.get(),t.stores.resolvedLocation.get())}),n.current=e)},[t.latestLocation.state.__TSR_key,e,t]),null}var ut=Z.memo(function({matchId:e}){let t=i(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||p();let o=v(r,e=>e),s=o.routeId,c=t.routesById[s],l=Z.useMemo(()=>{let e=(t.routesById[s].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:s,loaderDeps:o.loaderDeps,params:o._strictParams,search:o._strictSearch});return e?JSON.stringify(e):void 0},[s,o.loaderDeps,o._strictParams,o._strictSearch,t.options.defaultRemountDeps,t.routesById]),u=Z.useMemo(()=>{let e=c.options.component??t.options.defaultComponent;return e?(0,Q.jsx)(e,{},l):(0,Q.jsx)(dt,{})},[l,c.options.component,t.options.defaultComponent]);if(o._displayPending)throw n(o,`displayPendingPromise`);if(o._forcePending)throw n(o,`minPendingPromise`);if(o.status===`pending`){let e=c.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(o.id);if(n&&!n._nonReactive.minPendingPromise){let t=a();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(o,`loadPromise`)}if(o.status===`notFound`)return j(o.error)||p(),ot(t,c,o.error);if(o.status===`redirected`)throw M(o.error)||p(),n(o,`loadPromise`);if(o.status===`error`)throw o.error;return u}),dt=Z.memo(function(){let e=i(),t=Z.useContext(ie),n,r=!1,a;{let i=t?e.stores.matchStores.get(t):void 0;[n,r]=v(i,e=>[e?.routeId,e?.globalNotFound??!1]),a=v(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let o=n?e.routesById[n]:void 0,s=e.options.defaultPendingComponent?(0,Q.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return o||p(),ot(e,o,void 0);if(!a)return null;let c=(0,Q.jsx)(st,{matchId:a});return n===`__root__`?(0,Q.jsx)(Z.Suspense,{fallback:s,children:c}):c});export{rt as a,Ce as c,tt as i,we as l,dt as n,qe as o,$ as r,J as s,st as t}; \ No newline at end of file diff --git a/src/www/assets/Matches-DYR79wJf.js b/src/www/assets/Matches-9qnXJNrS.js similarity index 90% rename from src/www/assets/Matches-DYR79wJf.js rename to src/www/assets/Matches-9qnXJNrS.js index 403a640..64a8d90 100644 --- a/src/www/assets/Matches-DYR79wJf.js +++ b/src/www/assets/Matches-9qnXJNrS.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";import{o as r,s as i,t as a}from"./useRouter-DtTm7XkK.js";import{t as o}from"./useStore-CupyIEEP.js";import{f as s}from"./ClientOnly-fFIveJVd.js";import"./redirect-DMNGvjzO.js";import{a as c,i as l,r as u,s as d,t as f}from"./Match-Cm64cgS9.js";import{n as p}from"./matchContext-BFCdcHzo.js";import{t as m}from"./atom-DQpaPCwp.js";function h(e){if(typeof document<`u`&&document.querySelector){let t=e.stores.location.get(),n=t.state.__hashScrollIntoViewOptions??!0;if(n&&t.hash!==``){let e=document.getElementById(t.hash);e&&e.scrollIntoView(n)}}}var g=e(t(),1);function _(){let e=a(),t=g.useRef({router:e,mounted:!1}),[n,c]=g.useState(!1),l=o(e.stores.isLoading,e=>e),u=o(e.stores.hasPending,e=>e),f=i(l),p=l||n||u,_=i(p),v=l||u,y=i(v);return e.startTransition=e=>{c(!0),g.startTransition(()=>{e(),c(!1)})},g.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return s(e.latestLocation.publicHref)!==s(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),r(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),r(()=>{f&&!l&&e.emit({type:`onLoad`,...d(e.stores.location.get(),e.stores.resolvedLocation.get())})},[f,e,l]),r(()=>{y&&!v&&e.emit({type:`onBeforeRouteMount`,...d(e.stores.location.get(),e.stores.resolvedLocation.get())})},[v,y,e]),r(()=>{if(_&&!p){let t=d(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),m(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())}),t.hrefChanged&&h(e)}},[p,_,e]),null}var v=n();function y(){let e=a(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,v.jsx)(t,{}):null,r=(0,v.jsxs)(typeof document<`u`&&e.ssr?u:g.Suspense,{fallback:n,children:[(0,v.jsx)(_,{}),(0,v.jsx)(b,{})]});return e.options.InnerWrap?(0,v.jsx)(e.options.InnerWrap,{children:r}):r}function b(){let e=a(),t=o(e.stores.firstId,e=>e),n=o(e.stores.loadedAt,e=>e),r=t?(0,v.jsx)(f,{matchId:t}):null;return(0,v.jsx)(p.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,v.jsx)(l,{getResetKey:()=>n,errorComponent:c,onCatch:void 0,children:r})})}function x(){let e=a();return o(e.stores.matchRouteDeps,e=>e),g.useCallback(t=>{let{pending:n,caseSensitive:r,fuzzy:i,includeSearch:a,...o}=t;return e.matchRoute(o,{pending:n,caseSensitive:r,fuzzy:i,includeSearch:a})},[e])}export{x as n,y as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{o as r,s as i,t as a}from"./useRouter-DtTm7XkK.js";import{t as o}from"./useStore-CupyIEEP.js";import{f as s}from"./ClientOnly-Bj5CESUC.js";import"./redirect-DMNGvjzO.js";import{a as c,i as l,r as u,s as d,t as f}from"./Match-DrG03Wse.js";import{n as p}from"./matchContext-BFCdcHzo.js";import{t as m}from"./atom-DQpaPCwp.js";function h(e){if(typeof document<`u`&&document.querySelector){let t=e.stores.location.get(),n=t.state.__hashScrollIntoViewOptions??!0;if(n&&t.hash!==``){let e=document.getElementById(t.hash);e&&e.scrollIntoView(n)}}}var g=e(t(),1);function _(){let e=a(),t=g.useRef({router:e,mounted:!1}),[n,c]=g.useState(!1),l=o(e.stores.isLoading,e=>e),u=o(e.stores.hasPending,e=>e),f=i(l),p=l||n||u,_=i(p),v=l||u,y=i(v);return e.startTransition=e=>{c(!0),g.startTransition(()=>{e(),c(!1)})},g.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return s(e.latestLocation.publicHref)!==s(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),r(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),r(()=>{f&&!l&&e.emit({type:`onLoad`,...d(e.stores.location.get(),e.stores.resolvedLocation.get())})},[f,e,l]),r(()=>{y&&!v&&e.emit({type:`onBeforeRouteMount`,...d(e.stores.location.get(),e.stores.resolvedLocation.get())})},[v,y,e]),r(()=>{if(_&&!p){let t=d(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),m(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())}),t.hrefChanged&&h(e)}},[p,_,e]),null}var v=n();function y(){let e=a(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,v.jsx)(t,{}):null,r=(0,v.jsxs)(typeof document<`u`&&e.ssr?u:g.Suspense,{fallback:n,children:[(0,v.jsx)(_,{}),(0,v.jsx)(b,{})]});return e.options.InnerWrap?(0,v.jsx)(e.options.InnerWrap,{children:r}):r}function b(){let e=a(),t=o(e.stores.firstId,e=>e),n=o(e.stores.loadedAt,e=>e),r=t?(0,v.jsx)(f,{matchId:t}):null;return(0,v.jsx)(p.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,v.jsx)(l,{getResetKey:()=>n,errorComponent:c,onCatch:void 0,children:r})})}function x(){let e=a();return o(e.stores.matchRouteDeps,e=>e),g.useCallback(t=>{let{pending:n,caseSensitive:r,fuzzy:i,includeSearch:a,...o}=t;return e.matchRoute(o,{pending:n,caseSensitive:r,fuzzy:i,includeSearch:a})},[e])}export{x as n,y as t}; \ No newline at end of file diff --git a/src/www/assets/_error-BSLzv73v.js b/src/www/assets/_error-BSLzv73v.js deleted file mode 100644 index 2a7eed7..0000000 --- a/src/www/assets/_error-BSLzv73v.js +++ /dev/null @@ -1 +0,0 @@ -import{em as e}from"./messages-Bp0bCjzp.js";import{m as t}from"./search-provider-Bl2HDfcG.js";import{n,t as r}from"./theme-switch-B3Qb32n8.js";import{t as i}from"./general-error-BoIfl_4Z.js";import{t as a}from"./not-found-error-CHHM1I1c.js";import{t as o}from"./_error-CeoUllM-.js";import{t as s}from"./unauthorized-error-B6bKLdq-.js";import{t as c}from"./forbidden-DZPSchCU.js";import{t as l}from"./maintenance-error-CuCw7L8t.js";import{n as u,r as d,t as f}from"./header-D45l3Ai7.js";var p=e();function m(){let{error:e}=o.useParams(),m={unauthorized:s,forbidden:c,"not-found":a,"internal-server-error":i,"maintenance-error":l}[e]||a;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(f,{className:`border-b`,fixed:!0,children:[(0,p.jsx)(u,{}),(0,p.jsxs)(`div`,{className:`ms-auto flex items-center space-x-4`,children:[(0,p.jsx)(n,{}),(0,p.jsx)(r,{}),(0,p.jsx)(t,{}),(0,p.jsx)(d,{})]})]}),(0,p.jsx)(`div`,{className:`flex-1 [&>div]:h-full`,children:(0,p.jsx)(m,{})})]})}export{m as component}; \ No newline at end of file diff --git a/src/www/assets/_error-BWjxg4aC.js b/src/www/assets/_error-BWjxg4aC.js new file mode 100644 index 0000000..e77affb --- /dev/null +++ b/src/www/assets/_error-BWjxg4aC.js @@ -0,0 +1 @@ +import{tm as e}from"./messages-BOatyqUm.js";import{m as t}from"./search-provider-C-_FQI9C.js";import{n,t as r}from"./theme-switch-CHLQml_8.js";import{t as i}from"./general-error-BoAB2alm.js";import{t as a}from"./not-found-error-BvJzTnw0.js";import{t as o}from"./_error-CtV7sHbI.js";import{t as s}from"./unauthorized-error-CtrGmVOn.js";import{t as c}from"./forbidden-CgQyYxDt.js";import{t as l}from"./maintenance-error-DeZhljU8.js";import{n as u,r as d,t as f}from"./header-DVAsq5d6.js";var p=e();function m(){let{error:e}=o.useParams(),m={unauthorized:s,forbidden:c,"not-found":a,"internal-server-error":i,"maintenance-error":l}[e]||a;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(f,{className:`border-b`,fixed:!0,children:[(0,p.jsx)(u,{}),(0,p.jsxs)(`div`,{className:`ms-auto flex items-center space-x-4`,children:[(0,p.jsx)(n,{}),(0,p.jsx)(r,{}),(0,p.jsx)(t,{}),(0,p.jsx)(d,{})]})]}),(0,p.jsx)(`div`,{className:`flex-1 [&>div]:h-full`,children:(0,p.jsx)(m,{})})]})}export{m as component}; \ No newline at end of file diff --git a/src/www/assets/_error-CeoUllM-.js b/src/www/assets/_error-CeoUllM-.js deleted file mode 100644 index e0c6e7a..0000000 --- a/src/www/assets/_error-CeoUllM-.js +++ /dev/null @@ -1,2 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_error-BSLzv73v.js","assets/search-provider-Bl2HDfcG.js","assets/chunk-DECur_0Z.js","assets/dist-CRowTfGU.js","assets/dist-CKFLmh1A.js","assets/messages-Bp0bCjzp.js","assets/react-CO2uhaBc.js","assets/confirm-dialog-YmxNnOr3.js","assets/button-BgMnOYKD.js","assets/clsx-D9aGYY3V.js","assets/dist-CPQ-sRtL.js","assets/dist-_ND6L-P3.js","assets/dist-B0ikDpJU.js","assets/dist-BFnxq45V.js","assets/es2015-D8VLlhse.js","assets/dist-Clua1vrx.js","assets/dist-C97YBjnT.js","assets/dist-036CEgdV.js","assets/dist-D7AUoOWu.js","assets/dist-C6i4A_Js.js","assets/dist-BixeH3nX.js","assets/dist-DGDEBCW9.js","assets/separator-DbmFQXe4.js","assets/tooltip-Gx9CUpPD.js","assets/dist-BSXD7MjW.js","assets/dist-Bmn8KNt7.js","assets/auth-store-Csn6HPxJ.js","assets/dist-BGqHIBUe.js","assets/with-selector-DBfssCrY.js","assets/cookies-BzZOQYPw.js","assets/useRouter-DtTm7XkK.js","assets/useNavigate-7u4DX0Ho.js","assets/useStore-CupyIEEP.js","assets/command-CIv3ggHf.js","assets/createLucideIcon-Br0Bd5k2.js","assets/dialog-BJ5VA2v_.js","assets/skeleton-BQsmx80h.js","assets/wallet-Bgblr4kl.js","assets/sun-JU8p4FoE.js","assets/shield-check-MAPDL1u8.js","assets/logo-Ce__4GTc.js","assets/input-BleRUV2A.js","assets/font-provider-CtpKPVa7.js","assets/theme-provider-CyJJNAox.js","assets/theme-switch-B3Qb32n8.js","assets/dropdown-menu-8-hEBtzr.js","assets/check-CHp0nSkR.js","assets/header-D45l3Ai7.js","assets/link-BYG8nKNO.js","assets/ClientOnly-fFIveJVd.js","assets/forbidden-DZPSchCU.js","assets/general-error-BoIfl_4Z.js","assets/maintenance-error-CuCw7L8t.js","assets/not-found-error-CHHM1I1c.js","assets/unauthorized-error-B6bKLdq-.js"])))=>i.map(i=>d[i]); -import{n as e,t}from"./lazyRouteComponent-iygd3-DM.js";import{t as n}from"./preload-helper-DoS0eHac.js";var r=e(`/_authenticated/errors/$error`)({component:t(()=>n(()=>import(`./_error-BSLzv73v.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),`component`)});export{r as t}; \ No newline at end of file diff --git a/src/www/assets/_error-CtV7sHbI.js b/src/www/assets/_error-CtV7sHbI.js new file mode 100644 index 0000000..7757ce3 --- /dev/null +++ b/src/www/assets/_error-CtV7sHbI.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_error-BWjxg4aC.js","assets/search-provider-C-_FQI9C.js","assets/chunk-DECur_0Z.js","assets/dist-CRowTfGU.js","assets/dist-DPPquN_M.js","assets/messages-BOatyqUm.js","assets/react-CO2uhaBc.js","assets/confirm-dialog-D1L-0EhT.js","assets/button-C_NDYaz8.js","assets/clsx-D9aGYY3V.js","assets/dist-iiotRAEO.js","assets/dist-rcWP-8Cu.js","assets/dist-D4X8zGEB.js","assets/dist-Cc8_LDAq.js","assets/es2015-DT8UeWzs.js","assets/dist-DvwKOQ8R.js","assets/dist-BNFQuJTu.js","assets/dist-C5heX0fx.js","assets/dist-D0DoWChj.js","assets/dist-CHFjpVqk.js","assets/dist-BixeH3nX.js","assets/dist-ZdRQQNeu.js","assets/separator-CsUemQNs.js","assets/tooltip-xZuTTfnF.js","assets/dist-CsIb2aLK.js","assets/dist-Dtn5c_cx.js","assets/auth-store-De4Y7PFV.js","assets/dist-JOUh6qvR.js","assets/with-selector-DBfssCrY.js","assets/cookies-BzZOQYPw.js","assets/useRouter-DtTm7XkK.js","assets/useNavigate-7u4DX0Ho.js","assets/useStore-CupyIEEP.js","assets/command-B_SlhXkX.js","assets/createLucideIcon-Br0Bd5k2.js","assets/dialog-CZ-2RPb-.js","assets/skeleton-CmDjDV1O.js","assets/wallet-CtiawGS1.js","assets/sun-JU8p4FoE.js","assets/shield-check-MAPDL1u8.js","assets/logo-agrtpj2n.js","assets/input-8zzM34r5.js","assets/font-provider-BPsIRWbb.js","assets/theme-provider-BREWrHp_.js","assets/theme-switch-CHLQml_8.js","assets/dropdown-menu-DzCIpsuG.js","assets/check-CHp0nSkR.js","assets/header-DVAsq5d6.js","assets/link-DPnL8P5J.js","assets/ClientOnly-Bj5CESUC.js","assets/forbidden-CgQyYxDt.js","assets/general-error-BoAB2alm.js","assets/maintenance-error-DeZhljU8.js","assets/not-found-error-BvJzTnw0.js","assets/unauthorized-error-CtrGmVOn.js"])))=>i.map(i=>d[i]); +import{n as e,t}from"./lazyRouteComponent-JF8ipq5d.js";import{t as n}from"./preload-helper-DoS0eHac.js";var r=e(`/_authenticated/errors/$error`)({component:t(()=>n(()=>import(`./_error-BWjxg4aC.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),`component`)});export{r as t}; \ No newline at end of file diff --git a/src/www/assets/_trade_id-BQK1SM3u.js b/src/www/assets/_trade_id-BQK1SM3u.js deleted file mode 100644 index 49afc59..0000000 --- a/src/www/assets/_trade_id-BQK1SM3u.js +++ /dev/null @@ -1,2 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_trade_id-Busmu9hU.js","assets/chunk-DECur_0Z.js","assets/button-BgMnOYKD.js","assets/clsx-D9aGYY3V.js","assets/messages-Bp0bCjzp.js","assets/react-CO2uhaBc.js","assets/select-C9s05In_.js","assets/dist-BSXD7MjW.js","assets/dist-CKFLmh1A.js","assets/dist-B0ikDpJU.js","assets/dist-BFnxq45V.js","assets/dist-DGDEBCW9.js","assets/dist-CRowTfGU.js","assets/dist-C6i4A_Js.js","assets/dist-C97YBjnT.js","assets/dist-_ND6L-P3.js","assets/es2015-D8VLlhse.js","assets/dist-BixeH3nX.js","assets/dist-Bmn8KNt7.js","assets/createLucideIcon-Br0Bd5k2.js","assets/check-CHp0nSkR.js","assets/chevron-down-BB5h1CsX.js","assets/auth-store-Csn6HPxJ.js","assets/dist-BGqHIBUe.js","assets/with-selector-DBfssCrY.js","assets/cookies-BzZOQYPw.js","assets/useNavigate-7u4DX0Ho.js","assets/useRouter-DtTm7XkK.js","assets/copy-to-clipboard-C1tj4a8X.js","assets/arrow-left-right-CcCrkQiR.js","assets/arrow-left-BpZwGREZ.js","assets/radio-group-DrQ9k883.js","assets/dist-036CEgdV.js","assets/dist-Clua1vrx.js","assets/dist-D7AUoOWu.js","assets/loader-circle-DpEz1fQv.js","assets/send-BNvceEpO.js","assets/triangle-alert-DB5v_9sS.js","assets/dialog-BJ5VA2v_.js","assets/dist-CPQ-sRtL.js","assets/crypto-icon-DsKMU9xz.js","assets/labels-D0HnAPk9.js","assets/input-BleRUV2A.js","assets/checkout-model-CQ3aqlob.js"])))=>i.map(i=>d[i]); -import{n as e,t}from"./lazyRouteComponent-iygd3-DM.js";import{t as n}from"./preload-helper-DoS0eHac.js";var r=e(`/cashier/$trade_id/`)({component:t(()=>n(()=>import(`./_trade_id-Busmu9hU.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43])),`component`)});export{r as t}; \ No newline at end of file diff --git a/src/www/assets/_trade_id-Busmu9hU.js b/src/www/assets/_trade_id-Busmu9hU.js deleted file mode 100644 index dd52789..0000000 --- a/src/www/assets/_trade_id-Busmu9hU.js +++ /dev/null @@ -1,4 +0,0 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{a as t,p as n}from"./auth-store-Csn6HPxJ.js";import{t as r}from"./react-CO2uhaBc.js";import{$ as i,A as a,B as o,D as s,E as c,F as l,G as u,H as d,I as f,J as p,K as m,L as h,M as g,N as _,O as v,P as y,Q as b,R as x,Ru as S,T as C,U as w,V as T,W as E,X as D,Y as O,Yp as k,Z as A,at as ee,ct as j,em as te,et as ne,it as re,j as ie,k as ae,lt as M,n as N,nt as oe,ot as P,r as F,st as se,t as ce,tt as I,z as L}from"./messages-Bp0bCjzp.js";import{t as le}from"./useNavigate-7u4DX0Ho.js";import{i as ue,t as R}from"./button-BgMnOYKD.js";import{a as z,i as de,n as fe,r as B,t as pe}from"./select-C9s05In_.js";import{t as V}from"./createLucideIcon-Br0Bd5k2.js";import{t as me}from"./arrow-left-right-CcCrkQiR.js";import{t as H}from"./arrow-left-BpZwGREZ.js";import{t as he}from"./check-CHp0nSkR.js";import{n as ge,t as _e}from"./radio-group-DrQ9k883.js";import{n as ve,t as ye}from"./copy-to-clipboard-C1tj4a8X.js";import{t as U}from"./loader-circle-DpEz1fQv.js";import{t as be}from"./send-BNvceEpO.js";import{t as xe}from"./triangle-alert-DB5v_9sS.js";import{a as Se,c as Ce,i as we,l as Te,n as Ee,o as De,r as Oe,s as ke,t as Ae}from"./dialog-BJ5VA2v_.js";import{n as je}from"./dist-BGqHIBUe.js";import{t as Me}from"./_trade_id-BQK1SM3u.js";import{t as Ne}from"./input-BleRUV2A.js";import{a as Pe,i as Fe,n as Ie,o as Le,r as Re,s as ze,t as Be}from"./crypto-icon-DsKMU9xz.js";import{n as Ve,t as He}from"./labels-D0HnAPk9.js";import{a as Ue,c as We,d as Ge,f as W,h as Ke,i as qe,l as Je,m as Ye,n as Xe,o as Ze,p as Qe,r as $e,s as et,u as tt}from"./checkout-model-CQ3aqlob.js";var nt=V(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),rt=V(`file-x`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m14.5 12.5-5 5`,key:`b62r18`}],[`path`,{d:`m9.5 12.5 5 5`,key:`1rk7el`}]]),it=V(`link`,[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]),at=V(`timer`,[[`line`,{x1:`10`,x2:`14`,y1:`2`,y2:`2`,key:`14vaq8`}],[`line`,{x1:`12`,x2:`15`,y1:`14`,y2:`11`,key:`17fdiu`}],[`circle`,{cx:`12`,cy:`14`,r:`8`,key:`1e1u0o`}]]),ot=e(ye(),1),G=e(r()),st=Object.defineProperty,ct=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,dt=(e,t,n)=>t in e?st(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ft=(e,t)=>{for(var n in t||={})lt.call(t,n)&&dt(e,n,t[n]);if(ct)for(var n of ct(t))ut.call(t,n)&&dt(e,n,t[n]);return e},pt=(e,t)=>{var n={};for(var r in e)lt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ct)for(var r of ct(e))t.indexOf(r)<0&&ut.call(e,r)&&(n[r]=e[r]);return n},mt;(e=>{let t=class t{constructor(e,n,r,a){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],et.MAX_VERSION)throw RangeError(`Version value out of range`);if(a<-1||a>7)throw RangeError(`Mask value out of range`);this.size=e*4+17;let o=[];for(let e=0;e7)throw RangeError(`Invalid value`);let u,d;for(u=a;;u++){let n=t.getNumDataCodewords(u,r)*8,i=o.getTotalBits(e,u);if(i<=n){d=i;break}if(u>=s)throw RangeError(`Data too long`)}for(let e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])l&&d<=t.getNumDataCodewords(u,e)*8&&(r=e);let f=[];for(let t of e){n(t.mode.modeBits,4,f),n(t.numChars,t.mode.numCharCountBits(u),f);for(let e of t.getData())f.push(e)}i(f.length==d);let p=t.getNumDataCodewords(u,r)*8;i(f.length<=p),n(0,Math.min(4,p-f.length),f),n(0,(8-f.length%8)%8,f),i(f.length%8==0);for(let e=236;f.lengthm[t>>>3]|=e<<7-(t&7)),new t(u,r,m,c)}getModule(e,t){return 0<=e&&e>>9)*1335;let a=(t<<10|n)^21522;i(a>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(a,e));this.setFunctionModule(8,7,r(a,6)),this.setFunctionModule(8,8,r(a,7)),this.setFunctionModule(7,8,r(a,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(a,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(a,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(a,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;i(t>>>18==0);for(let e=0;e<18;e++){let n=r(t,e),i=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(i,a,n),this.setFunctionModule(a,i,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;0<=a&&a{(e!=l-o||n>=c)&&f.push(t[e])});return i(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw RangeError(`Invalid argument`);let n=0;for(let t=this.size-1;t>=1;t-=2){t==6&&(t=5);for(let i=0;i>>3],7-(n&7)),n++)}}i(n==e.length*8)}applyMask(e){if(e<0||e>7)throw RangeError(`Mask value out of range`);for(let t=0;t5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][o],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;n5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[o][n],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;ne+ +!!t,n);let r=this.size*this.size,a=Math.ceil(Math.abs(n*20-r*10)/r)-1;return i(0<=a&&a<=9),e+=a*t.PENALTY_N4,i(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(this.version==1)return[];{let e=Math.floor(this.version/7)+2,t=this.version==32?26:Math.ceil((this.version*4+4)/(e*2-2))*2,n=[6];for(let r=this.size-7;n.lengtht.MAX_VERSION)throw RangeError(`Version number out of range`);let n=(16*e+128)*e+64;if(e>=2){let t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return i(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw RangeError(`Degree out of range`);let n=[];for(let t=0;t0);for(let i of e){let e=i^r.shift();r.push(0),n.forEach((n,i)=>r[i]^=t.reedSolomonMultiply(n,e))}return r}static reedSolomonMultiply(e,t){if(e>>>8||t>>>8)throw RangeError(`Byte out of range`);let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return i(n>>>8==0),n}finderPenaltyCountPatterns(e){let t=e[1];i(t<=this.size*3);let n=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(n&&e[0]>=t*4&&e[6]>=t?1:0)+(n&&e[6]>=t*4&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(e,t,n){if(t<0||t>31||e>>>t)throw RangeError(`Value out of range`);for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function r(e,t){return(e>>>t&1)!=0}function i(e){if(!e)throw Error(`Assertion error`)}let a=class e{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw RangeError(`Invalid argument`);this.bitData=n.slice()}static makeBytes(t){let r=[];for(let e of t)n(e,8,r);return new e(e.Mode.BYTE,t.length,r)}static makeNumeric(t){if(!e.isNumeric(t))throw RangeError(`String contains non-numeric characters`);let r=[];for(let e=0;e=1<{(e=>{let t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};t.LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2),e.Ecc=t})(e.QrCode||={})})(mt||={}),(e=>{(e=>{let t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};t.NUMERIC=new t(1,[10,12,14]),t.ALPHANUMERIC=new t(2,[9,11,13]),t.BYTE=new t(4,[8,16,16]),t.KANJI=new t(8,[8,10,12]),t.ECI=new t(7,[0,0,0]),e.Mode=t})(e.QrSegment||={})})(mt||={});var K=mt,ht={L:K.QrCode.Ecc.LOW,M:K.QrCode.Ecc.MEDIUM,Q:K.QrCode.Ecc.QUARTILE,H:K.QrCode.Ecc.HIGH},gt=128,_t=`L`,vt=`#FFFFFF`,yt=`#000000`,bt=!1,xt=1,St=4,Ct=0,wt=.1;function Tt(e,t=0){let n=[];return e.forEach(function(e,r){let i=null;e.forEach(function(a,o){if(!a&&i!==null){n.push(`M${i+t} ${r+t}h${o-i}v1H${i+t}z`),i=null;return}if(o===e.length-1){if(!a)return;i===null?n.push(`M${o+t},${r+t} h1v1H${o+t}z`):n.push(`M${i+t},${r+t} h${o+1-i}v1H${i+t}z`);return}a&&i===null&&(i=o)})}),n.join(``)}function Et(e,t){return e.slice().map((e,n)=>n=t.y+t.h?e:e.map((e,n)=>n=t.x+t.w?e:!1))}function Dt(e,t,n,r){if(r==null)return null;let i=e.length+n*2,a=Math.floor(t*wt),o=i/t,s=(r.width||a)*o,c=(r.height||a)*o,l=r.x==null?e.length/2-s/2:r.x*o,u=r.y==null?e.length/2-c/2:r.y*o,d=r.opacity==null?1:r.opacity,f=null;if(r.excavate){let e=Math.floor(l),t=Math.floor(u);f={x:e,y:t,w:Math.ceil(s+l-e),h:Math.ceil(c+u-t)}}let p=r.crossOrigin;return{x:l,y:u,h:c,w:s,excavation:f,opacity:d,crossOrigin:p}}function Ot(e,t){return t==null?e?St:Ct:Math.max(Math.floor(t),0)}function kt({value:e,level:t,minVersion:n,includeMargin:r,marginSize:i,imageSettings:a,size:o,boostLevel:s}){let c=G.useMemo(()=>{let r=(Array.isArray(e)?e:[e]).reduce((e,t)=>(e.push(...K.QrSegment.makeSegments(t)),e),[]);return K.QrCode.encodeSegments(r,ht[t],n,void 0,void 0,s)},[e,t,n,s]),{cells:l,margin:u,numCells:d,calculatedImageSettings:f}=G.useMemo(()=>{let e=c.getModules(),t=Ot(r,i);return{cells:e,margin:t,numCells:e.length+t*2,calculatedImageSettings:Dt(e,o,t,a)}},[c,o,a,r,i]);return{qrcode:c,margin:u,cells:l,numCells:d,calculatedImageSettings:f}}var At=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}(),jt=G.forwardRef(function(e,t){let n=e,{value:r,size:i=gt,level:a=_t,bgColor:o=vt,fgColor:s=yt,includeMargin:c=bt,minVersion:l=xt,boostLevel:u,marginSize:d,imageSettings:f}=n,p=pt(n,[`value`,`size`,`level`,`bgColor`,`fgColor`,`includeMargin`,`minVersion`,`boostLevel`,`marginSize`,`imageSettings`]),{style:m}=p,h=pt(p,[`style`]),g=f?.src,_=G.useRef(null),v=G.useRef(null),y=G.useCallback(e=>{_.current=e,typeof t==`function`?t(e):t&&(t.current=e)},[t]),[b,x]=G.useState(!1),{margin:S,cells:C,numCells:w,calculatedImageSettings:T}=kt({value:r,level:a,minVersion:l,boostLevel:u,includeMargin:c,marginSize:d,imageSettings:f,size:i});G.useEffect(()=>{if(_.current!=null){let e=_.current,t=e.getContext(`2d`);if(!t)return;let n=C,r=v.current,a=T!=null&&r!==null&&r.complete&&r.naturalHeight!==0&&r.naturalWidth!==0;a&&T.excavation!=null&&(n=Et(C,T.excavation));let c=window.devicePixelRatio||1;e.height=e.width=i*c;let l=i/w*c;t.scale(l,l),t.fillStyle=o,t.fillRect(0,0,w,w),t.fillStyle=s,At?t.fill(new Path2D(Tt(n,S))):C.forEach(function(e,n){e.forEach(function(e,r){e&&t.fillRect(r+S,n+S,1,1)})}),T&&(t.globalAlpha=T.opacity),a&&t.drawImage(r,T.x+S,T.y+S,T.w,T.h)}}),G.useEffect(()=>{x(!1)},[g]);let E=ft({height:i,width:i},m),D=null;return g!=null&&(D=G.createElement(`img`,{src:g,key:g,style:{display:`none`},onLoad:()=>{x(!0)},ref:v,crossOrigin:T?.crossOrigin})),G.createElement(G.Fragment,null,G.createElement(`canvas`,ft({style:E,height:i,width:i,ref:y,role:`img`},h)),D)});jt.displayName=`QRCodeCanvas`;var Mt=G.forwardRef(function(e,t){let n=e,{value:r,size:i=gt,level:a=_t,bgColor:o=vt,fgColor:s=yt,includeMargin:c=bt,minVersion:l=xt,boostLevel:u,title:d,marginSize:f,imageSettings:p}=n,m=pt(n,[`value`,`size`,`level`,`bgColor`,`fgColor`,`includeMargin`,`minVersion`,`boostLevel`,`title`,`marginSize`,`imageSettings`]),{margin:h,cells:g,numCells:_,calculatedImageSettings:v}=kt({value:r,level:a,minVersion:l,boostLevel:u,includeMargin:c,marginSize:f,imageSettings:p,size:i}),y=g,b=null;p!=null&&v!=null&&(v.excavation!=null&&(y=Et(g,v.excavation)),b=G.createElement(`image`,{href:p.src,height:v.h,width:v.w,x:v.x+h,y:v.y+h,preserveAspectRatio:`none`,opacity:v.opacity,crossOrigin:v.crossOrigin}));let x=Tt(y,h);return G.createElement(`svg`,ft({height:i,width:i,viewBox:`0 0 ${_} ${_}`,ref:t,role:`img`},m),!!d&&G.createElement(`title`,null,d),G.createElement(`path`,{fill:o,d:`M0,0 h${_}v${_}H0z`,shapeRendering:`crispEdges`}),G.createElement(`path`,{fill:s,d:x,shapeRendering:`crispEdges`}),b)});Mt.displayName=`QRCodeSVG`;var q=te(),Nt=1400;function Pt(e){let t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=e%60,i=e=>String(e).padStart(2,`0`);return t>0?`${i(t)}:${i(n)}:${i(r)}`:`${i(n)}:${i(r)}`}function Ft({className:e,onClick:t}){let[n,r]=(0,G.useState)(!1),i=(0,G.useRef)(void 0);return(0,G.useEffect)(()=>()=>{i.current!==void 0&&window.clearTimeout(i.current)},[]),(0,q.jsx)(R,{className:ue(`mb-0.5 shrink-0`,e),onClick:()=>{if(i.current!==void 0&&window.clearTimeout(i.current),t()===!1){r(!1);return}r(!0),i.current=window.setTimeout(()=>{r(!1),i.current=void 0},Nt)},size:`icon-sm`,type:`button`,variant:`secondary`,children:n?(0,q.jsx)(he,{className:`text-emerald-600 dark:text-emerald-400`}):(0,q.jsx)(ve,{})})}var It=2*Math.PI*20;function Lt({onCopyAddress:e,onChangePaymentOption:t,onSubmitTxHash:n,onTxHashChange:r,order:i,paymentMethod:c,remaining:l,showChangePaymentOption:u,showTxHashSubmit:d,submittingTxHash:f,timeColor:m,timerRatio:h,txHash:y}){let[b,x]=(0,G.useState)(!1),S=i?.receive_address??``,C=i?.payment_url;return c===`okpay`||String(i?.network??``)===`okpay`||C&&!S?(0,q.jsxs)(`section`,{className:`w-full pb-4`,children:[(0,q.jsxs)(`div`,{className:`mb-4 w-full rounded-2xl border bg-card px-5 py-5 text-card-foreground shadow-md`,children:[(0,q.jsx)(`p`,{className:`mb-2 font-semibold text-sm`,children:ce()}),C?(0,q.jsx)(`p`,{className:`break-all text-muted-foreground text-sm`,children:C}):null]}),C?(0,q.jsxs)(R,{className:`mb-3 h-12 w-full rounded-xl text-base`,onClick:()=>{window.open(C,`okpay_checkout`,`popup,width=480,height=720`)},type:`button`,children:[(0,q.jsx)(nt,{}),F()]}):null]}):(0,q.jsxs)(`section`,{className:`w-full pb-4`,children:[(0,q.jsxs)(`div`,{className:`mb-4 w-full overflow-hidden rounded-2xl border bg-card px-5 pt-5 pb-0 text-card-foreground shadow-md`,children:[(0,q.jsxs)(`div`,{className:`mb-3 flex items-center justify-between`,children:[(0,q.jsx)(`p`,{className:`font-semibold text-sm`,children:E()}),(0,q.jsxs)(`div`,{className:`relative size-10 shrink-0`,children:[(0,q.jsxs)(`svg`,{"aria-hidden":`true`,className:`absolute inset-0 size-10`,viewBox:`0 0 48 48`,children:[(0,q.jsx)(`circle`,{className:`text-border`,cx:`24`,cy:`24`,fill:`none`,r:`20`,stroke:`currentColor`,strokeWidth:`3`}),(0,q.jsx)(`circle`,{cx:`24`,cy:`24`,fill:`none`,r:`20`,stroke:m,strokeDasharray:It,strokeDashoffset:It*(1-h),strokeLinecap:`round`,strokeWidth:`3`,style:{transform:`rotate(-90deg)`,transformOrigin:`50% 50%`}})]}),(0,q.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center`,children:(0,q.jsx)(at,{className:`size-4 text-muted-foreground`})})]})]}),(0,q.jsx)(`p`,{className:`mb-4 text-center font-bold font-mono text-3xl leading-none`,style:{color:m},children:Pt(l)}),(0,q.jsx)(`div`,{className:`mb-4 flex justify-center`,children:(0,q.jsx)(`div`,{className:`rounded-xl border bg-white p-3.5 shadow-md`,children:S?(0,q.jsx)(Mt,{bgColor:`#ffffff`,fgColor:`#111111`,level:`M`,size:120,value:S}):(0,q.jsx)(`div`,{className:`flex size-30 items-center justify-center text-muted-foreground text-xs`,children:`--`})})}),(0,q.jsxs)(`div`,{className:`-mx-5 flex w-[calc(100%+2.5rem)] items-start gap-3 border-border/50 border-t px-5 py-3.5`,children:[(0,q.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,q.jsx)(`p`,{className:`mb-0.5 font-semibold text-muted-foreground text-xs uppercase tracking-wider`,children:p()}),(0,q.jsx)(`p`,{className:`break-all font-medium text-card-foreground text-sm leading-relaxed`,children:i?.receive_address??`--`})]}),(0,q.jsx)(Ft,{className:`mt-0.5`,onClick:e})]})]}),u?(0,q.jsxs)(R,{className:`mb-3 h-12 w-full rounded-xl text-base`,onClick:t,type:`button`,variant:`outline`,children:[(0,q.jsx)(me,{}),o()]}):null,d?(0,q.jsxs)(Ae,{onOpenChange:x,open:b,children:[(0,q.jsx)(Ce,{asChild:!0,children:(0,q.jsxs)(R,{className:`mb-3 h-12 w-full rounded-xl text-base`,type:`button`,children:[(0,q.jsx)(he,{}),_()]})}),(0,q.jsxs)(Oe,{children:[(0,q.jsxs)(De,{children:[(0,q.jsx)(ke,{children:g()}),(0,q.jsx)(we,{children:ie()})]}),(0,q.jsxs)(`form`,{className:`space-y-4`,onSubmit:async e=>{e.preventDefault(),await n()&&x(!1)},children:[(0,q.jsxs)(`div`,{className:`space-y-2`,children:[(0,q.jsx)(`label`,{className:`font-medium text-sm`,htmlFor:`checkout-tx-hash`,children:a()}),(0,q.jsx)(Ne,{autoComplete:`off`,autoFocus:!0,className:`h-11`,disabled:f,id:`checkout-tx-hash`,onChange:e=>r(e.target.value),placeholder:ae(),value:y})]}),(0,q.jsx)(`p`,{className:`text-muted-foreground text-xs leading-relaxed`,children:v()}),(0,q.jsxs)(Se,{children:[(0,q.jsx)(Ee,{asChild:!0,children:(0,q.jsx)(R,{disabled:f,type:`button`,variant:`outline`,children:k()})}),(0,q.jsxs)(R,{disabled:f||!y.trim(),type:`submit`,children:[f?(0,q.jsx)(U,{className:`animate-spin`}):(0,q.jsx)(be,{}),s()]})]})]})]})]}):null,(0,q.jsxs)(`div`,{className:`flex items-center justify-center gap-1.5 py-1 text-muted-foreground`,children:[(0,q.jsx)(U,{className:`size-3.5 animate-spin`}),(0,q.jsx)(`span`,{className:`text-xs`,children:se()})]})]})}function Rt({className:e,disabled:t,onClick:n}){return(0,q.jsxs)(R,{className:`min-h-18 w-full justify-start rounded-2xl border border-border bg-card/40 px-4 py-3 text-left hover:bg-accent/45 dark:bg-white/[0.03] dark:hover:bg-white/[0.06] ${e??``}`,disabled:t,onClick:n,type:`button`,variant:`ghost`,children:[(0,q.jsx)(Be,{alt:``,className:`size-10 shrink-0 rounded-lg`,height:40,name:`okpay`,type:`wallet`,width:40}),(0,q.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,q.jsx)(`span`,{className:`block truncate font-semibold text-base text-foreground`,children:F()}),(0,q.jsx)(`span`,{className:`mt-1 block truncate font-normal text-muted-foreground text-xs`,children:N()})]}),t?(0,q.jsx)(U,{className:`size-5 shrink-0 animate-spin text-muted-foreground`}):null]})}function zt({onSelectChain:e,onSelectOkpay:t,showChain:n,showOkpay:r}){return(0,q.jsxs)(`section`,{className:`w-full pb-4`,children:[(0,q.jsx)(`p`,{className:`mb-3 font-semibold text-base`,children:T()}),(0,q.jsxs)(`div`,{className:`space-y-3`,children:[n?(0,q.jsxs)(R,{className:`min-h-18 w-full justify-start rounded-2xl border border-border bg-card/40 px-4 py-3 text-left hover:bg-accent/45 dark:bg-white/[0.03] dark:hover:bg-white/[0.06]`,onClick:e,type:`button`,variant:`ghost`,children:[(0,q.jsx)(`span`,{className:`flex size-10 shrink-0 items-center justify-center rounded-lg bg-foreground/10 text-foreground`,children:(0,q.jsx)(it,{className:`size-5`})}),(0,q.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,q.jsx)(`span`,{className:`block truncate font-semibold text-base text-foreground`,children:L()}),(0,q.jsx)(`span`,{className:`mt-1 block truncate font-normal text-muted-foreground text-xs`,children:x()})]})]}):null,r?(0,q.jsx)(Rt,{onClick:t}):null]})]})}function Bt({onBack:e,networkOptions:t,onConfirm:n,onNetworkChange:r,onTokenChange:a,paymentMethod:o,selectedNetwork:s,selectedOption:c,selectedToken:l,showBack:u=!0,submitting:f,tokenOptions:p}){let m=o!==`okpay`,h=o===`okpay`,g=m?d():w(),_=t.find(e=>e.network.toLowerCase()===s.toLowerCase());return(0,q.jsxs)(`section`,{className:`w-full pb-4`,children:[(0,q.jsxs)(`div`,{className:`mb-3 flex items-center gap-2`,children:[u?(0,q.jsx)(R,{"aria-label":j(),className:`size-8 rounded-full`,onClick:e,size:`icon-sm`,type:`button`,variant:`ghost`,children:(0,q.jsx)(H,{})}):null,(0,q.jsx)(`p`,{className:`font-semibold text-base`,children:g})]}),(0,q.jsxs)(`div`,{className:`mb-4 flex gap-2`,children:[m?(0,q.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,q.jsx)(`p`,{className:`mb-1.5 font-semibold text-muted-foreground text-xs uppercase tracking-wider`,children:i()}),(0,q.jsxs)(pe,{disabled:t.length===0,onValueChange:r,value:s,children:[(0,q.jsx)(de,{className:`h-12.5 w-full rounded-xl bg-card`,children:(0,q.jsx)(z,{placeholder:(0,q.jsx)(He,{displayName:_?.displayName,network:s})})}),(0,q.jsx)(fe,{position:`popper`,children:t.map(e=>(0,q.jsx)(B,{value:e.network,children:(0,q.jsx)(He,{displayName:e.displayName,network:e.network})},e.network))})]})]}):null,(0,q.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,q.jsx)(`p`,{className:`mb-1.5 font-semibold text-muted-foreground text-xs uppercase tracking-wider`,children:re()}),h?(0,q.jsx)(_e,{className:`grid grid-cols-2 gap-2`,onValueChange:a,value:l,children:p.map(e=>(0,q.jsxs)(`label`,{className:`flex h-12.5 cursor-pointer items-center gap-3 rounded-xl border bg-card px-3 transition-colors hover:bg-accent/50 has-[[data-state=checked]]:border-primary has-[[data-state=checked]]:bg-primary/5`,htmlFor:`okpay-token-${e.toLowerCase()}`,children:[(0,q.jsx)(ge,{id:`okpay-token-${e.toLowerCase()}`,value:e}),(0,q.jsx)(Ve,{token:e})]},e))}):(0,q.jsxs)(pe,{disabled:p.length===0,onValueChange:a,value:l,children:[(0,q.jsx)(de,{className:`h-12.5 w-full rounded-xl bg-card`,children:(0,q.jsx)(z,{placeholder:(0,q.jsx)(Ve,{token:l})})}),(0,q.jsx)(fe,{position:`popper`,children:p.map(e=>(0,q.jsx)(B,{value:e,children:(0,q.jsx)(Ve,{token:e})},e))})]})]})]}),(0,q.jsx)(R,{className:`h-12 w-full rounded-xl text-base`,disabled:f||!c,onClick:n,type:`button`,children:P()})]})}function Vt({children:e,description:t,icon:n,title:r}){return(0,q.jsxs)(`section`,{"aria-live":`polite`,className:`flex min-h-96 w-full flex-col items-center justify-center rounded-2xl border bg-card px-6 py-10 text-center text-card-foreground shadow-md`,role:`status`,children:[(0,q.jsx)(`div`,{className:`mb-6 flex size-20 items-center justify-center rounded-full bg-muted`,children:n}),(0,q.jsx)(`p`,{className:`mb-2 font-bold text-xl`,children:r}),(0,q.jsx)(`p`,{className:`mb-6 text-muted-foreground text-sm`,children:t}),e]})}function Ht(){return(0,q.jsx)(Vt,{description:se(),icon:(0,q.jsx)(U,{className:`size-8 animate-spin text-muted-foreground`}),title:ne()})}function Ut({redirecting:e}){return(0,q.jsx)(Vt,{description:e?m():f(),icon:(0,q.jsx)(he,{className:`size-10 text-green-500`}),title:h(),children:e?(0,q.jsx)(U,{className:`size-6 animate-spin text-muted-foreground`}):null})}function Wt({onBack:e}){return(0,q.jsxs)(`div`,{className:`space-y-4`,children:[(0,q.jsx)(Vt,{description:I(),icon:(0,q.jsx)(Te,{className:`size-10 text-destructive`}),title:oe()}),(0,q.jsx)(R,{className:`h-12 w-full rounded-xl`,onClick:e,type:`button`,variant:`outline`,children:j()})]})}function Gt({onBack:e,onRetry:t}){return(0,q.jsxs)(`div`,{className:`space-y-4`,children:[(0,q.jsx)(Vt,{description:y(),icon:(0,q.jsx)(xe,{className:`size-10 text-orange-500`}),title:l()}),(0,q.jsxs)(`div`,{className:`flex gap-3`,children:[(0,q.jsx)(R,{className:`h-12 flex-1 rounded-xl`,onClick:e,type:`button`,variant:`outline`,children:j()}),(0,q.jsx)(R,{className:`h-12 flex-1 rounded-xl`,onClick:t,type:`button`,children:u()})]})]})}function Kt({onBack:e}){return(0,q.jsxs)(`div`,{className:`space-y-4`,children:[(0,q.jsx)(Vt,{description:A(),icon:(0,q.jsx)(rt,{className:`size-10 text-muted-foreground`}),title:b()}),(0,q.jsx)(R,{className:`h-12 w-full rounded-xl`,onClick:e,type:`button`,variant:`outline`,children:j()})]})}function qt({networkOptions:e,onBack:t,onChangePaymentOption:n,onConfirmSelection:r,onCopyAddress:i,onNetworkChange:a,onRetry:o,onReturnToMethods:s,onSelectChainPayment:c,onSelectOkpayPayment:l,onSubmitTxHash:u,onTokenChange:d,onTxHashChange:f,order:p,panel:m,remaining:h,selectedPaymentMethod:g,selectedNetwork:_,selectedOption:v,selectedToken:y,showChainPayment:b,showChangePaymentOption:x,showOkpay:S,showReturnToMethods:C,showTxHashSubmit:w,submitting:T,submittingTxHash:E,timeColor:D,timerRatio:O,txHash:k,tokenOptions:A}){switch(m){case`loading`:return(0,q.jsx)(Ht,{});case`method`:return(0,q.jsx)(zt,{onSelectChain:c,onSelectOkpay:l,showChain:b,showOkpay:S});case`select`:return(0,q.jsx)(Bt,{networkOptions:e,onBack:s,onConfirm:r,onNetworkChange:a,onTokenChange:d,paymentMethod:g,selectedNetwork:_,selectedOption:v,selectedToken:y,showBack:C,submitting:T,tokenOptions:A});case`payment`:return(0,q.jsx)(Lt,{onChangePaymentOption:n,onCopyAddress:i,onSubmitTxHash:u,onTxHashChange:f,order:p,paymentMethod:g,remaining:h,showChangePaymentOption:x,showTxHashSubmit:w,submittingTxHash:E,timeColor:D,timerRatio:O,txHash:k});case`success`:return(0,q.jsx)(Ut,{redirecting:!!p?.redirect_url});case`expired`:return(0,q.jsx)(Wt,{onBack:t});case`timeout`:return(0,q.jsx)(Gt,{onBack:t,onRetry:o});case`not-found`:return(0,q.jsx)(Kt,{onBack:t});default:return null}}var Jt=`BN.BN.BN.BN.BN.BN.BN.BN.BN.S.B.S.WS.B.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.B.B.B.S.WS.ON.ON.ET.ET.ET.ON.ON.ON.ON.ON.ES.CS.ES.CS.CS.EN.EN.EN.EN.EN.EN.EN.EN.EN.EN.CS.ON.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.ON.ON.ON.BN.BN.BN.BN.BN.BN.B.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.CS.ON.ET.ET.ET.ET.ON.ON.ON.ON.L.ON.ON.BN.ON.ON.ET.ET.EN.EN.ON.L.ON.ON.ON.EN.L.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.L.L.L.L.L.L.L.L`.split(`.`),Yt=[[697,698,`ON`],[706,719,`ON`],[722,735,`ON`],[741,749,`ON`],[751,767,`ON`],[768,879,`NSM`],[884,885,`ON`],[894,894,`ON`],[900,901,`ON`],[903,903,`ON`],[1014,1014,`ON`],[1155,1161,`NSM`],[1418,1418,`ON`],[1421,1422,`ON`],[1423,1423,`ET`],[1424,1424,`R`],[1425,1469,`NSM`],[1470,1470,`R`],[1471,1471,`NSM`],[1472,1472,`R`],[1473,1474,`NSM`],[1475,1475,`R`],[1476,1477,`NSM`],[1478,1478,`R`],[1479,1479,`NSM`],[1480,1535,`R`],[1536,1541,`AN`],[1542,1543,`ON`],[1544,1544,`AL`],[1545,1546,`ET`],[1547,1547,`AL`],[1548,1548,`CS`],[1549,1549,`AL`],[1550,1551,`ON`],[1552,1562,`NSM`],[1563,1610,`AL`],[1611,1631,`NSM`],[1632,1641,`AN`],[1642,1642,`ET`],[1643,1644,`AN`],[1645,1647,`AL`],[1648,1648,`NSM`],[1649,1749,`AL`],[1750,1756,`NSM`],[1757,1757,`AN`],[1758,1758,`ON`],[1759,1764,`NSM`],[1765,1766,`AL`],[1767,1768,`NSM`],[1769,1769,`ON`],[1770,1773,`NSM`],[1774,1775,`AL`],[1776,1785,`EN`],[1786,1808,`AL`],[1809,1809,`NSM`],[1810,1839,`AL`],[1840,1866,`NSM`],[1867,1957,`AL`],[1958,1968,`NSM`],[1969,1983,`AL`],[1984,2026,`R`],[2027,2035,`NSM`],[2036,2037,`R`],[2038,2041,`ON`],[2042,2044,`R`],[2045,2045,`NSM`],[2046,2069,`R`],[2070,2073,`NSM`],[2074,2074,`R`],[2075,2083,`NSM`],[2084,2084,`R`],[2085,2087,`NSM`],[2088,2088,`R`],[2089,2093,`NSM`],[2094,2136,`R`],[2137,2139,`NSM`],[2140,2143,`R`],[2144,2191,`AL`],[2192,2193,`AN`],[2194,2198,`AL`],[2199,2207,`NSM`],[2208,2249,`AL`],[2250,2273,`NSM`],[2274,2274,`AN`],[2275,2306,`NSM`],[2362,2362,`NSM`],[2364,2364,`NSM`],[2369,2376,`NSM`],[2381,2381,`NSM`],[2385,2391,`NSM`],[2402,2403,`NSM`],[2433,2433,`NSM`],[2492,2492,`NSM`],[2497,2500,`NSM`],[2509,2509,`NSM`],[2530,2531,`NSM`],[2546,2547,`ET`],[2555,2555,`ET`],[2558,2558,`NSM`],[2561,2562,`NSM`],[2620,2620,`NSM`],[2625,2626,`NSM`],[2631,2632,`NSM`],[2635,2637,`NSM`],[2641,2641,`NSM`],[2672,2673,`NSM`],[2677,2677,`NSM`],[2689,2690,`NSM`],[2748,2748,`NSM`],[2753,2757,`NSM`],[2759,2760,`NSM`],[2765,2765,`NSM`],[2786,2787,`NSM`],[2801,2801,`ET`],[2810,2815,`NSM`],[2817,2817,`NSM`],[2876,2876,`NSM`],[2879,2879,`NSM`],[2881,2884,`NSM`],[2893,2893,`NSM`],[2901,2902,`NSM`],[2914,2915,`NSM`],[2946,2946,`NSM`],[3008,3008,`NSM`],[3021,3021,`NSM`],[3059,3064,`ON`],[3065,3065,`ET`],[3066,3066,`ON`],[3072,3072,`NSM`],[3076,3076,`NSM`],[3132,3132,`NSM`],[3134,3136,`NSM`],[3142,3144,`NSM`],[3146,3149,`NSM`],[3157,3158,`NSM`],[3170,3171,`NSM`],[3192,3198,`ON`],[3201,3201,`NSM`],[3260,3260,`NSM`],[3276,3277,`NSM`],[3298,3299,`NSM`],[3328,3329,`NSM`],[3387,3388,`NSM`],[3393,3396,`NSM`],[3405,3405,`NSM`],[3426,3427,`NSM`],[3457,3457,`NSM`],[3530,3530,`NSM`],[3538,3540,`NSM`],[3542,3542,`NSM`],[3633,3633,`NSM`],[3636,3642,`NSM`],[3647,3647,`ET`],[3655,3662,`NSM`],[3761,3761,`NSM`],[3764,3772,`NSM`],[3784,3790,`NSM`],[3864,3865,`NSM`],[3893,3893,`NSM`],[3895,3895,`NSM`],[3897,3897,`NSM`],[3898,3901,`ON`],[3953,3966,`NSM`],[3968,3972,`NSM`],[3974,3975,`NSM`],[3981,3991,`NSM`],[3993,4028,`NSM`],[4038,4038,`NSM`],[4141,4144,`NSM`],[4146,4151,`NSM`],[4153,4154,`NSM`],[4157,4158,`NSM`],[4184,4185,`NSM`],[4190,4192,`NSM`],[4209,4212,`NSM`],[4226,4226,`NSM`],[4229,4230,`NSM`],[4237,4237,`NSM`],[4253,4253,`NSM`],[4957,4959,`NSM`],[5008,5017,`ON`],[5120,5120,`ON`],[5760,5760,`WS`],[5787,5788,`ON`],[5906,5908,`NSM`],[5938,5939,`NSM`],[5970,5971,`NSM`],[6002,6003,`NSM`],[6068,6069,`NSM`],[6071,6077,`NSM`],[6086,6086,`NSM`],[6089,6099,`NSM`],[6107,6107,`ET`],[6109,6109,`NSM`],[6128,6137,`ON`],[6144,6154,`ON`],[6155,6157,`NSM`],[6158,6158,`BN`],[6159,6159,`NSM`],[6277,6278,`NSM`],[6313,6313,`NSM`],[6432,6434,`NSM`],[6439,6440,`NSM`],[6450,6450,`NSM`],[6457,6459,`NSM`],[6464,6464,`ON`],[6468,6469,`ON`],[6622,6655,`ON`],[6679,6680,`NSM`],[6683,6683,`NSM`],[6742,6742,`NSM`],[6744,6750,`NSM`],[6752,6752,`NSM`],[6754,6754,`NSM`],[6757,6764,`NSM`],[6771,6780,`NSM`],[6783,6783,`NSM`],[6832,6877,`NSM`],[6880,6891,`NSM`],[6912,6915,`NSM`],[6964,6964,`NSM`],[6966,6970,`NSM`],[6972,6972,`NSM`],[6978,6978,`NSM`],[7019,7027,`NSM`],[7040,7041,`NSM`],[7074,7077,`NSM`],[7080,7081,`NSM`],[7083,7085,`NSM`],[7142,7142,`NSM`],[7144,7145,`NSM`],[7149,7149,`NSM`],[7151,7153,`NSM`],[7212,7219,`NSM`],[7222,7223,`NSM`],[7376,7378,`NSM`],[7380,7392,`NSM`],[7394,7400,`NSM`],[7405,7405,`NSM`],[7412,7412,`NSM`],[7416,7417,`NSM`],[7616,7679,`NSM`],[8125,8125,`ON`],[8127,8129,`ON`],[8141,8143,`ON`],[8157,8159,`ON`],[8173,8175,`ON`],[8189,8190,`ON`],[8192,8202,`WS`],[8203,8205,`BN`],[8207,8207,`R`],[8208,8231,`ON`],[8232,8232,`WS`],[8233,8233,`B`],[8234,8238,`BN`],[8239,8239,`CS`],[8240,8244,`ET`],[8245,8259,`ON`],[8260,8260,`CS`],[8261,8286,`ON`],[8287,8287,`WS`],[8288,8303,`BN`],[8304,8304,`EN`],[8308,8313,`EN`],[8314,8315,`ES`],[8316,8318,`ON`],[8320,8329,`EN`],[8330,8331,`ES`],[8332,8334,`ON`],[8352,8399,`ET`],[8400,8432,`NSM`],[8448,8449,`ON`],[8451,8454,`ON`],[8456,8457,`ON`],[8468,8468,`ON`],[8470,8472,`ON`],[8478,8483,`ON`],[8485,8485,`ON`],[8487,8487,`ON`],[8489,8489,`ON`],[8494,8494,`ET`],[8506,8507,`ON`],[8512,8516,`ON`],[8522,8525,`ON`],[8528,8543,`ON`],[8585,8587,`ON`],[8592,8721,`ON`],[8722,8722,`ES`],[8723,8723,`ET`],[8724,9013,`ON`],[9083,9108,`ON`],[9110,9257,`ON`],[9280,9290,`ON`],[9312,9351,`ON`],[9352,9371,`EN`],[9450,9899,`ON`],[9901,10239,`ON`],[10496,11123,`ON`],[11126,11263,`ON`],[11493,11498,`ON`],[11503,11505,`NSM`],[11513,11519,`ON`],[11647,11647,`NSM`],[11744,11775,`NSM`],[11776,11869,`ON`],[11904,11929,`ON`],[11931,12019,`ON`],[12032,12245,`ON`],[12272,12287,`ON`],[12288,12288,`WS`],[12289,12292,`ON`],[12296,12320,`ON`],[12330,12333,`NSM`],[12336,12336,`ON`],[12342,12343,`ON`],[12349,12351,`ON`],[12441,12442,`NSM`],[12443,12444,`ON`],[12448,12448,`ON`],[12539,12539,`ON`],[12736,12773,`ON`],[12783,12783,`ON`],[12829,12830,`ON`],[12880,12895,`ON`],[12924,12926,`ON`],[12977,12991,`ON`],[13004,13007,`ON`],[13175,13178,`ON`],[13278,13279,`ON`],[13311,13311,`ON`],[19904,19967,`ON`],[42128,42182,`ON`],[42509,42511,`ON`],[42607,42610,`NSM`],[42611,42611,`ON`],[42612,42621,`NSM`],[42622,42623,`ON`],[42654,42655,`NSM`],[42736,42737,`NSM`],[42752,42785,`ON`],[42888,42888,`ON`],[43010,43010,`NSM`],[43014,43014,`NSM`],[43019,43019,`NSM`],[43045,43046,`NSM`],[43048,43051,`ON`],[43052,43052,`NSM`],[43064,43065,`ET`],[43124,43127,`ON`],[43204,43205,`NSM`],[43232,43249,`NSM`],[43263,43263,`NSM`],[43302,43309,`NSM`],[43335,43345,`NSM`],[43392,43394,`NSM`],[43443,43443,`NSM`],[43446,43449,`NSM`],[43452,43453,`NSM`],[43493,43493,`NSM`],[43561,43566,`NSM`],[43569,43570,`NSM`],[43573,43574,`NSM`],[43587,43587,`NSM`],[43596,43596,`NSM`],[43644,43644,`NSM`],[43696,43696,`NSM`],[43698,43700,`NSM`],[43703,43704,`NSM`],[43710,43711,`NSM`],[43713,43713,`NSM`],[43756,43757,`NSM`],[43766,43766,`NSM`],[43882,43883,`ON`],[44005,44005,`NSM`],[44008,44008,`NSM`],[44013,44013,`NSM`],[64285,64285,`R`],[64286,64286,`NSM`],[64287,64296,`R`],[64297,64297,`ES`],[64298,64335,`R`],[64336,64450,`AL`],[64451,64466,`ON`],[64467,64829,`AL`],[64830,64847,`ON`],[64848,64911,`AL`],[64912,64913,`ON`],[64914,64967,`AL`],[64968,64975,`ON`],[64976,65007,`BN`],[65008,65020,`AL`],[65021,65023,`ON`],[65024,65039,`NSM`],[65040,65049,`ON`],[65056,65071,`NSM`],[65072,65103,`ON`],[65104,65104,`CS`],[65105,65105,`ON`],[65106,65106,`CS`],[65108,65108,`ON`],[65109,65109,`CS`],[65110,65118,`ON`],[65119,65119,`ET`],[65120,65121,`ON`],[65122,65123,`ES`],[65124,65126,`ON`],[65128,65128,`ON`],[65129,65130,`ET`],[65131,65131,`ON`],[65136,65278,`AL`],[65279,65279,`BN`],[65281,65282,`ON`],[65283,65285,`ET`],[65286,65290,`ON`],[65291,65291,`ES`],[65292,65292,`CS`],[65293,65293,`ES`],[65294,65295,`CS`],[65296,65305,`EN`],[65306,65306,`CS`],[65307,65312,`ON`],[65339,65344,`ON`],[65371,65381,`ON`],[65504,65505,`ET`],[65506,65508,`ON`],[65509,65510,`ET`],[65512,65518,`ON`],[65520,65528,`BN`],[65529,65533,`ON`],[65534,65535,`BN`],[65793,65793,`ON`],[65856,65932,`ON`],[65936,65948,`ON`],[65952,65952,`ON`],[66045,66045,`NSM`],[66272,66272,`NSM`],[66273,66299,`EN`],[66422,66426,`NSM`],[67584,67870,`R`],[67871,67871,`ON`],[67872,68096,`R`],[68097,68099,`NSM`],[68100,68100,`R`],[68101,68102,`NSM`],[68103,68107,`R`],[68108,68111,`NSM`],[68112,68151,`R`],[68152,68154,`NSM`],[68155,68158,`R`],[68159,68159,`NSM`],[68160,68324,`R`],[68325,68326,`NSM`],[68327,68408,`R`],[68409,68415,`ON`],[68416,68863,`R`],[68864,68899,`AL`],[68900,68903,`NSM`],[68904,68911,`AL`],[68912,68921,`AN`],[68922,68927,`AL`],[68928,68937,`AN`],[68938,68968,`R`],[68969,68973,`NSM`],[68974,68974,`ON`],[68975,69215,`R`],[69216,69246,`AN`],[69247,69290,`R`],[69291,69292,`NSM`],[69293,69311,`R`],[69312,69327,`AL`],[69328,69336,`ON`],[69337,69369,`AL`],[69370,69375,`NSM`],[69376,69423,`R`],[69424,69445,`AL`],[69446,69456,`NSM`],[69457,69487,`AL`],[69488,69505,`R`],[69506,69509,`NSM`],[69510,69631,`R`],[69633,69633,`NSM`],[69688,69702,`NSM`],[69714,69733,`ON`],[69744,69744,`NSM`],[69747,69748,`NSM`],[69759,69761,`NSM`],[69811,69814,`NSM`],[69817,69818,`NSM`],[69826,69826,`NSM`],[69888,69890,`NSM`],[69927,69931,`NSM`],[69933,69940,`NSM`],[70003,70003,`NSM`],[70016,70017,`NSM`],[70070,70078,`NSM`],[70089,70092,`NSM`],[70095,70095,`NSM`],[70191,70193,`NSM`],[70196,70196,`NSM`],[70198,70199,`NSM`],[70206,70206,`NSM`],[70209,70209,`NSM`],[70367,70367,`NSM`],[70371,70378,`NSM`],[70400,70401,`NSM`],[70459,70460,`NSM`],[70464,70464,`NSM`],[70502,70508,`NSM`],[70512,70516,`NSM`],[70587,70592,`NSM`],[70606,70606,`NSM`],[70608,70608,`NSM`],[70610,70610,`NSM`],[70625,70626,`NSM`],[70712,70719,`NSM`],[70722,70724,`NSM`],[70726,70726,`NSM`],[70750,70750,`NSM`],[70835,70840,`NSM`],[70842,70842,`NSM`],[70847,70848,`NSM`],[70850,70851,`NSM`],[71090,71093,`NSM`],[71100,71101,`NSM`],[71103,71104,`NSM`],[71132,71133,`NSM`],[71219,71226,`NSM`],[71229,71229,`NSM`],[71231,71232,`NSM`],[71264,71276,`ON`],[71339,71339,`NSM`],[71341,71341,`NSM`],[71344,71349,`NSM`],[71351,71351,`NSM`],[71453,71453,`NSM`],[71455,71455,`NSM`],[71458,71461,`NSM`],[71463,71467,`NSM`],[71727,71735,`NSM`],[71737,71738,`NSM`],[71995,71996,`NSM`],[71998,71998,`NSM`],[72003,72003,`NSM`],[72148,72151,`NSM`],[72154,72155,`NSM`],[72160,72160,`NSM`],[72193,72198,`NSM`],[72201,72202,`NSM`],[72243,72248,`NSM`],[72251,72254,`NSM`],[72263,72263,`NSM`],[72273,72278,`NSM`],[72281,72283,`NSM`],[72330,72342,`NSM`],[72344,72345,`NSM`],[72544,72544,`NSM`],[72546,72548,`NSM`],[72550,72550,`NSM`],[72752,72758,`NSM`],[72760,72765,`NSM`],[72850,72871,`NSM`],[72874,72880,`NSM`],[72882,72883,`NSM`],[72885,72886,`NSM`],[73009,73014,`NSM`],[73018,73018,`NSM`],[73020,73021,`NSM`],[73023,73029,`NSM`],[73031,73031,`NSM`],[73104,73105,`NSM`],[73109,73109,`NSM`],[73111,73111,`NSM`],[73459,73460,`NSM`],[73472,73473,`NSM`],[73526,73530,`NSM`],[73536,73536,`NSM`],[73538,73538,`NSM`],[73562,73562,`NSM`],[73685,73692,`ON`],[73693,73696,`ET`],[73697,73713,`ON`],[78912,78912,`NSM`],[78919,78933,`NSM`],[90398,90409,`NSM`],[90413,90415,`NSM`],[92912,92916,`NSM`],[92976,92982,`NSM`],[94031,94031,`NSM`],[94095,94098,`NSM`],[94178,94178,`ON`],[94180,94180,`NSM`],[113821,113822,`NSM`],[113824,113827,`BN`],[117760,117973,`ON`],[118e3,118009,`EN`],[118010,118012,`ON`],[118016,118451,`ON`],[118458,118480,`ON`],[118496,118512,`ON`],[118528,118573,`NSM`],[118576,118598,`NSM`],[119143,119145,`NSM`],[119155,119162,`BN`],[119163,119170,`NSM`],[119173,119179,`NSM`],[119210,119213,`NSM`],[119273,119274,`ON`],[119296,119361,`ON`],[119362,119364,`NSM`],[119365,119365,`ON`],[119552,119638,`ON`],[120513,120513,`ON`],[120539,120539,`ON`],[120571,120571,`ON`],[120597,120597,`ON`],[120629,120629,`ON`],[120655,120655,`ON`],[120687,120687,`ON`],[120713,120713,`ON`],[120745,120745,`ON`],[120771,120771,`ON`],[120782,120831,`EN`],[121344,121398,`NSM`],[121403,121452,`NSM`],[121461,121461,`NSM`],[121476,121476,`NSM`],[121499,121503,`NSM`],[121505,121519,`NSM`],[122880,122886,`NSM`],[122888,122904,`NSM`],[122907,122913,`NSM`],[122915,122916,`NSM`],[122918,122922,`NSM`],[123023,123023,`NSM`],[123184,123190,`NSM`],[123566,123566,`NSM`],[123628,123631,`NSM`],[123647,123647,`ET`],[124140,124143,`NSM`],[124398,124399,`NSM`],[124643,124643,`NSM`],[124646,124646,`NSM`],[124654,124655,`NSM`],[124661,124661,`NSM`],[124928,125135,`R`],[125136,125142,`NSM`],[125143,125251,`R`],[125252,125258,`NSM`],[125259,126063,`R`],[126064,126143,`AL`],[126144,126207,`R`],[126208,126287,`AL`],[126288,126463,`R`],[126464,126703,`AL`],[126704,126705,`ON`],[126706,126719,`AL`],[126720,126975,`R`],[126976,127019,`ON`],[127024,127123,`ON`],[127136,127150,`ON`],[127153,127167,`ON`],[127169,127183,`ON`],[127185,127221,`ON`],[127232,127242,`EN`],[127243,127247,`ON`],[127279,127279,`ON`],[127338,127343,`ON`],[127405,127405,`ON`],[127584,127589,`ON`],[127744,128728,`ON`],[128732,128748,`ON`],[128752,128764,`ON`],[128768,128985,`ON`],[128992,129003,`ON`],[129008,129008,`ON`],[129024,129035,`ON`],[129040,129095,`ON`],[129104,129113,`ON`],[129120,129159,`ON`],[129168,129197,`ON`],[129200,129211,`ON`],[129216,129217,`ON`],[129232,129240,`ON`],[129280,129623,`ON`],[129632,129645,`ON`],[129648,129660,`ON`],[129664,129674,`ON`],[129678,129734,`ON`],[129736,129736,`ON`],[129741,129756,`ON`],[129759,129770,`ON`],[129775,129784,`ON`],[129792,129938,`ON`],[129940,130031,`ON`],[130032,130041,`EN`],[130042,130042,`ON`],[131070,131071,`BN`],[196606,196607,`BN`],[262142,262143,`BN`],[327678,327679,`BN`],[393214,393215,`BN`],[458750,458751,`BN`],[524286,524287,`BN`],[589822,589823,`BN`],[655358,655359,`BN`],[720894,720895,`BN`],[786430,786431,`BN`],[851966,851967,`BN`],[917502,917759,`BN`],[917760,917999,`NSM`],[918e3,921599,`BN`],[983038,983039,`BN`],[1048574,1048575,`BN`],[1114110,1114111,`BN`]];function Xt(e){if(e<=255)return Jt[e];let t=0,n=Yt.length-1;for(;t<=n;){let r=t+n>>1,i=Yt[r];if(ei[1]){t=r+1;continue}return i[2]}return`L`}function Zt(e){let t=e.length;if(t===0)return null;let n=Array(t),r=!1;for(let i=0;i=55296&&a<=56319&&i+1=56320&&t<=57343&&(o=(a-55296<<10)+(t-56320)+65536,s=2)}let c=Xt(o);(c===`R`||c===`AL`||c===`AN`)&&(r=!0);for(let e=0;e=0&&n[r]===`ET`;r--)n[r]=`EN`;for(r=e+1;r0?n[e-1]:s,a=r0&&t.charCodeAt(t.length-1)===32&&(t=t.slice(0,-1)),t}function rn(e){return/[\r\f]/.test(e)?e.replace(/\r\n/g,` -`).replace(/[\r\f]/g,` -`):e}var an=null,on;function sn(){return an===null&&(an=new Intl.Segmenter(on,{granularity:`word`})),an}function cn(){an=null}var ln=/\p{Script=Arabic}/u,J=/\p{M}/u,un=/\p{Nd}/u;function dn(e){return ln.test(e)}function fn(e){return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=177983||e>=177984&&e<=178207||e>=178208&&e<=183983||e>=183984&&e<=191471||e>=191472&&e<=192093||e>=194560&&e<=195103||e>=196608&&e<=201551||e>=201552&&e<=205743||e>=205744&&e<=210041||e>=63744&&e<=64255||e>=12288&&e<=12351||e>=12352&&e<=12447||e>=12448&&e<=12543||e>=12592&&e<=12687||e>=44032&&e<=55215||e>=65280&&e<=65519}function Y(e){for(let t=0;t=55296&&n<=56319&&t+1=56320&&r<=57343){if(fn((n-55296<<10)+(r-56320)+65536))return!0;t++;continue}}if(fn(n))return!0}}return!1}function pn(e){let t=An(e);return t!==null&&(yn.has(t)||X.has(t))}var mn=new Set([`\xA0`,` `,`⁠`,``]),hn=new Set([`-`,`‐`,`–`,`—`]);function gn(e){let t=An(e);return t!==null&&mn.has(t)}function _n(e){let t=An(e);return t!==null&&hn.has(t)}function vn(e,t){return gn(e)?!1:t?!(pn(e)||_n(e)):!0}var yn=new Set(`,...!.:.;.?.、.。.・.).〕.〉.》.」.』.】.〗.〙.〛.ー.々.〻.ゝ.ゞ.ヽ.ヾ`.split(`.`)),bn=new Set([`"`,`(`,`[`,`{`,`¡`,`¿`,`“`,`‘`,`‚`,`„`,`«`,`‹`,`⸘`,`(`,`〔`,`〈`,`《`,`「`,`『`,`【`,`〖`,`〘`,`〚`]),xn=new Set([`'`,`’`]),X=new Set(`.(,(!(?(:(;(،(؛(؟(।(॥(၊(။(၌(၍(၏()(](}(%("(”(’(»(›(…`.split(`(`)),Sn=new Set([`:`,`.`,`،`,`؛`]),Cn=new Set([`၏`]),wn=new Set([`”`,`’`,`»`,`›`,`」`,`』`,`】`,`》`,`〉`,`〕`,`)`]);function Tn(e){if(On(e))return!0;let t=!1;for(let n of e){if(X.has(n)||Fn(n)){t=!0;continue}if(!(t&&J.test(n)))return!1}return t}function En(e){for(let t of e)if(!yn.has(t)&&!X.has(t))return!1;return e.length>0}function Dn(e){if(On(e))return!0;for(let t of e)if(!bn.has(t)&&!xn.has(t)&&!J.test(t)&&!Fn(t))return!1;return e.length>0}function On(e){let t=!1;for(let n of e)if(!(n===`\\`||J.test(n))){if(bn.has(n)||X.has(n)||xn.has(n)){t=!0;continue}return!1}return t}function kn(e,t){let n=t-1;if(n<=0)return Math.max(n,0);let r=e.charCodeAt(n);if(r<56320||r>57343)return n;let i=n-1;if(i<0)return n;let a=e.charCodeAt(i);return a>=55296&&a<=56319?i:n}function An(e){if(e.length===0)return null;let t=kn(e,e.length);return e.slice(t)}function jn(e){for(let t of e)if(!J.test(t))return t;return null}function Mn(e){for(let t=e.length;t>0;){let n=kn(e,t),r=e.slice(n,t);if(!J.test(r))return r;t=n}return null}var Nn=[36,37,43,43,92,92,162,165,176,177,1423,1423,1545,1547,1642,1642,2046,2047,2546,2547,2553,2555,2801,2801,3065,3065,3449,3449,3647,3647,6107,6107,8240,8247,8279,8279,8352,8399,8451,8451,8457,8457,8470,8470,8722,8723,43064,43064,65020,65020,65129,65130,65284,65285,65504,65505,65509,65510,73693,73696,123647,123647,126124,126124,126128,126128];function Pn(e,t){for(let n=0;n=t[n]&&e<=t[n+1])return!0;return!1}function Fn(e){let t=e.codePointAt(0);return t!==void 0&&Pn(t,Nn)}function In(e){let t=Mn(e);return t!==null&&Fn(t)}function Ln(e){let t=jn(e);return t!==null&&un.test(t)}function Rn(e){let t=Array.from(e),n=t.length;for(;n>0;){let e=t[n-1];if(J.test(e)){n--;continue}if(bn.has(e)||xn.has(e)){n--;continue}break}return n<=0||n===t.length?null:{head:t.slice(0,n).join(``),tail:t.slice(n).join(``)}}function zn(e,t,n){return n===`text`&&!t&&e.length===1&&e!==`-`&&e!==`—`?e:null}function Bn(e,t,n,r){let i=t[r],a=e[r];if(i==null)return a;let o=n[r];if(a.length===o)return a;let s=i.repeat(o);return e[r]=s,s}function Vn(e,t){return e&&t!==null&&Sn.has(t)}function Hn(e){let t=An(e);return t!==null&&Cn.has(t)}function Un(e){if(e.length<2||e[0]!==` `)return null;let t=e.slice(1);return/^\p{M}+$/u.test(t)?{space:` `,marks:t}:null}function Wn(e){let t=e.length;for(;t>0;){let n=kn(e,t),r=e.slice(n,t);if(wn.has(r))return!0;if(!X.has(r))return!1;t=n}return!1}function Gn(e,t){if(t.preserveOrdinarySpaces||t.preserveHardBreaks){if(e===` `)return`preserved-space`;if(e===` `)return`tab`;if(t.preserveHardBreaks&&e===` -`)return`hard-break`}return e===` `?`space`:e===`\xA0`||e===` `||e===`⁠`||e===``?`glue`:e===`​`?`zero-width-break`:e===`­`?`soft-hyphen`:`text`}var Kn=/[\x20\t\n\xA0\xAD\u200B\u202F\u2060\uFEFF]/;function Z(e){return e.length===1?e[0]:e.join(``)}function qn(e,t){let n=[];for(let t=e.length-1;t>=0;t--)n.push(e[t]);return n.push(t),Z(n)}function Jn(e,t,n,r){if(!Kn.test(e))return[{text:e,isWordLike:t,kind:`text`,start:n}];let i=[],a=null,o=[],s=n,c=!1,l=0;for(let u of e){let e=Gn(u,r),d=e===`text`&&t;if(a!==null&&e===a&&d===c){o.push(u),l+=u.length;continue}a!==null&&i.push({text:Z(o),isWordLike:c,kind:a,start:s}),a=e,o=[u],s=n+l,c=d,l+=u.length}return a!==null&&i.push({text:Z(o),isWordLike:c,kind:a,start:s}),i}function Yn(e){return e===`space`||e===`preserved-space`||e===`zero-width-break`||e===`hard-break`}var Xn=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function Zn(e,t){let n=e.texts[t];return n.startsWith(`www.`)?!0:Xn.test(n)&&t+1=e.len||Yn(e.kinds[s]))continue;let c=[],l=e.starts[s],u=s;for(;u0&&(t.push(Z(c)),n.push(!0),r.push(`text`),i.push(l),a=u-1)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}var tr=new Set([`:`,`-`,`/`,`×`,`,`,`.`,`+`,`–`,`—`]),nr=new Set([`.`,`,`,`:`,`;`]);function rr(e){for(let t=e.length;t>0;){let n=kn(e,t),r=e.slice(n,t);if(J.test(r)){t=n;continue}return nr.has(r)||Fn(r)}return!1}function ir(e,t){return t&&!Y(e)}function ar(e){for(let t of e)if(un.test(t))return!0;return!1}function or(e){if(e.length===0)return!1;for(let t of e)if(!(un.test(t)||tr.has(t)))return!1;return!0}function sr(e){let t=[],n=[],r=[],i=[];for(let a=0;a1;for(let e=0;e0&&c[S]===`text`&&_&&f[S]&&m[S]||n&&i>0&&c[S]===`text`&&En(e.text)&&f[S]||n&&i>0&&c[S]===`text`&&h[S]?C():n&&i>0&&c[S]===`text`&&e.isWordLike&&v&&g[S]?(C(),s[S]=!0):r!==null&&i>0&&c[S]===`text`&&u[S]===r?d[S]=(d[S]??1)+1:n&&!e.isWordLike&&i>0&&c[S]===`text`&&!f[S]&&(Tn(e.text)||e.text===`-`&&s[S])?C():(a[i]=e.text,o[i]=[e.text],s[i]=e.isWordLike,c[i]=e.kind,l[i]=e.start,u[i]=r,d[i]=r===null?0:1,f[i]=_,p[i]=v,m[i]=b,h[i]=x,g[i]=Vn(v,y),i++)}for(let e=0;enull),v=-1;for(let e=i-1;e>=0;e--){let t=a[e];if(t.length!==0){if(c[e]===`text`&&!s[e]&&v>=0&&c[v]===`text`&&(Dn(t)||t===`-`&&Ln(a[v]))){let n=_[v]??[];n.push(t),_[v]=n,l[v]=l[e],a[e]=``;continue}v=e}}for(let e=0;e=0&&!vn(t.texts[e-1],n)&&d(e),s<0&&(s=e),c||=Y(l);continue}d(e),r.push(l),i.push(t.isWordLike[e]),a.push(u),o.push(t.starts[e])}return d(t.len),{len:r.length,texts:r,isWordLike:i,kinds:a,starts:o}}function hr(e,t,n=`normal`,r=`normal`){let i=tn(n),a=i.mode===`pre-wrap`?rn(e):nn(e);if(a.length===0)return{normalized:a,chunks:[],len:0,texts:[],isWordLike:[],kinds:[],starts:[]};let o=fr(a,t,i),s=r===`keep-all`?mr(a,o,t.breakKeepAllAfterPunctuation):o;return{normalized:a,chunks:pr(s,i),...s}}var gr=null,_r=new Map,vr=null,yr=96,br=/\p{Emoji_Presentation}/u,xr=/[\p{Emoji_Presentation}\p{Extended_Pictographic}\p{Regional_Indicator}\uFE0F\u20E3]/u,Sr=null,Cr=new Map;function wr(){if(gr!==null)return gr;if(typeof OffscreenCanvas<`u`)return gr=new OffscreenCanvas(1,1).getContext(`2d`),gr;if(typeof document<`u`)return gr=document.createElement(`canvas`).getContext(`2d`),gr;throw Error(`Text measurement requires OffscreenCanvas or a DOM canvas context.`)}function Tr(e){let t=_r.get(e);return t||(t=new Map,_r.set(e,t)),t}function Q(e,t){let n=t.get(e);return n===void 0&&(n={width:wr().measureText(e).width,containsCJK:Y(e)},t.set(e,n)),n}function Er(){if(vr!==null)return vr;if(typeof navigator>`u`)return vr={lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,breakKeepAllAfterPunctuation:!0,preferPrefixWidthsForBreakableRuns:!1,preferEarlySoftHyphenBreak:!1},vr;let e=navigator.userAgent,t=navigator.vendor===`Apple Computer, Inc.`&&e.includes(`Safari/`)&&!e.includes(`Chrome/`)&&!e.includes(`Chromium/`)&&!e.includes(`CriOS/`)&&!e.includes(`FxiOS/`)&&!e.includes(`EdgiOS/`),n=e.includes(`Chrome/`)||e.includes(`Chromium/`)||e.includes(`CriOS/`)||e.includes(`Edg/`);return vr={lineFitEpsilon:t?1/64:.005,carryCJKAfterClosingQuote:n,breakKeepAllAfterPunctuation:!t,preferPrefixWidthsForBreakableRuns:t,preferEarlySoftHyphenBreak:t},vr}function Dr(e){let t=e.match(/(\d+(?:\.\d+)?)\s*px/);return t?parseFloat(t[1]):16}function Or(){return Sr===null&&(Sr=new Intl.Segmenter(void 0,{granularity:`grapheme`})),Sr}function kr(e){return br.test(e)||e.includes(`️`)}function Ar(e){return xr.test(e)}function jr(e,t){let n=Cr.get(e);if(n!==void 0)return n;let r=wr();r.font=e;let i=r.measureText(`😀`).width;if(n=0,i>t+.5&&typeof document<`u`&&document.body!==null){let t=document.createElement(`span`);t.style.font=e,t.style.display=`inline-block`,t.style.visibility=`hidden`,t.style.position=`absolute`,t.textContent=`😀`,document.body.appendChild(t);let r=t.getBoundingClientRect().width;document.body.removeChild(t),i-r>.5&&(n=i-r)}return Cr.set(e,n),n}function Mr(e){let t=0,n=Or();for(let r of n.segment(e))kr(r.segment)&&t++;return t}function Nr(e,t){return t.emojiCount===void 0&&(t.emojiCount=Mr(e)),t.emojiCount}function $(e,t,n){return n===0?t.width:t.width-Nr(e,t)*n}function Pr(e,t,n,r,i){if(t.breakableFitAdvances!==void 0&&t.breakableFitMode===i)return t.breakableFitAdvances;t.breakableFitMode=i;let a=Or(),o=[];for(let t of a.segment(e))o.push(t.segment);if(o.length<=1)return t.breakableFitAdvances=null,t.breakableFitAdvances;if(i===`sum-graphemes`){let e=[];for(let t of o){let i=Q(t,n);e.push($(t,i,r))}return t.breakableFitAdvances=e,t.breakableFitAdvances}if(i===`pair-context`||o.length>yr){let e=[],i=null,a=0;for(let t of o){let o=$(t,Q(t,n),r);if(i===null)e.push(o);else{let o=i+t,s=Q(o,n);e.push($(o,s,r)-a)}i=t,a=o}return t.breakableFitAdvances=e,t.breakableFitAdvances}let s=[],c=``,l=0;for(let e of o){c+=e;let t=Q(c,n),i=$(c,t,r);s.push(i-l),l=i}return t.breakableFitAdvances=s,t.breakableFitAdvances}function Fr(e,t){let n=wr();n.font=e;let r=Tr(e),i=Dr(e);return{cache:r,fontSize:i,emojiCorrection:t?jr(e,i):0}}function Ir(){_r.clear(),Cr.clear(),Sr=null}function Lr(e){return e===`space`||e===`zero-width-break`||e===`soft-hyphen`}function Rr(e){return e===`space`||e===`preserved-space`||e===`tab`||e===`zero-width-break`||e===`soft-hyphen`}function zr(e,t,n=e.widths.length){for(;t0?e.letterSpacing:0}function Hr(e,t){return t===0?0:e+t}function Ur(e,t){return e.letterSpacing!==0&&e.spacingGraphemeCounts[t]>0?e.letterSpacing:0}function Wr(e,t,n,r,i){return Hr(r,t===`tab`?i+Ur(e,n):e.lineEndFitAdvances[n])}function Gr(e,t,n,r){return Hr(r,t===`tab`?0:e.lineEndFitAdvances[n])}function Kr(e,t,n,r,i){return Hr(r,t===`tab`?i:e.lineEndPaintAdvances[n])}function qr(e,t,n){return e.letterSpacing!==0&&t?n+e.letterSpacing:n}function Jr(e,t){return e.letterSpacing===0?t:t+e.letterSpacing}function Yr(e,t,n,r,i){if(e.letterSpacing===0)return 0;if(i>0)return e.spacingGraphemeCounts[r]>0?e.letterSpacing:0;for(let i=r-1;i>=t;i--){let a=e.kinds[i];if(!(a===`space`||a===`zero-width-break`||a===`hard-break`)){if(a===`soft-hyphen`){if(i===r-1)return 0;continue}return i===t&&n>0||e.spacingGraphemeCounts[i]>0?e.letterSpacing:0}}return 0}function Xr(e,t,n,r,i,a){return t+Yr(e,n,r,i,a)}function Zr(e,t,n){let{widths:r,kinds:i,breakableFitAdvances:a}=e;if(r.length===0)return 0;let o=t+Er().lineFitEpsilon,s=0,c=0,l=!1,u=0,d=0,f=0,p=0,m=-1,h=0;function g(){m=-1,h=0}function _(e=f,t=p,r=c){s++,n?.(r,u,d,e,t),c=0,l=!1,g()}function v(e,t){l=!0,u=e,d=0,f=e+1,p=0,c=t}function y(e,t,n){l=!0,u=e,d=t,f=e,p=t+1,c=n}function b(e,t){if(!l){v(e,t);return}c+=t,f=e+1,p=0}function x(e,t){let n=a[e];for(let r=t;ro?(_(),y(e,r,t)):(c+=t,f=e,p=r+1):y(e,r,t)}l&&f===e&&p===n.length&&(f=e+1,p=0)}let S=0;for(;S=r.length));){let e=r[S],t=i[S],n=Rr(t);if(!l){e>o&&a[S]!==null?x(S,0):v(S,e),n&&(m=S+1,h=c-e),S++;continue}if(c+e>o){if(n){b(S,e),_(S+1,0,c-e),S++;continue}if(m>=0){if(f>m||f===m&&p>0){_();continue}_(m,0,h);continue}if(e>o&&a[S]!==null){_(),x(S,0),S++;continue}_();continue}b(S,e),n&&(m=S+1,h=c-e),S++}return l&&_(),s}function Qr(e,t,n){if(e.simpleLineWalkFastPath)return Zr(e,t,n);let{widths:r,kinds:i,breakableFitAdvances:a,discretionaryHyphenWidth:o,chunks:s}=e;if(r.length===0||s.length===0)return 0;let c=Er(),l=t+c.lineFitEpsilon,u=0,d=0,f=!1,p=0,m=0,h=0,g=0,_=-1,v=0,y=0,b=null;function x(){_=-1,v=0,y=0,b=null}function S(){return b===`soft-hyphen`&&_===h&&g===0?y:d}function C(t=h,r=g,i){u++,n!==void 0&&n(Xr(e,i??S(),p,m,t,r),p,m,t,r),d=0,f=!1,x()}function w(e,t){f=!0,p=e,m=0,h=e+1,g=0,d=t}function T(e,t,n){f=!0,p=e,m=t,h=e,g=t+1,d=n}function E(e,t){if(!f){w(e,t);return}d+=t,h=e+1,g=0}function D(t,n,r,i,a,o){if(!n)return;let s=Gr(e,t,r,a),c=Kr(e,t,r,a,i);_=r+1,v=d-o+s,y=d-o+c,b=t}function O(t,n){let r=a[t];for(let i=n;il?(C(),T(t,i,n)):(d=a,h=t,g=i+1)}}f&&h===t&&g===r.length&&(h=t+1,g=0)}function k(e){u++,n?.(0,e.startSegmentIndex,0,e.consumedEndSegmentIndex,0),x()}for(let t=0;t=n.endSegmentIndex));){let t=i[u],n=Rr(t),s=Vr(e,f,u),p=t===`tab`?Br(d+s,e.tabStopAdvance):r[u],m=s+p,x=Wr(e,t,u,s,p);if(t===`soft-hyphen`){f&&(h=u+1,g=0,_=u+1,v=d+o,y=d+o,b=t),u++;continue}if(!f){x>l&&a[u]!==null?O(u,0):w(u,p),D(t,n,u,p,s,m),u++;continue}if(d+x>l){let r=d+Gr(e,t,u,s),i=d+Kr(e,t,u,s,p);if(b===`soft-hyphen`&&c.preferEarlySoftHyphenBreak&&v<=l){C(_,0,y);continue}if(n&&r<=l){E(u,m),C(u+1,0,i),u++;continue}if(_>=0&&v<=l){if(h>_||h===_&&g>0){C();continue}let e=_;C(e,0,y),u=e;continue}if(x>l&&a[u]!==null){C(),O(u,0),u++;continue}C();continue}E(u,m),D(t,n,u,p,s,m),u++}if(f){let e=_===n.consumedEndSegmentIndex?y:d;C(n.consumedEndSegmentIndex,0,e)}}return u}var $r=null;function ei(){return $r===null&&($r=new Intl.Segmenter(void 0,{granularity:`grapheme`})),$r}function ti(e){return e?{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[],segments:[]}:{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[]}}function ni(e,t){let n=[],r=[],i=0,a=!1,o=!1,s=!1;function c(){r.length!==0&&(n.push({text:r.length===1?r[0]:r.join(``),start:i}),r=[],a=!1,o=!1,s=!1)}function l(e,t,n){r=[e],i=t,a=n,o=Wn(e),s=bn.has(e)}function u(e,t){r.push(e),a||=t;let n=Wn(e);e.length===1&&X.has(e)?o||=n:o=n,s=!1}for(let n of ei().segment(e)){let e=n.segment,i=Y(e);if(r.length===0){l(e,n.index,i);continue}if(s||yn.has(e)||X.has(e)||t.carryCJKAfterClosingQuote&&i&&o){u(e,i);continue}if(!a&&!i){u(e,i);continue}c(),l(e,n.index,i)}return c(),n}function ri(e,t,n){if(t.length<=1)return t;let r=[],i=-1,a=!1;function o(n,i){let a=t[n].start,o=i=0&&!vn(t[e-1].text,n)&&s(e),i<0&&(i=e),a||=Y(r.text)}return s(t.length),r}function ii(e,t){if(t===`zero-width-break`||t===`soft-hyphen`||t===`hard-break`)return 0;if(t===`tab`)return 1;let n=0,r=ei();for(let t of r.segment(e))n++;return n}function ai(e,t,n){return t>1?e+(t-1)*n:e}function oi(e,t,n,r,i){let a=Er(),{cache:o,emojiCorrection:s}=Fr(t,Ar(e.normalized)),c=$(`-`,Q(`-`,o),s)+(i===0?0:i*2),l=$(` `,Q(` `,o),s)*8,u=i!==0;if(e.len===0)return ti(n);let d=[],f=[],p=[],m=[],h=e.chunks.length<=1&&!u,g=n?[]:null,_=[],v=[],y=n?[]:null,b=Array.from({length:e.len});function x(e,t,n,r,i,a,o,s){i!==`text`&&i!==`space`&&i!==`zero-width-break`&&(h=!1),d.push(t),f.push(n),p.push(r),m.push(i),g?.push(a),_.push(o),u&&v.push(s),y!==null&&y.push(e)}function S(e,t,n,r,c){let l=Q(e,o),d=u?ii(e,t):0,f=ai($(e,l,s),d,i),p=t===`space`||t===`preserved-space`||t===`zero-width-break`?0:f,m=p===0?0:p+(d>0?i:0),h=t===`space`||t===`zero-width-break`?0:f;if(c&&r&&e.length>1){let r=`sum-graphemes`;i===0?or(e)?r=`pair-context`:a.preferPrefixWidthsForBreakableRuns&&(r=`segment-prefixes`):r=`segment-prefixes`,x(e,f,m,h,t,n,Pr(e,l,o,s,r),d);return}x(e,f,m,h,t,n,null,d)}for(let t=0;t{e>t&&(t=e)}),t}function fi(){cn(),$r=null,Ir()}var pi=ze({cdnList:Fe,fallback:{},path:e=>`colors/${Re[e]}.json`});function mi(e,t){let n=Pe(t).replace(/\s+/g,`-`),[r,i]=(0,G.useState)(()=>pi.get(e)?.[n]);return(0,G.useEffect)(()=>{let t=!1;if(!n){i(void 0);return}return Promise.all([Le(e,n),pi.load(e)]).then(([e,n])=>{if(!t){let t=Pe(e).replace(/\s+/g,`-`);i(n?.[t])}}),()=>{t=!0}},[n,e]),r}function hi(e){if(e)return{background:`rgba(${e.r}, ${e.g}, ${e.b}, 0.16)`,color:`rgb(${e.r} ${e.g} ${e.b})`}}function gi({className:e,displayName:t,label:n,name:r,type:i}){let a=mi(i,r),o=n??(i===`network`?Ie(r,t):r);return(0,q.jsxs)(`span`,{className:ue(`inline-flex min-w-0 items-center gap-1 rounded-full px-2 py-0.5`,e),style:hi(a),children:[(0,q.jsx)(Be,{alt:``,className:`size-4 shrink-0 rounded-full`,height:16,name:r,type:i,width:16}),(0,q.jsx)(`span`,{className:`truncate font-semibold text-xs`,children:o})]})}function _i({className:e,displayName:t,network:n}){return(0,q.jsx)(gi,{className:e,displayName:t,name:n,type:`network`})}var vi=36,yi=1,bi=`700 ${vi}px "Nunito Variable"`,xi={wordBreak:`keep-all`},Si=`\xA0`;function Ci({activeNetwork:e,activeNetworkDisplayName:t,amountMode:n,onCopyAmount:r,order:i,tradeId:a}){let o=n===`payment`?Oi(i):Di(i);return(0,q.jsxs)(`section`,{className:`mb-4 w-full rounded-2xl border bg-card px-6 pt-6 pb-5 text-card-foreground shadow-md`,children:[(0,q.jsx)(`p`,{className:`mb-1 font-medium text-muted-foreground text-sm`,children:n===`payment`?M():D()}),(0,q.jsxs)(`div`,{className:`flex items-end justify-between gap-3`,children:[(0,q.jsx)(wi,{children:o}),(0,q.jsx)(Ft,{onClick:r})]}),n===`payment`&&e?(0,q.jsx)(_i,{className:`mt-2`,displayName:t,network:e??``}):null,(0,q.jsx)(`div`,{className:`mt-3 border-border/50 border-t pt-3`,children:(0,q.jsx)(`table`,{className:`w-full border-separate border-spacing-y-1 text-muted-foreground text-sm`,children:(0,q.jsxs)(`tbody`,{children:[n===`payment`?(0,q.jsxs)(`tr`,{children:[(0,q.jsx)(`td`,{className:`w-px whitespace-nowrap pr-3`,children:D()}),(0,q.jsx)(`td`,{className:`whitespace-nowrap font-medium text-card-foreground`,children:Di(i)})]}):null,(0,q.jsxs)(`tr`,{children:[(0,q.jsx)(`td`,{className:`w-px whitespace-nowrap pr-3`,children:O()}),(0,q.jsx)(`td`,{className:`break-all font-medium text-card-foreground`,children:i?.trade_id??a})]})]})})})]})}function wi({children:e}){let t=Ti(e),n=(0,G.useRef)(null),[r,i]=(0,G.useState)(()=>Ei(t)),[a,o]=(0,G.useState)(vi),s=(0,G.useCallback)(()=>{let e=n.current;if(!e)return;let t=e.clientWidth;if(!(t&&r))return;let i=Math.max(yi,Math.min(vi,vi*t/r));o(e=>Math.abs(e-i)<.5?e:i)},[r]);return(0,G.useLayoutEffect)(()=>{i(Ei(t))},[t]),(0,G.useLayoutEffect)(()=>{s();let e=n.current,t=new ResizeObserver(s);return e&&t.observe(e),()=>{t.disconnect()}},[s]),(0,G.useLayoutEffect)(()=>{let e=!0;return document.fonts?.ready.then(()=>{e&&(fi(),i(Ei(t)))}),()=>{e=!1}},[t]),(0,q.jsx)(`span`,{className:`relative block min-w-0 flex-1 overflow-hidden leading-none`,ref:n,children:(0,q.jsx)(`span`,{className:`block whitespace-nowrap font-bold font-nunito leading-none`,style:{fontSize:a},children:t})})}function Ti(e){return e.replace(/\s+/g,Si)}function Ei(e){return di(li(e,bi,xi))}function Di(e){return e?.amount==null?`--`:ki(e.amount,e.currency)}function Oi(e){let t=e?.actual_amount??e?.amount,n=e?.actual_amount==null?e?.currency:e?.token;return t==null?`--`:ki(t,n)}function ki(e,t){return t?`${e}${Si}${t}`:String(e)}function Ai(e,t){return t===2?e===`payment`||e===`success`||e===`expired`?2:+(e===`select`):e===`payment`||e===`success`||e===`expired`?3:e===`select`?2:+(e===`method`)}function ji({hidden:e,panel:t,totalSteps:n=3}){if(e)return null;let r=Ai(t,n);return(0,q.jsx)(`div`,{className:`mb-4 flex w-full items-center gap-2`,children:Array.from({length:n},(e,t)=>t+1).map(e=>(0,q.jsx)(`div`,{className:`h-1 flex-1 overflow-hidden rounded-full bg-foreground/10`,children:(0,q.jsx)(`div`,{className:ue(`h-full rounded-full bg-foreground transition-all`,r>=e?`w-full`:`w-0`)})},e))})}var Mi=new Set,Ni,Pi=Date.now();function Fi(e){return Pi=Date.now(),Mi.add(e),Ni===void 0&&(Ni=window.setInterval(()=>{Pi=Date.now();for(let e of Mi)e()},1e3)),()=>{Mi.delete(e),Mi.size===0&&Ni!==void 0&&(window.clearInterval(Ni),Ni=void 0)}}function Ii(){return Pi}function Li(e){return(0,G.useSyncExternalStore)(e?Fi:()=>()=>void 0,Ii,Ii)}function Ri({tradeId:e}){let r=le(),i=t.useQuery(`get`,`/pay/checkout-counter-resp/{trade_id}`,{params:{path:{trade_id:e}}},{retry:!1}),a=(0,G.useMemo)(()=>{let e=Ke(i.data);return e?tt(e):void 0},[i.data]),o=t.useMutation(`post`,`/pay/switch-network`),s=t.useMutation(`post`,`/pay/submit-tx-hash/{trade_id}`),[l,u]=(0,G.useState)(),[d,f]=(0,G.useState)(),[p,m]=(0,G.useState)(),[h,g]=(0,G.useState)(null),[_,v]=(0,G.useState)(!1),[y,b]=(0,G.useState)(``),x=d??a,w=!!(x?.payment_url||x?.receive_address),T=!!(x?.trade_id&&!w),E=!!(x?.network&&x?.token&&!W(x.network,`okpay`)),D=!!(x?.trade_id&&E&&!Je(x.is_selected)),O=t.useQuery(`get`,`/payments/gmpay/v1/config`,void 0,{enabled:!!x?.trade_id,retry:!1}),k=(0,G.useMemo)(()=>Ke(O.data),[O.data]),A=(0,G.useMemo)(()=>Ye(k).filter(e=>!W(e.network,`okpay`)),[k]),j=(0,G.useMemo)(()=>T||_||D?A:[],[D,_,T,A]),te=(0,G.useMemo)(()=>zi(k?.okpay?.allow_tokens),[k?.okpay?.allow_tokens]),ne=j.length>0,re=!!(k?.okpay?.enabled&&te.length),ie=Number(ne)+Number(re),ae;ie===1&&(ae=ne?`chain`:`okpay`);let M=p??(_||E?`chain`:ae),N=(0,G.useMemo)(()=>M===`okpay`?te:M===`chain`?j:[],[M,te,j]),oe=(0,G.useMemo)(()=>et(N,x,{network:k?.epay?.default_network,token:k?.epay?.default_token}),[N,x,k]),P=h??oe,F=P?.network??x?.network??``,se=P?.token??x?.token??``,ce=(0,G.useMemo)(()=>{if(M===`okpay`&&k?.okpay?.enabled&&W(F,`tron`)&&[`trx`,`usdt`].includes(String(se).toLowerCase()))return{network:`okpay`,token:se.toUpperCase()}},[M,k,F,se]),I=(0,G.useMemo)(()=>Ge(x?.expiration_time),[x?.expiration_time]),L=(0,G.useMemo)(()=>Ge(x?.created_at),[x?.created_at]),ue=L&&I&&L{if(l)return l;if(i.isPending)return`loading`;if(de){let e=We(de);return $e.includes(e??0)?`not-found`:`timeout`}if(!x?.trade_id)return`not-found`;if(z<=0&&I)return`expired`;if(T||_){if(O.isPending)return`loading`;if(fe){let e=We(fe);return $e.includes(e??0)?`not-found`:`timeout`}return M?`select`:`method`}return`payment`},[M,I,_,T,x,de,i.isPending,z,fe,O.isPending,l]),pe=!!x?.trade_id&&!l&&![`loading`,`not-found`,`timeout`].includes(B),V=t.useQuery(`get`,`/pay/check-status/{trade_id}`,{params:{path:{trade_id:x?.trade_id??``}}},{enabled:pe,refetchInterval:({state:e})=>pe&&e.fetchFailureCount<5?qe:!1,retry:!1}),me=Ke(V.data)?.status,H=(0,G.useMemo)(()=>me===2?`success`:me===3?`expired`:B===`payment`&&V.failureCount>=5?`timeout`:B,[B,me,V.failureCount]);n({queryKey:[`checkout-redirect`,x?.trade_id,x?.redirect_url],queryFn:async({signal:e})=>(await Ze(Ue,e),window.location.href=x?.redirect_url,!0),enabled:H===`success`&&!!x?.redirect_url,retry:!1});let he=(0,G.useMemo)(()=>{let e=new Map;for(let t of N){if(!t.network)continue;let n=t.network.toLowerCase();e.has(n)||e.set(n,{network:t.network,displayName:t.displayName})}return Array.from(e.values())},[N]),ge=(0,G.useMemo)(()=>{let e=new Map;for(let t of A)t.network&&t.displayName&&e.set(t.network.toLowerCase(),t.displayName);return e},[A]),_e=(0,G.useMemo)(()=>Array.from(new Set(N.filter(e=>W(e.network,F)).map(e=>e.token))),[N,F]),ve=ue>0?Math.max(0,Math.min(1,z/ue)):0,ye=Qe(ve),U=L?Math.max(0,Math.round((R-L.getTime())/1e3)):0,be=H===`payment`&&U>=10,xe=H===`method`||H===`select`||!w?`order`:`payment`,Se=e=>e==null||e===``?!1:(0,ot.default)(String(e))?(je.success(ee()),!0):(je.error(S()),!1),Ce=(0,G.useCallback)((e,t)=>{if(t&&!t.closed){t.location.href=e,t.focus();return}window.open(e,`okpay_checkout`,`popup,width=480,height=720`)},[]),we=(0,G.useCallback)(async(e,t)=>{if(!x?.trade_id)return;let n=W(e.network,`okpay`);try{let i=Ke(await o.mutateAsync({body:{trade_id:x.trade_id,network:e.network.toLowerCase(),token:e.token.toLowerCase()}}));if(!i)throw Error(Xe);let a=tt(i);if(f({...x,...a,is_selected:a.is_selected??!0,network:a.network??e.network,token:a.token??e.token}),v(!1),n&&a.payment_url){Ce(a.payment_url,t);return}t?.close(),a.trade_id&&a.trade_id!==x.trade_id&&r({params:{trade_id:a.trade_id},replace:!0,to:`/cashier/$trade_id`}).catch(()=>void 0),u(void 0)}catch(e){t?.close();let n=We(e);$e.includes(n??0)?u(`not-found`):n===10010?u(`expired`):je.error(e instanceof Error?e.message:Xe)}},[x,Ce,r,o]),Te=async()=>{if(M===`okpay`){await Ee();return}P&&await we(P)},Ee=async()=>{ce&&await we(ce,window.open(`about:blank`,`okpay_checkout`,`popup,width=480,height=720`))},De=()=>{if(u(void 0),x?.trade_id&&x.receive_address){V.refetch();return}i.refetch(),(T||O.isError)&&O.refetch()},Oe=()=>{if(x?.redirect_url){window.location.href=x.redirect_url;return}if(document.referrer){window.location.href=document.referrer;return}history.back()},ke=async()=>{let e=y.trim();if(!(x?.trade_id&&e))return je.error(c()),!1;try{let t=Ke(await s.mutateAsync({body:{block_transaction_id:e},params:{path:{trade_id:x.trade_id}}}));return je.success(C()),b(``),t?.status===2?(u(`success`),!0):(V.refetch(),!0)}catch(e){let t=We(e);return $e.includes(t??0)?u(`not-found`):t===10010&&u(`expired`),!1}},Ae=()=>{m(`chain`),g(null)},Me=()=>{m(`okpay`),g(te[0]??null)},Ne=()=>{if(_){v(!1);return}m(void 0),g(null)},Pe=()=>{let e=A.find(e=>W(e.network,x?.network)&&W(e.token,x?.token));m(`chain`),g(e??null),v(!0)},Fe=e=>{g(N.find(t=>W(t.network,e))??null)},Ie=e=>{g(N.find(t=>W(t.network,F)&&W(t.token,e))??null)},Le=M===`okpay`||W(x?.network,`okpay`);return(0,q.jsxs)(`main`,{className:`flex flex-1 flex-col justify-center`,children:[H===`not-found`?null:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(ji,{hidden:!!(!(_||d)&&w&&E),panel:H,totalSteps:Le||!M?3:2}),(0,q.jsx)(Ci,{activeNetwork:x?.network??F,activeNetworkDisplayName:ge.get((x?.network??F).toLowerCase()),amountMode:xe,onCopyAmount:()=>Se(xe===`payment`?x?.actual_amount??x?.amount:x?.amount),order:x,tradeId:e})]}),(0,q.jsx)(qt,{networkOptions:he,onBack:Oe,onChangePaymentOption:Pe,onConfirmSelection:Te,onCopyAddress:()=>Se(x?.receive_address),onNetworkChange:Fe,onRetry:De,onReturnToMethods:Ne,onSelectChainPayment:Ae,onSelectOkpayPayment:Me,onSubmitTxHash:ke,onTokenChange:Ie,onTxHashChange:b,order:x,panel:H,remaining:z,selectedNetwork:F,selectedOption:P??void 0,selectedPaymentMethod:M,selectedToken:se,showChainPayment:ne,showChangePaymentOption:D&&H===`payment`&&!W(x?.network,`okpay`),showOkpay:re,showReturnToMethods:!!p&&ie>1,showTxHashSubmit:be,submitting:o.isPending,submittingTxHash:s.isPending,timeColor:ye,timerRatio:ve,tokenOptions:_e,txHash:y})]})}function zi(e){return Array.from(new Set((e??[]).map(e=>e.trim().toUpperCase()).filter(e=>[`TRX`,`USDT`].includes(e)))).map(e=>({network:`tron`,token:e,displayName:`TRON`}))}function Bi(){let{trade_id:e}=Me.useParams();return(0,q.jsx)(Ri,{tradeId:e},e)}export{Bi as component}; \ No newline at end of file diff --git a/src/www/assets/_trade_id-CrABgEyD.js b/src/www/assets/_trade_id-CrABgEyD.js new file mode 100644 index 0000000..690b736 --- /dev/null +++ b/src/www/assets/_trade_id-CrABgEyD.js @@ -0,0 +1,4 @@ +import{r as e}from"./chunk-DECur_0Z.js";import{a as t,p as n}from"./auth-store-De4Y7PFV.js";import{t as r}from"./react-CO2uhaBc.js";import{$ as i,A as a,B as o,D as s,E as c,F as l,G as u,H as d,I as f,J as p,K as m,L as h,M as g,N as _,O as v,P as y,Q as b,R as x,Ru as S,T as C,U as w,V as T,W as E,X as D,Xp as O,Y as k,Z as A,at as ee,ct as j,et as te,it as ne,j as re,k as ie,lt as ae,n as M,nt as N,ot as oe,r as P,st as F,t as se,tm as ce,tt as I,z as L}from"./messages-BOatyqUm.js";import{t as le}from"./useNavigate-7u4DX0Ho.js";import{i as ue,t as R}from"./button-C_NDYaz8.js";import{a as z,i as de,n as fe,r as B,t as pe}from"./select-CzebumOF.js";import{t as V}from"./createLucideIcon-Br0Bd5k2.js";import{t as me}from"./arrow-left-right-CcCrkQiR.js";import{t as H}from"./arrow-left-BpZwGREZ.js";import{t as he}from"./check-CHp0nSkR.js";import{n as ge,t as _e}from"./radio-group-D2rceepu.js";import{n as ve,t as ye}from"./copy-to-clipboard-C1tj4a8X.js";import{t as be}from"./loader-circle-DpEz1fQv.js";import{t as xe}from"./send-BNvceEpO.js";import{t as Se}from"./triangle-alert-DB5v_9sS.js";import{a as Ce,c as we,i as Te,l as Ee,n as De,o as Oe,r as ke,s as Ae,t as je}from"./dialog-CZ-2RPb-.js";import{n as Me}from"./dist-JOUh6qvR.js";import{t as Ne}from"./_trade_id-DIf2n6tl.js";import{t as Pe}from"./input-8zzM34r5.js";import{a as Fe,i as Ie,n as Le,o as Re,r as ze,s as Be,t as Ve}from"./crypto-icon-DnliVYVs.js";import{n as He,t as Ue}from"./labels-Cbc2zlmv.js";import{a as We,c as Ge,d as Ke,f as U,h as qe,i as Je,l as Ye,m as Xe,n as Ze,o as Qe,p as $e,r as et,s as tt,u as nt}from"./checkout-model-CQ3aqlob.js";var rt=V(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),it=V(`file-x`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m14.5 12.5-5 5`,key:`b62r18`}],[`path`,{d:`m9.5 12.5 5 5`,key:`1rk7el`}]]),at=V(`link`,[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]),ot=V(`timer`,[[`line`,{x1:`10`,x2:`14`,y1:`2`,y2:`2`,key:`14vaq8`}],[`line`,{x1:`12`,x2:`15`,y1:`14`,y2:`11`,key:`17fdiu`}],[`circle`,{cx:`12`,cy:`14`,r:`8`,key:`1e1u0o`}]]),st=e(ye(),1),W=e(r()),ct=Object.defineProperty,lt=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,ft=(e,t,n)=>t in e?ct(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pt=(e,t)=>{for(var n in t||={})ut.call(t,n)&&ft(e,n,t[n]);if(lt)for(var n of lt(t))dt.call(t,n)&&ft(e,n,t[n]);return e},mt=(e,t)=>{var n={};for(var r in e)ut.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&<)for(var r of lt(e))t.indexOf(r)<0&&dt.call(e,r)&&(n[r]=e[r]);return n},ht;(e=>{let t=class t{constructor(e,n,r,a){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],et.MAX_VERSION)throw RangeError(`Version value out of range`);if(a<-1||a>7)throw RangeError(`Mask value out of range`);this.size=e*4+17;let o=[];for(let e=0;e7)throw RangeError(`Invalid value`);let u,d;for(u=a;;u++){let n=t.getNumDataCodewords(u,r)*8,i=o.getTotalBits(e,u);if(i<=n){d=i;break}if(u>=s)throw RangeError(`Data too long`)}for(let e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])l&&d<=t.getNumDataCodewords(u,e)*8&&(r=e);let f=[];for(let t of e){n(t.mode.modeBits,4,f),n(t.numChars,t.mode.numCharCountBits(u),f);for(let e of t.getData())f.push(e)}i(f.length==d);let p=t.getNumDataCodewords(u,r)*8;i(f.length<=p),n(0,Math.min(4,p-f.length),f),n(0,(8-f.length%8)%8,f),i(f.length%8==0);for(let e=236;f.lengthm[t>>>3]|=e<<7-(t&7)),new t(u,r,m,c)}getModule(e,t){return 0<=e&&e>>9)*1335;let a=(t<<10|n)^21522;i(a>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(a,e));this.setFunctionModule(8,7,r(a,6)),this.setFunctionModule(8,8,r(a,7)),this.setFunctionModule(7,8,r(a,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(a,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(a,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(a,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;i(t>>>18==0);for(let e=0;e<18;e++){let n=r(t,e),i=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(i,a,n),this.setFunctionModule(a,i,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;0<=a&&a{(e!=l-o||n>=c)&&f.push(t[e])});return i(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw RangeError(`Invalid argument`);let n=0;for(let t=this.size-1;t>=1;t-=2){t==6&&(t=5);for(let i=0;i>>3],7-(n&7)),n++)}}i(n==e.length*8)}applyMask(e){if(e<0||e>7)throw RangeError(`Mask value out of range`);for(let t=0;t5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][o],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;n5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[o][n],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;ne+ +!!t,n);let r=this.size*this.size,a=Math.ceil(Math.abs(n*20-r*10)/r)-1;return i(0<=a&&a<=9),e+=a*t.PENALTY_N4,i(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(this.version==1)return[];{let e=Math.floor(this.version/7)+2,t=this.version==32?26:Math.ceil((this.version*4+4)/(e*2-2))*2,n=[6];for(let r=this.size-7;n.lengtht.MAX_VERSION)throw RangeError(`Version number out of range`);let n=(16*e+128)*e+64;if(e>=2){let t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return i(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw RangeError(`Degree out of range`);let n=[];for(let t=0;t0);for(let i of e){let e=i^r.shift();r.push(0),n.forEach((n,i)=>r[i]^=t.reedSolomonMultiply(n,e))}return r}static reedSolomonMultiply(e,t){if(e>>>8||t>>>8)throw RangeError(`Byte out of range`);let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return i(n>>>8==0),n}finderPenaltyCountPatterns(e){let t=e[1];i(t<=this.size*3);let n=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(n&&e[0]>=t*4&&e[6]>=t?1:0)+(n&&e[6]>=t*4&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(e,t,n){if(t<0||t>31||e>>>t)throw RangeError(`Value out of range`);for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function r(e,t){return(e>>>t&1)!=0}function i(e){if(!e)throw Error(`Assertion error`)}let a=class e{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw RangeError(`Invalid argument`);this.bitData=n.slice()}static makeBytes(t){let r=[];for(let e of t)n(e,8,r);return new e(e.Mode.BYTE,t.length,r)}static makeNumeric(t){if(!e.isNumeric(t))throw RangeError(`String contains non-numeric characters`);let r=[];for(let e=0;e=1<{(e=>{let t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};t.LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2),e.Ecc=t})(e.QrCode||={})})(ht||={}),(e=>{(e=>{let t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};t.NUMERIC=new t(1,[10,12,14]),t.ALPHANUMERIC=new t(2,[9,11,13]),t.BYTE=new t(4,[8,16,16]),t.KANJI=new t(8,[8,10,12]),t.ECI=new t(7,[0,0,0]),e.Mode=t})(e.QrSegment||={})})(ht||={});var G=ht,gt={L:G.QrCode.Ecc.LOW,M:G.QrCode.Ecc.MEDIUM,Q:G.QrCode.Ecc.QUARTILE,H:G.QrCode.Ecc.HIGH},_t=128,vt=`L`,yt=`#FFFFFF`,bt=`#000000`,xt=!1,St=1,Ct=4,wt=0,Tt=.1;function Et(e,t=0){let n=[];return e.forEach(function(e,r){let i=null;e.forEach(function(a,o){if(!a&&i!==null){n.push(`M${i+t} ${r+t}h${o-i}v1H${i+t}z`),i=null;return}if(o===e.length-1){if(!a)return;i===null?n.push(`M${o+t},${r+t} h1v1H${o+t}z`):n.push(`M${i+t},${r+t} h${o+1-i}v1H${i+t}z`);return}a&&i===null&&(i=o)})}),n.join(``)}function Dt(e,t){return e.slice().map((e,n)=>n=t.y+t.h?e:e.map((e,n)=>n=t.x+t.w?e:!1))}function Ot(e,t,n,r){if(r==null)return null;let i=e.length+n*2,a=Math.floor(t*Tt),o=i/t,s=(r.width||a)*o,c=(r.height||a)*o,l=r.x==null?e.length/2-s/2:r.x*o,u=r.y==null?e.length/2-c/2:r.y*o,d=r.opacity==null?1:r.opacity,f=null;if(r.excavate){let e=Math.floor(l),t=Math.floor(u);f={x:e,y:t,w:Math.ceil(s+l-e),h:Math.ceil(c+u-t)}}let p=r.crossOrigin;return{x:l,y:u,h:c,w:s,excavation:f,opacity:d,crossOrigin:p}}function kt(e,t){return t==null?e?Ct:wt:Math.max(Math.floor(t),0)}function At({value:e,level:t,minVersion:n,includeMargin:r,marginSize:i,imageSettings:a,size:o,boostLevel:s}){let c=W.useMemo(()=>{let r=(Array.isArray(e)?e:[e]).reduce((e,t)=>(e.push(...G.QrSegment.makeSegments(t)),e),[]);return G.QrCode.encodeSegments(r,gt[t],n,void 0,void 0,s)},[e,t,n,s]),{cells:l,margin:u,numCells:d,calculatedImageSettings:f}=W.useMemo(()=>{let e=c.getModules(),t=kt(r,i);return{cells:e,margin:t,numCells:e.length+t*2,calculatedImageSettings:Ot(e,o,t,a)}},[c,o,a,r,i]);return{qrcode:c,margin:u,cells:l,numCells:d,calculatedImageSettings:f}}var jt=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}(),Mt=W.forwardRef(function(e,t){let n=e,{value:r,size:i=_t,level:a=vt,bgColor:o=yt,fgColor:s=bt,includeMargin:c=xt,minVersion:l=St,boostLevel:u,marginSize:d,imageSettings:f}=n,p=mt(n,[`value`,`size`,`level`,`bgColor`,`fgColor`,`includeMargin`,`minVersion`,`boostLevel`,`marginSize`,`imageSettings`]),{style:m}=p,h=mt(p,[`style`]),g=f?.src,_=W.useRef(null),v=W.useRef(null),y=W.useCallback(e=>{_.current=e,typeof t==`function`?t(e):t&&(t.current=e)},[t]),[b,x]=W.useState(!1),{margin:S,cells:C,numCells:w,calculatedImageSettings:T}=At({value:r,level:a,minVersion:l,boostLevel:u,includeMargin:c,marginSize:d,imageSettings:f,size:i});W.useEffect(()=>{if(_.current!=null){let e=_.current,t=e.getContext(`2d`);if(!t)return;let n=C,r=v.current,a=T!=null&&r!==null&&r.complete&&r.naturalHeight!==0&&r.naturalWidth!==0;a&&T.excavation!=null&&(n=Dt(C,T.excavation));let c=window.devicePixelRatio||1;e.height=e.width=i*c;let l=i/w*c;t.scale(l,l),t.fillStyle=o,t.fillRect(0,0,w,w),t.fillStyle=s,jt?t.fill(new Path2D(Et(n,S))):C.forEach(function(e,n){e.forEach(function(e,r){e&&t.fillRect(r+S,n+S,1,1)})}),T&&(t.globalAlpha=T.opacity),a&&t.drawImage(r,T.x+S,T.y+S,T.w,T.h)}}),W.useEffect(()=>{x(!1)},[g]);let E=pt({height:i,width:i},m),D=null;return g!=null&&(D=W.createElement(`img`,{src:g,key:g,style:{display:`none`},onLoad:()=>{x(!0)},ref:v,crossOrigin:T?.crossOrigin})),W.createElement(W.Fragment,null,W.createElement(`canvas`,pt({style:E,height:i,width:i,ref:y,role:`img`},h)),D)});Mt.displayName=`QRCodeCanvas`;var Nt=W.forwardRef(function(e,t){let n=e,{value:r,size:i=_t,level:a=vt,bgColor:o=yt,fgColor:s=bt,includeMargin:c=xt,minVersion:l=St,boostLevel:u,title:d,marginSize:f,imageSettings:p}=n,m=mt(n,[`value`,`size`,`level`,`bgColor`,`fgColor`,`includeMargin`,`minVersion`,`boostLevel`,`title`,`marginSize`,`imageSettings`]),{margin:h,cells:g,numCells:_,calculatedImageSettings:v}=At({value:r,level:a,minVersion:l,boostLevel:u,includeMargin:c,marginSize:f,imageSettings:p,size:i}),y=g,b=null;p!=null&&v!=null&&(v.excavation!=null&&(y=Dt(g,v.excavation)),b=W.createElement(`image`,{href:p.src,height:v.h,width:v.w,x:v.x+h,y:v.y+h,preserveAspectRatio:`none`,opacity:v.opacity,crossOrigin:v.crossOrigin}));let x=Et(y,h);return W.createElement(`svg`,pt({height:i,width:i,viewBox:`0 0 ${_} ${_}`,ref:t,role:`img`},m),!!d&&W.createElement(`title`,null,d),W.createElement(`path`,{fill:o,d:`M0,0 h${_}v${_}H0z`,shapeRendering:`crispEdges`}),W.createElement(`path`,{fill:s,d:x,shapeRendering:`crispEdges`}),b)});Nt.displayName=`QRCodeSVG`;var K=ce(),Pt=1400;function Ft(e){let t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=e%60,i=e=>String(e).padStart(2,`0`);return t>0?`${i(t)}:${i(n)}:${i(r)}`:`${i(n)}:${i(r)}`}function It({className:e,onClick:t}){let[n,r]=(0,W.useState)(!1),i=(0,W.useRef)(void 0);return(0,W.useEffect)(()=>()=>{i.current!==void 0&&window.clearTimeout(i.current)},[]),(0,K.jsx)(R,{className:ue(`mb-0.5 shrink-0`,e),onClick:()=>{if(i.current!==void 0&&window.clearTimeout(i.current),t()===!1){r(!1);return}r(!0),i.current=window.setTimeout(()=>{r(!1),i.current=void 0},Pt)},size:`icon-sm`,type:`button`,variant:`secondary`,children:n?(0,K.jsx)(he,{className:`text-emerald-600 dark:text-emerald-400`}):(0,K.jsx)(ve,{})})}var Lt=2*Math.PI*20;function Rt({onCopyAddress:e,onChangePaymentOption:t,onSubmitTxHash:n,onTxHashChange:r,order:i,paymentMethod:c,remaining:l,showChangePaymentOption:u,showTxHashSubmit:d,submittingTxHash:f,timeColor:m,timerRatio:h,txHash:y}){let[b,x]=(0,W.useState)(!1),S=i?.receive_address??``,C=i?.payment_url;return c===`okpay`||String(i?.network??``)===`okpay`||C&&!S?(0,K.jsxs)(`section`,{className:`w-full pb-4`,children:[(0,K.jsxs)(`div`,{className:`mb-4 w-full rounded-2xl border bg-card px-5 py-5 text-card-foreground shadow-md`,children:[(0,K.jsx)(`p`,{className:`mb-2 font-semibold text-sm`,children:se()}),C?(0,K.jsx)(`p`,{className:`break-all text-muted-foreground text-sm`,children:C}):null]}),C?(0,K.jsxs)(R,{className:`mb-3 h-12 w-full rounded-xl text-base`,onClick:()=>{window.open(C,`okpay_checkout`,`popup,width=480,height=720`)},type:`button`,children:[(0,K.jsx)(rt,{}),P()]}):null]}):(0,K.jsxs)(`section`,{className:`w-full pb-4`,children:[(0,K.jsxs)(`div`,{className:`mb-4 w-full overflow-hidden rounded-2xl border bg-card px-5 pt-5 pb-0 text-card-foreground shadow-md`,children:[(0,K.jsxs)(`div`,{className:`mb-3 flex items-center justify-between`,children:[(0,K.jsx)(`p`,{className:`font-semibold text-sm`,children:E()}),(0,K.jsxs)(`div`,{className:`relative size-10 shrink-0`,children:[(0,K.jsxs)(`svg`,{"aria-hidden":`true`,className:`absolute inset-0 size-10`,viewBox:`0 0 48 48`,children:[(0,K.jsx)(`circle`,{className:`text-border`,cx:`24`,cy:`24`,fill:`none`,r:`20`,stroke:`currentColor`,strokeWidth:`3`}),(0,K.jsx)(`circle`,{cx:`24`,cy:`24`,fill:`none`,r:`20`,stroke:m,strokeDasharray:Lt,strokeDashoffset:Lt*(1-h),strokeLinecap:`round`,strokeWidth:`3`,style:{transform:`rotate(-90deg)`,transformOrigin:`50% 50%`}})]}),(0,K.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center`,children:(0,K.jsx)(ot,{className:`size-4 text-muted-foreground`})})]})]}),(0,K.jsx)(`p`,{className:`mb-4 text-center font-bold font-mono text-3xl leading-none`,style:{color:m},children:Ft(l)}),(0,K.jsx)(`div`,{className:`mb-4 flex justify-center`,children:(0,K.jsx)(`div`,{className:`rounded-xl border bg-white p-3.5 shadow-md`,children:S?(0,K.jsx)(Nt,{bgColor:`#ffffff`,fgColor:`#111111`,level:`M`,size:120,value:S}):(0,K.jsx)(`div`,{className:`flex size-30 items-center justify-center text-muted-foreground text-xs`,children:`--`})})}),(0,K.jsxs)(`div`,{className:`-mx-5 flex w-[calc(100%+2.5rem)] items-start gap-3 border-border/50 border-t px-5 py-3.5`,children:[(0,K.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,K.jsx)(`p`,{className:`mb-0.5 font-semibold text-muted-foreground text-xs uppercase tracking-wider`,children:p()}),(0,K.jsx)(`p`,{className:`break-all font-medium text-card-foreground text-sm leading-relaxed`,children:i?.receive_address??`--`})]}),(0,K.jsx)(It,{className:`mt-0.5`,onClick:e})]})]}),u?(0,K.jsxs)(R,{className:`mb-3 h-12 w-full rounded-xl text-base`,onClick:t,type:`button`,variant:`outline`,children:[(0,K.jsx)(me,{}),o()]}):null,d?(0,K.jsxs)(je,{onOpenChange:x,open:b,children:[(0,K.jsx)(we,{asChild:!0,children:(0,K.jsxs)(R,{className:`mb-3 h-12 w-full rounded-xl text-base`,type:`button`,children:[(0,K.jsx)(he,{}),_()]})}),(0,K.jsxs)(ke,{children:[(0,K.jsxs)(Oe,{children:[(0,K.jsx)(Ae,{children:g()}),(0,K.jsx)(Te,{children:re()})]}),(0,K.jsxs)(`form`,{className:`space-y-4`,onSubmit:async e=>{e.preventDefault(),await n()&&x(!1)},children:[(0,K.jsxs)(`div`,{className:`space-y-2`,children:[(0,K.jsx)(`label`,{className:`font-medium text-sm`,htmlFor:`checkout-tx-hash`,children:a()}),(0,K.jsx)(Pe,{autoComplete:`off`,autoFocus:!0,className:`h-11`,disabled:f,id:`checkout-tx-hash`,onChange:e=>r(e.target.value),placeholder:ie(),value:y})]}),(0,K.jsx)(`p`,{className:`text-muted-foreground text-xs leading-relaxed`,children:v()}),(0,K.jsxs)(Ce,{children:[(0,K.jsx)(De,{asChild:!0,children:(0,K.jsx)(R,{disabled:f,type:`button`,variant:`outline`,children:O()})}),(0,K.jsxs)(R,{disabled:f||!y.trim(),type:`submit`,children:[f?(0,K.jsx)(be,{className:`animate-spin`}):(0,K.jsx)(xe,{}),s()]})]})]})]})]}):null,(0,K.jsxs)(`div`,{className:`flex items-center justify-center gap-1.5 py-1 text-muted-foreground`,children:[(0,K.jsx)(be,{className:`size-3.5 animate-spin`}),(0,K.jsx)(`span`,{className:`text-xs`,children:F()})]})]})}function zt({className:e,disabled:t,onClick:n}){return(0,K.jsxs)(R,{className:`min-h-18 w-full justify-start rounded-2xl border border-border bg-card/40 px-4 py-3 text-left hover:bg-accent/45 dark:bg-white/[0.03] dark:hover:bg-white/[0.06] ${e??``}`,disabled:t,onClick:n,type:`button`,variant:`ghost`,children:[(0,K.jsx)(Ve,{alt:``,className:`size-10 shrink-0 rounded-lg`,height:40,name:`okpay`,type:`wallet`,width:40}),(0,K.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,K.jsx)(`span`,{className:`block truncate font-semibold text-base text-foreground`,children:P()}),(0,K.jsx)(`span`,{className:`mt-1 block truncate font-normal text-muted-foreground text-xs`,children:M()})]}),t?(0,K.jsx)(be,{className:`size-5 shrink-0 animate-spin text-muted-foreground`}):null]})}function Bt({onSelectChain:e,onSelectOkpay:t,showChain:n,showOkpay:r}){return(0,K.jsxs)(`section`,{className:`w-full pb-4`,children:[(0,K.jsx)(`p`,{className:`mb-3 font-semibold text-base`,children:T()}),(0,K.jsxs)(`div`,{className:`space-y-3`,children:[n?(0,K.jsxs)(R,{className:`min-h-18 w-full justify-start rounded-2xl border border-border bg-card/40 px-4 py-3 text-left hover:bg-accent/45 dark:bg-white/[0.03] dark:hover:bg-white/[0.06]`,onClick:e,type:`button`,variant:`ghost`,children:[(0,K.jsx)(`span`,{className:`flex size-10 shrink-0 items-center justify-center rounded-lg bg-foreground/10 text-foreground`,children:(0,K.jsx)(at,{className:`size-5`})}),(0,K.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,K.jsx)(`span`,{className:`block truncate font-semibold text-base text-foreground`,children:L()}),(0,K.jsx)(`span`,{className:`mt-1 block truncate font-normal text-muted-foreground text-xs`,children:x()})]})]}):null,r?(0,K.jsx)(zt,{onClick:t}):null]})]})}function Vt({onBack:e,networkOptions:t,onConfirm:n,onNetworkChange:r,onTokenChange:a,paymentMethod:o,selectedNetwork:s,selectedOption:c,selectedToken:l,showBack:u=!0,submitting:f,tokenOptions:p}){let m=o!==`okpay`,h=o===`okpay`,g=m?d():w(),_=t.find(e=>e.network.toLowerCase()===s.toLowerCase());return(0,K.jsxs)(`section`,{className:`w-full pb-4`,children:[(0,K.jsxs)(`div`,{className:`mb-3 flex items-center gap-2`,children:[u?(0,K.jsx)(R,{"aria-label":j(),className:`size-8 rounded-full`,onClick:e,size:`icon-sm`,type:`button`,variant:`ghost`,children:(0,K.jsx)(H,{})}):null,(0,K.jsx)(`p`,{className:`font-semibold text-base`,children:g})]}),(0,K.jsxs)(`div`,{className:`mb-4 flex gap-2`,children:[m?(0,K.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,K.jsx)(`p`,{className:`mb-1.5 font-semibold text-muted-foreground text-xs uppercase tracking-wider`,children:i()}),(0,K.jsxs)(pe,{disabled:t.length===0,onValueChange:r,value:s,children:[(0,K.jsx)(de,{className:`h-12.5 w-full rounded-xl bg-card`,children:(0,K.jsx)(z,{placeholder:(0,K.jsx)(Ue,{displayName:_?.displayName,network:s})})}),(0,K.jsx)(fe,{position:`popper`,children:t.map(e=>(0,K.jsx)(B,{value:e.network,children:(0,K.jsx)(Ue,{displayName:e.displayName,network:e.network})},e.network))})]})]}):null,(0,K.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,K.jsx)(`p`,{className:`mb-1.5 font-semibold text-muted-foreground text-xs uppercase tracking-wider`,children:ne()}),h?(0,K.jsx)(_e,{className:`grid grid-cols-2 gap-2`,onValueChange:a,value:l,children:p.map(e=>(0,K.jsxs)(`label`,{className:`flex h-12.5 cursor-pointer items-center gap-3 rounded-xl border bg-card px-3 transition-colors hover:bg-accent/50 has-[[data-state=checked]]:border-primary has-[[data-state=checked]]:bg-primary/5`,htmlFor:`okpay-token-${e.toLowerCase()}`,children:[(0,K.jsx)(ge,{id:`okpay-token-${e.toLowerCase()}`,value:e}),(0,K.jsx)(He,{token:e})]},e))}):(0,K.jsxs)(pe,{disabled:p.length===0,onValueChange:a,value:l,children:[(0,K.jsx)(de,{className:`h-12.5 w-full rounded-xl bg-card`,children:(0,K.jsx)(z,{placeholder:(0,K.jsx)(He,{token:l})})}),(0,K.jsx)(fe,{position:`popper`,children:p.map(e=>(0,K.jsx)(B,{value:e,children:(0,K.jsx)(He,{token:e})},e))})]})]})]}),(0,K.jsx)(R,{className:`h-12 w-full rounded-xl text-base`,disabled:f||!c,onClick:n,type:`button`,children:oe()})]})}function Ht({children:e,description:t,icon:n,title:r}){return(0,K.jsxs)(`section`,{"aria-live":`polite`,className:`flex min-h-96 w-full flex-col items-center justify-center rounded-2xl border bg-card px-6 py-10 text-center text-card-foreground shadow-md`,role:`status`,children:[(0,K.jsx)(`div`,{className:`mb-6 flex size-20 items-center justify-center rounded-full bg-muted`,children:n}),(0,K.jsx)(`p`,{className:`mb-2 font-bold text-xl`,children:r}),(0,K.jsx)(`p`,{className:`mb-6 text-muted-foreground text-sm`,children:t}),e]})}function Ut(){return(0,K.jsx)(Ht,{description:F(),icon:(0,K.jsx)(be,{className:`size-8 animate-spin text-muted-foreground`}),title:te()})}function Wt({redirecting:e}){return(0,K.jsx)(Ht,{description:e?m():f(),icon:(0,K.jsx)(he,{className:`size-10 text-green-500`}),title:h(),children:e?(0,K.jsx)(be,{className:`size-6 animate-spin text-muted-foreground`}):null})}function Gt({onBack:e}){return(0,K.jsxs)(`div`,{className:`space-y-4`,children:[(0,K.jsx)(Ht,{description:I(),icon:(0,K.jsx)(Ee,{className:`size-10 text-destructive`}),title:N()}),(0,K.jsx)(R,{className:`h-12 w-full rounded-xl`,onClick:e,type:`button`,variant:`outline`,children:j()})]})}function Kt({onBack:e,onRetry:t}){return(0,K.jsxs)(`div`,{className:`space-y-4`,children:[(0,K.jsx)(Ht,{description:y(),icon:(0,K.jsx)(Se,{className:`size-10 text-orange-500`}),title:l()}),(0,K.jsxs)(`div`,{className:`flex gap-3`,children:[(0,K.jsx)(R,{className:`h-12 flex-1 rounded-xl`,onClick:e,type:`button`,variant:`outline`,children:j()}),(0,K.jsx)(R,{className:`h-12 flex-1 rounded-xl`,onClick:t,type:`button`,children:u()})]})]})}function qt({onBack:e}){return(0,K.jsxs)(`div`,{className:`space-y-4`,children:[(0,K.jsx)(Ht,{description:A(),icon:(0,K.jsx)(it,{className:`size-10 text-muted-foreground`}),title:b()}),(0,K.jsx)(R,{className:`h-12 w-full rounded-xl`,onClick:e,type:`button`,variant:`outline`,children:j()})]})}function Jt({networkOptions:e,onBack:t,onChangePaymentOption:n,onConfirmSelection:r,onCopyAddress:i,onNetworkChange:a,onRetry:o,onReturnToMethods:s,onSelectChainPayment:c,onSelectOkpayPayment:l,onSubmitTxHash:u,onTokenChange:d,onTxHashChange:f,order:p,panel:m,remaining:h,selectedPaymentMethod:g,selectedNetwork:_,selectedOption:v,selectedToken:y,showChainPayment:b,showChangePaymentOption:x,showOkpay:S,showReturnToMethods:C,showTxHashSubmit:w,submitting:T,submittingTxHash:E,timeColor:D,timerRatio:O,txHash:k,tokenOptions:A}){switch(m){case`loading`:return(0,K.jsx)(Ut,{});case`method`:return(0,K.jsx)(Bt,{onSelectChain:c,onSelectOkpay:l,showChain:b,showOkpay:S});case`select`:return(0,K.jsx)(Vt,{networkOptions:e,onBack:s,onConfirm:r,onNetworkChange:a,onTokenChange:d,paymentMethod:g,selectedNetwork:_,selectedOption:v,selectedToken:y,showBack:C,submitting:T,tokenOptions:A});case`payment`:return(0,K.jsx)(Rt,{onChangePaymentOption:n,onCopyAddress:i,onSubmitTxHash:u,onTxHashChange:f,order:p,paymentMethod:g,remaining:h,showChangePaymentOption:x,showTxHashSubmit:w,submittingTxHash:E,timeColor:D,timerRatio:O,txHash:k});case`success`:return(0,K.jsx)(Wt,{redirecting:!!p?.redirect_url});case`expired`:return(0,K.jsx)(Gt,{onBack:t});case`timeout`:return(0,K.jsx)(Kt,{onBack:t,onRetry:o});case`not-found`:return(0,K.jsx)(qt,{onBack:t});default:return null}}var Yt=`BN.BN.BN.BN.BN.BN.BN.BN.BN.S.B.S.WS.B.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.B.B.B.S.WS.ON.ON.ET.ET.ET.ON.ON.ON.ON.ON.ES.CS.ES.CS.CS.EN.EN.EN.EN.EN.EN.EN.EN.EN.EN.CS.ON.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.ON.ON.ON.BN.BN.BN.BN.BN.BN.B.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.CS.ON.ET.ET.ET.ET.ON.ON.ON.ON.L.ON.ON.BN.ON.ON.ET.ET.EN.EN.ON.L.ON.ON.ON.EN.L.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.L.L.L.L.L.L.L.L`.split(`.`),Xt=[[697,698,`ON`],[706,719,`ON`],[722,735,`ON`],[741,749,`ON`],[751,767,`ON`],[768,879,`NSM`],[884,885,`ON`],[894,894,`ON`],[900,901,`ON`],[903,903,`ON`],[1014,1014,`ON`],[1155,1161,`NSM`],[1418,1418,`ON`],[1421,1422,`ON`],[1423,1423,`ET`],[1424,1424,`R`],[1425,1469,`NSM`],[1470,1470,`R`],[1471,1471,`NSM`],[1472,1472,`R`],[1473,1474,`NSM`],[1475,1475,`R`],[1476,1477,`NSM`],[1478,1478,`R`],[1479,1479,`NSM`],[1480,1535,`R`],[1536,1541,`AN`],[1542,1543,`ON`],[1544,1544,`AL`],[1545,1546,`ET`],[1547,1547,`AL`],[1548,1548,`CS`],[1549,1549,`AL`],[1550,1551,`ON`],[1552,1562,`NSM`],[1563,1610,`AL`],[1611,1631,`NSM`],[1632,1641,`AN`],[1642,1642,`ET`],[1643,1644,`AN`],[1645,1647,`AL`],[1648,1648,`NSM`],[1649,1749,`AL`],[1750,1756,`NSM`],[1757,1757,`AN`],[1758,1758,`ON`],[1759,1764,`NSM`],[1765,1766,`AL`],[1767,1768,`NSM`],[1769,1769,`ON`],[1770,1773,`NSM`],[1774,1775,`AL`],[1776,1785,`EN`],[1786,1808,`AL`],[1809,1809,`NSM`],[1810,1839,`AL`],[1840,1866,`NSM`],[1867,1957,`AL`],[1958,1968,`NSM`],[1969,1983,`AL`],[1984,2026,`R`],[2027,2035,`NSM`],[2036,2037,`R`],[2038,2041,`ON`],[2042,2044,`R`],[2045,2045,`NSM`],[2046,2069,`R`],[2070,2073,`NSM`],[2074,2074,`R`],[2075,2083,`NSM`],[2084,2084,`R`],[2085,2087,`NSM`],[2088,2088,`R`],[2089,2093,`NSM`],[2094,2136,`R`],[2137,2139,`NSM`],[2140,2143,`R`],[2144,2191,`AL`],[2192,2193,`AN`],[2194,2198,`AL`],[2199,2207,`NSM`],[2208,2249,`AL`],[2250,2273,`NSM`],[2274,2274,`AN`],[2275,2306,`NSM`],[2362,2362,`NSM`],[2364,2364,`NSM`],[2369,2376,`NSM`],[2381,2381,`NSM`],[2385,2391,`NSM`],[2402,2403,`NSM`],[2433,2433,`NSM`],[2492,2492,`NSM`],[2497,2500,`NSM`],[2509,2509,`NSM`],[2530,2531,`NSM`],[2546,2547,`ET`],[2555,2555,`ET`],[2558,2558,`NSM`],[2561,2562,`NSM`],[2620,2620,`NSM`],[2625,2626,`NSM`],[2631,2632,`NSM`],[2635,2637,`NSM`],[2641,2641,`NSM`],[2672,2673,`NSM`],[2677,2677,`NSM`],[2689,2690,`NSM`],[2748,2748,`NSM`],[2753,2757,`NSM`],[2759,2760,`NSM`],[2765,2765,`NSM`],[2786,2787,`NSM`],[2801,2801,`ET`],[2810,2815,`NSM`],[2817,2817,`NSM`],[2876,2876,`NSM`],[2879,2879,`NSM`],[2881,2884,`NSM`],[2893,2893,`NSM`],[2901,2902,`NSM`],[2914,2915,`NSM`],[2946,2946,`NSM`],[3008,3008,`NSM`],[3021,3021,`NSM`],[3059,3064,`ON`],[3065,3065,`ET`],[3066,3066,`ON`],[3072,3072,`NSM`],[3076,3076,`NSM`],[3132,3132,`NSM`],[3134,3136,`NSM`],[3142,3144,`NSM`],[3146,3149,`NSM`],[3157,3158,`NSM`],[3170,3171,`NSM`],[3192,3198,`ON`],[3201,3201,`NSM`],[3260,3260,`NSM`],[3276,3277,`NSM`],[3298,3299,`NSM`],[3328,3329,`NSM`],[3387,3388,`NSM`],[3393,3396,`NSM`],[3405,3405,`NSM`],[3426,3427,`NSM`],[3457,3457,`NSM`],[3530,3530,`NSM`],[3538,3540,`NSM`],[3542,3542,`NSM`],[3633,3633,`NSM`],[3636,3642,`NSM`],[3647,3647,`ET`],[3655,3662,`NSM`],[3761,3761,`NSM`],[3764,3772,`NSM`],[3784,3790,`NSM`],[3864,3865,`NSM`],[3893,3893,`NSM`],[3895,3895,`NSM`],[3897,3897,`NSM`],[3898,3901,`ON`],[3953,3966,`NSM`],[3968,3972,`NSM`],[3974,3975,`NSM`],[3981,3991,`NSM`],[3993,4028,`NSM`],[4038,4038,`NSM`],[4141,4144,`NSM`],[4146,4151,`NSM`],[4153,4154,`NSM`],[4157,4158,`NSM`],[4184,4185,`NSM`],[4190,4192,`NSM`],[4209,4212,`NSM`],[4226,4226,`NSM`],[4229,4230,`NSM`],[4237,4237,`NSM`],[4253,4253,`NSM`],[4957,4959,`NSM`],[5008,5017,`ON`],[5120,5120,`ON`],[5760,5760,`WS`],[5787,5788,`ON`],[5906,5908,`NSM`],[5938,5939,`NSM`],[5970,5971,`NSM`],[6002,6003,`NSM`],[6068,6069,`NSM`],[6071,6077,`NSM`],[6086,6086,`NSM`],[6089,6099,`NSM`],[6107,6107,`ET`],[6109,6109,`NSM`],[6128,6137,`ON`],[6144,6154,`ON`],[6155,6157,`NSM`],[6158,6158,`BN`],[6159,6159,`NSM`],[6277,6278,`NSM`],[6313,6313,`NSM`],[6432,6434,`NSM`],[6439,6440,`NSM`],[6450,6450,`NSM`],[6457,6459,`NSM`],[6464,6464,`ON`],[6468,6469,`ON`],[6622,6655,`ON`],[6679,6680,`NSM`],[6683,6683,`NSM`],[6742,6742,`NSM`],[6744,6750,`NSM`],[6752,6752,`NSM`],[6754,6754,`NSM`],[6757,6764,`NSM`],[6771,6780,`NSM`],[6783,6783,`NSM`],[6832,6877,`NSM`],[6880,6891,`NSM`],[6912,6915,`NSM`],[6964,6964,`NSM`],[6966,6970,`NSM`],[6972,6972,`NSM`],[6978,6978,`NSM`],[7019,7027,`NSM`],[7040,7041,`NSM`],[7074,7077,`NSM`],[7080,7081,`NSM`],[7083,7085,`NSM`],[7142,7142,`NSM`],[7144,7145,`NSM`],[7149,7149,`NSM`],[7151,7153,`NSM`],[7212,7219,`NSM`],[7222,7223,`NSM`],[7376,7378,`NSM`],[7380,7392,`NSM`],[7394,7400,`NSM`],[7405,7405,`NSM`],[7412,7412,`NSM`],[7416,7417,`NSM`],[7616,7679,`NSM`],[8125,8125,`ON`],[8127,8129,`ON`],[8141,8143,`ON`],[8157,8159,`ON`],[8173,8175,`ON`],[8189,8190,`ON`],[8192,8202,`WS`],[8203,8205,`BN`],[8207,8207,`R`],[8208,8231,`ON`],[8232,8232,`WS`],[8233,8233,`B`],[8234,8238,`BN`],[8239,8239,`CS`],[8240,8244,`ET`],[8245,8259,`ON`],[8260,8260,`CS`],[8261,8286,`ON`],[8287,8287,`WS`],[8288,8303,`BN`],[8304,8304,`EN`],[8308,8313,`EN`],[8314,8315,`ES`],[8316,8318,`ON`],[8320,8329,`EN`],[8330,8331,`ES`],[8332,8334,`ON`],[8352,8399,`ET`],[8400,8432,`NSM`],[8448,8449,`ON`],[8451,8454,`ON`],[8456,8457,`ON`],[8468,8468,`ON`],[8470,8472,`ON`],[8478,8483,`ON`],[8485,8485,`ON`],[8487,8487,`ON`],[8489,8489,`ON`],[8494,8494,`ET`],[8506,8507,`ON`],[8512,8516,`ON`],[8522,8525,`ON`],[8528,8543,`ON`],[8585,8587,`ON`],[8592,8721,`ON`],[8722,8722,`ES`],[8723,8723,`ET`],[8724,9013,`ON`],[9083,9108,`ON`],[9110,9257,`ON`],[9280,9290,`ON`],[9312,9351,`ON`],[9352,9371,`EN`],[9450,9899,`ON`],[9901,10239,`ON`],[10496,11123,`ON`],[11126,11263,`ON`],[11493,11498,`ON`],[11503,11505,`NSM`],[11513,11519,`ON`],[11647,11647,`NSM`],[11744,11775,`NSM`],[11776,11869,`ON`],[11904,11929,`ON`],[11931,12019,`ON`],[12032,12245,`ON`],[12272,12287,`ON`],[12288,12288,`WS`],[12289,12292,`ON`],[12296,12320,`ON`],[12330,12333,`NSM`],[12336,12336,`ON`],[12342,12343,`ON`],[12349,12351,`ON`],[12441,12442,`NSM`],[12443,12444,`ON`],[12448,12448,`ON`],[12539,12539,`ON`],[12736,12773,`ON`],[12783,12783,`ON`],[12829,12830,`ON`],[12880,12895,`ON`],[12924,12926,`ON`],[12977,12991,`ON`],[13004,13007,`ON`],[13175,13178,`ON`],[13278,13279,`ON`],[13311,13311,`ON`],[19904,19967,`ON`],[42128,42182,`ON`],[42509,42511,`ON`],[42607,42610,`NSM`],[42611,42611,`ON`],[42612,42621,`NSM`],[42622,42623,`ON`],[42654,42655,`NSM`],[42736,42737,`NSM`],[42752,42785,`ON`],[42888,42888,`ON`],[43010,43010,`NSM`],[43014,43014,`NSM`],[43019,43019,`NSM`],[43045,43046,`NSM`],[43048,43051,`ON`],[43052,43052,`NSM`],[43064,43065,`ET`],[43124,43127,`ON`],[43204,43205,`NSM`],[43232,43249,`NSM`],[43263,43263,`NSM`],[43302,43309,`NSM`],[43335,43345,`NSM`],[43392,43394,`NSM`],[43443,43443,`NSM`],[43446,43449,`NSM`],[43452,43453,`NSM`],[43493,43493,`NSM`],[43561,43566,`NSM`],[43569,43570,`NSM`],[43573,43574,`NSM`],[43587,43587,`NSM`],[43596,43596,`NSM`],[43644,43644,`NSM`],[43696,43696,`NSM`],[43698,43700,`NSM`],[43703,43704,`NSM`],[43710,43711,`NSM`],[43713,43713,`NSM`],[43756,43757,`NSM`],[43766,43766,`NSM`],[43882,43883,`ON`],[44005,44005,`NSM`],[44008,44008,`NSM`],[44013,44013,`NSM`],[64285,64285,`R`],[64286,64286,`NSM`],[64287,64296,`R`],[64297,64297,`ES`],[64298,64335,`R`],[64336,64450,`AL`],[64451,64466,`ON`],[64467,64829,`AL`],[64830,64847,`ON`],[64848,64911,`AL`],[64912,64913,`ON`],[64914,64967,`AL`],[64968,64975,`ON`],[64976,65007,`BN`],[65008,65020,`AL`],[65021,65023,`ON`],[65024,65039,`NSM`],[65040,65049,`ON`],[65056,65071,`NSM`],[65072,65103,`ON`],[65104,65104,`CS`],[65105,65105,`ON`],[65106,65106,`CS`],[65108,65108,`ON`],[65109,65109,`CS`],[65110,65118,`ON`],[65119,65119,`ET`],[65120,65121,`ON`],[65122,65123,`ES`],[65124,65126,`ON`],[65128,65128,`ON`],[65129,65130,`ET`],[65131,65131,`ON`],[65136,65278,`AL`],[65279,65279,`BN`],[65281,65282,`ON`],[65283,65285,`ET`],[65286,65290,`ON`],[65291,65291,`ES`],[65292,65292,`CS`],[65293,65293,`ES`],[65294,65295,`CS`],[65296,65305,`EN`],[65306,65306,`CS`],[65307,65312,`ON`],[65339,65344,`ON`],[65371,65381,`ON`],[65504,65505,`ET`],[65506,65508,`ON`],[65509,65510,`ET`],[65512,65518,`ON`],[65520,65528,`BN`],[65529,65533,`ON`],[65534,65535,`BN`],[65793,65793,`ON`],[65856,65932,`ON`],[65936,65948,`ON`],[65952,65952,`ON`],[66045,66045,`NSM`],[66272,66272,`NSM`],[66273,66299,`EN`],[66422,66426,`NSM`],[67584,67870,`R`],[67871,67871,`ON`],[67872,68096,`R`],[68097,68099,`NSM`],[68100,68100,`R`],[68101,68102,`NSM`],[68103,68107,`R`],[68108,68111,`NSM`],[68112,68151,`R`],[68152,68154,`NSM`],[68155,68158,`R`],[68159,68159,`NSM`],[68160,68324,`R`],[68325,68326,`NSM`],[68327,68408,`R`],[68409,68415,`ON`],[68416,68863,`R`],[68864,68899,`AL`],[68900,68903,`NSM`],[68904,68911,`AL`],[68912,68921,`AN`],[68922,68927,`AL`],[68928,68937,`AN`],[68938,68968,`R`],[68969,68973,`NSM`],[68974,68974,`ON`],[68975,69215,`R`],[69216,69246,`AN`],[69247,69290,`R`],[69291,69292,`NSM`],[69293,69311,`R`],[69312,69327,`AL`],[69328,69336,`ON`],[69337,69369,`AL`],[69370,69375,`NSM`],[69376,69423,`R`],[69424,69445,`AL`],[69446,69456,`NSM`],[69457,69487,`AL`],[69488,69505,`R`],[69506,69509,`NSM`],[69510,69631,`R`],[69633,69633,`NSM`],[69688,69702,`NSM`],[69714,69733,`ON`],[69744,69744,`NSM`],[69747,69748,`NSM`],[69759,69761,`NSM`],[69811,69814,`NSM`],[69817,69818,`NSM`],[69826,69826,`NSM`],[69888,69890,`NSM`],[69927,69931,`NSM`],[69933,69940,`NSM`],[70003,70003,`NSM`],[70016,70017,`NSM`],[70070,70078,`NSM`],[70089,70092,`NSM`],[70095,70095,`NSM`],[70191,70193,`NSM`],[70196,70196,`NSM`],[70198,70199,`NSM`],[70206,70206,`NSM`],[70209,70209,`NSM`],[70367,70367,`NSM`],[70371,70378,`NSM`],[70400,70401,`NSM`],[70459,70460,`NSM`],[70464,70464,`NSM`],[70502,70508,`NSM`],[70512,70516,`NSM`],[70587,70592,`NSM`],[70606,70606,`NSM`],[70608,70608,`NSM`],[70610,70610,`NSM`],[70625,70626,`NSM`],[70712,70719,`NSM`],[70722,70724,`NSM`],[70726,70726,`NSM`],[70750,70750,`NSM`],[70835,70840,`NSM`],[70842,70842,`NSM`],[70847,70848,`NSM`],[70850,70851,`NSM`],[71090,71093,`NSM`],[71100,71101,`NSM`],[71103,71104,`NSM`],[71132,71133,`NSM`],[71219,71226,`NSM`],[71229,71229,`NSM`],[71231,71232,`NSM`],[71264,71276,`ON`],[71339,71339,`NSM`],[71341,71341,`NSM`],[71344,71349,`NSM`],[71351,71351,`NSM`],[71453,71453,`NSM`],[71455,71455,`NSM`],[71458,71461,`NSM`],[71463,71467,`NSM`],[71727,71735,`NSM`],[71737,71738,`NSM`],[71995,71996,`NSM`],[71998,71998,`NSM`],[72003,72003,`NSM`],[72148,72151,`NSM`],[72154,72155,`NSM`],[72160,72160,`NSM`],[72193,72198,`NSM`],[72201,72202,`NSM`],[72243,72248,`NSM`],[72251,72254,`NSM`],[72263,72263,`NSM`],[72273,72278,`NSM`],[72281,72283,`NSM`],[72330,72342,`NSM`],[72344,72345,`NSM`],[72544,72544,`NSM`],[72546,72548,`NSM`],[72550,72550,`NSM`],[72752,72758,`NSM`],[72760,72765,`NSM`],[72850,72871,`NSM`],[72874,72880,`NSM`],[72882,72883,`NSM`],[72885,72886,`NSM`],[73009,73014,`NSM`],[73018,73018,`NSM`],[73020,73021,`NSM`],[73023,73029,`NSM`],[73031,73031,`NSM`],[73104,73105,`NSM`],[73109,73109,`NSM`],[73111,73111,`NSM`],[73459,73460,`NSM`],[73472,73473,`NSM`],[73526,73530,`NSM`],[73536,73536,`NSM`],[73538,73538,`NSM`],[73562,73562,`NSM`],[73685,73692,`ON`],[73693,73696,`ET`],[73697,73713,`ON`],[78912,78912,`NSM`],[78919,78933,`NSM`],[90398,90409,`NSM`],[90413,90415,`NSM`],[92912,92916,`NSM`],[92976,92982,`NSM`],[94031,94031,`NSM`],[94095,94098,`NSM`],[94178,94178,`ON`],[94180,94180,`NSM`],[113821,113822,`NSM`],[113824,113827,`BN`],[117760,117973,`ON`],[118e3,118009,`EN`],[118010,118012,`ON`],[118016,118451,`ON`],[118458,118480,`ON`],[118496,118512,`ON`],[118528,118573,`NSM`],[118576,118598,`NSM`],[119143,119145,`NSM`],[119155,119162,`BN`],[119163,119170,`NSM`],[119173,119179,`NSM`],[119210,119213,`NSM`],[119273,119274,`ON`],[119296,119361,`ON`],[119362,119364,`NSM`],[119365,119365,`ON`],[119552,119638,`ON`],[120513,120513,`ON`],[120539,120539,`ON`],[120571,120571,`ON`],[120597,120597,`ON`],[120629,120629,`ON`],[120655,120655,`ON`],[120687,120687,`ON`],[120713,120713,`ON`],[120745,120745,`ON`],[120771,120771,`ON`],[120782,120831,`EN`],[121344,121398,`NSM`],[121403,121452,`NSM`],[121461,121461,`NSM`],[121476,121476,`NSM`],[121499,121503,`NSM`],[121505,121519,`NSM`],[122880,122886,`NSM`],[122888,122904,`NSM`],[122907,122913,`NSM`],[122915,122916,`NSM`],[122918,122922,`NSM`],[123023,123023,`NSM`],[123184,123190,`NSM`],[123566,123566,`NSM`],[123628,123631,`NSM`],[123647,123647,`ET`],[124140,124143,`NSM`],[124398,124399,`NSM`],[124643,124643,`NSM`],[124646,124646,`NSM`],[124654,124655,`NSM`],[124661,124661,`NSM`],[124928,125135,`R`],[125136,125142,`NSM`],[125143,125251,`R`],[125252,125258,`NSM`],[125259,126063,`R`],[126064,126143,`AL`],[126144,126207,`R`],[126208,126287,`AL`],[126288,126463,`R`],[126464,126703,`AL`],[126704,126705,`ON`],[126706,126719,`AL`],[126720,126975,`R`],[126976,127019,`ON`],[127024,127123,`ON`],[127136,127150,`ON`],[127153,127167,`ON`],[127169,127183,`ON`],[127185,127221,`ON`],[127232,127242,`EN`],[127243,127247,`ON`],[127279,127279,`ON`],[127338,127343,`ON`],[127405,127405,`ON`],[127584,127589,`ON`],[127744,128728,`ON`],[128732,128748,`ON`],[128752,128764,`ON`],[128768,128985,`ON`],[128992,129003,`ON`],[129008,129008,`ON`],[129024,129035,`ON`],[129040,129095,`ON`],[129104,129113,`ON`],[129120,129159,`ON`],[129168,129197,`ON`],[129200,129211,`ON`],[129216,129217,`ON`],[129232,129240,`ON`],[129280,129623,`ON`],[129632,129645,`ON`],[129648,129660,`ON`],[129664,129674,`ON`],[129678,129734,`ON`],[129736,129736,`ON`],[129741,129756,`ON`],[129759,129770,`ON`],[129775,129784,`ON`],[129792,129938,`ON`],[129940,130031,`ON`],[130032,130041,`EN`],[130042,130042,`ON`],[131070,131071,`BN`],[196606,196607,`BN`],[262142,262143,`BN`],[327678,327679,`BN`],[393214,393215,`BN`],[458750,458751,`BN`],[524286,524287,`BN`],[589822,589823,`BN`],[655358,655359,`BN`],[720894,720895,`BN`],[786430,786431,`BN`],[851966,851967,`BN`],[917502,917759,`BN`],[917760,917999,`NSM`],[918e3,921599,`BN`],[983038,983039,`BN`],[1048574,1048575,`BN`],[1114110,1114111,`BN`]];function Zt(e){if(e<=255)return Yt[e];let t=0,n=Xt.length-1;for(;t<=n;){let r=t+n>>1,i=Xt[r];if(ei[1]){t=r+1;continue}return i[2]}return`L`}function Qt(e){let t=e.length;if(t===0)return null;let n=Array(t),r=!1;for(let i=0;i=55296&&a<=56319&&i+1=56320&&t<=57343&&(o=(a-55296<<10)+(t-56320)+65536,s=2)}let c=Zt(o);(c===`R`||c===`AL`||c===`AN`)&&(r=!0);for(let e=0;e=0&&n[r]===`ET`;r--)n[r]=`EN`;for(r=e+1;r0?n[e-1]:s,a=r0&&t.charCodeAt(t.length-1)===32&&(t=t.slice(0,-1)),t}function an(e){return/[\r\f]/.test(e)?e.replace(/\r\n/g,` +`).replace(/[\r\f]/g,` +`):e}var on=null,sn;function cn(){return on===null&&(on=new Intl.Segmenter(sn,{granularity:`word`})),on}function ln(){on=null}var un=/\p{Script=Arabic}/u,q=/\p{M}/u,dn=/\p{Nd}/u;function fn(e){return un.test(e)}function pn(e){return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=177983||e>=177984&&e<=178207||e>=178208&&e<=183983||e>=183984&&e<=191471||e>=191472&&e<=192093||e>=194560&&e<=195103||e>=196608&&e<=201551||e>=201552&&e<=205743||e>=205744&&e<=210041||e>=63744&&e<=64255||e>=12288&&e<=12351||e>=12352&&e<=12447||e>=12448&&e<=12543||e>=12592&&e<=12687||e>=44032&&e<=55215||e>=65280&&e<=65519}function J(e){for(let t=0;t=55296&&n<=56319&&t+1=56320&&r<=57343){if(pn((n-55296<<10)+(r-56320)+65536))return!0;t++;continue}}if(pn(n))return!0}}return!1}function mn(e){let t=jn(e);return t!==null&&(bn.has(t)||Y.has(t))}var hn=new Set([`\xA0`,` `,`⁠`,``]),gn=new Set([`-`,`‐`,`–`,`—`]);function _n(e){let t=jn(e);return t!==null&&hn.has(t)}function vn(e){let t=jn(e);return t!==null&&gn.has(t)}function yn(e,t){return _n(e)?!1:t?!(mn(e)||vn(e)):!0}var bn=new Set(`,...!.:.;.?.、.。.・.).〕.〉.》.」.』.】.〗.〙.〛.ー.々.〻.ゝ.ゞ.ヽ.ヾ`.split(`.`)),xn=new Set([`"`,`(`,`[`,`{`,`¡`,`¿`,`“`,`‘`,`‚`,`„`,`«`,`‹`,`⸘`,`(`,`〔`,`〈`,`《`,`「`,`『`,`【`,`〖`,`〘`,`〚`]),Sn=new Set([`'`,`’`]),Y=new Set(`.(,(!(?(:(;(،(؛(؟(।(॥(၊(။(၌(၍(၏()(](}(%("(”(’(»(›(…`.split(`(`)),Cn=new Set([`:`,`.`,`،`,`؛`]),wn=new Set([`၏`]),Tn=new Set([`”`,`’`,`»`,`›`,`」`,`』`,`】`,`》`,`〉`,`〕`,`)`]);function En(e){if(kn(e))return!0;let t=!1;for(let n of e){if(Y.has(n)||In(n)){t=!0;continue}if(!(t&&q.test(n)))return!1}return t}function Dn(e){for(let t of e)if(!bn.has(t)&&!Y.has(t))return!1;return e.length>0}function On(e){if(kn(e))return!0;for(let t of e)if(!xn.has(t)&&!Sn.has(t)&&!q.test(t)&&!In(t))return!1;return e.length>0}function kn(e){let t=!1;for(let n of e)if(!(n===`\\`||q.test(n))){if(xn.has(n)||Y.has(n)||Sn.has(n)){t=!0;continue}return!1}return t}function An(e,t){let n=t-1;if(n<=0)return Math.max(n,0);let r=e.charCodeAt(n);if(r<56320||r>57343)return n;let i=n-1;if(i<0)return n;let a=e.charCodeAt(i);return a>=55296&&a<=56319?i:n}function jn(e){if(e.length===0)return null;let t=An(e,e.length);return e.slice(t)}function Mn(e){for(let t of e)if(!q.test(t))return t;return null}function Nn(e){for(let t=e.length;t>0;){let n=An(e,t),r=e.slice(n,t);if(!q.test(r))return r;t=n}return null}var Pn=[36,37,43,43,92,92,162,165,176,177,1423,1423,1545,1547,1642,1642,2046,2047,2546,2547,2553,2555,2801,2801,3065,3065,3449,3449,3647,3647,6107,6107,8240,8247,8279,8279,8352,8399,8451,8451,8457,8457,8470,8470,8722,8723,43064,43064,65020,65020,65129,65130,65284,65285,65504,65505,65509,65510,73693,73696,123647,123647,126124,126124,126128,126128];function Fn(e,t){for(let n=0;n=t[n]&&e<=t[n+1])return!0;return!1}function In(e){let t=e.codePointAt(0);return t!==void 0&&Fn(t,Pn)}function Ln(e){let t=Nn(e);return t!==null&&In(t)}function Rn(e){let t=Mn(e);return t!==null&&dn.test(t)}function zn(e){let t=Array.from(e),n=t.length;for(;n>0;){let e=t[n-1];if(q.test(e)){n--;continue}if(xn.has(e)||Sn.has(e)){n--;continue}break}return n<=0||n===t.length?null:{head:t.slice(0,n).join(``),tail:t.slice(n).join(``)}}function Bn(e,t,n){return n===`text`&&!t&&e.length===1&&e!==`-`&&e!==`—`?e:null}function Vn(e,t,n,r){let i=t[r],a=e[r];if(i==null)return a;let o=n[r];if(a.length===o)return a;let s=i.repeat(o);return e[r]=s,s}function Hn(e,t){return e&&t!==null&&Cn.has(t)}function Un(e){let t=jn(e);return t!==null&&wn.has(t)}function Wn(e){if(e.length<2||e[0]!==` `)return null;let t=e.slice(1);return/^\p{M}+$/u.test(t)?{space:` `,marks:t}:null}function Gn(e){let t=e.length;for(;t>0;){let n=An(e,t),r=e.slice(n,t);if(Tn.has(r))return!0;if(!Y.has(r))return!1;t=n}return!1}function Kn(e,t){if(t.preserveOrdinarySpaces||t.preserveHardBreaks){if(e===` `)return`preserved-space`;if(e===` `)return`tab`;if(t.preserveHardBreaks&&e===` +`)return`hard-break`}return e===` `?`space`:e===`\xA0`||e===` `||e===`⁠`||e===``?`glue`:e===`​`?`zero-width-break`:e===`­`?`soft-hyphen`:`text`}var qn=/[\x20\t\n\xA0\xAD\u200B\u202F\u2060\uFEFF]/;function X(e){return e.length===1?e[0]:e.join(``)}function Jn(e,t){let n=[];for(let t=e.length-1;t>=0;t--)n.push(e[t]);return n.push(t),X(n)}function Yn(e,t,n,r){if(!qn.test(e))return[{text:e,isWordLike:t,kind:`text`,start:n}];let i=[],a=null,o=[],s=n,c=!1,l=0;for(let u of e){let e=Kn(u,r),d=e===`text`&&t;if(a!==null&&e===a&&d===c){o.push(u),l+=u.length;continue}a!==null&&i.push({text:X(o),isWordLike:c,kind:a,start:s}),a=e,o=[u],s=n+l,c=d,l+=u.length}return a!==null&&i.push({text:X(o),isWordLike:c,kind:a,start:s}),i}function Xn(e){return e===`space`||e===`preserved-space`||e===`zero-width-break`||e===`hard-break`}var Zn=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function Qn(e,t){let n=e.texts[t];return n.startsWith(`www.`)?!0:Zn.test(n)&&t+1=e.len||Xn(e.kinds[s]))continue;let c=[],l=e.starts[s],u=s;for(;u0&&(t.push(X(c)),n.push(!0),r.push(`text`),i.push(l),a=u-1)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}var nr=new Set([`:`,`-`,`/`,`×`,`,`,`.`,`+`,`–`,`—`]),rr=new Set([`.`,`,`,`:`,`;`]);function ir(e){for(let t=e.length;t>0;){let n=An(e,t),r=e.slice(n,t);if(q.test(r)){t=n;continue}return rr.has(r)||In(r)}return!1}function ar(e,t){return t&&!J(e)}function or(e){for(let t of e)if(dn.test(t))return!0;return!1}function sr(e){if(e.length===0)return!1;for(let t of e)if(!(dn.test(t)||nr.has(t)))return!1;return!0}function cr(e){let t=[],n=[],r=[],i=[];for(let a=0;a1;for(let e=0;e0&&c[S]===`text`&&_&&f[S]&&m[S]||n&&i>0&&c[S]===`text`&&Dn(e.text)&&f[S]||n&&i>0&&c[S]===`text`&&h[S]?C():n&&i>0&&c[S]===`text`&&e.isWordLike&&v&&g[S]?(C(),s[S]=!0):r!==null&&i>0&&c[S]===`text`&&u[S]===r?d[S]=(d[S]??1)+1:n&&!e.isWordLike&&i>0&&c[S]===`text`&&!f[S]&&(En(e.text)||e.text===`-`&&s[S])?C():(a[i]=e.text,o[i]=[e.text],s[i]=e.isWordLike,c[i]=e.kind,l[i]=e.start,u[i]=r,d[i]=r===null?0:1,f[i]=_,p[i]=v,m[i]=b,h[i]=x,g[i]=Hn(v,y),i++)}for(let e=0;enull),v=-1;for(let e=i-1;e>=0;e--){let t=a[e];if(t.length!==0){if(c[e]===`text`&&!s[e]&&v>=0&&c[v]===`text`&&(On(t)||t===`-`&&Rn(a[v]))){let n=_[v]??[];n.push(t),_[v]=n,l[v]=l[e],a[e]=``;continue}v=e}}for(let e=0;e=0&&!yn(t.texts[e-1],n)&&d(e),s<0&&(s=e),c||=J(l);continue}d(e),r.push(l),i.push(t.isWordLike[e]),a.push(u),o.push(t.starts[e])}return d(t.len),{len:r.length,texts:r,isWordLike:i,kinds:a,starts:o}}function gr(e,t,n=`normal`,r=`normal`){let i=nn(n),a=i.mode===`pre-wrap`?an(e):rn(e);if(a.length===0)return{normalized:a,chunks:[],len:0,texts:[],isWordLike:[],kinds:[],starts:[]};let o=pr(a,t,i),s=r===`keep-all`?hr(a,o,t.breakKeepAllAfterPunctuation):o;return{normalized:a,chunks:mr(s,i),...s}}var Z=null,_r=new Map,vr=null,yr=96,br=/\p{Emoji_Presentation}/u,xr=/[\p{Emoji_Presentation}\p{Extended_Pictographic}\p{Regional_Indicator}\uFE0F\u20E3]/u,Sr=null,Cr=new Map;function wr(){if(Z!==null)return Z;if(typeof OffscreenCanvas<`u`)return Z=new OffscreenCanvas(1,1).getContext(`2d`),Z;if(typeof document<`u`)return Z=document.createElement(`canvas`).getContext(`2d`),Z;throw Error(`Text measurement requires OffscreenCanvas or a DOM canvas context.`)}function Tr(e){let t=_r.get(e);return t||(t=new Map,_r.set(e,t)),t}function Q(e,t){let n=t.get(e);return n===void 0&&(n={width:wr().measureText(e).width,containsCJK:J(e)},t.set(e,n)),n}function Er(){if(vr!==null)return vr;if(typeof navigator>`u`)return vr={lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,breakKeepAllAfterPunctuation:!0,preferPrefixWidthsForBreakableRuns:!1,preferEarlySoftHyphenBreak:!1},vr;let e=navigator.userAgent,t=navigator.vendor===`Apple Computer, Inc.`&&e.includes(`Safari/`)&&!e.includes(`Chrome/`)&&!e.includes(`Chromium/`)&&!e.includes(`CriOS/`)&&!e.includes(`FxiOS/`)&&!e.includes(`EdgiOS/`),n=e.includes(`Chrome/`)||e.includes(`Chromium/`)||e.includes(`CriOS/`)||e.includes(`Edg/`);return vr={lineFitEpsilon:t?1/64:.005,carryCJKAfterClosingQuote:n,breakKeepAllAfterPunctuation:!t,preferPrefixWidthsForBreakableRuns:t,preferEarlySoftHyphenBreak:t},vr}function Dr(e){let t=e.match(/(\d+(?:\.\d+)?)\s*px/);return t?parseFloat(t[1]):16}function Or(){return Sr===null&&(Sr=new Intl.Segmenter(void 0,{granularity:`grapheme`})),Sr}function kr(e){return br.test(e)||e.includes(`️`)}function Ar(e){return xr.test(e)}function jr(e,t){let n=Cr.get(e);if(n!==void 0)return n;let r=wr();r.font=e;let i=r.measureText(`😀`).width;if(n=0,i>t+.5&&typeof document<`u`&&document.body!==null){let t=document.createElement(`span`);t.style.font=e,t.style.display=`inline-block`,t.style.visibility=`hidden`,t.style.position=`absolute`,t.textContent=`😀`,document.body.appendChild(t);let r=t.getBoundingClientRect().width;document.body.removeChild(t),i-r>.5&&(n=i-r)}return Cr.set(e,n),n}function Mr(e){let t=0,n=Or();for(let r of n.segment(e))kr(r.segment)&&t++;return t}function Nr(e,t){return t.emojiCount===void 0&&(t.emojiCount=Mr(e)),t.emojiCount}function $(e,t,n){return n===0?t.width:t.width-Nr(e,t)*n}function Pr(e,t,n,r,i){if(t.breakableFitAdvances!==void 0&&t.breakableFitMode===i)return t.breakableFitAdvances;t.breakableFitMode=i;let a=Or(),o=[];for(let t of a.segment(e))o.push(t.segment);if(o.length<=1)return t.breakableFitAdvances=null,t.breakableFitAdvances;if(i===`sum-graphemes`){let e=[];for(let t of o){let i=Q(t,n);e.push($(t,i,r))}return t.breakableFitAdvances=e,t.breakableFitAdvances}if(i===`pair-context`||o.length>yr){let e=[],i=null,a=0;for(let t of o){let o=$(t,Q(t,n),r);if(i===null)e.push(o);else{let o=i+t,s=Q(o,n);e.push($(o,s,r)-a)}i=t,a=o}return t.breakableFitAdvances=e,t.breakableFitAdvances}let s=[],c=``,l=0;for(let e of o){c+=e;let t=Q(c,n),i=$(c,t,r);s.push(i-l),l=i}return t.breakableFitAdvances=s,t.breakableFitAdvances}function Fr(e,t){let n=wr();n.font=e;let r=Tr(e),i=Dr(e);return{cache:r,fontSize:i,emojiCorrection:t?jr(e,i):0}}function Ir(){_r.clear(),Cr.clear(),Sr=null}function Lr(e){return e===`space`||e===`zero-width-break`||e===`soft-hyphen`}function Rr(e){return e===`space`||e===`preserved-space`||e===`tab`||e===`zero-width-break`||e===`soft-hyphen`}function zr(e,t,n=e.widths.length){for(;t0?e.letterSpacing:0}function Hr(e,t){return t===0?0:e+t}function Ur(e,t){return e.letterSpacing!==0&&e.spacingGraphemeCounts[t]>0?e.letterSpacing:0}function Wr(e,t,n,r,i){return Hr(r,t===`tab`?i+Ur(e,n):e.lineEndFitAdvances[n])}function Gr(e,t,n,r){return Hr(r,t===`tab`?0:e.lineEndFitAdvances[n])}function Kr(e,t,n,r,i){return Hr(r,t===`tab`?i:e.lineEndPaintAdvances[n])}function qr(e,t,n){return e.letterSpacing!==0&&t?n+e.letterSpacing:n}function Jr(e,t){return e.letterSpacing===0?t:t+e.letterSpacing}function Yr(e,t,n,r,i){if(e.letterSpacing===0)return 0;if(i>0)return e.spacingGraphemeCounts[r]>0?e.letterSpacing:0;for(let i=r-1;i>=t;i--){let a=e.kinds[i];if(!(a===`space`||a===`zero-width-break`||a===`hard-break`)){if(a===`soft-hyphen`){if(i===r-1)return 0;continue}return i===t&&n>0||e.spacingGraphemeCounts[i]>0?e.letterSpacing:0}}return 0}function Xr(e,t,n,r,i,a){return t+Yr(e,n,r,i,a)}function Zr(e,t,n){let{widths:r,kinds:i,breakableFitAdvances:a}=e;if(r.length===0)return 0;let o=t+Er().lineFitEpsilon,s=0,c=0,l=!1,u=0,d=0,f=0,p=0,m=-1,h=0;function g(){m=-1,h=0}function _(e=f,t=p,r=c){s++,n?.(r,u,d,e,t),c=0,l=!1,g()}function v(e,t){l=!0,u=e,d=0,f=e+1,p=0,c=t}function y(e,t,n){l=!0,u=e,d=t,f=e,p=t+1,c=n}function b(e,t){if(!l){v(e,t);return}c+=t,f=e+1,p=0}function x(e,t){let n=a[e];for(let r=t;ro?(_(),y(e,r,t)):(c+=t,f=e,p=r+1):y(e,r,t)}l&&f===e&&p===n.length&&(f=e+1,p=0)}let S=0;for(;S=r.length));){let e=r[S],t=i[S],n=Rr(t);if(!l){e>o&&a[S]!==null?x(S,0):v(S,e),n&&(m=S+1,h=c-e),S++;continue}if(c+e>o){if(n){b(S,e),_(S+1,0,c-e),S++;continue}if(m>=0){if(f>m||f===m&&p>0){_();continue}_(m,0,h);continue}if(e>o&&a[S]!==null){_(),x(S,0),S++;continue}_();continue}b(S,e),n&&(m=S+1,h=c-e),S++}return l&&_(),s}function Qr(e,t,n){if(e.simpleLineWalkFastPath)return Zr(e,t,n);let{widths:r,kinds:i,breakableFitAdvances:a,discretionaryHyphenWidth:o,chunks:s}=e;if(r.length===0||s.length===0)return 0;let c=Er(),l=t+c.lineFitEpsilon,u=0,d=0,f=!1,p=0,m=0,h=0,g=0,_=-1,v=0,y=0,b=null;function x(){_=-1,v=0,y=0,b=null}function S(){return b===`soft-hyphen`&&_===h&&g===0?y:d}function C(t=h,r=g,i){u++,n!==void 0&&n(Xr(e,i??S(),p,m,t,r),p,m,t,r),d=0,f=!1,x()}function w(e,t){f=!0,p=e,m=0,h=e+1,g=0,d=t}function T(e,t,n){f=!0,p=e,m=t,h=e,g=t+1,d=n}function E(e,t){if(!f){w(e,t);return}d+=t,h=e+1,g=0}function D(t,n,r,i,a,o){if(!n)return;let s=Gr(e,t,r,a),c=Kr(e,t,r,a,i);_=r+1,v=d-o+s,y=d-o+c,b=t}function O(t,n){let r=a[t];for(let i=n;il?(C(),T(t,i,n)):(d=a,h=t,g=i+1)}}f&&h===t&&g===r.length&&(h=t+1,g=0)}function k(e){u++,n?.(0,e.startSegmentIndex,0,e.consumedEndSegmentIndex,0),x()}for(let t=0;t=n.endSegmentIndex));){let t=i[u],n=Rr(t),s=Vr(e,f,u),p=t===`tab`?Br(d+s,e.tabStopAdvance):r[u],m=s+p,x=Wr(e,t,u,s,p);if(t===`soft-hyphen`){f&&(h=u+1,g=0,_=u+1,v=d+o,y=d+o,b=t),u++;continue}if(!f){x>l&&a[u]!==null?O(u,0):w(u,p),D(t,n,u,p,s,m),u++;continue}if(d+x>l){let r=d+Gr(e,t,u,s),i=d+Kr(e,t,u,s,p);if(b===`soft-hyphen`&&c.preferEarlySoftHyphenBreak&&v<=l){C(_,0,y);continue}if(n&&r<=l){E(u,m),C(u+1,0,i),u++;continue}if(_>=0&&v<=l){if(h>_||h===_&&g>0){C();continue}let e=_;C(e,0,y),u=e;continue}if(x>l&&a[u]!==null){C(),O(u,0),u++;continue}C();continue}E(u,m),D(t,n,u,p,s,m),u++}if(f){let e=_===n.consumedEndSegmentIndex?y:d;C(n.consumedEndSegmentIndex,0,e)}}return u}var $r=null;function ei(){return $r===null&&($r=new Intl.Segmenter(void 0,{granularity:`grapheme`})),$r}function ti(e){return e?{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[],segments:[]}:{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[]}}function ni(e,t){let n=[],r=[],i=0,a=!1,o=!1,s=!1;function c(){r.length!==0&&(n.push({text:r.length===1?r[0]:r.join(``),start:i}),r=[],a=!1,o=!1,s=!1)}function l(e,t,n){r=[e],i=t,a=n,o=Gn(e),s=xn.has(e)}function u(e,t){r.push(e),a||=t;let n=Gn(e);e.length===1&&Y.has(e)?o||=n:o=n,s=!1}for(let n of ei().segment(e)){let e=n.segment,i=J(e);if(r.length===0){l(e,n.index,i);continue}if(s||bn.has(e)||Y.has(e)||t.carryCJKAfterClosingQuote&&i&&o){u(e,i);continue}if(!a&&!i){u(e,i);continue}c(),l(e,n.index,i)}return c(),n}function ri(e,t,n){if(t.length<=1)return t;let r=[],i=-1,a=!1;function o(n,i){let a=t[n].start,o=i=0&&!yn(t[e-1].text,n)&&s(e),i<0&&(i=e),a||=J(r.text)}return s(t.length),r}function ii(e,t){if(t===`zero-width-break`||t===`soft-hyphen`||t===`hard-break`)return 0;if(t===`tab`)return 1;let n=0,r=ei();for(let t of r.segment(e))n++;return n}function ai(e,t,n){return t>1?e+(t-1)*n:e}function oi(e,t,n,r,i){let a=Er(),{cache:o,emojiCorrection:s}=Fr(t,Ar(e.normalized)),c=$(`-`,Q(`-`,o),s)+(i===0?0:i*2),l=$(` `,Q(` `,o),s)*8,u=i!==0;if(e.len===0)return ti(n);let d=[],f=[],p=[],m=[],h=e.chunks.length<=1&&!u,g=n?[]:null,_=[],v=[],y=n?[]:null,b=Array.from({length:e.len});function x(e,t,n,r,i,a,o,s){i!==`text`&&i!==`space`&&i!==`zero-width-break`&&(h=!1),d.push(t),f.push(n),p.push(r),m.push(i),g?.push(a),_.push(o),u&&v.push(s),y!==null&&y.push(e)}function S(e,t,n,r,c){let l=Q(e,o),d=u?ii(e,t):0,f=ai($(e,l,s),d,i),p=t===`space`||t===`preserved-space`||t===`zero-width-break`?0:f,m=p===0?0:p+(d>0?i:0),h=t===`space`||t===`zero-width-break`?0:f;if(c&&r&&e.length>1){let r=`sum-graphemes`;i===0?sr(e)?r=`pair-context`:a.preferPrefixWidthsForBreakableRuns&&(r=`segment-prefixes`):r=`segment-prefixes`,x(e,f,m,h,t,n,Pr(e,l,o,s,r),d);return}x(e,f,m,h,t,n,null,d)}for(let t=0;t{e>t&&(t=e)}),t}function fi(){ln(),$r=null,Ir()}var pi=Be({cdnList:Ie,fallback:{},path:e=>`colors/${ze[e]}.json`});function mi(e,t){let n=Fe(t).replace(/\s+/g,`-`),[r,i]=(0,W.useState)(()=>pi.get(e)?.[n]);return(0,W.useEffect)(()=>{let t=!1;if(!n){i(void 0);return}return Promise.all([Re(e,n),pi.load(e)]).then(([e,n])=>{if(!t){let t=Fe(e).replace(/\s+/g,`-`);i(n?.[t])}}),()=>{t=!0}},[n,e]),r}function hi(e){if(e)return{background:`rgba(${e.r}, ${e.g}, ${e.b}, 0.16)`,color:`rgb(${e.r} ${e.g} ${e.b})`}}function gi({className:e,displayName:t,label:n,name:r,type:i}){let a=mi(i,r),o=n??(i===`network`?Le(r,t):r);return(0,K.jsxs)(`span`,{className:ue(`inline-flex min-w-0 items-center gap-1 rounded-full px-2 py-0.5`,e),style:hi(a),children:[(0,K.jsx)(Ve,{alt:``,className:`size-4 shrink-0 rounded-full`,height:16,name:r,type:i,width:16}),(0,K.jsx)(`span`,{className:`truncate font-semibold text-xs`,children:o})]})}function _i({className:e,displayName:t,network:n}){return(0,K.jsx)(gi,{className:e,displayName:t,name:n,type:`network`})}var vi=36,yi=1,bi=`700 ${vi}px "Nunito Variable"`,xi={wordBreak:`keep-all`},Si=`\xA0`;function Ci({activeNetwork:e,activeNetworkDisplayName:t,amountMode:n,onCopyAmount:r,order:i,tradeId:a}){let o=n===`payment`?Oi(i):Di(i);return(0,K.jsxs)(`section`,{className:`mb-4 w-full rounded-2xl border bg-card px-6 pt-6 pb-5 text-card-foreground shadow-md`,children:[(0,K.jsx)(`p`,{className:`mb-1 font-medium text-muted-foreground text-sm`,children:n===`payment`?ae():D()}),(0,K.jsxs)(`div`,{className:`flex items-end justify-between gap-3`,children:[(0,K.jsx)(wi,{children:o}),(0,K.jsx)(It,{onClick:r})]}),n===`payment`&&e?(0,K.jsx)(_i,{className:`mt-2`,displayName:t,network:e??``}):null,(0,K.jsx)(`div`,{className:`mt-3 border-border/50 border-t pt-3`,children:(0,K.jsx)(`table`,{className:`w-full border-separate border-spacing-y-1 text-muted-foreground text-sm`,children:(0,K.jsxs)(`tbody`,{children:[n===`payment`?(0,K.jsxs)(`tr`,{children:[(0,K.jsx)(`td`,{className:`w-px whitespace-nowrap pr-3`,children:D()}),(0,K.jsx)(`td`,{className:`whitespace-nowrap font-medium text-card-foreground`,children:Di(i)})]}):null,(0,K.jsxs)(`tr`,{children:[(0,K.jsx)(`td`,{className:`w-px whitespace-nowrap pr-3`,children:k()}),(0,K.jsx)(`td`,{className:`break-all font-medium text-card-foreground`,children:i?.trade_id??a})]})]})})})]})}function wi({children:e}){let t=Ti(e),n=(0,W.useRef)(null),[r,i]=(0,W.useState)(()=>Ei(t)),[a,o]=(0,W.useState)(vi),s=(0,W.useCallback)(()=>{let e=n.current;if(!e)return;let t=e.clientWidth;if(!(t&&r))return;let i=Math.max(yi,Math.min(vi,vi*t/r));o(e=>Math.abs(e-i)<.5?e:i)},[r]);return(0,W.useLayoutEffect)(()=>{i(Ei(t))},[t]),(0,W.useLayoutEffect)(()=>{s();let e=n.current,t=new ResizeObserver(s);return e&&t.observe(e),()=>{t.disconnect()}},[s]),(0,W.useLayoutEffect)(()=>{let e=!0;return document.fonts?.ready.then(()=>{e&&(fi(),i(Ei(t)))}),()=>{e=!1}},[t]),(0,K.jsx)(`span`,{className:`relative block min-w-0 flex-1 overflow-hidden leading-none`,ref:n,children:(0,K.jsx)(`span`,{className:`block whitespace-nowrap font-bold font-nunito leading-none`,style:{fontSize:a},children:t})})}function Ti(e){return e.replace(/\s+/g,Si)}function Ei(e){return di(li(e,bi,xi))}function Di(e){return e?.amount==null?`--`:ki(e.amount,e.currency)}function Oi(e){let t=e?.actual_amount??e?.amount,n=e?.actual_amount==null?e?.currency:e?.token;return t==null?`--`:ki(t,n)}function ki(e,t){return t?`${e}${Si}${t}`:String(e)}function Ai(e,t){return t===2?e===`payment`||e===`success`||e===`expired`?2:+(e===`select`):e===`payment`||e===`success`||e===`expired`?3:e===`select`?2:+(e===`method`)}function ji({hidden:e,panel:t,totalSteps:n=3}){if(e)return null;let r=Ai(t,n);return(0,K.jsx)(`div`,{className:`mb-4 flex w-full items-center gap-2`,children:Array.from({length:n},(e,t)=>t+1).map(e=>(0,K.jsx)(`div`,{className:`h-1 flex-1 overflow-hidden rounded-full bg-foreground/10`,children:(0,K.jsx)(`div`,{className:ue(`h-full rounded-full bg-foreground transition-all`,r>=e?`w-full`:`w-0`)})},e))})}var Mi=new Set,Ni,Pi=Date.now();function Fi(e){return Pi=Date.now(),Mi.add(e),Ni===void 0&&(Ni=window.setInterval(()=>{Pi=Date.now();for(let e of Mi)e()},1e3)),()=>{Mi.delete(e),Mi.size===0&&Ni!==void 0&&(window.clearInterval(Ni),Ni=void 0)}}function Ii(){return Pi}function Li(e){return(0,W.useSyncExternalStore)(e?Fi:()=>()=>void 0,Ii,Ii)}function Ri({tradeId:e}){let r=le(),i=t.useQuery(`get`,`/pay/checkout-counter-resp/{trade_id}`,{params:{path:{trade_id:e}}},{retry:!1}),a=(0,W.useMemo)(()=>{let e=qe(i.data);return e?nt(e):void 0},[i.data]),o=t.useMutation(`post`,`/pay/switch-network`),s=t.useMutation(`post`,`/pay/submit-tx-hash/{trade_id}`),[l,u]=(0,W.useState)(),[d,f]=(0,W.useState)(),[p,m]=(0,W.useState)(),[h,g]=(0,W.useState)(null),[_,v]=(0,W.useState)(!1),[y,b]=(0,W.useState)(``),x=d??a,w=!!(x?.payment_url||x?.receive_address),T=!!(x?.trade_id&&!w),E=!!(x?.network&&x?.token&&!U(x.network,`okpay`)),D=!!(x?.trade_id&&E&&!Ye(x.is_selected)),O=t.useQuery(`get`,`/payments/gmpay/v1/config`,void 0,{enabled:!!x?.trade_id,retry:!1}),k=(0,W.useMemo)(()=>qe(O.data),[O.data]),A=(0,W.useMemo)(()=>Xe(k).filter(e=>!U(e.network,`okpay`)),[k]),j=(0,W.useMemo)(()=>T||_||D?A:[],[D,_,T,A]),te=(0,W.useMemo)(()=>zi(k?.okpay?.allow_tokens),[k?.okpay?.allow_tokens]),ne=j.length>0,re=!!(k?.okpay?.enabled&&te.length),ie=Number(ne)+Number(re),ae;ie===1&&(ae=ne?`chain`:`okpay`);let M=p??(_||E?`chain`:ae),N=(0,W.useMemo)(()=>M===`okpay`?te:M===`chain`?j:[],[M,te,j]),oe=(0,W.useMemo)(()=>tt(N,x,{network:k?.epay?.default_network,token:k?.epay?.default_token}),[N,x,k]),P=h??oe,F=P?.network??x?.network??``,se=P?.token??x?.token??``,ce=(0,W.useMemo)(()=>{if(M===`okpay`&&k?.okpay?.enabled&&U(F,`tron`)&&[`trx`,`usdt`].includes(String(se).toLowerCase()))return{network:`okpay`,token:se.toUpperCase()}},[M,k,F,se]),I=(0,W.useMemo)(()=>Ke(x?.expiration_time),[x?.expiration_time]),L=(0,W.useMemo)(()=>Ke(x?.created_at),[x?.created_at]),ue=L&&I&&L{if(l)return l;if(i.isPending)return`loading`;if(de){let e=Ge(de);return et.includes(e??0)?`not-found`:`timeout`}if(!x?.trade_id)return`not-found`;if(z<=0&&I)return`expired`;if(T||_){if(O.isPending)return`loading`;if(fe){let e=Ge(fe);return et.includes(e??0)?`not-found`:`timeout`}return M?`select`:`method`}return`payment`},[M,I,_,T,x,de,i.isPending,z,fe,O.isPending,l]),pe=!!x?.trade_id&&!l&&![`loading`,`not-found`,`timeout`].includes(B),V=t.useQuery(`get`,`/pay/check-status/{trade_id}`,{params:{path:{trade_id:x?.trade_id??``}}},{enabled:pe,refetchInterval:({state:e})=>pe&&e.fetchFailureCount<5?Je:!1,retry:!1}),me=qe(V.data)?.status,H=(0,W.useMemo)(()=>me===2?`success`:me===3?`expired`:B===`payment`&&V.failureCount>=5?`timeout`:B,[B,me,V.failureCount]);n({queryKey:[`checkout-redirect`,x?.trade_id,x?.redirect_url],queryFn:async({signal:e})=>(await Qe(We,e),window.location.href=x?.redirect_url,!0),enabled:H===`success`&&!!x?.redirect_url,retry:!1});let he=(0,W.useMemo)(()=>{let e=new Map;for(let t of N){if(!t.network)continue;let n=t.network.toLowerCase();e.has(n)||e.set(n,{network:t.network,displayName:t.displayName})}return Array.from(e.values())},[N]),ge=(0,W.useMemo)(()=>{let e=new Map;for(let t of A)t.network&&t.displayName&&e.set(t.network.toLowerCase(),t.displayName);return e},[A]),_e=(0,W.useMemo)(()=>Array.from(new Set(N.filter(e=>U(e.network,F)).map(e=>e.token))),[N,F]),ve=ue>0?Math.max(0,Math.min(1,z/ue)):0,ye=$e(ve),be=L?Math.max(0,Math.round((R-L.getTime())/1e3)):0,xe=H===`payment`&&be>=10,Se=H===`method`||H===`select`||!w?`order`:`payment`,Ce=e=>e==null||e===``?!1:(0,st.default)(String(e))?(Me.success(ee()),!0):(Me.error(S()),!1),we=(0,W.useCallback)((e,t)=>{if(t&&!t.closed){t.location.href=e,t.focus();return}window.open(e,`okpay_checkout`,`popup,width=480,height=720`)},[]),Te=(0,W.useCallback)(async(e,t)=>{if(!x?.trade_id)return;let n=U(e.network,`okpay`);try{let i=qe(await o.mutateAsync({body:{trade_id:x.trade_id,network:e.network.toLowerCase(),token:e.token.toLowerCase()}}));if(!i)throw Error(Ze);let a=nt(i);if(f({...x,...a,is_selected:a.is_selected??!0,network:a.network??e.network,token:a.token??e.token}),v(!1),n&&a.payment_url){we(a.payment_url,t);return}t?.close(),a.trade_id&&a.trade_id!==x.trade_id&&r({params:{trade_id:a.trade_id},replace:!0,to:`/cashier/$trade_id`}).catch(()=>void 0),u(void 0)}catch(e){t?.close();let n=Ge(e);et.includes(n??0)?u(`not-found`):n===10010?u(`expired`):Me.error(e instanceof Error?e.message:Ze)}},[x,we,r,o]),Ee=async()=>{if(M===`okpay`){await De();return}P&&await Te(P)},De=async()=>{ce&&await Te(ce,window.open(`about:blank`,`okpay_checkout`,`popup,width=480,height=720`))},Oe=()=>{if(u(void 0),x?.trade_id&&x.receive_address){V.refetch();return}i.refetch(),(T||O.isError)&&O.refetch()},ke=()=>{if(x?.redirect_url){window.location.href=x.redirect_url;return}if(document.referrer){window.location.href=document.referrer;return}history.back()},Ae=async()=>{let e=y.trim();if(!(x?.trade_id&&e))return Me.error(c()),!1;try{let t=qe(await s.mutateAsync({body:{block_transaction_id:e},params:{path:{trade_id:x.trade_id}}}));return Me.success(C()),b(``),t?.status===2?(u(`success`),!0):(V.refetch(),!0)}catch(e){let t=Ge(e);return et.includes(t??0)?u(`not-found`):t===10010&&u(`expired`),!1}},je=()=>{m(`chain`),g(null)},Ne=()=>{m(`okpay`),g(te[0]??null)},Pe=()=>{if(_){v(!1);return}m(void 0),g(null)},Fe=()=>{let e=A.find(e=>U(e.network,x?.network)&&U(e.token,x?.token));m(`chain`),g(e??null),v(!0)},Ie=e=>{g(N.find(t=>U(t.network,e))??null)},Le=e=>{g(N.find(t=>U(t.network,F)&&U(t.token,e))??null)},Re=M===`okpay`||U(x?.network,`okpay`);return(0,K.jsxs)(`main`,{className:`flex flex-1 flex-col justify-center`,children:[H===`not-found`?null:(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(ji,{hidden:!!(!(_||d)&&w&&E),panel:H,totalSteps:Re||!M?3:2}),(0,K.jsx)(Ci,{activeNetwork:x?.network??F,activeNetworkDisplayName:ge.get((x?.network??F).toLowerCase()),amountMode:Se,onCopyAmount:()=>Ce(Se===`payment`?x?.actual_amount??x?.amount:x?.amount),order:x,tradeId:e})]}),(0,K.jsx)(Jt,{networkOptions:he,onBack:ke,onChangePaymentOption:Fe,onConfirmSelection:Ee,onCopyAddress:()=>Ce(x?.receive_address),onNetworkChange:Ie,onRetry:Oe,onReturnToMethods:Pe,onSelectChainPayment:je,onSelectOkpayPayment:Ne,onSubmitTxHash:Ae,onTokenChange:Le,onTxHashChange:b,order:x,panel:H,remaining:z,selectedNetwork:F,selectedOption:P??void 0,selectedPaymentMethod:M,selectedToken:se,showChainPayment:ne,showChangePaymentOption:D&&H===`payment`&&!U(x?.network,`okpay`),showOkpay:re,showReturnToMethods:!!p&&ie>1,showTxHashSubmit:xe,submitting:o.isPending,submittingTxHash:s.isPending,timeColor:ye,timerRatio:ve,tokenOptions:_e,txHash:y})]})}function zi(e){return Array.from(new Set((e??[]).map(e=>e.trim().toUpperCase()).filter(e=>[`TRX`,`USDT`].includes(e)))).map(e=>({network:`tron`,token:e,displayName:`TRON`}))}function Bi(){let{trade_id:e}=Ne.useParams();return(0,K.jsx)(Ri,{tradeId:e},e)}export{Bi as component}; \ No newline at end of file diff --git a/src/www/assets/_trade_id-DIf2n6tl.js b/src/www/assets/_trade_id-DIf2n6tl.js new file mode 100644 index 0000000..d0fea2e --- /dev/null +++ b/src/www/assets/_trade_id-DIf2n6tl.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_trade_id-CrABgEyD.js","assets/chunk-DECur_0Z.js","assets/button-C_NDYaz8.js","assets/clsx-D9aGYY3V.js","assets/messages-BOatyqUm.js","assets/react-CO2uhaBc.js","assets/select-CzebumOF.js","assets/dist-CsIb2aLK.js","assets/dist-DPPquN_M.js","assets/dist-D4X8zGEB.js","assets/dist-Cc8_LDAq.js","assets/dist-ZdRQQNeu.js","assets/dist-CRowTfGU.js","assets/dist-CHFjpVqk.js","assets/dist-BNFQuJTu.js","assets/dist-rcWP-8Cu.js","assets/es2015-DT8UeWzs.js","assets/dist-BixeH3nX.js","assets/dist-Dtn5c_cx.js","assets/createLucideIcon-Br0Bd5k2.js","assets/check-CHp0nSkR.js","assets/chevron-down-BB5h1CsX.js","assets/auth-store-De4Y7PFV.js","assets/dist-JOUh6qvR.js","assets/with-selector-DBfssCrY.js","assets/cookies-BzZOQYPw.js","assets/useNavigate-7u4DX0Ho.js","assets/useRouter-DtTm7XkK.js","assets/copy-to-clipboard-C1tj4a8X.js","assets/arrow-left-right-CcCrkQiR.js","assets/arrow-left-BpZwGREZ.js","assets/radio-group-D2rceepu.js","assets/dist-C5heX0fx.js","assets/dist-DvwKOQ8R.js","assets/dist-D0DoWChj.js","assets/loader-circle-DpEz1fQv.js","assets/send-BNvceEpO.js","assets/triangle-alert-DB5v_9sS.js","assets/dialog-CZ-2RPb-.js","assets/dist-iiotRAEO.js","assets/crypto-icon-DnliVYVs.js","assets/labels-Cbc2zlmv.js","assets/input-8zzM34r5.js","assets/checkout-model-CQ3aqlob.js"])))=>i.map(i=>d[i]); +import{n as e,t}from"./lazyRouteComponent-JF8ipq5d.js";import{t as n}from"./preload-helper-DoS0eHac.js";var r=e(`/cashier/$trade_id/`)({component:t(()=>n(()=>import(`./_trade_id-CrABgEyD.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43])),`component`)});export{r as t}; \ No newline at end of file diff --git a/src/www/assets/addresses-BOy7duFM.js b/src/www/assets/addresses-CNbxs6Fb.js similarity index 81% rename from src/www/assets/addresses-BOy7duFM.js rename to src/www/assets/addresses-CNbxs6Fb.js index 54e75a7..906d87e 100644 --- a/src/www/assets/addresses-BOy7duFM.js +++ b/src/www/assets/addresses-CNbxs6Fb.js @@ -1,3 +1,3 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{a as t,o as n}from"./auth-store-Csn6HPxJ.js";import{t as r}from"./router-BluvjQRz.js";import{t as i}from"./react-CO2uhaBc.js";import{$o as a,Ao as o,Bo as s,Cs as c,Es as l,Fo as u,Go as d,Ho as f,Io as p,Jo as m,Ko as h,Lo as g,Mo as _,No as ee,Po as v,Qo as y,Ro as b,Ss as x,Ts as S,Uo as C,Vo as te,Wo as w,Xo as T,Yo as E,Zo as D,_s as ne,as as re,bs as ie,cs as O,ds as ae,em as oe,es as se,fs as ce,gs as k,hs as le,is as ue,jo as de,ls as fe,ms as pe,ns as me,os as he,ps as ge,qo as _e,rs as ve,ss as ye,ts as be,us as xe,vs as Se,ws as Ce,xs as we,ys as Te,zo as Ee}from"./messages-Bp0bCjzp.js";import{r as De}from"./route-Bin9ihv_.js";import{o as Oe}from"./search-provider-Bl2HDfcG.js";import{i as ke,t as A}from"./button-BgMnOYKD.js";import{t as Ae}from"./confirm-dialog-YmxNnOr3.js";import{a as je,c as j,l as Me,r as Ne,s as Pe,t as Fe}from"./dropdown-menu-8-hEBtzr.js";import{t as M}from"./label-CQ1eaOwZ.js";import{a as N,i as P,n as F,r as I,t as L}from"./select-C9s05In_.js";import{t as Ie}from"./switch-CVYl00Vs.js";import{a as R,c as Le,d as Re,f as ze,l as Be,n as Ve,o as He,r as Ue,s as We,t as Ge,u as Ke}from"./data-table-C3Nm2K6Z.js";import{t as qe}from"./epusdt-DkhuuUpL.js";import{t as Je}from"./download-fYUtNZ3R.js";import{t as Ye}from"./ellipsis-74ly4-Wm.js";import{t as Xe}from"./eye-off-B8hO0oST.js";import{t as Ze}from"./eye-DAKGLydt.js";import{n as Qe,t as $e}from"./main-DnJ8otd-.js";import{n as et,t as z}from"./chains-store-B0tGSNqG.js";import{n as tt,t as nt}from"./trash-2-9I8lAjeE.js";import{a as rt,i as B,o as V,r as H,s as U,t as W}from"./dialog-BJ5VA2v_.js";import{n as G}from"./dist-BGqHIBUe.js";import{c as K,s as it}from"./zod-rwFXxHlg.js";import{a as q,c as at,i as J,l as ot,n as Y,o as X,s as Z,t as st}from"./form-BhKmyN6D.js";import{t as ct}from"./input-BleRUV2A.js";import{t as lt}from"./page-header-CDwG3nxs.js";import{t as ut}from"./textarea-BaSGKw3a.js";import{t as dt}from"./use-table-url-state-DP0Y4QjR.js";import{t as ft}from"./long-text-fyhANC4b.js";var Q=e(i(),1),$=oe(),pt=it({address:K().min(8,de()),network:K().min(1,o()),remark:K().max(50).optional()});function mt({open:e,onOpenChange:n,currentRow:r,onSuccess:i}){let{chains:a,loading:o}=z(),c=ot({resolver:at(pt),defaultValues:{address:``,network:``,remark:``}}),l=t.useMutation(`post`,`/admin/api/v1/wallets`),d=t.useMutation(`patch`,`/admin/api/v1/wallets/{id}`),h=(0,Q.useMemo)(()=>a.map(e=>e.network).filter(e=>!!e),[a]);(0,Q.useEffect)(()=>{e&&c.reset({address:r?.address??``,network:r?.network??``,remark:r?.remark??``})},[e,r,c]);function y(e){if(r?.id){d.mutate({params:{path:{id:r.id}},body:{remark:e.remark||void 0}},{onSuccess:()=>{G.success(ee()),n(!1),i?.()}});return}l.mutate({body:{address:e.address,network:e.network,remark:e.remark??``}},{onSuccess:()=>{G.success(_()),n(!1),i?.()}})}let x=l.isPending||d.isPending,S=h.length>0,w=o?C():f(),[T,E]=(0,Q.useState)(!1);return(0,$.jsx)(W,{onOpenChange:n,open:e,children:(0,$.jsxs)(H,{children:[(0,$.jsxs)(V,{children:[(0,$.jsx)(U,{children:r?te():s()}),(0,$.jsx)(B,{children:r?Ee():b()})]}),(0,$.jsx)(st,{...c,children:(0,$.jsxs)(`form`,{className:`space-y-4`,onSubmit:c.handleSubmit(y),children:[(0,$.jsx)(J,{control:c.control,name:`network`,render:({field:e})=>(0,$.jsxs)(q,{children:[(0,$.jsx)(X,{children:O()}),(0,$.jsxs)(L,{disabled:!!r||!S,onValueChange:e.onChange,value:e.value,children:[(0,$.jsx)(Y,{children:(0,$.jsx)(P,{className:`w-full`,children:(0,$.jsx)(N,{placeholder:S?ye():w})})}),(0,$.jsx)(F,{children:S?h.map(e=>(0,$.jsx)(I,{value:e,children:e},e)):(0,$.jsx)(`div`,{className:`px-2 py-1.5 text-muted-foreground text-sm`,children:w})})]}),(0,$.jsx)(Z,{})]})}),(0,$.jsx)(J,{control:c.control,name:`address`,render:({field:e})=>(0,$.jsxs)(q,{children:[(0,$.jsx)(X,{children:re()}),(0,$.jsx)(Y,{children:(0,$.jsxs)(`div`,{className:`relative`,children:[(0,$.jsx)(ct,{...e,className:`pr-10`,disabled:!!r,placeholder:g(),type:T?`text`:`password`}),(0,$.jsx)(`button`,{className:`absolute inset-y-0 right-3 flex items-center text-muted-foreground hover:text-foreground`,onClick:()=>E(e=>!e),type:`button`,children:T?(0,$.jsx)(Xe,{className:`h-4 w-4`}):(0,$.jsx)(Ze,{className:`h-4 w-4`})})]})}),(0,$.jsx)(Z,{})]})}),(0,$.jsx)(J,{control:c.control,name:`remark`,render:({field:e})=>(0,$.jsxs)(q,{children:[(0,$.jsx)(X,{children:m()}),(0,$.jsx)(Y,{children:(0,$.jsx)(ct,{...e,placeholder:p()})}),(0,$.jsx)(Z,{})]})}),(0,$.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,$.jsx)(A,{onClick:()=>n(!1),type:`button`,variant:`outline`,children:ue()}),(0,$.jsx)(A,{disabled:x,type:`submit`,children:x?u():v()})]})]})})]})})}function ht(e){return[{id:`status-switch`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:y()}),cell:({row:t})=>(0,$.jsx)(Ie,{checked:t.original.status===1,onCheckedChange:()=>e(t.original.status===1?`disable`:`enable`,t.original)}),enableSorting:!1,enableHiding:!1,meta:{label:y(),skeleton:`switch`,sticky:`left`,th:{className:ke(`rounded-tl-[inherit]`)}}},{accessorKey:`address`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:D()}),cell:({row:e})=>(0,$.jsx)(ft,{className:`font-medium`,children:e.original.address}),enableHiding:!1,meta:{label:D(),skeleton:`long`}},{accessorKey:`network`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:O()}),meta:{label:O(),skeleton:`short`}},{accessorKey:`order_count`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:T()}),meta:{label:T(),skeleton:`id`}},{accessorKey:`source`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:E()}),cell:({row:e})=>e.original.source??`-`,meta:{label:E(),skeleton:`short`}},{accessorKey:`remark`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:m()}),meta:{label:m(),skeleton:`long`}},{accessorKey:`created_at`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:_e()}),cell:({row:e})=>Oe(e.original.created_at),meta:{label:_e(),skeleton:`date`}},{accessorKey:`updated_at`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:h()}),cell:({row:e})=>Oe(e.original.updated_at),meta:{label:h(),skeleton:`date`}},{id:`actions`,enableHiding:!1,meta:{label:d(),skeleton:`action`,sticky:`right`,className:ke(`w-12`)},cell:({row:t})=>(0,$.jsxs)(Fe,{modal:!1,children:[(0,$.jsx)(Me,{asChild:!0,children:(0,$.jsxs)(A,{className:`flex h-8 w-8 p-0 data-[state=open]:bg-muted`,variant:`ghost`,children:[(0,$.jsx)(Ye,{className:`h-4 w-4`}),(0,$.jsx)(`span`,{className:`sr-only`,children:`Open menu`})]})}),(0,$.jsxs)(Ne,{align:`end`,className:`w-40`,children:[(0,$.jsxs)(je,{onClick:()=>e(`edit`,t.original),children:[w(),(0,$.jsx)(j,{children:(0,$.jsx)(et,{size:16})})]}),(0,$.jsx)(Pe,{}),(0,$.jsxs)(je,{onClick:()=>e(`delete`,t.original),variant:`destructive`,children:[k(),(0,$.jsx)(j,{children:(0,$.jsx)(nt,{size:16})})]})]})]})}]}var gt=De(`/_authenticated/addresses/`);function _t({data:e,isLoading:t,onAction:n,onRefresh:r}){let[i,o]=(0,Q.useState)([]),{globalFilter:s,onGlobalFilterChange:c,columnFilters:l,onColumnFiltersChange:u,pagination:d,onPaginationChange:f,ensurePageInRange:p}=dt({search:gt.useSearch(),navigate:gt.useNavigate(),pagination:{defaultPage:1,defaultPageSize:10},globalFilter:{enabled:!0,key:`address`},columnFilters:[{columnId:`status`,searchKey:`status`,type:`array`},{columnId:`network`,searchKey:`network`,type:`array`}]}),m=He({data:e,columns:(0,Q.useMemo)(()=>ht(n),[n]),state:{sorting:i,columnFilters:l,globalFilter:s,pagination:d},onSortingChange:o,onColumnFiltersChange:u,onGlobalFilterChange:c,onPaginationChange:f,globalFilterFn:(e,t,n)=>{let r=String(n).toLowerCase();return(e.original.address??``).toLowerCase().includes(r)||(e.original.remark??``).toLowerCase().includes(r)},getCoreRowModel:We(),getFilteredRowModel:Ke(),getPaginationRowModel:Re(),getSortedRowModel:ze(),getFacetedRowModel:Le(),getFacetedUniqueValues:Be()});(0,Q.useEffect)(()=>{p(m.getPageCount())},[m,p]);let h=[...new Set(e.map(e=>e.network).filter(Boolean))].map(e=>({label:e,value:e}));return(0,$.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,$.jsx)(Ge,{filters:[{columnId:`status`,title:a(),options:[...qe]},{columnId:`network`,title:O(),options:h}],onRefresh:r,searchPlaceholder:be(),table:m}),(0,$.jsx)(Ue,{className:`min-w-[900px]`,emptyText:se(),loading:t,table:m}),(0,$.jsx)(Ve,{className:`mt-auto`,table:m})]})}function vt(){let{chains:e}=z(),i=t.useQuery(`get`,`/admin/api/v1/wallets`),a=t.useMutation(`delete`,`/admin/api/v1/wallets/{id}`),o=t.useMutation(`post`,`/admin/api/v1/wallets/{id}/status`),s=t.useMutation(`post`,`/admin/api/v1/wallets/batch-import`),[u,d]=(0,Q.useState)(!1),[f,p]=(0,Q.useState)(!1),[m,h]=(0,Q.useState)(``),[g,_]=(0,Q.useState)(``),[ee,v]=(0,Q.useState)(null),[y,b]=(0,Q.useState)(null);(0,Q.useEffect)(()=>{if(!e.length){m&&h(``);return}e.some(e=>e.network&&e.network===m)||h(e[0]?.network??``)},[e,m]);async function C(){await r.invalidateQueries({queryKey:[`get`,`/admin/api/v1/wallets`]})}async function te(){if(!y?.row.id)return;let e=Number(y.row.id);y.action===`delete`?(await a.mutateAsync({params:{path:{id:e}}}),G.success(l())):(y.action===`enable`||y.action===`disable`)&&(await o.mutateAsync({params:{path:{id:e}},body:{status:y.action===`enable`?1:2}}),G.success(S())),await C(),b(null)}async function w(e,t){if(e===`edit`){v(t),d(!0);return}if(e===`enable`||e===`disable`){if(!t.id)return;await o.mutateAsync({params:{path:{id:Number(t.id)}},body:{status:e===`enable`?1:2}}),G.success(S()),await C();return}b({action:e,row:t})}async function T(){if(!m){G.error(Ce());return}let e=g.split(/\r?\n/).map(e=>e.trim()).filter(Boolean);if(!e.length){G.error(c());return}let t=(await s.mutateAsync({body:{addresses:e,network:m}})).data??[],r=t.filter(e=>e.ok).length,i=t.find(e=>!e.ok);i?G.error(we({error:i.error_code?n(i.error_code):i.error??``,success:String(r),total:String(e.length)})):G.success(x({success:String(r),total:String(e.length)})),p(!1),_(``),await C()}return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Qe,{fixed:!0}),(0,$.jsxs)($e,{className:`flex flex-1 flex-col gap-4 sm:gap-6`,children:[(0,$.jsx)(lt,{actions:(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(A,{onClick:()=>p(!0),variant:`outline`,children:[(0,$.jsx)(Je,{className:`mr-2 h-4 w-4`}),ie()]}),(0,$.jsxs)(A,{onClick:()=>{v(null),d(!0)},children:[(0,$.jsx)(tt,{className:`mr-2 h-4 w-4`}),Te()]})]}),description:Se(),title:ne()}),(0,$.jsx)(_t,{data:i.data?.data??[],isLoading:i.isLoading,onAction:w,onRefresh:()=>i.refetch()})]}),(0,$.jsx)(mt,{currentRow:ee,onOpenChange:d,onSuccess:()=>i.refetch(),open:u}),y&&(0,$.jsx)(Ae,{confirmText:y.action===`delete`?k():le(),desc:(0,$.jsx)(`span`,{children:pe({address:String(y.row.address),action:y.action})}),destructive:y.action===`delete`,handleConfirm:te,onOpenChange:()=>b(null),open:!0,title:y.action===`delete`?ge():ce()}),(0,$.jsx)(W,{onOpenChange:p,open:f,children:(0,$.jsxs)(H,{children:[(0,$.jsxs)(V,{children:[(0,$.jsx)(U,{children:ae()}),(0,$.jsx)(B,{children:xe()})]}),(0,$.jsxs)(`div`,{className:`space-y-4`,children:[(0,$.jsxs)(`div`,{className:`space-y-2`,children:[(0,$.jsx)(M,{children:fe()}),(0,$.jsxs)(L,{onValueChange:h,value:m,children:[(0,$.jsx)(P,{children:(0,$.jsx)(N,{placeholder:ye()})}),(0,$.jsx)(F,{children:e.some(e=>e.network)?e.filter(e=>!!e.network).map(e=>(0,$.jsx)(I,{value:e.network,children:e.display_name??e.network??he()},e.network)):(0,$.jsx)(`div`,{className:`px-2 py-1.5 text-muted-foreground text-sm`,children:Ce()})})]})]}),(0,$.jsxs)(`div`,{className:`space-y-2`,children:[(0,$.jsx)(M,{children:re()}),(0,$.jsx)(ut,{className:`min-h-40`,onChange:e=>_(e.target.value),placeholder:`TAddr001 +import{r as e}from"./chunk-DECur_0Z.js";import{a as t,o as n}from"./auth-store-De4Y7PFV.js";import{t as r}from"./router-eyRTkMwc.js";import{t as i}from"./react-CO2uhaBc.js";import{$o as a,Ao as o,Bo as s,Cs as c,Es as l,Fo as u,Go as d,Ho as f,Io as p,Jo as m,Ko as h,Lo as g,Mo as _,No as ee,Po as v,Qo as y,Ro as b,Ss as x,Ts as S,Uo as C,Vo as te,Wo as w,Xo as T,Yo as E,Zo as D,_s as ne,as as re,bs as ie,cs as O,ds as ae,es as oe,fs as se,gs as k,hs as ce,is as le,jo as ue,ls as de,ms as fe,ns as pe,os as me,ps as he,qo as ge,rs as _e,ss as ve,tm as ye,ts as be,us as xe,vs as Se,ws as Ce,xs as we,ys as Te,zo as Ee}from"./messages-BOatyqUm.js";import{r as De}from"./route-wzPKSRj2.js";import{o as Oe}from"./search-provider-C-_FQI9C.js";import{i as ke,t as A}from"./button-C_NDYaz8.js";import{t as Ae}from"./confirm-dialog-D1L-0EhT.js";import{a as je,c as j,l as Me,r as Ne,s as Pe,t as Fe}from"./dropdown-menu-DzCIpsuG.js";import{t as M}from"./label-DNL0sHKL.js";import{a as N,i as P,n as F,r as I,t as L}from"./select-CzebumOF.js";import{t as Ie}from"./switch-CgoJjvdz.js";import{a as R,c as Le,d as Re,f as ze,l as Be,n as Ve,o as He,r as Ue,s as We,t as Ge,u as Ke}from"./data-table-1LQSBhN2.js";import{t as qe}from"./epusdt-BvGYu9TV.js";import{t as Je}from"./download-fYUtNZ3R.js";import{t as Ye}from"./ellipsis-74ly4-Wm.js";import{t as Xe}from"./eye-off-B8hO0oST.js";import{t as Ze}from"./eye-DAKGLydt.js";import{n as Qe,t as $e}from"./main-C1R3Hvq1.js";import{n as et,t as z}from"./chains-store-DCzO87jZ.js";import{n as tt,t as nt}from"./trash-2-9I8lAjeE.js";import{a as rt,i as B,o as V,r as H,s as U,t as W}from"./dialog-CZ-2RPb-.js";import{n as G}from"./dist-JOUh6qvR.js";import{c as K,s as it}from"./zod-rwFXxHlg.js";import{a as q,c as at,i as J,l as ot,n as Y,o as X,s as Z,t as st}from"./form-KfFEakes.js";import{t as ct}from"./input-8zzM34r5.js";import{t as lt}from"./page-header-GTtyZFBB.js";import{t as ut}from"./textarea-C8ejjLzk.js";import{t as dt}from"./use-table-url-state-DP0Y4QjR.js";import{t as ft}from"./long-text-DNqlDi0R.js";var Q=e(i(),1),$=ye(),pt=it({address:K().min(8,ue()),network:K().min(1,o()),remark:K().max(50).optional()});function mt({open:e,onOpenChange:n,currentRow:r,onSuccess:i}){let{chains:a,loading:o}=z(),c=ot({resolver:at(pt),defaultValues:{address:``,network:``,remark:``}}),l=t.useMutation(`post`,`/admin/api/v1/wallets`),d=t.useMutation(`patch`,`/admin/api/v1/wallets/{id}`),h=(0,Q.useMemo)(()=>a.map(e=>e.network).filter(e=>!!e),[a]);(0,Q.useEffect)(()=>{e&&c.reset({address:r?.address??``,network:r?.network??``,remark:r?.remark??``})},[e,r,c]);function y(e){if(r?.id){d.mutate({params:{path:{id:r.id}},body:{remark:e.remark||void 0}},{onSuccess:()=>{G.success(ee()),n(!1),i?.()}});return}l.mutate({body:{address:e.address,network:e.network,remark:e.remark??``}},{onSuccess:()=>{G.success(_()),n(!1),i?.()}})}let x=l.isPending||d.isPending,S=h.length>0,w=o?C():f(),[T,E]=(0,Q.useState)(!1);return(0,$.jsx)(W,{onOpenChange:n,open:e,children:(0,$.jsxs)(H,{children:[(0,$.jsxs)(V,{children:[(0,$.jsx)(U,{children:r?te():s()}),(0,$.jsx)(B,{children:r?Ee():b()})]}),(0,$.jsx)(st,{...c,children:(0,$.jsxs)(`form`,{className:`space-y-4`,onSubmit:c.handleSubmit(y),children:[(0,$.jsx)(J,{control:c.control,name:`network`,render:({field:e})=>(0,$.jsxs)(q,{children:[(0,$.jsx)(X,{children:O()}),(0,$.jsxs)(L,{disabled:!!r||!S,onValueChange:e.onChange,value:e.value,children:[(0,$.jsx)(Y,{children:(0,$.jsx)(P,{className:`w-full`,children:(0,$.jsx)(N,{placeholder:S?ve():w})})}),(0,$.jsx)(F,{children:S?h.map(e=>(0,$.jsx)(I,{value:e,children:e},e)):(0,$.jsx)(`div`,{className:`px-2 py-1.5 text-muted-foreground text-sm`,children:w})})]}),(0,$.jsx)(Z,{})]})}),(0,$.jsx)(J,{control:c.control,name:`address`,render:({field:e})=>(0,$.jsxs)(q,{children:[(0,$.jsx)(X,{children:re()}),(0,$.jsx)(Y,{children:(0,$.jsxs)(`div`,{className:`relative`,children:[(0,$.jsx)(ct,{...e,className:`pr-10`,disabled:!!r,placeholder:g(),type:T?`text`:`password`}),(0,$.jsx)(`button`,{className:`absolute inset-y-0 right-3 flex items-center text-muted-foreground hover:text-foreground`,onClick:()=>E(e=>!e),type:`button`,children:T?(0,$.jsx)(Xe,{className:`h-4 w-4`}):(0,$.jsx)(Ze,{className:`h-4 w-4`})})]})}),(0,$.jsx)(Z,{})]})}),(0,$.jsx)(J,{control:c.control,name:`remark`,render:({field:e})=>(0,$.jsxs)(q,{children:[(0,$.jsx)(X,{children:m()}),(0,$.jsx)(Y,{children:(0,$.jsx)(ct,{...e,placeholder:p()})}),(0,$.jsx)(Z,{})]})}),(0,$.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,$.jsx)(A,{onClick:()=>n(!1),type:`button`,variant:`outline`,children:le()}),(0,$.jsx)(A,{disabled:x,type:`submit`,children:x?u():v()})]})]})})]})})}function ht(e){return[{id:`status-switch`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:y()}),cell:({row:t})=>(0,$.jsx)(Ie,{checked:t.original.status===1,onCheckedChange:()=>e(t.original.status===1?`disable`:`enable`,t.original)}),enableSorting:!1,enableHiding:!1,meta:{label:y(),skeleton:`switch`,sticky:`left`,th:{className:ke(`rounded-tl-[inherit]`)}}},{accessorKey:`address`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:D()}),cell:({row:e})=>(0,$.jsx)(ft,{className:`font-medium`,children:e.original.address}),enableHiding:!1,meta:{label:D(),skeleton:`long`}},{accessorKey:`network`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:O()}),meta:{label:O(),skeleton:`short`}},{accessorKey:`order_count`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:T()}),meta:{label:T(),skeleton:`id`}},{accessorKey:`source`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:E()}),cell:({row:e})=>e.original.source??`-`,meta:{label:E(),skeleton:`short`}},{accessorKey:`remark`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:m()}),meta:{label:m(),skeleton:`long`}},{accessorKey:`created_at`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:ge()}),cell:({row:e})=>Oe(e.original.created_at),meta:{label:ge(),skeleton:`date`}},{accessorKey:`updated_at`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:h()}),cell:({row:e})=>Oe(e.original.updated_at),meta:{label:h(),skeleton:`date`}},{id:`actions`,enableHiding:!1,meta:{label:d(),skeleton:`action`,sticky:`right`,className:ke(`w-12`)},cell:({row:t})=>(0,$.jsxs)(Fe,{modal:!1,children:[(0,$.jsx)(Me,{asChild:!0,children:(0,$.jsxs)(A,{className:`flex h-8 w-8 p-0 data-[state=open]:bg-muted`,variant:`ghost`,children:[(0,$.jsx)(Ye,{className:`h-4 w-4`}),(0,$.jsx)(`span`,{className:`sr-only`,children:`Open menu`})]})}),(0,$.jsxs)(Ne,{align:`end`,className:`w-40`,children:[(0,$.jsxs)(je,{onClick:()=>e(`edit`,t.original),children:[w(),(0,$.jsx)(j,{children:(0,$.jsx)(et,{size:16})})]}),(0,$.jsx)(Pe,{}),(0,$.jsxs)(je,{onClick:()=>e(`delete`,t.original),variant:`destructive`,children:[k(),(0,$.jsx)(j,{children:(0,$.jsx)(nt,{size:16})})]})]})]})}]}var gt=De(`/_authenticated/addresses/`);function _t({data:e,isLoading:t,onAction:n,onRefresh:r}){let[i,o]=(0,Q.useState)([]),{globalFilter:s,onGlobalFilterChange:c,columnFilters:l,onColumnFiltersChange:u,pagination:d,onPaginationChange:f,ensurePageInRange:p}=dt({search:gt.useSearch(),navigate:gt.useNavigate(),pagination:{defaultPage:1,defaultPageSize:10},globalFilter:{enabled:!0,key:`address`},columnFilters:[{columnId:`status`,searchKey:`status`,type:`array`},{columnId:`network`,searchKey:`network`,type:`array`}]}),m=He({data:e,columns:(0,Q.useMemo)(()=>ht(n),[n]),state:{sorting:i,columnFilters:l,globalFilter:s,pagination:d},onSortingChange:o,onColumnFiltersChange:u,onGlobalFilterChange:c,onPaginationChange:f,globalFilterFn:(e,t,n)=>{let r=String(n).toLowerCase();return(e.original.address??``).toLowerCase().includes(r)||(e.original.remark??``).toLowerCase().includes(r)},getCoreRowModel:We(),getFilteredRowModel:Ke(),getPaginationRowModel:Re(),getSortedRowModel:ze(),getFacetedRowModel:Le(),getFacetedUniqueValues:Be()});(0,Q.useEffect)(()=>{p(m.getPageCount())},[m,p]);let h=[...new Set(e.map(e=>e.network).filter(Boolean))].map(e=>({label:e,value:e}));return(0,$.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,$.jsx)(Ge,{filters:[{columnId:`status`,title:a(),options:[...qe]},{columnId:`network`,title:O(),options:h}],onRefresh:r,searchPlaceholder:be(),table:m}),(0,$.jsx)(Ue,{className:`min-w-[900px]`,emptyText:oe(),loading:t,table:m}),(0,$.jsx)(Ve,{className:`mt-auto`,table:m})]})}function vt(){let{chains:e}=z(),i=t.useQuery(`get`,`/admin/api/v1/wallets`),a=t.useMutation(`delete`,`/admin/api/v1/wallets/{id}`),o=t.useMutation(`post`,`/admin/api/v1/wallets/{id}/status`),s=t.useMutation(`post`,`/admin/api/v1/wallets/batch-import`),[u,d]=(0,Q.useState)(!1),[f,p]=(0,Q.useState)(!1),[m,h]=(0,Q.useState)(``),[g,_]=(0,Q.useState)(``),[ee,v]=(0,Q.useState)(null),[y,b]=(0,Q.useState)(null);(0,Q.useEffect)(()=>{if(!e.length){m&&h(``);return}e.some(e=>e.network&&e.network===m)||h(e[0]?.network??``)},[e,m]);async function C(){await r.invalidateQueries({queryKey:[`get`,`/admin/api/v1/wallets`]})}async function te(){if(!y?.row.id)return;let e=Number(y.row.id);y.action===`delete`?(await a.mutateAsync({params:{path:{id:e}}}),G.success(l())):(y.action===`enable`||y.action===`disable`)&&(await o.mutateAsync({params:{path:{id:e}},body:{status:y.action===`enable`?1:2}}),G.success(S())),await C(),b(null)}async function w(e,t){if(e===`edit`){v(t),d(!0);return}if(e===`enable`||e===`disable`){if(!t.id)return;await o.mutateAsync({params:{path:{id:Number(t.id)}},body:{status:e===`enable`?1:2}}),G.success(S()),await C();return}b({action:e,row:t})}async function T(){if(!m){G.error(Ce());return}let e=g.split(/\r?\n/).map(e=>e.trim()).filter(Boolean);if(!e.length){G.error(c());return}let t=(await s.mutateAsync({body:{addresses:e,network:m}})).data??[],r=t.filter(e=>e.ok).length,i=t.find(e=>!e.ok);i?G.error(we({error:i.error_code?n(i.error_code):i.error??``,success:String(r),total:String(e.length)})):G.success(x({success:String(r),total:String(e.length)})),p(!1),_(``),await C()}return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Qe,{fixed:!0}),(0,$.jsxs)($e,{className:`flex flex-1 flex-col gap-4 sm:gap-6`,children:[(0,$.jsx)(lt,{actions:(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(A,{onClick:()=>p(!0),variant:`outline`,children:[(0,$.jsx)(Je,{className:`mr-2 h-4 w-4`}),ie()]}),(0,$.jsxs)(A,{onClick:()=>{v(null),d(!0)},children:[(0,$.jsx)(tt,{className:`mr-2 h-4 w-4`}),Te()]})]}),description:Se(),title:ne()}),(0,$.jsx)(_t,{data:i.data?.data??[],isLoading:i.isLoading,onAction:w,onRefresh:()=>i.refetch()})]}),(0,$.jsx)(mt,{currentRow:ee,onOpenChange:d,onSuccess:()=>i.refetch(),open:u}),y&&(0,$.jsx)(Ae,{confirmText:y.action===`delete`?k():ce(),desc:(0,$.jsx)(`span`,{children:fe({address:String(y.row.address),action:y.action})}),destructive:y.action===`delete`,handleConfirm:te,onOpenChange:()=>b(null),open:!0,title:y.action===`delete`?he():se()}),(0,$.jsx)(W,{onOpenChange:p,open:f,children:(0,$.jsxs)(H,{children:[(0,$.jsxs)(V,{children:[(0,$.jsx)(U,{children:ae()}),(0,$.jsx)(B,{children:xe()})]}),(0,$.jsxs)(`div`,{className:`space-y-4`,children:[(0,$.jsxs)(`div`,{className:`space-y-2`,children:[(0,$.jsx)(M,{children:de()}),(0,$.jsxs)(L,{onValueChange:h,value:m,children:[(0,$.jsx)(P,{children:(0,$.jsx)(N,{placeholder:ve()})}),(0,$.jsx)(F,{children:e.some(e=>e.network)?e.filter(e=>!!e.network).map(e=>(0,$.jsx)(I,{value:e.network,children:e.display_name??e.network??me()},e.network)):(0,$.jsx)(`div`,{className:`px-2 py-1.5 text-muted-foreground text-sm`,children:Ce()})})]})]}),(0,$.jsxs)(`div`,{className:`space-y-2`,children:[(0,$.jsx)(M,{children:re()}),(0,$.jsx)(ut,{className:`min-h-40`,onChange:e=>_(e.target.value),placeholder:`TAddr001 TAddr002 -TAddr003`,value:g})]})]}),(0,$.jsxs)(rt,{children:[(0,$.jsx)(A,{onClick:()=>p(!1),variant:`outline`,children:ue()}),(0,$.jsx)(A,{disabled:s.isPending||!e.some(e=>e.network),onClick:T,children:s.isPending?ve():me()})]})]})})]})}var yt=vt;export{yt as component}; \ No newline at end of file +TAddr003`,value:g})]})]}),(0,$.jsxs)(rt,{children:[(0,$.jsx)(A,{onClick:()=>p(!1),variant:`outline`,children:le()}),(0,$.jsx)(A,{disabled:s.isPending||!e.some(e=>e.network),onClick:T,children:s.isPending?_e():pe()})]})]})})]})}var yt=vt;export{yt as component}; \ No newline at end of file diff --git a/src/www/assets/appearance-CslRyYyk.js b/src/www/assets/appearance-Cl8fvRSv.js similarity index 79% rename from src/www/assets/appearance-CslRyYyk.js rename to src/www/assets/appearance-Cl8fvRSv.js index 62b8cb8..14a4766 100644 --- a/src/www/assets/appearance-CslRyYyk.js +++ b/src/www/assets/appearance-Cl8fvRSv.js @@ -1 +1 @@ -import{Cn as e,Hp as t,Sn as n,Up as r,_n as i,bn as a,em as o,vn as s,xn as c,yn as l}from"./messages-Bp0bCjzp.js";import{i as u,n as d,t as f}from"./button-BgMnOYKD.js";import{n as p,r as m}from"./font-provider-CtpKPVa7.js";import{n as h}from"./theme-provider-CyJJNAox.js";import{t as g}from"./chevron-down-BB5h1CsX.js";import{n as _,t as v}from"./radio-group-DrQ9k883.js";import{r as y,s as b}from"./zod-rwFXxHlg.js";import{a as x,c as S,i as C,l as w,n as T,o as E,r as D,s as O,t as k}from"./form-BhKmyN6D.js";import{t as A}from"./page-header-CDwG3nxs.js";import{t as j}from"./show-submitted-data-C8ocsjDF.js";var M=o(),N=b({theme:y([`light`,`dark`]),font:y(m)});function P(){let{font:e,setFont:n}=p(),{theme:o,setTheme:y}=h(),b={theme:o,font:e},A=w({resolver:S(N),defaultValues:b});function P(t){t.font!==e&&n(t.font),t.theme!==o&&y(t.theme),j(t)}return(0,M.jsx)(k,{...A,children:(0,M.jsxs)(`form`,{className:`space-y-8`,onSubmit:A.handleSubmit(P),children:[(0,M.jsx)(C,{control:A.control,name:`font`,render:({field:e})=>(0,M.jsxs)(x,{children:[(0,M.jsx)(E,{children:c()}),(0,M.jsxs)(`div`,{className:`relative w-max`,children:[(0,M.jsx)(T,{children:(0,M.jsx)(`select`,{className:u(d({variant:`outline`}),`w-50 appearance-none font-normal capitalize`,`dark:bg-background dark:hover:bg-background`),...e,children:m.map(e=>(0,M.jsx)(`option`,{value:e,children:e},e))})}),(0,M.jsx)(g,{className:`absolute inset-e-3 top-2.5 h-4 w-4 opacity-50`})]}),(0,M.jsx)(D,{className:`font-manrope`,children:a()}),(0,M.jsx)(O,{})]})}),(0,M.jsx)(C,{control:A.control,name:`theme`,render:({field:e})=>(0,M.jsxs)(x,{children:[(0,M.jsx)(E,{children:l()}),(0,M.jsx)(D,{children:s()}),(0,M.jsx)(O,{}),(0,M.jsxs)(v,{className:`grid max-w-md grid-cols-2 gap-8 pt-2`,defaultValue:e.value,onValueChange:e.onChange,children:[(0,M.jsx)(x,{children:(0,M.jsxs)(E,{className:`[&:has([data-state=checked])>div]:border-primary`,children:[(0,M.jsx)(T,{children:(0,M.jsx)(_,{className:`sr-only`,value:`light`})}),(0,M.jsx)(`div`,{className:`items-center rounded-md border-2 border-muted p-1 hover:border-accent`,children:(0,M.jsxs)(`div`,{className:`space-y-2 rounded-sm bg-[#ecedef] p-2`,children:[(0,M.jsxs)(`div`,{className:`space-y-2 rounded-md bg-white p-2 shadow-xs`,children:[(0,M.jsx)(`div`,{className:`h-2 w-20 rounded-lg bg-[#ecedef]`}),(0,M.jsx)(`div`,{className:`h-2 w-25 rounded-lg bg-[#ecedef]`})]}),(0,M.jsxs)(`div`,{className:`flex items-center space-x-2 rounded-md bg-white p-2 shadow-xs`,children:[(0,M.jsx)(`div`,{className:`h-4 w-4 rounded-full bg-[#ecedef]`}),(0,M.jsx)(`div`,{className:`h-2 w-25 rounded-lg bg-[#ecedef]`})]}),(0,M.jsxs)(`div`,{className:`flex items-center space-x-2 rounded-md bg-white p-2 shadow-xs`,children:[(0,M.jsx)(`div`,{className:`h-4 w-4 rounded-full bg-[#ecedef]`}),(0,M.jsx)(`div`,{className:`h-2 w-25 rounded-lg bg-[#ecedef]`})]})]})}),(0,M.jsx)(`span`,{className:`block w-full p-2 text-center font-normal`,children:r()})]})}),(0,M.jsx)(x,{children:(0,M.jsxs)(E,{className:`[&:has([data-state=checked])>div]:border-primary`,children:[(0,M.jsx)(T,{children:(0,M.jsx)(_,{className:`sr-only`,value:`dark`})}),(0,M.jsx)(`div`,{className:`items-center rounded-md border-2 border-muted bg-popover p-1 hover:bg-accent hover:text-accent-foreground`,children:(0,M.jsxs)(`div`,{className:`space-y-2 rounded-sm bg-slate-950 p-2`,children:[(0,M.jsxs)(`div`,{className:`space-y-2 rounded-md bg-slate-800 p-2 shadow-xs`,children:[(0,M.jsx)(`div`,{className:`h-2 w-20 rounded-lg bg-slate-400`}),(0,M.jsx)(`div`,{className:`h-2 w-25 rounded-lg bg-slate-400`})]}),(0,M.jsxs)(`div`,{className:`flex items-center space-x-2 rounded-md bg-slate-800 p-2 shadow-xs`,children:[(0,M.jsx)(`div`,{className:`h-4 w-4 rounded-full bg-slate-400`}),(0,M.jsx)(`div`,{className:`h-2 w-25 rounded-lg bg-slate-400`})]}),(0,M.jsxs)(`div`,{className:`flex items-center space-x-2 rounded-md bg-slate-800 p-2 shadow-xs`,children:[(0,M.jsx)(`div`,{className:`h-4 w-4 rounded-full bg-slate-400`}),(0,M.jsx)(`div`,{className:`h-2 w-25 rounded-lg bg-slate-400`})]})]})}),(0,M.jsx)(`span`,{className:`block w-full p-2 text-center font-normal`,children:t()})]})})]})]})}),(0,M.jsx)(f,{type:`submit`,children:i()})]})})}function F(){return(0,M.jsx)(A,{description:n(),title:e(),variant:`section`,children:(0,M.jsx)(P,{})})}var I=F;export{I as component}; \ No newline at end of file +import{Cn as e,Sn as t,Up as n,Wp as r,_n as i,bn as a,tm as o,vn as s,xn as c,yn as l}from"./messages-BOatyqUm.js";import{i as u,n as d,t as f}from"./button-C_NDYaz8.js";import{n as p,r as m}from"./font-provider-BPsIRWbb.js";import{n as h}from"./theme-provider-BREWrHp_.js";import{t as g}from"./chevron-down-BB5h1CsX.js";import{n as _,t as v}from"./radio-group-D2rceepu.js";import{r as y,s as b}from"./zod-rwFXxHlg.js";import{a as x,c as S,i as C,l as w,n as T,o as E,r as D,s as O,t as k}from"./form-KfFEakes.js";import{t as A}from"./page-header-GTtyZFBB.js";import{t as j}from"./show-submitted-data-BqZb-_Pf.js";var M=o(),N=b({theme:y([`light`,`dark`]),font:y(m)});function P(){let{font:e,setFont:t}=p(),{theme:o,setTheme:y}=h(),b={theme:o,font:e},A=w({resolver:S(N),defaultValues:b});function P(n){n.font!==e&&t(n.font),n.theme!==o&&y(n.theme),j(n)}return(0,M.jsx)(k,{...A,children:(0,M.jsxs)(`form`,{className:`space-y-8`,onSubmit:A.handleSubmit(P),children:[(0,M.jsx)(C,{control:A.control,name:`font`,render:({field:e})=>(0,M.jsxs)(x,{children:[(0,M.jsx)(E,{children:c()}),(0,M.jsxs)(`div`,{className:`relative w-max`,children:[(0,M.jsx)(T,{children:(0,M.jsx)(`select`,{className:u(d({variant:`outline`}),`w-50 appearance-none font-normal capitalize`,`dark:bg-background dark:hover:bg-background`),...e,children:m.map(e=>(0,M.jsx)(`option`,{value:e,children:e},e))})}),(0,M.jsx)(g,{className:`absolute inset-e-3 top-2.5 h-4 w-4 opacity-50`})]}),(0,M.jsx)(D,{className:`font-manrope`,children:a()}),(0,M.jsx)(O,{})]})}),(0,M.jsx)(C,{control:A.control,name:`theme`,render:({field:e})=>(0,M.jsxs)(x,{children:[(0,M.jsx)(E,{children:l()}),(0,M.jsx)(D,{children:s()}),(0,M.jsx)(O,{}),(0,M.jsxs)(v,{className:`grid max-w-md grid-cols-2 gap-8 pt-2`,defaultValue:e.value,onValueChange:e.onChange,children:[(0,M.jsx)(x,{children:(0,M.jsxs)(E,{className:`[&:has([data-state=checked])>div]:border-primary`,children:[(0,M.jsx)(T,{children:(0,M.jsx)(_,{className:`sr-only`,value:`light`})}),(0,M.jsx)(`div`,{className:`items-center rounded-md border-2 border-muted p-1 hover:border-accent`,children:(0,M.jsxs)(`div`,{className:`space-y-2 rounded-sm bg-[#ecedef] p-2`,children:[(0,M.jsxs)(`div`,{className:`space-y-2 rounded-md bg-white p-2 shadow-xs`,children:[(0,M.jsx)(`div`,{className:`h-2 w-20 rounded-lg bg-[#ecedef]`}),(0,M.jsx)(`div`,{className:`h-2 w-25 rounded-lg bg-[#ecedef]`})]}),(0,M.jsxs)(`div`,{className:`flex items-center space-x-2 rounded-md bg-white p-2 shadow-xs`,children:[(0,M.jsx)(`div`,{className:`h-4 w-4 rounded-full bg-[#ecedef]`}),(0,M.jsx)(`div`,{className:`h-2 w-25 rounded-lg bg-[#ecedef]`})]}),(0,M.jsxs)(`div`,{className:`flex items-center space-x-2 rounded-md bg-white p-2 shadow-xs`,children:[(0,M.jsx)(`div`,{className:`h-4 w-4 rounded-full bg-[#ecedef]`}),(0,M.jsx)(`div`,{className:`h-2 w-25 rounded-lg bg-[#ecedef]`})]})]})}),(0,M.jsx)(`span`,{className:`block w-full p-2 text-center font-normal`,children:r()})]})}),(0,M.jsx)(x,{children:(0,M.jsxs)(E,{className:`[&:has([data-state=checked])>div]:border-primary`,children:[(0,M.jsx)(T,{children:(0,M.jsx)(_,{className:`sr-only`,value:`dark`})}),(0,M.jsx)(`div`,{className:`items-center rounded-md border-2 border-muted bg-popover p-1 hover:bg-accent hover:text-accent-foreground`,children:(0,M.jsxs)(`div`,{className:`space-y-2 rounded-sm bg-slate-950 p-2`,children:[(0,M.jsxs)(`div`,{className:`space-y-2 rounded-md bg-slate-800 p-2 shadow-xs`,children:[(0,M.jsx)(`div`,{className:`h-2 w-20 rounded-lg bg-slate-400`}),(0,M.jsx)(`div`,{className:`h-2 w-25 rounded-lg bg-slate-400`})]}),(0,M.jsxs)(`div`,{className:`flex items-center space-x-2 rounded-md bg-slate-800 p-2 shadow-xs`,children:[(0,M.jsx)(`div`,{className:`h-4 w-4 rounded-full bg-slate-400`}),(0,M.jsx)(`div`,{className:`h-2 w-25 rounded-lg bg-slate-400`})]}),(0,M.jsxs)(`div`,{className:`flex items-center space-x-2 rounded-md bg-slate-800 p-2 shadow-xs`,children:[(0,M.jsx)(`div`,{className:`h-4 w-4 rounded-full bg-slate-400`}),(0,M.jsx)(`div`,{className:`h-2 w-25 rounded-lg bg-slate-400`})]})]})}),(0,M.jsx)(`span`,{className:`block w-full p-2 text-center font-normal`,children:n()})]})})]})]})}),(0,M.jsx)(f,{type:`submit`,children:i()})]})})}function F(){return(0,M.jsx)(A,{description:t(),title:e(),variant:`section`,children:(0,M.jsx)(P,{})})}var I=F;export{I as component}; \ No newline at end of file diff --git a/src/www/assets/auth-animation-context-CO6PD8ih.js b/src/www/assets/auth-animation-context-CmPA3sF3.js similarity index 89% rename from src/www/assets/auth-animation-context-CO6PD8ih.js rename to src/www/assets/auth-animation-context-CmPA3sF3.js index e1c4ba5..27b8703 100644 --- a/src/www/assets/auth-animation-context-CO6PD8ih.js +++ b/src/www/assets/auth-animation-context-CmPA3sF3.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";var r=e(t(),1),i=n(),a=(0,r.createContext)({isTyping:!1,passwordLength:0,setIsTyping:()=>void 0,setPasswordLength:()=>void 0,setShowPassword:()=>void 0,showPassword:!1});function o({children:e}){let[t,n]=(0,r.useState)(!1),[o,s]=(0,r.useState)(!1),[c,l]=(0,r.useState)(0);return(0,i.jsx)(a.Provider,{value:{isTyping:t,passwordLength:c,setIsTyping:n,setPasswordLength:l,setShowPassword:s,showPassword:o},children:e})}function s(){return(0,r.useContext)(a)}export{s as n,o as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";var r=e(t(),1),i=n(),a=(0,r.createContext)({isTyping:!1,passwordLength:0,setIsTyping:()=>void 0,setPasswordLength:()=>void 0,setShowPassword:()=>void 0,showPassword:!1});function o({children:e}){let[t,n]=(0,r.useState)(!1),[o,s]=(0,r.useState)(!1),[c,l]=(0,r.useState)(0);return(0,i.jsx)(a.Provider,{value:{isTyping:t,passwordLength:c,setIsTyping:n,setPasswordLength:l,setShowPassword:s,showPassword:o},children:e})}function s(){return(0,r.useContext)(a)}export{s as n,o as t}; \ No newline at end of file diff --git a/src/www/assets/auth-store-Csn6HPxJ.js b/src/www/assets/auth-store-De4Y7PFV.js similarity index 64% rename from src/www/assets/auth-store-Csn6HPxJ.js rename to src/www/assets/auth-store-De4Y7PFV.js index 5577503..40f599c 100644 --- a/src/www/assets/auth-store-Csn6HPxJ.js +++ b/src/www/assets/auth-store-De4Y7PFV.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{$d as n,Bd as r,Cf as i,Ef as a,Fd as o,Gd as s,Hd as c,Id as l,Jd as u,Kd as d,Ld as f,Md as p,Nd as m,Pd as h,Qd as g,Rd as _,Sf as v,Tf as y,Ud as b,Vd as x,Wd as ee,Xd as S,Yd as C,Zd as w,_f as te,af as T,bf as ne,cf as E,df as re,ef as D,em as O,ff as k,gf as A,hf as ie,if as j,jd as ae,lf as oe,mf as se,nf as ce,of as le,pf as ue,qd as de,rf as fe,sf as pe,tf as me,uf as he,vf as ge,wf as _e,xf as ve,yf as ye,zd as be}from"./messages-Bp0bCjzp.js";import{t as xe}from"./with-selector-DBfssCrY.js";import{n as Se,r as Ce,t as we}from"./cookies-BzZOQYPw.js";import{n as Te}from"./dist-BGqHIBUe.js";var M=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ee=new class extends M{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},De={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},N=new class{#e=De;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function Oe(e){setTimeout(e,0)}var ke=typeof window>`u`||`Deno`in globalThis;function P(){}function Ae(e,t){return typeof e==`function`?e(t):e}function je(e){return typeof e==`number`&&e>=0&&e!==1/0}function Me(e,t){return Math.max(e+(t||0)-Date.now(),0)}function F(e,t){return typeof e==`function`?e(t):e}function I(e,t){return typeof e==`function`?e(t):e}function Ne(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Fe(o,t.options))return!1}else if(!Ie(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function Pe(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(L(t.options.mutationKey)!==L(a))return!1}else if(!Ie(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Fe(e,t){return(t?.queryKeyHashFn||L)(e)}function L(e){return JSON.stringify(e,(e,t)=>Be(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Ie(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>Ie(e[n],t[n])):!1}var Le=Object.prototype.hasOwnProperty;function Re(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=ze(e)&&ze(t);if(!r&&!(Be(e)&&Be(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l{N.setTimeout(t,e)})}function Ue(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:Re(e,t)}function We(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Ge(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ke=Symbol();function qe(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Ke?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Je(e,t){return typeof e==`function`?e(...t):!!e}function Ye(e,t,n){let r=!1,i;return Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var z=(()=>{let e=()=>ke;return{isServer(){return e()},setIsServer(t){e=t}}})();function Xe(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var Ze=Oe;function Qe(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Ze,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var B=Qe(),$e=new class extends M{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function et(e){return Math.min(1e3*2**e,3e4)}function tt(e){return(e??`online`)===`online`?$e.isOnline():!0}var nt=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function rt(e){let t=!1,n=0,r,i=Xe(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new nt(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>Ee.isFocused()&&(e.networkMode===`always`||$e.isOnline())&&e.canRun(),u=()=>tt(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(z.isServer()?0:3),o=e.retryDelay??et,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&nl()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var it=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),je(this.gcTime)&&(this.#e=N.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(z.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(N.clearTimeout(this.#e),this.#e=void 0)}},at=class extends it{#e;#t;#n;#r;#i;#a;#o;constructor(e){super(),this.#o=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=ct(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=ct(this.options);e.data!==void 0&&(this.setState(st(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#n.remove(this)}setData(e,t){let n=Ue(this.state.data,e,this.options);return this.#c({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#c({type:`setState`,state:e,setStateOptions:t})}cancel(e){let t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(P).catch(P):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>I(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ke||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>F(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!Me(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#i&&(this.#o||this.#s()?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#s(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#c({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#i?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},i=()=>{let e=qe(this.options,t),n=(()=>{let e={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#o=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:i};return r(e),e})();this.options.behavior?.onFetch(a,this),this.#t=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#c({type:`fetch`,meta:a.fetchOptions?.meta}),this.#i=rt({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof nt&&e.revert&&this.setState({...this.#t,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#c({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#c({type:`pause`})},onContinue:()=>{this.#c({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#i.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#n.config.onSuccess?.(e,this),this.#n.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof nt){if(e.silent)return this.#i.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#c({type:`error`,error:e}),this.#n.config.onError?.(e,this),this.#n.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#c(e){this.state=(t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...ot(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...st(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}})(this.state),B.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#n.notify({query:this,type:`updated`,action:e})})}};function ot(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:tt(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function st(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function ct(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var lt=class extends M{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=Xe(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),dt(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ft(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ft(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof I(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!R(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&pt(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||I(this.options.enabled,this.#t)!==I(t.enabled,this.#t)||F(this.options.staleTime,this.#t)!==F(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||I(this.options.enabled,this.#t)!==I(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return ht(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(P)),t}#g(){this.#b();let e=F(this.options.staleTime,this.#t);if(z.isServer()||this.#r.isStale||!je(e))return;let t=Me(this.#r.dataUpdatedAt,e)+1;this.#d=N.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(z.isServer()||I(this.options.enabled,this.#t)===!1||!je(this.#p)||this.#p===0)&&(this.#f=N.setInterval(()=>{(this.options.refetchIntervalInBackground||Ee.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(N.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(N.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&dt(e,t),o=i&&pt(e,n,t,r);(a||o)&&(l={...l,...ot(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=Ue(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=Ue(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:mt(e,t),refetch:this.refetch,promise:this.#o,isEnabled:I(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=x.data!==void 0,r=x.status===`error`&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},a=()=>{i(this.#o=x.promise=Xe())},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||x.data!==o.value)&&a();break;case`rejected`:(!r||x.error!==o.reason)&&a();break}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!R(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){B.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function ut(e,t){return I(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&t.retryOnMount===!1)}function dt(e,t){return ut(e,t)||e.state.data!==void 0&&ft(e,t,t.refetchOnMount)}function ft(e,t,n){if(I(t.enabled,e)!==!1&&F(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&mt(e,t)}return!1}function pt(e,t,n,r){return(e!==t||I(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&mt(e,n)}function mt(e,t){return I(t.enabled,e)!==!1&&e.isStaleByTime(F(t.staleTime,e))}function ht(e,t){return!R(e.getCurrentResult(),t)}function gt(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Ye(e,()=>t.signal,()=>n=!0)},u=qe(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject();if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?Ge:We;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?vt:_t,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:_t(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(ct.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function _t(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function vt(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function yt(e,t){return t?_t(e,t)!=null:!1}function bt(e,t){return!t||!e.getPreviousPageParam?!1:vt(e,t)!=null}var xt=class extends lt{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:gt()})}getOptimisticResult(e){return e.behavior=gt(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`forward`}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`backward`}}})}createResult(e,t){let{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:o,isRefetchError:s}=r,c=n.fetchMeta?.fetchMore?.direction,l=o&&c===`forward`,u=i&&c===`forward`,d=o&&c===`backward`,f=i&&c===`backward`;return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:yt(t,n.data),hasPreviousPage:bt(t,n.data),isFetchNextPageError:l,isFetchingNextPage:u,isFetchPreviousPageError:d,isFetchingPreviousPage:f,isRefetchError:s&&!l&&!d,isRefetching:a&&!u&&!f}}},St=class extends it{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Ct(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=rt({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){this.state=(t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}})(this.state),B.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Ct(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var wt=class extends M{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),R(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&L(t.mutationKey)!==L(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??Ct();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){B.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},V=e(t(),1),Tt=O(),Et=V.createContext(void 0),Dt=e=>{let t=V.useContext(Et);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Ot=({client:e,children:t})=>(V.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,Tt.jsx)(Et.Provider,{value:e,children:t})),kt=V.createContext(!1),At=()=>V.useContext(kt);kt.Provider;function jt(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Mt=V.createContext(jt()),Nt=()=>V.useContext(Mt),Pt=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?Je(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Ft=e=>{V.useEffect(()=>{e.clearReset()},[e])},It=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||Je(n,[e.error,r])),Lt=(e,t)=>t.state.data===void 0,Rt=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},zt=(e,t)=>e.isLoading&&e.isFetching&&!t,Bt=(e,t)=>e?.suspense&&t.isPending,Vt=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Ht(e,t,n){let r=At(),i=Nt(),a=Dt(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash);o._optimisticResults=r?`isRestoring`:`optimistic`,Rt(o),Pt(o,i,s),Ft(i);let c=!a.getQueryCache().get(o.queryHash),[l]=V.useState(()=>new t(a,o)),u=l.getOptimisticResult(o),d=!r&&e.subscribed!==!1;if(V.useSyncExternalStore(V.useCallback(e=>{let t=d?l.subscribe(B.batchCalls(e)):P;return l.updateResult(),t},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),V.useEffect(()=>{l.setOptions(o)},[o,l]),Bt(o,u))throw Vt(o,l,i);if(It({result:u,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw u.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,u),o.experimental_prefetchInRender&&!z.isServer()&&zt(u,r)&&(c?Vt(o,l,i):s?.promise)?.catch(P).finally(()=>{l.updateResult()}),o.notifyOnChangeProps?u:l.trackResult(u)}function Ut(e,t){return Ht(e,lt,t)}function Wt(e,t){return Ht({...e,enabled:!0,suspense:!0,throwOnError:Lt,placeholderData:void 0},lt,t)}function Gt(e,t){let n=Dt(t),[r]=V.useState(()=>new wt(n,e));V.useEffect(()=>{r.setOptions(e)},[r,e]);let i=V.useSyncExternalStore(V.useCallback(e=>r.subscribe(B.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=V.useCallback((e,t)=>{r.mutate(e,t).catch(P)},[r]);if(i.error&&Je(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function Kt(e,t){return Ht(e,xt,t)}var qt=xe();function Jt(e,t){return e===t}function Yt(e,t,n=Jt){let r=(0,V.useCallback)(t=>{if(!e)return()=>{};let{unsubscribe:n}=e.subscribe(t);return n},[e]),i=(0,V.useCallback)(()=>e?.get(),[e]);return(0,qt.useSyncExternalStoreWithSelector)(r,i,i,t,n)}var H=function(e){return e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e}({});function Xt({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&(H.RecursedCheck|H.Recursed|H.Dirty|H.Pending)?a&(H.RecursedCheck|H.Recursed)?a&H.RecursedCheck?!(a&(H.Dirty|H.Pending))&&c(e,i)?(i.flags=a|(H.Recursed|H.Pending),a&=H.Mutable):a=H.None:i.flags=a&~H.Recursed|H.Pending:a=H.None:i.flags=a|H.Pending,a&H.Watching&&t(i),a&H.Mutable){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&H.Dirty)a=!0;else if((c&(H.Mutable|H.Dirty))===(H.Mutable|H.Dirty)){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&(H.Mutable|H.Pending))===(H.Mutable|H.Pending)){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=~H.Pending;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&(H.Pending|H.Dirty))===H.Pending&&(n.flags=r|H.Dirty,(r&(H.Watching|H.RecursedCheck))===H.Watching&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function Zt(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var Qt=[],U=0,{link:$t,unlink:en,propagate:tn,checkDirty:nn,shallowPropagate:rn}=Xt({update(e){return e._update()},notify(e){Qt[an++]=e,e.flags&=~H.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=H.Mutable|H.Dirty,K(e))}}),W=0,an=0,G,on=0;function K(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=en(n,e)}function sn(){if(!(on>0)){for(;W{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=G,o=t?.compare??Object.is;if(n)G=i,++U,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=H.Mutable|H.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{G=a,n&&(i.flags&=~H.RecursedCheck),K(i)}}};return n?(i.flags=H.Mutable|H.Dirty,i.get=function(){let e=i.flags;if(e&H.Dirty||e&H.Pending&&nn(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&rn(e)}}else e&H.Pending&&(i.flags=e&~H.Pending);return G!==void 0&&$t(i,G,U),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(tn(e),rn(e),sn())}},i}function ln(e){let t=()=>{let t=G;G=n,++U,n.depsTail=void 0,n.flags=H.Watching|H.RecursedCheck;try{return e()}finally{G=t,n.flags&=~H.RecursedCheck,K(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:H.Watching|H.RecursedCheck,notify(){let e=this.flags;e&H.Dirty||e&H.Pending&&nn(this.deps,this)?t():this.flags=H.Watching},stop(){this.flags=H.None,this.depsTail=void 0,K(this)}};return t(),n}var un=class{constructor(e){this.atom=cn(e)}setState(e){this.atom.set(e)}get state(){return this.atom.get()}get(){return this.state}subscribe(e){return this.atom.subscribe(Zt(e))}},q=`access_token`,dn=`auth_user`,fn=`sidebar_state`,pn=3600*24*7,mn=/\{[^{}]+\}/g,hn=()=>typeof process==`object`&&Number.parseInt(process?.versions?.node?.substring(0,2))>=18&&process.versions.undici;function gn(){return Math.random().toString(36).slice(2,11)}function _n(e){let{baseUrl:t=``,Request:n=globalThis.Request,fetch:r=globalThis.fetch,querySerializer:i,bodySerializer:a,pathSerializer:o,headers:s,requestInitExt:c=void 0,...l}={...e};c=hn()?c:void 0,t=Tn(t);let u=[];async function d(e,d){let{baseUrl:f,fetch:p=r,Request:m=n,headers:h,params:g={},parseAs:_=`json`,querySerializer:v,bodySerializer:y=a??Sn,pathSerializer:b,body:x,middleware:ee=[],...S}=d||{},C=t;f&&(C=Tn(f)??t);let w=typeof i==`function`?i:bn(i);v&&(w=typeof v==`function`?v:bn({...typeof i==`object`?i:{},...v}));let te=b||o||xn,T=x===void 0?void 0:y(x,wn(s,h,g.header)),ne=wn(T===void 0||T instanceof FormData?{}:{"Content-Type":`application/json`},s,h,g.header),E=[...u,...ee],re={redirect:`follow`,...l,...S,body:T,headers:ne},D,O,k=new m(Cn(e,{baseUrl:C,params:g,querySerializer:w,pathSerializer:te}),re),A;for(let e in S)e in k||(k[e]=S[e]);if(E.length){D=gn(),O=Object.freeze({baseUrl:C,fetch:p,parseAs:_,querySerializer:w,bodySerializer:y,pathSerializer:te});for(let t of E)if(t&&typeof t==`object`&&typeof t.onRequest==`function`){let n=await t.onRequest({request:k,schemaPath:e,params:g,options:O,id:D});if(n)if(n instanceof m)k=n;else if(n instanceof Response){A=n;break}else throw Error(`onRequest: must return new Request() or Response() when modifying the request`)}}if(!A){try{A=await p(k,c)}catch(t){let n=t;if(E.length)for(let t=E.length-1;t>=0;t--){let r=E[t];if(r&&typeof r==`object`&&typeof r.onError==`function`){let t=await r.onError({request:k,error:n,schemaPath:e,params:g,options:O,id:D});if(t){if(t instanceof Response){n=void 0,A=t;break}if(t instanceof Error){n=t;continue}throw Error(`onError: must return new Response() or instance of Error`)}}}if(n)throw n}if(E.length)for(let t=E.length-1;t>=0;t--){let n=E[t];if(n&&typeof n==`object`&&typeof n.onResponse==`function`){let t=await n.onResponse({request:k,response:A,schemaPath:e,params:g,options:O,id:D});if(t){if(!(t instanceof Response))throw Error(`onResponse: must return new Response() when modifying the response`);A=t}}}}let ie=A.headers.get(`Content-Length`);if(A.status===204||k.method===`HEAD`||ie===`0`&&!A.headers.get(`Transfer-Encoding`)?.includes(`chunked`))return A.ok?{data:void 0,response:A}:{error:void 0,response:A};if(A.ok)return{data:await(async()=>{if(_===`stream`)return A.body;if(_===`json`&&!ie){let e=await A.text();return e?JSON.parse(e):void 0}return await A[_]()})(),response:A};let j=await A.text();try{j=JSON.parse(j)}catch{}return{error:j,response:A}}return{request(e,t,n){return d(t,{...n,method:e.toUpperCase()})},GET(e,t){return d(e,{...t,method:`GET`})},PUT(e,t){return d(e,{...t,method:`PUT`})},POST(e,t){return d(e,{...t,method:`POST`})},DELETE(e,t){return d(e,{...t,method:`DELETE`})},OPTIONS(e,t){return d(e,{...t,method:`OPTIONS`})},HEAD(e,t){return d(e,{...t,method:`HEAD`})},PATCH(e,t){return d(e,{...t,method:`PATCH`})},TRACE(e,t){return d(e,{...t,method:`TRACE`})},use(...e){for(let t of e)if(t){if(typeof t!=`object`||!(`onRequest`in t||`onResponse`in t||`onError`in t))throw Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");u.push(t)}},eject(...e){for(let t of e){let e=u.indexOf(t);e!==-1&&u.splice(e,1)}}}}function J(e,t,n){if(t==null)return``;if(typeof t==`object`)throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${n?.allowReserved===!0?t:encodeURIComponent(t)}`}function vn(e,t,n){if(!t||typeof t!=`object`)return``;let r=[],i={simple:`,`,label:`.`,matrix:`;`}[n.style]||`&`;if(n.style!==`deepObject`&&n.explode===!1){for(let e in t)r.push(e,n.allowReserved===!0?t[e]:encodeURIComponent(t[e]));let i=r.join(`,`);switch(n.style){case`form`:return`${e}=${i}`;case`label`:return`.${i}`;case`matrix`:return`;${e}=${i}`;default:return i}}for(let i in t){let a=n.style===`deepObject`?`${e}[${i}]`:i;r.push(J(a,t[i],n))}let a=r.join(i);return n.style===`label`||n.style===`matrix`?`${i}${a}`:a}function yn(e,t,n){if(!Array.isArray(t))return``;if(n.explode===!1){let r={form:`,`,spaceDelimited:`%20`,pipeDelimited:`|`}[n.style]||`,`,i=(n.allowReserved===!0?t:t.map(e=>encodeURIComponent(e))).join(r);switch(n.style){case`simple`:return i;case`label`:return`.${i}`;case`matrix`:return`;${e}=${i}`;default:return`${e}=${i}`}}let r={simple:`,`,label:`.`,matrix:`;`}[n.style]||`&`,i=[];for(let r of t)n.style===`simple`||n.style===`label`?i.push(n.allowReserved===!0?r:encodeURIComponent(r)):i.push(J(e,r,n));return n.style===`label`||n.style===`matrix`?`${r}${i.join(r)}`:i.join(r)}function bn(e){return function(t){let n=[];if(t&&typeof t==`object`)for(let r in t){let i=t[r];if(i!=null){if(Array.isArray(i)){if(i.length===0)continue;n.push(yn(r,i,{style:`form`,explode:!0,...e?.array,allowReserved:e?.allowReserved||!1}));continue}if(typeof i==`object`){n.push(vn(r,i,{style:`deepObject`,explode:!0,...e?.object,allowReserved:e?.allowReserved||!1}));continue}n.push(J(r,i,e))}}return n.join(`&`)}}function xn(e,t){let n=e;for(let r of e.match(mn)??[]){let e=r.substring(1,r.length-1),i=!1,a=`simple`;if(e.endsWith(`*`)&&(i=!0,e=e.substring(0,e.length-1)),e.startsWith(`.`)?(a=`label`,e=e.substring(1)):e.startsWith(`;`)&&(a=`matrix`,e=e.substring(1)),!t||t[e]===void 0||t[e]===null)continue;let o=t[e];if(Array.isArray(o)){n=n.replace(r,yn(e,o,{style:a,explode:i}));continue}if(typeof o==`object`){n=n.replace(r,vn(e,o,{style:a,explode:i}));continue}if(a===`matrix`){n=n.replace(r,`;${J(e,o)}`);continue}n=n.replace(r,a===`label`?`.${encodeURIComponent(o)}`:encodeURIComponent(o))}return n}function Sn(e,t){return e instanceof FormData?e:t&&(t.get instanceof Function?t.get(`Content-Type`)??t.get(`content-type`):t[`Content-Type`]??t[`content-type`])===`application/x-www-form-urlencoded`?new URLSearchParams(e).toString():JSON.stringify(e)}function Cn(e,t){let n=`${t.baseUrl}${e}`;t.params?.path&&(n=t.pathSerializer(n,t.params.path));let r=t.querySerializer(t.params.query??{});return r.startsWith(`?`)&&(r=r.substring(1)),r&&(n+=`?${r}`),n}function wn(...e){let t=new Headers;for(let n of e){if(!n||typeof n!=`object`)continue;let e=n instanceof Headers?n.entries():Object.entries(n);for(let[n,r]of e)if(r===null)t.delete(n);else if(Array.isArray(r))for(let e of r)t.append(n,e);else r!==void 0&&t.set(n,r)}return t}function Tn(e){return e.endsWith(`/`)?e.substring(0,e.length-1):e}function En(e){let t=async({queryKey:[t,n,r],signal:i})=>{let a=e[t.toUpperCase()],{data:o,error:s,response:c}=await a(n,{signal:i,...r});if(s)throw s;return c.status===204||c.headers.get(`Content-Length`)===`0`?o??null:o},n=(e,n,...[r,i])=>({queryKey:r===void 0?[e,n]:[e,n,r],queryFn:t,...i});return{queryOptions:n,useQuery:(e,t,...[r,i,a])=>Ut(n(e,t,r,i),a),useSuspenseQuery:(e,t,...[r,i,a])=>Wt(n(e,t,r,i),a),useInfiniteQuery:(t,r,i,a,o)=>{let{pageParamName:s=`cursor`,...c}=a,{queryKey:l}=n(t,r,i);return Kt({queryKey:l,queryFn:async({queryKey:[t,n,r],pageParam:i=0,signal:a})=>{let o=e[t.toUpperCase()],{data:c,error:l}=await o(n,{...r,signal:a,params:{...r?.params||{},query:{...r?.params?.query,[s]:i}}});if(l)throw l;return c},...c},o)},useMutation:(t,n,r,i)=>Gt({mutationKey:[t,n],mutationFn:async r=>{let i=e[t.toUpperCase()],{data:a,error:o}=await i(n,r);if(o)throw o;return a},...r},i)}}var Dn={0:p,400:a,401:y,500:ae,10001:_e,10002:i,10003:v,10004:ve,10005:ne,10006:ye,10007:ge,10008:te,10009:A,10010:ie,10011:se,10012:ue,10013:k,10014:re,10015:he,10016:oe,10017:E,10018:pe,10019:le,10020:T,10021:j,10022:fe,10023:ce,10024:me,10025:D,10026:n,10027:g,10028:w,10029:S,10030:C,10031:u,10032:de,10033:d,10034:s,10035:ee,10036:b,10037:c,10038:x,10039:r,10040:be,10041:_,10042:f,10043:l,10044:o,10045:h,10046:m};function Y(e){return Dn[e]?.()??Dn[0]()}var On={onRequest({request:e}){let t=we(q);if(t)try{let n=JSON.parse(t);n&&e.headers.set(`Authorization`,`Bearer ${n}`)}catch{}return e},async onResponse({response:e}){if(e.status===401){Rn();let t=encodeURIComponent(window.location.pathname+window.location.search);return window.location.replace(`/sign-in?redirect=${t}`),e}if(e.status===400)try{let t=await e.clone().json(),n=t.status_code&&Y(t.status_code)||t.message||Y(0);Te.error(n)}catch{Te.error(Y(0))}return e.status>=500&&Te.error(Y(500)),e}},X=_n({baseUrl:`/`});X.use(On);var kn=En(X);function An(e,t){try{return JSON.parse(e)}catch{return t}}function jn(){if(typeof window>`u`)return null;try{return window.localStorage}catch{return null}}function Mn(e){return jn()?.getItem(e)??void 0}function Nn(e,t){jn()?.setItem(e,t)}function Pn(e){jn()?.removeItem(e)}var Z={getToken:()=>An(we(`access_token`)||``,``),getUser:()=>An(Mn(`auth_user`)||``,null),setToken:e=>e?Ce(q,JSON.stringify(e)):Se(q),setUser:e=>e?Nn(dn,JSON.stringify(e)):Pn(dn),clear:()=>{Se(q),Pn(dn)}},Fn=Z.getToken(),Q=new un({accessToken:Fn,user:Fn?Z.getUser():null}),$=null;function In(e){Z.setUser(e),Q.setState(t=>({...t,user:e}))}function Ln(e){let t=Q.state.accessToken;Z.setToken(e);let n=t!==e;n&&(Z.setUser(null),$=null),Q.setState(t=>({...t,accessToken:e,user:n?null:t.user})),e&&zn()}function Rn(){Z.clear(),$=null,Q.setState(()=>({accessToken:``,user:null}))}function zn(){let{user:e,accessToken:t}=Q.state;return e?Promise.resolve(e):t?$||($=X.GET(`/admin/api/v1/auth/me`).then(({data:e})=>{let t=e?.data??null;return t&&In(t),t}).catch(()=>(Rn(),null)).finally(()=>{$=null}),$):Promise.resolve(null)}function Bn(){return Yt(Q,e=>e)}export{M as A,Pe as C,F as D,Ie as E,Ke as O,Fe as S,P as T,at as _,kn as a,Ae as b,q as c,un as d,Yt as f,gt as g,St as h,Bn as i,Ee as k,pn as l,Ot as m,Rn as n,Y as o,Ut as p,Ln as r,X as s,Q as t,fn as u,$e as v,Ne as w,L as x,B as y}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{$d as n,Bd as r,Cf as i,Df as a,Ef as o,Fd as s,Gd as c,Hd as l,Id as u,Jd as d,Kd as f,Ld as p,Md as m,Nd as h,Pd as g,Qd as _,Rd as v,Sf as y,Tf as b,Ud as x,Vd as ee,Wd as S,Xd as C,Yd as w,Zd as te,_f as T,af as ne,bf as E,cf as re,df as D,ef as O,ff as k,gf as A,hf as ie,if as j,lf as ae,mf as oe,nf as se,of as ce,pf as le,qd as ue,rf as de,sf as fe,tf as pe,tm as me,uf as he,vf as ge,wf as _e,xf as ve,yf as ye,zd as be}from"./messages-BOatyqUm.js";import{t as xe}from"./with-selector-DBfssCrY.js";import{n as Se,r as Ce,t as we}from"./cookies-BzZOQYPw.js";import{n as Te}from"./dist-JOUh6qvR.js";var M=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ee=new class extends M{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},De={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},N=new class{#e=De;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function Oe(e){setTimeout(e,0)}var ke=typeof window>`u`||`Deno`in globalThis;function P(){}function Ae(e,t){return typeof e==`function`?e(t):e}function je(e){return typeof e==`number`&&e>=0&&e!==1/0}function Me(e,t){return Math.max(e+(t||0)-Date.now(),0)}function F(e,t){return typeof e==`function`?e(t):e}function I(e,t){return typeof e==`function`?e(t):e}function Ne(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Fe(o,t.options))return!1}else if(!Ie(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function Pe(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(L(t.options.mutationKey)!==L(a))return!1}else if(!Ie(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Fe(e,t){return(t?.queryKeyHashFn||L)(e)}function L(e){return JSON.stringify(e,(e,t)=>Be(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Ie(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>Ie(e[n],t[n])):!1}var Le=Object.prototype.hasOwnProperty;function Re(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=ze(e)&&ze(t);if(!r&&!(Be(e)&&Be(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l{N.setTimeout(t,e)})}function Ue(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:Re(e,t)}function We(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Ge(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ke=Symbol();function qe(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Ke?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Je(e,t){return typeof e==`function`?e(...t):!!e}function Ye(e,t,n){let r=!1,i;return Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var z=(()=>{let e=()=>ke;return{isServer(){return e()},setIsServer(t){e=t}}})();function Xe(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var Ze=Oe;function Qe(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Ze,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var B=Qe(),$e=new class extends M{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function et(e){return Math.min(1e3*2**e,3e4)}function tt(e){return(e??`online`)===`online`?$e.isOnline():!0}var nt=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function rt(e){let t=!1,n=0,r,i=Xe(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new nt(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>Ee.isFocused()&&(e.networkMode===`always`||$e.isOnline())&&e.canRun(),u=()=>tt(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(z.isServer()?0:3),o=e.retryDelay??et,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&nl()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var it=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),je(this.gcTime)&&(this.#e=N.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(z.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(N.clearTimeout(this.#e),this.#e=void 0)}},at=class extends it{#e;#t;#n;#r;#i;#a;#o;constructor(e){super(),this.#o=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=ct(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=ct(this.options);e.data!==void 0&&(this.setState(st(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#n.remove(this)}setData(e,t){let n=Ue(this.state.data,e,this.options);return this.#c({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#c({type:`setState`,state:e,setStateOptions:t})}cancel(e){let t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(P).catch(P):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>I(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ke||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>F(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!Me(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#i&&(this.#o||this.#s()?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#s(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#c({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#i?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},i=()=>{let e=qe(this.options,t),n=(()=>{let e={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#o=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:i};return r(e),e})();this.options.behavior?.onFetch(a,this),this.#t=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#c({type:`fetch`,meta:a.fetchOptions?.meta}),this.#i=rt({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof nt&&e.revert&&this.setState({...this.#t,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#c({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#c({type:`pause`})},onContinue:()=>{this.#c({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#i.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#n.config.onSuccess?.(e,this),this.#n.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof nt){if(e.silent)return this.#i.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#c({type:`error`,error:e}),this.#n.config.onError?.(e,this),this.#n.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#c(e){this.state=(t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...ot(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...st(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}})(this.state),B.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#n.notify({query:this,type:`updated`,action:e})})}};function ot(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:tt(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function st(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function ct(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var lt=class extends M{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=Xe(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),dt(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ft(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ft(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof I(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!R(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&pt(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||I(this.options.enabled,this.#t)!==I(t.enabled,this.#t)||F(this.options.staleTime,this.#t)!==F(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||I(this.options.enabled,this.#t)!==I(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return ht(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(P)),t}#g(){this.#b();let e=F(this.options.staleTime,this.#t);if(z.isServer()||this.#r.isStale||!je(e))return;let t=Me(this.#r.dataUpdatedAt,e)+1;this.#d=N.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(z.isServer()||I(this.options.enabled,this.#t)===!1||!je(this.#p)||this.#p===0)&&(this.#f=N.setInterval(()=>{(this.options.refetchIntervalInBackground||Ee.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(N.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(N.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&dt(e,t),o=i&&pt(e,n,t,r);(a||o)&&(l={...l,...ot(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=Ue(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=Ue(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:mt(e,t),refetch:this.refetch,promise:this.#o,isEnabled:I(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=x.data!==void 0,r=x.status===`error`&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},a=()=>{i(this.#o=x.promise=Xe())},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||x.data!==o.value)&&a();break;case`rejected`:(!r||x.error!==o.reason)&&a();break}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!R(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){B.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function ut(e,t){return I(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&t.retryOnMount===!1)}function dt(e,t){return ut(e,t)||e.state.data!==void 0&&ft(e,t,t.refetchOnMount)}function ft(e,t,n){if(I(t.enabled,e)!==!1&&F(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&mt(e,t)}return!1}function pt(e,t,n,r){return(e!==t||I(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&mt(e,n)}function mt(e,t){return I(t.enabled,e)!==!1&&e.isStaleByTime(F(t.staleTime,e))}function ht(e,t){return!R(e.getCurrentResult(),t)}function gt(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Ye(e,()=>t.signal,()=>n=!0)},u=qe(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject();if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?Ge:We;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?vt:_t,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:_t(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(ct.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function _t(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function vt(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function yt(e,t){return t?_t(e,t)!=null:!1}function bt(e,t){return!t||!e.getPreviousPageParam?!1:vt(e,t)!=null}var xt=class extends lt{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:gt()})}getOptimisticResult(e){return e.behavior=gt(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`forward`}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`backward`}}})}createResult(e,t){let{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:o,isRefetchError:s}=r,c=n.fetchMeta?.fetchMore?.direction,l=o&&c===`forward`,u=i&&c===`forward`,d=o&&c===`backward`,f=i&&c===`backward`;return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:yt(t,n.data),hasPreviousPage:bt(t,n.data),isFetchNextPageError:l,isFetchingNextPage:u,isFetchPreviousPageError:d,isFetchingPreviousPage:f,isRefetchError:s&&!l&&!d,isRefetching:a&&!u&&!f}}},St=class extends it{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Ct(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=rt({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){this.state=(t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}})(this.state),B.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Ct(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var wt=class extends M{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),R(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&L(t.mutationKey)!==L(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??Ct();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){B.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},V=e(t(),1),Tt=me(),Et=V.createContext(void 0),Dt=e=>{let t=V.useContext(Et);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Ot=({client:e,children:t})=>(V.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,Tt.jsx)(Et.Provider,{value:e,children:t})),kt=V.createContext(!1),At=()=>V.useContext(kt);kt.Provider;function jt(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Mt=V.createContext(jt()),Nt=()=>V.useContext(Mt),Pt=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?Je(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Ft=e=>{V.useEffect(()=>{e.clearReset()},[e])},It=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||Je(n,[e.error,r])),Lt=(e,t)=>t.state.data===void 0,Rt=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},zt=(e,t)=>e.isLoading&&e.isFetching&&!t,Bt=(e,t)=>e?.suspense&&t.isPending,Vt=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Ht(e,t,n){let r=At(),i=Nt(),a=Dt(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash);o._optimisticResults=r?`isRestoring`:`optimistic`,Rt(o),Pt(o,i,s),Ft(i);let c=!a.getQueryCache().get(o.queryHash),[l]=V.useState(()=>new t(a,o)),u=l.getOptimisticResult(o),d=!r&&e.subscribed!==!1;if(V.useSyncExternalStore(V.useCallback(e=>{let t=d?l.subscribe(B.batchCalls(e)):P;return l.updateResult(),t},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),V.useEffect(()=>{l.setOptions(o)},[o,l]),Bt(o,u))throw Vt(o,l,i);if(It({result:u,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw u.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,u),o.experimental_prefetchInRender&&!z.isServer()&&zt(u,r)&&(c?Vt(o,l,i):s?.promise)?.catch(P).finally(()=>{l.updateResult()}),o.notifyOnChangeProps?u:l.trackResult(u)}function Ut(e,t){return Ht(e,lt,t)}function Wt(e,t){return Ht({...e,enabled:!0,suspense:!0,throwOnError:Lt,placeholderData:void 0},lt,t)}function Gt(e,t){let n=Dt(t),[r]=V.useState(()=>new wt(n,e));V.useEffect(()=>{r.setOptions(e)},[r,e]);let i=V.useSyncExternalStore(V.useCallback(e=>r.subscribe(B.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=V.useCallback((e,t)=>{r.mutate(e,t).catch(P)},[r]);if(i.error&&Je(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function Kt(e,t){return Ht(e,xt,t)}var qt=xe();function Jt(e,t){return e===t}function Yt(e,t,n=Jt){let r=(0,V.useCallback)(t=>{if(!e)return()=>{};let{unsubscribe:n}=e.subscribe(t);return n},[e]),i=(0,V.useCallback)(()=>e?.get(),[e]);return(0,qt.useSyncExternalStoreWithSelector)(r,i,i,t,n)}var H=function(e){return e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e}({});function Xt({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&(H.RecursedCheck|H.Recursed|H.Dirty|H.Pending)?a&(H.RecursedCheck|H.Recursed)?a&H.RecursedCheck?!(a&(H.Dirty|H.Pending))&&c(e,i)?(i.flags=a|(H.Recursed|H.Pending),a&=H.Mutable):a=H.None:i.flags=a&~H.Recursed|H.Pending:a=H.None:i.flags=a|H.Pending,a&H.Watching&&t(i),a&H.Mutable){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&H.Dirty)a=!0;else if((c&(H.Mutable|H.Dirty))===(H.Mutable|H.Dirty)){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&(H.Mutable|H.Pending))===(H.Mutable|H.Pending)){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=~H.Pending;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&(H.Pending|H.Dirty))===H.Pending&&(n.flags=r|H.Dirty,(r&(H.Watching|H.RecursedCheck))===H.Watching&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function Zt(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var Qt=[],U=0,{link:$t,unlink:en,propagate:tn,checkDirty:nn,shallowPropagate:rn}=Xt({update(e){return e._update()},notify(e){Qt[an++]=e,e.flags&=~H.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=H.Mutable|H.Dirty,K(e))}}),W=0,an=0,G,on=0;function K(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=en(n,e)}function sn(){if(!(on>0)){for(;W{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=G,o=t?.compare??Object.is;if(n)G=i,++U,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=H.Mutable|H.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{G=a,n&&(i.flags&=~H.RecursedCheck),K(i)}}};return n?(i.flags=H.Mutable|H.Dirty,i.get=function(){let e=i.flags;if(e&H.Dirty||e&H.Pending&&nn(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&rn(e)}}else e&H.Pending&&(i.flags=e&~H.Pending);return G!==void 0&&$t(i,G,U),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(tn(e),rn(e),sn())}},i}function ln(e){let t=()=>{let t=G;G=n,++U,n.depsTail=void 0,n.flags=H.Watching|H.RecursedCheck;try{return e()}finally{G=t,n.flags&=~H.RecursedCheck,K(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:H.Watching|H.RecursedCheck,notify(){let e=this.flags;e&H.Dirty||e&H.Pending&&nn(this.deps,this)?t():this.flags=H.Watching},stop(){this.flags=H.None,this.depsTail=void 0,K(this)}};return t(),n}var un=class{constructor(e){this.atom=cn(e)}setState(e){this.atom.set(e)}get state(){return this.atom.get()}get(){return this.state}subscribe(e){return this.atom.subscribe(Zt(e))}},q=`access_token`,dn=`auth_user`,fn=`sidebar_state`,pn=3600*24*7,mn=/\{[^{}]+\}/g,hn=()=>typeof process==`object`&&Number.parseInt(process?.versions?.node?.substring(0,2))>=18&&process.versions.undici;function gn(){return Math.random().toString(36).slice(2,11)}function _n(e){let{baseUrl:t=``,Request:n=globalThis.Request,fetch:r=globalThis.fetch,querySerializer:i,bodySerializer:a,pathSerializer:o,headers:s,requestInitExt:c=void 0,...l}={...e};c=hn()?c:void 0,t=Tn(t);let u=[];async function d(e,d){let{baseUrl:f,fetch:p=r,Request:m=n,headers:h,params:g={},parseAs:_=`json`,querySerializer:v,bodySerializer:y=a??Sn,pathSerializer:b,body:x,middleware:ee=[],...S}=d||{},C=t;f&&(C=Tn(f)??t);let w=typeof i==`function`?i:bn(i);v&&(w=typeof v==`function`?v:bn({...typeof i==`object`?i:{},...v}));let te=b||o||xn,T=x===void 0?void 0:y(x,wn(s,h,g.header)),ne=wn(T===void 0||T instanceof FormData?{}:{"Content-Type":`application/json`},s,h,g.header),E=[...u,...ee],re={redirect:`follow`,...l,...S,body:T,headers:ne},D,O,k=new m(Cn(e,{baseUrl:C,params:g,querySerializer:w,pathSerializer:te}),re),A;for(let e in S)e in k||(k[e]=S[e]);if(E.length){D=gn(),O=Object.freeze({baseUrl:C,fetch:p,parseAs:_,querySerializer:w,bodySerializer:y,pathSerializer:te});for(let t of E)if(t&&typeof t==`object`&&typeof t.onRequest==`function`){let n=await t.onRequest({request:k,schemaPath:e,params:g,options:O,id:D});if(n)if(n instanceof m)k=n;else if(n instanceof Response){A=n;break}else throw Error(`onRequest: must return new Request() or Response() when modifying the request`)}}if(!A){try{A=await p(k,c)}catch(t){let n=t;if(E.length)for(let t=E.length-1;t>=0;t--){let r=E[t];if(r&&typeof r==`object`&&typeof r.onError==`function`){let t=await r.onError({request:k,error:n,schemaPath:e,params:g,options:O,id:D});if(t){if(t instanceof Response){n=void 0,A=t;break}if(t instanceof Error){n=t;continue}throw Error(`onError: must return new Response() or instance of Error`)}}}if(n)throw n}if(E.length)for(let t=E.length-1;t>=0;t--){let n=E[t];if(n&&typeof n==`object`&&typeof n.onResponse==`function`){let t=await n.onResponse({request:k,response:A,schemaPath:e,params:g,options:O,id:D});if(t){if(!(t instanceof Response))throw Error(`onResponse: must return new Response() when modifying the response`);A=t}}}}let ie=A.headers.get(`Content-Length`);if(A.status===204||k.method===`HEAD`||ie===`0`&&!A.headers.get(`Transfer-Encoding`)?.includes(`chunked`))return A.ok?{data:void 0,response:A}:{error:void 0,response:A};if(A.ok)return{data:await(async()=>{if(_===`stream`)return A.body;if(_===`json`&&!ie){let e=await A.text();return e?JSON.parse(e):void 0}return await A[_]()})(),response:A};let j=await A.text();try{j=JSON.parse(j)}catch{}return{error:j,response:A}}return{request(e,t,n){return d(t,{...n,method:e.toUpperCase()})},GET(e,t){return d(e,{...t,method:`GET`})},PUT(e,t){return d(e,{...t,method:`PUT`})},POST(e,t){return d(e,{...t,method:`POST`})},DELETE(e,t){return d(e,{...t,method:`DELETE`})},OPTIONS(e,t){return d(e,{...t,method:`OPTIONS`})},HEAD(e,t){return d(e,{...t,method:`HEAD`})},PATCH(e,t){return d(e,{...t,method:`PATCH`})},TRACE(e,t){return d(e,{...t,method:`TRACE`})},use(...e){for(let t of e)if(t){if(typeof t!=`object`||!(`onRequest`in t||`onResponse`in t||`onError`in t))throw Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");u.push(t)}},eject(...e){for(let t of e){let e=u.indexOf(t);e!==-1&&u.splice(e,1)}}}}function J(e,t,n){if(t==null)return``;if(typeof t==`object`)throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${n?.allowReserved===!0?t:encodeURIComponent(t)}`}function vn(e,t,n){if(!t||typeof t!=`object`)return``;let r=[],i={simple:`,`,label:`.`,matrix:`;`}[n.style]||`&`;if(n.style!==`deepObject`&&n.explode===!1){for(let e in t)r.push(e,n.allowReserved===!0?t[e]:encodeURIComponent(t[e]));let i=r.join(`,`);switch(n.style){case`form`:return`${e}=${i}`;case`label`:return`.${i}`;case`matrix`:return`;${e}=${i}`;default:return i}}for(let i in t){let a=n.style===`deepObject`?`${e}[${i}]`:i;r.push(J(a,t[i],n))}let a=r.join(i);return n.style===`label`||n.style===`matrix`?`${i}${a}`:a}function yn(e,t,n){if(!Array.isArray(t))return``;if(n.explode===!1){let r={form:`,`,spaceDelimited:`%20`,pipeDelimited:`|`}[n.style]||`,`,i=(n.allowReserved===!0?t:t.map(e=>encodeURIComponent(e))).join(r);switch(n.style){case`simple`:return i;case`label`:return`.${i}`;case`matrix`:return`;${e}=${i}`;default:return`${e}=${i}`}}let r={simple:`,`,label:`.`,matrix:`;`}[n.style]||`&`,i=[];for(let r of t)n.style===`simple`||n.style===`label`?i.push(n.allowReserved===!0?r:encodeURIComponent(r)):i.push(J(e,r,n));return n.style===`label`||n.style===`matrix`?`${r}${i.join(r)}`:i.join(r)}function bn(e){return function(t){let n=[];if(t&&typeof t==`object`)for(let r in t){let i=t[r];if(i!=null){if(Array.isArray(i)){if(i.length===0)continue;n.push(yn(r,i,{style:`form`,explode:!0,...e?.array,allowReserved:e?.allowReserved||!1}));continue}if(typeof i==`object`){n.push(vn(r,i,{style:`deepObject`,explode:!0,...e?.object,allowReserved:e?.allowReserved||!1}));continue}n.push(J(r,i,e))}}return n.join(`&`)}}function xn(e,t){let n=e;for(let r of e.match(mn)??[]){let e=r.substring(1,r.length-1),i=!1,a=`simple`;if(e.endsWith(`*`)&&(i=!0,e=e.substring(0,e.length-1)),e.startsWith(`.`)?(a=`label`,e=e.substring(1)):e.startsWith(`;`)&&(a=`matrix`,e=e.substring(1)),!t||t[e]===void 0||t[e]===null)continue;let o=t[e];if(Array.isArray(o)){n=n.replace(r,yn(e,o,{style:a,explode:i}));continue}if(typeof o==`object`){n=n.replace(r,vn(e,o,{style:a,explode:i}));continue}if(a===`matrix`){n=n.replace(r,`;${J(e,o)}`);continue}n=n.replace(r,a===`label`?`.${encodeURIComponent(o)}`:encodeURIComponent(o))}return n}function Sn(e,t){return e instanceof FormData?e:t&&(t.get instanceof Function?t.get(`Content-Type`)??t.get(`content-type`):t[`Content-Type`]??t[`content-type`])===`application/x-www-form-urlencoded`?new URLSearchParams(e).toString():JSON.stringify(e)}function Cn(e,t){let n=`${t.baseUrl}${e}`;t.params?.path&&(n=t.pathSerializer(n,t.params.path));let r=t.querySerializer(t.params.query??{});return r.startsWith(`?`)&&(r=r.substring(1)),r&&(n+=`?${r}`),n}function wn(...e){let t=new Headers;for(let n of e){if(!n||typeof n!=`object`)continue;let e=n instanceof Headers?n.entries():Object.entries(n);for(let[n,r]of e)if(r===null)t.delete(n);else if(Array.isArray(r))for(let e of r)t.append(n,e);else r!==void 0&&t.set(n,r)}return t}function Tn(e){return e.endsWith(`/`)?e.substring(0,e.length-1):e}function En(e){let t=async({queryKey:[t,n,r],signal:i})=>{let a=e[t.toUpperCase()],{data:o,error:s,response:c}=await a(n,{signal:i,...r});if(s)throw s;return c.status===204||c.headers.get(`Content-Length`)===`0`?o??null:o},n=(e,n,...[r,i])=>({queryKey:r===void 0?[e,n]:[e,n,r],queryFn:t,...i});return{queryOptions:n,useQuery:(e,t,...[r,i,a])=>Ut(n(e,t,r,i),a),useSuspenseQuery:(e,t,...[r,i,a])=>Wt(n(e,t,r,i),a),useInfiniteQuery:(t,r,i,a,o)=>{let{pageParamName:s=`cursor`,...c}=a,{queryKey:l}=n(t,r,i);return Kt({queryKey:l,queryFn:async({queryKey:[t,n,r],pageParam:i=0,signal:a})=>{let o=e[t.toUpperCase()],{data:c,error:l}=await o(n,{...r,signal:a,params:{...r?.params||{},query:{...r?.params?.query,[s]:i}}});if(l)throw l;return c},...c},o)},useMutation:(t,n,r,i)=>Gt({mutationKey:[t,n],mutationFn:async r=>{let i=e[t.toUpperCase()],{data:a,error:o}=await i(n,r);if(o)throw o;return a},...r},i)}}var Dn={0:h,400:a,401:o,500:m,10001:b,10002:_e,10003:i,10004:y,10005:ve,10006:E,10007:ye,10008:ge,10009:T,10010:A,10011:ie,10012:oe,10013:le,10014:k,10015:D,10016:he,10017:ae,10018:re,10019:fe,10020:ce,10021:ne,10022:j,10023:de,10024:se,10025:pe,10026:O,10027:n,10028:_,10029:te,10030:C,10031:w,10032:d,10033:ue,10034:f,10035:c,10036:S,10037:x,10038:l,10039:ee,10040:r,10041:be,10042:v,10043:p,10044:u,10045:s,10046:g};function Y(e){return Dn[e]?.()??Dn[0]()}var On={onRequest({request:e}){let t=we(q);if(t)try{let n=JSON.parse(t);n&&e.headers.set(`Authorization`,`Bearer ${n}`)}catch{}return e},async onResponse({response:e}){if(e.status===401){Rn();let t=encodeURIComponent(window.location.pathname+window.location.search);return window.location.replace(`/sign-in?redirect=${t}`),e}if(e.status===400)try{let t=await e.clone().json(),n=t.status_code&&Y(t.status_code)||t.message||Y(0);Te.error(n)}catch{Te.error(Y(0))}return e.status>=500&&Te.error(Y(500)),e}},X=_n({baseUrl:`/`});X.use(On);var kn=En(X);function An(e,t){try{return JSON.parse(e)}catch{return t}}function jn(){if(typeof window>`u`)return null;try{return window.localStorage}catch{return null}}function Mn(e){return jn()?.getItem(e)??void 0}function Nn(e,t){jn()?.setItem(e,t)}function Pn(e){jn()?.removeItem(e)}var Z={getToken:()=>An(we(`access_token`)||``,``),getUser:()=>An(Mn(`auth_user`)||``,null),setToken:e=>e?Ce(q,JSON.stringify(e)):Se(q),setUser:e=>e?Nn(dn,JSON.stringify(e)):Pn(dn),clear:()=>{Se(q),Pn(dn)}},Fn=Z.getToken(),Q=new un({accessToken:Fn,user:Fn?Z.getUser():null}),$=null;function In(e){Z.setUser(e),Q.setState(t=>({...t,user:e}))}function Ln(e){let t=Q.state.accessToken;Z.setToken(e);let n=t!==e;n&&(Z.setUser(null),$=null),Q.setState(t=>({...t,accessToken:e,user:n?null:t.user})),e&&zn()}function Rn(){Z.clear(),$=null,Q.setState(()=>({accessToken:``,user:null}))}function zn(){let{user:e,accessToken:t}=Q.state;return e?Promise.resolve(e):t?$||($=X.GET(`/admin/api/v1/auth/me`).then(({data:e})=>{let t=e?.data??null;return t&&In(t),t}).catch(()=>(Rn(),null)).finally(()=>{$=null}),$):Promise.resolve(null)}function Bn(){return Yt(Q,e=>e)}export{M as A,Pe as C,F as D,Ie as E,Ke as O,Fe as S,P as T,at as _,kn as a,Ae as b,q as c,un as d,Yt as f,gt as g,St as h,Bn as i,Ee as k,pn as l,Ot as m,Rn as n,Y as o,Ut as p,Ln as r,X as s,Q as t,fn as u,$e as v,Ne as w,L as x,B as y}; \ No newline at end of file diff --git a/src/www/assets/badge-BP05f1dq.js b/src/www/assets/badge-VJlwwTW5.js similarity index 90% rename from src/www/assets/badge-BP05f1dq.js rename to src/www/assets/badge-VJlwwTW5.js index 1e03236..abc1a08 100644 --- a/src/www/assets/badge-BP05f1dq.js +++ b/src/www/assets/badge-VJlwwTW5.js @@ -1 +1 @@ -import{em as e}from"./messages-Bp0bCjzp.js";import{i as t,o as n,r}from"./button-BgMnOYKD.js";var i=e(),a=r(`inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-full border border-transparent px-2 py-0.5 font-medium text-xs transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3`,{variants:{variant:{default:`bg-primary text-primary-foreground [a&]:hover:bg-primary/90`,secondary:`bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90`,destructive:`bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90`,outline:`border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground`,ghost:`[a&]:hover:bg-accent [a&]:hover:text-accent-foreground`,link:`text-primary underline-offset-4 [a&]:hover:underline`}},defaultVariants:{variant:`default`}});function o({className:e,variant:r=`default`,asChild:o=!1,...s}){return(0,i.jsx)(o?n:`span`,{className:t(a({variant:r}),e),"data-slot":`badge`,"data-variant":r,...s})}export{o as t}; \ No newline at end of file +import{tm as e}from"./messages-BOatyqUm.js";import{i as t,o as n,r}from"./button-C_NDYaz8.js";var i=e(),a=r(`inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-full border border-transparent px-2 py-0.5 font-medium text-xs transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3`,{variants:{variant:{default:`bg-primary text-primary-foreground [a&]:hover:bg-primary/90`,secondary:`bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90`,destructive:`bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90`,outline:`border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground`,ghost:`[a&]:hover:bg-accent [a&]:hover:text-accent-foreground`,link:`text-primary underline-offset-4 [a&]:hover:underline`}},defaultVariants:{variant:`default`}});function o({className:e,variant:r=`default`,asChild:o=!1,...s}){return(0,i.jsx)(o?n:`span`,{className:t(a({variant:r}),e),"data-slot":`badge`,"data-variant":r,...s})}export{o as t}; \ No newline at end of file diff --git a/src/www/assets/button-BgMnOYKD.js b/src/www/assets/button-C_NDYaz8.js similarity index 99% rename from src/www/assets/button-BgMnOYKD.js rename to src/www/assets/button-C_NDYaz8.js index 720b0cc..9cb34ec 100644 --- a/src/www/assets/button-BgMnOYKD.js +++ b/src/www/assets/button-C_NDYaz8.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";import{t as r}from"./clsx-D9aGYY3V.js";var i=e(t(),1);function a(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function o(...e){return t=>{let n=!1,r=e.map(e=>{let r=a(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t{let{children:r,...a}=e,o=i.Children.toArray(r),s=o.find(p);if(s){let e=s.props.children,r=o.map(t=>t===s?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,c.jsx)(t,{...a,ref:n,children:i.isValidElement(e)?i.cloneElement(e,void 0,r):null})}return(0,c.jsx)(t,{...a,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var u=l(`Slot`);function ee(e){let t=i.forwardRef((e,t)=>{let{children:n,...r}=e;if(i.isValidElement(n)){let e=h(n),a=m(r,n.props);return n.type!==i.Fragment&&(a.ref=t?o(t,e):e),i.cloneElement(n,a)}return i.Children.count(n)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var d=Symbol(`radix.slottable`);function f(e){let t=({children:e})=>(0,c.jsx)(c.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=d,t}function p(e){return i.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===d}function m(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function h(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var g=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t({classGroupId:e,validator:t}),v=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),y=`-`,b=[],te=`arbitrary..`,ne=e=>{let t=re(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return S(e);let n=e.split(y);return x(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?g(i,t):t:i||b}return n[e]||b}}},x=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=x(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(y):e.slice(t).join(y),s=a.length;for(let e=0;ee.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?te+r:void 0})(),re=e=>{let{theme:t,classGroups:n}=e;return ie(n,t)},ie=(e,t)=>{let n=v();for(let r in e){let i=e[r];C(i,n,r,t)}return n},C=(e,t,n,r)=>{let i=e.length;for(let a=0;a{if(typeof e==`string`){w(e,t,n);return}if(typeof e==`function`){T(e,t,n,r);return}E(e,t,n,r)},w=(e,t,n)=>{let r=e===``?t:D(t,e);r.classGroupId=n},T=(e,t,n,r)=>{if(O(e)){C(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(_(n,e))},E=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e{let n=e,r=t.split(y),i=r.length;for(let e=0;e`isThemeGetter`in e&&e.isThemeGetter===!0,oe=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},k=`!`,A=`:`,se=[],j=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),M=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;si?a-i:void 0;return j(t,l,c,u)};if(t){let e=t+A,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):j(se,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},N=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},P=e=>({cache:oe(e.cacheSize),parseClassName:M(e),sortModifiers:N(e),...ne(e)}),F=/\s+/,ce=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(F),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:ee,baseClassName:d,maybePostfixModifierPosition:f}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let p=!!f,m=r(p?d.substring(0,f):d);if(!m){if(!p){c=t+(c.length>0?` `+c:c);continue}if(m=r(d),!m){c=t+(c.length>0?` `+c:c);continue}p=!1}let h=u.length===0?``:u.length===1?u[0]:a(u).join(`:`),g=ee?h+k:h,_=g+m;if(o.indexOf(_)>-1)continue;o.push(_);let v=i(m,p);for(let e=0;e0?` `+c:c)}return c},I=(...e)=>{let t=0,n,r,i=``;for(;t{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r{let n,r,i,a,o=o=>(n=P(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=ce(e,n);return i(e,a),a};return a=o,(...e)=>a(I(...e))},z=[],B=e=>{let t=t=>t[e]||z;return t.isThemeGetter=!0,t},V=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,H=/^\((?:(\w[\w-]*):)?(.+)\)$/i,le=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ue=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,de=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,fe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,pe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,me=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,U=e=>le.test(e),W=e=>!!e&&!Number.isNaN(Number(e)),G=e=>!!e&&Number.isInteger(Number(e)),he=e=>e.endsWith(`%`)&&W(e.slice(0,-1)),K=e=>ue.test(e),ge=()=>!0,_e=e=>de.test(e)&&!fe.test(e),ve=()=>!1,ye=e=>pe.test(e),be=e=>me.test(e),xe=e=>!q(e)&&!X(e),Se=e=>Q(e,Ie,ve),q=e=>V.test(e),J=e=>Q(e,Le,_e),Ce=e=>Q(e,Re,W),we=e=>Q(e,Be,ge),Te=e=>Q(e,ze,ve),Ee=e=>Q(e,Pe,ve),De=e=>Q(e,Fe,be),Y=e=>Q(e,Ve,ye),X=e=>H.test(e),Z=e=>$(e,Le),Oe=e=>$(e,ze),ke=e=>$(e,Pe),Ae=e=>$(e,Ie),je=e=>$(e,Fe),Me=e=>$(e,Ve,!0),Ne=e=>$(e,Be,!0),Q=(e,t,n)=>{let r=V.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},$=(e,t,n=!1)=>{let r=H.exec(e);return r?r[1]?t(r[1]):n:!1},Pe=e=>e===`position`||e===`percentage`,Fe=e=>e===`image`||e===`url`,Ie=e=>e===`length`||e===`size`||e===`bg-size`,Le=e=>e===`length`,Re=e=>e===`number`,ze=e=>e===`family-name`,Be=e=>e===`number`||e===`weight`,Ve=e=>e===`shadow`,He=R(()=>{let e=B(`color`),t=B(`font`),n=B(`text`),r=B(`font-weight`),i=B(`tracking`),a=B(`leading`),o=B(`breakpoint`),s=B(`container`),c=B(`spacing`),l=B(`radius`),u=B(`shadow`),ee=B(`inset-shadow`),d=B(`text-shadow`),f=B(`drop-shadow`),p=B(`blur`),m=B(`perspective`),h=B(`aspect`),g=B(`ease`),_=B(`animate`),v=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],y=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],b=()=>[...y(),X,q],te=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],ne=()=>[`auto`,`contain`,`none`],x=()=>[X,q,c],S=()=>[U,`full`,`auto`,...x()],re=()=>[G,`none`,`subgrid`,X,q],ie=()=>[`auto`,{span:[`full`,G,X,q]},G,X,q],C=()=>[G,`auto`,X,q],ae=()=>[`auto`,`min`,`max`,`fr`,X,q],w=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],T=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],E=()=>[`auto`,...x()],D=()=>[U,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...x()],O=()=>[U,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...x()],oe=()=>[U,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...x()],k=()=>[e,X,q],A=()=>[...y(),ke,Ee,{position:[X,q]}],se=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],j=()=>[`auto`,`cover`,`contain`,Ae,Se,{size:[X,q]}],M=()=>[he,Z,J],N=()=>[``,`none`,`full`,l,X,q],P=()=>[``,W,Z,J],F=()=>[`solid`,`dashed`,`dotted`,`double`],ce=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],I=()=>[W,he,ke,Ee],L=()=>[``,`none`,p,X,q],R=()=>[`none`,W,X,q],z=()=>[`none`,W,X,q],V=()=>[W,X,q],H=()=>[U,`full`,...x()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[K],breakpoint:[K],color:[ge],container:[K],"drop-shadow":[K],ease:[`in`,`out`,`in-out`],font:[xe],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[K],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[K],shadow:[K],spacing:[`px`,W],text:[K],"text-shadow":[K],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,U,q,X,h]}],container:[`container`],columns:[{columns:[W,q,X,s]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:b()}],overflow:[{overflow:te()}],"overflow-x":[{"overflow-x":te()}],"overflow-y":[{"overflow-y":te()}],overscroll:[{overscroll:ne()}],"overscroll-x":[{"overscroll-x":ne()}],"overscroll-y":[{"overscroll-y":ne()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:S()}],"inset-x":[{"inset-x":S()}],"inset-y":[{"inset-y":S()}],start:[{"inset-s":S(),start:S()}],end:[{"inset-e":S(),end:S()}],"inset-bs":[{"inset-bs":S()}],"inset-be":[{"inset-be":S()}],top:[{top:S()}],right:[{right:S()}],bottom:[{bottom:S()}],left:[{left:S()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[G,`auto`,X,q]}],basis:[{basis:[U,`full`,`auto`,s,...x()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[W,U,`auto`,`initial`,`none`,q]}],grow:[{grow:[``,W,X,q]}],shrink:[{shrink:[``,W,X,q]}],order:[{order:[G,`first`,`last`,`none`,X,q]}],"grid-cols":[{"grid-cols":re()}],"col-start-end":[{col:ie()}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":re()}],"row-start-end":[{row:ie()}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ae()}],"auto-rows":[{"auto-rows":ae()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...w(),`normal`]}],"justify-items":[{"justify-items":[...T(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...T()]}],"align-content":[{content:[`normal`,...w()]}],"align-items":[{items:[...T(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...T(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":w()}],"place-items":[{"place-items":[...T(),`baseline`]}],"place-self":[{"place-self":[`auto`,...T()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mbs:[{mbs:E()}],mbe:[{mbe:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":x()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":x()}],"space-y-reverse":[`space-y-reverse`],size:[{size:D()}],"inline-size":[{inline:[`auto`,...O()]}],"min-inline-size":[{"min-inline":[`auto`,...O()]}],"max-inline-size":[{"max-inline":[`none`,...O()]}],"block-size":[{block:[`auto`,...oe()]}],"min-block-size":[{"min-block":[`auto`,...oe()]}],"max-block-size":[{"max-block":[`none`,...oe()]}],w:[{w:[s,`screen`,...D()]}],"min-w":[{"min-w":[s,`screen`,`none`,...D()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...D()]}],h:[{h:[`screen`,`lh`,...D()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...D()]}],"max-h":[{"max-h":[`screen`,`lh`,...D()]}],"font-size":[{text:[`base`,n,Z,J]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Ne,we]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,he,q]}],"font-family":[{font:[Oe,Te,t]}],"font-features":[{"font-features":[q]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,X,q]}],"line-clamp":[{"line-clamp":[W,`none`,X,Ce]}],leading:[{leading:[a,...x()]}],"list-image":[{"list-image":[`none`,X,q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,X,q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...F(),`wavy`]}],"text-decoration-thickness":[{decoration:[W,`from-font`,`auto`,X,J]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[W,`auto`,X,q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:x()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,X,q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,X,q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:se()}],"bg-size":[{bg:j()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},G,X,q],radial:[``,X,q],conic:[G,X,q]},je,De]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:M()}],"gradient-via-pos":[{via:M()}],"gradient-to-pos":[{to:M()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:N()}],"rounded-s":[{"rounded-s":N()}],"rounded-e":[{"rounded-e":N()}],"rounded-t":[{"rounded-t":N()}],"rounded-r":[{"rounded-r":N()}],"rounded-b":[{"rounded-b":N()}],"rounded-l":[{"rounded-l":N()}],"rounded-ss":[{"rounded-ss":N()}],"rounded-se":[{"rounded-se":N()}],"rounded-ee":[{"rounded-ee":N()}],"rounded-es":[{"rounded-es":N()}],"rounded-tl":[{"rounded-tl":N()}],"rounded-tr":[{"rounded-tr":N()}],"rounded-br":[{"rounded-br":N()}],"rounded-bl":[{"rounded-bl":N()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-bs":[{"border-bs":P()}],"border-w-be":[{"border-be":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":P()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...F(),`hidden`,`none`]}],"divide-style":[{divide:[...F(),`hidden`,`none`]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-bs":[{"border-bs":k()}],"border-color-be":[{"border-be":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...F(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[W,X,q]}],"outline-w":[{outline:[``,W,Z,J]}],"outline-color":[{outline:k()}],shadow:[{shadow:[``,`none`,u,Me,Y]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":[`none`,ee,Me,Y]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:P()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[W,J]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":[`none`,d,Me,Y]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[W,X,q]}],"mix-blend":[{"mix-blend":[...ce(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ce()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[W]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[X,q]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":y()}],"mask-image-conic-pos":[{"mask-conic":[W]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:se()}],"mask-size":[{mask:j()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,X,q]}],filter:[{filter:[``,`none`,X,q]}],blur:[{blur:L()}],brightness:[{brightness:[W,X,q]}],contrast:[{contrast:[W,X,q]}],"drop-shadow":[{"drop-shadow":[``,`none`,f,Me,Y]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:[``,W,X,q]}],"hue-rotate":[{"hue-rotate":[W,X,q]}],invert:[{invert:[``,W,X,q]}],saturate:[{saturate:[W,X,q]}],sepia:[{sepia:[``,W,X,q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,X,q]}],"backdrop-blur":[{"backdrop-blur":L()}],"backdrop-brightness":[{"backdrop-brightness":[W,X,q]}],"backdrop-contrast":[{"backdrop-contrast":[W,X,q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,W,X,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[W,X,q]}],"backdrop-invert":[{"backdrop-invert":[``,W,X,q]}],"backdrop-opacity":[{"backdrop-opacity":[W,X,q]}],"backdrop-saturate":[{"backdrop-saturate":[W,X,q]}],"backdrop-sepia":[{"backdrop-sepia":[``,W,X,q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,X,q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[W,`initial`,X,q]}],ease:[{ease:[`linear`,`initial`,g,X,q]}],delay:[{delay:[W,X,q]}],animate:[{animate:[`none`,_,X,q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[m,X,q]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:R()}],"rotate-x":[{"rotate-x":R()}],"rotate-y":[{"rotate-y":R()}],"rotate-z":[{"rotate-z":R()}],scale:[{scale:z()}],"scale-x":[{"scale-x":z()}],"scale-y":[{"scale-y":z()}],"scale-z":[{"scale-z":z()}],"scale-3d":[`scale-3d`],skew:[{skew:V()}],"skew-x":[{"skew-x":V()}],"skew-y":[{"skew-y":V()}],transform:[{transform:[X,q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:H()}],"translate-x":[{"translate-x":H()}],"translate-y":[{"translate-y":H()}],"translate-z":[{"translate-z":H()}],"translate-none":[`translate-none`],accent:[{accent:k()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,X,q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,X,q]}],fill:[{fill:[`none`,...k()]}],"stroke-w":[{stroke:[W,Z,J,Ce]}],stroke:[{stroke:[`none`,...k()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function Ue(...e){return He(r(e))}function We(e,t){let n=[];if(t<=5)for(let e=1;e<=t;e++)n.push(e);else if(n.push(1),e<=3){for(let e=2;e<=4;e++)n.push(e);n.push(`...`,t)}else if(e>=t-2){n.push(`...`);for(let e=t-3;e<=t;e++)n.push(e)}else{n.push(`...`);for(let t=e-1;t<=e+1;t++)n.push(t);n.push(`...`,t)}return n}var Ge=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Ke=r,qe=(e,t)=>n=>{if(t?.variants==null)return Ke(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Ge(t)||Ge(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Ke(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Je=qe(`inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-none transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/90`,destructive:`bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40`,outline:`border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2 has-[>svg]:px-3`,xs:`h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5`,lg:`h-10 rounded-md px-6 has-[>svg]:px-4`,icon:`size-9`,"icon-xs":`size-6 rounded-md [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-8`,"icon-lg":`size-10`}},defaultVariants:{variant:`default`,size:`default`}});function Ye({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i}){return(0,c.jsx)(r?u:`button`,{className:Ue(Je({variant:t,size:n,className:e})),"data-size":n,"data-slot":`button`,"data-variant":t,...i})}export{We as a,f as c,Ue as i,o as l,Je as n,u as o,qe as r,l as s,Ye as t,s as u}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./clsx-D9aGYY3V.js";var i=e(t(),1);function a(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function o(...e){return t=>{let n=!1,r=e.map(e=>{let r=a(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t{let{children:r,...a}=e,o=i.Children.toArray(r),s=o.find(p);if(s){let e=s.props.children,r=o.map(t=>t===s?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,c.jsx)(t,{...a,ref:n,children:i.isValidElement(e)?i.cloneElement(e,void 0,r):null})}return(0,c.jsx)(t,{...a,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var u=l(`Slot`);function ee(e){let t=i.forwardRef((e,t)=>{let{children:n,...r}=e;if(i.isValidElement(n)){let e=h(n),a=m(r,n.props);return n.type!==i.Fragment&&(a.ref=t?o(t,e):e),i.cloneElement(n,a)}return i.Children.count(n)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var d=Symbol(`radix.slottable`);function f(e){let t=({children:e})=>(0,c.jsx)(c.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=d,t}function p(e){return i.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===d}function m(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function h(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var g=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t({classGroupId:e,validator:t}),v=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),y=`-`,b=[],te=`arbitrary..`,ne=e=>{let t=re(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return S(e);let n=e.split(y);return x(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?g(i,t):t:i||b}return n[e]||b}}},x=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=x(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(y):e.slice(t).join(y),s=a.length;for(let e=0;ee.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?te+r:void 0})(),re=e=>{let{theme:t,classGroups:n}=e;return ie(n,t)},ie=(e,t)=>{let n=v();for(let r in e){let i=e[r];C(i,n,r,t)}return n},C=(e,t,n,r)=>{let i=e.length;for(let a=0;a{if(typeof e==`string`){w(e,t,n);return}if(typeof e==`function`){T(e,t,n,r);return}E(e,t,n,r)},w=(e,t,n)=>{let r=e===``?t:D(t,e);r.classGroupId=n},T=(e,t,n,r)=>{if(O(e)){C(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(_(n,e))},E=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e{let n=e,r=t.split(y),i=r.length;for(let e=0;e`isThemeGetter`in e&&e.isThemeGetter===!0,oe=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},k=`!`,A=`:`,se=[],j=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),M=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;si?a-i:void 0;return j(t,l,c,u)};if(t){let e=t+A,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):j(se,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},N=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},P=e=>({cache:oe(e.cacheSize),parseClassName:M(e),sortModifiers:N(e),...ne(e)}),F=/\s+/,ce=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(F),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:ee,baseClassName:d,maybePostfixModifierPosition:f}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let p=!!f,m=r(p?d.substring(0,f):d);if(!m){if(!p){c=t+(c.length>0?` `+c:c);continue}if(m=r(d),!m){c=t+(c.length>0?` `+c:c);continue}p=!1}let h=u.length===0?``:u.length===1?u[0]:a(u).join(`:`),g=ee?h+k:h,_=g+m;if(o.indexOf(_)>-1)continue;o.push(_);let v=i(m,p);for(let e=0;e0?` `+c:c)}return c},I=(...e)=>{let t=0,n,r,i=``;for(;t{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r{let n,r,i,a,o=o=>(n=P(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=ce(e,n);return i(e,a),a};return a=o,(...e)=>a(I(...e))},z=[],B=e=>{let t=t=>t[e]||z;return t.isThemeGetter=!0,t},V=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,H=/^\((?:(\w[\w-]*):)?(.+)\)$/i,le=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ue=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,de=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,fe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,pe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,me=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,U=e=>le.test(e),W=e=>!!e&&!Number.isNaN(Number(e)),G=e=>!!e&&Number.isInteger(Number(e)),he=e=>e.endsWith(`%`)&&W(e.slice(0,-1)),K=e=>ue.test(e),ge=()=>!0,_e=e=>de.test(e)&&!fe.test(e),ve=()=>!1,ye=e=>pe.test(e),be=e=>me.test(e),xe=e=>!q(e)&&!X(e),Se=e=>Q(e,Ie,ve),q=e=>V.test(e),J=e=>Q(e,Le,_e),Ce=e=>Q(e,Re,W),we=e=>Q(e,Be,ge),Te=e=>Q(e,ze,ve),Ee=e=>Q(e,Pe,ve),De=e=>Q(e,Fe,be),Y=e=>Q(e,Ve,ye),X=e=>H.test(e),Z=e=>$(e,Le),Oe=e=>$(e,ze),ke=e=>$(e,Pe),Ae=e=>$(e,Ie),je=e=>$(e,Fe),Me=e=>$(e,Ve,!0),Ne=e=>$(e,Be,!0),Q=(e,t,n)=>{let r=V.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},$=(e,t,n=!1)=>{let r=H.exec(e);return r?r[1]?t(r[1]):n:!1},Pe=e=>e===`position`||e===`percentage`,Fe=e=>e===`image`||e===`url`,Ie=e=>e===`length`||e===`size`||e===`bg-size`,Le=e=>e===`length`,Re=e=>e===`number`,ze=e=>e===`family-name`,Be=e=>e===`number`||e===`weight`,Ve=e=>e===`shadow`,He=R(()=>{let e=B(`color`),t=B(`font`),n=B(`text`),r=B(`font-weight`),i=B(`tracking`),a=B(`leading`),o=B(`breakpoint`),s=B(`container`),c=B(`spacing`),l=B(`radius`),u=B(`shadow`),ee=B(`inset-shadow`),d=B(`text-shadow`),f=B(`drop-shadow`),p=B(`blur`),m=B(`perspective`),h=B(`aspect`),g=B(`ease`),_=B(`animate`),v=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],y=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],b=()=>[...y(),X,q],te=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],ne=()=>[`auto`,`contain`,`none`],x=()=>[X,q,c],S=()=>[U,`full`,`auto`,...x()],re=()=>[G,`none`,`subgrid`,X,q],ie=()=>[`auto`,{span:[`full`,G,X,q]},G,X,q],C=()=>[G,`auto`,X,q],ae=()=>[`auto`,`min`,`max`,`fr`,X,q],w=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],T=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],E=()=>[`auto`,...x()],D=()=>[U,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...x()],O=()=>[U,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...x()],oe=()=>[U,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...x()],k=()=>[e,X,q],A=()=>[...y(),ke,Ee,{position:[X,q]}],se=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],j=()=>[`auto`,`cover`,`contain`,Ae,Se,{size:[X,q]}],M=()=>[he,Z,J],N=()=>[``,`none`,`full`,l,X,q],P=()=>[``,W,Z,J],F=()=>[`solid`,`dashed`,`dotted`,`double`],ce=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],I=()=>[W,he,ke,Ee],L=()=>[``,`none`,p,X,q],R=()=>[`none`,W,X,q],z=()=>[`none`,W,X,q],V=()=>[W,X,q],H=()=>[U,`full`,...x()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[K],breakpoint:[K],color:[ge],container:[K],"drop-shadow":[K],ease:[`in`,`out`,`in-out`],font:[xe],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[K],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[K],shadow:[K],spacing:[`px`,W],text:[K],"text-shadow":[K],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,U,q,X,h]}],container:[`container`],columns:[{columns:[W,q,X,s]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:b()}],overflow:[{overflow:te()}],"overflow-x":[{"overflow-x":te()}],"overflow-y":[{"overflow-y":te()}],overscroll:[{overscroll:ne()}],"overscroll-x":[{"overscroll-x":ne()}],"overscroll-y":[{"overscroll-y":ne()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:S()}],"inset-x":[{"inset-x":S()}],"inset-y":[{"inset-y":S()}],start:[{"inset-s":S(),start:S()}],end:[{"inset-e":S(),end:S()}],"inset-bs":[{"inset-bs":S()}],"inset-be":[{"inset-be":S()}],top:[{top:S()}],right:[{right:S()}],bottom:[{bottom:S()}],left:[{left:S()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[G,`auto`,X,q]}],basis:[{basis:[U,`full`,`auto`,s,...x()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[W,U,`auto`,`initial`,`none`,q]}],grow:[{grow:[``,W,X,q]}],shrink:[{shrink:[``,W,X,q]}],order:[{order:[G,`first`,`last`,`none`,X,q]}],"grid-cols":[{"grid-cols":re()}],"col-start-end":[{col:ie()}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":re()}],"row-start-end":[{row:ie()}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ae()}],"auto-rows":[{"auto-rows":ae()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...w(),`normal`]}],"justify-items":[{"justify-items":[...T(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...T()]}],"align-content":[{content:[`normal`,...w()]}],"align-items":[{items:[...T(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...T(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":w()}],"place-items":[{"place-items":[...T(),`baseline`]}],"place-self":[{"place-self":[`auto`,...T()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mbs:[{mbs:E()}],mbe:[{mbe:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":x()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":x()}],"space-y-reverse":[`space-y-reverse`],size:[{size:D()}],"inline-size":[{inline:[`auto`,...O()]}],"min-inline-size":[{"min-inline":[`auto`,...O()]}],"max-inline-size":[{"max-inline":[`none`,...O()]}],"block-size":[{block:[`auto`,...oe()]}],"min-block-size":[{"min-block":[`auto`,...oe()]}],"max-block-size":[{"max-block":[`none`,...oe()]}],w:[{w:[s,`screen`,...D()]}],"min-w":[{"min-w":[s,`screen`,`none`,...D()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...D()]}],h:[{h:[`screen`,`lh`,...D()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...D()]}],"max-h":[{"max-h":[`screen`,`lh`,...D()]}],"font-size":[{text:[`base`,n,Z,J]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Ne,we]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,he,q]}],"font-family":[{font:[Oe,Te,t]}],"font-features":[{"font-features":[q]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,X,q]}],"line-clamp":[{"line-clamp":[W,`none`,X,Ce]}],leading:[{leading:[a,...x()]}],"list-image":[{"list-image":[`none`,X,q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,X,q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...F(),`wavy`]}],"text-decoration-thickness":[{decoration:[W,`from-font`,`auto`,X,J]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[W,`auto`,X,q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:x()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,X,q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,X,q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:se()}],"bg-size":[{bg:j()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},G,X,q],radial:[``,X,q],conic:[G,X,q]},je,De]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:M()}],"gradient-via-pos":[{via:M()}],"gradient-to-pos":[{to:M()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:N()}],"rounded-s":[{"rounded-s":N()}],"rounded-e":[{"rounded-e":N()}],"rounded-t":[{"rounded-t":N()}],"rounded-r":[{"rounded-r":N()}],"rounded-b":[{"rounded-b":N()}],"rounded-l":[{"rounded-l":N()}],"rounded-ss":[{"rounded-ss":N()}],"rounded-se":[{"rounded-se":N()}],"rounded-ee":[{"rounded-ee":N()}],"rounded-es":[{"rounded-es":N()}],"rounded-tl":[{"rounded-tl":N()}],"rounded-tr":[{"rounded-tr":N()}],"rounded-br":[{"rounded-br":N()}],"rounded-bl":[{"rounded-bl":N()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-bs":[{"border-bs":P()}],"border-w-be":[{"border-be":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":P()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...F(),`hidden`,`none`]}],"divide-style":[{divide:[...F(),`hidden`,`none`]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-bs":[{"border-bs":k()}],"border-color-be":[{"border-be":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...F(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[W,X,q]}],"outline-w":[{outline:[``,W,Z,J]}],"outline-color":[{outline:k()}],shadow:[{shadow:[``,`none`,u,Me,Y]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":[`none`,ee,Me,Y]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:P()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[W,J]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":[`none`,d,Me,Y]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[W,X,q]}],"mix-blend":[{"mix-blend":[...ce(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ce()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[W]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[X,q]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":y()}],"mask-image-conic-pos":[{"mask-conic":[W]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:se()}],"mask-size":[{mask:j()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,X,q]}],filter:[{filter:[``,`none`,X,q]}],blur:[{blur:L()}],brightness:[{brightness:[W,X,q]}],contrast:[{contrast:[W,X,q]}],"drop-shadow":[{"drop-shadow":[``,`none`,f,Me,Y]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:[``,W,X,q]}],"hue-rotate":[{"hue-rotate":[W,X,q]}],invert:[{invert:[``,W,X,q]}],saturate:[{saturate:[W,X,q]}],sepia:[{sepia:[``,W,X,q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,X,q]}],"backdrop-blur":[{"backdrop-blur":L()}],"backdrop-brightness":[{"backdrop-brightness":[W,X,q]}],"backdrop-contrast":[{"backdrop-contrast":[W,X,q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,W,X,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[W,X,q]}],"backdrop-invert":[{"backdrop-invert":[``,W,X,q]}],"backdrop-opacity":[{"backdrop-opacity":[W,X,q]}],"backdrop-saturate":[{"backdrop-saturate":[W,X,q]}],"backdrop-sepia":[{"backdrop-sepia":[``,W,X,q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,X,q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[W,`initial`,X,q]}],ease:[{ease:[`linear`,`initial`,g,X,q]}],delay:[{delay:[W,X,q]}],animate:[{animate:[`none`,_,X,q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[m,X,q]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:R()}],"rotate-x":[{"rotate-x":R()}],"rotate-y":[{"rotate-y":R()}],"rotate-z":[{"rotate-z":R()}],scale:[{scale:z()}],"scale-x":[{"scale-x":z()}],"scale-y":[{"scale-y":z()}],"scale-z":[{"scale-z":z()}],"scale-3d":[`scale-3d`],skew:[{skew:V()}],"skew-x":[{"skew-x":V()}],"skew-y":[{"skew-y":V()}],transform:[{transform:[X,q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:H()}],"translate-x":[{"translate-x":H()}],"translate-y":[{"translate-y":H()}],"translate-z":[{"translate-z":H()}],"translate-none":[`translate-none`],accent:[{accent:k()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,X,q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,X,q]}],fill:[{fill:[`none`,...k()]}],"stroke-w":[{stroke:[W,Z,J,Ce]}],stroke:[{stroke:[`none`,...k()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function Ue(...e){return He(r(e))}function We(e,t){let n=[];if(t<=5)for(let e=1;e<=t;e++)n.push(e);else if(n.push(1),e<=3){for(let e=2;e<=4;e++)n.push(e);n.push(`...`,t)}else if(e>=t-2){n.push(`...`);for(let e=t-3;e<=t;e++)n.push(e)}else{n.push(`...`);for(let t=e-1;t<=e+1;t++)n.push(t);n.push(`...`,t)}return n}var Ge=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Ke=r,qe=(e,t)=>n=>{if(t?.variants==null)return Ke(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Ge(t)||Ge(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Ke(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Je=qe(`inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-none transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/90`,destructive:`bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40`,outline:`border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2 has-[>svg]:px-3`,xs:`h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5`,lg:`h-10 rounded-md px-6 has-[>svg]:px-4`,icon:`size-9`,"icon-xs":`size-6 rounded-md [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-8`,"icon-lg":`size-10`}},defaultVariants:{variant:`default`,size:`default`}});function Ye({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i}){return(0,c.jsx)(r?u:`button`,{className:Ue(Je({variant:t,size:n,className:e})),"data-size":n,"data-slot":`button`,"data-variant":t,...i})}export{We as a,f as c,Ue as i,o as l,Je as n,u as o,qe as r,l as s,Ye as t,s as u}; \ No newline at end of file diff --git a/src/www/assets/card-C7G2YcSg.js b/src/www/assets/card-DiF5YaRi.js similarity index 86% rename from src/www/assets/card-C7G2YcSg.js rename to src/www/assets/card-DiF5YaRi.js index 374e75b..9365ec7 100644 --- a/src/www/assets/card-C7G2YcSg.js +++ b/src/www/assets/card-DiF5YaRi.js @@ -1 +1 @@ -import{em as e}from"./messages-Bp0bCjzp.js";import{i as t}from"./button-BgMnOYKD.js";var n=e();function r({className:e,...r}){return(0,n.jsx)(`div`,{className:t(`flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm`,e),"data-slot":`card`,...r})}function i({className:e,...r}){return(0,n.jsx)(`div`,{className:t(`@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6`,e),"data-slot":`card-header`,...r})}function a({className:e,...r}){return(0,n.jsx)(`div`,{className:t(`font-semibold leading-none`,e),"data-slot":`card-title`,...r})}function o({className:e,...r}){return(0,n.jsx)(`div`,{className:t(`text-muted-foreground text-sm`,e),"data-slot":`card-description`,...r})}function s({className:e,...r}){return(0,n.jsx)(`div`,{className:t(`px-6`,e),"data-slot":`card-content`,...r})}export{a,i,s as n,o as r,r as t}; \ No newline at end of file +import{tm as e}from"./messages-BOatyqUm.js";import{i as t}from"./button-C_NDYaz8.js";var n=e();function r({className:e,...r}){return(0,n.jsx)(`div`,{className:t(`flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm`,e),"data-slot":`card`,...r})}function i({className:e,...r}){return(0,n.jsx)(`div`,{className:t(`@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6`,e),"data-slot":`card-header`,...r})}function a({className:e,...r}){return(0,n.jsx)(`div`,{className:t(`font-semibold leading-none`,e),"data-slot":`card-title`,...r})}function o({className:e,...r}){return(0,n.jsx)(`div`,{className:t(`text-muted-foreground text-sm`,e),"data-slot":`card-description`,...r})}function s({className:e,...r}){return(0,n.jsx)(`div`,{className:t(`px-6`,e),"data-slot":`card-content`,...r})}export{a,i,s as n,o as r,r as t}; \ No newline at end of file diff --git a/src/www/assets/chains-D5PNpB55.js b/src/www/assets/chains-D5PNpB55.js new file mode 100644 index 0000000..e564ba2 --- /dev/null +++ b/src/www/assets/chains-D5PNpB55.js @@ -0,0 +1 @@ +import{r as e}from"./chunk-DECur_0Z.js";import{a as t,d as n,f as r}from"./auth-store-De4Y7PFV.js";import{t as i}from"./router-eyRTkMwc.js";import{t as a}from"./react-CO2uhaBc.js";import{$a as o,Co as s,Do as c,Eo as l,Fo as u,Go as d,Ko as f,Oo as p,Qa as m,Qo as h,So as g,To as _,Xa as v,Ya as y,Za as b,_o as ee,ao as x,bo as te,co as ne,cs as S,do as C,eo as w,fo as T,go as re,ho as ie,io as E,is as D,ko as O,lo as ae,mo as k,no as A,oo as oe,po as se,qo as ce,ro as le,so as ue,ss as de,tm as fe,to as pe,uo as me,vo as he,wo as ge,xo as _e,yo as ve}from"./messages-BOatyqUm.js";import{B as ye,H as be,o as j,r as xe}from"./search-provider-C-_FQI9C.js";import{i as M,t as N}from"./button-C_NDYaz8.js";import{t as Se}from"./checkbox-CTHgcB3t.js";import{a as P,c as F,l as Ce,r as we,s as Te,t as Ee}from"./dropdown-menu-DzCIpsuG.js";import{a as De,i as Oe,n as ke,r as Ae,t as je}from"./select-CzebumOF.js";import{t as I}from"./separator-CsUemQNs.js";import{t as L}from"./switch-CgoJjvdz.js";import{a as R,c as Me,d as Ne,f as Pe,l as Fe,n as Ie,o as Le,r as Re,s as ze,t as Be,u as Ve}from"./data-table-1LQSBhN2.js";import{t as He}from"./arrow-left-BpZwGREZ.js";import{t as z}from"./skeleton-CmDjDV1O.js";import{t as Ue}from"./ellipsis-74ly4-Wm.js";import{t as We}from"./empty-state-CxE4wU3V.js";import{n as Ge,t as Ke}from"./main-C1R3Hvq1.js";import{n as qe,t as Je}from"./chains-store-DCzO87jZ.js";import{n as Ye,t as Xe}from"./trash-2-9I8lAjeE.js";import{l as Ze}from"./command-B_SlhXkX.js";import{i as Qe,o as $e,r as et,s as tt,t as nt}from"./dialog-CZ-2RPb-.js";import{n as B}from"./dist-JOUh6qvR.js";import{a as rt,c as V,n as H,s as it}from"./zod-rwFXxHlg.js";import{a as U,c as at,i as W,l as ot,n as G,o as K,s as q,t as st}from"./form-KfFEakes.js";import{t as J}from"./input-8zzM34r5.js";import{t as ct}from"./page-header-GTtyZFBB.js";import{t as Y}from"./badge-VJlwwTW5.js";import{t as lt}from"./coming-soon-dialog-B34F88bO.js";var X=e(a(),1),Z=fe(),ut=it({network:V().min(1,m()),symbol:V().min(1,b()),contract_address:V().optional().default(``),decimals:H().min(0,v()).default(6),min_amount:H().min(0,y()).default(0),enabled:rt().default(!0)});function dt({open:e,onOpenChange:t,currentRow:n,onSuccess:r,defaultNetwork:i,onCreate:a,onUpdate:s,chains:c}){let l=ot({resolver:at(ut),defaultValues:{network:``,symbol:``,contract_address:``,decimals:6,min_amount:0,enabled:!0}}),d;d=c?.length?c:i?[{network:i,display_name:i}]:[],(0,X.useEffect)(()=>{e&&l.reset({network:n?.network??i??d[0]?.network??``,symbol:n?.symbol??``,contract_address:n?.contract_address??``,decimals:n?.decimals??6,min_amount:n?.min_amount??0,enabled:n?.enabled??!0})},[e,n,i,d,l]);async function f(e){n?.id?await s(e):await a(e),t(!1),await r?.()}let p=l.formState.isSubmitting;return(0,Z.jsx)(nt,{onOpenChange:t,open:e,children:(0,Z.jsxs)(et,{children:[(0,Z.jsxs)($e,{children:[(0,Z.jsx)(tt,{children:n?ae():ne()}),(0,Z.jsx)(Qe,{children:n?ue():oe()})]}),(0,Z.jsx)(st,{...l,children:(0,Z.jsxs)(`form`,{className:`space-y-4`,onSubmit:l.handleSubmit(f),children:[(0,Z.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,Z.jsx)(W,{control:l.control,name:`network`,render:({field:e})=>(0,Z.jsxs)(U,{children:[(0,Z.jsx)(K,{children:S()}),(0,Z.jsxs)(je,{disabled:!!n,onValueChange:e.onChange,value:e.value,children:[(0,Z.jsx)(G,{children:(0,Z.jsx)(Oe,{className:`w-full`,children:(0,Z.jsx)(De,{placeholder:de()})})}),(0,Z.jsx)(ke,{children:d.map(e=>(0,Z.jsx)(Ae,{value:e.network,children:e.display_name??e.network},e.network))})]}),(0,Z.jsx)(q,{})]})}),(0,Z.jsx)(W,{control:l.control,name:`symbol`,render:({field:e})=>(0,Z.jsxs)(U,{children:[(0,Z.jsx)(K,{children:x()}),(0,Z.jsx)(G,{children:(0,Z.jsx)(J,{placeholder:`USDT`,...e,disabled:!!n})}),(0,Z.jsx)(q,{})]})})]}),(0,Z.jsx)(`div`,{className:`rounded-md border border-dashed p-3 text-muted-foreground text-sm`,children:E()}),(0,Z.jsx)(W,{control:l.control,name:`contract_address`,render:({field:e})=>(0,Z.jsxs)(U,{children:[(0,Z.jsx)(K,{children:le()}),(0,Z.jsx)(G,{children:(0,Z.jsx)(J,{placeholder:`TR7NHqje...`,...e})}),(0,Z.jsx)(q,{})]})}),(0,Z.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,Z.jsx)(W,{control:l.control,name:`decimals`,render:({field:e})=>(0,Z.jsxs)(U,{children:[(0,Z.jsx)(K,{children:A()}),(0,Z.jsx)(G,{children:(0,Z.jsx)(J,{name:e.name,onBlur:e.onBlur,onChange:t=>e.onChange(t.target.value),ref:e.ref,type:`number`,value:String(e.value??``)})}),(0,Z.jsx)(q,{})]})}),(0,Z.jsx)(W,{control:l.control,name:`min_amount`,render:({field:e})=>(0,Z.jsxs)(U,{children:[(0,Z.jsx)(K,{children:pe()}),(0,Z.jsx)(G,{children:(0,Z.jsx)(J,{name:e.name,onBlur:e.onBlur,onChange:t=>e.onChange(t.target.value),ref:e.ref,step:`0.000001`,type:`number`,value:String(e.value??``)})}),(0,Z.jsx)(q,{})]})})]}),(0,Z.jsx)(W,{control:l.control,name:`enabled`,render:({field:e})=>(0,Z.jsxs)(U,{className:`flex flex-row items-start space-x-3 space-y-0 rounded-md border p-4 rtl:space-x-reverse`,children:[(0,Z.jsx)(G,{children:(0,Z.jsx)(Se,{checked:e.value,onCheckedChange:t=>e.onChange(!!t)})}),(0,Z.jsx)(`div`,{className:`space-y-1 leading-none`,children:(0,Z.jsx)(K,{children:h()})})]})}),(0,Z.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,Z.jsx)(N,{onClick:()=>t(!1),type:`button`,variant:`outline`,children:D()}),(0,Z.jsx)(N,{disabled:p,type:`submit`,children:p?u():n?o():w()})]})]})})]})})}function ft(e){return[{id:`switch`,header:({column:e})=>(0,Z.jsx)(R,{column:e,title:h()}),cell:({row:t})=>(0,Z.jsx)(L,{checked:t.original.enabled===!0,onCheckedChange:()=>e(t.original.enabled?`disable`:`enable`,t.original)}),enableSorting:!1,enableHiding:!1,meta:{label:h(),skeleton:`switch`,sticky:`left`,th:{className:M(`rounded-tl-[inherit]`)}}},{accessorKey:`symbol`,header:({column:e})=>(0,Z.jsx)(R,{column:e,title:T()}),cell:({row:e})=>(0,Z.jsx)(`div`,{className:`font-medium`,children:e.original.symbol??`-`}),enableHiding:!1,meta:{label:T(),skeleton:`short`}},{accessorKey:`network`,header:({column:e})=>(0,Z.jsx)(R,{column:e,title:S()}),meta:{label:S(),skeleton:`short`}},{accessorKey:`created_at`,header:({column:e})=>(0,Z.jsx)(R,{column:e,title:ce()}),cell:({row:e})=>j(e.original.created_at),meta:{label:ce(),skeleton:`date`}},{accessorKey:`updated_at`,header:({column:e})=>(0,Z.jsx)(R,{column:e,title:f()}),cell:({row:e})=>j(e.original.updated_at),meta:{label:f(),skeleton:`date`}},{id:`actions`,enableHiding:!1,meta:{label:d(),skeleton:`action`,sticky:`right`},cell:({row:t})=>(0,Z.jsxs)(Ee,{modal:!1,children:[(0,Z.jsx)(Ce,{asChild:!0,children:(0,Z.jsxs)(N,{className:`flex h-8 w-8 p-0 data-[state=open]:bg-muted`,variant:`ghost`,children:[(0,Z.jsx)(Ue,{className:`h-4 w-4`}),(0,Z.jsx)(`span`,{className:`sr-only`,children:`Open menu`})]})}),(0,Z.jsxs)(we,{align:`end`,className:`w-40`,children:[(0,Z.jsxs)(P,{onClick:()=>e(`edit`,t.original),children:[C(),(0,Z.jsx)(F,{children:(0,Z.jsx)(qe,{size:16})})]}),(0,Z.jsx)(Te,{}),(0,Z.jsxs)(P,{onClick:()=>e(`delete`,t.original),variant:`destructive`,children:[me(),(0,Z.jsx)(F,{children:(0,Z.jsx)(Xe,{size:16})})]})]})]})}]}function pt({data:e,isLoading:t,onAction:n,onRefresh:r}){let[i,a]=(0,X.useState)([]),[o,s]=(0,X.useState)(``),[c,l]=(0,X.useState)([]),[u,d]=(0,X.useState)({pageIndex:0,pageSize:10}),f=Le({data:e,columns:(0,X.useMemo)(()=>ft(n),[n]),state:{sorting:i,columnFilters:c,globalFilter:o,pagination:u},onSortingChange:a,onColumnFiltersChange:l,onGlobalFilterChange:s,onPaginationChange:d,globalFilterFn:(e,t,n)=>{let r=String(n).toLowerCase();return(e.original.symbol??``).toLowerCase().includes(r)||(e.original.contract_address??``).toLowerCase().includes(r)},getCoreRowModel:ze(),getFilteredRowModel:Ve(),getPaginationRowModel:Ne(),getSortedRowModel:Pe(),getFacetedRowModel:Me(),getFacetedUniqueValues:Fe()});return(0,X.useEffect)(()=>{let e=f.getPageCount();e>0&&u.pageIndex>e-1&&d(e=>({...e,pageIndex:0}))},[f,u.pageIndex]),(0,Z.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,Z.jsx)(Be,{onRefresh:r,searchKey:`symbol`,searchPlaceholder:k(),table:f}),(0,Z.jsx)(Re,{emptyText:se(),loading:t,table:f}),(0,Z.jsx)(Ie,{className:`mt-auto`,table:f})]})}var Q=new n({chainTokens:[],loading:!1});function mt(e){Q.setState(t=>({...t,chainTokens:e}))}function ht(e){Q.setState(t=>({...t,loading:e}))}function gt(){let e=r(Q,e=>e.chainTokens),n=r(Q,e=>e.loading),i=t.useQuery(`get`,`/admin/api/v1/chain-tokens`);return(0,X.useEffect)(()=>{ht(i.isLoading)},[i.isLoading]),(0,X.useEffect)(()=>{i.data?.data&&mt(i.data.data)},[i.data?.data]),{chainTokens:e,loading:n,refetch:i.refetch}}var _t=[`chain-1`,`chain-2`,`chain-3`,`chain-4`,`chain-5`];function $({active:e,children:t,onClick:n}){return(0,Z.jsx)(`button`,{className:M(`w-full cursor-pointer rounded-lg px-3 py-3 text-left transition-colors hover:bg-accent hover:text-accent-foreground`,e&&`bg-muted`),onClick:n,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),n())},type:`button`,children:t})}function vt({chains:e,isLoading:t,keyword:n,onKeywordChange:r,selectedPanel:i,onSelect:a,onToggle:o,totalTokens:u,hiddenOnMobile:d}){return(0,Z.jsxs)(`div`,{className:M(`flex w-full flex-col gap-2 sm:w-56 lg:w-72 2xl:w-80`,d&&`hidden sm:flex`),children:[(0,Z.jsxs)(`div`,{className:`sticky top-0 z-10 -mx-4 bg-background px-4 pb-3 shadow-md sm:static sm:z-auto sm:mx-0 sm:p-0 sm:shadow-none`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center justify-between py-2`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Z.jsx)(`h1`,{className:`font-bold text-2xl`,children:O()}),(0,Z.jsx)(ye,{size:20})]}),(0,Z.jsx)(Y,{variant:`secondary`,children:p({count:String(e.length)})})]}),(0,Z.jsxs)(`div`,{className:`relative block`,children:[(0,Z.jsx)(Ze,{className:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),(0,Z.jsx)(J,{className:`pl-9`,onChange:e=>r(e.target.value),placeholder:c(),value:n})]})]}),(0,Z.jsxs)(xe,{className:`-mx-3 h-full overflow-auto p-3`,children:[(0,Z.jsx)($,{active:i===`overview`,onClick:()=>a(`overview`),children:(0,Z.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,Z.jsxs)(`div`,{className:`min-w-0`,children:[(0,Z.jsx)(`div`,{className:`font-medium`,children:l()}),(0,Z.jsx)(`div`,{className:`mt-1 text-muted-foreground text-xs`,children:_({chains:String(e.length),tokens:String(u)})})]}),(0,Z.jsx)(be,{className:`mt-0.5 size-4 text-muted-foreground`})]})}),(0,Z.jsx)(I,{className:`my-1`}),t?_t.map(e=>(0,Z.jsxs)(`div`,{className:`px-3 py-3`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,Z.jsx)(z,{className:`h-4 w-24`}),(0,Z.jsx)(z,{className:`h-5 w-9 rounded-full`})]}),(0,Z.jsxs)(`div`,{className:`mt-2 flex items-center justify-between gap-2`,children:[(0,Z.jsx)(z,{className:`h-3 w-28`}),(0,Z.jsx)(z,{className:`h-5 w-12 rounded-full`})]})]},e)):e.map((t,n)=>(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)($,{active:i===t.network,onClick:()=>a(t.network??`overview`),children:(0,Z.jsx)(`div`,{className:`flex items-start gap-3`,children:(0,Z.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,Z.jsxs)(`div`,{className:`flex items-start justify-between gap-2`,children:[(0,Z.jsx)(`div`,{className:`min-w-0`,children:(0,Z.jsx)(`div`,{className:`truncate font-medium`,children:t.display_name})}),(0,Z.jsx)(L,{checked:t.enabled===!0,onCheckedChange:e=>o(t,e),onClick:e=>e.stopPropagation()})]}),(0,Z.jsxs)(`div`,{className:`mt-1 flex items-center justify-between gap-2`,children:[(0,Z.jsx)(`span`,{className:`text-muted-foreground text-xs`,children:ge()}),(0,Z.jsx)(Y,{className:`shrink-0 text-xs`,variant:`outline`,children:t.network})]})]})})}),n{let t=f.trim().toLowerCase();return t?e.filter(e=>[e.display_name,e.network].filter(Boolean).some(e=>String(e).toLowerCase().includes(t))):e},[e,f]),E=(0,X.useMemo)(()=>m===`overview`?a:a.filter(e=>e.network===m),[a,m]);async function D(){await Promise.all([i.invalidateQueries({queryKey:[`get`,`/admin/api/v1/chains`]}),i.invalidateQueries({queryKey:[`get`,`/admin/api/v1/chain-tokens`]})])}async function O(e,t){e.network&&(await d.mutateAsync({params:{path:{network:e.network}},body:{display_name:e.display_name,enabled:t,min_confirmations:e.min_confirmations,scan_interval_sec:e.scan_interval_sec}}),B.success(te({status:t?ve():he()})),await D())}async function ae(e,t){if(e===`edit`||e===`delete`){x(!0);return}if(e===`enable`||e===`disable`){if(!t.id)return;await u.mutateAsync({params:{path:{id:t.id}},body:{enabled:e===`enable`}}),B.success(ee()),await D();return}}let k=g!==null,A=n||o;return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Ge,{fixed:!0}),(0,Z.jsx)(Ke,{fixed:!0,children:(0,Z.jsxs)(`section`,{className:`flex h-full gap-6`,children:[(0,Z.jsx)(vt,{chains:T,hiddenOnMobile:k,isLoading:A,keyword:f,onKeywordChange:p,onSelect:e=>{h(e),_(e)},onToggle:O,selectedPanel:m,totalTokens:a.length}),(0,Z.jsx)(`div`,{className:M(`absolute inset-0 start-full z-50 hidden w-full flex-1 flex-col border bg-background shadow-xs sm:static sm:z-auto sm:flex sm:min-w-0 sm:rounded-md sm:border-0 sm:bg-transparent sm:shadow-none`,k&&`inset-s-0 flex`),children:(0,Z.jsx)(yt,{isLoading:A,onAction:ae,onBack:()=>_(null),onCreate:()=>x(!0),onRefresh:()=>{r(),s()},tokens:E})})]})}),(0,Z.jsx)(dt,{chains:e.filter(e=>!!e.network).map(e=>({network:e.network,display_name:e.display_name})),currentRow:C,defaultNetwork:ne,onCreate:async e=>{await c.mutateAsync({body:{network:e.network,symbol:e.symbol,contract_address:e.contract_address||void 0,decimals:e.decimals,min_amount:e.min_amount,enabled:e.enabled}})},onOpenChange:e=>{y(e),e||(w(null),S(``))},onSuccess:async()=>{B.success(C?re():ie()),await D()},onUpdate:async e=>{C?.id&&await l.mutateAsync({params:{path:{id:C.id}},body:{contract_address:e.contract_address||void 0,decimals:e.decimals,min_amount:e.min_amount,enabled:e.enabled}})},open:v}),(0,Z.jsx)(lt,{onOpenChange:x,open:b})]})}var xt=bt;export{xt as component}; \ No newline at end of file diff --git a/src/www/assets/chains-ZsMRX5G9.js b/src/www/assets/chains-ZsMRX5G9.js deleted file mode 100644 index 9c09cdd..0000000 --- a/src/www/assets/chains-ZsMRX5G9.js +++ /dev/null @@ -1 +0,0 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{a as t,d as n,f as r}from"./auth-store-Csn6HPxJ.js";import{t as i}from"./router-BluvjQRz.js";import{t as a}from"./react-CO2uhaBc.js";import{$a as o,Co as s,Do as c,Eo as l,Fo as u,Go as d,Ko as f,Oo as p,Qa as m,Qo as h,So as ee,To as g,Xa as _,Ya as v,Za as y,_o as te,ao as b,bo as ne,co as re,cs as x,do as S,em as C,eo as w,fo as T,go as ie,ho as ae,io as E,is as D,ko as O,lo as k,mo as A,no as oe,oo as se,po as ce,qo as le,ro as ue,so as de,ss as fe,to as pe,uo as me,vo as he,wo as ge,xo as _e,yo as ve}from"./messages-Bp0bCjzp.js";import{B as ye,H as be,o as j,r as xe}from"./search-provider-Bl2HDfcG.js";import{i as M,t as N}from"./button-BgMnOYKD.js";import{t as Se}from"./checkbox-CKrZFk1G.js";import{a as P,c as F,l as Ce,r as we,s as Te,t as Ee}from"./dropdown-menu-8-hEBtzr.js";import{a as De,i as Oe,n as ke,r as Ae,t as je}from"./select-C9s05In_.js";import{t as I}from"./separator-DbmFQXe4.js";import{t as L}from"./switch-CVYl00Vs.js";import{a as R,c as Me,d as Ne,f as Pe,l as Fe,n as Ie,o as Le,r as Re,s as ze,t as Be,u as Ve}from"./data-table-C3Nm2K6Z.js";import{t as He}from"./arrow-left-BpZwGREZ.js";import{t as z}from"./skeleton-BQsmx80h.js";import{t as Ue}from"./ellipsis-74ly4-Wm.js";import{t as We}from"./empty-state-BdzO6t8R.js";import{n as Ge,t as Ke}from"./main-DnJ8otd-.js";import{n as qe,t as Je}from"./chains-store-B0tGSNqG.js";import{n as Ye,t as Xe}from"./trash-2-9I8lAjeE.js";import{l as Ze}from"./command-CIv3ggHf.js";import{i as Qe,o as $e,r as et,s as tt,t as nt}from"./dialog-BJ5VA2v_.js";import{n as B}from"./dist-BGqHIBUe.js";import{a as rt,c as V,n as H,s as it}from"./zod-rwFXxHlg.js";import{a as U,c as at,i as W,l as ot,n as G,o as K,s as q,t as st}from"./form-BhKmyN6D.js";import{t as J}from"./input-BleRUV2A.js";import{t as ct}from"./page-header-CDwG3nxs.js";import{t as Y}from"./badge-BP05f1dq.js";import{t as lt}from"./coming-soon-dialog-BWHKf2Gm.js";var X=e(a(),1),Z=C(),ut=it({network:V().min(1,m()),symbol:V().min(1,y()),contract_address:V().optional().default(``),decimals:H().min(0,_()).default(6),min_amount:H().min(0,v()).default(0),enabled:rt().default(!0)});function dt({open:e,onOpenChange:t,currentRow:n,onSuccess:r,defaultNetwork:i,onCreate:a,onUpdate:s,chains:c}){let l=ot({resolver:at(ut),defaultValues:{network:``,symbol:``,contract_address:``,decimals:6,min_amount:0,enabled:!0}}),d;d=c?.length?c:i?[{network:i,display_name:i}]:[],(0,X.useEffect)(()=>{e&&l.reset({network:n?.network??i??d[0]?.network??``,symbol:n?.symbol??``,contract_address:n?.contract_address??``,decimals:n?.decimals??6,min_amount:n?.min_amount??0,enabled:n?.enabled??!0})},[e,n,i,d,l]);async function f(e){n?.id?await s(e):await a(e),t(!1),await r?.()}let p=l.formState.isSubmitting;return(0,Z.jsx)(nt,{onOpenChange:t,open:e,children:(0,Z.jsxs)(et,{children:[(0,Z.jsxs)($e,{children:[(0,Z.jsx)(tt,{children:n?k():re()}),(0,Z.jsx)(Qe,{children:n?de():se()})]}),(0,Z.jsx)(st,{...l,children:(0,Z.jsxs)(`form`,{className:`space-y-4`,onSubmit:l.handleSubmit(f),children:[(0,Z.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,Z.jsx)(W,{control:l.control,name:`network`,render:({field:e})=>(0,Z.jsxs)(U,{children:[(0,Z.jsx)(K,{children:x()}),(0,Z.jsxs)(je,{disabled:!!n,onValueChange:e.onChange,value:e.value,children:[(0,Z.jsx)(G,{children:(0,Z.jsx)(Oe,{className:`w-full`,children:(0,Z.jsx)(De,{placeholder:fe()})})}),(0,Z.jsx)(ke,{children:d.map(e=>(0,Z.jsx)(Ae,{value:e.network,children:e.display_name??e.network},e.network))})]}),(0,Z.jsx)(q,{})]})}),(0,Z.jsx)(W,{control:l.control,name:`symbol`,render:({field:e})=>(0,Z.jsxs)(U,{children:[(0,Z.jsx)(K,{children:b()}),(0,Z.jsx)(G,{children:(0,Z.jsx)(J,{placeholder:`USDT`,...e,disabled:!!n})}),(0,Z.jsx)(q,{})]})})]}),(0,Z.jsx)(`div`,{className:`rounded-md border border-dashed p-3 text-muted-foreground text-sm`,children:E()}),(0,Z.jsx)(W,{control:l.control,name:`contract_address`,render:({field:e})=>(0,Z.jsxs)(U,{children:[(0,Z.jsx)(K,{children:ue()}),(0,Z.jsx)(G,{children:(0,Z.jsx)(J,{placeholder:`TR7NHqje...`,...e})}),(0,Z.jsx)(q,{})]})}),(0,Z.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,Z.jsx)(W,{control:l.control,name:`decimals`,render:({field:e})=>(0,Z.jsxs)(U,{children:[(0,Z.jsx)(K,{children:oe()}),(0,Z.jsx)(G,{children:(0,Z.jsx)(J,{name:e.name,onBlur:e.onBlur,onChange:t=>e.onChange(t.target.value),ref:e.ref,type:`number`,value:String(e.value??``)})}),(0,Z.jsx)(q,{})]})}),(0,Z.jsx)(W,{control:l.control,name:`min_amount`,render:({field:e})=>(0,Z.jsxs)(U,{children:[(0,Z.jsx)(K,{children:pe()}),(0,Z.jsx)(G,{children:(0,Z.jsx)(J,{name:e.name,onBlur:e.onBlur,onChange:t=>e.onChange(t.target.value),ref:e.ref,step:`0.000001`,type:`number`,value:String(e.value??``)})}),(0,Z.jsx)(q,{})]})})]}),(0,Z.jsx)(W,{control:l.control,name:`enabled`,render:({field:e})=>(0,Z.jsxs)(U,{className:`flex flex-row items-start space-x-3 space-y-0 rounded-md border p-4 rtl:space-x-reverse`,children:[(0,Z.jsx)(G,{children:(0,Z.jsx)(Se,{checked:e.value,onCheckedChange:t=>e.onChange(!!t)})}),(0,Z.jsx)(`div`,{className:`space-y-1 leading-none`,children:(0,Z.jsx)(K,{children:h()})})]})}),(0,Z.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,Z.jsx)(N,{onClick:()=>t(!1),type:`button`,variant:`outline`,children:D()}),(0,Z.jsx)(N,{disabled:p,type:`submit`,children:p?u():n?o():w()})]})]})})]})})}function ft(e){return[{id:`switch`,header:({column:e})=>(0,Z.jsx)(R,{column:e,title:h()}),cell:({row:t})=>(0,Z.jsx)(L,{checked:t.original.enabled===!0,onCheckedChange:()=>e(t.original.enabled?`disable`:`enable`,t.original)}),enableSorting:!1,enableHiding:!1,meta:{label:h(),skeleton:`switch`,sticky:`left`,th:{className:M(`rounded-tl-[inherit]`)}}},{accessorKey:`symbol`,header:({column:e})=>(0,Z.jsx)(R,{column:e,title:T()}),cell:({row:e})=>(0,Z.jsx)(`div`,{className:`font-medium`,children:e.original.symbol??`-`}),enableHiding:!1,meta:{label:T(),skeleton:`short`}},{accessorKey:`network`,header:({column:e})=>(0,Z.jsx)(R,{column:e,title:x()}),meta:{label:x(),skeleton:`short`}},{accessorKey:`created_at`,header:({column:e})=>(0,Z.jsx)(R,{column:e,title:le()}),cell:({row:e})=>j(e.original.created_at),meta:{label:le(),skeleton:`date`}},{accessorKey:`updated_at`,header:({column:e})=>(0,Z.jsx)(R,{column:e,title:f()}),cell:({row:e})=>j(e.original.updated_at),meta:{label:f(),skeleton:`date`}},{id:`actions`,enableHiding:!1,meta:{label:d(),skeleton:`action`,sticky:`right`},cell:({row:t})=>(0,Z.jsxs)(Ee,{modal:!1,children:[(0,Z.jsx)(Ce,{asChild:!0,children:(0,Z.jsxs)(N,{className:`flex h-8 w-8 p-0 data-[state=open]:bg-muted`,variant:`ghost`,children:[(0,Z.jsx)(Ue,{className:`h-4 w-4`}),(0,Z.jsx)(`span`,{className:`sr-only`,children:`Open menu`})]})}),(0,Z.jsxs)(we,{align:`end`,className:`w-40`,children:[(0,Z.jsxs)(P,{onClick:()=>e(`edit`,t.original),children:[S(),(0,Z.jsx)(F,{children:(0,Z.jsx)(qe,{size:16})})]}),(0,Z.jsx)(Te,{}),(0,Z.jsxs)(P,{onClick:()=>e(`delete`,t.original),variant:`destructive`,children:[me(),(0,Z.jsx)(F,{children:(0,Z.jsx)(Xe,{size:16})})]})]})]})}]}function pt({data:e,isLoading:t,onAction:n,onRefresh:r}){let[i,a]=(0,X.useState)([]),[o,s]=(0,X.useState)(``),[c,l]=(0,X.useState)([]),[u,d]=(0,X.useState)({pageIndex:0,pageSize:10}),f=Le({data:e,columns:(0,X.useMemo)(()=>ft(n),[n]),state:{sorting:i,columnFilters:c,globalFilter:o,pagination:u},onSortingChange:a,onColumnFiltersChange:l,onGlobalFilterChange:s,onPaginationChange:d,globalFilterFn:(e,t,n)=>{let r=String(n).toLowerCase();return(e.original.symbol??``).toLowerCase().includes(r)||(e.original.contract_address??``).toLowerCase().includes(r)},getCoreRowModel:ze(),getFilteredRowModel:Ve(),getPaginationRowModel:Ne(),getSortedRowModel:Pe(),getFacetedRowModel:Me(),getFacetedUniqueValues:Fe()});return(0,X.useEffect)(()=>{let e=f.getPageCount();e>0&&u.pageIndex>e-1&&d(e=>({...e,pageIndex:0}))},[f,u.pageIndex]),(0,Z.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,Z.jsx)(Be,{onRefresh:r,searchKey:`symbol`,searchPlaceholder:A(),table:f}),(0,Z.jsx)(Re,{emptyText:ce(),loading:t,table:f}),(0,Z.jsx)(Ie,{className:`mt-auto`,table:f})]})}var Q=new n({chainTokens:[],loading:!1});function mt(e){Q.setState(t=>({...t,chainTokens:e}))}function ht(e){Q.setState(t=>({...t,loading:e}))}function gt(){let e=r(Q,e=>e.chainTokens),n=r(Q,e=>e.loading),i=t.useQuery(`get`,`/admin/api/v1/chain-tokens`);return(0,X.useEffect)(()=>{ht(i.isLoading)},[i.isLoading]),(0,X.useEffect)(()=>{i.data?.data&&mt(i.data.data)},[i.data?.data]),{chainTokens:e,loading:n,refetch:i.refetch}}var _t=[`chain-1`,`chain-2`,`chain-3`,`chain-4`,`chain-5`];function $({active:e,children:t,onClick:n}){return(0,Z.jsx)(`button`,{className:M(`w-full cursor-pointer rounded-lg px-3 py-3 text-left transition-colors hover:bg-accent hover:text-accent-foreground`,e&&`bg-muted`),onClick:n,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),n())},type:`button`,children:t})}function vt({chains:e,isLoading:t,keyword:n,onKeywordChange:r,selectedPanel:i,onSelect:a,onToggle:o,totalTokens:u,hiddenOnMobile:d}){return(0,Z.jsxs)(`div`,{className:M(`flex w-full flex-col gap-2 sm:w-56 lg:w-72 2xl:w-80`,d&&`hidden sm:flex`),children:[(0,Z.jsxs)(`div`,{className:`sticky top-0 z-10 -mx-4 bg-background px-4 pb-3 shadow-md sm:static sm:z-auto sm:mx-0 sm:p-0 sm:shadow-none`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center justify-between py-2`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Z.jsx)(`h1`,{className:`font-bold text-2xl`,children:O()}),(0,Z.jsx)(ye,{size:20})]}),(0,Z.jsx)(Y,{variant:`secondary`,children:p({count:String(e.length)})})]}),(0,Z.jsxs)(`div`,{className:`relative block`,children:[(0,Z.jsx)(Ze,{className:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),(0,Z.jsx)(J,{className:`pl-9`,onChange:e=>r(e.target.value),placeholder:c(),value:n})]})]}),(0,Z.jsxs)(xe,{className:`-mx-3 h-full overflow-auto p-3`,children:[(0,Z.jsx)($,{active:i===`overview`,onClick:()=>a(`overview`),children:(0,Z.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,Z.jsxs)(`div`,{className:`min-w-0`,children:[(0,Z.jsx)(`div`,{className:`font-medium`,children:l()}),(0,Z.jsx)(`div`,{className:`mt-1 text-muted-foreground text-xs`,children:g({chains:String(e.length),tokens:String(u)})})]}),(0,Z.jsx)(be,{className:`mt-0.5 size-4 text-muted-foreground`})]})}),(0,Z.jsx)(I,{className:`my-1`}),t?_t.map(e=>(0,Z.jsxs)(`div`,{className:`px-3 py-3`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,Z.jsx)(z,{className:`h-4 w-24`}),(0,Z.jsx)(z,{className:`h-5 w-9 rounded-full`})]}),(0,Z.jsxs)(`div`,{className:`mt-2 flex items-center justify-between gap-2`,children:[(0,Z.jsx)(z,{className:`h-3 w-28`}),(0,Z.jsx)(z,{className:`h-5 w-12 rounded-full`})]})]},e)):e.map((t,n)=>(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)($,{active:i===t.network,onClick:()=>a(t.network??`overview`),children:(0,Z.jsx)(`div`,{className:`flex items-start gap-3`,children:(0,Z.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,Z.jsxs)(`div`,{className:`flex items-start justify-between gap-2`,children:[(0,Z.jsx)(`div`,{className:`min-w-0`,children:(0,Z.jsx)(`div`,{className:`truncate font-medium`,children:t.display_name})}),(0,Z.jsx)(L,{checked:t.enabled===!0,onCheckedChange:e=>o(t,e),onClick:e=>e.stopPropagation()})]}),(0,Z.jsxs)(`div`,{className:`mt-1 flex items-center justify-between gap-2`,children:[(0,Z.jsx)(`span`,{className:`text-muted-foreground text-xs`,children:ge()}),(0,Z.jsx)(Y,{className:`shrink-0 text-xs`,variant:`outline`,children:t.network})]})]})})}),n{let t=f.trim().toLowerCase();return t?e.filter(e=>[e.display_name,e.network].filter(Boolean).some(e=>String(e).toLowerCase().includes(t))):e},[e,f]),T=(0,X.useMemo)(()=>m===`overview`?a:a.filter(e=>e.network===m),[a,m]);async function E(){await Promise.all([i.invalidateQueries({queryKey:[`get`,`/admin/api/v1/chains`]}),i.invalidateQueries({queryKey:[`get`,`/admin/api/v1/chain-tokens`]})])}async function D(e,t){e.network&&(await d.mutateAsync({params:{path:{network:e.network}},body:{display_name:e.display_name,enabled:t,min_confirmations:e.min_confirmations,scan_interval_sec:e.scan_interval_sec}}),B.success(ne({status:t?ve():he()})),await E())}async function O(e,t){if(e===`edit`||e===`delete`){b(!0);return}if(e===`enable`||e===`disable`){if(!t.id)return;await u.mutateAsync({params:{path:{id:t.id}},body:{enabled:e===`enable`}}),B.success(te()),await E();return}}let k=ee!==null,A=n||o;return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Ge,{fixed:!0}),(0,Z.jsx)(Ke,{fixed:!0,children:(0,Z.jsxs)(`section`,{className:`flex h-full gap-6`,children:[(0,Z.jsx)(vt,{chains:w,hiddenOnMobile:k,isLoading:A,keyword:f,onKeywordChange:p,onSelect:e=>{h(e),g(e)},onToggle:D,selectedPanel:m,totalTokens:a.length}),(0,Z.jsx)(`div`,{className:M(`absolute inset-0 start-full z-50 hidden w-full flex-1 flex-col border bg-background shadow-xs sm:static sm:z-auto sm:flex sm:min-w-0 sm:rounded-md sm:border-0 sm:bg-transparent sm:shadow-none`,k&&`inset-s-0 flex`),children:(0,Z.jsx)(yt,{isLoading:A,onAction:O,onBack:()=>g(null),onCreate:()=>b(!0),onRefresh:()=>{r(),s()},tokens:T})})]})}),(0,Z.jsx)(dt,{chains:e.filter(e=>!!e.network).map(e=>({network:e.network,display_name:e.display_name})),currentRow:S,defaultNetwork:re,onCreate:async e=>{await c.mutateAsync({body:{network:e.network,symbol:e.symbol,contract_address:e.contract_address||void 0,decimals:e.decimals,min_amount:e.min_amount,enabled:e.enabled}})},onOpenChange:e=>{v(e),e||(C(null),x(``))},onSuccess:async()=>{B.success(S?ie():ae()),await E()},onUpdate:async e=>{S?.id&&await l.mutateAsync({params:{path:{id:S.id}},body:{contract_address:e.contract_address||void 0,decimals:e.decimals,min_amount:e.min_amount,enabled:e.enabled}})},open:_}),(0,Z.jsx)(lt,{onOpenChange:b,open:y})]})}var xt=bt;export{xt as component}; \ No newline at end of file diff --git a/src/www/assets/chains-store-B0tGSNqG.js b/src/www/assets/chains-store-DCzO87jZ.js similarity index 92% rename from src/www/assets/chains-store-B0tGSNqG.js rename to src/www/assets/chains-store-DCzO87jZ.js index 9d52f45..3e9b10a 100644 --- a/src/www/assets/chains-store-B0tGSNqG.js +++ b/src/www/assets/chains-store-DCzO87jZ.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{a as t,d as n,f as r}from"./auth-store-Csn6HPxJ.js";import{t as i}from"./react-CO2uhaBc.js";import{t as a}from"./createLucideIcon-Br0Bd5k2.js";var o=a(`pen-line`,[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),s=e(i(),1),c=new n({chains:[],loading:!1});function l(e){c.setState(t=>({...t,chains:e}))}function u(e){c.setState(t=>({...t,loading:e}))}function d(){let e=r(c,e=>e.chains),n=r(c,e=>e.loading),i=t.useQuery(`get`,`/admin/api/v1/chains`);return(0,s.useEffect)(()=>{u(i.isLoading)},[i.isLoading]),(0,s.useEffect)(()=>{i.data?.data&&l(i.data.data)},[i.data?.data]),{chains:e,loading:n,refetch:i.refetch}}export{o as n,d as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{a as t,d as n,f as r}from"./auth-store-De4Y7PFV.js";import{t as i}from"./react-CO2uhaBc.js";import{t as a}from"./createLucideIcon-Br0Bd5k2.js";var o=a(`pen-line`,[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),s=e(i(),1),c=new n({chains:[],loading:!1});function l(e){c.setState(t=>({...t,chains:e}))}function u(e){c.setState(t=>({...t,loading:e}))}function d(){let e=r(c,e=>e.chains),n=r(c,e=>e.loading),i=t.useQuery(`get`,`/admin/api/v1/chains`);return(0,s.useEffect)(()=>{u(i.isLoading)},[i.isLoading]),(0,s.useEffect)(()=>{i.data?.data&&l(i.data.data)},[i.data?.data]),{chains:e,loading:n,refetch:i.refetch}}export{o as n,d as t}; \ No newline at end of file diff --git a/src/www/assets/checkbox-CKrZFk1G.js b/src/www/assets/checkbox-CTHgcB3t.js similarity index 92% rename from src/www/assets/checkbox-CKrZFk1G.js rename to src/www/assets/checkbox-CTHgcB3t.js index 2b7cb25..73aabf0 100644 --- a/src/www/assets/checkbox-CKrZFk1G.js +++ b/src/www/assets/checkbox-CTHgcB3t.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";import{t as r}from"./dist-BFnxq45V.js";import{i,u as a}from"./button-BgMnOYKD.js";import{a as o,r as s,t as c}from"./dist-CKFLmh1A.js";import{t as l}from"./dist-Clua1vrx.js";import{t as u}from"./dist-BixeH3nX.js";import{t as d}from"./dist-DGDEBCW9.js";import{t as f}from"./check-CHp0nSkR.js";var p=e(t(),1),m=n(),h=`Checkbox`,[g,_]=o(h),[v,y]=g(h);function b(e){let{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:l,required:u,value:d=`on`,internal_do_not_use_render:f}=e,[g,_]=c({prop:n,defaultProp:i??!1,onChange:l,caller:h}),[y,b]=p.useState(null),[x,S]=p.useState(null),C=p.useRef(!1),w=y?!!o||!!y.closest(`form`):!0,T={checked:g,disabled:a,setChecked:_,control:y,setControl:b,name:s,form:o,value:d,hasConsumerStoppedPropagationRef:C,required:u,defaultChecked:k(i)?!1:i,isFormControl:w,bubbleInput:x,setBubbleInput:S};return(0,m.jsx)(v,{scope:t,...T,children:O(f)?f(T):r})}var x=`CheckboxTrigger`,S=p.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...i},o)=>{let{control:c,value:l,disabled:u,checked:d,required:f,setControl:h,setChecked:g,hasConsumerStoppedPropagationRef:_,isFormControl:v,bubbleInput:b}=y(x,e),S=a(o,h),C=p.useRef(d);return p.useEffect(()=>{let e=c?.form;if(e){let t=()=>g(C.current);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[c,g]),(0,m.jsx)(r.button,{type:`button`,role:`checkbox`,"aria-checked":k(d)?`mixed`:d,"aria-required":f,"data-state":A(d),"data-disabled":u?``:void 0,disabled:u,value:l,...i,ref:S,onKeyDown:s(t,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:s(n,e=>{g(e=>k(e)?!0:!e),b&&v&&(_.current=e.isPropagationStopped(),_.current||e.stopPropagation())})})});S.displayName=x;var C=p.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return(0,m.jsx)(b,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(S,{...d,ref:t,__scopeCheckbox:n}),e&&(0,m.jsx)(D,{__scopeCheckbox:n})]})})});C.displayName=h;var w=`CheckboxIndicator`,T=p.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:i,...a}=e,o=y(w,n);return(0,m.jsx)(l,{present:i||k(o.checked)||o.checked===!0,children:(0,m.jsx)(r.span,{"data-state":A(o.checked),"data-disabled":o.disabled?``:void 0,...a,ref:t,style:{pointerEvents:`none`,...e.style}})})});T.displayName=w;var E=`CheckboxBubbleInput`,D=p.forwardRef(({__scopeCheckbox:e,...t},n)=>{let{control:i,hasConsumerStoppedPropagationRef:o,checked:s,defaultChecked:c,required:l,disabled:f,name:h,value:g,form:_,bubbleInput:v,setBubbleInput:b}=y(E,e),x=a(n,b),S=u(s),C=d(i);p.useEffect(()=>{let e=v;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=!o.current;if(S!==s&&n){let t=new Event(`click`,{bubbles:r});e.indeterminate=k(s),n.call(e,k(s)?!1:s),e.dispatchEvent(t)}},[v,S,s,o]);let w=p.useRef(k(s)?!1:s);return(0,m.jsx)(r.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:c??w.current,required:l,disabled:f,name:h,value:g,form:_,...t,tabIndex:-1,ref:x,style:{...t.style,...C,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})});D.displayName=E;function O(e){return typeof e==`function`}function k(e){return e===`indeterminate`}function A(e){return k(e)?`indeterminate`:e?`checked`:`unchecked`}function j({className:e,...t}){return(0,m.jsx)(C,{className:i(`peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs outline-none transition-shadow focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:data-[state=checked]:bg-primary dark:aria-invalid:ring-destructive/40`,e),"data-slot":`checkbox`,...t,children:(0,m.jsx)(T,{className:`grid place-content-center text-current transition-none`,"data-slot":`checkbox-indicator`,children:(0,m.jsx)(f,{className:`size-3.5`})})})}export{j as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./dist-Cc8_LDAq.js";import{i,u as a}from"./button-C_NDYaz8.js";import{a as o,r as s,t as c}from"./dist-DPPquN_M.js";import{t as l}from"./dist-DvwKOQ8R.js";import{t as u}from"./dist-BixeH3nX.js";import{t as d}from"./dist-ZdRQQNeu.js";import{t as f}from"./check-CHp0nSkR.js";var p=e(t(),1),m=n(),h=`Checkbox`,[g,_]=o(h),[v,y]=g(h);function b(e){let{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:l,required:u,value:d=`on`,internal_do_not_use_render:f}=e,[g,_]=c({prop:n,defaultProp:i??!1,onChange:l,caller:h}),[y,b]=p.useState(null),[x,S]=p.useState(null),C=p.useRef(!1),w=y?!!o||!!y.closest(`form`):!0,T={checked:g,disabled:a,setChecked:_,control:y,setControl:b,name:s,form:o,value:d,hasConsumerStoppedPropagationRef:C,required:u,defaultChecked:k(i)?!1:i,isFormControl:w,bubbleInput:x,setBubbleInput:S};return(0,m.jsx)(v,{scope:t,...T,children:O(f)?f(T):r})}var x=`CheckboxTrigger`,S=p.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...i},o)=>{let{control:c,value:l,disabled:u,checked:d,required:f,setControl:h,setChecked:g,hasConsumerStoppedPropagationRef:_,isFormControl:v,bubbleInput:b}=y(x,e),S=a(o,h),C=p.useRef(d);return p.useEffect(()=>{let e=c?.form;if(e){let t=()=>g(C.current);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[c,g]),(0,m.jsx)(r.button,{type:`button`,role:`checkbox`,"aria-checked":k(d)?`mixed`:d,"aria-required":f,"data-state":A(d),"data-disabled":u?``:void 0,disabled:u,value:l,...i,ref:S,onKeyDown:s(t,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:s(n,e=>{g(e=>k(e)?!0:!e),b&&v&&(_.current=e.isPropagationStopped(),_.current||e.stopPropagation())})})});S.displayName=x;var C=p.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return(0,m.jsx)(b,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(S,{...d,ref:t,__scopeCheckbox:n}),e&&(0,m.jsx)(D,{__scopeCheckbox:n})]})})});C.displayName=h;var w=`CheckboxIndicator`,T=p.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:i,...a}=e,o=y(w,n);return(0,m.jsx)(l,{present:i||k(o.checked)||o.checked===!0,children:(0,m.jsx)(r.span,{"data-state":A(o.checked),"data-disabled":o.disabled?``:void 0,...a,ref:t,style:{pointerEvents:`none`,...e.style}})})});T.displayName=w;var E=`CheckboxBubbleInput`,D=p.forwardRef(({__scopeCheckbox:e,...t},n)=>{let{control:i,hasConsumerStoppedPropagationRef:o,checked:s,defaultChecked:c,required:l,disabled:f,name:h,value:g,form:_,bubbleInput:v,setBubbleInput:b}=y(E,e),x=a(n,b),S=u(s),C=d(i);p.useEffect(()=>{let e=v;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=!o.current;if(S!==s&&n){let t=new Event(`click`,{bubbles:r});e.indeterminate=k(s),n.call(e,k(s)?!1:s),e.dispatchEvent(t)}},[v,S,s,o]);let w=p.useRef(k(s)?!1:s);return(0,m.jsx)(r.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:c??w.current,required:l,disabled:f,name:h,value:g,form:_,...t,tabIndex:-1,ref:x,style:{...t.style,...C,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})});D.displayName=E;function O(e){return typeof e==`function`}function k(e){return e===`indeterminate`}function A(e){return k(e)?`indeterminate`:e?`checked`:`unchecked`}function j({className:e,...t}){return(0,m.jsx)(C,{className:i(`peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs outline-none transition-shadow focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:data-[state=checked]:bg-primary dark:aria-invalid:ring-destructive/40`,e),"data-slot":`checkbox`,...t,children:(0,m.jsx)(T,{className:`grid place-content-center text-current transition-none`,"data-slot":`checkbox-indicator`,children:(0,m.jsx)(f,{className:`size-3.5`})})})}export{j as t}; \ No newline at end of file diff --git a/src/www/assets/coming-soon-dialog-BWHKf2Gm.js b/src/www/assets/coming-soon-dialog-B34F88bO.js similarity index 78% rename from src/www/assets/coming-soon-dialog-BWHKf2Gm.js rename to src/www/assets/coming-soon-dialog-B34F88bO.js index 37cedd4..aee95fb 100644 --- a/src/www/assets/coming-soon-dialog-BWHKf2Gm.js +++ b/src/www/assets/coming-soon-dialog-B34F88bO.js @@ -1 +1 @@ -import{Fp as e,Ip as t,Lp as n,em as r}from"./messages-Bp0bCjzp.js";import{t as i}from"./telescope-DU0wiTDw.js";import{i as a,o,r as s,s as c,t as l}from"./dialog-BJ5VA2v_.js";var u=r();function d({open:r,onOpenChange:d}){return(0,u.jsx)(l,{onOpenChange:d,open:r,children:(0,u.jsx)(s,{className:`sm:max-w-sm`,children:(0,u.jsxs)(o,{className:`items-center text-center`,children:[(0,u.jsx)(i,{className:`mb-2 size-12 text-muted-foreground`}),(0,u.jsx)(c,{children:n()}),(0,u.jsxs)(a,{children:[t(),(0,u.jsx)(`br`,{}),(0,u.jsx)(`p`,{className:`mt-2 text-center`,children:e()})]})]})})})}export{d as t}; \ No newline at end of file +import{Ip as e,Lp as t,Rp as n,tm as r}from"./messages-BOatyqUm.js";import{t as i}from"./telescope-DU0wiTDw.js";import{i as a,o,r as s,s as c,t as l}from"./dialog-CZ-2RPb-.js";var u=r();function d({open:r,onOpenChange:d}){return(0,u.jsx)(l,{onOpenChange:d,open:r,children:(0,u.jsx)(s,{className:`sm:max-w-sm`,children:(0,u.jsxs)(o,{className:`items-center text-center`,children:[(0,u.jsx)(i,{className:`mb-2 size-12 text-muted-foreground`}),(0,u.jsx)(c,{children:n()}),(0,u.jsxs)(a,{children:[t(),(0,u.jsx)(`br`,{}),(0,u.jsx)(`p`,{className:`mt-2 text-center`,children:e()})]})]})})})}export{d as t}; \ No newline at end of file diff --git a/src/www/assets/command-CIv3ggHf.js b/src/www/assets/command-B_SlhXkX.js similarity index 97% rename from src/www/assets/command-CIv3ggHf.js rename to src/www/assets/command-B_SlhXkX.js index 063bf5b..2b5fe1f 100644 --- a/src/www/assets/command-CIv3ggHf.js +++ b/src/www/assets/command-B_SlhXkX.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";import{t as r}from"./dist-BFnxq45V.js";import{i,l as a}from"./button-BgMnOYKD.js";import{n as o}from"./dist-B0ikDpJU.js";import{a as s,i as c,n as l,o as u}from"./dist-CPQ-sRtL.js";import{t as d}from"./createLucideIcon-Br0Bd5k2.js";import{i as f,o as p,r as m,s as h,t as g}from"./dialog-BJ5VA2v_.js";var _=d(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),v=1,y=.9,b=.8,ee=.17,x=.1,S=.999,C=.9999,w=.99,T=/[\\\/_+.#"@\[\(\{&]/,E=/[\\\/_+.#"@\[\(\{&]/g,D=/[\s-]/,O=/[\s-]/g;function k(e,t,n,r,i,a,o){if(a===t.length)return i===e.length?v:w;var s=`${i},${a}`;if(o[s]!==void 0)return o[s];for(var c=r.charAt(a),l=n.indexOf(c,i),u=0,d,f,p,m;l>=0;)d=k(e,t,n,r,l+1,a+1,o),d>u&&(l===i?d*=v:T.test(e.charAt(l-1))?(d*=b,p=e.slice(i,l-1).match(E),p&&i>0&&(d*=S**+p.length)):D.test(e.charAt(l-1))?(d*=y,m=e.slice(i,l-1).match(O),m&&i>0&&(d*=S**+m.length)):(d*=ee,i>0&&(d*=S**+(l-i))),e.charAt(l)!==t.charAt(a)&&(d*=C)),(dd&&(d=f*x)),d>u&&(u=d),l=n.indexOf(c,l+1);return o[s]=u,u}function A(e){return e.toLowerCase().replace(O,` `)}function j(e,t,n){return e=n&&n.length>0?`${e+` `+n.join(` `)}`:e,k(e,t,A(e),A(t),0,0,{})}var M=e(t(),1),N=`[cmdk-group=""]`,P=`[cmdk-group-items=""]`,te=`[cmdk-group-heading=""]`,F=`[cmdk-item=""]`,ne=`${F}:not([aria-disabled="true"])`,I=`cmdk-item-select`,L=`data-value`,re=(e,t,n)=>j(e,t,n),R=M.createContext(void 0),z=()=>M.useContext(R),B=M.createContext(void 0),V=()=>M.useContext(B),H=M.createContext(void 0),U=M.forwardRef((e,t)=>{let n=X(()=>({search:``,value:e.value??e.defaultValue??``,selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}})),i=X(()=>new Set),a=X(()=>new Map),s=X(()=>new Map),c=X(()=>new Set),l=J(e),{label:u,children:d,value:f,onValueChange:p,filter:m,shouldFilter:h,loop:g,disablePointerSelection:_=!1,vimBindings:v=!0,...y}=e,b=o(),ee=o(),x=o(),S=M.useRef(null),C=fe();Y(()=>{if(f!==void 0){let e=f.trim();n.current.value=e,w.emit()}},[f]),Y(()=>{C(6,A)},[]);let w=M.useMemo(()=>({subscribe:e=>(c.current.add(e),()=>c.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var i,a,o;if(!Object.is(n.current[e],t)){if(n.current[e]=t,e===`search`)k(),D(),C(1,O);else if(e===`value`){if(document.activeElement.hasAttribute(`cmdk-input`)||document.activeElement.hasAttribute(`cmdk-root`)){let e=document.getElementById(x);e?e.focus():(i=document.getElementById(b))==null||i.focus()}if(C(7,()=>{n.current.selectedItemId=j()?.id,w.emit()}),r||C(5,A),l.current?.value!==void 0){let e=t??``;(o=(a=l.current).onValueChange)==null||o.call(a,e);return}}w.emit()}},emit:()=>{c.current.forEach(e=>e())}}),[]),T=M.useMemo(()=>({value:(e,t,r)=>{t!==s.current.get(e)?.value&&(s.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,E(t,r)),C(2,()=>{D(),w.emit()}))},item:(e,t)=>(i.current.add(e),t&&(a.current.has(t)?a.current.get(t).add(e):a.current.set(t,new Set([e]))),C(3,()=>{k(),D(),n.current.value||O(),w.emit()}),()=>{s.current.delete(e),i.current.delete(e),n.current.filtered.items.delete(e);let t=j();C(4,()=>{k(),t?.getAttribute(`id`)===e&&O(),w.emit()})}),group:e=>(a.current.has(e)||a.current.set(e,new Set),()=>{s.current.delete(e),a.current.delete(e)}),filter:()=>l.current.shouldFilter,label:u||e[`aria-label`],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:b,inputId:x,labelId:ee,listInnerRef:S}),[]);function E(e,t){let r=l.current?.filter??re;return e?r(e,n.current.search,t):0}function D(){if(!n.current.search||l.current.shouldFilter===!1)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let r=a.current.get(n),i=0;r.forEach(t=>{let n=e.get(t);i=Math.max(n,i)}),t.push([n,i])});let r=S.current;z().sort((t,n)=>{let r=t.getAttribute(`id`),i=n.getAttribute(`id`);return(e.get(i)??0)-(e.get(r)??0)}).forEach(e=>{let t=e.closest(P);t?t.appendChild(e.parentElement===t?e:e.closest(`${P} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${P} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=S.current?.querySelector(`${N}[${L}="${encodeURIComponent(e[0])}"]`);t?.parentElement.appendChild(t)})}function O(){let e=z().find(e=>e.getAttribute(`aria-disabled`)!==`true`)?.getAttribute(L);w.setState(`value`,e||void 0)}function k(){if(!n.current.search||l.current.shouldFilter===!1){n.current.filtered.count=i.current.size;return}n.current.filtered.groups=new Set;let e=0;for(let t of i.current){let r=E(s.current.get(t)?.value??``,s.current.get(t)?.keywords??[]);n.current.filtered.items.set(t,r),r>0&&e++}for(let[e,t]of a.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=e}function A(){var e;let t=j();t&&(t.parentElement?.firstChild===t&&((e=t.closest(N)?.querySelector(te))==null||e.scrollIntoView({block:`nearest`})),t.scrollIntoView({block:`nearest`}))}function j(){return S.current?.querySelector(`${F}[aria-selected="true"]`)}function z(){return Array.from(S.current?.querySelectorAll(ne)||[])}function V(e){let t=z()[e];t&&w.setState(`value`,t.getAttribute(L))}function H(e){var t;let n=j(),r=z(),i=r.findIndex(e=>e===n),a=r[i+e];(t=l.current)!=null&&t.loop&&(a=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),a&&w.setState(`value`,a.getAttribute(L))}function U(e){let t=j()?.closest(N),n;for(;t&&!n;)t=e>0?le(t,N):ue(t,N),n=t?.querySelector(ne);n?w.setState(`value`,n.getAttribute(L)):H(e)}let W=()=>V(z().length-1),G=e=>{e.preventDefault(),e.metaKey?W():e.altKey?U(1):H(1)},K=e=>{e.preventDefault(),e.metaKey?V(0):e.altKey?U(-1):H(-1)};return M.createElement(r.div,{ref:t,tabIndex:-1,...y,"cmdk-root":``,onKeyDown:e=>{var t;(t=y.onKeyDown)==null||t.call(y,e);let n=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||n))switch(e.key){case`n`:case`j`:v&&e.ctrlKey&&G(e);break;case`ArrowDown`:G(e);break;case`p`:case`k`:v&&e.ctrlKey&&K(e);break;case`ArrowUp`:K(e);break;case`Home`:e.preventDefault(),V(0);break;case`End`:e.preventDefault(),W();break;case`Enter`:{e.preventDefault();let t=j();if(t){let e=new Event(I);t.dispatchEvent(e)}}}}},M.createElement(`label`,{"cmdk-label":``,htmlFor:T.inputId,id:T.labelId,style:me},u),Q(e,e=>M.createElement(B.Provider,{value:w},M.createElement(R.Provider,{value:T},e))))}),W=M.forwardRef((e,t)=>{let n=o(),i=M.useRef(null),s=M.useContext(H),c=z(),l=J(e),u=l.current?.forceMount??s?.forceMount;Y(()=>{if(!u)return c.item(n,s?.id)},[u]);let d=de(n,i,[e.value,e.children,i],e.keywords),f=V(),p=Z(e=>e.value&&e.value===d.current),m=Z(e=>u||c.filter()===!1?!0:e.search?e.filtered.items.get(n)>0:!0);M.useEffect(()=>{let t=i.current;if(!(!t||e.disabled))return t.addEventListener(I,h),()=>t.removeEventListener(I,h)},[m,e.onSelect,e.disabled]);function h(){var e,t;g(),(t=(e=l.current).onSelect)==null||t.call(e,d.current)}function g(){f.setState(`value`,d.current,!0)}if(!m)return null;let{disabled:_,value:v,onSelect:y,forceMount:b,keywords:ee,...x}=e;return M.createElement(r.div,{ref:a(i,t),...x,id:n,"cmdk-item":``,role:`option`,"aria-disabled":!!_,"aria-selected":!!p,"data-disabled":!!_,"data-selected":!!p,onPointerMove:_||c.getDisablePointerSelection()?void 0:g,onClick:_?void 0:h},e.children)}),G=M.forwardRef((e,t)=>{let{heading:n,children:i,forceMount:s,...c}=e,l=o(),u=M.useRef(null),d=M.useRef(null),f=o(),p=z(),m=Z(e=>s||p.filter()===!1?!0:e.search?e.filtered.groups.has(l):!0);Y(()=>p.group(l),[]),de(l,u,[e.value,e.heading,d]);let h=M.useMemo(()=>({id:l,forceMount:s}),[s]);return M.createElement(r.div,{ref:a(u,t),...c,"cmdk-group":``,role:`presentation`,hidden:m?void 0:!0},n&&M.createElement(`div`,{ref:d,"cmdk-group-heading":``,"aria-hidden":!0,id:f},n),Q(e,e=>M.createElement(`div`,{"cmdk-group-items":``,role:`group`,"aria-labelledby":n?f:void 0},M.createElement(H.Provider,{value:h},e))))}),K=M.forwardRef((e,t)=>{let{alwaysRender:n,...i}=e,o=M.useRef(null),s=Z(e=>!e.search);return!n&&!s?null:M.createElement(r.div,{ref:a(o,t),...i,"cmdk-separator":``,role:`separator`})}),ie=M.forwardRef((e,t)=>{let{onValueChange:n,...i}=e,a=e.value!=null,o=V(),s=Z(e=>e.search),c=Z(e=>e.selectedItemId),l=z();return M.useEffect(()=>{e.value!=null&&o.setState(`search`,e.value)},[e.value]),M.createElement(r.input,{ref:t,...i,"cmdk-input":``,autoComplete:`off`,autoCorrect:`off`,spellCheck:!1,"aria-autocomplete":`list`,role:`combobox`,"aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":c,id:l.inputId,type:`text`,value:a?e.value:s,onChange:e=>{a||o.setState(`search`,e.target.value),n?.(e.target.value)}})}),ae=M.forwardRef((e,t)=>{let{children:n,label:i=`Suggestions`,...o}=e,s=M.useRef(null),c=M.useRef(null),l=Z(e=>e.selectedItemId),u=z();return M.useEffect(()=>{if(c.current&&s.current){let e=c.current,t=s.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.offsetHeight;t.style.setProperty(`--cmdk-list-height`,n.toFixed(1)+`px`)})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),M.createElement(r.div,{ref:a(s,t),...o,"cmdk-list":``,role:`listbox`,tabIndex:-1,"aria-activedescendant":l,"aria-label":i,id:u.listId},Q(e,e=>M.createElement(`div`,{ref:a(c,u.listInnerRef),"cmdk-list-sizer":``},e)))}),oe=M.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:i,contentClassName:a,container:o,...d}=e;return M.createElement(u,{open:n,onOpenChange:r},M.createElement(s,{container:o},M.createElement(c,{"cmdk-overlay":``,className:i}),M.createElement(l,{"aria-label":e.label,"cmdk-dialog":``,className:a},M.createElement(U,{ref:t,...d}))))}),se=M.forwardRef((e,t)=>Z(e=>e.filtered.count===0)?M.createElement(r.div,{ref:t,...e,"cmdk-empty":``,role:`presentation`}):null),ce=M.forwardRef((e,t)=>{let{progress:n,children:i,label:a=`Loading...`,...o}=e;return M.createElement(r.div,{ref:t,...o,"cmdk-loading":``,role:`progressbar`,"aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},Q(e,e=>M.createElement(`div`,{"aria-hidden":!0},e)))}),q=Object.assign(U,{List:ae,Item:W,Input:ie,Group:G,Separator:K,Dialog:oe,Empty:se,Loading:ce});function le(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function ue(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function J(e){let t=M.useRef(e);return Y(()=>{t.current=e}),t}var Y=typeof window>`u`?M.useEffect:M.useLayoutEffect;function X(e){let t=M.useRef();return t.current===void 0&&(t.current=e()),t}function Z(e){let t=V(),n=()=>e(t.snapshot());return M.useSyncExternalStore(t.subscribe,n,n)}function de(e,t,n,r=[]){let i=M.useRef(),a=z();return Y(()=>{var o;let s=(()=>{for(let e of n){if(typeof e==`string`)return e.trim();if(typeof e==`object`&&`current`in e)return e.current?e.current.textContent?.trim():i.current}})(),c=r.map(e=>e.trim());a.value(e,s,c),(o=t.current)==null||o.setAttribute(L,s),i.current=s}),i}var fe=()=>{let[e,t]=M.useState(),n=X(()=>new Map);return Y(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function pe(e){let t=e.type;return typeof t==`function`?t(e.props):`render`in t?t.render(e.props):e}function Q({asChild:e,children:t},n){return e&&M.isValidElement(t)?M.cloneElement(pe(t),{ref:t.ref},n(t.props.children)):n(t)}var me={position:`absolute`,width:`1px`,height:`1px`,padding:`0`,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,borderWidth:`0`},$=n();function he({className:e,...t}){return(0,$.jsx)(q,{className:i(`flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground`,e),"data-slot":`command`,...t})}function ge({title:e=`Command Palette`,description:t=`Search for a command to run...`,children:n,className:r,showCloseButton:a=!0,...o}){return(0,$.jsxs)(g,{...o,children:[(0,$.jsxs)(p,{className:`sr-only`,children:[(0,$.jsx)(h,{children:e}),(0,$.jsx)(f,{children:t})]}),(0,$.jsx)(m,{className:i(`overflow-hidden p-0`,r),showCloseButton:a,children:(0,$.jsx)(he,{className:`**:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5`,children:n})})]})}function _e({className:e,...t}){return(0,$.jsxs)(`div`,{className:`flex h-9 items-center gap-2 border-b px-3`,"data-slot":`command-input-wrapper`,children:[(0,$.jsx)(_,{className:`size-4 shrink-0 opacity-50`}),(0,$.jsx)(q.Input,{className:i(`flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50`,e),"data-slot":`command-input`,...t})]})}function ve({className:e,...t}){return(0,$.jsx)(q.List,{className:i(`max-h-[300px] scroll-py-1 overflow-y-auto overflow-x-hidden`,e),"data-slot":`command-list`,...t})}function ye({...e}){return(0,$.jsx)(q.Empty,{className:`py-6 text-center text-sm`,"data-slot":`command-empty`,...e})}function be({className:e,...t}){return(0,$.jsx)(q.Group,{className:i(`overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:text-xs`,e),"data-slot":`command-group`,...t})}function xe({className:e,...t}){return(0,$.jsx)(q.Separator,{className:i(`-mx-1 h-px bg-border`,e),"data-slot":`command-separator`,...t})}function Se({className:e,...t}){return(0,$.jsx)(q.Item,{className:i(`relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0`,e),"data-slot":`command-item`,...t})}export{_e as a,xe as c,be as i,_ as l,ge as n,Se as o,ye as r,ve as s,he as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./dist-Cc8_LDAq.js";import{i,l as a}from"./button-C_NDYaz8.js";import{n as o}from"./dist-D4X8zGEB.js";import{a as s,i as c,n as l,o as u}from"./dist-iiotRAEO.js";import{t as d}from"./createLucideIcon-Br0Bd5k2.js";import{i as f,o as p,r as m,s as h,t as g}from"./dialog-CZ-2RPb-.js";var _=d(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),v=1,y=.9,b=.8,ee=.17,x=.1,S=.999,C=.9999,w=.99,T=/[\\\/_+.#"@\[\(\{&]/,E=/[\\\/_+.#"@\[\(\{&]/g,D=/[\s-]/,O=/[\s-]/g;function k(e,t,n,r,i,a,o){if(a===t.length)return i===e.length?v:w;var s=`${i},${a}`;if(o[s]!==void 0)return o[s];for(var c=r.charAt(a),l=n.indexOf(c,i),u=0,d,f,p,m;l>=0;)d=k(e,t,n,r,l+1,a+1,o),d>u&&(l===i?d*=v:T.test(e.charAt(l-1))?(d*=b,p=e.slice(i,l-1).match(E),p&&i>0&&(d*=S**+p.length)):D.test(e.charAt(l-1))?(d*=y,m=e.slice(i,l-1).match(O),m&&i>0&&(d*=S**+m.length)):(d*=ee,i>0&&(d*=S**+(l-i))),e.charAt(l)!==t.charAt(a)&&(d*=C)),(dd&&(d=f*x)),d>u&&(u=d),l=n.indexOf(c,l+1);return o[s]=u,u}function A(e){return e.toLowerCase().replace(O,` `)}function j(e,t,n){return e=n&&n.length>0?`${e+` `+n.join(` `)}`:e,k(e,t,A(e),A(t),0,0,{})}var M=e(t(),1),N=`[cmdk-group=""]`,P=`[cmdk-group-items=""]`,te=`[cmdk-group-heading=""]`,F=`[cmdk-item=""]`,ne=`${F}:not([aria-disabled="true"])`,I=`cmdk-item-select`,L=`data-value`,re=(e,t,n)=>j(e,t,n),R=M.createContext(void 0),z=()=>M.useContext(R),B=M.createContext(void 0),V=()=>M.useContext(B),H=M.createContext(void 0),U=M.forwardRef((e,t)=>{let n=X(()=>({search:``,value:e.value??e.defaultValue??``,selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}})),i=X(()=>new Set),a=X(()=>new Map),s=X(()=>new Map),c=X(()=>new Set),l=J(e),{label:u,children:d,value:f,onValueChange:p,filter:m,shouldFilter:h,loop:g,disablePointerSelection:_=!1,vimBindings:v=!0,...y}=e,b=o(),ee=o(),x=o(),S=M.useRef(null),C=fe();Y(()=>{if(f!==void 0){let e=f.trim();n.current.value=e,w.emit()}},[f]),Y(()=>{C(6,A)},[]);let w=M.useMemo(()=>({subscribe:e=>(c.current.add(e),()=>c.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var i,a,o;if(!Object.is(n.current[e],t)){if(n.current[e]=t,e===`search`)k(),D(),C(1,O);else if(e===`value`){if(document.activeElement.hasAttribute(`cmdk-input`)||document.activeElement.hasAttribute(`cmdk-root`)){let e=document.getElementById(x);e?e.focus():(i=document.getElementById(b))==null||i.focus()}if(C(7,()=>{n.current.selectedItemId=j()?.id,w.emit()}),r||C(5,A),l.current?.value!==void 0){let e=t??``;(o=(a=l.current).onValueChange)==null||o.call(a,e);return}}w.emit()}},emit:()=>{c.current.forEach(e=>e())}}),[]),T=M.useMemo(()=>({value:(e,t,r)=>{t!==s.current.get(e)?.value&&(s.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,E(t,r)),C(2,()=>{D(),w.emit()}))},item:(e,t)=>(i.current.add(e),t&&(a.current.has(t)?a.current.get(t).add(e):a.current.set(t,new Set([e]))),C(3,()=>{k(),D(),n.current.value||O(),w.emit()}),()=>{s.current.delete(e),i.current.delete(e),n.current.filtered.items.delete(e);let t=j();C(4,()=>{k(),t?.getAttribute(`id`)===e&&O(),w.emit()})}),group:e=>(a.current.has(e)||a.current.set(e,new Set),()=>{s.current.delete(e),a.current.delete(e)}),filter:()=>l.current.shouldFilter,label:u||e[`aria-label`],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:b,inputId:x,labelId:ee,listInnerRef:S}),[]);function E(e,t){let r=l.current?.filter??re;return e?r(e,n.current.search,t):0}function D(){if(!n.current.search||l.current.shouldFilter===!1)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let r=a.current.get(n),i=0;r.forEach(t=>{let n=e.get(t);i=Math.max(n,i)}),t.push([n,i])});let r=S.current;z().sort((t,n)=>{let r=t.getAttribute(`id`),i=n.getAttribute(`id`);return(e.get(i)??0)-(e.get(r)??0)}).forEach(e=>{let t=e.closest(P);t?t.appendChild(e.parentElement===t?e:e.closest(`${P} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${P} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=S.current?.querySelector(`${N}[${L}="${encodeURIComponent(e[0])}"]`);t?.parentElement.appendChild(t)})}function O(){let e=z().find(e=>e.getAttribute(`aria-disabled`)!==`true`)?.getAttribute(L);w.setState(`value`,e||void 0)}function k(){if(!n.current.search||l.current.shouldFilter===!1){n.current.filtered.count=i.current.size;return}n.current.filtered.groups=new Set;let e=0;for(let t of i.current){let r=E(s.current.get(t)?.value??``,s.current.get(t)?.keywords??[]);n.current.filtered.items.set(t,r),r>0&&e++}for(let[e,t]of a.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=e}function A(){var e;let t=j();t&&(t.parentElement?.firstChild===t&&((e=t.closest(N)?.querySelector(te))==null||e.scrollIntoView({block:`nearest`})),t.scrollIntoView({block:`nearest`}))}function j(){return S.current?.querySelector(`${F}[aria-selected="true"]`)}function z(){return Array.from(S.current?.querySelectorAll(ne)||[])}function V(e){let t=z()[e];t&&w.setState(`value`,t.getAttribute(L))}function H(e){var t;let n=j(),r=z(),i=r.findIndex(e=>e===n),a=r[i+e];(t=l.current)!=null&&t.loop&&(a=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),a&&w.setState(`value`,a.getAttribute(L))}function U(e){let t=j()?.closest(N),n;for(;t&&!n;)t=e>0?le(t,N):ue(t,N),n=t?.querySelector(ne);n?w.setState(`value`,n.getAttribute(L)):H(e)}let W=()=>V(z().length-1),G=e=>{e.preventDefault(),e.metaKey?W():e.altKey?U(1):H(1)},K=e=>{e.preventDefault(),e.metaKey?V(0):e.altKey?U(-1):H(-1)};return M.createElement(r.div,{ref:t,tabIndex:-1,...y,"cmdk-root":``,onKeyDown:e=>{var t;(t=y.onKeyDown)==null||t.call(y,e);let n=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||n))switch(e.key){case`n`:case`j`:v&&e.ctrlKey&&G(e);break;case`ArrowDown`:G(e);break;case`p`:case`k`:v&&e.ctrlKey&&K(e);break;case`ArrowUp`:K(e);break;case`Home`:e.preventDefault(),V(0);break;case`End`:e.preventDefault(),W();break;case`Enter`:{e.preventDefault();let t=j();if(t){let e=new Event(I);t.dispatchEvent(e)}}}}},M.createElement(`label`,{"cmdk-label":``,htmlFor:T.inputId,id:T.labelId,style:me},u),Q(e,e=>M.createElement(B.Provider,{value:w},M.createElement(R.Provider,{value:T},e))))}),W=M.forwardRef((e,t)=>{let n=o(),i=M.useRef(null),s=M.useContext(H),c=z(),l=J(e),u=l.current?.forceMount??s?.forceMount;Y(()=>{if(!u)return c.item(n,s?.id)},[u]);let d=de(n,i,[e.value,e.children,i],e.keywords),f=V(),p=Z(e=>e.value&&e.value===d.current),m=Z(e=>u||c.filter()===!1?!0:e.search?e.filtered.items.get(n)>0:!0);M.useEffect(()=>{let t=i.current;if(!(!t||e.disabled))return t.addEventListener(I,h),()=>t.removeEventListener(I,h)},[m,e.onSelect,e.disabled]);function h(){var e,t;g(),(t=(e=l.current).onSelect)==null||t.call(e,d.current)}function g(){f.setState(`value`,d.current,!0)}if(!m)return null;let{disabled:_,value:v,onSelect:y,forceMount:b,keywords:ee,...x}=e;return M.createElement(r.div,{ref:a(i,t),...x,id:n,"cmdk-item":``,role:`option`,"aria-disabled":!!_,"aria-selected":!!p,"data-disabled":!!_,"data-selected":!!p,onPointerMove:_||c.getDisablePointerSelection()?void 0:g,onClick:_?void 0:h},e.children)}),G=M.forwardRef((e,t)=>{let{heading:n,children:i,forceMount:s,...c}=e,l=o(),u=M.useRef(null),d=M.useRef(null),f=o(),p=z(),m=Z(e=>s||p.filter()===!1?!0:e.search?e.filtered.groups.has(l):!0);Y(()=>p.group(l),[]),de(l,u,[e.value,e.heading,d]);let h=M.useMemo(()=>({id:l,forceMount:s}),[s]);return M.createElement(r.div,{ref:a(u,t),...c,"cmdk-group":``,role:`presentation`,hidden:m?void 0:!0},n&&M.createElement(`div`,{ref:d,"cmdk-group-heading":``,"aria-hidden":!0,id:f},n),Q(e,e=>M.createElement(`div`,{"cmdk-group-items":``,role:`group`,"aria-labelledby":n?f:void 0},M.createElement(H.Provider,{value:h},e))))}),K=M.forwardRef((e,t)=>{let{alwaysRender:n,...i}=e,o=M.useRef(null),s=Z(e=>!e.search);return!n&&!s?null:M.createElement(r.div,{ref:a(o,t),...i,"cmdk-separator":``,role:`separator`})}),ie=M.forwardRef((e,t)=>{let{onValueChange:n,...i}=e,a=e.value!=null,o=V(),s=Z(e=>e.search),c=Z(e=>e.selectedItemId),l=z();return M.useEffect(()=>{e.value!=null&&o.setState(`search`,e.value)},[e.value]),M.createElement(r.input,{ref:t,...i,"cmdk-input":``,autoComplete:`off`,autoCorrect:`off`,spellCheck:!1,"aria-autocomplete":`list`,role:`combobox`,"aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":c,id:l.inputId,type:`text`,value:a?e.value:s,onChange:e=>{a||o.setState(`search`,e.target.value),n?.(e.target.value)}})}),ae=M.forwardRef((e,t)=>{let{children:n,label:i=`Suggestions`,...o}=e,s=M.useRef(null),c=M.useRef(null),l=Z(e=>e.selectedItemId),u=z();return M.useEffect(()=>{if(c.current&&s.current){let e=c.current,t=s.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.offsetHeight;t.style.setProperty(`--cmdk-list-height`,n.toFixed(1)+`px`)})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),M.createElement(r.div,{ref:a(s,t),...o,"cmdk-list":``,role:`listbox`,tabIndex:-1,"aria-activedescendant":l,"aria-label":i,id:u.listId},Q(e,e=>M.createElement(`div`,{ref:a(c,u.listInnerRef),"cmdk-list-sizer":``},e)))}),oe=M.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:i,contentClassName:a,container:o,...d}=e;return M.createElement(u,{open:n,onOpenChange:r},M.createElement(s,{container:o},M.createElement(c,{"cmdk-overlay":``,className:i}),M.createElement(l,{"aria-label":e.label,"cmdk-dialog":``,className:a},M.createElement(U,{ref:t,...d}))))}),se=M.forwardRef((e,t)=>Z(e=>e.filtered.count===0)?M.createElement(r.div,{ref:t,...e,"cmdk-empty":``,role:`presentation`}):null),ce=M.forwardRef((e,t)=>{let{progress:n,children:i,label:a=`Loading...`,...o}=e;return M.createElement(r.div,{ref:t,...o,"cmdk-loading":``,role:`progressbar`,"aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},Q(e,e=>M.createElement(`div`,{"aria-hidden":!0},e)))}),q=Object.assign(U,{List:ae,Item:W,Input:ie,Group:G,Separator:K,Dialog:oe,Empty:se,Loading:ce});function le(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function ue(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function J(e){let t=M.useRef(e);return Y(()=>{t.current=e}),t}var Y=typeof window>`u`?M.useEffect:M.useLayoutEffect;function X(e){let t=M.useRef();return t.current===void 0&&(t.current=e()),t}function Z(e){let t=V(),n=()=>e(t.snapshot());return M.useSyncExternalStore(t.subscribe,n,n)}function de(e,t,n,r=[]){let i=M.useRef(),a=z();return Y(()=>{var o;let s=(()=>{for(let e of n){if(typeof e==`string`)return e.trim();if(typeof e==`object`&&`current`in e)return e.current?e.current.textContent?.trim():i.current}})(),c=r.map(e=>e.trim());a.value(e,s,c),(o=t.current)==null||o.setAttribute(L,s),i.current=s}),i}var fe=()=>{let[e,t]=M.useState(),n=X(()=>new Map);return Y(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function pe(e){let t=e.type;return typeof t==`function`?t(e.props):`render`in t?t.render(e.props):e}function Q({asChild:e,children:t},n){return e&&M.isValidElement(t)?M.cloneElement(pe(t),{ref:t.ref},n(t.props.children)):n(t)}var me={position:`absolute`,width:`1px`,height:`1px`,padding:`0`,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,borderWidth:`0`},$=n();function he({className:e,...t}){return(0,$.jsx)(q,{className:i(`flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground`,e),"data-slot":`command`,...t})}function ge({title:e=`Command Palette`,description:t=`Search for a command to run...`,children:n,className:r,showCloseButton:a=!0,...o}){return(0,$.jsxs)(g,{...o,children:[(0,$.jsxs)(p,{className:`sr-only`,children:[(0,$.jsx)(h,{children:e}),(0,$.jsx)(f,{children:t})]}),(0,$.jsx)(m,{className:i(`overflow-hidden p-0`,r),showCloseButton:a,children:(0,$.jsx)(he,{className:`**:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5`,children:n})})]})}function _e({className:e,...t}){return(0,$.jsxs)(`div`,{className:`flex h-9 items-center gap-2 border-b px-3`,"data-slot":`command-input-wrapper`,children:[(0,$.jsx)(_,{className:`size-4 shrink-0 opacity-50`}),(0,$.jsx)(q.Input,{className:i(`flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50`,e),"data-slot":`command-input`,...t})]})}function ve({className:e,...t}){return(0,$.jsx)(q.List,{className:i(`max-h-[300px] scroll-py-1 overflow-y-auto overflow-x-hidden`,e),"data-slot":`command-list`,...t})}function ye({...e}){return(0,$.jsx)(q.Empty,{className:`py-6 text-center text-sm`,"data-slot":`command-empty`,...e})}function be({className:e,...t}){return(0,$.jsx)(q.Group,{className:i(`overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:text-xs`,e),"data-slot":`command-group`,...t})}function xe({className:e,...t}){return(0,$.jsx)(q.Separator,{className:i(`-mx-1 h-px bg-border`,e),"data-slot":`command-separator`,...t})}function Se({className:e,...t}){return(0,$.jsx)(q.Item,{className:i(`relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0`,e),"data-slot":`command-item`,...t})}export{_e as a,xe as c,be as i,_ as l,ge as n,Se as o,ye as r,ve as s,he as t}; \ No newline at end of file diff --git a/src/www/assets/confirm-dialog-YmxNnOr3.js b/src/www/assets/confirm-dialog-D1L-0EhT.js similarity index 93% rename from src/www/assets/confirm-dialog-YmxNnOr3.js rename to src/www/assets/confirm-dialog-D1L-0EhT.js index 99856b2..a96a88b 100644 --- a/src/www/assets/confirm-dialog-YmxNnOr3.js +++ b/src/www/assets/confirm-dialog-D1L-0EhT.js @@ -1,7 +1,7 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{Jp as n,Yp as r,em as i}from"./messages-Bp0bCjzp.js";import{c as a,i as o,t as s,u as c}from"./button-BgMnOYKD.js";import{a as l,r as u}from"./dist-CKFLmh1A.js";import{a as d,c as f,i as p,l as m,n as h,o as g,r as _,s as ee,t as v,u as y}from"./dist-CPQ-sRtL.js";var b=e(t(),1),x=i(),S=`AlertDialog`,[C,te]=l(S,[y]),w=y(),T=e=>{let{__scopeAlertDialog:t,...n}=e,r=w(t);return(0,x.jsx)(g,{...r,...n,modal:!0})};T.displayName=S;var E=`AlertDialogTrigger`,D=b.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=w(n);return(0,x.jsx)(f,{...i,...r,ref:t})});D.displayName=E;var O=`AlertDialogPortal`,k=e=>{let{__scopeAlertDialog:t,...n}=e,r=w(t);return(0,x.jsx)(d,{...r,...n})};k.displayName=O;var A=`AlertDialogOverlay`,j=b.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=w(n);return(0,x.jsx)(p,{...i,...r,ref:t})});j.displayName=A;var M=`AlertDialogContent`,[N,P]=C(M),F=a(`AlertDialogContent`),I=b.forwardRef((e,t)=>{let{__scopeAlertDialog:n,children:r,...i}=e,a=w(n),o=b.useRef(null),s=c(t,o),l=b.useRef(null);return(0,x.jsx)(m,{contentName:M,titleName:L,docsSlug:`alert-dialog`,children:(0,x.jsx)(N,{scope:n,cancelRef:l,children:(0,x.jsxs)(h,{role:`alertdialog`,...a,...i,ref:s,onOpenAutoFocus:u(i.onOpenAutoFocus,e=>{e.preventDefault(),l.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,x.jsx)(F,{children:r}),(0,x.jsx)(G,{contentRef:o})]})})})});I.displayName=M;var L=`AlertDialogTitle`,R=b.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=w(n);return(0,x.jsx)(ee,{...i,...r,ref:t})});R.displayName=L;var z=`AlertDialogDescription`,B=b.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=w(n);return(0,x.jsx)(_,{...i,...r,ref:t})});B.displayName=z;var V=`AlertDialogAction`,H=b.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=w(n);return(0,x.jsx)(v,{...i,...r,ref:t})});H.displayName=V;var U=`AlertDialogCancel`,W=b.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=P(U,n),a=w(n),o=c(t,i);return(0,x.jsx)(v,{...a,...r,ref:o})});W.displayName=U;var G=({contentRef:e})=>{let t=`\`${M}\` requires a description for the component to be accessible for screen reader users. +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{Xp as n,Yp as r,tm as i}from"./messages-BOatyqUm.js";import{c as a,i as o,t as s,u as c}from"./button-C_NDYaz8.js";import{a as l,r as u}from"./dist-DPPquN_M.js";import{a as d,c as f,i as p,l as m,n as h,o as g,r as _,s as ee,t as v,u as y}from"./dist-iiotRAEO.js";var b=e(t(),1),x=i(),S=`AlertDialog`,[C,te]=l(S,[y]),w=y(),T=e=>{let{__scopeAlertDialog:t,...n}=e,r=w(t);return(0,x.jsx)(g,{...r,...n,modal:!0})};T.displayName=S;var E=`AlertDialogTrigger`,D=b.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=w(n);return(0,x.jsx)(f,{...i,...r,ref:t})});D.displayName=E;var O=`AlertDialogPortal`,k=e=>{let{__scopeAlertDialog:t,...n}=e,r=w(t);return(0,x.jsx)(d,{...r,...n})};k.displayName=O;var A=`AlertDialogOverlay`,j=b.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=w(n);return(0,x.jsx)(p,{...i,...r,ref:t})});j.displayName=A;var M=`AlertDialogContent`,[N,P]=C(M),F=a(`AlertDialogContent`),I=b.forwardRef((e,t)=>{let{__scopeAlertDialog:n,children:r,...i}=e,a=w(n),o=b.useRef(null),s=c(t,o),l=b.useRef(null);return(0,x.jsx)(m,{contentName:M,titleName:L,docsSlug:`alert-dialog`,children:(0,x.jsx)(N,{scope:n,cancelRef:l,children:(0,x.jsxs)(h,{role:`alertdialog`,...a,...i,ref:s,onOpenAutoFocus:u(i.onOpenAutoFocus,e=>{e.preventDefault(),l.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,x.jsx)(F,{children:r}),(0,x.jsx)(G,{contentRef:o})]})})})});I.displayName=M;var L=`AlertDialogTitle`,R=b.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=w(n);return(0,x.jsx)(ee,{...i,...r,ref:t})});R.displayName=L;var z=`AlertDialogDescription`,B=b.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=w(n);return(0,x.jsx)(_,{...i,...r,ref:t})});B.displayName=z;var V=`AlertDialogAction`,H=b.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=w(n);return(0,x.jsx)(v,{...i,...r,ref:t})});H.displayName=V;var U=`AlertDialogCancel`,W=b.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=P(U,n),a=w(n),o=c(t,i);return(0,x.jsx)(v,{...a,...r,ref:o})});W.displayName=U;var G=({contentRef:e})=>{let t=`\`${M}\` requires a description for the component to be accessible for screen reader users. You can add a description to the \`${M}\` by passing a \`${z}\` component as a child, which also benefits sighted users by adding visible context to the dialog. Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${M}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. -For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return b.useEffect(()=>{document.getElementById(e.current?.getAttribute(`aria-describedby`))||console.warn(t)},[t,e]),null},K=T,q=k,J=j,Y=I,X=W,Z=R,Q=B;function ne({...e}){return(0,x.jsx)(K,{"data-slot":`alert-dialog`,...e})}function re({...e}){return(0,x.jsx)(q,{"data-slot":`alert-dialog-portal`,...e})}function ie({className:e,...t}){return(0,x.jsx)(J,{className:o(`data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in`,e),"data-slot":`alert-dialog-overlay`,...t})}function ae({className:e,size:t=`default`,...n}){return(0,x.jsxs)(re,{children:[(0,x.jsx)(ie,{}),(0,x.jsx)(Y,{className:o(`group/alert-dialog-content data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[size=sm]:max-w-xs data-[state=closed]:animate-out data-[state=open]:animate-in data-[size=default]:sm:max-w-lg`,e),"data-size":t,"data-slot":`alert-dialog-content`,...n})]})}function oe({className:e,...t}){return(0,x.jsx)(`div`,{className:o(`grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]`,e),"data-slot":`alert-dialog-header`,...t})}function $({className:e,...t}){return(0,x.jsx)(`div`,{className:o(`flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end`,e),"data-slot":`alert-dialog-footer`,...t})}function se({className:e,...t}){return(0,x.jsx)(Z,{className:o(`font-semibold text-lg sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,e),"data-slot":`alert-dialog-title`,...t})}function ce({className:e,...t}){return(0,x.jsx)(Q,{className:o(`text-muted-foreground text-sm`,e),"data-slot":`alert-dialog-description`,...t})}function le({className:e,variant:t=`outline`,size:n=`default`,...r}){return(0,x.jsx)(s,{asChild:!0,size:n,variant:t,children:(0,x.jsx)(X,{className:o(e),"data-slot":`alert-dialog-cancel`,...r})})}function ue(e){let{title:t,desc:i,children:a,className:c,confirmText:l,cancelBtnText:u,destructive:d,isLoading:f,disabled:p=!1,form:m,handleConfirm:h,...g}=e;return(0,x.jsx)(ne,{...g,children:(0,x.jsxs)(ae,{className:o(c&&c),children:[(0,x.jsxs)(oe,{className:`text-start`,children:[(0,x.jsx)(se,{children:t}),(0,x.jsx)(ce,{asChild:!0,children:(0,x.jsx)(`div`,{children:i})})]}),a,(0,x.jsxs)($,{children:[(0,x.jsx)(le,{disabled:f,children:u??r()}),(0,x.jsx)(s,{disabled:p||f,form:m,onClick:h,type:m?`submit`:`button`,variant:d?`destructive`:`default`,children:l??n()})]})]})})}export{ue as t}; \ No newline at end of file +For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return b.useEffect(()=>{document.getElementById(e.current?.getAttribute(`aria-describedby`))||console.warn(t)},[t,e]),null},K=T,q=k,J=j,Y=I,X=W,Z=R,Q=B;function ne({...e}){return(0,x.jsx)(K,{"data-slot":`alert-dialog`,...e})}function re({...e}){return(0,x.jsx)(q,{"data-slot":`alert-dialog-portal`,...e})}function ie({className:e,...t}){return(0,x.jsx)(J,{className:o(`data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in`,e),"data-slot":`alert-dialog-overlay`,...t})}function ae({className:e,size:t=`default`,...n}){return(0,x.jsxs)(re,{children:[(0,x.jsx)(ie,{}),(0,x.jsx)(Y,{className:o(`group/alert-dialog-content data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[size=sm]:max-w-xs data-[state=closed]:animate-out data-[state=open]:animate-in data-[size=default]:sm:max-w-lg`,e),"data-size":t,"data-slot":`alert-dialog-content`,...n})]})}function oe({className:e,...t}){return(0,x.jsx)(`div`,{className:o(`grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]`,e),"data-slot":`alert-dialog-header`,...t})}function $({className:e,...t}){return(0,x.jsx)(`div`,{className:o(`flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end`,e),"data-slot":`alert-dialog-footer`,...t})}function se({className:e,...t}){return(0,x.jsx)(Z,{className:o(`font-semibold text-lg sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,e),"data-slot":`alert-dialog-title`,...t})}function ce({className:e,...t}){return(0,x.jsx)(Q,{className:o(`text-muted-foreground text-sm`,e),"data-slot":`alert-dialog-description`,...t})}function le({className:e,variant:t=`outline`,size:n=`default`,...r}){return(0,x.jsx)(s,{asChild:!0,size:n,variant:t,children:(0,x.jsx)(X,{className:o(e),"data-slot":`alert-dialog-cancel`,...r})})}function ue(e){let{title:t,desc:i,children:a,className:c,confirmText:l,cancelBtnText:u,destructive:d,isLoading:f,disabled:p=!1,form:m,handleConfirm:h,...g}=e;return(0,x.jsx)(ne,{...g,children:(0,x.jsxs)(ae,{className:o(c&&c),children:[(0,x.jsxs)(oe,{className:`text-start`,children:[(0,x.jsx)(se,{children:t}),(0,x.jsx)(ce,{asChild:!0,children:(0,x.jsx)(`div`,{children:i})})]}),a,(0,x.jsxs)($,{children:[(0,x.jsx)(le,{disabled:f,children:u??n()}),(0,x.jsx)(s,{disabled:p||f,form:m,onClick:h,type:m?`submit`:`button`,variant:d?`destructive`:`default`,children:l??r()})]})]})})}export{ue as t}; \ No newline at end of file diff --git a/src/www/assets/crypto-icon-DsKMU9xz.js b/src/www/assets/crypto-icon-DnliVYVs.js similarity index 97% rename from src/www/assets/crypto-icon-DsKMU9xz.js rename to src/www/assets/crypto-icon-DnliVYVs.js index 2c66399..1e5c3a7 100644 --- a/src/www/assets/crypto-icon-DsKMU9xz.js +++ b/src/www/assets/crypto-icon-DnliVYVs.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";var r=e(t(),1);function i(e){let t=new Map,n=new Map;return{get(e){return t.get(e)},load(r){let i=t.get(r);if(i)return Promise.resolve(i);let a=n.get(r);if(a)return a;let o=e(r).then(e=>(t.set(r,e),e)).finally(()=>{n.delete(r)});return n.set(r,o),o}}}async function a(e,t,n){for(let n of e){let e=`${n.base}/${t}`;try{let t=await fetch(e,{signal:AbortSignal.timeout(3e3)});if(t.ok)return await t.json()}catch{}}return n}function o({cdnList:e,fallback:t,path:n}){return i(r=>a(e,n(r),t))}var s=`GMWalletApp/crypto-icons`,c=`latest`,l=[{base:`https://cdn.jsdmirror.com/gh/${s}@${c}`,name:`jsdmirror`},{base:`https://cdn.jsdelivr.net/gh/${s}@${c}`,name:`jsdelivr`},{base:`https://fastly.jsdelivr.net/gh/${s}@${c}`,name:`fastly.jsdelivr`},{base:`https://gcore.jsdelivr.net/gh/${s}@${c}`,name:`gcore.jsdelivr`}],u={exchange:`exchanges`,network:`networks`,token:`tokens`,wallet:`wallets`},d=o({cdnList:l,fallback:{},path:e=>`aliases/${u[e]}.json`}),f=o({cdnList:l,fallback:[],path:e=>`maps/${u[e]}.json`});function p(e){return String(e??``).trim().toLowerCase()}function m(e){return p(e).replace(/\s+/g,`-`)}function h(e){let t=e?.split(`:`).pop();return t?t.trim():``}function g(e){return[e.id,e.symbol,e.name,e.shortName,h(e.filePath)].map(e=>m(e??``)).filter(Boolean)}function _(e,t){let n=e.find(e=>g(e).includes(t));return n&&(h(n.filePath)||n.id||n.symbol)||null}async function v(e,t){let n=m(t);if(!n)return``;let[r,i]=await Promise.all([f.load(e),d.load(e)]),a=m(i[n]??``);return _(r,n)||(a?_(r,a):null)||i[n]||n}function y(e,t,n={}){let{variant:r=`branded`}=n,i=m(t);return i?`${l[0].base}/assets/${u[e]}/${r}/${i}.svg`:null}async function b(e,t,n={}){let{variant:r=`branded`}=n,i=await v(e,t),a=`assets/${u[e]}/${r}/${i}.svg`;for(let e of l){let t=`${e.base}/${a}`;try{if((await fetch(t,{method:`HEAD`,signal:AbortSignal.timeout(2500)})).ok)return{url:t}}catch{}}return{url:`${l[0].base}/${a}`}}function x(e,t){return t?.trim()||e||`--`}var S=n();function C({type:e,name:t,variant:n=`branded`,size:i=16,width:a,height:o,className:s,alt:c,style:l,onError:u,...d}){let f=y(e,t,{variant:n}),[p,m]=(0,r.useState)(null),[h,g]=(0,r.useState)(f),_=h??f,v=a??i,x=o??i;return(0,r.useEffect)(()=>{let r=!1;return m(null),g(y(e,t,{variant:n})),b(e,t,{variant:n}).then(e=>{r||g(e.url)}),()=>{r=!0}},[t,e,n]),!(_&&t)||p===_?null:(0,S.jsx)(`img`,{alt:c??``,className:s,height:x,onError:e=>{m(_),u?.(e)},src:_,style:{display:`inline-block`,...l},width:v,...d})}export{p as a,l as i,x as n,v as o,u as r,o as s,C as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";var r=e(t(),1);function i(e){let t=new Map,n=new Map;return{get(e){return t.get(e)},load(r){let i=t.get(r);if(i)return Promise.resolve(i);let a=n.get(r);if(a)return a;let o=e(r).then(e=>(t.set(r,e),e)).finally(()=>{n.delete(r)});return n.set(r,o),o}}}async function a(e,t,n){for(let n of e){let e=`${n.base}/${t}`;try{let t=await fetch(e,{signal:AbortSignal.timeout(3e3)});if(t.ok)return await t.json()}catch{}}return n}function o({cdnList:e,fallback:t,path:n}){return i(r=>a(e,n(r),t))}var s=`GMWalletApp/crypto-icons`,c=`latest`,l=[{base:`https://cdn.jsdmirror.com/gh/${s}@${c}`,name:`jsdmirror`},{base:`https://cdn.jsdelivr.net/gh/${s}@${c}`,name:`jsdelivr`},{base:`https://fastly.jsdelivr.net/gh/${s}@${c}`,name:`fastly.jsdelivr`},{base:`https://gcore.jsdelivr.net/gh/${s}@${c}`,name:`gcore.jsdelivr`}],u={exchange:`exchanges`,network:`networks`,token:`tokens`,wallet:`wallets`},d=o({cdnList:l,fallback:{},path:e=>`aliases/${u[e]}.json`}),f=o({cdnList:l,fallback:[],path:e=>`maps/${u[e]}.json`});function p(e){return String(e??``).trim().toLowerCase()}function m(e){return p(e).replace(/\s+/g,`-`)}function h(e){let t=e?.split(`:`).pop();return t?t.trim():``}function g(e){return[e.id,e.symbol,e.name,e.shortName,h(e.filePath)].map(e=>m(e??``)).filter(Boolean)}function _(e,t){let n=e.find(e=>g(e).includes(t));return n&&(h(n.filePath)||n.id||n.symbol)||null}async function v(e,t){let n=m(t);if(!n)return``;let[r,i]=await Promise.all([f.load(e),d.load(e)]),a=m(i[n]??``);return _(r,n)||(a?_(r,a):null)||i[n]||n}function y(e,t,n={}){let{variant:r=`branded`}=n,i=m(t);return i?`${l[0].base}/assets/${u[e]}/${r}/${i}.svg`:null}async function b(e,t,n={}){let{variant:r=`branded`}=n,i=await v(e,t),a=`assets/${u[e]}/${r}/${i}.svg`;for(let e of l){let t=`${e.base}/${a}`;try{if((await fetch(t,{method:`HEAD`,signal:AbortSignal.timeout(2500)})).ok)return{url:t}}catch{}}return{url:`${l[0].base}/${a}`}}function x(e,t){return t?.trim()||e||`--`}var S=n();function C({type:e,name:t,variant:n=`branded`,size:i=16,width:a,height:o,className:s,alt:c,style:l,onError:u,...d}){let f=y(e,t,{variant:n}),[p,m]=(0,r.useState)(null),[h,g]=(0,r.useState)(f),_=h??f,v=a??i,x=o??i;return(0,r.useEffect)(()=>{let r=!1;return m(null),g(y(e,t,{variant:n})),b(e,t,{variant:n}).then(e=>{r||g(e.url)}),()=>{r=!0}},[t,e,n]),!(_&&t)||p===_?null:(0,S.jsx)(`img`,{alt:c??``,className:s,height:x,onError:e=>{m(_),u?.(e)},src:_,style:{display:`inline-block`,...l},width:v,...d})}export{p as a,l as i,x as n,v as o,u as r,o as s,C as t}; \ No newline at end of file diff --git a/src/www/assets/dashboard-DLh95Ec3.js b/src/www/assets/dashboard-C_GaAVh0.js similarity index 98% rename from src/www/assets/dashboard-DLh95Ec3.js rename to src/www/assets/dashboard-C_GaAVh0.js index 95d9f4e..f089b10 100644 --- a/src/www/assets/dashboard-DLh95Ec3.js +++ b/src/www/assets/dashboard-C_GaAVh0.js @@ -1,4 +1,4 @@ -import{n as e,r as t,t as n}from"./chunk-DECur_0Z.js";import{a as r,c as i}from"./auth-store-Csn6HPxJ.js";import{t as a}from"./react-CO2uhaBc.js";import{$c as o,$f as s,$l as c,Al as l,Bl as u,Cl as d,Dl as f,El as p,Fl as m,Gl as h,Hl as g,Il as _,Jl as v,Kl as y,Ll as b,Ml as x,Nl as S,Ol as C,Pl as w,Qf as T,Ql as E,Rl as D,Sl as O,Tl as k,Ul as ee,Vl as te,Wl as A,Xf as j,Xl as ne,Yl as re,Zf as ie,Zl as ae,Zp as oe,_l as se,_u as ce,al as le,au as ue,bl as de,bu as fe,cl as pe,cu as me,dl as he,du as ge,el as _e,em as ve,ep as ye,eu as be,fl as xe,fu as Se,gl as Ce,gu as we,hl as Te,hu as Ee,il as De,iu as Oe,jl as ke,kl as Ae,ll as je,lu as Me,ml as Ne,mu as Pe,nl as Fe,np as Ie,nu as Le,ol as Re,ou as ze,pl as Be,pu as Ve,ql as He,rl as Ue,ru as We,sl as Ge,su as Ke,tl as qe,tp as Je,tu as Ye,ul as Xe,uu as Ze,vl as Qe,vu as $e,wl as et,xl as tt,yl as nt,yu as rt,zl as it}from"./messages-Bp0bCjzp.js";import{t as at}from"./with-selector-DBfssCrY.js";import{t as ot}from"./useNavigate-7u4DX0Ho.js";import{r as st}from"./dist-BFnxq45V.js";import{a as ct,c as lt,o as ut,s as dt}from"./search-provider-Bl2HDfcG.js";import{i as M,n as ft,t as pt}from"./button-BgMnOYKD.js";import{n as mt,r as ht,t as gt}from"./popover-YeKifm3K.js";import{n as _t,r as vt,t as yt}from"./tabs-x8EHz9HA.js";import{i as bt,n as xt,r as St,t as Ct}from"./tooltip-Gx9CUpPD.js";import{t as N}from"./clsx-D9aGYY3V.js";import{t as wt}from"./cookies-BzZOQYPw.js";import{t as Tt}from"./createLucideIcon-Br0Bd5k2.js";import{i as Et,p as Dt}from"./data-table-C3Nm2K6Z.js";import{t as Ot}from"./check-CHp0nSkR.js";import{t as kt}from"./chevron-down-BB5h1CsX.js";import{n as At,t as jt}from"./skeleton-BQsmx80h.js";import{i as Mt,o as Nt,r as Pt}from"./epusdt-DkhuuUpL.js";import{n as Ft,t as It}from"./main-DnJ8otd-.js";import{c as Lt,i as Rt,o as zt,r as Bt,s as Vt,t as Ht}from"./command-CIv3ggHf.js";import{t as Ut}from"./shield-check-MAPDL1u8.js";import{t as Wt}from"./triangle-alert-DB5v_9sS.js";import{t as Gt}from"./page-header-CDwG3nxs.js";import{t as Kt}from"./badge-BP05f1dq.js";import{a as qt,i as Jt,n as Yt,o as Xt,r as Zt,t as Qt}from"./table-503PQfKg.js";import{a as $t,i as en,n as tn,r as nn,t as rn}from"./card-C7G2YcSg.js";import{t as an}from"./crypto-icon-DsKMU9xz.js";var on=Tt(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),sn=Tt(`calendar`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}]]),cn=Tt(`dollar-sign`,[[`line`,{x1:`12`,x2:`12`,y1:`2`,y2:`22`,key:`7eqyqh`}],[`path`,{d:`M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6`,key:`1b0p4s`}]]),ln=Tt(`layers`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]]),un=Tt(`list-filter`,[[`path`,{d:`M2 5h20`,key:`1fs1ex`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`path`,{d:`M9 19h6`,key:`456am0`}]]),dn=Tt(`network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]),fn=Tt(`piggy-bank`,[[`path`,{d:`M11 17h3v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a3.16 3.16 0 0 0 2-2h1a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-1a5 5 0 0 0-2-4V3a4 4 0 0 0-3.2 1.6l-.3.4H11a6 6 0 0 0-6 6v1a5 5 0 0 0 2 4v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1z`,key:`1piglc`}],[`path`,{d:`M16 10h.01`,key:`1m94wz`}],[`path`,{d:`M2 8v1a2 2 0 0 0 2 2h1`,key:`1env43`}]]),pn=Tt(`radio-tower`,[[`path`,{d:`M4.9 16.1C1 12.2 1 5.8 4.9 1.9`,key:`s0qx1y`}],[`path`,{d:`M7.8 4.7a6.14 6.14 0 0 0-.8 7.5`,key:`1idnkw`}],[`circle`,{cx:`12`,cy:`9`,r:`2`,key:`1092wv`}],[`path`,{d:`M16.2 4.8c2 2 2.26 5.11.8 7.47`,key:`ojru2q`}],[`path`,{d:`M19.1 1.9a9.96 9.96 0 0 1 0 14.1`,key:`rhi7fg`}],[`path`,{d:`M9.5 18h5`,key:`mfy3pd`}],[`path`,{d:`m8 22 4-11 4 11`,key:`25yftu`}]]),mn=Tt(`receipt-text`,[[`path`,{d:`M13 16H8`,key:`wsln4y`}],[`path`,{d:`M14 8H8`,key:`1l3xfs`}],[`path`,{d:`M16 12H8`,key:`1fr5h0`}],[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}]]),hn=Tt(`server-cog`,[[`path`,{d:`m10.852 14.772-.383.923`,key:`11vil6`}],[`path`,{d:`M13.148 14.772a3 3 0 1 0-2.296-5.544l-.383-.923`,key:`1v3clb`}],[`path`,{d:`m13.148 9.228.383-.923`,key:`t2zzyc`}],[`path`,{d:`m13.53 15.696-.382-.924a3 3 0 1 1-2.296-5.544`,key:`1bxfiv`}],[`path`,{d:`m14.772 10.852.923-.383`,key:`k9m8cz`}],[`path`,{d:`m14.772 13.148.923.383`,key:`1xvhww`}],[`path`,{d:`M4.5 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-.5`,key:`tn8das`}],[`path`,{d:`M4.5 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-.5`,key:`1g2pve`}],[`path`,{d:`M6 18h.01`,key:`uhywen`}],[`path`,{d:`M6 6h.01`,key:`1utrut`}],[`path`,{d:`m9.228 10.852-.923-.383`,key:`1wtb30`}],[`path`,{d:`m9.228 13.148-.923.383`,key:`1a830x`}]]),gn=Tt(`trending-up`,[[`path`,{d:`M16 7h6v6`,key:`box55l`}],[`path`,{d:`m22 7-8.5 8.5-5-5L2 17`,key:`1t1m79`}]]),_n=Tt(`wifi`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M2 8.82a15 15 0 0 1 20 0`,key:`dnpr2z`}],[`path`,{d:`M5 12.859a10 10 0 0 1 14 0`,key:`1x1e6c`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}]]),vn=365.2425,yn=6048e5,bn=864e5,xn=3600*24;xn*7,xn*vn/12*3;var Sn=Symbol.for(`constructDateFrom`);function Cn(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&Sn in e?e[Sn](t):e instanceof Date?new e.constructor(t):new Date(t)}function P(e,t){return Cn(t||e,e)}function wn(e,t,n){let r=P(e,n?.in);return isNaN(t)?Cn(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Tn(e,t,n){let r=P(e,n?.in);if(isNaN(t))return Cn(n?.in||e,NaN);if(!t)return r;let i=r.getDate(),a=Cn(n?.in||e,r.getTime());return a.setMonth(r.getMonth()+t+1,0),i>=a.getDate()?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}var En={};function Dn(){return En}function On(e,t){let n=Dn(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=P(e,t?.in),a=i.getDay(),o=(a=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function jn(e){let t=P(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-+n}function Mn(e,...t){let n=Cn.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}function Nn(e,t){let n=P(e,t?.in);return n.setHours(0,0,0,0),n}function Pn(e,t,n){let[r,i]=Mn(n?.in,e,t),a=Nn(r),o=Nn(i),s=+a-jn(a),c=+o-jn(o);return Math.round((s-c)/bn)}function Fn(e,t){let n=An(e,t),r=Cn(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),kn(r)}function In(e,t,n){return wn(e,t*7,n)}function Ln(e,t,n){return Tn(e,t*12,n)}function Rn(e,t){let n,r=t?.in;return e.forEach(e=>{!r&&typeof e==`object`&&(r=Cn.bind(null,e));let t=P(e,r);(!n||n{!r&&typeof e==`object`&&(r=Cn.bind(null,e));let t=P(e,r);(!n||n>t||isNaN(+t))&&(n=t)}),Cn(r,n||NaN)}function Bn(e,t,n){let[r,i]=Mn(n?.in,e,t);return+Nn(r)==+Nn(i)}function Vn(e){return e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`}function Hn(e){return!(!Vn(e)&&typeof e!=`number`||isNaN(+P(e)))}function Un(e,t,n){let[r,i]=Mn(n?.in,e,t),a=r.getFullYear()-i.getFullYear(),o=r.getMonth()-i.getMonth();return a*12+o}function Wn(e,t){let n=P(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Gn(e,t){let[n,r]=Mn(e,t.start,t.end);return{start:n,end:r}}function Kn(e,t){let{start:n,end:r}=Gn(t?.in,e),i=+n>+r,a=i?+n:+r,o=i?r:n;o.setHours(0,0,0,0),o.setDate(1);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,i=!i);let c=[];for(;+o<=a;)c.push(Cn(n,o)),o.setMonth(o.getMonth()+s);return i?c.reverse():c}function qn(e,t){let n=P(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Jn(e,t){let n=P(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Yn(e,t){let n=P(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Xn(e,t){let{start:n,end:r}=Gn(t?.in,e),i=+n>+r,a=i?+n:+r,o=i?r:n;o.setHours(0,0,0,0),o.setMonth(0,1);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,i=!i);let c=[];for(;+o<=a;)c.push(Cn(n,o)),o.setFullYear(o.getFullYear()+s);return i?c.reverse():c}function Zn(e,t){let n=Dn(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=P(e,t?.in),a=i.getDay(),o=(a{let r,i=$n[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r};function tr(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var nr={date:tr({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:tr({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:tr({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},rr={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},ir=(e,t,n,r)=>rr[e];function ar(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}var or={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:ar({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:ar({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:ar({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:ar({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:ar({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function sr(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?lr(s,e=>e.test(o)):cr(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function cr(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function lr(e,t){for(let n=0;n{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var dr={code:`en-US`,formatDistance:er,formatLong:nr,formatRelative:ir,localize:or,match:{ordinalNumber:ur({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:sr({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:sr({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:sr({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:sr({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:sr({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function fr(e,t){let n=P(e,t?.in);return Pn(n,Yn(n))+1}function pr(e,t){let n=P(e,t?.in),r=kn(n)-+Fn(n);return Math.round(r/yn)+1}function mr(e,t){let n=P(e,t?.in),r=n.getFullYear(),i=Dn(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=Cn(t?.in||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);let s=On(o,t),c=Cn(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);let l=On(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function hr(e,t){let n=Dn(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=mr(e,t),a=Cn(t?.in||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),On(a,t)}function gr(e,t){let n=P(e,t?.in),r=On(n,t)-+hr(n,t);return Math.round(r/yn)+1}function F(e,t){return(e<0?`-`:``)+Math.abs(e).toString().padStart(t,`0`)}var _r={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return F(t===`yy`?r%100:r,t.length)},M(e,t){let n=e.getMonth();return t===`M`?String(n+1):F(n+1,2)},d(e,t){return F(e.getDate(),t.length)},a(e,t){let n=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.toUpperCase();case`aaa`:return n;case`aaaaa`:return n[0];default:return n===`am`?`a.m.`:`p.m.`}},h(e,t){return F(e.getHours()%12||12,t.length)},H(e,t){return F(e.getHours(),t.length)},m(e,t){return F(e.getMinutes(),t.length)},s(e,t){return F(e.getSeconds(),t.length)},S(e,t){let n=t.length,r=e.getMilliseconds();return F(Math.trunc(r*10**(n-3)),t.length)}},vr={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},yr={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){let t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:`year`})}return _r.y(e,t)},Y:function(e,t,n,r){let i=mr(e,r),a=i>0?i:1-i;return t===`YY`?F(a%100,2):t===`Yo`?n.ordinalNumber(a,{unit:`year`}):F(a,t.length)},R:function(e,t){return F(An(e),t.length)},u:function(e,t){return F(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return F(r,2);case`Qo`:return n.ordinalNumber(r,{unit:`quarter`});case`QQQ`:return n.quarter(r,{width:`abbreviated`,context:`formatting`});case`QQQQQ`:return n.quarter(r,{width:`narrow`,context:`formatting`});default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`q`:return String(r);case`qq`:return F(r,2);case`qo`:return n.ordinalNumber(r,{unit:`quarter`});case`qqq`:return n.quarter(r,{width:`abbreviated`,context:`standalone`});case`qqqqq`:return n.quarter(r,{width:`narrow`,context:`standalone`});default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){let r=e.getMonth();switch(t){case`M`:case`MM`:return _r.M(e,t);case`Mo`:return n.ordinalNumber(r+1,{unit:`month`});case`MMM`:return n.month(r,{width:`abbreviated`,context:`formatting`});case`MMMMM`:return n.month(r,{width:`narrow`,context:`formatting`});default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){let r=e.getMonth();switch(t){case`L`:return String(r+1);case`LL`:return F(r+1,2);case`Lo`:return n.ordinalNumber(r+1,{unit:`month`});case`LLL`:return n.month(r,{width:`abbreviated`,context:`standalone`});case`LLLLL`:return n.month(r,{width:`narrow`,context:`standalone`});default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){let i=gr(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):F(i,t.length)},I:function(e,t,n){let r=pr(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):F(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):_r.d(e,t)},D:function(e,t,n){let r=fr(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):F(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case`E`:case`EE`:case`EEE`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`EEEEE`:return n.day(r,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(a);case`ee`:return F(a,2);case`eo`:return n.ordinalNumber(a,{unit:`day`});case`eee`:return n.day(i,{width:`abbreviated`,context:`formatting`});case`eeeee`:return n.day(i,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(i,{width:`short`,context:`formatting`});default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(a);case`cc`:return F(a,t.length);case`co`:return n.ordinalNumber(a,{unit:`day`});case`ccc`:return n.day(i,{width:`abbreviated`,context:`standalone`});case`ccccc`:return n.day(i,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(i,{width:`short`,context:`standalone`});default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){let r=e.getDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return F(i,t.length);case`io`:return n.ordinalNumber(i,{unit:`day`});case`iii`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`iiiii`:return n.day(r,{width:`narrow`,context:`formatting`});case`iiiiii`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){let r=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(r,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(r,{width:`wide`,context:`formatting`})}},b:function(e,t,n){let r=e.getHours(),i;switch(i=r===12?vr.noon:r===0?vr.midnight:r/12>=1?`pm`:`am`,t){case`b`:case`bb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`bbb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){let r=e.getHours(),i;switch(i=r>=17?vr.evening:r>=12?vr.afternoon:r>=4?vr.morning:vr.night,t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:`hour`})}return _r.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):_r.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):F(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):F(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):_r.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):_r.s(e,t)},S:function(e,t){return _r.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return xr(r);case`XXXX`:case`XX`:return Sr(r);default:return Sr(r,`:`)}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`x`:return xr(r);case`xxxx`:case`xx`:return Sr(r);default:return Sr(r,`:`)}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+br(r,`:`);default:return`GMT`+Sr(r,`:`)}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+br(r,`:`);default:return`GMT`+Sr(r,`:`)}},t:function(e,t,n){return F(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return F(+e,t.length)}};function br(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+F(a,2)}function xr(e,t){return e%60==0?(e>0?`-`:`+`)+F(Math.abs(e)/60,2):Sr(e,t)}function Sr(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=F(Math.trunc(r/60),2),a=F(r%60,2);return n+i+t+a}var Cr=(e,t)=>{switch(e){case`P`:return t.date({width:`short`});case`PP`:return t.date({width:`medium`});case`PPP`:return t.date({width:`long`});default:return t.date({width:`full`})}},wr=(e,t)=>{switch(e){case`p`:return t.time({width:`short`});case`pp`:return t.time({width:`medium`});case`ppp`:return t.time({width:`long`});default:return t.time({width:`full`})}},Tr={p:wr,P:(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Cr(e,t);let a;switch(r){case`P`:a=t.dateTime({width:`short`});break;case`PP`:a=t.dateTime({width:`medium`});break;case`PPP`:a=t.dateTime({width:`long`});break;default:a=t.dateTime({width:`full`});break}return a.replace(`{{date}}`,Cr(r,t)).replace(`{{time}}`,wr(i,t))}},Er=/^D+$/,Dr=/^Y+$/,Or=[`D`,`DD`,`YY`,`YYYY`];function kr(e){return Er.test(e)}function Ar(e){return Dr.test(e)}function jr(e,t,n){let r=Mr(e,t,n);if(console.warn(r),Or.includes(e))throw RangeError(r)}function Mr(e,t,n){let r=e[0]===`Y`?`years`:`days of the month`;return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var Nr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Pr=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Fr=/^'([^]*?)'?$/,Ir=/''/g,Lr=/[a-zA-Z]/;function Rr(e,t,n){let r=Dn(),i=n?.locale??r.locale??dr,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=P(e,n?.in);if(!Hn(s))throw RangeError(`Invalid time value`);let c=t.match(Pr).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=Tr[t];return n(e,i.formatLong)}return e}).join(``).match(Nr).map(e=>{if(e===`''`)return{isToken:!1,value:`'`};let t=e[0];if(t===`'`)return{isToken:!1,value:zr(e)};if(yr[t])return{isToken:!0,value:e};if(t.match(Lr))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));let l={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return c.map(r=>{if(!r.isToken)return r.value;let a=r.value;(!n?.useAdditionalWeekYearTokens&&Ar(a)||!n?.useAdditionalDayOfYearTokens&&kr(a))&&jr(a,t,String(e));let o=yr[a[0]];return o(s,a,i.localize,l)}).join(``)}function zr(e){let t=e.match(Fr);return t?t[1].replace(Ir,`'`):e}function Br(e,t){let n=P(e,t?.in),r=n.getFullYear(),i=n.getMonth(),a=Cn(n,0);return a.setFullYear(r,i+1,0),a.setHours(0,0,0,0),a.getDate()}function Vr(e,t){return P(e,t?.in).getMonth()}function Hr(e,t){return P(e,t?.in).getFullYear()}function Ur(e,t){return+P(e)>+P(t)}function Wr(e,t){return+P(e)<+P(t)}function Gr(e,t,n){let[r,i]=Mn(n?.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function Kr(e,t,n){let[r,i]=Mn(n?.in,e,t);return r.getFullYear()===i.getFullYear()}function qr(e,t,n){return wn(e,-t,n)}function Jr(e,t,n){let r=P(e,n?.in),i=r.getFullYear(),a=r.getDate(),o=Cn(n?.in||e,0);o.setFullYear(i,t,15),o.setHours(0,0,0,0);let s=Br(o);return r.setMonth(t,Math.min(a,s)),r}function Yr(e,t,n){let r=P(e,n?.in);return isNaN(+r)?Cn(n?.in||e,NaN):(r.setFullYear(t),r)}function Xr(e,t,n){return Tn(e,-t,n)}var Zr={lessThanXSeconds:{one:`少於 1 秒`,other:`少於 {{count}} 秒`},xSeconds:{one:`1 秒`,other:`{{count}} 秒`},halfAMinute:`半分鐘`,lessThanXMinutes:{one:`少於 1 分鐘`,other:`少於 {{count}} 分鐘`},xMinutes:{one:`1 分鐘`,other:`{{count}} 分鐘`},xHours:{one:`1 小時`,other:`{{count}} 小時`},aboutXHours:{one:`大約 1 小時`,other:`大約 {{count}} 小時`},xDays:{one:`1 天`,other:`{{count}} 天`},aboutXWeeks:{one:`大約 1 個星期`,other:`大約 {{count}} 個星期`},xWeeks:{one:`1 個星期`,other:`{{count}} 個星期`},aboutXMonths:{one:`大約 1 個月`,other:`大約 {{count}} 個月`},xMonths:{one:`1 個月`,other:`{{count}} 個月`},aboutXYears:{one:`大約 1 年`,other:`大約 {{count}} 年`},xYears:{one:`1 年`,other:`{{count}} 年`},overXYears:{one:`超過 1 年`,other:`超過 {{count}} 年`},almostXYears:{one:`將近 1 年`,other:`將近 {{count}} 年`}},Qr=(e,t,n)=>{let r,i=Zr[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+`內`:r+`前`:r},$r={date:tr({formats:{full:`y'年'M'月'd'日' EEEE`,long:`y'年'M'月'd'日'`,medium:`yyyy-MM-dd`,short:`yy-MM-dd`},defaultWidth:`full`}),time:tr({formats:{full:`zzzz a h:mm:ss`,long:`z a h:mm:ss`,medium:`a h:mm:ss`,short:`a h:mm`},defaultWidth:`full`}),dateTime:tr({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},ei={lastWeek:`'上個'eeee p`,yesterday:`'昨天' p`,today:`'今天' p`,tomorrow:`'明天' p`,nextWeek:`'下個'eeee p`,other:`P`},ti={code:`zh-TW`,formatDistance:Qr,formatLong:$r,formatRelative:(e,t,n,r)=>ei[e],localize:{ordinalNumber:(e,t)=>{let n=Number(e);switch(t?.unit){case`date`:return n+`日`;case`hour`:return n+`時`;case`minute`:return n+`分`;case`second`:return n+`秒`;default:return`第 `+n}},era:ar({values:{narrow:[`前`,`公元`],abbreviated:[`前`,`公元`],wide:[`公元前`,`公元`]},defaultWidth:`wide`}),quarter:ar({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`第一刻`,`第二刻`,`第三刻`,`第四刻`],wide:[`第一刻鐘`,`第二刻鐘`,`第三刻鐘`,`第四刻鐘`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:ar({values:{narrow:[`一`,`二`,`三`,`四`,`五`,`六`,`七`,`八`,`九`,`十`,`十一`,`十二`],abbreviated:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],wide:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`]},defaultWidth:`wide`}),day:ar({values:{narrow:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],short:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],abbreviated:[`週日`,`週一`,`週二`,`週三`,`週四`,`週五`,`週六`],wide:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`]},defaultWidth:`wide`}),dayPeriod:ar({values:{narrow:{am:`上`,pm:`下`,midnight:`凌晨`,noon:`午`,morning:`早`,afternoon:`下午`,evening:`晚`,night:`夜`},abbreviated:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜間`},wide:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜間`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`上`,pm:`下`,midnight:`凌晨`,noon:`午`,morning:`早`,afternoon:`下午`,evening:`晚`,night:`夜`},abbreviated:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜間`},wide:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜間`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:ur({matchPattern:/^(第\s*)?\d+(日|時|分|秒)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:sr({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:`any`}),quarter:sr({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻鐘/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:sr({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},defaultParseWidth:`any`}),day:sr({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:`any`}),dayPeriod:sr({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};function ni(e,t,n=`long`){return new Intl.DateTimeFormat(`en-US`,{hour:`numeric`,timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(` `)}var ri={},ii={};function ai(e,t){try{let n=(ri[e]||=new Intl.DateTimeFormat(`en-US`,{timeZone:e,timeZoneName:`longOffset`}).format)(t).split(`GMT`)[1];return n in ii?ii[n]:si(n,n.split(`:`))}catch{if(e in ii)return ii[e];let t=e?.match(oi);return t?si(e,t.slice(1)):NaN}}var oi=/([+-]\d\d):?(\d\d)?/;function si(e,t){let n=+(t[0]||0),r=+(t[1]||0),i=(t[2]||0)/60;return ii[e]=n*60+r>0?n*60+r+i:n*60-r-i}var ci=class e extends Date{constructor(...e){super(),e.length>1&&typeof e[e.length-1]==`string`&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(ai(this.timeZone,this))?this.setTime(NaN):e.length?typeof e[0]==`number`&&(e.length===1||e.length===2&&typeof e[1]!=`number`)?this.setTime(e[0]):typeof e[0]==`string`?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),fi(this,NaN),ui(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}withTimeZone(t){return new e(+this,t)}getTimezoneOffset(){let e=-ai(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),ui(this),+this}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}},li=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!li.test(e))return;let t=e.replace(li,`$1UTC`);ci.prototype[t]&&(e.startsWith(`get`)?ci.prototype[e]=function(){return this.internal[t]()}:(ci.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),di(this),+this},ci.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),ui(this),+this}))});function ui(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-ai(e.timeZone,e)*60))}function di(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),fi(e)}function fi(e){let t=ai(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);let i=-new Date(+e).getTimezoneOffset(),a=i- -new Date(+r).getTimezoneOffset(),o=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&o&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);let s=i-n;s&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+s);let c=new Date(+e);c.setUTCSeconds(0);let l=i>0?c.getSeconds():(c.getSeconds()-60)%60,u=Math.round(-(ai(e.timeZone,e)*60))%60;(u||l)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+u),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+u+l));let d=ai(e.timeZone,e),f=d>0?Math.floor(d):Math.ceil(d),p=-new Date(+e).getTimezoneOffset()-f,m=f!==n,h=p-s;if(m&&h){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+h);let t=ai(e.timeZone,e),n=f-(t>0?Math.floor(t):Math.ceil(t));n&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+n),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n))}}var pi=class e extends ci{static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}toISOString(){let[e,t,n]=this.tzComponents(),r=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){let[e,t,n,r]=this.internal.toUTCString().split(` `);return`${e?.slice(0,-1)} ${n} ${t} ${r}`}toTimeString(){let e=this.internal.toUTCString().split(` `)[4],[t,n,r]=this.tzComponents();return`${e} GMT${t}${n}${r} (${ni(this.timeZone,this)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){let e=this.getTimezoneOffset();return[e>0?`-`:`+`,String(Math.floor(Math.abs(e)/60)).padStart(2,`0`),String(Math.abs(e)%60).padStart(2,`0`)]}withTimeZone(t){return new e(+this,t)}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}},mi=5,hi=4;function gi(e,t){let n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,i=t.addDays(e,-r+1),a=t.addDays(i,mi*7-1);return t.getMonth(e)===t.getMonth(a)?mi:hi}function _i(e,t){let n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-6):t.addDays(n,-1*(r-1))}function vi(e,t){let n=_i(e,t),r=gi(e,t);return t.addDays(n,r*7-1)}var yi={...dr,labels:{labelDayButton:(e,t,n,r)=>{let i;i=r&&typeof r.format==`function`?r.format.bind(r):(e,t)=>Rr(e,t,{locale:dr,...n});let a=i(e,`PPPP`);return t.today&&(a=`Today, ${a}`),t.selected&&(a=`${a}, selected`),a},labelMonthDropdown:`Choose the Month`,labelNext:`Go to the Next Month`,labelPrevious:`Go to the Previous Month`,labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:`Choose the Year`,labelGrid:(e,t,n)=>{let r;return r=n&&typeof n.format==`function`?n.format.bind(n):(e,n)=>Rr(e,n,{locale:dr,...t}),r(e,`LLLL yyyy`)},labelGridcell:(e,t,n,r)=>{let i;i=r&&typeof r.format==`function`?r.format.bind(r):(e,t)=>Rr(e,t,{locale:dr,...n});let a=i(e,`PPPP`);return t?.today&&(a=`Today, ${a}`),a},labelNav:`Navigation bar`,labelWeekNumberHeader:`Week Number`,labelWeekday:(e,t,n)=>{let r;return r=n&&typeof n.format==`function`?n.format.bind(n):(e,n)=>Rr(e,n,{locale:dr,...t}),r(e,`cccc`)}}},bi=class e{constructor(e,t){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?pi.tz(this.options.timeZone):new this.Date,this.newDate=(e,t,n)=>this.overrides?.newDate?this.overrides.newDate(e,t,n):this.options.timeZone?new pi(e,t,n,this.options.timeZone):new Date(e,t,n),this.addDays=(e,t)=>this.overrides?.addDays?this.overrides.addDays(e,t):wn(e,t),this.addMonths=(e,t)=>this.overrides?.addMonths?this.overrides.addMonths(e,t):Tn(e,t),this.addWeeks=(e,t)=>this.overrides?.addWeeks?this.overrides.addWeeks(e,t):In(e,t),this.addYears=(e,t)=>this.overrides?.addYears?this.overrides.addYears(e,t):Ln(e,t),this.differenceInCalendarDays=(e,t)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(e,t):Pn(e,t),this.differenceInCalendarMonths=(e,t)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(e,t):Un(e,t),this.eachMonthOfInterval=e=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(e):Kn(e),this.eachYearOfInterval=e=>{let t=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(e):Xn(e),n=new Set(t.map(e=>this.getYear(e)));if(n.size===t.length)return t;let r=[];return n.forEach(e=>{r.push(new Date(e,0,1))}),r},this.endOfBroadcastWeek=e=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(e):vi(e,this),this.endOfISOWeek=e=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(e):Qn(e),this.endOfMonth=e=>this.overrides?.endOfMonth?this.overrides.endOfMonth(e):Wn(e),this.endOfWeek=(e,t)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(e,t):Zn(e,this.options),this.endOfYear=e=>this.overrides?.endOfYear?this.overrides.endOfYear(e):Jn(e),this.format=(e,t,n)=>{let r=this.overrides?.format?this.overrides.format(e,t,this.options):Rr(e,t,this.options);return this.options.numerals&&this.options.numerals!==`latn`?this.replaceDigits(r):r},this.getISOWeek=e=>this.overrides?.getISOWeek?this.overrides.getISOWeek(e):pr(e),this.getMonth=(e,t)=>this.overrides?.getMonth?this.overrides.getMonth(e,this.options):Vr(e,this.options),this.getYear=(e,t)=>this.overrides?.getYear?this.overrides.getYear(e,this.options):Hr(e,this.options),this.getWeek=(e,t)=>this.overrides?.getWeek?this.overrides.getWeek(e,this.options):gr(e,this.options),this.isAfter=(e,t)=>this.overrides?.isAfter?this.overrides.isAfter(e,t):Ur(e,t),this.isBefore=(e,t)=>this.overrides?.isBefore?this.overrides.isBefore(e,t):Wr(e,t),this.isDate=e=>this.overrides?.isDate?this.overrides.isDate(e):Vn(e),this.isSameDay=(e,t)=>this.overrides?.isSameDay?this.overrides.isSameDay(e,t):Bn(e,t),this.isSameMonth=(e,t)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(e,t):Gr(e,t),this.isSameYear=(e,t)=>this.overrides?.isSameYear?this.overrides.isSameYear(e,t):Kr(e,t),this.max=e=>this.overrides?.max?this.overrides.max(e):Rn(e),this.min=e=>this.overrides?.min?this.overrides.min(e):zn(e),this.setMonth=(e,t)=>this.overrides?.setMonth?this.overrides.setMonth(e,t):Jr(e,t),this.setYear=(e,t)=>this.overrides?.setYear?this.overrides.setYear(e,t):Yr(e,t),this.startOfBroadcastWeek=(e,t)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(e,this):_i(e,this),this.startOfDay=e=>this.overrides?.startOfDay?this.overrides.startOfDay(e):Nn(e),this.startOfISOWeek=e=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(e):kn(e),this.startOfMonth=e=>this.overrides?.startOfMonth?this.overrides.startOfMonth(e):qn(e),this.startOfWeek=(e,t)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(e,this.options):On(e,this.options),this.startOfYear=e=>this.overrides?.startOfYear?this.overrides.startOfYear(e):Yn(e),this.options={locale:yi,...e},this.overrides=t}getDigitMap(){let{numerals:e=`latn`}=this.options,t=new Intl.NumberFormat(`en-US`,{numberingSystem:e}),n={};for(let e=0;e<10;e++)n[e.toString()]=t.format(e);return n}replaceDigits(e){let t=this.getDigitMap();return e.replace(/\d/g,e=>t[e]||e)}formatNumber(e){return this.replaceDigits(e.toString())}getMonthYearOrder(){let t=this.options.locale?.code;return t&&e.yearFirstLocales.has(t)?`year-first`:`month-first`}formatMonthYear(t){let{locale:n,timeZone:r,numerals:i}=this.options,a=n?.code;if(a&&e.yearFirstLocales.has(a))try{return new Intl.DateTimeFormat(a,{month:`long`,year:`numeric`,timeZone:r,numberingSystem:i}).format(t)}catch{}let o=this.getMonthYearOrder()===`year-first`?`y LLLL`:`LLLL y`;return this.format(t,o)}};bi.yearFirstLocales=new Set([`eu`,`hu`,`ja`,`ja-Hira`,`ja-JP`,`ko`,`ko-KR`,`lt`,`lt-LT`,`lv`,`lv-LV`,`mn`,`mn-MN`,`zh`,`zh-CN`,`zh-HK`,`zh-TW`]);var xi=new bi,Si=class{constructor(e,t,n=xi){this.date=e,this.displayMonth=t,this.outside=!!(t&&!n.isSameMonth(e,t)),this.dateLib=n,this.isoDate=n.format(e,`yyyy-MM-dd`),this.displayMonthId=n.format(t,`yyyy-MM`),this.dateMonthId=n.format(e,`yyyy-MM`)}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}},Ci=class{constructor(e,t){this.date=e,this.weeks=t}},wi=class{constructor(e,t){this.days=t,this.weekNumber=e}},I=t(a(),1);function Ti(e){return I.createElement(`button`,{...e})}function Ei(e){return I.createElement(`span`,{...e})}function Di(e){let{size:t=24,orientation:n=`left`,className:r}=e;return I.createElement(`svg`,{className:r,width:t,height:t,viewBox:`0 0 24 24`},n===`up`&&I.createElement(`polygon`,{points:`6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28`}),n===`down`&&I.createElement(`polygon`,{points:`6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72`}),n===`left`&&I.createElement(`polygon`,{points:`16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20`}),n===`right`&&I.createElement(`polygon`,{points:`8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20`}))}function Oi(e){let{day:t,modifiers:n,...r}=e;return I.createElement(`td`,{...r})}function ki(e){let{day:t,modifiers:n,...r}=e,i=I.useRef(null);return I.useEffect(()=>{n.focused&&i.current?.focus()},[n.focused]),I.createElement(`button`,{ref:i,...r})}var L;(function(e){e.Root=`root`,e.Chevron=`chevron`,e.Day=`day`,e.DayButton=`day_button`,e.CaptionLabel=`caption_label`,e.Dropdowns=`dropdowns`,e.Dropdown=`dropdown`,e.DropdownRoot=`dropdown_root`,e.Footer=`footer`,e.MonthGrid=`month_grid`,e.MonthCaption=`month_caption`,e.MonthsDropdown=`months_dropdown`,e.Month=`month`,e.Months=`months`,e.Nav=`nav`,e.NextMonthButton=`button_next`,e.PreviousMonthButton=`button_previous`,e.Week=`week`,e.Weeks=`weeks`,e.Weekday=`weekday`,e.Weekdays=`weekdays`,e.WeekNumber=`week_number`,e.WeekNumberHeader=`week_number_header`,e.YearsDropdown=`years_dropdown`})(L||={});var R;(function(e){e.disabled=`disabled`,e.hidden=`hidden`,e.outside=`outside`,e.focused=`focused`,e.today=`today`})(R||={});var Ai;(function(e){e.range_end=`range_end`,e.range_middle=`range_middle`,e.range_start=`range_start`,e.selected=`selected`})(Ai||={});var ji;(function(e){e.weeks_before_enter=`weeks_before_enter`,e.weeks_before_exit=`weeks_before_exit`,e.weeks_after_enter=`weeks_after_enter`,e.weeks_after_exit=`weeks_after_exit`,e.caption_after_enter=`caption_after_enter`,e.caption_after_exit=`caption_after_exit`,e.caption_before_enter=`caption_before_enter`,e.caption_before_exit=`caption_before_exit`})(ji||={});function Mi(e){let{options:t,className:n,components:r,classNames:i,...a}=e,o=[i[L.Dropdown],n].join(` `),s=t?.find(({value:e})=>e===a.value);return I.createElement(`span`,{"data-disabled":a.disabled,className:i[L.DropdownRoot]},I.createElement(r.Select,{className:o,...a},t?.map(({value:e,label:t,disabled:n})=>I.createElement(r.Option,{key:e,value:e,disabled:n},t))),I.createElement(`span`,{className:i[L.CaptionLabel],"aria-hidden":!0},s?.label,I.createElement(r.Chevron,{orientation:`down`,size:18,className:i[L.Chevron]})))}function Ni(e){return I.createElement(`div`,{...e})}function Pi(e){return I.createElement(`div`,{...e})}function Fi(e){let{calendarMonth:t,displayIndex:n,...r}=e;return I.createElement(`div`,{...r},e.children)}function Ii(e){let{calendarMonth:t,displayIndex:n,...r}=e;return I.createElement(`div`,{...r})}function Li(e){return I.createElement(`table`,{...e})}function Ri(e){return I.createElement(`div`,{...e})}var zi=(0,I.createContext)(void 0);function Bi(){let e=(0,I.useContext)(zi);if(e===void 0)throw Error(`useDayPicker() must be used within a custom component.`);return e}function Vi(e){let{components:t}=Bi();return I.createElement(t.Dropdown,{...e})}function Hi(e){let{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:i,...a}=e,{components:o,classNames:s,labels:{labelPrevious:c,labelNext:l}}=Bi(),u=(0,I.useCallback)(e=>{i&&n?.(e)},[i,n]),d=(0,I.useCallback)(e=>{r&&t?.(e)},[r,t]);return I.createElement(`nav`,{...a},I.createElement(o.PreviousMonthButton,{type:`button`,className:s[L.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":c(r),onClick:d},I.createElement(o.Chevron,{disabled:r?void 0:!0,className:s[L.Chevron],orientation:`left`})),I.createElement(o.NextMonthButton,{type:`button`,className:s[L.NextMonthButton],tabIndex:i?void 0:-1,"aria-disabled":i?void 0:!0,"aria-label":l(i),onClick:u},I.createElement(o.Chevron,{disabled:i?void 0:!0,orientation:`right`,className:s[L.Chevron]})))}function Ui(e){let{components:t}=Bi();return I.createElement(t.Button,{...e})}function Wi(e){return I.createElement(`option`,{...e})}function Gi(e){let{components:t}=Bi();return I.createElement(t.Button,{...e})}function Ki(e){let{rootRef:t,...n}=e;return I.createElement(`div`,{...n,ref:t})}function qi(e){return I.createElement(`select`,{...e})}function Ji(e){let{week:t,...n}=e;return I.createElement(`tr`,{...n})}function Yi(e){return I.createElement(`th`,{...e})}function Xi(e){return I.createElement(`thead`,{"aria-hidden":!0},I.createElement(`tr`,{...e}))}function Zi(e){let{week:t,...n}=e;return I.createElement(`th`,{...n})}function Qi(e){return I.createElement(`th`,{...e})}function $i(e){return I.createElement(`tbody`,{...e})}function ea(e){let{components:t}=Bi();return I.createElement(t.Dropdown,{...e})}var ta=e({Button:()=>Ti,CaptionLabel:()=>Ei,Chevron:()=>Di,Day:()=>Oi,DayButton:()=>ki,Dropdown:()=>Mi,DropdownNav:()=>Ni,Footer:()=>Pi,Month:()=>Fi,MonthCaption:()=>Ii,MonthGrid:()=>Li,Months:()=>Ri,MonthsDropdown:()=>Vi,Nav:()=>Hi,NextMonthButton:()=>Ui,Option:()=>Wi,PreviousMonthButton:()=>Gi,Root:()=>Ki,Select:()=>qi,Week:()=>Ji,WeekNumber:()=>Zi,WeekNumberHeader:()=>Qi,Weekday:()=>Yi,Weekdays:()=>Xi,Weeks:()=>$i,YearsDropdown:()=>ea});function na(e,t,n=!1,r=xi){let{from:i,to:a}=e,{differenceInCalendarDays:o,isSameDay:s}=r;return i&&a?(o(a,i)<0&&([i,a]=[a,i]),o(t,i)>=+!!n&&o(a,t)>=+!!n):!n&&a?s(a,t):!n&&i?s(i,t):!1}function ra(e){return!!(e&&typeof e==`object`&&`before`in e&&`after`in e)}function ia(e){return!!(e&&typeof e==`object`&&`from`in e)}function aa(e){return!!(e&&typeof e==`object`&&`after`in e)}function oa(e){return!!(e&&typeof e==`object`&&`before`in e)}function sa(e){return!!(e&&typeof e==`object`&&`dayOfWeek`in e)}function ca(e,t){return Array.isArray(e)&&e.every(t.isDate)}function la(e,t,n=xi){let r=Array.isArray(t)?t:[t],{isSameDay:i,differenceInCalendarDays:a,isAfter:o}=n;return r.some(t=>{if(typeof t==`boolean`)return t;if(n.isDate(t))return i(e,t);if(ca(t,n))return t.some(t=>i(e,t));if(ia(t))return na(t,e,!1,n);if(sa(t))return Array.isArray(t.dayOfWeek)?t.dayOfWeek.includes(e.getDay()):t.dayOfWeek===e.getDay();if(ra(t)){let n=a(t.before,e),r=a(t.after,e),i=n>0,s=r<0;return o(t.before,t.after)?s&&i:i||s}return aa(t)?a(e,t.after)>0:oa(t)?a(t.before,e)>0:typeof t==`function`?t(e):!1})}function ua(e,t,n,r,i){let{disabled:a,hidden:o,modifiers:s,showOutsideDays:c,broadcastCalendar:l,today:u=i.today()}=t,{isSameDay:d,isSameMonth:f,startOfMonth:p,isBefore:m,endOfMonth:h,isAfter:g}=i,_=n&&p(n),v=r&&h(r),y={[R.focused]:[],[R.outside]:[],[R.disabled]:[],[R.hidden]:[],[R.today]:[]},b={};for(let t of e){let{date:e,displayMonth:n}=t,r=!!(n&&!f(e,n)),p=!!(_&&m(e,_)),h=!!(v&&g(e,v)),x=!!(a&&la(e,a,i)),S=!!(o&&la(e,o,i))||p||h||!l&&!c&&r||l&&c===!1&&r,C=d(e,u);r&&y.outside.push(t),x&&y.disabled.push(t),S&&y.hidden.push(t),C&&y.today.push(t),s&&Object.keys(s).forEach(n=>{let r=s?.[n];r&&la(e,r,i)&&(b[n]?b[n].push(t):b[n]=[t])})}return e=>{let t={[R.focused]:!1,[R.disabled]:!1,[R.hidden]:!1,[R.outside]:!1,[R.today]:!1},n={};for(let n in y)t[n]=y[n].some(t=>t===e);for(let t in b)n[t]=b[t].some(t=>t===e);return{...t,...n}}}function da(e,t,n={}){return Object.entries(e).filter(([,e])=>e===!0).reduce((e,[r])=>(n[r]?e.push(n[r]):t[R[r]]?e.push(t[R[r]]):t[Ai[r]]&&e.push(t[Ai[r]]),e),[t[L.Day]])}function fa(e){return{...ta,...e}}function pa(e){let t={"data-mode":e.mode??void 0,"data-required":`required`in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([e,n])=>{e.startsWith(`data-`)&&(t[e]=n)}),t}function ma(){let e={};for(let t in L)e[L[t]]=`rdp-${L[t]}`;for(let t in R)e[R[t]]=`rdp-${R[t]}`;for(let t in Ai)e[Ai[t]]=`rdp-${Ai[t]}`;for(let t in ji)e[ji[t]]=`rdp-${ji[t]}`;return e}function ha(e,t,n){return(n??new bi(t)).formatMonthYear(e)}var ga=ha;function _a(e,t,n){return(n??new bi(t)).format(e,`d`)}function va(e,t=xi){return t.format(e,`LLLL`)}function ya(e,t,n){return(n??new bi(t)).format(e,`cccccc`)}function ba(e,t=xi){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function xa(){return``}function Sa(e,t=xi){return t.format(e,`yyyy`)}var Ca=Sa,wa=e({formatCaption:()=>ha,formatDay:()=>_a,formatMonthCaption:()=>ga,formatMonthDropdown:()=>va,formatWeekNumber:()=>ba,formatWeekNumberHeader:()=>xa,formatWeekdayName:()=>ya,formatYearCaption:()=>Ca,formatYearDropdown:()=>Sa});function Ta(e){return e?.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e?.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...wa,...e}}function Ea(e,t,n,r){let i=(r??new bi(n)).format(e,`PPPP`);return t.today&&(i=`Today, ${i}`),t.selected&&(i=`${i}, selected`),i}var Da=Ea;function Oa(e,t,n){return(n??new bi(t)).formatMonthYear(e)}var ka=Oa;function Aa(e,t,n,r){let i=(r??new bi(n)).format(e,`PPPP`);return t?.today&&(i=`Today, ${i}`),i}function ja(e){return`Choose the Month`}function Ma(){return``}var Na=`Go to the Next Month`;function Pa(e,t){return Na}function Fa(e){return`Go to the Previous Month`}function Ia(e,t,n){return(n??new bi(t)).format(e,`cccc`)}function La(e,t){return`Week ${e}`}function Ra(e){return`Week Number`}function za(e){return`Choose the Year`}var Ba=e({labelCaption:()=>ka,labelDay:()=>Da,labelDayButton:()=>Ea,labelGrid:()=>Oa,labelGridcell:()=>Aa,labelMonthDropdown:()=>ja,labelNav:()=>Ma,labelNext:()=>Pa,labelPrevious:()=>Fa,labelWeekNumber:()=>La,labelWeekNumberHeader:()=>Ra,labelWeekday:()=>Ia,labelYearDropdown:()=>za}),Va=(e,t,n)=>t||(n?typeof n==`function`?n:(...e)=>n:e);function Ha(e,t){let n=t.locale?.labels??{};return{...Ba,...e??{},labelDayButton:Va(Ea,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:Va(ja,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:Va(Pa,e?.labelNext,n.labelNext),labelPrevious:Va(Fa,e?.labelPrevious,n.labelPrevious),labelWeekNumber:Va(La,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:Va(za,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:Va(Oa,e?.labelGrid,n.labelGrid),labelGridcell:Va(Aa,e?.labelGridcell,n.labelGridcell),labelNav:Va(Ma,e?.labelNav,n.labelNav),labelWeekNumberHeader:Va(Ra,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:Va(Ia,e?.labelWeekday,n.labelWeekday)}}function Ua(e,t,n,r,i){let{startOfMonth:a,startOfYear:o,endOfYear:s,eachMonthOfInterval:c,getMonth:l}=i;return c({start:o(e),end:s(e)}).map(e=>{let o=r.formatMonthDropdown(e,i);return{value:l(e),label:o,disabled:t&&ea(n)||!1}})}function Wa(e,t={},n={}){let r={...t?.[L.Day]};return Object.entries(e).filter(([,e])=>e===!0).forEach(([e])=>{r={...r,...n?.[e]}}),r}function Ga(e,t,n,r){let i=r??e.today(),a=n?e.startOfBroadcastWeek(i,e):t?e.startOfISOWeek(i):e.startOfWeek(i),o=[];for(let t=0;t<7;t++){let n=e.addDays(a,t);o.push(n)}return o}function Ka(e,t,n,r,i=!1){if(!e||!t)return;let{startOfYear:a,endOfYear:o,eachYearOfInterval:s,getYear:c}=r,l=s({start:a(e),end:o(t)});return i&&l.reverse(),l.map(e=>{let t=n.formatYearDropdown(e,r);return{value:c(e),label:t,disabled:!1}})}function qa(e,t={}){let{weekStartsOn:n,locale:r}=t,i=n??r?.options?.weekStartsOn??0,a=t=>{let n=typeof t==`number`||typeof t==`string`?new Date(t):t;return new pi(n.getFullYear(),n.getMonth(),n.getDate(),12,0,0,e)},o=e=>{let t=a(e);return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)};return{today:()=>a(pi.tz(e)),newDate:(t,n,r)=>new pi(t,n,r,12,0,0,e),startOfDay:e=>a(e),startOfWeek:(e,t)=>{let n=a(e),r=t?.weekStartsOn??i,o=(n.getDay()-r+7)%7;return n.setDate(n.getDate()-o),n},startOfISOWeek:e=>{let t=a(e),n=(t.getDay()-1+7)%7;return t.setDate(t.getDate()-n),t},startOfMonth:e=>{let t=a(e);return t.setDate(1),t},startOfYear:e=>{let t=a(e);return t.setMonth(0,1),t},endOfWeek:(e,t)=>{let n=a(e),r=(((t?.weekStartsOn??i)+6)%7-n.getDay()+7)%7;return n.setDate(n.getDate()+r),n},endOfISOWeek:e=>{let t=a(e),n=(7-t.getDay())%7;return t.setDate(t.getDate()+n),t},endOfMonth:e=>{let t=a(e);return t.setMonth(t.getMonth()+1,0),t},endOfYear:e=>{let t=a(e);return t.setMonth(11,31),t},eachMonthOfInterval:t=>{let n=a(t.start),r=a(t.end),i=[],o=new pi(n.getFullYear(),n.getMonth(),1,12,0,0,e),s=r.getFullYear()*12+r.getMonth();for(;o.getFullYear()*12+o.getMonth()<=s;)i.push(new pi(o,e)),o.setMonth(o.getMonth()+1,1);return i},addDays:(e,t)=>{let n=a(e);return n.setDate(n.getDate()+t),n},addWeeks:(e,t)=>{let n=a(e);return n.setDate(n.getDate()+t*7),n},addMonths:(e,t)=>{let n=a(e);return n.setMonth(n.getMonth()+t),n},addYears:(e,t)=>{let n=a(e);return n.setFullYear(n.getFullYear()+t),n},eachYearOfInterval:t=>{let n=a(t.start),r=a(t.end),i=[],o=new pi(n.getFullYear(),0,1,12,0,0,e);for(;o.getFullYear()<=r.getFullYear();)i.push(new pi(o,e)),o.setFullYear(o.getFullYear()+1,0,1);return i},getWeek:(e,t)=>gr(o(e),{weekStartsOn:t?.weekStartsOn??i,firstWeekContainsDate:t?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1}),getISOWeek:e=>pr(o(e)),differenceInCalendarDays:(e,t)=>Pn(o(e),o(t)),differenceInCalendarMonths:(e,t)=>Un(o(e),o(t))}}var Ja=e=>e instanceof HTMLElement?e:null,Ya=e=>[...e.querySelectorAll(`[data-animated-month]`)??[]],Xa=e=>Ja(e.querySelector(`[data-animated-month]`)),Za=e=>Ja(e.querySelector(`[data-animated-caption]`)),Qa=e=>Ja(e.querySelector(`[data-animated-weeks]`)),$a=e=>Ja(e.querySelector(`[data-animated-nav]`)),eo=e=>Ja(e.querySelector(`[data-animated-weekdays]`));function to(e,t,{classNames:n,months:r,focused:i,dateLib:a}){let o=(0,I.useRef)(null),s=(0,I.useRef)(r),c=(0,I.useRef)(!1);(0,I.useLayoutEffect)(()=>{let l=s.current;if(s.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||l.length===0||r.length!==l.length)return;let u=a.isSameMonth(r[0].date,l[0].date),d=a.isAfter(r[0].date,l[0].date),f=d?n[ji.caption_after_enter]:n[ji.caption_before_enter],p=d?n[ji.weeks_after_enter]:n[ji.weeks_before_enter],m=o.current,h=e.current.cloneNode(!0);if(h instanceof HTMLElement?(Ya(h).forEach(e=>{if(!(e instanceof HTMLElement))return;let t=Xa(e);t&&e.contains(t)&&e.removeChild(t);let n=Za(e);n&&n.classList.remove(f);let r=Qa(e);r&&r.classList.remove(p)}),o.current=h):o.current=null,c.current||u||i)return;let g=m instanceof HTMLElement?Ya(m):[],_=Ya(e.current);if(_?.every(e=>e instanceof HTMLElement)&&g&&g.every(e=>e instanceof HTMLElement)){c.current=!0;let t=[];e.current.style.isolation=`isolate`;let r=$a(e.current);r&&(r.style.zIndex=`1`),_.forEach((i,a)=>{let o=g[a];if(!o)return;i.style.position=`relative`,i.style.overflow=`hidden`;let s=Za(i);s&&s.classList.add(f);let l=Qa(i);l&&l.classList.add(p);let u=()=>{c.current=!1,e.current&&(e.current.style.isolation=``),r&&(r.style.zIndex=``),s&&s.classList.remove(f),l&&l.classList.remove(p),i.style.position=``,i.style.overflow=``,i.contains(o)&&i.removeChild(o)};t.push(u),o.style.pointerEvents=`none`,o.style.position=`absolute`,o.style.overflow=`hidden`,o.setAttribute(`aria-hidden`,`true`);let m=eo(o);m&&(m.style.opacity=`0`);let h=Za(o);h&&(h.classList.add(d?n[ji.caption_before_exit]:n[ji.caption_after_exit]),h.addEventListener(`animationend`,u));let _=Qa(o);_&&_.classList.add(d?n[ji.weeks_before_exit]:n[ji.weeks_after_exit]),i.insertBefore(o,i.firstChild)})}})}function no(e,t,n,r){let i=e[0],a=e[e.length-1],{ISOWeek:o,fixedWeeks:s,broadcastCalendar:c}=n??{},{addDays:l,differenceInCalendarDays:u,differenceInCalendarMonths:d,endOfBroadcastWeek:f,endOfISOWeek:p,endOfMonth:m,endOfWeek:h,isAfter:g,startOfBroadcastWeek:_,startOfISOWeek:v,startOfWeek:y}=r,b=c?_(i,r):o?v(i):y(i),x=c?f(a):o?p(m(a)):h(m(a)),S=t&&(c?f(t):o?p(t):h(t)),C=u(S&&g(x,S)?S:x,b),w=d(a,i)+1,T=[];for(let e=0;e<=C;e++){let t=l(b,e);T.push(t)}let E=(c?35:42)*w;if(s&&T.length{let r=n.weeks.reduce((e,t)=>e.concat(t.days.slice()),t.slice());return e.concat(r.slice())},t.slice())}function io(e,t,n,r){let{numberOfMonths:i=1}=n,a=[];for(let n=0;nt)break;a.push(i)}return a}function ao(e,t,n,r){let{month:i,defaultMonth:a,today:o=r.today(),numberOfMonths:s=1}=e,c=i||a||o,{differenceInCalendarMonths:l,addMonths:u,startOfMonth:d}=r;return n&&l(n,c){let h=n.broadcastCalendar?d(m,r):n.ISOWeek?f(m):p(m),g=n.broadcastCalendar?a(m):n.ISOWeek?o(s(m)):c(s(m)),_=t.filter(e=>e>=h&&e<=g),v=n.broadcastCalendar?35:42;if(n.fixedWeeks&&_.length{let t=v-_.length;return e>g&&e<=i(g,t)});_.push(...e)}let y=new Ci(m,_.reduce((e,t)=>{let i=n.ISOWeek?l(t):u(t),a=e.find(e=>e.weekNumber===i),o=new Si(t,m,r);return a?a.days.push(o):e.push(new wi(i,[o])),e},[]));return e.push(y),e},[]);return n.reverseMonths?m.reverse():m}function so(e,t){let{startMonth:n,endMonth:r}=e,{startOfYear:i,startOfDay:a,startOfMonth:o,endOfMonth:s,addYears:c,endOfYear:l,newDate:u,today:d}=t,{fromYear:f,toYear:p,fromMonth:m,toMonth:h}=e;!n&&m&&(n=m),!n&&f&&(n=t.newDate(f,0,1)),!r&&h&&(r=h),!r&&p&&(r=u(p,11,31));let g=e.captionLayout===`dropdown`||e.captionLayout===`dropdown-years`;return n?n=o(n):f?n=u(f,0,1):!n&&g&&(n=i(c(e.today??d(),-100))),r?r=s(r):p?r=u(p,11,31):!r&&g&&(r=l(e.today??d())),[n&&a(n),r&&a(r)]}function co(e,t,n,r){if(n.disableNavigation)return;let{pagedNavigation:i,numberOfMonths:a=1}=n,{startOfMonth:o,addMonths:s,differenceInCalendarMonths:c}=r,l=i?a:1,u=o(e);if(!t||!(c(t,e)e.concat(t.weeks.slice()),[].slice())}function fo(e,t){let[n,r]=(0,I.useState)(e);return[t===void 0?n:t,r]}function po(e,t){let[n,r]=so(e,t),{startOfMonth:i,endOfMonth:a}=t,o=ao(e,n,r,t),[s,c]=fo(o,e.month?o:void 0);(0,I.useEffect)(()=>{c(ao(e,n,r,t))},[e.timeZone]);let{months:l,weeks:u,days:d,previousMonth:f,nextMonth:p}=(0,I.useMemo)(()=>{let i=io(s,r,{numberOfMonths:e.numberOfMonths},t),o=oo(i,no(i,e.endMonth?a(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t);return{months:o,weeks:uo(o),days:ro(o),previousMonth:lo(s,n,e,t),nextMonth:co(s,r,e,t)}},[t,s.getTime(),r?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:m,onMonthChange:h}=e,g=e=>u.some(t=>t.days.some(t=>t.isEqualTo(e))),_=e=>{if(m)return;let t=i(e);n&&ti(r)&&(t=i(r)),c(t),h?.(t)};return{months:l,weeks:u,days:d,navStart:n,navEnd:r,previousMonth:f,nextMonth:p,goToMonth:_,goToDay:e=>{g(e)||_(e.date)}}}var mo;(function(e){e[e.Today=0]=`Today`,e[e.Selected=1]=`Selected`,e[e.LastFocused=2]=`LastFocused`,e[e.FocusedModifier=3]=`FocusedModifier`})(mo||={});function ho(e){return!e[R.disabled]&&!e[R.hidden]&&!e[R.outside]}function go(e,t,n,r){let i,a=-1;for(let o of e){let e=t(o);ho(e)&&(e[R.focused]&&aho(t(e))),i}function _o(e,t,n,r,i,a,o){let{ISOWeek:s,broadcastCalendar:c}=a,{addDays:l,addMonths:u,addWeeks:d,addYears:f,endOfBroadcastWeek:p,endOfISOWeek:m,endOfWeek:h,max:g,min:_,startOfBroadcastWeek:v,startOfISOWeek:y,startOfWeek:b}=o,x={day:l,week:d,month:u,year:f,startOfWeek:e=>c?v(e,o):s?y(e):b(e),endOfWeek:e=>c?p(e):s?m(e):h(e)}[e](n,t===`after`?1:-1);return t===`before`&&r?x=g([r,x]):t===`after`&&i&&(x=_([i,x])),x}function vo(e,t,n,r,i,a,o,s=0){if(s>365)return;let c=_o(e,t,n.date,r,i,a,o),l=!!(a.disabled&&la(c,a.disabled,o)),u=!!(a.hidden&&la(c,a.hidden,o)),d=new Si(c,c,o);return!l&&!u?d:vo(e,t,d,r,i,a,o,s+1)}function yo(e,t,n,r,i){let{autoFocus:a}=e,[o,s]=(0,I.useState)(),c=go(t.days,n,r||(()=>!1),o),[l,u]=(0,I.useState)(a?c:void 0);return{isFocusTarget:e=>!!c?.isEqualTo(e),setFocused:u,focused:l,blur:()=>{s(l),u(void 0)},moveFocus:(n,r)=>{if(!l)return;let a=vo(n,r,l,t.navStart,t.navEnd,e,i);a&&(e.disableNavigation&&!t.days.some(e=>e.isEqualTo(a))||(t.goToDay(a),u(a)))}}}function bo(e,t){let{selected:n,required:r,onSelect:i}=e,[a,o]=fo(n,i?n:void 0),s=i?n:a,{isSameDay:c}=t,l=e=>s?.some(t=>c(t,e))??!1,{min:u,max:d}=e;return{selected:s,select:(e,t,n)=>{let a=[...s??[]];if(l(e)){if(s?.length===u||r&&s?.length===1)return;a=s?.filter(t=>!c(t,e))}else a=s?.length===d?[e]:[...a,e];return i||o(a),i?.(a,e,t,n),a},isSelected:l}}function xo(e,t,n=0,r=0,i=!1,a=xi){let{from:o,to:s}=t||{},{isSameDay:c,isAfter:l,isBefore:u}=a,d;if(!o&&!s)d={from:e,to:n>0?void 0:e};else if(o&&!s)d=c(o,e)?n===0?{from:o,to:e}:i?{from:o,to:void 0}:void 0:u(e,o)?{from:e,to:o}:{from:o,to:e};else if(o&&s)if(c(o,e)&&c(s,e))d=i?{from:o,to:s}:void 0;else if(c(o,e))d={from:o,to:n>0?void 0:e};else if(c(s,e))d={from:e,to:n>0?void 0:e};else if(u(e,o))d={from:e,to:s};else if(l(e,o))d={from:o,to:e};else if(l(e,s))d={from:o,to:e};else throw Error(`Invalid range`);if(d?.from&&d?.to){let t=a.differenceInCalendarDays(d.to,d.from);(r>0&&t>r||n>1&&ttypeof e!=`function`).some(t=>typeof t==`boolean`?t:n.isDate(t)?na(e,t,!1,n):ca(t,n)?t.some(t=>na(e,t,!1,n)):ia(t)?t.from&&t.to?Co(e,{from:t.from,to:t.to},n):!1:sa(t)?So(e,t.dayOfWeek,n):ra(t)?n.isAfter(t.before,t.after)?Co(e,{from:n.addDays(t.after,1),to:n.addDays(t.before,-1)},n):la(e.from,t,n)||la(e.to,t,n):aa(t)||oa(t)?la(e.from,t,n)||la(e.to,t,n):!1))return!0;let i=r.filter(e=>typeof e==`function`);if(i.length){let t=e.from,r=n.differenceInCalendarDays(e.to,e.from);for(let e=0;e<=r;e++){if(i.some(e=>e(t)))return!0;t=n.addDays(t,1)}}return!1}function To(e,t){let{disabled:n,excludeDisabled:r,resetOnSelect:i,selected:a,required:o,onSelect:s}=e,[c,l]=fo(a,s?a:void 0),u=s?a:c;return{selected:u,select:(a,c,d)=>{let{min:f,max:p}=e,m;if(a){let e=u?.from,n=u?.to,r=!!e&&!!n,s=!!e&&!!n&&t.isSameDay(e,n)&&t.isSameDay(a,e);m=i&&(r||!u?.from)?!o&&s?void 0:{from:a,to:void 0}:xo(a,u,f,p,o,t)}return r&&n&&m?.from&&m.to&&wo({from:m.from,to:m.to},n,t)&&(m.from=a,m.to=void 0),s||l(m),s?.(m,a,c,d),m},isSelected:e=>u&&na(u,e,!1,t)}}function Eo(e,t){let{selected:n,required:r,onSelect:i}=e,[a,o]=fo(n,i?n:void 0),s=i?n:a,{isSameDay:c}=t;return{selected:s,select:(e,t,n)=>{let a=e;return!r&&s&&s&&c(e,s)&&(a=void 0),i||o(a),i?.(a,e,t,n),a},isSelected:e=>s?c(s,e):!1}}function Do(e,t){let n=Eo(e,t),r=bo(e,t),i=To(e,t);switch(e.mode){case`single`:return n;case`multiple`:return r;case`range`:return i;default:return}}function Oo(e,t){return e instanceof pi&&e.timeZone===t?e:new pi(e,t)}function ko(e,t,n){if(!n)return Oo(e,t);let r=Oo(e,t),i=new pi(r.getFullYear(),r.getMonth(),r.getDate(),12,0,0,t);return new Date(i.getTime())}function Ao(e,t,n){return typeof e==`boolean`||typeof e==`function`?e:e instanceof Date?ko(e,t,n):Array.isArray(e)?e.map(e=>e instanceof Date?ko(e,t,n):e):ia(e)?{...e,from:e.from?Oo(e.from,t):e.from,to:e.to?Oo(e.to,t):e.to}:ra(e)?{before:ko(e.before,t,n),after:ko(e.after,t,n)}:aa(e)?{after:ko(e.after,t,n)}:oa(e)?{before:ko(e.before,t,n)}:e}function jo(e,t,n){return e&&(Array.isArray(e)?e.map(e=>Ao(e,t,n)):Ao(e,t,n))}function Mo(e){let t=e,n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&=Oo(t.today,n),t.month&&=Oo(t.month,n),t.defaultMonth&&=Oo(t.defaultMonth,n),t.startMonth&&=Oo(t.startMonth,n),t.endMonth&&=Oo(t.endMonth,n),t.mode===`single`&&t.selected?t.selected=Oo(t.selected,n):t.mode===`multiple`&&t.selected?t.selected=t.selected?.map(e=>Oo(e,n)):t.mode===`range`&&t.selected&&(t.selected={from:t.selected.from?Oo(t.selected.from,n):t.selected.from,to:t.selected.to?Oo(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=jo(t.disabled,n)),t.hidden!==void 0&&(t.hidden=jo(t.hidden,n)),t.modifiers)){let e={};Object.keys(t.modifiers).forEach(r=>{e[r]=jo(t.modifiers?.[r],n)}),t.modifiers=e}let{components:r,formatters:i,labels:a,dateLib:o,locale:s,classNames:c}=(0,I.useMemo)(()=>{let e={...yi,...t.locale},n=t.broadcastCalendar?1:t.weekStartsOn,r=t.noonSafe&&t.timeZone?qa(t.timeZone,{weekStartsOn:n,locale:e}):void 0,i=t.dateLib&&r?{...r,...t.dateLib}:t.dateLib??r,a=new bi({locale:e,weekStartsOn:n,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},i);return{dateLib:a,components:fa(t.components),formatters:Ta(t.formatters),labels:Ha(t.labels,a.options),locale:e,classNames:{...ma(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:o.today()});let{captionLayout:l,mode:u,navLayout:d,numberOfMonths:f=1,onDayBlur:p,onDayClick:m,onDayFocus:h,onDayKeyDown:g,onDayMouseEnter:_,onDayMouseLeave:v,onNextClick:y,onPrevClick:b,showWeekNumber:x,styles:S}=t,{formatCaption:C,formatDay:w,formatMonthDropdown:T,formatWeekNumber:E,formatWeekNumberHeader:D,formatWeekdayName:O,formatYearDropdown:k}=i,ee=po(t,o),{days:te,months:A,navStart:j,navEnd:ne,previousMonth:re,nextMonth:ie,goToMonth:ae}=ee,oe=ua(te,t,j,ne,o),{isSelected:se,select:ce,selected:le}=Do(t,o)??{},{blur:ue,focused:de,isFocusTarget:fe,moveFocus:pe,setFocused:me}=yo(t,ee,oe,se??(()=>!1),o),{labelDayButton:he,labelGridcell:ge,labelGrid:_e,labelMonthDropdown:ve,labelNav:ye,labelPrevious:be,labelNext:xe,labelWeekday:Se,labelWeekNumber:Ce,labelWeekNumberHeader:we,labelYearDropdown:Te}=a,Ee=(0,I.useMemo)(()=>Ga(o,t.ISOWeek,t.broadcastCalendar,t.today),[o,t.ISOWeek,t.broadcastCalendar,t.today]),De=u!==void 0||m!==void 0,Oe=(0,I.useCallback)(()=>{re&&(ae(re),b?.(re))},[re,ae,b]),ke=(0,I.useCallback)(()=>{ie&&(ae(ie),y?.(ie))},[ae,ie,y]),Ae=(0,I.useCallback)((e,t)=>n=>{n.preventDefault(),n.stopPropagation(),me(e),!t.disabled&&(ce?.(e.date,t,n),m?.(e.date,t,n))},[ce,m,me]),je=(0,I.useCallback)((e,t)=>n=>{me(e),h?.(e.date,t,n)},[h,me]),Me=(0,I.useCallback)((e,t)=>n=>{ue(),p?.(e.date,t,n)},[ue,p]),Ne=(0,I.useCallback)((e,n)=>r=>{let i={ArrowLeft:[r.shiftKey?`month`:`day`,t.dir===`rtl`?`after`:`before`],ArrowRight:[r.shiftKey?`month`:`day`,t.dir===`rtl`?`before`:`after`],ArrowDown:[r.shiftKey?`year`:`week`,`after`],ArrowUp:[r.shiftKey?`year`:`week`,`before`],PageUp:[r.shiftKey?`year`:`month`,`before`],PageDown:[r.shiftKey?`year`:`month`,`after`],Home:[`startOfWeek`,`before`],End:[`endOfWeek`,`after`]};if(i[r.key]){r.preventDefault(),r.stopPropagation();let[e,t]=i[r.key];pe(e,t)}g?.(e.date,n,r)},[pe,g,t.dir]),Pe=(0,I.useCallback)((e,t)=>n=>{_?.(e.date,t,n)},[_]),Fe=(0,I.useCallback)((e,t)=>n=>{v?.(e.date,t,n)},[v]),Ie=(0,I.useCallback)(e=>t=>{let n=Number(t.target.value);ae(o.setMonth(o.startOfMonth(e),n))},[o,ae]),Le=(0,I.useCallback)(e=>t=>{let n=Number(t.target.value);ae(o.setYear(o.startOfMonth(e),n))},[o,ae]),{className:Re,style:ze}=(0,I.useMemo)(()=>({className:[c[L.Root],t.className].filter(Boolean).join(` `),style:{...S?.[L.Root],...t.style}}),[c,t.className,t.style,S]),Be=pa(t),Ve=(0,I.useRef)(null);to(Ve,!!t.animate,{classNames:c,months:A,focused:de,dateLib:o});let He={dayPickerProps:t,selected:le,select:ce,isSelected:se,months:A,nextMonth:ie,previousMonth:re,goToMonth:ae,getModifiers:oe,components:r,classNames:c,styles:S,labels:a,formatters:i};return I.createElement(zi.Provider,{value:He},I.createElement(r.Root,{rootRef:t.animate?Ve:void 0,className:Re,style:ze,dir:t.dir,id:t.id,lang:t.lang??s.code,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t[`aria-label`],"aria-labelledby":t[`aria-labelledby`],...Be},I.createElement(r.Months,{className:c[L.Months],style:S?.[L.Months]},!t.hideNavigation&&!d&&I.createElement(r.Nav,{"data-animated-nav":t.animate?`true`:void 0,className:c[L.Nav],style:S?.[L.Nav],"aria-label":ye(),onPreviousClick:Oe,onNextClick:ke,previousMonth:re,nextMonth:ie}),A.map((e,n)=>I.createElement(r.Month,{"data-animated-month":t.animate?`true`:void 0,className:c[L.Month],style:S?.[L.Month],key:n,displayIndex:n,calendarMonth:e},d===`around`&&!t.hideNavigation&&n===0&&I.createElement(r.PreviousMonthButton,{type:`button`,className:c[L.PreviousMonthButton],tabIndex:re?void 0:-1,"aria-disabled":re?void 0:!0,"aria-label":be(re),onClick:Oe,"data-animated-button":t.animate?`true`:void 0},I.createElement(r.Chevron,{disabled:re?void 0:!0,className:c[L.Chevron],orientation:t.dir===`rtl`?`right`:`left`})),I.createElement(r.MonthCaption,{"data-animated-caption":t.animate?`true`:void 0,className:c[L.MonthCaption],style:S?.[L.MonthCaption],calendarMonth:e,displayIndex:n},l?.startsWith(`dropdown`)?I.createElement(r.DropdownNav,{className:c[L.Dropdowns],style:S?.[L.Dropdowns]},(()=>{let n=l===`dropdown`||l===`dropdown-months`?I.createElement(r.MonthsDropdown,{key:`month`,className:c[L.MonthsDropdown],"aria-label":ve(),classNames:c,components:r,disabled:!!t.disableNavigation,onChange:Ie(e.date),options:Ua(e.date,j,ne,i,o),style:S?.[L.Dropdown],value:o.getMonth(e.date)}):I.createElement(`span`,{key:`month`},T(e.date,o)),a=l===`dropdown`||l===`dropdown-years`?I.createElement(r.YearsDropdown,{key:`year`,className:c[L.YearsDropdown],"aria-label":Te(o.options),classNames:c,components:r,disabled:!!t.disableNavigation,onChange:Le(e.date),options:Ka(j,ne,i,o,!!t.reverseYears),style:S?.[L.Dropdown],value:o.getYear(e.date)}):I.createElement(`span`,{key:`year`},k(e.date,o));return o.getMonthYearOrder()===`year-first`?[a,n]:[n,a]})(),I.createElement(`span`,{role:`status`,"aria-live":`polite`,style:{border:0,clip:`rect(0 0 0 0)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`,wordWrap:`normal`}},C(e.date,o.options,o))):I.createElement(r.CaptionLabel,{className:c[L.CaptionLabel],role:`status`,"aria-live":`polite`},C(e.date,o.options,o))),d===`around`&&!t.hideNavigation&&n===f-1&&I.createElement(r.NextMonthButton,{type:`button`,className:c[L.NextMonthButton],tabIndex:ie?void 0:-1,"aria-disabled":ie?void 0:!0,"aria-label":xe(ie),onClick:ke,"data-animated-button":t.animate?`true`:void 0},I.createElement(r.Chevron,{disabled:ie?void 0:!0,className:c[L.Chevron],orientation:t.dir===`rtl`?`left`:`right`})),n===f-1&&d===`after`&&!t.hideNavigation&&I.createElement(r.Nav,{"data-animated-nav":t.animate?`true`:void 0,className:c[L.Nav],style:S?.[L.Nav],"aria-label":ye(),onPreviousClick:Oe,onNextClick:ke,previousMonth:re,nextMonth:ie}),I.createElement(r.MonthGrid,{role:`grid`,"aria-multiselectable":u===`multiple`||u===`range`,"aria-label":_e(e.date,o.options,o)||void 0,className:c[L.MonthGrid],style:S?.[L.MonthGrid]},!t.hideWeekdays&&I.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?`true`:void 0,className:c[L.Weekdays],style:S?.[L.Weekdays]},x&&I.createElement(r.WeekNumberHeader,{"aria-label":we(o.options),className:c[L.WeekNumberHeader],style:S?.[L.WeekNumberHeader],scope:`col`},D()),Ee.map(e=>I.createElement(r.Weekday,{"aria-label":Se(e,o.options,o),className:c[L.Weekday],key:String(e),style:S?.[L.Weekday],scope:`col`},O(e,o.options,o)))),I.createElement(r.Weeks,{"data-animated-weeks":t.animate?`true`:void 0,className:c[L.Weeks],style:S?.[L.Weeks]},e.weeks.map(e=>I.createElement(r.Week,{className:c[L.Week],key:e.weekNumber,style:S?.[L.Week],week:e},x&&I.createElement(r.WeekNumber,{week:e,style:S?.[L.WeekNumber],"aria-label":Ce(e.weekNumber,{locale:s}),className:c[L.WeekNumber],scope:`row`,role:`rowheader`},E(e.weekNumber,o)),e.days.map(e=>{let{date:n}=e,i=oe(e);if(i[R.focused]=!i.hidden&&!!de?.isEqualTo(e),i[Ai.selected]=se?.(n)||i.selected,ia(le)){let{from:e,to:t}=le;i[Ai.range_start]=!!(e&&t&&o.isSameDay(n,e)),i[Ai.range_end]=!!(e&&t&&o.isSameDay(n,t)),i[Ai.range_middle]=na(le,n,!0,o)}let a=Wa(i,S,t.modifiersStyles),s=da(i,c,t.modifiersClassNames),l=!De&&!i.hidden?ge(n,i,o.options,o):void 0;return I.createElement(r.Day,{key:`${e.isoDate}_${e.displayMonthId}`,day:e,modifiers:i,className:s.join(` `),style:a,role:`gridcell`,"aria-selected":i.selected||void 0,"aria-label":l,"data-day":e.isoDate,"data-month":e.outside?e.dateMonthId:void 0,"data-selected":i.selected||void 0,"data-disabled":i.disabled||void 0,"data-hidden":i.hidden||void 0,"data-outside":e.outside||void 0,"data-focused":i.focused||void 0,"data-today":i.today||void 0},!i.hidden&&De?I.createElement(r.DayButton,{className:c[L.DayButton],style:S?.[L.DayButton],type:`button`,day:e,modifiers:i,disabled:!i.focused&&i.disabled||void 0,"aria-disabled":i.focused&&i.disabled||void 0,tabIndex:fe(e)?0:-1,"aria-label":he(n,i,o.options,o),onClick:Ae(e,i),onBlur:Me(e,i),onFocus:je(e,i),onKeyDown:Ne(e,i),onMouseEnter:Pe(e,i),onMouseLeave:Fe(e,i)},w(n,o.options,o)):!i.hidden&&w(e.date,o.options,o))})))))))),t.footer&&I.createElement(r.Footer,{className:c[L.Footer],style:S?.[L.Footer],role:`status`,"aria-live":`polite`},t.footer)))}var z=ve();function No({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:r=`label`,buttonVariant:i=`ghost`,formatters:a,components:o,...s}){let c=ma();return(0,z.jsx)(Mo,{captionLayout:r,className:M(`group/calendar bg-background p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent`,String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),classNames:{root:M(`w-fit`,c.root),months:M(`relative flex flex-col gap-4 md:flex-row`,c.months),month:M(`flex w-full flex-col gap-4`,c.month),nav:M(`absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1`,c.nav),button_previous:M(ft({variant:i}),`size-(--cell-size) select-none p-0 aria-disabled:opacity-50`,c.button_previous),button_next:M(ft({variant:i}),`size-(--cell-size) select-none p-0 aria-disabled:opacity-50`,c.button_next),month_caption:M(`flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)`,c.month_caption),dropdowns:M(`flex h-(--cell-size) w-full items-center justify-center gap-1.5 font-medium text-sm`,c.dropdowns),dropdown_root:M(`relative rounded-md border border-input shadow-xs has-focus:border-ring has-focus:ring-[3px] has-focus:ring-ring/50`,c.dropdown_root),dropdown:M(`absolute inset-0 bg-popover opacity-0`,c.dropdown),caption_label:M(`select-none font-medium`,r===`label`?`text-sm`:`flex h-8 items-center gap-1 rounded-md pr-1 pl-2 text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground`,c.caption_label),table:`w-full border-collapse`,weekdays:M(`flex`,c.weekdays),weekday:M(`flex-1 select-none rounded-md font-normal text-[0.8rem] text-muted-foreground`,c.weekday),week:M(`mt-2 flex w-full`,c.week),week_number_header:M(`w-(--cell-size) select-none`,c.week_number_header),week_number:M(`select-none text-[0.8rem] text-muted-foreground`,c.week_number),day:M(`group/day relative aspect-square h-full w-full select-none p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-md`,s.showWeekNumber?`[&:nth-child(2)[data-selected=true]_button]:rounded-l-md`:`[&:first-child[data-selected=true]_button]:rounded-l-md`,c.day),range_start:M(`rounded-l-md bg-accent`,c.range_start),range_middle:M(`rounded-none`,c.range_middle),range_end:M(`rounded-r-md bg-accent`,c.range_end),today:M(`rounded-md bg-accent text-accent-foreground data-[selected=true]:rounded-none`,c.today),outside:M(`text-muted-foreground aria-selected:text-muted-foreground`,c.outside),disabled:M(`text-muted-foreground opacity-50`,c.disabled),hidden:M(`invisible`,c.hidden),...t},components:{Root:({className:e,rootRef:t,...n})=>(0,z.jsx)(`div`,{className:M(e),"data-slot":`calendar`,ref:t,...n}),Chevron:({className:e,orientation:t,...n})=>t===`left`?(0,z.jsx)(Dt,{className:M(`size-4`,e),...n}):t===`right`?(0,z.jsx)(At,{className:M(`size-4`,e),...n}):(0,z.jsx)(kt,{className:M(`size-4`,e),...n}),DayButton:Po,WeekNumber:({children:e,...t})=>(0,z.jsx)(`td`,{...t,children:(0,z.jsx)(`div`,{className:`flex size-(--cell-size) items-center justify-center text-center`,children:e})}),...o},formatters:{formatMonthDropdown:e=>e.toLocaleString(`default`,{month:`short`}),...a},showOutsideDays:n,...s})}function Po({className:e,day:t,modifiers:n,...r}){let i=ma(),a=I.useRef(null);return I.useEffect(()=>{n.focused&&a.current?.focus()},[n.focused]),(0,z.jsx)(pt,{className:M(`flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-start=true]:rounded-l-md data-[range-end=true]:bg-primary data-[range-middle=true]:bg-accent data-[range-start=true]:bg-primary data-[selected-single=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:text-accent-foreground data-[range-start=true]:text-primary-foreground data-[selected-single=true]:text-primary-foreground group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground [&>span]:text-xs [&>span]:opacity-70`,i.day,e),"data-day":t.date.toLocaleDateString(),"data-range-end":n.range_end,"data-range-middle":n.range_middle,"data-range-start":n.range_start,"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,ref:a,size:`icon`,variant:`ghost`,...r})}function Fo({selected:e,onSelect:t}){let n=oe()===`zh-TW`?ti:dr,r=new Date,i=[{label:Je(),range:{from:r,to:r}},{label:ye(),range:{from:qr(r,1),to:qr(r,1)}},{label:s(),range:{from:qr(r,6),to:r}},{label:T(),range:{from:qr(r,29),to:r}},{label:ie(),range:{from:qn(r),to:r}},{label:j(),range:{from:qn(Xr(r,1)),to:Wn(Xr(r,1))}}],a;return e?.from&&e?.to?a=`${Rr(e.from,`PP`,{locale:n})} – ${Rr(e.to,`PP`,{locale:n})}`:e?.from&&(a=Rr(e.from,`PP`,{locale:n})),(0,z.jsxs)(gt,{children:[(0,z.jsx)(ht,{asChild:!0,children:(0,z.jsxs)(pt,{className:`w-auto justify-start text-start font-normal data-[empty=true]:text-muted-foreground`,"data-empty":!a,size:`sm`,variant:`outline`,children:[a??(0,z.jsx)(`span`,{children:Ie()}),(0,z.jsx)(sn,{className:`ms-2 h-4 w-4 opacity-50`})]})}),(0,z.jsxs)(mt,{align:`end`,className:`flex w-auto gap-0 p-0`,children:[(0,z.jsx)(`div`,{className:`flex flex-col gap-1 border-r p-3`,children:i.map(e=>(0,z.jsx)(pt,{className:`justify-start`,onClick:()=>t(e.range),size:`sm`,variant:`ghost`,children:e.label},e.label))}),(0,z.jsx)(No,{captionLayout:`dropdown`,disabled:e=>e>new Date||e{var{children:n,width:r,height:i,viewBox:a,className:o,style:s,title:c,desc:l}=e,u=qo(e,Go),d=a||{width:r,height:i,x:0,y:0},f=N(`recharts-surface`,o);return I.createElement(`svg`,Ko({},Uo(u),{className:f,width:r,height:i,style:s,viewBox:`${d.x} ${d.y} ${d.width} ${d.height}`,ref:t}),I.createElement(`title`,null,c),I.createElement(`desc`,null,l),n)}),Xo=[`children`,`className`];function Zo(){return Zo=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{children:n,className:r}=e,i=Qo(e,Xo),a=N(`recharts-layer`,r);return I.createElement(`g`,Zo({className:a},Uo(i),{ref:t}),n)}),ts=(0,I.createContext)(null),ns=()=>(0,I.useContext)(ts);function B(e){return function(){return e}}var rs=Math.cos,is=Math.sin,as=Math.sqrt,os=Math.PI;os/2;var ss=2*os,cs=Math.PI,ls=2*cs,us=1e-6,ds=ls-us;function fs(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw Error(`invalid digits: ${e}`);if(t>15)return fs;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;tus)if(!(Math.abs(u*s-c*l)>us)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((cs-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>us&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>us||Math.abs(this._y1-l)>us)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%ls+ls),d>ds?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>us&&this._append`A${n},${n},0,${+(d>=cs)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function hs(){return new ms}hs.prototype=ms.prototype;function gs(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new ms(t)}Array.prototype.slice;function _s(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function vs(e){this._context=e}vs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function ys(e){return new vs(e)}function bs(e){return e[0]}function xs(e){return e[1]}function Ss(e,t){var n=B(!0),r=null,i=ys,a=null,o=gs(s);e=typeof e==`function`?e:e===void 0?bs:B(e),t=typeof t==`function`?t:t===void 0?xs:B(t);function s(s){var c,l=(s=_s(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c=d;--f)s.point(_[f],v[f]);s.lineEnd(),s.areaEnd()}h&&(_[u]=+e(m,u,l),v[u]=+t(m,u,l),s.point(r?+r(m,u,l):_[u],n?+n(m,u,l):v[u]))}if(g)return s=null,g+``||null}function u(){return Ss().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:B(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:B(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:B(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:B(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:B(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:B(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i=typeof e==`function`?e:B(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,a!=null&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(e==null?a=s=null:s=o(a=e),l):a},l}var ws=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function Ts(e){return new ws(e,!0)}function Es(e){return new ws(e,!1)}var Ds={draw(e,t){let n=as(t/os);e.moveTo(n,0),e.arc(0,0,n,0,ss)}},Os={draw(e,t){let n=as(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},ks=as(1/3),As=ks*2,js={draw(e,t){let n=as(t/As),r=n*ks;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Ms={draw(e,t){let n=as(t),r=-n/2;e.rect(r,r,n,n)}},Ns=.8908130915292852,Ps=is(os/10)/is(7*os/10),Fs=is(ss/10)*Ps,Is=-rs(ss/10)*Ps,Ls={draw(e,t){let n=as(t*Ns),r=Fs*n,i=Is*n;e.moveTo(0,-n),e.lineTo(r,i);for(let t=1;t<5;++t){let a=ss*t/5,o=rs(a),s=is(a);e.lineTo(s*n,-o*n),e.lineTo(o*r-s*i,s*r+o*i)}e.closePath()}},Rs=as(3),zs={draw(e,t){let n=-as(t/(Rs*3));e.moveTo(0,n*2),e.lineTo(-Rs*n,-n),e.lineTo(Rs*n,-n),e.closePath()}},Bs=-.5,Vs=as(3)/2,Hs=1/as(12),Us=(Hs/2+1)*3,Ws={draw(e,t){let n=as(t/Us),r=n/2,i=n*Hs,a=r,o=n*Hs+n,s=-a,c=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,c),e.lineTo(Bs*r-Vs*i,Vs*r+Bs*i),e.lineTo(Bs*a-Vs*o,Vs*a+Bs*o),e.lineTo(Bs*s-Vs*c,Vs*s+Bs*c),e.lineTo(Bs*r+Vs*i,Bs*i-Vs*r),e.lineTo(Bs*a+Vs*o,Bs*o-Vs*a),e.lineTo(Bs*s+Vs*c,Bs*c-Vs*s),e.closePath()}};function Gs(e,t){let n=null,r=gs(i);e=typeof e==`function`?e:B(e||Ds),t=typeof t==`function`?t:B(t===void 0?64:+t);function i(){let i;if(n||=i=r(),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+``||null}return i.type=function(t){return arguments.length?(e=typeof t==`function`?t:B(t),i):e},i.size=function(e){return arguments.length?(t=typeof e==`function`?e:B(+e),i):t},i.context=function(e){return arguments.length?(n=e??null,i):n},i}function Ks(){}function qs(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Js(e){this._context=e}Js.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:qs(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:qs(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ys(e){return new Js(e)}function Xs(e){this._context=e}Xs.prototype={areaStart:Ks,areaEnd:Ks,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:qs(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Zs(e){return new Xs(e)}function Qs(e){this._context=e}Qs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:qs(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $s(e){return new Qs(e)}function ec(e){this._context=e}ec.prototype={areaStart:Ks,areaEnd:Ks,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function tc(e){return new ec(e)}function nc(e){return e<0?-1:1}function rc(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(nc(a)+nc(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function ic(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function ac(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function oc(e){this._context=e}oc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ac(this,this._t0,ic(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,ac(this,ic(this,n=rc(this,e,t)),n);break;default:ac(this,this._t0,n=rc(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function sc(e){this._context=new cc(e)}(sc.prototype=Object.create(oc.prototype)).point=function(e,t){oc.prototype.point.call(this,t,e)};function cc(e){this._context=e}cc.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function lc(e){return new oc(e)}function uc(e){return new sc(e)}function dc(e){this._context=e}dc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=fc(e),i=fc(t),a=0,o=1;o=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t}};function hc(e){return new mc(e,.5)}function gc(e){return new mc(e,0)}function _c(e){return new mc(e,1)}function vc(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n=0;)n[t]=t;return n}function bc(e,t){return e[t]}function xc(e){let t=[];return t.key=e,t}function Sc(){var e=B([]),t=yc,n=vc,r=bc;function i(i){var a=Array.from(e.apply(this,arguments),xc),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o0){for(var n,r,i=0,a=e[0].length,o;i0){for(var n=0,r=e[t[0]],i,a=r.length;n0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e===`__proto__`}e.isUnsafeProperty=t})),Dc=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e.includes(`.`)||e.includes(`[`)||e.includes(`]`)}}e.isDeepKey=t})),Oc=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}e.toKey=t})),kc=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){if(e==null)return``;if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(t).join(`,`);let n=String(e);return n===`0`&&Object.is(Number(e),-0)?`-0`:n}e.toString=t})),Ac=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=kc(),n=Oc();function r(e){if(Array.isArray(e))return e.map(n.toKey);if(typeof e==`symbol`)return[e];e=t.toString(e);let r=[],i=e.length;if(i===0)return r;let a=0,o=``,s=``,c=!1;for(e.charCodeAt(0)===46&&(r.push(``),a++);a{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Ec(),n=Dc(),r=Oc(),i=Ac();function a(e,s,c){if(e==null)return c;switch(typeof s){case`string`:{if(t.isUnsafeProperty(s))return c;let r=e[s];return r===void 0?n.isDeepKey(s)?a(e,i.toPath(s),c):c:r}case`number`:case`symbol`:{typeof s==`number`&&(s=r.toKey(s));let t=e[s];return t===void 0?c:t}default:{if(Array.isArray(s))return o(e,s,c);if(s=Object.is(s?.valueOf(),-0)?`-0`:String(s),t.isUnsafeProperty(s))return c;let n=e[s];return n===void 0?c:n}}}function o(e,n,r){if(n.length===0)return r;let i=e;for(let e=0;e{t.exports=jc().get})),Nc=4;function Pc(e){var t=10**(arguments.length>1&&arguments[1]!==void 0?arguments[1]:Nc),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function Fc(e){var t=[...arguments].slice(1);return e.reduce((e,n,r)=>{var i=t[r-1];return typeof i==`string`?e+i+n:i===void 0?e+n:e+Pc(i)+n},``)}var Ic=t(Mc()),Lc=e=>e===0?0:e>0?1:-1,Rc=e=>typeof e==`number`&&e!=+e,zc=e=>typeof e==`string`&&e.indexOf(`%`)===e.length-1,V=e=>(typeof e==`number`||e instanceof Number)&&!Rc(e),Bc=e=>V(e)||typeof e==`string`,Vc=0,Hc=e=>{var t=++Vc;return`${e||``}${t}`},Uc=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!V(e)&&typeof e!=`string`)return n;var i;if(zc(e)){if(t==null)return n;var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return Rc(i)&&(i=n),r&&t!=null&&i>t&&(i=t),i},Wc=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;re&&(typeof t==`function`?t(e):(0,Ic.default)(e,t))===n)}var U=e=>e==null,Kc=e=>U(e)?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`;function qc(e){return e!=null}function Jc(){}var Yc=[`type`,`size`,`sizeType`];function Xc(){return Xc=Object.assign?Object.assign.bind():function(e){for(var t=1;til[`symbol${Kc(e)}`]||Ds,sl=(e,t,n)=>{if(t===`area`)return e;switch(n){case`cross`:return 5*e*e/9;case`diamond`:return .5*e*e/Math.sqrt(3);case`square`:return e*e;case`star`:var r=18*al;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2);case`triangle`:return Math.sqrt(3)*e*e/4;case`wye`:return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},cl=(e,t)=>{il[`symbol${Kc(e)}`]=t},ll=e=>{var{type:t=`circle`,size:n=64,sizeType:r=`area`}=e,i=Qc(Qc({},nl(e,Yc)),{},{type:t,size:n,sizeType:r}),a=`circle`;typeof t==`string`&&(a=t);var o=()=>{var e=ol(a),t=Gs().type(e).size(sl(n,r,a))();if(t!==null)return t},{className:s,cx:c,cy:l}=i,u=Uo(i);return V(c)&&V(l)&&V(n)?I.createElement(`path`,Xc({},u,{className:N(`recharts-symbols`,s),transform:`translate(${c}, ${l})`,d:o()})):null};ll.registerSymbol=cl;var ul=e=>`radius`in e&&`startAngle`in e&&`endAngle`in e,dl=(e,t)=>{if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if((0,I.isValidElement)(e)&&(n=e.props),typeof n!=`object`&&typeof n!=`function`)return null;var r={};return Object.keys(n).forEach(e=>{Lo(e)&&typeof n[e]==`function`&&(r[e]=t||(t=>n[e](n,t)))}),r},fl=(e,t,n)=>r=>(e(t,n,r),null),pl=(e,t,n)=>{if(e===null||typeof e!=`object`&&typeof e!=`function`)return null;var r=null;return Object.keys(e).forEach(i=>{var a=e[i];Lo(i)&&typeof a==`function`&&(r||={},r[i]=fl(a,t,n))}),r};function ml(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hl(e){for(var t=1;t(e[t]===void 0&&r[t]!==void 0&&(e[t]=r[t]),e),n)}function bl(){return bl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=a.getDate()?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}var En={};function Dn(){return En}function On(e,t){let n=Dn(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=P(e,t?.in),a=i.getDay(),o=(a=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function jn(e){let t=P(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-+n}function Mn(e,...t){let n=Cn.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}function Nn(e,t){let n=P(e,t?.in);return n.setHours(0,0,0,0),n}function Pn(e,t,n){let[r,i]=Mn(n?.in,e,t),a=Nn(r),o=Nn(i),s=+a-jn(a),c=+o-jn(o);return Math.round((s-c)/bn)}function Fn(e,t){let n=An(e,t),r=Cn(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),kn(r)}function In(e,t,n){return wn(e,t*7,n)}function Ln(e,t,n){return Tn(e,t*12,n)}function Rn(e,t){let n,r=t?.in;return e.forEach(e=>{!r&&typeof e==`object`&&(r=Cn.bind(null,e));let t=P(e,r);(!n||n{!r&&typeof e==`object`&&(r=Cn.bind(null,e));let t=P(e,r);(!n||n>t||isNaN(+t))&&(n=t)}),Cn(r,n||NaN)}function Bn(e,t,n){let[r,i]=Mn(n?.in,e,t);return+Nn(r)==+Nn(i)}function Vn(e){return e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`}function Hn(e){return!(!Vn(e)&&typeof e!=`number`||isNaN(+P(e)))}function Un(e,t,n){let[r,i]=Mn(n?.in,e,t),a=r.getFullYear()-i.getFullYear(),o=r.getMonth()-i.getMonth();return a*12+o}function Wn(e,t){let n=P(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Gn(e,t){let[n,r]=Mn(e,t.start,t.end);return{start:n,end:r}}function Kn(e,t){let{start:n,end:r}=Gn(t?.in,e),i=+n>+r,a=i?+n:+r,o=i?r:n;o.setHours(0,0,0,0),o.setDate(1);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,i=!i);let c=[];for(;+o<=a;)c.push(Cn(n,o)),o.setMonth(o.getMonth()+s);return i?c.reverse():c}function qn(e,t){let n=P(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Jn(e,t){let n=P(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Yn(e,t){let n=P(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Xn(e,t){let{start:n,end:r}=Gn(t?.in,e),i=+n>+r,a=i?+n:+r,o=i?r:n;o.setHours(0,0,0,0),o.setMonth(0,1);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,i=!i);let c=[];for(;+o<=a;)c.push(Cn(n,o)),o.setFullYear(o.getFullYear()+s);return i?c.reverse():c}function Zn(e,t){let n=Dn(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=P(e,t?.in),a=i.getDay(),o=(a{let r,i=$n[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r};function tr(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var nr={date:tr({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:tr({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:tr({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},rr={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},ir=(e,t,n,r)=>rr[e];function ar(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}var or={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:ar({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:ar({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:ar({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:ar({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:ar({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function sr(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?lr(s,e=>e.test(o)):cr(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function cr(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function lr(e,t){for(let n=0;n{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var dr={code:`en-US`,formatDistance:er,formatLong:nr,formatRelative:ir,localize:or,match:{ordinalNumber:ur({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:sr({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:sr({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:sr({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:sr({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:sr({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function fr(e,t){let n=P(e,t?.in);return Pn(n,Yn(n))+1}function pr(e,t){let n=P(e,t?.in),r=kn(n)-+Fn(n);return Math.round(r/yn)+1}function mr(e,t){let n=P(e,t?.in),r=n.getFullYear(),i=Dn(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=Cn(t?.in||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);let s=On(o,t),c=Cn(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);let l=On(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function hr(e,t){let n=Dn(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=mr(e,t),a=Cn(t?.in||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),On(a,t)}function gr(e,t){let n=P(e,t?.in),r=On(n,t)-+hr(n,t);return Math.round(r/yn)+1}function F(e,t){return(e<0?`-`:``)+Math.abs(e).toString().padStart(t,`0`)}var _r={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return F(t===`yy`?r%100:r,t.length)},M(e,t){let n=e.getMonth();return t===`M`?String(n+1):F(n+1,2)},d(e,t){return F(e.getDate(),t.length)},a(e,t){let n=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.toUpperCase();case`aaa`:return n;case`aaaaa`:return n[0];default:return n===`am`?`a.m.`:`p.m.`}},h(e,t){return F(e.getHours()%12||12,t.length)},H(e,t){return F(e.getHours(),t.length)},m(e,t){return F(e.getMinutes(),t.length)},s(e,t){return F(e.getSeconds(),t.length)},S(e,t){let n=t.length,r=e.getMilliseconds();return F(Math.trunc(r*10**(n-3)),t.length)}},vr={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},yr={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){let t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:`year`})}return _r.y(e,t)},Y:function(e,t,n,r){let i=mr(e,r),a=i>0?i:1-i;return t===`YY`?F(a%100,2):t===`Yo`?n.ordinalNumber(a,{unit:`year`}):F(a,t.length)},R:function(e,t){return F(An(e),t.length)},u:function(e,t){return F(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return F(r,2);case`Qo`:return n.ordinalNumber(r,{unit:`quarter`});case`QQQ`:return n.quarter(r,{width:`abbreviated`,context:`formatting`});case`QQQQQ`:return n.quarter(r,{width:`narrow`,context:`formatting`});default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`q`:return String(r);case`qq`:return F(r,2);case`qo`:return n.ordinalNumber(r,{unit:`quarter`});case`qqq`:return n.quarter(r,{width:`abbreviated`,context:`standalone`});case`qqqqq`:return n.quarter(r,{width:`narrow`,context:`standalone`});default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){let r=e.getMonth();switch(t){case`M`:case`MM`:return _r.M(e,t);case`Mo`:return n.ordinalNumber(r+1,{unit:`month`});case`MMM`:return n.month(r,{width:`abbreviated`,context:`formatting`});case`MMMMM`:return n.month(r,{width:`narrow`,context:`formatting`});default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){let r=e.getMonth();switch(t){case`L`:return String(r+1);case`LL`:return F(r+1,2);case`Lo`:return n.ordinalNumber(r+1,{unit:`month`});case`LLL`:return n.month(r,{width:`abbreviated`,context:`standalone`});case`LLLLL`:return n.month(r,{width:`narrow`,context:`standalone`});default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){let i=gr(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):F(i,t.length)},I:function(e,t,n){let r=pr(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):F(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):_r.d(e,t)},D:function(e,t,n){let r=fr(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):F(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case`E`:case`EE`:case`EEE`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`EEEEE`:return n.day(r,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(a);case`ee`:return F(a,2);case`eo`:return n.ordinalNumber(a,{unit:`day`});case`eee`:return n.day(i,{width:`abbreviated`,context:`formatting`});case`eeeee`:return n.day(i,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(i,{width:`short`,context:`formatting`});default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(a);case`cc`:return F(a,t.length);case`co`:return n.ordinalNumber(a,{unit:`day`});case`ccc`:return n.day(i,{width:`abbreviated`,context:`standalone`});case`ccccc`:return n.day(i,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(i,{width:`short`,context:`standalone`});default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){let r=e.getDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return F(i,t.length);case`io`:return n.ordinalNumber(i,{unit:`day`});case`iii`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`iiiii`:return n.day(r,{width:`narrow`,context:`formatting`});case`iiiiii`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){let r=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(r,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(r,{width:`wide`,context:`formatting`})}},b:function(e,t,n){let r=e.getHours(),i;switch(i=r===12?vr.noon:r===0?vr.midnight:r/12>=1?`pm`:`am`,t){case`b`:case`bb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`bbb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){let r=e.getHours(),i;switch(i=r>=17?vr.evening:r>=12?vr.afternoon:r>=4?vr.morning:vr.night,t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:`hour`})}return _r.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):_r.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):F(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):F(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):_r.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):_r.s(e,t)},S:function(e,t){return _r.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return xr(r);case`XXXX`:case`XX`:return Sr(r);default:return Sr(r,`:`)}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`x`:return xr(r);case`xxxx`:case`xx`:return Sr(r);default:return Sr(r,`:`)}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+br(r,`:`);default:return`GMT`+Sr(r,`:`)}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+br(r,`:`);default:return`GMT`+Sr(r,`:`)}},t:function(e,t,n){return F(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return F(+e,t.length)}};function br(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+F(a,2)}function xr(e,t){return e%60==0?(e>0?`-`:`+`)+F(Math.abs(e)/60,2):Sr(e,t)}function Sr(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=F(Math.trunc(r/60),2),a=F(r%60,2);return n+i+t+a}var Cr=(e,t)=>{switch(e){case`P`:return t.date({width:`short`});case`PP`:return t.date({width:`medium`});case`PPP`:return t.date({width:`long`});default:return t.date({width:`full`})}},wr=(e,t)=>{switch(e){case`p`:return t.time({width:`short`});case`pp`:return t.time({width:`medium`});case`ppp`:return t.time({width:`long`});default:return t.time({width:`full`})}},Tr={p:wr,P:(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Cr(e,t);let a;switch(r){case`P`:a=t.dateTime({width:`short`});break;case`PP`:a=t.dateTime({width:`medium`});break;case`PPP`:a=t.dateTime({width:`long`});break;default:a=t.dateTime({width:`full`});break}return a.replace(`{{date}}`,Cr(r,t)).replace(`{{time}}`,wr(i,t))}},Er=/^D+$/,Dr=/^Y+$/,Or=[`D`,`DD`,`YY`,`YYYY`];function kr(e){return Er.test(e)}function Ar(e){return Dr.test(e)}function jr(e,t,n){let r=Mr(e,t,n);if(console.warn(r),Or.includes(e))throw RangeError(r)}function Mr(e,t,n){let r=e[0]===`Y`?`years`:`days of the month`;return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var Nr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Pr=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Fr=/^'([^]*?)'?$/,Ir=/''/g,Lr=/[a-zA-Z]/;function Rr(e,t,n){let r=Dn(),i=n?.locale??r.locale??dr,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=P(e,n?.in);if(!Hn(s))throw RangeError(`Invalid time value`);let c=t.match(Pr).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=Tr[t];return n(e,i.formatLong)}return e}).join(``).match(Nr).map(e=>{if(e===`''`)return{isToken:!1,value:`'`};let t=e[0];if(t===`'`)return{isToken:!1,value:zr(e)};if(yr[t])return{isToken:!0,value:e};if(t.match(Lr))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));let l={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return c.map(r=>{if(!r.isToken)return r.value;let a=r.value;(!n?.useAdditionalWeekYearTokens&&Ar(a)||!n?.useAdditionalDayOfYearTokens&&kr(a))&&jr(a,t,String(e));let o=yr[a[0]];return o(s,a,i.localize,l)}).join(``)}function zr(e){let t=e.match(Fr);return t?t[1].replace(Ir,`'`):e}function Br(e,t){let n=P(e,t?.in),r=n.getFullYear(),i=n.getMonth(),a=Cn(n,0);return a.setFullYear(r,i+1,0),a.setHours(0,0,0,0),a.getDate()}function Vr(e,t){return P(e,t?.in).getMonth()}function Hr(e,t){return P(e,t?.in).getFullYear()}function Ur(e,t){return+P(e)>+P(t)}function Wr(e,t){return+P(e)<+P(t)}function Gr(e,t,n){let[r,i]=Mn(n?.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function Kr(e,t,n){let[r,i]=Mn(n?.in,e,t);return r.getFullYear()===i.getFullYear()}function qr(e,t,n){return wn(e,-t,n)}function Jr(e,t,n){let r=P(e,n?.in),i=r.getFullYear(),a=r.getDate(),o=Cn(n?.in||e,0);o.setFullYear(i,t,15),o.setHours(0,0,0,0);let s=Br(o);return r.setMonth(t,Math.min(a,s)),r}function Yr(e,t,n){let r=P(e,n?.in);return isNaN(+r)?Cn(n?.in||e,NaN):(r.setFullYear(t),r)}function Xr(e,t,n){return Tn(e,-t,n)}var Zr={lessThanXSeconds:{one:`少於 1 秒`,other:`少於 {{count}} 秒`},xSeconds:{one:`1 秒`,other:`{{count}} 秒`},halfAMinute:`半分鐘`,lessThanXMinutes:{one:`少於 1 分鐘`,other:`少於 {{count}} 分鐘`},xMinutes:{one:`1 分鐘`,other:`{{count}} 分鐘`},xHours:{one:`1 小時`,other:`{{count}} 小時`},aboutXHours:{one:`大約 1 小時`,other:`大約 {{count}} 小時`},xDays:{one:`1 天`,other:`{{count}} 天`},aboutXWeeks:{one:`大約 1 個星期`,other:`大約 {{count}} 個星期`},xWeeks:{one:`1 個星期`,other:`{{count}} 個星期`},aboutXMonths:{one:`大約 1 個月`,other:`大約 {{count}} 個月`},xMonths:{one:`1 個月`,other:`{{count}} 個月`},aboutXYears:{one:`大約 1 年`,other:`大約 {{count}} 年`},xYears:{one:`1 年`,other:`{{count}} 年`},overXYears:{one:`超過 1 年`,other:`超過 {{count}} 年`},almostXYears:{one:`將近 1 年`,other:`將近 {{count}} 年`}},Qr=(e,t,n)=>{let r,i=Zr[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+`內`:r+`前`:r},$r={date:tr({formats:{full:`y'年'M'月'd'日' EEEE`,long:`y'年'M'月'd'日'`,medium:`yyyy-MM-dd`,short:`yy-MM-dd`},defaultWidth:`full`}),time:tr({formats:{full:`zzzz a h:mm:ss`,long:`z a h:mm:ss`,medium:`a h:mm:ss`,short:`a h:mm`},defaultWidth:`full`}),dateTime:tr({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},ei={lastWeek:`'上個'eeee p`,yesterday:`'昨天' p`,today:`'今天' p`,tomorrow:`'明天' p`,nextWeek:`'下個'eeee p`,other:`P`},ti={code:`zh-TW`,formatDistance:Qr,formatLong:$r,formatRelative:(e,t,n,r)=>ei[e],localize:{ordinalNumber:(e,t)=>{let n=Number(e);switch(t?.unit){case`date`:return n+`日`;case`hour`:return n+`時`;case`minute`:return n+`分`;case`second`:return n+`秒`;default:return`第 `+n}},era:ar({values:{narrow:[`前`,`公元`],abbreviated:[`前`,`公元`],wide:[`公元前`,`公元`]},defaultWidth:`wide`}),quarter:ar({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`第一刻`,`第二刻`,`第三刻`,`第四刻`],wide:[`第一刻鐘`,`第二刻鐘`,`第三刻鐘`,`第四刻鐘`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:ar({values:{narrow:[`一`,`二`,`三`,`四`,`五`,`六`,`七`,`八`,`九`,`十`,`十一`,`十二`],abbreviated:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],wide:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`]},defaultWidth:`wide`}),day:ar({values:{narrow:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],short:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],abbreviated:[`週日`,`週一`,`週二`,`週三`,`週四`,`週五`,`週六`],wide:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`]},defaultWidth:`wide`}),dayPeriod:ar({values:{narrow:{am:`上`,pm:`下`,midnight:`凌晨`,noon:`午`,morning:`早`,afternoon:`下午`,evening:`晚`,night:`夜`},abbreviated:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜間`},wide:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜間`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`上`,pm:`下`,midnight:`凌晨`,noon:`午`,morning:`早`,afternoon:`下午`,evening:`晚`,night:`夜`},abbreviated:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜間`},wide:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜間`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:ur({matchPattern:/^(第\s*)?\d+(日|時|分|秒)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:sr({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:`any`}),quarter:sr({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻鐘/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:sr({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},defaultParseWidth:`any`}),day:sr({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:`any`}),dayPeriod:sr({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};function ni(e,t,n=`long`){return new Intl.DateTimeFormat(`en-US`,{hour:`numeric`,timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(` `)}var ri={},ii={};function ai(e,t){try{let n=(ri[e]||=new Intl.DateTimeFormat(`en-US`,{timeZone:e,timeZoneName:`longOffset`}).format)(t).split(`GMT`)[1];return n in ii?ii[n]:si(n,n.split(`:`))}catch{if(e in ii)return ii[e];let t=e?.match(oi);return t?si(e,t.slice(1)):NaN}}var oi=/([+-]\d\d):?(\d\d)?/;function si(e,t){let n=+(t[0]||0),r=+(t[1]||0),i=(t[2]||0)/60;return ii[e]=n*60+r>0?n*60+r+i:n*60-r-i}var ci=class e extends Date{constructor(...e){super(),e.length>1&&typeof e[e.length-1]==`string`&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(ai(this.timeZone,this))?this.setTime(NaN):e.length?typeof e[0]==`number`&&(e.length===1||e.length===2&&typeof e[1]!=`number`)?this.setTime(e[0]):typeof e[0]==`string`?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),fi(this,NaN),ui(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}withTimeZone(t){return new e(+this,t)}getTimezoneOffset(){let e=-ai(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),ui(this),+this}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}},li=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!li.test(e))return;let t=e.replace(li,`$1UTC`);ci.prototype[t]&&(e.startsWith(`get`)?ci.prototype[e]=function(){return this.internal[t]()}:(ci.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),di(this),+this},ci.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),ui(this),+this}))});function ui(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-ai(e.timeZone,e)*60))}function di(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),fi(e)}function fi(e){let t=ai(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);let i=-new Date(+e).getTimezoneOffset(),a=i- -new Date(+r).getTimezoneOffset(),o=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&o&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);let s=i-n;s&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+s);let c=new Date(+e);c.setUTCSeconds(0);let l=i>0?c.getSeconds():(c.getSeconds()-60)%60,u=Math.round(-(ai(e.timeZone,e)*60))%60;(u||l)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+u),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+u+l));let d=ai(e.timeZone,e),f=d>0?Math.floor(d):Math.ceil(d),p=-new Date(+e).getTimezoneOffset()-f,m=f!==n,h=p-s;if(m&&h){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+h);let t=ai(e.timeZone,e),n=f-(t>0?Math.floor(t):Math.ceil(t));n&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+n),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n))}}var pi=class e extends ci{static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}toISOString(){let[e,t,n]=this.tzComponents(),r=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){let[e,t,n,r]=this.internal.toUTCString().split(` `);return`${e?.slice(0,-1)} ${n} ${t} ${r}`}toTimeString(){let e=this.internal.toUTCString().split(` `)[4],[t,n,r]=this.tzComponents();return`${e} GMT${t}${n}${r} (${ni(this.timeZone,this)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){let e=this.getTimezoneOffset();return[e>0?`-`:`+`,String(Math.floor(Math.abs(e)/60)).padStart(2,`0`),String(Math.abs(e)%60).padStart(2,`0`)]}withTimeZone(t){return new e(+this,t)}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}},mi=5,hi=4;function gi(e,t){let n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,i=t.addDays(e,-r+1),a=t.addDays(i,mi*7-1);return t.getMonth(e)===t.getMonth(a)?mi:hi}function _i(e,t){let n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-6):t.addDays(n,-1*(r-1))}function vi(e,t){let n=_i(e,t),r=gi(e,t);return t.addDays(n,r*7-1)}var yi={...dr,labels:{labelDayButton:(e,t,n,r)=>{let i;i=r&&typeof r.format==`function`?r.format.bind(r):(e,t)=>Rr(e,t,{locale:dr,...n});let a=i(e,`PPPP`);return t.today&&(a=`Today, ${a}`),t.selected&&(a=`${a}, selected`),a},labelMonthDropdown:`Choose the Month`,labelNext:`Go to the Next Month`,labelPrevious:`Go to the Previous Month`,labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:`Choose the Year`,labelGrid:(e,t,n)=>{let r;return r=n&&typeof n.format==`function`?n.format.bind(n):(e,n)=>Rr(e,n,{locale:dr,...t}),r(e,`LLLL yyyy`)},labelGridcell:(e,t,n,r)=>{let i;i=r&&typeof r.format==`function`?r.format.bind(r):(e,t)=>Rr(e,t,{locale:dr,...n});let a=i(e,`PPPP`);return t?.today&&(a=`Today, ${a}`),a},labelNav:`Navigation bar`,labelWeekNumberHeader:`Week Number`,labelWeekday:(e,t,n)=>{let r;return r=n&&typeof n.format==`function`?n.format.bind(n):(e,n)=>Rr(e,n,{locale:dr,...t}),r(e,`cccc`)}}},bi=class e{constructor(e,t){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?pi.tz(this.options.timeZone):new this.Date,this.newDate=(e,t,n)=>this.overrides?.newDate?this.overrides.newDate(e,t,n):this.options.timeZone?new pi(e,t,n,this.options.timeZone):new Date(e,t,n),this.addDays=(e,t)=>this.overrides?.addDays?this.overrides.addDays(e,t):wn(e,t),this.addMonths=(e,t)=>this.overrides?.addMonths?this.overrides.addMonths(e,t):Tn(e,t),this.addWeeks=(e,t)=>this.overrides?.addWeeks?this.overrides.addWeeks(e,t):In(e,t),this.addYears=(e,t)=>this.overrides?.addYears?this.overrides.addYears(e,t):Ln(e,t),this.differenceInCalendarDays=(e,t)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(e,t):Pn(e,t),this.differenceInCalendarMonths=(e,t)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(e,t):Un(e,t),this.eachMonthOfInterval=e=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(e):Kn(e),this.eachYearOfInterval=e=>{let t=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(e):Xn(e),n=new Set(t.map(e=>this.getYear(e)));if(n.size===t.length)return t;let r=[];return n.forEach(e=>{r.push(new Date(e,0,1))}),r},this.endOfBroadcastWeek=e=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(e):vi(e,this),this.endOfISOWeek=e=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(e):Qn(e),this.endOfMonth=e=>this.overrides?.endOfMonth?this.overrides.endOfMonth(e):Wn(e),this.endOfWeek=(e,t)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(e,t):Zn(e,this.options),this.endOfYear=e=>this.overrides?.endOfYear?this.overrides.endOfYear(e):Jn(e),this.format=(e,t,n)=>{let r=this.overrides?.format?this.overrides.format(e,t,this.options):Rr(e,t,this.options);return this.options.numerals&&this.options.numerals!==`latn`?this.replaceDigits(r):r},this.getISOWeek=e=>this.overrides?.getISOWeek?this.overrides.getISOWeek(e):pr(e),this.getMonth=(e,t)=>this.overrides?.getMonth?this.overrides.getMonth(e,this.options):Vr(e,this.options),this.getYear=(e,t)=>this.overrides?.getYear?this.overrides.getYear(e,this.options):Hr(e,this.options),this.getWeek=(e,t)=>this.overrides?.getWeek?this.overrides.getWeek(e,this.options):gr(e,this.options),this.isAfter=(e,t)=>this.overrides?.isAfter?this.overrides.isAfter(e,t):Ur(e,t),this.isBefore=(e,t)=>this.overrides?.isBefore?this.overrides.isBefore(e,t):Wr(e,t),this.isDate=e=>this.overrides?.isDate?this.overrides.isDate(e):Vn(e),this.isSameDay=(e,t)=>this.overrides?.isSameDay?this.overrides.isSameDay(e,t):Bn(e,t),this.isSameMonth=(e,t)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(e,t):Gr(e,t),this.isSameYear=(e,t)=>this.overrides?.isSameYear?this.overrides.isSameYear(e,t):Kr(e,t),this.max=e=>this.overrides?.max?this.overrides.max(e):Rn(e),this.min=e=>this.overrides?.min?this.overrides.min(e):zn(e),this.setMonth=(e,t)=>this.overrides?.setMonth?this.overrides.setMonth(e,t):Jr(e,t),this.setYear=(e,t)=>this.overrides?.setYear?this.overrides.setYear(e,t):Yr(e,t),this.startOfBroadcastWeek=(e,t)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(e,this):_i(e,this),this.startOfDay=e=>this.overrides?.startOfDay?this.overrides.startOfDay(e):Nn(e),this.startOfISOWeek=e=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(e):kn(e),this.startOfMonth=e=>this.overrides?.startOfMonth?this.overrides.startOfMonth(e):qn(e),this.startOfWeek=(e,t)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(e,this.options):On(e,this.options),this.startOfYear=e=>this.overrides?.startOfYear?this.overrides.startOfYear(e):Yn(e),this.options={locale:yi,...e},this.overrides=t}getDigitMap(){let{numerals:e=`latn`}=this.options,t=new Intl.NumberFormat(`en-US`,{numberingSystem:e}),n={};for(let e=0;e<10;e++)n[e.toString()]=t.format(e);return n}replaceDigits(e){let t=this.getDigitMap();return e.replace(/\d/g,e=>t[e]||e)}formatNumber(e){return this.replaceDigits(e.toString())}getMonthYearOrder(){let t=this.options.locale?.code;return t&&e.yearFirstLocales.has(t)?`year-first`:`month-first`}formatMonthYear(t){let{locale:n,timeZone:r,numerals:i}=this.options,a=n?.code;if(a&&e.yearFirstLocales.has(a))try{return new Intl.DateTimeFormat(a,{month:`long`,year:`numeric`,timeZone:r,numberingSystem:i}).format(t)}catch{}let o=this.getMonthYearOrder()===`year-first`?`y LLLL`:`LLLL y`;return this.format(t,o)}};bi.yearFirstLocales=new Set([`eu`,`hu`,`ja`,`ja-Hira`,`ja-JP`,`ko`,`ko-KR`,`lt`,`lt-LT`,`lv`,`lv-LV`,`mn`,`mn-MN`,`zh`,`zh-CN`,`zh-HK`,`zh-TW`]);var xi=new bi,Si=class{constructor(e,t,n=xi){this.date=e,this.displayMonth=t,this.outside=!!(t&&!n.isSameMonth(e,t)),this.dateLib=n,this.isoDate=n.format(e,`yyyy-MM-dd`),this.displayMonthId=n.format(t,`yyyy-MM`),this.dateMonthId=n.format(e,`yyyy-MM`)}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}},Ci=class{constructor(e,t){this.date=e,this.weeks=t}},wi=class{constructor(e,t){this.days=t,this.weekNumber=e}},I=t(a(),1);function Ti(e){return I.createElement(`button`,{...e})}function Ei(e){return I.createElement(`span`,{...e})}function Di(e){let{size:t=24,orientation:n=`left`,className:r}=e;return I.createElement(`svg`,{className:r,width:t,height:t,viewBox:`0 0 24 24`},n===`up`&&I.createElement(`polygon`,{points:`6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28`}),n===`down`&&I.createElement(`polygon`,{points:`6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72`}),n===`left`&&I.createElement(`polygon`,{points:`16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20`}),n===`right`&&I.createElement(`polygon`,{points:`8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20`}))}function Oi(e){let{day:t,modifiers:n,...r}=e;return I.createElement(`td`,{...r})}function ki(e){let{day:t,modifiers:n,...r}=e,i=I.useRef(null);return I.useEffect(()=>{n.focused&&i.current?.focus()},[n.focused]),I.createElement(`button`,{ref:i,...r})}var L;(function(e){e.Root=`root`,e.Chevron=`chevron`,e.Day=`day`,e.DayButton=`day_button`,e.CaptionLabel=`caption_label`,e.Dropdowns=`dropdowns`,e.Dropdown=`dropdown`,e.DropdownRoot=`dropdown_root`,e.Footer=`footer`,e.MonthGrid=`month_grid`,e.MonthCaption=`month_caption`,e.MonthsDropdown=`months_dropdown`,e.Month=`month`,e.Months=`months`,e.Nav=`nav`,e.NextMonthButton=`button_next`,e.PreviousMonthButton=`button_previous`,e.Week=`week`,e.Weeks=`weeks`,e.Weekday=`weekday`,e.Weekdays=`weekdays`,e.WeekNumber=`week_number`,e.WeekNumberHeader=`week_number_header`,e.YearsDropdown=`years_dropdown`})(L||={});var R;(function(e){e.disabled=`disabled`,e.hidden=`hidden`,e.outside=`outside`,e.focused=`focused`,e.today=`today`})(R||={});var Ai;(function(e){e.range_end=`range_end`,e.range_middle=`range_middle`,e.range_start=`range_start`,e.selected=`selected`})(Ai||={});var ji;(function(e){e.weeks_before_enter=`weeks_before_enter`,e.weeks_before_exit=`weeks_before_exit`,e.weeks_after_enter=`weeks_after_enter`,e.weeks_after_exit=`weeks_after_exit`,e.caption_after_enter=`caption_after_enter`,e.caption_after_exit=`caption_after_exit`,e.caption_before_enter=`caption_before_enter`,e.caption_before_exit=`caption_before_exit`})(ji||={});function Mi(e){let{options:t,className:n,components:r,classNames:i,...a}=e,o=[i[L.Dropdown],n].join(` `),s=t?.find(({value:e})=>e===a.value);return I.createElement(`span`,{"data-disabled":a.disabled,className:i[L.DropdownRoot]},I.createElement(r.Select,{className:o,...a},t?.map(({value:e,label:t,disabled:n})=>I.createElement(r.Option,{key:e,value:e,disabled:n},t))),I.createElement(`span`,{className:i[L.CaptionLabel],"aria-hidden":!0},s?.label,I.createElement(r.Chevron,{orientation:`down`,size:18,className:i[L.Chevron]})))}function Ni(e){return I.createElement(`div`,{...e})}function Pi(e){return I.createElement(`div`,{...e})}function Fi(e){let{calendarMonth:t,displayIndex:n,...r}=e;return I.createElement(`div`,{...r},e.children)}function Ii(e){let{calendarMonth:t,displayIndex:n,...r}=e;return I.createElement(`div`,{...r})}function Li(e){return I.createElement(`table`,{...e})}function Ri(e){return I.createElement(`div`,{...e})}var zi=(0,I.createContext)(void 0);function Bi(){let e=(0,I.useContext)(zi);if(e===void 0)throw Error(`useDayPicker() must be used within a custom component.`);return e}function Vi(e){let{components:t}=Bi();return I.createElement(t.Dropdown,{...e})}function Hi(e){let{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:i,...a}=e,{components:o,classNames:s,labels:{labelPrevious:c,labelNext:l}}=Bi(),u=(0,I.useCallback)(e=>{i&&n?.(e)},[i,n]),d=(0,I.useCallback)(e=>{r&&t?.(e)},[r,t]);return I.createElement(`nav`,{...a},I.createElement(o.PreviousMonthButton,{type:`button`,className:s[L.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":c(r),onClick:d},I.createElement(o.Chevron,{disabled:r?void 0:!0,className:s[L.Chevron],orientation:`left`})),I.createElement(o.NextMonthButton,{type:`button`,className:s[L.NextMonthButton],tabIndex:i?void 0:-1,"aria-disabled":i?void 0:!0,"aria-label":l(i),onClick:u},I.createElement(o.Chevron,{disabled:i?void 0:!0,orientation:`right`,className:s[L.Chevron]})))}function Ui(e){let{components:t}=Bi();return I.createElement(t.Button,{...e})}function Wi(e){return I.createElement(`option`,{...e})}function Gi(e){let{components:t}=Bi();return I.createElement(t.Button,{...e})}function Ki(e){let{rootRef:t,...n}=e;return I.createElement(`div`,{...n,ref:t})}function qi(e){return I.createElement(`select`,{...e})}function Ji(e){let{week:t,...n}=e;return I.createElement(`tr`,{...n})}function Yi(e){return I.createElement(`th`,{...e})}function Xi(e){return I.createElement(`thead`,{"aria-hidden":!0},I.createElement(`tr`,{...e}))}function Zi(e){let{week:t,...n}=e;return I.createElement(`th`,{...n})}function Qi(e){return I.createElement(`th`,{...e})}function $i(e){return I.createElement(`tbody`,{...e})}function ea(e){let{components:t}=Bi();return I.createElement(t.Dropdown,{...e})}var ta=e({Button:()=>Ti,CaptionLabel:()=>Ei,Chevron:()=>Di,Day:()=>Oi,DayButton:()=>ki,Dropdown:()=>Mi,DropdownNav:()=>Ni,Footer:()=>Pi,Month:()=>Fi,MonthCaption:()=>Ii,MonthGrid:()=>Li,Months:()=>Ri,MonthsDropdown:()=>Vi,Nav:()=>Hi,NextMonthButton:()=>Ui,Option:()=>Wi,PreviousMonthButton:()=>Gi,Root:()=>Ki,Select:()=>qi,Week:()=>Ji,WeekNumber:()=>Zi,WeekNumberHeader:()=>Qi,Weekday:()=>Yi,Weekdays:()=>Xi,Weeks:()=>$i,YearsDropdown:()=>ea});function na(e,t,n=!1,r=xi){let{from:i,to:a}=e,{differenceInCalendarDays:o,isSameDay:s}=r;return i&&a?(o(a,i)<0&&([i,a]=[a,i]),o(t,i)>=+!!n&&o(a,t)>=+!!n):!n&&a?s(a,t):!n&&i?s(i,t):!1}function ra(e){return!!(e&&typeof e==`object`&&`before`in e&&`after`in e)}function ia(e){return!!(e&&typeof e==`object`&&`from`in e)}function aa(e){return!!(e&&typeof e==`object`&&`after`in e)}function oa(e){return!!(e&&typeof e==`object`&&`before`in e)}function sa(e){return!!(e&&typeof e==`object`&&`dayOfWeek`in e)}function ca(e,t){return Array.isArray(e)&&e.every(t.isDate)}function la(e,t,n=xi){let r=Array.isArray(t)?t:[t],{isSameDay:i,differenceInCalendarDays:a,isAfter:o}=n;return r.some(t=>{if(typeof t==`boolean`)return t;if(n.isDate(t))return i(e,t);if(ca(t,n))return t.some(t=>i(e,t));if(ia(t))return na(t,e,!1,n);if(sa(t))return Array.isArray(t.dayOfWeek)?t.dayOfWeek.includes(e.getDay()):t.dayOfWeek===e.getDay();if(ra(t)){let n=a(t.before,e),r=a(t.after,e),i=n>0,s=r<0;return o(t.before,t.after)?s&&i:i||s}return aa(t)?a(e,t.after)>0:oa(t)?a(t.before,e)>0:typeof t==`function`?t(e):!1})}function ua(e,t,n,r,i){let{disabled:a,hidden:o,modifiers:s,showOutsideDays:c,broadcastCalendar:l,today:u=i.today()}=t,{isSameDay:d,isSameMonth:f,startOfMonth:p,isBefore:m,endOfMonth:h,isAfter:g}=i,_=n&&p(n),v=r&&h(r),y={[R.focused]:[],[R.outside]:[],[R.disabled]:[],[R.hidden]:[],[R.today]:[]},b={};for(let t of e){let{date:e,displayMonth:n}=t,r=!!(n&&!f(e,n)),p=!!(_&&m(e,_)),h=!!(v&&g(e,v)),x=!!(a&&la(e,a,i)),S=!!(o&&la(e,o,i))||p||h||!l&&!c&&r||l&&c===!1&&r,C=d(e,u);r&&y.outside.push(t),x&&y.disabled.push(t),S&&y.hidden.push(t),C&&y.today.push(t),s&&Object.keys(s).forEach(n=>{let r=s?.[n];r&&la(e,r,i)&&(b[n]?b[n].push(t):b[n]=[t])})}return e=>{let t={[R.focused]:!1,[R.disabled]:!1,[R.hidden]:!1,[R.outside]:!1,[R.today]:!1},n={};for(let n in y)t[n]=y[n].some(t=>t===e);for(let t in b)n[t]=b[t].some(t=>t===e);return{...t,...n}}}function da(e,t,n={}){return Object.entries(e).filter(([,e])=>e===!0).reduce((e,[r])=>(n[r]?e.push(n[r]):t[R[r]]?e.push(t[R[r]]):t[Ai[r]]&&e.push(t[Ai[r]]),e),[t[L.Day]])}function fa(e){return{...ta,...e}}function pa(e){let t={"data-mode":e.mode??void 0,"data-required":`required`in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([e,n])=>{e.startsWith(`data-`)&&(t[e]=n)}),t}function ma(){let e={};for(let t in L)e[L[t]]=`rdp-${L[t]}`;for(let t in R)e[R[t]]=`rdp-${R[t]}`;for(let t in Ai)e[Ai[t]]=`rdp-${Ai[t]}`;for(let t in ji)e[ji[t]]=`rdp-${ji[t]}`;return e}function ha(e,t,n){return(n??new bi(t)).formatMonthYear(e)}var ga=ha;function _a(e,t,n){return(n??new bi(t)).format(e,`d`)}function va(e,t=xi){return t.format(e,`LLLL`)}function ya(e,t,n){return(n??new bi(t)).format(e,`cccccc`)}function ba(e,t=xi){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function xa(){return``}function Sa(e,t=xi){return t.format(e,`yyyy`)}var Ca=Sa,wa=e({formatCaption:()=>ha,formatDay:()=>_a,formatMonthCaption:()=>ga,formatMonthDropdown:()=>va,formatWeekNumber:()=>ba,formatWeekNumberHeader:()=>xa,formatWeekdayName:()=>ya,formatYearCaption:()=>Ca,formatYearDropdown:()=>Sa});function Ta(e){return e?.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e?.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...wa,...e}}function Ea(e,t,n,r){let i=(r??new bi(n)).format(e,`PPPP`);return t.today&&(i=`Today, ${i}`),t.selected&&(i=`${i}, selected`),i}var Da=Ea;function Oa(e,t,n){return(n??new bi(t)).formatMonthYear(e)}var ka=Oa;function Aa(e,t,n,r){let i=(r??new bi(n)).format(e,`PPPP`);return t?.today&&(i=`Today, ${i}`),i}function ja(e){return`Choose the Month`}function Ma(){return``}var Na=`Go to the Next Month`;function Pa(e,t){return Na}function Fa(e){return`Go to the Previous Month`}function Ia(e,t,n){return(n??new bi(t)).format(e,`cccc`)}function La(e,t){return`Week ${e}`}function Ra(e){return`Week Number`}function za(e){return`Choose the Year`}var Ba=e({labelCaption:()=>ka,labelDay:()=>Da,labelDayButton:()=>Ea,labelGrid:()=>Oa,labelGridcell:()=>Aa,labelMonthDropdown:()=>ja,labelNav:()=>Ma,labelNext:()=>Pa,labelPrevious:()=>Fa,labelWeekNumber:()=>La,labelWeekNumberHeader:()=>Ra,labelWeekday:()=>Ia,labelYearDropdown:()=>za}),Va=(e,t,n)=>t||(n?typeof n==`function`?n:(...e)=>n:e);function Ha(e,t){let n=t.locale?.labels??{};return{...Ba,...e??{},labelDayButton:Va(Ea,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:Va(ja,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:Va(Pa,e?.labelNext,n.labelNext),labelPrevious:Va(Fa,e?.labelPrevious,n.labelPrevious),labelWeekNumber:Va(La,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:Va(za,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:Va(Oa,e?.labelGrid,n.labelGrid),labelGridcell:Va(Aa,e?.labelGridcell,n.labelGridcell),labelNav:Va(Ma,e?.labelNav,n.labelNav),labelWeekNumberHeader:Va(Ra,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:Va(Ia,e?.labelWeekday,n.labelWeekday)}}function Ua(e,t,n,r,i){let{startOfMonth:a,startOfYear:o,endOfYear:s,eachMonthOfInterval:c,getMonth:l}=i;return c({start:o(e),end:s(e)}).map(e=>{let o=r.formatMonthDropdown(e,i);return{value:l(e),label:o,disabled:t&&ea(n)||!1}})}function Wa(e,t={},n={}){let r={...t?.[L.Day]};return Object.entries(e).filter(([,e])=>e===!0).forEach(([e])=>{r={...r,...n?.[e]}}),r}function Ga(e,t,n,r){let i=r??e.today(),a=n?e.startOfBroadcastWeek(i,e):t?e.startOfISOWeek(i):e.startOfWeek(i),o=[];for(let t=0;t<7;t++){let n=e.addDays(a,t);o.push(n)}return o}function Ka(e,t,n,r,i=!1){if(!e||!t)return;let{startOfYear:a,endOfYear:o,eachYearOfInterval:s,getYear:c}=r,l=s({start:a(e),end:o(t)});return i&&l.reverse(),l.map(e=>{let t=n.formatYearDropdown(e,r);return{value:c(e),label:t,disabled:!1}})}function qa(e,t={}){let{weekStartsOn:n,locale:r}=t,i=n??r?.options?.weekStartsOn??0,a=t=>{let n=typeof t==`number`||typeof t==`string`?new Date(t):t;return new pi(n.getFullYear(),n.getMonth(),n.getDate(),12,0,0,e)},o=e=>{let t=a(e);return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)};return{today:()=>a(pi.tz(e)),newDate:(t,n,r)=>new pi(t,n,r,12,0,0,e),startOfDay:e=>a(e),startOfWeek:(e,t)=>{let n=a(e),r=t?.weekStartsOn??i,o=(n.getDay()-r+7)%7;return n.setDate(n.getDate()-o),n},startOfISOWeek:e=>{let t=a(e),n=(t.getDay()-1+7)%7;return t.setDate(t.getDate()-n),t},startOfMonth:e=>{let t=a(e);return t.setDate(1),t},startOfYear:e=>{let t=a(e);return t.setMonth(0,1),t},endOfWeek:(e,t)=>{let n=a(e),r=(((t?.weekStartsOn??i)+6)%7-n.getDay()+7)%7;return n.setDate(n.getDate()+r),n},endOfISOWeek:e=>{let t=a(e),n=(7-t.getDay())%7;return t.setDate(t.getDate()+n),t},endOfMonth:e=>{let t=a(e);return t.setMonth(t.getMonth()+1,0),t},endOfYear:e=>{let t=a(e);return t.setMonth(11,31),t},eachMonthOfInterval:t=>{let n=a(t.start),r=a(t.end),i=[],o=new pi(n.getFullYear(),n.getMonth(),1,12,0,0,e),s=r.getFullYear()*12+r.getMonth();for(;o.getFullYear()*12+o.getMonth()<=s;)i.push(new pi(o,e)),o.setMonth(o.getMonth()+1,1);return i},addDays:(e,t)=>{let n=a(e);return n.setDate(n.getDate()+t),n},addWeeks:(e,t)=>{let n=a(e);return n.setDate(n.getDate()+t*7),n},addMonths:(e,t)=>{let n=a(e);return n.setMonth(n.getMonth()+t),n},addYears:(e,t)=>{let n=a(e);return n.setFullYear(n.getFullYear()+t),n},eachYearOfInterval:t=>{let n=a(t.start),r=a(t.end),i=[],o=new pi(n.getFullYear(),0,1,12,0,0,e);for(;o.getFullYear()<=r.getFullYear();)i.push(new pi(o,e)),o.setFullYear(o.getFullYear()+1,0,1);return i},getWeek:(e,t)=>gr(o(e),{weekStartsOn:t?.weekStartsOn??i,firstWeekContainsDate:t?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1}),getISOWeek:e=>pr(o(e)),differenceInCalendarDays:(e,t)=>Pn(o(e),o(t)),differenceInCalendarMonths:(e,t)=>Un(o(e),o(t))}}var Ja=e=>e instanceof HTMLElement?e:null,Ya=e=>[...e.querySelectorAll(`[data-animated-month]`)??[]],Xa=e=>Ja(e.querySelector(`[data-animated-month]`)),Za=e=>Ja(e.querySelector(`[data-animated-caption]`)),Qa=e=>Ja(e.querySelector(`[data-animated-weeks]`)),$a=e=>Ja(e.querySelector(`[data-animated-nav]`)),eo=e=>Ja(e.querySelector(`[data-animated-weekdays]`));function to(e,t,{classNames:n,months:r,focused:i,dateLib:a}){let o=(0,I.useRef)(null),s=(0,I.useRef)(r),c=(0,I.useRef)(!1);(0,I.useLayoutEffect)(()=>{let l=s.current;if(s.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||l.length===0||r.length!==l.length)return;let u=a.isSameMonth(r[0].date,l[0].date),d=a.isAfter(r[0].date,l[0].date),f=d?n[ji.caption_after_enter]:n[ji.caption_before_enter],p=d?n[ji.weeks_after_enter]:n[ji.weeks_before_enter],m=o.current,h=e.current.cloneNode(!0);if(h instanceof HTMLElement?(Ya(h).forEach(e=>{if(!(e instanceof HTMLElement))return;let t=Xa(e);t&&e.contains(t)&&e.removeChild(t);let n=Za(e);n&&n.classList.remove(f);let r=Qa(e);r&&r.classList.remove(p)}),o.current=h):o.current=null,c.current||u||i)return;let g=m instanceof HTMLElement?Ya(m):[],_=Ya(e.current);if(_?.every(e=>e instanceof HTMLElement)&&g&&g.every(e=>e instanceof HTMLElement)){c.current=!0;let t=[];e.current.style.isolation=`isolate`;let r=$a(e.current);r&&(r.style.zIndex=`1`),_.forEach((i,a)=>{let o=g[a];if(!o)return;i.style.position=`relative`,i.style.overflow=`hidden`;let s=Za(i);s&&s.classList.add(f);let l=Qa(i);l&&l.classList.add(p);let u=()=>{c.current=!1,e.current&&(e.current.style.isolation=``),r&&(r.style.zIndex=``),s&&s.classList.remove(f),l&&l.classList.remove(p),i.style.position=``,i.style.overflow=``,i.contains(o)&&i.removeChild(o)};t.push(u),o.style.pointerEvents=`none`,o.style.position=`absolute`,o.style.overflow=`hidden`,o.setAttribute(`aria-hidden`,`true`);let m=eo(o);m&&(m.style.opacity=`0`);let h=Za(o);h&&(h.classList.add(d?n[ji.caption_before_exit]:n[ji.caption_after_exit]),h.addEventListener(`animationend`,u));let _=Qa(o);_&&_.classList.add(d?n[ji.weeks_before_exit]:n[ji.weeks_after_exit]),i.insertBefore(o,i.firstChild)})}})}function no(e,t,n,r){let i=e[0],a=e[e.length-1],{ISOWeek:o,fixedWeeks:s,broadcastCalendar:c}=n??{},{addDays:l,differenceInCalendarDays:u,differenceInCalendarMonths:d,endOfBroadcastWeek:f,endOfISOWeek:p,endOfMonth:m,endOfWeek:h,isAfter:g,startOfBroadcastWeek:_,startOfISOWeek:v,startOfWeek:y}=r,b=c?_(i,r):o?v(i):y(i),x=c?f(a):o?p(m(a)):h(m(a)),S=t&&(c?f(t):o?p(t):h(t)),C=u(S&&g(x,S)?S:x,b),w=d(a,i)+1,T=[];for(let e=0;e<=C;e++){let t=l(b,e);T.push(t)}let E=(c?35:42)*w;if(s&&T.length{let r=n.weeks.reduce((e,t)=>e.concat(t.days.slice()),t.slice());return e.concat(r.slice())},t.slice())}function io(e,t,n,r){let{numberOfMonths:i=1}=n,a=[];for(let n=0;nt)break;a.push(i)}return a}function ao(e,t,n,r){let{month:i,defaultMonth:a,today:o=r.today(),numberOfMonths:s=1}=e,c=i||a||o,{differenceInCalendarMonths:l,addMonths:u,startOfMonth:d}=r;return n&&l(n,c){let h=n.broadcastCalendar?d(m,r):n.ISOWeek?f(m):p(m),g=n.broadcastCalendar?a(m):n.ISOWeek?o(s(m)):c(s(m)),_=t.filter(e=>e>=h&&e<=g),v=n.broadcastCalendar?35:42;if(n.fixedWeeks&&_.length{let t=v-_.length;return e>g&&e<=i(g,t)});_.push(...e)}let y=new Ci(m,_.reduce((e,t)=>{let i=n.ISOWeek?l(t):u(t),a=e.find(e=>e.weekNumber===i),o=new Si(t,m,r);return a?a.days.push(o):e.push(new wi(i,[o])),e},[]));return e.push(y),e},[]);return n.reverseMonths?m.reverse():m}function so(e,t){let{startMonth:n,endMonth:r}=e,{startOfYear:i,startOfDay:a,startOfMonth:o,endOfMonth:s,addYears:c,endOfYear:l,newDate:u,today:d}=t,{fromYear:f,toYear:p,fromMonth:m,toMonth:h}=e;!n&&m&&(n=m),!n&&f&&(n=t.newDate(f,0,1)),!r&&h&&(r=h),!r&&p&&(r=u(p,11,31));let g=e.captionLayout===`dropdown`||e.captionLayout===`dropdown-years`;return n?n=o(n):f?n=u(f,0,1):!n&&g&&(n=i(c(e.today??d(),-100))),r?r=s(r):p?r=u(p,11,31):!r&&g&&(r=l(e.today??d())),[n&&a(n),r&&a(r)]}function co(e,t,n,r){if(n.disableNavigation)return;let{pagedNavigation:i,numberOfMonths:a=1}=n,{startOfMonth:o,addMonths:s,differenceInCalendarMonths:c}=r,l=i?a:1,u=o(e);if(!t||!(c(t,e)e.concat(t.weeks.slice()),[].slice())}function fo(e,t){let[n,r]=(0,I.useState)(e);return[t===void 0?n:t,r]}function po(e,t){let[n,r]=so(e,t),{startOfMonth:i,endOfMonth:a}=t,o=ao(e,n,r,t),[s,c]=fo(o,e.month?o:void 0);(0,I.useEffect)(()=>{c(ao(e,n,r,t))},[e.timeZone]);let{months:l,weeks:u,days:d,previousMonth:f,nextMonth:p}=(0,I.useMemo)(()=>{let i=io(s,r,{numberOfMonths:e.numberOfMonths},t),o=oo(i,no(i,e.endMonth?a(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t);return{months:o,weeks:uo(o),days:ro(o),previousMonth:lo(s,n,e,t),nextMonth:co(s,r,e,t)}},[t,s.getTime(),r?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:m,onMonthChange:h}=e,g=e=>u.some(t=>t.days.some(t=>t.isEqualTo(e))),_=e=>{if(m)return;let t=i(e);n&&ti(r)&&(t=i(r)),c(t),h?.(t)};return{months:l,weeks:u,days:d,navStart:n,navEnd:r,previousMonth:f,nextMonth:p,goToMonth:_,goToDay:e=>{g(e)||_(e.date)}}}var mo;(function(e){e[e.Today=0]=`Today`,e[e.Selected=1]=`Selected`,e[e.LastFocused=2]=`LastFocused`,e[e.FocusedModifier=3]=`FocusedModifier`})(mo||={});function ho(e){return!e[R.disabled]&&!e[R.hidden]&&!e[R.outside]}function go(e,t,n,r){let i,a=-1;for(let o of e){let e=t(o);ho(e)&&(e[R.focused]&&aho(t(e))),i}function _o(e,t,n,r,i,a,o){let{ISOWeek:s,broadcastCalendar:c}=a,{addDays:l,addMonths:u,addWeeks:d,addYears:f,endOfBroadcastWeek:p,endOfISOWeek:m,endOfWeek:h,max:g,min:_,startOfBroadcastWeek:v,startOfISOWeek:y,startOfWeek:b}=o,x={day:l,week:d,month:u,year:f,startOfWeek:e=>c?v(e,o):s?y(e):b(e),endOfWeek:e=>c?p(e):s?m(e):h(e)}[e](n,t===`after`?1:-1);return t===`before`&&r?x=g([r,x]):t===`after`&&i&&(x=_([i,x])),x}function vo(e,t,n,r,i,a,o,s=0){if(s>365)return;let c=_o(e,t,n.date,r,i,a,o),l=!!(a.disabled&&la(c,a.disabled,o)),u=!!(a.hidden&&la(c,a.hidden,o)),d=new Si(c,c,o);return!l&&!u?d:vo(e,t,d,r,i,a,o,s+1)}function yo(e,t,n,r,i){let{autoFocus:a}=e,[o,s]=(0,I.useState)(),c=go(t.days,n,r||(()=>!1),o),[l,u]=(0,I.useState)(a?c:void 0);return{isFocusTarget:e=>!!c?.isEqualTo(e),setFocused:u,focused:l,blur:()=>{s(l),u(void 0)},moveFocus:(n,r)=>{if(!l)return;let a=vo(n,r,l,t.navStart,t.navEnd,e,i);a&&(e.disableNavigation&&!t.days.some(e=>e.isEqualTo(a))||(t.goToDay(a),u(a)))}}}function bo(e,t){let{selected:n,required:r,onSelect:i}=e,[a,o]=fo(n,i?n:void 0),s=i?n:a,{isSameDay:c}=t,l=e=>s?.some(t=>c(t,e))??!1,{min:u,max:d}=e;return{selected:s,select:(e,t,n)=>{let a=[...s??[]];if(l(e)){if(s?.length===u||r&&s?.length===1)return;a=s?.filter(t=>!c(t,e))}else a=s?.length===d?[e]:[...a,e];return i||o(a),i?.(a,e,t,n),a},isSelected:l}}function xo(e,t,n=0,r=0,i=!1,a=xi){let{from:o,to:s}=t||{},{isSameDay:c,isAfter:l,isBefore:u}=a,d;if(!o&&!s)d={from:e,to:n>0?void 0:e};else if(o&&!s)d=c(o,e)?n===0?{from:o,to:e}:i?{from:o,to:void 0}:void 0:u(e,o)?{from:e,to:o}:{from:o,to:e};else if(o&&s)if(c(o,e)&&c(s,e))d=i?{from:o,to:s}:void 0;else if(c(o,e))d={from:o,to:n>0?void 0:e};else if(c(s,e))d={from:e,to:n>0?void 0:e};else if(u(e,o))d={from:e,to:s};else if(l(e,o))d={from:o,to:e};else if(l(e,s))d={from:o,to:e};else throw Error(`Invalid range`);if(d?.from&&d?.to){let t=a.differenceInCalendarDays(d.to,d.from);(r>0&&t>r||n>1&&ttypeof e!=`function`).some(t=>typeof t==`boolean`?t:n.isDate(t)?na(e,t,!1,n):ca(t,n)?t.some(t=>na(e,t,!1,n)):ia(t)?t.from&&t.to?Co(e,{from:t.from,to:t.to},n):!1:sa(t)?So(e,t.dayOfWeek,n):ra(t)?n.isAfter(t.before,t.after)?Co(e,{from:n.addDays(t.after,1),to:n.addDays(t.before,-1)},n):la(e.from,t,n)||la(e.to,t,n):aa(t)||oa(t)?la(e.from,t,n)||la(e.to,t,n):!1))return!0;let i=r.filter(e=>typeof e==`function`);if(i.length){let t=e.from,r=n.differenceInCalendarDays(e.to,e.from);for(let e=0;e<=r;e++){if(i.some(e=>e(t)))return!0;t=n.addDays(t,1)}}return!1}function To(e,t){let{disabled:n,excludeDisabled:r,resetOnSelect:i,selected:a,required:o,onSelect:s}=e,[c,l]=fo(a,s?a:void 0),u=s?a:c;return{selected:u,select:(a,c,d)=>{let{min:f,max:p}=e,m;if(a){let e=u?.from,n=u?.to,r=!!e&&!!n,s=!!e&&!!n&&t.isSameDay(e,n)&&t.isSameDay(a,e);m=i&&(r||!u?.from)?!o&&s?void 0:{from:a,to:void 0}:xo(a,u,f,p,o,t)}return r&&n&&m?.from&&m.to&&wo({from:m.from,to:m.to},n,t)&&(m.from=a,m.to=void 0),s||l(m),s?.(m,a,c,d),m},isSelected:e=>u&&na(u,e,!1,t)}}function Eo(e,t){let{selected:n,required:r,onSelect:i}=e,[a,o]=fo(n,i?n:void 0),s=i?n:a,{isSameDay:c}=t;return{selected:s,select:(e,t,n)=>{let a=e;return!r&&s&&s&&c(e,s)&&(a=void 0),i||o(a),i?.(a,e,t,n),a},isSelected:e=>s?c(s,e):!1}}function Do(e,t){let n=Eo(e,t),r=bo(e,t),i=To(e,t);switch(e.mode){case`single`:return n;case`multiple`:return r;case`range`:return i;default:return}}function Oo(e,t){return e instanceof pi&&e.timeZone===t?e:new pi(e,t)}function ko(e,t,n){if(!n)return Oo(e,t);let r=Oo(e,t),i=new pi(r.getFullYear(),r.getMonth(),r.getDate(),12,0,0,t);return new Date(i.getTime())}function Ao(e,t,n){return typeof e==`boolean`||typeof e==`function`?e:e instanceof Date?ko(e,t,n):Array.isArray(e)?e.map(e=>e instanceof Date?ko(e,t,n):e):ia(e)?{...e,from:e.from?Oo(e.from,t):e.from,to:e.to?Oo(e.to,t):e.to}:ra(e)?{before:ko(e.before,t,n),after:ko(e.after,t,n)}:aa(e)?{after:ko(e.after,t,n)}:oa(e)?{before:ko(e.before,t,n)}:e}function jo(e,t,n){return e&&(Array.isArray(e)?e.map(e=>Ao(e,t,n)):Ao(e,t,n))}function Mo(e){let t=e,n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&=Oo(t.today,n),t.month&&=Oo(t.month,n),t.defaultMonth&&=Oo(t.defaultMonth,n),t.startMonth&&=Oo(t.startMonth,n),t.endMonth&&=Oo(t.endMonth,n),t.mode===`single`&&t.selected?t.selected=Oo(t.selected,n):t.mode===`multiple`&&t.selected?t.selected=t.selected?.map(e=>Oo(e,n)):t.mode===`range`&&t.selected&&(t.selected={from:t.selected.from?Oo(t.selected.from,n):t.selected.from,to:t.selected.to?Oo(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=jo(t.disabled,n)),t.hidden!==void 0&&(t.hidden=jo(t.hidden,n)),t.modifiers)){let e={};Object.keys(t.modifiers).forEach(r=>{e[r]=jo(t.modifiers?.[r],n)}),t.modifiers=e}let{components:r,formatters:i,labels:a,dateLib:o,locale:s,classNames:c}=(0,I.useMemo)(()=>{let e={...yi,...t.locale},n=t.broadcastCalendar?1:t.weekStartsOn,r=t.noonSafe&&t.timeZone?qa(t.timeZone,{weekStartsOn:n,locale:e}):void 0,i=t.dateLib&&r?{...r,...t.dateLib}:t.dateLib??r,a=new bi({locale:e,weekStartsOn:n,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},i);return{dateLib:a,components:fa(t.components),formatters:Ta(t.formatters),labels:Ha(t.labels,a.options),locale:e,classNames:{...ma(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:o.today()});let{captionLayout:l,mode:u,navLayout:d,numberOfMonths:f=1,onDayBlur:p,onDayClick:m,onDayFocus:h,onDayKeyDown:g,onDayMouseEnter:_,onDayMouseLeave:v,onNextClick:y,onPrevClick:b,showWeekNumber:x,styles:S}=t,{formatCaption:C,formatDay:w,formatMonthDropdown:T,formatWeekNumber:E,formatWeekNumberHeader:D,formatWeekdayName:O,formatYearDropdown:k}=i,ee=po(t,o),{days:te,months:A,navStart:j,navEnd:ne,previousMonth:re,nextMonth:ie,goToMonth:ae}=ee,oe=ua(te,t,j,ne,o),{isSelected:se,select:ce,selected:le}=Do(t,o)??{},{blur:ue,focused:de,isFocusTarget:fe,moveFocus:pe,setFocused:me}=yo(t,ee,oe,se??(()=>!1),o),{labelDayButton:he,labelGridcell:ge,labelGrid:_e,labelMonthDropdown:ve,labelNav:ye,labelPrevious:be,labelNext:xe,labelWeekday:Se,labelWeekNumber:Ce,labelWeekNumberHeader:we,labelYearDropdown:Te}=a,Ee=(0,I.useMemo)(()=>Ga(o,t.ISOWeek,t.broadcastCalendar,t.today),[o,t.ISOWeek,t.broadcastCalendar,t.today]),De=u!==void 0||m!==void 0,Oe=(0,I.useCallback)(()=>{re&&(ae(re),b?.(re))},[re,ae,b]),ke=(0,I.useCallback)(()=>{ie&&(ae(ie),y?.(ie))},[ae,ie,y]),Ae=(0,I.useCallback)((e,t)=>n=>{n.preventDefault(),n.stopPropagation(),me(e),!t.disabled&&(ce?.(e.date,t,n),m?.(e.date,t,n))},[ce,m,me]),je=(0,I.useCallback)((e,t)=>n=>{me(e),h?.(e.date,t,n)},[h,me]),Me=(0,I.useCallback)((e,t)=>n=>{ue(),p?.(e.date,t,n)},[ue,p]),Ne=(0,I.useCallback)((e,n)=>r=>{let i={ArrowLeft:[r.shiftKey?`month`:`day`,t.dir===`rtl`?`after`:`before`],ArrowRight:[r.shiftKey?`month`:`day`,t.dir===`rtl`?`before`:`after`],ArrowDown:[r.shiftKey?`year`:`week`,`after`],ArrowUp:[r.shiftKey?`year`:`week`,`before`],PageUp:[r.shiftKey?`year`:`month`,`before`],PageDown:[r.shiftKey?`year`:`month`,`after`],Home:[`startOfWeek`,`before`],End:[`endOfWeek`,`after`]};if(i[r.key]){r.preventDefault(),r.stopPropagation();let[e,t]=i[r.key];pe(e,t)}g?.(e.date,n,r)},[pe,g,t.dir]),Pe=(0,I.useCallback)((e,t)=>n=>{_?.(e.date,t,n)},[_]),Fe=(0,I.useCallback)((e,t)=>n=>{v?.(e.date,t,n)},[v]),Ie=(0,I.useCallback)(e=>t=>{let n=Number(t.target.value);ae(o.setMonth(o.startOfMonth(e),n))},[o,ae]),Le=(0,I.useCallback)(e=>t=>{let n=Number(t.target.value);ae(o.setYear(o.startOfMonth(e),n))},[o,ae]),{className:Re,style:ze}=(0,I.useMemo)(()=>({className:[c[L.Root],t.className].filter(Boolean).join(` `),style:{...S?.[L.Root],...t.style}}),[c,t.className,t.style,S]),Be=pa(t),Ve=(0,I.useRef)(null);to(Ve,!!t.animate,{classNames:c,months:A,focused:de,dateLib:o});let He={dayPickerProps:t,selected:le,select:ce,isSelected:se,months:A,nextMonth:ie,previousMonth:re,goToMonth:ae,getModifiers:oe,components:r,classNames:c,styles:S,labels:a,formatters:i};return I.createElement(zi.Provider,{value:He},I.createElement(r.Root,{rootRef:t.animate?Ve:void 0,className:Re,style:ze,dir:t.dir,id:t.id,lang:t.lang??s.code,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t[`aria-label`],"aria-labelledby":t[`aria-labelledby`],...Be},I.createElement(r.Months,{className:c[L.Months],style:S?.[L.Months]},!t.hideNavigation&&!d&&I.createElement(r.Nav,{"data-animated-nav":t.animate?`true`:void 0,className:c[L.Nav],style:S?.[L.Nav],"aria-label":ye(),onPreviousClick:Oe,onNextClick:ke,previousMonth:re,nextMonth:ie}),A.map((e,n)=>I.createElement(r.Month,{"data-animated-month":t.animate?`true`:void 0,className:c[L.Month],style:S?.[L.Month],key:n,displayIndex:n,calendarMonth:e},d===`around`&&!t.hideNavigation&&n===0&&I.createElement(r.PreviousMonthButton,{type:`button`,className:c[L.PreviousMonthButton],tabIndex:re?void 0:-1,"aria-disabled":re?void 0:!0,"aria-label":be(re),onClick:Oe,"data-animated-button":t.animate?`true`:void 0},I.createElement(r.Chevron,{disabled:re?void 0:!0,className:c[L.Chevron],orientation:t.dir===`rtl`?`right`:`left`})),I.createElement(r.MonthCaption,{"data-animated-caption":t.animate?`true`:void 0,className:c[L.MonthCaption],style:S?.[L.MonthCaption],calendarMonth:e,displayIndex:n},l?.startsWith(`dropdown`)?I.createElement(r.DropdownNav,{className:c[L.Dropdowns],style:S?.[L.Dropdowns]},(()=>{let n=l===`dropdown`||l===`dropdown-months`?I.createElement(r.MonthsDropdown,{key:`month`,className:c[L.MonthsDropdown],"aria-label":ve(),classNames:c,components:r,disabled:!!t.disableNavigation,onChange:Ie(e.date),options:Ua(e.date,j,ne,i,o),style:S?.[L.Dropdown],value:o.getMonth(e.date)}):I.createElement(`span`,{key:`month`},T(e.date,o)),a=l===`dropdown`||l===`dropdown-years`?I.createElement(r.YearsDropdown,{key:`year`,className:c[L.YearsDropdown],"aria-label":Te(o.options),classNames:c,components:r,disabled:!!t.disableNavigation,onChange:Le(e.date),options:Ka(j,ne,i,o,!!t.reverseYears),style:S?.[L.Dropdown],value:o.getYear(e.date)}):I.createElement(`span`,{key:`year`},k(e.date,o));return o.getMonthYearOrder()===`year-first`?[a,n]:[n,a]})(),I.createElement(`span`,{role:`status`,"aria-live":`polite`,style:{border:0,clip:`rect(0 0 0 0)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`,wordWrap:`normal`}},C(e.date,o.options,o))):I.createElement(r.CaptionLabel,{className:c[L.CaptionLabel],role:`status`,"aria-live":`polite`},C(e.date,o.options,o))),d===`around`&&!t.hideNavigation&&n===f-1&&I.createElement(r.NextMonthButton,{type:`button`,className:c[L.NextMonthButton],tabIndex:ie?void 0:-1,"aria-disabled":ie?void 0:!0,"aria-label":xe(ie),onClick:ke,"data-animated-button":t.animate?`true`:void 0},I.createElement(r.Chevron,{disabled:ie?void 0:!0,className:c[L.Chevron],orientation:t.dir===`rtl`?`left`:`right`})),n===f-1&&d===`after`&&!t.hideNavigation&&I.createElement(r.Nav,{"data-animated-nav":t.animate?`true`:void 0,className:c[L.Nav],style:S?.[L.Nav],"aria-label":ye(),onPreviousClick:Oe,onNextClick:ke,previousMonth:re,nextMonth:ie}),I.createElement(r.MonthGrid,{role:`grid`,"aria-multiselectable":u===`multiple`||u===`range`,"aria-label":_e(e.date,o.options,o)||void 0,className:c[L.MonthGrid],style:S?.[L.MonthGrid]},!t.hideWeekdays&&I.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?`true`:void 0,className:c[L.Weekdays],style:S?.[L.Weekdays]},x&&I.createElement(r.WeekNumberHeader,{"aria-label":we(o.options),className:c[L.WeekNumberHeader],style:S?.[L.WeekNumberHeader],scope:`col`},D()),Ee.map(e=>I.createElement(r.Weekday,{"aria-label":Se(e,o.options,o),className:c[L.Weekday],key:String(e),style:S?.[L.Weekday],scope:`col`},O(e,o.options,o)))),I.createElement(r.Weeks,{"data-animated-weeks":t.animate?`true`:void 0,className:c[L.Weeks],style:S?.[L.Weeks]},e.weeks.map(e=>I.createElement(r.Week,{className:c[L.Week],key:e.weekNumber,style:S?.[L.Week],week:e},x&&I.createElement(r.WeekNumber,{week:e,style:S?.[L.WeekNumber],"aria-label":Ce(e.weekNumber,{locale:s}),className:c[L.WeekNumber],scope:`row`,role:`rowheader`},E(e.weekNumber,o)),e.days.map(e=>{let{date:n}=e,i=oe(e);if(i[R.focused]=!i.hidden&&!!de?.isEqualTo(e),i[Ai.selected]=se?.(n)||i.selected,ia(le)){let{from:e,to:t}=le;i[Ai.range_start]=!!(e&&t&&o.isSameDay(n,e)),i[Ai.range_end]=!!(e&&t&&o.isSameDay(n,t)),i[Ai.range_middle]=na(le,n,!0,o)}let a=Wa(i,S,t.modifiersStyles),s=da(i,c,t.modifiersClassNames),l=!De&&!i.hidden?ge(n,i,o.options,o):void 0;return I.createElement(r.Day,{key:`${e.isoDate}_${e.displayMonthId}`,day:e,modifiers:i,className:s.join(` `),style:a,role:`gridcell`,"aria-selected":i.selected||void 0,"aria-label":l,"data-day":e.isoDate,"data-month":e.outside?e.dateMonthId:void 0,"data-selected":i.selected||void 0,"data-disabled":i.disabled||void 0,"data-hidden":i.hidden||void 0,"data-outside":e.outside||void 0,"data-focused":i.focused||void 0,"data-today":i.today||void 0},!i.hidden&&De?I.createElement(r.DayButton,{className:c[L.DayButton],style:S?.[L.DayButton],type:`button`,day:e,modifiers:i,disabled:!i.focused&&i.disabled||void 0,"aria-disabled":i.focused&&i.disabled||void 0,tabIndex:fe(e)?0:-1,"aria-label":he(n,i,o.options,o),onClick:Ae(e,i),onBlur:Me(e,i),onFocus:je(e,i),onKeyDown:Ne(e,i),onMouseEnter:Pe(e,i),onMouseLeave:Fe(e,i)},w(n,o.options,o)):!i.hidden&&w(e.date,o.options,o))})))))))),t.footer&&I.createElement(r.Footer,{className:c[L.Footer],style:S?.[L.Footer],role:`status`,"aria-live":`polite`},t.footer)))}var z=qe();function No({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:r=`label`,buttonVariant:i=`ghost`,formatters:a,components:o,...s}){let c=ma();return(0,z.jsx)(Mo,{captionLayout:r,className:M(`group/calendar bg-background p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent`,String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),classNames:{root:M(`w-fit`,c.root),months:M(`relative flex flex-col gap-4 md:flex-row`,c.months),month:M(`flex w-full flex-col gap-4`,c.month),nav:M(`absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1`,c.nav),button_previous:M(ft({variant:i}),`size-(--cell-size) select-none p-0 aria-disabled:opacity-50`,c.button_previous),button_next:M(ft({variant:i}),`size-(--cell-size) select-none p-0 aria-disabled:opacity-50`,c.button_next),month_caption:M(`flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)`,c.month_caption),dropdowns:M(`flex h-(--cell-size) w-full items-center justify-center gap-1.5 font-medium text-sm`,c.dropdowns),dropdown_root:M(`relative rounded-md border border-input shadow-xs has-focus:border-ring has-focus:ring-[3px] has-focus:ring-ring/50`,c.dropdown_root),dropdown:M(`absolute inset-0 bg-popover opacity-0`,c.dropdown),caption_label:M(`select-none font-medium`,r===`label`?`text-sm`:`flex h-8 items-center gap-1 rounded-md pr-1 pl-2 text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground`,c.caption_label),table:`w-full border-collapse`,weekdays:M(`flex`,c.weekdays),weekday:M(`flex-1 select-none rounded-md font-normal text-[0.8rem] text-muted-foreground`,c.weekday),week:M(`mt-2 flex w-full`,c.week),week_number_header:M(`w-(--cell-size) select-none`,c.week_number_header),week_number:M(`select-none text-[0.8rem] text-muted-foreground`,c.week_number),day:M(`group/day relative aspect-square h-full w-full select-none p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-md`,s.showWeekNumber?`[&:nth-child(2)[data-selected=true]_button]:rounded-l-md`:`[&:first-child[data-selected=true]_button]:rounded-l-md`,c.day),range_start:M(`rounded-l-md bg-accent`,c.range_start),range_middle:M(`rounded-none`,c.range_middle),range_end:M(`rounded-r-md bg-accent`,c.range_end),today:M(`rounded-md bg-accent text-accent-foreground data-[selected=true]:rounded-none`,c.today),outside:M(`text-muted-foreground aria-selected:text-muted-foreground`,c.outside),disabled:M(`text-muted-foreground opacity-50`,c.disabled),hidden:M(`invisible`,c.hidden),...t},components:{Root:({className:e,rootRef:t,...n})=>(0,z.jsx)(`div`,{className:M(e),"data-slot":`calendar`,ref:t,...n}),Chevron:({className:e,orientation:t,...n})=>t===`left`?(0,z.jsx)(Dt,{className:M(`size-4`,e),...n}):t===`right`?(0,z.jsx)(At,{className:M(`size-4`,e),...n}):(0,z.jsx)(kt,{className:M(`size-4`,e),...n}),DayButton:Po,WeekNumber:({children:e,...t})=>(0,z.jsx)(`td`,{...t,children:(0,z.jsx)(`div`,{className:`flex size-(--cell-size) items-center justify-center text-center`,children:e})}),...o},formatters:{formatMonthDropdown:e=>e.toLocaleString(`default`,{month:`short`}),...a},showOutsideDays:n,...s})}function Po({className:e,day:t,modifiers:n,...r}){let i=ma(),a=I.useRef(null);return I.useEffect(()=>{n.focused&&a.current?.focus()},[n.focused]),(0,z.jsx)(pt,{className:M(`flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-start=true]:rounded-l-md data-[range-end=true]:bg-primary data-[range-middle=true]:bg-accent data-[range-start=true]:bg-primary data-[selected-single=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:text-accent-foreground data-[range-start=true]:text-primary-foreground data-[selected-single=true]:text-primary-foreground group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground [&>span]:text-xs [&>span]:opacity-70`,i.day,e),"data-day":t.date.toLocaleDateString(),"data-range-end":n.range_end,"data-range-middle":n.range_middle,"data-range-start":n.range_start,"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,ref:a,size:`icon`,variant:`ghost`,...r})}function Fo({selected:e,onSelect:t}){let n=D()===`zh-TW`?ti:dr,r=new Date,i=[{label:Pe(),range:{from:r,to:r}},{label:Je(),range:{from:qr(r,1),to:qr(r,1)}},{label:_e(),range:{from:qr(r,6),to:r}},{label:s(),range:{from:qr(r,29),to:r}},{label:T(),range:{from:qn(r),to:r}},{label:ie(),range:{from:qn(Xr(r,1)),to:Wn(Xr(r,1))}}],a;return e?.from&&e?.to?a=`${Rr(e.from,`PP`,{locale:n})} – ${Rr(e.to,`PP`,{locale:n})}`:e?.from&&(a=Rr(e.from,`PP`,{locale:n})),(0,z.jsxs)(gt,{children:[(0,z.jsx)(ht,{asChild:!0,children:(0,z.jsxs)(pt,{className:`w-auto justify-start text-start font-normal data-[empty=true]:text-muted-foreground`,"data-empty":!a,size:`sm`,variant:`outline`,children:[a??(0,z.jsx)(`span`,{children:He()}),(0,z.jsx)(sn,{className:`ms-2 h-4 w-4 opacity-50`})]})}),(0,z.jsxs)(mt,{align:`end`,className:`flex w-auto gap-0 p-0`,children:[(0,z.jsx)(`div`,{className:`flex flex-col gap-1 border-r p-3`,children:i.map(e=>(0,z.jsx)(pt,{className:`justify-start`,onClick:()=>t(e.range),size:`sm`,variant:`ghost`,children:e.label},e.label))}),(0,z.jsx)(No,{captionLayout:`dropdown`,disabled:e=>e>new Date||e{var{children:n,width:r,height:i,viewBox:a,className:o,style:s,title:c,desc:l}=e,u=qo(e,Go),d=a||{width:r,height:i,x:0,y:0},f=N(`recharts-surface`,o);return I.createElement(`svg`,Ko({},Uo(u),{className:f,width:r,height:i,style:s,viewBox:`${d.x} ${d.y} ${d.width} ${d.height}`,ref:t}),I.createElement(`title`,null,c),I.createElement(`desc`,null,l),n)}),Xo=[`children`,`className`];function Zo(){return Zo=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{children:n,className:r}=e,i=Qo(e,Xo),a=N(`recharts-layer`,r);return I.createElement(`g`,Zo({className:a},Uo(i),{ref:t}),n)}),ts=(0,I.createContext)(null),ns=()=>(0,I.useContext)(ts);function B(e){return function(){return e}}var rs=Math.cos,is=Math.sin,as=Math.sqrt,os=Math.PI;os/2;var ss=2*os,cs=Math.PI,ls=2*cs,us=1e-6,ds=ls-us;function fs(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw Error(`invalid digits: ${e}`);if(t>15)return fs;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;tus)if(!(Math.abs(u*s-c*l)>us)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((cs-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>us&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>us||Math.abs(this._y1-l)>us)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%ls+ls),d>ds?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>us&&this._append`A${n},${n},0,${+(d>=cs)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function hs(){return new ms}hs.prototype=ms.prototype;function gs(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new ms(t)}Array.prototype.slice;function _s(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function vs(e){this._context=e}vs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function ys(e){return new vs(e)}function bs(e){return e[0]}function xs(e){return e[1]}function Ss(e,t){var n=B(!0),r=null,i=ys,a=null,o=gs(s);e=typeof e==`function`?e:e===void 0?bs:B(e),t=typeof t==`function`?t:t===void 0?xs:B(t);function s(s){var c,l=(s=_s(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c=d;--f)s.point(_[f],v[f]);s.lineEnd(),s.areaEnd()}h&&(_[u]=+e(m,u,l),v[u]=+t(m,u,l),s.point(r?+r(m,u,l):_[u],n?+n(m,u,l):v[u]))}if(g)return s=null,g+``||null}function u(){return Ss().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:B(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:B(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:B(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:B(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:B(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:B(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i=typeof e==`function`?e:B(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,a!=null&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(e==null?a=s=null:s=o(a=e),l):a},l}var ws=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function Ts(e){return new ws(e,!0)}function Es(e){return new ws(e,!1)}var Ds={draw(e,t){let n=as(t/os);e.moveTo(n,0),e.arc(0,0,n,0,ss)}},Os={draw(e,t){let n=as(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},ks=as(1/3),As=ks*2,js={draw(e,t){let n=as(t/As),r=n*ks;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Ms={draw(e,t){let n=as(t),r=-n/2;e.rect(r,r,n,n)}},Ns=.8908130915292852,Ps=is(os/10)/is(7*os/10),Fs=is(ss/10)*Ps,Is=-rs(ss/10)*Ps,Ls={draw(e,t){let n=as(t*Ns),r=Fs*n,i=Is*n;e.moveTo(0,-n),e.lineTo(r,i);for(let t=1;t<5;++t){let a=ss*t/5,o=rs(a),s=is(a);e.lineTo(s*n,-o*n),e.lineTo(o*r-s*i,s*r+o*i)}e.closePath()}},Rs=as(3),zs={draw(e,t){let n=-as(t/(Rs*3));e.moveTo(0,n*2),e.lineTo(-Rs*n,-n),e.lineTo(Rs*n,-n),e.closePath()}},Bs=-.5,Vs=as(3)/2,Hs=1/as(12),Us=(Hs/2+1)*3,Ws={draw(e,t){let n=as(t/Us),r=n/2,i=n*Hs,a=r,o=n*Hs+n,s=-a,c=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,c),e.lineTo(Bs*r-Vs*i,Vs*r+Bs*i),e.lineTo(Bs*a-Vs*o,Vs*a+Bs*o),e.lineTo(Bs*s-Vs*c,Vs*s+Bs*c),e.lineTo(Bs*r+Vs*i,Bs*i-Vs*r),e.lineTo(Bs*a+Vs*o,Bs*o-Vs*a),e.lineTo(Bs*s+Vs*c,Bs*c-Vs*s),e.closePath()}};function Gs(e,t){let n=null,r=gs(i);e=typeof e==`function`?e:B(e||Ds),t=typeof t==`function`?t:B(t===void 0?64:+t);function i(){let i;if(n||=i=r(),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+``||null}return i.type=function(t){return arguments.length?(e=typeof t==`function`?t:B(t),i):e},i.size=function(e){return arguments.length?(t=typeof e==`function`?e:B(+e),i):t},i.context=function(e){return arguments.length?(n=e??null,i):n},i}function Ks(){}function qs(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Js(e){this._context=e}Js.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:qs(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:qs(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ys(e){return new Js(e)}function Xs(e){this._context=e}Xs.prototype={areaStart:Ks,areaEnd:Ks,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:qs(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Zs(e){return new Xs(e)}function Qs(e){this._context=e}Qs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:qs(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $s(e){return new Qs(e)}function ec(e){this._context=e}ec.prototype={areaStart:Ks,areaEnd:Ks,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function tc(e){return new ec(e)}function nc(e){return e<0?-1:1}function rc(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(nc(a)+nc(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function ic(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function ac(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function oc(e){this._context=e}oc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ac(this,this._t0,ic(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,ac(this,ic(this,n=rc(this,e,t)),n);break;default:ac(this,this._t0,n=rc(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function sc(e){this._context=new cc(e)}(sc.prototype=Object.create(oc.prototype)).point=function(e,t){oc.prototype.point.call(this,t,e)};function cc(e){this._context=e}cc.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function lc(e){return new oc(e)}function uc(e){return new sc(e)}function dc(e){this._context=e}dc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=fc(e),i=fc(t),a=0,o=1;o=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t}};function hc(e){return new mc(e,.5)}function gc(e){return new mc(e,0)}function _c(e){return new mc(e,1)}function vc(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n=0;)n[t]=t;return n}function bc(e,t){return e[t]}function xc(e){let t=[];return t.key=e,t}function Sc(){var e=B([]),t=yc,n=vc,r=bc;function i(i){var a=Array.from(e.apply(this,arguments),xc),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o0){for(var n,r,i=0,a=e[0].length,o;i0){for(var n=0,r=e[t[0]],i,a=r.length;n0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e===`__proto__`}e.isUnsafeProperty=t})),Dc=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e.includes(`.`)||e.includes(`[`)||e.includes(`]`)}}e.isDeepKey=t})),Oc=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}e.toKey=t})),kc=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){if(e==null)return``;if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(t).join(`,`);let n=String(e);return n===`0`&&Object.is(Number(e),-0)?`-0`:n}e.toString=t})),Ac=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=kc(),n=Oc();function r(e){if(Array.isArray(e))return e.map(n.toKey);if(typeof e==`symbol`)return[e];e=t.toString(e);let r=[],i=e.length;if(i===0)return r;let a=0,o=``,s=``,c=!1;for(e.charCodeAt(0)===46&&(r.push(``),a++);a{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Ec(),n=Dc(),r=Oc(),i=Ac();function a(e,s,c){if(e==null)return c;switch(typeof s){case`string`:{if(t.isUnsafeProperty(s))return c;let r=e[s];return r===void 0?n.isDeepKey(s)?a(e,i.toPath(s),c):c:r}case`number`:case`symbol`:{typeof s==`number`&&(s=r.toKey(s));let t=e[s];return t===void 0?c:t}default:{if(Array.isArray(s))return o(e,s,c);if(s=Object.is(s?.valueOf(),-0)?`-0`:String(s),t.isUnsafeProperty(s))return c;let n=e[s];return n===void 0?c:n}}}function o(e,n,r){if(n.length===0)return r;let i=e;for(let e=0;e{t.exports=jc().get})),Nc=4;function Pc(e){var t=10**(arguments.length>1&&arguments[1]!==void 0?arguments[1]:Nc),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function Fc(e){var t=[...arguments].slice(1);return e.reduce((e,n,r)=>{var i=t[r-1];return typeof i==`string`?e+i+n:i===void 0?e+n:e+Pc(i)+n},``)}var Ic=t(Mc()),Lc=e=>e===0?0:e>0?1:-1,Rc=e=>typeof e==`number`&&e!=+e,zc=e=>typeof e==`string`&&e.indexOf(`%`)===e.length-1,V=e=>(typeof e==`number`||e instanceof Number)&&!Rc(e),Bc=e=>V(e)||typeof e==`string`,Vc=0,Hc=e=>{var t=++Vc;return`${e||``}${t}`},Uc=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!V(e)&&typeof e!=`string`)return n;var i;if(zc(e)){if(t==null)return n;var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return Rc(i)&&(i=n),r&&t!=null&&i>t&&(i=t),i},Wc=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;re&&(typeof t==`function`?t(e):(0,Ic.default)(e,t))===n)}var U=e=>e==null,Kc=e=>U(e)?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`;function qc(e){return e!=null}function Jc(){}var Yc=[`type`,`size`,`sizeType`];function Xc(){return Xc=Object.assign?Object.assign.bind():function(e){for(var t=1;til[`symbol${Kc(e)}`]||Ds,sl=(e,t,n)=>{if(t===`area`)return e;switch(n){case`cross`:return 5*e*e/9;case`diamond`:return .5*e*e/Math.sqrt(3);case`square`:return e*e;case`star`:var r=18*al;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2);case`triangle`:return Math.sqrt(3)*e*e/4;case`wye`:return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},cl=(e,t)=>{il[`symbol${Kc(e)}`]=t},ll=e=>{var{type:t=`circle`,size:n=64,sizeType:r=`area`}=e,i=Qc(Qc({},nl(e,Yc)),{},{type:t,size:n,sizeType:r}),a=`circle`;typeof t==`string`&&(a=t);var o=()=>{var e=ol(a),t=Gs().type(e).size(sl(n,r,a))();if(t!==null)return t},{className:s,cx:c,cy:l}=i,u=Uo(i);return V(c)&&V(l)&&V(n)?I.createElement(`path`,Xc({},u,{className:N(`recharts-symbols`,s),transform:`translate(${c}, ${l})`,d:o()})):null};ll.registerSymbol=cl;var ul=e=>`radius`in e&&`startAngle`in e&&`endAngle`in e,dl=(e,t)=>{if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if((0,I.isValidElement)(e)&&(n=e.props),typeof n!=`object`&&typeof n!=`function`)return null;var r={};return Object.keys(n).forEach(e=>{Lo(e)&&typeof n[e]==`function`&&(r[e]=t||(t=>n[e](n,t)))}),r},fl=(e,t,n)=>r=>(e(t,n,r),null),pl=(e,t,n)=>{if(e===null||typeof e!=`object`&&typeof e!=`function`)return null;var r=null;return Object.keys(e).forEach(i=>{var a=e[i];Lo(i)&&typeof a==`function`&&(r||={},r[i]=fl(a,t,n))}),r};function ml(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hl(e){for(var t=1;t(e[t]===void 0&&r[t]!==void 0&&(e[t]=r[t]),e),n)}function bl(){return bl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var d=t.formatter||i,f=N({"recharts-legend-item":!0,[`legend-item-${r}`]:!0,inactive:t.inactive});if(t.type===`none`)return null;var p=typeof s==`object`?Sl({},s):{};p.color=t.inactive?a:p.color||t.color;var m=d?d(t.value,t,r):t.value;return I.createElement(`li`,bl({className:f,style:l,key:`legend-item-${r}`},pl(e,t,r)),I.createElement(Yo,{width:n,height:n,viewBox:c,style:u,"aria-label":`${t.value} legend icon`},I.createElement(kl,{data:t,iconType:o,inactiveColor:a})),I.createElement(`span`,{className:`recharts-legend-item-text`,style:p},m))})}var jl=e=>{var t=yl(e,Dl),{payload:n,layout:r,align:i}=t;if(!n||!n.length)return null;var a={padding:0,margin:0,textAlign:r===`horizontal`?i:`left`};return I.createElement(`ul`,{className:`recharts-default-legend`,style:a},I.createElement(Al,bl({},t,{payload:n})))},Ml=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e,t){let n=new Map;for(let r=0;r{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}e.ary=t})),Pl=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e}e.identity=t})),Fl=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return Number.isSafeInteger(e)&&e>=0}e.isLength=t})),Il=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Fl();function n(e){return e!=null&&typeof e!=`function`&&t.isLength(e.length)}e.isArrayLike=n})),Ll=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return typeof e==`object`&&!!e}e.isObjectLike=t})),Rl=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Il(),n=Ll();function r(e){return n.isObjectLike(e)&&t.isArrayLike(e)}e.isArrayLikeObject=r})),zl=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=jc();function n(e){return function(n){return t.get(n,e)}}e.property=n})),Bl=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}e.isObject=t})),Vl=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e==null||typeof e!=`object`&&typeof e!=`function`}e.isPrimitive=t})),Hl=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}e.isEqualsSameValueZero=t})),Ul=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Bl(),n=Vl(),r=Hl();function i(e,t,n){return typeof n==`function`?a(e,t,function e(t,r,i,o,s,c){let l=n(t,r,i,o,s,c);return l===void 0?a(t,r,e,c):!!l},new Map):i(e,t,()=>void 0)}function a(e,n,i,s){if(n===e)return!0;switch(typeof n){case`object`:return o(e,n,i,s);case`function`:return Object.keys(n).length>0?a(e,{...n},i,s):r.isEqualsSameValueZero(e,n);default:return t.isObject(e)?typeof n==`string`?n===``:!0:r.isEqualsSameValueZero(e,n)}}function o(e,t,r,i){if(t==null)return!0;if(Array.isArray(t))return c(e,t,r,i);if(t instanceof Map)return s(e,t,r,i);if(t instanceof Set)return l(e,t,r,i);let a=Object.keys(t);if(e==null||n.isPrimitive(e))return a.length===0;if(a.length===0)return!0;if(i?.has(t))return i.get(t)===e;i?.set(t,e);try{for(let o=0;o{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Ul();function n(e,n){return t.isMatchWith(e,n,()=>void 0)}e.isMatch=n})),Gl=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}e.getSymbols=t})),Kl=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}e.getTag=t})),ql=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),e.argumentsTag=`[object Arguments]`,e.arrayBufferTag=`[object ArrayBuffer]`,e.arrayTag=`[object Array]`,e.bigInt64ArrayTag=`[object BigInt64Array]`,e.bigUint64ArrayTag=`[object BigUint64Array]`,e.booleanTag=`[object Boolean]`,e.dataViewTag=`[object DataView]`,e.dateTag=`[object Date]`,e.errorTag=`[object Error]`,e.float32ArrayTag=`[object Float32Array]`,e.float64ArrayTag=`[object Float64Array]`,e.functionTag=`[object Function]`,e.int16ArrayTag=`[object Int16Array]`,e.int32ArrayTag=`[object Int32Array]`,e.int8ArrayTag=`[object Int8Array]`,e.mapTag=`[object Map]`,e.numberTag=`[object Number]`,e.objectTag=`[object Object]`,e.regexpTag=`[object RegExp]`,e.setTag=`[object Set]`,e.stringTag=`[object String]`,e.symbolTag=`[object Symbol]`,e.uint16ArrayTag=`[object Uint16Array]`,e.uint32ArrayTag=`[object Uint32Array]`,e.uint8ArrayTag=`[object Uint8Array]`,e.uint8ClampedArrayTag=`[object Uint8ClampedArray]`})),Jl=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}e.isTypedArray=t})),Yl=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Gl(),n=Kl(),r=ql(),i=Vl(),a=Jl();function o(e,t){return s(e,void 0,e,new Map,t)}function s(e,t,n,r=new Map,o=void 0){let u=o?.(e,t,n,r);if(u!==void 0)return u;if(i.isPrimitive(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let i=0;i{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Yl();function n(e){return t.cloneDeepWithImpl(e,void 0,e,new Map,void 0)}e.cloneDeep=n})),Zl=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Wl(),n=Xl();function r(e){return e=n.cloneDeep(e),n=>t.isMatch(n,e)}e.matches=r})),Ql=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Yl(),n=Kl(),r=ql();function i(e,i){return t.cloneDeepWith(e,(a,o,s,c)=>{let l=i?.(a,o,s,c);if(l!==void 0)return l;if(typeof e==`object`){if(n.getTag(e)===r.objectTag&&typeof e.constructor!=`function`){let n={};return c.set(e,n),t.copyProperties(n,e,s,c),n}switch(Object.prototype.toString.call(e)){case r.numberTag:case r.stringTag:case r.booleanTag:{let n=new e.constructor(e?.valueOf());return t.copyProperties(n,e),n}case r.argumentsTag:{let n={};return t.copyProperties(n,e),n.length=e.length,n[Symbol.iterator]=e[Symbol.iterator],n}default:return}}})}e.cloneDeepWith=i})),$l=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Ql();function n(e){return t.cloneDeepWith(e)}e.cloneDeep=n})),eu=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=/^(?:0|[1-9]\d*)$/;function n(e,n=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Kl();function n(e){return typeof e==`object`&&!!e&&t.getTag(e)===`[object Arguments]`}e.isArguments=n})),nu=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Dc(),n=eu(),r=tu(),i=Ac();function a(e,a){let o;if(o=Array.isArray(a)?a:typeof a==`string`&&t.isDeepKey(a)&&e?.[a]==null?i.toPath(a):[a],o.length===0)return!1;let s=e;for(let e=0;e{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Wl(),n=Oc(),r=$l(),i=jc(),a=nu();function o(e,o){switch(typeof e){case`object`:Object.is(e?.valueOf(),-0)&&(e=`-0`);break;case`number`:e=n.toKey(e);break}return o=r.cloneDeep(o),function(n){let r=i.get(n,e);return r===void 0?a.has(n,e):o===void 0?r===void 0:t.isMatch(r,o)}}e.matchesProperty=o})),iu=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Pl(),n=zl(),r=Zl(),i=ru();function a(e){if(e==null)return t.identity;switch(typeof e){case`function`:return e;case`object`:return Array.isArray(e)&&e.length===2?i.matchesProperty(e[0],e[1]):r.matches(e);case`string`:case`symbol`:case`number`:return n.property(e)}}e.iteratee=a})),au=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Ml(),n=Nl(),r=Pl(),i=Rl(),a=iu();function o(e,o=r.identity){return i.isArrayLikeObject(e)?t.uniqBy(Array.from(e),n.ary(a.iteratee(o),1)):[]}e.uniqBy=o})),ou=t(n(((e,t)=>{t.exports=au().uniqBy}))());function su(e,t,n){return t===!0?(0,ou.default)(e,n):typeof t==`function`?(0,ou.default)(e,t):e}var cu=(0,I.createContext)(null),lu=at(),uu=e=>e,W=()=>{var e=(0,I.useContext)(cu);return e?e.store.dispatch:uu},du=()=>{},fu=()=>du,pu=(e,t)=>e===t;function G(e){var t=(0,I.useContext)(cu),n=(0,I.useMemo)(()=>t?t=>{if(t!=null)return e(t)}:du,[t,e]);return(0,lu.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:fu,t?t.store.getState:du,t?t.store.getState:du,n,pu)}function mu(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function hu(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!=`object`)throw TypeError(t)}function gu(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}var _u=e=>Array.isArray(e)?e:[e];function vu(e){let t=Array.isArray(e[0])?e[0]:e;return gu(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function yu(e,t){let n=[],{length:r}=e;for(let i=0;i{n=wu(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function Eu(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),mu(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=Tu,argsMemoizeOptions:u=[],devModeChecks:d={}}={...n,...a},f=_u(c),p=_u(u),m=vu(e),h=s(function(){return t++,o.apply(null,arguments)},...f),g=l(function(){r++;let e=yu(m,arguments);return i=h.apply(null,e),i},...p);return Object.assign(g,{resultFunc:o,memoizedResultFunc:h,dependencies:m,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var K=Eu(Tu),Du=Object.assign((e,t=K)=>{hu(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let n=Object.keys(e);return t(n.map(t=>e[t]),(...e)=>e.reduce((e,t,r)=>(e[n[r]]=t,e),{}))},{withTypes:()=>Du}),Ou=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return typeof e==`symbol`?1:e===null?2:e===void 0?3:e===e?0:4}e.compareValues=(e,n,r)=>{if(e!==n){let i=t(e),a=t(n);if(i===a&&i===0){if(en)return r===`desc`?-1:1}return r===`desc`?a-i:i-a}return 0}})),ku=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return typeof e==`symbol`||e instanceof Symbol}e.isSymbol=t})),Au=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=ku(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(e,i){return Array.isArray(e)?!1:typeof e==`number`||typeof e==`boolean`||e==null||t.isSymbol(e)?!0:typeof e==`string`&&(r.test(e)||!n.test(e))||i!=null&&Object.hasOwn(i,e)}e.isKey=i})),ju=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Ou(),n=Au(),r=Ac();function i(e,i,a,o){if(e==null)return[];a=o?void 0:a,Array.isArray(e)||(e=Object.values(e)),Array.isArray(i)||(i=i==null?[null]:[i]),i.length===0&&(i=[null]),Array.isArray(a)||(a=a==null?[]:[a]),a=a.map(e=>String(e));let s=(e,t)=>{let n=e;for(let e=0;et==null||e==null?t:typeof e==`object`&&`key`in e?Object.hasOwn(t,e.key)?t[e.key]:s(t,e.path):typeof e==`function`?e(t):Array.isArray(e)?s(t,e):typeof t==`object`?t[e]:t,l=i.map(e=>(Array.isArray(e)&&e.length===1&&(e=e[0]),e==null||typeof e==`function`||Array.isArray(e)||n.isKey(e)?e:{key:e,path:r.toPath(e)}));return e.map(e=>({original:e,criteria:l.map(t=>c(t,e))})).slice().sort((e,n)=>{for(let r=0;re.original)}e.orderBy=i})),Mu=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e,t=1){let n=[],r=Math.floor(t),i=(e,t)=>{for(let a=0;a{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=eu(),n=Il(),r=Bl(),i=Hl();function a(e,a,o){return r.isObject(o)&&(typeof a==`number`&&n.isArrayLike(o)&&t.isIndex(a)&&a{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=ju(),n=Mu(),r=Nu();function i(e,...i){let a=i.length;return a>1&&r.isIterateeCall(e,i[0],i[1])?i=[]:a>2&&r.isIterateeCall(i[0],i[1],i[2])&&(i=[i[0]]),t.orderBy(e,n.flatten(i),[`asc`])}e.sortBy=i})),Fu=t(n(((e,t)=>{t.exports=Pu().sortBy}))()),Iu=e=>e.legend.settings,Lu=e=>e.legend.size,Ru=K([e=>e.legend.payload,Iu],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?(0,Fu.default)(r,n):r});function zu(){return G(Ru)}var Bu=1;function Vu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,n]=(0,I.useState)({height:0,left:0,top:0,width:0});return[t,(0,I.useCallback)(e=>{if(e!=null){var r=e.getBoundingClientRect(),i={height:r.height,left:r.left,top:r.top,width:r.width};(Math.abs(i.height-t.height)>Bu||Math.abs(i.left-t.left)>Bu||Math.abs(i.top-t.top)>Bu||Math.abs(i.width-t.width)>Bu)&&n({height:i.height,left:i.left,top:i.top,width:i.width})}},[t.width,t.height,t.top,t.left,...e])]}function Hu(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Uu=typeof Symbol==`function`&&Symbol.observable||`@@observable`,Wu=()=>Math.random().toString(36).substring(7).split(``).join(`.`),Gu={INIT:`@@redux/INIT${Wu()}`,REPLACE:`@@redux/REPLACE${Wu()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Wu()}`};function Ku(e){if(typeof e!=`object`||!e)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function qu(e,t,n){if(typeof e!=`function`)throw Error(Hu(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(Hu(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(Hu(1));return n(qu)(e,t)}let r=e,i=t,a=new Map,o=a,s=0,c=!1;function l(){o===a&&(o=new Map,a.forEach((e,t)=>{o.set(t,e)}))}function u(){if(c)throw Error(Hu(3));return i}function d(e){if(typeof e!=`function`)throw Error(Hu(4));if(c)throw Error(Hu(5));let t=!0;l();let n=s++;return o.set(n,e),function(){if(t){if(c)throw Error(Hu(6));t=!1,l(),o.delete(n),a=null}}}function f(e){if(!Ku(e))throw Error(Hu(7));if(e.type===void 0)throw Error(Hu(8));if(typeof e.type!=`string`)throw Error(Hu(17));if(c)throw Error(Hu(9));try{c=!0,i=r(i,e)}finally{c=!1}return(a=o).forEach(e=>{e()}),e}function p(e){if(typeof e!=`function`)throw Error(Hu(10));r=e,f({type:Gu.REPLACE})}function m(){let e=d;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(Hu(11));function n(){let e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[Uu](){return this}}}return f({type:Gu.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:p,[Uu]:m}}function Ju(e){Object.keys(e).forEach(t=>{let n=e[t];if(n(void 0,{type:Gu.INIT})===void 0)throw Error(Hu(12));if(n(void 0,{type:Gu.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(Hu(13))})}function Yu(e){let t=Object.keys(e),n={};for(let r=0;re:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function Zu(...e){return t=>(n,r)=>{let i=t(n,r),a=()=>{throw Error(Hu(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=Xu(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}function Qu(e){return Ku(e)&&`type`in e&&typeof e.type==`string`}var $u=Symbol.for(`immer-nothing`),ed=Symbol.for(`immer-draftable`),td=Symbol.for(`immer-state`);function nd(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var rd=Object,id=rd.getPrototypeOf,ad=`constructor`,od=`prototype`,sd=`configurable`,cd=`enumerable`,ld=`writable`,ud=`value`,dd=e=>!!e&&!!e[td];function fd(e){return e?hd(e)||Sd(e)||!!e[ed]||!!e[ad]?.[ed]||Cd(e)||wd(e):!1}var pd=rd[od][ad].toString(),md=new WeakMap;function hd(e){if(!e||!Td(e))return!1;let t=id(e);if(t===null||t===rd[od])return!0;let n=rd.hasOwnProperty.call(t,ad)&&t[ad];if(n===Object)return!0;if(!Ed(n))return!1;let r=md.get(n);return r===void 0&&(r=Function.toString.call(n),md.set(n,r)),r===pd}function gd(e,t,n=!0){_d(e)===0?(n?Reflect.ownKeys(e):rd.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function _d(e){let t=e[td];return t?t.type_:Sd(e)?1:Cd(e)?2:wd(e)?3:0}var vd=(e,t,n=_d(e))=>n===2?e.has(t):rd[od].hasOwnProperty.call(e,t),yd=(e,t,n=_d(e))=>n===2?e.get(t):e[t],bd=(e,t,n,r=_d(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function xd(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var Sd=Array.isArray,Cd=e=>e instanceof Map,wd=e=>e instanceof Set,Td=e=>typeof e==`object`,Ed=e=>typeof e==`function`,Dd=e=>typeof e==`boolean`;function Od(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var kd=e=>e.copy_||e.base_,Ad=e=>e.modified_?e.copy_:e.base_;function jd(e,t){if(Cd(e))return new Map(e);if(wd(e))return new Set(e);if(Sd(e))return Array[od].slice.call(e);let n=hd(e);if(t===!0||t===`class_only`&&!n){let t=rd.getOwnPropertyDescriptors(e);delete t[td];let n=Reflect.ownKeys(t);for(let r=0;r1&&rd.defineProperties(e,{set:Pd,add:Pd,clear:Pd,delete:Pd}),rd.freeze(e),t&&gd(e,(e,t)=>{Md(t,!0)},!1),e)}function Nd(){nd(2)}var Pd={[ud]:Nd};function Fd(e){return e===null||!Td(e)?!0:rd.isFrozen(e)}var Id=`MapSet`,Ld=`Patches`,Rd=`ArrayMethods`,zd={};function Bd(e){let t=zd[e];return t||nd(0,e),t}var Vd=e=>!!zd[e],Hd,Ud=()=>Hd,Wd=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Vd(Id)?Bd(Id):void 0,arrayMethodsPlugin_:Vd(Rd)?Bd(Rd):void 0});function Gd(e,t){t&&(e.patchPlugin_=Bd(Ld),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Kd(e){qd(e),e.drafts_.forEach(Yd),e.drafts_=null}function qd(e){e===Hd&&(Hd=e.parent_)}var Jd=e=>Hd=Wd(Hd,e);function Yd(e){let t=e[td];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Xd(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[td].modified_&&(Kd(t),nd(4)),fd(e)&&(e=Zd(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[td].base_,e,t)}else e=Zd(t,n);return Qd(t,e,!0),Kd(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===$u?void 0:e}function Zd(e,t){if(Fd(t))return t;let n=t[td];if(!n)return sf(t,e.handledSet_,e);if(!ef(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);af(n,e)}return n.copy_}function Qd(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Md(t,n)}function $d(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var ef=(e,t)=>e.scope_===t,tf=[];function nf(e,t,n,r){let i=kd(e),a=e.type_;if(r!==void 0&&yd(i,r,a)===t){bd(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;gd(i,(e,n)=>{if(dd(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??tf;for(let e of o)bd(i,e,n,a)}function rf(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!ef(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=Ad(i);nf(e,i.draft_??i,a,n),af(i,r)})}function af(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}$d(e)}}function of(e,t,n){let{scope_:r}=e;if(dd(n)){let i=n[td];ef(i,r)&&i.callbacks_.push(function(){hf(e),nf(e,n,Ad(i),t)})}else fd(n)&&e.callbacks_.push(function(){let i=kd(e);e.type_===3?i.has(n)&&sf(n,r.handledSet_,r):yd(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&sf(yd(e.copy_,t,e.type_),r.handledSet_,r)})}function sf(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||dd(e)||t.has(e)||!fd(e)||Fd(e)?e:(t.add(e),gd(e,(r,i)=>{if(dd(i)){let t=i[td];ef(t,n)&&(bd(e,r,Ad(t),e.type_),$d(t))}else fd(i)&&sf(i,t,n)}),e)}function cf(e,t){let n=Sd(e),r={type_:+!!n,scope_:t?t.scope_:Ud(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=lf;n&&(i=[r],a=uf);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var lf={get(e,t){if(t===td)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=kd(e);if(!vd(i,t,e.type_))return ff(e,i,t);let a=i[t];if(e.finalized_||!fd(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Od(t))return a;if(a===df(e.base_,t)){hf(e);let n=e.type_===1?+t:t,r=_f(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in kd(e)},ownKeys(e){return Reflect.ownKeys(kd(e))},set(e,t,n){let r=pf(kd(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=df(kd(e),t),i=r?.[td];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(xd(n,r)&&(n!==void 0||vd(e.base_,t,e.type_)))return!0;hf(e),mf(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),of(e,t,n),!0)},deleteProperty(e,t){return hf(e),df(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),mf(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=kd(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[ld]:!0,[sd]:e.type_!==1||t!==`length`,[cd]:r[cd],[ud]:n[t]}},defineProperty(){nd(11)},getPrototypeOf(e){return id(e.base_)},setPrototypeOf(){nd(12)}},uf={};for(let e in lf){let t=lf[e];uf[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}uf.deleteProperty=function(e,t){return uf.set.call(this,e,t,void 0)},uf.set=function(e,t,n){return lf.set.call(this,e[0],t,n,e[0])};function df(e,t){let n=e[td];return(n?kd(n):e)[t]}function ff(e,t,n){let r=pf(t,n);return r?ud in r?r[ud]:r.get?.call(e.draft_):void 0}function pf(e,t){if(!(t in e))return;let n=id(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=id(n)}}function mf(e){e.modified_||(e.modified_=!0,e.parent_&&mf(e.parent_))}function hf(e){e.copy_||=(e.assigned_=new Map,jd(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var gf=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(Ed(e)&&!Ed(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}Ed(t)||nd(6),n!==void 0&&!Ed(n)&&nd(7);let r;if(fd(e)){let i=Jd(this),a=_f(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?Kd(i):qd(i)}return Gd(i,n),Xd(r,i)}else if(!e||!Td(e)){if(r=t(e),r===void 0&&(r=e),r===$u&&(r=void 0),this.autoFreeze_&&Md(r,!0),n){let t=[],i=[];Bd(Ld).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}else nd(1,e)},this.produceWithPatches=(e,t)=>{if(Ed(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},Dd(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Dd(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Dd(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){fd(e)||nd(8),dd(e)&&(e=vf(e));let t=Jd(this),n=_f(t,e,void 0);return n[td].isManual_=!0,qd(t),n}finishDraft(e,t){let n=e&&e[td];(!n||!n.isManual_)&&nd(9);let{scope_:r}=n;return Gd(r,t),Xd(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=Bd(Ld).applyPatches_;return dd(e)?r(e,t):this.produce(e,e=>r(e,t))}};function _f(e,t,n,r){let[i,a]=Cd(t)?Bd(Id).proxyMap_(t,n):wd(t)?Bd(Id).proxySet_(t,n):cf(t,n);return(n?.scope_??Ud()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?rf(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function vf(e){return dd(e)||nd(10,e),yf(e)}function yf(e){if(!fd(e)||Fd(e))return e;let t=e[td],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=jd(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=jd(e,!0);return gd(n,(e,t)=>{bd(n,e,yf(t))},r),t&&(t.finalized_=!1),n}var bf=new gf().produce;function xf(e){return({dispatch:t,getState:n})=>r=>i=>typeof i==`function`?i(t,n,e):r(i)}var Sf=xf(),Cf=xf,wf=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]==`object`?Xu:Xu.apply(null,arguments)};typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function Tf(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw Error(Mp(0));return{type:e,payload:r.payload,...`meta`in r&&{meta:r.meta},...`error`in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>Qu(t)&&t.type===e,n}var Ef=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function Df(e){return fd(e)?bf(e,()=>{}):e}function Of(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function kf(e){return typeof e==`boolean`}var Af=()=>function(e){let{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{},a=new Ef;return t&&(kf(t)?a.push(Sf):a.push(Cf(t.extraArgument))),a},jf=`RTK_autoBatch`,q=()=>e=>({payload:e,meta:{[jf]:!0}}),Mf=e=>t=>{setTimeout(t,e)},Nf=(e={type:`raf`})=>t=>(...n)=>{let r=t(...n),i=!0,a=!1,o=!1,s=new Set,c=e.type===`tick`?queueMicrotask:e.type===`raf`?typeof window<`u`&&window.requestAnimationFrame?window.requestAnimationFrame:Mf(10):e.type===`callback`?e.queueNotification:Mf(e.timeout),l=()=>{o=!1,a&&(a=!1,s.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){let t=r.subscribe(()=>i&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return i=!e?.meta?.[jf],a=!i,a&&(o||(o=!0,c(l))),r.dispatch(e)}finally{i=!0}}})},Pf=e=>function(t){let{autoBatch:n=!0}=t??{},r=new Ef(e);return n&&r.push(Nf(typeof n==`object`?n:void 0)),r};function Ff(e){let t=Af(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{},c;if(typeof n==`function`)c=n;else if(Ku(n))c=Yu(n);else throw Error(Mp(1));let l;l=typeof r==`function`?r(t):t();let u=Xu;i&&(u=wf({trace:!1,...typeof i==`object`&&i}));let d=Pf(Zu(...l)),f=typeof s==`function`?s(d):d(),p=u(...f);return qu(c,o,p)}function If(e){let t={},n=[],r,i={addCase(e,n){let r=typeof e==`string`?e:e.type;if(!r)throw Error(Mp(28));if(r in t)throw Error(Mp(29));return t[r]=n,i},addAsyncThunk(e,r){return r.pending&&(t[e.pending.type]=r.pending),r.rejected&&(t[e.rejected.type]=r.rejected),r.fulfilled&&(t[e.fulfilled.type]=r.fulfilled),r.settled&&n.push({matcher:e.settled,reducer:r.settled}),i},addMatcher(e,t){return n.push({matcher:e,reducer:t}),i},addDefaultCase(e){return r=e,i}};return e(i),[t,n,r]}function Lf(e){return typeof e==`function`}function Rf(e,t){let[n,r,i]=If(t),a;if(Lf(e))a=()=>Df(e());else{let t=Df(e);a=()=>t}function o(e=a(),t){let o=[n[t.type],...r.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return o.filter(e=>!!e).length===0&&(o=[i]),o.reduce((e,n)=>{if(n)if(dd(e)){let r=n(e,t);return r===void 0?e:r}else if(fd(e))return bf(e,e=>n(e,t));else{let r=n(e,t);if(r===void 0){if(e===null)return e;throw Error(`A case reducer on a non-draftable value must not return undefined`)}return r}return e},e)}return o.getInitialState=a,o}var zf=`ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW`,Bf=(e=21)=>{let t=``,n=e;for(;n--;)t+=zf[Math.random()*64|0];return t},Vf=Symbol.for(`rtk-slice-createasyncthunk`);function Hf(e,t){return`${e}/${t}`}function Uf({creators:e}={}){let t=e?.asyncThunk?.[Vf];return function(e){let{name:n,reducerPath:r=n}=e;if(!n)throw Error(Mp(11));let i=(typeof e.reducers==`function`?e.reducers(Kf()):e.reducers)||{},a=Object.keys(i),o={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){let n=typeof e==`string`?e:e.type;if(!n)throw Error(Mp(12));if(n in o.sliceCaseReducersByType)throw Error(Mp(13));return o.sliceCaseReducersByType[n]=t,s},addMatcher(e,t){return o.sliceMatchers.push({matcher:e,reducer:t}),s},exposeAction(e,t){return o.actionCreators[e]=t,s},exposeCaseReducer(e,t){return o.sliceCaseReducersByName[e]=t,s}};a.forEach(r=>{let a=i[r],o={reducerName:r,type:Hf(n,r),createNotation:typeof e.reducers==`function`};Jf(a)?Xf(o,a,s,t):qf(o,a,s)});function c(){let[t={},n=[],r=void 0]=typeof e.extraReducers==`function`?If(e.extraReducers):[e.extraReducers],i={...t,...o.sliceCaseReducersByType};return Rf(e.initialState,e=>{for(let t in i)e.addCase(t,i[t]);for(let t of o.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}let l=e=>e,u=new Map,d=new WeakMap,f;function p(e,t){return f||=c(),f(e,t)}function m(){return f||=c(),f.getInitialState()}function h(t,n=!1){function r(e){let i=e[t];return i===void 0&&n&&(i=Of(d,r,m)),i}function i(t=l){return Of(Of(u,n,()=>new WeakMap),t,()=>{let r={};for(let[i,a]of Object.entries(e.selectors??{}))r[i]=Wf(a,t,()=>Of(d,t,m),n);return r})}return{reducerPath:t,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}let g={name:n,reducer:p,actions:o.actionCreators,caseReducers:o.sliceCaseReducersByName,getInitialState:m,...h(r),injectInto(e,{reducerPath:t,...n}={}){let i=t??r;return e.inject({reducerPath:i,reducer:p},n),{...g,...h(i,!0)}}};return g}}function Wf(e,t,n,r){function i(i,...a){let o=t(i);return o===void 0&&r&&(o=n()),e(o,...a)}return i.unwrapped=e,i}var Gf=Uf();function Kf(){function e(e,t){return{_reducerDefinitionType:`asyncThunk`,payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer(e){return Object.assign({[e.name](...t){return e(...t)}}[e.name],{_reducerDefinitionType:`reducer`})},preparedReducer(e,t){return{_reducerDefinitionType:`reducerWithPrepare`,prepare:e,reducer:t}},asyncThunk:e}}function qf({type:e,reducerName:t,createNotation:n},r,i){let a,o;if(`reducer`in r){if(n&&!Yf(r))throw Error(Mp(17));a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Tf(e,o):Tf(e))}function Jf(e){return e._reducerDefinitionType===`asyncThunk`}function Yf(e){return e._reducerDefinitionType===`reducerWithPrepare`}function Xf({type:e,reducerName:t},n,r,i){if(!i)throw Error(Mp(18));let{payloadCreator:a,fulfilled:o,pending:s,rejected:c,settled:l,options:u}=n,d=i(e,a,u);r.exposeAction(t,d),o&&r.addCase(d.fulfilled,o),s&&r.addCase(d.pending,s),c&&r.addCase(d.rejected,c),l&&r.addMatcher(d.settled,l),r.exposeCaseReducer(t,{fulfilled:o||Zf,pending:s||Zf,rejected:c||Zf,settled:l||Zf})}function Zf(){}var Qf=`task`,$f=`listener`,ep=`completed`,tp=`cancelled`,np=`task-${tp}`,rp=`task-${ep}`,ip=`${$f}-${tp}`,ap=`${$f}-${ep}`,op=class{constructor(e){this.code=e,this.message=`${Qf} ${tp} (reason: ${e})`}name=`TaskAbortError`;message},sp=(e,t)=>{if(typeof e!=`function`)throw TypeError(Mp(32))},cp=()=>{},lp=(e,t=cp)=>(e.catch(t),e),up=(e,t)=>(e.addEventListener(`abort`,t,{once:!0}),()=>e.removeEventListener(`abort`,t)),dp=e=>{if(e.aborted)throw new op(e.reason)};function fp(e,t){let n=cp;return new Promise((r,i)=>{let a=()=>i(new op(e.reason));if(e.aborted){a();return}n=up(e,a),t.finally(()=>n()).then(r,i)}).finally(()=>{n=cp})}var pp=async(e,t)=>{try{return await Promise.resolve(),{status:`ok`,value:await e()}}catch(e){return{status:e instanceof op?`cancelled`:`rejected`,error:e}}finally{t?.()}},mp=e=>t=>lp(fp(e,t).then(t=>(dp(e),t))),hp=e=>{let t=mp(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:gp}=Object,_p={},vp=`listenerMiddleware`,yp=(e,t)=>{let n=t=>up(e,()=>t.abort(e.reason));return(r,i)=>{sp(r,`taskExecutor`);let a=new AbortController;n(a);let o=pp(async()=>{dp(e),dp(a.signal);let t=await r({pause:mp(a.signal),delay:hp(a.signal),signal:a.signal});return dp(a.signal),t},()=>a.abort(rp));return i?.autoJoin&&t.push(o.catch(cp)),{result:mp(e)(o),cancel(){a.abort(np)}}}},bp=(e,t)=>{let n=async(n,r)=>{dp(t);let i=()=>{},a=[new Promise((t,r)=>{let a=e({predicate:n,effect:(e,n)=>{n.unsubscribe(),t([e,n.getState(),n.getOriginalState()])}});i=()=>{a(),r()}})];r!=null&&a.push(new Promise(e=>setTimeout(e,r,null)));try{let e=await fp(t,Promise.race(a));return dp(t),e}finally{i()}};return(e,t)=>lp(n(e,t))},xp=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:a}=e;if(t)i=Tf(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw Error(Mp(21));return sp(a,`options.listener`),{predicate:i,type:t,effect:a}},Sp=gp(e=>{let{type:t,predicate:n,effect:r}=xp(e);return{id:Bf(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw Error(Mp(22))}}},{withTypes:()=>Sp}),Cp=(e,t)=>{let{type:n,effect:r,predicate:i}=xp(t);return Array.from(e.values()).find(e=>(typeof n==`string`?e.type===n:e.predicate===i)&&e.effect===r)},wp=e=>{e.pending.forEach(e=>{e.abort(ip)})},Tp=(e,t)=>()=>{for(let e of t.keys())wp(e);e.clear()},Ep=(e,t,n)=>{try{e(t,n)}catch(e){setTimeout(()=>{throw e},0)}},Dp=gp(Tf(`${vp}/add`),{withTypes:()=>Dp}),Op=Tf(`${vp}/removeAll`),kp=gp(Tf(`${vp}/remove`),{withTypes:()=>kp}),Ap=(...e)=>{console.error(`${vp}/error`,...e)},jp=(e={})=>{let t=new Map,n=new Map,r=e=>{let t=n.get(e)??0;n.set(e,t+1)},i=e=>{let t=n.get(e)??1;t===1?n.delete(e):n.set(e,t-1)},{extra:a,onError:o=Ap}=e;sp(o,`onError`);let s=e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),t?.cancelActive&&wp(e)}),c=e=>s(Cp(t,e)??Sp(e));gp(c,{withTypes:()=>c});let l=e=>{let n=Cp(t,e);return n&&(n.unsubscribe(),e.cancelActive&&wp(n)),!!n};gp(l,{withTypes:()=>l});let u=async(e,n,s,l)=>{let u=new AbortController,d=bp(c,u.signal),f=[];try{e.pending.add(u),r(e),await Promise.resolve(e.effect(n,gp({},s,{getOriginalState:l,condition:(e,t)=>d(e,t).then(Boolean),take:d,delay:hp(u.signal),pause:mp(u.signal),extra:a,signal:u.signal,fork:yp(u.signal,f),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,n)=>{e!==u&&(e.abort(ip),n.delete(e))})},cancel:()=>{u.abort(ip),e.pending.delete(u)},throwIfCancelled:()=>{dp(u.signal)}})))}catch(e){e instanceof op||Ep(o,e,{raisedBy:`effect`})}finally{await Promise.all(f),u.abort(ap),i(e),e.pending.delete(u)}},d=Tp(t,n);return{middleware:e=>n=>r=>{if(!Qu(r))return n(r);if(Dp.match(r))return c(r.payload);if(Op.match(r)){d();return}if(kp.match(r))return l(r.payload);let i=e.getState(),a=()=>{if(i===_p)throw Error(Mp(23));return i},s;try{if(s=n(r),t.size>0){let n=e.getState(),s=Array.from(t.values());for(let t of s){let s=!1;try{s=t.predicate(r,n,i)}catch(e){s=!1,Ep(o,e,{raisedBy:`predicate`})}s&&u(t,r,e,a)}}}finally{i=_p}return s},startListening:c,stopListening:l,clearListeners:d}};function Mp(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Np=Gf({name:`chartLayout`,initialState:{layoutType:`horizontal`,width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){e.margin.top=t.payload.top??0,e.margin.right=t.payload.right??0,e.margin.bottom=t.payload.bottom??0,e.margin.left=t.payload.left??0},setScale(e,t){e.scale=t.payload}}}),{setMargin:Pp,setLayout:Fp,setChartSize:Ip,setScale:Lp}=Np.actions,Rp=Np.reducer;function zp(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function J(e){return Number.isFinite(e)}function Bp(e){return typeof e==`number`&&e>0&&Number.isFinite(e)}function Vp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Hp(e){for(var t=1;t{if(t&&n){var{width:r,height:i}=n,{align:a,verticalAlign:o,layout:s}=t;if((s===`vertical`||s===`horizontal`&&o===`middle`)&&a!==`center`&&V(e[a]))return Hp(Hp({},e),{},{[a]:e[a]+(r||0)});if((s===`horizontal`||s===`vertical`&&a===`center`)&&o!==`middle`&&V(e[o]))return Hp(Hp({},e),{},{[o]:e[o]+(i||0)})}return e},qp=(e,t)=>e===`horizontal`&&t===`xAxis`||e===`vertical`&&t===`yAxis`||e===`centric`&&t===`angleAxis`||e===`radial`&&t===`radiusAxis`,Jp=(e,t,n,r)=>{if(r)return e.map(e=>e.coordinate);var i,a,o=e.map(e=>(e.coordinate===t&&(i=!0),e.coordinate===n&&(a=!0),e.coordinate));return i||o.push(t),a||o.push(n),o},Yp=(e,t,n)=>{if(!e)return null;var{duplicateDomain:r,type:i,range:a,scale:o,realScaleType:s,isCategorical:c,categoricalDomain:l,tickCount:u,ticks:d,niceTicks:f,axisType:p}=e;if(!o)return null;var m=s===`scaleBand`&&o.bandwidth?o.bandwidth()/2:2,h=(t||n)&&i===`category`&&o.bandwidth?o.bandwidth()/m:0;return h=p===`angleAxis`&&a&&a.length>=2?Lc(a[0]-a[1])*2*h:h,t&&(d||f)?(d||f||[]).map((e,t)=>{var n=r?r.indexOf(e):e,i=o.map(n);return J(i)?{coordinate:i+h,value:e,offset:h,index:t}:null}).filter(qc):c&&l?l.map((e,t)=>{var n=o.map(e);return J(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(qc):o.ticks&&!n&&u!=null?o.ticks(u).map((e,t)=>{var n=o.map(e);return J(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(qc):o.domain().map((e,t)=>{var n=o.map(e);return J(n)?{coordinate:n+h,value:r?r[e]:e,index:t,offset:h}:null}).filter(qc)},Xp=(e,t)=>{if(!t||t.length!==2||!V(t[0])||!V(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!V(e[0])||e[0]r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r=0?(s[0]=i,i+=u,s[1]=i):(s[0]=a,a+=u,s[1]=a)}}}},expand:Cc,none:vc,silhouette:wc,wiggle:Tc,positive:e=>{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r=0?(o[0]=i,i+=s,o[1]=i):(o[0]=0,o[1]=0)}}}}},Qp=(e,t,n)=>{var r=Zp[n]??vc,i=Sc().keys(t).value((e,t)=>Number(Y(e,t,0))).order(yc).offset(r)(e);return i.forEach((n,r)=>{n.forEach((n,i)=>{var a=Y(e[i],t[r],0);Array.isArray(a)&&a.length===2&&V(a[0])&&V(a[1])&&(n[0]=a[0],n[1]=a[1])})}),i};function $p(e){return e==null?void 0:String(e)}function em(e){var{axis:t,ticks:n,bandSize:r,entry:i,index:a,dataKey:o}=e;if(t.type===`category`){if(!t.allowDuplicatedCategory&&t.dataKey&&!U(i[t.dataKey])){var s=Gc(n,`value`,i[t.dataKey]);if(s)return s.coordinate+r/2}return n!=null&&n[a]?n[a].coordinate+r/2:null}var c=Y(i,U(o)?t.dataKey:o),l=t.scale.map(c);return V(l)?l:null}var tm=e=>{var{axis:t,ticks:n,offset:r,bandSize:i,entry:a,index:o}=e;if(t.type===`category`)return n[o]?n[o].coordinate+r:null;var s=Y(a,t.dataKey,t.scale.domain()[o]);if(U(s))return null;var c=t.scale.map(s);return V(c)?c-i/2+r:null},nm=e=>{var{numericAxis:t}=e,n=t.scale.domain();if(t.type===`number`){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},rm=e=>{var t=e.flat(2).filter(V);return[Math.min(...t),Math.max(...t)]},im=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],am=(e,t,n)=>{if(e!=null)return im(Object.keys(e).reduce((r,i)=>{var a=e[i];if(!a)return r;var{stackedData:o}=a,s=o.reduce((e,r)=>{var i=rm(zp(r,t,n));return!J(i[0])||!J(i[1])?e:[Math.min(e[0],i[0]),Math.max(e[1],i[1])]},[1/0,-1/0]);return[Math.min(s[0],r[0]),Math.max(s[1],r[1])]},[1/0,-1/0]))},om=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,sm=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cm=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=(0,Fu.default)(t,e=>e.coordinate),a=1/0,o=1,s=i.length;o{if(t===`horizontal`)return e.relativeX;if(t===`vertical`)return e.relativeY},fm=(e,t)=>t===`centric`?e.angle:e.radius,pm=e=>e.layout.width,mm=e=>e.layout.height,hm=e=>e.layout.scale,gm=e=>e.layout.margin,_m=K(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),vm=K(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),ym=`data-recharts-item-index`;function bm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xm(e){for(var t=1;te.brush.height;function Em(e){return vm(e).reduce((e,t)=>t.orientation===`left`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function Dm(e){return vm(e).reduce((e,t)=>t.orientation===`right`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function Om(e){return _m(e).reduce((e,t)=>t.orientation===`top`&&!t.mirror&&!t.hide?e+t.height:e,0)}function km(e){return _m(e).reduce((e,t)=>t.orientation===`bottom`&&!t.mirror&&!t.hide?e+t.height:e,0)}var Am=K([pm,mm,gm,Tm,Em,Dm,Om,km,Iu,Lu],(e,t,n,r,i,a,o,s,c,l)=>{var u={left:(n.left||0)+i,right:(n.right||0)+a},d=xm(xm({},{top:(n.top||0)+o,bottom:(n.bottom||0)+s}),u),f=d.bottom;d.bottom+=r,d=Kp(d,c,l);var p=e-d.left-d.right,m=t-d.top-d.bottom;return xm(xm({brushBottom:f},d),{},{width:Math.max(p,0),height:Math.max(m,0)})}),jm=K(Am,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Mm=K(pm,mm,(e,t)=>({x:0,y:0,width:e,height:t})),Nm=(0,I.createContext)(null),Pm=()=>(0,I.useContext)(Nm)!=null,Fm=e=>e.brush,Im=K([Fm,Am,gm],(e,t,n)=>({height:e.height,x:V(e.x)?e.x:t.left,y:V(e.y)?e.y:t.top+t.height+t.brushBottom-(n?.bottom||0),width:V(e.width)?e.width:t.width})),Lm=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}e.debounce=t})),Rm=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Lm();function n(e,n=0,r={}){typeof r!=`object`&&(r={});let{leading:i=!1,trailing:a=!0,maxWait:o}=r,s=[,,];i&&(s[0]=`leading`),a&&(s[1]=`trailing`);let c,l=null,u=t.debounce(function(...t){c=e.apply(this,t),l=null},n,{edges:s}),d=function(...t){return o!=null&&(l===null&&(l=Date.now()),Date.now()-l>=o)?(c=e.apply(this,t),l=Date.now(),u.cancel(),u.schedule(),c):(u.apply(this,t),c)};return d.cancel=u.cancel,d.flush=()=>(u.flush(),c),d}e.debounce=n})),zm=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Rm();function n(e,n=0,r={}){let{leading:i=!0,trailing:a=!0}=r;return t.debounce(e,n,{leading:i,maxWait:n,trailing:a})}e.throttle=n})),Bm=n(((e,t)=>{t.exports=zm().throttle})),Vm=!0,Hm=function(e,t){var n=[...arguments].slice(2);if(Vm&&typeof console<`u`&&console.warn&&(t===void 0&&console.warn(`LogUtils requires an error message argument`),!e))if(t===void 0)console.warn(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var r=0;console.warn(t.replace(/%s/g,()=>n[r++]))}},Um={width:`100%`,height:`100%`,debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},Wm=(e,t,n)=>{var{width:r=Um.width,height:i=Um.height,aspect:a,maxHeight:o}=n,s=zc(r)?e:Number(r),c=zc(i)?t:Number(i);return a&&a>0&&(s?c=s/a:c&&(s=c*a),o&&c!=null&&c>o&&(c=o)),{calculatedWidth:s,calculatedHeight:c}},Gm={width:0,height:0,overflow:`visible`},Km={width:0,overflowX:`visible`},qm={height:0,overflowY:`visible`},Jm={},Ym=e=>{var{width:t,height:n}=e,r=zc(t),i=zc(n);return r&&i?Gm:r?Km:i?qm:Jm};function Xm(e){var{width:t,height:n,aspect:r}=e,i=t,a=n;return i===void 0&&a===void 0?(i=Um.width,a=Um.height):i===void 0?i=r&&r>0?void 0:Um.width:a===void 0&&(a=r&&r>0?void 0:Um.height),{width:i,height:a}}var Zm=t(Bm());function Qm(){return Qm=Object.assign?Object.assign.bind():function(e){for(var t=1;t({width:n,height:r}),[n,r]);return ah(i)?I.createElement(ih.Provider,{value:i},t):null}var sh=()=>(0,I.useContext)(ih),ch=(0,I.forwardRef)((e,t)=>{var{aspect:n,initialDimension:r=Um.initialDimension,width:i,height:a,minWidth:o=Um.minWidth,minHeight:s,maxHeight:c,children:l,debounce:u=Um.debounce,id:d,className:f,onResize:p,style:m={}}=e,h=(0,I.useRef)(null),g=(0,I.useRef)();g.current=p,(0,I.useImperativeHandle)(t,()=>h.current);var[_,v]=(0,I.useState)({containerWidth:r.width,containerHeight:r.height}),y=(0,I.useCallback)((e,t)=>{v(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]);(0,I.useEffect)(()=>{if(h.current==null||typeof ResizeObserver>`u`)return Jc;var e=e=>{var t,n=e[0];if(n!=null){var{width:r,height:i}=n.contentRect;y(r,i),(t=g.current)==null||t.call(g,r,i)}};u>0&&(e=(0,Zm.default)(e,u,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),{width:n,height:r}=h.current.getBoundingClientRect();return y(n,r),t.observe(h.current),()=>{t.disconnect()}},[y,u]);var{containerWidth:b,containerHeight:x}=_;Hm(!n||n>0,`The aspect(%s) must be greater than zero.`,n);var{calculatedWidth:S,calculatedHeight:C}=Wm(b,x,{width:i,height:a,aspect:n,maxHeight:c});return Hm(S!=null&&S>0||C!=null&&C>0,`The width(%s) and height(%s) of chart should be greater than 0, @@ -39,5 +39,5 @@ ${n.map(([e,n])=>{let r=n.theme?.[t]??n.color;return r?` --color-${e}: ${r};`:n `)} } `).join(` -`)}}):null},rU=TM;function iU({active:e,payload:t,className:n,indicator:r=`dot`,hideLabel:i=!1,hideIndicator:a=!1,label:o,labelFormatter:s,labelClassName:c,formatter:l,color:u,nameKey:d,labelKey:f}){let{config:p}=eU(),m=I.useMemo(()=>{if(i||!t?.length)return null;let[e]=t,n=sU(p,e,`${f??e?.dataKey??e?.name??`value`}`),r=!f&&typeof o==`string`?p[o]?.label??o:n?.label;return s?(0,z.jsx)(`div`,{className:M(`font-medium`,c),children:s(r,t)}):r?(0,z.jsx)(`div`,{className:M(`font-medium`,c),children:r}):null},[o,s,t,i,c,p,f]);if(!e||!t?.length)return null;let h=t.length===1&&r!==`dot`;return(0,z.jsxs)(`div`,{className:M(`grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl`,n),children:[h?null:m,(0,z.jsx)(`div`,{className:`grid gap-1.5`,children:t.filter(e=>e.type!==`none`).map((e,t)=>{let n=sU(p,e,`${d??e.name??e.dataKey??`value`}`),i=u??e.payload?.fill??e.color;return(0,z.jsx)(`div`,{className:M(`flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground`,r===`dot`&&`items-center`),children:l&&e?.value!==void 0&&e.name?l(e.value,e.name,e,t,e.payload):(0,z.jsxs)(z.Fragment,{children:[n?.icon?(0,z.jsx)(n.icon,{}):!a&&(0,z.jsx)(`div`,{className:M(`shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)`,{"h-2.5 w-2.5":r===`dot`,"w-1":r===`line`,"w-0 border-[1.5px] border-dashed bg-transparent":r===`dashed`,"my-0.5":h&&r===`dashed`}),style:{"--color-bg":i,"--color-border":i}}),(0,z.jsxs)(`div`,{className:M(`flex flex-1 justify-between leading-none`,h?`items-end`:`items-center`),children:[(0,z.jsxs)(`div`,{className:`grid gap-1.5`,children:[h?m:null,(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:n?.label??e.name})]}),e.value!=null&&(0,z.jsx)(`span`,{className:`font-mono font-medium text-foreground tabular-nums`,children:typeof e.value==`number`?e.value.toLocaleString():String(e.value)})]})]})},t)})})]})}var aU=s_;function oU({className:e,hideIcon:t=!1,payload:n,verticalAlign:r=`bottom`,nameKey:i}){let{config:a}=eU();return n?.length?(0,z.jsx)(`div`,{className:M(`flex items-center justify-center gap-4`,r===`top`?`pb-3`:`pt-3`,e),children:n.filter(e=>e.type!==`none`).map((e,n)=>{let r=sU(a,e,`${i??e.dataKey??`value`}`);return(0,z.jsxs)(`div`,{className:M(`flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground`),children:[r?.icon&&!t?(0,z.jsx)(r.icon,{}):(0,z.jsx)(`div`,{className:`h-2 w-2 shrink-0 rounded-[2px]`,style:{backgroundColor:e.color}}),r?.label]},n)})}):null}function sU(e,t,n){if(typeof t!=`object`||!t)return;let r=`payload`in t&&typeof t.payload==`object`&&t.payload!==null?t.payload:void 0,i=n;return n in t&&typeof t[n]==`string`?i=t[n]:r&&n in r&&typeof r[n]==`string`&&(i=r[n]),i in e?e[i]:e[n]}var cU=[{key:`total_amount`,label:()=>c()},{key:`actual_amount`,label:()=>E()}],lU=e=>ct(e);function uU({selected:e,onChange:t}){let[n,r]=(0,I.useState)(!1),i=n=>{let r=new Set(e);r.has(n)?r.delete(n):r.add(n),t(r)},a=t=>e.size>0&&!e.has(t);return(0,z.jsxs)(gt,{onOpenChange:r,open:n,children:[(0,z.jsx)(ht,{asChild:!0,children:(0,z.jsxs)(pt,{className:`h-8 border-dashed`,size:`sm`,variant:`outline`,children:[(0,z.jsx)(un,{className:`size-4`}),Le(),e.size>0&&(0,z.jsx)(`span`,{className:`ml-1 rounded bg-primary px-1 py-0.5 text-[10px] text-primary-foreground`,children:e.size})]})}),(0,z.jsx)(mt,{align:`end`,className:`w-48 p-0`,children:(0,z.jsx)(Ht,{children:(0,z.jsxs)(Vt,{children:[(0,z.jsx)(Bt,{children:Ye()}),(0,z.jsx)(Rt,{children:cU.map(({key:e,label:t})=>(0,z.jsxs)(zt,{onSelect:()=>i(e),children:[(0,z.jsx)(`div`,{className:M(`flex size-4 items-center justify-center rounded-sm border border-primary`,a(e)?`opacity-50 [&_svg]:invisible`:`bg-primary [&_svg]:visible`),children:(0,z.jsx)(Ot,{className:`h-4 w-4 text-primary-foreground`})}),(0,z.jsx)(`span`,{children:t()})]},e))}),e.size>0&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(Lt,{}),(0,z.jsx)(Rt,{children:(0,z.jsx)(zt,{className:`justify-center text-center`,onSelect:()=>t(new Set),children:be()})})]})]})})})]})}var dU={total_amount:{label:c(),color:`var(--chart-1)`},actual_amount:{label:E(),color:`var(--chart-2)`}};function fU({data:e,selected:t}){let n=e=>t.size===0||t.has(e);return(0,z.jsx)(`div`,{className:`space-y-4`,children:(0,z.jsx)(tU,{className:`h-80 w-full`,config:dU,children:(0,z.jsxs)(XH,{data:e,children:[(0,z.jsx)(ZL,{strokeDasharray:`3 3`,vertical:!1}),(0,z.jsx)($B,{dataKey:`day`,tickFormatter:lt}),(0,z.jsx)(mV,{tickFormatter:e=>e>=1e3?`$${(e/1e3).toFixed(0)}k`:`$${e}`,width:60}),(0,z.jsx)(rU,{content:(0,z.jsx)(iU,{className:`min-w-44`,formatter:(e,t,n)=>(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`div`,{className:`h-2.5 w-2.5 shrink-0 rounded-xs`,style:{background:n.color}}),(0,z.jsxs)(`div`,{className:`flex flex-1 items-center justify-between gap-6 leading-none`,children:[(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:dU[t]?.label??t}),(0,z.jsx)(`span`,{className:`font-medium font-mono text-foreground tabular-nums`,children:lU(Number(e))})]})]})})}),(0,z.jsx)(aU,{content:(0,z.jsx)(oU,{})}),n(`total_amount`)&&(0,z.jsx)(Mz,{dataKey:`total_amount`,fill:`var(--chart-1)`,fillOpacity:.1,stroke:`var(--chart-1)`,strokeWidth:2.5,type:`monotone`}),n(`actual_amount`)&&(0,z.jsx)(Mz,{dataKey:`actual_amount`,fill:`var(--chart-2)`,fillOpacity:.2,stroke:`var(--chart-2)`,strokeWidth:1.5,type:`monotone`})]})})})}var pU=Object.assign(fU,{Filter:uU});function mU({overview:e,orderStats:t,rpcStats:n}){let r=n?.summary?.ok_chains??n?.summary?.active_chains??e.online_chains??0;return(0,z.jsx)(St,{children:(0,z.jsx)(`div`,{className:`grid gap-4 sm:grid-cols-2 lg:grid-cols-4 xl:grid-cols-6`,children:[{title:ae(),value:ct(e.total_asset??0),icon:fn,hint:ne()},{title:re(),value:ct(e.volume??0),icon:cn,hint:v()},{title:He(),value:(e.order_count??0).toString(),icon:mn,hint:y()},{title:h(),value:`${((e.success_rate??0)*100).toFixed(1)}%`,icon:gn,hint:A()},{title:ee(),value:(t.order_count??0).toString(),icon:on,hint:g()},{title:te(),value:(t.success_count??0).toString(),icon:mn,hint:u()},{title:it(),value:`${Math.round(t.avg_payment_seconds??0)}s`,icon:Nt,hint:D()},{title:b(),value:(t.expired_unpaid_count??0).toString(),icon:ln,hint:_()},{title:m(),value:ct(e.seven_day_volume??0),icon:cn,hint:w()},{title:S(),value:(e.active_addresses??0).toString(),icon:ln,hint:x()},{title:ke(),value:r.toString(),icon:dn,hint:l()},{title:Ae(),value:`${((t.success_rate??0)*100).toFixed(1)}%`,icon:on,hint:C()}].map(e=>(0,z.jsxs)(rn,{children:[(0,z.jsxs)(en,{className:`flex flex-row items-center justify-between space-y-0 pb-2`,children:[(0,z.jsx)($t,{className:`font-medium text-sm`,children:e.title}),(0,z.jsxs)(Ct,{children:[(0,z.jsx)(bt,{asChild:!0,children:(0,z.jsx)(e.icon,{className:`h-4 w-4 cursor-help text-muted-foreground`})}),(0,z.jsx)(xt,{children:(0,z.jsx)(`p`,{children:e.hint})})]})]}),(0,z.jsx)(tn,{children:(0,z.jsx)(`div`,{className:`font-bold text-2xl`,children:e.value})})]},e.title))})})}var hU={total_amount:{label:Re(),color:`var(--chart-2)`},actual_amount:{label:le(),color:`var(--chart-5)`}};function gU({data:e}){return(0,z.jsx)(tU,{className:`h-80 w-full`,config:hU,children:(0,z.jsxs)(JH,{barGap:8,data:e,children:[(0,z.jsx)(ZL,{strokeDasharray:`3 3`,vertical:!1}),(0,z.jsx)($B,{dataKey:`day`,tickFormatter:lt}),(0,z.jsx)(rU,{content:(0,z.jsx)(iU,{className:`min-w-40`,formatter:(e,t,n)=>(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`div`,{className:`h-2.5 w-2.5 shrink-0 rounded-[2px]`,style:{background:n.color}}),(0,z.jsxs)(`div`,{className:`flex flex-1 items-center justify-between gap-6 leading-none`,children:[(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:hU[t]?.label??t}),(0,z.jsx)(`span`,{className:`font-medium font-mono text-foreground tabular-nums`,children:ct(Number(e))})]})]})})}),(0,z.jsx)(aU,{content:(0,z.jsx)(oU,{})}),(0,z.jsx)(MB,{dataKey:`total_amount`,fill:`var(--color-total_amount)`,radius:[8,8,0,0]}),(0,z.jsx)(MB,{dataKey:`actual_amount`,fill:`var(--color-actual_amount)`,radius:[8,8,0,0]})]})})}var _U={order_count:{label:De(),color:`var(--chart-1)`},success_count:{label:Ue(),color:`var(--chart-3)`}};function vU({data:e}){return(0,z.jsx)(tU,{className:`h-80 w-full`,config:_U,children:(0,z.jsxs)(XH,{data:e,children:[(0,z.jsx)(ZL,{strokeDasharray:`3 3`,vertical:!1}),(0,z.jsx)($B,{dataKey:`day`}),(0,z.jsx)(mV,{allowDecimals:!1,yAxisId:`left`}),(0,z.jsx)(mV,{allowDecimals:!1,hide:!0,yAxisId:`right`}),(0,z.jsx)(rU,{content:(0,z.jsx)(iU,{className:`min-w-40`,formatter:(e,t,n)=>(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`div`,{className:`h-2.5 w-2.5 shrink-0 rounded-[2px]`,style:{background:n.color}}),(0,z.jsxs)(`div`,{className:`flex flex-1 items-center justify-between gap-6 leading-none`,children:[(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:_U[t]?.label??t}),(0,z.jsx)(`span`,{className:`font-medium font-mono text-foreground tabular-nums`,children:Number(e).toLocaleString()})]})]})})}),(0,z.jsx)(aU,{content:(0,z.jsx)(oU,{})}),(0,z.jsx)(MB,{dataKey:`order_count`,fill:`var(--color-order_count)`,radius:[8,8,0,0],yAxisId:`left`}),(0,z.jsx)(qR,{dataKey:`success_count`,dot:{r:3},stroke:`var(--color-success_count)`,strokeWidth:2,type:`monotone`,yAxisId:`right`})]})})}function yU({orders:e}){let t=ot();return(0,z.jsx)(`div`,{className:`overflow-hidden rounded-md border`,children:(0,z.jsxs)(Qt,{children:[(0,z.jsx)(qt,{children:(0,z.jsxs)(Xt,{className:`group/row`,children:[(0,z.jsx)(Jt,{className:`bg-background group-hover/row:bg-muted`,children:$e()}),(0,z.jsx)(Jt,{className:`bg-background group-hover/row:bg-muted`,children:ce()}),(0,z.jsx)(Jt,{className:`bg-background group-hover/row:bg-muted`,children:we()}),(0,z.jsx)(Jt,{className:`bg-background group-hover/row:bg-muted`,children:Ee()}),(0,z.jsx)(Jt,{className:`bg-background group-hover/row:bg-muted`,children:Pe()}),(0,z.jsx)(Jt,{className:`bg-background group-hover/row:bg-muted`,children:Ve()}),(0,z.jsx)(Jt,{className:`bg-background group-hover/row:bg-muted`,children:Se()})]})}),(0,z.jsx)(Yt,{children:e.map(e=>(0,z.jsxs)(Xt,{className:`group/row cursor-pointer`,onClick:()=>t({to:`/orders`}),children:[(0,z.jsx)(Zt,{className:`bg-background group-hover/row:bg-muted`,children:ut(e.created_at)}),(0,z.jsxs)(Zt,{className:`bg-background font-medium group-hover/row:bg-muted`,children:[(0,z.jsx)(`div`,{children:e.id}),(0,z.jsx)(`div`,{className:`text-muted-foreground text-xs`,children:e.order_id})]}),(0,z.jsx)(Zt,{className:`bg-background group-hover/row:bg-muted`,children:e.receive_address}),(0,z.jsxs)(Zt,{className:`bg-background group-hover/row:bg-muted`,children:[dt(e.amount),` `,e.currency]}),(0,z.jsxs)(Zt,{className:`bg-background group-hover/row:bg-muted`,children:[dt(e.actual_amount,6),` `,e.token||``]}),(0,z.jsx)(Zt,{className:`bg-background group-hover/row:bg-muted`,children:e.network}),(0,z.jsx)(Zt,{className:`bg-background group-hover/row:bg-muted`,children:(0,z.jsx)(Kt,{className:M(Mt[e.status??1]),children:Pt(e.status)})})]},e.id))})]})})}var bU=[`success`,`active`,`block`,`down`],xU=[`tron`,`ton`,`bsc`,`polygon`,`ethereum`,`solana`,`base`,`arbitrum`],SU={ok:{className:`border-emerald-500/30 bg-emerald-500/10 text-emerald-700`,dot:`bg-emerald-500`,label:()=>Ne()},warning:{className:`border-amber-500/30 bg-amber-500/10 text-amber-700`,dot:`bg-amber-500`,label:()=>Be()},down:{className:`border-rose-500/30 bg-rose-500/10 text-rose-700`,dot:`bg-rose-500`,label:()=>xe()},unknown:{className:`border-slate-500/30 bg-slate-500/10 text-slate-700`,dot:`bg-slate-500`,label:()=>he()},disabled:{className:`border-zinc-500/30 bg-zinc-500/10 text-zinc-700`,dot:`bg-zinc-500`,label:()=>Xe()}};function CU({error:e,stats:t,status:n}){let r=t?.summary,i=[...t?.chains??[]].sort((e,t)=>(e.display_name??e.network??``).localeCompare(t.display_name??t.network??``)),a=r?.success_rate??0,o=r?.active_chains??0,s=r?.total_chains??i.length,c=i.reduce((e,t)=>Math.max(e,t.latest_block_height??0),0),l=d();return n===`connected`?l=k():n===`connecting`&&(l=et()),(0,z.jsxs)(rn,{children:[(0,z.jsxs)(en,{className:`flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between`,children:[(0,z.jsxs)(`div`,{className:`space-y-1`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(pn,{className:`h-5 w-5 text-cyan-600`}),(0,z.jsx)($t,{children:f()})]}),(0,z.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:p()})]}),(0,z.jsxs)(Kt,{className:M(`w-fit gap-2 border`,n===`connected`?`border-emerald-500/30 bg-emerald-500/10 text-emerald-700`:`border-amber-500/30 bg-amber-500/10 text-amber-700`),variant:`outline`,children:[(0,z.jsx)(`span`,{className:M(`h-2 w-2 rounded-full`,n===`connected`?`bg-emerald-500`:`bg-amber-500`,n!==`error`&&`animate-pulse`)}),l]})]}),(0,z.jsxs)(tn,{className:`space-y-5 px-4 sm:px-6`,children:[!(t||e)&&(0,z.jsx)(EU,{}),e&&!t&&(0,z.jsxs)(`div`,{className:`flex items-center gap-3 rounded-md border border-amber-500/30 bg-amber-500/10 p-4 text-amber-700`,children:[(0,z.jsx)(Wt,{className:`h-5 w-5 shrink-0`}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`div`,{className:`font-medium`,children:O()}),(0,z.jsx)(`div`,{className:`text-sm opacity-80`,children:e})]})]}),t&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`div`,{className:`grid gap-3 md:grid-cols-4`,children:[(0,z.jsx)(wU,{accent:`cyan`,icon:Ut,label:tt(),value:`${(a*100).toFixed(1)}%`}),(0,z.jsx)(wU,{accent:`emerald`,icon:_n,label:de(),value:`${o}/${s}`}),(0,z.jsx)(wU,{accent:`neutral`,icon:hn,label:nt(),value:c?dt(c,0):`-`}),(0,z.jsx)(wU,{accent:`amber`,icon:Wt,label:Qe(),value:String((r?.warning_chains??0)+(r?.down_chains??0))})]}),(0,z.jsxs)(`div`,{className:`space-y-3`,children:[(0,z.jsxs)(`div`,{className:`flex items-center justify-between gap-3 text-muted-foreground text-xs`,children:[(0,z.jsx)(`span`,{children:se()}),(0,z.jsx)(`span`,{children:Ce({time:ut(t.generated_at)})})]}),(0,z.jsxs)(`div`,{className:`grid gap-3 md:grid-cols-2 lg:grid-cols-4`,children:[i.map(e=>(0,z.jsx)(TU,{chain:e},e.network??e.display_name)),i.length===0&&(0,z.jsx)(`div`,{className:`rounded-md border border-dashed p-6 text-center text-muted-foreground text-sm md:col-span-2 lg:col-span-4`,children:Te()})]})]})]})]})]})}function wU({accent:e,icon:t,label:n,value:r}){let i={amber:`from-amber-500/18 via-amber-500/5 to-card text-amber-700`,cyan:`from-cyan-500/18 via-cyan-500/5 to-card text-cyan-700`,emerald:`from-emerald-500/18 via-emerald-500/5 to-card text-emerald-700`,neutral:`from-muted via-muted/35 to-card text-muted-foreground`}[e];return(0,z.jsxs)(`div`,{className:M(`rounded-md border bg-gradient-to-br p-4 shadow-xs`,i),children:[(0,z.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,z.jsx)(`div`,{className:`text-muted-foreground text-sm`,children:n}),(0,z.jsx)(t,{className:`h-4 w-4`})]}),(0,z.jsx)(`div`,{className:`mt-3 truncate font-semibold text-2xl text-foreground`,children:r})]})}function TU({chain:e}){let t=SU[e.status??`unknown`],n=e.success_rate??0;return(0,z.jsxs)(`div`,{className:`rounded-md border bg-background/60 p-4`,children:[(0,z.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,z.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[(0,z.jsx)(`div`,{className:`flex size-9 shrink-0 items-center justify-center rounded-full border bg-secondary shadow-sm`,children:e.network&&(0,z.jsx)(an,{alt:``,className:`size-6 rounded-full`,height:24,name:e.network,type:`network`,width:24})}),(0,z.jsxs)(`div`,{className:`min-w-0`,children:[(0,z.jsx)(`div`,{className:`truncate font-medium`,children:e.display_name||e.network||`-`}),(0,z.jsx)(`div`,{className:`truncate text-muted-foreground text-xs`,children:e.network??`-`})]})]}),(0,z.jsxs)(Kt,{className:M(`gap-1.5 border`,t.className),variant:`outline`,children:[(0,z.jsx)(`span`,{className:M(`h-1.5 w-1.5 rounded-full`,t.dot)}),t.label()]})]}),(0,z.jsxs)(`div`,{className:`mt-4 flex items-end justify-between gap-4`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`div`,{className:`text-muted-foreground text-xs`,children:je()}),(0,z.jsxs)(`div`,{className:`font-semibold text-lg`,children:[(n*100).toFixed(1),`%`]})]}),(0,z.jsxs)(`div`,{className:`text-right`,children:[(0,z.jsx)(`div`,{className:`text-muted-foreground text-xs`,children:pe()}),(0,z.jsx)(`div`,{className:`font-mono text-sm`,children:e.latest_block_height?dt(e.latest_block_height,0):`-`})]})]}),(0,z.jsx)(`div`,{className:`mt-3 h-1.5 overflow-hidden rounded-full bg-muted`,children:(0,z.jsx)(`div`,{className:`h-full rounded-full bg-cyan-500 transition-all duration-500`,style:{width:`${Math.max(3,Math.min(100,n*100))}%`}})}),(0,z.jsx)(`div`,{className:`mt-3 text-muted-foreground text-xs`,children:Ge({time:ut(e.last_sync_at)})})]})}function EU(){return(0,z.jsxs)(`div`,{className:`space-y-5`,children:[(0,z.jsx)(`div`,{className:`grid gap-3 md:grid-cols-4`,children:bU.map(e=>(0,z.jsxs)(`div`,{className:`rounded-md border bg-gradient-to-br from-muted/80 via-card to-card p-4 shadow-xs`,children:[(0,z.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,z.jsx)(jt,{className:`h-4 w-20`}),(0,z.jsx)(jt,{className:`h-4 w-4 rounded-full`})]}),(0,z.jsx)(jt,{className:`mt-3 h-8 w-24`})]},e))}),(0,z.jsxs)(`div`,{className:`space-y-3`,children:[(0,z.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,z.jsx)(jt,{className:`h-3 w-20`}),(0,z.jsx)(jt,{className:`h-3 w-32`})]}),(0,z.jsx)(`div`,{className:`grid gap-3 md:grid-cols-2 lg:grid-cols-4`,children:xU.map(e=>(0,z.jsxs)(`div`,{className:`rounded-md border bg-background/60 p-4`,children:[(0,z.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,z.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[(0,z.jsx)(jt,{className:`size-9 shrink-0 rounded-full`}),(0,z.jsxs)(`div`,{className:`space-y-2`,children:[(0,z.jsx)(jt,{className:`h-4 w-24`}),(0,z.jsx)(jt,{className:`h-3 w-16`})]})]}),(0,z.jsx)(jt,{className:`h-6 w-14 rounded-full`})]}),(0,z.jsxs)(`div`,{className:`mt-4 flex items-end justify-between gap-4`,children:[(0,z.jsxs)(`div`,{className:`space-y-2`,children:[(0,z.jsx)(jt,{className:`h-3 w-12`}),(0,z.jsx)(jt,{className:`h-6 w-16`})]}),(0,z.jsxs)(`div`,{className:`space-y-2`,children:[(0,z.jsx)(jt,{className:`ml-auto h-3 w-14`}),(0,z.jsx)(jt,{className:`h-5 w-24`})]})]}),(0,z.jsx)(jt,{className:`mt-3 h-1.5 w-full rounded-full`}),(0,z.jsx)(jt,{className:`mt-3 h-3 w-32`})]},e))})]})]})}var DU=`/admin/api/v1/dashboard/rpc-stats`;function OU(){let[e,t]=(0,I.useState)(),[n,r]=(0,I.useState)(`connecting`),[i,a]=(0,I.useState)();return(0,I.useEffect)(()=>{let e,n=!1,i,o=async()=>{i=new AbortController,r(e=>e===`connected`?e:`connecting`),a(void 0);try{let e=await fetch(AU(DU),{headers:kU(),signal:i.signal});if(!e.ok)throw Error(`RPC stats stream failed: ${e.status}`);if(!e.body){let n=await e.json();n.data&&(t(n.data),r(`connected`));return}r(`connected`),await jU(e.body,e=>{e.data&&t(e.data)})}catch(t){if(n||i?.signal.aborted)return;r(`error`),a(t instanceof Error?t.message:`RPC stats stream disconnected`),e=setTimeout(o,2500)}};return o(),()=>{n=!0,i?.abort(),e&&clearTimeout(e)}},[]),{data:e,error:i,status:n}}function kU(){let e=new Headers({Accept:`text/event-stream`}),t=wt(i);if(t)try{let n=JSON.parse(t);n&&e.set(`Authorization`,`Bearer ${n}`)}catch{}return e}function AU(e){if(/^https?:\/\//.test(`/`))return new URL(e,`/`).toString();let t=`/`.replace(/\/$/,``),n=e.startsWith(`/`)?e:`/${e}`;return new URL(`${t}${n}`,window.location.origin).toString()}async function jU(e,t){let n=e.getReader(),r=new TextDecoder,i=``;for(;;){let{done:e,value:a}=await n.read();if(e)break;i+=r.decode(a,{stream:!0});let o=i.split(/\n\n|\r\n\r\n/);i=o.pop()??``;for(let e of o){let n=e.split(/\r?\n/).filter(e=>e.startsWith(`data:`)).map(e=>e.replace(/^data:\s?/,``)).join(` -`);if(!(!n||n===`[DONE]`))try{t(JSON.parse(n))}catch{}}}}var MU=Array.from({length:12},(e,t)=>`stat-${t}`),NU=Array.from({length:10},(e,t)=>`order-${t}`);function PU(){return(0,z.jsx)(`div`,{className:`grid gap-4 sm:grid-cols-2 lg:grid-cols-4 xl:grid-cols-6`,children:MU.map(e=>(0,z.jsxs)(rn,{children:[(0,z.jsx)(en,{className:`pb-2`,children:(0,z.jsx)(jt,{className:`h-4 w-24`})}),(0,z.jsx)(tn,{children:(0,z.jsx)(jt,{className:`h-7 w-20`})})]},e))})}function FU(){return(0,z.jsx)(jt,{className:`h-80 w-full rounded-md`})}function IU(){return(0,z.jsx)(`div`,{className:`overflow-hidden rounded-md border`,children:(0,z.jsxs)(Qt,{children:[(0,z.jsx)(qt,{children:(0,z.jsxs)(Xt,{children:[(0,z.jsx)(Jt,{children:$e()}),(0,z.jsx)(Jt,{children:ce()}),(0,z.jsx)(Jt,{children:we()}),(0,z.jsx)(Jt,{children:Ee()}),(0,z.jsx)(Jt,{children:Pe()}),(0,z.jsx)(Jt,{children:Ve()}),(0,z.jsx)(Jt,{children:Se()})]})}),(0,z.jsx)(Yt,{children:NU.map(e=>(0,z.jsxs)(Xt,{children:[(0,z.jsx)(Zt,{children:(0,z.jsx)(Et,{type:`date`})}),(0,z.jsx)(Zt,{children:(0,z.jsxs)(`div`,{className:`space-y-1`,children:[(0,z.jsx)(Et,{type:`id`}),(0,z.jsx)(jt,{className:`h-3 w-24`})]})}),(0,z.jsx)(Zt,{children:(0,z.jsx)(Et,{type:`long`})}),(0,z.jsx)(Zt,{children:(0,z.jsx)(Et,{type:`amount`})}),(0,z.jsx)(Zt,{children:(0,z.jsx)(Et,{type:`amount`})}),(0,z.jsx)(Zt,{children:(0,z.jsx)(Et,{type:`short`})}),(0,z.jsx)(Zt,{children:(0,z.jsx)(Et,{type:`badge`})})]},e))})]})})}function LU(){let[e,t]=(0,I.useState)(`today`),[n,i]=(0,I.useState)(new Set),[a,o]=(0,I.useState)(),s=OU(),c=r.useQuery(`get`,`/admin/api/v1/dashboard/overview`),l={range:e};e===`custom`&&a?.from&&(l.start_at=Math.floor(a.from.getTime()/1e3),a.to&&(l.end_at=Math.floor(a.to.getTime()/1e3)));let u=r.useQuery(`get`,`/admin/api/v1/dashboard/asset-trend`,{params:{query:l}},{enabled:e!==`custom`||!!a?.from}),d=r.useQuery(`get`,`/admin/api/v1/dashboard/revenue-trend`,{params:{query:l}},{enabled:e!==`custom`||!!a?.from}),f=r.useQuery(`get`,`/admin/api/v1/dashboard/order-stats`,{params:{query:l}},{enabled:e!==`custom`||!!a?.from}),p=r.useQuery(`get`,`/admin/api/v1/dashboard/recent-orders`),m=u.data?.data??[],h=d.data?.data??[],g=p.data?.data??[];return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(Ft,{}),(0,z.jsxs)(It,{className:`flex flex-1 flex-col gap-4 sm:gap-6`,children:[(0,z.jsx)(Gt,{description:rt(),title:fe()}),(c.isLoading||f.isLoading)&&(0,z.jsx)(PU,{}),!(c.isLoading||f.isLoading)&&c.data?.data&&(0,z.jsx)(mU,{orderStats:f.data?.data??{},overview:c.data.data,rpcStats:s.data}),(0,z.jsx)(CU,{error:s.error,stats:s.data,status:s.status}),(0,z.jsx)(RU,{customRange:a,range:e,selectedAddrs:n,setCustomRange:o,setRange:t,setSelectedAddrs:i,trendData:m,trendLoading:u.isLoading}),(0,z.jsxs)(`div`,{className:`grid gap-4 xl:grid-cols-7`,children:[(0,z.jsxs)(rn,{className:`xl:col-span-4`,children:[(0,z.jsxs)(en,{children:[(0,z.jsx)($t,{children:ge()}),(0,z.jsx)(nn,{children:Ze()})]}),(0,z.jsxs)(tn,{children:[d.isLoading&&(0,z.jsx)(FU,{}),!d.isLoading&&h.length>0&&(0,z.jsx)(gU,{data:h})]})]}),(0,z.jsxs)(rn,{className:`xl:col-span-3`,children:[(0,z.jsxs)(en,{children:[(0,z.jsx)($t,{children:Me()}),(0,z.jsx)(nn,{children:me()})]}),(0,z.jsxs)(tn,{children:[d.isLoading&&(0,z.jsx)(FU,{}),!d.isLoading&&h.length>0&&(0,z.jsx)(vU,{data:h})]})]})]}),(0,z.jsxs)(rn,{children:[(0,z.jsxs)(en,{children:[(0,z.jsx)($t,{children:Ke()}),(0,z.jsx)(nn,{children:ze()})]}),(0,z.jsxs)(tn,{children:[p.isLoading&&(0,z.jsx)(IU,{}),!p.isLoading&&g.length>0&&(0,z.jsx)(yU,{orders:g}),!p.isLoading&&g.length===0&&(0,z.jsx)(`div`,{className:`py-8 text-center text-muted-foreground`,children:ue()})]})]})]})]})}function RU({customRange:e,range:t,selectedAddrs:n,setCustomRange:r,setRange:i,setSelectedAddrs:a,trendData:s,trendLoading:c}){return(0,z.jsxs)(rn,{children:[(0,z.jsxs)(en,{className:`flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)($t,{children:Oe()}),(0,z.jsx)(nn,{children:We()})]}),(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,z.jsx)(pU.Filter,{data:s,onChange:a,selected:n}),(0,z.jsx)(yt,{onValueChange:e=>{i(e),e!==`custom`&&r(void 0)},value:t,children:(0,z.jsxs)(_t,{children:[(0,z.jsx)(vt,{value:`today`,children:Fe()}),(0,z.jsx)(vt,{value:`7d`,children:qe()}),(0,z.jsx)(vt,{value:`30d`,children:_e()}),(0,z.jsx)(vt,{value:`custom`,children:o()})]})}),t===`custom`&&(0,z.jsx)(Fo,{onSelect:e=>r(e),selected:e})]})]}),(0,z.jsxs)(tn,{children:[c&&(0,z.jsx)(FU,{}),!c&&s.length>0&&(0,z.jsx)(pU,{data:s,range:t,selected:n})]})]})}var zU=LU;export{zU as component}; \ No newline at end of file +`)}}):null},rU=TM;function iU({active:e,payload:t,className:n,indicator:r=`dot`,hideLabel:i=!1,hideIndicator:a=!1,label:o,labelFormatter:s,labelClassName:c,formatter:l,color:u,nameKey:d,labelKey:f}){let{config:p}=eU(),m=I.useMemo(()=>{if(i||!t?.length)return null;let[e]=t,n=sU(p,e,`${f??e?.dataKey??e?.name??`value`}`),r=!f&&typeof o==`string`?p[o]?.label??o:n?.label;return s?(0,z.jsx)(`div`,{className:M(`font-medium`,c),children:s(r,t)}):r?(0,z.jsx)(`div`,{className:M(`font-medium`,c),children:r}):null},[o,s,t,i,c,p,f]);if(!e||!t?.length)return null;let h=t.length===1&&r!==`dot`;return(0,z.jsxs)(`div`,{className:M(`grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl`,n),children:[h?null:m,(0,z.jsx)(`div`,{className:`grid gap-1.5`,children:t.filter(e=>e.type!==`none`).map((e,t)=>{let n=sU(p,e,`${d??e.name??e.dataKey??`value`}`),i=u??e.payload?.fill??e.color;return(0,z.jsx)(`div`,{className:M(`flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground`,r===`dot`&&`items-center`),children:l&&e?.value!==void 0&&e.name?l(e.value,e.name,e,t,e.payload):(0,z.jsxs)(z.Fragment,{children:[n?.icon?(0,z.jsx)(n.icon,{}):!a&&(0,z.jsx)(`div`,{className:M(`shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)`,{"h-2.5 w-2.5":r===`dot`,"w-1":r===`line`,"w-0 border-[1.5px] border-dashed bg-transparent":r===`dashed`,"my-0.5":h&&r===`dashed`}),style:{"--color-bg":i,"--color-border":i}}),(0,z.jsxs)(`div`,{className:M(`flex flex-1 justify-between leading-none`,h?`items-end`:`items-center`),children:[(0,z.jsxs)(`div`,{className:`grid gap-1.5`,children:[h?m:null,(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:n?.label??e.name})]}),e.value!=null&&(0,z.jsx)(`span`,{className:`font-mono font-medium text-foreground tabular-nums`,children:typeof e.value==`number`?e.value.toLocaleString():String(e.value)})]})]})},t)})})]})}var aU=s_;function oU({className:e,hideIcon:t=!1,payload:n,verticalAlign:r=`bottom`,nameKey:i}){let{config:a}=eU();return n?.length?(0,z.jsx)(`div`,{className:M(`flex items-center justify-center gap-4`,r===`top`?`pb-3`:`pt-3`,e),children:n.filter(e=>e.type!==`none`).map((e,n)=>{let r=sU(a,e,`${i??e.dataKey??`value`}`);return(0,z.jsxs)(`div`,{className:M(`flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground`),children:[r?.icon&&!t?(0,z.jsx)(r.icon,{}):(0,z.jsx)(`div`,{className:`h-2 w-2 shrink-0 rounded-[2px]`,style:{backgroundColor:e.color}}),r?.label]},n)})}):null}function sU(e,t,n){if(typeof t!=`object`||!t)return;let r=`payload`in t&&typeof t.payload==`object`&&t.payload!==null?t.payload:void 0,i=n;return n in t&&typeof t[n]==`string`?i=t[n]:r&&n in r&&typeof r[n]==`string`&&(i=r[n]),i in e?e[i]:e[n]}var cU=[{key:`total_amount`,label:()=>c()},{key:`actual_amount`,label:()=>E()}],lU=e=>ct(e);function uU({selected:e,onChange:t}){let[n,r]=(0,I.useState)(!1),i=n=>{let r=new Set(e);r.has(n)?r.delete(n):r.add(n),t(r)},a=t=>e.size>0&&!e.has(t);return(0,z.jsxs)(gt,{onOpenChange:r,open:n,children:[(0,z.jsx)(ht,{asChild:!0,children:(0,z.jsxs)(pt,{className:`h-8 border-dashed`,size:`sm`,variant:`outline`,children:[(0,z.jsx)(un,{className:`size-4`}),Fe(),e.size>0&&(0,z.jsx)(`span`,{className:`ml-1 rounded bg-primary px-1 py-0.5 text-[10px] text-primary-foreground`,children:e.size})]})}),(0,z.jsx)(mt,{align:`end`,className:`w-48 p-0`,children:(0,z.jsx)(Ht,{children:(0,z.jsxs)(Vt,{children:[(0,z.jsx)(Bt,{children:Ye()}),(0,z.jsx)(Rt,{children:cU.map(({key:e,label:t})=>(0,z.jsxs)(zt,{onSelect:()=>i(e),children:[(0,z.jsx)(`div`,{className:M(`flex size-4 items-center justify-center rounded-sm border border-primary`,a(e)?`opacity-50 [&_svg]:invisible`:`bg-primary [&_svg]:visible`),children:(0,z.jsx)(Ot,{className:`h-4 w-4 text-primary-foreground`})}),(0,z.jsx)(`span`,{children:t()})]},e))}),e.size>0&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(Lt,{}),(0,z.jsx)(Rt,{children:(0,z.jsx)(zt,{className:`justify-center text-center`,onSelect:()=>t(new Set),children:ve()})})]})]})})})]})}var dU={total_amount:{label:c(),color:`var(--chart-1)`},actual_amount:{label:E(),color:`var(--chart-2)`}};function fU({data:e,selected:t}){let n=e=>t.size===0||t.has(e);return(0,z.jsx)(`div`,{className:`space-y-4`,children:(0,z.jsx)(tU,{className:`h-80 w-full`,config:dU,children:(0,z.jsxs)(XH,{data:e,children:[(0,z.jsx)(ZL,{strokeDasharray:`3 3`,vertical:!1}),(0,z.jsx)($B,{dataKey:`day`,tickFormatter:lt}),(0,z.jsx)(mV,{tickFormatter:e=>e>=1e3?`$${(e/1e3).toFixed(0)}k`:`$${e}`,width:60}),(0,z.jsx)(rU,{content:(0,z.jsx)(iU,{className:`min-w-44`,formatter:(e,t,n)=>(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`div`,{className:`h-2.5 w-2.5 shrink-0 rounded-xs`,style:{background:n.color}}),(0,z.jsxs)(`div`,{className:`flex flex-1 items-center justify-between gap-6 leading-none`,children:[(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:dU[t]?.label??t}),(0,z.jsx)(`span`,{className:`font-medium font-mono text-foreground tabular-nums`,children:lU(Number(e))})]})]})})}),(0,z.jsx)(aU,{content:(0,z.jsx)(oU,{})}),n(`total_amount`)&&(0,z.jsx)(Mz,{dataKey:`total_amount`,fill:`var(--chart-1)`,fillOpacity:.1,stroke:`var(--chart-1)`,strokeWidth:2.5,type:`monotone`}),n(`actual_amount`)&&(0,z.jsx)(Mz,{dataKey:`actual_amount`,fill:`var(--chart-2)`,fillOpacity:.2,stroke:`var(--chart-2)`,strokeWidth:1.5,type:`monotone`})]})})})}var pU=Object.assign(fU,{Filter:uU});function mU({overview:e,orderStats:t,rpcStats:n}){let r=n?.summary?.ok_chains??n?.summary?.active_chains??e.online_chains??0;return(0,z.jsx)(St,{children:(0,z.jsx)(`div`,{className:`grid gap-4 sm:grid-cols-2 lg:grid-cols-4 xl:grid-cols-6`,children:[{title:ae(),value:ct(e.total_asset??0),icon:fn,hint:ne()},{title:re(),value:ct(e.volume??0),icon:cn,hint:v()},{title:Be(),value:(e.order_count??0).toString(),icon:mn,hint:y()},{title:h(),value:`${((e.success_rate??0)*100).toFixed(1)}%`,icon:gn,hint:j()},{title:te(),value:(t.order_count??0).toString(),icon:on,hint:g()},{title:A(),value:(t.success_count??0).toString(),icon:mn,hint:u()},{title:it(),value:`${Math.round(t.avg_payment_seconds??0)}s`,icon:Nt,hint:O()},{title:b(),value:(t.expired_unpaid_count??0).toString(),icon:ln,hint:_()},{title:m(),value:ct(e.seven_day_volume??0),icon:cn,hint:w()},{title:S(),value:(e.active_addresses??0).toString(),icon:ln,hint:x()},{title:De(),value:r.toString(),icon:dn,hint:l()},{title:Oe(),value:`${((t.success_rate??0)*100).toFixed(1)}%`,icon:on,hint:C()}].map(e=>(0,z.jsxs)(rn,{children:[(0,z.jsxs)(en,{className:`flex flex-row items-center justify-between space-y-0 pb-2`,children:[(0,z.jsx)($t,{className:`font-medium text-sm`,children:e.title}),(0,z.jsxs)(Ct,{children:[(0,z.jsx)(bt,{asChild:!0,children:(0,z.jsx)(e.icon,{className:`h-4 w-4 cursor-help text-muted-foreground`})}),(0,z.jsx)(xt,{children:(0,z.jsx)(`p`,{children:e.hint})})]})]}),(0,z.jsx)(tn,{children:(0,z.jsx)(`div`,{className:`font-bold text-2xl`,children:e.value})})]},e.title))})})}var hU={total_amount:{label:Ie(),color:`var(--chart-2)`},actual_amount:{label:ce(),color:`var(--chart-5)`}};function gU({data:e}){return(0,z.jsx)(tU,{className:`h-80 w-full`,config:hU,children:(0,z.jsxs)(JH,{barGap:8,data:e,children:[(0,z.jsx)(ZL,{strokeDasharray:`3 3`,vertical:!1}),(0,z.jsx)($B,{dataKey:`day`,tickFormatter:lt}),(0,z.jsx)(rU,{content:(0,z.jsx)(iU,{className:`min-w-40`,formatter:(e,t,n)=>(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`div`,{className:`h-2.5 w-2.5 shrink-0 rounded-[2px]`,style:{background:n.color}}),(0,z.jsxs)(`div`,{className:`flex flex-1 items-center justify-between gap-6 leading-none`,children:[(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:hU[t]?.label??t}),(0,z.jsx)(`span`,{className:`font-medium font-mono text-foreground tabular-nums`,children:ct(Number(e))})]})]})})}),(0,z.jsx)(aU,{content:(0,z.jsx)(oU,{})}),(0,z.jsx)(MB,{dataKey:`total_amount`,fill:`var(--color-total_amount)`,radius:[8,8,0,0]}),(0,z.jsx)(MB,{dataKey:`actual_amount`,fill:`var(--color-actual_amount)`,radius:[8,8,0,0]})]})})}var _U={order_count:{label:Te(),color:`var(--chart-1)`},success_count:{label:Ve(),color:`var(--chart-3)`}};function vU({data:e}){return(0,z.jsx)(tU,{className:`h-80 w-full`,config:_U,children:(0,z.jsxs)(XH,{data:e,children:[(0,z.jsx)(ZL,{strokeDasharray:`3 3`,vertical:!1}),(0,z.jsx)($B,{dataKey:`day`}),(0,z.jsx)(mV,{allowDecimals:!1,yAxisId:`left`}),(0,z.jsx)(mV,{allowDecimals:!1,hide:!0,yAxisId:`right`}),(0,z.jsx)(rU,{content:(0,z.jsx)(iU,{className:`min-w-40`,formatter:(e,t,n)=>(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`div`,{className:`h-2.5 w-2.5 shrink-0 rounded-[2px]`,style:{background:n.color}}),(0,z.jsxs)(`div`,{className:`flex flex-1 items-center justify-between gap-6 leading-none`,children:[(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:_U[t]?.label??t}),(0,z.jsx)(`span`,{className:`font-medium font-mono text-foreground tabular-nums`,children:Number(e).toLocaleString()})]})]})})}),(0,z.jsx)(aU,{content:(0,z.jsx)(oU,{})}),(0,z.jsx)(MB,{dataKey:`order_count`,fill:`var(--color-order_count)`,radius:[8,8,0,0],yAxisId:`left`}),(0,z.jsx)(qR,{dataKey:`success_count`,dot:{r:3},stroke:`var(--color-success_count)`,strokeWidth:2,type:`monotone`,yAxisId:`right`})]})})}function yU({orders:e}){let t=ot();return(0,z.jsx)(`div`,{className:`overflow-hidden rounded-md border`,children:(0,z.jsxs)(Qt,{children:[(0,z.jsx)(qt,{children:(0,z.jsxs)(Xt,{className:`group/row`,children:[(0,z.jsx)(Jt,{className:`bg-background group-hover/row:bg-muted`,children:$e()}),(0,z.jsx)(Jt,{className:`bg-background group-hover/row:bg-muted`,children:se()}),(0,z.jsx)(Jt,{className:`bg-background group-hover/row:bg-muted`,children:Se()}),(0,z.jsx)(Jt,{className:`bg-background group-hover/row:bg-muted`,children:we()}),(0,z.jsx)(Jt,{className:`bg-background group-hover/row:bg-muted`,children:Me()}),(0,z.jsx)(Jt,{className:`bg-background group-hover/row:bg-muted`,children:ze()}),(0,z.jsx)(Jt,{className:`bg-background group-hover/row:bg-muted`,children:be()})]})}),(0,z.jsx)(Yt,{children:e.map(e=>(0,z.jsxs)(Xt,{className:`group/row cursor-pointer`,onClick:()=>t({to:`/orders`}),children:[(0,z.jsx)(Zt,{className:`bg-background group-hover/row:bg-muted`,children:ut(e.created_at)}),(0,z.jsxs)(Zt,{className:`bg-background font-medium group-hover/row:bg-muted`,children:[(0,z.jsx)(`div`,{children:e.id}),(0,z.jsx)(`div`,{className:`text-muted-foreground text-xs`,children:e.order_id})]}),(0,z.jsx)(Zt,{className:`bg-background group-hover/row:bg-muted`,children:e.receive_address}),(0,z.jsxs)(Zt,{className:`bg-background group-hover/row:bg-muted`,children:[dt(e.amount),` `,e.currency]}),(0,z.jsxs)(Zt,{className:`bg-background group-hover/row:bg-muted`,children:[dt(e.actual_amount,6),` `,e.token||``]}),(0,z.jsx)(Zt,{className:`bg-background group-hover/row:bg-muted`,children:e.network}),(0,z.jsx)(Zt,{className:`bg-background group-hover/row:bg-muted`,children:(0,z.jsx)(Kt,{className:M(Mt[e.status??1]),children:Pt(e.status)})})]},e.id))})]})})}var bU=[`success`,`active`,`block`,`down`],xU=[`tron`,`ton`,`bsc`,`polygon`,`ethereum`,`solana`,`base`,`arbitrum`],SU={ok:{className:`border-emerald-500/30 bg-emerald-500/10 text-emerald-700`,dot:`bg-emerald-500`,label:()=>je()},warning:{className:`border-amber-500/30 bg-amber-500/10 text-amber-700`,dot:`bg-amber-500`,label:()=>Re()},down:{className:`border-rose-500/30 bg-rose-500/10 text-rose-700`,dot:`bg-rose-500`,label:()=>ye()},unknown:{className:`border-slate-500/30 bg-slate-500/10 text-slate-700`,dot:`bg-slate-500`,label:()=>me()},disabled:{className:`border-zinc-500/30 bg-zinc-500/10 text-zinc-700`,dot:`bg-zinc-500`,label:()=>Xe()}};function CU({error:e,stats:t,status:n}){let r=t?.summary,i=[...t?.chains??[]].sort((e,t)=>(e.display_name??e.network??``).localeCompare(t.display_name??t.network??``)),a=r?.success_rate??0,o=r?.active_chains??0,s=r?.total_chains??i.length,c=i.reduce((e,t)=>Math.max(e,t.latest_block_height??0),0),l=d();return n===`connected`?l=ee():n===`connecting`&&(l=et()),(0,z.jsxs)(rn,{children:[(0,z.jsxs)(en,{className:`flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between`,children:[(0,z.jsxs)(`div`,{className:`space-y-1`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(pn,{className:`h-5 w-5 text-cyan-600`}),(0,z.jsx)($t,{children:f()})]}),(0,z.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:p()})]}),(0,z.jsxs)(Kt,{className:M(`w-fit gap-2 border`,n===`connected`?`border-emerald-500/30 bg-emerald-500/10 text-emerald-700`:`border-amber-500/30 bg-amber-500/10 text-amber-700`),variant:`outline`,children:[(0,z.jsx)(`span`,{className:M(`h-2 w-2 rounded-full`,n===`connected`?`bg-emerald-500`:`bg-amber-500`,n!==`error`&&`animate-pulse`)}),l]})]}),(0,z.jsxs)(tn,{className:`space-y-5 px-4 sm:px-6`,children:[!(t||e)&&(0,z.jsx)(EU,{}),e&&!t&&(0,z.jsxs)(`div`,{className:`flex items-center gap-3 rounded-md border border-amber-500/30 bg-amber-500/10 p-4 text-amber-700`,children:[(0,z.jsx)(Wt,{className:`h-5 w-5 shrink-0`}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`div`,{className:`font-medium`,children:k()}),(0,z.jsx)(`div`,{className:`text-sm opacity-80`,children:e})]})]}),t&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`div`,{className:`grid gap-3 md:grid-cols-4`,children:[(0,z.jsx)(wU,{accent:`cyan`,icon:Ut,label:tt(),value:`${(a*100).toFixed(1)}%`}),(0,z.jsx)(wU,{accent:`emerald`,icon:_n,label:ue(),value:`${o}/${s}`}),(0,z.jsx)(wU,{accent:`neutral`,icon:hn,label:nt(),value:c?dt(c,0):`-`}),(0,z.jsx)(wU,{accent:`amber`,icon:Wt,label:Qe(),value:String((r?.warning_chains??0)+(r?.down_chains??0))})]}),(0,z.jsxs)(`div`,{className:`space-y-3`,children:[(0,z.jsxs)(`div`,{className:`flex items-center justify-between gap-3 text-muted-foreground text-xs`,children:[(0,z.jsx)(`span`,{children:oe()}),(0,z.jsx)(`span`,{children:xe({time:ut(t.generated_at)})})]}),(0,z.jsxs)(`div`,{className:`grid gap-3 md:grid-cols-2 lg:grid-cols-4`,children:[i.map(e=>(0,z.jsx)(TU,{chain:e},e.network??e.display_name)),i.length===0&&(0,z.jsx)(`div`,{className:`rounded-md border border-dashed p-6 text-center text-muted-foreground text-sm md:col-span-2 lg:col-span-4`,children:Ce()})]})]})]})]})]})}function wU({accent:e,icon:t,label:n,value:r}){let i={amber:`from-amber-500/18 via-amber-500/5 to-card text-amber-700`,cyan:`from-cyan-500/18 via-cyan-500/5 to-card text-cyan-700`,emerald:`from-emerald-500/18 via-emerald-500/5 to-card text-emerald-700`,neutral:`from-muted via-muted/35 to-card text-muted-foreground`}[e];return(0,z.jsxs)(`div`,{className:M(`rounded-md border bg-gradient-to-br p-4 shadow-xs`,i),children:[(0,z.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,z.jsx)(`div`,{className:`text-muted-foreground text-sm`,children:n}),(0,z.jsx)(t,{className:`h-4 w-4`})]}),(0,z.jsx)(`div`,{className:`mt-3 truncate font-semibold text-2xl text-foreground`,children:r})]})}function TU({chain:e}){let t=SU[e.status??`unknown`],n=e.success_rate??0;return(0,z.jsxs)(`div`,{className:`rounded-md border bg-background/60 p-4`,children:[(0,z.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,z.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[(0,z.jsx)(`div`,{className:`flex size-9 shrink-0 items-center justify-center rounded-full border bg-secondary shadow-sm`,children:e.network&&(0,z.jsx)(an,{alt:``,className:`size-6 rounded-full`,height:24,name:e.network,type:`network`,width:24})}),(0,z.jsxs)(`div`,{className:`min-w-0`,children:[(0,z.jsx)(`div`,{className:`truncate font-medium`,children:e.display_name||e.network||`-`}),(0,z.jsx)(`div`,{className:`truncate text-muted-foreground text-xs`,children:e.network??`-`})]})]}),(0,z.jsxs)(Kt,{className:M(`gap-1.5 border`,t.className),variant:`outline`,children:[(0,z.jsx)(`span`,{className:M(`h-1.5 w-1.5 rounded-full`,t.dot)}),t.label()]})]}),(0,z.jsxs)(`div`,{className:`mt-4 flex items-end justify-between gap-4`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`div`,{className:`text-muted-foreground text-xs`,children:ke()}),(0,z.jsxs)(`div`,{className:`font-semibold text-lg`,children:[(n*100).toFixed(1),`%`]})]}),(0,z.jsxs)(`div`,{className:`text-right`,children:[(0,z.jsx)(`div`,{className:`text-muted-foreground text-xs`,children:fe()}),(0,z.jsx)(`div`,{className:`font-mono text-sm`,children:e.latest_block_height?dt(e.latest_block_height,0):`-`})]})]}),(0,z.jsx)(`div`,{className:`mt-3 h-1.5 overflow-hidden rounded-full bg-muted`,children:(0,z.jsx)(`div`,{className:`h-full rounded-full bg-cyan-500 transition-all duration-500`,style:{width:`${Math.max(3,Math.min(100,n*100))}%`}})}),(0,z.jsx)(`div`,{className:`mt-3 text-muted-foreground text-xs`,children:We({time:ut(e.last_sync_at)})})]})}function EU(){return(0,z.jsxs)(`div`,{className:`space-y-5`,children:[(0,z.jsx)(`div`,{className:`grid gap-3 md:grid-cols-4`,children:bU.map(e=>(0,z.jsxs)(`div`,{className:`rounded-md border bg-gradient-to-br from-muted/80 via-card to-card p-4 shadow-xs`,children:[(0,z.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,z.jsx)(jt,{className:`h-4 w-20`}),(0,z.jsx)(jt,{className:`h-4 w-4 rounded-full`})]}),(0,z.jsx)(jt,{className:`mt-3 h-8 w-24`})]},e))}),(0,z.jsxs)(`div`,{className:`space-y-3`,children:[(0,z.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,z.jsx)(jt,{className:`h-3 w-20`}),(0,z.jsx)(jt,{className:`h-3 w-32`})]}),(0,z.jsx)(`div`,{className:`grid gap-3 md:grid-cols-2 lg:grid-cols-4`,children:xU.map(e=>(0,z.jsxs)(`div`,{className:`rounded-md border bg-background/60 p-4`,children:[(0,z.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,z.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[(0,z.jsx)(jt,{className:`size-9 shrink-0 rounded-full`}),(0,z.jsxs)(`div`,{className:`space-y-2`,children:[(0,z.jsx)(jt,{className:`h-4 w-24`}),(0,z.jsx)(jt,{className:`h-3 w-16`})]})]}),(0,z.jsx)(jt,{className:`h-6 w-14 rounded-full`})]}),(0,z.jsxs)(`div`,{className:`mt-4 flex items-end justify-between gap-4`,children:[(0,z.jsxs)(`div`,{className:`space-y-2`,children:[(0,z.jsx)(jt,{className:`h-3 w-12`}),(0,z.jsx)(jt,{className:`h-6 w-16`})]}),(0,z.jsxs)(`div`,{className:`space-y-2`,children:[(0,z.jsx)(jt,{className:`ml-auto h-3 w-14`}),(0,z.jsx)(jt,{className:`h-5 w-24`})]})]}),(0,z.jsx)(jt,{className:`mt-3 h-1.5 w-full rounded-full`}),(0,z.jsx)(jt,{className:`mt-3 h-3 w-32`})]},e))})]})]})}var DU=`/admin/api/v1/dashboard/rpc-stats`;function OU(){let[e,t]=(0,I.useState)(),[n,r]=(0,I.useState)(`connecting`),[i,a]=(0,I.useState)();return(0,I.useEffect)(()=>{let e,n=!1,i,o=async()=>{i=new AbortController,r(e=>e===`connected`?e:`connecting`),a(void 0);try{let e=await fetch(AU(DU),{headers:kU(),signal:i.signal});if(!e.ok)throw Error(`RPC stats stream failed: ${e.status}`);if(!e.body){let n=await e.json();n.data&&(t(n.data),r(`connected`));return}r(`connected`),await jU(e.body,e=>{e.data&&t(e.data)})}catch(t){if(n||i?.signal.aborted)return;r(`error`),a(t instanceof Error?t.message:`RPC stats stream disconnected`),e=setTimeout(o,2500)}};return o(),()=>{n=!0,i?.abort(),e&&clearTimeout(e)}},[]),{data:e,error:i,status:n}}function kU(){let e=new Headers({Accept:`text/event-stream`}),t=wt(i);if(t)try{let n=JSON.parse(t);n&&e.set(`Authorization`,`Bearer ${n}`)}catch{}return e}function AU(e){if(/^https?:\/\//.test(`/`))return new URL(e,`/`).toString();let t=`/`.replace(/\/$/,``),n=e.startsWith(`/`)?e:`/${e}`;return new URL(`${t}${n}`,window.location.origin).toString()}async function jU(e,t){let n=e.getReader(),r=new TextDecoder,i=``;for(;;){let{done:e,value:a}=await n.read();if(e)break;i+=r.decode(a,{stream:!0});let o=i.split(/\n\n|\r\n\r\n/);i=o.pop()??``;for(let e of o){let n=e.split(/\r?\n/).filter(e=>e.startsWith(`data:`)).map(e=>e.replace(/^data:\s?/,``)).join(` +`);if(!(!n||n===`[DONE]`))try{t(JSON.parse(n))}catch{}}}}var MU=Array.from({length:12},(e,t)=>`stat-${t}`),NU=Array.from({length:10},(e,t)=>`order-${t}`);function PU(){return(0,z.jsx)(`div`,{className:`grid gap-4 sm:grid-cols-2 lg:grid-cols-4 xl:grid-cols-6`,children:MU.map(e=>(0,z.jsxs)(rn,{children:[(0,z.jsx)(en,{className:`pb-2`,children:(0,z.jsx)(jt,{className:`h-4 w-24`})}),(0,z.jsx)(tn,{children:(0,z.jsx)(jt,{className:`h-7 w-20`})})]},e))})}function FU(){return(0,z.jsx)(jt,{className:`h-80 w-full rounded-md`})}function IU(){return(0,z.jsx)(`div`,{className:`overflow-hidden rounded-md border`,children:(0,z.jsxs)(Qt,{children:[(0,z.jsx)(qt,{children:(0,z.jsxs)(Xt,{children:[(0,z.jsx)(Jt,{children:$e()}),(0,z.jsx)(Jt,{children:se()}),(0,z.jsx)(Jt,{children:Se()}),(0,z.jsx)(Jt,{children:we()}),(0,z.jsx)(Jt,{children:Me()}),(0,z.jsx)(Jt,{children:ze()}),(0,z.jsx)(Jt,{children:be()})]})}),(0,z.jsx)(Yt,{children:NU.map(e=>(0,z.jsxs)(Xt,{children:[(0,z.jsx)(Zt,{children:(0,z.jsx)(Et,{type:`date`})}),(0,z.jsx)(Zt,{children:(0,z.jsxs)(`div`,{className:`space-y-1`,children:[(0,z.jsx)(Et,{type:`id`}),(0,z.jsx)(jt,{className:`h-3 w-24`})]})}),(0,z.jsx)(Zt,{children:(0,z.jsx)(Et,{type:`long`})}),(0,z.jsx)(Zt,{children:(0,z.jsx)(Et,{type:`amount`})}),(0,z.jsx)(Zt,{children:(0,z.jsx)(Et,{type:`amount`})}),(0,z.jsx)(Zt,{children:(0,z.jsx)(Et,{type:`short`})}),(0,z.jsx)(Zt,{children:(0,z.jsx)(Et,{type:`badge`})})]},e))})]})})}function LU(){let[e,t]=(0,I.useState)(`today`),[n,i]=(0,I.useState)(new Set),[a,o]=(0,I.useState)(),s=OU(),c=r.useQuery(`get`,`/admin/api/v1/dashboard/overview`),l={range:e};e===`custom`&&a?.from&&(l.start_at=Math.floor(a.from.getTime()/1e3),a.to&&(l.end_at=Math.floor(a.to.getTime()/1e3)));let u=r.useQuery(`get`,`/admin/api/v1/dashboard/asset-trend`,{params:{query:l}},{enabled:e!==`custom`||!!a?.from}),d=r.useQuery(`get`,`/admin/api/v1/dashboard/revenue-trend`,{params:{query:l}},{enabled:e!==`custom`||!!a?.from}),f=r.useQuery(`get`,`/admin/api/v1/dashboard/order-stats`,{params:{query:l}},{enabled:e!==`custom`||!!a?.from}),p=r.useQuery(`get`,`/admin/api/v1/dashboard/recent-orders`),m=u.data?.data??[],h=d.data?.data??[],g=p.data?.data??[];return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(Ft,{}),(0,z.jsxs)(It,{className:`flex flex-1 flex-col gap-4 sm:gap-6`,children:[(0,z.jsx)(Gt,{description:rt(),title:de()}),(c.isLoading||f.isLoading)&&(0,z.jsx)(PU,{}),!(c.isLoading||f.isLoading)&&c.data?.data&&(0,z.jsx)(mU,{orderStats:f.data?.data??{},overview:c.data.data,rpcStats:s.data}),(0,z.jsx)(CU,{error:s.error,stats:s.data,status:s.status}),(0,z.jsx)(RU,{customRange:a,range:e,selectedAddrs:n,setCustomRange:o,setRange:t,setSelectedAddrs:i,trendData:m,trendLoading:u.isLoading}),(0,z.jsxs)(`div`,{className:`grid gap-4 xl:grid-cols-7`,children:[(0,z.jsxs)(rn,{className:`xl:col-span-4`,children:[(0,z.jsxs)(en,{children:[(0,z.jsx)($t,{children:he()}),(0,z.jsx)(nn,{children:Ze()})]}),(0,z.jsxs)(tn,{children:[d.isLoading&&(0,z.jsx)(FU,{}),!d.isLoading&&h.length>0&&(0,z.jsx)(gU,{data:h})]})]}),(0,z.jsxs)(rn,{className:`xl:col-span-3`,children:[(0,z.jsxs)(en,{children:[(0,z.jsx)($t,{children:Ae()}),(0,z.jsx)(nn,{children:pe()})]}),(0,z.jsxs)(tn,{children:[d.isLoading&&(0,z.jsx)(FU,{}),!d.isLoading&&h.length>0&&(0,z.jsx)(vU,{data:h})]})]})]}),(0,z.jsxs)(rn,{children:[(0,z.jsxs)(en,{children:[(0,z.jsx)($t,{children:Ge()}),(0,z.jsx)(nn,{children:Le()})]}),(0,z.jsxs)(tn,{children:[p.isLoading&&(0,z.jsx)(IU,{}),!p.isLoading&&g.length>0&&(0,z.jsx)(yU,{orders:g}),!p.isLoading&&g.length===0&&(0,z.jsx)(`div`,{className:`py-8 text-center text-muted-foreground`,children:le()})]})]})]})]})}function RU({customRange:e,range:t,selectedAddrs:n,setCustomRange:r,setRange:i,setSelectedAddrs:a,trendData:s,trendLoading:c}){return(0,z.jsxs)(rn,{children:[(0,z.jsxs)(en,{className:`flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)($t,{children:Ee()}),(0,z.jsx)(nn,{children:Ue()})]}),(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,z.jsx)(pU.Filter,{data:s,onChange:a,selected:n}),(0,z.jsx)(yt,{onValueChange:e=>{i(e),e!==`custom`&&r(void 0)},value:t,children:(0,z.jsxs)(_t,{children:[(0,z.jsx)(vt,{value:`today`,children:Ne()}),(0,z.jsx)(vt,{value:`7d`,children:Ke()}),(0,z.jsx)(vt,{value:`30d`,children:ge()}),(0,z.jsx)(vt,{value:`custom`,children:o()})]})}),t===`custom`&&(0,z.jsx)(Fo,{onSelect:e=>r(e),selected:e})]})]}),(0,z.jsxs)(tn,{children:[c&&(0,z.jsx)(FU,{}),!c&&s.length>0&&(0,z.jsx)(pU,{data:s,range:t,selected:n})]})]})}var zU=LU;export{zU as component}; \ No newline at end of file diff --git a/src/www/assets/data-table-C3Nm2K6Z.js b/src/www/assets/data-table-1LQSBhN2.js similarity index 81% rename from src/www/assets/data-table-C3Nm2K6Z.js rename to src/www/assets/data-table-1LQSBhN2.js index d7ccb1c..85396db 100644 --- a/src/www/assets/data-table-C3Nm2K6Z.js +++ b/src/www/assets/data-table-1LQSBhN2.js @@ -1,4 +1,4 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{Np as n,_p as r,ap as i,cp as a,dp as o,em as s,fp as c,ft as l,gp as u,hp as d,ip as f,lp as p,mp as m,op as h,pp as g,rp as ee,sp as te,up as ne}from"./messages-Bp0bCjzp.js";import{a as re,i as _,r as ie,t as v}from"./button-BgMnOYKD.js";import{a as y,l as ae,n as oe,o as se,r as ce,s as le,t as ue,u as de}from"./dropdown-menu-8-hEBtzr.js";import{n as fe,r as pe,t as me}from"./popover-YeKifm3K.js";import{a as he,i as ge,n as _e,r as ve,t as ye}from"./select-C9s05In_.js";import{t as be}from"./separator-DbmFQXe4.js";import"./tooltip-Gx9CUpPD.js";import{t as b}from"./createLucideIcon-Br0Bd5k2.js";import{t as xe}from"./check-CHp0nSkR.js";import{n as Se,t as Ce}from"./skeleton-BQsmx80h.js";import{t as we}from"./chevrons-up-down-BPquKoYJ.js";import{t as Te}from"./eye-off-B8hO0oST.js";import{n as Ee,r as De,t as Oe}from"./empty-state-BdzO6t8R.js";import{a as ke,c as Ae,i as je,o as Me,r as Ne,s as Pe,t as Fe}from"./command-CIv3ggHf.js";import{l as Ie}from"./dialog-BJ5VA2v_.js";import{t as Le}from"./input-BleRUV2A.js";import{t as x}from"./badge-BP05f1dq.js";import{a as Re,i as ze,n as Be,o as S,r as C,t as Ve}from"./table-503PQfKg.js";var He=b(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),Ue=b(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),We=b(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),Ge=b(`chevrons-left`,[[`path`,{d:`m11 17-5-5 5-5`,key:`13zhaf`}],[`path`,{d:`m18 17-5-5 5-5`,key:`h8a8et`}]]),Ke=b(`chevrons-right`,[[`path`,{d:`m6 17 5-5-5-5`,key:`xnjwq`}],[`path`,{d:`m13 17 5-5-5-5`,key:`17xmmf`}]]),qe=b(`circle-plus`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}],[`path`,{d:`M12 8v8`,key:`napkw2`}]]),w=e(t(),1),T=s();function E(e,t){return typeof e==`function`?e(t):e}function D(e,t){return n=>{t.setState(t=>({...t,[e]:E(n,t[e])}))}}function O(e){return e instanceof Function}function Je(e){return Array.isArray(e)&&e.every(e=>typeof e==`number`)}function Ye(e,t){let n=[],r=e=>{e.forEach(e=>{n.push(e);let i=t(e);i!=null&&i.length&&r(i)})};return r(e),n}function k(e,t,n){let r=[],i;return a=>{let o;n.key&&n.debug&&(o=Date.now());let s=e(a);if(!(s.length!==r.length||s.some((e,t)=>r[t]!==e)))return i;r=s;let c;if(n.key&&n.debug&&(c=Date.now()),i=t(...s),n==null||n.onChange==null||n.onChange(i),n.key&&n.debug&&n!=null&&n.debug()){let e=Math.round((Date.now()-o)*100)/100,t=Math.round((Date.now()-c)*100)/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length{t.setState(t=>({...t,[e]:E(n,t[e])}))}}function O(e){return e instanceof Function}function Je(e){return Array.isArray(e)&&e.every(e=>typeof e==`number`)}function Ye(e,t){let n=[],r=e=>{e.forEach(e=>{n.push(e);let i=t(e);i!=null&&i.length&&r(i)})};return r(e),n}function k(e,t,n){let r=[],i;return a=>{let o;n.key&&n.debug&&(o=Date.now());let s=e(a);if(!(s.length!==r.length||s.some((e,t)=>r[t]!==e)))return i;r=s;let c;if(n.key&&n.debug&&(c=Date.now()),i=t(...s),n==null||n.onChange==null||n.onChange(i),n.key&&n.debug&&n!=null&&n.debug()){let e=Math.round((Date.now()-o)*100)/100,t=Math.round((Date.now()-c)*100)/100,r=t/16,i=(e,t)=>{for(e=String(e);e.lengthe?.debugAll??e[t],key:!1,onChange:r}}function Xe(e,t,n,r){let i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>i.getValue()??e.options.renderFallbackValue,getContext:k(()=>[e,n,t,i],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),A(e.options,`debugCells`,`cell.getContext`))};return e._features.forEach(r=>{r.createCell==null||r.createCell(i,n,t,e)},{}),i}function Ze(e,t,n,r){let i={...e._getDefaultColumnDef(),...t},a=i.accessorKey,o=i.id??(a?typeof String.prototype.replaceAll==`function`?a.replaceAll(`.`,`_`):a.replace(/\./g,`_`):void 0)??(typeof i.header==`string`?i.header:void 0),s;if(i.accessorFn?s=i.accessorFn:a&&(s=a.includes(`.`)?e=>{let t=e;for(let e of a.split(`.`))t=t?.[e];return t}:e=>e[i.accessorKey]),!o)throw Error();let c={id:`${String(o)}`,accessorFn:s,parent:r,depth:n,columnDef:i,columns:[],getFlatColumns:k(()=>[!0],()=>[c,...c.columns?.flatMap(e=>e.getFlatColumns())],A(e.options,`debugColumns`,`column.getFlatColumns`)),getLeafColumns:k(()=>[e._getOrderColumnsFn()],e=>{var t;return(t=c.columns)!=null&&t.length?e(c.columns.flatMap(e=>e.getLeafColumns())):[c]},A(e.options,`debugColumns`,`column.getLeafColumns`))};for(let t of e._features)t.createColumn==null||t.createColumn(c,e);return c}var j=`debugHeaders`;function Qe(e,t,n){let r={id:n.id??t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{let e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(r),e},getContext:()=>({table:e,header:r,column:t})};return e._features.forEach(t=>{t.createHeader==null||t.createHeader(r,e)}),r}var $e={createTable:e=>{e.getHeaderGroups=k(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{let a=r?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],o=i?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],s=n.filter(e=>!(r!=null&&r.includes(e.id))&&!(i!=null&&i.includes(e.id)));return M(t,[...a,...s,...o],e)},A(e.options,j,`getHeaderGroups`)),e.getCenterHeaderGroups=k(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>(n=n.filter(e=>!(r!=null&&r.includes(e.id))&&!(i!=null&&i.includes(e.id))),M(t,n,e,`center`)),A(e.options,j,`getCenterHeaderGroups`)),e.getLeftHeaderGroups=k(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>M(t,r?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],e,`left`),A(e.options,j,`getLeftHeaderGroups`)),e.getRightHeaderGroups=k(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>M(t,r?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],e,`right`),A(e.options,j,`getRightHeaderGroups`)),e.getFooterGroups=k(()=>[e.getHeaderGroups()],e=>[...e].reverse(),A(e.options,j,`getFooterGroups`)),e.getLeftFooterGroups=k(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),A(e.options,j,`getLeftFooterGroups`)),e.getCenterFooterGroups=k(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),A(e.options,j,`getCenterFooterGroups`)),e.getRightFooterGroups=k(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),A(e.options,j,`getRightFooterGroups`)),e.getFlatHeaders=k(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),A(e.options,j,`getFlatHeaders`)),e.getLeftFlatHeaders=k(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),A(e.options,j,`getLeftFlatHeaders`)),e.getCenterFlatHeaders=k(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),A(e.options,j,`getCenterFlatHeaders`)),e.getRightFlatHeaders=k(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),A(e.options,j,`getRightFlatHeaders`)),e.getCenterLeafHeaders=k(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!((t=e.subHeaders)!=null&&t.length)}),A(e.options,j,`getCenterLeafHeaders`)),e.getLeftLeafHeaders=k(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!((t=e.subHeaders)!=null&&t.length)}),A(e.options,j,`getLeftLeafHeaders`)),e.getRightLeafHeaders=k(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!((t=e.subHeaders)!=null&&t.length)}),A(e.options,j,`getRightLeafHeaders`)),e.getLeafHeaders=k(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>[...e[0]?.headers??[],...t[0]?.headers??[],...n[0]?.headers??[]].map(e=>e.getLeafHeaders()).flat(),A(e.options,j,`getLeafHeaders`))}};function M(e,t,n,r){let i=0,a=function(e,t){t===void 0&&(t=1),i=Math.max(i,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;(n=e.columns)!=null&&n.length&&a(e.columns,t+1)},0)};a(e);let o=[],s=(e,t)=>{let i={depth:t,id:[r,`${t}`].filter(Boolean).join(`_`),headers:[]},a=[];e.forEach(e=>{let o=[...a].reverse()[0],s=e.column.depth===i.depth,c,l=!1;if(s&&e.column.parent?c=e.column.parent:(c=e.column,l=!0),o&&o?.column===c)o.subHeaders.push(e);else{let i=Qe(n,c,{id:[r,t,c.id,e?.id].filter(Boolean).join(`_`),isPlaceholder:l,placeholderId:l?`${a.filter(e=>e.column===c).length}`:void 0,depth:t,index:a.length});i.subHeaders.push(e),a.push(i)}i.headers.push(e),e.headerGroup=i}),o.push(i),t>0&&s(a,t-1)};s(t.map((e,t)=>Qe(n,e,{depth:i,index:t})),i-1),o.reverse();let c=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,r=[0];e.subHeaders&&e.subHeaders.length?(r=[],c(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:i}=e;t+=n,r.push(i)})):t=1;let i=Math.min(...r);return n+=i,e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return c(o[0]?.headers??[]),o}var et=(e,t,n,r,i,a,o)=>{let s={id:t,index:r,original:n,depth:i,parentId:o,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];let n=e.getColumn(t);if(n!=null&&n.accessorFn)return s._valuesCache[t]=n.accessorFn(s.original,r),s._valuesCache[t]},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];let n=e.getColumn(t);if(n!=null&&n.accessorFn)return n.columnDef.getUniqueValues?(s._uniqueValuesCache[t]=n.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[t]):(s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t])},renderValue:t=>s.getValue(t)??e.options.renderFallbackValue,subRows:a??[],getLeafRows:()=>Ye(s.subRows,e=>e.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let e=[],t=s;for(;;){let n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:k(()=>[e.getAllLeafColumns()],t=>t.map(t=>Xe(e,s,t,t.id)),A(e.options,`debugRows`,`getAllCells`)),_getAllCellsByColumnId:k(()=>[s.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),A(e.options,`debugRows`,`getAllCellsByColumnId`))};for(let t=0;t{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},nt=(e,t,n)=>{var r,i;let a=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((i=e.getValue(t))==null||(i=i.toString())==null||(i=i.toLowerCase())==null)&&i.includes(a))};nt.autoRemove=e=>F(e);var rt=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};rt.autoRemove=e=>F(e);var it=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===n?.toLowerCase()};it.autoRemove=e=>F(e);var at=(e,t,n)=>e.getValue(t)?.includes(n);at.autoRemove=e=>F(e);var ot=(e,t,n)=>!n.some(n=>{var r;return!((r=e.getValue(t))!=null&&r.includes(n))});ot.autoRemove=e=>F(e)||!(e!=null&&e.length);var st=(e,t,n)=>n.some(n=>e.getValue(t)?.includes(n));st.autoRemove=e=>F(e)||!(e!=null&&e.length);var ct=(e,t,n)=>e.getValue(t)===n;ct.autoRemove=e=>F(e);var lt=(e,t,n)=>e.getValue(t)==n;lt.autoRemove=e=>F(e);var N=(e,t,n)=>{let[r,i]=n,a=e.getValue(t);return a>=r&&a<=i};N.resolveFilterValue=e=>{let[t,n]=e,r=typeof t==`number`?t:parseFloat(t),i=typeof n==`number`?n:parseFloat(n),a=t===null||Number.isNaN(r)?-1/0:r,o=n===null||Number.isNaN(i)?1/0:i;if(a>o){let e=a;a=o,o=e}return[a,o]},N.autoRemove=e=>F(e)||F(e[0])&&F(e[1]);var P={includesString:nt,includesStringSensitive:rt,equalsString:it,arrIncludes:at,arrIncludesAll:ot,arrIncludesSome:st,equals:ct,weakEquals:lt,inNumberRange:N};function F(e){return e==null||e===``}var ut={getDefaultColumnDef:()=>({filterFn:`auto`}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:D(`columnFilters`,e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{let n=t.getCoreRowModel().flatRows[0]?.getValue(e.id);return typeof n==`string`?P.includesString:typeof n==`number`?P.inNumberRange:typeof n==`boolean`||typeof n==`object`&&n?P.equals:Array.isArray(n)?P.arrIncludes:P.weakEquals},e.getFilterFn=()=>O(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn===`auto`?e.getAutoFilterFn():t.options.filterFns?.[e.columnDef.filterFn]??P[e.columnDef.filterFn],e.getCanFilter=()=>(e.columnDef.enableColumnFilter??!0)&&(t.options.enableColumnFilters??!0)&&(t.options.enableFilters??!0)&&!!e.accessorFn,e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(t=>t.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>t.getState().columnFilters?.findIndex(t=>t.id===e.id)??-1,e.setFilterValue=n=>{t.setColumnFilters(t=>{let r=e.getFilterFn(),i=t?.find(t=>t.id===e.id),a=E(n,i?i.value:void 0);if(dt(r,a,e))return t?.filter(t=>t.id!==e.id)??[];let o={id:e.id,value:a};return i?t?.map(t=>t.id===e.id?o:t)??[]:t!=null&&t.length?[...t,o]:[o]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{let n=e.getAllLeafColumns();e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(e=>E(t,e)?.filter(e=>{let t=n.find(t=>t.id===e.id);return!(t&&dt(t.getFilterFn(),e.value,t))}))},e.resetColumnFilters=t=>{e.setColumnFilters(t?[]:e.initialState?.columnFilters??[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function dt(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||t===void 0||typeof t==`string`&&!t}var I={sum:(e,t,n)=>n.reduce((t,n)=>{let r=n.getValue(e);return t+(typeof r==`number`?r:0)},0),min:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);n!=null&&(r>n||r===void 0&&n>=n)&&(r=n)}),r},max:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);n!=null&&(r=n)&&(r=n)}),r},extent:(e,t,n)=>{let r,i;return n.forEach(t=>{let n=t.getValue(e);n!=null&&(r===void 0?n>=n&&(r=i=n):(r>n&&(r=n),i{let n=0,r=0;if(t.forEach(t=>{let i=t.getValue(e);i!=null&&(i=+i)>=i&&(++n,r+=i)}),n)return r/n},median:(e,t)=>{if(!t.length)return;let n=t.map(t=>t.getValue(e));if(!Je(n))return;if(n.length===1)return n[0];let r=Math.floor(n.length/2),i=n.sort((e,t)=>e-t);return n.length%2==0?(i[r-1]+i[r])/2:i[r]},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},ft={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t;return((t=e.getValue())==null||t.toString==null?void 0:t.toString())??null},aggregationFn:`auto`}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:D(`grouping`,e),groupedColumnMode:`reorder`}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>t!=null&&t.includes(e.id)?t.filter(t=>t!==e.id):[...t??[],e.id])},e.getCanGroup=()=>(e.columnDef.enableGrouping??!0)&&(t.options.enableGrouping??!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue),e.getIsGrouped=()=>t.getState().grouping?.includes(e.id),e.getGroupedIndex=()=>t.getState().grouping?.indexOf(e.id),e.getToggleGroupingHandler=()=>{let t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{let n=t.getCoreRowModel().flatRows[0]?.getValue(e.id);if(typeof n==`number`)return I.sum;if(Object.prototype.toString.call(n)===`[object Date]`)return I.extent},e.getAggregationFn=()=>{if(!e)throw Error();return O(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn===`auto`?e.getAutoAggregationFn():t.options.aggregationFns?.[e.columnDef.aggregationFn]??I[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{e.setGrouping(t?[]:e.initialState?.grouping??[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];let r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((t=n.subRows)!=null&&t.length)}}};function pt(e,t,n){if(!(t!=null&&t.length)||!n)return e;let r=e.filter(e=>!t.includes(e.id));return n===`remove`?r:[...t.map(t=>e.find(e=>e.id===t)).filter(Boolean),...r]}var mt={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:D(`columnOrder`,e)}),createColumn:(e,t)=>{e.getIndex=k(e=>[V(t,e)],t=>t.findIndex(t=>t.id===e.id),A(t.options,`debugColumns`,`getIndex`)),e.getIsFirstColumn=n=>V(t,n)[0]?.id===e.id,e.getIsLastColumn=n=>{let r=V(t,n);return r[r.length-1]?.id===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{e.setColumnOrder(t?[]:e.initialState.columnOrder??[])},e._getOrderColumnsFn=k(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>r=>{let i=[];if(!(e!=null&&e.length))i=r;else{let t=[...e],n=[...r];for(;n.length&&t.length;){let e=t.shift(),r=n.findIndex(t=>t.id===e);r>-1&&i.push(n.splice(r,1)[0])}i=[...i,...n]}return pt(i,t,n)},A(e.options,`debugTable`,`_getOrderColumnsFn`))}},ht=()=>({left:[],right:[]}),gt={getInitialState:e=>({columnPinning:ht(),...e}),getDefaultOptions:e=>({onColumnPinningChange:D(`columnPinning`,e)}),createColumn:(e,t)=>{e.pin=n=>{let r=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>n===`right`?{left:(e?.left??[]).filter(e=>!(r!=null&&r.includes(e))),right:[...(e?.right??[]).filter(e=>!(r!=null&&r.includes(e))),...r]}:n===`left`?{left:[...(e?.left??[]).filter(e=>!(r!=null&&r.includes(e))),...r],right:(e?.right??[]).filter(e=>!(r!=null&&r.includes(e)))}:{left:(e?.left??[]).filter(e=>!(r!=null&&r.includes(e))),right:(e?.right??[]).filter(e=>!(r!=null&&r.includes(e)))})},e.getCanPin=()=>e.getLeafColumns().some(e=>(e.columnDef.enablePinning??!0)&&(t.options.enableColumnPinning??t.options.enablePinning??!0)),e.getIsPinned=()=>{let n=e.getLeafColumns().map(e=>e.id),{left:r,right:i}=t.getState().columnPinning,a=n.some(e=>r?.includes(e)),o=n.some(e=>i?.includes(e));return a?`left`:o?`right`:!1},e.getPinnedIndex=()=>{var n;let r=e.getIsPinned();return r?((n=t.getState().columnPinning)==null||(n=n[r])==null?void 0:n.indexOf(e.id))??-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=k(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{let r=[...t??[],...n??[]];return e.filter(e=>!r.includes(e.column.id))},A(t.options,`debugRows`,`getCenterVisibleCells`)),e.getLeftVisibleCells=k(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>(t??[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:`left`})),A(t.options,`debugRows`,`getLeftVisibleCells`)),e.getRightVisibleCells=k(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(t??[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:`right`})),A(t.options,`debugRows`,`getRightVisibleCells`))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>e.setColumnPinning(t?ht():e.initialState?.columnPinning??ht()),e.getIsSomeColumnsPinned=t=>{let n=e.getState().columnPinning;return t?!!n[t]?.length:!!(n.left?.length||n.right?.length)},e.getLeftLeafColumns=k(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(t??[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),A(e.options,`debugColumns`,`getLeftLeafColumns`)),e.getRightLeafColumns=k(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(t??[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),A(e.options,`debugColumns`,`getRightLeafColumns`)),e.getCenterLeafColumns=k(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{let r=[...t??[],...n??[]];return e.filter(e=>!r.includes(e.id))},A(e.options,`debugColumns`,`getCenterLeafColumns`))}};function _t(e){return e||(typeof document<`u`?document:null)}var L={size:150,minSize:20,maxSize:2**53-1},R=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),vt={getDefaultColumnDef:()=>L,getInitialState:e=>({columnSizing:{},columnSizingInfo:R(),...e}),getDefaultOptions:e=>({columnResizeMode:`onEnd`,columnResizeDirection:`ltr`,onColumnSizingChange:D(`columnSizing`,e),onColumnSizingInfoChange:D(`columnSizingInfo`,e)}),createColumn:(e,t)=>{e.getSize=()=>{let n=t.getState().columnSizing[e.id];return Math.min(Math.max(e.columnDef.minSize??L.minSize,n??e.columnDef.size??L.size),e.columnDef.maxSize??L.maxSize)},e.getStart=k(e=>[e,V(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),A(t.options,`debugColumns`,`getStart`)),e.getAfter=k(e=>[e,V(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),A(t.options,`debugColumns`,`getAfter`)),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:n,...r}=t;return r})},e.getCanResize=()=>(e.columnDef.enableResizing??!0)&&(t.options.enableColumnResizing??!0),e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0,n=e=>{e.subHeaders.length?e.subHeaders.forEach(n):t+=e.column.getSize()??0};return n(e),t},e.getStart=()=>{if(e.index>0){let t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{let r=t.getColumn(e.column.id),i=r?.getCanResize();return a=>{if(!r||!i||(a.persist==null||a.persist(),B(a)&&a.touches&&a.touches.length>1))return;let o=e.getSize(),s=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[r.id,r.getSize()]],c=B(a)?Math.round(a.touches[0].clientX):a.clientX,l={},u=(e,n)=>{typeof n==`number`&&(t.setColumnSizingInfo(e=>{let r=t.options.columnResizeDirection===`rtl`?-1:1,i=(n-(e?.startOffset??0))*r,a=Math.max(i/(e?.startSize??0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;l[t]=Math.round(Math.max(n+n*a,0)*100)/100}),{...e,deltaOffset:i,deltaPercentage:a}}),(t.options.columnResizeMode===`onChange`||e===`end`)&&t.setColumnSizing(e=>({...e,...l})))},d=e=>u(`move`,e),f=e=>{u(`end`,e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},p=_t(n),m={moveHandler:e=>d(e.clientX),upHandler:e=>{p?.removeEventListener(`mousemove`,m.moveHandler),p?.removeEventListener(`mouseup`,m.upHandler),f(e.clientX)}},h={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{p?.removeEventListener(`touchmove`,h.moveHandler),p?.removeEventListener(`touchend`,h.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(e.touches[0]?.clientX)}},g=yt()?{passive:!1}:!1;B(a)?(p?.addEventListener(`touchmove`,h.moveHandler,g),p?.addEventListener(`touchend`,h.upHandler,g)):(p?.addEventListener(`mousemove`,m.moveHandler,g),p?.addEventListener(`mouseup`,m.upHandler,g)),t.setColumnSizingInfo(e=>({...e,startOffset:c,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{e.setColumnSizing(t?{}:e.initialState.columnSizing??{})},e.resetHeaderSizeInfo=t=>{e.setColumnSizingInfo(t?R():e.initialState.columnSizingInfo??R())},e.getTotalSize=()=>e.getHeaderGroups()[0]?.headers.reduce((e,t)=>e+t.getSize(),0)??0,e.getLeftTotalSize=()=>e.getLeftHeaderGroups()[0]?.headers.reduce((e,t)=>e+t.getSize(),0)??0,e.getCenterTotalSize=()=>e.getCenterHeaderGroups()[0]?.headers.reduce((e,t)=>e+t.getSize(),0)??0,e.getRightTotalSize=()=>e.getRightHeaderGroups()[0]?.headers.reduce((e,t)=>e+t.getSize(),0)??0}},z=null;function yt(){if(typeof z==`boolean`)return z;let e=!1;try{let t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener(`test`,n,t),window.removeEventListener(`test`,n)}catch{e=!1}return z=e,z}function B(e){return e.type===`touchstart`}var bt={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:D(`columnVisibility`,e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{let n=e.columns;return(n.length?n.some(e=>e.getIsVisible()):t.getState().columnVisibility?.[e.id])??!0},e.getCanHide=()=>(e.columnDef.enableHiding??!0)&&(t.options.enableHiding??!0),e.getToggleVisibilityHandler=()=>t=>{e.toggleVisibility==null||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=k(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),A(t.options,`debugRows`,`_getAllVisibleCells`)),e.getVisibleCells=k(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],A(t.options,`debugRows`,`getVisibleCells`))},createTable:e=>{let t=(t,n)=>k(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join(`_`)],e=>e.filter(e=>e.getIsVisible==null?void 0:e.getIsVisible()),A(e.options,`debugColumns`,t));e.getVisibleFlatColumns=t(`getVisibleFlatColumns`,()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t(`getVisibleLeafColumns`,()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t(`getLeftVisibleLeafColumns`,()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t(`getRightVisibleLeafColumns`,()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t(`getCenterVisibleLeafColumns`,()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{e.setColumnVisibility(t?{}:e.initialState.columnVisibility??{})},e.toggleAllColumnsVisible=t=>{t??=!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>({...e,[n.id]:t||!(n.getCanHide!=null&&n.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(e.getIsVisible!=null&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>e.getIsVisible==null?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{e.toggleAllColumnsVisible(t.target?.checked)}}};function V(e,t){return t?t===`center`?e.getCenterVisibleLeafColumns():t===`left`?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}var xt={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,`__global__`),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,`__global__`),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,`__global__`),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},St={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:D(`globalFilter`,e),globalFilterFn:`auto`,getColumnCanGlobalFilter:t=>{var n;let r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r==`string`||typeof r==`number`}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>(e.columnDef.enableGlobalFilter??!0)&&(t.options.enableGlobalFilter??!0)&&(t.options.enableFilters??!0)&&((t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))??!0)&&!!e.accessorFn},createTable:e=>{e.getGlobalAutoFilterFn=()=>P.includesString,e.getGlobalFilterFn=()=>{let{globalFilterFn:t}=e.options;return O(t)?t:t===`auto`?e.getGlobalAutoFilterFn():e.options.filterFns?.[t]??P[t]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},Ct={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:D(`expanded`,e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{if(!t){e._queue(()=>{t=!0});return}if(e.options.autoResetAll??e.options.autoResetExpanded??!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=t=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{t??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{e.setExpanded(t?{}:e.initialState?.expanded??{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{t.persist==null||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{let t=e.getState().expanded;return t===!0||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{let t=e.getState().expanded;return typeof t==`boolean`?t===!0:!(!Object.keys(t).length||e.getRowModel().flatRows.some(e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{let n=e.split(`.`);t=Math.max(t,n.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{let i=r===!0?!0:!!(r!=null&&r[e.id]),a={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(e=>{a[e]=!0}):a=r,n??=!i,!i&&n)return{...a,[e.id]:!0};if(i&&!n){let{[e.id]:t,...n}=a;return n}return r})},e.getIsExpanded=()=>{let n=t.getState().expanded;return!!((t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))??(n===!0||n?.[e.id]))},e.getCanExpand=()=>{var n;return(t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))??((t.options.enableExpanding??!0)&&!!((n=e.subRows)!=null&&n.length))},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{let t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},H=0,U=10,W=()=>({pageIndex:H,pageSize:U}),wt={getInitialState:e=>({...e,pagination:{...W(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:D(`pagination`,e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{if(!t){e._queue(()=>{t=!0});return}if(e.options.autoResetAll??e.options.autoResetPageIndex??!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=t=>e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(e=>E(t,e)),e.resetPagination=t=>{e.setPagination(t?W():e.initialState.pagination??W())},e.setPageIndex=t=>{e.setPagination(n=>{let r=E(t,n.pageIndex),i=e.options.pageCount===void 0||e.options.pageCount===-1?2**53-1:e.options.pageCount-1;return r=Math.max(0,Math.min(r,i)),{...n,pageIndex:r}})},e.resetPageIndex=t=>{var n;e.setPageIndex(t?H:((n=e.initialState)==null||(n=n.pagination)==null?void 0:n.pageIndex)??H)},e.resetPageSize=t=>{var n;e.setPageSize(t?U:((n=e.initialState)==null||(n=n.pagination)==null?void 0:n.pageSize)??U)},e.setPageSize=t=>{e.setPagination(e=>{let n=Math.max(1,E(t,e.pageSize)),r=e.pageSize*e.pageIndex,i=Math.floor(r/n);return{...e,pageIndex:i,pageSize:n}})},e.setPageCount=t=>e.setPagination(n=>{let r=E(t,e.options.pageCount??-1);return typeof r==`number`&&(r=Math.max(-1,r)),{...n,pageCount:r}}),e.getPageOptions=k(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...Array(e)].fill(null).map((e,t)=>t)),t},A(e.options,`debugTable`,`getPageOptions`)),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{let{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return n===-1?!0:n===0?!1:te.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>e.options.pageCount??Math.ceil(e.getRowCount()/e.getState().pagination.pageSize),e.getRowCount=()=>e.options.rowCount??e.getPrePaginationRowModel().rows.length}},G=()=>({top:[],bottom:[]}),Tt={getInitialState:e=>({rowPinning:G(),...e}),getDefaultOptions:e=>({onRowPinningChange:D(`rowPinning`,e)}),createRow:(e,t)=>{e.pin=(n,r,i)=>{let a=r?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],o=i?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],s=new Set([...o,e.id,...a]);t.setRowPinning(e=>n===`bottom`?{top:(e?.top??[]).filter(e=>!(s!=null&&s.has(e))),bottom:[...(e?.bottom??[]).filter(e=>!(s!=null&&s.has(e))),...Array.from(s)]}:n===`top`?{top:[...(e?.top??[]).filter(e=>!(s!=null&&s.has(e))),...Array.from(s)],bottom:(e?.bottom??[]).filter(e=>!(s!=null&&s.has(e)))}:{top:(e?.top??[]).filter(e=>!(s!=null&&s.has(e))),bottom:(e?.bottom??[]).filter(e=>!(s!=null&&s.has(e)))})},e.getCanPin=()=>{let{enableRowPinning:n,enablePinning:r}=t.options;return typeof n==`function`?n(e):n??r??!0},e.getIsPinned=()=>{let n=[e.id],{top:r,bottom:i}=t.getState().rowPinning,a=n.some(e=>r?.includes(e)),o=n.some(e=>i?.includes(e));return a?`top`:o?`bottom`:!1},e.getPinnedIndex=()=>{let n=e.getIsPinned();return n?((n===`top`?t.getTopRows():t.getBottomRows())?.map(e=>{let{id:t}=e;return t}))?.indexOf(e.id)??-1:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>e.setRowPinning(t?G():e.initialState?.rowPinning??G()),e.getIsSomeRowsPinned=t=>{let n=e.getState().rowPinning;return t?!!n[t]?.length:!!(n.top?.length||n.bottom?.length)},e._getPinnedRows=(t,n,r)=>(e.options.keepPinnedRows??!0?(n??[]).map(t=>{let n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null}):(n??[]).map(e=>t.find(t=>t.id===e))).filter(Boolean).map(e=>({...e,position:r})),e.getTopRows=k(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,`top`),A(e.options,`debugRows`,`getTopRows`)),e.getBottomRows=k(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,`bottom`),A(e.options,`debugRows`,`getBottomRows`)),e.getCenterRows=k(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,n)=>{let r=new Set([...t??[],...n??[]]);return e.filter(e=>!r.has(e.id))},A(e.options,`debugRows`,`getCenterRows`))}},Et={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:D(`rowSelection`,e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>e.setRowSelection(t?{}:e.initialState.rowSelection??{}),e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=t===void 0?!e.getIsAllRowsSelected():t;let r={...n},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(e=>{e.getCanSelect()&&(r[e.id]=!0)}):i.forEach(e=>{delete r[e.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{let r=t===void 0?!e.getIsAllPageRowsSelected():t,i={...n};return e.getRowModel().rows.forEach(t=>{K(i,t.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=k(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?q(e,n):{rows:[],flatRows:[],rowsById:{}},A(e.options,`debugTable`,`getSelectedRowModel`)),e.getFilteredSelectedRowModel=k(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?q(e,n):{rows:[],flatRows:[],rowsById:{}},A(e.options,`debugTable`,`getFilteredSelectedRowModel`)),e.getGroupedSelectedRowModel=k(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?q(e,n):{rows:[],flatRows:[],rowsById:{}},A(e.options,`debugTable`,`getGroupedSelectedRowModel`)),e.getIsAllRowsSelected=()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState(),r=!!(t.length&&Object.keys(n).length);return r&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:n}=e.getState(),r=!!t.length;return r&&t.some(e=>!n[e.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{let t=Object.keys(e.getState().rowSelection??{}).length;return t>0&&t{let t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{let i=e.getIsSelected();t.setRowSelection(a=>{if(n=n===void 0?!i:n,e.getCanSelect()&&i===n)return a;let o={...a};return K(o,e.id,n,r?.selectChildren??!0,t),o})},e.getIsSelected=()=>{let{rowSelection:n}=t.getState();return J(e,n)},e.getIsSomeSelected=()=>{let{rowSelection:n}=t.getState();return Y(e,n)===`some`},e.getIsAllSubRowsSelected=()=>{let{rowSelection:n}=t.getState();return Y(e,n)===`all`},e.getCanSelect=()=>typeof t.options.enableRowSelection==`function`?t.options.enableRowSelection(e):t.options.enableRowSelection??!0,e.getCanSelectSubRows=()=>typeof t.options.enableSubRowSelection==`function`?t.options.enableSubRowSelection(e):t.options.enableSubRowSelection??!0,e.getCanMultiSelect=()=>typeof t.options.enableMultiRowSelection==`function`?t.options.enableMultiRowSelection(e):t.options.enableMultiRowSelection??!0,e.getToggleSelectedHandler=()=>{let t=e.getCanSelect();return n=>{t&&e.toggleSelected(n.target?.checked)}}}},K=(e,t,n,r,i)=>{var a;let o=i.getRow(t,!0);n?(o.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),o.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(a=o.subRows)!=null&&a.length&&o.getCanSelectSubRows()&&o.subRows.forEach(t=>K(e,t.id,n,r,i))};function q(e,t){let n=e.getState().rowSelection,r=[],i={},a=function(e,t){return e.map(e=>{var t;let o=J(e,n);if(o&&(r.push(e),i[e.id]=e),(t=e.subRows)!=null&&t.length&&(e={...e,subRows:a(e.subRows)}),o)return e}).filter(Boolean)};return{rows:a(t.rows),flatRows:r,rowsById:i}}function J(e,t){return t[e.id]??!1}function Y(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let i=!0,a=!1;return e.subRows.forEach(e=>{if(!(a&&!i)&&(e.getCanSelect()&&(J(e,t)?a=!0:i=!1),e.subRows&&e.subRows.length)){let n=Y(e,t);n===`all`?a=!0:(n===`some`&&(a=!0),i=!1)}}),i?`all`:a?`some`:!1}var X=/([0-9]+)/gm,Dt=(e,t,n)=>Nt(Q(e.getValue(n)).toLowerCase(),Q(t.getValue(n)).toLowerCase()),Ot=(e,t,n)=>Nt(Q(e.getValue(n)),Q(t.getValue(n))),kt=(e,t,n)=>Z(Q(e.getValue(n)).toLowerCase(),Q(t.getValue(n)).toLowerCase()),At=(e,t,n)=>Z(Q(e.getValue(n)),Q(t.getValue(n))),jt=(e,t,n)=>{let r=e.getValue(n),i=t.getValue(n);return r>i?1:rZ(e.getValue(n),t.getValue(n));function Z(e,t){return e===t?0:e>t?1:-1}function Q(e){return typeof e==`number`?isNaN(e)||e===1/0||e===-1/0?``:String(e):typeof e==`string`?e:``}function Nt(e,t){let n=e.split(X).filter(Boolean),r=t.split(X).filter(Boolean);for(;n.length&&r.length;){let e=n.shift(),t=r.shift(),i=parseInt(e,10),a=parseInt(t,10),o=[i,a].sort();if(isNaN(o[0])){if(e>t)return 1;if(t>e)return-1;continue}if(isNaN(o[1]))return isNaN(i)?-1:1;if(i>a)return 1;if(a>i)return-1}return n.length-r.length}var $={alphanumeric:Dt,alphanumericCaseSensitive:Ot,text:kt,textCaseSensitive:At,datetime:jt,basic:Mt},Pt=[$e,bt,mt,gt,tt,ut,xt,St,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:`auto`,sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:D(`sorting`,e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{let n=t.getFilteredRowModel().flatRows.slice(10),r=!1;for(let t of n){let n=t?.getValue(e.id);if(Object.prototype.toString.call(n)===`[object Date]`)return $.datetime;if(typeof n==`string`&&(r=!0,n.split(X).length>1))return $.alphanumeric}return r?$.text:$.basic},e.getAutoSortDir=()=>typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id)==`string`?`asc`:`desc`,e.getSortingFn=()=>{if(!e)throw Error();return O(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn===`auto`?e.getAutoSortingFn():t.options.sortingFns?.[e.columnDef.sortingFn]??$[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{let i=e.getNextSortingOrder(),a=n!=null;t.setSorting(o=>{let s=o?.find(t=>t.id===e.id),c=o?.findIndex(t=>t.id===e.id),l=[],u,d=a?n:i===`desc`;return u=o!=null&&o.length&&e.getCanMultiSort()&&r?s?`toggle`:`add`:o!=null&&o.length&&c!==o.length-1?`replace`:s?`toggle`:`replace`,u===`toggle`&&(a||i||(u=`remove`)),u===`add`?(l=[...o,{id:e.id,desc:d}],l.splice(0,l.length-(t.options.maxMultiSortColCount??2**53-1))):l=u===`toggle`?o.map(t=>t.id===e.id?{...t,desc:d}:t):u===`remove`?o.filter(t=>t.id!==e.id):[{id:e.id,desc:d}],l})},e.getFirstSortDir=()=>e.columnDef.sortDescFirst??t.options.sortDescFirst??e.getAutoSortDir()===`desc`?`desc`:`asc`,e.getNextSortingOrder=n=>{let r=e.getFirstSortDir(),i=e.getIsSorted();return i?i!==r&&(t.options.enableSortingRemoval??!0)&&(!n||(t.options.enableMultiRemove??!0))?!1:i===`desc`?`asc`:`desc`:r},e.getCanSort=()=>(e.columnDef.enableSorting??!0)&&(t.options.enableSorting??!0)&&!!e.accessorFn,e.getCanMultiSort=()=>e.columnDef.enableMultiSort??t.options.enableMultiSort??!!e.accessorFn,e.getIsSorted=()=>{let n=t.getState().sorting?.find(t=>t.id===e.id);return n?n.desc?`desc`:`asc`:!1},e.getSortIndex=()=>t.getState().sorting?.findIndex(t=>t.id===e.id)??-1,e.clearSorting=()=>{t.setSorting(t=>t!=null&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{let n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{e.setSorting(t?[]:e.initialState?.sorting??[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},ft,Ct,wt,Tt,Et,vt];function Ft(e){let t=[...Pt,...e._features??[]],n={_features:t},r=n._features.reduce((e,t)=>Object.assign(e,t.getDefaultOptions==null?void 0:t.getDefaultOptions(n)),{}),i=e=>n.options.mergeOptions?n.options.mergeOptions(r,e):{...r,...e},a={...e.initialState??{}};n._features.forEach(e=>{a=(e.getInitialState==null?void 0:e.getInitialState(a))??a});let o=[],s=!1,c={_features:t,options:{...r,...e},initialState:a,_queue:e=>{o.push(e),s||(s=!0,Promise.resolve().then(()=>{for(;o.length;)o.shift()();s=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{n.setState(n.initialState)},setOptions:e=>{n.options=i(E(e,n.options))},getState:()=>n.options.state,setState:e=>{n.options.onStateChange==null||n.options.onStateChange(e)},_getRowId:(e,t,r)=>(n.options.getRowId==null?void 0:n.options.getRowId(e,t,r))??`${r?[r.id,t].join(`.`):t}`,getCoreRowModel:()=>(n._getCoreRowModel||=n.options.getCoreRowModel(n),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(e,t)=>{let r=(t?n.getPrePaginationRowModel():n.getRowModel()).rowsById[e];if(!r&&(r=n.getCoreRowModel().rowsById[e],!r))throw Error();return r},_getDefaultColumnDef:k(()=>[n.options.defaultColumn],e=>(e??={},{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t;return((t=e.renderValue())==null||t.toString==null?void 0:t.toString())??null},...n._features.reduce((e,t)=>Object.assign(e,t.getDefaultColumnDef==null?void 0:t.getDefaultColumnDef()),{}),...e}),A(e,`debugColumns`,`_getDefaultColumnDef`)),_getColumnDefs:()=>n.options.columns,getAllColumns:k(()=>[n._getColumnDefs()],e=>{let t=function(e,r,i){return i===void 0&&(i=0),e.map(e=>{let a=Ze(n,e,i,r),o=e;return a.columns=o.columns?t(o.columns,a,i+1):[],a})};return t(e)},A(e,`debugColumns`,`getAllColumns`)),getAllFlatColumns:k(()=>[n.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),A(e,`debugColumns`,`getAllFlatColumns`)),_getAllFlatColumnsById:k(()=>[n.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),A(e,`debugColumns`,`getAllFlatColumnsById`)),getAllLeafColumns:k(()=>[n.getAllColumns(),n._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),A(e,`debugColumns`,`getAllLeafColumns`)),getColumn:e=>n._getAllFlatColumnsById()[e]};Object.assign(n,c);for(let e=0;ek(()=>[e.options.data],t=>{let n={rows:[],flatRows:[],rowsById:{}},r=function(t,i,a){i===void 0&&(i=0);let o=[];for(let c=0;ce._autoResetPageIndex()))}function Lt(e){let t=[],n=e=>{var r;t.push(e),(r=e.subRows)!=null&&r.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function Rt(e,t,n){return n.options.filterFromLeafRows?zt(e,t,n):Bt(e,t,n)}function zt(e,t,n){let r=[],i={},a=n.options.maxLeafRowFilterDepth??100,o=function(e,s){s===void 0&&(s=0);let c=[];for(let u=0;uk(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter,e.getFilteredRowModel()],(n,r,i)=>{if(!n.rows.length||!(r!=null&&r.length)&&!i)return n;let a=[...r.map(e=>e.id).filter(e=>e!==t),i?`__global__`:void 0].filter(Boolean);return Rt(n.rows,e=>{for(let t=0;tk(()=>[e.getColumn(t)?.getFacetedRowModel()],e=>{if(!e)return new Map;let n=new Map;for(let r=0;rk(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{if(!t.rows.length||!(n!=null&&n.length)&&!r){for(let e=0;e{let n=e.getColumn(t.id);if(!n)return;let r=n.getFilterFn();r&&i.push({id:t.id,filterFn:r,resolvedValue:(r.resolveFilterValue==null?void 0:r.resolveFilterValue(t.value))??t.value})});let o=(n??[]).map(e=>e.id),s=e.getGlobalFilterFn(),c=e.getAllLeafColumns().filter(e=>e.getCanGlobalFilter());r&&s&&c.length&&(o.push(`__global__`),c.forEach(e=>{a.push({id:e.id,filterFn:s,resolvedValue:(s.resolveFilterValue==null?void 0:s.resolveFilterValue(r))??r})}));let l,u;for(let e=0;e{n.columnFiltersMeta[t]=e})}if(a.length){for(let e=0;e{n.columnFiltersMeta[t]=e})){n.columnFilters.__global__=!0;break}}n.columnFilters.__global__!==!0&&(n.columnFilters.__global__=!1)}}return Rt(t.rows,e=>{for(let t=0;te._autoResetPageIndex()))}function Wt(e){return e=>k(()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded],(t,n)=>{if(!n.rows.length)return n;let{pageSize:r,pageIndex:i}=t,{rows:a,flatRows:o,rowsById:s}=n,c=r*i,l=c+r;a=a.slice(c,l);let u;u=e.options.paginateExpandedRows?{rows:a,flatRows:o,rowsById:s}:Lt({rows:a,flatRows:o,rowsById:s}),u.flatRows=[];let d=e=>{u.flatRows.push(e),e.subRows.length&&e.subRows.forEach(d)};return u.rows.forEach(d),u},A(e.options,`debugTable`,`getPaginationRowModel`))}function Gt(){return e=>k(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;let r=e.getState().sorting,i=[],a=r.filter(t=>e.getColumn(t.id)?.getCanSort()),o={};a.forEach(t=>{let n=e.getColumn(t.id);n&&(o[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})});let s=e=>{let t=e.map(e=>({...e}));return t.sort((e,t)=>{for(let n=0;n{var t;i.push(e),(t=e.subRows)!=null&&t.length&&(e.subRows=s(e.subRows))}),t};return{rows:s(n.rows),flatRows:i,rowsById:n.rowsById}},A(e.options,`debugTable`,`getSortedRowModel`,()=>e._autoResetPageIndex()))}function Kt(e,t){return e?qt(e)?w.createElement(e,t):e:null}function qt(e){return Jt(e)||typeof e==`function`||Yt(e)}function Jt(e){return typeof e==`function`&&(()=>{let t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function Yt(e){return typeof e==`object`&&typeof e.$$typeof==`symbol`&&[`react.memo`,`react.forward_ref`].includes(e.$$typeof.description)}function Xt(e){let t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=w.useState(()=>({current:Ft(t)})),[r,i]=w.useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{i(t),e.onStateChange==null||e.onStateChange(t)}})),n.current}function Zt({column:e,title:t,className:n}){return e.getCanSort()?(0,T.jsx)(`div`,{className:_(`flex items-center space-x-2`,n),children:(0,T.jsxs)(ue,{children:[(0,T.jsx)(ae,{asChild:!0,children:(0,T.jsxs)(v,{className:`h-8 data-[state=open]:bg-accent`,size:`sm`,variant:`ghost`,children:[(0,T.jsx)(`span`,{children:t}),(()=>{let t=e.getIsSorted();return t===`desc`?(0,T.jsx)(He,{className:`ms-2 h-4 w-4`}):t===`asc`?(0,T.jsx)(Ue,{className:`ms-2 h-4 w-4`}):(0,T.jsx)(we,{className:`ms-2 h-4 w-4`})})()]})}),(0,T.jsxs)(ce,{align:`start`,children:[(0,T.jsxs)(y,{onClick:()=>e.toggleSorting(!1),children:[(0,T.jsx)(Ue,{className:`size-3.5 text-muted-foreground/70`}),r()]}),(0,T.jsxs)(y,{onClick:()=>e.toggleSorting(!0),children:[(0,T.jsx)(He,{className:`size-3.5 text-muted-foreground/70`}),u()]}),e.getCanHide()&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(le,{}),(0,T.jsxs)(y,{onClick:()=>e.toggleVisibility(!1),children:[(0,T.jsx)(Te,{className:`size-3.5 text-muted-foreground/70`}),d()]})]})]})]})}):(0,T.jsx)(`div`,{className:_(`px-2`,n),children:t})}var Qt={switch:`h-5 w-9 rounded-full`,action:`h-8 w-8 rounded-md`,badge:`h-5 rounded-full`,id:`h-4`,date:`h-4`,short:`h-4`,long:`h-4`,amount:`h-4`};function $t({type:e=`long`}){return(0,T.jsx)(Ce,{className:Qt[e]})}var en=`group/row`,tn=ie(`bg-background group-hover/row:bg-muted group-data-[state=selected]/row:bg-muted`,{variants:{sticky:{left:`sticky inset-s-0 z-10`,right:`sticky inset-e-0 z-10`,none:``},shadow:{true:``,false:``},skeleton:{action:`w-8`,switch:`w-9`,badge:``,id:``,date:``,short:``,long:``,amount:``,none:``}},compoundVariants:[{sticky:`left`,shadow:!0,class:`drop-shadow-[0_1px_2px_rgb(0_0_0/_0.1)] dark:drop-shadow-[0_1px_2px_rgb(255_255_255/_0.1)]`},{sticky:`right`,shadow:!0,class:`drop-shadow-[0_-1px_2px_rgb(0_0_0/_0.1)] dark:drop-shadow-[0_-1px_2px_rgb(255_255_255/_0.1)]`}],defaultVariants:{sticky:`none`,shadow:!0,skeleton:`none`}});function nn(e){return _(`px-4`,tn({sticky:e?.sticky,shadow:e?.shadow,skeleton:e?.skeleton}),e?.className,e?.td?.className)}function rn(e){return _(tn({sticky:e?.sticky,shadow:e?.shadow,skeleton:e?.skeleton}),e?.className,e?.th?.className)}function an({table:e,loadingRows:t}){let n=e.getVisibleLeafColumns();return(0,T.jsx)(T.Fragment,{children:Array.from({length:t},(e,t)=>(0,T.jsx)(S,{className:en,children:n.map(e=>{let t=e.columnDef.meta;return(0,T.jsx)(C,{className:nn(t),children:(0,T.jsx)($t,{type:t?.skeleton??`long`})},e.id)})},`skeleton-${t}`))})}function on({table:e,renderExpandedRow:t}){return(0,T.jsx)(T.Fragment,{children:e.getRowModel().rows.map(e=>{let n=(0,T.jsx)(S,{className:_(en,e.depth>0&&`bg-muted/40`),"data-state":e.getIsSelected()?`selected`:void 0,children:e.getVisibleCells().map(e=>{let t=e.column.columnDef.meta;return(0,T.jsx)(C,{className:nn(t),children:Kt(e.column.columnDef.cell,e.getContext())},e.id)})},e.id);return t&&e.getIsExpanded()?(0,T.jsxs)(w.Fragment,{children:[n,(0,T.jsx)(S,{children:(0,T.jsx)(C,{className:`bg-background p-4`,colSpan:e.getVisibleCells().length,children:t(e)})})]},e.id):n})})}function sn({colSpan:e,text:t}){return(0,T.jsx)(S,{children:(0,T.jsx)(C,{className:`p-0`,colSpan:e,children:(0,T.jsx)(Oe,{description:t})})})}function cn({table:e,className:t,emptyText:n=l(),loading:r=!1,loadingRows:i=10,renderExpandedRow:a}){let o=e.getVisibleLeafColumns(),s=e.getRowModel().rows,c=r||s.length>0;function u(){return r?(0,T.jsx)(an,{loadingRows:i,table:e}):s.length?(0,T.jsx)(on,{renderExpandedRow:a,table:e}):(0,T.jsx)(sn,{colSpan:o.length,text:n})}return(0,T.jsx)(`div`,{className:`overflow-x-auto rounded-md border`,children:(0,T.jsxs)(Ve,{className:t,children:[c&&(0,T.jsx)(Re,{children:e.getHeaderGroups().map(e=>(0,T.jsx)(S,{className:en,children:e.headers.map(e=>{let t=e.column.columnDef.meta;return(0,T.jsx)(ze,{className:rn(t),colSpan:e.colSpan,children:e.isPlaceholder?null:Kt(e.column.columnDef.header,e.getContext())},e.id)})},e.id))}),(0,T.jsx)(Be,{children:u()})]})})}function ln({table:e,className:t}){let n=e.getState().pagination.pageIndex+1,r=e.getPageCount(),i=re(n,r);return(0,T.jsxs)(`div`,{className:_(`flex items-center justify-between`,`@max-2xl/content:flex-col-reverse @max-2xl/content:gap-4`,t),children:[(0,T.jsxs)(`div`,{className:`flex w-full items-center justify-between`,children:[(0,T.jsx)(`div`,{className:`flex @2xl/content:hidden w-auto items-center justify-center whitespace-nowrap font-medium text-sm`,children:m({current:n,total:r})}),(0,T.jsxs)(`div`,{className:`flex @max-2xl/content:flex-row-reverse items-center gap-2`,children:[(0,T.jsxs)(ye,{onValueChange:t=>{e.setPageSize(Number(t))},value:`${e.getState().pagination.pageSize}`,children:[(0,T.jsx)(ge,{className:`h-8 w-17.5`,children:(0,T.jsx)(he,{placeholder:e.getState().pagination.pageSize})}),(0,T.jsx)(_e,{side:`top`,children:[10,20,30,40,50].map(e=>(0,T.jsx)(ve,{value:`${e}`,children:e},e))})]}),(0,T.jsx)(`p`,{className:`hidden font-medium text-sm sm:block`,children:g()})]})]}),(0,T.jsxs)(`div`,{className:`flex items-center sm:space-x-6 lg:space-x-8`,children:[(0,T.jsx)(`div`,{className:`flex @max-3xl/content:hidden w-auto items-center justify-center whitespace-nowrap font-medium text-sm`,children:m({current:n,total:r})}),(0,T.jsxs)(`div`,{className:`flex items-center space-x-2`,children:[(0,T.jsxs)(v,{className:`@max-md/content:hidden size-8 p-0`,disabled:!e.getCanPreviousPage(),onClick:()=>e.setPageIndex(0),variant:`outline`,children:[(0,T.jsx)(`span`,{className:`sr-only`,children:c()}),(0,T.jsx)(Ge,{className:`h-4 w-4`})]}),(0,T.jsxs)(v,{className:`size-8 p-0`,disabled:!e.getCanPreviousPage(),onClick:()=>e.previousPage(),variant:`outline`,children:[(0,T.jsx)(`span`,{className:`sr-only`,children:o()}),(0,T.jsx)(We,{className:`h-4 w-4`})]}),i.map((t,r)=>(0,T.jsx)(`div`,{className:`flex items-center`,children:t===`...`?(0,T.jsx)(`span`,{className:`px-1 text-muted-foreground text-sm`,children:`...`}):(0,T.jsxs)(v,{className:`h-8 min-w-8 px-2`,onClick:()=>e.setPageIndex(t-1),variant:n===t?`default`:`outline`,children:[(0,T.jsx)(`span`,{className:`sr-only`,children:ne({page:t})}),t]})},`page-${t}-${r}`)),(0,T.jsxs)(v,{className:`size-8 p-0`,disabled:!e.getCanNextPage(),onClick:()=>e.nextPage(),variant:`outline`,children:[(0,T.jsx)(`span`,{className:`sr-only`,children:p()}),(0,T.jsx)(Se,{className:`h-4 w-4`})]}),(0,T.jsxs)(v,{className:`@max-md/content:hidden size-8 p-0`,disabled:!e.getCanNextPage(),onClick:()=>e.setPageIndex(e.getPageCount()-1),variant:`outline`,children:[(0,T.jsx)(`span`,{className:`sr-only`,children:a()}),(0,T.jsx)(Ke,{className:`h-4 w-4`})]})]})]})]})}function un({column:e,title:t,options:r}){let i=e?.getFacetedUniqueValues(),a=new Set(e?.getFilterValue());return(0,T.jsxs)(me,{children:[(0,T.jsx)(pe,{asChild:!0,children:(0,T.jsxs)(v,{className:`h-8 border-dashed`,size:`sm`,variant:`outline`,children:[(0,T.jsx)(qe,{className:`size-4`}),t,a?.size>0&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(be,{className:`mx-2 h-4`,orientation:`vertical`}),(0,T.jsx)(x,{className:`rounded-sm px-1 font-normal lg:hidden`,variant:`secondary`,children:a.size}),(0,T.jsx)(`div`,{className:`hidden space-x-1 lg:flex`,children:a.size>2?(0,T.jsxs)(x,{className:`rounded-sm px-1 font-normal`,variant:`secondary`,children:[a.size,` selected`]}):r.filter(e=>a.has(e.value)).map(e=>(0,T.jsx)(x,{className:`rounded-sm px-1 font-normal`,variant:`secondary`,children:e.label},e.value))})]})]})}),(0,T.jsx)(fe,{align:`start`,className:`w-50 p-0`,children:(0,T.jsxs)(Fe,{children:[(0,T.jsx)(ke,{placeholder:t}),(0,T.jsxs)(Pe,{children:[(0,T.jsx)(Ne,{children:n()}),(0,T.jsx)(je,{children:r.map(t=>{let n=a.has(t.value);return(0,T.jsxs)(Me,{onSelect:()=>{n?a.delete(t.value):a.add(t.value);let r=Array.from(a);e?.setFilterValue(r.length?r:void 0)},children:[(0,T.jsx)(`div`,{className:_(`flex size-4 items-center justify-center rounded-sm border border-primary`,n?`bg-primary text-primary-foreground`:`opacity-50 [&_svg]:invisible`),children:(0,T.jsx)(xe,{className:_(`h-4 w-4 text-background`)})}),t.icon&&(0,T.jsx)(t.icon,{className:`size-4 text-muted-foreground`}),(0,T.jsx)(`span`,{children:t.label}),i?.get(t.value)&&(0,T.jsx)(`span`,{className:`ms-auto flex h-4 w-4 items-center justify-center font-mono text-xs`,children:i.get(t.value)})]},t.value)})}),a.size>0&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(Ae,{}),(0,T.jsx)(je,{children:(0,T.jsx)(Me,{className:`justify-center text-center`,onSelect:()=>e?.setFilterValue(void 0),children:`Clear filters`})})]})]})]})})]})}function dn(e){let t=e.columnDef.meta?.label;if(typeof t==`string`&&t.trim())return t;let n=e.columnDef.header;return typeof n==`string`&&n.trim()?n:e.id}function fn({table:e}){return(0,T.jsxs)(ue,{modal:!1,children:[(0,T.jsx)(de,{asChild:!0,children:(0,T.jsxs)(v,{className:`ms-auto hidden h-8 lg:flex`,size:`sm`,variant:`outline`,children:[(0,T.jsx)(Ee,{className:`size-4`}),f()]})}),(0,T.jsxs)(ce,{align:`end`,className:`w-37.5`,children:[(0,T.jsx)(se,{children:ee()}),(0,T.jsx)(le,{}),e.getAllColumns().filter(e=>e.accessorFn!==void 0&&e.getCanHide()).map(e=>(0,T.jsx)(oe,{checked:e.getIsVisible(),className:`capitalize`,onCheckedChange:t=>e.toggleVisibility(!!t),children:dn(e)},e.id))]})]})}function pn({table:e,searchPlaceholder:t=te(),searchKey:n,filters:r=[],onRefresh:i}){let a=e.getState().columnFilters.length>0||e.getState().globalFilter;return(0,T.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,T.jsxs)(`div`,{className:`flex flex-1 flex-col-reverse items-start gap-y-2 sm:flex-row sm:items-center sm:space-x-2`,children:[n?(0,T.jsx)(Le,{className:`h-8 w-37.5 lg:w-62.5`,onChange:t=>e.getColumn(n)?.setFilterValue(t.target.value),placeholder:t,value:e.getColumn(n)?.getFilterValue()??``}):(0,T.jsx)(Le,{className:`h-8 w-37.5 lg:w-62.5`,onChange:t=>e.setGlobalFilter(t.target.value),placeholder:t,value:e.getState().globalFilter??``}),(0,T.jsx)(`div`,{className:`flex gap-x-2`,children:r.map(t=>{let n=e.getColumn(t.columnId);return n?(0,T.jsx)(un,{column:n,options:t.options,title:t.title},t.columnId):null})}),a&&(0,T.jsxs)(v,{className:`h-8 px-2 lg:px-3`,onClick:()=>{e.resetColumnFilters(),e.setGlobalFilter(``)},variant:`ghost`,children:[h(),(0,T.jsx)(Ie,{className:`ms-2 h-4 w-4`})]})]}),(0,T.jsxs)(`div`,{className:`flex items-center gap-2`,children:[i&&(0,T.jsx)(mn,{onRefresh:i}),(0,T.jsx)(fn,{table:e})]})]})}function mn({onRefresh:e}){let[t,n]=(0,w.useState)(!1);return(0,T.jsxs)(v,{className:`hidden h-8 lg:flex`,disabled:t,onClick:(0,w.useCallback)(async()=>{n(!0);try{await e()}catch{}finally{setTimeout(()=>n(!1),500)}},[e]),size:`sm`,variant:`outline`,children:[(0,T.jsx)(De,{className:_(`size-4`,t&&`animate-spin`)}),i()]})}export{Zt as a,Vt as c,Wt as d,Gt as f,$t as i,Ht as l,ln as n,Xt as o,We as p,cn as r,It as s,pn as t,Ut as u}; \ No newline at end of file + color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,n?.key)}return i}}function A(e,t,n,r){return{debug:()=>e?.debugAll??e[t],key:!1,onChange:r}}function Xe(e,t,n,r){let i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>i.getValue()??e.options.renderFallbackValue,getContext:k(()=>[e,n,t,i],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),A(e.options,`debugCells`,`cell.getContext`))};return e._features.forEach(r=>{r.createCell==null||r.createCell(i,n,t,e)},{}),i}function Ze(e,t,n,r){let i={...e._getDefaultColumnDef(),...t},a=i.accessorKey,o=i.id??(a?typeof String.prototype.replaceAll==`function`?a.replaceAll(`.`,`_`):a.replace(/\./g,`_`):void 0)??(typeof i.header==`string`?i.header:void 0),s;if(i.accessorFn?s=i.accessorFn:a&&(s=a.includes(`.`)?e=>{let t=e;for(let e of a.split(`.`))t=t?.[e];return t}:e=>e[i.accessorKey]),!o)throw Error();let c={id:`${String(o)}`,accessorFn:s,parent:r,depth:n,columnDef:i,columns:[],getFlatColumns:k(()=>[!0],()=>[c,...c.columns?.flatMap(e=>e.getFlatColumns())],A(e.options,`debugColumns`,`column.getFlatColumns`)),getLeafColumns:k(()=>[e._getOrderColumnsFn()],e=>{var t;return(t=c.columns)!=null&&t.length?e(c.columns.flatMap(e=>e.getLeafColumns())):[c]},A(e.options,`debugColumns`,`column.getLeafColumns`))};for(let t of e._features)t.createColumn==null||t.createColumn(c,e);return c}var j=`debugHeaders`;function Qe(e,t,n){let r={id:n.id??t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{let e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(r),e},getContext:()=>({table:e,header:r,column:t})};return e._features.forEach(t=>{t.createHeader==null||t.createHeader(r,e)}),r}var $e={createTable:e=>{e.getHeaderGroups=k(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{let a=r?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],o=i?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],s=n.filter(e=>!(r!=null&&r.includes(e.id))&&!(i!=null&&i.includes(e.id)));return M(t,[...a,...s,...o],e)},A(e.options,j,`getHeaderGroups`)),e.getCenterHeaderGroups=k(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>(n=n.filter(e=>!(r!=null&&r.includes(e.id))&&!(i!=null&&i.includes(e.id))),M(t,n,e,`center`)),A(e.options,j,`getCenterHeaderGroups`)),e.getLeftHeaderGroups=k(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>M(t,r?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],e,`left`),A(e.options,j,`getLeftHeaderGroups`)),e.getRightHeaderGroups=k(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>M(t,r?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],e,`right`),A(e.options,j,`getRightHeaderGroups`)),e.getFooterGroups=k(()=>[e.getHeaderGroups()],e=>[...e].reverse(),A(e.options,j,`getFooterGroups`)),e.getLeftFooterGroups=k(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),A(e.options,j,`getLeftFooterGroups`)),e.getCenterFooterGroups=k(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),A(e.options,j,`getCenterFooterGroups`)),e.getRightFooterGroups=k(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),A(e.options,j,`getRightFooterGroups`)),e.getFlatHeaders=k(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),A(e.options,j,`getFlatHeaders`)),e.getLeftFlatHeaders=k(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),A(e.options,j,`getLeftFlatHeaders`)),e.getCenterFlatHeaders=k(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),A(e.options,j,`getCenterFlatHeaders`)),e.getRightFlatHeaders=k(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),A(e.options,j,`getRightFlatHeaders`)),e.getCenterLeafHeaders=k(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!((t=e.subHeaders)!=null&&t.length)}),A(e.options,j,`getCenterLeafHeaders`)),e.getLeftLeafHeaders=k(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!((t=e.subHeaders)!=null&&t.length)}),A(e.options,j,`getLeftLeafHeaders`)),e.getRightLeafHeaders=k(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!((t=e.subHeaders)!=null&&t.length)}),A(e.options,j,`getRightLeafHeaders`)),e.getLeafHeaders=k(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>[...e[0]?.headers??[],...t[0]?.headers??[],...n[0]?.headers??[]].map(e=>e.getLeafHeaders()).flat(),A(e.options,j,`getLeafHeaders`))}};function M(e,t,n,r){let i=0,a=function(e,t){t===void 0&&(t=1),i=Math.max(i,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;(n=e.columns)!=null&&n.length&&a(e.columns,t+1)},0)};a(e);let o=[],s=(e,t)=>{let i={depth:t,id:[r,`${t}`].filter(Boolean).join(`_`),headers:[]},a=[];e.forEach(e=>{let o=[...a].reverse()[0],s=e.column.depth===i.depth,c,l=!1;if(s&&e.column.parent?c=e.column.parent:(c=e.column,l=!0),o&&o?.column===c)o.subHeaders.push(e);else{let i=Qe(n,c,{id:[r,t,c.id,e?.id].filter(Boolean).join(`_`),isPlaceholder:l,placeholderId:l?`${a.filter(e=>e.column===c).length}`:void 0,depth:t,index:a.length});i.subHeaders.push(e),a.push(i)}i.headers.push(e),e.headerGroup=i}),o.push(i),t>0&&s(a,t-1)};s(t.map((e,t)=>Qe(n,e,{depth:i,index:t})),i-1),o.reverse();let c=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,r=[0];e.subHeaders&&e.subHeaders.length?(r=[],c(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:i}=e;t+=n,r.push(i)})):t=1;let i=Math.min(...r);return n+=i,e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return c(o[0]?.headers??[]),o}var et=(e,t,n,r,i,a,o)=>{let s={id:t,index:r,original:n,depth:i,parentId:o,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];let n=e.getColumn(t);if(n!=null&&n.accessorFn)return s._valuesCache[t]=n.accessorFn(s.original,r),s._valuesCache[t]},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];let n=e.getColumn(t);if(n!=null&&n.accessorFn)return n.columnDef.getUniqueValues?(s._uniqueValuesCache[t]=n.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[t]):(s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t])},renderValue:t=>s.getValue(t)??e.options.renderFallbackValue,subRows:a??[],getLeafRows:()=>Ye(s.subRows,e=>e.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let e=[],t=s;for(;;){let n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:k(()=>[e.getAllLeafColumns()],t=>t.map(t=>Xe(e,s,t,t.id)),A(e.options,`debugRows`,`getAllCells`)),_getAllCellsByColumnId:k(()=>[s.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),A(e.options,`debugRows`,`getAllCellsByColumnId`))};for(let t=0;t{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},nt=(e,t,n)=>{var r,i;let a=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((i=e.getValue(t))==null||(i=i.toString())==null||(i=i.toLowerCase())==null)&&i.includes(a))};nt.autoRemove=e=>F(e);var rt=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};rt.autoRemove=e=>F(e);var it=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===n?.toLowerCase()};it.autoRemove=e=>F(e);var at=(e,t,n)=>e.getValue(t)?.includes(n);at.autoRemove=e=>F(e);var ot=(e,t,n)=>!n.some(n=>{var r;return!((r=e.getValue(t))!=null&&r.includes(n))});ot.autoRemove=e=>F(e)||!(e!=null&&e.length);var st=(e,t,n)=>n.some(n=>e.getValue(t)?.includes(n));st.autoRemove=e=>F(e)||!(e!=null&&e.length);var ct=(e,t,n)=>e.getValue(t)===n;ct.autoRemove=e=>F(e);var lt=(e,t,n)=>e.getValue(t)==n;lt.autoRemove=e=>F(e);var N=(e,t,n)=>{let[r,i]=n,a=e.getValue(t);return a>=r&&a<=i};N.resolveFilterValue=e=>{let[t,n]=e,r=typeof t==`number`?t:parseFloat(t),i=typeof n==`number`?n:parseFloat(n),a=t===null||Number.isNaN(r)?-1/0:r,o=n===null||Number.isNaN(i)?1/0:i;if(a>o){let e=a;a=o,o=e}return[a,o]},N.autoRemove=e=>F(e)||F(e[0])&&F(e[1]);var P={includesString:nt,includesStringSensitive:rt,equalsString:it,arrIncludes:at,arrIncludesAll:ot,arrIncludesSome:st,equals:ct,weakEquals:lt,inNumberRange:N};function F(e){return e==null||e===``}var ut={getDefaultColumnDef:()=>({filterFn:`auto`}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:D(`columnFilters`,e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{let n=t.getCoreRowModel().flatRows[0]?.getValue(e.id);return typeof n==`string`?P.includesString:typeof n==`number`?P.inNumberRange:typeof n==`boolean`||typeof n==`object`&&n?P.equals:Array.isArray(n)?P.arrIncludes:P.weakEquals},e.getFilterFn=()=>O(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn===`auto`?e.getAutoFilterFn():t.options.filterFns?.[e.columnDef.filterFn]??P[e.columnDef.filterFn],e.getCanFilter=()=>(e.columnDef.enableColumnFilter??!0)&&(t.options.enableColumnFilters??!0)&&(t.options.enableFilters??!0)&&!!e.accessorFn,e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(t=>t.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>t.getState().columnFilters?.findIndex(t=>t.id===e.id)??-1,e.setFilterValue=n=>{t.setColumnFilters(t=>{let r=e.getFilterFn(),i=t?.find(t=>t.id===e.id),a=E(n,i?i.value:void 0);if(dt(r,a,e))return t?.filter(t=>t.id!==e.id)??[];let o={id:e.id,value:a};return i?t?.map(t=>t.id===e.id?o:t)??[]:t!=null&&t.length?[...t,o]:[o]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{let n=e.getAllLeafColumns();e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(e=>E(t,e)?.filter(e=>{let t=n.find(t=>t.id===e.id);return!(t&&dt(t.getFilterFn(),e.value,t))}))},e.resetColumnFilters=t=>{e.setColumnFilters(t?[]:e.initialState?.columnFilters??[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function dt(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||t===void 0||typeof t==`string`&&!t}var I={sum:(e,t,n)=>n.reduce((t,n)=>{let r=n.getValue(e);return t+(typeof r==`number`?r:0)},0),min:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);n!=null&&(r>n||r===void 0&&n>=n)&&(r=n)}),r},max:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);n!=null&&(r=n)&&(r=n)}),r},extent:(e,t,n)=>{let r,i;return n.forEach(t=>{let n=t.getValue(e);n!=null&&(r===void 0?n>=n&&(r=i=n):(r>n&&(r=n),i{let n=0,r=0;if(t.forEach(t=>{let i=t.getValue(e);i!=null&&(i=+i)>=i&&(++n,r+=i)}),n)return r/n},median:(e,t)=>{if(!t.length)return;let n=t.map(t=>t.getValue(e));if(!Je(n))return;if(n.length===1)return n[0];let r=Math.floor(n.length/2),i=n.sort((e,t)=>e-t);return n.length%2==0?(i[r-1]+i[r])/2:i[r]},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},ft={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t;return((t=e.getValue())==null||t.toString==null?void 0:t.toString())??null},aggregationFn:`auto`}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:D(`grouping`,e),groupedColumnMode:`reorder`}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>t!=null&&t.includes(e.id)?t.filter(t=>t!==e.id):[...t??[],e.id])},e.getCanGroup=()=>(e.columnDef.enableGrouping??!0)&&(t.options.enableGrouping??!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue),e.getIsGrouped=()=>t.getState().grouping?.includes(e.id),e.getGroupedIndex=()=>t.getState().grouping?.indexOf(e.id),e.getToggleGroupingHandler=()=>{let t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{let n=t.getCoreRowModel().flatRows[0]?.getValue(e.id);if(typeof n==`number`)return I.sum;if(Object.prototype.toString.call(n)===`[object Date]`)return I.extent},e.getAggregationFn=()=>{if(!e)throw Error();return O(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn===`auto`?e.getAutoAggregationFn():t.options.aggregationFns?.[e.columnDef.aggregationFn]??I[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{e.setGrouping(t?[]:e.initialState?.grouping??[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];let r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((t=n.subRows)!=null&&t.length)}}};function pt(e,t,n){if(!(t!=null&&t.length)||!n)return e;let r=e.filter(e=>!t.includes(e.id));return n===`remove`?r:[...t.map(t=>e.find(e=>e.id===t)).filter(Boolean),...r]}var mt={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:D(`columnOrder`,e)}),createColumn:(e,t)=>{e.getIndex=k(e=>[V(t,e)],t=>t.findIndex(t=>t.id===e.id),A(t.options,`debugColumns`,`getIndex`)),e.getIsFirstColumn=n=>V(t,n)[0]?.id===e.id,e.getIsLastColumn=n=>{let r=V(t,n);return r[r.length-1]?.id===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{e.setColumnOrder(t?[]:e.initialState.columnOrder??[])},e._getOrderColumnsFn=k(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>r=>{let i=[];if(!(e!=null&&e.length))i=r;else{let t=[...e],n=[...r];for(;n.length&&t.length;){let e=t.shift(),r=n.findIndex(t=>t.id===e);r>-1&&i.push(n.splice(r,1)[0])}i=[...i,...n]}return pt(i,t,n)},A(e.options,`debugTable`,`_getOrderColumnsFn`))}},ht=()=>({left:[],right:[]}),gt={getInitialState:e=>({columnPinning:ht(),...e}),getDefaultOptions:e=>({onColumnPinningChange:D(`columnPinning`,e)}),createColumn:(e,t)=>{e.pin=n=>{let r=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>n===`right`?{left:(e?.left??[]).filter(e=>!(r!=null&&r.includes(e))),right:[...(e?.right??[]).filter(e=>!(r!=null&&r.includes(e))),...r]}:n===`left`?{left:[...(e?.left??[]).filter(e=>!(r!=null&&r.includes(e))),...r],right:(e?.right??[]).filter(e=>!(r!=null&&r.includes(e)))}:{left:(e?.left??[]).filter(e=>!(r!=null&&r.includes(e))),right:(e?.right??[]).filter(e=>!(r!=null&&r.includes(e)))})},e.getCanPin=()=>e.getLeafColumns().some(e=>(e.columnDef.enablePinning??!0)&&(t.options.enableColumnPinning??t.options.enablePinning??!0)),e.getIsPinned=()=>{let n=e.getLeafColumns().map(e=>e.id),{left:r,right:i}=t.getState().columnPinning,a=n.some(e=>r?.includes(e)),o=n.some(e=>i?.includes(e));return a?`left`:o?`right`:!1},e.getPinnedIndex=()=>{var n;let r=e.getIsPinned();return r?((n=t.getState().columnPinning)==null||(n=n[r])==null?void 0:n.indexOf(e.id))??-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=k(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{let r=[...t??[],...n??[]];return e.filter(e=>!r.includes(e.column.id))},A(t.options,`debugRows`,`getCenterVisibleCells`)),e.getLeftVisibleCells=k(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>(t??[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:`left`})),A(t.options,`debugRows`,`getLeftVisibleCells`)),e.getRightVisibleCells=k(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(t??[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:`right`})),A(t.options,`debugRows`,`getRightVisibleCells`))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>e.setColumnPinning(t?ht():e.initialState?.columnPinning??ht()),e.getIsSomeColumnsPinned=t=>{let n=e.getState().columnPinning;return t?!!n[t]?.length:!!(n.left?.length||n.right?.length)},e.getLeftLeafColumns=k(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(t??[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),A(e.options,`debugColumns`,`getLeftLeafColumns`)),e.getRightLeafColumns=k(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(t??[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),A(e.options,`debugColumns`,`getRightLeafColumns`)),e.getCenterLeafColumns=k(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{let r=[...t??[],...n??[]];return e.filter(e=>!r.includes(e.id))},A(e.options,`debugColumns`,`getCenterLeafColumns`))}};function _t(e){return e||(typeof document<`u`?document:null)}var L={size:150,minSize:20,maxSize:2**53-1},R=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),vt={getDefaultColumnDef:()=>L,getInitialState:e=>({columnSizing:{},columnSizingInfo:R(),...e}),getDefaultOptions:e=>({columnResizeMode:`onEnd`,columnResizeDirection:`ltr`,onColumnSizingChange:D(`columnSizing`,e),onColumnSizingInfoChange:D(`columnSizingInfo`,e)}),createColumn:(e,t)=>{e.getSize=()=>{let n=t.getState().columnSizing[e.id];return Math.min(Math.max(e.columnDef.minSize??L.minSize,n??e.columnDef.size??L.size),e.columnDef.maxSize??L.maxSize)},e.getStart=k(e=>[e,V(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),A(t.options,`debugColumns`,`getStart`)),e.getAfter=k(e=>[e,V(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),A(t.options,`debugColumns`,`getAfter`)),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:n,...r}=t;return r})},e.getCanResize=()=>(e.columnDef.enableResizing??!0)&&(t.options.enableColumnResizing??!0),e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0,n=e=>{e.subHeaders.length?e.subHeaders.forEach(n):t+=e.column.getSize()??0};return n(e),t},e.getStart=()=>{if(e.index>0){let t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{let r=t.getColumn(e.column.id),i=r?.getCanResize();return a=>{if(!r||!i||(a.persist==null||a.persist(),B(a)&&a.touches&&a.touches.length>1))return;let o=e.getSize(),s=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[r.id,r.getSize()]],c=B(a)?Math.round(a.touches[0].clientX):a.clientX,l={},u=(e,n)=>{typeof n==`number`&&(t.setColumnSizingInfo(e=>{let r=t.options.columnResizeDirection===`rtl`?-1:1,i=(n-(e?.startOffset??0))*r,a=Math.max(i/(e?.startSize??0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;l[t]=Math.round(Math.max(n+n*a,0)*100)/100}),{...e,deltaOffset:i,deltaPercentage:a}}),(t.options.columnResizeMode===`onChange`||e===`end`)&&t.setColumnSizing(e=>({...e,...l})))},d=e=>u(`move`,e),f=e=>{u(`end`,e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},p=_t(n),m={moveHandler:e=>d(e.clientX),upHandler:e=>{p?.removeEventListener(`mousemove`,m.moveHandler),p?.removeEventListener(`mouseup`,m.upHandler),f(e.clientX)}},h={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{p?.removeEventListener(`touchmove`,h.moveHandler),p?.removeEventListener(`touchend`,h.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(e.touches[0]?.clientX)}},g=yt()?{passive:!1}:!1;B(a)?(p?.addEventListener(`touchmove`,h.moveHandler,g),p?.addEventListener(`touchend`,h.upHandler,g)):(p?.addEventListener(`mousemove`,m.moveHandler,g),p?.addEventListener(`mouseup`,m.upHandler,g)),t.setColumnSizingInfo(e=>({...e,startOffset:c,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{e.setColumnSizing(t?{}:e.initialState.columnSizing??{})},e.resetHeaderSizeInfo=t=>{e.setColumnSizingInfo(t?R():e.initialState.columnSizingInfo??R())},e.getTotalSize=()=>e.getHeaderGroups()[0]?.headers.reduce((e,t)=>e+t.getSize(),0)??0,e.getLeftTotalSize=()=>e.getLeftHeaderGroups()[0]?.headers.reduce((e,t)=>e+t.getSize(),0)??0,e.getCenterTotalSize=()=>e.getCenterHeaderGroups()[0]?.headers.reduce((e,t)=>e+t.getSize(),0)??0,e.getRightTotalSize=()=>e.getRightHeaderGroups()[0]?.headers.reduce((e,t)=>e+t.getSize(),0)??0}},z=null;function yt(){if(typeof z==`boolean`)return z;let e=!1;try{let t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener(`test`,n,t),window.removeEventListener(`test`,n)}catch{e=!1}return z=e,z}function B(e){return e.type===`touchstart`}var bt={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:D(`columnVisibility`,e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{let n=e.columns;return(n.length?n.some(e=>e.getIsVisible()):t.getState().columnVisibility?.[e.id])??!0},e.getCanHide=()=>(e.columnDef.enableHiding??!0)&&(t.options.enableHiding??!0),e.getToggleVisibilityHandler=()=>t=>{e.toggleVisibility==null||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=k(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),A(t.options,`debugRows`,`_getAllVisibleCells`)),e.getVisibleCells=k(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],A(t.options,`debugRows`,`getVisibleCells`))},createTable:e=>{let t=(t,n)=>k(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join(`_`)],e=>e.filter(e=>e.getIsVisible==null?void 0:e.getIsVisible()),A(e.options,`debugColumns`,t));e.getVisibleFlatColumns=t(`getVisibleFlatColumns`,()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t(`getVisibleLeafColumns`,()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t(`getLeftVisibleLeafColumns`,()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t(`getRightVisibleLeafColumns`,()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t(`getCenterVisibleLeafColumns`,()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{e.setColumnVisibility(t?{}:e.initialState.columnVisibility??{})},e.toggleAllColumnsVisible=t=>{t??=!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>({...e,[n.id]:t||!(n.getCanHide!=null&&n.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(e.getIsVisible!=null&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>e.getIsVisible==null?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{e.toggleAllColumnsVisible(t.target?.checked)}}};function V(e,t){return t?t===`center`?e.getCenterVisibleLeafColumns():t===`left`?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}var xt={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,`__global__`),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,`__global__`),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,`__global__`),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},St={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:D(`globalFilter`,e),globalFilterFn:`auto`,getColumnCanGlobalFilter:t=>{var n;let r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r==`string`||typeof r==`number`}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>(e.columnDef.enableGlobalFilter??!0)&&(t.options.enableGlobalFilter??!0)&&(t.options.enableFilters??!0)&&((t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))??!0)&&!!e.accessorFn},createTable:e=>{e.getGlobalAutoFilterFn=()=>P.includesString,e.getGlobalFilterFn=()=>{let{globalFilterFn:t}=e.options;return O(t)?t:t===`auto`?e.getGlobalAutoFilterFn():e.options.filterFns?.[t]??P[t]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},Ct={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:D(`expanded`,e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{if(!t){e._queue(()=>{t=!0});return}if(e.options.autoResetAll??e.options.autoResetExpanded??!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=t=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{t??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{e.setExpanded(t?{}:e.initialState?.expanded??{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{t.persist==null||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{let t=e.getState().expanded;return t===!0||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{let t=e.getState().expanded;return typeof t==`boolean`?t===!0:!(!Object.keys(t).length||e.getRowModel().flatRows.some(e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{let n=e.split(`.`);t=Math.max(t,n.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{let i=r===!0?!0:!!(r!=null&&r[e.id]),a={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(e=>{a[e]=!0}):a=r,n??=!i,!i&&n)return{...a,[e.id]:!0};if(i&&!n){let{[e.id]:t,...n}=a;return n}return r})},e.getIsExpanded=()=>{let n=t.getState().expanded;return!!((t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))??(n===!0||n?.[e.id]))},e.getCanExpand=()=>{var n;return(t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))??((t.options.enableExpanding??!0)&&!!((n=e.subRows)!=null&&n.length))},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{let t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},H=0,U=10,W=()=>({pageIndex:H,pageSize:U}),wt={getInitialState:e=>({...e,pagination:{...W(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:D(`pagination`,e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{if(!t){e._queue(()=>{t=!0});return}if(e.options.autoResetAll??e.options.autoResetPageIndex??!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=t=>e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(e=>E(t,e)),e.resetPagination=t=>{e.setPagination(t?W():e.initialState.pagination??W())},e.setPageIndex=t=>{e.setPagination(n=>{let r=E(t,n.pageIndex),i=e.options.pageCount===void 0||e.options.pageCount===-1?2**53-1:e.options.pageCount-1;return r=Math.max(0,Math.min(r,i)),{...n,pageIndex:r}})},e.resetPageIndex=t=>{var n;e.setPageIndex(t?H:((n=e.initialState)==null||(n=n.pagination)==null?void 0:n.pageIndex)??H)},e.resetPageSize=t=>{var n;e.setPageSize(t?U:((n=e.initialState)==null||(n=n.pagination)==null?void 0:n.pageSize)??U)},e.setPageSize=t=>{e.setPagination(e=>{let n=Math.max(1,E(t,e.pageSize)),r=e.pageSize*e.pageIndex,i=Math.floor(r/n);return{...e,pageIndex:i,pageSize:n}})},e.setPageCount=t=>e.setPagination(n=>{let r=E(t,e.options.pageCount??-1);return typeof r==`number`&&(r=Math.max(-1,r)),{...n,pageCount:r}}),e.getPageOptions=k(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...Array(e)].fill(null).map((e,t)=>t)),t},A(e.options,`debugTable`,`getPageOptions`)),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{let{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return n===-1?!0:n===0?!1:te.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>e.options.pageCount??Math.ceil(e.getRowCount()/e.getState().pagination.pageSize),e.getRowCount=()=>e.options.rowCount??e.getPrePaginationRowModel().rows.length}},G=()=>({top:[],bottom:[]}),Tt={getInitialState:e=>({rowPinning:G(),...e}),getDefaultOptions:e=>({onRowPinningChange:D(`rowPinning`,e)}),createRow:(e,t)=>{e.pin=(n,r,i)=>{let a=r?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],o=i?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],s=new Set([...o,e.id,...a]);t.setRowPinning(e=>n===`bottom`?{top:(e?.top??[]).filter(e=>!(s!=null&&s.has(e))),bottom:[...(e?.bottom??[]).filter(e=>!(s!=null&&s.has(e))),...Array.from(s)]}:n===`top`?{top:[...(e?.top??[]).filter(e=>!(s!=null&&s.has(e))),...Array.from(s)],bottom:(e?.bottom??[]).filter(e=>!(s!=null&&s.has(e)))}:{top:(e?.top??[]).filter(e=>!(s!=null&&s.has(e))),bottom:(e?.bottom??[]).filter(e=>!(s!=null&&s.has(e)))})},e.getCanPin=()=>{let{enableRowPinning:n,enablePinning:r}=t.options;return typeof n==`function`?n(e):n??r??!0},e.getIsPinned=()=>{let n=[e.id],{top:r,bottom:i}=t.getState().rowPinning,a=n.some(e=>r?.includes(e)),o=n.some(e=>i?.includes(e));return a?`top`:o?`bottom`:!1},e.getPinnedIndex=()=>{let n=e.getIsPinned();return n?((n===`top`?t.getTopRows():t.getBottomRows())?.map(e=>{let{id:t}=e;return t}))?.indexOf(e.id)??-1:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>e.setRowPinning(t?G():e.initialState?.rowPinning??G()),e.getIsSomeRowsPinned=t=>{let n=e.getState().rowPinning;return t?!!n[t]?.length:!!(n.top?.length||n.bottom?.length)},e._getPinnedRows=(t,n,r)=>(e.options.keepPinnedRows??!0?(n??[]).map(t=>{let n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null}):(n??[]).map(e=>t.find(t=>t.id===e))).filter(Boolean).map(e=>({...e,position:r})),e.getTopRows=k(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,`top`),A(e.options,`debugRows`,`getTopRows`)),e.getBottomRows=k(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,`bottom`),A(e.options,`debugRows`,`getBottomRows`)),e.getCenterRows=k(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,n)=>{let r=new Set([...t??[],...n??[]]);return e.filter(e=>!r.has(e.id))},A(e.options,`debugRows`,`getCenterRows`))}},Et={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:D(`rowSelection`,e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>e.setRowSelection(t?{}:e.initialState.rowSelection??{}),e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=t===void 0?!e.getIsAllRowsSelected():t;let r={...n},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(e=>{e.getCanSelect()&&(r[e.id]=!0)}):i.forEach(e=>{delete r[e.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{let r=t===void 0?!e.getIsAllPageRowsSelected():t,i={...n};return e.getRowModel().rows.forEach(t=>{K(i,t.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=k(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?q(e,n):{rows:[],flatRows:[],rowsById:{}},A(e.options,`debugTable`,`getSelectedRowModel`)),e.getFilteredSelectedRowModel=k(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?q(e,n):{rows:[],flatRows:[],rowsById:{}},A(e.options,`debugTable`,`getFilteredSelectedRowModel`)),e.getGroupedSelectedRowModel=k(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?q(e,n):{rows:[],flatRows:[],rowsById:{}},A(e.options,`debugTable`,`getGroupedSelectedRowModel`)),e.getIsAllRowsSelected=()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState(),r=!!(t.length&&Object.keys(n).length);return r&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:n}=e.getState(),r=!!t.length;return r&&t.some(e=>!n[e.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{let t=Object.keys(e.getState().rowSelection??{}).length;return t>0&&t{let t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{let i=e.getIsSelected();t.setRowSelection(a=>{if(n=n===void 0?!i:n,e.getCanSelect()&&i===n)return a;let o={...a};return K(o,e.id,n,r?.selectChildren??!0,t),o})},e.getIsSelected=()=>{let{rowSelection:n}=t.getState();return J(e,n)},e.getIsSomeSelected=()=>{let{rowSelection:n}=t.getState();return Y(e,n)===`some`},e.getIsAllSubRowsSelected=()=>{let{rowSelection:n}=t.getState();return Y(e,n)===`all`},e.getCanSelect=()=>typeof t.options.enableRowSelection==`function`?t.options.enableRowSelection(e):t.options.enableRowSelection??!0,e.getCanSelectSubRows=()=>typeof t.options.enableSubRowSelection==`function`?t.options.enableSubRowSelection(e):t.options.enableSubRowSelection??!0,e.getCanMultiSelect=()=>typeof t.options.enableMultiRowSelection==`function`?t.options.enableMultiRowSelection(e):t.options.enableMultiRowSelection??!0,e.getToggleSelectedHandler=()=>{let t=e.getCanSelect();return n=>{t&&e.toggleSelected(n.target?.checked)}}}},K=(e,t,n,r,i)=>{var a;let o=i.getRow(t,!0);n?(o.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),o.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(a=o.subRows)!=null&&a.length&&o.getCanSelectSubRows()&&o.subRows.forEach(t=>K(e,t.id,n,r,i))};function q(e,t){let n=e.getState().rowSelection,r=[],i={},a=function(e,t){return e.map(e=>{var t;let o=J(e,n);if(o&&(r.push(e),i[e.id]=e),(t=e.subRows)!=null&&t.length&&(e={...e,subRows:a(e.subRows)}),o)return e}).filter(Boolean)};return{rows:a(t.rows),flatRows:r,rowsById:i}}function J(e,t){return t[e.id]??!1}function Y(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let i=!0,a=!1;return e.subRows.forEach(e=>{if(!(a&&!i)&&(e.getCanSelect()&&(J(e,t)?a=!0:i=!1),e.subRows&&e.subRows.length)){let n=Y(e,t);n===`all`?a=!0:(n===`some`&&(a=!0),i=!1)}}),i?`all`:a?`some`:!1}var X=/([0-9]+)/gm,Dt=(e,t,n)=>Nt(Q(e.getValue(n)).toLowerCase(),Q(t.getValue(n)).toLowerCase()),Ot=(e,t,n)=>Nt(Q(e.getValue(n)),Q(t.getValue(n))),kt=(e,t,n)=>Z(Q(e.getValue(n)).toLowerCase(),Q(t.getValue(n)).toLowerCase()),At=(e,t,n)=>Z(Q(e.getValue(n)),Q(t.getValue(n))),jt=(e,t,n)=>{let r=e.getValue(n),i=t.getValue(n);return r>i?1:rZ(e.getValue(n),t.getValue(n));function Z(e,t){return e===t?0:e>t?1:-1}function Q(e){return typeof e==`number`?isNaN(e)||e===1/0||e===-1/0?``:String(e):typeof e==`string`?e:``}function Nt(e,t){let n=e.split(X).filter(Boolean),r=t.split(X).filter(Boolean);for(;n.length&&r.length;){let e=n.shift(),t=r.shift(),i=parseInt(e,10),a=parseInt(t,10),o=[i,a].sort();if(isNaN(o[0])){if(e>t)return 1;if(t>e)return-1;continue}if(isNaN(o[1]))return isNaN(i)?-1:1;if(i>a)return 1;if(a>i)return-1}return n.length-r.length}var $={alphanumeric:Dt,alphanumericCaseSensitive:Ot,text:kt,textCaseSensitive:At,datetime:jt,basic:Mt},Pt=[$e,bt,mt,gt,tt,ut,xt,St,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:`auto`,sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:D(`sorting`,e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{let n=t.getFilteredRowModel().flatRows.slice(10),r=!1;for(let t of n){let n=t?.getValue(e.id);if(Object.prototype.toString.call(n)===`[object Date]`)return $.datetime;if(typeof n==`string`&&(r=!0,n.split(X).length>1))return $.alphanumeric}return r?$.text:$.basic},e.getAutoSortDir=()=>typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id)==`string`?`asc`:`desc`,e.getSortingFn=()=>{if(!e)throw Error();return O(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn===`auto`?e.getAutoSortingFn():t.options.sortingFns?.[e.columnDef.sortingFn]??$[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{let i=e.getNextSortingOrder(),a=n!=null;t.setSorting(o=>{let s=o?.find(t=>t.id===e.id),c=o?.findIndex(t=>t.id===e.id),l=[],u,d=a?n:i===`desc`;return u=o!=null&&o.length&&e.getCanMultiSort()&&r?s?`toggle`:`add`:o!=null&&o.length&&c!==o.length-1?`replace`:s?`toggle`:`replace`,u===`toggle`&&(a||i||(u=`remove`)),u===`add`?(l=[...o,{id:e.id,desc:d}],l.splice(0,l.length-(t.options.maxMultiSortColCount??2**53-1))):l=u===`toggle`?o.map(t=>t.id===e.id?{...t,desc:d}:t):u===`remove`?o.filter(t=>t.id!==e.id):[{id:e.id,desc:d}],l})},e.getFirstSortDir=()=>e.columnDef.sortDescFirst??t.options.sortDescFirst??e.getAutoSortDir()===`desc`?`desc`:`asc`,e.getNextSortingOrder=n=>{let r=e.getFirstSortDir(),i=e.getIsSorted();return i?i!==r&&(t.options.enableSortingRemoval??!0)&&(!n||(t.options.enableMultiRemove??!0))?!1:i===`desc`?`asc`:`desc`:r},e.getCanSort=()=>(e.columnDef.enableSorting??!0)&&(t.options.enableSorting??!0)&&!!e.accessorFn,e.getCanMultiSort=()=>e.columnDef.enableMultiSort??t.options.enableMultiSort??!!e.accessorFn,e.getIsSorted=()=>{let n=t.getState().sorting?.find(t=>t.id===e.id);return n?n.desc?`desc`:`asc`:!1},e.getSortIndex=()=>t.getState().sorting?.findIndex(t=>t.id===e.id)??-1,e.clearSorting=()=>{t.setSorting(t=>t!=null&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{let n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{e.setSorting(t?[]:e.initialState?.sorting??[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},ft,Ct,wt,Tt,Et,vt];function Ft(e){let t=[...Pt,...e._features??[]],n={_features:t},r=n._features.reduce((e,t)=>Object.assign(e,t.getDefaultOptions==null?void 0:t.getDefaultOptions(n)),{}),i=e=>n.options.mergeOptions?n.options.mergeOptions(r,e):{...r,...e},a={...e.initialState??{}};n._features.forEach(e=>{a=(e.getInitialState==null?void 0:e.getInitialState(a))??a});let o=[],s=!1,c={_features:t,options:{...r,...e},initialState:a,_queue:e=>{o.push(e),s||(s=!0,Promise.resolve().then(()=>{for(;o.length;)o.shift()();s=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{n.setState(n.initialState)},setOptions:e=>{n.options=i(E(e,n.options))},getState:()=>n.options.state,setState:e=>{n.options.onStateChange==null||n.options.onStateChange(e)},_getRowId:(e,t,r)=>(n.options.getRowId==null?void 0:n.options.getRowId(e,t,r))??`${r?[r.id,t].join(`.`):t}`,getCoreRowModel:()=>(n._getCoreRowModel||=n.options.getCoreRowModel(n),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(e,t)=>{let r=(t?n.getPrePaginationRowModel():n.getRowModel()).rowsById[e];if(!r&&(r=n.getCoreRowModel().rowsById[e],!r))throw Error();return r},_getDefaultColumnDef:k(()=>[n.options.defaultColumn],e=>(e??={},{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t;return((t=e.renderValue())==null||t.toString==null?void 0:t.toString())??null},...n._features.reduce((e,t)=>Object.assign(e,t.getDefaultColumnDef==null?void 0:t.getDefaultColumnDef()),{}),...e}),A(e,`debugColumns`,`_getDefaultColumnDef`)),_getColumnDefs:()=>n.options.columns,getAllColumns:k(()=>[n._getColumnDefs()],e=>{let t=function(e,r,i){return i===void 0&&(i=0),e.map(e=>{let a=Ze(n,e,i,r),o=e;return a.columns=o.columns?t(o.columns,a,i+1):[],a})};return t(e)},A(e,`debugColumns`,`getAllColumns`)),getAllFlatColumns:k(()=>[n.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),A(e,`debugColumns`,`getAllFlatColumns`)),_getAllFlatColumnsById:k(()=>[n.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),A(e,`debugColumns`,`getAllFlatColumnsById`)),getAllLeafColumns:k(()=>[n.getAllColumns(),n._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),A(e,`debugColumns`,`getAllLeafColumns`)),getColumn:e=>n._getAllFlatColumnsById()[e]};Object.assign(n,c);for(let e=0;ek(()=>[e.options.data],t=>{let n={rows:[],flatRows:[],rowsById:{}},r=function(t,i,a){i===void 0&&(i=0);let o=[];for(let c=0;ce._autoResetPageIndex()))}function Lt(e){let t=[],n=e=>{var r;t.push(e),(r=e.subRows)!=null&&r.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function Rt(e,t,n){return n.options.filterFromLeafRows?zt(e,t,n):Bt(e,t,n)}function zt(e,t,n){let r=[],i={},a=n.options.maxLeafRowFilterDepth??100,o=function(e,s){s===void 0&&(s=0);let c=[];for(let u=0;uk(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter,e.getFilteredRowModel()],(n,r,i)=>{if(!n.rows.length||!(r!=null&&r.length)&&!i)return n;let a=[...r.map(e=>e.id).filter(e=>e!==t),i?`__global__`:void 0].filter(Boolean);return Rt(n.rows,e=>{for(let t=0;tk(()=>[e.getColumn(t)?.getFacetedRowModel()],e=>{if(!e)return new Map;let n=new Map;for(let r=0;rk(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{if(!t.rows.length||!(n!=null&&n.length)&&!r){for(let e=0;e{let n=e.getColumn(t.id);if(!n)return;let r=n.getFilterFn();r&&i.push({id:t.id,filterFn:r,resolvedValue:(r.resolveFilterValue==null?void 0:r.resolveFilterValue(t.value))??t.value})});let o=(n??[]).map(e=>e.id),s=e.getGlobalFilterFn(),c=e.getAllLeafColumns().filter(e=>e.getCanGlobalFilter());r&&s&&c.length&&(o.push(`__global__`),c.forEach(e=>{a.push({id:e.id,filterFn:s,resolvedValue:(s.resolveFilterValue==null?void 0:s.resolveFilterValue(r))??r})}));let l,u;for(let e=0;e{n.columnFiltersMeta[t]=e})}if(a.length){for(let e=0;e{n.columnFiltersMeta[t]=e})){n.columnFilters.__global__=!0;break}}n.columnFilters.__global__!==!0&&(n.columnFilters.__global__=!1)}}return Rt(t.rows,e=>{for(let t=0;te._autoResetPageIndex()))}function Wt(e){return e=>k(()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded],(t,n)=>{if(!n.rows.length)return n;let{pageSize:r,pageIndex:i}=t,{rows:a,flatRows:o,rowsById:s}=n,c=r*i,l=c+r;a=a.slice(c,l);let u;u=e.options.paginateExpandedRows?{rows:a,flatRows:o,rowsById:s}:Lt({rows:a,flatRows:o,rowsById:s}),u.flatRows=[];let d=e=>{u.flatRows.push(e),e.subRows.length&&e.subRows.forEach(d)};return u.rows.forEach(d),u},A(e.options,`debugTable`,`getPaginationRowModel`))}function Gt(){return e=>k(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;let r=e.getState().sorting,i=[],a=r.filter(t=>e.getColumn(t.id)?.getCanSort()),o={};a.forEach(t=>{let n=e.getColumn(t.id);n&&(o[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})});let s=e=>{let t=e.map(e=>({...e}));return t.sort((e,t)=>{for(let n=0;n{var t;i.push(e),(t=e.subRows)!=null&&t.length&&(e.subRows=s(e.subRows))}),t};return{rows:s(n.rows),flatRows:i,rowsById:n.rowsById}},A(e.options,`debugTable`,`getSortedRowModel`,()=>e._autoResetPageIndex()))}function Kt(e,t){return e?qt(e)?w.createElement(e,t):e:null}function qt(e){return Jt(e)||typeof e==`function`||Yt(e)}function Jt(e){return typeof e==`function`&&(()=>{let t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function Yt(e){return typeof e==`object`&&typeof e.$$typeof==`symbol`&&[`react.memo`,`react.forward_ref`].includes(e.$$typeof.description)}function Xt(e){let t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=w.useState(()=>({current:Ft(t)})),[r,i]=w.useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{i(t),e.onStateChange==null||e.onStateChange(t)}})),n.current}function Zt({column:e,title:t,className:n}){return e.getCanSort()?(0,T.jsx)(`div`,{className:_(`flex items-center space-x-2`,n),children:(0,T.jsxs)(ue,{children:[(0,T.jsx)(ae,{asChild:!0,children:(0,T.jsxs)(v,{className:`h-8 data-[state=open]:bg-accent`,size:`sm`,variant:`ghost`,children:[(0,T.jsx)(`span`,{children:t}),(()=>{let t=e.getIsSorted();return t===`desc`?(0,T.jsx)(He,{className:`ms-2 h-4 w-4`}):t===`asc`?(0,T.jsx)(Ue,{className:`ms-2 h-4 w-4`}):(0,T.jsx)(we,{className:`ms-2 h-4 w-4`})})()]})}),(0,T.jsxs)(ce,{align:`start`,children:[(0,T.jsxs)(y,{onClick:()=>e.toggleSorting(!1),children:[(0,T.jsx)(Ue,{className:`size-3.5 text-muted-foreground/70`}),ne()]}),(0,T.jsxs)(y,{onClick:()=>e.toggleSorting(!0),children:[(0,T.jsx)(He,{className:`size-3.5 text-muted-foreground/70`}),r()]}),e.getCanHide()&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(le,{}),(0,T.jsxs)(y,{onClick:()=>e.toggleVisibility(!1),children:[(0,T.jsx)(Te,{className:`size-3.5 text-muted-foreground/70`}),l()]})]})]})]})}):(0,T.jsx)(`div`,{className:_(`px-2`,n),children:t})}var Qt={switch:`h-5 w-9 rounded-full`,action:`h-8 w-8 rounded-md`,badge:`h-5 rounded-full`,id:`h-4`,date:`h-4`,short:`h-4`,long:`h-4`,amount:`h-4`};function $t({type:e=`long`}){return(0,T.jsx)(Ce,{className:Qt[e]})}var en=`group/row`,tn=ie(`bg-background group-hover/row:bg-muted group-data-[state=selected]/row:bg-muted`,{variants:{sticky:{left:`sticky inset-s-0 z-10`,right:`sticky inset-e-0 z-10`,none:``},shadow:{true:``,false:``},skeleton:{action:`w-8`,switch:`w-9`,badge:``,id:``,date:``,short:``,long:``,amount:``,none:``}},compoundVariants:[{sticky:`left`,shadow:!0,class:`drop-shadow-[0_1px_2px_rgb(0_0_0/_0.1)] dark:drop-shadow-[0_1px_2px_rgb(255_255_255/_0.1)]`},{sticky:`right`,shadow:!0,class:`drop-shadow-[0_-1px_2px_rgb(0_0_0/_0.1)] dark:drop-shadow-[0_-1px_2px_rgb(255_255_255/_0.1)]`}],defaultVariants:{sticky:`none`,shadow:!0,skeleton:`none`}});function nn(e){return _(`px-4`,tn({sticky:e?.sticky,shadow:e?.shadow,skeleton:e?.skeleton}),e?.className,e?.td?.className)}function rn(e){return _(tn({sticky:e?.sticky,shadow:e?.shadow,skeleton:e?.skeleton}),e?.className,e?.th?.className)}function an({table:e,loadingRows:t}){let n=e.getVisibleLeafColumns();return(0,T.jsx)(T.Fragment,{children:Array.from({length:t},(e,t)=>(0,T.jsx)(S,{className:en,children:n.map(e=>{let t=e.columnDef.meta;return(0,T.jsx)(C,{className:nn(t),children:(0,T.jsx)($t,{type:t?.skeleton??`long`})},e.id)})},`skeleton-${t}`))})}function on({table:e,renderExpandedRow:t}){return(0,T.jsx)(T.Fragment,{children:e.getRowModel().rows.map(e=>{let n=(0,T.jsx)(S,{className:_(en,e.depth>0&&`bg-muted/40`),"data-state":e.getIsSelected()?`selected`:void 0,children:e.getVisibleCells().map(e=>{let t=e.column.columnDef.meta;return(0,T.jsx)(C,{className:nn(t),children:Kt(e.column.columnDef.cell,e.getContext())},e.id)})},e.id);return t&&e.getIsExpanded()?(0,T.jsxs)(w.Fragment,{children:[n,(0,T.jsx)(S,{children:(0,T.jsx)(C,{className:`bg-background p-4`,colSpan:e.getVisibleCells().length,children:t(e)})})]},e.id):n})})}function sn({colSpan:e,text:t}){return(0,T.jsx)(S,{children:(0,T.jsx)(C,{className:`p-0`,colSpan:e,children:(0,T.jsx)(Oe,{description:t})})})}function cn({table:e,className:t,emptyText:n=c(),loading:r=!1,loadingRows:i=10,renderExpandedRow:a}){let o=e.getVisibleLeafColumns(),s=e.getRowModel().rows,l=r||s.length>0;function u(){return r?(0,T.jsx)(an,{loadingRows:i,table:e}):s.length?(0,T.jsx)(on,{renderExpandedRow:a,table:e}):(0,T.jsx)(sn,{colSpan:o.length,text:n})}return(0,T.jsx)(`div`,{className:`overflow-x-auto rounded-md border`,children:(0,T.jsxs)(Ve,{className:t,children:[l&&(0,T.jsx)(Re,{children:e.getHeaderGroups().map(e=>(0,T.jsx)(S,{className:en,children:e.headers.map(e=>{let t=e.column.columnDef.meta;return(0,T.jsx)(ze,{className:rn(t),colSpan:e.colSpan,children:e.isPlaceholder?null:Kt(e.column.columnDef.header,e.getContext())},e.id)})},e.id))}),(0,T.jsx)(Be,{children:u()})]})})}function ln({table:e,className:t}){let n=e.getState().pagination.pageIndex+1,r=e.getPageCount(),i=re(n,r);return(0,T.jsxs)(`div`,{className:_(`flex items-center justify-between`,`@max-2xl/content:flex-col-reverse @max-2xl/content:gap-4`,t),children:[(0,T.jsxs)(`div`,{className:`flex w-full items-center justify-between`,children:[(0,T.jsx)(`div`,{className:`flex @2xl/content:hidden w-auto items-center justify-center whitespace-nowrap font-medium text-sm`,children:u({current:n,total:r})}),(0,T.jsxs)(`div`,{className:`flex @max-2xl/content:flex-row-reverse items-center gap-2`,children:[(0,T.jsxs)(ye,{onValueChange:t=>{e.setPageSize(Number(t))},value:`${e.getState().pagination.pageSize}`,children:[(0,T.jsx)(ge,{className:`h-8 w-17.5`,children:(0,T.jsx)(he,{placeholder:e.getState().pagination.pageSize})}),(0,T.jsx)(_e,{side:`top`,children:[10,20,30,40,50].map(e=>(0,T.jsx)(ve,{value:`${e}`,children:e},e))})]}),(0,T.jsx)(`p`,{className:`hidden font-medium text-sm sm:block`,children:p()})]})]}),(0,T.jsxs)(`div`,{className:`flex items-center sm:space-x-6 lg:space-x-8`,children:[(0,T.jsx)(`div`,{className:`flex @max-3xl/content:hidden w-auto items-center justify-center whitespace-nowrap font-medium text-sm`,children:u({current:n,total:r})}),(0,T.jsxs)(`div`,{className:`flex items-center space-x-2`,children:[(0,T.jsxs)(v,{className:`@max-md/content:hidden size-8 p-0`,disabled:!e.getCanPreviousPage(),onClick:()=>e.setPageIndex(0),variant:`outline`,children:[(0,T.jsx)(`span`,{className:`sr-only`,children:h()}),(0,T.jsx)(Ge,{className:`h-4 w-4`})]}),(0,T.jsxs)(v,{className:`size-8 p-0`,disabled:!e.getCanPreviousPage(),onClick:()=>e.previousPage(),variant:`outline`,children:[(0,T.jsx)(`span`,{className:`sr-only`,children:s()}),(0,T.jsx)(We,{className:`h-4 w-4`})]}),i.map((t,r)=>(0,T.jsx)(`div`,{className:`flex items-center`,children:t===`...`?(0,T.jsx)(`span`,{className:`px-1 text-muted-foreground text-sm`,children:`...`}):(0,T.jsxs)(v,{className:`h-8 min-w-8 px-2`,onClick:()=>e.setPageIndex(t-1),variant:n===t?`default`:`outline`,children:[(0,T.jsx)(`span`,{className:`sr-only`,children:o({page:t})}),t]})},`page-${t}-${r}`)),(0,T.jsxs)(v,{className:`size-8 p-0`,disabled:!e.getCanNextPage(),onClick:()=>e.nextPage(),variant:`outline`,children:[(0,T.jsx)(`span`,{className:`sr-only`,children:te()}),(0,T.jsx)(Se,{className:`h-4 w-4`})]}),(0,T.jsxs)(v,{className:`@max-md/content:hidden size-8 p-0`,disabled:!e.getCanNextPage(),onClick:()=>e.setPageIndex(e.getPageCount()-1),variant:`outline`,children:[(0,T.jsx)(`span`,{className:`sr-only`,children:f()}),(0,T.jsx)(Ke,{className:`h-4 w-4`})]})]})]})]})}function un({column:e,title:t,options:r}){let i=e?.getFacetedUniqueValues(),a=new Set(e?.getFilterValue());return(0,T.jsxs)(me,{children:[(0,T.jsx)(pe,{asChild:!0,children:(0,T.jsxs)(v,{className:`h-8 border-dashed`,size:`sm`,variant:`outline`,children:[(0,T.jsx)(qe,{className:`size-4`}),t,a?.size>0&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(be,{className:`mx-2 h-4`,orientation:`vertical`}),(0,T.jsx)(x,{className:`rounded-sm px-1 font-normal lg:hidden`,variant:`secondary`,children:a.size}),(0,T.jsx)(`div`,{className:`hidden space-x-1 lg:flex`,children:a.size>2?(0,T.jsxs)(x,{className:`rounded-sm px-1 font-normal`,variant:`secondary`,children:[a.size,` selected`]}):r.filter(e=>a.has(e.value)).map(e=>(0,T.jsx)(x,{className:`rounded-sm px-1 font-normal`,variant:`secondary`,children:e.label},e.value))})]})]})}),(0,T.jsx)(fe,{align:`start`,className:`w-50 p-0`,children:(0,T.jsxs)(Fe,{children:[(0,T.jsx)(ke,{placeholder:t}),(0,T.jsxs)(Pe,{children:[(0,T.jsx)(Ne,{children:n()}),(0,T.jsx)(je,{children:r.map(t=>{let n=a.has(t.value);return(0,T.jsxs)(Me,{onSelect:()=>{n?a.delete(t.value):a.add(t.value);let r=Array.from(a);e?.setFilterValue(r.length?r:void 0)},children:[(0,T.jsx)(`div`,{className:_(`flex size-4 items-center justify-center rounded-sm border border-primary`,n?`bg-primary text-primary-foreground`:`opacity-50 [&_svg]:invisible`),children:(0,T.jsx)(xe,{className:_(`h-4 w-4 text-background`)})}),t.icon&&(0,T.jsx)(t.icon,{className:`size-4 text-muted-foreground`}),(0,T.jsx)(`span`,{children:t.label}),i?.get(t.value)&&(0,T.jsx)(`span`,{className:`ms-auto flex h-4 w-4 items-center justify-center font-mono text-xs`,children:i.get(t.value)})]},t.value)})}),a.size>0&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(Ae,{}),(0,T.jsx)(je,{children:(0,T.jsx)(Me,{className:`justify-center text-center`,onSelect:()=>e?.setFilterValue(void 0),children:`Clear filters`})})]})]})]})})]})}function dn(e){let t=e.columnDef.meta?.label;if(typeof t==`string`&&t.trim())return t;let n=e.columnDef.header;return typeof n==`string`&&n.trim()?n:e.id}function fn({table:e}){return(0,T.jsxs)(ue,{modal:!1,children:[(0,T.jsx)(de,{asChild:!0,children:(0,T.jsxs)(v,{className:`ms-auto hidden h-8 lg:flex`,size:`sm`,variant:`outline`,children:[(0,T.jsx)(Ee,{className:`size-4`}),i()]})}),(0,T.jsxs)(ce,{align:`end`,className:`w-37.5`,children:[(0,T.jsx)(se,{children:d()}),(0,T.jsx)(le,{}),e.getAllColumns().filter(e=>e.accessorFn!==void 0&&e.getCanHide()).map(e=>(0,T.jsx)(oe,{checked:e.getIsVisible(),className:`capitalize`,onCheckedChange:t=>e.toggleVisibility(!!t),children:dn(e)},e.id))]})]})}function pn({table:e,searchPlaceholder:t=a(),searchKey:n,filters:r=[],onRefresh:i}){let o=e.getState().columnFilters.length>0||e.getState().globalFilter;return(0,T.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,T.jsxs)(`div`,{className:`flex flex-1 flex-col-reverse items-start gap-y-2 sm:flex-row sm:items-center sm:space-x-2`,children:[n?(0,T.jsx)(Le,{className:`h-8 w-37.5 lg:w-62.5`,onChange:t=>e.getColumn(n)?.setFilterValue(t.target.value),placeholder:t,value:e.getColumn(n)?.getFilterValue()??``}):(0,T.jsx)(Le,{className:`h-8 w-37.5 lg:w-62.5`,onChange:t=>e.setGlobalFilter(t.target.value),placeholder:t,value:e.getState().globalFilter??``}),(0,T.jsx)(`div`,{className:`flex gap-x-2`,children:r.map(t=>{let n=e.getColumn(t.columnId);return n?(0,T.jsx)(un,{column:n,options:t.options,title:t.title},t.columnId):null})}),o&&(0,T.jsxs)(v,{className:`h-8 px-2 lg:px-3`,onClick:()=>{e.resetColumnFilters(),e.setGlobalFilter(``)},variant:`ghost`,children:[g(),(0,T.jsx)(Ie,{className:`ms-2 h-4 w-4`})]})]}),(0,T.jsxs)(`div`,{className:`flex items-center gap-2`,children:[i&&(0,T.jsx)(mn,{onRefresh:i}),(0,T.jsx)(fn,{table:e})]})]})}function mn({onRefresh:e}){let[t,n]=(0,w.useState)(!1);return(0,T.jsxs)(v,{className:`hidden h-8 lg:flex`,disabled:t,onClick:(0,w.useCallback)(async()=>{n(!0);try{await e()}catch{}finally{setTimeout(()=>n(!1),500)}},[e]),size:`sm`,variant:`outline`,children:[(0,T.jsx)(De,{className:_(`size-4`,t&&`animate-spin`)}),m()]})}export{Zt as a,Vt as c,Wt as d,Gt as f,$t as i,Ht as l,ln as n,Xt as o,We as p,cn as r,It as s,pn as t,Ut as u}; \ No newline at end of file diff --git a/src/www/assets/dialog-BJ5VA2v_.js b/src/www/assets/dialog-CZ-2RPb-.js similarity index 93% rename from src/www/assets/dialog-BJ5VA2v_.js rename to src/www/assets/dialog-CZ-2RPb-.js index 9523c63..094b2d8 100644 --- a/src/www/assets/dialog-BJ5VA2v_.js +++ b/src/www/assets/dialog-CZ-2RPb-.js @@ -1 +1 @@ -import{em as e}from"./messages-Bp0bCjzp.js";import{i as t,t as n}from"./button-BgMnOYKD.js";import{a as r,c as i,i as a,n as o,o as s,r as c,s as l,t as u}from"./dist-CPQ-sRtL.js";import{t as d}from"./createLucideIcon-Br0Bd5k2.js";var f=d(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),p=e();function m({...e}){return(0,p.jsx)(s,{"data-slot":`dialog`,...e})}function h({...e}){return(0,p.jsx)(i,{"data-slot":`dialog-trigger`,...e})}function g({...e}){return(0,p.jsx)(r,{"data-slot":`dialog-portal`,...e})}function _({...e}){return(0,p.jsx)(u,{"data-slot":`dialog-close`,...e})}function v({className:e,...n}){return(0,p.jsx)(a,{className:t(`data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in`,e),"data-slot":`dialog-overlay`,...n})}function y({className:e,children:n,showCloseButton:r=!0,...i}){return(0,p.jsxs)(g,{"data-slot":`dialog-portal`,children:[(0,p.jsx)(v,{}),(0,p.jsxs)(o,{className:t(`data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg outline-none duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg`,e),"data-slot":`dialog-content`,...i,children:[n,r&&(0,p.jsxs)(u,{className:`absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,"data-slot":`dialog-close`,children:[(0,p.jsx)(f,{}),(0,p.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function b({className:e,...n}){return(0,p.jsx)(`div`,{className:t(`flex flex-col gap-2 text-center sm:text-left`,e),"data-slot":`dialog-header`,...n})}function x({className:e,showCloseButton:r=!1,children:i,...a}){return(0,p.jsxs)(`div`,{className:t(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),"data-slot":`dialog-footer`,...a,children:[i,r&&(0,p.jsx)(u,{asChild:!0,children:(0,p.jsx)(n,{variant:`outline`,children:`Close`})})]})}function S({className:e,...n}){return(0,p.jsx)(l,{className:t(`font-semibold text-lg leading-none`,e),"data-slot":`dialog-title`,...n})}function C({className:e,...n}){return(0,p.jsx)(c,{className:t(`text-muted-foreground text-sm`,e),"data-slot":`dialog-description`,...n})}export{x as a,h as c,C as i,f as l,_ as n,b as o,y as r,S as s,m as t}; \ No newline at end of file +import{tm as e}from"./messages-BOatyqUm.js";import{i as t,t as n}from"./button-C_NDYaz8.js";import{a as r,c as i,i as a,n as o,o as s,r as c,s as l,t as u}from"./dist-iiotRAEO.js";import{t as d}from"./createLucideIcon-Br0Bd5k2.js";var f=d(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),p=e();function m({...e}){return(0,p.jsx)(s,{"data-slot":`dialog`,...e})}function h({...e}){return(0,p.jsx)(i,{"data-slot":`dialog-trigger`,...e})}function g({...e}){return(0,p.jsx)(r,{"data-slot":`dialog-portal`,...e})}function _({...e}){return(0,p.jsx)(u,{"data-slot":`dialog-close`,...e})}function v({className:e,...n}){return(0,p.jsx)(a,{className:t(`data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in`,e),"data-slot":`dialog-overlay`,...n})}function y({className:e,children:n,showCloseButton:r=!0,...i}){return(0,p.jsxs)(g,{"data-slot":`dialog-portal`,children:[(0,p.jsx)(v,{}),(0,p.jsxs)(o,{className:t(`data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg outline-none duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg`,e),"data-slot":`dialog-content`,...i,children:[n,r&&(0,p.jsxs)(u,{className:`absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,"data-slot":`dialog-close`,children:[(0,p.jsx)(f,{}),(0,p.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function b({className:e,...n}){return(0,p.jsx)(`div`,{className:t(`flex flex-col gap-2 text-center sm:text-left`,e),"data-slot":`dialog-header`,...n})}function x({className:e,showCloseButton:r=!1,children:i,...a}){return(0,p.jsxs)(`div`,{className:t(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),"data-slot":`dialog-footer`,...a,children:[i,r&&(0,p.jsx)(u,{asChild:!0,children:(0,p.jsx)(n,{variant:`outline`,children:`Close`})})]})}function S({className:e,...n}){return(0,p.jsx)(l,{className:t(`font-semibold text-lg leading-none`,e),"data-slot":`dialog-title`,...n})}function C({className:e,...n}){return(0,p.jsx)(c,{className:t(`text-muted-foreground text-sm`,e),"data-slot":`dialog-description`,...n})}export{x as a,h as c,C as i,f as l,_ as n,b as o,y as r,S as s,m as t}; \ No newline at end of file diff --git a/src/www/assets/display-JOhpHnKq.js b/src/www/assets/display-CqGwMVHS.js similarity index 54% rename from src/www/assets/display-JOhpHnKq.js rename to src/www/assets/display-CqGwMVHS.js index 56058ae..3474f76 100644 --- a/src/www/assets/display-JOhpHnKq.js +++ b/src/www/assets/display-CqGwMVHS.js @@ -1 +1 @@ -import{an as e,cn as t,dn as n,em as r,fn as i,gn as a,hn as o,ln as s,mn as c,on as l,pn as u,sn as d,un as f}from"./messages-Bp0bCjzp.js";import{t as p}from"./button-BgMnOYKD.js";import{t as m}from"./checkbox-CKrZFk1G.js";import{c as h,i as g,s as _}from"./zod-rwFXxHlg.js";import{a as v,c as y,i as b,l as x,n as S,o as C,r as w,s as T,t as E}from"./form-BhKmyN6D.js";import{t as D}from"./page-header-CDwG3nxs.js";import{t as O}from"./show-submitted-data-C8ocsjDF.js";var k=r(),A=[{id:`recents`,label:c()},{id:`home`,label:u()},{id:`applications`,label:i()},{id:`desktop`,label:n()},{id:`downloads`,label:f()},{id:`documents`,label:s()}],j=_({items:g(h()).refine(e=>e.some(e=>e),{message:t()})}),M={items:[`recents`,`home`]};function N(){let t=x({resolver:y(j),defaultValues:M});return(0,k.jsx)(E,{...t,children:(0,k.jsxs)(`form`,{className:`space-y-8`,onSubmit:t.handleSubmit(e=>O(e)),children:[(0,k.jsx)(b,{control:t.control,name:`items`,render:()=>(0,k.jsxs)(v,{children:[(0,k.jsxs)(`div`,{className:`mb-4`,children:[(0,k.jsx)(C,{className:`text-base`,children:d()}),(0,k.jsx)(w,{children:l()})]}),A.map(e=>(0,k.jsx)(b,{control:t.control,name:`items`,render:({field:t})=>(0,k.jsxs)(v,{className:`flex flex-row items-start`,children:[(0,k.jsx)(S,{children:(0,k.jsx)(m,{checked:t.value?.includes(e.id),onCheckedChange:n=>n?t.onChange([...t.value,e.id]):t.onChange(t.value?.filter(t=>t!==e.id))})}),(0,k.jsx)(C,{className:`font-normal`,children:e.label})]},e.id)},e.id)),(0,k.jsx)(T,{})]})}),(0,k.jsx)(p,{type:`submit`,children:e()})]})})}function P(){return(0,k.jsx)(D,{description:o(),title:a(),variant:`section`,children:(0,k.jsx)(N,{})})}var F=P;export{F as component}; \ No newline at end of file +import{an as e,cn as t,dn as n,fn as r,gn as i,hn as a,ln as o,mn as s,on as c,pn as l,sn as u,tm as d,un as f}from"./messages-BOatyqUm.js";import{t as p}from"./button-C_NDYaz8.js";import{t as m}from"./checkbox-CTHgcB3t.js";import{c as h,i as g,s as _}from"./zod-rwFXxHlg.js";import{a as v,c as y,i as b,l as x,n as S,o as C,r as w,s as T,t as E}from"./form-KfFEakes.js";import{t as D}from"./page-header-GTtyZFBB.js";import{t as O}from"./show-submitted-data-BqZb-_Pf.js";var k=d(),A=[{id:`recents`,label:s()},{id:`home`,label:l()},{id:`applications`,label:r()},{id:`desktop`,label:n()},{id:`downloads`,label:f()},{id:`documents`,label:o()}],j=_({items:g(h()).refine(e=>e.some(e=>e),{message:t()})}),M={items:[`recents`,`home`]};function N(){let t=x({resolver:y(j),defaultValues:M});return(0,k.jsx)(E,{...t,children:(0,k.jsxs)(`form`,{className:`space-y-8`,onSubmit:t.handleSubmit(e=>O(e)),children:[(0,k.jsx)(b,{control:t.control,name:`items`,render:()=>(0,k.jsxs)(v,{children:[(0,k.jsxs)(`div`,{className:`mb-4`,children:[(0,k.jsx)(C,{className:`text-base`,children:u()}),(0,k.jsx)(w,{children:c()})]}),A.map(e=>(0,k.jsx)(b,{control:t.control,name:`items`,render:({field:t})=>(0,k.jsxs)(v,{className:`flex flex-row items-start`,children:[(0,k.jsx)(S,{children:(0,k.jsx)(m,{checked:t.value?.includes(e.id),onCheckedChange:n=>n?t.onChange([...t.value,e.id]):t.onChange(t.value?.filter(t=>t!==e.id))})}),(0,k.jsx)(C,{className:`font-normal`,children:e.label})]},e.id)},e.id)),(0,k.jsx)(T,{})]})}),(0,k.jsx)(p,{type:`submit`,children:e()})]})})}function P(){return(0,k.jsx)(D,{description:a(),title:i(),variant:`section`,children:(0,k.jsx)(N,{})})}var F=P;export{F as component}; \ No newline at end of file diff --git a/src/www/assets/dist-C97YBjnT.js b/src/www/assets/dist-BNFQuJTu.js similarity index 80% rename from src/www/assets/dist-C97YBjnT.js rename to src/www/assets/dist-BNFQuJTu.js index d5dc7fd..8db6206 100644 --- a/src/www/assets/dist-C97YBjnT.js +++ b/src/www/assets/dist-BNFQuJTu.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";var r=e(t(),1),i=n(),a=r.createContext(void 0),o=e=>{let{dir:t,children:n}=e;return(0,i.jsx)(a.Provider,{value:t,children:n})};function s(e){let t=r.useContext(a);return e||t||`ltr`}export{s as n,o as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";var r=e(t(),1),i=n(),a=r.createContext(void 0),o=e=>{let{dir:t,children:n}=e;return(0,i.jsx)(a.Provider,{value:t,children:n})};function s(e){let t=r.useContext(a);return e||t||`ltr`}export{s as n,o as t}; \ No newline at end of file diff --git a/src/www/assets/dist-036CEgdV.js b/src/www/assets/dist-C5heX0fx.js similarity index 89% rename from src/www/assets/dist-036CEgdV.js rename to src/www/assets/dist-C5heX0fx.js index 7a2e045..2bb8af1 100644 --- a/src/www/assets/dist-036CEgdV.js +++ b/src/www/assets/dist-C5heX0fx.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";import{t as r}from"./dist-BFnxq45V.js";import{u as i}from"./button-BgMnOYKD.js";import{a,r as o,t as s}from"./dist-CKFLmh1A.js";import{t as c}from"./dist-Clua1vrx.js";import{n as l}from"./dist-C97YBjnT.js";import{t as u}from"./dist-BixeH3nX.js";import{t as d}from"./dist-DGDEBCW9.js";import{n as f,r as p,t as m}from"./dist-D7AUoOWu.js";var h=e(t(),1),g=n(),_=`Radio`,[v,y]=a(_),[b,x]=v(_),S=h.forwardRef((e,t)=>{let{__scopeRadio:n,name:a,checked:s=!1,required:c,disabled:l,value:u=`on`,onCheck:d,form:f,...p}=e,[m,_]=h.useState(null),v=i(t,e=>_(e)),y=h.useRef(!1),x=m?f||!!m.closest(`form`):!0;return(0,g.jsxs)(b,{scope:n,checked:s,disabled:l,children:[(0,g.jsx)(r.button,{type:`button`,role:`radio`,"aria-checked":s,"data-state":D(s),"data-disabled":l?``:void 0,disabled:l,value:u,...p,ref:v,onClick:o(e.onClick,e=>{s||d?.(),x&&(y.current=e.isPropagationStopped(),y.current||e.stopPropagation())})}),x&&(0,g.jsx)(E,{control:m,bubbles:!y.current,name:a,value:u,checked:s,required:c,disabled:l,form:f,style:{transform:`translateX(-100%)`}})]})});S.displayName=_;var C=`RadioIndicator`,w=h.forwardRef((e,t)=>{let{__scopeRadio:n,forceMount:i,...a}=e,o=x(C,n);return(0,g.jsx)(c,{present:i||o.checked,children:(0,g.jsx)(r.span,{"data-state":D(o.checked),"data-disabled":o.disabled?``:void 0,...a,ref:t})})});w.displayName=C;var T=`RadioBubbleInput`,E=h.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:a=!0,...o},s)=>{let c=h.useRef(null),l=i(c,s),f=u(n),p=d(t);return h.useEffect(()=>{let e=c.current;if(!e)return;let t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,`checked`).set;if(f!==n&&r){let t=new Event(`click`,{bubbles:a});r.call(e,n),e.dispatchEvent(t)}},[f,n,a]),(0,g.jsx)(r.input,{type:`radio`,"aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:l,style:{...o.style,...p,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0}})});E.displayName=T;function D(e){return e?`checked`:`unchecked`}var O=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],k=`RadioGroup`,[A,j]=a(k,[p,y]),M=p(),N=y(),[P,F]=A(k),I=h.forwardRef((e,t)=>{let{__scopeRadioGroup:n,name:i,defaultValue:a,value:o,required:c=!1,disabled:u=!1,orientation:d,dir:p,loop:m=!0,onValueChange:h,..._}=e,v=M(n),y=l(p),[b,x]=s({prop:o,defaultProp:a??null,onChange:h,caller:k});return(0,g.jsx)(P,{scope:n,name:i,required:c,disabled:u,value:b,onValueChange:x,children:(0,g.jsx)(f,{asChild:!0,...v,orientation:d,dir:y,loop:m,children:(0,g.jsx)(r.div,{role:`radiogroup`,"aria-required":c,"aria-orientation":d,"data-disabled":u?``:void 0,dir:y,..._,ref:t})})})});I.displayName=k;var L=`RadioGroupItem`,R=h.forwardRef((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...a}=e,s=F(L,n),c=s.disabled||r,l=M(n),u=N(n),d=h.useRef(null),f=i(t,d),p=s.value===a.value,_=h.useRef(!1);return h.useEffect(()=>{let e=e=>{O.includes(e.key)&&(_.current=!0)},t=()=>_.current=!1;return document.addEventListener(`keydown`,e),document.addEventListener(`keyup`,t),()=>{document.removeEventListener(`keydown`,e),document.removeEventListener(`keyup`,t)}},[]),(0,g.jsx)(m,{asChild:!0,...l,focusable:!c,active:p,children:(0,g.jsx)(S,{disabled:c,required:s.required,checked:p,...u,...a,name:s.name,ref:f,onCheck:()=>s.onValueChange(a.value),onKeyDown:o(e=>{e.key===`Enter`&&e.preventDefault()}),onFocus:o(a.onFocus,()=>{_.current&&d.current?.click()})})})});R.displayName=L;var z=`RadioGroupIndicator`,B=h.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e;return(0,g.jsx)(w,{...N(n),...r,ref:t})});B.displayName=z;var V=I,H=R,U=B;export{H as n,V as r,U as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./dist-Cc8_LDAq.js";import{u as i}from"./button-C_NDYaz8.js";import{a,r as o,t as s}from"./dist-DPPquN_M.js";import{t as c}from"./dist-DvwKOQ8R.js";import{n as l}from"./dist-BNFQuJTu.js";import{t as u}from"./dist-BixeH3nX.js";import{t as d}from"./dist-ZdRQQNeu.js";import{n as f,r as p,t as m}from"./dist-D0DoWChj.js";var h=e(t(),1),g=n(),_=`Radio`,[v,y]=a(_),[b,x]=v(_),S=h.forwardRef((e,t)=>{let{__scopeRadio:n,name:a,checked:s=!1,required:c,disabled:l,value:u=`on`,onCheck:d,form:f,...p}=e,[m,_]=h.useState(null),v=i(t,e=>_(e)),y=h.useRef(!1),x=m?f||!!m.closest(`form`):!0;return(0,g.jsxs)(b,{scope:n,checked:s,disabled:l,children:[(0,g.jsx)(r.button,{type:`button`,role:`radio`,"aria-checked":s,"data-state":D(s),"data-disabled":l?``:void 0,disabled:l,value:u,...p,ref:v,onClick:o(e.onClick,e=>{s||d?.(),x&&(y.current=e.isPropagationStopped(),y.current||e.stopPropagation())})}),x&&(0,g.jsx)(E,{control:m,bubbles:!y.current,name:a,value:u,checked:s,required:c,disabled:l,form:f,style:{transform:`translateX(-100%)`}})]})});S.displayName=_;var C=`RadioIndicator`,w=h.forwardRef((e,t)=>{let{__scopeRadio:n,forceMount:i,...a}=e,o=x(C,n);return(0,g.jsx)(c,{present:i||o.checked,children:(0,g.jsx)(r.span,{"data-state":D(o.checked),"data-disabled":o.disabled?``:void 0,...a,ref:t})})});w.displayName=C;var T=`RadioBubbleInput`,E=h.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:a=!0,...o},s)=>{let c=h.useRef(null),l=i(c,s),f=u(n),p=d(t);return h.useEffect(()=>{let e=c.current;if(!e)return;let t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,`checked`).set;if(f!==n&&r){let t=new Event(`click`,{bubbles:a});r.call(e,n),e.dispatchEvent(t)}},[f,n,a]),(0,g.jsx)(r.input,{type:`radio`,"aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:l,style:{...o.style,...p,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0}})});E.displayName=T;function D(e){return e?`checked`:`unchecked`}var O=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],k=`RadioGroup`,[A,j]=a(k,[p,y]),M=p(),N=y(),[P,F]=A(k),I=h.forwardRef((e,t)=>{let{__scopeRadioGroup:n,name:i,defaultValue:a,value:o,required:c=!1,disabled:u=!1,orientation:d,dir:p,loop:m=!0,onValueChange:h,..._}=e,v=M(n),y=l(p),[b,x]=s({prop:o,defaultProp:a??null,onChange:h,caller:k});return(0,g.jsx)(P,{scope:n,name:i,required:c,disabled:u,value:b,onValueChange:x,children:(0,g.jsx)(f,{asChild:!0,...v,orientation:d,dir:y,loop:m,children:(0,g.jsx)(r.div,{role:`radiogroup`,"aria-required":c,"aria-orientation":d,"data-disabled":u?``:void 0,dir:y,..._,ref:t})})})});I.displayName=k;var L=`RadioGroupItem`,R=h.forwardRef((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...a}=e,s=F(L,n),c=s.disabled||r,l=M(n),u=N(n),d=h.useRef(null),f=i(t,d),p=s.value===a.value,_=h.useRef(!1);return h.useEffect(()=>{let e=e=>{O.includes(e.key)&&(_.current=!0)},t=()=>_.current=!1;return document.addEventListener(`keydown`,e),document.addEventListener(`keyup`,t),()=>{document.removeEventListener(`keydown`,e),document.removeEventListener(`keyup`,t)}},[]),(0,g.jsx)(m,{asChild:!0,...l,focusable:!c,active:p,children:(0,g.jsx)(S,{disabled:c,required:s.required,checked:p,...u,...a,name:s.name,ref:f,onCheck:()=>s.onValueChange(a.value),onKeyDown:o(e=>{e.key===`Enter`&&e.preventDefault()}),onFocus:o(a.onFocus,()=>{_.current&&d.current?.click()})})})});R.displayName=L;var z=`RadioGroupIndicator`,B=h.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e;return(0,g.jsx)(w,{...N(n),...r,ref:t})});B.displayName=z;var V=I,H=R,U=B;export{H as n,V as r,U as t}; \ No newline at end of file diff --git a/src/www/assets/dist-C6i4A_Js.js b/src/www/assets/dist-CHFjpVqk.js similarity index 85% rename from src/www/assets/dist-C6i4A_Js.js rename to src/www/assets/dist-CHFjpVqk.js index d105ce7..49974c9 100644 --- a/src/www/assets/dist-C6i4A_Js.js +++ b/src/www/assets/dist-CHFjpVqk.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";import{s as r,u as i}from"./button-BgMnOYKD.js";import{a}from"./dist-CKFLmh1A.js";var o=e(t(),1),s=n();function c(e){let t=e+`CollectionProvider`,[n,c]=a(t),[l,u]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,r=o.useRef(null),i=o.useRef(new Map).current;return(0,s.jsx)(l,{scope:t,itemMap:i,collectionRef:r,children:n})};d.displayName=t;let f=e+`CollectionSlot`,p=r(f),m=o.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,s.jsx)(p,{ref:i(t,u(f,n).collectionRef),children:r})});m.displayName=f;let h=e+`CollectionItemSlot`,g=`data-radix-collection-item`,_=r(h),v=o.forwardRef((e,t)=>{let{scope:n,children:r,...a}=e,c=o.useRef(null),l=i(t,c),d=u(h,n);return o.useEffect(()=>(d.itemMap.set(c,{ref:c,...a}),()=>void d.itemMap.delete(c))),(0,s.jsx)(_,{[g]:``,ref:l,children:r})});v.displayName=h;function y(t){let n=u(e+`CollectionConsumer`,t);return o.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:d,Slot:m,ItemSlot:v},y,c]}export{c as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{s as r,u as i}from"./button-C_NDYaz8.js";import{a}from"./dist-DPPquN_M.js";var o=e(t(),1),s=n();function c(e){let t=e+`CollectionProvider`,[n,c]=a(t),[l,u]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,r=o.useRef(null),i=o.useRef(new Map).current;return(0,s.jsx)(l,{scope:t,itemMap:i,collectionRef:r,children:n})};d.displayName=t;let f=e+`CollectionSlot`,p=r(f),m=o.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,s.jsx)(p,{ref:i(t,u(f,n).collectionRef),children:r})});m.displayName=f;let h=e+`CollectionItemSlot`,g=`data-radix-collection-item`,_=r(h),v=o.forwardRef((e,t)=>{let{scope:n,children:r,...a}=e,c=o.useRef(null),l=i(t,c),d=u(h,n);return o.useEffect(()=>(d.itemMap.set(c,{ref:c,...a}),()=>void d.itemMap.delete(c))),(0,s.jsx)(_,{[g]:``,ref:l,children:r})});v.displayName=h;function y(t){let n=u(e+`CollectionConsumer`,t);return o.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:d,Slot:m,ItemSlot:v},y,c]}export{c as t}; \ No newline at end of file diff --git a/src/www/assets/dist-BFnxq45V.js b/src/www/assets/dist-Cc8_LDAq.js similarity index 96% rename from src/www/assets/dist-BFnxq45V.js rename to src/www/assets/dist-Cc8_LDAq.js index f531a82..6ee60b9 100644 --- a/src/www/assets/dist-BFnxq45V.js +++ b/src/www/assets/dist-Cc8_LDAq.js @@ -1 +1 @@ -import{r as e,t}from"./chunk-DECur_0Z.js";import{t as n}from"./react-CO2uhaBc.js";import{em as r}from"./messages-Bp0bCjzp.js";import{s as i}from"./button-BgMnOYKD.js";var a=t((e=>{var t=n();function r(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=a()})),s=e(n(),1),c=e(o(),1),l=r(),u=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=i(`Primitive.${t}`),r=s.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,l.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function d(e,t){e&&c.flushSync(()=>e.dispatchEvent(t))}export{d as n,o as r,u as t}; \ No newline at end of file +import{r as e,t}from"./chunk-DECur_0Z.js";import{t as n}from"./react-CO2uhaBc.js";import{tm as r}from"./messages-BOatyqUm.js";import{s as i}from"./button-C_NDYaz8.js";var a=t((e=>{var t=n();function r(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=a()})),s=e(n(),1),c=e(o(),1),l=r(),u=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=i(`Primitive.${t}`),r=s.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,l.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function d(e,t){e&&c.flushSync(()=>e.dispatchEvent(t))}export{d as n,o as r,u as t}; \ No newline at end of file diff --git a/src/www/assets/dist-BSXD7MjW.js b/src/www/assets/dist-CsIb2aLK.js similarity index 99% rename from src/www/assets/dist-BSXD7MjW.js rename to src/www/assets/dist-CsIb2aLK.js index 600bf30..0512c1a 100644 --- a/src/www/assets/dist-BSXD7MjW.js +++ b/src/www/assets/dist-CsIb2aLK.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";import{r,t as i}from"./dist-BFnxq45V.js";import{u as a}from"./button-BgMnOYKD.js";import{a as o,n as s}from"./dist-CKFLmh1A.js";import{t as c}from"./dist-B0ikDpJU.js";import{t as l}from"./dist-DGDEBCW9.js";var u=e(t(),1),d=[`top`,`right`,`bottom`,`left`],f=Math.min,p=Math.max,m=Math.round,h=Math.floor,g=e=>({x:e,y:e}),_={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function v(e,t,n){return p(e,f(t,n))}function y(e,t){return typeof e==`function`?e(t):e}function b(e){return e.split(`-`)[0]}function x(e){return e.split(`-`)[1]}function S(e){return e===`x`?`y`:`x`}function C(e){return e===`y`?`height`:`width`}function w(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function T(e){return S(w(e))}function E(e,t,n){n===void 0&&(n=!1);let r=x(e),i=T(e),a=C(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=F(o)),[o,F(o)]}function D(e){let t=F(e);return[O(e),t,O(t)]}function O(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var k=[`left`,`right`],A=[`right`,`left`],j=[`top`,`bottom`],M=[`bottom`,`top`];function N(e,t,n){switch(e){case`top`:case`bottom`:return n?t?A:k:t?k:A;case`left`:case`right`:return t?j:M;default:return[]}}function P(e,t,n,r){let i=x(e),a=N(b(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(O)))),a}function F(e){let t=b(e);return _[t]+e.slice(t.length)}function I(e){return{top:0,right:0,bottom:0,left:0,...e}}function ee(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:I(e)}function L(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function R(e,t,n){let{reference:r,floating:i}=e,a=w(t),o=T(t),s=C(o),c=b(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(x(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function z(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=y(t,e),p=ee(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=L(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},b=L(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-b.top+p.top)/v.y,bottom:(b.bottom-h.bottom+p.bottom)/v.y,left:(h.left-b.left+p.left)/v.x,right:(b.right-h.right+p.right)/v.x}}var te=50,ne=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:z},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=R(l,r,c),f=r,p=0,m={};for(let n=0;n({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=y(e,t)||{};if(l==null)return{};let d=ee(u),p={x:n,y:r},m=T(i),h=C(m),g=await o.getDimensions(l),_=m===`y`,b=_?`top`:`left`,S=_?`bottom`:`right`,w=_?`clientHeight`:`clientWidth`,E=a.reference[h]+a.reference[m]-p[m]-a.floating[h],D=p[m]-a.reference[m],O=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),k=O?O[w]:0;(!k||!await(o.isElement==null?void 0:o.isElement(O)))&&(k=s.floating[w]||a.floating[h]);let A=E/2-D/2,j=k/2-g[h]/2-1,M=f(d[b],j),N=f(d[S],j),P=M,F=k-g[h]-N,I=k/2-g[h]/2+A,L=v(P,I,F),R=!c.arrow&&x(i)!=null&&I!==L&&a.reference[h]/2-(Ie<=0)){let e=(i.flip?.index||0)+1,t=T[e];if(t&&(!(u===`alignment`&&_!==w(t))||A.every(e=>w(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:A},reset:{placement:t}};let n=A.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=A.filter(e=>{if(C){let t=w(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function ae(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function oe(e){return d.some(t=>e[t]>=0)}var se=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=y(e,t);switch(i){case`referenceHidden`:{let e=ae(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:oe(e)}}}case`escaped`:{let e=ae(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:oe(e)}}}default:return{}}}}},ce=new Set([`left`,`top`]);async function le(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=b(n),s=x(n),c=w(n)===`y`,l=ce.has(o)?-1:1,u=a&&c?-1:1,d=y(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var ue=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await le(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},de=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=y(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=w(b(i)),p=S(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=v(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=v(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},fe=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=y(e,t),u={x:n,y:r},d=w(i),f=S(d),p=u[f],m=u[d],h=y(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;pn&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=ce.has(b(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);mr&&(m=r)}return{[f]:p,[d]:m}}}},pe=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=y(e,t),u=await o.detectOverflow(t,l),d=b(i),m=x(i),h=w(i)===`y`,{width:g,height:_}=a.floating,v,S;d===`top`||d===`bottom`?(v=d,S=m===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(S=d,v=m===`end`?`top`:`bottom`);let C=_-u.top-u.bottom,T=g-u.left-u.right,E=f(_-u[v],C),D=f(g-u[S],T),O=!t.middlewareData.shift,k=E,A=D;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=T),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=C),O&&!m){let e=p(u.left,0),t=p(u.right,0),n=p(u.top,0),r=p(u.bottom,0);h?A=g-2*(e!==0||t!==0?e+t:p(u.left,u.right)):k=_-2*(n!==0||r!==0?n+r:p(u.top,u.bottom))}await c({...t,availableWidth:A,availableHeight:k});let j=await o.getDimensions(s.floating);return g!==j.width||_!==j.height?{reset:{rects:!0}}:{}}}};function me(){return typeof window<`u`}function B(e){return he(e)?(e.nodeName||``).toLowerCase():`#document`}function V(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function H(e){return((he(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function he(e){return me()?e instanceof Node||e instanceof V(e).Node:!1}function U(e){return me()?e instanceof Element||e instanceof V(e).Element:!1}function W(e){return me()?e instanceof HTMLElement||e instanceof V(e).HTMLElement:!1}function ge(e){return!me()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof V(e).ShadowRoot}function G(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function _e(e){return/^(table|td|th)$/.test(B(e))}function ve(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var ye=/transform|translate|scale|rotate|perspective|filter/,be=/paint|layout|strict|content/,K=e=>!!e&&e!==`none`,xe;function Se(e){let t=U(e)?J(e):e;return K(t.transform)||K(t.translate)||K(t.scale)||K(t.rotate)||K(t.perspective)||!we()&&(K(t.backdropFilter)||K(t.filter))||ye.test(t.willChange||``)||be.test(t.contain||``)}function Ce(e){let t=Y(e);for(;W(t)&&!q(t);){if(Se(t))return t;if(ve(t))return null;t=Y(t)}return null}function we(){return xe??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),xe}function q(e){return/^(html|body|#document)$/.test(B(e))}function J(e){return V(e).getComputedStyle(e)}function Te(e){return U(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Y(e){if(B(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ge(e)&&e.host||H(e);return ge(t)?t.host:t}function Ee(e){let t=Y(e);return q(t)?e.ownerDocument?e.ownerDocument.body:e.body:W(t)&&G(t)?t:Ee(t)}function X(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Ee(e),i=r===e.ownerDocument?.body,a=V(r);if(i){let e=De(a);return t.concat(a,a.visualViewport||[],G(r)?r:[],e&&n?X(e):[])}else return t.concat(r,X(r,[],n))}function De(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Oe(e){let t=J(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=W(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=m(n)!==a||m(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ke(e){return U(e)?e:e.contextElement}function Z(e){let t=ke(e);if(!W(t))return g(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Oe(t),o=(a?m(n.width):n.width)/r,s=(a?m(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Ae=g(0);function je(e){let t=V(e);return!we()||!t.visualViewport?Ae:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Me(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==V(e)?!1:t}function Q(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ke(e),o=g(1);t&&(r?U(r)&&(o=Z(r)):o=Z(e));let s=Me(a,n,r)?je(a):g(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=V(a),t=r&&U(r)?V(r):r,n=e,i=De(n);for(;i&&r&&t!==n;){let e=Z(i),t=i.getBoundingClientRect(),r=J(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=V(i),i=De(n)}}return L({width:u,height:d,x:c,y:l})}function Ne(e,t){let n=Te(e).scrollLeft;return t?t.left+n:Q(H(e)).left+n}function Pe(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ne(e,n),y:n.top+t.scrollTop}}function Fe(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=H(r),s=t?ve(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=g(1),u=g(0),d=W(r);if((d||!d&&!a)&&((B(r)!==`body`||G(o))&&(c=Te(r)),d)){let e=Q(r);l=Z(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Pe(o,c):g(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Ie(e){return Array.from(e.getClientRects())}function Le(e){let t=H(e),n=Te(e),r=e.ownerDocument.body,i=p(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=p(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Ne(e),s=-n.scrollTop;return J(r).direction===`rtl`&&(o+=p(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Re=25;function ze(e,t){let n=V(e),r=H(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=we();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Ne(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Re&&(a-=o)}else l<=Re&&(a+=l);return{width:a,height:o,x:s,y:c}}function Be(e,t){let n=Q(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=W(e)?Z(e):g(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Ve(e,t,n){let r;if(t===`viewport`)r=ze(e,n);else if(t===`document`)r=Le(H(e));else if(U(t))r=Be(t,n);else{let n=je(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return L(r)}function He(e,t){let n=Y(e);return n===t||!U(n)||q(n)?!1:J(n).position===`fixed`||He(n,t)}function Ue(e,t){let n=t.get(e);if(n)return n;let r=X(e,[],!1).filter(e=>U(e)&&B(e)!==`body`),i=null,a=J(e).position===`fixed`,o=a?Y(e):e;for(;U(o)&&!q(o);){let t=J(o),n=Se(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||G(o)&&!n&&He(e,o))?r=r.filter(e=>e!==o):i=t,o=Y(o)}return t.set(e,r),r}function We(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?ve(t)?[]:Ue(t,this._c):[].concat(n),r],o=Ve(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e{o(!1,1e-7)},1e3)}n===1&&!$e(l,e.getBoundingClientRect())&&o(),S=!1}try{n=new IntersectionObserver(C,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return o(!0),a}function tt(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=ke(e),u=i||a?[...l?X(l):[],...t?X(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?et(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Q(e):null;c&&g();function g(){let t=Q(e);h&&!$e(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var nt=ue,rt=de,it=ie,at=pe,ot=se,st=re,ct=fe,lt=(e,t,n)=>{let r=new Map,i={platform:Qe,...n},a={...i.platform,_c:r};return ne(e,t,{...i,platform:a})},ut=e(r(),1),dt=typeof document<`u`?u.useLayoutEffect:function(){};function ft(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ft(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!ft(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function pt(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mt(e,t){let n=pt(e);return Math.round(t*n)/n}function ht(e){let t=u.useRef(e);return dt(()=>{t.current=e}),t}function gt(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[d,f]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=u.useState(r);ft(p,r)||m(r);let[h,g]=u.useState(null),[_,v]=u.useState(null),y=u.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),b=u.useCallback(e=>{e!==w.current&&(w.current=e,v(e))},[]),x=a||h,S=o||_,C=u.useRef(null),w=u.useRef(null),T=u.useRef(d),E=c!=null,D=ht(c),O=ht(i),k=ht(l),A=u.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:p};O.current&&(e.platform=O.current),lt(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!ft(T.current,t)&&(T.current=t,ut.flushSync(()=>{f(t)}))})},[p,t,n,O,k]);dt(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[l]);let j=u.useRef(!1);dt(()=>(j.current=!0,()=>{j.current=!1}),[]),dt(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,A);A()}},[x,S,A,D,E]);let M=u.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),N=u.useMemo(()=>({reference:x,floating:S}),[x,S]),P=u.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=mt(N.floating,d.x),r=mt(N.floating,d.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...pt(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,d.x,d.y]);return u.useMemo(()=>({...d,update:A,refs:M,elements:N,floatingStyles:P}),[d,A,M,N,P])}var _t=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:st({element:r.current,padding:i}).fn(n):r?st({element:r,padding:i}).fn(n):{}}}},vt=(e,t)=>{let n=nt(e);return{name:n.name,fn:n.fn,options:[e,t]}},yt=(e,t)=>{let n=rt(e);return{name:n.name,fn:n.fn,options:[e,t]}},bt=(e,t)=>({fn:ct(e).fn,options:[e,t]}),xt=(e,t)=>{let n=it(e);return{name:n.name,fn:n.fn,options:[e,t]}},St=(e,t)=>{let n=at(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ct=(e,t)=>{let n=ot(e);return{name:n.name,fn:n.fn,options:[e,t]}},wt=(e,t)=>{let n=_t(e);return{name:n.name,fn:n.fn,options:[e,t]}},$=n(),Tt=`Arrow`,Et=u.forwardRef((e,t)=>{let{children:n,width:r=10,height:a=5,...o}=e;return(0,$.jsx)(i.svg,{...o,ref:t,width:r,height:a,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,$.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});Et.displayName=Tt;var Dt=Et,Ot=`Popper`,[kt,At]=o(Ot),[jt,Mt]=kt(Ot),Nt=e=>{let{__scopePopper:t,children:n}=e,[r,i]=u.useState(null);return(0,$.jsx)(jt,{scope:t,anchor:r,onAnchorChange:i,children:n})};Nt.displayName=Ot;var Pt=`PopperAnchor`,Ft=u.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,s=Mt(Pt,n),c=u.useRef(null),l=a(t,c),d=u.useRef(null);return u.useEffect(()=>{let e=d.current;d.current=r?.current||c.current,e!==d.current&&s.onAnchorChange(d.current)}),r?null:(0,$.jsx)(i.div,{...o,ref:l})});Ft.displayName=Pt;var It=`PopperContent`,[Lt,Rt]=kt(It),zt=u.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:o=0,align:d=`center`,alignOffset:f=0,arrowPadding:p=0,avoidCollisions:m=!0,collisionBoundary:h=[],collisionPadding:g=0,sticky:_=`partial`,hideWhenDetached:v=!1,updatePositionStrategy:y=`optimized`,onPlaced:b,...x}=e,S=Mt(It,n),[C,w]=u.useState(null),T=a(t,e=>w(e)),[E,D]=u.useState(null),O=l(E),k=O?.width??0,A=O?.height??0,j=r+(d===`center`?``:`-`+d),M=typeof g==`number`?g:{top:0,right:0,bottom:0,left:0,...g},N=Array.isArray(h)?h:[h],P=N.length>0,F={padding:M,boundary:N.filter(Ut),altBoundary:P},{refs:I,floatingStyles:ee,placement:L,isPositioned:R,middlewareData:z}=gt({strategy:`fixed`,placement:j,whileElementsMounted:(...e)=>tt(...e,{animationFrame:y===`always`}),elements:{reference:S.anchor},middleware:[vt({mainAxis:o+A,alignmentAxis:f}),m&&yt({mainAxis:!0,crossAxis:!1,limiter:_===`partial`?bt():void 0,...F}),m&&xt({...F}),St({...F,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),E&&wt({element:E,padding:p}),Wt({arrowWidth:k,arrowHeight:A}),v&&Ct({strategy:`referenceHidden`,...F})]}),[te,ne]=Gt(L),re=c(b);s(()=>{R&&re?.()},[R,re]);let ie=z.arrow?.x,ae=z.arrow?.y,oe=z.arrow?.centerOffset!==0,[se,ce]=u.useState();return s(()=>{C&&ce(window.getComputedStyle(C).zIndex)},[C]),(0,$.jsx)(`div`,{ref:I.setFloating,"data-radix-popper-content-wrapper":``,style:{...ee,transform:R?ee.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:se,"--radix-popper-transform-origin":[z.transformOrigin?.x,z.transformOrigin?.y].join(` `),...z.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,$.jsx)(Lt,{scope:n,placedSide:te,onArrowChange:D,arrowX:ie,arrowY:ae,shouldHideArrow:oe,children:(0,$.jsx)(i.div,{"data-side":te,"data-align":ne,...x,ref:T,style:{...x.style,animation:R?void 0:`none`}})})})});zt.displayName=It;var Bt=`PopperArrow`,Vt={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Ht=u.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=Rt(Bt,n),a=Vt[i.placedSide];return(0,$.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,$.jsx)(Dt,{...r,ref:t,style:{...r.style,display:`block`}})})});Ht.displayName=Bt;function Ut(e){return e!==null}var Wt=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Gt(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function Gt(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var Kt=Nt,qt=Ft,Jt=zt,Yt=Ht;export{At as a,Kt as i,Yt as n,Jt as r,qt as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{r,t as i}from"./dist-Cc8_LDAq.js";import{u as a}from"./button-C_NDYaz8.js";import{a as o,n as s}from"./dist-DPPquN_M.js";import{t as c}from"./dist-D4X8zGEB.js";import{t as l}from"./dist-ZdRQQNeu.js";var u=e(t(),1),d=[`top`,`right`,`bottom`,`left`],f=Math.min,p=Math.max,m=Math.round,h=Math.floor,g=e=>({x:e,y:e}),_={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function v(e,t,n){return p(e,f(t,n))}function y(e,t){return typeof e==`function`?e(t):e}function b(e){return e.split(`-`)[0]}function x(e){return e.split(`-`)[1]}function S(e){return e===`x`?`y`:`x`}function C(e){return e===`y`?`height`:`width`}function w(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function T(e){return S(w(e))}function E(e,t,n){n===void 0&&(n=!1);let r=x(e),i=T(e),a=C(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=F(o)),[o,F(o)]}function D(e){let t=F(e);return[O(e),t,O(t)]}function O(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var k=[`left`,`right`],A=[`right`,`left`],j=[`top`,`bottom`],M=[`bottom`,`top`];function N(e,t,n){switch(e){case`top`:case`bottom`:return n?t?A:k:t?k:A;case`left`:case`right`:return t?j:M;default:return[]}}function P(e,t,n,r){let i=x(e),a=N(b(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(O)))),a}function F(e){let t=b(e);return _[t]+e.slice(t.length)}function I(e){return{top:0,right:0,bottom:0,left:0,...e}}function ee(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:I(e)}function L(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function R(e,t,n){let{reference:r,floating:i}=e,a=w(t),o=T(t),s=C(o),c=b(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(x(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function z(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=y(t,e),p=ee(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=L(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},b=L(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-b.top+p.top)/v.y,bottom:(b.bottom-h.bottom+p.bottom)/v.y,left:(h.left-b.left+p.left)/v.x,right:(b.right-h.right+p.right)/v.x}}var te=50,ne=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:z},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=R(l,r,c),f=r,p=0,m={};for(let n=0;n({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=y(e,t)||{};if(l==null)return{};let d=ee(u),p={x:n,y:r},m=T(i),h=C(m),g=await o.getDimensions(l),_=m===`y`,b=_?`top`:`left`,S=_?`bottom`:`right`,w=_?`clientHeight`:`clientWidth`,E=a.reference[h]+a.reference[m]-p[m]-a.floating[h],D=p[m]-a.reference[m],O=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),k=O?O[w]:0;(!k||!await(o.isElement==null?void 0:o.isElement(O)))&&(k=s.floating[w]||a.floating[h]);let A=E/2-D/2,j=k/2-g[h]/2-1,M=f(d[b],j),N=f(d[S],j),P=M,F=k-g[h]-N,I=k/2-g[h]/2+A,L=v(P,I,F),R=!c.arrow&&x(i)!=null&&I!==L&&a.reference[h]/2-(Ie<=0)){let e=(i.flip?.index||0)+1,t=T[e];if(t&&(!(u===`alignment`&&_!==w(t))||A.every(e=>w(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:A},reset:{placement:t}};let n=A.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=A.filter(e=>{if(C){let t=w(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function ae(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function oe(e){return d.some(t=>e[t]>=0)}var se=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=y(e,t);switch(i){case`referenceHidden`:{let e=ae(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:oe(e)}}}case`escaped`:{let e=ae(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:oe(e)}}}default:return{}}}}},ce=new Set([`left`,`top`]);async function le(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=b(n),s=x(n),c=w(n)===`y`,l=ce.has(o)?-1:1,u=a&&c?-1:1,d=y(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var ue=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await le(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},de=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=y(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=w(b(i)),p=S(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=v(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=v(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},fe=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=y(e,t),u={x:n,y:r},d=w(i),f=S(d),p=u[f],m=u[d],h=y(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;pn&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=ce.has(b(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);mr&&(m=r)}return{[f]:p,[d]:m}}}},pe=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=y(e,t),u=await o.detectOverflow(t,l),d=b(i),m=x(i),h=w(i)===`y`,{width:g,height:_}=a.floating,v,S;d===`top`||d===`bottom`?(v=d,S=m===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(S=d,v=m===`end`?`top`:`bottom`);let C=_-u.top-u.bottom,T=g-u.left-u.right,E=f(_-u[v],C),D=f(g-u[S],T),O=!t.middlewareData.shift,k=E,A=D;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=T),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=C),O&&!m){let e=p(u.left,0),t=p(u.right,0),n=p(u.top,0),r=p(u.bottom,0);h?A=g-2*(e!==0||t!==0?e+t:p(u.left,u.right)):k=_-2*(n!==0||r!==0?n+r:p(u.top,u.bottom))}await c({...t,availableWidth:A,availableHeight:k});let j=await o.getDimensions(s.floating);return g!==j.width||_!==j.height?{reset:{rects:!0}}:{}}}};function me(){return typeof window<`u`}function B(e){return he(e)?(e.nodeName||``).toLowerCase():`#document`}function V(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function H(e){return((he(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function he(e){return me()?e instanceof Node||e instanceof V(e).Node:!1}function U(e){return me()?e instanceof Element||e instanceof V(e).Element:!1}function W(e){return me()?e instanceof HTMLElement||e instanceof V(e).HTMLElement:!1}function ge(e){return!me()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof V(e).ShadowRoot}function G(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function _e(e){return/^(table|td|th)$/.test(B(e))}function ve(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var ye=/transform|translate|scale|rotate|perspective|filter/,be=/paint|layout|strict|content/,K=e=>!!e&&e!==`none`,xe;function Se(e){let t=U(e)?J(e):e;return K(t.transform)||K(t.translate)||K(t.scale)||K(t.rotate)||K(t.perspective)||!we()&&(K(t.backdropFilter)||K(t.filter))||ye.test(t.willChange||``)||be.test(t.contain||``)}function Ce(e){let t=Y(e);for(;W(t)&&!q(t);){if(Se(t))return t;if(ve(t))return null;t=Y(t)}return null}function we(){return xe??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),xe}function q(e){return/^(html|body|#document)$/.test(B(e))}function J(e){return V(e).getComputedStyle(e)}function Te(e){return U(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Y(e){if(B(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ge(e)&&e.host||H(e);return ge(t)?t.host:t}function Ee(e){let t=Y(e);return q(t)?e.ownerDocument?e.ownerDocument.body:e.body:W(t)&&G(t)?t:Ee(t)}function X(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Ee(e),i=r===e.ownerDocument?.body,a=V(r);if(i){let e=De(a);return t.concat(a,a.visualViewport||[],G(r)?r:[],e&&n?X(e):[])}else return t.concat(r,X(r,[],n))}function De(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Oe(e){let t=J(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=W(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=m(n)!==a||m(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ke(e){return U(e)?e:e.contextElement}function Z(e){let t=ke(e);if(!W(t))return g(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Oe(t),o=(a?m(n.width):n.width)/r,s=(a?m(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Ae=g(0);function je(e){let t=V(e);return!we()||!t.visualViewport?Ae:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Me(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==V(e)?!1:t}function Q(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ke(e),o=g(1);t&&(r?U(r)&&(o=Z(r)):o=Z(e));let s=Me(a,n,r)?je(a):g(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=V(a),t=r&&U(r)?V(r):r,n=e,i=De(n);for(;i&&r&&t!==n;){let e=Z(i),t=i.getBoundingClientRect(),r=J(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=V(i),i=De(n)}}return L({width:u,height:d,x:c,y:l})}function Ne(e,t){let n=Te(e).scrollLeft;return t?t.left+n:Q(H(e)).left+n}function Pe(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ne(e,n),y:n.top+t.scrollTop}}function Fe(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=H(r),s=t?ve(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=g(1),u=g(0),d=W(r);if((d||!d&&!a)&&((B(r)!==`body`||G(o))&&(c=Te(r)),d)){let e=Q(r);l=Z(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Pe(o,c):g(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Ie(e){return Array.from(e.getClientRects())}function Le(e){let t=H(e),n=Te(e),r=e.ownerDocument.body,i=p(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=p(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Ne(e),s=-n.scrollTop;return J(r).direction===`rtl`&&(o+=p(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Re=25;function ze(e,t){let n=V(e),r=H(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=we();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Ne(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Re&&(a-=o)}else l<=Re&&(a+=l);return{width:a,height:o,x:s,y:c}}function Be(e,t){let n=Q(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=W(e)?Z(e):g(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Ve(e,t,n){let r;if(t===`viewport`)r=ze(e,n);else if(t===`document`)r=Le(H(e));else if(U(t))r=Be(t,n);else{let n=je(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return L(r)}function He(e,t){let n=Y(e);return n===t||!U(n)||q(n)?!1:J(n).position===`fixed`||He(n,t)}function Ue(e,t){let n=t.get(e);if(n)return n;let r=X(e,[],!1).filter(e=>U(e)&&B(e)!==`body`),i=null,a=J(e).position===`fixed`,o=a?Y(e):e;for(;U(o)&&!q(o);){let t=J(o),n=Se(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||G(o)&&!n&&He(e,o))?r=r.filter(e=>e!==o):i=t,o=Y(o)}return t.set(e,r),r}function We(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?ve(t)?[]:Ue(t,this._c):[].concat(n),r],o=Ve(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e{o(!1,1e-7)},1e3)}n===1&&!$e(l,e.getBoundingClientRect())&&o(),S=!1}try{n=new IntersectionObserver(C,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return o(!0),a}function tt(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=ke(e),u=i||a?[...l?X(l):[],...t?X(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?et(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Q(e):null;c&&g();function g(){let t=Q(e);h&&!$e(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var nt=ue,rt=de,it=ie,at=pe,ot=se,st=re,ct=fe,lt=(e,t,n)=>{let r=new Map,i={platform:Qe,...n},a={...i.platform,_c:r};return ne(e,t,{...i,platform:a})},ut=e(r(),1),dt=typeof document<`u`?u.useLayoutEffect:function(){};function ft(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ft(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!ft(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function pt(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mt(e,t){let n=pt(e);return Math.round(t*n)/n}function ht(e){let t=u.useRef(e);return dt(()=>{t.current=e}),t}function gt(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[d,f]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=u.useState(r);ft(p,r)||m(r);let[h,g]=u.useState(null),[_,v]=u.useState(null),y=u.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),b=u.useCallback(e=>{e!==w.current&&(w.current=e,v(e))},[]),x=a||h,S=o||_,C=u.useRef(null),w=u.useRef(null),T=u.useRef(d),E=c!=null,D=ht(c),O=ht(i),k=ht(l),A=u.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:p};O.current&&(e.platform=O.current),lt(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!ft(T.current,t)&&(T.current=t,ut.flushSync(()=>{f(t)}))})},[p,t,n,O,k]);dt(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[l]);let j=u.useRef(!1);dt(()=>(j.current=!0,()=>{j.current=!1}),[]),dt(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,A);A()}},[x,S,A,D,E]);let M=u.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),N=u.useMemo(()=>({reference:x,floating:S}),[x,S]),P=u.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=mt(N.floating,d.x),r=mt(N.floating,d.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...pt(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,d.x,d.y]);return u.useMemo(()=>({...d,update:A,refs:M,elements:N,floatingStyles:P}),[d,A,M,N,P])}var _t=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:st({element:r.current,padding:i}).fn(n):r?st({element:r,padding:i}).fn(n):{}}}},vt=(e,t)=>{let n=nt(e);return{name:n.name,fn:n.fn,options:[e,t]}},yt=(e,t)=>{let n=rt(e);return{name:n.name,fn:n.fn,options:[e,t]}},bt=(e,t)=>({fn:ct(e).fn,options:[e,t]}),xt=(e,t)=>{let n=it(e);return{name:n.name,fn:n.fn,options:[e,t]}},St=(e,t)=>{let n=at(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ct=(e,t)=>{let n=ot(e);return{name:n.name,fn:n.fn,options:[e,t]}},wt=(e,t)=>{let n=_t(e);return{name:n.name,fn:n.fn,options:[e,t]}},$=n(),Tt=`Arrow`,Et=u.forwardRef((e,t)=>{let{children:n,width:r=10,height:a=5,...o}=e;return(0,$.jsx)(i.svg,{...o,ref:t,width:r,height:a,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,$.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});Et.displayName=Tt;var Dt=Et,Ot=`Popper`,[kt,At]=o(Ot),[jt,Mt]=kt(Ot),Nt=e=>{let{__scopePopper:t,children:n}=e,[r,i]=u.useState(null);return(0,$.jsx)(jt,{scope:t,anchor:r,onAnchorChange:i,children:n})};Nt.displayName=Ot;var Pt=`PopperAnchor`,Ft=u.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,s=Mt(Pt,n),c=u.useRef(null),l=a(t,c),d=u.useRef(null);return u.useEffect(()=>{let e=d.current;d.current=r?.current||c.current,e!==d.current&&s.onAnchorChange(d.current)}),r?null:(0,$.jsx)(i.div,{...o,ref:l})});Ft.displayName=Pt;var It=`PopperContent`,[Lt,Rt]=kt(It),zt=u.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:o=0,align:d=`center`,alignOffset:f=0,arrowPadding:p=0,avoidCollisions:m=!0,collisionBoundary:h=[],collisionPadding:g=0,sticky:_=`partial`,hideWhenDetached:v=!1,updatePositionStrategy:y=`optimized`,onPlaced:b,...x}=e,S=Mt(It,n),[C,w]=u.useState(null),T=a(t,e=>w(e)),[E,D]=u.useState(null),O=l(E),k=O?.width??0,A=O?.height??0,j=r+(d===`center`?``:`-`+d),M=typeof g==`number`?g:{top:0,right:0,bottom:0,left:0,...g},N=Array.isArray(h)?h:[h],P=N.length>0,F={padding:M,boundary:N.filter(Ut),altBoundary:P},{refs:I,floatingStyles:ee,placement:L,isPositioned:R,middlewareData:z}=gt({strategy:`fixed`,placement:j,whileElementsMounted:(...e)=>tt(...e,{animationFrame:y===`always`}),elements:{reference:S.anchor},middleware:[vt({mainAxis:o+A,alignmentAxis:f}),m&&yt({mainAxis:!0,crossAxis:!1,limiter:_===`partial`?bt():void 0,...F}),m&&xt({...F}),St({...F,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),E&&wt({element:E,padding:p}),Wt({arrowWidth:k,arrowHeight:A}),v&&Ct({strategy:`referenceHidden`,...F})]}),[te,ne]=Gt(L),re=c(b);s(()=>{R&&re?.()},[R,re]);let ie=z.arrow?.x,ae=z.arrow?.y,oe=z.arrow?.centerOffset!==0,[se,ce]=u.useState();return s(()=>{C&&ce(window.getComputedStyle(C).zIndex)},[C]),(0,$.jsx)(`div`,{ref:I.setFloating,"data-radix-popper-content-wrapper":``,style:{...ee,transform:R?ee.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:se,"--radix-popper-transform-origin":[z.transformOrigin?.x,z.transformOrigin?.y].join(` `),...z.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,$.jsx)(Lt,{scope:n,placedSide:te,onArrowChange:D,arrowX:ie,arrowY:ae,shouldHideArrow:oe,children:(0,$.jsx)(i.div,{"data-side":te,"data-align":ne,...x,ref:T,style:{...x.style,animation:R?void 0:`none`}})})})});zt.displayName=It;var Bt=`PopperArrow`,Vt={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Ht=u.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=Rt(Bt,n),a=Vt[i.placedSide];return(0,$.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,$.jsx)(Dt,{...r,ref:t,style:{...r.style,display:`block`}})})});Ht.displayName=Bt;function Ut(e){return e!==null}var Wt=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Gt(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function Gt(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var Kt=Nt,qt=Ft,Jt=zt,Yt=Ht;export{At as a,Kt as i,Yt as n,Jt as r,qt as t}; \ No newline at end of file diff --git a/src/www/assets/dist-D7AUoOWu.js b/src/www/assets/dist-D0DoWChj.js similarity index 91% rename from src/www/assets/dist-D7AUoOWu.js rename to src/www/assets/dist-D0DoWChj.js index d59eaec..451254d 100644 --- a/src/www/assets/dist-D7AUoOWu.js +++ b/src/www/assets/dist-D0DoWChj.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";import{t as r}from"./dist-BFnxq45V.js";import{u as i}from"./button-BgMnOYKD.js";import{a,r as o,t as s}from"./dist-CKFLmh1A.js";import{t as c}from"./dist-C6i4A_Js.js";import{n as l,t as u}from"./dist-B0ikDpJU.js";import{n as d}from"./dist-C97YBjnT.js";var f=e(t(),1),p=n(),m=`rovingFocusGroup.onEntryFocus`,h={bubbles:!1,cancelable:!0},g=`RovingFocusGroup`,[_,v,y]=c(g),[b,x]=a(g,[y]),[S,C]=b(g),w=f.forwardRef((e,t)=>(0,p.jsx)(_.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(_.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(T,{...e,ref:t})})}));w.displayName=g;var T=f.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:a,loop:c=!1,dir:l,currentTabStopId:_,defaultCurrentTabStopId:y,onCurrentTabStopIdChange:b,onEntryFocus:x,preventScrollOnEntryFocus:C=!1,...w}=e,T=f.useRef(null),E=i(t,T),D=d(l),[O,k]=s({prop:_,defaultProp:y??null,onChange:b,caller:g}),[A,M]=f.useState(!1),N=u(x),P=v(n),F=f.useRef(!1),[I,L]=f.useState(0);return f.useEffect(()=>{let e=T.current;if(e)return e.addEventListener(m,N),()=>e.removeEventListener(m,N)},[N]),(0,p.jsx)(S,{scope:n,orientation:a,dir:D,loop:c,currentTabStopId:O,onItemFocus:f.useCallback(e=>k(e),[k]),onItemShiftTab:f.useCallback(()=>M(!0),[]),onFocusableItemAdd:f.useCallback(()=>L(e=>e+1),[]),onFocusableItemRemove:f.useCallback(()=>L(e=>e-1),[]),children:(0,p.jsx)(r.div,{tabIndex:A||I===0?-1:0,"data-orientation":a,...w,ref:E,style:{outline:`none`,...e.style},onMouseDown:o(e.onMouseDown,()=>{F.current=!0}),onFocus:o(e.onFocus,e=>{let t=!F.current;if(e.target===e.currentTarget&&t&&!A){let t=new CustomEvent(m,h);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=P().filter(e=>e.focusable);j([e.find(e=>e.active),e.find(e=>e.id===O),...e].filter(Boolean).map(e=>e.ref.current),C)}}F.current=!1}),onBlur:o(e.onBlur,()=>M(!1))})})}),E=`RovingFocusGroupItem`,D=f.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:i=!0,active:a=!1,tabStopId:s,children:c,...u}=e,d=l(),m=s||d,h=C(E,n),g=h.currentTabStopId===m,y=v(n),{onFocusableItemAdd:b,onFocusableItemRemove:x,currentTabStopId:S}=h;return f.useEffect(()=>{if(i)return b(),()=>x()},[i,b,x]),(0,p.jsx)(_.ItemSlot,{scope:n,id:m,focusable:i,active:a,children:(0,p.jsx)(r.span,{tabIndex:g?0:-1,"data-orientation":h.orientation,...u,ref:t,onMouseDown:o(e.onMouseDown,e=>{i?h.onItemFocus(m):e.preventDefault()}),onFocus:o(e.onFocus,()=>h.onItemFocus(m)),onKeyDown:o(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){h.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=A(e,h.orientation,h.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=y().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=h.loop?M(n,r+1):n.slice(r+1)}setTimeout(()=>j(n))}}),children:typeof c==`function`?c({isCurrentTabStop:g,hasTabStop:S!=null}):c})})});D.displayName=E;var O={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function k(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function A(e,t,n){let r=k(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return O[r]}function j(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function M(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var N=w,P=D;export{N as n,x as r,P as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./dist-Cc8_LDAq.js";import{u as i}from"./button-C_NDYaz8.js";import{a,r as o,t as s}from"./dist-DPPquN_M.js";import{t as c}from"./dist-CHFjpVqk.js";import{n as l,t as u}from"./dist-D4X8zGEB.js";import{n as d}from"./dist-BNFQuJTu.js";var f=e(t(),1),p=n(),m=`rovingFocusGroup.onEntryFocus`,h={bubbles:!1,cancelable:!0},g=`RovingFocusGroup`,[_,v,y]=c(g),[b,x]=a(g,[y]),[S,C]=b(g),w=f.forwardRef((e,t)=>(0,p.jsx)(_.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(_.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(T,{...e,ref:t})})}));w.displayName=g;var T=f.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:a,loop:c=!1,dir:l,currentTabStopId:_,defaultCurrentTabStopId:y,onCurrentTabStopIdChange:b,onEntryFocus:x,preventScrollOnEntryFocus:C=!1,...w}=e,T=f.useRef(null),E=i(t,T),D=d(l),[O,k]=s({prop:_,defaultProp:y??null,onChange:b,caller:g}),[A,M]=f.useState(!1),N=u(x),P=v(n),F=f.useRef(!1),[I,L]=f.useState(0);return f.useEffect(()=>{let e=T.current;if(e)return e.addEventListener(m,N),()=>e.removeEventListener(m,N)},[N]),(0,p.jsx)(S,{scope:n,orientation:a,dir:D,loop:c,currentTabStopId:O,onItemFocus:f.useCallback(e=>k(e),[k]),onItemShiftTab:f.useCallback(()=>M(!0),[]),onFocusableItemAdd:f.useCallback(()=>L(e=>e+1),[]),onFocusableItemRemove:f.useCallback(()=>L(e=>e-1),[]),children:(0,p.jsx)(r.div,{tabIndex:A||I===0?-1:0,"data-orientation":a,...w,ref:E,style:{outline:`none`,...e.style},onMouseDown:o(e.onMouseDown,()=>{F.current=!0}),onFocus:o(e.onFocus,e=>{let t=!F.current;if(e.target===e.currentTarget&&t&&!A){let t=new CustomEvent(m,h);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=P().filter(e=>e.focusable);j([e.find(e=>e.active),e.find(e=>e.id===O),...e].filter(Boolean).map(e=>e.ref.current),C)}}F.current=!1}),onBlur:o(e.onBlur,()=>M(!1))})})}),E=`RovingFocusGroupItem`,D=f.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:i=!0,active:a=!1,tabStopId:s,children:c,...u}=e,d=l(),m=s||d,h=C(E,n),g=h.currentTabStopId===m,y=v(n),{onFocusableItemAdd:b,onFocusableItemRemove:x,currentTabStopId:S}=h;return f.useEffect(()=>{if(i)return b(),()=>x()},[i,b,x]),(0,p.jsx)(_.ItemSlot,{scope:n,id:m,focusable:i,active:a,children:(0,p.jsx)(r.span,{tabIndex:g?0:-1,"data-orientation":h.orientation,...u,ref:t,onMouseDown:o(e.onMouseDown,e=>{i?h.onItemFocus(m):e.preventDefault()}),onFocus:o(e.onFocus,()=>h.onItemFocus(m)),onKeyDown:o(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){h.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=A(e,h.orientation,h.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=y().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=h.loop?M(n,r+1):n.slice(r+1)}setTimeout(()=>j(n))}}),children:typeof c==`function`?c({isCurrentTabStop:g,hasTabStop:S!=null}):c})})});D.displayName=E;var O={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function k(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function A(e,t,n){let r=k(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return O[r]}function j(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function M(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var N=w,P=D;export{N as n,x as r,P as t}; \ No newline at end of file diff --git a/src/www/assets/dist-B0ikDpJU.js b/src/www/assets/dist-D4X8zGEB.js similarity index 83% rename from src/www/assets/dist-B0ikDpJU.js rename to src/www/assets/dist-D4X8zGEB.js index 080d357..669cc46 100644 --- a/src/www/assets/dist-B0ikDpJU.js +++ b/src/www/assets/dist-D4X8zGEB.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{n}from"./dist-CKFLmh1A.js";var r=e(t(),1),i=r.useId||(()=>void 0),a=0;function o(e){let[t,o]=r.useState(i());return n(()=>{e||o(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:``)}function s(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}export{o as n,s as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{n}from"./dist-DPPquN_M.js";var r=e(t(),1),i=r.useId||(()=>void 0),a=0;function o(e){let[t,o]=r.useState(i());return n(()=>{e||o(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:``)}function s(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}export{o as n,s as t}; \ No newline at end of file diff --git a/src/www/assets/dist-CKFLmh1A.js b/src/www/assets/dist-DPPquN_M.js similarity index 97% rename from src/www/assets/dist-CKFLmh1A.js rename to src/www/assets/dist-DPPquN_M.js index ebe4b40..8037de4 100644 --- a/src/www/assets/dist-CKFLmh1A.js +++ b/src/www/assets/dist-DPPquN_M.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";var r=e(t(),1),i=n();function a(e,t){let n=r.createContext(t),a=e=>{let{children:t,...a}=e,o=r.useMemo(()=>a,Object.values(a));return(0,i.jsx)(n.Provider,{value:o,children:t})};a.displayName=e+`Provider`;function o(i){let a=r.useContext(n);if(a)return a;if(t!==void 0)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}return[a,o]}function o(e,t=[]){let n=[];function a(t,a){let o=r.createContext(a),s=n.length;n=[...n,a];let c=t=>{let{scope:n,children:a,...c}=t,l=n?.[e]?.[s]||o,u=r.useMemo(()=>c,Object.values(c));return(0,i.jsx)(l.Provider,{value:u,children:a})};c.displayName=t+`Provider`;function l(n,i){let c=i?.[e]?.[s]||o,l=r.useContext(c);if(l)return l;if(a!==void 0)return a;throw Error(`\`${n}\` must be used within \`${t}\``)}return[c,l]}let o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return o.scopeName=e,[a,s(o,...t)]}function s(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}typeof window<`u`&&window.document&&window.document.createElement;function c(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}var l=globalThis?.document?r.useLayoutEffect:()=>{},u=r.useInsertionEffect||l;function d({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){let[a,o,s]=f({defaultProp:t,onChange:n}),c=e!==void 0,l=c?e:a;{let t=r.useRef(e!==void 0);r.useEffect(()=>{let e=t.current;e!==c&&console.warn(`${i} is changing from ${e?`controlled`:`uncontrolled`} to ${c?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=c},[c,i])}return[l,r.useCallback(t=>{if(c){let n=p(t)?t(e):t;n!==e&&s.current?.(n)}else o(t)},[c,e,o,s])]}function f({defaultProp:e,onChange:t}){let[n,i]=r.useState(e),a=r.useRef(n),o=r.useRef(t);return u(()=>{o.current=t},[t]),r.useEffect(()=>{a.current!==n&&(o.current?.(n),a.current=n)},[n,a]),[n,i,o]}function p(e){return typeof e==`function`}export{o as a,a as i,l as n,c as r,d as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";var r=e(t(),1),i=n();function a(e,t){let n=r.createContext(t),a=e=>{let{children:t,...a}=e,o=r.useMemo(()=>a,Object.values(a));return(0,i.jsx)(n.Provider,{value:o,children:t})};a.displayName=e+`Provider`;function o(i){let a=r.useContext(n);if(a)return a;if(t!==void 0)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}return[a,o]}function o(e,t=[]){let n=[];function a(t,a){let o=r.createContext(a),s=n.length;n=[...n,a];let c=t=>{let{scope:n,children:a,...c}=t,l=n?.[e]?.[s]||o,u=r.useMemo(()=>c,Object.values(c));return(0,i.jsx)(l.Provider,{value:u,children:a})};c.displayName=t+`Provider`;function l(n,i){let c=i?.[e]?.[s]||o,l=r.useContext(c);if(l)return l;if(a!==void 0)return a;throw Error(`\`${n}\` must be used within \`${t}\``)}return[c,l]}let o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return o.scopeName=e,[a,s(o,...t)]}function s(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}typeof window<`u`&&window.document&&window.document.createElement;function c(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}var l=globalThis?.document?r.useLayoutEffect:()=>{},u=r.useInsertionEffect||l;function d({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){let[a,o,s]=f({defaultProp:t,onChange:n}),c=e!==void 0,l=c?e:a;{let t=r.useRef(e!==void 0);r.useEffect(()=>{let e=t.current;e!==c&&console.warn(`${i} is changing from ${e?`controlled`:`uncontrolled`} to ${c?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=c},[c,i])}return[l,r.useCallback(t=>{if(c){let n=p(t)?t(e):t;n!==e&&s.current?.(n)}else o(t)},[c,e,o,s])]}function f({defaultProp:e,onChange:t}){let[n,i]=r.useState(e),a=r.useRef(n),o=r.useRef(t);return u(()=>{o.current=t},[t]),r.useEffect(()=>{a.current!==n&&(o.current?.(n),a.current=n)},[n,a]),[n,i,o]}function p(e){return typeof e==`function`}export{o as a,a as i,l as n,c as r,d as t}; \ No newline at end of file diff --git a/src/www/assets/dist-Bmn8KNt7.js b/src/www/assets/dist-Dtn5c_cx.js similarity index 73% rename from src/www/assets/dist-Bmn8KNt7.js rename to src/www/assets/dist-Dtn5c_cx.js index 4841bb3..d85269a 100644 --- a/src/www/assets/dist-Bmn8KNt7.js +++ b/src/www/assets/dist-Dtn5c_cx.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";import{t as r}from"./dist-BFnxq45V.js";var i=e(t(),1),a=n(),o=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),s=`VisuallyHidden`,c=i.forwardRef((e,t)=>(0,a.jsx)(r.span,{...e,ref:t,style:{...o,...e.style}}));c.displayName=s;var l=c;export{o as n,l as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./dist-Cc8_LDAq.js";var i=e(t(),1),a=n(),o=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),s=`VisuallyHidden`,c=i.forwardRef((e,t)=>(0,a.jsx)(r.span,{...e,ref:t,style:{...o,...e.style}}));c.displayName=s;var l=c;export{o as n,l as t}; \ No newline at end of file diff --git a/src/www/assets/dist-Clua1vrx.js b/src/www/assets/dist-DvwKOQ8R.js similarity index 93% rename from src/www/assets/dist-Clua1vrx.js rename to src/www/assets/dist-DvwKOQ8R.js index a48c848..3f50b49 100644 --- a/src/www/assets/dist-Clua1vrx.js +++ b/src/www/assets/dist-DvwKOQ8R.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{u as n}from"./button-BgMnOYKD.js";import{n as r}from"./dist-CKFLmh1A.js";var i=e(t(),1);function a(e,t){return i.useReducer((e,n)=>t[e][n]??e,e)}var o=e=>{let{present:t,children:r}=e,a=s(t),o=typeof r==`function`?r({present:a.isPresent}):i.Children.only(r),c=n(a.ref,l(o));return typeof r==`function`||a.isPresent?i.cloneElement(o,{ref:c}):null};o.displayName=`Presence`;function s(e){let[t,n]=i.useState(),o=i.useRef(null),s=i.useRef(e),l=i.useRef(`none`),[u,d]=a(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return i.useEffect(()=>{let e=c(o.current);l.current=u===`mounted`?e:`none`},[u]),r(()=>{let t=o.current,n=s.current;if(n!==e){let r=l.current,i=c(t);e?d(`MOUNT`):i===`none`||t?.display===`none`?d(`UNMOUNT`):d(n&&r!==i?`ANIMATION_OUT`:`UNMOUNT`),s.current=e}},[e,d]),r(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,r=r=>{let i=c(o.current).includes(CSS.escape(r.animationName));if(r.target===t&&i&&(d(`ANIMATION_END`),!s.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},i=e=>{e.target===t&&(l.current=c(o.current))};return t.addEventListener(`animationstart`,i),t.addEventListener(`animationcancel`,r),t.addEventListener(`animationend`,r),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,i),t.removeEventListener(`animationcancel`,r),t.removeEventListener(`animationend`,r)}}else d(`ANIMATION_END`)},[t,d]),{isPresent:[`mounted`,`unmountSuspended`].includes(u),ref:i.useCallback(e=>{o.current=e?getComputedStyle(e):null,n(e)},[])}}function c(e){return e?.animationName||`none`}function l(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}export{o as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{u as n}from"./button-C_NDYaz8.js";import{n as r}from"./dist-DPPquN_M.js";var i=e(t(),1);function a(e,t){return i.useReducer((e,n)=>t[e][n]??e,e)}var o=e=>{let{present:t,children:r}=e,a=s(t),o=typeof r==`function`?r({present:a.isPresent}):i.Children.only(r),c=n(a.ref,l(o));return typeof r==`function`||a.isPresent?i.cloneElement(o,{ref:c}):null};o.displayName=`Presence`;function s(e){let[t,n]=i.useState(),o=i.useRef(null),s=i.useRef(e),l=i.useRef(`none`),[u,d]=a(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return i.useEffect(()=>{let e=c(o.current);l.current=u===`mounted`?e:`none`},[u]),r(()=>{let t=o.current,n=s.current;if(n!==e){let r=l.current,i=c(t);e?d(`MOUNT`):i===`none`||t?.display===`none`?d(`UNMOUNT`):d(n&&r!==i?`ANIMATION_OUT`:`UNMOUNT`),s.current=e}},[e,d]),r(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,r=r=>{let i=c(o.current).includes(CSS.escape(r.animationName));if(r.target===t&&i&&(d(`ANIMATION_END`),!s.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},i=e=>{e.target===t&&(l.current=c(o.current))};return t.addEventListener(`animationstart`,i),t.addEventListener(`animationcancel`,r),t.addEventListener(`animationend`,r),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,i),t.removeEventListener(`animationcancel`,r),t.removeEventListener(`animationend`,r)}}else d(`ANIMATION_END`)},[t,d]),{isPresent:[`mounted`,`unmountSuspended`].includes(u),ref:i.useCallback(e=>{o.current=e?getComputedStyle(e):null,n(e)},[])}}function c(e){return e?.animationName||`none`}function l(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}export{o as t}; \ No newline at end of file diff --git a/src/www/assets/dist-BGqHIBUe.js b/src/www/assets/dist-JOUh6qvR.js similarity index 99% rename from src/www/assets/dist-BGqHIBUe.js rename to src/www/assets/dist-JOUh6qvR.js index 1b8d95b..045ba2e 100644 --- a/src/www/assets/dist-BGqHIBUe.js +++ b/src/www/assets/dist-JOUh6qvR.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{r as n}from"./dist-BFnxq45V.js";var r=e(t(),1),i=e(n(),1);function a(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var o=e=>{switch(e){case`success`:return l;case`info`:return d;case`warning`:return u;case`error`:return f;default:return null}},s=Array(12).fill(0),c=({visible:e,className:t})=>r.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},r.createElement(`div`,{className:`sonner-spinner`},s.map((e,t)=>r.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),l=r.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},r.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),u=r.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`},r.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),d=r.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},r.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),f=r.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},r.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),p=r.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`},r.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),r.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),ee=()=>{let[e,t]=r.useState(document.hidden);return r.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>window.removeEventListener(`visibilitychange`,e)},[]),e},m=1,h=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{let{message:t,...n}=e,r=typeof e?.id==`number`||e.id?.length>0?e.id:m++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let i=Promise.resolve(e instanceof Function?e():e),a=n!==void 0,o,s=i.then(async e=>{if(o=[`resolve`,e],r.isValidElement(e))a=!1,this.create({id:n,type:`default`,message:e});else if(_(e)&&!e.ok){a=!1;let i=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,o=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,s=typeof i==`object`&&!r.isValidElement(i)?i:{message:i};this.create({id:n,type:`error`,description:o,...s})}else if(e instanceof Error){a=!1;let i=typeof t.error==`function`?await t.error(e):t.error,o=typeof t.description==`function`?await t.description(e):t.description,s=typeof i==`object`&&!r.isValidElement(i)?i:{message:i};this.create({id:n,type:`error`,description:o,...s})}else if(t.success!==void 0){a=!1;let i=typeof t.success==`function`?await t.success(e):t.success,o=typeof t.description==`function`?await t.description(e):t.description,s=typeof i==`object`&&!r.isValidElement(i)?i:{message:i};this.create({id:n,type:`success`,description:o,...s})}}).catch(async e=>{if(o=[`reject`,e],t.error!==void 0){a=!1;let i=typeof t.error==`function`?await t.error(e):t.error,o=typeof t.description==`function`?await t.description(e):t.description,s=typeof i==`object`&&!r.isValidElement(i)?i:{message:i};this.create({id:n,type:`error`,description:o,...s})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),c=()=>new Promise((e,t)=>s.then(()=>o[0]===`reject`?t(o[1]):e(o[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:c}:Object.assign(n,{unwrap:c})},this.custom=(e,t)=>{let n=t?.id||m++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},g=(e,t)=>{let n=t?.id||m++;return h.addToast({title:e,...t,id:n}),n},_=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,v=Object.assign(g,{success:h.success,info:h.info,warning:h.warning,error:h.error,custom:h.custom,message:h.message,promise:h.promise,dismiss:h.dismiss,loading:h.loading},{getHistory:()=>h.toasts,getToasts:()=>h.getActiveToasts()});a(`[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}`);function y(e){return e.label!==void 0}var te=3,b=`24px`,x=`16px`,S=4e3,C=356,w=14,T=45,E=200;function D(...e){return e.filter(Boolean).join(` `)}function ne(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var O=e=>{let{invert:t,toast:n,unstyled:i,interacting:a,setHeights:s,visibleToasts:l,heights:u,index:d,toasts:f,expanded:m,removeToast:h,defaultRichColors:g,closeButton:_,style:v,cancelButtonStyle:te,actionButtonStyle:b,className:x=``,descriptionClassName:C=``,duration:w,position:O,gap:k,expandByDefault:A,classNames:j,icons:M,closeButtonAriaLabel:re=`Close toast`}=e,[N,P]=r.useState(null),[F,ie]=r.useState(null),[I,L]=r.useState(!1),[R,z]=r.useState(!1),[B,V]=r.useState(!1),[ae,oe]=r.useState(!1),[se,ce]=r.useState(!1),[le,H]=r.useState(0),[ue,U]=r.useState(0),W=r.useRef(n.duration||w||S),de=r.useRef(null),G=r.useRef(null),fe=d===0,pe=d+1<=l,K=n.type,q=n.dismissible!==!1,me=n.className||``,he=n.descriptionClassName||``,J=r.useMemo(()=>u.findIndex(e=>e.toastId===n.id)||0,[u,n.id]),ge=r.useMemo(()=>n.closeButton??_,[n.closeButton,_]),_e=r.useMemo(()=>n.duration||w||S,[n.duration,w]),Y=r.useRef(0),X=r.useRef(0),ve=r.useRef(0),Z=r.useRef(null),[ye,be]=O.split(`-`),xe=r.useMemo(()=>u.reduce((e,t,n)=>n>=J?e:e+t.height,0),[u,J]),Se=ee(),Ce=n.invert||t,Q=K===`loading`;X.current=r.useMemo(()=>J*k+xe,[J,xe]),r.useEffect(()=>{W.current=_e},[_e]),r.useEffect(()=>{L(!0)},[]),r.useEffect(()=>{let e=G.current;if(e){let t=e.getBoundingClientRect().height;return U(t),s(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>s(e=>e.filter(e=>e.toastId!==n.id))}},[s,n.id]),r.useLayoutEffect(()=>{if(!I)return;let e=G.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,U(r),s(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[I,n.title,n.description,s,n.id,n.jsx,n.action,n.cancel]);let $=r.useCallback(()=>{z(!0),H(X.current),s(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{h(n)},E)},[n,h,s,X]);r.useEffect(()=>{if(n.promise&&K===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return m||a||Se?(()=>{if(ve.current{n.onAutoClose==null||n.onAutoClose.call(n,n),$()},W.current)),()=>clearTimeout(e)},[m,a,n,K,Se,$]),r.useEffect(()=>{n.delete&&($(),n.onDismiss==null||n.onDismiss.call(n,n))},[$,n.delete]);function we(){return M?.loading?r.createElement(`div`,{className:D(j?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":K===`loading`},M.loading):r.createElement(c,{className:D(j?.loader,n?.classNames?.loader),visible:K===`loading`})}let Te=n.icon||M?.[K]||o(K);return r.createElement(`li`,{tabIndex:0,ref:G,className:D(x,me,j?.toast,n?.classNames?.toast,j?.default,j?.[K],n?.classNames?.[K]),"data-sonner-toast":``,"data-rich-colors":n.richColors??g,"data-styled":!(n.jsx||n.unstyled||i),"data-mounted":I,"data-promise":!!n.promise,"data-swiped":se,"data-removed":R,"data-visible":pe,"data-y-position":ye,"data-x-position":be,"data-index":d,"data-front":fe,"data-swiping":B,"data-dismissible":q,"data-type":K,"data-invert":Ce,"data-swipe-out":ae,"data-swipe-direction":F,"data-expanded":!!(m||A&&I),"data-testid":n.testId,style:{"--index":d,"--toasts-before":d,"--z-index":f.length-d,"--offset":`${R?le:X.current}px`,"--initial-height":A?`auto`:`${ue}px`,...v,...n.style},onDragEnd:()=>{V(!1),P(null),Z.current=null},onPointerDown:e=>{e.button!==2&&(Q||!q||(de.current=new Date,H(X.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(V(!0),Z.current={x:e.clientX,y:e.clientY})))},onPointerUp:()=>{if(ae||!q)return;Z.current=null;let e=Number(G.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(G.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-de.current?.getTime(),i=N===`x`?e:t,a=Math.abs(i)/r;if(Math.abs(i)>=T||a>.11){H(X.current),n.onDismiss==null||n.onDismiss.call(n,n),ie(N===`x`?e>0?`right`:`left`:t>0?`down`:`up`),$(),oe(!0);return}else{var o,s;(o=G.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=G.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`)}ce(!1),V(!1),P(null)},onPointerMove:t=>{var n,r;if(!Z.current||!q||window.getSelection()?.toString().length>0)return;let i=t.clientY-Z.current.y,a=t.clientX-Z.current.x,o=e.swipeDirections??ne(O);!N&&(Math.abs(a)>1||Math.abs(i)>1)&&P(Math.abs(a)>Math.abs(i)?`x`:`y`);let s={x:0,y:0},c=e=>1/(1.5+Math.abs(e)/20);if(N===`y`){if(o.includes(`top`)||o.includes(`bottom`))if(o.includes(`top`)&&i<0||o.includes(`bottom`)&&i>0)s.y=i;else{let e=i*c(i);s.y=Math.abs(e)0)s.x=a;else{let e=a*c(a);s.x=Math.abs(e)0||Math.abs(s.y)>0)&&ce(!0),(n=G.current)==null||n.style.setProperty(`--swipe-amount-x`,`${s.x}px`),(r=G.current)==null||r.style.setProperty(`--swipe-amount-y`,`${s.y}px`)}},ge&&!n.jsx&&K!==`loading`?r.createElement(`button`,{"aria-label":re,"data-disabled":Q,"data-close-button":!0,onClick:Q||!q?()=>{}:()=>{$(),n.onDismiss==null||n.onDismiss.call(n,n)},className:D(j?.closeButton,n?.classNames?.closeButton)},M?.close??p):null,(K||n.icon||n.promise)&&n.icon!==null&&(M?.[K]!==null||n.icon)?r.createElement(`div`,{"data-icon":``,className:D(j?.icon,n?.classNames?.icon)},n.promise||n.type===`loading`&&!n.icon?n.icon||we():null,n.type===`loading`?null:Te):null,r.createElement(`div`,{"data-content":``,className:D(j?.content,n?.classNames?.content)},r.createElement(`div`,{"data-title":``,className:D(j?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?r.createElement(`div`,{"data-description":``,className:D(C,he,j?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),r.isValidElement(n.cancel)?n.cancel:n.cancel&&y(n.cancel)?r.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||te,onClick:e=>{y(n.cancel)&&q&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),$())},className:D(j?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,r.isValidElement(n.action)?n.action:n.action&&y(n.action)?r.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||b,onClick:e=>{y(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&$())},className:D(j?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function k(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function A(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?x:b;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var j=r.forwardRef(function(e,t){let{id:n,invert:a,position:o=`bottom-right`,hotkey:s=[`altKey`,`KeyT`],expand:c,closeButton:l,className:u,offset:d,mobileOffset:f,theme:p=`light`,richColors:ee,duration:m,style:g,visibleToasts:_=te,toastOptions:v,dir:y=k(),gap:b=w,icons:x,containerAriaLabel:S=`Notifications`}=e,[T,E]=r.useState([]),D=r.useMemo(()=>n?T.filter(e=>e.toasterId===n):T.filter(e=>!e.toasterId),[T,n]),ne=r.useMemo(()=>Array.from(new Set([o].concat(D.filter(e=>e.position).map(e=>e.position)))),[D,o]),[j,M]=r.useState([]),[re,N]=r.useState(!1),[P,F]=r.useState(!1),[ie,I]=r.useState(p===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:p),L=r.useRef(null),R=s.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),z=r.useRef(null),B=r.useRef(!1),V=r.useCallback(e=>{E(t=>(t.find(t=>t.id===e.id)?.delete||h.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return r.useEffect(()=>h.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{E(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});return}setTimeout(()=>{i.flushSync(()=>{E(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[T]),r.useEffect(()=>{if(p!==`system`){I(p);return}if(p===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?I(`dark`):I(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{I(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{I(e?`dark`:`light`)}catch(e){console.error(e)}})}},[p]),r.useEffect(()=>{T.length<=1&&N(!1)},[T]),r.useEffect(()=>{let e=e=>{if(s.every(t=>e[t]||e.code===t)){var t;N(!0),(t=L.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===L.current||L.current?.contains(document.activeElement))&&N(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[s]),r.useEffect(()=>{if(L.current)return()=>{z.current&&(z.current.focus({preventScroll:!0}),z.current=null,B.current=!1)}},[L.current]),r.createElement(`section`,{ref:t,"aria-label":`${S} ${R}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0},ne.map((t,n)=>{let[i,o]=t.split(`-`);return D.length?r.createElement(`ol`,{key:t,dir:y===`auto`?k():y,tabIndex:-1,ref:L,className:u,"data-sonner-toaster":!0,"data-sonner-theme":ie,"data-y-position":i,"data-x-position":o,style:{"--front-toast-height":`${j[0]?.height||0}px`,"--width":`${C}px`,"--gap":`${b}px`,...g,...A(d,f)},onBlur:e=>{B.current&&!e.currentTarget.contains(e.relatedTarget)&&(B.current=!1,z.current&&=(z.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||B.current||(B.current=!0,z.current=e.relatedTarget)},onMouseEnter:()=>N(!0),onMouseMove:()=>N(!0),onMouseLeave:()=>{P||N(!1)},onDragEnd:()=>N(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||F(!0)},onPointerUp:()=>F(!1)},D.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>r.createElement(O,{key:n.id,icons:x,index:i,toast:n,defaultRichColors:ee,duration:v?.duration??m,className:v?.className,descriptionClassName:v?.descriptionClassName,invert:a,visibleToasts:_,closeButton:v?.closeButton??l,interacting:P,position:t,style:v?.style,unstyled:v?.unstyled,classNames:v?.classNames,cancelButtonStyle:v?.cancelButtonStyle,actionButtonStyle:v?.actionButtonStyle,closeButtonAriaLabel:v?.closeButtonAriaLabel,removeToast:V,toasts:D.filter(e=>e.position==n.position),heights:j.filter(e=>e.position==n.position),setHeights:M,expandByDefault:c,gap:b,expanded:re,swipeDirections:e.swipeDirections}))):null}))});export{v as n,j as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{r as n}from"./dist-Cc8_LDAq.js";var r=e(t(),1),i=e(n(),1);function a(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var o=e=>{switch(e){case`success`:return l;case`info`:return d;case`warning`:return u;case`error`:return f;default:return null}},s=Array(12).fill(0),c=({visible:e,className:t})=>r.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},r.createElement(`div`,{className:`sonner-spinner`},s.map((e,t)=>r.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),l=r.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},r.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),u=r.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`},r.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),d=r.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},r.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),f=r.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},r.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),p=r.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`},r.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),r.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),ee=()=>{let[e,t]=r.useState(document.hidden);return r.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>window.removeEventListener(`visibilitychange`,e)},[]),e},m=1,h=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{let{message:t,...n}=e,r=typeof e?.id==`number`||e.id?.length>0?e.id:m++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let i=Promise.resolve(e instanceof Function?e():e),a=n!==void 0,o,s=i.then(async e=>{if(o=[`resolve`,e],r.isValidElement(e))a=!1,this.create({id:n,type:`default`,message:e});else if(_(e)&&!e.ok){a=!1;let i=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,o=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,s=typeof i==`object`&&!r.isValidElement(i)?i:{message:i};this.create({id:n,type:`error`,description:o,...s})}else if(e instanceof Error){a=!1;let i=typeof t.error==`function`?await t.error(e):t.error,o=typeof t.description==`function`?await t.description(e):t.description,s=typeof i==`object`&&!r.isValidElement(i)?i:{message:i};this.create({id:n,type:`error`,description:o,...s})}else if(t.success!==void 0){a=!1;let i=typeof t.success==`function`?await t.success(e):t.success,o=typeof t.description==`function`?await t.description(e):t.description,s=typeof i==`object`&&!r.isValidElement(i)?i:{message:i};this.create({id:n,type:`success`,description:o,...s})}}).catch(async e=>{if(o=[`reject`,e],t.error!==void 0){a=!1;let i=typeof t.error==`function`?await t.error(e):t.error,o=typeof t.description==`function`?await t.description(e):t.description,s=typeof i==`object`&&!r.isValidElement(i)?i:{message:i};this.create({id:n,type:`error`,description:o,...s})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),c=()=>new Promise((e,t)=>s.then(()=>o[0]===`reject`?t(o[1]):e(o[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:c}:Object.assign(n,{unwrap:c})},this.custom=(e,t)=>{let n=t?.id||m++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},g=(e,t)=>{let n=t?.id||m++;return h.addToast({title:e,...t,id:n}),n},_=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,v=Object.assign(g,{success:h.success,info:h.info,warning:h.warning,error:h.error,custom:h.custom,message:h.message,promise:h.promise,dismiss:h.dismiss,loading:h.loading},{getHistory:()=>h.toasts,getToasts:()=>h.getActiveToasts()});a(`[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}`);function y(e){return e.label!==void 0}var te=3,b=`24px`,x=`16px`,S=4e3,C=356,w=14,T=45,E=200;function D(...e){return e.filter(Boolean).join(` `)}function ne(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var O=e=>{let{invert:t,toast:n,unstyled:i,interacting:a,setHeights:s,visibleToasts:l,heights:u,index:d,toasts:f,expanded:m,removeToast:h,defaultRichColors:g,closeButton:_,style:v,cancelButtonStyle:te,actionButtonStyle:b,className:x=``,descriptionClassName:C=``,duration:w,position:O,gap:k,expandByDefault:A,classNames:j,icons:M,closeButtonAriaLabel:re=`Close toast`}=e,[N,P]=r.useState(null),[F,ie]=r.useState(null),[I,L]=r.useState(!1),[R,z]=r.useState(!1),[B,V]=r.useState(!1),[ae,oe]=r.useState(!1),[se,ce]=r.useState(!1),[le,H]=r.useState(0),[ue,U]=r.useState(0),W=r.useRef(n.duration||w||S),de=r.useRef(null),G=r.useRef(null),fe=d===0,pe=d+1<=l,K=n.type,q=n.dismissible!==!1,me=n.className||``,he=n.descriptionClassName||``,J=r.useMemo(()=>u.findIndex(e=>e.toastId===n.id)||0,[u,n.id]),ge=r.useMemo(()=>n.closeButton??_,[n.closeButton,_]),_e=r.useMemo(()=>n.duration||w||S,[n.duration,w]),Y=r.useRef(0),X=r.useRef(0),ve=r.useRef(0),Z=r.useRef(null),[ye,be]=O.split(`-`),xe=r.useMemo(()=>u.reduce((e,t,n)=>n>=J?e:e+t.height,0),[u,J]),Se=ee(),Ce=n.invert||t,Q=K===`loading`;X.current=r.useMemo(()=>J*k+xe,[J,xe]),r.useEffect(()=>{W.current=_e},[_e]),r.useEffect(()=>{L(!0)},[]),r.useEffect(()=>{let e=G.current;if(e){let t=e.getBoundingClientRect().height;return U(t),s(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>s(e=>e.filter(e=>e.toastId!==n.id))}},[s,n.id]),r.useLayoutEffect(()=>{if(!I)return;let e=G.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,U(r),s(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[I,n.title,n.description,s,n.id,n.jsx,n.action,n.cancel]);let $=r.useCallback(()=>{z(!0),H(X.current),s(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{h(n)},E)},[n,h,s,X]);r.useEffect(()=>{if(n.promise&&K===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return m||a||Se?(()=>{if(ve.current{n.onAutoClose==null||n.onAutoClose.call(n,n),$()},W.current)),()=>clearTimeout(e)},[m,a,n,K,Se,$]),r.useEffect(()=>{n.delete&&($(),n.onDismiss==null||n.onDismiss.call(n,n))},[$,n.delete]);function we(){return M?.loading?r.createElement(`div`,{className:D(j?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":K===`loading`},M.loading):r.createElement(c,{className:D(j?.loader,n?.classNames?.loader),visible:K===`loading`})}let Te=n.icon||M?.[K]||o(K);return r.createElement(`li`,{tabIndex:0,ref:G,className:D(x,me,j?.toast,n?.classNames?.toast,j?.default,j?.[K],n?.classNames?.[K]),"data-sonner-toast":``,"data-rich-colors":n.richColors??g,"data-styled":!(n.jsx||n.unstyled||i),"data-mounted":I,"data-promise":!!n.promise,"data-swiped":se,"data-removed":R,"data-visible":pe,"data-y-position":ye,"data-x-position":be,"data-index":d,"data-front":fe,"data-swiping":B,"data-dismissible":q,"data-type":K,"data-invert":Ce,"data-swipe-out":ae,"data-swipe-direction":F,"data-expanded":!!(m||A&&I),"data-testid":n.testId,style:{"--index":d,"--toasts-before":d,"--z-index":f.length-d,"--offset":`${R?le:X.current}px`,"--initial-height":A?`auto`:`${ue}px`,...v,...n.style},onDragEnd:()=>{V(!1),P(null),Z.current=null},onPointerDown:e=>{e.button!==2&&(Q||!q||(de.current=new Date,H(X.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(V(!0),Z.current={x:e.clientX,y:e.clientY})))},onPointerUp:()=>{if(ae||!q)return;Z.current=null;let e=Number(G.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(G.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-de.current?.getTime(),i=N===`x`?e:t,a=Math.abs(i)/r;if(Math.abs(i)>=T||a>.11){H(X.current),n.onDismiss==null||n.onDismiss.call(n,n),ie(N===`x`?e>0?`right`:`left`:t>0?`down`:`up`),$(),oe(!0);return}else{var o,s;(o=G.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=G.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`)}ce(!1),V(!1),P(null)},onPointerMove:t=>{var n,r;if(!Z.current||!q||window.getSelection()?.toString().length>0)return;let i=t.clientY-Z.current.y,a=t.clientX-Z.current.x,o=e.swipeDirections??ne(O);!N&&(Math.abs(a)>1||Math.abs(i)>1)&&P(Math.abs(a)>Math.abs(i)?`x`:`y`);let s={x:0,y:0},c=e=>1/(1.5+Math.abs(e)/20);if(N===`y`){if(o.includes(`top`)||o.includes(`bottom`))if(o.includes(`top`)&&i<0||o.includes(`bottom`)&&i>0)s.y=i;else{let e=i*c(i);s.y=Math.abs(e)0)s.x=a;else{let e=a*c(a);s.x=Math.abs(e)0||Math.abs(s.y)>0)&&ce(!0),(n=G.current)==null||n.style.setProperty(`--swipe-amount-x`,`${s.x}px`),(r=G.current)==null||r.style.setProperty(`--swipe-amount-y`,`${s.y}px`)}},ge&&!n.jsx&&K!==`loading`?r.createElement(`button`,{"aria-label":re,"data-disabled":Q,"data-close-button":!0,onClick:Q||!q?()=>{}:()=>{$(),n.onDismiss==null||n.onDismiss.call(n,n)},className:D(j?.closeButton,n?.classNames?.closeButton)},M?.close??p):null,(K||n.icon||n.promise)&&n.icon!==null&&(M?.[K]!==null||n.icon)?r.createElement(`div`,{"data-icon":``,className:D(j?.icon,n?.classNames?.icon)},n.promise||n.type===`loading`&&!n.icon?n.icon||we():null,n.type===`loading`?null:Te):null,r.createElement(`div`,{"data-content":``,className:D(j?.content,n?.classNames?.content)},r.createElement(`div`,{"data-title":``,className:D(j?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?r.createElement(`div`,{"data-description":``,className:D(C,he,j?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),r.isValidElement(n.cancel)?n.cancel:n.cancel&&y(n.cancel)?r.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||te,onClick:e=>{y(n.cancel)&&q&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),$())},className:D(j?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,r.isValidElement(n.action)?n.action:n.action&&y(n.action)?r.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||b,onClick:e=>{y(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&$())},className:D(j?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function k(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function A(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?x:b;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var j=r.forwardRef(function(e,t){let{id:n,invert:a,position:o=`bottom-right`,hotkey:s=[`altKey`,`KeyT`],expand:c,closeButton:l,className:u,offset:d,mobileOffset:f,theme:p=`light`,richColors:ee,duration:m,style:g,visibleToasts:_=te,toastOptions:v,dir:y=k(),gap:b=w,icons:x,containerAriaLabel:S=`Notifications`}=e,[T,E]=r.useState([]),D=r.useMemo(()=>n?T.filter(e=>e.toasterId===n):T.filter(e=>!e.toasterId),[T,n]),ne=r.useMemo(()=>Array.from(new Set([o].concat(D.filter(e=>e.position).map(e=>e.position)))),[D,o]),[j,M]=r.useState([]),[re,N]=r.useState(!1),[P,F]=r.useState(!1),[ie,I]=r.useState(p===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:p),L=r.useRef(null),R=s.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),z=r.useRef(null),B=r.useRef(!1),V=r.useCallback(e=>{E(t=>(t.find(t=>t.id===e.id)?.delete||h.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return r.useEffect(()=>h.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{E(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});return}setTimeout(()=>{i.flushSync(()=>{E(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[T]),r.useEffect(()=>{if(p!==`system`){I(p);return}if(p===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?I(`dark`):I(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{I(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{I(e?`dark`:`light`)}catch(e){console.error(e)}})}},[p]),r.useEffect(()=>{T.length<=1&&N(!1)},[T]),r.useEffect(()=>{let e=e=>{if(s.every(t=>e[t]||e.code===t)){var t;N(!0),(t=L.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===L.current||L.current?.contains(document.activeElement))&&N(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[s]),r.useEffect(()=>{if(L.current)return()=>{z.current&&(z.current.focus({preventScroll:!0}),z.current=null,B.current=!1)}},[L.current]),r.createElement(`section`,{ref:t,"aria-label":`${S} ${R}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0},ne.map((t,n)=>{let[i,o]=t.split(`-`);return D.length?r.createElement(`ol`,{key:t,dir:y===`auto`?k():y,tabIndex:-1,ref:L,className:u,"data-sonner-toaster":!0,"data-sonner-theme":ie,"data-y-position":i,"data-x-position":o,style:{"--front-toast-height":`${j[0]?.height||0}px`,"--width":`${C}px`,"--gap":`${b}px`,...g,...A(d,f)},onBlur:e=>{B.current&&!e.currentTarget.contains(e.relatedTarget)&&(B.current=!1,z.current&&=(z.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||B.current||(B.current=!0,z.current=e.relatedTarget)},onMouseEnter:()=>N(!0),onMouseMove:()=>N(!0),onMouseLeave:()=>{P||N(!1)},onDragEnd:()=>N(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||F(!0)},onPointerUp:()=>F(!1)},D.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>r.createElement(O,{key:n.id,icons:x,index:i,toast:n,defaultRichColors:ee,duration:v?.duration??m,className:v?.className,descriptionClassName:v?.descriptionClassName,invert:a,visibleToasts:_,closeButton:v?.closeButton??l,interacting:P,position:t,style:v?.style,unstyled:v?.unstyled,classNames:v?.classNames,cancelButtonStyle:v?.cancelButtonStyle,actionButtonStyle:v?.actionButtonStyle,closeButtonAriaLabel:v?.closeButtonAriaLabel,removeToast:V,toasts:D.filter(e=>e.position==n.position),heights:j.filter(e=>e.position==n.position),setHeights:M,expandByDefault:c,gap:b,expanded:re,swipeDirections:e.swipeDirections}))):null}))});export{v as n,j as t}; \ No newline at end of file diff --git a/src/www/assets/dist-DGDEBCW9.js b/src/www/assets/dist-ZdRQQNeu.js similarity index 88% rename from src/www/assets/dist-DGDEBCW9.js rename to src/www/assets/dist-ZdRQQNeu.js index ba5b526..94e3c5b 100644 --- a/src/www/assets/dist-DGDEBCW9.js +++ b/src/www/assets/dist-ZdRQQNeu.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{n}from"./dist-CKFLmh1A.js";var r=e(t(),1);function i(e){let[t,i]=r.useState(void 0);return n(()=>{if(e){i({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let n=t[0],r,a;if(`borderBoxSize`in n){let e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,a=t.blockSize}else r=e.offsetWidth,a=e.offsetHeight;i({width:r,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else i(void 0)},[e]),t}export{i as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{n}from"./dist-DPPquN_M.js";var r=e(t(),1);function i(e){let[t,i]=r.useState(void 0);return n(()=>{if(e){i({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let n=t[0],r,a;if(`borderBoxSize`in n){let e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,a=t.blockSize}else r=e.offsetWidth,a=e.offsetHeight;i({width:r,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else i(void 0)},[e]),t}export{i as t}; \ No newline at end of file diff --git a/src/www/assets/dist-CPQ-sRtL.js b/src/www/assets/dist-iiotRAEO.js similarity index 92% rename from src/www/assets/dist-CPQ-sRtL.js rename to src/www/assets/dist-iiotRAEO.js index 3755ed2..cf70e3f 100644 --- a/src/www/assets/dist-CPQ-sRtL.js +++ b/src/www/assets/dist-iiotRAEO.js @@ -1,4 +1,4 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";import{t as r}from"./dist-BFnxq45V.js";import{s as i,u as a}from"./button-BgMnOYKD.js";import{a as o,i as s,r as c,t as l}from"./dist-CKFLmh1A.js";import{t as u}from"./dist-Clua1vrx.js";import{n as d}from"./dist-B0ikDpJU.js";import{n as f,t as p}from"./dist-_ND6L-P3.js";import{i as m,n as h,r as g,t as _}from"./es2015-D8VLlhse.js";var v=e(t(),1),y=n(),b=`Dialog`,[x,S]=o(b),[C,w]=x(b),T=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=v.useRef(null),c=v.useRef(null),[u,f]=l({prop:r,defaultProp:i??!1,onChange:a,caller:b});return(0,y.jsx)(C,{scope:t,triggerRef:s,contentRef:c,contentId:d(),titleId:d(),descriptionId:d(),open:u,onOpenChange:f,onOpenToggle:v.useCallback(()=>f(e=>!e),[f]),modal:o,children:n})};T.displayName=b;var E=`DialogTrigger`,D=v.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,o=w(E,n),s=a(t,o.triggerRef);return(0,y.jsx)(r.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":o.open,"aria-controls":o.contentId,"data-state":q(o.open),...i,ref:s,onClick:c(e.onClick,o.onOpenToggle)})});D.displayName=E;var O=`DialogPortal`,[k,A]=x(O,{forceMount:void 0}),j=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=w(O,t);return(0,y.jsx)(k,{scope:t,forceMount:n,children:v.Children.map(r,e=>(0,y.jsx)(u,{present:n||a.open,children:(0,y.jsx)(p,{asChild:!0,container:i,children:e})}))})};j.displayName=O;var M=`DialogOverlay`,N=v.forwardRef((e,t)=>{let n=A(M,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=w(M,e.__scopeDialog);return a.modal?(0,y.jsx)(u,{present:r||a.open,children:(0,y.jsx)(F,{...i,ref:t})}):null});N.displayName=M;var P=i(`DialogOverlay.RemoveScroll`),F=v.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,a=w(M,n);return(0,y.jsx)(h,{as:P,allowPinchZoom:!0,shards:[a.contentRef],children:(0,y.jsx)(r.div,{"data-state":q(a.open),...i,ref:t,style:{pointerEvents:`auto`,...i.style}})})}),I=`DialogContent`,L=v.forwardRef((e,t)=>{let n=A(I,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=w(I,e.__scopeDialog);return(0,y.jsx)(u,{present:r||a.open,children:a.modal?(0,y.jsx)(R,{...i,ref:t}):(0,y.jsx)(z,{...i,ref:t})})});L.displayName=I;var R=v.forwardRef((e,t)=>{let n=w(I,e.__scopeDialog),r=v.useRef(null),i=a(t,n.contentRef,r);return v.useEffect(()=>{let e=r.current;if(e)return _(e)},[]),(0,y.jsx)(B,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:c(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:c(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:c(e.onFocusOutside,e=>e.preventDefault())})}),z=v.forwardRef((e,t)=>{let n=w(I,e.__scopeDialog),r=v.useRef(!1),i=v.useRef(!1);return(0,y.jsx)(B,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),B=v.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...s}=e,c=w(I,n),l=v.useRef(null),u=a(t,l);return g(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(m,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,y.jsx)(f,{role:`dialog`,id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":q(c.open),...s,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Z,{titleId:c.titleId}),(0,y.jsx)($,{contentRef:l,descriptionId:c.descriptionId})]})]})}),V=`DialogTitle`,H=v.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,a=w(V,n);return(0,y.jsx)(r.h2,{id:a.titleId,...i,ref:t})});H.displayName=V;var U=`DialogDescription`,W=v.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,a=w(U,n);return(0,y.jsx)(r.p,{id:a.descriptionId,...i,ref:t})});W.displayName=U;var G=`DialogClose`,K=v.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,a=w(G,n);return(0,y.jsx)(r.button,{type:`button`,...i,ref:t,onClick:c(e.onClick,()=>a.onOpenChange(!1))})});K.displayName=G;function q(e){return e?`open`:`closed`}var J=`DialogTitleWarning`,[Y,X]=s(J,{contentName:I,titleName:V,docsSlug:`dialog`}),Z=({titleId:e})=>{let t=X(J),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./dist-Cc8_LDAq.js";import{s as i,u as a}from"./button-C_NDYaz8.js";import{a as o,i as s,r as c,t as l}from"./dist-DPPquN_M.js";import{t as u}from"./dist-DvwKOQ8R.js";import{n as d}from"./dist-D4X8zGEB.js";import{n as f,t as p}from"./dist-rcWP-8Cu.js";import{i as m,n as h,r as g,t as _}from"./es2015-DT8UeWzs.js";var v=e(t(),1),y=n(),b=`Dialog`,[x,S]=o(b),[C,w]=x(b),T=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=v.useRef(null),c=v.useRef(null),[u,f]=l({prop:r,defaultProp:i??!1,onChange:a,caller:b});return(0,y.jsx)(C,{scope:t,triggerRef:s,contentRef:c,contentId:d(),titleId:d(),descriptionId:d(),open:u,onOpenChange:f,onOpenToggle:v.useCallback(()=>f(e=>!e),[f]),modal:o,children:n})};T.displayName=b;var E=`DialogTrigger`,D=v.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,o=w(E,n),s=a(t,o.triggerRef);return(0,y.jsx)(r.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":o.open,"aria-controls":o.contentId,"data-state":q(o.open),...i,ref:s,onClick:c(e.onClick,o.onOpenToggle)})});D.displayName=E;var O=`DialogPortal`,[k,A]=x(O,{forceMount:void 0}),j=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=w(O,t);return(0,y.jsx)(k,{scope:t,forceMount:n,children:v.Children.map(r,e=>(0,y.jsx)(u,{present:n||a.open,children:(0,y.jsx)(p,{asChild:!0,container:i,children:e})}))})};j.displayName=O;var M=`DialogOverlay`,N=v.forwardRef((e,t)=>{let n=A(M,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=w(M,e.__scopeDialog);return a.modal?(0,y.jsx)(u,{present:r||a.open,children:(0,y.jsx)(F,{...i,ref:t})}):null});N.displayName=M;var P=i(`DialogOverlay.RemoveScroll`),F=v.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,a=w(M,n);return(0,y.jsx)(h,{as:P,allowPinchZoom:!0,shards:[a.contentRef],children:(0,y.jsx)(r.div,{"data-state":q(a.open),...i,ref:t,style:{pointerEvents:`auto`,...i.style}})})}),I=`DialogContent`,L=v.forwardRef((e,t)=>{let n=A(I,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=w(I,e.__scopeDialog);return(0,y.jsx)(u,{present:r||a.open,children:a.modal?(0,y.jsx)(R,{...i,ref:t}):(0,y.jsx)(z,{...i,ref:t})})});L.displayName=I;var R=v.forwardRef((e,t)=>{let n=w(I,e.__scopeDialog),r=v.useRef(null),i=a(t,n.contentRef,r);return v.useEffect(()=>{let e=r.current;if(e)return _(e)},[]),(0,y.jsx)(B,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:c(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:c(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:c(e.onFocusOutside,e=>e.preventDefault())})}),z=v.forwardRef((e,t)=>{let n=w(I,e.__scopeDialog),r=v.useRef(!1),i=v.useRef(!1);return(0,y.jsx)(B,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),B=v.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...s}=e,c=w(I,n),l=v.useRef(null),u=a(t,l);return g(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(m,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,y.jsx)(f,{role:`dialog`,id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":q(c.open),...s,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Z,{titleId:c.titleId}),(0,y.jsx)($,{contentRef:l,descriptionId:c.descriptionId})]})]})}),V=`DialogTitle`,H=v.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,a=w(V,n);return(0,y.jsx)(r.h2,{id:a.titleId,...i,ref:t})});H.displayName=V;var U=`DialogDescription`,W=v.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,a=w(U,n);return(0,y.jsx)(r.p,{id:a.descriptionId,...i,ref:t})});W.displayName=U;var G=`DialogClose`,K=v.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,a=w(G,n);return(0,y.jsx)(r.button,{type:`button`,...i,ref:t,onClick:c(e.onClick,()=>a.onOpenChange(!1))})});K.displayName=G;function q(e){return e?`open`:`closed`}var J=`DialogTitleWarning`,[Y,X]=s(J,{contentName:I,titleName:V,docsSlug:`dialog`}),Z=({titleId:e})=>{let t=X(J),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. diff --git a/src/www/assets/dist-_ND6L-P3.js b/src/www/assets/dist-rcWP-8Cu.js similarity index 93% rename from src/www/assets/dist-_ND6L-P3.js rename to src/www/assets/dist-rcWP-8Cu.js index 3e8e4bf..934e871 100644 --- a/src/www/assets/dist-_ND6L-P3.js +++ b/src/www/assets/dist-rcWP-8Cu.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";import{n as r,r as i,t as a}from"./dist-BFnxq45V.js";import{u as o}from"./button-BgMnOYKD.js";import{n as s,r as c}from"./dist-CKFLmh1A.js";import{t as l}from"./dist-B0ikDpJU.js";var u=e(t(),1);function d(e,t=globalThis?.document){let n=l(e);u.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var f=n(),p=`DismissableLayer`,m=`dismissableLayer.update`,h=`dismissableLayer.pointerDownOutside`,g=`dismissableLayer.focusOutside`,_,v=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),y=u.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:p,...h}=e,g=u.useContext(v),[y,b]=u.useState(null),x=y?.ownerDocument??globalThis?.document,[,T]=u.useState({}),E=o(t,e=>b(e)),D=Array.from(g.layers),[O]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),k=D.indexOf(O),A=y?D.indexOf(y):-1,j=g.layersWithOutsidePointerEventsDisabled.size>0,M=A>=k,N=S(e=>{let t=e.target,n=[...g.branches].some(e=>e.contains(t));!M||n||(i?.(e),l?.(e),e.defaultPrevented||p?.())},x),P=C(e=>{let t=e.target;[...g.branches].some(e=>e.contains(t))||(s?.(e),l?.(e),e.defaultPrevented||p?.())},x);return d(e=>{A===g.layers.size-1&&(r?.(e),!e.defaultPrevented&&p&&(e.preventDefault(),p()))},x),u.useEffect(()=>{if(y)return n&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(_=x.body.style.pointerEvents,x.body.style.pointerEvents=`none`),g.layersWithOutsidePointerEventsDisabled.add(y)),g.layers.add(y),w(),()=>{n&&g.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=_)}},[y,x,n,g]),u.useEffect(()=>()=>{y&&(g.layers.delete(y),g.layersWithOutsidePointerEventsDisabled.delete(y),w())},[y,g]),u.useEffect(()=>{let e=()=>T({});return document.addEventListener(m,e),()=>document.removeEventListener(m,e)},[]),(0,f.jsx)(a.div,{...h,ref:E,style:{pointerEvents:j?M?`auto`:`none`:void 0,...e.style},onFocusCapture:c(e.onFocusCapture,P.onFocusCapture),onBlurCapture:c(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:c(e.onPointerDownCapture,N.onPointerDownCapture)})});y.displayName=p;var b=`DismissableLayerBranch`,x=u.forwardRef((e,t)=>{let n=u.useContext(v),r=u.useRef(null),i=o(t,r);return u.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,f.jsx)(a.div,{...e,ref:i})});x.displayName=b;function S(e,t=globalThis?.document){let n=l(e),r=u.useRef(!1),i=u.useRef(()=>{});return u.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){T(h,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function C(e,t=globalThis?.document){let n=l(e),r=u.useRef(!1);return u.useEffect(()=>{let e=e=>{e.target&&!r.current&&T(g,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function w(){let e=new CustomEvent(m);document.dispatchEvent(e)}function T(e,t,n,{discrete:i}){let a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),i?r(a,o):a.dispatchEvent(o)}var E=e(i(),1),D=`Portal`,O=u.forwardRef((e,t)=>{let{container:n,...r}=e,[i,o]=u.useState(!1);s(()=>o(!0),[]);let c=n||i&&globalThis?.document?.body;return c?E.createPortal((0,f.jsx)(a.div,{...r,ref:t}),c):null});O.displayName=D;export{y as n,O as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{n as r,r as i,t as a}from"./dist-Cc8_LDAq.js";import{u as o}from"./button-C_NDYaz8.js";import{n as s,r as c}from"./dist-DPPquN_M.js";import{t as l}from"./dist-D4X8zGEB.js";var u=e(t(),1);function d(e,t=globalThis?.document){let n=l(e);u.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var f=n(),p=`DismissableLayer`,m=`dismissableLayer.update`,h=`dismissableLayer.pointerDownOutside`,g=`dismissableLayer.focusOutside`,_,v=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),y=u.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:p,...h}=e,g=u.useContext(v),[y,b]=u.useState(null),x=y?.ownerDocument??globalThis?.document,[,T]=u.useState({}),E=o(t,e=>b(e)),D=Array.from(g.layers),[O]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),k=D.indexOf(O),A=y?D.indexOf(y):-1,j=g.layersWithOutsidePointerEventsDisabled.size>0,M=A>=k,N=S(e=>{let t=e.target,n=[...g.branches].some(e=>e.contains(t));!M||n||(i?.(e),l?.(e),e.defaultPrevented||p?.())},x),P=C(e=>{let t=e.target;[...g.branches].some(e=>e.contains(t))||(s?.(e),l?.(e),e.defaultPrevented||p?.())},x);return d(e=>{A===g.layers.size-1&&(r?.(e),!e.defaultPrevented&&p&&(e.preventDefault(),p()))},x),u.useEffect(()=>{if(y)return n&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(_=x.body.style.pointerEvents,x.body.style.pointerEvents=`none`),g.layersWithOutsidePointerEventsDisabled.add(y)),g.layers.add(y),w(),()=>{n&&g.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=_)}},[y,x,n,g]),u.useEffect(()=>()=>{y&&(g.layers.delete(y),g.layersWithOutsidePointerEventsDisabled.delete(y),w())},[y,g]),u.useEffect(()=>{let e=()=>T({});return document.addEventListener(m,e),()=>document.removeEventListener(m,e)},[]),(0,f.jsx)(a.div,{...h,ref:E,style:{pointerEvents:j?M?`auto`:`none`:void 0,...e.style},onFocusCapture:c(e.onFocusCapture,P.onFocusCapture),onBlurCapture:c(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:c(e.onPointerDownCapture,N.onPointerDownCapture)})});y.displayName=p;var b=`DismissableLayerBranch`,x=u.forwardRef((e,t)=>{let n=u.useContext(v),r=u.useRef(null),i=o(t,r);return u.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,f.jsx)(a.div,{...e,ref:i})});x.displayName=b;function S(e,t=globalThis?.document){let n=l(e),r=u.useRef(!1),i=u.useRef(()=>{});return u.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){T(h,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function C(e,t=globalThis?.document){let n=l(e),r=u.useRef(!1);return u.useEffect(()=>{let e=e=>{e.target&&!r.current&&T(g,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function w(){let e=new CustomEvent(m);document.dispatchEvent(e)}function T(e,t,n,{discrete:i}){let a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),i?r(a,o):a.dispatchEvent(o)}var E=e(i(),1),D=`Portal`,O=u.forwardRef((e,t)=>{let{container:n,...r}=e,[i,o]=u.useState(!1);s(()=>o(!0),[]);let c=n||i&&globalThis?.document?.body;return c?E.createPortal((0,f.jsx)(a.div,{...r,ref:t}),c):null});O.displayName=D;export{y as n,O as t}; \ No newline at end of file diff --git a/src/www/assets/dropdown-menu-8-hEBtzr.js b/src/www/assets/dropdown-menu-DzCIpsuG.js similarity index 96% rename from src/www/assets/dropdown-menu-8-hEBtzr.js rename to src/www/assets/dropdown-menu-DzCIpsuG.js index c0bf1a8..b7e0be4 100644 --- a/src/www/assets/dropdown-menu-8-hEBtzr.js +++ b/src/www/assets/dropdown-menu-DzCIpsuG.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";import{n as r,t as i}from"./dist-BFnxq45V.js";import{i as a,l as o,s,u as c}from"./button-BgMnOYKD.js";import{a as l,r as u,t as d}from"./dist-CKFLmh1A.js";import{t as f}from"./dist-C6i4A_Js.js";import{t as p}from"./dist-Clua1vrx.js";import{n as m,t as h}from"./dist-B0ikDpJU.js";import{n as g}from"./dist-C97YBjnT.js";import{n as ee,t as _}from"./dist-_ND6L-P3.js";import{i as te,n as ne,r as re,t as v}from"./es2015-D8VLlhse.js";import{a as y,i as b,n as ie,r as ae,t as x}from"./dist-BSXD7MjW.js";import{n as oe,r as S,t as C}from"./dist-D7AUoOWu.js";import{t as w}from"./check-CHp0nSkR.js";var T=e(t(),1),E=n(),D=[`Enter`,` `],O=[`ArrowDown`,`PageUp`,`Home`],se=[`ArrowUp`,`PageDown`,`End`],ce=[...O,...se],k={ltr:[...D,`ArrowRight`],rtl:[...D,`ArrowLeft`]},le={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},A=`Menu`,[j,ue,M]=f(A),[N,P]=l(A,[M,y,S]),F=y(),de=S(),[I,L]=N(A),[R,z]=N(A),fe=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=F(t),[c,l]=T.useState(null),u=T.useRef(!1),d=h(a),f=g(i);return T.useEffect(()=>{let e=()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>u.current=!1;return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),(0,E.jsx)(b,{...s,children:(0,E.jsx)(I,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,E.jsx)(R,{scope:t,onClose:T.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})};fe.displayName=A;var pe=`MenuAnchor`,B=T.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=F(n);return(0,E.jsx)(x,{...i,...r,ref:t})});B.displayName=pe;var V=`MenuPortal`,[me,he]=N(V,{forceMount:void 0}),ge=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=L(V,t);return(0,E.jsx)(me,{scope:t,forceMount:n,children:(0,E.jsx)(p,{present:n||a.open,children:(0,E.jsx)(_,{asChild:!0,container:i,children:r})})})};ge.displayName=V;var H=`MenuContent`,[_e,U]=N(H),ve=T.forwardRef((e,t)=>{let n=he(H,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=L(H,e.__scopeMenu),o=z(H,e.__scopeMenu);return(0,E.jsx)(j.Provider,{scope:e.__scopeMenu,children:(0,E.jsx)(p,{present:r||a.open,children:(0,E.jsx)(j.Slot,{scope:e.__scopeMenu,children:o.modal?(0,E.jsx)(ye,{...i,ref:t}):(0,E.jsx)(be,{...i,ref:t})})})})}),ye=T.forwardRef((e,t)=>{let n=L(H,e.__scopeMenu),r=T.useRef(null),i=c(t,r);return T.useEffect(()=>{let e=r.current;if(e)return v(e)},[]),(0,E.jsx)(W,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:u(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),be=T.forwardRef((e,t)=>{let n=L(H,e.__scopeMenu);return(0,E.jsx)(W,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),xe=s(`MenuContent.ScrollLock`),W=T.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:h,disableOutsideScroll:g,..._}=e,v=L(H,n),y=z(H,n),b=F(n),ie=de(n),x=ue(n),[S,C]=T.useState(null),w=T.useRef(null),D=c(t,w,v.onContentChange),O=T.useRef(0),k=T.useRef(``),le=T.useRef(0),A=T.useRef(null),j=T.useRef(`right`),M=T.useRef(0),N=g?ne:T.Fragment,P=g?{as:xe,allowPinchZoom:!0}:void 0,I=e=>{let t=k.current+e,n=x().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=$e(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;(function e(t){k.current=t,window.clearTimeout(O.current),t!==``&&(O.current=window.setTimeout(()=>e(``),1e3))})(t),o&&setTimeout(()=>o.focus())};T.useEffect(()=>()=>window.clearTimeout(O.current),[]),re();let R=T.useCallback(e=>j.current===A.current?.side&&tt(e,A.current?.area),[]);return(0,E.jsx)(_e,{scope:n,searchRef:k,onItemEnter:T.useCallback(e=>{R(e)&&e.preventDefault()},[R]),onItemLeave:T.useCallback(e=>{R(e)||(w.current?.focus(),C(null))},[R]),onTriggerLeave:T.useCallback(e=>{R(e)&&e.preventDefault()},[R]),pointerGraceTimerRef:le,onPointerGraceIntentChange:T.useCallback(e=>{A.current=e},[]),children:(0,E.jsx)(N,{...P,children:(0,E.jsx)(te,{asChild:!0,trapped:i,onMountAutoFocus:u(a,e=>{e.preventDefault(),w.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,E.jsx)(ee,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:h,children:(0,E.jsx)(oe,{asChild:!0,...ie,dir:y.dir,orientation:`vertical`,loop:r,currentTabStopId:S,onCurrentTabStopIdChange:C,onEntryFocus:u(l,e=>{y.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,E.jsx)(ae,{role:`menu`,"aria-orientation":`vertical`,"data-state":Ye(v.open),"data-radix-menu-content":``,dir:y.dir,...b,..._,ref:D,style:{outline:`none`,..._.style},onKeyDown:u(_.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&I(e.key));let i=w.current;if(e.target!==i||!ce.includes(e.key))return;e.preventDefault();let a=x().filter(e=>!e.disabled).map(e=>e.ref.current);se.includes(e.key)&&a.reverse(),Ze(a)}),onBlur:u(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(O.current),k.current=``)}),onPointerMove:u(e.onPointerMove,Z(e=>{let t=e.target,n=M.current!==e.clientX;e.currentTarget.contains(t)&&n&&(j.current=e.clientX>M.current?`right`:`left`,M.current=e.clientX)}))})})})})})})});ve.displayName=H;var Se=`MenuGroup`,G=T.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,E.jsx)(i.div,{role:`group`,...r,ref:t})});G.displayName=Se;var Ce=`MenuLabel`,we=T.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,E.jsx)(i.div,{...r,ref:t})});we.displayName=Ce;var K=`MenuItem`,Te=`menu.itemSelect`,q=T.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:i,...a}=e,o=T.useRef(null),s=z(K,e.__scopeMenu),l=U(K,e.__scopeMenu),d=c(t,o),f=T.useRef(!1),p=()=>{let e=o.current;if(!n&&e){let t=new CustomEvent(Te,{bubbles:!0,cancelable:!0});e.addEventListener(Te,e=>i?.(e),{once:!0}),r(e,t),t.defaultPrevented?f.current=!1:s.onClose()}};return(0,E.jsx)(Ee,{...a,ref:d,disabled:n,onClick:u(e.onClick,p),onPointerDown:t=>{e.onPointerDown?.(t),f.current=!0},onPointerUp:u(e.onPointerUp,e=>{f.current||e.currentTarget?.click()}),onKeyDown:u(e.onKeyDown,e=>{let t=l.searchRef.current!==``;n||t&&e.key===` `||D.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});q.displayName=K;var Ee=T.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:a,...o}=e,s=U(K,n),l=de(n),d=T.useRef(null),f=c(t,d),[p,m]=T.useState(!1),[h,g]=T.useState(``);return T.useEffect(()=>{let e=d.current;e&&g((e.textContent??``).trim())},[o.children]),(0,E.jsx)(j.ItemSlot,{scope:n,disabled:r,textValue:a??h,children:(0,E.jsx)(C,{asChild:!0,...l,focusable:!r,children:(0,E.jsx)(i.div,{role:`menuitem`,"data-highlighted":p?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...o,ref:f,onPointerMove:u(e.onPointerMove,Z(e=>{r?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:u(e.onPointerLeave,Z(e=>s.onItemLeave(e))),onFocus:u(e.onFocus,()=>m(!0)),onBlur:u(e.onBlur,()=>m(!1))})})})}),De=`MenuCheckboxItem`,Oe=T.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,E.jsx)(Fe,{scope:e.__scopeMenu,checked:n,children:(0,E.jsx)(q,{role:`menuitemcheckbox`,"aria-checked":X(n)?`mixed`:n,...i,ref:t,"data-state":Xe(n),onSelect:u(i.onSelect,()=>r?.(X(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Oe.displayName=De;var ke=`MenuRadioGroup`,[Ae,je]=N(ke,{value:void 0,onValueChange:()=>{}}),Me=T.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=h(r);return(0,E.jsx)(Ae,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,E.jsx)(G,{...i,ref:t})})});Me.displayName=ke;var Ne=`MenuRadioItem`,Pe=T.forwardRef((e,t)=>{let{value:n,...r}=e,i=je(Ne,e.__scopeMenu),a=n===i.value;return(0,E.jsx)(Fe,{scope:e.__scopeMenu,checked:a,children:(0,E.jsx)(q,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":Xe(a),onSelect:u(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Pe.displayName=Ne;var J=`MenuItemIndicator`,[Fe,Ie]=N(J,{checked:!1}),Le=T.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...a}=e,o=Ie(J,n);return(0,E.jsx)(p,{present:r||X(o.checked)||o.checked===!0,children:(0,E.jsx)(i.span,{...a,ref:t,"data-state":Xe(o.checked)})})});Le.displayName=J;var Re=`MenuSeparator`,ze=T.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,E.jsx)(i.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});ze.displayName=Re;var Be=`MenuArrow`,Ve=T.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=F(n);return(0,E.jsx)(ie,{...i,...r,ref:t})});Ve.displayName=Be;var He=`MenuSub`,[Ue,We]=N(He),Ge=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=L(He,t),o=F(t),[s,c]=T.useState(null),[l,u]=T.useState(null),d=h(i);return T.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),(0,E.jsx)(b,{...o,children:(0,E.jsx)(I,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u,children:(0,E.jsx)(Ue,{scope:t,contentId:m(),triggerId:m(),trigger:s,onTriggerChange:c,children:n})})})};Ge.displayName=He;var Y=`MenuSubTrigger`,Ke=T.forwardRef((e,t)=>{let n=L(Y,e.__scopeMenu),r=z(Y,e.__scopeMenu),i=We(Y,e.__scopeMenu),a=U(Y,e.__scopeMenu),s=T.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:l}=a,d={__scopeMenu:e.__scopeMenu},f=T.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return T.useEffect(()=>f,[f]),T.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),l(null)}},[c,l]),(0,E.jsx)(B,{asChild:!0,...d,children:(0,E.jsx)(Ee,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":i.contentId,"data-state":Ye(n.open),...e,ref:o(t,i.onTriggerChange),onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:u(e.onPointerMove,Z(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:u(e.onPointerLeave,Z(e=>{f();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,s=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:s,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:s,y:t.bottom}],side:r}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:u(e.onKeyDown,t=>{let i=a.searchRef.current!==``;e.disabled||i&&t.key===` `||k[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});Ke.displayName=Y;var qe=`MenuSubContent`,Je=T.forwardRef((e,t)=>{let n=he(H,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=L(H,e.__scopeMenu),o=z(H,e.__scopeMenu),s=We(qe,e.__scopeMenu),l=T.useRef(null),d=c(t,l);return(0,E.jsx)(j.Provider,{scope:e.__scopeMenu,children:(0,E.jsx)(p,{present:r||a.open,children:(0,E.jsx)(j.Slot,{scope:e.__scopeMenu,children:(0,E.jsx)(W,{id:s.contentId,"aria-labelledby":s.triggerId,...i,ref:d,align:`start`,side:o.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{o.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:u(e.onFocusOutside,e=>{e.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:u(e.onEscapeKeyDown,e=>{o.onClose(),e.preventDefault()}),onKeyDown:u(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=le[o.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())})})})})})});Je.displayName=qe;function Ye(e){return e?`open`:`closed`}function X(e){return e===`indeterminate`}function Xe(e){return X(e)?`indeterminate`:e?`checked`:`unchecked`}function Ze(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Qe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function $e(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Qe(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function et(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function tt(e,t){return t?et({x:e.clientX,y:e.clientY},t):!1}function Z(e){return t=>t.pointerType===`mouse`?e(t):void 0}var nt=fe,rt=B,it=ge,at=ve,ot=G,st=we,ct=q,lt=Oe,ut=Me,dt=Pe,ft=Le,pt=ze,mt=Ve,ht=Ke,gt=Je,Q=`DropdownMenu`,[_t,vt]=l(Q,[P]),$=P(),[yt,bt]=_t(Q),xt=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=$(t),l=T.useRef(null),[u,f]=d({prop:i,defaultProp:a??!1,onChange:o,caller:Q});return(0,E.jsx)(yt,{scope:t,triggerId:m(),triggerRef:l,contentId:m(),open:u,onOpenChange:f,onOpenToggle:T.useCallback(()=>f(e=>!e),[f]),modal:s,children:(0,E.jsx)(nt,{...c,open:u,onOpenChange:f,dir:r,modal:s,children:n})})};xt.displayName=Q;var St=`DropdownMenuTrigger`,Ct=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...a}=e,s=bt(St,n),c=$(n);return(0,E.jsx)(rt,{asChild:!0,...c,children:(0,E.jsx)(i.button,{type:`button`,id:s.triggerId,"aria-haspopup":`menu`,"aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...a,ref:o(t,s.triggerRef),onPointerDown:u(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(s.onOpenToggle(),s.open||e.preventDefault())}),onKeyDown:u(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&s.onOpenToggle(),e.key===`ArrowDown`&&s.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});Ct.displayName=St;var wt=`DropdownMenuPortal`,Tt=e=>{let{__scopeDropdownMenu:t,...n}=e,r=$(t);return(0,E.jsx)(it,{...r,...n})};Tt.displayName=wt;var Et=`DropdownMenuContent`,Dt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=bt(Et,n),a=$(n),o=T.useRef(!1);return(0,E.jsx)(at,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:u(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:u(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Dt.displayName=Et;var Ot=`DropdownMenuGroup`,kt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(ot,{...i,...r,ref:t})});kt.displayName=Ot;var At=`DropdownMenuLabel`,jt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(st,{...i,...r,ref:t})});jt.displayName=At;var Mt=`DropdownMenuItem`,Nt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(ct,{...i,...r,ref:t})});Nt.displayName=Mt;var Pt=`DropdownMenuCheckboxItem`,Ft=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(lt,{...i,...r,ref:t})});Ft.displayName=Pt;var It=`DropdownMenuRadioGroup`,Lt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(ut,{...i,...r,ref:t})});Lt.displayName=It;var Rt=`DropdownMenuRadioItem`,zt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(dt,{...i,...r,ref:t})});zt.displayName=Rt;var Bt=`DropdownMenuItemIndicator`,Vt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(ft,{...i,...r,ref:t})});Vt.displayName=Bt;var Ht=`DropdownMenuSeparator`,Ut=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(pt,{...i,...r,ref:t})});Ut.displayName=Ht;var Wt=`DropdownMenuArrow`,Gt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(mt,{...i,...r,ref:t})});Gt.displayName=Wt;var Kt=`DropdownMenuSubTrigger`,qt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(ht,{...i,...r,ref:t})});qt.displayName=Kt;var Jt=`DropdownMenuSubContent`,Yt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(gt,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Yt.displayName=Jt;var Xt=xt,Zt=Ct,Qt=Tt,$t=Dt,en=kt,tn=jt,nn=Nt,rn=Ft,an=Vt,on=Ut;function sn({...e}){return(0,E.jsx)(Xt,{"data-slot":`dropdown-menu`,...e})}function cn({...e}){return(0,E.jsx)(Zt,{"data-slot":`dropdown-menu-trigger`,...e})}function ln({className:e,sideOffset:t=4,...n}){return(0,E.jsx)(Qt,{children:(0,E.jsx)($t,{className:a(`data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in`,e),"data-slot":`dropdown-menu-content`,sideOffset:t,...n})})}function un({...e}){return(0,E.jsx)(en,{"data-slot":`dropdown-menu-group`,...e})}function dn({className:e,inset:t,variant:n=`default`,...r}){return(0,E.jsx)(nn,{className:a(`relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[disabled]:opacity-50 data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 data-[variant=destructive]:*:[svg]:text-destructive!`,e),"data-inset":t,"data-slot":`dropdown-menu-item`,"data-variant":n,...r})}function fn({className:e,children:t,checked:n,...r}){return(0,E.jsxs)(rn,{checked:n,className:a(`relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,e),"data-slot":`dropdown-menu-checkbox-item`,...r,children:[(0,E.jsx)(`span`,{className:`pointer-events-none absolute left-2 flex size-3.5 items-center justify-center`,children:(0,E.jsx)(an,{children:(0,E.jsx)(w,{className:`size-4`})})}),t]})}function pn({className:e,inset:t,...n}){return(0,E.jsx)(tn,{className:a(`px-2 py-1.5 font-medium text-sm data-[inset]:pl-8`,e),"data-inset":t,"data-slot":`dropdown-menu-label`,...n})}function mn({className:e,...t}){return(0,E.jsx)(on,{className:a(`-mx-1 my-1 h-px bg-border`,e),"data-slot":`dropdown-menu-separator`,...t})}function hn({className:e,...t}){return(0,E.jsx)(`span`,{className:a(`ml-auto text-muted-foreground text-xs tracking-widest`,e),"data-slot":`dropdown-menu-shortcut`,...t})}export{dn as a,hn as c,un as i,cn as l,fn as n,pn as o,ln as r,mn as s,sn as t,Ct as u}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{n as r,t as i}from"./dist-Cc8_LDAq.js";import{i as a,l as o,s,u as c}from"./button-C_NDYaz8.js";import{a as l,r as u,t as d}from"./dist-DPPquN_M.js";import{t as f}from"./dist-CHFjpVqk.js";import{t as p}from"./dist-DvwKOQ8R.js";import{n as m,t as h}from"./dist-D4X8zGEB.js";import{n as g}from"./dist-BNFQuJTu.js";import{n as ee,t as _}from"./dist-rcWP-8Cu.js";import{i as te,n as ne,r as re,t as v}from"./es2015-DT8UeWzs.js";import{a as y,i as b,n as ie,r as ae,t as x}from"./dist-CsIb2aLK.js";import{n as oe,r as S,t as C}from"./dist-D0DoWChj.js";import{t as w}from"./check-CHp0nSkR.js";var T=e(t(),1),E=n(),D=[`Enter`,` `],O=[`ArrowDown`,`PageUp`,`Home`],se=[`ArrowUp`,`PageDown`,`End`],ce=[...O,...se],k={ltr:[...D,`ArrowRight`],rtl:[...D,`ArrowLeft`]},le={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},A=`Menu`,[j,ue,M]=f(A),[N,P]=l(A,[M,y,S]),F=y(),de=S(),[I,L]=N(A),[R,z]=N(A),fe=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=F(t),[c,l]=T.useState(null),u=T.useRef(!1),d=h(a),f=g(i);return T.useEffect(()=>{let e=()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>u.current=!1;return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),(0,E.jsx)(b,{...s,children:(0,E.jsx)(I,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,E.jsx)(R,{scope:t,onClose:T.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})};fe.displayName=A;var pe=`MenuAnchor`,B=T.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=F(n);return(0,E.jsx)(x,{...i,...r,ref:t})});B.displayName=pe;var V=`MenuPortal`,[me,he]=N(V,{forceMount:void 0}),ge=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=L(V,t);return(0,E.jsx)(me,{scope:t,forceMount:n,children:(0,E.jsx)(p,{present:n||a.open,children:(0,E.jsx)(_,{asChild:!0,container:i,children:r})})})};ge.displayName=V;var H=`MenuContent`,[_e,U]=N(H),ve=T.forwardRef((e,t)=>{let n=he(H,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=L(H,e.__scopeMenu),o=z(H,e.__scopeMenu);return(0,E.jsx)(j.Provider,{scope:e.__scopeMenu,children:(0,E.jsx)(p,{present:r||a.open,children:(0,E.jsx)(j.Slot,{scope:e.__scopeMenu,children:o.modal?(0,E.jsx)(ye,{...i,ref:t}):(0,E.jsx)(be,{...i,ref:t})})})})}),ye=T.forwardRef((e,t)=>{let n=L(H,e.__scopeMenu),r=T.useRef(null),i=c(t,r);return T.useEffect(()=>{let e=r.current;if(e)return v(e)},[]),(0,E.jsx)(W,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:u(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),be=T.forwardRef((e,t)=>{let n=L(H,e.__scopeMenu);return(0,E.jsx)(W,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),xe=s(`MenuContent.ScrollLock`),W=T.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:h,disableOutsideScroll:g,..._}=e,v=L(H,n),y=z(H,n),b=F(n),ie=de(n),x=ue(n),[S,C]=T.useState(null),w=T.useRef(null),D=c(t,w,v.onContentChange),O=T.useRef(0),k=T.useRef(``),le=T.useRef(0),A=T.useRef(null),j=T.useRef(`right`),M=T.useRef(0),N=g?ne:T.Fragment,P=g?{as:xe,allowPinchZoom:!0}:void 0,I=e=>{let t=k.current+e,n=x().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=$e(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;(function e(t){k.current=t,window.clearTimeout(O.current),t!==``&&(O.current=window.setTimeout(()=>e(``),1e3))})(t),o&&setTimeout(()=>o.focus())};T.useEffect(()=>()=>window.clearTimeout(O.current),[]),re();let R=T.useCallback(e=>j.current===A.current?.side&&tt(e,A.current?.area),[]);return(0,E.jsx)(_e,{scope:n,searchRef:k,onItemEnter:T.useCallback(e=>{R(e)&&e.preventDefault()},[R]),onItemLeave:T.useCallback(e=>{R(e)||(w.current?.focus(),C(null))},[R]),onTriggerLeave:T.useCallback(e=>{R(e)&&e.preventDefault()},[R]),pointerGraceTimerRef:le,onPointerGraceIntentChange:T.useCallback(e=>{A.current=e},[]),children:(0,E.jsx)(N,{...P,children:(0,E.jsx)(te,{asChild:!0,trapped:i,onMountAutoFocus:u(a,e=>{e.preventDefault(),w.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,E.jsx)(ee,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:h,children:(0,E.jsx)(oe,{asChild:!0,...ie,dir:y.dir,orientation:`vertical`,loop:r,currentTabStopId:S,onCurrentTabStopIdChange:C,onEntryFocus:u(l,e=>{y.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,E.jsx)(ae,{role:`menu`,"aria-orientation":`vertical`,"data-state":Ye(v.open),"data-radix-menu-content":``,dir:y.dir,...b,..._,ref:D,style:{outline:`none`,..._.style},onKeyDown:u(_.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&I(e.key));let i=w.current;if(e.target!==i||!ce.includes(e.key))return;e.preventDefault();let a=x().filter(e=>!e.disabled).map(e=>e.ref.current);se.includes(e.key)&&a.reverse(),Ze(a)}),onBlur:u(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(O.current),k.current=``)}),onPointerMove:u(e.onPointerMove,Z(e=>{let t=e.target,n=M.current!==e.clientX;e.currentTarget.contains(t)&&n&&(j.current=e.clientX>M.current?`right`:`left`,M.current=e.clientX)}))})})})})})})});ve.displayName=H;var Se=`MenuGroup`,G=T.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,E.jsx)(i.div,{role:`group`,...r,ref:t})});G.displayName=Se;var Ce=`MenuLabel`,we=T.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,E.jsx)(i.div,{...r,ref:t})});we.displayName=Ce;var K=`MenuItem`,Te=`menu.itemSelect`,q=T.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:i,...a}=e,o=T.useRef(null),s=z(K,e.__scopeMenu),l=U(K,e.__scopeMenu),d=c(t,o),f=T.useRef(!1),p=()=>{let e=o.current;if(!n&&e){let t=new CustomEvent(Te,{bubbles:!0,cancelable:!0});e.addEventListener(Te,e=>i?.(e),{once:!0}),r(e,t),t.defaultPrevented?f.current=!1:s.onClose()}};return(0,E.jsx)(Ee,{...a,ref:d,disabled:n,onClick:u(e.onClick,p),onPointerDown:t=>{e.onPointerDown?.(t),f.current=!0},onPointerUp:u(e.onPointerUp,e=>{f.current||e.currentTarget?.click()}),onKeyDown:u(e.onKeyDown,e=>{let t=l.searchRef.current!==``;n||t&&e.key===` `||D.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});q.displayName=K;var Ee=T.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:a,...o}=e,s=U(K,n),l=de(n),d=T.useRef(null),f=c(t,d),[p,m]=T.useState(!1),[h,g]=T.useState(``);return T.useEffect(()=>{let e=d.current;e&&g((e.textContent??``).trim())},[o.children]),(0,E.jsx)(j.ItemSlot,{scope:n,disabled:r,textValue:a??h,children:(0,E.jsx)(C,{asChild:!0,...l,focusable:!r,children:(0,E.jsx)(i.div,{role:`menuitem`,"data-highlighted":p?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...o,ref:f,onPointerMove:u(e.onPointerMove,Z(e=>{r?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:u(e.onPointerLeave,Z(e=>s.onItemLeave(e))),onFocus:u(e.onFocus,()=>m(!0)),onBlur:u(e.onBlur,()=>m(!1))})})})}),De=`MenuCheckboxItem`,Oe=T.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,E.jsx)(Fe,{scope:e.__scopeMenu,checked:n,children:(0,E.jsx)(q,{role:`menuitemcheckbox`,"aria-checked":X(n)?`mixed`:n,...i,ref:t,"data-state":Xe(n),onSelect:u(i.onSelect,()=>r?.(X(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Oe.displayName=De;var ke=`MenuRadioGroup`,[Ae,je]=N(ke,{value:void 0,onValueChange:()=>{}}),Me=T.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=h(r);return(0,E.jsx)(Ae,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,E.jsx)(G,{...i,ref:t})})});Me.displayName=ke;var Ne=`MenuRadioItem`,Pe=T.forwardRef((e,t)=>{let{value:n,...r}=e,i=je(Ne,e.__scopeMenu),a=n===i.value;return(0,E.jsx)(Fe,{scope:e.__scopeMenu,checked:a,children:(0,E.jsx)(q,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":Xe(a),onSelect:u(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Pe.displayName=Ne;var J=`MenuItemIndicator`,[Fe,Ie]=N(J,{checked:!1}),Le=T.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...a}=e,o=Ie(J,n);return(0,E.jsx)(p,{present:r||X(o.checked)||o.checked===!0,children:(0,E.jsx)(i.span,{...a,ref:t,"data-state":Xe(o.checked)})})});Le.displayName=J;var Re=`MenuSeparator`,ze=T.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,E.jsx)(i.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});ze.displayName=Re;var Be=`MenuArrow`,Ve=T.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=F(n);return(0,E.jsx)(ie,{...i,...r,ref:t})});Ve.displayName=Be;var He=`MenuSub`,[Ue,We]=N(He),Ge=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=L(He,t),o=F(t),[s,c]=T.useState(null),[l,u]=T.useState(null),d=h(i);return T.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),(0,E.jsx)(b,{...o,children:(0,E.jsx)(I,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u,children:(0,E.jsx)(Ue,{scope:t,contentId:m(),triggerId:m(),trigger:s,onTriggerChange:c,children:n})})})};Ge.displayName=He;var Y=`MenuSubTrigger`,Ke=T.forwardRef((e,t)=>{let n=L(Y,e.__scopeMenu),r=z(Y,e.__scopeMenu),i=We(Y,e.__scopeMenu),a=U(Y,e.__scopeMenu),s=T.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:l}=a,d={__scopeMenu:e.__scopeMenu},f=T.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return T.useEffect(()=>f,[f]),T.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),l(null)}},[c,l]),(0,E.jsx)(B,{asChild:!0,...d,children:(0,E.jsx)(Ee,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":i.contentId,"data-state":Ye(n.open),...e,ref:o(t,i.onTriggerChange),onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:u(e.onPointerMove,Z(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:u(e.onPointerLeave,Z(e=>{f();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,s=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:s,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:s,y:t.bottom}],side:r}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:u(e.onKeyDown,t=>{let i=a.searchRef.current!==``;e.disabled||i&&t.key===` `||k[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});Ke.displayName=Y;var qe=`MenuSubContent`,Je=T.forwardRef((e,t)=>{let n=he(H,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=L(H,e.__scopeMenu),o=z(H,e.__scopeMenu),s=We(qe,e.__scopeMenu),l=T.useRef(null),d=c(t,l);return(0,E.jsx)(j.Provider,{scope:e.__scopeMenu,children:(0,E.jsx)(p,{present:r||a.open,children:(0,E.jsx)(j.Slot,{scope:e.__scopeMenu,children:(0,E.jsx)(W,{id:s.contentId,"aria-labelledby":s.triggerId,...i,ref:d,align:`start`,side:o.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{o.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:u(e.onFocusOutside,e=>{e.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:u(e.onEscapeKeyDown,e=>{o.onClose(),e.preventDefault()}),onKeyDown:u(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=le[o.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())})})})})})});Je.displayName=qe;function Ye(e){return e?`open`:`closed`}function X(e){return e===`indeterminate`}function Xe(e){return X(e)?`indeterminate`:e?`checked`:`unchecked`}function Ze(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Qe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function $e(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Qe(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function et(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function tt(e,t){return t?et({x:e.clientX,y:e.clientY},t):!1}function Z(e){return t=>t.pointerType===`mouse`?e(t):void 0}var nt=fe,rt=B,it=ge,at=ve,ot=G,st=we,ct=q,lt=Oe,ut=Me,dt=Pe,ft=Le,pt=ze,mt=Ve,ht=Ke,gt=Je,Q=`DropdownMenu`,[_t,vt]=l(Q,[P]),$=P(),[yt,bt]=_t(Q),xt=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=$(t),l=T.useRef(null),[u,f]=d({prop:i,defaultProp:a??!1,onChange:o,caller:Q});return(0,E.jsx)(yt,{scope:t,triggerId:m(),triggerRef:l,contentId:m(),open:u,onOpenChange:f,onOpenToggle:T.useCallback(()=>f(e=>!e),[f]),modal:s,children:(0,E.jsx)(nt,{...c,open:u,onOpenChange:f,dir:r,modal:s,children:n})})};xt.displayName=Q;var St=`DropdownMenuTrigger`,Ct=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...a}=e,s=bt(St,n),c=$(n);return(0,E.jsx)(rt,{asChild:!0,...c,children:(0,E.jsx)(i.button,{type:`button`,id:s.triggerId,"aria-haspopup":`menu`,"aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...a,ref:o(t,s.triggerRef),onPointerDown:u(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(s.onOpenToggle(),s.open||e.preventDefault())}),onKeyDown:u(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&s.onOpenToggle(),e.key===`ArrowDown`&&s.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});Ct.displayName=St;var wt=`DropdownMenuPortal`,Tt=e=>{let{__scopeDropdownMenu:t,...n}=e,r=$(t);return(0,E.jsx)(it,{...r,...n})};Tt.displayName=wt;var Et=`DropdownMenuContent`,Dt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=bt(Et,n),a=$(n),o=T.useRef(!1);return(0,E.jsx)(at,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:u(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:u(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Dt.displayName=Et;var Ot=`DropdownMenuGroup`,kt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(ot,{...i,...r,ref:t})});kt.displayName=Ot;var At=`DropdownMenuLabel`,jt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(st,{...i,...r,ref:t})});jt.displayName=At;var Mt=`DropdownMenuItem`,Nt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(ct,{...i,...r,ref:t})});Nt.displayName=Mt;var Pt=`DropdownMenuCheckboxItem`,Ft=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(lt,{...i,...r,ref:t})});Ft.displayName=Pt;var It=`DropdownMenuRadioGroup`,Lt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(ut,{...i,...r,ref:t})});Lt.displayName=It;var Rt=`DropdownMenuRadioItem`,zt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(dt,{...i,...r,ref:t})});zt.displayName=Rt;var Bt=`DropdownMenuItemIndicator`,Vt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(ft,{...i,...r,ref:t})});Vt.displayName=Bt;var Ht=`DropdownMenuSeparator`,Ut=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(pt,{...i,...r,ref:t})});Ut.displayName=Ht;var Wt=`DropdownMenuArrow`,Gt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(mt,{...i,...r,ref:t})});Gt.displayName=Wt;var Kt=`DropdownMenuSubTrigger`,qt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(ht,{...i,...r,ref:t})});qt.displayName=Kt;var Jt=`DropdownMenuSubContent`,Yt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(gt,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Yt.displayName=Jt;var Xt=xt,Zt=Ct,Qt=Tt,$t=Dt,en=kt,tn=jt,nn=Nt,rn=Ft,an=Vt,on=Ut;function sn({...e}){return(0,E.jsx)(Xt,{"data-slot":`dropdown-menu`,...e})}function cn({...e}){return(0,E.jsx)(Zt,{"data-slot":`dropdown-menu-trigger`,...e})}function ln({className:e,sideOffset:t=4,...n}){return(0,E.jsx)(Qt,{children:(0,E.jsx)($t,{className:a(`data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in`,e),"data-slot":`dropdown-menu-content`,sideOffset:t,...n})})}function un({...e}){return(0,E.jsx)(en,{"data-slot":`dropdown-menu-group`,...e})}function dn({className:e,inset:t,variant:n=`default`,...r}){return(0,E.jsx)(nn,{className:a(`relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[disabled]:opacity-50 data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 data-[variant=destructive]:*:[svg]:text-destructive!`,e),"data-inset":t,"data-slot":`dropdown-menu-item`,"data-variant":n,...r})}function fn({className:e,children:t,checked:n,...r}){return(0,E.jsxs)(rn,{checked:n,className:a(`relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,e),"data-slot":`dropdown-menu-checkbox-item`,...r,children:[(0,E.jsx)(`span`,{className:`pointer-events-none absolute left-2 flex size-3.5 items-center justify-center`,children:(0,E.jsx)(an,{children:(0,E.jsx)(w,{className:`size-4`})})}),t]})}function pn({className:e,inset:t,...n}){return(0,E.jsx)(tn,{className:a(`px-2 py-1.5 font-medium text-sm data-[inset]:pl-8`,e),"data-inset":t,"data-slot":`dropdown-menu-label`,...n})}function mn({className:e,...t}){return(0,E.jsx)(on,{className:a(`-mx-1 my-1 h-px bg-border`,e),"data-slot":`dropdown-menu-separator`,...t})}function hn({className:e,...t}){return(0,E.jsx)(`span`,{className:a(`ml-auto text-muted-foreground text-xs tracking-widest`,e),"data-slot":`dropdown-menu-shortcut`,...t})}export{dn as a,hn as c,un as i,cn as l,fn as n,pn as o,ln as r,mn as s,sn as t,Ct as u}; \ No newline at end of file diff --git a/src/www/assets/editor.client-CppUpD8k.js b/src/www/assets/editor.client-CF-kC0wX.js similarity index 96% rename from src/www/assets/editor.client-CppUpD8k.js rename to src/www/assets/editor.client-CF-kC0wX.js index eb9bdc1..6a5af99 100644 --- a/src/www/assets/editor.client-CppUpD8k.js +++ b/src/www/assets/editor.client-CF-kC0wX.js @@ -1,5 +1,5 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/editor.api-Dv1ZVczm.js","assets/editor.api2-BM_YT0wu.js","assets/chunk-DECur_0Z.js","assets/editor-DV6jjE6F.css","assets/editor-DKgfVINf.css","assets/go.contribution-BmlX-a-9.js","assets/preload-helper-DoS0eHac.js","assets/_.contribution-CaUqztrQ.js","assets/toggleHighContrast-CYWWoXog.js","assets/toggleHighContrast-BBlRgZ6L.css","assets/handlebars-d5Fb_oR7.js","assets/html.contribution-Baf-XjFx.js","assets/monaco.contribution-BNCqMH44.js","assets/markdown.contribution-FtzundBn.js","assets/yaml.contribution-BN-iiJx2.js","assets/es-fZtL7B9U.js","assets/clsx-D9aGYY3V.js","assets/react-CO2uhaBc.js","assets/es-Ddhai3Z6.css"])))=>i.map(i=>d[i]); -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{An as n,Dn as r,En as i,Mn as a,Nn as o,On as s,Tn as c,em as l,jn as u,kn as d,wn as f}from"./messages-Bp0bCjzp.js";import{i as p,t as m}from"./button-BgMnOYKD.js";import{n as h,r as g,t as _}from"./tabs-x8EHz9HA.js";import{t as v}from"./preload-helper-DoS0eHac.js";import{t as y}from"./createLucideIcon-Br0Bd5k2.js";import{c as b,i as x,o as S,r as C,s as w,t as T}from"./dialog-BJ5VA2v_.js";var E=y(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),D=y(`file-plus-corner`,[[`path`,{d:`M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35`,key:`17jvcc`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M14 19h6`,key:`bvotb8`}],[`path`,{d:`M17 16v6`,key:`18yu1i`}]]),O=y(`maximize-2`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]),k=y(`minimize-2`,[[`path`,{d:`m14 10 7-7`,key:`oa77jy`}],[`path`,{d:`M20 10h-6V4`,key:`mjg0md`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M4 14h6v6`,key:`rmj7iw`}]]),A=e(t(),1),j={base:`vs`,inherit:!0,rules:[{token:``,foreground:`383a42`},{token:`attribute.name`,foreground:`986801`},{token:`attribute.name.html`,foreground:`986801`},{token:`attribute.value`,foreground:`50a14f`},{token:`attribute.value.html`,foreground:`50a14f`},{token:`comment`,foreground:`a0a1a7`,fontStyle:`italic`},{token:`comment.content`,foreground:`a0a1a7`,fontStyle:`italic`},{token:`comment.content.handlebars`,foreground:`a0a1a7`,fontStyle:`italic`},{token:`comment.content.html`,foreground:`a0a1a7`,fontStyle:`italic`},{token:`comment.html`,foreground:`a0a1a7`,fontStyle:`italic`},{token:`constant`,foreground:`986801`},{token:`delimiter`,foreground:`383a42`},{token:`delimiter.bracket`,foreground:`383a42`},{token:`delimiter.handlebars`,foreground:`0184bc`},{token:`delimiter.html`,foreground:`383a42`},{token:`delimiter.parenthesis`,foreground:`383a42`},{token:`delimiter.square`,foreground:`383a42`},{token:`identifier`,foreground:`383a42`},{token:`identifier.go`,foreground:`383a42`},{token:`keyword.flow.go`,foreground:`a626a4`},{token:`keyword.helper.handlebars`,foreground:`a626a4`},{token:`keyword.operator.go`,foreground:`0184bc`},{token:`keyword`,foreground:`a626a4`},{token:`metatag.content.html`,foreground:`383a42`},{token:`metatag.html`,foreground:`a626a4`},{token:`metatag`,foreground:`a626a4`},{token:`number.float.go`,foreground:`986801`},{token:`number.hex.go`,foreground:`986801`},{token:`number`,foreground:`986801`},{token:`operator`,foreground:`0184bc`},{token:`predefined`,foreground:`4078f2`},{token:`regexp`,foreground:`50a14f`},{token:`string.escape`,foreground:`0184bc`},{token:`string.escape.go`,foreground:`0184bc`},{token:`string.key.json`,foreground:`e45649`},{token:`string.value.json`,foreground:`50a14f`},{token:`string`,foreground:`50a14f`},{token:`tag.html`,foreground:`e45649`},{token:`tag`,foreground:`e45649`},{token:`type.identifier.go`,foreground:`c18401`},{token:`type`,foreground:`c18401`},{token:`variable.go`,foreground:`383a42`},{token:`variable.parameter.handlebars`,foreground:`4078f2`}],colors:{"editor.background":`#fafafa`,"editor.foreground":`#383a42`,"editor.lineHighlightBackground":`#f2f3f580`,"editor.selectionBackground":`#c8d3f566`,"editorCursor.foreground":`#526fff`,"editorGutter.background":`#fafafa`,"editorLineNumber.activeForeground":`#383a42`,"editorLineNumber.foreground":`#a0a1a7`}},M={base:`vs-dark`,inherit:!0,rules:[{token:``,foreground:`abb2bf`},{token:`attribute.name`,foreground:`d19a66`},{token:`attribute.name.html`,foreground:`d19a66`},{token:`attribute.value`,foreground:`98c379`},{token:`attribute.value.html`,foreground:`98c379`},{token:`comment`,foreground:`5c6370`,fontStyle:`italic`},{token:`comment.content`,foreground:`5c6370`,fontStyle:`italic`},{token:`comment.content.handlebars`,foreground:`5c6370`,fontStyle:`italic`},{token:`comment.content.html`,foreground:`5c6370`,fontStyle:`italic`},{token:`comment.html`,foreground:`5c6370`,fontStyle:`italic`},{token:`constant`,foreground:`d19a66`},{token:`delimiter`,foreground:`abb2bf`},{token:`delimiter.bracket`,foreground:`abb2bf`},{token:`delimiter.handlebars`,foreground:`56b6c2`},{token:`delimiter.html`,foreground:`abb2bf`},{token:`delimiter.parenthesis`,foreground:`abb2bf`},{token:`delimiter.square`,foreground:`abb2bf`},{token:`identifier`,foreground:`abb2bf`},{token:`identifier.go`,foreground:`abb2bf`},{token:`keyword.flow.go`,foreground:`c678dd`},{token:`keyword.helper.handlebars`,foreground:`c678dd`},{token:`keyword.operator.go`,foreground:`56b6c2`},{token:`keyword`,foreground:`c678dd`},{token:`metatag.content.html`,foreground:`abb2bf`},{token:`metatag.html`,foreground:`c678dd`},{token:`metatag`,foreground:`c678dd`},{token:`number.float.go`,foreground:`d19a66`},{token:`number.hex.go`,foreground:`d19a66`},{token:`number`,foreground:`d19a66`},{token:`operator`,foreground:`56b6c2`},{token:`predefined`,foreground:`61afef`},{token:`regexp`,foreground:`98c379`},{token:`string.escape`,foreground:`56b6c2`},{token:`string.escape.go`,foreground:`56b6c2`},{token:`string.key.json`,foreground:`e06c75`},{token:`string.value.json`,foreground:`98c379`},{token:`string`,foreground:`98c379`},{token:`tag.html`,foreground:`e06c75`},{token:`tag`,foreground:`e06c75`},{token:`type.identifier.go`,foreground:`e5c07b`},{token:`type`,foreground:`e5c07b`},{token:`variable.go`,foreground:`abb2bf`},{token:`variable.parameter.handlebars`,foreground:`61afef`}],colors:{"editor.background":`#282c34`,"editor.foreground":`#abb2bf`,"editor.lineHighlightBackground":`#2c313c`,"editor.selectionBackground":`#3e4451`,"editorCursor.foreground":`#528bff`,"editorGutter.background":`#282c34`,"editorLineNumber.activeForeground":`#abb2bf`,"editorLineNumber.foreground":`#5c6370`}},N=new Set,P={go:`Go`,gotemplate:`Go Template`,html:`HTML`,json:`JSON`,markdown:`Markdown`,plaintext:`Plain Text`,yaml:`YAML`},F=globalThis,I=l();function L({autoFocus:e,autoFormat:t,className:n,disabled:r,language:i,onChange:a,placeholder:o,value:s}){let c=(0,A.useRef)(null),l=(0,A.useRef)(null),u=(0,A.useRef)(null),d=(0,A.useRef)(s),f=(0,A.useRef)(a),m=(0,A.useId)(),[h,g]=(0,A.useState)(!1),[_,y]=(0,A.useState)(!0);(0,A.useEffect)(()=>{f.current=a},[a]),(0,A.useEffect)(()=>{let n=c.current;if(!n)return;let a=n,o=!1,s;async function p(){y(!0);let[n,{default:c}]=await Promise.all([v(()=>import(`./editor.api-Dv1ZVczm.js`),__vite__mapDeps([0,1,2,3])),v(()=>import(`./editor.worker-DCurFCio.js`),[]),v(()=>Promise.resolve({}),__vite__mapDeps([4]))]),[p,h]=await Promise.all([B(i)?v(()=>import(`./html.worker-BXRdYPFS.js`).then(e=>e.default),[]):Promise.resolve(void 0),V(i)?v(()=>import(`./json.worker-BHONpNZS.js`).then(e=>e.default),[]):Promise.resolve(void 0)]);if(o||(z({EditorWorker:c,HtmlWorker:p,JsonWorker:h}),await H(n,i),o))return;U(n);let _=n.editor.create(a,{automaticLayout:!1,contextmenu:!0,cursorBlinking:`smooth`,fontFamily:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace`,fontSize:13,folding:!0,glyphMargin:!1,language:i,lineDecorationsWidth:10,lineNumbers:`on`,minimap:{enabled:!1},model:n.editor.createModel(d.current,i,n.Uri.parse(`inmemory://editor/${m}`)),padding:{bottom:12,top:12},readOnly:r,renderLineHighlight:r?`none`:`line`,scrollBeyondLastLine:!1,scrollbar:{horizontalScrollbarSize:10,verticalScrollbarSize:10},"semanticHighlighting.enabled":!0,tabSize:2,theme:W(),wordWrap:`on`});l.current=_,u.current=n,y(!1);let b=[_.onDidChangeModelContent(()=>{let e=_.getValue();d.current=e,f.current?.(e)}),_.onDidFocusEditorWidget(()=>g(!0)),_.onDidBlurEditorWidget(()=>{g(!1),t&&!r&&R(_,d,f).catch(()=>{})})],x=new ResizeObserver(()=>_.layout());x.observe(a);let S=new MutationObserver(()=>{n.editor.setTheme(W())});S.observe(document.documentElement,{attributeFilter:[`class`,`data-mode`],attributes:!0}),e&&_.focus(),s=()=>{x.disconnect(),S.disconnect();for(let e of b)e.dispose();_.getModel()?.dispose(),_.dispose(),l.current=null,u.current=null}}return p(),()=>{o=!0,s?.()}},[e,t,r,i,m]),(0,A.useEffect)(()=>{let e=l.current;!e||s===d.current||(d.current=s,e.setValue(s))},[s]),(0,A.useEffect)(()=>{let e=l.current;e&&e.updateOptions({readOnly:r,renderLineHighlight:r?`none`:`line`})},[r]),(0,A.useEffect)(()=>{let e=l.current,t=u.current;if(!e)return;let n=e.getModel();n&&t&&t.editor.setModelLanguage(n,i)},[i]);let b=!!(o&&!s&&!h);return(0,I.jsxs)(`div`,{className:p(`relative size-full min-w-0 bg-background text-sm`,n),children:[(0,I.jsx)(`div`,{className:`size-full`,ref:c}),_?(0,I.jsx)(`div`,{className:`absolute inset-0 bg-background/80`}):null,b?(0,I.jsx)(`div`,{className:`pointer-events-none absolute top-3 left-[4.1rem] select-none whitespace-pre-line text-muted-foreground text-sm`,children:o}):null]})}async function R(e,t,n){await e.getAction(`editor.action.formatDocument`)?.run();let r=e.getValue();r!==t.current&&(t.current=r,n.current?.(r))}function z({EditorWorker:e,HtmlWorker:t,JsonWorker:n}){F.MonacoEnvironment={getWorker:(r,i)=>i===`json`&&n?new n:(i===`html`||i===`handlebars`)&&t?new t:new e}}function B(e){return e===`html`||e===`gotemplate`}function V(e){return e===`json`}async function H(e,t){if(!N.has(t)){switch(t){case`go`:await v(()=>import(`./go.contribution-BmlX-a-9.js`),__vite__mapDeps([5,6,7,1,2,3,8,9]));break;case`gotemplate`:{let{conf:t,language:n}=await v(async()=>{let{conf:e,language:t}=await import(`./handlebars-d5Fb_oR7.js`);return{conf:e,language:t}},__vite__mapDeps([10,1,2,3,8,9]));e.languages.register({aliases:[`Go Template`,`gotemplate`],extensions:[`.gotmpl`,`.tmpl`],id:`gotemplate`}),e.languages.setLanguageConfiguration(`gotemplate`,t),e.languages.setMonarchTokensProvider(`gotemplate`,n);break}case`html`:await v(()=>import(`./html.contribution-Baf-XjFx.js`),__vite__mapDeps([11,6,7,1,2,3,8,9]));break;case`json`:await v(()=>import(`./monaco.contribution-BNCqMH44.js`),__vite__mapDeps([12,6,1,2,3,8,9]));break;case`markdown`:await v(()=>import(`./markdown.contribution-FtzundBn.js`),__vite__mapDeps([13,6,7,1,2,3,8,9]));break;case`yaml`:await v(()=>import(`./yaml.contribution-BN-iiJx2.js`),__vite__mapDeps([14,6,7,1,2,3,8,9]));break;default:break}N.add(t)}}function U(e){e.editor.defineTheme(`one-light-pro`,j),e.editor.defineTheme(`one-dark-pro`,M)}function W(){return G()?`one-dark-pro`:`one-light-pro`}function G(){if(typeof document>`u`)return!1;let e=document.documentElement;return e.dataset.mode?e.dataset.mode===`dark`:e.classList.contains(`dark`)}function K(e,t){return t?e===`markdown`?`markdown`:e===`html`?`html`:null:null}function q(e,t){return` +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{An as n,Dn as r,En as i,Mn as a,Nn as o,On as s,Tn as c,jn as l,kn as u,tm as d,wn as f}from"./messages-BOatyqUm.js";import{i as p,t as m}from"./button-C_NDYaz8.js";import{n as h,r as g,t as _}from"./tabs-6Ep1KePr.js";import{t as v}from"./preload-helper-DoS0eHac.js";import{t as y}from"./createLucideIcon-Br0Bd5k2.js";import{c as b,i as x,o as S,r as C,s as w,t as T}from"./dialog-CZ-2RPb-.js";var E=y(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),D=y(`file-plus-corner`,[[`path`,{d:`M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35`,key:`17jvcc`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M14 19h6`,key:`bvotb8`}],[`path`,{d:`M17 16v6`,key:`18yu1i`}]]),O=y(`maximize-2`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]),k=y(`minimize-2`,[[`path`,{d:`m14 10 7-7`,key:`oa77jy`}],[`path`,{d:`M20 10h-6V4`,key:`mjg0md`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M4 14h6v6`,key:`rmj7iw`}]]),A=e(t(),1),j={base:`vs`,inherit:!0,rules:[{token:``,foreground:`383a42`},{token:`attribute.name`,foreground:`986801`},{token:`attribute.name.html`,foreground:`986801`},{token:`attribute.value`,foreground:`50a14f`},{token:`attribute.value.html`,foreground:`50a14f`},{token:`comment`,foreground:`a0a1a7`,fontStyle:`italic`},{token:`comment.content`,foreground:`a0a1a7`,fontStyle:`italic`},{token:`comment.content.handlebars`,foreground:`a0a1a7`,fontStyle:`italic`},{token:`comment.content.html`,foreground:`a0a1a7`,fontStyle:`italic`},{token:`comment.html`,foreground:`a0a1a7`,fontStyle:`italic`},{token:`constant`,foreground:`986801`},{token:`delimiter`,foreground:`383a42`},{token:`delimiter.bracket`,foreground:`383a42`},{token:`delimiter.handlebars`,foreground:`0184bc`},{token:`delimiter.html`,foreground:`383a42`},{token:`delimiter.parenthesis`,foreground:`383a42`},{token:`delimiter.square`,foreground:`383a42`},{token:`identifier`,foreground:`383a42`},{token:`identifier.go`,foreground:`383a42`},{token:`keyword.flow.go`,foreground:`a626a4`},{token:`keyword.helper.handlebars`,foreground:`a626a4`},{token:`keyword.operator.go`,foreground:`0184bc`},{token:`keyword`,foreground:`a626a4`},{token:`metatag.content.html`,foreground:`383a42`},{token:`metatag.html`,foreground:`a626a4`},{token:`metatag`,foreground:`a626a4`},{token:`number.float.go`,foreground:`986801`},{token:`number.hex.go`,foreground:`986801`},{token:`number`,foreground:`986801`},{token:`operator`,foreground:`0184bc`},{token:`predefined`,foreground:`4078f2`},{token:`regexp`,foreground:`50a14f`},{token:`string.escape`,foreground:`0184bc`},{token:`string.escape.go`,foreground:`0184bc`},{token:`string.key.json`,foreground:`e45649`},{token:`string.value.json`,foreground:`50a14f`},{token:`string`,foreground:`50a14f`},{token:`tag.html`,foreground:`e45649`},{token:`tag`,foreground:`e45649`},{token:`type.identifier.go`,foreground:`c18401`},{token:`type`,foreground:`c18401`},{token:`variable.go`,foreground:`383a42`},{token:`variable.parameter.handlebars`,foreground:`4078f2`}],colors:{"editor.background":`#fafafa`,"editor.foreground":`#383a42`,"editor.lineHighlightBackground":`#f2f3f580`,"editor.selectionBackground":`#c8d3f566`,"editorCursor.foreground":`#526fff`,"editorGutter.background":`#fafafa`,"editorLineNumber.activeForeground":`#383a42`,"editorLineNumber.foreground":`#a0a1a7`}},M={base:`vs-dark`,inherit:!0,rules:[{token:``,foreground:`abb2bf`},{token:`attribute.name`,foreground:`d19a66`},{token:`attribute.name.html`,foreground:`d19a66`},{token:`attribute.value`,foreground:`98c379`},{token:`attribute.value.html`,foreground:`98c379`},{token:`comment`,foreground:`5c6370`,fontStyle:`italic`},{token:`comment.content`,foreground:`5c6370`,fontStyle:`italic`},{token:`comment.content.handlebars`,foreground:`5c6370`,fontStyle:`italic`},{token:`comment.content.html`,foreground:`5c6370`,fontStyle:`italic`},{token:`comment.html`,foreground:`5c6370`,fontStyle:`italic`},{token:`constant`,foreground:`d19a66`},{token:`delimiter`,foreground:`abb2bf`},{token:`delimiter.bracket`,foreground:`abb2bf`},{token:`delimiter.handlebars`,foreground:`56b6c2`},{token:`delimiter.html`,foreground:`abb2bf`},{token:`delimiter.parenthesis`,foreground:`abb2bf`},{token:`delimiter.square`,foreground:`abb2bf`},{token:`identifier`,foreground:`abb2bf`},{token:`identifier.go`,foreground:`abb2bf`},{token:`keyword.flow.go`,foreground:`c678dd`},{token:`keyword.helper.handlebars`,foreground:`c678dd`},{token:`keyword.operator.go`,foreground:`56b6c2`},{token:`keyword`,foreground:`c678dd`},{token:`metatag.content.html`,foreground:`abb2bf`},{token:`metatag.html`,foreground:`c678dd`},{token:`metatag`,foreground:`c678dd`},{token:`number.float.go`,foreground:`d19a66`},{token:`number.hex.go`,foreground:`d19a66`},{token:`number`,foreground:`d19a66`},{token:`operator`,foreground:`56b6c2`},{token:`predefined`,foreground:`61afef`},{token:`regexp`,foreground:`98c379`},{token:`string.escape`,foreground:`56b6c2`},{token:`string.escape.go`,foreground:`56b6c2`},{token:`string.key.json`,foreground:`e06c75`},{token:`string.value.json`,foreground:`98c379`},{token:`string`,foreground:`98c379`},{token:`tag.html`,foreground:`e06c75`},{token:`tag`,foreground:`e06c75`},{token:`type.identifier.go`,foreground:`e5c07b`},{token:`type`,foreground:`e5c07b`},{token:`variable.go`,foreground:`abb2bf`},{token:`variable.parameter.handlebars`,foreground:`61afef`}],colors:{"editor.background":`#282c34`,"editor.foreground":`#abb2bf`,"editor.lineHighlightBackground":`#2c313c`,"editor.selectionBackground":`#3e4451`,"editorCursor.foreground":`#528bff`,"editorGutter.background":`#282c34`,"editorLineNumber.activeForeground":`#abb2bf`,"editorLineNumber.foreground":`#5c6370`}},N=new Set,P={go:`Go`,gotemplate:`Go Template`,html:`HTML`,json:`JSON`,markdown:`Markdown`,plaintext:`Plain Text`,yaml:`YAML`},F=globalThis,I=d();function L({autoFocus:e,autoFormat:t,className:n,disabled:r,language:i,onChange:a,placeholder:o,value:s}){let c=(0,A.useRef)(null),l=(0,A.useRef)(null),u=(0,A.useRef)(null),d=(0,A.useRef)(s),f=(0,A.useRef)(a),m=(0,A.useId)(),[h,g]=(0,A.useState)(!1),[_,y]=(0,A.useState)(!0);(0,A.useEffect)(()=>{f.current=a},[a]),(0,A.useEffect)(()=>{let n=c.current;if(!n)return;let a=n,o=!1,s;async function p(){y(!0);let[n,{default:c}]=await Promise.all([v(()=>import(`./editor.api-Dv1ZVczm.js`),__vite__mapDeps([0,1,2,3])),v(()=>import(`./editor.worker-DCurFCio.js`),[]),v(()=>Promise.resolve({}),__vite__mapDeps([4]))]),[p,h]=await Promise.all([B(i)?v(()=>import(`./html.worker-BXRdYPFS.js`).then(e=>e.default),[]):Promise.resolve(void 0),V(i)?v(()=>import(`./json.worker-BHONpNZS.js`).then(e=>e.default),[]):Promise.resolve(void 0)]);if(o||(z({EditorWorker:c,HtmlWorker:p,JsonWorker:h}),await H(n,i),o))return;U(n);let _=n.editor.create(a,{automaticLayout:!1,contextmenu:!0,cursorBlinking:`smooth`,fontFamily:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace`,fontSize:13,folding:!0,glyphMargin:!1,language:i,lineDecorationsWidth:10,lineNumbers:`on`,minimap:{enabled:!1},model:n.editor.createModel(d.current,i,n.Uri.parse(`inmemory://editor/${m}`)),padding:{bottom:12,top:12},readOnly:r,renderLineHighlight:r?`none`:`line`,scrollBeyondLastLine:!1,scrollbar:{horizontalScrollbarSize:10,verticalScrollbarSize:10},"semanticHighlighting.enabled":!0,tabSize:2,theme:W(),wordWrap:`on`});l.current=_,u.current=n,y(!1);let b=[_.onDidChangeModelContent(()=>{let e=_.getValue();d.current=e,f.current?.(e)}),_.onDidFocusEditorWidget(()=>g(!0)),_.onDidBlurEditorWidget(()=>{g(!1),t&&!r&&R(_,d,f).catch(()=>{})})],x=new ResizeObserver(()=>_.layout());x.observe(a);let S=new MutationObserver(()=>{n.editor.setTheme(W())});S.observe(document.documentElement,{attributeFilter:[`class`,`data-mode`],attributes:!0}),e&&_.focus(),s=()=>{x.disconnect(),S.disconnect();for(let e of b)e.dispose();_.getModel()?.dispose(),_.dispose(),l.current=null,u.current=null}}return p(),()=>{o=!0,s?.()}},[e,t,r,i,m]),(0,A.useEffect)(()=>{let e=l.current;!e||s===d.current||(d.current=s,e.setValue(s))},[s]),(0,A.useEffect)(()=>{let e=l.current;e&&e.updateOptions({readOnly:r,renderLineHighlight:r?`none`:`line`})},[r]),(0,A.useEffect)(()=>{let e=l.current,t=u.current;if(!e)return;let n=e.getModel();n&&t&&t.editor.setModelLanguage(n,i)},[i]);let b=!!(o&&!s&&!h);return(0,I.jsxs)(`div`,{className:p(`relative size-full min-w-0 bg-background text-sm`,n),children:[(0,I.jsx)(`div`,{className:`size-full`,ref:c}),_?(0,I.jsx)(`div`,{className:`absolute inset-0 bg-background/80`}):null,b?(0,I.jsx)(`div`,{className:`pointer-events-none absolute top-3 left-[4.1rem] select-none whitespace-pre-line text-muted-foreground text-sm`,children:o}):null]})}async function R(e,t,n){await e.getAction(`editor.action.formatDocument`)?.run();let r=e.getValue();r!==t.current&&(t.current=r,n.current?.(r))}function z({EditorWorker:e,HtmlWorker:t,JsonWorker:n}){F.MonacoEnvironment={getWorker:(r,i)=>i===`json`&&n?new n:(i===`html`||i===`handlebars`)&&t?new t:new e}}function B(e){return e===`html`||e===`gotemplate`}function V(e){return e===`json`}async function H(e,t){if(!N.has(t)){switch(t){case`go`:await v(()=>import(`./go.contribution-BmlX-a-9.js`),__vite__mapDeps([5,6,7,1,2,3,8,9]));break;case`gotemplate`:{let{conf:t,language:n}=await v(async()=>{let{conf:e,language:t}=await import(`./handlebars-d5Fb_oR7.js`);return{conf:e,language:t}},__vite__mapDeps([10,1,2,3,8,9]));e.languages.register({aliases:[`Go Template`,`gotemplate`],extensions:[`.gotmpl`,`.tmpl`],id:`gotemplate`}),e.languages.setLanguageConfiguration(`gotemplate`,t),e.languages.setMonarchTokensProvider(`gotemplate`,n);break}case`html`:await v(()=>import(`./html.contribution-Baf-XjFx.js`),__vite__mapDeps([11,6,7,1,2,3,8,9]));break;case`json`:await v(()=>import(`./monaco.contribution-BNCqMH44.js`),__vite__mapDeps([12,6,1,2,3,8,9]));break;case`markdown`:await v(()=>import(`./markdown.contribution-FtzundBn.js`),__vite__mapDeps([13,6,7,1,2,3,8,9]));break;case`yaml`:await v(()=>import(`./yaml.contribution-BN-iiJx2.js`),__vite__mapDeps([14,6,7,1,2,3,8,9]));break;default:break}N.add(t)}}function U(e){e.editor.defineTheme(`one-light-pro`,j),e.editor.defineTheme(`one-dark-pro`,M)}function W(){return G()?`one-dark-pro`:`one-light-pro`}function G(){if(typeof document>`u`)return!1;let e=document.documentElement;return e.dataset.mode?e.dataset.mode===`dark`:e.classList.contains(`dark`)}function K(e,t){return t?e===`markdown`?`markdown`:e===`html`?`html`:null:null}function q(e,t){return` @@ -21,4 +21,4 @@ import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";impor ${e} -`}var J=(0,A.lazy)(async()=>({default:(await v(()=>import(`./es-fZtL7B9U.js`),__vite__mapDeps([15,2,16,17,18]))).XMarkdown}));function Y({autoFocus:e=!1,autoFormat:t=!1,className:n,defaultView:r=`editor`,disabled:i=!1,editorClassName:a,language:o=`plaintext`,markdownPreview:s=!0,onChange:c,placeholder:l,preview:u,previewClassName:d,toolbarExample:f,toolbarHelp:m,value:h=``}){let g=(0,A.useRef)(null),[_,v]=(0,A.useState)(!1),[y,b]=(0,A.useState)(!1),[x,S]=(0,A.useState)(!1),C=K(o,s),[w,T]=(0,A.useState)(r);(0,A.useEffect)(()=>{let e=()=>{v(G())};e();let t=new MutationObserver(e);return t.observe(document.documentElement,{attributeFilter:[`class`,`data-mode`],attributes:!0}),()=>t.disconnect()},[]),(0,A.useEffect)(()=>{if(!y)return;let e=document.body.style.overflow;document.body.style.overflow=`hidden`;let t=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopImmediatePropagation(),b(!1))};return document.addEventListener(`keydown`,t,!0),()=>{document.body.style.overflow=e,document.removeEventListener(`keydown`,t,!0)}},[y]);let E=()=>{let e=g.current;S(!!e?.closest(`[data-slot="dialog-content"]`)),b(e=>!e)},D=e=>{y&&e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),b(!1))},O=(0,I.jsx)(L,{autoFocus:e,autoFormat:t,className:a,disabled:i,language:o,onChange:c,placeholder:l,value:h}),k=!!(C||u),j=u?(0,I.jsx)(`div`,{className:p(`h-full overflow-auto px-4 py-3`,d),children:u.content}):(0,I.jsx)(Q,{isDark:_,mode:C,previewClassName:d,value:h});return(0,I.jsx)(`div`,{className:p(`flex h-64 flex-col overflow-hidden rounded-sm border border-border/80 bg-background shadow-none transition-[color,box-shadow] focus-within:border-ring focus-within:ring-2 focus-within:ring-ring/40`,i&&`opacity-70`,n,y&&`fixed z-[60] h-[calc(100svh-2rem)] max-h-none w-[calc(100vw-2rem)] rounded-sm border bg-background shadow-none focus-within:ring-0`,y&&x?`top-[calc(-50svh+50%+1rem)] left-[calc(-50vw+50%+1rem)]`:`inset-4`),onKeyDownCapture:D,ref:g,children:k?(0,I.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col`,children:[(0,I.jsx)(X,{disabled:i,isFullscreen:y,language:o,onFullscreenToggle:E,onUseExample:c,onViewChange:T,preview:!0,previewLabel:u?.label,toolbarExample:f,toolbarHelp:m,view:w}),w===`split`?(0,I.jsxs)(`div`,{className:`grid min-h-0 flex-1 grid-cols-1 divide-y sm:grid-cols-2 sm:divide-x sm:divide-y-0`,children:[(0,I.jsx)(`div`,{className:`min-h-0`,children:O}),(0,I.jsx)(`div`,{className:`min-h-0`,children:j})]}):(0,I.jsx)(`div`,{className:`min-h-0 flex-1`,children:w===`preview`?j:O})]}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(X,{disabled:i,isFullscreen:y,language:o,onFullscreenToggle:E,onUseExample:c,toolbarExample:f,toolbarHelp:m}),(0,I.jsx)(`div`,{className:`min-h-0 flex-1`,children:O})]})})}function X({disabled:e=!1,isFullscreen:t,language:i,onFullscreenToggle:c,onUseExample:l,onViewChange:f,preview:p=!1,previewLabel:v,toolbarExample:y,toolbarHelp:b,view:x=`editor`}){return(0,I.jsxs)(`div`,{className:`flex h-10 shrink-0 items-center justify-between gap-3 border-b bg-background px-2`,children:[(0,I.jsx)(`div`,{className:`px-2 font-medium text-muted-foreground text-xs`,children:P[i]}),(0,I.jsxs)(`div`,{className:`flex items-center gap-1`,children:[y?(0,I.jsxs)(m,{className:`h-8 px-2 text-muted-foreground`,disabled:e||!l,onClick:()=>l?.(y.value),size:`sm`,type:`button`,variant:`ghost`,children:[(0,I.jsx)(D,{}),y.label??o()]}):null,b?(0,I.jsx)(Z,{help:b}):null,(0,I.jsxs)(m,{"aria-label":t?n():u(),className:`h-8 px-2 text-muted-foreground`,onClick:e=>{e.preventDefault(),e.stopPropagation()},onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.stopPropagation(),c())},onPointerDown:e=>{e.preventDefault(),e.stopPropagation(),c()},size:`sm`,type:`button`,variant:`ghost`,children:[t?(0,I.jsx)(k,{}):(0,I.jsx)(O,{}),t?n():a()]}),p?(0,I.jsx)(_,{className:`gap-0`,onValueChange:e=>f?.(e),value:x,children:(0,I.jsxs)(h,{className:`h-8`,variant:`line`,children:[(0,I.jsx)(g,{value:`editor`,children:d()}),(0,I.jsx)(g,{value:`preview`,children:v??s()}),(0,I.jsx)(g,{value:`split`,children:r()})]})}):null]})]})}function Z({help:e}){return(0,I.jsxs)(T,{children:[(0,I.jsx)(b,{asChild:!0,children:(0,I.jsxs)(m,{"aria-label":e.label??i(),className:`h-8 px-2 text-muted-foreground`,size:`sm`,type:`button`,variant:`ghost`,children:[(0,I.jsx)(E,{}),e.label??c()]})}),(0,I.jsxs)(C,{className:`max-h-[90svh] overflow-y-auto sm:max-w-3xl`,children:[(0,I.jsxs)(S,{children:[(0,I.jsx)(w,{children:e.title}),e.description?(0,I.jsx)(x,{children:e.description}):null]}),e.content]})]})}function Q({isDark:e,mode:t,previewClassName:n,value:r}){return t===`html`?(0,I.jsx)(`iframe`,{className:p(`h-full w-full bg-background`,n),sandbox:``,srcDoc:q(r,e),title:f()}):(0,I.jsx)(`div`,{className:p(`h-full overflow-auto px-4 py-3`,n),children:(0,I.jsx)(A.Suspense,{fallback:null,children:(0,I.jsx)(J,{content:r,openLinksInNewTab:!0})})})}export{Y as ClientEditor}; \ No newline at end of file +`}var J=(0,A.lazy)(async()=>({default:(await v(()=>import(`./es-fZtL7B9U.js`),__vite__mapDeps([15,2,16,17,18]))).XMarkdown}));function Y({autoFocus:e=!1,autoFormat:t=!1,className:n,defaultView:r=`editor`,disabled:i=!1,editorClassName:a,language:o=`plaintext`,markdownPreview:s=!0,onChange:c,placeholder:l,preview:u,previewClassName:d,toolbarExample:f,toolbarHelp:m,value:h=``}){let g=(0,A.useRef)(null),[_,v]=(0,A.useState)(!1),[y,b]=(0,A.useState)(!1),[x,S]=(0,A.useState)(!1),C=K(o,s),[w,T]=(0,A.useState)(r);(0,A.useEffect)(()=>{let e=()=>{v(G())};e();let t=new MutationObserver(e);return t.observe(document.documentElement,{attributeFilter:[`class`,`data-mode`],attributes:!0}),()=>t.disconnect()},[]),(0,A.useEffect)(()=>{if(!y)return;let e=document.body.style.overflow;document.body.style.overflow=`hidden`;let t=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopImmediatePropagation(),b(!1))};return document.addEventListener(`keydown`,t,!0),()=>{document.body.style.overflow=e,document.removeEventListener(`keydown`,t,!0)}},[y]);let E=()=>{let e=g.current;S(!!e?.closest(`[data-slot="dialog-content"]`)),b(e=>!e)},D=e=>{y&&e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),b(!1))},O=(0,I.jsx)(L,{autoFocus:e,autoFormat:t,className:a,disabled:i,language:o,onChange:c,placeholder:l,value:h}),k=!!(C||u),j=u?(0,I.jsx)(`div`,{className:p(`h-full overflow-auto px-4 py-3`,d),children:u.content}):(0,I.jsx)(Q,{isDark:_,mode:C,previewClassName:d,value:h});return(0,I.jsx)(`div`,{className:p(`flex h-64 flex-col overflow-hidden rounded-sm border border-border/80 bg-background shadow-none transition-[color,box-shadow] focus-within:border-ring focus-within:ring-2 focus-within:ring-ring/40`,i&&`opacity-70`,n,y&&`fixed z-[60] h-[calc(100svh-2rem)] max-h-none w-[calc(100vw-2rem)] rounded-sm border bg-background shadow-none focus-within:ring-0`,y&&x?`top-[calc(-50svh+50%+1rem)] left-[calc(-50vw+50%+1rem)]`:`inset-4`),onKeyDownCapture:D,ref:g,children:k?(0,I.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col`,children:[(0,I.jsx)(X,{disabled:i,isFullscreen:y,language:o,onFullscreenToggle:E,onUseExample:c,onViewChange:T,preview:!0,previewLabel:u?.label,toolbarExample:f,toolbarHelp:m,view:w}),w===`split`?(0,I.jsxs)(`div`,{className:`grid min-h-0 flex-1 grid-cols-1 divide-y sm:grid-cols-2 sm:divide-x sm:divide-y-0`,children:[(0,I.jsx)(`div`,{className:`min-h-0`,children:O}),(0,I.jsx)(`div`,{className:`min-h-0`,children:j})]}):(0,I.jsx)(`div`,{className:`min-h-0 flex-1`,children:w===`preview`?j:O})]}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(X,{disabled:i,isFullscreen:y,language:o,onFullscreenToggle:E,onUseExample:c,toolbarExample:f,toolbarHelp:m}),(0,I.jsx)(`div`,{className:`min-h-0 flex-1`,children:O})]})})}function X({disabled:e=!1,isFullscreen:t,language:i,onFullscreenToggle:c,onUseExample:d,onViewChange:f,preview:p=!1,previewLabel:v,toolbarExample:y,toolbarHelp:b,view:x=`editor`}){return(0,I.jsxs)(`div`,{className:`flex h-10 shrink-0 items-center justify-between gap-3 border-b bg-background px-2`,children:[(0,I.jsx)(`div`,{className:`px-2 font-medium text-muted-foreground text-xs`,children:P[i]}),(0,I.jsxs)(`div`,{className:`flex items-center gap-1`,children:[y?(0,I.jsxs)(m,{className:`h-8 px-2 text-muted-foreground`,disabled:e||!d,onClick:()=>d?.(y.value),size:`sm`,type:`button`,variant:`ghost`,children:[(0,I.jsx)(D,{}),y.label??o()]}):null,b?(0,I.jsx)(Z,{help:b}):null,(0,I.jsxs)(m,{"aria-label":t?n():l(),className:`h-8 px-2 text-muted-foreground`,onClick:e=>{e.preventDefault(),e.stopPropagation()},onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.stopPropagation(),c())},onPointerDown:e=>{e.preventDefault(),e.stopPropagation(),c()},size:`sm`,type:`button`,variant:`ghost`,children:[t?(0,I.jsx)(k,{}):(0,I.jsx)(O,{}),t?n():a()]}),p?(0,I.jsx)(_,{className:`gap-0`,onValueChange:e=>f?.(e),value:x,children:(0,I.jsxs)(h,{className:`h-8`,variant:`line`,children:[(0,I.jsx)(g,{value:`editor`,children:u()}),(0,I.jsx)(g,{value:`preview`,children:v??s()}),(0,I.jsx)(g,{value:`split`,children:r()})]})}):null]})]})}function Z({help:e}){return(0,I.jsxs)(T,{children:[(0,I.jsx)(b,{asChild:!0,children:(0,I.jsxs)(m,{"aria-label":e.label??i(),className:`h-8 px-2 text-muted-foreground`,size:`sm`,type:`button`,variant:`ghost`,children:[(0,I.jsx)(E,{}),e.label??c()]})}),(0,I.jsxs)(C,{className:`max-h-[90svh] overflow-y-auto sm:max-w-3xl`,children:[(0,I.jsxs)(S,{children:[(0,I.jsx)(w,{children:e.title}),e.description?(0,I.jsx)(x,{children:e.description}):null]}),e.content]})]})}function Q({isDark:e,mode:t,previewClassName:n,value:r}){return t===`html`?(0,I.jsx)(`iframe`,{className:p(`h-full w-full bg-background`,n),sandbox:``,srcDoc:q(r,e),title:f()}):(0,I.jsx)(`div`,{className:p(`h-full overflow-auto px-4 py-3`,n),children:(0,I.jsx)(A.Suspense,{fallback:null,children:(0,I.jsx)(J,{content:r,openLinksInNewTab:!0})})})}export{Y as ClientEditor}; \ No newline at end of file diff --git a/src/www/assets/empty-state-BdzO6t8R.js b/src/www/assets/empty-state-CxE4wU3V.js similarity index 78% rename from src/www/assets/empty-state-BdzO6t8R.js rename to src/www/assets/empty-state-CxE4wU3V.js index 103527b..424fb66 100644 --- a/src/www/assets/empty-state-BdzO6t8R.js +++ b/src/www/assets/empty-state-CxE4wU3V.js @@ -1 +1 @@ -import{em as e,ft as t}from"./messages-Bp0bCjzp.js";import{i as n}from"./button-BgMnOYKD.js";import{t as r}from"./createLucideIcon-Br0Bd5k2.js";var i=r(`inbox`,[[`polyline`,{points:`22 12 16 12 14 15 10 15 8 12 2 12`,key:`o97t9d`}],[`path`,{d:`M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`oot6mr`}]]),a=r(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),o=r(`sliders-horizontal`,[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]),s=e();function c({className:e,description:r=t(),icon:a,title:o}){return(0,s.jsxs)(`div`,{className:n(`flex flex-col items-center justify-center gap-3 py-16 text-center`,e),children:[(0,s.jsx)(`div`,{className:`flex size-12 items-center justify-center rounded-full bg-muted text-muted-foreground`,children:a??(0,s.jsx)(i,{className:`size-6`})}),o&&(0,s.jsx)(`p`,{className:`font-medium text-sm`,children:o}),(0,s.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:r})]})}export{o as n,a as r,c as t}; \ No newline at end of file +import{ft as e,tm as t}from"./messages-BOatyqUm.js";import{i as n}from"./button-C_NDYaz8.js";import{t as r}from"./createLucideIcon-Br0Bd5k2.js";var i=r(`inbox`,[[`polyline`,{points:`22 12 16 12 14 15 10 15 8 12 2 12`,key:`o97t9d`}],[`path`,{d:`M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`oot6mr`}]]),a=r(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),o=r(`sliders-horizontal`,[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]),s=t();function c({className:t,description:r=e(),icon:a,title:o}){return(0,s.jsxs)(`div`,{className:n(`flex flex-col items-center justify-center gap-3 py-16 text-center`,t),children:[(0,s.jsx)(`div`,{className:`flex size-12 items-center justify-center rounded-full bg-muted text-muted-foreground`,children:a??(0,s.jsx)(i,{className:`size-6`})}),o&&(0,s.jsx)(`p`,{className:`font-medium text-sm`,children:o}),(0,s.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:r})]})}export{o as n,a as r,c as t}; \ No newline at end of file diff --git a/src/www/assets/epay-F8J9Rfxi.js b/src/www/assets/epay-BPdlNSqh.js similarity index 56% rename from src/www/assets/epay-F8J9Rfxi.js rename to src/www/assets/epay-BPdlNSqh.js index db566cc..e6d6760 100644 --- a/src/www/assets/epay-F8J9Rfxi.js +++ b/src/www/assets/epay-BPdlNSqh.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{a as t}from"./auth-store-Csn6HPxJ.js";import{t as n}from"./react-CO2uhaBc.js";import{Af as r,Df as i,Fn as a,In as o,Ln as s,Mf as c,Of as l,Pn as u,Rn as d,em as f,jf as p,kf as m}from"./messages-Bp0bCjzp.js";import{t as h}from"./button-BgMnOYKD.js";import{a as g,i as _,n as v,r as y,t as b}from"./select-C9s05In_.js";import{c as x,s as S}from"./zod-rwFXxHlg.js";import{a as C,c as w,i as T,l as E,n as D,o as O,s as k,t as A}from"./form-BhKmyN6D.js";import{t as j}from"./input-BleRUV2A.js";import{t as M}from"./page-header-CDwG3nxs.js";import{n as N,t as P}from"./labels-D0HnAPk9.js";import{a as F,i as I,n as L,r as R,t as z}from"./lib-DCke3ZPi.js";var B=e(n(),1),V=f(),H=`__empty__`,U=S({defaultToken:x().trim(),defaultCurrency:x().trim().min(1,i()),defaultNetwork:x().trim()});function W(){let e=I(`epay`),n=t.useQuery(`get`,`/admin/api/v1/config`),i=F(),c=(0,B.useRef)(``),d=E({resolver:w(U),defaultValues:{defaultToken:`usdt`,defaultCurrency:`CNY`,defaultNetwork:`TRON`}}),f=(0,B.useMemo)(()=>n.data?.data?.supported_assets??[],[n.data?.data?.supported_assets]),x=(0,B.useMemo)(()=>G(f),[f]),S=d.watch(`defaultNetwork`),M=(0,B.useMemo)(()=>K(f,S),[f,S]);(0,B.useEffect)(()=>{let t=e.data?.data;if(!(t&&!n.isLoading))return;let r=`${e.dataUpdatedAt}:${n.dataUpdatedAt}`;if(c.current===r)return;c.current=r;let i=z(t,`epay.default_network`).trim(),a=x.find(e=>X(e.network,i))?.network||(i?``:H)||x[0]?.network||i||`TRON`,o=K(f,a),s=z(t,`epay.default_token`).trim(),l=o.find(e=>X(e.value,s))?.value||(s?``:H)||(s&&o.length===0?s.toLowerCase():o[0]?.value||`usdt`);d.reset({defaultToken:l,defaultCurrency:z(t,`epay.default_currency`,`CNY`).trim().toUpperCase(),defaultNetwork:a})},[n.dataUpdatedAt,n.isLoading,d,x,e.dataUpdatedAt,e.data,f]);async function W(t){await R(i.mutateAsync,[{group:`epay`,key:`epay.default_token`,type:`string`,value:Q(t.defaultToken)},{group:`epay`,key:`epay.default_currency`,type:`string`,value:t.defaultCurrency.toLowerCase()},{group:`epay`,key:`epay.default_network`,type:`string`,value:Q(t.defaultNetwork)}],s()),await e.refetch()}async function $(){await L(i.mutateAsync,[{group:`epay`,key:`epay.default_token`,type:`string`,value:``},{group:`epay`,key:`epay.default_currency`,type:`string`,value:``},{group:`epay`,key:`epay.default_network`,type:`string`,value:``}],u()),await e.refetch()}return(0,V.jsx)(A,{...d,children:(0,V.jsxs)(`form`,{className:`space-y-6`,onSubmit:d.handleSubmit(W),children:[(0,V.jsxs)(`div`,{className:`grid gap-6 md:grid-cols-2`,children:[(0,V.jsx)(T,{control:d.control,name:`defaultNetwork`,render:({field:e})=>{let t=J(x,e.value),r=t?.network||e.value,i=Z(e.value);return(0,V.jsxs)(C,{children:[(0,V.jsx)(O,{children:m()}),(0,V.jsxs)(b,{disabled:n.isLoading,onValueChange:t=>{if(e.onChange(t),Z(t)){d.setValue(`defaultToken`,H,{shouldDirty:!0,shouldValidate:!0});return}let n=K(f,t)[0]?.value;d.setValue(`defaultToken`,n??``,{shouldDirty:!0,shouldValidate:!0})},value:e.value,children:[(0,V.jsx)(D,{children:(0,V.jsxs)(_,{className:`w-full`,children:[(0,V.jsx)(`span`,{className:`sr-only`,children:(0,V.jsx)(g,{})}),(0,V.jsx)(`span`,{className:`pointer-events-none`,children:i?l():(0,V.jsx)(P,{displayName:t?.displayName,network:r||`TRON`})})]})}),(0,V.jsxs)(v,{children:[(0,V.jsx)(y,{textValue:l(),value:H,children:(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:l()})}),x.map(e=>(0,V.jsx)(y,{textValue:q(e),value:e.network,children:(0,V.jsx)(`span`,{className:`pointer-events-none`,children:(0,V.jsx)(P,{displayName:e.displayName,network:e.network})})},e.network))]})]}),(0,V.jsx)(k,{})]})}}),(0,V.jsx)(T,{control:d.control,name:`defaultToken`,render:({field:e})=>{let t=Y(M,e.value),r=Z(e.value);return(0,V.jsxs)(C,{children:[(0,V.jsx)(O,{children:p()}),(0,V.jsxs)(b,{disabled:n.isLoading||Z(S),onValueChange:e.onChange,value:e.value,children:[(0,V.jsx)(D,{children:(0,V.jsxs)(_,{className:`w-full`,children:[(0,V.jsx)(`span`,{className:`sr-only`,children:(0,V.jsx)(g,{})}),(0,V.jsx)(`span`,{className:`pointer-events-none`,children:r?l():(0,V.jsx)(N,{token:t||`USDT`})})]})}),(0,V.jsxs)(v,{children:[(0,V.jsx)(y,{textValue:l(),value:H,children:(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:l()})}),M.map(e=>(0,V.jsx)(y,{textValue:e.displayName,value:e.value,children:(0,V.jsx)(`span`,{className:`pointer-events-none`,children:(0,V.jsx)(N,{token:e.displayName})})},e.value))]})]}),(0,V.jsx)(k,{})]})}})]}),(0,V.jsx)(T,{control:d.control,name:`defaultCurrency`,render:({field:e})=>(0,V.jsxs)(C,{children:[(0,V.jsx)(O,{children:r()}),(0,V.jsx)(D,{children:(0,V.jsx)(j,{placeholder:`CNY`,...e})}),(0,V.jsx)(k,{})]})}),(0,V.jsxs)(`div`,{className:`flex gap-2`,children:[(0,V.jsx)(h,{disabled:i.isPending||e.isLoading,type:`submit`,children:o()}),(0,V.jsx)(h,{disabled:i.isPending,onClick:$,type:`button`,variant:`outline`,children:a()})]})]})})}function G(e){let t=new Map;for(let n of e){if(!n.network)continue;let e=n.network.toLowerCase();t.has(e)||t.set(e,{displayName:n.display_name,network:n.network})}return Array.from(t.values())}function K(e,t){if(Z(t))return[];let n=new Map;for(let r of e)if(X(r.network,t))for(let e of r.tokens??[]){if(!e)continue;let t=e.toLowerCase();n.has(t)||n.set(t,{displayName:e.toUpperCase(),value:t})}return Array.from(n.values())}function q(e){return e.displayName?.trim()||e.network}function J(e,t){return e.find(e=>X(e.network,t))}function Y(e,t){return t&&!Z(t)?e.find(e=>X(e.value,t))?.displayName||t.toUpperCase():``}function X(e,t){return String(e??``).toLowerCase()===String(t??``).toLowerCase()}function Z(e){return e===H}function Q(e){return Z(e)?``:e.toLowerCase()}function $(){return(0,V.jsx)(M,{description:d(),title:c(),variant:`section`,children:(0,V.jsx)(W,{})})}var ee=$;export{ee as component}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{a as t}from"./auth-store-De4Y7PFV.js";import{t as n}from"./react-CO2uhaBc.js";import{Af as r,Fn as i,In as a,Ln as o,Mf as s,Nf as c,Of as l,Pn as u,Rn as d,jf as f,kf as p,tm as m}from"./messages-BOatyqUm.js";import{t as h}from"./button-C_NDYaz8.js";import{a as g,i as _,n as v,r as y,t as b}from"./select-CzebumOF.js";import{c as x,s as S}from"./zod-rwFXxHlg.js";import{a as C,c as w,i as T,l as E,n as D,o as O,s as k,t as A}from"./form-KfFEakes.js";import{t as j}from"./input-8zzM34r5.js";import{t as M}from"./page-header-GTtyZFBB.js";import{n as N,t as P}from"./labels-Cbc2zlmv.js";import{a as F,i as I,n as L,r as R,t as z}from"./lib-DDezYSnW.js";var B=e(n(),1),V=m(),H=`__empty__`,U=S({defaultToken:x().trim(),defaultCurrency:x().trim().min(1,l()),defaultNetwork:x().trim()});function W(){let e=I(`epay`),n=t.useQuery(`get`,`/admin/api/v1/config`),c=F(),l=(0,B.useRef)(``),d=E({resolver:w(U),defaultValues:{defaultToken:`usdt`,defaultCurrency:`CNY`,defaultNetwork:`TRON`}}),m=(0,B.useMemo)(()=>n.data?.data?.supported_assets??[],[n.data?.data?.supported_assets]),x=(0,B.useMemo)(()=>G(m),[m]),S=d.watch(`defaultNetwork`),M=(0,B.useMemo)(()=>K(m,S),[m,S]);(0,B.useEffect)(()=>{let t=e.data?.data;if(!(t&&!n.isLoading))return;let r=`${e.dataUpdatedAt}:${n.dataUpdatedAt}`;if(l.current===r)return;l.current=r;let i=z(t,`epay.default_network`).trim(),a=x.find(e=>X(e.network,i))?.network||(i?``:H)||x[0]?.network||i||`TRON`,o=K(m,a),s=z(t,`epay.default_token`).trim(),c=o.find(e=>X(e.value,s))?.value||(s?``:H)||(s&&o.length===0?s.toLowerCase():o[0]?.value||`usdt`);d.reset({defaultToken:c,defaultCurrency:z(t,`epay.default_currency`,`CNY`).trim().toUpperCase(),defaultNetwork:a})},[n.dataUpdatedAt,n.isLoading,d,x,e.dataUpdatedAt,e.data,m]);async function W(t){await R(c.mutateAsync,[{group:`epay`,key:`epay.default_token`,type:`string`,value:Q(t.defaultToken)},{group:`epay`,key:`epay.default_currency`,type:`string`,value:t.defaultCurrency.toLowerCase()},{group:`epay`,key:`epay.default_network`,type:`string`,value:Q(t.defaultNetwork)}],o()),await e.refetch()}async function $(){await L(c.mutateAsync,[{group:`epay`,key:`epay.default_token`,type:`string`,value:``},{group:`epay`,key:`epay.default_currency`,type:`string`,value:``},{group:`epay`,key:`epay.default_network`,type:`string`,value:``}],u()),await e.refetch()}return(0,V.jsx)(A,{...d,children:(0,V.jsxs)(`form`,{className:`space-y-6`,onSubmit:d.handleSubmit(W),children:[(0,V.jsxs)(`div`,{className:`grid gap-6 md:grid-cols-2`,children:[(0,V.jsx)(T,{control:d.control,name:`defaultNetwork`,render:({field:e})=>{let t=J(x,e.value),i=t?.network||e.value,a=Z(e.value);return(0,V.jsxs)(C,{children:[(0,V.jsx)(O,{children:r()}),(0,V.jsxs)(b,{disabled:n.isLoading,onValueChange:t=>{if(e.onChange(t),Z(t)){d.setValue(`defaultToken`,H,{shouldDirty:!0,shouldValidate:!0});return}let n=K(m,t)[0]?.value;d.setValue(`defaultToken`,n??``,{shouldDirty:!0,shouldValidate:!0})},value:e.value,children:[(0,V.jsx)(D,{children:(0,V.jsxs)(_,{className:`w-full`,children:[(0,V.jsx)(`span`,{className:`sr-only`,children:(0,V.jsx)(g,{})}),(0,V.jsx)(`span`,{className:`pointer-events-none`,children:a?p():(0,V.jsx)(P,{displayName:t?.displayName,network:i||`TRON`})})]})}),(0,V.jsxs)(v,{children:[(0,V.jsx)(y,{textValue:p(),value:H,children:(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:p()})}),x.map(e=>(0,V.jsx)(y,{textValue:q(e),value:e.network,children:(0,V.jsx)(`span`,{className:`pointer-events-none`,children:(0,V.jsx)(P,{displayName:e.displayName,network:e.network})})},e.network))]})]}),(0,V.jsx)(k,{})]})}}),(0,V.jsx)(T,{control:d.control,name:`defaultToken`,render:({field:e})=>{let t=Y(M,e.value),r=Z(e.value);return(0,V.jsxs)(C,{children:[(0,V.jsx)(O,{children:s()}),(0,V.jsxs)(b,{disabled:n.isLoading||Z(S),onValueChange:e.onChange,value:e.value,children:[(0,V.jsx)(D,{children:(0,V.jsxs)(_,{className:`w-full`,children:[(0,V.jsx)(`span`,{className:`sr-only`,children:(0,V.jsx)(g,{})}),(0,V.jsx)(`span`,{className:`pointer-events-none`,children:r?p():(0,V.jsx)(N,{token:t||`USDT`})})]})}),(0,V.jsxs)(v,{children:[(0,V.jsx)(y,{textValue:p(),value:H,children:(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:p()})}),M.map(e=>(0,V.jsx)(y,{textValue:e.displayName,value:e.value,children:(0,V.jsx)(`span`,{className:`pointer-events-none`,children:(0,V.jsx)(N,{token:e.displayName})})},e.value))]})]}),(0,V.jsx)(k,{})]})}})]}),(0,V.jsx)(T,{control:d.control,name:`defaultCurrency`,render:({field:e})=>(0,V.jsxs)(C,{children:[(0,V.jsx)(O,{children:f()}),(0,V.jsx)(D,{children:(0,V.jsx)(j,{placeholder:`CNY`,...e})}),(0,V.jsx)(k,{})]})}),(0,V.jsxs)(`div`,{className:`flex gap-2`,children:[(0,V.jsx)(h,{disabled:c.isPending||e.isLoading,type:`submit`,children:a()}),(0,V.jsx)(h,{disabled:c.isPending,onClick:$,type:`button`,variant:`outline`,children:i()})]})]})})}function G(e){let t=new Map;for(let n of e){if(!n.network)continue;let e=n.network.toLowerCase();t.has(e)||t.set(e,{displayName:n.display_name,network:n.network})}return Array.from(t.values())}function K(e,t){if(Z(t))return[];let n=new Map;for(let r of e)if(X(r.network,t))for(let e of r.tokens??[]){if(!e)continue;let t=e.toLowerCase();n.has(t)||n.set(t,{displayName:e.toUpperCase(),value:t})}return Array.from(n.values())}function q(e){return e.displayName?.trim()||e.network}function J(e,t){return e.find(e=>X(e.network,t))}function Y(e,t){return t&&!Z(t)?e.find(e=>X(e.value,t))?.displayName||t.toUpperCase():``}function X(e,t){return String(e??``).toLowerCase()===String(t??``).toLowerCase()}function Z(e){return e===H}function Q(e){return Z(e)?``:e.toLowerCase()}function $(){return(0,V.jsx)(M,{description:d(),title:c(),variant:`section`,children:(0,V.jsx)(W,{})})}var ee=$;export{ee as component}; \ No newline at end of file diff --git a/src/www/assets/epusdt-DkhuuUpL.js b/src/www/assets/epusdt-BvGYu9TV.js similarity index 90% rename from src/www/assets/epusdt-DkhuuUpL.js rename to src/www/assets/epusdt-BvGYu9TV.js index 34ab414..4de62b6 100644 --- a/src/www/assets/epusdt-DkhuuUpL.js +++ b/src/www/assets/epusdt-BvGYu9TV.js @@ -1 +1 @@ -import{_t as e,bt as t,gt as n,ht as r,mt as i,pt as a,vt as o,xt as s,yt as c}from"./messages-Bp0bCjzp.js";import{n as l,t as u}from"./wallet-Bgblr4kl.js";import{t as d}from"./createLucideIcon-Br0Bd5k2.js";var f=d(`circle-pause`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`10`,x2:`10`,y1:`15`,y2:`9`,key:`c1nkhi`}],[`line`,{x1:`14`,x2:`14`,y1:`15`,y2:`9`,key:`h65svq`}]]),p=d(`clock-3`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6h4`,key:`135r8i`}]]),m=d(`link-2-off`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7`,key:`10o201`}],[`path`,{d:`M15 7h2a5 5 0 0 1 4 8`,key:`1d3206`}],[`line`,{x1:`8`,x2:`12`,y1:`12`,y2:`12`,key:`rvw6j4`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),h=[{label:s(),value:`1`,icon:p},{label:t(),value:`2`,icon:l},{label:c(),value:`3`,icon:m},{label:o(),value:`4`,icon:u}],g={1:`bg-amber-500/10 text-amber-600`,2:`bg-emerald-500/10 text-emerald-600`,3:`bg-rose-500/10 text-rose-600`,4:`bg-cyan-500/10 text-cyan-600`};function _(e){return h.find(t=>t.value===String(e??1))?.label??String(e??`-`)}var v=[{label:e(),value:`enabled`,icon:u},{label:n(),value:`disabled`,icon:f},{label:r(),value:`monitoring`,icon:l}];i(),a();var y=[{label:i(),value:`true`},{label:a(),value:`false`}];export{h as a,g as i,y as n,p as o,_ as r,v as t}; \ No newline at end of file +import{_t as e,bt as t,gt as n,ht as r,mt as i,pt as a,vt as o,xt as s,yt as c}from"./messages-BOatyqUm.js";import{n as l,t as u}from"./wallet-CtiawGS1.js";import{t as d}from"./createLucideIcon-Br0Bd5k2.js";var f=d(`circle-pause`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`10`,x2:`10`,y1:`15`,y2:`9`,key:`c1nkhi`}],[`line`,{x1:`14`,x2:`14`,y1:`15`,y2:`9`,key:`h65svq`}]]),p=d(`clock-3`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6h4`,key:`135r8i`}]]),m=d(`link-2-off`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7`,key:`10o201`}],[`path`,{d:`M15 7h2a5 5 0 0 1 4 8`,key:`1d3206`}],[`line`,{x1:`8`,x2:`12`,y1:`12`,y2:`12`,key:`rvw6j4`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),h=[{label:s(),value:`1`,icon:p},{label:t(),value:`2`,icon:l},{label:c(),value:`3`,icon:m},{label:o(),value:`4`,icon:u}],g={1:`bg-amber-500/10 text-amber-600`,2:`bg-emerald-500/10 text-emerald-600`,3:`bg-rose-500/10 text-rose-600`,4:`bg-cyan-500/10 text-cyan-600`};function _(e){return h.find(t=>t.value===String(e??1))?.label??String(e??`-`)}var v=[{label:e(),value:`enabled`,icon:u},{label:n(),value:`disabled`,icon:f},{label:r(),value:`monitoring`,icon:l}];i(),a();var y=[{label:i(),value:`true`},{label:a(),value:`false`}];export{h as a,g as i,y as n,p as o,_ as r,v as t}; \ No newline at end of file diff --git a/src/www/assets/es2015-D8VLlhse.js b/src/www/assets/es2015-DT8UeWzs.js similarity index 98% rename from src/www/assets/es2015-D8VLlhse.js rename to src/www/assets/es2015-DT8UeWzs.js index 41d9753..f486f5f 100644 --- a/src/www/assets/es2015-D8VLlhse.js +++ b/src/www/assets/es2015-DT8UeWzs.js @@ -1,4 +1,4 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";import{t as r}from"./dist-BFnxq45V.js";import{u as i}from"./button-BgMnOYKD.js";import{t as a}from"./dist-B0ikDpJU.js";var o=e(t(),1),s=n(),c=`focusScope.autoFocusOnMount`,l=`focusScope.autoFocusOnUnmount`,u={bubbles:!1,cancelable:!0},d=`FocusScope`,f=o.forwardRef((e,t)=>{let{loop:n=!1,trapped:d=!1,onMountAutoFocus:f,onUnmountAutoFocus:g,..._}=e,[v,x]=o.useState(null),S=a(f),w=a(g),T=o.useRef(null),E=i(t,e=>x(e)),D=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(d){let e=function(e){if(D.paused||!v)return;let t=e.target;v.contains(t)?T.current=t:y(T.current,{select:!0})},t=function(e){if(D.paused||!v)return;let t=e.relatedTarget;t!==null&&(v.contains(t)||y(T.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&y(v)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return v&&r.observe(v,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[d,v,D.paused]),o.useEffect(()=>{if(v){b.add(D);let e=document.activeElement;if(!v.contains(e)){let t=new CustomEvent(c,u);v.addEventListener(c,S),v.dispatchEvent(t),t.defaultPrevented||(p(C(h(v)),{select:!0}),document.activeElement===e&&y(v))}return()=>{v.removeEventListener(c,S),setTimeout(()=>{let t=new CustomEvent(l,u);v.addEventListener(l,w),v.dispatchEvent(t),t.defaultPrevented||y(e??document.body,{select:!0}),v.removeEventListener(l,w),b.remove(D)},0)}}},[v,S,w,D]);let O=o.useCallback(e=>{if(!n&&!d||D.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[i,a]=m(t);i&&a?!e.shiftKey&&r===a?(e.preventDefault(),n&&y(i,{select:!0})):e.shiftKey&&r===i&&(e.preventDefault(),n&&y(a,{select:!0})):r===t&&e.preventDefault()}},[n,d,D.paused]);return(0,s.jsx)(r.div,{tabIndex:-1,..._,ref:E,onKeyDown:O})});f.displayName=d;function p(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(y(r,{select:t}),document.activeElement!==n)return}function m(e){let t=h(e);return[g(t,e),g(t.reverse(),e)]}function h(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function g(e,t){for(let n of e)if(!_(n,{upTo:t}))return n}function _(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function v(e){return e instanceof HTMLInputElement&&`select`in e}function y(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&v(e)&&t&&e.select()}}var b=x();function x(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=S(e,t),e.unshift(t)},remove(t){e=S(e,t),e[0]?.resume()}}}function S(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function C(e){return e.filter(e=>e.tagName!==`A`)}var w=0;function T(){o.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??E()),document.body.insertAdjacentElement(`beforeend`,e[1]??E()),w++,()=>{w===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),w--}},[])}function E(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var D=function(){return D=Object.assign||function(e){for(var t,n=1,r=arguments.length;n`u`)return ge;var t=_e(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ye=R(),B=`data-scroll-locked`,be=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),` +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./dist-Cc8_LDAq.js";import{u as i}from"./button-C_NDYaz8.js";import{t as a}from"./dist-D4X8zGEB.js";var o=e(t(),1),s=n(),c=`focusScope.autoFocusOnMount`,l=`focusScope.autoFocusOnUnmount`,u={bubbles:!1,cancelable:!0},d=`FocusScope`,f=o.forwardRef((e,t)=>{let{loop:n=!1,trapped:d=!1,onMountAutoFocus:f,onUnmountAutoFocus:g,..._}=e,[v,x]=o.useState(null),S=a(f),w=a(g),T=o.useRef(null),E=i(t,e=>x(e)),D=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(d){let e=function(e){if(D.paused||!v)return;let t=e.target;v.contains(t)?T.current=t:y(T.current,{select:!0})},t=function(e){if(D.paused||!v)return;let t=e.relatedTarget;t!==null&&(v.contains(t)||y(T.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&y(v)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return v&&r.observe(v,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[d,v,D.paused]),o.useEffect(()=>{if(v){b.add(D);let e=document.activeElement;if(!v.contains(e)){let t=new CustomEvent(c,u);v.addEventListener(c,S),v.dispatchEvent(t),t.defaultPrevented||(p(C(h(v)),{select:!0}),document.activeElement===e&&y(v))}return()=>{v.removeEventListener(c,S),setTimeout(()=>{let t=new CustomEvent(l,u);v.addEventListener(l,w),v.dispatchEvent(t),t.defaultPrevented||y(e??document.body,{select:!0}),v.removeEventListener(l,w),b.remove(D)},0)}}},[v,S,w,D]);let O=o.useCallback(e=>{if(!n&&!d||D.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[i,a]=m(t);i&&a?!e.shiftKey&&r===a?(e.preventDefault(),n&&y(i,{select:!0})):e.shiftKey&&r===i&&(e.preventDefault(),n&&y(a,{select:!0})):r===t&&e.preventDefault()}},[n,d,D.paused]);return(0,s.jsx)(r.div,{tabIndex:-1,..._,ref:E,onKeyDown:O})});f.displayName=d;function p(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(y(r,{select:t}),document.activeElement!==n)return}function m(e){let t=h(e);return[g(t,e),g(t.reverse(),e)]}function h(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function g(e,t){for(let n of e)if(!_(n,{upTo:t}))return n}function _(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function v(e){return e instanceof HTMLInputElement&&`select`in e}function y(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&v(e)&&t&&e.select()}}var b=x();function x(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=S(e,t),e.unshift(t)},remove(t){e=S(e,t),e[0]?.resume()}}}function S(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function C(e){return e.filter(e=>e.tagName!==`A`)}var w=0;function T(){o.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??E()),document.body.insertAdjacentElement(`beforeend`,e[1]??E()),w++,()=>{w===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),w--}},[])}function E(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var D=function(){return D=Object.assign||function(e){for(var t,n=1,r=arguments.length;n`u`)return ge;var t=_e(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ye=R(),B=`data-scroll-locked`,be=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),` .${te} { overflow: hidden ${r}; padding-right: ${s}px ${r}; diff --git a/src/www/assets/font-provider-CtpKPVa7.js b/src/www/assets/font-provider-BPsIRWbb.js similarity index 91% rename from src/www/assets/font-provider-CtpKPVa7.js rename to src/www/assets/font-provider-BPsIRWbb.js index 25ccd3f..dc7120c 100644 --- a/src/www/assets/font-provider-CtpKPVa7.js +++ b/src/www/assets/font-provider-BPsIRWbb.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";import{n as r,r as i,t as a}from"./cookies-BzZOQYPw.js";var o=e(t(),1),s=[`inter`,`manrope`,`noto`,`system`],c=n(),l=`font`,u=3600*24*365,d=(0,o.createContext)(null);function f({children:e}){let[t,n]=(0,o.useState)(()=>{let e=a(l);return s.includes(e)?e:s[0]});return(0,o.useEffect)(()=>{(e=>{let t=document.documentElement;t.classList.remove(...[...t.classList].filter(e=>e.startsWith(`font-`))),t.classList.add(`font-${e}`)})(t)},[t]),(0,c.jsx)(d,{value:{font:t,setFont:e=>{i(l,e,u),n(e)},resetFont:()=>{r(l),n(s[0])}},children:e})}var p=()=>{let e=(0,o.useContext)(d);if(!e)throw Error(`useFont must be used within a FontProvider`);return e};export{p as n,s as r,f as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{n as r,r as i,t as a}from"./cookies-BzZOQYPw.js";var o=e(t(),1),s=[`inter`,`manrope`,`noto`,`system`],c=n(),l=`font`,u=3600*24*365,d=(0,o.createContext)(null);function f({children:e}){let[t,n]=(0,o.useState)(()=>{let e=a(l);return s.includes(e)?e:s[0]});return(0,o.useEffect)(()=>{(e=>{let t=document.documentElement;t.classList.remove(...[...t.classList].filter(e=>e.startsWith(`font-`))),t.classList.add(`font-${e}`)})(t)},[t]),(0,c.jsx)(d,{value:{font:t,setFont:e=>{i(l,e,u),n(e)},resetFont:()=>{r(l),n(s[0])}},children:e})}var p=()=>{let e=(0,o.useContext)(d);if(!e)throw Error(`useFont must be used within a FontProvider`);return e};export{p as n,s as r,f as t}; \ No newline at end of file diff --git a/src/www/assets/forbidden-CgQyYxDt.js b/src/www/assets/forbidden-CgQyYxDt.js new file mode 100644 index 0000000..3ab373f --- /dev/null +++ b/src/www/assets/forbidden-CgQyYxDt.js @@ -0,0 +1 @@ +import{Mt as e,Nt as t,Od as n,Pt as r,kd as i,tm as a}from"./messages-BOatyqUm.js";import{t as o}from"./useRouter-DtTm7XkK.js";import{t as s}from"./useNavigate-7u4DX0Ho.js";import{t as c}from"./button-C_NDYaz8.js";var l=a();function u(){let a=s(),{history:u}=o();return(0,l.jsx)(`div`,{className:`h-svh`,children:(0,l.jsxs)(`div`,{className:`m-auto flex h-full w-full flex-col items-center justify-center gap-2`,children:[(0,l.jsx)(`h1`,{className:`font-bold text-[7rem] leading-tight`,children:`403`}),(0,l.jsx)(`span`,{className:`font-medium`,children:r()}),(0,l.jsxs)(`p`,{className:`text-center text-muted-foreground`,children:[t(),` `,(0,l.jsx)(`br`,{}),e()]}),(0,l.jsxs)(`div`,{className:`mt-6 flex gap-4`,children:[(0,l.jsx)(c,{onClick:()=>u.go(-1),variant:`outline`,children:i()}),(0,l.jsx)(c,{onClick:()=>a({to:`/dashboard`}),children:n()})]})]})})}export{u as t}; \ No newline at end of file diff --git a/src/www/assets/forbidden-DZPSchCU.js b/src/www/assets/forbidden-DZPSchCU.js deleted file mode 100644 index 081c5db..0000000 --- a/src/www/assets/forbidden-DZPSchCU.js +++ /dev/null @@ -1 +0,0 @@ -import{Dd as e,Mt as t,Nt as n,Od as r,Pt as i,em as a}from"./messages-Bp0bCjzp.js";import{t as o}from"./useRouter-DtTm7XkK.js";import{t as s}from"./useNavigate-7u4DX0Ho.js";import{t as c}from"./button-BgMnOYKD.js";var l=a();function u(){let a=s(),{history:u}=o();return(0,l.jsx)(`div`,{className:`h-svh`,children:(0,l.jsxs)(`div`,{className:`m-auto flex h-full w-full flex-col items-center justify-center gap-2`,children:[(0,l.jsx)(`h1`,{className:`font-bold text-[7rem] leading-tight`,children:`403`}),(0,l.jsx)(`span`,{className:`font-medium`,children:i()}),(0,l.jsxs)(`p`,{className:`text-center text-muted-foreground`,children:[n(),` `,(0,l.jsx)(`br`,{}),t()]}),(0,l.jsxs)(`div`,{className:`mt-6 flex gap-4`,children:[(0,l.jsx)(c,{onClick:()=>u.go(-1),variant:`outline`,children:r()}),(0,l.jsx)(c,{onClick:()=>a({to:`/dashboard`}),children:e()})]})]})})}export{u as t}; \ No newline at end of file diff --git a/src/www/assets/form-BhKmyN6D.js b/src/www/assets/form-KfFEakes.js similarity index 99% rename from src/www/assets/form-BhKmyN6D.js rename to src/www/assets/form-KfFEakes.js index 7e9c346..d21abca 100644 --- a/src/www/assets/form-BhKmyN6D.js +++ b/src/www/assets/form-KfFEakes.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";import{i as r,o as i}from"./button-BgMnOYKD.js";import{t as a}from"./label-CQ1eaOwZ.js";import{d as o,l as s,u as c}from"./zod-rwFXxHlg.js";var l=e(t(),1),u=e=>e.type===`checkbox`,d=e=>e instanceof Date,f=e=>e==null,p=e=>typeof e==`object`,m=e=>!f(e)&&!Array.isArray(e)&&p(e)&&!d(e),h=e=>m(e)&&e.target?u(e.target)?e.target.checked:e.target.value:e,g=(e,t)=>t.split(`.`).some((t,n,r)=>!isNaN(Number(t))&&e.has(r.slice(0,n).join(`.`))),_=e=>{let t=e.constructor&&e.constructor.prototype;return m(t)&&t.hasOwnProperty(`isPrototypeOf`)},v=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;function y(e){if(e instanceof Date)return new Date(e);let t=typeof FileList<`u`&&e instanceof FileList;if(v&&(e instanceof Blob||t))return e;let n=Array.isArray(e);if(!n&&!(m(e)&&_(e)))return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=y(e[t]));return r}var b=e=>/^\w*$/.test(e),x=e=>e===void 0,S=e=>Array.isArray(e)?e.filter(Boolean):[],C=e=>S(e.replace(/["|']|\]/g,``).split(/\.|\[/)),w=(e,t,n)=>{if(!t||!m(e))return n;let r=(b(t)?[t]:C(t)).reduce((e,t)=>f(e)?e:e[t],e);return x(r)||r===e?x(e[t])?n:e[t]:r},T=e=>typeof e==`boolean`,E=e=>typeof e==`function`,D=(e,t,n)=>{let r=-1,i=b(t)?[t]:C(t),a=i.length,o=a-1;for(;++rl.useContext(M),P=(e,t,n,r=!0)=>{let i={defaultValues:t._defaultValues};for(let a in e)Object.defineProperty(i,a,{get:()=>{let i=a;return t._proxyFormState[i]!==k.all&&(t._proxyFormState[i]=!r||k.all),n&&(n[i]=!0),e[i]}});return i},F=typeof window<`u`?l.useLayoutEffect:l.useEffect;function te(e){let t=N(),{control:n=t,disabled:r,name:i,exact:a}=e||{},[o,s]=l.useState(n._formState),c=l.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return F(()=>n._subscribe({name:i,formState:c.current,exact:a,callback:e=>{!r&&s({...n._formState,...e})}}),[i,r,a]),l.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),l.useMemo(()=>P(o,n,c.current,!1),[o,n])}var I=e=>typeof e==`string`,ne=(e,t,n,r,i)=>I(e)?(r&&t.watch.add(e),w(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),w(n,e))):(r&&(t.watchAll=!0),n),re=e=>f(e)||!p(e);function L(e,t,n=new WeakSet){if(re(e)||re(t))return Object.is(e,t);if(d(e)&&d(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(let a of r){let r=e[a];if(!i.includes(a))return!1;if(a!==`ref`){let e=t[a];if(d(r)&&d(e)||(m(r)||Array.isArray(r))&&(m(e)||Array.isArray(e))?!L(r,e,n):!Object.is(r,e))return!1}}return!0}function ie(e){let t=N(),{control:n=t,name:r,defaultValue:i,disabled:a,exact:o,compute:s}=e||{},c=l.useRef(i),u=l.useRef(s),d=l.useRef(void 0),f=l.useRef(n),p=l.useRef(r);u.current=s;let[m,h]=l.useState(()=>{let e=n._getWatch(r,c.current);return u.current?u.current(e):e}),g=l.useCallback(e=>{let t=ne(r,n._names,e||n._formValues,!1,c.current);return u.current?u.current(t):t},[n._formValues,n._names,r]),_=l.useCallback(e=>{if(!a){let t=ne(r,n._names,e||n._formValues,!1,c.current);if(u.current){let e=u.current(t);L(e,d.current)||(h(e),d.current=e)}else h(t)}},[n._formValues,n._names,a,r]);F(()=>((f.current!==n||!L(p.current,r))&&(f.current=n,p.current=r,_()),n._subscribe({name:r,formState:{values:!0},exact:o,callback:e=>{_(e.values)}})),[n,o,r,_]),l.useEffect(()=>n._removeUnmounted());let v=f.current!==n,y=p.current,b=l.useMemo(()=>{if(a)return null;let e=!v&&!L(y,r);return v||e?g():null},[a,v,r,y,g]);return b===null?m:b}function ae(e){let t=N(),{name:n,disabled:r,control:i=t,shouldUnregister:a,defaultValue:o,exact:s=!0}=e,c=g(i._names.array,n),u=ie({control:i,name:n,defaultValue:l.useMemo(()=>w(i._formValues,n,w(i._defaultValues,n,o)),[i,n,o]),exact:s}),d=te({control:i,name:n,exact:s}),f=l.useRef(e),p=l.useRef(void 0),m=l.useRef(i.register(n,{...e.rules,value:u,...T(e.disabled)?{disabled:e.disabled}:{}}));f.current=e;let _=l.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!w(d.errors,n)},isDirty:{enumerable:!0,get:()=>!!w(d.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!w(d.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!w(d.validatingFields,n)},error:{enumerable:!0,get:()=>w(d.errors,n)}}),[d,n]),v=l.useCallback(e=>m.current.onChange({target:{value:h(e),name:n},type:O.CHANGE}),[n]),b=l.useCallback(()=>m.current.onBlur({target:{value:w(i._formValues,n),name:n},type:O.BLUR}),[n,i._formValues]),S=l.useCallback(e=>{let t=w(i._fields,n);t&&t._f&&e&&(t._f.ref={focus:()=>E(e.focus)&&e.focus(),select:()=>E(e.select)&&e.select(),setCustomValidity:t=>E(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>E(e.reportValidity)&&e.reportValidity()})},[i._fields,n]),C=l.useMemo(()=>({name:n,value:u,...T(r)||d.disabled?{disabled:d.disabled||r}:{},onChange:v,onBlur:b,ref:S}),[n,r,d.disabled,v,b,S,u]);return l.useEffect(()=>{let e=i._options.shouldUnregister||a,t=p.current;t&&t!==n&&!c&&i.unregister(t),i.register(n,{...f.current.rules,...T(f.current.disabled)?{disabled:f.current.disabled}:{}});let r=(e,t)=>{let n=w(i._fields,e);n&&n._f&&(n._f.mount=t)};if(r(n,!0),e){let e=y(w(i._options.defaultValues,n,f.current.defaultValue));D(i._defaultValues,n,e),x(w(i._formValues,n))&&D(i._formValues,n,e)}return!c&&i.register(n),p.current=n,()=>{(c?e&&!i._state.action:e)?i.unregister(n):r(n,!1)}},[n,i,c,a]),l.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),l.useMemo(()=>({field:C,formState:d,fieldState:_}),[C,d,_])}var oe=e=>e.render(ae(e)),se=l.createContext(null);se.displayName=`HookFormContext`;var ce=()=>l.useContext(se),R=e=>{let{children:t,watch:n,getValues:r,getFieldState:i,setError:a,clearErrors:o,setValue:s,trigger:c,formState:u,resetField:d,reset:f,handleSubmit:p,unregister:m,control:h,register:g,setFocus:_,subscribe:v}=e,y=l.useMemo(()=>({watch:n,getValues:r,getFieldState:i,setError:a,clearErrors:o,setValue:s,trigger:c,formState:u,resetField:d,reset:f,handleSubmit:p,unregister:m,control:h,register:g,setFocus:_,subscribe:v}),[o,h,u,i,r,p,g,f,d,a,_,s,v,c,m,n]);return l.createElement(se.Provider,{value:y},l.createElement(M.Provider,{value:y.control},t))},le=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},ue=e=>Array.isArray(e)?e:[e],de=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function fe(e,t){let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],a=t[r];if(i&&m(i)&&a){let e=fe(i,a);m(e)&&(n[r]=e)}else e[r]&&(n[r]=a)}return n}var z=e=>m(e)&&!Object.keys(e).length,pe=e=>e.type===`file`,me=e=>{if(!v)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},he=e=>e.type===`select-multiple`,B=e=>e.type===`radio`,ge=e=>B(e)||u(e),_e=e=>me(e)&&e.isConnected;function V(e,t){let n=t.slice(0,-1).length,r=0;for(;r{for(let t in e)if(E(e[t]))return!0;return!1};function W(e){return Array.isArray(e)||m(e)&&!U(e)}function ye(e,t={}){for(let n in e){let r=e[n];W(r)?(t[n]=Array.isArray(r)?[]:{},ye(r,t[n])):x(r)||(t[n]=!0)}return t}function G(e,t,n){n||=ye(t);for(let r in e){let i=e[r];if(W(i))x(t)||re(n[r])?n[r]=ye(i,Array.isArray(i)?[]:{}):G(i,f(t)?{}:t[r],n[r]);else{let e=t[r];n[r]=!L(i,e)}}return n}var K={value:!1,isValid:!1},be={value:!0,isValid:!0},q=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!x(e[0].attributes.value)?x(e[0].value)||e[0].value===``?be:{value:e[0].value,isValid:!0}:be:K}return K},xe=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>x(e)?e:t?e===``?NaN:e&&+e:n&&I(e)?new Date(e):r?r(e):e,Se={isValid:!1,value:null},Ce=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,Se):Se;function we(e){let t=e.ref;return pe(t)?t.files:B(t)?Ce(e.refs).value:he(t)?[...t.selectedOptions].map(({value:e})=>e):u(t)?q(e.refs).value:xe(x(t.value)?e.ref.value:t.value,e)}var Te=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Ee=(e,t,n,r)=>{let i={};for(let n of e){let e=w(t,n);e&&D(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},J=e=>e instanceof RegExp,Y=e=>x(e)?e:J(e)?e.source:m(e)?J(e.value)?e.value.source:e.value:e,De=e=>({isOnSubmit:!e||e===k.onSubmit,isOnBlur:e===k.onBlur,isOnChange:e===k.onChange,isOnAll:e===k.all,isOnTouch:e===k.onTouched}),Oe=`AsyncFunction`,ke=e=>!!e&&!!e.validate&&!!(E(e.validate)&&e.validate.constructor.name===Oe||m(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===Oe)),Ae=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),je=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),X=(e,t,n,r)=>{for(let i of n||Object.keys(e)){let n=w(e,i);if(n){let{_f:e,...a}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r||e.ref&&t(e.ref,e.name)&&!r)return!0;if(X(a,t))break}else if(m(a)&&X(a,t))break}}};function Me(e,t,n){let r=w(e,n);if(r||b(n))return{error:r,name:n};let i=n.split(`.`);for(;i.length;){let r=i.join(`.`),a=w(t,r),o=w(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};if(o&&o.root&&o.root.type)return{name:`${r}.root`,error:o.root};i.pop()}return{name:n}}var Ne=(e,t,n,r)=>{n(e);let{name:i,...a}=e;return z(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!r||k.all))},Pe=(e,t,n)=>!e||!t||e===t||ue(e).some(e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))),Fe=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,Ie=(e,t)=>!S(w(e,t)).length&&H(e,t),Le=(e,t,n)=>{let r=ue(w(e,n));return D(r,ee,t[n]),D(e,n,r),e};function Re(e,t,n=`validate`){if(I(e)||Array.isArray(e)&&e.every(I)||T(e)&&!e)return{type:n,message:I(e)?e:``,ref:t}}var Z=e=>m(e)&&!J(e)?e:{value:e,message:``},ze=async(e,t,n,r,i,a)=>{let{ref:o,refs:s,required:c,maxLength:l,minLength:d,min:p,max:h,pattern:g,validate:_,name:v,valueAsNumber:y,mount:b}=e._f,S=w(n,v);if(!b||t.has(v))return{};let C=s?s[0]:o,D=e=>{i&&C.reportValidity&&(C.setCustomValidity(T(e)?``:e||``),C.reportValidity())},O={},k=B(o),j=u(o),ee=k||j,M=(y||pe(o))&&x(o.value)&&x(S)||me(o)&&o.value===``||S===``||Array.isArray(S)&&!S.length,N=le.bind(null,v,r,O),P=(e,t,n,r=A.maxLength,i=A.minLength)=>{let a=e?t:n;O[v]={type:e?r:i,message:a,ref:o,...N(e?r:i,a)}};if(a?!Array.isArray(S)||!S.length:c&&(!ee&&(M||f(S))||T(S)&&!S||j&&!q(s).isValid||k&&!Ce(s).isValid)){let{value:e,message:t}=I(c)?{value:!!c,message:c}:Z(c);if(e&&(O[v]={type:A.required,message:t,ref:C,...N(A.required,t)},!r))return D(t),O}if(!M&&(!f(p)||!f(h))){let e,t,n=Z(h),i=Z(p);if(!f(S)&&!isNaN(S)){let r=o.valueAsNumber||S&&+S;f(n.value)||(e=r>n.value),f(i.value)||(t=rnew Date(new Date().toDateString()+` `+e),s=o.type==`time`,c=o.type==`week`;I(n.value)&&S&&(e=s?a(S)>a(n.value):c?S>n.value:r>new Date(n.value)),I(i.value)&&S&&(t=s?a(S)+e.value,i=!f(t.value)&&S.length<+t.value;if((n||i)&&(P(n,e.message,t.message),!r))return D(O[v].message),O}if(g&&!M&&I(S)){let{value:e,message:t}=Z(g);if(J(e)&&!S.match(e)&&(O[v]={type:A.pattern,message:t,ref:o,...N(A.pattern,t)},!r))return D(t),O}if(_){if(E(_)){let e=Re(await _(S,n),C);if(e&&(O[v]={...e,...N(A.validate,e.message)},!r))return D(e.message),O}else if(m(_)){let e={};for(let t in _){if(!z(e)&&!r)break;let i=Re(await _[t](S,n),C,t);i&&(e={...i,...N(t,i.message)},D(i.message),r&&(O[v]=e))}if(!z(e)&&(O[v]={ref:C,...e},!r))return O}}return D(!0),O},Be={mode:k.onSubmit,reValidateMode:k.onChange,shouldFocusError:!0};function Ve(e={}){let t={...Be,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:E(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=(m(t.defaultValues)||m(t.values))&&y(t.defaultValues||t.values)||{},a=t.shouldUnregister?{}:y(i),o={action:!1,mount:!1,watch:!1,keepIsValid:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},c,l=0,p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},_={...p},b={..._},C={array:de(),state:de()},M=t.criteriaMode===k.all,N=e=>t=>{clearTimeout(l),l=setTimeout(e,t)},P=async e=>{if(!o.keepIsValid&&!t.disabled&&(_.isValid||b.isValid||e)){let e;t.resolver?(e=z((await R()).errors),F()):e=await V({fields:r,onlyCheckValid:!0,eventType:O.VALID}),e!==n.isValid&&C.state.next({isValid:e})}},F=(e,r)=>{!t.disabled&&(_.isValidating||_.validatingFields||b.isValidating||b.validatingFields)&&((e||Array.from(s.mount)).forEach(e=>{e&&(r?D(n.validatingFields,e,r):H(n.validatingFields,e))}),C.state.next({validatingFields:n.validatingFields,isValidating:!z(n.validatingFields)}))},te=e=>{let t=G(i,a),r=Te(e);D(n.dirtyFields,r,w(t,r))},re=(e,i=[],s,c,l=!0,u=!0)=>{if(c&&s&&!t.disabled){if(o.action=!0,u&&Array.isArray(w(r,e))){let t=s(w(r,e),c.argA,c.argB);l&&D(r,e,t)}if(u&&Array.isArray(w(n.errors,e))){let t=s(w(n.errors,e),c.argA,c.argB);l&&D(n.errors,e,t),Ie(n.errors,e)}if((_.touchedFields||b.touchedFields)&&u&&Array.isArray(w(n.touchedFields,e))){let t=s(w(n.touchedFields,e),c.argA,c.argB);l&&D(n.touchedFields,e,t)}(_.dirtyFields||b.dirtyFields)&&te(e),C.state.next({name:e,isDirty:U(e,i),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else D(a,e,i)},ie=(e,t)=>{D(n.errors,e,t),C.state.next({errors:n.errors})},ae=e=>{n.errors=e,C.state.next({errors:n.errors,isValid:!1})},oe=(e,t,n,s)=>{let c=w(r,e);if(c){let r=w(a,e,x(n)?w(i,e):n);x(r)||s&&s.defaultChecked||t?D(a,e,t?r:we(c._f)):K(e,r),o.mount&&!o.action&&P()}},se=(e,r,a,o,s)=>{let c=!1,l=!1,u={name:e};if(!t.disabled){if(!a||o){(_.isDirty||b.isDirty)&&(l=n.isDirty,n.isDirty=u.isDirty=U(),c=l!==u.isDirty);let t=L(w(i,e),r);l=!!w(n.dirtyFields,e),t?H(n.dirtyFields,e):D(n.dirtyFields,e,!0),u.dirtyFields=n.dirtyFields,c||=(_.dirtyFields||b.dirtyFields)&&l!==!t}if(a){let t=w(n.touchedFields,e);t||(D(n.touchedFields,e,a),u.touchedFields=n.touchedFields,c||=(_.touchedFields||b.touchedFields)&&t!==a)}c&&s&&C.state.next(u)}return c?u:{}},ce=(e,r,i,a)=>{let o=w(n.errors,e),s=(_.isValid||b.isValid)&&T(r)&&n.isValid!==r;if(t.delayError&&i?(c=N(()=>ie(e,i)),c(t.delayError)):(clearTimeout(l),c=null,i?D(n.errors,e,i):H(n.errors,e)),(i?!L(o,i):o)||!z(a)||s){let t={...a,...s&&T(r)?{isValid:r}:{},errors:n.errors,name:e};n={...n,...t},C.state.next(t)}},R=async e=>(F(e,!0),await t.resolver(a,t.context,Ee(e||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),le=async e=>{let{errors:t}=await R(e);if(F(e),e)for(let r of e){let e=w(t,r);e?D(n.errors,r,e):H(n.errors,r)}else n.errors=t;return t},B=async({name:t,eventType:r})=>{if(e.validate){let i=await e.validate({formValues:a,formState:n,name:t,eventType:r});if(m(i))for(let e in i)i[e]&&Ve(`${j}.${e}`,{message:I(i.message)?i.message:``,type:A.validate});else I(i)||!i?Ve(j,{message:i||``,type:A.validate}):Z(j);return i}return!0},V=async({fields:r,onlyCheckValid:i,name:o,eventType:c,context:l={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(l.runRootValidation=!0,!await B({name:o,eventType:c})&&(l.valid=!1,i)))return l.valid;for(let o in r){let u=r[o];if(u){let{_f:r,...d}=u;if(r){let o=s.array.has(r.name),c=u._f&&ke(u._f);c&&_.validatingFields&&F([r.name],!0);let d=await ze(u,s.disabled,a,M,t.shouldUseNativeValidation&&!i,o);if(c&&_.validatingFields&&F([r.name]),d[r.name]&&(l.valid=!1,i)||(!i&&(w(d,r.name)?o?Le(n.errors,d,r.name):D(n.errors,r.name,d[r.name]):H(n.errors,r.name)),e.shouldUseNativeValidation&&d[r.name]))break}!z(d)&&await V({context:l,onlyCheckValid:i,fields:d,name:o,eventType:c})}}return l.valid},ve=()=>{for(let e of s.unMount){let t=w(r,e);t&&(t._f.refs?t._f.refs.every(e=>!_e(e)):!_e(t._f.ref))&&Ge(e)}s.unMount=new Set},U=(e,n)=>!t.disabled&&(e&&n&&D(a,e,n),!L(Oe(),i)),W=(e,t,n)=>ne(e,s,{...o.mount?a:x(t)?i:I(e)?{[e]:t}:t},n,t),ye=e=>S(w(o.mount?a:i,e,t.shouldUnregister?w(i,e,[]):[])),K=(e,t,n={})=>{let i=w(r,e),o=t;if(i){let n=i._f;n&&(!n.disabled&&D(a,e,xe(t,n)),o=me(n.ref)&&f(t)?``:t,he(n.ref)?[...n.ref.options].forEach(e=>e.selected=o.includes(e.value)):n.refs?u(n.ref)?n.refs.forEach(e=>{(!e.defaultChecked||!e.disabled)&&(Array.isArray(o)?e.checked=!!o.find(t=>t===e.value):e.checked=o===e.value||!!o)}):n.refs.forEach(e=>e.checked=e.value===o):pe(n.ref)?n.ref.value=``:(n.ref.value=o,n.ref.type||C.state.next({name:e,values:y(a)})))}(n.shouldDirty||n.shouldTouch)&&se(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&J(e)},be=(e,t,n)=>{for(let i in t){if(!t.hasOwnProperty(i))return;let a=t[i],o=e+`.`+i,c=w(r,o);(s.array.has(e)||m(a)||c&&!c._f)&&!d(a)?be(o,a,n):K(o,a,n)}},q=(e,t,i={})=>{let c=w(r,e),l=s.array.has(e),u=y(t);D(a,e,u),l?(C.array.next({name:e,values:y(a)}),(_.isDirty||_.dirtyFields||b.isDirty||b.dirtyFields)&&i.shouldDirty&&(te(e),C.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:U(e,u)}))):c&&!c._f&&!f(u)?be(e,u,i):K(e,u,i),je(e,s)?C.state.next({...n,name:e,values:y(a)}):C.state.next({name:o.mount?e:void 0,values:y(a)})},Se=async i=>{o.mount=!0;let l=i.target,u=l.name,f=!0,p=w(r,u),m=e=>{f=Number.isNaN(e)||d(e)&&isNaN(e.getTime())||L(e,w(a,u,e))},g=De(t.mode),v=De(t.reValidateMode);if(p){let o,d,x=l.type?we(p._f):h(i),S=i.type===O.BLUR||i.type===O.FOCUS_OUT,T=!Ae(p._f)&&!e.validate&&!t.resolver&&!w(n.errors,u)&&!p._f.deps||Fe(S,w(n.touchedFields,u),n.isSubmitted,v,g),E=je(u,s,S);D(a,u,x),S?(!l||!l.readOnly)&&(p._f.onBlur&&p._f.onBlur(i),c&&c(0)):p._f.onChange&&p._f.onChange(i);let k=se(u,x,S),A=!z(k)||E;if(!S&&C.state.next({name:u,type:i.type,values:y(a)}),T)return(_.isValid||b.isValid)&&(t.mode===`onBlur`?S&&P():S||P()),A&&C.state.next({name:u,...E?{}:k});if(!t.resolver&&e.validate&&await B({name:u,eventType:i.type}),!S&&E&&C.state.next({...n}),t.resolver){let{errors:e}=await R([u]);if(F([u]),m(x),f){let t=Me(n.errors,r,u),i=Me(e,r,t.name||u);o=i.error,u=i.name,d=z(e)}}else F([u],!0),o=(await ze(p,s.disabled,a,M,t.shouldUseNativeValidation))[u],F([u]),m(x),f&&(o?d=!1:(_.isValid||b.isValid)&&(d=await V({fields:r,onlyCheckValid:!0,name:u,eventType:i.type})));f&&(p._f.deps&&(!Array.isArray(p._f.deps)||p._f.deps.length>0)&&J(p._f.deps),ce(u,d,o,k))}},Ce=(e,t)=>{if(w(n.errors,t)&&e.focus)return e.focus(),1},J=async(e,i={})=>{let a,o,c=ue(e);if(t.resolver){let t=await le(x(e)?e:c);a=z(t),o=e?!c.some(e=>w(t,e)):a}else e?(o=(await Promise.all(c.map(async e=>{let t=w(r,e);return await V({fields:t&&t._f?{[e]:t}:t,eventType:O.TRIGGER})}))).every(Boolean),!(!o&&!n.isValid)&&P()):o=a=await V({fields:r,name:e,eventType:O.TRIGGER});return C.state.next({...!I(e)||(_.isValid||b.isValid)&&a!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:a}:{},errors:n.errors}),i.shouldFocus&&!o&&X(r,Ce,e?c:s.mount),o},Oe=(e,t)=>{let r={...o.mount?a:i};return t&&(r=fe(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),x(e)?r:I(e)?w(r,e):e.map(e=>w(r,e))},Re=(e,t)=>({invalid:!!w((t||n).errors,e),isDirty:!!w((t||n).dirtyFields,e),error:w((t||n).errors,e),isValidating:!!w(n.validatingFields,e),isTouched:!!w((t||n).touchedFields,e)}),Z=e=>{let t=e?ue(e):void 0;t?.forEach(e=>H(n.errors,e)),t?t.forEach(e=>{C.state.next({name:e,errors:n.errors})}):C.state.next({errors:{}})},Ve=(e,t,i)=>{let a=(w(r,e,{_f:{}})._f||{}).ref,{ref:o,message:s,type:c,...l}=w(n.errors,e)||{};D(n.errors,e,{...l,...t,ref:a}),C.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&a&&a.focus&&a.focus()},He=(e,t)=>E(e)?C.state.subscribe({next:n=>`values`in n&&e(W(void 0,t),n)}):W(e,t,!0),Ue=e=>C.state.subscribe({next:t=>{Pe(e.name,t.name,e.exact)&&Ne(t,e.formState||_,et,e.reRenderRoot)&&e.callback({values:{...a},...n,...t,defaultValues:i})}}).unsubscribe,We=e=>(o.mount=!0,b={...b,...e.formState},Ue({...e,formState:{...p,...e.formState}})),Ge=(e,o={})=>{for(let c of e?ue(e):s.mount)s.mount.delete(c),s.array.delete(c),o.keepValue||(H(r,c),H(a,c)),!o.keepError&&H(n.errors,c),!o.keepDirty&&H(n.dirtyFields,c),!o.keepTouched&&H(n.touchedFields,c),!o.keepIsValidating&&H(n.validatingFields,c),!t.shouldUnregister&&!o.keepDefaultValue&&H(i,c);C.state.next({values:y(a)}),C.state.next({...n,...o.keepDirty?{isDirty:U()}:{}}),!o.keepIsValid&&P()},Ke=({disabled:e,name:t})=>{if(T(e)&&o.mount||e||s.disabled.has(t)){let n=s.disabled.has(t)!==!!e;e?s.disabled.add(t):s.disabled.delete(t),n&&o.mount&&!o.action&&P()}},qe=(e,n={})=>{let a=w(r,e),c=T(n.disabled)||T(t.disabled),l=!s.registerName.has(e)&&a&&!a._f.mount;return D(r,e,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...n}}),s.mount.add(e),a&&!l?Ke({disabled:T(n.disabled)?n.disabled:t.disabled,name:e}):oe(e,!0,n.value),{...c?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:Y(n.min),max:Y(n.max),minLength:Y(n.minLength),maxLength:Y(n.maxLength),pattern:Y(n.pattern)}:{},name:e,onChange:Se,onBlur:Se,ref:c=>{if(c){s.registerName.add(e),qe(e,n),s.registerName.delete(e),a=w(r,e);let t=x(c.value)&&c.querySelectorAll&&c.querySelectorAll(`input,select,textarea`)[0]||c,o=ge(t),l=a._f.refs||[];if(o?l.find(e=>e===t):t===a._f.ref)return;D(r,e,{_f:{...a._f,...o?{refs:[...l.filter(_e),t,...Array.isArray(w(i,e))?[{}]:[]],ref:{type:t.type,name:e}}:{ref:t}}}),oe(e,!1,void 0,t)}else a=w(r,e,{}),a._f&&(a._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&!(g(s.array,e)&&o.action)&&s.unMount.add(e)}}},Je=()=>t.shouldFocusError&&X(r,Ce,s.mount),Ye=e=>{T(e)&&(C.state.next({disabled:e}),X(r,(t,n)=>{let i=w(r,n);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0,!1))},Xe=(e,i)=>async o=>{let c;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let l=y(a);if(C.state.next({isSubmitting:!0}),t.resolver){let{errors:e,values:t}=await R();F(),n.errors=e,l=y(t)}else await V({fields:r,eventType:O.SUBMIT});if(s.disabled.size)for(let e of s.disabled)H(l,e);if(H(n.errors,ee),z(n.errors)){C.state.next({errors:{}});try{await e(l,o)}catch(e){c=e}}else i&&await i({...n.errors},o),Je(),setTimeout(Je);if(C.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:z(n.errors)&&!c,submitCount:n.submitCount+1,errors:n.errors}),c)throw c},Ze=(e,t={})=>{w(r,e)&&(x(t.defaultValue)?q(e,y(w(i,e))):(q(e,t.defaultValue),D(i,e,y(t.defaultValue))),t.keepTouched||H(n.touchedFields,e),t.keepDirty||(H(n.dirtyFields,e),n.isDirty=t.defaultValue?U(e,y(w(i,e))):U()),t.keepError||(H(n.errors,e),_.isValid&&P()),C.state.next({...n}))},Q=(e,c={})=>{let l=e?y(e):i,u=y(l),d=z(e),f=d?i:u;if(c.keepDefaultValues||(i=l),!c.keepValues){if(c.keepDirtyValues){let e=new Set([...s.mount,...Object.keys(G(i,a))]);for(let t of Array.from(e)){let e=w(n.dirtyFields,t),r=w(a,t),i=w(f,t);e&&!x(r)?D(f,t,r):!e&&!x(i)&&q(t,i)}}else{if(v&&x(e))for(let e of s.mount){let t=w(r,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(me(e)){let t=e.closest(`form`);if(t){t.reset();break}}}}if(c.keepFieldsRef)for(let e of s.mount)q(e,w(f,e));else r={}}a=t.shouldUnregister?c.keepDefaultValues?y(i):{}:y(f),C.array.next({values:{...f}}),C.state.next({values:{...f}})}s={mount:c.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:``},o.mount=!_.isValid||!!c.keepIsValid||!!c.keepDirtyValues||!t.shouldUnregister&&!z(f),o.watch=!!t.shouldUnregister,o.keepIsValid=!!c.keepIsValid,o.action=!1,c.keepErrors||(n.errors={}),C.state.next({submitCount:c.keepSubmitCount?n.submitCount:0,isDirty:d?!1:c.keepDirty?n.isDirty:!!(c.keepDefaultValues&&!L(e,i)),isSubmitted:c.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:d?{}:c.keepDirtyValues?c.keepDefaultValues&&a?G(i,a):n.dirtyFields:c.keepDefaultValues&&e?G(i,e):c.keepDirty?n.dirtyFields:{},touchedFields:c.keepTouched?n.touchedFields:{},errors:c.keepErrors?n.errors:{},isSubmitSuccessful:c.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},Qe=(e,n)=>Q(E(e)?e(a):e,{...t.resetOptions,...n}),$e=(e,t={})=>{let n=w(r,e),i=n&&n._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&E(e.select)&&e.select()})}},et=e=>{n={...n,...e}},$={control:{register:qe,unregister:Ge,getFieldState:Re,handleSubmit:Xe,setError:Ve,_subscribe:Ue,_runSchema:R,_updateIsValidating:F,_focusError:Je,_getWatch:W,_getDirty:U,_setValid:P,_setFieldArray:re,_setDisabledField:Ke,_setErrors:ae,_getFieldArray:ye,_reset:Q,_resetDefaultValues:()=>E(t.defaultValues)&&t.defaultValues().then(e=>{Qe(e,t.resetOptions),C.state.next({isLoading:!1})}),_removeUnmounted:ve,_disableForm:Ye,_subjects:C,_proxyFormState:_,get _fields(){return r},get _formValues(){return a},get _state(){return o},set _state(e){o=e},get _defaultValues(){return i},get _names(){return s},set _names(e){s=e},get _formState(){return n},get _options(){return t},set _options(e){t={...t,...e}}},subscribe:We,trigger:J,register:qe,handleSubmit:Xe,watch:He,setValue:q,getValues:Oe,reset:Qe,resetField:Ze,clearErrors:Z,unregister:Ge,setError:Ve,setFocus:$e,getFieldState:Re};return{...$,formControl:$}}function He(e={}){let t=l.useRef(void 0),n=l.useRef(void 0),[r,i]=l.useState({isDirty:!1,isValidating:!1,isLoading:E(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:E(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!E(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...i}=Ve(e);t.current={...i,formState:r}}let a=t.current.control;return a._options=e,F(()=>{let e=a._subscribe({formState:a._proxyFormState,callback:()=>i({...a._formState}),reRenderRoot:!0});return i(e=>({...e,isReady:!0})),a._formState.isReady=!0,e},[a]),l.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),l.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),l.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),l.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),l.useEffect(()=>{if(a._proxyFormState.isDirty){let e=a._getDirty();e!==r.isDirty&&a._subjects.state.next({isDirty:e})}},[a,r.isDirty]),l.useEffect(()=>{e.values&&!L(e.values,n.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),a._options.resetOptions?.keepIsValid||a._setValid(),n.current=e.values,i(e=>({...e}))):a._resetDefaultValues()},[a,e.values]),l.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=l.useMemo(()=>P(r,a),[a,r]),t.current}var Ue=(e,t,n)=>{if(e&&`reportValidity`in e){let r=w(n,t);e.setCustomValidity(r&&r.message||``),e.reportValidity()}},We=(e,t)=>{for(let n in t.fields){let r=t.fields[n];r&&r.ref&&`reportValidity`in r.ref?Ue(r.ref,n,e):r&&r.refs&&r.refs.forEach(t=>Ue(t,n,e))}},Ge=(e,t)=>{t.shouldUseNativeValidation&&We(e,t);let n={};for(let r in e){let i=w(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if(Ke(t.names||Object.keys(e),r)){let e=Object.assign({},w(n,r));D(e,`root`,a),D(n,r,e)}else D(n,r,a)}return n},Ke=(e,t)=>{let n=qe(t);return e.some(e=>qe(e).match(`^${n}\\.\\d+`))};function qe(e){return e.replace(/\]|\[/g,``)}function Je(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}function Ye(e,t){for(var n={};e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(`.`);if(!n[o])if(`unionErrors`in r){var s=r.unionErrors[0].errors[0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if(`unionErrors`in r&&r.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=le(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()}return n}function Xe(e,t){for(var n={};e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(`.`);if(!n[o])if(r.code===`invalid_union`&&r.errors.length>0){var s=r.errors[0][0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if(r.code===`invalid_union`&&r.errors.forEach(function(t){return t.forEach(function(t){return e.push(t)})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=le(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()}return n}function Ze(e,t,n){if(n===void 0&&(n={}),function(e){return`_def`in e&&typeof e._def==`object`&&`typeName`in e._def}(e))return function(r,i,a){try{return Promise.resolve(Je(function(){return Promise.resolve(e[n.mode===`sync`?`parse`:`parseAsync`](r,t)).then(function(e){return a.shouldUseNativeValidation&&We({},a),{errors:{},values:n.raw?Object.assign({},r):e}})},function(e){if(function(e){return Array.isArray(e?.issues)}(e))return{values:{},errors:Ge(Ye(e.errors,!a.shouldUseNativeValidation&&a.criteriaMode===`all`),a)};throw e}))}catch(e){return Promise.reject(e)}};if(function(e){return`_zod`in e&&typeof e._zod==`object`}(e))return function(r,i,a){try{return Promise.resolve(Je(function(){return Promise.resolve((n.mode===`sync`?s:c)(e,r,t)).then(function(e){return a.shouldUseNativeValidation&&We({},a),{errors:{},values:n.raw?Object.assign({},r):e}})},function(e){if(function(e){return e instanceof o}(e))return{values:{},errors:Ge(Xe(e.issues,!a.shouldUseNativeValidation&&a.criteriaMode===`all`),a)};throw e}))}catch(e){return Promise.reject(e)}};throw Error(`Invalid input: not a Zod schema`)}var Q=n(),Qe=R,$e=l.createContext({}),et=({...e})=>(0,Q.jsx)($e.Provider,{value:{name:e.name},children:(0,Q.jsx)(oe,{...e})}),$=()=>{let e=l.useContext($e),t=l.useContext(tt),{getFieldState:n}=ce(),r=te({name:e.name}),i=n(e.name,r);if(!e)throw Error(`useFormField should be used within `);let{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...i}},tt=l.createContext({});function nt({className:e,...t}){let n=l.useId();return(0,Q.jsx)(tt.Provider,{value:{id:n},children:(0,Q.jsx)(`div`,{className:r(`grid gap-2`,e),"data-slot":`form-item`,...t})})}function rt({className:e,...t}){let{error:n,formItemId:i}=$();return(0,Q.jsx)(a,{className:r(`data-[error=true]:text-destructive`,e),"data-error":!!n,"data-slot":`form-label`,htmlFor:i,...t})}function it({...e}){let{error:t,formItemId:n,formDescriptionId:r,formMessageId:a}=$();return(0,Q.jsx)(i,{"aria-describedby":t?`${r} ${a}`:`${r}`,"aria-invalid":!!t,"data-slot":`form-control`,id:n,...e})}function at({className:e,...t}){let{formDescriptionId:n}=$();return(0,Q.jsx)(`p`,{className:r(`text-muted-foreground text-sm`,e),"data-slot":`form-description`,id:n,...t})}function ot({className:e,...t}){let{error:n,formMessageId:i}=$(),a=n?String(n?.message??``):t.children;return a?(0,Q.jsx)(`p`,{className:r(`text-destructive text-sm`,e),"data-slot":`form-message`,id:i,...t,children:a}):null}export{nt as a,Ze as c,et as i,He as l,it as n,rt as o,at as r,ot as s,Qe as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{i as r,o as i}from"./button-C_NDYaz8.js";import{t as a}from"./label-DNL0sHKL.js";import{d as o,l as s,u as c}from"./zod-rwFXxHlg.js";var l=e(t(),1),u=e=>e.type===`checkbox`,d=e=>e instanceof Date,f=e=>e==null,p=e=>typeof e==`object`,m=e=>!f(e)&&!Array.isArray(e)&&p(e)&&!d(e),h=e=>m(e)&&e.target?u(e.target)?e.target.checked:e.target.value:e,g=(e,t)=>t.split(`.`).some((t,n,r)=>!isNaN(Number(t))&&e.has(r.slice(0,n).join(`.`))),_=e=>{let t=e.constructor&&e.constructor.prototype;return m(t)&&t.hasOwnProperty(`isPrototypeOf`)},v=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;function y(e){if(e instanceof Date)return new Date(e);let t=typeof FileList<`u`&&e instanceof FileList;if(v&&(e instanceof Blob||t))return e;let n=Array.isArray(e);if(!n&&!(m(e)&&_(e)))return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=y(e[t]));return r}var b=e=>/^\w*$/.test(e),x=e=>e===void 0,S=e=>Array.isArray(e)?e.filter(Boolean):[],C=e=>S(e.replace(/["|']|\]/g,``).split(/\.|\[/)),w=(e,t,n)=>{if(!t||!m(e))return n;let r=(b(t)?[t]:C(t)).reduce((e,t)=>f(e)?e:e[t],e);return x(r)||r===e?x(e[t])?n:e[t]:r},T=e=>typeof e==`boolean`,E=e=>typeof e==`function`,D=(e,t,n)=>{let r=-1,i=b(t)?[t]:C(t),a=i.length,o=a-1;for(;++rl.useContext(M),P=(e,t,n,r=!0)=>{let i={defaultValues:t._defaultValues};for(let a in e)Object.defineProperty(i,a,{get:()=>{let i=a;return t._proxyFormState[i]!==k.all&&(t._proxyFormState[i]=!r||k.all),n&&(n[i]=!0),e[i]}});return i},F=typeof window<`u`?l.useLayoutEffect:l.useEffect;function te(e){let t=N(),{control:n=t,disabled:r,name:i,exact:a}=e||{},[o,s]=l.useState(n._formState),c=l.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return F(()=>n._subscribe({name:i,formState:c.current,exact:a,callback:e=>{!r&&s({...n._formState,...e})}}),[i,r,a]),l.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),l.useMemo(()=>P(o,n,c.current,!1),[o,n])}var I=e=>typeof e==`string`,ne=(e,t,n,r,i)=>I(e)?(r&&t.watch.add(e),w(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),w(n,e))):(r&&(t.watchAll=!0),n),re=e=>f(e)||!p(e);function L(e,t,n=new WeakSet){if(re(e)||re(t))return Object.is(e,t);if(d(e)&&d(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(let a of r){let r=e[a];if(!i.includes(a))return!1;if(a!==`ref`){let e=t[a];if(d(r)&&d(e)||(m(r)||Array.isArray(r))&&(m(e)||Array.isArray(e))?!L(r,e,n):!Object.is(r,e))return!1}}return!0}function ie(e){let t=N(),{control:n=t,name:r,defaultValue:i,disabled:a,exact:o,compute:s}=e||{},c=l.useRef(i),u=l.useRef(s),d=l.useRef(void 0),f=l.useRef(n),p=l.useRef(r);u.current=s;let[m,h]=l.useState(()=>{let e=n._getWatch(r,c.current);return u.current?u.current(e):e}),g=l.useCallback(e=>{let t=ne(r,n._names,e||n._formValues,!1,c.current);return u.current?u.current(t):t},[n._formValues,n._names,r]),_=l.useCallback(e=>{if(!a){let t=ne(r,n._names,e||n._formValues,!1,c.current);if(u.current){let e=u.current(t);L(e,d.current)||(h(e),d.current=e)}else h(t)}},[n._formValues,n._names,a,r]);F(()=>((f.current!==n||!L(p.current,r))&&(f.current=n,p.current=r,_()),n._subscribe({name:r,formState:{values:!0},exact:o,callback:e=>{_(e.values)}})),[n,o,r,_]),l.useEffect(()=>n._removeUnmounted());let v=f.current!==n,y=p.current,b=l.useMemo(()=>{if(a)return null;let e=!v&&!L(y,r);return v||e?g():null},[a,v,r,y,g]);return b===null?m:b}function ae(e){let t=N(),{name:n,disabled:r,control:i=t,shouldUnregister:a,defaultValue:o,exact:s=!0}=e,c=g(i._names.array,n),u=ie({control:i,name:n,defaultValue:l.useMemo(()=>w(i._formValues,n,w(i._defaultValues,n,o)),[i,n,o]),exact:s}),d=te({control:i,name:n,exact:s}),f=l.useRef(e),p=l.useRef(void 0),m=l.useRef(i.register(n,{...e.rules,value:u,...T(e.disabled)?{disabled:e.disabled}:{}}));f.current=e;let _=l.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!w(d.errors,n)},isDirty:{enumerable:!0,get:()=>!!w(d.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!w(d.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!w(d.validatingFields,n)},error:{enumerable:!0,get:()=>w(d.errors,n)}}),[d,n]),v=l.useCallback(e=>m.current.onChange({target:{value:h(e),name:n},type:O.CHANGE}),[n]),b=l.useCallback(()=>m.current.onBlur({target:{value:w(i._formValues,n),name:n},type:O.BLUR}),[n,i._formValues]),S=l.useCallback(e=>{let t=w(i._fields,n);t&&t._f&&e&&(t._f.ref={focus:()=>E(e.focus)&&e.focus(),select:()=>E(e.select)&&e.select(),setCustomValidity:t=>E(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>E(e.reportValidity)&&e.reportValidity()})},[i._fields,n]),C=l.useMemo(()=>({name:n,value:u,...T(r)||d.disabled?{disabled:d.disabled||r}:{},onChange:v,onBlur:b,ref:S}),[n,r,d.disabled,v,b,S,u]);return l.useEffect(()=>{let e=i._options.shouldUnregister||a,t=p.current;t&&t!==n&&!c&&i.unregister(t),i.register(n,{...f.current.rules,...T(f.current.disabled)?{disabled:f.current.disabled}:{}});let r=(e,t)=>{let n=w(i._fields,e);n&&n._f&&(n._f.mount=t)};if(r(n,!0),e){let e=y(w(i._options.defaultValues,n,f.current.defaultValue));D(i._defaultValues,n,e),x(w(i._formValues,n))&&D(i._formValues,n,e)}return!c&&i.register(n),p.current=n,()=>{(c?e&&!i._state.action:e)?i.unregister(n):r(n,!1)}},[n,i,c,a]),l.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),l.useMemo(()=>({field:C,formState:d,fieldState:_}),[C,d,_])}var oe=e=>e.render(ae(e)),se=l.createContext(null);se.displayName=`HookFormContext`;var ce=()=>l.useContext(se),R=e=>{let{children:t,watch:n,getValues:r,getFieldState:i,setError:a,clearErrors:o,setValue:s,trigger:c,formState:u,resetField:d,reset:f,handleSubmit:p,unregister:m,control:h,register:g,setFocus:_,subscribe:v}=e,y=l.useMemo(()=>({watch:n,getValues:r,getFieldState:i,setError:a,clearErrors:o,setValue:s,trigger:c,formState:u,resetField:d,reset:f,handleSubmit:p,unregister:m,control:h,register:g,setFocus:_,subscribe:v}),[o,h,u,i,r,p,g,f,d,a,_,s,v,c,m,n]);return l.createElement(se.Provider,{value:y},l.createElement(M.Provider,{value:y.control},t))},le=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},ue=e=>Array.isArray(e)?e:[e],de=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function fe(e,t){let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],a=t[r];if(i&&m(i)&&a){let e=fe(i,a);m(e)&&(n[r]=e)}else e[r]&&(n[r]=a)}return n}var z=e=>m(e)&&!Object.keys(e).length,pe=e=>e.type===`file`,me=e=>{if(!v)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},he=e=>e.type===`select-multiple`,B=e=>e.type===`radio`,ge=e=>B(e)||u(e),_e=e=>me(e)&&e.isConnected;function V(e,t){let n=t.slice(0,-1).length,r=0;for(;r{for(let t in e)if(E(e[t]))return!0;return!1};function W(e){return Array.isArray(e)||m(e)&&!U(e)}function ye(e,t={}){for(let n in e){let r=e[n];W(r)?(t[n]=Array.isArray(r)?[]:{},ye(r,t[n])):x(r)||(t[n]=!0)}return t}function G(e,t,n){n||=ye(t);for(let r in e){let i=e[r];if(W(i))x(t)||re(n[r])?n[r]=ye(i,Array.isArray(i)?[]:{}):G(i,f(t)?{}:t[r],n[r]);else{let e=t[r];n[r]=!L(i,e)}}return n}var K={value:!1,isValid:!1},be={value:!0,isValid:!0},q=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!x(e[0].attributes.value)?x(e[0].value)||e[0].value===``?be:{value:e[0].value,isValid:!0}:be:K}return K},xe=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>x(e)?e:t?e===``?NaN:e&&+e:n&&I(e)?new Date(e):r?r(e):e,Se={isValid:!1,value:null},Ce=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,Se):Se;function we(e){let t=e.ref;return pe(t)?t.files:B(t)?Ce(e.refs).value:he(t)?[...t.selectedOptions].map(({value:e})=>e):u(t)?q(e.refs).value:xe(x(t.value)?e.ref.value:t.value,e)}var Te=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Ee=(e,t,n,r)=>{let i={};for(let n of e){let e=w(t,n);e&&D(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},J=e=>e instanceof RegExp,Y=e=>x(e)?e:J(e)?e.source:m(e)?J(e.value)?e.value.source:e.value:e,De=e=>({isOnSubmit:!e||e===k.onSubmit,isOnBlur:e===k.onBlur,isOnChange:e===k.onChange,isOnAll:e===k.all,isOnTouch:e===k.onTouched}),Oe=`AsyncFunction`,ke=e=>!!e&&!!e.validate&&!!(E(e.validate)&&e.validate.constructor.name===Oe||m(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===Oe)),Ae=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),je=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),X=(e,t,n,r)=>{for(let i of n||Object.keys(e)){let n=w(e,i);if(n){let{_f:e,...a}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r||e.ref&&t(e.ref,e.name)&&!r)return!0;if(X(a,t))break}else if(m(a)&&X(a,t))break}}};function Me(e,t,n){let r=w(e,n);if(r||b(n))return{error:r,name:n};let i=n.split(`.`);for(;i.length;){let r=i.join(`.`),a=w(t,r),o=w(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};if(o&&o.root&&o.root.type)return{name:`${r}.root`,error:o.root};i.pop()}return{name:n}}var Ne=(e,t,n,r)=>{n(e);let{name:i,...a}=e;return z(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!r||k.all))},Pe=(e,t,n)=>!e||!t||e===t||ue(e).some(e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))),Fe=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,Ie=(e,t)=>!S(w(e,t)).length&&H(e,t),Le=(e,t,n)=>{let r=ue(w(e,n));return D(r,ee,t[n]),D(e,n,r),e};function Re(e,t,n=`validate`){if(I(e)||Array.isArray(e)&&e.every(I)||T(e)&&!e)return{type:n,message:I(e)?e:``,ref:t}}var Z=e=>m(e)&&!J(e)?e:{value:e,message:``},ze=async(e,t,n,r,i,a)=>{let{ref:o,refs:s,required:c,maxLength:l,minLength:d,min:p,max:h,pattern:g,validate:_,name:v,valueAsNumber:y,mount:b}=e._f,S=w(n,v);if(!b||t.has(v))return{};let C=s?s[0]:o,D=e=>{i&&C.reportValidity&&(C.setCustomValidity(T(e)?``:e||``),C.reportValidity())},O={},k=B(o),j=u(o),ee=k||j,M=(y||pe(o))&&x(o.value)&&x(S)||me(o)&&o.value===``||S===``||Array.isArray(S)&&!S.length,N=le.bind(null,v,r,O),P=(e,t,n,r=A.maxLength,i=A.minLength)=>{let a=e?t:n;O[v]={type:e?r:i,message:a,ref:o,...N(e?r:i,a)}};if(a?!Array.isArray(S)||!S.length:c&&(!ee&&(M||f(S))||T(S)&&!S||j&&!q(s).isValid||k&&!Ce(s).isValid)){let{value:e,message:t}=I(c)?{value:!!c,message:c}:Z(c);if(e&&(O[v]={type:A.required,message:t,ref:C,...N(A.required,t)},!r))return D(t),O}if(!M&&(!f(p)||!f(h))){let e,t,n=Z(h),i=Z(p);if(!f(S)&&!isNaN(S)){let r=o.valueAsNumber||S&&+S;f(n.value)||(e=r>n.value),f(i.value)||(t=rnew Date(new Date().toDateString()+` `+e),s=o.type==`time`,c=o.type==`week`;I(n.value)&&S&&(e=s?a(S)>a(n.value):c?S>n.value:r>new Date(n.value)),I(i.value)&&S&&(t=s?a(S)+e.value,i=!f(t.value)&&S.length<+t.value;if((n||i)&&(P(n,e.message,t.message),!r))return D(O[v].message),O}if(g&&!M&&I(S)){let{value:e,message:t}=Z(g);if(J(e)&&!S.match(e)&&(O[v]={type:A.pattern,message:t,ref:o,...N(A.pattern,t)},!r))return D(t),O}if(_){if(E(_)){let e=Re(await _(S,n),C);if(e&&(O[v]={...e,...N(A.validate,e.message)},!r))return D(e.message),O}else if(m(_)){let e={};for(let t in _){if(!z(e)&&!r)break;let i=Re(await _[t](S,n),C,t);i&&(e={...i,...N(t,i.message)},D(i.message),r&&(O[v]=e))}if(!z(e)&&(O[v]={ref:C,...e},!r))return O}}return D(!0),O},Be={mode:k.onSubmit,reValidateMode:k.onChange,shouldFocusError:!0};function Ve(e={}){let t={...Be,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:E(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=(m(t.defaultValues)||m(t.values))&&y(t.defaultValues||t.values)||{},a=t.shouldUnregister?{}:y(i),o={action:!1,mount:!1,watch:!1,keepIsValid:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},c,l=0,p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},_={...p},b={..._},C={array:de(),state:de()},M=t.criteriaMode===k.all,N=e=>t=>{clearTimeout(l),l=setTimeout(e,t)},P=async e=>{if(!o.keepIsValid&&!t.disabled&&(_.isValid||b.isValid||e)){let e;t.resolver?(e=z((await R()).errors),F()):e=await V({fields:r,onlyCheckValid:!0,eventType:O.VALID}),e!==n.isValid&&C.state.next({isValid:e})}},F=(e,r)=>{!t.disabled&&(_.isValidating||_.validatingFields||b.isValidating||b.validatingFields)&&((e||Array.from(s.mount)).forEach(e=>{e&&(r?D(n.validatingFields,e,r):H(n.validatingFields,e))}),C.state.next({validatingFields:n.validatingFields,isValidating:!z(n.validatingFields)}))},te=e=>{let t=G(i,a),r=Te(e);D(n.dirtyFields,r,w(t,r))},re=(e,i=[],s,c,l=!0,u=!0)=>{if(c&&s&&!t.disabled){if(o.action=!0,u&&Array.isArray(w(r,e))){let t=s(w(r,e),c.argA,c.argB);l&&D(r,e,t)}if(u&&Array.isArray(w(n.errors,e))){let t=s(w(n.errors,e),c.argA,c.argB);l&&D(n.errors,e,t),Ie(n.errors,e)}if((_.touchedFields||b.touchedFields)&&u&&Array.isArray(w(n.touchedFields,e))){let t=s(w(n.touchedFields,e),c.argA,c.argB);l&&D(n.touchedFields,e,t)}(_.dirtyFields||b.dirtyFields)&&te(e),C.state.next({name:e,isDirty:U(e,i),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else D(a,e,i)},ie=(e,t)=>{D(n.errors,e,t),C.state.next({errors:n.errors})},ae=e=>{n.errors=e,C.state.next({errors:n.errors,isValid:!1})},oe=(e,t,n,s)=>{let c=w(r,e);if(c){let r=w(a,e,x(n)?w(i,e):n);x(r)||s&&s.defaultChecked||t?D(a,e,t?r:we(c._f)):K(e,r),o.mount&&!o.action&&P()}},se=(e,r,a,o,s)=>{let c=!1,l=!1,u={name:e};if(!t.disabled){if(!a||o){(_.isDirty||b.isDirty)&&(l=n.isDirty,n.isDirty=u.isDirty=U(),c=l!==u.isDirty);let t=L(w(i,e),r);l=!!w(n.dirtyFields,e),t?H(n.dirtyFields,e):D(n.dirtyFields,e,!0),u.dirtyFields=n.dirtyFields,c||=(_.dirtyFields||b.dirtyFields)&&l!==!t}if(a){let t=w(n.touchedFields,e);t||(D(n.touchedFields,e,a),u.touchedFields=n.touchedFields,c||=(_.touchedFields||b.touchedFields)&&t!==a)}c&&s&&C.state.next(u)}return c?u:{}},ce=(e,r,i,a)=>{let o=w(n.errors,e),s=(_.isValid||b.isValid)&&T(r)&&n.isValid!==r;if(t.delayError&&i?(c=N(()=>ie(e,i)),c(t.delayError)):(clearTimeout(l),c=null,i?D(n.errors,e,i):H(n.errors,e)),(i?!L(o,i):o)||!z(a)||s){let t={...a,...s&&T(r)?{isValid:r}:{},errors:n.errors,name:e};n={...n,...t},C.state.next(t)}},R=async e=>(F(e,!0),await t.resolver(a,t.context,Ee(e||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),le=async e=>{let{errors:t}=await R(e);if(F(e),e)for(let r of e){let e=w(t,r);e?D(n.errors,r,e):H(n.errors,r)}else n.errors=t;return t},B=async({name:t,eventType:r})=>{if(e.validate){let i=await e.validate({formValues:a,formState:n,name:t,eventType:r});if(m(i))for(let e in i)i[e]&&Ve(`${j}.${e}`,{message:I(i.message)?i.message:``,type:A.validate});else I(i)||!i?Ve(j,{message:i||``,type:A.validate}):Z(j);return i}return!0},V=async({fields:r,onlyCheckValid:i,name:o,eventType:c,context:l={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(l.runRootValidation=!0,!await B({name:o,eventType:c})&&(l.valid=!1,i)))return l.valid;for(let o in r){let u=r[o];if(u){let{_f:r,...d}=u;if(r){let o=s.array.has(r.name),c=u._f&&ke(u._f);c&&_.validatingFields&&F([r.name],!0);let d=await ze(u,s.disabled,a,M,t.shouldUseNativeValidation&&!i,o);if(c&&_.validatingFields&&F([r.name]),d[r.name]&&(l.valid=!1,i)||(!i&&(w(d,r.name)?o?Le(n.errors,d,r.name):D(n.errors,r.name,d[r.name]):H(n.errors,r.name)),e.shouldUseNativeValidation&&d[r.name]))break}!z(d)&&await V({context:l,onlyCheckValid:i,fields:d,name:o,eventType:c})}}return l.valid},ve=()=>{for(let e of s.unMount){let t=w(r,e);t&&(t._f.refs?t._f.refs.every(e=>!_e(e)):!_e(t._f.ref))&&Ge(e)}s.unMount=new Set},U=(e,n)=>!t.disabled&&(e&&n&&D(a,e,n),!L(Oe(),i)),W=(e,t,n)=>ne(e,s,{...o.mount?a:x(t)?i:I(e)?{[e]:t}:t},n,t),ye=e=>S(w(o.mount?a:i,e,t.shouldUnregister?w(i,e,[]):[])),K=(e,t,n={})=>{let i=w(r,e),o=t;if(i){let n=i._f;n&&(!n.disabled&&D(a,e,xe(t,n)),o=me(n.ref)&&f(t)?``:t,he(n.ref)?[...n.ref.options].forEach(e=>e.selected=o.includes(e.value)):n.refs?u(n.ref)?n.refs.forEach(e=>{(!e.defaultChecked||!e.disabled)&&(Array.isArray(o)?e.checked=!!o.find(t=>t===e.value):e.checked=o===e.value||!!o)}):n.refs.forEach(e=>e.checked=e.value===o):pe(n.ref)?n.ref.value=``:(n.ref.value=o,n.ref.type||C.state.next({name:e,values:y(a)})))}(n.shouldDirty||n.shouldTouch)&&se(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&J(e)},be=(e,t,n)=>{for(let i in t){if(!t.hasOwnProperty(i))return;let a=t[i],o=e+`.`+i,c=w(r,o);(s.array.has(e)||m(a)||c&&!c._f)&&!d(a)?be(o,a,n):K(o,a,n)}},q=(e,t,i={})=>{let c=w(r,e),l=s.array.has(e),u=y(t);D(a,e,u),l?(C.array.next({name:e,values:y(a)}),(_.isDirty||_.dirtyFields||b.isDirty||b.dirtyFields)&&i.shouldDirty&&(te(e),C.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:U(e,u)}))):c&&!c._f&&!f(u)?be(e,u,i):K(e,u,i),je(e,s)?C.state.next({...n,name:e,values:y(a)}):C.state.next({name:o.mount?e:void 0,values:y(a)})},Se=async i=>{o.mount=!0;let l=i.target,u=l.name,f=!0,p=w(r,u),m=e=>{f=Number.isNaN(e)||d(e)&&isNaN(e.getTime())||L(e,w(a,u,e))},g=De(t.mode),v=De(t.reValidateMode);if(p){let o,d,x=l.type?we(p._f):h(i),S=i.type===O.BLUR||i.type===O.FOCUS_OUT,T=!Ae(p._f)&&!e.validate&&!t.resolver&&!w(n.errors,u)&&!p._f.deps||Fe(S,w(n.touchedFields,u),n.isSubmitted,v,g),E=je(u,s,S);D(a,u,x),S?(!l||!l.readOnly)&&(p._f.onBlur&&p._f.onBlur(i),c&&c(0)):p._f.onChange&&p._f.onChange(i);let k=se(u,x,S),A=!z(k)||E;if(!S&&C.state.next({name:u,type:i.type,values:y(a)}),T)return(_.isValid||b.isValid)&&(t.mode===`onBlur`?S&&P():S||P()),A&&C.state.next({name:u,...E?{}:k});if(!t.resolver&&e.validate&&await B({name:u,eventType:i.type}),!S&&E&&C.state.next({...n}),t.resolver){let{errors:e}=await R([u]);if(F([u]),m(x),f){let t=Me(n.errors,r,u),i=Me(e,r,t.name||u);o=i.error,u=i.name,d=z(e)}}else F([u],!0),o=(await ze(p,s.disabled,a,M,t.shouldUseNativeValidation))[u],F([u]),m(x),f&&(o?d=!1:(_.isValid||b.isValid)&&(d=await V({fields:r,onlyCheckValid:!0,name:u,eventType:i.type})));f&&(p._f.deps&&(!Array.isArray(p._f.deps)||p._f.deps.length>0)&&J(p._f.deps),ce(u,d,o,k))}},Ce=(e,t)=>{if(w(n.errors,t)&&e.focus)return e.focus(),1},J=async(e,i={})=>{let a,o,c=ue(e);if(t.resolver){let t=await le(x(e)?e:c);a=z(t),o=e?!c.some(e=>w(t,e)):a}else e?(o=(await Promise.all(c.map(async e=>{let t=w(r,e);return await V({fields:t&&t._f?{[e]:t}:t,eventType:O.TRIGGER})}))).every(Boolean),!(!o&&!n.isValid)&&P()):o=a=await V({fields:r,name:e,eventType:O.TRIGGER});return C.state.next({...!I(e)||(_.isValid||b.isValid)&&a!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:a}:{},errors:n.errors}),i.shouldFocus&&!o&&X(r,Ce,e?c:s.mount),o},Oe=(e,t)=>{let r={...o.mount?a:i};return t&&(r=fe(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),x(e)?r:I(e)?w(r,e):e.map(e=>w(r,e))},Re=(e,t)=>({invalid:!!w((t||n).errors,e),isDirty:!!w((t||n).dirtyFields,e),error:w((t||n).errors,e),isValidating:!!w(n.validatingFields,e),isTouched:!!w((t||n).touchedFields,e)}),Z=e=>{let t=e?ue(e):void 0;t?.forEach(e=>H(n.errors,e)),t?t.forEach(e=>{C.state.next({name:e,errors:n.errors})}):C.state.next({errors:{}})},Ve=(e,t,i)=>{let a=(w(r,e,{_f:{}})._f||{}).ref,{ref:o,message:s,type:c,...l}=w(n.errors,e)||{};D(n.errors,e,{...l,...t,ref:a}),C.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&a&&a.focus&&a.focus()},He=(e,t)=>E(e)?C.state.subscribe({next:n=>`values`in n&&e(W(void 0,t),n)}):W(e,t,!0),Ue=e=>C.state.subscribe({next:t=>{Pe(e.name,t.name,e.exact)&&Ne(t,e.formState||_,et,e.reRenderRoot)&&e.callback({values:{...a},...n,...t,defaultValues:i})}}).unsubscribe,We=e=>(o.mount=!0,b={...b,...e.formState},Ue({...e,formState:{...p,...e.formState}})),Ge=(e,o={})=>{for(let c of e?ue(e):s.mount)s.mount.delete(c),s.array.delete(c),o.keepValue||(H(r,c),H(a,c)),!o.keepError&&H(n.errors,c),!o.keepDirty&&H(n.dirtyFields,c),!o.keepTouched&&H(n.touchedFields,c),!o.keepIsValidating&&H(n.validatingFields,c),!t.shouldUnregister&&!o.keepDefaultValue&&H(i,c);C.state.next({values:y(a)}),C.state.next({...n,...o.keepDirty?{isDirty:U()}:{}}),!o.keepIsValid&&P()},Ke=({disabled:e,name:t})=>{if(T(e)&&o.mount||e||s.disabled.has(t)){let n=s.disabled.has(t)!==!!e;e?s.disabled.add(t):s.disabled.delete(t),n&&o.mount&&!o.action&&P()}},qe=(e,n={})=>{let a=w(r,e),c=T(n.disabled)||T(t.disabled),l=!s.registerName.has(e)&&a&&!a._f.mount;return D(r,e,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...n}}),s.mount.add(e),a&&!l?Ke({disabled:T(n.disabled)?n.disabled:t.disabled,name:e}):oe(e,!0,n.value),{...c?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:Y(n.min),max:Y(n.max),minLength:Y(n.minLength),maxLength:Y(n.maxLength),pattern:Y(n.pattern)}:{},name:e,onChange:Se,onBlur:Se,ref:c=>{if(c){s.registerName.add(e),qe(e,n),s.registerName.delete(e),a=w(r,e);let t=x(c.value)&&c.querySelectorAll&&c.querySelectorAll(`input,select,textarea`)[0]||c,o=ge(t),l=a._f.refs||[];if(o?l.find(e=>e===t):t===a._f.ref)return;D(r,e,{_f:{...a._f,...o?{refs:[...l.filter(_e),t,...Array.isArray(w(i,e))?[{}]:[]],ref:{type:t.type,name:e}}:{ref:t}}}),oe(e,!1,void 0,t)}else a=w(r,e,{}),a._f&&(a._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&!(g(s.array,e)&&o.action)&&s.unMount.add(e)}}},Je=()=>t.shouldFocusError&&X(r,Ce,s.mount),Ye=e=>{T(e)&&(C.state.next({disabled:e}),X(r,(t,n)=>{let i=w(r,n);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0,!1))},Xe=(e,i)=>async o=>{let c;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let l=y(a);if(C.state.next({isSubmitting:!0}),t.resolver){let{errors:e,values:t}=await R();F(),n.errors=e,l=y(t)}else await V({fields:r,eventType:O.SUBMIT});if(s.disabled.size)for(let e of s.disabled)H(l,e);if(H(n.errors,ee),z(n.errors)){C.state.next({errors:{}});try{await e(l,o)}catch(e){c=e}}else i&&await i({...n.errors},o),Je(),setTimeout(Je);if(C.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:z(n.errors)&&!c,submitCount:n.submitCount+1,errors:n.errors}),c)throw c},Ze=(e,t={})=>{w(r,e)&&(x(t.defaultValue)?q(e,y(w(i,e))):(q(e,t.defaultValue),D(i,e,y(t.defaultValue))),t.keepTouched||H(n.touchedFields,e),t.keepDirty||(H(n.dirtyFields,e),n.isDirty=t.defaultValue?U(e,y(w(i,e))):U()),t.keepError||(H(n.errors,e),_.isValid&&P()),C.state.next({...n}))},Q=(e,c={})=>{let l=e?y(e):i,u=y(l),d=z(e),f=d?i:u;if(c.keepDefaultValues||(i=l),!c.keepValues){if(c.keepDirtyValues){let e=new Set([...s.mount,...Object.keys(G(i,a))]);for(let t of Array.from(e)){let e=w(n.dirtyFields,t),r=w(a,t),i=w(f,t);e&&!x(r)?D(f,t,r):!e&&!x(i)&&q(t,i)}}else{if(v&&x(e))for(let e of s.mount){let t=w(r,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(me(e)){let t=e.closest(`form`);if(t){t.reset();break}}}}if(c.keepFieldsRef)for(let e of s.mount)q(e,w(f,e));else r={}}a=t.shouldUnregister?c.keepDefaultValues?y(i):{}:y(f),C.array.next({values:{...f}}),C.state.next({values:{...f}})}s={mount:c.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:``},o.mount=!_.isValid||!!c.keepIsValid||!!c.keepDirtyValues||!t.shouldUnregister&&!z(f),o.watch=!!t.shouldUnregister,o.keepIsValid=!!c.keepIsValid,o.action=!1,c.keepErrors||(n.errors={}),C.state.next({submitCount:c.keepSubmitCount?n.submitCount:0,isDirty:d?!1:c.keepDirty?n.isDirty:!!(c.keepDefaultValues&&!L(e,i)),isSubmitted:c.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:d?{}:c.keepDirtyValues?c.keepDefaultValues&&a?G(i,a):n.dirtyFields:c.keepDefaultValues&&e?G(i,e):c.keepDirty?n.dirtyFields:{},touchedFields:c.keepTouched?n.touchedFields:{},errors:c.keepErrors?n.errors:{},isSubmitSuccessful:c.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},Qe=(e,n)=>Q(E(e)?e(a):e,{...t.resetOptions,...n}),$e=(e,t={})=>{let n=w(r,e),i=n&&n._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&E(e.select)&&e.select()})}},et=e=>{n={...n,...e}},$={control:{register:qe,unregister:Ge,getFieldState:Re,handleSubmit:Xe,setError:Ve,_subscribe:Ue,_runSchema:R,_updateIsValidating:F,_focusError:Je,_getWatch:W,_getDirty:U,_setValid:P,_setFieldArray:re,_setDisabledField:Ke,_setErrors:ae,_getFieldArray:ye,_reset:Q,_resetDefaultValues:()=>E(t.defaultValues)&&t.defaultValues().then(e=>{Qe(e,t.resetOptions),C.state.next({isLoading:!1})}),_removeUnmounted:ve,_disableForm:Ye,_subjects:C,_proxyFormState:_,get _fields(){return r},get _formValues(){return a},get _state(){return o},set _state(e){o=e},get _defaultValues(){return i},get _names(){return s},set _names(e){s=e},get _formState(){return n},get _options(){return t},set _options(e){t={...t,...e}}},subscribe:We,trigger:J,register:qe,handleSubmit:Xe,watch:He,setValue:q,getValues:Oe,reset:Qe,resetField:Ze,clearErrors:Z,unregister:Ge,setError:Ve,setFocus:$e,getFieldState:Re};return{...$,formControl:$}}function He(e={}){let t=l.useRef(void 0),n=l.useRef(void 0),[r,i]=l.useState({isDirty:!1,isValidating:!1,isLoading:E(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:E(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!E(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...i}=Ve(e);t.current={...i,formState:r}}let a=t.current.control;return a._options=e,F(()=>{let e=a._subscribe({formState:a._proxyFormState,callback:()=>i({...a._formState}),reRenderRoot:!0});return i(e=>({...e,isReady:!0})),a._formState.isReady=!0,e},[a]),l.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),l.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),l.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),l.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),l.useEffect(()=>{if(a._proxyFormState.isDirty){let e=a._getDirty();e!==r.isDirty&&a._subjects.state.next({isDirty:e})}},[a,r.isDirty]),l.useEffect(()=>{e.values&&!L(e.values,n.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),a._options.resetOptions?.keepIsValid||a._setValid(),n.current=e.values,i(e=>({...e}))):a._resetDefaultValues()},[a,e.values]),l.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=l.useMemo(()=>P(r,a),[a,r]),t.current}var Ue=(e,t,n)=>{if(e&&`reportValidity`in e){let r=w(n,t);e.setCustomValidity(r&&r.message||``),e.reportValidity()}},We=(e,t)=>{for(let n in t.fields){let r=t.fields[n];r&&r.ref&&`reportValidity`in r.ref?Ue(r.ref,n,e):r&&r.refs&&r.refs.forEach(t=>Ue(t,n,e))}},Ge=(e,t)=>{t.shouldUseNativeValidation&&We(e,t);let n={};for(let r in e){let i=w(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if(Ke(t.names||Object.keys(e),r)){let e=Object.assign({},w(n,r));D(e,`root`,a),D(n,r,e)}else D(n,r,a)}return n},Ke=(e,t)=>{let n=qe(t);return e.some(e=>qe(e).match(`^${n}\\.\\d+`))};function qe(e){return e.replace(/\]|\[/g,``)}function Je(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}function Ye(e,t){for(var n={};e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(`.`);if(!n[o])if(`unionErrors`in r){var s=r.unionErrors[0].errors[0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if(`unionErrors`in r&&r.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=le(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()}return n}function Xe(e,t){for(var n={};e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(`.`);if(!n[o])if(r.code===`invalid_union`&&r.errors.length>0){var s=r.errors[0][0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if(r.code===`invalid_union`&&r.errors.forEach(function(t){return t.forEach(function(t){return e.push(t)})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=le(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()}return n}function Ze(e,t,n){if(n===void 0&&(n={}),function(e){return`_def`in e&&typeof e._def==`object`&&`typeName`in e._def}(e))return function(r,i,a){try{return Promise.resolve(Je(function(){return Promise.resolve(e[n.mode===`sync`?`parse`:`parseAsync`](r,t)).then(function(e){return a.shouldUseNativeValidation&&We({},a),{errors:{},values:n.raw?Object.assign({},r):e}})},function(e){if(function(e){return Array.isArray(e?.issues)}(e))return{values:{},errors:Ge(Ye(e.errors,!a.shouldUseNativeValidation&&a.criteriaMode===`all`),a)};throw e}))}catch(e){return Promise.reject(e)}};if(function(e){return`_zod`in e&&typeof e._zod==`object`}(e))return function(r,i,a){try{return Promise.resolve(Je(function(){return Promise.resolve((n.mode===`sync`?s:c)(e,r,t)).then(function(e){return a.shouldUseNativeValidation&&We({},a),{errors:{},values:n.raw?Object.assign({},r):e}})},function(e){if(function(e){return e instanceof o}(e))return{values:{},errors:Ge(Xe(e.issues,!a.shouldUseNativeValidation&&a.criteriaMode===`all`),a)};throw e}))}catch(e){return Promise.reject(e)}};throw Error(`Invalid input: not a Zod schema`)}var Q=n(),Qe=R,$e=l.createContext({}),et=({...e})=>(0,Q.jsx)($e.Provider,{value:{name:e.name},children:(0,Q.jsx)(oe,{...e})}),$=()=>{let e=l.useContext($e),t=l.useContext(tt),{getFieldState:n}=ce(),r=te({name:e.name}),i=n(e.name,r);if(!e)throw Error(`useFormField should be used within `);let{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...i}},tt=l.createContext({});function nt({className:e,...t}){let n=l.useId();return(0,Q.jsx)(tt.Provider,{value:{id:n},children:(0,Q.jsx)(`div`,{className:r(`grid gap-2`,e),"data-slot":`form-item`,...t})})}function rt({className:e,...t}){let{error:n,formItemId:i}=$();return(0,Q.jsx)(a,{className:r(`data-[error=true]:text-destructive`,e),"data-error":!!n,"data-slot":`form-label`,htmlFor:i,...t})}function it({...e}){let{error:t,formItemId:n,formDescriptionId:r,formMessageId:a}=$();return(0,Q.jsx)(i,{"aria-describedby":t?`${r} ${a}`:`${r}`,"aria-invalid":!!t,"data-slot":`form-control`,id:n,...e})}function at({className:e,...t}){let{formDescriptionId:n}=$();return(0,Q.jsx)(`p`,{className:r(`text-muted-foreground text-sm`,e),"data-slot":`form-description`,id:n,...t})}function ot({className:e,...t}){let{error:n,formMessageId:i}=$(),a=n?String(n?.message??``):t.children;return a?(0,Q.jsx)(`p`,{className:r(`text-destructive text-sm`,e),"data-slot":`form-message`,id:i,...t,children:a}):null}export{nt as a,Ze as c,et as i,He as l,it as n,rt as o,at as r,ot as s,Qe as t}; \ No newline at end of file diff --git a/src/www/assets/general-error-BoAB2alm.js b/src/www/assets/general-error-BoAB2alm.js new file mode 100644 index 0000000..cf686b6 --- /dev/null +++ b/src/www/assets/general-error-BoAB2alm.js @@ -0,0 +1 @@ +import{Ad as e,Od as t,jd as n,kd as r,tm as i}from"./messages-BOatyqUm.js";import{t as a}from"./useRouter-DtTm7XkK.js";import{t as o}from"./useNavigate-7u4DX0Ho.js";import{i as s,t as c}from"./button-C_NDYaz8.js";var l=i();function u({className:i,minimal:u=!1}){let d=o(),{history:f}=a();return(0,l.jsx)(`div`,{className:s(`h-svh w-full`,i),children:(0,l.jsxs)(`div`,{className:`m-auto flex h-full w-full flex-col items-center justify-center gap-2`,children:[!u&&(0,l.jsx)(`h1`,{className:`font-bold text-[7rem] leading-tight`,children:`500`}),(0,l.jsx)(`span`,{className:`font-medium`,children:n()}),(0,l.jsx)(`p`,{className:`text-center text-muted-foreground`,children:e()}),!u&&(0,l.jsxs)(`div`,{className:`mt-6 flex gap-4`,children:[(0,l.jsx)(c,{onClick:()=>f.go(-1),variant:`outline`,children:r()}),(0,l.jsx)(c,{onClick:()=>d({to:`/dashboard`}),children:t()})]})]})})}export{u as t}; \ No newline at end of file diff --git a/src/www/assets/general-error-BoIfl_4Z.js b/src/www/assets/general-error-BoIfl_4Z.js deleted file mode 100644 index 6b61d2a..0000000 --- a/src/www/assets/general-error-BoIfl_4Z.js +++ /dev/null @@ -1 +0,0 @@ -import{Ad as e,Dd as t,Od as n,em as r,kd as i}from"./messages-Bp0bCjzp.js";import{t as a}from"./useRouter-DtTm7XkK.js";import{t as o}from"./useNavigate-7u4DX0Ho.js";import{i as s,t as c}from"./button-BgMnOYKD.js";var l=r();function u({className:r,minimal:u=!1}){let d=o(),{history:f}=a();return(0,l.jsx)(`div`,{className:s(`h-svh w-full`,r),children:(0,l.jsxs)(`div`,{className:`m-auto flex h-full w-full flex-col items-center justify-center gap-2`,children:[!u&&(0,l.jsx)(`h1`,{className:`font-bold text-[7rem] leading-tight`,children:`500`}),(0,l.jsx)(`span`,{className:`font-medium`,children:e()}),(0,l.jsx)(`p`,{className:`text-center text-muted-foreground`,children:i()}),!u&&(0,l.jsxs)(`div`,{className:`mt-6 flex gap-4`,children:[(0,l.jsx)(c,{onClick:()=>f.go(-1),variant:`outline`,children:n()}),(0,l.jsx)(c,{onClick:()=>d({to:`/dashboard`}),children:t()})]})]})})}export{u as t}; \ No newline at end of file diff --git a/src/www/assets/header-D45l3Ai7.js b/src/www/assets/header-DVAsq5d6.js similarity index 81% rename from src/www/assets/header-D45l3Ai7.js rename to src/www/assets/header-DVAsq5d6.js index cdae592..2f43e93 100644 --- a/src/www/assets/header-D45l3Ai7.js +++ b/src/www/assets/header-DVAsq5d6.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{i as t}from"./auth-store-Csn6HPxJ.js";import{t as n}from"./react-CO2uhaBc.js";import{Au as r,Kp as i,Su as a,Tt as o,Xp as s,em as c,qp as l,xu as u}from"./messages-Bp0bCjzp.js";import{t as d}from"./link-BYG8nKNO.js";import{F as f,L as p,R as m,d as h,f as g,h as _,j as v,l as y,n as b,o as x,p as S,u as C,z as w}from"./search-provider-Bl2HDfcG.js";import{i as T,t as E}from"./button-BgMnOYKD.js";import{a as D,i as O,l as k,o as A,r as j,s as M,t as N}from"./dropdown-menu-8-hEBtzr.js";import{t as P}from"./separator-DbmFQXe4.js";import{l as F}from"./command-CIv3ggHf.js";var I=e(n(),1),L=c();function R(){let[e,n]=y(),[s,c]=(0,I.useState)(!1),{user:v}=t(),b=v?.username?.trim()||o(),T=b.charAt(0).toUpperCase()||`U`,P=v?.last_login_at?a({time:x(v.last_login_at)}):u();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(f,{onOpenChange:c,open:s,children:(0,L.jsx)(_,{})}),(0,L.jsxs)(N,{modal:!1,children:[(0,L.jsx)(k,{asChild:!0,children:(0,L.jsx)(E,{className:`relative h-8 w-8 rounded-full`,variant:`ghost`,children:(0,L.jsxs)(C,{className:`h-8 w-8`,children:[(0,L.jsx)(g,{alt:b,src:`/avatars/01.png`}),(0,L.jsx)(h,{children:T})]})})}),(0,L.jsxs)(j,{align:`end`,className:`w-56`,forceMount:!0,children:[(0,L.jsx)(A,{className:`p-0 font-normal`,children:(0,L.jsxs)(`div`,{className:`flex items-center gap-2 px-1 py-1.5 text-start text-sm`,children:[(0,L.jsxs)(C,{className:`h-8 w-8 rounded-lg`,children:[(0,L.jsx)(g,{alt:b,src:`/avatars/01.png`}),(0,L.jsx)(h,{className:`rounded-lg`,children:T})]}),(0,L.jsxs)(`div`,{className:`grid flex-1 text-start text-sm leading-tight`,children:[(0,L.jsx)(`span`,{className:`truncate font-semibold`,children:b}),(0,L.jsx)(`span`,{className:`truncate text-muted-foreground text-xs`,children:P})]})]})}),(0,L.jsx)(M,{}),(0,L.jsxs)(O,{children:[(0,L.jsx)(D,{asChild:!0,children:(0,L.jsxs)(d,{to:`/account/password`,children:[(0,L.jsx)(w,{className:`mr-2 size-4`}),l()]})}),(0,L.jsxs)(D,{onClick:()=>c(!0),onSelect:e=>e.preventDefault(),children:[(0,L.jsx)(p,{className:`mr-2 size-4`}),r()]})]}),(0,L.jsx)(M,{}),(0,L.jsxs)(D,{onClick:()=>n(!0),variant:`destructive`,children:[(0,L.jsx)(m,{className:`mr-2 size-4`}),i()]})]})]}),(0,L.jsx)(S,{onOpenChange:n,open:!!e})]})}function z({className:e=``,placeholder:t}){let{setOpen:n}=b();return(0,L.jsxs)(E,{className:T(`group relative h-8 w-full flex-1 justify-start rounded-md bg-muted/25 font-normal text-muted-foreground text-sm shadow-none hover:bg-accent sm:w-40 sm:pe-12 md:flex-none lg:w-52 xl:w-64`,e),onClick:()=>n(!0),variant:`outline`,children:[(0,L.jsx)(F,{"aria-hidden":`true`,className:`absolute inset-s-1.5 top-1/2 -translate-y-1/2`,size:16}),(0,L.jsx)(`span`,{className:`ms-4`,children:t??s()}),(0,L.jsxs)(`kbd`,{className:`pointer-events-none absolute inset-e-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-medium font-mono text-[10px] opacity-100 group-hover:bg-accent sm:flex`,children:[(0,L.jsx)(`span`,{className:`text-xs`,children:`⌘`}),`K`]})]})}function B({className:e,fixed:t,children:n,...r}){let[i,a]=(0,I.useState)(0);return(0,I.useEffect)(()=>{let e=()=>{a(document.body.scrollTop||document.documentElement.scrollTop)};return document.addEventListener(`scroll`,e,{passive:!0}),()=>document.removeEventListener(`scroll`,e)},[]),(0,L.jsx)(`header`,{className:T(`z-50 h-16`,t&&`header-fixed peer/header sticky top-0 w-[inherit]`,i>10&&t?`shadow`:`shadow-none`,e),...r,children:(0,L.jsxs)(`div`,{className:T(`relative flex h-full items-center gap-3 p-4 sm:gap-4`,i>10&&t&&`after:absolute after:inset-0 after:-z-10 after:bg-background/20 after:backdrop-blur-lg`),children:[(0,L.jsx)(v,{className:`max-md:scale-125`,variant:`outline`}),(0,L.jsx)(P,{className:`h-6`,orientation:`vertical`}),n]})})}export{z as n,R as r,B as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{i as t}from"./auth-store-De4Y7PFV.js";import{t as n}from"./react-CO2uhaBc.js";import{Au as r,Jp as i,Su as a,Tt as o,Zp as s,qp as c,tm as l,xu as u}from"./messages-BOatyqUm.js";import{t as d}from"./link-DPnL8P5J.js";import{F as f,L as p,R as m,d as h,f as g,h as _,j as v,l as y,n as b,o as x,p as S,u as C,z as w}from"./search-provider-C-_FQI9C.js";import{i as T,t as E}from"./button-C_NDYaz8.js";import{a as D,i as O,l as k,o as A,r as j,s as M,t as N}from"./dropdown-menu-DzCIpsuG.js";import{t as P}from"./separator-CsUemQNs.js";import{l as F}from"./command-B_SlhXkX.js";var I=e(n(),1),L=l();function R(){let[e,n]=y(),[s,l]=(0,I.useState)(!1),{user:v}=t(),b=v?.username?.trim()||o(),T=b.charAt(0).toUpperCase()||`U`,P=v?.last_login_at?a({time:x(v.last_login_at)}):u();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(f,{onOpenChange:l,open:s,children:(0,L.jsx)(_,{})}),(0,L.jsxs)(N,{modal:!1,children:[(0,L.jsx)(k,{asChild:!0,children:(0,L.jsx)(E,{className:`relative h-8 w-8 rounded-full`,variant:`ghost`,children:(0,L.jsxs)(C,{className:`h-8 w-8`,children:[(0,L.jsx)(g,{alt:b,src:`/avatars/01.png`}),(0,L.jsx)(h,{children:T})]})})}),(0,L.jsxs)(j,{align:`end`,className:`w-56`,forceMount:!0,children:[(0,L.jsx)(A,{className:`p-0 font-normal`,children:(0,L.jsxs)(`div`,{className:`flex items-center gap-2 px-1 py-1.5 text-start text-sm`,children:[(0,L.jsxs)(C,{className:`h-8 w-8 rounded-lg`,children:[(0,L.jsx)(g,{alt:b,src:`/avatars/01.png`}),(0,L.jsx)(h,{className:`rounded-lg`,children:T})]}),(0,L.jsxs)(`div`,{className:`grid flex-1 text-start text-sm leading-tight`,children:[(0,L.jsx)(`span`,{className:`truncate font-semibold`,children:b}),(0,L.jsx)(`span`,{className:`truncate text-muted-foreground text-xs`,children:P})]})]})}),(0,L.jsx)(M,{}),(0,L.jsxs)(O,{children:[(0,L.jsx)(D,{asChild:!0,children:(0,L.jsxs)(d,{to:`/account/password`,children:[(0,L.jsx)(w,{className:`mr-2 size-4`}),i()]})}),(0,L.jsxs)(D,{onClick:()=>l(!0),onSelect:e=>e.preventDefault(),children:[(0,L.jsx)(p,{className:`mr-2 size-4`}),r()]})]}),(0,L.jsx)(M,{}),(0,L.jsxs)(D,{onClick:()=>n(!0),variant:`destructive`,children:[(0,L.jsx)(m,{className:`mr-2 size-4`}),c()]})]})]}),(0,L.jsx)(S,{onOpenChange:n,open:!!e})]})}function z({className:e=``,placeholder:t}){let{setOpen:n}=b();return(0,L.jsxs)(E,{className:T(`group relative h-8 w-full flex-1 justify-start rounded-md bg-muted/25 font-normal text-muted-foreground text-sm shadow-none hover:bg-accent sm:w-40 sm:pe-12 md:flex-none lg:w-52 xl:w-64`,e),onClick:()=>n(!0),variant:`outline`,children:[(0,L.jsx)(F,{"aria-hidden":`true`,className:`absolute inset-s-1.5 top-1/2 -translate-y-1/2`,size:16}),(0,L.jsx)(`span`,{className:`ms-4`,children:t??s()}),(0,L.jsxs)(`kbd`,{className:`pointer-events-none absolute inset-e-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-medium font-mono text-[10px] opacity-100 group-hover:bg-accent sm:flex`,children:[(0,L.jsx)(`span`,{className:`text-xs`,children:`⌘`}),`K`]})]})}function B({className:e,fixed:t,children:n,...r}){let[i,a]=(0,I.useState)(0);return(0,I.useEffect)(()=>{let e=()=>{a(document.body.scrollTop||document.documentElement.scrollTop)};return document.addEventListener(`scroll`,e,{passive:!0}),()=>document.removeEventListener(`scroll`,e)},[]),(0,L.jsx)(`header`,{className:T(`z-50 h-16`,t&&`header-fixed peer/header sticky top-0 w-[inherit]`,i>10&&t?`shadow`:`shadow-none`,e),...r,children:(0,L.jsxs)(`div`,{className:T(`relative flex h-full items-center gap-3 p-4 sm:gap-4`,i>10&&t&&`after:absolute after:inset-0 after:-z-10 after:bg-background/20 after:backdrop-blur-lg`),children:[(0,L.jsx)(v,{className:`max-md:scale-125`,variant:`outline`}),(0,L.jsx)(P,{className:`h-6`,orientation:`vertical`}),n]})})}export{z as n,R as r,B as t}; \ No newline at end of file diff --git a/src/www/assets/help-n4xnORtp.js b/src/www/assets/help-Bq6Uj7UY.js similarity index 88% rename from src/www/assets/help-n4xnORtp.js rename to src/www/assets/help-Bq6Uj7UY.js index ac30002..672518f 100644 --- a/src/www/assets/help-n4xnORtp.js +++ b/src/www/assets/help-Bq6Uj7UY.js @@ -1 +1 @@ -import{Fp as e,Ip as t,Lp as n,em as r}from"./messages-Bp0bCjzp.js";import{t as i}from"./telescope-DU0wiTDw.js";var a=r();function o(){return(0,a.jsx)(`div`,{className:`h-svh`,children:(0,a.jsxs)(`div`,{className:`m-auto flex h-full w-full flex-col items-center justify-center gap-2`,children:[(0,a.jsx)(i,{size:72}),(0,a.jsx)(`h1`,{className:`font-bold text-4xl leading-tight`,children:n()}),(0,a.jsxs)(`p`,{className:`text-center text-muted-foreground`,children:[t(),` `,(0,a.jsx)(`br`,{}),e()]})]})})}var s=o;export{s as component}; \ No newline at end of file +import{Ip as e,Lp as t,Rp as n,tm as r}from"./messages-BOatyqUm.js";import{t as i}from"./telescope-DU0wiTDw.js";var a=r();function o(){return(0,a.jsx)(`div`,{className:`h-svh`,children:(0,a.jsxs)(`div`,{className:`m-auto flex h-full w-full flex-col items-center justify-center gap-2`,children:[(0,a.jsx)(i,{size:72}),(0,a.jsx)(`h1`,{className:`font-bold text-4xl leading-tight`,children:n()}),(0,a.jsxs)(`p`,{className:`text-center text-muted-foreground`,children:[t(),` `,(0,a.jsx)(`br`,{}),e()]})]})})}var s=o;export{s as component}; \ No newline at end of file diff --git a/src/www/assets/index-DhgNijKi.js b/src/www/assets/index-3E84QvKw.js similarity index 99% rename from src/www/assets/index-DhgNijKi.js rename to src/www/assets/index-3E84QvKw.js index ca9f136..5d4bf8b 100644 --- a/src/www/assets/index-DhgNijKi.js +++ b/src/www/assets/index-3E84QvKw.js @@ -1,4 +1,4 @@ -import{r as e,t}from"./chunk-DECur_0Z.js";import{m as n}from"./auth-store-Csn6HPxJ.js";import{n as r,t as i}from"./router-BluvjQRz.js";import{t as a}from"./react-CO2uhaBc.js";import{em as o}from"./messages-Bp0bCjzp.js";import{n as s}from"./useRouter-DtTm7XkK.js";import{t as c}from"./Matches-DYR79wJf.js";import{r as l}from"./dist-BFnxq45V.js";import{r as u}from"./tooltip-Gx9CUpPD.js";import{r as d}from"./wallet-Bgblr4kl.js";import{t as f}from"./font-provider-CtpKPVa7.js";import{t as p}from"./theme-provider-CyJJNAox.js";import{t as m}from"./preload-helper-DoS0eHac.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var h=e(a(),1),g=o();function _({router:e,children:t,...n}){Object.keys(n).length>0&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,g.jsx)(s.Provider,{value:e,children:t});return e.options.Wrap?(0,g.jsx)(e.options.Wrap,{children:r}):r}function v({router:e,...t}){return(0,g.jsx)(_,{router:e,...t,children:(0,g.jsx)(c,{})})}var y=t((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,ee||(ee=!0,oe());else{var t=n(l);t!==null&&le(x,t.startTime-e)}}var ee=!1,te=-1,ne=5,re=-1;function ie(){return g?!0:!(e.unstable_now()-ret&&ie());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&le(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?oe():ee=!1}}}var oe;if(typeof y==`function`)oe=function(){y(ae)};else if(typeof MessageChannel<`u`){var se=new MessageChannel,ce=se.port2;se.port1.onmessage=ae,oe=function(){ce.postMessage(null)}}else oe=function(){_(ae,0)};function le(t,n){te=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(te),te=-1):h=!0,le(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,ee||(ee=!0,oe()))),r},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),b=t(((e,t)=>{t.exports=y()})),x=t((e=>{var t=b(),n=a(),r=l();function i(e){var t=`https://react.dev/errors/`+e;if(1ge||(e.current=he[ge],he[ge]=null,ge--)}function T(e,t){ge++,he[ge]=e.current,e.current=t}var ve=_e(null),ye=_e(null),be=_e(null),xe=_e(null);function Se(e,t){switch(T(be,t),T(ye,e),T(ve,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}w(ve),T(ve,e)}function Ce(){w(ve),w(ye),w(be)}function we(e){e.memoizedState!==null&&T(xe,e);var t=ve.current,n=Hd(t,e.type);t!==n&&(T(ye,e),T(ve,n))}function Te(e){ye.current===e&&(w(ve),w(ye)),xe.current===e&&(w(xe),Qf._currentValue=me)}var Ee,De;function Oe(e){if(Ee===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ee=t&&t[1]||``,De=-1{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var h=e(a(),1),g=o();function _({router:e,children:t,...n}){Object.keys(n).length>0&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,g.jsx)(s.Provider,{value:e,children:t});return e.options.Wrap?(0,g.jsx)(e.options.Wrap,{children:r}):r}function v({router:e,...t}){return(0,g.jsx)(_,{router:e,...t,children:(0,g.jsx)(c,{})})}var y=t((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,ee||(ee=!0,oe());else{var t=n(l);t!==null&&le(x,t.startTime-e)}}var ee=!1,te=-1,ne=5,re=-1;function ie(){return g?!0:!(e.unstable_now()-ret&&ie());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&le(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?oe():ee=!1}}}var oe;if(typeof y==`function`)oe=function(){y(ae)};else if(typeof MessageChannel<`u`){var se=new MessageChannel,ce=se.port2;se.port1.onmessage=ae,oe=function(){ce.postMessage(null)}}else oe=function(){_(ae,0)};function le(t,n){te=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(te),te=-1):h=!0,le(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,ee||(ee=!0,oe()))),r},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),b=t(((e,t)=>{t.exports=y()})),x=t((e=>{var t=b(),n=a(),r=l();function i(e){var t=`https://react.dev/errors/`+e;if(1ge||(e.current=he[ge],he[ge]=null,ge--)}function T(e,t){ge++,he[ge]=e.current,e.current=t}var ve=_e(null),ye=_e(null),be=_e(null),xe=_e(null);function Se(e,t){switch(T(be,t),T(ye,e),T(ve,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}w(ve),T(ve,e)}function Ce(){w(ve),w(ye),w(be)}function we(e){e.memoizedState!==null&&T(xe,e);var t=ve.current,n=Hd(t,e.type);t!==n&&(T(ye,e),T(ve,n))}function Te(e){ye.current===e&&(w(ve),w(ye)),xe.current===e&&(w(xe),Qf._currentValue=me)}var Ee,De;function Oe(e){if(Ee===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ee=t&&t[1]||``,De=-1)`:-1e[Math.floor(Math.random()*e.length)],J=()=>Be[Math.floor(Math.random()*41)];function He({glitchColors:e=[`#2b4539`,`#61dca3`,`#61b3dc`],glitchSpeed:t=`medium`,centerVignette:n=!1,outerVignette:r=!0,smooth:i=!0,className:a}){let o=(0,U.useRef)(null),s=(0,U.useRef)(0),c=(0,U.useRef)([]),l=(0,U.useRef)(0),u=(0,U.useRef)(0),d=(0,U.useCallback)((t,n)=>{c.current=Array.from({length:t*n},()=>({char:J(),color:q(e),opacity:Math.random()*.5+.1}))},[e]),f=(0,U.useCallback)(()=>{let e=o.current;if(!e)return;let t=e.getContext(`2d`);if(!t)return;t.clearRect(0,0,e.width,e.height),t.font=`${G}px monospace`;let n=c.current,r=l.current,i=u.current;for(let e=0;e{let t=c.current,n=t.length,r=Math.floor(n*.05);for(let a=0;a{let e=o.current;if(!e)return;let n=()=>{let t=e.parentElement;t&&(e.width=t.clientWidth,e.height=t.clientHeight,l.current=Math.ceil(e.width/K),u.current=Math.ceil(e.height/K),d(l.current,u.current),f())},r=new ResizeObserver(n);e.parentElement&&r.observe(e.parentElement),n();let i=setInterval(p,Ve[t]);return()=>{r.disconnect(),clearInterval(i),cancelAnimationFrame(s.current)}},[p,f,d,t]),(0,W.jsxs)(`div`,{className:`absolute inset-0 overflow-hidden ${a??``}`,children:[(0,W.jsx)(`canvas`,{className:`absolute inset-0`,ref:o}),r&&(0,W.jsx)(`div`,{className:`absolute inset-0`,style:{background:`radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.85) 100%)`}}),n&&(0,W.jsx)(`div`,{className:`absolute inset-0`,style:{background:`radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 70%)`}})]})}var Ue=ge(`relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current`,{variants:{variant:{default:`bg-card text-card-foreground`,destructive:`bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current`}},defaultVariants:{variant:`default`}});function We({className:e,variant:t,...n}){return(0,W.jsx)(`div`,{className:x(Ue({variant:t}),e),"data-slot":`alert`,role:`alert`,...n})}function Ge({className:e,...t}){return(0,W.jsx)(`div`,{className:x(`col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight`,e),"data-slot":`alert-title`,...t})}function Y({className:e,...t}){return(0,W.jsx)(`div`,{className:x(`col-start-2 grid justify-items-start gap-1 text-muted-foreground text-sm [&_p]:leading-relaxed`,e),"data-slot":`alert-description`,...t})}function Ke({value:e,onChange:t,options:n,placeholder:r=``,searchPlaceholder:i=`Search...`,emptyText:a=`No options found.`,className:o,disabled:s}){let[c,l]=(0,U.useState)(!1),u=n.map(e=>typeof e==`string`?{value:e,label:e}:e);return(0,W.jsxs)(ye,{onOpenChange:l,open:c,children:[(0,W.jsxs)(`div`,{className:x(`relative`,o),children:[(0,W.jsx)(V,{className:`pr-10`,disabled:s,onChange:e=>t(e.target.value),placeholder:r,value:e}),(0,W.jsx)(ve,{asChild:!0,children:(0,W.jsx)(S,{"aria-expanded":c,"aria-label":`Show options`,className:`absolute top-1/2 right-1 size-8 -translate-y-1/2`,disabled:s,size:`icon`,type:`button`,variant:`ghost`,children:(0,W.jsx)(C,{className:`size-4`})})})]}),(0,W.jsx)(_e,{align:`end`,className:`w-48 p-0`,children:(0,W.jsxs)(Te,{children:[(0,W.jsx)(j,{placeholder:i}),(0,W.jsxs)(we,{children:[(0,W.jsx)(Ce,{children:a}),(0,W.jsx)(M,{children:u.map(n=>(0,W.jsxs)(Se,{onSelect:()=>{t(n.value),l(!1)},value:n.value,children:[(0,W.jsx)(xe,{className:x(`size-4`,e===n.value?`opacity-100`:`opacity-0`)}),n.label??n.value]},n.value))})]})]})})]})}var qe=[`0.0.0.0`,`127.0.0.1`,`localhost`];function Je({form:e,loading:t,onSubmit:n,submitText:r}){return(0,W.jsx)(Me,{...e,children:(0,W.jsxs)(`form`,{className:`grid gap-4`,onSubmit:e.handleSubmit(n),children:[(0,W.jsx)(L,{control:e.control,name:`app_name`,render:({field:e})=>(0,W.jsxs)(I,{children:[(0,W.jsx)(z,{children:se()}),(0,W.jsx)(R,{children:(0,W.jsx)(V,{placeholder:`epusdt`,...e})}),(0,W.jsx)(B,{})]})}),(0,W.jsx)(L,{control:e.control,name:`app_uri`,render:({field:e})=>(0,W.jsxs)(I,{children:[(0,W.jsxs)(z,{children:[ne(),` *`]}),(0,W.jsx)(R,{children:(0,W.jsx)(V,{placeholder:`http://your-server-ip:8000`,...e})}),(0,W.jsx)(B,{})]})}),(0,W.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,W.jsx)(L,{control:e.control,name:`http_bind_addr`,render:({field:e})=>(0,W.jsxs)(I,{children:[(0,W.jsx)(z,{children:ee()}),(0,W.jsx)(R,{children:(0,W.jsx)(Ke,{onChange:e.onChange,options:qe,placeholder:`0.0.0.0`,value:e.value??``})}),(0,W.jsx)(B,{})]})}),(0,W.jsx)(L,{control:e.control,name:`http_bind_port`,render:({field:e})=>(0,W.jsxs)(I,{children:[(0,W.jsx)(z,{children:pe()}),(0,W.jsx)(R,{children:(0,W.jsx)(V,{placeholder:`8000`,type:`number`,...e,value:e.value??``})}),(0,W.jsx)(B,{})]})})]}),(0,W.jsx)(L,{control:e.control,name:`runtime_root_path`,render:({field:e})=>(0,W.jsxs)(I,{children:[(0,W.jsx)(z,{children:ie()}),(0,W.jsx)(R,{children:(0,W.jsx)(V,{placeholder:`./runtime`,...e})}),(0,W.jsx)(B,{})]})}),(0,W.jsx)(L,{control:e.control,name:`log_save_path`,render:({field:e})=>(0,W.jsxs)(I,{children:[(0,W.jsx)(z,{children:v()}),(0,W.jsx)(R,{children:(0,W.jsx)(V,{placeholder:`./logs`,...e})}),(0,W.jsx)(B,{})]})}),(0,W.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,W.jsx)(L,{control:e.control,name:`order_expiration_time`,render:({field:e})=>(0,W.jsxs)(I,{children:[(0,W.jsx)(z,{children:ue()}),(0,W.jsx)(R,{children:(0,W.jsx)(V,{placeholder:`10`,type:`number`,...e})}),(0,W.jsx)(B,{})]})}),(0,W.jsx)(L,{control:e.control,name:`order_notice_max_retry`,render:({field:e})=>(0,W.jsxs)(I,{children:[(0,W.jsx)(z,{children:oe()}),(0,W.jsx)(R,{children:(0,W.jsx)(V,{placeholder:`1`,type:`number`,...e})}),(0,W.jsx)(B,{})]})})]}),(0,W.jsxs)(S,{className:`mt-2 w-full`,disabled:t,type:`submit`,children:[t?(0,W.jsx)(A,{className:`animate-spin`}):null,r]})]})})}function Ye({credentials:e,onCopy:t,onTogglePassword:n,passwordLookupFailed:u,showPassword:_}){return(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsxs)(`div`,{className:`grid gap-4 rounded-2xl border border-emerald-500/20 bg-emerald-500/5 p-4 shadow-sm`,children:[(0,W.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,W.jsx)(`div`,{className:`flex size-10 shrink-0 items-center justify-center rounded-xl bg-emerald-500/12 text-emerald-600 dark:text-emerald-400`,children:(0,W.jsx)(Ee,{className:`size-5`})}),(0,W.jsxs)(`div`,{className:`space-y-1`,children:[(0,W.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,W.jsx)(`h3`,{className:`font-semibold text-base text-foreground`,children:r()}),e?(0,W.jsx)(H,{className:`rounded-md`,variant:`secondary`,children:g()}):null]}),(0,W.jsx)(`p`,{className:`text-muted-foreground text-sm leading-6`,children:l()})]})]}),e?(0,W.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,W.jsx)(`div`,{className:`rounded-xl border border-border/60 bg-background/85 p-4 shadow-sm`,children:(0,W.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,W.jsx)(`p`,{className:`text-muted-foreground text-xs uppercase tracking-wide`,children:ce()}),(0,W.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,W.jsx)(`p`,{className:`min-w-0 flex-1 truncate font-medium text-base text-foreground`,children:e.username}),(0,W.jsxs)(S,{"aria-label":i(),className:`scale-95 rounded-full`,onClick:()=>t(e.username),size:`icon`,type:`button`,variant:`ghost`,children:[(0,W.jsx)(w,{}),(0,W.jsx)(`span`,{className:`sr-only`,children:i()})]})]})]})}),(0,W.jsx)(`div`,{className:`rounded-xl border border-border/60 bg-background/85 p-4 shadow-sm`,children:(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,W.jsx)(H,{className:`w-fit rounded-md border-amber-200 bg-amber-50 text-amber-700 dark:border-amber-900/60 dark:bg-amber-950/40 dark:text-amber-300`,variant:`outline`,children:p()}),(0,W.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,W.jsx)(`p`,{className:`text-muted-foreground text-xs uppercase tracking-wide`,children:c()}),(0,W.jsxs)(H,{className:`rounded-md`,variant:`outline`,children:[(0,W.jsx)(Re,{className:`size-3.5`}),f()]})]}),(0,W.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,W.jsx)(`p`,{className:`min-w-0 flex-1 break-all font-medium text-base text-foreground`,children:_?e.password:`•`.repeat(Math.max(e.password.length,10))}),(0,W.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,W.jsxs)(S,{"aria-label":_?o():d(),className:`scale-95 rounded-full`,onClick:n,size:`icon`,type:`button`,variant:`ghost`,children:[_?(0,W.jsx)(E,{}):(0,W.jsx)(D,{}),(0,W.jsx)(`span`,{className:`sr-only`,children:_?o():d()})]}),(0,W.jsxs)(S,{"aria-label":i(),className:`scale-95 rounded-full`,onClick:()=>t(e.password),size:`icon`,type:`button`,variant:`ghost`,children:[(0,W.jsx)(w,{}),(0,W.jsx)(`span`,{className:`sr-only`,children:i()})]})]})]}),(0,W.jsx)(`p`,{className:`text-muted-foreground text-sm leading-6`,children:a()})]})})]}):null,u?(0,W.jsxs)(`div`,{className:`flex items-start gap-3 rounded-xl border border-amber-200 bg-amber-50 p-4 text-amber-900 dark:border-amber-900/60 dark:bg-amber-950/40 dark:text-amber-100`,children:[(0,W.jsx)(De,{className:`mt-0.5 size-4 shrink-0`}),(0,W.jsxs)(`div`,{className:`space-y-1`,children:[(0,W.jsx)(`p`,{className:`font-medium text-sm`,children:m()}),(0,W.jsx)(`p`,{className:`text-amber-800/80 text-sm leading-6 dark:text-amber-100/75`,children:h()})]})]}):null]}),(0,W.jsx)(S,{asChild:!0,className:`w-full`,type:`button`,children:(0,W.jsx)(he,{to:`/sign-in`,children:s()})})]})}var Xe=Oe({app_name:P().min(1,`App Name is required`),app_uri:P().min(1,`App URI is required`).url(`Must be a valid URL (e.g. http://your-server-ip:8000)`),http_bind_addr:P().min(1,`Bind address is required`),http_bind_port:F({error:`Port must be a number`}).int().min(1,`Port must be ≥ 1`).max(65535,`Port must be ≤ 65535`),runtime_root_path:P().min(1,`Runtime root path is required`),log_save_path:P().min(1,`Log save path is required`),order_expiration_time:F({error:`Must be a number`}).int().min(1,`Must be ≥ 1 minute`),order_notice_max_retry:F({error:`Must be a number`}).int().min(0,`Must be ≥ 0`)}),X={app_name:`epusdt`,app_uri:``,http_bind_addr:`0.0.0.0`,http_bind_port:8e3,runtime_root_path:`./runtime`,log_save_path:`./logs`,order_expiration_time:10,order_notice_max_retry:1},Z=`/`,Q=null;function Ze(e){let t=Z.startsWith(`http`)?Z:new URL(Z,window.location.origin).toString(),n=t.endsWith(`/`)?t:`${t}/`;return new URL(e.replace(/^\//,``),n).toString()}async function Qe(){let e=await fetch(Ze(`/admin/api/v1/auth/init-password`),{headers:{Accept:`application/json`}});if(!e.ok)return null;let t=await e.json(),n=t.data?.password?.trim()||``;return n?{username:t.data?.username?.trim()||`admin`,password:n}:null}function $(){return Q??=Qe().catch(()=>null).finally(()=>{Q=null}),Q}function $e(){let[e,n]=(0,U.useState)(!1),[r,i]=(0,U.useState)(!1),[a,o]=(0,U.useState)(null),[s,c]=(0,U.useState)(null),[l,d]=(0,U.useState)(!1),[f,p]=(0,U.useState)(!1),m=je({resolver:Ae(Xe),defaultValues:X,mode:`onChange`});(0,U.useEffect)(()=>{let e=!0;async function n(){try{let{data:n}=await t.GET(`/api/install/defaults`);if(!(e&&n))return;let r=Object.fromEntries(Object.entries(n).filter(([,e])=>e!==``&&e!=null));m.reset({...X,...r})}catch{}}return n().catch(()=>void 0),()=>{e=!1}},[m]),(0,U.useEffect)(()=>{let e=!0;async function t(){try{let t=await $();if(!(e&&t))return;c(t),d(!1),i(!0)}catch{}}return t().catch(()=>void 0),()=>{e=!1}},[]);function h(e){if(!(0,ze.default)(e)){N.error(u());return}N.success(me())}async function g(e){n(!0),o(null),d(!1);try{let{error:n,response:r}=await t.POST(`/api/install`,{body:e});if(!r.ok||n){o({variant:`destructive`,message:n?.error||b()});return}let a=await $();a||d(!0),i(!0),c(a)}catch{o({variant:`destructive`,message:b()})}finally{n(!1)}}let v=_();return e&&(v=re()),r&&(v=le()),(0,W.jsxs)(`div`,{className:`relative flex min-h-svh items-center justify-center px-4 py-10`,children:[(0,W.jsx)(He,{centerVignette:!1,glitchColors:[`#3f3f46`,`#71717a`,`#a1a1aa`],glitchSpeed:`fast`,outerVignette:!1,smooth:!0}),(0,W.jsxs)(Le,{className:`max-w-2xl border border-border/40 bg-card/55 shadow-xl backdrop-blur-xl`,children:[(0,W.jsxs)(Pe,{className:`space-y-6 border-border/40 border-b pb-8`,children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,W.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,W.jsx)(ke,{className:`size-10 shrink-0`}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`h1`,{className:`font-medium text-xl leading-tight`,children:`GMPay`}),(0,W.jsx)(`p`,{className:`mt-1 whitespace-nowrap text-muted-foreground text-xs`,children:te()})]})]}),(0,W.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,W.jsx)(O,{}),(0,W.jsx)(k,{})]})]}),r?null:(0,W.jsxs)(`div`,{className:`space-y-3`,children:[(0,W.jsx)(Ne,{className:`text-2xl tracking-tight`,children:y()}),(0,W.jsx)(Ie,{className:`max-w-xl text-sm leading-6`,children:ae()})]})]}),(0,W.jsx)(Fe,{children:(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[a?(0,W.jsxs)(We,{variant:a.variant,children:[(0,W.jsx)(Ge,{children:de()}),(0,W.jsx)(Y,{children:a.message})]}):null,r?(0,W.jsx)(Ye,{credentials:s,onCopy:h,onTogglePassword:()=>p(e=>!e),passwordLookupFailed:l,showPassword:f}):(0,W.jsx)(Je,{form:m,loading:e,onSubmit:g,submitText:v})]})})]})]})}var et=$e;export{et as component}; \ No newline at end of file diff --git a/src/www/assets/install-C3-O8MFY.js b/src/www/assets/install-C3-O8MFY.js deleted file mode 100644 index f5e8ed9..0000000 --- a/src/www/assets/install-C3-O8MFY.js +++ /dev/null @@ -1 +0,0 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{s as t}from"./auth-store-Csn6HPxJ.js";import{t as n}from"./react-CO2uhaBc.js";import{$u as r,Bu as i,Gu as a,Hu as o,Ju as s,Ku as c,Qu as l,Ru as u,Uu as d,Vu as f,Wu as p,Xu as m,Yu as h,Zu as g,ad as _,cd as v,dd as ee,ed as te,em as ne,fd as y,id as re,ld as ie,md as ae,nd as oe,od as se,pd as ce,qu as le,rd as ue,sd as de,td as b,ud as fe,zu as pe}from"./messages-Bp0bCjzp.js";import{t as me}from"./link-BYG8nKNO.js";import{i as x,r as he,t as S}from"./button-BgMnOYKD.js";import{n as ge,r as _e,t as ve}from"./popover-YeKifm3K.js";import{t as C}from"./createLucideIcon-Br0Bd5k2.js";import{t as w}from"./check-CHp0nSkR.js";import{t as T}from"./chevron-down-BB5h1CsX.js";import{n as E,t as D}from"./copy-to-clipboard-C1tj4a8X.js";import{t as O}from"./eye-off-B8hO0oST.js";import{t as k}from"./eye-DAKGLydt.js";import{n as A,t as j}from"./theme-switch-B3Qb32n8.js";import{t as M}from"./loader-circle-DpEz1fQv.js";import{a as N,i as P,o as F,r as ye,s as be,t as xe}from"./command-CIv3ggHf.js";import{t as Se}from"./shield-check-MAPDL1u8.js";import{t as Ce}from"./triangle-alert-DB5v_9sS.js";import{n as I}from"./dist-BGqHIBUe.js";import{c as L,n as R,s as we}from"./zod-rwFXxHlg.js";import{t as Te}from"./logo-Ce__4GTc.js";import{a as z,c as Ee,i as B,l as De,n as V,o as H,s as U,t as Oe}from"./form-BhKmyN6D.js";import{t as W}from"./input-BleRUV2A.js";import{t as G}from"./badge-BP05f1dq.js";import{a as ke,i as Ae,n as je,r as Me,t as Ne}from"./card-C7G2YcSg.js";var Pe=C(`lock-keyhole`,[[`circle`,{cx:`12`,cy:`16`,r:`1`,key:`1au0dj`}],[`rect`,{x:`3`,y:`10`,width:`18`,height:`12`,rx:`2`,key:`6s8ecr`}],[`path`,{d:`M7 10V7a5 5 0 0 1 10 0v3`,key:`1pqi11`}]]),Fe=e(D(),1),K=e(n(),1),q=ne(),Ie=`ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%&`,J=14,Y=20,Le={slow:400,medium:200,fast:80},X=e=>e[Math.floor(Math.random()*e.length)],Z=()=>Ie[Math.floor(Math.random()*41)];function Re({glitchColors:e=[`#2b4539`,`#61dca3`,`#61b3dc`],glitchSpeed:t=`medium`,centerVignette:n=!1,outerVignette:r=!0,smooth:i=!0,className:a}){let o=(0,K.useRef)(null),s=(0,K.useRef)(0),c=(0,K.useRef)([]),l=(0,K.useRef)(0),u=(0,K.useRef)(0),d=(0,K.useCallback)((t,n)=>{c.current=Array.from({length:t*n},()=>({char:Z(),color:X(e),opacity:Math.random()*.5+.1}))},[e]),f=(0,K.useCallback)(()=>{let e=o.current;if(!e)return;let t=e.getContext(`2d`);if(!t)return;t.clearRect(0,0,e.width,e.height),t.font=`${J}px monospace`;let n=c.current,r=l.current,i=u.current;for(let e=0;e{let t=c.current,n=t.length,r=Math.floor(n*.05);for(let a=0;a{let e=o.current;if(!e)return;let n=()=>{let t=e.parentElement;t&&(e.width=t.clientWidth,e.height=t.clientHeight,l.current=Math.ceil(e.width/Y),u.current=Math.ceil(e.height/Y),d(l.current,u.current),f())},r=new ResizeObserver(n);e.parentElement&&r.observe(e.parentElement),n();let i=setInterval(p,Le[t]);return()=>{r.disconnect(),clearInterval(i),cancelAnimationFrame(s.current)}},[p,f,d,t]),(0,q.jsxs)(`div`,{className:`absolute inset-0 overflow-hidden ${a??``}`,children:[(0,q.jsx)(`canvas`,{className:`absolute inset-0`,ref:o}),r&&(0,q.jsx)(`div`,{className:`absolute inset-0`,style:{background:`radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.85) 100%)`}}),n&&(0,q.jsx)(`div`,{className:`absolute inset-0`,style:{background:`radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 70%)`}})]})}var Q=he(`relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current`,{variants:{variant:{default:`bg-card text-card-foreground`,destructive:`bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current`}},defaultVariants:{variant:`default`}});function ze({className:e,variant:t,...n}){return(0,q.jsx)(`div`,{className:x(Q({variant:t}),e),"data-slot":`alert`,role:`alert`,...n})}function Be({className:e,...t}){return(0,q.jsx)(`div`,{className:x(`col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight`,e),"data-slot":`alert-title`,...t})}function Ve({className:e,...t}){return(0,q.jsx)(`div`,{className:x(`col-start-2 grid justify-items-start gap-1 text-muted-foreground text-sm [&_p]:leading-relaxed`,e),"data-slot":`alert-description`,...t})}function He({value:e,onChange:t,options:n,placeholder:r=``,searchPlaceholder:i=`Search...`,emptyText:a=`No options found.`,className:o,disabled:s}){let[c,l]=(0,K.useState)(!1),u=n.map(e=>typeof e==`string`?{value:e,label:e}:e);return(0,q.jsxs)(ve,{onOpenChange:l,open:c,children:[(0,q.jsxs)(`div`,{className:x(`relative`,o),children:[(0,q.jsx)(W,{className:`pr-10`,disabled:s,onChange:e=>t(e.target.value),placeholder:r,value:e}),(0,q.jsx)(_e,{asChild:!0,children:(0,q.jsx)(S,{"aria-expanded":c,"aria-label":`Show options`,className:`absolute top-1/2 right-1 size-8 -translate-y-1/2`,disabled:s,size:`icon`,type:`button`,variant:`ghost`,children:(0,q.jsx)(T,{className:`size-4`})})})]}),(0,q.jsx)(ge,{align:`end`,className:`w-48 p-0`,children:(0,q.jsxs)(xe,{children:[(0,q.jsx)(N,{placeholder:i}),(0,q.jsxs)(be,{children:[(0,q.jsx)(ye,{children:a}),(0,q.jsx)(P,{children:u.map(n=>(0,q.jsxs)(F,{onSelect:()=>{t(n.value),l(!1)},value:n.value,children:[(0,q.jsx)(w,{className:x(`size-4`,e===n.value?`opacity-100`:`opacity-0`)}),n.label??n.value]},n.value))})]})]})})]})}var Ue=[`0.0.0.0`,`127.0.0.1`,`localhost`];function We({form:e,loading:t,onSubmit:n,submitText:r}){return(0,q.jsx)(Oe,{...e,children:(0,q.jsxs)(`form`,{className:`grid gap-4`,onSubmit:e.handleSubmit(n),children:[(0,q.jsx)(B,{control:e.control,name:`app_name`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsx)(H,{children:y()}),(0,q.jsx)(V,{children:(0,q.jsx)(W,{placeholder:`epusdt`,...e})}),(0,q.jsx)(U,{})]})}),(0,q.jsx)(B,{control:e.control,name:`app_uri`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsxs)(H,{children:[ee(),` *`]}),(0,q.jsx)(V,{children:(0,q.jsx)(W,{placeholder:`http://your-server-ip:8000`,...e})}),(0,q.jsx)(U,{})]})}),(0,q.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,q.jsx)(B,{control:e.control,name:`http_bind_addr`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsx)(H,{children:fe()}),(0,q.jsx)(V,{children:(0,q.jsx)(He,{onChange:e.onChange,options:Ue,placeholder:`0.0.0.0`,value:e.value??``})}),(0,q.jsx)(U,{})]})}),(0,q.jsx)(B,{control:e.control,name:`http_bind_port`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsx)(H,{children:ie()}),(0,q.jsx)(V,{children:(0,q.jsx)(W,{placeholder:`8000`,type:`number`,...e,value:e.value??``})}),(0,q.jsx)(U,{})]})})]}),(0,q.jsx)(B,{control:e.control,name:`runtime_root_path`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsx)(H,{children:v()}),(0,q.jsx)(V,{children:(0,q.jsx)(W,{placeholder:`./runtime`,...e})}),(0,q.jsx)(U,{})]})}),(0,q.jsx)(B,{control:e.control,name:`log_save_path`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsx)(H,{children:de()}),(0,q.jsx)(V,{children:(0,q.jsx)(W,{placeholder:`./logs`,...e})}),(0,q.jsx)(U,{})]})}),(0,q.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,q.jsx)(B,{control:e.control,name:`order_expiration_time`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsx)(H,{children:se()}),(0,q.jsx)(V,{children:(0,q.jsx)(W,{placeholder:`10`,type:`number`,...e})}),(0,q.jsx)(U,{})]})}),(0,q.jsx)(B,{control:e.control,name:`order_notice_max_retry`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsx)(H,{children:_()}),(0,q.jsx)(V,{children:(0,q.jsx)(W,{placeholder:`1`,type:`number`,...e})}),(0,q.jsx)(U,{})]})})]}),(0,q.jsxs)(S,{className:`mt-2 w-full`,disabled:t,type:`submit`,children:[t?(0,q.jsx)(M,{className:`animate-spin`}):null,r]})]})})}function Ge({credentials:e,onCopy:t,onTogglePassword:n,passwordLookupFailed:r,showPassword:u}){return(0,q.jsxs)(`div`,{className:`grid gap-4`,children:[(0,q.jsxs)(`div`,{className:`grid gap-4 rounded-2xl border border-emerald-500/20 bg-emerald-500/5 p-4 shadow-sm`,children:[(0,q.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,q.jsx)(`div`,{className:`flex size-10 shrink-0 items-center justify-center rounded-xl bg-emerald-500/12 text-emerald-600 dark:text-emerald-400`,children:(0,q.jsx)(Se,{className:`size-5`})}),(0,q.jsxs)(`div`,{className:`space-y-1`,children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,q.jsx)(`h3`,{className:`font-semibold text-base text-foreground`,children:l()}),e?(0,q.jsx)(G,{className:`rounded-md`,variant:`secondary`,children:m()}):null]}),(0,q.jsx)(`p`,{className:`text-muted-foreground text-sm leading-6`,children:g()})]})]}),e?(0,q.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,q.jsx)(`div`,{className:`rounded-xl border border-border/60 bg-background/85 p-4 shadow-sm`,children:(0,q.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,q.jsx)(`p`,{className:`text-muted-foreground text-xs uppercase tracking-wide`,children:c()}),(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,q.jsx)(`p`,{className:`min-w-0 flex-1 truncate font-medium text-base text-foreground`,children:e.username}),(0,q.jsxs)(S,{"aria-label":i(),className:`scale-95 rounded-full`,onClick:()=>t(e.username),size:`icon`,type:`button`,variant:`ghost`,children:[(0,q.jsx)(E,{}),(0,q.jsx)(`span`,{className:`sr-only`,children:i()})]})]})]})}),(0,q.jsx)(`div`,{className:`rounded-xl border border-border/60 bg-background/85 p-4 shadow-sm`,children:(0,q.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,q.jsx)(G,{className:`w-fit rounded-md border-amber-200 bg-amber-50 text-amber-700 dark:border-amber-900/60 dark:bg-amber-950/40 dark:text-amber-300`,variant:`outline`,children:p()}),(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,q.jsx)(`p`,{className:`text-muted-foreground text-xs uppercase tracking-wide`,children:a()}),(0,q.jsxs)(G,{className:`rounded-md`,variant:`outline`,children:[(0,q.jsx)(Pe,{className:`size-3.5`}),f()]})]}),(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,q.jsx)(`p`,{className:`min-w-0 flex-1 break-all font-medium text-base text-foreground`,children:u?e.password:`•`.repeat(Math.max(e.password.length,10))}),(0,q.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,q.jsxs)(S,{"aria-label":u?o():d(),className:`scale-95 rounded-full`,onClick:n,size:`icon`,type:`button`,variant:`ghost`,children:[u?(0,q.jsx)(O,{}):(0,q.jsx)(k,{}),(0,q.jsx)(`span`,{className:`sr-only`,children:u?o():d()})]}),(0,q.jsxs)(S,{"aria-label":i(),className:`scale-95 rounded-full`,onClick:()=>t(e.password),size:`icon`,type:`button`,variant:`ghost`,children:[(0,q.jsx)(E,{}),(0,q.jsx)(`span`,{className:`sr-only`,children:i()})]})]})]})]})})]}):null,r?(0,q.jsxs)(`div`,{className:`flex items-start gap-3 rounded-xl border border-amber-200 bg-amber-50 p-4 text-amber-900 dark:border-amber-900/60 dark:bg-amber-950/40 dark:text-amber-100`,children:[(0,q.jsx)(Ce,{className:`mt-0.5 size-4 shrink-0`}),(0,q.jsxs)(`div`,{className:`space-y-1`,children:[(0,q.jsx)(`p`,{className:`font-medium text-sm`,children:h()}),(0,q.jsx)(`p`,{className:`text-amber-800/80 text-sm leading-6 dark:text-amber-100/75`,children:s()})]})]}):null]}),(0,q.jsx)(S,{asChild:!0,className:`w-full`,type:`button`,children:(0,q.jsx)(me,{to:`/sign-in`,children:le()})})]})}var Ke=we({app_name:L().min(1,`App Name is required`),app_uri:L().min(1,`App URI is required`).url(`Must be a valid URL (e.g. http://your-server-ip:8000)`),http_bind_addr:L().min(1,`Bind address is required`),http_bind_port:R({error:`Port must be a number`}).int().min(1,`Port must be ≥ 1`).max(65535,`Port must be ≤ 65535`),runtime_root_path:L().min(1,`Runtime root path is required`),log_save_path:L().min(1,`Log save path is required`),order_expiration_time:R({error:`Must be a number`}).int().min(1,`Must be ≥ 1 minute`),order_notice_max_retry:R({error:`Must be a number`}).int().min(0,`Must be ≥ 0`)}),$={app_name:`epusdt`,app_uri:``,http_bind_addr:`0.0.0.0`,http_bind_port:8e3,runtime_root_path:`./runtime`,log_save_path:`./logs`,order_expiration_time:10,order_notice_max_retry:1};function qe(){let[e,n]=(0,K.useState)(!1),[i,a]=(0,K.useState)(!1),[o,s]=(0,K.useState)(null),[c,l]=(0,K.useState)(null),[d,f]=(0,K.useState)(!1),[p,m]=(0,K.useState)(!1),h=De({resolver:Ee(Ke),defaultValues:$,mode:`onChange`});(0,K.useEffect)(()=>{let e=!0;async function n(){try{let{data:n}=await t.GET(`/api/install/defaults`);if(!(e&&n))return;let r=Object.fromEntries(Object.entries(n).filter(([,e])=>e!==``&&e!=null));h.reset({...$,...r})}catch{}}return n().catch(()=>void 0),()=>{e=!1}},[h]);function g(e){if(!(0,Fe.default)(e)){I.error(u());return}I.success(pe())}async function _(e){n(!0),s(null),f(!1);try{let{error:n,response:r}=await t.POST(`/api/install`,{body:e});if(!r.ok||n){s({variant:`destructive`,message:n?.error||b()});return}let i=null;try{let{data:e,error:n,response:r}=await t.GET(`/admin/api/v1/auth/init-password`),a=e?.data?.password?.trim()||``;if(!(r.ok&&!n&&a))throw Error(`Failed to load initial password`);i={username:e?.data?.username?.trim()||`admin`,password:a}}catch{i=null,f(!0)}a(!0),l(i)}catch{s({variant:`destructive`,message:b()})}finally{n(!1)}}let v=re();return e&&(v=ue()),i&&(v=oe()),(0,q.jsxs)(`div`,{className:`relative flex min-h-svh items-center justify-center px-4 py-10`,children:[(0,q.jsx)(Re,{centerVignette:!1,glitchColors:[`#3f3f46`,`#71717a`,`#a1a1aa`],glitchSpeed:`fast`,outerVignette:!1,smooth:!0}),(0,q.jsxs)(Ne,{className:`max-w-2xl border border-border/40 bg-card/55 shadow-xl backdrop-blur-xl`,children:[(0,q.jsxs)(Ae,{className:`space-y-6 border-border/40 border-b pb-8`,children:[(0,q.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,q.jsx)(Te,{className:`size-10 shrink-0`}),(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`h1`,{className:`font-medium text-xl leading-tight`,children:`GMPay`}),(0,q.jsx)(`p`,{className:`mt-1 whitespace-nowrap text-muted-foreground text-xs`,children:r()})]})]}),(0,q.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,q.jsx)(A,{}),(0,q.jsx)(j,{})]})]}),i?null:(0,q.jsxs)(`div`,{className:`space-y-3`,children:[(0,q.jsx)(ke,{className:`text-2xl tracking-tight`,children:ae()}),(0,q.jsx)(Me,{className:`max-w-xl text-sm leading-6`,children:ce()})]})]}),(0,q.jsx)(je,{children:(0,q.jsxs)(`div`,{className:`grid gap-4`,children:[o?(0,q.jsxs)(ze,{variant:o.variant,children:[(0,q.jsx)(Be,{children:te()}),(0,q.jsx)(Ve,{children:o.message})]}):null,i?(0,q.jsx)(Ge,{credentials:c,onCopy:g,onTogglePassword:()=>m(e=>!e),passwordLookupFailed:d,showPassword:p}):(0,q.jsx)(We,{form:h,loading:e,onSubmit:_,submitText:v})]})})]})]})}var Je=qe;export{Je as component}; \ No newline at end of file diff --git a/src/www/assets/integrations-d7FQWamq.js b/src/www/assets/integrations-Clnk2I57.js similarity index 86% rename from src/www/assets/integrations-d7FQWamq.js rename to src/www/assets/integrations-Clnk2I57.js index 648aa76..e39218a 100644 --- a/src/www/assets/integrations-d7FQWamq.js +++ b/src/www/assets/integrations-Clnk2I57.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{As as n,Ds as r,Fs as i,Ms as a,Ns as o,Os as s,Ps as c,em as l,js as u,ks as d}from"./messages-Bp0bCjzp.js";import{r as f}from"./route-Bin9ihv_.js";import{d as p,n as m,o as h,r as g,s as _}from"./data-table-C3Nm2K6Z.js";import{t as v}from"./badge-BP05f1dq.js";import{t as y}from"./use-table-url-state-DP0Y4QjR.js";var b=e(t(),1),x=l(),S=[{name:`GMPay`,entries:[{method:`POST`,path:`/payments/gmpay/v1/order/create-transaction`}],requestFields:[`order_id`,`currency`,`token`,`network`,`amount`,`notify_url`,`signature`,`redirect_url?`,`name?`,`payment_type?`],callbackNote:d()},{name:`EPay Compatible`,entries:[{method:`POST`,path:`/payments/epay/v1/order/create-transaction/submit.php`},{method:`GET`,path:`/payments/epay/v1/order/create-transaction/submit.php`}],requestFields:[`pid`,`money`,`out_trade_no`,`notify_url`,`return_url?`,`name?`,`type?`,`sign`,`sign_type?`],callbackNote:s()},{name:`OKPay`,entries:[{method:`POST`,path:`/payments/okpay/v1/notify`}],requestFields:[`OkPay notify payload`],callbackNote:r()}];function C({method:e}){return(0,x.jsx)(v,{className:e===`GET`?`rounded border border-blue-500/30 bg-blue-500/10 font-mono text-blue-600 dark:text-blue-400`:`rounded border border-emerald-500/30 bg-emerald-500/10 font-mono text-emerald-600 dark:text-emerald-400`,variant:`outline`,children:e})}function w({field:e}){return(0,x.jsx)(`code`,{className:`rounded bg-muted px-1.5 py-0.5 font-mono text-foreground text-xs`,children:e})}function T({item:e}){let t=e.entries.reduce((e,t)=>(e[t.path]||(e[t.path]=[]),e[t.path].push(t.method),e),{});return(0,x.jsx)(`div`,{className:`flex flex-col gap-1.5`,children:Object.entries(t).map(([e,t])=>(0,x.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,x.jsx)(`div`,{className:`flex gap-1.5`,children:t.map(e=>(0,x.jsx)(C,{method:e},e))}),(0,x.jsx)(`code`,{className:`whitespace-normal break-words font-mono text-sm`,children:e})]},e))})}function E({fields:e}){return(0,x.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:e.map(e=>(0,x.jsx)(w,{field:e},e))})}var D=f(`/_authenticated/payment-setup/integrations`);function O(){let{pagination:e,onPaginationChange:t,ensurePageInRange:r}=y({search:D.useSearch(),navigate:D.useNavigate(),pagination:{defaultPage:1,defaultPageSize:10}}),s=h({data:S,columns:(0,b.useMemo)(()=>[{accessorKey:`name`,header:o(),cell:({row:e})=>(0,x.jsx)(`span`,{className:`font-medium`,children:e.original.name})},{accessorKey:`entries`,header:a(),cell:({row:e})=>(0,x.jsx)(T,{item:e.original})},{accessorKey:`requestFields`,header:u(),cell:({row:e})=>(0,x.jsx)(E,{fields:e.original.requestFields})},{accessorKey:`callbackNote`,header:n(),cell:({row:e})=>(0,x.jsx)(`span`,{className:`whitespace-normal break-words text-muted-foreground text-sm`,children:e.original.callbackNote})}],[]),state:{pagination:e},onPaginationChange:t,getCoreRowModel:_(),getPaginationRowModel:p()});return(0,b.useEffect)(()=>{r(s.getPageCount())},[s,r]),(0,x.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,x.jsxs)(`div`,{className:`space-y-1`,children:[(0,x.jsx)(`h3`,{className:`font-semibold text-lg`,children:i()}),(0,x.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:c()})]}),(0,x.jsx)(g,{table:s}),(0,x.jsx)(m,{className:`mt-auto`,table:s})]})}function k(){return(0,x.jsx)(O,{})}var A=k;export{A as component}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{As as n,Ds as r,Fs as i,Ms as a,Ns as o,Os as s,Ps as c,js as l,ks as u,tm as d}from"./messages-BOatyqUm.js";import{r as f}from"./route-wzPKSRj2.js";import{d as p,n as m,o as h,r as g,s as _}from"./data-table-1LQSBhN2.js";import{t as v}from"./badge-VJlwwTW5.js";import{t as y}from"./use-table-url-state-DP0Y4QjR.js";var b=e(t(),1),x=d(),S=[{name:`GMPay`,entries:[{method:`POST`,path:`/payments/gmpay/v1/order/create-transaction`}],requestFields:[`order_id`,`currency`,`token`,`network`,`amount`,`notify_url`,`signature`,`redirect_url?`,`name?`,`payment_type?`],callbackNote:u()},{name:`EPay Compatible`,entries:[{method:`POST`,path:`/payments/epay/v1/order/create-transaction/submit.php`},{method:`GET`,path:`/payments/epay/v1/order/create-transaction/submit.php`}],requestFields:[`pid`,`money`,`out_trade_no`,`notify_url`,`return_url?`,`name?`,`type?`,`sign`,`sign_type?`],callbackNote:s()},{name:`OKPay`,entries:[{method:`POST`,path:`/payments/okpay/v1/notify`}],requestFields:[`OkPay notify payload`],callbackNote:r()}];function C({method:e}){return(0,x.jsx)(v,{className:e===`GET`?`rounded border border-blue-500/30 bg-blue-500/10 font-mono text-blue-600 dark:text-blue-400`:`rounded border border-emerald-500/30 bg-emerald-500/10 font-mono text-emerald-600 dark:text-emerald-400`,variant:`outline`,children:e})}function w({field:e}){return(0,x.jsx)(`code`,{className:`rounded bg-muted px-1.5 py-0.5 font-mono text-foreground text-xs`,children:e})}function T({item:e}){let t=e.entries.reduce((e,t)=>(e[t.path]||(e[t.path]=[]),e[t.path].push(t.method),e),{});return(0,x.jsx)(`div`,{className:`flex flex-col gap-1.5`,children:Object.entries(t).map(([e,t])=>(0,x.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,x.jsx)(`div`,{className:`flex gap-1.5`,children:t.map(e=>(0,x.jsx)(C,{method:e},e))}),(0,x.jsx)(`code`,{className:`whitespace-normal break-words font-mono text-sm`,children:e})]},e))})}function E({fields:e}){return(0,x.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:e.map(e=>(0,x.jsx)(w,{field:e},e))})}var D=f(`/_authenticated/payment-setup/integrations`);function O(){let{pagination:e,onPaginationChange:t,ensurePageInRange:r}=y({search:D.useSearch(),navigate:D.useNavigate(),pagination:{defaultPage:1,defaultPageSize:10}}),s=h({data:S,columns:(0,b.useMemo)(()=>[{accessorKey:`name`,header:o(),cell:({row:e})=>(0,x.jsx)(`span`,{className:`font-medium`,children:e.original.name})},{accessorKey:`entries`,header:a(),cell:({row:e})=>(0,x.jsx)(T,{item:e.original})},{accessorKey:`requestFields`,header:l(),cell:({row:e})=>(0,x.jsx)(E,{fields:e.original.requestFields})},{accessorKey:`callbackNote`,header:n(),cell:({row:e})=>(0,x.jsx)(`span`,{className:`whitespace-normal break-words text-muted-foreground text-sm`,children:e.original.callbackNote})}],[]),state:{pagination:e},onPaginationChange:t,getCoreRowModel:_(),getPaginationRowModel:p()});return(0,b.useEffect)(()=>{r(s.getPageCount())},[s,r]),(0,x.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,x.jsxs)(`div`,{className:`space-y-1`,children:[(0,x.jsx)(`h3`,{className:`font-semibold text-lg`,children:i()}),(0,x.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:c()})]}),(0,x.jsx)(g,{table:s}),(0,x.jsx)(m,{className:`mt-auto`,table:s})]})}function k(){return(0,x.jsx)(O,{})}var A=k;export{A as component}; \ No newline at end of file diff --git a/src/www/assets/keys-D6xhmsEg.js b/src/www/assets/keys-D6xhmsEg.js deleted file mode 100644 index e9472ab..0000000 --- a/src/www/assets/keys-D6xhmsEg.js +++ /dev/null @@ -1,2 +0,0 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{a as t}from"./auth-store-Csn6HPxJ.js";import{t as n}from"./router-BluvjQRz.js";import{t as r}from"./react-CO2uhaBc.js";import{$i as i,Ai as a,Bi as o,Ci as s,Di as c,Ei as l,Fi as u,Gi as d,Hi as f,Ii as p,Ip as m,Ji as h,Ki as g,Ko as _,Li as ee,Lp as v,Mi as y,Ni as te,Oi as ne,Pi as re,Qi as b,Ri as ie,Si as ae,Ti as oe,Ts as se,Ui as ce,Vi as le,Wi as ue,Xi as de,Xr as x,Yi as fe,Yp as S,Zi as pe,_i as C,ap as me,bi as w,di as T,em as E,fi as D,gi as O,hi as k,ji as A,ki as j,li as he,mi as M,pi as ge,qi as _e,ui as N,uo as ve,vi as P,wi as ye,xi as F,yi as I,zi as be}from"./messages-Bp0bCjzp.js";import{r as L}from"./route-Bin9ihv_.js";import{o as R,s as xe,z as Se}from"./search-provider-Bl2HDfcG.js";import{t as z}from"./button-BgMnOYKD.js";import{t as Ce}from"./confirm-dialog-YmxNnOr3.js";import{a as we,i as Te,n as Ee,r as B,t as De}from"./select-C9s05In_.js";import{t as Oe}from"./separator-DbmFQXe4.js";import{t as ke}from"./switch-CVYl00Vs.js";import{t as V}from"./createLucideIcon-Br0Bd5k2.js";import{t as H}from"./skeleton-BQsmx80h.js";import{n as Ae,t as je}from"./copy-to-clipboard-C1tj4a8X.js";import{t as Me}from"./eye-off-B8hO0oST.js";import{t as Ne}from"./eye-DAKGLydt.js";import{n as Pe,r as Fe,t as Ie}from"./empty-state-BdzO6t8R.js";import{n as Le,t as Re}from"./main-DnJ8otd-.js";import{n as ze,t as Be}from"./trash-2-9I8lAjeE.js";import{t as Ve}from"./shield-check-MAPDL1u8.js";import{i as He,o as Ue,r as U,s as We,t as Ge}from"./dialog-BJ5VA2v_.js";import{n as W}from"./dist-BGqHIBUe.js";import{c as G,s as Ke}from"./zod-rwFXxHlg.js";import{a as K,c as qe,i as q,l as Je,n as J,o as Y,r as Ye,s as X,t as Xe}from"./form-BhKmyN6D.js";import{t as Z}from"./input-BleRUV2A.js";import{t as Ze}from"./page-header-CDwG3nxs.js";import{t as Qe}from"./textarea-BaSGKw3a.js";import{t as $e}from"./badge-BP05f1dq.js";var et=V(`arrow-down-a-z`,[[`path`,{d:`m3 16 4 4 4-4`,key:`1co6wj`}],[`path`,{d:`M7 20V4`,key:`1yoxec`}],[`path`,{d:`M20 8h-5`,key:`1vsyxs`}],[`path`,{d:`M15 10V6.5a2.5 2.5 0 0 1 5 0V10`,key:`ag13bf`}],[`path`,{d:`M15 14h5l-5 6h5`,key:`ur5jdg`}]]),tt=V(`arrow-up-a-z`,[[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}],[`path`,{d:`M20 8h-5`,key:`1vsyxs`}],[`path`,{d:`M15 10V6.5a2.5 2.5 0 0 1 5 0V10`,key:`ag13bf`}],[`path`,{d:`M15 14h5l-5 6h5`,key:`ur5jdg`}]]),nt=V(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),rt=e(je(),1),Q=e(r(),1),$=E(),it=Ke({name:G().min(1,he()),notify_url:G().optional(),ip_whitelist:G().optional()});function at({open:e,onOpenChange:n,currentRow:r,onSuccess:i}){let a=Je({resolver:qe(it),defaultValues:{name:``,notify_url:``,ip_whitelist:``}}),o=t.useMutation(`post`,`/admin/api/v1/api-keys`),s=t.useMutation(`patch`,`/admin/api/v1/api-keys/{id}`),l=o.data?.data?.secret_key;(0,Q.useEffect)(()=>{e&&a.reset({name:r?.name??``,notify_url:r?.notify_url??``,ip_whitelist:r?.ip_whitelist??``})},[e,r,a]);function u(e){e||(a.reset({name:``,notify_url:``,ip_whitelist:``}),o.reset(),s.reset()),n(e)}function d(e){if(r?.id){s.mutate({params:{path:{id:r.id}},body:{name:e.name,notify_url:e.notify_url,ip_whitelist:e.ip_whitelist||void 0}},{onSuccess:()=>{W.success(T()),n(!1),i?.()}});return}o.mutate({body:{name:e.name,notify_url:e.notify_url,ip_whitelist:e.ip_whitelist||void 0}},{onSuccess:()=>{W.success(N()),i?.()}})}function f(){u(!1)}let p=o.isPending||s.isPending;return(0,$.jsx)(Ge,{onOpenChange:u,open:e,children:(0,$.jsxs)(U,{children:[(0,$.jsxs)(Ue,{children:[(0,$.jsx)(We,{children:r?w():I()}),(0,$.jsx)(He,{children:r?P():C()})]}),(0,$.jsx)(Xe,{...a,children:(0,$.jsxs)(`form`,{className:`space-y-4`,onSubmit:a.handleSubmit(d),children:[(0,$.jsx)(q,{control:a.control,name:`name`,render:({field:e})=>(0,$.jsxs)(K,{children:[(0,$.jsx)(Y,{children:ae()}),(0,$.jsx)(J,{children:(0,$.jsx)(Z,{placeholder:F(),...e})}),(0,$.jsx)(X,{})]})}),(0,$.jsx)(q,{control:a.control,name:`notify_url`,render:({field:e})=>(0,$.jsxs)(K,{children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,$.jsx)(Y,{children:c()}),(0,$.jsx)($e,{variant:`secondary`,children:v()})]}),(0,$.jsx)(J,{children:(0,$.jsx)(Z,{disabled:!0,placeholder:`https://example.com/callback`,...e})}),(0,$.jsx)(Ye,{children:m()}),(0,$.jsx)(X,{})]})}),(0,$.jsx)(q,{control:a.control,name:`ip_whitelist`,render:({field:e})=>(0,$.jsxs)(K,{children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,$.jsx)(Y,{children:O()}),(0,$.jsx)($e,{variant:`secondary`,children:v()})]}),(0,$.jsx)(J,{children:(0,$.jsx)(Qe,{disabled:!0,placeholder:`127.0.0.1 -10.0.0.2`,...e})}),(0,$.jsx)(Ye,{children:m()}),(0,$.jsx)(X,{})]})}),!r&&l?(0,$.jsxs)(`div`,{className:`rounded-lg border bg-muted/40 p-3 text-sm`,children:[(0,$.jsx)(`div`,{className:`mb-1 font-medium text-amber-600`,children:k()}),(0,$.jsx)(`div`,{className:`break-all font-mono text-muted-foreground`,children:l})]}):null,(0,$.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,$.jsx)(z,{onClick:f,type:`button`,variant:`outline`,children:!r&&l?M():S()}),(!l||r)&&(0,$.jsxs)(z,{disabled:p,type:`submit`,children:[p&&x(),!p&&r&&ge(),!(p||r)&&D()]})]})]})})]})})}function ot({data:e,isLoading:t,onAction:n,onCopySecret:r,onToggleSecret:i,secretStates:o}){let[u,d]=(0,Q.useState)(new Set);function f(e){try{return`${new URL(e).protocol}//••••••••`}catch{return`••••••••••••••••`}}function p(e){return e?.visible?e.loading?ne():e.value||`-`:`••••••••••••••••`}function m(e,t){return e?t?e:f(e):`-`}return t?(0,$.jsx)(`ul`,{className:`faded-bottom no-scrollbar grid gap-4 overflow-auto pt-4 pb-16 md:grid-cols-2 lg:grid-cols-3`,children:[`api-key-skeleton-1`,`api-key-skeleton-2`,`api-key-skeleton-3`,`api-key-skeleton-4`,`api-key-skeleton-5`,`api-key-skeleton-6`].map(e=>(0,$.jsx)(`li`,{"aria-hidden":`true`,className:`rounded-lg border`,children:(0,$.jsxs)(`div`,{className:`flex h-full flex-col overflow-hidden p-4`,children:[(0,$.jsxs)(`div`,{className:`mb-6 flex items-center justify-between gap-3`,children:[(0,$.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-2`,children:[(0,$.jsx)(H,{className:`h-5 w-32 max-w-full`}),(0,$.jsx)(H,{className:`h-3 w-20`})]}),(0,$.jsx)(H,{className:`h-6 w-11 rounded-full`})]}),(0,$.jsxs)(`div`,{className:`mb-6 flex-1 space-y-3`,children:[(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[(0,$.jsx)(H,{className:`mt-1 h-3 w-12 shrink-0`}),(0,$.jsx)(H,{className:`h-4 w-28 min-w-0 flex-1`})]}),(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[(0,$.jsx)(H,{className:`mt-1 h-3 w-12 shrink-0`}),(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-start gap-2`,children:[(0,$.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-2`,children:[(0,$.jsx)(H,{className:`h-4 w-full`}),(0,$.jsx)(H,{className:`h-4 w-9/12`})]}),(0,$.jsx)(H,{className:`size-8 shrink-0 rounded-md`}),(0,$.jsx)(H,{className:`size-8 shrink-0 rounded-md`})]})]}),[`w-28`,`w-full`,`w-11/12`,`w-24`,`w-32`].map(e=>(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[(0,$.jsx)(H,{className:`mt-1 h-3 w-12 shrink-0`}),(0,$.jsx)(H,{className:`h-4 min-w-0 flex-1 ${e}`})]},e))]}),(0,$.jsx)(`div`,{className:`-mx-4 mt-auto -mb-4 border-t`,children:(0,$.jsx)(`div`,{className:`grid grid-cols-3`,children:[`api-key-action-skeleton-1`,`api-key-action-skeleton-2`,`api-key-action-skeleton-3`].map((e,t)=>(0,$.jsx)(`div`,{className:`flex h-11 items-center justify-center px-4 ${t<2?`border-r`:``}`,children:(0,$.jsx)(H,{className:`h-4 w-16`})},e))})})]})},e))}):e.length?(0,$.jsx)(`ul`,{className:`faded-bottom no-scrollbar grid gap-4 overflow-auto pt-4 pb-16 md:grid-cols-2 lg:grid-cols-3`,children:e.map(e=>{let t=e.status===1,f=String(e.id??e.pid??``),h=o[f],g=u.has(f),ee=[{label:`PID`,value:e.pid??`-`},{label:oe(),value:p(h),visible:h?.visible,onToggle:()=>i(e),onCopy:()=>r(e)},{label:c(),value:m(e.notify_url,g),visible:g,onToggle:e.notify_url?()=>d(e=>{let t=new Set(e);return t.has(f)?t.delete(f):t.add(f),t}):void 0},{label:l(),value:e.ip_whitelist||`-`},{label:y(),value:xe(e.call_count??0,0)},{label:A(),value:R(e.last_used_at)||a()},{label:_(),value:R(e.updated_at)||`-`}];return(0,$.jsx)(`li`,{className:`rounded-lg border hover:shadow-md`,children:(0,$.jsxs)(`div`,{className:`flex h-full flex-col overflow-hidden p-4`,children:[(0,$.jsxs)(`div`,{className:`mb-6 flex items-center justify-between`,children:[(0,$.jsx)(`div`,{className:`min-w-0`,children:(0,$.jsx)(`h2`,{className:`truncate font-semibold`,children:e.name||e.pid||`#${e.id}`})}),(0,$.jsx)(ke,{checked:t,onCheckedChange:()=>n(t?`disable`:`enable`,e)})]}),(0,$.jsxs)(`div`,{className:`mb-6 flex-1 space-y-2 text-muted-foreground text-sm`,children:[(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[(0,$.jsx)(`span`,{className:`w-16 shrink-0 text-foreground/80`,children:`PID`}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 break-all`,children:e.pid??`-`})]}),ee.filter(e=>e.label!==`PID`).map(e=>(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[(0,$.jsx)(`span`,{className:`w-16 shrink-0 text-foreground/80`,children:e.label}),(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-start gap-2`,children:[(0,$.jsx)(`span`,{className:`min-w-0 flex-1 break-all`,children:e.value}),e.onCopy&&(0,$.jsx)(z,{className:`size-8 shrink-0`,onClick:e.onCopy,size:`icon-sm`,variant:`ghost`,children:(0,$.jsx)(Ae,{className:`h-4.5 w-4.5`})}),e.onToggle&&(0,$.jsx)(z,{className:`size-8 shrink-0`,onClick:e.onToggle,size:`icon-sm`,variant:`ghost`,children:e.visible?(0,$.jsx)(Me,{className:`h-4.5 w-4.5`}):(0,$.jsx)(Ne,{className:`h-4.5 w-4.5`})})]})]},e.label))]}),(0,$.jsx)(`div`,{className:`-mx-4 mt-auto -mb-4 border-t`,children:(0,$.jsxs)(`div`,{className:`grid grid-cols-3`,children:[(0,$.jsxs)(z,{className:`h-11 w-full rounded-none border-r px-0 text-muted-foreground hover:bg-muted/60 hover:text-foreground`,onClick:()=>n(`edit`,e),size:`sm`,variant:`ghost`,children:[(0,$.jsx)(nt,{className:`h-4 w-4`}),ye()]}),(0,$.jsxs)(z,{className:`h-11 w-full rounded-none border-r px-0 text-muted-foreground hover:bg-muted/60 hover:text-foreground`,onClick:()=>n(`rotate-secret`,e),size:`sm`,variant:`ghost`,children:[(0,$.jsx)(Se,{className:`h-4 w-4`}),s()]}),(0,$.jsxs)(z,{className:`h-11 w-full rounded-none px-0 text-destructive hover:bg-destructive/8 hover:text-destructive`,onClick:()=>n(`delete`,e),size:`sm`,variant:`ghost`,children:[(0,$.jsx)(Be,{className:`h-4 w-4 text-destructive`}),ve()]})]})})]})},e.id??e.pid)})}):(0,$.jsx)(`div`,{className:`pt-4`,children:(0,$.jsx)(Ie,{description:j()})})}var st=L(`/_authenticated/keys/`),ct=new Map([[`all`,i()],[`enabled`,b()],[`disabled`,pe()]]);function lt(){let{filter:e=``,type:r=`all`,sort:s=`asc`}=st.useSearch(),c=st.useNavigate(),l=t.useQuery(`get`,`/admin/api/v1/api-keys`),m=t.useMutation(`delete`,`/admin/api/v1/api-keys/{id}`),_=t.useMutation(`post`,`/admin/api/v1/api-keys/{id}/status`),v=t.useMutation(`get`,`/admin/api/v1/api-keys/{id}/secret`),ne=t.useMutation(`post`,`/admin/api/v1/api-keys/{id}/rotate-secret`),ae=t.useMutation(`get`,`/admin/api/v1/api-keys/{id}/stats`),[oe,x]=(0,Q.useState)(!1),[S,C]=(0,Q.useState)(null),[w,T]=(0,Q.useState)(null),[E,D]=(0,Q.useState)(null),[O,k]=(0,Q.useState)({}),[j,he]=(0,Q.useState)(s),[M,ge]=(0,Q.useState)(r),[N,ve]=(0,Q.useState)(e);async function P(){await n.invalidateQueries({queryKey:[`get`,`/admin/api/v1/api-keys`]})}async function ye(){if(!w?.row.id)return;let e=w.row.id;w.action===`delete`?(await m.mutateAsync({params:{path:{id:e}}}),W.success(de())):(w.action===`enable`||w.action===`disable`)&&(await _.mutateAsync({params:{path:{id:e}},body:{status:w.action===`enable`?1:2}}),W.success(se())),await P(),T(null)}function F(e){return String(e.id??e.pid??``)}async function I(e,t){let n=F(e),r=t?.visible??O[n]?.visible??!1;k(e=>({...e,[n]:{loading:!0,value:e[n]?.value??``,visible:r}}));try{let t=await v.mutateAsync({params:{path:{id:e.id}}}),i=typeof t.data==`object`&&t.data&&`secret_key`in t.data?String(t.data.secret_key??``):``;return k(e=>({...e,[n]:{loading:!1,value:i||`-`,visible:r}})),i||`-`}catch{return k(e=>({...e,[n]:{loading:!1,value:e[n]?.value??``,visible:r}})),W.error(fe()),null}}async function L(e){if(!e.id){W.error(h());return}let t=F(e),n=O[t];if(n?.visible){k(e=>({...e,[t]:{...n,visible:!1}}));return}if(n?.value){k(e=>({...e,[t]:{...n,visible:!0}}));return}await I(e,{visible:!0})}async function R(e){if(!e.id){W.error(h());return}let t=F(e),n=O[t]?.value??``;if(n||=await I(e,{visible:O[t]?.visible??!1})??``,!n||n===`-`){W.error(_e());return}(0,rt.default)(n),W.success(g())}async function Se(e){let t=await ne.mutateAsync({params:{path:{id:e.id}}}),n=F(e);k(e=>({...e,[n]:{loading:!1,value:t.data?.secret_key??`-`,visible:!0}})),W.success(d()),await P()}async function ke(e){let t=await ae.mutateAsync({params:{path:{id:e.id}}});D({apiKey:e.pid??`#${e.id}`,stats:t.data??{}})}async function V(e,t){if(!t.id){W.error(h());return}if(e===`edit`){C(t),x(!0);return}if(e===`delete`){T({action:e,row:t});return}switch(e){case`enable`:case`disable`:await _.mutateAsync({params:{path:{id:t.id}},body:{status:e===`enable`?1:2}}),W.success(se()),await P();break;case`rotate-secret`:await Se(t);break;case`view-stats`:await ke(t);break;default:break}}let H=[...l.data?.data??[]].sort((e,t)=>{let n=(e.name??e.pid??`#${e.id??``}`).toLowerCase(),r=(t.name??t.pid??`#${t.id??``}`).toLowerCase();return j===`asc`?n.localeCompare(r):r.localeCompare(n)}).filter(e=>M===`enabled`?e.status===1:M===`disabled`?e.status!==1:!0).filter(e=>{let t=N.trim().toLowerCase();return t?(e.pid??``).toLowerCase().includes(t)||(e.name??``).toLowerCase().includes(t)||(e.notify_url??``).toLowerCase().includes(t):!0});return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Le,{}),(0,$.jsxs)(Re,{fixed:!0,children:[(0,$.jsx)(Ze,{actions:(0,$.jsxs)(z,{onClick:()=>{C(null),x(!0)},children:[(0,$.jsx)(ze,{className:`mr-2 h-4 w-4`}),ue()]}),description:ce(),title:f()}),(0,$.jsxs)(`div`,{className:`my-4 flex items-end justify-between sm:my-0 sm:items-center`,children:[(0,$.jsxs)(`div`,{className:`flex flex-col gap-4 sm:my-4 sm:flex-row`,children:[(0,$.jsx)(Z,{className:`h-9 w-40 lg:w-62.5`,onChange:e=>{ve(e.target.value),c({search:t=>({...t,filter:e.target.value||void 0})})},placeholder:le(),value:N}),(0,$.jsxs)(De,{onValueChange:e=>{ge(e),c({search:t=>({...t,type:e===`all`?void 0:e})})},value:M,children:[(0,$.jsx)(Te,{className:`w-36`,children:(0,$.jsx)(we,{children:ct.get(M)})}),(0,$.jsxs)(Ee,{children:[(0,$.jsx)(B,{value:`all`,children:i()}),(0,$.jsx)(B,{value:`enabled`,children:b()}),(0,$.jsx)(B,{value:`disabled`,children:pe()})]})]})]}),(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsxs)(z,{onClick:P,variant:`outline`,children:[(0,$.jsx)(Fe,{className:`mr-2 h-4 w-4`}),me()]}),(0,$.jsxs)(De,{onValueChange:e=>{he(e),c({search:t=>({...t,sort:e})})},value:j,children:[(0,$.jsx)(Te,{className:`w-16`,children:(0,$.jsx)(we,{children:(0,$.jsx)(Pe,{size:18})})}),(0,$.jsxs)(Ee,{align:`end`,children:[(0,$.jsx)(B,{value:`asc`,children:(0,$.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,$.jsx)(tt,{size:16}),(0,$.jsx)(`span`,{children:o()})]})}),(0,$.jsx)(B,{value:`desc`,children:(0,$.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,$.jsx)(et,{size:16}),(0,$.jsx)(`span`,{children:be()})]})})]})]})]})]}),(0,$.jsx)(Oe,{className:`shadow-sm`}),(0,$.jsx)(ot,{data:H,isLoading:l.isLoading,onAction:V,onCopySecret:R,onToggleSecret:L,secretStates:O})]}),(0,$.jsx)(at,{currentRow:S,onOpenChange:e=>{x(e),e||C(null)},onSuccess:()=>l.refetch(),open:oe}),w&&(0,$.jsx)(Ce,{confirmText:w.action===`delete`?ie():ee(),desc:(0,$.jsx)(`span`,{children:p({target:String(w.row.pid??w.row.id??``),action:w.action})}),destructive:w.action===`delete`,handleConfirm:ye,onOpenChange:()=>T(null),open:!0,title:w.action===`delete`?u():re()}),(0,$.jsx)(Ge,{onOpenChange:()=>D(null),open:!!E,children:(0,$.jsxs)(U,{children:[(0,$.jsxs)(Ue,{children:[(0,$.jsxs)(We,{className:`flex items-center gap-2`,children:[(0,$.jsx)(Ve,{className:`h-4 w-4`}),te()]}),(0,$.jsx)(He,{children:E?.apiKey})]}),(0,$.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,$.jsxs)(`div`,{className:`rounded-lg border p-4`,children:[(0,$.jsxs)(`div`,{className:`mb-2 flex items-center gap-2 text-muted-foreground text-sm`,children:[(0,$.jsx)(Ne,{className:`h-4 w-4`}),` `,y()]}),(0,$.jsx)(`div`,{className:`font-semibold text-2xl`,children:xe(E?.stats.call_count??0,0)})]}),(0,$.jsxs)(`div`,{className:`rounded-lg border p-4`,children:[(0,$.jsxs)(`div`,{className:`mb-2 flex items-center gap-2 text-muted-foreground text-sm`,children:[(0,$.jsx)(Fe,{className:`h-4 w-4`}),` `,A()]}),(0,$.jsx)(`div`,{className:`font-medium text-sm`,children:E?.stats.last_used_at??a()})]})]})]})})]})}var ut=lt;export{ut as component}; \ No newline at end of file diff --git a/src/www/assets/keys-DvE6Ll4y.js b/src/www/assets/keys-DvE6Ll4y.js new file mode 100644 index 0000000..80d8150 --- /dev/null +++ b/src/www/assets/keys-DvE6Ll4y.js @@ -0,0 +1,2 @@ +import{r as e}from"./chunk-DECur_0Z.js";import{a as t}from"./auth-store-De4Y7PFV.js";import{t as n}from"./router-eyRTkMwc.js";import{t as r}from"./react-CO2uhaBc.js";import{$i as i,Ai as a,Bi as o,Ci as s,Di as c,Ei as l,Fi as u,Gi as d,Hi as f,Ii as p,Ji as m,Ki as h,Ko as ee,Li as g,Lp as _,Mi as te,Ni as ne,Oi as v,Pi as re,Qi as ie,Ri as ae,Rp as y,Si as oe,Ti as se,Ts as ce,Ui as le,Vi as ue,Wi as de,Xi as fe,Xp as b,Xr as x,Yi as pe,Zi as S,_i as C,bi as w,di as T,fi as E,gi as D,hi as O,ji as me,ki as k,li as A,mi as he,op as ge,pi as j,qi as _e,tm as ve,ui as M,uo as ye,vi as N,wi as be,xi as P,yi as F,zi as xe}from"./messages-BOatyqUm.js";import{r as I}from"./route-wzPKSRj2.js";import{o as L,s as R,z}from"./search-provider-C-_FQI9C.js";import{t as B}from"./button-C_NDYaz8.js";import{t as Se}from"./confirm-dialog-D1L-0EhT.js";import{a as Ce,i as we,n as Te,r as V,t as Ee}from"./select-CzebumOF.js";import{t as De}from"./separator-CsUemQNs.js";import{t as Oe}from"./switch-CgoJjvdz.js";import{t as H}from"./createLucideIcon-Br0Bd5k2.js";import{t as U}from"./skeleton-CmDjDV1O.js";import{n as ke,t as Ae}from"./copy-to-clipboard-C1tj4a8X.js";import{t as je}from"./eye-off-B8hO0oST.js";import{t as Me}from"./eye-DAKGLydt.js";import{n as Ne,r as Pe,t as Fe}from"./empty-state-CxE4wU3V.js";import{n as Ie,t as Le}from"./main-C1R3Hvq1.js";import{n as Re,t as ze}from"./trash-2-9I8lAjeE.js";import{t as Be}from"./shield-check-MAPDL1u8.js";import{i as Ve,o as He,r as Ue,s as We,t as Ge}from"./dialog-CZ-2RPb-.js";import{n as W}from"./dist-JOUh6qvR.js";import{c as G,s as Ke}from"./zod-rwFXxHlg.js";import{a as K,c as qe,i as q,l as Je,n as J,o as Y,r as Ye,s as X,t as Xe}from"./form-KfFEakes.js";import{t as Z}from"./input-8zzM34r5.js";import{t as Ze}from"./page-header-GTtyZFBB.js";import{t as Qe}from"./textarea-C8ejjLzk.js";import{t as $e}from"./badge-VJlwwTW5.js";var et=H(`arrow-down-a-z`,[[`path`,{d:`m3 16 4 4 4-4`,key:`1co6wj`}],[`path`,{d:`M7 20V4`,key:`1yoxec`}],[`path`,{d:`M20 8h-5`,key:`1vsyxs`}],[`path`,{d:`M15 10V6.5a2.5 2.5 0 0 1 5 0V10`,key:`ag13bf`}],[`path`,{d:`M15 14h5l-5 6h5`,key:`ur5jdg`}]]),tt=H(`arrow-up-a-z`,[[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}],[`path`,{d:`M20 8h-5`,key:`1vsyxs`}],[`path`,{d:`M15 10V6.5a2.5 2.5 0 0 1 5 0V10`,key:`ag13bf`}],[`path`,{d:`M15 14h5l-5 6h5`,key:`ur5jdg`}]]),nt=H(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),rt=e(Ae(),1),Q=e(r(),1),$=ve(),it=Ke({name:G().min(1,A()),notify_url:G().optional(),ip_whitelist:G().optional()});function at({open:e,onOpenChange:n,currentRow:r,onSuccess:i}){let a=Je({resolver:qe(it),defaultValues:{name:``,notify_url:``,ip_whitelist:``}}),o=t.useMutation(`post`,`/admin/api/v1/api-keys`),s=t.useMutation(`patch`,`/admin/api/v1/api-keys/{id}`),l=o.data?.data?.secret_key;(0,Q.useEffect)(()=>{e&&a.reset({name:r?.name??``,notify_url:r?.notify_url??``,ip_whitelist:r?.ip_whitelist??``})},[e,r,a]);function u(e){e||(a.reset({name:``,notify_url:``,ip_whitelist:``}),o.reset(),s.reset()),n(e)}function d(e){if(r?.id){s.mutate({params:{path:{id:r.id}},body:{name:e.name,notify_url:e.notify_url,ip_whitelist:e.ip_whitelist||void 0}},{onSuccess:()=>{W.success(T()),n(!1),i?.()}});return}o.mutate({body:{name:e.name,notify_url:e.notify_url,ip_whitelist:e.ip_whitelist||void 0}},{onSuccess:()=>{W.success(M()),i?.()}})}function f(){u(!1)}let p=o.isPending||s.isPending;return(0,$.jsx)(Ge,{onOpenChange:u,open:e,children:(0,$.jsxs)(Ue,{children:[(0,$.jsxs)(He,{children:[(0,$.jsx)(We,{children:r?w():F()}),(0,$.jsx)(Ve,{children:r?N():C()})]}),(0,$.jsx)(Xe,{...a,children:(0,$.jsxs)(`form`,{className:`space-y-4`,onSubmit:a.handleSubmit(d),children:[(0,$.jsx)(q,{control:a.control,name:`name`,render:({field:e})=>(0,$.jsxs)(K,{children:[(0,$.jsx)(Y,{children:oe()}),(0,$.jsx)(J,{children:(0,$.jsx)(Z,{placeholder:P(),...e})}),(0,$.jsx)(X,{})]})}),(0,$.jsx)(q,{control:a.control,name:`notify_url`,render:({field:e})=>(0,$.jsxs)(K,{children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,$.jsx)(Y,{children:c()}),(0,$.jsx)($e,{variant:`secondary`,children:y()})]}),(0,$.jsx)(J,{children:(0,$.jsx)(Z,{disabled:!0,placeholder:`https://example.com/callback`,...e})}),(0,$.jsx)(Ye,{children:_()}),(0,$.jsx)(X,{})]})}),(0,$.jsx)(q,{control:a.control,name:`ip_whitelist`,render:({field:e})=>(0,$.jsxs)(K,{children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,$.jsx)(Y,{children:D()}),(0,$.jsx)($e,{variant:`secondary`,children:y()})]}),(0,$.jsx)(J,{children:(0,$.jsx)(Qe,{disabled:!0,placeholder:`127.0.0.1 +10.0.0.2`,...e})}),(0,$.jsx)(Ye,{children:_()}),(0,$.jsx)(X,{})]})}),!r&&l?(0,$.jsxs)(`div`,{className:`rounded-lg border bg-muted/40 p-3 text-sm`,children:[(0,$.jsx)(`div`,{className:`mb-1 font-medium text-amber-600`,children:O()}),(0,$.jsx)(`div`,{className:`break-all font-mono text-muted-foreground`,children:l})]}):null,(0,$.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,$.jsx)(B,{onClick:f,type:`button`,variant:`outline`,children:!r&&l?he():b()}),(!l||r)&&(0,$.jsxs)(B,{disabled:p,type:`submit`,children:[p&&x(),!p&&r&&j(),!(p||r)&&E()]})]})]})})]})})}function ot({data:e,isLoading:t,onAction:n,onCopySecret:r,onToggleSecret:i,secretStates:o}){let[u,d]=(0,Q.useState)(new Set);function f(e){try{return`${new URL(e).protocol}//••••••••`}catch{return`••••••••••••••••`}}function p(e){return e?.visible?e.loading?v():e.value||`-`:`••••••••••••••••`}function m(e,t){return e?t?e:f(e):`-`}return t?(0,$.jsx)(`ul`,{className:`faded-bottom no-scrollbar grid gap-4 overflow-auto pt-4 pb-16 md:grid-cols-2 lg:grid-cols-3`,children:[`api-key-skeleton-1`,`api-key-skeleton-2`,`api-key-skeleton-3`,`api-key-skeleton-4`,`api-key-skeleton-5`,`api-key-skeleton-6`].map(e=>(0,$.jsx)(`li`,{"aria-hidden":`true`,className:`rounded-lg border`,children:(0,$.jsxs)(`div`,{className:`flex h-full flex-col overflow-hidden p-4`,children:[(0,$.jsxs)(`div`,{className:`mb-6 flex items-center justify-between gap-3`,children:[(0,$.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-2`,children:[(0,$.jsx)(U,{className:`h-5 w-32 max-w-full`}),(0,$.jsx)(U,{className:`h-3 w-20`})]}),(0,$.jsx)(U,{className:`h-6 w-11 rounded-full`})]}),(0,$.jsxs)(`div`,{className:`mb-6 flex-1 space-y-3`,children:[(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[(0,$.jsx)(U,{className:`mt-1 h-3 w-12 shrink-0`}),(0,$.jsx)(U,{className:`h-4 w-28 min-w-0 flex-1`})]}),(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[(0,$.jsx)(U,{className:`mt-1 h-3 w-12 shrink-0`}),(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-start gap-2`,children:[(0,$.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-2`,children:[(0,$.jsx)(U,{className:`h-4 w-full`}),(0,$.jsx)(U,{className:`h-4 w-9/12`})]}),(0,$.jsx)(U,{className:`size-8 shrink-0 rounded-md`}),(0,$.jsx)(U,{className:`size-8 shrink-0 rounded-md`})]})]}),[`w-28`,`w-full`,`w-11/12`,`w-24`,`w-32`].map(e=>(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[(0,$.jsx)(U,{className:`mt-1 h-3 w-12 shrink-0`}),(0,$.jsx)(U,{className:`h-4 min-w-0 flex-1 ${e}`})]},e))]}),(0,$.jsx)(`div`,{className:`-mx-4 mt-auto -mb-4 border-t`,children:(0,$.jsx)(`div`,{className:`grid grid-cols-3`,children:[`api-key-action-skeleton-1`,`api-key-action-skeleton-2`,`api-key-action-skeleton-3`].map((e,t)=>(0,$.jsx)(`div`,{className:`flex h-11 items-center justify-center px-4 ${t<2?`border-r`:``}`,children:(0,$.jsx)(U,{className:`h-4 w-16`})},e))})})]})},e))}):e.length?(0,$.jsx)(`ul`,{className:`faded-bottom no-scrollbar grid gap-4 overflow-auto pt-4 pb-16 md:grid-cols-2 lg:grid-cols-3`,children:e.map(e=>{let t=e.status===1,f=String(e.id??e.pid??``),h=o[f],g=u.has(f),_=[{label:`PID`,value:e.pid??`-`},{label:se(),value:p(h),visible:h?.visible,onToggle:()=>i(e),onCopy:()=>r(e)},{label:c(),value:m(e.notify_url,g),visible:g,onToggle:e.notify_url?()=>d(e=>{let t=new Set(e);return t.has(f)?t.delete(f):t.add(f),t}):void 0},{label:l(),value:e.ip_whitelist||`-`},{label:te(),value:R(e.call_count??0,0)},{label:me(),value:L(e.last_used_at)||a()},{label:ee(),value:L(e.updated_at)||`-`}];return(0,$.jsx)(`li`,{className:`rounded-lg border hover:shadow-md`,children:(0,$.jsxs)(`div`,{className:`flex h-full flex-col overflow-hidden p-4`,children:[(0,$.jsxs)(`div`,{className:`mb-6 flex items-center justify-between`,children:[(0,$.jsx)(`div`,{className:`min-w-0`,children:(0,$.jsx)(`h2`,{className:`truncate font-semibold`,children:e.name||e.pid||`#${e.id}`})}),(0,$.jsx)(Oe,{checked:t,onCheckedChange:()=>n(t?`disable`:`enable`,e)})]}),(0,$.jsxs)(`div`,{className:`mb-6 flex-1 space-y-2 text-muted-foreground text-sm`,children:[(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[(0,$.jsx)(`span`,{className:`w-16 shrink-0 text-foreground/80`,children:`PID`}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 break-all`,children:e.pid??`-`})]}),_.filter(e=>e.label!==`PID`).map(e=>(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[(0,$.jsx)(`span`,{className:`w-16 shrink-0 text-foreground/80`,children:e.label}),(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-start gap-2`,children:[(0,$.jsx)(`span`,{className:`min-w-0 flex-1 break-all`,children:e.value}),e.onCopy&&(0,$.jsx)(B,{className:`size-8 shrink-0`,onClick:e.onCopy,size:`icon-sm`,variant:`ghost`,children:(0,$.jsx)(ke,{className:`h-4.5 w-4.5`})}),e.onToggle&&(0,$.jsx)(B,{className:`size-8 shrink-0`,onClick:e.onToggle,size:`icon-sm`,variant:`ghost`,children:e.visible?(0,$.jsx)(je,{className:`h-4.5 w-4.5`}):(0,$.jsx)(Me,{className:`h-4.5 w-4.5`})})]})]},e.label))]}),(0,$.jsx)(`div`,{className:`-mx-4 mt-auto -mb-4 border-t`,children:(0,$.jsxs)(`div`,{className:`grid grid-cols-3`,children:[(0,$.jsxs)(B,{className:`h-11 w-full rounded-none border-r px-0 text-muted-foreground hover:bg-muted/60 hover:text-foreground`,onClick:()=>n(`edit`,e),size:`sm`,variant:`ghost`,children:[(0,$.jsx)(nt,{className:`h-4 w-4`}),be()]}),(0,$.jsxs)(B,{className:`h-11 w-full rounded-none border-r px-0 text-muted-foreground hover:bg-muted/60 hover:text-foreground`,onClick:()=>n(`rotate-secret`,e),size:`sm`,variant:`ghost`,children:[(0,$.jsx)(z,{className:`h-4 w-4`}),s()]}),(0,$.jsxs)(B,{className:`h-11 w-full rounded-none px-0 text-destructive hover:bg-destructive/8 hover:text-destructive`,onClick:()=>n(`delete`,e),size:`sm`,variant:`ghost`,children:[(0,$.jsx)(ze,{className:`h-4 w-4 text-destructive`}),ye()]})]})})]})},e.id??e.pid)})}):(0,$.jsx)(`div`,{className:`pt-4`,children:(0,$.jsx)(Fe,{description:k()})})}var st=I(`/_authenticated/keys/`),ct=new Map([[`all`,i()],[`enabled`,ie()],[`disabled`,S()]]);function lt(){let{filter:e=``,type:r=`all`,sort:s=`asc`}=st.useSearch(),c=st.useNavigate(),l=t.useQuery(`get`,`/admin/api/v1/api-keys`),ee=t.useMutation(`delete`,`/admin/api/v1/api-keys/{id}`),_=t.useMutation(`post`,`/admin/api/v1/api-keys/{id}/status`),v=t.useMutation(`get`,`/admin/api/v1/api-keys/{id}/secret`),y=t.useMutation(`post`,`/admin/api/v1/api-keys/{id}/rotate-secret`),oe=t.useMutation(`get`,`/admin/api/v1/api-keys/{id}/stats`),[se,b]=(0,Q.useState)(!1),[x,C]=(0,Q.useState)(null),[w,T]=(0,Q.useState)(null),[E,D]=(0,Q.useState)(null),[O,k]=(0,Q.useState)({}),[A,he]=(0,Q.useState)(s),[j,ve]=(0,Q.useState)(r),[M,ye]=(0,Q.useState)(e);async function N(){await n.invalidateQueries({queryKey:[`get`,`/admin/api/v1/api-keys`]})}async function be(){if(!w?.row.id)return;let e=w.row.id;w.action===`delete`?(await ee.mutateAsync({params:{path:{id:e}}}),W.success(fe())):(w.action===`enable`||w.action===`disable`)&&(await _.mutateAsync({params:{path:{id:e}},body:{status:w.action===`enable`?1:2}}),W.success(ce())),await N(),T(null)}function P(e){return String(e.id??e.pid??``)}async function F(e,t){let n=P(e),r=t?.visible??O[n]?.visible??!1;k(e=>({...e,[n]:{loading:!0,value:e[n]?.value??``,visible:r}}));try{let t=await v.mutateAsync({params:{path:{id:e.id}}}),i=typeof t.data==`object`&&t.data&&`secret_key`in t.data?String(t.data.secret_key??``):``;return k(e=>({...e,[n]:{loading:!1,value:i||`-`,visible:r}})),i||`-`}catch{return k(e=>({...e,[n]:{loading:!1,value:e[n]?.value??``,visible:r}})),W.error(pe()),null}}async function I(e){if(!e.id){W.error(m());return}let t=P(e),n=O[t];if(n?.visible){k(e=>({...e,[t]:{...n,visible:!1}}));return}if(n?.value){k(e=>({...e,[t]:{...n,visible:!0}}));return}await F(e,{visible:!0})}async function L(e){if(!e.id){W.error(m());return}let t=P(e),n=O[t]?.value??``;if(n||=await F(e,{visible:O[t]?.visible??!1})??``,!n||n===`-`){W.error(_e());return}(0,rt.default)(n),W.success(h())}async function z(e){let t=await y.mutateAsync({params:{path:{id:e.id}}}),n=P(e);k(e=>({...e,[n]:{loading:!1,value:t.data?.secret_key??`-`,visible:!0}})),W.success(d()),await N()}async function Oe(e){let t=await oe.mutateAsync({params:{path:{id:e.id}}});D({apiKey:e.pid??`#${e.id}`,stats:t.data??{}})}async function H(e,t){if(!t.id){W.error(m());return}if(e===`edit`){C(t),b(!0);return}if(e===`delete`){T({action:e,row:t});return}switch(e){case`enable`:case`disable`:await _.mutateAsync({params:{path:{id:t.id}},body:{status:e===`enable`?1:2}}),W.success(ce()),await N();break;case`rotate-secret`:await z(t);break;case`view-stats`:await Oe(t);break;default:break}}let U=[...l.data?.data??[]].sort((e,t)=>{let n=(e.name??e.pid??`#${e.id??``}`).toLowerCase(),r=(t.name??t.pid??`#${t.id??``}`).toLowerCase();return A===`asc`?n.localeCompare(r):r.localeCompare(n)}).filter(e=>j===`enabled`?e.status===1:j===`disabled`?e.status!==1:!0).filter(e=>{let t=M.trim().toLowerCase();return t?(e.pid??``).toLowerCase().includes(t)||(e.name??``).toLowerCase().includes(t)||(e.notify_url??``).toLowerCase().includes(t):!0});return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Ie,{}),(0,$.jsxs)(Le,{fixed:!0,children:[(0,$.jsx)(Ze,{actions:(0,$.jsxs)(B,{onClick:()=>{C(null),b(!0)},children:[(0,$.jsx)(Re,{className:`mr-2 h-4 w-4`}),de()]}),description:le(),title:f()}),(0,$.jsxs)(`div`,{className:`my-4 flex items-end justify-between sm:my-0 sm:items-center`,children:[(0,$.jsxs)(`div`,{className:`flex flex-col gap-4 sm:my-4 sm:flex-row`,children:[(0,$.jsx)(Z,{className:`h-9 w-40 lg:w-62.5`,onChange:e=>{ye(e.target.value),c({search:t=>({...t,filter:e.target.value||void 0})})},placeholder:ue(),value:M}),(0,$.jsxs)(Ee,{onValueChange:e=>{ve(e),c({search:t=>({...t,type:e===`all`?void 0:e})})},value:j,children:[(0,$.jsx)(we,{className:`w-36`,children:(0,$.jsx)(Ce,{children:ct.get(j)})}),(0,$.jsxs)(Te,{children:[(0,$.jsx)(V,{value:`all`,children:i()}),(0,$.jsx)(V,{value:`enabled`,children:ie()}),(0,$.jsx)(V,{value:`disabled`,children:S()})]})]})]}),(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsxs)(B,{onClick:N,variant:`outline`,children:[(0,$.jsx)(Pe,{className:`mr-2 h-4 w-4`}),ge()]}),(0,$.jsxs)(Ee,{onValueChange:e=>{he(e),c({search:t=>({...t,sort:e})})},value:A,children:[(0,$.jsx)(we,{className:`w-16`,children:(0,$.jsx)(Ce,{children:(0,$.jsx)(Ne,{size:18})})}),(0,$.jsxs)(Te,{align:`end`,children:[(0,$.jsx)(V,{value:`asc`,children:(0,$.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,$.jsx)(tt,{size:16}),(0,$.jsx)(`span`,{children:o()})]})}),(0,$.jsx)(V,{value:`desc`,children:(0,$.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,$.jsx)(et,{size:16}),(0,$.jsx)(`span`,{children:xe()})]})})]})]})]})]}),(0,$.jsx)(De,{className:`shadow-sm`}),(0,$.jsx)(ot,{data:U,isLoading:l.isLoading,onAction:H,onCopySecret:L,onToggleSecret:I,secretStates:O})]}),(0,$.jsx)(at,{currentRow:x,onOpenChange:e=>{b(e),e||C(null)},onSuccess:()=>l.refetch(),open:se}),w&&(0,$.jsx)(Se,{confirmText:w.action===`delete`?ae():g(),desc:(0,$.jsx)(`span`,{children:p({target:String(w.row.pid??w.row.id??``),action:w.action})}),destructive:w.action===`delete`,handleConfirm:be,onOpenChange:()=>T(null),open:!0,title:w.action===`delete`?u():re()}),(0,$.jsx)(Ge,{onOpenChange:()=>D(null),open:!!E,children:(0,$.jsxs)(Ue,{children:[(0,$.jsxs)(He,{children:[(0,$.jsxs)(We,{className:`flex items-center gap-2`,children:[(0,$.jsx)(Be,{className:`h-4 w-4`}),ne()]}),(0,$.jsx)(Ve,{children:E?.apiKey})]}),(0,$.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,$.jsxs)(`div`,{className:`rounded-lg border p-4`,children:[(0,$.jsxs)(`div`,{className:`mb-2 flex items-center gap-2 text-muted-foreground text-sm`,children:[(0,$.jsx)(Me,{className:`h-4 w-4`}),` `,te()]}),(0,$.jsx)(`div`,{className:`font-semibold text-2xl`,children:R(E?.stats.call_count??0,0)})]}),(0,$.jsxs)(`div`,{className:`rounded-lg border p-4`,children:[(0,$.jsxs)(`div`,{className:`mb-2 flex items-center gap-2 text-muted-foreground text-sm`,children:[(0,$.jsx)(Pe,{className:`h-4 w-4`}),` `,me()]}),(0,$.jsx)(`div`,{className:`font-medium text-sm`,children:E?.stats.last_used_at??a()})]})]})]})})]})}var ut=lt;export{ut as component}; \ No newline at end of file diff --git a/src/www/assets/label-CQ1eaOwZ.js b/src/www/assets/label-DNL0sHKL.js similarity index 83% rename from src/www/assets/label-CQ1eaOwZ.js rename to src/www/assets/label-DNL0sHKL.js index 3a0f8c2..abf065d 100644 --- a/src/www/assets/label-CQ1eaOwZ.js +++ b/src/www/assets/label-DNL0sHKL.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";import{t as r}from"./dist-BFnxq45V.js";import{i}from"./button-BgMnOYKD.js";var a=e(t(),1),o=n(),s=`Label`,c=a.forwardRef((e,t)=>(0,o.jsx)(r.label,{...e,ref:t,onMouseDown:t=>{t.target.closest(`button, input, select, textarea`)||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));c.displayName=s;var l=c;function u({className:e,...t}){return(0,o.jsx)(l,{className:i(`flex select-none items-center gap-2 font-medium text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50`,e),"data-slot":`label`,...t})}export{u as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./dist-Cc8_LDAq.js";import{i}from"./button-C_NDYaz8.js";var a=e(t(),1),o=n(),s=`Label`,c=a.forwardRef((e,t)=>(0,o.jsx)(r.label,{...e,ref:t,onMouseDown:t=>{t.target.closest(`button, input, select, textarea`)||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));c.displayName=s;var l=c;function u({className:e,...t}){return(0,o.jsx)(l,{className:i(`flex select-none items-center gap-2 font-medium text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50`,e),"data-slot":`label`,...t})}export{u as t}; \ No newline at end of file diff --git a/src/www/assets/labels-D0HnAPk9.js b/src/www/assets/labels-Cbc2zlmv.js similarity index 78% rename from src/www/assets/labels-D0HnAPk9.js rename to src/www/assets/labels-Cbc2zlmv.js index f7d8344..0654140 100644 --- a/src/www/assets/labels-D0HnAPk9.js +++ b/src/www/assets/labels-Cbc2zlmv.js @@ -1 +1 @@ -import{em as e}from"./messages-Bp0bCjzp.js";import{i as t}from"./button-BgMnOYKD.js";import{n,t as r}from"./crypto-icon-DsKMU9xz.js";var i=e();function a({displayName:e,network:t}){return(0,i.jsx)(s,{label:n(t,e),name:t,type:`network`})}function o({token:e}){return(0,i.jsx)(s,{label:e,name:e,type:`token`})}function s({label:e,name:n,type:a}){return(0,i.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,i.jsx)(r,{alt:``,className:t(`size-4 rounded-full`),height:16,name:n,type:a,width:16}),(0,i.jsx)(`span`,{className:`truncate`,children:e})]})}export{o as n,a as t}; \ No newline at end of file +import{tm as e}from"./messages-BOatyqUm.js";import{i as t}from"./button-C_NDYaz8.js";import{n,t as r}from"./crypto-icon-DnliVYVs.js";var i=e();function a({displayName:e,network:t}){return(0,i.jsx)(s,{label:n(t,e),name:t,type:`network`})}function o({token:e}){return(0,i.jsx)(s,{label:e,name:e,type:`token`})}function s({label:e,name:n,type:a}){return(0,i.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,i.jsx)(r,{alt:``,className:t(`size-4 rounded-full`),height:16,name:n,type:a,width:16}),(0,i.jsx)(`span`,{className:`truncate`,children:e})]})}export{o as n,a as t}; \ No newline at end of file diff --git a/src/www/assets/lazyRouteComponent-iygd3-DM.js b/src/www/assets/lazyRouteComponent-JF8ipq5d.js similarity index 85% rename from src/www/assets/lazyRouteComponent-iygd3-DM.js rename to src/www/assets/lazyRouteComponent-JF8ipq5d.js index ce5ad6f..dcf0a48 100644 --- a/src/www/assets/lazyRouteComponent-iygd3-DM.js +++ b/src/www/assets/lazyRouteComponent-JF8ipq5d.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{r as n}from"./useRouter-DtTm7XkK.js";import{d as r}from"./useStore-CupyIEEP.js";import{n as i}from"./route-Bin9ihv_.js";function a(e){return new o(e,{silent:!0}).createRoute}var o=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=i(e);return t.isRoot=!1,t},this.silent=t?.silent}},s=e(t(),1);function c(e,t){let i,a,o,c,l=()=>(i||=e().then(e=>{i=void 0,a=e[t??`default`]}).catch(e=>{if(o=e,r(o)&&o instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${o.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),c=!0)}}),i),u=function(e){if(c)throw window.location.reload(),new Promise(()=>{});if(o)throw o;if(!a)if(n)n(l());else throw l();return s.createElement(a,e)};return u.preload=l,u}export{a as n,c as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{r as n}from"./useRouter-DtTm7XkK.js";import{d as r}from"./useStore-CupyIEEP.js";import{n as i}from"./route-wzPKSRj2.js";function a(e){return new o(e,{silent:!0}).createRoute}var o=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=i(e);return t.isRoot=!1,t},this.silent=t?.silent}},s=e(t(),1);function c(e,t){let i,a,o,c,l=()=>(i||=e().then(e=>{i=void 0,a=e[t??`default`]}).catch(e=>{if(o=e,r(o)&&o instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${o.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),c=!0)}}),i),u=function(e){if(c)throw window.location.reload(),new Promise(()=>{});if(o)throw o;if(!a)if(n)n(l());else throw l();return s.createElement(a,e)};return u.preload=l,u}export{a as n,c as t}; \ No newline at end of file diff --git a/src/www/assets/lib-DCke3ZPi.js b/src/www/assets/lib-DDezYSnW.js similarity index 69% rename from src/www/assets/lib-DCke3ZPi.js rename to src/www/assets/lib-DDezYSnW.js index 541712a..1543ca6 100644 --- a/src/www/assets/lib-DCke3ZPi.js +++ b/src/www/assets/lib-DDezYSnW.js @@ -1 +1 @@ -import{a as e,o as t}from"./auth-store-Csn6HPxJ.js";import{Ft as n,It as r}from"./messages-Bp0bCjzp.js";import{n as i}from"./dist-BGqHIBUe.js";function a(t){return e.useQuery(`get`,`/admin/api/v1/settings`,t?{params:{query:{group:t}}}:void 0)}function o(){return e.useMutation(`put`,`/admin/api/v1/settings`)}function s(e,t,n=``){return e?.find(e=>e.key===t)?.value??n}async function c(e,a,o=r()){let s=(await e({body:{items:a}})).data?.find(e=>!e.ok);if(s){i.error(n({error:s.error_code?t(s.error_code):s.error??``,key:s.key??``}));return}i.success(o)}async function l(e,t,n){await c(e,t,n)}export{o as a,a as i,l as n,c as r,s as t}; \ No newline at end of file +import{a as e,o as t}from"./auth-store-De4Y7PFV.js";import{Ft as n,It as r}from"./messages-BOatyqUm.js";import{n as i}from"./dist-JOUh6qvR.js";function a(t){return e.useQuery(`get`,`/admin/api/v1/settings`,t?{params:{query:{group:t}}}:void 0)}function o(){return e.useMutation(`put`,`/admin/api/v1/settings`)}function s(e,t,n=``){return e?.find(e=>e.key===t)?.value??n}async function c(e,a,o=r()){let s=(await e({body:{items:a}})).data?.find(e=>!e.ok);if(s){i.error(n({error:s.error_code?t(s.error_code):s.error??``,key:s.key??``}));return}i.success(o)}async function l(e,t,n){await c(e,t,n)}export{o as a,a as i,l as n,c as r,s as t}; \ No newline at end of file diff --git a/src/www/assets/link-BYG8nKNO.js b/src/www/assets/link-DPnL8P5J.js similarity index 95% rename from src/www/assets/link-BYG8nKNO.js rename to src/www/assets/link-DPnL8P5J.js index 83c3148..7c893e1 100644 --- a/src/www/assets/link-BYG8nKNO.js +++ b/src/www/assets/link-DPnL8P5J.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";import{a as r,i,t as a}from"./useRouter-DtTm7XkK.js";import{l as o,s as ee,t as te,u as s}from"./useStore-CupyIEEP.js";import{a as ne,c,n as re}from"./ClientOnly-fFIveJVd.js";import{r as l}from"./dist-BFnxq45V.js";var ie=`Error preloading route! ☝️`,u=e(t(),1);n();var ae=e(l(),1);function d(e,t){let n=a(),l=i(t),{activeProps:d,inactiveProps:g,activeOptions:_,to:v,preload:pe,preloadDelay:me,preloadIntentProximity:he,hashScrollIntoView:ge,replace:y,startTransition:_e,resetScroll:b,viewTransition:ve,children:x,target:S,disabled:C,style:w,className:T,onClick:E,onBlur:D,onFocus:O,onMouseEnter:k,onMouseLeave:A,onTouchStart:j,ignoreBlocker:M,params:ye,search:be,hash:xe,state:Se,mask:Ce,reloadDocument:we,unsafeRelative:Te,from:Ee,_fromLocation:De,...N}=e,P=re(),F=u.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),I=te(n.stores.location,e=>e,(e,t)=>e.href===t.href),L=u.useMemo(()=>{let e={_fromLocation:I,...F};return n.buildLocation(e)},[n,I,F]),R=L.maskedLocation?L.maskedLocation.publicHref:L.publicHref,z=L.maskedLocation?L.maskedLocation.external:L.external,B=u.useMemo(()=>ue(R,z,n.history,C),[C,z,R,n.history]),V=u.useMemo(()=>{if(B?.external)return s(B.href,n.protocolAllowlist)?void 0:B.href;if(!de(v)&&!(typeof v!=`string`||v.indexOf(`:`)===-1))try{return new URL(v),s(v,n.protocolAllowlist)?void 0:v}catch{}},[v,B,n.protocolAllowlist]),H=u.useMemo(()=>{if(V)return!1;if(_?.exact){if(!ne(I.pathname,L.pathname,n.basepath))return!1}else{let e=c(I.pathname,n.basepath),t=c(L.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(_?.includeSearch??!0)&&!ee(I.search,L.search,{partial:!_?.exact,ignoreUndefined:!_?.explicitUndefined})?!1:_?.includeHash?P&&I.hash===L.hash:!0},[_?.exact,_?.explicitUndefined,_?.includeHash,_?.includeSearch,I,V,P,L.hash,L.pathname,L.search,n.basepath]),U=H?o(d,{})??oe:f,W=H?f:o(g,{})??f,G=[T,U.className,W.className].filter(Boolean).join(` `),K=(w||U.style||W.style)&&{...w,...U.style,...W.style},[Oe,q]=u.useState(!1),J=u.useRef(!1),Y=e.reloadDocument||V?!1:pe??n.options.defaultPreload,X=me??n.options.defaultPreloadDelay??0,Z=u.useCallback(()=>{n.preloadRoute({...F,_builtLocation:L}).catch(e=>{console.warn(e),console.warn(ie)})},[n,F,L]);r(l,u.useCallback(e=>{e?.isIntersecting&&Z()},[Z]),m,{disabled:!!C||Y!==`viewport`}),u.useEffect(()=>{J.current||!C&&Y===`render`&&(Z(),J.current=!0)},[C,Z,Y]);let ke=e=>{let t=e.currentTarget.getAttribute(`target`),r=S===void 0?t:S;if(!C&&!fe(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,ae.flushSync)(()=>{q(!0)});let t=n.subscribe(`onResolved`,()=>{t(),q(!1)});n.navigate({...F,replace:y,resetScroll:b,hashScrollIntoView:ge,startTransition:_e,viewTransition:ve,ignoreBlocker:M})}};if(V)return{...N,ref:l,href:V,...x&&{children:x},...S&&{target:S},...C&&{disabled:C},...w&&{style:w},...T&&{className:T},...E&&{onClick:E},...D&&{onBlur:D},...O&&{onFocus:O},...k&&{onMouseEnter:k},...A&&{onMouseLeave:A},...j&&{onTouchStart:j}};let Q=e=>{if(C||Y!==`intent`)return;if(!X){Z();return}let t=e.currentTarget;if(p.has(t))return;let n=setTimeout(()=>{p.delete(t),Z()},X);p.set(t,n)},Ae=e=>{C||Y!==`intent`||Z()},$=e=>{if(C||!Y||!X)return;let t=e.currentTarget,n=p.get(t);n&&(clearTimeout(n),p.delete(t))};return{...N,...U,...W,href:B?.href,ref:l,onClick:h([E,ke]),onBlur:h([D,$]),onFocus:h([O,Q]),onMouseEnter:h([k,Q]),onMouseLeave:h([A,$]),onTouchStart:h([j,Ae]),disabled:!!C,target:S,...K&&{style:K},...G&&{className:G},...C&&se,...H&&ce,...P&&Oe&&le}}var f={},oe={className:`active`},se={role:`link`,"aria-disabled":!0},ce={"data-status":`active`,"aria-current":`page`},le={"data-transitioning":`transitioning`},p=new WeakMap,m={rootMargin:`100px`},h=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function ue(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function de(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var g=u.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=d(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;return u.createElement(`a`,t,o)}return u.createElement(n,a,o)});function fe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}export{g as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{a as r,i,t as a}from"./useRouter-DtTm7XkK.js";import{l as o,s as ee,t as te,u as s}from"./useStore-CupyIEEP.js";import{a as ne,c,n as re}from"./ClientOnly-Bj5CESUC.js";import{r as l}from"./dist-Cc8_LDAq.js";var ie=`Error preloading route! ☝️`,u=e(t(),1);n();var ae=e(l(),1);function d(e,t){let n=a(),l=i(t),{activeProps:d,inactiveProps:g,activeOptions:_,to:v,preload:pe,preloadDelay:me,preloadIntentProximity:he,hashScrollIntoView:ge,replace:y,startTransition:_e,resetScroll:b,viewTransition:ve,children:x,target:S,disabled:C,style:w,className:T,onClick:E,onBlur:D,onFocus:O,onMouseEnter:k,onMouseLeave:A,onTouchStart:j,ignoreBlocker:M,params:ye,search:be,hash:xe,state:Se,mask:Ce,reloadDocument:we,unsafeRelative:Te,from:Ee,_fromLocation:De,...N}=e,P=re(),F=u.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),I=te(n.stores.location,e=>e,(e,t)=>e.href===t.href),L=u.useMemo(()=>{let e={_fromLocation:I,...F};return n.buildLocation(e)},[n,I,F]),R=L.maskedLocation?L.maskedLocation.publicHref:L.publicHref,z=L.maskedLocation?L.maskedLocation.external:L.external,B=u.useMemo(()=>ue(R,z,n.history,C),[C,z,R,n.history]),V=u.useMemo(()=>{if(B?.external)return s(B.href,n.protocolAllowlist)?void 0:B.href;if(!de(v)&&!(typeof v!=`string`||v.indexOf(`:`)===-1))try{return new URL(v),s(v,n.protocolAllowlist)?void 0:v}catch{}},[v,B,n.protocolAllowlist]),H=u.useMemo(()=>{if(V)return!1;if(_?.exact){if(!ne(I.pathname,L.pathname,n.basepath))return!1}else{let e=c(I.pathname,n.basepath),t=c(L.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(_?.includeSearch??!0)&&!ee(I.search,L.search,{partial:!_?.exact,ignoreUndefined:!_?.explicitUndefined})?!1:_?.includeHash?P&&I.hash===L.hash:!0},[_?.exact,_?.explicitUndefined,_?.includeHash,_?.includeSearch,I,V,P,L.hash,L.pathname,L.search,n.basepath]),U=H?o(d,{})??oe:f,W=H?f:o(g,{})??f,G=[T,U.className,W.className].filter(Boolean).join(` `),K=(w||U.style||W.style)&&{...w,...U.style,...W.style},[Oe,q]=u.useState(!1),J=u.useRef(!1),Y=e.reloadDocument||V?!1:pe??n.options.defaultPreload,X=me??n.options.defaultPreloadDelay??0,Z=u.useCallback(()=>{n.preloadRoute({...F,_builtLocation:L}).catch(e=>{console.warn(e),console.warn(ie)})},[n,F,L]);r(l,u.useCallback(e=>{e?.isIntersecting&&Z()},[Z]),m,{disabled:!!C||Y!==`viewport`}),u.useEffect(()=>{J.current||!C&&Y===`render`&&(Z(),J.current=!0)},[C,Z,Y]);let ke=e=>{let t=e.currentTarget.getAttribute(`target`),r=S===void 0?t:S;if(!C&&!fe(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,ae.flushSync)(()=>{q(!0)});let t=n.subscribe(`onResolved`,()=>{t(),q(!1)});n.navigate({...F,replace:y,resetScroll:b,hashScrollIntoView:ge,startTransition:_e,viewTransition:ve,ignoreBlocker:M})}};if(V)return{...N,ref:l,href:V,...x&&{children:x},...S&&{target:S},...C&&{disabled:C},...w&&{style:w},...T&&{className:T},...E&&{onClick:E},...D&&{onBlur:D},...O&&{onFocus:O},...k&&{onMouseEnter:k},...A&&{onMouseLeave:A},...j&&{onTouchStart:j}};let Q=e=>{if(C||Y!==`intent`)return;if(!X){Z();return}let t=e.currentTarget;if(p.has(t))return;let n=setTimeout(()=>{p.delete(t),Z()},X);p.set(t,n)},Ae=e=>{C||Y!==`intent`||Z()},$=e=>{if(C||!Y||!X)return;let t=e.currentTarget,n=p.get(t);n&&(clearTimeout(n),p.delete(t))};return{...N,...U,...W,href:B?.href,ref:l,onClick:h([E,ke]),onBlur:h([D,$]),onFocus:h([O,Q]),onMouseEnter:h([k,Q]),onMouseLeave:h([A,$]),onTouchStart:h([j,Ae]),disabled:!!C,target:S,...K&&{style:K},...G&&{className:G},...C&&se,...H&&ce,...P&&Oe&&le}}var f={},oe={className:`active`},se={role:`link`,"aria-disabled":!0},ce={"data-status":`active`,"aria-current":`page`},le={"data-transitioning":`transitioning`},p=new WeakMap,m={rootMargin:`100px`},h=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function ue(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function de(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var g=u.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=d(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;return u.createElement(`a`,t,o)}return u.createElement(n,a,o)});function fe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}export{g as t}; \ No newline at end of file diff --git a/src/www/assets/logo-Ce__4GTc.js b/src/www/assets/logo-Ce__4GTc.js deleted file mode 100644 index 880a3e1..0000000 --- a/src/www/assets/logo-Ce__4GTc.js +++ /dev/null @@ -1 +0,0 @@ -import{em as e}from"./messages-Bp0bCjzp.js";import{i as t}from"./button-BgMnOYKD.js";var n=e();function r({className:e,...r}){return(0,n.jsx)(`img`,{alt:`GMPay`,className:t(`size-6`,e),height:24,src:`/images/logo.png`,width:24,...r})}export{r as t}; \ No newline at end of file diff --git a/src/www/assets/logo-agrtpj2n.js b/src/www/assets/logo-agrtpj2n.js new file mode 100644 index 0000000..e065bce --- /dev/null +++ b/src/www/assets/logo-agrtpj2n.js @@ -0,0 +1 @@ +import{tm as e}from"./messages-BOatyqUm.js";import{i as t}from"./button-C_NDYaz8.js";var n=e();function r({className:e,...r}){return(0,n.jsx)(`img`,{alt:`GMPay`,className:t(`size-6`,e),height:24,src:`/images/logo.png`,width:24,...r})}export{r as t}; \ No newline at end of file diff --git a/src/www/assets/long-text-fyhANC4b.js b/src/www/assets/long-text-DNqlDi0R.js similarity index 78% rename from src/www/assets/long-text-fyhANC4b.js rename to src/www/assets/long-text-DNqlDi0R.js index c87d410..d3fa00c 100644 --- a/src/www/assets/long-text-fyhANC4b.js +++ b/src/www/assets/long-text-DNqlDi0R.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";import{i as r}from"./button-BgMnOYKD.js";import{n as i,r as a,t as o}from"./popover-YeKifm3K.js";import{i as s,n as c,r as l,t as u}from"./tooltip-Gx9CUpPD.js";var d=e(t(),1),f=n();function p({children:e,className:t=``,contentClassName:n=``}){let p=(0,d.useRef)(null),[h,g]=(0,d.useState)(!1),_=e=>{p.current=e,e&&m(e)&&queueMicrotask(()=>g(!0))};return h?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`div`,{className:`hidden sm:block`,children:(0,f.jsx)(l,{delayDuration:0,children:(0,f.jsxs)(u,{children:[(0,f.jsx)(s,{asChild:!0,children:(0,f.jsx)(`div`,{className:r(`truncate`,t),ref:_,children:e})}),(0,f.jsx)(c,{children:(0,f.jsx)(`p`,{className:n,children:e})})]})})}),(0,f.jsx)(`div`,{className:`sm:hidden`,children:(0,f.jsxs)(o,{children:[(0,f.jsx)(a,{asChild:!0,children:(0,f.jsx)(`div`,{className:r(`truncate`,t),ref:_,children:e})}),(0,f.jsx)(i,{className:r(`w-fit`,n),children:(0,f.jsx)(`p`,{children:e})})]})})]}):(0,f.jsx)(`div`,{className:r(`truncate`,t),ref:_,children:e})}var m=e=>e?e.offsetHeight{p.current=e,e&&m(e)&&queueMicrotask(()=>g(!0))};return h?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`div`,{className:`hidden sm:block`,children:(0,f.jsx)(l,{delayDuration:0,children:(0,f.jsxs)(u,{children:[(0,f.jsx)(s,{asChild:!0,children:(0,f.jsx)(`div`,{className:r(`truncate`,t),ref:_,children:e})}),(0,f.jsx)(c,{children:(0,f.jsx)(`p`,{className:n,children:e})})]})})}),(0,f.jsx)(`div`,{className:`sm:hidden`,children:(0,f.jsxs)(o,{children:[(0,f.jsx)(a,{asChild:!0,children:(0,f.jsx)(`div`,{className:r(`truncate`,t),ref:_,children:e})}),(0,f.jsx)(i,{className:r(`w-fit`,n),children:(0,f.jsx)(`p`,{children:e})})]})})]}):(0,f.jsx)(`div`,{className:r(`truncate`,t),ref:_,children:e})}var m=e=>e?e.offsetHeight(0,h.jsx)(i,{asChild:!0,children:(0,h.jsx)(t,{className:r?``:`text-muted-foreground`,disabled:a,to:n,children:e})},`${e}-${n}`))})]})}),(0,h.jsx)(`nav`,{className:n(`hidden items-center space-x-4 lg:flex lg:space-x-4 xl:space-x-6`,e),...l,children:c.map(({title:e,href:n,isActive:r,disabled:i})=>(0,h.jsx)(t,{className:`font-medium text-sm transition-colors hover:text-primary ${r?``:`text-muted-foreground`}`,disabled:i,to:n,children:e},`${e}-${n}`))})]})}function _({fixed:e,topNav:t}){return(0,h.jsxs)(p,{fixed:e,children:[t?(0,h.jsx)(g,{links:t}):(0,h.jsx)(d,{}),(0,h.jsxs)(`div`,{className:`ms-auto flex items-center space-x-4`,children:[t&&(0,h.jsx)(d,{}),(0,h.jsx)(l,{}),(0,h.jsx)(u,{}),(0,h.jsx)(f,{})]})]})}function v({fixed:e,className:t,fluid:r,...i}){return(0,h.jsx)(`main`,{className:n(`px-4 py-6`,e&&`flex grow flex-col overflow-hidden`,!r&&`@7xl/content:mx-auto @7xl/content:w-full @7xl/content:max-w-7xl`,t),"data-layout":e?`fixed`:`auto`,...i})}export{_ as n,v as t}; \ No newline at end of file +import{tm as e}from"./messages-BOatyqUm.js";import{t}from"./link-DPnL8P5J.js";import{i as n,t as r}from"./button-C_NDYaz8.js";import{a as i,l as a,r as o,t as s}from"./dropdown-menu-DzCIpsuG.js";import{t as c}from"./createLucideIcon-Br0Bd5k2.js";import{n as l,t as u}from"./theme-switch-CHLQml_8.js";import{n as d,r as f,t as p}from"./header-DVAsq5d6.js";var m=c(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),h=e();function g({className:e,links:c,...l}){return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(`div`,{className:`lg:hidden`,children:(0,h.jsxs)(s,{modal:!1,children:[(0,h.jsx)(a,{asChild:!0,children:(0,h.jsx)(r,{className:`md:size-7`,size:`icon`,variant:`outline`,children:(0,h.jsx)(m,{})})}),(0,h.jsx)(o,{align:`start`,side:`bottom`,children:c.map(({title:e,href:n,isActive:r,disabled:a})=>(0,h.jsx)(i,{asChild:!0,children:(0,h.jsx)(t,{className:r?``:`text-muted-foreground`,disabled:a,to:n,children:e})},`${e}-${n}`))})]})}),(0,h.jsx)(`nav`,{className:n(`hidden items-center space-x-4 lg:flex lg:space-x-4 xl:space-x-6`,e),...l,children:c.map(({title:e,href:n,isActive:r,disabled:i})=>(0,h.jsx)(t,{className:`font-medium text-sm transition-colors hover:text-primary ${r?``:`text-muted-foreground`}`,disabled:i,to:n,children:e},`${e}-${n}`))})]})}function _({fixed:e,topNav:t}){return(0,h.jsxs)(p,{fixed:e,children:[t?(0,h.jsx)(g,{links:t}):(0,h.jsx)(d,{}),(0,h.jsxs)(`div`,{className:`ms-auto flex items-center space-x-4`,children:[t&&(0,h.jsx)(d,{}),(0,h.jsx)(l,{}),(0,h.jsx)(u,{}),(0,h.jsx)(f,{})]})]})}function v({fixed:e,className:t,fluid:r,...i}){return(0,h.jsx)(`main`,{className:n(`px-4 py-6`,e&&`flex grow flex-col overflow-hidden`,!r&&`@7xl/content:mx-auto @7xl/content:w-full @7xl/content:max-w-7xl`,t),"data-layout":e?`fixed`:`auto`,...i})}export{_ as n,v as t}; \ No newline at end of file diff --git a/src/www/assets/maintenance-error-CuCw7L8t.js b/src/www/assets/maintenance-error-DeZhljU8.js similarity index 51% rename from src/www/assets/maintenance-error-CuCw7L8t.js rename to src/www/assets/maintenance-error-DeZhljU8.js index 9f23ed0..951fdea 100644 --- a/src/www/assets/maintenance-error-CuCw7L8t.js +++ b/src/www/assets/maintenance-error-DeZhljU8.js @@ -1 +1 @@ -import{At as e,Rp as t,em as n,jt as r,kt as i}from"./messages-Bp0bCjzp.js";import{t as a}from"./button-BgMnOYKD.js";var o=n();function s(){return(0,o.jsx)(`div`,{className:`h-svh`,children:(0,o.jsxs)(`div`,{className:`m-auto flex h-full w-full flex-col items-center justify-center gap-2`,children:[(0,o.jsx)(`h1`,{className:`font-bold text-[7rem] leading-tight`,children:`503`}),(0,o.jsx)(`span`,{className:`font-medium`,children:r()}),(0,o.jsxs)(`p`,{className:`text-center text-muted-foreground`,children:[e(),` `,(0,o.jsx)(`br`,{}),i()]}),(0,o.jsx)(`div`,{className:`mt-6 flex gap-4`,children:(0,o.jsx)(a,{variant:`outline`,children:t()})})]})})}export{s as t}; \ No newline at end of file +import{At as e,jt as t,kt as n,tm as r,zp as i}from"./messages-BOatyqUm.js";import{t as a}from"./button-C_NDYaz8.js";var o=r();function s(){return(0,o.jsx)(`div`,{className:`h-svh`,children:(0,o.jsxs)(`div`,{className:`m-auto flex h-full w-full flex-col items-center justify-center gap-2`,children:[(0,o.jsx)(`h1`,{className:`font-bold text-[7rem] leading-tight`,children:`503`}),(0,o.jsx)(`span`,{className:`font-medium`,children:t()}),(0,o.jsxs)(`p`,{className:`text-center text-muted-foreground`,children:[e(),` `,(0,o.jsx)(`br`,{}),n()]}),(0,o.jsx)(`div`,{className:`mt-6 flex gap-4`,children:(0,o.jsx)(a,{variant:`outline`,children:i()})})]})})}export{s as t}; \ No newline at end of file diff --git a/src/www/assets/messages-BOatyqUm.js b/src/www/assets/messages-BOatyqUm.js new file mode 100644 index 0000000..d95db3e --- /dev/null +++ b/src/www/assets/messages-BOatyqUm.js @@ -0,0 +1 @@ +import{t as e}from"./chunk-DECur_0Z.js";var t=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),n=e(((e,n)=>{n.exports=t()})),r={},i=`en-US`,a=[`en-US`,`ja-JP`,`ko-KR`,`ru-RU`,`zh-TW`,`zh-CN`],o=`PARAGLIDE_LOCALE`,ee=3456e4,s=[`cookie`,`preferredLanguage`,`baseLocale`],c=[],l,u;function te(e){if(c.length===0)return;let t=typeof e==`string`?e:e.href;if(l===t)return u;let n=new URL(t,`http://dummy.com`),i;for(let e of c)if(new r(e.match,n.href).exec(n.href)){i=e;break}return l=t,u=i,i}function d(e){let t=te(e);return t&&t.exclude!==!0&&Array.isArray(t.strategy)?t.strategy:s}var f=void 0;globalThis.__paraglide=globalThis.__paraglide??{},globalThis.__paraglide.ssr=globalThis.__paraglide.ssr??{};var p=!1,m=()=>{if(f){let e=f?.getStore()?.locale;if(e)return e}let e=s;typeof window<`u`&&window.location?.href&&(e=d(window.location.href));let t=h(e,typeof window<`u`?window.location?.href:void 0);if(t)return p||(p=!0,_(t,{reload:!1})),t;throw Error(`No locale found. Read the docs https://inlang.com/m/gerre34r/library-inlang-paraglideJs/errors#no-locale-found`)};function h(e,t){let n;for(let t of e){if(t===`cookie`)n=b();else if(t===`baseLocale`)n=i;else if(t===`preferredLanguage`)n=x();else if(C(t)&&S.has(t)){let e=S.get(t);if(e){let t=e.getLocale();if(t instanceof Promise)continue;if(t!==void 0)return y(t)}}let e=v(n);if(e)return e}}var g=e=>{e?window.location.href=e:window.location.reload()},_=(e,t)=>{let n={reload:!0,...t},r;try{r=m()}catch{}let i=[],a=s;typeof window<`u`&&window.location?.href&&(a=d(window.location.href));for(let t of a)if(t===`cookie`){if(typeof document>`u`||typeof window>`u`)continue;let t=`${o}=${e}; path=/; max-age=${ee}`;document.cookie=t}else if(t===`baseLocale`)continue;else if(C(t)&&S.has(t)){let n=S.get(t);if(n){let r=n.setLocale(e);r instanceof Promise&&(r=r.catch(e=>{throw Error(`Custom strategy "${t}" setLocale failed.`,{cause:e})}),i.push(r))}}let c=()=>{n.reload&&window.location&&e!==r&&g(void 0)};if(i.length)return Promise.all(i).then(()=>{c()});c()};function v(e){if(typeof e!=`string`)return;let t=e.toLowerCase();for(let e of a)if(e.toLowerCase()===t)return e}function y(e){let t=v(e);if(t)return t;throw Error(`Invalid locale: ${e}. Expected one of: ${a.join(`, `)}`)}function b(){if(typeof document>`u`||!document.cookie)return;let e=document.cookie.match(RegExp(`(^| )${o}=([^;]+)`))?.[2];return v(e)}function x(){if(!navigator?.languages?.length)return;let e=navigator.languages.map(e=>({fullTag:e,baseTag:e.split(`-`)[0]}));for(let t of e){let e=v(t.fullTag);if(e)return e;let n=v(t.baseTag);if(n)return n}}var S=new Map;function C(e){return typeof e==`string`&&/^custom-[A-Za-z0-9_-]+$/.test(e)}var w=()=>`Search`,T=()=>`Search`,E=()=>`Search`,D=()=>`Search`,O=()=>`搜尋`,k=()=>`搜索`,A=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?w(e):n===`ja-JP`?T(e):n===`ko-KR`?E(e):n===`ru-RU`?D(e):n===`zh-TW`?O(e):k(e)}),j=()=>`Cancel`,M=()=>`Cancel`,N=()=>`Cancel`,P=()=>`Cancel`,F=()=>`取消`,I=()=>`取消`,L=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?j(e):n===`ja-JP`?M(e):n===`ko-KR`?N(e):n===`ru-RU`?P(e):n===`zh-TW`?F(e):I(e)}),R=()=>`Continue`,z=()=>`Continue`,B=()=>`Continue`,V=()=>`Continue`,H=()=>`繼續`,U=()=>`继续`,W=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?R(e):n===`ja-JP`?z(e):n===`ko-KR`?B(e):n===`ru-RU`?V(e):n===`zh-TW`?H(e):U(e)}),G=()=>`Change Password`,K=()=>`Change Password`,q=()=>`Change Password`,J=()=>`Change Password`,Y=()=>`修改密碼`,X=()=>`修改密码`,Z=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?G(e):n===`ja-JP`?K(e):n===`ko-KR`?q(e):n===`ru-RU`?J(e):n===`zh-TW`?Y(e):X(e)}),Q=()=>`Sign out`,ne=()=>`Sign out`,re=()=>`Sign out`,ie=()=>`Sign out`,ae=()=>`退出登入`,oe=()=>`退出登录`,se=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Q(e):n===`ja-JP`?ne(e):n===`ko-KR`?re(e):n===`ru-RU`?ie(e):n===`zh-TW`?ae(e):oe(e)}),ce=()=>`Are you sure you want to sign out? You will need to sign in again to access your account.`,le=()=>`Are you sure you want to sign out? You will need to sign in again to access your account.`,ue=()=>`Are you sure you want to sign out? You will need to sign in again to access your account.`,de=()=>`Are you sure you want to sign out? You will need to sign in again to access your account.`,fe=()=>`您確定要退出登入嗎?您需要重新登入才能訪問您的賬戶。`,pe=()=>`您确定要退出登录吗?您需要重新登录才能访问您的账户。`,me=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ce(e):n===`ja-JP`?le(e):n===`ko-KR`?ue(e):n===`ru-RU`?de(e):n===`zh-TW`?fe(e):pe(e)}),he=()=>`Toggle theme`,ge=()=>`テーマを切り替え`,_e=()=>`테마 전환`,ve=()=>`Переключить тему`,ye=()=>`切換主題`,be=()=>`切换主题`,xe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?he(e):n===`ja-JP`?ge(e):n===`ko-KR`?_e(e):n===`ru-RU`?ve(e):n===`zh-TW`?ye(e):be(e)}),Se=()=>`Light`,Ce=()=>`ライト`,we=()=>`라이트`,Te=()=>`Светлая`,Ee=()=>`淺色`,De=()=>`浅色`,Oe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Se(e):n===`ja-JP`?Ce(e):n===`ko-KR`?we(e):n===`ru-RU`?Te(e):n===`zh-TW`?Ee(e):De(e)}),ke=()=>`Dark`,Ae=()=>`ダーク`,je=()=>`다크`,Me=()=>`Темная`,Ne=()=>`深色`,Pe=()=>`深色`,Fe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ke(e):n===`ja-JP`?Ae(e):n===`ko-KR`?je(e):n===`ru-RU`?Me(e):n===`zh-TW`?Ne(e):Pe(e)}),Ie=()=>`System`,Le=()=>`システム`,Re=()=>`시스템`,ze=()=>`Системная`,Be=()=>`系統`,Ve=()=>`系统`,He=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ie(e):n===`ja-JP`?Le(e):n===`ko-KR`?Re(e):n===`ru-RU`?ze(e):n===`zh-TW`?Be(e):Ve(e)}),Ue=()=>`Skip to Main`,We=()=>`Skip to Main`,Ge=()=>`Skip to Main`,Ke=()=>`Skip to Main`,qe=()=>`跳至主內容`,Je=()=>`跳至主内容`,Ye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ue(e):n===`ja-JP`?We(e):n===`ko-KR`?Ge(e):n===`ru-RU`?Ke(e):n===`zh-TW`?qe(e):Je(e)}),Xe=()=>`Switch language`,Ze=()=>`言語を切り替え`,Qe=()=>`언어 전환`,$e=()=>`Сменить язык`,et=()=>`切換語言`,tt=()=>`切换语言`,nt=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Xe(e):n===`ja-JP`?Ze(e):n===`ko-KR`?Qe(e):n===`ru-RU`?$e(e):n===`zh-TW`?et(e):tt(e)}),rt=()=>`Learn more`,it=()=>`Learn more`,at=()=>`Learn more`,ot=()=>`Learn more`,st=()=>`瞭解更多`,ct=()=>`了解更多`,lt=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rt(e):n===`ja-JP`?it(e):n===`ko-KR`?at(e):n===`ru-RU`?ot(e):n===`zh-TW`?st(e):ct(e)}),ut=()=>`Coming Soon`,dt=()=>`Coming Soon`,ft=()=>`Coming Soon`,pt=()=>`Coming Soon`,mt=()=>`即將推出`,ht=()=>`即将推出`,gt=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ut(e):n===`ja-JP`?dt(e):n===`ko-KR`?ft(e):n===`ru-RU`?pt(e):n===`zh-TW`?mt(e):ht(e)}),_t=()=>`We are putting the finishing touches on this feature. Stay tuned for a better experience.`,vt=()=>`We are putting the finishing touches on this feature. Stay tuned for a better experience.`,yt=()=>`We are putting the finishing touches on this feature. Stay tuned for a better experience.`,bt=()=>`We are putting the finishing touches on this feature. Stay tuned for a better experience.`,xt=()=>`我們正在打磨這一功能,敬請期待更好的體驗`,St=()=>`我们正在打磨这一功能,敬请期待更好的体验`,Ct=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_t(e):n===`ja-JP`?vt(e):n===`ko-KR`?yt(e):n===`ru-RU`?bt(e):n===`zh-TW`?xt(e):St(e)}),wt=()=>`Hang tight 👀`,Tt=()=>`Hang tight 👀`,Et=()=>`Hang tight 👀`,Dt=()=>`Hang tight 👀`,Ot=()=>`再等等 👀`,kt=()=>`再等等 👀`,At=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wt(e):n===`ja-JP`?Tt(e):n===`ko-KR`?Et(e):n===`ru-RU`?Dt(e):n===`zh-TW`?Ot(e):kt(e)}),jt=()=>`Type a command or search...`,Mt=()=>`Type a command or search...`,Nt=()=>`Type a command or search...`,Pt=()=>`Type a command or search...`,Ft=()=>`輸入命令或搜尋...`,It=()=>`输入命令或搜索...`,Lt=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jt(e):n===`ja-JP`?Mt(e):n===`ko-KR`?Nt(e):n===`ru-RU`?Pt(e):n===`zh-TW`?Ft(e):It(e)}),Rt=()=>`No results found.`,zt=()=>`No results found.`,Bt=()=>`No results found.`,Vt=()=>`No results found.`,Ht=()=>`未找到結果。`,Ut=()=>`未找到结果。`,Wt=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Rt(e):n===`ja-JP`?zt(e):n===`ko-KR`?Bt(e):n===`ru-RU`?Vt(e):n===`zh-TW`?Ht(e):Ut(e)}),Gt=()=>`Theme Settings`,Kt=()=>`Theme Settings`,qt=()=>`Theme Settings`,Jt=()=>`Theme Settings`,Yt=()=>`主題設定`,Xt=()=>`主题设置`,Zt=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Gt(e):n===`ja-JP`?Kt(e):n===`ko-KR`?qt(e):n===`ru-RU`?Jt(e):n===`zh-TW`?Yt(e):Xt(e)}),Qt=()=>`Adjust the appearance and layout to suit your preferences.`,$t=()=>`Adjust the appearance and layout to suit your preferences.`,en=()=>`Adjust the appearance and layout to suit your preferences.`,tn=()=>`Adjust the appearance and layout to suit your preferences.`,nn=()=>`調整外觀和佈局以適合您的偏好。`,rn=()=>`调整外观和布局以适合您的偏好。`,an=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Qt(e):n===`ja-JP`?$t(e):n===`ko-KR`?en(e):n===`ru-RU`?tn(e):n===`zh-TW`?nn(e):rn(e)}),on=()=>`Reset`,sn=()=>`Reset`,cn=()=>`Reset`,ln=()=>`Reset`,un=()=>`重置`,dn=()=>`重置`,fn=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?on(e):n===`ja-JP`?sn(e):n===`ko-KR`?cn(e):n===`ru-RU`?ln(e):n===`zh-TW`?un(e):dn(e)}),pn=()=>`Theme`,mn=()=>`Theme`,hn=()=>`Theme`,gn=()=>`Theme`,_n=()=>`主題`,vn=()=>`主题`,yn=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pn(e):n===`ja-JP`?mn(e):n===`ko-KR`?hn(e):n===`ru-RU`?gn(e):n===`zh-TW`?_n(e):vn(e)}),bn=()=>`Sidebar`,xn=()=>`Sidebar`,Sn=()=>`Sidebar`,Cn=()=>`Sidebar`,wn=()=>`側邊欄`,Tn=()=>`侧边栏`,En=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bn(e):n===`ja-JP`?xn(e):n===`ko-KR`?Sn(e):n===`ru-RU`?Cn(e):n===`zh-TW`?wn(e):Tn(e)}),Dn=()=>`Layout`,On=()=>`Layout`,kn=()=>`Layout`,An=()=>`Layout`,jn=()=>`佈局`,Mn=()=>`布局`,Nn=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Dn(e):n===`ja-JP`?On(e):n===`ko-KR`?kn(e):n===`ru-RU`?An(e):n===`zh-TW`?jn(e):Mn(e)}),Pn=()=>`Direction`,Fn=()=>`Direction`,In=()=>`Direction`,Ln=()=>`Direction`,Rn=()=>`方向`,zn=()=>`方向`,Bn=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Pn(e):n===`ja-JP`?Fn(e):n===`ko-KR`?In(e):n===`ru-RU`?Ln(e):n===`zh-TW`?Rn(e):zn(e)}),Vn=()=>`Inset`,Hn=()=>`Inset`,Un=()=>`Inset`,Wn=()=>`Inset`,Gn=()=>`嵌入`,Kn=()=>`嵌入`,qn=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Vn(e):n===`ja-JP`?Hn(e):n===`ko-KR`?Un(e):n===`ru-RU`?Wn(e):n===`zh-TW`?Gn(e):Kn(e)}),Jn=()=>`Floating`,Yn=()=>`Floating`,Xn=()=>`Floating`,Zn=()=>`Floating`,Qn=()=>`浮動`,$n=()=>`浮动`,er=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Jn(e):n===`ja-JP`?Yn(e):n===`ko-KR`?Xn(e):n===`ru-RU`?Zn(e):n===`zh-TW`?Qn(e):$n(e)}),tr=()=>`Sidebar`,nr=()=>`Sidebar`,rr=()=>`Sidebar`,ir=()=>`Sidebar`,ar=()=>`側邊欄`,or=()=>`侧边栏`,sr=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tr(e):n===`ja-JP`?nr(e):n===`ko-KR`?rr(e):n===`ru-RU`?ir(e):n===`zh-TW`?ar(e):or(e)}),cr=()=>`Default`,lr=()=>`Default`,ur=()=>`Default`,dr=()=>`Default`,fr=()=>`預設`,pr=()=>`默认`,mr=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cr(e):n===`ja-JP`?lr(e):n===`ko-KR`?ur(e):n===`ru-RU`?dr(e):n===`zh-TW`?fr(e):pr(e)}),hr=()=>`Compact`,gr=()=>`Compact`,_r=()=>`Compact`,vr=()=>`Compact`,yr=()=>`緊湊`,br=()=>`紧凑`,xr=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hr(e):n===`ja-JP`?gr(e):n===`ko-KR`?_r(e):n===`ru-RU`?vr(e):n===`zh-TW`?yr(e):br(e)}),Sr=()=>`Full layout`,Cr=()=>`Full layout`,wr=()=>`Full layout`,Tr=()=>`Full layout`,Er=()=>`完整佈局`,Dr=()=>`完整布局`,Or=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Sr(e):n===`ja-JP`?Cr(e):n===`ko-KR`?wr(e):n===`ru-RU`?Tr(e):n===`zh-TW`?Er(e):Dr(e)}),kr=()=>`Left to Right`,Ar=()=>`Left to Right`,jr=()=>`Left to Right`,Mr=()=>`Left to Right`,Nr=()=>`從左到右`,Pr=()=>`从左到右`,Fr=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kr(e):n===`ja-JP`?Ar(e):n===`ko-KR`?jr(e):n===`ru-RU`?Mr(e):n===`zh-TW`?Nr(e):Pr(e)}),Ir=()=>`Right to Left`,Lr=()=>`Right to Left`,Rr=()=>`Right to Left`,zr=()=>`Right to Left`,Br=()=>`從右到左`,Vr=()=>`从右到左`,Hr=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ir(e):n===`ja-JP`?Lr(e):n===`ko-KR`?Rr(e):n===`ru-RU`?zr(e):n===`zh-TW`?Br(e):Vr(e)}),Ur=()=>`Asc`,Wr=()=>`Asc`,Gr=()=>`Asc`,Kr=()=>`Asc`,qr=()=>`升序`,Jr=()=>`升序`,Yr=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ur(e):n===`ja-JP`?Wr(e):n===`ko-KR`?Gr(e):n===`ru-RU`?Kr(e):n===`zh-TW`?qr(e):Jr(e)}),Xr=()=>`Desc`,Zr=()=>`Desc`,Qr=()=>`Desc`,$r=()=>`Desc`,ei=()=>`降序`,ti=()=>`降序`,ni=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Xr(e):n===`ja-JP`?Zr(e):n===`ko-KR`?Qr(e):n===`ru-RU`?$r(e):n===`zh-TW`?ei(e):ti(e)}),ri=()=>`Hide`,ii=()=>`Hide`,ai=()=>`Hide`,oi=()=>`Hide`,si=()=>`隱藏`,ci=()=>`隐藏`,li=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ri(e):n===`ja-JP`?ii(e):n===`ko-KR`?ai(e):n===`ru-RU`?oi(e):n===`zh-TW`?si(e):ci(e)}),ui=e=>`Page ${e?.current} of ${e?.total}`,di=e=>`Page ${e?.current} of ${e?.total}`,fi=e=>`Page ${e?.current} of ${e?.total}`,pi=e=>`Page ${e?.current} of ${e?.total}`,mi=e=>`第 ${e?.current} 頁,共 ${e?.total} 頁`,hi=e=>`第 ${e?.current} 页,共 ${e?.total} 页`,gi=((e,t={})=>{let n=t.locale??m();return n===`en-US`?ui(e):n===`ja-JP`?di(e):n===`ko-KR`?fi(e):n===`ru-RU`?pi(e):n===`zh-TW`?mi(e):hi(e)}),_i=()=>`Rows per page`,vi=()=>`Rows per page`,yi=()=>`Rows per page`,bi=()=>`Rows per page`,xi=()=>`每頁行數`,Si=()=>`每页行数`,Ci=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_i(e):n===`ja-JP`?vi(e):n===`ko-KR`?yi(e):n===`ru-RU`?bi(e):n===`zh-TW`?xi(e):Si(e)}),wi=()=>`Go to first page`,Ti=()=>`Go to first page`,Ei=()=>`Go to first page`,Di=()=>`Go to first page`,Oi=()=>`跳轉到第一頁`,ki=()=>`跳转到第一页`,Ai=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wi(e):n===`ja-JP`?Ti(e):n===`ko-KR`?Ei(e):n===`ru-RU`?Di(e):n===`zh-TW`?Oi(e):ki(e)}),ji=()=>`Go to previous page`,Mi=()=>`Go to previous page`,Ni=()=>`Go to previous page`,Pi=()=>`Go to previous page`,Fi=()=>`跳轉到上一頁`,Ii=()=>`跳转到上一页`,Li=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ji(e):n===`ja-JP`?Mi(e):n===`ko-KR`?Ni(e):n===`ru-RU`?Pi(e):n===`zh-TW`?Fi(e):Ii(e)}),Ri=e=>`Go to page ${e?.page}`,zi=e=>`Go to page ${e?.page}`,Bi=e=>`Go to page ${e?.page}`,Vi=e=>`Go to page ${e?.page}`,Hi=e=>`跳轉到第 ${e?.page} 頁`,Ui=e=>`跳转到第 ${e?.page} 页`,Wi=((e,t={})=>{let n=t.locale??m();return n===`en-US`?Ri(e):n===`ja-JP`?zi(e):n===`ko-KR`?Bi(e):n===`ru-RU`?Vi(e):n===`zh-TW`?Hi(e):Ui(e)}),Gi=()=>`Go to next page`,Ki=()=>`Go to next page`,qi=()=>`Go to next page`,Ji=()=>`Go to next page`,Yi=()=>`跳轉到下一頁`,Xi=()=>`跳转到下一页`,Zi=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Gi(e):n===`ja-JP`?Ki(e):n===`ko-KR`?qi(e):n===`ru-RU`?Ji(e):n===`zh-TW`?Yi(e):Xi(e)}),Qi=()=>`Go to last page`,$i=()=>`Go to last page`,ea=()=>`Go to last page`,ta=()=>`Go to last page`,na=()=>`跳轉到最後一頁`,ra=()=>`跳转到最后一页`,ia=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Qi(e):n===`ja-JP`?$i(e):n===`ko-KR`?ea(e):n===`ru-RU`?ta(e):n===`zh-TW`?na(e):ra(e)}),aa=()=>`Filter...`,oa=()=>`Filter...`,sa=()=>`Filter...`,ca=()=>`Filter...`,la=()=>`篩選...`,ua=()=>`筛选...`,da=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?aa(e):n===`ja-JP`?oa(e):n===`ko-KR`?sa(e):n===`ru-RU`?ca(e):n===`zh-TW`?la(e):ua(e)}),fa=()=>`Reset`,pa=()=>`Reset`,ma=()=>`Reset`,ha=()=>`Reset`,ga=()=>`重置`,_a=()=>`重置`,va=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fa(e):n===`ja-JP`?pa(e):n===`ko-KR`?ma(e):n===`ru-RU`?ha(e):n===`zh-TW`?ga(e):_a(e)}),ya=()=>`Refresh`,ba=()=>`Refresh`,xa=()=>`Refresh`,Sa=()=>`Refresh`,Ca=()=>`重新整理`,wa=()=>`刷新`,Ta=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ya(e):n===`ja-JP`?ba(e):n===`ko-KR`?xa(e):n===`ru-RU`?Sa(e):n===`zh-TW`?Ca(e):wa(e)}),Ea=()=>`View`,Da=()=>`View`,Oa=()=>`View`,ka=()=>`View`,Aa=()=>`檢視`,ja=()=>`查看`,Ma=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ea(e):n===`ja-JP`?Da(e):n===`ko-KR`?Oa(e):n===`ru-RU`?ka(e):n===`zh-TW`?Aa(e):ja(e)}),Na=()=>`Toggle columns`,Pa=()=>`Toggle columns`,Fa=()=>`Toggle columns`,Ia=()=>`Toggle columns`,La=()=>`切換列`,Ra=()=>`切换列`,za=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Na(e):n===`ja-JP`?Pa(e):n===`ko-KR`?Fa(e):n===`ru-RU`?Ia(e):n===`zh-TW`?La(e):Ra(e)}),Ba=()=>`Select date range`,Va=()=>`Select date range`,Ha=()=>`Select date range`,Ua=()=>`Select date range`,Wa=()=>`選擇時間範圍`,Ga=()=>`选择时间范围`,Ka=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ba(e):n===`ja-JP`?Va(e):n===`ko-KR`?Ha(e):n===`ru-RU`?Ua(e):n===`zh-TW`?Wa(e):Ga(e)}),qa=()=>`Today`,Ja=()=>`Today`,Ya=()=>`Today`,Xa=()=>`Today`,Za=()=>`今天`,Qa=()=>`今天`,$a=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qa(e):n===`ja-JP`?Ja(e):n===`ko-KR`?Ya(e):n===`ru-RU`?Xa(e):n===`zh-TW`?Za(e):Qa(e)}),eo=()=>`Yesterday`,to=()=>`Yesterday`,no=()=>`Yesterday`,ro=()=>`Yesterday`,io=()=>`昨天`,ao=()=>`昨天`,oo=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?eo(e):n===`ja-JP`?to(e):n===`ko-KR`?no(e):n===`ru-RU`?ro(e):n===`zh-TW`?io(e):ao(e)}),so=()=>`Last 7 days`,co=()=>`Last 7 days`,lo=()=>`Last 7 days`,uo=()=>`Last 7 days`,fo=()=>`最近 7 天`,po=()=>`最近 7 天`,mo=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?so(e):n===`ja-JP`?co(e):n===`ko-KR`?lo(e):n===`ru-RU`?uo(e):n===`zh-TW`?fo(e):po(e)}),ho=()=>`Last 30 days`,go=()=>`Last 30 days`,_o=()=>`Last 30 days`,vo=()=>`Last 30 days`,yo=()=>`最近 30 天`,bo=()=>`最近 30 天`,xo=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ho(e):n===`ja-JP`?go(e):n===`ko-KR`?_o(e):n===`ru-RU`?vo(e):n===`zh-TW`?yo(e):bo(e)}),So=()=>`This month`,Co=()=>`This month`,wo=()=>`This month`,To=()=>`This month`,Eo=()=>`本月`,Do=()=>`本月`,Oo=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?So(e):n===`ja-JP`?Co(e):n===`ko-KR`?wo(e):n===`ru-RU`?To(e):n===`zh-TW`?Eo(e):Do(e)}),ko=()=>`Last month`,Ao=()=>`Last month`,jo=()=>`Last month`,Mo=()=>`Last month`,No=()=>`上月`,Po=()=>`上月`,Fo=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ko(e):n===`ja-JP`?Ao(e):n===`ko-KR`?jo(e):n===`ru-RU`?Mo(e):n===`zh-TW`?No(e):Po(e)}),Io=()=>`Overview`,Lo=()=>`Overview`,Ro=()=>`Overview`,zo=()=>`Overview`,Bo=()=>`概覽`,Vo=()=>`概览`,Ho=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Io(e):n===`ja-JP`?Lo(e):n===`ko-KR`?Ro(e):n===`ru-RU`?zo(e):n===`zh-TW`?Bo(e):Vo(e)}),Uo=()=>`Dashboard`,Wo=()=>`Dashboard`,Go=()=>`Dashboard`,Ko=()=>`Dashboard`,qo=()=>`儀表盤`,Jo=()=>`仪表盘`,Yo=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Uo(e):n===`ja-JP`?Wo(e):n===`ko-KR`?Go(e):n===`ru-RU`?Ko(e):n===`zh-TW`?qo(e):Jo(e)}),Xo=()=>`Orders`,Zo=()=>`Orders`,Qo=()=>`Orders`,$o=()=>`Orders`,es=()=>`訂單管理`,ts=()=>`订单管理`,ns=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Xo(e):n===`ja-JP`?Zo(e):n===`ko-KR`?Qo(e):n===`ru-RU`?$o(e):n===`zh-TW`?es(e):ts(e)}),rs=()=>`Payments`,is=()=>`Payments`,as=()=>`Payments`,os=()=>`Payments`,ss=()=>`支付管理`,cs=()=>`支付管理`,ls=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rs(e):n===`ja-JP`?is(e):n===`ko-KR`?as(e):n===`ru-RU`?os(e):n===`zh-TW`?ss(e):cs(e)}),us=()=>`Blockchain`,ds=()=>`Blockchain`,fs=()=>`Blockchain`,ps=()=>`Blockchain`,ms=()=>`區塊鏈`,hs=()=>`区块链`,gs=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?us(e):n===`ja-JP`?ds(e):n===`ko-KR`?fs(e):n===`ru-RU`?ps(e):n===`zh-TW`?ms(e):hs(e)}),_s=()=>`Chains & Tokens`,vs=()=>`Chains & Tokens`,ys=()=>`Chains & Tokens`,bs=()=>`Chains & Tokens`,xs=()=>`鏈與代幣`,Ss=()=>`链与代币`,Cs=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_s(e):n===`ja-JP`?vs(e):n===`ko-KR`?ys(e):n===`ru-RU`?bs(e):n===`zh-TW`?xs(e):Ss(e)}),ws=()=>`RPC Nodes`,Ts=()=>`RPC Nodes`,Es=()=>`RPC Nodes`,Ds=()=>`RPC Nodes`,Os=()=>`RPC 節點`,ks=()=>`RPC 节点`,As=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ws(e):n===`ja-JP`?Ts(e):n===`ko-KR`?Es(e):n===`ru-RU`?Ds(e):n===`zh-TW`?Os(e):ks(e)}),js=()=>`System`,Ms=()=>`System`,Ns=()=>`System`,Ps=()=>`System`,Fs=()=>`系統`,Is=()=>`系统`,Ls=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?js(e):n===`ja-JP`?Ms(e):n===`ko-KR`?Ns(e):n===`ru-RU`?Ps(e):n===`zh-TW`?Fs(e):Is(e)}),Rs=()=>`Settings`,zs=()=>`Settings`,Bs=()=>`Settings`,Vs=()=>`Settings`,Hs=()=>`系統配置`,Us=()=>`系统配置`,Ws=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Rs(e):n===`ja-JP`?zs(e):n===`ko-KR`?Bs(e):n===`ru-RU`?Vs(e):n===`zh-TW`?Hs(e):Us(e)}),Gs=()=>`Account Security`,Ks=()=>`Account Security`,qs=()=>`Account Security`,Js=()=>`Account Security`,Ys=()=>`賬戶安全`,Xs=()=>`账户安全`,Zs=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Gs(e):n===`ja-JP`?Ks(e):n===`ko-KR`?qs(e):n===`ru-RU`?Js(e):n===`zh-TW`?Ys(e):Xs(e)}),Qs=()=>`Manage your account security settings.`,$s=()=>`Manage your account security settings.`,ec=()=>`Manage your account security settings.`,tc=()=>`Manage your account security settings.`,nc=()=>`管理你的賬戶安全設定。`,rc=()=>`管理你的账户安全设置。`,ic=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Qs(e):n===`ja-JP`?$s(e):n===`ko-KR`?ec(e):n===`ru-RU`?tc(e):n===`zh-TW`?nc(e):rc(e)}),ac=()=>`Change Password`,oc=()=>`Change Password`,sc=()=>`Change Password`,cc=()=>`Change Password`,lc=()=>`修改密碼`,uc=()=>`修改密码`,dc=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ac(e):n===`ja-JP`?oc(e):n===`ko-KR`?sc(e):n===`ru-RU`?cc(e):n===`zh-TW`?lc(e):uc(e)}),fc=()=>`Change Password`,pc=()=>`Change Password`,mc=()=>`Change Password`,hc=()=>`Change Password`,gc=()=>`修改密碼`,_c=()=>`修改密码`,vc=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fc(e):n===`ja-JP`?pc(e):n===`ko-KR`?mc(e):n===`ru-RU`?hc(e):n===`zh-TW`?gc(e):_c(e)}),yc=()=>`Update your login password.`,bc=()=>`Update your login password.`,xc=()=>`Update your login password.`,Sc=()=>`Update your login password.`,Cc=()=>`更新你的登入密碼。`,wc=()=>`更新你的登录密码。`,Tc=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yc(e):n===`ja-JP`?bc(e):n===`ko-KR`?xc(e):n===`ru-RU`?Sc(e):n===`zh-TW`?Cc(e):wc(e)}),Ec=()=>`General`,Dc=()=>`General`,Oc=()=>`General`,kc=()=>`General`,Ac=()=>`基礎配置`,jc=()=>`基础配置`,Mc=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ec(e):n===`ja-JP`?Dc(e):n===`ko-KR`?Oc(e):n===`ru-RU`?kc(e):n===`zh-TW`?Ac(e):jc(e)}),Nc=()=>`Telegram`,Pc=()=>`Telegram`,Fc=()=>`Telegram`,Ic=()=>`Telegram`,Lc=()=>`Telegram 配置`,Rc=()=>`Telegram 配置`,zc=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Nc(e):n===`ja-JP`?Pc(e):n===`ko-KR`?Fc(e):n===`ru-RU`?Ic(e):n===`zh-TW`?Lc(e):Rc(e)}),Bc=()=>`Payment Config`,Vc=()=>`Payment Config`,Hc=()=>`Payment Config`,Uc=()=>`Payment Config`,Wc=()=>`支付配置`,Gc=()=>`支付配置`,Kc=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Bc(e):n===`ja-JP`?Vc(e):n===`ko-KR`?Hc(e):n===`ru-RU`?Uc(e):n===`zh-TW`?Wc(e):Gc(e)}),qc=()=>`EPay Config`,Jc=()=>`EPay Config`,Yc=()=>`EPay Config`,Xc=()=>`EPay Config`,Zc=()=>`EPay 配置`,Qc=()=>`EPay 配置`,$c=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qc(e):n===`ja-JP`?Jc(e):n===`ko-KR`?Yc(e):n===`ru-RU`?Xc(e):n===`zh-TW`?Zc(e):Qc(e)}),el=()=>`Default Token`,tl=()=>`Default Token`,nl=()=>`Default Token`,rl=()=>`Default Token`,il=()=>`預設代幣`,al=()=>`默认代币`,ol=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?el(e):n===`ja-JP`?tl(e):n===`ko-KR`?nl(e):n===`ru-RU`?rl(e):n===`zh-TW`?il(e):al(e)}),sl=()=>`Default Currency`,cl=()=>`Default Currency`,ll=()=>`Default Currency`,ul=()=>`Default Currency`,dl=()=>`預設法幣`,fl=()=>`默认法币`,pl=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sl(e):n===`ja-JP`?cl(e):n===`ko-KR`?ll(e):n===`ru-RU`?ul(e):n===`zh-TW`?dl(e):fl(e)}),ml=()=>`Default Network`,hl=()=>`Default Network`,gl=()=>`Default Network`,_l=()=>`Default Network`,vl=()=>`預設網路`,yl=()=>`默认网络`,bl=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ml(e):n===`ja-JP`?hl(e):n===`ko-KR`?gl(e):n===`ru-RU`?_l(e):n===`zh-TW`?vl(e):yl(e)}),xl=()=>`Empty config`,Sl=()=>`Empty config`,Cl=()=>`Empty config`,wl=()=>`Empty config`,Tl=()=>`空配置`,El=()=>`空配置`,Dl=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xl(e):n===`ja-JP`?Sl(e):n===`ko-KR`?Cl(e):n===`ru-RU`?wl(e):n===`zh-TW`?Tl(e):El(e)}),Ol=()=>`Please enter a default currency`,kl=()=>`Please enter a default currency`,Al=()=>`Please enter a default currency`,jl=()=>`Please enter a default currency`,Ml=()=>`請輸入預設法幣`,Nl=()=>`请输入默认法币`,Pl=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ol(e):n===`ja-JP`?kl(e):n===`ko-KR`?Al(e):n===`ru-RU`?jl(e):n===`zh-TW`?Ml(e):Nl(e)}),Fl=()=>`system error`,Il=()=>`system error`,Ll=()=>`system error`,Rl=()=>`system error`,zl=()=>`系統錯誤`,Bl=()=>`系统错误`,Vl=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Fl(e):n===`ja-JP`?Il(e):n===`ko-KR`?Ll(e):n===`ru-RU`?Rl(e):n===`zh-TW`?zl(e):Bl(e)}),Hl=()=>`signature verification failed`,Ul=()=>`signature verification failed`,Wl=()=>`signature verification failed`,Gl=()=>`signature verification failed`,Kl=()=>`簽名驗證失敗`,ql=()=>`签名验证失败`,Jl=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hl(e):n===`ja-JP`?Ul(e):n===`ko-KR`?Wl(e):n===`ru-RU`?Gl(e):n===`zh-TW`?Kl(e):ql(e)}),Yl=()=>`Wallet address already exists`,Xl=()=>`Wallet address already exists`,Zl=()=>`Wallet address already exists`,Ql=()=>`Wallet address already exists`,$l=()=>`錢包地址已存在`,eu=()=>`钱包地址已存在`,tu=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yl(e):n===`ja-JP`?Xl(e):n===`ko-KR`?Zl(e):n===`ru-RU`?Ql(e):n===`zh-TW`?$l(e):eu(e)}),nu=()=>`Order already exists`,ru=()=>`Order already exists`,iu=()=>`Order already exists`,au=()=>`Order already exists`,ou=()=>`訂單已存在`,su=()=>`订单已存在`,cu=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nu(e):n===`ja-JP`?ru(e):n===`ko-KR`?iu(e):n===`ru-RU`?au(e):n===`zh-TW`?ou(e):su(e)}),lu=()=>`No available wallet address`,uu=()=>`No available wallet address`,du=()=>`No available wallet address`,fu=()=>`No available wallet address`,pu=()=>`無可用錢包地址`,mu=()=>`无可用钱包地址`,hu=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lu(e):n===`ja-JP`?uu(e):n===`ko-KR`?du(e):n===`ru-RU`?fu(e):n===`zh-TW`?pu(e):mu(e)}),gu=()=>`Invalid payment amount`,_u=()=>`Invalid payment amount`,vu=()=>`Invalid payment amount`,yu=()=>`Invalid payment amount`,bu=()=>`無效支付金額`,xu=()=>`无效支付金额`,Su=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gu(e):n===`ja-JP`?_u(e):n===`ko-KR`?vu(e):n===`ru-RU`?yu(e):n===`zh-TW`?bu(e):xu(e)}),Cu=()=>`No available amount channel`,wu=()=>`No available amount channel`,Tu=()=>`No available amount channel`,Eu=()=>`No available amount channel`,Du=()=>`無可用金額通道`,Ou=()=>`无可用金额通道`,ku=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Cu(e):n===`ja-JP`?wu(e):n===`ko-KR`?Tu(e):n===`ru-RU`?Eu(e):n===`zh-TW`?Du(e):Ou(e)}),Au=()=>`Rate calculation failed`,ju=()=>`rate calculation failed`,Mu=()=>`rate calculation failed`,Nu=()=>`rate calculation failed`,Pu=()=>`匯率計算失敗`,Fu=()=>`汇率计算失败`,Iu=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Au(e):n===`ja-JP`?ju(e):n===`ko-KR`?Mu(e):n===`ru-RU`?Nu(e):n===`zh-TW`?Pu(e):Fu(e)}),Lu=()=>`Block transaction already processed`,Ru=()=>`Block transaction already processed`,zu=()=>`Block transaction already processed`,Bu=()=>`Block transaction already processed`,Vu=()=>`區塊交易已處理`,Hu=()=>`区块交易已处理`,Uu=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Lu(e):n===`ja-JP`?Ru(e):n===`ko-KR`?zu(e):n===`ru-RU`?Bu(e):n===`zh-TW`?Vu(e):Hu(e)}),Wu=()=>`Order does not exist`,Gu=()=>`order does not exist`,Ku=()=>`order does not exist`,qu=()=>`order does not exist`,Ju=()=>`訂單不存在`,Yu=()=>`订单不存在`,Xu=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Wu(e):n===`ja-JP`?Gu(e):n===`ko-KR`?Ku(e):n===`ru-RU`?qu(e):n===`zh-TW`?Ju(e):Yu(e)}),Zu=()=>`Failed to parse request params`,Qu=()=>`failed to parse request params`,$u=()=>`failed to parse request params`,ed=()=>`failed to parse request params`,td=()=>`請求引數解析失敗`,nd=()=>`请求参数解析失败`,rd=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Zu(e):n===`ja-JP`?Qu(e):n===`ko-KR`?$u(e):n===`ru-RU`?ed(e):n===`zh-TW`?td(e):nd(e)}),id=()=>`Order status already changed`,ad=()=>`order status already changed`,od=()=>`order status already changed`,sd=()=>`order status already changed`,cd=()=>`訂單狀態已變更`,ld=()=>`订单状态已变更`,ud=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?id(e):n===`ja-JP`?ad(e):n===`ko-KR`?od(e):n===`ru-RU`?sd(e):n===`zh-TW`?cd(e):ld(e)}),dd=()=>`Exceeded maximum sub-order limit`,fd=()=>`exceeded maximum sub-order limit`,pd=()=>`exceeded maximum sub-order limit`,md=()=>`exceeded maximum sub-order limit`,hd=()=>`超過最大子訂單數量限制`,gd=()=>`超过最大子订单数量限制`,_d=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dd(e):n===`ja-JP`?fd(e):n===`ko-KR`?pd(e):n===`ru-RU`?md(e):n===`zh-TW`?hd(e):gd(e)}),vd=()=>`Cannot switch network for sub-order`,yd=()=>`Cannot switch network for sub-order`,bd=()=>`Cannot switch network for sub-order`,xd=()=>`Cannot switch network for sub-order`,Sd=()=>`不能對子訂單切換網路`,Cd=()=>`不能对子订单切换网络`,wd=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vd(e):n===`ja-JP`?yd(e):n===`ko-KR`?bd(e):n===`ru-RU`?xd(e):n===`zh-TW`?Sd(e):Cd(e)}),Td=()=>`Order is not awaiting payment`,Ed=()=>`order is not awaiting payment`,Dd=()=>`order is not awaiting payment`,Od=()=>`order is not awaiting payment`,kd=()=>`訂單不是待支付狀態`,Ad=()=>`订单不是待支付状态`,jd=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Td(e):n===`ja-JP`?Ed(e):n===`ko-KR`?Dd(e):n===`ru-RU`?Od(e):n===`zh-TW`?kd(e):Ad(e)}),Md=()=>`Chain is not enabled`,Nd=()=>`chain is not enabled`,Pd=()=>`chain is not enabled`,Fd=()=>`chain is not enabled`,Id=()=>`鏈未啟用`,Ld=()=>`链未启用`,Rd=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Md(e):n===`ja-JP`?Nd(e):n===`ko-KR`?Pd(e):n===`ru-RU`?Fd(e):n===`zh-TW`?Id(e):Ld(e)}),zd=()=>`Supported asset already exists`,Bd=()=>`Supported asset already exists`,Vd=()=>`Supported asset already exists`,Hd=()=>`Supported asset already exists`,Ud=()=>`支援的資產已存在`,Wd=()=>`支持的资产已存在`,Gd=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zd(e):n===`ja-JP`?Bd(e):n===`ko-KR`?Vd(e):n===`ru-RU`?Hd(e):n===`zh-TW`?Ud(e):Wd(e)}),Kd=()=>`Supported asset not found`,qd=()=>`supported asset not found`,Jd=()=>`supported asset not found`,Yd=()=>`supported asset not found`,Xd=()=>`未找到支援的資產`,Zd=()=>`未找到支持的资产`,Qd=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Kd(e):n===`ja-JP`?qd(e):n===`ko-KR`?Jd(e):n===`ru-RU`?Yd(e):n===`zh-TW`?Xd(e):Zd(e)}),$d=()=>`Payment provider is not enabled`,ef=()=>`payment provider is not enabled`,tf=()=>`payment provider is not enabled`,nf=()=>`payment provider is not enabled`,rf=()=>`支付服務商未啟用`,af=()=>`支付服务商未启用`,of=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$d(e):n===`ja-JP`?ef(e):n===`ko-KR`?tf(e):n===`ru-RU`?nf(e):n===`zh-TW`?rf(e):af(e)}),sf=()=>`Payment provider configuration is incomplete`,cf=()=>`payment provider configuration is incomplete`,lf=()=>`payment provider configuration is incomplete`,uf=()=>`payment provider configuration is incomplete`,df=()=>`支付服務商配置不完整`,ff=()=>`支付服务商配置不完整`,pf=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sf(e):n===`ja-JP`?cf(e):n===`ko-KR`?lf(e):n===`ru-RU`?uf(e):n===`zh-TW`?df(e):ff(e)}),mf=()=>`Payment provider does not support this token or network`,hf=()=>`payment provider does not support this token or network`,gf=()=>`payment provider does not support this token or network`,_f=()=>`payment provider does not support this token or network`,vf=()=>`支付服務商不支援該代幣或網路`,yf=()=>`支付服务商不支持该代币或网络`,bf=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mf(e):n===`ja-JP`?hf(e):n===`ko-KR`?gf(e):n===`ru-RU`?_f(e):n===`zh-TW`?vf(e):yf(e)}),xf=()=>`Invalid RPC node purpose`,Sf=()=>`invalid rpc node purpose`,Cf=()=>`invalid rpc node purpose`,wf=()=>`invalid rpc node purpose`,Tf=()=>`無效的 RPC 節點用途`,Ef=()=>`无效的 RPC 节点用途`,Df=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xf(e):n===`ja-JP`?Sf(e):n===`ko-KR`?Cf(e):n===`ru-RU`?wf(e):n===`zh-TW`?Tf(e):Ef(e)}),Of=()=>`Invalid RPC node URL`,kf=()=>`invalid rpc node url`,Af=()=>`invalid rpc node url`,jf=()=>`invalid rpc node url`,Mf=()=>`無效的 RPC 節點 URL`,Nf=()=>`无效的 RPC 节点 URL`,Pf=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Of(e):n===`ja-JP`?kf(e):n===`ko-KR`?Af(e):n===`ru-RU`?jf(e):n===`zh-TW`?Mf(e):Nf(e)}),Ff=()=>`RPC node HTTP URL required`,If=()=>`rpc node http url required`,Lf=()=>`rpc node http url required`,Rf=()=>`rpc node http url required`,zf=()=>`RPC 節點需要 HTTP URL`,Bf=()=>`RPC 节点需要 HTTP URL`,Vf=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ff(e):n===`ja-JP`?If(e):n===`ko-KR`?Lf(e):n===`ru-RU`?Rf(e):n===`zh-TW`?zf(e):Bf(e)}),Hf=()=>`RPC node WebSocket URL required`,Uf=()=>`rpc node websocket url required`,Wf=()=>`rpc node websocket url required`,Gf=()=>`rpc node websocket url required`,Kf=()=>`RPC 節點需要 WebSocket URL`,qf=()=>`RPC 节点需要 WebSocket URL`,Jf=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hf(e):n===`ja-JP`?Uf(e):n===`ko-KR`?Wf(e):n===`ru-RU`?Gf(e):n===`zh-TW`?Kf(e):qf(e)}),Yf=()=>`Invalid RPC node type`,Xf=()=>`invalid rpc node type`,Zf=()=>`invalid rpc node type`,Qf=()=>`invalid rpc node type`,$f=()=>`無效的 RPC 節點類型`,ep=()=>`无效的 RPC 节点类型`,tp=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yf(e):n===`ja-JP`?Xf(e):n===`ko-KR`?Zf(e):n===`ru-RU`?Qf(e):n===`zh-TW`?$f(e):ep(e)}),np=()=>`Invalid username or password`,rp=()=>`invalid username or password`,ip=()=>`invalid username or password`,ap=()=>`invalid username or password`,op=()=>`使用者名稱或密碼錯誤`,sp=()=>`用户名或密码错误`,cp=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?np(e):n===`ja-JP`?rp(e):n===`ko-KR`?ip(e):n===`ru-RU`?ap(e):n===`zh-TW`?op(e):sp(e)}),lp=()=>`Admin user disabled`,up=()=>`admin user disabled`,dp=()=>`admin user disabled`,fp=()=>`admin user disabled`,pp=()=>`管理員使用者已停用`,mp=()=>`管理员用户已禁用`,hp=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lp(e):n===`ja-JP`?up(e):n===`ko-KR`?dp(e):n===`ru-RU`?fp(e):n===`zh-TW`?pp(e):mp(e)}),gp=()=>`Admin unauthorized`,_p=()=>`admin unauthorized`,vp=()=>`admin unauthorized`,yp=()=>`admin unauthorized`,bp=()=>`管理員未授權`,xp=()=>`管理员未授权`,Sp=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gp(e):n===`ja-JP`?_p(e):n===`ko-KR`?vp(e):n===`ru-RU`?yp(e):n===`zh-TW`?bp(e):xp(e)}),Cp=()=>`Admin user not found`,wp=()=>`admin user not found`,Tp=()=>`admin user not found`,Ep=()=>`admin user not found`,Dp=()=>`管理員使用者不存在`,Op=()=>`管理员用户不存在`,kp=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Cp(e):n===`ja-JP`?wp(e):n===`ko-KR`?Tp(e):n===`ru-RU`?Ep(e):n===`zh-TW`?Dp(e):Op(e)}),Ap=()=>`Old password incorrect`,jp=()=>`old password incorrect`,Mp=()=>`old password incorrect`,Np=()=>`old password incorrect`,Pp=()=>`舊密碼錯誤`,Fp=()=>`旧密码错误`,Ip=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ap(e):n===`ja-JP`?jp(e):n===`ko-KR`?Mp(e):n===`ru-RU`?Np(e):n===`zh-TW`?Pp(e):Fp(e)}),Lp=()=>`Wallet not found`,Rp=()=>`wallet not found`,zp=()=>`wallet not found`,Bp=()=>`wallet not found`,Vp=()=>`錢包不存在`,Hp=()=>`钱包不存在`,Up=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Lp(e):n===`ja-JP`?Rp(e):n===`ko-KR`?zp(e):n===`ru-RU`?Bp(e):n===`zh-TW`?Vp(e):Hp(e)}),Wp=()=>`API key not found`,Gp=()=>`api key not found`,Kp=()=>`api key not found`,qp=()=>`api key not found`,Jp=()=>`API Key 不存在`,Yp=()=>`API Key 不存在`,Xp=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Wp(e):n===`ja-JP`?Gp(e):n===`ko-KR`?Kp(e):n===`ru-RU`?qp(e):n===`zh-TW`?Jp(e):Yp(e)}),Zp=()=>`RPC node not found`,Qp=()=>`rpc node not found`,$p=()=>`rpc node not found`,em=()=>`rpc node not found`,tm=()=>`RPC 節點不存在`,nm=()=>`RPC 节点不存在`,rm=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Zp(e):n===`ja-JP`?Qp(e):n===`ko-KR`?$p(e):n===`ru-RU`?em(e):n===`zh-TW`?tm(e):nm(e)}),im=()=>`Order callback not applicable`,am=()=>`order callback not applicable`,om=()=>`order callback not applicable`,sm=()=>`order callback not applicable`,cm=()=>`該訂單不適用回調`,lm=()=>`该订单不适用回调`,um=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?im(e):n===`ja-JP`?am(e):n===`ko-KR`?om(e):n===`ru-RU`?sm(e):n===`zh-TW`?cm(e):lm(e)}),dm=()=>`Order notify URL empty`,fm=()=>`order notify url empty`,pm=()=>`order notify url empty`,mm=()=>`order notify url empty`,hm=()=>`訂單通知地址為空`,gm=()=>`订单通知地址为空`,_m=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dm(e):n===`ja-JP`?fm(e):n===`ko-KR`?pm(e):n===`ru-RU`?mm(e):n===`zh-TW`?hm(e):gm(e)}),vm=()=>`Resend callback failed`,ym=()=>`resend callback failed`,bm=()=>`resend callback failed`,xm=()=>`resend callback failed`,Sm=()=>`重發回調失敗`,Cm=()=>`重发回调失败`,wm=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vm(e):n===`ja-JP`?ym(e):n===`ko-KR`?bm(e):n===`ru-RU`?xm(e):n===`zh-TW`?Sm(e):Cm(e)}),Tm=()=>`Invalid notification config`,Em=()=>`invalid notification config`,Dm=()=>`invalid notification config`,Om=()=>`invalid notification config`,km=()=>`無效的通知配置`,Am=()=>`无效的通知配置`,jm=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Tm(e):n===`ja-JP`?Em(e):n===`ko-KR`?Dm(e):n===`ru-RU`?Om(e):n===`zh-TW`?km(e):Am(e)}),Mm=()=>`Invalid notification events`,Nm=()=>`invalid notification events`,Pm=()=>`invalid notification events`,Fm=()=>`invalid notification events`,Im=()=>`無效的通知事件`,Lm=()=>`无效的通知事件`,Rm=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Mm(e):n===`ja-JP`?Nm(e):n===`ko-KR`?Pm(e):n===`ru-RU`?Fm(e):n===`zh-TW`?Im(e):Lm(e)}),zm=()=>`Manual payment verification failed`,Bm=()=>`manual payment verification failed`,Vm=()=>`manual payment verification failed`,Hm=()=>`manual payment verification failed`,Um=()=>`手動支付校驗失敗`,Wm=()=>`手动支付校验失败`,Gm=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zm(e):n===`ja-JP`?Bm(e):n===`ko-KR`?Vm(e):n===`ru-RU`?Hm(e):n===`zh-TW`?Um(e):Wm(e)}),Km=()=>`Manual payment only supports on-chain orders`,qm=()=>`manual payment only supports on-chain orders`,Jm=()=>`manual payment only supports on-chain orders`,Ym=()=>`manual payment only supports on-chain orders`,Xm=()=>`手動支付僅支援鏈上訂單`,Zm=()=>`手动支付仅支持链上订单`,Qm=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Km(e):n===`ja-JP`?qm(e):n===`ko-KR`?Jm(e):n===`ru-RU`?Ym(e):n===`zh-TW`?Xm(e):Zm(e)}),$m=()=>`Initial admin password unavailable, check from logs`,eh=()=>`initial admin password unavailable, check from logs`,th=()=>`initial admin password unavailable, check from logs`,nh=()=>`initial admin password unavailable, check from logs`,rh=()=>`無法取得初始管理員密碼,請查看日誌`,ih=()=>`无法获取初始管理员密码,请查看日志`,ah=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$m(e):n===`ja-JP`?eh(e):n===`ko-KR`?th(e):n===`ru-RU`?nh(e):n===`zh-TW`?rh(e):ih(e)}),oh=()=>`Invalid notify URL`,sh=()=>`invalid notify url`,ch=()=>`invalid notify url`,lh=()=>`invalid notify url`,uh=()=>`無效通知地址`,dh=()=>`无效通知地址`,fh=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?oh(e):n===`ja-JP`?sh(e):n===`ko-KR`?ch(e):n===`ru-RU`?lh(e):n===`zh-TW`?uh(e):dh(e)}),ph=()=>`Payment provider order creation failed`,mh=()=>`payment provider order creation failed`,hh=()=>`payment provider order creation failed`,gh=()=>`payment provider order creation failed`,_h=()=>`支付服務商訂單建立失敗`,vh=()=>`支付服务商订单创建失败`,yh=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ph(e):n===`ja-JP`?mh(e):n===`ko-KR`?hh(e):n===`ru-RU`?gh(e):n===`zh-TW`?_h(e):vh(e)}),bh=()=>`Invalid setting item`,xh=()=>`invalid setting item`,Sh=()=>`invalid setting item`,Ch=()=>`invalid setting item`,wh=()=>`無效配置項`,Th=()=>`无效配置项`,Eh=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bh(e):n===`ja-JP`?xh(e):n===`ko-KR`?Sh(e):n===`ru-RU`?Ch(e):n===`zh-TW`?wh(e):Th(e)}),Dh=()=>`Invalid order redirect URL`,Oh=()=>`invalid order redirect url`,kh=()=>`invalid order redirect url`,Ah=()=>`invalid order redirect url`,jh=()=>`無效訂單跳轉地址`,Mh=()=>`无效订单跳转地址`,Nh=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Dh(e):n===`ja-JP`?Oh(e):n===`ko-KR`?kh(e):n===`ru-RU`?Ah(e):n===`zh-TW`?jh(e):Mh(e)}),Ph=()=>`Order API key unavailable`,Fh=()=>`order api key unavailable`,Ih=()=>`order api key unavailable`,Lh=()=>`order api key unavailable`,Rh=()=>`訂單 API Key 不可用`,zh=()=>`订单 API Key 不可用`,Bh=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ph(e):n===`ja-JP`?Fh(e):n===`ko-KR`?Ih(e):n===`ru-RU`?Lh(e):n===`zh-TW`?Rh(e):zh(e)}),Vh=()=>`Failed to build EPay return signature`,Hh=()=>`failed to build epay return signature`,Uh=()=>`failed to build epay return signature`,Wh=()=>`failed to build epay return signature`,Gh=()=>`產生 EPay 返回簽名失敗`,Kh=()=>`生成 EPay 返回签名失败`,qh=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Vh(e):n===`ja-JP`?Hh(e):n===`ko-KR`?Uh(e):n===`ru-RU`?Wh(e):n===`zh-TW`?Gh(e):Kh(e)}),Jh=()=>`Request failed`,Yh=()=>`Request failed`,Xh=()=>`Request failed`,Zh=()=>`Request failed`,Qh=()=>`請求失敗`,$h=()=>`请求失败`,eg=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Jh(e):n===`ja-JP`?Yh(e):n===`ko-KR`?Xh(e):n===`ru-RU`?Zh(e):n===`zh-TW`?Qh(e):$h(e)}),tg=()=>`Server error, please try again later`,ng=()=>`Server error, please try again later`,rg=()=>`Server error, please try again later`,ig=()=>`Server error, please try again later`,ag=()=>`伺服器錯誤,請稍後重試`,og=()=>`服务器错误,请稍后重试`,sg=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tg(e):n===`ja-JP`?ng(e):n===`ko-KR`?rg(e):n===`ru-RU`?ig(e):n===`zh-TW`?ag(e):og(e)}),cg=()=>`Oops! Something went wrong :')`,lg=()=>`Oops! Something went wrong :')`,ug=()=>`Oops! Something went wrong :')`,dg=()=>`Oops! Something went wrong :')`,fg=()=>`出錯了 :')`,pg=()=>`出错了 :')`,mg=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cg(e):n===`ja-JP`?lg(e):n===`ko-KR`?ug(e):n===`ru-RU`?dg(e):n===`zh-TW`?fg(e):pg(e)}),hg=()=>`We apologize for the inconvenience. Please try again later.`,gg=()=>`We apologize for the inconvenience. Please try again later.`,_g=()=>`We apologize for the inconvenience. Please try again later.`,vg=()=>`We apologize for the inconvenience. Please try again later.`,yg=()=>`抱歉給您帶來不便,請稍後重試。`,bg=()=>`抱歉给您带来不便,请稍后重试。`,xg=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hg(e):n===`ja-JP`?gg(e):n===`ko-KR`?_g(e):n===`ru-RU`?vg(e):n===`zh-TW`?yg(e):bg(e)}),Sg=()=>`Go Back`,Cg=()=>`Go Back`,wg=()=>`Go Back`,Tg=()=>`Go Back`,Eg=()=>`返回`,Dg=()=>`返回`,Og=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Sg(e):n===`ja-JP`?Cg(e):n===`ko-KR`?wg(e):n===`ru-RU`?Tg(e):n===`zh-TW`?Eg(e):Dg(e)}),kg=()=>`Back to Home`,Ag=()=>`Back to Home`,jg=()=>`Back to Home`,Mg=()=>`Back to Home`,Ng=()=>`回到首頁`,Pg=()=>`回到首页`,Fg=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kg(e):n===`ja-JP`?Ag(e):n===`ko-KR`?jg(e):n===`ru-RU`?Mg(e):n===`zh-TW`?Ng(e):Pg(e)}),Ig=()=>`Oops! Page Not Found!`,Lg=()=>`Oops! Page Not Found!`,Rg=()=>`Oops! Page Not Found!`,zg=()=>`Oops! Page Not Found!`,Bg=()=>`頁面未找到!`,Vg=()=>`页面未找到!`,Hg=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ig(e):n===`ja-JP`?Lg(e):n===`ko-KR`?Rg(e):n===`ru-RU`?zg(e):n===`zh-TW`?Bg(e):Vg(e)}),Ug=()=>`It seems like the page you're looking for does not exist or might have been removed.`,Wg=()=>`It seems like the page you're looking for does not exist or might have been removed.`,Gg=()=>`It seems like the page you're looking for does not exist or might have been removed.`,Kg=()=>`It seems like the page you're looking for does not exist or might have been removed.`,qg=()=>`您訪問的頁面不存在或已被移除。`,Jg=()=>`您访问的页面不存在或已被移除。`,Yg=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ug(e):n===`ja-JP`?Wg(e):n===`ko-KR`?Gg(e):n===`ru-RU`?Kg(e):n===`zh-TW`?qg(e):Jg(e)}),Xg=()=>`Welcome back`,Zg=()=>`Welcome back`,Qg=()=>`Welcome back`,$g=()=>`Welcome back`,e_=()=>`歡迎回來`,t_=()=>`欢迎回来`,n_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Xg(e):n===`ja-JP`?Zg(e):n===`ko-KR`?Qg(e):n===`ru-RU`?$g(e):n===`zh-TW`?e_(e):t_(e)}),r_=()=>`Sign in to GMPay`,i_=()=>`Sign in to GMPay`,a_=()=>`Sign in to GMPay`,o_=()=>`Sign in to GMPay`,s_=()=>`登入 GMPay 後臺`,c_=()=>`登录 GMPay 后台`,l_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?r_(e):n===`ja-JP`?i_(e):n===`ko-KR`?a_(e):n===`ru-RU`?o_(e):n===`zh-TW`?s_(e):c_(e)}),u_=()=>`Use your admin account to access the console and manage payment orders, wallet configuration and callback notifications.`,d_=()=>`Use your admin account to access the console and manage payment orders, wallet configuration and callback notifications.`,f_=()=>`Use your admin account to access the console and manage payment orders, wallet configuration and callback notifications.`,p_=()=>`Use your admin account to access the console and manage payment orders, wallet configuration and callback notifications.`,m_=()=>`使用管理員帳號進入控制台,繼續處理收款訂單、錢包配置與通知回呼。`,h_=()=>`使用管理员账号进入控制台,继续处理收款订单、钱包配置与通知回调。`,g_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?u_(e):n===`ja-JP`?d_(e):n===`ko-KR`?f_(e):n===`ru-RU`?p_(e):n===`zh-TW`?m_(e):h_(e)}),__=()=>`Username`,v_=()=>`Username`,y_=()=>`Username`,b_=()=>`Username`,x_=()=>`帳號`,S_=()=>`账号`,C_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?__(e):n===`ja-JP`?v_(e):n===`ko-KR`?y_(e):n===`ru-RU`?b_(e):n===`zh-TW`?x_(e):S_(e)}),w_=()=>`admin`,T_=()=>`admin`,E_=()=>`admin`,D_=()=>`admin`,O_=()=>`admin`,k_=()=>`admin`,A_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?w_(e):n===`ja-JP`?T_(e):n===`ko-KR`?E_(e):n===`ru-RU`?D_(e):n===`zh-TW`?O_(e):k_(e)}),j_=()=>`Password`,M_=()=>`Password`,N_=()=>`Password`,P_=()=>`Password`,F_=()=>`密碼`,I_=()=>`密码`,L_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?j_(e):n===`ja-JP`?M_(e):n===`ko-KR`?N_(e):n===`ru-RU`?P_(e):n===`zh-TW`?F_(e):I_(e)}),R_=()=>`Please enter your username`,z_=()=>`Please enter your username`,B_=()=>`Please enter your username`,V_=()=>`Please enter your username`,H_=()=>`請輸入帳號`,U_=()=>`请输入账号`,W_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?R_(e):n===`ja-JP`?z_(e):n===`ko-KR`?B_(e):n===`ru-RU`?V_(e):n===`zh-TW`?H_(e):U_(e)}),G_=()=>`Please enter your password`,K_=()=>`Please enter your password`,q_=()=>`Please enter your password`,J_=()=>`Please enter your password`,Y_=()=>`請輸入密碼`,X_=()=>`请输入密码`,Z_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?G_(e):n===`ja-JP`?K_(e):n===`ko-KR`?q_(e):n===`ru-RU`?J_(e):n===`zh-TW`?Y_(e):X_(e)}),Q_=()=>`Sign In`,$_=()=>`Sign In`,ev=()=>`Sign In`,tv=()=>`Sign In`,nv=()=>`登入`,rv=()=>`登录`,iv=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Q_(e):n===`ja-JP`?$_(e):n===`ko-KR`?ev(e):n===`ru-RU`?tv(e):n===`zh-TW`?nv(e):rv(e)}),av=e=>`Welcome back, ${e?.username}!`,ov=e=>`Welcome back, ${e?.username}!`,sv=e=>`Welcome back, ${e?.username}!`,cv=e=>`Welcome back, ${e?.username}!`,lv=e=>`歡迎回來,${e?.username}!`,uv=e=>`欢迎回来,${e?.username}!`,dv=((e,t={})=>{let n=t.locale??m();return n===`en-US`?av(e):n===`ja-JP`?ov(e):n===`ko-KR`?sv(e):n===`ru-RU`?cv(e):n===`zh-TW`?lv(e):uv(e)}),fv=()=>`GMPay Setup`,pv=()=>`GMPay Setup`,mv=()=>`GMPay Setup`,hv=()=>`GMPay Setup`,gv=()=>`GMPay 安裝配置`,_v=()=>`GMPay 安装配置`,vv=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fv(e):n===`ja-JP`?pv(e):n===`ko-KR`?mv(e):n===`ru-RU`?hv(e):n===`zh-TW`?gv(e):_v(e)}),yv=()=>`Fill in the details below to create your configuration file.`,bv=()=>`Fill in the details below to create your configuration file.`,xv=()=>`Fill in the details below to create your configuration file.`,Sv=()=>`Fill in the details below to create your configuration file.`,Cv=()=>`填寫以下資訊以建立配置檔案。`,wv=()=>`填写以下信息以创建配置文件。`,Tv=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yv(e):n===`ja-JP`?bv(e):n===`ko-KR`?xv(e):n===`ru-RU`?Sv(e):n===`zh-TW`?Cv(e):wv(e)}),Ev=()=>`App Name`,Dv=()=>`App Name`,Ov=()=>`App Name`,kv=()=>`App Name`,Av=()=>`應用名稱`,jv=()=>`应用名称`,Mv=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ev(e):n===`ja-JP`?Dv(e):n===`ko-KR`?Ov(e):n===`ru-RU`?kv(e):n===`zh-TW`?Av(e):jv(e)}),Nv=()=>`App URI`,Pv=()=>`App URI`,Fv=()=>`App URI`,Iv=()=>`App URI`,Lv=()=>`應用地址`,Rv=()=>`应用地址`,zv=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Nv(e):n===`ja-JP`?Pv(e):n===`ko-KR`?Fv(e):n===`ru-RU`?Iv(e):n===`zh-TW`?Lv(e):Rv(e)}),Bv=()=>`HTTP Bind Address`,Vv=()=>`HTTP Bind Address`,Hv=()=>`HTTP Bind Address`,Uv=()=>`HTTP Bind Address`,Wv=()=>`HTTP 繫結地址`,Gv=()=>`HTTP 绑定地址`,Kv=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Bv(e):n===`ja-JP`?Vv(e):n===`ko-KR`?Hv(e):n===`ru-RU`?Uv(e):n===`zh-TW`?Wv(e):Gv(e)}),qv=()=>`HTTP Bind Port`,Jv=()=>`HTTP Bind Port`,Yv=()=>`HTTP Bind Port`,Xv=()=>`HTTP Bind Port`,Zv=()=>`HTTP 繫結埠`,Qv=()=>`HTTP 绑定端口`,$v=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qv(e):n===`ja-JP`?Jv(e):n===`ko-KR`?Yv(e):n===`ru-RU`?Xv(e):n===`zh-TW`?Zv(e):Qv(e)}),ey=()=>`Runtime Root Path`,ty=()=>`Runtime Root Path`,ny=()=>`Runtime Root Path`,ry=()=>`Runtime Root Path`,iy=()=>`執行時根目錄`,ay=()=>`运行时根目录`,oy=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ey(e):n===`ja-JP`?ty(e):n===`ko-KR`?ny(e):n===`ru-RU`?ry(e):n===`zh-TW`?iy(e):ay(e)}),sy=()=>`Log Save Path`,cy=()=>`Log Save Path`,ly=()=>`Log Save Path`,uy=()=>`Log Save Path`,dy=()=>`日誌儲存路徑`,fy=()=>`日志保存路径`,py=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sy(e):n===`ja-JP`?cy(e):n===`ko-KR`?ly(e):n===`ru-RU`?uy(e):n===`zh-TW`?dy(e):fy(e)}),my=()=>`Order Expiration (min)`,hy=()=>`Order Expiration (min)`,gy=()=>`Order Expiration (min)`,_y=()=>`Order Expiration (min)`,vy=()=>`訂單過期時間(分鐘)`,yy=()=>`订单过期时间(分钟)`,by=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?my(e):n===`ja-JP`?hy(e):n===`ko-KR`?gy(e):n===`ru-RU`?_y(e):n===`zh-TW`?vy(e):yy(e)}),xy=()=>`Max Callback Retries`,Sy=()=>`Max Callback Retries`,Cy=()=>`Max Callback Retries`,wy=()=>`Max Callback Retries`,Ty=()=>`最大回調重試次數`,Ey=()=>`最大回调重试次数`,Dy=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xy(e):n===`ja-JP`?Sy(e):n===`ko-KR`?Cy(e):n===`ru-RU`?wy(e):n===`zh-TW`?Ty(e):Ey(e)}),Oy=()=>`Install`,ky=()=>`Install`,Ay=()=>`Install`,jy=()=>`Install`,My=()=>`開始安裝`,Ny=()=>`开始安装`,Py=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Oy(e):n===`ja-JP`?ky(e):n===`ko-KR`?Ay(e):n===`ru-RU`?jy(e):n===`zh-TW`?My(e):Ny(e)}),Fy=()=>`Installing…`,Iy=()=>`Installing…`,Ly=()=>`Installing…`,Ry=()=>`Installing…`,zy=()=>`安裝中…`,By=()=>`安装中…`,Vy=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Fy(e):n===`ja-JP`?Iy(e):n===`ko-KR`?Ly(e):n===`ru-RU`?Ry(e):n===`zh-TW`?zy(e):By(e)}),Hy=()=>`Done!`,Uy=()=>`Done!`,Wy=()=>`Done!`,Gy=()=>`Done!`,Ky=()=>`完成!`,qy=()=>`完成!`,Jy=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hy(e):n===`ja-JP`?Uy(e):n===`ko-KR`?Wy(e):n===`ru-RU`?Gy(e):n===`zh-TW`?Ky(e):qy(e)}),Yy=()=>`Install failed.`,Xy=()=>`Install failed.`,Zy=()=>`Install failed.`,Qy=()=>`Install failed.`,$y=()=>`安裝失敗。`,eb=()=>`安装失败。`,tb=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yy(e):n===`ja-JP`?Xy(e):n===`ko-KR`?Zy(e):n===`ru-RU`?Qy(e):n===`zh-TW`?$y(e):eb(e)}),nb=()=>`Error`,rb=()=>`Error`,ib=()=>`Error`,ab=()=>`Error`,ob=()=>`安裝失敗`,sb=()=>`安装失败`,cb=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nb(e):n===`ja-JP`?rb(e):n===`ko-KR`?ib(e):n===`ru-RU`?ab(e):n===`zh-TW`?ob(e):sb(e)}),lb=()=>`Secure and efficient USDT payment middleware`,ub=()=>`Secure and efficient USDT payment middleware`,db=()=>`Secure and efficient USDT payment middleware`,fb=()=>`Secure and efficient USDT payment middleware`,pb=()=>`安全、高效的 USDT 支付中介軟體`,mb=()=>`安全、高效的 USDT 支付中间件`,hb=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lb(e):n===`ja-JP`?ub(e):n===`ko-KR`?db(e):n===`ru-RU`?fb(e):n===`zh-TW`?pb(e):mb(e)}),gb=()=>`Installation complete`,_b=()=>`Installation complete`,vb=()=>`Installation complete`,yb=()=>`Installation complete`,bb=()=>`安裝完成`,xb=()=>`安装完成`,Sb=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gb(e):n===`ja-JP`?_b(e):n===`ko-KR`?vb(e):n===`ru-RU`?yb(e):n===`zh-TW`?bb(e):xb(e)}),Cb=()=>`Please save the initial admin username and password below.`,wb=()=>`Please save the initial admin username and password below.`,Tb=()=>`Please save the initial admin username and password below.`,Eb=()=>`Please save the initial admin username and password below.`,Db=()=>`請先儲存下面的初始管理員帳號和密碼。`,Ob=()=>`请先保存下面的初始管理员账号和密码,并尽快登录修改密码。`,kb=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Cb(e):n===`ja-JP`?wb(e):n===`ko-KR`?Tb(e):n===`ru-RU`?Eb(e):n===`zh-TW`?Db(e):Ob(e)}),Ab=()=>`Admin credentials ready`,jb=()=>`Admin credentials ready`,Mb=()=>`Admin credentials ready`,Nb=()=>`Admin credentials ready`,Pb=()=>`管理員憑據已生成`,Fb=()=>`管理员凭证已生成`,Ib=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ab(e):n===`ja-JP`?jb(e):n===`ko-KR`?Mb(e):n===`ru-RU`?Nb(e):n===`zh-TW`?Pb(e):Fb(e)}),Lb=()=>`Initial password unavailable`,Rb=()=>`Initial password unavailable`,zb=()=>`Initial password unavailable`,Bb=()=>`Initial password unavailable`,Vb=()=>`初始密碼讀取失敗`,Hb=()=>`初始密码读取失败`,Ub=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Lb(e):n===`ja-JP`?Rb(e):n===`ko-KR`?zb(e):n===`ru-RU`?Bb(e):n===`zh-TW`?Vb(e):Hb(e)}),Wb=()=>`Check the service startup terminal for the admin username and initial password.`,Gb=()=>`Check the service startup terminal for the admin username and initial password.`,Kb=()=>`Check the service startup terminal for the admin username and initial password.`,qb=()=>`Check the service startup terminal for the admin username and initial password.`,Jb=()=>`請前往服務啟動終端機查看管理員帳號和初始密碼。`,Yb=()=>`如果没有看到初始密码,请刷新浏览器重试,或前往服务启动终端查看管理员账号和初始密码。`,Xb=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Wb(e):n===`ja-JP`?Gb(e):n===`ko-KR`?Kb(e):n===`ru-RU`?qb(e):n===`zh-TW`?Jb(e):Yb(e)}),Zb=()=>`Go to sign in`,Qb=()=>`Go to sign in`,$b=()=>`Go to sign in`,ex=()=>`Go to sign in`,tx=()=>`去登入`,nx=()=>`去登录`,rx=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Zb(e):n===`ja-JP`?Qb(e):n===`ko-KR`?$b(e):n===`ru-RU`?ex(e):n===`zh-TW`?tx(e):nx(e)}),ix=()=>`Username`,ax=()=>`Username`,ox=()=>`Username`,sx=()=>`Username`,cx=()=>`使用者名稱`,lx=()=>`用户名`,ux=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ix(e):n===`ja-JP`?ax(e):n===`ko-KR`?ox(e):n===`ru-RU`?sx(e):n===`zh-TW`?cx(e):lx(e)}),dx=()=>`Initial password`,fx=()=>`Initial password`,px=()=>`Initial password`,mx=()=>`Initial password`,hx=()=>`初始密碼`,gx=()=>`初始密码`,_x=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dx(e):n===`ja-JP`?fx(e):n===`ko-KR`?px(e):n===`ru-RU`?mx(e):n===`zh-TW`?hx(e):gx(e)}),vx=()=>`If you still use the initial password after the first sign-in, the system will prompt you to change it immediately.`,yx=()=>`If you still use the initial password after the first sign-in, the system will prompt you to change it immediately.`,bx=()=>`If you still use the initial password after the first sign-in, the system will prompt you to change it immediately.`,xx=()=>`If you still use the initial password after the first sign-in, the system will prompt you to change it immediately.`,Sx=()=>`首次登入後如果仍使用初始密碼,系統會提示你立即修改。`,Cx=()=>`请在首次登录后尽快修改初始密码。`,wx=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vx(e):n===`ja-JP`?yx(e):n===`ko-KR`?bx(e):n===`ru-RU`?xx(e):n===`zh-TW`?Sx(e):Cx(e)}),Tx=()=>`Change the password in an HTTPS environment`,Ex=()=>`Change the password in an HTTPS environment`,Dx=()=>`Change the password in an HTTPS environment`,Ox=()=>`Change the password in an HTTPS environment`,kx=()=>`請在 HTTPS 環境下修改密碼`,Ax=()=>`请在 HTTPS 环境下修改密码`,jx=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Tx(e):n===`ja-JP`?Ex(e):n===`ko-KR`?Dx(e):n===`ru-RU`?Ox(e):n===`zh-TW`?kx(e):Ax(e)}),Mx=()=>`Show password`,Nx=()=>`Show password`,Px=()=>`Show password`,Fx=()=>`Show password`,Ix=()=>`顯示密碼`,Lx=()=>`显示密码`,Rx=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Mx(e):n===`ja-JP`?Nx(e):n===`ko-KR`?Px(e):n===`ru-RU`?Fx(e):n===`zh-TW`?Ix(e):Lx(e)}),zx=()=>`Hide password`,Bx=()=>`Hide password`,Vx=()=>`Hide password`,Hx=()=>`Hide password`,Ux=()=>`隱藏密碼`,Wx=()=>`隐藏密码`,Gx=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zx(e):n===`ja-JP`?Bx(e):n===`ko-KR`?Vx(e):n===`ru-RU`?Hx(e):n===`zh-TW`?Ux(e):Wx(e)}),Kx=()=>`One-time view`,qx=()=>`One-time view`,Jx=()=>`One-time view`,Yx=()=>`One-time view`,Xx=()=>`一次性檢視`,Zx=()=>`一次性查看`,Qx=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Kx(e):n===`ja-JP`?qx(e):n===`ko-KR`?Jx(e):n===`ru-RU`?Yx(e):n===`zh-TW`?Xx(e):Zx(e)}),$x=()=>`Copy`,eS=()=>`Copy`,tS=()=>`Copy`,nS=()=>`Copy`,rS=()=>`複製`,iS=()=>`复制`,aS=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$x(e):n===`ja-JP`?eS(e):n===`ko-KR`?tS(e):n===`ru-RU`?nS(e):n===`zh-TW`?rS(e):iS(e)}),oS=()=>`Copied`,sS=()=>`Copied`,cS=()=>`Copied`,lS=()=>`Copied`,uS=()=>`已複製`,dS=()=>`已复制`,fS=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?oS(e):n===`ja-JP`?sS(e):n===`ko-KR`?cS(e):n===`ru-RU`?lS(e):n===`zh-TW`?uS(e):dS(e)}),pS=()=>`Copy failed`,mS=()=>`Copy failed`,hS=()=>`Copy failed`,gS=()=>`Copy failed`,_S=()=>`複製失敗`,vS=()=>`复制失败`,yS=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pS(e):n===`ja-JP`?mS(e):n===`ko-KR`?hS(e):n===`ru-RU`?gS(e):n===`zh-TW`?_S(e):vS(e)}),bS=()=>`We recommend changing the admin password first`,xS=()=>`We recommend changing the admin password first`,SS=()=>`We recommend changing the admin password first`,CS=()=>`We recommend changing the admin password first`,wS=()=>`建議先完成管理員密碼修改`,TS=()=>`建议先完成管理员密码修改`,ES=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bS(e):n===`ja-JP`?xS(e):n===`ko-KR`?SS(e):n===`ru-RU`?CS(e):n===`zh-TW`?wS(e):TS(e)}),DS=()=>`Change password now`,OS=()=>`Change password now`,kS=()=>`Change password now`,AS=()=>`Change password now`,jS=()=>`立即修改密碼`,MS=()=>`立即修改密码`,NS=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?DS(e):n===`ja-JP`?OS(e):n===`ko-KR`?kS(e):n===`ru-RU`?AS(e):n===`zh-TW`?jS(e):MS(e)}),PS=()=>`This account is still using the initial password`,FS=()=>`This account is still using the initial password`,IS=()=>`This account is still using the initial password`,LS=()=>`This account is still using the initial password`,RS=()=>`當前帳號仍在使用初始密碼`,zS=()=>`当前账号仍在使用初始密码`,BS=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?PS(e):n===`ja-JP`?FS(e):n===`ko-KR`?IS(e):n===`ru-RU`?LS(e):n===`zh-TW`?RS(e):zS(e)}),VS=()=>`To reduce the risk of someone signing in with a weak or default password, we recommend changing the admin password now before entering the system.`,HS=()=>`To reduce the risk of someone signing in with a weak or default password, we recommend changing the admin password now before entering the system.`,US=()=>`To reduce the risk of someone signing in with a weak or default password, we recommend changing the admin password now before entering the system.`,WS=()=>`To reduce the risk of someone signing in with a weak or default password, we recommend changing the admin password now before entering the system.`,GS=()=>`為了避免後臺帳號被弱口令或預設口令直接登入,建議你現在先完成密碼修改,再繼續進入系統。`,KS=()=>`为了避免后台账号因弱口令或默认口令被直接登录,建议你现在先完成密码修改,再继续进入系统。`,qS=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?VS(e):n===`ja-JP`?HS(e):n===`ko-KR`?US(e):n===`ru-RU`?WS(e):n===`zh-TW`?GS(e):KS(e)}),JS=()=>`What happens next`,YS=()=>`What happens next`,XS=()=>`What happens next`,ZS=()=>`What happens next`,QS=()=>`接下來會發生什麼`,$S=()=>`接下来会发生什么`,eC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?JS(e):n===`ja-JP`?YS(e):n===`ko-KR`?XS(e):n===`ru-RU`?ZS(e):n===`zh-TW`?QS(e):$S(e)}),tC=()=>`Clicking “Change password now” will take you to the password change page`,nC=()=>`Clicking “Change password now” will take you to the password change page`,rC=()=>`Clicking “Change password now” will take you to the password change page`,iC=()=>`Clicking “Change password now” will take you to the password change page`,aC=()=>`點選“立即修改密碼”後會跳轉到修改密碼頁面`,oC=()=>`点击“立即修改密码”后会跳转到修改密码页面`,sC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tC(e):n===`ja-JP`?nC(e):n===`ko-KR`?rC(e):n===`ru-RU`?iC(e):n===`zh-TW`?aC(e):oC(e)}),cC=()=>`After updating the password, you can continue to the page you originally wanted to visit`,lC=()=>`After updating the password, you can continue to the page you originally wanted to visit`,uC=()=>`After updating the password, you can continue to the page you originally wanted to visit`,dC=()=>`After updating the password, you can continue to the page you originally wanted to visit`,fC=()=>`修改完成後可繼續返回你原本要進入的頁面`,pC=()=>`修改完成后可继续返回你原本要进入的页面`,mC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cC(e):n===`ja-JP`?lC(e):n===`ko-KR`?uC(e):n===`ru-RU`?dC(e):n===`zh-TW`?fC(e):pC(e)}),hC=()=>`Appearance`,gC=()=>`Appearance`,_C=()=>`Appearance`,vC=()=>`Appearance`,yC=()=>`外觀設定`,bC=()=>`外观设置`,xC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hC(e):n===`ja-JP`?gC(e):n===`ko-KR`?_C(e):n===`ru-RU`?vC(e):n===`zh-TW`?yC(e):bC(e)}),SC=()=>`Admin Console`,CC=()=>`Admin Console`,wC=()=>`Admin Console`,TC=()=>`Admin Console`,EC=()=>`管理控制台`,DC=()=>`管理控制台`,OC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?SC(e):n===`ja-JP`?CC(e):n===`ko-KR`?wC(e):n===`ru-RU`?TC(e):n===`zh-TW`?EC(e):DC(e)}),kC=()=>`Payment Integrations`,AC=()=>`Payment Integrations`,jC=()=>`Payment Integrations`,MC=()=>`Payment Integrations`,NC=()=>`支付接入`,PC=()=>`支付接入`,FC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kC(e):n===`ja-JP`?AC(e):n===`ko-KR`?jC(e):n===`ru-RU`?MC(e):n===`zh-TW`?NC(e):PC(e)}),IC=()=>`Payment Assets`,LC=()=>`Payment Assets`,RC=()=>`Payment Assets`,zC=()=>`Payment Assets`,BC=()=>`收款資產`,VC=()=>`收款资产`,HC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?IC(e):n===`ja-JP`?LC(e):n===`ko-KR`?RC(e):n===`ru-RU`?zC(e):n===`zh-TW`?BC(e):VC(e)}),UC=()=>`Integration Guide`,WC=()=>`Integration Guide`,GC=()=>`Integration Guide`,KC=()=>`Integration Guide`,qC=()=>`接入配置`,JC=()=>`接入配置`,YC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?UC(e):n===`ja-JP`?WC(e):n===`ko-KR`?GC(e):n===`ru-RU`?KC(e):n===`zh-TW`?qC(e):JC(e)}),XC=()=>`Transactions`,ZC=()=>`Transactions`,QC=()=>`Transactions`,$C=()=>`Transactions`,ew=()=>`交易`,tw=()=>`交易`,nw=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?XC(e):n===`ja-JP`?ZC(e):n===`ko-KR`?QC(e):n===`ru-RU`?$C(e):n===`zh-TW`?ew(e):tw(e)}),rw=()=>`Finance`,iw=()=>`Finance`,aw=()=>`Finance`,ow=()=>`Finance`,sw=()=>`財務`,cw=()=>`财务`,lw=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rw(e):n===`ja-JP`?iw(e):n===`ko-KR`?aw(e):n===`ru-RU`?ow(e):n===`zh-TW`?sw(e):cw(e)}),uw=()=>`Address Management`,dw=()=>`Address Management`,fw=()=>`Address Management`,pw=()=>`Address Management`,mw=()=>`地址管理`,hw=()=>`地址管理`,gw=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?uw(e):n===`ja-JP`?dw(e):n===`ko-KR`?fw(e):n===`ru-RU`?pw(e):n===`zh-TW`?mw(e):hw(e)}),_w=e=>`Last login: ${e?.time}`,vw=e=>`Last login: ${e?.time}`,yw=e=>`Last login: ${e?.time}`,bw=e=>`Last login: ${e?.time}`,xw=e=>`上次登入: ${e?.time}`,Sw=e=>`上次登录: ${e?.time}`,Cw=((e,t={})=>{let n=t.locale??m();return n===`en-US`?_w(e):n===`ja-JP`?vw(e):n===`ko-KR`?yw(e):n===`ru-RU`?bw(e):n===`zh-TW`?xw(e):Sw(e)}),ww=()=>`Welcome to Admin Console`,Tw=()=>`Welcome to Admin Console`,Ew=()=>`Welcome to Admin Console`,Dw=()=>`Welcome to Admin Console`,Ow=()=>`歡迎使用管理後臺`,kw=()=>`欢迎使用管理后台`,Aw=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ww(e):n===`ja-JP`?Tw(e):n===`ko-KR`?Ew(e):n===`ru-RU`?Dw(e):n===`zh-TW`?Ow(e):kw(e)}),jw=()=>`Dashboard`,Mw=()=>`Dashboard`,Nw=()=>`Dashboard`,Pw=()=>`Dashboard`,Fw=()=>`儀表盤`,Iw=()=>`仪表盘`,Lw=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jw(e):n===`ja-JP`?Mw(e):n===`ko-KR`?Nw(e):n===`ru-RU`?Pw(e):n===`zh-TW`?Fw(e):Iw(e)}),Rw=()=>`View asset balances, revenue trends, and recent order statuses.`,zw=()=>`View asset balances, revenue trends, and recent order statuses.`,Bw=()=>`View asset balances, revenue trends, and recent order statuses.`,Vw=()=>`View asset balances, revenue trends, and recent order statuses.`,Hw=()=>`檢視資產、流水與最近訂單狀態。`,Uw=()=>`查看资产、流水与最近订单状态。`,Ww=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Rw(e):n===`ja-JP`?zw(e):n===`ko-KR`?Bw(e):n===`ru-RU`?Vw(e):n===`zh-TW`?Hw(e):Uw(e)}),Gw=()=>`Time`,Kw=()=>`Time`,qw=()=>`Time`,Jw=()=>`Time`,Yw=()=>`時間`,Xw=()=>`时间`,Zw=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Gw(e):n===`ja-JP`?Kw(e):n===`ko-KR`?qw(e):n===`ru-RU`?Jw(e):n===`zh-TW`?Yw(e):Xw(e)}),Qw=()=>`Order ID`,$w=()=>`Order ID`,eT=()=>`Order ID`,tT=()=>`Order ID`,nT=()=>`訂單號`,rT=()=>`订单号`,iT=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Qw(e):n===`ja-JP`?$w(e):n===`ko-KR`?eT(e):n===`ru-RU`?tT(e):n===`zh-TW`?nT(e):rT(e)}),aT=()=>`Wallet Address`,oT=()=>`Wallet Address`,sT=()=>`Wallet Address`,cT=()=>`Wallet Address`,lT=()=>`錢包地址`,uT=()=>`钱包地址`,dT=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?aT(e):n===`ja-JP`?oT(e):n===`ko-KR`?sT(e):n===`ru-RU`?cT(e):n===`zh-TW`?lT(e):uT(e)}),fT=()=>`Fiat Amount`,pT=()=>`Fiat Amount`,mT=()=>`Fiat Amount`,hT=()=>`Fiat Amount`,gT=()=>`法幣金額`,_T=()=>`法币金额`,vT=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fT(e):n===`ja-JP`?pT(e):n===`ko-KR`?mT(e):n===`ru-RU`?hT(e):n===`zh-TW`?gT(e):_T(e)}),yT=()=>`Token Amount`,bT=()=>`Token Amount`,xT=()=>`Token Amount`,ST=()=>`Token Amount`,CT=()=>`代幣金額`,wT=()=>`代币金额`,TT=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yT(e):n===`ja-JP`?bT(e):n===`ko-KR`?xT(e):n===`ru-RU`?ST(e):n===`zh-TW`?CT(e):wT(e)}),ET=()=>`Chain`,DT=()=>`Chain`,OT=()=>`Chain`,kT=()=>`Chain`,AT=()=>`鏈`,jT=()=>`链`,MT=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ET(e):n===`ja-JP`?DT(e):n===`ko-KR`?OT(e):n===`ru-RU`?kT(e):n===`zh-TW`?AT(e):jT(e)}),NT=()=>`Status`,PT=()=>`Status`,FT=()=>`Status`,IT=()=>`Status`,LT=()=>`狀態`,RT=()=>`状态`,zT=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?NT(e):n===`ja-JP`?PT(e):n===`ko-KR`?FT(e):n===`ru-RU`?IT(e):n===`zh-TW`?LT(e):RT(e)}),BT=()=>`Revenue Trend`,VT=()=>`Revenue Trend`,HT=()=>`Revenue Trend`,UT=()=>`Revenue Trend`,WT=()=>`流水趨勢`,GT=()=>`流水趋势`,KT=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?BT(e):n===`ja-JP`?VT(e):n===`ko-KR`?HT(e):n===`ru-RU`?UT(e):n===`zh-TW`?WT(e):GT(e)}),qT=()=>`Trend of successful and failed order amounts`,JT=()=>`Trend of successful and failed order amounts`,YT=()=>`Trend of successful and failed order amounts`,XT=()=>`Trend of successful and failed order amounts`,ZT=()=>`成功與失敗訂單金額趨勢`,QT=()=>`成功与失败订单金额趋势`,$T=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qT(e):n===`ja-JP`?JT(e):n===`ko-KR`?YT(e):n===`ru-RU`?XT(e):n===`zh-TW`?ZT(e):QT(e)}),eE=()=>`Order Statistics`,tE=()=>`Order Statistics`,nE=()=>`Order Statistics`,rE=()=>`Order Statistics`,iE=()=>`訂單統計`,aE=()=>`订单统计`,oE=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?eE(e):n===`ja-JP`?tE(e):n===`ko-KR`?nE(e):n===`ru-RU`?rE(e):n===`zh-TW`?iE(e):aE(e)}),sE=()=>`Daily order count and conversion rate trend`,cE=()=>`Daily order count and conversion rate trend`,lE=()=>`Daily order count and conversion rate trend`,uE=()=>`Daily order count and conversion rate trend`,dE=()=>`每日訂單數與成交率趨勢`,fE=()=>`每日订单数与成交率趋势`,pE=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sE(e):n===`ja-JP`?cE(e):n===`ko-KR`?lE(e):n===`ru-RU`?uE(e):n===`zh-TW`?dE(e):fE(e)}),mE=()=>`Recent Orders`,hE=()=>`Recent Orders`,gE=()=>`Recent Orders`,_E=()=>`Recent Orders`,vE=()=>`最近訂單`,yE=()=>`最近订单`,bE=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mE(e):n===`ja-JP`?hE(e):n===`ko-KR`?gE(e):n===`ru-RU`?_E(e):n===`zh-TW`?vE(e):yE(e)}),xE=()=>`Payment status of the latest 20 orders`,SE=()=>`Payment status of the latest 20 orders`,CE=()=>`Payment status of the latest 20 orders`,wE=()=>`Payment status of the latest 20 orders`,TE=()=>`最新 20 筆訂單收款狀態`,EE=()=>`最新 20 笔订单收款状态`,DE=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xE(e):n===`ja-JP`?SE(e):n===`ko-KR`?CE(e):n===`ru-RU`?wE(e):n===`zh-TW`?TE(e):EE(e)}),OE=()=>`No recent orders`,kE=()=>`No recent orders`,AE=()=>`No recent orders`,jE=()=>`No recent orders`,ME=()=>`暫無最近訂單`,NE=()=>`暂无最近订单`,PE=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?OE(e):n===`ja-JP`?kE(e):n===`ko-KR`?AE(e):n===`ru-RU`?jE(e):n===`zh-TW`?ME(e):NE(e)}),FE=()=>`Asset Trend`,IE=()=>`Asset Trend`,LE=()=>`Asset Trend`,RE=()=>`Asset Trend`,zE=()=>`資產趨勢`,BE=()=>`资产趋势`,VE=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?FE(e):n===`ja-JP`?IE(e):n===`ko-KR`?LE(e):n===`ru-RU`?RE(e):n===`zh-TW`?zE(e):BE(e)}),HE=()=>`Switch between today, 7 days, 30 days, and custom views`,UE=()=>`Switch between today, 7 days, 30 days, and custom views`,WE=()=>`Switch between today, 7 days, 30 days, and custom views`,GE=()=>`Switch between today, 7 days, 30 days, and custom views`,KE=()=>`支援今日、7 天、30 天與自定義檢視切換`,qE=()=>`支持今日、7 天、30 天与自定义视图切换`,JE=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?HE(e):n===`ja-JP`?UE(e):n===`ko-KR`?WE(e):n===`ru-RU`?GE(e):n===`zh-TW`?KE(e):qE(e)}),YE=()=>`Filter`,XE=()=>`Filter`,ZE=()=>`Filter`,QE=()=>`Filter`,$E=()=>`篩選`,eD=()=>`筛选`,tD=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?YE(e):n===`ja-JP`?XE(e):n===`ko-KR`?ZE(e):n===`ru-RU`?QE(e):n===`zh-TW`?$E(e):eD(e)}),nD=()=>`No data`,rD=()=>`No data`,iD=()=>`No data`,aD=()=>`No data`,oD=()=>`無資料`,sD=()=>`无数据`,cD=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nD(e):n===`ja-JP`?rD(e):n===`ko-KR`?iD(e):n===`ru-RU`?aD(e):n===`zh-TW`?oD(e):sD(e)}),lD=()=>`Clear filters`,uD=()=>`Clear filters`,dD=()=>`Clear filters`,fD=()=>`Clear filters`,pD=()=>`清除篩選`,mD=()=>`清除筛选`,hD=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lD(e):n===`ja-JP`?uD(e):n===`ko-KR`?dD(e):n===`ru-RU`?fD(e):n===`zh-TW`?pD(e):mD(e)}),gD=()=>`Total Amount`,_D=()=>`Total Amount`,vD=()=>`Total Amount`,yD=()=>`Total Amount`,bD=()=>`總金額`,xD=()=>`总金额`,SD=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gD(e):n===`ja-JP`?_D(e):n===`ko-KR`?vD(e):n===`ru-RU`?yD(e):n===`zh-TW`?bD(e):xD(e)}),CD=()=>`Actual Amount`,wD=()=>`Actual Amount`,TD=()=>`Actual Amount`,ED=()=>`Actual Amount`,DD=()=>`實收金額`,OD=()=>`实收金额`,kD=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?CD(e):n===`ja-JP`?wD(e):n===`ko-KR`?TD(e):n===`ru-RU`?ED(e):n===`zh-TW`?DD(e):OD(e)}),AD=()=>`Total Asset Balance (USD)`,jD=()=>`Total Asset Balance (USD)`,MD=()=>`Total Asset Balance (USD)`,ND=()=>`Total Asset Balance (USD)`,PD=()=>`總資產餘額 (USD)`,FD=()=>`总资产余额 (USD)`,ID=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?AD(e):n===`ja-JP`?jD(e):n===`ko-KR`?MD(e):n===`ru-RU`?ND(e):n===`zh-TW`?PD(e):FD(e)}),LD=()=>`Current available asset pool`,RD=()=>`Current available asset pool`,zD=()=>`Current available asset pool`,BD=()=>`Current available asset pool`,VD=()=>`當前可用資金池`,HD=()=>`当前可用资金池`,UD=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?LD(e):n===`ja-JP`?RD(e):n===`ko-KR`?zD(e):n===`ru-RU`?BD(e):n===`zh-TW`?VD(e):HD(e)}),WD=()=>`Total Volume`,GD=()=>`Total Volume`,KD=()=>`Total Volume`,qD=()=>`Total Volume`,JD=()=>`總流水`,YD=()=>`总流水`,XD=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?WD(e):n===`ja-JP`?GD(e):n===`ko-KR`?KD(e):n===`ru-RU`?qD(e):n===`zh-TW`?JD(e):YD(e)}),ZD=()=>`Cumulative successful payment amount`,QD=()=>`Cumulative successful payment amount`,$D=()=>`Cumulative successful payment amount`,eO=()=>`Cumulative successful payment amount`,tO=()=>`累計成功收款金額`,nO=()=>`累计成功收款金额`,rO=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ZD(e):n===`ja-JP`?QD(e):n===`ko-KR`?$D(e):n===`ru-RU`?eO(e):n===`zh-TW`?tO(e):nO(e)}),iO=()=>`Total Orders`,aO=()=>`Total Orders`,oO=()=>`Total Orders`,sO=()=>`Total Orders`,cO=()=>`總訂單量`,lO=()=>`总订单量`,uO=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?iO(e):n===`ja-JP`?aO(e):n===`ko-KR`?oO(e):n===`ru-RU`?sO(e):n===`zh-TW`?cO(e):lO(e)}),dO=()=>`Cumulative number of orders`,fO=()=>`Cumulative number of orders`,pO=()=>`Cumulative number of orders`,mO=()=>`Cumulative number of orders`,hO=()=>`累計訂單數量`,gO=()=>`累计订单数量`,_O=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dO(e):n===`ja-JP`?fO(e):n===`ko-KR`?pO(e):n===`ru-RU`?mO(e):n===`zh-TW`?hO(e):gO(e)}),vO=()=>`Total Conversion Rate`,yO=()=>`Total Conversion Rate`,bO=()=>`Total Conversion Rate`,xO=()=>`Total Conversion Rate`,SO=()=>`總成交率`,CO=()=>`总成交率`,wO=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vO(e):n===`ja-JP`?yO(e):n===`ko-KR`?bO(e):n===`ru-RU`?xO(e):n===`zh-TW`?SO(e):CO(e)}),TO=()=>`Cumulative paid / total orders`,EO=()=>`Cumulative paid / total orders`,DO=()=>`Cumulative paid / total orders`,OO=()=>`Cumulative paid / total orders`,kO=()=>`累計已支付 / 總訂單`,AO=()=>`累计已支付 / 总订单`,jO=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?TO(e):n===`ja-JP`?EO(e):n===`ko-KR`?DO(e):n===`ru-RU`?OO(e):n===`zh-TW`?kO(e):AO(e)}),MO=()=>`Order Count`,NO=()=>`Order Count`,PO=()=>`Order Count`,FO=()=>`Order Count`,IO=()=>`訂單總數`,LO=()=>`订单总数`,RO=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?MO(e):n===`ja-JP`?NO(e):n===`ko-KR`?PO(e):n===`ru-RU`?FO(e):n===`zh-TW`?IO(e):LO(e)}),zO=()=>`Total orders in the selected period`,BO=()=>`Total orders in the selected period`,VO=()=>`Total orders in the selected period`,HO=()=>`Total orders in the selected period`,UO=()=>`當前篩選週期內訂單總數`,WO=()=>`当前筛选周期内订单总数`,GO=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zO(e):n===`ja-JP`?BO(e):n===`ko-KR`?VO(e):n===`ru-RU`?HO(e):n===`zh-TW`?UO(e):WO(e)}),KO=()=>`Successful Orders`,qO=()=>`Successful Orders`,JO=()=>`Successful Orders`,YO=()=>`Successful Orders`,XO=()=>`成功訂單`,ZO=()=>`成功订单`,QO=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?KO(e):n===`ja-JP`?qO(e):n===`ko-KR`?JO(e):n===`ru-RU`?YO(e):n===`zh-TW`?XO(e):ZO(e)}),$O=()=>`Paid orders in the selected period`,ek=()=>`Paid orders in the selected period`,tk=()=>`Paid orders in the selected period`,nk=()=>`Paid orders in the selected period`,rk=()=>`當前篩選週期內已支付訂單`,ik=()=>`当前筛选周期内已支付订单`,ak=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$O(e):n===`ja-JP`?ek(e):n===`ko-KR`?tk(e):n===`ru-RU`?nk(e):n===`zh-TW`?rk(e):ik(e)}),ok=()=>`Average Payment Time`,sk=()=>`Average Payment Time`,ck=()=>`Average Payment Time`,lk=()=>`Average Payment Time`,uk=()=>`平均支付耗時`,dk=()=>`平均支付耗时`,fk=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ok(e):n===`ja-JP`?sk(e):n===`ko-KR`?ck(e):n===`ru-RU`?lk(e):n===`zh-TW`?uk(e):dk(e)}),pk=()=>`Average time from order creation to payment success`,mk=()=>`Average time from order creation to payment success`,hk=()=>`Average time from order creation to payment success`,gk=()=>`Average time from order creation to payment success`,_k=()=>`訂單建立到支付成功平均耗時`,vk=()=>`订单创建到支付成功平均耗时`,yk=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pk(e):n===`ja-JP`?mk(e):n===`ko-KR`?hk(e):n===`ru-RU`?gk(e):n===`zh-TW`?_k(e):vk(e)}),bk=()=>`Expired Unpaid`,xk=()=>`Expired Unpaid`,Sk=()=>`Expired Unpaid`,Ck=()=>`Expired Unpaid`,wk=()=>`超時未支付`,Tk=()=>`超时未支付`,Ek=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bk(e):n===`ja-JP`?xk(e):n===`ko-KR`?Sk(e):n===`ru-RU`?Ck(e):n===`zh-TW`?wk(e):Tk(e)}),Dk=()=>`Expired and unpaid orders`,Ok=()=>`Expired and unpaid orders`,kk=()=>`Expired and unpaid orders`,Ak=()=>`Expired and unpaid orders`,jk=()=>`已過期且未支付訂單`,Mk=()=>`已过期且未支付订单`,Nk=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Dk(e):n===`ja-JP`?Ok(e):n===`ko-KR`?kk(e):n===`ru-RU`?Ak(e):n===`zh-TW`?jk(e):Mk(e)}),Pk=()=>`Last 7 Days Volume`,Fk=()=>`Last 7 Days Volume`,Ik=()=>`Last 7 Days Volume`,Lk=()=>`Last 7 Days Volume`,Rk=()=>`最近7日流水`,zk=()=>`最近7日流水`,Bk=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Pk(e):n===`ja-JP`?Fk(e):n===`ko-KR`?Ik(e):n===`ru-RU`?Lk(e):n===`zh-TW`?Rk(e):zk(e)}),Vk=()=>`Cumulative payments in the last 7 days`,Hk=()=>`Cumulative payments in the last 7 days`,Uk=()=>`Cumulative payments in the last 7 days`,Wk=()=>`Cumulative payments in the last 7 days`,Gk=()=>`近 7 天累計收款`,Kk=()=>`近 7 天累计收款`,qk=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Vk(e):n===`ja-JP`?Hk(e):n===`ko-KR`?Uk(e):n===`ru-RU`?Wk(e):n===`zh-TW`?Gk(e):Kk(e)}),Jk=()=>`Active Address Count`,Yk=()=>`Active Address Count`,Xk=()=>`Active Address Count`,Zk=()=>`Active Address Count`,Qk=()=>`活躍地址數量`,$k=()=>`活跃地址数量`,eA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Jk(e):n===`ja-JP`?Yk(e):n===`ko-KR`?Xk(e):n===`ru-RU`?Zk(e):n===`zh-TW`?Qk(e):$k(e)}),tA=()=>`Addresses with transactions in the last 24 hours`,nA=()=>`Addresses with transactions in the last 24 hours`,rA=()=>`Addresses with transactions in the last 24 hours`,iA=()=>`Addresses with transactions in the last 24 hours`,aA=()=>`近 24 小時有流水地址`,oA=()=>`近 24 小时有流水地址`,sA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tA(e):n===`ja-JP`?nA(e):n===`ko-KR`?rA(e):n===`ru-RU`?iA(e):n===`zh-TW`?aA(e):oA(e)}),cA=()=>`Online Chain Count`,lA=()=>`Online Chain Count`,uA=()=>`Online Chain Count`,dA=()=>`Online Chain Count`,fA=()=>`線上鏈數量`,pA=()=>`在线链数量`,mA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cA(e):n===`ja-JP`?lA(e):n===`ko-KR`?uA(e):n===`ru-RU`?dA(e):n===`zh-TW`?fA(e):pA(e)}),hA=()=>`Currently available payment networks`,gA=()=>`Currently available payment networks`,_A=()=>`Currently available payment networks`,vA=()=>`Currently available payment networks`,yA=()=>`當前可用收款網路`,bA=()=>`当前可用收款网络`,xA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hA(e):n===`ja-JP`?gA(e):n===`ko-KR`?_A(e):n===`ru-RU`?vA(e):n===`zh-TW`?yA(e):bA(e)}),SA=()=>`Order Success Rate`,CA=()=>`Order Success Rate`,wA=()=>`Order Success Rate`,TA=()=>`Order Success Rate`,EA=()=>`訂單成功率`,DA=()=>`订单成功率`,OA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?SA(e):n===`ja-JP`?CA(e):n===`ko-KR`?wA(e):n===`ru-RU`?TA(e):n===`zh-TW`?EA(e):DA(e)}),kA=()=>`Conversion rate in the selected period`,AA=()=>`Conversion rate in the selected period`,jA=()=>`Conversion rate in the selected period`,MA=()=>`Conversion rate in the selected period`,NA=()=>`當前篩選週期內成交率`,PA=()=>`当前筛选周期内成交率`,FA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kA(e):n===`ja-JP`?AA(e):n===`ko-KR`?jA(e):n===`ru-RU`?MA(e):n===`zh-TW`?NA(e):PA(e)}),IA=()=>`RPC Live Monitor`,LA=()=>`RPC Live Monitor`,RA=()=>`RPC Live Monitor`,zA=()=>`RPC Live Monitor`,BA=()=>`RPC 即時監控`,VA=()=>`RPC 实时监控`,HA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?IA(e):n===`ja-JP`?LA(e):n===`ko-KR`?RA(e):n===`ru-RU`?zA(e):n===`zh-TW`?BA(e):VA(e)}),UA=()=>`Real-time chain sync, RPC success rate, and runtime status.`,WA=()=>`Real-time chain sync, RPC success rate, and runtime status.`,GA=()=>`Real-time chain sync, RPC success rate, and runtime status.`,KA=()=>`Real-time chain sync, RPC success rate, and runtime status.`,qA=()=>`鏈上同步、RPC 成功率與執行狀態即時更新`,JA=()=>`链上同步、RPC 成功率与运行状态实时更新`,YA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?UA(e):n===`ja-JP`?WA(e):n===`ko-KR`?GA(e):n===`ru-RU`?KA(e):n===`zh-TW`?qA(e):JA(e)}),XA=()=>`Live`,ZA=()=>`Live`,QA=()=>`Live`,$A=()=>`Live`,ej=()=>`即時連線`,tj=()=>`实时连接`,nj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?XA(e):n===`ja-JP`?ZA(e):n===`ko-KR`?QA(e):n===`ru-RU`?$A(e):n===`zh-TW`?ej(e):tj(e)}),rj=()=>`Connecting`,ij=()=>`Connecting`,aj=()=>`Connecting`,oj=()=>`Connecting`,sj=()=>`連線中`,cj=()=>`连接中`,lj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rj(e):n===`ja-JP`?ij(e):n===`ko-KR`?aj(e):n===`ru-RU`?oj(e):n===`zh-TW`?sj(e):cj(e)}),uj=()=>`Reconnecting`,dj=()=>`Reconnecting`,fj=()=>`Reconnecting`,pj=()=>`Reconnecting`,mj=()=>`重新連線中`,hj=()=>`重连中`,gj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?uj(e):n===`ja-JP`?dj(e):n===`ko-KR`?fj(e):n===`ru-RU`?pj(e):n===`zh-TW`?mj(e):hj(e)}),_j=()=>`RPC stats unavailable`,vj=()=>`RPC stats unavailable`,yj=()=>`RPC stats unavailable`,bj=()=>`RPC stats unavailable`,xj=()=>`RPC 統計暫不可用`,Sj=()=>`RPC 统计暂不可用`,Cj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_j(e):n===`ja-JP`?vj(e):n===`ko-KR`?yj(e):n===`ru-RU`?bj(e):n===`zh-TW`?xj(e):Sj(e)}),wj=()=>`RPC Success Rate`,Tj=()=>`RPC Success Rate`,Ej=()=>`RPC Success Rate`,Dj=()=>`RPC Success Rate`,Oj=()=>`RPC 成功率`,kj=()=>`RPC 成功率`,Aj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wj(e):n===`ja-JP`?Tj(e):n===`ko-KR`?Ej(e):n===`ru-RU`?Dj(e):n===`zh-TW`?Oj(e):kj(e)}),jj=()=>`Active Links`,Mj=()=>`Active Links`,Nj=()=>`Active Links`,Pj=()=>`Active Links`,Fj=()=>`活躍鏈路`,Ij=()=>`活跃链路`,Lj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jj(e):n===`ja-JP`?Mj(e):n===`ko-KR`?Nj(e):n===`ru-RU`?Pj(e):n===`zh-TW`?Fj(e):Ij(e)}),Rj=()=>`Latest Block`,zj=()=>`Latest Block`,Bj=()=>`Latest Block`,Vj=()=>`Latest Block`,Hj=()=>`最新區塊`,Uj=()=>`最新区块`,Wj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Rj(e):n===`ja-JP`?zj(e):n===`ko-KR`?Bj(e):n===`ru-RU`?Vj(e):n===`zh-TW`?Hj(e):Uj(e)}),Gj=()=>`Needs Attention`,Kj=()=>`Needs Attention`,qj=()=>`Needs Attention`,Jj=()=>`Needs Attention`,Yj=()=>`需關注鏈路`,Xj=()=>`需关注链路`,Zj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Gj(e):n===`ja-JP`?Kj(e):n===`ko-KR`?qj(e):n===`ru-RU`?Jj(e):n===`zh-TW`?Yj(e):Xj(e)}),Qj=()=>`Chain Runtime`,$j=()=>`Chain Runtime`,eM=()=>`Chain Runtime`,tM=()=>`Chain Runtime`,nM=()=>`鏈執行狀態`,rM=()=>`链运行状态`,iM=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Qj(e):n===`ja-JP`?$j(e):n===`ko-KR`?eM(e):n===`ru-RU`?tM(e):n===`zh-TW`?nM(e):rM(e)}),aM=e=>`Updated ${e?.time}`,oM=e=>`Updated ${e?.time}`,sM=e=>`Updated ${e?.time}`,cM=e=>`Updated ${e?.time}`,lM=e=>`更新於 ${e?.time}`,uM=e=>`更新于 ${e?.time}`,dM=((e,t={})=>{let n=t.locale??m();return n===`en-US`?aM(e):n===`ja-JP`?oM(e):n===`ko-KR`?sM(e):n===`ru-RU`?cM(e):n===`zh-TW`?lM(e):uM(e)}),fM=()=>`No RPC runtime data`,pM=()=>`No RPC runtime data`,mM=()=>`No RPC runtime data`,hM=()=>`No RPC runtime data`,gM=()=>`暫無 RPC 執行資料`,_M=()=>`暂无 RPC 运行数据`,vM=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fM(e):n===`ja-JP`?pM(e):n===`ko-KR`?mM(e):n===`ru-RU`?hM(e):n===`zh-TW`?gM(e):_M(e)}),yM=()=>`OK`,bM=()=>`OK`,xM=()=>`OK`,SM=()=>`OK`,CM=()=>`正常`,wM=()=>`正常`,TM=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yM(e):n===`ja-JP`?bM(e):n===`ko-KR`?xM(e):n===`ru-RU`?SM(e):n===`zh-TW`?CM(e):wM(e)}),EM=()=>`Warning`,DM=()=>`Warning`,OM=()=>`Warning`,kM=()=>`Warning`,AM=()=>`波動`,jM=()=>`波动`,MM=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?EM(e):n===`ja-JP`?DM(e):n===`ko-KR`?OM(e):n===`ru-RU`?kM(e):n===`zh-TW`?AM(e):jM(e)}),NM=()=>`Down`,PM=()=>`Down`,FM=()=>`Down`,IM=()=>`Down`,LM=()=>`異常`,RM=()=>`异常`,zM=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?NM(e):n===`ja-JP`?PM(e):n===`ko-KR`?FM(e):n===`ru-RU`?IM(e):n===`zh-TW`?LM(e):RM(e)}),BM=()=>`Unknown`,VM=()=>`Unknown`,HM=()=>`Unknown`,UM=()=>`Unknown`,WM=()=>`未知`,GM=()=>`未知`,KM=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?BM(e):n===`ja-JP`?VM(e):n===`ko-KR`?HM(e):n===`ru-RU`?UM(e):n===`zh-TW`?WM(e):GM(e)}),qM=()=>`Disabled`,JM=()=>`Disabled`,YM=()=>`Disabled`,XM=()=>`Disabled`,ZM=()=>`停用`,QM=()=>`停用`,$M=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qM(e):n===`ja-JP`?JM(e):n===`ko-KR`?YM(e):n===`ru-RU`?XM(e):n===`zh-TW`?ZM(e):QM(e)}),eN=()=>`Success Rate`,tN=()=>`Success Rate`,nN=()=>`Success Rate`,rN=()=>`Success Rate`,iN=()=>`成功率`,aN=()=>`成功率`,oN=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?eN(e):n===`ja-JP`?tN(e):n===`ko-KR`?nN(e):n===`ru-RU`?rN(e):n===`zh-TW`?iN(e):aN(e)}),sN=()=>`Block Height`,cN=()=>`Block Height`,lN=()=>`Block Height`,uN=()=>`Block Height`,dN=()=>`區塊高度`,fN=()=>`区块高度`,pN=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sN(e):n===`ja-JP`?cN(e):n===`ko-KR`?lN(e):n===`ru-RU`?uN(e):n===`zh-TW`?dN(e):fN(e)}),mN=e=>`Synced ${e?.time}`,hN=e=>`Synced ${e?.time}`,gN=e=>`Synced ${e?.time}`,_N=e=>`Synced ${e?.time}`,vN=e=>`同步於 ${e?.time}`,yN=e=>`同步于 ${e?.time}`,bN=((e,t={})=>{let n=t.locale??m();return n===`en-US`?mN(e):n===`ja-JP`?hN(e):n===`ko-KR`?gN(e):n===`ru-RU`?_N(e):n===`zh-TW`?vN(e):yN(e)}),xN=()=>`Total Amount`,SN=()=>`Total Amount`,CN=()=>`Total Amount`,wN=()=>`Total Amount`,TN=()=>`總金額`,EN=()=>`总金额`,DN=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xN(e):n===`ja-JP`?SN(e):n===`ko-KR`?CN(e):n===`ru-RU`?wN(e):n===`zh-TW`?TN(e):EN(e)}),ON=()=>`Actual Amount`,kN=()=>`Actual Amount`,AN=()=>`Actual Amount`,jN=()=>`Actual Amount`,MN=()=>`實收金額`,NN=()=>`实收金额`,PN=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ON(e):n===`ja-JP`?kN(e):n===`ko-KR`?AN(e):n===`ru-RU`?jN(e):n===`zh-TW`?MN(e):NN(e)}),FN=()=>`Order Count`,IN=()=>`Order Count`,LN=()=>`Order Count`,RN=()=>`Order Count`,zN=()=>`訂單數`,BN=()=>`订单数`,VN=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?FN(e):n===`ja-JP`?IN(e):n===`ko-KR`?LN(e):n===`ru-RU`?RN(e):n===`zh-TW`?zN(e):BN(e)}),HN=()=>`Successful Orders`,UN=()=>`Successful Orders`,WN=()=>`Successful Orders`,GN=()=>`Successful Orders`,KN=()=>`成功訂單`,qN=()=>`成功订单`,JN=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?HN(e):n===`ja-JP`?UN(e):n===`ko-KR`?WN(e):n===`ru-RU`?GN(e):n===`zh-TW`?KN(e):qN(e)}),YN=()=>`Today`,XN=()=>`Today`,ZN=()=>`Today`,QN=()=>`Today`,$N=()=>`今日`,eP=()=>`今日`,tP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?YN(e):n===`ja-JP`?XN(e):n===`ko-KR`?ZN(e):n===`ru-RU`?QN(e):n===`zh-TW`?$N(e):eP(e)}),nP=()=>`7 days`,rP=()=>`7 days`,iP=()=>`7 days`,aP=()=>`7 days`,oP=()=>`7天`,sP=()=>`7天`,cP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nP(e):n===`ja-JP`?rP(e):n===`ko-KR`?iP(e):n===`ru-RU`?aP(e):n===`zh-TW`?oP(e):sP(e)}),lP=()=>`30 days`,uP=()=>`30 days`,dP=()=>`30 days`,fP=()=>`30 days`,pP=()=>`30天`,mP=()=>`30天`,hP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lP(e):n===`ja-JP`?uP(e):n===`ko-KR`?dP(e):n===`ru-RU`?fP(e):n===`zh-TW`?pP(e):mP(e)}),gP=()=>`Custom`,_P=()=>`Custom`,vP=()=>`Custom`,yP=()=>`Custom`,bP=()=>`自定義`,xP=()=>`自定义`,SP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gP(e):n===`ja-JP`?_P(e):n===`ko-KR`?vP(e):n===`ru-RU`?yP(e):n===`zh-TW`?bP(e):xP(e)}),CP=()=>`Close Order`,wP=()=>`Close Order`,TP=()=>`Close Order`,EP=()=>`Close Order`,DP=()=>`關閉訂單`,OP=()=>`关闭订单`,kP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?CP(e):n===`ja-JP`?wP(e):n===`ko-KR`?TP(e):n===`ru-RU`?EP(e):n===`zh-TW`?DP(e):OP(e)}),AP=()=>`Resend Callback`,jP=()=>`Resend Callback`,MP=()=>`Resend Callback`,NP=()=>`Resend Callback`,PP=()=>`回呼重發`,FP=()=>`回调重发`,IP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?AP(e):n===`ja-JP`?jP(e):n===`ko-KR`?MP(e):n===`ru-RU`?NP(e):n===`zh-TW`?PP(e):FP(e)}),LP=()=>`Please enter the block transaction ID`,RP=()=>`Please enter the block transaction ID`,zP=()=>`Please enter the block transaction ID`,BP=()=>`Please enter the block transaction ID`,VP=()=>`請輸入區塊交易 ID`,HP=()=>`请输入区块交易 ID`,UP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?LP(e):n===`ja-JP`?RP(e):n===`ko-KR`?zP(e):n===`ru-RU`?BP(e):n===`zh-TW`?VP(e):HP(e)}),WP=()=>`Order marked as paid`,GP=()=>`Order marked as paid`,KP=()=>`Order marked as paid`,qP=()=>`Order marked as paid`,JP=()=>`訂單已標記為已支付`,YP=()=>`订单已标记为已支付`,XP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?WP(e):n===`ja-JP`?GP(e):n===`ko-KR`?KP(e):n===`ru-RU`?qP(e):n===`zh-TW`?JP(e):YP(e)}),ZP=()=>`Order export failed`,QP=()=>`Order export failed`,$P=()=>`Order export failed`,eF=()=>`Order export failed`,tF=()=>`訂單匯出失敗`,nF=()=>`订单导出失败`,rF=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ZP(e):n===`ja-JP`?QP(e):n===`ko-KR`?$P(e):n===`ru-RU`?eF(e):n===`zh-TW`?tF(e):nF(e)}),iF=()=>`Order export succeeded`,aF=()=>`Order export succeeded`,oF=()=>`Order export succeeded`,sF=()=>`Order export succeeded`,cF=()=>`訂單匯出成功`,lF=()=>`订单导出成功`,uF=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?iF(e):n===`ja-JP`?aF(e):n===`ko-KR`?oF(e):n===`ru-RU`?sF(e):n===`zh-TW`?cF(e):lF(e)}),dF=()=>`Exporting...`,fF=()=>`Exporting...`,pF=()=>`Exporting...`,mF=()=>`Exporting...`,hF=()=>`匯出中...`,gF=()=>`导出中...`,_F=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dF(e):n===`ja-JP`?fF(e):n===`ko-KR`?pF(e):n===`ru-RU`?mF(e):n===`zh-TW`?hF(e):gF(e)}),vF=()=>`Export Orders`,yF=()=>`Export Orders`,bF=()=>`Export Orders`,xF=()=>`Export Orders`,SF=()=>`匯出訂單`,CF=()=>`导出订单`,wF=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vF(e):n===`ja-JP`?yF(e):n===`ko-KR`?bF(e):n===`ru-RU`?xF(e):n===`zh-TW`?SF(e):CF(e)}),TF=()=>`Search orders, filter by status, and perform manual payment / close / resend callback actions.`,EF=()=>`Search orders, filter by status, and perform manual payment / close / resend callback actions.`,DF=()=>`Search orders, filter by status, and perform manual payment / close / resend callback actions.`,OF=()=>`Search orders, filter by status, and perform manual payment / close / resend callback actions.`,kF=()=>`搜尋訂單、篩選狀態與執行補單/關閉/回呼操作。`,AF=()=>`搜索订单、筛选状态并执行补单 / 关闭 / 回调操作。`,jF=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?TF(e):n===`ja-JP`?EF(e):n===`ko-KR`?DF(e):n===`ru-RU`?OF(e):n===`zh-TW`?kF(e):AF(e)}),MF=()=>`Order Management`,NF=()=>`Order Management`,PF=()=>`Order Management`,FF=()=>`Order Management`,IF=()=>`訂單管理`,LF=()=>`订单管理`,RF=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?MF(e):n===`ja-JP`?NF(e):n===`ko-KR`?PF(e):n===`ru-RU`?FF(e):n===`zh-TW`?IF(e):LF(e)}),zF=()=>`Details`,BF=()=>`Details`,VF=()=>`Details`,HF=()=>`Details`,UF=()=>`詳情`,WF=()=>`详情`,GF=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zF(e):n===`ja-JP`?BF(e):n===`ko-KR`?VF(e):n===`ru-RU`?HF(e):n===`zh-TW`?UF(e):WF(e)}),KF=()=>`Manual Mark Paid`,qF=()=>`Manual Mark Paid`,JF=()=>`Manual Mark Paid`,YF=()=>`Manual Mark Paid`,XF=()=>`補單`,ZF=()=>`补单`,QF=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?KF(e):n===`ja-JP`?qF(e):n===`ko-KR`?JF(e):n===`ru-RU`?YF(e):n===`zh-TW`?XF(e):ZF(e)}),$F=()=>`Confirm`,eI=()=>`Confirm`,tI=()=>`Confirm`,nI=()=>`Confirm`,rI=()=>`確認`,iI=()=>`确认`,aI=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$F(e):n===`ja-JP`?eI(e):n===`ko-KR`?tI(e):n===`ru-RU`?nI(e):n===`zh-TW`?rI(e):iI(e)}),oI=e=>`You are about to perform the “${e?.action}” action on order ${e?.id}.`,sI=e=>`You are about to perform the “${e?.action}” action on order ${e?.id}.`,cI=e=>`You are about to perform the “${e?.action}” action on order ${e?.id}.`,lI=e=>`You are about to perform the “${e?.action}” action on order ${e?.id}.`,uI=e=>`即將對訂單 ${e?.id} 執行“${e?.action}”操作。`,dI=e=>`即将对订单 ${e?.id} 执行“${e?.action}”操作。`,fI=((e,t={})=>{let n=t.locale??m();return n===`en-US`?oI(e):n===`ja-JP`?sI(e):n===`ko-KR`?cI(e):n===`ru-RU`?lI(e):n===`zh-TW`?uI(e):dI(e)}),pI=e=>`Confirm ${e?.action}`,mI=e=>`Confirm ${e?.action}`,hI=e=>`Confirm ${e?.action}`,gI=e=>`Confirm ${e?.action}`,_I=e=>`${e?.action}確認`,vI=e=>`${e?.action}确认`,yI=((e,t={})=>{let n=t.locale??m();return n===`en-US`?pI(e):n===`ja-JP`?mI(e):n===`ko-KR`?hI(e):n===`ru-RU`?gI(e):n===`zh-TW`?_I(e):vI(e)}),bI=()=>`Mark as Paid`,xI=()=>`Mark as Paid`,SI=()=>`Mark as Paid`,CI=()=>`Mark as Paid`,wI=()=>`標記已支付`,TI=()=>`标记已支付`,EI=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bI(e):n===`ja-JP`?xI(e):n===`ko-KR`?SI(e):n===`ru-RU`?CI(e):n===`zh-TW`?wI(e):TI(e)}),DI=e=>`Fill in the on-chain transaction ID for order ${e?.id}.`,OI=e=>`Fill in the on-chain transaction ID for order ${e?.id}.`,kI=e=>`Fill in the on-chain transaction ID for order ${e?.id}.`,AI=e=>`Fill in the on-chain transaction ID for order ${e?.id}.`,jI=e=>`為訂單 ${e?.id} 填寫鏈上交易 ID。`,MI=e=>`为订单 ${e?.id} 填写链上交易 ID。`,NI=((e,t={})=>{let n=t.locale??m();return n===`en-US`?DI(e):n===`ja-JP`?OI(e):n===`ko-KR`?kI(e):n===`ru-RU`?AI(e):n===`zh-TW`?jI(e):MI(e)}),PI=()=>`Block Transaction ID`,FI=()=>`Block Transaction ID`,II=()=>`Block Transaction ID`,LI=()=>`Block Transaction ID`,RI=()=>`區塊交易 ID`,zI=()=>`区块交易 ID`,BI=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?PI(e):n===`ja-JP`?FI(e):n===`ko-KR`?II(e):n===`ru-RU`?LI(e):n===`zh-TW`?RI(e):zI(e)}),VI=()=>`Submitting...`,HI=()=>`Submitting...`,UI=()=>`Submitting...`,WI=()=>`Submitting...`,GI=()=>`提交中...`,KI=()=>`提交中...`,qI=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?VI(e):n===`ja-JP`?HI(e):n===`ko-KR`?UI(e):n===`ru-RU`?WI(e):n===`zh-TW`?GI(e):KI(e)}),JI=()=>`Confirm Manual Mark Paid`,YI=()=>`Confirm Manual Mark Paid`,XI=()=>`Confirm Manual Mark Paid`,ZI=()=>`Confirm Manual Mark Paid`,QI=()=>`確認補單`,$I=()=>`确认补单`,eL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?JI(e):n===`ja-JP`?YI(e):n===`ko-KR`?XI(e):n===`ru-RU`?ZI(e):n===`zh-TW`?QI(e):$I(e)}),tL=()=>`Status`,nL=()=>`Status`,rL=()=>`Status`,iL=()=>`Status`,aL=()=>`狀態`,oL=()=>`状态`,sL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tL(e):n===`ja-JP`?nL(e):n===`ko-KR`?rL(e):n===`ru-RU`?iL(e):n===`zh-TW`?aL(e):oL(e)}),cL=()=>`Chain`,lL=()=>`Chain`,uL=()=>`Chain`,dL=()=>`Chain`,fL=()=>`鏈`,pL=()=>`链`,mL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cL(e):n===`ja-JP`?lL(e):n===`ko-KR`?uL(e):n===`ru-RU`?dL(e):n===`zh-TW`?fL(e):pL(e)}),hL=()=>`Search order ID / merchant order ID...`,gL=()=>`Search order ID / merchant order ID...`,_L=()=>`Search order ID / merchant order ID...`,vL=()=>`Search order ID / merchant order ID...`,yL=()=>`搜尋訂單號 / 商戶訂單號...`,bL=()=>`搜索订单号 / 商户订单号...`,xL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hL(e):n===`ja-JP`?gL(e):n===`ko-KR`?_L(e):n===`ru-RU`?vL(e):n===`zh-TW`?yL(e):bL(e)}),SL=()=>`No order data`,CL=()=>`No order data`,wL=()=>`No order data`,TL=()=>`No order data`,EL=()=>`暫無訂單資料`,DL=()=>`暂无订单数据`,OL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?SL(e):n===`ja-JP`?CL(e):n===`ko-KR`?wL(e):n===`ru-RU`?TL(e):n===`zh-TW`?EL(e):DL(e)}),kL=()=>`Status`,AL=()=>`Status`,jL=()=>`Status`,ML=()=>`Status`,NL=()=>`狀態`,PL=()=>`状态`,FL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kL(e):n===`ja-JP`?AL(e):n===`ko-KR`?jL(e):n===`ru-RU`?ML(e):n===`zh-TW`?NL(e):PL(e)}),IL=()=>`Merchant Order ID`,LL=()=>`Merchant Order ID`,RL=()=>`Merchant Order ID`,zL=()=>`Merchant Order ID`,BL=()=>`商戶訂單號`,VL=()=>`商户订单号`,HL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?IL(e):n===`ja-JP`?LL(e):n===`ko-KR`?RL(e):n===`ru-RU`?zL(e):n===`zh-TW`?BL(e):VL(e)}),UL=()=>`Order Name`,WL=()=>`Order Name`,GL=()=>`Order Name`,KL=()=>`Order Name`,qL=()=>`訂單名稱`,JL=()=>`订单名称`,YL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?UL(e):n===`ja-JP`?WL(e):n===`ko-KR`?GL(e):n===`ru-RU`?KL(e):n===`zh-TW`?qL(e):JL(e)}),XL=()=>`Fiat Amount`,ZL=()=>`Fiat Amount`,QL=()=>`Fiat Amount`,$L=()=>`Fiat Amount`,eR=()=>`法幣金額`,tR=()=>`法币金额`,nR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?XL(e):n===`ja-JP`?ZL(e):n===`ko-KR`?QL(e):n===`ru-RU`?$L(e):n===`zh-TW`?eR(e):tR(e)}),rR=()=>`Token Amount`,iR=()=>`Token Amount`,aR=()=>`Token Amount`,oR=()=>`Token Amount`,sR=()=>`代幣金額`,cR=()=>`代币金额`,lR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rR(e):n===`ja-JP`?iR(e):n===`ko-KR`?aR(e):n===`ru-RU`?oR(e):n===`zh-TW`?sR(e):cR(e)}),uR=()=>`Chain`,dR=()=>`Chain`,fR=()=>`Chain`,pR=()=>`Chain`,mR=()=>`鏈`,hR=()=>`链`,gR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?uR(e):n===`ja-JP`?dR(e):n===`ko-KR`?fR(e):n===`ru-RU`?pR(e):n===`zh-TW`?mR(e):hR(e)}),_R=()=>`Address`,vR=()=>`Address`,yR=()=>`Address`,bR=()=>`Address`,xR=()=>`地址`,SR=()=>`地址`,CR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_R(e):n===`ja-JP`?vR(e):n===`ko-KR`?yR(e):n===`ru-RU`?bR(e):n===`zh-TW`?xR(e):SR(e)}),wR=()=>`Created At`,TR=()=>`Created At`,ER=()=>`Created At`,DR=()=>`Created At`,OR=()=>`建立時間`,kR=()=>`创建时间`,AR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wR(e):n===`ja-JP`?TR(e):n===`ko-KR`?ER(e):n===`ru-RU`?DR(e):n===`zh-TW`?OR(e):kR(e)}),jR=()=>`Updated At`,MR=()=>`Updated At`,NR=()=>`Updated At`,PR=()=>`Updated At`,FR=()=>`更新時間`,IR=()=>`更新时间`,LR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jR(e):n===`ja-JP`?MR(e):n===`ko-KR`?NR(e):n===`ru-RU`?PR(e):n===`zh-TW`?FR(e):IR(e)}),RR=()=>`On-chain Transaction ID`,zR=()=>`On-chain Transaction ID`,BR=()=>`On-chain Transaction ID`,VR=()=>`On-chain Transaction ID`,HR=()=>`鏈上交易 ID`,UR=()=>`链上交易 ID`,WR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?RR(e):n===`ja-JP`?zR(e):n===`ko-KR`?BR(e):n===`ru-RU`?VR(e):n===`zh-TW`?HR(e):UR(e)}),GR=()=>`Assigned Address`,KR=()=>`Assigned Address`,qR=()=>`Assigned Address`,JR=()=>`Assigned Address`,YR=()=>`已分配地址`,XR=()=>`已分配地址`,ZR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?GR(e):n===`ja-JP`?KR(e):n===`ko-KR`?qR(e):n===`ru-RU`?JR(e):n===`zh-TW`?YR(e):XR(e)}),QR=()=>`Callback Status`,$R=()=>`Callback Status`,ez=()=>`Callback Status`,tz=()=>`Callback Status`,nz=()=>`回呼狀態`,rz=()=>`回调状态`,iz=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?QR(e):n===`ja-JP`?$R(e):n===`ko-KR`?ez(e):n===`ru-RU`?tz(e):n===`zh-TW`?nz(e):rz(e)}),az=()=>`Callback Count`,oz=()=>`Callback Count`,sz=()=>`Callback Count`,cz=()=>`Callback Count`,lz=()=>`回呼次數`,uz=()=>`回调次数`,dz=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?az(e):n===`ja-JP`?oz(e):n===`ko-KR`?sz(e):n===`ru-RU`?cz(e):n===`zh-TW`?lz(e):uz(e)}),fz=()=>`Notify URL`,pz=()=>`Notify URL`,mz=()=>`Notify URL`,hz=()=>`Notify URL`,gz=()=>`通知地址`,_z=()=>`通知地址`,vz=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fz(e):n===`ja-JP`?pz(e):n===`ko-KR`?mz(e):n===`ru-RU`?hz(e):n===`zh-TW`?gz(e):_z(e)}),yz=()=>`Redirect URL`,bz=()=>`Redirect URL`,xz=()=>`Redirect URL`,Sz=()=>`Redirect URL`,Cz=()=>`跳轉地址`,wz=()=>`跳转地址`,Tz=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yz(e):n===`ja-JP`?bz(e):n===`ko-KR`?xz(e):n===`ru-RU`?Sz(e):n===`zh-TW`?Cz(e):wz(e)}),Ez=()=>`Actions`,Dz=()=>`Actions`,Oz=()=>`Actions`,kz=()=>`Actions`,Az=()=>`操作`,jz=()=>`操作`,Mz=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ez(e):n===`ja-JP`?Dz(e):n===`ko-KR`?Oz(e):n===`ru-RU`?kz(e):n===`zh-TW`?Az(e):jz(e)}),Nz=()=>`Yes`,Pz=()=>`Yes`,Fz=()=>`Yes`,Iz=()=>`Yes`,Lz=()=>`是`,Rz=()=>`是`,zz=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Nz(e):n===`ja-JP`?Pz(e):n===`ko-KR`?Fz(e):n===`ru-RU`?Iz(e):n===`zh-TW`?Lz(e):Rz(e)}),Bz=()=>`No`,Vz=()=>`No`,Hz=()=>`No`,Uz=()=>`No`,Wz=()=>`否`,Gz=()=>`否`,Kz=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Bz(e):n===`ja-JP`?Vz(e):n===`ko-KR`?Hz(e):n===`ru-RU`?Uz(e):n===`zh-TW`?Wz(e):Gz(e)}),qz=()=>`Parent order callback succeeded`,Jz=()=>`Parent order callback succeeded`,Yz=()=>`Parent order callback succeeded`,Xz=()=>`Parent order callback succeeded`,Zz=()=>`父訂單回呼成功`,Qz=()=>`父订单回调成功`,$z=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qz(e):n===`ja-JP`?Jz(e):n===`ko-KR`?Yz(e):n===`ru-RU`?Xz(e):n===`zh-TW`?Zz(e):Qz(e)}),eB=()=>`Child order delegates callback to parent`,tB=()=>`Child order delegates callback to parent`,nB=()=>`Child order delegates callback to parent`,rB=()=>`Child order delegates callback to parent`,iB=()=>`子訂單不參與回呼,交由父訂單回呼`,aB=()=>`子订单不参与回调,交由父订单回调`,oB=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?eB(e):n===`ja-JP`?tB(e):n===`ko-KR`?nB(e):n===`ru-RU`?rB(e):n===`zh-TW`?iB(e):aB(e)}),sB=()=>`Not Called Back / Failed`,cB=()=>`Not Called Back / Failed`,lB=()=>`Not Called Back / Failed`,uB=()=>`Not Called Back / Failed`,dB=()=>`未回呼/失敗`,fB=()=>`未回调 / 失败`,pB=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sB(e):n===`ja-JP`?cB(e):n===`ko-KR`?lB(e):n===`ru-RU`?uB(e):n===`zh-TW`?dB(e):fB(e)}),mB=()=>`View Details`,hB=()=>`View Details`,gB=()=>`View Details`,_B=()=>`View Details`,vB=()=>`檢視詳情`,yB=()=>`查看详情`,bB=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mB(e):n===`ja-JP`?hB(e):n===`ko-KR`?gB(e):n===`ru-RU`?_B(e):n===`zh-TW`?vB(e):yB(e)}),xB=()=>`Manual Mark Paid`,SB=()=>`Manual Mark Paid`,CB=()=>`Manual Mark Paid`,wB=()=>`Manual Mark Paid`,TB=()=>`手動補單`,EB=()=>`手动补单`,DB=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xB(e):n===`ja-JP`?SB(e):n===`ko-KR`?CB(e):n===`ru-RU`?wB(e):n===`zh-TW`?TB(e):EB(e)}),OB=()=>`Open menu`,kB=()=>`Open menu`,AB=()=>`Open menu`,jB=()=>`Open menu`,MB=()=>`開啟選單`,NB=()=>`开启选单`,PB=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?OB(e):n===`ja-JP`?kB(e):n===`ko-KR`?AB(e):n===`ru-RU`?jB(e):n===`zh-TW`?MB(e):NB(e)}),FB=()=>`Merchant Order ID`,IB=()=>`Merchant Order ID`,LB=()=>`Merchant Order ID`,RB=()=>`Merchant Order ID`,zB=()=>`商戶訂單號`,BB=()=>`商户订单号`,VB=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?FB(e):n===`ja-JP`?IB(e):n===`ko-KR`?LB(e):n===`ru-RU`?RB(e):n===`zh-TW`?zB(e):BB(e)}),HB=()=>`Order Name`,UB=()=>`Order Name`,WB=()=>`Order Name`,GB=()=>`Order Name`,KB=()=>`訂單名稱`,qB=()=>`订单名称`,JB=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?HB(e):n===`ja-JP`?UB(e):n===`ko-KR`?WB(e):n===`ru-RU`?GB(e):n===`zh-TW`?KB(e):qB(e)}),YB=()=>`Amount`,XB=()=>`Amount`,ZB=()=>`Amount`,QB=()=>`Amount`,$B=()=>`金額`,eV=()=>`金额`,tV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?YB(e):n===`ja-JP`?XB(e):n===`ko-KR`?ZB(e):n===`ru-RU`?QB(e):n===`zh-TW`?$B(e):eV(e)}),nV=()=>`Actual Paid`,rV=()=>`Actual Paid`,iV=()=>`Actual Paid`,aV=()=>`Actual Paid`,oV=()=>`實付`,sV=()=>`实付`,cV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nV(e):n===`ja-JP`?rV(e):n===`ko-KR`?iV(e):n===`ru-RU`?aV(e):n===`zh-TW`?oV(e):sV(e)}),lV=()=>`Chain`,uV=()=>`Chain`,dV=()=>`Chain`,fV=()=>`Chain`,pV=()=>`鏈`,mV=()=>`链`,hV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lV(e):n===`ja-JP`?uV(e):n===`ko-KR`?dV(e):n===`ru-RU`?fV(e):n===`zh-TW`?pV(e):mV(e)}),gV=()=>`Receive Address`,_V=()=>`Receive Address`,vV=()=>`Receive Address`,yV=()=>`Receive Address`,bV=()=>`收款地址`,xV=()=>`收款地址`,SV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gV(e):n===`ja-JP`?_V(e):n===`ko-KR`?vV(e):n===`ru-RU`?yV(e):n===`zh-TW`?bV(e):xV(e)}),CV=()=>`Callback URL`,wV=()=>`Callback URL`,TV=()=>`Callback URL`,EV=()=>`Callback URL`,DV=()=>`回呼地址`,OV=()=>`回调地址`,kV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?CV(e):n===`ja-JP`?wV(e):n===`ko-KR`?TV(e):n===`ru-RU`?EV(e):n===`zh-TW`?DV(e):OV(e)}),AV=()=>`Redirect URL`,jV=()=>`Redirect URL`,MV=()=>`Redirect URL`,NV=()=>`Redirect URL`,PV=()=>`跳轉地址`,FV=()=>`跳转地址`,IV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?AV(e):n===`ja-JP`?jV(e):n===`ko-KR`?MV(e):n===`ru-RU`?NV(e):n===`zh-TW`?PV(e):FV(e)}),LV=()=>`Block Transaction ID`,RV=()=>`Block Transaction ID`,zV=()=>`Block Transaction ID`,BV=()=>`Block Transaction ID`,VV=()=>`區塊交易 ID`,HV=()=>`区块交易 ID`,UV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?LV(e):n===`ja-JP`?RV(e):n===`ko-KR`?zV(e):n===`ru-RU`?BV(e):n===`zh-TW`?VV(e):HV(e)}),WV=()=>`Parent Order`,GV=()=>`Parent Order`,KV=()=>`Parent Order`,qV=()=>`Parent Order`,JV=()=>`父訂單`,YV=()=>`父订单`,XV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?WV(e):n===`ja-JP`?GV(e):n===`ko-KR`?KV(e):n===`ru-RU`?qV(e):n===`zh-TW`?JV(e):YV(e)}),ZV=()=>`Created At`,QV=()=>`Created At`,$V=()=>`Created At`,eH=()=>`Created At`,tH=()=>`建立時間`,nH=()=>`创建时间`,rH=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ZV(e):n===`ja-JP`?QV(e):n===`ko-KR`?$V(e):n===`ru-RU`?eH(e):n===`zh-TW`?tH(e):nH(e)}),iH=()=>`Updated At`,aH=()=>`Updated At`,oH=()=>`Updated At`,sH=()=>`Updated At`,cH=()=>`更新時間`,lH=()=>`更新时间`,uH=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?iH(e):n===`ja-JP`?aH(e):n===`ko-KR`?oH(e):n===`ru-RU`?sH(e):n===`zh-TW`?cH(e):lH(e)}),dH=()=>`Order Details`,fH=()=>`Order Details`,pH=()=>`Order Details`,mH=()=>`Order Details`,hH=()=>`訂單詳情`,gH=()=>`订单详情`,_H=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dH(e):n===`ja-JP`?fH(e):n===`ko-KR`?pH(e):n===`ru-RU`?mH(e):n===`zh-TW`?hH(e):gH(e)}),vH=()=>`View the full API response for the current order.`,yH=()=>`View the full API response for the current order.`,bH=()=>`View the full API response for the current order.`,xH=()=>`View the full API response for the current order.`,SH=()=>`檢視當前訂單的完整介面返回資訊。`,CH=()=>`查看当前订单的完整接口返回信息。`,wH=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vH(e):n===`ja-JP`?yH(e):n===`ko-KR`?bH(e):n===`ru-RU`?xH(e):n===`zh-TW`?SH(e):CH(e)}),TH=()=>`Loading...`,EH=()=>`Loading...`,DH=()=>`Loading...`,OH=()=>`Loading...`,kH=()=>`載入中...`,AH=()=>`加载中...`,jH=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?TH(e):n===`ja-JP`?EH(e):n===`ko-KR`?DH(e):n===`ru-RU`?OH(e):n===`zh-TW`?kH(e):AH(e)}),MH=()=>`Supported Payment Assets`,NH=()=>`Supported Payment Assets`,PH=()=>`Supported Payment Assets`,FH=()=>`Supported Payment Assets`,IH=()=>`收款資產`,LH=()=>`收款资产`,RH=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?MH(e):n===`ja-JP`?NH(e):n===`ko-KR`?PH(e):n===`ru-RU`?FH(e):n===`zh-TW`?IH(e):LH(e)}),zH=()=>`Browse the currently supported networks and tokens without leaving this page.`,BH=()=>`Browse the currently supported networks and tokens without leaving this page.`,VH=()=>`Browse the currently supported networks and tokens without leaving this page.`,HH=()=>`Browse the currently supported networks and tokens without leaving this page.`,UH=()=>`在當前頁面直接檢視支援的網路與代幣列表。`,WH=()=>`在当前页面直接查看支持的网络与代币列表。`,GH=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zH(e):n===`ja-JP`?BH(e):n===`ko-KR`?VH(e):n===`ru-RU`?HH(e):n===`zh-TW`?UH(e):WH(e)}),KH=()=>`Chain`,qH=()=>`Chain`,JH=()=>`Chain`,YH=()=>`Chain`,XH=()=>`鏈`,ZH=()=>`链`,QH=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?KH(e):n===`ja-JP`?qH(e):n===`ko-KR`?JH(e):n===`ru-RU`?YH(e):n===`zh-TW`?XH(e):ZH(e)}),$H=()=>`Search chains or tokens...`,eU=()=>`Search chains or tokens...`,tU=()=>`Search chains or tokens...`,nU=()=>`Search chains or tokens...`,rU=()=>`搜尋鏈或代幣...`,iU=()=>`搜索链或代币...`,aU=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$H(e):n===`ja-JP`?eU(e):n===`ko-KR`?tU(e):n===`ru-RU`?nU(e):n===`zh-TW`?rU(e):iU(e)}),oU=()=>`No payment asset data`,sU=()=>`No payment asset data`,cU=()=>`No payment asset data`,lU=()=>`No payment asset data`,uU=()=>`暫無收款資產資料`,dU=()=>`暂无收款资产数据`,fU=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?oU(e):n===`ja-JP`?sU(e):n===`ko-KR`?cU(e):n===`ru-RU`?lU(e):n===`zh-TW`?uU(e):dU(e)}),pU=()=>`Chain`,mU=()=>`Chain`,hU=()=>`Chain`,gU=()=>`Chain`,_U=()=>`鏈`,vU=()=>`链`,yU=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pU(e):n===`ja-JP`?mU(e):n===`ko-KR`?hU(e):n===`ru-RU`?gU(e):n===`zh-TW`?_U(e):vU(e)}),bU=()=>`Supported Tokens`,xU=()=>`Supported Tokens`,SU=()=>`Supported Tokens`,CU=()=>`Supported Tokens`,wU=()=>`支援代幣`,TU=()=>`支持代币`,EU=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bU(e):n===`ja-JP`?xU(e):n===`ko-KR`?SU(e):n===`ru-RU`?CU(e):n===`zh-TW`?wU(e):TU(e)}),DU=()=>`Manage supported payment assets and integration guides in one place.`,OU=()=>`Manage supported payment assets and integration guides in one place.`,kU=()=>`Manage supported payment assets and integration guides in one place.`,AU=()=>`Manage supported payment assets and integration guides in one place.`,jU=()=>`統一管理收款資產與各類支付接入配置。`,MU=()=>`统一管理收款资产与各类支付接入配置。`,NU=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?DU(e):n===`ja-JP`?OU(e):n===`ko-KR`?kU(e):n===`ru-RU`?AU(e):n===`zh-TW`?jU(e):MU(e)}),PU=()=>`Supported Integrations`,FU=()=>`Supported Integrations`,IU=()=>`Supported Integrations`,LU=()=>`Supported Integrations`,RU=()=>`支援的接入方式`,zU=()=>`支持的接入方式`,BU=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?PU(e):n===`ja-JP`?FU(e):n===`ko-KR`?IU(e):n===`ru-RU`?LU(e):n===`zh-TW`?RU(e):zU(e)}),VU=()=>`Entry endpoints, required configuration keys, and callback rules for each integration.`,HU=()=>`Entry endpoints, required configuration keys, and callback rules for each integration.`,UU=()=>`Entry endpoints, required configuration keys, and callback rules for each integration.`,WU=()=>`Entry endpoints, required configuration keys, and callback rules for each integration.`,GU=()=>`各接入方式的入口端點、關鍵配置項與回呼要求一覽。`,KU=()=>`各接入方式的入口端点、关键配置项与回调要求一览。`,qU=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?VU(e):n===`ja-JP`?HU(e):n===`ko-KR`?UU(e):n===`ru-RU`?WU(e):n===`zh-TW`?GU(e):KU(e)}),JU=()=>`Name`,YU=()=>`Name`,XU=()=>`Name`,ZU=()=>`Name`,QU=()=>`名稱`,$U=()=>`名称`,eW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?JU(e):n===`ja-JP`?YU(e):n===`ko-KR`?XU(e):n===`ru-RU`?ZU(e):n===`zh-TW`?QU(e):$U(e)}),tW=()=>`Entry`,nW=()=>`Entry`,rW=()=>`Entry`,iW=()=>`Entry`,aW=()=>`接入入口`,oW=()=>`接入入口`,sW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tW(e):n===`ja-JP`?nW(e):n===`ko-KR`?rW(e):n===`ru-RU`?iW(e):n===`zh-TW`?aW(e):oW(e)}),cW=()=>`Request Body`,lW=()=>`Request Body`,uW=()=>`Request Body`,dW=()=>`Request Body`,fW=()=>`請求體`,pW=()=>`请求体`,mW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cW(e):n===`ja-JP`?lW(e):n===`ko-KR`?uW(e):n===`ru-RU`?dW(e):n===`zh-TW`?fW(e):pW(e)}),hW=()=>`Callback`,gW=()=>`Callback`,_W=()=>`Callback`,vW=()=>`Callback`,yW=()=>`回呼要求`,bW=()=>`回调要求`,xW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hW(e):n===`ja-JP`?gW(e):n===`ko-KR`?_W(e):n===`ru-RU`?vW(e):n===`zh-TW`?yW(e):bW(e)}),SW=()=>`Verify signature and return plain text ok; payload includes trade_id · order_id · status · actual_amount · signature`,CW=()=>`Verify signature and return plain text ok; payload includes trade_id · order_id · status · actual_amount · signature`,wW=()=>`Verify signature and return plain text ok; payload includes trade_id · order_id · status · actual_amount · signature`,TW=()=>`Verify signature and return plain text ok; payload includes trade_id · order_id · status · actual_amount · signature`,EW=()=>`驗籤後返回純文字 ok;回呼含 trade_id · order_id · status · actual_amount · signature`,DW=()=>`验签后返回纯文本 ok;回调包含 trade_id · order_id · status · actual_amount · signature`,OW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?SW(e):n===`ja-JP`?CW(e):n===`ko-KR`?wW(e):n===`ru-RU`?TW(e):n===`zh-TW`?EW(e):DW(e)}),kW=()=>`Verify signature and return plain text ok; EPay-style fields (trade_no · out_trade_no · trade_status)`,AW=()=>`Verify signature and return plain text ok; EPay-style fields (trade_no · out_trade_no · trade_status)`,jW=()=>`Verify signature and return plain text ok; EPay-style fields (trade_no · out_trade_no · trade_status)`,MW=()=>`Verify signature and return plain text ok; EPay-style fields (trade_no · out_trade_no · trade_status)`,NW=()=>`驗籤後返回純文字 ok;回呼欄位相容 EPay 風格(trade_no · out_trade_no · trade_status)`,PW=()=>`验签后返回纯文本 ok;回调字段兼容 EPay 风格(trade_no · out_trade_no · trade_status)`,FW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kW(e):n===`ja-JP`?AW(e):n===`ko-KR`?jW(e):n===`ru-RU`?MW(e):n===`zh-TW`?NW(e):PW(e)}),IW=()=>`Callback URL must use HTTPS, must not be an IP address, and must have a valid TLS certificate.`,LW=()=>`Callback URL must use HTTPS, must not be an IP address, and must have a valid TLS certificate.`,RW=()=>`Callback URL must use HTTPS, must not be an IP address, and must have a valid TLS certificate.`,zW=()=>`Callback URL must use HTTPS, must not be an IP address, and must have a valid TLS certificate.`,BW=()=>`回呼地址必須使用 HTTPS,不可以是 IP 地址,TLS 憑證必須有效。`,VW=()=>`回调地址必须使用 HTTPS,不可以是 IP 地址,TLS 证书必须有效。`,HW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?IW(e):n===`ja-JP`?LW(e):n===`ko-KR`?RW(e):n===`ru-RU`?zW(e):n===`zh-TW`?BW(e):VW(e)}),UW=()=>`Wallet deleted successfully`,WW=()=>`Wallet deleted successfully`,GW=()=>`Wallet deleted successfully`,KW=()=>`Wallet deleted successfully`,qW=()=>`錢包刪除成功`,JW=()=>`钱包删除成功`,YW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?UW(e):n===`ja-JP`?WW(e):n===`ko-KR`?GW(e):n===`ru-RU`?KW(e):n===`zh-TW`?qW(e):JW(e)}),XW=()=>`Status updated`,ZW=()=>`Status updated`,QW=()=>`Status updated`,$W=()=>`Status updated`,eG=()=>`狀態已更新`,tG=()=>`状态已更新`,nG=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?XW(e):n===`ja-JP`?ZW(e):n===`ko-KR`?QW(e):n===`ru-RU`?$W(e):n===`zh-TW`?eG(e):tG(e)}),rG=()=>`Please configure chains and tokens in chain management first`,iG=()=>`Please configure chains and tokens in chain management first`,aG=()=>`Please configure chains and tokens in chain management first`,oG=()=>`Please configure chains and tokens in chain management first`,sG=()=>`請先在鏈管理中配置鏈與代幣`,cG=()=>`请先在链管理中配置链与代币`,lG=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rG(e):n===`ja-JP`?iG(e):n===`ko-KR`?aG(e):n===`ru-RU`?oG(e):n===`zh-TW`?sG(e):cG(e)}),uG=()=>`Please enter at least one wallet address`,dG=()=>`Please enter at least one wallet address`,fG=()=>`Please enter at least one wallet address`,pG=()=>`Please enter at least one wallet address`,mG=()=>`請輸入至少一個錢包地址`,hG=()=>`请输入至少一个钱包地址`,gG=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?uG(e):n===`ja-JP`?dG(e):n===`ko-KR`?fG(e):n===`ru-RU`?pG(e):n===`zh-TW`?mG(e):hG(e)}),_G=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}`,vG=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}`,yG=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}`,bG=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}`,xG=e=>`批次匯入完成,成功 ${e?.success}/${e?.total}`,SG=e=>`批量导入完成,成功 ${e?.success}/${e?.total}`,CG=((e,t={})=>{let n=t.locale??m();return n===`en-US`?_G(e):n===`ja-JP`?vG(e):n===`ko-KR`?yG(e):n===`ru-RU`?bG(e):n===`zh-TW`?xG(e):SG(e)}),wG=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}. Failed reason: ${e?.error}`,TG=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}. Failed reason: ${e?.error}`,EG=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}. Failed reason: ${e?.error}`,DG=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}. Failed reason: ${e?.error}`,OG=e=>`批次匯入完成,成功 ${e?.success}/${e?.total},失敗原因:${e?.error}`,kG=e=>`批量导入完成,成功 ${e?.success}/${e?.total},失败原因:${e?.error}`,AG=((e,t={})=>{let n=t.locale??m();return n===`en-US`?wG(e):n===`ja-JP`?TG(e):n===`ko-KR`?EG(e):n===`ru-RU`?DG(e):n===`zh-TW`?OG(e):kG(e)}),jG=()=>`Batch Import`,MG=()=>`Batch Import`,NG=()=>`Batch Import`,PG=()=>`Batch Import`,FG=()=>`批次匯入`,IG=()=>`批量导入`,LG=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jG(e):n===`ja-JP`?MG(e):n===`ko-KR`?NG(e):n===`ru-RU`?PG(e):n===`zh-TW`?FG(e):IG(e)}),RG=()=>`Add Wallet`,zG=()=>`Add Wallet`,BG=()=>`Add Wallet`,VG=()=>`Add Wallet`,HG=()=>`新增錢包`,UG=()=>`新增钱包`,WG=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?RG(e):n===`ja-JP`?zG(e):n===`ko-KR`?BG(e):n===`ru-RU`?VG(e):n===`zh-TW`?HG(e):UG(e)}),GG=()=>`Manage payment addresses, balance status, and remarks.`,KG=()=>`Manage payment addresses, balance status, and remarks.`,qG=()=>`Manage payment addresses, balance status, and remarks.`,JG=()=>`Manage payment addresses, balance status, and remarks.`,YG=()=>`管理收款地址、餘額狀態與備註。`,XG=()=>`管理收款地址、余额状态与备注。`,ZG=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?GG(e):n===`ja-JP`?KG(e):n===`ko-KR`?qG(e):n===`ru-RU`?JG(e):n===`zh-TW`?YG(e):XG(e)}),QG=()=>`Address Management`,$G=()=>`Address Management`,eK=()=>`Address Management`,tK=()=>`Address Management`,nK=()=>`地址管理`,rK=()=>`地址管理`,iK=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?QG(e):n===`ja-JP`?$G(e):n===`ko-KR`?eK(e):n===`ru-RU`?tK(e):n===`zh-TW`?nK(e):rK(e)}),aK=()=>`Delete`,oK=()=>`Delete`,sK=()=>`Delete`,cK=()=>`Delete`,lK=()=>`刪除`,uK=()=>`删除`,dK=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?aK(e):n===`ja-JP`?oK(e):n===`ko-KR`?sK(e):n===`ru-RU`?cK(e):n===`zh-TW`?lK(e):uK(e)}),fK=()=>`Confirm`,pK=()=>`Confirm`,mK=()=>`Confirm`,hK=()=>`Confirm`,gK=()=>`確認`,_K=()=>`确认`,vK=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fK(e):n===`ja-JP`?pK(e):n===`ko-KR`?mK(e):n===`ru-RU`?hK(e):n===`zh-TW`?gK(e):_K(e)}),yK=e=>`Perform “${e?.action}” on wallet ${e?.address}.`,bK=e=>`Perform “${e?.action}” on wallet ${e?.address}.`,xK=e=>`Perform “${e?.action}” on wallet ${e?.address}.`,SK=e=>`Perform “${e?.action}” on wallet ${e?.address}.`,CK=e=>`將對錢包 ${e?.address} 執行“${e?.action}”操作。`,wK=e=>`将对钱包 ${e?.address} 执行“${e?.action}”操作。`,TK=((e,t={})=>{let n=t.locale??m();return n===`en-US`?yK(e):n===`ja-JP`?bK(e):n===`ko-KR`?xK(e):n===`ru-RU`?SK(e):n===`zh-TW`?CK(e):wK(e)}),EK=()=>`Delete Wallet`,DK=()=>`Delete Wallet`,OK=()=>`Delete Wallet`,kK=()=>`Delete Wallet`,AK=()=>`刪除錢包`,jK=()=>`删除钱包`,MK=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?EK(e):n===`ja-JP`?DK(e):n===`ko-KR`?OK(e):n===`ru-RU`?kK(e):n===`zh-TW`?AK(e):jK(e)}),NK=()=>`Confirm Wallet Action`,PK=()=>`Confirm Wallet Action`,FK=()=>`Confirm Wallet Action`,IK=()=>`Confirm Wallet Action`,LK=()=>`錢包操作確認`,RK=()=>`钱包操作确认`,zK=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?NK(e):n===`ja-JP`?PK(e):n===`ko-KR`?FK(e):n===`ru-RU`?IK(e):n===`zh-TW`?LK(e):RK(e)}),BK=()=>`Batch Import Wallets`,VK=()=>`Batch Import Wallets`,HK=()=>`Batch Import Wallets`,UK=()=>`Batch Import Wallets`,WK=()=>`批次匯入錢包`,GK=()=>`批量导入钱包`,KK=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?BK(e):n===`ja-JP`?VK(e):n===`ko-KR`?HK(e):n===`ru-RU`?UK(e):n===`zh-TW`?WK(e):GK(e)}),qK=()=>`One wallet address per line, imported as watch-only wallets.`,JK=()=>`One wallet address per line, imported as watch-only wallets.`,YK=()=>`One wallet address per line, imported as watch-only wallets.`,XK=()=>`One wallet address per line, imported as watch-only wallets.`,ZK=()=>`每行一個錢包地址,匯入為觀察錢包。`,QK=()=>`每行一个钱包地址,导入为观察钱包。`,$K=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qK(e):n===`ja-JP`?JK(e):n===`ko-KR`?YK(e):n===`ru-RU`?XK(e):n===`zh-TW`?ZK(e):QK(e)}),eq=()=>`Network`,tq=()=>`Network`,nq=()=>`Network`,rq=()=>`Network`,iq=()=>`網路`,aq=()=>`网络`,oq=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?eq(e):n===`ja-JP`?tq(e):n===`ko-KR`?nq(e):n===`ru-RU`?rq(e):n===`zh-TW`?iq(e):aq(e)}),sq=()=>`Chain`,cq=()=>`Chain`,lq=()=>`Chain`,uq=()=>`Chain`,dq=()=>`鏈`,fq=()=>`链`,pq=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sq(e):n===`ja-JP`?cq(e):n===`ko-KR`?lq(e):n===`ru-RU`?uq(e):n===`zh-TW`?dq(e):fq(e)}),mq=()=>`Select chain`,hq=()=>`Select chain`,gq=()=>`Select chain`,_q=()=>`Select chain`,vq=()=>`選擇鏈`,yq=()=>`选择链`,bq=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mq(e):n===`ja-JP`?hq(e):n===`ko-KR`?gq(e):n===`ru-RU`?_q(e):n===`zh-TW`?vq(e):yq(e)}),xq=()=>`Unnamed chain`,Sq=()=>`Unnamed chain`,Cq=()=>`Unnamed chain`,wq=()=>`Unnamed chain`,Tq=()=>`未命名鏈`,Eq=()=>`未命名链`,Dq=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xq(e):n===`ja-JP`?Sq(e):n===`ko-KR`?Cq(e):n===`ru-RU`?wq(e):n===`zh-TW`?Tq(e):Eq(e)}),Oq=()=>`Wallet Address`,kq=()=>`Wallet Address`,Aq=()=>`Wallet Address`,jq=()=>`Wallet Address`,Mq=()=>`錢包地址`,Nq=()=>`钱包地址`,Pq=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Oq(e):n===`ja-JP`?kq(e):n===`ko-KR`?Aq(e):n===`ru-RU`?jq(e):n===`zh-TW`?Mq(e):Nq(e)}),Fq=()=>`Cancel`,Iq=()=>`Cancel`,Lq=()=>`Cancel`,Rq=()=>`Cancel`,zq=()=>`取消`,Bq=()=>`取消`,Vq=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Fq(e):n===`ja-JP`?Iq(e):n===`ko-KR`?Lq(e):n===`ru-RU`?Rq(e):n===`zh-TW`?zq(e):Bq(e)}),Hq=()=>`Importing...`,Uq=()=>`Importing...`,Wq=()=>`Importing...`,Gq=()=>`Importing...`,Kq=()=>`匯入中...`,qq=()=>`导入中...`,Jq=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hq(e):n===`ja-JP`?Uq(e):n===`ko-KR`?Wq(e):n===`ru-RU`?Gq(e):n===`zh-TW`?Kq(e):qq(e)}),Yq=()=>`Start Import`,Xq=()=>`Start Import`,Zq=()=>`Start Import`,Qq=()=>`Start Import`,$q=()=>`開始匯入`,eJ=()=>`开始导入`,tJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yq(e):n===`ja-JP`?Xq(e):n===`ko-KR`?Zq(e):n===`ru-RU`?Qq(e):n===`zh-TW`?$q(e):eJ(e)}),nJ=()=>`Search addresses or remarks...`,rJ=()=>`Search addresses or remarks...`,iJ=()=>`Search addresses or remarks...`,aJ=()=>`Search addresses or remarks...`,oJ=()=>`搜尋地址或備註...`,sJ=()=>`搜索地址或备注...`,cJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nJ(e):n===`ja-JP`?rJ(e):n===`ko-KR`?iJ(e):n===`ru-RU`?aJ(e):n===`zh-TW`?oJ(e):sJ(e)}),lJ=()=>`No address data`,uJ=()=>`No address data`,dJ=()=>`No address data`,fJ=()=>`No address data`,pJ=()=>`暫無地址資料`,mJ=()=>`暂无地址数据`,hJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lJ(e):n===`ja-JP`?uJ(e):n===`ko-KR`?dJ(e):n===`ru-RU`?fJ(e):n===`zh-TW`?pJ(e):mJ(e)}),gJ=()=>`Status`,_J=()=>`Status`,vJ=()=>`Status`,yJ=()=>`Status`,bJ=()=>`狀態`,xJ=()=>`状态`,SJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gJ(e):n===`ja-JP`?_J(e):n===`ko-KR`?vJ(e):n===`ru-RU`?yJ(e):n===`zh-TW`?bJ(e):xJ(e)}),CJ=()=>`Enabled`,wJ=()=>`Enabled`,TJ=()=>`Enabled`,EJ=()=>`Enabled`,DJ=()=>`啟用`,OJ=()=>`启用`,kJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?CJ(e):n===`ja-JP`?wJ(e):n===`ko-KR`?TJ(e):n===`ru-RU`?EJ(e):n===`zh-TW`?DJ(e):OJ(e)}),AJ=()=>`Address`,jJ=()=>`Address`,MJ=()=>`Address`,NJ=()=>`Address`,PJ=()=>`地址`,FJ=()=>`地址`,IJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?AJ(e):n===`ja-JP`?jJ(e):n===`ko-KR`?MJ(e):n===`ru-RU`?NJ(e):n===`zh-TW`?PJ(e):FJ(e)}),LJ=()=>`Order Count`,RJ=()=>`Order Count`,zJ=()=>`Order Count`,BJ=()=>`Order Count`,VJ=()=>`訂單數`,HJ=()=>`订单数`,UJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?LJ(e):n===`ja-JP`?RJ(e):n===`ko-KR`?zJ(e):n===`ru-RU`?BJ(e):n===`zh-TW`?VJ(e):HJ(e)}),WJ=()=>`Source`,GJ=()=>`Source`,KJ=()=>`Source`,qJ=()=>`Source`,JJ=()=>`來源`,YJ=()=>`来源`,XJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?WJ(e):n===`ja-JP`?GJ(e):n===`ko-KR`?KJ(e):n===`ru-RU`?qJ(e):n===`zh-TW`?JJ(e):YJ(e)}),ZJ=()=>`Remark`,QJ=()=>`Remark`,$J=()=>`Remark`,eY=()=>`Remark`,tY=()=>`備註`,nY=()=>`备注`,rY=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ZJ(e):n===`ja-JP`?QJ(e):n===`ko-KR`?$J(e):n===`ru-RU`?eY(e):n===`zh-TW`?tY(e):nY(e)}),iY=()=>`Created At`,aY=()=>`Created At`,oY=()=>`Created At`,sY=()=>`Created At`,cY=()=>`建立時間`,lY=()=>`创建时间`,uY=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?iY(e):n===`ja-JP`?aY(e):n===`ko-KR`?oY(e):n===`ru-RU`?sY(e):n===`zh-TW`?cY(e):lY(e)}),dY=()=>`Updated At`,fY=()=>`Updated At`,pY=()=>`Updated At`,mY=()=>`Updated At`,hY=()=>`更新時間`,gY=()=>`更新时间`,_Y=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dY(e):n===`ja-JP`?fY(e):n===`ko-KR`?pY(e):n===`ru-RU`?mY(e):n===`zh-TW`?hY(e):gY(e)}),vY=()=>`Actions`,yY=()=>`Actions`,bY=()=>`Actions`,xY=()=>`Actions`,SY=()=>`操作`,CY=()=>`操作`,wY=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vY(e):n===`ja-JP`?yY(e):n===`ko-KR`?bY(e):n===`ru-RU`?xY(e):n===`zh-TW`?SY(e):CY(e)}),TY=()=>`Edit Remark`,EY=()=>`Edit Remark`,DY=()=>`Edit Remark`,OY=()=>`Edit Remark`,kY=()=>`編輯備註`,AY=()=>`编辑备注`,jY=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?TY(e):n===`ja-JP`?EY(e):n===`ko-KR`?DY(e):n===`ru-RU`?OY(e):n===`zh-TW`?kY(e):AY(e)}),MY=()=>`Loading...`,NY=()=>`Loading...`,PY=()=>`Loading...`,FY=()=>`Loading...`,IY=()=>`載入中...`,LY=()=>`加载中...`,RY=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?MY(e):n===`ja-JP`?NY(e):n===`ko-KR`?PY(e):n===`ru-RU`?FY(e):n===`zh-TW`?IY(e):LY(e)}),zY=()=>`Please configure supported tokens in chain management first`,BY=()=>`Please configure supported tokens in chain management first`,VY=()=>`Please configure supported tokens in chain management first`,HY=()=>`Please configure supported tokens in chain management first`,UY=()=>`請先在鏈管理中配置支援代幣`,WY=()=>`请先在链管理中配置支持代币`,GY=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zY(e):n===`ja-JP`?BY(e):n===`ko-KR`?VY(e):n===`ru-RU`?HY(e):n===`zh-TW`?UY(e):WY(e)}),KY=()=>`Edit Wallet`,qY=()=>`Edit Wallet`,JY=()=>`Edit Wallet`,YY=()=>`Edit Wallet`,XY=()=>`編輯錢包`,ZY=()=>`编辑钱包`,QY=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?KY(e):n===`ja-JP`?qY(e):n===`ko-KR`?JY(e):n===`ru-RU`?YY(e):n===`zh-TW`?XY(e):ZY(e)}),$Y=()=>`Add Wallet`,eX=()=>`Add Wallet`,tX=()=>`Add Wallet`,nX=()=>`Add Wallet`,rX=()=>`新增錢包`,iX=()=>`新增钱包`,aX=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$Y(e):n===`ja-JP`?eX(e):n===`ko-KR`?tX(e):n===`ru-RU`?nX(e):n===`zh-TW`?rX(e):iX(e)}),oX=()=>`Modify wallet remark information.`,sX=()=>`Modify wallet remark information.`,cX=()=>`Modify wallet remark information.`,lX=()=>`Modify wallet remark information.`,uX=()=>`修改錢包備註資訊。`,dX=()=>`修改钱包备注信息。`,fX=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?oX(e):n===`ja-JP`?sX(e):n===`ko-KR`?cX(e):n===`ru-RU`?lX(e):n===`zh-TW`?uX(e):dX(e)}),pX=()=>`Add a new payment wallet.`,mX=()=>`Add a new payment wallet.`,hX=()=>`Add a new payment wallet.`,gX=()=>`Add a new payment wallet.`,_X=()=>`新增新的收款錢包。`,vX=()=>`新增新的收款钱包。`,yX=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pX(e):n===`ja-JP`?mX(e):n===`ko-KR`?hX(e):n===`ru-RU`?gX(e):n===`zh-TW`?_X(e):vX(e)}),bX=()=>`Please enter wallet address`,xX=()=>`Please enter wallet address`,SX=()=>`Please enter wallet address`,CX=()=>`Please enter wallet address`,wX=()=>`請輸入錢包地址`,TX=()=>`请输入钱包地址`,EX=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bX(e):n===`ja-JP`?xX(e):n===`ko-KR`?SX(e):n===`ru-RU`?CX(e):n===`zh-TW`?wX(e):TX(e)}),DX=()=>`Optional`,OX=()=>`Optional`,kX=()=>`Optional`,AX=()=>`Optional`,jX=()=>`選填`,MX=()=>`选填`,NX=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?DX(e):n===`ja-JP`?OX(e):n===`ko-KR`?kX(e):n===`ru-RU`?AX(e):n===`zh-TW`?jX(e):MX(e)}),PX=()=>`Saving...`,FX=()=>`Saving...`,IX=()=>`Saving...`,LX=()=>`Saving...`,RX=()=>`儲存中...`,zX=()=>`保存中...`,BX=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?PX(e):n===`ja-JP`?FX(e):n===`ko-KR`?IX(e):n===`ru-RU`?LX(e):n===`zh-TW`?RX(e):zX(e)}),VX=()=>`Save`,HX=()=>`Save`,UX=()=>`Save`,WX=()=>`Save`,GX=()=>`儲存`,KX=()=>`保存`,qX=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?VX(e):n===`ja-JP`?HX(e):n===`ko-KR`?UX(e):n===`ru-RU`?WX(e):n===`zh-TW`?GX(e):KX(e)}),JX=()=>`Wallet remark updated successfully`,YX=()=>`Wallet remark updated successfully`,XX=()=>`Wallet remark updated successfully`,ZX=()=>`Wallet remark updated successfully`,QX=()=>`錢包備註更新成功`,$X=()=>`钱包备注更新成功`,eZ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?JX(e):n===`ja-JP`?YX(e):n===`ko-KR`?XX(e):n===`ru-RU`?ZX(e):n===`zh-TW`?QX(e):$X(e)}),tZ=()=>`Wallet added successfully`,nZ=()=>`Wallet added successfully`,rZ=()=>`Wallet added successfully`,iZ=()=>`Wallet added successfully`,aZ=()=>`錢包新增成功`,oZ=()=>`钱包新增成功`,sZ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tZ(e):n===`ja-JP`?nZ(e):n===`ko-KR`?rZ(e):n===`ru-RU`?iZ(e):n===`zh-TW`?aZ(e):oZ(e)}),cZ=()=>`Please enter a valid address`,lZ=()=>`Please enter a valid address`,uZ=()=>`Please enter a valid address`,dZ=()=>`Please enter a valid address`,fZ=()=>`請輸入有效地址`,pZ=()=>`请输入有效地址`,mZ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cZ(e):n===`ja-JP`?lZ(e):n===`ko-KR`?uZ(e):n===`ru-RU`?dZ(e):n===`zh-TW`?fZ(e):pZ(e)}),hZ=()=>`Please select a chain`,gZ=()=>`Please select a chain`,_Z=()=>`Please select a chain`,vZ=()=>`Please select a chain`,yZ=()=>`請選擇鏈`,bZ=()=>`请选择链`,xZ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hZ(e):n===`ja-JP`?gZ(e):n===`ko-KR`?_Z(e):n===`ru-RU`?vZ(e):n===`zh-TW`?yZ(e):bZ(e)}),SZ=()=>`Chains & Tokens`,CZ=()=>`Chains & Tokens`,wZ=()=>`Chains & Tokens`,TZ=()=>`Chains & Tokens`,EZ=()=>`鏈與代幣`,DZ=()=>`链与代币`,OZ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?SZ(e):n===`ja-JP`?CZ(e):n===`ko-KR`?wZ(e):n===`ru-RU`?TZ(e):n===`zh-TW`?EZ(e):DZ(e)}),kZ=e=>`${e?.count} chains`,AZ=e=>`${e?.count} chains`,jZ=e=>`${e?.count} chains`,MZ=e=>`${e?.count} chains`,NZ=e=>`${e?.count} 條鏈`,PZ=e=>`${e?.count} 条链`,FZ=((e,t={})=>{let n=t.locale??m();return n===`en-US`?kZ(e):n===`ja-JP`?AZ(e):n===`ko-KR`?jZ(e):n===`ru-RU`?MZ(e):n===`zh-TW`?NZ(e):PZ(e)}),IZ=()=>`Search chain names...`,LZ=()=>`Search chain names...`,RZ=()=>`Search chain names...`,zZ=()=>`Search chain names...`,BZ=()=>`搜尋鏈名稱...`,VZ=()=>`搜索链名称...`,HZ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?IZ(e):n===`ja-JP`?LZ(e):n===`ko-KR`?RZ(e):n===`ru-RU`?zZ(e):n===`zh-TW`?BZ(e):VZ(e)}),UZ=()=>`Overview`,WZ=()=>`Overview`,GZ=()=>`Overview`,KZ=()=>`Overview`,qZ=()=>`總覽`,JZ=()=>`概览`,YZ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?UZ(e):n===`ja-JP`?WZ(e):n===`ko-KR`?GZ(e):n===`ru-RU`?KZ(e):n===`zh-TW`?qZ(e):JZ(e)}),XZ=e=>`Total chains: ${e?.chains} | Total tokens: ${e?.tokens}`,ZZ=e=>`Total chains: ${e?.chains} | Total tokens: ${e?.tokens}`,QZ=e=>`Total chains: ${e?.chains} | Total tokens: ${e?.tokens}`,$Z=e=>`Total chains: ${e?.chains} | Total tokens: ${e?.tokens}`,eQ=e=>`鏈總數: ${e?.chains} | 代幣總數: ${e?.tokens}`,tQ=e=>`链总数: ${e?.chains} | 代币总数: ${e?.tokens}`,nQ=((e,t={})=>{let n=t.locale??m();return n===`en-US`?XZ(e):n===`ja-JP`?ZZ(e):n===`ko-KR`?QZ(e):n===`ru-RU`?$Z(e):n===`zh-TW`?eQ(e):tQ(e)}),rQ=()=>`Supported payment network`,iQ=()=>`Supported payment network`,aQ=()=>`Supported payment network`,oQ=()=>`Supported payment network`,sQ=()=>`支援收款網路`,cQ=()=>`支持收款网络`,lQ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rQ(e):n===`ja-JP`?iQ(e):n===`ko-KR`?aQ(e):n===`ru-RU`?oQ(e):n===`zh-TW`?sQ(e):cQ(e)}),uQ=()=>`No chain data`,dQ=()=>`No chain data`,fQ=()=>`No chain data`,pQ=()=>`No chain data`,mQ=()=>`暫無鏈資料`,hQ=()=>`暂无链数据`,gQ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?uQ(e):n===`ja-JP`?dQ(e):n===`ko-KR`?fQ(e):n===`ru-RU`?pQ(e):n===`zh-TW`?mQ(e):hQ(e)}),_Q=()=>`Add Token`,vQ=()=>`Add Token`,yQ=()=>`Add Token`,bQ=()=>`Add Token`,xQ=()=>`新增代幣`,SQ=()=>`新增代币`,CQ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_Q(e):n===`ja-JP`?vQ(e):n===`ko-KR`?yQ(e):n===`ru-RU`?bQ(e):n===`zh-TW`?xQ(e):SQ(e)}),wQ=()=>`Manage supported blockchain networks and tokens, including status and basic parameters.`,TQ=()=>`Manage supported blockchain networks and tokens, including status and basic parameters.`,EQ=()=>`Manage supported blockchain networks and tokens, including status and basic parameters.`,DQ=()=>`Manage supported blockchain networks and tokens, including status and basic parameters.`,OQ=()=>`管理支援的區塊鏈網路和代幣,維護啟用狀態與基礎引數。`,kQ=()=>`管理支持的区块链网络和代币,维护启用状态与基础参数。`,AQ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wQ(e):n===`ja-JP`?TQ(e):n===`ko-KR`?EQ(e):n===`ru-RU`?DQ(e):n===`zh-TW`?OQ(e):kQ(e)}),jQ=e=>`Chain ${e?.status}`,MQ=e=>`Chain ${e?.status}`,NQ=e=>`Chain ${e?.status}`,PQ=e=>`Chain ${e?.status}`,FQ=e=>`鏈已${e?.status}`,IQ=e=>`链已${e?.status}`,LQ=((e,t={})=>{let n=t.locale??m();return n===`en-US`?jQ(e):n===`ja-JP`?MQ(e):n===`ko-KR`?NQ(e):n===`ru-RU`?PQ(e):n===`zh-TW`?FQ(e):IQ(e)}),RQ=()=>`enabled`,zQ=()=>`enabled`,BQ=()=>`enabled`,VQ=()=>`enabled`,HQ=()=>`啟用`,UQ=()=>`启用`,WQ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?RQ(e):n===`ja-JP`?zQ(e):n===`ko-KR`?BQ(e):n===`ru-RU`?VQ(e):n===`zh-TW`?HQ(e):UQ(e)}),GQ=()=>`disabled`,KQ=()=>`disabled`,qQ=()=>`disabled`,JQ=()=>`disabled`,YQ=()=>`停用`,XQ=()=>`停用`,ZQ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?GQ(e):n===`ja-JP`?KQ(e):n===`ko-KR`?qQ(e):n===`ru-RU`?JQ(e):n===`zh-TW`?YQ(e):XQ(e)}),QQ=()=>`Token status updated`,$Q=()=>`Token status updated`,e$=()=>`Token status updated`,t$=()=>`Token status updated`,n$=()=>`代幣狀態已更新`,r$=()=>`代币状态已更新`,i$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?QQ(e):n===`ja-JP`?$Q(e):n===`ko-KR`?e$(e):n===`ru-RU`?t$(e):n===`zh-TW`?n$(e):r$(e)}),a$=()=>`Token updated successfully`,o$=()=>`Token updated successfully`,s$=()=>`Token updated successfully`,c$=()=>`Token updated successfully`,l$=()=>`代幣更新成功`,u$=()=>`代币更新成功`,d$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?a$(e):n===`ja-JP`?o$(e):n===`ko-KR`?s$(e):n===`ru-RU`?c$(e):n===`zh-TW`?l$(e):u$(e)}),f$=()=>`Token created successfully`,p$=()=>`Token created successfully`,m$=()=>`Token created successfully`,h$=()=>`Token created successfully`,g$=()=>`代幣建立成功`,_$=()=>`代币创建成功`,v$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?f$(e):n===`ja-JP`?p$(e):n===`ko-KR`?m$(e):n===`ru-RU`?h$(e):n===`zh-TW`?g$(e):_$(e)}),y$=()=>`Search token symbols...`,b$=()=>`Search token symbols...`,x$=()=>`Search token symbols...`,S$=()=>`Search token symbols...`,C$=()=>`搜尋代幣符號...`,w$=()=>`搜索代币符号...`,T$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?y$(e):n===`ja-JP`?b$(e):n===`ko-KR`?x$(e):n===`ru-RU`?S$(e):n===`zh-TW`?C$(e):w$(e)}),E$=()=>`No chain token data`,D$=()=>`No chain token data`,O$=()=>`No chain token data`,k$=()=>`No chain token data`,A$=()=>`暫無鏈代幣資料`,j$=()=>`暂无链代币数据`,M$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?E$(e):n===`ja-JP`?D$(e):n===`ko-KR`?O$(e):n===`ru-RU`?k$(e):n===`zh-TW`?A$(e):j$(e)}),N$=()=>`Token`,P$=()=>`Token`,F$=()=>`Token`,I$=()=>`Token`,L$=()=>`代幣`,R$=()=>`代币`,z$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?N$(e):n===`ja-JP`?P$(e):n===`ko-KR`?F$(e):n===`ru-RU`?I$(e):n===`zh-TW`?L$(e):R$(e)}),B$=()=>`Edit`,V$=()=>`Edit`,H$=()=>`Edit`,U$=()=>`Edit`,W$=()=>`編輯`,G$=()=>`编辑`,K$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?B$(e):n===`ja-JP`?V$(e):n===`ko-KR`?H$(e):n===`ru-RU`?U$(e):n===`zh-TW`?W$(e):G$(e)}),q$=()=>`Delete`,J$=()=>`Delete`,Y$=()=>`Delete`,X$=()=>`Delete`,Z$=()=>`刪除`,Q$=()=>`删除`,$$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?q$(e):n===`ja-JP`?J$(e):n===`ko-KR`?Y$(e):n===`ru-RU`?X$(e):n===`zh-TW`?Z$(e):Q$(e)}),e1=()=>`Edit Chain Token`,t1=()=>`Edit Chain Token`,n1=()=>`Edit Chain Token`,r1=()=>`Edit Chain Token`,i1=()=>`編輯鏈代幣`,a1=()=>`编辑链代币`,o1=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?e1(e):n===`ja-JP`?t1(e):n===`ko-KR`?n1(e):n===`ru-RU`?r1(e):n===`zh-TW`?i1(e):a1(e)}),s1=()=>`Add Chain Token`,c1=()=>`Add Chain Token`,l1=()=>`Add Chain Token`,u1=()=>`Add Chain Token`,d1=()=>`新增鏈代幣`,f1=()=>`新增链代币`,p1=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?s1(e):n===`ja-JP`?c1(e):n===`ko-KR`?l1(e):n===`ru-RU`?u1(e):n===`zh-TW`?d1(e):f1(e)}),m1=()=>`Modify chain token configuration.`,h1=()=>`Modify chain token configuration.`,g1=()=>`Modify chain token configuration.`,_1=()=>`Modify chain token configuration.`,v1=()=>`修改鏈代幣配置。`,y1=()=>`修改链代币配置。`,b1=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?m1(e):n===`ja-JP`?h1(e):n===`ko-KR`?g1(e):n===`ru-RU`?_1(e):n===`zh-TW`?v1(e):y1(e)}),x1=()=>`Add a new chain token configuration.`,S1=()=>`Add a new chain token configuration.`,C1=()=>`Add a new chain token configuration.`,w1=()=>`Add a new chain token configuration.`,T1=()=>`新增新的鏈代幣配置。`,E1=()=>`新增新的链代币配置。`,D1=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?x1(e):n===`ja-JP`?S1(e):n===`ko-KR`?C1(e):n===`ru-RU`?w1(e):n===`zh-TW`?T1(e):E1(e)}),O1=()=>`Token Symbol`,k1=()=>`Token Symbol`,A1=()=>`Token Symbol`,j1=()=>`Token Symbol`,M1=()=>`代幣符號`,N1=()=>`代币符号`,P1=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?O1(e):n===`ja-JP`?k1(e):n===`ko-KR`?A1(e):n===`ru-RU`?j1(e):n===`zh-TW`?M1(e):N1(e)}),F1=()=>`Configure available tokens for this chain and maintain contract address, decimals, minimum amount, and enabled status.`,I1=()=>`Configure available tokens for this chain and maintain contract address, decimals, minimum amount, and enabled status.`,L1=()=>`Configure available tokens for this chain and maintain contract address, decimals, minimum amount, and enabled status.`,R1=()=>`Configure available tokens for this chain and maintain contract address, decimals, minimum amount, and enabled status.`,z1=()=>`為當前鏈配置可用代幣,並維護合約地址、精度、最小金額與啟用狀態。`,B1=()=>`为当前链配置可用代币,并维护合约地址、精度、最小金额与启用状态。`,V1=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?F1(e):n===`ja-JP`?I1(e):n===`ko-KR`?L1(e):n===`ru-RU`?R1(e):n===`zh-TW`?z1(e):B1(e)}),H1=()=>`Contract Address`,U1=()=>`Contract Address`,W1=()=>`Contract Address`,G1=()=>`Contract Address`,K1=()=>`合約地址`,q1=()=>`合约地址`,J1=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?H1(e):n===`ja-JP`?U1(e):n===`ko-KR`?W1(e):n===`ru-RU`?G1(e):n===`zh-TW`?K1(e):q1(e)}),Y1=()=>`Decimals`,X1=()=>`Decimals`,Z1=()=>`Decimals`,Q1=()=>`Decimals`,$1=()=>`精度`,$=()=>`精度`,e0=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Y1(e):n===`ja-JP`?X1(e):n===`ko-KR`?Z1(e):n===`ru-RU`?Q1(e):n===`zh-TW`?$1(e):$(e)}),t0=()=>`Minimum Amount`,n0=()=>`Minimum Amount`,r0=()=>`Minimum Amount`,i0=()=>`Minimum Amount`,a0=()=>`最小金額`,o0=()=>`最小金额`,eee=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?t0(e):n===`ja-JP`?n0(e):n===`ko-KR`?r0(e):n===`ru-RU`?i0(e):n===`zh-TW`?a0(e):o0(e)}),s0=()=>`Create`,c0=()=>`Create`,l0=()=>`Create`,u0=()=>`Create`,d0=()=>`建立`,f0=()=>`创建`,p0=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?s0(e):n===`ja-JP`?c0(e):n===`ko-KR`?l0(e):n===`ru-RU`?u0(e):n===`zh-TW`?d0(e):f0(e)}),m0=()=>`Save Changes`,h0=()=>`Save Changes`,g0=()=>`Save Changes`,_0=()=>`Save Changes`,v0=()=>`儲存修改`,y0=()=>`保存修改`,b0=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?m0(e):n===`ja-JP`?h0(e):n===`ko-KR`?g0(e):n===`ru-RU`?_0(e):n===`zh-TW`?v0(e):y0(e)}),x0=()=>`Please select a chain`,S0=()=>`Please select a chain`,C0=()=>`Please select a chain`,w0=()=>`Please select a chain`,T0=()=>`請選擇鏈`,E0=()=>`请选择链`,D0=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?x0(e):n===`ja-JP`?S0(e):n===`ko-KR`?C0(e):n===`ru-RU`?w0(e):n===`zh-TW`?T0(e):E0(e)}),O0=()=>`Please enter token symbol`,k0=()=>`Please enter token symbol`,A0=()=>`Please enter token symbol`,j0=()=>`Please enter token symbol`,M0=()=>`請輸入代幣符號`,N0=()=>`请输入代币符号`,P0=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?O0(e):n===`ja-JP`?k0(e):n===`ko-KR`?A0(e):n===`ru-RU`?j0(e):n===`zh-TW`?M0(e):N0(e)}),F0=()=>`Please enter valid decimals`,I0=()=>`Please enter valid decimals`,L0=()=>`Please enter valid decimals`,R0=()=>`Please enter valid decimals`,z0=()=>`請輸入有效精度`,B0=()=>`请输入有效精度`,V0=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?F0(e):n===`ja-JP`?I0(e):n===`ko-KR`?L0(e):n===`ru-RU`?R0(e):n===`zh-TW`?z0(e):B0(e)}),H0=()=>`Please enter a valid minimum amount`,U0=()=>`Please enter a valid minimum amount`,W0=()=>`Please enter a valid minimum amount`,G0=()=>`Please enter a valid minimum amount`,K0=()=>`請輸入有效最小金額`,q0=()=>`请输入有效最小金额`,J0=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?H0(e):n===`ja-JP`?U0(e):n===`ko-KR`?W0(e):n===`ru-RU`?G0(e):n===`zh-TW`?K0(e):q0(e)}),Y0=()=>`RPC Nodes`,X0=()=>`RPC Nodes`,Z0=()=>`RPC Nodes`,Q0=()=>`RPC Nodes`,$0=()=>`RPC 節點`,e2=()=>`RPC 节点`,t2=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Y0(e):n===`ja-JP`?X0(e):n===`ko-KR`?Z0(e):n===`ru-RU`?Q0(e):n===`zh-TW`?$0(e):e2(e)}),n2=e=>`${e?.count} chains`,r2=e=>`${e?.count} chains`,i2=e=>`${e?.count} chains`,a2=e=>`${e?.count} chains`,o2=e=>`${e?.count} 條鏈`,s2=e=>`${e?.count} 条链`,c2=((e,t={})=>{let n=t.locale??m();return n===`en-US`?n2(e):n===`ja-JP`?r2(e):n===`ko-KR`?i2(e):n===`ru-RU`?a2(e):n===`zh-TW`?o2(e):s2(e)}),l2=()=>`Search chain names or network...`,u2=()=>`Search chain names or network...`,d2=()=>`Search chain names or network...`,f2=()=>`Search chain names or network...`,p2=()=>`搜尋鏈名或 network...`,m2=()=>`搜索链名称或 network...`,h2=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?l2(e):n===`ja-JP`?u2(e):n===`ko-KR`?d2(e):n===`ru-RU`?f2(e):n===`zh-TW`?p2(e):m2(e)}),g2=()=>`Overview`,_2=()=>`Overview`,v2=()=>`Overview`,y2=()=>`Overview`,b2=()=>`總覽`,x2=()=>`概览`,S2=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?g2(e):n===`ja-JP`?_2(e):n===`ko-KR`?v2(e):n===`ru-RU`?y2(e):n===`zh-TW`?b2(e):x2(e)}),C2=e=>`Total chains: ${e?.chains} | Total nodes: ${e?.nodes}`,w2=e=>`Total chains: ${e?.chains} | Total nodes: ${e?.nodes}`,T2=e=>`Total chains: ${e?.chains} | Total nodes: ${e?.nodes}`,E2=e=>`Total chains: ${e?.chains} | Total nodes: ${e?.nodes}`,D2=e=>`鏈總數: ${e?.chains} | 節點總數: ${e?.nodes}`,O2=e=>`链总数: ${e?.chains} | 节点总数: ${e?.nodes}`,k2=((e,t={})=>{let n=t.locale??m();return n===`en-US`?C2(e):n===`ja-JP`?w2(e):n===`ko-KR`?T2(e):n===`ru-RU`?E2(e):n===`zh-TW`?D2(e):O2(e)}),A2=()=>`Unnamed chain`,j2=()=>`Unnamed chain`,M2=()=>`Unnamed chain`,N2=()=>`Unnamed chain`,P2=()=>`未命名鏈`,F2=()=>`未命名链`,I2=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?A2(e):n===`ja-JP`?j2(e):n===`ko-KR`?M2(e):n===`ru-RU`?N2(e):n===`zh-TW`?P2(e):F2(e)}),L2=e=>`Nodes: ${e?.count}`,R2=e=>`Nodes: ${e?.count}`,z2=e=>`Nodes: ${e?.count}`,B2=e=>`Nodes: ${e?.count}`,V2=e=>`節點數: ${e?.count}`,H2=e=>`节点数: ${e?.count}`,U2=((e,t={})=>{let n=t.locale??m();return n===`en-US`?L2(e):n===`ja-JP`?R2(e):n===`ko-KR`?z2(e):n===`ru-RU`?B2(e):n===`zh-TW`?V2(e):H2(e)}),W2=()=>`No chain data`,G2=()=>`No chain data`,K2=()=>`No chain data`,q2=()=>`No chain data`,J2=()=>`暫無鏈資料`,Y2=()=>`暂无链数据`,X2=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?W2(e):n===`ja-JP`?G2(e):n===`ko-KR`?K2(e):n===`ru-RU`?q2(e):n===`zh-TW`?J2(e):Y2(e)}),Z2=()=>`Add Node`,Q2=()=>`Add Node`,$2=()=>`Add Node`,e4=()=>`Add Node`,t4=()=>`新增節點`,n4=()=>`新增节点`,r4=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Z2(e):n===`ja-JP`?Q2(e):n===`ko-KR`?$2(e):n===`ru-RU`?e4(e):n===`zh-TW`?t4(e):n4(e)}),i4=()=>`Manage RPC nodes, weights, and health status for each chain.`,a4=()=>`Manage RPC nodes, weights, and health status for each chain.`,o4=()=>`Manage RPC nodes, weights, and health status for each chain.`,s4=()=>`Manage RPC nodes, weights, and health status for each chain.`,c4=()=>`管理各鏈 RPC 節點、權重與健康狀態。`,l4=()=>`管理各链 RPC 节点、权重与健康状态。`,u4=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?i4(e):n===`ja-JP`?a4(e):n===`ko-KR`?o4(e):n===`ru-RU`?s4(e):n===`zh-TW`?c4(e):l4(e)}),d4=()=>`Deleted successfully`,f4=()=>`Deleted successfully`,p4=()=>`Deleted successfully`,m4=()=>`Deleted successfully`,h4=()=>`刪除成功`,g4=()=>`删除成功`,_4=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?d4(e):n===`ja-JP`?f4(e):n===`ko-KR`?p4(e):n===`ru-RU`?m4(e):n===`zh-TW`?h4(e):g4(e)}),v4=e=>`Health check completed, status: ${e?.status}${e?.latency}`,y4=e=>`Health check completed, status: ${e?.status}${e?.latency}`,b4=e=>`Health check completed, status: ${e?.status}${e?.latency}`,x4=e=>`Health check completed, status: ${e?.status}${e?.latency}`,S4=e=>`健康檢查完成,狀態: ${e?.status}${e?.latency}`,C4=e=>`健康检查完成,状态: ${e?.status}${e?.latency}`,w4=((e,t={})=>{let n=t.locale??m();return n===`en-US`?v4(e):n===`ja-JP`?y4(e):n===`ko-KR`?b4(e):n===`ru-RU`?x4(e):n===`zh-TW`?S4(e):C4(e)}),T4=e=>`, latency ${e?.latency}ms`,E4=e=>`, latency ${e?.latency}ms`,D4=e=>`, latency ${e?.latency}ms`,O4=e=>`, latency ${e?.latency}ms`,k4=e=>`,延遲 ${e?.latency}ms`,A4=e=>`,延迟 ${e?.latency}ms`,j4=((e,t={})=>{let n=t.locale??m();return n===`en-US`?T4(e):n===`ja-JP`?E4(e):n===`ko-KR`?D4(e):n===`ru-RU`?O4(e):n===`zh-TW`?k4(e):A4(e)}),M4=()=>`Confirm`,N4=()=>`Confirm`,P4=()=>`Confirm`,F4=()=>`Confirm`,I4=()=>`確認`,L4=()=>`确认`,R4=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?M4(e):n===`ja-JP`?N4(e):n===`ko-KR`?P4(e):n===`ru-RU`?F4(e):n===`zh-TW`?I4(e):L4(e)}),z4=e=>`Perform “${e?.action}” on RPC node ${e?.url}.`,B4=e=>`Perform “${e?.action}” on RPC node ${e?.url}.`,V4=e=>`Perform “${e?.action}” on RPC node ${e?.url}.`,H4=e=>`Perform “${e?.action}” on RPC node ${e?.url}.`,U4=e=>`將對 RPC 節點 ${e?.url} 執行“${e?.action}”操作。`,W4=e=>`将对 RPC 节点 ${e?.url} 执行“${e?.action}”操作。`,G4=((e,t={})=>{let n=t.locale??m();return n===`en-US`?z4(e):n===`ja-JP`?B4(e):n===`ko-KR`?V4(e):n===`ru-RU`?H4(e):n===`zh-TW`?U4(e):W4(e)}),K4=()=>`Delete RPC Node`,q4=()=>`Delete RPC Node`,J4=()=>`Delete RPC Node`,Y4=()=>`Delete RPC Node`,X4=()=>`刪除 RPC 節點`,Z4=()=>`删除 RPC 节点`,Q4=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?K4(e):n===`ja-JP`?q4(e):n===`ko-KR`?J4(e):n===`ru-RU`?Y4(e):n===`zh-TW`?X4(e):Z4(e)}),$4=()=>`Confirm RPC Node Action`,e3=()=>`Confirm RPC Node Action`,t3=()=>`Confirm RPC Node Action`,n3=()=>`Confirm RPC Node Action`,r3=()=>`RPC 節點操作確認`,i3=()=>`RPC 节点操作确认`,a3=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$4(e):n===`ja-JP`?e3(e):n===`ko-KR`?t3(e):n===`ru-RU`?n3(e):n===`zh-TW`?r3(e):i3(e)}),o3=()=>`Health Status`,s3=()=>`Health Status`,c3=()=>`Health Status`,l3=()=>`Health Status`,u3=()=>`健康狀態`,d3=()=>`健康状态`,f3=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?o3(e):n===`ja-JP`?s3(e):n===`ko-KR`?c3(e):n===`ru-RU`?l3(e):n===`zh-TW`?u3(e):d3(e)}),p3=()=>`OK`,m3=()=>`OK`,h3=()=>`OK`,g3=()=>`OK`,_3=()=>`正常`,v3=()=>`正常`,y3=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?p3(e):n===`ja-JP`?m3(e):n===`ko-KR`?h3(e):n===`ru-RU`?g3(e):n===`zh-TW`?_3(e):v3(e)}),b3=()=>`Down`,x3=()=>`Down`,S3=()=>`Down`,C3=()=>`Down`,w3=()=>`異常`,T3=()=>`异常`,E3=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?b3(e):n===`ja-JP`?x3(e):n===`ko-KR`?S3(e):n===`ru-RU`?C3(e):n===`zh-TW`?w3(e):T3(e)}),D3=()=>`Unknown`,O3=()=>`Unknown`,k3=()=>`Unknown`,A3=()=>`Unknown`,j3=()=>`未知`,M3=()=>`未知`,N3=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?D3(e):n===`ja-JP`?O3(e):n===`ko-KR`?k3(e):n===`ru-RU`?A3(e):n===`zh-TW`?j3(e):M3(e)}),P3=()=>`Chain Network`,F3=()=>`Chain Network`,I3=()=>`Chain Network`,L3=()=>`Chain Network`,R3=()=>`鏈網路`,z3=()=>`链网络`,B3=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?P3(e):n===`ja-JP`?F3(e):n===`ko-KR`?I3(e):n===`ru-RU`?L3(e):n===`zh-TW`?R3(e):z3(e)}),V3=()=>`Connection Type`,H3=()=>`Connection Type`,U3=()=>`Connection Type`,W3=()=>`Connection Type`,G3=()=>`連線型別`,K3=()=>`连接类型`,q3=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?V3(e):n===`ja-JP`?H3(e):n===`ko-KR`?U3(e):n===`ru-RU`?W3(e):n===`zh-TW`?G3(e):K3(e)}),J3=()=>`Node URL`,Y3=()=>`Node URL`,X3=()=>`Node URL`,Z3=()=>`Node URL`,Q3=()=>`節點 URL`,$3=()=>`节点 URL`,e6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?J3(e):n===`ja-JP`?Y3(e):n===`ko-KR`?X3(e):n===`ru-RU`?Z3(e):n===`zh-TW`?Q3(e):$3(e)}),t6=()=>`Weight`,n6=()=>`Weight`,r6=()=>`Weight`,i6=()=>`Weight`,a6=()=>`權重`,o6=()=>`权重`,s6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?t6(e):n===`ja-JP`?n6(e):n===`ko-KR`?r6(e):n===`ru-RU`?i6(e):n===`zh-TW`?a6(e):o6(e)}),c6=()=>`Latest Latency`,l6=()=>`Latest Latency`,u6=()=>`Latest Latency`,d6=()=>`Latest Latency`,f6=()=>`最近延遲`,p6=()=>`最近延迟`,m6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?c6(e):n===`ja-JP`?l6(e):n===`ko-KR`?u6(e):n===`ru-RU`?d6(e):n===`zh-TW`?f6(e):p6(e)}),h6=()=>`Last Checked At`,g6=()=>`Last Checked At`,_6=()=>`Last Checked At`,v6=()=>`Last Checked At`,y6=()=>`最近檢查時間`,b6=()=>`最近检查时间`,x6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?h6(e):n===`ja-JP`?g6(e):n===`ko-KR`?_6(e):n===`ru-RU`?v6(e):n===`zh-TW`?y6(e):b6(e)}),S6=()=>`Health Check`,C6=()=>`Health Check`,w6=()=>`Health Check`,T6=()=>`Health Check`,E6=()=>`健康檢查`,D6=()=>`健康检查`,O6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?S6(e):n===`ja-JP`?C6(e):n===`ko-KR`?w6(e):n===`ru-RU`?T6(e):n===`zh-TW`?E6(e):D6(e)}),k6=()=>`Search chain network or node URL...`,A6=()=>`Search chain network or node URL...`,j6=()=>`Search chain network or node URL...`,M6=()=>`Search chain network or node URL...`,N6=()=>`搜尋鏈網路或節點 URL...`,P6=()=>`搜索链网络或节点 URL...`,F6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?k6(e):n===`ja-JP`?A6(e):n===`ko-KR`?j6(e):n===`ru-RU`?M6(e):n===`zh-TW`?N6(e):P6(e)}),I6=()=>`No RPC node data`,L6=()=>`No RPC node data`,R6=()=>`No RPC node data`,z6=()=>`No RPC node data`,B6=()=>`暫無 RPC 節點資料`,V6=()=>`暂无 RPC 节点数据`,H6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?I6(e):n===`ja-JP`?L6(e):n===`ko-KR`?R6(e):n===`ru-RU`?z6(e):n===`zh-TW`?B6(e):V6(e)}),U6=()=>`Edit`,W6=()=>`Edit`,G6=()=>`Edit`,K6=()=>`Edit`,q6=()=>`編輯`,J6=()=>`编辑`,Y6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?U6(e):n===`ja-JP`?W6(e):n===`ko-KR`?G6(e):n===`ru-RU`?K6(e):n===`zh-TW`?q6(e):J6(e)}),X6=()=>`Edit RPC Node`,Z6=()=>`Edit RPC Node`,Q6=()=>`Edit RPC Node`,$6=()=>`Edit RPC Node`,e8=()=>`編輯 RPC 節點`,t8=()=>`编辑 RPC 节点`,n8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?X6(e):n===`ja-JP`?Z6(e):n===`ko-KR`?Q6(e):n===`ru-RU`?$6(e):n===`zh-TW`?e8(e):t8(e)}),r8=()=>`Add RPC Node`,i8=()=>`Add RPC Node`,a8=()=>`Add RPC Node`,o8=()=>`Add RPC Node`,s8=()=>`新增 RPC 節點`,c8=()=>`新增 RPC 节点`,l8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?r8(e):n===`ja-JP`?i8(e):n===`ko-KR`?a8(e):n===`ru-RU`?o8(e):n===`zh-TW`?s8(e):c8(e)}),u8=()=>`Modify RPC node configuration.`,d8=()=>`Modify RPC node configuration.`,f8=()=>`Modify RPC node configuration.`,p8=()=>`Modify RPC node configuration.`,m8=()=>`修改 RPC 節點配置。`,h8=()=>`修改 RPC 节点配置。`,g8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?u8(e):n===`ja-JP`?d8(e):n===`ko-KR`?f8(e):n===`ru-RU`?p8(e):n===`zh-TW`?m8(e):h8(e)}),_8=()=>`Configure a new RPC node.`,v8=()=>`Configure a new RPC node.`,y8=()=>`Configure a new RPC node.`,b8=()=>`Configure a new RPC node.`,x8=()=>`配置新的 RPC 節點資訊。`,S8=()=>`配置新的 RPC 节点信息。`,C8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_8(e):n===`ja-JP`?v8(e):n===`ko-KR`?y8(e):n===`ru-RU`?b8(e):n===`zh-TW`?x8(e):S8(e)}),w8=()=>`Select type`,T8=()=>`Select type`,E8=()=>`Select type`,D8=()=>`Select type`,O8=()=>`選擇型別`,k8=()=>`选择类型`,A8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?w8(e):n===`ja-JP`?T8(e):n===`ko-KR`?E8(e):n===`ru-RU`?D8(e):n===`zh-TW`?O8(e):k8(e)}),j8=()=>`Optional`,M8=()=>`Optional`,N8=()=>`Optional`,P8=()=>`Optional`,F8=()=>`可選`,I8=()=>`可选`,L8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?j8(e):n===`ja-JP`?M8(e):n===`ko-KR`?N8(e):n===`ru-RU`?P8(e):n===`zh-TW`?F8(e):I8(e)}),R8=()=>`Enable immediately after creation`,z8=()=>`Enable immediately after creation`,B8=()=>`Enable immediately after creation`,V8=()=>`Enable immediately after creation`,H8=()=>`建立後立即啟用`,U8=()=>`创建后立即启用`,W8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?R8(e):n===`ja-JP`?z8(e):n===`ko-KR`?B8(e):n===`ru-RU`?V8(e):n===`zh-TW`?H8(e):U8(e)}),G8=()=>`Disabled nodes will not participate in scheduling.`,K8=()=>`Disabled nodes will not participate in scheduling.`,q8=()=>`Disabled nodes will not participate in scheduling.`,J8=()=>`Disabled nodes will not participate in scheduling.`,Y8=()=>`關閉後該節點不會參與排程。`,X8=()=>`关闭后该节点不会参与排程。`,Z8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?G8(e):n===`ja-JP`?K8(e):n===`ko-KR`?q8(e):n===`ru-RU`?J8(e):n===`zh-TW`?Y8(e):X8(e)}),Q8=()=>`RPC node updated successfully`,$8=()=>`RPC node updated successfully`,e5=()=>`RPC node updated successfully`,t5=()=>`RPC node updated successfully`,n5=()=>`RPC 節點更新成功`,r5=()=>`RPC 节点更新成功`,i5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Q8(e):n===`ja-JP`?$8(e):n===`ko-KR`?e5(e):n===`ru-RU`?t5(e):n===`zh-TW`?n5(e):r5(e)}),a5=()=>`RPC node created successfully`,o5=()=>`RPC node created successfully`,s5=()=>`RPC node created successfully`,c5=()=>`RPC node created successfully`,l5=()=>`RPC 節點建立成功`,u5=()=>`RPC 节点创建成功`,d5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?a5(e):n===`ja-JP`?o5(e):n===`ko-KR`?s5(e):n===`ru-RU`?c5(e):n===`zh-TW`?l5(e):u5(e)}),f5=()=>`Please enter chain network`,p5=()=>`Please enter chain network`,m5=()=>`Please enter chain network`,h5=()=>`Please enter chain network`,g5=()=>`請輸入鏈網路`,_5=()=>`请输入链网络`,v5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?f5(e):n===`ja-JP`?p5(e):n===`ko-KR`?m5(e):n===`ru-RU`?h5(e):n===`zh-TW`?g5(e):_5(e)}),y5=()=>`Please enter a valid URL`,b5=()=>`Please enter a valid URL`,x5=()=>`Please enter a valid URL`,S5=()=>`Please enter a valid URL`,C5=()=>`請輸入合法 URL`,w5=()=>`请输入合法 URL`,T5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?y5(e):n===`ja-JP`?b5(e):n===`ko-KR`?x5(e):n===`ru-RU`?S5(e):n===`zh-TW`?C5(e):w5(e)}),E5=()=>`Weight must be at least 1`,D5=()=>`Weight must be at least 1`,O5=()=>`Weight must be at least 1`,k5=()=>`Weight must be at least 1`,A5=()=>`權重至少為 1`,j5=()=>`权重至少为 1`,M5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?E5(e):n===`ja-JP`?D5(e):n===`ko-KR`?O5(e):n===`ru-RU`?k5(e):n===`zh-TW`?A5(e):j5(e)}),N5=()=>`Node Purpose`,P5=()=>`Node Purpose`,F5=()=>`Node Purpose`,I5=()=>`Node Purpose`,L5=()=>`節點用途`,R5=()=>`节点用途`,z5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?N5(e):n===`ja-JP`?P5(e):n===`ko-KR`?F5(e):n===`ru-RU`?I5(e):n===`zh-TW`?L5(e):R5(e)}),B5=()=>`Select purpose`,V5=()=>`Select purpose`,H5=()=>`Select purpose`,U5=()=>`Select purpose`,W5=()=>`選擇用途`,G5=()=>`选择用途`,K5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?B5(e):n===`ja-JP`?V5(e):n===`ko-KR`?H5(e):n===`ru-RU`?U5(e):n===`zh-TW`?W5(e):G5(e)}),q5=()=>`General`,J5=()=>`General`,Y5=()=>`General`,X5=()=>`General`,Z5=()=>`通用`,Q5=()=>`通用`,$5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?q5(e):n===`ja-JP`?J5(e):n===`ko-KR`?Y5(e):n===`ru-RU`?X5(e):n===`zh-TW`?Z5(e):Q5(e)}),e7=()=>`Manual verification only`,t7=()=>`Manual verification only`,n7=()=>`Manual verification only`,r7=()=>`Manual verification only`,i7=()=>`補單專用`,a7=()=>`补单专用`,o7=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?e7(e):n===`ja-JP`?t7(e):n===`ko-KR`?n7(e):n===`ru-RU`?r7(e):n===`zh-TW`?i7(e):a7(e)}),s7=()=>`General + manual verification`,c7=()=>`General + manual verification`,l7=()=>`General + manual verification`,u7=()=>`General + manual verification`,d7=()=>`通用 + 補單`,f7=()=>`通用 + 补单`,p7=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?s7(e):n===`ja-JP`?c7(e):n===`ko-KR`?l7(e):n===`ru-RU`?u7(e):n===`zh-TW`?d7(e):f7(e)}),m7=()=>`All`,h7=()=>`All`,g7=()=>`All`,_7=()=>`All`,v7=()=>`全部`,y7=()=>`全部`,b7=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?m7(e):n===`ja-JP`?h7(e):n===`ko-KR`?g7(e):n===`ru-RU`?_7(e):n===`zh-TW`?v7(e):y7(e)}),x7=()=>`Enabled`,S7=()=>`Enabled`,C7=()=>`Enabled`,w7=()=>`Enabled`,T7=()=>`已啟用`,E7=()=>`已启用`,D7=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?x7(e):n===`ja-JP`?S7(e):n===`ko-KR`?C7(e):n===`ru-RU`?w7(e):n===`zh-TW`?T7(e):E7(e)}),O7=()=>`Disabled`,k7=()=>`Disabled`,A7=()=>`Disabled`,j7=()=>`Disabled`,M7=()=>`已停用`,N7=()=>`已停用`,P7=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?O7(e):n===`ja-JP`?k7(e):n===`ko-KR`?A7(e):n===`ru-RU`?j7(e):n===`zh-TW`?M7(e):N7(e)}),F7=()=>`Deleted successfully`,I7=()=>`Deleted successfully`,L7=()=>`Deleted successfully`,R7=()=>`Deleted successfully`,z7=()=>`刪除成功`,B7=()=>`删除成功`,V7=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?F7(e):n===`ja-JP`?I7(e):n===`ko-KR`?L7(e):n===`ru-RU`?R7(e):n===`zh-TW`?z7(e):B7(e)}),H7=()=>`Failed to fetch secret key`,U7=()=>`Failed to fetch secret key`,W7=()=>`Failed to fetch secret key`,G7=()=>`Failed to fetch secret key`,K7=()=>`取得金鑰失敗`,q7=()=>`获取密钥失败`,J7=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?H7(e):n===`ja-JP`?U7(e):n===`ko-KR`?W7(e):n===`ru-RU`?G7(e):n===`zh-TW`?K7(e):q7(e)}),Y7=()=>`Missing API Key ID`,X7=()=>`Missing API Key ID`,Z7=()=>`Missing API Key ID`,Q7=()=>`Missing API Key ID`,$7=()=>`缺少 API Key ID`,e9=()=>`缺少 API Key ID`,t9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Y7(e):n===`ja-JP`?X7(e):n===`ko-KR`?Z7(e):n===`ru-RU`?Q7(e):n===`zh-TW`?$7(e):e9(e)}),n9=()=>`No secret key available to copy`,r9=()=>`No secret key available to copy`,i9=()=>`No secret key available to copy`,a9=()=>`No secret key available to copy`,o9=()=>`暫無金鑰可複製`,s9=()=>`暂无密钥可复制`,c9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?n9(e):n===`ja-JP`?r9(e):n===`ko-KR`?i9(e):n===`ru-RU`?a9(e):n===`zh-TW`?o9(e):s9(e)}),l9=()=>`Secret key copied`,u9=()=>`Secret key copied`,d9=()=>`Secret key copied`,f9=()=>`Secret key copied`,p9=()=>`金鑰已複製`,m9=()=>`密钥已复制`,h9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?l9(e):n===`ja-JP`?u9(e):n===`ko-KR`?d9(e):n===`ru-RU`?f9(e):n===`zh-TW`?p9(e):m9(e)}),g9=()=>`Secret key rotated`,_9=()=>`Secret key rotated`,v9=()=>`Secret key rotated`,y9=()=>`Secret key rotated`,b9=()=>`金鑰已輪換`,x9=()=>`密钥已轮换`,S9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?g9(e):n===`ja-JP`?_9(e):n===`ko-KR`?v9(e):n===`ru-RU`?y9(e):n===`zh-TW`?b9(e):x9(e)}),C9=()=>`Create Key`,w9=()=>`Create Key`,T9=()=>`Create Key`,E9=()=>`Create Key`,D9=()=>`建立 Key`,O9=()=>`创建 Key`,k9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?C9(e):n===`ja-JP`?w9(e):n===`ko-KR`?T9(e):n===`ru-RU`?E9(e):n===`zh-TW`?D9(e):O9(e)}),A9=()=>`Manage payment keys, access restrictions, and callback URL settings.`,j9=()=>`Manage payment keys, access restrictions, and callback URL settings.`,M9=()=>`Manage payment keys, access restrictions, and callback URL settings.`,N9=()=>`Manage payment keys, access restrictions, and callback URL settings.`,P9=()=>`管理支付 Key、訪問限制與通知地址配置。`,F9=()=>`管理支付 Key、访问限制与通知地址配置。`,I9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?A9(e):n===`ja-JP`?j9(e):n===`ko-KR`?M9(e):n===`ru-RU`?N9(e):n===`zh-TW`?P9(e):F9(e)}),L9=()=>`Payment Management`,R9=()=>`Payment Management`,z9=()=>`Payment Management`,B9=()=>`Payment Management`,V9=()=>`支付管理`,H9=()=>`支付管理`,U9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?L9(e):n===`ja-JP`?R9(e):n===`ko-KR`?z9(e):n===`ru-RU`?B9(e):n===`zh-TW`?V9(e):H9(e)}),W9=()=>`Search PID, name, or callback URL...`,G9=()=>`Search PID, name, or callback URL...`,K9=()=>`Search PID, name, or callback URL...`,q9=()=>`Search PID, name, or callback URL...`,J9=()=>`搜尋 PID、名稱或通知地址...`,Y9=()=>`搜索 PID、名称或通知地址...`,X9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?W9(e):n===`ja-JP`?G9(e):n===`ko-KR`?K9(e):n===`ru-RU`?q9(e):n===`zh-TW`?J9(e):Y9(e)}),Z9=()=>`Ascending`,Q9=()=>`Ascending`,$9=()=>`Ascending`,tee=()=>`Ascending`,nee=()=>`Ascending`,ree=()=>`Ascending`,iee=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Z9(e):n===`ja-JP`?Q9(e):n===`ko-KR`?$9(e):n===`ru-RU`?tee(e):n===`zh-TW`?nee(e):ree(e)}),aee=()=>`Descending`,oee=()=>`Descending`,see=()=>`Descending`,cee=()=>`Descending`,lee=()=>`Descending`,uee=()=>`Descending`,dee=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?aee(e):n===`ja-JP`?oee(e):n===`ko-KR`?see(e):n===`ru-RU`?cee(e):n===`zh-TW`?lee(e):uee(e)}),fee=()=>`Delete`,pee=()=>`Delete`,mee=()=>`Delete`,hee=()=>`Delete`,gee=()=>`刪除`,_ee=()=>`删除`,vee=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fee(e):n===`ja-JP`?pee(e):n===`ko-KR`?mee(e):n===`ru-RU`?hee(e):n===`zh-TW`?gee(e):_ee(e)}),yee=()=>`Confirm`,bee=()=>`Confirm`,xee=()=>`Confirm`,See=()=>`Confirm`,Cee=()=>`確認`,wee=()=>`确认`,Tee=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yee(e):n===`ja-JP`?bee(e):n===`ko-KR`?xee(e):n===`ru-RU`?See(e):n===`zh-TW`?Cee(e):wee(e)}),Eee=e=>`Perform “${e?.action}” on ${e?.target}.`,Dee=e=>`Perform “${e?.action}” on ${e?.target}.`,Oee=e=>`Perform “${e?.action}” on ${e?.target}.`,kee=e=>`Perform “${e?.action}” on ${e?.target}.`,Aee=e=>`將對 ${e?.target} 執行“${e?.action}”操作。`,jee=e=>`将对 ${e?.target} 执行“${e?.action}”操作。`,Mee=((e,t={})=>{let n=t.locale??m();return n===`en-US`?Eee(e):n===`ja-JP`?Dee(e):n===`ko-KR`?Oee(e):n===`ru-RU`?kee(e):n===`zh-TW`?Aee(e):jee(e)}),Nee=()=>`Delete API Key`,Pee=()=>`Delete API Key`,Fee=()=>`Delete API Key`,Iee=()=>`Delete API Key`,Lee=()=>`刪除 API Key`,Ree=()=>`删除 API Key`,zee=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Nee(e):n===`ja-JP`?Pee(e):n===`ko-KR`?Fee(e):n===`ru-RU`?Iee(e):n===`zh-TW`?Lee(e):Ree(e)}),Bee=()=>`Confirm API Key Action`,Vee=()=>`Confirm API Key Action`,Hee=()=>`Confirm API Key Action`,Uee=()=>`Confirm API Key Action`,Wee=()=>`API Key 操作確認`,Gee=()=>`API Key 操作确认`,Kee=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Bee(e):n===`ja-JP`?Vee(e):n===`ko-KR`?Hee(e):n===`ru-RU`?Uee(e):n===`zh-TW`?Wee(e):Gee(e)}),qee=()=>`API Key Stats`,Jee=()=>`API Key Stats`,Yee=()=>`API Key Stats`,Xee=()=>`API Key Stats`,Zee=()=>`API Key 統計`,Qee=()=>`API Key 统计`,$ee=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qee(e):n===`ja-JP`?Jee(e):n===`ko-KR`?Yee(e):n===`ru-RU`?Xee(e):n===`zh-TW`?Zee(e):Qee(e)}),ete=()=>`Call Count`,tte=()=>`Call Count`,nte=()=>`Call Count`,rte=()=>`Call Count`,ite=()=>`呼叫次數`,ate=()=>`呼叫次数`,ote=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ete(e):n===`ja-JP`?tte(e):n===`ko-KR`?nte(e):n===`ru-RU`?rte(e):n===`zh-TW`?ite(e):ate(e)}),ste=()=>`Last Used`,cte=()=>`Last Used`,lte=()=>`Last Used`,ute=()=>`Last Used`,dte=()=>`最近使用`,fte=()=>`最近使用`,pte=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ste(e):n===`ja-JP`?cte(e):n===`ko-KR`?lte(e):n===`ru-RU`?ute(e):n===`zh-TW`?dte(e):fte(e)}),mte=()=>`No records`,hte=()=>`No records`,gte=()=>`No records`,_te=()=>`No records`,vte=()=>`暫無記錄`,yte=()=>`暂无记录`,bte=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mte(e):n===`ja-JP`?hte(e):n===`ko-KR`?gte(e):n===`ru-RU`?_te(e):n===`zh-TW`?vte(e):yte(e)}),xte=()=>`No API Keys`,Ste=()=>`No API Keys`,Cte=()=>`No API Keys`,wte=()=>`No API Keys`,Tte=()=>`暫無 API Key`,Ete=()=>`暂无 API Key`,Dte=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xte(e):n===`ja-JP`?Ste(e):n===`ko-KR`?Cte(e):n===`ru-RU`?wte(e):n===`zh-TW`?Tte(e):Ete(e)}),Ote=()=>`Loading...`,kte=()=>`Loading...`,Ate=()=>`Loading...`,jte=()=>`Loading...`,Mte=()=>`載入中...`,Nte=()=>`加载中...`,Pte=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ote(e):n===`ja-JP`?kte(e):n===`ko-KR`?Ate(e):n===`ru-RU`?jte(e):n===`zh-TW`?Mte(e):Nte(e)}),Fte=()=>`Callback URL`,Ite=()=>`Callback URL`,Lte=()=>`Callback URL`,Rte=()=>`Callback URL`,zte=()=>`回呼地址`,Bte=()=>`回调地址`,Vte=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Fte(e):n===`ja-JP`?Ite(e):n===`ko-KR`?Lte(e):n===`ru-RU`?Rte(e):n===`zh-TW`?zte(e):Bte(e)}),Hte=()=>`IP Whitelist`,Ute=()=>`IP Whitelist`,Wte=()=>`IP Whitelist`,Gte=()=>`IP Whitelist`,Kte=()=>`IP 白名單`,qte=()=>`IP 白名单`,Jte=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hte(e):n===`ja-JP`?Ute(e):n===`ko-KR`?Wte(e):n===`ru-RU`?Gte(e):n===`zh-TW`?Kte(e):qte(e)}),Yte=()=>`Secret`,Xte=()=>`Secret`,Zte=()=>`Secret`,Qte=()=>`Secret`,$te=()=>`金鑰`,ene=()=>`密钥`,tne=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yte(e):n===`ja-JP`?Xte(e):n===`ko-KR`?Zte(e):n===`ru-RU`?Qte(e):n===`zh-TW`?$te(e):ene(e)}),nne=()=>`Edit`,rne=()=>`Edit`,ine=()=>`Edit`,ane=()=>`Edit`,one=()=>`編輯`,sne=()=>`编辑`,cne=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nne(e):n===`ja-JP`?rne(e):n===`ko-KR`?ine(e):n===`ru-RU`?ane(e):n===`zh-TW`?one(e):sne(e)}),lne=()=>`Rotate Secret`,une=()=>`Rotate Secret`,dne=()=>`Rotate Secret`,fne=()=>`Rotate Secret`,pne=()=>`輪換金鑰`,mne=()=>`轮换密钥`,hne=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lne(e):n===`ja-JP`?une(e):n===`ko-KR`?dne(e):n===`ru-RU`?fne(e):n===`zh-TW`?pne(e):mne(e)}),gne=()=>`Name`,_ne=()=>`Name`,vne=()=>`Name`,yne=()=>`Name`,bne=()=>`名稱`,xne=()=>`名称`,Sne=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gne(e):n===`ja-JP`?_ne(e):n===`ko-KR`?vne(e):n===`ru-RU`?yne(e):n===`zh-TW`?bne(e):xne(e)}),Cne=()=>`My App`,wne=()=>`My App`,Tne=()=>`My App`,Ene=()=>`My App`,Dne=()=>`我的應用`,One=()=>`我的应用`,kne=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Cne(e):n===`ja-JP`?wne(e):n===`ko-KR`?Tne(e):n===`ru-RU`?Ene(e):n===`zh-TW`?Dne(e):One(e)}),Ane=()=>`Edit API Key`,jne=()=>`Edit API Key`,Mne=()=>`Edit API Key`,Nne=()=>`Edit API Key`,Pne=()=>`編輯 API Key`,Fne=()=>`编辑 API Key`,Ine=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ane(e):n===`ja-JP`?jne(e):n===`ko-KR`?Mne(e):n===`ru-RU`?Nne(e):n===`zh-TW`?Pne(e):Fne(e)}),Lne=()=>`Create API Key`,Rne=()=>`Create API Key`,zne=()=>`Create API Key`,Bne=()=>`Create API Key`,Vne=()=>`建立 API Key`,Hne=()=>`创建 API Key`,Une=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Lne(e):n===`ja-JP`?Rne(e):n===`ko-KR`?zne(e):n===`ru-RU`?Bne(e):n===`zh-TW`?Vne(e):Hne(e)}),Wne=()=>`Modify API Key configuration.`,Gne=()=>`Modify API Key configuration.`,Kne=()=>`Modify API Key configuration.`,qne=()=>`Modify API Key configuration.`,Jne=()=>`修改 API Key 配置。`,Yne=()=>`修改 API Key 配置。`,Xne=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Wne(e):n===`ja-JP`?Gne(e):n===`ko-KR`?Kne(e):n===`ru-RU`?qne(e):n===`zh-TW`?Jne(e):Yne(e)}),Zne=()=>`Create a new API secret key.`,Qne=()=>`Create a new API secret key.`,$ne=()=>`Create a new API secret key.`,ere=()=>`Create a new API secret key.`,tre=()=>`建立新的 API 金鑰。`,nre=()=>`创建新的 API 密钥。`,rre=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Zne(e):n===`ja-JP`?Qne(e):n===`ko-KR`?$ne(e):n===`ru-RU`?ere(e):n===`zh-TW`?tre(e):nre(e)}),ire=()=>`IP Whitelist (Optional)`,are=()=>`IP Whitelist (Optional)`,ore=()=>`IP Whitelist (Optional)`,sre=()=>`IP Whitelist (Optional)`,cre=()=>`IP 白名單(選填)`,lre=()=>`IP 白名单(选填)`,ure=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ire(e):n===`ja-JP`?are(e):n===`ko-KR`?ore(e):n===`ru-RU`?sre(e):n===`zh-TW`?cre(e):lre(e)}),dre=()=>`⚠️ Secret Key is shown only once, please save it immediately`,fre=()=>`⚠️ Secret Key is shown only once, please save it immediately`,pre=()=>`⚠️ Secret Key is shown only once, please save it immediately`,mre=()=>`⚠️ Secret Key is shown only once, please save it immediately`,hre=()=>`⚠️ Secret Key,僅展示一次,請立即儲存`,gre=()=>`⚠️ Secret Key,仅展示一次,请立即保存`,_re=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dre(e):n===`ja-JP`?fre(e):n===`ko-KR`?pre(e):n===`ru-RU`?mre(e):n===`zh-TW`?hre(e):gre(e)}),vre=()=>`Close`,yre=()=>`Close`,bre=()=>`Close`,xre=()=>`Close`,Sre=()=>`關閉`,Cre=()=>`关闭`,wre=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vre(e):n===`ja-JP`?yre(e):n===`ko-KR`?bre(e):n===`ru-RU`?xre(e):n===`zh-TW`?Sre(e):Cre(e)}),Tre=()=>`Save Changes`,Ere=()=>`Save Changes`,Dre=()=>`Save Changes`,Ore=()=>`Save Changes`,kre=()=>`儲存修改`,Are=()=>`保存修改`,jre=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Tre(e):n===`ja-JP`?Ere(e):n===`ko-KR`?Dre(e):n===`ru-RU`?Ore(e):n===`zh-TW`?kre(e):Are(e)}),Mre=()=>`Create Key`,Nre=()=>`Create Key`,Pre=()=>`Create Key`,Fre=()=>`Create Key`,Ire=()=>`建立 Key`,Lre=()=>`创建 Key`,Rre=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Mre(e):n===`ja-JP`?Nre(e):n===`ko-KR`?Pre(e):n===`ru-RU`?Fre(e):n===`zh-TW`?Ire(e):Lre(e)}),zre=()=>`API Key updated successfully`,Bre=()=>`API Key updated successfully`,Vre=()=>`API Key updated successfully`,Hre=()=>`API Key updated successfully`,Ure=()=>`API Key 更新成功`,Wre=()=>`API Key 更新成功`,Gre=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zre(e):n===`ja-JP`?Bre(e):n===`ko-KR`?Vre(e):n===`ru-RU`?Hre(e):n===`zh-TW`?Ure(e):Wre(e)}),Kre=()=>`API Key created successfully`,qre=()=>`API Key created successfully`,Jre=()=>`API Key created successfully`,Yre=()=>`API Key created successfully`,Xre=()=>`API Key 建立成功`,Zre=()=>`API Key 创建成功`,Qre=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Kre(e):n===`ja-JP`?qre(e):n===`ko-KR`?Jre(e):n===`ru-RU`?Yre(e):n===`zh-TW`?Xre(e):Zre(e)}),$re=()=>`Please enter a name`,eie=()=>`Please enter a name`,tie=()=>`Please enter a name`,nie=()=>`Please enter a name`,rie=()=>`請輸入名稱`,iie=()=>`请输入名称`,aie=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$re(e):n===`ja-JP`?eie(e):n===`ko-KR`?tie(e):n===`ru-RU`?nie(e):n===`zh-TW`?rie(e):iie(e)}),oie=e=>`${e?.action} succeeded`,sie=e=>`${e?.action} succeeded`,cie=e=>`${e?.action} succeeded`,lie=e=>`${e?.action} succeeded`,uie=e=>`${e?.action}成功`,die=e=>`${e?.action}成功`,fie=((e,t={})=>{let n=t.locale??m();return n===`en-US`?oie(e):n===`ja-JP`?sie(e):n===`ko-KR`?cie(e):n===`ru-RU`?lie(e):n===`zh-TW`?uie(e):die(e)}),pie=()=>`Please enter your current password`,mie=()=>`Please enter your current password`,hie=()=>`Please enter your current password`,gie=()=>`Please enter your current password`,_ie=()=>`請輸入當前密碼`,vie=()=>`请输入当前密码`,yie=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pie(e):n===`ja-JP`?mie(e):n===`ko-KR`?hie(e):n===`ru-RU`?gie(e):n===`zh-TW`?_ie(e):vie(e)}),bie=()=>`New password must be at least 8 characters`,xie=()=>`New password must be at least 8 characters`,Sie=()=>`New password must be at least 8 characters`,Cie=()=>`New password must be at least 8 characters`,wie=()=>`新密碼至少 8 位`,Tie=()=>`新密码至少 8 位`,Eie=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bie(e):n===`ja-JP`?xie(e):n===`ko-KR`?Sie(e):n===`ru-RU`?Cie(e):n===`zh-TW`?wie(e):Tie(e)}),Die=()=>`Please confirm your new password`,Oie=()=>`Please confirm your new password`,kie=()=>`Please confirm your new password`,Aie=()=>`Please confirm your new password`,jie=()=>`請確認新密碼`,Mie=()=>`请确认新密码`,Nie=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Die(e):n===`ja-JP`?Oie(e):n===`ko-KR`?kie(e):n===`ru-RU`?Aie(e):n===`zh-TW`?jie(e):Mie(e)}),Pie=()=>`The two passwords do not match`,Fie=()=>`The two passwords do not match`,Iie=()=>`The two passwords do not match`,Lie=()=>`The two passwords do not match`,Rie=()=>`兩次輸入的密碼不一致`,zie=()=>`两次输入的密码不一致`,Bie=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Pie(e):n===`ja-JP`?Fie(e):n===`ko-KR`?Iie(e):n===`ru-RU`?Lie(e):n===`zh-TW`?Rie(e):zie(e)}),Vie=()=>`Password updated successfully`,Hie=()=>`Password updated successfully`,Uie=()=>`Password updated successfully`,Wie=()=>`Password updated successfully`,Gie=()=>`密碼修改成功`,Kie=()=>`密码修改成功`,qie=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Vie(e):n===`ja-JP`?Hie(e):n===`ko-KR`?Uie(e):n===`ru-RU`?Wie(e):n===`zh-TW`?Gie(e):Kie(e)}),Jie=()=>`Current password`,Yie=()=>`Current password`,Xie=()=>`Current password`,Zie=()=>`Current password`,Qie=()=>`當前密碼`,$ie=()=>`当前密码`,eae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Jie(e):n===`ja-JP`?Yie(e):n===`ko-KR`?Xie(e):n===`ru-RU`?Zie(e):n===`zh-TW`?Qie(e):$ie(e)}),tae=()=>`Enter current password`,nae=()=>`Enter current password`,rae=()=>`Enter current password`,iae=()=>`Enter current password`,aae=()=>`輸入當前密碼`,oae=()=>`输入当前密码`,sae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tae(e):n===`ja-JP`?nae(e):n===`ko-KR`?rae(e):n===`ru-RU`?iae(e):n===`zh-TW`?aae(e):oae(e)}),cae=()=>`New password`,lae=()=>`New password`,uae=()=>`New password`,dae=()=>`New password`,fae=()=>`新密碼`,pae=()=>`新密码`,mae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cae(e):n===`ja-JP`?lae(e):n===`ko-KR`?uae(e):n===`ru-RU`?dae(e):n===`zh-TW`?fae(e):pae(e)}),hae=()=>`At least 8 characters`,gae=()=>`At least 8 characters`,_ae=()=>`At least 8 characters`,vae=()=>`At least 8 characters`,yae=()=>`至少 8 位`,bae=()=>`至少 8 位`,xae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hae(e):n===`ja-JP`?gae(e):n===`ko-KR`?_ae(e):n===`ru-RU`?vae(e):n===`zh-TW`?yae(e):bae(e)}),Sae=()=>`Confirm new password`,Cae=()=>`Confirm new password`,wae=()=>`Confirm new password`,Tae=()=>`Confirm new password`,Eae=()=>`確認新密碼`,Dae=()=>`确认新密码`,Oae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Sae(e):n===`ja-JP`?Cae(e):n===`ko-KR`?wae(e):n===`ru-RU`?Tae(e):n===`zh-TW`?Eae(e):Dae(e)}),kae=()=>`Enter new password again`,Aae=()=>`Enter new password again`,jae=()=>`Enter new password again`,Mae=()=>`Enter new password again`,Nae=()=>`再次輸入新密碼`,Pae=()=>`再次输入新密码`,Fae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kae(e):n===`ja-JP`?Aae(e):n===`ko-KR`?jae(e):n===`ru-RU`?Mae(e):n===`zh-TW`?Nae(e):Pae(e)}),Iae=()=>`Saving…`,Lae=()=>`Saving…`,Rae=()=>`Saving…`,zae=()=>`Saving…`,Bae=()=>`儲存中…`,Vae=()=>`保存中…`,Hae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Iae(e):n===`ja-JP`?Lae(e):n===`ko-KR`?Rae(e):n===`ru-RU`?zae(e):n===`zh-TW`?Bae(e):Vae(e)}),Uae=()=>`Save changes`,Wae=()=>`Save changes`,Gae=()=>`Save changes`,Kae=()=>`Save changes`,qae=()=>`儲存修改`,Jae=()=>`保存修改`,Yae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Uae(e):n===`ja-JP`?Wae(e):n===`ko-KR`?Gae(e):n===`ru-RU`?Kae(e):n===`zh-TW`?qae(e):Jae(e)}),Xae=()=>`System Settings`,Zae=()=>`System Settings`,Qae=()=>`System Settings`,$ae=()=>`System Settings`,eoe=()=>`系統配置`,toe=()=>`系统配置`,noe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Xae(e):n===`ja-JP`?Zae(e):n===`ko-KR`?Qae(e):n===`ru-RU`?$ae(e):n===`zh-TW`?eoe(e):toe(e)}),roe=()=>`Manage checkout basics, Telegram notifications, exchange rate strategy, and payment parameters in one place.`,ioe=()=>`Manage checkout basics, Telegram notifications, exchange rate strategy, and payment parameters in one place.`,aoe=()=>`Manage checkout basics, Telegram notifications, exchange rate strategy, and payment parameters in one place.`,ooe=()=>`Manage checkout basics, Telegram notifications, exchange rate strategy, and payment parameters in one place.`,soe=()=>`集中管理收銀臺基礎配置、Telegram 通知、匯率策略與收款引數。`,coe=()=>`集中管理收银台基础配置、Telegram 通知、汇率策略与收款参数。`,loe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?roe(e):n===`ja-JP`?ioe(e):n===`ko-KR`?aoe(e):n===`ru-RU`?ooe(e):n===`zh-TW`?soe(e):coe(e)}),uoe=()=>`Configure checkout display information.`,doe=()=>`Configure checkout display information.`,foe=()=>`Configure checkout display information.`,poe=()=>`Configure checkout display information.`,moe=()=>`配置收銀臺展示資訊。`,hoe=()=>`配置收银台展示信息。`,goe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?uoe(e):n===`ja-JP`?doe(e):n===`ko-KR`?foe(e):n===`ru-RU`?poe(e):n===`zh-TW`?moe(e):hoe(e)}),_oe=()=>`Please enter the checkout name`,voe=()=>`Please enter the checkout name`,yoe=()=>`Please enter the checkout name`,boe=()=>`Please enter the checkout name`,xoe=()=>`請輸入收銀臺名稱`,Soe=()=>`请输入收银台名称`,Coe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_oe(e):n===`ja-JP`?voe(e):n===`ko-KR`?yoe(e):n===`ru-RU`?boe(e):n===`zh-TW`?xoe(e):Soe(e)}),woe=()=>`Please enter a valid logo URL`,Toe=()=>`Please enter a valid logo URL`,Eoe=()=>`Please enter a valid logo URL`,Doe=()=>`Please enter a valid logo URL`,Ooe=()=>`請輸入合法 Logo 地址`,koe=()=>`请输入有效 Logo 地址`,Aoe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?woe(e):n===`ja-JP`?Toe(e):n===`ko-KR`?Eoe(e):n===`ru-RU`?Doe(e):n===`zh-TW`?Ooe(e):koe(e)}),joe=()=>`Please enter the site title`,Moe=()=>`Please enter the site title`,Noe=()=>`Please enter the site title`,Poe=()=>`Please enter the site title`,Foe=()=>`請輸入網站標題`,Ioe=()=>`请输入网站标题`,Loe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?joe(e):n===`ja-JP`?Moe(e):n===`ko-KR`?Noe(e):n===`ru-RU`?Poe(e):n===`zh-TW`?Foe(e):Ioe(e)}),Roe=()=>`Please enter a valid support URL`,zoe=()=>`Please enter a valid support URL`,Boe=()=>`Please enter a valid support URL`,Voe=()=>`Please enter a valid support URL`,Hoe=()=>`請輸入合法客服連結`,Uoe=()=>`请输入有效客服链接`,Woe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Roe(e):n===`ja-JP`?zoe(e):n===`ko-KR`?Boe(e):n===`ru-RU`?Voe(e):n===`zh-TW`?Hoe(e):Uoe(e)}),Goe=()=>`Base settings reset to defaults`,Koe=()=>`Base settings reset to defaults`,qoe=()=>`Base settings reset to defaults`,Joe=()=>`Base settings reset to defaults`,Yoe=()=>`基礎配置已重置為預設值`,Xoe=()=>`基础配置已重置为默认值`,Zoe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Goe(e):n===`ja-JP`?Koe(e):n===`ko-KR`?qoe(e):n===`ru-RU`?Joe(e):n===`zh-TW`?Yoe(e):Xoe(e)}),Qoe=()=>`Base settings saved`,$oe=()=>`Base settings saved`,ese=()=>`Base settings saved`,tse=()=>`Base settings saved`,nse=()=>`基礎配置已儲存`,rse=()=>`基础配置已保存`,ise=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Qoe(e):n===`ja-JP`?$oe(e):n===`ko-KR`?ese(e):n===`ru-RU`?tse(e):n===`zh-TW`?nse(e):rse(e)}),ase=()=>`Checkout name`,ose=()=>`Checkout name`,sse=()=>`Checkout name`,cse=()=>`Checkout name`,lse=()=>`收銀臺名稱`,use=()=>`收银台名称`,dse=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ase(e):n===`ja-JP`?ose(e):n===`ko-KR`?sse(e):n===`ru-RU`?cse(e):n===`zh-TW`?lse(e):use(e)}),fse=()=>`Logo URL`,pse=()=>`Logo URL`,mse=()=>`Logo URL`,hse=()=>`Logo URL`,gse=()=>`Logo URL`,_se=()=>`Logo URL`,vse=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fse(e):n===`ja-JP`?pse(e):n===`ko-KR`?mse(e):n===`ru-RU`?hse(e):n===`zh-TW`?gse(e):_se(e)}),yse=()=>`Site title`,bse=()=>`Site title`,xse=()=>`Site title`,Sse=()=>`Site title`,Cse=()=>`網站標題`,wse=()=>`网站标题`,Tse=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yse(e):n===`ja-JP`?bse(e):n===`ko-KR`?xse(e):n===`ru-RU`?Sse(e):n===`zh-TW`?Cse(e):wse(e)}),Ese=()=>`Support URL`,Dse=()=>`Support URL`,Ose=()=>`Support URL`,kse=()=>`Support URL`,Ase=()=>`客服連結`,jse=()=>`客服链接`,Mse=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ese(e):n===`ja-JP`?Dse(e):n===`ko-KR`?Ose(e):n===`ru-RU`?kse(e):n===`zh-TW`?Ase(e):jse(e)}),Nse=()=>`Background color`,Pse=()=>`Background color`,Fse=()=>`Background color`,Ise=()=>`Background color`,Lse=()=>`背景顏色`,Rse=()=>`背景颜色`,zse=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Nse(e):n===`ja-JP`?Pse(e):n===`ko-KR`?Fse(e):n===`ru-RU`?Ise(e):n===`zh-TW`?Lse(e):Rse(e)}),Bse=()=>`Supports rgba() and hex alpha values. Leave empty to use the default background.`,Vse=()=>`Supports rgba() and hex alpha values. Leave empty to use the default background.`,Hse=()=>`Supports rgba() and hex alpha values. Leave empty to use the default background.`,Use=()=>`Supports rgba() and hex alpha values. Leave empty to use the default background.`,Wse=()=>`支援 rgba() 和帶透明度的 hex 值。留空則使用預設背景。`,Gse=()=>`支持 rgba() 和带透明度的 hex 值。留空则使用默认背景。`,Kse=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Bse(e):n===`ja-JP`?Vse(e):n===`ko-KR`?Hse(e):n===`ru-RU`?Use(e):n===`zh-TW`?Wse(e):Gse(e)}),qse=()=>`Please enter a valid color`,Jse=()=>`Please enter a valid color`,Yse=()=>`Please enter a valid color`,Xse=()=>`Please enter a valid color`,Zse=()=>`請輸入有效顏色`,Qse=()=>`请输入有效颜色`,$se=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qse(e):n===`ja-JP`?Jse(e):n===`ko-KR`?Yse(e):n===`ru-RU`?Xse(e):n===`zh-TW`?Zse(e):Qse(e)}),ece=()=>`Background image URL`,tce=()=>`Background image URL`,nce=()=>`Background image URL`,rce=()=>`Background image URL`,ice=()=>`背景圖 URL`,ace=()=>`背景图 URL`,oce=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ece(e):n===`ja-JP`?tce(e):n===`ko-KR`?nce(e):n===`ru-RU`?rce(e):n===`zh-TW`?ice(e):ace(e)}),sce=()=>`Please enter a valid background image URL`,cce=()=>`Please enter a valid background image URL`,lce=()=>`Please enter a valid background image URL`,uce=()=>`Please enter a valid background image URL`,dce=()=>`請輸入有效背景圖地址`,fce=()=>`请输入有效背景图地址`,pce=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sce(e):n===`ja-JP`?cce(e):n===`ko-KR`?lce(e):n===`ru-RU`?uce(e):n===`zh-TW`?dce(e):fce(e)}),mce=()=>`Save base settings`,hce=()=>`Save base settings`,gce=()=>`Save base settings`,_ce=()=>`Save base settings`,vce=()=>`儲存基礎配置`,yce=()=>`保存基础配置`,bce=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mce(e):n===`ja-JP`?hce(e):n===`ko-KR`?gce(e):n===`ru-RU`?_ce(e):n===`zh-TW`?vce(e):yce(e)}),xce=()=>`Reset to defaults`,Sce=()=>`Reset to defaults`,Cce=()=>`Reset to defaults`,wce=()=>`Reset to defaults`,Tce=()=>`重置為預設值`,Ece=()=>`重置为默认值`,Dce=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xce(e):n===`ja-JP`?Sce(e):n===`ko-KR`?Cce(e):n===`ru-RU`?wce(e):n===`zh-TW`?Tce(e):Ece(e)}),Oce=()=>`System Logs`,kce=()=>`System Logs`,Ace=()=>`System Logs`,jce=()=>`System Logs`,Mce=()=>`系統日誌`,Nce=()=>`系统日志`,Pce=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Oce(e):n===`ja-JP`?kce(e):n===`ko-KR`?Ace(e):n===`ru-RU`?jce(e):n===`zh-TW`?Mce(e):Nce(e)}),Fce=()=>`Configure runtime log output.`,Ice=()=>`Configure runtime log output.`,Lce=()=>`Configure runtime log output.`,Rce=()=>`Configure runtime log output.`,zce=()=>`配置執行時日誌輸出。`,Bce=()=>`配置运行时日志输出。`,Vce=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Fce(e):n===`ja-JP`?Ice(e):n===`ko-KR`?Lce(e):n===`ru-RU`?Rce(e):n===`zh-TW`?zce(e):Bce(e)}),Hce=()=>`System log settings saved`,Uce=()=>`System log settings saved`,Wce=()=>`System log settings saved`,Gce=()=>`System log settings saved`,Kce=()=>`系統日誌配置已儲存`,qce=()=>`系统日志配置已保存`,Jce=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hce(e):n===`ja-JP`?Uce(e):n===`ko-KR`?Wce(e):n===`ru-RU`?Gce(e):n===`zh-TW`?Kce(e):qce(e)}),Yce=()=>`System log settings reset to defaults`,Xce=()=>`System log settings reset to defaults`,Zce=()=>`System log settings reset to defaults`,Qce=()=>`System log settings reset to defaults`,$ce=()=>`系統日誌配置已重置為預設值`,ele=()=>`系统日志配置已重置为默认值`,tle=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yce(e):n===`ja-JP`?Xce(e):n===`ko-KR`?Zce(e):n===`ru-RU`?Qce(e):n===`zh-TW`?$ce(e):ele(e)}),nle=()=>`Save system log settings`,rle=()=>`Save system log settings`,ile=()=>`Save system log settings`,ale=()=>`Save system log settings`,ole=()=>`儲存系統日誌配置`,sle=()=>`保存系统日志配置`,cle=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nle(e):n===`ja-JP`?rle(e):n===`ko-KR`?ile(e):n===`ru-RU`?ale(e):n===`zh-TW`?ole(e):sle(e)}),lle=()=>`Reset to defaults`,ule=()=>`Reset to defaults`,dle=()=>`Reset to defaults`,fle=()=>`Reset to defaults`,ple=()=>`重置為預設值`,mle=()=>`重置为默认值`,hle=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lle(e):n===`ja-JP`?ule(e):n===`ko-KR`?dle(e):n===`ru-RU`?fle(e):n===`zh-TW`?ple(e):mle(e)}),gle=()=>`Used for payment notifications and exception alerts.`,_le=()=>`Used for payment notifications and exception alerts.`,vle=()=>`Used for payment notifications and exception alerts.`,yle=()=>`Used for payment notifications and exception alerts.`,ble=()=>`用於收款通知與異常提醒推送。`,xle=()=>`用于收款通知与异常提醒推送。`,Sle=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gle(e):n===`ja-JP`?_le(e):n===`ko-KR`?vle(e):n===`ru-RU`?yle(e):n===`zh-TW`?ble(e):xle(e)}),Cle=()=>`Please enter the Bot Token`,wle=()=>`Please enter the Bot Token`,Tle=()=>`Please enter the Bot Token`,Ele=()=>`Please enter the Bot Token`,Dle=()=>`請輸入 Bot Token`,Ole=()=>`请输入 Bot Token`,kle=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Cle(e):n===`ja-JP`?wle(e):n===`ko-KR`?Tle(e):n===`ru-RU`?Ele(e):n===`zh-TW`?Dle(e):Ole(e)}),Ale=()=>`Please enter the Chat ID`,jle=()=>`Please enter the Chat ID`,Mle=()=>`Please enter the Chat ID`,Nle=()=>`Please enter the Chat ID`,Ple=()=>`請輸入 Chat ID`,Fle=()=>`请输入 Chat ID`,Ile=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ale(e):n===`ja-JP`?jle(e):n===`ko-KR`?Mle(e):n===`ru-RU`?Nle(e):n===`zh-TW`?Ple(e):Fle(e)}),Lle=()=>`Telegram settings saved`,Rle=()=>`Telegram settings saved`,zle=()=>`Telegram settings saved`,Ble=()=>`Telegram settings saved`,Vle=()=>`Telegram 配置已儲存`,Hle=()=>`Telegram 配置已保存`,Ule=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Lle(e):n===`ja-JP`?Rle(e):n===`ko-KR`?zle(e):n===`ru-RU`?Ble(e):n===`zh-TW`?Vle(e):Hle(e)}),Wle=()=>`Bot Token`,Gle=()=>`Bot Token`,Kle=()=>`Bot Token`,qle=()=>`Bot Token`,Jle=()=>`Bot Token`,Yle=()=>`Bot Token`,Xle=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Wle(e):n===`ja-JP`?Gle(e):n===`ko-KR`?Kle(e):n===`ru-RU`?qle(e):n===`zh-TW`?Jle(e):Yle(e)}),Zle=()=>`Chat ID`,Qle=()=>`Chat ID`,$le=()=>`Chat ID`,eue=()=>`Chat ID`,tue=()=>`Chat ID`,nue=()=>`Chat ID`,rue=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Zle(e):n===`ja-JP`?Qle(e):n===`ko-KR`?$le(e):n===`ru-RU`?eue(e):n===`zh-TW`?tue(e):nue(e)}),iue=()=>`Payment notification switch`,aue=()=>`Payment notification switch`,oue=()=>`Payment notification switch`,sue=()=>`Payment notification switch`,cue=()=>`收款通知開關`,lue=()=>`收款通知开关`,uue=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?iue(e):n===`ja-JP`?aue(e):n===`ko-KR`?oue(e):n===`ru-RU`?sue(e):n===`zh-TW`?cue(e):lue(e)}),due=()=>`Abnormal notification switch`,fue=()=>`Abnormal notification switch`,pue=()=>`Abnormal notification switch`,mue=()=>`Abnormal notification switch`,hue=()=>`異常通知開關`,gue=()=>`异常通知开关`,_ue=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?due(e):n===`ja-JP`?fue(e):n===`ko-KR`?pue(e):n===`ru-RU`?mue(e):n===`zh-TW`?hue(e):gue(e)}),vue=()=>`Save Telegram settings`,yue=()=>`Save Telegram settings`,bue=()=>`Save Telegram settings`,xue=()=>`Save Telegram settings`,Sue=()=>`儲存 Telegram 配置`,Cue=()=>`保存 Telegram 配置`,wue=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vue(e):n===`ja-JP`?yue(e):n===`ko-KR`?bue(e):n===`ru-RU`?xue(e):n===`zh-TW`?Sue(e):Cue(e)}),Tue=()=>`Reset to defaults`,Eue=()=>`Reset to defaults`,Due=()=>`Reset to defaults`,Oue=()=>`Reset to defaults`,kue=()=>`重置為預設值`,Aue=()=>`重置为默认值`,jue=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Tue(e):n===`ja-JP`?Eue(e):n===`ko-KR`?Due(e):n===`ru-RU`?Oue(e):n===`zh-TW`?kue(e):Aue(e)}),Mue=()=>`Telegram settings reset to defaults`,Nue=()=>`Telegram settings reset to defaults`,Pue=()=>`Telegram settings reset to defaults`,Fue=()=>`Telegram settings reset to defaults`,Iue=()=>`Telegram 配置已重置為預設值`,Lue=()=>`Telegram 配置已重置为默认值`,Rue=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Mue(e):n===`ja-JP`?Nue(e):n===`ko-KR`?Pue(e):n===`ru-RU`?Fue(e):n===`zh-TW`?Iue(e):Lue(e)}),zue=()=>`Configure payment amount precision and exchange rate strategy.`,Bue=()=>`Configure payment amount precision and exchange rate strategy.`,Vue=()=>`Configure payment amount precision and exchange rate strategy.`,Hue=()=>`Configure payment amount precision and exchange rate strategy.`,Uue=()=>`配置支付金額精度與匯率策略。`,Wue=()=>`配置支付金额精度与汇率策略。`,Gue=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zue(e):n===`ja-JP`?Bue(e):n===`ko-KR`?Vue(e):n===`ru-RU`?Hue(e):n===`zh-TW`?Uue(e):Wue(e)}),Kue=()=>`Amount precision must be an integer from 2 to 6`,que=()=>`Amount precision must be an integer from 2 to 6`,Jue=()=>`Amount precision must be an integer from 2 to 6`,Yue=()=>`Amount precision must be an integer from 2 to 6`,Xue=()=>`金額精度必須是 2 到 6 的整數`,Zue=()=>`金额精度必须是 2 到 6 的整数`,Que=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Kue(e):n===`ja-JP`?que(e):n===`ko-KR`?Jue(e):n===`ru-RU`?Yue(e):n===`zh-TW`?Xue(e):Zue(e)}),$ue=()=>`Please enter a valid API URL`,ede=()=>`Please enter a valid API URL`,tde=()=>`Please enter a valid API URL`,nde=()=>`Please enter a valid API URL`,rde=()=>`請輸入合法 API 地址`,ide=()=>`请输入有效 API 地址`,ade=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$ue(e):n===`ja-JP`?ede(e):n===`ko-KR`?tde(e):n===`ru-RU`?nde(e):n===`zh-TW`?rde(e):ide(e)}),ode=()=>`Please enter a valid exchange rate`,sde=()=>`Please enter a valid exchange rate`,cde=()=>`Please enter a valid exchange rate`,lde=()=>`Please enter a valid exchange rate`,ude=()=>`請輸入有效匯率`,dde=()=>`请输入有效汇率`,fde=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ode(e):n===`ja-JP`?sde(e):n===`ko-KR`?cde(e):n===`ru-RU`?lde(e):n===`zh-TW`?ude(e):dde(e)}),pde=()=>`Payment settings reset to defaults`,mde=()=>`Payment settings reset to defaults`,hde=()=>`Payment settings reset to defaults`,gde=()=>`Payment settings reset to defaults`,_de=()=>`支付配置已重置為預設值`,vde=()=>`支付配置已重置为默认值`,yde=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pde(e):n===`ja-JP`?mde(e):n===`ko-KR`?hde(e):n===`ru-RU`?gde(e):n===`zh-TW`?_de(e):vde(e)}),bde=()=>`Payment settings saved`,xde=()=>`Payment settings saved`,Sde=()=>`Payment settings saved`,Cde=()=>`Payment settings saved`,wde=()=>`支付配置已儲存`,Tde=()=>`支付配置已保存`,Ede=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bde(e):n===`ja-JP`?xde(e):n===`ko-KR`?Sde(e):n===`ru-RU`?Cde(e):n===`zh-TW`?wde(e):Tde(e)}),Dde=()=>`Amount precision`,Ode=()=>`Amount precision`,kde=()=>`Amount precision`,Ade=()=>`Amount precision`,jde=()=>`金額精度`,Mde=()=>`金额精度`,Nde=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Dde(e):n===`ja-JP`?Ode(e):n===`ko-KR`?kde(e):n===`ru-RU`?Ade(e):n===`zh-TW`?jde(e):Mde(e)}),Pde=()=>`Exchange rate API URL`,Fde=()=>`Exchange rate API URL`,Ide=()=>`Exchange rate API URL`,Lde=()=>`Exchange rate API URL`,Rde=()=>`匯率 API 地址`,zde=()=>`汇率 API 地址`,Bde=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Pde(e):n===`ja-JP`?Fde(e):n===`ko-KR`?Ide(e):n===`ru-RU`?Lde(e):n===`zh-TW`?Rde(e):zde(e)}),Vde=()=>`Set the API endpoint used to fetch exchange rates.`,Hde=()=>`Set the API endpoint used to fetch exchange rates.`,Ude=()=>`Set the API endpoint used to fetch exchange rates.`,Wde=()=>`Set the API endpoint used to fetch exchange rates.`,Gde=()=>`設定用於取得匯率的 API 介面地址。`,Kde=()=>`设置用于获取汇率的 API 接口地址。`,qde=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Vde(e):n===`ja-JP`?Hde(e):n===`ko-KR`?Ude(e):n===`ru-RU`?Wde(e):n===`zh-TW`?Gde(e):Kde(e)}),Jde=()=>`View docs`,Yde=()=>`View docs`,Xde=()=>`View docs`,Zde=()=>`View docs`,Qde=()=>`查看文件`,$de=()=>`查看文档`,efe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Jde(e):n===`ja-JP`?Yde(e):n===`ko-KR`?Xde(e):n===`ru-RU`?Zde(e):n===`zh-TW`?Qde(e):$de(e)}),tfe=()=>`Runtime log level`,nfe=()=>`Runtime log level`,rfe=()=>`Runtime log level`,ife=()=>`Runtime log level`,afe=()=>`執行日誌級別`,ofe=()=>`运行日志级别`,sfe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tfe(e):n===`ja-JP`?nfe(e):n===`ko-KR`?rfe(e):n===`ru-RU`?ife(e):n===`zh-TW`?afe(e):ofe(e)}),cfe=()=>`Controls backend runtime logging. Deleting this setting resets it to Error.`,lfe=()=>`Controls backend runtime logging. Deleting this setting resets it to Error.`,ufe=()=>`Controls backend runtime logging. Deleting this setting resets it to Error.`,dfe=()=>`Controls backend runtime logging. Deleting this setting resets it to Error.`,ffe=()=>`控制後端執行時日誌輸出。刪除此設定會重設為 Error。`,pfe=()=>`控制后端运行时日志输出。删除该配置会重置为 Error。`,mfe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cfe(e):n===`ja-JP`?lfe(e):n===`ko-KR`?ufe(e):n===`ru-RU`?dfe(e):n===`zh-TW`?ffe(e):pfe(e)}),hfe=()=>`Debug`,gfe=()=>`Debug`,_fe=()=>`Debug`,vfe=()=>`Debug`,yfe=()=>`Debug`,bfe=()=>`Debug`,xfe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hfe(e):n===`ja-JP`?gfe(e):n===`ko-KR`?_fe(e):n===`ru-RU`?vfe(e):n===`zh-TW`?yfe(e):bfe(e)}),Sfe=()=>`Info`,Cfe=()=>`Info`,wfe=()=>`Info`,Tfe=()=>`Info`,Efe=()=>`Info`,Dfe=()=>`Info`,Ofe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Sfe(e):n===`ja-JP`?Cfe(e):n===`ko-KR`?wfe(e):n===`ru-RU`?Tfe(e):n===`zh-TW`?Efe(e):Dfe(e)}),kfe=()=>`Warn`,Afe=()=>`Warn`,jfe=()=>`Warn`,Mfe=()=>`Warn`,Nfe=()=>`Warn`,Pfe=()=>`Warn`,Ffe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kfe(e):n===`ja-JP`?Afe(e):n===`ko-KR`?jfe(e):n===`ru-RU`?Mfe(e):n===`zh-TW`?Nfe(e):Pfe(e)}),Ife=()=>`Error`,Lfe=()=>`Error`,Rfe=()=>`Error`,zfe=()=>`Error`,Bfe=()=>`Error`,Vfe=()=>`Error`,Hfe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ife(e):n===`ja-JP`?Lfe(e):n===`ko-KR`?Rfe(e):n===`ru-RU`?zfe(e):n===`zh-TW`?Bfe(e):Vfe(e)}),Ufe=()=>`Forced rate table`,Wfe=()=>`Forced rate table`,Gfe=()=>`Forced rate table`,Kfe=()=>`Forced rate table`,qfe=()=>`強制匯率表`,Jfe=()=>`强制汇率表`,Yfe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ufe(e):n===`ja-JP`?Wfe(e):n===`ko-KR`?Gfe(e):n===`ru-RU`?Kfe(e):n===`zh-TW`?qfe(e):Jfe(e)}),Xfe=()=>`Preview`,Zfe=()=>`Preview`,Qfe=()=>`Preview`,$fe=()=>`Preview`,epe=()=>`預覽`,tpe=()=>`预览`,npe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Xfe(e):n===`ja-JP`?Zfe(e):n===`ko-KR`?Qfe(e):n===`ru-RU`?$fe(e):n===`zh-TW`?epe(e):tpe(e)}),rpe=()=>`Review the parsed currency and coin rates before saving.`,ipe=()=>`Review the parsed currency and coin rates before saving.`,ape=()=>`Review the parsed currency and coin rates before saving.`,ope=()=>`Review the parsed currency and coin rates before saving.`,spe=()=>`儲存前查看解析後的法幣與代幣匯率。`,cpe=()=>`保存前查看解析后的法币与代币汇率。`,lpe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rpe(e):n===`ja-JP`?ipe(e):n===`ko-KR`?ape(e):n===`ru-RU`?ope(e):n===`zh-TW`?spe(e):cpe(e)}),upe=()=>`Currency`,dpe=()=>`Currency`,fpe=()=>`Currency`,ppe=()=>`Currency`,mpe=()=>`法幣`,hpe=()=>`法币`,gpe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?upe(e):n===`ja-JP`?dpe(e):n===`ko-KR`?fpe(e):n===`ru-RU`?ppe(e):n===`zh-TW`?mpe(e):hpe(e)}),_pe=()=>`Coin`,vpe=()=>`Coin`,ype=()=>`Coin`,bpe=()=>`Coin`,xpe=()=>`代幣`,Spe=()=>`代币`,Cpe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_pe(e):n===`ja-JP`?vpe(e):n===`ko-KR`?ype(e):n===`ru-RU`?bpe(e):n===`zh-TW`?xpe(e):Spe(e)}),wpe=()=>`Rate`,Tpe=()=>`Rate`,Epe=()=>`Rate`,Dpe=()=>`Rate`,Ope=()=>`匯率`,kpe=()=>`汇率`,Ape=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wpe(e):n===`ja-JP`?Tpe(e):n===`ko-KR`?Epe(e):n===`ru-RU`?Dpe(e):n===`zh-TW`?Ope(e):kpe(e)}),jpe=()=>`Reverse preview`,Mpe=()=>`Reverse preview`,Npe=()=>`Reverse preview`,Ppe=()=>`Reverse preview`,Fpe=()=>`反向預覽`,Ipe=()=>`反向预览`,Lpe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jpe(e):n===`ja-JP`?Mpe(e):n===`ko-KR`?Npe(e):n===`ru-RU`?Ppe(e):n===`zh-TW`?Fpe(e):Ipe(e)}),Rpe=()=>`Original preview`,zpe=()=>`Original preview`,Bpe=()=>`Original preview`,Vpe=()=>`Original preview`,Hpe=()=>`原始預覽`,Upe=()=>`原始预览`,Wpe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Rpe(e):n===`ja-JP`?zpe(e):n===`ko-KR`?Bpe(e):n===`ru-RU`?Vpe(e):n===`zh-TW`?Hpe(e):Upe(e)}),Gpe=()=>`No forced rates`,Kpe=()=>`No forced rates`,qpe=()=>`No forced rates`,Jpe=()=>`No forced rates`,Ype=()=>`暫無強制匯率`,Xpe=()=>`暂无强制汇率`,Zpe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Gpe(e):n===`ja-JP`?Kpe(e):n===`ko-KR`?qpe(e):n===`ru-RU`?Jpe(e):n===`zh-TW`?Ype(e):Xpe(e)}),Qpe=()=>`Save payment settings`,$pe=()=>`Save payment settings`,eme=()=>`Save payment settings`,tme=()=>`Save payment settings`,nme=()=>`儲存支付配置`,rme=()=>`保存支付配置`,ime=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Qpe(e):n===`ja-JP`?$pe(e):n===`ko-KR`?eme(e):n===`ru-RU`?tme(e):n===`zh-TW`?nme(e):rme(e)}),ame=()=>`Reset to defaults`,ome=()=>`Reset to defaults`,sme=()=>`Reset to defaults`,cme=()=>`Reset to defaults`,lme=()=>`重置為預設值`,ume=()=>`重置为默认值`,dme=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ame(e):n===`ja-JP`?ome(e):n===`ko-KR`?sme(e):n===`ru-RU`?cme(e):n===`zh-TW`?lme(e):ume(e)}),fme=()=>`Configure the default payment token, fiat currency, and network.`,pme=()=>`Configure the default payment token, fiat currency, and network.`,mme=()=>`Configure the default payment token, fiat currency, and network.`,hme=()=>`Configure the default payment token, fiat currency, and network.`,gme=()=>`配置預設收款代幣、法幣與網路。`,_me=()=>`配置默认收款代币、法币与网络。`,vme=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fme(e):n===`ja-JP`?pme(e):n===`ko-KR`?mme(e):n===`ru-RU`?hme(e):n===`zh-TW`?gme(e):_me(e)}),yme=()=>`Payment settings saved`,bme=()=>`Payment settings saved`,xme=()=>`Payment settings saved`,Sme=()=>`Payment settings saved`,Cme=()=>`收款配置已儲存`,wme=()=>`收款配置已保存`,Tme=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yme(e):n===`ja-JP`?bme(e):n===`ko-KR`?xme(e):n===`ru-RU`?Sme(e):n===`zh-TW`?Cme(e):wme(e)}),Eme=()=>`Save payment settings`,Dme=()=>`Save payment settings`,Ome=()=>`Save payment settings`,kme=()=>`Save payment settings`,Ame=()=>`儲存收款配置`,jme=()=>`保存收款配置`,Mme=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Eme(e):n===`ja-JP`?Dme(e):n===`ko-KR`?Ome(e):n===`ru-RU`?kme(e):n===`zh-TW`?Ame(e):jme(e)}),Nme=()=>`Reset to defaults`,Pme=()=>`Reset to defaults`,Fme=()=>`Reset to defaults`,Ime=()=>`Reset to defaults`,Lme=()=>`重置為預設值`,Rme=()=>`重置为默认值`,zme=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Nme(e):n===`ja-JP`?Pme(e):n===`ko-KR`?Fme(e):n===`ru-RU`?Ime(e):n===`zh-TW`?Lme(e):Rme(e)}),Bme=()=>`EPay settings reset to defaults`,Vme=()=>`EPay settings reset to defaults`,Hme=()=>`EPay settings reset to defaults`,Ume=()=>`EPay settings reset to defaults`,Wme=()=>`EPay 配置已重置為預設值`,Gme=()=>`EPay 配置已重置为默认值`,Kme=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Bme(e):n===`ja-JP`?Vme(e):n===`ko-KR`?Hme(e):n===`ru-RU`?Ume(e):n===`zh-TW`?Wme(e):Gme(e)}),qme=()=>`Fill example`,Jme=()=>`Fill example`,Yme=()=>`Fill example`,Xme=()=>`Fill example`,Zme=()=>`填充示例`,Qme=()=>`填充示例`,$me=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qme(e):n===`ja-JP`?Jme(e):n===`ko-KR`?Yme(e):n===`ru-RU`?Xme(e):n===`zh-TW`?Zme(e):Qme(e)}),ehe=()=>`Fullscreen`,the=()=>`Fullscreen`,nhe=()=>`Fullscreen`,rhe=()=>`Fullscreen`,ihe=()=>`全螢幕`,ahe=()=>`全屏`,ohe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ehe(e):n===`ja-JP`?the(e):n===`ko-KR`?nhe(e):n===`ru-RU`?rhe(e):n===`zh-TW`?ihe(e):ahe(e)}),she=()=>`Fullscreen edit`,che=()=>`Fullscreen edit`,lhe=()=>`Fullscreen edit`,uhe=()=>`Fullscreen edit`,dhe=()=>`全螢幕編輯`,fhe=()=>`全屏编辑`,phe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?she(e):n===`ja-JP`?che(e):n===`ko-KR`?lhe(e):n===`ru-RU`?uhe(e):n===`zh-TW`?dhe(e):fhe(e)}),mhe=()=>`Exit fullscreen`,hhe=()=>`Exit fullscreen`,ghe=()=>`Exit fullscreen`,_he=()=>`Exit fullscreen`,vhe=()=>`退出全螢幕`,yhe=()=>`退出全屏`,bhe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mhe(e):n===`ja-JP`?hhe(e):n===`ko-KR`?ghe(e):n===`ru-RU`?_he(e):n===`zh-TW`?vhe(e):yhe(e)}),xhe=()=>`Edit`,She=()=>`Edit`,Che=()=>`Edit`,whe=()=>`Edit`,The=()=>`編輯`,Ehe=()=>`编辑`,Dhe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xhe(e):n===`ja-JP`?She(e):n===`ko-KR`?Che(e):n===`ru-RU`?whe(e):n===`zh-TW`?The(e):Ehe(e)}),Ohe=()=>`Preview`,khe=()=>`Preview`,Ahe=()=>`Preview`,jhe=()=>`Preview`,Mhe=()=>`預覽`,Nhe=()=>`预览`,Phe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ohe(e):n===`ja-JP`?khe(e):n===`ko-KR`?Ahe(e):n===`ru-RU`?jhe(e):n===`zh-TW`?Mhe(e):Nhe(e)}),Fhe=()=>`Split`,Ihe=()=>`Split`,Lhe=()=>`Split`,Rhe=()=>`Split`,zhe=()=>`分屏`,Bhe=()=>`分屏`,Vhe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Fhe(e):n===`ja-JP`?Ihe(e):n===`ko-KR`?Lhe(e):n===`ru-RU`?Rhe(e):n===`zh-TW`?zhe(e):Bhe(e)}),Hhe=()=>`View help`,Uhe=()=>`View help`,Whe=()=>`View help`,Ghe=()=>`View help`,Khe=()=>`查看說明`,qhe=()=>`查看说明`,Jhe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hhe(e):n===`ja-JP`?Uhe(e):n===`ko-KR`?Whe(e):n===`ru-RU`?Ghe(e):n===`zh-TW`?Khe(e):qhe(e)}),Yhe=()=>`Help`,Xhe=()=>`Help`,Zhe=()=>`Help`,Qhe=()=>`Help`,$he=()=>`說明`,ege=()=>`说明`,tge=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yhe(e):n===`ja-JP`?Xhe(e):n===`ko-KR`?Zhe(e):n===`ru-RU`?Qhe(e):n===`zh-TW`?$he(e):ege(e)}),nge=()=>`HTML preview`,rge=()=>`HTML preview`,ige=()=>`HTML preview`,age=()=>`HTML preview`,oge=()=>`HTML 預覽`,sge=()=>`HTML 预览`,cge=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nge(e):n===`ja-JP`?rge(e):n===`ko-KR`?ige(e):n===`ru-RU`?age(e):n===`zh-TW`?oge(e):sge(e)}),lge=()=>`Appearance`,uge=()=>`Appearance`,dge=()=>`Appearance`,fge=()=>`Appearance`,pge=()=>`外觀`,mge=()=>`外观`,hge=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lge(e):n===`ja-JP`?uge(e):n===`ko-KR`?dge(e):n===`ru-RU`?fge(e):n===`zh-TW`?pge(e):mge(e)}),gge=()=>`Customize the app appearance and switch between light and dark themes.`,_ge=()=>`Customize the app appearance and switch between light and dark themes.`,vge=()=>`Customize the app appearance and switch between light and dark themes.`,yge=()=>`Customize the app appearance and switch between light and dark themes.`,bge=()=>`自定義應用外觀,可在淺色與深色主題之間切換。`,xge=()=>`自定义应用外观,可在浅色与深色主题之间切换。`,Sge=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gge(e):n===`ja-JP`?_ge(e):n===`ko-KR`?vge(e):n===`ru-RU`?yge(e):n===`zh-TW`?bge(e):xge(e)}),Cge=()=>`Font`,wge=()=>`Font`,Tge=()=>`Font`,Ege=()=>`Font`,Dge=()=>`字型`,Oge=()=>`字体`,kge=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Cge(e):n===`ja-JP`?wge(e):n===`ko-KR`?Tge(e):n===`ru-RU`?Ege(e):n===`zh-TW`?Dge(e):Oge(e)}),Age=()=>`Set the font you want to use in the dashboard.`,jge=()=>`Set the font you want to use in the dashboard.`,Mge=()=>`Set the font you want to use in the dashboard.`,Nge=()=>`Set the font you want to use in the dashboard.`,Pge=()=>`設定你希望在控制台中使用的字型。`,Fge=()=>`设置你希望在控制台中使用的字体。`,Ige=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Age(e):n===`ja-JP`?jge(e):n===`ko-KR`?Mge(e):n===`ru-RU`?Nge(e):n===`zh-TW`?Pge(e):Fge(e)}),Lge=()=>`Theme`,Rge=()=>`Theme`,zge=()=>`Theme`,Bge=()=>`Theme`,Vge=()=>`主題`,Hge=()=>`主题`,Uge=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Lge(e):n===`ja-JP`?Rge(e):n===`ko-KR`?zge(e):n===`ru-RU`?Bge(e):n===`zh-TW`?Vge(e):Hge(e)}),Wge=()=>`Select the theme for the dashboard.`,Gge=()=>`Select the theme for the dashboard.`,Kge=()=>`Select the theme for the dashboard.`,qge=()=>`Select the theme for the dashboard.`,Jge=()=>`選擇控制台的主題。`,Yge=()=>`选择控制台的主题。`,Xge=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Wge(e):n===`ja-JP`?Gge(e):n===`ko-KR`?Kge(e):n===`ru-RU`?qge(e):n===`zh-TW`?Jge(e):Yge(e)}),Zge=()=>`Update preferences`,Qge=()=>`Update preferences`,$ge=()=>`Update preferences`,e_e=()=>`Update preferences`,t_e=()=>`更新偏好設定`,n_e=()=>`更新偏好设置`,r_e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Zge(e):n===`ja-JP`?Qge(e):n===`ko-KR`?$ge(e):n===`ru-RU`?e_e(e):n===`zh-TW`?t_e(e):n_e(e)}),i_e=()=>`Display`,a_e=()=>`Display`,o_e=()=>`Display`,s_e=()=>`Display`,c_e=()=>`顯示`,l_e=()=>`显示`,u_e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?i_e(e):n===`ja-JP`?a_e(e):n===`ko-KR`?o_e(e):n===`ru-RU`?s_e(e):n===`zh-TW`?c_e(e):l_e(e)}),d_e=()=>`Turn items on or off to control what is displayed in the app.`,f_e=()=>`Turn items on or off to control what is displayed in the app.`,p_e=()=>`Turn items on or off to control what is displayed in the app.`,m_e=()=>`Turn items on or off to control what is displayed in the app.`,h_e=()=>`開關各項內容,控制應用中展示的資訊。`,g_e=()=>`开关各项内容,控制应用中展示的信息。`,__e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?d_e(e):n===`ja-JP`?f_e(e):n===`ko-KR`?p_e(e):n===`ru-RU`?m_e(e):n===`zh-TW`?h_e(e):g_e(e)}),v_e=()=>`Recents`,y_e=()=>`Recents`,b_e=()=>`Recents`,x_e=()=>`Recents`,S_e=()=>`最近專案`,C_e=()=>`最近专案`,w_e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?v_e(e):n===`ja-JP`?y_e(e):n===`ko-KR`?b_e(e):n===`ru-RU`?x_e(e):n===`zh-TW`?S_e(e):C_e(e)}),T_e=()=>`Home`,E_e=()=>`Home`,D_e=()=>`Home`,O_e=()=>`Home`,k_e=()=>`主頁`,A_e=()=>`主页`,j_e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?T_e(e):n===`ja-JP`?E_e(e):n===`ko-KR`?D_e(e):n===`ru-RU`?O_e(e):n===`zh-TW`?k_e(e):A_e(e)}),M_e=()=>`Applications`,N_e=()=>`Applications`,P_e=()=>`Applications`,F_e=()=>`Applications`,I_e=()=>`應用`,L_e=()=>`应用`,R_e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?M_e(e):n===`ja-JP`?N_e(e):n===`ko-KR`?P_e(e):n===`ru-RU`?F_e(e):n===`zh-TW`?I_e(e):L_e(e)}),z_e=()=>`Desktop`,B_e=()=>`Desktop`,V_e=()=>`Desktop`,H_e=()=>`Desktop`,U_e=()=>`桌面`,W_e=()=>`桌面`,G_e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?z_e(e):n===`ja-JP`?B_e(e):n===`ko-KR`?V_e(e):n===`ru-RU`?H_e(e):n===`zh-TW`?U_e(e):W_e(e)}),K_e=()=>`Downloads`,q_e=()=>`Downloads`,J_e=()=>`Downloads`,Y_e=()=>`Downloads`,X_e=()=>`下載`,Z_e=()=>`下载`,Q_e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?K_e(e):n===`ja-JP`?q_e(e):n===`ko-KR`?J_e(e):n===`ru-RU`?Y_e(e):n===`zh-TW`?X_e(e):Z_e(e)}),$_e=()=>`Documents`,eve=()=>`Documents`,tve=()=>`Documents`,nve=()=>`Documents`,rve=()=>`文件`,ive=()=>`文件`,ave=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$_e(e):n===`ja-JP`?eve(e):n===`ko-KR`?tve(e):n===`ru-RU`?nve(e):n===`zh-TW`?rve(e):ive(e)}),ove=()=>`You have to select at least one item.`,sve=()=>`You have to select at least one item.`,cve=()=>`You have to select at least one item.`,lve=()=>`You have to select at least one item.`,uve=()=>`至少選擇一個專案。`,dve=()=>`至少选择一个专案。`,fve=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ove(e):n===`ja-JP`?sve(e):n===`ko-KR`?cve(e):n===`ru-RU`?lve(e):n===`zh-TW`?uve(e):dve(e)}),pve=()=>`Sidebar`,mve=()=>`Sidebar`,hve=()=>`Sidebar`,gve=()=>`Sidebar`,_ve=()=>`側邊欄`,vve=()=>`侧边栏`,yve=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pve(e):n===`ja-JP`?mve(e):n===`ko-KR`?hve(e):n===`ru-RU`?gve(e):n===`zh-TW`?_ve(e):vve(e)}),bve=()=>`Select the items you want to display in the sidebar.`,xve=()=>`Select the items you want to display in the sidebar.`,Sve=()=>`Select the items you want to display in the sidebar.`,Cve=()=>`Select the items you want to display in the sidebar.`,wve=()=>`選擇你希望在側邊欄中顯示的專案。`,Tve=()=>`选择你希望在侧边栏中显示的项目。`,Eve=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bve(e):n===`ja-JP`?xve(e):n===`ko-KR`?Sve(e):n===`ru-RU`?Cve(e):n===`zh-TW`?wve(e):Tve(e)}),Dve=()=>`Update display`,Ove=()=>`Update display`,kve=()=>`Update display`,Ave=()=>`Update display`,jve=()=>`更新顯示設定`,Mve=()=>`更新显示设置`,Nve=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Dve(e):n===`ja-JP`?Ove(e):n===`ko-KR`?kve(e):n===`ru-RU`?Ave(e):n===`zh-TW`?jve(e):Mve(e)}),Pve=()=>`Notifications`,Fve=()=>`Notifications`,Ive=()=>`Notifications`,Lve=()=>`Notifications`,Rve=()=>`通知`,zve=()=>`通知`,Bve=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Pve(e):n===`ja-JP`?Fve(e):n===`ko-KR`?Ive(e):n===`ru-RU`?Lve(e):n===`zh-TW`?Rve(e):zve(e)}),Vve=()=>`Configure how you receive notifications.`,Hve=()=>`Configure how you receive notifications.`,Uve=()=>`Configure how you receive notifications.`,Wve=()=>`Configure how you receive notifications.`,Gve=()=>`配置你接收通知的方式。`,Kve=()=>`配置你接收通知的方式。`,qve=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Vve(e):n===`ja-JP`?Hve(e):n===`ko-KR`?Uve(e):n===`ru-RU`?Wve(e):n===`zh-TW`?Gve(e):Kve(e)}),Jve=()=>`Please select a notification type.`,Yve=()=>`Please select a notification type.`,Xve=()=>`Please select a notification type.`,Zve=()=>`Please select a notification type.`,Qve=()=>`請選擇通知型別。`,$ve=()=>`请选择通知类型。`,eye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Jve(e):n===`ja-JP`?Yve(e):n===`ko-KR`?Xve(e):n===`ru-RU`?Zve(e):n===`zh-TW`?Qve(e):$ve(e)}),tye=()=>`Notify me about...`,nye=()=>`Notify me about...`,rye=()=>`Notify me about...`,iye=()=>`Notify me about...`,aye=()=>`通知我關於……`,oye=()=>`通知我关于……`,sye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tye(e):n===`ja-JP`?nye(e):n===`ko-KR`?rye(e):n===`ru-RU`?iye(e):n===`zh-TW`?aye(e):oye(e)}),cye=()=>`All new messages`,lye=()=>`All new messages`,uye=()=>`All new messages`,dye=()=>`All new messages`,fye=()=>`所有新訊息`,pye=()=>`所有新讯息`,mye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cye(e):n===`ja-JP`?lye(e):n===`ko-KR`?uye(e):n===`ru-RU`?dye(e):n===`zh-TW`?fye(e):pye(e)}),hye=()=>`Direct messages and mentions`,gye=()=>`Direct messages and mentions`,_ye=()=>`Direct messages and mentions`,vye=()=>`Direct messages and mentions`,yye=()=>`私信和提及`,bye=()=>`私信和提及`,xye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hye(e):n===`ja-JP`?gye(e):n===`ko-KR`?_ye(e):n===`ru-RU`?vye(e):n===`zh-TW`?yye(e):bye(e)}),Sye=()=>`Nothing`,Cye=()=>`Nothing`,wye=()=>`Nothing`,Tye=()=>`Nothing`,Eye=()=>`不接收通知`,Dye=()=>`不接收通知`,Oye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Sye(e):n===`ja-JP`?Cye(e):n===`ko-KR`?wye(e):n===`ru-RU`?Tye(e):n===`zh-TW`?Eye(e):Dye(e)}),kye=()=>`Email Notifications`,Aye=()=>`Email Notifications`,jye=()=>`Email Notifications`,Mye=()=>`Email Notifications`,Nye=()=>`郵件通知`,Pye=()=>`邮件通知`,Fye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kye(e):n===`ja-JP`?Aye(e):n===`ko-KR`?jye(e):n===`ru-RU`?Mye(e):n===`zh-TW`?Nye(e):Pye(e)}),Iye=()=>`Communication emails`,Lye=()=>`Communication emails`,Rye=()=>`Communication emails`,zye=()=>`Communication emails`,Bye=()=>`通訊郵件`,Vye=()=>`通讯邮件`,Hye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Iye(e):n===`ja-JP`?Lye(e):n===`ko-KR`?Rye(e):n===`ru-RU`?zye(e):n===`zh-TW`?Bye(e):Vye(e)}),Uye=()=>`Receive emails about your account activity.`,Wye=()=>`Receive emails about your account activity.`,Gye=()=>`Receive emails about your account activity.`,Kye=()=>`Receive emails about your account activity.`,qye=()=>`接收與你賬戶活動相關的郵件。`,Jye=()=>`接收与你账户活动相关的邮件。`,Yye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Uye(e):n===`ja-JP`?Wye(e):n===`ko-KR`?Gye(e):n===`ru-RU`?Kye(e):n===`zh-TW`?qye(e):Jye(e)}),Xye=()=>`Marketing emails`,Zye=()=>`Marketing emails`,Qye=()=>`Marketing emails`,$ye=()=>`Marketing emails`,ebe=()=>`營銷郵件`,tbe=()=>`营销邮件`,nbe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Xye(e):n===`ja-JP`?Zye(e):n===`ko-KR`?Qye(e):n===`ru-RU`?$ye(e):n===`zh-TW`?ebe(e):tbe(e)}),rbe=()=>`Receive emails about new products, features, and more.`,ibe=()=>`Receive emails about new products, features, and more.`,abe=()=>`Receive emails about new products, features, and more.`,obe=()=>`Receive emails about new products, features, and more.`,sbe=()=>`接收有關新產品、新功能等內容的郵件。`,cbe=()=>`接收有关新产品、新功能等内容的邮件。`,lbe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rbe(e):n===`ja-JP`?ibe(e):n===`ko-KR`?abe(e):n===`ru-RU`?obe(e):n===`zh-TW`?sbe(e):cbe(e)}),ube=()=>`Social emails`,dbe=()=>`Social emails`,fbe=()=>`Social emails`,pbe=()=>`Social emails`,mbe=()=>`社交郵件`,hbe=()=>`社交邮件`,gbe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ube(e):n===`ja-JP`?dbe(e):n===`ko-KR`?fbe(e):n===`ru-RU`?pbe(e):n===`zh-TW`?mbe(e):hbe(e)}),_be=()=>`Receive emails for friend requests, follows, and more.`,vbe=()=>`Receive emails for friend requests, follows, and more.`,ybe=()=>`Receive emails for friend requests, follows, and more.`,bbe=()=>`Receive emails for friend requests, follows, and more.`,xbe=()=>`接收好友請求、關注等社交郵件。`,Sbe=()=>`接收好友请求、关注等社交邮件。`,Cbe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_be(e):n===`ja-JP`?vbe(e):n===`ko-KR`?ybe(e):n===`ru-RU`?bbe(e):n===`zh-TW`?xbe(e):Sbe(e)}),wbe=()=>`Security emails`,Tbe=()=>`Security emails`,Ebe=()=>`Security emails`,Dbe=()=>`Security emails`,Obe=()=>`安全郵件`,kbe=()=>`安全邮件`,Abe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wbe(e):n===`ja-JP`?Tbe(e):n===`ko-KR`?Ebe(e):n===`ru-RU`?Dbe(e):n===`zh-TW`?Obe(e):kbe(e)}),jbe=()=>`Receive emails about your account activity and security.`,Mbe=()=>`Receive emails about your account activity and security.`,Nbe=()=>`Receive emails about your account activity and security.`,Pbe=()=>`Receive emails about your account activity and security.`,Fbe=()=>`接收與你賬戶活動和安全相關的郵件。`,Ibe=()=>`接收与你账户活动和安全相关的邮件。`,Lbe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jbe(e):n===`ja-JP`?Mbe(e):n===`ko-KR`?Nbe(e):n===`ru-RU`?Pbe(e):n===`zh-TW`?Fbe(e):Ibe(e)}),Rbe=()=>`Use different settings for my mobile devices`,zbe=()=>`Use different settings for my mobile devices`,Bbe=()=>`Use different settings for my mobile devices`,Vbe=()=>`Use different settings for my mobile devices`,Hbe=()=>`我的移動裝置使用不同的通知設定`,Ube=()=>`我的移动装置使用不同的通知设置`,Wbe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Rbe(e):n===`ja-JP`?zbe(e):n===`ko-KR`?Bbe(e):n===`ru-RU`?Vbe(e):n===`zh-TW`?Hbe(e):Ube(e)}),Gbe=()=>`You can manage your mobile notifications in the`,Kbe=()=>`You can manage your mobile notifications in the`,qbe=()=>`You can manage your mobile notifications in the`,Jbe=()=>`You can manage your mobile notifications in the`,Ybe=()=>`你可以在`,Xbe=()=>`你可以在`,Zbe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Gbe(e):n===`ja-JP`?Kbe(e):n===`ko-KR`?qbe(e):n===`ru-RU`?Jbe(e):n===`zh-TW`?Ybe(e):Xbe(e)}),Qbe=()=>`mobile settings`,$be=()=>`mobile settings`,exe=()=>`mobile settings`,txe=()=>`mobile settings`,nxe=()=>`移動端設定`,rxe=()=>`移动端设置`,ixe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Qbe(e):n===`ja-JP`?$be(e):n===`ko-KR`?exe(e):n===`ru-RU`?txe(e):n===`zh-TW`?nxe(e):rxe(e)}),axe=()=>`page.`,oxe=()=>`page.`,sxe=()=>`page.`,cxe=()=>`page.`,lxe=()=>`頁面中管理移動通知。`,uxe=()=>`在在页面中管理移动通知。`,dxe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?axe(e):n===`ja-JP`?oxe(e):n===`ko-KR`?sxe(e):n===`ru-RU`?cxe(e):n===`zh-TW`?lxe(e):uxe(e)}),fxe=()=>`Update notifications`,pxe=()=>`Update notifications`,mxe=()=>`Update notifications`,hxe=()=>`Update notifications`,gxe=()=>`更新通知設定`,_xe=()=>`更新通知设置`,vxe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fxe(e):n===`ja-JP`?pxe(e):n===`ko-KR`?mxe(e):n===`ru-RU`?hxe(e):n===`zh-TW`?gxe(e):_xe(e)}),yxe=()=>`Select a settings page`,bxe=()=>`Select a settings page`,xxe=()=>`Select a settings page`,Sxe=()=>`Select a settings page`,Cxe=()=>`選擇配置項`,wxe=()=>`选择配置项`,Txe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yxe(e):n===`ja-JP`?bxe(e):n===`ko-KR`?xxe(e):n===`ru-RU`?Sxe(e):n===`zh-TW`?Cxe(e):wxe(e)}),Exe=()=>`Saved successfully`,Dxe=()=>`Saved successfully`,Oxe=()=>`Saved successfully`,kxe=()=>`Saved successfully`,Axe=()=>`儲存成功`,jxe=()=>`保存成功`,Mxe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Exe(e):n===`ja-JP`?Dxe(e):n===`ko-KR`?Oxe(e):n===`ru-RU`?kxe(e):n===`zh-TW`?Axe(e):jxe(e)}),Nxe=e=>`Failed to save ${e?.key}: ${e?.error}`,Pxe=e=>`Failed to save ${e?.key}: ${e?.error}`,Fxe=e=>`Failed to save ${e?.key}: ${e?.error}`,Ixe=e=>`Failed to save ${e?.key}: ${e?.error}`,Lxe=e=>`${e?.key} 儲存失敗:${e?.error}`,Rxe=e=>`${e?.key} 保存失败:${e?.error}`,zxe=((e,t={})=>{let n=t.locale??m();return n===`en-US`?Nxe(e):n===`ja-JP`?Pxe(e):n===`ko-KR`?Fxe(e):n===`ru-RU`?Ixe(e):n===`zh-TW`?Lxe(e):Rxe(e)}),Bxe=()=>`Access Forbidden`,Vxe=()=>`Access Forbidden`,Hxe=()=>`Access Forbidden`,Uxe=()=>`Access Forbidden`,Wxe=()=>`禁止訪問`,Gxe=()=>`禁止访问`,Kxe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Bxe(e):n===`ja-JP`?Vxe(e):n===`ko-KR`?Hxe(e):n===`ru-RU`?Uxe(e):n===`zh-TW`?Wxe(e):Gxe(e)}),qxe=()=>`You do not have permission to access this resource.`,Jxe=()=>`You do not have permission to access this resource.`,Yxe=()=>`You do not have permission to access this resource.`,Xxe=()=>`You do not have permission to access this resource.`,Zxe=()=>`你沒有訪問此資源所需的許可權。`,Qxe=()=>`你没有访问此资源所需的许可权。`,$xe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qxe(e):n===`ja-JP`?Jxe(e):n===`ko-KR`?Yxe(e):n===`ru-RU`?Xxe(e):n===`zh-TW`?Zxe(e):Qxe(e)}),eSe=()=>`Please contact your administrator for access.`,tSe=()=>`Please contact your administrator for access.`,nSe=()=>`Please contact your administrator for access.`,rSe=()=>`Please contact your administrator for access.`,iSe=()=>`請聯絡管理員以取得存取權限。`,aSe=()=>`请联络管理员以获取存取权限。`,oSe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?eSe(e):n===`ja-JP`?tSe(e):n===`ko-KR`?nSe(e):n===`ru-RU`?rSe(e):n===`zh-TW`?iSe(e):aSe(e)}),sSe=()=>`Website is under maintenance!`,cSe=()=>`Website is under maintenance!`,lSe=()=>`Website is under maintenance!`,uSe=()=>`Website is under maintenance!`,dSe=()=>`網站維護中!`,fSe=()=>`网站维护中!`,pSe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sSe(e):n===`ja-JP`?cSe(e):n===`ko-KR`?lSe(e):n===`ru-RU`?uSe(e):n===`zh-TW`?dSe(e):fSe(e)}),mSe=()=>`The site is not available at the moment.`,hSe=()=>`The site is not available at the moment.`,gSe=()=>`The site is not available at the moment.`,_Se=()=>`The site is not available at the moment.`,vSe=()=>`站點當前暫不可用。`,ySe=()=>`站点当前暂不可用。`,bSe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mSe(e):n===`ja-JP`?hSe(e):n===`ko-KR`?gSe(e):n===`ru-RU`?_Se(e):n===`zh-TW`?vSe(e):ySe(e)}),xSe=()=>`We will be back online shortly.`,SSe=()=>`We will be back online shortly.`,CSe=()=>`We will be back online shortly.`,wSe=()=>`We will be back online shortly.`,TSe=()=>`我們會盡快恢復服務。`,ESe=()=>`我们会尽快恢复服务。`,DSe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xSe(e):n===`ja-JP`?SSe(e):n===`ko-KR`?CSe(e):n===`ru-RU`?wSe(e):n===`zh-TW`?TSe(e):ESe(e)}),OSe=()=>`Unauthorized Access`,kSe=()=>`Unauthorized Access`,ASe=()=>`Unauthorized Access`,jSe=()=>`Unauthorized Access`,MSe=()=>`未授權訪問`,NSe=()=>`未授权访问`,PSe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?OSe(e):n===`ja-JP`?kSe(e):n===`ko-KR`?ASe(e):n===`ru-RU`?jSe(e):n===`zh-TW`?MSe(e):NSe(e)}),FSe=()=>`Please log in with the appropriate credentials.`,ISe=()=>`Please log in with the appropriate credentials.`,LSe=()=>`Please log in with the appropriate credentials.`,RSe=()=>`Please log in with the appropriate credentials.`,zSe=()=>`請使用正確的憑證登入。`,BSe=()=>`请使用正确的凭证登录。`,VSe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?FSe(e):n===`ja-JP`?ISe(e):n===`ko-KR`?LSe(e):n===`ru-RU`?RSe(e):n===`zh-TW`?zSe(e):BSe(e)}),HSe=()=>`Once signed in, you can access this resource.`,USe=()=>`Once signed in, you can access this resource.`,WSe=()=>`Once signed in, you can access this resource.`,GSe=()=>`Once signed in, you can access this resource.`,KSe=()=>`登入後即可訪問此資源。`,qSe=()=>`登录后即可访问此资源。`,JSe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?HSe(e):n===`ja-JP`?USe(e):n===`ko-KR`?WSe(e):n===`ru-RU`?GSe(e):n===`zh-TW`?KSe(e):qSe(e)}),YSe=()=>`User`,XSe=()=>`User`,ZSe=()=>`User`,QSe=()=>`User`,$Se=()=>`使用者`,eCe=()=>`用户`,tCe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?YSe(e):n===`ja-JP`?XSe(e):n===`ko-KR`?ZSe(e):n===`ru-RU`?QSe(e):n===`zh-TW`?$Se(e):eCe(e)}),nCe=()=>`Font`,rCe=()=>`Font`,iCe=()=>`Font`,aCe=()=>`Font`,oCe=()=>`字型`,sCe=()=>`字体`,cCe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nCe(e):n===`ja-JP`?rCe(e):n===`ko-KR`?iCe(e):n===`ru-RU`?aCe(e):n===`zh-TW`?oCe(e):sCe(e)}),lCe=()=>`Secure Payments, Fully in Control`,uCe=()=>`Secure Payments, Fully in Control`,dCe=()=>`Secure Payments, Fully in Control`,fCe=()=>`Secure Payments, Fully in Control`,pCe=()=>`安全收付,盡在掌握`,mCe=()=>`安全收付,尽在掌握`,hCe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lCe(e):n===`ja-JP`?uCe(e):n===`ko-KR`?dCe(e):n===`ru-RU`?fCe(e):n===`zh-TW`?pCe(e):mCe(e)}),gCe=()=>`Multi-chain USDT collection, real-time callbacks, and smart settlement — reliable payment infrastructure for your business.`,_Ce=()=>`Multi-chain USDT collection, real-time callbacks, and smart settlement — reliable payment infrastructure for your business.`,vCe=()=>`Multi-chain USDT collection, real-time callbacks, and smart settlement — reliable payment infrastructure for your business.`,yCe=()=>`Multi-chain USDT collection, real-time callbacks, and smart settlement — reliable payment infrastructure for your business.`,bCe=()=>`多鏈 USDT 自動收款、即時回呼、智能結算,為您的業務提供穩定可靠的支付基礎設施。`,xCe=()=>`多链 USDT 自动收款、实时回调、智能结算,为您的业务提供稳定可靠的支付基础设施。`,SCe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gCe(e):n===`ja-JP`?_Ce(e):n===`ko-KR`?vCe(e):n===`ru-RU`?yCe(e):n===`zh-TW`?bCe(e):xCe(e)}),CCe=()=>`Pending`,wCe=()=>`Pending`,TCe=()=>`Pending`,ECe=()=>`Pending`,DCe=()=>`待付款`,OCe=()=>`待付款`,kCe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?CCe(e):n===`ja-JP`?wCe(e):n===`ko-KR`?TCe(e):n===`ru-RU`?ECe(e):n===`zh-TW`?DCe(e):OCe(e)}),ACe=()=>`Paid`,jCe=()=>`Paid`,MCe=()=>`Paid`,NCe=()=>`Paid`,PCe=()=>`已付款`,FCe=()=>`已付款`,ICe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ACe(e):n===`ja-JP`?jCe(e):n===`ko-KR`?MCe(e):n===`ru-RU`?NCe(e):n===`zh-TW`?PCe(e):FCe(e)}),LCe=()=>`Expired`,RCe=()=>`Expired`,zCe=()=>`Expired`,BCe=()=>`Expired`,VCe=()=>`已過期`,HCe=()=>`已过期`,UCe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?LCe(e):n===`ja-JP`?RCe(e):n===`ko-KR`?zCe(e):n===`ru-RU`?BCe(e):n===`zh-TW`?VCe(e):HCe(e)}),WCe=()=>`Selecting asset`,GCe=()=>`Selecting asset`,KCe=()=>`Selecting asset`,qCe=()=>`Selecting asset`,JCe=()=>`待選擇資產`,YCe=()=>`待选择资产`,XCe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?WCe(e):n===`ja-JP`?GCe(e):n===`ko-KR`?KCe(e):n===`ru-RU`?qCe(e):n===`zh-TW`?JCe(e):YCe(e)}),ZCe=()=>`Active`,QCe=()=>`Active`,$Ce=()=>`Active`,ewe=()=>`Active`,twe=()=>`啟用中`,nwe=()=>`启用中`,rwe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ZCe(e):n===`ja-JP`?QCe(e):n===`ko-KR`?$Ce(e):n===`ru-RU`?ewe(e):n===`zh-TW`?twe(e):nwe(e)}),iwe=()=>`Disabled`,awe=()=>`Disabled`,owe=()=>`Disabled`,swe=()=>`Disabled`,cwe=()=>`已停用`,lwe=()=>`已禁用`,uwe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?iwe(e):n===`ja-JP`?awe(e):n===`ko-KR`?owe(e):n===`ru-RU`?swe(e):n===`zh-TW`?cwe(e):lwe(e)}),dwe=()=>`Monitoring`,fwe=()=>`Monitoring`,pwe=()=>`Monitoring`,mwe=()=>`Monitoring`,hwe=()=>`監控中`,gwe=()=>`监控中`,_we=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dwe(e):n===`ja-JP`?fwe(e):n===`ko-KR`?pwe(e):n===`ru-RU`?mwe(e):n===`zh-TW`?hwe(e):gwe(e)}),vwe=()=>`Active`,ywe=()=>`Active`,bwe=()=>`Active`,xwe=()=>`Active`,Swe=()=>`啟用中`,Cwe=()=>`启用中`,wwe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vwe(e):n===`ja-JP`?ywe(e):n===`ko-KR`?bwe(e):n===`ru-RU`?xwe(e):n===`zh-TW`?Swe(e):Cwe(e)}),Twe=()=>`Disabled`,Ewe=()=>`Disabled`,Dwe=()=>`Disabled`,Owe=()=>`Disabled`,kwe=()=>`已停用`,Awe=()=>`已禁用`,jwe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Twe(e):n===`ja-JP`?Ewe(e):n===`ko-KR`?Dwe(e):n===`ru-RU`?Owe(e):n===`zh-TW`?kwe(e):Awe(e)}),Mwe=()=>`No data`,Nwe=()=>`No data`,Pwe=()=>`No data`,Fwe=()=>`No data`,Iwe=()=>`暫無資料`,Lwe=()=>`暂无数据`,Rwe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Mwe(e):n===`ja-JP`?Nwe(e):n===`ko-KR`?Pwe(e):n===`ru-RU`?Fwe(e):n===`zh-TW`?Iwe(e):Lwe(e)}),zwe=()=>`Signing out…`,Bwe=()=>`Signing out…`,Vwe=()=>`Signing out…`,Hwe=()=>`Signing out…`,Uwe=()=>`登出中…`,Wwe=()=>`登出中…`,Gwe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zwe(e):n===`ja-JP`?Bwe(e):n===`ko-KR`?Vwe(e):n===`ru-RU`?Hwe(e):n===`zh-TW`?Uwe(e):Wwe(e)}),Kwe=()=>`Secure, high-performance USDT payment middleware`,qwe=()=>`Secure, high-performance USDT payment middleware`,Jwe=()=>`Secure, high-performance USDT payment middleware`,Ywe=()=>`Secure, high-performance USDT payment middleware`,Xwe=()=>`安全、高效的 USDT 支付中介軟體`,Zwe=()=>`安全、高效的 USDT 支付中介软件`,Qwe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Kwe(e):n===`ja-JP`?qwe(e):n===`ko-KR`?Jwe(e):n===`ru-RU`?Ywe(e):n===`zh-TW`?Xwe(e):Zwe(e)}),$we=()=>`Amount to pay`,eTe=()=>`支払金額`,tTe=()=>`결제 금액`,nTe=()=>`Сумма к оплате`,rTe=()=>`應付金額`,iTe=()=>`应付金额`,aTe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$we(e):n===`ja-JP`?eTe(e):n===`ko-KR`?tTe(e):n===`ru-RU`?nTe(e):n===`zh-TW`?rTe(e):iTe(e)}),oTe=()=>`Back`,sTe=()=>`戻る`,cTe=()=>`뒤로`,lTe=()=>`Назад`,uTe=()=>`返回`,dTe=()=>`返回`,fTe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?oTe(e):n===`ja-JP`?sTe(e):n===`ko-KR`?cTe(e):n===`ru-RU`?lTe(e):n===`zh-TW`?uTe(e):dTe(e)}),pTe=()=>`Waiting for confirmation`,mTe=()=>`入金確認を待機中`,hTe=()=>`입금 확인 대기 중`,gTe=()=>`Ожидание подтверждения`,_Te=()=>`等待到賬確認`,vTe=()=>`等待到账确认`,yTe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pTe(e):n===`ja-JP`?mTe(e):n===`ko-KR`?hTe(e):n===`ru-RU`?gTe(e):n===`zh-TW`?_Te(e):vTe(e)}),bTe=()=>`Confirm payment`,xTe=()=>`支払いを確認`,STe=()=>`결제 확인`,CTe=()=>`Подтвердить оплату`,wTe=()=>`確認支付`,TTe=()=>`确认支付`,ETe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bTe(e):n===`ja-JP`?xTe(e):n===`ko-KR`?STe(e):n===`ru-RU`?CTe(e):n===`zh-TW`?wTe(e):TTe(e)}),DTe=()=>`Copied`,OTe=()=>`コピーしました`,kTe=()=>`복사됨`,ATe=()=>`Скопировано`,jTe=()=>`已複製`,MTe=()=>`已复制`,NTe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?DTe(e):n===`ja-JP`?OTe(e):n===`ko-KR`?kTe(e):n===`ru-RU`?ATe(e):n===`zh-TW`?jTe(e):MTe(e)}),PTe=()=>`Currency`,FTe=()=>`通貨`,ITe=()=>`통화`,LTe=()=>`Валюта`,RTe=()=>`幣種`,zTe=()=>`币种`,BTe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?PTe(e):n===`ja-JP`?FTe(e):n===`ko-KR`?ITe(e):n===`ru-RU`?LTe(e):n===`zh-TW`?RTe(e):zTe(e)}),VTe=()=>`Customer Service`,HTe=()=>`カスタマーサポート`,UTe=()=>`고객센터`,WTe=()=>`Поддержка`,GTe=()=>`客服`,KTe=()=>`客服`,qTe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?VTe(e):n===`ja-JP`?HTe(e):n===`ko-KR`?UTe(e):n===`ru-RU`?WTe(e):n===`zh-TW`?GTe(e):KTe(e)}),JTe=()=>`Payment Expired`,YTe=()=>`支払い期限切れ`,XTe=()=>`결제 만료`,ZTe=()=>`Платеж истек`,QTe=()=>`支付已過期`,$Te=()=>`支付已过期`,eEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?JTe(e):n===`ja-JP`?YTe(e):n===`ko-KR`?XTe(e):n===`ru-RU`?ZTe(e):n===`zh-TW`?QTe(e):$Te(e)}),tEe=()=>`Please initiate a new payment`,nEe=()=>`新しい支払いを開始してください`,rEe=()=>`새 결제를 시작하세요`,iEe=()=>`Создайте новый платеж`,aEe=()=>`請重新發起支付`,oEe=()=>`请重新发起支付`,sEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tEe(e):n===`ja-JP`?nEe(e):n===`ko-KR`?rEe(e):n===`ru-RU`?iEe(e):n===`zh-TW`?aEe(e):oEe(e)}),cEe=()=>`Loading payment`,lEe=()=>`支払い情報を読み込み中`,uEe=()=>`결제 정보 불러오는 중`,dEe=()=>`Загрузка платежа`,fEe=()=>`正在載入支付資訊`,pEe=()=>`正在加载支付信息`,mEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cEe(e):n===`ja-JP`?lEe(e):n===`ko-KR`?uEe(e):n===`ru-RU`?dEe(e):n===`zh-TW`?fEe(e):pEe(e)}),hEe=()=>`Network`,gEe=()=>`ネットワーク`,_Ee=()=>`네트워크`,vEe=()=>`Сеть`,yEe=()=>`網絡`,bEe=()=>`网络`,xEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hEe(e):n===`ja-JP`?gEe(e):n===`ko-KR`?_Ee(e):n===`ru-RU`?vEe(e):n===`zh-TW`?yEe(e):bEe(e)}),SEe=()=>`Order Not Found`,CEe=()=>`注文が見つかりません`,wEe=()=>`주문 없음`,TEe=()=>`Заказ не найден`,EEe=()=>`訂單不存在`,DEe=()=>`订单不存在`,OEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?SEe(e):n===`ja-JP`?CEe(e):n===`ko-KR`?wEe(e):n===`ru-RU`?TEe(e):n===`zh-TW`?EEe(e):DEe(e)}),kEe=()=>`The order does not exist or has already expired`,AEe=()=>`注文が存在しないか期限切れです`,jEe=()=>`주문이 없거나 이미 만료되었습니다`,MEe=()=>`Заказ не существует или уже истек`,NEe=()=>`訂單不存在或已過期`,PEe=()=>`订单不存在或已经过期`,FEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kEe(e):n===`ja-JP`?AEe(e):n===`ko-KR`?jEe(e):n===`ru-RU`?MEe(e):n===`zh-TW`?NEe(e):PEe(e)}),IEe=()=>`Order amount`,LEe=()=>`注文金額`,REe=()=>`주문 금액`,zEe=()=>`Сумма заказа`,BEe=()=>`訂單金額`,VEe=()=>`订单金额`,HEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?IEe(e):n===`ja-JP`?LEe(e):n===`ko-KR`?REe(e):n===`ru-RU`?zEe(e):n===`zh-TW`?BEe(e):VEe(e)}),UEe=()=>`Order ID`,WEe=()=>`注文ID`,GEe=()=>`주문 ID`,KEe=()=>`ID заказа`,qEe=()=>`訂單號`,JEe=()=>`订单号`,YEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?UEe(e):n===`ja-JP`?WEe(e):n===`ko-KR`?GEe(e):n===`ru-RU`?KEe(e):n===`zh-TW`?qEe(e):JEe(e)}),XEe=()=>`Payment address`,ZEe=()=>`支払いアドレス`,QEe=()=>`결제 주소`,$Ee=()=>`Адрес оплаты`,eDe=()=>`收款地址`,tDe=()=>`收款地址`,nDe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?XEe(e):n===`ja-JP`?ZEe(e):n===`ko-KR`?QEe(e):n===`ru-RU`?$Ee(e):n===`zh-TW`?eDe(e):tDe(e)}),rDe=()=>`Powered by`,iDe=()=>`Powered by`,aDe=()=>`Powered by`,oDe=()=>`Powered by`,sDe=()=>`Powered by`,cDe=()=>`Powered by`,lDe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rDe(e):n===`ja-JP`?iDe(e):n===`ko-KR`?aDe(e):n===`ru-RU`?oDe(e):n===`zh-TW`?sDe(e):cDe(e)}),uDe=()=>`Redirecting...`,dDe=()=>`リダイレクト中...`,fDe=()=>`이동 중...`,pDe=()=>`Перенаправление...`,mDe=()=>`正在跳轉...`,hDe=()=>`正在跳转...`,gDe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?uDe(e):n===`ja-JP`?dDe(e):n===`ko-KR`?fDe(e):n===`ru-RU`?pDe(e):n===`zh-TW`?mDe(e):hDe(e)}),_De=()=>`Retry`,vDe=()=>`再試行`,yDe=()=>`재시도`,bDe=()=>`Повторить`,xDe=()=>`重試`,SDe=()=>`重试`,CDe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_De(e):n===`ja-JP`?vDe(e):n===`ko-KR`?yDe(e):n===`ru-RU`?bDe(e):n===`zh-TW`?xDe(e):SDe(e)}),wDe=()=>`Scan or copy address to pay`,TDe=()=>`スキャンまたはアドレスをコピー`,EDe=()=>`스캔하거나 주소를 복사해 결제`,DDe=()=>`Сканируйте или скопируйте адрес`,ODe=()=>`掃碼或複製地址付款`,kDe=()=>`扫码或复制地址付款`,ADe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wDe(e):n===`ja-JP`?TDe(e):n===`ko-KR`?EDe(e):n===`ru-RU`?DDe(e):n===`zh-TW`?ODe(e):kDe(e)}),jDe=()=>`Select payment asset`,MDe=()=>`支払い通貨を選択`,NDe=()=>`결제 자산 선택`,PDe=()=>`Выберите платежный актив`,FDe=()=>`選擇支付幣種`,IDe=()=>`选择支付币种`,LDe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jDe(e):n===`ja-JP`?MDe(e):n===`ko-KR`?NDe(e):n===`ru-RU`?PDe(e):n===`zh-TW`?FDe(e):IDe(e)}),RDe=()=>`Select payment network and asset`,zDe=()=>`支払いネットワークと通貨を選択`,BDe=()=>`결제 네트워크와 자산 선택`,VDe=()=>`Выберите сеть и актив`,HDe=()=>`選擇支付網路和幣種`,UDe=()=>`选择支付网络和币种`,WDe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?RDe(e):n===`ja-JP`?zDe(e):n===`ko-KR`?BDe(e):n===`ru-RU`?VDe(e):n===`zh-TW`?HDe(e):UDe(e)}),GDe=()=>`Choose how to pay`,KDe=()=>`支払い方法を選択`,qDe=()=>`결제 방법 선택`,JDe=()=>`Выберите способ оплаты`,YDe=()=>`選擇付款方式`,XDe=()=>`选择付款方式`,ZDe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?GDe(e):n===`ja-JP`?KDe(e):n===`ko-KR`?qDe(e):n===`ru-RU`?JDe(e):n===`zh-TW`?YDe(e):XDe(e)}),QDe=()=>`Change network or asset`,$De=()=>`Change network or asset`,eOe=()=>`Change network or asset`,tOe=()=>`Change network or asset`,nOe=()=>`切換網路或幣種`,rOe=()=>`切换网络或币种`,iOe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?QDe(e):n===`ja-JP`?$De(e):n===`ko-KR`?eOe(e):n===`ru-RU`?tOe(e):n===`zh-TW`?nOe(e):rOe(e)}),aOe=()=>`On-chain payment`,oOe=()=>`オンチェーン支払い`,sOe=()=>`온체인 결제`,cOe=()=>`Оплата ончейн`,lOe=()=>`鏈上支付`,uOe=()=>`链上支付`,dOe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?aOe(e):n===`ja-JP`?oOe(e):n===`ko-KR`?sOe(e):n===`ru-RU`?cOe(e):n===`zh-TW`?lOe(e):uOe(e)}),fOe=()=>`Send funds from your wallet to the payment address`,pOe=()=>`ウォレットから指定アドレスへ送金`,mOe=()=>`지갑에서 지정 주소로 전송`,hOe=()=>`Отправьте средства с кошелька на адрес оплаты`,gOe=()=>`使用錢包轉帳到指定地址`,_Oe=()=>`使用钱包转账到指定地址`,vOe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fOe(e):n===`ja-JP`?pOe(e):n===`ko-KR`?mOe(e):n===`ru-RU`?hOe(e):n===`zh-TW`?gOe(e):_Oe(e)}),yOe=()=>`Payment Successful`,bOe=()=>`支払い成功`,xOe=()=>`결제 성공`,SOe=()=>`Платеж успешен`,COe=()=>`支付成功`,wOe=()=>`支付成功`,TOe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yOe(e):n===`ja-JP`?bOe(e):n===`ko-KR`?xOe(e):n===`ru-RU`?SOe(e):n===`zh-TW`?COe(e):wOe(e)}),EOe=()=>`Payment has been confirmed`,DOe=()=>`支払いが確認されました`,OOe=()=>`결제가 확인되었습니다`,kOe=()=>`Платеж подтвержден`,AOe=()=>`支付已確認`,jOe=()=>`支付已确认`,MOe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?EOe(e):n===`ja-JP`?DOe(e):n===`ko-KR`?OOe(e):n===`ru-RU`?kOe(e):n===`zh-TW`?AOe(e):jOe(e)}),NOe=()=>`Connection Timeout`,POe=()=>`接続タイムアウト`,FOe=()=>`연결 시간 초과`,IOe=()=>`Таймаут соединения`,LOe=()=>`連接超時`,ROe=()=>`连接超时`,zOe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?NOe(e):n===`ja-JP`?POe(e):n===`ko-KR`?FOe(e):n===`ru-RU`?IOe(e):n===`zh-TW`?LOe(e):ROe(e)}),BOe=()=>`Unable to connect to the payment server`,VOe=()=>`支払いサーバーに接続できません`,HOe=()=>`결제 서버에 연결할 수 없습니다`,UOe=()=>`Не удалось подключиться к серверу оплаты`,WOe=()=>`無法連接到支付伺服器`,GOe=()=>`无法连接到支付服务器`,KOe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?BOe(e):n===`ja-JP`?VOe(e):n===`ko-KR`?HOe(e):n===`ru-RU`?UOe(e):n===`zh-TW`?WOe(e):GOe(e)}),qOe=()=>`Paid but not confirmed?`,JOe=()=>`送金済みだが未確認ですか?`,YOe=()=>`송금했지만 확인되지 않았나요?`,XOe=()=>`Оплатили, но нет подтверждения?`,ZOe=()=>`已轉帳但未到帳?`,QOe=()=>`已转账但未到账?`,$Oe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qOe(e):n===`ja-JP`?JOe(e):n===`ko-KR`?YOe(e):n===`ru-RU`?XOe(e):n===`zh-TW`?ZOe(e):QOe(e)}),eke=()=>`Confirm transfer`,tke=()=>`送金を確認`,nke=()=>`송금 확인`,rke=()=>`Подтвердить перевод`,ike=()=>`確認轉帳`,ake=()=>`确认转账`,oke=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?eke(e):n===`ja-JP`?tke(e):n===`ko-KR`?nke(e):n===`ru-RU`?rke(e):n===`zh-TW`?ike(e):ake(e)}),ske=()=>`Enter the transaction hash for this transfer. We will verify it and update the order status.`,cke=()=>`この送金の取引ハッシュを入力してください。確認後、注文ステータスを更新します。`,lke=()=>`이 송금의 거래 해시를 입력하세요. 확인 후 주문 상태를 업데이트합니다.`,uke=()=>`Введите хэш этой транзакции. Мы проверим его и обновим статус заказа.`,dke=()=>`請填寫這筆轉帳的交易哈希,我們會立即校驗並更新訂單狀態。`,fke=()=>`请填写这笔转账的交易哈希,我们会立即校验并更新订单状态。`,pke=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ske(e):n===`ja-JP`?cke(e):n===`ko-KR`?lke(e):n===`ru-RU`?uke(e):n===`zh-TW`?dke(e):fke(e)}),mke=()=>`Transaction hash`,hke=()=>`取引ハッシュ`,gke=()=>`거래 해시`,_ke=()=>`Хэш транзакции`,vke=()=>`交易哈希`,yke=()=>`交易哈希`,bke=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mke(e):n===`ja-JP`?hke(e):n===`ko-KR`?gke(e):n===`ru-RU`?_ke(e):n===`zh-TW`?vke(e):yke(e)}),xke=()=>`Enter transaction hash / TxID`,Ske=()=>`取引ハッシュ / TxID を入力`,Cke=()=>`거래 해시 / TxID 입력`,wke=()=>`Введите хэш транзакции / TxID`,Tke=()=>`請輸入交易哈希 / TxID`,Eke=()=>`请输入交易哈希 / TxID`,Dke=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xke(e):n===`ja-JP`?Ske(e):n===`ko-KR`?Cke(e):n===`ru-RU`?wke(e):n===`zh-TW`?Tke(e):Eke(e)}),Oke=()=>`Make sure the amount, network, and receiving address match this order. Submit once only.`,kke=()=>`金額、ネットワーク、受取アドレスがこの注文と一致していることを確認してください。送信は一度だけで十分です。`,Ake=()=>`금액, 네트워크, 수취 주소가 이 주문과 일치하는지 확인하세요. 한 번만 제출하면 됩니다.`,jke=()=>`Убедитесь, что сумма, сеть и адрес получателя совпадают с этим заказом. Отправьте только один раз.`,Mke=()=>`請確認金額、網路和收款地址與目前訂單一致。提交一次即可,請勿重複提交。`,Nke=()=>`请确认金额、网络和收款地址与当前订单一致。提交一次即可,请勿重复提交。`,Pke=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Oke(e):n===`ja-JP`?kke(e):n===`ko-KR`?Ake(e):n===`ru-RU`?jke(e):n===`zh-TW`?Mke(e):Nke(e)}),Fke=()=>`Confirm submission`,Ike=()=>`送信を確認`,Lke=()=>`제출 확인`,Rke=()=>`Подтвердить отправку`,zke=()=>`確認提交`,Bke=()=>`确认提交`,Vke=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Fke(e):n===`ja-JP`?Ike(e):n===`ko-KR`?Lke(e):n===`ru-RU`?Rke(e):n===`zh-TW`?zke(e):Bke(e)}),Hke=()=>`Enter the transaction hash`,Uke=()=>`取引ハッシュを入力してください`,Wke=()=>`거래 해시를 입력하세요`,Gke=()=>`Введите хэш транзакции`,Kke=()=>`請輸入交易哈希`,qke=()=>`请输入交易哈希`,Jke=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hke(e):n===`ja-JP`?Uke(e):n===`ko-KR`?Wke(e):n===`ru-RU`?Gke(e):n===`zh-TW`?Kke(e):qke(e)}),Yke=()=>`Transaction hash submitted. Waiting for confirmation.`,Xke=()=>`取引ハッシュを送信しました。確認中です。`,Zke=()=>`거래 해시가 제출되었습니다. 확인을 기다리는 중입니다.`,Qke=()=>`Хэш транзакции отправлен. Ожидаем подтверждения.`,$ke=()=>`已提交交易哈希,正在確認到帳`,eAe=()=>`已提交交易哈希,正在确认到账`,tAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yke(e):n===`ja-JP`?Xke(e):n===`ko-KR`?Zke(e):n===`ru-RU`?Qke(e):n===`zh-TW`?$ke(e):eAe(e)}),nAe=()=>`OkPay Config`,rAe=()=>`OkPay Config`,iAe=()=>`OkPay Config`,aAe=()=>`OkPay Config`,oAe=()=>`OkPay 配置`,sAe=()=>`OkPay 配置`,cAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nAe(e):n===`ja-JP`?rAe(e):n===`ko-KR`?iAe(e):n===`ru-RU`?aAe(e):n===`zh-TW`?oAe(e):sAe(e)}),lAe=()=>`Configure OkPay hosted checkout parameters.`,uAe=()=>`Configure OkPay hosted checkout parameters.`,dAe=()=>`Configure OkPay hosted checkout parameters.`,fAe=()=>`Configure OkPay hosted checkout parameters.`,pAe=()=>`配置 OkPay 託管收銀台參數。`,mAe=()=>`配置 OkPay 托管收银台参数。`,hAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lAe(e):n===`ja-JP`?uAe(e):n===`ko-KR`?dAe(e):n===`ru-RU`?fAe(e):n===`zh-TW`?pAe(e):mAe(e)}),gAe=()=>`Enable OkPay`,_Ae=()=>`Enable OkPay`,vAe=()=>`Enable OkPay`,yAe=()=>`Enable OkPay`,bAe=()=>`啟用 OkPay`,xAe=()=>`启用 OkPay`,SAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gAe(e):n===`ja-JP`?_Ae(e):n===`ko-KR`?vAe(e):n===`ru-RU`?yAe(e):n===`zh-TW`?bAe(e):xAe(e)}),CAe=()=>`Allow checkout orders to be redirected to OkPay.`,wAe=()=>`Allow checkout orders to be redirected to OkPay.`,TAe=()=>`Allow checkout orders to be redirected to OkPay.`,EAe=()=>`Allow checkout orders to be redirected to OkPay.`,DAe=()=>`允許收銀台訂單跳轉到 OkPay 支付頁。`,OAe=()=>`允许收银台订单跳转到 OkPay 支付页。`,kAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?CAe(e):n===`ja-JP`?wAe(e):n===`ko-KR`?TAe(e):n===`ru-RU`?EAe(e):n===`zh-TW`?DAe(e):OAe(e)}),AAe=()=>`Shop ID`,jAe=()=>`Shop ID`,MAe=()=>`Shop ID`,NAe=()=>`Shop ID`,PAe=()=>`商戶 ID`,FAe=()=>`商户 ID`,IAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?AAe(e):n===`ja-JP`?jAe(e):n===`ko-KR`?MAe(e):n===`ru-RU`?NAe(e):n===`zh-TW`?PAe(e):FAe(e)}),LAe=()=>`Please enter the OkPay shop ID`,RAe=()=>`Please enter the OkPay shop ID`,zAe=()=>`Please enter the OkPay shop ID`,BAe=()=>`Please enter the OkPay shop ID`,VAe=()=>`請輸入 OkPay 商戶 ID`,HAe=()=>`请输入 OkPay 商户 ID`,UAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?LAe(e):n===`ja-JP`?RAe(e):n===`ko-KR`?zAe(e):n===`ru-RU`?BAe(e):n===`zh-TW`?VAe(e):HAe(e)}),WAe=()=>`Shop Token`,GAe=()=>`Shop Token`,KAe=()=>`Shop Token`,qAe=()=>`Shop Token`,JAe=()=>`商戶 Token`,YAe=()=>`商户 Token`,XAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?WAe(e):n===`ja-JP`?GAe(e):n===`ko-KR`?KAe(e):n===`ru-RU`?qAe(e):n===`zh-TW`?JAe(e):YAe(e)}),ZAe=()=>`Please enter the OkPay shop token`,QAe=()=>`Please enter the OkPay shop token`,$Ae=()=>`Please enter the OkPay shop token`,eje=()=>`Please enter the OkPay shop token`,tje=()=>`請輸入 OkPay 商戶 Token`,nje=()=>`请输入 OkPay 商户 Token`,rje=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ZAe(e):n===`ja-JP`?QAe(e):n===`ko-KR`?$Ae(e):n===`ru-RU`?eje(e):n===`zh-TW`?tje(e):nje(e)}),ije=()=>`API URL`,aje=()=>`API URL`,oje=()=>`API URL`,sje=()=>`API URL`,cje=()=>`API 位址`,lje=()=>`API 地址`,uje=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ije(e):n===`ja-JP`?aje(e):n===`ko-KR`?oje(e):n===`ru-RU`?sje(e):n===`zh-TW`?cje(e):lje(e)}),dje=()=>`Callback URL`,fje=()=>`Callback URL`,pje=()=>`Callback URL`,mje=()=>`Callback URL`,hje=()=>`回調位址`,gje=()=>`回调地址`,_je=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dje(e):n===`ja-JP`?fje(e):n===`ko-KR`?pje(e):n===`ru-RU`?mje(e):n===`zh-TW`?hje(e):gje(e)}),vje=()=>`Please enter a valid callback URL`,yje=()=>`Please enter a valid callback URL`,bje=()=>`Please enter a valid callback URL`,xje=()=>`Please enter a valid callback URL`,Sje=()=>`請輸入有效的回調位址`,Cje=()=>`请输入有效的回调地址`,wje=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vje(e):n===`ja-JP`?yje(e):n===`ko-KR`?bje(e):n===`ru-RU`?xje(e):n===`zh-TW`?Sje(e):Cje(e)}),Tje=()=>`Return URL`,Eje=()=>`Return URL`,Dje=()=>`Return URL`,Oje=()=>`Return URL`,kje=()=>`返回位址`,Aje=()=>`返回地址`,jje=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Tje(e):n===`ja-JP`?Eje(e):n===`ko-KR`?Dje(e):n===`ru-RU`?Oje(e):n===`zh-TW`?kje(e):Aje(e)}),Mje=()=>`Timeout (seconds)`,Nje=()=>`Timeout (seconds)`,Pje=()=>`Timeout (seconds)`,Fje=()=>`Timeout (seconds)`,Ije=()=>`逾時時間(秒)`,Lje=()=>`超时时间(秒)`,Rje=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Mje(e):n===`ja-JP`?Nje(e):n===`ko-KR`?Pje(e):n===`ru-RU`?Fje(e):n===`zh-TW`?Ije(e):Lje(e)}),zje=()=>`Please enter the timeout`,Bje=()=>`Please enter the timeout`,Vje=()=>`Please enter the timeout`,Hje=()=>`Please enter the timeout`,Uje=()=>`請輸入逾時時間`,Wje=()=>`请输入超时时间`,Gje=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zje(e):n===`ja-JP`?Bje(e):n===`ko-KR`?Vje(e):n===`ru-RU`?Hje(e):n===`zh-TW`?Uje(e):Wje(e)}),Kje=()=>`Timeout must be a positive integer`,qje=()=>`Timeout must be a positive integer`,Jje=()=>`Timeout must be a positive integer`,Yje=()=>`Timeout must be a positive integer`,Xje=()=>`逾時時間必須是正整數`,Zje=()=>`超时时间必须是正整数`,Qje=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Kje(e):n===`ja-JP`?qje(e):n===`ko-KR`?Jje(e):n===`ru-RU`?Yje(e):n===`zh-TW`?Xje(e):Zje(e)}),$je=()=>`Allowed Tokens`,eMe=()=>`Allowed Tokens`,tMe=()=>`Allowed Tokens`,nMe=()=>`Allowed Tokens`,rMe=()=>`允許代幣`,iMe=()=>`允许代币`,aMe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$je(e):n===`ja-JP`?eMe(e):n===`ko-KR`?tMe(e):n===`ru-RU`?nMe(e):n===`zh-TW`?rMe(e):iMe(e)}),oMe=()=>`Comma-separated token symbols, for example USDT,USDC.`,sMe=()=>`Comma-separated token symbols, for example USDT,USDC.`,cMe=()=>`Comma-separated token symbols, for example USDT,USDC.`,lMe=()=>`Comma-separated token symbols, for example USDT,USDC.`,uMe=()=>`多個代幣用英文逗號分隔,例如 USDT,USDC。`,dMe=()=>`多个代币用英文逗号分隔,例如 USDT,USDC。`,fMe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?oMe(e):n===`ja-JP`?sMe(e):n===`ko-KR`?cMe(e):n===`ru-RU`?lMe(e):n===`zh-TW`?uMe(e):dMe(e)}),pMe=()=>`Save OkPay Config`,mMe=()=>`Save OkPay Config`,hMe=()=>`Save OkPay Config`,gMe=()=>`Save OkPay Config`,_Me=()=>`儲存 OkPay 配置`,vMe=()=>`保存 OkPay 配置`,yMe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pMe(e):n===`ja-JP`?mMe(e):n===`ko-KR`?hMe(e):n===`ru-RU`?gMe(e):n===`zh-TW`?_Me(e):vMe(e)}),bMe=()=>`OkPay config saved`,xMe=()=>`OkPay config saved`,SMe=()=>`OkPay config saved`,CMe=()=>`OkPay config saved`,wMe=()=>`OkPay 配置已儲存`,TMe=()=>`OkPay 配置已保存`,EMe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bMe(e):n===`ja-JP`?xMe(e):n===`ko-KR`?SMe(e):n===`ru-RU`?CMe(e):n===`zh-TW`?wMe(e):TMe(e)}),DMe=()=>`Reset to defaults`,OMe=()=>`Reset to defaults`,kMe=()=>`Reset to defaults`,AMe=()=>`Reset to defaults`,jMe=()=>`重置為預設值`,MMe=()=>`重置为默认值`,NMe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?DMe(e):n===`ja-JP`?OMe(e):n===`ko-KR`?kMe(e):n===`ru-RU`?AMe(e):n===`zh-TW`?jMe(e):MMe(e)}),PMe=()=>`OkPay config reset to defaults`,FMe=()=>`OkPay config reset to defaults`,IMe=()=>`OkPay config reset to defaults`,LMe=()=>`OkPay config reset to defaults`,RMe=()=>`OkPay 配置已重置為預設值`,zMe=()=>`OkPay 配置已重置为默认值`,BMe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?PMe(e):n===`ja-JP`?FMe(e):n===`ko-KR`?IMe(e):n===`ru-RU`?LMe(e):n===`zh-TW`?RMe(e):zMe(e)}),VMe=()=>`OkPay`,HMe=()=>`OkPay`,UMe=()=>`OkPay`,WMe=()=>`OkPay`,GMe=()=>`OkPay`,KMe=()=>`OkPay`,qMe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?VMe(e):n===`ja-JP`?HMe(e):n===`ko-KR`?UMe(e):n===`ru-RU`?WMe(e):n===`zh-TW`?GMe(e):KMe(e)}),JMe=()=>`Open OkPay in Telegram to complete payment`,YMe=()=>`Telegram で OkPay を開いて支払う`,XMe=()=>`Telegram에서 OkPay를 열어 결제`,ZMe=()=>`Откройте OkPay в Telegram для оплаты`,QMe=()=>`透過 Telegram 開啟 OkPay 完成支付`,$Me=()=>`通过 Telegram 打开 OkPay 完成支付`,eNe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?JMe(e):n===`ja-JP`?YMe(e):n===`ko-KR`?XMe(e):n===`ru-RU`?ZMe(e):n===`zh-TW`?QMe(e):$Me(e)}),tNe=()=>`Opening OkPay payment window`,nNe=()=>`OkPay 支払いウィンドウを開いています`,rNe=()=>`OkPay 결제 창을 여는 중`,iNe=()=>`Открываем окно оплаты OkPay`,aNe=()=>`正在開啟 OkPay 支付視窗`,oNe=()=>`正在打开 OkPay 支付窗口`,sNe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tNe(e):n===`ja-JP`?nNe(e):n===`ko-KR`?rNe(e):n===`ru-RU`?iNe(e):n===`zh-TW`?aNe(e):oNe(e)});export{xEe as $,b0 as $a,SP as $c,Sp as $d,xo as $f,b7 as $i,SD as $l,xfe as $n,SJ as $o,a as $p,xae as $r,SV as $s,xye as $t,Sb as $u,bke as A,y3 as Aa,xL as Ac,xg as Ad,bl as Af,bte as Ai,xA as Al,bhe as An,xZ as Ao,yn as Ap,bce as Ar,xW as As,bSe as At,xC as Au,iOe as B,r4 as Ba,aI as Bc,ah as Bd,ic as Bf,iee as Bi,ak as Bl,ime as Bn,aX as Bo,nt as Bp,ise as Br,aU as Bs,ixe as Bt,aS as Bu,hAe as C,m6 as Ca,gR as Cc,g_ as Cd,hu as Cf,hne as Ci,gj as Cl,hge as Cn,gQ as Co,mr as Cp,hle as Cr,gG as Cs,hCe as Ct,gw as Cu,Vke as D,B3 as Da,HL as Dc,Hg as Dd,Vl as Df,Vte as Di,HA as Dl,Vhe as Dn,HZ as Do,Bn as Dp,Vce as Dr,HW as Ds,VSe as Dt,HC as Du,Jke as E,q3 as Ea,YL as Ec,Yg as Ed,Jl as Ef,Jte as Ei,YA as El,Jhe as En,YZ as Eo,qn as Ep,Jce as Er,YW as Es,JSe as Et,YC as Eu,zOe as F,R4 as Fa,BI as Fc,Bh as Fd,zc as Ff,zee as Fi,Bk as Fl,zme as Fn,BX as Fo,Lt as Fp,zse as Fr,BU as Fs,zxe as Ft,BS as Fu,CDe as G,S2 as Ga,wF as Gc,wm as Gd,Cs as Gf,S9 as Gi,wO as Gl,Cpe as Gn,wY as Go,xe as Gp,Coe as Gr,wH as Gs,Cbe as Gt,wx as Gu,WDe as H,U2 as Ha,GF as Hc,Gm as Hd,Ws as Hf,U9 as Hi,GO as Hl,Wpe as Hn,GY as Ho,He as Hp,Woe as Hr,GH as Hs,Wbe as Ht,Gx as Hu,MOe as I,j4 as Ia,NI as Ic,Nh as Id,Mc as If,Mee as Ii,Nk as Il,Mme as In,NX as Io,At as Ip,Mse as Ir,NU as Is,Mxe as It,NS as Iu,nDe as J,t2 as Ja,rF as Jc,rm as Jd,ns as Jf,t9 as Ji,rO as Jl,npe as Jn,rY as Jo,Z as Jp,noe as Jr,rH as Js,nbe as Jt,rx as Ju,gDe as K,h2 as Ka,_F as Kc,_m as Kd,gs as Kf,h9 as Ki,_O as Kl,gpe as Kn,_Y as Ko,me as Kp,goe as Kr,_H as Ks,gbe as Kt,_x as Ku,TOe as L,w4 as La,EI as Lc,Eh as Ld,Tc as Lf,Tee as Li,Ek as Ll,Tme as Ln,EX as Lo,Ct as Lp,Tse as Lr,EU as Ls,Txe as Lt,ES as Lu,oke as M,a3 as Ma,sL as Mc,sg as Md,ol as Mf,ote as Mi,sA as Ml,ohe as Mn,sZ as Mo,an as Mp,oce as Mr,sW as Ms,oSe as Mt,sC as Mu,$Oe as N,Q4 as Na,eL as Nc,eg as Nd,$c as Nf,$ee as Ni,eA as Nl,$me as Nn,eZ as No,Zt as Np,$se as Nr,eW as Ns,$xe as Nt,eC as Nu,Pke as O,N3 as Oa,FL as Oc,Fg as Od,Pl as Of,Pte as Oi,FA as Ol,Phe as On,FZ as Oo,Nn as Op,Pce as Or,FW as Os,PSe as Ot,FC as Ou,KOe as P,G4 as Pa,qI as Pc,qh as Pd,Kc as Pf,Kee as Pi,qk as Pl,Kme as Pn,qX as Po,Wt as Pp,Kse as Pr,qU as Ps,Kxe as Pt,qS as Pu,OEe as Q,D0 as Qa,kP as Qc,kp as Qd,Oo as Qf,D7 as Qi,kD as Ql,Ofe as Qn,kJ as Qo,m as Qp,Oae as Qr,kV as Qs,Oye as Qt,kb as Qu,vOe as R,_4 as Ra,yI as Rc,yh as Rd,vc as Rf,vee as Ri,yk as Rl,vme as Rn,yX as Ro,gt as Rp,vse as Rr,yU as Rs,vxe as Rt,yS as Ru,SAe as S,x6 as Sa,CR as Sc,C_ as Sd,Su as Sf,Sne as Si,Cj as Sl,Sge as Sn,CQ as So,xr as Sp,Sle as Sr,CG as Ss,SCe as St,Cw as Su,tAe as T,e6 as Ta,nR as Tc,n_ as Td,tu as Tf,tne as Ti,nj as Tl,tge as Tn,nQ as To,er as Tp,tle as Tr,nG as Ts,tCe as Tt,nw as Tu,LDe as U,I2 as Ua,RF as Uc,Rm as Ud,Ls as Uf,I9 as Ui,RO as Ul,Lpe as Un,RY as Uo,Fe as Up,Loe as Ur,RH as Us,Lbe as Ut,Rx as Uu,ZDe as V,X2 as Va,QF as Vc,Qm as Vd,Zs as Vf,X9 as Vi,QO as Vl,Zpe as Vn,QY as Vo,Ye as Vp,Zoe as Vr,QH as Vs,Zbe as Vt,Qx as Vu,ADe as W,k2 as Wa,jF as Wc,jm as Wd,As as Wf,k9 as Wi,jO as Wl,Ape as Wn,jY as Wo,Oe as Wp,Aoe as Wr,jH as Ws,Abe as Wt,jx as Wu,HEe as X,V0 as Xa,UP as Xc,Up as Xd,Ho as Xf,V7 as Xi,UD as Xl,Hfe as Xn,UJ as Xo,L as Xp,Hae as Xr,UV as Xs,Hye as Xt,Ub as Xu,YEe as Y,J0 as Ya,XP as Yc,Xp as Yd,Yo as Yf,J7 as Yi,XD as Yl,Yfe as Yn,XJ as Yo,W as Yp,Yae as Yr,XV as Ys,Yye as Yt,Xb as Yu,FEe as Z,P0 as Za,IP as Zc,Ip as Zd,Fo as Zf,P7 as Zi,ID as Zl,Ffe as Zn,IJ as Zo,A as Zp,Fae as Zr,IV as Zs,Fye as Zt,Ib as Zu,rje as _,n8 as _a,iz as _c,iv as _d,rd as _f,rre as _i,iM as _l,r_e as _n,i$ as _o,ni as _p,rue as _r,iK as _s,rwe as _t,iT as _u,NMe as a,M5 as aa,PB as ac,Py as ad,Pf as af,Nie as ai,PN as al,Nve as an,P1 as ao,Ma as ap,Nde as ar,Pq as as,NTe as at,PE as au,IAe as b,F6 as ba,LR as bc,L_ as bd,Iu as bf,Ine as bi,Lj as bl,Ige as bn,LQ as bo,Fr as bp,Ile as br,LG as bs,ICe as bt,Lw as bu,fMe as c,d5 as ca,pB as cc,py as cd,pf as cf,fie as ci,pN as cl,fve as cn,p1 as co,da as cp,fde as cr,pq as cs,fTe as ct,pE as cu,Gje as d,W8 as da,Kz as dc,Kv as dd,Gd as df,Gre as di,KM as dl,G_e as dn,K$ as do,Wi as dp,Gue as dr,KK as ds,Gwe as dt,KT as du,p7 as ea,hV as ec,hb as ed,hp as ef,mae as ei,hP as el,_ as em,mye as en,p0 as eo,mo as ep,mfe as er,hJ as es,mEe as et,hD as eu,Rje as f,L8 as fa,zz as fc,zv as fd,Rd as ff,Rre as fi,zM as fl,R_e as fn,z$ as fo,Li as fp,Rue as fr,zK as fs,Rwe as ft,zT as fu,uje as g,l8 as ga,dz as gc,dv as gd,ud as gf,ure as gi,dM as gl,u_e as gn,d$ as go,li as gp,uue as gr,dK as gs,uwe as gt,dT as gu,_je as h,g8 as ha,vz as hc,vv as hd,_d as hf,_re as hi,vM as hl,__e as hn,v$ as ho,gi as hp,_ue as hr,vK as hs,_we as ht,vT as hu,BMe as i,z5 as ia,VB as ic,Vy as id,Vf as if,Bie as ii,VN as il,Bve as in,V1 as io,za as ip,Bde as ir,Vq as is,BTe as it,VE as iu,pke as j,f3 as ja,mL as jc,mg as jd,pl as jf,pte as ji,mA as jl,phe as jn,mZ as jo,fn as jp,pce as jr,mW as js,pSe as jt,mC as ju,Dke as k,E3 as ka,OL as kc,Og as kd,Dl as kf,Dte as ki,OA as kl,Dhe as kn,OZ as ko,En as kp,Dce as kr,OW as ks,DSe as kt,OC as ku,aMe as l,i5 as la,oB as lc,oy as ld,of as lf,aie as li,oN as ll,ave as ln,o1 as lo,ia as lp,ade as lr,oq as ls,aTe as lt,oE as lu,wje as m,C8 as ma,Tz as mc,Tv as md,wd as mf,wre as mi,TM as ml,w_e as mn,T$ as mo,Ci as mp,wue as mr,TK as ms,wwe as mt,TT as mu,eNe as n,$5 as na,tV as nc,tb as nd,tp as nf,eae as ni,tP as nl,eye as nn,e0 as no,$a as np,efe as nr,tJ as ns,eEe as nt,tD as nu,EMe as o,T5 as oa,DB as oc,Dy as od,Df as of,Eie as oi,DN as ol,Eve as on,D1 as oo,Ta as op,Ede as or,Dq as os,ETe as ot,DE as ou,jje as p,A8 as pa,Mz as pc,Mv as pd,jd as pf,jre as pi,MM as pl,j_e as pn,M$ as po,Ai as pp,jue as pr,MK as ps,jwe as pt,MT as pu,lDe as q,c2 as qa,uF as qc,um as qd,ls as qf,c9 as qi,uO as ql,lpe as qn,uY as qo,se as qp,loe as qr,uH as qs,lbe as qt,ux as qu,qMe as r,K5 as ra,JB as rc,Jy as rd,Jf as rf,qie as ri,JN as rl,qve as rn,J1 as ro,Ka as rp,qde as rr,Jq as rs,qTe as rt,JE as ru,yMe as s,v5 as sa,bB as sc,by as sd,bf as sf,yie as si,bN as sl,yve as sn,b1 as so,va as sp,yde as sr,bq as ss,yTe as st,bE as su,sNe as t,o7 as ta,cV as tc,cb as td,cp as tf,sae as ti,cP as tl,n as tm,sye as tn,eee as to,oo as tp,sfe as tr,cJ as ts,sEe as tt,cD as tu,Qje as u,Z8 as ua,$z as uc,$v as ud,Qd as uf,Qre as ui,$M as ul,Q_e as un,$$ as uo,Zi as up,Que as ur,$K as us,Qwe as ut,$T as uu,XAe as v,Y6 as va,ZR as vc,Z_ as vd,Xu as vf,Xne as vi,Zj as vl,Xge as vn,ZQ as vo,Yr as vp,Xle as vr,ZG as vs,XCe as vt,Zw as vu,cAe as w,s6 as wa,lR as wc,l_ as wd,cu as wf,cne as wi,lj as wl,cge as wn,lQ as wo,sr as wp,cle as wr,lG as ws,cCe as wt,lw as wu,kAe as x,O6 as xa,AR as xc,A_ as xd,ku as xf,kne as xi,Aj as xl,kge as xn,AQ as xo,Or as xp,kle as xr,AG as xs,kCe as xt,Aw as xu,UAe as y,H6 as ya,WR as yc,W_ as yd,Uu as yf,Une as yi,Wj as yl,Uge as yn,WQ as yo,Hr as yp,Ule as yr,WG as ys,UCe as yt,Ww as yu,dOe as z,u4 as za,fI as zc,fh as zd,dc as zf,dee as zi,fk as zl,dme as zn,fX as zo,lt as zp,dse as zr,fU as zs,dxe as zt,fS as zu}; \ No newline at end of file diff --git a/src/www/assets/messages-Bp0bCjzp.js b/src/www/assets/messages-Bp0bCjzp.js deleted file mode 100644 index 486fd3e..0000000 --- a/src/www/assets/messages-Bp0bCjzp.js +++ /dev/null @@ -1 +0,0 @@ -import{t as e}from"./chunk-DECur_0Z.js";var t=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),n=e(((e,n)=>{n.exports=t()})),r={},i=`en-US`,a=[`en-US`,`ja-JP`,`ko-KR`,`ru-RU`,`zh-TW`,`zh-CN`],o=`PARAGLIDE_LOCALE`,ee=3456e4,s=[`cookie`,`preferredLanguage`,`baseLocale`],c=[],l,u;function te(e){if(c.length===0)return;let t=typeof e==`string`?e:e.href;if(l===t)return u;let n=new URL(t,`http://dummy.com`),i;for(let e of c)if(new r(e.match,n.href).exec(n.href)){i=e;break}return l=t,u=i,i}function d(e){let t=te(e);return t&&t.exclude!==!0&&Array.isArray(t.strategy)?t.strategy:s}var f=void 0;globalThis.__paraglide=globalThis.__paraglide??{},globalThis.__paraglide.ssr=globalThis.__paraglide.ssr??{};var p=!1,m=()=>{if(f){let e=f?.getStore()?.locale;if(e)return e}let e=s;typeof window<`u`&&window.location?.href&&(e=d(window.location.href));let t=h(e,typeof window<`u`?window.location?.href:void 0);if(t)return p||(p=!0,_(t,{reload:!1})),t;throw Error(`No locale found. Read the docs https://inlang.com/m/gerre34r/library-inlang-paraglideJs/errors#no-locale-found`)};function h(e,t){let n;for(let t of e){if(t===`cookie`)n=b();else if(t===`baseLocale`)n=i;else if(t===`preferredLanguage`)n=x();else if(C(t)&&S.has(t)){let e=S.get(t);if(e){let t=e.getLocale();if(t instanceof Promise)continue;if(t!==void 0)return y(t)}}let e=v(n);if(e)return e}}var g=e=>{e?window.location.href=e:window.location.reload()},_=(e,t)=>{let n={reload:!0,...t},r;try{r=m()}catch{}let i=[],a=s;typeof window<`u`&&window.location?.href&&(a=d(window.location.href));for(let t of a)if(t===`cookie`){if(typeof document>`u`||typeof window>`u`)continue;let t=`${o}=${e}; path=/; max-age=${ee}`;document.cookie=t}else if(t===`baseLocale`)continue;else if(C(t)&&S.has(t)){let n=S.get(t);if(n){let r=n.setLocale(e);r instanceof Promise&&(r=r.catch(e=>{throw Error(`Custom strategy "${t}" setLocale failed.`,{cause:e})}),i.push(r))}}let c=()=>{n.reload&&window.location&&e!==r&&g(void 0)};if(i.length)return Promise.all(i).then(()=>{c()});c()};function v(e){if(typeof e!=`string`)return;let t=e.toLowerCase();for(let e of a)if(e.toLowerCase()===t)return e}function y(e){let t=v(e);if(t)return t;throw Error(`Invalid locale: ${e}. Expected one of: ${a.join(`, `)}`)}function b(){if(typeof document>`u`||!document.cookie)return;let e=document.cookie.match(RegExp(`(^| )${o}=([^;]+)`))?.[2];return v(e)}function x(){if(!navigator?.languages?.length)return;let e=navigator.languages.map(e=>({fullTag:e,baseTag:e.split(`-`)[0]}));for(let t of e){let e=v(t.fullTag);if(e)return e;let n=v(t.baseTag);if(n)return n}}var S=new Map;function C(e){return typeof e==`string`&&/^custom-[A-Za-z0-9_-]+$/.test(e)}var w=()=>`Search`,T=()=>`Search`,E=()=>`Search`,D=()=>`Search`,O=()=>`搜尋`,k=()=>`搜索`,A=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?w(e):n===`ja-JP`?T(e):n===`ko-KR`?E(e):n===`ru-RU`?D(e):n===`zh-TW`?O(e):k(e)}),j=()=>`Cancel`,M=()=>`Cancel`,N=()=>`Cancel`,P=()=>`Cancel`,F=()=>`取消`,I=()=>`取消`,L=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?j(e):n===`ja-JP`?M(e):n===`ko-KR`?N(e):n===`ru-RU`?P(e):n===`zh-TW`?F(e):I(e)}),R=()=>`Continue`,z=()=>`Continue`,B=()=>`Continue`,V=()=>`Continue`,H=()=>`繼續`,U=()=>`继续`,W=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?R(e):n===`ja-JP`?z(e):n===`ko-KR`?B(e):n===`ru-RU`?V(e):n===`zh-TW`?H(e):U(e)}),G=()=>`Change Password`,K=()=>`Change Password`,q=()=>`Change Password`,J=()=>`Change Password`,Y=()=>`修改密碼`,X=()=>`修改密码`,Z=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?G(e):n===`ja-JP`?K(e):n===`ko-KR`?q(e):n===`ru-RU`?J(e):n===`zh-TW`?Y(e):X(e)}),Q=()=>`Sign out`,ne=()=>`Sign out`,re=()=>`Sign out`,ie=()=>`Sign out`,ae=()=>`退出登入`,oe=()=>`退出登录`,se=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Q(e):n===`ja-JP`?ne(e):n===`ko-KR`?re(e):n===`ru-RU`?ie(e):n===`zh-TW`?ae(e):oe(e)}),ce=()=>`Are you sure you want to sign out? You will need to sign in again to access your account.`,le=()=>`Are you sure you want to sign out? You will need to sign in again to access your account.`,ue=()=>`Are you sure you want to sign out? You will need to sign in again to access your account.`,de=()=>`Are you sure you want to sign out? You will need to sign in again to access your account.`,fe=()=>`您確定要退出登入嗎?您需要重新登入才能訪問您的賬戶。`,pe=()=>`您确定要退出登录吗?您需要重新登录才能访问您的账户。`,me=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ce(e):n===`ja-JP`?le(e):n===`ko-KR`?ue(e):n===`ru-RU`?de(e):n===`zh-TW`?fe(e):pe(e)}),he=()=>`Toggle theme`,ge=()=>`テーマを切り替え`,_e=()=>`테마 전환`,ve=()=>`Переключить тему`,ye=()=>`切換主題`,be=()=>`切换主题`,xe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?he(e):n===`ja-JP`?ge(e):n===`ko-KR`?_e(e):n===`ru-RU`?ve(e):n===`zh-TW`?ye(e):be(e)}),Se=()=>`Light`,Ce=()=>`ライト`,we=()=>`라이트`,Te=()=>`Светлая`,Ee=()=>`淺色`,De=()=>`浅色`,Oe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Se(e):n===`ja-JP`?Ce(e):n===`ko-KR`?we(e):n===`ru-RU`?Te(e):n===`zh-TW`?Ee(e):De(e)}),ke=()=>`Dark`,Ae=()=>`ダーク`,je=()=>`다크`,Me=()=>`Темная`,Ne=()=>`深色`,Pe=()=>`深色`,Fe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ke(e):n===`ja-JP`?Ae(e):n===`ko-KR`?je(e):n===`ru-RU`?Me(e):n===`zh-TW`?Ne(e):Pe(e)}),Ie=()=>`System`,Le=()=>`システム`,Re=()=>`시스템`,ze=()=>`Системная`,Be=()=>`系統`,Ve=()=>`系统`,He=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ie(e):n===`ja-JP`?Le(e):n===`ko-KR`?Re(e):n===`ru-RU`?ze(e):n===`zh-TW`?Be(e):Ve(e)}),Ue=()=>`Skip to Main`,We=()=>`Skip to Main`,Ge=()=>`Skip to Main`,Ke=()=>`Skip to Main`,qe=()=>`跳至主內容`,Je=()=>`跳至主内容`,Ye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ue(e):n===`ja-JP`?We(e):n===`ko-KR`?Ge(e):n===`ru-RU`?Ke(e):n===`zh-TW`?qe(e):Je(e)}),Xe=()=>`Switch language`,Ze=()=>`言語を切り替え`,Qe=()=>`언어 전환`,$e=()=>`Сменить язык`,et=()=>`切換語言`,tt=()=>`切换语言`,nt=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Xe(e):n===`ja-JP`?Ze(e):n===`ko-KR`?Qe(e):n===`ru-RU`?$e(e):n===`zh-TW`?et(e):tt(e)}),rt=()=>`Learn more`,it=()=>`Learn more`,at=()=>`Learn more`,ot=()=>`Learn more`,st=()=>`瞭解更多`,ct=()=>`了解更多`,lt=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rt(e):n===`ja-JP`?it(e):n===`ko-KR`?at(e):n===`ru-RU`?ot(e):n===`zh-TW`?st(e):ct(e)}),ut=()=>`Coming Soon`,dt=()=>`Coming Soon`,ft=()=>`Coming Soon`,pt=()=>`Coming Soon`,mt=()=>`即將推出`,ht=()=>`即将推出`,gt=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ut(e):n===`ja-JP`?dt(e):n===`ko-KR`?ft(e):n===`ru-RU`?pt(e):n===`zh-TW`?mt(e):ht(e)}),_t=()=>`We are putting the finishing touches on this feature. Stay tuned for a better experience.`,vt=()=>`We are putting the finishing touches on this feature. Stay tuned for a better experience.`,yt=()=>`We are putting the finishing touches on this feature. Stay tuned for a better experience.`,bt=()=>`We are putting the finishing touches on this feature. Stay tuned for a better experience.`,xt=()=>`我們正在打磨這一功能,敬請期待更好的體驗`,St=()=>`我们正在打磨这一功能,敬请期待更好的体验`,Ct=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_t(e):n===`ja-JP`?vt(e):n===`ko-KR`?yt(e):n===`ru-RU`?bt(e):n===`zh-TW`?xt(e):St(e)}),wt=()=>`Hang tight 👀`,Tt=()=>`Hang tight 👀`,Et=()=>`Hang tight 👀`,Dt=()=>`Hang tight 👀`,Ot=()=>`再等等 👀`,kt=()=>`再等等 👀`,At=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wt(e):n===`ja-JP`?Tt(e):n===`ko-KR`?Et(e):n===`ru-RU`?Dt(e):n===`zh-TW`?Ot(e):kt(e)}),jt=()=>`Type a command or search...`,Mt=()=>`Type a command or search...`,Nt=()=>`Type a command or search...`,Pt=()=>`Type a command or search...`,Ft=()=>`輸入命令或搜尋...`,It=()=>`输入命令或搜索...`,Lt=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jt(e):n===`ja-JP`?Mt(e):n===`ko-KR`?Nt(e):n===`ru-RU`?Pt(e):n===`zh-TW`?Ft(e):It(e)}),Rt=()=>`No results found.`,zt=()=>`No results found.`,Bt=()=>`No results found.`,Vt=()=>`No results found.`,Ht=()=>`未找到結果。`,Ut=()=>`未找到结果。`,Wt=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Rt(e):n===`ja-JP`?zt(e):n===`ko-KR`?Bt(e):n===`ru-RU`?Vt(e):n===`zh-TW`?Ht(e):Ut(e)}),Gt=()=>`Theme Settings`,Kt=()=>`Theme Settings`,qt=()=>`Theme Settings`,Jt=()=>`Theme Settings`,Yt=()=>`主題設定`,Xt=()=>`主题设置`,Zt=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Gt(e):n===`ja-JP`?Kt(e):n===`ko-KR`?qt(e):n===`ru-RU`?Jt(e):n===`zh-TW`?Yt(e):Xt(e)}),Qt=()=>`Adjust the appearance and layout to suit your preferences.`,$t=()=>`Adjust the appearance and layout to suit your preferences.`,en=()=>`Adjust the appearance and layout to suit your preferences.`,tn=()=>`Adjust the appearance and layout to suit your preferences.`,nn=()=>`調整外觀和佈局以適合您的偏好。`,rn=()=>`调整外观和布局以适合您的偏好。`,an=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Qt(e):n===`ja-JP`?$t(e):n===`ko-KR`?en(e):n===`ru-RU`?tn(e):n===`zh-TW`?nn(e):rn(e)}),on=()=>`Reset`,sn=()=>`Reset`,cn=()=>`Reset`,ln=()=>`Reset`,un=()=>`重置`,dn=()=>`重置`,fn=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?on(e):n===`ja-JP`?sn(e):n===`ko-KR`?cn(e):n===`ru-RU`?ln(e):n===`zh-TW`?un(e):dn(e)}),pn=()=>`Theme`,mn=()=>`Theme`,hn=()=>`Theme`,gn=()=>`Theme`,_n=()=>`主題`,vn=()=>`主题`,yn=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pn(e):n===`ja-JP`?mn(e):n===`ko-KR`?hn(e):n===`ru-RU`?gn(e):n===`zh-TW`?_n(e):vn(e)}),bn=()=>`Sidebar`,xn=()=>`Sidebar`,Sn=()=>`Sidebar`,Cn=()=>`Sidebar`,wn=()=>`側邊欄`,Tn=()=>`侧边栏`,En=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bn(e):n===`ja-JP`?xn(e):n===`ko-KR`?Sn(e):n===`ru-RU`?Cn(e):n===`zh-TW`?wn(e):Tn(e)}),Dn=()=>`Layout`,On=()=>`Layout`,kn=()=>`Layout`,An=()=>`Layout`,jn=()=>`佈局`,Mn=()=>`布局`,Nn=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Dn(e):n===`ja-JP`?On(e):n===`ko-KR`?kn(e):n===`ru-RU`?An(e):n===`zh-TW`?jn(e):Mn(e)}),Pn=()=>`Direction`,Fn=()=>`Direction`,In=()=>`Direction`,Ln=()=>`Direction`,Rn=()=>`方向`,zn=()=>`方向`,Bn=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Pn(e):n===`ja-JP`?Fn(e):n===`ko-KR`?In(e):n===`ru-RU`?Ln(e):n===`zh-TW`?Rn(e):zn(e)}),Vn=()=>`Inset`,Hn=()=>`Inset`,Un=()=>`Inset`,Wn=()=>`Inset`,Gn=()=>`嵌入`,Kn=()=>`嵌入`,qn=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Vn(e):n===`ja-JP`?Hn(e):n===`ko-KR`?Un(e):n===`ru-RU`?Wn(e):n===`zh-TW`?Gn(e):Kn(e)}),Jn=()=>`Floating`,Yn=()=>`Floating`,Xn=()=>`Floating`,Zn=()=>`Floating`,Qn=()=>`浮動`,$n=()=>`浮动`,er=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Jn(e):n===`ja-JP`?Yn(e):n===`ko-KR`?Xn(e):n===`ru-RU`?Zn(e):n===`zh-TW`?Qn(e):$n(e)}),tr=()=>`Sidebar`,nr=()=>`Sidebar`,rr=()=>`Sidebar`,ir=()=>`Sidebar`,ar=()=>`側邊欄`,or=()=>`侧边栏`,sr=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tr(e):n===`ja-JP`?nr(e):n===`ko-KR`?rr(e):n===`ru-RU`?ir(e):n===`zh-TW`?ar(e):or(e)}),cr=()=>`Default`,lr=()=>`Default`,ur=()=>`Default`,dr=()=>`Default`,fr=()=>`預設`,pr=()=>`默认`,mr=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cr(e):n===`ja-JP`?lr(e):n===`ko-KR`?ur(e):n===`ru-RU`?dr(e):n===`zh-TW`?fr(e):pr(e)}),hr=()=>`Compact`,gr=()=>`Compact`,_r=()=>`Compact`,vr=()=>`Compact`,yr=()=>`緊湊`,br=()=>`紧凑`,xr=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hr(e):n===`ja-JP`?gr(e):n===`ko-KR`?_r(e):n===`ru-RU`?vr(e):n===`zh-TW`?yr(e):br(e)}),Sr=()=>`Full layout`,Cr=()=>`Full layout`,wr=()=>`Full layout`,Tr=()=>`Full layout`,Er=()=>`完整佈局`,Dr=()=>`完整布局`,Or=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Sr(e):n===`ja-JP`?Cr(e):n===`ko-KR`?wr(e):n===`ru-RU`?Tr(e):n===`zh-TW`?Er(e):Dr(e)}),kr=()=>`Left to Right`,Ar=()=>`Left to Right`,jr=()=>`Left to Right`,Mr=()=>`Left to Right`,Nr=()=>`從左到右`,Pr=()=>`从左到右`,Fr=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kr(e):n===`ja-JP`?Ar(e):n===`ko-KR`?jr(e):n===`ru-RU`?Mr(e):n===`zh-TW`?Nr(e):Pr(e)}),Ir=()=>`Right to Left`,Lr=()=>`Right to Left`,Rr=()=>`Right to Left`,zr=()=>`Right to Left`,Br=()=>`從右到左`,Vr=()=>`从右到左`,Hr=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ir(e):n===`ja-JP`?Lr(e):n===`ko-KR`?Rr(e):n===`ru-RU`?zr(e):n===`zh-TW`?Br(e):Vr(e)}),Ur=()=>`Asc`,Wr=()=>`Asc`,Gr=()=>`Asc`,Kr=()=>`Asc`,qr=()=>`升序`,Jr=()=>`升序`,Yr=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ur(e):n===`ja-JP`?Wr(e):n===`ko-KR`?Gr(e):n===`ru-RU`?Kr(e):n===`zh-TW`?qr(e):Jr(e)}),Xr=()=>`Desc`,Zr=()=>`Desc`,Qr=()=>`Desc`,$r=()=>`Desc`,ei=()=>`降序`,ti=()=>`降序`,ni=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Xr(e):n===`ja-JP`?Zr(e):n===`ko-KR`?Qr(e):n===`ru-RU`?$r(e):n===`zh-TW`?ei(e):ti(e)}),ri=()=>`Hide`,ii=()=>`Hide`,ai=()=>`Hide`,oi=()=>`Hide`,si=()=>`隱藏`,ci=()=>`隐藏`,li=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ri(e):n===`ja-JP`?ii(e):n===`ko-KR`?ai(e):n===`ru-RU`?oi(e):n===`zh-TW`?si(e):ci(e)}),ui=e=>`Page ${e?.current} of ${e?.total}`,di=e=>`Page ${e?.current} of ${e?.total}`,fi=e=>`Page ${e?.current} of ${e?.total}`,pi=e=>`Page ${e?.current} of ${e?.total}`,mi=e=>`第 ${e?.current} 頁,共 ${e?.total} 頁`,hi=e=>`第 ${e?.current} 页,共 ${e?.total} 页`,gi=((e,t={})=>{let n=t.locale??m();return n===`en-US`?ui(e):n===`ja-JP`?di(e):n===`ko-KR`?fi(e):n===`ru-RU`?pi(e):n===`zh-TW`?mi(e):hi(e)}),_i=()=>`Rows per page`,vi=()=>`Rows per page`,yi=()=>`Rows per page`,bi=()=>`Rows per page`,xi=()=>`每頁行數`,Si=()=>`每页行数`,Ci=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_i(e):n===`ja-JP`?vi(e):n===`ko-KR`?yi(e):n===`ru-RU`?bi(e):n===`zh-TW`?xi(e):Si(e)}),wi=()=>`Go to first page`,Ti=()=>`Go to first page`,Ei=()=>`Go to first page`,Di=()=>`Go to first page`,Oi=()=>`跳轉到第一頁`,ki=()=>`跳转到第一页`,Ai=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wi(e):n===`ja-JP`?Ti(e):n===`ko-KR`?Ei(e):n===`ru-RU`?Di(e):n===`zh-TW`?Oi(e):ki(e)}),ji=()=>`Go to previous page`,Mi=()=>`Go to previous page`,Ni=()=>`Go to previous page`,Pi=()=>`Go to previous page`,Fi=()=>`跳轉到上一頁`,Ii=()=>`跳转到上一页`,Li=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ji(e):n===`ja-JP`?Mi(e):n===`ko-KR`?Ni(e):n===`ru-RU`?Pi(e):n===`zh-TW`?Fi(e):Ii(e)}),Ri=e=>`Go to page ${e?.page}`,zi=e=>`Go to page ${e?.page}`,Bi=e=>`Go to page ${e?.page}`,Vi=e=>`Go to page ${e?.page}`,Hi=e=>`跳轉到第 ${e?.page} 頁`,Ui=e=>`跳转到第 ${e?.page} 页`,Wi=((e,t={})=>{let n=t.locale??m();return n===`en-US`?Ri(e):n===`ja-JP`?zi(e):n===`ko-KR`?Bi(e):n===`ru-RU`?Vi(e):n===`zh-TW`?Hi(e):Ui(e)}),Gi=()=>`Go to next page`,Ki=()=>`Go to next page`,qi=()=>`Go to next page`,Ji=()=>`Go to next page`,Yi=()=>`跳轉到下一頁`,Xi=()=>`跳转到下一页`,Zi=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Gi(e):n===`ja-JP`?Ki(e):n===`ko-KR`?qi(e):n===`ru-RU`?Ji(e):n===`zh-TW`?Yi(e):Xi(e)}),Qi=()=>`Go to last page`,$i=()=>`Go to last page`,ea=()=>`Go to last page`,ta=()=>`Go to last page`,na=()=>`跳轉到最後一頁`,ra=()=>`跳转到最后一页`,ia=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Qi(e):n===`ja-JP`?$i(e):n===`ko-KR`?ea(e):n===`ru-RU`?ta(e):n===`zh-TW`?na(e):ra(e)}),aa=()=>`Filter...`,oa=()=>`Filter...`,sa=()=>`Filter...`,ca=()=>`Filter...`,la=()=>`篩選...`,ua=()=>`筛选...`,da=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?aa(e):n===`ja-JP`?oa(e):n===`ko-KR`?sa(e):n===`ru-RU`?ca(e):n===`zh-TW`?la(e):ua(e)}),fa=()=>`Reset`,pa=()=>`Reset`,ma=()=>`Reset`,ha=()=>`Reset`,ga=()=>`重置`,_a=()=>`重置`,va=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fa(e):n===`ja-JP`?pa(e):n===`ko-KR`?ma(e):n===`ru-RU`?ha(e):n===`zh-TW`?ga(e):_a(e)}),ya=()=>`Refresh`,ba=()=>`Refresh`,xa=()=>`Refresh`,Sa=()=>`Refresh`,Ca=()=>`重新整理`,wa=()=>`刷新`,Ta=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ya(e):n===`ja-JP`?ba(e):n===`ko-KR`?xa(e):n===`ru-RU`?Sa(e):n===`zh-TW`?Ca(e):wa(e)}),Ea=()=>`View`,Da=()=>`View`,Oa=()=>`View`,ka=()=>`View`,Aa=()=>`檢視`,ja=()=>`查看`,Ma=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ea(e):n===`ja-JP`?Da(e):n===`ko-KR`?Oa(e):n===`ru-RU`?ka(e):n===`zh-TW`?Aa(e):ja(e)}),Na=()=>`Toggle columns`,Pa=()=>`Toggle columns`,Fa=()=>`Toggle columns`,Ia=()=>`Toggle columns`,La=()=>`切換列`,Ra=()=>`切换列`,za=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Na(e):n===`ja-JP`?Pa(e):n===`ko-KR`?Fa(e):n===`ru-RU`?Ia(e):n===`zh-TW`?La(e):Ra(e)}),Ba=()=>`Select date range`,Va=()=>`Select date range`,Ha=()=>`Select date range`,Ua=()=>`Select date range`,Wa=()=>`選擇時間範圍`,Ga=()=>`选择时间范围`,Ka=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ba(e):n===`ja-JP`?Va(e):n===`ko-KR`?Ha(e):n===`ru-RU`?Ua(e):n===`zh-TW`?Wa(e):Ga(e)}),qa=()=>`Today`,Ja=()=>`Today`,Ya=()=>`Today`,Xa=()=>`Today`,Za=()=>`今天`,Qa=()=>`今天`,$a=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qa(e):n===`ja-JP`?Ja(e):n===`ko-KR`?Ya(e):n===`ru-RU`?Xa(e):n===`zh-TW`?Za(e):Qa(e)}),eo=()=>`Yesterday`,to=()=>`Yesterday`,no=()=>`Yesterday`,ro=()=>`Yesterday`,io=()=>`昨天`,ao=()=>`昨天`,oo=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?eo(e):n===`ja-JP`?to(e):n===`ko-KR`?no(e):n===`ru-RU`?ro(e):n===`zh-TW`?io(e):ao(e)}),so=()=>`Last 7 days`,co=()=>`Last 7 days`,lo=()=>`Last 7 days`,uo=()=>`Last 7 days`,fo=()=>`最近 7 天`,po=()=>`最近 7 天`,mo=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?so(e):n===`ja-JP`?co(e):n===`ko-KR`?lo(e):n===`ru-RU`?uo(e):n===`zh-TW`?fo(e):po(e)}),ho=()=>`Last 30 days`,go=()=>`Last 30 days`,_o=()=>`Last 30 days`,vo=()=>`Last 30 days`,yo=()=>`最近 30 天`,bo=()=>`最近 30 天`,xo=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ho(e):n===`ja-JP`?go(e):n===`ko-KR`?_o(e):n===`ru-RU`?vo(e):n===`zh-TW`?yo(e):bo(e)}),So=()=>`This month`,Co=()=>`This month`,wo=()=>`This month`,To=()=>`This month`,Eo=()=>`本月`,Do=()=>`本月`,Oo=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?So(e):n===`ja-JP`?Co(e):n===`ko-KR`?wo(e):n===`ru-RU`?To(e):n===`zh-TW`?Eo(e):Do(e)}),ko=()=>`Last month`,Ao=()=>`Last month`,jo=()=>`Last month`,Mo=()=>`Last month`,No=()=>`上月`,Po=()=>`上月`,Fo=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ko(e):n===`ja-JP`?Ao(e):n===`ko-KR`?jo(e):n===`ru-RU`?Mo(e):n===`zh-TW`?No(e):Po(e)}),Io=()=>`Overview`,Lo=()=>`Overview`,Ro=()=>`Overview`,zo=()=>`Overview`,Bo=()=>`概覽`,Vo=()=>`概览`,Ho=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Io(e):n===`ja-JP`?Lo(e):n===`ko-KR`?Ro(e):n===`ru-RU`?zo(e):n===`zh-TW`?Bo(e):Vo(e)}),Uo=()=>`Dashboard`,Wo=()=>`Dashboard`,Go=()=>`Dashboard`,Ko=()=>`Dashboard`,qo=()=>`儀表盤`,Jo=()=>`仪表盘`,Yo=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Uo(e):n===`ja-JP`?Wo(e):n===`ko-KR`?Go(e):n===`ru-RU`?Ko(e):n===`zh-TW`?qo(e):Jo(e)}),Xo=()=>`Orders`,Zo=()=>`Orders`,Qo=()=>`Orders`,$o=()=>`Orders`,es=()=>`訂單管理`,ts=()=>`订单管理`,ns=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Xo(e):n===`ja-JP`?Zo(e):n===`ko-KR`?Qo(e):n===`ru-RU`?$o(e):n===`zh-TW`?es(e):ts(e)}),rs=()=>`Payments`,is=()=>`Payments`,as=()=>`Payments`,os=()=>`Payments`,ss=()=>`支付管理`,cs=()=>`支付管理`,ls=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rs(e):n===`ja-JP`?is(e):n===`ko-KR`?as(e):n===`ru-RU`?os(e):n===`zh-TW`?ss(e):cs(e)}),us=()=>`Blockchain`,ds=()=>`Blockchain`,fs=()=>`Blockchain`,ps=()=>`Blockchain`,ms=()=>`區塊鏈`,hs=()=>`区块链`,gs=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?us(e):n===`ja-JP`?ds(e):n===`ko-KR`?fs(e):n===`ru-RU`?ps(e):n===`zh-TW`?ms(e):hs(e)}),_s=()=>`Chains & Tokens`,vs=()=>`Chains & Tokens`,ys=()=>`Chains & Tokens`,bs=()=>`Chains & Tokens`,xs=()=>`鏈與代幣`,Ss=()=>`链与代币`,Cs=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_s(e):n===`ja-JP`?vs(e):n===`ko-KR`?ys(e):n===`ru-RU`?bs(e):n===`zh-TW`?xs(e):Ss(e)}),ws=()=>`RPC Nodes`,Ts=()=>`RPC Nodes`,Es=()=>`RPC Nodes`,Ds=()=>`RPC Nodes`,Os=()=>`RPC 節點`,ks=()=>`RPC 节点`,As=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ws(e):n===`ja-JP`?Ts(e):n===`ko-KR`?Es(e):n===`ru-RU`?Ds(e):n===`zh-TW`?Os(e):ks(e)}),js=()=>`System`,Ms=()=>`System`,Ns=()=>`System`,Ps=()=>`System`,Fs=()=>`系統`,Is=()=>`系统`,Ls=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?js(e):n===`ja-JP`?Ms(e):n===`ko-KR`?Ns(e):n===`ru-RU`?Ps(e):n===`zh-TW`?Fs(e):Is(e)}),Rs=()=>`Settings`,zs=()=>`Settings`,Bs=()=>`Settings`,Vs=()=>`Settings`,Hs=()=>`系統配置`,Us=()=>`系统配置`,Ws=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Rs(e):n===`ja-JP`?zs(e):n===`ko-KR`?Bs(e):n===`ru-RU`?Vs(e):n===`zh-TW`?Hs(e):Us(e)}),Gs=()=>`Account Security`,Ks=()=>`Account Security`,qs=()=>`Account Security`,Js=()=>`Account Security`,Ys=()=>`賬戶安全`,Xs=()=>`账户安全`,Zs=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Gs(e):n===`ja-JP`?Ks(e):n===`ko-KR`?qs(e):n===`ru-RU`?Js(e):n===`zh-TW`?Ys(e):Xs(e)}),Qs=()=>`Manage your account security settings.`,$s=()=>`Manage your account security settings.`,ec=()=>`Manage your account security settings.`,tc=()=>`Manage your account security settings.`,nc=()=>`管理你的賬戶安全設定。`,rc=()=>`管理你的账户安全设置。`,ic=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Qs(e):n===`ja-JP`?$s(e):n===`ko-KR`?ec(e):n===`ru-RU`?tc(e):n===`zh-TW`?nc(e):rc(e)}),ac=()=>`Change Password`,oc=()=>`Change Password`,sc=()=>`Change Password`,cc=()=>`Change Password`,lc=()=>`修改密碼`,uc=()=>`修改密码`,dc=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ac(e):n===`ja-JP`?oc(e):n===`ko-KR`?sc(e):n===`ru-RU`?cc(e):n===`zh-TW`?lc(e):uc(e)}),fc=()=>`Change Password`,pc=()=>`Change Password`,mc=()=>`Change Password`,hc=()=>`Change Password`,gc=()=>`修改密碼`,_c=()=>`修改密码`,vc=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fc(e):n===`ja-JP`?pc(e):n===`ko-KR`?mc(e):n===`ru-RU`?hc(e):n===`zh-TW`?gc(e):_c(e)}),yc=()=>`Update your login password.`,bc=()=>`Update your login password.`,xc=()=>`Update your login password.`,Sc=()=>`Update your login password.`,Cc=()=>`更新你的登入密碼。`,wc=()=>`更新你的登录密码。`,Tc=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yc(e):n===`ja-JP`?bc(e):n===`ko-KR`?xc(e):n===`ru-RU`?Sc(e):n===`zh-TW`?Cc(e):wc(e)}),Ec=()=>`General`,Dc=()=>`General`,Oc=()=>`General`,kc=()=>`General`,Ac=()=>`基礎配置`,jc=()=>`基础配置`,Mc=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ec(e):n===`ja-JP`?Dc(e):n===`ko-KR`?Oc(e):n===`ru-RU`?kc(e):n===`zh-TW`?Ac(e):jc(e)}),Nc=()=>`Telegram`,Pc=()=>`Telegram`,Fc=()=>`Telegram`,Ic=()=>`Telegram`,Lc=()=>`Telegram 配置`,Rc=()=>`Telegram 配置`,zc=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Nc(e):n===`ja-JP`?Pc(e):n===`ko-KR`?Fc(e):n===`ru-RU`?Ic(e):n===`zh-TW`?Lc(e):Rc(e)}),Bc=()=>`Payment Config`,Vc=()=>`Payment Config`,Hc=()=>`Payment Config`,Uc=()=>`Payment Config`,Wc=()=>`支付配置`,Gc=()=>`支付配置`,Kc=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Bc(e):n===`ja-JP`?Vc(e):n===`ko-KR`?Hc(e):n===`ru-RU`?Uc(e):n===`zh-TW`?Wc(e):Gc(e)}),qc=()=>`EPay Config`,Jc=()=>`EPay Config`,Yc=()=>`EPay Config`,Xc=()=>`EPay Config`,Zc=()=>`EPay 配置`,Qc=()=>`EPay 配置`,$c=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qc(e):n===`ja-JP`?Jc(e):n===`ko-KR`?Yc(e):n===`ru-RU`?Xc(e):n===`zh-TW`?Zc(e):Qc(e)}),el=()=>`Default Token`,tl=()=>`Default Token`,nl=()=>`Default Token`,rl=()=>`Default Token`,il=()=>`預設代幣`,al=()=>`默认代币`,ol=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?el(e):n===`ja-JP`?tl(e):n===`ko-KR`?nl(e):n===`ru-RU`?rl(e):n===`zh-TW`?il(e):al(e)}),sl=()=>`Default Currency`,cl=()=>`Default Currency`,ll=()=>`Default Currency`,ul=()=>`Default Currency`,dl=()=>`預設法幣`,fl=()=>`默认法币`,pl=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sl(e):n===`ja-JP`?cl(e):n===`ko-KR`?ll(e):n===`ru-RU`?ul(e):n===`zh-TW`?dl(e):fl(e)}),ml=()=>`Default Network`,hl=()=>`Default Network`,gl=()=>`Default Network`,_l=()=>`Default Network`,vl=()=>`預設網路`,yl=()=>`默认网络`,bl=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ml(e):n===`ja-JP`?hl(e):n===`ko-KR`?gl(e):n===`ru-RU`?_l(e):n===`zh-TW`?vl(e):yl(e)}),xl=()=>`Empty config`,Sl=()=>`Empty config`,Cl=()=>`Empty config`,wl=()=>`Empty config`,Tl=()=>`空配置`,El=()=>`空配置`,Dl=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xl(e):n===`ja-JP`?Sl(e):n===`ko-KR`?Cl(e):n===`ru-RU`?wl(e):n===`zh-TW`?Tl(e):El(e)}),Ol=()=>`Please enter a default currency`,kl=()=>`Please enter a default currency`,Al=()=>`Please enter a default currency`,jl=()=>`Please enter a default currency`,Ml=()=>`請輸入預設法幣`,Nl=()=>`请输入默认法币`,Pl=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ol(e):n===`ja-JP`?kl(e):n===`ko-KR`?Al(e):n===`ru-RU`?jl(e):n===`zh-TW`?Ml(e):Nl(e)}),Fl=()=>`system error`,Il=()=>`system error`,Ll=()=>`system error`,Rl=()=>`system error`,zl=()=>`系統錯誤`,Bl=()=>`系统错误`,Vl=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Fl(e):n===`ja-JP`?Il(e):n===`ko-KR`?Ll(e):n===`ru-RU`?Rl(e):n===`zh-TW`?zl(e):Bl(e)}),Hl=()=>`signature verification failed`,Ul=()=>`signature verification failed`,Wl=()=>`signature verification failed`,Gl=()=>`signature verification failed`,Kl=()=>`簽名驗證失敗`,ql=()=>`签名验证失败`,Jl=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hl(e):n===`ja-JP`?Ul(e):n===`ko-KR`?Wl(e):n===`ru-RU`?Gl(e):n===`zh-TW`?Kl(e):ql(e)}),Yl=()=>`Wallet address already exists`,Xl=()=>`Wallet address already exists`,Zl=()=>`Wallet address already exists`,Ql=()=>`Wallet address already exists`,$l=()=>`錢包地址已存在`,eu=()=>`钱包地址已存在`,tu=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yl(e):n===`ja-JP`?Xl(e):n===`ko-KR`?Zl(e):n===`ru-RU`?Ql(e):n===`zh-TW`?$l(e):eu(e)}),nu=()=>`Order already exists`,ru=()=>`Order already exists`,iu=()=>`Order already exists`,au=()=>`Order already exists`,ou=()=>`訂單已存在`,su=()=>`订单已存在`,cu=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nu(e):n===`ja-JP`?ru(e):n===`ko-KR`?iu(e):n===`ru-RU`?au(e):n===`zh-TW`?ou(e):su(e)}),lu=()=>`No available wallet address`,uu=()=>`No available wallet address`,du=()=>`No available wallet address`,fu=()=>`No available wallet address`,pu=()=>`無可用錢包地址`,mu=()=>`无可用钱包地址`,hu=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lu(e):n===`ja-JP`?uu(e):n===`ko-KR`?du(e):n===`ru-RU`?fu(e):n===`zh-TW`?pu(e):mu(e)}),gu=()=>`Invalid payment amount`,_u=()=>`Invalid payment amount`,vu=()=>`Invalid payment amount`,yu=()=>`Invalid payment amount`,bu=()=>`無效支付金額`,xu=()=>`无效支付金额`,Su=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gu(e):n===`ja-JP`?_u(e):n===`ko-KR`?vu(e):n===`ru-RU`?yu(e):n===`zh-TW`?bu(e):xu(e)}),Cu=()=>`No available amount channel`,wu=()=>`No available amount channel`,Tu=()=>`No available amount channel`,Eu=()=>`No available amount channel`,Du=()=>`無可用金額通道`,Ou=()=>`无可用金额通道`,ku=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Cu(e):n===`ja-JP`?wu(e):n===`ko-KR`?Tu(e):n===`ru-RU`?Eu(e):n===`zh-TW`?Du(e):Ou(e)}),Au=()=>`Rate calculation failed`,ju=()=>`rate calculation failed`,Mu=()=>`rate calculation failed`,Nu=()=>`rate calculation failed`,Pu=()=>`匯率計算失敗`,Fu=()=>`汇率计算失败`,Iu=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Au(e):n===`ja-JP`?ju(e):n===`ko-KR`?Mu(e):n===`ru-RU`?Nu(e):n===`zh-TW`?Pu(e):Fu(e)}),Lu=()=>`Block transaction already processed`,Ru=()=>`Block transaction already processed`,zu=()=>`Block transaction already processed`,Bu=()=>`Block transaction already processed`,Vu=()=>`區塊交易已處理`,Hu=()=>`区块交易已处理`,Uu=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Lu(e):n===`ja-JP`?Ru(e):n===`ko-KR`?zu(e):n===`ru-RU`?Bu(e):n===`zh-TW`?Vu(e):Hu(e)}),Wu=()=>`Order does not exist`,Gu=()=>`order does not exist`,Ku=()=>`order does not exist`,qu=()=>`order does not exist`,Ju=()=>`訂單不存在`,Yu=()=>`订单不存在`,Xu=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Wu(e):n===`ja-JP`?Gu(e):n===`ko-KR`?Ku(e):n===`ru-RU`?qu(e):n===`zh-TW`?Ju(e):Yu(e)}),Zu=()=>`Failed to parse request params`,Qu=()=>`failed to parse request params`,$u=()=>`failed to parse request params`,ed=()=>`failed to parse request params`,td=()=>`請求引數解析失敗`,nd=()=>`请求参数解析失败`,rd=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Zu(e):n===`ja-JP`?Qu(e):n===`ko-KR`?$u(e):n===`ru-RU`?ed(e):n===`zh-TW`?td(e):nd(e)}),id=()=>`Order status already changed`,ad=()=>`order status already changed`,od=()=>`order status already changed`,sd=()=>`order status already changed`,cd=()=>`訂單狀態已變更`,ld=()=>`订单状态已变更`,ud=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?id(e):n===`ja-JP`?ad(e):n===`ko-KR`?od(e):n===`ru-RU`?sd(e):n===`zh-TW`?cd(e):ld(e)}),dd=()=>`Exceeded maximum sub-order limit`,fd=()=>`exceeded maximum sub-order limit`,pd=()=>`exceeded maximum sub-order limit`,md=()=>`exceeded maximum sub-order limit`,hd=()=>`超過最大子訂單數量限制`,gd=()=>`超过最大子订单数量限制`,_d=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dd(e):n===`ja-JP`?fd(e):n===`ko-KR`?pd(e):n===`ru-RU`?md(e):n===`zh-TW`?hd(e):gd(e)}),vd=()=>`Cannot switch network for sub-order`,yd=()=>`Cannot switch network for sub-order`,bd=()=>`Cannot switch network for sub-order`,xd=()=>`Cannot switch network for sub-order`,Sd=()=>`不能對子訂單切換網路`,Cd=()=>`不能对子订单切换网络`,wd=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vd(e):n===`ja-JP`?yd(e):n===`ko-KR`?bd(e):n===`ru-RU`?xd(e):n===`zh-TW`?Sd(e):Cd(e)}),Td=()=>`Order is not awaiting payment`,Ed=()=>`order is not awaiting payment`,Dd=()=>`order is not awaiting payment`,Od=()=>`order is not awaiting payment`,kd=()=>`訂單不是待支付狀態`,Ad=()=>`订单不是待支付状态`,jd=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Td(e):n===`ja-JP`?Ed(e):n===`ko-KR`?Dd(e):n===`ru-RU`?Od(e):n===`zh-TW`?kd(e):Ad(e)}),Md=()=>`Chain is not enabled`,Nd=()=>`chain is not enabled`,Pd=()=>`chain is not enabled`,Fd=()=>`chain is not enabled`,Id=()=>`鏈未啟用`,Ld=()=>`链未启用`,Rd=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Md(e):n===`ja-JP`?Nd(e):n===`ko-KR`?Pd(e):n===`ru-RU`?Fd(e):n===`zh-TW`?Id(e):Ld(e)}),zd=()=>`Supported asset already exists`,Bd=()=>`Supported asset already exists`,Vd=()=>`Supported asset already exists`,Hd=()=>`Supported asset already exists`,Ud=()=>`支援的資產已存在`,Wd=()=>`支持的资产已存在`,Gd=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zd(e):n===`ja-JP`?Bd(e):n===`ko-KR`?Vd(e):n===`ru-RU`?Hd(e):n===`zh-TW`?Ud(e):Wd(e)}),Kd=()=>`Supported asset not found`,qd=()=>`supported asset not found`,Jd=()=>`supported asset not found`,Yd=()=>`supported asset not found`,Xd=()=>`未找到支援的資產`,Zd=()=>`未找到支持的资产`,Qd=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Kd(e):n===`ja-JP`?qd(e):n===`ko-KR`?Jd(e):n===`ru-RU`?Yd(e):n===`zh-TW`?Xd(e):Zd(e)}),$d=()=>`Payment provider is not enabled`,ef=()=>`payment provider is not enabled`,tf=()=>`payment provider is not enabled`,nf=()=>`payment provider is not enabled`,rf=()=>`支付服務商未啟用`,af=()=>`支付服务商未启用`,of=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$d(e):n===`ja-JP`?ef(e):n===`ko-KR`?tf(e):n===`ru-RU`?nf(e):n===`zh-TW`?rf(e):af(e)}),sf=()=>`Payment provider configuration is incomplete`,cf=()=>`payment provider configuration is incomplete`,lf=()=>`payment provider configuration is incomplete`,uf=()=>`payment provider configuration is incomplete`,df=()=>`支付服務商配置不完整`,ff=()=>`支付服务商配置不完整`,pf=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sf(e):n===`ja-JP`?cf(e):n===`ko-KR`?lf(e):n===`ru-RU`?uf(e):n===`zh-TW`?df(e):ff(e)}),mf=()=>`Payment provider does not support this token or network`,hf=()=>`payment provider does not support this token or network`,gf=()=>`payment provider does not support this token or network`,_f=()=>`payment provider does not support this token or network`,vf=()=>`支付服務商不支援該代幣或網路`,yf=()=>`支付服务商不支持该代币或网络`,bf=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mf(e):n===`ja-JP`?hf(e):n===`ko-KR`?gf(e):n===`ru-RU`?_f(e):n===`zh-TW`?vf(e):yf(e)}),xf=()=>`Invalid RPC node purpose`,Sf=()=>`invalid rpc node purpose`,Cf=()=>`invalid rpc node purpose`,wf=()=>`invalid rpc node purpose`,Tf=()=>`無效的 RPC 節點用途`,Ef=()=>`无效的 RPC 节点用途`,Df=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xf(e):n===`ja-JP`?Sf(e):n===`ko-KR`?Cf(e):n===`ru-RU`?wf(e):n===`zh-TW`?Tf(e):Ef(e)}),Of=()=>`Invalid RPC node URL`,kf=()=>`invalid rpc node url`,Af=()=>`invalid rpc node url`,jf=()=>`invalid rpc node url`,Mf=()=>`無效的 RPC 節點 URL`,Nf=()=>`无效的 RPC 节点 URL`,Pf=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Of(e):n===`ja-JP`?kf(e):n===`ko-KR`?Af(e):n===`ru-RU`?jf(e):n===`zh-TW`?Mf(e):Nf(e)}),Ff=()=>`RPC node HTTP URL required`,If=()=>`rpc node http url required`,Lf=()=>`rpc node http url required`,Rf=()=>`rpc node http url required`,zf=()=>`RPC 節點需要 HTTP URL`,Bf=()=>`RPC 节点需要 HTTP URL`,Vf=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ff(e):n===`ja-JP`?If(e):n===`ko-KR`?Lf(e):n===`ru-RU`?Rf(e):n===`zh-TW`?zf(e):Bf(e)}),Hf=()=>`RPC node WebSocket URL required`,Uf=()=>`rpc node websocket url required`,Wf=()=>`rpc node websocket url required`,Gf=()=>`rpc node websocket url required`,Kf=()=>`RPC 節點需要 WebSocket URL`,qf=()=>`RPC 节点需要 WebSocket URL`,Jf=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hf(e):n===`ja-JP`?Uf(e):n===`ko-KR`?Wf(e):n===`ru-RU`?Gf(e):n===`zh-TW`?Kf(e):qf(e)}),Yf=()=>`Invalid RPC node type`,Xf=()=>`invalid rpc node type`,Zf=()=>`invalid rpc node type`,Qf=()=>`invalid rpc node type`,$f=()=>`無效的 RPC 節點類型`,ep=()=>`无效的 RPC 节点类型`,tp=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yf(e):n===`ja-JP`?Xf(e):n===`ko-KR`?Zf(e):n===`ru-RU`?Qf(e):n===`zh-TW`?$f(e):ep(e)}),np=()=>`Invalid username or password`,rp=()=>`invalid username or password`,ip=()=>`invalid username or password`,ap=()=>`invalid username or password`,op=()=>`使用者名稱或密碼錯誤`,sp=()=>`用户名或密码错误`,cp=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?np(e):n===`ja-JP`?rp(e):n===`ko-KR`?ip(e):n===`ru-RU`?ap(e):n===`zh-TW`?op(e):sp(e)}),lp=()=>`Admin user disabled`,up=()=>`admin user disabled`,dp=()=>`admin user disabled`,fp=()=>`admin user disabled`,pp=()=>`管理員使用者已停用`,mp=()=>`管理员用户已禁用`,hp=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lp(e):n===`ja-JP`?up(e):n===`ko-KR`?dp(e):n===`ru-RU`?fp(e):n===`zh-TW`?pp(e):mp(e)}),gp=()=>`Admin unauthorized`,_p=()=>`admin unauthorized`,vp=()=>`admin unauthorized`,yp=()=>`admin unauthorized`,bp=()=>`管理員未授權`,xp=()=>`管理员未授权`,Sp=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gp(e):n===`ja-JP`?_p(e):n===`ko-KR`?vp(e):n===`ru-RU`?yp(e):n===`zh-TW`?bp(e):xp(e)}),Cp=()=>`Admin user not found`,wp=()=>`admin user not found`,Tp=()=>`admin user not found`,Ep=()=>`admin user not found`,Dp=()=>`管理員使用者不存在`,Op=()=>`管理员用户不存在`,kp=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Cp(e):n===`ja-JP`?wp(e):n===`ko-KR`?Tp(e):n===`ru-RU`?Ep(e):n===`zh-TW`?Dp(e):Op(e)}),Ap=()=>`Old password incorrect`,jp=()=>`old password incorrect`,Mp=()=>`old password incorrect`,Np=()=>`old password incorrect`,Pp=()=>`舊密碼錯誤`,Fp=()=>`旧密码错误`,Ip=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ap(e):n===`ja-JP`?jp(e):n===`ko-KR`?Mp(e):n===`ru-RU`?Np(e):n===`zh-TW`?Pp(e):Fp(e)}),Lp=()=>`Wallet not found`,Rp=()=>`wallet not found`,zp=()=>`wallet not found`,Bp=()=>`wallet not found`,Vp=()=>`錢包不存在`,Hp=()=>`钱包不存在`,Up=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Lp(e):n===`ja-JP`?Rp(e):n===`ko-KR`?zp(e):n===`ru-RU`?Bp(e):n===`zh-TW`?Vp(e):Hp(e)}),Wp=()=>`API key not found`,Gp=()=>`api key not found`,Kp=()=>`api key not found`,qp=()=>`api key not found`,Jp=()=>`API Key 不存在`,Yp=()=>`API Key 不存在`,Xp=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Wp(e):n===`ja-JP`?Gp(e):n===`ko-KR`?Kp(e):n===`ru-RU`?qp(e):n===`zh-TW`?Jp(e):Yp(e)}),Zp=()=>`RPC node not found`,Qp=()=>`rpc node not found`,$p=()=>`rpc node not found`,em=()=>`rpc node not found`,tm=()=>`RPC 節點不存在`,nm=()=>`RPC 节点不存在`,rm=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Zp(e):n===`ja-JP`?Qp(e):n===`ko-KR`?$p(e):n===`ru-RU`?em(e):n===`zh-TW`?tm(e):nm(e)}),im=()=>`Order callback not applicable`,am=()=>`order callback not applicable`,om=()=>`order callback not applicable`,sm=()=>`order callback not applicable`,cm=()=>`該訂單不適用回調`,lm=()=>`该订单不适用回调`,um=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?im(e):n===`ja-JP`?am(e):n===`ko-KR`?om(e):n===`ru-RU`?sm(e):n===`zh-TW`?cm(e):lm(e)}),dm=()=>`Order notify URL empty`,fm=()=>`order notify url empty`,pm=()=>`order notify url empty`,mm=()=>`order notify url empty`,hm=()=>`訂單通知地址為空`,gm=()=>`订单通知地址为空`,_m=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dm(e):n===`ja-JP`?fm(e):n===`ko-KR`?pm(e):n===`ru-RU`?mm(e):n===`zh-TW`?hm(e):gm(e)}),vm=()=>`Resend callback failed`,ym=()=>`resend callback failed`,bm=()=>`resend callback failed`,xm=()=>`resend callback failed`,Sm=()=>`重發回調失敗`,Cm=()=>`重发回调失败`,wm=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vm(e):n===`ja-JP`?ym(e):n===`ko-KR`?bm(e):n===`ru-RU`?xm(e):n===`zh-TW`?Sm(e):Cm(e)}),Tm=()=>`Invalid notification config`,Em=()=>`invalid notification config`,Dm=()=>`invalid notification config`,Om=()=>`invalid notification config`,km=()=>`無效的通知配置`,Am=()=>`无效的通知配置`,jm=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Tm(e):n===`ja-JP`?Em(e):n===`ko-KR`?Dm(e):n===`ru-RU`?Om(e):n===`zh-TW`?km(e):Am(e)}),Mm=()=>`Invalid notification events`,Nm=()=>`invalid notification events`,Pm=()=>`invalid notification events`,Fm=()=>`invalid notification events`,Im=()=>`無效的通知事件`,Lm=()=>`无效的通知事件`,Rm=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Mm(e):n===`ja-JP`?Nm(e):n===`ko-KR`?Pm(e):n===`ru-RU`?Fm(e):n===`zh-TW`?Im(e):Lm(e)}),zm=()=>`Manual payment verification failed`,Bm=()=>`manual payment verification failed`,Vm=()=>`manual payment verification failed`,Hm=()=>`manual payment verification failed`,Um=()=>`手動支付校驗失敗`,Wm=()=>`手动支付校验失败`,Gm=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zm(e):n===`ja-JP`?Bm(e):n===`ko-KR`?Vm(e):n===`ru-RU`?Hm(e):n===`zh-TW`?Um(e):Wm(e)}),Km=()=>`Manual payment only supports on-chain orders`,qm=()=>`manual payment only supports on-chain orders`,Jm=()=>`manual payment only supports on-chain orders`,Ym=()=>`manual payment only supports on-chain orders`,Xm=()=>`手動支付僅支援鏈上訂單`,Zm=()=>`手动支付仅支持链上订单`,Qm=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Km(e):n===`ja-JP`?qm(e):n===`ko-KR`?Jm(e):n===`ru-RU`?Ym(e):n===`zh-TW`?Xm(e):Zm(e)}),$m=()=>`Initial admin password unavailable, check from logs`,eh=()=>`initial admin password unavailable, check from logs`,th=()=>`initial admin password unavailable, check from logs`,nh=()=>`initial admin password unavailable, check from logs`,rh=()=>`無法取得初始管理員密碼,請查看日誌`,ih=()=>`无法获取初始管理员密码,请查看日志`,ah=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$m(e):n===`ja-JP`?eh(e):n===`ko-KR`?th(e):n===`ru-RU`?nh(e):n===`zh-TW`?rh(e):ih(e)}),oh=()=>`Invalid notify URL`,sh=()=>`invalid notify url`,ch=()=>`invalid notify url`,lh=()=>`invalid notify url`,uh=()=>`無效通知地址`,dh=()=>`无效通知地址`,fh=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?oh(e):n===`ja-JP`?sh(e):n===`ko-KR`?ch(e):n===`ru-RU`?lh(e):n===`zh-TW`?uh(e):dh(e)}),ph=()=>`Payment provider order creation failed`,mh=()=>`payment provider order creation failed`,hh=()=>`payment provider order creation failed`,gh=()=>`payment provider order creation failed`,_h=()=>`支付服務商訂單建立失敗`,vh=()=>`支付服务商订单创建失败`,yh=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ph(e):n===`ja-JP`?mh(e):n===`ko-KR`?hh(e):n===`ru-RU`?gh(e):n===`zh-TW`?_h(e):vh(e)}),bh=()=>`Invalid setting item`,xh=()=>`invalid setting item`,Sh=()=>`invalid setting item`,Ch=()=>`invalid setting item`,wh=()=>`無效配置項`,Th=()=>`无效配置项`,Eh=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bh(e):n===`ja-JP`?xh(e):n===`ko-KR`?Sh(e):n===`ru-RU`?Ch(e):n===`zh-TW`?wh(e):Th(e)}),Dh=()=>`Invalid order redirect URL`,Oh=()=>`invalid order redirect url`,kh=()=>`invalid order redirect url`,Ah=()=>`invalid order redirect url`,jh=()=>`無效訂單跳轉地址`,Mh=()=>`无效订单跳转地址`,Nh=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Dh(e):n===`ja-JP`?Oh(e):n===`ko-KR`?kh(e):n===`ru-RU`?Ah(e):n===`zh-TW`?jh(e):Mh(e)}),Ph=()=>`Order API key unavailable`,Fh=()=>`order api key unavailable`,Ih=()=>`order api key unavailable`,Lh=()=>`order api key unavailable`,Rh=()=>`訂單 API Key 不可用`,zh=()=>`订单 API Key 不可用`,Bh=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ph(e):n===`ja-JP`?Fh(e):n===`ko-KR`?Ih(e):n===`ru-RU`?Lh(e):n===`zh-TW`?Rh(e):zh(e)}),Vh=()=>`Failed to build EPay return signature`,Hh=()=>`failed to build epay return signature`,Uh=()=>`failed to build epay return signature`,Wh=()=>`failed to build epay return signature`,Gh=()=>`產生 EPay 返回簽名失敗`,Kh=()=>`生成 EPay 返回签名失败`,qh=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Vh(e):n===`ja-JP`?Hh(e):n===`ko-KR`?Uh(e):n===`ru-RU`?Wh(e):n===`zh-TW`?Gh(e):Kh(e)}),Jh=()=>`Request failed`,Yh=()=>`Request failed`,Xh=()=>`Request failed`,Zh=()=>`Request failed`,Qh=()=>`請求失敗`,$h=()=>`请求失败`,eg=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Jh(e):n===`ja-JP`?Yh(e):n===`ko-KR`?Xh(e):n===`ru-RU`?Zh(e):n===`zh-TW`?Qh(e):$h(e)}),tg=()=>`Server error, please try again later`,ng=()=>`Server error, please try again later`,rg=()=>`Server error, please try again later`,ig=()=>`Server error, please try again later`,ag=()=>`伺服器錯誤,請稍後重試`,og=()=>`服务器错误,请稍后重试`,sg=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tg(e):n===`ja-JP`?ng(e):n===`ko-KR`?rg(e):n===`ru-RU`?ig(e):n===`zh-TW`?ag(e):og(e)}),cg=()=>`Oops! Something went wrong :')`,lg=()=>`Oops! Something went wrong :')`,ug=()=>`Oops! Something went wrong :')`,dg=()=>`Oops! Something went wrong :')`,fg=()=>`出錯了 :')`,pg=()=>`出错了 :')`,mg=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cg(e):n===`ja-JP`?lg(e):n===`ko-KR`?ug(e):n===`ru-RU`?dg(e):n===`zh-TW`?fg(e):pg(e)}),hg=()=>`We apologize for the inconvenience. Please try again later.`,gg=()=>`We apologize for the inconvenience. Please try again later.`,_g=()=>`We apologize for the inconvenience. Please try again later.`,vg=()=>`We apologize for the inconvenience. Please try again later.`,yg=()=>`抱歉給您帶來不便,請稍後重試。`,bg=()=>`抱歉给您带来不便,请稍后重试。`,xg=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hg(e):n===`ja-JP`?gg(e):n===`ko-KR`?_g(e):n===`ru-RU`?vg(e):n===`zh-TW`?yg(e):bg(e)}),Sg=()=>`Go Back`,Cg=()=>`Go Back`,wg=()=>`Go Back`,Tg=()=>`Go Back`,Eg=()=>`返回`,Dg=()=>`返回`,Og=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Sg(e):n===`ja-JP`?Cg(e):n===`ko-KR`?wg(e):n===`ru-RU`?Tg(e):n===`zh-TW`?Eg(e):Dg(e)}),kg=()=>`Back to Home`,Ag=()=>`Back to Home`,jg=()=>`Back to Home`,Mg=()=>`Back to Home`,Ng=()=>`回到首頁`,Pg=()=>`回到首页`,Fg=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kg(e):n===`ja-JP`?Ag(e):n===`ko-KR`?jg(e):n===`ru-RU`?Mg(e):n===`zh-TW`?Ng(e):Pg(e)}),Ig=()=>`Oops! Page Not Found!`,Lg=()=>`Oops! Page Not Found!`,Rg=()=>`Oops! Page Not Found!`,zg=()=>`Oops! Page Not Found!`,Bg=()=>`頁面未找到!`,Vg=()=>`页面未找到!`,Hg=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ig(e):n===`ja-JP`?Lg(e):n===`ko-KR`?Rg(e):n===`ru-RU`?zg(e):n===`zh-TW`?Bg(e):Vg(e)}),Ug=()=>`It seems like the page you're looking for does not exist or might have been removed.`,Wg=()=>`It seems like the page you're looking for does not exist or might have been removed.`,Gg=()=>`It seems like the page you're looking for does not exist or might have been removed.`,Kg=()=>`It seems like the page you're looking for does not exist or might have been removed.`,qg=()=>`您訪問的頁面不存在或已被移除。`,Jg=()=>`您访问的页面不存在或已被移除。`,Yg=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ug(e):n===`ja-JP`?Wg(e):n===`ko-KR`?Gg(e):n===`ru-RU`?Kg(e):n===`zh-TW`?qg(e):Jg(e)}),Xg=()=>`Welcome back`,Zg=()=>`Welcome back`,Qg=()=>`Welcome back`,$g=()=>`Welcome back`,e_=()=>`歡迎回來`,t_=()=>`欢迎回来`,n_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Xg(e):n===`ja-JP`?Zg(e):n===`ko-KR`?Qg(e):n===`ru-RU`?$g(e):n===`zh-TW`?e_(e):t_(e)}),r_=()=>`Sign in to GMPay`,i_=()=>`Sign in to GMPay`,a_=()=>`Sign in to GMPay`,o_=()=>`Sign in to GMPay`,s_=()=>`登入 GMPay 後臺`,c_=()=>`登录 GMPay 后台`,l_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?r_(e):n===`ja-JP`?i_(e):n===`ko-KR`?a_(e):n===`ru-RU`?o_(e):n===`zh-TW`?s_(e):c_(e)}),u_=()=>`Use your admin account to access the console and manage payment orders, wallet configuration and callback notifications.`,d_=()=>`Use your admin account to access the console and manage payment orders, wallet configuration and callback notifications.`,f_=()=>`Use your admin account to access the console and manage payment orders, wallet configuration and callback notifications.`,p_=()=>`Use your admin account to access the console and manage payment orders, wallet configuration and callback notifications.`,m_=()=>`使用管理員帳號進入控制台,繼續處理收款訂單、錢包配置與通知回呼。`,h_=()=>`使用管理员账号进入控制台,继续处理收款订单、钱包配置与通知回调。`,g_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?u_(e):n===`ja-JP`?d_(e):n===`ko-KR`?f_(e):n===`ru-RU`?p_(e):n===`zh-TW`?m_(e):h_(e)}),__=()=>`Username`,v_=()=>`Username`,y_=()=>`Username`,b_=()=>`Username`,x_=()=>`帳號`,S_=()=>`账号`,C_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?__(e):n===`ja-JP`?v_(e):n===`ko-KR`?y_(e):n===`ru-RU`?b_(e):n===`zh-TW`?x_(e):S_(e)}),w_=()=>`admin`,T_=()=>`admin`,E_=()=>`admin`,D_=()=>`admin`,O_=()=>`admin`,k_=()=>`admin`,A_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?w_(e):n===`ja-JP`?T_(e):n===`ko-KR`?E_(e):n===`ru-RU`?D_(e):n===`zh-TW`?O_(e):k_(e)}),j_=()=>`Password`,M_=()=>`Password`,N_=()=>`Password`,P_=()=>`Password`,F_=()=>`密碼`,I_=()=>`密码`,L_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?j_(e):n===`ja-JP`?M_(e):n===`ko-KR`?N_(e):n===`ru-RU`?P_(e):n===`zh-TW`?F_(e):I_(e)}),R_=()=>`Please enter your username`,z_=()=>`Please enter your username`,B_=()=>`Please enter your username`,V_=()=>`Please enter your username`,H_=()=>`請輸入帳號`,U_=()=>`请输入账号`,W_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?R_(e):n===`ja-JP`?z_(e):n===`ko-KR`?B_(e):n===`ru-RU`?V_(e):n===`zh-TW`?H_(e):U_(e)}),G_=()=>`Please enter your password`,K_=()=>`Please enter your password`,q_=()=>`Please enter your password`,J_=()=>`Please enter your password`,Y_=()=>`請輸入密碼`,X_=()=>`请输入密码`,Z_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?G_(e):n===`ja-JP`?K_(e):n===`ko-KR`?q_(e):n===`ru-RU`?J_(e):n===`zh-TW`?Y_(e):X_(e)}),Q_=()=>`Sign In`,$_=()=>`Sign In`,ev=()=>`Sign In`,tv=()=>`Sign In`,nv=()=>`登入`,rv=()=>`登录`,iv=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Q_(e):n===`ja-JP`?$_(e):n===`ko-KR`?ev(e):n===`ru-RU`?tv(e):n===`zh-TW`?nv(e):rv(e)}),av=e=>`Welcome back, ${e?.username}!`,ov=e=>`Welcome back, ${e?.username}!`,sv=e=>`Welcome back, ${e?.username}!`,cv=e=>`Welcome back, ${e?.username}!`,lv=e=>`歡迎回來,${e?.username}!`,uv=e=>`欢迎回来,${e?.username}!`,dv=((e,t={})=>{let n=t.locale??m();return n===`en-US`?av(e):n===`ja-JP`?ov(e):n===`ko-KR`?sv(e):n===`ru-RU`?cv(e):n===`zh-TW`?lv(e):uv(e)}),fv=()=>`GMPay Setup`,pv=()=>`GMPay Setup`,mv=()=>`GMPay Setup`,hv=()=>`GMPay Setup`,gv=()=>`GMPay 安裝配置`,_v=()=>`GMPay 安装配置`,vv=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fv(e):n===`ja-JP`?pv(e):n===`ko-KR`?mv(e):n===`ru-RU`?hv(e):n===`zh-TW`?gv(e):_v(e)}),yv=()=>`Fill in the details below to create your configuration file.`,bv=()=>`Fill in the details below to create your configuration file.`,xv=()=>`Fill in the details below to create your configuration file.`,Sv=()=>`Fill in the details below to create your configuration file.`,Cv=()=>`填寫以下資訊以建立配置檔案。`,wv=()=>`填写以下信息以创建配置文件。`,Tv=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yv(e):n===`ja-JP`?bv(e):n===`ko-KR`?xv(e):n===`ru-RU`?Sv(e):n===`zh-TW`?Cv(e):wv(e)}),Ev=()=>`App Name`,Dv=()=>`App Name`,Ov=()=>`App Name`,kv=()=>`App Name`,Av=()=>`應用名稱`,jv=()=>`应用名称`,Mv=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ev(e):n===`ja-JP`?Dv(e):n===`ko-KR`?Ov(e):n===`ru-RU`?kv(e):n===`zh-TW`?Av(e):jv(e)}),Nv=()=>`App URI`,Pv=()=>`App URI`,Fv=()=>`App URI`,Iv=()=>`App URI`,Lv=()=>`應用地址`,Rv=()=>`应用地址`,zv=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Nv(e):n===`ja-JP`?Pv(e):n===`ko-KR`?Fv(e):n===`ru-RU`?Iv(e):n===`zh-TW`?Lv(e):Rv(e)}),Bv=()=>`HTTP Bind Address`,Vv=()=>`HTTP Bind Address`,Hv=()=>`HTTP Bind Address`,Uv=()=>`HTTP Bind Address`,Wv=()=>`HTTP 繫結地址`,Gv=()=>`HTTP 绑定地址`,Kv=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Bv(e):n===`ja-JP`?Vv(e):n===`ko-KR`?Hv(e):n===`ru-RU`?Uv(e):n===`zh-TW`?Wv(e):Gv(e)}),qv=()=>`HTTP Bind Port`,Jv=()=>`HTTP Bind Port`,Yv=()=>`HTTP Bind Port`,Xv=()=>`HTTP Bind Port`,Zv=()=>`HTTP 繫結埠`,Qv=()=>`HTTP 绑定端口`,$v=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qv(e):n===`ja-JP`?Jv(e):n===`ko-KR`?Yv(e):n===`ru-RU`?Xv(e):n===`zh-TW`?Zv(e):Qv(e)}),ey=()=>`Runtime Root Path`,ty=()=>`Runtime Root Path`,ny=()=>`Runtime Root Path`,ry=()=>`Runtime Root Path`,iy=()=>`執行時根目錄`,ay=()=>`运行时根目录`,oy=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ey(e):n===`ja-JP`?ty(e):n===`ko-KR`?ny(e):n===`ru-RU`?ry(e):n===`zh-TW`?iy(e):ay(e)}),sy=()=>`Log Save Path`,cy=()=>`Log Save Path`,ly=()=>`Log Save Path`,uy=()=>`Log Save Path`,dy=()=>`日誌儲存路徑`,fy=()=>`日志保存路径`,py=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sy(e):n===`ja-JP`?cy(e):n===`ko-KR`?ly(e):n===`ru-RU`?uy(e):n===`zh-TW`?dy(e):fy(e)}),my=()=>`Order Expiration (min)`,hy=()=>`Order Expiration (min)`,gy=()=>`Order Expiration (min)`,_y=()=>`Order Expiration (min)`,vy=()=>`訂單過期時間(分鐘)`,yy=()=>`订单过期时间(分钟)`,by=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?my(e):n===`ja-JP`?hy(e):n===`ko-KR`?gy(e):n===`ru-RU`?_y(e):n===`zh-TW`?vy(e):yy(e)}),xy=()=>`Max Callback Retries`,Sy=()=>`Max Callback Retries`,Cy=()=>`Max Callback Retries`,wy=()=>`Max Callback Retries`,Ty=()=>`最大回調重試次數`,Ey=()=>`最大回调重试次数`,Dy=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xy(e):n===`ja-JP`?Sy(e):n===`ko-KR`?Cy(e):n===`ru-RU`?wy(e):n===`zh-TW`?Ty(e):Ey(e)}),Oy=()=>`Install`,ky=()=>`Install`,Ay=()=>`Install`,jy=()=>`Install`,My=()=>`開始安裝`,Ny=()=>`开始安装`,Py=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Oy(e):n===`ja-JP`?ky(e):n===`ko-KR`?Ay(e):n===`ru-RU`?jy(e):n===`zh-TW`?My(e):Ny(e)}),Fy=()=>`Installing…`,Iy=()=>`Installing…`,Ly=()=>`Installing…`,Ry=()=>`Installing…`,zy=()=>`安裝中…`,By=()=>`安装中…`,Vy=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Fy(e):n===`ja-JP`?Iy(e):n===`ko-KR`?Ly(e):n===`ru-RU`?Ry(e):n===`zh-TW`?zy(e):By(e)}),Hy=()=>`Done!`,Uy=()=>`Done!`,Wy=()=>`Done!`,Gy=()=>`Done!`,Ky=()=>`完成!`,qy=()=>`完成!`,Jy=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hy(e):n===`ja-JP`?Uy(e):n===`ko-KR`?Wy(e):n===`ru-RU`?Gy(e):n===`zh-TW`?Ky(e):qy(e)}),Yy=()=>`Install failed.`,Xy=()=>`Install failed.`,Zy=()=>`Install failed.`,Qy=()=>`Install failed.`,$y=()=>`安裝失敗。`,eb=()=>`安装失败。`,tb=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yy(e):n===`ja-JP`?Xy(e):n===`ko-KR`?Zy(e):n===`ru-RU`?Qy(e):n===`zh-TW`?$y(e):eb(e)}),nb=()=>`Error`,rb=()=>`Error`,ib=()=>`Error`,ab=()=>`Error`,ob=()=>`安裝失敗`,sb=()=>`安装失败`,cb=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nb(e):n===`ja-JP`?rb(e):n===`ko-KR`?ib(e):n===`ru-RU`?ab(e):n===`zh-TW`?ob(e):sb(e)}),lb=()=>`Secure and efficient USDT payment middleware`,ub=()=>`Secure and efficient USDT payment middleware`,db=()=>`Secure and efficient USDT payment middleware`,fb=()=>`Secure and efficient USDT payment middleware`,pb=()=>`安全、高效的 USDT 支付中介軟體`,mb=()=>`安全、高效的 USDT 支付中间件`,hb=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lb(e):n===`ja-JP`?ub(e):n===`ko-KR`?db(e):n===`ru-RU`?fb(e):n===`zh-TW`?pb(e):mb(e)}),gb=()=>`Installation complete`,_b=()=>`Installation complete`,vb=()=>`Installation complete`,yb=()=>`Installation complete`,bb=()=>`安裝完成`,xb=()=>`安装完成`,Sb=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gb(e):n===`ja-JP`?_b(e):n===`ko-KR`?vb(e):n===`ru-RU`?yb(e):n===`zh-TW`?bb(e):xb(e)}),Cb=()=>`Please save the initial admin username and password below.`,wb=()=>`Please save the initial admin username and password below.`,Tb=()=>`Please save the initial admin username and password below.`,Eb=()=>`Please save the initial admin username and password below.`,Db=()=>`請先儲存下面的初始管理員帳號和密碼。`,Ob=()=>`请先保存下面的初始管理员账号和密码。`,kb=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Cb(e):n===`ja-JP`?wb(e):n===`ko-KR`?Tb(e):n===`ru-RU`?Eb(e):n===`zh-TW`?Db(e):Ob(e)}),Ab=()=>`Admin credentials ready`,jb=()=>`Admin credentials ready`,Mb=()=>`Admin credentials ready`,Nb=()=>`Admin credentials ready`,Pb=()=>`管理員憑據已生成`,Fb=()=>`管理员凭证已生成`,Ib=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ab(e):n===`ja-JP`?jb(e):n===`ko-KR`?Mb(e):n===`ru-RU`?Nb(e):n===`zh-TW`?Pb(e):Fb(e)}),Lb=()=>`Initial password unavailable`,Rb=()=>`Initial password unavailable`,zb=()=>`Initial password unavailable`,Bb=()=>`Initial password unavailable`,Vb=()=>`初始密碼讀取失敗`,Hb=()=>`初始密码读取失败`,Ub=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Lb(e):n===`ja-JP`?Rb(e):n===`ko-KR`?zb(e):n===`ru-RU`?Bb(e):n===`zh-TW`?Vb(e):Hb(e)}),Wb=()=>`Check the service startup terminal for the admin username and initial password.`,Gb=()=>`Check the service startup terminal for the admin username and initial password.`,Kb=()=>`Check the service startup terminal for the admin username and initial password.`,qb=()=>`Check the service startup terminal for the admin username and initial password.`,Jb=()=>`請前往服務啟動終端機查看管理員帳號和初始密碼。`,Yb=()=>`请前往服务启动终端查看管理员账号和初始密码。`,Xb=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Wb(e):n===`ja-JP`?Gb(e):n===`ko-KR`?Kb(e):n===`ru-RU`?qb(e):n===`zh-TW`?Jb(e):Yb(e)}),Zb=()=>`Go to sign in`,Qb=()=>`Go to sign in`,$b=()=>`Go to sign in`,ex=()=>`Go to sign in`,tx=()=>`去登入`,nx=()=>`去登录`,rx=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Zb(e):n===`ja-JP`?Qb(e):n===`ko-KR`?$b(e):n===`ru-RU`?ex(e):n===`zh-TW`?tx(e):nx(e)}),ix=()=>`Username`,ax=()=>`Username`,ox=()=>`Username`,sx=()=>`Username`,cx=()=>`使用者名稱`,lx=()=>`用户名`,ux=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ix(e):n===`ja-JP`?ax(e):n===`ko-KR`?ox(e):n===`ru-RU`?sx(e):n===`zh-TW`?cx(e):lx(e)}),dx=()=>`Initial password`,fx=()=>`Initial password`,px=()=>`Initial password`,mx=()=>`Initial password`,hx=()=>`初始密碼`,gx=()=>`初始密码`,_x=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dx(e):n===`ja-JP`?fx(e):n===`ko-KR`?px(e):n===`ru-RU`?mx(e):n===`zh-TW`?hx(e):gx(e)}),vx=()=>`Change the password in an HTTPS environment`,yx=()=>`Change the password in an HTTPS environment`,bx=()=>`Change the password in an HTTPS environment`,xx=()=>`Change the password in an HTTPS environment`,Sx=()=>`請在 HTTPS 環境下修改密碼`,Cx=()=>`请在 HTTPS 环境下修改密码`,wx=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vx(e):n===`ja-JP`?yx(e):n===`ko-KR`?bx(e):n===`ru-RU`?xx(e):n===`zh-TW`?Sx(e):Cx(e)}),Tx=()=>`Show password`,Ex=()=>`Show password`,Dx=()=>`Show password`,Ox=()=>`Show password`,kx=()=>`顯示密碼`,Ax=()=>`显示密码`,jx=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Tx(e):n===`ja-JP`?Ex(e):n===`ko-KR`?Dx(e):n===`ru-RU`?Ox(e):n===`zh-TW`?kx(e):Ax(e)}),Mx=()=>`Hide password`,Nx=()=>`Hide password`,Px=()=>`Hide password`,Fx=()=>`Hide password`,Ix=()=>`隱藏密碼`,Lx=()=>`隐藏密码`,Rx=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Mx(e):n===`ja-JP`?Nx(e):n===`ko-KR`?Px(e):n===`ru-RU`?Fx(e):n===`zh-TW`?Ix(e):Lx(e)}),zx=()=>`One-time view`,Bx=()=>`One-time view`,Vx=()=>`One-time view`,Hx=()=>`One-time view`,Ux=()=>`一次性檢視`,Wx=()=>`一次性查看`,Gx=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zx(e):n===`ja-JP`?Bx(e):n===`ko-KR`?Vx(e):n===`ru-RU`?Hx(e):n===`zh-TW`?Ux(e):Wx(e)}),Kx=()=>`Copy`,qx=()=>`Copy`,Jx=()=>`Copy`,Yx=()=>`Copy`,Xx=()=>`複製`,Zx=()=>`复制`,Qx=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Kx(e):n===`ja-JP`?qx(e):n===`ko-KR`?Jx(e):n===`ru-RU`?Yx(e):n===`zh-TW`?Xx(e):Zx(e)}),$x=()=>`Copied`,eS=()=>`Copied`,tS=()=>`Copied`,nS=()=>`Copied`,rS=()=>`已複製`,iS=()=>`已复制`,aS=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$x(e):n===`ja-JP`?eS(e):n===`ko-KR`?tS(e):n===`ru-RU`?nS(e):n===`zh-TW`?rS(e):iS(e)}),oS=()=>`Copy failed`,sS=()=>`Copy failed`,cS=()=>`Copy failed`,lS=()=>`Copy failed`,uS=()=>`複製失敗`,dS=()=>`复制失败`,fS=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?oS(e):n===`ja-JP`?sS(e):n===`ko-KR`?cS(e):n===`ru-RU`?lS(e):n===`zh-TW`?uS(e):dS(e)}),pS=()=>`We recommend changing the admin password first`,mS=()=>`We recommend changing the admin password first`,hS=()=>`We recommend changing the admin password first`,gS=()=>`We recommend changing the admin password first`,_S=()=>`建議先完成管理員密碼修改`,vS=()=>`建议先完成管理员密码修改`,yS=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pS(e):n===`ja-JP`?mS(e):n===`ko-KR`?hS(e):n===`ru-RU`?gS(e):n===`zh-TW`?_S(e):vS(e)}),bS=()=>`Change password now`,xS=()=>`Change password now`,SS=()=>`Change password now`,CS=()=>`Change password now`,wS=()=>`立即修改密碼`,TS=()=>`立即修改密码`,ES=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bS(e):n===`ja-JP`?xS(e):n===`ko-KR`?SS(e):n===`ru-RU`?CS(e):n===`zh-TW`?wS(e):TS(e)}),DS=()=>`This account is still using the initial password`,OS=()=>`This account is still using the initial password`,kS=()=>`This account is still using the initial password`,AS=()=>`This account is still using the initial password`,jS=()=>`當前帳號仍在使用初始密碼`,MS=()=>`当前账号仍在使用初始密码`,NS=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?DS(e):n===`ja-JP`?OS(e):n===`ko-KR`?kS(e):n===`ru-RU`?AS(e):n===`zh-TW`?jS(e):MS(e)}),PS=()=>`To reduce the risk of someone signing in with a weak or default password, we recommend changing the admin password now before entering the system.`,FS=()=>`To reduce the risk of someone signing in with a weak or default password, we recommend changing the admin password now before entering the system.`,IS=()=>`To reduce the risk of someone signing in with a weak or default password, we recommend changing the admin password now before entering the system.`,LS=()=>`To reduce the risk of someone signing in with a weak or default password, we recommend changing the admin password now before entering the system.`,RS=()=>`為了避免後臺帳號被弱口令或預設口令直接登入,建議你現在先完成密碼修改,再繼續進入系統。`,zS=()=>`为了避免后台账号因弱口令或默认口令被直接登录,建议你现在先完成密码修改,再继续进入系统。`,BS=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?PS(e):n===`ja-JP`?FS(e):n===`ko-KR`?IS(e):n===`ru-RU`?LS(e):n===`zh-TW`?RS(e):zS(e)}),VS=()=>`What happens next`,HS=()=>`What happens next`,US=()=>`What happens next`,WS=()=>`What happens next`,GS=()=>`接下來會發生什麼`,KS=()=>`接下来会发生什么`,qS=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?VS(e):n===`ja-JP`?HS(e):n===`ko-KR`?US(e):n===`ru-RU`?WS(e):n===`zh-TW`?GS(e):KS(e)}),JS=()=>`Clicking “Change password now” will take you to the password change page`,YS=()=>`Clicking “Change password now” will take you to the password change page`,XS=()=>`Clicking “Change password now” will take you to the password change page`,ZS=()=>`Clicking “Change password now” will take you to the password change page`,QS=()=>`點選“立即修改密碼”後會跳轉到修改密碼頁面`,$S=()=>`点击“立即修改密码”后会跳转到修改密码页面`,eC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?JS(e):n===`ja-JP`?YS(e):n===`ko-KR`?XS(e):n===`ru-RU`?ZS(e):n===`zh-TW`?QS(e):$S(e)}),tC=()=>`After updating the password, you can continue to the page you originally wanted to visit`,nC=()=>`After updating the password, you can continue to the page you originally wanted to visit`,rC=()=>`After updating the password, you can continue to the page you originally wanted to visit`,iC=()=>`After updating the password, you can continue to the page you originally wanted to visit`,aC=()=>`修改完成後可繼續返回你原本要進入的頁面`,oC=()=>`修改完成后可继续返回你原本要进入的页面`,sC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tC(e):n===`ja-JP`?nC(e):n===`ko-KR`?rC(e):n===`ru-RU`?iC(e):n===`zh-TW`?aC(e):oC(e)}),cC=()=>`Appearance`,lC=()=>`Appearance`,uC=()=>`Appearance`,dC=()=>`Appearance`,fC=()=>`外觀設定`,pC=()=>`外观设置`,mC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cC(e):n===`ja-JP`?lC(e):n===`ko-KR`?uC(e):n===`ru-RU`?dC(e):n===`zh-TW`?fC(e):pC(e)}),hC=()=>`Admin Console`,gC=()=>`Admin Console`,_C=()=>`Admin Console`,vC=()=>`Admin Console`,yC=()=>`管理控制台`,bC=()=>`管理控制台`,xC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hC(e):n===`ja-JP`?gC(e):n===`ko-KR`?_C(e):n===`ru-RU`?vC(e):n===`zh-TW`?yC(e):bC(e)}),SC=()=>`Payment Integrations`,CC=()=>`Payment Integrations`,wC=()=>`Payment Integrations`,TC=()=>`Payment Integrations`,EC=()=>`支付接入`,DC=()=>`支付接入`,OC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?SC(e):n===`ja-JP`?CC(e):n===`ko-KR`?wC(e):n===`ru-RU`?TC(e):n===`zh-TW`?EC(e):DC(e)}),kC=()=>`Payment Assets`,AC=()=>`Payment Assets`,jC=()=>`Payment Assets`,MC=()=>`Payment Assets`,NC=()=>`收款資產`,PC=()=>`收款资产`,FC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kC(e):n===`ja-JP`?AC(e):n===`ko-KR`?jC(e):n===`ru-RU`?MC(e):n===`zh-TW`?NC(e):PC(e)}),IC=()=>`Integration Guide`,LC=()=>`Integration Guide`,RC=()=>`Integration Guide`,zC=()=>`Integration Guide`,BC=()=>`接入配置`,VC=()=>`接入配置`,HC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?IC(e):n===`ja-JP`?LC(e):n===`ko-KR`?RC(e):n===`ru-RU`?zC(e):n===`zh-TW`?BC(e):VC(e)}),UC=()=>`Transactions`,WC=()=>`Transactions`,GC=()=>`Transactions`,KC=()=>`Transactions`,qC=()=>`交易`,JC=()=>`交易`,YC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?UC(e):n===`ja-JP`?WC(e):n===`ko-KR`?GC(e):n===`ru-RU`?KC(e):n===`zh-TW`?qC(e):JC(e)}),XC=()=>`Finance`,ZC=()=>`Finance`,QC=()=>`Finance`,$C=()=>`Finance`,ew=()=>`財務`,tw=()=>`财务`,nw=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?XC(e):n===`ja-JP`?ZC(e):n===`ko-KR`?QC(e):n===`ru-RU`?$C(e):n===`zh-TW`?ew(e):tw(e)}),rw=()=>`Address Management`,iw=()=>`Address Management`,aw=()=>`Address Management`,ow=()=>`Address Management`,sw=()=>`地址管理`,cw=()=>`地址管理`,lw=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rw(e):n===`ja-JP`?iw(e):n===`ko-KR`?aw(e):n===`ru-RU`?ow(e):n===`zh-TW`?sw(e):cw(e)}),uw=e=>`Last login: ${e?.time}`,dw=e=>`Last login: ${e?.time}`,fw=e=>`Last login: ${e?.time}`,pw=e=>`Last login: ${e?.time}`,mw=e=>`上次登入: ${e?.time}`,hw=e=>`上次登录: ${e?.time}`,gw=((e,t={})=>{let n=t.locale??m();return n===`en-US`?uw(e):n===`ja-JP`?dw(e):n===`ko-KR`?fw(e):n===`ru-RU`?pw(e):n===`zh-TW`?mw(e):hw(e)}),_w=()=>`Welcome to Admin Console`,vw=()=>`Welcome to Admin Console`,yw=()=>`Welcome to Admin Console`,bw=()=>`Welcome to Admin Console`,xw=()=>`歡迎使用管理後臺`,Sw=()=>`欢迎使用管理后台`,Cw=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_w(e):n===`ja-JP`?vw(e):n===`ko-KR`?yw(e):n===`ru-RU`?bw(e):n===`zh-TW`?xw(e):Sw(e)}),ww=()=>`Dashboard`,Tw=()=>`Dashboard`,Ew=()=>`Dashboard`,Dw=()=>`Dashboard`,Ow=()=>`儀表盤`,kw=()=>`仪表盘`,Aw=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ww(e):n===`ja-JP`?Tw(e):n===`ko-KR`?Ew(e):n===`ru-RU`?Dw(e):n===`zh-TW`?Ow(e):kw(e)}),jw=()=>`View asset balances, revenue trends, and recent order statuses.`,Mw=()=>`View asset balances, revenue trends, and recent order statuses.`,Nw=()=>`View asset balances, revenue trends, and recent order statuses.`,Pw=()=>`View asset balances, revenue trends, and recent order statuses.`,Fw=()=>`檢視資產、流水與最近訂單狀態。`,Iw=()=>`查看资产、流水与最近订单状态。`,Lw=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jw(e):n===`ja-JP`?Mw(e):n===`ko-KR`?Nw(e):n===`ru-RU`?Pw(e):n===`zh-TW`?Fw(e):Iw(e)}),Rw=()=>`Time`,zw=()=>`Time`,Bw=()=>`Time`,Vw=()=>`Time`,Hw=()=>`時間`,Uw=()=>`时间`,Ww=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Rw(e):n===`ja-JP`?zw(e):n===`ko-KR`?Bw(e):n===`ru-RU`?Vw(e):n===`zh-TW`?Hw(e):Uw(e)}),Gw=()=>`Order ID`,Kw=()=>`Order ID`,qw=()=>`Order ID`,Jw=()=>`Order ID`,Yw=()=>`訂單號`,Xw=()=>`订单号`,Zw=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Gw(e):n===`ja-JP`?Kw(e):n===`ko-KR`?qw(e):n===`ru-RU`?Jw(e):n===`zh-TW`?Yw(e):Xw(e)}),Qw=()=>`Wallet Address`,$w=()=>`Wallet Address`,eT=()=>`Wallet Address`,tT=()=>`Wallet Address`,nT=()=>`錢包地址`,rT=()=>`钱包地址`,iT=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Qw(e):n===`ja-JP`?$w(e):n===`ko-KR`?eT(e):n===`ru-RU`?tT(e):n===`zh-TW`?nT(e):rT(e)}),aT=()=>`Fiat Amount`,oT=()=>`Fiat Amount`,sT=()=>`Fiat Amount`,cT=()=>`Fiat Amount`,lT=()=>`法幣金額`,uT=()=>`法币金额`,dT=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?aT(e):n===`ja-JP`?oT(e):n===`ko-KR`?sT(e):n===`ru-RU`?cT(e):n===`zh-TW`?lT(e):uT(e)}),fT=()=>`Token Amount`,pT=()=>`Token Amount`,mT=()=>`Token Amount`,hT=()=>`Token Amount`,gT=()=>`代幣金額`,_T=()=>`代币金额`,vT=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fT(e):n===`ja-JP`?pT(e):n===`ko-KR`?mT(e):n===`ru-RU`?hT(e):n===`zh-TW`?gT(e):_T(e)}),yT=()=>`Chain`,bT=()=>`Chain`,xT=()=>`Chain`,ST=()=>`Chain`,CT=()=>`鏈`,wT=()=>`链`,TT=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yT(e):n===`ja-JP`?bT(e):n===`ko-KR`?xT(e):n===`ru-RU`?ST(e):n===`zh-TW`?CT(e):wT(e)}),ET=()=>`Status`,DT=()=>`Status`,OT=()=>`Status`,kT=()=>`Status`,AT=()=>`狀態`,jT=()=>`状态`,MT=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ET(e):n===`ja-JP`?DT(e):n===`ko-KR`?OT(e):n===`ru-RU`?kT(e):n===`zh-TW`?AT(e):jT(e)}),NT=()=>`Revenue Trend`,PT=()=>`Revenue Trend`,FT=()=>`Revenue Trend`,IT=()=>`Revenue Trend`,LT=()=>`流水趨勢`,RT=()=>`流水趋势`,zT=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?NT(e):n===`ja-JP`?PT(e):n===`ko-KR`?FT(e):n===`ru-RU`?IT(e):n===`zh-TW`?LT(e):RT(e)}),BT=()=>`Trend of successful and failed order amounts`,VT=()=>`Trend of successful and failed order amounts`,HT=()=>`Trend of successful and failed order amounts`,UT=()=>`Trend of successful and failed order amounts`,WT=()=>`成功與失敗訂單金額趨勢`,GT=()=>`成功与失败订单金额趋势`,KT=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?BT(e):n===`ja-JP`?VT(e):n===`ko-KR`?HT(e):n===`ru-RU`?UT(e):n===`zh-TW`?WT(e):GT(e)}),qT=()=>`Order Statistics`,JT=()=>`Order Statistics`,YT=()=>`Order Statistics`,XT=()=>`Order Statistics`,ZT=()=>`訂單統計`,QT=()=>`订单统计`,$T=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qT(e):n===`ja-JP`?JT(e):n===`ko-KR`?YT(e):n===`ru-RU`?XT(e):n===`zh-TW`?ZT(e):QT(e)}),eE=()=>`Daily order count and conversion rate trend`,tE=()=>`Daily order count and conversion rate trend`,nE=()=>`Daily order count and conversion rate trend`,rE=()=>`Daily order count and conversion rate trend`,iE=()=>`每日訂單數與成交率趨勢`,aE=()=>`每日订单数与成交率趋势`,oE=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?eE(e):n===`ja-JP`?tE(e):n===`ko-KR`?nE(e):n===`ru-RU`?rE(e):n===`zh-TW`?iE(e):aE(e)}),sE=()=>`Recent Orders`,cE=()=>`Recent Orders`,lE=()=>`Recent Orders`,uE=()=>`Recent Orders`,dE=()=>`最近訂單`,fE=()=>`最近订单`,pE=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sE(e):n===`ja-JP`?cE(e):n===`ko-KR`?lE(e):n===`ru-RU`?uE(e):n===`zh-TW`?dE(e):fE(e)}),mE=()=>`Payment status of the latest 20 orders`,hE=()=>`Payment status of the latest 20 orders`,gE=()=>`Payment status of the latest 20 orders`,_E=()=>`Payment status of the latest 20 orders`,vE=()=>`最新 20 筆訂單收款狀態`,yE=()=>`最新 20 笔订单收款状态`,bE=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mE(e):n===`ja-JP`?hE(e):n===`ko-KR`?gE(e):n===`ru-RU`?_E(e):n===`zh-TW`?vE(e):yE(e)}),xE=()=>`No recent orders`,SE=()=>`No recent orders`,CE=()=>`No recent orders`,wE=()=>`No recent orders`,TE=()=>`暫無最近訂單`,EE=()=>`暂无最近订单`,DE=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xE(e):n===`ja-JP`?SE(e):n===`ko-KR`?CE(e):n===`ru-RU`?wE(e):n===`zh-TW`?TE(e):EE(e)}),OE=()=>`Asset Trend`,kE=()=>`Asset Trend`,AE=()=>`Asset Trend`,jE=()=>`Asset Trend`,ME=()=>`資產趨勢`,NE=()=>`资产趋势`,PE=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?OE(e):n===`ja-JP`?kE(e):n===`ko-KR`?AE(e):n===`ru-RU`?jE(e):n===`zh-TW`?ME(e):NE(e)}),FE=()=>`Switch between today, 7 days, 30 days, and custom views`,IE=()=>`Switch between today, 7 days, 30 days, and custom views`,LE=()=>`Switch between today, 7 days, 30 days, and custom views`,RE=()=>`Switch between today, 7 days, 30 days, and custom views`,zE=()=>`支援今日、7 天、30 天與自定義檢視切換`,BE=()=>`支持今日、7 天、30 天与自定义视图切换`,VE=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?FE(e):n===`ja-JP`?IE(e):n===`ko-KR`?LE(e):n===`ru-RU`?RE(e):n===`zh-TW`?zE(e):BE(e)}),HE=()=>`Filter`,UE=()=>`Filter`,WE=()=>`Filter`,GE=()=>`Filter`,KE=()=>`篩選`,qE=()=>`筛选`,JE=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?HE(e):n===`ja-JP`?UE(e):n===`ko-KR`?WE(e):n===`ru-RU`?GE(e):n===`zh-TW`?KE(e):qE(e)}),YE=()=>`No data`,XE=()=>`No data`,ZE=()=>`No data`,QE=()=>`No data`,$E=()=>`無資料`,eD=()=>`无数据`,tD=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?YE(e):n===`ja-JP`?XE(e):n===`ko-KR`?ZE(e):n===`ru-RU`?QE(e):n===`zh-TW`?$E(e):eD(e)}),nD=()=>`Clear filters`,rD=()=>`Clear filters`,iD=()=>`Clear filters`,aD=()=>`Clear filters`,oD=()=>`清除篩選`,sD=()=>`清除筛选`,cD=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nD(e):n===`ja-JP`?rD(e):n===`ko-KR`?iD(e):n===`ru-RU`?aD(e):n===`zh-TW`?oD(e):sD(e)}),lD=()=>`Total Amount`,uD=()=>`Total Amount`,dD=()=>`Total Amount`,fD=()=>`Total Amount`,pD=()=>`總金額`,mD=()=>`总金额`,hD=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lD(e):n===`ja-JP`?uD(e):n===`ko-KR`?dD(e):n===`ru-RU`?fD(e):n===`zh-TW`?pD(e):mD(e)}),gD=()=>`Actual Amount`,_D=()=>`Actual Amount`,vD=()=>`Actual Amount`,yD=()=>`Actual Amount`,bD=()=>`實收金額`,xD=()=>`实收金额`,SD=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gD(e):n===`ja-JP`?_D(e):n===`ko-KR`?vD(e):n===`ru-RU`?yD(e):n===`zh-TW`?bD(e):xD(e)}),CD=()=>`Total Asset Balance (USD)`,wD=()=>`Total Asset Balance (USD)`,TD=()=>`Total Asset Balance (USD)`,ED=()=>`Total Asset Balance (USD)`,DD=()=>`總資產餘額 (USD)`,OD=()=>`总资产余额 (USD)`,kD=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?CD(e):n===`ja-JP`?wD(e):n===`ko-KR`?TD(e):n===`ru-RU`?ED(e):n===`zh-TW`?DD(e):OD(e)}),AD=()=>`Current available asset pool`,jD=()=>`Current available asset pool`,MD=()=>`Current available asset pool`,ND=()=>`Current available asset pool`,PD=()=>`當前可用資金池`,FD=()=>`当前可用资金池`,ID=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?AD(e):n===`ja-JP`?jD(e):n===`ko-KR`?MD(e):n===`ru-RU`?ND(e):n===`zh-TW`?PD(e):FD(e)}),LD=()=>`Total Volume`,RD=()=>`Total Volume`,zD=()=>`Total Volume`,BD=()=>`Total Volume`,VD=()=>`總流水`,HD=()=>`总流水`,UD=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?LD(e):n===`ja-JP`?RD(e):n===`ko-KR`?zD(e):n===`ru-RU`?BD(e):n===`zh-TW`?VD(e):HD(e)}),WD=()=>`Cumulative successful payment amount`,GD=()=>`Cumulative successful payment amount`,KD=()=>`Cumulative successful payment amount`,qD=()=>`Cumulative successful payment amount`,JD=()=>`累計成功收款金額`,YD=()=>`累计成功收款金额`,XD=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?WD(e):n===`ja-JP`?GD(e):n===`ko-KR`?KD(e):n===`ru-RU`?qD(e):n===`zh-TW`?JD(e):YD(e)}),ZD=()=>`Total Orders`,QD=()=>`Total Orders`,$D=()=>`Total Orders`,eO=()=>`Total Orders`,tO=()=>`總訂單量`,nO=()=>`总订单量`,rO=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ZD(e):n===`ja-JP`?QD(e):n===`ko-KR`?$D(e):n===`ru-RU`?eO(e):n===`zh-TW`?tO(e):nO(e)}),iO=()=>`Cumulative number of orders`,aO=()=>`Cumulative number of orders`,oO=()=>`Cumulative number of orders`,sO=()=>`Cumulative number of orders`,cO=()=>`累計訂單數量`,lO=()=>`累计订单数量`,uO=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?iO(e):n===`ja-JP`?aO(e):n===`ko-KR`?oO(e):n===`ru-RU`?sO(e):n===`zh-TW`?cO(e):lO(e)}),dO=()=>`Total Conversion Rate`,fO=()=>`Total Conversion Rate`,pO=()=>`Total Conversion Rate`,mO=()=>`Total Conversion Rate`,hO=()=>`總成交率`,gO=()=>`总成交率`,_O=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dO(e):n===`ja-JP`?fO(e):n===`ko-KR`?pO(e):n===`ru-RU`?mO(e):n===`zh-TW`?hO(e):gO(e)}),vO=()=>`Cumulative paid / total orders`,yO=()=>`Cumulative paid / total orders`,bO=()=>`Cumulative paid / total orders`,xO=()=>`Cumulative paid / total orders`,SO=()=>`累計已支付 / 總訂單`,CO=()=>`累计已支付 / 总订单`,wO=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vO(e):n===`ja-JP`?yO(e):n===`ko-KR`?bO(e):n===`ru-RU`?xO(e):n===`zh-TW`?SO(e):CO(e)}),TO=()=>`Order Count`,EO=()=>`Order Count`,DO=()=>`Order Count`,OO=()=>`Order Count`,kO=()=>`訂單總數`,AO=()=>`订单总数`,jO=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?TO(e):n===`ja-JP`?EO(e):n===`ko-KR`?DO(e):n===`ru-RU`?OO(e):n===`zh-TW`?kO(e):AO(e)}),MO=()=>`Total orders in the selected period`,NO=()=>`Total orders in the selected period`,PO=()=>`Total orders in the selected period`,FO=()=>`Total orders in the selected period`,IO=()=>`當前篩選週期內訂單總數`,LO=()=>`当前筛选周期内订单总数`,RO=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?MO(e):n===`ja-JP`?NO(e):n===`ko-KR`?PO(e):n===`ru-RU`?FO(e):n===`zh-TW`?IO(e):LO(e)}),zO=()=>`Successful Orders`,BO=()=>`Successful Orders`,VO=()=>`Successful Orders`,HO=()=>`Successful Orders`,UO=()=>`成功訂單`,WO=()=>`成功订单`,GO=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zO(e):n===`ja-JP`?BO(e):n===`ko-KR`?VO(e):n===`ru-RU`?HO(e):n===`zh-TW`?UO(e):WO(e)}),KO=()=>`Paid orders in the selected period`,qO=()=>`Paid orders in the selected period`,JO=()=>`Paid orders in the selected period`,YO=()=>`Paid orders in the selected period`,XO=()=>`當前篩選週期內已支付訂單`,ZO=()=>`当前筛选周期内已支付订单`,QO=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?KO(e):n===`ja-JP`?qO(e):n===`ko-KR`?JO(e):n===`ru-RU`?YO(e):n===`zh-TW`?XO(e):ZO(e)}),$O=()=>`Average Payment Time`,ek=()=>`Average Payment Time`,tk=()=>`Average Payment Time`,nk=()=>`Average Payment Time`,rk=()=>`平均支付耗時`,ik=()=>`平均支付耗时`,ak=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$O(e):n===`ja-JP`?ek(e):n===`ko-KR`?tk(e):n===`ru-RU`?nk(e):n===`zh-TW`?rk(e):ik(e)}),ok=()=>`Average time from order creation to payment success`,sk=()=>`Average time from order creation to payment success`,ck=()=>`Average time from order creation to payment success`,lk=()=>`Average time from order creation to payment success`,uk=()=>`訂單建立到支付成功平均耗時`,dk=()=>`订单创建到支付成功平均耗时`,fk=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ok(e):n===`ja-JP`?sk(e):n===`ko-KR`?ck(e):n===`ru-RU`?lk(e):n===`zh-TW`?uk(e):dk(e)}),pk=()=>`Expired Unpaid`,mk=()=>`Expired Unpaid`,hk=()=>`Expired Unpaid`,gk=()=>`Expired Unpaid`,_k=()=>`超時未支付`,vk=()=>`超时未支付`,yk=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pk(e):n===`ja-JP`?mk(e):n===`ko-KR`?hk(e):n===`ru-RU`?gk(e):n===`zh-TW`?_k(e):vk(e)}),bk=()=>`Expired and unpaid orders`,xk=()=>`Expired and unpaid orders`,Sk=()=>`Expired and unpaid orders`,Ck=()=>`Expired and unpaid orders`,wk=()=>`已過期且未支付訂單`,Tk=()=>`已过期且未支付订单`,Ek=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bk(e):n===`ja-JP`?xk(e):n===`ko-KR`?Sk(e):n===`ru-RU`?Ck(e):n===`zh-TW`?wk(e):Tk(e)}),Dk=()=>`Last 7 Days Volume`,Ok=()=>`Last 7 Days Volume`,kk=()=>`Last 7 Days Volume`,Ak=()=>`Last 7 Days Volume`,jk=()=>`最近7日流水`,Mk=()=>`最近7日流水`,Nk=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Dk(e):n===`ja-JP`?Ok(e):n===`ko-KR`?kk(e):n===`ru-RU`?Ak(e):n===`zh-TW`?jk(e):Mk(e)}),Pk=()=>`Cumulative payments in the last 7 days`,Fk=()=>`Cumulative payments in the last 7 days`,Ik=()=>`Cumulative payments in the last 7 days`,Lk=()=>`Cumulative payments in the last 7 days`,Rk=()=>`近 7 天累計收款`,zk=()=>`近 7 天累计收款`,Bk=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Pk(e):n===`ja-JP`?Fk(e):n===`ko-KR`?Ik(e):n===`ru-RU`?Lk(e):n===`zh-TW`?Rk(e):zk(e)}),Vk=()=>`Active Address Count`,Hk=()=>`Active Address Count`,Uk=()=>`Active Address Count`,Wk=()=>`Active Address Count`,Gk=()=>`活躍地址數量`,Kk=()=>`活跃地址数量`,qk=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Vk(e):n===`ja-JP`?Hk(e):n===`ko-KR`?Uk(e):n===`ru-RU`?Wk(e):n===`zh-TW`?Gk(e):Kk(e)}),Jk=()=>`Addresses with transactions in the last 24 hours`,Yk=()=>`Addresses with transactions in the last 24 hours`,Xk=()=>`Addresses with transactions in the last 24 hours`,Zk=()=>`Addresses with transactions in the last 24 hours`,Qk=()=>`近 24 小時有流水地址`,$k=()=>`近 24 小时有流水地址`,eA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Jk(e):n===`ja-JP`?Yk(e):n===`ko-KR`?Xk(e):n===`ru-RU`?Zk(e):n===`zh-TW`?Qk(e):$k(e)}),tA=()=>`Online Chain Count`,nA=()=>`Online Chain Count`,rA=()=>`Online Chain Count`,iA=()=>`Online Chain Count`,aA=()=>`線上鏈數量`,oA=()=>`在线链数量`,sA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tA(e):n===`ja-JP`?nA(e):n===`ko-KR`?rA(e):n===`ru-RU`?iA(e):n===`zh-TW`?aA(e):oA(e)}),cA=()=>`Currently available payment networks`,lA=()=>`Currently available payment networks`,uA=()=>`Currently available payment networks`,dA=()=>`Currently available payment networks`,fA=()=>`當前可用收款網路`,pA=()=>`当前可用收款网络`,mA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cA(e):n===`ja-JP`?lA(e):n===`ko-KR`?uA(e):n===`ru-RU`?dA(e):n===`zh-TW`?fA(e):pA(e)}),hA=()=>`Order Success Rate`,gA=()=>`Order Success Rate`,_A=()=>`Order Success Rate`,vA=()=>`Order Success Rate`,yA=()=>`訂單成功率`,bA=()=>`订单成功率`,xA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hA(e):n===`ja-JP`?gA(e):n===`ko-KR`?_A(e):n===`ru-RU`?vA(e):n===`zh-TW`?yA(e):bA(e)}),SA=()=>`Conversion rate in the selected period`,CA=()=>`Conversion rate in the selected period`,wA=()=>`Conversion rate in the selected period`,TA=()=>`Conversion rate in the selected period`,EA=()=>`當前篩選週期內成交率`,DA=()=>`当前筛选周期内成交率`,OA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?SA(e):n===`ja-JP`?CA(e):n===`ko-KR`?wA(e):n===`ru-RU`?TA(e):n===`zh-TW`?EA(e):DA(e)}),kA=()=>`RPC Live Monitor`,AA=()=>`RPC Live Monitor`,jA=()=>`RPC Live Monitor`,MA=()=>`RPC Live Monitor`,NA=()=>`RPC 即時監控`,PA=()=>`RPC 实时监控`,FA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kA(e):n===`ja-JP`?AA(e):n===`ko-KR`?jA(e):n===`ru-RU`?MA(e):n===`zh-TW`?NA(e):PA(e)}),IA=()=>`Real-time chain sync, RPC success rate, and runtime status.`,LA=()=>`Real-time chain sync, RPC success rate, and runtime status.`,RA=()=>`Real-time chain sync, RPC success rate, and runtime status.`,zA=()=>`Real-time chain sync, RPC success rate, and runtime status.`,BA=()=>`鏈上同步、RPC 成功率與執行狀態即時更新`,VA=()=>`链上同步、RPC 成功率与运行状态实时更新`,HA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?IA(e):n===`ja-JP`?LA(e):n===`ko-KR`?RA(e):n===`ru-RU`?zA(e):n===`zh-TW`?BA(e):VA(e)}),UA=()=>`Live`,WA=()=>`Live`,GA=()=>`Live`,KA=()=>`Live`,qA=()=>`即時連線`,JA=()=>`实时连接`,YA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?UA(e):n===`ja-JP`?WA(e):n===`ko-KR`?GA(e):n===`ru-RU`?KA(e):n===`zh-TW`?qA(e):JA(e)}),XA=()=>`Connecting`,ZA=()=>`Connecting`,QA=()=>`Connecting`,$A=()=>`Connecting`,ej=()=>`連線中`,tj=()=>`连接中`,nj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?XA(e):n===`ja-JP`?ZA(e):n===`ko-KR`?QA(e):n===`ru-RU`?$A(e):n===`zh-TW`?ej(e):tj(e)}),rj=()=>`Reconnecting`,ij=()=>`Reconnecting`,aj=()=>`Reconnecting`,oj=()=>`Reconnecting`,sj=()=>`重新連線中`,cj=()=>`重连中`,lj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rj(e):n===`ja-JP`?ij(e):n===`ko-KR`?aj(e):n===`ru-RU`?oj(e):n===`zh-TW`?sj(e):cj(e)}),uj=()=>`RPC stats unavailable`,dj=()=>`RPC stats unavailable`,fj=()=>`RPC stats unavailable`,pj=()=>`RPC stats unavailable`,mj=()=>`RPC 統計暫不可用`,hj=()=>`RPC 统计暂不可用`,gj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?uj(e):n===`ja-JP`?dj(e):n===`ko-KR`?fj(e):n===`ru-RU`?pj(e):n===`zh-TW`?mj(e):hj(e)}),_j=()=>`RPC Success Rate`,vj=()=>`RPC Success Rate`,yj=()=>`RPC Success Rate`,bj=()=>`RPC Success Rate`,xj=()=>`RPC 成功率`,Sj=()=>`RPC 成功率`,Cj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_j(e):n===`ja-JP`?vj(e):n===`ko-KR`?yj(e):n===`ru-RU`?bj(e):n===`zh-TW`?xj(e):Sj(e)}),wj=()=>`Active Links`,Tj=()=>`Active Links`,Ej=()=>`Active Links`,Dj=()=>`Active Links`,Oj=()=>`活躍鏈路`,kj=()=>`活跃链路`,Aj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wj(e):n===`ja-JP`?Tj(e):n===`ko-KR`?Ej(e):n===`ru-RU`?Dj(e):n===`zh-TW`?Oj(e):kj(e)}),jj=()=>`Latest Block`,Mj=()=>`Latest Block`,Nj=()=>`Latest Block`,Pj=()=>`Latest Block`,Fj=()=>`最新區塊`,Ij=()=>`最新区块`,Lj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jj(e):n===`ja-JP`?Mj(e):n===`ko-KR`?Nj(e):n===`ru-RU`?Pj(e):n===`zh-TW`?Fj(e):Ij(e)}),Rj=()=>`Needs Attention`,zj=()=>`Needs Attention`,Bj=()=>`Needs Attention`,Vj=()=>`Needs Attention`,Hj=()=>`需關注鏈路`,Uj=()=>`需关注链路`,Wj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Rj(e):n===`ja-JP`?zj(e):n===`ko-KR`?Bj(e):n===`ru-RU`?Vj(e):n===`zh-TW`?Hj(e):Uj(e)}),Gj=()=>`Chain Runtime`,Kj=()=>`Chain Runtime`,qj=()=>`Chain Runtime`,Jj=()=>`Chain Runtime`,Yj=()=>`鏈執行狀態`,Xj=()=>`链运行状态`,Zj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Gj(e):n===`ja-JP`?Kj(e):n===`ko-KR`?qj(e):n===`ru-RU`?Jj(e):n===`zh-TW`?Yj(e):Xj(e)}),Qj=e=>`Updated ${e?.time}`,$j=e=>`Updated ${e?.time}`,eM=e=>`Updated ${e?.time}`,tM=e=>`Updated ${e?.time}`,nM=e=>`更新於 ${e?.time}`,rM=e=>`更新于 ${e?.time}`,iM=((e,t={})=>{let n=t.locale??m();return n===`en-US`?Qj(e):n===`ja-JP`?$j(e):n===`ko-KR`?eM(e):n===`ru-RU`?tM(e):n===`zh-TW`?nM(e):rM(e)}),aM=()=>`No RPC runtime data`,oM=()=>`No RPC runtime data`,sM=()=>`No RPC runtime data`,cM=()=>`No RPC runtime data`,lM=()=>`暫無 RPC 執行資料`,uM=()=>`暂无 RPC 运行数据`,dM=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?aM(e):n===`ja-JP`?oM(e):n===`ko-KR`?sM(e):n===`ru-RU`?cM(e):n===`zh-TW`?lM(e):uM(e)}),fM=()=>`OK`,pM=()=>`OK`,mM=()=>`OK`,hM=()=>`OK`,gM=()=>`正常`,_M=()=>`正常`,vM=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fM(e):n===`ja-JP`?pM(e):n===`ko-KR`?mM(e):n===`ru-RU`?hM(e):n===`zh-TW`?gM(e):_M(e)}),yM=()=>`Warning`,bM=()=>`Warning`,xM=()=>`Warning`,SM=()=>`Warning`,CM=()=>`波動`,wM=()=>`波动`,TM=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yM(e):n===`ja-JP`?bM(e):n===`ko-KR`?xM(e):n===`ru-RU`?SM(e):n===`zh-TW`?CM(e):wM(e)}),EM=()=>`Down`,DM=()=>`Down`,OM=()=>`Down`,kM=()=>`Down`,AM=()=>`異常`,jM=()=>`异常`,MM=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?EM(e):n===`ja-JP`?DM(e):n===`ko-KR`?OM(e):n===`ru-RU`?kM(e):n===`zh-TW`?AM(e):jM(e)}),NM=()=>`Unknown`,PM=()=>`Unknown`,FM=()=>`Unknown`,IM=()=>`Unknown`,LM=()=>`未知`,RM=()=>`未知`,zM=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?NM(e):n===`ja-JP`?PM(e):n===`ko-KR`?FM(e):n===`ru-RU`?IM(e):n===`zh-TW`?LM(e):RM(e)}),BM=()=>`Disabled`,VM=()=>`Disabled`,HM=()=>`Disabled`,UM=()=>`Disabled`,WM=()=>`停用`,GM=()=>`停用`,KM=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?BM(e):n===`ja-JP`?VM(e):n===`ko-KR`?HM(e):n===`ru-RU`?UM(e):n===`zh-TW`?WM(e):GM(e)}),qM=()=>`Success Rate`,JM=()=>`Success Rate`,YM=()=>`Success Rate`,XM=()=>`Success Rate`,ZM=()=>`成功率`,QM=()=>`成功率`,$M=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qM(e):n===`ja-JP`?JM(e):n===`ko-KR`?YM(e):n===`ru-RU`?XM(e):n===`zh-TW`?ZM(e):QM(e)}),eN=()=>`Block Height`,tN=()=>`Block Height`,nN=()=>`Block Height`,rN=()=>`Block Height`,iN=()=>`區塊高度`,aN=()=>`区块高度`,oN=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?eN(e):n===`ja-JP`?tN(e):n===`ko-KR`?nN(e):n===`ru-RU`?rN(e):n===`zh-TW`?iN(e):aN(e)}),sN=e=>`Synced ${e?.time}`,cN=e=>`Synced ${e?.time}`,lN=e=>`Synced ${e?.time}`,uN=e=>`Synced ${e?.time}`,dN=e=>`同步於 ${e?.time}`,fN=e=>`同步于 ${e?.time}`,pN=((e,t={})=>{let n=t.locale??m();return n===`en-US`?sN(e):n===`ja-JP`?cN(e):n===`ko-KR`?lN(e):n===`ru-RU`?uN(e):n===`zh-TW`?dN(e):fN(e)}),mN=()=>`Total Amount`,hN=()=>`Total Amount`,gN=()=>`Total Amount`,_N=()=>`Total Amount`,vN=()=>`總金額`,yN=()=>`总金额`,bN=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mN(e):n===`ja-JP`?hN(e):n===`ko-KR`?gN(e):n===`ru-RU`?_N(e):n===`zh-TW`?vN(e):yN(e)}),xN=()=>`Actual Amount`,SN=()=>`Actual Amount`,CN=()=>`Actual Amount`,wN=()=>`Actual Amount`,TN=()=>`實收金額`,EN=()=>`实收金额`,DN=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xN(e):n===`ja-JP`?SN(e):n===`ko-KR`?CN(e):n===`ru-RU`?wN(e):n===`zh-TW`?TN(e):EN(e)}),ON=()=>`Order Count`,kN=()=>`Order Count`,AN=()=>`Order Count`,jN=()=>`Order Count`,MN=()=>`訂單數`,NN=()=>`订单数`,PN=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ON(e):n===`ja-JP`?kN(e):n===`ko-KR`?AN(e):n===`ru-RU`?jN(e):n===`zh-TW`?MN(e):NN(e)}),FN=()=>`Successful Orders`,IN=()=>`Successful Orders`,LN=()=>`Successful Orders`,RN=()=>`Successful Orders`,zN=()=>`成功訂單`,BN=()=>`成功订单`,VN=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?FN(e):n===`ja-JP`?IN(e):n===`ko-KR`?LN(e):n===`ru-RU`?RN(e):n===`zh-TW`?zN(e):BN(e)}),HN=()=>`Today`,UN=()=>`Today`,WN=()=>`Today`,GN=()=>`Today`,KN=()=>`今日`,qN=()=>`今日`,JN=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?HN(e):n===`ja-JP`?UN(e):n===`ko-KR`?WN(e):n===`ru-RU`?GN(e):n===`zh-TW`?KN(e):qN(e)}),YN=()=>`7 days`,XN=()=>`7 days`,ZN=()=>`7 days`,QN=()=>`7 days`,$N=()=>`7天`,eP=()=>`7天`,tP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?YN(e):n===`ja-JP`?XN(e):n===`ko-KR`?ZN(e):n===`ru-RU`?QN(e):n===`zh-TW`?$N(e):eP(e)}),nP=()=>`30 days`,rP=()=>`30 days`,iP=()=>`30 days`,aP=()=>`30 days`,oP=()=>`30天`,sP=()=>`30天`,cP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nP(e):n===`ja-JP`?rP(e):n===`ko-KR`?iP(e):n===`ru-RU`?aP(e):n===`zh-TW`?oP(e):sP(e)}),lP=()=>`Custom`,uP=()=>`Custom`,dP=()=>`Custom`,fP=()=>`Custom`,pP=()=>`自定義`,mP=()=>`自定义`,hP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lP(e):n===`ja-JP`?uP(e):n===`ko-KR`?dP(e):n===`ru-RU`?fP(e):n===`zh-TW`?pP(e):mP(e)}),gP=()=>`Close Order`,_P=()=>`Close Order`,vP=()=>`Close Order`,yP=()=>`Close Order`,bP=()=>`關閉訂單`,xP=()=>`关闭订单`,SP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gP(e):n===`ja-JP`?_P(e):n===`ko-KR`?vP(e):n===`ru-RU`?yP(e):n===`zh-TW`?bP(e):xP(e)}),CP=()=>`Resend Callback`,wP=()=>`Resend Callback`,TP=()=>`Resend Callback`,EP=()=>`Resend Callback`,DP=()=>`回呼重發`,OP=()=>`回调重发`,kP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?CP(e):n===`ja-JP`?wP(e):n===`ko-KR`?TP(e):n===`ru-RU`?EP(e):n===`zh-TW`?DP(e):OP(e)}),AP=()=>`Please enter the block transaction ID`,jP=()=>`Please enter the block transaction ID`,MP=()=>`Please enter the block transaction ID`,NP=()=>`Please enter the block transaction ID`,PP=()=>`請輸入區塊交易 ID`,FP=()=>`请输入区块交易 ID`,IP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?AP(e):n===`ja-JP`?jP(e):n===`ko-KR`?MP(e):n===`ru-RU`?NP(e):n===`zh-TW`?PP(e):FP(e)}),LP=()=>`Order marked as paid`,RP=()=>`Order marked as paid`,zP=()=>`Order marked as paid`,BP=()=>`Order marked as paid`,VP=()=>`訂單已標記為已支付`,HP=()=>`订单已标记为已支付`,UP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?LP(e):n===`ja-JP`?RP(e):n===`ko-KR`?zP(e):n===`ru-RU`?BP(e):n===`zh-TW`?VP(e):HP(e)}),WP=()=>`Order export failed`,GP=()=>`Order export failed`,KP=()=>`Order export failed`,qP=()=>`Order export failed`,JP=()=>`訂單匯出失敗`,YP=()=>`订单导出失败`,XP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?WP(e):n===`ja-JP`?GP(e):n===`ko-KR`?KP(e):n===`ru-RU`?qP(e):n===`zh-TW`?JP(e):YP(e)}),ZP=()=>`Order export succeeded`,QP=()=>`Order export succeeded`,$P=()=>`Order export succeeded`,eF=()=>`Order export succeeded`,tF=()=>`訂單匯出成功`,nF=()=>`订单导出成功`,rF=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ZP(e):n===`ja-JP`?QP(e):n===`ko-KR`?$P(e):n===`ru-RU`?eF(e):n===`zh-TW`?tF(e):nF(e)}),iF=()=>`Exporting...`,aF=()=>`Exporting...`,oF=()=>`Exporting...`,sF=()=>`Exporting...`,cF=()=>`匯出中...`,lF=()=>`导出中...`,uF=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?iF(e):n===`ja-JP`?aF(e):n===`ko-KR`?oF(e):n===`ru-RU`?sF(e):n===`zh-TW`?cF(e):lF(e)}),dF=()=>`Export Orders`,fF=()=>`Export Orders`,pF=()=>`Export Orders`,mF=()=>`Export Orders`,hF=()=>`匯出訂單`,gF=()=>`导出订单`,_F=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dF(e):n===`ja-JP`?fF(e):n===`ko-KR`?pF(e):n===`ru-RU`?mF(e):n===`zh-TW`?hF(e):gF(e)}),vF=()=>`Search orders, filter by status, and perform manual payment / close / resend callback actions.`,yF=()=>`Search orders, filter by status, and perform manual payment / close / resend callback actions.`,bF=()=>`Search orders, filter by status, and perform manual payment / close / resend callback actions.`,xF=()=>`Search orders, filter by status, and perform manual payment / close / resend callback actions.`,SF=()=>`搜尋訂單、篩選狀態與執行補單/關閉/回呼操作。`,CF=()=>`搜索订单、筛选状态并执行补单 / 关闭 / 回调操作。`,wF=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vF(e):n===`ja-JP`?yF(e):n===`ko-KR`?bF(e):n===`ru-RU`?xF(e):n===`zh-TW`?SF(e):CF(e)}),TF=()=>`Order Management`,EF=()=>`Order Management`,DF=()=>`Order Management`,OF=()=>`Order Management`,kF=()=>`訂單管理`,AF=()=>`订单管理`,jF=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?TF(e):n===`ja-JP`?EF(e):n===`ko-KR`?DF(e):n===`ru-RU`?OF(e):n===`zh-TW`?kF(e):AF(e)}),MF=()=>`Details`,NF=()=>`Details`,PF=()=>`Details`,FF=()=>`Details`,IF=()=>`詳情`,LF=()=>`详情`,RF=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?MF(e):n===`ja-JP`?NF(e):n===`ko-KR`?PF(e):n===`ru-RU`?FF(e):n===`zh-TW`?IF(e):LF(e)}),zF=()=>`Manual Mark Paid`,BF=()=>`Manual Mark Paid`,VF=()=>`Manual Mark Paid`,HF=()=>`Manual Mark Paid`,UF=()=>`補單`,WF=()=>`补单`,GF=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zF(e):n===`ja-JP`?BF(e):n===`ko-KR`?VF(e):n===`ru-RU`?HF(e):n===`zh-TW`?UF(e):WF(e)}),KF=()=>`Confirm`,qF=()=>`Confirm`,JF=()=>`Confirm`,YF=()=>`Confirm`,XF=()=>`確認`,ZF=()=>`确认`,QF=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?KF(e):n===`ja-JP`?qF(e):n===`ko-KR`?JF(e):n===`ru-RU`?YF(e):n===`zh-TW`?XF(e):ZF(e)}),$F=e=>`You are about to perform the “${e?.action}” action on order ${e?.id}.`,eI=e=>`You are about to perform the “${e?.action}” action on order ${e?.id}.`,tI=e=>`You are about to perform the “${e?.action}” action on order ${e?.id}.`,nI=e=>`You are about to perform the “${e?.action}” action on order ${e?.id}.`,rI=e=>`即將對訂單 ${e?.id} 執行“${e?.action}”操作。`,iI=e=>`即将对订单 ${e?.id} 执行“${e?.action}”操作。`,aI=((e,t={})=>{let n=t.locale??m();return n===`en-US`?$F(e):n===`ja-JP`?eI(e):n===`ko-KR`?tI(e):n===`ru-RU`?nI(e):n===`zh-TW`?rI(e):iI(e)}),oI=e=>`Confirm ${e?.action}`,sI=e=>`Confirm ${e?.action}`,cI=e=>`Confirm ${e?.action}`,lI=e=>`Confirm ${e?.action}`,uI=e=>`${e?.action}確認`,dI=e=>`${e?.action}确认`,fI=((e,t={})=>{let n=t.locale??m();return n===`en-US`?oI(e):n===`ja-JP`?sI(e):n===`ko-KR`?cI(e):n===`ru-RU`?lI(e):n===`zh-TW`?uI(e):dI(e)}),pI=()=>`Mark as Paid`,mI=()=>`Mark as Paid`,hI=()=>`Mark as Paid`,gI=()=>`Mark as Paid`,_I=()=>`標記已支付`,vI=()=>`标记已支付`,yI=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pI(e):n===`ja-JP`?mI(e):n===`ko-KR`?hI(e):n===`ru-RU`?gI(e):n===`zh-TW`?_I(e):vI(e)}),bI=e=>`Fill in the on-chain transaction ID for order ${e?.id}.`,xI=e=>`Fill in the on-chain transaction ID for order ${e?.id}.`,SI=e=>`Fill in the on-chain transaction ID for order ${e?.id}.`,CI=e=>`Fill in the on-chain transaction ID for order ${e?.id}.`,wI=e=>`為訂單 ${e?.id} 填寫鏈上交易 ID。`,TI=e=>`为订单 ${e?.id} 填写链上交易 ID。`,EI=((e,t={})=>{let n=t.locale??m();return n===`en-US`?bI(e):n===`ja-JP`?xI(e):n===`ko-KR`?SI(e):n===`ru-RU`?CI(e):n===`zh-TW`?wI(e):TI(e)}),DI=()=>`Block Transaction ID`,OI=()=>`Block Transaction ID`,kI=()=>`Block Transaction ID`,AI=()=>`Block Transaction ID`,jI=()=>`區塊交易 ID`,MI=()=>`区块交易 ID`,NI=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?DI(e):n===`ja-JP`?OI(e):n===`ko-KR`?kI(e):n===`ru-RU`?AI(e):n===`zh-TW`?jI(e):MI(e)}),PI=()=>`Submitting...`,FI=()=>`Submitting...`,II=()=>`Submitting...`,LI=()=>`Submitting...`,RI=()=>`提交中...`,zI=()=>`提交中...`,BI=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?PI(e):n===`ja-JP`?FI(e):n===`ko-KR`?II(e):n===`ru-RU`?LI(e):n===`zh-TW`?RI(e):zI(e)}),VI=()=>`Confirm Manual Mark Paid`,HI=()=>`Confirm Manual Mark Paid`,UI=()=>`Confirm Manual Mark Paid`,WI=()=>`Confirm Manual Mark Paid`,GI=()=>`確認補單`,KI=()=>`确认补单`,qI=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?VI(e):n===`ja-JP`?HI(e):n===`ko-KR`?UI(e):n===`ru-RU`?WI(e):n===`zh-TW`?GI(e):KI(e)}),JI=()=>`Status`,YI=()=>`Status`,XI=()=>`Status`,ZI=()=>`Status`,QI=()=>`狀態`,$I=()=>`状态`,eL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?JI(e):n===`ja-JP`?YI(e):n===`ko-KR`?XI(e):n===`ru-RU`?ZI(e):n===`zh-TW`?QI(e):$I(e)}),tL=()=>`Chain`,nL=()=>`Chain`,rL=()=>`Chain`,iL=()=>`Chain`,aL=()=>`鏈`,oL=()=>`链`,sL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tL(e):n===`ja-JP`?nL(e):n===`ko-KR`?rL(e):n===`ru-RU`?iL(e):n===`zh-TW`?aL(e):oL(e)}),cL=()=>`Search order ID / merchant order ID...`,lL=()=>`Search order ID / merchant order ID...`,uL=()=>`Search order ID / merchant order ID...`,dL=()=>`Search order ID / merchant order ID...`,fL=()=>`搜尋訂單號 / 商戶訂單號...`,pL=()=>`搜索订单号 / 商户订单号...`,mL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cL(e):n===`ja-JP`?lL(e):n===`ko-KR`?uL(e):n===`ru-RU`?dL(e):n===`zh-TW`?fL(e):pL(e)}),hL=()=>`No order data`,gL=()=>`No order data`,_L=()=>`No order data`,vL=()=>`No order data`,yL=()=>`暫無訂單資料`,bL=()=>`暂无订单数据`,xL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hL(e):n===`ja-JP`?gL(e):n===`ko-KR`?_L(e):n===`ru-RU`?vL(e):n===`zh-TW`?yL(e):bL(e)}),SL=()=>`Status`,CL=()=>`Status`,wL=()=>`Status`,TL=()=>`Status`,EL=()=>`狀態`,DL=()=>`状态`,OL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?SL(e):n===`ja-JP`?CL(e):n===`ko-KR`?wL(e):n===`ru-RU`?TL(e):n===`zh-TW`?EL(e):DL(e)}),kL=()=>`Merchant Order ID`,AL=()=>`Merchant Order ID`,jL=()=>`Merchant Order ID`,ML=()=>`Merchant Order ID`,NL=()=>`商戶訂單號`,PL=()=>`商户订单号`,FL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kL(e):n===`ja-JP`?AL(e):n===`ko-KR`?jL(e):n===`ru-RU`?ML(e):n===`zh-TW`?NL(e):PL(e)}),IL=()=>`Order Name`,LL=()=>`Order Name`,RL=()=>`Order Name`,zL=()=>`Order Name`,BL=()=>`訂單名稱`,VL=()=>`订单名称`,HL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?IL(e):n===`ja-JP`?LL(e):n===`ko-KR`?RL(e):n===`ru-RU`?zL(e):n===`zh-TW`?BL(e):VL(e)}),UL=()=>`Fiat Amount`,WL=()=>`Fiat Amount`,GL=()=>`Fiat Amount`,KL=()=>`Fiat Amount`,qL=()=>`法幣金額`,JL=()=>`法币金额`,YL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?UL(e):n===`ja-JP`?WL(e):n===`ko-KR`?GL(e):n===`ru-RU`?KL(e):n===`zh-TW`?qL(e):JL(e)}),XL=()=>`Token Amount`,ZL=()=>`Token Amount`,QL=()=>`Token Amount`,$L=()=>`Token Amount`,eR=()=>`代幣金額`,tR=()=>`代币金额`,nR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?XL(e):n===`ja-JP`?ZL(e):n===`ko-KR`?QL(e):n===`ru-RU`?$L(e):n===`zh-TW`?eR(e):tR(e)}),rR=()=>`Chain`,iR=()=>`Chain`,aR=()=>`Chain`,oR=()=>`Chain`,sR=()=>`鏈`,cR=()=>`链`,lR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rR(e):n===`ja-JP`?iR(e):n===`ko-KR`?aR(e):n===`ru-RU`?oR(e):n===`zh-TW`?sR(e):cR(e)}),uR=()=>`Address`,dR=()=>`Address`,fR=()=>`Address`,pR=()=>`Address`,mR=()=>`地址`,hR=()=>`地址`,gR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?uR(e):n===`ja-JP`?dR(e):n===`ko-KR`?fR(e):n===`ru-RU`?pR(e):n===`zh-TW`?mR(e):hR(e)}),_R=()=>`Created At`,vR=()=>`Created At`,yR=()=>`Created At`,bR=()=>`Created At`,xR=()=>`建立時間`,SR=()=>`创建时间`,CR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_R(e):n===`ja-JP`?vR(e):n===`ko-KR`?yR(e):n===`ru-RU`?bR(e):n===`zh-TW`?xR(e):SR(e)}),wR=()=>`Updated At`,TR=()=>`Updated At`,ER=()=>`Updated At`,DR=()=>`Updated At`,OR=()=>`更新時間`,kR=()=>`更新时间`,AR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wR(e):n===`ja-JP`?TR(e):n===`ko-KR`?ER(e):n===`ru-RU`?DR(e):n===`zh-TW`?OR(e):kR(e)}),jR=()=>`On-chain Transaction ID`,MR=()=>`On-chain Transaction ID`,NR=()=>`On-chain Transaction ID`,PR=()=>`On-chain Transaction ID`,FR=()=>`鏈上交易 ID`,IR=()=>`链上交易 ID`,LR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jR(e):n===`ja-JP`?MR(e):n===`ko-KR`?NR(e):n===`ru-RU`?PR(e):n===`zh-TW`?FR(e):IR(e)}),RR=()=>`Assigned Address`,zR=()=>`Assigned Address`,BR=()=>`Assigned Address`,VR=()=>`Assigned Address`,HR=()=>`已分配地址`,UR=()=>`已分配地址`,WR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?RR(e):n===`ja-JP`?zR(e):n===`ko-KR`?BR(e):n===`ru-RU`?VR(e):n===`zh-TW`?HR(e):UR(e)}),GR=()=>`Callback Status`,KR=()=>`Callback Status`,qR=()=>`Callback Status`,JR=()=>`Callback Status`,YR=()=>`回呼狀態`,XR=()=>`回调状态`,ZR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?GR(e):n===`ja-JP`?KR(e):n===`ko-KR`?qR(e):n===`ru-RU`?JR(e):n===`zh-TW`?YR(e):XR(e)}),QR=()=>`Callback Count`,$R=()=>`Callback Count`,ez=()=>`Callback Count`,tz=()=>`Callback Count`,nz=()=>`回呼次數`,rz=()=>`回调次数`,iz=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?QR(e):n===`ja-JP`?$R(e):n===`ko-KR`?ez(e):n===`ru-RU`?tz(e):n===`zh-TW`?nz(e):rz(e)}),az=()=>`Notify URL`,oz=()=>`Notify URL`,sz=()=>`Notify URL`,cz=()=>`Notify URL`,lz=()=>`通知地址`,uz=()=>`通知地址`,dz=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?az(e):n===`ja-JP`?oz(e):n===`ko-KR`?sz(e):n===`ru-RU`?cz(e):n===`zh-TW`?lz(e):uz(e)}),fz=()=>`Redirect URL`,pz=()=>`Redirect URL`,mz=()=>`Redirect URL`,hz=()=>`Redirect URL`,gz=()=>`跳轉地址`,_z=()=>`跳转地址`,vz=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fz(e):n===`ja-JP`?pz(e):n===`ko-KR`?mz(e):n===`ru-RU`?hz(e):n===`zh-TW`?gz(e):_z(e)}),yz=()=>`Actions`,bz=()=>`Actions`,xz=()=>`Actions`,Sz=()=>`Actions`,Cz=()=>`操作`,wz=()=>`操作`,Tz=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yz(e):n===`ja-JP`?bz(e):n===`ko-KR`?xz(e):n===`ru-RU`?Sz(e):n===`zh-TW`?Cz(e):wz(e)}),Ez=()=>`Yes`,Dz=()=>`Yes`,Oz=()=>`Yes`,kz=()=>`Yes`,Az=()=>`是`,jz=()=>`是`,Mz=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ez(e):n===`ja-JP`?Dz(e):n===`ko-KR`?Oz(e):n===`ru-RU`?kz(e):n===`zh-TW`?Az(e):jz(e)}),Nz=()=>`No`,Pz=()=>`No`,Fz=()=>`No`,Iz=()=>`No`,Lz=()=>`否`,Rz=()=>`否`,zz=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Nz(e):n===`ja-JP`?Pz(e):n===`ko-KR`?Fz(e):n===`ru-RU`?Iz(e):n===`zh-TW`?Lz(e):Rz(e)}),Bz=()=>`Parent order callback succeeded`,Vz=()=>`Parent order callback succeeded`,Hz=()=>`Parent order callback succeeded`,Uz=()=>`Parent order callback succeeded`,Wz=()=>`父訂單回呼成功`,Gz=()=>`父订单回调成功`,Kz=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Bz(e):n===`ja-JP`?Vz(e):n===`ko-KR`?Hz(e):n===`ru-RU`?Uz(e):n===`zh-TW`?Wz(e):Gz(e)}),qz=()=>`Child order delegates callback to parent`,Jz=()=>`Child order delegates callback to parent`,Yz=()=>`Child order delegates callback to parent`,Xz=()=>`Child order delegates callback to parent`,Zz=()=>`子訂單不參與回呼,交由父訂單回呼`,Qz=()=>`子订单不参与回调,交由父订单回调`,$z=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qz(e):n===`ja-JP`?Jz(e):n===`ko-KR`?Yz(e):n===`ru-RU`?Xz(e):n===`zh-TW`?Zz(e):Qz(e)}),eB=()=>`Not Called Back / Failed`,tB=()=>`Not Called Back / Failed`,nB=()=>`Not Called Back / Failed`,rB=()=>`Not Called Back / Failed`,iB=()=>`未回呼/失敗`,aB=()=>`未回调 / 失败`,oB=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?eB(e):n===`ja-JP`?tB(e):n===`ko-KR`?nB(e):n===`ru-RU`?rB(e):n===`zh-TW`?iB(e):aB(e)}),sB=()=>`View Details`,cB=()=>`View Details`,lB=()=>`View Details`,uB=()=>`View Details`,dB=()=>`檢視詳情`,fB=()=>`查看详情`,pB=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sB(e):n===`ja-JP`?cB(e):n===`ko-KR`?lB(e):n===`ru-RU`?uB(e):n===`zh-TW`?dB(e):fB(e)}),mB=()=>`Manual Mark Paid`,hB=()=>`Manual Mark Paid`,gB=()=>`Manual Mark Paid`,_B=()=>`Manual Mark Paid`,vB=()=>`手動補單`,yB=()=>`手动补单`,bB=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mB(e):n===`ja-JP`?hB(e):n===`ko-KR`?gB(e):n===`ru-RU`?_B(e):n===`zh-TW`?vB(e):yB(e)}),xB=()=>`Open menu`,SB=()=>`Open menu`,CB=()=>`Open menu`,wB=()=>`Open menu`,TB=()=>`開啟選單`,EB=()=>`开启选单`,DB=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xB(e):n===`ja-JP`?SB(e):n===`ko-KR`?CB(e):n===`ru-RU`?wB(e):n===`zh-TW`?TB(e):EB(e)}),OB=()=>`Merchant Order ID`,kB=()=>`Merchant Order ID`,AB=()=>`Merchant Order ID`,jB=()=>`Merchant Order ID`,MB=()=>`商戶訂單號`,NB=()=>`商户订单号`,PB=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?OB(e):n===`ja-JP`?kB(e):n===`ko-KR`?AB(e):n===`ru-RU`?jB(e):n===`zh-TW`?MB(e):NB(e)}),FB=()=>`Order Name`,IB=()=>`Order Name`,LB=()=>`Order Name`,RB=()=>`Order Name`,zB=()=>`訂單名稱`,BB=()=>`订单名称`,VB=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?FB(e):n===`ja-JP`?IB(e):n===`ko-KR`?LB(e):n===`ru-RU`?RB(e):n===`zh-TW`?zB(e):BB(e)}),HB=()=>`Amount`,UB=()=>`Amount`,WB=()=>`Amount`,GB=()=>`Amount`,KB=()=>`金額`,qB=()=>`金额`,JB=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?HB(e):n===`ja-JP`?UB(e):n===`ko-KR`?WB(e):n===`ru-RU`?GB(e):n===`zh-TW`?KB(e):qB(e)}),YB=()=>`Actual Paid`,XB=()=>`Actual Paid`,ZB=()=>`Actual Paid`,QB=()=>`Actual Paid`,$B=()=>`實付`,eV=()=>`实付`,tV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?YB(e):n===`ja-JP`?XB(e):n===`ko-KR`?ZB(e):n===`ru-RU`?QB(e):n===`zh-TW`?$B(e):eV(e)}),nV=()=>`Chain`,rV=()=>`Chain`,iV=()=>`Chain`,aV=()=>`Chain`,oV=()=>`鏈`,sV=()=>`链`,cV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nV(e):n===`ja-JP`?rV(e):n===`ko-KR`?iV(e):n===`ru-RU`?aV(e):n===`zh-TW`?oV(e):sV(e)}),lV=()=>`Receive Address`,uV=()=>`Receive Address`,dV=()=>`Receive Address`,fV=()=>`Receive Address`,pV=()=>`收款地址`,mV=()=>`收款地址`,hV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lV(e):n===`ja-JP`?uV(e):n===`ko-KR`?dV(e):n===`ru-RU`?fV(e):n===`zh-TW`?pV(e):mV(e)}),gV=()=>`Callback URL`,_V=()=>`Callback URL`,vV=()=>`Callback URL`,yV=()=>`Callback URL`,bV=()=>`回呼地址`,xV=()=>`回调地址`,SV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gV(e):n===`ja-JP`?_V(e):n===`ko-KR`?vV(e):n===`ru-RU`?yV(e):n===`zh-TW`?bV(e):xV(e)}),CV=()=>`Redirect URL`,wV=()=>`Redirect URL`,TV=()=>`Redirect URL`,EV=()=>`Redirect URL`,DV=()=>`跳轉地址`,OV=()=>`跳转地址`,kV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?CV(e):n===`ja-JP`?wV(e):n===`ko-KR`?TV(e):n===`ru-RU`?EV(e):n===`zh-TW`?DV(e):OV(e)}),AV=()=>`Block Transaction ID`,jV=()=>`Block Transaction ID`,MV=()=>`Block Transaction ID`,NV=()=>`Block Transaction ID`,PV=()=>`區塊交易 ID`,FV=()=>`区块交易 ID`,IV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?AV(e):n===`ja-JP`?jV(e):n===`ko-KR`?MV(e):n===`ru-RU`?NV(e):n===`zh-TW`?PV(e):FV(e)}),LV=()=>`Parent Order`,RV=()=>`Parent Order`,zV=()=>`Parent Order`,BV=()=>`Parent Order`,VV=()=>`父訂單`,HV=()=>`父订单`,UV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?LV(e):n===`ja-JP`?RV(e):n===`ko-KR`?zV(e):n===`ru-RU`?BV(e):n===`zh-TW`?VV(e):HV(e)}),WV=()=>`Created At`,GV=()=>`Created At`,KV=()=>`Created At`,qV=()=>`Created At`,JV=()=>`建立時間`,YV=()=>`创建时间`,XV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?WV(e):n===`ja-JP`?GV(e):n===`ko-KR`?KV(e):n===`ru-RU`?qV(e):n===`zh-TW`?JV(e):YV(e)}),ZV=()=>`Updated At`,QV=()=>`Updated At`,$V=()=>`Updated At`,eH=()=>`Updated At`,tH=()=>`更新時間`,nH=()=>`更新时间`,rH=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ZV(e):n===`ja-JP`?QV(e):n===`ko-KR`?$V(e):n===`ru-RU`?eH(e):n===`zh-TW`?tH(e):nH(e)}),iH=()=>`Order Details`,aH=()=>`Order Details`,oH=()=>`Order Details`,sH=()=>`Order Details`,cH=()=>`訂單詳情`,lH=()=>`订单详情`,uH=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?iH(e):n===`ja-JP`?aH(e):n===`ko-KR`?oH(e):n===`ru-RU`?sH(e):n===`zh-TW`?cH(e):lH(e)}),dH=()=>`View the full API response for the current order.`,fH=()=>`View the full API response for the current order.`,pH=()=>`View the full API response for the current order.`,mH=()=>`View the full API response for the current order.`,hH=()=>`檢視當前訂單的完整介面返回資訊。`,gH=()=>`查看当前订单的完整接口返回信息。`,_H=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dH(e):n===`ja-JP`?fH(e):n===`ko-KR`?pH(e):n===`ru-RU`?mH(e):n===`zh-TW`?hH(e):gH(e)}),vH=()=>`Loading...`,yH=()=>`Loading...`,bH=()=>`Loading...`,xH=()=>`Loading...`,SH=()=>`載入中...`,CH=()=>`加载中...`,wH=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vH(e):n===`ja-JP`?yH(e):n===`ko-KR`?bH(e):n===`ru-RU`?xH(e):n===`zh-TW`?SH(e):CH(e)}),TH=()=>`Supported Payment Assets`,EH=()=>`Supported Payment Assets`,DH=()=>`Supported Payment Assets`,OH=()=>`Supported Payment Assets`,kH=()=>`收款資產`,AH=()=>`收款资产`,jH=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?TH(e):n===`ja-JP`?EH(e):n===`ko-KR`?DH(e):n===`ru-RU`?OH(e):n===`zh-TW`?kH(e):AH(e)}),MH=()=>`Browse the currently supported networks and tokens without leaving this page.`,NH=()=>`Browse the currently supported networks and tokens without leaving this page.`,PH=()=>`Browse the currently supported networks and tokens without leaving this page.`,FH=()=>`Browse the currently supported networks and tokens without leaving this page.`,IH=()=>`在當前頁面直接檢視支援的網路與代幣列表。`,LH=()=>`在当前页面直接查看支持的网络与代币列表。`,RH=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?MH(e):n===`ja-JP`?NH(e):n===`ko-KR`?PH(e):n===`ru-RU`?FH(e):n===`zh-TW`?IH(e):LH(e)}),zH=()=>`Chain`,BH=()=>`Chain`,VH=()=>`Chain`,HH=()=>`Chain`,UH=()=>`鏈`,WH=()=>`链`,GH=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zH(e):n===`ja-JP`?BH(e):n===`ko-KR`?VH(e):n===`ru-RU`?HH(e):n===`zh-TW`?UH(e):WH(e)}),KH=()=>`Search chains or tokens...`,qH=()=>`Search chains or tokens...`,JH=()=>`Search chains or tokens...`,YH=()=>`Search chains or tokens...`,XH=()=>`搜尋鏈或代幣...`,ZH=()=>`搜索链或代币...`,QH=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?KH(e):n===`ja-JP`?qH(e):n===`ko-KR`?JH(e):n===`ru-RU`?YH(e):n===`zh-TW`?XH(e):ZH(e)}),$H=()=>`No payment asset data`,eU=()=>`No payment asset data`,tU=()=>`No payment asset data`,nU=()=>`No payment asset data`,rU=()=>`暫無收款資產資料`,iU=()=>`暂无收款资产数据`,aU=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$H(e):n===`ja-JP`?eU(e):n===`ko-KR`?tU(e):n===`ru-RU`?nU(e):n===`zh-TW`?rU(e):iU(e)}),oU=()=>`Chain`,sU=()=>`Chain`,cU=()=>`Chain`,lU=()=>`Chain`,uU=()=>`鏈`,dU=()=>`链`,fU=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?oU(e):n===`ja-JP`?sU(e):n===`ko-KR`?cU(e):n===`ru-RU`?lU(e):n===`zh-TW`?uU(e):dU(e)}),pU=()=>`Supported Tokens`,mU=()=>`Supported Tokens`,hU=()=>`Supported Tokens`,gU=()=>`Supported Tokens`,_U=()=>`支援代幣`,vU=()=>`支持代币`,yU=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pU(e):n===`ja-JP`?mU(e):n===`ko-KR`?hU(e):n===`ru-RU`?gU(e):n===`zh-TW`?_U(e):vU(e)}),bU=()=>`Manage supported payment assets and integration guides in one place.`,xU=()=>`Manage supported payment assets and integration guides in one place.`,SU=()=>`Manage supported payment assets and integration guides in one place.`,CU=()=>`Manage supported payment assets and integration guides in one place.`,wU=()=>`統一管理收款資產與各類支付接入配置。`,TU=()=>`统一管理收款资产与各类支付接入配置。`,EU=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bU(e):n===`ja-JP`?xU(e):n===`ko-KR`?SU(e):n===`ru-RU`?CU(e):n===`zh-TW`?wU(e):TU(e)}),DU=()=>`Supported Integrations`,OU=()=>`Supported Integrations`,kU=()=>`Supported Integrations`,AU=()=>`Supported Integrations`,jU=()=>`支援的接入方式`,MU=()=>`支持的接入方式`,NU=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?DU(e):n===`ja-JP`?OU(e):n===`ko-KR`?kU(e):n===`ru-RU`?AU(e):n===`zh-TW`?jU(e):MU(e)}),PU=()=>`Entry endpoints, required configuration keys, and callback rules for each integration.`,FU=()=>`Entry endpoints, required configuration keys, and callback rules for each integration.`,IU=()=>`Entry endpoints, required configuration keys, and callback rules for each integration.`,LU=()=>`Entry endpoints, required configuration keys, and callback rules for each integration.`,RU=()=>`各接入方式的入口端點、關鍵配置項與回呼要求一覽。`,zU=()=>`各接入方式的入口端点、关键配置项与回调要求一览。`,BU=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?PU(e):n===`ja-JP`?FU(e):n===`ko-KR`?IU(e):n===`ru-RU`?LU(e):n===`zh-TW`?RU(e):zU(e)}),VU=()=>`Name`,HU=()=>`Name`,UU=()=>`Name`,WU=()=>`Name`,GU=()=>`名稱`,KU=()=>`名称`,qU=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?VU(e):n===`ja-JP`?HU(e):n===`ko-KR`?UU(e):n===`ru-RU`?WU(e):n===`zh-TW`?GU(e):KU(e)}),JU=()=>`Entry`,YU=()=>`Entry`,XU=()=>`Entry`,ZU=()=>`Entry`,QU=()=>`接入入口`,$U=()=>`接入入口`,eW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?JU(e):n===`ja-JP`?YU(e):n===`ko-KR`?XU(e):n===`ru-RU`?ZU(e):n===`zh-TW`?QU(e):$U(e)}),tW=()=>`Request Body`,nW=()=>`Request Body`,rW=()=>`Request Body`,iW=()=>`Request Body`,aW=()=>`請求體`,oW=()=>`请求体`,sW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tW(e):n===`ja-JP`?nW(e):n===`ko-KR`?rW(e):n===`ru-RU`?iW(e):n===`zh-TW`?aW(e):oW(e)}),cW=()=>`Callback`,lW=()=>`Callback`,uW=()=>`Callback`,dW=()=>`Callback`,fW=()=>`回呼要求`,pW=()=>`回调要求`,mW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cW(e):n===`ja-JP`?lW(e):n===`ko-KR`?uW(e):n===`ru-RU`?dW(e):n===`zh-TW`?fW(e):pW(e)}),hW=()=>`Verify signature and return plain text ok; payload includes trade_id · order_id · status · actual_amount · signature`,gW=()=>`Verify signature and return plain text ok; payload includes trade_id · order_id · status · actual_amount · signature`,_W=()=>`Verify signature and return plain text ok; payload includes trade_id · order_id · status · actual_amount · signature`,vW=()=>`Verify signature and return plain text ok; payload includes trade_id · order_id · status · actual_amount · signature`,yW=()=>`驗籤後返回純文字 ok;回呼含 trade_id · order_id · status · actual_amount · signature`,bW=()=>`验签后返回纯文本 ok;回调包含 trade_id · order_id · status · actual_amount · signature`,xW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hW(e):n===`ja-JP`?gW(e):n===`ko-KR`?_W(e):n===`ru-RU`?vW(e):n===`zh-TW`?yW(e):bW(e)}),SW=()=>`Verify signature and return plain text ok; EPay-style fields (trade_no · out_trade_no · trade_status)`,CW=()=>`Verify signature and return plain text ok; EPay-style fields (trade_no · out_trade_no · trade_status)`,wW=()=>`Verify signature and return plain text ok; EPay-style fields (trade_no · out_trade_no · trade_status)`,TW=()=>`Verify signature and return plain text ok; EPay-style fields (trade_no · out_trade_no · trade_status)`,EW=()=>`驗籤後返回純文字 ok;回呼欄位相容 EPay 風格(trade_no · out_trade_no · trade_status)`,DW=()=>`验签后返回纯文本 ok;回调字段兼容 EPay 风格(trade_no · out_trade_no · trade_status)`,OW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?SW(e):n===`ja-JP`?CW(e):n===`ko-KR`?wW(e):n===`ru-RU`?TW(e):n===`zh-TW`?EW(e):DW(e)}),kW=()=>`Callback URL must use HTTPS, must not be an IP address, and must have a valid TLS certificate.`,AW=()=>`Callback URL must use HTTPS, must not be an IP address, and must have a valid TLS certificate.`,jW=()=>`Callback URL must use HTTPS, must not be an IP address, and must have a valid TLS certificate.`,MW=()=>`Callback URL must use HTTPS, must not be an IP address, and must have a valid TLS certificate.`,NW=()=>`回呼地址必須使用 HTTPS,不可以是 IP 地址,TLS 憑證必須有效。`,PW=()=>`回调地址必须使用 HTTPS,不可以是 IP 地址,TLS 证书必须有效。`,FW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kW(e):n===`ja-JP`?AW(e):n===`ko-KR`?jW(e):n===`ru-RU`?MW(e):n===`zh-TW`?NW(e):PW(e)}),IW=()=>`Wallet deleted successfully`,LW=()=>`Wallet deleted successfully`,RW=()=>`Wallet deleted successfully`,zW=()=>`Wallet deleted successfully`,BW=()=>`錢包刪除成功`,VW=()=>`钱包删除成功`,HW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?IW(e):n===`ja-JP`?LW(e):n===`ko-KR`?RW(e):n===`ru-RU`?zW(e):n===`zh-TW`?BW(e):VW(e)}),UW=()=>`Status updated`,WW=()=>`Status updated`,GW=()=>`Status updated`,KW=()=>`Status updated`,qW=()=>`狀態已更新`,JW=()=>`状态已更新`,YW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?UW(e):n===`ja-JP`?WW(e):n===`ko-KR`?GW(e):n===`ru-RU`?KW(e):n===`zh-TW`?qW(e):JW(e)}),XW=()=>`Please configure chains and tokens in chain management first`,ZW=()=>`Please configure chains and tokens in chain management first`,QW=()=>`Please configure chains and tokens in chain management first`,$W=()=>`Please configure chains and tokens in chain management first`,eG=()=>`請先在鏈管理中配置鏈與代幣`,tG=()=>`请先在链管理中配置链与代币`,nG=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?XW(e):n===`ja-JP`?ZW(e):n===`ko-KR`?QW(e):n===`ru-RU`?$W(e):n===`zh-TW`?eG(e):tG(e)}),rG=()=>`Please enter at least one wallet address`,iG=()=>`Please enter at least one wallet address`,aG=()=>`Please enter at least one wallet address`,oG=()=>`Please enter at least one wallet address`,sG=()=>`請輸入至少一個錢包地址`,cG=()=>`请输入至少一个钱包地址`,lG=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rG(e):n===`ja-JP`?iG(e):n===`ko-KR`?aG(e):n===`ru-RU`?oG(e):n===`zh-TW`?sG(e):cG(e)}),uG=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}`,dG=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}`,fG=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}`,pG=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}`,mG=e=>`批次匯入完成,成功 ${e?.success}/${e?.total}`,hG=e=>`批量导入完成,成功 ${e?.success}/${e?.total}`,gG=((e,t={})=>{let n=t.locale??m();return n===`en-US`?uG(e):n===`ja-JP`?dG(e):n===`ko-KR`?fG(e):n===`ru-RU`?pG(e):n===`zh-TW`?mG(e):hG(e)}),_G=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}. Failed reason: ${e?.error}`,vG=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}. Failed reason: ${e?.error}`,yG=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}. Failed reason: ${e?.error}`,bG=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}. Failed reason: ${e?.error}`,xG=e=>`批次匯入完成,成功 ${e?.success}/${e?.total},失敗原因:${e?.error}`,SG=e=>`批量导入完成,成功 ${e?.success}/${e?.total},失败原因:${e?.error}`,CG=((e,t={})=>{let n=t.locale??m();return n===`en-US`?_G(e):n===`ja-JP`?vG(e):n===`ko-KR`?yG(e):n===`ru-RU`?bG(e):n===`zh-TW`?xG(e):SG(e)}),wG=()=>`Batch Import`,TG=()=>`Batch Import`,EG=()=>`Batch Import`,DG=()=>`Batch Import`,OG=()=>`批次匯入`,kG=()=>`批量导入`,AG=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wG(e):n===`ja-JP`?TG(e):n===`ko-KR`?EG(e):n===`ru-RU`?DG(e):n===`zh-TW`?OG(e):kG(e)}),jG=()=>`Add Wallet`,MG=()=>`Add Wallet`,NG=()=>`Add Wallet`,PG=()=>`Add Wallet`,FG=()=>`新增錢包`,IG=()=>`新增钱包`,LG=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jG(e):n===`ja-JP`?MG(e):n===`ko-KR`?NG(e):n===`ru-RU`?PG(e):n===`zh-TW`?FG(e):IG(e)}),RG=()=>`Manage payment addresses, balance status, and remarks.`,zG=()=>`Manage payment addresses, balance status, and remarks.`,BG=()=>`Manage payment addresses, balance status, and remarks.`,VG=()=>`Manage payment addresses, balance status, and remarks.`,HG=()=>`管理收款地址、餘額狀態與備註。`,UG=()=>`管理收款地址、余额状态与备注。`,WG=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?RG(e):n===`ja-JP`?zG(e):n===`ko-KR`?BG(e):n===`ru-RU`?VG(e):n===`zh-TW`?HG(e):UG(e)}),GG=()=>`Address Management`,KG=()=>`Address Management`,qG=()=>`Address Management`,JG=()=>`Address Management`,YG=()=>`地址管理`,XG=()=>`地址管理`,ZG=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?GG(e):n===`ja-JP`?KG(e):n===`ko-KR`?qG(e):n===`ru-RU`?JG(e):n===`zh-TW`?YG(e):XG(e)}),QG=()=>`Delete`,$G=()=>`Delete`,eK=()=>`Delete`,tK=()=>`Delete`,nK=()=>`刪除`,rK=()=>`删除`,iK=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?QG(e):n===`ja-JP`?$G(e):n===`ko-KR`?eK(e):n===`ru-RU`?tK(e):n===`zh-TW`?nK(e):rK(e)}),aK=()=>`Confirm`,oK=()=>`Confirm`,sK=()=>`Confirm`,cK=()=>`Confirm`,lK=()=>`確認`,uK=()=>`确认`,dK=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?aK(e):n===`ja-JP`?oK(e):n===`ko-KR`?sK(e):n===`ru-RU`?cK(e):n===`zh-TW`?lK(e):uK(e)}),fK=e=>`Perform “${e?.action}” on wallet ${e?.address}.`,pK=e=>`Perform “${e?.action}” on wallet ${e?.address}.`,mK=e=>`Perform “${e?.action}” on wallet ${e?.address}.`,hK=e=>`Perform “${e?.action}” on wallet ${e?.address}.`,gK=e=>`將對錢包 ${e?.address} 執行“${e?.action}”操作。`,_K=e=>`将对钱包 ${e?.address} 执行“${e?.action}”操作。`,vK=((e,t={})=>{let n=t.locale??m();return n===`en-US`?fK(e):n===`ja-JP`?pK(e):n===`ko-KR`?mK(e):n===`ru-RU`?hK(e):n===`zh-TW`?gK(e):_K(e)}),yK=()=>`Delete Wallet`,bK=()=>`Delete Wallet`,xK=()=>`Delete Wallet`,SK=()=>`Delete Wallet`,CK=()=>`刪除錢包`,wK=()=>`删除钱包`,TK=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yK(e):n===`ja-JP`?bK(e):n===`ko-KR`?xK(e):n===`ru-RU`?SK(e):n===`zh-TW`?CK(e):wK(e)}),EK=()=>`Confirm Wallet Action`,DK=()=>`Confirm Wallet Action`,OK=()=>`Confirm Wallet Action`,kK=()=>`Confirm Wallet Action`,AK=()=>`錢包操作確認`,jK=()=>`钱包操作确认`,MK=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?EK(e):n===`ja-JP`?DK(e):n===`ko-KR`?OK(e):n===`ru-RU`?kK(e):n===`zh-TW`?AK(e):jK(e)}),NK=()=>`Batch Import Wallets`,PK=()=>`Batch Import Wallets`,FK=()=>`Batch Import Wallets`,IK=()=>`Batch Import Wallets`,LK=()=>`批次匯入錢包`,RK=()=>`批量导入钱包`,zK=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?NK(e):n===`ja-JP`?PK(e):n===`ko-KR`?FK(e):n===`ru-RU`?IK(e):n===`zh-TW`?LK(e):RK(e)}),BK=()=>`One wallet address per line, imported as watch-only wallets.`,VK=()=>`One wallet address per line, imported as watch-only wallets.`,HK=()=>`One wallet address per line, imported as watch-only wallets.`,UK=()=>`One wallet address per line, imported as watch-only wallets.`,WK=()=>`每行一個錢包地址,匯入為觀察錢包。`,GK=()=>`每行一个钱包地址,导入为观察钱包。`,KK=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?BK(e):n===`ja-JP`?VK(e):n===`ko-KR`?HK(e):n===`ru-RU`?UK(e):n===`zh-TW`?WK(e):GK(e)}),qK=()=>`Network`,JK=()=>`Network`,YK=()=>`Network`,XK=()=>`Network`,ZK=()=>`網路`,QK=()=>`网络`,$K=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qK(e):n===`ja-JP`?JK(e):n===`ko-KR`?YK(e):n===`ru-RU`?XK(e):n===`zh-TW`?ZK(e):QK(e)}),eq=()=>`Chain`,tq=()=>`Chain`,nq=()=>`Chain`,rq=()=>`Chain`,iq=()=>`鏈`,aq=()=>`链`,oq=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?eq(e):n===`ja-JP`?tq(e):n===`ko-KR`?nq(e):n===`ru-RU`?rq(e):n===`zh-TW`?iq(e):aq(e)}),sq=()=>`Select chain`,cq=()=>`Select chain`,lq=()=>`Select chain`,uq=()=>`Select chain`,dq=()=>`選擇鏈`,fq=()=>`选择链`,pq=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sq(e):n===`ja-JP`?cq(e):n===`ko-KR`?lq(e):n===`ru-RU`?uq(e):n===`zh-TW`?dq(e):fq(e)}),mq=()=>`Unnamed chain`,hq=()=>`Unnamed chain`,gq=()=>`Unnamed chain`,_q=()=>`Unnamed chain`,vq=()=>`未命名鏈`,yq=()=>`未命名链`,bq=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mq(e):n===`ja-JP`?hq(e):n===`ko-KR`?gq(e):n===`ru-RU`?_q(e):n===`zh-TW`?vq(e):yq(e)}),xq=()=>`Wallet Address`,Sq=()=>`Wallet Address`,Cq=()=>`Wallet Address`,wq=()=>`Wallet Address`,Tq=()=>`錢包地址`,Eq=()=>`钱包地址`,Dq=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xq(e):n===`ja-JP`?Sq(e):n===`ko-KR`?Cq(e):n===`ru-RU`?wq(e):n===`zh-TW`?Tq(e):Eq(e)}),Oq=()=>`Cancel`,kq=()=>`Cancel`,Aq=()=>`Cancel`,jq=()=>`Cancel`,Mq=()=>`取消`,Nq=()=>`取消`,Pq=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Oq(e):n===`ja-JP`?kq(e):n===`ko-KR`?Aq(e):n===`ru-RU`?jq(e):n===`zh-TW`?Mq(e):Nq(e)}),Fq=()=>`Importing...`,Iq=()=>`Importing...`,Lq=()=>`Importing...`,Rq=()=>`Importing...`,zq=()=>`匯入中...`,Bq=()=>`导入中...`,Vq=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Fq(e):n===`ja-JP`?Iq(e):n===`ko-KR`?Lq(e):n===`ru-RU`?Rq(e):n===`zh-TW`?zq(e):Bq(e)}),Hq=()=>`Start Import`,Uq=()=>`Start Import`,Wq=()=>`Start Import`,Gq=()=>`Start Import`,Kq=()=>`開始匯入`,qq=()=>`开始导入`,Jq=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hq(e):n===`ja-JP`?Uq(e):n===`ko-KR`?Wq(e):n===`ru-RU`?Gq(e):n===`zh-TW`?Kq(e):qq(e)}),Yq=()=>`Search addresses or remarks...`,Xq=()=>`Search addresses or remarks...`,Zq=()=>`Search addresses or remarks...`,Qq=()=>`Search addresses or remarks...`,$q=()=>`搜尋地址或備註...`,eJ=()=>`搜索地址或备注...`,tJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yq(e):n===`ja-JP`?Xq(e):n===`ko-KR`?Zq(e):n===`ru-RU`?Qq(e):n===`zh-TW`?$q(e):eJ(e)}),nJ=()=>`No address data`,rJ=()=>`No address data`,iJ=()=>`No address data`,aJ=()=>`No address data`,oJ=()=>`暫無地址資料`,sJ=()=>`暂无地址数据`,cJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nJ(e):n===`ja-JP`?rJ(e):n===`ko-KR`?iJ(e):n===`ru-RU`?aJ(e):n===`zh-TW`?oJ(e):sJ(e)}),lJ=()=>`Status`,uJ=()=>`Status`,dJ=()=>`Status`,fJ=()=>`Status`,pJ=()=>`狀態`,mJ=()=>`状态`,hJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lJ(e):n===`ja-JP`?uJ(e):n===`ko-KR`?dJ(e):n===`ru-RU`?fJ(e):n===`zh-TW`?pJ(e):mJ(e)}),gJ=()=>`Enabled`,_J=()=>`Enabled`,vJ=()=>`Enabled`,yJ=()=>`Enabled`,bJ=()=>`啟用`,xJ=()=>`启用`,SJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gJ(e):n===`ja-JP`?_J(e):n===`ko-KR`?vJ(e):n===`ru-RU`?yJ(e):n===`zh-TW`?bJ(e):xJ(e)}),CJ=()=>`Address`,wJ=()=>`Address`,TJ=()=>`Address`,EJ=()=>`Address`,DJ=()=>`地址`,OJ=()=>`地址`,kJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?CJ(e):n===`ja-JP`?wJ(e):n===`ko-KR`?TJ(e):n===`ru-RU`?EJ(e):n===`zh-TW`?DJ(e):OJ(e)}),AJ=()=>`Order Count`,jJ=()=>`Order Count`,MJ=()=>`Order Count`,NJ=()=>`Order Count`,PJ=()=>`訂單數`,FJ=()=>`订单数`,IJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?AJ(e):n===`ja-JP`?jJ(e):n===`ko-KR`?MJ(e):n===`ru-RU`?NJ(e):n===`zh-TW`?PJ(e):FJ(e)}),LJ=()=>`Source`,RJ=()=>`Source`,zJ=()=>`Source`,BJ=()=>`Source`,VJ=()=>`來源`,HJ=()=>`来源`,UJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?LJ(e):n===`ja-JP`?RJ(e):n===`ko-KR`?zJ(e):n===`ru-RU`?BJ(e):n===`zh-TW`?VJ(e):HJ(e)}),WJ=()=>`Remark`,GJ=()=>`Remark`,KJ=()=>`Remark`,qJ=()=>`Remark`,JJ=()=>`備註`,YJ=()=>`备注`,XJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?WJ(e):n===`ja-JP`?GJ(e):n===`ko-KR`?KJ(e):n===`ru-RU`?qJ(e):n===`zh-TW`?JJ(e):YJ(e)}),ZJ=()=>`Created At`,QJ=()=>`Created At`,$J=()=>`Created At`,eY=()=>`Created At`,tY=()=>`建立時間`,nY=()=>`创建时间`,rY=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ZJ(e):n===`ja-JP`?QJ(e):n===`ko-KR`?$J(e):n===`ru-RU`?eY(e):n===`zh-TW`?tY(e):nY(e)}),iY=()=>`Updated At`,aY=()=>`Updated At`,oY=()=>`Updated At`,sY=()=>`Updated At`,cY=()=>`更新時間`,lY=()=>`更新时间`,uY=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?iY(e):n===`ja-JP`?aY(e):n===`ko-KR`?oY(e):n===`ru-RU`?sY(e):n===`zh-TW`?cY(e):lY(e)}),dY=()=>`Actions`,fY=()=>`Actions`,pY=()=>`Actions`,mY=()=>`Actions`,hY=()=>`操作`,gY=()=>`操作`,_Y=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dY(e):n===`ja-JP`?fY(e):n===`ko-KR`?pY(e):n===`ru-RU`?mY(e):n===`zh-TW`?hY(e):gY(e)}),vY=()=>`Edit Remark`,yY=()=>`Edit Remark`,bY=()=>`Edit Remark`,xY=()=>`Edit Remark`,SY=()=>`編輯備註`,CY=()=>`编辑备注`,wY=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vY(e):n===`ja-JP`?yY(e):n===`ko-KR`?bY(e):n===`ru-RU`?xY(e):n===`zh-TW`?SY(e):CY(e)}),TY=()=>`Loading...`,EY=()=>`Loading...`,DY=()=>`Loading...`,OY=()=>`Loading...`,kY=()=>`載入中...`,AY=()=>`加载中...`,jY=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?TY(e):n===`ja-JP`?EY(e):n===`ko-KR`?DY(e):n===`ru-RU`?OY(e):n===`zh-TW`?kY(e):AY(e)}),MY=()=>`Please configure supported tokens in chain management first`,NY=()=>`Please configure supported tokens in chain management first`,PY=()=>`Please configure supported tokens in chain management first`,FY=()=>`Please configure supported tokens in chain management first`,IY=()=>`請先在鏈管理中配置支援代幣`,LY=()=>`请先在链管理中配置支持代币`,RY=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?MY(e):n===`ja-JP`?NY(e):n===`ko-KR`?PY(e):n===`ru-RU`?FY(e):n===`zh-TW`?IY(e):LY(e)}),zY=()=>`Edit Wallet`,BY=()=>`Edit Wallet`,VY=()=>`Edit Wallet`,HY=()=>`Edit Wallet`,UY=()=>`編輯錢包`,WY=()=>`编辑钱包`,GY=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zY(e):n===`ja-JP`?BY(e):n===`ko-KR`?VY(e):n===`ru-RU`?HY(e):n===`zh-TW`?UY(e):WY(e)}),KY=()=>`Add Wallet`,qY=()=>`Add Wallet`,JY=()=>`Add Wallet`,YY=()=>`Add Wallet`,XY=()=>`新增錢包`,ZY=()=>`新增钱包`,QY=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?KY(e):n===`ja-JP`?qY(e):n===`ko-KR`?JY(e):n===`ru-RU`?YY(e):n===`zh-TW`?XY(e):ZY(e)}),$Y=()=>`Modify wallet remark information.`,eX=()=>`Modify wallet remark information.`,tX=()=>`Modify wallet remark information.`,nX=()=>`Modify wallet remark information.`,rX=()=>`修改錢包備註資訊。`,iX=()=>`修改钱包备注信息。`,aX=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$Y(e):n===`ja-JP`?eX(e):n===`ko-KR`?tX(e):n===`ru-RU`?nX(e):n===`zh-TW`?rX(e):iX(e)}),oX=()=>`Add a new payment wallet.`,sX=()=>`Add a new payment wallet.`,cX=()=>`Add a new payment wallet.`,lX=()=>`Add a new payment wallet.`,uX=()=>`新增新的收款錢包。`,dX=()=>`新增新的收款钱包。`,fX=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?oX(e):n===`ja-JP`?sX(e):n===`ko-KR`?cX(e):n===`ru-RU`?lX(e):n===`zh-TW`?uX(e):dX(e)}),pX=()=>`Please enter wallet address`,mX=()=>`Please enter wallet address`,hX=()=>`Please enter wallet address`,gX=()=>`Please enter wallet address`,_X=()=>`請輸入錢包地址`,vX=()=>`请输入钱包地址`,yX=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pX(e):n===`ja-JP`?mX(e):n===`ko-KR`?hX(e):n===`ru-RU`?gX(e):n===`zh-TW`?_X(e):vX(e)}),bX=()=>`Optional`,xX=()=>`Optional`,SX=()=>`Optional`,CX=()=>`Optional`,wX=()=>`選填`,TX=()=>`选填`,EX=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bX(e):n===`ja-JP`?xX(e):n===`ko-KR`?SX(e):n===`ru-RU`?CX(e):n===`zh-TW`?wX(e):TX(e)}),DX=()=>`Saving...`,OX=()=>`Saving...`,kX=()=>`Saving...`,AX=()=>`Saving...`,jX=()=>`儲存中...`,MX=()=>`保存中...`,NX=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?DX(e):n===`ja-JP`?OX(e):n===`ko-KR`?kX(e):n===`ru-RU`?AX(e):n===`zh-TW`?jX(e):MX(e)}),PX=()=>`Save`,FX=()=>`Save`,IX=()=>`Save`,LX=()=>`Save`,RX=()=>`儲存`,zX=()=>`保存`,BX=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?PX(e):n===`ja-JP`?FX(e):n===`ko-KR`?IX(e):n===`ru-RU`?LX(e):n===`zh-TW`?RX(e):zX(e)}),VX=()=>`Wallet remark updated successfully`,HX=()=>`Wallet remark updated successfully`,UX=()=>`Wallet remark updated successfully`,WX=()=>`Wallet remark updated successfully`,GX=()=>`錢包備註更新成功`,KX=()=>`钱包备注更新成功`,qX=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?VX(e):n===`ja-JP`?HX(e):n===`ko-KR`?UX(e):n===`ru-RU`?WX(e):n===`zh-TW`?GX(e):KX(e)}),JX=()=>`Wallet added successfully`,YX=()=>`Wallet added successfully`,XX=()=>`Wallet added successfully`,ZX=()=>`Wallet added successfully`,QX=()=>`錢包新增成功`,$X=()=>`钱包新增成功`,eZ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?JX(e):n===`ja-JP`?YX(e):n===`ko-KR`?XX(e):n===`ru-RU`?ZX(e):n===`zh-TW`?QX(e):$X(e)}),tZ=()=>`Please enter a valid address`,nZ=()=>`Please enter a valid address`,rZ=()=>`Please enter a valid address`,iZ=()=>`Please enter a valid address`,aZ=()=>`請輸入有效地址`,oZ=()=>`请输入有效地址`,sZ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tZ(e):n===`ja-JP`?nZ(e):n===`ko-KR`?rZ(e):n===`ru-RU`?iZ(e):n===`zh-TW`?aZ(e):oZ(e)}),cZ=()=>`Please select a chain`,lZ=()=>`Please select a chain`,uZ=()=>`Please select a chain`,dZ=()=>`Please select a chain`,fZ=()=>`請選擇鏈`,pZ=()=>`请选择链`,mZ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cZ(e):n===`ja-JP`?lZ(e):n===`ko-KR`?uZ(e):n===`ru-RU`?dZ(e):n===`zh-TW`?fZ(e):pZ(e)}),hZ=()=>`Chains & Tokens`,gZ=()=>`Chains & Tokens`,_Z=()=>`Chains & Tokens`,vZ=()=>`Chains & Tokens`,yZ=()=>`鏈與代幣`,bZ=()=>`链与代币`,xZ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hZ(e):n===`ja-JP`?gZ(e):n===`ko-KR`?_Z(e):n===`ru-RU`?vZ(e):n===`zh-TW`?yZ(e):bZ(e)}),SZ=e=>`${e?.count} chains`,CZ=e=>`${e?.count} chains`,wZ=e=>`${e?.count} chains`,TZ=e=>`${e?.count} chains`,EZ=e=>`${e?.count} 條鏈`,DZ=e=>`${e?.count} 条链`,OZ=((e,t={})=>{let n=t.locale??m();return n===`en-US`?SZ(e):n===`ja-JP`?CZ(e):n===`ko-KR`?wZ(e):n===`ru-RU`?TZ(e):n===`zh-TW`?EZ(e):DZ(e)}),kZ=()=>`Search chain names...`,AZ=()=>`Search chain names...`,jZ=()=>`Search chain names...`,MZ=()=>`Search chain names...`,NZ=()=>`搜尋鏈名稱...`,PZ=()=>`搜索链名称...`,FZ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kZ(e):n===`ja-JP`?AZ(e):n===`ko-KR`?jZ(e):n===`ru-RU`?MZ(e):n===`zh-TW`?NZ(e):PZ(e)}),IZ=()=>`Overview`,LZ=()=>`Overview`,RZ=()=>`Overview`,zZ=()=>`Overview`,BZ=()=>`總覽`,VZ=()=>`概览`,HZ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?IZ(e):n===`ja-JP`?LZ(e):n===`ko-KR`?RZ(e):n===`ru-RU`?zZ(e):n===`zh-TW`?BZ(e):VZ(e)}),UZ=e=>`Total chains: ${e?.chains} | Total tokens: ${e?.tokens}`,WZ=e=>`Total chains: ${e?.chains} | Total tokens: ${e?.tokens}`,GZ=e=>`Total chains: ${e?.chains} | Total tokens: ${e?.tokens}`,KZ=e=>`Total chains: ${e?.chains} | Total tokens: ${e?.tokens}`,qZ=e=>`鏈總數: ${e?.chains} | 代幣總數: ${e?.tokens}`,JZ=e=>`链总数: ${e?.chains} | 代币总数: ${e?.tokens}`,YZ=((e,t={})=>{let n=t.locale??m();return n===`en-US`?UZ(e):n===`ja-JP`?WZ(e):n===`ko-KR`?GZ(e):n===`ru-RU`?KZ(e):n===`zh-TW`?qZ(e):JZ(e)}),XZ=()=>`Supported payment network`,ZZ=()=>`Supported payment network`,QZ=()=>`Supported payment network`,$Z=()=>`Supported payment network`,eQ=()=>`支援收款網路`,tQ=()=>`支持收款网络`,nQ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?XZ(e):n===`ja-JP`?ZZ(e):n===`ko-KR`?QZ(e):n===`ru-RU`?$Z(e):n===`zh-TW`?eQ(e):tQ(e)}),rQ=()=>`No chain data`,iQ=()=>`No chain data`,aQ=()=>`No chain data`,oQ=()=>`No chain data`,sQ=()=>`暫無鏈資料`,cQ=()=>`暂无链数据`,lQ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rQ(e):n===`ja-JP`?iQ(e):n===`ko-KR`?aQ(e):n===`ru-RU`?oQ(e):n===`zh-TW`?sQ(e):cQ(e)}),uQ=()=>`Add Token`,dQ=()=>`Add Token`,fQ=()=>`Add Token`,pQ=()=>`Add Token`,mQ=()=>`新增代幣`,hQ=()=>`新增代币`,gQ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?uQ(e):n===`ja-JP`?dQ(e):n===`ko-KR`?fQ(e):n===`ru-RU`?pQ(e):n===`zh-TW`?mQ(e):hQ(e)}),_Q=()=>`Manage supported blockchain networks and tokens, including status and basic parameters.`,vQ=()=>`Manage supported blockchain networks and tokens, including status and basic parameters.`,yQ=()=>`Manage supported blockchain networks and tokens, including status and basic parameters.`,bQ=()=>`Manage supported blockchain networks and tokens, including status and basic parameters.`,xQ=()=>`管理支援的區塊鏈網路和代幣,維護啟用狀態與基礎引數。`,SQ=()=>`管理支持的区块链网络和代币,维护启用状态与基础参数。`,CQ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_Q(e):n===`ja-JP`?vQ(e):n===`ko-KR`?yQ(e):n===`ru-RU`?bQ(e):n===`zh-TW`?xQ(e):SQ(e)}),wQ=e=>`Chain ${e?.status}`,TQ=e=>`Chain ${e?.status}`,EQ=e=>`Chain ${e?.status}`,DQ=e=>`Chain ${e?.status}`,OQ=e=>`鏈已${e?.status}`,kQ=e=>`链已${e?.status}`,AQ=((e,t={})=>{let n=t.locale??m();return n===`en-US`?wQ(e):n===`ja-JP`?TQ(e):n===`ko-KR`?EQ(e):n===`ru-RU`?DQ(e):n===`zh-TW`?OQ(e):kQ(e)}),jQ=()=>`enabled`,MQ=()=>`enabled`,NQ=()=>`enabled`,PQ=()=>`enabled`,FQ=()=>`啟用`,IQ=()=>`启用`,LQ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jQ(e):n===`ja-JP`?MQ(e):n===`ko-KR`?NQ(e):n===`ru-RU`?PQ(e):n===`zh-TW`?FQ(e):IQ(e)}),RQ=()=>`disabled`,zQ=()=>`disabled`,BQ=()=>`disabled`,VQ=()=>`disabled`,HQ=()=>`停用`,UQ=()=>`停用`,WQ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?RQ(e):n===`ja-JP`?zQ(e):n===`ko-KR`?BQ(e):n===`ru-RU`?VQ(e):n===`zh-TW`?HQ(e):UQ(e)}),GQ=()=>`Token status updated`,KQ=()=>`Token status updated`,qQ=()=>`Token status updated`,JQ=()=>`Token status updated`,YQ=()=>`代幣狀態已更新`,XQ=()=>`代币状态已更新`,ZQ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?GQ(e):n===`ja-JP`?KQ(e):n===`ko-KR`?qQ(e):n===`ru-RU`?JQ(e):n===`zh-TW`?YQ(e):XQ(e)}),QQ=()=>`Token updated successfully`,$Q=()=>`Token updated successfully`,e$=()=>`Token updated successfully`,t$=()=>`Token updated successfully`,n$=()=>`代幣更新成功`,r$=()=>`代币更新成功`,i$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?QQ(e):n===`ja-JP`?$Q(e):n===`ko-KR`?e$(e):n===`ru-RU`?t$(e):n===`zh-TW`?n$(e):r$(e)}),a$=()=>`Token created successfully`,o$=()=>`Token created successfully`,s$=()=>`Token created successfully`,c$=()=>`Token created successfully`,l$=()=>`代幣建立成功`,u$=()=>`代币创建成功`,d$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?a$(e):n===`ja-JP`?o$(e):n===`ko-KR`?s$(e):n===`ru-RU`?c$(e):n===`zh-TW`?l$(e):u$(e)}),f$=()=>`Search token symbols...`,p$=()=>`Search token symbols...`,m$=()=>`Search token symbols...`,h$=()=>`Search token symbols...`,g$=()=>`搜尋代幣符號...`,_$=()=>`搜索代币符号...`,v$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?f$(e):n===`ja-JP`?p$(e):n===`ko-KR`?m$(e):n===`ru-RU`?h$(e):n===`zh-TW`?g$(e):_$(e)}),y$=()=>`No chain token data`,b$=()=>`No chain token data`,x$=()=>`No chain token data`,S$=()=>`No chain token data`,C$=()=>`暫無鏈代幣資料`,w$=()=>`暂无链代币数据`,T$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?y$(e):n===`ja-JP`?b$(e):n===`ko-KR`?x$(e):n===`ru-RU`?S$(e):n===`zh-TW`?C$(e):w$(e)}),E$=()=>`Token`,D$=()=>`Token`,O$=()=>`Token`,k$=()=>`Token`,A$=()=>`代幣`,j$=()=>`代币`,M$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?E$(e):n===`ja-JP`?D$(e):n===`ko-KR`?O$(e):n===`ru-RU`?k$(e):n===`zh-TW`?A$(e):j$(e)}),N$=()=>`Edit`,P$=()=>`Edit`,F$=()=>`Edit`,I$=()=>`Edit`,L$=()=>`編輯`,R$=()=>`编辑`,z$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?N$(e):n===`ja-JP`?P$(e):n===`ko-KR`?F$(e):n===`ru-RU`?I$(e):n===`zh-TW`?L$(e):R$(e)}),B$=()=>`Delete`,V$=()=>`Delete`,H$=()=>`Delete`,U$=()=>`Delete`,W$=()=>`刪除`,G$=()=>`删除`,K$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?B$(e):n===`ja-JP`?V$(e):n===`ko-KR`?H$(e):n===`ru-RU`?U$(e):n===`zh-TW`?W$(e):G$(e)}),q$=()=>`Edit Chain Token`,J$=()=>`Edit Chain Token`,Y$=()=>`Edit Chain Token`,X$=()=>`Edit Chain Token`,Z$=()=>`編輯鏈代幣`,Q$=()=>`编辑链代币`,$$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?q$(e):n===`ja-JP`?J$(e):n===`ko-KR`?Y$(e):n===`ru-RU`?X$(e):n===`zh-TW`?Z$(e):Q$(e)}),e1=()=>`Add Chain Token`,t1=()=>`Add Chain Token`,n1=()=>`Add Chain Token`,r1=()=>`Add Chain Token`,i1=()=>`新增鏈代幣`,a1=()=>`新增链代币`,o1=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?e1(e):n===`ja-JP`?t1(e):n===`ko-KR`?n1(e):n===`ru-RU`?r1(e):n===`zh-TW`?i1(e):a1(e)}),s1=()=>`Modify chain token configuration.`,c1=()=>`Modify chain token configuration.`,l1=()=>`Modify chain token configuration.`,u1=()=>`Modify chain token configuration.`,d1=()=>`修改鏈代幣配置。`,f1=()=>`修改链代币配置。`,p1=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?s1(e):n===`ja-JP`?c1(e):n===`ko-KR`?l1(e):n===`ru-RU`?u1(e):n===`zh-TW`?d1(e):f1(e)}),m1=()=>`Add a new chain token configuration.`,h1=()=>`Add a new chain token configuration.`,g1=()=>`Add a new chain token configuration.`,_1=()=>`Add a new chain token configuration.`,v1=()=>`新增新的鏈代幣配置。`,y1=()=>`新增新的链代币配置。`,b1=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?m1(e):n===`ja-JP`?h1(e):n===`ko-KR`?g1(e):n===`ru-RU`?_1(e):n===`zh-TW`?v1(e):y1(e)}),x1=()=>`Token Symbol`,S1=()=>`Token Symbol`,C1=()=>`Token Symbol`,w1=()=>`Token Symbol`,T1=()=>`代幣符號`,E1=()=>`代币符号`,D1=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?x1(e):n===`ja-JP`?S1(e):n===`ko-KR`?C1(e):n===`ru-RU`?w1(e):n===`zh-TW`?T1(e):E1(e)}),O1=()=>`Configure available tokens for this chain and maintain contract address, decimals, minimum amount, and enabled status.`,k1=()=>`Configure available tokens for this chain and maintain contract address, decimals, minimum amount, and enabled status.`,A1=()=>`Configure available tokens for this chain and maintain contract address, decimals, minimum amount, and enabled status.`,j1=()=>`Configure available tokens for this chain and maintain contract address, decimals, minimum amount, and enabled status.`,M1=()=>`為當前鏈配置可用代幣,並維護合約地址、精度、最小金額與啟用狀態。`,N1=()=>`为当前链配置可用代币,并维护合约地址、精度、最小金额与启用状态。`,P1=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?O1(e):n===`ja-JP`?k1(e):n===`ko-KR`?A1(e):n===`ru-RU`?j1(e):n===`zh-TW`?M1(e):N1(e)}),F1=()=>`Contract Address`,I1=()=>`Contract Address`,L1=()=>`Contract Address`,R1=()=>`Contract Address`,z1=()=>`合約地址`,B1=()=>`合约地址`,V1=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?F1(e):n===`ja-JP`?I1(e):n===`ko-KR`?L1(e):n===`ru-RU`?R1(e):n===`zh-TW`?z1(e):B1(e)}),H1=()=>`Decimals`,U1=()=>`Decimals`,W1=()=>`Decimals`,G1=()=>`Decimals`,K1=()=>`精度`,q1=()=>`精度`,J1=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?H1(e):n===`ja-JP`?U1(e):n===`ko-KR`?W1(e):n===`ru-RU`?G1(e):n===`zh-TW`?K1(e):q1(e)}),Y1=()=>`Minimum Amount`,$=()=>`Minimum Amount`,X1=()=>`Minimum Amount`,Z1=()=>`Minimum Amount`,Q1=()=>`最小金額`,$1=()=>`最小金额`,e0=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Y1(e):n===`ja-JP`?$(e):n===`ko-KR`?X1(e):n===`ru-RU`?Z1(e):n===`zh-TW`?Q1(e):$1(e)}),t0=()=>`Create`,n0=()=>`Create`,eee=()=>`Create`,r0=()=>`Create`,i0=()=>`建立`,a0=()=>`创建`,o0=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?t0(e):n===`ja-JP`?n0(e):n===`ko-KR`?eee(e):n===`ru-RU`?r0(e):n===`zh-TW`?i0(e):a0(e)}),s0=()=>`Save Changes`,c0=()=>`Save Changes`,l0=()=>`Save Changes`,u0=()=>`Save Changes`,d0=()=>`儲存修改`,f0=()=>`保存修改`,p0=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?s0(e):n===`ja-JP`?c0(e):n===`ko-KR`?l0(e):n===`ru-RU`?u0(e):n===`zh-TW`?d0(e):f0(e)}),m0=()=>`Please select a chain`,h0=()=>`Please select a chain`,g0=()=>`Please select a chain`,_0=()=>`Please select a chain`,v0=()=>`請選擇鏈`,y0=()=>`请选择链`,b0=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?m0(e):n===`ja-JP`?h0(e):n===`ko-KR`?g0(e):n===`ru-RU`?_0(e):n===`zh-TW`?v0(e):y0(e)}),x0=()=>`Please enter token symbol`,S0=()=>`Please enter token symbol`,C0=()=>`Please enter token symbol`,w0=()=>`Please enter token symbol`,T0=()=>`請輸入代幣符號`,E0=()=>`请输入代币符号`,D0=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?x0(e):n===`ja-JP`?S0(e):n===`ko-KR`?C0(e):n===`ru-RU`?w0(e):n===`zh-TW`?T0(e):E0(e)}),O0=()=>`Please enter valid decimals`,k0=()=>`Please enter valid decimals`,A0=()=>`Please enter valid decimals`,j0=()=>`Please enter valid decimals`,M0=()=>`請輸入有效精度`,N0=()=>`请输入有效精度`,P0=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?O0(e):n===`ja-JP`?k0(e):n===`ko-KR`?A0(e):n===`ru-RU`?j0(e):n===`zh-TW`?M0(e):N0(e)}),F0=()=>`Please enter a valid minimum amount`,I0=()=>`Please enter a valid minimum amount`,L0=()=>`Please enter a valid minimum amount`,R0=()=>`Please enter a valid minimum amount`,z0=()=>`請輸入有效最小金額`,B0=()=>`请输入有效最小金额`,V0=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?F0(e):n===`ja-JP`?I0(e):n===`ko-KR`?L0(e):n===`ru-RU`?R0(e):n===`zh-TW`?z0(e):B0(e)}),H0=()=>`RPC Nodes`,U0=()=>`RPC Nodes`,W0=()=>`RPC Nodes`,G0=()=>`RPC Nodes`,K0=()=>`RPC 節點`,q0=()=>`RPC 节点`,J0=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?H0(e):n===`ja-JP`?U0(e):n===`ko-KR`?W0(e):n===`ru-RU`?G0(e):n===`zh-TW`?K0(e):q0(e)}),Y0=e=>`${e?.count} chains`,X0=e=>`${e?.count} chains`,Z0=e=>`${e?.count} chains`,Q0=e=>`${e?.count} chains`,$0=e=>`${e?.count} 條鏈`,e2=e=>`${e?.count} 条链`,t2=((e,t={})=>{let n=t.locale??m();return n===`en-US`?Y0(e):n===`ja-JP`?X0(e):n===`ko-KR`?Z0(e):n===`ru-RU`?Q0(e):n===`zh-TW`?$0(e):e2(e)}),n2=()=>`Search chain names or network...`,r2=()=>`Search chain names or network...`,i2=()=>`Search chain names or network...`,a2=()=>`Search chain names or network...`,o2=()=>`搜尋鏈名或 network...`,s2=()=>`搜索链名称或 network...`,c2=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?n2(e):n===`ja-JP`?r2(e):n===`ko-KR`?i2(e):n===`ru-RU`?a2(e):n===`zh-TW`?o2(e):s2(e)}),l2=()=>`Overview`,u2=()=>`Overview`,d2=()=>`Overview`,f2=()=>`Overview`,p2=()=>`總覽`,m2=()=>`概览`,h2=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?l2(e):n===`ja-JP`?u2(e):n===`ko-KR`?d2(e):n===`ru-RU`?f2(e):n===`zh-TW`?p2(e):m2(e)}),g2=e=>`Total chains: ${e?.chains} | Total nodes: ${e?.nodes}`,_2=e=>`Total chains: ${e?.chains} | Total nodes: ${e?.nodes}`,v2=e=>`Total chains: ${e?.chains} | Total nodes: ${e?.nodes}`,y2=e=>`Total chains: ${e?.chains} | Total nodes: ${e?.nodes}`,b2=e=>`鏈總數: ${e?.chains} | 節點總數: ${e?.nodes}`,x2=e=>`链总数: ${e?.chains} | 节点总数: ${e?.nodes}`,S2=((e,t={})=>{let n=t.locale??m();return n===`en-US`?g2(e):n===`ja-JP`?_2(e):n===`ko-KR`?v2(e):n===`ru-RU`?y2(e):n===`zh-TW`?b2(e):x2(e)}),C2=()=>`Unnamed chain`,w2=()=>`Unnamed chain`,T2=()=>`Unnamed chain`,E2=()=>`Unnamed chain`,D2=()=>`未命名鏈`,O2=()=>`未命名链`,k2=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?C2(e):n===`ja-JP`?w2(e):n===`ko-KR`?T2(e):n===`ru-RU`?E2(e):n===`zh-TW`?D2(e):O2(e)}),A2=e=>`Nodes: ${e?.count}`,j2=e=>`Nodes: ${e?.count}`,M2=e=>`Nodes: ${e?.count}`,N2=e=>`Nodes: ${e?.count}`,P2=e=>`節點數: ${e?.count}`,F2=e=>`节点数: ${e?.count}`,I2=((e,t={})=>{let n=t.locale??m();return n===`en-US`?A2(e):n===`ja-JP`?j2(e):n===`ko-KR`?M2(e):n===`ru-RU`?N2(e):n===`zh-TW`?P2(e):F2(e)}),L2=()=>`No chain data`,R2=()=>`No chain data`,z2=()=>`No chain data`,B2=()=>`No chain data`,V2=()=>`暫無鏈資料`,H2=()=>`暂无链数据`,U2=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?L2(e):n===`ja-JP`?R2(e):n===`ko-KR`?z2(e):n===`ru-RU`?B2(e):n===`zh-TW`?V2(e):H2(e)}),W2=()=>`Add Node`,G2=()=>`Add Node`,K2=()=>`Add Node`,q2=()=>`Add Node`,J2=()=>`新增節點`,Y2=()=>`新增节点`,X2=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?W2(e):n===`ja-JP`?G2(e):n===`ko-KR`?K2(e):n===`ru-RU`?q2(e):n===`zh-TW`?J2(e):Y2(e)}),Z2=()=>`Manage RPC nodes, weights, and health status for each chain.`,Q2=()=>`Manage RPC nodes, weights, and health status for each chain.`,$2=()=>`Manage RPC nodes, weights, and health status for each chain.`,e4=()=>`Manage RPC nodes, weights, and health status for each chain.`,t4=()=>`管理各鏈 RPC 節點、權重與健康狀態。`,n4=()=>`管理各链 RPC 节点、权重与健康状态。`,r4=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Z2(e):n===`ja-JP`?Q2(e):n===`ko-KR`?$2(e):n===`ru-RU`?e4(e):n===`zh-TW`?t4(e):n4(e)}),i4=()=>`Deleted successfully`,a4=()=>`Deleted successfully`,o4=()=>`Deleted successfully`,s4=()=>`Deleted successfully`,c4=()=>`刪除成功`,l4=()=>`删除成功`,u4=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?i4(e):n===`ja-JP`?a4(e):n===`ko-KR`?o4(e):n===`ru-RU`?s4(e):n===`zh-TW`?c4(e):l4(e)}),d4=e=>`Health check completed, status: ${e?.status}${e?.latency}`,f4=e=>`Health check completed, status: ${e?.status}${e?.latency}`,p4=e=>`Health check completed, status: ${e?.status}${e?.latency}`,m4=e=>`Health check completed, status: ${e?.status}${e?.latency}`,h4=e=>`健康檢查完成,狀態: ${e?.status}${e?.latency}`,g4=e=>`健康检查完成,状态: ${e?.status}${e?.latency}`,_4=((e,t={})=>{let n=t.locale??m();return n===`en-US`?d4(e):n===`ja-JP`?f4(e):n===`ko-KR`?p4(e):n===`ru-RU`?m4(e):n===`zh-TW`?h4(e):g4(e)}),v4=e=>`, latency ${e?.latency}ms`,y4=e=>`, latency ${e?.latency}ms`,b4=e=>`, latency ${e?.latency}ms`,x4=e=>`, latency ${e?.latency}ms`,S4=e=>`,延遲 ${e?.latency}ms`,C4=e=>`,延迟 ${e?.latency}ms`,w4=((e,t={})=>{let n=t.locale??m();return n===`en-US`?v4(e):n===`ja-JP`?y4(e):n===`ko-KR`?b4(e):n===`ru-RU`?x4(e):n===`zh-TW`?S4(e):C4(e)}),T4=()=>`Confirm`,E4=()=>`Confirm`,D4=()=>`Confirm`,O4=()=>`Confirm`,k4=()=>`確認`,A4=()=>`确认`,j4=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?T4(e):n===`ja-JP`?E4(e):n===`ko-KR`?D4(e):n===`ru-RU`?O4(e):n===`zh-TW`?k4(e):A4(e)}),M4=e=>`Perform “${e?.action}” on RPC node ${e?.url}.`,N4=e=>`Perform “${e?.action}” on RPC node ${e?.url}.`,P4=e=>`Perform “${e?.action}” on RPC node ${e?.url}.`,F4=e=>`Perform “${e?.action}” on RPC node ${e?.url}.`,I4=e=>`將對 RPC 節點 ${e?.url} 執行“${e?.action}”操作。`,L4=e=>`将对 RPC 节点 ${e?.url} 执行“${e?.action}”操作。`,R4=((e,t={})=>{let n=t.locale??m();return n===`en-US`?M4(e):n===`ja-JP`?N4(e):n===`ko-KR`?P4(e):n===`ru-RU`?F4(e):n===`zh-TW`?I4(e):L4(e)}),z4=()=>`Delete RPC Node`,B4=()=>`Delete RPC Node`,V4=()=>`Delete RPC Node`,H4=()=>`Delete RPC Node`,U4=()=>`刪除 RPC 節點`,W4=()=>`删除 RPC 节点`,G4=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?z4(e):n===`ja-JP`?B4(e):n===`ko-KR`?V4(e):n===`ru-RU`?H4(e):n===`zh-TW`?U4(e):W4(e)}),K4=()=>`Confirm RPC Node Action`,q4=()=>`Confirm RPC Node Action`,J4=()=>`Confirm RPC Node Action`,Y4=()=>`Confirm RPC Node Action`,X4=()=>`RPC 節點操作確認`,Z4=()=>`RPC 节点操作确认`,Q4=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?K4(e):n===`ja-JP`?q4(e):n===`ko-KR`?J4(e):n===`ru-RU`?Y4(e):n===`zh-TW`?X4(e):Z4(e)}),$4=()=>`Health Status`,e3=()=>`Health Status`,t3=()=>`Health Status`,n3=()=>`Health Status`,r3=()=>`健康狀態`,i3=()=>`健康状态`,a3=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$4(e):n===`ja-JP`?e3(e):n===`ko-KR`?t3(e):n===`ru-RU`?n3(e):n===`zh-TW`?r3(e):i3(e)}),o3=()=>`OK`,s3=()=>`OK`,c3=()=>`OK`,l3=()=>`OK`,u3=()=>`正常`,d3=()=>`正常`,f3=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?o3(e):n===`ja-JP`?s3(e):n===`ko-KR`?c3(e):n===`ru-RU`?l3(e):n===`zh-TW`?u3(e):d3(e)}),p3=()=>`Down`,m3=()=>`Down`,h3=()=>`Down`,g3=()=>`Down`,_3=()=>`異常`,v3=()=>`异常`,y3=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?p3(e):n===`ja-JP`?m3(e):n===`ko-KR`?h3(e):n===`ru-RU`?g3(e):n===`zh-TW`?_3(e):v3(e)}),b3=()=>`Unknown`,x3=()=>`Unknown`,S3=()=>`Unknown`,C3=()=>`Unknown`,w3=()=>`未知`,T3=()=>`未知`,E3=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?b3(e):n===`ja-JP`?x3(e):n===`ko-KR`?S3(e):n===`ru-RU`?C3(e):n===`zh-TW`?w3(e):T3(e)}),D3=()=>`Chain Network`,O3=()=>`Chain Network`,k3=()=>`Chain Network`,A3=()=>`Chain Network`,j3=()=>`鏈網路`,M3=()=>`链网络`,N3=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?D3(e):n===`ja-JP`?O3(e):n===`ko-KR`?k3(e):n===`ru-RU`?A3(e):n===`zh-TW`?j3(e):M3(e)}),P3=()=>`Connection Type`,F3=()=>`Connection Type`,I3=()=>`Connection Type`,L3=()=>`Connection Type`,R3=()=>`連線型別`,z3=()=>`连接类型`,B3=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?P3(e):n===`ja-JP`?F3(e):n===`ko-KR`?I3(e):n===`ru-RU`?L3(e):n===`zh-TW`?R3(e):z3(e)}),V3=()=>`Node URL`,H3=()=>`Node URL`,U3=()=>`Node URL`,W3=()=>`Node URL`,G3=()=>`節點 URL`,K3=()=>`节点 URL`,q3=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?V3(e):n===`ja-JP`?H3(e):n===`ko-KR`?U3(e):n===`ru-RU`?W3(e):n===`zh-TW`?G3(e):K3(e)}),J3=()=>`Weight`,Y3=()=>`Weight`,X3=()=>`Weight`,Z3=()=>`Weight`,Q3=()=>`權重`,$3=()=>`权重`,e6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?J3(e):n===`ja-JP`?Y3(e):n===`ko-KR`?X3(e):n===`ru-RU`?Z3(e):n===`zh-TW`?Q3(e):$3(e)}),t6=()=>`Latest Latency`,n6=()=>`Latest Latency`,r6=()=>`Latest Latency`,i6=()=>`Latest Latency`,a6=()=>`最近延遲`,o6=()=>`最近延迟`,s6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?t6(e):n===`ja-JP`?n6(e):n===`ko-KR`?r6(e):n===`ru-RU`?i6(e):n===`zh-TW`?a6(e):o6(e)}),c6=()=>`Last Checked At`,l6=()=>`Last Checked At`,u6=()=>`Last Checked At`,d6=()=>`Last Checked At`,f6=()=>`最近檢查時間`,p6=()=>`最近检查时间`,m6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?c6(e):n===`ja-JP`?l6(e):n===`ko-KR`?u6(e):n===`ru-RU`?d6(e):n===`zh-TW`?f6(e):p6(e)}),h6=()=>`Health Check`,g6=()=>`Health Check`,_6=()=>`Health Check`,v6=()=>`Health Check`,y6=()=>`健康檢查`,b6=()=>`健康检查`,x6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?h6(e):n===`ja-JP`?g6(e):n===`ko-KR`?_6(e):n===`ru-RU`?v6(e):n===`zh-TW`?y6(e):b6(e)}),S6=()=>`Search chain network or node URL...`,C6=()=>`Search chain network or node URL...`,w6=()=>`Search chain network or node URL...`,T6=()=>`Search chain network or node URL...`,E6=()=>`搜尋鏈網路或節點 URL...`,D6=()=>`搜索链网络或节点 URL...`,O6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?S6(e):n===`ja-JP`?C6(e):n===`ko-KR`?w6(e):n===`ru-RU`?T6(e):n===`zh-TW`?E6(e):D6(e)}),k6=()=>`No RPC node data`,A6=()=>`No RPC node data`,j6=()=>`No RPC node data`,M6=()=>`No RPC node data`,N6=()=>`暫無 RPC 節點資料`,P6=()=>`暂无 RPC 节点数据`,F6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?k6(e):n===`ja-JP`?A6(e):n===`ko-KR`?j6(e):n===`ru-RU`?M6(e):n===`zh-TW`?N6(e):P6(e)}),I6=()=>`Edit`,L6=()=>`Edit`,R6=()=>`Edit`,z6=()=>`Edit`,B6=()=>`編輯`,V6=()=>`编辑`,H6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?I6(e):n===`ja-JP`?L6(e):n===`ko-KR`?R6(e):n===`ru-RU`?z6(e):n===`zh-TW`?B6(e):V6(e)}),U6=()=>`Edit RPC Node`,W6=()=>`Edit RPC Node`,G6=()=>`Edit RPC Node`,K6=()=>`Edit RPC Node`,q6=()=>`編輯 RPC 節點`,J6=()=>`编辑 RPC 节点`,Y6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?U6(e):n===`ja-JP`?W6(e):n===`ko-KR`?G6(e):n===`ru-RU`?K6(e):n===`zh-TW`?q6(e):J6(e)}),X6=()=>`Add RPC Node`,Z6=()=>`Add RPC Node`,Q6=()=>`Add RPC Node`,$6=()=>`Add RPC Node`,e8=()=>`新增 RPC 節點`,t8=()=>`新增 RPC 节点`,n8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?X6(e):n===`ja-JP`?Z6(e):n===`ko-KR`?Q6(e):n===`ru-RU`?$6(e):n===`zh-TW`?e8(e):t8(e)}),r8=()=>`Modify RPC node configuration.`,i8=()=>`Modify RPC node configuration.`,a8=()=>`Modify RPC node configuration.`,o8=()=>`Modify RPC node configuration.`,s8=()=>`修改 RPC 節點配置。`,c8=()=>`修改 RPC 节点配置。`,l8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?r8(e):n===`ja-JP`?i8(e):n===`ko-KR`?a8(e):n===`ru-RU`?o8(e):n===`zh-TW`?s8(e):c8(e)}),u8=()=>`Configure a new RPC node.`,d8=()=>`Configure a new RPC node.`,f8=()=>`Configure a new RPC node.`,p8=()=>`Configure a new RPC node.`,m8=()=>`配置新的 RPC 節點資訊。`,h8=()=>`配置新的 RPC 节点信息。`,g8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?u8(e):n===`ja-JP`?d8(e):n===`ko-KR`?f8(e):n===`ru-RU`?p8(e):n===`zh-TW`?m8(e):h8(e)}),_8=()=>`Select type`,v8=()=>`Select type`,y8=()=>`Select type`,b8=()=>`Select type`,x8=()=>`選擇型別`,S8=()=>`选择类型`,C8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_8(e):n===`ja-JP`?v8(e):n===`ko-KR`?y8(e):n===`ru-RU`?b8(e):n===`zh-TW`?x8(e):S8(e)}),w8=()=>`Optional`,T8=()=>`Optional`,E8=()=>`Optional`,D8=()=>`Optional`,O8=()=>`可選`,k8=()=>`可选`,A8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?w8(e):n===`ja-JP`?T8(e):n===`ko-KR`?E8(e):n===`ru-RU`?D8(e):n===`zh-TW`?O8(e):k8(e)}),j8=()=>`Enable immediately after creation`,M8=()=>`Enable immediately after creation`,N8=()=>`Enable immediately after creation`,P8=()=>`Enable immediately after creation`,F8=()=>`建立後立即啟用`,I8=()=>`创建后立即启用`,L8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?j8(e):n===`ja-JP`?M8(e):n===`ko-KR`?N8(e):n===`ru-RU`?P8(e):n===`zh-TW`?F8(e):I8(e)}),R8=()=>`Disabled nodes will not participate in scheduling.`,z8=()=>`Disabled nodes will not participate in scheduling.`,B8=()=>`Disabled nodes will not participate in scheduling.`,V8=()=>`Disabled nodes will not participate in scheduling.`,H8=()=>`關閉後該節點不會參與排程。`,U8=()=>`关闭后该节点不会参与排程。`,W8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?R8(e):n===`ja-JP`?z8(e):n===`ko-KR`?B8(e):n===`ru-RU`?V8(e):n===`zh-TW`?H8(e):U8(e)}),G8=()=>`RPC node updated successfully`,K8=()=>`RPC node updated successfully`,q8=()=>`RPC node updated successfully`,J8=()=>`RPC node updated successfully`,Y8=()=>`RPC 節點更新成功`,X8=()=>`RPC 节点更新成功`,Z8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?G8(e):n===`ja-JP`?K8(e):n===`ko-KR`?q8(e):n===`ru-RU`?J8(e):n===`zh-TW`?Y8(e):X8(e)}),Q8=()=>`RPC node created successfully`,$8=()=>`RPC node created successfully`,e5=()=>`RPC node created successfully`,t5=()=>`RPC node created successfully`,n5=()=>`RPC 節點建立成功`,r5=()=>`RPC 节点创建成功`,i5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Q8(e):n===`ja-JP`?$8(e):n===`ko-KR`?e5(e):n===`ru-RU`?t5(e):n===`zh-TW`?n5(e):r5(e)}),a5=()=>`Please enter chain network`,o5=()=>`Please enter chain network`,s5=()=>`Please enter chain network`,c5=()=>`Please enter chain network`,l5=()=>`請輸入鏈網路`,u5=()=>`请输入链网络`,d5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?a5(e):n===`ja-JP`?o5(e):n===`ko-KR`?s5(e):n===`ru-RU`?c5(e):n===`zh-TW`?l5(e):u5(e)}),f5=()=>`Please enter a valid URL`,p5=()=>`Please enter a valid URL`,m5=()=>`Please enter a valid URL`,h5=()=>`Please enter a valid URL`,g5=()=>`請輸入合法 URL`,_5=()=>`请输入合法 URL`,v5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?f5(e):n===`ja-JP`?p5(e):n===`ko-KR`?m5(e):n===`ru-RU`?h5(e):n===`zh-TW`?g5(e):_5(e)}),y5=()=>`Weight must be at least 1`,b5=()=>`Weight must be at least 1`,x5=()=>`Weight must be at least 1`,S5=()=>`Weight must be at least 1`,C5=()=>`權重至少為 1`,w5=()=>`权重至少为 1`,T5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?y5(e):n===`ja-JP`?b5(e):n===`ko-KR`?x5(e):n===`ru-RU`?S5(e):n===`zh-TW`?C5(e):w5(e)}),E5=()=>`Node Purpose`,D5=()=>`Node Purpose`,O5=()=>`Node Purpose`,k5=()=>`Node Purpose`,A5=()=>`節點用途`,j5=()=>`节点用途`,M5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?E5(e):n===`ja-JP`?D5(e):n===`ko-KR`?O5(e):n===`ru-RU`?k5(e):n===`zh-TW`?A5(e):j5(e)}),N5=()=>`Select purpose`,P5=()=>`Select purpose`,F5=()=>`Select purpose`,I5=()=>`Select purpose`,L5=()=>`選擇用途`,R5=()=>`选择用途`,z5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?N5(e):n===`ja-JP`?P5(e):n===`ko-KR`?F5(e):n===`ru-RU`?I5(e):n===`zh-TW`?L5(e):R5(e)}),B5=()=>`General`,V5=()=>`General`,H5=()=>`General`,U5=()=>`General`,W5=()=>`通用`,G5=()=>`通用`,K5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?B5(e):n===`ja-JP`?V5(e):n===`ko-KR`?H5(e):n===`ru-RU`?U5(e):n===`zh-TW`?W5(e):G5(e)}),q5=()=>`Manual verification only`,J5=()=>`Manual verification only`,Y5=()=>`Manual verification only`,X5=()=>`Manual verification only`,Z5=()=>`補單專用`,Q5=()=>`补单专用`,$5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?q5(e):n===`ja-JP`?J5(e):n===`ko-KR`?Y5(e):n===`ru-RU`?X5(e):n===`zh-TW`?Z5(e):Q5(e)}),e7=()=>`General + manual verification`,t7=()=>`General + manual verification`,n7=()=>`General + manual verification`,r7=()=>`General + manual verification`,i7=()=>`通用 + 補單`,a7=()=>`通用 + 补单`,o7=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?e7(e):n===`ja-JP`?t7(e):n===`ko-KR`?n7(e):n===`ru-RU`?r7(e):n===`zh-TW`?i7(e):a7(e)}),s7=()=>`All`,c7=()=>`All`,l7=()=>`All`,u7=()=>`All`,d7=()=>`全部`,f7=()=>`全部`,p7=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?s7(e):n===`ja-JP`?c7(e):n===`ko-KR`?l7(e):n===`ru-RU`?u7(e):n===`zh-TW`?d7(e):f7(e)}),m7=()=>`Enabled`,h7=()=>`Enabled`,g7=()=>`Enabled`,_7=()=>`Enabled`,v7=()=>`已啟用`,y7=()=>`已启用`,b7=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?m7(e):n===`ja-JP`?h7(e):n===`ko-KR`?g7(e):n===`ru-RU`?_7(e):n===`zh-TW`?v7(e):y7(e)}),x7=()=>`Disabled`,S7=()=>`Disabled`,C7=()=>`Disabled`,w7=()=>`Disabled`,T7=()=>`已停用`,E7=()=>`已停用`,D7=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?x7(e):n===`ja-JP`?S7(e):n===`ko-KR`?C7(e):n===`ru-RU`?w7(e):n===`zh-TW`?T7(e):E7(e)}),O7=()=>`Deleted successfully`,k7=()=>`Deleted successfully`,A7=()=>`Deleted successfully`,j7=()=>`Deleted successfully`,M7=()=>`刪除成功`,N7=()=>`删除成功`,P7=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?O7(e):n===`ja-JP`?k7(e):n===`ko-KR`?A7(e):n===`ru-RU`?j7(e):n===`zh-TW`?M7(e):N7(e)}),F7=()=>`Failed to fetch secret key`,I7=()=>`Failed to fetch secret key`,L7=()=>`Failed to fetch secret key`,R7=()=>`Failed to fetch secret key`,z7=()=>`取得金鑰失敗`,B7=()=>`获取密钥失败`,V7=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?F7(e):n===`ja-JP`?I7(e):n===`ko-KR`?L7(e):n===`ru-RU`?R7(e):n===`zh-TW`?z7(e):B7(e)}),H7=()=>`Missing API Key ID`,U7=()=>`Missing API Key ID`,W7=()=>`Missing API Key ID`,G7=()=>`Missing API Key ID`,K7=()=>`缺少 API Key ID`,q7=()=>`缺少 API Key ID`,J7=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?H7(e):n===`ja-JP`?U7(e):n===`ko-KR`?W7(e):n===`ru-RU`?G7(e):n===`zh-TW`?K7(e):q7(e)}),Y7=()=>`No secret key available to copy`,X7=()=>`No secret key available to copy`,Z7=()=>`No secret key available to copy`,Q7=()=>`No secret key available to copy`,$7=()=>`暫無金鑰可複製`,e9=()=>`暂无密钥可复制`,t9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Y7(e):n===`ja-JP`?X7(e):n===`ko-KR`?Z7(e):n===`ru-RU`?Q7(e):n===`zh-TW`?$7(e):e9(e)}),n9=()=>`Secret key copied`,r9=()=>`Secret key copied`,i9=()=>`Secret key copied`,a9=()=>`Secret key copied`,o9=()=>`金鑰已複製`,s9=()=>`密钥已复制`,c9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?n9(e):n===`ja-JP`?r9(e):n===`ko-KR`?i9(e):n===`ru-RU`?a9(e):n===`zh-TW`?o9(e):s9(e)}),l9=()=>`Secret key rotated`,u9=()=>`Secret key rotated`,d9=()=>`Secret key rotated`,f9=()=>`Secret key rotated`,p9=()=>`金鑰已輪換`,m9=()=>`密钥已轮换`,h9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?l9(e):n===`ja-JP`?u9(e):n===`ko-KR`?d9(e):n===`ru-RU`?f9(e):n===`zh-TW`?p9(e):m9(e)}),g9=()=>`Create Key`,_9=()=>`Create Key`,v9=()=>`Create Key`,y9=()=>`Create Key`,b9=()=>`建立 Key`,x9=()=>`创建 Key`,S9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?g9(e):n===`ja-JP`?_9(e):n===`ko-KR`?v9(e):n===`ru-RU`?y9(e):n===`zh-TW`?b9(e):x9(e)}),C9=()=>`Manage payment keys, access restrictions, and callback URL settings.`,w9=()=>`Manage payment keys, access restrictions, and callback URL settings.`,T9=()=>`Manage payment keys, access restrictions, and callback URL settings.`,E9=()=>`Manage payment keys, access restrictions, and callback URL settings.`,D9=()=>`管理支付 Key、訪問限制與通知地址配置。`,O9=()=>`管理支付 Key、访问限制与通知地址配置。`,k9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?C9(e):n===`ja-JP`?w9(e):n===`ko-KR`?T9(e):n===`ru-RU`?E9(e):n===`zh-TW`?D9(e):O9(e)}),A9=()=>`Payment Management`,j9=()=>`Payment Management`,M9=()=>`Payment Management`,N9=()=>`Payment Management`,P9=()=>`支付管理`,F9=()=>`支付管理`,I9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?A9(e):n===`ja-JP`?j9(e):n===`ko-KR`?M9(e):n===`ru-RU`?N9(e):n===`zh-TW`?P9(e):F9(e)}),L9=()=>`Search PID, name, or callback URL...`,R9=()=>`Search PID, name, or callback URL...`,z9=()=>`Search PID, name, or callback URL...`,B9=()=>`Search PID, name, or callback URL...`,V9=()=>`搜尋 PID、名稱或通知地址...`,H9=()=>`搜索 PID、名称或通知地址...`,U9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?L9(e):n===`ja-JP`?R9(e):n===`ko-KR`?z9(e):n===`ru-RU`?B9(e):n===`zh-TW`?V9(e):H9(e)}),W9=()=>`Ascending`,G9=()=>`Ascending`,K9=()=>`Ascending`,q9=()=>`Ascending`,J9=()=>`Ascending`,Y9=()=>`Ascending`,X9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?W9(e):n===`ja-JP`?G9(e):n===`ko-KR`?K9(e):n===`ru-RU`?q9(e):n===`zh-TW`?J9(e):Y9(e)}),Z9=()=>`Descending`,Q9=()=>`Descending`,$9=()=>`Descending`,tee=()=>`Descending`,nee=()=>`Descending`,ree=()=>`Descending`,iee=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Z9(e):n===`ja-JP`?Q9(e):n===`ko-KR`?$9(e):n===`ru-RU`?tee(e):n===`zh-TW`?nee(e):ree(e)}),aee=()=>`Delete`,oee=()=>`Delete`,see=()=>`Delete`,cee=()=>`Delete`,lee=()=>`刪除`,uee=()=>`删除`,dee=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?aee(e):n===`ja-JP`?oee(e):n===`ko-KR`?see(e):n===`ru-RU`?cee(e):n===`zh-TW`?lee(e):uee(e)}),fee=()=>`Confirm`,pee=()=>`Confirm`,mee=()=>`Confirm`,hee=()=>`Confirm`,gee=()=>`確認`,_ee=()=>`确认`,vee=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fee(e):n===`ja-JP`?pee(e):n===`ko-KR`?mee(e):n===`ru-RU`?hee(e):n===`zh-TW`?gee(e):_ee(e)}),yee=e=>`Perform “${e?.action}” on ${e?.target}.`,bee=e=>`Perform “${e?.action}” on ${e?.target}.`,xee=e=>`Perform “${e?.action}” on ${e?.target}.`,See=e=>`Perform “${e?.action}” on ${e?.target}.`,Cee=e=>`將對 ${e?.target} 執行“${e?.action}”操作。`,wee=e=>`将对 ${e?.target} 执行“${e?.action}”操作。`,Tee=((e,t={})=>{let n=t.locale??m();return n===`en-US`?yee(e):n===`ja-JP`?bee(e):n===`ko-KR`?xee(e):n===`ru-RU`?See(e):n===`zh-TW`?Cee(e):wee(e)}),Eee=()=>`Delete API Key`,Dee=()=>`Delete API Key`,Oee=()=>`Delete API Key`,kee=()=>`Delete API Key`,Aee=()=>`刪除 API Key`,jee=()=>`删除 API Key`,Mee=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Eee(e):n===`ja-JP`?Dee(e):n===`ko-KR`?Oee(e):n===`ru-RU`?kee(e):n===`zh-TW`?Aee(e):jee(e)}),Nee=()=>`Confirm API Key Action`,Pee=()=>`Confirm API Key Action`,Fee=()=>`Confirm API Key Action`,Iee=()=>`Confirm API Key Action`,Lee=()=>`API Key 操作確認`,Ree=()=>`API Key 操作确认`,zee=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Nee(e):n===`ja-JP`?Pee(e):n===`ko-KR`?Fee(e):n===`ru-RU`?Iee(e):n===`zh-TW`?Lee(e):Ree(e)}),Bee=()=>`API Key Stats`,Vee=()=>`API Key Stats`,Hee=()=>`API Key Stats`,Uee=()=>`API Key Stats`,Wee=()=>`API Key 統計`,Gee=()=>`API Key 统计`,Kee=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Bee(e):n===`ja-JP`?Vee(e):n===`ko-KR`?Hee(e):n===`ru-RU`?Uee(e):n===`zh-TW`?Wee(e):Gee(e)}),qee=()=>`Call Count`,Jee=()=>`Call Count`,Yee=()=>`Call Count`,Xee=()=>`Call Count`,Zee=()=>`呼叫次數`,Qee=()=>`呼叫次数`,$ee=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qee(e):n===`ja-JP`?Jee(e):n===`ko-KR`?Yee(e):n===`ru-RU`?Xee(e):n===`zh-TW`?Zee(e):Qee(e)}),ete=()=>`Last Used`,tte=()=>`Last Used`,nte=()=>`Last Used`,rte=()=>`Last Used`,ite=()=>`最近使用`,ate=()=>`最近使用`,ote=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ete(e):n===`ja-JP`?tte(e):n===`ko-KR`?nte(e):n===`ru-RU`?rte(e):n===`zh-TW`?ite(e):ate(e)}),ste=()=>`No records`,cte=()=>`No records`,lte=()=>`No records`,ute=()=>`No records`,dte=()=>`暫無記錄`,fte=()=>`暂无记录`,pte=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ste(e):n===`ja-JP`?cte(e):n===`ko-KR`?lte(e):n===`ru-RU`?ute(e):n===`zh-TW`?dte(e):fte(e)}),mte=()=>`No API Keys`,hte=()=>`No API Keys`,gte=()=>`No API Keys`,_te=()=>`No API Keys`,vte=()=>`暫無 API Key`,yte=()=>`暂无 API Key`,bte=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mte(e):n===`ja-JP`?hte(e):n===`ko-KR`?gte(e):n===`ru-RU`?_te(e):n===`zh-TW`?vte(e):yte(e)}),xte=()=>`Loading...`,Ste=()=>`Loading...`,Cte=()=>`Loading...`,wte=()=>`Loading...`,Tte=()=>`載入中...`,Ete=()=>`加载中...`,Dte=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xte(e):n===`ja-JP`?Ste(e):n===`ko-KR`?Cte(e):n===`ru-RU`?wte(e):n===`zh-TW`?Tte(e):Ete(e)}),Ote=()=>`Callback URL`,kte=()=>`Callback URL`,Ate=()=>`Callback URL`,jte=()=>`Callback URL`,Mte=()=>`回呼地址`,Nte=()=>`回调地址`,Pte=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ote(e):n===`ja-JP`?kte(e):n===`ko-KR`?Ate(e):n===`ru-RU`?jte(e):n===`zh-TW`?Mte(e):Nte(e)}),Fte=()=>`IP Whitelist`,Ite=()=>`IP Whitelist`,Lte=()=>`IP Whitelist`,Rte=()=>`IP Whitelist`,zte=()=>`IP 白名單`,Bte=()=>`IP 白名单`,Vte=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Fte(e):n===`ja-JP`?Ite(e):n===`ko-KR`?Lte(e):n===`ru-RU`?Rte(e):n===`zh-TW`?zte(e):Bte(e)}),Hte=()=>`Secret`,Ute=()=>`Secret`,Wte=()=>`Secret`,Gte=()=>`Secret`,Kte=()=>`金鑰`,qte=()=>`密钥`,Jte=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hte(e):n===`ja-JP`?Ute(e):n===`ko-KR`?Wte(e):n===`ru-RU`?Gte(e):n===`zh-TW`?Kte(e):qte(e)}),Yte=()=>`Edit`,Xte=()=>`Edit`,Zte=()=>`Edit`,Qte=()=>`Edit`,$te=()=>`編輯`,ene=()=>`编辑`,tne=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yte(e):n===`ja-JP`?Xte(e):n===`ko-KR`?Zte(e):n===`ru-RU`?Qte(e):n===`zh-TW`?$te(e):ene(e)}),nne=()=>`Rotate Secret`,rne=()=>`Rotate Secret`,ine=()=>`Rotate Secret`,ane=()=>`Rotate Secret`,one=()=>`輪換金鑰`,sne=()=>`轮换密钥`,cne=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nne(e):n===`ja-JP`?rne(e):n===`ko-KR`?ine(e):n===`ru-RU`?ane(e):n===`zh-TW`?one(e):sne(e)}),lne=()=>`Name`,une=()=>`Name`,dne=()=>`Name`,fne=()=>`Name`,pne=()=>`名稱`,mne=()=>`名称`,hne=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lne(e):n===`ja-JP`?une(e):n===`ko-KR`?dne(e):n===`ru-RU`?fne(e):n===`zh-TW`?pne(e):mne(e)}),gne=()=>`My App`,_ne=()=>`My App`,vne=()=>`My App`,yne=()=>`My App`,bne=()=>`我的應用`,xne=()=>`我的应用`,Sne=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gne(e):n===`ja-JP`?_ne(e):n===`ko-KR`?vne(e):n===`ru-RU`?yne(e):n===`zh-TW`?bne(e):xne(e)}),Cne=()=>`Edit API Key`,wne=()=>`Edit API Key`,Tne=()=>`Edit API Key`,Ene=()=>`Edit API Key`,Dne=()=>`編輯 API Key`,One=()=>`编辑 API Key`,kne=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Cne(e):n===`ja-JP`?wne(e):n===`ko-KR`?Tne(e):n===`ru-RU`?Ene(e):n===`zh-TW`?Dne(e):One(e)}),Ane=()=>`Create API Key`,jne=()=>`Create API Key`,Mne=()=>`Create API Key`,Nne=()=>`Create API Key`,Pne=()=>`建立 API Key`,Fne=()=>`创建 API Key`,Ine=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ane(e):n===`ja-JP`?jne(e):n===`ko-KR`?Mne(e):n===`ru-RU`?Nne(e):n===`zh-TW`?Pne(e):Fne(e)}),Lne=()=>`Modify API Key configuration.`,Rne=()=>`Modify API Key configuration.`,zne=()=>`Modify API Key configuration.`,Bne=()=>`Modify API Key configuration.`,Vne=()=>`修改 API Key 配置。`,Hne=()=>`修改 API Key 配置。`,Une=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Lne(e):n===`ja-JP`?Rne(e):n===`ko-KR`?zne(e):n===`ru-RU`?Bne(e):n===`zh-TW`?Vne(e):Hne(e)}),Wne=()=>`Create a new API secret key.`,Gne=()=>`Create a new API secret key.`,Kne=()=>`Create a new API secret key.`,qne=()=>`Create a new API secret key.`,Jne=()=>`建立新的 API 金鑰。`,Yne=()=>`创建新的 API 密钥。`,Xne=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Wne(e):n===`ja-JP`?Gne(e):n===`ko-KR`?Kne(e):n===`ru-RU`?qne(e):n===`zh-TW`?Jne(e):Yne(e)}),Zne=()=>`IP Whitelist (Optional)`,Qne=()=>`IP Whitelist (Optional)`,$ne=()=>`IP Whitelist (Optional)`,ere=()=>`IP Whitelist (Optional)`,tre=()=>`IP 白名單(選填)`,nre=()=>`IP 白名单(选填)`,rre=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Zne(e):n===`ja-JP`?Qne(e):n===`ko-KR`?$ne(e):n===`ru-RU`?ere(e):n===`zh-TW`?tre(e):nre(e)}),ire=()=>`⚠️ Secret Key is shown only once, please save it immediately`,are=()=>`⚠️ Secret Key is shown only once, please save it immediately`,ore=()=>`⚠️ Secret Key is shown only once, please save it immediately`,sre=()=>`⚠️ Secret Key is shown only once, please save it immediately`,cre=()=>`⚠️ Secret Key,僅展示一次,請立即儲存`,lre=()=>`⚠️ Secret Key,仅展示一次,请立即保存`,ure=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ire(e):n===`ja-JP`?are(e):n===`ko-KR`?ore(e):n===`ru-RU`?sre(e):n===`zh-TW`?cre(e):lre(e)}),dre=()=>`Close`,fre=()=>`Close`,pre=()=>`Close`,mre=()=>`Close`,hre=()=>`關閉`,gre=()=>`关闭`,_re=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dre(e):n===`ja-JP`?fre(e):n===`ko-KR`?pre(e):n===`ru-RU`?mre(e):n===`zh-TW`?hre(e):gre(e)}),vre=()=>`Save Changes`,yre=()=>`Save Changes`,bre=()=>`Save Changes`,xre=()=>`Save Changes`,Sre=()=>`儲存修改`,Cre=()=>`保存修改`,wre=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vre(e):n===`ja-JP`?yre(e):n===`ko-KR`?bre(e):n===`ru-RU`?xre(e):n===`zh-TW`?Sre(e):Cre(e)}),Tre=()=>`Create Key`,Ere=()=>`Create Key`,Dre=()=>`Create Key`,Ore=()=>`Create Key`,kre=()=>`建立 Key`,Are=()=>`创建 Key`,jre=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Tre(e):n===`ja-JP`?Ere(e):n===`ko-KR`?Dre(e):n===`ru-RU`?Ore(e):n===`zh-TW`?kre(e):Are(e)}),Mre=()=>`API Key updated successfully`,Nre=()=>`API Key updated successfully`,Pre=()=>`API Key updated successfully`,Fre=()=>`API Key updated successfully`,Ire=()=>`API Key 更新成功`,Lre=()=>`API Key 更新成功`,Rre=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Mre(e):n===`ja-JP`?Nre(e):n===`ko-KR`?Pre(e):n===`ru-RU`?Fre(e):n===`zh-TW`?Ire(e):Lre(e)}),zre=()=>`API Key created successfully`,Bre=()=>`API Key created successfully`,Vre=()=>`API Key created successfully`,Hre=()=>`API Key created successfully`,Ure=()=>`API Key 建立成功`,Wre=()=>`API Key 创建成功`,Gre=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zre(e):n===`ja-JP`?Bre(e):n===`ko-KR`?Vre(e):n===`ru-RU`?Hre(e):n===`zh-TW`?Ure(e):Wre(e)}),Kre=()=>`Please enter a name`,qre=()=>`Please enter a name`,Jre=()=>`Please enter a name`,Yre=()=>`Please enter a name`,Xre=()=>`請輸入名稱`,Zre=()=>`请输入名称`,Qre=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Kre(e):n===`ja-JP`?qre(e):n===`ko-KR`?Jre(e):n===`ru-RU`?Yre(e):n===`zh-TW`?Xre(e):Zre(e)}),$re=e=>`${e?.action} succeeded`,eie=e=>`${e?.action} succeeded`,tie=e=>`${e?.action} succeeded`,nie=e=>`${e?.action} succeeded`,rie=e=>`${e?.action}成功`,iie=e=>`${e?.action}成功`,aie=((e,t={})=>{let n=t.locale??m();return n===`en-US`?$re(e):n===`ja-JP`?eie(e):n===`ko-KR`?tie(e):n===`ru-RU`?nie(e):n===`zh-TW`?rie(e):iie(e)}),oie=()=>`Please enter your current password`,sie=()=>`Please enter your current password`,cie=()=>`Please enter your current password`,lie=()=>`Please enter your current password`,uie=()=>`請輸入當前密碼`,die=()=>`请输入当前密码`,fie=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?oie(e):n===`ja-JP`?sie(e):n===`ko-KR`?cie(e):n===`ru-RU`?lie(e):n===`zh-TW`?uie(e):die(e)}),pie=()=>`New password must be at least 8 characters`,mie=()=>`New password must be at least 8 characters`,hie=()=>`New password must be at least 8 characters`,gie=()=>`New password must be at least 8 characters`,_ie=()=>`新密碼至少 8 位`,vie=()=>`新密码至少 8 位`,yie=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pie(e):n===`ja-JP`?mie(e):n===`ko-KR`?hie(e):n===`ru-RU`?gie(e):n===`zh-TW`?_ie(e):vie(e)}),bie=()=>`Please confirm your new password`,xie=()=>`Please confirm your new password`,Sie=()=>`Please confirm your new password`,Cie=()=>`Please confirm your new password`,wie=()=>`請確認新密碼`,Tie=()=>`请确认新密码`,Eie=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bie(e):n===`ja-JP`?xie(e):n===`ko-KR`?Sie(e):n===`ru-RU`?Cie(e):n===`zh-TW`?wie(e):Tie(e)}),Die=()=>`The two passwords do not match`,Oie=()=>`The two passwords do not match`,kie=()=>`The two passwords do not match`,Aie=()=>`The two passwords do not match`,jie=()=>`兩次輸入的密碼不一致`,Mie=()=>`两次输入的密码不一致`,Nie=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Die(e):n===`ja-JP`?Oie(e):n===`ko-KR`?kie(e):n===`ru-RU`?Aie(e):n===`zh-TW`?jie(e):Mie(e)}),Pie=()=>`Password updated successfully`,Fie=()=>`Password updated successfully`,Iie=()=>`Password updated successfully`,Lie=()=>`Password updated successfully`,Rie=()=>`密碼修改成功`,zie=()=>`密码修改成功`,Bie=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Pie(e):n===`ja-JP`?Fie(e):n===`ko-KR`?Iie(e):n===`ru-RU`?Lie(e):n===`zh-TW`?Rie(e):zie(e)}),Vie=()=>`Current password`,Hie=()=>`Current password`,Uie=()=>`Current password`,Wie=()=>`Current password`,Gie=()=>`當前密碼`,Kie=()=>`当前密码`,qie=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Vie(e):n===`ja-JP`?Hie(e):n===`ko-KR`?Uie(e):n===`ru-RU`?Wie(e):n===`zh-TW`?Gie(e):Kie(e)}),Jie=()=>`Enter current password`,Yie=()=>`Enter current password`,Xie=()=>`Enter current password`,Zie=()=>`Enter current password`,Qie=()=>`輸入當前密碼`,$ie=()=>`输入当前密码`,eae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Jie(e):n===`ja-JP`?Yie(e):n===`ko-KR`?Xie(e):n===`ru-RU`?Zie(e):n===`zh-TW`?Qie(e):$ie(e)}),tae=()=>`New password`,nae=()=>`New password`,rae=()=>`New password`,iae=()=>`New password`,aae=()=>`新密碼`,oae=()=>`新密码`,sae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tae(e):n===`ja-JP`?nae(e):n===`ko-KR`?rae(e):n===`ru-RU`?iae(e):n===`zh-TW`?aae(e):oae(e)}),cae=()=>`At least 8 characters`,lae=()=>`At least 8 characters`,uae=()=>`At least 8 characters`,dae=()=>`At least 8 characters`,fae=()=>`至少 8 位`,pae=()=>`至少 8 位`,mae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cae(e):n===`ja-JP`?lae(e):n===`ko-KR`?uae(e):n===`ru-RU`?dae(e):n===`zh-TW`?fae(e):pae(e)}),hae=()=>`Confirm new password`,gae=()=>`Confirm new password`,_ae=()=>`Confirm new password`,vae=()=>`Confirm new password`,yae=()=>`確認新密碼`,bae=()=>`确认新密码`,xae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hae(e):n===`ja-JP`?gae(e):n===`ko-KR`?_ae(e):n===`ru-RU`?vae(e):n===`zh-TW`?yae(e):bae(e)}),Sae=()=>`Enter new password again`,Cae=()=>`Enter new password again`,wae=()=>`Enter new password again`,Tae=()=>`Enter new password again`,Eae=()=>`再次輸入新密碼`,Dae=()=>`再次输入新密码`,Oae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Sae(e):n===`ja-JP`?Cae(e):n===`ko-KR`?wae(e):n===`ru-RU`?Tae(e):n===`zh-TW`?Eae(e):Dae(e)}),kae=()=>`Saving…`,Aae=()=>`Saving…`,jae=()=>`Saving…`,Mae=()=>`Saving…`,Nae=()=>`儲存中…`,Pae=()=>`保存中…`,Fae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kae(e):n===`ja-JP`?Aae(e):n===`ko-KR`?jae(e):n===`ru-RU`?Mae(e):n===`zh-TW`?Nae(e):Pae(e)}),Iae=()=>`Save changes`,Lae=()=>`Save changes`,Rae=()=>`Save changes`,zae=()=>`Save changes`,Bae=()=>`儲存修改`,Vae=()=>`保存修改`,Hae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Iae(e):n===`ja-JP`?Lae(e):n===`ko-KR`?Rae(e):n===`ru-RU`?zae(e):n===`zh-TW`?Bae(e):Vae(e)}),Uae=()=>`System Settings`,Wae=()=>`System Settings`,Gae=()=>`System Settings`,Kae=()=>`System Settings`,qae=()=>`系統配置`,Jae=()=>`系统配置`,Yae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Uae(e):n===`ja-JP`?Wae(e):n===`ko-KR`?Gae(e):n===`ru-RU`?Kae(e):n===`zh-TW`?qae(e):Jae(e)}),Xae=()=>`Manage checkout basics, Telegram notifications, exchange rate strategy, and payment parameters in one place.`,Zae=()=>`Manage checkout basics, Telegram notifications, exchange rate strategy, and payment parameters in one place.`,Qae=()=>`Manage checkout basics, Telegram notifications, exchange rate strategy, and payment parameters in one place.`,$ae=()=>`Manage checkout basics, Telegram notifications, exchange rate strategy, and payment parameters in one place.`,eoe=()=>`集中管理收銀臺基礎配置、Telegram 通知、匯率策略與收款引數。`,toe=()=>`集中管理收银台基础配置、Telegram 通知、汇率策略与收款参数。`,noe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Xae(e):n===`ja-JP`?Zae(e):n===`ko-KR`?Qae(e):n===`ru-RU`?$ae(e):n===`zh-TW`?eoe(e):toe(e)}),roe=()=>`Configure checkout display information.`,ioe=()=>`Configure checkout display information.`,aoe=()=>`Configure checkout display information.`,ooe=()=>`Configure checkout display information.`,soe=()=>`配置收銀臺展示資訊。`,coe=()=>`配置收银台展示信息。`,loe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?roe(e):n===`ja-JP`?ioe(e):n===`ko-KR`?aoe(e):n===`ru-RU`?ooe(e):n===`zh-TW`?soe(e):coe(e)}),uoe=()=>`Please enter the checkout name`,doe=()=>`Please enter the checkout name`,foe=()=>`Please enter the checkout name`,poe=()=>`Please enter the checkout name`,moe=()=>`請輸入收銀臺名稱`,hoe=()=>`请输入收银台名称`,goe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?uoe(e):n===`ja-JP`?doe(e):n===`ko-KR`?foe(e):n===`ru-RU`?poe(e):n===`zh-TW`?moe(e):hoe(e)}),_oe=()=>`Please enter a valid logo URL`,voe=()=>`Please enter a valid logo URL`,yoe=()=>`Please enter a valid logo URL`,boe=()=>`Please enter a valid logo URL`,xoe=()=>`請輸入合法 Logo 地址`,Soe=()=>`请输入有效 Logo 地址`,Coe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_oe(e):n===`ja-JP`?voe(e):n===`ko-KR`?yoe(e):n===`ru-RU`?boe(e):n===`zh-TW`?xoe(e):Soe(e)}),woe=()=>`Please enter the site title`,Toe=()=>`Please enter the site title`,Eoe=()=>`Please enter the site title`,Doe=()=>`Please enter the site title`,Ooe=()=>`請輸入網站標題`,koe=()=>`请输入网站标题`,Aoe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?woe(e):n===`ja-JP`?Toe(e):n===`ko-KR`?Eoe(e):n===`ru-RU`?Doe(e):n===`zh-TW`?Ooe(e):koe(e)}),joe=()=>`Please enter a valid support URL`,Moe=()=>`Please enter a valid support URL`,Noe=()=>`Please enter a valid support URL`,Poe=()=>`Please enter a valid support URL`,Foe=()=>`請輸入合法客服連結`,Ioe=()=>`请输入有效客服链接`,Loe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?joe(e):n===`ja-JP`?Moe(e):n===`ko-KR`?Noe(e):n===`ru-RU`?Poe(e):n===`zh-TW`?Foe(e):Ioe(e)}),Roe=()=>`Base settings reset to defaults`,zoe=()=>`Base settings reset to defaults`,Boe=()=>`Base settings reset to defaults`,Voe=()=>`Base settings reset to defaults`,Hoe=()=>`基礎配置已重置為預設值`,Uoe=()=>`基础配置已重置为默认值`,Woe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Roe(e):n===`ja-JP`?zoe(e):n===`ko-KR`?Boe(e):n===`ru-RU`?Voe(e):n===`zh-TW`?Hoe(e):Uoe(e)}),Goe=()=>`Base settings saved`,Koe=()=>`Base settings saved`,qoe=()=>`Base settings saved`,Joe=()=>`Base settings saved`,Yoe=()=>`基礎配置已儲存`,Xoe=()=>`基础配置已保存`,Zoe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Goe(e):n===`ja-JP`?Koe(e):n===`ko-KR`?qoe(e):n===`ru-RU`?Joe(e):n===`zh-TW`?Yoe(e):Xoe(e)}),Qoe=()=>`Checkout name`,$oe=()=>`Checkout name`,ese=()=>`Checkout name`,tse=()=>`Checkout name`,nse=()=>`收銀臺名稱`,rse=()=>`收银台名称`,ise=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Qoe(e):n===`ja-JP`?$oe(e):n===`ko-KR`?ese(e):n===`ru-RU`?tse(e):n===`zh-TW`?nse(e):rse(e)}),ase=()=>`Logo URL`,ose=()=>`Logo URL`,sse=()=>`Logo URL`,cse=()=>`Logo URL`,lse=()=>`Logo URL`,use=()=>`Logo URL`,dse=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ase(e):n===`ja-JP`?ose(e):n===`ko-KR`?sse(e):n===`ru-RU`?cse(e):n===`zh-TW`?lse(e):use(e)}),fse=()=>`Site title`,pse=()=>`Site title`,mse=()=>`Site title`,hse=()=>`Site title`,gse=()=>`網站標題`,_se=()=>`网站标题`,vse=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fse(e):n===`ja-JP`?pse(e):n===`ko-KR`?mse(e):n===`ru-RU`?hse(e):n===`zh-TW`?gse(e):_se(e)}),yse=()=>`Support URL`,bse=()=>`Support URL`,xse=()=>`Support URL`,Sse=()=>`Support URL`,Cse=()=>`客服連結`,wse=()=>`客服链接`,Tse=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yse(e):n===`ja-JP`?bse(e):n===`ko-KR`?xse(e):n===`ru-RU`?Sse(e):n===`zh-TW`?Cse(e):wse(e)}),Ese=()=>`Background color`,Dse=()=>`Background color`,Ose=()=>`Background color`,kse=()=>`Background color`,Ase=()=>`背景顏色`,jse=()=>`背景颜色`,Mse=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ese(e):n===`ja-JP`?Dse(e):n===`ko-KR`?Ose(e):n===`ru-RU`?kse(e):n===`zh-TW`?Ase(e):jse(e)}),Nse=()=>`Supports rgba() and hex alpha values. Leave empty to use the default background.`,Pse=()=>`Supports rgba() and hex alpha values. Leave empty to use the default background.`,Fse=()=>`Supports rgba() and hex alpha values. Leave empty to use the default background.`,Ise=()=>`Supports rgba() and hex alpha values. Leave empty to use the default background.`,Lse=()=>`支援 rgba() 和帶透明度的 hex 值。留空則使用預設背景。`,Rse=()=>`支持 rgba() 和带透明度的 hex 值。留空则使用默认背景。`,zse=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Nse(e):n===`ja-JP`?Pse(e):n===`ko-KR`?Fse(e):n===`ru-RU`?Ise(e):n===`zh-TW`?Lse(e):Rse(e)}),Bse=()=>`Please enter a valid color`,Vse=()=>`Please enter a valid color`,Hse=()=>`Please enter a valid color`,Use=()=>`Please enter a valid color`,Wse=()=>`請輸入有效顏色`,Gse=()=>`请输入有效颜色`,Kse=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Bse(e):n===`ja-JP`?Vse(e):n===`ko-KR`?Hse(e):n===`ru-RU`?Use(e):n===`zh-TW`?Wse(e):Gse(e)}),qse=()=>`Background image URL`,Jse=()=>`Background image URL`,Yse=()=>`Background image URL`,Xse=()=>`Background image URL`,Zse=()=>`背景圖 URL`,Qse=()=>`背景图 URL`,$se=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qse(e):n===`ja-JP`?Jse(e):n===`ko-KR`?Yse(e):n===`ru-RU`?Xse(e):n===`zh-TW`?Zse(e):Qse(e)}),ece=()=>`Please enter a valid background image URL`,tce=()=>`Please enter a valid background image URL`,nce=()=>`Please enter a valid background image URL`,rce=()=>`Please enter a valid background image URL`,ice=()=>`請輸入有效背景圖地址`,ace=()=>`请输入有效背景图地址`,oce=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ece(e):n===`ja-JP`?tce(e):n===`ko-KR`?nce(e):n===`ru-RU`?rce(e):n===`zh-TW`?ice(e):ace(e)}),sce=()=>`Save base settings`,cce=()=>`Save base settings`,lce=()=>`Save base settings`,uce=()=>`Save base settings`,dce=()=>`儲存基礎配置`,fce=()=>`保存基础配置`,pce=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sce(e):n===`ja-JP`?cce(e):n===`ko-KR`?lce(e):n===`ru-RU`?uce(e):n===`zh-TW`?dce(e):fce(e)}),mce=()=>`Reset to defaults`,hce=()=>`Reset to defaults`,gce=()=>`Reset to defaults`,_ce=()=>`Reset to defaults`,vce=()=>`重置為預設值`,yce=()=>`重置为默认值`,bce=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mce(e):n===`ja-JP`?hce(e):n===`ko-KR`?gce(e):n===`ru-RU`?_ce(e):n===`zh-TW`?vce(e):yce(e)}),xce=()=>`System Logs`,Sce=()=>`System Logs`,Cce=()=>`System Logs`,wce=()=>`System Logs`,Tce=()=>`系統日誌`,Ece=()=>`系统日志`,Dce=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xce(e):n===`ja-JP`?Sce(e):n===`ko-KR`?Cce(e):n===`ru-RU`?wce(e):n===`zh-TW`?Tce(e):Ece(e)}),Oce=()=>`Configure runtime log output.`,kce=()=>`Configure runtime log output.`,Ace=()=>`Configure runtime log output.`,jce=()=>`Configure runtime log output.`,Mce=()=>`配置執行時日誌輸出。`,Nce=()=>`配置运行时日志输出。`,Pce=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Oce(e):n===`ja-JP`?kce(e):n===`ko-KR`?Ace(e):n===`ru-RU`?jce(e):n===`zh-TW`?Mce(e):Nce(e)}),Fce=()=>`System log settings saved`,Ice=()=>`System log settings saved`,Lce=()=>`System log settings saved`,Rce=()=>`System log settings saved`,zce=()=>`系統日誌配置已儲存`,Bce=()=>`系统日志配置已保存`,Vce=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Fce(e):n===`ja-JP`?Ice(e):n===`ko-KR`?Lce(e):n===`ru-RU`?Rce(e):n===`zh-TW`?zce(e):Bce(e)}),Hce=()=>`System log settings reset to defaults`,Uce=()=>`System log settings reset to defaults`,Wce=()=>`System log settings reset to defaults`,Gce=()=>`System log settings reset to defaults`,Kce=()=>`系統日誌配置已重置為預設值`,qce=()=>`系统日志配置已重置为默认值`,Jce=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hce(e):n===`ja-JP`?Uce(e):n===`ko-KR`?Wce(e):n===`ru-RU`?Gce(e):n===`zh-TW`?Kce(e):qce(e)}),Yce=()=>`Save system log settings`,Xce=()=>`Save system log settings`,Zce=()=>`Save system log settings`,Qce=()=>`Save system log settings`,$ce=()=>`儲存系統日誌配置`,ele=()=>`保存系统日志配置`,tle=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yce(e):n===`ja-JP`?Xce(e):n===`ko-KR`?Zce(e):n===`ru-RU`?Qce(e):n===`zh-TW`?$ce(e):ele(e)}),nle=()=>`Reset to defaults`,rle=()=>`Reset to defaults`,ile=()=>`Reset to defaults`,ale=()=>`Reset to defaults`,ole=()=>`重置為預設值`,sle=()=>`重置为默认值`,cle=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nle(e):n===`ja-JP`?rle(e):n===`ko-KR`?ile(e):n===`ru-RU`?ale(e):n===`zh-TW`?ole(e):sle(e)}),lle=()=>`Used for payment notifications and exception alerts.`,ule=()=>`Used for payment notifications and exception alerts.`,dle=()=>`Used for payment notifications and exception alerts.`,fle=()=>`Used for payment notifications and exception alerts.`,ple=()=>`用於收款通知與異常提醒推送。`,mle=()=>`用于收款通知与异常提醒推送。`,hle=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lle(e):n===`ja-JP`?ule(e):n===`ko-KR`?dle(e):n===`ru-RU`?fle(e):n===`zh-TW`?ple(e):mle(e)}),gle=()=>`Please enter the Bot Token`,_le=()=>`Please enter the Bot Token`,vle=()=>`Please enter the Bot Token`,yle=()=>`Please enter the Bot Token`,ble=()=>`請輸入 Bot Token`,xle=()=>`请输入 Bot Token`,Sle=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gle(e):n===`ja-JP`?_le(e):n===`ko-KR`?vle(e):n===`ru-RU`?yle(e):n===`zh-TW`?ble(e):xle(e)}),Cle=()=>`Please enter the Chat ID`,wle=()=>`Please enter the Chat ID`,Tle=()=>`Please enter the Chat ID`,Ele=()=>`Please enter the Chat ID`,Dle=()=>`請輸入 Chat ID`,Ole=()=>`请输入 Chat ID`,kle=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Cle(e):n===`ja-JP`?wle(e):n===`ko-KR`?Tle(e):n===`ru-RU`?Ele(e):n===`zh-TW`?Dle(e):Ole(e)}),Ale=()=>`Telegram settings saved`,jle=()=>`Telegram settings saved`,Mle=()=>`Telegram settings saved`,Nle=()=>`Telegram settings saved`,Ple=()=>`Telegram 配置已儲存`,Fle=()=>`Telegram 配置已保存`,Ile=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ale(e):n===`ja-JP`?jle(e):n===`ko-KR`?Mle(e):n===`ru-RU`?Nle(e):n===`zh-TW`?Ple(e):Fle(e)}),Lle=()=>`Bot Token`,Rle=()=>`Bot Token`,zle=()=>`Bot Token`,Ble=()=>`Bot Token`,Vle=()=>`Bot Token`,Hle=()=>`Bot Token`,Ule=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Lle(e):n===`ja-JP`?Rle(e):n===`ko-KR`?zle(e):n===`ru-RU`?Ble(e):n===`zh-TW`?Vle(e):Hle(e)}),Wle=()=>`Chat ID`,Gle=()=>`Chat ID`,Kle=()=>`Chat ID`,qle=()=>`Chat ID`,Jle=()=>`Chat ID`,Yle=()=>`Chat ID`,Xle=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Wle(e):n===`ja-JP`?Gle(e):n===`ko-KR`?Kle(e):n===`ru-RU`?qle(e):n===`zh-TW`?Jle(e):Yle(e)}),Zle=()=>`Payment notification switch`,Qle=()=>`Payment notification switch`,$le=()=>`Payment notification switch`,eue=()=>`Payment notification switch`,tue=()=>`收款通知開關`,nue=()=>`收款通知开关`,rue=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Zle(e):n===`ja-JP`?Qle(e):n===`ko-KR`?$le(e):n===`ru-RU`?eue(e):n===`zh-TW`?tue(e):nue(e)}),iue=()=>`Abnormal notification switch`,aue=()=>`Abnormal notification switch`,oue=()=>`Abnormal notification switch`,sue=()=>`Abnormal notification switch`,cue=()=>`異常通知開關`,lue=()=>`异常通知开关`,uue=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?iue(e):n===`ja-JP`?aue(e):n===`ko-KR`?oue(e):n===`ru-RU`?sue(e):n===`zh-TW`?cue(e):lue(e)}),due=()=>`Save Telegram settings`,fue=()=>`Save Telegram settings`,pue=()=>`Save Telegram settings`,mue=()=>`Save Telegram settings`,hue=()=>`儲存 Telegram 配置`,gue=()=>`保存 Telegram 配置`,_ue=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?due(e):n===`ja-JP`?fue(e):n===`ko-KR`?pue(e):n===`ru-RU`?mue(e):n===`zh-TW`?hue(e):gue(e)}),vue=()=>`Reset to defaults`,yue=()=>`Reset to defaults`,bue=()=>`Reset to defaults`,xue=()=>`Reset to defaults`,Sue=()=>`重置為預設值`,Cue=()=>`重置为默认值`,wue=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vue(e):n===`ja-JP`?yue(e):n===`ko-KR`?bue(e):n===`ru-RU`?xue(e):n===`zh-TW`?Sue(e):Cue(e)}),Tue=()=>`Telegram settings reset to defaults`,Eue=()=>`Telegram settings reset to defaults`,Due=()=>`Telegram settings reset to defaults`,Oue=()=>`Telegram settings reset to defaults`,kue=()=>`Telegram 配置已重置為預設值`,Aue=()=>`Telegram 配置已重置为默认值`,jue=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Tue(e):n===`ja-JP`?Eue(e):n===`ko-KR`?Due(e):n===`ru-RU`?Oue(e):n===`zh-TW`?kue(e):Aue(e)}),Mue=()=>`Configure payment amount precision and exchange rate strategy.`,Nue=()=>`Configure payment amount precision and exchange rate strategy.`,Pue=()=>`Configure payment amount precision and exchange rate strategy.`,Fue=()=>`Configure payment amount precision and exchange rate strategy.`,Iue=()=>`配置支付金額精度與匯率策略。`,Lue=()=>`配置支付金额精度与汇率策略。`,Rue=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Mue(e):n===`ja-JP`?Nue(e):n===`ko-KR`?Pue(e):n===`ru-RU`?Fue(e):n===`zh-TW`?Iue(e):Lue(e)}),zue=()=>`Amount precision must be an integer from 2 to 6`,Bue=()=>`Amount precision must be an integer from 2 to 6`,Vue=()=>`Amount precision must be an integer from 2 to 6`,Hue=()=>`Amount precision must be an integer from 2 to 6`,Uue=()=>`金額精度必須是 2 到 6 的整數`,Wue=()=>`金额精度必须是 2 到 6 的整数`,Gue=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zue(e):n===`ja-JP`?Bue(e):n===`ko-KR`?Vue(e):n===`ru-RU`?Hue(e):n===`zh-TW`?Uue(e):Wue(e)}),Kue=()=>`Please enter a valid API URL`,que=()=>`Please enter a valid API URL`,Jue=()=>`Please enter a valid API URL`,Yue=()=>`Please enter a valid API URL`,Xue=()=>`請輸入合法 API 地址`,Zue=()=>`请输入有效 API 地址`,Que=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Kue(e):n===`ja-JP`?que(e):n===`ko-KR`?Jue(e):n===`ru-RU`?Yue(e):n===`zh-TW`?Xue(e):Zue(e)}),$ue=()=>`Please enter a valid exchange rate`,ede=()=>`Please enter a valid exchange rate`,tde=()=>`Please enter a valid exchange rate`,nde=()=>`Please enter a valid exchange rate`,rde=()=>`請輸入有效匯率`,ide=()=>`请输入有效汇率`,ade=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$ue(e):n===`ja-JP`?ede(e):n===`ko-KR`?tde(e):n===`ru-RU`?nde(e):n===`zh-TW`?rde(e):ide(e)}),ode=()=>`Payment settings reset to defaults`,sde=()=>`Payment settings reset to defaults`,cde=()=>`Payment settings reset to defaults`,lde=()=>`Payment settings reset to defaults`,ude=()=>`支付配置已重置為預設值`,dde=()=>`支付配置已重置为默认值`,fde=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ode(e):n===`ja-JP`?sde(e):n===`ko-KR`?cde(e):n===`ru-RU`?lde(e):n===`zh-TW`?ude(e):dde(e)}),pde=()=>`Payment settings saved`,mde=()=>`Payment settings saved`,hde=()=>`Payment settings saved`,gde=()=>`Payment settings saved`,_de=()=>`支付配置已儲存`,vde=()=>`支付配置已保存`,yde=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pde(e):n===`ja-JP`?mde(e):n===`ko-KR`?hde(e):n===`ru-RU`?gde(e):n===`zh-TW`?_de(e):vde(e)}),bde=()=>`Amount precision`,xde=()=>`Amount precision`,Sde=()=>`Amount precision`,Cde=()=>`Amount precision`,wde=()=>`金額精度`,Tde=()=>`金额精度`,Ede=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bde(e):n===`ja-JP`?xde(e):n===`ko-KR`?Sde(e):n===`ru-RU`?Cde(e):n===`zh-TW`?wde(e):Tde(e)}),Dde=()=>`Exchange rate API URL`,Ode=()=>`Exchange rate API URL`,kde=()=>`Exchange rate API URL`,Ade=()=>`Exchange rate API URL`,jde=()=>`匯率 API 地址`,Mde=()=>`汇率 API 地址`,Nde=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Dde(e):n===`ja-JP`?Ode(e):n===`ko-KR`?kde(e):n===`ru-RU`?Ade(e):n===`zh-TW`?jde(e):Mde(e)}),Pde=()=>`Set the API endpoint used to fetch exchange rates.`,Fde=()=>`Set the API endpoint used to fetch exchange rates.`,Ide=()=>`Set the API endpoint used to fetch exchange rates.`,Lde=()=>`Set the API endpoint used to fetch exchange rates.`,Rde=()=>`設定用於取得匯率的 API 介面地址。`,zde=()=>`设置用于获取汇率的 API 接口地址。`,Bde=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Pde(e):n===`ja-JP`?Fde(e):n===`ko-KR`?Ide(e):n===`ru-RU`?Lde(e):n===`zh-TW`?Rde(e):zde(e)}),Vde=()=>`View docs`,Hde=()=>`View docs`,Ude=()=>`View docs`,Wde=()=>`View docs`,Gde=()=>`查看文件`,Kde=()=>`查看文档`,qde=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Vde(e):n===`ja-JP`?Hde(e):n===`ko-KR`?Ude(e):n===`ru-RU`?Wde(e):n===`zh-TW`?Gde(e):Kde(e)}),Jde=()=>`Runtime log level`,Yde=()=>`Runtime log level`,Xde=()=>`Runtime log level`,Zde=()=>`Runtime log level`,Qde=()=>`執行日誌級別`,$de=()=>`运行日志级别`,efe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Jde(e):n===`ja-JP`?Yde(e):n===`ko-KR`?Xde(e):n===`ru-RU`?Zde(e):n===`zh-TW`?Qde(e):$de(e)}),tfe=()=>`Controls backend runtime logging. Deleting this setting resets it to Error.`,nfe=()=>`Controls backend runtime logging. Deleting this setting resets it to Error.`,rfe=()=>`Controls backend runtime logging. Deleting this setting resets it to Error.`,ife=()=>`Controls backend runtime logging. Deleting this setting resets it to Error.`,afe=()=>`控制後端執行時日誌輸出。刪除此設定會重設為 Error。`,ofe=()=>`控制后端运行时日志输出。删除该配置会重置为 Error。`,sfe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tfe(e):n===`ja-JP`?nfe(e):n===`ko-KR`?rfe(e):n===`ru-RU`?ife(e):n===`zh-TW`?afe(e):ofe(e)}),cfe=()=>`Debug`,lfe=()=>`Debug`,ufe=()=>`Debug`,dfe=()=>`Debug`,ffe=()=>`Debug`,pfe=()=>`Debug`,mfe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cfe(e):n===`ja-JP`?lfe(e):n===`ko-KR`?ufe(e):n===`ru-RU`?dfe(e):n===`zh-TW`?ffe(e):pfe(e)}),hfe=()=>`Info`,gfe=()=>`Info`,_fe=()=>`Info`,vfe=()=>`Info`,yfe=()=>`Info`,bfe=()=>`Info`,xfe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hfe(e):n===`ja-JP`?gfe(e):n===`ko-KR`?_fe(e):n===`ru-RU`?vfe(e):n===`zh-TW`?yfe(e):bfe(e)}),Sfe=()=>`Warn`,Cfe=()=>`Warn`,wfe=()=>`Warn`,Tfe=()=>`Warn`,Efe=()=>`Warn`,Dfe=()=>`Warn`,Ofe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Sfe(e):n===`ja-JP`?Cfe(e):n===`ko-KR`?wfe(e):n===`ru-RU`?Tfe(e):n===`zh-TW`?Efe(e):Dfe(e)}),kfe=()=>`Error`,Afe=()=>`Error`,jfe=()=>`Error`,Mfe=()=>`Error`,Nfe=()=>`Error`,Pfe=()=>`Error`,Ffe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kfe(e):n===`ja-JP`?Afe(e):n===`ko-KR`?jfe(e):n===`ru-RU`?Mfe(e):n===`zh-TW`?Nfe(e):Pfe(e)}),Ife=()=>`Forced rate table`,Lfe=()=>`Forced rate table`,Rfe=()=>`Forced rate table`,zfe=()=>`Forced rate table`,Bfe=()=>`強制匯率表`,Vfe=()=>`强制汇率表`,Hfe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ife(e):n===`ja-JP`?Lfe(e):n===`ko-KR`?Rfe(e):n===`ru-RU`?zfe(e):n===`zh-TW`?Bfe(e):Vfe(e)}),Ufe=()=>`Preview`,Wfe=()=>`Preview`,Gfe=()=>`Preview`,Kfe=()=>`Preview`,qfe=()=>`預覽`,Jfe=()=>`预览`,Yfe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ufe(e):n===`ja-JP`?Wfe(e):n===`ko-KR`?Gfe(e):n===`ru-RU`?Kfe(e):n===`zh-TW`?qfe(e):Jfe(e)}),Xfe=()=>`Review the parsed currency and coin rates before saving.`,Zfe=()=>`Review the parsed currency and coin rates before saving.`,Qfe=()=>`Review the parsed currency and coin rates before saving.`,$fe=()=>`Review the parsed currency and coin rates before saving.`,epe=()=>`儲存前查看解析後的法幣與代幣匯率。`,tpe=()=>`保存前查看解析后的法币与代币汇率。`,npe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Xfe(e):n===`ja-JP`?Zfe(e):n===`ko-KR`?Qfe(e):n===`ru-RU`?$fe(e):n===`zh-TW`?epe(e):tpe(e)}),rpe=()=>`Currency`,ipe=()=>`Currency`,ape=()=>`Currency`,ope=()=>`Currency`,spe=()=>`法幣`,cpe=()=>`法币`,lpe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rpe(e):n===`ja-JP`?ipe(e):n===`ko-KR`?ape(e):n===`ru-RU`?ope(e):n===`zh-TW`?spe(e):cpe(e)}),upe=()=>`Coin`,dpe=()=>`Coin`,fpe=()=>`Coin`,ppe=()=>`Coin`,mpe=()=>`代幣`,hpe=()=>`代币`,gpe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?upe(e):n===`ja-JP`?dpe(e):n===`ko-KR`?fpe(e):n===`ru-RU`?ppe(e):n===`zh-TW`?mpe(e):hpe(e)}),_pe=()=>`Rate`,vpe=()=>`Rate`,ype=()=>`Rate`,bpe=()=>`Rate`,xpe=()=>`匯率`,Spe=()=>`汇率`,Cpe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_pe(e):n===`ja-JP`?vpe(e):n===`ko-KR`?ype(e):n===`ru-RU`?bpe(e):n===`zh-TW`?xpe(e):Spe(e)}),wpe=()=>`Reverse preview`,Tpe=()=>`Reverse preview`,Epe=()=>`Reverse preview`,Dpe=()=>`Reverse preview`,Ope=()=>`反向預覽`,kpe=()=>`反向预览`,Ape=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wpe(e):n===`ja-JP`?Tpe(e):n===`ko-KR`?Epe(e):n===`ru-RU`?Dpe(e):n===`zh-TW`?Ope(e):kpe(e)}),jpe=()=>`Original preview`,Mpe=()=>`Original preview`,Npe=()=>`Original preview`,Ppe=()=>`Original preview`,Fpe=()=>`原始預覽`,Ipe=()=>`原始预览`,Lpe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jpe(e):n===`ja-JP`?Mpe(e):n===`ko-KR`?Npe(e):n===`ru-RU`?Ppe(e):n===`zh-TW`?Fpe(e):Ipe(e)}),Rpe=()=>`No forced rates`,zpe=()=>`No forced rates`,Bpe=()=>`No forced rates`,Vpe=()=>`No forced rates`,Hpe=()=>`暫無強制匯率`,Upe=()=>`暂无强制汇率`,Wpe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Rpe(e):n===`ja-JP`?zpe(e):n===`ko-KR`?Bpe(e):n===`ru-RU`?Vpe(e):n===`zh-TW`?Hpe(e):Upe(e)}),Gpe=()=>`Save payment settings`,Kpe=()=>`Save payment settings`,qpe=()=>`Save payment settings`,Jpe=()=>`Save payment settings`,Ype=()=>`儲存支付配置`,Xpe=()=>`保存支付配置`,Zpe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Gpe(e):n===`ja-JP`?Kpe(e):n===`ko-KR`?qpe(e):n===`ru-RU`?Jpe(e):n===`zh-TW`?Ype(e):Xpe(e)}),Qpe=()=>`Reset to defaults`,$pe=()=>`Reset to defaults`,eme=()=>`Reset to defaults`,tme=()=>`Reset to defaults`,nme=()=>`重置為預設值`,rme=()=>`重置为默认值`,ime=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Qpe(e):n===`ja-JP`?$pe(e):n===`ko-KR`?eme(e):n===`ru-RU`?tme(e):n===`zh-TW`?nme(e):rme(e)}),ame=()=>`Configure the default payment token, fiat currency, and network.`,ome=()=>`Configure the default payment token, fiat currency, and network.`,sme=()=>`Configure the default payment token, fiat currency, and network.`,cme=()=>`Configure the default payment token, fiat currency, and network.`,lme=()=>`配置預設收款代幣、法幣與網路。`,ume=()=>`配置默认收款代币、法币与网络。`,dme=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ame(e):n===`ja-JP`?ome(e):n===`ko-KR`?sme(e):n===`ru-RU`?cme(e):n===`zh-TW`?lme(e):ume(e)}),fme=()=>`Payment settings saved`,pme=()=>`Payment settings saved`,mme=()=>`Payment settings saved`,hme=()=>`Payment settings saved`,gme=()=>`收款配置已儲存`,_me=()=>`收款配置已保存`,vme=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fme(e):n===`ja-JP`?pme(e):n===`ko-KR`?mme(e):n===`ru-RU`?hme(e):n===`zh-TW`?gme(e):_me(e)}),yme=()=>`Save payment settings`,bme=()=>`Save payment settings`,xme=()=>`Save payment settings`,Sme=()=>`Save payment settings`,Cme=()=>`儲存收款配置`,wme=()=>`保存收款配置`,Tme=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yme(e):n===`ja-JP`?bme(e):n===`ko-KR`?xme(e):n===`ru-RU`?Sme(e):n===`zh-TW`?Cme(e):wme(e)}),Eme=()=>`Reset to defaults`,Dme=()=>`Reset to defaults`,Ome=()=>`Reset to defaults`,kme=()=>`Reset to defaults`,Ame=()=>`重置為預設值`,jme=()=>`重置为默认值`,Mme=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Eme(e):n===`ja-JP`?Dme(e):n===`ko-KR`?Ome(e):n===`ru-RU`?kme(e):n===`zh-TW`?Ame(e):jme(e)}),Nme=()=>`EPay settings reset to defaults`,Pme=()=>`EPay settings reset to defaults`,Fme=()=>`EPay settings reset to defaults`,Ime=()=>`EPay settings reset to defaults`,Lme=()=>`EPay 配置已重置為預設值`,Rme=()=>`EPay 配置已重置为默认值`,zme=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Nme(e):n===`ja-JP`?Pme(e):n===`ko-KR`?Fme(e):n===`ru-RU`?Ime(e):n===`zh-TW`?Lme(e):Rme(e)}),Bme=()=>`Fill example`,Vme=()=>`Fill example`,Hme=()=>`Fill example`,Ume=()=>`Fill example`,Wme=()=>`填充示例`,Gme=()=>`填充示例`,Kme=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Bme(e):n===`ja-JP`?Vme(e):n===`ko-KR`?Hme(e):n===`ru-RU`?Ume(e):n===`zh-TW`?Wme(e):Gme(e)}),qme=()=>`Fullscreen`,Jme=()=>`Fullscreen`,Yme=()=>`Fullscreen`,Xme=()=>`Fullscreen`,Zme=()=>`全螢幕`,Qme=()=>`全屏`,$me=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qme(e):n===`ja-JP`?Jme(e):n===`ko-KR`?Yme(e):n===`ru-RU`?Xme(e):n===`zh-TW`?Zme(e):Qme(e)}),ehe=()=>`Fullscreen edit`,the=()=>`Fullscreen edit`,nhe=()=>`Fullscreen edit`,rhe=()=>`Fullscreen edit`,ihe=()=>`全螢幕編輯`,ahe=()=>`全屏编辑`,ohe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ehe(e):n===`ja-JP`?the(e):n===`ko-KR`?nhe(e):n===`ru-RU`?rhe(e):n===`zh-TW`?ihe(e):ahe(e)}),she=()=>`Exit fullscreen`,che=()=>`Exit fullscreen`,lhe=()=>`Exit fullscreen`,uhe=()=>`Exit fullscreen`,dhe=()=>`退出全螢幕`,fhe=()=>`退出全屏`,phe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?she(e):n===`ja-JP`?che(e):n===`ko-KR`?lhe(e):n===`ru-RU`?uhe(e):n===`zh-TW`?dhe(e):fhe(e)}),mhe=()=>`Edit`,hhe=()=>`Edit`,ghe=()=>`Edit`,_he=()=>`Edit`,vhe=()=>`編輯`,yhe=()=>`编辑`,bhe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mhe(e):n===`ja-JP`?hhe(e):n===`ko-KR`?ghe(e):n===`ru-RU`?_he(e):n===`zh-TW`?vhe(e):yhe(e)}),xhe=()=>`Preview`,She=()=>`Preview`,Che=()=>`Preview`,whe=()=>`Preview`,The=()=>`預覽`,Ehe=()=>`预览`,Dhe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xhe(e):n===`ja-JP`?She(e):n===`ko-KR`?Che(e):n===`ru-RU`?whe(e):n===`zh-TW`?The(e):Ehe(e)}),Ohe=()=>`Split`,khe=()=>`Split`,Ahe=()=>`Split`,jhe=()=>`Split`,Mhe=()=>`分屏`,Nhe=()=>`分屏`,Phe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ohe(e):n===`ja-JP`?khe(e):n===`ko-KR`?Ahe(e):n===`ru-RU`?jhe(e):n===`zh-TW`?Mhe(e):Nhe(e)}),Fhe=()=>`View help`,Ihe=()=>`View help`,Lhe=()=>`View help`,Rhe=()=>`View help`,zhe=()=>`查看說明`,Bhe=()=>`查看说明`,Vhe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Fhe(e):n===`ja-JP`?Ihe(e):n===`ko-KR`?Lhe(e):n===`ru-RU`?Rhe(e):n===`zh-TW`?zhe(e):Bhe(e)}),Hhe=()=>`Help`,Uhe=()=>`Help`,Whe=()=>`Help`,Ghe=()=>`Help`,Khe=()=>`說明`,qhe=()=>`说明`,Jhe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hhe(e):n===`ja-JP`?Uhe(e):n===`ko-KR`?Whe(e):n===`ru-RU`?Ghe(e):n===`zh-TW`?Khe(e):qhe(e)}),Yhe=()=>`HTML preview`,Xhe=()=>`HTML preview`,Zhe=()=>`HTML preview`,Qhe=()=>`HTML preview`,$he=()=>`HTML 預覽`,ege=()=>`HTML 预览`,tge=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yhe(e):n===`ja-JP`?Xhe(e):n===`ko-KR`?Zhe(e):n===`ru-RU`?Qhe(e):n===`zh-TW`?$he(e):ege(e)}),nge=()=>`Appearance`,rge=()=>`Appearance`,ige=()=>`Appearance`,age=()=>`Appearance`,oge=()=>`外觀`,sge=()=>`外观`,cge=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nge(e):n===`ja-JP`?rge(e):n===`ko-KR`?ige(e):n===`ru-RU`?age(e):n===`zh-TW`?oge(e):sge(e)}),lge=()=>`Customize the app appearance and switch between light and dark themes.`,uge=()=>`Customize the app appearance and switch between light and dark themes.`,dge=()=>`Customize the app appearance and switch between light and dark themes.`,fge=()=>`Customize the app appearance and switch between light and dark themes.`,pge=()=>`自定義應用外觀,可在淺色與深色主題之間切換。`,mge=()=>`自定义应用外观,可在浅色与深色主题之间切换。`,hge=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lge(e):n===`ja-JP`?uge(e):n===`ko-KR`?dge(e):n===`ru-RU`?fge(e):n===`zh-TW`?pge(e):mge(e)}),gge=()=>`Font`,_ge=()=>`Font`,vge=()=>`Font`,yge=()=>`Font`,bge=()=>`字型`,xge=()=>`字体`,Sge=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gge(e):n===`ja-JP`?_ge(e):n===`ko-KR`?vge(e):n===`ru-RU`?yge(e):n===`zh-TW`?bge(e):xge(e)}),Cge=()=>`Set the font you want to use in the dashboard.`,wge=()=>`Set the font you want to use in the dashboard.`,Tge=()=>`Set the font you want to use in the dashboard.`,Ege=()=>`Set the font you want to use in the dashboard.`,Dge=()=>`設定你希望在控制台中使用的字型。`,Oge=()=>`设置你希望在控制台中使用的字体。`,kge=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Cge(e):n===`ja-JP`?wge(e):n===`ko-KR`?Tge(e):n===`ru-RU`?Ege(e):n===`zh-TW`?Dge(e):Oge(e)}),Age=()=>`Theme`,jge=()=>`Theme`,Mge=()=>`Theme`,Nge=()=>`Theme`,Pge=()=>`主題`,Fge=()=>`主题`,Ige=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Age(e):n===`ja-JP`?jge(e):n===`ko-KR`?Mge(e):n===`ru-RU`?Nge(e):n===`zh-TW`?Pge(e):Fge(e)}),Lge=()=>`Select the theme for the dashboard.`,Rge=()=>`Select the theme for the dashboard.`,zge=()=>`Select the theme for the dashboard.`,Bge=()=>`Select the theme for the dashboard.`,Vge=()=>`選擇控制台的主題。`,Hge=()=>`选择控制台的主题。`,Uge=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Lge(e):n===`ja-JP`?Rge(e):n===`ko-KR`?zge(e):n===`ru-RU`?Bge(e):n===`zh-TW`?Vge(e):Hge(e)}),Wge=()=>`Update preferences`,Gge=()=>`Update preferences`,Kge=()=>`Update preferences`,qge=()=>`Update preferences`,Jge=()=>`更新偏好設定`,Yge=()=>`更新偏好设置`,Xge=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Wge(e):n===`ja-JP`?Gge(e):n===`ko-KR`?Kge(e):n===`ru-RU`?qge(e):n===`zh-TW`?Jge(e):Yge(e)}),Zge=()=>`Display`,Qge=()=>`Display`,$ge=()=>`Display`,e_e=()=>`Display`,t_e=()=>`顯示`,n_e=()=>`显示`,r_e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Zge(e):n===`ja-JP`?Qge(e):n===`ko-KR`?$ge(e):n===`ru-RU`?e_e(e):n===`zh-TW`?t_e(e):n_e(e)}),i_e=()=>`Turn items on or off to control what is displayed in the app.`,a_e=()=>`Turn items on or off to control what is displayed in the app.`,o_e=()=>`Turn items on or off to control what is displayed in the app.`,s_e=()=>`Turn items on or off to control what is displayed in the app.`,c_e=()=>`開關各項內容,控制應用中展示的資訊。`,l_e=()=>`开关各项内容,控制应用中展示的信息。`,u_e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?i_e(e):n===`ja-JP`?a_e(e):n===`ko-KR`?o_e(e):n===`ru-RU`?s_e(e):n===`zh-TW`?c_e(e):l_e(e)}),d_e=()=>`Recents`,f_e=()=>`Recents`,p_e=()=>`Recents`,m_e=()=>`Recents`,h_e=()=>`最近專案`,g_e=()=>`最近专案`,__e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?d_e(e):n===`ja-JP`?f_e(e):n===`ko-KR`?p_e(e):n===`ru-RU`?m_e(e):n===`zh-TW`?h_e(e):g_e(e)}),v_e=()=>`Home`,y_e=()=>`Home`,b_e=()=>`Home`,x_e=()=>`Home`,S_e=()=>`主頁`,C_e=()=>`主页`,w_e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?v_e(e):n===`ja-JP`?y_e(e):n===`ko-KR`?b_e(e):n===`ru-RU`?x_e(e):n===`zh-TW`?S_e(e):C_e(e)}),T_e=()=>`Applications`,E_e=()=>`Applications`,D_e=()=>`Applications`,O_e=()=>`Applications`,k_e=()=>`應用`,A_e=()=>`应用`,j_e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?T_e(e):n===`ja-JP`?E_e(e):n===`ko-KR`?D_e(e):n===`ru-RU`?O_e(e):n===`zh-TW`?k_e(e):A_e(e)}),M_e=()=>`Desktop`,N_e=()=>`Desktop`,P_e=()=>`Desktop`,F_e=()=>`Desktop`,I_e=()=>`桌面`,L_e=()=>`桌面`,R_e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?M_e(e):n===`ja-JP`?N_e(e):n===`ko-KR`?P_e(e):n===`ru-RU`?F_e(e):n===`zh-TW`?I_e(e):L_e(e)}),z_e=()=>`Downloads`,B_e=()=>`Downloads`,V_e=()=>`Downloads`,H_e=()=>`Downloads`,U_e=()=>`下載`,W_e=()=>`下载`,G_e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?z_e(e):n===`ja-JP`?B_e(e):n===`ko-KR`?V_e(e):n===`ru-RU`?H_e(e):n===`zh-TW`?U_e(e):W_e(e)}),K_e=()=>`Documents`,q_e=()=>`Documents`,J_e=()=>`Documents`,Y_e=()=>`Documents`,X_e=()=>`文件`,Z_e=()=>`文件`,Q_e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?K_e(e):n===`ja-JP`?q_e(e):n===`ko-KR`?J_e(e):n===`ru-RU`?Y_e(e):n===`zh-TW`?X_e(e):Z_e(e)}),$_e=()=>`You have to select at least one item.`,eve=()=>`You have to select at least one item.`,tve=()=>`You have to select at least one item.`,nve=()=>`You have to select at least one item.`,rve=()=>`至少選擇一個專案。`,ive=()=>`至少选择一个专案。`,ave=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$_e(e):n===`ja-JP`?eve(e):n===`ko-KR`?tve(e):n===`ru-RU`?nve(e):n===`zh-TW`?rve(e):ive(e)}),ove=()=>`Sidebar`,sve=()=>`Sidebar`,cve=()=>`Sidebar`,lve=()=>`Sidebar`,uve=()=>`側邊欄`,dve=()=>`侧边栏`,fve=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ove(e):n===`ja-JP`?sve(e):n===`ko-KR`?cve(e):n===`ru-RU`?lve(e):n===`zh-TW`?uve(e):dve(e)}),pve=()=>`Select the items you want to display in the sidebar.`,mve=()=>`Select the items you want to display in the sidebar.`,hve=()=>`Select the items you want to display in the sidebar.`,gve=()=>`Select the items you want to display in the sidebar.`,_ve=()=>`選擇你希望在側邊欄中顯示的專案。`,vve=()=>`选择你希望在侧边栏中显示的项目。`,yve=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pve(e):n===`ja-JP`?mve(e):n===`ko-KR`?hve(e):n===`ru-RU`?gve(e):n===`zh-TW`?_ve(e):vve(e)}),bve=()=>`Update display`,xve=()=>`Update display`,Sve=()=>`Update display`,Cve=()=>`Update display`,wve=()=>`更新顯示設定`,Tve=()=>`更新显示设置`,Eve=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bve(e):n===`ja-JP`?xve(e):n===`ko-KR`?Sve(e):n===`ru-RU`?Cve(e):n===`zh-TW`?wve(e):Tve(e)}),Dve=()=>`Notifications`,Ove=()=>`Notifications`,kve=()=>`Notifications`,Ave=()=>`Notifications`,jve=()=>`通知`,Mve=()=>`通知`,Nve=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Dve(e):n===`ja-JP`?Ove(e):n===`ko-KR`?kve(e):n===`ru-RU`?Ave(e):n===`zh-TW`?jve(e):Mve(e)}),Pve=()=>`Configure how you receive notifications.`,Fve=()=>`Configure how you receive notifications.`,Ive=()=>`Configure how you receive notifications.`,Lve=()=>`Configure how you receive notifications.`,Rve=()=>`配置你接收通知的方式。`,zve=()=>`配置你接收通知的方式。`,Bve=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Pve(e):n===`ja-JP`?Fve(e):n===`ko-KR`?Ive(e):n===`ru-RU`?Lve(e):n===`zh-TW`?Rve(e):zve(e)}),Vve=()=>`Please select a notification type.`,Hve=()=>`Please select a notification type.`,Uve=()=>`Please select a notification type.`,Wve=()=>`Please select a notification type.`,Gve=()=>`請選擇通知型別。`,Kve=()=>`请选择通知类型。`,qve=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Vve(e):n===`ja-JP`?Hve(e):n===`ko-KR`?Uve(e):n===`ru-RU`?Wve(e):n===`zh-TW`?Gve(e):Kve(e)}),Jve=()=>`Notify me about...`,Yve=()=>`Notify me about...`,Xve=()=>`Notify me about...`,Zve=()=>`Notify me about...`,Qve=()=>`通知我關於……`,$ve=()=>`通知我关于……`,eye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Jve(e):n===`ja-JP`?Yve(e):n===`ko-KR`?Xve(e):n===`ru-RU`?Zve(e):n===`zh-TW`?Qve(e):$ve(e)}),tye=()=>`All new messages`,nye=()=>`All new messages`,rye=()=>`All new messages`,iye=()=>`All new messages`,aye=()=>`所有新訊息`,oye=()=>`所有新讯息`,sye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tye(e):n===`ja-JP`?nye(e):n===`ko-KR`?rye(e):n===`ru-RU`?iye(e):n===`zh-TW`?aye(e):oye(e)}),cye=()=>`Direct messages and mentions`,lye=()=>`Direct messages and mentions`,uye=()=>`Direct messages and mentions`,dye=()=>`Direct messages and mentions`,fye=()=>`私信和提及`,pye=()=>`私信和提及`,mye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cye(e):n===`ja-JP`?lye(e):n===`ko-KR`?uye(e):n===`ru-RU`?dye(e):n===`zh-TW`?fye(e):pye(e)}),hye=()=>`Nothing`,gye=()=>`Nothing`,_ye=()=>`Nothing`,vye=()=>`Nothing`,yye=()=>`不接收通知`,bye=()=>`不接收通知`,xye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hye(e):n===`ja-JP`?gye(e):n===`ko-KR`?_ye(e):n===`ru-RU`?vye(e):n===`zh-TW`?yye(e):bye(e)}),Sye=()=>`Email Notifications`,Cye=()=>`Email Notifications`,wye=()=>`Email Notifications`,Tye=()=>`Email Notifications`,Eye=()=>`郵件通知`,Dye=()=>`邮件通知`,Oye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Sye(e):n===`ja-JP`?Cye(e):n===`ko-KR`?wye(e):n===`ru-RU`?Tye(e):n===`zh-TW`?Eye(e):Dye(e)}),kye=()=>`Communication emails`,Aye=()=>`Communication emails`,jye=()=>`Communication emails`,Mye=()=>`Communication emails`,Nye=()=>`通訊郵件`,Pye=()=>`通讯邮件`,Fye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kye(e):n===`ja-JP`?Aye(e):n===`ko-KR`?jye(e):n===`ru-RU`?Mye(e):n===`zh-TW`?Nye(e):Pye(e)}),Iye=()=>`Receive emails about your account activity.`,Lye=()=>`Receive emails about your account activity.`,Rye=()=>`Receive emails about your account activity.`,zye=()=>`Receive emails about your account activity.`,Bye=()=>`接收與你賬戶活動相關的郵件。`,Vye=()=>`接收与你账户活动相关的邮件。`,Hye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Iye(e):n===`ja-JP`?Lye(e):n===`ko-KR`?Rye(e):n===`ru-RU`?zye(e):n===`zh-TW`?Bye(e):Vye(e)}),Uye=()=>`Marketing emails`,Wye=()=>`Marketing emails`,Gye=()=>`Marketing emails`,Kye=()=>`Marketing emails`,qye=()=>`營銷郵件`,Jye=()=>`营销邮件`,Yye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Uye(e):n===`ja-JP`?Wye(e):n===`ko-KR`?Gye(e):n===`ru-RU`?Kye(e):n===`zh-TW`?qye(e):Jye(e)}),Xye=()=>`Receive emails about new products, features, and more.`,Zye=()=>`Receive emails about new products, features, and more.`,Qye=()=>`Receive emails about new products, features, and more.`,$ye=()=>`Receive emails about new products, features, and more.`,ebe=()=>`接收有關新產品、新功能等內容的郵件。`,tbe=()=>`接收有关新产品、新功能等内容的邮件。`,nbe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Xye(e):n===`ja-JP`?Zye(e):n===`ko-KR`?Qye(e):n===`ru-RU`?$ye(e):n===`zh-TW`?ebe(e):tbe(e)}),rbe=()=>`Social emails`,ibe=()=>`Social emails`,abe=()=>`Social emails`,obe=()=>`Social emails`,sbe=()=>`社交郵件`,cbe=()=>`社交邮件`,lbe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rbe(e):n===`ja-JP`?ibe(e):n===`ko-KR`?abe(e):n===`ru-RU`?obe(e):n===`zh-TW`?sbe(e):cbe(e)}),ube=()=>`Receive emails for friend requests, follows, and more.`,dbe=()=>`Receive emails for friend requests, follows, and more.`,fbe=()=>`Receive emails for friend requests, follows, and more.`,pbe=()=>`Receive emails for friend requests, follows, and more.`,mbe=()=>`接收好友請求、關注等社交郵件。`,hbe=()=>`接收好友请求、关注等社交邮件。`,gbe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ube(e):n===`ja-JP`?dbe(e):n===`ko-KR`?fbe(e):n===`ru-RU`?pbe(e):n===`zh-TW`?mbe(e):hbe(e)}),_be=()=>`Security emails`,vbe=()=>`Security emails`,ybe=()=>`Security emails`,bbe=()=>`Security emails`,xbe=()=>`安全郵件`,Sbe=()=>`安全邮件`,Cbe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_be(e):n===`ja-JP`?vbe(e):n===`ko-KR`?ybe(e):n===`ru-RU`?bbe(e):n===`zh-TW`?xbe(e):Sbe(e)}),wbe=()=>`Receive emails about your account activity and security.`,Tbe=()=>`Receive emails about your account activity and security.`,Ebe=()=>`Receive emails about your account activity and security.`,Dbe=()=>`Receive emails about your account activity and security.`,Obe=()=>`接收與你賬戶活動和安全相關的郵件。`,kbe=()=>`接收与你账户活动和安全相关的邮件。`,Abe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wbe(e):n===`ja-JP`?Tbe(e):n===`ko-KR`?Ebe(e):n===`ru-RU`?Dbe(e):n===`zh-TW`?Obe(e):kbe(e)}),jbe=()=>`Use different settings for my mobile devices`,Mbe=()=>`Use different settings for my mobile devices`,Nbe=()=>`Use different settings for my mobile devices`,Pbe=()=>`Use different settings for my mobile devices`,Fbe=()=>`我的移動裝置使用不同的通知設定`,Ibe=()=>`我的移动装置使用不同的通知设置`,Lbe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jbe(e):n===`ja-JP`?Mbe(e):n===`ko-KR`?Nbe(e):n===`ru-RU`?Pbe(e):n===`zh-TW`?Fbe(e):Ibe(e)}),Rbe=()=>`You can manage your mobile notifications in the`,zbe=()=>`You can manage your mobile notifications in the`,Bbe=()=>`You can manage your mobile notifications in the`,Vbe=()=>`You can manage your mobile notifications in the`,Hbe=()=>`你可以在`,Ube=()=>`你可以在`,Wbe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Rbe(e):n===`ja-JP`?zbe(e):n===`ko-KR`?Bbe(e):n===`ru-RU`?Vbe(e):n===`zh-TW`?Hbe(e):Ube(e)}),Gbe=()=>`mobile settings`,Kbe=()=>`mobile settings`,qbe=()=>`mobile settings`,Jbe=()=>`mobile settings`,Ybe=()=>`移動端設定`,Xbe=()=>`移动端设置`,Zbe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Gbe(e):n===`ja-JP`?Kbe(e):n===`ko-KR`?qbe(e):n===`ru-RU`?Jbe(e):n===`zh-TW`?Ybe(e):Xbe(e)}),Qbe=()=>`page.`,$be=()=>`page.`,exe=()=>`page.`,txe=()=>`page.`,nxe=()=>`頁面中管理移動通知。`,rxe=()=>`在在页面中管理移动通知。`,ixe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Qbe(e):n===`ja-JP`?$be(e):n===`ko-KR`?exe(e):n===`ru-RU`?txe(e):n===`zh-TW`?nxe(e):rxe(e)}),axe=()=>`Update notifications`,oxe=()=>`Update notifications`,sxe=()=>`Update notifications`,cxe=()=>`Update notifications`,lxe=()=>`更新通知設定`,uxe=()=>`更新通知设置`,dxe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?axe(e):n===`ja-JP`?oxe(e):n===`ko-KR`?sxe(e):n===`ru-RU`?cxe(e):n===`zh-TW`?lxe(e):uxe(e)}),fxe=()=>`Select a settings page`,pxe=()=>`Select a settings page`,mxe=()=>`Select a settings page`,hxe=()=>`Select a settings page`,gxe=()=>`選擇配置項`,_xe=()=>`选择配置项`,vxe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fxe(e):n===`ja-JP`?pxe(e):n===`ko-KR`?mxe(e):n===`ru-RU`?hxe(e):n===`zh-TW`?gxe(e):_xe(e)}),yxe=()=>`Saved successfully`,bxe=()=>`Saved successfully`,xxe=()=>`Saved successfully`,Sxe=()=>`Saved successfully`,Cxe=()=>`儲存成功`,wxe=()=>`保存成功`,Txe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yxe(e):n===`ja-JP`?bxe(e):n===`ko-KR`?xxe(e):n===`ru-RU`?Sxe(e):n===`zh-TW`?Cxe(e):wxe(e)}),Exe=e=>`Failed to save ${e?.key}: ${e?.error}`,Dxe=e=>`Failed to save ${e?.key}: ${e?.error}`,Oxe=e=>`Failed to save ${e?.key}: ${e?.error}`,kxe=e=>`Failed to save ${e?.key}: ${e?.error}`,Axe=e=>`${e?.key} 儲存失敗:${e?.error}`,jxe=e=>`${e?.key} 保存失败:${e?.error}`,Mxe=((e,t={})=>{let n=t.locale??m();return n===`en-US`?Exe(e):n===`ja-JP`?Dxe(e):n===`ko-KR`?Oxe(e):n===`ru-RU`?kxe(e):n===`zh-TW`?Axe(e):jxe(e)}),Nxe=()=>`Access Forbidden`,Pxe=()=>`Access Forbidden`,Fxe=()=>`Access Forbidden`,Ixe=()=>`Access Forbidden`,Lxe=()=>`禁止訪問`,Rxe=()=>`禁止访问`,zxe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Nxe(e):n===`ja-JP`?Pxe(e):n===`ko-KR`?Fxe(e):n===`ru-RU`?Ixe(e):n===`zh-TW`?Lxe(e):Rxe(e)}),Bxe=()=>`You do not have permission to access this resource.`,Vxe=()=>`You do not have permission to access this resource.`,Hxe=()=>`You do not have permission to access this resource.`,Uxe=()=>`You do not have permission to access this resource.`,Wxe=()=>`你沒有訪問此資源所需的許可權。`,Gxe=()=>`你没有访问此资源所需的许可权。`,Kxe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Bxe(e):n===`ja-JP`?Vxe(e):n===`ko-KR`?Hxe(e):n===`ru-RU`?Uxe(e):n===`zh-TW`?Wxe(e):Gxe(e)}),qxe=()=>`Please contact your administrator for access.`,Jxe=()=>`Please contact your administrator for access.`,Yxe=()=>`Please contact your administrator for access.`,Xxe=()=>`Please contact your administrator for access.`,Zxe=()=>`請聯絡管理員以取得存取權限。`,Qxe=()=>`请联络管理员以获取存取权限。`,$xe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qxe(e):n===`ja-JP`?Jxe(e):n===`ko-KR`?Yxe(e):n===`ru-RU`?Xxe(e):n===`zh-TW`?Zxe(e):Qxe(e)}),eSe=()=>`Website is under maintenance!`,tSe=()=>`Website is under maintenance!`,nSe=()=>`Website is under maintenance!`,rSe=()=>`Website is under maintenance!`,iSe=()=>`網站維護中!`,aSe=()=>`网站维护中!`,oSe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?eSe(e):n===`ja-JP`?tSe(e):n===`ko-KR`?nSe(e):n===`ru-RU`?rSe(e):n===`zh-TW`?iSe(e):aSe(e)}),sSe=()=>`The site is not available at the moment.`,cSe=()=>`The site is not available at the moment.`,lSe=()=>`The site is not available at the moment.`,uSe=()=>`The site is not available at the moment.`,dSe=()=>`站點當前暫不可用。`,fSe=()=>`站点当前暂不可用。`,pSe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sSe(e):n===`ja-JP`?cSe(e):n===`ko-KR`?lSe(e):n===`ru-RU`?uSe(e):n===`zh-TW`?dSe(e):fSe(e)}),mSe=()=>`We will be back online shortly.`,hSe=()=>`We will be back online shortly.`,gSe=()=>`We will be back online shortly.`,_Se=()=>`We will be back online shortly.`,vSe=()=>`我們會盡快恢復服務。`,ySe=()=>`我们会尽快恢复服务。`,bSe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mSe(e):n===`ja-JP`?hSe(e):n===`ko-KR`?gSe(e):n===`ru-RU`?_Se(e):n===`zh-TW`?vSe(e):ySe(e)}),xSe=()=>`Unauthorized Access`,SSe=()=>`Unauthorized Access`,CSe=()=>`Unauthorized Access`,wSe=()=>`Unauthorized Access`,TSe=()=>`未授權訪問`,ESe=()=>`未授权访问`,DSe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xSe(e):n===`ja-JP`?SSe(e):n===`ko-KR`?CSe(e):n===`ru-RU`?wSe(e):n===`zh-TW`?TSe(e):ESe(e)}),OSe=()=>`Please log in with the appropriate credentials.`,kSe=()=>`Please log in with the appropriate credentials.`,ASe=()=>`Please log in with the appropriate credentials.`,jSe=()=>`Please log in with the appropriate credentials.`,MSe=()=>`請使用正確的憑證登入。`,NSe=()=>`请使用正确的凭证登录。`,PSe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?OSe(e):n===`ja-JP`?kSe(e):n===`ko-KR`?ASe(e):n===`ru-RU`?jSe(e):n===`zh-TW`?MSe(e):NSe(e)}),FSe=()=>`Once signed in, you can access this resource.`,ISe=()=>`Once signed in, you can access this resource.`,LSe=()=>`Once signed in, you can access this resource.`,RSe=()=>`Once signed in, you can access this resource.`,zSe=()=>`登入後即可訪問此資源。`,BSe=()=>`登录后即可访问此资源。`,VSe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?FSe(e):n===`ja-JP`?ISe(e):n===`ko-KR`?LSe(e):n===`ru-RU`?RSe(e):n===`zh-TW`?zSe(e):BSe(e)}),HSe=()=>`User`,USe=()=>`User`,WSe=()=>`User`,GSe=()=>`User`,KSe=()=>`使用者`,qSe=()=>`用户`,JSe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?HSe(e):n===`ja-JP`?USe(e):n===`ko-KR`?WSe(e):n===`ru-RU`?GSe(e):n===`zh-TW`?KSe(e):qSe(e)}),YSe=()=>`Font`,XSe=()=>`Font`,ZSe=()=>`Font`,QSe=()=>`Font`,$Se=()=>`字型`,eCe=()=>`字体`,tCe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?YSe(e):n===`ja-JP`?XSe(e):n===`ko-KR`?ZSe(e):n===`ru-RU`?QSe(e):n===`zh-TW`?$Se(e):eCe(e)}),nCe=()=>`Secure Payments, Fully in Control`,rCe=()=>`Secure Payments, Fully in Control`,iCe=()=>`Secure Payments, Fully in Control`,aCe=()=>`Secure Payments, Fully in Control`,oCe=()=>`安全收付,盡在掌握`,sCe=()=>`安全收付,尽在掌握`,cCe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nCe(e):n===`ja-JP`?rCe(e):n===`ko-KR`?iCe(e):n===`ru-RU`?aCe(e):n===`zh-TW`?oCe(e):sCe(e)}),lCe=()=>`Multi-chain USDT collection, real-time callbacks, and smart settlement — reliable payment infrastructure for your business.`,uCe=()=>`Multi-chain USDT collection, real-time callbacks, and smart settlement — reliable payment infrastructure for your business.`,dCe=()=>`Multi-chain USDT collection, real-time callbacks, and smart settlement — reliable payment infrastructure for your business.`,fCe=()=>`Multi-chain USDT collection, real-time callbacks, and smart settlement — reliable payment infrastructure for your business.`,pCe=()=>`多鏈 USDT 自動收款、即時回呼、智能結算,為您的業務提供穩定可靠的支付基礎設施。`,mCe=()=>`多链 USDT 自动收款、实时回调、智能结算,为您的业务提供稳定可靠的支付基础设施。`,hCe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lCe(e):n===`ja-JP`?uCe(e):n===`ko-KR`?dCe(e):n===`ru-RU`?fCe(e):n===`zh-TW`?pCe(e):mCe(e)}),gCe=()=>`Pending`,_Ce=()=>`Pending`,vCe=()=>`Pending`,yCe=()=>`Pending`,bCe=()=>`待付款`,xCe=()=>`待付款`,SCe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gCe(e):n===`ja-JP`?_Ce(e):n===`ko-KR`?vCe(e):n===`ru-RU`?yCe(e):n===`zh-TW`?bCe(e):xCe(e)}),CCe=()=>`Paid`,wCe=()=>`Paid`,TCe=()=>`Paid`,ECe=()=>`Paid`,DCe=()=>`已付款`,OCe=()=>`已付款`,kCe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?CCe(e):n===`ja-JP`?wCe(e):n===`ko-KR`?TCe(e):n===`ru-RU`?ECe(e):n===`zh-TW`?DCe(e):OCe(e)}),ACe=()=>`Expired`,jCe=()=>`Expired`,MCe=()=>`Expired`,NCe=()=>`Expired`,PCe=()=>`已過期`,FCe=()=>`已过期`,ICe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ACe(e):n===`ja-JP`?jCe(e):n===`ko-KR`?MCe(e):n===`ru-RU`?NCe(e):n===`zh-TW`?PCe(e):FCe(e)}),LCe=()=>`Selecting asset`,RCe=()=>`Selecting asset`,zCe=()=>`Selecting asset`,BCe=()=>`Selecting asset`,VCe=()=>`待選擇資產`,HCe=()=>`待选择资产`,UCe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?LCe(e):n===`ja-JP`?RCe(e):n===`ko-KR`?zCe(e):n===`ru-RU`?BCe(e):n===`zh-TW`?VCe(e):HCe(e)}),WCe=()=>`Active`,GCe=()=>`Active`,KCe=()=>`Active`,qCe=()=>`Active`,JCe=()=>`啟用中`,YCe=()=>`启用中`,XCe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?WCe(e):n===`ja-JP`?GCe(e):n===`ko-KR`?KCe(e):n===`ru-RU`?qCe(e):n===`zh-TW`?JCe(e):YCe(e)}),ZCe=()=>`Disabled`,QCe=()=>`Disabled`,$Ce=()=>`Disabled`,ewe=()=>`Disabled`,twe=()=>`已停用`,nwe=()=>`已禁用`,rwe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ZCe(e):n===`ja-JP`?QCe(e):n===`ko-KR`?$Ce(e):n===`ru-RU`?ewe(e):n===`zh-TW`?twe(e):nwe(e)}),iwe=()=>`Monitoring`,awe=()=>`Monitoring`,owe=()=>`Monitoring`,swe=()=>`Monitoring`,cwe=()=>`監控中`,lwe=()=>`监控中`,uwe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?iwe(e):n===`ja-JP`?awe(e):n===`ko-KR`?owe(e):n===`ru-RU`?swe(e):n===`zh-TW`?cwe(e):lwe(e)}),dwe=()=>`Active`,fwe=()=>`Active`,pwe=()=>`Active`,mwe=()=>`Active`,hwe=()=>`啟用中`,gwe=()=>`启用中`,_we=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dwe(e):n===`ja-JP`?fwe(e):n===`ko-KR`?pwe(e):n===`ru-RU`?mwe(e):n===`zh-TW`?hwe(e):gwe(e)}),vwe=()=>`Disabled`,ywe=()=>`Disabled`,bwe=()=>`Disabled`,xwe=()=>`Disabled`,Swe=()=>`已停用`,Cwe=()=>`已禁用`,wwe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vwe(e):n===`ja-JP`?ywe(e):n===`ko-KR`?bwe(e):n===`ru-RU`?xwe(e):n===`zh-TW`?Swe(e):Cwe(e)}),Twe=()=>`No data`,Ewe=()=>`No data`,Dwe=()=>`No data`,Owe=()=>`No data`,kwe=()=>`暫無資料`,Awe=()=>`暂无数据`,jwe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Twe(e):n===`ja-JP`?Ewe(e):n===`ko-KR`?Dwe(e):n===`ru-RU`?Owe(e):n===`zh-TW`?kwe(e):Awe(e)}),Mwe=()=>`Signing out…`,Nwe=()=>`Signing out…`,Pwe=()=>`Signing out…`,Fwe=()=>`Signing out…`,Iwe=()=>`登出中…`,Lwe=()=>`登出中…`,Rwe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Mwe(e):n===`ja-JP`?Nwe(e):n===`ko-KR`?Pwe(e):n===`ru-RU`?Fwe(e):n===`zh-TW`?Iwe(e):Lwe(e)}),zwe=()=>`Secure, high-performance USDT payment middleware`,Bwe=()=>`Secure, high-performance USDT payment middleware`,Vwe=()=>`Secure, high-performance USDT payment middleware`,Hwe=()=>`Secure, high-performance USDT payment middleware`,Uwe=()=>`安全、高效的 USDT 支付中介軟體`,Wwe=()=>`安全、高效的 USDT 支付中介软件`,Gwe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zwe(e):n===`ja-JP`?Bwe(e):n===`ko-KR`?Vwe(e):n===`ru-RU`?Hwe(e):n===`zh-TW`?Uwe(e):Wwe(e)}),Kwe=()=>`Amount to pay`,qwe=()=>`支払金額`,Jwe=()=>`결제 금액`,Ywe=()=>`Сумма к оплате`,Xwe=()=>`應付金額`,Zwe=()=>`应付金额`,Qwe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Kwe(e):n===`ja-JP`?qwe(e):n===`ko-KR`?Jwe(e):n===`ru-RU`?Ywe(e):n===`zh-TW`?Xwe(e):Zwe(e)}),$we=()=>`Back`,eTe=()=>`戻る`,tTe=()=>`뒤로`,nTe=()=>`Назад`,rTe=()=>`返回`,iTe=()=>`返回`,aTe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$we(e):n===`ja-JP`?eTe(e):n===`ko-KR`?tTe(e):n===`ru-RU`?nTe(e):n===`zh-TW`?rTe(e):iTe(e)}),oTe=()=>`Waiting for confirmation`,sTe=()=>`入金確認を待機中`,cTe=()=>`입금 확인 대기 중`,lTe=()=>`Ожидание подтверждения`,uTe=()=>`等待到賬確認`,dTe=()=>`等待到账确认`,fTe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?oTe(e):n===`ja-JP`?sTe(e):n===`ko-KR`?cTe(e):n===`ru-RU`?lTe(e):n===`zh-TW`?uTe(e):dTe(e)}),pTe=()=>`Confirm payment`,mTe=()=>`支払いを確認`,hTe=()=>`결제 확인`,gTe=()=>`Подтвердить оплату`,_Te=()=>`確認支付`,vTe=()=>`确认支付`,yTe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pTe(e):n===`ja-JP`?mTe(e):n===`ko-KR`?hTe(e):n===`ru-RU`?gTe(e):n===`zh-TW`?_Te(e):vTe(e)}),bTe=()=>`Copied`,xTe=()=>`コピーしました`,STe=()=>`복사됨`,CTe=()=>`Скопировано`,wTe=()=>`已複製`,TTe=()=>`已复制`,ETe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bTe(e):n===`ja-JP`?xTe(e):n===`ko-KR`?STe(e):n===`ru-RU`?CTe(e):n===`zh-TW`?wTe(e):TTe(e)}),DTe=()=>`Currency`,OTe=()=>`通貨`,kTe=()=>`통화`,ATe=()=>`Валюта`,jTe=()=>`幣種`,MTe=()=>`币种`,NTe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?DTe(e):n===`ja-JP`?OTe(e):n===`ko-KR`?kTe(e):n===`ru-RU`?ATe(e):n===`zh-TW`?jTe(e):MTe(e)}),PTe=()=>`Customer Service`,FTe=()=>`カスタマーサポート`,ITe=()=>`고객센터`,LTe=()=>`Поддержка`,RTe=()=>`客服`,zTe=()=>`客服`,BTe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?PTe(e):n===`ja-JP`?FTe(e):n===`ko-KR`?ITe(e):n===`ru-RU`?LTe(e):n===`zh-TW`?RTe(e):zTe(e)}),VTe=()=>`Payment Expired`,HTe=()=>`支払い期限切れ`,UTe=()=>`결제 만료`,WTe=()=>`Платеж истек`,GTe=()=>`支付已過期`,KTe=()=>`支付已过期`,qTe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?VTe(e):n===`ja-JP`?HTe(e):n===`ko-KR`?UTe(e):n===`ru-RU`?WTe(e):n===`zh-TW`?GTe(e):KTe(e)}),JTe=()=>`Please initiate a new payment`,YTe=()=>`新しい支払いを開始してください`,XTe=()=>`새 결제를 시작하세요`,ZTe=()=>`Создайте новый платеж`,QTe=()=>`請重新發起支付`,$Te=()=>`请重新发起支付`,eEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?JTe(e):n===`ja-JP`?YTe(e):n===`ko-KR`?XTe(e):n===`ru-RU`?ZTe(e):n===`zh-TW`?QTe(e):$Te(e)}),tEe=()=>`Loading payment`,nEe=()=>`支払い情報を読み込み中`,rEe=()=>`결제 정보 불러오는 중`,iEe=()=>`Загрузка платежа`,aEe=()=>`正在載入支付資訊`,oEe=()=>`正在加载支付信息`,sEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tEe(e):n===`ja-JP`?nEe(e):n===`ko-KR`?rEe(e):n===`ru-RU`?iEe(e):n===`zh-TW`?aEe(e):oEe(e)}),cEe=()=>`Network`,lEe=()=>`ネットワーク`,uEe=()=>`네트워크`,dEe=()=>`Сеть`,fEe=()=>`網絡`,pEe=()=>`网络`,mEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cEe(e):n===`ja-JP`?lEe(e):n===`ko-KR`?uEe(e):n===`ru-RU`?dEe(e):n===`zh-TW`?fEe(e):pEe(e)}),hEe=()=>`Order Not Found`,gEe=()=>`注文が見つかりません`,_Ee=()=>`주문 없음`,vEe=()=>`Заказ не найден`,yEe=()=>`訂單不存在`,bEe=()=>`订单不存在`,xEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hEe(e):n===`ja-JP`?gEe(e):n===`ko-KR`?_Ee(e):n===`ru-RU`?vEe(e):n===`zh-TW`?yEe(e):bEe(e)}),SEe=()=>`The order does not exist or has already expired`,CEe=()=>`注文が存在しないか期限切れです`,wEe=()=>`주문이 없거나 이미 만료되었습니다`,TEe=()=>`Заказ не существует или уже истек`,EEe=()=>`訂單不存在或已過期`,DEe=()=>`订单不存在或已经过期`,OEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?SEe(e):n===`ja-JP`?CEe(e):n===`ko-KR`?wEe(e):n===`ru-RU`?TEe(e):n===`zh-TW`?EEe(e):DEe(e)}),kEe=()=>`Order amount`,AEe=()=>`注文金額`,jEe=()=>`주문 금액`,MEe=()=>`Сумма заказа`,NEe=()=>`訂單金額`,PEe=()=>`订单金额`,FEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kEe(e):n===`ja-JP`?AEe(e):n===`ko-KR`?jEe(e):n===`ru-RU`?MEe(e):n===`zh-TW`?NEe(e):PEe(e)}),IEe=()=>`Order ID`,LEe=()=>`注文ID`,REe=()=>`주문 ID`,zEe=()=>`ID заказа`,BEe=()=>`訂單號`,VEe=()=>`订单号`,HEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?IEe(e):n===`ja-JP`?LEe(e):n===`ko-KR`?REe(e):n===`ru-RU`?zEe(e):n===`zh-TW`?BEe(e):VEe(e)}),UEe=()=>`Payment address`,WEe=()=>`支払いアドレス`,GEe=()=>`결제 주소`,KEe=()=>`Адрес оплаты`,qEe=()=>`收款地址`,JEe=()=>`收款地址`,YEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?UEe(e):n===`ja-JP`?WEe(e):n===`ko-KR`?GEe(e):n===`ru-RU`?KEe(e):n===`zh-TW`?qEe(e):JEe(e)}),XEe=()=>`Powered by`,ZEe=()=>`Powered by`,QEe=()=>`Powered by`,$Ee=()=>`Powered by`,eDe=()=>`Powered by`,tDe=()=>`Powered by`,nDe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?XEe(e):n===`ja-JP`?ZEe(e):n===`ko-KR`?QEe(e):n===`ru-RU`?$Ee(e):n===`zh-TW`?eDe(e):tDe(e)}),rDe=()=>`Redirecting...`,iDe=()=>`リダイレクト中...`,aDe=()=>`이동 중...`,oDe=()=>`Перенаправление...`,sDe=()=>`正在跳轉...`,cDe=()=>`正在跳转...`,lDe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rDe(e):n===`ja-JP`?iDe(e):n===`ko-KR`?aDe(e):n===`ru-RU`?oDe(e):n===`zh-TW`?sDe(e):cDe(e)}),uDe=()=>`Retry`,dDe=()=>`再試行`,fDe=()=>`재시도`,pDe=()=>`Повторить`,mDe=()=>`重試`,hDe=()=>`重试`,gDe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?uDe(e):n===`ja-JP`?dDe(e):n===`ko-KR`?fDe(e):n===`ru-RU`?pDe(e):n===`zh-TW`?mDe(e):hDe(e)}),_De=()=>`Scan or copy address to pay`,vDe=()=>`スキャンまたはアドレスをコピー`,yDe=()=>`스캔하거나 주소를 복사해 결제`,bDe=()=>`Сканируйте или скопируйте адрес`,xDe=()=>`掃碼或複製地址付款`,SDe=()=>`扫码或复制地址付款`,CDe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_De(e):n===`ja-JP`?vDe(e):n===`ko-KR`?yDe(e):n===`ru-RU`?bDe(e):n===`zh-TW`?xDe(e):SDe(e)}),wDe=()=>`Select payment asset`,TDe=()=>`支払い通貨を選択`,EDe=()=>`결제 자산 선택`,DDe=()=>`Выберите платежный актив`,ODe=()=>`選擇支付幣種`,kDe=()=>`选择支付币种`,ADe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wDe(e):n===`ja-JP`?TDe(e):n===`ko-KR`?EDe(e):n===`ru-RU`?DDe(e):n===`zh-TW`?ODe(e):kDe(e)}),jDe=()=>`Select payment network and asset`,MDe=()=>`支払いネットワークと通貨を選択`,NDe=()=>`결제 네트워크와 자산 선택`,PDe=()=>`Выберите сеть и актив`,FDe=()=>`選擇支付網路和幣種`,IDe=()=>`选择支付网络和币种`,LDe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jDe(e):n===`ja-JP`?MDe(e):n===`ko-KR`?NDe(e):n===`ru-RU`?PDe(e):n===`zh-TW`?FDe(e):IDe(e)}),RDe=()=>`Choose how to pay`,zDe=()=>`支払い方法を選択`,BDe=()=>`결제 방법 선택`,VDe=()=>`Выберите способ оплаты`,HDe=()=>`選擇付款方式`,UDe=()=>`选择付款方式`,WDe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?RDe(e):n===`ja-JP`?zDe(e):n===`ko-KR`?BDe(e):n===`ru-RU`?VDe(e):n===`zh-TW`?HDe(e):UDe(e)}),GDe=()=>`Change network or asset`,KDe=()=>`Change network or asset`,qDe=()=>`Change network or asset`,JDe=()=>`Change network or asset`,YDe=()=>`切換網路或幣種`,XDe=()=>`切换网络或币种`,ZDe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?GDe(e):n===`ja-JP`?KDe(e):n===`ko-KR`?qDe(e):n===`ru-RU`?JDe(e):n===`zh-TW`?YDe(e):XDe(e)}),QDe=()=>`On-chain payment`,$De=()=>`オンチェーン支払い`,eOe=()=>`온체인 결제`,tOe=()=>`Оплата ончейн`,nOe=()=>`鏈上支付`,rOe=()=>`链上支付`,iOe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?QDe(e):n===`ja-JP`?$De(e):n===`ko-KR`?eOe(e):n===`ru-RU`?tOe(e):n===`zh-TW`?nOe(e):rOe(e)}),aOe=()=>`Send funds from your wallet to the payment address`,oOe=()=>`ウォレットから指定アドレスへ送金`,sOe=()=>`지갑에서 지정 주소로 전송`,cOe=()=>`Отправьте средства с кошелька на адрес оплаты`,lOe=()=>`使用錢包轉帳到指定地址`,uOe=()=>`使用钱包转账到指定地址`,dOe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?aOe(e):n===`ja-JP`?oOe(e):n===`ko-KR`?sOe(e):n===`ru-RU`?cOe(e):n===`zh-TW`?lOe(e):uOe(e)}),fOe=()=>`Payment Successful`,pOe=()=>`支払い成功`,mOe=()=>`결제 성공`,hOe=()=>`Платеж успешен`,gOe=()=>`支付成功`,_Oe=()=>`支付成功`,vOe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fOe(e):n===`ja-JP`?pOe(e):n===`ko-KR`?mOe(e):n===`ru-RU`?hOe(e):n===`zh-TW`?gOe(e):_Oe(e)}),yOe=()=>`Payment has been confirmed`,bOe=()=>`支払いが確認されました`,xOe=()=>`결제가 확인되었습니다`,SOe=()=>`Платеж подтвержден`,COe=()=>`支付已確認`,wOe=()=>`支付已确认`,TOe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yOe(e):n===`ja-JP`?bOe(e):n===`ko-KR`?xOe(e):n===`ru-RU`?SOe(e):n===`zh-TW`?COe(e):wOe(e)}),EOe=()=>`Connection Timeout`,DOe=()=>`接続タイムアウト`,OOe=()=>`연결 시간 초과`,kOe=()=>`Таймаут соединения`,AOe=()=>`連接超時`,jOe=()=>`连接超时`,MOe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?EOe(e):n===`ja-JP`?DOe(e):n===`ko-KR`?OOe(e):n===`ru-RU`?kOe(e):n===`zh-TW`?AOe(e):jOe(e)}),NOe=()=>`Unable to connect to the payment server`,POe=()=>`支払いサーバーに接続できません`,FOe=()=>`결제 서버에 연결할 수 없습니다`,IOe=()=>`Не удалось подключиться к серверу оплаты`,LOe=()=>`無法連接到支付伺服器`,ROe=()=>`无法连接到支付服务器`,zOe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?NOe(e):n===`ja-JP`?POe(e):n===`ko-KR`?FOe(e):n===`ru-RU`?IOe(e):n===`zh-TW`?LOe(e):ROe(e)}),BOe=()=>`Paid but not confirmed?`,VOe=()=>`送金済みだが未確認ですか?`,HOe=()=>`송금했지만 확인되지 않았나요?`,UOe=()=>`Оплатили, но нет подтверждения?`,WOe=()=>`已轉帳但未到帳?`,GOe=()=>`已转账但未到账?`,KOe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?BOe(e):n===`ja-JP`?VOe(e):n===`ko-KR`?HOe(e):n===`ru-RU`?UOe(e):n===`zh-TW`?WOe(e):GOe(e)}),qOe=()=>`Confirm transfer`,JOe=()=>`送金を確認`,YOe=()=>`송금 확인`,XOe=()=>`Подтвердить перевод`,ZOe=()=>`確認轉帳`,QOe=()=>`确认转账`,$Oe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qOe(e):n===`ja-JP`?JOe(e):n===`ko-KR`?YOe(e):n===`ru-RU`?XOe(e):n===`zh-TW`?ZOe(e):QOe(e)}),eke=()=>`Enter the transaction hash for this transfer. We will verify it and update the order status.`,tke=()=>`この送金の取引ハッシュを入力してください。確認後、注文ステータスを更新します。`,nke=()=>`이 송금의 거래 해시를 입력하세요. 확인 후 주문 상태를 업데이트합니다.`,rke=()=>`Введите хэш этой транзакции. Мы проверим его и обновим статус заказа.`,ike=()=>`請填寫這筆轉帳的交易哈希,我們會立即校驗並更新訂單狀態。`,ake=()=>`请填写这笔转账的交易哈希,我们会立即校验并更新订单状态。`,oke=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?eke(e):n===`ja-JP`?tke(e):n===`ko-KR`?nke(e):n===`ru-RU`?rke(e):n===`zh-TW`?ike(e):ake(e)}),ske=()=>`Transaction hash`,cke=()=>`取引ハッシュ`,lke=()=>`거래 해시`,uke=()=>`Хэш транзакции`,dke=()=>`交易哈希`,fke=()=>`交易哈希`,pke=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ske(e):n===`ja-JP`?cke(e):n===`ko-KR`?lke(e):n===`ru-RU`?uke(e):n===`zh-TW`?dke(e):fke(e)}),mke=()=>`Enter transaction hash / TxID`,hke=()=>`取引ハッシュ / TxID を入力`,gke=()=>`거래 해시 / TxID 입력`,_ke=()=>`Введите хэш транзакции / TxID`,vke=()=>`請輸入交易哈希 / TxID`,yke=()=>`请输入交易哈希 / TxID`,bke=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mke(e):n===`ja-JP`?hke(e):n===`ko-KR`?gke(e):n===`ru-RU`?_ke(e):n===`zh-TW`?vke(e):yke(e)}),xke=()=>`Make sure the amount, network, and receiving address match this order. Submit once only.`,Ske=()=>`金額、ネットワーク、受取アドレスがこの注文と一致していることを確認してください。送信は一度だけで十分です。`,Cke=()=>`금액, 네트워크, 수취 주소가 이 주문과 일치하는지 확인하세요. 한 번만 제출하면 됩니다.`,wke=()=>`Убедитесь, что сумма, сеть и адрес получателя совпадают с этим заказом. Отправьте только один раз.`,Tke=()=>`請確認金額、網路和收款地址與目前訂單一致。提交一次即可,請勿重複提交。`,Eke=()=>`请确认金额、网络和收款地址与当前订单一致。提交一次即可,请勿重复提交。`,Dke=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xke(e):n===`ja-JP`?Ske(e):n===`ko-KR`?Cke(e):n===`ru-RU`?wke(e):n===`zh-TW`?Tke(e):Eke(e)}),Oke=()=>`Confirm submission`,kke=()=>`送信を確認`,Ake=()=>`제출 확인`,jke=()=>`Подтвердить отправку`,Mke=()=>`確認提交`,Nke=()=>`确认提交`,Pke=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Oke(e):n===`ja-JP`?kke(e):n===`ko-KR`?Ake(e):n===`ru-RU`?jke(e):n===`zh-TW`?Mke(e):Nke(e)}),Fke=()=>`Enter the transaction hash`,Ike=()=>`取引ハッシュを入力してください`,Lke=()=>`거래 해시를 입력하세요`,Rke=()=>`Введите хэш транзакции`,zke=()=>`請輸入交易哈希`,Bke=()=>`请输入交易哈希`,Vke=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Fke(e):n===`ja-JP`?Ike(e):n===`ko-KR`?Lke(e):n===`ru-RU`?Rke(e):n===`zh-TW`?zke(e):Bke(e)}),Hke=()=>`Transaction hash submitted. Waiting for confirmation.`,Uke=()=>`取引ハッシュを送信しました。確認中です。`,Wke=()=>`거래 해시가 제출되었습니다. 확인을 기다리는 중입니다.`,Gke=()=>`Хэш транзакции отправлен. Ожидаем подтверждения.`,Kke=()=>`已提交交易哈希,正在確認到帳`,qke=()=>`已提交交易哈希,正在确认到账`,Jke=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hke(e):n===`ja-JP`?Uke(e):n===`ko-KR`?Wke(e):n===`ru-RU`?Gke(e):n===`zh-TW`?Kke(e):qke(e)}),Yke=()=>`OkPay Config`,Xke=()=>`OkPay Config`,Zke=()=>`OkPay Config`,Qke=()=>`OkPay Config`,$ke=()=>`OkPay 配置`,eAe=()=>`OkPay 配置`,tAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yke(e):n===`ja-JP`?Xke(e):n===`ko-KR`?Zke(e):n===`ru-RU`?Qke(e):n===`zh-TW`?$ke(e):eAe(e)}),nAe=()=>`Configure OkPay hosted checkout parameters.`,rAe=()=>`Configure OkPay hosted checkout parameters.`,iAe=()=>`Configure OkPay hosted checkout parameters.`,aAe=()=>`Configure OkPay hosted checkout parameters.`,oAe=()=>`配置 OkPay 託管收銀台參數。`,sAe=()=>`配置 OkPay 托管收银台参数。`,cAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nAe(e):n===`ja-JP`?rAe(e):n===`ko-KR`?iAe(e):n===`ru-RU`?aAe(e):n===`zh-TW`?oAe(e):sAe(e)}),lAe=()=>`Enable OkPay`,uAe=()=>`Enable OkPay`,dAe=()=>`Enable OkPay`,fAe=()=>`Enable OkPay`,pAe=()=>`啟用 OkPay`,mAe=()=>`启用 OkPay`,hAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lAe(e):n===`ja-JP`?uAe(e):n===`ko-KR`?dAe(e):n===`ru-RU`?fAe(e):n===`zh-TW`?pAe(e):mAe(e)}),gAe=()=>`Allow checkout orders to be redirected to OkPay.`,_Ae=()=>`Allow checkout orders to be redirected to OkPay.`,vAe=()=>`Allow checkout orders to be redirected to OkPay.`,yAe=()=>`Allow checkout orders to be redirected to OkPay.`,bAe=()=>`允許收銀台訂單跳轉到 OkPay 支付頁。`,xAe=()=>`允许收银台订单跳转到 OkPay 支付页。`,SAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gAe(e):n===`ja-JP`?_Ae(e):n===`ko-KR`?vAe(e):n===`ru-RU`?yAe(e):n===`zh-TW`?bAe(e):xAe(e)}),CAe=()=>`Shop ID`,wAe=()=>`Shop ID`,TAe=()=>`Shop ID`,EAe=()=>`Shop ID`,DAe=()=>`商戶 ID`,OAe=()=>`商户 ID`,kAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?CAe(e):n===`ja-JP`?wAe(e):n===`ko-KR`?TAe(e):n===`ru-RU`?EAe(e):n===`zh-TW`?DAe(e):OAe(e)}),AAe=()=>`Please enter the OkPay shop ID`,jAe=()=>`Please enter the OkPay shop ID`,MAe=()=>`Please enter the OkPay shop ID`,NAe=()=>`Please enter the OkPay shop ID`,PAe=()=>`請輸入 OkPay 商戶 ID`,FAe=()=>`请输入 OkPay 商户 ID`,IAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?AAe(e):n===`ja-JP`?jAe(e):n===`ko-KR`?MAe(e):n===`ru-RU`?NAe(e):n===`zh-TW`?PAe(e):FAe(e)}),LAe=()=>`Shop Token`,RAe=()=>`Shop Token`,zAe=()=>`Shop Token`,BAe=()=>`Shop Token`,VAe=()=>`商戶 Token`,HAe=()=>`商户 Token`,UAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?LAe(e):n===`ja-JP`?RAe(e):n===`ko-KR`?zAe(e):n===`ru-RU`?BAe(e):n===`zh-TW`?VAe(e):HAe(e)}),WAe=()=>`Please enter the OkPay shop token`,GAe=()=>`Please enter the OkPay shop token`,KAe=()=>`Please enter the OkPay shop token`,qAe=()=>`Please enter the OkPay shop token`,JAe=()=>`請輸入 OkPay 商戶 Token`,YAe=()=>`请输入 OkPay 商户 Token`,XAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?WAe(e):n===`ja-JP`?GAe(e):n===`ko-KR`?KAe(e):n===`ru-RU`?qAe(e):n===`zh-TW`?JAe(e):YAe(e)}),ZAe=()=>`API URL`,QAe=()=>`API URL`,$Ae=()=>`API URL`,eje=()=>`API URL`,tje=()=>`API 位址`,nje=()=>`API 地址`,rje=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ZAe(e):n===`ja-JP`?QAe(e):n===`ko-KR`?$Ae(e):n===`ru-RU`?eje(e):n===`zh-TW`?tje(e):nje(e)}),ije=()=>`Callback URL`,aje=()=>`Callback URL`,oje=()=>`Callback URL`,sje=()=>`Callback URL`,cje=()=>`回調位址`,lje=()=>`回调地址`,uje=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ije(e):n===`ja-JP`?aje(e):n===`ko-KR`?oje(e):n===`ru-RU`?sje(e):n===`zh-TW`?cje(e):lje(e)}),dje=()=>`Please enter a valid callback URL`,fje=()=>`Please enter a valid callback URL`,pje=()=>`Please enter a valid callback URL`,mje=()=>`Please enter a valid callback URL`,hje=()=>`請輸入有效的回調位址`,gje=()=>`请输入有效的回调地址`,_je=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dje(e):n===`ja-JP`?fje(e):n===`ko-KR`?pje(e):n===`ru-RU`?mje(e):n===`zh-TW`?hje(e):gje(e)}),vje=()=>`Return URL`,yje=()=>`Return URL`,bje=()=>`Return URL`,xje=()=>`Return URL`,Sje=()=>`返回位址`,Cje=()=>`返回地址`,wje=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vje(e):n===`ja-JP`?yje(e):n===`ko-KR`?bje(e):n===`ru-RU`?xje(e):n===`zh-TW`?Sje(e):Cje(e)}),Tje=()=>`Timeout (seconds)`,Eje=()=>`Timeout (seconds)`,Dje=()=>`Timeout (seconds)`,Oje=()=>`Timeout (seconds)`,kje=()=>`逾時時間(秒)`,Aje=()=>`超时时间(秒)`,jje=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Tje(e):n===`ja-JP`?Eje(e):n===`ko-KR`?Dje(e):n===`ru-RU`?Oje(e):n===`zh-TW`?kje(e):Aje(e)}),Mje=()=>`Please enter the timeout`,Nje=()=>`Please enter the timeout`,Pje=()=>`Please enter the timeout`,Fje=()=>`Please enter the timeout`,Ije=()=>`請輸入逾時時間`,Lje=()=>`请输入超时时间`,Rje=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Mje(e):n===`ja-JP`?Nje(e):n===`ko-KR`?Pje(e):n===`ru-RU`?Fje(e):n===`zh-TW`?Ije(e):Lje(e)}),zje=()=>`Timeout must be a positive integer`,Bje=()=>`Timeout must be a positive integer`,Vje=()=>`Timeout must be a positive integer`,Hje=()=>`Timeout must be a positive integer`,Uje=()=>`逾時時間必須是正整數`,Wje=()=>`超时时间必须是正整数`,Gje=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zje(e):n===`ja-JP`?Bje(e):n===`ko-KR`?Vje(e):n===`ru-RU`?Hje(e):n===`zh-TW`?Uje(e):Wje(e)}),Kje=()=>`Allowed Tokens`,qje=()=>`Allowed Tokens`,Jje=()=>`Allowed Tokens`,Yje=()=>`Allowed Tokens`,Xje=()=>`允許代幣`,Zje=()=>`允许代币`,Qje=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Kje(e):n===`ja-JP`?qje(e):n===`ko-KR`?Jje(e):n===`ru-RU`?Yje(e):n===`zh-TW`?Xje(e):Zje(e)}),$je=()=>`Comma-separated token symbols, for example USDT,USDC.`,eMe=()=>`Comma-separated token symbols, for example USDT,USDC.`,tMe=()=>`Comma-separated token symbols, for example USDT,USDC.`,nMe=()=>`Comma-separated token symbols, for example USDT,USDC.`,rMe=()=>`多個代幣用英文逗號分隔,例如 USDT,USDC。`,iMe=()=>`多个代币用英文逗号分隔,例如 USDT,USDC。`,aMe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$je(e):n===`ja-JP`?eMe(e):n===`ko-KR`?tMe(e):n===`ru-RU`?nMe(e):n===`zh-TW`?rMe(e):iMe(e)}),oMe=()=>`Save OkPay Config`,sMe=()=>`Save OkPay Config`,cMe=()=>`Save OkPay Config`,lMe=()=>`Save OkPay Config`,uMe=()=>`儲存 OkPay 配置`,dMe=()=>`保存 OkPay 配置`,fMe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?oMe(e):n===`ja-JP`?sMe(e):n===`ko-KR`?cMe(e):n===`ru-RU`?lMe(e):n===`zh-TW`?uMe(e):dMe(e)}),pMe=()=>`OkPay config saved`,mMe=()=>`OkPay config saved`,hMe=()=>`OkPay config saved`,gMe=()=>`OkPay config saved`,_Me=()=>`OkPay 配置已儲存`,vMe=()=>`OkPay 配置已保存`,yMe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pMe(e):n===`ja-JP`?mMe(e):n===`ko-KR`?hMe(e):n===`ru-RU`?gMe(e):n===`zh-TW`?_Me(e):vMe(e)}),bMe=()=>`Reset to defaults`,xMe=()=>`Reset to defaults`,SMe=()=>`Reset to defaults`,CMe=()=>`Reset to defaults`,wMe=()=>`重置為預設值`,TMe=()=>`重置为默认值`,EMe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bMe(e):n===`ja-JP`?xMe(e):n===`ko-KR`?SMe(e):n===`ru-RU`?CMe(e):n===`zh-TW`?wMe(e):TMe(e)}),DMe=()=>`OkPay config reset to defaults`,OMe=()=>`OkPay config reset to defaults`,kMe=()=>`OkPay config reset to defaults`,AMe=()=>`OkPay config reset to defaults`,jMe=()=>`OkPay 配置已重置為預設值`,MMe=()=>`OkPay 配置已重置为默认值`,NMe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?DMe(e):n===`ja-JP`?OMe(e):n===`ko-KR`?kMe(e):n===`ru-RU`?AMe(e):n===`zh-TW`?jMe(e):MMe(e)}),PMe=()=>`OkPay`,FMe=()=>`OkPay`,IMe=()=>`OkPay`,LMe=()=>`OkPay`,RMe=()=>`OkPay`,zMe=()=>`OkPay`,BMe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?PMe(e):n===`ja-JP`?FMe(e):n===`ko-KR`?IMe(e):n===`ru-RU`?LMe(e):n===`zh-TW`?RMe(e):zMe(e)}),VMe=()=>`Open OkPay in Telegram to complete payment`,HMe=()=>`Telegram で OkPay を開いて支払う`,UMe=()=>`Telegram에서 OkPay를 열어 결제`,WMe=()=>`Откройте OkPay в Telegram для оплаты`,GMe=()=>`透過 Telegram 開啟 OkPay 完成支付`,KMe=()=>`通过 Telegram 打开 OkPay 完成支付`,qMe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?VMe(e):n===`ja-JP`?HMe(e):n===`ko-KR`?UMe(e):n===`ru-RU`?WMe(e):n===`zh-TW`?GMe(e):KMe(e)}),JMe=()=>`Opening OkPay payment window`,YMe=()=>`OkPay 支払いウィンドウを開いています`,XMe=()=>`OkPay 결제 창을 여는 중`,ZMe=()=>`Открываем окно оплаты OkPay`,QMe=()=>`正在開啟 OkPay 支付視窗`,$Me=()=>`正在打开 OkPay 支付窗口`,eNe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?JMe(e):n===`ja-JP`?YMe(e):n===`ko-KR`?XMe(e):n===`ru-RU`?ZMe(e):n===`zh-TW`?QMe(e):$Me(e)});export{mEe as $,p0 as $a,hP as $c,hp as $d,mo as $f,p7 as $i,hD as $l,mfe as $n,hJ as $o,_ as $p,mae as $r,hV as $s,mye as $t,hb as $u,pke as A,f3 as Aa,mL as Ac,mg as Ad,pl as Af,pte as Ai,mA as Al,phe as An,mZ as Ao,fn as Ap,pce as Ar,mW as As,pSe as At,mC as Au,ZDe as B,X2 as Ba,QF as Bc,Qm as Bd,Zs as Bf,X9 as Bi,QO as Bl,Zpe as Bn,QY as Bo,Ye as Bp,Zoe as Br,QH as Bs,Zbe as Bt,Qx as Bu,cAe as C,s6 as Ca,lR as Cc,l_ as Cd,cu as Cf,cne as Ci,lj as Cl,cge as Cn,lQ as Co,sr as Cp,cle as Cr,lG as Cs,cCe as Ct,lw as Cu,Pke as D,N3 as Da,FL as Dc,Fg as Dd,Pl as Df,Pte as Di,FA as Dl,Phe as Dn,FZ as Do,Nn as Dp,Pce as Dr,FW as Ds,PSe as Dt,FC as Du,Vke as E,B3 as Ea,HL as Ec,Hg as Ed,Vl as Ef,Vte as Ei,HA as El,Vhe as En,HZ as Eo,Bn as Ep,Vce as Er,HW as Es,VSe as Et,HC as Eu,MOe as F,j4 as Fa,NI as Fc,Nh as Fd,Mc as Ff,Mee as Fi,Nk as Fl,Mme as Fn,NX as Fo,At as Fp,Mse as Fr,NU as Fs,Mxe as Ft,NS as Fu,gDe as G,h2 as Ga,_F as Gc,_m as Gd,gs as Gf,h9 as Gi,_O as Gl,gpe as Gn,_Y as Go,me as Gp,goe as Gr,_H as Gs,gbe as Gt,_x as Gu,LDe as H,I2 as Ha,RF as Hc,Rm as Hd,Ls as Hf,I9 as Hi,RO as Hl,Lpe as Hn,RY as Ho,Fe as Hp,Loe as Hr,RH as Hs,Lbe as Ht,Rx as Hu,TOe as I,w4 as Ia,EI as Ic,Eh as Id,Tc as If,Tee as Ii,Ek as Il,Tme as In,EX as Io,Ct as Ip,Tse as Ir,EU as Is,Txe as It,ES as Iu,YEe as J,J0 as Ja,XP as Jc,Xp as Jd,Yo as Jf,J7 as Ji,XD as Jl,Yfe as Jn,XJ as Jo,W as Jp,Yae as Jr,XV as Js,Yye as Jt,Xb as Ju,lDe as K,c2 as Ka,uF as Kc,um as Kd,ls as Kf,c9 as Ki,uO as Kl,lpe as Kn,uY as Ko,se as Kp,loe as Kr,uH as Ks,lbe as Kt,ux as Ku,vOe as L,_4 as La,yI as Lc,yh as Ld,vc as Lf,vee as Li,yk as Ll,vme as Ln,yX as Lo,gt as Lp,vse as Lr,yU as Ls,vxe as Lt,yS as Lu,$Oe as M,Q4 as Ma,eL as Mc,eg as Md,$c as Mf,$ee as Mi,eA as Ml,$me as Mn,eZ as Mo,Zt as Mp,$se as Mr,eW as Ms,$xe as Mt,eC as Mu,KOe as N,G4 as Na,qI as Nc,qh as Nd,Kc as Nf,Kee as Ni,qk as Nl,Kme as Nn,qX as No,Wt as Np,Kse as Nr,qU as Ns,Kxe as Nt,qS as Nu,Dke as O,E3 as Oa,OL as Oc,Og as Od,Dl as Of,Dte as Oi,OA as Ol,Dhe as On,OZ as Oo,En as Op,Dce as Or,OW as Os,DSe as Ot,OC as Ou,zOe as P,R4 as Pa,BI as Pc,Bh as Pd,zc as Pf,zee as Pi,Bk as Pl,zme as Pn,BX as Po,Lt as Pp,zse as Pr,BU as Ps,zxe as Pt,BS as Pu,xEe as Q,b0 as Qa,SP as Qc,Sp as Qd,xo as Qf,b7 as Qi,SD as Ql,xfe as Qn,SJ as Qo,a as Qp,xae as Qr,SV as Qs,xye as Qt,Sb as Qu,dOe as R,u4 as Ra,fI as Rc,fh as Rd,dc as Rf,dee as Ri,fk as Rl,dme as Rn,fX as Ro,lt as Rp,dse as Rr,fU as Rs,dxe as Rt,fS as Ru,hAe as S,m6 as Sa,gR as Sc,g_ as Sd,hu as Sf,hne as Si,gj as Sl,hge as Sn,gQ as So,mr as Sp,hle as Sr,gG as Ss,hCe as St,gw as Su,Jke as T,q3 as Ta,YL as Tc,Yg as Td,Jl as Tf,Jte as Ti,YA as Tl,Jhe as Tn,YZ as To,qn as Tp,Jce as Tr,YW as Ts,JSe as Tt,YC as Tu,ADe as U,k2 as Ua,jF as Uc,jm as Ud,As as Uf,k9 as Ui,jO as Ul,Ape as Un,jY as Uo,Oe as Up,Aoe as Ur,jH as Us,Abe as Ut,jx as Uu,WDe as V,U2 as Va,GF as Vc,Gm as Vd,Ws as Vf,U9 as Vi,GO as Vl,Wpe as Vn,GY as Vo,He as Vp,Woe as Vr,GH as Vs,Wbe as Vt,Gx as Vu,CDe as W,S2 as Wa,wF as Wc,wm as Wd,Cs as Wf,S9 as Wi,wO as Wl,Cpe as Wn,wY as Wo,xe as Wp,Coe as Wr,wH as Ws,Cbe as Wt,wx as Wu,FEe as X,P0 as Xa,IP as Xc,Ip as Xd,Fo as Xf,P7 as Xi,ID as Xl,Ffe as Xn,IJ as Xo,A as Xp,Fae as Xr,IV as Xs,Fye as Xt,Ib as Xu,HEe as Y,V0 as Ya,UP as Yc,Up as Yd,Ho as Yf,V7 as Yi,UD as Yl,Hfe as Yn,UJ as Yo,L as Yp,Hae as Yr,UV as Ys,Hye as Yt,Ub as Yu,OEe as Z,D0 as Za,kP as Zc,kp as Zd,Oo as Zf,D7 as Zi,kD as Zl,Ofe as Zn,kJ as Zo,m as Zp,Oae as Zr,kV as Zs,Oye as Zt,kb as Zu,XAe as _,Y6 as _a,ZR as _c,Z_ as _d,Xu as _f,Xne as _i,Zj as _l,Xge as _n,ZQ as _o,Yr as _p,Xle as _r,ZG as _s,XCe as _t,Zw as _u,EMe as a,T5 as aa,DB as ac,Dy as ad,Df as af,Eie as ai,DN as al,Eve as an,D1 as ao,Ta as ap,Ede as ar,Dq as as,ETe as at,DE as au,kAe as b,O6 as ba,AR as bc,A_ as bd,ku as bf,kne as bi,Aj as bl,kge as bn,AQ as bo,Or as bp,kle as br,AG as bs,kCe as bt,Aw as bu,aMe as c,i5 as ca,oB as cc,oy as cd,of as cf,aie as ci,oN as cl,ave as cn,o1 as co,ia as cp,ade as cr,oq as cs,aTe as ct,oE as cu,Rje as d,L8 as da,zz as dc,zv as dd,Rd as df,Rre as di,zM as dl,R_e as dn,z$ as do,Li as dp,Rue as dr,zK as ds,Rwe as dt,zT as du,o7 as ea,cV as ec,cb as ed,cp as ef,sae as ei,cP as el,n as em,sye as en,o0 as eo,oo as ep,sfe as er,cJ as es,sEe as et,cD as eu,jje as f,A8 as fa,Mz as fc,Mv as fd,jd as ff,jre as fi,MM as fl,j_e as fn,M$ as fo,Ai as fp,jue as fr,MK as fs,jwe as ft,MT as fu,rje as g,n8 as ga,iz as gc,iv as gd,rd as gf,rre as gi,iM as gl,r_e as gn,i$ as go,ni as gp,rue as gr,iK as gs,rwe as gt,iT as gu,uje as h,l8 as ha,dz as hc,dv as hd,ud as hf,ure as hi,dM as hl,u_e as hn,d$ as ho,li as hp,uue as hr,dK as hs,uwe as ht,dT as hu,NMe as i,M5 as ia,PB as ic,Py as id,Pf as if,Nie as ii,PN as il,Nve as in,P1 as io,Ma as ip,Nde as ir,Pq as is,NTe as it,PE as iu,oke as j,a3 as ja,sL as jc,sg as jd,ol as jf,ote as ji,sA as jl,ohe as jn,sZ as jo,an as jp,oce as jr,sW as js,oSe as jt,sC as ju,bke as k,y3 as ka,xL as kc,xg as kd,bl as kf,bte as ki,xA as kl,bhe as kn,xZ as ko,yn as kp,bce as kr,xW as ks,bSe as kt,xC as ku,Qje as l,Z8 as la,$z as lc,$v as ld,Qd as lf,Qre as li,$M as ll,Q_e as ln,$$ as lo,Zi as lp,Que as lr,$K as ls,Qwe as lt,$T as lu,_je as m,g8 as ma,vz as mc,vv as md,_d as mf,_re as mi,vM as ml,__e as mn,v$ as mo,gi as mp,_ue as mr,vK as ms,_we as mt,vT as mu,qMe as n,K5 as na,JB as nc,Jy as nd,Jf as nf,qie as ni,JN as nl,qve as nn,J1 as no,Ka as np,qde as nr,Jq as ns,qTe as nt,JE as nu,yMe as o,v5 as oa,bB as oc,by as od,bf as of,yie as oi,bN as ol,yve as on,b1 as oo,va as op,yde as or,bq as os,yTe as ot,bE as ou,wje as p,C8 as pa,Tz as pc,Tv as pd,wd as pf,wre as pi,TM as pl,w_e as pn,T$ as po,Ci as pp,wue as pr,TK as ps,wwe as pt,TT as pu,nDe as q,t2 as qa,rF as qc,rm as qd,ns as qf,t9 as qi,rO as ql,npe as qn,rY as qo,Z as qp,noe as qr,rH as qs,nbe as qt,rx as qu,BMe as r,z5 as ra,VB as rc,Vy as rd,Vf as rf,Bie as ri,VN as rl,Bve as rn,V1 as ro,za as rp,Bde as rr,Vq as rs,BTe as rt,VE as ru,fMe as s,d5 as sa,pB as sc,py as sd,pf as sf,fie as si,pN as sl,fve as sn,p1 as so,da as sp,fde as sr,pq as ss,fTe as st,pE as su,eNe as t,$5 as ta,tV as tc,tb as td,tp as tf,eae as ti,tP as tl,eye as tn,e0 as to,$a as tp,efe as tr,tJ as ts,eEe as tt,tD as tu,Gje as u,W8 as ua,Kz as uc,Kv as ud,Gd as uf,Gre as ui,KM as ul,G_e as un,K$ as uo,Wi as up,Gue as ur,KK as us,Gwe as ut,KT as uu,UAe as v,H6 as va,WR as vc,W_ as vd,Uu as vf,Une as vi,Wj as vl,Uge as vn,WQ as vo,Hr as vp,Ule as vr,WG as vs,UCe as vt,Ww as vu,tAe as w,e6 as wa,nR as wc,n_ as wd,tu as wf,tne as wi,nj as wl,tge as wn,nQ as wo,er as wp,tle as wr,nG as ws,tCe as wt,nw as wu,SAe as x,x6 as xa,CR as xc,C_ as xd,Su as xf,Sne as xi,Cj as xl,Sge as xn,CQ as xo,xr as xp,Sle as xr,CG as xs,SCe as xt,Cw as xu,IAe as y,F6 as ya,LR as yc,L_ as yd,Iu as yf,Ine as yi,Lj as yl,Ige as yn,LQ as yo,Fr as yp,Ile as yr,LG as ys,ICe as yt,Lw as yu,iOe as z,r4 as za,aI as zc,ah as zd,ic as zf,iee as zi,ak as zl,ime as zn,aX as zo,nt as zp,ise as zr,aU as zs,ixe as zt,aS as zu}; \ No newline at end of file diff --git a/src/www/assets/not-found-error-BvJzTnw0.js b/src/www/assets/not-found-error-BvJzTnw0.js new file mode 100644 index 0000000..396b8ba --- /dev/null +++ b/src/www/assets/not-found-error-BvJzTnw0.js @@ -0,0 +1 @@ +import{Dd as e,Ed as t,Od as n,kd as r,tm as i}from"./messages-BOatyqUm.js";import{t as a}from"./useRouter-DtTm7XkK.js";import{t as o}from"./useNavigate-7u4DX0Ho.js";import{t as s}from"./button-C_NDYaz8.js";var c=i();function l(){let i=o(),{history:l}=a();return(0,c.jsx)(`div`,{className:`h-svh`,children:(0,c.jsxs)(`div`,{className:`m-auto flex h-full w-full flex-col items-center justify-center gap-2`,children:[(0,c.jsx)(`h1`,{className:`font-bold text-[7rem] leading-tight`,children:`404`}),(0,c.jsx)(`span`,{className:`font-medium`,children:e()}),(0,c.jsx)(`p`,{className:`text-center text-muted-foreground`,children:t()}),(0,c.jsxs)(`div`,{className:`mt-6 flex gap-4`,children:[(0,c.jsx)(s,{onClick:()=>l.go(-1),variant:`outline`,children:r()}),(0,c.jsx)(s,{onClick:()=>i({to:`/dashboard`}),children:n()})]})]})})}export{l as t}; \ No newline at end of file diff --git a/src/www/assets/not-found-error-CHHM1I1c.js b/src/www/assets/not-found-error-CHHM1I1c.js deleted file mode 100644 index 7cc915c..0000000 --- a/src/www/assets/not-found-error-CHHM1I1c.js +++ /dev/null @@ -1 +0,0 @@ -import{Dd as e,Ed as t,Od as n,Td as r,em as i}from"./messages-Bp0bCjzp.js";import{t as a}from"./useRouter-DtTm7XkK.js";import{t as o}from"./useNavigate-7u4DX0Ho.js";import{t as s}from"./button-BgMnOYKD.js";var c=i();function l(){let i=o(),{history:l}=a();return(0,c.jsx)(`div`,{className:`h-svh`,children:(0,c.jsxs)(`div`,{className:`m-auto flex h-full w-full flex-col items-center justify-center gap-2`,children:[(0,c.jsx)(`h1`,{className:`font-bold text-[7rem] leading-tight`,children:`404`}),(0,c.jsx)(`span`,{className:`font-medium`,children:t()}),(0,c.jsx)(`p`,{className:`text-center text-muted-foreground`,children:r()}),(0,c.jsxs)(`div`,{className:`mt-6 flex gap-4`,children:[(0,c.jsx)(s,{onClick:()=>l.go(-1),variant:`outline`,children:n()}),(0,c.jsx)(s,{onClick:()=>i({to:`/dashboard`}),children:e()})]})]})})}export{l as t}; \ No newline at end of file diff --git a/src/www/assets/notifications-OX72ELc1.js b/src/www/assets/notifications-xdKOW8nn.js similarity index 68% rename from src/www/assets/notifications-OX72ELc1.js rename to src/www/assets/notifications-xdKOW8nn.js index afd4208..967da94 100644 --- a/src/www/assets/notifications-OX72ELc1.js +++ b/src/www/assets/notifications-xdKOW8nn.js @@ -1 +1 @@ -import{$t as e,Bt as t,Gt as n,Ht as r,Jt as i,Kt as a,Qt as o,Rt as s,Ut as c,Vt as l,Wt as u,Xt as d,Yt as f,Zt as p,em as m,en as h,in as g,nn as _,qt as v,rn as y,tn as b,zt as x}from"./messages-Bp0bCjzp.js";import{t as S}from"./link-BYG8nKNO.js";import{t as C}from"./button-BgMnOYKD.js";import{t as w}from"./checkbox-CKrZFk1G.js";import{t as T}from"./switch-CVYl00Vs.js";import{n as E,t as D}from"./radio-group-DrQ9k883.js";import{a as O,r as k,s as A}from"./zod-rwFXxHlg.js";import{a as j,c as M,i as N,l as P,n as F,o as I,r as L,s as R,t as z}from"./form-BhKmyN6D.js";import{t as B}from"./page-header-CDwG3nxs.js";import{t as V}from"./show-submitted-data-C8ocsjDF.js";var H=m(),U=A({type:k([`all`,`mentions`,`none`],{error:e=>e.input===void 0?_():void 0}),mobile:O().default(!1).optional(),communication_emails:O().default(!1).optional(),social_emails:O().default(!1).optional(),marketing_emails:O().default(!1).optional(),security_emails:O()}),W={communication_emails:!1,marketing_emails:!1,social_emails:!0,security_emails:!0};function G(){let m=P({resolver:M(U),defaultValues:W});return(0,H.jsx)(z,{...m,children:(0,H.jsxs)(`form`,{className:`space-y-8`,onSubmit:m.handleSubmit(e=>V(e)),children:[(0,H.jsx)(N,{control:m.control,name:`type`,render:({field:t})=>(0,H.jsxs)(j,{className:`relative space-y-3`,children:[(0,H.jsx)(I,{children:b()}),(0,H.jsx)(F,{children:(0,H.jsxs)(D,{className:`flex flex-col gap-2`,defaultValue:t.value,onValueChange:t.onChange,children:[(0,H.jsxs)(j,{className:`flex items-center`,children:[(0,H.jsx)(F,{children:(0,H.jsx)(E,{value:`all`})}),(0,H.jsx)(I,{className:`font-normal`,children:h()})]}),(0,H.jsxs)(j,{className:`flex items-center`,children:[(0,H.jsx)(F,{children:(0,H.jsx)(E,{value:`mentions`})}),(0,H.jsx)(I,{className:`font-normal`,children:e()})]}),(0,H.jsxs)(j,{className:`flex items-center`,children:[(0,H.jsx)(F,{children:(0,H.jsx)(E,{value:`none`})}),(0,H.jsx)(I,{className:`font-normal`,children:o()})]})]})}),(0,H.jsx)(R,{})]})}),(0,H.jsxs)(`div`,{className:`relative`,children:[(0,H.jsx)(`h3`,{className:`mb-4 font-medium text-lg`,children:p()}),(0,H.jsxs)(`div`,{className:`space-y-4`,children:[(0,H.jsx)(N,{control:m.control,name:`communication_emails`,render:({field:e})=>(0,H.jsxs)(j,{className:`flex flex-row items-center justify-between rounded-lg border p-4`,children:[(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,H.jsx)(I,{className:`text-base`,children:d()}),(0,H.jsx)(L,{children:f()})]}),(0,H.jsx)(F,{children:(0,H.jsx)(T,{checked:e.value,onCheckedChange:e.onChange})})]})}),(0,H.jsx)(N,{control:m.control,name:`marketing_emails`,render:({field:e})=>(0,H.jsxs)(j,{className:`flex flex-row items-center justify-between rounded-lg border p-4`,children:[(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,H.jsx)(I,{className:`text-base`,children:i()}),(0,H.jsx)(L,{children:v()})]}),(0,H.jsx)(F,{children:(0,H.jsx)(T,{checked:e.value,onCheckedChange:e.onChange})})]})}),(0,H.jsx)(N,{control:m.control,name:`social_emails`,render:({field:e})=>(0,H.jsxs)(j,{className:`flex flex-row items-center justify-between rounded-lg border p-4`,children:[(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,H.jsx)(I,{className:`text-base`,children:a()}),(0,H.jsx)(L,{children:n()})]}),(0,H.jsx)(F,{children:(0,H.jsx)(T,{checked:e.value,onCheckedChange:e.onChange})})]})}),(0,H.jsx)(N,{control:m.control,name:`security_emails`,render:({field:e})=>(0,H.jsxs)(j,{className:`flex flex-row items-center justify-between rounded-lg border p-4`,children:[(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,H.jsx)(I,{className:`text-base`,children:u()}),(0,H.jsx)(L,{children:c()})]}),(0,H.jsx)(F,{children:(0,H.jsx)(T,{"aria-readonly":!0,checked:e.value,disabled:!0,onCheckedChange:e.onChange})})]})})]})]}),(0,H.jsx)(N,{control:m.control,name:`mobile`,render:({field:e})=>(0,H.jsxs)(j,{className:`relative flex flex-row items-start`,children:[(0,H.jsx)(F,{children:(0,H.jsx)(w,{checked:e.value,onCheckedChange:e.onChange})}),(0,H.jsxs)(`div`,{className:`space-y-1 leading-none`,children:[(0,H.jsx)(I,{children:r()}),(0,H.jsxs)(L,{children:[l(),` `,(0,H.jsx)(S,{className:`underline decoration-dashed underline-offset-4 hover:decoration-solid`,to:`/settings`,children:t()}),` `,x()]})]})]})}),(0,H.jsx)(C,{type:`submit`,children:s()})]})})}function K(){return(0,H.jsx)(B,{description:y(),title:g(),variant:`section`,children:(0,H.jsx)(G,{})})}var q=K;export{q as component}; \ No newline at end of file +import{$t as e,Bt as t,Gt as n,Ht as r,Jt as i,Kt as a,Qt as o,Rt as s,Ut as c,Vt as l,Wt as u,Xt as d,Yt as f,Zt as p,en as m,in as h,nn as g,qt as _,rn as v,tm as y,tn as b,zt as x}from"./messages-BOatyqUm.js";import{t as S}from"./link-DPnL8P5J.js";import{t as C}from"./button-C_NDYaz8.js";import{t as w}from"./checkbox-CTHgcB3t.js";import{t as T}from"./switch-CgoJjvdz.js";import{n as E,t as D}from"./radio-group-D2rceepu.js";import{a as O,r as k,s as A}from"./zod-rwFXxHlg.js";import{a as j,c as M,i as N,l as P,n as F,o as I,r as L,s as R,t as z}from"./form-KfFEakes.js";import{t as B}from"./page-header-GTtyZFBB.js";import{t as V}from"./show-submitted-data-BqZb-_Pf.js";var H=y(),U=A({type:k([`all`,`mentions`,`none`],{error:e=>e.input===void 0?g():void 0}),mobile:O().default(!1).optional(),communication_emails:O().default(!1).optional(),social_emails:O().default(!1).optional(),marketing_emails:O().default(!1).optional(),security_emails:O()}),W={communication_emails:!1,marketing_emails:!1,social_emails:!0,security_emails:!0};function G(){let h=P({resolver:M(U),defaultValues:W});return(0,H.jsx)(z,{...h,children:(0,H.jsxs)(`form`,{className:`space-y-8`,onSubmit:h.handleSubmit(e=>V(e)),children:[(0,H.jsx)(N,{control:h.control,name:`type`,render:({field:t})=>(0,H.jsxs)(j,{className:`relative space-y-3`,children:[(0,H.jsx)(I,{children:b()}),(0,H.jsx)(F,{children:(0,H.jsxs)(D,{className:`flex flex-col gap-2`,defaultValue:t.value,onValueChange:t.onChange,children:[(0,H.jsxs)(j,{className:`flex items-center`,children:[(0,H.jsx)(F,{children:(0,H.jsx)(E,{value:`all`})}),(0,H.jsx)(I,{className:`font-normal`,children:m()})]}),(0,H.jsxs)(j,{className:`flex items-center`,children:[(0,H.jsx)(F,{children:(0,H.jsx)(E,{value:`mentions`})}),(0,H.jsx)(I,{className:`font-normal`,children:e()})]}),(0,H.jsxs)(j,{className:`flex items-center`,children:[(0,H.jsx)(F,{children:(0,H.jsx)(E,{value:`none`})}),(0,H.jsx)(I,{className:`font-normal`,children:o()})]})]})}),(0,H.jsx)(R,{})]})}),(0,H.jsxs)(`div`,{className:`relative`,children:[(0,H.jsx)(`h3`,{className:`mb-4 font-medium text-lg`,children:p()}),(0,H.jsxs)(`div`,{className:`space-y-4`,children:[(0,H.jsx)(N,{control:h.control,name:`communication_emails`,render:({field:e})=>(0,H.jsxs)(j,{className:`flex flex-row items-center justify-between rounded-lg border p-4`,children:[(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,H.jsx)(I,{className:`text-base`,children:d()}),(0,H.jsx)(L,{children:f()})]}),(0,H.jsx)(F,{children:(0,H.jsx)(T,{checked:e.value,onCheckedChange:e.onChange})})]})}),(0,H.jsx)(N,{control:h.control,name:`marketing_emails`,render:({field:e})=>(0,H.jsxs)(j,{className:`flex flex-row items-center justify-between rounded-lg border p-4`,children:[(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,H.jsx)(I,{className:`text-base`,children:i()}),(0,H.jsx)(L,{children:_()})]}),(0,H.jsx)(F,{children:(0,H.jsx)(T,{checked:e.value,onCheckedChange:e.onChange})})]})}),(0,H.jsx)(N,{control:h.control,name:`social_emails`,render:({field:e})=>(0,H.jsxs)(j,{className:`flex flex-row items-center justify-between rounded-lg border p-4`,children:[(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,H.jsx)(I,{className:`text-base`,children:a()}),(0,H.jsx)(L,{children:n()})]}),(0,H.jsx)(F,{children:(0,H.jsx)(T,{checked:e.value,onCheckedChange:e.onChange})})]})}),(0,H.jsx)(N,{control:h.control,name:`security_emails`,render:({field:e})=>(0,H.jsxs)(j,{className:`flex flex-row items-center justify-between rounded-lg border p-4`,children:[(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,H.jsx)(I,{className:`text-base`,children:u()}),(0,H.jsx)(L,{children:c()})]}),(0,H.jsx)(F,{children:(0,H.jsx)(T,{"aria-readonly":!0,checked:e.value,disabled:!0,onCheckedChange:e.onChange})})]})})]})]}),(0,H.jsx)(N,{control:h.control,name:`mobile`,render:({field:e})=>(0,H.jsxs)(j,{className:`relative flex flex-row items-start`,children:[(0,H.jsx)(F,{children:(0,H.jsx)(w,{checked:e.value,onCheckedChange:e.onChange})}),(0,H.jsxs)(`div`,{className:`space-y-1 leading-none`,children:[(0,H.jsx)(I,{children:r()}),(0,H.jsxs)(L,{children:[l(),` `,(0,H.jsx)(S,{className:`underline decoration-dashed underline-offset-4 hover:decoration-solid`,to:`/settings`,children:t()}),` `,x()]})]})]})}),(0,H.jsx)(C,{type:`submit`,children:s()})]})})}function K(){return(0,H.jsx)(B,{description:v(),title:h(),variant:`section`,children:(0,H.jsx)(G,{})})}var q=K;export{q as component}; \ No newline at end of file diff --git a/src/www/assets/okpay-Ce2WH04h.js b/src/www/assets/okpay-Ce2WH04h.js deleted file mode 100644 index afaf919..0000000 --- a/src/www/assets/okpay-Ce2WH04h.js +++ /dev/null @@ -1 +0,0 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{C as n,S as r,_ as i,a,b as o,c as s,d as c,em as l,f as u,g as d,h as f,i as p,l as m,m as h,o as g,p as _,s as v,u as y,v as b,w as x,x as S,y as C}from"./messages-Bp0bCjzp.js";import{t as w}from"./button-BgMnOYKD.js";import{t as T}from"./switch-CVYl00Vs.js";import{a as E,c as D,s as O}from"./zod-rwFXxHlg.js";import{a as k,c as A,i as j,l as M,n as N,o as P,r as F,s as I,t as L}from"./form-BhKmyN6D.js";import{t as R}from"./input-BleRUV2A.js";import{t as z}from"./password-input-D8nK3bk7.js";import{t as B}from"./page-header-CDwG3nxs.js";import{a as V,i as H,n as U,r as W,t as G}from"./lib-DCke3ZPi.js";var K=e(t(),1),q=l(),J=O({allowTokens:D(),apiUrl:D(),callbackUrl:D().url(h()),enabled:E(),returnUrl:D(),shopId:D().min(1,C()),shopToken:D().min(1,i()),timeoutSeconds:D().min(1,c()).refine(e=>Number.isInteger(Number(e))&&Number(e)>0,{message:y()})});function Y(){let e=H(`okpay`),t=V(),n=M({resolver:A(J),defaultValues:{allowTokens:`USDT`,apiUrl:``,callbackUrl:``,enabled:!1,returnUrl:``,shopId:``,shopToken:``,timeoutSeconds:`600`}});(0,K.useEffect)(()=>{let t=e.data?.data;t&&n.reset({allowTokens:X(G(t,`okpay.allow_tokens`,`USDT`)).join(`,`),apiUrl:G(t,`okpay.api_url`),callbackUrl:G(t,`okpay.callback_url`),enabled:[`1`,`true`,`yes`].includes(G(t,`okpay.enabled`).toLowerCase()),returnUrl:G(t,`okpay.return_url`),shopId:G(t,`okpay.shop_id`),shopToken:G(t,`okpay.shop_token`),timeoutSeconds:G(t,`okpay.timeout_seconds`,`600`)})},[e.data,n]);async function i(n){await W(t.mutateAsync,[{group:`okpay`,key:`okpay.enabled`,type:`bool`,value:n.enabled?`true`:`false`},{group:`okpay`,key:`okpay.shop_id`,type:`string`,value:n.shopId},{group:`okpay`,key:`okpay.shop_token`,type:`string`,value:n.shopToken},{group:`okpay`,key:`okpay.timeout_seconds`,type:`int`,value:n.timeoutSeconds},{group:`okpay`,key:`okpay.callback_url`,type:`string`,value:n.callbackUrl}],g()),await e.refetch()}async function c(){await U(t.mutateAsync,[{group:`okpay`,key:`okpay.enabled`,type:`bool`,value:!1},{group:`okpay`,key:`okpay.shop_id`,type:`string`,value:``},{group:`okpay`,key:`okpay.shop_token`,type:`string`,value:``},{group:`okpay`,key:`okpay.api_url`,type:`string`,value:``},{group:`okpay`,key:`okpay.callback_url`,type:`string`,value:``},{group:`okpay`,key:`okpay.return_url`,type:`string`,value:``},{group:`okpay`,key:`okpay.timeout_seconds`,type:`int`,value:600},{group:`okpay`,key:`okpay.allow_tokens`,type:`string`,value:``}],p()),await e.refetch()}return(0,q.jsx)(L,{...n,children:(0,q.jsxs)(`form`,{className:`space-y-6`,onSubmit:n.handleSubmit(i),children:[(0,q.jsx)(j,{control:n.control,name:`enabled`,render:({field:e})=>(0,q.jsxs)(k,{className:`flex items-center justify-between gap-4`,children:[(0,q.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,q.jsx)(P,{children:r()}),(0,q.jsx)(F,{children:S()})]}),(0,q.jsx)(N,{children:(0,q.jsx)(T,{checked:e.value,onCheckedChange:e.onChange})})]})}),(0,q.jsxs)(`div`,{className:`grid gap-6 md:grid-cols-2`,children:[(0,q.jsx)(j,{control:n.control,name:`shopId`,render:({field:e})=>(0,q.jsxs)(k,{children:[(0,q.jsx)(P,{children:o()}),(0,q.jsx)(N,{children:(0,q.jsx)(R,{autoComplete:`off`,...e})}),(0,q.jsx)(I,{})]})}),(0,q.jsx)(j,{control:n.control,name:`shopToken`,render:({field:e})=>(0,q.jsxs)(k,{children:[(0,q.jsx)(P,{children:b()}),(0,q.jsx)(N,{children:(0,q.jsx)(z,{autoComplete:`off`,...e})}),(0,q.jsx)(I,{})]})}),(0,q.jsx)(j,{control:n.control,name:`timeoutSeconds`,render:({field:e})=>(0,q.jsxs)(k,{children:[(0,q.jsx)(P,{children:u()}),(0,q.jsx)(N,{children:(0,q.jsx)(R,{inputMode:`numeric`,placeholder:`600`,...e})}),(0,q.jsx)(I,{})]})})]}),(0,q.jsx)(j,{control:n.control,name:`apiUrl`,render:({field:e})=>(0,q.jsxs)(k,{children:[(0,q.jsx)(P,{children:d()}),(0,q.jsx)(N,{children:(0,q.jsx)(R,{disabled:!0,placeholder:`https://api.okpay.example`,...e})}),(0,q.jsx)(I,{})]})}),(0,q.jsxs)(`div`,{className:`grid gap-6 md:grid-cols-2`,children:[(0,q.jsx)(j,{control:n.control,name:`callbackUrl`,render:({field:e})=>(0,q.jsxs)(k,{children:[(0,q.jsx)(P,{children:f()}),(0,q.jsx)(N,{children:(0,q.jsx)(R,{placeholder:`https://example.com/notify`,...e})}),(0,q.jsx)(I,{})]})}),(0,q.jsx)(j,{control:n.control,name:`returnUrl`,render:({field:e})=>(0,q.jsxs)(k,{children:[(0,q.jsx)(P,{children:_()}),(0,q.jsx)(N,{children:(0,q.jsx)(R,{disabled:!0,placeholder:`https://example.com/success`,...e})}),(0,q.jsx)(I,{})]})})]}),(0,q.jsx)(j,{control:n.control,name:`allowTokens`,render:({field:e})=>(0,q.jsxs)(k,{children:[(0,q.jsx)(P,{children:m()}),(0,q.jsx)(N,{children:(0,q.jsx)(R,{disabled:!0,placeholder:`USDT,USDC`,...e})}),(0,q.jsx)(F,{children:s()}),(0,q.jsx)(I,{})]})}),(0,q.jsxs)(`div`,{className:`flex gap-2`,children:[(0,q.jsx)(w,{disabled:t.isPending||e.isLoading,type:`submit`,children:v()}),(0,q.jsx)(w,{disabled:t.isPending,onClick:c,type:`button`,variant:`outline`,children:a()})]})]})})}function X(e){return e.split(/[\s,]+/).map(e=>e.trim().toUpperCase()).filter(Boolean)}function Z(){return(0,q.jsx)(B,{description:n(),title:x(),variant:`section`,children:(0,q.jsx)(Y,{})})}var Q=Z;export{Q as component}; \ No newline at end of file diff --git a/src/www/assets/okpay-D5pTA_4W.js b/src/www/assets/okpay-D5pTA_4W.js new file mode 100644 index 0000000..03729a8 --- /dev/null +++ b/src/www/assets/okpay-D5pTA_4W.js @@ -0,0 +1 @@ +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{C as n,S as r,_ as i,a,b as o,c as s,d as c,f as l,g as u,h as d,i as f,l as p,m,o as h,p as g,s as _,tm as v,u as y,v as b,w as x,x as S,y as C}from"./messages-BOatyqUm.js";import{t as w}from"./button-C_NDYaz8.js";import{t as T}from"./switch-CgoJjvdz.js";import{a as E,c as D,s as O}from"./zod-rwFXxHlg.js";import{a as k,c as A,i as j,l as M,n as N,o as P,r as F,s as I,t as L}from"./form-KfFEakes.js";import{t as R}from"./input-8zzM34r5.js";import{t as z}from"./password-input-95hMTMdh.js";import{t as B}from"./page-header-GTtyZFBB.js";import{a as V,i as H,n as U,r as W,t as G}from"./lib-DDezYSnW.js";var K=e(t(),1),q=v(),J=O({allowTokens:D(),apiUrl:D(),callbackUrl:D().url(m()),enabled:E(),returnUrl:D(),shopId:D().min(1,C()),shopToken:D().min(1,i()),timeoutSeconds:D().min(1,c()).refine(e=>Number.isInteger(Number(e))&&Number(e)>0,{message:y()})});function Y(){let e=H(`okpay`),t=V(),n=M({resolver:A(J),defaultValues:{allowTokens:`USDT`,apiUrl:``,callbackUrl:``,enabled:!1,returnUrl:``,shopId:``,shopToken:``,timeoutSeconds:`600`}});(0,K.useEffect)(()=>{let t=e.data?.data;t&&n.reset({allowTokens:X(G(t,`okpay.allow_tokens`,`USDT`)).join(`,`),apiUrl:G(t,`okpay.api_url`),callbackUrl:G(t,`okpay.callback_url`),enabled:[`1`,`true`,`yes`].includes(G(t,`okpay.enabled`).toLowerCase()),returnUrl:G(t,`okpay.return_url`),shopId:G(t,`okpay.shop_id`),shopToken:G(t,`okpay.shop_token`),timeoutSeconds:G(t,`okpay.timeout_seconds`,`600`)})},[e.data,n]);async function i(n){await W(t.mutateAsync,[{group:`okpay`,key:`okpay.enabled`,type:`bool`,value:n.enabled?`true`:`false`},{group:`okpay`,key:`okpay.shop_id`,type:`string`,value:n.shopId},{group:`okpay`,key:`okpay.shop_token`,type:`string`,value:n.shopToken},{group:`okpay`,key:`okpay.timeout_seconds`,type:`int`,value:n.timeoutSeconds},{group:`okpay`,key:`okpay.callback_url`,type:`string`,value:n.callbackUrl}],h()),await e.refetch()}async function c(){await U(t.mutateAsync,[{group:`okpay`,key:`okpay.enabled`,type:`bool`,value:!1},{group:`okpay`,key:`okpay.shop_id`,type:`string`,value:``},{group:`okpay`,key:`okpay.shop_token`,type:`string`,value:``},{group:`okpay`,key:`okpay.api_url`,type:`string`,value:``},{group:`okpay`,key:`okpay.callback_url`,type:`string`,value:``},{group:`okpay`,key:`okpay.return_url`,type:`string`,value:``},{group:`okpay`,key:`okpay.timeout_seconds`,type:`int`,value:600},{group:`okpay`,key:`okpay.allow_tokens`,type:`string`,value:``}],f()),await e.refetch()}return(0,q.jsx)(L,{...n,children:(0,q.jsxs)(`form`,{className:`space-y-6`,onSubmit:n.handleSubmit(i),children:[(0,q.jsx)(j,{control:n.control,name:`enabled`,render:({field:e})=>(0,q.jsxs)(k,{className:`flex items-center justify-between gap-4`,children:[(0,q.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,q.jsx)(P,{children:r()}),(0,q.jsx)(F,{children:S()})]}),(0,q.jsx)(N,{children:(0,q.jsx)(T,{checked:e.value,onCheckedChange:e.onChange})})]})}),(0,q.jsxs)(`div`,{className:`grid gap-6 md:grid-cols-2`,children:[(0,q.jsx)(j,{control:n.control,name:`shopId`,render:({field:e})=>(0,q.jsxs)(k,{children:[(0,q.jsx)(P,{children:o()}),(0,q.jsx)(N,{children:(0,q.jsx)(R,{autoComplete:`off`,...e})}),(0,q.jsx)(I,{})]})}),(0,q.jsx)(j,{control:n.control,name:`shopToken`,render:({field:e})=>(0,q.jsxs)(k,{children:[(0,q.jsx)(P,{children:b()}),(0,q.jsx)(N,{children:(0,q.jsx)(z,{autoComplete:`off`,...e})}),(0,q.jsx)(I,{})]})}),(0,q.jsx)(j,{control:n.control,name:`timeoutSeconds`,render:({field:e})=>(0,q.jsxs)(k,{children:[(0,q.jsx)(P,{children:l()}),(0,q.jsx)(N,{children:(0,q.jsx)(R,{inputMode:`numeric`,placeholder:`600`,...e})}),(0,q.jsx)(I,{})]})})]}),(0,q.jsx)(j,{control:n.control,name:`apiUrl`,render:({field:e})=>(0,q.jsxs)(k,{children:[(0,q.jsx)(P,{children:u()}),(0,q.jsx)(N,{children:(0,q.jsx)(R,{disabled:!0,placeholder:`https://api.okpay.example`,...e})}),(0,q.jsx)(I,{})]})}),(0,q.jsxs)(`div`,{className:`grid gap-6 md:grid-cols-2`,children:[(0,q.jsx)(j,{control:n.control,name:`callbackUrl`,render:({field:e})=>(0,q.jsxs)(k,{children:[(0,q.jsx)(P,{children:d()}),(0,q.jsx)(N,{children:(0,q.jsx)(R,{placeholder:`https://example.com/notify`,...e})}),(0,q.jsx)(I,{})]})}),(0,q.jsx)(j,{control:n.control,name:`returnUrl`,render:({field:e})=>(0,q.jsxs)(k,{children:[(0,q.jsx)(P,{children:g()}),(0,q.jsx)(N,{children:(0,q.jsx)(R,{disabled:!0,placeholder:`https://example.com/success`,...e})}),(0,q.jsx)(I,{})]})})]}),(0,q.jsx)(j,{control:n.control,name:`allowTokens`,render:({field:e})=>(0,q.jsxs)(k,{children:[(0,q.jsx)(P,{children:p()}),(0,q.jsx)(N,{children:(0,q.jsx)(R,{disabled:!0,placeholder:`USDT,USDC`,...e})}),(0,q.jsx)(F,{children:s()}),(0,q.jsx)(I,{})]})}),(0,q.jsxs)(`div`,{className:`flex gap-2`,children:[(0,q.jsx)(w,{disabled:t.isPending||e.isLoading,type:`submit`,children:_()}),(0,q.jsx)(w,{disabled:t.isPending,onClick:c,type:`button`,variant:`outline`,children:a()})]})]})})}function X(e){return e.split(/[\s,]+/).map(e=>e.trim().toUpperCase()).filter(Boolean)}function Z(){return(0,q.jsx)(B,{description:n(),title:x(),variant:`section`,children:(0,q.jsx)(Y,{})})}var Q=Z;export{Q as component}; \ No newline at end of file diff --git a/src/www/assets/orders-XoL5rQoL.js b/src/www/assets/orders-C2v2goOf.js similarity index 80% rename from src/www/assets/orders-XoL5rQoL.js rename to src/www/assets/orders-C2v2goOf.js index e56d14a..15fd974 100644 --- a/src/www/assets/orders-XoL5rQoL.js +++ b/src/www/assets/orders-C2v2goOf.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{a as t,c as n}from"./auth-store-Csn6HPxJ.js";import{t as r}from"./router-BluvjQRz.js";import{t as i}from"./react-CO2uhaBc.js";import{$s as a,Ac as o,Bc as s,Cc as c,Dc as l,Ec as u,Fc as ee,Gc as d,Gs as f,Hc as p,Ic as m,Jc as h,Js as g,Kc as te,Ks as _,Lc as ne,Mc as v,Nc as re,Oc as y,Pc as ie,Qc as b,Qs as x,Rc as ae,Sc as S,Tc as C,Uc as oe,Vc as w,Wc as se,Ws as T,Xc as ce,Xs as E,Yc as le,Yp as ue,Ys as D,Zc as O,Zs as k,_c as A,ac as j,bc as M,cc as N,ci as de,dc as fe,ec as pe,em as me,fc as he,gc as P,hc as F,ic as ge,jc as _e,kc as ve,lc as ye,mc as be,nc as xe,oc as Se,pc as Ce,qc as we,qs as Te,rc as Ee,sc as De,tc as Oe,uc as ke,vc as Ae,wc as I,xc as L,yc as R,zc as je}from"./messages-Bp0bCjzp.js";import{r as Me}from"./route-Bin9ihv_.js";import{o as z,s as B}from"./search-provider-Bl2HDfcG.js";import{i as Ne,t as V}from"./button-BgMnOYKD.js";import{t as Pe}from"./confirm-dialog-YmxNnOr3.js";import{a as H,l as Fe,r as Ie,t as Le}from"./dropdown-menu-8-hEBtzr.js";import{t as Re}from"./label-CQ1eaOwZ.js";import{t as ze}from"./cookies-BzZOQYPw.js";import{t as U}from"./createLucideIcon-Br0Bd5k2.js";import{a as W,c as Be,d as Ve,f as He,l as Ue,n as We,o as Ge,r as Ke,s as qe,t as Je,u as Ye}from"./data-table-C3Nm2K6Z.js";import{a as Xe,i as Ze,r as Qe}from"./epusdt-DkhuuUpL.js";import{t as $e}from"./download-fYUtNZ3R.js";import{t as et}from"./ellipsis-74ly4-Wm.js";import{t as tt}from"./eye-DAKGLydt.js";import{r as nt}from"./empty-state-BdzO6t8R.js";import{n as rt,t as it}from"./main-DnJ8otd-.js";import{a as at,i as G,o as K,r as q,s as J,t as Y}from"./dialog-BJ5VA2v_.js";import{n as X}from"./dist-BGqHIBUe.js";import{t as ot}from"./input-BleRUV2A.js";import{t as st}from"./page-header-CDwG3nxs.js";import{t as ct}from"./badge-BP05f1dq.js";import{t as lt}from"./use-table-url-state-DP0Y4QjR.js";import{t as Z}from"./long-text-fyhANC4b.js";import{t as ut}from"./coming-soon-dialog-BWHKf2Gm.js";var dt=U(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),ft=U(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]),Q=e(i(),1),$=me();function pt({open:e,onOpenChange:t,order:n,isLoading:r}){let i=[[`Trade ID`,n?.trade_id??`-`],[ge(),n?.order_id??`-`],[Ee(),n?.name??`-`],[xe(),`${B(n?.amount)} ${n?.currency??``}`.trim()||`-`],[Oe(),`${B(n?.actual_amount,6)} ${n?.token??``}`.trim()||`-`],[pe(),n?.network??`-`],[a(),n?.receive_address??`-`],[x(),n?.notify_url??`-`],[k(),n?.redirect_url??`-`],[E(),n?.block_transaction_id??`-`],[D(),n?.parent_trade_id??`-`],[g(),z(n?.created_at)||`-`],[Te(),z(n?.updated_at)||`-`]];return(0,$.jsx)(Y,{onOpenChange:t,open:e,children:(0,$.jsxs)(q,{className:`sm:max-w-3xl`,children:[(0,$.jsxs)(K,{children:[(0,$.jsx)(J,{children:_()}),(0,$.jsx)(G,{children:f()})]}),r?(0,$.jsx)(`div`,{className:`py-8 text-center text-muted-foreground text-sm`,children:T()}):(0,$.jsx)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:i.map(([e,t])=>(0,$.jsxs)(`div`,{className:`rounded-lg border p-3`,children:[(0,$.jsx)(`div`,{className:`mb-1 text-muted-foreground text-xs`,children:e}),(0,$.jsx)(`div`,{className:`break-all text-sm`,children:t})]},e))})]})})}function mt(e){return[{accessorFn:e=>String(e.status??1),id:`status`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:y()}),cell:({row:e})=>{let t=e.original.status??1;return(0,$.jsx)(ct,{className:Ze[t],children:Qe(t)})},filterFn:(e,t,n)=>n.includes(String(e.getValue(t))),meta:{label:y(),skeleton:`badge`}},{accessorKey:`trade_id`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:`Trade ID`}),cell:({row:e})=>(0,$.jsx)(Z,{className:`font-medium`,children:e.original.trade_id}),enableHiding:!1,meta:{label:`Trade ID`,skeleton:`id`}},{accessorKey:`order_id`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:l()}),cell:({row:e})=>(0,$.jsx)(Z,{className:`min-w-40`,children:e.original.order_id}),meta:{label:l(),skeleton:`id`}},{accessorKey:`name`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:u()}),cell:({row:e})=>e.original.name??`-`,meta:{label:u(),skeleton:`short`}},{accessorKey:`amount`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:C()}),cell:({row:e})=>`${B(e.original.amount)} ${e.original.currency||``}`,meta:{label:C(),skeleton:`amount`}},{accessorKey:`actual_amount`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:I()}),cell:({row:e})=>`${B(e.original.actual_amount,6)} ${e.original.token||``}`,meta:{label:I(),skeleton:`amount`}},{accessorKey:`network`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:c()}),id:`chain`,meta:{label:c(),skeleton:`short`}},{accessorKey:`receive_address`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:S()}),cell:({row:e})=>(0,$.jsx)(Z,{className:`min-w-36`,children:e.original.receive_address}),meta:{label:S(),skeleton:`long`}},{accessorKey:`created_at`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:L()}),cell:({row:e})=>(0,$.jsx)(`div`,{className:`min-w-32`,children:z(e.original.created_at)}),meta:{label:L(),skeleton:`date`}},{accessorKey:`updated_at`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:M()}),cell:({row:e})=>z(e.original.updated_at),meta:{label:M(),skeleton:`date`}},{accessorKey:`block_transaction_id`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:R()}),cell:({row:e})=>(0,$.jsx)(Z,{className:`min-w-40`,children:e.original.block_transaction_id??`-`}),meta:{label:R(),skeleton:`id`}},{accessorKey:`is_selected`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:Ae()}),cell:({row:e})=>e.original.is_selected?he():fe(),meta:{label:Ae(),skeleton:`badge`}},{accessorKey:`callback_confirm`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:A()}),cell:({row:e})=>ht(e.original.callback_confirm,e.original.parent_trade_id),meta:{label:A(),skeleton:`badge`}},{accessorKey:`callback_num`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:P()}),cell:({row:e})=>e.original.callback_num??0,meta:{label:P(),skeleton:`id`}},{accessorKey:`notify_url`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:F()}),cell:({row:e})=>(0,$.jsx)(Z,{className:`min-w-48`,children:e.original.notify_url??`-`}),meta:{label:F(),skeleton:`long`}},{accessorKey:`redirect_url`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:be()}),cell:({row:e})=>(0,$.jsx)(Z,{className:`min-w-48`,children:e.original.redirect_url??`-`}),meta:{label:be(),skeleton:`long`}},{accessorKey:`api_key_id`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:`API Key ID`}),cell:({row:e})=>e.original.api_key_id??`-`,meta:{label:`API Key ID`,skeleton:`id`}},{id:`actions`,enableHiding:!1,meta:{label:Ce(),skeleton:`action`,sticky:`right`,className:Ne(`w-12`)},cell:({row:t})=>(0,$.jsxs)(Le,{modal:!1,children:[(0,$.jsx)(Fe,{asChild:!0,children:(0,$.jsxs)(V,{className:`flex h-8 w-8 p-0 data-[state=open]:bg-muted`,variant:`ghost`,children:[(0,$.jsx)(et,{className:`h-4 w-4`}),(0,$.jsx)(`span`,{className:`sr-only`,children:j()})]})}),(0,$.jsxs)(Ie,{align:`end`,className:`w-44`,children:[(0,$.jsxs)(H,{onClick:()=>e(p(),t.original),children:[De(),(0,$.jsx)(tt,{className:`ml-auto h-4 w-4`})]}),(0,$.jsxs)(H,{onClick:()=>e(w(),t.original),children:[Se(),(0,$.jsx)(ft,{className:`ml-auto h-4 w-4`})]}),(0,$.jsxs)(H,{onClick:()=>e(b(),t.original),children:[b(),(0,$.jsx)(dt,{className:`ml-auto h-4 w-4`})]}),t.original.status===2&&!!t.original.notify_url&&(0,$.jsxs)(H,{onClick:()=>e(O(),t.original),children:[O(),(0,$.jsx)(nt,{className:`ml-auto h-4 w-4`})]})]})]})}]}function ht(e,t){return e===1?t?.trim()?ye():ke():N()}var gt=Me(`/_authenticated/orders/`);function _t({data:e,isLoading:t,onAction:n,onRefresh:r}){let[i,a]=(0,Q.useState)([]),[s,c]=(0,Q.useState)({}),{globalFilter:l,onGlobalFilterChange:u,columnFilters:ee,onColumnFiltersChange:d,pagination:f,onPaginationChange:p,ensurePageInRange:m}=lt({search:gt.useSearch(),navigate:gt.useNavigate(),pagination:{defaultPage:1,defaultPageSize:10},globalFilter:{enabled:!0,key:`orderNo`},columnFilters:[{columnId:`status`,searchKey:`status`,type:`array`},{columnId:`chain`,searchKey:`chain`,type:`array`}]}),h=Ge({data:e,columns:(0,Q.useMemo)(()=>mt(n),[n]),state:{sorting:i,columnVisibility:s,columnFilters:ee,globalFilter:l,pagination:f},onSortingChange:a,onColumnVisibilityChange:c,onColumnFiltersChange:d,onGlobalFilterChange:u,onPaginationChange:p,globalFilterFn:(e,t,n)=>{let r=String(n).toLowerCase();return String(e.original.id??``).toLowerCase().includes(r)||String(e.original.order_id??``).toLowerCase().includes(r)},getCoreRowModel:qe(),getFilteredRowModel:Ye(),getPaginationRowModel:Ve(),getSortedRowModel:He(),getFacetedRowModel:Be(),getFacetedUniqueValues:Ue()});(0,Q.useEffect)(()=>{m(h.getPageCount())},[h,m]);let g=[...new Set(e.map(e=>e.network).filter(Boolean))].map(e=>({label:e,value:e}));return(0,$.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,$.jsx)(Je,{filters:[{columnId:`status`,title:v(),options:[...Xe]},{columnId:`chain`,title:_e(),options:g}],onRefresh:r,searchPlaceholder:o(),table:h}),(0,$.jsx)(Ke,{className:`min-w-[1200px]`,emptyText:ve(),loading:t,table:h}),(0,$.jsx)(We,{className:`mt-auto`,table:h})]})}var vt={[b()]:b(),[O()]:O()};function yt(){return window.location.origin}function bt(){let e=t.useQuery(`get`,`/admin/api/v1/orders`),i=t.useMutation(`post`,`/admin/api/v1/orders/{trade_id}/close`),a=t.useMutation(`post`,`/admin/api/v1/orders/{trade_id}/mark-paid`),o=t.useMutation(`post`,`/admin/api/v1/orders/{trade_id}/resend-callback`),c=t.useMutation(`get`,`/admin/api/v1/orders/{trade_id}`),[l,u]=(0,Q.useState)(null),[f,g]=(0,Q.useState)(null),[_,v]=(0,Q.useState)(!1),[y,x]=(0,Q.useState)(null),[S,C]=(0,Q.useState)(!1),[T,E]=(0,Q.useState)(``),[D,k]=(0,Q.useState)(!1);async function A(){await r.invalidateQueries({queryKey:[`get`,`/admin/api/v1/orders`]})}async function j(){if(!l?.row.trade_id)return;let e={params:{path:{trade_id:l.row.trade_id}}};l.action===b()?await i.mutateAsync(e):l.action===O()&&await o.mutateAsync(e),X.success(de({action:vt[l.action]})),await A(),u(null)}async function M(){if(!(f?.trade_id&&T.trim())){X.error(ce());return}await a.mutateAsync({params:{path:{trade_id:f.trade_id}},body:{block_transaction_id:T.trim()}}),X.success(le()),g(null),E(``),await A()}async function N(){k(!0);try{let e=ze(n),t=e?JSON.parse(e):``,r=await fetch(`${yt()}/admin/api/v1/orders/export`,{headers:t?{Authorization:`Bearer ${t}`}:{}});if(!r.ok)throw Error(`Export failed`);let i=await r.blob(),a=window.URL.createObjectURL(i),o=document.createElement(`a`);o.href=a,o.download=`orders-${Date.now()}.csv`,o.click(),window.URL.revokeObjectURL(a),X.success(we())}catch{X.error(h())}finally{k(!1)}}return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(rt,{fixed:!0}),(0,$.jsxs)(it,{className:`flex flex-1 flex-col gap-4 sm:gap-6`,children:[(0,$.jsx)(st,{actions:(0,$.jsxs)(V,{disabled:D,onClick:N,variant:`outline`,children:[(0,$.jsx)($e,{className:`mr-2 h-4 w-4`}),D?te():d()]}),description:se(),title:oe()}),(0,$.jsx)(_t,{data:e.data?.data?.list??[],isLoading:e.isLoading,onAction:async(e,t)=>{if(e===p()){C(!0),x((await c.mutateAsync({params:{path:{trade_id:t.trade_id}}})).data??t);return}if(e===b()||e===O()){v(!0);return}if(e===w()){g(t);return}u({action:e,row:t})},onRefresh:()=>e.refetch()})]}),l&&(0,$.jsx)(Pe,{confirmText:s(),desc:(0,$.jsx)(`span`,{children:je({action:l.action,id:String(l.row.trade_id??l.row.id??``)})}),handleConfirm:j,onOpenChange:()=>u(null),open:!0,title:ae({action:l.action})}),(0,$.jsx)(pt,{isLoading:c.isPending,onOpenChange:e=>{C(e),e||x(null)},open:S,order:y}),(0,$.jsx)(Y,{onOpenChange:e=>{e||(g(null),E(``))},open:!!f,children:(0,$.jsxs)(q,{children:[(0,$.jsxs)(K,{children:[(0,$.jsx)(J,{children:ne()}),(0,$.jsx)(G,{children:m({id:String(f?.trade_id??f?.id??``)})})]}),(0,$.jsxs)(`div`,{className:`space-y-2`,children:[(0,$.jsx)(Re,{htmlFor:`blockTransactionId`,children:ee()}),(0,$.jsx)(ot,{id:`blockTransactionId`,onChange:e=>E(e.target.value),placeholder:`0x... / transaction hash`,value:T})]}),(0,$.jsxs)(at,{children:[(0,$.jsx)(V,{onClick:()=>g(null),variant:`outline`,children:ue()}),(0,$.jsx)(V,{disabled:a.isPending,onClick:M,children:a.isPending?ie():re()})]})]})}),(0,$.jsx)(ut,{onOpenChange:v,open:_})]})}var xt=bt;export{xt as component}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{a as t,c as n}from"./auth-store-De4Y7PFV.js";import{t as r}from"./router-eyRTkMwc.js";import{t as i}from"./react-CO2uhaBc.js";import{$s as a,Ac as o,Bc as s,Cc as c,Dc as l,Ec as u,Fc as ee,Gc as d,Gs as f,Hc as p,Ic as m,Jc as h,Js as g,Kc as te,Ks as _,Lc as ne,Mc as v,Nc as re,Oc as y,Pc as ie,Qc as b,Qs as x,Rc as ae,Sc as S,Tc as C,Uc as oe,Vc as w,Wc as se,Ws as T,Xc as ce,Xp as le,Xs as E,Yc as ue,Ys as D,Zc as O,Zs as k,_c as A,ac as j,bc as M,cc as N,ci as de,dc as fe,ec as pe,fc as me,gc as P,hc as F,ic as he,jc as ge,kc as _e,lc as ve,mc as ye,nc as be,oc as xe,pc as Se,qc as Ce,qs as we,rc as Te,sc as Ee,tc as De,tm as Oe,uc as ke,vc as Ae,wc as I,xc as L,yc as R,zc as je}from"./messages-BOatyqUm.js";import{r as Me}from"./route-wzPKSRj2.js";import{o as z,s as B}from"./search-provider-C-_FQI9C.js";import{i as Ne,t as V}from"./button-C_NDYaz8.js";import{t as Pe}from"./confirm-dialog-D1L-0EhT.js";import{a as H,l as Fe,r as Ie,t as Le}from"./dropdown-menu-DzCIpsuG.js";import{t as Re}from"./label-DNL0sHKL.js";import{t as ze}from"./cookies-BzZOQYPw.js";import{t as U}from"./createLucideIcon-Br0Bd5k2.js";import{a as W,c as Be,d as Ve,f as He,l as Ue,n as We,o as Ge,r as Ke,s as qe,t as Je,u as Ye}from"./data-table-1LQSBhN2.js";import{a as Xe,i as Ze,r as Qe}from"./epusdt-BvGYu9TV.js";import{t as $e}from"./download-fYUtNZ3R.js";import{t as et}from"./ellipsis-74ly4-Wm.js";import{t as tt}from"./eye-DAKGLydt.js";import{r as nt}from"./empty-state-CxE4wU3V.js";import{n as rt,t as it}from"./main-C1R3Hvq1.js";import{a as at,i as G,o as K,r as q,s as J,t as Y}from"./dialog-CZ-2RPb-.js";import{n as X}from"./dist-JOUh6qvR.js";import{t as ot}from"./input-8zzM34r5.js";import{t as st}from"./page-header-GTtyZFBB.js";import{t as ct}from"./badge-VJlwwTW5.js";import{t as lt}from"./use-table-url-state-DP0Y4QjR.js";import{t as Z}from"./long-text-DNqlDi0R.js";import{t as ut}from"./coming-soon-dialog-B34F88bO.js";var dt=U(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),ft=U(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]),Q=e(i(),1),$=Oe();function pt({open:e,onOpenChange:t,order:n,isLoading:r}){let i=[[`Trade ID`,n?.trade_id??`-`],[he(),n?.order_id??`-`],[Te(),n?.name??`-`],[be(),`${B(n?.amount)} ${n?.currency??``}`.trim()||`-`],[De(),`${B(n?.actual_amount,6)} ${n?.token??``}`.trim()||`-`],[pe(),n?.network??`-`],[a(),n?.receive_address??`-`],[x(),n?.notify_url??`-`],[k(),n?.redirect_url??`-`],[E(),n?.block_transaction_id??`-`],[D(),n?.parent_trade_id??`-`],[g(),z(n?.created_at)||`-`],[we(),z(n?.updated_at)||`-`]];return(0,$.jsx)(Y,{onOpenChange:t,open:e,children:(0,$.jsxs)(q,{className:`sm:max-w-3xl`,children:[(0,$.jsxs)(K,{children:[(0,$.jsx)(J,{children:_()}),(0,$.jsx)(G,{children:f()})]}),r?(0,$.jsx)(`div`,{className:`py-8 text-center text-muted-foreground text-sm`,children:T()}):(0,$.jsx)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:i.map(([e,t])=>(0,$.jsxs)(`div`,{className:`rounded-lg border p-3`,children:[(0,$.jsx)(`div`,{className:`mb-1 text-muted-foreground text-xs`,children:e}),(0,$.jsx)(`div`,{className:`break-all text-sm`,children:t})]},e))})]})})}function mt(e){return[{accessorFn:e=>String(e.status??1),id:`status`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:y()}),cell:({row:e})=>{let t=e.original.status??1;return(0,$.jsx)(ct,{className:Ze[t],children:Qe(t)})},filterFn:(e,t,n)=>n.includes(String(e.getValue(t))),meta:{label:y(),skeleton:`badge`}},{accessorKey:`trade_id`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:`Trade ID`}),cell:({row:e})=>(0,$.jsx)(Z,{className:`font-medium`,children:e.original.trade_id}),enableHiding:!1,meta:{label:`Trade ID`,skeleton:`id`}},{accessorKey:`order_id`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:l()}),cell:({row:e})=>(0,$.jsx)(Z,{className:`min-w-40`,children:e.original.order_id}),meta:{label:l(),skeleton:`id`}},{accessorKey:`name`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:u()}),cell:({row:e})=>e.original.name??`-`,meta:{label:u(),skeleton:`short`}},{accessorKey:`amount`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:C()}),cell:({row:e})=>`${B(e.original.amount)} ${e.original.currency||``}`,meta:{label:C(),skeleton:`amount`}},{accessorKey:`actual_amount`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:I()}),cell:({row:e})=>`${B(e.original.actual_amount,6)} ${e.original.token||``}`,meta:{label:I(),skeleton:`amount`}},{accessorKey:`network`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:c()}),id:`chain`,meta:{label:c(),skeleton:`short`}},{accessorKey:`receive_address`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:S()}),cell:({row:e})=>(0,$.jsx)(Z,{className:`min-w-36`,children:e.original.receive_address}),meta:{label:S(),skeleton:`long`}},{accessorKey:`created_at`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:L()}),cell:({row:e})=>(0,$.jsx)(`div`,{className:`min-w-32`,children:z(e.original.created_at)}),meta:{label:L(),skeleton:`date`}},{accessorKey:`updated_at`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:M()}),cell:({row:e})=>z(e.original.updated_at),meta:{label:M(),skeleton:`date`}},{accessorKey:`block_transaction_id`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:R()}),cell:({row:e})=>(0,$.jsx)(Z,{className:`min-w-40`,children:e.original.block_transaction_id??`-`}),meta:{label:R(),skeleton:`id`}},{accessorKey:`is_selected`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:Ae()}),cell:({row:e})=>e.original.is_selected?me():fe(),meta:{label:Ae(),skeleton:`badge`}},{accessorKey:`callback_confirm`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:A()}),cell:({row:e})=>ht(e.original.callback_confirm,e.original.parent_trade_id),meta:{label:A(),skeleton:`badge`}},{accessorKey:`callback_num`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:P()}),cell:({row:e})=>e.original.callback_num??0,meta:{label:P(),skeleton:`id`}},{accessorKey:`notify_url`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:F()}),cell:({row:e})=>(0,$.jsx)(Z,{className:`min-w-48`,children:e.original.notify_url??`-`}),meta:{label:F(),skeleton:`long`}},{accessorKey:`redirect_url`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:ye()}),cell:({row:e})=>(0,$.jsx)(Z,{className:`min-w-48`,children:e.original.redirect_url??`-`}),meta:{label:ye(),skeleton:`long`}},{accessorKey:`api_key_id`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:`API Key ID`}),cell:({row:e})=>e.original.api_key_id??`-`,meta:{label:`API Key ID`,skeleton:`id`}},{id:`actions`,enableHiding:!1,meta:{label:Se(),skeleton:`action`,sticky:`right`,className:Ne(`w-12`)},cell:({row:t})=>(0,$.jsxs)(Le,{modal:!1,children:[(0,$.jsx)(Fe,{asChild:!0,children:(0,$.jsxs)(V,{className:`flex h-8 w-8 p-0 data-[state=open]:bg-muted`,variant:`ghost`,children:[(0,$.jsx)(et,{className:`h-4 w-4`}),(0,$.jsx)(`span`,{className:`sr-only`,children:j()})]})}),(0,$.jsxs)(Ie,{align:`end`,className:`w-44`,children:[(0,$.jsxs)(H,{onClick:()=>e(p(),t.original),children:[Ee(),(0,$.jsx)(tt,{className:`ml-auto h-4 w-4`})]}),(0,$.jsxs)(H,{onClick:()=>e(w(),t.original),children:[xe(),(0,$.jsx)(ft,{className:`ml-auto h-4 w-4`})]}),(0,$.jsxs)(H,{onClick:()=>e(b(),t.original),children:[b(),(0,$.jsx)(dt,{className:`ml-auto h-4 w-4`})]}),t.original.status===2&&!!t.original.notify_url&&(0,$.jsxs)(H,{onClick:()=>e(O(),t.original),children:[O(),(0,$.jsx)(nt,{className:`ml-auto h-4 w-4`})]})]})]})}]}function ht(e,t){return e===1?t?.trim()?ve():ke():N()}var gt=Me(`/_authenticated/orders/`);function _t({data:e,isLoading:t,onAction:n,onRefresh:r}){let[i,a]=(0,Q.useState)([]),[s,c]=(0,Q.useState)({}),{globalFilter:l,onGlobalFilterChange:u,columnFilters:ee,onColumnFiltersChange:d,pagination:f,onPaginationChange:p,ensurePageInRange:m}=lt({search:gt.useSearch(),navigate:gt.useNavigate(),pagination:{defaultPage:1,defaultPageSize:10},globalFilter:{enabled:!0,key:`orderNo`},columnFilters:[{columnId:`status`,searchKey:`status`,type:`array`},{columnId:`chain`,searchKey:`chain`,type:`array`}]}),h=Ge({data:e,columns:(0,Q.useMemo)(()=>mt(n),[n]),state:{sorting:i,columnVisibility:s,columnFilters:ee,globalFilter:l,pagination:f},onSortingChange:a,onColumnVisibilityChange:c,onColumnFiltersChange:d,onGlobalFilterChange:u,onPaginationChange:p,globalFilterFn:(e,t,n)=>{let r=String(n).toLowerCase();return String(e.original.id??``).toLowerCase().includes(r)||String(e.original.order_id??``).toLowerCase().includes(r)},getCoreRowModel:qe(),getFilteredRowModel:Ye(),getPaginationRowModel:Ve(),getSortedRowModel:He(),getFacetedRowModel:Be(),getFacetedUniqueValues:Ue()});(0,Q.useEffect)(()=>{m(h.getPageCount())},[h,m]);let g=[...new Set(e.map(e=>e.network).filter(Boolean))].map(e=>({label:e,value:e}));return(0,$.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,$.jsx)(Je,{filters:[{columnId:`status`,title:v(),options:[...Xe]},{columnId:`chain`,title:ge(),options:g}],onRefresh:r,searchPlaceholder:o(),table:h}),(0,$.jsx)(Ke,{className:`min-w-[1200px]`,emptyText:_e(),loading:t,table:h}),(0,$.jsx)(We,{className:`mt-auto`,table:h})]})}var vt={[b()]:b(),[O()]:O()};function yt(){return window.location.origin}function bt(){let e=t.useQuery(`get`,`/admin/api/v1/orders`),i=t.useMutation(`post`,`/admin/api/v1/orders/{trade_id}/close`),a=t.useMutation(`post`,`/admin/api/v1/orders/{trade_id}/mark-paid`),o=t.useMutation(`post`,`/admin/api/v1/orders/{trade_id}/resend-callback`),c=t.useMutation(`get`,`/admin/api/v1/orders/{trade_id}`),[l,u]=(0,Q.useState)(null),[f,g]=(0,Q.useState)(null),[_,v]=(0,Q.useState)(!1),[y,x]=(0,Q.useState)(null),[S,C]=(0,Q.useState)(!1),[T,E]=(0,Q.useState)(``),[D,k]=(0,Q.useState)(!1);async function A(){await r.invalidateQueries({queryKey:[`get`,`/admin/api/v1/orders`]})}async function j(){if(!l?.row.trade_id)return;let e={params:{path:{trade_id:l.row.trade_id}}};l.action===b()?await i.mutateAsync(e):l.action===O()&&await o.mutateAsync(e),X.success(de({action:vt[l.action]})),await A(),u(null)}async function M(){if(!(f?.trade_id&&T.trim())){X.error(ce());return}await a.mutateAsync({params:{path:{trade_id:f.trade_id}},body:{block_transaction_id:T.trim()}}),X.success(ue()),g(null),E(``),await A()}async function N(){k(!0);try{let e=ze(n),t=e?JSON.parse(e):``,r=await fetch(`${yt()}/admin/api/v1/orders/export`,{headers:t?{Authorization:`Bearer ${t}`}:{}});if(!r.ok)throw Error(`Export failed`);let i=await r.blob(),a=window.URL.createObjectURL(i),o=document.createElement(`a`);o.href=a,o.download=`orders-${Date.now()}.csv`,o.click(),window.URL.revokeObjectURL(a),X.success(Ce())}catch{X.error(h())}finally{k(!1)}}return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(rt,{fixed:!0}),(0,$.jsxs)(it,{className:`flex flex-1 flex-col gap-4 sm:gap-6`,children:[(0,$.jsx)(st,{actions:(0,$.jsxs)(V,{disabled:D,onClick:N,variant:`outline`,children:[(0,$.jsx)($e,{className:`mr-2 h-4 w-4`}),D?te():d()]}),description:se(),title:oe()}),(0,$.jsx)(_t,{data:e.data?.data?.list??[],isLoading:e.isLoading,onAction:async(e,t)=>{if(e===p()){C(!0),x((await c.mutateAsync({params:{path:{trade_id:t.trade_id}}})).data??t);return}if(e===b()||e===O()){v(!0);return}if(e===w()){g(t);return}u({action:e,row:t})},onRefresh:()=>e.refetch()})]}),l&&(0,$.jsx)(Pe,{confirmText:s(),desc:(0,$.jsx)(`span`,{children:je({action:l.action,id:String(l.row.trade_id??l.row.id??``)})}),handleConfirm:j,onOpenChange:()=>u(null),open:!0,title:ae({action:l.action})}),(0,$.jsx)(pt,{isLoading:c.isPending,onOpenChange:e=>{C(e),e||x(null)},open:S,order:y}),(0,$.jsx)(Y,{onOpenChange:e=>{e||(g(null),E(``))},open:!!f,children:(0,$.jsxs)(q,{children:[(0,$.jsxs)(K,{children:[(0,$.jsx)(J,{children:ne()}),(0,$.jsx)(G,{children:m({id:String(f?.trade_id??f?.id??``)})})]}),(0,$.jsxs)(`div`,{className:`space-y-2`,children:[(0,$.jsx)(Re,{htmlFor:`blockTransactionId`,children:ee()}),(0,$.jsx)(ot,{id:`blockTransactionId`,onChange:e=>E(e.target.value),placeholder:`0x... / transaction hash`,value:T})]}),(0,$.jsxs)(at,{children:[(0,$.jsx)(V,{onClick:()=>g(null),variant:`outline`,children:le()}),(0,$.jsx)(V,{disabled:a.isPending,onClick:M,children:a.isPending?ie():re()})]})]})}),(0,$.jsx)(ut,{onOpenChange:v,open:_})]})}var xt=bt;export{xt as component}; \ No newline at end of file diff --git a/src/www/assets/page-header-CDwG3nxs.js b/src/www/assets/page-header-GTtyZFBB.js similarity index 87% rename from src/www/assets/page-header-CDwG3nxs.js rename to src/www/assets/page-header-GTtyZFBB.js index dab4cd3..6ae7e7b 100644 --- a/src/www/assets/page-header-CDwG3nxs.js +++ b/src/www/assets/page-header-GTtyZFBB.js @@ -1 +1 @@ -import{em as e}from"./messages-Bp0bCjzp.js";import{t}from"./separator-DbmFQXe4.js";var n=e();function r({title:e,description:r,actions:i,children:a,variant:o=`page`}){return o===`section`?(0,n.jsxs)(`div`,{className:`flex flex-1 flex-col`,children:[(0,n.jsxs)(`div`,{className:`flex-none`,children:[(0,n.jsx)(`h3`,{className:`font-medium text-lg`,children:e}),r&&(0,n.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:r})]}),(0,n.jsx)(t,{className:`my-4 flex-none`}),(0,n.jsx)(`div`,{className:`faded-bottom h-full w-full overflow-y-auto scroll-smooth pe-4 pb-12`,children:(0,n.jsx)(`div`,{className:`-mx-1 px-1.5 lg:max-w-xl`,children:a})})]}):(0,n.jsxs)(`div`,{className:`flex flex-wrap items-end justify-between gap-2`,children:[(0,n.jsxs)(`div`,{children:[(0,n.jsx)(`h2`,{className:`font-bold text-2xl tracking-tight`,children:e}),r&&(0,n.jsx)(`p`,{className:`text-muted-foreground`,children:r})]}),i&&(0,n.jsx)(`div`,{className:`flex gap-2`,children:i})]})}export{r as t}; \ No newline at end of file +import{tm as e}from"./messages-BOatyqUm.js";import{t}from"./separator-CsUemQNs.js";var n=e();function r({title:e,description:r,actions:i,children:a,variant:o=`page`}){return o===`section`?(0,n.jsxs)(`div`,{className:`flex flex-1 flex-col`,children:[(0,n.jsxs)(`div`,{className:`flex-none`,children:[(0,n.jsx)(`h3`,{className:`font-medium text-lg`,children:e}),r&&(0,n.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:r})]}),(0,n.jsx)(t,{className:`my-4 flex-none`}),(0,n.jsx)(`div`,{className:`faded-bottom h-full w-full overflow-y-auto scroll-smooth pe-4 pb-12`,children:(0,n.jsx)(`div`,{className:`-mx-1 px-1.5 lg:max-w-xl`,children:a})})]}):(0,n.jsxs)(`div`,{className:`flex flex-wrap items-end justify-between gap-2`,children:[(0,n.jsxs)(`div`,{children:[(0,n.jsx)(`h2`,{className:`font-bold text-2xl tracking-tight`,children:e}),r&&(0,n.jsx)(`p`,{className:`text-muted-foreground`,children:r})]}),i&&(0,n.jsx)(`div`,{className:`flex gap-2`,children:i})]})}export{r as t}; \ No newline at end of file diff --git a/src/www/assets/password-CiaPXG92.js b/src/www/assets/password-CiaPXG92.js deleted file mode 100644 index 6e10ffe..0000000 --- a/src/www/assets/password-CiaPXG92.js +++ /dev/null @@ -1 +0,0 @@ -import{a as e}from"./auth-store-Csn6HPxJ.js";import{$r as t,If as n,Lf as r,Qr as i,Xr as a,Yr as o,Zr as s,ai as c,ei as l,em as u,ii as d,ni as f,oi as p,ri as m,si as h,ti as g}from"./messages-Bp0bCjzp.js";import{t as _}from"./button-BgMnOYKD.js";import{n as v}from"./dist-BGqHIBUe.js";import{c as y,s as b}from"./zod-rwFXxHlg.js";import{a as x,c as S,i as C,l as w,n as T,o as E,s as D,t as O}from"./form-BhKmyN6D.js";import{t as k}from"./password-input-D8nK3bk7.js";import{t as A}from"./page-header-CDwG3nxs.js";var j=u(),M=b({old_password:y().min(1,h()),new_password:y().min(8,p()),confirm_password:y().min(1,c())}).refine(e=>e.new_password===e.confirm_password,{message:d(),path:[`confirm_password`]});function N(){let n=w({resolver:S(M),defaultValues:{old_password:``,new_password:``,confirm_password:``}}),r=e.useMutation(`post`,`/admin/api/v1/auth/password`);async function c(e){await r.mutateAsync({body:{old_password:e.old_password,new_password:e.new_password}}),v.success(m()),n.reset()}return(0,j.jsx)(O,{...n,children:(0,j.jsxs)(`form`,{className:`max-w-md space-y-4`,onSubmit:n.handleSubmit(c),children:[(0,j.jsx)(C,{control:n.control,name:`old_password`,render:({field:e})=>(0,j.jsxs)(x,{children:[(0,j.jsx)(E,{children:f()}),(0,j.jsx)(T,{children:(0,j.jsx)(k,{placeholder:g(),...e})}),(0,j.jsx)(D,{})]})}),(0,j.jsx)(C,{control:n.control,name:`new_password`,render:({field:e})=>(0,j.jsxs)(x,{children:[(0,j.jsx)(E,{children:l()}),(0,j.jsx)(T,{children:(0,j.jsx)(k,{placeholder:t(),...e})}),(0,j.jsx)(D,{})]})}),(0,j.jsx)(C,{control:n.control,name:`confirm_password`,render:({field:e})=>(0,j.jsxs)(x,{children:[(0,j.jsx)(E,{children:i()}),(0,j.jsx)(T,{children:(0,j.jsx)(k,{placeholder:s(),...e})}),(0,j.jsx)(D,{})]})}),(0,j.jsx)(_,{disabled:r.isPending,type:`submit`,children:r.isPending?a():o()})]})})}function P(){return(0,j.jsx)(A,{description:n(),title:r(),variant:`section`,children:(0,j.jsx)(N,{})})}var F=P;export{F as component}; \ No newline at end of file diff --git a/src/www/assets/password-DElKXGVw.js b/src/www/assets/password-DElKXGVw.js new file mode 100644 index 0000000..8132828 --- /dev/null +++ b/src/www/assets/password-DElKXGVw.js @@ -0,0 +1 @@ +import{a as e}from"./auth-store-De4Y7PFV.js";import{$r as t,Lf as n,Qr as r,Rf as i,Xr as a,Yr as o,Zr as s,ai as c,ei as l,ii as u,ni as d,oi as f,ri as p,si as m,ti as h,tm as g}from"./messages-BOatyqUm.js";import{t as _}from"./button-C_NDYaz8.js";import{n as v}from"./dist-JOUh6qvR.js";import{c as y,s as b}from"./zod-rwFXxHlg.js";import{a as x,c as S,i as C,l as w,n as T,o as E,s as D,t as O}from"./form-KfFEakes.js";import{t as k}from"./password-input-95hMTMdh.js";import{t as A}from"./page-header-GTtyZFBB.js";var j=g(),M=b({old_password:y().min(1,m()),new_password:y().min(8,f()),confirm_password:y().min(1,c())}).refine(e=>e.new_password===e.confirm_password,{message:u(),path:[`confirm_password`]});function N(){let n=w({resolver:S(M),defaultValues:{old_password:``,new_password:``,confirm_password:``}}),i=e.useMutation(`post`,`/admin/api/v1/auth/password`);async function c(e){await i.mutateAsync({body:{old_password:e.old_password,new_password:e.new_password}}),v.success(p()),n.reset()}return(0,j.jsx)(O,{...n,children:(0,j.jsxs)(`form`,{className:`max-w-md space-y-4`,onSubmit:n.handleSubmit(c),children:[(0,j.jsx)(C,{control:n.control,name:`old_password`,render:({field:e})=>(0,j.jsxs)(x,{children:[(0,j.jsx)(E,{children:d()}),(0,j.jsx)(T,{children:(0,j.jsx)(k,{placeholder:h(),...e})}),(0,j.jsx)(D,{})]})}),(0,j.jsx)(C,{control:n.control,name:`new_password`,render:({field:e})=>(0,j.jsxs)(x,{children:[(0,j.jsx)(E,{children:l()}),(0,j.jsx)(T,{children:(0,j.jsx)(k,{placeholder:t(),...e})}),(0,j.jsx)(D,{})]})}),(0,j.jsx)(C,{control:n.control,name:`confirm_password`,render:({field:e})=>(0,j.jsxs)(x,{children:[(0,j.jsx)(E,{children:r()}),(0,j.jsx)(T,{children:(0,j.jsx)(k,{placeholder:s(),...e})}),(0,j.jsx)(D,{})]})}),(0,j.jsx)(_,{disabled:i.isPending,type:`submit`,children:i.isPending?a():o()})]})})}function P(){return(0,j.jsx)(A,{description:n(),title:i(),variant:`section`,children:(0,j.jsx)(N,{})})}var F=P;export{F as component}; \ No newline at end of file diff --git a/src/www/assets/password-input-D8nK3bk7.js b/src/www/assets/password-input-95hMTMdh.js similarity index 76% rename from src/www/assets/password-input-D8nK3bk7.js rename to src/www/assets/password-input-95hMTMdh.js index 15ffe0f..7955d84 100644 --- a/src/www/assets/password-input-D8nK3bk7.js +++ b/src/www/assets/password-input-95hMTMdh.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";import{i as r,t as i}from"./button-BgMnOYKD.js";import{t as a}from"./eye-off-B8hO0oST.js";import{t as o}from"./eye-DAKGLydt.js";import{t as s}from"./input-BleRUV2A.js";var c=e(t(),1),l=n();function u({className:e,disabled:t,onVisibilityChange:n,ref:u,...d}){let[f,p]=c.useState(!1);return(0,l.jsxs)(`div`,{className:r(`relative`,e),children:[(0,l.jsx)(s,{className:`pr-9`,disabled:t,ref:u,type:f?`text`:`password`,...d}),(0,l.jsx)(i,{className:`absolute inset-e-1 top-1/2 h-6 w-6 -translate-y-1/2 rounded-md text-muted-foreground`,disabled:t,onClick:()=>{p(e=>{let t=!e;return n?.(t),t})},size:`icon`,type:`button`,variant:`ghost`,children:f?(0,l.jsx)(o,{size:18}):(0,l.jsx)(a,{size:18})})]})}export{u as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{i as r,t as i}from"./button-C_NDYaz8.js";import{t as a}from"./eye-off-B8hO0oST.js";import{t as o}from"./eye-DAKGLydt.js";import{t as s}from"./input-8zzM34r5.js";var c=e(t(),1),l=n();function u({className:e,disabled:t,onVisibilityChange:n,ref:u,...d}){let[f,p]=c.useState(!1);return(0,l.jsxs)(`div`,{className:r(`relative`,e),children:[(0,l.jsx)(s,{className:`pr-9`,disabled:t,ref:u,type:f?`text`:`password`,...d}),(0,l.jsx)(i,{className:`absolute inset-e-1 top-1/2 h-6 w-6 -translate-y-1/2 rounded-md text-muted-foreground`,disabled:t,onClick:()=>{p(e=>{let t=!e;return n?.(t),t})},size:`icon`,type:`button`,variant:`ghost`,children:f?(0,l.jsx)(o,{size:18}):(0,l.jsx)(a,{size:18})})]})}export{u as t}; \ No newline at end of file diff --git a/src/www/assets/pay-D-KPn-qm.js b/src/www/assets/pay-BNu4n_oI.js similarity index 56% rename from src/www/assets/pay-D-KPn-qm.js rename to src/www/assets/pay-BNu4n_oI.js index e1778e6..f59d104 100644 --- a/src/www/assets/pay-D-KPn-qm.js +++ b/src/www/assets/pay-BNu4n_oI.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/editor.client-CppUpD8k.js","assets/chunk-DECur_0Z.js","assets/preload-helper-DoS0eHac.js","assets/button-BgMnOYKD.js","assets/clsx-D9aGYY3V.js","assets/messages-Bp0bCjzp.js","assets/react-CO2uhaBc.js","assets/tabs-x8EHz9HA.js","assets/dist-CKFLmh1A.js","assets/dist-C97YBjnT.js","assets/dist-B0ikDpJU.js","assets/dist-Clua1vrx.js","assets/dist-BFnxq45V.js","assets/dist-D7AUoOWu.js","assets/dist-C6i4A_Js.js","assets/createLucideIcon-Br0Bd5k2.js","assets/dialog-BJ5VA2v_.js","assets/dist-CPQ-sRtL.js","assets/dist-_ND6L-P3.js","assets/es2015-D8VLlhse.js"])))=>i.map(i=>d[i]); -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{Bn as n,Gn as r,Hn as i,Jn as a,Kn as o,Nf as s,Un as c,Vn as l,Wn as u,Yn as ee,ar as te,cr as d,dr as f,em as p,ir as m,lr as h,nr as g,or as ne,qn as re,rr as ie,sr as ae,ur as _,zn as oe}from"./messages-Bp0bCjzp.js";import{t as v}from"./button-BgMnOYKD.js";import{t as se}from"./preload-helper-DoS0eHac.js";import{t as y}from"./arrow-left-right-CcCrkQiR.js";import{c as b,s as x}from"./zod-rwFXxHlg.js";import{a as S,c as ce,i as C,l as le,n as w,o as T,r as E,s as D,t as O}from"./form-BhKmyN6D.js";import{t as k}from"./input-BleRUV2A.js";import{t as A}from"./page-header-CDwG3nxs.js";import{a as j,i as M,n as N,o as P,r as F,t as I}from"./table-503PQfKg.js";import{a as L,i as R,n as z,r as B,t as V}from"./lib-DCke3ZPi.js";var H=e(t(),1),U=p(),W=(0,H.lazy)(async()=>({default:(await se(()=>import(`./editor.client-CppUpD8k.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]))).ClientEditor}));function ue(e){let[t,n]=(0,H.useState)(!1);return(0,H.useEffect)(()=>{n(!0)},[]),t?(0,U.jsx)(H.Suspense,{fallback:(0,U.jsx)(G,{...e}),children:(0,U.jsx)(W,{...e})}):(0,U.jsx)(G,{...e})}function G({className:e,disabled:t}){return(0,U.jsx)(`div`,{className:e,children:(0,U.jsx)(`div`,{className:[`h-64 rounded-sm border border-border/80 bg-background shadow-none`,t?`opacity-70`:``].filter(Boolean).join(` `)})})}var de=x({amountPrecision:b().min(1,_()).refine(e=>{let t=Number(e);return Number.isInteger(t)&&t>=2&&t<=6},{message:_()}),apiUrl:b().url(h()),forcedUsdtRate:b().refine(he,{message:d()})});function fe(){let e=R(`rate`),t=R(`system`),r=L(),i=le({resolver:ce(de),defaultValues:{amountPrecision:`2`,apiUrl:``,forcedUsdtRate:K}});(0,H.useEffect)(()=>{let n=e.data?.data,r=t.data?.data;n&&r&&i.reset({amountPrecision:V(r,`system.amount_precision`,`2`),apiUrl:V(n,`rate.api_url`),forcedUsdtRate:_e(n)})},[e.data,t.data,i]);async function o(){await z(r.mutateAsync,[{group:`rate`,key:`rate.api_url`,type:`string`,value:``},{group:`rate`,key:`rate.forced_rate_list`,type:`json`,value:{}},{group:`system`,key:`system.amount_precision`,type:`int`,value:2}],ae()),await e.refetch(),await t.refetch()}async function s(n){let a=n.forcedUsdtRate.trim()?Z(n.forcedUsdtRate):K;i.setValue(`forcedUsdtRate`,a),await B(r.mutateAsync,[{group:`rate`,key:`rate.api_url`,type:`string`,value:n.apiUrl},{group:`rate`,key:`rate.forced_rate_list`,type:`json`,value:Y(a)},{group:`system`,key:`system.amount_precision`,type:`int`,value:n.amountPrecision}],ne()),await e.refetch(),await t.refetch()}let c=e.isLoading||t.isLoading;return(0,U.jsx)(O,{...i,children:(0,U.jsxs)(`form`,{className:`space-y-6`,onSubmit:i.handleSubmit(s),children:[(0,U.jsx)(C,{control:i.control,name:`amountPrecision`,render:({field:e})=>(0,U.jsxs)(S,{children:[(0,U.jsx)(T,{children:te()}),(0,U.jsx)(w,{children:(0,U.jsx)(k,{max:6,min:2,step:1,type:`number`,...e})}),(0,U.jsx)(D,{})]})}),(0,U.jsx)(C,{control:i.control,name:`apiUrl`,render:({field:e})=>(0,U.jsxs)(S,{children:[(0,U.jsx)(T,{children:m()}),(0,U.jsx)(w,{children:(0,U.jsx)(k,{...e})}),(0,U.jsxs)(E,{children:[ie(),` `,(0,U.jsx)(`a`,{className:`font-medium text-primary underline-offset-4 hover:underline`,href:`https://epusdt.com/guide/faq`,rel:`noreferrer`,target:`_blank`,children:g()})]}),(0,U.jsx)(D,{})]})}),(0,U.jsx)(C,{control:i.control,name:`forcedUsdtRate`,render:({field:e})=>(0,U.jsxs)(S,{children:[(0,U.jsx)(T,{children:ee()}),(0,U.jsx)(w,{children:(0,U.jsx)(ue,{autoFormat:!0,className:`h-72`,defaultView:`split`,language:`json`,markdownPreview:!1,onChange:e.onChange,preview:{content:(0,U.jsx)(pe,{value:e.value}),label:a()},toolbarExample:{value:me},value:e.value})}),(0,U.jsx)(D,{})]})}),(0,U.jsxs)(`div`,{className:`flex gap-2`,children:[(0,U.jsx)(v,{disabled:r.isPending||c,type:`submit`,children:n()}),(0,U.jsx)(v,{disabled:r.isPending,onClick:o,type:`button`,variant:`outline`,children:oe()})]})]})})}function pe({value:e}){let[t,n]=(0,H.useState)(!1),a=J(e);if(!a)return(0,U.jsx)(`div`,{className:`rounded-md border border-destructive/30 bg-destructive/10 p-3 text-destructive text-sm`,children:d()});let s=a.map(e=>ge(e,t));return(0,U.jsxs)(`div`,{className:`space-y-3`,children:[(0,U.jsxs)(`div`,{className:`flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between`,children:[(0,U.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:re()}),s.length>0?(0,U.jsxs)(v,{className:`sm:shrink-0`,onClick:()=>n(e=>!e),size:`sm`,type:`button`,variant:`outline`,children:[(0,U.jsx)(y,{}),t?i():c()]}):null]}),s.length===0?(0,U.jsx)(`div`,{className:`rounded-md border bg-muted/30 p-3 text-muted-foreground text-sm`,children:l()}):(0,U.jsxs)(I,{children:[(0,U.jsx)(j,{children:(0,U.jsxs)(P,{children:[(0,U.jsx)(M,{children:t?r():o()}),(0,U.jsx)(M,{children:t?o():r()}),(0,U.jsx)(M,{className:`text-right`,children:u()})]})}),(0,U.jsx)(N,{children:s.map(e=>(0,U.jsxs)(P,{children:[(0,U.jsx)(F,{className:`font-medium uppercase`,children:e.from}),(0,U.jsx)(F,{className:`uppercase`,children:e.to}),(0,U.jsx)(F,{className:`text-right font-mono`,children:e.rate})]},`${e.from}:${e.to}`))})]})]})}var me=JSON.stringify({cny:{usdt:.137,ton:.5,trx:.55},usd:{usdt:1,ton:3.65,trx:4.02}},null,2),K=JSON.stringify({},null,2);function he(e){return e.trim()===``||q(e)}function q(e){try{return Q(e),!0}catch{return!1}}function ge(e,t){return t?{from:e.coin,rate:e.rate===0?`-`:X(1/e.rate),to:e.base}:{from:e.base,rate:X(e.rate),to:e.coin}}function J(e){return e.trim()===``||ve(e)?[]:q(e)?Object.entries(Y(e)).flatMap(([e,t])=>Object.entries(t).map(([t,n])=>({base:e,coin:t,rate:n}))):null}function _e(e){let t=e?.find(e=>e.key===`rate.forced_rate_list`)?.value;if(t===void 0||t===``)return K;try{return Z(t)}catch{return K}}function Y(e){return Q(e)}function X(e){return Number.isInteger(e)?String(e):Number(e.toPrecision(12)).toString()}function Z(e){return JSON.stringify(Q(e),null,2)}function ve(e){try{return Object.keys(Y(e)).length===0}catch{return!1}}function Q(e){let t=ye($(e));if(!t)throw Error(`Invalid rate map`);return t}function $(e){if(typeof e!=`string`)return e;let t=e.trim();if(!t)return{};let n=JSON.parse(t);return typeof n==`string`?$(n):n}function ye(e){if(!(e&&typeof e==`object`&&!Array.isArray(e)))return null;let t={};for(let[n,r]of Object.entries(e)){if(!(r&&typeof r==`object`&&!Array.isArray(r)))return null;t[n]={};for(let[e,i]of Object.entries(r)){let r=typeof i==`string`&&i.trim()?Number(i):i;if(!(typeof r==`number`&&Number.isFinite(r)&&r>=0))return null;t[n][e]=r}}return t}function be(){return(0,U.jsx)(A,{description:f(),title:s(),variant:`section`,children:(0,U.jsx)(fe,{})})}var xe=be;export{xe as component}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/editor.client-CF-kC0wX.js","assets/chunk-DECur_0Z.js","assets/preload-helper-DoS0eHac.js","assets/button-C_NDYaz8.js","assets/clsx-D9aGYY3V.js","assets/messages-BOatyqUm.js","assets/react-CO2uhaBc.js","assets/tabs-6Ep1KePr.js","assets/dist-DPPquN_M.js","assets/dist-BNFQuJTu.js","assets/dist-D4X8zGEB.js","assets/dist-DvwKOQ8R.js","assets/dist-Cc8_LDAq.js","assets/dist-D0DoWChj.js","assets/dist-CHFjpVqk.js","assets/createLucideIcon-Br0Bd5k2.js","assets/dialog-CZ-2RPb-.js","assets/dist-iiotRAEO.js","assets/dist-rcWP-8Cu.js","assets/es2015-DT8UeWzs.js"])))=>i.map(i=>d[i]); +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{Bn as n,Gn as r,Hn as i,Jn as a,Kn as o,Pf as s,Un as c,Vn as l,Wn as u,Yn as ee,ar as te,cr as d,dr as f,ir as p,lr as m,nr as h,or as g,qn as ne,rr as re,sr as ie,tm as ae,ur as _,zn as oe}from"./messages-BOatyqUm.js";import{t as v}from"./button-C_NDYaz8.js";import{t as se}from"./preload-helper-DoS0eHac.js";import{t as y}from"./arrow-left-right-CcCrkQiR.js";import{c as b,s as x}from"./zod-rwFXxHlg.js";import{a as S,c as ce,i as C,l as le,n as w,o as T,r as E,s as D,t as O}from"./form-KfFEakes.js";import{t as k}from"./input-8zzM34r5.js";import{t as A}from"./page-header-GTtyZFBB.js";import{a as j,i as M,n as N,o as P,r as F,t as I}from"./table-9UOy2Vxt.js";import{a as L,i as R,n as z,r as B,t as V}from"./lib-DDezYSnW.js";var H=e(t(),1),U=ae(),W=(0,H.lazy)(async()=>({default:(await se(()=>import(`./editor.client-CF-kC0wX.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]))).ClientEditor}));function ue(e){let[t,n]=(0,H.useState)(!1);return(0,H.useEffect)(()=>{n(!0)},[]),t?(0,U.jsx)(H.Suspense,{fallback:(0,U.jsx)(G,{...e}),children:(0,U.jsx)(W,{...e})}):(0,U.jsx)(G,{...e})}function G({className:e,disabled:t}){return(0,U.jsx)(`div`,{className:e,children:(0,U.jsx)(`div`,{className:[`h-64 rounded-sm border border-border/80 bg-background shadow-none`,t?`opacity-70`:``].filter(Boolean).join(` `)})})}var de=x({amountPrecision:b().min(1,_()).refine(e=>{let t=Number(e);return Number.isInteger(t)&&t>=2&&t<=6},{message:_()}),apiUrl:b().url(m()),forcedUsdtRate:b().refine(he,{message:d()})});function fe(){let e=R(`rate`),t=R(`system`),r=L(),i=le({resolver:ce(de),defaultValues:{amountPrecision:`2`,apiUrl:``,forcedUsdtRate:K}});(0,H.useEffect)(()=>{let n=e.data?.data,r=t.data?.data;n&&r&&i.reset({amountPrecision:V(r,`system.amount_precision`,`2`),apiUrl:V(n,`rate.api_url`),forcedUsdtRate:_e(n)})},[e.data,t.data,i]);async function o(){await z(r.mutateAsync,[{group:`rate`,key:`rate.api_url`,type:`string`,value:``},{group:`rate`,key:`rate.forced_rate_list`,type:`json`,value:{}},{group:`system`,key:`system.amount_precision`,type:`int`,value:2}],ie()),await e.refetch(),await t.refetch()}async function s(n){let a=n.forcedUsdtRate.trim()?Z(n.forcedUsdtRate):K;i.setValue(`forcedUsdtRate`,a),await B(r.mutateAsync,[{group:`rate`,key:`rate.api_url`,type:`string`,value:n.apiUrl},{group:`rate`,key:`rate.forced_rate_list`,type:`json`,value:Y(a)},{group:`system`,key:`system.amount_precision`,type:`int`,value:n.amountPrecision}],g()),await e.refetch(),await t.refetch()}let c=e.isLoading||t.isLoading;return(0,U.jsx)(O,{...i,children:(0,U.jsxs)(`form`,{className:`space-y-6`,onSubmit:i.handleSubmit(s),children:[(0,U.jsx)(C,{control:i.control,name:`amountPrecision`,render:({field:e})=>(0,U.jsxs)(S,{children:[(0,U.jsx)(T,{children:te()}),(0,U.jsx)(w,{children:(0,U.jsx)(k,{max:6,min:2,step:1,type:`number`,...e})}),(0,U.jsx)(D,{})]})}),(0,U.jsx)(C,{control:i.control,name:`apiUrl`,render:({field:e})=>(0,U.jsxs)(S,{children:[(0,U.jsx)(T,{children:p()}),(0,U.jsx)(w,{children:(0,U.jsx)(k,{...e})}),(0,U.jsxs)(E,{children:[re(),` `,(0,U.jsx)(`a`,{className:`font-medium text-primary underline-offset-4 hover:underline`,href:`https://epusdt.com/guide/faq`,rel:`noreferrer`,target:`_blank`,children:h()})]}),(0,U.jsx)(D,{})]})}),(0,U.jsx)(C,{control:i.control,name:`forcedUsdtRate`,render:({field:e})=>(0,U.jsxs)(S,{children:[(0,U.jsx)(T,{children:ee()}),(0,U.jsx)(w,{children:(0,U.jsx)(ue,{autoFormat:!0,className:`h-72`,defaultView:`split`,language:`json`,markdownPreview:!1,onChange:e.onChange,preview:{content:(0,U.jsx)(pe,{value:e.value}),label:a()},toolbarExample:{value:me},value:e.value})}),(0,U.jsx)(D,{})]})}),(0,U.jsxs)(`div`,{className:`flex gap-2`,children:[(0,U.jsx)(v,{disabled:r.isPending||c,type:`submit`,children:n()}),(0,U.jsx)(v,{disabled:r.isPending,onClick:o,type:`button`,variant:`outline`,children:oe()})]})]})})}function pe({value:e}){let[t,n]=(0,H.useState)(!1),a=J(e);if(!a)return(0,U.jsx)(`div`,{className:`rounded-md border border-destructive/30 bg-destructive/10 p-3 text-destructive text-sm`,children:d()});let s=a.map(e=>ge(e,t));return(0,U.jsxs)(`div`,{className:`space-y-3`,children:[(0,U.jsxs)(`div`,{className:`flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between`,children:[(0,U.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:ne()}),s.length>0?(0,U.jsxs)(v,{className:`sm:shrink-0`,onClick:()=>n(e=>!e),size:`sm`,type:`button`,variant:`outline`,children:[(0,U.jsx)(y,{}),t?i():c()]}):null]}),s.length===0?(0,U.jsx)(`div`,{className:`rounded-md border bg-muted/30 p-3 text-muted-foreground text-sm`,children:l()}):(0,U.jsxs)(I,{children:[(0,U.jsx)(j,{children:(0,U.jsxs)(P,{children:[(0,U.jsx)(M,{children:t?r():o()}),(0,U.jsx)(M,{children:t?o():r()}),(0,U.jsx)(M,{className:`text-right`,children:u()})]})}),(0,U.jsx)(N,{children:s.map(e=>(0,U.jsxs)(P,{children:[(0,U.jsx)(F,{className:`font-medium uppercase`,children:e.from}),(0,U.jsx)(F,{className:`uppercase`,children:e.to}),(0,U.jsx)(F,{className:`text-right font-mono`,children:e.rate})]},`${e.from}:${e.to}`))})]})]})}var me=JSON.stringify({cny:{usdt:.137,ton:.5,trx:.55},usd:{usdt:1,ton:3.65,trx:4.02}},null,2),K=JSON.stringify({},null,2);function he(e){return e.trim()===``||q(e)}function q(e){try{return Q(e),!0}catch{return!1}}function ge(e,t){return t?{from:e.coin,rate:e.rate===0?`-`:X(1/e.rate),to:e.base}:{from:e.base,rate:X(e.rate),to:e.coin}}function J(e){return e.trim()===``||ve(e)?[]:q(e)?Object.entries(Y(e)).flatMap(([e,t])=>Object.entries(t).map(([t,n])=>({base:e,coin:t,rate:n}))):null}function _e(e){let t=e?.find(e=>e.key===`rate.forced_rate_list`)?.value;if(t===void 0||t===``)return K;try{return Z(t)}catch{return K}}function Y(e){return Q(e)}function X(e){return Number.isInteger(e)?String(e):Number(e.toPrecision(12)).toString()}function Z(e){return JSON.stringify(Q(e),null,2)}function ve(e){try{return Object.keys(Y(e)).length===0}catch{return!1}}function Q(e){let t=ye($(e));if(!t)throw Error(`Invalid rate map`);return t}function $(e){if(typeof e!=`string`)return e;let t=e.trim();if(!t)return{};let n=JSON.parse(t);return typeof n==`string`?$(n):n}function ye(e){if(!(e&&typeof e==`object`&&!Array.isArray(e)))return null;let t={};for(let[n,r]of Object.entries(e)){if(!(r&&typeof r==`object`&&!Array.isArray(r)))return null;t[n]={};for(let[e,i]of Object.entries(r)){let r=typeof i==`string`&&i.trim()?Number(i):i;if(!(typeof r==`number`&&Number.isFinite(r)&&r>=0))return null;t[n][e]=r}}return t}function be(){return(0,U.jsx)(A,{description:f(),title:s(),variant:`section`,children:(0,U.jsx)(fe,{})})}var xe=be;export{xe as component}; \ No newline at end of file diff --git a/src/www/assets/payment-setup-CWhCyjHa.js b/src/www/assets/payment-setup-BFIKIu1u.js similarity index 85% rename from src/www/assets/payment-setup-CWhCyjHa.js rename to src/www/assets/payment-setup-BFIKIu1u.js index aa55744..62b8196 100644 --- a/src/www/assets/payment-setup-CWhCyjHa.js +++ b/src/www/assets/payment-setup-BFIKIu1u.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{a as t}from"./auth-store-Csn6HPxJ.js";import{t as n}from"./react-CO2uhaBc.js";import{Bs as r,Hs as i,Ls as a,Rs as o,Us as s,Vs as c,em as l,zs as u}from"./messages-Bp0bCjzp.js";import{r as d}from"./route-Bin9ihv_.js";import{i as f}from"./button-BgMnOYKD.js";import{a as p,c as m,d as h,f as g,l as _,n as v,o as y,r as b,s as x,t as S,u as C}from"./data-table-C3Nm2K6Z.js";import{t as w}from"./badge-BP05f1dq.js";import{t as T}from"./use-table-url-state-DP0Y4QjR.js";import{t as E}from"./labels-D0HnAPk9.js";var D=e(n(),1),O=l();function k(){return[{accessorKey:`network`,header:({column:e})=>(0,O.jsx)(p,{column:e,title:o()}),cell:({row:e})=>e.original.network?(0,O.jsx)(E,{displayName:e.original.display_name,network:e.original.network}):`-`,meta:{label:o(),skeleton:`short`}},{id:`tokens`,accessorFn:e=>e.tokens?.join(`, `)??``,header:({column:e})=>(0,O.jsx)(p,{column:e,title:a()}),cell:({row:e})=>{let t=e.original.tokens??[];return t.length===0?`-`:(0,O.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:t.map(e=>(0,O.jsx)(w,{className:`bg-emerald-500/10 text-emerald-600`,children:e},e))})},meta:{className:f(`text-center`),label:a(),skeleton:`short`}}]}var A=d(`/_authenticated/payment-setup/`);function j({data:e,isLoading:t,onRefresh:n}){let[a,o]=(0,D.useState)([]),{globalFilter:l,onGlobalFilterChange:d,columnFilters:f,onColumnFiltersChange:p,pagination:w,onPaginationChange:E,ensurePageInRange:j}=T({search:A.useSearch(),navigate:A.useNavigate(),pagination:{defaultPage:1,defaultPageSize:10},globalFilter:{enabled:!0,key:`keyword`},columnFilters:[{columnId:`network`,searchKey:`chain`,type:`array`}]}),M=y({data:e,columns:(0,D.useMemo)(()=>k(),[]),state:{sorting:a,columnFilters:f,globalFilter:l,pagination:w},onSortingChange:o,onColumnFiltersChange:p,onGlobalFilterChange:d,onPaginationChange:E,globalFilterFn:(e,t,n)=>{let r=String(n).toLowerCase();return(e.original.network??``).toLowerCase().includes(r)||(e.original.display_name??``).toLowerCase().includes(r)||(e.original.tokens??[]).some(e=>e.toLowerCase().includes(r))},getCoreRowModel:x(),getFilteredRowModel:C(),getPaginationRowModel:h(),getSortedRowModel:g(),getFacetedRowModel:m(),getFacetedUniqueValues:_()});(0,D.useEffect)(()=>{j(M.getPageCount())},[M,j]);let N=Array.from(e.filter(e=>e.network).reduce((e,t)=>{let n=t.network,r=n.toLowerCase();return e.has(r)||e.set(r,{label:t.display_name||n,value:n}),e},new Map).values());return(0,O.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,O.jsxs)(`div`,{className:`space-y-1`,children:[(0,O.jsx)(`h3`,{className:`font-semibold text-lg`,children:s()}),(0,O.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:i()})]}),(0,O.jsx)(S,{filters:[{columnId:`network`,title:c(),options:N}],onRefresh:n,searchPlaceholder:r(),table:M}),(0,O.jsx)(b,{className:`min-w-[700px]`,emptyText:u(),loading:t,table:M}),(0,O.jsx)(v,{className:`mt-auto`,table:M})]})}function M(){let e=t.useQuery(`get`,`/admin/api/v1/config`);return(0,O.jsx)(j,{data:e.data?.data?.supported_assets??[],isLoading:e.isLoading,onRefresh:()=>e.refetch()})}var N=M;export{N as component}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{a as t}from"./auth-store-De4Y7PFV.js";import{t as n}from"./react-CO2uhaBc.js";import{Bs as r,Hs as i,Ls as a,Rs as o,Us as s,Vs as c,tm as l,zs as u}from"./messages-BOatyqUm.js";import{r as d}from"./route-wzPKSRj2.js";import{i as f}from"./button-C_NDYaz8.js";import{a as p,c as m,d as h,f as g,l as _,n as v,o as y,r as b,s as x,t as S,u as C}from"./data-table-1LQSBhN2.js";import{t as w}from"./badge-VJlwwTW5.js";import{t as T}from"./use-table-url-state-DP0Y4QjR.js";import{t as E}from"./labels-Cbc2zlmv.js";var D=e(n(),1),O=l();function k(){return[{accessorKey:`network`,header:({column:e})=>(0,O.jsx)(p,{column:e,title:o()}),cell:({row:e})=>e.original.network?(0,O.jsx)(E,{displayName:e.original.display_name,network:e.original.network}):`-`,meta:{label:o(),skeleton:`short`}},{id:`tokens`,accessorFn:e=>e.tokens?.join(`, `)??``,header:({column:e})=>(0,O.jsx)(p,{column:e,title:a()}),cell:({row:e})=>{let t=e.original.tokens??[];return t.length===0?`-`:(0,O.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:t.map(e=>(0,O.jsx)(w,{className:`bg-emerald-500/10 text-emerald-600`,children:e},e))})},meta:{className:f(`text-center`),label:a(),skeleton:`short`}}]}var A=d(`/_authenticated/payment-setup/`);function j({data:e,isLoading:t,onRefresh:n}){let[a,o]=(0,D.useState)([]),{globalFilter:l,onGlobalFilterChange:d,columnFilters:f,onColumnFiltersChange:p,pagination:w,onPaginationChange:E,ensurePageInRange:j}=T({search:A.useSearch(),navigate:A.useNavigate(),pagination:{defaultPage:1,defaultPageSize:10},globalFilter:{enabled:!0,key:`keyword`},columnFilters:[{columnId:`network`,searchKey:`chain`,type:`array`}]}),M=y({data:e,columns:(0,D.useMemo)(()=>k(),[]),state:{sorting:a,columnFilters:f,globalFilter:l,pagination:w},onSortingChange:o,onColumnFiltersChange:p,onGlobalFilterChange:d,onPaginationChange:E,globalFilterFn:(e,t,n)=>{let r=String(n).toLowerCase();return(e.original.network??``).toLowerCase().includes(r)||(e.original.display_name??``).toLowerCase().includes(r)||(e.original.tokens??[]).some(e=>e.toLowerCase().includes(r))},getCoreRowModel:x(),getFilteredRowModel:C(),getPaginationRowModel:h(),getSortedRowModel:g(),getFacetedRowModel:m(),getFacetedUniqueValues:_()});(0,D.useEffect)(()=>{j(M.getPageCount())},[M,j]);let N=Array.from(e.filter(e=>e.network).reduce((e,t)=>{let n=t.network,r=n.toLowerCase();return e.has(r)||e.set(r,{label:t.display_name||n,value:n}),e},new Map).values());return(0,O.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,O.jsxs)(`div`,{className:`space-y-1`,children:[(0,O.jsx)(`h3`,{className:`font-semibold text-lg`,children:s()}),(0,O.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:i()})]}),(0,O.jsx)(S,{filters:[{columnId:`network`,title:c(),options:N}],onRefresh:n,searchPlaceholder:r(),table:M}),(0,O.jsx)(b,{className:`min-w-[700px]`,emptyText:u(),loading:t,table:M}),(0,O.jsx)(v,{className:`mt-auto`,table:M})]})}function M(){let e=t.useQuery(`get`,`/admin/api/v1/config`);return(0,O.jsx)(j,{data:e.data?.data?.supported_assets??[],isLoading:e.isLoading,onRefresh:()=>e.refetch()})}var N=M;export{N as component}; \ No newline at end of file diff --git a/src/www/assets/popover-YeKifm3K.js b/src/www/assets/popover-NQZzcPDh.js similarity index 92% rename from src/www/assets/popover-YeKifm3K.js rename to src/www/assets/popover-NQZzcPDh.js index 26d264e..5968f6f 100644 --- a/src/www/assets/popover-YeKifm3K.js +++ b/src/www/assets/popover-NQZzcPDh.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";import{t as r}from"./dist-BFnxq45V.js";import{i,s as a,u as o}from"./button-BgMnOYKD.js";import{a as s,r as c,t as l}from"./dist-CKFLmh1A.js";import{t as u}from"./dist-Clua1vrx.js";import{n as d}from"./dist-B0ikDpJU.js";import{n as f,t as p}from"./dist-_ND6L-P3.js";import{i as m,n as h,r as g,t as _}from"./es2015-D8VLlhse.js";import{a as v,i as y,n as b,r as x,t as S}from"./dist-BSXD7MjW.js";var C=e(t(),1),w=n(),T=`Popover`,[E,ee]=s(T,[v]),D=v(),[O,k]=E(T),A=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=D(t),c=C.useRef(null),[u,f]=C.useState(!1),[p,m]=l({prop:r,defaultProp:i??!1,onChange:a,caller:T});return(0,w.jsx)(y,{...s,children:(0,w.jsx)(O,{scope:t,contentId:d(),triggerRef:c,open:p,onOpenChange:m,onOpenToggle:C.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:u,onCustomAnchorAdd:C.useCallback(()=>f(!0),[]),onCustomAnchorRemove:C.useCallback(()=>f(!1),[]),modal:o,children:n})})};A.displayName=T;var j=`PopoverAnchor`,M=C.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=k(j,n),a=D(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return C.useEffect(()=>(o(),()=>s()),[o,s]),(0,w.jsx)(S,{...a,...r,ref:t})});M.displayName=j;var N=`PopoverTrigger`,P=C.forwardRef((e,t)=>{let{__scopePopover:n,...i}=e,a=k(N,n),s=D(n),l=o(t,a.triggerRef),u=(0,w.jsx)(r.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Y(a.open),...i,ref:l,onClick:c(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?u:(0,w.jsx)(S,{asChild:!0,...s,children:u})});P.displayName=N;var F=`PopoverPortal`,[I,L]=E(F,{forceMount:void 0}),R=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=k(F,t);return(0,w.jsx)(I,{scope:t,forceMount:n,children:(0,w.jsx)(u,{present:n||a.open,children:(0,w.jsx)(p,{asChild:!0,container:i,children:r})})})};R.displayName=F;var z=`PopoverContent`,B=C.forwardRef((e,t)=>{let n=L(z,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=k(z,e.__scopePopover);return(0,w.jsx)(u,{present:r||a.open,children:a.modal?(0,w.jsx)(H,{...i,ref:t}):(0,w.jsx)(U,{...i,ref:t})})});B.displayName=z;var V=a(`PopoverContent.RemoveScroll`),H=C.forwardRef((e,t)=>{let n=k(z,e.__scopePopover),r=C.useRef(null),i=o(t,r),a=C.useRef(!1);return C.useEffect(()=>{let e=r.current;if(e)return _(e)},[]),(0,w.jsx)(h,{as:V,allowPinchZoom:!0,children:(0,w.jsx)(W,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:c(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:c(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;a.current=t.button===2||n},{checkForDefaultPrevented:!1}),onFocusOutside:c(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),U=C.forwardRef((e,t)=>{let n=k(z,e.__scopePopover),r=C.useRef(!1),i=C.useRef(!1);return(0,w.jsx)(W,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),W=C.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,p=k(z,n),h=D(n);return g(),(0,w.jsx)(m,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,w.jsx)(f,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>p.onOpenChange(!1),children:(0,w.jsx)(x,{"data-state":Y(p.open),role:`dialog`,id:p.contentId,...h,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),G=`PopoverClose`,K=C.forwardRef((e,t)=>{let{__scopePopover:n,...i}=e,a=k(G,n);return(0,w.jsx)(r.button,{type:`button`,...i,ref:t,onClick:c(e.onClick,()=>a.onOpenChange(!1))})});K.displayName=G;var q=`PopoverArrow`,J=C.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=D(n);return(0,w.jsx)(b,{...i,...r,ref:t})});J.displayName=q;function Y(e){return e?`open`:`closed`}var X=A,Z=P,Q=R,$=B;function te({...e}){return(0,w.jsx)(X,{"data-slot":`popover`,...e})}function ne({...e}){return(0,w.jsx)(Z,{"data-slot":`popover-trigger`,...e})}function re({className:e,align:t=`center`,sideOffset:n=4,...r}){return(0,w.jsx)(Q,{children:(0,w.jsx)($,{align:t,className:i(`data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=closed]:animate-out data-[state=open]:animate-in`,e),"data-slot":`popover-content`,sideOffset:n,...r})})}export{re as n,ne as r,te as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./dist-Cc8_LDAq.js";import{i,s as a,u as o}from"./button-C_NDYaz8.js";import{a as s,r as c,t as l}from"./dist-DPPquN_M.js";import{t as u}from"./dist-DvwKOQ8R.js";import{n as d}from"./dist-D4X8zGEB.js";import{n as f,t as p}from"./dist-rcWP-8Cu.js";import{i as m,n as h,r as g,t as _}from"./es2015-DT8UeWzs.js";import{a as v,i as y,n as b,r as x,t as S}from"./dist-CsIb2aLK.js";var C=e(t(),1),w=n(),T=`Popover`,[E,ee]=s(T,[v]),D=v(),[O,k]=E(T),A=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=D(t),c=C.useRef(null),[u,f]=C.useState(!1),[p,m]=l({prop:r,defaultProp:i??!1,onChange:a,caller:T});return(0,w.jsx)(y,{...s,children:(0,w.jsx)(O,{scope:t,contentId:d(),triggerRef:c,open:p,onOpenChange:m,onOpenToggle:C.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:u,onCustomAnchorAdd:C.useCallback(()=>f(!0),[]),onCustomAnchorRemove:C.useCallback(()=>f(!1),[]),modal:o,children:n})})};A.displayName=T;var j=`PopoverAnchor`,M=C.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=k(j,n),a=D(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return C.useEffect(()=>(o(),()=>s()),[o,s]),(0,w.jsx)(S,{...a,...r,ref:t})});M.displayName=j;var N=`PopoverTrigger`,P=C.forwardRef((e,t)=>{let{__scopePopover:n,...i}=e,a=k(N,n),s=D(n),l=o(t,a.triggerRef),u=(0,w.jsx)(r.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Y(a.open),...i,ref:l,onClick:c(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?u:(0,w.jsx)(S,{asChild:!0,...s,children:u})});P.displayName=N;var F=`PopoverPortal`,[I,L]=E(F,{forceMount:void 0}),R=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=k(F,t);return(0,w.jsx)(I,{scope:t,forceMount:n,children:(0,w.jsx)(u,{present:n||a.open,children:(0,w.jsx)(p,{asChild:!0,container:i,children:r})})})};R.displayName=F;var z=`PopoverContent`,B=C.forwardRef((e,t)=>{let n=L(z,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=k(z,e.__scopePopover);return(0,w.jsx)(u,{present:r||a.open,children:a.modal?(0,w.jsx)(H,{...i,ref:t}):(0,w.jsx)(U,{...i,ref:t})})});B.displayName=z;var V=a(`PopoverContent.RemoveScroll`),H=C.forwardRef((e,t)=>{let n=k(z,e.__scopePopover),r=C.useRef(null),i=o(t,r),a=C.useRef(!1);return C.useEffect(()=>{let e=r.current;if(e)return _(e)},[]),(0,w.jsx)(h,{as:V,allowPinchZoom:!0,children:(0,w.jsx)(W,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:c(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:c(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;a.current=t.button===2||n},{checkForDefaultPrevented:!1}),onFocusOutside:c(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),U=C.forwardRef((e,t)=>{let n=k(z,e.__scopePopover),r=C.useRef(!1),i=C.useRef(!1);return(0,w.jsx)(W,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),W=C.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,p=k(z,n),h=D(n);return g(),(0,w.jsx)(m,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,w.jsx)(f,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>p.onOpenChange(!1),children:(0,w.jsx)(x,{"data-state":Y(p.open),role:`dialog`,id:p.contentId,...h,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),G=`PopoverClose`,K=C.forwardRef((e,t)=>{let{__scopePopover:n,...i}=e,a=k(G,n);return(0,w.jsx)(r.button,{type:`button`,...i,ref:t,onClick:c(e.onClick,()=>a.onOpenChange(!1))})});K.displayName=G;var q=`PopoverArrow`,J=C.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=D(n);return(0,w.jsx)(b,{...i,...r,ref:t})});J.displayName=q;function Y(e){return e?`open`:`closed`}var X=A,Z=P,Q=R,$=B;function te({...e}){return(0,w.jsx)(X,{"data-slot":`popover`,...e})}function ne({...e}){return(0,w.jsx)(Z,{"data-slot":`popover-trigger`,...e})}function re({className:e,align:t=`center`,sideOffset:n=4,...r}){return(0,w.jsx)(Q,{children:(0,w.jsx)($,{align:t,className:i(`data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=closed]:animate-out data-[state=open]:animate-in`,e),"data-slot":`popover-content`,sideOffset:n,...r})})}export{re as n,ne as r,te as t}; \ No newline at end of file diff --git a/src/www/assets/radio-group-DrQ9k883.js b/src/www/assets/radio-group-D2rceepu.js similarity index 88% rename from src/www/assets/radio-group-DrQ9k883.js rename to src/www/assets/radio-group-D2rceepu.js index 8b0e3f2..cba5a08 100644 --- a/src/www/assets/radio-group-DrQ9k883.js +++ b/src/www/assets/radio-group-D2rceepu.js @@ -1 +1 @@ -import{em as e}from"./messages-Bp0bCjzp.js";import{i as t}from"./button-BgMnOYKD.js";import{n,r,t as i}from"./dist-036CEgdV.js";import{t as a}from"./createLucideIcon-Br0Bd5k2.js";var o=a(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),s=e();function c({className:e,...n}){return(0,s.jsx)(r,{className:t(`grid gap-3`,e),"data-slot":`radio-group`,...n})}function l({className:e,...r}){return(0,s.jsx)(n,{className:t(`aspect-square size-4 shrink-0 rounded-full border border-input text-primary shadow-xs outline-none transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:ring-destructive/40`,e),"data-slot":`radio-group-item`,...r,children:(0,s.jsx)(i,{className:`relative flex items-center justify-center`,"data-slot":`radio-group-indicator`,children:(0,s.jsx)(o,{className:`absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-primary`})})})}export{l as n,c as t}; \ No newline at end of file +import{tm as e}from"./messages-BOatyqUm.js";import{i as t}from"./button-C_NDYaz8.js";import{n,r,t as i}from"./dist-C5heX0fx.js";import{t as a}from"./createLucideIcon-Br0Bd5k2.js";var o=a(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),s=e();function c({className:e,...n}){return(0,s.jsx)(r,{className:t(`grid gap-3`,e),"data-slot":`radio-group`,...n})}function l({className:e,...r}){return(0,s.jsx)(n,{className:t(`aspect-square size-4 shrink-0 rounded-full border border-input text-primary shadow-xs outline-none transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:ring-destructive/40`,e),"data-slot":`radio-group-item`,...r,children:(0,s.jsx)(i,{className:`relative flex items-center justify-center`,"data-slot":`radio-group-indicator`,children:(0,s.jsx)(o,{className:`absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-primary`})})})}export{l as n,c as t}; \ No newline at end of file diff --git a/src/www/assets/route-BxnuR592.js b/src/www/assets/route-C6USHQDN.js similarity index 65% rename from src/www/assets/route-BxnuR592.js rename to src/www/assets/route-C6USHQDN.js index 5fed3f2..5e213ae 100644 --- a/src/www/assets/route-BxnuR592.js +++ b/src/www/assets/route-C6USHQDN.js @@ -1 +1 @@ -import{Ff as e,Jr as t,Mf as n,Nf as r,Or as i,Pf as a,em as o,qr as s,w as c}from"./messages-Bp0bCjzp.js";import{n as l}from"./Match-Cm64cgS9.js";import{H as u,L as d,V as f}from"./search-provider-Bl2HDfcG.js";import{t as p}from"./separator-DbmFQXe4.js";import{t as m}from"./createLucideIcon-Br0Bd5k2.js";import{n as h,t as g}from"./main-DnJ8otd-.js";import{t as _}from"./page-header-CDwG3nxs.js";import{t as v}from"./sidebar-nav-DDS5oBdd.js";var y=m(`bell-ring`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M22 8c0-2.3-.8-4.3-2-6`,key:`5bb3ad`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}],[`path`,{d:`M4 2C2.8 3.7 2 5.7 2 8`,key:`tap9e0`}]]),b=m(`globe-lock`,[[`path`,{d:`M15.686 15A14.5 14.5 0 0 1 12 22a14.5 14.5 0 0 1 0-20 10 10 0 1 0 9.542 13`,key:`qkt0x6`}],[`path`,{d:`M2 12h8.5`,key:`ovaggd`}],[`path`,{d:`M20 6V4a2 2 0 1 0-4 0v2`,key:`1of5e8`}],[`rect`,{width:`8`,height:`5`,x:`14`,y:`6`,rx:`1`,key:`1fmf51`}]]),x=m(`scroll-text`,[[`path`,{d:`M15 12h-5`,key:`r7krc0`}],[`path`,{d:`M15 8h-5`,key:`1khuty`}],[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`,key:`zz82l3`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`,key:`1ph1d7`}]]),S=o(),C=[{title:e(),href:`/settings`,icon:(0,S.jsx)(d,{size:18})},{title:a(),href:`/settings/telegram`,icon:(0,S.jsx)(y,{size:18})},{title:i(),href:`/settings/system`,icon:(0,S.jsx)(x,{size:18})},{title:r(),href:`/settings/pay`,icon:(0,S.jsx)(b,{size:18})},{title:n(),href:`/settings/epay`,icon:(0,S.jsx)(u,{size:18})},{title:c(),href:`/settings/okpay`,icon:(0,S.jsx)(f,{size:18})}];function w(){return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(h,{}),(0,S.jsxs)(g,{fixed:!0,children:[(0,S.jsx)(_,{description:s(),title:t()}),(0,S.jsx)(p,{className:`my-4 lg:my-6`}),(0,S.jsxs)(`div`,{className:`flex flex-1 flex-col space-y-2 overflow-hidden lg:flex-row lg:space-x-12 lg:space-y-0`,children:[(0,S.jsx)(`aside`,{className:`top-0 lg:sticky lg:w-1/5`,children:(0,S.jsx)(v,{items:C})}),(0,S.jsx)(`div`,{className:`flex w-full overflow-y-hidden p-1`,children:(0,S.jsx)(l,{})})]})]})]})}var T=w;export{T as component}; \ No newline at end of file +import{Ff as e,If as t,Jr as n,Nf as r,Or as i,Pf as a,qr as o,tm as s,w as c}from"./messages-BOatyqUm.js";import{n as l}from"./Match-DrG03Wse.js";import{H as u,L as d,V as f}from"./search-provider-C-_FQI9C.js";import{t as p}from"./separator-CsUemQNs.js";import{t as m}from"./createLucideIcon-Br0Bd5k2.js";import{n as h,t as g}from"./main-C1R3Hvq1.js";import{t as _}from"./page-header-GTtyZFBB.js";import{t as v}from"./sidebar-nav-LZqaVZGH.js";var y=m(`bell-ring`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M22 8c0-2.3-.8-4.3-2-6`,key:`5bb3ad`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}],[`path`,{d:`M4 2C2.8 3.7 2 5.7 2 8`,key:`tap9e0`}]]),b=m(`globe-lock`,[[`path`,{d:`M15.686 15A14.5 14.5 0 0 1 12 22a14.5 14.5 0 0 1 0-20 10 10 0 1 0 9.542 13`,key:`qkt0x6`}],[`path`,{d:`M2 12h8.5`,key:`ovaggd`}],[`path`,{d:`M20 6V4a2 2 0 1 0-4 0v2`,key:`1of5e8`}],[`rect`,{width:`8`,height:`5`,x:`14`,y:`6`,rx:`1`,key:`1fmf51`}]]),x=m(`scroll-text`,[[`path`,{d:`M15 12h-5`,key:`r7krc0`}],[`path`,{d:`M15 8h-5`,key:`1khuty`}],[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`,key:`zz82l3`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`,key:`1ph1d7`}]]),S=s(),C=[{title:t(),href:`/settings`,icon:(0,S.jsx)(d,{size:18})},{title:e(),href:`/settings/telegram`,icon:(0,S.jsx)(y,{size:18})},{title:i(),href:`/settings/system`,icon:(0,S.jsx)(x,{size:18})},{title:a(),href:`/settings/pay`,icon:(0,S.jsx)(b,{size:18})},{title:r(),href:`/settings/epay`,icon:(0,S.jsx)(u,{size:18})},{title:c(),href:`/settings/okpay`,icon:(0,S.jsx)(f,{size:18})}];function w(){return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(h,{}),(0,S.jsxs)(g,{fixed:!0,children:[(0,S.jsx)(_,{description:o(),title:n()}),(0,S.jsx)(p,{className:`my-4 lg:my-6`}),(0,S.jsxs)(`div`,{className:`flex flex-1 flex-col space-y-2 overflow-hidden lg:flex-row lg:space-x-12 lg:space-y-0`,children:[(0,S.jsx)(`aside`,{className:`top-0 lg:sticky lg:w-1/5`,children:(0,S.jsx)(v,{items:C})}),(0,S.jsx)(`div`,{className:`flex w-full overflow-y-hidden p-1`,children:(0,S.jsx)(l,{})})]})]})]})}var T=w;export{T as component}; \ No newline at end of file diff --git a/src/www/assets/route-B7oa6zSg.js b/src/www/assets/route-CAiA_U_q.js similarity index 99% rename from src/www/assets/route-B7oa6zSg.js rename to src/www/assets/route-CAiA_U_q.js index 71a74ad..2bf3e87 100644 --- a/src/www/assets/route-B7oa6zSg.js +++ b/src/www/assets/route-CAiA_U_q.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{Ct as n,St as r,em as i,ut as a}from"./messages-Bp0bCjzp.js";import{n as o}from"./Match-Cm64cgS9.js";import{i as s}from"./button-BgMnOYKD.js";import{n as c,t as l}from"./theme-switch-B3Qb32n8.js";import{t as u}from"./logo-Ce__4GTc.js";import{n as d,t as f}from"./auth-animation-context-CO6PD8ih.js";var p=e(t());function m(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function h(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var g={autoSleep:120,force3D:`auto`,nullTargetWarn:1,units:{lineHeight:``}},_={duration:.5,overwrite:!1,delay:0},v,y,b,x=1e8,S=1/x,C=Math.PI*2,w=C/4,T=0,E=Math.sqrt,D=Math.cos,O=Math.sin,k=function(e){return typeof e==`string`},A=function(e){return typeof e==`function`},j=function(e){return typeof e==`number`},M=function(e){return e===void 0},N=function(e){return typeof e==`object`},P=function(e){return e!==!1},F=function(){return typeof window<`u`},I=function(e){return A(e)||k(e)},ee=typeof ArrayBuffer==`function`&&ArrayBuffer.isView||function(){},L=Array.isArray,te=/random\([^)]+\)/g,ne=/,\s*/g,re=/(?:-?\.?\d|\.)+/gi,ie=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,ae=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,oe=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,se=/[+-]=-?[.\d]+/,ce=/[^,'"\[\]\s]+/gi,le=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,R,ue,de,fe,pe={},me={},he,ge=function(e){return(me=We(e,pe))&&Y},_e=function(e,t){return console.warn(`Invalid property`,e,`set to`,t,`Missing plugin? gsap.registerPlugin()`)},ve=function(e,t){return!t&&console.warn(e)},ye=function(e,t){return e&&(pe[e]=t)&&me&&(me[e]=t)||pe},be=function(){return 0},xe={suppressEvents:!0,isStart:!0,kill:!1},Se={suppressEvents:!0,kill:!1},Ce={suppressEvents:!0},we={},Te=[],Ee={},De,Oe={},ke={},Ae=30,je=[],Me=``,Ne=function(e){var t=e[0],n,r;if(N(t)||A(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(r=je.length;r--&&!je[r].targetTest(t););n=je[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new _n(e[r],n)))||e.splice(r,1);return e},Pe=function(e){return e._gsap||Ne(Et(e))[0]._gsap},Fe=function(e,t,n){return(n=e[t])&&A(n)?e[t]():M(n)&&e.getAttribute&&e.getAttribute(t)||n},z=function(e,t){return(e=e.split(`,`)).forEach(t)||e},B=function(e){return Math.round(e*1e5)/1e5||0},V=function(e){return Math.round(e*1e7)/1e7||0},Ie=function(e,t){var n=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),n===`+`?e+r:n===`-`?e-r:n===`*`?e*r:e/r},Le=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++ro;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=a,t.parent=t._dp=e,t},Xe=function(e,t,n,r){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var i=t._prev,a=t._next;i?i._next=a:e[n]===t&&(e[n]=a),a?a._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},Ze=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Qe=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},$e=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},et=function(e,t,n,r){return e._startAt&&(y?e._startAt.revert(Se):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},tt=function e(t){return!t||t._ts&&e(t.parent)},nt=function(e){return e._repeat?rt(e._tTime,e=e.duration()+e._rDelay)*e:0},rt=function(e,t){var n=Math.floor(e=V(e/t));return e&&n===e?n-1:n},it=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},at=function(e){return e._end=V(e._start+(e._tDur/Math.abs(e._ts||e._rts||S)||0))},ot=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=V(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),at(e),n._dirty||Qe(n,e)),e},st=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._startS)&&t.render(n,!0)),Qe(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-S}},ct=function(e,t,n,r){return t.parent&&Ze(t),t._start=V((j(n)?n:n||e!==R?vt(e,n,t):e._time)+t._delay),t._end=V(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Ye(e,t,`_first`,`_last`,e._sort?`_start`:0),ft(t)||(e._recent=t),r||st(e,t),e._ts<0&&ot(e,e._tTime),e},lt=function(e,t){return(pe.ScrollTrigger||_e(`scrollTrigger`,t))&&pe.ScrollTrigger.create(t,e)},ut=function(e,t,n,r,i){if(Tn(e,t,i),!e._initted)return 1;if(!n&&e._pt&&!y&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&De!==rn.frame)return Te.push(e),e._lazy=[i,r],1},dt=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},ft=function(e){var t=e.data;return t===`isFromStart`||t===`isStart`},pt=function(e,t,n,r){var i=e.ratio,a=t<0||!t&&(!e._start&&dt(e)&&!(!e._initted&&ft(e))||(e._ts<0||e._dp._ts<0)&&!ft(e))?0:1,o=e._rDelay,s=0,c,l,u;if(o&&e._repeat&&(s=xt(0,e._tDur,t),l=rt(s,o),e._yoyo&&l&1&&(a=1-a),l!==rt(e._tTime,o)&&(i=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==i||y||r||e._zTime===S||!t&&e._zTime){if(!e._initted&&ut(e,t,r,n,s))return;for(u=e._zTime,e._zTime=t||(n?S:0),n||=t&&!u,e.ratio=a,e._from&&(a=1-a),e._time=0,e._tTime=s,c=e._pt;c;)c.r(a,c.d),c=c._next;t<0&&et(e,t,n,!0),e._onUpdate&&!n&&Ut(e,`onUpdate`),s&&e._repeat&&!n&&e.parent&&Ut(e,`onRepeat`),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&Ze(e,1),!n&&!y&&(Ut(e,a?`onComplete`:`onReverseComplete`,!0),e._prom&&e._prom()))}else e._zTime||=t},mt=function(e,t,n){var r;if(n>t)for(r=e._first;r&&r._start<=n;){if(r.data===`isPause`&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if(r.data===`isPause`&&r._start0&&!r&&ot(e,e._tTime=e._tDur*o),e.parent&&at(e),n||Qe(e.parent,e),e},gt=function(e){return e instanceof K?Qe(e):ht(e,e._dur)},_t={_start:0,endTime:be,totalDuration:be},vt=function e(t,n,r){var i=t.labels,a=t._recent||_t,o=t.duration()>=x?a.endTime(!1):t._dur,s,c,l;return k(n)&&(isNaN(n)||n in i)?(c=n.charAt(0),l=n.substr(-1)===`%`,s=n.indexOf(`=`),c===`<`||c===`>`?(s>=0&&(n=n.replace(/=/,``)),(c===`<`?a._start:a.endTime(a._repeat>=0))+(parseFloat(n.substr(1))||0)*(l?(s<0?a:r).totalDuration()/100:1)):s<0?(n in i||(i[n]=o),i[n]):(c=parseFloat(n.charAt(s-1)+n.substr(s+1)),l&&r&&(c=c/100*(L(r)?r[0]:r).totalDuration()),s>1?e(t,n.substr(0,s-1),r)+c:o+c)):n==null?o:+n},yt=function(e,t,n){var r=j(t[1]),i=(r?2:1)+(e<2?0:1),a=t[i],o,s;if(r&&(a.duration=t[1]),a.parent=n,e){for(o=a,s=n;s&&!(`immediateRender`in o);)o=s.vars.defaults||{},s=P(s.vars.inherit)&&s.parent;a.immediateRender=P(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[i-1]}return new q(t[0],a,t[i+1])},bt=function(e,t){return e||e===0?t(e):t},xt=function(e,t,n){return nt?t:n},U=function(e,t){return!k(e)||!(t=le.exec(e))?``:t[1]},St=function(e,t,n){return bt(n,function(n){return xt(e,t,n)})},Ct=[].slice,wt=function(e,t){return e&&N(e)&&`length`in e&&(!t&&!e.length||e.length-1 in e&&N(e[0]))&&!e.nodeType&&e!==ue},Tt=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(e){var r;return k(e)&&!t||wt(e,1)?(r=n).push.apply(r,Et(e)):n.push(e)})||n},Et=function(e,t,n){return b&&!t&&b.selector?b.selector(e):k(e)&&!n&&(de||!an())?Ct.call((t||fe).querySelectorAll(e),0):L(e)?Tt(e,n):wt(e)?Ct.call(e,0):e?[e]:[]},Dt=function(e){return e=Et(e)[0]||ve(`Invalid scope`)||{},function(t){var n=e.current||e.nativeElement||e;return Et(t,n.querySelectorAll?n:n===e?ve(`Invalid scope`)||fe.createElement(`div`):e)}},Ot=function(e){return e.sort(function(){return .5-Math.random()})},kt=function(e){if(A(e))return e;var t=N(e)?e:{each:e},n=fn(t.ease),r=t.from||0,i=parseFloat(t.base)||0,a={},o=r>0&&r<1,s=isNaN(r)||o,c=t.axis,l=r,u=r;return k(r)?l=u={center:.5,edges:.5,end:1}[r]||0:!o&&s&&(l=r[0],u=r[1]),function(e,o,d){var f=(d||t).length,p=a[f],m,h,g,_,v,y,b,S,C;if(!p){if(C=t.grid===`auto`?0:(t.grid||[1,x])[1],!C){for(b=-x;b<(b=d[C++].getBoundingClientRect().left)&&Cb&&(b=v),vf?f-1:c?c===`y`?f/C:C:Math.max(C,f/C))||0)*(r===`edges`?-1:1),p.b=f<0?i-f:i,p.u=U(t.amount||t.each)||0,n=n&&f<0?dn(n):n}return f=(p[e]-p.min)/p.max||0,V(p.b+(n?n(f):f)*p.v)+p.u}},At=function(e){var t=10**((e+``).split(`.`)[1]||``).length;return function(n){var r=V(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(j(n)?0:U(n))}},jt=function(e,t){var n=L(e),r,i;return!n&&N(e)&&(r=n=e.radius||x,e.values?(e=Et(e.values),(i=!j(e[0]))&&(r*=r)):e=At(e.increment)),bt(t,n?A(e)?function(t){return i=e(t),Math.abs(i-t)<=r?i:t}:function(t){for(var n=parseFloat(i?t.x:t),a=parseFloat(i?t.y:0),o=x,s=0,c=e.length,l,u;c--;)i?(l=e[c].x-n,u=e[c].y-a,l=l*l+u*u):l=Math.abs(e[c]-n),li?a-e:e)})},zt=function(e){return e.replace(te,function(e){var t=e.indexOf(`[`)+1,n=e.substring(t||7,t?e.indexOf(`]`):e.length-1).split(ne);return Mt(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},Bt=function(e,t,n,r,i){var a=t-e,o=r-n;return bt(i,function(t){return n+((t-e)/a*o||0)})},Vt=function e(t,n,r,i){var a=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!a){var o=k(t),s={},c,l,u,d,f;if(r===!0&&(i=1)&&(r=null),o)t={p:t},n={p:n};else if(L(t)&&!L(n)){for(u=[],d=t.length,f=d-2,l=1;l(o=Math.abs(o))&&(s=a,i=o);return s},Ut=function(e,t,n){var r=e.vars,i=r[t],a=b,o=e._ctx,s,c,l;if(i)return s=r[t+`Params`],c=r.callbackScope||e,n&&Te.length&&Re(),o&&(b=o),l=s?i.apply(c,s):i.call(c),b=a,l},Wt=function(e){return Ze(e),e.scrollTrigger&&e.scrollTrigger.kill(!!y),e.progress()<1&&Ut(e,`onInterrupt`),e},Gt,Kt=[],qt=function(e){if(e)if(e=!e.name&&e.default||e,F()||e.headless){var t=e.name,n=A(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:be,render:Bn,add:bn,kill:Hn,modifier:Vn,rawVars:0},a={targetTest:0,get:0,getSetter:In,aliases:{},register:0};if(an(),e!==r){if(Oe[t])return;H(r,H(Ke(e,i),a)),We(r.prototype,We(i,Ke(e,a))),Oe[r.prop=t]=r,e.targetTest&&(je.push(r),we[t]=1),t=(t===`css`?`CSS`:t.charAt(0).toUpperCase()+t.substr(1))+`Plugin`}ye(t,r),e.register&&e.register(Y,r,J)}else Kt.push(e)},W=255,Jt={aqua:[0,W,W],lime:[0,W,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,W],navy:[0,0,128],white:[W,W,W],olive:[128,128,0],yellow:[W,W,0],orange:[W,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[W,0,0],pink:[W,192,203],cyan:[0,W,W],transparent:[W,W,W,0]},Yt=function(e,t,n){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(n-t)*e*6:e<.5?n:e*3<2?t+(n-t)*(2/3-e)*6:t)*W+.5|0},Xt=function(e,t,n){var r=e?j(e)?[e>>16,e>>8&W,e&W]:0:Jt.black,i,a,o,s,c,l,u,d,f,p;if(!r){if(e.substr(-1)===`,`&&(e=e.substr(0,e.length-1)),Jt[e])r=Jt[e];else if(e.charAt(0)===`#`){if(e.length<6&&(i=e.charAt(1),a=e.charAt(2),o=e.charAt(3),e=`#`+i+i+a+a+o+o+(e.length===5?e.charAt(4)+e.charAt(4):``)),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&W,r&W,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&W,e&W]}else if(e.substr(0,3)===`hsl`){if(r=p=e.match(re),!t)s=r[0]%360/360,c=r[1]/100,l=r[2]/100,a=l<=.5?l*(c+1):l+c-l*c,i=l*2-a,r.length>3&&(r[3]*=1),r[0]=Yt(s+1/3,i,a),r[1]=Yt(s,i,a),r[2]=Yt(s-1/3,i,a);else if(~e.indexOf(`=`))return r=e.match(ie),n&&r.length<4&&(r[3]=1),r}else r=e.match(re)||Jt.transparent;r=r.map(Number)}return t&&!p&&(i=r[0]/W,a=r[1]/W,o=r[2]/W,u=Math.max(i,a,o),d=Math.min(i,a,o),l=(u+d)/2,u===d?s=c=0:(f=u-d,c=l>.5?f/(2-u-d):f/(u+d),s=u===i?(a-o)/f+(at||h<0)&&(r+=h-n),i+=h,y=i-r,_=y-o,(_>0||g)&&(b=++d.frame,f=y-d.time*1e3,d.time=y/=1e3,o+=_+(_>=a?4:a-_),v=1),g||(c=l(u)),v)for(p=0;p=t&&p--},_listeners:s},d}(),an=function(){return!nn&&rn.wake()},G={},on=/^[\d.\-M][\d.\-,\s]/,sn=/["']/g,cn=function(e){for(var t={},n=e.substr(1,e.length-3).split(`:`),r=n[0],i=1,a=n.length,o,s,c;i1&&n.config?n.config.apply(null,~e.indexOf(`{`)?[cn(t[1])]:ln(e).split(`,`).map(Ve)):G._CE&&on.test(e)?G._CE(``,e):n},dn=function(e){return function(t){return 1-e(1-t)}},fn=function(e,t){return e&&(A(e)?e:G[e]||un(e))||t},pn=function(e,t,n,r){n===void 0&&(n=function(e){return 1-t(1-e)}),r===void 0&&(r=function(e){return e<.5?t(e*2)/2:1-t((1-e)*2)/2});var i={easeIn:t,easeOut:n,easeInOut:r},a;return z(e,function(e){for(var t in G[e]=pe[e]=i,G[a=e.toLowerCase()]=n,i)G[a+(t===`easeIn`?`.in`:t===`easeOut`?`.out`:`.inOut`)]=G[e+`.`+t]=i[t]}),i},mn=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},hn=function e(t,n,r){var i=n>=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),o=a/C*(Math.asin(1/i)||0),s=function(e){return e===1?1:i*2**(-10*e)*O((e-o)*a)+1},c=t===`out`?s:t===`in`?function(e){return 1-s(1-e)}:mn(s);return a=C/a,c.config=function(n,r){return e(t,n,r)},c},gn=function e(t,n){n===void 0&&(n=1.70158);var r=function(e){return e?--e*e*((n+1)*e+n)+1:0},i=t===`out`?r:t===`in`?function(e){return 1-r(1-e)}:mn(r);return i.config=function(n){return e(t,n)},i};z(`Linear,Quad,Cubic,Quart,Quint,Strong`,function(e,t){var n=t<5?t+1:t;pn(e+`,Power`+(n-1),t?function(e){return e**+n}:function(e){return e},function(e){return 1-(1-e)**n},function(e){return e<.5?(e*2)**n/2:1-((1-e)*2)**n/2})}),G.Linear.easeNone=G.none=G.Linear.easeIn,pn(`Elastic`,hn(`in`),hn(`out`),hn()),(function(e,t){var n=1/t,r=2*n,i=2.5*n,a=function(a){return a0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,ht(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(an(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(ot(this,e),!n._dp||n.parent||st(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e0||!this._tDur&&!e)&&ct(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===S||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),Be(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+nt(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-e:e)+nt(this),t):this.duration()?Math.min(1,this._time/this._dur):+(this.rawTime()>0)},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?rt(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return this._rts===-S?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?it(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-S?0:this._rts,this.totalTime(xt(-Math.abs(this._delay),this.totalDuration(),n),t!==!1),at(this),$e(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(an(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==S&&(this._tTime-=S)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=V(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&ct(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(P(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?it(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){e===void 0&&(e=Ce);var t=y;return y=e,ze(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!==`nested`&&e.kill!==!1&&this.kill(),y=t,this},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,gt(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,gt(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(vt(this,e),P(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,P(t)),this._dur||(this._zTime=-S),this},t.play=function(e,t){return e!=null&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return e!=null&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return e!=null&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-S:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-S,this},t.isActive=function(){var e=this.parent||this._dp,t=this._start,n;return!!(!e||this._ts&&this._initted&&e.isActive()&&(n=e.rawTime(!0))>=t&&n1?(t?(r[e]=t,n&&(r[e+`Params`]=n),e===`onUpdate`&&(this._onUpdate=t)):delete r[e],this):r[e]},t.then=function(e){var t=this,n=t._prom;return new Promise(function(r){var i=A(e)?e:He,a=function(){var e=t.then;t.then=null,n&&n(),A(i)&&(i=i(t))&&(i.then||i===t)&&(t.then=e),r(i),t.then=e};t._initted&&t.totalProgress()===1&&t._ts>=0||!t._tTime&&t._ts<0?a():t._prom=a})},t.kill=function(){Wt(this)},e}();H(vn.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-S,_prom:0,_ps:!1,_rts:1});var K=function(e){h(t,e);function t(t,n){var r;return t===void 0&&(t={}),r=e.call(this,t)||this,r.labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=P(t.sortChildren),R&&ct(t.parent||R,m(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&<(m(r),t.scrollTrigger),r}var n=t.prototype;return n.to=function(e,t,n){return yt(0,arguments,this),this},n.from=function(e,t,n){return yt(1,arguments,this),this},n.fromTo=function(e,t,n,r){return yt(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,qe(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new q(e,t,vt(this,n),1),this},n.call=function(e,t,n){return ct(this,q.delayedCall(0,e,t),n)},n.staggerTo=function(e,t,n,r,i,a,o){return n.duration=t,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=o,n.parent=this,new q(e,n,vt(this,i)),this},n.staggerFrom=function(e,t,n,r,i,a,o){return n.runBackwards=1,qe(n).immediateRender=P(n.immediateRender),this.staggerTo(e,t,n,r,i,a,o)},n.staggerFromTo=function(e,t,n,r,i,a,o,s){return r.startAt=n,qe(r).immediateRender=P(r.immediateRender),this.staggerTo(e,t,r,i,a,o,s)},n.render=function(e,t,n){var r=this._time,i=this._dirty?this.totalDuration():this._tDur,a=this._dur,o=e<=0?0:V(e),s=this._zTime<0!=e<0&&(this._initted||!a),c,l,u,d,f,p,m,h,g,_,v,b;if(this!==R&&o>i&&e>=0&&(o=i),o!==this._tTime||n||s){if(r!==this._time&&a&&(o+=this._time-r,e+=this._time-r),c=o,g=this._start,h=this._ts,p=!h,s&&(a||(r=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(v=this._yoyo,f=a+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(f*100+e,t,n);if(c=V(o%f),o===i?(d=this._repeat,c=a):(_=V(o/f),d=~~_,d&&d===_&&(c=a,d--),c>a&&(c=a)),_=rt(this._tTime,f),!r&&this._tTime&&_!==d&&this._tTime-_*f-this._dur<=0&&(_=d),v&&d&1&&(c=a-c,b=1),d!==_&&!this._lock){var x=v&&_&1,C=x===(v&&d&1);if(d<_&&(x=!x),r=x?0:o%a?a:o,this._lock=1,this.render(r||(b?0:V(d*f)),t,!a)._lock=0,this._tTime=o,!t&&this.parent&&Ut(this,`onRepeat`),this.vars.repeatRefresh&&!b&&(this.invalidate()._lock=1,_=d),r&&r!==this._time||p!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act||(a=this._dur,i=this._tDur,C&&(this._lock=2,r=x?a:-1e-4,this.render(r,!0),this.vars.repeatRefresh&&!b&&this.invalidate()),this._lock=0,!this._ts&&!p))return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(m=mt(this,V(r),V(c)),m&&(o-=c-(c=m._start))),this._tTime=o,this._time=c,this._act=!!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,r=0),!r&&o&&a&&!t&&!_&&(Ut(this,`onStart`),this._tTime!==o))return this;if(c>=r&&e>=0)for(l=this._first;l;){if(u=l._next,(l._act||c>=l._start)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(c-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(c-l._start)*l._ts,t,n),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=-S);break}}l=u}else{l=this._last;for(var w=e<0?e:c;l;){if(u=l._prev,(l._act||w<=l._end)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(w-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(w-l._start)*l._ts,t,n||y&&ze(l)),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=w?-S:S);break}}l=u}}if(m&&!t&&(this.pause(),m.render(c>=r?0:-S)._zTime=c>=r?1:-1,this._ts))return this._start=g,at(this),this.render(e,t,n);this._onUpdate&&!t&&Ut(this,`onUpdate`,!0),(o===i&&this._tTime>=this.totalDuration()||!o&&r)&&(g===this._start||Math.abs(h)!==Math.abs(this._ts))&&(this._lock||((e||!a)&&(o===i&&this._ts>0||!o&&this._ts<0)&&Ze(this,1),!t&&!(e<0&&!r)&&(o||r||!i)&&(Ut(this,o===i&&e>=0?`onComplete`:`onReverseComplete`,!0),this._prom&&!(o0)&&this._prom())))}return this},n.add=function(e,t){var n=this;if(j(t)||(t=vt(this,t,e)),!(e instanceof vn)){if(L(e))return e.forEach(function(e){return n.add(e,t)}),this;if(k(e))return this.addLabel(e,t);if(A(e))e=q.delayedCall(0,e);else return this}return this===e?this:ct(this,e,t)},n.getChildren=function(e,t,n,r){e===void 0&&(e=!0),t===void 0&&(t=!0),n===void 0&&(n=!0),r===void 0&&(r=-x);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof q?t&&i.push(a):(n&&i.push(a),e&&i.push.apply(i,a.getChildren(!0,t,n)))),a=a._next;return i},n.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},n.remove=function(e){return k(e)?this.removeLabel(e):A(e)?this.killTweensOf(e):(e.parent===this&&Xe(this,e),e===this._recent&&(this._recent=this._last),Qe(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=V(rn.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,n),this._forcing=0,this):this._tTime},n.addLabel=function(e,t){return this.labels[e]=vt(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=q.delayedCall(0,t||be,n);return r.data=`isPause`,this._hasPause=1,ct(this,r,vt(this,e))},n.removePause=function(e){var t=this._first;for(e=vt(this,e);t;)t._start===e&&t.data===`isPause`&&Ze(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)Cn!==r[i]&&r[i].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n=[],r=Et(e),i=this._first,a=j(t),o;i;)i instanceof q?Le(i._targets,r)&&(a?(!Cn||i._initted&&i._ts)&&i.globalTime(0)<=t&&i.globalTime(i.totalDuration())>t:!t||i.isActive())&&n.push(i):(o=i.getTweensOf(r,t)).length&&n.push.apply(n,o),i=i._next;return n},n.tweenTo=function(e,t){t||={};var n=this,r=vt(n,e),i=t,a=i.startAt,o=i.onStart,s=i.onStartParams,c=i.immediateRender,l,u=q.to(n,H({ease:t.ease||`none`,lazy:!1,immediateRender:!1,time:r,overwrite:`auto`,duration:t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale())||S,onStart:function(){if(n.pause(),!l){var e=t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale());u._dur!==e&&ht(u,e,0,1).render(u._time,!0,!0),l=1}o&&o.apply(u,s||[])}},t));return c?u.render(0):u},n.tweenFromTo=function(e,t,n){return this.tweenTo(t,H({startAt:{time:vt(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return e===void 0&&(e=this._time),Ht(this,vt(this,e))},n.previousLabel=function(e){return e===void 0&&(e=this._time),Ht(this,vt(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+S)},n.shiftChildren=function(e,t,n){n===void 0&&(n=0);var r=this._first,i=this.labels,a;for(e=V(e);r;)r._start>=n&&(r._start+=e,r._end+=e),r=r._next;if(t)for(a in i)i[a]>=n&&(i[a]+=e);return Qe(this)},n.invalidate=function(t){var n=this._first;for(this._lock=0;n;)n.invalidate(t),n=n._next;return e.prototype.invalidate.call(this,t)},n.clear=function(e){e===void 0&&(e=!0);for(var t=this._first,n;t;)n=t._next,this.remove(t),t=n;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),Qe(this)},n.totalDuration=function(e){var t=0,n=this,r=n._last,i=x,a,o,s;if(arguments.length)return n.timeScale((n._repeat<0?n.duration():n.totalDuration())/(n.reversed()?-e:e));if(n._dirty){for(s=n.parent;r;)a=r._prev,r._dirty&&r.totalDuration(),o=r._start,o>i&&n._sort&&r._ts&&!n._lock?(n._lock=1,ct(n,r,o-r._delay,1)._lock=0):i=o,o<0&&r._ts&&(t-=o,(!s&&!n._dp||s&&s.smoothChildTiming)&&(n._start+=V(o/n._ts),n._time-=o,n._tTime-=o),n.shiftChildren(-o,!1,-1/0),i=0),r._end>t&&r._ts&&(t=r._end),r=a;ht(n,n===R&&n._time>t?n._time:t,1,1),n._dirty=0}return n._tDur},t.updateRoot=function(e){if(R._ts&&(Be(R,it(e,R)),De=rn.frame),rn.frame>=Ae){Ae+=g.autoSleep||120;var t=R._first;if((!t||!t._ts)&&g.autoSleep&&rn._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||rn.sleep()}}},t}(vn);H(K.prototype,{_lock:0,_hasPause:0,_forcing:0});var yn=function(e,t,n,r,i,a,o){var s=new J(this._pt,e,t,0,1,zn,null,i),c=0,l=0,u,d,f,p,m,h,g,_;for(s.b=n,s.e=r,n+=``,r+=``,(g=~r.indexOf(`random(`))&&(r=zt(r)),a&&(_=[n,r],a(_,e,t),n=_[0],r=_[1]),d=n.match(oe)||[];u=oe.exec(r);)p=u[0],m=r.substring(c,u.index),f?f=(f+1)%5:m.substr(-5)===`rgba(`&&(f=1),p!==d[l++]&&(h=parseFloat(d[l-1])||0,s._pt={_next:s._pt,p:m||l===1?m:`,`,s:h,c:p.charAt(1)===`=`?Ie(h,p)-h:parseFloat(p)-h,m:f&&f<4?Math.round:0},c=oe.lastIndex);return s.c=c`)}),b.duration();else{for(T in C={},f)T===`ease`||T===`easeEach`||On(T,f[T],C,f.easeEach);for(T in C)for(M=C[T].sort(function(e,t){return e.t-t.t}),A=0,x=0;xi-S&&!o?i:ea&&(c=a)),p=this._yoyo&&u&1,p&&(c=a-c),f=rt(this._tTime,d),c===r&&!n&&this._initted&&u===f)return this._tTime=s,this;u!==f&&this.vars.repeatRefresh&&!p&&!this._lock&&c!==d&&this._initted&&(this._lock=n=1,this.render(V(d*u),!0).invalidate()._lock=0)}if(!this._initted){if(ut(this,o?e:c,n,t,s))return this._tTime=0,this;if(r!==this._time&&!(n&&this.vars.repeatRefresh&&u!==f))return this;if(a!==this._dur)return this.render(e,t,n)}if(this._rEase){var g=c0||!s&&this._ts<0)&&Ze(this,1),!t&&!(o&&!r)&&(s||r||p)&&(Ut(this,s===i?`onComplete`:`onReverseComplete`,!0),this._prom&&!(s0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},n.resetTo=function(e,t,n,r,i){nn||rn.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts),o;return this._initted||Tn(this,a),o=this._ease(a/this._dur),En(this,e,t,n,r,o,a,i)?this.resetTo(e,t,n,r,1):(ot(this,0),this.parent||Ye(this._dp,this,`_first`,`_last`,this._dp._sort?`_start`:0),this.render(0))},n.kill=function(e,t){if(t===void 0&&(t=`all`),!e&&(!t||t===`all`))return this._lazy=this._pt=0,this.parent?Wt(this):this.scrollTrigger&&this.scrollTrigger.kill(!!y),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,Cn&&Cn.vars.overwrite!==!0)._first||Wt(this),this.parent&&n!==this.timeline.totalDuration()&&ht(this,this._dur*this.timeline._tDur/n,0,1),this}var r=this._targets,i=e?Et(e):r,a=this._ptLookup,o=this._pt,s,c,l,u,d,f,p;if((!t||t===`all`)&&Je(r,i))return t===`all`&&(this._pt=0),Wt(this);for(s=this._op=this._op||[],t!==`all`&&(k(t)&&(d={},z(t,function(e){return d[e]=1}),t=d),t=Dn(r,t)),p=r.length;p--;)if(~i.indexOf(r[p]))for(d in c=a[p],t===`all`?(s[p]=t,u=c,l={}):(l=s[p]=s[p]||{},u=t),u)f=c&&c[d],f&&((!(`kill`in f.d)||f.d.kill(d)===!0)&&Xe(this,f,`_pt`),delete c[d]),l!==`all`&&(l[d]=1);return this._initted&&!this._pt&&o&&Wt(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return yt(1,arguments)},t.delayedCall=function(e,n,r,i){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},t.fromTo=function(e,t,n){return yt(2,arguments)},t.set=function(e,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(e,n)},t.killTweensOf=function(e,t,n){return R.killTweensOf(e,t,n)},t}(vn);H(q.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),z(`staggerTo,staggerFrom,staggerFromTo`,function(e){q[e]=function(){var t=new K,n=Ct.call(arguments,0);return n.splice(e===`staggerFromTo`?5:4,0,0),t[e].apply(t,n)}});var Mn=function(e,t,n){return e[t]=n},Nn=function(e,t,n){return e[t](n)},Pn=function(e,t,n,r){return e[t](r.fp,n)},Fn=function(e,t,n){return e.setAttribute(t,n)},In=function(e,t){return A(e[t])?Nn:M(e[t])&&e.setAttribute?Fn:Mn},Ln=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},Rn=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},zn=function(e,t){var n=t._pt,r=``;if(!e&&t.b)r=t.b;else if(e===1&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round((n.s+n.c*e)*1e4)/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},Bn=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},Vn=function(e,t,n,r){for(var i=this._pt,a;i;)a=i._next,i.p===r&&i.modifier(e,t,n),i=a},Hn=function(e){for(var t=this._pt,n,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?Xe(this,t,`_pt`):t.dep||(n=1),t=r;return!n},Un=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},Wn=function(e){for(var t=e._pt,n,r,i,a;t;){for(n=t._next,r=i;r&&r.pr>t.pr;)r=r._next;(t._prev=r?r._prev:a)?t._prev._next=t:i=t,(t._next=r)?r._prev=t:a=t,t=n}e._pt=i},J=function(){function e(e,t,n,r,i,a,o,s,c){this.t=t,this.s=r,this.c=i,this.p=n,this.r=a||Ln,this.d=o||this,this.set=s||Mn,this.pr=c||0,this._next=e,e&&(e._prev=this)}var t=e.prototype;return t.modifier=function(e,t,n){this.mSet=this.mSet||this.set,this.set=Un,this.m=e,this.mt=n,this.tween=t},e}();z(Me+`parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse`,function(e){return we[e]=1}),pe.TweenMax=pe.TweenLite=q,pe.TimelineLite=pe.TimelineMax=K,R=new K({sortChildren:!1,defaults:_,autoRemoveChildren:!0,id:`root`,smoothChildTiming:!0}),g.stringFilter=tn;var Gn=[],Kn={},qn=[],Jn=0,Yn=0,Xn=function(e){return(Kn[e]||qn).map(function(e){return e()})},Zn=function(){var e=Date.now(),t=[];e-Jn>2&&(Xn(`matchMediaInit`),Gn.forEach(function(e){var n=e.queries,r=e.conditions,i,a,o,s;for(a in n)i=ue.matchMedia(n[a]).matches,i&&(o=1),i!==r[a]&&(r[a]=i,s=1);s&&(e.revert(),o&&t.push(e))}),Xn(`matchMediaRevert`),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),Jn=e,Xn(`matchMedia`))},Qn=function(){function e(e,t){this.selector=t&&Dt(t),this.data=[],this._r=[],this.isReverted=!1,this.id=Yn++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){A(e)&&(n=t,t=e,e=A);var r=this,i=function(){var e=b,i=r.selector,a;return e&&e!==r&&e.data.push(r),n&&(r.selector=Dt(n)),b=r,a=t.apply(r,arguments),A(a)&&r._r.push(a),b=e,r.selector=i,r.isReverted=!1,a};return r.last=i,e===A?i(r,function(e){return r.add(null,e)}):e?r[e]=i:i},t.ignore=function(e){var t=b;b=null,e(this),b=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof q&&!(n.parent&&n.parent.data===`nested`)&&t.push(n)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var n=this;if(e?(function(){for(var t=n.getTweens(),r=n.data.length,i;r--;)i=n.data[r],i.data===`isFlip`&&(i.revert(),i.getChildren(!0,!0,!1).forEach(function(e){return t.splice(t.indexOf(e),1)}));for(t.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),r=n.data.length;r--;)i=n.data[r],i instanceof K?i.data!==`nested`&&(i.scrollTrigger&&i.scrollTrigger.revert(),i.kill()):!(i instanceof q)&&i.revert&&i.revert(e);n._r.forEach(function(t){return t(e,n)}),n.isReverted=!0})():this.data.forEach(function(e){return e.kill&&e.kill()}),this.clear(),t)for(var r=Gn.length;r--;)Gn[r].id===this.id&&Gn.splice(r,1)},t.revert=function(e){this.kill(e||{})},e}(),$n=function(){function e(e){this.contexts=[],this.scope=e,b&&b.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){N(e)||(e={matches:e});var r=new Qn(0,n||this.scope),i=r.conditions={},a,o,s;for(o in b&&!r.selector&&(r.selector=b.selector),this.contexts.push(r),t=r.add(`onMatch`,t),r.queries=e,e)o===`all`?s=1:(a=ue.matchMedia(e[o]),a&&(Gn.indexOf(r)<0&&Gn.push(r),(i[o]=a.matches)&&(s=1),a.addListener?a.addListener(Zn):a.addEventListener(`change`,Zn)));return s&&t(r,function(e){return r.add(null,e)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),er={registerPlugin:function(){[...arguments].forEach(function(e){return qt(e)})},timeline:function(e){return new K(e)},getTweensOf:function(e,t){return R.getTweensOf(e,t)},getProperty:function(e,t,n,r){k(e)&&(e=Et(e)[0]);var i=Pe(e||{}).get,a=n?He:Ve;return n===`native`&&(n=``),e&&(t?a((Oe[t]&&Oe[t].get||i)(e,t,n,r)):function(t,n,r){return a((Oe[t]&&Oe[t].get||i)(e,t,n,r))})},quickSetter:function(e,t,n){if(e=Et(e),e.length>1){var r=e.map(function(e){return Y.quickSetter(e,t,n)}),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var a=Oe[t],o=Pe(e),s=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(t){var r=new a;Gt._pt=0,r.init(e,n?t+n:t,Gt,0,[e]),r.render(1,r),Gt._pt&&Bn(1,Gt)}:o.set(e,s);return a?c:function(t){return c(e,s,n?t+n:t,o,1)}},quickTo:function(e,t,n){var r,i=Y.to(e,H((r={},r[t]=`+=0.1`,r.paused=!0,r.stagger=0,r),n||{})),a=function(e,n,r){return i.resetTo(t,e,n,r)};return a.tween=i,a},isTweening:function(e){return R.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=fn(e.ease,_.ease)),Ge(_,e||{})},config:function(e){return Ge(g,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.plugins,i=e.defaults,a=e.extendTimeline;(r||``).split(`,`).forEach(function(e){return e&&!Oe[e]&&!pe[e]&&ve(t+` effect requires `+e+` plugin.`)}),ke[t]=function(e,t,r){return n(Et(e),H(t||{},i),r)},a&&(K.prototype[t]=function(e,n,r){return this.add(ke[t](e,N(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){G[e]=fn(t)},parseEase:function(e,t){return arguments.length?fn(e,t):G},getById:function(e){return R.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new K(e),r,i;for(n.smoothChildTiming=P(e.smoothChildTiming),R.remove(n),n._dp=0,n._time=n._tTime=R._time,r=R._first;r;)i=r._next,(t||!(!r._dur&&r instanceof q&&r.vars.onComplete===r._targets[0]))&&ct(n,r,r._start-r._delay),r=i;return ct(R,n,0),n},context:function(e,t){return e?new Qn(e,t):b},matchMedia:function(e){return new $n(e)},matchMediaRefresh:function(){return Gn.forEach(function(e){var t=e.conditions,n,r;for(r in t)t[r]&&(t[r]=!1,n=1);n&&e.revert()})||Zn()},addEventListener:function(e,t){var n=Kn[e]||(Kn[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=Kn[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:Lt,wrapYoyo:Rt,distribute:kt,random:Mt,snap:jt,normalize:Ft,getUnit:U,clamp:St,splitColor:Xt,toArray:Et,selector:Dt,mapRange:Bt,pipe:Nt,unitize:Pt,interpolate:Vt,shuffle:Ot},install:ge,effects:ke,ticker:rn,updateRoot:K.updateRoot,plugins:Oe,globalTimeline:R,core:{PropTween:J,globals:ye,Tween:q,Timeline:K,Animation:vn,getCache:Pe,_removeLinkedListItem:Xe,reverting:function(){return y},context:function(e){return e&&b&&(b.data.push(e),e._ctx=b),b},suppressOverwrites:function(e){return v=e}}};z(`to,from,fromTo,delayedCall,set,killTweensOf`,function(e){return er[e]=q[e]}),rn.add(K.updateRoot),Gt=er.to({},{duration:0});var tr=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},nr=function(e,t){var n=e._targets,r,i,a;for(r in t)for(i=n.length;i--;)a=e._ptLookup[i][r],(a&&=a.d)&&(a._pt&&(a=tr(a,r)),a&&a.modifier&&a.modifier(t[r],e,n[i],r))},rr=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,i;if(k(n)&&(r={},z(n,function(e){return r[e]=1}),n=r),t){for(i in r={},n)r[i]=t(n[i]);n=r}nr(e,n)}}}},Y=er.registerPlugin({name:`attr`,init:function(e,t,n,r,i){var a,o,s;for(a in this.tween=n,t)s=e.getAttribute(a)||``,o=this.add(e,`setAttribute`,(s||0)+``,t[a],r,i,0,0,a),o.op=a,o.b=s,this._props.push(a)},render:function(e,t){for(var n=t._pt;n;)y?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:`endArray`,headless:1,init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},rr(`roundProps`,At),rr(`modifiers`),rr(`snap`,jt))||er;q.version=K.version=Y.version=`3.15.0`,he=1,F()&&an(),G.Power0,G.Power1,G.Power2,G.Power3,G.Power4,G.Linear,G.Quad,G.Cubic,G.Quart,G.Quint,G.Strong,G.Elastic,G.Back,G.SteppedEase,G.Bounce,G.Sine,G.Expo,G.Circ;var ir,ar,or,sr,cr,lr,ur,dr=function(){return typeof window<`u`},fr={},pr=180/Math.PI,mr=Math.PI/180,hr=Math.atan2,gr=1e8,_r=/([A-Z])/g,vr=/(left|right|width|margin|padding|x)/i,yr=/[\s,\(]\S/,br={autoAlpha:`opacity,visibility`,scale:`scaleX,scaleY`,alpha:`opacity`},xr=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Sr=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Cr=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},wr=function(e,t){return t.set(t.t,t.p,e===1?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},Tr=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},Er=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},Dr=function(e,t){return t.set(t.t,t.p,e===1?t.e:t.b,t)},Or=function(e,t,n){return e.style[t]=n},kr=function(e,t,n){return e.style.setProperty(t,n)},Ar=function(e,t,n){return e._gsap[t]=n},jr=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},Mr=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},Nr=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},X=`transform`,Z=X+`Origin`,Pr=function e(t,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(t in fr&&a){if(this.tfm=this.tfm||{},t!==`transform`)t=br[t]||t,~t.indexOf(`,`)?t.split(`,`).forEach(function(e){return r.tfm[e]=$r(i,e)}):this.tfm[t]=o.x?o[t]:$r(i,t),t===Z&&(this.tfm.zOrigin=o.zOrigin);else return br.transform.split(`,`).forEach(function(t){return e.call(r,t,n)});if(this.props.indexOf(X)>=0)return;o.svg&&(this.svgo=i.getAttribute(`data-svg-origin`),this.props.push(Z,n,``)),t=X}(a||n)&&this.props.push(t,n,a[t])},Fr=function(e){e.translate&&(e.removeProperty(`translate`),e.removeProperty(`scale`),e.removeProperty(`rotate`))},Ir=function(){var e=this.props,t=this.target,n=t.style,r=t._gsap,i,a;for(i=0;i=0?Vr[i]:``)+e},Ur=function(){dr()&&window.document&&(ir=window,ar=ir.document,or=ar.documentElement,cr=zr(`div`)||{style:{}},zr(`div`),X=Hr(X),Z=X+`Origin`,cr.style.cssText=`border-width:0;line-height:0;position:absolute;padding:0`,Rr=!!Hr(`perspective`),ur=Y.core.reverting,sr=1)},Wr=function(e){var t=e.ownerSVGElement,n=zr(`svg`,t&&t.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`),r=e.cloneNode(!0),i;r.style.display=`block`,n.appendChild(r),or.appendChild(n);try{i=r.getBBox()}catch{}return n.removeChild(r),or.removeChild(n),i},Gr=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},Kr=function(e){var t,n;try{t=e.getBBox()}catch{t=Wr(e),n=1}return t&&(t.width||t.height)||n||(t=Wr(e)),t&&!t.width&&!t.x&&!t.y?{x:+Gr(e,[`x`,`cx`,`x1`])||0,y:+Gr(e,[`y`,`cy`,`y1`])||0,width:0,height:0}:t},qr=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Kr(e))},Jr=function(e,t){if(t){var n=e.style,r;t in fr&&t!==Z&&(t=X),n.removeProperty?(r=t.substr(0,2),(r===`ms`||t.substr(0,6)===`webkit`)&&(t=`-`+t),n.removeProperty(r===`--`?t:t.replace(_r,`-$1`).toLowerCase())):n.removeAttribute(t)}},Yr=function(e,t,n,r,i,a){var o=new J(e._pt,t,n,0,1,a?Dr:Er);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},Xr={deg:1,rad:1,turn:1},Zr={grid:1,flex:1},Qr=function e(t,n,r,i){var a=parseFloat(r)||0,o=(r+``).trim().substr((a+``).length)||`px`,s=cr.style,c=vr.test(n),l=t.tagName.toLowerCase()===`svg`,u=(l?`client`:`offset`)+(c?`Width`:`Height`),d=100,f=i===`px`,p=i===`%`,m,h,g,_;if(i===o||!a||Xr[i]||Xr[o])return a;if(o!==`px`&&!f&&(a=e(t,n,r,`px`)),_=t.getCTM&&qr(t),(p||o===`%`)&&(fr[n]||~n.indexOf(`adius`)))return m=_?t.getBBox()[c?`width`:`height`]:t[u],B(p?a/m*d:a/100*m);if(s[c?`width`:`height`]=d+(f?o:i),h=i!==`rem`&&~n.indexOf(`adius`)||i===`em`&&t.appendChild&&!l?t:t.parentNode,_&&(h=(t.ownerSVGElement||{}).parentNode),(!h||h===ar||!h.appendChild)&&(h=ar.body),g=h._gsap,g&&p&&g.width&&c&&g.time===rn.time&&!g.uncache)return B(a/g.width*d);if(p&&(n===`height`||n===`width`)){var v=t.style[n];t.style[n]=d+i,m=t[u],v?t.style[n]=v:Jr(t,n)}else (p||o===`%`)&&!Zr[Br(h,`display`)]&&(s.position=Br(t,`position`)),h===t&&(s.position=`static`),h.appendChild(cr),m=cr[u],h.removeChild(cr),s.position=`absolute`;return c&&p&&(g=Pe(h),g.time=rn.time,g.width=h[u]),B(f?m*a/d:m&&a?d/m*a:0)},$r=function(e,t,n,r){var i;return sr||Ur(),t in br&&t!==`transform`&&(t=br[t],~t.indexOf(`,`)&&(t=t.split(`,`)[0])),fr[t]&&t!==`transform`?(i=di(e,r),i=t===`transformOrigin`?i.svg?i.origin:fi(Br(e,Z))+` `+i.zOrigin+`px`:i[t]):(i=e.style[t],(!i||i===`auto`||r||~(i+``).indexOf(`calc(`))&&(i=ii[t]&&ii[t](e,t,n)||Br(e,t)||Fe(e,t)||+(t===`opacity`))),n&&!~(i+``).trim().indexOf(` `)?Qr(e,t,i,n)+n:i},ei=function(e,t,n,r){if(!n||n===`none`){var i=Hr(t,e,1),a=i&&Br(e,i,1);a&&a!==n?(t=i,n=a):t===`borderColor`&&(n=Br(e,`borderTopColor`))}var o=new J(this._pt,e.style,t,0,1,zn),s=0,c=0,l,u,d,f,p,m,h,_,v,y,b,x;if(o.b=n,o.e=r,n+=``,r+=``,r.substring(0,6)===`var(--`&&(r=Br(e,r.substring(4,r.indexOf(`)`)))),r===`auto`&&(m=e.style[t],e.style[t]=r,r=Br(e,t)||r,m?e.style[t]=m:Jr(e,t)),l=[n,r],tn(l),n=l[0],r=l[1],d=n.match(ae)||[],x=r.match(ae)||[],x.length){for(;u=ae.exec(r);)h=u[0],v=r.substring(s,u.index),p?p=(p+1)%5:(v.substr(-5)===`rgba(`||v.substr(-5)===`hsla(`)&&(p=1),h!==(m=d[c++]||``)&&(f=parseFloat(m)||0,b=m.substr((f+``).length),h.charAt(1)===`=`&&(h=Ie(f,h)+b),_=parseFloat(h),y=h.substr((_+``).length),s=ae.lastIndex-y.length,y||(y=y||g.units[t]||b,s===r.length&&(r+=y,o.e+=y)),b!==y&&(f=Qr(e,t,m,y)||0),o._pt={_next:o._pt,p:v||c===1?v:`,`,s:f,c:_-f,m:p&&p<4||t===`zIndex`?Math.round:0});o.c=s-1;)o=i[c],fr[o]&&(s=1,o=o===`transformOrigin`?Z:X),Jr(n,o);s&&(Jr(n,X),a&&(a.svg&&n.removeAttribute(`transform`),r.scale=r.rotate=r.translate=`none`,di(n,1),a.uncache=1,Fr(r)))}},ii={clearProps:function(e,t,n,r,i){if(i.data!==`isFromStart`){var a=e._pt=new J(e._pt,t,n,0,0,ri);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},ai=[1,0,0,1,0,0],oi={},si=function(e){return e===`matrix(1, 0, 0, 1, 0, 0)`||e===`none`||!e},ci=function(e){var t=Br(e,X);return si(t)?ai:t.substr(7).match(ie).map(B)},li=function(e,t){var n=e._gsap||Pe(e),r=e.style,i=ci(e),a,o,s,c;return n.svg&&e.getAttribute(`transform`)?(s=e.transform.baseVal.consolidate().matrix,i=[s.a,s.b,s.c,s.d,s.e,s.f],i.join(`,`)===`1,0,0,1,0,0`?ai:i):(i===ai&&!e.offsetParent&&e!==or&&!n.svg&&(s=r.display,r.display=`block`,a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,o=e.nextElementSibling,or.appendChild(e)),i=ci(e),s?r.display=s:Jr(e,`display`),c&&(o?a.insertBefore(e,o):a?a.appendChild(e):or.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},ui=function(e,t,n,r,i,a){var o=e._gsap,s=i||li(e,!0),c=o.xOrigin||0,l=o.yOrigin||0,u=o.xOffset||0,d=o.yOffset||0,f=s[0],p=s[1],m=s[2],h=s[3],g=s[4],_=s[5],v=t.split(` `),y=parseFloat(v[0])||0,b=parseFloat(v[1])||0,x,S,C,w;n?s!==ai&&(S=f*h-p*m)&&(C=h/S*y+b*(-m/S)+(m*_-h*g)/S,w=y*(-p/S)+f/S*b-(f*_-p*g)/S,y=C,b=w):(x=Kr(e),y=x.x+(~v[0].indexOf(`%`)?y/100*x.width:y),b=x.y+(~(v[1]||v[0]).indexOf(`%`)?b/100*x.height:b)),r||r!==!1&&o.smooth?(g=y-c,_=b-l,o.xOffset=u+(g*f+_*m)-g,o.yOffset=d+(g*p+_*h)-_):o.xOffset=o.yOffset=0,o.xOrigin=y,o.yOrigin=b,o.smooth=!!r,o.origin=t,o.originIsAbsolute=!!n,e.style[Z]=`0px 0px`,a&&(Yr(a,o,`xOrigin`,c,y),Yr(a,o,`yOrigin`,l,b),Yr(a,o,`xOffset`,u,o.xOffset),Yr(a,o,`yOffset`,d,o.yOffset)),e.setAttribute(`data-svg-origin`,y+` `+b)},di=function(e,t){var n=e._gsap||new _n(e);if(`x`in n&&!t&&!n.uncache)return n;var r=e.style,i=n.scaleX<0,a=`px`,o=`deg`,s=getComputedStyle(e),c=Br(e,Z)||`0`,l=u=d=m=h=_=v=y=b=0,u,d,f=p=1,p,m,h,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,I,ee,L,te,ne,re;return n.svg=!!(e.getCTM&&qr(e)),s.translate&&((s.translate!==`none`||s.scale!==`none`||s.rotate!==`none`)&&(r[X]=(s.translate===`none`?``:`translate3d(`+(s.translate+` 0 0`).split(` `).slice(0,3).join(`, `)+`) `)+(s.rotate===`none`?``:`rotate(`+s.rotate+`) `)+(s.scale===`none`?``:`scale(`+s.scale.split(` `).join(`,`)+`) `)+(s[X]===`none`?``:s[X])),r.scale=r.rotate=r.translate=`none`),C=li(e,n.svg),n.svg&&(n.uncache?(P=e.getBBox(),c=n.xOrigin-P.x+`px `+(n.yOrigin-P.y)+`px`,N=``):N=!t&&e.getAttribute(`data-svg-origin`),ui(e,N||c,!!N||n.originIsAbsolute,n.smooth!==!1,C)),x=n.xOrigin||0,S=n.yOrigin||0,C!==ai&&(D=C[0],O=C[1],k=C[2],A=C[3],l=j=C[4],u=M=C[5],C.length===6?(f=Math.sqrt(D*D+O*O),p=Math.sqrt(A*A+k*k),m=D||O?hr(O,D)*pr:0,v=k||A?hr(k,A)*pr+m:0,v&&(p*=Math.abs(Math.cos(v*mr))),n.svg&&(l-=x-(x*D+S*k),u-=S-(x*O+S*A))):(re=C[6],te=C[7],I=C[8],ee=C[9],L=C[10],ne=C[11],l=C[12],u=C[13],d=C[14],w=hr(re,L),h=w*pr,w&&(T=Math.cos(-w),E=Math.sin(-w),N=j*T+I*E,P=M*T+ee*E,F=re*T+L*E,I=j*-E+I*T,ee=M*-E+ee*T,L=re*-E+L*T,ne=te*-E+ne*T,j=N,M=P,re=F),w=hr(-k,L),_=w*pr,w&&(T=Math.cos(-w),E=Math.sin(-w),N=D*T-I*E,P=O*T-ee*E,F=k*T-L*E,ne=A*E+ne*T,D=N,O=P,k=F),w=hr(O,D),m=w*pr,w&&(T=Math.cos(w),E=Math.sin(w),N=D*T+O*E,P=j*T+M*E,O=O*T-D*E,M=M*T-j*E,D=N,j=P),h&&Math.abs(h)+Math.abs(m)>359.9&&(h=m=0,_=180-_),f=B(Math.sqrt(D*D+O*O+k*k)),p=B(Math.sqrt(M*M+re*re)),w=hr(j,M),v=Math.abs(w)>2e-4?w*pr:0,b=ne?1/(ne<0?-ne:ne):0),n.svg&&(N=e.getAttribute(`transform`),n.forceCSS=e.setAttribute(`transform`,``)||!si(Br(e,X)),N&&e.setAttribute(`transform`,N))),Math.abs(v)>90&&Math.abs(v)<270&&(i?(f*=-1,v+=m<=0?180:-180,m+=m<=0?180:-180):(p*=-1,v+=v<=0?180:-180)),t||=n.uncache,n.x=l-((n.xPercent=l&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-l)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+a,n.y=u-((n.yPercent=u&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-u)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+a,n.z=d+a,n.scaleX=B(f),n.scaleY=B(p),n.rotation=B(m)+o,n.rotationX=B(h)+o,n.rotationY=B(_)+o,n.skewX=v+o,n.skewY=y+o,n.transformPerspective=b+a,(n.zOrigin=parseFloat(c.split(` `)[2])||!t&&n.zOrigin||0)&&(r[Z]=fi(c)),n.xOffset=n.yOffset=0,n.force3D=g.force3D,n.renderTransform=n.svg?yi:Rr?vi:mi,n.uncache=0,n},fi=function(e){return(e=e.split(` `))[0]+` `+e[1]},pi=function(e,t,n){var r=U(t);return B(parseFloat(t)+parseFloat(Qr(e,`x`,n+`px`,r)))+r},mi=function(e,t){t.z=`0px`,t.rotationY=t.rotationX=`0deg`,t.force3D=0,vi(e,t)},hi=`0deg`,gi=`0px`,_i=`) `,vi=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,c=n.rotation,l=n.rotationY,u=n.rotationX,d=n.skewX,f=n.skewY,p=n.scaleX,m=n.scaleY,h=n.transformPerspective,g=n.force3D,_=n.target,v=n.zOrigin,y=``,b=g===`auto`&&e&&e!==1||g===!0;if(v&&(u!==hi||l!==hi)){var x=parseFloat(l)*mr,S=Math.sin(x),C=Math.cos(x),w;x=parseFloat(u)*mr,w=Math.cos(x),a=pi(_,a,S*w*-v),o=pi(_,o,-Math.sin(x)*-v),s=pi(_,s,C*w*-v+v)}h!==gi&&(y+=`perspective(`+h+_i),(r||i)&&(y+=`translate(`+r+`%, `+i+`%) `),(b||a!==gi||o!==gi||s!==gi)&&(y+=s!==gi||b?`translate3d(`+a+`, `+o+`, `+s+`) `:`translate(`+a+`, `+o+_i),c!==hi&&(y+=`rotate(`+c+_i),l!==hi&&(y+=`rotateY(`+l+_i),u!==hi&&(y+=`rotateX(`+u+_i),(d!==hi||f!==hi)&&(y+=`skew(`+d+`, `+f+_i),(p!==1||m!==1)&&(y+=`scale(`+p+`, `+m+_i),_.style[X]=y||`translate(0, 0)`},yi=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.rotation,c=n.skewX,l=n.skewY,u=n.scaleX,d=n.scaleY,f=n.target,p=n.xOrigin,m=n.yOrigin,h=n.xOffset,g=n.yOffset,_=n.forceCSS,v=parseFloat(a),y=parseFloat(o),b,x,S,C,w;s=parseFloat(s),c=parseFloat(c),l=parseFloat(l),l&&(l=parseFloat(l),c+=l,s+=l),s||c?(s*=mr,c*=mr,b=Math.cos(s)*u,x=Math.sin(s)*u,S=Math.sin(s-c)*-d,C=Math.cos(s-c)*d,c&&(l*=mr,w=Math.tan(c-l),w=Math.sqrt(1+w*w),S*=w,C*=w,l&&(w=Math.tan(l),w=Math.sqrt(1+w*w),b*=w,x*=w)),b=B(b),x=B(x),S=B(S),C=B(C)):(b=u,C=d,x=S=0),(v&&!~(a+``).indexOf(`px`)||y&&!~(o+``).indexOf(`px`))&&(v=Qr(f,`x`,a,`px`),y=Qr(f,`y`,o,`px`)),(p||m||h||g)&&(v=B(v+p-(p*b+m*S)+h),y=B(y+m-(p*x+m*C)+g)),(r||i)&&(w=f.getBBox(),v=B(v+r/100*w.width),y=B(y+i/100*w.height)),w=`matrix(`+b+`,`+x+`,`+S+`,`+C+`,`+v+`,`+y+`)`,f.setAttribute(`transform`,w),_&&(f.style[X]=w)},bi=function(e,t,n,r,i){var a=360,o=k(i),s=parseFloat(i)*(o&&~i.indexOf(`rad`)?pr:1)-r,c=r+s+`deg`,l,u;return o&&(l=i.split(`_`)[1],l===`short`&&(s%=a,s!==s%(a/2)&&(s+=s<0?a:-a)),l===`cw`&&s<0?s=(s+a*gr)%a-~~(s/a)*a:l===`ccw`&&s>0&&(s=(s-a*gr)%a-~~(s/a)*a)),e._pt=u=new J(e._pt,t,n,r,s,Sr),u.e=c,u.u=`deg`,e._props.push(n),u},xi=function(e,t){for(var n in t)e[n]=t[n];return e},Si=function(e,t,n){var r=xi({},n._gsap),i=`perspective,force3D,transformOrigin,svgOrigin`,a=n.style,o,s,c,l,u,d,f,p;for(s in r.svg?(c=n.getAttribute(`transform`),n.setAttribute(`transform`,``),a[X]=t,o=di(n,1),Jr(n,X),n.setAttribute(`transform`,c)):(c=getComputedStyle(n)[X],a[X]=t,o=di(n,1),a[X]=c),fr)c=r[s],l=o[s],c!==l&&i.indexOf(s)<0&&(f=U(c),p=U(l),u=f===p?parseFloat(c):Qr(n,s,c,p),d=parseFloat(l),e._pt=new J(e._pt,o,s,u,d-u,xr),e._pt.u=p||0,e._props.push(s));xi(o,r)};z(`padding,margin,Width,Radius`,function(e,t){var n=`Top`,r=`Right`,i=`Bottom`,a=`Left`,o=(t<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map(function(n){return t<2?e+n:`border`+n+e});ii[t>1?`border`+e:e]=function(e,t,n,r,i){var a,s;if(arguments.length<4)return a=o.map(function(t){return $r(e,t,n)}),s=a.join(` `),s.split(a[0]).length===5?a[0]:s;a=(r+``).split(` `),s={},o.forEach(function(e,t){return s[e]=a[t]=a[t]||a[(t-1)/2|0]}),e.init(t,s,i)}});var Ci={name:`css`,register:Ur,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,i){var a=this._props,o=e.style,s=n.vars.startAt,c,l,u,d,f,p,m,h,_,v,y,b,x,S,C,w,T;for(m in sr||Ur(),this.styles=this.styles||Lr(e),w=this.styles.props,this.tween=n,t)if(m!==`autoRound`&&(l=t[m],!(Oe[m]&&Sn(m,t,n,r,e,i)))){if(f=typeof l,p=ii[m],f===`function`&&(l=l.call(n,r,e,i),f=typeof l),f===`string`&&~l.indexOf(`random(`)&&(l=zt(l)),p)p(this,e,m,l,n)&&(C=1);else if(m.substr(0,2)===`--`)c=(getComputedStyle(e).getPropertyValue(m)+``).trim(),l+=``,$t.lastIndex=0,$t.test(c)||(h=U(c),_=U(l),_?h!==_&&(c=Qr(e,m,c,_)+_):h&&(l+=h)),this.add(o,`setProperty`,c,l,r,i,0,0,m),a.push(m),w.push(m,0,o[m]);else if(f!==`undefined`){if(s&&m in s?(c=typeof s[m]==`function`?s[m].call(n,r,e,i):s[m],k(c)&&~c.indexOf(`random(`)&&(c=zt(c)),U(c+``)||c===`auto`||(c+=g.units[m]||U($r(e,m))||``),(c+``).charAt(1)===`=`&&(c=$r(e,m))):c=$r(e,m),d=parseFloat(c),v=f===`string`&&l.charAt(1)===`=`&&l.substr(0,2),v&&(l=l.substr(2)),u=parseFloat(l),m in br&&(m===`autoAlpha`&&(d===1&&$r(e,`visibility`)===`hidden`&&u&&(d=0),w.push(`visibility`,0,o.visibility),Yr(this,o,`visibility`,d?`inherit`:`hidden`,u?`inherit`:`hidden`,!u)),m!==`scale`&&m!==`transform`&&(m=br[m],~m.indexOf(`,`)&&(m=m.split(`,`)[0]))),y=m in fr,y){if(this.styles.save(m),T=l,f===`string`&&l.substring(0,6)===`var(--`){if(l=Br(e,l.substring(4,l.indexOf(`)`))),l.substring(0,5)===`calc(`){var E=e.style.perspective;e.style.perspective=l,l=Br(e,`perspective`),E?e.style.perspective=E:Jr(e,`perspective`)}u=parseFloat(l)}if(b||(x=e._gsap,x.renderTransform&&!t.parseTransform||di(e,t.parseTransform),S=t.smoothOrigin!==!1&&x.smooth,b=this._pt=new J(this._pt,o,X,0,1,x.renderTransform,x,0,-1),b.dep=1),m===`scale`)this._pt=new J(this._pt,x,`scaleY`,x.scaleY,(v?Ie(x.scaleY,v+u):u)-x.scaleY||0,xr),this._pt.u=0,a.push(`scaleY`,m),m+=`X`;else if(m===`transformOrigin`){w.push(Z,0,o[Z]),l=ni(l),x.svg?ui(e,l,0,S,0,this):(_=parseFloat(l.split(` `)[2])||0,_!==x.zOrigin&&Yr(this,x,`zOrigin`,x.zOrigin,_),Yr(this,o,m,fi(c),fi(l)));continue}else if(m===`svgOrigin`){ui(e,l,1,S,0,this);continue}else if(m in oi){bi(this,x,m,d,v?Ie(d,v+l):l);continue}else if(m===`smoothOrigin`){Yr(this,x,`smooth`,x.smooth,l);continue}else if(m===`force3D`){x[m]=l;continue}else if(m===`transform`){Si(this,l,e);continue}}else m in o||(m=Hr(m)||m);if(y||(u||u===0)&&(d||d===0)&&!yr.test(l)&&m in o)h=(c+``).substr((d+``).length),u||=0,_=U(l)||(m in g.units?g.units[m]:h),h!==_&&(d=Qr(e,m,c,_)),this._pt=new J(this._pt,y?x:o,m,d,(v?Ie(d,v+u):u)-d,!y&&(_===`px`||m===`zIndex`)&&t.autoRound!==!1?Tr:xr),this._pt.u=_||0,y&&T!==l?(this._pt.b=c,this._pt.e=T,this._pt.r=wr):h!==_&&_!==`%`&&(this._pt.b=c,this._pt.r=Cr);else if(m in o)ei.call(this,e,m,c,v?v+l:l);else if(m in e)this.add(e,m,c||e[m],v?v+l:l,r,i);else if(m!==`parseTransform`){_e(m,l);continue}y||(m in o?w.push(m,0,o[m]):typeof e[m]==`function`?w.push(m,2,e[m]()):w.push(m,1,c||e[m])),a.push(m)}}C&&Wn(this)},render:function(e,t){if(t.tween._time||!ur())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:$r,aliases:br,getSetter:function(e,t,n){var r=br[t];return r&&r.indexOf(`,`)<0&&(t=r),t in fr&&t!==Z&&(e._gsap.x||$r(e,`x`))?n&&lr===n?t===`scale`?jr:Ar:(lr=n||{})&&(t===`scale`?Mr:Nr):e.style&&!M(e.style[t])?Or:~t.indexOf(`-`)?kr:In(e,t)},core:{_removeProperty:Jr,_getMatrix:li}};Y.utils.checkPrefix=Hr,Y.core.getStyleSaver=Lr,(function(e,t,n,r){var i=z(e+`,`+t+`,`+n,function(e){fr[e]=1});z(t,function(e){g.units[e]=`deg`,oi[e]=1}),br[i[13]]=e+`,`+t,z(r,function(e){var t=e.split(`:`);br[t[1]]=i[t[0]]})})(`x,y,z,scale,scaleX,scaleY,xPercent,yPercent`,`rotation,rotationX,rotationY,skewX,skewY`,`transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective`,`0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY`),z(`x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective`,function(e){g.units[e]=`px`}),Y.registerPlugin(Ci);var Q=Y.registerPlugin(Ci)||Y;Q.core.Tween;var wi=typeof document<`u`?p.useLayoutEffect:p.useEffect,Ti=e=>e&&!Array.isArray(e)&&typeof e==`object`,Ei=[],Di={},Oi=Q,ki=(e,t=Ei)=>{let n=Di;Ti(e)?(n=e,e=null,t=`dependencies`in n?n.dependencies:Ei):Ti(t)&&(n=t,t=`dependencies`in n?n.dependencies:Ei),e&&typeof e!=`function`&&console.warn(`First parameter must be a function or config object`);let{scope:r,revertOnUpdate:i}=n,a=(0,p.useRef)(!1),o=(0,p.useRef)(Oi.context(()=>{},r)),s=(0,p.useRef)(e=>o.current.add(null,e)),c=t&&t.length&&!i;return c&&wi(()=>(a.current=!0,()=>o.current.revert()),Ei),wi(()=>{if(e&&o.current.add(e,r),!c||!a.current)return()=>o.current.revert()},t),{context:o.current,contextSafe:s.current}};ki.register=e=>{Oi=e},ki.headless=!0;var $=i();Q.registerPlugin(ki);function Ai({size:e=12,maxDistance:t=5,pupilColor:n=`#2D2D2D`}){return(0,$.jsx)(`div`,{className:`pupil rounded-full`,"data-max-distance":t,style:{backgroundColor:n,height:e,width:e,willChange:`transform`}})}function ji({size:e=48,pupilSize:t=16,maxDistance:n=10,eyeColor:r=`white`,pupilColor:i=`#2D2D2D`}){return(0,$.jsx)(`div`,{className:`eyeball flex items-center justify-center overflow-hidden rounded-full`,"data-max-distance":n,style:{backgroundColor:r,height:e,width:e,willChange:`height`},children:(0,$.jsx)(`div`,{className:`eyeball-pupil rounded-full`,style:{backgroundColor:i,height:t,width:t,willChange:`transform`}})})}function Mi({isTyping:e=!1,showPassword:t=!1,passwordLength:n=0}){let r=(0,p.useRef)(null),i=(0,p.useRef)({x:0,y:0}),a=(0,p.useRef)(0),o=(0,p.useRef)(null),s=(0,p.useRef)(null),c=(0,p.useRef)(null),l=(0,p.useRef)(null),u=(0,p.useRef)(null),d=(0,p.useRef)(null),f=(0,p.useRef)(null),m=(0,p.useRef)(null),h=(0,p.useRef)(null),g=(0,p.useRef)(void 0),_=(0,p.useRef)(void 0),v=(0,p.useRef)(void 0),y=(0,p.useRef)(void 0),b=(0,p.useRef)(!1),x=n>0&&!t,S=n>0&&t,C=(0,p.useRef)({isHidingPassword:x,isLooking:!1,isShowingPassword:S,isTyping:e});C.current={isHidingPassword:x,isLooking:b.current,isShowingPassword:S,isTyping:e};let{contextSafe:w}=ki(()=>{Q.set(`.pupil`,{x:0,y:0}),Q.set(`.eyeball-pupil`,{x:0,y:0})},{scope:r}),T=(0,p.useRef)(null);(0,p.useEffect)(()=>{if(!(o.current&&s.current&&l.current&&c.current&&u.current&&d.current&&m.current&&f.current&&h.current))return;let e={blackFaceLeft:Q.quickTo(d.current,`left`,{duration:.3,ease:`power2.out`}),blackFaceTop:Q.quickTo(d.current,`top`,{duration:.3,ease:`power2.out`}),blackSkew:Q.quickTo(s.current,`skewX`,{duration:.3,ease:`power2.out`}),blackX:Q.quickTo(s.current,`x`,{duration:.3,ease:`power2.out`}),mouthX:Q.quickTo(h.current,`x`,{duration:.2,ease:`power2.out`}),mouthY:Q.quickTo(h.current,`y`,{duration:.2,ease:`power2.out`}),orangeFaceX:Q.quickTo(m.current,`x`,{duration:.2,ease:`power2.out`}),orangeFaceY:Q.quickTo(m.current,`y`,{duration:.2,ease:`power2.out`}),orangeSkew:Q.quickTo(l.current,`skewX`,{duration:.3,ease:`power2.out`}),purpleFaceLeft:Q.quickTo(u.current,`left`,{duration:.3,ease:`power2.out`}),purpleFaceTop:Q.quickTo(u.current,`top`,{duration:.3,ease:`power2.out`}),purpleHeight:Q.quickTo(o.current,`height`,{duration:.3,ease:`power2.out`}),purpleSkew:Q.quickTo(o.current,`skewX`,{duration:.3,ease:`power2.out`}),purpleX:Q.quickTo(o.current,`x`,{duration:.3,ease:`power2.out`}),yellowFaceX:Q.quickTo(f.current,`x`,{duration:.2,ease:`power2.out`}),yellowFaceY:Q.quickTo(f.current,`y`,{duration:.2,ease:`power2.out`}),yellowSkew:Q.quickTo(c.current,`skewX`,{duration:.3,ease:`power2.out`})};T.current=e;let t=e=>{let t=e.getBoundingClientRect(),n=t.left+t.width/2,r=t.top+t.height/3,a=i.current.x-n,o=i.current.y-r;return{bodySkew:Math.max(-6,Math.min(6,-a/120)),faceX:Math.max(-15,Math.min(15,a/20)),faceY:Math.max(-10,Math.min(10,o/30))}},n=(e,t)=>{let n=e.getBoundingClientRect(),r=n.left+n.width/2,a=n.top+n.height/2,o=i.current.x-r,s=i.current.y-a,c=Math.min(Math.sqrt(o**2+s**2),t),l=Math.atan2(s,o);return{x:Math.cos(l)*c,y:Math.sin(l)*c}},p=()=>{let i=r.current;if(!i)return;let{isHidingPassword:u,isLooking:d,isShowingPassword:f,isTyping:m}=C.current;if(o.current&&!f){let n=t(o.current);m||u?(e.purpleSkew(n.bodySkew-12),e.purpleX(40),e.purpleHeight(440)):(e.purpleSkew(n.bodySkew),e.purpleX(0),e.purpleHeight(400))}if(s.current&&!f){let n=t(s.current);d?(e.blackSkew(n.bodySkew*1.5+10),e.blackX(20)):m||u?(e.blackSkew(n.bodySkew*1.5),e.blackX(0)):(e.blackSkew(n.bodySkew),e.blackX(0))}if(l.current&&!f){let n=t(l.current);e.orangeSkew(n.bodySkew)}if(c.current&&!f){let n=t(c.current);e.yellowSkew(n.bodySkew)}if(o.current&&!f&&!d){let n=t(o.current),r=n.faceX>=0?Math.min(25,n.faceX*1.5):n.faceX;e.purpleFaceLeft(45+r),e.purpleFaceTop(40+n.faceY)}if(s.current&&!f&&!d){let n=t(s.current);e.blackFaceLeft(26+n.faceX),e.blackFaceTop(32+n.faceY)}if(l.current&&!f){let n=t(l.current);e.orangeFaceX(n.faceX),e.orangeFaceY(n.faceY)}if(c.current&&!f){let n=t(c.current);e.yellowFaceX(n.faceX),e.yellowFaceY(n.faceY),e.mouthX(n.faceX),e.mouthY(n.faceY)}if(!f){let e=i.querySelectorAll(`.pupil`);for(let t of e){let e=t,r=n(e,Number(e.dataset.maxDistance)||5);Q.set(e,{x:r.x,y:r.y})}if(!d){let e=i.querySelectorAll(`.eyeball`);for(let t of e){let e=t,r=Number(e.dataset.maxDistance)||10,i=e.querySelector(`.eyeball-pupil`);if(!i)continue;let a=n(e,r);Q.set(i,{x:a.x,y:a.y})}}}a.current=requestAnimationFrame(p)},g=e=>{i.current={x:e.clientX,y:e.clientY}};return window.addEventListener(`mousemove`,g,{passive:!0}),a.current=requestAnimationFrame(p),()=>{window.removeEventListener(`mousemove`,g),cancelAnimationFrame(a.current)}},[]),(0,p.useEffect)(()=>{let e=o.current?.querySelectorAll(`.eyeball`);if(!e?.length)return;let t=()=>{g.current=setTimeout(()=>{for(let t of e)Q.to(t,{duration:.08,ease:`power2.in`,height:2});setTimeout(()=>{for(let t of e){let e=Number(t.style.width.replace(`px`,``))||18;Q.to(t,{duration:.08,ease:`power2.out`,height:e})}t()},150)},Math.random()*4e3+3e3)};return t(),()=>clearTimeout(g.current)},[]),(0,p.useEffect)(()=>{let e=s.current?.querySelectorAll(`.eyeball`);if(!e?.length)return;let t=()=>{_.current=setTimeout(()=>{for(let t of e)Q.to(t,{duration:.08,ease:`power2.in`,height:2});setTimeout(()=>{for(let t of e){let e=Number(t.style.width.replace(`px`,``))||16;Q.to(t,{duration:.08,ease:`power2.out`,height:e})}t()},150)},Math.random()*4e3+3e3)};return t(),()=>clearTimeout(_.current)},[]);let E=w(()=>{let e=T.current;e&&(e.purpleFaceLeft(55),e.purpleFaceTop(65),e.blackFaceLeft(32),e.blackFaceTop(12)),o.current?.querySelectorAll(`.eyeball-pupil`).forEach(e=>{Q.to(e,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:3,y:4})}),s.current?.querySelectorAll(`.eyeball-pupil`).forEach(e=>{Q.to(e,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:0,y:-4})})}),D=w(()=>{let e=T.current;e&&(e.purpleFaceLeft(55),e.purpleFaceTop(65))}),O=w(()=>{let e=T.current;e&&(e.purpleSkew(0),e.blackSkew(0),e.orangeSkew(0),e.yellowSkew(0),e.purpleX(0),e.blackX(0),e.purpleHeight(400),e.purpleFaceLeft(20),e.purpleFaceTop(35),e.blackFaceLeft(10),e.blackFaceTop(28),e.orangeFaceX(-32),e.orangeFaceY(-5),e.yellowFaceX(-32),e.yellowFaceY(-5),e.mouthX(-30),e.mouthY(0)),o.current?.querySelectorAll(`.eyeball-pupil`).forEach(e=>{Q.to(e,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:-4,y:-4})}),s.current?.querySelectorAll(`.eyeball-pupil`).forEach(e=>{Q.to(e,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:-4,y:-4})}),l.current?.querySelectorAll(`.pupil`).forEach(e=>{Q.to(e,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:-5,y:-4})}),c.current?.querySelectorAll(`.pupil`).forEach(e=>{Q.to(e,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:-5,y:-4})})});return(0,p.useEffect)(()=>{if(!S||n<=0){clearTimeout(v.current);return}let e=o.current?.querySelectorAll(`.eyeball-pupil`);if(!e?.length)return;let t=()=>{v.current=setTimeout(()=>{for(let t of e)Q.to(t,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:4,y:5});let n=T.current;n&&(n.purpleFaceLeft(20),n.purpleFaceTop(35)),setTimeout(()=>{for(let t of e)Q.to(t,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:-4,y:-4});t()},800)},Math.random()*3e3+2e3)};return t(),()=>clearTimeout(v.current)},[S,n]),(0,p.useEffect)(()=>(e&&!S?(b.current=!0,C.current.isLooking=!0,E(),clearTimeout(y.current),y.current=setTimeout(()=>{b.current=!1,C.current.isLooking=!1,o.current?.querySelectorAll(`.eyeball-pupil`).forEach(e=>{Q.killTweensOf(e)})},800)):(clearTimeout(y.current),b.current=!1,C.current.isLooking=!1),()=>clearTimeout(y.current)),[E,S,e]),(0,p.useEffect)(()=>{S?O():x&&D()},[D,O,x,S]),(0,$.jsxs)(`div`,{className:`relative mx-auto h-[320px] w-[440px] max-w-full lg:h-[400px] lg:w-[550px]`,ref:r,children:[(0,$.jsx)(`div`,{className:`absolute bottom-0 left-[70px] z-[1] rounded-t-[10px]`,ref:o,style:{backgroundColor:`#6C3FF5`,borderRadius:`10px 10px 0 0`,height:400,transformOrigin:`bottom center`,width:180,willChange:`transform`},children:(0,$.jsxs)(`div`,{className:`absolute flex gap-8`,ref:u,style:{left:45,top:40},children:[(0,$.jsx)(ji,{maxDistance:5,pupilColor:`#2D2D2D`,pupilSize:7,size:18}),(0,$.jsx)(ji,{maxDistance:5,pupilColor:`#2D2D2D`,pupilSize:7,size:18})]})}),(0,$.jsx)(`div`,{className:`absolute bottom-0 left-[240px] z-[2] rounded-t-[8px]`,ref:s,style:{backgroundColor:`#2D2D2D`,borderRadius:`8px 8px 0 0`,height:310,transformOrigin:`bottom center`,width:120,willChange:`transform`},children:(0,$.jsxs)(`div`,{className:`absolute flex gap-6`,ref:d,style:{left:26,top:32},children:[(0,$.jsx)(ji,{maxDistance:4,pupilColor:`#2D2D2D`,pupilSize:6,size:16}),(0,$.jsx)(ji,{maxDistance:4,pupilColor:`#2D2D2D`,pupilSize:6,size:16})]})}),(0,$.jsx)(`div`,{className:`absolute bottom-0 left-0 z-[3]`,ref:l,style:{backgroundColor:`#FF9B6B`,borderRadius:`120px 120px 0 0`,height:200,transformOrigin:`bottom center`,width:240,willChange:`transform`},children:(0,$.jsxs)(`div`,{className:`absolute flex gap-8`,ref:m,style:{left:82,top:90},children:[(0,$.jsx)(Ai,{maxDistance:5,pupilColor:`#2D2D2D`,size:12}),(0,$.jsx)(Ai,{maxDistance:5,pupilColor:`#2D2D2D`,size:12})]})}),(0,$.jsxs)(`div`,{className:`absolute bottom-0 left-[310px] z-[4]`,ref:c,style:{backgroundColor:`#E8D754`,borderRadius:`70px 70px 0 0`,height:230,transformOrigin:`bottom center`,width:140,willChange:`transform`},children:[(0,$.jsxs)(`div`,{className:`absolute flex gap-6`,ref:f,style:{left:52,top:40},children:[(0,$.jsx)(Ai,{maxDistance:5,pupilColor:`#2D2D2D`,size:12}),(0,$.jsx)(Ai,{maxDistance:5,pupilColor:`#2D2D2D`,size:12})]}),(0,$.jsx)(`div`,{className:`absolute rounded-full`,ref:h,style:{backgroundColor:`#2D2D2D`,height:4,left:40,top:88,width:80}})]})]})}function Ni({className:e}){let{isTyping:t,passwordLength:i,showPassword:a}=d();return(0,$.jsxs)(`div`,{className:s(`relative overflow-hidden bg-muted text-foreground`,e),children:[(0,$.jsx)(`div`,{className:`absolute inset-0 bg-[linear-gradient(rgba(0,0,0,0.03)_1px,transparent_1px),linear-gradient(90deg,rgba(0,0,0,0.03)_1px,transparent_1px)] bg-[size:48px_48px] opacity-60 dark:bg-[linear-gradient(rgba(255,255,255,0.03)_1px,transparent_1px),linear-gradient(90deg,rgba(255,255,255,0.03)_1px,transparent_1px)]`}),(0,$.jsx)(`div`,{className:`absolute top-[-10%] right-[-5%] size-80 rounded-full bg-primary/5 blur-3xl`}),(0,$.jsx)(`div`,{className:`absolute bottom-[-10%] left-[-5%] size-72 rounded-full bg-primary/5 blur-3xl`}),(0,$.jsxs)(`div`,{className:`relative z-20 flex h-full flex-col items-center justify-center gap-10 p-12`,children:[(0,$.jsxs)(`div`,{className:`w-full space-y-4 text-center`,children:[(0,$.jsx)(`p`,{className:`text-muted-foreground text-xs uppercase tracking-[0.3em]`,children:`USDT Payment Gateway`}),(0,$.jsx)(`h2`,{className:`font-semibold text-3xl tracking-tight xl:text-4xl`,children:n()}),(0,$.jsx)(`p`,{className:`mx-auto max-w-md text-muted-foreground text-sm leading-relaxed`,children:r()})]}),(0,$.jsx)(`div`,{className:`w-full rounded-[36px] border bg-background/50 px-6 py-8 shadow-2xl backdrop-blur-sm`,children:(0,$.jsx)(Mi,{isTyping:t,passwordLength:i,showPassword:a})})]})]})}function Pi(){return(0,$.jsx)(f,{children:(0,$.jsxs)(`div`,{className:`container relative grid h-svh flex-col items-center justify-center lg:max-w-none lg:grid-cols-2 lg:px-0`,children:[(0,$.jsx)(Ni,{className:`relative h-full overflow-hidden bg-muted max-lg:hidden`}),(0,$.jsxs)(`div`,{className:`flex h-full min-w-xs flex-col justify-center lg:p-8`,children:[(0,$.jsx)(`div`,{className:`mx-auto flex w-full flex-col justify-center space-y-2 py-8 sm:p-8 md:p-0`,children:(0,$.jsxs)(`div`,{className:`flex w-full items-center justify-between`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,$.jsx)(u,{className:`size-10 shrink-0`}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`h1`,{className:`font-medium text-xl leading-tight`,children:`GMPay`}),(0,$.jsx)(`p`,{className:`mt-1 whitespace-nowrap text-muted-foreground text-xs`,children:a()})]})]}),(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,$.jsx)(c,{}),(0,$.jsx)(l,{})]})]})}),(0,$.jsx)(`div`,{className:`mx-auto flex w-full max-w-sm flex-1 flex-col justify-center`,children:(0,$.jsx)(o,{})})]})]})})}export{Pi as component}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{Ct as n,St as r,tm as i,ut as a}from"./messages-BOatyqUm.js";import{n as o}from"./Match-DrG03Wse.js";import{i as s}from"./button-C_NDYaz8.js";import{n as c,t as l}from"./theme-switch-CHLQml_8.js";import{t as u}from"./logo-agrtpj2n.js";import{n as d,t as f}from"./auth-animation-context-CmPA3sF3.js";var p=e(t());function m(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function h(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var g={autoSleep:120,force3D:`auto`,nullTargetWarn:1,units:{lineHeight:``}},_={duration:.5,overwrite:!1,delay:0},v,y,b,x=1e8,S=1/x,C=Math.PI*2,w=C/4,T=0,E=Math.sqrt,D=Math.cos,O=Math.sin,k=function(e){return typeof e==`string`},A=function(e){return typeof e==`function`},j=function(e){return typeof e==`number`},M=function(e){return e===void 0},N=function(e){return typeof e==`object`},P=function(e){return e!==!1},F=function(){return typeof window<`u`},I=function(e){return A(e)||k(e)},ee=typeof ArrayBuffer==`function`&&ArrayBuffer.isView||function(){},L=Array.isArray,te=/random\([^)]+\)/g,ne=/,\s*/g,re=/(?:-?\.?\d|\.)+/gi,ie=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,ae=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,oe=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,se=/[+-]=-?[.\d]+/,ce=/[^,'"\[\]\s]+/gi,le=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,R,ue,de,fe,pe={},me={},he,ge=function(e){return(me=We(e,pe))&&Y},_e=function(e,t){return console.warn(`Invalid property`,e,`set to`,t,`Missing plugin? gsap.registerPlugin()`)},ve=function(e,t){return!t&&console.warn(e)},ye=function(e,t){return e&&(pe[e]=t)&&me&&(me[e]=t)||pe},be=function(){return 0},xe={suppressEvents:!0,isStart:!0,kill:!1},Se={suppressEvents:!0,kill:!1},Ce={suppressEvents:!0},we={},Te=[],Ee={},De,Oe={},ke={},Ae=30,je=[],Me=``,Ne=function(e){var t=e[0],n,r;if(N(t)||A(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(r=je.length;r--&&!je[r].targetTest(t););n=je[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new _n(e[r],n)))||e.splice(r,1);return e},Pe=function(e){return e._gsap||Ne(Et(e))[0]._gsap},Fe=function(e,t,n){return(n=e[t])&&A(n)?e[t]():M(n)&&e.getAttribute&&e.getAttribute(t)||n},z=function(e,t){return(e=e.split(`,`)).forEach(t)||e},B=function(e){return Math.round(e*1e5)/1e5||0},V=function(e){return Math.round(e*1e7)/1e7||0},Ie=function(e,t){var n=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),n===`+`?e+r:n===`-`?e-r:n===`*`?e*r:e/r},Le=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++ro;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=a,t.parent=t._dp=e,t},Xe=function(e,t,n,r){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var i=t._prev,a=t._next;i?i._next=a:e[n]===t&&(e[n]=a),a?a._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},Ze=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Qe=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},$e=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},et=function(e,t,n,r){return e._startAt&&(y?e._startAt.revert(Se):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},tt=function e(t){return!t||t._ts&&e(t.parent)},nt=function(e){return e._repeat?rt(e._tTime,e=e.duration()+e._rDelay)*e:0},rt=function(e,t){var n=Math.floor(e=V(e/t));return e&&n===e?n-1:n},it=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},at=function(e){return e._end=V(e._start+(e._tDur/Math.abs(e._ts||e._rts||S)||0))},ot=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=V(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),at(e),n._dirty||Qe(n,e)),e},st=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._startS)&&t.render(n,!0)),Qe(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-S}},ct=function(e,t,n,r){return t.parent&&Ze(t),t._start=V((j(n)?n:n||e!==R?vt(e,n,t):e._time)+t._delay),t._end=V(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Ye(e,t,`_first`,`_last`,e._sort?`_start`:0),ft(t)||(e._recent=t),r||st(e,t),e._ts<0&&ot(e,e._tTime),e},lt=function(e,t){return(pe.ScrollTrigger||_e(`scrollTrigger`,t))&&pe.ScrollTrigger.create(t,e)},ut=function(e,t,n,r,i){if(Tn(e,t,i),!e._initted)return 1;if(!n&&e._pt&&!y&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&De!==rn.frame)return Te.push(e),e._lazy=[i,r],1},dt=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},ft=function(e){var t=e.data;return t===`isFromStart`||t===`isStart`},pt=function(e,t,n,r){var i=e.ratio,a=t<0||!t&&(!e._start&&dt(e)&&!(!e._initted&&ft(e))||(e._ts<0||e._dp._ts<0)&&!ft(e))?0:1,o=e._rDelay,s=0,c,l,u;if(o&&e._repeat&&(s=xt(0,e._tDur,t),l=rt(s,o),e._yoyo&&l&1&&(a=1-a),l!==rt(e._tTime,o)&&(i=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==i||y||r||e._zTime===S||!t&&e._zTime){if(!e._initted&&ut(e,t,r,n,s))return;for(u=e._zTime,e._zTime=t||(n?S:0),n||=t&&!u,e.ratio=a,e._from&&(a=1-a),e._time=0,e._tTime=s,c=e._pt;c;)c.r(a,c.d),c=c._next;t<0&&et(e,t,n,!0),e._onUpdate&&!n&&Ut(e,`onUpdate`),s&&e._repeat&&!n&&e.parent&&Ut(e,`onRepeat`),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&Ze(e,1),!n&&!y&&(Ut(e,a?`onComplete`:`onReverseComplete`,!0),e._prom&&e._prom()))}else e._zTime||=t},mt=function(e,t,n){var r;if(n>t)for(r=e._first;r&&r._start<=n;){if(r.data===`isPause`&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if(r.data===`isPause`&&r._start0&&!r&&ot(e,e._tTime=e._tDur*o),e.parent&&at(e),n||Qe(e.parent,e),e},gt=function(e){return e instanceof K?Qe(e):ht(e,e._dur)},_t={_start:0,endTime:be,totalDuration:be},vt=function e(t,n,r){var i=t.labels,a=t._recent||_t,o=t.duration()>=x?a.endTime(!1):t._dur,s,c,l;return k(n)&&(isNaN(n)||n in i)?(c=n.charAt(0),l=n.substr(-1)===`%`,s=n.indexOf(`=`),c===`<`||c===`>`?(s>=0&&(n=n.replace(/=/,``)),(c===`<`?a._start:a.endTime(a._repeat>=0))+(parseFloat(n.substr(1))||0)*(l?(s<0?a:r).totalDuration()/100:1)):s<0?(n in i||(i[n]=o),i[n]):(c=parseFloat(n.charAt(s-1)+n.substr(s+1)),l&&r&&(c=c/100*(L(r)?r[0]:r).totalDuration()),s>1?e(t,n.substr(0,s-1),r)+c:o+c)):n==null?o:+n},yt=function(e,t,n){var r=j(t[1]),i=(r?2:1)+(e<2?0:1),a=t[i],o,s;if(r&&(a.duration=t[1]),a.parent=n,e){for(o=a,s=n;s&&!(`immediateRender`in o);)o=s.vars.defaults||{},s=P(s.vars.inherit)&&s.parent;a.immediateRender=P(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[i-1]}return new q(t[0],a,t[i+1])},bt=function(e,t){return e||e===0?t(e):t},xt=function(e,t,n){return nt?t:n},U=function(e,t){return!k(e)||!(t=le.exec(e))?``:t[1]},St=function(e,t,n){return bt(n,function(n){return xt(e,t,n)})},Ct=[].slice,wt=function(e,t){return e&&N(e)&&`length`in e&&(!t&&!e.length||e.length-1 in e&&N(e[0]))&&!e.nodeType&&e!==ue},Tt=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(e){var r;return k(e)&&!t||wt(e,1)?(r=n).push.apply(r,Et(e)):n.push(e)})||n},Et=function(e,t,n){return b&&!t&&b.selector?b.selector(e):k(e)&&!n&&(de||!an())?Ct.call((t||fe).querySelectorAll(e),0):L(e)?Tt(e,n):wt(e)?Ct.call(e,0):e?[e]:[]},Dt=function(e){return e=Et(e)[0]||ve(`Invalid scope`)||{},function(t){var n=e.current||e.nativeElement||e;return Et(t,n.querySelectorAll?n:n===e?ve(`Invalid scope`)||fe.createElement(`div`):e)}},Ot=function(e){return e.sort(function(){return .5-Math.random()})},kt=function(e){if(A(e))return e;var t=N(e)?e:{each:e},n=fn(t.ease),r=t.from||0,i=parseFloat(t.base)||0,a={},o=r>0&&r<1,s=isNaN(r)||o,c=t.axis,l=r,u=r;return k(r)?l=u={center:.5,edges:.5,end:1}[r]||0:!o&&s&&(l=r[0],u=r[1]),function(e,o,d){var f=(d||t).length,p=a[f],m,h,g,_,v,y,b,S,C;if(!p){if(C=t.grid===`auto`?0:(t.grid||[1,x])[1],!C){for(b=-x;b<(b=d[C++].getBoundingClientRect().left)&&Cb&&(b=v),vf?f-1:c?c===`y`?f/C:C:Math.max(C,f/C))||0)*(r===`edges`?-1:1),p.b=f<0?i-f:i,p.u=U(t.amount||t.each)||0,n=n&&f<0?dn(n):n}return f=(p[e]-p.min)/p.max||0,V(p.b+(n?n(f):f)*p.v)+p.u}},At=function(e){var t=10**((e+``).split(`.`)[1]||``).length;return function(n){var r=V(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(j(n)?0:U(n))}},jt=function(e,t){var n=L(e),r,i;return!n&&N(e)&&(r=n=e.radius||x,e.values?(e=Et(e.values),(i=!j(e[0]))&&(r*=r)):e=At(e.increment)),bt(t,n?A(e)?function(t){return i=e(t),Math.abs(i-t)<=r?i:t}:function(t){for(var n=parseFloat(i?t.x:t),a=parseFloat(i?t.y:0),o=x,s=0,c=e.length,l,u;c--;)i?(l=e[c].x-n,u=e[c].y-a,l=l*l+u*u):l=Math.abs(e[c]-n),li?a-e:e)})},zt=function(e){return e.replace(te,function(e){var t=e.indexOf(`[`)+1,n=e.substring(t||7,t?e.indexOf(`]`):e.length-1).split(ne);return Mt(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},Bt=function(e,t,n,r,i){var a=t-e,o=r-n;return bt(i,function(t){return n+((t-e)/a*o||0)})},Vt=function e(t,n,r,i){var a=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!a){var o=k(t),s={},c,l,u,d,f;if(r===!0&&(i=1)&&(r=null),o)t={p:t},n={p:n};else if(L(t)&&!L(n)){for(u=[],d=t.length,f=d-2,l=1;l(o=Math.abs(o))&&(s=a,i=o);return s},Ut=function(e,t,n){var r=e.vars,i=r[t],a=b,o=e._ctx,s,c,l;if(i)return s=r[t+`Params`],c=r.callbackScope||e,n&&Te.length&&Re(),o&&(b=o),l=s?i.apply(c,s):i.call(c),b=a,l},Wt=function(e){return Ze(e),e.scrollTrigger&&e.scrollTrigger.kill(!!y),e.progress()<1&&Ut(e,`onInterrupt`),e},Gt,Kt=[],qt=function(e){if(e)if(e=!e.name&&e.default||e,F()||e.headless){var t=e.name,n=A(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:be,render:Bn,add:bn,kill:Hn,modifier:Vn,rawVars:0},a={targetTest:0,get:0,getSetter:In,aliases:{},register:0};if(an(),e!==r){if(Oe[t])return;H(r,H(Ke(e,i),a)),We(r.prototype,We(i,Ke(e,a))),Oe[r.prop=t]=r,e.targetTest&&(je.push(r),we[t]=1),t=(t===`css`?`CSS`:t.charAt(0).toUpperCase()+t.substr(1))+`Plugin`}ye(t,r),e.register&&e.register(Y,r,J)}else Kt.push(e)},W=255,Jt={aqua:[0,W,W],lime:[0,W,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,W],navy:[0,0,128],white:[W,W,W],olive:[128,128,0],yellow:[W,W,0],orange:[W,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[W,0,0],pink:[W,192,203],cyan:[0,W,W],transparent:[W,W,W,0]},Yt=function(e,t,n){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(n-t)*e*6:e<.5?n:e*3<2?t+(n-t)*(2/3-e)*6:t)*W+.5|0},Xt=function(e,t,n){var r=e?j(e)?[e>>16,e>>8&W,e&W]:0:Jt.black,i,a,o,s,c,l,u,d,f,p;if(!r){if(e.substr(-1)===`,`&&(e=e.substr(0,e.length-1)),Jt[e])r=Jt[e];else if(e.charAt(0)===`#`){if(e.length<6&&(i=e.charAt(1),a=e.charAt(2),o=e.charAt(3),e=`#`+i+i+a+a+o+o+(e.length===5?e.charAt(4)+e.charAt(4):``)),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&W,r&W,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&W,e&W]}else if(e.substr(0,3)===`hsl`){if(r=p=e.match(re),!t)s=r[0]%360/360,c=r[1]/100,l=r[2]/100,a=l<=.5?l*(c+1):l+c-l*c,i=l*2-a,r.length>3&&(r[3]*=1),r[0]=Yt(s+1/3,i,a),r[1]=Yt(s,i,a),r[2]=Yt(s-1/3,i,a);else if(~e.indexOf(`=`))return r=e.match(ie),n&&r.length<4&&(r[3]=1),r}else r=e.match(re)||Jt.transparent;r=r.map(Number)}return t&&!p&&(i=r[0]/W,a=r[1]/W,o=r[2]/W,u=Math.max(i,a,o),d=Math.min(i,a,o),l=(u+d)/2,u===d?s=c=0:(f=u-d,c=l>.5?f/(2-u-d):f/(u+d),s=u===i?(a-o)/f+(at||h<0)&&(r+=h-n),i+=h,y=i-r,_=y-o,(_>0||g)&&(b=++d.frame,f=y-d.time*1e3,d.time=y/=1e3,o+=_+(_>=a?4:a-_),v=1),g||(c=l(u)),v)for(p=0;p=t&&p--},_listeners:s},d}(),an=function(){return!nn&&rn.wake()},G={},on=/^[\d.\-M][\d.\-,\s]/,sn=/["']/g,cn=function(e){for(var t={},n=e.substr(1,e.length-3).split(`:`),r=n[0],i=1,a=n.length,o,s,c;i1&&n.config?n.config.apply(null,~e.indexOf(`{`)?[cn(t[1])]:ln(e).split(`,`).map(Ve)):G._CE&&on.test(e)?G._CE(``,e):n},dn=function(e){return function(t){return 1-e(1-t)}},fn=function(e,t){return e&&(A(e)?e:G[e]||un(e))||t},pn=function(e,t,n,r){n===void 0&&(n=function(e){return 1-t(1-e)}),r===void 0&&(r=function(e){return e<.5?t(e*2)/2:1-t((1-e)*2)/2});var i={easeIn:t,easeOut:n,easeInOut:r},a;return z(e,function(e){for(var t in G[e]=pe[e]=i,G[a=e.toLowerCase()]=n,i)G[a+(t===`easeIn`?`.in`:t===`easeOut`?`.out`:`.inOut`)]=G[e+`.`+t]=i[t]}),i},mn=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},hn=function e(t,n,r){var i=n>=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),o=a/C*(Math.asin(1/i)||0),s=function(e){return e===1?1:i*2**(-10*e)*O((e-o)*a)+1},c=t===`out`?s:t===`in`?function(e){return 1-s(1-e)}:mn(s);return a=C/a,c.config=function(n,r){return e(t,n,r)},c},gn=function e(t,n){n===void 0&&(n=1.70158);var r=function(e){return e?--e*e*((n+1)*e+n)+1:0},i=t===`out`?r:t===`in`?function(e){return 1-r(1-e)}:mn(r);return i.config=function(n){return e(t,n)},i};z(`Linear,Quad,Cubic,Quart,Quint,Strong`,function(e,t){var n=t<5?t+1:t;pn(e+`,Power`+(n-1),t?function(e){return e**+n}:function(e){return e},function(e){return 1-(1-e)**n},function(e){return e<.5?(e*2)**n/2:1-((1-e)*2)**n/2})}),G.Linear.easeNone=G.none=G.Linear.easeIn,pn(`Elastic`,hn(`in`),hn(`out`),hn()),(function(e,t){var n=1/t,r=2*n,i=2.5*n,a=function(a){return a0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,ht(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(an(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(ot(this,e),!n._dp||n.parent||st(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e0||!this._tDur&&!e)&&ct(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===S||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),Be(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+nt(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-e:e)+nt(this),t):this.duration()?Math.min(1,this._time/this._dur):+(this.rawTime()>0)},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?rt(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return this._rts===-S?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?it(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-S?0:this._rts,this.totalTime(xt(-Math.abs(this._delay),this.totalDuration(),n),t!==!1),at(this),$e(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(an(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==S&&(this._tTime-=S)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=V(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&ct(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(P(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?it(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){e===void 0&&(e=Ce);var t=y;return y=e,ze(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!==`nested`&&e.kill!==!1&&this.kill(),y=t,this},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,gt(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,gt(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(vt(this,e),P(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,P(t)),this._dur||(this._zTime=-S),this},t.play=function(e,t){return e!=null&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return e!=null&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return e!=null&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-S:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-S,this},t.isActive=function(){var e=this.parent||this._dp,t=this._start,n;return!!(!e||this._ts&&this._initted&&e.isActive()&&(n=e.rawTime(!0))>=t&&n1?(t?(r[e]=t,n&&(r[e+`Params`]=n),e===`onUpdate`&&(this._onUpdate=t)):delete r[e],this):r[e]},t.then=function(e){var t=this,n=t._prom;return new Promise(function(r){var i=A(e)?e:He,a=function(){var e=t.then;t.then=null,n&&n(),A(i)&&(i=i(t))&&(i.then||i===t)&&(t.then=e),r(i),t.then=e};t._initted&&t.totalProgress()===1&&t._ts>=0||!t._tTime&&t._ts<0?a():t._prom=a})},t.kill=function(){Wt(this)},e}();H(vn.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-S,_prom:0,_ps:!1,_rts:1});var K=function(e){h(t,e);function t(t,n){var r;return t===void 0&&(t={}),r=e.call(this,t)||this,r.labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=P(t.sortChildren),R&&ct(t.parent||R,m(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&<(m(r),t.scrollTrigger),r}var n=t.prototype;return n.to=function(e,t,n){return yt(0,arguments,this),this},n.from=function(e,t,n){return yt(1,arguments,this),this},n.fromTo=function(e,t,n,r){return yt(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,qe(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new q(e,t,vt(this,n),1),this},n.call=function(e,t,n){return ct(this,q.delayedCall(0,e,t),n)},n.staggerTo=function(e,t,n,r,i,a,o){return n.duration=t,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=o,n.parent=this,new q(e,n,vt(this,i)),this},n.staggerFrom=function(e,t,n,r,i,a,o){return n.runBackwards=1,qe(n).immediateRender=P(n.immediateRender),this.staggerTo(e,t,n,r,i,a,o)},n.staggerFromTo=function(e,t,n,r,i,a,o,s){return r.startAt=n,qe(r).immediateRender=P(r.immediateRender),this.staggerTo(e,t,r,i,a,o,s)},n.render=function(e,t,n){var r=this._time,i=this._dirty?this.totalDuration():this._tDur,a=this._dur,o=e<=0?0:V(e),s=this._zTime<0!=e<0&&(this._initted||!a),c,l,u,d,f,p,m,h,g,_,v,b;if(this!==R&&o>i&&e>=0&&(o=i),o!==this._tTime||n||s){if(r!==this._time&&a&&(o+=this._time-r,e+=this._time-r),c=o,g=this._start,h=this._ts,p=!h,s&&(a||(r=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(v=this._yoyo,f=a+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(f*100+e,t,n);if(c=V(o%f),o===i?(d=this._repeat,c=a):(_=V(o/f),d=~~_,d&&d===_&&(c=a,d--),c>a&&(c=a)),_=rt(this._tTime,f),!r&&this._tTime&&_!==d&&this._tTime-_*f-this._dur<=0&&(_=d),v&&d&1&&(c=a-c,b=1),d!==_&&!this._lock){var x=v&&_&1,C=x===(v&&d&1);if(d<_&&(x=!x),r=x?0:o%a?a:o,this._lock=1,this.render(r||(b?0:V(d*f)),t,!a)._lock=0,this._tTime=o,!t&&this.parent&&Ut(this,`onRepeat`),this.vars.repeatRefresh&&!b&&(this.invalidate()._lock=1,_=d),r&&r!==this._time||p!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act||(a=this._dur,i=this._tDur,C&&(this._lock=2,r=x?a:-1e-4,this.render(r,!0),this.vars.repeatRefresh&&!b&&this.invalidate()),this._lock=0,!this._ts&&!p))return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(m=mt(this,V(r),V(c)),m&&(o-=c-(c=m._start))),this._tTime=o,this._time=c,this._act=!!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,r=0),!r&&o&&a&&!t&&!_&&(Ut(this,`onStart`),this._tTime!==o))return this;if(c>=r&&e>=0)for(l=this._first;l;){if(u=l._next,(l._act||c>=l._start)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(c-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(c-l._start)*l._ts,t,n),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=-S);break}}l=u}else{l=this._last;for(var w=e<0?e:c;l;){if(u=l._prev,(l._act||w<=l._end)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(w-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(w-l._start)*l._ts,t,n||y&&ze(l)),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=w?-S:S);break}}l=u}}if(m&&!t&&(this.pause(),m.render(c>=r?0:-S)._zTime=c>=r?1:-1,this._ts))return this._start=g,at(this),this.render(e,t,n);this._onUpdate&&!t&&Ut(this,`onUpdate`,!0),(o===i&&this._tTime>=this.totalDuration()||!o&&r)&&(g===this._start||Math.abs(h)!==Math.abs(this._ts))&&(this._lock||((e||!a)&&(o===i&&this._ts>0||!o&&this._ts<0)&&Ze(this,1),!t&&!(e<0&&!r)&&(o||r||!i)&&(Ut(this,o===i&&e>=0?`onComplete`:`onReverseComplete`,!0),this._prom&&!(o0)&&this._prom())))}return this},n.add=function(e,t){var n=this;if(j(t)||(t=vt(this,t,e)),!(e instanceof vn)){if(L(e))return e.forEach(function(e){return n.add(e,t)}),this;if(k(e))return this.addLabel(e,t);if(A(e))e=q.delayedCall(0,e);else return this}return this===e?this:ct(this,e,t)},n.getChildren=function(e,t,n,r){e===void 0&&(e=!0),t===void 0&&(t=!0),n===void 0&&(n=!0),r===void 0&&(r=-x);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof q?t&&i.push(a):(n&&i.push(a),e&&i.push.apply(i,a.getChildren(!0,t,n)))),a=a._next;return i},n.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},n.remove=function(e){return k(e)?this.removeLabel(e):A(e)?this.killTweensOf(e):(e.parent===this&&Xe(this,e),e===this._recent&&(this._recent=this._last),Qe(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=V(rn.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,n),this._forcing=0,this):this._tTime},n.addLabel=function(e,t){return this.labels[e]=vt(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=q.delayedCall(0,t||be,n);return r.data=`isPause`,this._hasPause=1,ct(this,r,vt(this,e))},n.removePause=function(e){var t=this._first;for(e=vt(this,e);t;)t._start===e&&t.data===`isPause`&&Ze(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)Cn!==r[i]&&r[i].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n=[],r=Et(e),i=this._first,a=j(t),o;i;)i instanceof q?Le(i._targets,r)&&(a?(!Cn||i._initted&&i._ts)&&i.globalTime(0)<=t&&i.globalTime(i.totalDuration())>t:!t||i.isActive())&&n.push(i):(o=i.getTweensOf(r,t)).length&&n.push.apply(n,o),i=i._next;return n},n.tweenTo=function(e,t){t||={};var n=this,r=vt(n,e),i=t,a=i.startAt,o=i.onStart,s=i.onStartParams,c=i.immediateRender,l,u=q.to(n,H({ease:t.ease||`none`,lazy:!1,immediateRender:!1,time:r,overwrite:`auto`,duration:t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale())||S,onStart:function(){if(n.pause(),!l){var e=t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale());u._dur!==e&&ht(u,e,0,1).render(u._time,!0,!0),l=1}o&&o.apply(u,s||[])}},t));return c?u.render(0):u},n.tweenFromTo=function(e,t,n){return this.tweenTo(t,H({startAt:{time:vt(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return e===void 0&&(e=this._time),Ht(this,vt(this,e))},n.previousLabel=function(e){return e===void 0&&(e=this._time),Ht(this,vt(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+S)},n.shiftChildren=function(e,t,n){n===void 0&&(n=0);var r=this._first,i=this.labels,a;for(e=V(e);r;)r._start>=n&&(r._start+=e,r._end+=e),r=r._next;if(t)for(a in i)i[a]>=n&&(i[a]+=e);return Qe(this)},n.invalidate=function(t){var n=this._first;for(this._lock=0;n;)n.invalidate(t),n=n._next;return e.prototype.invalidate.call(this,t)},n.clear=function(e){e===void 0&&(e=!0);for(var t=this._first,n;t;)n=t._next,this.remove(t),t=n;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),Qe(this)},n.totalDuration=function(e){var t=0,n=this,r=n._last,i=x,a,o,s;if(arguments.length)return n.timeScale((n._repeat<0?n.duration():n.totalDuration())/(n.reversed()?-e:e));if(n._dirty){for(s=n.parent;r;)a=r._prev,r._dirty&&r.totalDuration(),o=r._start,o>i&&n._sort&&r._ts&&!n._lock?(n._lock=1,ct(n,r,o-r._delay,1)._lock=0):i=o,o<0&&r._ts&&(t-=o,(!s&&!n._dp||s&&s.smoothChildTiming)&&(n._start+=V(o/n._ts),n._time-=o,n._tTime-=o),n.shiftChildren(-o,!1,-1/0),i=0),r._end>t&&r._ts&&(t=r._end),r=a;ht(n,n===R&&n._time>t?n._time:t,1,1),n._dirty=0}return n._tDur},t.updateRoot=function(e){if(R._ts&&(Be(R,it(e,R)),De=rn.frame),rn.frame>=Ae){Ae+=g.autoSleep||120;var t=R._first;if((!t||!t._ts)&&g.autoSleep&&rn._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||rn.sleep()}}},t}(vn);H(K.prototype,{_lock:0,_hasPause:0,_forcing:0});var yn=function(e,t,n,r,i,a,o){var s=new J(this._pt,e,t,0,1,zn,null,i),c=0,l=0,u,d,f,p,m,h,g,_;for(s.b=n,s.e=r,n+=``,r+=``,(g=~r.indexOf(`random(`))&&(r=zt(r)),a&&(_=[n,r],a(_,e,t),n=_[0],r=_[1]),d=n.match(oe)||[];u=oe.exec(r);)p=u[0],m=r.substring(c,u.index),f?f=(f+1)%5:m.substr(-5)===`rgba(`&&(f=1),p!==d[l++]&&(h=parseFloat(d[l-1])||0,s._pt={_next:s._pt,p:m||l===1?m:`,`,s:h,c:p.charAt(1)===`=`?Ie(h,p)-h:parseFloat(p)-h,m:f&&f<4?Math.round:0},c=oe.lastIndex);return s.c=c`)}),b.duration();else{for(T in C={},f)T===`ease`||T===`easeEach`||On(T,f[T],C,f.easeEach);for(T in C)for(M=C[T].sort(function(e,t){return e.t-t.t}),A=0,x=0;xi-S&&!o?i:ea&&(c=a)),p=this._yoyo&&u&1,p&&(c=a-c),f=rt(this._tTime,d),c===r&&!n&&this._initted&&u===f)return this._tTime=s,this;u!==f&&this.vars.repeatRefresh&&!p&&!this._lock&&c!==d&&this._initted&&(this._lock=n=1,this.render(V(d*u),!0).invalidate()._lock=0)}if(!this._initted){if(ut(this,o?e:c,n,t,s))return this._tTime=0,this;if(r!==this._time&&!(n&&this.vars.repeatRefresh&&u!==f))return this;if(a!==this._dur)return this.render(e,t,n)}if(this._rEase){var g=c0||!s&&this._ts<0)&&Ze(this,1),!t&&!(o&&!r)&&(s||r||p)&&(Ut(this,s===i?`onComplete`:`onReverseComplete`,!0),this._prom&&!(s0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},n.resetTo=function(e,t,n,r,i){nn||rn.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts),o;return this._initted||Tn(this,a),o=this._ease(a/this._dur),En(this,e,t,n,r,o,a,i)?this.resetTo(e,t,n,r,1):(ot(this,0),this.parent||Ye(this._dp,this,`_first`,`_last`,this._dp._sort?`_start`:0),this.render(0))},n.kill=function(e,t){if(t===void 0&&(t=`all`),!e&&(!t||t===`all`))return this._lazy=this._pt=0,this.parent?Wt(this):this.scrollTrigger&&this.scrollTrigger.kill(!!y),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,Cn&&Cn.vars.overwrite!==!0)._first||Wt(this),this.parent&&n!==this.timeline.totalDuration()&&ht(this,this._dur*this.timeline._tDur/n,0,1),this}var r=this._targets,i=e?Et(e):r,a=this._ptLookup,o=this._pt,s,c,l,u,d,f,p;if((!t||t===`all`)&&Je(r,i))return t===`all`&&(this._pt=0),Wt(this);for(s=this._op=this._op||[],t!==`all`&&(k(t)&&(d={},z(t,function(e){return d[e]=1}),t=d),t=Dn(r,t)),p=r.length;p--;)if(~i.indexOf(r[p]))for(d in c=a[p],t===`all`?(s[p]=t,u=c,l={}):(l=s[p]=s[p]||{},u=t),u)f=c&&c[d],f&&((!(`kill`in f.d)||f.d.kill(d)===!0)&&Xe(this,f,`_pt`),delete c[d]),l!==`all`&&(l[d]=1);return this._initted&&!this._pt&&o&&Wt(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return yt(1,arguments)},t.delayedCall=function(e,n,r,i){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},t.fromTo=function(e,t,n){return yt(2,arguments)},t.set=function(e,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(e,n)},t.killTweensOf=function(e,t,n){return R.killTweensOf(e,t,n)},t}(vn);H(q.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),z(`staggerTo,staggerFrom,staggerFromTo`,function(e){q[e]=function(){var t=new K,n=Ct.call(arguments,0);return n.splice(e===`staggerFromTo`?5:4,0,0),t[e].apply(t,n)}});var Mn=function(e,t,n){return e[t]=n},Nn=function(e,t,n){return e[t](n)},Pn=function(e,t,n,r){return e[t](r.fp,n)},Fn=function(e,t,n){return e.setAttribute(t,n)},In=function(e,t){return A(e[t])?Nn:M(e[t])&&e.setAttribute?Fn:Mn},Ln=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},Rn=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},zn=function(e,t){var n=t._pt,r=``;if(!e&&t.b)r=t.b;else if(e===1&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round((n.s+n.c*e)*1e4)/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},Bn=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},Vn=function(e,t,n,r){for(var i=this._pt,a;i;)a=i._next,i.p===r&&i.modifier(e,t,n),i=a},Hn=function(e){for(var t=this._pt,n,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?Xe(this,t,`_pt`):t.dep||(n=1),t=r;return!n},Un=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},Wn=function(e){for(var t=e._pt,n,r,i,a;t;){for(n=t._next,r=i;r&&r.pr>t.pr;)r=r._next;(t._prev=r?r._prev:a)?t._prev._next=t:i=t,(t._next=r)?r._prev=t:a=t,t=n}e._pt=i},J=function(){function e(e,t,n,r,i,a,o,s,c){this.t=t,this.s=r,this.c=i,this.p=n,this.r=a||Ln,this.d=o||this,this.set=s||Mn,this.pr=c||0,this._next=e,e&&(e._prev=this)}var t=e.prototype;return t.modifier=function(e,t,n){this.mSet=this.mSet||this.set,this.set=Un,this.m=e,this.mt=n,this.tween=t},e}();z(Me+`parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse`,function(e){return we[e]=1}),pe.TweenMax=pe.TweenLite=q,pe.TimelineLite=pe.TimelineMax=K,R=new K({sortChildren:!1,defaults:_,autoRemoveChildren:!0,id:`root`,smoothChildTiming:!0}),g.stringFilter=tn;var Gn=[],Kn={},qn=[],Jn=0,Yn=0,Xn=function(e){return(Kn[e]||qn).map(function(e){return e()})},Zn=function(){var e=Date.now(),t=[];e-Jn>2&&(Xn(`matchMediaInit`),Gn.forEach(function(e){var n=e.queries,r=e.conditions,i,a,o,s;for(a in n)i=ue.matchMedia(n[a]).matches,i&&(o=1),i!==r[a]&&(r[a]=i,s=1);s&&(e.revert(),o&&t.push(e))}),Xn(`matchMediaRevert`),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),Jn=e,Xn(`matchMedia`))},Qn=function(){function e(e,t){this.selector=t&&Dt(t),this.data=[],this._r=[],this.isReverted=!1,this.id=Yn++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){A(e)&&(n=t,t=e,e=A);var r=this,i=function(){var e=b,i=r.selector,a;return e&&e!==r&&e.data.push(r),n&&(r.selector=Dt(n)),b=r,a=t.apply(r,arguments),A(a)&&r._r.push(a),b=e,r.selector=i,r.isReverted=!1,a};return r.last=i,e===A?i(r,function(e){return r.add(null,e)}):e?r[e]=i:i},t.ignore=function(e){var t=b;b=null,e(this),b=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof q&&!(n.parent&&n.parent.data===`nested`)&&t.push(n)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var n=this;if(e?(function(){for(var t=n.getTweens(),r=n.data.length,i;r--;)i=n.data[r],i.data===`isFlip`&&(i.revert(),i.getChildren(!0,!0,!1).forEach(function(e){return t.splice(t.indexOf(e),1)}));for(t.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),r=n.data.length;r--;)i=n.data[r],i instanceof K?i.data!==`nested`&&(i.scrollTrigger&&i.scrollTrigger.revert(),i.kill()):!(i instanceof q)&&i.revert&&i.revert(e);n._r.forEach(function(t){return t(e,n)}),n.isReverted=!0})():this.data.forEach(function(e){return e.kill&&e.kill()}),this.clear(),t)for(var r=Gn.length;r--;)Gn[r].id===this.id&&Gn.splice(r,1)},t.revert=function(e){this.kill(e||{})},e}(),$n=function(){function e(e){this.contexts=[],this.scope=e,b&&b.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){N(e)||(e={matches:e});var r=new Qn(0,n||this.scope),i=r.conditions={},a,o,s;for(o in b&&!r.selector&&(r.selector=b.selector),this.contexts.push(r),t=r.add(`onMatch`,t),r.queries=e,e)o===`all`?s=1:(a=ue.matchMedia(e[o]),a&&(Gn.indexOf(r)<0&&Gn.push(r),(i[o]=a.matches)&&(s=1),a.addListener?a.addListener(Zn):a.addEventListener(`change`,Zn)));return s&&t(r,function(e){return r.add(null,e)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),er={registerPlugin:function(){[...arguments].forEach(function(e){return qt(e)})},timeline:function(e){return new K(e)},getTweensOf:function(e,t){return R.getTweensOf(e,t)},getProperty:function(e,t,n,r){k(e)&&(e=Et(e)[0]);var i=Pe(e||{}).get,a=n?He:Ve;return n===`native`&&(n=``),e&&(t?a((Oe[t]&&Oe[t].get||i)(e,t,n,r)):function(t,n,r){return a((Oe[t]&&Oe[t].get||i)(e,t,n,r))})},quickSetter:function(e,t,n){if(e=Et(e),e.length>1){var r=e.map(function(e){return Y.quickSetter(e,t,n)}),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var a=Oe[t],o=Pe(e),s=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(t){var r=new a;Gt._pt=0,r.init(e,n?t+n:t,Gt,0,[e]),r.render(1,r),Gt._pt&&Bn(1,Gt)}:o.set(e,s);return a?c:function(t){return c(e,s,n?t+n:t,o,1)}},quickTo:function(e,t,n){var r,i=Y.to(e,H((r={},r[t]=`+=0.1`,r.paused=!0,r.stagger=0,r),n||{})),a=function(e,n,r){return i.resetTo(t,e,n,r)};return a.tween=i,a},isTweening:function(e){return R.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=fn(e.ease,_.ease)),Ge(_,e||{})},config:function(e){return Ge(g,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.plugins,i=e.defaults,a=e.extendTimeline;(r||``).split(`,`).forEach(function(e){return e&&!Oe[e]&&!pe[e]&&ve(t+` effect requires `+e+` plugin.`)}),ke[t]=function(e,t,r){return n(Et(e),H(t||{},i),r)},a&&(K.prototype[t]=function(e,n,r){return this.add(ke[t](e,N(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){G[e]=fn(t)},parseEase:function(e,t){return arguments.length?fn(e,t):G},getById:function(e){return R.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new K(e),r,i;for(n.smoothChildTiming=P(e.smoothChildTiming),R.remove(n),n._dp=0,n._time=n._tTime=R._time,r=R._first;r;)i=r._next,(t||!(!r._dur&&r instanceof q&&r.vars.onComplete===r._targets[0]))&&ct(n,r,r._start-r._delay),r=i;return ct(R,n,0),n},context:function(e,t){return e?new Qn(e,t):b},matchMedia:function(e){return new $n(e)},matchMediaRefresh:function(){return Gn.forEach(function(e){var t=e.conditions,n,r;for(r in t)t[r]&&(t[r]=!1,n=1);n&&e.revert()})||Zn()},addEventListener:function(e,t){var n=Kn[e]||(Kn[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=Kn[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:Lt,wrapYoyo:Rt,distribute:kt,random:Mt,snap:jt,normalize:Ft,getUnit:U,clamp:St,splitColor:Xt,toArray:Et,selector:Dt,mapRange:Bt,pipe:Nt,unitize:Pt,interpolate:Vt,shuffle:Ot},install:ge,effects:ke,ticker:rn,updateRoot:K.updateRoot,plugins:Oe,globalTimeline:R,core:{PropTween:J,globals:ye,Tween:q,Timeline:K,Animation:vn,getCache:Pe,_removeLinkedListItem:Xe,reverting:function(){return y},context:function(e){return e&&b&&(b.data.push(e),e._ctx=b),b},suppressOverwrites:function(e){return v=e}}};z(`to,from,fromTo,delayedCall,set,killTweensOf`,function(e){return er[e]=q[e]}),rn.add(K.updateRoot),Gt=er.to({},{duration:0});var tr=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},nr=function(e,t){var n=e._targets,r,i,a;for(r in t)for(i=n.length;i--;)a=e._ptLookup[i][r],(a&&=a.d)&&(a._pt&&(a=tr(a,r)),a&&a.modifier&&a.modifier(t[r],e,n[i],r))},rr=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,i;if(k(n)&&(r={},z(n,function(e){return r[e]=1}),n=r),t){for(i in r={},n)r[i]=t(n[i]);n=r}nr(e,n)}}}},Y=er.registerPlugin({name:`attr`,init:function(e,t,n,r,i){var a,o,s;for(a in this.tween=n,t)s=e.getAttribute(a)||``,o=this.add(e,`setAttribute`,(s||0)+``,t[a],r,i,0,0,a),o.op=a,o.b=s,this._props.push(a)},render:function(e,t){for(var n=t._pt;n;)y?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:`endArray`,headless:1,init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},rr(`roundProps`,At),rr(`modifiers`),rr(`snap`,jt))||er;q.version=K.version=Y.version=`3.15.0`,he=1,F()&&an(),G.Power0,G.Power1,G.Power2,G.Power3,G.Power4,G.Linear,G.Quad,G.Cubic,G.Quart,G.Quint,G.Strong,G.Elastic,G.Back,G.SteppedEase,G.Bounce,G.Sine,G.Expo,G.Circ;var ir,ar,or,sr,cr,lr,ur,dr=function(){return typeof window<`u`},fr={},pr=180/Math.PI,mr=Math.PI/180,hr=Math.atan2,gr=1e8,_r=/([A-Z])/g,vr=/(left|right|width|margin|padding|x)/i,yr=/[\s,\(]\S/,br={autoAlpha:`opacity,visibility`,scale:`scaleX,scaleY`,alpha:`opacity`},xr=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Sr=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Cr=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},wr=function(e,t){return t.set(t.t,t.p,e===1?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},Tr=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},Er=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},Dr=function(e,t){return t.set(t.t,t.p,e===1?t.e:t.b,t)},Or=function(e,t,n){return e.style[t]=n},kr=function(e,t,n){return e.style.setProperty(t,n)},Ar=function(e,t,n){return e._gsap[t]=n},jr=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},Mr=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},Nr=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},X=`transform`,Z=X+`Origin`,Pr=function e(t,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(t in fr&&a){if(this.tfm=this.tfm||{},t!==`transform`)t=br[t]||t,~t.indexOf(`,`)?t.split(`,`).forEach(function(e){return r.tfm[e]=$r(i,e)}):this.tfm[t]=o.x?o[t]:$r(i,t),t===Z&&(this.tfm.zOrigin=o.zOrigin);else return br.transform.split(`,`).forEach(function(t){return e.call(r,t,n)});if(this.props.indexOf(X)>=0)return;o.svg&&(this.svgo=i.getAttribute(`data-svg-origin`),this.props.push(Z,n,``)),t=X}(a||n)&&this.props.push(t,n,a[t])},Fr=function(e){e.translate&&(e.removeProperty(`translate`),e.removeProperty(`scale`),e.removeProperty(`rotate`))},Ir=function(){var e=this.props,t=this.target,n=t.style,r=t._gsap,i,a;for(i=0;i=0?Vr[i]:``)+e},Ur=function(){dr()&&window.document&&(ir=window,ar=ir.document,or=ar.documentElement,cr=zr(`div`)||{style:{}},zr(`div`),X=Hr(X),Z=X+`Origin`,cr.style.cssText=`border-width:0;line-height:0;position:absolute;padding:0`,Rr=!!Hr(`perspective`),ur=Y.core.reverting,sr=1)},Wr=function(e){var t=e.ownerSVGElement,n=zr(`svg`,t&&t.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`),r=e.cloneNode(!0),i;r.style.display=`block`,n.appendChild(r),or.appendChild(n);try{i=r.getBBox()}catch{}return n.removeChild(r),or.removeChild(n),i},Gr=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},Kr=function(e){var t,n;try{t=e.getBBox()}catch{t=Wr(e),n=1}return t&&(t.width||t.height)||n||(t=Wr(e)),t&&!t.width&&!t.x&&!t.y?{x:+Gr(e,[`x`,`cx`,`x1`])||0,y:+Gr(e,[`y`,`cy`,`y1`])||0,width:0,height:0}:t},qr=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Kr(e))},Jr=function(e,t){if(t){var n=e.style,r;t in fr&&t!==Z&&(t=X),n.removeProperty?(r=t.substr(0,2),(r===`ms`||t.substr(0,6)===`webkit`)&&(t=`-`+t),n.removeProperty(r===`--`?t:t.replace(_r,`-$1`).toLowerCase())):n.removeAttribute(t)}},Yr=function(e,t,n,r,i,a){var o=new J(e._pt,t,n,0,1,a?Dr:Er);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},Xr={deg:1,rad:1,turn:1},Zr={grid:1,flex:1},Qr=function e(t,n,r,i){var a=parseFloat(r)||0,o=(r+``).trim().substr((a+``).length)||`px`,s=cr.style,c=vr.test(n),l=t.tagName.toLowerCase()===`svg`,u=(l?`client`:`offset`)+(c?`Width`:`Height`),d=100,f=i===`px`,p=i===`%`,m,h,g,_;if(i===o||!a||Xr[i]||Xr[o])return a;if(o!==`px`&&!f&&(a=e(t,n,r,`px`)),_=t.getCTM&&qr(t),(p||o===`%`)&&(fr[n]||~n.indexOf(`adius`)))return m=_?t.getBBox()[c?`width`:`height`]:t[u],B(p?a/m*d:a/100*m);if(s[c?`width`:`height`]=d+(f?o:i),h=i!==`rem`&&~n.indexOf(`adius`)||i===`em`&&t.appendChild&&!l?t:t.parentNode,_&&(h=(t.ownerSVGElement||{}).parentNode),(!h||h===ar||!h.appendChild)&&(h=ar.body),g=h._gsap,g&&p&&g.width&&c&&g.time===rn.time&&!g.uncache)return B(a/g.width*d);if(p&&(n===`height`||n===`width`)){var v=t.style[n];t.style[n]=d+i,m=t[u],v?t.style[n]=v:Jr(t,n)}else (p||o===`%`)&&!Zr[Br(h,`display`)]&&(s.position=Br(t,`position`)),h===t&&(s.position=`static`),h.appendChild(cr),m=cr[u],h.removeChild(cr),s.position=`absolute`;return c&&p&&(g=Pe(h),g.time=rn.time,g.width=h[u]),B(f?m*a/d:m&&a?d/m*a:0)},$r=function(e,t,n,r){var i;return sr||Ur(),t in br&&t!==`transform`&&(t=br[t],~t.indexOf(`,`)&&(t=t.split(`,`)[0])),fr[t]&&t!==`transform`?(i=di(e,r),i=t===`transformOrigin`?i.svg?i.origin:fi(Br(e,Z))+` `+i.zOrigin+`px`:i[t]):(i=e.style[t],(!i||i===`auto`||r||~(i+``).indexOf(`calc(`))&&(i=ii[t]&&ii[t](e,t,n)||Br(e,t)||Fe(e,t)||+(t===`opacity`))),n&&!~(i+``).trim().indexOf(` `)?Qr(e,t,i,n)+n:i},ei=function(e,t,n,r){if(!n||n===`none`){var i=Hr(t,e,1),a=i&&Br(e,i,1);a&&a!==n?(t=i,n=a):t===`borderColor`&&(n=Br(e,`borderTopColor`))}var o=new J(this._pt,e.style,t,0,1,zn),s=0,c=0,l,u,d,f,p,m,h,_,v,y,b,x;if(o.b=n,o.e=r,n+=``,r+=``,r.substring(0,6)===`var(--`&&(r=Br(e,r.substring(4,r.indexOf(`)`)))),r===`auto`&&(m=e.style[t],e.style[t]=r,r=Br(e,t)||r,m?e.style[t]=m:Jr(e,t)),l=[n,r],tn(l),n=l[0],r=l[1],d=n.match(ae)||[],x=r.match(ae)||[],x.length){for(;u=ae.exec(r);)h=u[0],v=r.substring(s,u.index),p?p=(p+1)%5:(v.substr(-5)===`rgba(`||v.substr(-5)===`hsla(`)&&(p=1),h!==(m=d[c++]||``)&&(f=parseFloat(m)||0,b=m.substr((f+``).length),h.charAt(1)===`=`&&(h=Ie(f,h)+b),_=parseFloat(h),y=h.substr((_+``).length),s=ae.lastIndex-y.length,y||(y=y||g.units[t]||b,s===r.length&&(r+=y,o.e+=y)),b!==y&&(f=Qr(e,t,m,y)||0),o._pt={_next:o._pt,p:v||c===1?v:`,`,s:f,c:_-f,m:p&&p<4||t===`zIndex`?Math.round:0});o.c=s-1;)o=i[c],fr[o]&&(s=1,o=o===`transformOrigin`?Z:X),Jr(n,o);s&&(Jr(n,X),a&&(a.svg&&n.removeAttribute(`transform`),r.scale=r.rotate=r.translate=`none`,di(n,1),a.uncache=1,Fr(r)))}},ii={clearProps:function(e,t,n,r,i){if(i.data!==`isFromStart`){var a=e._pt=new J(e._pt,t,n,0,0,ri);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},ai=[1,0,0,1,0,0],oi={},si=function(e){return e===`matrix(1, 0, 0, 1, 0, 0)`||e===`none`||!e},ci=function(e){var t=Br(e,X);return si(t)?ai:t.substr(7).match(ie).map(B)},li=function(e,t){var n=e._gsap||Pe(e),r=e.style,i=ci(e),a,o,s,c;return n.svg&&e.getAttribute(`transform`)?(s=e.transform.baseVal.consolidate().matrix,i=[s.a,s.b,s.c,s.d,s.e,s.f],i.join(`,`)===`1,0,0,1,0,0`?ai:i):(i===ai&&!e.offsetParent&&e!==or&&!n.svg&&(s=r.display,r.display=`block`,a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,o=e.nextElementSibling,or.appendChild(e)),i=ci(e),s?r.display=s:Jr(e,`display`),c&&(o?a.insertBefore(e,o):a?a.appendChild(e):or.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},ui=function(e,t,n,r,i,a){var o=e._gsap,s=i||li(e,!0),c=o.xOrigin||0,l=o.yOrigin||0,u=o.xOffset||0,d=o.yOffset||0,f=s[0],p=s[1],m=s[2],h=s[3],g=s[4],_=s[5],v=t.split(` `),y=parseFloat(v[0])||0,b=parseFloat(v[1])||0,x,S,C,w;n?s!==ai&&(S=f*h-p*m)&&(C=h/S*y+b*(-m/S)+(m*_-h*g)/S,w=y*(-p/S)+f/S*b-(f*_-p*g)/S,y=C,b=w):(x=Kr(e),y=x.x+(~v[0].indexOf(`%`)?y/100*x.width:y),b=x.y+(~(v[1]||v[0]).indexOf(`%`)?b/100*x.height:b)),r||r!==!1&&o.smooth?(g=y-c,_=b-l,o.xOffset=u+(g*f+_*m)-g,o.yOffset=d+(g*p+_*h)-_):o.xOffset=o.yOffset=0,o.xOrigin=y,o.yOrigin=b,o.smooth=!!r,o.origin=t,o.originIsAbsolute=!!n,e.style[Z]=`0px 0px`,a&&(Yr(a,o,`xOrigin`,c,y),Yr(a,o,`yOrigin`,l,b),Yr(a,o,`xOffset`,u,o.xOffset),Yr(a,o,`yOffset`,d,o.yOffset)),e.setAttribute(`data-svg-origin`,y+` `+b)},di=function(e,t){var n=e._gsap||new _n(e);if(`x`in n&&!t&&!n.uncache)return n;var r=e.style,i=n.scaleX<0,a=`px`,o=`deg`,s=getComputedStyle(e),c=Br(e,Z)||`0`,l=u=d=m=h=_=v=y=b=0,u,d,f=p=1,p,m,h,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,I,ee,L,te,ne,re;return n.svg=!!(e.getCTM&&qr(e)),s.translate&&((s.translate!==`none`||s.scale!==`none`||s.rotate!==`none`)&&(r[X]=(s.translate===`none`?``:`translate3d(`+(s.translate+` 0 0`).split(` `).slice(0,3).join(`, `)+`) `)+(s.rotate===`none`?``:`rotate(`+s.rotate+`) `)+(s.scale===`none`?``:`scale(`+s.scale.split(` `).join(`,`)+`) `)+(s[X]===`none`?``:s[X])),r.scale=r.rotate=r.translate=`none`),C=li(e,n.svg),n.svg&&(n.uncache?(P=e.getBBox(),c=n.xOrigin-P.x+`px `+(n.yOrigin-P.y)+`px`,N=``):N=!t&&e.getAttribute(`data-svg-origin`),ui(e,N||c,!!N||n.originIsAbsolute,n.smooth!==!1,C)),x=n.xOrigin||0,S=n.yOrigin||0,C!==ai&&(D=C[0],O=C[1],k=C[2],A=C[3],l=j=C[4],u=M=C[5],C.length===6?(f=Math.sqrt(D*D+O*O),p=Math.sqrt(A*A+k*k),m=D||O?hr(O,D)*pr:0,v=k||A?hr(k,A)*pr+m:0,v&&(p*=Math.abs(Math.cos(v*mr))),n.svg&&(l-=x-(x*D+S*k),u-=S-(x*O+S*A))):(re=C[6],te=C[7],I=C[8],ee=C[9],L=C[10],ne=C[11],l=C[12],u=C[13],d=C[14],w=hr(re,L),h=w*pr,w&&(T=Math.cos(-w),E=Math.sin(-w),N=j*T+I*E,P=M*T+ee*E,F=re*T+L*E,I=j*-E+I*T,ee=M*-E+ee*T,L=re*-E+L*T,ne=te*-E+ne*T,j=N,M=P,re=F),w=hr(-k,L),_=w*pr,w&&(T=Math.cos(-w),E=Math.sin(-w),N=D*T-I*E,P=O*T-ee*E,F=k*T-L*E,ne=A*E+ne*T,D=N,O=P,k=F),w=hr(O,D),m=w*pr,w&&(T=Math.cos(w),E=Math.sin(w),N=D*T+O*E,P=j*T+M*E,O=O*T-D*E,M=M*T-j*E,D=N,j=P),h&&Math.abs(h)+Math.abs(m)>359.9&&(h=m=0,_=180-_),f=B(Math.sqrt(D*D+O*O+k*k)),p=B(Math.sqrt(M*M+re*re)),w=hr(j,M),v=Math.abs(w)>2e-4?w*pr:0,b=ne?1/(ne<0?-ne:ne):0),n.svg&&(N=e.getAttribute(`transform`),n.forceCSS=e.setAttribute(`transform`,``)||!si(Br(e,X)),N&&e.setAttribute(`transform`,N))),Math.abs(v)>90&&Math.abs(v)<270&&(i?(f*=-1,v+=m<=0?180:-180,m+=m<=0?180:-180):(p*=-1,v+=v<=0?180:-180)),t||=n.uncache,n.x=l-((n.xPercent=l&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-l)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+a,n.y=u-((n.yPercent=u&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-u)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+a,n.z=d+a,n.scaleX=B(f),n.scaleY=B(p),n.rotation=B(m)+o,n.rotationX=B(h)+o,n.rotationY=B(_)+o,n.skewX=v+o,n.skewY=y+o,n.transformPerspective=b+a,(n.zOrigin=parseFloat(c.split(` `)[2])||!t&&n.zOrigin||0)&&(r[Z]=fi(c)),n.xOffset=n.yOffset=0,n.force3D=g.force3D,n.renderTransform=n.svg?yi:Rr?vi:mi,n.uncache=0,n},fi=function(e){return(e=e.split(` `))[0]+` `+e[1]},pi=function(e,t,n){var r=U(t);return B(parseFloat(t)+parseFloat(Qr(e,`x`,n+`px`,r)))+r},mi=function(e,t){t.z=`0px`,t.rotationY=t.rotationX=`0deg`,t.force3D=0,vi(e,t)},hi=`0deg`,gi=`0px`,_i=`) `,vi=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,c=n.rotation,l=n.rotationY,u=n.rotationX,d=n.skewX,f=n.skewY,p=n.scaleX,m=n.scaleY,h=n.transformPerspective,g=n.force3D,_=n.target,v=n.zOrigin,y=``,b=g===`auto`&&e&&e!==1||g===!0;if(v&&(u!==hi||l!==hi)){var x=parseFloat(l)*mr,S=Math.sin(x),C=Math.cos(x),w;x=parseFloat(u)*mr,w=Math.cos(x),a=pi(_,a,S*w*-v),o=pi(_,o,-Math.sin(x)*-v),s=pi(_,s,C*w*-v+v)}h!==gi&&(y+=`perspective(`+h+_i),(r||i)&&(y+=`translate(`+r+`%, `+i+`%) `),(b||a!==gi||o!==gi||s!==gi)&&(y+=s!==gi||b?`translate3d(`+a+`, `+o+`, `+s+`) `:`translate(`+a+`, `+o+_i),c!==hi&&(y+=`rotate(`+c+_i),l!==hi&&(y+=`rotateY(`+l+_i),u!==hi&&(y+=`rotateX(`+u+_i),(d!==hi||f!==hi)&&(y+=`skew(`+d+`, `+f+_i),(p!==1||m!==1)&&(y+=`scale(`+p+`, `+m+_i),_.style[X]=y||`translate(0, 0)`},yi=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.rotation,c=n.skewX,l=n.skewY,u=n.scaleX,d=n.scaleY,f=n.target,p=n.xOrigin,m=n.yOrigin,h=n.xOffset,g=n.yOffset,_=n.forceCSS,v=parseFloat(a),y=parseFloat(o),b,x,S,C,w;s=parseFloat(s),c=parseFloat(c),l=parseFloat(l),l&&(l=parseFloat(l),c+=l,s+=l),s||c?(s*=mr,c*=mr,b=Math.cos(s)*u,x=Math.sin(s)*u,S=Math.sin(s-c)*-d,C=Math.cos(s-c)*d,c&&(l*=mr,w=Math.tan(c-l),w=Math.sqrt(1+w*w),S*=w,C*=w,l&&(w=Math.tan(l),w=Math.sqrt(1+w*w),b*=w,x*=w)),b=B(b),x=B(x),S=B(S),C=B(C)):(b=u,C=d,x=S=0),(v&&!~(a+``).indexOf(`px`)||y&&!~(o+``).indexOf(`px`))&&(v=Qr(f,`x`,a,`px`),y=Qr(f,`y`,o,`px`)),(p||m||h||g)&&(v=B(v+p-(p*b+m*S)+h),y=B(y+m-(p*x+m*C)+g)),(r||i)&&(w=f.getBBox(),v=B(v+r/100*w.width),y=B(y+i/100*w.height)),w=`matrix(`+b+`,`+x+`,`+S+`,`+C+`,`+v+`,`+y+`)`,f.setAttribute(`transform`,w),_&&(f.style[X]=w)},bi=function(e,t,n,r,i){var a=360,o=k(i),s=parseFloat(i)*(o&&~i.indexOf(`rad`)?pr:1)-r,c=r+s+`deg`,l,u;return o&&(l=i.split(`_`)[1],l===`short`&&(s%=a,s!==s%(a/2)&&(s+=s<0?a:-a)),l===`cw`&&s<0?s=(s+a*gr)%a-~~(s/a)*a:l===`ccw`&&s>0&&(s=(s-a*gr)%a-~~(s/a)*a)),e._pt=u=new J(e._pt,t,n,r,s,Sr),u.e=c,u.u=`deg`,e._props.push(n),u},xi=function(e,t){for(var n in t)e[n]=t[n];return e},Si=function(e,t,n){var r=xi({},n._gsap),i=`perspective,force3D,transformOrigin,svgOrigin`,a=n.style,o,s,c,l,u,d,f,p;for(s in r.svg?(c=n.getAttribute(`transform`),n.setAttribute(`transform`,``),a[X]=t,o=di(n,1),Jr(n,X),n.setAttribute(`transform`,c)):(c=getComputedStyle(n)[X],a[X]=t,o=di(n,1),a[X]=c),fr)c=r[s],l=o[s],c!==l&&i.indexOf(s)<0&&(f=U(c),p=U(l),u=f===p?parseFloat(c):Qr(n,s,c,p),d=parseFloat(l),e._pt=new J(e._pt,o,s,u,d-u,xr),e._pt.u=p||0,e._props.push(s));xi(o,r)};z(`padding,margin,Width,Radius`,function(e,t){var n=`Top`,r=`Right`,i=`Bottom`,a=`Left`,o=(t<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map(function(n){return t<2?e+n:`border`+n+e});ii[t>1?`border`+e:e]=function(e,t,n,r,i){var a,s;if(arguments.length<4)return a=o.map(function(t){return $r(e,t,n)}),s=a.join(` `),s.split(a[0]).length===5?a[0]:s;a=(r+``).split(` `),s={},o.forEach(function(e,t){return s[e]=a[t]=a[t]||a[(t-1)/2|0]}),e.init(t,s,i)}});var Ci={name:`css`,register:Ur,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,i){var a=this._props,o=e.style,s=n.vars.startAt,c,l,u,d,f,p,m,h,_,v,y,b,x,S,C,w,T;for(m in sr||Ur(),this.styles=this.styles||Lr(e),w=this.styles.props,this.tween=n,t)if(m!==`autoRound`&&(l=t[m],!(Oe[m]&&Sn(m,t,n,r,e,i)))){if(f=typeof l,p=ii[m],f===`function`&&(l=l.call(n,r,e,i),f=typeof l),f===`string`&&~l.indexOf(`random(`)&&(l=zt(l)),p)p(this,e,m,l,n)&&(C=1);else if(m.substr(0,2)===`--`)c=(getComputedStyle(e).getPropertyValue(m)+``).trim(),l+=``,$t.lastIndex=0,$t.test(c)||(h=U(c),_=U(l),_?h!==_&&(c=Qr(e,m,c,_)+_):h&&(l+=h)),this.add(o,`setProperty`,c,l,r,i,0,0,m),a.push(m),w.push(m,0,o[m]);else if(f!==`undefined`){if(s&&m in s?(c=typeof s[m]==`function`?s[m].call(n,r,e,i):s[m],k(c)&&~c.indexOf(`random(`)&&(c=zt(c)),U(c+``)||c===`auto`||(c+=g.units[m]||U($r(e,m))||``),(c+``).charAt(1)===`=`&&(c=$r(e,m))):c=$r(e,m),d=parseFloat(c),v=f===`string`&&l.charAt(1)===`=`&&l.substr(0,2),v&&(l=l.substr(2)),u=parseFloat(l),m in br&&(m===`autoAlpha`&&(d===1&&$r(e,`visibility`)===`hidden`&&u&&(d=0),w.push(`visibility`,0,o.visibility),Yr(this,o,`visibility`,d?`inherit`:`hidden`,u?`inherit`:`hidden`,!u)),m!==`scale`&&m!==`transform`&&(m=br[m],~m.indexOf(`,`)&&(m=m.split(`,`)[0]))),y=m in fr,y){if(this.styles.save(m),T=l,f===`string`&&l.substring(0,6)===`var(--`){if(l=Br(e,l.substring(4,l.indexOf(`)`))),l.substring(0,5)===`calc(`){var E=e.style.perspective;e.style.perspective=l,l=Br(e,`perspective`),E?e.style.perspective=E:Jr(e,`perspective`)}u=parseFloat(l)}if(b||(x=e._gsap,x.renderTransform&&!t.parseTransform||di(e,t.parseTransform),S=t.smoothOrigin!==!1&&x.smooth,b=this._pt=new J(this._pt,o,X,0,1,x.renderTransform,x,0,-1),b.dep=1),m===`scale`)this._pt=new J(this._pt,x,`scaleY`,x.scaleY,(v?Ie(x.scaleY,v+u):u)-x.scaleY||0,xr),this._pt.u=0,a.push(`scaleY`,m),m+=`X`;else if(m===`transformOrigin`){w.push(Z,0,o[Z]),l=ni(l),x.svg?ui(e,l,0,S,0,this):(_=parseFloat(l.split(` `)[2])||0,_!==x.zOrigin&&Yr(this,x,`zOrigin`,x.zOrigin,_),Yr(this,o,m,fi(c),fi(l)));continue}else if(m===`svgOrigin`){ui(e,l,1,S,0,this);continue}else if(m in oi){bi(this,x,m,d,v?Ie(d,v+l):l);continue}else if(m===`smoothOrigin`){Yr(this,x,`smooth`,x.smooth,l);continue}else if(m===`force3D`){x[m]=l;continue}else if(m===`transform`){Si(this,l,e);continue}}else m in o||(m=Hr(m)||m);if(y||(u||u===0)&&(d||d===0)&&!yr.test(l)&&m in o)h=(c+``).substr((d+``).length),u||=0,_=U(l)||(m in g.units?g.units[m]:h),h!==_&&(d=Qr(e,m,c,_)),this._pt=new J(this._pt,y?x:o,m,d,(v?Ie(d,v+u):u)-d,!y&&(_===`px`||m===`zIndex`)&&t.autoRound!==!1?Tr:xr),this._pt.u=_||0,y&&T!==l?(this._pt.b=c,this._pt.e=T,this._pt.r=wr):h!==_&&_!==`%`&&(this._pt.b=c,this._pt.r=Cr);else if(m in o)ei.call(this,e,m,c,v?v+l:l);else if(m in e)this.add(e,m,c||e[m],v?v+l:l,r,i);else if(m!==`parseTransform`){_e(m,l);continue}y||(m in o?w.push(m,0,o[m]):typeof e[m]==`function`?w.push(m,2,e[m]()):w.push(m,1,c||e[m])),a.push(m)}}C&&Wn(this)},render:function(e,t){if(t.tween._time||!ur())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:$r,aliases:br,getSetter:function(e,t,n){var r=br[t];return r&&r.indexOf(`,`)<0&&(t=r),t in fr&&t!==Z&&(e._gsap.x||$r(e,`x`))?n&&lr===n?t===`scale`?jr:Ar:(lr=n||{})&&(t===`scale`?Mr:Nr):e.style&&!M(e.style[t])?Or:~t.indexOf(`-`)?kr:In(e,t)},core:{_removeProperty:Jr,_getMatrix:li}};Y.utils.checkPrefix=Hr,Y.core.getStyleSaver=Lr,(function(e,t,n,r){var i=z(e+`,`+t+`,`+n,function(e){fr[e]=1});z(t,function(e){g.units[e]=`deg`,oi[e]=1}),br[i[13]]=e+`,`+t,z(r,function(e){var t=e.split(`:`);br[t[1]]=i[t[0]]})})(`x,y,z,scale,scaleX,scaleY,xPercent,yPercent`,`rotation,rotationX,rotationY,skewX,skewY`,`transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective`,`0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY`),z(`x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective`,function(e){g.units[e]=`px`}),Y.registerPlugin(Ci);var Q=Y.registerPlugin(Ci)||Y;Q.core.Tween;var wi=typeof document<`u`?p.useLayoutEffect:p.useEffect,Ti=e=>e&&!Array.isArray(e)&&typeof e==`object`,Ei=[],Di={},Oi=Q,ki=(e,t=Ei)=>{let n=Di;Ti(e)?(n=e,e=null,t=`dependencies`in n?n.dependencies:Ei):Ti(t)&&(n=t,t=`dependencies`in n?n.dependencies:Ei),e&&typeof e!=`function`&&console.warn(`First parameter must be a function or config object`);let{scope:r,revertOnUpdate:i}=n,a=(0,p.useRef)(!1),o=(0,p.useRef)(Oi.context(()=>{},r)),s=(0,p.useRef)(e=>o.current.add(null,e)),c=t&&t.length&&!i;return c&&wi(()=>(a.current=!0,()=>o.current.revert()),Ei),wi(()=>{if(e&&o.current.add(e,r),!c||!a.current)return()=>o.current.revert()},t),{context:o.current,contextSafe:s.current}};ki.register=e=>{Oi=e},ki.headless=!0;var $=i();Q.registerPlugin(ki);function Ai({size:e=12,maxDistance:t=5,pupilColor:n=`#2D2D2D`}){return(0,$.jsx)(`div`,{className:`pupil rounded-full`,"data-max-distance":t,style:{backgroundColor:n,height:e,width:e,willChange:`transform`}})}function ji({size:e=48,pupilSize:t=16,maxDistance:n=10,eyeColor:r=`white`,pupilColor:i=`#2D2D2D`}){return(0,$.jsx)(`div`,{className:`eyeball flex items-center justify-center overflow-hidden rounded-full`,"data-max-distance":n,style:{backgroundColor:r,height:e,width:e,willChange:`height`},children:(0,$.jsx)(`div`,{className:`eyeball-pupil rounded-full`,style:{backgroundColor:i,height:t,width:t,willChange:`transform`}})})}function Mi({isTyping:e=!1,showPassword:t=!1,passwordLength:n=0}){let r=(0,p.useRef)(null),i=(0,p.useRef)({x:0,y:0}),a=(0,p.useRef)(0),o=(0,p.useRef)(null),s=(0,p.useRef)(null),c=(0,p.useRef)(null),l=(0,p.useRef)(null),u=(0,p.useRef)(null),d=(0,p.useRef)(null),f=(0,p.useRef)(null),m=(0,p.useRef)(null),h=(0,p.useRef)(null),g=(0,p.useRef)(void 0),_=(0,p.useRef)(void 0),v=(0,p.useRef)(void 0),y=(0,p.useRef)(void 0),b=(0,p.useRef)(!1),x=n>0&&!t,S=n>0&&t,C=(0,p.useRef)({isHidingPassword:x,isLooking:!1,isShowingPassword:S,isTyping:e});C.current={isHidingPassword:x,isLooking:b.current,isShowingPassword:S,isTyping:e};let{contextSafe:w}=ki(()=>{Q.set(`.pupil`,{x:0,y:0}),Q.set(`.eyeball-pupil`,{x:0,y:0})},{scope:r}),T=(0,p.useRef)(null);(0,p.useEffect)(()=>{if(!(o.current&&s.current&&l.current&&c.current&&u.current&&d.current&&m.current&&f.current&&h.current))return;let e={blackFaceLeft:Q.quickTo(d.current,`left`,{duration:.3,ease:`power2.out`}),blackFaceTop:Q.quickTo(d.current,`top`,{duration:.3,ease:`power2.out`}),blackSkew:Q.quickTo(s.current,`skewX`,{duration:.3,ease:`power2.out`}),blackX:Q.quickTo(s.current,`x`,{duration:.3,ease:`power2.out`}),mouthX:Q.quickTo(h.current,`x`,{duration:.2,ease:`power2.out`}),mouthY:Q.quickTo(h.current,`y`,{duration:.2,ease:`power2.out`}),orangeFaceX:Q.quickTo(m.current,`x`,{duration:.2,ease:`power2.out`}),orangeFaceY:Q.quickTo(m.current,`y`,{duration:.2,ease:`power2.out`}),orangeSkew:Q.quickTo(l.current,`skewX`,{duration:.3,ease:`power2.out`}),purpleFaceLeft:Q.quickTo(u.current,`left`,{duration:.3,ease:`power2.out`}),purpleFaceTop:Q.quickTo(u.current,`top`,{duration:.3,ease:`power2.out`}),purpleHeight:Q.quickTo(o.current,`height`,{duration:.3,ease:`power2.out`}),purpleSkew:Q.quickTo(o.current,`skewX`,{duration:.3,ease:`power2.out`}),purpleX:Q.quickTo(o.current,`x`,{duration:.3,ease:`power2.out`}),yellowFaceX:Q.quickTo(f.current,`x`,{duration:.2,ease:`power2.out`}),yellowFaceY:Q.quickTo(f.current,`y`,{duration:.2,ease:`power2.out`}),yellowSkew:Q.quickTo(c.current,`skewX`,{duration:.3,ease:`power2.out`})};T.current=e;let t=e=>{let t=e.getBoundingClientRect(),n=t.left+t.width/2,r=t.top+t.height/3,a=i.current.x-n,o=i.current.y-r;return{bodySkew:Math.max(-6,Math.min(6,-a/120)),faceX:Math.max(-15,Math.min(15,a/20)),faceY:Math.max(-10,Math.min(10,o/30))}},n=(e,t)=>{let n=e.getBoundingClientRect(),r=n.left+n.width/2,a=n.top+n.height/2,o=i.current.x-r,s=i.current.y-a,c=Math.min(Math.sqrt(o**2+s**2),t),l=Math.atan2(s,o);return{x:Math.cos(l)*c,y:Math.sin(l)*c}},p=()=>{let i=r.current;if(!i)return;let{isHidingPassword:u,isLooking:d,isShowingPassword:f,isTyping:m}=C.current;if(o.current&&!f){let n=t(o.current);m||u?(e.purpleSkew(n.bodySkew-12),e.purpleX(40),e.purpleHeight(440)):(e.purpleSkew(n.bodySkew),e.purpleX(0),e.purpleHeight(400))}if(s.current&&!f){let n=t(s.current);d?(e.blackSkew(n.bodySkew*1.5+10),e.blackX(20)):m||u?(e.blackSkew(n.bodySkew*1.5),e.blackX(0)):(e.blackSkew(n.bodySkew),e.blackX(0))}if(l.current&&!f){let n=t(l.current);e.orangeSkew(n.bodySkew)}if(c.current&&!f){let n=t(c.current);e.yellowSkew(n.bodySkew)}if(o.current&&!f&&!d){let n=t(o.current),r=n.faceX>=0?Math.min(25,n.faceX*1.5):n.faceX;e.purpleFaceLeft(45+r),e.purpleFaceTop(40+n.faceY)}if(s.current&&!f&&!d){let n=t(s.current);e.blackFaceLeft(26+n.faceX),e.blackFaceTop(32+n.faceY)}if(l.current&&!f){let n=t(l.current);e.orangeFaceX(n.faceX),e.orangeFaceY(n.faceY)}if(c.current&&!f){let n=t(c.current);e.yellowFaceX(n.faceX),e.yellowFaceY(n.faceY),e.mouthX(n.faceX),e.mouthY(n.faceY)}if(!f){let e=i.querySelectorAll(`.pupil`);for(let t of e){let e=t,r=n(e,Number(e.dataset.maxDistance)||5);Q.set(e,{x:r.x,y:r.y})}if(!d){let e=i.querySelectorAll(`.eyeball`);for(let t of e){let e=t,r=Number(e.dataset.maxDistance)||10,i=e.querySelector(`.eyeball-pupil`);if(!i)continue;let a=n(e,r);Q.set(i,{x:a.x,y:a.y})}}}a.current=requestAnimationFrame(p)},g=e=>{i.current={x:e.clientX,y:e.clientY}};return window.addEventListener(`mousemove`,g,{passive:!0}),a.current=requestAnimationFrame(p),()=>{window.removeEventListener(`mousemove`,g),cancelAnimationFrame(a.current)}},[]),(0,p.useEffect)(()=>{let e=o.current?.querySelectorAll(`.eyeball`);if(!e?.length)return;let t=()=>{g.current=setTimeout(()=>{for(let t of e)Q.to(t,{duration:.08,ease:`power2.in`,height:2});setTimeout(()=>{for(let t of e){let e=Number(t.style.width.replace(`px`,``))||18;Q.to(t,{duration:.08,ease:`power2.out`,height:e})}t()},150)},Math.random()*4e3+3e3)};return t(),()=>clearTimeout(g.current)},[]),(0,p.useEffect)(()=>{let e=s.current?.querySelectorAll(`.eyeball`);if(!e?.length)return;let t=()=>{_.current=setTimeout(()=>{for(let t of e)Q.to(t,{duration:.08,ease:`power2.in`,height:2});setTimeout(()=>{for(let t of e){let e=Number(t.style.width.replace(`px`,``))||16;Q.to(t,{duration:.08,ease:`power2.out`,height:e})}t()},150)},Math.random()*4e3+3e3)};return t(),()=>clearTimeout(_.current)},[]);let E=w(()=>{let e=T.current;e&&(e.purpleFaceLeft(55),e.purpleFaceTop(65),e.blackFaceLeft(32),e.blackFaceTop(12)),o.current?.querySelectorAll(`.eyeball-pupil`).forEach(e=>{Q.to(e,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:3,y:4})}),s.current?.querySelectorAll(`.eyeball-pupil`).forEach(e=>{Q.to(e,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:0,y:-4})})}),D=w(()=>{let e=T.current;e&&(e.purpleFaceLeft(55),e.purpleFaceTop(65))}),O=w(()=>{let e=T.current;e&&(e.purpleSkew(0),e.blackSkew(0),e.orangeSkew(0),e.yellowSkew(0),e.purpleX(0),e.blackX(0),e.purpleHeight(400),e.purpleFaceLeft(20),e.purpleFaceTop(35),e.blackFaceLeft(10),e.blackFaceTop(28),e.orangeFaceX(-32),e.orangeFaceY(-5),e.yellowFaceX(-32),e.yellowFaceY(-5),e.mouthX(-30),e.mouthY(0)),o.current?.querySelectorAll(`.eyeball-pupil`).forEach(e=>{Q.to(e,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:-4,y:-4})}),s.current?.querySelectorAll(`.eyeball-pupil`).forEach(e=>{Q.to(e,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:-4,y:-4})}),l.current?.querySelectorAll(`.pupil`).forEach(e=>{Q.to(e,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:-5,y:-4})}),c.current?.querySelectorAll(`.pupil`).forEach(e=>{Q.to(e,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:-5,y:-4})})});return(0,p.useEffect)(()=>{if(!S||n<=0){clearTimeout(v.current);return}let e=o.current?.querySelectorAll(`.eyeball-pupil`);if(!e?.length)return;let t=()=>{v.current=setTimeout(()=>{for(let t of e)Q.to(t,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:4,y:5});let n=T.current;n&&(n.purpleFaceLeft(20),n.purpleFaceTop(35)),setTimeout(()=>{for(let t of e)Q.to(t,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:-4,y:-4});t()},800)},Math.random()*3e3+2e3)};return t(),()=>clearTimeout(v.current)},[S,n]),(0,p.useEffect)(()=>(e&&!S?(b.current=!0,C.current.isLooking=!0,E(),clearTimeout(y.current),y.current=setTimeout(()=>{b.current=!1,C.current.isLooking=!1,o.current?.querySelectorAll(`.eyeball-pupil`).forEach(e=>{Q.killTweensOf(e)})},800)):(clearTimeout(y.current),b.current=!1,C.current.isLooking=!1),()=>clearTimeout(y.current)),[E,S,e]),(0,p.useEffect)(()=>{S?O():x&&D()},[D,O,x,S]),(0,$.jsxs)(`div`,{className:`relative mx-auto h-[320px] w-[440px] max-w-full lg:h-[400px] lg:w-[550px]`,ref:r,children:[(0,$.jsx)(`div`,{className:`absolute bottom-0 left-[70px] z-[1] rounded-t-[10px]`,ref:o,style:{backgroundColor:`#6C3FF5`,borderRadius:`10px 10px 0 0`,height:400,transformOrigin:`bottom center`,width:180,willChange:`transform`},children:(0,$.jsxs)(`div`,{className:`absolute flex gap-8`,ref:u,style:{left:45,top:40},children:[(0,$.jsx)(ji,{maxDistance:5,pupilColor:`#2D2D2D`,pupilSize:7,size:18}),(0,$.jsx)(ji,{maxDistance:5,pupilColor:`#2D2D2D`,pupilSize:7,size:18})]})}),(0,$.jsx)(`div`,{className:`absolute bottom-0 left-[240px] z-[2] rounded-t-[8px]`,ref:s,style:{backgroundColor:`#2D2D2D`,borderRadius:`8px 8px 0 0`,height:310,transformOrigin:`bottom center`,width:120,willChange:`transform`},children:(0,$.jsxs)(`div`,{className:`absolute flex gap-6`,ref:d,style:{left:26,top:32},children:[(0,$.jsx)(ji,{maxDistance:4,pupilColor:`#2D2D2D`,pupilSize:6,size:16}),(0,$.jsx)(ji,{maxDistance:4,pupilColor:`#2D2D2D`,pupilSize:6,size:16})]})}),(0,$.jsx)(`div`,{className:`absolute bottom-0 left-0 z-[3]`,ref:l,style:{backgroundColor:`#FF9B6B`,borderRadius:`120px 120px 0 0`,height:200,transformOrigin:`bottom center`,width:240,willChange:`transform`},children:(0,$.jsxs)(`div`,{className:`absolute flex gap-8`,ref:m,style:{left:82,top:90},children:[(0,$.jsx)(Ai,{maxDistance:5,pupilColor:`#2D2D2D`,size:12}),(0,$.jsx)(Ai,{maxDistance:5,pupilColor:`#2D2D2D`,size:12})]})}),(0,$.jsxs)(`div`,{className:`absolute bottom-0 left-[310px] z-[4]`,ref:c,style:{backgroundColor:`#E8D754`,borderRadius:`70px 70px 0 0`,height:230,transformOrigin:`bottom center`,width:140,willChange:`transform`},children:[(0,$.jsxs)(`div`,{className:`absolute flex gap-6`,ref:f,style:{left:52,top:40},children:[(0,$.jsx)(Ai,{maxDistance:5,pupilColor:`#2D2D2D`,size:12}),(0,$.jsx)(Ai,{maxDistance:5,pupilColor:`#2D2D2D`,size:12})]}),(0,$.jsx)(`div`,{className:`absolute rounded-full`,ref:h,style:{backgroundColor:`#2D2D2D`,height:4,left:40,top:88,width:80}})]})]})}function Ni({className:e}){let{isTyping:t,passwordLength:i,showPassword:a}=d();return(0,$.jsxs)(`div`,{className:s(`relative overflow-hidden bg-muted text-foreground`,e),children:[(0,$.jsx)(`div`,{className:`absolute inset-0 bg-[linear-gradient(rgba(0,0,0,0.03)_1px,transparent_1px),linear-gradient(90deg,rgba(0,0,0,0.03)_1px,transparent_1px)] bg-[size:48px_48px] opacity-60 dark:bg-[linear-gradient(rgba(255,255,255,0.03)_1px,transparent_1px),linear-gradient(90deg,rgba(255,255,255,0.03)_1px,transparent_1px)]`}),(0,$.jsx)(`div`,{className:`absolute top-[-10%] right-[-5%] size-80 rounded-full bg-primary/5 blur-3xl`}),(0,$.jsx)(`div`,{className:`absolute bottom-[-10%] left-[-5%] size-72 rounded-full bg-primary/5 blur-3xl`}),(0,$.jsxs)(`div`,{className:`relative z-20 flex h-full flex-col items-center justify-center gap-10 p-12`,children:[(0,$.jsxs)(`div`,{className:`w-full space-y-4 text-center`,children:[(0,$.jsx)(`p`,{className:`text-muted-foreground text-xs uppercase tracking-[0.3em]`,children:`USDT Payment Gateway`}),(0,$.jsx)(`h2`,{className:`font-semibold text-3xl tracking-tight xl:text-4xl`,children:n()}),(0,$.jsx)(`p`,{className:`mx-auto max-w-md text-muted-foreground text-sm leading-relaxed`,children:r()})]}),(0,$.jsx)(`div`,{className:`w-full rounded-[36px] border bg-background/50 px-6 py-8 shadow-2xl backdrop-blur-sm`,children:(0,$.jsx)(Mi,{isTyping:t,passwordLength:i,showPassword:a})})]})]})}function Pi(){return(0,$.jsx)(f,{children:(0,$.jsxs)(`div`,{className:`container relative grid h-svh flex-col items-center justify-center lg:max-w-none lg:grid-cols-2 lg:px-0`,children:[(0,$.jsx)(Ni,{className:`relative h-full overflow-hidden bg-muted max-lg:hidden`}),(0,$.jsxs)(`div`,{className:`flex h-full min-w-xs flex-col justify-center lg:p-8`,children:[(0,$.jsx)(`div`,{className:`mx-auto flex w-full flex-col justify-center space-y-2 py-8 sm:p-8 md:p-0`,children:(0,$.jsxs)(`div`,{className:`flex w-full items-center justify-between`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,$.jsx)(u,{className:`size-10 shrink-0`}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`h1`,{className:`font-medium text-xl leading-tight`,children:`GMPay`}),(0,$.jsx)(`p`,{className:`mt-1 whitespace-nowrap text-muted-foreground text-xs`,children:a()})]})]}),(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,$.jsx)(c,{}),(0,$.jsx)(l,{})]})]})}),(0,$.jsx)(`div`,{className:`mx-auto flex w-full max-w-sm flex-1 flex-col justify-center`,children:(0,$.jsx)(o,{})})]})]})})}export{Pi as component}; \ No newline at end of file diff --git a/src/www/assets/route-3D4HslVP.js b/src/www/assets/route-D1gzbhTf.js similarity index 79% rename from src/www/assets/route-3D4HslVP.js rename to src/www/assets/route-D1gzbhTf.js index 5dad6d2..2701116 100644 --- a/src/www/assets/route-3D4HslVP.js +++ b/src/www/assets/route-D1gzbhTf.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{a as t}from"./auth-store-Csn6HPxJ.js";import{t as n}from"./react-CO2uhaBc.js";import{em as r,q as i,rt as a}from"./messages-Bp0bCjzp.js";import{n as o}from"./Match-Cm64cgS9.js";import{i as s}from"./button-BgMnOYKD.js";import{t as c}from"./createLucideIcon-Br0Bd5k2.js";import{n as l,t as u}from"./theme-switch-B3Qb32n8.js";import{h as d}from"./checkout-model-CQ3aqlob.js";var f=c(`message-circle`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]),p=e(n()),m=r();function h({className:e,...t}){return(0,m.jsxs)(`svg`,{className:s(`[&>path]:stroke-current`,e),fill:`none`,height:`24`,role:`img`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,viewBox:`0 0 24 24`,width:`24`,xmlns:`http://www.w3.org/2000/svg`,...t,children:[(0,m.jsx)(`title`,{children:`GitHub`}),(0,m.jsx)(`path`,{d:`M0 0h24v24H0z`,fill:`none`,strokeWidth:`0`}),(0,m.jsx)(`path`,{d:`M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5`})]})}function g(){let e=t.useQuery(`get`,`/payments/gmpay/v1/config`,void 0,{retry:!1}),n=(0,p.useMemo)(()=>d(e.data),[e.data])?.site,r=n?.cashier_name||`GM Pay`,s=n?.logo_url||`/images/logo.png`,c=n?.website_title||r,g=n?.support_link,_=n?.background_color?.trim(),v=n?.background_image_url?.trim(),y=(0,p.useMemo)(()=>({..._&&!v?{backgroundColor:_}:{},...v&&_?{backgroundAttachment:`fixed`,backgroundImage:`linear-gradient(${_}, ${_}), url(${JSON.stringify(v)})`,backgroundPosition:`center, center`,backgroundRepeat:`no-repeat, no-repeat`,backgroundSize:`cover, cover`}:{},...v&&!_?{backgroundAttachment:`fixed`,backgroundImage:`url(${JSON.stringify(v)})`,backgroundPosition:`center`,backgroundRepeat:`no-repeat`,backgroundSize:`cover`}:{}}),[_,v]);return(0,p.useEffect)(()=>{document.title=c},[c]),(0,m.jsx)(`div`,{className:`min-h-svh bg-background text-foreground`,style:y,children:(0,m.jsxs)(`div`,{className:`mx-auto flex min-h-svh w-full max-w-sm flex-col px-5`,children:[(0,m.jsxs)(`header`,{className:`flex items-center justify-between pt-8 pb-6`,children:[(0,m.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,m.jsx)(`img`,{alt:r,className:`size-8 rounded-sm shadow-sm`,height:32,src:s,width:32}),(0,m.jsx)(`span`,{className:`font-semibold text-card-foreground text-lg tracking-tight`,children:r})]}),(0,m.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,m.jsx)(l,{}),(0,m.jsx)(u,{})]})]}),(0,m.jsx)(o,{}),g?(0,m.jsxs)(`a`,{"aria-label":a(),className:`fixed right-5 bottom-5 z-20 flex h-12 items-center gap-2 rounded-full bg-primary px-4 font-medium text-primary-foreground text-sm shadow-lg transition hover:opacity-90`,href:g,rel:`noopener noreferrer`,target:`_blank`,children:[(0,m.jsx)(f,{className:`size-4`}),(0,m.jsx)(`span`,{children:a()})]}):null,(0,m.jsxs)(`footer`,{className:`flex flex-wrap items-center justify-center gap-2.5 py-6 text-muted-foreground text-xs`,children:[(0,m.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[i(),(0,m.jsxs)(`a`,{className:`flex items-center gap-1 font-semibold text-card-foreground hover:opacity-70`,href:`https://www.gmwallet.app`,rel:`noopener noreferrer`,target:`_blank`,children:[(0,m.jsx)(`img`,{alt:``,className:`size-3.5 rounded-xs`,height:14,src:`/images/logo.png`,width:14}),`GM Wallet`]})]}),(0,m.jsx)(`span`,{className:`opacity-30`,children:`|`}),(0,m.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[`Open source on`,(0,m.jsxs)(`a`,{className:`flex items-center gap-1 font-semibold text-card-foreground hover:opacity-70`,href:`https://github.com/GMwalletApp`,rel:`noopener noreferrer`,target:`_blank`,children:[(0,m.jsx)(h,{className:`size-3.5`}),`GitHub`]})]})]})]})})}export{g as component}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{a as t}from"./auth-store-De4Y7PFV.js";import{t as n}from"./react-CO2uhaBc.js";import{q as r,rt as i,tm as a}from"./messages-BOatyqUm.js";import{n as o}from"./Match-DrG03Wse.js";import{i as s}from"./button-C_NDYaz8.js";import{t as c}from"./createLucideIcon-Br0Bd5k2.js";import{n as l,t as u}from"./theme-switch-CHLQml_8.js";import{h as d}from"./checkout-model-CQ3aqlob.js";var f=c(`message-circle`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]),p=e(n()),m=a();function h({className:e,...t}){return(0,m.jsxs)(`svg`,{className:s(`[&>path]:stroke-current`,e),fill:`none`,height:`24`,role:`img`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,viewBox:`0 0 24 24`,width:`24`,xmlns:`http://www.w3.org/2000/svg`,...t,children:[(0,m.jsx)(`title`,{children:`GitHub`}),(0,m.jsx)(`path`,{d:`M0 0h24v24H0z`,fill:`none`,strokeWidth:`0`}),(0,m.jsx)(`path`,{d:`M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5`})]})}function g(){let e=t.useQuery(`get`,`/payments/gmpay/v1/config`,void 0,{retry:!1}),n=(0,p.useMemo)(()=>d(e.data),[e.data])?.site,a=n?.cashier_name||`GM Pay`,s=n?.logo_url||`/images/logo.png`,c=n?.website_title||a,g=n?.support_link,_=n?.background_color?.trim(),v=n?.background_image_url?.trim(),y=(0,p.useMemo)(()=>({..._&&!v?{backgroundColor:_}:{},...v&&_?{backgroundAttachment:`fixed`,backgroundImage:`linear-gradient(${_}, ${_}), url(${JSON.stringify(v)})`,backgroundPosition:`center, center`,backgroundRepeat:`no-repeat, no-repeat`,backgroundSize:`cover, cover`}:{},...v&&!_?{backgroundAttachment:`fixed`,backgroundImage:`url(${JSON.stringify(v)})`,backgroundPosition:`center`,backgroundRepeat:`no-repeat`,backgroundSize:`cover`}:{}}),[_,v]);return(0,p.useEffect)(()=>{document.title=c},[c]),(0,m.jsx)(`div`,{className:`min-h-svh bg-background text-foreground`,style:y,children:(0,m.jsxs)(`div`,{className:`mx-auto flex min-h-svh w-full max-w-sm flex-col px-5`,children:[(0,m.jsxs)(`header`,{className:`flex items-center justify-between pt-8 pb-6`,children:[(0,m.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,m.jsx)(`img`,{alt:a,className:`size-8 rounded-sm shadow-sm`,height:32,src:s,width:32}),(0,m.jsx)(`span`,{className:`font-semibold text-card-foreground text-lg tracking-tight`,children:a})]}),(0,m.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,m.jsx)(l,{}),(0,m.jsx)(u,{})]})]}),(0,m.jsx)(o,{}),g?(0,m.jsxs)(`a`,{"aria-label":i(),className:`fixed right-5 bottom-5 z-20 flex h-12 items-center gap-2 rounded-full bg-primary px-4 font-medium text-primary-foreground text-sm shadow-lg transition hover:opacity-90`,href:g,rel:`noopener noreferrer`,target:`_blank`,children:[(0,m.jsx)(f,{className:`size-4`}),(0,m.jsx)(`span`,{children:i()})]}):null,(0,m.jsxs)(`footer`,{className:`flex flex-wrap items-center justify-center gap-2.5 py-6 text-muted-foreground text-xs`,children:[(0,m.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[r(),(0,m.jsxs)(`a`,{className:`flex items-center gap-1 font-semibold text-card-foreground hover:opacity-70`,href:`https://www.gmwallet.app`,rel:`noopener noreferrer`,target:`_blank`,children:[(0,m.jsx)(`img`,{alt:``,className:`size-3.5 rounded-xs`,height:14,src:`/images/logo.png`,width:14}),`GM Wallet`]})]}),(0,m.jsx)(`span`,{className:`opacity-30`,children:`|`}),(0,m.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[`Open source on`,(0,m.jsxs)(`a`,{className:`flex items-center gap-1 font-semibold text-card-foreground hover:opacity-70`,href:`https://github.com/GMwalletApp`,rel:`noopener noreferrer`,target:`_blank`,children:[(0,m.jsx)(h,{className:`size-3.5`}),`GitHub`]})]})]})]})})}export{g as component}; \ No newline at end of file diff --git a/src/www/assets/route-CMVRG6IO.js b/src/www/assets/route-DvJeidrw.js similarity index 64% rename from src/www/assets/route-CMVRG6IO.js rename to src/www/assets/route-DvJeidrw.js index 3467f24..0a2329b 100644 --- a/src/www/assets/route-CMVRG6IO.js +++ b/src/www/assets/route-DvJeidrw.js @@ -1 +1 @@ -import{Du as e,Eu as t,Is as n,Ou as r,em as i}from"./messages-Bp0bCjzp.js";import{n as a}from"./Match-Cm64cgS9.js";import{H as o}from"./search-provider-Bl2HDfcG.js";import{t as s}from"./separator-DbmFQXe4.js";import{t as c}from"./createLucideIcon-Br0Bd5k2.js";import{n as l,t as u}from"./main-DnJ8otd-.js";import{t as d}from"./page-header-CDwG3nxs.js";import{t as f}from"./sidebar-nav-DDS5oBdd.js";var p=c(`book-marked`,[[`path`,{d:`M10 2v8l3-3 3 3V2`,key:`sqw3rj`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}]]),m=i(),h=[{title:e(),href:`/payment-setup`,icon:(0,m.jsx)(o,{size:18})},{title:t(),href:`/payment-setup/integrations`,icon:(0,m.jsx)(p,{size:18})}];function g(){return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(l,{}),(0,m.jsxs)(u,{fixed:!0,children:[(0,m.jsx)(d,{description:n(),title:r()}),(0,m.jsx)(s,{className:`my-4 lg:my-6`}),(0,m.jsxs)(`div`,{className:`flex flex-1 flex-col space-y-2 overflow-hidden lg:flex-row lg:space-x-12 lg:space-y-0`,children:[(0,m.jsx)(`aside`,{className:`top-0 lg:sticky lg:w-1/5`,children:(0,m.jsx)(f,{items:h})}),(0,m.jsx)(`div`,{className:`flex w-full overflow-y-hidden p-1`,children:(0,m.jsx)(a,{})})]})]})]})}var _=g;export{_ as component}; \ No newline at end of file +import{Du as e,Eu as t,Is as n,Ou as r,tm as i}from"./messages-BOatyqUm.js";import{n as a}from"./Match-DrG03Wse.js";import{H as o}from"./search-provider-C-_FQI9C.js";import{t as s}from"./separator-CsUemQNs.js";import{t as c}from"./createLucideIcon-Br0Bd5k2.js";import{n as l,t as u}from"./main-C1R3Hvq1.js";import{t as d}from"./page-header-GTtyZFBB.js";import{t as f}from"./sidebar-nav-LZqaVZGH.js";var p=c(`book-marked`,[[`path`,{d:`M10 2v8l3-3 3 3V2`,key:`sqw3rj`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}]]),m=i(),h=[{title:e(),href:`/payment-setup`,icon:(0,m.jsx)(o,{size:18})},{title:t(),href:`/payment-setup/integrations`,icon:(0,m.jsx)(p,{size:18})}];function g(){return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(l,{}),(0,m.jsxs)(u,{fixed:!0,children:[(0,m.jsx)(d,{description:n(),title:r()}),(0,m.jsx)(s,{className:`my-4 lg:my-6`}),(0,m.jsxs)(`div`,{className:`flex flex-1 flex-col space-y-2 overflow-hidden lg:flex-row lg:space-x-12 lg:space-y-0`,children:[(0,m.jsx)(`aside`,{className:`top-0 lg:sticky lg:w-1/5`,children:(0,m.jsx)(f,{items:h})}),(0,m.jsx)(`div`,{className:`flex w-full overflow-y-hidden p-1`,children:(0,m.jsx)(a,{})})]})]})]})}var _=g;export{_ as component}; \ No newline at end of file diff --git a/src/www/assets/route-C6lKmXki.js b/src/www/assets/route-GrVEK0V1.js similarity index 88% rename from src/www/assets/route-C6lKmXki.js rename to src/www/assets/route-GrVEK0V1.js index d832389..9c1306b 100644 --- a/src/www/assets/route-C6lKmXki.js +++ b/src/www/assets/route-GrVEK0V1.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{a as t,i as n,p as r,u as i}from"./auth-store-Csn6HPxJ.js";import{t as a}from"./react-CO2uhaBc.js";import{Au as o,Bp as s,Kp as c,Su as l,Tt as u,em as d,qp as f,xu as p}from"./messages-Bp0bCjzp.js";import{n as m}from"./Match-Cm64cgS9.js";import{t as h}from"./link-BYG8nKNO.js";import{n as g}from"./Matches-DYR79wJf.js";import{t as _}from"./dist-BFnxq45V.js";import{A as v,C as y,D as ee,E as te,F as ne,L as re,M as b,N as ie,O as ae,P as x,R as oe,S as se,T as S,_ as ce,b as le,d as C,f as w,g as ue,h as de,i as fe,k as pe,l as me,o as he,p as ge,t as _e,u as T,v as ve,w as E,x as ye,y as be,z as xe}from"./search-provider-Bl2HDfcG.js";import{i as D,t as O,u as k}from"./button-BgMnOYKD.js";import{a as A,n as j,r as M,t as Se}from"./dist-CKFLmh1A.js";import{t as Ce}from"./dist-Clua1vrx.js";import{n as we}from"./dist-B0ikDpJU.js";import{a as N,i as Te,l as P,o as F,r as I,s as L,t as R}from"./dropdown-menu-8-hEBtzr.js";import{t as Ee}from"./cookies-BzZOQYPw.js";import{n as z}from"./skeleton-BQsmx80h.js";import{t as De}from"./chevrons-up-down-BPquKoYJ.js";import{t as Oe}from"./send-BNvceEpO.js";import{t as ke}from"./badge-BP05f1dq.js";var B=e(a(),1),V=d(),H=`Collapsible`,[Ae,je]=A(H),[Me,U]=Ae(H),W=B.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[c,l]=Se({prop:r,defaultProp:i??!1,onChange:o,caller:H});return(0,V.jsx)(Me,{scope:n,disabled:a,contentId:we(),open:c,onOpenToggle:B.useCallback(()=>l(e=>!e),[l]),children:(0,V.jsx)(_.div,{"data-state":Y(c),"data-disabled":a?``:void 0,...s,ref:t})})});W.displayName=H;var G=`CollapsibleTrigger`,K=B.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=U(G,n);return(0,V.jsx)(_.button,{type:`button`,"aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":Y(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:M(e.onClick,i.onOpenToggle)})});K.displayName=G;var q=`CollapsibleContent`,J=B.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=U(q,e.__scopeCollapsible);return(0,V.jsx)(Ce,{present:n||i.open,children:({present:e})=>(0,V.jsx)(Ne,{...r,ref:t,present:e})})});J.displayName=q;var Ne=B.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...a}=e,o=U(q,n),[s,c]=B.useState(r),l=B.useRef(null),u=k(t,l),d=B.useRef(0),f=d.current,p=B.useRef(0),m=p.current,h=o.open||s,g=B.useRef(h),v=B.useRef(void 0);return B.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),j(()=>{let e=l.current;if(e){v.current=v.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();d.current=t.height,p.current=t.width,g.current||(e.style.transitionDuration=v.current.transitionDuration,e.style.animationName=v.current.animationName),c(r)}},[o.open,r]),(0,V.jsx)(_.div,{"data-state":Y(o.open),"data-disabled":o.disabled?``:void 0,id:o.contentId,hidden:!h,...a,ref:u,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:h&&i})});function Y(e){return e?`open`:`closed`}var Pe=W;function Fe(){return(0,V.jsx)(`a`,{className:D(`fixed inset-s-44 z-999 whitespace-nowrap`,`bg-primary px-4 py-2 font-medium text-primary-foreground text-sm`,`opacity-95 shadow-sm transition`,`-translate-y-52 hover:bg-primary/90`,`focus:translate-y-3 focus:transform`,`focus-visible:ring-1 focus-visible:ring-ring`),href:`#content`,children:s()})}function Ie({...e}){return(0,V.jsx)(Pe,{"data-slot":`collapsible`,...e})}function Le({...e}){return(0,V.jsx)(K,{"data-slot":`collapsible-trigger`,...e})}function Re({...e}){return(0,V.jsx)(J,{"data-slot":`collapsible-content`,...e})}function ze({title:e,items:t}){let{state:n,isMobile:r}=b();return(0,V.jsxs)(be,{children:[(0,V.jsx)(le,{children:e}),(0,V.jsx)(y,{children:t.map(e=>{let t=`${e.title}-${e.url}`;return e.items?n===`collapsed`&&!r?(0,V.jsx)(Ue,{item:e},t):(0,V.jsx)(Ve,{item:e},t):(0,V.jsx)(Be,{item:e},t)})})]})}function X({children:e}){return(0,V.jsx)(ke,{className:`rounded-full px-1 py-0 text-xs`,children:e})}function Be({item:e}){let{setOpenMobile:t}=b();return(0,V.jsx)(S,{children:(0,V.jsx)(E,{asChild:!0,isActive:!!g()({to:e.url}),tooltip:e.title,children:(0,V.jsxs)(h,{onClick:()=>t(!1),to:e.url,children:[e.icon&&(0,V.jsx)(e.icon,{}),(0,V.jsx)(`span`,{children:e.title}),e.badge&&(0,V.jsx)(X,{children:e.badge})]})})})}function Ve({item:e}){let{setOpenMobile:t}=b();return(0,V.jsx)(Ie,{asChild:!0,className:`group/collapsible`,defaultOpen:!1,children:(0,V.jsxs)(S,{children:[(0,V.jsx)(Le,{asChild:!0,children:(0,V.jsxs)(E,{tooltip:e.title,children:[e.icon&&(0,V.jsx)(e.icon,{}),(0,V.jsx)(`span`,{children:e.title}),e.badge&&(0,V.jsx)(X,{children:e.badge}),(0,V.jsx)(z,{className:`ms-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90 rtl:rotate-180`})]})}),(0,V.jsx)(Re,{className:`CollapsibleContent`,children:(0,V.jsx)(te,{children:e.items.map(e=>(0,V.jsx)(He,{item:e,onClose:()=>t(!1)},e.title))})})]})})}function He({item:e,onClose:t}){return(0,V.jsx)(ae,{children:(0,V.jsx)(ee,{asChild:!0,isActive:!!g()({to:e.url}),children:(0,V.jsxs)(h,{onClick:t,to:e.url,children:[e.icon&&(0,V.jsx)(e.icon,{}),(0,V.jsx)(`span`,{children:e.title}),e.badge&&(0,V.jsx)(X,{children:e.badge})]})})})}function Ue({item:e}){let t=g();return(0,V.jsx)(S,{children:(0,V.jsxs)(R,{children:[(0,V.jsx)(P,{asChild:!0,children:(0,V.jsxs)(E,{isActive:e.items.some(e=>!!t({to:e.url})),tooltip:e.title,children:[e.icon&&(0,V.jsx)(e.icon,{}),(0,V.jsx)(`span`,{children:e.title}),e.badge&&(0,V.jsx)(X,{children:e.badge}),(0,V.jsx)(z,{className:`ms-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90`})]})}),(0,V.jsxs)(I,{align:`start`,side:`right`,sideOffset:4,children:[(0,V.jsxs)(F,{children:[e.title,` `,e.badge?`(${e.badge})`:``]}),(0,V.jsx)(L,{}),e.items.map(e=>(0,V.jsx)(Z,{item:e},`${e.title}-${e.url}`))]})]})})}function Z({item:e}){return(0,V.jsx)(N,{asChild:!0,children:(0,V.jsxs)(h,{className:g()({to:e.url})?`bg-secondary`:``,to:e.url,children:[e.icon&&(0,V.jsx)(e.icon,{}),(0,V.jsx)(`span`,{className:`max-w-52 text-wrap`,children:e.title}),e.badge&&(0,V.jsx)(`span`,{className:`ms-auto text-xs`,children:e.badge})]})})}function We(){let{isMobile:e}=b(),[t,r]=me(),[i,a]=(0,B.useState)(!1),{user:s}=n(),d=s?.username?.trim()||u(),m=d.charAt(0).toUpperCase()||`U`,g=s?.last_login_at?l({time:he(s.last_login_at)}):p();return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(ne,{onOpenChange:a,open:i,children:(0,V.jsx)(de,{})}),(0,V.jsx)(y,{children:(0,V.jsx)(S,{children:(0,V.jsxs)(R,{children:[(0,V.jsx)(P,{asChild:!0,children:(0,V.jsxs)(E,{className:`data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground`,size:`lg`,children:[(0,V.jsxs)(T,{className:`h-8 w-8 rounded-lg`,children:[(0,V.jsx)(w,{alt:d,src:`/avatars/01.png`}),(0,V.jsx)(C,{className:`rounded-lg`,children:m})]}),(0,V.jsxs)(`div`,{className:`grid flex-1 text-start text-sm leading-tight`,children:[(0,V.jsx)(`span`,{className:`truncate font-semibold`,children:d}),(0,V.jsx)(`span`,{className:`truncate text-xs`,children:g})]}),(0,V.jsx)(De,{className:`ms-auto size-4`})]})}),(0,V.jsxs)(I,{align:`end`,className:`w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg`,side:e?`bottom`:`right`,sideOffset:4,children:[(0,V.jsx)(F,{className:`p-0 font-normal`,children:(0,V.jsxs)(`div`,{className:`flex items-center gap-2 px-1 py-1.5 text-start text-sm`,children:[(0,V.jsxs)(T,{className:`h-8 w-8 rounded-lg`,children:[(0,V.jsx)(w,{alt:d,src:`/avatars/01.png`}),(0,V.jsx)(C,{className:`rounded-lg`,children:m})]}),(0,V.jsxs)(`div`,{className:`grid flex-1 text-start text-sm leading-tight`,children:[(0,V.jsx)(`span`,{className:`truncate font-semibold`,children:d}),(0,V.jsx)(`span`,{className:`truncate text-xs`,children:g})]})]})}),(0,V.jsx)(L,{}),(0,V.jsxs)(Te,{children:[(0,V.jsx)(N,{asChild:!0,children:(0,V.jsxs)(h,{to:`/account/password`,children:[(0,V.jsx)(xe,{}),f()]})}),(0,V.jsxs)(N,{onClick:()=>a(!0),onSelect:e=>e.preventDefault(),children:[(0,V.jsx)(re,{}),o()]})]}),(0,V.jsx)(L,{}),(0,V.jsxs)(N,{onClick:()=>r(!0),variant:`destructive`,children:[(0,V.jsx)(oe,{}),c()]})]})]})})}),(0,V.jsx)(ge,{onOpenChange:r,open:!!t})]})}function Ge({teams:e}){let t=e[0];return(0,V.jsx)(y,{children:(0,V.jsx)(S,{children:(0,V.jsxs)(E,{className:`cursor-default`,size:`lg`,children:[(0,V.jsx)(`div`,{className:`flex aspect-square size-8 items-center justify-center rounded-lg`,children:(0,V.jsx)(t.logo,{className:`size-8`})}),(0,V.jsxs)(`div`,{className:`grid flex-1 text-start text-sm leading-tight`,children:[(0,V.jsx)(`span`,{className:`truncate font-semibold`,children:t.name}),(0,V.jsx)(`span`,{className:`truncate text-xs`,children:t.plan})]})]})})})}var Ke=`https://t.me/epusdt_group`,qe=`https://github.com/GMWalletApp/epusdt`,Je=`https://epusdt.com/`,Ye=`https://api.github.com/repos/GMWalletApp/epusdt/releases/latest`,Xe=`v1.0.1`;function Q(){return(0,V.jsx)(`span`,{"aria-hidden":`true`,className:`text-sidebar-foreground/25`,children:`|`})}function Ze(e){return(0,V.jsx)(`svg`,{"aria-hidden":`true`,fill:`currentColor`,viewBox:`0 0 24 24`,...e,children:(0,V.jsx)(`path`,{d:`M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.866-.014-1.7-2.782.605-3.369-1.343-3.369-1.343-.455-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.071 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0 1 12 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.203 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.31.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .269.18.58.688.481A10.02 10.02 0 0 0 22 12.017C22 6.484 17.523 2 12 2Z`})})}function $(e){return e.trim().replace(/^[^\d]*/,``).split(/[^\d]+/).filter(Boolean).map(e=>Number(e))}function Qe(e,t){let n=$(e),r=$(t),i=Math.max(n.length,r.length);for(let e=0;ei)return!0;if(t{let e=await fetch(Ye,{headers:{Accept:`application/vnd.github+json`}});if(e.status===404)return null;if(!e.ok)throw Error(`Failed to fetch latest release: ${e.status}`);return e.json()},retry:!1,staleTime:1e3*60*30}),i=n.data?.tag_name,a=n.data?.html_url,o=e.data?.data?.version||Xe,s=typeof i==`string`&&typeof a==`string`&&Qe(i,o);return(0,V.jsx)(`div`,{className:`border-sidebar-border/60 border-t px-2 pt-2 pb-1 text-sidebar-foreground/70 text-xs group-data-[collapsible=icon]:hidden`,children:(0,V.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,V.jsx)(O,{asChild:!0,size:`icon-xs`,variant:`ghost`,children:(0,V.jsx)(`a`,{href:Ke,rel:`noreferrer`,target:`_blank`,title:`Telegram`,children:(0,V.jsx)(Oe,{className:`size-3.5`})})}),(0,V.jsx)(Q,{}),(0,V.jsx)(O,{asChild:!0,size:`icon-xs`,variant:`ghost`,children:(0,V.jsx)(`a`,{href:qe,rel:`noreferrer`,target:`_blank`,title:`GitHub`,children:(0,V.jsx)(Ze,{className:`size-3.5`})})}),(0,V.jsx)(Q,{}),(0,V.jsx)(O,{asChild:!0,className:`h-6 px-2 text-xs`,variant:`ghost`,children:(0,V.jsx)(`a`,{href:Je,rel:`noreferrer`,target:`_blank`,title:`官网文档`,children:(0,V.jsx)(`span`,{children:`官网文档`})})}),(0,V.jsxs)(`div`,{className:`ml-auto flex items-center gap-0 whitespace-nowrap`,children:[(0,V.jsx)(`span`,{className:`shrink-0 rounded-md bg-sidebar-accent/60 px-2 py-1 font-medium text-sidebar-foreground/85 leading-none`,children:o}),s?(0,V.jsx)(`a`,{className:`shrink-0 font-medium text-primary leading-none hover:text-primary/80`,href:a,rel:`noreferrer`,target:`_blank`,children:`更新`}):null]})]})})}function et(){let{collapsible:e,variant:t}=x(),n=fe();return(0,V.jsxs)(ue,{collapsible:e,variant:t,children:[(0,V.jsx)(ye,{children:(0,V.jsx)(Ge,{teams:n.teams})}),(0,V.jsx)(ce,{children:n.navGroups.map(e=>(0,V.jsx)(ze,{...e},e.title))}),(0,V.jsxs)(ve,{children:[(0,V.jsx)(We,{}),(0,V.jsx)($e,{})]}),(0,V.jsx)(v,{})]})}function tt({children:e}){return(0,V.jsx)(_e,{children:(0,V.jsx)(ie,{children:(0,V.jsxs)(pe,{defaultOpen:Ee(i)!==`false`,children:[(0,V.jsx)(Fe,{}),(0,V.jsx)(et,{}),(0,V.jsx)(se,{className:D(`@container/content`,`has-data-[layout=fixed]:h-svh`,`peer-data-[variant=inset]:has-data-[layout=fixed]:h-[calc(100svh-(var(--spacing)*4))]`),id:`content`,tabIndex:-1,children:e??(0,V.jsx)(m,{})})]})})})}var nt=tt;export{nt as component}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{a as t,i as n,p as r,u as i}from"./auth-store-De4Y7PFV.js";import{t as a}from"./react-CO2uhaBc.js";import{Au as o,Jp as s,Su as c,Tt as l,Vp as u,qp as d,tm as f,xu as p}from"./messages-BOatyqUm.js";import{n as m}from"./Match-DrG03Wse.js";import{t as h}from"./link-DPnL8P5J.js";import{n as g}from"./Matches-9qnXJNrS.js";import{t as _}from"./dist-Cc8_LDAq.js";import{A as v,C as y,D as ee,E as te,F as ne,L as re,M as b,N as ie,O as ae,P as x,R as oe,S as se,T as S,_ as ce,b as le,d as C,f as w,g as ue,h as de,i as fe,k as pe,l as me,o as he,p as ge,t as _e,u as T,v as ve,w as E,x as ye,y as be,z as xe}from"./search-provider-C-_FQI9C.js";import{i as D,t as O,u as k}from"./button-C_NDYaz8.js";import{a as A,n as j,r as M,t as Se}from"./dist-DPPquN_M.js";import{t as Ce}from"./dist-DvwKOQ8R.js";import{n as we}from"./dist-D4X8zGEB.js";import{a as N,i as Te,l as P,o as F,r as I,s as L,t as R}from"./dropdown-menu-DzCIpsuG.js";import{t as Ee}from"./cookies-BzZOQYPw.js";import{n as z}from"./skeleton-CmDjDV1O.js";import{t as De}from"./chevrons-up-down-BPquKoYJ.js";import{t as Oe}from"./send-BNvceEpO.js";import{t as ke}from"./badge-VJlwwTW5.js";var B=e(a(),1),V=f(),H=`Collapsible`,[Ae,je]=A(H),[Me,U]=Ae(H),W=B.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[c,l]=Se({prop:r,defaultProp:i??!1,onChange:o,caller:H});return(0,V.jsx)(Me,{scope:n,disabled:a,contentId:we(),open:c,onOpenToggle:B.useCallback(()=>l(e=>!e),[l]),children:(0,V.jsx)(_.div,{"data-state":Y(c),"data-disabled":a?``:void 0,...s,ref:t})})});W.displayName=H;var G=`CollapsibleTrigger`,K=B.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=U(G,n);return(0,V.jsx)(_.button,{type:`button`,"aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":Y(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:M(e.onClick,i.onOpenToggle)})});K.displayName=G;var q=`CollapsibleContent`,J=B.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=U(q,e.__scopeCollapsible);return(0,V.jsx)(Ce,{present:n||i.open,children:({present:e})=>(0,V.jsx)(Ne,{...r,ref:t,present:e})})});J.displayName=q;var Ne=B.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...a}=e,o=U(q,n),[s,c]=B.useState(r),l=B.useRef(null),u=k(t,l),d=B.useRef(0),f=d.current,p=B.useRef(0),m=p.current,h=o.open||s,g=B.useRef(h),v=B.useRef(void 0);return B.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),j(()=>{let e=l.current;if(e){v.current=v.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();d.current=t.height,p.current=t.width,g.current||(e.style.transitionDuration=v.current.transitionDuration,e.style.animationName=v.current.animationName),c(r)}},[o.open,r]),(0,V.jsx)(_.div,{"data-state":Y(o.open),"data-disabled":o.disabled?``:void 0,id:o.contentId,hidden:!h,...a,ref:u,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:h&&i})});function Y(e){return e?`open`:`closed`}var Pe=W;function Fe(){return(0,V.jsx)(`a`,{className:D(`fixed inset-s-44 z-999 whitespace-nowrap`,`bg-primary px-4 py-2 font-medium text-primary-foreground text-sm`,`opacity-95 shadow-sm transition`,`-translate-y-52 hover:bg-primary/90`,`focus:translate-y-3 focus:transform`,`focus-visible:ring-1 focus-visible:ring-ring`),href:`#content`,children:u()})}function Ie({...e}){return(0,V.jsx)(Pe,{"data-slot":`collapsible`,...e})}function Le({...e}){return(0,V.jsx)(K,{"data-slot":`collapsible-trigger`,...e})}function Re({...e}){return(0,V.jsx)(J,{"data-slot":`collapsible-content`,...e})}function ze({title:e,items:t}){let{state:n,isMobile:r}=b();return(0,V.jsxs)(be,{children:[(0,V.jsx)(le,{children:e}),(0,V.jsx)(y,{children:t.map(e=>{let t=`${e.title}-${e.url}`;return e.items?n===`collapsed`&&!r?(0,V.jsx)(Ue,{item:e},t):(0,V.jsx)(Ve,{item:e},t):(0,V.jsx)(Be,{item:e},t)})})]})}function X({children:e}){return(0,V.jsx)(ke,{className:`rounded-full px-1 py-0 text-xs`,children:e})}function Be({item:e}){let{setOpenMobile:t}=b();return(0,V.jsx)(S,{children:(0,V.jsx)(E,{asChild:!0,isActive:!!g()({to:e.url}),tooltip:e.title,children:(0,V.jsxs)(h,{onClick:()=>t(!1),to:e.url,children:[e.icon&&(0,V.jsx)(e.icon,{}),(0,V.jsx)(`span`,{children:e.title}),e.badge&&(0,V.jsx)(X,{children:e.badge})]})})})}function Ve({item:e}){let{setOpenMobile:t}=b();return(0,V.jsx)(Ie,{asChild:!0,className:`group/collapsible`,defaultOpen:!1,children:(0,V.jsxs)(S,{children:[(0,V.jsx)(Le,{asChild:!0,children:(0,V.jsxs)(E,{tooltip:e.title,children:[e.icon&&(0,V.jsx)(e.icon,{}),(0,V.jsx)(`span`,{children:e.title}),e.badge&&(0,V.jsx)(X,{children:e.badge}),(0,V.jsx)(z,{className:`ms-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90 rtl:rotate-180`})]})}),(0,V.jsx)(Re,{className:`CollapsibleContent`,children:(0,V.jsx)(te,{children:e.items.map(e=>(0,V.jsx)(He,{item:e,onClose:()=>t(!1)},e.title))})})]})})}function He({item:e,onClose:t}){return(0,V.jsx)(ae,{children:(0,V.jsx)(ee,{asChild:!0,isActive:!!g()({to:e.url}),children:(0,V.jsxs)(h,{onClick:t,to:e.url,children:[e.icon&&(0,V.jsx)(e.icon,{}),(0,V.jsx)(`span`,{children:e.title}),e.badge&&(0,V.jsx)(X,{children:e.badge})]})})})}function Ue({item:e}){let t=g();return(0,V.jsx)(S,{children:(0,V.jsxs)(R,{children:[(0,V.jsx)(P,{asChild:!0,children:(0,V.jsxs)(E,{isActive:e.items.some(e=>!!t({to:e.url})),tooltip:e.title,children:[e.icon&&(0,V.jsx)(e.icon,{}),(0,V.jsx)(`span`,{children:e.title}),e.badge&&(0,V.jsx)(X,{children:e.badge}),(0,V.jsx)(z,{className:`ms-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90`})]})}),(0,V.jsxs)(I,{align:`start`,side:`right`,sideOffset:4,children:[(0,V.jsxs)(F,{children:[e.title,` `,e.badge?`(${e.badge})`:``]}),(0,V.jsx)(L,{}),e.items.map(e=>(0,V.jsx)(Z,{item:e},`${e.title}-${e.url}`))]})]})})}function Z({item:e}){return(0,V.jsx)(N,{asChild:!0,children:(0,V.jsxs)(h,{className:g()({to:e.url})?`bg-secondary`:``,to:e.url,children:[e.icon&&(0,V.jsx)(e.icon,{}),(0,V.jsx)(`span`,{className:`max-w-52 text-wrap`,children:e.title}),e.badge&&(0,V.jsx)(`span`,{className:`ms-auto text-xs`,children:e.badge})]})})}function We(){let{isMobile:e}=b(),[t,r]=me(),[i,a]=(0,B.useState)(!1),{user:u}=n(),f=u?.username?.trim()||l(),m=f.charAt(0).toUpperCase()||`U`,g=u?.last_login_at?c({time:he(u.last_login_at)}):p();return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(ne,{onOpenChange:a,open:i,children:(0,V.jsx)(de,{})}),(0,V.jsx)(y,{children:(0,V.jsx)(S,{children:(0,V.jsxs)(R,{children:[(0,V.jsx)(P,{asChild:!0,children:(0,V.jsxs)(E,{className:`data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground`,size:`lg`,children:[(0,V.jsxs)(T,{className:`h-8 w-8 rounded-lg`,children:[(0,V.jsx)(w,{alt:f,src:`/avatars/01.png`}),(0,V.jsx)(C,{className:`rounded-lg`,children:m})]}),(0,V.jsxs)(`div`,{className:`grid flex-1 text-start text-sm leading-tight`,children:[(0,V.jsx)(`span`,{className:`truncate font-semibold`,children:f}),(0,V.jsx)(`span`,{className:`truncate text-xs`,children:g})]}),(0,V.jsx)(De,{className:`ms-auto size-4`})]})}),(0,V.jsxs)(I,{align:`end`,className:`w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg`,side:e?`bottom`:`right`,sideOffset:4,children:[(0,V.jsx)(F,{className:`p-0 font-normal`,children:(0,V.jsxs)(`div`,{className:`flex items-center gap-2 px-1 py-1.5 text-start text-sm`,children:[(0,V.jsxs)(T,{className:`h-8 w-8 rounded-lg`,children:[(0,V.jsx)(w,{alt:f,src:`/avatars/01.png`}),(0,V.jsx)(C,{className:`rounded-lg`,children:m})]}),(0,V.jsxs)(`div`,{className:`grid flex-1 text-start text-sm leading-tight`,children:[(0,V.jsx)(`span`,{className:`truncate font-semibold`,children:f}),(0,V.jsx)(`span`,{className:`truncate text-xs`,children:g})]})]})}),(0,V.jsx)(L,{}),(0,V.jsxs)(Te,{children:[(0,V.jsx)(N,{asChild:!0,children:(0,V.jsxs)(h,{to:`/account/password`,children:[(0,V.jsx)(xe,{}),s()]})}),(0,V.jsxs)(N,{onClick:()=>a(!0),onSelect:e=>e.preventDefault(),children:[(0,V.jsx)(re,{}),o()]})]}),(0,V.jsx)(L,{}),(0,V.jsxs)(N,{onClick:()=>r(!0),variant:`destructive`,children:[(0,V.jsx)(oe,{}),d()]})]})]})})}),(0,V.jsx)(ge,{onOpenChange:r,open:!!t})]})}function Ge({teams:e}){let t=e[0];return(0,V.jsx)(y,{children:(0,V.jsx)(S,{children:(0,V.jsxs)(E,{className:`cursor-default`,size:`lg`,children:[(0,V.jsx)(`div`,{className:`flex aspect-square size-8 items-center justify-center rounded-lg`,children:(0,V.jsx)(t.logo,{className:`size-8`})}),(0,V.jsxs)(`div`,{className:`grid flex-1 text-start text-sm leading-tight`,children:[(0,V.jsx)(`span`,{className:`truncate font-semibold`,children:t.name}),(0,V.jsx)(`span`,{className:`truncate text-xs`,children:t.plan})]})]})})})}var Ke=`https://t.me/epusdt_group`,qe=`https://github.com/GMWalletApp/epusdt`,Je=`https://epusdt.com/`,Ye=`https://api.github.com/repos/GMWalletApp/epusdt/releases/latest`,Xe=`v1.0.1`;function Q(){return(0,V.jsx)(`span`,{"aria-hidden":`true`,className:`text-sidebar-foreground/25`,children:`|`})}function Ze(e){return(0,V.jsx)(`svg`,{"aria-hidden":`true`,fill:`currentColor`,viewBox:`0 0 24 24`,...e,children:(0,V.jsx)(`path`,{d:`M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.866-.014-1.7-2.782.605-3.369-1.343-3.369-1.343-.455-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.071 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0 1 12 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.203 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.31.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .269.18.58.688.481A10.02 10.02 0 0 0 22 12.017C22 6.484 17.523 2 12 2Z`})})}function $(e){return e.trim().replace(/^[^\d]*/,``).split(/[^\d]+/).filter(Boolean).map(e=>Number(e))}function Qe(e,t){let n=$(e),r=$(t),i=Math.max(n.length,r.length);for(let e=0;ei)return!0;if(t{let e=await fetch(Ye,{headers:{Accept:`application/vnd.github+json`}});if(e.status===404)return null;if(!e.ok)throw Error(`Failed to fetch latest release: ${e.status}`);return e.json()},retry:!1,staleTime:1e3*60*30}),i=n.data?.tag_name,a=n.data?.html_url,o=e.data?.data?.version||Xe,s=typeof i==`string`&&typeof a==`string`&&Qe(i,o);return(0,V.jsx)(`div`,{className:`border-sidebar-border/60 border-t px-2 pt-2 pb-1 text-sidebar-foreground/70 text-xs group-data-[collapsible=icon]:hidden`,children:(0,V.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,V.jsx)(O,{asChild:!0,size:`icon-xs`,variant:`ghost`,children:(0,V.jsx)(`a`,{href:Ke,rel:`noreferrer`,target:`_blank`,title:`Telegram`,children:(0,V.jsx)(Oe,{className:`size-3.5`})})}),(0,V.jsx)(Q,{}),(0,V.jsx)(O,{asChild:!0,size:`icon-xs`,variant:`ghost`,children:(0,V.jsx)(`a`,{href:qe,rel:`noreferrer`,target:`_blank`,title:`GitHub`,children:(0,V.jsx)(Ze,{className:`size-3.5`})})}),(0,V.jsx)(Q,{}),(0,V.jsx)(O,{asChild:!0,className:`h-6 px-2 text-xs`,variant:`ghost`,children:(0,V.jsx)(`a`,{href:Je,rel:`noreferrer`,target:`_blank`,title:`官网文档`,children:(0,V.jsx)(`span`,{children:`官网文档`})})}),(0,V.jsxs)(`div`,{className:`ml-auto flex items-center gap-0 whitespace-nowrap`,children:[(0,V.jsx)(`span`,{className:`shrink-0 rounded-md bg-sidebar-accent/60 px-2 py-1 font-medium text-sidebar-foreground/85 leading-none`,children:o}),s?(0,V.jsx)(`a`,{className:`shrink-0 font-medium text-primary leading-none hover:text-primary/80`,href:a,rel:`noreferrer`,target:`_blank`,children:`更新`}):null]})]})})}function et(){let{collapsible:e,variant:t}=x(),n=fe();return(0,V.jsxs)(ue,{collapsible:e,variant:t,children:[(0,V.jsx)(ye,{children:(0,V.jsx)(Ge,{teams:n.teams})}),(0,V.jsx)(ce,{children:n.navGroups.map(e=>(0,V.jsx)(ze,{...e},e.title))}),(0,V.jsxs)(ve,{children:[(0,V.jsx)(We,{}),(0,V.jsx)($e,{})]}),(0,V.jsx)(v,{})]})}function tt({children:e}){return(0,V.jsx)(_e,{children:(0,V.jsx)(ie,{children:(0,V.jsxs)(pe,{defaultOpen:Ee(i)!==`false`,children:[(0,V.jsx)(Fe,{}),(0,V.jsx)(et,{}),(0,V.jsx)(se,{className:D(`@container/content`,`has-data-[layout=fixed]:h-svh`,`peer-data-[variant=inset]:has-data-[layout=fixed]:h-[calc(100svh-(var(--spacing)*4))]`),id:`content`,tabIndex:-1,children:e??(0,V.jsx)(m,{})})]})})})}var nt=tt;export{nt as component}; \ No newline at end of file diff --git a/src/www/assets/route-9wAONQMq.js b/src/www/assets/route-lp7ScXTd.js similarity index 52% rename from src/www/assets/route-9wAONQMq.js rename to src/www/assets/route-lp7ScXTd.js index fd69175..79ad69a 100644 --- a/src/www/assets/route-9wAONQMq.js +++ b/src/www/assets/route-lp7ScXTd.js @@ -1 +1 @@ -import{Bf as e,Rf as t,em as n,zf as r}from"./messages-Bp0bCjzp.js";import{n as i}from"./Match-Cm64cgS9.js";import{z as a}from"./search-provider-Bl2HDfcG.js";import{t as o}from"./separator-DbmFQXe4.js";import{n as s,t as c}from"./main-DnJ8otd-.js";import{t as l}from"./page-header-CDwG3nxs.js";import{t as u}from"./sidebar-nav-DDS5oBdd.js";var d=n();function f(){let n=[{title:t(),href:`/account/password`,icon:(0,d.jsx)(a,{size:18})}];return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(s,{}),(0,d.jsxs)(c,{fixed:!0,children:[(0,d.jsx)(l,{description:r(),title:e()}),(0,d.jsx)(o,{className:`my-4 lg:my-6`}),(0,d.jsxs)(`div`,{className:`flex flex-1 flex-col space-y-2 overflow-hidden lg:flex-row lg:space-x-12 lg:space-y-0`,children:[(0,d.jsx)(`aside`,{className:`top-0 lg:sticky lg:w-1/5`,children:(0,d.jsx)(u,{items:n})}),(0,d.jsx)(`div`,{className:`flex w-full overflow-y-hidden p-1`,children:(0,d.jsx)(i,{})})]})]})]})}var p=f;export{p as component}; \ No newline at end of file +import{Bf as e,Vf as t,tm as n,zf as r}from"./messages-BOatyqUm.js";import{n as i}from"./Match-DrG03Wse.js";import{z as a}from"./search-provider-C-_FQI9C.js";import{t as o}from"./separator-CsUemQNs.js";import{n as s,t as c}from"./main-C1R3Hvq1.js";import{t as l}from"./page-header-GTtyZFBB.js";import{t as u}from"./sidebar-nav-LZqaVZGH.js";var d=n();function f(){let n=[{title:r(),href:`/account/password`,icon:(0,d.jsx)(a,{size:18})}];return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(s,{}),(0,d.jsxs)(c,{fixed:!0,children:[(0,d.jsx)(l,{description:e(),title:t()}),(0,d.jsx)(o,{className:`my-4 lg:my-6`}),(0,d.jsxs)(`div`,{className:`flex flex-1 flex-col space-y-2 overflow-hidden lg:flex-row lg:space-x-12 lg:space-y-0`,children:[(0,d.jsx)(`aside`,{className:`top-0 lg:sticky lg:w-1/5`,children:(0,d.jsx)(u,{items:n})}),(0,d.jsx)(`div`,{className:`flex w-full overflow-y-hidden p-1`,children:(0,d.jsx)(i,{})})]})]})]})}var p=f;export{p as component}; \ No newline at end of file diff --git a/src/www/assets/route-Bin9ihv_.js b/src/www/assets/route-wzPKSRj2.js similarity index 95% rename from src/www/assets/route-Bin9ihv_.js rename to src/www/assets/route-wzPKSRj2.js index 53018d8..9ac7ebb 100644 --- a/src/www/assets/route-Bin9ihv_.js +++ b/src/www/assets/route-wzPKSRj2.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";import{t as r}from"./useRouter-DtTm7XkK.js";import{n as i}from"./useStore-CupyIEEP.js";import{d as a,f as o,s}from"./ClientOnly-fFIveJVd.js";import{a as c,n as l,r as u}from"./redirect-DMNGvjzO.js";import{t as d}from"./link-BYG8nKNO.js";import{n as f,t as p}from"./useSearch-Diln-KYh.js";import{t as m}from"./useNavigate-7u4DX0Ho.js";var h=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=u:this.parentRoute||i();let r=n?u:t?.path;r&&r!==`/`&&(r=a(r));let c=t?.id||r,l=n?u:s([this.parentRoute.id===`__root__`?``:this.parentRoute.id,c]);r===`__root__`&&(r=`/`),l!==`__root__`&&(l=s([`/`,l]));let d=l===`__root__`?`/`:s([this.parentRoute.fullPath,r]);this._path=r,this._id=l,this._fullPath=d,this._to=o(d)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>l({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},g=class{constructor({id:e}){this.notFound=e=>c({routeId:this.id,...e}),this.redirect=e=>l({from:this.id,...e}),this.id=e}},_=class extends h{constructor(e){super(e)}};function v(e){return f({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function y(e){let{select:t,...n}=e;return f({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function b(e){return f({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function x(e){return f({...e,select:t=>e.select?e.select(t.context):t.context})}var S=e(t(),1),C=n();function w(e){return new T({id:e})}var T=class extends g{constructor({id:e}){super({id:e}),this.useMatch=e=>f({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>x({...e,from:this.id}),this.useSearch=e=>p({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>b({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>y({...e,from:this.id,strict:!1}),this.useLoaderData=e=>v({...e,from:this.id,strict:!1}),this.useNavigate=()=>m({from:r().routesById[this.id].fullPath}),this.notFound=e=>c({routeId:this.id,...e}),this.Link=S.forwardRef((e,t)=>{let n=r().routesById[this.id].fullPath;return(0,C.jsx)(d,{ref:t,from:n,...e})})}},E=class extends h{constructor(e){super(e),this.useMatch=e=>f({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>x({...e,from:this.id}),this.useSearch=e=>p({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>b({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>y({...e,from:this.id}),this.useLoaderData=e=>v({...e,from:this.id}),this.useNavigate=()=>m({from:this.fullPath}),this.Link=S.forwardRef((e,t)=>(0,C.jsx)(d,{ref:t,from:this.fullPath,...e}))}};function D(e){return new E(e)}function O(){return e=>A(e)}var k=class extends _{constructor(e){super(e),this.useMatch=e=>f({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>x({...e,from:this.id}),this.useSearch=e=>p({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>b({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>y({...e,from:this.id}),this.useLoaderData=e=>v({...e,from:this.id}),this.useNavigate=()=>m({from:this.fullPath}),this.Link=S.forwardRef((e,t)=>(0,C.jsx)(d,{ref:t,from:this.fullPath,...e}))}};function A(e){return new k(e)}export{D as n,w as r,O as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./useRouter-DtTm7XkK.js";import{n as i}from"./useStore-CupyIEEP.js";import{d as a,f as o,s}from"./ClientOnly-Bj5CESUC.js";import{a as c,n as l,r as u}from"./redirect-DMNGvjzO.js";import{t as d}from"./link-DPnL8P5J.js";import{n as f,t as p}from"./useSearch-Diln-KYh.js";import{t as m}from"./useNavigate-7u4DX0Ho.js";var h=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=u:this.parentRoute||i();let r=n?u:t?.path;r&&r!==`/`&&(r=a(r));let c=t?.id||r,l=n?u:s([this.parentRoute.id===`__root__`?``:this.parentRoute.id,c]);r===`__root__`&&(r=`/`),l!==`__root__`&&(l=s([`/`,l]));let d=l===`__root__`?`/`:s([this.parentRoute.fullPath,r]);this._path=r,this._id=l,this._fullPath=d,this._to=o(d)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>l({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},g=class{constructor({id:e}){this.notFound=e=>c({routeId:this.id,...e}),this.redirect=e=>l({from:this.id,...e}),this.id=e}},_=class extends h{constructor(e){super(e)}};function v(e){return f({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function y(e){let{select:t,...n}=e;return f({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function b(e){return f({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function x(e){return f({...e,select:t=>e.select?e.select(t.context):t.context})}var S=e(t(),1),C=n();function w(e){return new T({id:e})}var T=class extends g{constructor({id:e}){super({id:e}),this.useMatch=e=>f({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>x({...e,from:this.id}),this.useSearch=e=>p({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>b({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>y({...e,from:this.id,strict:!1}),this.useLoaderData=e=>v({...e,from:this.id,strict:!1}),this.useNavigate=()=>m({from:r().routesById[this.id].fullPath}),this.notFound=e=>c({routeId:this.id,...e}),this.Link=S.forwardRef((e,t)=>{let n=r().routesById[this.id].fullPath;return(0,C.jsx)(d,{ref:t,from:n,...e})})}},E=class extends h{constructor(e){super(e),this.useMatch=e=>f({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>x({...e,from:this.id}),this.useSearch=e=>p({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>b({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>y({...e,from:this.id}),this.useLoaderData=e=>v({...e,from:this.id}),this.useNavigate=()=>m({from:this.fullPath}),this.Link=S.forwardRef((e,t)=>(0,C.jsx)(d,{ref:t,from:this.fullPath,...e}))}};function D(e){return new E(e)}function O(){return e=>A(e)}var k=class extends _{constructor(e){super(e),this.useMatch=e=>f({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>x({...e,from:this.id}),this.useSearch=e=>p({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>b({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>y({...e,from:this.id}),this.useLoaderData=e=>v({...e,from:this.id}),this.useNavigate=()=>m({from:this.fullPath}),this.Link=S.forwardRef((e,t)=>(0,C.jsx)(d,{ref:t,from:this.fullPath,...e}))}};function A(e){return new k(e)}export{D as n,w as r,O as t}; \ No newline at end of file diff --git a/src/www/assets/router-BluvjQRz.js b/src/www/assets/router-eyRTkMwc.js similarity index 77% rename from src/www/assets/router-BluvjQRz.js rename to src/www/assets/router-eyRTkMwc.js index 48247ae..a0e58e0 100644 --- a/src/www/assets/router-BluvjQRz.js +++ b/src/www/assets/router-eyRTkMwc.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/install-C3-O8MFY.js","assets/chunk-DECur_0Z.js","assets/form-BhKmyN6D.js","assets/button-BgMnOYKD.js","assets/clsx-D9aGYY3V.js","assets/messages-Bp0bCjzp.js","assets/react-CO2uhaBc.js","assets/label-CQ1eaOwZ.js","assets/dist-BFnxq45V.js","assets/zod-rwFXxHlg.js","assets/popover-YeKifm3K.js","assets/dist-BSXD7MjW.js","assets/dist-CKFLmh1A.js","assets/dist-B0ikDpJU.js","assets/dist-DGDEBCW9.js","assets/dist-_ND6L-P3.js","assets/es2015-D8VLlhse.js","assets/dist-Clua1vrx.js","assets/auth-store-Csn6HPxJ.js","assets/dist-BGqHIBUe.js","assets/with-selector-DBfssCrY.js","assets/cookies-BzZOQYPw.js","assets/link-BYG8nKNO.js","assets/ClientOnly-fFIveJVd.js","assets/useStore-CupyIEEP.js","assets/useRouter-DtTm7XkK.js","assets/command-CIv3ggHf.js","assets/dist-CPQ-sRtL.js","assets/createLucideIcon-Br0Bd5k2.js","assets/dialog-BJ5VA2v_.js","assets/copy-to-clipboard-C1tj4a8X.js","assets/check-CHp0nSkR.js","assets/chevron-down-BB5h1CsX.js","assets/eye-off-B8hO0oST.js","assets/eye-DAKGLydt.js","assets/theme-switch-B3Qb32n8.js","assets/dropdown-menu-8-hEBtzr.js","assets/dist-C6i4A_Js.js","assets/dist-C97YBjnT.js","assets/dist-D7AUoOWu.js","assets/useNavigate-7u4DX0Ho.js","assets/sun-JU8p4FoE.js","assets/theme-provider-CyJJNAox.js","assets/loader-circle-DpEz1fQv.js","assets/shield-check-MAPDL1u8.js","assets/triangle-alert-DB5v_9sS.js","assets/logo-Ce__4GTc.js","assets/badge-BP05f1dq.js","assets/card-C7G2YcSg.js","assets/input-BleRUV2A.js","assets/route-3D4HslVP.js","assets/Match-Cm64cgS9.js","assets/matchContext-BFCdcHzo.js","assets/redirect-DMNGvjzO.js","assets/checkout-model-CQ3aqlob.js","assets/route-C6lKmXki.js","assets/search-provider-Bl2HDfcG.js","assets/dist-CRowTfGU.js","assets/confirm-dialog-YmxNnOr3.js","assets/dist-036CEgdV.js","assets/dist-BixeH3nX.js","assets/separator-DbmFQXe4.js","assets/tooltip-Gx9CUpPD.js","assets/dist-Bmn8KNt7.js","assets/skeleton-BQsmx80h.js","assets/wallet-Bgblr4kl.js","assets/font-provider-CtpKPVa7.js","assets/Matches-DYR79wJf.js","assets/atom-DQpaPCwp.js","assets/chevrons-up-down-BPquKoYJ.js","assets/send-BNvceEpO.js","assets/route-B7oa6zSg.js","assets/auth-animation-context-CO6PD8ih.js","assets/dashboard-DLh95Ec3.js","assets/tabs-x8EHz9HA.js","assets/data-table-C3Nm2K6Z.js","assets/select-C9s05In_.js","assets/empty-state-BdzO6t8R.js","assets/table-503PQfKg.js","assets/epusdt-DkhuuUpL.js","assets/main-DnJ8otd-.js","assets/header-D45l3Ai7.js","assets/crypto-icon-DsKMU9xz.js","assets/page-header-CDwG3nxs.js","assets/503-KDAPoK8D.js","assets/maintenance-error-CuCw7L8t.js","assets/500-Ckr9SgA0.js","assets/general-error-BoIfl_4Z.js","assets/404-CfnT1SCK.js","assets/not-found-error-CHHM1I1c.js","assets/403-DROJKVmF.js","assets/forbidden-DZPSchCU.js","assets/401-BxmwY4ZX.js","assets/unauthorized-error-B6bKLdq-.js","assets/sign-in-MWZiX7xb.js","assets/useSearch-Diln-KYh.js","assets/password-input-D8nK3bk7.js","assets/route-BxnuR592.js","assets/sidebar-nav-DDS5oBdd.js","assets/useRouterState-B2FPPjEe.js","assets/route-CMVRG6IO.js","assets/route-9wAONQMq.js","assets/settings-BbpP20ev.js","assets/lib-DCke3ZPi.js","assets/rpc-m8HV1fJx.js","assets/checkbox-CKrZFk1G.js","assets/switch-CVYl00Vs.js","assets/route-Bin9ihv_.js","assets/arrow-left-BpZwGREZ.js","assets/ellipsis-74ly4-Wm.js","assets/chains-store-B0tGSNqG.js","assets/trash-2-9I8lAjeE.js","assets/long-text-fyhANC4b.js","assets/use-table-url-state-DP0Y4QjR.js","assets/payment-setup-CWhCyjHa.js","assets/labels-D0HnAPk9.js","assets/orders-XoL5rQoL.js","assets/download-fYUtNZ3R.js","assets/coming-soon-dialog-BWHKf2Gm.js","assets/telescope-DU0wiTDw.js","assets/keys-D6xhmsEg.js","assets/textarea-BaSGKw3a.js","assets/help-n4xnORtp.js","assets/chains-ZsMRX5G9.js","assets/addresses-BOy7duFM.js","assets/telegram-DTazPg6z.js","assets/system-CcMhRmKJ.js","assets/pay-D-KPn-qm.js","assets/preload-helper-DoS0eHac.js","assets/arrow-left-right-CcCrkQiR.js","assets/okpay-Ce2WH04h.js","assets/notifications-OX72ELc1.js","assets/radio-group-DrQ9k883.js","assets/show-submitted-data-C8ocsjDF.js","assets/epay-F8J9Rfxi.js","assets/display-JOhpHnKq.js","assets/appearance-CslRyYyk.js","assets/integrations-d7FQWamq.js","assets/password-CiaPXG92.js"])))=>i.map(i=>d[i]); -import{r as e}from"./chunk-DECur_0Z.js";import{A as t,C as n,D as r,E as i,O as a,S as o,T as s,_ as c,b as l,g as u,h as d,k as f,t as p,v as m,w as h,x as g,y as _}from"./auth-store-Csn6HPxJ.js";import{t as v}from"./react-CO2uhaBc.js";import{em as y}from"./messages-Bp0bCjzp.js";import{n as b}from"./redirect-DMNGvjzO.js";import{n as x,o as S}from"./Match-Cm64cgS9.js";import{t as C}from"./route-Bin9ihv_.js";import{n as w,t as T}from"./atom-DQpaPCwp.js";import{n as E,t as D}from"./lazyRouteComponent-iygd3-DM.js";import{t as O}from"./useRouterState-B2FPPjEe.js";import{n as ee}from"./wallet-Bgblr4kl.js";import{t as k}from"./preload-helper-DoS0eHac.js";import{t as A}from"./createLucideIcon-Br0Bd5k2.js";import{a as te,n as j,t as M}from"./epusdt-DkhuuUpL.js";import{t as ne}from"./loader-circle-DpEz1fQv.js";import{t as re}from"./triangle-alert-DB5v_9sS.js";import{t as ie}from"./dist-BGqHIBUe.js";import{t as ae}from"./general-error-BoIfl_4Z.js";import{t as oe}from"./not-found-error-CHHM1I1c.js";import{c as se,s as ce,t as N}from"./zod-rwFXxHlg.js";import{t as le}from"./_trade_id-BQK1SM3u.js";import{t as ue}from"./_error-CeoUllM-.js";var de=class extends t{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new d({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=P(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=P(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=P(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=P(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){_.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>n(t,e))}findAll(e={}){return this.getAll().filter(t=>n(e,t))}notify(e){_.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return _.batch(()=>Promise.all(e.map(e=>e.continue().catch(s))))}};function P(e){return e.options.scope?.id}var fe=class extends t{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??o(r,t),a=this.get(i);return a||(a=new c({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){_.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>h(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>h(e,t)):t}notify(e){_.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){_.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){_.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},F=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new fe,this.#t=e.mutationCache||new de,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=f.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=m.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),i=n.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(r(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=l(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return _.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;_.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return _.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=_.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(s).catch(s)}invalidateQueries(e,t={}){return _.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=_.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(s)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(s)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(r(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(s).catch(s)}fetchInfiniteQuery(e){return e.behavior=u(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(s).catch(s)}ensureInfiniteQueryData(e){return e.behavior=u(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return m.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(g(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{i(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(g(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{i(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=o(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===a&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},I=e=>({createMutableStore:w,createReadonlyStore:w,batch:T}),L=e=>new R(e),R=class extends S{constructor(e){super(e,I)}},z=e(v(),1),B=()=>{};function V(e,t,n){let r=(0,z.useRef)(B);(0,z.useEffect)(()=>{r.current=e}),(0,z.useEffect)(()=>{},[n]),(0,z.useEffect)(()=>{if(t===null||t===!1)return;let e=setInterval(()=>r.current(),t);return()=>clearInterval(e)},[t])}function H(e,t){return Math.random()*(t-e+1)+e}function U(e,t){return Math.floor(H(e,t))}var pe=(0,z.forwardRef)(({progress:e,height:t=2,className:n=``,color:r=`red`,background:i=`transparent`,onLoaderFinished:a,transitionTime:o=300,loaderSpeed:s=500,waitingTime:c=1e3,shadow:l=!0,containerStyle:u={},style:d={},shadowStyle:f={},containerClassName:p=``},m)=>{let h=(0,z.useRef)(!1),[g,_]=(0,z.useState)(0),v=(0,z.useRef)({active:!1,refreshRate:1e3}),[y,b]=(0,z.useState)({active:!1,value:60}),x={height:`100%`,background:r,transition:`all ${s}ms ease`,width:`0%`},S={position:`fixed`,top:0,left:0,height:t,background:i,zIndex:99999999999,width:`100%`},C={boxShadow:`0 0 10px ${r}, 0 0 10px ${r}`,width:`5%`,opacity:1,position:`absolute`,height:`100%`,transition:`all ${s}ms ease`,transform:`rotate(2deg) translate(0px, -2px)`,left:`-10rem`},[w,T]=(0,z.useState)(x),[E,D]=(0,z.useState)(C);(0,z.useEffect)(()=>(h.current=!0,()=>{h.current=!1}),[]),(0,z.useImperativeHandle)(m,()=>({continuousStart(t,n=1e3){if(y.active)return;if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}let r=t||U(10,20);v.current={active:!0,refreshRate:n},_(r),O(r)},staticStart(t){if(v.current.active)return;if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}let n=t||U(30,60);b({active:!0,value:n}),_(n),O(n)},start(t=`continuous`,n,r){if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}t===`continuous`?v.current={active:!0,refreshRate:r||1e3}:b({active:!0,value:n||20});let i=U(10,20),a=U(30,70),o=n||(t===`continuous`?i:a);_(o),O(o)},complete(){if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}_(100),O(100)},increase(t){if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}_(e=>{let n=e+t;return O(n),n})},decrease(t){if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}_(e=>{let n=e-t;return O(n),n})},getProgress(){return g}})),(0,z.useEffect)(()=>{T({...w,background:r}),D({...E,boxShadow:`0 0 10px ${r}, 0 0 5px ${r}`})},[r]),(0,z.useEffect)(()=>{if(m){if(m&&e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar! Please use only props or only ref methods! Ref methods will override props if "ref" property is available.`);return}O(g)}else e&&O(e)},[e]);let O=e=>{e>=100?(T({...w,width:`100%`}),l&&D({...E,left:e-10+`%`}),setTimeout(()=>{h.current&&(T({...w,opacity:0,width:`100%`,transition:`all ${o}ms ease-out`,color:r}),setTimeout(()=>{h.current&&(v.current.active&&(v.current={...v.current,active:!1},_(0),O(0)),y.active&&(b({...y,active:!1}),_(0),O(0)),a&&a(),_(0),O(0))},o))},c)):(T(t=>({...t,width:e+`%`,opacity:1,transition:e>0?`all ${s}ms ease`:``})),l&&D({...E,left:e-5.5+`%`,transition:e>0?`all ${s}ms ease`:``}))};return V(()=>{let e=H(Math.min(10,(100-g)/5),Math.min(20,(100-g)/3));g+e<95&&(_(g+e),O(g+e))},v.current.active?v.current.refreshRate:null),z.createElement(`div`,{className:p,style:{...S,...u}},z.createElement(`div`,{className:n,style:{...w,...d}},l?z.createElement(`div`,{style:{...E,...f}}):null))});z.createContext(void 0);var W=y();function me(){let e=(0,z.useRef)(null),t=O();return(0,z.useEffect)(()=>{t.status===`pending`?e.current?.continuousStart():e.current?.complete()},[t.status]),(0,W.jsx)(pe,{color:`var(--primary)`,height:2,ref:e,shadow:!0})}var he=A(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),ge=A(`octagon-x`,[[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z`,key:`2d38gg`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),_e=(e,t,n,r,i,a,o,s)=>{let c=document.documentElement,l=[`light`,`dark`];function u(t){(Array.isArray(e)?e:[e]).forEach(e=>{let n=e===`class`,r=n&&a?i.map(e=>a[e]||e):i;n?(c.classList.remove(...r),c.classList.add(a&&a[t]?a[t]:t)):c.setAttribute(e,t)}),d(t)}function d(e){s&&l.includes(e)&&(c.style.colorScheme=e)}function f(){return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}if(r)u(r);else try{let e=localStorage.getItem(t)||n;u(o&&e===`system`?f():e)}catch{}},ve=z.createContext(void 0),ye={setTheme:e=>{},themes:[]},be=()=>z.useContext(ve)??ye;z.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:a,value:o,themes:s,nonce:c,scriptProps:l})=>{let u=JSON.stringify([n,t,a,e,s,o,r,i]).slice(1,-1);return z.createElement(`script`,{...l,suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(${_e.toString()})(${u})`}})});var xe=({...e})=>{let{theme:t=`system`}=be();return(0,W.jsx)(ie,{richColors:!0,className:`toaster group`,icons:{success:(0,W.jsx)(ee,{className:`size-4`}),info:(0,W.jsx)(he,{className:`size-4`}),warning:(0,W.jsx)(re,{className:`size-4`}),error:(0,W.jsx)(ge,{className:`size-4`}),loading:(0,W.jsx)(ne,{className:`size-4 animate-spin`})},style:{"--normal-bg":`var(--popover)`,"--normal-text":`var(--popover-foreground)`,"--normal-border":`var(--border)`,"--border-radius":`var(--radius)`},theme:t,...e})};function Se(){return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(me,{}),(0,W.jsx)(x,{}),(0,W.jsx)(xe,{duration:5e3,position:`top-right`})]})}var G=C()({component:Se,notFoundComponent:oe,errorComponent:ae}),Ce=E(`/install`)({component:D(()=>k(()=>import(`./install-C3-O8MFY.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49])),`component`)}),we=E(`/cashier`)({component:D(()=>k(()=>import(`./route-3D4HslVP.js`),__vite__mapDeps([50,1,3,4,5,6,51,23,24,20,52,25,53,18,19,8,21,28,35,36,11,12,13,14,37,38,15,16,17,39,31,40,41,42,54])),`component`)}),Te=E(`/_authenticated`)({beforeLoad:({location:e})=>{if(!p.state.accessToken)throw b({to:`/sign-in`,search:{redirect:e.href},replace:!0})},component:D(()=>k(()=>import(`./route-C6lKmXki.js`),__vite__mapDeps([55,1,12,5,6,56,57,58,3,4,27,15,13,8,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,36,31,51,23,52,53,67,68,22,69,70,47])),`component`)}),Ee=E(`/(auth)`)({component:D(()=>k(()=>import(`./route-B7oa6zSg.js`),__vite__mapDeps([71,1,3,4,5,6,51,23,24,20,52,25,53,35,36,11,12,13,8,14,37,38,15,16,17,39,31,28,40,41,42,21,46,72])),`component`)}),De=E(`/`)({beforeLoad:()=>{throw b({to:p.state.accessToken?`/dashboard`:`/sign-in`,replace:!0})},component:D(()=>k(()=>import(`./routes-D7HD5c-e.js`),[]),`component`)}),Oe=E(`/_authenticated/dashboard`)({component:D(()=>k(()=>import(`./dashboard-DLh95Ec3.js`),__vite__mapDeps([73,1,56,57,12,5,6,58,3,4,27,15,13,8,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,10,74,75,36,31,76,32,69,33,77,47,78,79,80,22,23,35,81,45,82,83,48])),`component`)}),ke=E(`/(errors)/503`)({component:D(()=>k(()=>import(`./503-KDAPoK8D.js`),__vite__mapDeps([84,85,3,1,4,5,6])),`component`)}),Ae=E(`/(errors)/500`)({component:D(()=>k(()=>import(`./500-Ckr9SgA0.js`),__vite__mapDeps([86,87,3,1,4,5,6,25,40])),`component`)}),je=E(`/(errors)/404`)({component:D(()=>k(()=>import(`./404-CfnT1SCK.js`),__vite__mapDeps([88,89,3,1,4,5,6,25,40])),`component`)}),Me=E(`/(errors)/403`)({component:D(()=>k(()=>import(`./403-DROJKVmF.js`),__vite__mapDeps([90,91,3,1,4,5,6,25,40])),`component`)}),Ne=E(`/(errors)/401`)({component:D(()=>k(()=>import(`./401-BxmwY4ZX.js`),__vite__mapDeps([92,93,3,1,4,5,6,25,40])),`component`)}),Pe=()=>k(()=>import(`./sign-in-MWZiX7xb.js`),__vite__mapDeps([94,1,2,3,4,5,6,7,8,9,58,12,27,15,13,16,17,18,19,20,21,95,52,25,24,40,28,43,96,33,34,49,72])),Fe=ce({redirect:se().optional()}),Ie=E(`/(auth)/sign-in`)({component:D(Pe,`component`),validateSearch:Fe}),Le=E(`/_authenticated/settings`)({component:D(()=>k(()=>import(`./route-BxnuR592.js`),__vite__mapDeps([97,56,1,57,12,5,6,58,3,4,27,15,13,8,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,51,23,52,53,80,36,31,22,35,81,83,98,76,32,99])),`component`)}),Re=E(`/_authenticated/payment-setup`)({component:D(()=>k(()=>import(`./route-CMVRG6IO.js`),__vite__mapDeps([100,56,1,57,12,5,6,58,3,4,27,15,13,8,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,51,23,52,53,80,36,31,22,35,81,83,98,76,32,99])),`component`)}),ze=E(`/_authenticated/account`)({component:D(()=>k(()=>import(`./route-9wAONQMq.js`),__vite__mapDeps([101,56,1,57,12,5,6,58,3,4,27,15,13,8,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,51,23,52,53,80,36,31,22,35,81,83,98,76,32,99])),`component`)}),Be=E(`/_authenticated/settings/`)({component:D(()=>k(()=>import(`./settings-BbpP20ev.js`),__vite__mapDeps([102,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,83,61,49,103,18,19,20,21])),`component`)}),Ve=()=>k(()=>import(`./rpc-m8HV1fJx.js`),__vite__mapDeps([104,1,2,3,4,5,6,7,8,9,56,57,12,58,27,15,13,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,105,31,36,76,32,106,107,23,22,95,52,53,75,10,69,33,77,47,78,108,109,80,35,81,110,111,112,83,113])),He=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10),enabled:N.array(N.enum(j.map(e=>e.value))).optional().catch([]),type:N.array(N.string()).optional().catch([]),status:N.array(N.enum([`ok`,`down`,`unknown`])).optional().catch([]),keyword:N.string().optional().catch(``)}),Ue=E(`/_authenticated/rpc/`)({validateSearch:He,component:D(Ve,`component`)}),We=()=>k(()=>import(`./payment-setup-CWhCyjHa.js`),__vite__mapDeps([114,1,3,4,5,6,18,19,8,20,21,107,23,24,22,25,95,52,40,53,75,36,11,12,13,14,37,38,15,16,17,39,31,28,10,76,57,60,63,32,61,62,26,27,29,64,69,33,77,47,49,78,115,82,113])),Ge=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10),status:N.enum([`enabled`,`disabled`]).array().optional().catch([]),chain:N.array(N.string()).optional().catch([]),keyword:N.string().optional().catch(``)}),Ke=E(`/_authenticated/payment-setup/`)({validateSearch:Ge,component:D(We,`component`)}),qe=()=>k(()=>import(`./orders-XoL5rQoL.js`),__vite__mapDeps([116,1,58,12,5,6,3,4,27,15,13,8,16,17,56,57,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,36,31,7,107,23,22,95,52,53,75,10,76,32,69,33,77,47,78,79,117,109,34,80,35,81,118,119,112,83,113])),Je=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10),status:N.array(N.enum(te.map(e=>e.value))).optional().catch([]),chain:N.array(N.string()).optional().catch([]),orderNo:N.string().optional().catch(``)}),Ye=E(`/_authenticated/orders/`)({validateSearch:Je,component:D(qe,`component`)}),Xe=()=>k(()=>import(`./keys-D6xhmsEg.js`),__vite__mapDeps([120,1,2,3,4,5,6,7,8,9,58,12,27,15,13,16,17,56,57,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,76,31,32,106,107,23,22,95,52,53,30,33,34,77,80,36,35,81,111,83,47,121])),Ze=N.object({type:N.enum([`all`,`enabled`,`disabled`]).optional().catch(void 0),filter:N.string().optional().catch(``),sort:N.enum([`asc`,`desc`]).optional().catch(void 0)}),Qe=E(`/_authenticated/keys/`)({validateSearch:Ze,component:D(Xe,`component`)}),$e=E(`/_authenticated/help/`)({component:D(()=>k(()=>import(`./help-n4xnORtp.js`),__vite__mapDeps([122,119,28,1,6,5])),`component`)}),et=()=>k(()=>import(`./chains-ZsMRX5G9.js`),__vite__mapDeps([123,1,2,3,4,5,6,7,8,9,56,57,12,58,27,15,13,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,105,31,36,76,32,106,75,10,69,33,77,47,78,108,109,80,22,23,35,81,110,111,118,119,83])),tt=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10),status:N.array(N.enum(j.map(e=>e.value))).optional().catch([]),keyword:N.string().optional().catch(``)}),nt=E(`/_authenticated/chains/`)({validateSearch:tt,component:D(et,`component`)}),rt=()=>k(()=>import(`./addresses-BOy7duFM.js`),__vite__mapDeps([124,1,2,3,4,5,6,7,8,9,58,12,27,15,13,16,17,56,57,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,36,31,76,32,106,107,23,22,95,52,53,75,10,69,33,77,47,78,79,117,109,34,80,35,81,110,111,112,83,121,113])),it=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10),status:N.array(N.enum(M.map(e=>e.value))).optional().catch([]),chain:N.array(N.string()).optional().catch([]),address:N.string().optional().catch(``)}),at=E(`/_authenticated/addresses/`)({validateSearch:it,component:D(rt,`component`)}),ot=E(`/_authenticated/account/`)({beforeLoad:()=>{throw b({to:`/account/password`,replace:!0})}}),st=E(`/_authenticated/settings/telegram`)({component:D(()=>k(()=>import(`./telegram-DTazPg6z.js`),__vite__mapDeps([125,1,2,3,4,5,6,7,8,9,106,12,60,14,83,61,49,103,18,19,20,21])),`component`)}),ct=E(`/_authenticated/settings/system`)({component:D(()=>k(()=>import(`./system-CcMhRmKJ.js`),__vite__mapDeps([126,1,2,3,4,5,6,7,8,9,76,11,12,13,14,57,37,38,15,16,60,63,28,31,32,83,61,103,18,19,20,21])),`component`)}),lt=E(`/_authenticated/settings/pay`)({component:D(()=>k(()=>import(`./pay-D-KPn-qm.js`),__vite__mapDeps([127,1,128,2,3,4,5,6,7,8,9,129,28,83,61,49,78,103,18,19,20,21])),`component`)}),ut=E(`/_authenticated/settings/okpay`)({component:D(()=>k(()=>import(`./okpay-Ce2WH04h.js`),__vite__mapDeps([130,1,2,3,4,5,6,7,8,9,106,12,60,14,96,33,28,34,49,83,61,103,18,19,20,21])),`component`)}),dt=E(`/_authenticated/settings/notifications`)({component:D(()=>k(()=>import(`./notifications-OX72ELc1.js`),__vite__mapDeps([131,2,1,3,4,5,6,7,8,9,105,12,17,60,14,31,28,106,22,23,24,20,25,132,59,38,39,37,13,83,61,133,19])),`component`)}),ft=E(`/_authenticated/settings/epay`)({component:D(()=>k(()=>import(`./epay-F8J9Rfxi.js`),__vite__mapDeps([134,1,2,3,4,5,6,7,8,9,76,11,12,13,14,57,37,38,15,16,60,63,28,31,32,18,19,20,21,115,82,83,61,49,103])),`component`)}),pt=E(`/_authenticated/settings/display`)({component:D(()=>k(()=>import(`./display-JOhpHnKq.js`),__vite__mapDeps([135,2,1,3,4,5,6,7,8,9,105,12,17,60,14,31,28,83,61,133,19])),`component`)}),mt=E(`/_authenticated/settings/appearance`)({component:D(()=>k(()=>import(`./appearance-CslRyYyk.js`),__vite__mapDeps([136,2,1,3,4,5,6,7,8,9,32,28,132,59,12,38,17,39,37,13,60,14,83,61,66,21,42,133,19])),`component`)}),ht=()=>k(()=>import(`./integrations-d7FQWamq.js`),__vite__mapDeps([137,1,107,23,24,6,20,5,22,8,3,4,25,95,52,40,53,75,36,11,12,13,14,37,38,15,16,17,39,31,28,10,76,57,60,63,32,61,62,26,27,29,64,69,33,77,47,49,78,113])),gt=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10)}),_t=E(`/_authenticated/payment-setup/integrations`)({validateSearch:gt,component:D(ht,`component`)}),vt=E(`/_authenticated/account/password`)({component:D(()=>k(()=>import(`./password-CiaPXG92.js`),__vite__mapDeps([138,2,1,3,4,5,6,7,8,9,18,19,20,21,96,33,28,34,49,83,61])),`component`)}),yt=Ce.update({id:`/install`,path:`/install`,getParentRoute:()=>G}),K=we.update({id:`/cashier`,path:`/cashier`,getParentRoute:()=>G}),q=Te.update({id:`/_authenticated`,getParentRoute:()=>G}),J=Ee.update({id:`/(auth)`,getParentRoute:()=>G}),bt=De.update({id:`/`,path:`/`,getParentRoute:()=>G}),xt=Oe.update({id:`/dashboard`,path:`/dashboard`,getParentRoute:()=>q}),St=ke.update({id:`/(errors)/503`,path:`/503`,getParentRoute:()=>G}),Ct=Ae.update({id:`/(errors)/500`,path:`/500`,getParentRoute:()=>G}),wt=je.update({id:`/(errors)/404`,path:`/404`,getParentRoute:()=>G}),Tt=Me.update({id:`/(errors)/403`,path:`/403`,getParentRoute:()=>G}),Et=Ne.update({id:`/(errors)/401`,path:`/401`,getParentRoute:()=>G}),Dt=Ie.update({id:`/sign-in`,path:`/sign-in`,getParentRoute:()=>J}),Y=Le.update({id:`/settings`,path:`/settings`,getParentRoute:()=>q}),X=Re.update({id:`/payment-setup`,path:`/payment-setup`,getParentRoute:()=>q}),Z=ze.update({id:`/account`,path:`/account`,getParentRoute:()=>q}),Ot=le.update({id:`/$trade_id/`,path:`/$trade_id/`,getParentRoute:()=>K}),kt=Be.update({id:`/`,path:`/`,getParentRoute:()=>Y}),At=Ue.update({id:`/rpc/`,path:`/rpc/`,getParentRoute:()=>q}),jt=Ke.update({id:`/`,path:`/`,getParentRoute:()=>X}),Mt=Ye.update({id:`/orders/`,path:`/orders/`,getParentRoute:()=>q}),Nt=Qe.update({id:`/keys/`,path:`/keys/`,getParentRoute:()=>q}),Pt=$e.update({id:`/help/`,path:`/help/`,getParentRoute:()=>q}),Ft=nt.update({id:`/chains/`,path:`/chains/`,getParentRoute:()=>q}),It=at.update({id:`/addresses/`,path:`/addresses/`,getParentRoute:()=>q}),Lt=ot.update({id:`/`,path:`/`,getParentRoute:()=>Z}),Rt=st.update({id:`/telegram`,path:`/telegram`,getParentRoute:()=>Y}),zt=ct.update({id:`/system`,path:`/system`,getParentRoute:()=>Y}),Bt=lt.update({id:`/pay`,path:`/pay`,getParentRoute:()=>Y}),Vt=ut.update({id:`/okpay`,path:`/okpay`,getParentRoute:()=>Y}),Ht=dt.update({id:`/notifications`,path:`/notifications`,getParentRoute:()=>Y}),Ut=ft.update({id:`/epay`,path:`/epay`,getParentRoute:()=>Y}),Wt=pt.update({id:`/display`,path:`/display`,getParentRoute:()=>Y}),Gt=mt.update({id:`/appearance`,path:`/appearance`,getParentRoute:()=>Y}),Kt=_t.update({id:`/integrations`,path:`/integrations`,getParentRoute:()=>X}),qt=ue.update({id:`/errors/$error`,path:`/errors/$error`,getParentRoute:()=>q}),Jt=vt.update({id:`/password`,path:`/password`,getParentRoute:()=>Z}),Q={authSignInRoute:Dt},Yt=J._addFileChildren(Q),Xt={AuthenticatedAccountPasswordRoute:Jt,AuthenticatedAccountIndexRoute:Lt},Zt=Z._addFileChildren(Xt),Qt={AuthenticatedPaymentSetupIntegrationsRoute:Kt,AuthenticatedPaymentSetupIndexRoute:jt},$t=X._addFileChildren(Qt),en={AuthenticatedSettingsAppearanceRoute:Gt,AuthenticatedSettingsDisplayRoute:Wt,AuthenticatedSettingsEpayRoute:Ut,AuthenticatedSettingsNotificationsRoute:Ht,AuthenticatedSettingsOkpayRoute:Vt,AuthenticatedSettingsPayRoute:Bt,AuthenticatedSettingsSystemRoute:zt,AuthenticatedSettingsTelegramRoute:Rt,AuthenticatedSettingsIndexRoute:kt},tn={AuthenticatedAccountRouteRoute:Zt,AuthenticatedPaymentSetupRouteRoute:$t,AuthenticatedSettingsRouteRoute:Y._addFileChildren(en),AuthenticatedDashboardRoute:xt,AuthenticatedErrorsErrorRoute:qt,AuthenticatedAddressesIndexRoute:It,AuthenticatedChainsIndexRoute:Ft,AuthenticatedHelpIndexRoute:Pt,AuthenticatedKeysIndexRoute:Nt,AuthenticatedOrdersIndexRoute:Mt,AuthenticatedRpcIndexRoute:At},nn=q._addFileChildren(tn),rn={CashierTrade_idIndexRoute:Ot},an={IndexRoute:bt,authRouteRoute:Yt,AuthenticatedRouteRoute:nn,CashierRouteRoute:K._addFileChildren(rn),InstallRoute:yt,errors401Route:Et,errors403Route:Tt,errors404Route:wt,errors500Route:Ct,errors503Route:St},on=G._addFileChildren(an)._addFileTypes(),$=new F({defaultOptions:{queries:{retry:(e,t)=>{if(e>3)return!1;if(typeof t==`object`&&t&&`status`in t){let e=t.status;if(e===401||e===403)return!1}return!0},refetchOnWindowFocus:!0,staleTime:10*1e3}}}),sn=L({routeTree:on,context:{queryClient:$},scrollRestoration:!0,defaultPreload:`intent`,defaultPreloadStaleTime:0});export{sn as n,$ as t}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/install-B-GE7uWS.js","assets/chunk-DECur_0Z.js","assets/form-KfFEakes.js","assets/button-C_NDYaz8.js","assets/clsx-D9aGYY3V.js","assets/messages-BOatyqUm.js","assets/react-CO2uhaBc.js","assets/label-DNL0sHKL.js","assets/dist-Cc8_LDAq.js","assets/zod-rwFXxHlg.js","assets/popover-NQZzcPDh.js","assets/dist-CsIb2aLK.js","assets/dist-DPPquN_M.js","assets/dist-D4X8zGEB.js","assets/dist-ZdRQQNeu.js","assets/dist-rcWP-8Cu.js","assets/es2015-DT8UeWzs.js","assets/dist-DvwKOQ8R.js","assets/auth-store-De4Y7PFV.js","assets/dist-JOUh6qvR.js","assets/with-selector-DBfssCrY.js","assets/cookies-BzZOQYPw.js","assets/link-DPnL8P5J.js","assets/ClientOnly-Bj5CESUC.js","assets/useStore-CupyIEEP.js","assets/useRouter-DtTm7XkK.js","assets/command-B_SlhXkX.js","assets/dist-iiotRAEO.js","assets/createLucideIcon-Br0Bd5k2.js","assets/dialog-CZ-2RPb-.js","assets/copy-to-clipboard-C1tj4a8X.js","assets/check-CHp0nSkR.js","assets/chevron-down-BB5h1CsX.js","assets/eye-off-B8hO0oST.js","assets/eye-DAKGLydt.js","assets/theme-switch-CHLQml_8.js","assets/dropdown-menu-DzCIpsuG.js","assets/dist-CHFjpVqk.js","assets/dist-BNFQuJTu.js","assets/dist-D0DoWChj.js","assets/useNavigate-7u4DX0Ho.js","assets/sun-JU8p4FoE.js","assets/theme-provider-BREWrHp_.js","assets/loader-circle-DpEz1fQv.js","assets/shield-check-MAPDL1u8.js","assets/triangle-alert-DB5v_9sS.js","assets/logo-agrtpj2n.js","assets/badge-VJlwwTW5.js","assets/card-DiF5YaRi.js","assets/input-8zzM34r5.js","assets/route-D1gzbhTf.js","assets/Match-DrG03Wse.js","assets/matchContext-BFCdcHzo.js","assets/redirect-DMNGvjzO.js","assets/checkout-model-CQ3aqlob.js","assets/route-GrVEK0V1.js","assets/search-provider-C-_FQI9C.js","assets/dist-CRowTfGU.js","assets/confirm-dialog-D1L-0EhT.js","assets/dist-C5heX0fx.js","assets/dist-BixeH3nX.js","assets/separator-CsUemQNs.js","assets/tooltip-xZuTTfnF.js","assets/dist-Dtn5c_cx.js","assets/skeleton-CmDjDV1O.js","assets/wallet-CtiawGS1.js","assets/font-provider-BPsIRWbb.js","assets/Matches-9qnXJNrS.js","assets/atom-DQpaPCwp.js","assets/chevrons-up-down-BPquKoYJ.js","assets/send-BNvceEpO.js","assets/route-CAiA_U_q.js","assets/auth-animation-context-CmPA3sF3.js","assets/dashboard-C_GaAVh0.js","assets/tabs-6Ep1KePr.js","assets/data-table-1LQSBhN2.js","assets/select-CzebumOF.js","assets/empty-state-CxE4wU3V.js","assets/table-9UOy2Vxt.js","assets/epusdt-BvGYu9TV.js","assets/main-C1R3Hvq1.js","assets/header-DVAsq5d6.js","assets/crypto-icon-DnliVYVs.js","assets/page-header-GTtyZFBB.js","assets/503-DqC0HW48.js","assets/maintenance-error-DeZhljU8.js","assets/500-Ch8AmacC.js","assets/general-error-BoAB2alm.js","assets/404-pq4P7jD8.js","assets/not-found-error-BvJzTnw0.js","assets/403-DfLmRqHM.js","assets/forbidden-CgQyYxDt.js","assets/401-CvFvdOr5.js","assets/unauthorized-error-CtrGmVOn.js","assets/sign-in-_ux3l1kN.js","assets/useSearch-Diln-KYh.js","assets/password-input-95hMTMdh.js","assets/route-C6USHQDN.js","assets/sidebar-nav-LZqaVZGH.js","assets/useRouterState-B2FPPjEe.js","assets/route-DvJeidrw.js","assets/route-lp7ScXTd.js","assets/settings-eRG1_Yuf.js","assets/lib-DDezYSnW.js","assets/rpc-cAFAt1WZ.js","assets/checkbox-CTHgcB3t.js","assets/switch-CgoJjvdz.js","assets/route-wzPKSRj2.js","assets/arrow-left-BpZwGREZ.js","assets/ellipsis-74ly4-Wm.js","assets/chains-store-DCzO87jZ.js","assets/trash-2-9I8lAjeE.js","assets/long-text-DNqlDi0R.js","assets/use-table-url-state-DP0Y4QjR.js","assets/payment-setup-BFIKIu1u.js","assets/labels-Cbc2zlmv.js","assets/orders-C2v2goOf.js","assets/download-fYUtNZ3R.js","assets/coming-soon-dialog-B34F88bO.js","assets/telescope-DU0wiTDw.js","assets/keys-DvE6Ll4y.js","assets/textarea-C8ejjLzk.js","assets/help-Bq6Uj7UY.js","assets/chains-D5PNpB55.js","assets/addresses-CNbxs6Fb.js","assets/telegram-Br_DijOI.js","assets/system-CzKDOsCg.js","assets/pay-BNu4n_oI.js","assets/preload-helper-DoS0eHac.js","assets/arrow-left-right-CcCrkQiR.js","assets/okpay-D5pTA_4W.js","assets/notifications-xdKOW8nn.js","assets/radio-group-D2rceepu.js","assets/show-submitted-data-BqZb-_Pf.js","assets/epay-BPdlNSqh.js","assets/display-CqGwMVHS.js","assets/appearance-Cl8fvRSv.js","assets/integrations-Clnk2I57.js","assets/password-DElKXGVw.js"])))=>i.map(i=>d[i]); +import{r as e}from"./chunk-DECur_0Z.js";import{A as t,C as n,D as r,E as i,O as a,S as o,T as s,_ as c,b as l,g as u,h as d,k as f,t as p,v as m,w as h,x as g,y as _}from"./auth-store-De4Y7PFV.js";import{t as v}from"./react-CO2uhaBc.js";import{tm as y}from"./messages-BOatyqUm.js";import{n as b}from"./redirect-DMNGvjzO.js";import{n as x,o as S}from"./Match-DrG03Wse.js";import{t as C}from"./route-wzPKSRj2.js";import{n as w,t as T}from"./atom-DQpaPCwp.js";import{n as E,t as D}from"./lazyRouteComponent-JF8ipq5d.js";import{t as O}from"./useRouterState-B2FPPjEe.js";import{n as ee}from"./wallet-CtiawGS1.js";import{t as k}from"./preload-helper-DoS0eHac.js";import{t as A}from"./createLucideIcon-Br0Bd5k2.js";import{a as te,n as j,t as M}from"./epusdt-BvGYu9TV.js";import{t as ne}from"./loader-circle-DpEz1fQv.js";import{t as re}from"./triangle-alert-DB5v_9sS.js";import{t as ie}from"./dist-JOUh6qvR.js";import{t as ae}from"./general-error-BoAB2alm.js";import{t as oe}from"./not-found-error-BvJzTnw0.js";import{c as se,s as ce,t as N}from"./zod-rwFXxHlg.js";import{t as le}from"./_trade_id-DIf2n6tl.js";import{t as ue}from"./_error-CtV7sHbI.js";var de=class extends t{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new d({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=P(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=P(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=P(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=P(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){_.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>n(t,e))}findAll(e={}){return this.getAll().filter(t=>n(e,t))}notify(e){_.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return _.batch(()=>Promise.all(e.map(e=>e.continue().catch(s))))}};function P(e){return e.options.scope?.id}var fe=class extends t{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??o(r,t),a=this.get(i);return a||(a=new c({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){_.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>h(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>h(e,t)):t}notify(e){_.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){_.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){_.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},F=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new fe,this.#t=e.mutationCache||new de,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=f.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=m.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),i=n.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(r(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=l(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return _.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;_.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return _.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=_.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(s).catch(s)}invalidateQueries(e,t={}){return _.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=_.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(s)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(s)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(r(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(s).catch(s)}fetchInfiniteQuery(e){return e.behavior=u(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(s).catch(s)}ensureInfiniteQueryData(e){return e.behavior=u(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return m.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(g(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{i(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(g(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{i(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=o(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===a&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},I=e=>({createMutableStore:w,createReadonlyStore:w,batch:T}),L=e=>new R(e),R=class extends S{constructor(e){super(e,I)}},z=e(v(),1),B=()=>{};function V(e,t,n){let r=(0,z.useRef)(B);(0,z.useEffect)(()=>{r.current=e}),(0,z.useEffect)(()=>{},[n]),(0,z.useEffect)(()=>{if(t===null||t===!1)return;let e=setInterval(()=>r.current(),t);return()=>clearInterval(e)},[t])}function H(e,t){return Math.random()*(t-e+1)+e}function U(e,t){return Math.floor(H(e,t))}var pe=(0,z.forwardRef)(({progress:e,height:t=2,className:n=``,color:r=`red`,background:i=`transparent`,onLoaderFinished:a,transitionTime:o=300,loaderSpeed:s=500,waitingTime:c=1e3,shadow:l=!0,containerStyle:u={},style:d={},shadowStyle:f={},containerClassName:p=``},m)=>{let h=(0,z.useRef)(!1),[g,_]=(0,z.useState)(0),v=(0,z.useRef)({active:!1,refreshRate:1e3}),[y,b]=(0,z.useState)({active:!1,value:60}),x={height:`100%`,background:r,transition:`all ${s}ms ease`,width:`0%`},S={position:`fixed`,top:0,left:0,height:t,background:i,zIndex:99999999999,width:`100%`},C={boxShadow:`0 0 10px ${r}, 0 0 10px ${r}`,width:`5%`,opacity:1,position:`absolute`,height:`100%`,transition:`all ${s}ms ease`,transform:`rotate(2deg) translate(0px, -2px)`,left:`-10rem`},[w,T]=(0,z.useState)(x),[E,D]=(0,z.useState)(C);(0,z.useEffect)(()=>(h.current=!0,()=>{h.current=!1}),[]),(0,z.useImperativeHandle)(m,()=>({continuousStart(t,n=1e3){if(y.active)return;if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}let r=t||U(10,20);v.current={active:!0,refreshRate:n},_(r),O(r)},staticStart(t){if(v.current.active)return;if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}let n=t||U(30,60);b({active:!0,value:n}),_(n),O(n)},start(t=`continuous`,n,r){if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}t===`continuous`?v.current={active:!0,refreshRate:r||1e3}:b({active:!0,value:n||20});let i=U(10,20),a=U(30,70),o=n||(t===`continuous`?i:a);_(o),O(o)},complete(){if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}_(100),O(100)},increase(t){if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}_(e=>{let n=e+t;return O(n),n})},decrease(t){if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}_(e=>{let n=e-t;return O(n),n})},getProgress(){return g}})),(0,z.useEffect)(()=>{T({...w,background:r}),D({...E,boxShadow:`0 0 10px ${r}, 0 0 5px ${r}`})},[r]),(0,z.useEffect)(()=>{if(m){if(m&&e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar! Please use only props or only ref methods! Ref methods will override props if "ref" property is available.`);return}O(g)}else e&&O(e)},[e]);let O=e=>{e>=100?(T({...w,width:`100%`}),l&&D({...E,left:e-10+`%`}),setTimeout(()=>{h.current&&(T({...w,opacity:0,width:`100%`,transition:`all ${o}ms ease-out`,color:r}),setTimeout(()=>{h.current&&(v.current.active&&(v.current={...v.current,active:!1},_(0),O(0)),y.active&&(b({...y,active:!1}),_(0),O(0)),a&&a(),_(0),O(0))},o))},c)):(T(t=>({...t,width:e+`%`,opacity:1,transition:e>0?`all ${s}ms ease`:``})),l&&D({...E,left:e-5.5+`%`,transition:e>0?`all ${s}ms ease`:``}))};return V(()=>{let e=H(Math.min(10,(100-g)/5),Math.min(20,(100-g)/3));g+e<95&&(_(g+e),O(g+e))},v.current.active?v.current.refreshRate:null),z.createElement(`div`,{className:p,style:{...S,...u}},z.createElement(`div`,{className:n,style:{...w,...d}},l?z.createElement(`div`,{style:{...E,...f}}):null))});z.createContext(void 0);var W=y();function me(){let e=(0,z.useRef)(null),t=O();return(0,z.useEffect)(()=>{t.status===`pending`?e.current?.continuousStart():e.current?.complete()},[t.status]),(0,W.jsx)(pe,{color:`var(--primary)`,height:2,ref:e,shadow:!0})}var he=A(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),ge=A(`octagon-x`,[[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z`,key:`2d38gg`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),_e=(e,t,n,r,i,a,o,s)=>{let c=document.documentElement,l=[`light`,`dark`];function u(t){(Array.isArray(e)?e:[e]).forEach(e=>{let n=e===`class`,r=n&&a?i.map(e=>a[e]||e):i;n?(c.classList.remove(...r),c.classList.add(a&&a[t]?a[t]:t)):c.setAttribute(e,t)}),d(t)}function d(e){s&&l.includes(e)&&(c.style.colorScheme=e)}function f(){return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}if(r)u(r);else try{let e=localStorage.getItem(t)||n;u(o&&e===`system`?f():e)}catch{}},ve=z.createContext(void 0),ye={setTheme:e=>{},themes:[]},be=()=>z.useContext(ve)??ye;z.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:a,value:o,themes:s,nonce:c,scriptProps:l})=>{let u=JSON.stringify([n,t,a,e,s,o,r,i]).slice(1,-1);return z.createElement(`script`,{...l,suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(${_e.toString()})(${u})`}})});var xe=({...e})=>{let{theme:t=`system`}=be();return(0,W.jsx)(ie,{richColors:!0,className:`toaster group`,icons:{success:(0,W.jsx)(ee,{className:`size-4`}),info:(0,W.jsx)(he,{className:`size-4`}),warning:(0,W.jsx)(re,{className:`size-4`}),error:(0,W.jsx)(ge,{className:`size-4`}),loading:(0,W.jsx)(ne,{className:`size-4 animate-spin`})},style:{"--normal-bg":`var(--popover)`,"--normal-text":`var(--popover-foreground)`,"--normal-border":`var(--border)`,"--border-radius":`var(--radius)`},theme:t,...e})};function Se(){return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(me,{}),(0,W.jsx)(x,{}),(0,W.jsx)(xe,{duration:5e3,position:`top-right`})]})}var G=C()({component:Se,notFoundComponent:oe,errorComponent:ae}),Ce=E(`/install`)({component:D(()=>k(()=>import(`./install-B-GE7uWS.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49])),`component`)}),we=E(`/cashier`)({component:D(()=>k(()=>import(`./route-D1gzbhTf.js`),__vite__mapDeps([50,1,3,4,5,6,51,23,24,20,52,25,53,18,19,8,21,28,35,36,11,12,13,14,37,38,15,16,17,39,31,40,41,42,54])),`component`)}),Te=E(`/_authenticated`)({beforeLoad:({location:e})=>{if(!p.state.accessToken)throw b({to:`/sign-in`,search:{redirect:e.href},replace:!0})},component:D(()=>k(()=>import(`./route-GrVEK0V1.js`),__vite__mapDeps([55,1,12,5,6,56,57,58,3,4,27,15,13,8,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,36,31,51,23,52,53,67,68,22,69,70,47])),`component`)}),Ee=E(`/(auth)`)({component:D(()=>k(()=>import(`./route-CAiA_U_q.js`),__vite__mapDeps([71,1,3,4,5,6,51,23,24,20,52,25,53,35,36,11,12,13,8,14,37,38,15,16,17,39,31,28,40,41,42,21,46,72])),`component`)}),De=E(`/`)({beforeLoad:()=>{throw b({to:p.state.accessToken?`/dashboard`:`/sign-in`,replace:!0})},component:D(()=>k(()=>import(`./routes-D7HD5c-e.js`),[]),`component`)}),Oe=E(`/_authenticated/dashboard`)({component:D(()=>k(()=>import(`./dashboard-C_GaAVh0.js`),__vite__mapDeps([73,1,56,57,12,5,6,58,3,4,27,15,13,8,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,10,74,75,36,31,76,32,69,33,77,47,78,79,80,22,23,35,81,45,82,83,48])),`component`)}),ke=E(`/(errors)/503`)({component:D(()=>k(()=>import(`./503-DqC0HW48.js`),__vite__mapDeps([84,85,3,1,4,5,6])),`component`)}),Ae=E(`/(errors)/500`)({component:D(()=>k(()=>import(`./500-Ch8AmacC.js`),__vite__mapDeps([86,87,3,1,4,5,6,25,40])),`component`)}),je=E(`/(errors)/404`)({component:D(()=>k(()=>import(`./404-pq4P7jD8.js`),__vite__mapDeps([88,89,3,1,4,5,6,25,40])),`component`)}),Me=E(`/(errors)/403`)({component:D(()=>k(()=>import(`./403-DfLmRqHM.js`),__vite__mapDeps([90,91,3,1,4,5,6,25,40])),`component`)}),Ne=E(`/(errors)/401`)({component:D(()=>k(()=>import(`./401-CvFvdOr5.js`),__vite__mapDeps([92,93,3,1,4,5,6,25,40])),`component`)}),Pe=()=>k(()=>import(`./sign-in-_ux3l1kN.js`),__vite__mapDeps([94,1,2,3,4,5,6,7,8,9,58,12,27,15,13,16,17,18,19,20,21,95,52,25,24,40,28,43,96,33,34,49,72])),Fe=ce({redirect:se().optional()}),Ie=E(`/(auth)/sign-in`)({component:D(Pe,`component`),validateSearch:Fe}),Le=E(`/_authenticated/settings`)({component:D(()=>k(()=>import(`./route-C6USHQDN.js`),__vite__mapDeps([97,56,1,57,12,5,6,58,3,4,27,15,13,8,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,51,23,52,53,80,36,31,22,35,81,83,98,76,32,99])),`component`)}),Re=E(`/_authenticated/payment-setup`)({component:D(()=>k(()=>import(`./route-DvJeidrw.js`),__vite__mapDeps([100,56,1,57,12,5,6,58,3,4,27,15,13,8,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,51,23,52,53,80,36,31,22,35,81,83,98,76,32,99])),`component`)}),ze=E(`/_authenticated/account`)({component:D(()=>k(()=>import(`./route-lp7ScXTd.js`),__vite__mapDeps([101,56,1,57,12,5,6,58,3,4,27,15,13,8,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,51,23,52,53,80,36,31,22,35,81,83,98,76,32,99])),`component`)}),Be=E(`/_authenticated/settings/`)({component:D(()=>k(()=>import(`./settings-eRG1_Yuf.js`),__vite__mapDeps([102,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,83,61,49,103,18,19,20,21])),`component`)}),Ve=()=>k(()=>import(`./rpc-cAFAt1WZ.js`),__vite__mapDeps([104,1,2,3,4,5,6,7,8,9,56,57,12,58,27,15,13,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,105,31,36,76,32,106,107,23,22,95,52,53,75,10,69,33,77,47,78,108,109,80,35,81,110,111,112,83,113])),He=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10),enabled:N.array(N.enum(j.map(e=>e.value))).optional().catch([]),type:N.array(N.string()).optional().catch([]),status:N.array(N.enum([`ok`,`down`,`unknown`])).optional().catch([]),keyword:N.string().optional().catch(``)}),Ue=E(`/_authenticated/rpc/`)({validateSearch:He,component:D(Ve,`component`)}),We=()=>k(()=>import(`./payment-setup-BFIKIu1u.js`),__vite__mapDeps([114,1,3,4,5,6,18,19,8,20,21,107,23,24,22,25,95,52,40,53,75,36,11,12,13,14,37,38,15,16,17,39,31,28,10,76,57,60,63,32,61,62,26,27,29,64,69,33,77,47,49,78,115,82,113])),Ge=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10),status:N.enum([`enabled`,`disabled`]).array().optional().catch([]),chain:N.array(N.string()).optional().catch([]),keyword:N.string().optional().catch(``)}),Ke=E(`/_authenticated/payment-setup/`)({validateSearch:Ge,component:D(We,`component`)}),qe=()=>k(()=>import(`./orders-C2v2goOf.js`),__vite__mapDeps([116,1,58,12,5,6,3,4,27,15,13,8,16,17,56,57,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,36,31,7,107,23,22,95,52,53,75,10,76,32,69,33,77,47,78,79,117,109,34,80,35,81,118,119,112,83,113])),Je=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10),status:N.array(N.enum(te.map(e=>e.value))).optional().catch([]),chain:N.array(N.string()).optional().catch([]),orderNo:N.string().optional().catch(``)}),Ye=E(`/_authenticated/orders/`)({validateSearch:Je,component:D(qe,`component`)}),Xe=()=>k(()=>import(`./keys-DvE6Ll4y.js`),__vite__mapDeps([120,1,2,3,4,5,6,7,8,9,58,12,27,15,13,16,17,56,57,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,76,31,32,106,107,23,22,95,52,53,30,33,34,77,80,36,35,81,111,83,47,121])),Ze=N.object({type:N.enum([`all`,`enabled`,`disabled`]).optional().catch(void 0),filter:N.string().optional().catch(``),sort:N.enum([`asc`,`desc`]).optional().catch(void 0)}),Qe=E(`/_authenticated/keys/`)({validateSearch:Ze,component:D(Xe,`component`)}),$e=E(`/_authenticated/help/`)({component:D(()=>k(()=>import(`./help-Bq6Uj7UY.js`),__vite__mapDeps([122,119,28,1,6,5])),`component`)}),et=()=>k(()=>import(`./chains-D5PNpB55.js`),__vite__mapDeps([123,1,2,3,4,5,6,7,8,9,56,57,12,58,27,15,13,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,105,31,36,76,32,106,75,10,69,33,77,47,78,108,109,80,22,23,35,81,110,111,118,119,83])),tt=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10),status:N.array(N.enum(j.map(e=>e.value))).optional().catch([]),keyword:N.string().optional().catch(``)}),nt=E(`/_authenticated/chains/`)({validateSearch:tt,component:D(et,`component`)}),rt=()=>k(()=>import(`./addresses-CNbxs6Fb.js`),__vite__mapDeps([124,1,2,3,4,5,6,7,8,9,58,12,27,15,13,16,17,56,57,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,36,31,76,32,106,107,23,22,95,52,53,75,10,69,33,77,47,78,79,117,109,34,80,35,81,110,111,112,83,121,113])),it=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10),status:N.array(N.enum(M.map(e=>e.value))).optional().catch([]),chain:N.array(N.string()).optional().catch([]),address:N.string().optional().catch(``)}),at=E(`/_authenticated/addresses/`)({validateSearch:it,component:D(rt,`component`)}),ot=E(`/_authenticated/account/`)({beforeLoad:()=>{throw b({to:`/account/password`,replace:!0})}}),st=E(`/_authenticated/settings/telegram`)({component:D(()=>k(()=>import(`./telegram-Br_DijOI.js`),__vite__mapDeps([125,1,2,3,4,5,6,7,8,9,106,12,60,14,83,61,49,103,18,19,20,21])),`component`)}),ct=E(`/_authenticated/settings/system`)({component:D(()=>k(()=>import(`./system-CzKDOsCg.js`),__vite__mapDeps([126,1,2,3,4,5,6,7,8,9,76,11,12,13,14,57,37,38,15,16,60,63,28,31,32,83,61,103,18,19,20,21])),`component`)}),lt=E(`/_authenticated/settings/pay`)({component:D(()=>k(()=>import(`./pay-BNu4n_oI.js`),__vite__mapDeps([127,1,128,2,3,4,5,6,7,8,9,129,28,83,61,49,78,103,18,19,20,21])),`component`)}),ut=E(`/_authenticated/settings/okpay`)({component:D(()=>k(()=>import(`./okpay-D5pTA_4W.js`),__vite__mapDeps([130,1,2,3,4,5,6,7,8,9,106,12,60,14,96,33,28,34,49,83,61,103,18,19,20,21])),`component`)}),dt=E(`/_authenticated/settings/notifications`)({component:D(()=>k(()=>import(`./notifications-xdKOW8nn.js`),__vite__mapDeps([131,2,1,3,4,5,6,7,8,9,105,12,17,60,14,31,28,106,22,23,24,20,25,132,59,38,39,37,13,83,61,133,19])),`component`)}),ft=E(`/_authenticated/settings/epay`)({component:D(()=>k(()=>import(`./epay-BPdlNSqh.js`),__vite__mapDeps([134,1,2,3,4,5,6,7,8,9,76,11,12,13,14,57,37,38,15,16,60,63,28,31,32,18,19,20,21,115,82,83,61,49,103])),`component`)}),pt=E(`/_authenticated/settings/display`)({component:D(()=>k(()=>import(`./display-CqGwMVHS.js`),__vite__mapDeps([135,2,1,3,4,5,6,7,8,9,105,12,17,60,14,31,28,83,61,133,19])),`component`)}),mt=E(`/_authenticated/settings/appearance`)({component:D(()=>k(()=>import(`./appearance-Cl8fvRSv.js`),__vite__mapDeps([136,2,1,3,4,5,6,7,8,9,32,28,132,59,12,38,17,39,37,13,60,14,83,61,66,21,42,133,19])),`component`)}),ht=()=>k(()=>import(`./integrations-Clnk2I57.js`),__vite__mapDeps([137,1,107,23,24,6,20,5,22,8,3,4,25,95,52,40,53,75,36,11,12,13,14,37,38,15,16,17,39,31,28,10,76,57,60,63,32,61,62,26,27,29,64,69,33,77,47,49,78,113])),gt=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10)}),_t=E(`/_authenticated/payment-setup/integrations`)({validateSearch:gt,component:D(ht,`component`)}),vt=E(`/_authenticated/account/password`)({component:D(()=>k(()=>import(`./password-DElKXGVw.js`),__vite__mapDeps([138,2,1,3,4,5,6,7,8,9,18,19,20,21,96,33,28,34,49,83,61])),`component`)}),yt=Ce.update({id:`/install`,path:`/install`,getParentRoute:()=>G}),K=we.update({id:`/cashier`,path:`/cashier`,getParentRoute:()=>G}),q=Te.update({id:`/_authenticated`,getParentRoute:()=>G}),J=Ee.update({id:`/(auth)`,getParentRoute:()=>G}),bt=De.update({id:`/`,path:`/`,getParentRoute:()=>G}),xt=Oe.update({id:`/dashboard`,path:`/dashboard`,getParentRoute:()=>q}),St=ke.update({id:`/(errors)/503`,path:`/503`,getParentRoute:()=>G}),Ct=Ae.update({id:`/(errors)/500`,path:`/500`,getParentRoute:()=>G}),wt=je.update({id:`/(errors)/404`,path:`/404`,getParentRoute:()=>G}),Tt=Me.update({id:`/(errors)/403`,path:`/403`,getParentRoute:()=>G}),Et=Ne.update({id:`/(errors)/401`,path:`/401`,getParentRoute:()=>G}),Dt=Ie.update({id:`/sign-in`,path:`/sign-in`,getParentRoute:()=>J}),Y=Le.update({id:`/settings`,path:`/settings`,getParentRoute:()=>q}),X=Re.update({id:`/payment-setup`,path:`/payment-setup`,getParentRoute:()=>q}),Z=ze.update({id:`/account`,path:`/account`,getParentRoute:()=>q}),Ot=le.update({id:`/$trade_id/`,path:`/$trade_id/`,getParentRoute:()=>K}),kt=Be.update({id:`/`,path:`/`,getParentRoute:()=>Y}),At=Ue.update({id:`/rpc/`,path:`/rpc/`,getParentRoute:()=>q}),jt=Ke.update({id:`/`,path:`/`,getParentRoute:()=>X}),Mt=Ye.update({id:`/orders/`,path:`/orders/`,getParentRoute:()=>q}),Nt=Qe.update({id:`/keys/`,path:`/keys/`,getParentRoute:()=>q}),Pt=$e.update({id:`/help/`,path:`/help/`,getParentRoute:()=>q}),Ft=nt.update({id:`/chains/`,path:`/chains/`,getParentRoute:()=>q}),It=at.update({id:`/addresses/`,path:`/addresses/`,getParentRoute:()=>q}),Lt=ot.update({id:`/`,path:`/`,getParentRoute:()=>Z}),Rt=st.update({id:`/telegram`,path:`/telegram`,getParentRoute:()=>Y}),zt=ct.update({id:`/system`,path:`/system`,getParentRoute:()=>Y}),Bt=lt.update({id:`/pay`,path:`/pay`,getParentRoute:()=>Y}),Vt=ut.update({id:`/okpay`,path:`/okpay`,getParentRoute:()=>Y}),Ht=dt.update({id:`/notifications`,path:`/notifications`,getParentRoute:()=>Y}),Ut=ft.update({id:`/epay`,path:`/epay`,getParentRoute:()=>Y}),Wt=pt.update({id:`/display`,path:`/display`,getParentRoute:()=>Y}),Gt=mt.update({id:`/appearance`,path:`/appearance`,getParentRoute:()=>Y}),Kt=_t.update({id:`/integrations`,path:`/integrations`,getParentRoute:()=>X}),qt=ue.update({id:`/errors/$error`,path:`/errors/$error`,getParentRoute:()=>q}),Jt=vt.update({id:`/password`,path:`/password`,getParentRoute:()=>Z}),Q={authSignInRoute:Dt},Yt=J._addFileChildren(Q),Xt={AuthenticatedAccountPasswordRoute:Jt,AuthenticatedAccountIndexRoute:Lt},Zt=Z._addFileChildren(Xt),Qt={AuthenticatedPaymentSetupIntegrationsRoute:Kt,AuthenticatedPaymentSetupIndexRoute:jt},$t=X._addFileChildren(Qt),en={AuthenticatedSettingsAppearanceRoute:Gt,AuthenticatedSettingsDisplayRoute:Wt,AuthenticatedSettingsEpayRoute:Ut,AuthenticatedSettingsNotificationsRoute:Ht,AuthenticatedSettingsOkpayRoute:Vt,AuthenticatedSettingsPayRoute:Bt,AuthenticatedSettingsSystemRoute:zt,AuthenticatedSettingsTelegramRoute:Rt,AuthenticatedSettingsIndexRoute:kt},tn={AuthenticatedAccountRouteRoute:Zt,AuthenticatedPaymentSetupRouteRoute:$t,AuthenticatedSettingsRouteRoute:Y._addFileChildren(en),AuthenticatedDashboardRoute:xt,AuthenticatedErrorsErrorRoute:qt,AuthenticatedAddressesIndexRoute:It,AuthenticatedChainsIndexRoute:Ft,AuthenticatedHelpIndexRoute:Pt,AuthenticatedKeysIndexRoute:Nt,AuthenticatedOrdersIndexRoute:Mt,AuthenticatedRpcIndexRoute:At},nn=q._addFileChildren(tn),rn={CashierTrade_idIndexRoute:Ot},an={IndexRoute:bt,authRouteRoute:Yt,AuthenticatedRouteRoute:nn,CashierRouteRoute:K._addFileChildren(rn),InstallRoute:yt,errors401Route:Et,errors403Route:Tt,errors404Route:wt,errors500Route:Ct,errors503Route:St},on=G._addFileChildren(an)._addFileTypes(),$=new F({defaultOptions:{queries:{retry:(e,t)=>{if(e>3)return!1;if(typeof t==`object`&&t&&`status`in t){let e=t.status;if(e===401||e===403)return!1}return!0},refetchOnWindowFocus:!0,staleTime:10*1e3}}}),sn=L({routeTree:on,context:{queryClient:$},scrollRestoration:!0,defaultPreload:`intent`,defaultPreloadStaleTime:0});export{sn as n,$ as t}; \ No newline at end of file diff --git a/src/www/assets/rpc-cAFAt1WZ.js b/src/www/assets/rpc-cAFAt1WZ.js new file mode 100644 index 0000000..d552743 --- /dev/null +++ b/src/www/assets/rpc-cAFAt1WZ.js @@ -0,0 +1 @@ +import{r as e}from"./chunk-DECur_0Z.js";import{a as t}from"./auth-store-De4Y7PFV.js";import{t as n}from"./router-eyRTkMwc.js";import{t as r}from"./react-CO2uhaBc.js";import{Aa as i,Ba as a,Ca as o,Da as s,Ea as c,Fa as l,Fo as u,Ga as d,Go as f,Ha as p,Ia as m,Ja as h,Ka as g,Ko as _,La as ee,Ma as te,Na as ne,Oa as v,Pa as re,Po as y,Qo as b,Ra as ie,Sa as x,Ta as S,Ts as ae,Ua as oe,Va as C,Wa as se,Xp as ce,_a as le,aa as ue,ba as de,ca as fe,da as w,ea as T,fa as pe,ga as me,ha as he,ia as E,ja as D,ka as ge,la as _e,ma as ve,na as O,oa as ye,pa as be,qa as xe,qo as Se,ra as Ce,sa as we,ss as Te,ta as k,tm as Ee,ua as De,uo as Oe,va as ke,wa as A,xa as Ae,ya as je,za as Me}from"./messages-BOatyqUm.js";import{r as Ne}from"./route-wzPKSRj2.js";import{I as Pe,o as j,r as Fe}from"./search-provider-C-_FQI9C.js";import{i as M,t as N}from"./button-C_NDYaz8.js";import{t as Ie}from"./checkbox-CTHgcB3t.js";import{a as P,c as F,l as Le,r as Re,s as ze,t as Be}from"./dropdown-menu-DzCIpsuG.js";import{a as I,i as L,n as R,r as z,t as B}from"./select-CzebumOF.js";import{t as Ve}from"./separator-CsUemQNs.js";import{t as He}from"./switch-CgoJjvdz.js";import{t as Ue}from"./createLucideIcon-Br0Bd5k2.js";import{a as V,c as We,d as Ge,f as Ke,l as qe,n as Je,o as Ye,r as Xe,s as Ze,t as Qe,u as $e}from"./data-table-1LQSBhN2.js";import{t as et}from"./arrow-left-BpZwGREZ.js";import{t as H}from"./skeleton-CmDjDV1O.js";import{t as tt}from"./ellipsis-74ly4-Wm.js";import{t as nt}from"./empty-state-CxE4wU3V.js";import{n as rt,t as it}from"./main-C1R3Hvq1.js";import{n as at,t as ot}from"./chains-store-DCzO87jZ.js";import{n as st,t as ct}from"./trash-2-9I8lAjeE.js";import{l as lt}from"./command-B_SlhXkX.js";import{i as ut,o as dt,r as ft,s as pt,t as mt}from"./dialog-CZ-2RPb-.js";import{n as U}from"./dist-JOUh6qvR.js";import{a as ht,c as W,n as gt,r as _t,s as vt}from"./zod-rwFXxHlg.js";import{a as G,c as yt,i as K,l as bt,n as q,o as J,s as Y,t as xt}from"./form-KfFEakes.js";import{t as X}from"./input-8zzM34r5.js";import{t as St}from"./page-header-GTtyZFBB.js";import{t as Z}from"./badge-VJlwwTW5.js";import{t as Ct}from"./use-table-url-state-DP0Y4QjR.js";import{t as wt}from"./long-text-DNqlDi0R.js";var Tt=Ue(`stethoscope`,[[`path`,{d:`M11 2v2`,key:`1539x4`}],[`path`,{d:`M5 2v2`,key:`1yf1q8`}],[`path`,{d:`M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1`,key:`rb5t3r`}],[`path`,{d:`M8 15a6 6 0 0 0 12 0v-3`,key:`x18d4x`}],[`circle`,{cx:`20`,cy:`10`,r:`2`,key:`ts1r5v`}]]),Q=e(r(),1),$=Ee(),Et=vt({network:W().min(1,we()),type:_t([`http`,`ws`,`lite`]),purpose:_t([`general`,`manual_verify`,`both`]),url:W().url(ye()),api_key:W().default(``),weight:gt().min(1,ue()),enabled:ht().default(!0)});function Dt({open:e,onOpenChange:n,currentRow:r,onSuccess:i}){let{chains:a}=ot(),o=bt({resolver:yt(Et),defaultValues:{network:``,type:`http`,purpose:`general`,url:``,api_key:``,weight:1,enabled:!0}}),l=t.useMutation(`post`,`/admin/api/v1/rpc-nodes`),d=t.useMutation(`patch`,`/admin/api/v1/rpc-nodes/{id}`);(0,Q.useEffect)(()=>{e&&o.reset({network:r?.network??``,type:r?.type??`http`,purpose:r?.purpose??`general`,url:r?.url??``,api_key:r?.api_key??``,weight:r?.weight??1,enabled:r?.enabled??!0})},[e,r,o]);function f(e){if(r?.id){d.mutate({params:{path:{id:r.id}},body:{url:e.url,api_key:e.api_key,weight:e.weight,enabled:e.enabled,purpose:e.purpose}},{onSuccess:()=>{U.success(_e()),n(!1),i?.()}});return}l.mutate({body:{network:e.network,type:e.type,purpose:e.purpose,url:e.url,api_key:e.api_key,weight:e.weight,enabled:e.enabled}},{onSuccess:()=>{U.success(fe()),n(!1),i?.()}})}let p=l.isPending||d.isPending;return(0,$.jsx)(mt,{onOpenChange:n,open:e,children:(0,$.jsxs)(ft,{children:[(0,$.jsxs)(dt,{children:[(0,$.jsx)(pt,{children:r?le():me()}),(0,$.jsx)(ut,{children:r?he():ve()})]}),(0,$.jsx)(xt,{...o,children:(0,$.jsxs)(`form`,{className:`space-y-4`,onSubmit:o.handleSubmit(f),children:[(0,$.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,$.jsx)(K,{control:o.control,name:`network`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:s()}),(0,$.jsxs)(B,{disabled:!!r,onValueChange:e.onChange,value:e.value,children:[(0,$.jsx)(q,{children:(0,$.jsx)(L,{className:`w-full`,children:(0,$.jsx)(I,{placeholder:Te()})})}),(0,$.jsx)(R,{children:a.filter(e=>!!e.network).map(e=>(0,$.jsx)(z,{value:e.network??``,children:e.display_name??e.network},e.network))})]}),(0,$.jsx)(Y,{})]})}),(0,$.jsx)(K,{control:o.control,name:`type`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:c()}),(0,$.jsxs)(B,{disabled:!!r,onValueChange:e.onChange,value:e.value,children:[(0,$.jsx)(q,{children:(0,$.jsx)(L,{className:`w-full`,children:(0,$.jsx)(I,{placeholder:be()})})}),(0,$.jsxs)(R,{children:[(0,$.jsx)(z,{value:`http`,children:`HTTP`}),(0,$.jsx)(z,{value:`ws`,children:`WebSocket`}),(0,$.jsx)(z,{value:`lite`,children:`TON LiteServer`})]})]}),(0,$.jsx)(Y,{})]})}),(0,$.jsx)(K,{control:o.control,name:`purpose`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:E()}),(0,$.jsxs)(B,{onValueChange:e.onChange,value:e.value,children:[(0,$.jsx)(q,{children:(0,$.jsx)(L,{className:`w-full`,children:(0,$.jsx)(I,{placeholder:Ce()})})}),(0,$.jsxs)(R,{children:[(0,$.jsx)(z,{value:`general`,children:O()}),(0,$.jsx)(z,{value:`manual_verify`,children:k()}),(0,$.jsx)(z,{value:`both`,children:T()})]})]}),(0,$.jsx)(Y,{})]})})]}),(0,$.jsx)(K,{control:o.control,name:`url`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:S()}),(0,$.jsx)(q,{children:(0,$.jsx)(X,{placeholder:`https://api.trongrid.io`,...e})}),(0,$.jsx)(Y,{})]})}),(0,$.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,$.jsx)(K,{control:o.control,name:`api_key`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:`API Key`}),(0,$.jsx)(q,{children:(0,$.jsx)(X,{placeholder:pe(),...e})}),(0,$.jsx)(Y,{})]})}),(0,$.jsx)(K,{control:o.control,name:`weight`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:A()}),(0,$.jsx)(q,{children:(0,$.jsx)(X,{name:e.name,onBlur:e.onBlur,onChange:t=>e.onChange(t.target.value),ref:e.ref,type:`number`,value:String(e.value??``)})}),(0,$.jsx)(Y,{})]})})]}),(0,$.jsx)(K,{control:o.control,name:`enabled`,render:({field:e})=>(0,$.jsxs)(G,{className:`flex flex-row items-center gap-3 rounded-lg border p-3`,children:[(0,$.jsx)(q,{children:(0,$.jsx)(Ie,{checked:e.value,onCheckedChange:t=>e.onChange(!!t)})}),(0,$.jsxs)(`div`,{className:`space-y-1`,children:[(0,$.jsx)(J,{children:w()}),(0,$.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:De()})]})]})}),(0,$.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,$.jsx)(N,{onClick:()=>n(!1),type:`button`,variant:`outline`,children:ce()}),(0,$.jsx)(N,{disabled:p,type:`submit`,children:p?u():y()})]})]})})]})})}function Ot(e){return[{id:`switch`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:b()}),cell:({row:t})=>(0,$.jsx)(He,{checked:!!t.original.enabled,onCheckedChange:()=>e(t.original.enabled?`disable`:`enable`,t.original)}),enableSorting:!1,enableHiding:!1,meta:{label:b(),skeleton:`switch`,sticky:`left`,th:{className:M(`rounded-tl-[inherit]`)}}},{accessorKey:`status`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:D()}),cell:({row:e})=>{let t=e.original.status??`unknown`,n=`bg-slate-500/10 text-slate-600`,r=v();return t===`ok`?(n=`bg-emerald-500/10 text-emerald-600`,r=i()):t===`down`&&(n=`bg-rose-500/10 text-rose-600`,r=ge()),(0,$.jsx)(Z,{className:n,children:r})},filterFn:(e,t,n)=>n.includes(String(e.getValue(t))),meta:{label:D(),skeleton:`badge`}},{accessorKey:`network`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:s()}),cell:({row:e})=>(0,$.jsx)(`div`,{className:`min-w-24 font-medium`,children:e.original.network??`-`}),enableHiding:!1,meta:{label:s(),skeleton:`short`}},{accessorKey:`type`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:c()}),cell:({row:e})=>kt(e.original.type),filterFn:(e,t,n)=>n.includes(String(e.getValue(t)??`general`)),meta:{label:c(),skeleton:`short`}},{accessorKey:`purpose`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:E()}),cell:({row:e})=>{let t=e.original.purpose??`general`,n=O();return t===`manual_verify`?n=k():t===`both`&&(n=T()),(0,$.jsx)(Z,{variant:`outline`,children:n})},filterFn:(e,t,n)=>n.includes(String(e.getValue(t))),meta:{label:E(),skeleton:`badge`}},{accessorKey:`url`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:S()}),cell:({row:e})=>(0,$.jsx)(wt,{className:`min-w-80`,children:e.original.url??`-`}),meta:{label:S(),skeleton:`long`}},{accessorKey:`weight`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:A()}),cell:({row:e})=>e.original.weight??`-`,meta:{label:A(),skeleton:`id`}},{accessorKey:`last_latency_ms`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:o()}),cell:({row:e})=>e.original.last_latency_ms?`${e.original.last_latency_ms} ms`:`-`,meta:{label:o(),skeleton:`id`}},{accessorKey:`last_checked_at`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:x()}),cell:({row:e})=>j(e.original.last_checked_at),meta:{label:x(),skeleton:`date`}},{accessorKey:`api_key`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:`API Key`}),cell:({row:e})=>(0,$.jsx)(wt,{children:e.original.api_key??`-`}),meta:{label:`API Key`,skeleton:`long`}},{accessorKey:`created_at`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:Se()}),cell:({row:e})=>j(e.original.created_at),meta:{label:Se(),skeleton:`date`}},{accessorKey:`updated_at`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:_()}),cell:({row:e})=>j(e.original.updated_at),meta:{label:_(),skeleton:`date`}},{id:`actions`,enableHiding:!1,meta:{label:f(),skeleton:`action`,sticky:`right`,className:M(`w-12`)},cell:({row:t})=>(0,$.jsxs)(Be,{modal:!1,children:[(0,$.jsx)(Le,{asChild:!0,children:(0,$.jsxs)(N,{className:`flex h-8 w-8 p-0 data-[state=open]:bg-muted`,variant:`ghost`,children:[(0,$.jsx)(tt,{className:`h-4 w-4`}),(0,$.jsx)(`span`,{className:`sr-only`,children:`Open menu`})]})}),(0,$.jsxs)(Re,{align:`end`,className:`w-40`,children:[(0,$.jsxs)(P,{onClick:()=>e(`edit`,t.original),children:[ke(),(0,$.jsx)(F,{children:(0,$.jsx)(at,{size:16})})]}),(0,$.jsxs)(P,{onClick:()=>e(`health-check`,t.original),children:[Ae(),(0,$.jsx)(F,{children:(0,$.jsx)(Tt,{size:16})})]}),(0,$.jsx)(ze,{}),(0,$.jsxs)(P,{onClick:()=>e(`delete`,t.original),variant:`destructive`,children:[Oe(),(0,$.jsx)(F,{children:(0,$.jsx)(ct,{size:16})})]})]})]})}]}function kt(e){return e===`http`?`HTTP`:e===`ws`?`WebSocket`:e===`lite`?`TON LiteServer`:e??`-`}var At=Ne(`/_authenticated/rpc/`),jt=[{label:i(),value:`ok`},{label:ge(),value:`down`},{label:v(),value:`unknown`}];function Mt({data:e,isLoading:t,onAction:n,onRefresh:r}){let[i,a]=(0,Q.useState)([]),{globalFilter:o,onGlobalFilterChange:s,columnFilters:l,onColumnFiltersChange:u,pagination:d,onPaginationChange:f,ensurePageInRange:p}=Ct({search:At.useSearch(),navigate:At.useNavigate(),pagination:{defaultPage:1,defaultPageSize:10},globalFilter:{enabled:!0,key:`keyword`},columnFilters:[{columnId:`type`,searchKey:`type`,type:`array`},{columnId:`status`,searchKey:`status`,type:`array`}]}),m=Ye({data:e,columns:(0,Q.useMemo)(()=>Ot(n),[n]),state:{sorting:i,columnFilters:l,globalFilter:o,pagination:d},onSortingChange:a,onColumnFiltersChange:u,onGlobalFilterChange:s,onPaginationChange:f,globalFilterFn:(e,t,n)=>{let r=String(n).toLowerCase();return(e.original.network??``).toLowerCase().includes(r)||(e.original.url??``).toLowerCase().includes(r)},getCoreRowModel:Ze(),getFilteredRowModel:$e(),getPaginationRowModel:Ge(),getSortedRowModel:Ke(),getFacetedRowModel:We(),getFacetedUniqueValues:qe()});(0,Q.useEffect)(()=>{p(m.getPageCount())},[m,p]);let h=[...new Set(e.map(e=>e.type).filter(Boolean))].map(e=>({label:Nt(e),value:e})),g=[{label:O(),value:`general`},{label:k(),value:`manual_verify`},{label:T(),value:`both`}];return(0,$.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,$.jsx)(Qe,{filters:[{columnId:`type`,title:c(),options:h},{columnId:`purpose`,title:E(),options:g},{columnId:`status`,title:D(),options:[...jt]}],onRefresh:r,searchPlaceholder:de(),table:m}),(0,$.jsx)(Xe,{className:`min-w-[1200px]`,emptyText:je(),loading:t,table:m}),(0,$.jsx)(Je,{className:`mt-auto`,table:m})]})}function Nt(e){return e===`http`?`HTTP`:e===`ws`?`WebSocket`:e===`lite`?`TON LiteServer`:e??`-`}var Pt=[`chain-1`,`chain-2`,`chain-3`,`chain-4`,`chain-5`];function Ft({active:e,children:t,onClick:n}){return(0,$.jsx)(`div`,{className:M(`w-full cursor-pointer rounded-lg px-3 py-3 text-left transition-colors hover:bg-accent hover:text-accent-foreground`,e&&`bg-muted`),onClick:n,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),n())},role:`button`,tabIndex:0,children:t})}function It({chains:e,isLoading:t,keyword:n,onKeywordChange:r,selectedPanel:i,onSelect:a,totalNodes:o,hiddenOnMobile:s}){return(0,$.jsxs)(`div`,{className:M(`flex w-full flex-col gap-2 sm:w-56 lg:w-72 2xl:w-80`,s&&`hidden sm:flex`),children:[(0,$.jsxs)(`div`,{className:`sticky top-0 z-10 -mx-4 bg-background px-4 pb-3 shadow-md sm:static sm:z-auto sm:mx-0 sm:p-0 sm:shadow-none`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between py-2`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsx)(`h1`,{className:`font-bold text-2xl`,children:h()}),(0,$.jsx)(Pe,{size:20})]}),(0,$.jsx)(Z,{variant:`secondary`,children:xe({count:String(e.length)})})]}),(0,$.jsxs)(`div`,{className:`relative block`,children:[(0,$.jsx)(lt,{className:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),(0,$.jsx)(X,{className:`pl-9`,onChange:e=>r(e.target.value),placeholder:g(),value:n})]})]}),(0,$.jsxs)(Fe,{className:`-mx-3 h-full overflow-auto p-3`,children:[(0,$.jsx)(Ft,{active:i===`overview`,onClick:()=>a(`overview`),children:(0,$.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsx)(`div`,{className:`font-medium`,children:d()}),(0,$.jsx)(`div`,{className:`mt-1 text-muted-foreground text-xs`,children:se({chains:String(e.length),nodes:String(o)})})]}),(0,$.jsx)(Pe,{className:`mt-0.5 size-4 text-muted-foreground`})]})}),(0,$.jsx)(Ve,{className:`my-1`}),t?Pt.map(e=>(0,$.jsxs)(`div`,{className:`px-3 py-3`,children:[(0,$.jsx)(`div`,{className:`flex items-center justify-between gap-2`,children:(0,$.jsx)(H,{className:`h-4 w-24`})}),(0,$.jsxs)(`div`,{className:`mt-2 flex items-center justify-between gap-2`,children:[(0,$.jsx)(H,{className:`h-3 w-20`}),(0,$.jsx)(H,{className:`h-5 w-12 rounded-full`})]})]},e)):e.map((t,n)=>{let r=t.network??t.display_name??String(n);return(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Ft,{active:i===t.network,onClick:()=>a(t.network??`overview`),children:(0,$.jsx)(`div`,{className:`flex items-start gap-3`,children:(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`div`,{className:`truncate font-medium`,children:t.display_name??oe()}),(0,$.jsxs)(`div`,{className:`mt-1 flex items-center justify-between gap-2`,children:[(0,$.jsx)(`span`,{className:`text-muted-foreground text-xs`,children:p({count:String(t.nodeCount??0)})}),(0,$.jsx)(Z,{className:`shrink-0 text-xs`,variant:`outline`,children:t.network??`-`})]})]})})}),nS.reduce((e,t)=>(t.network&&(e[t.network]=(e[t.network]??0)+1),e),{}),[S]),C=(0,Q.useMemo)(()=>e.map(e=>({...e,nodeCount:e.network?oe[e.network]??0:0})),[e,oe]),se=(0,Q.useMemo)(()=>{let e=g.trim().toLowerCase();return e?C.filter(t=>[t.display_name,t.network].filter(Boolean).some(t=>String(t).toLowerCase().includes(e))):C},[C,g]),le=(0,Q.useMemo)(()=>v===`overview`?S:S.filter(e=>e.network===v),[S,v]);(0,Q.useEffect)(()=>{v!==`overview`&&!e.some(e=>e.network===v)&&(y(`overview`),x(null))},[e,v]);async function ue(){await n.invalidateQueries({queryKey:[`get`,`/admin/api/v1/rpc-nodes`]})}async function de(){if(p?.row.id){if(p.action===`delete`)await a.mutateAsync({params:{path:{id:p.row.id}}}),U.success(ie());else if(p.action===`enable`||p.action===`disable`)await o.mutateAsync({params:{path:{id:p.row.id}},body:{enabled:p.action===`enable`}}),U.success(ae());else if(p.action===`health-check`){let e=await s.mutateAsync({params:{path:{id:p.row.id}}}),t=e.data?.status??`unknown`,n=e.data?.last_latency_ms;U.success(ee({status:t,latency:n?m({latency:String(n)}):``}))}await ue(),h(null)}}async function fe(e,t){if(e===`edit`){f(t),u(!0);return}if(e===`enable`||e===`disable`){if(!t.id)return;await o.mutateAsync({params:{path:{id:t.id}},body:{enabled:e===`enable`}}),U.success(ae()),await ue();return}if(e===`delete`){h({action:e,row:t});return}h({action:e,row:t})}let w=b!==null;return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(rt,{fixed:!0}),(0,$.jsx)(it,{fixed:!0,children:(0,$.jsxs)(`section`,{className:`flex h-full gap-6`,children:[(0,$.jsx)(It,{chains:se,hiddenOnMobile:w,isLoading:r,keyword:g,onKeywordChange:_,onSelect:e=>{y(e),x(e)},selectedPanel:v,totalNodes:S.length}),(0,$.jsx)(`div`,{className:M(`absolute inset-0 start-full z-50 hidden w-full flex-1 flex-col border bg-background shadow-xs sm:static sm:z-auto sm:flex sm:min-w-0 sm:rounded-md sm:border-0 sm:bg-transparent sm:shadow-none`,w&&`inset-s-0 flex`),children:(0,$.jsx)(Lt,{isLoading:i.isLoading,nodes:le,onAction:fe,onBack:()=>x(null),onCreate:()=>{f(null),u(!0)},onRefresh:()=>{i.refetch()}})})]})}),(0,$.jsx)(Dt,{currentRow:d,onOpenChange:u,onSuccess:()=>i.refetch(),open:c}),(0,$.jsx)(mt,{onOpenChange:e=>{e||h(null)},open:!!p,children:(0,$.jsxs)(ft,{children:[(0,$.jsxs)(dt,{children:[(0,$.jsx)(pt,{children:p?.action===`delete`?ne():te()}),(0,$.jsx)(ut,{children:p?re({url:String(p.row.url??``),action:p.action}):null})]}),(0,$.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,$.jsx)(N,{onClick:()=>h(null),variant:`outline`,children:ce()}),(0,$.jsx)(N,{onClick:de,children:l()})]})]})})]})}var zt=Rt;export{zt as component}; \ No newline at end of file diff --git a/src/www/assets/rpc-m8HV1fJx.js b/src/www/assets/rpc-m8HV1fJx.js deleted file mode 100644 index 7d9f1f5..0000000 --- a/src/www/assets/rpc-m8HV1fJx.js +++ /dev/null @@ -1 +0,0 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{a as t}from"./auth-store-Csn6HPxJ.js";import{t as n}from"./router-BluvjQRz.js";import{t as r}from"./react-CO2uhaBc.js";import{Aa as i,Ba as a,Ca as o,Da as s,Ea as c,Fa as l,Fo as u,Ga as d,Go as f,Ha as p,Ia as m,Ja as h,Ka as g,Ko as _,La as ee,Ma as te,Na as ne,Oa as v,Pa as re,Po as y,Qo as b,Ra as ie,Sa as x,Ta as S,Ts as ae,Ua as C,Va as w,Wa as oe,Yp as se,_a as ce,aa as le,ba as ue,ca as de,da as fe,ea as T,em as pe,fa as me,ga as he,ha as ge,ia as E,ja as D,ka as _e,la as ve,ma as ye,na as O,oa as be,pa as xe,qa as Se,qo as Ce,ra as we,sa as Te,ss as Ee,ta as k,ua as De,uo as Oe,va as ke,wa as A,xa as Ae,ya as je,za as Me}from"./messages-Bp0bCjzp.js";import{r as Ne}from"./route-Bin9ihv_.js";import{I as Pe,o as j,r as Fe}from"./search-provider-Bl2HDfcG.js";import{i as M,t as N}from"./button-BgMnOYKD.js";import{t as Ie}from"./checkbox-CKrZFk1G.js";import{a as P,c as F,l as Le,r as Re,s as ze,t as Be}from"./dropdown-menu-8-hEBtzr.js";import{a as I,i as L,n as R,r as z,t as B}from"./select-C9s05In_.js";import{t as Ve}from"./separator-DbmFQXe4.js";import{t as He}from"./switch-CVYl00Vs.js";import{t as Ue}from"./createLucideIcon-Br0Bd5k2.js";import{a as V,c as We,d as Ge,f as Ke,l as qe,n as Je,o as Ye,r as Xe,s as Ze,t as Qe,u as $e}from"./data-table-C3Nm2K6Z.js";import{t as et}from"./arrow-left-BpZwGREZ.js";import{t as H}from"./skeleton-BQsmx80h.js";import{t as tt}from"./ellipsis-74ly4-Wm.js";import{t as nt}from"./empty-state-BdzO6t8R.js";import{n as rt,t as it}from"./main-DnJ8otd-.js";import{n as at,t as ot}from"./chains-store-B0tGSNqG.js";import{n as st,t as ct}from"./trash-2-9I8lAjeE.js";import{l as lt}from"./command-CIv3ggHf.js";import{i as ut,o as dt,r as ft,s as pt,t as mt}from"./dialog-BJ5VA2v_.js";import{n as U}from"./dist-BGqHIBUe.js";import{a as ht,c as W,n as gt,r as _t,s as vt}from"./zod-rwFXxHlg.js";import{a as G,c as yt,i as K,l as bt,n as q,o as J,s as Y,t as xt}from"./form-BhKmyN6D.js";import{t as X}from"./input-BleRUV2A.js";import{t as St}from"./page-header-CDwG3nxs.js";import{t as Z}from"./badge-BP05f1dq.js";import{t as Ct}from"./use-table-url-state-DP0Y4QjR.js";import{t as wt}from"./long-text-fyhANC4b.js";var Tt=Ue(`stethoscope`,[[`path`,{d:`M11 2v2`,key:`1539x4`}],[`path`,{d:`M5 2v2`,key:`1yf1q8`}],[`path`,{d:`M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1`,key:`rb5t3r`}],[`path`,{d:`M8 15a6 6 0 0 0 12 0v-3`,key:`x18d4x`}],[`circle`,{cx:`20`,cy:`10`,r:`2`,key:`ts1r5v`}]]),Q=e(r(),1),$=pe(),Et=vt({network:W().min(1,Te()),type:_t([`http`,`ws`,`lite`]),purpose:_t([`general`,`manual_verify`,`both`]),url:W().url(be()),api_key:W().default(``),weight:gt().min(1,le()),enabled:ht().default(!0)});function Dt({open:e,onOpenChange:n,currentRow:r,onSuccess:i}){let{chains:a}=ot(),o=bt({resolver:yt(Et),defaultValues:{network:``,type:`http`,purpose:`general`,url:``,api_key:``,weight:1,enabled:!0}}),l=t.useMutation(`post`,`/admin/api/v1/rpc-nodes`),d=t.useMutation(`patch`,`/admin/api/v1/rpc-nodes/{id}`);(0,Q.useEffect)(()=>{e&&o.reset({network:r?.network??``,type:r?.type??`http`,purpose:r?.purpose??`general`,url:r?.url??``,api_key:r?.api_key??``,weight:r?.weight??1,enabled:r?.enabled??!0})},[e,r,o]);function f(e){if(r?.id){d.mutate({params:{path:{id:r.id}},body:{url:e.url,api_key:e.api_key,weight:e.weight,enabled:e.enabled,purpose:e.purpose}},{onSuccess:()=>{U.success(ve()),n(!1),i?.()}});return}l.mutate({body:{network:e.network,type:e.type,purpose:e.purpose,url:e.url,api_key:e.api_key,weight:e.weight,enabled:e.enabled}},{onSuccess:()=>{U.success(de()),n(!1),i?.()}})}let p=l.isPending||d.isPending;return(0,$.jsx)(mt,{onOpenChange:n,open:e,children:(0,$.jsxs)(ft,{children:[(0,$.jsxs)(dt,{children:[(0,$.jsx)(pt,{children:r?ce():he()}),(0,$.jsx)(ut,{children:r?ge():ye()})]}),(0,$.jsx)(xt,{...o,children:(0,$.jsxs)(`form`,{className:`space-y-4`,onSubmit:o.handleSubmit(f),children:[(0,$.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,$.jsx)(K,{control:o.control,name:`network`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:s()}),(0,$.jsxs)(B,{disabled:!!r,onValueChange:e.onChange,value:e.value,children:[(0,$.jsx)(q,{children:(0,$.jsx)(L,{className:`w-full`,children:(0,$.jsx)(I,{placeholder:Ee()})})}),(0,$.jsx)(R,{children:a.filter(e=>!!e.network).map(e=>(0,$.jsx)(z,{value:e.network??``,children:e.display_name??e.network},e.network))})]}),(0,$.jsx)(Y,{})]})}),(0,$.jsx)(K,{control:o.control,name:`type`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:c()}),(0,$.jsxs)(B,{disabled:!!r,onValueChange:e.onChange,value:e.value,children:[(0,$.jsx)(q,{children:(0,$.jsx)(L,{className:`w-full`,children:(0,$.jsx)(I,{placeholder:xe()})})}),(0,$.jsxs)(R,{children:[(0,$.jsx)(z,{value:`http`,children:`HTTP`}),(0,$.jsx)(z,{value:`ws`,children:`WebSocket`}),(0,$.jsx)(z,{value:`lite`,children:`TON LiteServer`})]})]}),(0,$.jsx)(Y,{})]})}),(0,$.jsx)(K,{control:o.control,name:`purpose`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:E()}),(0,$.jsxs)(B,{onValueChange:e.onChange,value:e.value,children:[(0,$.jsx)(q,{children:(0,$.jsx)(L,{className:`w-full`,children:(0,$.jsx)(I,{placeholder:we()})})}),(0,$.jsxs)(R,{children:[(0,$.jsx)(z,{value:`general`,children:O()}),(0,$.jsx)(z,{value:`manual_verify`,children:k()}),(0,$.jsx)(z,{value:`both`,children:T()})]})]}),(0,$.jsx)(Y,{})]})})]}),(0,$.jsx)(K,{control:o.control,name:`url`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:S()}),(0,$.jsx)(q,{children:(0,$.jsx)(X,{placeholder:`https://api.trongrid.io`,...e})}),(0,$.jsx)(Y,{})]})}),(0,$.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,$.jsx)(K,{control:o.control,name:`api_key`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:`API Key`}),(0,$.jsx)(q,{children:(0,$.jsx)(X,{placeholder:me(),...e})}),(0,$.jsx)(Y,{})]})}),(0,$.jsx)(K,{control:o.control,name:`weight`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:A()}),(0,$.jsx)(q,{children:(0,$.jsx)(X,{name:e.name,onBlur:e.onBlur,onChange:t=>e.onChange(t.target.value),ref:e.ref,type:`number`,value:String(e.value??``)})}),(0,$.jsx)(Y,{})]})})]}),(0,$.jsx)(K,{control:o.control,name:`enabled`,render:({field:e})=>(0,$.jsxs)(G,{className:`flex flex-row items-center gap-3 rounded-lg border p-3`,children:[(0,$.jsx)(q,{children:(0,$.jsx)(Ie,{checked:e.value,onCheckedChange:t=>e.onChange(!!t)})}),(0,$.jsxs)(`div`,{className:`space-y-1`,children:[(0,$.jsx)(J,{children:fe()}),(0,$.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:De()})]})]})}),(0,$.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,$.jsx)(N,{onClick:()=>n(!1),type:`button`,variant:`outline`,children:se()}),(0,$.jsx)(N,{disabled:p,type:`submit`,children:p?u():y()})]})]})})]})})}function Ot(e){return[{id:`switch`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:b()}),cell:({row:t})=>(0,$.jsx)(He,{checked:!!t.original.enabled,onCheckedChange:()=>e(t.original.enabled?`disable`:`enable`,t.original)}),enableSorting:!1,enableHiding:!1,meta:{label:b(),skeleton:`switch`,sticky:`left`,th:{className:M(`rounded-tl-[inherit]`)}}},{accessorKey:`status`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:D()}),cell:({row:e})=>{let t=e.original.status??`unknown`,n=`bg-slate-500/10 text-slate-600`,r=v();return t===`ok`?(n=`bg-emerald-500/10 text-emerald-600`,r=i()):t===`down`&&(n=`bg-rose-500/10 text-rose-600`,r=_e()),(0,$.jsx)(Z,{className:n,children:r})},filterFn:(e,t,n)=>n.includes(String(e.getValue(t))),meta:{label:D(),skeleton:`badge`}},{accessorKey:`network`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:s()}),cell:({row:e})=>(0,$.jsx)(`div`,{className:`min-w-24 font-medium`,children:e.original.network??`-`}),enableHiding:!1,meta:{label:s(),skeleton:`short`}},{accessorKey:`type`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:c()}),cell:({row:e})=>kt(e.original.type),filterFn:(e,t,n)=>n.includes(String(e.getValue(t)??`general`)),meta:{label:c(),skeleton:`short`}},{accessorKey:`purpose`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:E()}),cell:({row:e})=>{let t=e.original.purpose??`general`,n=O();return t===`manual_verify`?n=k():t===`both`&&(n=T()),(0,$.jsx)(Z,{variant:`outline`,children:n})},filterFn:(e,t,n)=>n.includes(String(e.getValue(t))),meta:{label:E(),skeleton:`badge`}},{accessorKey:`url`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:S()}),cell:({row:e})=>(0,$.jsx)(wt,{className:`min-w-80`,children:e.original.url??`-`}),meta:{label:S(),skeleton:`long`}},{accessorKey:`weight`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:A()}),cell:({row:e})=>e.original.weight??`-`,meta:{label:A(),skeleton:`id`}},{accessorKey:`last_latency_ms`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:o()}),cell:({row:e})=>e.original.last_latency_ms?`${e.original.last_latency_ms} ms`:`-`,meta:{label:o(),skeleton:`id`}},{accessorKey:`last_checked_at`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:x()}),cell:({row:e})=>j(e.original.last_checked_at),meta:{label:x(),skeleton:`date`}},{accessorKey:`api_key`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:`API Key`}),cell:({row:e})=>(0,$.jsx)(wt,{children:e.original.api_key??`-`}),meta:{label:`API Key`,skeleton:`long`}},{accessorKey:`created_at`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:Ce()}),cell:({row:e})=>j(e.original.created_at),meta:{label:Ce(),skeleton:`date`}},{accessorKey:`updated_at`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:_()}),cell:({row:e})=>j(e.original.updated_at),meta:{label:_(),skeleton:`date`}},{id:`actions`,enableHiding:!1,meta:{label:f(),skeleton:`action`,sticky:`right`,className:M(`w-12`)},cell:({row:t})=>(0,$.jsxs)(Be,{modal:!1,children:[(0,$.jsx)(Le,{asChild:!0,children:(0,$.jsxs)(N,{className:`flex h-8 w-8 p-0 data-[state=open]:bg-muted`,variant:`ghost`,children:[(0,$.jsx)(tt,{className:`h-4 w-4`}),(0,$.jsx)(`span`,{className:`sr-only`,children:`Open menu`})]})}),(0,$.jsxs)(Re,{align:`end`,className:`w-40`,children:[(0,$.jsxs)(P,{onClick:()=>e(`edit`,t.original),children:[ke(),(0,$.jsx)(F,{children:(0,$.jsx)(at,{size:16})})]}),(0,$.jsxs)(P,{onClick:()=>e(`health-check`,t.original),children:[Ae(),(0,$.jsx)(F,{children:(0,$.jsx)(Tt,{size:16})})]}),(0,$.jsx)(ze,{}),(0,$.jsxs)(P,{onClick:()=>e(`delete`,t.original),variant:`destructive`,children:[Oe(),(0,$.jsx)(F,{children:(0,$.jsx)(ct,{size:16})})]})]})]})}]}function kt(e){return e===`http`?`HTTP`:e===`ws`?`WebSocket`:e===`lite`?`TON LiteServer`:e??`-`}var At=Ne(`/_authenticated/rpc/`),jt=[{label:i(),value:`ok`},{label:_e(),value:`down`},{label:v(),value:`unknown`}];function Mt({data:e,isLoading:t,onAction:n,onRefresh:r}){let[i,a]=(0,Q.useState)([]),{globalFilter:o,onGlobalFilterChange:s,columnFilters:l,onColumnFiltersChange:u,pagination:d,onPaginationChange:f,ensurePageInRange:p}=Ct({search:At.useSearch(),navigate:At.useNavigate(),pagination:{defaultPage:1,defaultPageSize:10},globalFilter:{enabled:!0,key:`keyword`},columnFilters:[{columnId:`type`,searchKey:`type`,type:`array`},{columnId:`status`,searchKey:`status`,type:`array`}]}),m=Ye({data:e,columns:(0,Q.useMemo)(()=>Ot(n),[n]),state:{sorting:i,columnFilters:l,globalFilter:o,pagination:d},onSortingChange:a,onColumnFiltersChange:u,onGlobalFilterChange:s,onPaginationChange:f,globalFilterFn:(e,t,n)=>{let r=String(n).toLowerCase();return(e.original.network??``).toLowerCase().includes(r)||(e.original.url??``).toLowerCase().includes(r)},getCoreRowModel:Ze(),getFilteredRowModel:$e(),getPaginationRowModel:Ge(),getSortedRowModel:Ke(),getFacetedRowModel:We(),getFacetedUniqueValues:qe()});(0,Q.useEffect)(()=>{p(m.getPageCount())},[m,p]);let h=[...new Set(e.map(e=>e.type).filter(Boolean))].map(e=>({label:Nt(e),value:e})),g=[{label:O(),value:`general`},{label:k(),value:`manual_verify`},{label:T(),value:`both`}];return(0,$.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,$.jsx)(Qe,{filters:[{columnId:`type`,title:c(),options:h},{columnId:`purpose`,title:E(),options:g},{columnId:`status`,title:D(),options:[...jt]}],onRefresh:r,searchPlaceholder:ue(),table:m}),(0,$.jsx)(Xe,{className:`min-w-[1200px]`,emptyText:je(),loading:t,table:m}),(0,$.jsx)(Je,{className:`mt-auto`,table:m})]})}function Nt(e){return e===`http`?`HTTP`:e===`ws`?`WebSocket`:e===`lite`?`TON LiteServer`:e??`-`}var Pt=[`chain-1`,`chain-2`,`chain-3`,`chain-4`,`chain-5`];function Ft({active:e,children:t,onClick:n}){return(0,$.jsx)(`div`,{className:M(`w-full cursor-pointer rounded-lg px-3 py-3 text-left transition-colors hover:bg-accent hover:text-accent-foreground`,e&&`bg-muted`),onClick:n,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),n())},role:`button`,tabIndex:0,children:t})}function It({chains:e,isLoading:t,keyword:n,onKeywordChange:r,selectedPanel:i,onSelect:a,totalNodes:o,hiddenOnMobile:s}){return(0,$.jsxs)(`div`,{className:M(`flex w-full flex-col gap-2 sm:w-56 lg:w-72 2xl:w-80`,s&&`hidden sm:flex`),children:[(0,$.jsxs)(`div`,{className:`sticky top-0 z-10 -mx-4 bg-background px-4 pb-3 shadow-md sm:static sm:z-auto sm:mx-0 sm:p-0 sm:shadow-none`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between py-2`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsx)(`h1`,{className:`font-bold text-2xl`,children:h()}),(0,$.jsx)(Pe,{size:20})]}),(0,$.jsx)(Z,{variant:`secondary`,children:Se({count:String(e.length)})})]}),(0,$.jsxs)(`div`,{className:`relative block`,children:[(0,$.jsx)(lt,{className:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),(0,$.jsx)(X,{className:`pl-9`,onChange:e=>r(e.target.value),placeholder:g(),value:n})]})]}),(0,$.jsxs)(Fe,{className:`-mx-3 h-full overflow-auto p-3`,children:[(0,$.jsx)(Ft,{active:i===`overview`,onClick:()=>a(`overview`),children:(0,$.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsx)(`div`,{className:`font-medium`,children:d()}),(0,$.jsx)(`div`,{className:`mt-1 text-muted-foreground text-xs`,children:oe({chains:String(e.length),nodes:String(o)})})]}),(0,$.jsx)(Pe,{className:`mt-0.5 size-4 text-muted-foreground`})]})}),(0,$.jsx)(Ve,{className:`my-1`}),t?Pt.map(e=>(0,$.jsxs)(`div`,{className:`px-3 py-3`,children:[(0,$.jsx)(`div`,{className:`flex items-center justify-between gap-2`,children:(0,$.jsx)(H,{className:`h-4 w-24`})}),(0,$.jsxs)(`div`,{className:`mt-2 flex items-center justify-between gap-2`,children:[(0,$.jsx)(H,{className:`h-3 w-20`}),(0,$.jsx)(H,{className:`h-5 w-12 rounded-full`})]})]},e)):e.map((t,n)=>{let r=t.network??t.display_name??String(n);return(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Ft,{active:i===t.network,onClick:()=>a(t.network??`overview`),children:(0,$.jsx)(`div`,{className:`flex items-start gap-3`,children:(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`div`,{className:`truncate font-medium`,children:t.display_name??C()}),(0,$.jsxs)(`div`,{className:`mt-1 flex items-center justify-between gap-2`,children:[(0,$.jsx)(`span`,{className:`text-muted-foreground text-xs`,children:p({count:String(t.nodeCount??0)})}),(0,$.jsx)(Z,{className:`shrink-0 text-xs`,variant:`outline`,children:t.network??`-`})]})]})})}),nS.reduce((e,t)=>(t.network&&(e[t.network]=(e[t.network]??0)+1),e),{}),[S]),w=(0,Q.useMemo)(()=>e.map(e=>({...e,nodeCount:e.network?C[e.network]??0:0})),[e,C]),oe=(0,Q.useMemo)(()=>{let e=g.trim().toLowerCase();return e?w.filter(t=>[t.display_name,t.network].filter(Boolean).some(t=>String(t).toLowerCase().includes(e))):w},[w,g]),ce=(0,Q.useMemo)(()=>v===`overview`?S:S.filter(e=>e.network===v),[S,v]);(0,Q.useEffect)(()=>{v!==`overview`&&!e.some(e=>e.network===v)&&(y(`overview`),x(null))},[e,v]);async function le(){await n.invalidateQueries({queryKey:[`get`,`/admin/api/v1/rpc-nodes`]})}async function ue(){if(p?.row.id){if(p.action===`delete`)await a.mutateAsync({params:{path:{id:p.row.id}}}),U.success(ie());else if(p.action===`enable`||p.action===`disable`)await o.mutateAsync({params:{path:{id:p.row.id}},body:{enabled:p.action===`enable`}}),U.success(ae());else if(p.action===`health-check`){let e=await s.mutateAsync({params:{path:{id:p.row.id}}}),t=e.data?.status??`unknown`,n=e.data?.last_latency_ms;U.success(ee({status:t,latency:n?m({latency:String(n)}):``}))}await le(),h(null)}}async function de(e,t){if(e===`edit`){f(t),u(!0);return}if(e===`enable`||e===`disable`){if(!t.id)return;await o.mutateAsync({params:{path:{id:t.id}},body:{enabled:e===`enable`}}),U.success(ae()),await le();return}if(e===`delete`){h({action:e,row:t});return}h({action:e,row:t})}let fe=b!==null;return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(rt,{fixed:!0}),(0,$.jsx)(it,{fixed:!0,children:(0,$.jsxs)(`section`,{className:`flex h-full gap-6`,children:[(0,$.jsx)(It,{chains:oe,hiddenOnMobile:fe,isLoading:r,keyword:g,onKeywordChange:_,onSelect:e=>{y(e),x(e)},selectedPanel:v,totalNodes:S.length}),(0,$.jsx)(`div`,{className:M(`absolute inset-0 start-full z-50 hidden w-full flex-1 flex-col border bg-background shadow-xs sm:static sm:z-auto sm:flex sm:min-w-0 sm:rounded-md sm:border-0 sm:bg-transparent sm:shadow-none`,fe&&`inset-s-0 flex`),children:(0,$.jsx)(Lt,{isLoading:i.isLoading,nodes:ce,onAction:de,onBack:()=>x(null),onCreate:()=>{f(null),u(!0)},onRefresh:()=>{i.refetch()}})})]})}),(0,$.jsx)(Dt,{currentRow:d,onOpenChange:u,onSuccess:()=>i.refetch(),open:c}),(0,$.jsx)(mt,{onOpenChange:e=>{e||h(null)},open:!!p,children:(0,$.jsxs)(ft,{children:[(0,$.jsxs)(dt,{children:[(0,$.jsx)(pt,{children:p?.action===`delete`?ne():te()}),(0,$.jsx)(ut,{children:p?re({url:String(p.row.url??``),action:p.action}):null})]}),(0,$.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,$.jsx)(N,{onClick:()=>h(null),variant:`outline`,children:se()}),(0,$.jsx)(N,{onClick:ue,children:l()})]})]})})]})}var zt=Rt;export{zt as component}; \ No newline at end of file diff --git a/src/www/assets/search-provider-Bl2HDfcG.js b/src/www/assets/search-provider-Bl2HDfcG.js deleted file mode 100644 index 0cfd41d..0000000 --- a/src/www/assets/search-provider-Bl2HDfcG.js +++ /dev/null @@ -1 +0,0 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{a as t,l as n,n as r,u as i}from"./auth-store-Csn6HPxJ.js";import{t as a}from"./react-CO2uhaBc.js";import{Ap as o,Bf as s,Cp as c,Cu as l,Dp as u,Du as d,Ep as f,Eu as p,Ff as m,Gf as h,Gp as g,Hf as _,Hp as v,Jf as y,Kf as b,Kp as x,Mf as S,Mp as C,Nf as w,Np as ee,Op as T,Or as te,Ou as ne,Pf as re,Pp as ie,Rf as ae,Sp as oe,Tp as se,Tu as ce,Uf as le,Up as ue,Vf as de,Vp as fe,Wf as pe,Yf as me,bp as he,dt as ge,em as _e,jp as ve,kp as ye,ku as be,qf as xe,vp as Se,w as Ce,wp as we,wt as Te,wu as Ee,xp as De,yp as Oe}from"./messages-Bp0bCjzp.js";import{t as ke}from"./useRouter-DtTm7XkK.js";import{g as Ae,t as je}from"./useStore-CupyIEEP.js";import{n as Me}from"./with-selector-DBfssCrY.js";import{t as Ne}from"./useNavigate-7u4DX0Ho.js";import{t as E}from"./dist-BFnxq45V.js";import{i as D,o as Pe,r as Fe,t as O,u as k}from"./button-BgMnOYKD.js";import{a as Ie,n as A,r as j}from"./dist-CKFLmh1A.js";import{t as M}from"./dist-Clua1vrx.js";import{t as N}from"./dist-B0ikDpJU.js";import{n as Le}from"./dist-C97YBjnT.js";import{a as Re,c as ze,i as Be,n as Ve,o as He,r as Ue,s as We,t as Ge}from"./dist-CPQ-sRtL.js";import{t as Ke}from"./confirm-dialog-YmxNnOr3.js";import{t as qe}from"./dist-CRowTfGU.js";import{n as Je,r as P}from"./dist-036CEgdV.js";import"./separator-DbmFQXe4.js";import{i as Ye,n as Xe,r as Ze,t as Qe}from"./tooltip-Gx9CUpPD.js";import{r as $e,t as et}from"./cookies-BzZOQYPw.js";import{i as tt,n as nt,t as rt}from"./wallet-Bgblr4kl.js";import{n as it,r as at}from"./font-provider-CtpKPVa7.js";import{n as ot}from"./theme-provider-CyJJNAox.js";import{t as F}from"./createLucideIcon-Br0Bd5k2.js";import{n as st}from"./skeleton-BQsmx80h.js";import{n as ct,t as lt}from"./sun-JU8p4FoE.js";import{a as ut,c as dt,i as ft,n as pt,o as I,r as mt,s as ht}from"./command-CIv3ggHf.js";import{t as gt}from"./shield-check-MAPDL1u8.js";import{l as _t}from"./dialog-BJ5VA2v_.js";import{t as vt}from"./logo-Ce__4GTc.js";import"./input-BleRUV2A.js";var L=e(a(),1);function yt(e){let t=ke(),n=(0,L.useRef)(void 0);return je(t.stores.location,r=>{let i=e?.select?e.select(r):r;if(e?.structuralSharing??t.options.defaultStructuralSharing){let e=Ae(n.current,i);return n.current=e,e}return i})}var bt=Me();function xt(){return(0,bt.useSyncExternalStore)(St,()=>!0,()=>!1)}function St(){return()=>{}}var R=_e(),z=`Avatar`,[Ct,wt]=Ie(z),[Tt,Et]=Ct(z),Dt=L.forwardRef((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,a]=L.useState(`idle`);return(0,R.jsx)(Tt,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:a,children:(0,R.jsx)(E.span,{...r,ref:t})})});Dt.displayName=z;var Ot=`AvatarImage`,kt=L.forwardRef((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...a}=e,o=Et(Ot,n),s=Nt(r,a),c=N(e=>{i(e),o.onImageLoadingStatusChange(e)});return A(()=>{s!==`idle`&&c(s)},[s,c]),s===`loaded`?(0,R.jsx)(E.img,{...a,ref:t,src:r}):null});kt.displayName=Ot;var At=`AvatarFallback`,jt=L.forwardRef((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,a=Et(At,n),[o,s]=L.useState(r===void 0);return L.useEffect(()=>{if(r!==void 0){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),o&&a.imageLoadingStatus!==`loaded`?(0,R.jsx)(E.span,{...i,ref:t}):null});jt.displayName=At;function Mt(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?`loaded`:`loading`):`error`:`idle`}function Nt(e,{referrerPolicy:t,crossOrigin:n}){let r=xt(),i=L.useRef(null),a=r?(i.current||=new window.Image,i.current):null,[o,s]=L.useState(()=>Mt(a,e));return A(()=>{s(Mt(a,e))},[a,e]),A(()=>{let e=e=>()=>{s(e)};if(!a)return;let r=e(`loaded`),i=e(`error`);return a.addEventListener(`load`,r),a.addEventListener(`error`,i),t&&(a.referrerPolicy=t),typeof n==`string`&&(a.crossOrigin=n),()=>{a.removeEventListener(`load`,r),a.removeEventListener(`error`,i)}},[a,n,t]),o}var Pt=Dt,Ft=kt,It=jt;function Lt(e,t){return L.useReducer((e,n)=>t[e][n]??e,e)}var B=`ScrollArea`,[Rt,zt]=Ie(B),[Bt,V]=Rt(B),Vt=L.forwardRef((e,t)=>{let{__scopeScrollArea:n,type:r=`hover`,dir:i,scrollHideDelay:a=600,...o}=e,[s,c]=L.useState(null),[l,u]=L.useState(null),[d,f]=L.useState(null),[p,m]=L.useState(null),[h,g]=L.useState(null),[_,v]=L.useState(0),[y,b]=L.useState(0),[x,S]=L.useState(!1),[C,w]=L.useState(!1),ee=k(t,e=>c(e)),T=Le(i);return(0,R.jsx)(Bt,{scope:n,type:r,dir:T,scrollHideDelay:a,scrollArea:s,viewport:l,onViewportChange:u,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:m,scrollbarXEnabled:x,onScrollbarXEnabledChange:S,scrollbarY:h,onScrollbarYChange:g,scrollbarYEnabled:C,onScrollbarYEnabledChange:w,onCornerWidthChange:v,onCornerHeightChange:b,children:(0,R.jsx)(E.div,{dir:T,...o,ref:ee,style:{position:`relative`,"--radix-scroll-area-corner-width":_+`px`,"--radix-scroll-area-corner-height":y+`px`,...e.style}})})});Vt.displayName=B;var Ht=`ScrollAreaViewport`,Ut=L.forwardRef((e,t)=>{let{__scopeScrollArea:n,children:r,nonce:i,...a}=e,o=V(Ht,n),s=k(t,L.useRef(null),o.onViewportChange);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}`},nonce:i}),(0,R.jsx)(E.div,{"data-radix-scroll-area-viewport":``,...a,ref:s,style:{overflowX:o.scrollbarXEnabled?`scroll`:`hidden`,overflowY:o.scrollbarYEnabled?`scroll`:`hidden`,...e.style},children:(0,R.jsx)(`div`,{ref:o.onContentChange,style:{minWidth:`100%`,display:`table`},children:r})})]})});Ut.displayName=Ht;var H=`ScrollAreaScrollbar`,Wt=L.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=V(H,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:o}=i,s=e.orientation===`horizontal`;return L.useEffect(()=>(s?a(!0):o(!0),()=>{s?a(!1):o(!1)}),[s,a,o]),i.type===`hover`?(0,R.jsx)(Gt,{...r,ref:t,forceMount:n}):i.type===`scroll`?(0,R.jsx)(Kt,{...r,ref:t,forceMount:n}):i.type===`auto`?(0,R.jsx)(qt,{...r,ref:t,forceMount:n}):i.type===`always`?(0,R.jsx)(U,{...r,ref:t}):null});Wt.displayName=H;var Gt=L.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=V(H,e.__scopeScrollArea),[a,o]=L.useState(!1);return L.useEffect(()=>{let e=i.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),o(!0)},r=()=>{t=window.setTimeout(()=>o(!1),i.scrollHideDelay)};return e.addEventListener(`pointerenter`,n),e.addEventListener(`pointerleave`,r),()=>{window.clearTimeout(t),e.removeEventListener(`pointerenter`,n),e.removeEventListener(`pointerleave`,r)}}},[i.scrollArea,i.scrollHideDelay]),(0,R.jsx)(M,{present:n||a,children:(0,R.jsx)(qt,{"data-state":a?`visible`:`hidden`,...r,ref:t})})}),Kt=L.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=V(H,e.__scopeScrollArea),a=e.orientation===`horizontal`,o=J(()=>c(`SCROLL_END`),100),[s,c]=Lt(`hidden`,{hidden:{SCROLL:`scrolling`},scrolling:{SCROLL_END:`idle`,POINTER_ENTER:`interacting`},interacting:{SCROLL:`interacting`,POINTER_LEAVE:`idle`},idle:{HIDE:`hidden`,SCROLL:`scrolling`,POINTER_ENTER:`interacting`}});return L.useEffect(()=>{if(s===`idle`){let e=window.setTimeout(()=>c(`HIDE`),i.scrollHideDelay);return()=>window.clearTimeout(e)}},[s,i.scrollHideDelay,c]),L.useEffect(()=>{let e=i.viewport,t=a?`scrollLeft`:`scrollTop`;if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(c(`SCROLL`),o()),n=r};return e.addEventListener(`scroll`,r),()=>e.removeEventListener(`scroll`,r)}},[i.viewport,a,c,o]),(0,R.jsx)(M,{present:n||s!==`hidden`,children:(0,R.jsx)(U,{"data-state":s===`hidden`?`hidden`:`visible`,...r,ref:t,onPointerEnter:j(e.onPointerEnter,()=>c(`POINTER_ENTER`)),onPointerLeave:j(e.onPointerLeave,()=>c(`POINTER_LEAVE`))})})}),qt=L.forwardRef((e,t)=>{let n=V(H,e.__scopeScrollArea),{forceMount:r,...i}=e,[a,o]=L.useState(!1),s=e.orientation===`horizontal`,c=J(()=>{if(n.viewport){let e=n.viewport.offsetWidth{let{orientation:n=`vertical`,...r}=e,i=V(H,e.__scopeScrollArea),a=L.useRef(null),o=L.useRef(0),[s,c]=L.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=rn(s.viewport,s.content),u={...r,sizes:s,onSizesChange:c,hasThumb:l>0&&l<1,onThumbChange:e=>a.current=e,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:e=>o.current=e};function d(e,t){return an(e,o.current,s,t)}return n===`horizontal`?(0,R.jsx)(Jt,{...u,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollLeft,t=on(e,s,i.dir);a.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,i.dir))}}):n===`vertical`?(0,R.jsx)(Yt,{...u,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollTop,t=on(e,s);a.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}}):null}),Jt=L.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=V(H,e.__scopeScrollArea),[o,s]=L.useState(),c=L.useRef(null),l=k(t,c,a.onScrollbarXChange);return L.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),(0,R.jsx)(Qt,{"data-orientation":`horizontal`,...i,ref:l,sizes:n,style:{bottom:0,left:a.dir===`rtl`?`var(--radix-scroll-area-corner-width)`:0,right:a.dir===`ltr`?`var(--radix-scroll-area-corner-width)`:0,"--radix-scroll-area-thumb-width":q(n)+`px`,...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),cn(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&o&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:K(o.paddingLeft),paddingEnd:K(o.paddingRight)}})}})}),Yt=L.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=V(H,e.__scopeScrollArea),[o,s]=L.useState(),c=L.useRef(null),l=k(t,c,a.onScrollbarYChange);return L.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),(0,R.jsx)(Qt,{"data-orientation":`vertical`,...i,ref:l,sizes:n,style:{top:0,right:a.dir===`ltr`?0:void 0,left:a.dir===`rtl`?0:void 0,bottom:`var(--radix-scroll-area-corner-height)`,"--radix-scroll-area-thumb-height":q(n)+`px`,...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),cn(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&o&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:K(o.paddingTop),paddingEnd:K(o.paddingBottom)}})}})}),[Xt,Zt]=Rt(H),Qt=L.forwardRef((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:a,onThumbPointerUp:o,onThumbPointerDown:s,onThumbPositionChange:c,onDragScroll:l,onWheelScroll:u,onResize:d,...f}=e,p=V(H,n),[m,h]=L.useState(null),g=k(t,e=>h(e)),_=L.useRef(null),v=L.useRef(``),y=p.viewport,b=r.content-r.viewport,x=N(u),S=N(c),C=J(d,10);function w(e){_.current&&l({x:e.clientX-_.current.left,y:e.clientY-_.current.top})}return L.useEffect(()=>{let e=e=>{let t=e.target;m?.contains(t)&&x(e,b)};return document.addEventListener(`wheel`,e,{passive:!1}),()=>document.removeEventListener(`wheel`,e,{passive:!1})},[y,m,b,x]),L.useEffect(S,[r,S]),Y(m,C),Y(p.content,C),(0,R.jsx)(Xt,{scope:n,scrollbar:m,hasThumb:i,onThumbChange:N(a),onThumbPointerUp:N(o),onThumbPositionChange:S,onThumbPointerDown:N(s),children:(0,R.jsx)(E.div,{...f,ref:g,style:{position:`absolute`,...f.style},onPointerDown:j(e.onPointerDown,e=>{e.button===0&&(e.target.setPointerCapture(e.pointerId),_.current=m.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect=`none`,p.viewport&&(p.viewport.style.scrollBehavior=`auto`),w(e))}),onPointerMove:j(e.onPointerMove,w),onPointerUp:j(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=v.current,p.viewport&&(p.viewport.style.scrollBehavior=``),_.current=null})})})}),W=`ScrollAreaThumb`,$t=L.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=Zt(W,e.__scopeScrollArea);return(0,R.jsx)(M,{present:n||i.hasThumb,children:(0,R.jsx)(en,{ref:t,...r})})}),en=L.forwardRef((e,t)=>{let{__scopeScrollArea:n,style:r,...i}=e,a=V(W,n),o=Zt(W,n),{onThumbPositionChange:s}=o,c=k(t,e=>o.onThumbChange(e)),l=L.useRef(void 0),u=J(()=>{l.current&&=(l.current(),void 0)},100);return L.useEffect(()=>{let e=a.viewport;if(e){let t=()=>{u(),l.current||(l.current=ln(e,s),s())};return s(),e.addEventListener(`scroll`,t),()=>e.removeEventListener(`scroll`,t)}},[a.viewport,u,s]),(0,R.jsx)(E.div,{"data-state":o.hasThumb?`visible`:`hidden`,...i,ref:c,style:{width:`var(--radix-scroll-area-thumb-width)`,height:`var(--radix-scroll-area-thumb-height)`,...r},onPointerDownCapture:j(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;o.onThumbPointerDown({x:n,y:r})}),onPointerUp:j(e.onPointerUp,o.onThumbPointerUp)})});$t.displayName=W;var G=`ScrollAreaCorner`,tn=L.forwardRef((e,t)=>{let n=V(G,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!==`scroll`&&r?(0,R.jsx)(nn,{...e,ref:t}):null});tn.displayName=G;var nn=L.forwardRef((e,t)=>{let{__scopeScrollArea:n,...r}=e,i=V(G,n),[a,o]=L.useState(0),[s,c]=L.useState(0),l=!!(a&&s);return Y(i.scrollbarX,()=>{let e=i.scrollbarX?.offsetHeight||0;i.onCornerHeightChange(e),c(e)}),Y(i.scrollbarY,()=>{let e=i.scrollbarY?.offsetWidth||0;i.onCornerWidthChange(e),o(e)}),l?(0,R.jsx)(E.div,{...r,ref:t,style:{width:a,height:s,position:`absolute`,right:i.dir===`ltr`?0:void 0,left:i.dir===`rtl`?0:void 0,bottom:0,...e.style}}):null});function K(e){return e?parseInt(e,10):0}function rn(e,t){let n=e/t;return isNaN(n)?0:n}function q(e){let t=rn(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function an(e,t,n,r=`ltr`){let i=q(n),a=i/2,o=t||a,s=i-o,c=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r===`ltr`?[0,u]:[u*-1,0];return sn([c,l],d)(e)}function on(e,t,n=`ltr`){let r=q(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=qe(e,n===`ltr`?[0,o]:[o*-1,0]);return sn([0,o],[0,s])(c)}function sn(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function cn(e,t){return e>0&&e{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)};function J(e,t){let n=N(e),r=L.useRef(0);return L.useEffect(()=>()=>window.clearTimeout(r.current),[]),L.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Y(e,t){let n=N(t);A(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var un=Vt,dn=Ut,fn=tn,pn=F(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),mn=F(`coins`,[[`path`,{d:`M13.744 17.736a6 6 0 1 1-7.48-7.48`,key:`bq4yh3`}],[`path`,{d:`M15 6h1v4`,key:`11y1tn`}],[`path`,{d:`m6.134 14.768.866-.5 2 3.464`,key:`17snzx`}],[`circle`,{cx:`16`,cy:`8`,r:`6`,key:`14bfc9`}]]),hn=F(`credit-card`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`5`,rx:`2`,key:`ynyp8z`}],[`line`,{x1:`2`,x2:`22`,y1:`10`,y2:`10`,key:`1b3vmo`}]]),gn=F(`git-branch`,[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]),_n=F(`key-round`,[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]),vn=F(`laptop`,[[`path`,{d:`M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z`,key:`1pdavp`}],[`path`,{d:`M20.054 15.987H3.946`,key:`14rxg9`}]]),yn=F(`layout-dashboard`,[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]),bn=F(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),xn=F(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),Sn=F(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),Cn=F(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),wn=F(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Tn=F(`shopping-cart`,[[`circle`,{cx:`8`,cy:`21`,r:`1`,key:`jimo8o`}],[`circle`,{cx:`19`,cy:`21`,r:`1`,key:`13723u`}],[`path`,{d:`M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12`,key:`9zh506`}]]),En=F(`waypoints`,[[`path`,{d:`m10.586 5.414-5.172 5.172`,key:`4mc350`}],[`path`,{d:`m18.586 13.414-5.172 5.172`,key:`8c96vv`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`circle`,{cx:`12`,cy:`20`,r:`2`,key:`144qzu`}],[`circle`,{cx:`12`,cy:`4`,r:`2`,key:`muu5ef`}],[`circle`,{cx:`20`,cy:`12`,r:`2`,key:`1xzzfp`}],[`circle`,{cx:`4`,cy:`12`,r:`2`,key:`1hvhnz`}]]);function Dn({dir:e,className:t,...n}){return(0,R.jsxs)(`svg`,{className:D(e===`rtl`&&`rotate-y-180`,t),"data-name":`icon-dir-${e}`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,R.jsx)(`title`,{children:`Directory Icon`}),(0,R.jsx)(`path`,{d:`M23.42.51h51.92c2.21 0 4 1.79 4 4v42.18c0 2.21-1.79 4-4 4H23.42s-.04-.02-.04-.04V.55s.02-.04.04-.04z`,opacity:.15}),(0,R.jsx)(`path`,{d:`M5.56 14.88L17.78 14.88`,fill:`none`,opacity:.72,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M5.56 22.09L16.08 22.09`,fill:`none`,opacity:.48,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M5.56 18.38L14.93 18.38`,fill:`none`,opacity:.55,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsxs)(`g`,{strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`circle`,{cx:7.51,cy:7.4,opacity:.8,r:2.54}),(0,R.jsx)(`path`,{d:`M12.06 6.14L17.78 6.14`,fill:`none`,opacity:.8,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M11.85 8.79L16.91 8.79`,fill:`none`,opacity:.6})]}),(0,R.jsx)(`path`,{d:`M29.41 7.4L34.67 7.4`,fill:`none`,opacity:.62,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`3px`}),(0,R.jsx)(`rect`,{height:2.73,opacity:.44,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:26.03,x:28.76,y:11.21}),(0,R.jsx)(`rect`,{height:13.48,opacity:.3,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:44.25,x:28.76,y:17.01}),(0,R.jsx)(`rect`,{height:4.67,opacity:.21,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:44.25,x:28.76,y:33.57}),(0,R.jsx)(`rect`,{height:4.67,opacity:.3,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:36.21,x:28.76,y:41.32})]})}function On(e){return(0,R.jsxs)(`svg`,{"data-name":`icon-layout-compact`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Compact Layout`}),(0,R.jsx)(`rect`,{height:40,rx:2,ry:2,strokeLinecap:`round`,strokeMiterlimit:10,width:4,x:5.84,y:5.2}),(0,R.jsxs)(`g`,{stroke:`#fff`,strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`path`,{d:`M7.26 11.56L8.37 11.56`,fill:`none`,opacity:.66,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M7.26 14.49L8.37 14.49`,fill:`none`,opacity:.51,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M7.26 17.39L8.37 17.39`,fill:`none`,opacity:.52,strokeWidth:`2px`}),(0,R.jsx)(`circle`,{cx:7.81,cy:7.25,fill:`#fff`,opacity:.8,r:1.16})]}),(0,R.jsx)(`path`,{d:`M15.81 14.49L22.89 14.49`,fill:`none`,opacity:.75,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`3px`}),(0,R.jsx)(`rect`,{height:2.73,opacity:.5,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:22.19,x:14.93,y:18.39}),(0,R.jsx)(`rect`,{height:2.73,opacity:.9,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:59.16,x:14.93,y:5.89}),(0,R.jsx)(`rect`,{height:19.95,opacity:.4,rx:2.11,ry:2.11,strokeLinecap:`round`,strokeMiterlimit:10,width:32.68,x:14.93,y:24.22}),(0,R.jsxs)(`g`,{strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`rect`,{height:3.42,opacity:.32,rx:.33,ry:.33,width:2.01,x:59.05,y:38.15}),(0,R.jsx)(`rect`,{height:6.58,opacity:.44,rx:.33,ry:.33,width:2.01,x:54.78,y:34.99}),(0,R.jsx)(`rect`,{height:8.7,opacity:.53,rx:.33,ry:.33,width:2.01,x:63.17,y:32.86}),(0,R.jsx)(`rect`,{height:12.4,opacity:.66,rx:.33,ry:.33,width:2.01,x:67.54,y:29.17})]}),(0,R.jsxs)(`g`,{opacity:.5,children:[(0,R.jsx)(`circle`,{cx:62.16,cy:18.63,r:7.5}),(0,R.jsx)(`path`,{d:`M62.16 11.63c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.14-7-7 3.14-7 7-7m0-1c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8z`})]}),(0,R.jsxs)(`g`,{opacity:.74,children:[(0,R.jsx)(`path`,{d:`M63.04 18.13l3.38-5.67c.93.64 1.7 1.48 2.26 2.47.56.98.89 2.08.96 3.21h-6.6z`}),(0,R.jsx)(`path`,{d:`M66.57 13.19a6.977 6.977 0 012.52 4.44h-5.17l2.65-4.44m-.31-1.43l-4.1 6.87h8c0-1.39-.36-2.75-1.04-3.95a8.007 8.007 0 00-2.86-2.92z`})]})]})}function kn(e){return(0,R.jsxs)(`svg`,{"data-name":`con-layout-default`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Default Layout`}),(0,R.jsx)(`path`,{d:`M39.22 15.99h-8.16c-.79 0-1.43-.67-1.43-1.5s.64-1.5 1.43-1.5h8.16c.79 0 1.43.67 1.43 1.5s-.64 1.5-1.43 1.5z`,opacity:.75}),(0,R.jsx)(`rect`,{height:2.73,opacity:.5,rx:1.36,ry:1.36,width:16.72,x:29.63,y:18.39}),(0,R.jsx)(`path`,{d:`M75.1 6.68v1.45c0 .63-.49 1.14-1.09 1.14H30.72c-.6 0-1.09-.51-1.09-1.14V6.68c0-.62.49-1.14 1.09-1.14h43.29c.6 0 1.09.52 1.09 1.14z`,opacity:.9}),(0,R.jsx)(`rect`,{height:19.95,opacity:.4,rx:2.11,ry:2.11,width:21.8,x:29.63,y:24.22}),(0,R.jsxs)(`g`,{strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`rect`,{height:3.42,opacity:.32,rx:.33,ry:.33,width:2.01,x:61.06,y:38.15}),(0,R.jsx)(`rect`,{height:6.58,opacity:.44,rx:.33,ry:.33,width:2.01,x:56.78,y:34.99}),(0,R.jsx)(`rect`,{height:8.7,opacity:.53,rx:.33,ry:.33,width:2.01,x:65.17,y:32.86}),(0,R.jsx)(`rect`,{height:12.4,opacity:.66,rx:.33,ry:.33,width:2.01,x:69.55,y:29.17})]}),(0,R.jsxs)(`g`,{opacity:.5,children:[(0,R.jsx)(`circle`,{cx:63.17,cy:18.63,r:7.5}),(0,R.jsx)(`path`,{d:`M63.17 11.63c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.14-7-7 3.14-7 7-7m0-1c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8z`})]}),(0,R.jsxs)(`g`,{opacity:.74,children:[(0,R.jsx)(`path`,{d:`M64.05 18.13l3.38-5.67c.93.64 1.7 1.48 2.26 2.47.56.98.89 2.08.96 3.21h-6.6z`}),(0,R.jsx)(`path`,{d:`M67.57 13.19a6.977 6.977 0 012.52 4.44h-5.17l2.65-4.44m-.31-1.43l-4.1 6.87h8c0-1.39-.36-2.75-1.04-3.95a8.007 8.007 0 00-2.86-2.92z`})]}),(0,R.jsxs)(`g`,{strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`rect`,{height:40,opacity:.8,rx:2,ry:2,width:19.14,x:5.84,y:5.02}),(0,R.jsxs)(`g`,{stroke:`#fff`,children:[(0,R.jsx)(`path`,{d:`M9.02 17.39L21.25 17.39`,fill:`none`,opacity:.72,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M9.02 24.6L19.54 24.6`,fill:`none`,opacity:.48,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M9.02 20.88L18.4 20.88`,fill:`none`,opacity:.55,strokeWidth:`2px`}),(0,R.jsx)(`circle`,{cx:10.98,cy:9.91,fill:`#fff`,opacity:.8,r:2.54}),(0,R.jsx)(`path`,{d:`M15.53 8.65L21.25 8.65`,fill:`none`,opacity:.8,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M15.32 11.3L20.38 11.3`,fill:`none`,opacity:.6})]})]})]})}function An(e){return(0,R.jsxs)(`svg`,{"data-name":`icon-layout-full`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Full Layout`}),(0,R.jsx)(`path`,{d:`M6.85 14.49L15.02 14.49`,fill:`none`,opacity:.75,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`3px`}),(0,R.jsx)(`rect`,{height:2.73,opacity:.5,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:25.6,x:5.84,y:18.39}),(0,R.jsx)(`rect`,{height:2.73,opacity:.9,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:68.26,x:5.84,y:5.89}),(0,R.jsx)(`rect`,{height:19.95,opacity:.4,rx:2.11,ry:2.11,strokeLinecap:`round`,strokeMiterlimit:10,width:37.71,x:5.84,y:24.22}),(0,R.jsxs)(`g`,{strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`rect`,{height:3.42,opacity:.32,rx:.33,ry:.33,width:2.01,x:59.05,y:38.15}),(0,R.jsx)(`rect`,{height:6.58,opacity:.44,rx:.33,ry:.33,width:2.01,x:54.78,y:34.99}),(0,R.jsx)(`rect`,{height:8.7,opacity:.53,rx:.33,ry:.33,width:2.01,x:63.17,y:32.86}),(0,R.jsx)(`rect`,{height:12.4,opacity:.66,rx:.33,ry:.33,width:2.01,x:67.54,y:29.17})]}),(0,R.jsxs)(`g`,{opacity:.5,children:[(0,R.jsx)(`circle`,{cx:62.16,cy:18.63,r:7.5}),(0,R.jsx)(`path`,{d:`M62.16 11.63c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.14-7-7 3.14-7 7-7m0-1c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8z`})]}),(0,R.jsxs)(`g`,{opacity:.74,children:[(0,R.jsx)(`path`,{d:`M63.04 18.13l3.38-5.67c.93.64 1.7 1.48 2.26 2.47.56.98.89 2.08.96 3.21h-6.6z`}),(0,R.jsx)(`path`,{d:`M66.57 13.19a6.977 6.977 0 012.52 4.44h-5.17l2.65-4.44m-.31-1.43l-4.1 6.87h8c0-1.39-.36-2.75-1.04-3.95a8.007 8.007 0 00-2.86-2.92z`})]})]})}function jn(e){return(0,R.jsxs)(`svg`,{"data-name":`icon-sidebar-floating`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Floating Sidebar`}),(0,R.jsx)(`rect`,{height:40,opacity:.8,rx:2,ry:2,strokeLinecap:`round`,strokeMiterlimit:10,width:19.74,x:5.89,y:5.15}),(0,R.jsxs)(`g`,{stroke:`#fff`,strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`path`,{d:`M9.81 18.36L22.04 18.36`,fill:`none`,opacity:.72,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M9.81 25.57L20.33 25.57`,fill:`none`,opacity:.48,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M9.81 21.85L19.18 21.85`,fill:`none`,opacity:.55,strokeWidth:`2px`}),(0,R.jsx)(`circle`,{cx:11.76,cy:10.88,fill:`#fff`,opacity:.8,r:2.54}),(0,R.jsx)(`path`,{d:`M16.31 9.62L22.04 9.62`,fill:`none`,opacity:.8,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M16.1 12.27L21.16 12.27`,fill:`none`,opacity:.6})]}),(0,R.jsx)(`path`,{d:`M30.59 9.62L35.85 9.62`,fill:`none`,opacity:.62,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`3px`}),(0,R.jsx)(`rect`,{height:2.73,opacity:.44,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:26.03,x:29.94,y:13.42}),(0,R.jsx)(`rect`,{height:25.87,opacity:.3,rx:2,ry:2,strokeLinecap:`round`,strokeMiterlimit:10,width:43.11,x:29.94,y:19.28})]})}function Mn(e){return(0,R.jsxs)(`svg`,{"data-name":`icon-sidebar-inset`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Inset Sidebar`}),(0,R.jsx)(`rect`,{height:40,opacity:.2,rx:2,ry:2,strokeLinecap:`round`,strokeMiterlimit:10,width:50.22,x:23.39,y:5.57}),(0,R.jsx)(`path`,{d:`M5.08 17.05L17.31 17.05`,fill:`none`,opacity:.72,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M5.08 24.25L15.6 24.25`,fill:`none`,opacity:.48,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M5.08 20.54L14.46 20.54`,fill:`none`,opacity:.55,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsxs)(`g`,{strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`circle`,{cx:7.04,cy:9.57,opacity:.8,r:2.54}),(0,R.jsx)(`path`,{d:`M11.59 8.3L17.31 8.3`,fill:`none`,opacity:.8,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M11.38 10.95L16.44 10.95`,fill:`none`,opacity:.6})]})]})}function Nn(e){return(0,R.jsxs)(`svg`,{"data-name":`icon-sidebar-sidebar`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Sidebar`}),(0,R.jsx)(`path`,{d:`M23.42.51h51.99c2.21 0 4 1.79 4 4v42.18c0 2.21-1.79 4-4 4H23.42s-.04-.02-.04-.04V.55s.02-.04.04-.04z`,opacity:.2,strokeLinecap:`round`,strokeMiterlimit:10}),(0,R.jsx)(`path`,{d:`M5.56 14.88L17.78 14.88`,fill:`none`,opacity:.72,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M5.56 22.09L16.08 22.09`,fill:`none`,opacity:.48,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M5.56 18.38L14.93 18.38`,fill:`none`,opacity:.55,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsxs)(`g`,{strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`circle`,{cx:7.51,cy:7.4,opacity:.8,r:2.54}),(0,R.jsx)(`path`,{d:`M12.06 6.14L17.78 6.14`,fill:`none`,opacity:.8,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M11.85 8.79L16.91 8.79`,fill:`none`,opacity:.6})]})]})}function Pn(e){return(0,R.jsxs)(`svg`,{"aria-label":`Dark theme icon`,"data-name":`icon-theme-dark`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Dark Theme`}),(0,R.jsxs)(`g`,{fill:`#1d2b3f`,children:[(0,R.jsx)(`rect`,{height:50.14,rx:3.5,ry:3.5,width:78.83,x:.53,y:.5}),(0,R.jsx)(`path`,{d:`M75.86 1c1.65 0 3 1.35 3 3v43.14c0 1.65-1.35 3-3 3H4.03c-1.65 0-3-1.35-3-3V4c0-1.65 1.35-3 3-3h71.83m0-1H4.03c-2.21 0-4 1.79-4 4v43.14c0 2.21 1.79 4 4 4h71.83c2.21 0 4-1.79 4-4V4c0-2.21-1.79-4-4-4z`})]}),(0,R.jsx)(`path`,{d:`M22.88 0h52.97c2.21 0 4 1.79 4 4v43.14c0 2.21-1.79 4-4 4H22.88V0z`,fill:`#0d1628`}),(0,R.jsx)(`circle`,{cx:6.7,cy:7.04,fill:`#426187`,r:3.54}),(0,R.jsx)(`path`,{d:`M18.12 6.39h-5.87c-.6 0-1.09-.45-1.09-1s.49-1 1.09-1h5.87c.6 0 1.09.45 1.09 1s-.49 1-1.09 1zM16.55 9.77h-4.24c-.55 0-1-.45-1-1s.45-1 1-1h4.24c.55 0 1 .45 1 1s-.45 1-1 1zM18.32 17.37H4.59c-.69 0-1.25-.47-1.25-1.05s.56-1.05 1.25-1.05h13.73c.69 0 1.25.47 1.25 1.05s-.56 1.05-1.25 1.05zM15.34 21.26h-11c-.55 0-1-.41-1-.91s.45-.91 1-.91h11c.55 0 1 .41 1 .91s-.45.91-1 .91zM16.46 25.57H4.43c-.6 0-1.09-.44-1.09-.98s.49-.98 1.09-.98h12.03c.6 0 1.09.44 1.09.98s-.49.98-1.09.98z`,fill:`#426187`}),(0,R.jsxs)(`g`,{fill:`#2a62bc`,children:[(0,R.jsx)(`rect`,{height:3.42,opacity:.32,rx:.33,ry:.33,width:2.75,x:33.36,y:19.73}),(0,R.jsx)(`rect`,{height:6.58,opacity:.44,rx:.33,ry:.33,width:2.75,x:29.64,y:16.57}),(0,R.jsx)(`rect`,{height:8.7,opacity:.53,rx:.33,ry:.33,width:2.75,x:37.16,y:14.44}),(0,R.jsx)(`rect`,{height:12.4,opacity:.53,rx:.33,ry:.33,width:2.75,x:41.19,y:10.75})]}),(0,R.jsx)(`circle`,{cx:62.74,cy:16.32,fill:`#2f5491`,opacity:.5,r:8}),(0,R.jsx)(`path`,{d:`M62.74 16.32l4.1-6.87c1.19.71 2.18 1.72 2.86 2.92s1.04 2.57 1.04 3.95h-8z`,fill:`#2f5491`,opacity:.74}),(0,R.jsx)(`rect`,{fill:`#17273f`,height:18.62,rx:1.69,ry:1.69,width:41.62,x:29.64,y:27.75})]})}function Fn(e){return(0,R.jsxs)(`svg`,{"aria-label":`Light theme icon`,"data-name":`icon-theme-light`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Light Theme`}),(0,R.jsxs)(`g`,{fill:`#d9d9d9`,children:[(0,R.jsx)(`rect`,{height:50.14,rx:3.5,ry:3.5,width:78.83,x:.53,y:.5}),(0,R.jsx)(`path`,{d:`M75.86 1c1.65 0 3 1.35 3 3v43.14c0 1.65-1.35 3-3 3H4.03c-1.65 0-3-1.35-3-3V4c0-1.65 1.35-3 3-3h71.83m0-1H4.03c-2.21 0-4 1.79-4 4v43.14c0 2.21 1.79 4 4 4h71.83c2.21 0 4-1.79 4-4V4c0-2.21-1.79-4-4-4z`})]}),(0,R.jsx)(`path`,{d:`M22.88 0h52.97c2.21 0 4 1.79 4 4v43.14c0 2.21-1.79 4-4 4H22.88V0z`,fill:`#ecedef`}),(0,R.jsx)(`circle`,{cx:6.7,cy:7.04,fill:`#fff`,r:3.54}),(0,R.jsx)(`path`,{d:`M18.12 6.39h-5.87c-.6 0-1.09-.45-1.09-1s.49-1 1.09-1h5.87c.6 0 1.09.45 1.09 1s-.49 1-1.09 1zM16.55 9.77h-4.24c-.55 0-1-.45-1-1s.45-1 1-1h4.24c.55 0 1 .45 1 1s-.45 1-1 1zM18.32 17.37H4.59c-.69 0-1.25-.47-1.25-1.05s.56-1.05 1.25-1.05h13.73c.69 0 1.25.47 1.25 1.05s-.56 1.05-1.25 1.05zM15.34 21.26h-11c-.55 0-1-.41-1-.91s.45-.91 1-.91h11c.55 0 1 .41 1 .91s-.45.91-1 .91zM16.46 25.57H4.43c-.6 0-1.09-.44-1.09-.98s.49-.98 1.09-.98h12.03c.6 0 1.09.44 1.09.98s-.49.98-1.09.98z`,fill:`#fff`}),(0,R.jsxs)(`g`,{fill:`#c0c4c4`,children:[(0,R.jsx)(`rect`,{height:3.42,opacity:.32,rx:.33,ry:.33,width:2.75,x:33.36,y:19.73}),(0,R.jsx)(`rect`,{height:6.58,opacity:.44,rx:.33,ry:.33,width:2.75,x:29.64,y:16.57}),(0,R.jsx)(`rect`,{height:8.7,opacity:.53,rx:.33,ry:.33,width:2.75,x:37.16,y:14.44}),(0,R.jsx)(`rect`,{height:12.4,opacity:.53,rx:.33,ry:.33,width:2.75,x:41.19,y:10.75})]}),(0,R.jsx)(`circle`,{cx:62.74,cy:16.32,fill:`#fff`,r:8}),(0,R.jsxs)(`g`,{fill:`#d9d9d9`,children:[(0,R.jsx)(`path`,{d:`M63.62 15.82L67 10.15c.93.64 1.7 1.48 2.26 2.47.56.98.89 2.08.96 3.21h-6.6z`}),(0,R.jsx)(`path`,{d:`M67.14 10.88a6.977 6.977 0 012.52 4.44h-5.17l2.65-4.44m-.31-1.43l-4.1 6.87h8c0-1.39-.36-2.75-1.04-3.95s-1.67-2.21-2.86-2.92z`})]}),(0,R.jsx)(`rect`,{fill:`#fff`,height:18.62,rx:1.69,ry:1.69,width:41.62,x:29.64,y:27.75})]})}function In({className:e,...t}){return(0,R.jsxs)(`svg`,{"aria-label":`System theme icon`,className:D(`overflow-hidden rounded-[6px]`,`fill-primary stroke-primary group-data-[state=unchecked]:fill-muted-foreground group-data-[state=unchecked]:stroke-muted-foreground`,e),"data-name":`icon-theme-system`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...t,children:[(0,R.jsx)(`title`,{children:`System Theme`}),(0,R.jsx)(`path`,{d:`M0 0.03H22.88V51.17H0z`,opacity:.2}),(0,R.jsx)(`circle`,{cx:6.7,cy:7.04,fill:`#fff`,opacity:.8,r:3.54,stroke:`#fff`,strokeLinecap:`round`,strokeMiterlimit:10}),(0,R.jsx)(`path`,{d:`M18.12 6.39h-5.87c-.6 0-1.09-.45-1.09-1s.49-1 1.09-1h5.87c.6 0 1.09.45 1.09 1s-.49 1-1.09 1zM16.55 9.77h-4.24c-.55 0-1-.45-1-1s.45-1 1-1h4.24c.55 0 1 .45 1 1s-.45 1-1 1z`,fill:`#fff`,opacity:.75,stroke:`none`}),(0,R.jsx)(`path`,{d:`M18.32 17.37H4.59c-.69 0-1.25-.47-1.25-1.05s.56-1.05 1.25-1.05h13.73c.69 0 1.25.47 1.25 1.05s-.56 1.05-1.25 1.05z`,fill:`#fff`,opacity:.72,stroke:`none`}),(0,R.jsx)(`path`,{d:`M15.34 21.26h-11c-.55 0-1-.41-1-.91s.45-.91 1-.91h11c.55 0 1 .41 1 .91s-.45.91-1 .91z`,fill:`#fff`,opacity:.55,stroke:`none`}),(0,R.jsx)(`path`,{d:`M16.46 25.57H4.43c-.6 0-1.09-.44-1.09-.98s.49-.98 1.09-.98h12.03c.6 0 1.09.44 1.09.98s-.49.98-1.09.98z`,fill:`#fff`,opacity:.67,stroke:`none`}),(0,R.jsx)(`rect`,{height:3.42,opacity:.31,rx:.33,ry:.33,stroke:`none`,width:2.75,x:33.36,y:19.73}),(0,R.jsx)(`rect`,{height:6.58,opacity:.4,rx:.33,ry:.33,stroke:`none`,width:2.75,x:29.64,y:16.57}),(0,R.jsx)(`rect`,{height:8.7,opacity:.26,rx:.33,ry:.33,stroke:`none`,width:2.75,x:37.16,y:14.44}),(0,R.jsx)(`rect`,{height:12.4,opacity:.37,rx:.33,ry:.33,stroke:`none`,width:2.75,x:41.19,y:10.75}),(0,R.jsxs)(`g`,{children:[(0,R.jsx)(`circle`,{cx:62.74,cy:16.32,opacity:.25,r:8}),(0,R.jsx)(`path`,{d:`M62.74 16.32l4.1-6.87c1.19.71 2.18 1.72 2.86 2.92s1.04 2.57 1.04 3.95h-8z`,opacity:.45})]}),(0,R.jsx)(`rect`,{height:18.62,opacity:.3,rx:1.69,ry:1.69,stroke:`none`,strokeLinecap:`round`,strokeMiterlimit:10,width:41.62,x:29.64,y:27.75})]})}function Ln({...e}){return(0,R.jsx)(He,{"data-slot":`sheet`,...e})}function Rn({...e}){return(0,R.jsx)(ze,{"data-slot":`sheet-trigger`,...e})}function zn({...e}){return(0,R.jsx)(Re,{"data-slot":`sheet-portal`,...e})}function Bn({className:e,...t}){return(0,R.jsx)(Be,{className:D(`data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in`,e),"data-slot":`sheet-overlay`,...t})}function Vn({className:e,children:t,side:n=`right`,showCloseButton:r=!0,...i}){return(0,R.jsxs)(zn,{children:[(0,R.jsx)(Bn,{}),(0,R.jsxs)(Ve,{className:D(`fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=open]:animate-in data-[state=closed]:duration-300 data-[state=open]:duration-500`,n===`right`&&`data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm`,n===`left`&&`data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm`,n===`top`&&`data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b`,n===`bottom`&&`data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t`,e),"data-slot":`sheet-content`,...i,children:[t,r&&(0,R.jsxs)(Ge,{className:`absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary`,children:[(0,R.jsx)(_t,{className:`size-4`}),(0,R.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function Hn({className:e,...t}){return(0,R.jsx)(`div`,{className:D(`flex flex-col gap-1.5 p-4`,e),"data-slot":`sheet-header`,...t})}function Un({className:e,...t}){return(0,R.jsx)(`div`,{className:D(`mt-auto flex flex-col gap-2 p-4`,e),"data-slot":`sheet-footer`,...t})}function Wn({className:e,...t}){return(0,R.jsx)(We,{className:D(`font-semibold text-foreground`,e),"data-slot":`sheet-title`,...t})}function Gn({className:e,...t}){return(0,R.jsx)(Ue,{className:D(`text-muted-foreground text-sm`,e),"data-slot":`sheet-description`,...t})}var Kn=`layout_collapsible`,qn=`layout_variant`,Jn=3600*24*7,Yn=`sidebar`,Xn=`icon`,Zn=(0,L.createContext)(null);function Qn({children:e}){let[t,n]=(0,L.useState)(()=>et(Kn)||Xn),[r,i]=(0,L.useState)(()=>et(qn)||Yn),a=e=>{n(e),$e(Kn,e,Jn)},o=e=>{i(e),$e(qn,e,Jn)};return(0,R.jsx)(Zn,{value:{resetLayout:()=>{a(Xn),o(Yn)},defaultCollapsible:Xn,collapsible:t,setCollapsible:a,defaultVariant:Yn,variant:r,setVariant:o},children:e})}function X(){let e=(0,L.useContext)(Zn);if(!e)throw Error(`useLayout must be used within a LayoutProvider`);return e}var $n=768;function er(){let[e,t]=L.useState(void 0);return L.useEffect(()=>{let e=window.matchMedia(`(max-width: ${$n-1}px)`),n=()=>{t(window.innerWidth<$n)};return e.addEventListener(`change`,n),t(window.innerWidth<$n),()=>e.removeEventListener(`change`,n)},[]),!!e}var tr=`16rem`,nr=`18rem`,rr=`3rem`,ir=`b`,ar=L.createContext(null);function Z(){let e=L.useContext(ar);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function or({defaultOpen:e=!0,open:t,onOpenChange:r,className:a,style:o,children:s,...c}){let l=er(),[u,d]=L.useState(!1),[f,p]=L.useState(e),m=t??f,h=L.useCallback(e=>{let t=typeof e==`function`?e(m):e;r?r(t):p(t),document.cookie=`${i}=${t}; path=/; max-age=${n}`},[r,m]),g=L.useCallback(()=>l?d(e=>!e):h(e=>!e),[l,h]);L.useEffect(()=>{let e=e=>{e.key===ir&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),g())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[g]);let _=m?`expanded`:`collapsed`,v=L.useMemo(()=>({state:_,open:m,setOpen:h,isMobile:l,openMobile:u,setOpenMobile:d,toggleSidebar:g}),[_,m,h,l,u,g]);return(0,R.jsx)(ar.Provider,{value:v,children:(0,R.jsx)(Ze,{delayDuration:0,children:(0,R.jsx)(`div`,{className:D(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar`,a),"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":tr,"--sidebar-width-icon":rr,...o},...c,children:s})})})}function sr({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,...a}){let{isMobile:o,state:s,openMobile:c,setOpenMobile:l}=Z();return n===`none`?(0,R.jsx)(`div`,{className:D(`flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground`,r),"data-slot":`sidebar`,...a,children:i}):o?(0,R.jsx)(Ln,{onOpenChange:l,open:c,...a,children:(0,R.jsxs)(Vn,{className:`w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden`,"data-mobile":`true`,"data-sidebar":`sidebar`,"data-slot":`sidebar`,side:e,style:{"--sidebar-width":nr},children:[(0,R.jsxs)(Hn,{className:`sr-only`,children:[(0,R.jsx)(Wn,{children:`Sidebar`}),(0,R.jsx)(Gn,{children:`Displays the mobile sidebar.`})]}),(0,R.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:i})]})}):(0,R.jsxs)(`div`,{className:`group peer hidden text-sidebar-foreground md:block`,"data-collapsible":s===`collapsed`?n:``,"data-side":e,"data-slot":`sidebar`,"data-state":s,"data-variant":t,children:[(0,R.jsx)(`div`,{className:D(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,t===`floating`||t===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`),"data-slot":`sidebar-gap`}),(0,R.jsx)(`div`,{className:D(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,e===`left`?`left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,t===`floating`||t===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,r),"data-slot":`sidebar-container`,...a,children:(0,R.jsx)(`div`,{className:`flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm`,"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,children:i})})]})}function cr({className:e,onClick:t,...n}){let{toggleSidebar:r}=Z();return(0,R.jsxs)(O,{className:D(`size-7`,e),"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,onClick:e=>{t?.(e),r()},size:`icon`,variant:`ghost`,...n,children:[(0,R.jsx)(xn,{}),(0,R.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function lr({className:e,...t}){let{toggleSidebar:n}=Z();return(0,R.jsx)(`button`,{"aria-label":`Toggle Sidebar`,className:D(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex`,`in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`group-data-[collapsible=offcanvas]:translate-x-0 hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:after:left-full`,`[[data-side=left][data-collapsible=offcanvas]_&]:-right-2`,`[[data-side=right][data-collapsible=offcanvas]_&]:-left-2`,e),"data-sidebar":`rail`,"data-slot":`sidebar-rail`,onClick:n,tabIndex:-1,title:`Toggle Sidebar`,...t})}function ur({className:e,...t}){return(0,R.jsx)(`main`,{className:D(`relative flex w-full flex-1 flex-col bg-background`,`md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm`,e),"data-slot":`sidebar-inset`,...t})}function dr({className:e,...t}){return(0,R.jsx)(`div`,{className:D(`flex flex-col gap-2 p-2`,e),"data-sidebar":`header`,"data-slot":`sidebar-header`,...t})}function fr({className:e,...t}){return(0,R.jsx)(`div`,{className:D(`flex flex-col gap-2 p-2`,e),"data-sidebar":`footer`,"data-slot":`sidebar-footer`,...t})}function pr({className:e,...t}){return(0,R.jsx)(`div`,{className:D(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),"data-sidebar":`content`,"data-slot":`sidebar-content`,...t})}function mr({className:e,...t}){return(0,R.jsx)(`div`,{className:D(`relative flex w-full min-w-0 flex-col p-2`,e),"data-sidebar":`group`,"data-slot":`sidebar-group`,...t})}function hr({className:e,asChild:t=!1,...n}){return(0,R.jsx)(t?Pe:`div`,{className:D(`flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-sidebar-foreground/70 text-xs outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0`,e),"data-sidebar":`group-label`,"data-slot":`sidebar-group-label`,...n})}function gr({className:e,...t}){return(0,R.jsx)(`ul`,{className:D(`flex w-full min-w-0 flex-col gap-1`,e),"data-sidebar":`menu`,"data-slot":`sidebar-menu`,...t})}function _r({className:e,...t}){return(0,R.jsx)(`li`,{className:D(`group/menu-item relative`,e),"data-sidebar":`menu-item`,"data-slot":`sidebar-menu-item`,...t})}var vr=Fe(`peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function yr({asChild:e=!1,isActive:t=!1,variant:n=`default`,size:r=`default`,tooltip:i,className:a,...o}){let s=e?Pe:`button`,{isMobile:c,state:l}=Z(),u=(0,R.jsx)(s,{className:D(vr({variant:n,size:r}),a),"data-active":t,"data-sidebar":`menu-button`,"data-size":r,"data-slot":`sidebar-menu-button`,...o});return i?(typeof i==`string`&&(i={children:i}),(0,R.jsxs)(Qe,{children:[(0,R.jsx)(Ye,{asChild:!0,children:u}),(0,R.jsx)(Xe,{align:`center`,hidden:l!==`collapsed`||c,side:`right`,...i})]})):u}function br({className:e,...t}){return(0,R.jsx)(`ul`,{className:D(`mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-sidebar-border border-l px-2.5 py-0.5`,`group-data-[collapsible=icon]:hidden`,e),"data-sidebar":`menu-sub`,"data-slot":`sidebar-menu-sub`,...t})}function xr({className:e,...t}){return(0,R.jsx)(`li`,{className:D(`group/menu-sub-item relative`,e),"data-sidebar":`menu-sub-item`,"data-slot":`sidebar-menu-sub-item`,...t})}function Sr({asChild:e=!1,size:t=`md`,isActive:n=!1,className:r,...i}){return(0,R.jsx)(e?Pe:`a`,{className:D(`flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-hidden ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground`,`data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground`,t===`sm`&&`text-xs`,t===`md`&&`text-sm`,`group-data-[collapsible=icon]:hidden`,r),"data-active":n,"data-sidebar":`menu-sub-button`,"data-size":t,"data-slot":`sidebar-menu-sub-button`,...i})}function Cr(){return(0,R.jsxs)(Ln,{children:[(0,R.jsx)(Rn,{asChild:!0,children:(0,R.jsx)(O,{"aria-describedby":`config-drawer-description`,"aria-label":`Open theme settings`,className:`rounded-full`,size:`icon`,variant:`ghost`,children:(0,R.jsx)(wn,{"aria-hidden":`true`})})}),(0,R.jsx)(wr,{})]})}function wr(){let{setOpen:e}=Z(),{resetDir:t}=tt(),{resetFont:n}=it(),{resetTheme:r}=ot(),{resetLayout:i}=X();return(0,R.jsxs)(Vn,{className:`flex flex-col`,children:[(0,R.jsxs)(Hn,{className:`pb-0 text-start`,children:[(0,R.jsx)(Wn,{children:C()}),(0,R.jsx)(Gn,{id:`config-drawer-description`,children:ve()})]}),(0,R.jsxs)(`div`,{className:`space-y-6 overflow-y-auto px-4`,children:[(0,R.jsx)(Er,{}),(0,R.jsx)(Tr,{}),(0,R.jsx)(Dr,{}),(0,R.jsx)(Or,{}),(0,R.jsx)(kr,{})]}),(0,R.jsx)(Un,{className:`gap-2`,children:(0,R.jsx)(O,{"aria-label":`Reset all settings to default values`,onClick:()=>{e(!0),t(),n(),r(),i()},variant:`destructive`,children:o()})})]})}function Q({title:e,showReset:t=!1,onReset:n,className:r}){return(0,R.jsxs)(`div`,{className:D(`mb-2 flex items-center gap-2 font-semibold text-muted-foreground text-sm`,r),children:[e,t&&n&&(0,R.jsx)(O,{className:`size-4 rounded-full`,onClick:n,size:`icon`,variant:`secondary`,children:(0,R.jsx)(Sn,{className:`size-3`})})]})}function $({item:e,isTheme:t=!1}){return(0,R.jsxs)(Je,{"aria-describedby":`${e.value}-description`,"aria-label":`Select ${e.label.toLowerCase()}`,className:D(`group outline-none`,`transition duration-200 ease-in`),value:e.value,children:[(0,R.jsxs)(`div`,{"aria-hidden":`false`,"aria-label":`${e.label} option preview`,className:D(`relative rounded-[6px] ring-[1px] ring-border`,`group-data-[state=checked]:shadow-2xl group-data-[state=checked]:ring-primary`,`group-focus-visible:ring-2`),role:`img`,children:[(0,R.jsx)(nt,{"aria-hidden":`true`,className:D(`size-6 fill-primary stroke-white`,`group-data-[state=unchecked]:hidden`,`absolute top-0 right-0 translate-x-1/2 -translate-y-1/2`)}),(0,R.jsx)(e.icon,{"aria-hidden":`true`,className:D(!t&&`fill-primary stroke-primary group-data-[state=unchecked]:fill-muted-foreground group-data-[state=unchecked]:stroke-muted-foreground`)})]}),(0,R.jsx)(`div`,{"aria-live":`polite`,className:`mt-1 text-xs`,id:`${e.value}-description`,children:e.label})]})}function Tr(){let{defaultTheme:e,theme:t,setTheme:n}=ot();return(0,R.jsxs)(`div`,{children:[(0,R.jsx)(Q,{onReset:()=>n(e),showReset:t!==e,title:ye()}),(0,R.jsx)(P,{"aria-describedby":`theme-description`,"aria-label":`Select theme preference`,className:`grid w-full max-w-md grid-cols-3 gap-4`,onValueChange:n,value:t,children:[{value:`system`,label:fe(),icon:In},{value:`light`,label:ue(),icon:Fn},{value:`dark`,label:v(),icon:Pn}].map(e=>(0,R.jsx)($,{isTheme:!0,item:e},e.value))}),(0,R.jsx)(`div`,{className:`sr-only`,id:`theme-description`,children:`Choose between system preference, light mode, or dark mode`})]})}function Er(){let{font:e,setFont:t,resetFont:n}=it();return(0,R.jsxs)(`div`,{children:[(0,R.jsx)(Q,{onReset:n,showReset:e!==at[0],title:Te()}),(0,R.jsx)(`select`,{className:`w-full rounded-md border border-input bg-background px-3 py-2 text-sm`,onChange:e=>t(e.target.value),value:e,children:at.map(e=>(0,R.jsx)(`option`,{value:e,children:e},e))})]})}function Dr(){let{defaultVariant:e,variant:t,setVariant:n}=X();return(0,R.jsxs)(`div`,{className:`max-md:hidden`,children:[(0,R.jsx)(Q,{onReset:()=>n(e),showReset:e!==t,title:T()}),(0,R.jsx)(P,{"aria-describedby":`sidebar-description`,"aria-label":`Select sidebar style`,className:`grid w-full max-w-md grid-cols-3 gap-4`,onValueChange:n,value:t,children:[{value:`inset`,label:se(),icon:Mn},{value:`floating`,label:we(),icon:jn},{value:`sidebar`,label:c(),icon:Nn}].map(e=>(0,R.jsx)($,{item:e},e.value))}),(0,R.jsx)(`div`,{className:`sr-only`,id:`sidebar-description`,children:`Choose between inset, floating, or standard sidebar layout`})]})}function Or(){let{open:e,setOpen:t}=Z(),{defaultCollapsible:n,collapsible:r,setCollapsible:i}=X(),a=e?`default`:r;return(0,R.jsxs)(`div`,{className:`max-md:hidden`,children:[(0,R.jsx)(Q,{onReset:()=>{t(!0),i(n)},showReset:a!==`default`,title:u()}),(0,R.jsx)(P,{"aria-describedby":`layout-description`,"aria-label":`Select layout style`,className:`grid w-full max-w-md grid-cols-3 gap-4`,onValueChange:e=>{if(e===`default`){t(!0);return}t(!1),i(e)},value:a,children:[{value:`default`,label:oe(),icon:kn},{value:`icon`,label:De(),icon:On},{value:`offcanvas`,label:he(),icon:An}].map(e=>(0,R.jsx)($,{item:e},e.value))}),(0,R.jsx)(`div`,{className:`sr-only`,id:`layout-description`,children:`Choose between default expanded, compact icon-only, or full layout mode`})]})}function kr(){let{defaultDir:e,dir:t,setDir:n}=tt();return(0,R.jsxs)(`div`,{children:[(0,R.jsx)(Q,{onReset:()=>n(e),showReset:e!==t,title:f()}),(0,R.jsx)(P,{"aria-describedby":`direction-description`,"aria-label":`Select site direction`,className:`grid w-full max-w-md grid-cols-3 gap-4`,onValueChange:n,value:t,children:[{value:`ltr`,label:Oe(),icon:e=>(0,R.jsx)(Dn,{dir:`ltr`,...e})},{value:`rtl`,label:Se(),icon:e=>(0,R.jsx)(Dn,{dir:`rtl`,...e})}].map(e=>(0,R.jsx)($,{item:e},e.value))}),(0,R.jsx)(`div`,{className:`sr-only`,id:`direction-description`,children:`Choose between left-to-right or right-to-left site direction`})]})}function Ar({open:e,onOpenChange:n}){let i=Ne(),a=yt(),o=t.useMutation(`post`,`/admin/api/v1/auth/logout`);return(0,R.jsx)(Ke,{className:`sm:max-w-sm`,confirmText:o.isPending?ge():x(),desc:g(),destructive:!0,handleConfirm:async()=>{await o.mutateAsync({}),r();let e=a.href;i({to:`/sign-in`,search:{redirect:e},replace:!0})},onOpenChange:n,open:e,title:x()})}function jr({className:e,size:t=`default`,...n}){return(0,R.jsx)(Pt,{className:D(`group/avatar relative flex size-8 shrink-0 select-none overflow-hidden rounded-full data-[size=lg]:size-10 data-[size=sm]:size-6`,e),"data-size":t,"data-slot":`avatar`,...n})}function Mr({className:e,...t}){return(0,R.jsx)(Ft,{className:D(`aspect-square size-full`,e),"data-slot":`avatar-image`,...t})}function Nr({className:e,...t}){return(0,R.jsx)(It,{className:D(`flex size-full items-center justify-center rounded-full bg-muted text-muted-foreground text-sm group-data-[size=sm]/avatar:text-xs`,e),"data-slot":`avatar-fallback`,...t})}function Pr(e=null){let[t,n]=(0,L.useState)(e);return[t,e=>n(t=>t===e?null:e)]}function Fr(e){if(!e)return`-`;let t=new Date(e.replace(` `,`T`));return Number.isNaN(t.getTime())?e:new Intl.DateTimeFormat(`zh-TW`,{year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:!1}).format(t)}function Ir(e){return e?e.includes(` `)?e.slice(11,16):e.slice(5):``}function Lr(e,t=2){return Number(e??0).toLocaleString(`en-US`,{maximumFractionDigits:t})}function Rr(e,t=2){return`$${Number(e??0).toLocaleString(`en-US`,{maximumFractionDigits:t})}`}function zr(){return{user:{name:`GMPay`,email:`admin@gmpay.local`,avatar:`/avatars/shadcn.jpg`},teams:[{name:`GMPay`,logo:vt,plan:be()}],navGroups:[{title:me(),items:[{title:y(),url:`/dashboard`,icon:yn},{title:ne(),icon:mn,items:[{title:d(),url:`/payment-setup`},{title:p(),url:`/payment-setup/integrations`}]}]},{title:ce(),items:[{title:xe(),url:`/orders`,icon:Tn}]},{title:Ee(),items:[{title:l(),url:`/addresses`,icon:rt}]},{title:h(),items:[{title:pe(),url:`/chains`,icon:gn},{title:le(),url:`/rpc`,icon:En}]},{title:_(),items:[{title:b(),url:`/keys`,icon:hn},{title:de(),icon:wn,items:[{title:m(),url:`/settings`},{title:re(),url:`/settings/telegram`},{title:te(),url:`/settings/system`},{title:w(),url:`/settings/pay`},{title:S(),url:`/settings/epay`},{title:Ce(),url:`/settings/okpay`}]},{title:s(),icon:gt,items:[{title:ae(),url:`/account/password`}]}]}]}}function Br({className:e,children:t,...n}){return(0,R.jsxs)(un,{className:D(`relative`,e),"data-slot":`scroll-area`,...n,children:[(0,R.jsx)(dn,{className:`size-full rounded-[inherit] outline-none transition-[color,box-shadow] focus-visible:outline-1 focus-visible:ring-[3px] focus-visible:ring-ring/50`,"data-slot":`scroll-area-viewport`,children:t}),(0,R.jsx)(Vr,{}),(0,R.jsx)(fn,{})]})}function Vr({className:e,orientation:t=`vertical`,...n}){return(0,R.jsx)(Wt,{className:D(`flex touch-none select-none p-px transition-colors`,t===`vertical`&&`h-full w-2.5 border-l border-l-transparent`,t===`horizontal`&&`h-2.5 flex-col border-t border-t-transparent`,e),"data-slot":`scroll-area-scrollbar`,orientation:t,...n,children:(0,R.jsx)($t,{className:`relative flex-1 rounded-full bg-border`,"data-slot":`scroll-area-thumb`})})}function Hr(){let e=Ne(),{setTheme:t}=ot(),{open:n,setOpen:r}=Gr(),i=zr(),a=L.useCallback(e=>{r(!1),e()},[r]);return(0,R.jsxs)(pt,{modal:!0,onOpenChange:r,open:n,children:[(0,R.jsx)(ut,{placeholder:ie()}),(0,R.jsx)(ht,{children:(0,R.jsxs)(Br,{className:`h-72 pe-1`,type:`hover`,children:[(0,R.jsx)(mt,{children:ee()}),i.navGroups.map(t=>(0,R.jsx)(ft,{heading:t.title,children:t.items.map(t=>t.url?(0,R.jsxs)(I,{onSelect:()=>{a(()=>e({to:t.url}))},value:t.title,children:[(0,R.jsx)(`div`,{className:`flex size-4 items-center justify-center`,children:(0,R.jsx)(pn,{className:`size-2 text-muted-foreground/80`})}),t.title]},t.url):t.items?.map(n=>(0,R.jsxs)(I,{onSelect:()=>{a(()=>e({to:n.url}))},value:`${t.title}-${n.url}`,children:[(0,R.jsx)(`div`,{className:`flex size-4 items-center justify-center`,children:(0,R.jsx)(pn,{className:`size-2 text-muted-foreground/80`})}),t.title,` `,(0,R.jsx)(st,{}),` `,n.title]},`${t.title}-${n.url}`)))},t.title)),(0,R.jsx)(dt,{}),(0,R.jsxs)(ft,{heading:ye(),children:[(0,R.jsxs)(I,{onSelect:()=>a(()=>t(`light`)),children:[(0,R.jsx)(lt,{}),` `,(0,R.jsx)(`span`,{children:ue()})]}),(0,R.jsxs)(I,{onSelect:()=>a(()=>t(`dark`)),children:[(0,R.jsx)(ct,{className:`scale-90`}),(0,R.jsx)(`span`,{children:v()})]}),(0,R.jsxs)(I,{onSelect:()=>a(()=>t(`system`)),children:[(0,R.jsx)(vn,{}),(0,R.jsx)(`span`,{children:fe()})]})]})]})})]})}var Ur=(0,L.createContext)(null);function Wr({children:e}){let[t,n]=(0,L.useState)(!1);return(0,L.useEffect)(()=>{let e=e=>{e.key===`k`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),n(e=>!e))};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[]),(0,R.jsxs)(Ur,{value:{open:t,setOpen:n},children:[e,(0,R.jsx)(Hr,{})]})}var Gr=()=>{let e=(0,L.useContext)(Ur);if(!e)throw Error(`useSearch has to be used within SearchProvider`);return e};export{lr as A,gn as B,gr as C,Sr as D,br as E,Ln as F,mn as H,En as I,Cn as L,Z as M,Qn as N,xr as O,X as P,bn as R,ur as S,_r as T,hn as V,pr as _,Rr as a,hr as b,Ir as c,Nr as d,Mr as f,sr as g,wr as h,zr as i,cr as j,or as k,Pr as l,Cr as m,Gr as n,Fr as o,Ar as p,Br as r,Lr as s,Wr as t,jr as u,fr as v,yr as w,dr as x,mr as y,_n as z}; \ No newline at end of file diff --git a/src/www/assets/search-provider-C-_FQI9C.js b/src/www/assets/search-provider-C-_FQI9C.js new file mode 100644 index 0000000..09d4a31 --- /dev/null +++ b/src/www/assets/search-provider-C-_FQI9C.js @@ -0,0 +1 @@ +import{r as e}from"./chunk-DECur_0Z.js";import{a as t,l as n,n as r,u as i}from"./auth-store-De4Y7PFV.js";import{t as a}from"./react-CO2uhaBc.js";import{Ap as o,Cp as s,Cu as c,Dp as l,Du as u,Ep as d,Eu as f,Ff as p,Fp as m,Gf as h,Hf as g,Hp as _,If as v,Jf as ee,Kf as y,Kp as b,Mp as x,Nf as S,Np as C,Op as te,Or as w,Ou as ne,Pf as re,Pp as ie,Sp as ae,Tp as oe,Tu as se,Uf as ce,Up as le,Vf as ue,Wf as de,Wp as fe,Xf as pe,Yf as me,bp as he,dt as ge,jp as _e,kp as ve,ku as ye,qf as be,qp as xe,tm as Se,w as Ce,wp as we,wt as Te,wu as Ee,xp as De,yp as Oe,zf as ke}from"./messages-BOatyqUm.js";import{t as Ae}from"./useRouter-DtTm7XkK.js";import{g as je,t as Me}from"./useStore-CupyIEEP.js";import{n as Ne}from"./with-selector-DBfssCrY.js";import{t as Pe}from"./useNavigate-7u4DX0Ho.js";import{t as T}from"./dist-Cc8_LDAq.js";import{i as E,o as Fe,r as Ie,t as D,u as O}from"./button-C_NDYaz8.js";import{a as Le,n as k,r as A}from"./dist-DPPquN_M.js";import{t as j}from"./dist-DvwKOQ8R.js";import{t as M}from"./dist-D4X8zGEB.js";import{n as Re}from"./dist-BNFQuJTu.js";import{a as ze,c as Be,i as Ve,n as He,o as Ue,r as We,s as Ge,t as Ke}from"./dist-iiotRAEO.js";import{t as qe}from"./confirm-dialog-D1L-0EhT.js";import{t as Je}from"./dist-CRowTfGU.js";import{n as Ye,r as N}from"./dist-C5heX0fx.js";import"./separator-CsUemQNs.js";import{i as Xe,n as Ze,r as Qe,t as $e}from"./tooltip-xZuTTfnF.js";import{r as et,t as tt}from"./cookies-BzZOQYPw.js";import{i as nt,n as rt,t as it}from"./wallet-CtiawGS1.js";import{n as at,r as ot}from"./font-provider-BPsIRWbb.js";import{n as P}from"./theme-provider-BREWrHp_.js";import{t as F}from"./createLucideIcon-Br0Bd5k2.js";import{n as st}from"./skeleton-CmDjDV1O.js";import{n as ct,t as lt}from"./sun-JU8p4FoE.js";import{a as ut,c as dt,i as ft,n as pt,o as I,r as mt,s as ht}from"./command-B_SlhXkX.js";import{t as gt}from"./shield-check-MAPDL1u8.js";import{l as _t}from"./dialog-CZ-2RPb-.js";import{t as vt}from"./logo-agrtpj2n.js";import"./input-8zzM34r5.js";var L=e(a(),1);function yt(e){let t=Ae(),n=(0,L.useRef)(void 0);return Me(t.stores.location,r=>{let i=e?.select?e.select(r):r;if(e?.structuralSharing??t.options.defaultStructuralSharing){let e=je(n.current,i);return n.current=e,e}return i})}var bt=Ne();function xt(){return(0,bt.useSyncExternalStore)(St,()=>!0,()=>!1)}function St(){return()=>{}}var R=Se(),z=`Avatar`,[Ct,wt]=Le(z),[Tt,Et]=Ct(z),Dt=L.forwardRef((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,a]=L.useState(`idle`);return(0,R.jsx)(Tt,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:a,children:(0,R.jsx)(T.span,{...r,ref:t})})});Dt.displayName=z;var Ot=`AvatarImage`,kt=L.forwardRef((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...a}=e,o=Et(Ot,n),s=Nt(r,a),c=M(e=>{i(e),o.onImageLoadingStatusChange(e)});return k(()=>{s!==`idle`&&c(s)},[s,c]),s===`loaded`?(0,R.jsx)(T.img,{...a,ref:t,src:r}):null});kt.displayName=Ot;var At=`AvatarFallback`,jt=L.forwardRef((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,a=Et(At,n),[o,s]=L.useState(r===void 0);return L.useEffect(()=>{if(r!==void 0){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),o&&a.imageLoadingStatus!==`loaded`?(0,R.jsx)(T.span,{...i,ref:t}):null});jt.displayName=At;function Mt(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?`loaded`:`loading`):`error`:`idle`}function Nt(e,{referrerPolicy:t,crossOrigin:n}){let r=xt(),i=L.useRef(null),a=r?(i.current||=new window.Image,i.current):null,[o,s]=L.useState(()=>Mt(a,e));return k(()=>{s(Mt(a,e))},[a,e]),k(()=>{let e=e=>()=>{s(e)};if(!a)return;let r=e(`loaded`),i=e(`error`);return a.addEventListener(`load`,r),a.addEventListener(`error`,i),t&&(a.referrerPolicy=t),typeof n==`string`&&(a.crossOrigin=n),()=>{a.removeEventListener(`load`,r),a.removeEventListener(`error`,i)}},[a,n,t]),o}var Pt=Dt,Ft=kt,It=jt;function Lt(e,t){return L.useReducer((e,n)=>t[e][n]??e,e)}var B=`ScrollArea`,[Rt,zt]=Le(B),[Bt,V]=Rt(B),Vt=L.forwardRef((e,t)=>{let{__scopeScrollArea:n,type:r=`hover`,dir:i,scrollHideDelay:a=600,...o}=e,[s,c]=L.useState(null),[l,u]=L.useState(null),[d,f]=L.useState(null),[p,m]=L.useState(null),[h,g]=L.useState(null),[_,v]=L.useState(0),[ee,y]=L.useState(0),[b,x]=L.useState(!1),[S,C]=L.useState(!1),te=O(t,e=>c(e)),w=Re(i);return(0,R.jsx)(Bt,{scope:n,type:r,dir:w,scrollHideDelay:a,scrollArea:s,viewport:l,onViewportChange:u,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:m,scrollbarXEnabled:b,onScrollbarXEnabledChange:x,scrollbarY:h,onScrollbarYChange:g,scrollbarYEnabled:S,onScrollbarYEnabledChange:C,onCornerWidthChange:v,onCornerHeightChange:y,children:(0,R.jsx)(T.div,{dir:w,...o,ref:te,style:{position:`relative`,"--radix-scroll-area-corner-width":_+`px`,"--radix-scroll-area-corner-height":ee+`px`,...e.style}})})});Vt.displayName=B;var Ht=`ScrollAreaViewport`,Ut=L.forwardRef((e,t)=>{let{__scopeScrollArea:n,children:r,nonce:i,...a}=e,o=V(Ht,n),s=O(t,L.useRef(null),o.onViewportChange);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}`},nonce:i}),(0,R.jsx)(T.div,{"data-radix-scroll-area-viewport":``,...a,ref:s,style:{overflowX:o.scrollbarXEnabled?`scroll`:`hidden`,overflowY:o.scrollbarYEnabled?`scroll`:`hidden`,...e.style},children:(0,R.jsx)(`div`,{ref:o.onContentChange,style:{minWidth:`100%`,display:`table`},children:r})})]})});Ut.displayName=Ht;var H=`ScrollAreaScrollbar`,Wt=L.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=V(H,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:o}=i,s=e.orientation===`horizontal`;return L.useEffect(()=>(s?a(!0):o(!0),()=>{s?a(!1):o(!1)}),[s,a,o]),i.type===`hover`?(0,R.jsx)(Gt,{...r,ref:t,forceMount:n}):i.type===`scroll`?(0,R.jsx)(Kt,{...r,ref:t,forceMount:n}):i.type===`auto`?(0,R.jsx)(qt,{...r,ref:t,forceMount:n}):i.type===`always`?(0,R.jsx)(U,{...r,ref:t}):null});Wt.displayName=H;var Gt=L.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=V(H,e.__scopeScrollArea),[a,o]=L.useState(!1);return L.useEffect(()=>{let e=i.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),o(!0)},r=()=>{t=window.setTimeout(()=>o(!1),i.scrollHideDelay)};return e.addEventListener(`pointerenter`,n),e.addEventListener(`pointerleave`,r),()=>{window.clearTimeout(t),e.removeEventListener(`pointerenter`,n),e.removeEventListener(`pointerleave`,r)}}},[i.scrollArea,i.scrollHideDelay]),(0,R.jsx)(j,{present:n||a,children:(0,R.jsx)(qt,{"data-state":a?`visible`:`hidden`,...r,ref:t})})}),Kt=L.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=V(H,e.__scopeScrollArea),a=e.orientation===`horizontal`,o=J(()=>c(`SCROLL_END`),100),[s,c]=Lt(`hidden`,{hidden:{SCROLL:`scrolling`},scrolling:{SCROLL_END:`idle`,POINTER_ENTER:`interacting`},interacting:{SCROLL:`interacting`,POINTER_LEAVE:`idle`},idle:{HIDE:`hidden`,SCROLL:`scrolling`,POINTER_ENTER:`interacting`}});return L.useEffect(()=>{if(s===`idle`){let e=window.setTimeout(()=>c(`HIDE`),i.scrollHideDelay);return()=>window.clearTimeout(e)}},[s,i.scrollHideDelay,c]),L.useEffect(()=>{let e=i.viewport,t=a?`scrollLeft`:`scrollTop`;if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(c(`SCROLL`),o()),n=r};return e.addEventListener(`scroll`,r),()=>e.removeEventListener(`scroll`,r)}},[i.viewport,a,c,o]),(0,R.jsx)(j,{present:n||s!==`hidden`,children:(0,R.jsx)(U,{"data-state":s===`hidden`?`hidden`:`visible`,...r,ref:t,onPointerEnter:A(e.onPointerEnter,()=>c(`POINTER_ENTER`)),onPointerLeave:A(e.onPointerLeave,()=>c(`POINTER_LEAVE`))})})}),qt=L.forwardRef((e,t)=>{let n=V(H,e.__scopeScrollArea),{forceMount:r,...i}=e,[a,o]=L.useState(!1),s=e.orientation===`horizontal`,c=J(()=>{if(n.viewport){let e=n.viewport.offsetWidth{let{orientation:n=`vertical`,...r}=e,i=V(H,e.__scopeScrollArea),a=L.useRef(null),o=L.useRef(0),[s,c]=L.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=rn(s.viewport,s.content),u={...r,sizes:s,onSizesChange:c,hasThumb:l>0&&l<1,onThumbChange:e=>a.current=e,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:e=>o.current=e};function d(e,t){return an(e,o.current,s,t)}return n===`horizontal`?(0,R.jsx)(Jt,{...u,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollLeft,t=on(e,s,i.dir);a.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,i.dir))}}):n===`vertical`?(0,R.jsx)(Yt,{...u,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollTop,t=on(e,s);a.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}}):null}),Jt=L.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=V(H,e.__scopeScrollArea),[o,s]=L.useState(),c=L.useRef(null),l=O(t,c,a.onScrollbarXChange);return L.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),(0,R.jsx)(Qt,{"data-orientation":`horizontal`,...i,ref:l,sizes:n,style:{bottom:0,left:a.dir===`rtl`?`var(--radix-scroll-area-corner-width)`:0,right:a.dir===`ltr`?`var(--radix-scroll-area-corner-width)`:0,"--radix-scroll-area-thumb-width":q(n)+`px`,...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),cn(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&o&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:K(o.paddingLeft),paddingEnd:K(o.paddingRight)}})}})}),Yt=L.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=V(H,e.__scopeScrollArea),[o,s]=L.useState(),c=L.useRef(null),l=O(t,c,a.onScrollbarYChange);return L.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),(0,R.jsx)(Qt,{"data-orientation":`vertical`,...i,ref:l,sizes:n,style:{top:0,right:a.dir===`ltr`?0:void 0,left:a.dir===`rtl`?0:void 0,bottom:`var(--radix-scroll-area-corner-height)`,"--radix-scroll-area-thumb-height":q(n)+`px`,...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),cn(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&o&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:K(o.paddingTop),paddingEnd:K(o.paddingBottom)}})}})}),[Xt,Zt]=Rt(H),Qt=L.forwardRef((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:a,onThumbPointerUp:o,onThumbPointerDown:s,onThumbPositionChange:c,onDragScroll:l,onWheelScroll:u,onResize:d,...f}=e,p=V(H,n),[m,h]=L.useState(null),g=O(t,e=>h(e)),_=L.useRef(null),v=L.useRef(``),ee=p.viewport,y=r.content-r.viewport,b=M(u),x=M(c),S=J(d,10);function C(e){_.current&&l({x:e.clientX-_.current.left,y:e.clientY-_.current.top})}return L.useEffect(()=>{let e=e=>{let t=e.target;m?.contains(t)&&b(e,y)};return document.addEventListener(`wheel`,e,{passive:!1}),()=>document.removeEventListener(`wheel`,e,{passive:!1})},[ee,m,y,b]),L.useEffect(x,[r,x]),Y(m,S),Y(p.content,S),(0,R.jsx)(Xt,{scope:n,scrollbar:m,hasThumb:i,onThumbChange:M(a),onThumbPointerUp:M(o),onThumbPositionChange:x,onThumbPointerDown:M(s),children:(0,R.jsx)(T.div,{...f,ref:g,style:{position:`absolute`,...f.style},onPointerDown:A(e.onPointerDown,e=>{e.button===0&&(e.target.setPointerCapture(e.pointerId),_.current=m.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect=`none`,p.viewport&&(p.viewport.style.scrollBehavior=`auto`),C(e))}),onPointerMove:A(e.onPointerMove,C),onPointerUp:A(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=v.current,p.viewport&&(p.viewport.style.scrollBehavior=``),_.current=null})})})}),W=`ScrollAreaThumb`,$t=L.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=Zt(W,e.__scopeScrollArea);return(0,R.jsx)(j,{present:n||i.hasThumb,children:(0,R.jsx)(en,{ref:t,...r})})}),en=L.forwardRef((e,t)=>{let{__scopeScrollArea:n,style:r,...i}=e,a=V(W,n),o=Zt(W,n),{onThumbPositionChange:s}=o,c=O(t,e=>o.onThumbChange(e)),l=L.useRef(void 0),u=J(()=>{l.current&&=(l.current(),void 0)},100);return L.useEffect(()=>{let e=a.viewport;if(e){let t=()=>{u(),l.current||(l.current=ln(e,s),s())};return s(),e.addEventListener(`scroll`,t),()=>e.removeEventListener(`scroll`,t)}},[a.viewport,u,s]),(0,R.jsx)(T.div,{"data-state":o.hasThumb?`visible`:`hidden`,...i,ref:c,style:{width:`var(--radix-scroll-area-thumb-width)`,height:`var(--radix-scroll-area-thumb-height)`,...r},onPointerDownCapture:A(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;o.onThumbPointerDown({x:n,y:r})}),onPointerUp:A(e.onPointerUp,o.onThumbPointerUp)})});$t.displayName=W;var G=`ScrollAreaCorner`,tn=L.forwardRef((e,t)=>{let n=V(G,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!==`scroll`&&r?(0,R.jsx)(nn,{...e,ref:t}):null});tn.displayName=G;var nn=L.forwardRef((e,t)=>{let{__scopeScrollArea:n,...r}=e,i=V(G,n),[a,o]=L.useState(0),[s,c]=L.useState(0),l=!!(a&&s);return Y(i.scrollbarX,()=>{let e=i.scrollbarX?.offsetHeight||0;i.onCornerHeightChange(e),c(e)}),Y(i.scrollbarY,()=>{let e=i.scrollbarY?.offsetWidth||0;i.onCornerWidthChange(e),o(e)}),l?(0,R.jsx)(T.div,{...r,ref:t,style:{width:a,height:s,position:`absolute`,right:i.dir===`ltr`?0:void 0,left:i.dir===`rtl`?0:void 0,bottom:0,...e.style}}):null});function K(e){return e?parseInt(e,10):0}function rn(e,t){let n=e/t;return isNaN(n)?0:n}function q(e){let t=rn(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function an(e,t,n,r=`ltr`){let i=q(n),a=i/2,o=t||a,s=i-o,c=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r===`ltr`?[0,u]:[u*-1,0];return sn([c,l],d)(e)}function on(e,t,n=`ltr`){let r=q(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=Je(e,n===`ltr`?[0,o]:[o*-1,0]);return sn([0,o],[0,s])(c)}function sn(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function cn(e,t){return e>0&&e{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)};function J(e,t){let n=M(e),r=L.useRef(0);return L.useEffect(()=>()=>window.clearTimeout(r.current),[]),L.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Y(e,t){let n=M(t);k(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var un=Vt,dn=Ut,fn=tn,pn=F(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),mn=F(`coins`,[[`path`,{d:`M13.744 17.736a6 6 0 1 1-7.48-7.48`,key:`bq4yh3`}],[`path`,{d:`M15 6h1v4`,key:`11y1tn`}],[`path`,{d:`m6.134 14.768.866-.5 2 3.464`,key:`17snzx`}],[`circle`,{cx:`16`,cy:`8`,r:`6`,key:`14bfc9`}]]),hn=F(`credit-card`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`5`,rx:`2`,key:`ynyp8z`}],[`line`,{x1:`2`,x2:`22`,y1:`10`,y2:`10`,key:`1b3vmo`}]]),gn=F(`git-branch`,[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]),_n=F(`key-round`,[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]),vn=F(`laptop`,[[`path`,{d:`M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z`,key:`1pdavp`}],[`path`,{d:`M20.054 15.987H3.946`,key:`14rxg9`}]]),yn=F(`layout-dashboard`,[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]),bn=F(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),xn=F(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),Sn=F(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),Cn=F(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),wn=F(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Tn=F(`shopping-cart`,[[`circle`,{cx:`8`,cy:`21`,r:`1`,key:`jimo8o`}],[`circle`,{cx:`19`,cy:`21`,r:`1`,key:`13723u`}],[`path`,{d:`M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12`,key:`9zh506`}]]),En=F(`waypoints`,[[`path`,{d:`m10.586 5.414-5.172 5.172`,key:`4mc350`}],[`path`,{d:`m18.586 13.414-5.172 5.172`,key:`8c96vv`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`circle`,{cx:`12`,cy:`20`,r:`2`,key:`144qzu`}],[`circle`,{cx:`12`,cy:`4`,r:`2`,key:`muu5ef`}],[`circle`,{cx:`20`,cy:`12`,r:`2`,key:`1xzzfp`}],[`circle`,{cx:`4`,cy:`12`,r:`2`,key:`1hvhnz`}]]);function Dn({dir:e,className:t,...n}){return(0,R.jsxs)(`svg`,{className:E(e===`rtl`&&`rotate-y-180`,t),"data-name":`icon-dir-${e}`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,R.jsx)(`title`,{children:`Directory Icon`}),(0,R.jsx)(`path`,{d:`M23.42.51h51.92c2.21 0 4 1.79 4 4v42.18c0 2.21-1.79 4-4 4H23.42s-.04-.02-.04-.04V.55s.02-.04.04-.04z`,opacity:.15}),(0,R.jsx)(`path`,{d:`M5.56 14.88L17.78 14.88`,fill:`none`,opacity:.72,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M5.56 22.09L16.08 22.09`,fill:`none`,opacity:.48,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M5.56 18.38L14.93 18.38`,fill:`none`,opacity:.55,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsxs)(`g`,{strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`circle`,{cx:7.51,cy:7.4,opacity:.8,r:2.54}),(0,R.jsx)(`path`,{d:`M12.06 6.14L17.78 6.14`,fill:`none`,opacity:.8,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M11.85 8.79L16.91 8.79`,fill:`none`,opacity:.6})]}),(0,R.jsx)(`path`,{d:`M29.41 7.4L34.67 7.4`,fill:`none`,opacity:.62,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`3px`}),(0,R.jsx)(`rect`,{height:2.73,opacity:.44,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:26.03,x:28.76,y:11.21}),(0,R.jsx)(`rect`,{height:13.48,opacity:.3,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:44.25,x:28.76,y:17.01}),(0,R.jsx)(`rect`,{height:4.67,opacity:.21,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:44.25,x:28.76,y:33.57}),(0,R.jsx)(`rect`,{height:4.67,opacity:.3,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:36.21,x:28.76,y:41.32})]})}function On(e){return(0,R.jsxs)(`svg`,{"data-name":`icon-layout-compact`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Compact Layout`}),(0,R.jsx)(`rect`,{height:40,rx:2,ry:2,strokeLinecap:`round`,strokeMiterlimit:10,width:4,x:5.84,y:5.2}),(0,R.jsxs)(`g`,{stroke:`#fff`,strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`path`,{d:`M7.26 11.56L8.37 11.56`,fill:`none`,opacity:.66,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M7.26 14.49L8.37 14.49`,fill:`none`,opacity:.51,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M7.26 17.39L8.37 17.39`,fill:`none`,opacity:.52,strokeWidth:`2px`}),(0,R.jsx)(`circle`,{cx:7.81,cy:7.25,fill:`#fff`,opacity:.8,r:1.16})]}),(0,R.jsx)(`path`,{d:`M15.81 14.49L22.89 14.49`,fill:`none`,opacity:.75,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`3px`}),(0,R.jsx)(`rect`,{height:2.73,opacity:.5,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:22.19,x:14.93,y:18.39}),(0,R.jsx)(`rect`,{height:2.73,opacity:.9,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:59.16,x:14.93,y:5.89}),(0,R.jsx)(`rect`,{height:19.95,opacity:.4,rx:2.11,ry:2.11,strokeLinecap:`round`,strokeMiterlimit:10,width:32.68,x:14.93,y:24.22}),(0,R.jsxs)(`g`,{strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`rect`,{height:3.42,opacity:.32,rx:.33,ry:.33,width:2.01,x:59.05,y:38.15}),(0,R.jsx)(`rect`,{height:6.58,opacity:.44,rx:.33,ry:.33,width:2.01,x:54.78,y:34.99}),(0,R.jsx)(`rect`,{height:8.7,opacity:.53,rx:.33,ry:.33,width:2.01,x:63.17,y:32.86}),(0,R.jsx)(`rect`,{height:12.4,opacity:.66,rx:.33,ry:.33,width:2.01,x:67.54,y:29.17})]}),(0,R.jsxs)(`g`,{opacity:.5,children:[(0,R.jsx)(`circle`,{cx:62.16,cy:18.63,r:7.5}),(0,R.jsx)(`path`,{d:`M62.16 11.63c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.14-7-7 3.14-7 7-7m0-1c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8z`})]}),(0,R.jsxs)(`g`,{opacity:.74,children:[(0,R.jsx)(`path`,{d:`M63.04 18.13l3.38-5.67c.93.64 1.7 1.48 2.26 2.47.56.98.89 2.08.96 3.21h-6.6z`}),(0,R.jsx)(`path`,{d:`M66.57 13.19a6.977 6.977 0 012.52 4.44h-5.17l2.65-4.44m-.31-1.43l-4.1 6.87h8c0-1.39-.36-2.75-1.04-3.95a8.007 8.007 0 00-2.86-2.92z`})]})]})}function kn(e){return(0,R.jsxs)(`svg`,{"data-name":`con-layout-default`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Default Layout`}),(0,R.jsx)(`path`,{d:`M39.22 15.99h-8.16c-.79 0-1.43-.67-1.43-1.5s.64-1.5 1.43-1.5h8.16c.79 0 1.43.67 1.43 1.5s-.64 1.5-1.43 1.5z`,opacity:.75}),(0,R.jsx)(`rect`,{height:2.73,opacity:.5,rx:1.36,ry:1.36,width:16.72,x:29.63,y:18.39}),(0,R.jsx)(`path`,{d:`M75.1 6.68v1.45c0 .63-.49 1.14-1.09 1.14H30.72c-.6 0-1.09-.51-1.09-1.14V6.68c0-.62.49-1.14 1.09-1.14h43.29c.6 0 1.09.52 1.09 1.14z`,opacity:.9}),(0,R.jsx)(`rect`,{height:19.95,opacity:.4,rx:2.11,ry:2.11,width:21.8,x:29.63,y:24.22}),(0,R.jsxs)(`g`,{strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`rect`,{height:3.42,opacity:.32,rx:.33,ry:.33,width:2.01,x:61.06,y:38.15}),(0,R.jsx)(`rect`,{height:6.58,opacity:.44,rx:.33,ry:.33,width:2.01,x:56.78,y:34.99}),(0,R.jsx)(`rect`,{height:8.7,opacity:.53,rx:.33,ry:.33,width:2.01,x:65.17,y:32.86}),(0,R.jsx)(`rect`,{height:12.4,opacity:.66,rx:.33,ry:.33,width:2.01,x:69.55,y:29.17})]}),(0,R.jsxs)(`g`,{opacity:.5,children:[(0,R.jsx)(`circle`,{cx:63.17,cy:18.63,r:7.5}),(0,R.jsx)(`path`,{d:`M63.17 11.63c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.14-7-7 3.14-7 7-7m0-1c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8z`})]}),(0,R.jsxs)(`g`,{opacity:.74,children:[(0,R.jsx)(`path`,{d:`M64.05 18.13l3.38-5.67c.93.64 1.7 1.48 2.26 2.47.56.98.89 2.08.96 3.21h-6.6z`}),(0,R.jsx)(`path`,{d:`M67.57 13.19a6.977 6.977 0 012.52 4.44h-5.17l2.65-4.44m-.31-1.43l-4.1 6.87h8c0-1.39-.36-2.75-1.04-3.95a8.007 8.007 0 00-2.86-2.92z`})]}),(0,R.jsxs)(`g`,{strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`rect`,{height:40,opacity:.8,rx:2,ry:2,width:19.14,x:5.84,y:5.02}),(0,R.jsxs)(`g`,{stroke:`#fff`,children:[(0,R.jsx)(`path`,{d:`M9.02 17.39L21.25 17.39`,fill:`none`,opacity:.72,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M9.02 24.6L19.54 24.6`,fill:`none`,opacity:.48,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M9.02 20.88L18.4 20.88`,fill:`none`,opacity:.55,strokeWidth:`2px`}),(0,R.jsx)(`circle`,{cx:10.98,cy:9.91,fill:`#fff`,opacity:.8,r:2.54}),(0,R.jsx)(`path`,{d:`M15.53 8.65L21.25 8.65`,fill:`none`,opacity:.8,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M15.32 11.3L20.38 11.3`,fill:`none`,opacity:.6})]})]})]})}function An(e){return(0,R.jsxs)(`svg`,{"data-name":`icon-layout-full`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Full Layout`}),(0,R.jsx)(`path`,{d:`M6.85 14.49L15.02 14.49`,fill:`none`,opacity:.75,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`3px`}),(0,R.jsx)(`rect`,{height:2.73,opacity:.5,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:25.6,x:5.84,y:18.39}),(0,R.jsx)(`rect`,{height:2.73,opacity:.9,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:68.26,x:5.84,y:5.89}),(0,R.jsx)(`rect`,{height:19.95,opacity:.4,rx:2.11,ry:2.11,strokeLinecap:`round`,strokeMiterlimit:10,width:37.71,x:5.84,y:24.22}),(0,R.jsxs)(`g`,{strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`rect`,{height:3.42,opacity:.32,rx:.33,ry:.33,width:2.01,x:59.05,y:38.15}),(0,R.jsx)(`rect`,{height:6.58,opacity:.44,rx:.33,ry:.33,width:2.01,x:54.78,y:34.99}),(0,R.jsx)(`rect`,{height:8.7,opacity:.53,rx:.33,ry:.33,width:2.01,x:63.17,y:32.86}),(0,R.jsx)(`rect`,{height:12.4,opacity:.66,rx:.33,ry:.33,width:2.01,x:67.54,y:29.17})]}),(0,R.jsxs)(`g`,{opacity:.5,children:[(0,R.jsx)(`circle`,{cx:62.16,cy:18.63,r:7.5}),(0,R.jsx)(`path`,{d:`M62.16 11.63c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.14-7-7 3.14-7 7-7m0-1c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8z`})]}),(0,R.jsxs)(`g`,{opacity:.74,children:[(0,R.jsx)(`path`,{d:`M63.04 18.13l3.38-5.67c.93.64 1.7 1.48 2.26 2.47.56.98.89 2.08.96 3.21h-6.6z`}),(0,R.jsx)(`path`,{d:`M66.57 13.19a6.977 6.977 0 012.52 4.44h-5.17l2.65-4.44m-.31-1.43l-4.1 6.87h8c0-1.39-.36-2.75-1.04-3.95a8.007 8.007 0 00-2.86-2.92z`})]})]})}function jn(e){return(0,R.jsxs)(`svg`,{"data-name":`icon-sidebar-floating`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Floating Sidebar`}),(0,R.jsx)(`rect`,{height:40,opacity:.8,rx:2,ry:2,strokeLinecap:`round`,strokeMiterlimit:10,width:19.74,x:5.89,y:5.15}),(0,R.jsxs)(`g`,{stroke:`#fff`,strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`path`,{d:`M9.81 18.36L22.04 18.36`,fill:`none`,opacity:.72,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M9.81 25.57L20.33 25.57`,fill:`none`,opacity:.48,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M9.81 21.85L19.18 21.85`,fill:`none`,opacity:.55,strokeWidth:`2px`}),(0,R.jsx)(`circle`,{cx:11.76,cy:10.88,fill:`#fff`,opacity:.8,r:2.54}),(0,R.jsx)(`path`,{d:`M16.31 9.62L22.04 9.62`,fill:`none`,opacity:.8,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M16.1 12.27L21.16 12.27`,fill:`none`,opacity:.6})]}),(0,R.jsx)(`path`,{d:`M30.59 9.62L35.85 9.62`,fill:`none`,opacity:.62,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`3px`}),(0,R.jsx)(`rect`,{height:2.73,opacity:.44,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:26.03,x:29.94,y:13.42}),(0,R.jsx)(`rect`,{height:25.87,opacity:.3,rx:2,ry:2,strokeLinecap:`round`,strokeMiterlimit:10,width:43.11,x:29.94,y:19.28})]})}function Mn(e){return(0,R.jsxs)(`svg`,{"data-name":`icon-sidebar-inset`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Inset Sidebar`}),(0,R.jsx)(`rect`,{height:40,opacity:.2,rx:2,ry:2,strokeLinecap:`round`,strokeMiterlimit:10,width:50.22,x:23.39,y:5.57}),(0,R.jsx)(`path`,{d:`M5.08 17.05L17.31 17.05`,fill:`none`,opacity:.72,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M5.08 24.25L15.6 24.25`,fill:`none`,opacity:.48,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M5.08 20.54L14.46 20.54`,fill:`none`,opacity:.55,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsxs)(`g`,{strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`circle`,{cx:7.04,cy:9.57,opacity:.8,r:2.54}),(0,R.jsx)(`path`,{d:`M11.59 8.3L17.31 8.3`,fill:`none`,opacity:.8,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M11.38 10.95L16.44 10.95`,fill:`none`,opacity:.6})]})]})}function Nn(e){return(0,R.jsxs)(`svg`,{"data-name":`icon-sidebar-sidebar`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Sidebar`}),(0,R.jsx)(`path`,{d:`M23.42.51h51.99c2.21 0 4 1.79 4 4v42.18c0 2.21-1.79 4-4 4H23.42s-.04-.02-.04-.04V.55s.02-.04.04-.04z`,opacity:.2,strokeLinecap:`round`,strokeMiterlimit:10}),(0,R.jsx)(`path`,{d:`M5.56 14.88L17.78 14.88`,fill:`none`,opacity:.72,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M5.56 22.09L16.08 22.09`,fill:`none`,opacity:.48,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M5.56 18.38L14.93 18.38`,fill:`none`,opacity:.55,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsxs)(`g`,{strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`circle`,{cx:7.51,cy:7.4,opacity:.8,r:2.54}),(0,R.jsx)(`path`,{d:`M12.06 6.14L17.78 6.14`,fill:`none`,opacity:.8,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M11.85 8.79L16.91 8.79`,fill:`none`,opacity:.6})]})]})}function Pn(e){return(0,R.jsxs)(`svg`,{"aria-label":`Dark theme icon`,"data-name":`icon-theme-dark`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Dark Theme`}),(0,R.jsxs)(`g`,{fill:`#1d2b3f`,children:[(0,R.jsx)(`rect`,{height:50.14,rx:3.5,ry:3.5,width:78.83,x:.53,y:.5}),(0,R.jsx)(`path`,{d:`M75.86 1c1.65 0 3 1.35 3 3v43.14c0 1.65-1.35 3-3 3H4.03c-1.65 0-3-1.35-3-3V4c0-1.65 1.35-3 3-3h71.83m0-1H4.03c-2.21 0-4 1.79-4 4v43.14c0 2.21 1.79 4 4 4h71.83c2.21 0 4-1.79 4-4V4c0-2.21-1.79-4-4-4z`})]}),(0,R.jsx)(`path`,{d:`M22.88 0h52.97c2.21 0 4 1.79 4 4v43.14c0 2.21-1.79 4-4 4H22.88V0z`,fill:`#0d1628`}),(0,R.jsx)(`circle`,{cx:6.7,cy:7.04,fill:`#426187`,r:3.54}),(0,R.jsx)(`path`,{d:`M18.12 6.39h-5.87c-.6 0-1.09-.45-1.09-1s.49-1 1.09-1h5.87c.6 0 1.09.45 1.09 1s-.49 1-1.09 1zM16.55 9.77h-4.24c-.55 0-1-.45-1-1s.45-1 1-1h4.24c.55 0 1 .45 1 1s-.45 1-1 1zM18.32 17.37H4.59c-.69 0-1.25-.47-1.25-1.05s.56-1.05 1.25-1.05h13.73c.69 0 1.25.47 1.25 1.05s-.56 1.05-1.25 1.05zM15.34 21.26h-11c-.55 0-1-.41-1-.91s.45-.91 1-.91h11c.55 0 1 .41 1 .91s-.45.91-1 .91zM16.46 25.57H4.43c-.6 0-1.09-.44-1.09-.98s.49-.98 1.09-.98h12.03c.6 0 1.09.44 1.09.98s-.49.98-1.09.98z`,fill:`#426187`}),(0,R.jsxs)(`g`,{fill:`#2a62bc`,children:[(0,R.jsx)(`rect`,{height:3.42,opacity:.32,rx:.33,ry:.33,width:2.75,x:33.36,y:19.73}),(0,R.jsx)(`rect`,{height:6.58,opacity:.44,rx:.33,ry:.33,width:2.75,x:29.64,y:16.57}),(0,R.jsx)(`rect`,{height:8.7,opacity:.53,rx:.33,ry:.33,width:2.75,x:37.16,y:14.44}),(0,R.jsx)(`rect`,{height:12.4,opacity:.53,rx:.33,ry:.33,width:2.75,x:41.19,y:10.75})]}),(0,R.jsx)(`circle`,{cx:62.74,cy:16.32,fill:`#2f5491`,opacity:.5,r:8}),(0,R.jsx)(`path`,{d:`M62.74 16.32l4.1-6.87c1.19.71 2.18 1.72 2.86 2.92s1.04 2.57 1.04 3.95h-8z`,fill:`#2f5491`,opacity:.74}),(0,R.jsx)(`rect`,{fill:`#17273f`,height:18.62,rx:1.69,ry:1.69,width:41.62,x:29.64,y:27.75})]})}function Fn(e){return(0,R.jsxs)(`svg`,{"aria-label":`Light theme icon`,"data-name":`icon-theme-light`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Light Theme`}),(0,R.jsxs)(`g`,{fill:`#d9d9d9`,children:[(0,R.jsx)(`rect`,{height:50.14,rx:3.5,ry:3.5,width:78.83,x:.53,y:.5}),(0,R.jsx)(`path`,{d:`M75.86 1c1.65 0 3 1.35 3 3v43.14c0 1.65-1.35 3-3 3H4.03c-1.65 0-3-1.35-3-3V4c0-1.65 1.35-3 3-3h71.83m0-1H4.03c-2.21 0-4 1.79-4 4v43.14c0 2.21 1.79 4 4 4h71.83c2.21 0 4-1.79 4-4V4c0-2.21-1.79-4-4-4z`})]}),(0,R.jsx)(`path`,{d:`M22.88 0h52.97c2.21 0 4 1.79 4 4v43.14c0 2.21-1.79 4-4 4H22.88V0z`,fill:`#ecedef`}),(0,R.jsx)(`circle`,{cx:6.7,cy:7.04,fill:`#fff`,r:3.54}),(0,R.jsx)(`path`,{d:`M18.12 6.39h-5.87c-.6 0-1.09-.45-1.09-1s.49-1 1.09-1h5.87c.6 0 1.09.45 1.09 1s-.49 1-1.09 1zM16.55 9.77h-4.24c-.55 0-1-.45-1-1s.45-1 1-1h4.24c.55 0 1 .45 1 1s-.45 1-1 1zM18.32 17.37H4.59c-.69 0-1.25-.47-1.25-1.05s.56-1.05 1.25-1.05h13.73c.69 0 1.25.47 1.25 1.05s-.56 1.05-1.25 1.05zM15.34 21.26h-11c-.55 0-1-.41-1-.91s.45-.91 1-.91h11c.55 0 1 .41 1 .91s-.45.91-1 .91zM16.46 25.57H4.43c-.6 0-1.09-.44-1.09-.98s.49-.98 1.09-.98h12.03c.6 0 1.09.44 1.09.98s-.49.98-1.09.98z`,fill:`#fff`}),(0,R.jsxs)(`g`,{fill:`#c0c4c4`,children:[(0,R.jsx)(`rect`,{height:3.42,opacity:.32,rx:.33,ry:.33,width:2.75,x:33.36,y:19.73}),(0,R.jsx)(`rect`,{height:6.58,opacity:.44,rx:.33,ry:.33,width:2.75,x:29.64,y:16.57}),(0,R.jsx)(`rect`,{height:8.7,opacity:.53,rx:.33,ry:.33,width:2.75,x:37.16,y:14.44}),(0,R.jsx)(`rect`,{height:12.4,opacity:.53,rx:.33,ry:.33,width:2.75,x:41.19,y:10.75})]}),(0,R.jsx)(`circle`,{cx:62.74,cy:16.32,fill:`#fff`,r:8}),(0,R.jsxs)(`g`,{fill:`#d9d9d9`,children:[(0,R.jsx)(`path`,{d:`M63.62 15.82L67 10.15c.93.64 1.7 1.48 2.26 2.47.56.98.89 2.08.96 3.21h-6.6z`}),(0,R.jsx)(`path`,{d:`M67.14 10.88a6.977 6.977 0 012.52 4.44h-5.17l2.65-4.44m-.31-1.43l-4.1 6.87h8c0-1.39-.36-2.75-1.04-3.95s-1.67-2.21-2.86-2.92z`})]}),(0,R.jsx)(`rect`,{fill:`#fff`,height:18.62,rx:1.69,ry:1.69,width:41.62,x:29.64,y:27.75})]})}function In({className:e,...t}){return(0,R.jsxs)(`svg`,{"aria-label":`System theme icon`,className:E(`overflow-hidden rounded-[6px]`,`fill-primary stroke-primary group-data-[state=unchecked]:fill-muted-foreground group-data-[state=unchecked]:stroke-muted-foreground`,e),"data-name":`icon-theme-system`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...t,children:[(0,R.jsx)(`title`,{children:`System Theme`}),(0,R.jsx)(`path`,{d:`M0 0.03H22.88V51.17H0z`,opacity:.2}),(0,R.jsx)(`circle`,{cx:6.7,cy:7.04,fill:`#fff`,opacity:.8,r:3.54,stroke:`#fff`,strokeLinecap:`round`,strokeMiterlimit:10}),(0,R.jsx)(`path`,{d:`M18.12 6.39h-5.87c-.6 0-1.09-.45-1.09-1s.49-1 1.09-1h5.87c.6 0 1.09.45 1.09 1s-.49 1-1.09 1zM16.55 9.77h-4.24c-.55 0-1-.45-1-1s.45-1 1-1h4.24c.55 0 1 .45 1 1s-.45 1-1 1z`,fill:`#fff`,opacity:.75,stroke:`none`}),(0,R.jsx)(`path`,{d:`M18.32 17.37H4.59c-.69 0-1.25-.47-1.25-1.05s.56-1.05 1.25-1.05h13.73c.69 0 1.25.47 1.25 1.05s-.56 1.05-1.25 1.05z`,fill:`#fff`,opacity:.72,stroke:`none`}),(0,R.jsx)(`path`,{d:`M15.34 21.26h-11c-.55 0-1-.41-1-.91s.45-.91 1-.91h11c.55 0 1 .41 1 .91s-.45.91-1 .91z`,fill:`#fff`,opacity:.55,stroke:`none`}),(0,R.jsx)(`path`,{d:`M16.46 25.57H4.43c-.6 0-1.09-.44-1.09-.98s.49-.98 1.09-.98h12.03c.6 0 1.09.44 1.09.98s-.49.98-1.09.98z`,fill:`#fff`,opacity:.67,stroke:`none`}),(0,R.jsx)(`rect`,{height:3.42,opacity:.31,rx:.33,ry:.33,stroke:`none`,width:2.75,x:33.36,y:19.73}),(0,R.jsx)(`rect`,{height:6.58,opacity:.4,rx:.33,ry:.33,stroke:`none`,width:2.75,x:29.64,y:16.57}),(0,R.jsx)(`rect`,{height:8.7,opacity:.26,rx:.33,ry:.33,stroke:`none`,width:2.75,x:37.16,y:14.44}),(0,R.jsx)(`rect`,{height:12.4,opacity:.37,rx:.33,ry:.33,stroke:`none`,width:2.75,x:41.19,y:10.75}),(0,R.jsxs)(`g`,{children:[(0,R.jsx)(`circle`,{cx:62.74,cy:16.32,opacity:.25,r:8}),(0,R.jsx)(`path`,{d:`M62.74 16.32l4.1-6.87c1.19.71 2.18 1.72 2.86 2.92s1.04 2.57 1.04 3.95h-8z`,opacity:.45})]}),(0,R.jsx)(`rect`,{height:18.62,opacity:.3,rx:1.69,ry:1.69,stroke:`none`,strokeLinecap:`round`,strokeMiterlimit:10,width:41.62,x:29.64,y:27.75})]})}function Ln({...e}){return(0,R.jsx)(Ue,{"data-slot":`sheet`,...e})}function Rn({...e}){return(0,R.jsx)(Be,{"data-slot":`sheet-trigger`,...e})}function zn({...e}){return(0,R.jsx)(ze,{"data-slot":`sheet-portal`,...e})}function Bn({className:e,...t}){return(0,R.jsx)(Ve,{className:E(`data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in`,e),"data-slot":`sheet-overlay`,...t})}function Vn({className:e,children:t,side:n=`right`,showCloseButton:r=!0,...i}){return(0,R.jsxs)(zn,{children:[(0,R.jsx)(Bn,{}),(0,R.jsxs)(He,{className:E(`fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=open]:animate-in data-[state=closed]:duration-300 data-[state=open]:duration-500`,n===`right`&&`data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm`,n===`left`&&`data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm`,n===`top`&&`data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b`,n===`bottom`&&`data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t`,e),"data-slot":`sheet-content`,...i,children:[t,r&&(0,R.jsxs)(Ke,{className:`absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary`,children:[(0,R.jsx)(_t,{className:`size-4`}),(0,R.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function Hn({className:e,...t}){return(0,R.jsx)(`div`,{className:E(`flex flex-col gap-1.5 p-4`,e),"data-slot":`sheet-header`,...t})}function Un({className:e,...t}){return(0,R.jsx)(`div`,{className:E(`mt-auto flex flex-col gap-2 p-4`,e),"data-slot":`sheet-footer`,...t})}function Wn({className:e,...t}){return(0,R.jsx)(Ge,{className:E(`font-semibold text-foreground`,e),"data-slot":`sheet-title`,...t})}function Gn({className:e,...t}){return(0,R.jsx)(We,{className:E(`text-muted-foreground text-sm`,e),"data-slot":`sheet-description`,...t})}var Kn=`layout_collapsible`,qn=`layout_variant`,Jn=3600*24*7,Yn=`sidebar`,Xn=`icon`,Zn=(0,L.createContext)(null);function Qn({children:e}){let[t,n]=(0,L.useState)(()=>tt(Kn)||Xn),[r,i]=(0,L.useState)(()=>tt(qn)||Yn),a=e=>{n(e),et(Kn,e,Jn)},o=e=>{i(e),et(qn,e,Jn)};return(0,R.jsx)(Zn,{value:{resetLayout:()=>{a(Xn),o(Yn)},defaultCollapsible:Xn,collapsible:t,setCollapsible:a,defaultVariant:Yn,variant:r,setVariant:o},children:e})}function X(){let e=(0,L.useContext)(Zn);if(!e)throw Error(`useLayout must be used within a LayoutProvider`);return e}var $n=768;function er(){let[e,t]=L.useState(void 0);return L.useEffect(()=>{let e=window.matchMedia(`(max-width: ${$n-1}px)`),n=()=>{t(window.innerWidth<$n)};return e.addEventListener(`change`,n),t(window.innerWidth<$n),()=>e.removeEventListener(`change`,n)},[]),!!e}var tr=`16rem`,nr=`18rem`,rr=`3rem`,ir=`b`,ar=L.createContext(null);function Z(){let e=L.useContext(ar);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function or({defaultOpen:e=!0,open:t,onOpenChange:r,className:a,style:o,children:s,...c}){let l=er(),[u,d]=L.useState(!1),[f,p]=L.useState(e),m=t??f,h=L.useCallback(e=>{let t=typeof e==`function`?e(m):e;r?r(t):p(t),document.cookie=`${i}=${t}; path=/; max-age=${n}`},[r,m]),g=L.useCallback(()=>l?d(e=>!e):h(e=>!e),[l,h]);L.useEffect(()=>{let e=e=>{e.key===ir&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),g())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[g]);let _=m?`expanded`:`collapsed`,v=L.useMemo(()=>({state:_,open:m,setOpen:h,isMobile:l,openMobile:u,setOpenMobile:d,toggleSidebar:g}),[_,m,h,l,u,g]);return(0,R.jsx)(ar.Provider,{value:v,children:(0,R.jsx)(Qe,{delayDuration:0,children:(0,R.jsx)(`div`,{className:E(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar`,a),"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":tr,"--sidebar-width-icon":rr,...o},...c,children:s})})})}function sr({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,...a}){let{isMobile:o,state:s,openMobile:c,setOpenMobile:l}=Z();return n===`none`?(0,R.jsx)(`div`,{className:E(`flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground`,r),"data-slot":`sidebar`,...a,children:i}):o?(0,R.jsx)(Ln,{onOpenChange:l,open:c,...a,children:(0,R.jsxs)(Vn,{className:`w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden`,"data-mobile":`true`,"data-sidebar":`sidebar`,"data-slot":`sidebar`,side:e,style:{"--sidebar-width":nr},children:[(0,R.jsxs)(Hn,{className:`sr-only`,children:[(0,R.jsx)(Wn,{children:`Sidebar`}),(0,R.jsx)(Gn,{children:`Displays the mobile sidebar.`})]}),(0,R.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:i})]})}):(0,R.jsxs)(`div`,{className:`group peer hidden text-sidebar-foreground md:block`,"data-collapsible":s===`collapsed`?n:``,"data-side":e,"data-slot":`sidebar`,"data-state":s,"data-variant":t,children:[(0,R.jsx)(`div`,{className:E(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,t===`floating`||t===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`),"data-slot":`sidebar-gap`}),(0,R.jsx)(`div`,{className:E(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,e===`left`?`left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,t===`floating`||t===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,r),"data-slot":`sidebar-container`,...a,children:(0,R.jsx)(`div`,{className:`flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm`,"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,children:i})})]})}function cr({className:e,onClick:t,...n}){let{toggleSidebar:r}=Z();return(0,R.jsxs)(D,{className:E(`size-7`,e),"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,onClick:e=>{t?.(e),r()},size:`icon`,variant:`ghost`,...n,children:[(0,R.jsx)(xn,{}),(0,R.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function lr({className:e,...t}){let{toggleSidebar:n}=Z();return(0,R.jsx)(`button`,{"aria-label":`Toggle Sidebar`,className:E(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex`,`in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`group-data-[collapsible=offcanvas]:translate-x-0 hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:after:left-full`,`[[data-side=left][data-collapsible=offcanvas]_&]:-right-2`,`[[data-side=right][data-collapsible=offcanvas]_&]:-left-2`,e),"data-sidebar":`rail`,"data-slot":`sidebar-rail`,onClick:n,tabIndex:-1,title:`Toggle Sidebar`,...t})}function ur({className:e,...t}){return(0,R.jsx)(`main`,{className:E(`relative flex w-full flex-1 flex-col bg-background`,`md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm`,e),"data-slot":`sidebar-inset`,...t})}function dr({className:e,...t}){return(0,R.jsx)(`div`,{className:E(`flex flex-col gap-2 p-2`,e),"data-sidebar":`header`,"data-slot":`sidebar-header`,...t})}function fr({className:e,...t}){return(0,R.jsx)(`div`,{className:E(`flex flex-col gap-2 p-2`,e),"data-sidebar":`footer`,"data-slot":`sidebar-footer`,...t})}function pr({className:e,...t}){return(0,R.jsx)(`div`,{className:E(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),"data-sidebar":`content`,"data-slot":`sidebar-content`,...t})}function mr({className:e,...t}){return(0,R.jsx)(`div`,{className:E(`relative flex w-full min-w-0 flex-col p-2`,e),"data-sidebar":`group`,"data-slot":`sidebar-group`,...t})}function hr({className:e,asChild:t=!1,...n}){return(0,R.jsx)(t?Fe:`div`,{className:E(`flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-sidebar-foreground/70 text-xs outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0`,e),"data-sidebar":`group-label`,"data-slot":`sidebar-group-label`,...n})}function gr({className:e,...t}){return(0,R.jsx)(`ul`,{className:E(`flex w-full min-w-0 flex-col gap-1`,e),"data-sidebar":`menu`,"data-slot":`sidebar-menu`,...t})}function _r({className:e,...t}){return(0,R.jsx)(`li`,{className:E(`group/menu-item relative`,e),"data-sidebar":`menu-item`,"data-slot":`sidebar-menu-item`,...t})}var vr=Ie(`peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function yr({asChild:e=!1,isActive:t=!1,variant:n=`default`,size:r=`default`,tooltip:i,className:a,...o}){let s=e?Fe:`button`,{isMobile:c,state:l}=Z(),u=(0,R.jsx)(s,{className:E(vr({variant:n,size:r}),a),"data-active":t,"data-sidebar":`menu-button`,"data-size":r,"data-slot":`sidebar-menu-button`,...o});return i?(typeof i==`string`&&(i={children:i}),(0,R.jsxs)($e,{children:[(0,R.jsx)(Xe,{asChild:!0,children:u}),(0,R.jsx)(Ze,{align:`center`,hidden:l!==`collapsed`||c,side:`right`,...i})]})):u}function br({className:e,...t}){return(0,R.jsx)(`ul`,{className:E(`mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-sidebar-border border-l px-2.5 py-0.5`,`group-data-[collapsible=icon]:hidden`,e),"data-sidebar":`menu-sub`,"data-slot":`sidebar-menu-sub`,...t})}function xr({className:e,...t}){return(0,R.jsx)(`li`,{className:E(`group/menu-sub-item relative`,e),"data-sidebar":`menu-sub-item`,"data-slot":`sidebar-menu-sub-item`,...t})}function Sr({asChild:e=!1,size:t=`md`,isActive:n=!1,className:r,...i}){return(0,R.jsx)(e?Fe:`a`,{className:E(`flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-hidden ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground`,`data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground`,t===`sm`&&`text-xs`,t===`md`&&`text-sm`,`group-data-[collapsible=icon]:hidden`,r),"data-active":n,"data-sidebar":`menu-sub-button`,"data-size":t,"data-slot":`sidebar-menu-sub-button`,...i})}function Cr(){return(0,R.jsxs)(Ln,{children:[(0,R.jsx)(Rn,{asChild:!0,children:(0,R.jsx)(D,{"aria-describedby":`config-drawer-description`,"aria-label":`Open theme settings`,className:`rounded-full`,size:`icon`,variant:`ghost`,children:(0,R.jsx)(wn,{"aria-hidden":`true`})})}),(0,R.jsx)(wr,{})]})}function wr(){let{setOpen:e}=Z(),{resetDir:t}=nt(),{resetFont:n}=at(),{resetTheme:r}=P(),{resetLayout:i}=X();return(0,R.jsxs)(Vn,{className:`flex flex-col`,children:[(0,R.jsxs)(Hn,{className:`pb-0 text-start`,children:[(0,R.jsx)(Wn,{children:C()}),(0,R.jsx)(Gn,{id:`config-drawer-description`,children:x()})]}),(0,R.jsxs)(`div`,{className:`space-y-6 overflow-y-auto px-4`,children:[(0,R.jsx)(Er,{}),(0,R.jsx)(Tr,{}),(0,R.jsx)(Dr,{}),(0,R.jsx)(Or,{}),(0,R.jsx)(kr,{})]}),(0,R.jsx)(Un,{className:`gap-2`,children:(0,R.jsx)(D,{"aria-label":`Reset all settings to default values`,onClick:()=>{e(!0),t(),n(),r(),i()},variant:`destructive`,children:_e()})})]})}function Q({title:e,showReset:t=!1,onReset:n,className:r}){return(0,R.jsxs)(`div`,{className:E(`mb-2 flex items-center gap-2 font-semibold text-muted-foreground text-sm`,r),children:[e,t&&n&&(0,R.jsx)(D,{className:`size-4 rounded-full`,onClick:n,size:`icon`,variant:`secondary`,children:(0,R.jsx)(Sn,{className:`size-3`})})]})}function $({item:e,isTheme:t=!1}){return(0,R.jsxs)(Ye,{"aria-describedby":`${e.value}-description`,"aria-label":`Select ${e.label.toLowerCase()}`,className:E(`group outline-none`,`transition duration-200 ease-in`),value:e.value,children:[(0,R.jsxs)(`div`,{"aria-hidden":`false`,"aria-label":`${e.label} option preview`,className:E(`relative rounded-[6px] ring-[1px] ring-border`,`group-data-[state=checked]:shadow-2xl group-data-[state=checked]:ring-primary`,`group-focus-visible:ring-2`),role:`img`,children:[(0,R.jsx)(rt,{"aria-hidden":`true`,className:E(`size-6 fill-primary stroke-white`,`group-data-[state=unchecked]:hidden`,`absolute top-0 right-0 translate-x-1/2 -translate-y-1/2`)}),(0,R.jsx)(e.icon,{"aria-hidden":`true`,className:E(!t&&`fill-primary stroke-primary group-data-[state=unchecked]:fill-muted-foreground group-data-[state=unchecked]:stroke-muted-foreground`)})]}),(0,R.jsx)(`div`,{"aria-live":`polite`,className:`mt-1 text-xs`,id:`${e.value}-description`,children:e.label})]})}function Tr(){let{defaultTheme:e,theme:t,setTheme:n}=P();return(0,R.jsxs)(`div`,{children:[(0,R.jsx)(Q,{onReset:()=>n(e),showReset:t!==e,title:o()}),(0,R.jsx)(N,{"aria-describedby":`theme-description`,"aria-label":`Select theme preference`,className:`grid w-full max-w-md grid-cols-3 gap-4`,onValueChange:n,value:t,children:[{value:`system`,label:_(),icon:In},{value:`light`,label:fe(),icon:Fn},{value:`dark`,label:le(),icon:Pn}].map(e=>(0,R.jsx)($,{isTheme:!0,item:e},e.value))}),(0,R.jsx)(`div`,{className:`sr-only`,id:`theme-description`,children:`Choose between system preference, light mode, or dark mode`})]})}function Er(){let{font:e,setFont:t,resetFont:n}=at();return(0,R.jsxs)(`div`,{children:[(0,R.jsx)(Q,{onReset:n,showReset:e!==ot[0],title:Te()}),(0,R.jsx)(`select`,{className:`w-full rounded-md border border-input bg-background px-3 py-2 text-sm`,onChange:e=>t(e.target.value),value:e,children:ot.map(e=>(0,R.jsx)(`option`,{value:e,children:e},e))})]})}function Dr(){let{defaultVariant:e,variant:t,setVariant:n}=X();return(0,R.jsxs)(`div`,{className:`max-md:hidden`,children:[(0,R.jsx)(Q,{onReset:()=>n(e),showReset:e!==t,title:ve()}),(0,R.jsx)(N,{"aria-describedby":`sidebar-description`,"aria-label":`Select sidebar style`,className:`grid w-full max-w-md grid-cols-3 gap-4`,onValueChange:n,value:t,children:[{value:`inset`,label:d(),icon:Mn},{value:`floating`,label:oe(),icon:jn},{value:`sidebar`,label:we(),icon:Nn}].map(e=>(0,R.jsx)($,{item:e},e.value))}),(0,R.jsx)(`div`,{className:`sr-only`,id:`sidebar-description`,children:`Choose between inset, floating, or standard sidebar layout`})]})}function Or(){let{open:e,setOpen:t}=Z(),{defaultCollapsible:n,collapsible:r,setCollapsible:i}=X(),a=e?`default`:r;return(0,R.jsxs)(`div`,{className:`max-md:hidden`,children:[(0,R.jsx)(Q,{onReset:()=>{t(!0),i(n)},showReset:a!==`default`,title:te()}),(0,R.jsx)(N,{"aria-describedby":`layout-description`,"aria-label":`Select layout style`,className:`grid w-full max-w-md grid-cols-3 gap-4`,onValueChange:e=>{if(e===`default`){t(!0);return}t(!1),i(e)},value:a,children:[{value:`default`,label:s(),icon:kn},{value:`icon`,label:ae(),icon:On},{value:`offcanvas`,label:De(),icon:An}].map(e=>(0,R.jsx)($,{item:e},e.value))}),(0,R.jsx)(`div`,{className:`sr-only`,id:`layout-description`,children:`Choose between default expanded, compact icon-only, or full layout mode`})]})}function kr(){let{defaultDir:e,dir:t,setDir:n}=nt();return(0,R.jsxs)(`div`,{children:[(0,R.jsx)(Q,{onReset:()=>n(e),showReset:e!==t,title:l()}),(0,R.jsx)(N,{"aria-describedby":`direction-description`,"aria-label":`Select site direction`,className:`grid w-full max-w-md grid-cols-3 gap-4`,onValueChange:n,value:t,children:[{value:`ltr`,label:he(),icon:e=>(0,R.jsx)(Dn,{dir:`ltr`,...e})},{value:`rtl`,label:Oe(),icon:e=>(0,R.jsx)(Dn,{dir:`rtl`,...e})}].map(e=>(0,R.jsx)($,{item:e},e.value))}),(0,R.jsx)(`div`,{className:`sr-only`,id:`direction-description`,children:`Choose between left-to-right or right-to-left site direction`})]})}function Ar({open:e,onOpenChange:n}){let i=Pe(),a=yt(),o=t.useMutation(`post`,`/admin/api/v1/auth/logout`);return(0,R.jsx)(qe,{className:`sm:max-w-sm`,confirmText:o.isPending?ge():xe(),desc:b(),destructive:!0,handleConfirm:async()=>{await o.mutateAsync({}),r();let e=a.href;i({to:`/sign-in`,search:{redirect:e},replace:!0})},onOpenChange:n,open:e,title:xe()})}function jr({className:e,size:t=`default`,...n}){return(0,R.jsx)(Pt,{className:E(`group/avatar relative flex size-8 shrink-0 select-none overflow-hidden rounded-full data-[size=lg]:size-10 data-[size=sm]:size-6`,e),"data-size":t,"data-slot":`avatar`,...n})}function Mr({className:e,...t}){return(0,R.jsx)(Ft,{className:E(`aspect-square size-full`,e),"data-slot":`avatar-image`,...t})}function Nr({className:e,...t}){return(0,R.jsx)(It,{className:E(`flex size-full items-center justify-center rounded-full bg-muted text-muted-foreground text-sm group-data-[size=sm]/avatar:text-xs`,e),"data-slot":`avatar-fallback`,...t})}function Pr(e=null){let[t,n]=(0,L.useState)(e);return[t,e=>n(t=>t===e?null:e)]}function Fr(e){if(!e)return`-`;let t=new Date(e.replace(` `,`T`));return Number.isNaN(t.getTime())?e:new Intl.DateTimeFormat(`zh-TW`,{year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:!1}).format(t)}function Ir(e){return e?e.includes(` `)?e.slice(11,16):e.slice(5):``}function Lr(e,t=2){return Number(e??0).toLocaleString(`en-US`,{maximumFractionDigits:t})}function Rr(e,t=2){return`$${Number(e??0).toLocaleString(`en-US`,{maximumFractionDigits:t})}`}function zr(){return{user:{name:`GMPay`,email:`admin@gmpay.local`,avatar:`/avatars/shadcn.jpg`},teams:[{name:`GMPay`,logo:vt,plan:ye()}],navGroups:[{title:pe(),items:[{title:me(),url:`/dashboard`,icon:yn},{title:ne(),icon:mn,items:[{title:u(),url:`/payment-setup`},{title:f(),url:`/payment-setup/integrations`}]}]},{title:se(),items:[{title:ee(),url:`/orders`,icon:Tn}]},{title:Ee(),items:[{title:c(),url:`/addresses`,icon:it}]},{title:y(),items:[{title:h(),url:`/chains`,icon:gn},{title:de(),url:`/rpc`,icon:En}]},{title:ce(),items:[{title:be(),url:`/keys`,icon:hn},{title:g(),icon:wn,items:[{title:v(),url:`/settings`},{title:p(),url:`/settings/telegram`},{title:w(),url:`/settings/system`},{title:re(),url:`/settings/pay`},{title:S(),url:`/settings/epay`},{title:Ce(),url:`/settings/okpay`}]},{title:ue(),icon:gt,items:[{title:ke(),url:`/account/password`}]}]}]}}function Br({className:e,children:t,...n}){return(0,R.jsxs)(un,{className:E(`relative`,e),"data-slot":`scroll-area`,...n,children:[(0,R.jsx)(dn,{className:`size-full rounded-[inherit] outline-none transition-[color,box-shadow] focus-visible:outline-1 focus-visible:ring-[3px] focus-visible:ring-ring/50`,"data-slot":`scroll-area-viewport`,children:t}),(0,R.jsx)(Vr,{}),(0,R.jsx)(fn,{})]})}function Vr({className:e,orientation:t=`vertical`,...n}){return(0,R.jsx)(Wt,{className:E(`flex touch-none select-none p-px transition-colors`,t===`vertical`&&`h-full w-2.5 border-l border-l-transparent`,t===`horizontal`&&`h-2.5 flex-col border-t border-t-transparent`,e),"data-slot":`scroll-area-scrollbar`,orientation:t,...n,children:(0,R.jsx)($t,{className:`relative flex-1 rounded-full bg-border`,"data-slot":`scroll-area-thumb`})})}function Hr(){let e=Pe(),{setTheme:t}=P(),{open:n,setOpen:r}=Gr(),i=zr(),a=L.useCallback(e=>{r(!1),e()},[r]);return(0,R.jsxs)(pt,{modal:!0,onOpenChange:r,open:n,children:[(0,R.jsx)(ut,{placeholder:m()}),(0,R.jsx)(ht,{children:(0,R.jsxs)(Br,{className:`h-72 pe-1`,type:`hover`,children:[(0,R.jsx)(mt,{children:ie()}),i.navGroups.map(t=>(0,R.jsx)(ft,{heading:t.title,children:t.items.map(t=>t.url?(0,R.jsxs)(I,{onSelect:()=>{a(()=>e({to:t.url}))},value:t.title,children:[(0,R.jsx)(`div`,{className:`flex size-4 items-center justify-center`,children:(0,R.jsx)(pn,{className:`size-2 text-muted-foreground/80`})}),t.title]},t.url):t.items?.map(n=>(0,R.jsxs)(I,{onSelect:()=>{a(()=>e({to:n.url}))},value:`${t.title}-${n.url}`,children:[(0,R.jsx)(`div`,{className:`flex size-4 items-center justify-center`,children:(0,R.jsx)(pn,{className:`size-2 text-muted-foreground/80`})}),t.title,` `,(0,R.jsx)(st,{}),` `,n.title]},`${t.title}-${n.url}`)))},t.title)),(0,R.jsx)(dt,{}),(0,R.jsxs)(ft,{heading:o(),children:[(0,R.jsxs)(I,{onSelect:()=>a(()=>t(`light`)),children:[(0,R.jsx)(lt,{}),` `,(0,R.jsx)(`span`,{children:fe()})]}),(0,R.jsxs)(I,{onSelect:()=>a(()=>t(`dark`)),children:[(0,R.jsx)(ct,{className:`scale-90`}),(0,R.jsx)(`span`,{children:le()})]}),(0,R.jsxs)(I,{onSelect:()=>a(()=>t(`system`)),children:[(0,R.jsx)(vn,{}),(0,R.jsx)(`span`,{children:_()})]})]})]})})]})}var Ur=(0,L.createContext)(null);function Wr({children:e}){let[t,n]=(0,L.useState)(!1);return(0,L.useEffect)(()=>{let e=e=>{e.key===`k`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),n(e=>!e))};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[]),(0,R.jsxs)(Ur,{value:{open:t,setOpen:n},children:[e,(0,R.jsx)(Hr,{})]})}var Gr=()=>{let e=(0,L.useContext)(Ur);if(!e)throw Error(`useSearch has to be used within SearchProvider`);return e};export{lr as A,gn as B,gr as C,Sr as D,br as E,Ln as F,mn as H,En as I,Cn as L,Z as M,Qn as N,xr as O,X as P,bn as R,ur as S,_r as T,hn as V,pr as _,Rr as a,hr as b,Ir as c,Nr as d,Mr as f,sr as g,wr as h,zr as i,cr as j,or as k,Pr as l,Cr as m,Gr as n,Fr as o,Ar as p,Br as r,Lr as s,Wr as t,jr as u,fr as v,yr as w,dr as x,mr as y,_n as z}; \ No newline at end of file diff --git a/src/www/assets/select-C9s05In_.js b/src/www/assets/select-CzebumOF.js similarity index 97% rename from src/www/assets/select-C9s05In_.js rename to src/www/assets/select-CzebumOF.js index 8fccc94..621c057 100644 --- a/src/www/assets/select-C9s05In_.js +++ b/src/www/assets/select-CzebumOF.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";import{r,t as i}from"./dist-BFnxq45V.js";import{i as a,s as o,u as s}from"./button-BgMnOYKD.js";import{n as c}from"./dist-Bmn8KNt7.js";import{a as l,n as u,r as d,t as f}from"./dist-CKFLmh1A.js";import{t as p}from"./dist-C6i4A_Js.js";import{n as m,t as h}from"./dist-B0ikDpJU.js";import{n as g}from"./dist-C97YBjnT.js";import{n as _,t as v}from"./dist-_ND6L-P3.js";import{i as y,n as b,r as x,t as S}from"./es2015-D8VLlhse.js";import{t as C}from"./dist-BixeH3nX.js";import{a as w,i as T,n as E,r as D,t as O}from"./dist-BSXD7MjW.js";import{t as k}from"./dist-CRowTfGU.js";import{t as A}from"./createLucideIcon-Br0Bd5k2.js";import{t as j}from"./check-CHp0nSkR.js";import{t as M}from"./chevron-down-BB5h1CsX.js";var N=e(t(),1),P=e(r(),1),F=n(),I=[` `,`Enter`,`ArrowUp`,`ArrowDown`],L=[` `,`Enter`],R=`Select`,[z,B,V]=p(R),[H,U]=l(R,[V,w]),W=w(),[G,K]=H(R),[ee,te]=H(R),q=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:p,required:h,form:_}=e,v=W(t),[y,b]=N.useState(null),[x,S]=N.useState(null),[C,w]=N.useState(!1),E=g(l),[D,O]=f({prop:r,defaultProp:i??!1,onChange:a,caller:R}),[k,A]=f({prop:o,defaultProp:s,onChange:c,caller:R}),j=N.useRef(null),M=y?_||!!y.closest(`form`):!0,[P,I]=N.useState(new Set),L=Array.from(P).map(e=>e.props.value).join(`;`);return(0,F.jsx)(T,{...v,children:(0,F.jsxs)(G,{required:h,scope:t,trigger:y,onTriggerChange:b,valueNode:x,onValueNodeChange:S,valueNodeHasChildren:C,onValueNodeHasChildrenChange:w,contentId:m(),value:k,onValueChange:A,open:D,onOpenChange:O,dir:E,triggerPointerDownPosRef:j,disabled:p,children:[(0,F.jsx)(z.Provider,{scope:t,children:(0,F.jsx)(ee,{scope:e.__scopeSelect,onNativeOptionAdd:N.useCallback(e=>{I(t=>new Set(t).add(e))},[]),onNativeOptionRemove:N.useCallback(e=>{I(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),M?(0,F.jsxs)(We,{"aria-hidden":!0,required:h,tabIndex:-1,name:u,autoComplete:d,value:k,onChange:e=>A(e.target.value),disabled:p,form:_,children:[k===void 0?(0,F.jsx)(`option`,{value:``}):null,Array.from(P)]},L):null]})})};q.displayName=R;var ne=`SelectTrigger`,re=N.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...a}=e,o=W(n),c=K(ne,n),l=c.disabled||r,u=s(t,c.onTriggerChange),f=B(n),p=N.useRef(`touch`),[m,h,g]=Ke(e=>{let t=f().filter(e=>!e.disabled),n=qe(t,e,t.find(e=>e.value===c.value));n!==void 0&&c.onValueChange(n.value)}),_=e=>{l||(c.onOpenChange(!0),g()),e&&(c.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,F.jsx)(O,{asChild:!0,...o,children:(0,F.jsx)(i.button,{type:`button`,role:`combobox`,"aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":`none`,dir:c.dir,"data-state":c.open?`open`:`closed`,disabled:l,"data-disabled":l?``:void 0,"data-placeholder":Ge(c.value)?``:void 0,...a,ref:u,onClick:d(a.onClick,e=>{e.currentTarget.focus(),p.current!==`mouse`&&_(e)}),onPointerDown:d(a.onPointerDown,e=>{p.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(_(e),e.preventDefault())}),onKeyDown:d(a.onKeyDown,e=>{let t=m.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&h(e.key),!(t&&e.key===` `)&&I.includes(e.key)&&(_(),e.preventDefault())})})})});re.displayName=ne;var J=`SelectValue`,ie=N.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:a,children:o,placeholder:c=``,...l}=e,d=K(J,n),{onValueNodeHasChildrenChange:f}=d,p=o!==void 0,m=s(t,d.onValueNodeChange);return u(()=>{f(p)},[f,p]),(0,F.jsx)(i.span,{...l,ref:m,style:{pointerEvents:`none`},children:Ge(d.value)?(0,F.jsx)(F.Fragment,{children:c}):o})});ie.displayName=J;var ae=`SelectIcon`,oe=N.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...a}=e;return(0,F.jsx)(i.span,{"aria-hidden":!0,...a,ref:t,children:r||`▼`})});oe.displayName=ae;var se=`SelectPortal`,ce=e=>(0,F.jsx)(v,{asChild:!0,...e});ce.displayName=se;var Y=`SelectContent`,le=N.forwardRef((e,t)=>{let n=K(Y,e.__scopeSelect),[r,i]=N.useState();if(u(()=>{i(new DocumentFragment)},[]),!n.open){let t=r;return t?P.createPortal((0,F.jsx)(ue,{scope:e.__scopeSelect,children:(0,F.jsx)(z.Slot,{scope:e.__scopeSelect,children:(0,F.jsx)(`div`,{children:e.children})})}),t):null}return(0,F.jsx)(pe,{...e,ref:t})});le.displayName=Y;var X=10,[ue,Z]=H(Y),de=`SelectContentImpl`,fe=o(`SelectContent.RemoveScroll`),pe=N.forwardRef((e,t)=>{let{__scopeSelect:n,position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:c,sideOffset:l,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:h,sticky:g,hideWhenDetached:v,avoidCollisions:C,...w}=e,T=K(Y,n),[E,D]=N.useState(null),[O,k]=N.useState(null),A=s(t,e=>D(e)),[j,M]=N.useState(null),[P,I]=N.useState(null),L=B(n),[R,z]=N.useState(!1),V=N.useRef(!1);N.useEffect(()=>{if(E)return S(E)},[E]),x();let H=N.useCallback(e=>{let[t,...n]=L().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&O&&(O.scrollTop=0),n===r&&O&&(O.scrollTop=O.scrollHeight),n?.focus(),document.activeElement!==i))return},[L,O]),U=N.useCallback(()=>H([j,E]),[H,j,E]);N.useEffect(()=>{R&&U()},[R,U]);let{onOpenChange:W,triggerPointerDownPosRef:G}=T;N.useEffect(()=>{if(E){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(G.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(G.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():E.contains(n.target)||W(!1),document.removeEventListener(`pointermove`,t),G.current=null};return G.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[E,W,G]),N.useEffect(()=>{let e=()=>W(!1);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[W]);let[ee,te]=Ke(e=>{let t=L().filter(e=>!e.disabled),n=qe(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current.focus())}),q=N.useCallback((e,t,n)=>{let r=!V.current&&!n;(T.value!==void 0&&T.value===t||r)&&(M(e),r&&(V.current=!0))},[T.value]),ne=N.useCallback(()=>E?.focus(),[E]),re=N.useCallback((e,t,n)=>{let r=!V.current&&!n;(T.value!==void 0&&T.value===t||r)&&I(e)},[T.value]),J=r===`popper`?_e:he,ie=J===_e?{side:c,sideOffset:l,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:h,sticky:g,hideWhenDetached:v,avoidCollisions:C}:{};return(0,F.jsx)(ue,{scope:n,content:E,viewport:O,onViewportChange:k,itemRefCallback:q,selectedItem:j,onItemLeave:ne,itemTextRefCallback:re,focusSelectedItem:U,selectedItemText:P,position:r,isPositioned:R,searchRef:ee,children:(0,F.jsx)(b,{as:fe,allowPinchZoom:!0,children:(0,F.jsx)(y,{asChild:!0,trapped:T.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:d(i,e=>{T.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,F.jsx)(_,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:(0,F.jsx)(J,{role:`listbox`,id:T.contentId,"data-state":T.open?`open`:`closed`,dir:T.dir,onContextMenu:e=>e.preventDefault(),...w,...ie,onPlaced:()=>z(!0),ref:A,style:{display:`flex`,flexDirection:`column`,outline:`none`,...w.style},onKeyDown:d(w.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&te(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=L().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>H(t)),e.preventDefault()}})})})})})})});pe.displayName=de;var me=`SelectItemAlignedPosition`,he=N.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...a}=e,o=K(Y,n),c=Z(Y,n),[l,d]=N.useState(null),[f,p]=N.useState(null),m=s(t,e=>p(e)),h=B(n),g=N.useRef(!1),_=N.useRef(!0),{viewport:v,selectedItem:y,selectedItemText:b,focusSelectedItem:x}=c,S=N.useCallback(()=>{if(o.trigger&&o.valueNode&&l&&f&&v&&y&&b){let e=o.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),n=o.valueNode.getBoundingClientRect(),i=b.getBoundingClientRect();if(o.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,s=e.width+o,c=Math.max(s,t.width),u=window.innerWidth-X,d=k(a,[X,Math.max(X,u-c)]);l.style.minWidth=s+`px`,l.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,s=e.width+o,c=Math.max(s,t.width),u=window.innerWidth-X,d=k(a,[X,Math.max(X,u-c)]);l.style.minWidth=s+`px`,l.style.right=d+`px`}let a=h(),s=window.innerHeight-X*2,c=v.scrollHeight,u=window.getComputedStyle(f),d=parseInt(u.borderTopWidth,10),p=parseInt(u.paddingTop,10),m=parseInt(u.borderBottomWidth,10),_=parseInt(u.paddingBottom,10),x=d+p+c+_+m,S=Math.min(y.offsetHeight*5,x),C=window.getComputedStyle(v),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-X,D=s-E,O=y.offsetHeight/2,A=y.offsetTop+O,j=d+p+A,M=x-j;if(j<=E){let e=a.length>0&&y===a[a.length-1].ref.current;l.style.bottom=`0px`;let t=f.clientHeight-v.offsetTop-v.offsetHeight,n=j+Math.max(D,O+(e?T:0)+t+m);l.style.height=n+`px`}else{let e=a.length>0&&y===a[0].ref.current;l.style.top=`0px`;let t=Math.max(E,d+v.offsetTop+(e?w:0)+O)+M;l.style.height=t+`px`,v.scrollTop=j-E+v.offsetTop}l.style.margin=`${X}px 0`,l.style.minHeight=S+`px`,l.style.maxHeight=s+`px`,r?.(),requestAnimationFrame(()=>g.current=!0)}},[h,o.trigger,o.valueNode,l,f,v,y,b,o.dir,r]);u(()=>S(),[S]);let[C,w]=N.useState();return u(()=>{f&&w(window.getComputedStyle(f).zIndex)},[f]),(0,F.jsx)(ve,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:g,onScrollButtonChange:N.useCallback(e=>{e&&_.current===!0&&(S(),x?.(),_.current=!1)},[S,x]),children:(0,F.jsx)(`div`,{ref:d,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:C},children:(0,F.jsx)(i.div,{...a,ref:m,style:{boxSizing:`border-box`,maxHeight:`100%`,...a.style}})})})});he.displayName=me;var ge=`SelectPopperPosition`,_e=N.forwardRef((e,t)=>{let{__scopeSelect:n,align:r=`start`,collisionPadding:i=X,...a}=e,o=W(n);return(0,F.jsx)(D,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})});_e.displayName=ge;var[ve,ye]=H(Y,{}),be=`SelectViewport`,xe=N.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...a}=e,o=Z(be,n),c=ye(be,n),l=s(t,o.onViewportChange),u=N.useRef(0);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,F.jsx)(z.Slot,{scope:n,children:(0,F.jsx)(i.div,{"data-radix-select-viewport":``,role:`presentation`,...a,ref:l,style:{position:`relative`,flex:1,overflow:`hidden auto`,...a.style},onScroll:d(a.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=c;if(r?.current&&n){let e=Math.abs(u.current-t.scrollTop);if(e>0){let r=window.innerHeight-X*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o0?s:0,n.style.justifyContent=`flex-end`)}}}u.current=t.scrollTop})})})]})});xe.displayName=be;var Se=`SelectGroup`,[Ce,we]=H(Se),Te=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,a=m();return(0,F.jsx)(Ce,{scope:n,id:a,children:(0,F.jsx)(i.div,{role:`group`,"aria-labelledby":a,...r,ref:t})})});Te.displayName=Se;var Ee=`SelectLabel`,De=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,a=we(Ee,n);return(0,F.jsx)(i.div,{id:a.id,...r,ref:t})});De.displayName=Ee;var Q=`SelectItem`,[Oe,ke]=H(Q),Ae=N.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:a=!1,textValue:o,...c}=e,l=K(Q,n),u=Z(Q,n),f=l.value===r,[p,h]=N.useState(o??``),[g,_]=N.useState(!1),v=s(t,e=>u.itemRefCallback?.(e,r,a)),y=m(),b=N.useRef(`touch`),x=()=>{a||(l.onValueChange(r),l.onOpenChange(!1))};if(r===``)throw Error(`A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.`);return(0,F.jsx)(Oe,{scope:n,value:r,disabled:a,textId:y,isSelected:f,onItemTextChange:N.useCallback(e=>{h(t=>t||(e?.textContent??``).trim())},[]),children:(0,F.jsx)(z.ItemSlot,{scope:n,value:r,disabled:a,textValue:p,children:(0,F.jsx)(i.div,{role:`option`,"aria-labelledby":y,"data-highlighted":g?``:void 0,"aria-selected":f&&g,"data-state":f?`checked`:`unchecked`,"aria-disabled":a||void 0,"data-disabled":a?``:void 0,tabIndex:a?void 0:-1,...c,ref:v,onFocus:d(c.onFocus,()=>_(!0)),onBlur:d(c.onBlur,()=>_(!1)),onClick:d(c.onClick,()=>{b.current!==`mouse`&&x()}),onPointerUp:d(c.onPointerUp,()=>{b.current===`mouse`&&x()}),onPointerDown:d(c.onPointerDown,e=>{b.current=e.pointerType}),onPointerMove:d(c.onPointerMove,e=>{b.current=e.pointerType,a?u.onItemLeave?.():b.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:d(c.onPointerLeave,e=>{e.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:d(c.onKeyDown,e=>{u.searchRef?.current!==``&&e.key===` `||(L.includes(e.key)&&x(),e.key===` `&&e.preventDefault())})})})})});Ae.displayName=Q;var $=`SelectItemText`,je=N.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:a,...o}=e,c=K($,n),l=Z($,n),d=ke($,n),f=te($,n),[p,m]=N.useState(null),h=s(t,e=>m(e),d.onItemTextChange,e=>l.itemTextRefCallback?.(e,d.value,d.disabled)),g=p?.textContent,_=N.useMemo(()=>(0,F.jsx)(`option`,{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:v,onNativeOptionRemove:y}=f;return u(()=>(v(_),()=>y(_)),[v,y,_]),(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(i.span,{id:d.textId,...o,ref:h}),d.isSelected&&c.valueNode&&!c.valueNodeHasChildren?P.createPortal(o.children,c.valueNode):null]})});je.displayName=$;var Me=`SelectItemIndicator`,Ne=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return ke(Me,n).isSelected?(0,F.jsx)(i.span,{"aria-hidden":!0,...r,ref:t}):null});Ne.displayName=Me;var Pe=`SelectScrollUpButton`,Fe=N.forwardRef((e,t)=>{let n=Z(Pe,e.__scopeSelect),r=ye(Pe,e.__scopeSelect),[i,a]=N.useState(!1),o=s(t,r.onScrollButtonChange);return u(()=>{if(n.viewport&&n.isPositioned){let e=function(){a(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,F.jsx)(Re,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null});Fe.displayName=Pe;var Ie=`SelectScrollDownButton`,Le=N.forwardRef((e,t)=>{let n=Z(Ie,e.__scopeSelect),r=ye(Ie,e.__scopeSelect),[i,a]=N.useState(!1),o=s(t,r.onScrollButtonChange);return u(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,F.jsx)(Re,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null});Le.displayName=Ie;var Re=N.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...a}=e,o=Z(`SelectScrollButton`,n),s=N.useRef(null),c=B(n),l=N.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return N.useEffect(()=>()=>l(),[l]),u(()=>{c().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[c]),(0,F.jsx)(i.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:d(a.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:d(a.onPointerMove,()=>{o.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:d(a.onPointerLeave,()=>{l()})})}),ze=`SelectSeparator`,Be=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,F.jsx)(i.div,{"aria-hidden":!0,...r,ref:t})});Be.displayName=ze;var Ve=`SelectArrow`,He=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=W(n),a=K(Ve,n),o=Z(Ve,n);return a.open&&o.position===`popper`?(0,F.jsx)(E,{...i,...r,ref:t}):null});He.displayName=Ve;var Ue=`SelectBubbleInput`,We=N.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{let a=N.useRef(null),o=s(r,a),l=C(t);return N.useEffect(()=>{let e=a.current;if(!e)return;let n=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(n,`value`).set;if(l!==t&&r){let n=new Event(`change`,{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[l,t]),(0,F.jsx)(i.select,{...n,style:{...c,...n.style},ref:o,defaultValue:t})});We.displayName=Ue;function Ge(e){return e===``||e===void 0}function Ke(e){let t=h(e),n=N.useRef(``),r=N.useRef(0),i=N.useCallback(e=>{let i=n.current+e;t(i),(function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))})(i)},[t]),a=N.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return N.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function qe(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Je(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function Je(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Ye=q,Xe=re,Ze=ie,Qe=oe,$e=ce,et=le,tt=xe,nt=Ae,rt=je,it=Ne,at=Fe,ot=Le,st=A(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]);function ct({...e}){return(0,F.jsx)(Ye,{"data-slot":`select`,...e})}function lt({...e}){return(0,F.jsx)(Ze,{"data-slot":`select-value`,...e})}function ut({className:e,size:t=`default`,children:n,...r}){return(0,F.jsxs)(Xe,{className:a(`flex w-fit items-center justify-between gap-2 whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-xs outline-none transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[size=default]:h-9 data-[size=sm]:h-8 data-[placeholder]:text-muted-foreground *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:hover:bg-input/50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0`,e),"data-size":t,"data-slot":`select-trigger`,...r,children:[n,(0,F.jsx)(Qe,{asChild:!0,children:(0,F.jsx)(M,{className:`size-4 opacity-50`})})]})}function dt({className:e,children:t,position:n=`item-aligned`,align:r=`center`,...i}){return(0,F.jsx)($e,{children:(0,F.jsxs)(et,{align:r,className:a(`data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in`,n===`popper`&&`data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1`,e),"data-slot":`select-content`,position:n,...i,children:[(0,F.jsx)(pt,{}),(0,F.jsx)(tt,{className:a(`p-1`,n===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1`),children:t}),(0,F.jsx)(mt,{})]})})}function ft({className:e,children:t,...n}){return(0,F.jsxs)(nt,{className:a(`relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),"data-slot":`select-item`,...n,children:[(0,F.jsx)(`span`,{className:`absolute right-2 flex size-3.5 items-center justify-center`,"data-slot":`select-item-indicator`,children:(0,F.jsx)(it,{children:(0,F.jsx)(j,{className:`size-4`})})}),(0,F.jsx)(rt,{children:t})]})}function pt({className:e,...t}){return(0,F.jsx)(at,{className:a(`flex cursor-default items-center justify-center py-1`,e),"data-slot":`select-scroll-up-button`,...t,children:(0,F.jsx)(st,{className:`size-4`})})}function mt({className:e,...t}){return(0,F.jsx)(ot,{className:a(`flex cursor-default items-center justify-center py-1`,e),"data-slot":`select-scroll-down-button`,...t,children:(0,F.jsx)(M,{className:`size-4`})})}export{lt as a,ut as i,dt as n,ft as r,ct as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{r,t as i}from"./dist-Cc8_LDAq.js";import{i as a,s as o,u as s}from"./button-C_NDYaz8.js";import{n as c}from"./dist-Dtn5c_cx.js";import{a as l,n as u,r as d,t as f}from"./dist-DPPquN_M.js";import{t as p}from"./dist-CHFjpVqk.js";import{n as m,t as h}from"./dist-D4X8zGEB.js";import{n as g}from"./dist-BNFQuJTu.js";import{n as _,t as v}from"./dist-rcWP-8Cu.js";import{i as y,n as b,r as x,t as S}from"./es2015-DT8UeWzs.js";import{t as C}from"./dist-BixeH3nX.js";import{a as w,i as T,n as E,r as D,t as O}from"./dist-CsIb2aLK.js";import{t as k}from"./dist-CRowTfGU.js";import{t as A}from"./createLucideIcon-Br0Bd5k2.js";import{t as j}from"./check-CHp0nSkR.js";import{t as M}from"./chevron-down-BB5h1CsX.js";var N=e(t(),1),P=e(r(),1),F=n(),I=[` `,`Enter`,`ArrowUp`,`ArrowDown`],L=[` `,`Enter`],R=`Select`,[z,B,V]=p(R),[H,U]=l(R,[V,w]),W=w(),[G,K]=H(R),[ee,te]=H(R),q=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:p,required:h,form:_}=e,v=W(t),[y,b]=N.useState(null),[x,S]=N.useState(null),[C,w]=N.useState(!1),E=g(l),[D,O]=f({prop:r,defaultProp:i??!1,onChange:a,caller:R}),[k,A]=f({prop:o,defaultProp:s,onChange:c,caller:R}),j=N.useRef(null),M=y?_||!!y.closest(`form`):!0,[P,I]=N.useState(new Set),L=Array.from(P).map(e=>e.props.value).join(`;`);return(0,F.jsx)(T,{...v,children:(0,F.jsxs)(G,{required:h,scope:t,trigger:y,onTriggerChange:b,valueNode:x,onValueNodeChange:S,valueNodeHasChildren:C,onValueNodeHasChildrenChange:w,contentId:m(),value:k,onValueChange:A,open:D,onOpenChange:O,dir:E,triggerPointerDownPosRef:j,disabled:p,children:[(0,F.jsx)(z.Provider,{scope:t,children:(0,F.jsx)(ee,{scope:e.__scopeSelect,onNativeOptionAdd:N.useCallback(e=>{I(t=>new Set(t).add(e))},[]),onNativeOptionRemove:N.useCallback(e=>{I(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),M?(0,F.jsxs)(We,{"aria-hidden":!0,required:h,tabIndex:-1,name:u,autoComplete:d,value:k,onChange:e=>A(e.target.value),disabled:p,form:_,children:[k===void 0?(0,F.jsx)(`option`,{value:``}):null,Array.from(P)]},L):null]})})};q.displayName=R;var ne=`SelectTrigger`,re=N.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...a}=e,o=W(n),c=K(ne,n),l=c.disabled||r,u=s(t,c.onTriggerChange),f=B(n),p=N.useRef(`touch`),[m,h,g]=Ke(e=>{let t=f().filter(e=>!e.disabled),n=qe(t,e,t.find(e=>e.value===c.value));n!==void 0&&c.onValueChange(n.value)}),_=e=>{l||(c.onOpenChange(!0),g()),e&&(c.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,F.jsx)(O,{asChild:!0,...o,children:(0,F.jsx)(i.button,{type:`button`,role:`combobox`,"aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":`none`,dir:c.dir,"data-state":c.open?`open`:`closed`,disabled:l,"data-disabled":l?``:void 0,"data-placeholder":Ge(c.value)?``:void 0,...a,ref:u,onClick:d(a.onClick,e=>{e.currentTarget.focus(),p.current!==`mouse`&&_(e)}),onPointerDown:d(a.onPointerDown,e=>{p.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(_(e),e.preventDefault())}),onKeyDown:d(a.onKeyDown,e=>{let t=m.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&h(e.key),!(t&&e.key===` `)&&I.includes(e.key)&&(_(),e.preventDefault())})})})});re.displayName=ne;var J=`SelectValue`,ie=N.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:a,children:o,placeholder:c=``,...l}=e,d=K(J,n),{onValueNodeHasChildrenChange:f}=d,p=o!==void 0,m=s(t,d.onValueNodeChange);return u(()=>{f(p)},[f,p]),(0,F.jsx)(i.span,{...l,ref:m,style:{pointerEvents:`none`},children:Ge(d.value)?(0,F.jsx)(F.Fragment,{children:c}):o})});ie.displayName=J;var ae=`SelectIcon`,oe=N.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...a}=e;return(0,F.jsx)(i.span,{"aria-hidden":!0,...a,ref:t,children:r||`▼`})});oe.displayName=ae;var se=`SelectPortal`,ce=e=>(0,F.jsx)(v,{asChild:!0,...e});ce.displayName=se;var Y=`SelectContent`,le=N.forwardRef((e,t)=>{let n=K(Y,e.__scopeSelect),[r,i]=N.useState();if(u(()=>{i(new DocumentFragment)},[]),!n.open){let t=r;return t?P.createPortal((0,F.jsx)(ue,{scope:e.__scopeSelect,children:(0,F.jsx)(z.Slot,{scope:e.__scopeSelect,children:(0,F.jsx)(`div`,{children:e.children})})}),t):null}return(0,F.jsx)(pe,{...e,ref:t})});le.displayName=Y;var X=10,[ue,Z]=H(Y),de=`SelectContentImpl`,fe=o(`SelectContent.RemoveScroll`),pe=N.forwardRef((e,t)=>{let{__scopeSelect:n,position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:c,sideOffset:l,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:h,sticky:g,hideWhenDetached:v,avoidCollisions:C,...w}=e,T=K(Y,n),[E,D]=N.useState(null),[O,k]=N.useState(null),A=s(t,e=>D(e)),[j,M]=N.useState(null),[P,I]=N.useState(null),L=B(n),[R,z]=N.useState(!1),V=N.useRef(!1);N.useEffect(()=>{if(E)return S(E)},[E]),x();let H=N.useCallback(e=>{let[t,...n]=L().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&O&&(O.scrollTop=0),n===r&&O&&(O.scrollTop=O.scrollHeight),n?.focus(),document.activeElement!==i))return},[L,O]),U=N.useCallback(()=>H([j,E]),[H,j,E]);N.useEffect(()=>{R&&U()},[R,U]);let{onOpenChange:W,triggerPointerDownPosRef:G}=T;N.useEffect(()=>{if(E){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(G.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(G.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():E.contains(n.target)||W(!1),document.removeEventListener(`pointermove`,t),G.current=null};return G.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[E,W,G]),N.useEffect(()=>{let e=()=>W(!1);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[W]);let[ee,te]=Ke(e=>{let t=L().filter(e=>!e.disabled),n=qe(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current.focus())}),q=N.useCallback((e,t,n)=>{let r=!V.current&&!n;(T.value!==void 0&&T.value===t||r)&&(M(e),r&&(V.current=!0))},[T.value]),ne=N.useCallback(()=>E?.focus(),[E]),re=N.useCallback((e,t,n)=>{let r=!V.current&&!n;(T.value!==void 0&&T.value===t||r)&&I(e)},[T.value]),J=r===`popper`?_e:he,ie=J===_e?{side:c,sideOffset:l,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:h,sticky:g,hideWhenDetached:v,avoidCollisions:C}:{};return(0,F.jsx)(ue,{scope:n,content:E,viewport:O,onViewportChange:k,itemRefCallback:q,selectedItem:j,onItemLeave:ne,itemTextRefCallback:re,focusSelectedItem:U,selectedItemText:P,position:r,isPositioned:R,searchRef:ee,children:(0,F.jsx)(b,{as:fe,allowPinchZoom:!0,children:(0,F.jsx)(y,{asChild:!0,trapped:T.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:d(i,e=>{T.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,F.jsx)(_,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:(0,F.jsx)(J,{role:`listbox`,id:T.contentId,"data-state":T.open?`open`:`closed`,dir:T.dir,onContextMenu:e=>e.preventDefault(),...w,...ie,onPlaced:()=>z(!0),ref:A,style:{display:`flex`,flexDirection:`column`,outline:`none`,...w.style},onKeyDown:d(w.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&te(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=L().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>H(t)),e.preventDefault()}})})})})})})});pe.displayName=de;var me=`SelectItemAlignedPosition`,he=N.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...a}=e,o=K(Y,n),c=Z(Y,n),[l,d]=N.useState(null),[f,p]=N.useState(null),m=s(t,e=>p(e)),h=B(n),g=N.useRef(!1),_=N.useRef(!0),{viewport:v,selectedItem:y,selectedItemText:b,focusSelectedItem:x}=c,S=N.useCallback(()=>{if(o.trigger&&o.valueNode&&l&&f&&v&&y&&b){let e=o.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),n=o.valueNode.getBoundingClientRect(),i=b.getBoundingClientRect();if(o.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,s=e.width+o,c=Math.max(s,t.width),u=window.innerWidth-X,d=k(a,[X,Math.max(X,u-c)]);l.style.minWidth=s+`px`,l.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,s=e.width+o,c=Math.max(s,t.width),u=window.innerWidth-X,d=k(a,[X,Math.max(X,u-c)]);l.style.minWidth=s+`px`,l.style.right=d+`px`}let a=h(),s=window.innerHeight-X*2,c=v.scrollHeight,u=window.getComputedStyle(f),d=parseInt(u.borderTopWidth,10),p=parseInt(u.paddingTop,10),m=parseInt(u.borderBottomWidth,10),_=parseInt(u.paddingBottom,10),x=d+p+c+_+m,S=Math.min(y.offsetHeight*5,x),C=window.getComputedStyle(v),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-X,D=s-E,O=y.offsetHeight/2,A=y.offsetTop+O,j=d+p+A,M=x-j;if(j<=E){let e=a.length>0&&y===a[a.length-1].ref.current;l.style.bottom=`0px`;let t=f.clientHeight-v.offsetTop-v.offsetHeight,n=j+Math.max(D,O+(e?T:0)+t+m);l.style.height=n+`px`}else{let e=a.length>0&&y===a[0].ref.current;l.style.top=`0px`;let t=Math.max(E,d+v.offsetTop+(e?w:0)+O)+M;l.style.height=t+`px`,v.scrollTop=j-E+v.offsetTop}l.style.margin=`${X}px 0`,l.style.minHeight=S+`px`,l.style.maxHeight=s+`px`,r?.(),requestAnimationFrame(()=>g.current=!0)}},[h,o.trigger,o.valueNode,l,f,v,y,b,o.dir,r]);u(()=>S(),[S]);let[C,w]=N.useState();return u(()=>{f&&w(window.getComputedStyle(f).zIndex)},[f]),(0,F.jsx)(ve,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:g,onScrollButtonChange:N.useCallback(e=>{e&&_.current===!0&&(S(),x?.(),_.current=!1)},[S,x]),children:(0,F.jsx)(`div`,{ref:d,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:C},children:(0,F.jsx)(i.div,{...a,ref:m,style:{boxSizing:`border-box`,maxHeight:`100%`,...a.style}})})})});he.displayName=me;var ge=`SelectPopperPosition`,_e=N.forwardRef((e,t)=>{let{__scopeSelect:n,align:r=`start`,collisionPadding:i=X,...a}=e,o=W(n);return(0,F.jsx)(D,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})});_e.displayName=ge;var[ve,ye]=H(Y,{}),be=`SelectViewport`,xe=N.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...a}=e,o=Z(be,n),c=ye(be,n),l=s(t,o.onViewportChange),u=N.useRef(0);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,F.jsx)(z.Slot,{scope:n,children:(0,F.jsx)(i.div,{"data-radix-select-viewport":``,role:`presentation`,...a,ref:l,style:{position:`relative`,flex:1,overflow:`hidden auto`,...a.style},onScroll:d(a.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=c;if(r?.current&&n){let e=Math.abs(u.current-t.scrollTop);if(e>0){let r=window.innerHeight-X*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o0?s:0,n.style.justifyContent=`flex-end`)}}}u.current=t.scrollTop})})})]})});xe.displayName=be;var Se=`SelectGroup`,[Ce,we]=H(Se),Te=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,a=m();return(0,F.jsx)(Ce,{scope:n,id:a,children:(0,F.jsx)(i.div,{role:`group`,"aria-labelledby":a,...r,ref:t})})});Te.displayName=Se;var Ee=`SelectLabel`,De=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,a=we(Ee,n);return(0,F.jsx)(i.div,{id:a.id,...r,ref:t})});De.displayName=Ee;var Q=`SelectItem`,[Oe,ke]=H(Q),Ae=N.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:a=!1,textValue:o,...c}=e,l=K(Q,n),u=Z(Q,n),f=l.value===r,[p,h]=N.useState(o??``),[g,_]=N.useState(!1),v=s(t,e=>u.itemRefCallback?.(e,r,a)),y=m(),b=N.useRef(`touch`),x=()=>{a||(l.onValueChange(r),l.onOpenChange(!1))};if(r===``)throw Error(`A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.`);return(0,F.jsx)(Oe,{scope:n,value:r,disabled:a,textId:y,isSelected:f,onItemTextChange:N.useCallback(e=>{h(t=>t||(e?.textContent??``).trim())},[]),children:(0,F.jsx)(z.ItemSlot,{scope:n,value:r,disabled:a,textValue:p,children:(0,F.jsx)(i.div,{role:`option`,"aria-labelledby":y,"data-highlighted":g?``:void 0,"aria-selected":f&&g,"data-state":f?`checked`:`unchecked`,"aria-disabled":a||void 0,"data-disabled":a?``:void 0,tabIndex:a?void 0:-1,...c,ref:v,onFocus:d(c.onFocus,()=>_(!0)),onBlur:d(c.onBlur,()=>_(!1)),onClick:d(c.onClick,()=>{b.current!==`mouse`&&x()}),onPointerUp:d(c.onPointerUp,()=>{b.current===`mouse`&&x()}),onPointerDown:d(c.onPointerDown,e=>{b.current=e.pointerType}),onPointerMove:d(c.onPointerMove,e=>{b.current=e.pointerType,a?u.onItemLeave?.():b.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:d(c.onPointerLeave,e=>{e.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:d(c.onKeyDown,e=>{u.searchRef?.current!==``&&e.key===` `||(L.includes(e.key)&&x(),e.key===` `&&e.preventDefault())})})})})});Ae.displayName=Q;var $=`SelectItemText`,je=N.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:a,...o}=e,c=K($,n),l=Z($,n),d=ke($,n),f=te($,n),[p,m]=N.useState(null),h=s(t,e=>m(e),d.onItemTextChange,e=>l.itemTextRefCallback?.(e,d.value,d.disabled)),g=p?.textContent,_=N.useMemo(()=>(0,F.jsx)(`option`,{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:v,onNativeOptionRemove:y}=f;return u(()=>(v(_),()=>y(_)),[v,y,_]),(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(i.span,{id:d.textId,...o,ref:h}),d.isSelected&&c.valueNode&&!c.valueNodeHasChildren?P.createPortal(o.children,c.valueNode):null]})});je.displayName=$;var Me=`SelectItemIndicator`,Ne=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return ke(Me,n).isSelected?(0,F.jsx)(i.span,{"aria-hidden":!0,...r,ref:t}):null});Ne.displayName=Me;var Pe=`SelectScrollUpButton`,Fe=N.forwardRef((e,t)=>{let n=Z(Pe,e.__scopeSelect),r=ye(Pe,e.__scopeSelect),[i,a]=N.useState(!1),o=s(t,r.onScrollButtonChange);return u(()=>{if(n.viewport&&n.isPositioned){let e=function(){a(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,F.jsx)(Re,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null});Fe.displayName=Pe;var Ie=`SelectScrollDownButton`,Le=N.forwardRef((e,t)=>{let n=Z(Ie,e.__scopeSelect),r=ye(Ie,e.__scopeSelect),[i,a]=N.useState(!1),o=s(t,r.onScrollButtonChange);return u(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,F.jsx)(Re,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null});Le.displayName=Ie;var Re=N.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...a}=e,o=Z(`SelectScrollButton`,n),s=N.useRef(null),c=B(n),l=N.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return N.useEffect(()=>()=>l(),[l]),u(()=>{c().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[c]),(0,F.jsx)(i.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:d(a.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:d(a.onPointerMove,()=>{o.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:d(a.onPointerLeave,()=>{l()})})}),ze=`SelectSeparator`,Be=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,F.jsx)(i.div,{"aria-hidden":!0,...r,ref:t})});Be.displayName=ze;var Ve=`SelectArrow`,He=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=W(n),a=K(Ve,n),o=Z(Ve,n);return a.open&&o.position===`popper`?(0,F.jsx)(E,{...i,...r,ref:t}):null});He.displayName=Ve;var Ue=`SelectBubbleInput`,We=N.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{let a=N.useRef(null),o=s(r,a),l=C(t);return N.useEffect(()=>{let e=a.current;if(!e)return;let n=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(n,`value`).set;if(l!==t&&r){let n=new Event(`change`,{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[l,t]),(0,F.jsx)(i.select,{...n,style:{...c,...n.style},ref:o,defaultValue:t})});We.displayName=Ue;function Ge(e){return e===``||e===void 0}function Ke(e){let t=h(e),n=N.useRef(``),r=N.useRef(0),i=N.useCallback(e=>{let i=n.current+e;t(i),(function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))})(i)},[t]),a=N.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return N.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function qe(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Je(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function Je(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Ye=q,Xe=re,Ze=ie,Qe=oe,$e=ce,et=le,tt=xe,nt=Ae,rt=je,it=Ne,at=Fe,ot=Le,st=A(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]);function ct({...e}){return(0,F.jsx)(Ye,{"data-slot":`select`,...e})}function lt({...e}){return(0,F.jsx)(Ze,{"data-slot":`select-value`,...e})}function ut({className:e,size:t=`default`,children:n,...r}){return(0,F.jsxs)(Xe,{className:a(`flex w-fit items-center justify-between gap-2 whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-xs outline-none transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[size=default]:h-9 data-[size=sm]:h-8 data-[placeholder]:text-muted-foreground *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:hover:bg-input/50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0`,e),"data-size":t,"data-slot":`select-trigger`,...r,children:[n,(0,F.jsx)(Qe,{asChild:!0,children:(0,F.jsx)(M,{className:`size-4 opacity-50`})})]})}function dt({className:e,children:t,position:n=`item-aligned`,align:r=`center`,...i}){return(0,F.jsx)($e,{children:(0,F.jsxs)(et,{align:r,className:a(`data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in`,n===`popper`&&`data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1`,e),"data-slot":`select-content`,position:n,...i,children:[(0,F.jsx)(pt,{}),(0,F.jsx)(tt,{className:a(`p-1`,n===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1`),children:t}),(0,F.jsx)(mt,{})]})})}function ft({className:e,children:t,...n}){return(0,F.jsxs)(nt,{className:a(`relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),"data-slot":`select-item`,...n,children:[(0,F.jsx)(`span`,{className:`absolute right-2 flex size-3.5 items-center justify-center`,"data-slot":`select-item-indicator`,children:(0,F.jsx)(it,{children:(0,F.jsx)(j,{className:`size-4`})})}),(0,F.jsx)(rt,{children:t})]})}function pt({className:e,...t}){return(0,F.jsx)(at,{className:a(`flex cursor-default items-center justify-center py-1`,e),"data-slot":`select-scroll-up-button`,...t,children:(0,F.jsx)(st,{className:`size-4`})})}function mt({className:e,...t}){return(0,F.jsx)(ot,{className:a(`flex cursor-default items-center justify-center py-1`,e),"data-slot":`select-scroll-down-button`,...t,children:(0,F.jsx)(M,{className:`size-4`})})}export{lt as a,ut as i,dt as n,ft as r,ct as t}; \ No newline at end of file diff --git a/src/www/assets/separator-DbmFQXe4.js b/src/www/assets/separator-CsUemQNs.js similarity index 85% rename from src/www/assets/separator-DbmFQXe4.js rename to src/www/assets/separator-CsUemQNs.js index 6ab6f50..933066b 100644 --- a/src/www/assets/separator-DbmFQXe4.js +++ b/src/www/assets/separator-CsUemQNs.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";import{t as r}from"./dist-BFnxq45V.js";import{i}from"./button-BgMnOYKD.js";var a=e(t(),1),o=n(),s=`Separator`,c=`horizontal`,l=[`horizontal`,`vertical`],u=a.forwardRef((e,t)=>{let{decorative:n,orientation:i=c,...a}=e,s=d(i)?i:c,l=n?{role:`none`}:{"aria-orientation":s===`vertical`?s:void 0,role:`separator`};return(0,o.jsx)(r.div,{"data-orientation":s,...l,...a,ref:t})});u.displayName=s;function d(e){return l.includes(e)}var f=u;function p({className:e,orientation:t=`horizontal`,decorative:n=!0,...r}){return(0,o.jsx)(f,{className:i(`shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px`,e),"data-slot":`separator`,decorative:n,orientation:t,...r})}export{p as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./dist-Cc8_LDAq.js";import{i}from"./button-C_NDYaz8.js";var a=e(t(),1),o=n(),s=`Separator`,c=`horizontal`,l=[`horizontal`,`vertical`],u=a.forwardRef((e,t)=>{let{decorative:n,orientation:i=c,...a}=e,s=d(i)?i:c,l=n?{role:`none`}:{"aria-orientation":s===`vertical`?s:void 0,role:`separator`};return(0,o.jsx)(r.div,{"data-orientation":s,...l,...a,ref:t})});u.displayName=s;function d(e){return l.includes(e)}var f=u;function p({className:e,orientation:t=`horizontal`,decorative:n=!0,...r}){return(0,o.jsx)(f,{className:i(`shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px`,e),"data-slot":`separator`,decorative:n,orientation:t,...r})}export{p as t}; \ No newline at end of file diff --git a/src/www/assets/settings-BbpP20ev.js b/src/www/assets/settings-eRG1_Yuf.js similarity index 94% rename from src/www/assets/settings-BbpP20ev.js rename to src/www/assets/settings-eRG1_Yuf.js index e9dec23..537e034 100644 --- a/src/www/assets/settings-BbpP20ev.js +++ b/src/www/assets/settings-eRG1_Yuf.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{Ar as n,Br as r,Ff as i,Fr as a,Gr as o,Hr as s,Ir as c,Kr as l,Lr as u,Mr as d,Nr as f,Pr as p,Rr as m,Ur as h,Vr as g,Wr as _,em as v,jr as y,kr as b,zr as x}from"./messages-Bp0bCjzp.js";import{i as S,t as C}from"./button-BgMnOYKD.js";import{n as w,r as T,t as E}from"./popover-YeKifm3K.js";import{c as D,o as O,s as ee}from"./zod-rwFXxHlg.js";import{a as k,c as te,i as A,l as ne,n as j,o as M,r as re,s as N,t as ie}from"./form-BhKmyN6D.js";import{t as P}from"./input-BleRUV2A.js";import{t as ae}from"./page-header-CDwG3nxs.js";import{a as oe,i as se,n as ce,r as le,t as F}from"./lib-DCke3ZPi.js";function I(){return I=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{r:t,g:n,b:r,a:i}=e,a=Math.max(t,n,r),o=a-Math.min(t,n,r),s=o?a===t?(n-r)/o:a===n?2+(r-t)/o:4+(t-n)/o:0;return{h:60*(s<0?s+6:s),s:a?o/a*R:0,v:a/L*R,a:i}},de=e=>{var{h:t,s:n,l:r,a:i}=fe(e);return`hsla(`+t+`, `+n+`%, `+r+`%, `+i+`)`},B=e=>{var{h:t,s:n,l:r,a:i}=e;return n*=(r<50?r:R-r)/R,{h:t,s:n>0?2*n/(r+n)*R:0,v:r+n,a:i}},fe=e=>{var{h:t,s:n,v:r,a:i}=e,a=(200-n)*r/R;return{h:t,s:a>0&&a<200?n*r/R/(a<=R?a:200-a)*R:0,l:a/2,a:i}};ue/400,ue/(Math.PI*2);var pe=e=>{var{r:t,g:n,b:r}=e;return`#`+(e=>Array(7-e.length).join(`0`)+e)((t<<16|n<<8|r).toString(16))},me=e=>{var{r:t,g:n,b:r,a:i}=e,a=typeof i==`number`&&(i*255|256).toString(16).slice(1);return``+pe({r:t,g:n,b:r})+(a||``)},V=e=>z(he(e)),he=e=>{var t=e.replace(`#`,``);/^#?/.test(e)&&t.length===3&&(e=`#`+t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2));var n=RegExp(`[A-Za-z0-9]{2}`,`g`),[r,i,a=0,o]=e.match(n).map(e=>parseInt(e,16));return{r,g:i,b:a,a:(o??255)/L}},H=e=>{var{h:t,s:n,v:r,a:i}=e,a=t/60,o=n/R,s=r/R,c=Math.floor(a)%6,l=a-Math.floor(a),u=L*s*(1-o),d=L*s*(1-o*l),f=L*s*(1-o*(1-l));s*=L;var p={};switch(c){case 0:p.r=s,p.g=f,p.b=u;break;case 1:p.r=d,p.g=s,p.b=u;break;case 2:p.r=u,p.g=s,p.b=f;break;case 3:p.r=u,p.g=d,p.b=s;break;case 4:p.r=f,p.g=u,p.b=s;break;case 5:p.r=s,p.g=u,p.b=d;break}return p.r=Math.round(p.r),p.g=Math.round(p.g),p.b=Math.round(p.b),I({},p,{a:i})},ge=e=>{var{r:t,g:n,b:r,a:i}=H(e);return`rgba(`+t+`, `+n+`, `+r+`, `+i+`)`},_e=e=>{var{r:t,g:n,b:r}=e;return{r:t,g:n,b:r}},ve=e=>{var{h:t,s:n,l:r}=e;return{h:t,s:n,l:r}},U=e=>pe(H(e)),ye=e=>me(H(e)),be=e=>{var{h:t,s:n,v:r}=e;return{h:t,s:n,v:r}},xe=e=>{var{r:t,g:n,b:r}=e,i=function(e){return e<=.04045?e/12.92:((e+.055)/1.055)**2.4},a=i(t/255),o=i(n/255),s=i(r/255),c={};return c.x=a*.4124+o*.3576+s*.1805,c.y=a*.2126+o*.7152+s*.0722,c.bri=a*.0193+o*.1192+s*.9505,c},W=e=>{var t,n,r,i,a,o,s,c,l;return typeof e==`string`&&G(e)?(o=V(e),c=e):typeof e!=`string`&&(o=e),o&&(r=be(o),a=fe(o),i=H(o),l=me(i),c=U(o),n=ve(a),t=_e(i),s=xe(t)),{rgb:t,hsl:n,hsv:r,rgba:i,hsla:a,hsva:o,hex:c,hexa:l,xy:s}},G=e=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(e);function K(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var q=e(t());function Se(e){var t=(0,q.useRef)(e);return(0,q.useEffect)(()=>{t.current=e}),(0,q.useCallback)((e,n)=>t.current&&t.current(e,n),[])}var J=e=>`touches`in e,Ce=e=>{!J(e)&&e.preventDefault&&e.preventDefault()},we=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e{var n=e.getBoundingClientRect(),r=J(t)?t.touches[0]:t;return{left:we((r.pageX-(n.left+window.pageXOffset))/n.width),top:we((r.pageY-(n.top+window.pageYOffset))/n.height),width:n.width,height:n.height,x:r.pageX-(n.left+window.pageXOffset),y:r.pageY-(n.top+window.pageYOffset)}},Y=v(),Ee=[`prefixCls`,`className`,`onMove`,`onDown`],De=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-interactive`,className:r,onMove:i,onDown:a}=e,o=K(e,Ee),s=(0,q.useRef)(null),c=(0,q.useRef)(!1),[l,u]=(0,q.useState)(!1),d=Se(i),f=Se(a),p=e=>c.current&&!J(e)?!1:(c.current=J(e),!0),m=(0,q.useCallback)(e=>{if(Ce(e),s.current){if(!(J(e)?e.touches.length>0:e.buttons>0)){u(!1);return}d?.(Te(s.current,e),e)}},[d]),h=(0,q.useCallback)(()=>u(!1),[]),g=(0,q.useCallback)(e=>{e?(window.addEventListener(c.current?`touchmove`:`mousemove`,m),window.addEventListener(c.current?`touchend`:`mouseup`,h)):(window.removeEventListener(`mousemove`,m),window.removeEventListener(`mouseup`,h),window.removeEventListener(`touchmove`,m),window.removeEventListener(`touchend`,h))},[m,h]);(0,q.useEffect)(()=>(g(l),()=>{g(!1)}),[l,m,h,g]);var _=(0,q.useCallback)(e=>{document.activeElement?.blur(),Ce(e.nativeEvent),p(e.nativeEvent)&&s.current&&(f?.(Te(s.current,e.nativeEvent),e.nativeEvent),u(!0))},[f]);return(0,Y.jsx)(`div`,I({},o,{className:[n,r||``].filter(Boolean).join(` `),style:I({},o.style,{touchAction:`none`}),ref:s,tabIndex:0,onMouseDown:_,onTouchStart:_}))});De.displayName=`Interactive`;var Oe=[`className`,`prefixCls`,`left`,`top`,`style`,`fillProps`],ke=e=>{var{className:t,prefixCls:n,left:r,top:i,style:a,fillProps:o}=e,s=K(e,Oe),c=I({},a,{position:`absolute`,left:r,top:i}),l=I({width:18,height:18,boxShadow:`var(--alpha-pointer-box-shadow)`,borderRadius:`50%`,backgroundColor:`var(--alpha-pointer-background-color)`},o?.style,{transform:r?`translate(-9px, -1px)`:`translate(-1px, -9px)`});return(0,Y.jsx)(`div`,I({className:n+`-pointer `+(t||``),style:c},s,{children:(0,Y.jsx)(`div`,I({className:n+`-fill`},o,{style:l}))}))},Ae=[`prefixCls`,`className`,`hsva`,`background`,`bgProps`,`innerProps`,`pointerProps`,`radius`,`width`,`height`,`direction`,`reverse`,`style`,`onChange`,`pointer`],je=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==`,X=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-alpha`,className:r,hsva:i,background:a,bgProps:o={},innerProps:s={},pointerProps:c={},radius:l=0,width:u,height:d=16,direction:f=`horizontal`,reverse:p=!1,style:m,onChange:h,pointer:g}=e,_=K(e,Ae),v=(0,q.useCallback)(e=>{var t=f===`horizontal`?e.left:e.top;return f===`horizontal`?p?1-t:t:p?t:1-t},[f,p]),y=(0,q.useCallback)(e=>f===`horizontal`?p?1-e:e:p?e:1-e,[f,p]),b=e=>{var t=v(e);h&&h(I({},i,{a:t}),e)},x=de(Object.assign({},i,{a:1})),S=p?`linear-gradient(to right, `+x+` 0%, rgba(244, 67, 54, 0) 100%)`:`linear-gradient(to right, rgba(244, 67, 54, 0) 0%, `+x+` 100%)`,C=p?`linear-gradient(to bottom, rgba(244, 67, 54, 0) 0%, `+x+` 100%)`:`linear-gradient(to bottom, `+x+` 0%, rgba(244, 67, 54, 0) 100%)`,w=f===`horizontal`?S:C,T={};f===`horizontal`?T.left=y(i.a)*100+`%`:T.top=y(i.a)*100+`%`;var E=I({"--alpha-background-color":`#fff`,"--alpha-pointer-background-color":`rgb(248, 248, 248)`,"--alpha-pointer-box-shadow":`rgb(0 0 0 / 37%) 0px 1px 4px 0px`,borderRadius:l,background:`url(`+je+`) left center`,backgroundColor:`var(--alpha-background-color)`},{width:u,height:d},m,{position:`relative`}),D=(0,q.useCallback)(e=>{var t=.01,n=i.a,r=n;switch(e.key){case`ArrowLeft`:f===`horizontal`&&(r=p?Math.min(1,n+t):Math.max(0,n-t),e.preventDefault());break;case`ArrowRight`:f===`horizontal`&&(r=p?Math.max(0,n-t):Math.min(1,n+t),e.preventDefault());break;case`ArrowUp`:f===`vertical`&&(r=p?Math.max(0,n-t):Math.min(1,n+t),e.preventDefault());break;case`ArrowDown`:f===`vertical`&&(r=p?Math.min(1,n+t):Math.max(0,n-t),e.preventDefault());break;default:return}if(r!==n){var a=y(r),o={left:f===`horizontal`?a:i.a,top:f===`vertical`?a:i.a,width:0,height:0,x:0,y:0};h&&h(I({},i,{a:r}),o)}},[y,i,f,h,p]),O=(0,q.useCallback)(e=>{e.target.focus()},[]),ee=g&&typeof g==`function`?g(I({prefixCls:n},c,T)):(0,Y.jsx)(ke,I({},c,{prefixCls:n},T));return(0,Y.jsxs)(`div`,I({},_,{className:[n,n+`-`+f,r||``].filter(Boolean).join(` `),style:E,ref:t,children:[(0,Y.jsx)(`div`,I({},o,{style:I({inset:0,position:`absolute`,background:a||w,borderRadius:l},o.style)})),(0,Y.jsx)(De,I({},s,{style:I({},s.style,{inset:0,zIndex:1,position:`absolute`,outline:`none`}),onMove:b,onDown:b,onClick:O,onKeyDown:D,children:ee}))]}))});X.displayName=`Alpha`;var Me=[`prefixCls`,`placement`,`label`,`value`,`className`,`style`,`labelStyle`,`inputStyle`,`onChange`,`onBlur`,`renderInput`],Ne=e=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(e),Pe=e=>Number(String(e).replace(/%/g,``)),Z=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-editable-input`,placement:r=`bottom`,label:i,value:a,className:o,style:s,labelStyle:c,inputStyle:l,onChange:u,onBlur:d,renderInput:f}=e,p=K(e,Me),[m,h]=(0,q.useState)(a),g=(0,q.useRef)(!1),_=(0,q.useRef)(p.id||n+`-`+Math.random().toString(36).slice(2,11)),v=p.id||_.current;(0,q.useEffect)(()=>{e.value!==m&&(g.current||h(e.value))},[e.value]);function y(e,t){var n=(t||e.target.value).trim().replace(/^#/,``);Ne(n)&&u&&u(e,n);var r=Pe(n);isNaN(r)||u&&u(e,r),h(n)}function b(t){g.current=!1,h(e.value),d&&d(t)}var x={};r===`bottom`&&(x.flexDirection=`column`),r===`top`&&(x.flexDirection=`column-reverse`),r===`left`&&(x.flexDirection=`row-reverse`);var S=I({"--editable-input-label-color":`rgb(153, 153, 153)`,"--editable-input-box-shadow":`rgb(204 204 204) 0px 0px 0px 1px inset`,"--editable-input-color":`#666`,position:`relative`,alignItems:`center`,display:`flex`,fontSize:11},x,s),C=I({width:`100%`,paddingTop:2,paddingBottom:2,paddingLeft:3,paddingRight:3,fontSize:11,background:`transparent`,boxSizing:`border-box`,border:`none`,color:`var(--editable-input-color)`,boxShadow:`var(--editable-input-box-shadow)`},l),w=I({value:m,onChange:y,onBlur:b,autoComplete:`off`,onFocus:()=>g.current=!0},p,{id:v,style:C,onFocusCapture:e=>{var t=e.target;t.setSelectionRange(t.value.length,t.value.length)}});return(0,Y.jsxs)(`div`,{className:[n,o||``].filter(Boolean).join(` `),style:S,children:[f?f(w,t):(0,Y.jsx)(`input`,I({ref:t},w)),i&&(0,Y.jsx)(`label`,{htmlFor:v,style:I({color:`var(--editable-input-label-color)`,textTransform:`capitalize`},c),children:i})]})});Z.displayName=`EditableInput`;var Fe=[`prefixCls`,`className`,`color`,`colors`,`style`,`rectProps`,`onChange`,`addonAfter`,`addonBefore`,`rectRender`],Ie=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-swatch`,className:r,color:i,colors:a=[],style:o,rectProps:s={},onChange:c,addonAfter:l,addonBefore:u,rectRender:d}=e,f=K(e,Fe),p=I({"--swatch-background-color":`rgb(144, 19, 254)`,background:`var(--swatch-background-color)`,height:15,width:15,marginRight:5,marginBottom:5,cursor:`pointer`,position:`relative`,outline:`none`,borderRadius:2},s.style),m=(e,t)=>{c&&c(V(e),W(V(e)),t)};return(0,Y.jsxs)(`div`,I({ref:t},f,{className:[n,r||``].filter(Boolean).join(` `),style:I({display:`flex`,flexWrap:`wrap`,position:`relative`},o),children:[u&&q.isValidElement(u)&&u,a&&Array.isArray(a)&&a.map((e,t)=>{var n=``,r=``;typeof e==`string`&&(n=e,r=e),typeof e==`object`&&e.color&&(n=e.title||e.color,r=e.color);var a=i&&i.toLocaleLowerCase()===r.toLocaleLowerCase(),o=d&&d({title:n,color:r,checked:!!a,style:I({},p,{background:r}),onClick:e=>m(r,e)});if(o)return(0,Y.jsx)(q.Fragment,{children:o},t);var c=s.children&&q.isValidElement(s.children)?q.cloneElement(s.children,{color:r,checked:a}):null;return(0,Y.jsx)(`div`,I({tabIndex:0,title:n,onClick:e=>m(r,e)},s,{children:c,style:I({},p,{background:r})}),t)}),l&&q.isValidElement(l)&&l]}))});Ie.displayName=`Swatch`;function Le(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var Re={marginRight:0,marginBottom:0,borderRadius:0,boxSizing:`border-box`,height:25,width:25};function ze(e){var{style:t,title:n,checked:r,color:i,onClick:a,rectProps:o}=e,s=(0,q.useRef)(null),c=(0,q.useCallback)(()=>{s.current.style.zIndex=`2`,s.current.style.outline=`#fff solid 2px`,s.current.style.boxShadow=`rgb(0 0 0 / 25%) 0 0 5px 2px`},[]),l=(0,q.useCallback)(()=>{r||(s.current.style.zIndex=`0`,s.current.style.outline=`initial`,s.current.style.boxShadow=`initial`)},[r]);return(0,Y.jsx)(`div`,I({ref:s,title:n},o,{onClick:a,onMouseEnter:c,onMouseLeave:l,style:I({},t,{marginRight:0,marginBottom:0,borderRadius:0,boxSizing:`border-box`,height:25,width:25},Re,r?{zIndex:1,outline:`#fff solid 2px`,boxShadow:`rgb(0 0 0 / 25%) 0 0 5px 2px`}:{zIndex:0},o?.style)}))}var Be=[`prefixCls`,`placement`,`className`,`style`,`color`,`colors`,`showTriangle`,`rectProps`,`onChange`,`rectRender`],Ve=[`#B80000`,`#DB3E00`,`#FCCB00`,`#008B02`,`#006B76`,`#1273DE`,`#004DCF`,`#5300EB`,`#EB9694`,`#FAD0C3`,`#FEF3BD`,`#C1E1C5`,`#BEDADC`,`#C4DEF6`,`#BED3F3`,`#D4C4FB`],Q=function(e){return e.Left=`L`,e.LeftTop=`LT`,e.LeftBottom=`LB`,e.Right=`R`,e.RightTop=`RT`,e.RightBottom=`RB`,e.Top=`T`,e.TopRight=`TR`,e.TopLeft=`TL`,e.Bottom=`B`,e.BottomLeft=`BL`,e.BottomRight=`BR`,e}({}),He=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-github`,placement:r=Q.TopRight,className:i,style:a,color:o,colors:s=Ve,showTriangle:c=!0,rectProps:l={},onChange:u,rectRender:d}=e,f=K(e,Be),p=typeof o==`string`&&G(o)?V(o):o,m=o?U(p):``,h=e=>u&&u(W(e)),g=I({"--github-border":`1px solid rgba(0, 0, 0, 0.2)`,"--github-background-color":`#fff`,"--github-box-shadow":`rgb(0 0 0 / 15%) 0px 3px 12px`,"--github-arrow-border-color":`rgba(0, 0, 0, 0.15)`,width:200,borderRadius:4,background:`var(--github-background-color)`,boxShadow:`var(--github-box-shadow)`,border:`var(--github-border)`,position:`relative`,padding:5},a),_={borderStyle:`solid`,position:`absolute`},v=I({},_),y=I({},_);return/^T/.test(r)&&(v.borderWidth=`0 8px 8px`,v.borderColor=`transparent transparent var(--github-arrow-border-color)`,y.borderWidth=`0 7px 7px`,y.borderColor=`transparent transparent var(--github-background-color)`),r===Q.TopRight&&(v.top=-8,y.top=-7),r===Q.Top&&(v.top=-8,y.top=-7),r===Q.TopLeft&&(v.top=-8,y.top=-7),/^B/.test(r)&&(v.borderWidth=`8px 8px 0`,v.borderColor=`var(--github-arrow-border-color) transparent transparent`,y.borderWidth=`7px 7px 0`,y.borderColor=`var(--github-background-color) transparent transparent`,r===Q.BottomRight&&(v.top=`100%`,y.top=`100%`),r===Q.Bottom&&(v.top=`100%`,y.top=`100%`),r===Q.BottomLeft&&(v.top=`100%`,y.top=`100%`)),/^(B|T)/.test(r)&&((r===Q.Top||r===Q.Bottom)&&(v.left=`50%`,v.marginLeft=-8,y.left=`50%`,y.marginLeft=-7),(r===Q.TopRight||r===Q.BottomRight)&&(v.right=10,y.right=11),(r===Q.TopLeft||r===Q.BottomLeft)&&(v.left=7,y.left=8)),/^L/.test(r)&&(v.borderWidth=`8px 8px 8px 0`,v.borderColor=`transparent var(--github-arrow-border-color) transparent transparent`,y.borderWidth=`7px 7px 7px 0`,y.borderColor=`transparent var(--github-background-color) transparent transparent`,v.left=-8,y.left=-7),/^R/.test(r)&&(v.borderWidth=`8px 0 8px 8px`,v.borderColor=`transparent transparent transparent var(--github-arrow-border-color)`,y.borderWidth=`7px 0 7px 7px`,y.borderColor=`transparent transparent transparent var(--github-background-color)`,v.right=-8,y.right=-7),/^(L|R)/.test(r)&&((r===Q.RightTop||r===Q.LeftTop)&&(v.top=5,y.top=6),(r===Q.Left||r===Q.Right)&&(v.top=`50%`,y.top=`50%`,v.marginTop=-8,y.marginTop=-7),(r===Q.LeftBottom||r===Q.RightBottom)&&(v.top=`100%`,y.top=`100%`,v.marginTop=-21,y.marginTop=-20)),(0,Y.jsx)(Ie,I({ref:t,className:[n,i].filter(Boolean).join(` `),colors:s,color:m,rectRender:e=>{var t=I({},(Le(e),e));return d&&d(I({},t))||(0,Y.jsx)(ze,I({},t,{rectProps:l}))}},f,{onChange:h,style:g,rectProps:{style:{marginRight:0,marginBottom:0,borderRadius:0,height:25,width:25}},addonBefore:(0,Y.jsx)(q.Fragment,{children:c&&(0,Y.jsxs)(q.Fragment,{children:[(0,Y.jsx)(`div`,{style:v}),(0,Y.jsx)(`div`,{style:y})]})})}))});He.displayName=`Github`;var Ue=e=>{var{className:t,color:n,left:r,top:i,prefixCls:a}=e,o={position:`absolute`,top:i,left:r},s={"--saturation-pointer-box-shadow":`rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px`,width:6,height:6,transform:`translate(-3px, -3px)`,boxShadow:`var(--saturation-pointer-box-shadow)`,borderRadius:`50%`,backgroundColor:n};return(0,q.useMemo)(()=>(0,Y.jsx)(`div`,{className:a+`-pointer `+(t||``),style:o,children:(0,Y.jsx)(`div`,{className:a+`-fill`,style:s})}),[i,r,n,t,a])},We=[`prefixCls`,`radius`,`pointer`,`className`,`hue`,`style`,`hsva`,`onChange`],Ge=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-saturation`,radius:r=0,pointer:i,className:a,hue:o=0,style:s,hsva:c,onChange:l}=e,u=K(e,We),d=I({width:200,height:200,borderRadius:r},s,{position:`relative`}),f=(0,q.useRef)(null),p=(0,q.useCallback)(e=>{f.current=e,typeof t==`function`?t(e):t&&`current`in t&&(t.current=e)},[t]),m=(0,q.useCallback)((e,t)=>{l&&c&&l({h:c.h,s:e.left*100,v:(1-e.top)*100,a:c.a});var n=f.current;n&&n.focus()},[c,l]),h=(0,q.useCallback)(e=>{if(!(!c||!l)){var t=1,n=c.s,r=c.v,i=!1;switch(e.key){case`ArrowLeft`:n=Math.max(0,c.s-t),i=!0,e.preventDefault();break;case`ArrowRight`:n=Math.min(100,c.s+t),i=!0,e.preventDefault();break;case`ArrowUp`:r=Math.min(100,c.v+t),i=!0,e.preventDefault();break;case`ArrowDown`:r=Math.max(0,c.v-t),i=!0,e.preventDefault();break;default:return}i&&l({h:c.h,s:n,v:r,a:c.a})}},[c,l]),g=(0,q.useMemo)(()=>{if(!c)return null;var e={top:100-c.v+`%`,left:c.s+`%`,color:de(c)};return i&&typeof i==`function`?i(I({prefixCls:n},e)):(0,Y.jsx)(Ue,I({prefixCls:n},e))},[c,i,n]),_=(0,q.useCallback)(e=>{e.target.focus()},[]);return(0,Y.jsx)(De,I({className:[n,a||``].filter(Boolean).join(` `)},u,{style:I({position:`absolute`,inset:0,cursor:`crosshair`,backgroundImage:`linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, hsl(`+(c?.h??o)+`, 100%, 50%))`},d,{outline:`none`}),ref:p,onMove:m,onDown:m,onKeyDown:h,onClick:_,children:g}))});Ge.displayName=`Saturation`;var Ke=[`prefixCls`,`className`,`hue`,`onChange`,`direction`,`reverse`],qe=`rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%`,Je=`rgb(255, 0, 0) 0%, rgb(255, 0, 255) 17%, rgb(0, 0, 255) 33%, rgb(0, 255, 255) 50%, rgb(0, 255, 0) 67%, rgb(255, 255, 0) 83%, rgb(255, 0, 0) 100%`,Ye=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-hue`,className:r,hue:i=0,onChange:a,direction:o=`horizontal`,reverse:s=!1}=e,c=K(e,Ke),l=(0,q.useCallback)(()=>o===`horizontal`?`linear-gradient(to right, `+(s?Je:qe)+`)`:`linear-gradient(to bottom, `+(s?qe:Je)+`)`,[o,s]),u=(0,q.useCallback)(e=>{var t=o===`horizontal`?e.left:e.top;return 360*(o===`horizontal`?s?1-t:t:s?t:1-t)},[o,s]),d=(0,q.useMemo)(()=>l(),[l]);return(0,Y.jsx)(X,I({ref:t,className:n+` `+(r||``)},c,{direction:o,reverse:s,background:d,hsva:{h:i,s:100,v:100,a:i/360},onChange:(e,t)=>{a&&a({h:u(t)})}}))});Ye.displayName=`Hue`;var Xe=[`prefixCls`,`hsva`,`placement`,`rProps`,`gProps`,`bProps`,`aProps`,`className`,`style`,`onChange`],Ze=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-editable-input-rgba`,hsva:r,placement:i=`bottom`,rProps:a={},gProps:o={},bProps:s={},aProps:c={},className:l,style:u,onChange:d}=e,f=K(e,Xe),p=r?H(r):{};function m(e){var t=Number(e.target.value);t&&t>255&&(e.target.value=`255`),t&&t<0&&(e.target.value=`0`)}var h=e=>{var t=Number(e.target.value);t&&t>100&&(e.target.value=`100`),t&&t<0&&(e.target.value=`0`)},g=(e,t,n)=>{typeof e==`number`&&(t===`a`&&(e<0&&(e=0),e>100&&(e=100),d&&d(W(z(I({},p,{a:e/100}))))),e>255&&(e=255,n.target.value=`255`),e<0&&(e=0,n.target.value=`0`),t===`r`&&d&&d(W(z(I({},p,{r:e})))),t===`g`&&d&&d(W(z(I({},p,{g:e})))),t===`b`&&d&&d(W(z(I({},p,{b:e})))))},_=p.a?Math.round(p.a*100)/100:0;return(0,Y.jsxs)(`div`,I({ref:t,className:[n,l||``].filter(Boolean).join(` `)},f,{style:I({fontSize:11,display:`flex`},u),children:[(0,Y.jsx)(Z,I({label:`R`,value:p.r||0,onBlur:m,placement:i,onChange:(e,t)=>g(t,`r`,e)},a,{style:I({},a.style)})),(0,Y.jsx)(Z,I({label:`G`,value:p.g||0,onBlur:m,placement:i,onChange:(e,t)=>g(t,`g`,e)},o,{style:I({marginLeft:5},o.style)})),(0,Y.jsx)(Z,I({label:`B`,value:p.b||0,onBlur:m,placement:i,onChange:(e,t)=>g(t,`b`,e)},s,{style:I({marginLeft:5},s.style)})),c&&(0,Y.jsx)(Z,I({label:`A`,value:parseInt(String(_*100),10),onBlur:h,placement:i,onChange:(e,t)=>g(t,`a`,e)},c,{style:I({marginLeft:5},c.style)}))]}))});Ze.displayName=`EditableInputRGBA`;var Qe=[`prefixCls`,`hsva`,`hProps`,`sProps`,`lProps`,`aProps`,`className`,`onChange`],$e=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-editable-input-hsla`,hsva:r,hProps:i={},sProps:a={},lProps:o={},aProps:s={},className:c,onChange:l}=e,u=K(e,Qe),d=r?fe(r):{h:0,s:0,l:0,a:0},f=(e,t,n)=>{typeof e==`number`&&(t===`h`&&(e<0&&(e=0),e>360&&(e=360),l&&l(W(B(I({},d,{h:e}))))),t===`s`&&(e<0&&(e=0),e>100&&(e=100),l&&l(W(B(I({},d,{s:e}))))),t===`l`&&(e<0&&(e=0),e>100&&(e=100),l&&l(W(B(I({},d,{l:e}))))),t===`a`&&(e<0&&(e=0),e>1&&(e=1),l&&l(W(B(I({},d,{a:e}))))))},p=s==0?!1:I({label:`A`,value:Math.round(d.a*100)/100},s,{onChange:(e,t)=>f(t,`a`,e)});return(0,Y.jsx)(Ze,I({ref:t,hsva:r,rProps:I({label:`H`,value:Math.round(d.h)},i,{onChange:(e,t)=>f(t,`h`,e)}),gProps:I({label:`S`,value:Math.round(d.s)+`%`},a,{onChange:(e,t)=>f(t,`s`,e)}),bProps:I({label:`L`,value:Math.round(d.l)+`%`},o,{onChange:(e,t)=>f(t,`l`,e)}),aProps:p,className:[n,c||``].filter(Boolean).join(` `)},u))});$e.displayName=`EditableInputHSLA`;var et=[`style`];function tt(e){var{style:t}=e,n=K(e,et),r=(0,q.useRef)(null),i=(0,q.useCallback)(()=>{r.current.style.backgroundColor=`var(--chrome-arrow-background-color)`},[]),a=(0,q.useCallback)(()=>{r.current.style.backgroundColor=`transparent`},[]);return(0,Y.jsx)(`div`,I({ref:r,style:I({marginLeft:5,cursor:`pointer`,transition:`background-color .3s`,borderRadius:2},t)},n,{onMouseEnter:i,onMouseLeave:a,children:(0,Y.jsx)(`svg`,{viewBox:`0 0 1024 1024`,width:`24`,height:`24`,style:{display:`block`},children:(0,Y.jsx)(`path`,{d:`M373.888 576h276.224c9.322667 0 14.293333 11.178667 9.173333 18.773333l-1.258666 1.557334-138.112 146.858666a10.709333 10.709333 0 0 1-14.293334 1.365334l-1.536-1.365334-138.112-146.858666c-6.592-6.997333-2.666667-18.645333 5.973334-20.16l1.941333-0.170667h276.224-276.224z m146.026667-295.189333l138.112 146.858666c7.04 7.509333 2.069333 20.330667-7.914667 20.330667H373.888c-9.984 0-14.976-12.821333-7.914667-20.330667l138.112-146.858666a10.730667 10.730667 0 0 1 15.829334 0z`,fill:`var(--chrome-arrow-fill)`})})}))}function nt(){return`EyeDropper`in window}function rt(e){return(0,Y.jsx)(`svg`,{viewBox:`0 0 512 512`,height:`1em`,width:`1em`,onClick:()=>{`EyeDropper`in window&&new window.EyeDropper().open().then(t=>{e.onPickColor==null||e.onPickColor(t.sRGBHex)}).catch(e=>{e.name})},children:(0,Y.jsx)(`path`,{fill:`currentColor`,d:`M482.8 29.23c38.9 38.98 38.9 102.17 0 141.17L381.2 271.9l9.4 9.5c12.5 12.5 12.5 32.7 0 45.2s-32.7 12.5-45.2 0l-160-160c-12.5-12.5-12.5-32.7 0-45.2s32.7-12.5 45.2 0l9.5 9.4L341.6 29.23c39-38.974 102.2-38.974 141.2 0zM55.43 323.3 176.1 202.6l45.3 45.3-120.7 120.7c-3.01 3-4.7 7-4.7 11.3V416h36.1c4.3 0 8.3-1.7 11.3-4.7l120.7-120.7 45.3 45.3-120.7 120.7c-15 15-35.4 23.4-56.6 23.4H89.69l-39.94 26.6c-12.69 8.5-29.59 6.8-40.377-4-10.786-10.8-12.459-27.7-3.998-40.4L32 422.3v-42.4c0-21.2 8.43-41.6 23.43-56.6z`})})}var it=[`prefixCls`,`className`,`style`,`color`,`showEditableInput`,`showEyeDropper`,`showColorPreview`,`showHue`,`showAlpha`,`inputType`,`rectProps`,`onChange`],$=function(e){return e.HEXA=`hexa`,e.RGBA=`rgba`,e.HSLA=`hsla`,e}({}),at=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-chrome`,className:r,style:i,color:a,showEditableInput:o=!0,showEyeDropper:s=!0,showColorPreview:c=!0,showHue:l=!0,showAlpha:u=!0,inputType:d=$.RGBA,rectProps:f={},onChange:p}=e,m=K(e,it),h=typeof a==`string`&&G(a)?V(a):a||{h:0,s:0,l:0,a:0},g=e=>p&&p(W(e)),[_,v]=(0,q.useState)(d),y=()=>{_===$.RGBA&&v($.HSLA),_===$.HSLA&&v($.HEXA),_===$.HEXA&&v($.RGBA)},b={paddingTop:6},x={textAlign:`center`,paddingTop:4,paddingBottom:4},S=I({"--chrome-arrow-fill":`#333`,"--chrome-arrow-background-color":`#e8e8e8`,borderRadius:0,flexDirection:`column`,width:230,padding:0},i),C={"--chrome-alpha-box-shadow":`rgb(0 0 0 / 25%) 0px 0px 1px inset`,borderRadius:`50%`,background:ge(h),boxShadow:`var(--chrome-alpha-box-shadow)`},w=e=>{g(I({},V(e)))},T={height:14,width:14},E={style:I({},T),fillProps:{style:T}};return(0,Y.jsx)(He,I({ref:t,color:h,style:S,colors:void 0,className:[n,r].filter(Boolean).join(` `),placement:Q.TopLeft},m,{addonAfter:(0,Y.jsxs)(q.Fragment,{children:[(0,Y.jsx)(Ge,{hsva:h,style:{width:`100%`,height:130},onChange:e=>{g(I({},h,e,{a:h.a}))}}),(0,Y.jsxs)(`div`,{style:{padding:15,display:`flex`,alignItems:`center`,gap:10},children:[nt()&&s&&(0,Y.jsx)(rt,{onPickColor:w}),c&&(0,Y.jsx)(X,{width:28,height:28,hsva:h,radius:2,style:{borderRadius:`50%`},bgProps:{style:{background:`transparent`}},innerProps:{style:C},pointer:()=>(0,Y.jsx)(q.Fragment,{})}),(0,Y.jsxs)(`div`,{style:{flex:1},children:[l==1&&(0,Y.jsx)(Ye,{hue:h.h,style:{width:`100%`,height:12,borderRadius:2},pointerProps:E,bgProps:{style:{borderRadius:2}},onChange:e=>{g(I({},h,e))}}),u==1&&(0,Y.jsx)(X,{hsva:h,style:{marginTop:6,height:12,borderRadius:2},pointerProps:E,bgProps:{style:{borderRadius:2}},onChange:e=>{g(I({},h,e))}})]})]}),o&&(0,Y.jsxs)(`div`,{style:{display:`flex`,alignItems:`flex-start`,padding:`0 15px 15px 15px`,userSelect:`none`},children:[(0,Y.jsxs)(`div`,{style:{flex:1},children:[_==$.RGBA&&(0,Y.jsx)(Ze,{hsva:h,rProps:{labelStyle:b,inputStyle:x},gProps:{labelStyle:b,inputStyle:x},bProps:{labelStyle:b,inputStyle:x},aProps:u==0?!1:{labelStyle:b,inputStyle:x},onChange:e=>g(e.hsva)}),_===$.HEXA&&(0,Y.jsx)(Z,{label:`HEX`,labelStyle:b,inputStyle:x,value:h.a>0&&h.a<1?ye(h).toLocaleUpperCase():U(h).toLocaleUpperCase(),onChange:(e,t)=>{typeof t==`string`&&g(V(/^#/.test(t)?t:`#`+t))}}),_===$.HSLA&&(0,Y.jsx)($e,{hsva:h,hProps:{labelStyle:b,inputStyle:x},sProps:{labelStyle:b,inputStyle:x},lProps:{labelStyle:b,inputStyle:x},aProps:u==0?!1:{labelStyle:b,inputStyle:x},onChange:e=>g(e.hsva)})]}),(0,Y.jsx)(tt,{onClick:y})]})]}),rectRender:()=>(0,Y.jsx)(q.Fragment,{})}))});at.displayName=`Chrome`;var ot=ee({backgroundColor:D().refine(ct,f()),backgroundImageUrl:D().url(y()).or(O(``)),checkoutName:D().min(1,o()),logoUrl:D().url(_()).or(O(``)),siteTitle:D().min(1,h()),supportUrl:D().url(s()).or(O(``))});function st(){let e=se(`brand`),t=oe(),i=ne({resolver:te(ot),defaultValues:{backgroundColor:``,backgroundImageUrl:``,checkoutName:``,logoUrl:``,siteTitle:``,supportUrl:``}});(0,q.useEffect)(()=>{let t=e.data?.data;t&&i.reset({backgroundColor:F(t,`brand.background_color`),backgroundImageUrl:F(t,`brand.background_image_url`),checkoutName:F(t,`brand.checkout_name`),logoUrl:F(t,`brand.logo_url`),siteTitle:F(t,`brand.site_title`),supportUrl:F(t,`brand.support_url`)})},[e.data,i]);async function o(){await ce(t.mutateAsync,[{group:`brand`,key:`brand.background_color`,type:`string`,value:``},{group:`brand`,key:`brand.background_image_url`,type:`string`,value:``},{group:`brand`,key:`brand.checkout_name`,type:`string`,value:``},{group:`brand`,key:`brand.logo_url`,type:`string`,value:``},{group:`brand`,key:`brand.site_title`,type:`string`,value:``},{group:`brand`,key:`brand.support_url`,type:`string`,value:``}],g()),await e.refetch()}async function s(n){await le(t.mutateAsync,[{group:`brand`,key:`brand.background_color`,type:`string`,value:n.backgroundColor},{group:`brand`,key:`brand.background_image_url`,type:`string`,value:n.backgroundImageUrl},{group:`brand`,key:`brand.checkout_name`,type:`string`,value:n.checkoutName},{group:`brand`,key:`brand.logo_url`,type:`string`,value:n.logoUrl},{group:`brand`,key:`brand.site_title`,type:`string`,value:n.siteTitle},{group:`brand`,key:`brand.support_url`,type:`string`,value:n.supportUrl}],r()),await e.refetch()}return(0,Y.jsx)(ie,{...i,children:(0,Y.jsxs)(`form`,{className:`space-y-6`,onSubmit:i.handleSubmit(s),children:[(0,Y.jsx)(A,{control:i.control,name:`checkoutName`,render:({field:e})=>(0,Y.jsxs)(k,{children:[(0,Y.jsx)(M,{children:x()}),(0,Y.jsx)(j,{children:(0,Y.jsx)(P,{...e})}),(0,Y.jsx)(N,{})]})}),(0,Y.jsx)(A,{control:i.control,name:`logoUrl`,render:({field:e})=>(0,Y.jsxs)(k,{children:[(0,Y.jsx)(M,{children:m()}),(0,Y.jsx)(j,{children:(0,Y.jsx)(P,{...e})}),(0,Y.jsx)(N,{})]})}),(0,Y.jsx)(A,{control:i.control,name:`siteTitle`,render:({field:e})=>(0,Y.jsxs)(k,{children:[(0,Y.jsx)(M,{children:u()}),(0,Y.jsx)(j,{children:(0,Y.jsx)(P,{...e})}),(0,Y.jsx)(N,{})]})}),(0,Y.jsx)(A,{control:i.control,name:`supportUrl`,render:({field:e})=>(0,Y.jsxs)(k,{children:[(0,Y.jsx)(M,{children:c()}),(0,Y.jsx)(j,{children:(0,Y.jsx)(P,{...e})}),(0,Y.jsx)(N,{})]})}),(0,Y.jsx)(A,{control:i.control,name:`backgroundColor`,render:({field:e})=>(0,Y.jsxs)(k,{children:[(0,Y.jsx)(M,{children:a()}),(0,Y.jsx)(j,{children:(0,Y.jsxs)(`div`,{className:`flex gap-2`,children:[(0,Y.jsxs)(E,{children:[(0,Y.jsx)(T,{asChild:!0,children:(0,Y.jsx)(C,{"aria-label":a(),className:`h-9 w-11 shrink-0 overflow-hidden border`,style:{background:e.value?e.value:`linear-gradient(45deg, #e5e7eb 25%, transparent 25%), linear-gradient(-45deg, #e5e7eb 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e5e7eb 75%), linear-gradient(-45deg, transparent 75%, #e5e7eb 75%)`,backgroundColor:e.value||`#ffffff`,backgroundPosition:`0 0, 0 6px, 6px -6px, -6px 0`,backgroundSize:`12px 12px`},type:`button`,variant:`outline`})}),(0,Y.jsx)(w,{align:`start`,className:`w-auto p-3`,children:(0,Y.jsx)(at,{color:lt(e.value),inputType:$.RGBA,onChange:t=>{e.onChange(ut(t))},showAlpha:!0,showEditableInput:!0,showEyeDropper:!1})})]}),(0,Y.jsx)(P,{...e,className:S(`font-mono`,!e.value&&`font-sans`),placeholder:`rgba(15, 23, 42, 0.72)`})]})}),(0,Y.jsx)(re,{children:p()}),(0,Y.jsx)(N,{})]})}),(0,Y.jsx)(A,{control:i.control,name:`backgroundImageUrl`,render:({field:e})=>(0,Y.jsxs)(k,{children:[(0,Y.jsx)(M,{children:d()}),(0,Y.jsx)(j,{children:(0,Y.jsx)(P,{...e})}),(0,Y.jsx)(N,{})]})}),(0,Y.jsxs)(`div`,{className:`flex gap-2`,children:[(0,Y.jsx)(C,{disabled:t.isPending||e.isLoading,type:`submit`,children:n()}),(0,Y.jsx)(C,{disabled:t.isPending,onClick:o,type:`button`,variant:`outline`,children:b()})]})]})})}function ct(e){let t=e.trim();if(!t)return!0;if(typeof CSS<`u`)return CSS.supports(`color`,t);try{return W(t),!0}catch{return!1}}function lt(e){try{return e.trim()?W(e).hsva:`#00000000`}catch{return`#00000000`}}function ut(e){let{r:t,g:n,b:r,a:i}=e.rgba;return`rgba(${t}, ${n}, ${r}, ${Number(i.toFixed(2))})`}function dt(){return(0,Y.jsx)(ae,{description:l(),title:i(),variant:`section`,children:(0,Y.jsx)(st,{})})}var ft=dt;export{ft as component}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{Ar as n,Br as r,Fr as i,Gr as a,Hr as o,If as s,Ir as c,Kr as l,Lr as u,Mr as d,Nr as f,Pr as p,Rr as m,Ur as h,Vr as g,Wr as _,jr as v,kr as y,tm as b,zr as x}from"./messages-BOatyqUm.js";import{i as S,t as C}from"./button-C_NDYaz8.js";import{n as w,r as T,t as E}from"./popover-NQZzcPDh.js";import{c as D,o as O,s as ee}from"./zod-rwFXxHlg.js";import{a as k,c as te,i as A,l as ne,n as j,o as M,r as re,s as N,t as ie}from"./form-KfFEakes.js";import{t as P}from"./input-8zzM34r5.js";import{t as ae}from"./page-header-GTtyZFBB.js";import{a as oe,i as se,n as ce,r as le,t as F}from"./lib-DDezYSnW.js";function I(){return I=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{r:t,g:n,b:r,a:i}=e,a=Math.max(t,n,r),o=a-Math.min(t,n,r),s=o?a===t?(n-r)/o:a===n?2+(r-t)/o:4+(t-n)/o:0;return{h:60*(s<0?s+6:s),s:a?o/a*R:0,v:a/L*R,a:i}},de=e=>{var{h:t,s:n,l:r,a:i}=fe(e);return`hsla(`+t+`, `+n+`%, `+r+`%, `+i+`)`},B=e=>{var{h:t,s:n,l:r,a:i}=e;return n*=(r<50?r:R-r)/R,{h:t,s:n>0?2*n/(r+n)*R:0,v:r+n,a:i}},fe=e=>{var{h:t,s:n,v:r,a:i}=e,a=(200-n)*r/R;return{h:t,s:a>0&&a<200?n*r/R/(a<=R?a:200-a)*R:0,l:a/2,a:i}};ue/400,ue/(Math.PI*2);var pe=e=>{var{r:t,g:n,b:r}=e;return`#`+(e=>Array(7-e.length).join(`0`)+e)((t<<16|n<<8|r).toString(16))},me=e=>{var{r:t,g:n,b:r,a:i}=e,a=typeof i==`number`&&(i*255|256).toString(16).slice(1);return``+pe({r:t,g:n,b:r})+(a||``)},V=e=>z(he(e)),he=e=>{var t=e.replace(`#`,``);/^#?/.test(e)&&t.length===3&&(e=`#`+t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2));var n=RegExp(`[A-Za-z0-9]{2}`,`g`),[r,i,a=0,o]=e.match(n).map(e=>parseInt(e,16));return{r,g:i,b:a,a:(o??255)/L}},H=e=>{var{h:t,s:n,v:r,a:i}=e,a=t/60,o=n/R,s=r/R,c=Math.floor(a)%6,l=a-Math.floor(a),u=L*s*(1-o),d=L*s*(1-o*l),f=L*s*(1-o*(1-l));s*=L;var p={};switch(c){case 0:p.r=s,p.g=f,p.b=u;break;case 1:p.r=d,p.g=s,p.b=u;break;case 2:p.r=u,p.g=s,p.b=f;break;case 3:p.r=u,p.g=d,p.b=s;break;case 4:p.r=f,p.g=u,p.b=s;break;case 5:p.r=s,p.g=u,p.b=d;break}return p.r=Math.round(p.r),p.g=Math.round(p.g),p.b=Math.round(p.b),I({},p,{a:i})},ge=e=>{var{r:t,g:n,b:r,a:i}=H(e);return`rgba(`+t+`, `+n+`, `+r+`, `+i+`)`},_e=e=>{var{r:t,g:n,b:r}=e;return{r:t,g:n,b:r}},ve=e=>{var{h:t,s:n,l:r}=e;return{h:t,s:n,l:r}},U=e=>pe(H(e)),ye=e=>me(H(e)),be=e=>{var{h:t,s:n,v:r}=e;return{h:t,s:n,v:r}},xe=e=>{var{r:t,g:n,b:r}=e,i=function(e){return e<=.04045?e/12.92:((e+.055)/1.055)**2.4},a=i(t/255),o=i(n/255),s=i(r/255),c={};return c.x=a*.4124+o*.3576+s*.1805,c.y=a*.2126+o*.7152+s*.0722,c.bri=a*.0193+o*.1192+s*.9505,c},W=e=>{var t,n,r,i,a,o,s,c,l;return typeof e==`string`&&G(e)?(o=V(e),c=e):typeof e!=`string`&&(o=e),o&&(r=be(o),a=fe(o),i=H(o),l=me(i),c=U(o),n=ve(a),t=_e(i),s=xe(t)),{rgb:t,hsl:n,hsv:r,rgba:i,hsla:a,hsva:o,hex:c,hexa:l,xy:s}},G=e=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(e);function K(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var q=e(t());function Se(e){var t=(0,q.useRef)(e);return(0,q.useEffect)(()=>{t.current=e}),(0,q.useCallback)((e,n)=>t.current&&t.current(e,n),[])}var J=e=>`touches`in e,Ce=e=>{!J(e)&&e.preventDefault&&e.preventDefault()},we=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e{var n=e.getBoundingClientRect(),r=J(t)?t.touches[0]:t;return{left:we((r.pageX-(n.left+window.pageXOffset))/n.width),top:we((r.pageY-(n.top+window.pageYOffset))/n.height),width:n.width,height:n.height,x:r.pageX-(n.left+window.pageXOffset),y:r.pageY-(n.top+window.pageYOffset)}},Y=b(),Ee=[`prefixCls`,`className`,`onMove`,`onDown`],De=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-interactive`,className:r,onMove:i,onDown:a}=e,o=K(e,Ee),s=(0,q.useRef)(null),c=(0,q.useRef)(!1),[l,u]=(0,q.useState)(!1),d=Se(i),f=Se(a),p=e=>c.current&&!J(e)?!1:(c.current=J(e),!0),m=(0,q.useCallback)(e=>{if(Ce(e),s.current){if(!(J(e)?e.touches.length>0:e.buttons>0)){u(!1);return}d?.(Te(s.current,e),e)}},[d]),h=(0,q.useCallback)(()=>u(!1),[]),g=(0,q.useCallback)(e=>{e?(window.addEventListener(c.current?`touchmove`:`mousemove`,m),window.addEventListener(c.current?`touchend`:`mouseup`,h)):(window.removeEventListener(`mousemove`,m),window.removeEventListener(`mouseup`,h),window.removeEventListener(`touchmove`,m),window.removeEventListener(`touchend`,h))},[m,h]);(0,q.useEffect)(()=>(g(l),()=>{g(!1)}),[l,m,h,g]);var _=(0,q.useCallback)(e=>{document.activeElement?.blur(),Ce(e.nativeEvent),p(e.nativeEvent)&&s.current&&(f?.(Te(s.current,e.nativeEvent),e.nativeEvent),u(!0))},[f]);return(0,Y.jsx)(`div`,I({},o,{className:[n,r||``].filter(Boolean).join(` `),style:I({},o.style,{touchAction:`none`}),ref:s,tabIndex:0,onMouseDown:_,onTouchStart:_}))});De.displayName=`Interactive`;var Oe=[`className`,`prefixCls`,`left`,`top`,`style`,`fillProps`],ke=e=>{var{className:t,prefixCls:n,left:r,top:i,style:a,fillProps:o}=e,s=K(e,Oe),c=I({},a,{position:`absolute`,left:r,top:i}),l=I({width:18,height:18,boxShadow:`var(--alpha-pointer-box-shadow)`,borderRadius:`50%`,backgroundColor:`var(--alpha-pointer-background-color)`},o?.style,{transform:r?`translate(-9px, -1px)`:`translate(-1px, -9px)`});return(0,Y.jsx)(`div`,I({className:n+`-pointer `+(t||``),style:c},s,{children:(0,Y.jsx)(`div`,I({className:n+`-fill`},o,{style:l}))}))},Ae=[`prefixCls`,`className`,`hsva`,`background`,`bgProps`,`innerProps`,`pointerProps`,`radius`,`width`,`height`,`direction`,`reverse`,`style`,`onChange`,`pointer`],je=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==`,X=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-alpha`,className:r,hsva:i,background:a,bgProps:o={},innerProps:s={},pointerProps:c={},radius:l=0,width:u,height:d=16,direction:f=`horizontal`,reverse:p=!1,style:m,onChange:h,pointer:g}=e,_=K(e,Ae),v=(0,q.useCallback)(e=>{var t=f===`horizontal`?e.left:e.top;return f===`horizontal`?p?1-t:t:p?t:1-t},[f,p]),y=(0,q.useCallback)(e=>f===`horizontal`?p?1-e:e:p?e:1-e,[f,p]),b=e=>{var t=v(e);h&&h(I({},i,{a:t}),e)},x=de(Object.assign({},i,{a:1})),S=p?`linear-gradient(to right, `+x+` 0%, rgba(244, 67, 54, 0) 100%)`:`linear-gradient(to right, rgba(244, 67, 54, 0) 0%, `+x+` 100%)`,C=p?`linear-gradient(to bottom, rgba(244, 67, 54, 0) 0%, `+x+` 100%)`:`linear-gradient(to bottom, `+x+` 0%, rgba(244, 67, 54, 0) 100%)`,w=f===`horizontal`?S:C,T={};f===`horizontal`?T.left=y(i.a)*100+`%`:T.top=y(i.a)*100+`%`;var E=I({"--alpha-background-color":`#fff`,"--alpha-pointer-background-color":`rgb(248, 248, 248)`,"--alpha-pointer-box-shadow":`rgb(0 0 0 / 37%) 0px 1px 4px 0px`,borderRadius:l,background:`url(`+je+`) left center`,backgroundColor:`var(--alpha-background-color)`},{width:u,height:d},m,{position:`relative`}),D=(0,q.useCallback)(e=>{var t=.01,n=i.a,r=n;switch(e.key){case`ArrowLeft`:f===`horizontal`&&(r=p?Math.min(1,n+t):Math.max(0,n-t),e.preventDefault());break;case`ArrowRight`:f===`horizontal`&&(r=p?Math.max(0,n-t):Math.min(1,n+t),e.preventDefault());break;case`ArrowUp`:f===`vertical`&&(r=p?Math.max(0,n-t):Math.min(1,n+t),e.preventDefault());break;case`ArrowDown`:f===`vertical`&&(r=p?Math.min(1,n+t):Math.max(0,n-t),e.preventDefault());break;default:return}if(r!==n){var a=y(r),o={left:f===`horizontal`?a:i.a,top:f===`vertical`?a:i.a,width:0,height:0,x:0,y:0};h&&h(I({},i,{a:r}),o)}},[y,i,f,h,p]),O=(0,q.useCallback)(e=>{e.target.focus()},[]),ee=g&&typeof g==`function`?g(I({prefixCls:n},c,T)):(0,Y.jsx)(ke,I({},c,{prefixCls:n},T));return(0,Y.jsxs)(`div`,I({},_,{className:[n,n+`-`+f,r||``].filter(Boolean).join(` `),style:E,ref:t,children:[(0,Y.jsx)(`div`,I({},o,{style:I({inset:0,position:`absolute`,background:a||w,borderRadius:l},o.style)})),(0,Y.jsx)(De,I({},s,{style:I({},s.style,{inset:0,zIndex:1,position:`absolute`,outline:`none`}),onMove:b,onDown:b,onClick:O,onKeyDown:D,children:ee}))]}))});X.displayName=`Alpha`;var Me=[`prefixCls`,`placement`,`label`,`value`,`className`,`style`,`labelStyle`,`inputStyle`,`onChange`,`onBlur`,`renderInput`],Ne=e=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(e),Pe=e=>Number(String(e).replace(/%/g,``)),Z=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-editable-input`,placement:r=`bottom`,label:i,value:a,className:o,style:s,labelStyle:c,inputStyle:l,onChange:u,onBlur:d,renderInput:f}=e,p=K(e,Me),[m,h]=(0,q.useState)(a),g=(0,q.useRef)(!1),_=(0,q.useRef)(p.id||n+`-`+Math.random().toString(36).slice(2,11)),v=p.id||_.current;(0,q.useEffect)(()=>{e.value!==m&&(g.current||h(e.value))},[e.value]);function y(e,t){var n=(t||e.target.value).trim().replace(/^#/,``);Ne(n)&&u&&u(e,n);var r=Pe(n);isNaN(r)||u&&u(e,r),h(n)}function b(t){g.current=!1,h(e.value),d&&d(t)}var x={};r===`bottom`&&(x.flexDirection=`column`),r===`top`&&(x.flexDirection=`column-reverse`),r===`left`&&(x.flexDirection=`row-reverse`);var S=I({"--editable-input-label-color":`rgb(153, 153, 153)`,"--editable-input-box-shadow":`rgb(204 204 204) 0px 0px 0px 1px inset`,"--editable-input-color":`#666`,position:`relative`,alignItems:`center`,display:`flex`,fontSize:11},x,s),C=I({width:`100%`,paddingTop:2,paddingBottom:2,paddingLeft:3,paddingRight:3,fontSize:11,background:`transparent`,boxSizing:`border-box`,border:`none`,color:`var(--editable-input-color)`,boxShadow:`var(--editable-input-box-shadow)`},l),w=I({value:m,onChange:y,onBlur:b,autoComplete:`off`,onFocus:()=>g.current=!0},p,{id:v,style:C,onFocusCapture:e=>{var t=e.target;t.setSelectionRange(t.value.length,t.value.length)}});return(0,Y.jsxs)(`div`,{className:[n,o||``].filter(Boolean).join(` `),style:S,children:[f?f(w,t):(0,Y.jsx)(`input`,I({ref:t},w)),i&&(0,Y.jsx)(`label`,{htmlFor:v,style:I({color:`var(--editable-input-label-color)`,textTransform:`capitalize`},c),children:i})]})});Z.displayName=`EditableInput`;var Fe=[`prefixCls`,`className`,`color`,`colors`,`style`,`rectProps`,`onChange`,`addonAfter`,`addonBefore`,`rectRender`],Ie=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-swatch`,className:r,color:i,colors:a=[],style:o,rectProps:s={},onChange:c,addonAfter:l,addonBefore:u,rectRender:d}=e,f=K(e,Fe),p=I({"--swatch-background-color":`rgb(144, 19, 254)`,background:`var(--swatch-background-color)`,height:15,width:15,marginRight:5,marginBottom:5,cursor:`pointer`,position:`relative`,outline:`none`,borderRadius:2},s.style),m=(e,t)=>{c&&c(V(e),W(V(e)),t)};return(0,Y.jsxs)(`div`,I({ref:t},f,{className:[n,r||``].filter(Boolean).join(` `),style:I({display:`flex`,flexWrap:`wrap`,position:`relative`},o),children:[u&&q.isValidElement(u)&&u,a&&Array.isArray(a)&&a.map((e,t)=>{var n=``,r=``;typeof e==`string`&&(n=e,r=e),typeof e==`object`&&e.color&&(n=e.title||e.color,r=e.color);var a=i&&i.toLocaleLowerCase()===r.toLocaleLowerCase(),o=d&&d({title:n,color:r,checked:!!a,style:I({},p,{background:r}),onClick:e=>m(r,e)});if(o)return(0,Y.jsx)(q.Fragment,{children:o},t);var c=s.children&&q.isValidElement(s.children)?q.cloneElement(s.children,{color:r,checked:a}):null;return(0,Y.jsx)(`div`,I({tabIndex:0,title:n,onClick:e=>m(r,e)},s,{children:c,style:I({},p,{background:r})}),t)}),l&&q.isValidElement(l)&&l]}))});Ie.displayName=`Swatch`;function Le(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var Re={marginRight:0,marginBottom:0,borderRadius:0,boxSizing:`border-box`,height:25,width:25};function ze(e){var{style:t,title:n,checked:r,color:i,onClick:a,rectProps:o}=e,s=(0,q.useRef)(null),c=(0,q.useCallback)(()=>{s.current.style.zIndex=`2`,s.current.style.outline=`#fff solid 2px`,s.current.style.boxShadow=`rgb(0 0 0 / 25%) 0 0 5px 2px`},[]),l=(0,q.useCallback)(()=>{r||(s.current.style.zIndex=`0`,s.current.style.outline=`initial`,s.current.style.boxShadow=`initial`)},[r]);return(0,Y.jsx)(`div`,I({ref:s,title:n},o,{onClick:a,onMouseEnter:c,onMouseLeave:l,style:I({},t,{marginRight:0,marginBottom:0,borderRadius:0,boxSizing:`border-box`,height:25,width:25},Re,r?{zIndex:1,outline:`#fff solid 2px`,boxShadow:`rgb(0 0 0 / 25%) 0 0 5px 2px`}:{zIndex:0},o?.style)}))}var Be=[`prefixCls`,`placement`,`className`,`style`,`color`,`colors`,`showTriangle`,`rectProps`,`onChange`,`rectRender`],Ve=[`#B80000`,`#DB3E00`,`#FCCB00`,`#008B02`,`#006B76`,`#1273DE`,`#004DCF`,`#5300EB`,`#EB9694`,`#FAD0C3`,`#FEF3BD`,`#C1E1C5`,`#BEDADC`,`#C4DEF6`,`#BED3F3`,`#D4C4FB`],Q=function(e){return e.Left=`L`,e.LeftTop=`LT`,e.LeftBottom=`LB`,e.Right=`R`,e.RightTop=`RT`,e.RightBottom=`RB`,e.Top=`T`,e.TopRight=`TR`,e.TopLeft=`TL`,e.Bottom=`B`,e.BottomLeft=`BL`,e.BottomRight=`BR`,e}({}),He=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-github`,placement:r=Q.TopRight,className:i,style:a,color:o,colors:s=Ve,showTriangle:c=!0,rectProps:l={},onChange:u,rectRender:d}=e,f=K(e,Be),p=typeof o==`string`&&G(o)?V(o):o,m=o?U(p):``,h=e=>u&&u(W(e)),g=I({"--github-border":`1px solid rgba(0, 0, 0, 0.2)`,"--github-background-color":`#fff`,"--github-box-shadow":`rgb(0 0 0 / 15%) 0px 3px 12px`,"--github-arrow-border-color":`rgba(0, 0, 0, 0.15)`,width:200,borderRadius:4,background:`var(--github-background-color)`,boxShadow:`var(--github-box-shadow)`,border:`var(--github-border)`,position:`relative`,padding:5},a),_={borderStyle:`solid`,position:`absolute`},v=I({},_),y=I({},_);return/^T/.test(r)&&(v.borderWidth=`0 8px 8px`,v.borderColor=`transparent transparent var(--github-arrow-border-color)`,y.borderWidth=`0 7px 7px`,y.borderColor=`transparent transparent var(--github-background-color)`),r===Q.TopRight&&(v.top=-8,y.top=-7),r===Q.Top&&(v.top=-8,y.top=-7),r===Q.TopLeft&&(v.top=-8,y.top=-7),/^B/.test(r)&&(v.borderWidth=`8px 8px 0`,v.borderColor=`var(--github-arrow-border-color) transparent transparent`,y.borderWidth=`7px 7px 0`,y.borderColor=`var(--github-background-color) transparent transparent`,r===Q.BottomRight&&(v.top=`100%`,y.top=`100%`),r===Q.Bottom&&(v.top=`100%`,y.top=`100%`),r===Q.BottomLeft&&(v.top=`100%`,y.top=`100%`)),/^(B|T)/.test(r)&&((r===Q.Top||r===Q.Bottom)&&(v.left=`50%`,v.marginLeft=-8,y.left=`50%`,y.marginLeft=-7),(r===Q.TopRight||r===Q.BottomRight)&&(v.right=10,y.right=11),(r===Q.TopLeft||r===Q.BottomLeft)&&(v.left=7,y.left=8)),/^L/.test(r)&&(v.borderWidth=`8px 8px 8px 0`,v.borderColor=`transparent var(--github-arrow-border-color) transparent transparent`,y.borderWidth=`7px 7px 7px 0`,y.borderColor=`transparent var(--github-background-color) transparent transparent`,v.left=-8,y.left=-7),/^R/.test(r)&&(v.borderWidth=`8px 0 8px 8px`,v.borderColor=`transparent transparent transparent var(--github-arrow-border-color)`,y.borderWidth=`7px 0 7px 7px`,y.borderColor=`transparent transparent transparent var(--github-background-color)`,v.right=-8,y.right=-7),/^(L|R)/.test(r)&&((r===Q.RightTop||r===Q.LeftTop)&&(v.top=5,y.top=6),(r===Q.Left||r===Q.Right)&&(v.top=`50%`,y.top=`50%`,v.marginTop=-8,y.marginTop=-7),(r===Q.LeftBottom||r===Q.RightBottom)&&(v.top=`100%`,y.top=`100%`,v.marginTop=-21,y.marginTop=-20)),(0,Y.jsx)(Ie,I({ref:t,className:[n,i].filter(Boolean).join(` `),colors:s,color:m,rectRender:e=>{var t=I({},(Le(e),e));return d&&d(I({},t))||(0,Y.jsx)(ze,I({},t,{rectProps:l}))}},f,{onChange:h,style:g,rectProps:{style:{marginRight:0,marginBottom:0,borderRadius:0,height:25,width:25}},addonBefore:(0,Y.jsx)(q.Fragment,{children:c&&(0,Y.jsxs)(q.Fragment,{children:[(0,Y.jsx)(`div`,{style:v}),(0,Y.jsx)(`div`,{style:y})]})})}))});He.displayName=`Github`;var Ue=e=>{var{className:t,color:n,left:r,top:i,prefixCls:a}=e,o={position:`absolute`,top:i,left:r},s={"--saturation-pointer-box-shadow":`rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px`,width:6,height:6,transform:`translate(-3px, -3px)`,boxShadow:`var(--saturation-pointer-box-shadow)`,borderRadius:`50%`,backgroundColor:n};return(0,q.useMemo)(()=>(0,Y.jsx)(`div`,{className:a+`-pointer `+(t||``),style:o,children:(0,Y.jsx)(`div`,{className:a+`-fill`,style:s})}),[i,r,n,t,a])},We=[`prefixCls`,`radius`,`pointer`,`className`,`hue`,`style`,`hsva`,`onChange`],Ge=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-saturation`,radius:r=0,pointer:i,className:a,hue:o=0,style:s,hsva:c,onChange:l}=e,u=K(e,We),d=I({width:200,height:200,borderRadius:r},s,{position:`relative`}),f=(0,q.useRef)(null),p=(0,q.useCallback)(e=>{f.current=e,typeof t==`function`?t(e):t&&`current`in t&&(t.current=e)},[t]),m=(0,q.useCallback)((e,t)=>{l&&c&&l({h:c.h,s:e.left*100,v:(1-e.top)*100,a:c.a});var n=f.current;n&&n.focus()},[c,l]),h=(0,q.useCallback)(e=>{if(!(!c||!l)){var t=1,n=c.s,r=c.v,i=!1;switch(e.key){case`ArrowLeft`:n=Math.max(0,c.s-t),i=!0,e.preventDefault();break;case`ArrowRight`:n=Math.min(100,c.s+t),i=!0,e.preventDefault();break;case`ArrowUp`:r=Math.min(100,c.v+t),i=!0,e.preventDefault();break;case`ArrowDown`:r=Math.max(0,c.v-t),i=!0,e.preventDefault();break;default:return}i&&l({h:c.h,s:n,v:r,a:c.a})}},[c,l]),g=(0,q.useMemo)(()=>{if(!c)return null;var e={top:100-c.v+`%`,left:c.s+`%`,color:de(c)};return i&&typeof i==`function`?i(I({prefixCls:n},e)):(0,Y.jsx)(Ue,I({prefixCls:n},e))},[c,i,n]),_=(0,q.useCallback)(e=>{e.target.focus()},[]);return(0,Y.jsx)(De,I({className:[n,a||``].filter(Boolean).join(` `)},u,{style:I({position:`absolute`,inset:0,cursor:`crosshair`,backgroundImage:`linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, hsl(`+(c?.h??o)+`, 100%, 50%))`},d,{outline:`none`}),ref:p,onMove:m,onDown:m,onKeyDown:h,onClick:_,children:g}))});Ge.displayName=`Saturation`;var Ke=[`prefixCls`,`className`,`hue`,`onChange`,`direction`,`reverse`],qe=`rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%`,Je=`rgb(255, 0, 0) 0%, rgb(255, 0, 255) 17%, rgb(0, 0, 255) 33%, rgb(0, 255, 255) 50%, rgb(0, 255, 0) 67%, rgb(255, 255, 0) 83%, rgb(255, 0, 0) 100%`,Ye=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-hue`,className:r,hue:i=0,onChange:a,direction:o=`horizontal`,reverse:s=!1}=e,c=K(e,Ke),l=(0,q.useCallback)(()=>o===`horizontal`?`linear-gradient(to right, `+(s?Je:qe)+`)`:`linear-gradient(to bottom, `+(s?qe:Je)+`)`,[o,s]),u=(0,q.useCallback)(e=>{var t=o===`horizontal`?e.left:e.top;return 360*(o===`horizontal`?s?1-t:t:s?t:1-t)},[o,s]),d=(0,q.useMemo)(()=>l(),[l]);return(0,Y.jsx)(X,I({ref:t,className:n+` `+(r||``)},c,{direction:o,reverse:s,background:d,hsva:{h:i,s:100,v:100,a:i/360},onChange:(e,t)=>{a&&a({h:u(t)})}}))});Ye.displayName=`Hue`;var Xe=[`prefixCls`,`hsva`,`placement`,`rProps`,`gProps`,`bProps`,`aProps`,`className`,`style`,`onChange`],Ze=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-editable-input-rgba`,hsva:r,placement:i=`bottom`,rProps:a={},gProps:o={},bProps:s={},aProps:c={},className:l,style:u,onChange:d}=e,f=K(e,Xe),p=r?H(r):{};function m(e){var t=Number(e.target.value);t&&t>255&&(e.target.value=`255`),t&&t<0&&(e.target.value=`0`)}var h=e=>{var t=Number(e.target.value);t&&t>100&&(e.target.value=`100`),t&&t<0&&(e.target.value=`0`)},g=(e,t,n)=>{typeof e==`number`&&(t===`a`&&(e<0&&(e=0),e>100&&(e=100),d&&d(W(z(I({},p,{a:e/100}))))),e>255&&(e=255,n.target.value=`255`),e<0&&(e=0,n.target.value=`0`),t===`r`&&d&&d(W(z(I({},p,{r:e})))),t===`g`&&d&&d(W(z(I({},p,{g:e})))),t===`b`&&d&&d(W(z(I({},p,{b:e})))))},_=p.a?Math.round(p.a*100)/100:0;return(0,Y.jsxs)(`div`,I({ref:t,className:[n,l||``].filter(Boolean).join(` `)},f,{style:I({fontSize:11,display:`flex`},u),children:[(0,Y.jsx)(Z,I({label:`R`,value:p.r||0,onBlur:m,placement:i,onChange:(e,t)=>g(t,`r`,e)},a,{style:I({},a.style)})),(0,Y.jsx)(Z,I({label:`G`,value:p.g||0,onBlur:m,placement:i,onChange:(e,t)=>g(t,`g`,e)},o,{style:I({marginLeft:5},o.style)})),(0,Y.jsx)(Z,I({label:`B`,value:p.b||0,onBlur:m,placement:i,onChange:(e,t)=>g(t,`b`,e)},s,{style:I({marginLeft:5},s.style)})),c&&(0,Y.jsx)(Z,I({label:`A`,value:parseInt(String(_*100),10),onBlur:h,placement:i,onChange:(e,t)=>g(t,`a`,e)},c,{style:I({marginLeft:5},c.style)}))]}))});Ze.displayName=`EditableInputRGBA`;var Qe=[`prefixCls`,`hsva`,`hProps`,`sProps`,`lProps`,`aProps`,`className`,`onChange`],$e=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-editable-input-hsla`,hsva:r,hProps:i={},sProps:a={},lProps:o={},aProps:s={},className:c,onChange:l}=e,u=K(e,Qe),d=r?fe(r):{h:0,s:0,l:0,a:0},f=(e,t,n)=>{typeof e==`number`&&(t===`h`&&(e<0&&(e=0),e>360&&(e=360),l&&l(W(B(I({},d,{h:e}))))),t===`s`&&(e<0&&(e=0),e>100&&(e=100),l&&l(W(B(I({},d,{s:e}))))),t===`l`&&(e<0&&(e=0),e>100&&(e=100),l&&l(W(B(I({},d,{l:e}))))),t===`a`&&(e<0&&(e=0),e>1&&(e=1),l&&l(W(B(I({},d,{a:e}))))))},p=s==0?!1:I({label:`A`,value:Math.round(d.a*100)/100},s,{onChange:(e,t)=>f(t,`a`,e)});return(0,Y.jsx)(Ze,I({ref:t,hsva:r,rProps:I({label:`H`,value:Math.round(d.h)},i,{onChange:(e,t)=>f(t,`h`,e)}),gProps:I({label:`S`,value:Math.round(d.s)+`%`},a,{onChange:(e,t)=>f(t,`s`,e)}),bProps:I({label:`L`,value:Math.round(d.l)+`%`},o,{onChange:(e,t)=>f(t,`l`,e)}),aProps:p,className:[n,c||``].filter(Boolean).join(` `)},u))});$e.displayName=`EditableInputHSLA`;var et=[`style`];function tt(e){var{style:t}=e,n=K(e,et),r=(0,q.useRef)(null),i=(0,q.useCallback)(()=>{r.current.style.backgroundColor=`var(--chrome-arrow-background-color)`},[]),a=(0,q.useCallback)(()=>{r.current.style.backgroundColor=`transparent`},[]);return(0,Y.jsx)(`div`,I({ref:r,style:I({marginLeft:5,cursor:`pointer`,transition:`background-color .3s`,borderRadius:2},t)},n,{onMouseEnter:i,onMouseLeave:a,children:(0,Y.jsx)(`svg`,{viewBox:`0 0 1024 1024`,width:`24`,height:`24`,style:{display:`block`},children:(0,Y.jsx)(`path`,{d:`M373.888 576h276.224c9.322667 0 14.293333 11.178667 9.173333 18.773333l-1.258666 1.557334-138.112 146.858666a10.709333 10.709333 0 0 1-14.293334 1.365334l-1.536-1.365334-138.112-146.858666c-6.592-6.997333-2.666667-18.645333 5.973334-20.16l1.941333-0.170667h276.224-276.224z m146.026667-295.189333l138.112 146.858666c7.04 7.509333 2.069333 20.330667-7.914667 20.330667H373.888c-9.984 0-14.976-12.821333-7.914667-20.330667l138.112-146.858666a10.730667 10.730667 0 0 1 15.829334 0z`,fill:`var(--chrome-arrow-fill)`})})}))}function nt(){return`EyeDropper`in window}function rt(e){return(0,Y.jsx)(`svg`,{viewBox:`0 0 512 512`,height:`1em`,width:`1em`,onClick:()=>{`EyeDropper`in window&&new window.EyeDropper().open().then(t=>{e.onPickColor==null||e.onPickColor(t.sRGBHex)}).catch(e=>{e.name})},children:(0,Y.jsx)(`path`,{fill:`currentColor`,d:`M482.8 29.23c38.9 38.98 38.9 102.17 0 141.17L381.2 271.9l9.4 9.5c12.5 12.5 12.5 32.7 0 45.2s-32.7 12.5-45.2 0l-160-160c-12.5-12.5-12.5-32.7 0-45.2s32.7-12.5 45.2 0l9.5 9.4L341.6 29.23c39-38.974 102.2-38.974 141.2 0zM55.43 323.3 176.1 202.6l45.3 45.3-120.7 120.7c-3.01 3-4.7 7-4.7 11.3V416h36.1c4.3 0 8.3-1.7 11.3-4.7l120.7-120.7 45.3 45.3-120.7 120.7c-15 15-35.4 23.4-56.6 23.4H89.69l-39.94 26.6c-12.69 8.5-29.59 6.8-40.377-4-10.786-10.8-12.459-27.7-3.998-40.4L32 422.3v-42.4c0-21.2 8.43-41.6 23.43-56.6z`})})}var it=[`prefixCls`,`className`,`style`,`color`,`showEditableInput`,`showEyeDropper`,`showColorPreview`,`showHue`,`showAlpha`,`inputType`,`rectProps`,`onChange`],$=function(e){return e.HEXA=`hexa`,e.RGBA=`rgba`,e.HSLA=`hsla`,e}({}),at=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-chrome`,className:r,style:i,color:a,showEditableInput:o=!0,showEyeDropper:s=!0,showColorPreview:c=!0,showHue:l=!0,showAlpha:u=!0,inputType:d=$.RGBA,rectProps:f={},onChange:p}=e,m=K(e,it),h=typeof a==`string`&&G(a)?V(a):a||{h:0,s:0,l:0,a:0},g=e=>p&&p(W(e)),[_,v]=(0,q.useState)(d),y=()=>{_===$.RGBA&&v($.HSLA),_===$.HSLA&&v($.HEXA),_===$.HEXA&&v($.RGBA)},b={paddingTop:6},x={textAlign:`center`,paddingTop:4,paddingBottom:4},S=I({"--chrome-arrow-fill":`#333`,"--chrome-arrow-background-color":`#e8e8e8`,borderRadius:0,flexDirection:`column`,width:230,padding:0},i),C={"--chrome-alpha-box-shadow":`rgb(0 0 0 / 25%) 0px 0px 1px inset`,borderRadius:`50%`,background:ge(h),boxShadow:`var(--chrome-alpha-box-shadow)`},w=e=>{g(I({},V(e)))},T={height:14,width:14},E={style:I({},T),fillProps:{style:T}};return(0,Y.jsx)(He,I({ref:t,color:h,style:S,colors:void 0,className:[n,r].filter(Boolean).join(` `),placement:Q.TopLeft},m,{addonAfter:(0,Y.jsxs)(q.Fragment,{children:[(0,Y.jsx)(Ge,{hsva:h,style:{width:`100%`,height:130},onChange:e=>{g(I({},h,e,{a:h.a}))}}),(0,Y.jsxs)(`div`,{style:{padding:15,display:`flex`,alignItems:`center`,gap:10},children:[nt()&&s&&(0,Y.jsx)(rt,{onPickColor:w}),c&&(0,Y.jsx)(X,{width:28,height:28,hsva:h,radius:2,style:{borderRadius:`50%`},bgProps:{style:{background:`transparent`}},innerProps:{style:C},pointer:()=>(0,Y.jsx)(q.Fragment,{})}),(0,Y.jsxs)(`div`,{style:{flex:1},children:[l==1&&(0,Y.jsx)(Ye,{hue:h.h,style:{width:`100%`,height:12,borderRadius:2},pointerProps:E,bgProps:{style:{borderRadius:2}},onChange:e=>{g(I({},h,e))}}),u==1&&(0,Y.jsx)(X,{hsva:h,style:{marginTop:6,height:12,borderRadius:2},pointerProps:E,bgProps:{style:{borderRadius:2}},onChange:e=>{g(I({},h,e))}})]})]}),o&&(0,Y.jsxs)(`div`,{style:{display:`flex`,alignItems:`flex-start`,padding:`0 15px 15px 15px`,userSelect:`none`},children:[(0,Y.jsxs)(`div`,{style:{flex:1},children:[_==$.RGBA&&(0,Y.jsx)(Ze,{hsva:h,rProps:{labelStyle:b,inputStyle:x},gProps:{labelStyle:b,inputStyle:x},bProps:{labelStyle:b,inputStyle:x},aProps:u==0?!1:{labelStyle:b,inputStyle:x},onChange:e=>g(e.hsva)}),_===$.HEXA&&(0,Y.jsx)(Z,{label:`HEX`,labelStyle:b,inputStyle:x,value:h.a>0&&h.a<1?ye(h).toLocaleUpperCase():U(h).toLocaleUpperCase(),onChange:(e,t)=>{typeof t==`string`&&g(V(/^#/.test(t)?t:`#`+t))}}),_===$.HSLA&&(0,Y.jsx)($e,{hsva:h,hProps:{labelStyle:b,inputStyle:x},sProps:{labelStyle:b,inputStyle:x},lProps:{labelStyle:b,inputStyle:x},aProps:u==0?!1:{labelStyle:b,inputStyle:x},onChange:e=>g(e.hsva)})]}),(0,Y.jsx)(tt,{onClick:y})]})]}),rectRender:()=>(0,Y.jsx)(q.Fragment,{})}))});at.displayName=`Chrome`;var ot=ee({backgroundColor:D().refine(ct,f()),backgroundImageUrl:D().url(v()).or(O(``)),checkoutName:D().min(1,a()),logoUrl:D().url(_()).or(O(``)),siteTitle:D().min(1,h()),supportUrl:D().url(o()).or(O(``))});function st(){let e=se(`brand`),t=oe(),a=ne({resolver:te(ot),defaultValues:{backgroundColor:``,backgroundImageUrl:``,checkoutName:``,logoUrl:``,siteTitle:``,supportUrl:``}});(0,q.useEffect)(()=>{let t=e.data?.data;t&&a.reset({backgroundColor:F(t,`brand.background_color`),backgroundImageUrl:F(t,`brand.background_image_url`),checkoutName:F(t,`brand.checkout_name`),logoUrl:F(t,`brand.logo_url`),siteTitle:F(t,`brand.site_title`),supportUrl:F(t,`brand.support_url`)})},[e.data,a]);async function o(){await ce(t.mutateAsync,[{group:`brand`,key:`brand.background_color`,type:`string`,value:``},{group:`brand`,key:`brand.background_image_url`,type:`string`,value:``},{group:`brand`,key:`brand.checkout_name`,type:`string`,value:``},{group:`brand`,key:`brand.logo_url`,type:`string`,value:``},{group:`brand`,key:`brand.site_title`,type:`string`,value:``},{group:`brand`,key:`brand.support_url`,type:`string`,value:``}],g()),await e.refetch()}async function s(n){await le(t.mutateAsync,[{group:`brand`,key:`brand.background_color`,type:`string`,value:n.backgroundColor},{group:`brand`,key:`brand.background_image_url`,type:`string`,value:n.backgroundImageUrl},{group:`brand`,key:`brand.checkout_name`,type:`string`,value:n.checkoutName},{group:`brand`,key:`brand.logo_url`,type:`string`,value:n.logoUrl},{group:`brand`,key:`brand.site_title`,type:`string`,value:n.siteTitle},{group:`brand`,key:`brand.support_url`,type:`string`,value:n.supportUrl}],r()),await e.refetch()}return(0,Y.jsx)(ie,{...a,children:(0,Y.jsxs)(`form`,{className:`space-y-6`,onSubmit:a.handleSubmit(s),children:[(0,Y.jsx)(A,{control:a.control,name:`checkoutName`,render:({field:e})=>(0,Y.jsxs)(k,{children:[(0,Y.jsx)(M,{children:x()}),(0,Y.jsx)(j,{children:(0,Y.jsx)(P,{...e})}),(0,Y.jsx)(N,{})]})}),(0,Y.jsx)(A,{control:a.control,name:`logoUrl`,render:({field:e})=>(0,Y.jsxs)(k,{children:[(0,Y.jsx)(M,{children:m()}),(0,Y.jsx)(j,{children:(0,Y.jsx)(P,{...e})}),(0,Y.jsx)(N,{})]})}),(0,Y.jsx)(A,{control:a.control,name:`siteTitle`,render:({field:e})=>(0,Y.jsxs)(k,{children:[(0,Y.jsx)(M,{children:u()}),(0,Y.jsx)(j,{children:(0,Y.jsx)(P,{...e})}),(0,Y.jsx)(N,{})]})}),(0,Y.jsx)(A,{control:a.control,name:`supportUrl`,render:({field:e})=>(0,Y.jsxs)(k,{children:[(0,Y.jsx)(M,{children:c()}),(0,Y.jsx)(j,{children:(0,Y.jsx)(P,{...e})}),(0,Y.jsx)(N,{})]})}),(0,Y.jsx)(A,{control:a.control,name:`backgroundColor`,render:({field:e})=>(0,Y.jsxs)(k,{children:[(0,Y.jsx)(M,{children:i()}),(0,Y.jsx)(j,{children:(0,Y.jsxs)(`div`,{className:`flex gap-2`,children:[(0,Y.jsxs)(E,{children:[(0,Y.jsx)(T,{asChild:!0,children:(0,Y.jsx)(C,{"aria-label":i(),className:`h-9 w-11 shrink-0 overflow-hidden border`,style:{background:e.value?e.value:`linear-gradient(45deg, #e5e7eb 25%, transparent 25%), linear-gradient(-45deg, #e5e7eb 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e5e7eb 75%), linear-gradient(-45deg, transparent 75%, #e5e7eb 75%)`,backgroundColor:e.value||`#ffffff`,backgroundPosition:`0 0, 0 6px, 6px -6px, -6px 0`,backgroundSize:`12px 12px`},type:`button`,variant:`outline`})}),(0,Y.jsx)(w,{align:`start`,className:`w-auto p-3`,children:(0,Y.jsx)(at,{color:lt(e.value),inputType:$.RGBA,onChange:t=>{e.onChange(ut(t))},showAlpha:!0,showEditableInput:!0,showEyeDropper:!1})})]}),(0,Y.jsx)(P,{...e,className:S(`font-mono`,!e.value&&`font-sans`),placeholder:`rgba(15, 23, 42, 0.72)`})]})}),(0,Y.jsx)(re,{children:p()}),(0,Y.jsx)(N,{})]})}),(0,Y.jsx)(A,{control:a.control,name:`backgroundImageUrl`,render:({field:e})=>(0,Y.jsxs)(k,{children:[(0,Y.jsx)(M,{children:d()}),(0,Y.jsx)(j,{children:(0,Y.jsx)(P,{...e})}),(0,Y.jsx)(N,{})]})}),(0,Y.jsxs)(`div`,{className:`flex gap-2`,children:[(0,Y.jsx)(C,{disabled:t.isPending||e.isLoading,type:`submit`,children:n()}),(0,Y.jsx)(C,{disabled:t.isPending,onClick:o,type:`button`,variant:`outline`,children:y()})]})]})})}function ct(e){let t=e.trim();if(!t)return!0;if(typeof CSS<`u`)return CSS.supports(`color`,t);try{return W(t),!0}catch{return!1}}function lt(e){try{return e.trim()?W(e).hsva:`#00000000`}catch{return`#00000000`}}function ut(e){let{r:t,g:n,b:r,a:i}=e.rgba;return`rgba(${t}, ${n}, ${r}, ${Number(i.toFixed(2))})`}function dt(){return(0,Y.jsx)(ae,{description:l(),title:s(),variant:`section`,children:(0,Y.jsx)(st,{})})}var ft=dt;export{ft as component}; \ No newline at end of file diff --git a/src/www/assets/show-submitted-data-C8ocsjDF.js b/src/www/assets/show-submitted-data-BqZb-_Pf.js similarity index 64% rename from src/www/assets/show-submitted-data-C8ocsjDF.js rename to src/www/assets/show-submitted-data-BqZb-_Pf.js index 7d6161e..3dc433d 100644 --- a/src/www/assets/show-submitted-data-C8ocsjDF.js +++ b/src/www/assets/show-submitted-data-BqZb-_Pf.js @@ -1 +1 @@ -import{em as e}from"./messages-Bp0bCjzp.js";import{n as t}from"./dist-BGqHIBUe.js";var n=e();function r(e,r=`You submitted the following values:`){t.message(r,{description:(0,n.jsx)(`pre`,{className:`mt-2 w-full overflow-x-auto rounded-md bg-slate-950 p-4`,children:(0,n.jsx)(`code`,{className:`text-white`,children:JSON.stringify(e,null,2)})})})}export{r as t}; \ No newline at end of file +import{tm as e}from"./messages-BOatyqUm.js";import{n as t}from"./dist-JOUh6qvR.js";var n=e();function r(e,r=`You submitted the following values:`){t.message(r,{description:(0,n.jsx)(`pre`,{className:`mt-2 w-full overflow-x-auto rounded-md bg-slate-950 p-4`,children:(0,n.jsx)(`code`,{className:`text-white`,children:JSON.stringify(e,null,2)})})})}export{r as t}; \ No newline at end of file diff --git a/src/www/assets/sidebar-nav-DDS5oBdd.js b/src/www/assets/sidebar-nav-LZqaVZGH.js similarity index 78% rename from src/www/assets/sidebar-nav-DDS5oBdd.js rename to src/www/assets/sidebar-nav-LZqaVZGH.js index b5d8049..08a8ae6 100644 --- a/src/www/assets/sidebar-nav-DDS5oBdd.js +++ b/src/www/assets/sidebar-nav-LZqaVZGH.js @@ -1 +1 @@ -import{Lt as e,em as t}from"./messages-Bp0bCjzp.js";import{t as n}from"./link-BYG8nKNO.js";import{t as r}from"./useNavigate-7u4DX0Ho.js";import{t as i}from"./useRouterState-B2FPPjEe.js";import{r as a}from"./search-provider-Bl2HDfcG.js";import{i as o,n as s}from"./button-BgMnOYKD.js";import{a as c,i as l,n as u,r as d,t as f}from"./select-C9s05In_.js";var p=t();function m({className:t,items:m,...h}){let g=r(),{location:_}=i(),v=m.find(e=>_.pathname===e.href)?.href??m[0]?.href??``;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`div`,{className:`p-1 md:hidden`,children:(0,p.jsxs)(f,{onValueChange:e=>{g({to:e})},value:v,children:[(0,p.jsx)(l,{className:`h-12 sm:w-48`,children:(0,p.jsx)(c,{placeholder:e()})}),(0,p.jsx)(u,{children:m.map(e=>(0,p.jsx)(d,{value:e.href,children:(0,p.jsxs)(`div`,{className:`flex gap-x-4 px-2 py-1`,children:[(0,p.jsx)(`span`,{className:`scale-125`,children:e.icon}),(0,p.jsx)(`span`,{className:`text-md`,children:e.title})]})},e.href))})]})}),(0,p.jsx)(a,{className:`hidden w-full min-w-40 bg-background px-1 py-2 md:block`,type:`always`,children:(0,p.jsx)(`nav`,{className:o(`flex space-x-2 py-1 lg:flex-col lg:space-x-0 lg:space-y-1`,t),...h,children:m.map(e=>(0,p.jsxs)(n,{activeOptions:{exact:!0},activeProps:{className:o(s({variant:`ghost`}),`justify-start bg-muted hover:bg-accent`)},className:o(s({variant:`ghost`}),`justify-start hover:bg-accent hover:underline`),to:e.href,children:[(0,p.jsx)(`span`,{className:`me-2`,children:e.icon}),e.title]},e.href))})})]})}export{m as t}; \ No newline at end of file +import{Lt as e,tm as t}from"./messages-BOatyqUm.js";import{t as n}from"./link-DPnL8P5J.js";import{t as r}from"./useNavigate-7u4DX0Ho.js";import{t as i}from"./useRouterState-B2FPPjEe.js";import{r as a}from"./search-provider-C-_FQI9C.js";import{i as o,n as s}from"./button-C_NDYaz8.js";import{a as c,i as l,n as u,r as d,t as f}from"./select-CzebumOF.js";var p=t();function m({className:t,items:m,...h}){let g=r(),{location:_}=i(),v=m.find(e=>_.pathname===e.href)?.href??m[0]?.href??``;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`div`,{className:`p-1 md:hidden`,children:(0,p.jsxs)(f,{onValueChange:e=>{g({to:e})},value:v,children:[(0,p.jsx)(l,{className:`h-12 sm:w-48`,children:(0,p.jsx)(c,{placeholder:e()})}),(0,p.jsx)(u,{children:m.map(e=>(0,p.jsx)(d,{value:e.href,children:(0,p.jsxs)(`div`,{className:`flex gap-x-4 px-2 py-1`,children:[(0,p.jsx)(`span`,{className:`scale-125`,children:e.icon}),(0,p.jsx)(`span`,{className:`text-md`,children:e.title})]})},e.href))})]})}),(0,p.jsx)(a,{className:`hidden w-full min-w-40 bg-background px-1 py-2 md:block`,type:`always`,children:(0,p.jsx)(`nav`,{className:o(`flex space-x-2 py-1 lg:flex-col lg:space-x-0 lg:space-y-1`,t),...h,children:m.map(e=>(0,p.jsxs)(n,{activeOptions:{exact:!0},activeProps:{className:o(s({variant:`ghost`}),`justify-start bg-muted hover:bg-accent`)},className:o(s({variant:`ghost`}),`justify-start hover:bg-accent hover:underline`),to:e.href,children:[(0,p.jsx)(`span`,{className:`me-2`,children:e.icon}),e.title]},e.href))})})]})}export{m as t}; \ No newline at end of file diff --git a/src/www/assets/sign-in-MWZiX7xb.js b/src/www/assets/sign-in-_ux3l1kN.js similarity index 62% rename from src/www/assets/sign-in-MWZiX7xb.js rename to src/www/assets/sign-in-_ux3l1kN.js index fbe0dc1..1316bb3 100644 --- a/src/www/assets/sign-in-MWZiX7xb.js +++ b/src/www/assets/sign-in-_ux3l1kN.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{a as t,r as n,s as r}from"./auth-store-Csn6HPxJ.js";import{t as i}from"./react-CO2uhaBc.js";import{Cd as a,Fu as o,Iu as s,Lu as c,Mu as l,Nu as u,Pu as d,Sd as f,_d as p,bd as m,em as h,gd as g,hd as _,ju as v,vd as y,wd as b,xd as x,yd as S}from"./messages-Bp0bCjzp.js";import{t as C}from"./useSearch-Diln-KYh.js";import{t as w}from"./useNavigate-7u4DX0Ho.js";import{i as T,t as E}from"./button-BgMnOYKD.js";import{t as D}from"./confirm-dialog-YmxNnOr3.js";import{t as O}from"./createLucideIcon-Br0Bd5k2.js";import{t as k}from"./loader-circle-DpEz1fQv.js";import{n as A}from"./dist-BGqHIBUe.js";import{c as j,s as M}from"./zod-rwFXxHlg.js";import{n as N}from"./auth-animation-context-CO6PD8ih.js";import{a as P,c as F,i as I,l as L,n as R,o as z,s as B,t as V}from"./form-BhKmyN6D.js";import{t as H}from"./input-BleRUV2A.js";import{t as U}from"./password-input-D8nK3bk7.js";var W=O(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),G=O(`log-in`,[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]]),K=O(`shield-alert`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]),q=e(i(),1),J=h(),Y=M({username:j().min(1,y()),password:j().min(1,p())});async function X(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest(`SHA-256`,t);return Array.from(new Uint8Array(n)).map(e=>e.toString(16).padStart(2,`0`)).join(``)}function Z({className:e,redirectTo:i,...a}){let f=w(),{setIsTyping:p,setPasswordLength:h,setShowPassword:y}=N(),b=t.useMutation(`post`,`/admin/api/v1/auth/login`),[C,O]=(0,q.useState)(!1),[j,M]=(0,q.useState)(null),Z=L({resolver:F(Y),defaultValues:{username:``,password:``}});(0,q.useEffect)(()=>()=>{p(!1),h(0),y(!1)},[p,h,y]);async function Q(e){let t=await b.mutateAsync({body:{username:e.username,password:e.password}});if(!t?.data?.token)return;n(t.data.token),A.success(_({username:t.data.username??e.username}));let a=!1;try{let[{data:t},{data:n}]=await Promise.all([r.GET(`/admin/api/v1/auth/me`),r.GET(`/admin/api/v1/auth/init-password-hash`)]),i=!!t?.data?.password_is_default,o=n?.data,s=o?.available&&!o.password_changed&&o.algorithm?.toLowerCase()===`sha256`&&!!o.password_hash;i?a=!0:s&&(a=(await X(e.password)).toLowerCase()===o.password_hash?.toLowerCase())}catch{}let o=i||`/dashboard`;if(a){M(o),O(!0);return}f({to:o,replace:!0})}function $(e){h(e.length)}function ee(){O(!1),f({to:`/account/password`,search:j?{redirect:j}:void 0,replace:!0})}return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(V,{...Z,children:(0,J.jsxs)(`form`,{className:T(`grid gap-3`,e),onSubmit:Z.handleSubmit(Q),...a,children:[(0,J.jsx)(I,{control:Z.control,name:`username`,render:({field:e})=>(0,J.jsxs)(P,{children:[(0,J.jsx)(z,{children:x()}),(0,J.jsx)(R,{children:(0,J.jsx)(H,{placeholder:m(),...e,onBlur:()=>{p(!1),e.onBlur()},onFocus:()=>p(!0)})}),(0,J.jsx)(B,{})]})}),(0,J.jsx)(I,{control:Z.control,name:`password`,render:({field:e})=>(0,J.jsxs)(P,{children:[(0,J.jsx)(z,{children:S()}),(0,J.jsx)(R,{children:(0,J.jsx)(U,{placeholder:`********`,...e,onBlur:()=>{p(!1),e.onBlur()},onChange:t=>{$(t.target.value),e.onChange(t)},onFocus:()=>p(!0),onVisibilityChange:y})}),(0,J.jsx)(B,{})]})}),(0,J.jsxs)(E,{className:`mt-2`,disabled:b.isPending,children:[b.isPending?(0,J.jsx)(k,{className:`animate-spin`}):(0,J.jsx)(G,{}),g()]})]})}),(0,J.jsx)(D,{className:`sm:max-w-xl`,confirmText:s(),desc:(0,J.jsxs)(`div`,{className:`space-y-4`,children:[(0,J.jsxs)(`div`,{className:`flex items-start gap-3 rounded-xl border border-amber-500/20 bg-amber-500/5 p-4`,children:[(0,J.jsx)(`div`,{className:`flex size-9 shrink-0 items-center justify-center rounded-lg bg-amber-500/12 text-amber-600 dark:text-amber-400`,children:(0,J.jsx)(K,{className:`size-4.5`})}),(0,J.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,J.jsx)(`p`,{className:`font-medium text-foreground text-sm`,children:o()}),(0,J.jsx)(`p`,{className:`text-muted-foreground text-sm leading-6`,children:d()})]})]}),(0,J.jsxs)(`div`,{className:`rounded-xl border bg-muted/20 p-4 text-muted-foreground text-sm leading-6`,children:[(0,J.jsxs)(`div`,{className:`mb-2 flex items-center gap-2 font-medium text-foreground`,children:[(0,J.jsx)(W,{className:`size-4`}),u()]}),(0,J.jsxs)(`ul`,{className:`list-disc space-y-1 pl-5`,children:[(0,J.jsx)(`li`,{children:l()}),(0,J.jsx)(`li`,{children:v()})]})]})]}),handleConfirm:ee,onOpenChange:O,open:C,title:c()})]})}function Q(){let{redirect:e}=C({from:`/(auth)/sign-in`});return(0,J.jsxs)(`div`,{className:`w-full space-y-6`,children:[(0,J.jsxs)(`div`,{className:`space-y-2`,children:[(0,J.jsx)(`p`,{className:`font-medium text-primary text-sm`,children:b()}),(0,J.jsx)(`h2`,{className:`font-semibold text-3xl tracking-tight`,children:a()}),(0,J.jsx)(`p`,{className:`text-muted-foreground leading-6`,children:f()})]}),(0,J.jsx)(Z,{redirectTo:e})]})}var $=Q;export{$ as component}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{a as t,r as n,s as r}from"./auth-store-De4Y7PFV.js";import{t as i}from"./react-CO2uhaBc.js";import{Cd as a,Fu as o,Iu as s,Lu as c,Mu as l,Nu as u,Pu as d,Sd as f,Td as p,_d as m,bd as h,gd as g,ju as _,tm as v,vd as y,wd as b,xd as x,yd as S}from"./messages-BOatyqUm.js";import{t as C}from"./useSearch-Diln-KYh.js";import{t as w}from"./useNavigate-7u4DX0Ho.js";import{i as T,t as E}from"./button-C_NDYaz8.js";import{t as D}from"./confirm-dialog-D1L-0EhT.js";import{t as O}from"./createLucideIcon-Br0Bd5k2.js";import{t as k}from"./loader-circle-DpEz1fQv.js";import{n as A}from"./dist-JOUh6qvR.js";import{c as j,s as M}from"./zod-rwFXxHlg.js";import{n as N}from"./auth-animation-context-CmPA3sF3.js";import{a as P,c as F,i as I,l as L,n as R,o as z,s as B,t as V}from"./form-KfFEakes.js";import{t as H}from"./input-8zzM34r5.js";import{t as U}from"./password-input-95hMTMdh.js";var W=O(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),G=O(`log-in`,[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]]),K=O(`shield-alert`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]),q=e(i(),1),J=v(),Y=M({username:j().min(1,S()),password:j().min(1,y())});async function X(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest(`SHA-256`,t);return Array.from(new Uint8Array(n)).map(e=>e.toString(16).padStart(2,`0`)).join(``)}function Z({className:e,redirectTo:i,...a}){let p=w(),{setIsTyping:v,setPasswordLength:y,setShowPassword:b}=N(),S=t.useMutation(`post`,`/admin/api/v1/auth/login`),[C,O]=(0,q.useState)(!1),[j,M]=(0,q.useState)(null),Z=L({resolver:F(Y),defaultValues:{username:``,password:``}});(0,q.useEffect)(()=>()=>{v(!1),y(0),b(!1)},[v,y,b]);async function Q(e){let t=await S.mutateAsync({body:{username:e.username,password:e.password}});if(!t?.data?.token)return;n(t.data.token),A.success(g({username:t.data.username??e.username}));let a=!1;try{let[{data:t},{data:n}]=await Promise.all([r.GET(`/admin/api/v1/auth/me`),r.GET(`/admin/api/v1/auth/init-password-hash`)]),i=!!t?.data?.password_is_default,o=n?.data,s=o?.available&&!o.password_changed&&o.algorithm?.toLowerCase()===`sha256`&&!!o.password_hash;i?a=!0:s&&(a=(await X(e.password)).toLowerCase()===o.password_hash?.toLowerCase())}catch{}let o=i||`/dashboard`;if(a){M(o),O(!0);return}p({to:o,replace:!0})}function $(e){y(e.length)}function ee(){O(!1),p({to:`/account/password`,search:j?{redirect:j}:void 0,replace:!0})}return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(V,{...Z,children:(0,J.jsxs)(`form`,{className:T(`grid gap-3`,e),onSubmit:Z.handleSubmit(Q),...a,children:[(0,J.jsx)(I,{control:Z.control,name:`username`,render:({field:e})=>(0,J.jsxs)(P,{children:[(0,J.jsx)(z,{children:f()}),(0,J.jsx)(R,{children:(0,J.jsx)(H,{placeholder:x(),...e,onBlur:()=>{v(!1),e.onBlur()},onFocus:()=>v(!0)})}),(0,J.jsx)(B,{})]})}),(0,J.jsx)(I,{control:Z.control,name:`password`,render:({field:e})=>(0,J.jsxs)(P,{children:[(0,J.jsx)(z,{children:h()}),(0,J.jsx)(R,{children:(0,J.jsx)(U,{placeholder:`********`,...e,onBlur:()=>{v(!1),e.onBlur()},onChange:t=>{$(t.target.value),e.onChange(t)},onFocus:()=>v(!0),onVisibilityChange:b})}),(0,J.jsx)(B,{})]})}),(0,J.jsxs)(E,{className:`mt-2`,disabled:S.isPending,children:[S.isPending?(0,J.jsx)(k,{className:`animate-spin`}):(0,J.jsx)(G,{}),m()]})]})}),(0,J.jsx)(D,{className:`sm:max-w-xl`,confirmText:s(),desc:(0,J.jsxs)(`div`,{className:`space-y-4`,children:[(0,J.jsxs)(`div`,{className:`flex items-start gap-3 rounded-xl border border-amber-500/20 bg-amber-500/5 p-4`,children:[(0,J.jsx)(`div`,{className:`flex size-9 shrink-0 items-center justify-center rounded-lg bg-amber-500/12 text-amber-600 dark:text-amber-400`,children:(0,J.jsx)(K,{className:`size-4.5`})}),(0,J.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,J.jsx)(`p`,{className:`font-medium text-foreground text-sm`,children:o()}),(0,J.jsx)(`p`,{className:`text-muted-foreground text-sm leading-6`,children:d()})]})]}),(0,J.jsxs)(`div`,{className:`rounded-xl border bg-muted/20 p-4 text-muted-foreground text-sm leading-6`,children:[(0,J.jsxs)(`div`,{className:`mb-2 flex items-center gap-2 font-medium text-foreground`,children:[(0,J.jsx)(W,{className:`size-4`}),u()]}),(0,J.jsxs)(`ul`,{className:`list-disc space-y-1 pl-5`,children:[(0,J.jsx)(`li`,{children:l()}),(0,J.jsx)(`li`,{children:_()})]})]})]}),handleConfirm:ee,onOpenChange:O,open:C,title:c()})]})}function Q(){let{redirect:e}=C({from:`/(auth)/sign-in`});return(0,J.jsxs)(`div`,{className:`w-full space-y-6`,children:[(0,J.jsxs)(`div`,{className:`space-y-2`,children:[(0,J.jsx)(`p`,{className:`font-medium text-primary text-sm`,children:p()}),(0,J.jsx)(`h2`,{className:`font-semibold text-3xl tracking-tight`,children:b()}),(0,J.jsx)(`p`,{className:`text-muted-foreground leading-6`,children:a()})]}),(0,J.jsx)(Z,{redirectTo:e})]})}var $=Q;export{$ as component}; \ No newline at end of file diff --git a/src/www/assets/skeleton-BQsmx80h.js b/src/www/assets/skeleton-CmDjDV1O.js similarity index 65% rename from src/www/assets/skeleton-BQsmx80h.js rename to src/www/assets/skeleton-CmDjDV1O.js index 3c68a6d..f0043e9 100644 --- a/src/www/assets/skeleton-BQsmx80h.js +++ b/src/www/assets/skeleton-CmDjDV1O.js @@ -1 +1 @@ -import{em as e}from"./messages-Bp0bCjzp.js";import{i as t}from"./button-BgMnOYKD.js";import{t as n}from"./createLucideIcon-Br0Bd5k2.js";var r=n(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),i=e();function a({className:e,...n}){return(0,i.jsx)(`div`,{className:t(`animate-pulse rounded-md bg-accent`,e),"data-slot":`skeleton`,...n})}export{r as n,a as t}; \ No newline at end of file +import{tm as e}from"./messages-BOatyqUm.js";import{i as t}from"./button-C_NDYaz8.js";import{t as n}from"./createLucideIcon-Br0Bd5k2.js";var r=n(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),i=e();function a({className:e,...n}){return(0,i.jsx)(`div`,{className:t(`animate-pulse rounded-md bg-accent`,e),"data-slot":`skeleton`,...n})}export{r as n,a as t}; \ No newline at end of file diff --git a/src/www/assets/switch-CVYl00Vs.js b/src/www/assets/switch-CgoJjvdz.js similarity index 89% rename from src/www/assets/switch-CVYl00Vs.js rename to src/www/assets/switch-CgoJjvdz.js index c89ff16..10234bd 100644 --- a/src/www/assets/switch-CVYl00Vs.js +++ b/src/www/assets/switch-CgoJjvdz.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";import{t as r}from"./dist-BFnxq45V.js";import{i,u as a}from"./button-BgMnOYKD.js";import{a as o,r as s,t as c}from"./dist-CKFLmh1A.js";import{t as l}from"./dist-BixeH3nX.js";import{t as u}from"./dist-DGDEBCW9.js";var d=e(t(),1),f=n(),p=`Switch`,[m,h]=o(p),[g,_]=m(p),v=d.forwardRef((e,t)=>{let{__scopeSwitch:n,name:i,checked:o,defaultChecked:l,required:u,disabled:m,value:h=`on`,onCheckedChange:_,form:v,...y}=e,[b,x]=d.useState(null),w=a(t,e=>x(e)),T=d.useRef(!1),E=b?v||!!b.closest(`form`):!0,[D,O]=c({prop:o,defaultProp:l??!1,onChange:_,caller:p});return(0,f.jsxs)(g,{scope:n,checked:D,disabled:m,children:[(0,f.jsx)(r.button,{type:`button`,role:`switch`,"aria-checked":D,"aria-required":u,"data-state":C(D),"data-disabled":m?``:void 0,disabled:m,value:h,...y,ref:w,onClick:s(e.onClick,e=>{O(e=>!e),E&&(T.current=e.isPropagationStopped(),T.current||e.stopPropagation())})}),E&&(0,f.jsx)(S,{control:b,bubbles:!T.current,name:i,value:h,checked:D,required:u,disabled:m,form:v,style:{transform:`translateX(-100%)`}})]})});v.displayName=p;var y=`SwitchThumb`,b=d.forwardRef((e,t)=>{let{__scopeSwitch:n,...i}=e,a=_(y,n);return(0,f.jsx)(r.span,{"data-state":C(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t})});b.displayName=y;var x=`SwitchBubbleInput`,S=d.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...i},o)=>{let s=d.useRef(null),c=a(s,o),p=l(n),m=u(t);return d.useEffect(()=>{let e=s.current;if(!e)return;let t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,`checked`).set;if(p!==n&&i){let t=new Event(`click`,{bubbles:r});i.call(e,n),e.dispatchEvent(t)}},[p,n,r]),(0,f.jsx)(`input`,{type:`checkbox`,"aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:c,style:{...i.style,...m,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0}})});S.displayName=x;function C(e){return e?`checked`:`unchecked`}var w=v,T=b;function E({className:e,size:t=`default`,...n}){return(0,f.jsx)(w,{className:i(`peer group/switch inline-flex shrink-0 cursor-pointer items-center rounded-full border border-transparent shadow-xs outline-none transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=sm]:h-3.5 data-[size=default]:w-8 data-[size=sm]:w-6 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80`,e),"data-size":t,"data-slot":`switch`,...n,children:(0,f.jsx)(T,{className:i(`pointer-events-none block rounded-full bg-background ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground`),"data-slot":`switch-thumb`})})}export{E as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./dist-Cc8_LDAq.js";import{i,u as a}from"./button-C_NDYaz8.js";import{a as o,r as s,t as c}from"./dist-DPPquN_M.js";import{t as l}from"./dist-BixeH3nX.js";import{t as u}from"./dist-ZdRQQNeu.js";var d=e(t(),1),f=n(),p=`Switch`,[m,h]=o(p),[g,_]=m(p),v=d.forwardRef((e,t)=>{let{__scopeSwitch:n,name:i,checked:o,defaultChecked:l,required:u,disabled:m,value:h=`on`,onCheckedChange:_,form:v,...y}=e,[b,x]=d.useState(null),w=a(t,e=>x(e)),T=d.useRef(!1),E=b?v||!!b.closest(`form`):!0,[D,O]=c({prop:o,defaultProp:l??!1,onChange:_,caller:p});return(0,f.jsxs)(g,{scope:n,checked:D,disabled:m,children:[(0,f.jsx)(r.button,{type:`button`,role:`switch`,"aria-checked":D,"aria-required":u,"data-state":C(D),"data-disabled":m?``:void 0,disabled:m,value:h,...y,ref:w,onClick:s(e.onClick,e=>{O(e=>!e),E&&(T.current=e.isPropagationStopped(),T.current||e.stopPropagation())})}),E&&(0,f.jsx)(S,{control:b,bubbles:!T.current,name:i,value:h,checked:D,required:u,disabled:m,form:v,style:{transform:`translateX(-100%)`}})]})});v.displayName=p;var y=`SwitchThumb`,b=d.forwardRef((e,t)=>{let{__scopeSwitch:n,...i}=e,a=_(y,n);return(0,f.jsx)(r.span,{"data-state":C(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t})});b.displayName=y;var x=`SwitchBubbleInput`,S=d.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...i},o)=>{let s=d.useRef(null),c=a(s,o),p=l(n),m=u(t);return d.useEffect(()=>{let e=s.current;if(!e)return;let t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,`checked`).set;if(p!==n&&i){let t=new Event(`click`,{bubbles:r});i.call(e,n),e.dispatchEvent(t)}},[p,n,r]),(0,f.jsx)(`input`,{type:`checkbox`,"aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:c,style:{...i.style,...m,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0}})});S.displayName=x;function C(e){return e?`checked`:`unchecked`}var w=v,T=b;function E({className:e,size:t=`default`,...n}){return(0,f.jsx)(w,{className:i(`peer group/switch inline-flex shrink-0 cursor-pointer items-center rounded-full border border-transparent shadow-xs outline-none transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=sm]:h-3.5 data-[size=default]:w-8 data-[size=sm]:w-6 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80`,e),"data-size":t,"data-slot":`switch`,...n,children:(0,f.jsx)(T,{className:i(`pointer-events-none block rounded-full bg-background ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground`),"data-slot":`switch-thumb`})})}export{E as t}; \ No newline at end of file diff --git a/src/www/assets/system-CcMhRmKJ.js b/src/www/assets/system-CzKDOsCg.js similarity index 73% rename from src/www/assets/system-CcMhRmKJ.js rename to src/www/assets/system-CzKDOsCg.js index 46a5823..f2b71b6 100644 --- a/src/www/assets/system-CcMhRmKJ.js +++ b/src/www/assets/system-CzKDOsCg.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{$n as n,Cr as r,Dr as i,Er as a,Or as o,Qn as s,Tr as c,Xn as l,Zn as u,em as d,er as f,tr as p,wr as m}from"./messages-Bp0bCjzp.js";import{t as h}from"./button-BgMnOYKD.js";import{a as g,i as _,n as v,r as y,t as b}from"./select-C9s05In_.js";import{r as x,s as S}from"./zod-rwFXxHlg.js";import{a as C,c as w,i as T,l as E,n as D,o as O,r as k,s as A,t as j}from"./form-BhKmyN6D.js";import{t as M}from"./page-header-CDwG3nxs.js";import{a as N,i as P,n as F,r as I,t as L}from"./lib-DCke3ZPi.js";var R=e(t(),1),z=d(),B=S({logLevel:x([`debug`,`info`,`warn`,`error`])});function V(){let e=P(`system`),t=N(),i=E({resolver:w(B),defaultValues:{logLevel:`error`}});(0,R.useEffect)(()=>{let t=e.data?.data;t&&i.reset({logLevel:H(L(t,`system.log_level`,`error`))})},[e.data,i]);async function o(){await F(t.mutateAsync,[{group:`system`,key:`system.log_level`,type:`string`,value:``}],c()),await e.refetch()}async function d(n){await I(t.mutateAsync,[{group:`system`,key:`system.log_level`,type:`string`,value:n.logLevel}],a()),await e.refetch()}return(0,z.jsx)(j,{...i,children:(0,z.jsxs)(`form`,{className:`space-y-6`,onSubmit:i.handleSubmit(d),children:[(0,z.jsx)(T,{control:i.control,name:`logLevel`,render:({field:e})=>(0,z.jsxs)(C,{children:[(0,z.jsx)(O,{children:p()}),(0,z.jsxs)(b,{onValueChange:e.onChange,value:e.value,children:[(0,z.jsx)(D,{children:(0,z.jsx)(_,{className:`w-full`,children:(0,z.jsx)(g,{})})}),(0,z.jsxs)(v,{children:[(0,z.jsx)(y,{value:`debug`,children:n()}),(0,z.jsx)(y,{value:`info`,children:s()}),(0,z.jsx)(y,{value:`warn`,children:u()}),(0,z.jsx)(y,{value:`error`,children:l()})]})]}),(0,z.jsx)(k,{children:f()}),(0,z.jsx)(A,{})]})}),(0,z.jsxs)(`div`,{className:`flex gap-2`,children:[(0,z.jsx)(h,{disabled:t.isPending||e.isLoading,type:`submit`,children:m()}),(0,z.jsx)(h,{disabled:t.isPending,onClick:o,type:`button`,variant:`outline`,children:r()})]})]})})}function H(e){let t=e.toLowerCase();return[`debug`,`info`,`warn`,`error`].includes(t)?t:`error`}function U(){return(0,z.jsx)(M,{description:i(),title:o(),variant:`section`,children:(0,z.jsx)(V,{})})}var W=U;export{W as component}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{$n as n,Cr as r,Dr as i,Er as a,Or as o,Qn as s,Tr as c,Xn as l,Zn as u,er as d,tm as f,tr as p,wr as m}from"./messages-BOatyqUm.js";import{t as h}from"./button-C_NDYaz8.js";import{a as g,i as _,n as v,r as y,t as b}from"./select-CzebumOF.js";import{r as x,s as S}from"./zod-rwFXxHlg.js";import{a as C,c as w,i as T,l as E,n as D,o as O,r as k,s as A,t as j}from"./form-KfFEakes.js";import{t as M}from"./page-header-GTtyZFBB.js";import{a as N,i as P,n as F,r as I,t as L}from"./lib-DDezYSnW.js";var R=e(t(),1),z=f(),B=S({logLevel:x([`debug`,`info`,`warn`,`error`])});function V(){let e=P(`system`),t=N(),i=E({resolver:w(B),defaultValues:{logLevel:`error`}});(0,R.useEffect)(()=>{let t=e.data?.data;t&&i.reset({logLevel:H(L(t,`system.log_level`,`error`))})},[e.data,i]);async function o(){await F(t.mutateAsync,[{group:`system`,key:`system.log_level`,type:`string`,value:``}],c()),await e.refetch()}async function f(n){await I(t.mutateAsync,[{group:`system`,key:`system.log_level`,type:`string`,value:n.logLevel}],a()),await e.refetch()}return(0,z.jsx)(j,{...i,children:(0,z.jsxs)(`form`,{className:`space-y-6`,onSubmit:i.handleSubmit(f),children:[(0,z.jsx)(T,{control:i.control,name:`logLevel`,render:({field:e})=>(0,z.jsxs)(C,{children:[(0,z.jsx)(O,{children:p()}),(0,z.jsxs)(b,{onValueChange:e.onChange,value:e.value,children:[(0,z.jsx)(D,{children:(0,z.jsx)(_,{className:`w-full`,children:(0,z.jsx)(g,{})})}),(0,z.jsxs)(v,{children:[(0,z.jsx)(y,{value:`debug`,children:n()}),(0,z.jsx)(y,{value:`info`,children:s()}),(0,z.jsx)(y,{value:`warn`,children:u()}),(0,z.jsx)(y,{value:`error`,children:l()})]})]}),(0,z.jsx)(k,{children:d()}),(0,z.jsx)(A,{})]})}),(0,z.jsxs)(`div`,{className:`flex gap-2`,children:[(0,z.jsx)(h,{disabled:t.isPending||e.isLoading,type:`submit`,children:m()}),(0,z.jsx)(h,{disabled:t.isPending,onClick:o,type:`button`,variant:`outline`,children:r()})]})]})})}function H(e){let t=e.toLowerCase();return[`debug`,`info`,`warn`,`error`].includes(t)?t:`error`}function U(){return(0,z.jsx)(M,{description:i(),title:o(),variant:`section`,children:(0,z.jsx)(V,{})})}var W=U;export{W as component}; \ No newline at end of file diff --git a/src/www/assets/table-503PQfKg.js b/src/www/assets/table-9UOy2Vxt.js similarity index 90% rename from src/www/assets/table-503PQfKg.js rename to src/www/assets/table-9UOy2Vxt.js index 1441148..8e3b842 100644 --- a/src/www/assets/table-503PQfKg.js +++ b/src/www/assets/table-9UOy2Vxt.js @@ -1 +1 @@ -import{em as e}from"./messages-Bp0bCjzp.js";import{i as t}from"./button-BgMnOYKD.js";var n=e();function r({className:e,...r}){return(0,n.jsx)(`div`,{className:`relative w-full overflow-x-auto`,"data-slot":`table-container`,children:(0,n.jsx)(`table`,{className:t(`w-full caption-bottom text-sm`,e),"data-slot":`table`,...r})})}function i({className:e,...r}){return(0,n.jsx)(`thead`,{className:t(`[&_tr]:border-b`,e),"data-slot":`table-header`,...r})}function a({className:e,...r}){return(0,n.jsx)(`tbody`,{className:t(`[&_tr:last-child]:border-0`,e),"data-slot":`table-body`,...r})}function o({className:e,...r}){return(0,n.jsx)(`tr`,{className:t(`border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted`,e),"data-slot":`table-row`,...r})}function s({className:e,...r}){return(0,n.jsx)(`th`,{className:t(`h-10 whitespace-nowrap px-2 text-left align-middle font-medium text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]`,e),"data-slot":`table-head`,...r})}function c({className:e,...r}){return(0,n.jsx)(`td`,{className:t(`whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]`,e),"data-slot":`table-cell`,...r})}export{i as a,s as i,a as n,o,c as r,r as t}; \ No newline at end of file +import{tm as e}from"./messages-BOatyqUm.js";import{i as t}from"./button-C_NDYaz8.js";var n=e();function r({className:e,...r}){return(0,n.jsx)(`div`,{className:`relative w-full overflow-x-auto`,"data-slot":`table-container`,children:(0,n.jsx)(`table`,{className:t(`w-full caption-bottom text-sm`,e),"data-slot":`table`,...r})})}function i({className:e,...r}){return(0,n.jsx)(`thead`,{className:t(`[&_tr]:border-b`,e),"data-slot":`table-header`,...r})}function a({className:e,...r}){return(0,n.jsx)(`tbody`,{className:t(`[&_tr:last-child]:border-0`,e),"data-slot":`table-body`,...r})}function o({className:e,...r}){return(0,n.jsx)(`tr`,{className:t(`border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted`,e),"data-slot":`table-row`,...r})}function s({className:e,...r}){return(0,n.jsx)(`th`,{className:t(`h-10 whitespace-nowrap px-2 text-left align-middle font-medium text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]`,e),"data-slot":`table-head`,...r})}function c({className:e,...r}){return(0,n.jsx)(`td`,{className:t(`whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]`,e),"data-slot":`table-cell`,...r})}export{i as a,s as i,a as n,o,c as r,r as t}; \ No newline at end of file diff --git a/src/www/assets/tabs-x8EHz9HA.js b/src/www/assets/tabs-6Ep1KePr.js similarity index 92% rename from src/www/assets/tabs-x8EHz9HA.js rename to src/www/assets/tabs-6Ep1KePr.js index c1eab86..6c67a2e 100644 --- a/src/www/assets/tabs-x8EHz9HA.js +++ b/src/www/assets/tabs-6Ep1KePr.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";import{t as r}from"./dist-BFnxq45V.js";import{i,r as a}from"./button-BgMnOYKD.js";import{a as o,r as s,t as c}from"./dist-CKFLmh1A.js";import{t as l}from"./dist-Clua1vrx.js";import{n as u}from"./dist-B0ikDpJU.js";import{n as d}from"./dist-C97YBjnT.js";import{n as f,r as p,t as m}from"./dist-D7AUoOWu.js";var h=e(t(),1),g=n(),_=`Tabs`,[v,y]=o(_,[p]),b=p(),[x,S]=v(_),C=h.forwardRef((e,t)=>{let{__scopeTabs:n,value:i,onValueChange:a,defaultValue:o,orientation:s=`horizontal`,dir:l,activationMode:f=`automatic`,...p}=e,m=d(l),[h,v]=c({prop:i,onChange:a,defaultProp:o??``,caller:_});return(0,g.jsx)(x,{scope:n,baseId:u(),value:h,onValueChange:v,orientation:s,dir:m,activationMode:f,children:(0,g.jsx)(r.div,{dir:m,"data-orientation":s,...p,ref:t})})});C.displayName=_;var w=`TabsList`,T=h.forwardRef((e,t)=>{let{__scopeTabs:n,loop:i=!0,...a}=e,o=S(w,n),s=b(n);return(0,g.jsx)(f,{asChild:!0,...s,orientation:o.orientation,dir:o.dir,loop:i,children:(0,g.jsx)(r.div,{role:`tablist`,"aria-orientation":o.orientation,...a,ref:t})})});T.displayName=w;var E=`TabsTrigger`,D=h.forwardRef((e,t)=>{let{__scopeTabs:n,value:i,disabled:a=!1,...o}=e,c=S(E,n),l=b(n),u=A(c.baseId,i),d=j(c.baseId,i),f=i===c.value;return(0,g.jsx)(m,{asChild:!0,...l,focusable:!a,active:f,children:(0,g.jsx)(r.button,{type:`button`,role:`tab`,"aria-selected":f,"aria-controls":d,"data-state":f?`active`:`inactive`,"data-disabled":a?``:void 0,disabled:a,id:u,...o,ref:t,onMouseDown:s(e.onMouseDown,e=>{!a&&e.button===0&&e.ctrlKey===!1?c.onValueChange(i):e.preventDefault()}),onKeyDown:s(e.onKeyDown,e=>{[` `,`Enter`].includes(e.key)&&c.onValueChange(i)}),onFocus:s(e.onFocus,()=>{let e=c.activationMode!==`manual`;!f&&!a&&e&&c.onValueChange(i)})})})});D.displayName=E;var O=`TabsContent`,k=h.forwardRef((e,t)=>{let{__scopeTabs:n,value:i,forceMount:a,children:o,...s}=e,c=S(O,n),u=A(c.baseId,i),d=j(c.baseId,i),f=i===c.value,p=h.useRef(f);return h.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,g.jsx)(l,{present:a||f,children:({present:n})=>(0,g.jsx)(r.div,{"data-state":f?`active`:`inactive`,"data-orientation":c.orientation,role:`tabpanel`,"aria-labelledby":u,hidden:!n,id:d,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:p.current?`0s`:void 0},children:n&&o})})});k.displayName=O;function A(e,t){return`${e}-trigger-${t}`}function j(e,t){return`${e}-content-${t}`}var M=C,N=T,P=D;function F({className:e,orientation:t=`horizontal`,...n}){return(0,g.jsx)(M,{className:i(`group/tabs flex gap-2 data-[orientation=horizontal]:flex-col`,e),"data-orientation":t,"data-slot":`tabs`,orientation:t,...n})}var I=a(`group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground data-[variant=line]:rounded-none group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col`,{variants:{variant:{default:`bg-muted`,line:`gap-1 bg-transparent`}},defaultVariants:{variant:`default`}});function L({className:e,variant:t=`default`,...n}){return(0,g.jsx)(N,{className:i(I({variant:t}),e),"data-slot":`tabs-list`,"data-variant":t,...n})}function R({className:e,...t}){return(0,g.jsx)(P,{className:i(`relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 whitespace-nowrap rounded-md border border-transparent px-2 py-1 font-medium text-foreground/60 text-sm transition-all hover:text-foreground focus-visible:border-ring focus-visible:outline-1 focus-visible:outline-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,`group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent`,`data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground`,`after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100`,e),"data-slot":`tabs-trigger`,...t})}export{L as n,R as r,F as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./dist-Cc8_LDAq.js";import{i,r as a}from"./button-C_NDYaz8.js";import{a as o,r as s,t as c}from"./dist-DPPquN_M.js";import{t as l}from"./dist-DvwKOQ8R.js";import{n as u}from"./dist-D4X8zGEB.js";import{n as d}from"./dist-BNFQuJTu.js";import{n as f,r as p,t as m}from"./dist-D0DoWChj.js";var h=e(t(),1),g=n(),_=`Tabs`,[v,y]=o(_,[p]),b=p(),[x,S]=v(_),C=h.forwardRef((e,t)=>{let{__scopeTabs:n,value:i,onValueChange:a,defaultValue:o,orientation:s=`horizontal`,dir:l,activationMode:f=`automatic`,...p}=e,m=d(l),[h,v]=c({prop:i,onChange:a,defaultProp:o??``,caller:_});return(0,g.jsx)(x,{scope:n,baseId:u(),value:h,onValueChange:v,orientation:s,dir:m,activationMode:f,children:(0,g.jsx)(r.div,{dir:m,"data-orientation":s,...p,ref:t})})});C.displayName=_;var w=`TabsList`,T=h.forwardRef((e,t)=>{let{__scopeTabs:n,loop:i=!0,...a}=e,o=S(w,n),s=b(n);return(0,g.jsx)(f,{asChild:!0,...s,orientation:o.orientation,dir:o.dir,loop:i,children:(0,g.jsx)(r.div,{role:`tablist`,"aria-orientation":o.orientation,...a,ref:t})})});T.displayName=w;var E=`TabsTrigger`,D=h.forwardRef((e,t)=>{let{__scopeTabs:n,value:i,disabled:a=!1,...o}=e,c=S(E,n),l=b(n),u=A(c.baseId,i),d=j(c.baseId,i),f=i===c.value;return(0,g.jsx)(m,{asChild:!0,...l,focusable:!a,active:f,children:(0,g.jsx)(r.button,{type:`button`,role:`tab`,"aria-selected":f,"aria-controls":d,"data-state":f?`active`:`inactive`,"data-disabled":a?``:void 0,disabled:a,id:u,...o,ref:t,onMouseDown:s(e.onMouseDown,e=>{!a&&e.button===0&&e.ctrlKey===!1?c.onValueChange(i):e.preventDefault()}),onKeyDown:s(e.onKeyDown,e=>{[` `,`Enter`].includes(e.key)&&c.onValueChange(i)}),onFocus:s(e.onFocus,()=>{let e=c.activationMode!==`manual`;!f&&!a&&e&&c.onValueChange(i)})})})});D.displayName=E;var O=`TabsContent`,k=h.forwardRef((e,t)=>{let{__scopeTabs:n,value:i,forceMount:a,children:o,...s}=e,c=S(O,n),u=A(c.baseId,i),d=j(c.baseId,i),f=i===c.value,p=h.useRef(f);return h.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,g.jsx)(l,{present:a||f,children:({present:n})=>(0,g.jsx)(r.div,{"data-state":f?`active`:`inactive`,"data-orientation":c.orientation,role:`tabpanel`,"aria-labelledby":u,hidden:!n,id:d,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:p.current?`0s`:void 0},children:n&&o})})});k.displayName=O;function A(e,t){return`${e}-trigger-${t}`}function j(e,t){return`${e}-content-${t}`}var M=C,N=T,P=D;function F({className:e,orientation:t=`horizontal`,...n}){return(0,g.jsx)(M,{className:i(`group/tabs flex gap-2 data-[orientation=horizontal]:flex-col`,e),"data-orientation":t,"data-slot":`tabs`,orientation:t,...n})}var I=a(`group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground data-[variant=line]:rounded-none group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col`,{variants:{variant:{default:`bg-muted`,line:`gap-1 bg-transparent`}},defaultVariants:{variant:`default`}});function L({className:e,variant:t=`default`,...n}){return(0,g.jsx)(N,{className:i(I({variant:t}),e),"data-slot":`tabs-list`,"data-variant":t,...n})}function R({className:e,...t}){return(0,g.jsx)(P,{className:i(`relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 whitespace-nowrap rounded-md border border-transparent px-2 py-1 font-medium text-foreground/60 text-sm transition-all hover:text-foreground focus-visible:border-ring focus-visible:outline-1 focus-visible:outline-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,`group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent`,`data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground`,`after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100`,e),"data-slot":`tabs-trigger`,...t})}export{L as n,R as r,F as t}; \ No newline at end of file diff --git a/src/www/assets/telegram-DTazPg6z.js b/src/www/assets/telegram-Br_DijOI.js similarity index 75% rename from src/www/assets/telegram-DTazPg6z.js rename to src/www/assets/telegram-Br_DijOI.js index f831a34..5c4b95e 100644 --- a/src/www/assets/telegram-DTazPg6z.js +++ b/src/www/assets/telegram-Br_DijOI.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{Pf as n,Sr as r,_r as i,br as a,em as o,fr as s,gr as c,hr as l,mr as u,pr as d,vr as f,xr as p,yr as m}from"./messages-Bp0bCjzp.js";import{t as h}from"./button-BgMnOYKD.js";import{t as g}from"./switch-CVYl00Vs.js";import{a as _,c as v,s as y}from"./zod-rwFXxHlg.js";import{a as b,c as x,i as S,l as C,n as w,o as T,s as E,t as D}from"./form-BhKmyN6D.js";import{t as O}from"./input-BleRUV2A.js";import{t as k}from"./page-header-CDwG3nxs.js";import{a as A,i as j,n as M,r as N,t as P}from"./lib-DCke3ZPi.js";var F=e(t(),1),I=o(),L=y({botToken:v().min(1,p()),chatId:v().min(1,a()),paymentNoticeEnabled:_(),abnormalNoticeEnabled:_()});function R(){let e=j(`system`),t=A(),n=C({resolver:x(L),defaultValues:{botToken:``,chatId:``,paymentNoticeEnabled:!1,abnormalNoticeEnabled:!1}});(0,F.useEffect)(()=>{let t=e.data?.data;t&&n.reset({botToken:P(t,`system.telegram_bot_token`),chatId:P(t,`system.telegram_chat_id`),paymentNoticeEnabled:P(t,`system.telegram_payment_notice_enabled`)===`true`,abnormalNoticeEnabled:P(t,`system.telegram_abnormal_notice_enabled`)===`true`})},[e.data,n]);async function r(n){await N(t.mutateAsync,[{group:`system`,key:`system.telegram_bot_token`,type:`string`,value:n.botToken},{group:`system`,key:`system.telegram_chat_id`,type:`string`,value:n.chatId},{group:`system`,key:`system.telegram_payment_notice_enabled`,type:`bool`,value:String(n.paymentNoticeEnabled)},{group:`system`,key:`system.telegram_abnormal_notice_enabled`,type:`bool`,value:String(n.abnormalNoticeEnabled)}],m()),await e.refetch()}async function a(){await M(t.mutateAsync,[{group:`system`,key:`system.telegram_bot_token`,type:`string`,value:``},{group:`system`,key:`system.telegram_chat_id`,type:`string`,value:``},{group:`system`,key:`system.telegram_payment_notice_enabled`,type:`bool`,value:!1},{group:`system`,key:`system.telegram_abnormal_notice_enabled`,type:`bool`,value:!1}],s()),await e.refetch()}return(0,I.jsx)(D,{...n,children:(0,I.jsxs)(`form`,{className:`space-y-6`,onSubmit:n.handleSubmit(r),children:[(0,I.jsx)(S,{control:n.control,name:`botToken`,render:({field:e})=>(0,I.jsxs)(b,{children:[(0,I.jsx)(T,{children:f()}),(0,I.jsx)(w,{children:(0,I.jsx)(O,{...e})}),(0,I.jsx)(E,{})]})}),(0,I.jsx)(S,{control:n.control,name:`chatId`,render:({field:e})=>(0,I.jsxs)(b,{children:[(0,I.jsx)(T,{children:i()}),(0,I.jsx)(w,{children:(0,I.jsx)(O,{...e})}),(0,I.jsx)(E,{})]})}),(0,I.jsx)(S,{control:n.control,name:`paymentNoticeEnabled`,render:({field:e})=>(0,I.jsxs)(b,{className:`flex items-center justify-between rounded-lg border p-3`,children:[(0,I.jsx)(T,{children:c()}),(0,I.jsx)(w,{children:(0,I.jsx)(g,{checked:e.value,onCheckedChange:e.onChange})})]})}),(0,I.jsx)(S,{control:n.control,name:`abnormalNoticeEnabled`,render:({field:e})=>(0,I.jsxs)(b,{className:`flex items-center justify-between rounded-lg border p-3`,children:[(0,I.jsx)(T,{children:l()}),(0,I.jsx)(w,{children:(0,I.jsx)(g,{checked:e.value,onCheckedChange:e.onChange})})]})}),(0,I.jsxs)(`div`,{className:`flex gap-2`,children:[(0,I.jsx)(h,{disabled:t.isPending||e.isLoading,type:`submit`,children:u()}),(0,I.jsx)(h,{disabled:t.isPending,onClick:a,type:`button`,variant:`outline`,children:d()})]})]})})}function z(){return(0,I.jsx)(k,{description:r(),title:n(),variant:`section`,children:(0,I.jsx)(R,{})})}var B=z;export{B as component}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{Ff as n,Sr as r,_r as i,br as a,fr as o,gr as s,hr as c,mr as l,pr as u,tm as d,vr as f,xr as p,yr as m}from"./messages-BOatyqUm.js";import{t as h}from"./button-C_NDYaz8.js";import{t as g}from"./switch-CgoJjvdz.js";import{a as _,c as v,s as y}from"./zod-rwFXxHlg.js";import{a as b,c as x,i as S,l as C,n as w,o as T,s as E,t as D}from"./form-KfFEakes.js";import{t as O}from"./input-8zzM34r5.js";import{t as k}from"./page-header-GTtyZFBB.js";import{a as A,i as j,n as M,r as N,t as P}from"./lib-DDezYSnW.js";var F=e(t(),1),I=d(),L=y({botToken:v().min(1,p()),chatId:v().min(1,a()),paymentNoticeEnabled:_(),abnormalNoticeEnabled:_()});function R(){let e=j(`system`),t=A(),n=C({resolver:x(L),defaultValues:{botToken:``,chatId:``,paymentNoticeEnabled:!1,abnormalNoticeEnabled:!1}});(0,F.useEffect)(()=>{let t=e.data?.data;t&&n.reset({botToken:P(t,`system.telegram_bot_token`),chatId:P(t,`system.telegram_chat_id`),paymentNoticeEnabled:P(t,`system.telegram_payment_notice_enabled`)===`true`,abnormalNoticeEnabled:P(t,`system.telegram_abnormal_notice_enabled`)===`true`})},[e.data,n]);async function r(n){await N(t.mutateAsync,[{group:`system`,key:`system.telegram_bot_token`,type:`string`,value:n.botToken},{group:`system`,key:`system.telegram_chat_id`,type:`string`,value:n.chatId},{group:`system`,key:`system.telegram_payment_notice_enabled`,type:`bool`,value:String(n.paymentNoticeEnabled)},{group:`system`,key:`system.telegram_abnormal_notice_enabled`,type:`bool`,value:String(n.abnormalNoticeEnabled)}],m()),await e.refetch()}async function a(){await M(t.mutateAsync,[{group:`system`,key:`system.telegram_bot_token`,type:`string`,value:``},{group:`system`,key:`system.telegram_chat_id`,type:`string`,value:``},{group:`system`,key:`system.telegram_payment_notice_enabled`,type:`bool`,value:!1},{group:`system`,key:`system.telegram_abnormal_notice_enabled`,type:`bool`,value:!1}],o()),await e.refetch()}return(0,I.jsx)(D,{...n,children:(0,I.jsxs)(`form`,{className:`space-y-6`,onSubmit:n.handleSubmit(r),children:[(0,I.jsx)(S,{control:n.control,name:`botToken`,render:({field:e})=>(0,I.jsxs)(b,{children:[(0,I.jsx)(T,{children:f()}),(0,I.jsx)(w,{children:(0,I.jsx)(O,{...e})}),(0,I.jsx)(E,{})]})}),(0,I.jsx)(S,{control:n.control,name:`chatId`,render:({field:e})=>(0,I.jsxs)(b,{children:[(0,I.jsx)(T,{children:i()}),(0,I.jsx)(w,{children:(0,I.jsx)(O,{...e})}),(0,I.jsx)(E,{})]})}),(0,I.jsx)(S,{control:n.control,name:`paymentNoticeEnabled`,render:({field:e})=>(0,I.jsxs)(b,{className:`flex items-center justify-between rounded-lg border p-3`,children:[(0,I.jsx)(T,{children:s()}),(0,I.jsx)(w,{children:(0,I.jsx)(g,{checked:e.value,onCheckedChange:e.onChange})})]})}),(0,I.jsx)(S,{control:n.control,name:`abnormalNoticeEnabled`,render:({field:e})=>(0,I.jsxs)(b,{className:`flex items-center justify-between rounded-lg border p-3`,children:[(0,I.jsx)(T,{children:c()}),(0,I.jsx)(w,{children:(0,I.jsx)(g,{checked:e.value,onCheckedChange:e.onChange})})]})}),(0,I.jsxs)(`div`,{className:`flex gap-2`,children:[(0,I.jsx)(h,{disabled:t.isPending||e.isLoading,type:`submit`,children:l()}),(0,I.jsx)(h,{disabled:t.isPending,onClick:a,type:`button`,variant:`outline`,children:u()})]})]})})}function z(){return(0,I.jsx)(k,{description:r(),title:n(),variant:`section`,children:(0,I.jsx)(R,{})})}var B=z;export{B as component}; \ No newline at end of file diff --git a/src/www/assets/textarea-BaSGKw3a.js b/src/www/assets/textarea-C8ejjLzk.js similarity index 80% rename from src/www/assets/textarea-BaSGKw3a.js rename to src/www/assets/textarea-C8ejjLzk.js index 18a0eda..f92e250 100644 --- a/src/www/assets/textarea-BaSGKw3a.js +++ b/src/www/assets/textarea-C8ejjLzk.js @@ -1 +1 @@ -import{em as e}from"./messages-Bp0bCjzp.js";import{i as t}from"./button-BgMnOYKD.js";var n=e();function r({className:e,...r}){return(0,n.jsx)(`textarea`,{className:t(`field-sizing-content flex min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs outline-none transition-[color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40`,e),"data-slot":`textarea`,...r})}export{r as t}; \ No newline at end of file +import{tm as e}from"./messages-BOatyqUm.js";import{i as t}from"./button-C_NDYaz8.js";var n=e();function r({className:e,...r}){return(0,n.jsx)(`textarea`,{className:t(`field-sizing-content flex min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs outline-none transition-[color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40`,e),"data-slot":`textarea`,...r})}export{r as t}; \ No newline at end of file diff --git a/src/www/assets/theme-provider-CyJJNAox.js b/src/www/assets/theme-provider-BREWrHp_.js similarity index 94% rename from src/www/assets/theme-provider-CyJJNAox.js rename to src/www/assets/theme-provider-BREWrHp_.js index 0c9311b..2234734 100644 --- a/src/www/assets/theme-provider-CyJJNAox.js +++ b/src/www/assets/theme-provider-BREWrHp_.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";import{n as r,r as i,t as a}from"./cookies-BzZOQYPw.js";var o=e(t(),1),s=n(),c=`system`,l=`theme`,u=3600*24*365,d=(0,o.createContext)({defaultTheme:c,resolvedTheme:`light`,theme:c,setTheme:()=>null,resetTheme:()=>null});function f({children:e,defaultTheme:t=c,storageKey:n=l,...f}){let[p,m]=(0,o.useState)(()=>a(n)||t),h=(0,o.useMemo)(()=>p===`system`?window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:p,[p]);return(0,o.useEffect)(()=>{let e=window.document.documentElement,t=window.matchMedia(`(prefers-color-scheme: dark)`),n=t=>{e.dataset.mode=t,e.style.colorScheme=t},r=()=>{p===`system`&&n(t.matches?`dark`:`light`)};return n(h),t.addEventListener(`change`,r),()=>t.removeEventListener(`change`,r)},[p,h]),(0,s.jsx)(d,{value:{defaultTheme:t,resolvedTheme:h,resetTheme:()=>{r(n),m(c)},theme:p,setTheme:e=>{i(n,e,u),m(e)}},...f,children:e})}var p=()=>{let e=(0,o.useContext)(d);if(!e)throw Error(`useTheme must be used within a ThemeProvider`);return e};export{p as n,f as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{n as r,r as i,t as a}from"./cookies-BzZOQYPw.js";var o=e(t(),1),s=n(),c=`system`,l=`theme`,u=3600*24*365,d=(0,o.createContext)({defaultTheme:c,resolvedTheme:`light`,theme:c,setTheme:()=>null,resetTheme:()=>null});function f({children:e,defaultTheme:t=c,storageKey:n=l,...f}){let[p,m]=(0,o.useState)(()=>a(n)||t),h=(0,o.useMemo)(()=>p===`system`?window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:p,[p]);return(0,o.useEffect)(()=>{let e=window.document.documentElement,t=window.matchMedia(`(prefers-color-scheme: dark)`),n=t=>{e.dataset.mode=t,e.style.colorScheme=t},r=()=>{p===`system`&&n(t.matches?`dark`:`light`)};return n(h),t.addEventListener(`change`,r),()=>t.removeEventListener(`change`,r)},[p,h]),(0,s.jsx)(d,{value:{defaultTheme:t,resolvedTheme:h,resetTheme:()=>{r(n),m(c)},theme:p,setTheme:e=>{i(n,e,u),m(e)}},...f,children:e})}var p=()=>{let e=(0,o.useContext)(d);if(!e)throw Error(`useTheme must be used within a ThemeProvider`);return e};export{p as n,f as t}; \ No newline at end of file diff --git a/src/www/assets/theme-switch-B3Qb32n8.js b/src/www/assets/theme-switch-CHLQml_8.js similarity index 68% rename from src/www/assets/theme-switch-B3Qb32n8.js rename to src/www/assets/theme-switch-CHLQml_8.js index f623c97..a7f0020 100644 --- a/src/www/assets/theme-switch-B3Qb32n8.js +++ b/src/www/assets/theme-switch-CHLQml_8.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{$p as n,Hp as r,Qp as i,Up as a,Vp as o,Wp as s,Zp as c,em as l,zp as u}from"./messages-Bp0bCjzp.js";import{t as d}from"./useNavigate-7u4DX0Ho.js";import{r as f}from"./dist-BFnxq45V.js";import{i as p,t as m}from"./button-BgMnOYKD.js";import{a as h,l as g,r as _,t as v}from"./dropdown-menu-8-hEBtzr.js";import{n as y}from"./theme-provider-CyJJNAox.js";import{t as b}from"./createLucideIcon-Br0Bd5k2.js";import{t as x}from"./check-CHp0nSkR.js";import{n as S,t as C}from"./sun-JU8p4FoE.js";var w=b(`languages`,[[`path`,{d:`m5 8 6 6`,key:`1wu5hv`}],[`path`,{d:`m4 14 6-6 2-3`,key:`1k1g8d`}],[`path`,{d:`M2 5h12`,key:`or177f`}],[`path`,{d:`M7 2h1`,key:`1t2jsx`}],[`path`,{d:`m22 22-5-10-5 10`,key:`don7ne`}],[`path`,{d:`M14 18h6`,key:`1m8k6r`}]]),T=b(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),E=l(),D={"en-US":`English`,"ja-JP":`日本語`,"ko-KR":`한국어`,"ru-RU":`Русский`,"zh-TW":`繁體中文`,"zh-CN":`简体中文`},O={"en-US":`🇺🇸`,"ja-JP":`🇯🇵`,"ko-KR":`🇰🇷`,"ru-RU":`🇷🇺`,"zh-CN":`🇨🇳`,"zh-TW":`🇭🇰`};function k(){let e=d(),t=c(),r=r=>{r!==t&&(n(r,{reload:!1}),e({to:`.`,replace:!0,reloadDocument:!0}))};return(0,E.jsxs)(v,{modal:!1,children:[(0,E.jsx)(g,{asChild:!0,children:(0,E.jsxs)(m,{className:`scale-95 rounded-full`,size:`icon`,variant:`ghost`,children:[(0,E.jsx)(w,{className:`size-[1.2rem]`}),(0,E.jsx)(`span`,{className:`sr-only`,children:u()})]})}),(0,E.jsx)(_,{align:`end`,children:i.map(e=>(0,E.jsxs)(h,{onClick:()=>r(e),children:[(0,E.jsx)(`span`,{"aria-hidden":`true`,className:`w-5 text-center`,children:O[e]??`🌐`}),D[e]??e,(0,E.jsx)(x,{className:p(`ms-auto`,t!==e&&`hidden`),size:14})]},e))})]})}var A=e(t(),1),j=e(f(),1);function M(){let{resolvedTheme:e,theme:t,setTheme:n}=y();(0,A.useEffect)(()=>{let t=e===`dark`?`#020817`:`#fff`,n=document.querySelector(`meta[name='theme-color']`);n&&n.setAttribute(`content`,t)},[e]);let i=(e,r)=>{if(e===t)return;if(window.matchMedia(`(prefers-reduced-motion: reduce)`).matches||!(`startViewTransition`in document)){n(e);return}let i=r.clientX||window.innerWidth/2,a=r.clientY||window.innerHeight/2,o=Math.hypot(Math.max(i,window.innerWidth-i),Math.max(a,window.innerHeight-a));document.startViewTransition(()=>{(0,j.flushSync)(()=>n(e))}).ready.then(()=>{document.documentElement.animate({clipPath:[`circle(0px at ${i}px ${a}px)`,`circle(${o}px at ${i}px ${a}px)`]},{duration:500,easing:`cubic-bezier(.34,1.56,.64,1)`,pseudoElement:`::view-transition-new(root)`})})};return(0,E.jsxs)(v,{modal:!1,children:[(0,E.jsx)(g,{asChild:!0,children:(0,E.jsxs)(m,{className:`scale-95 rounded-full`,size:`icon`,variant:`ghost`,children:[(0,E.jsx)(C,{className:`size-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0`}),(0,E.jsx)(S,{className:`absolute size-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100`}),(0,E.jsx)(`span`,{className:`sr-only`,children:s()})]})}),(0,E.jsxs)(_,{align:`end`,children:[(0,E.jsxs)(h,{onClick:e=>i(`light`,e),children:[(0,E.jsx)(C,{className:`size-4`}),a(),` `,(0,E.jsx)(x,{className:p(`ms-auto`,t!==`light`&&`hidden`),size:14})]}),(0,E.jsxs)(h,{onClick:e=>i(`dark`,e),children:[(0,E.jsx)(S,{className:`size-4`}),r(),(0,E.jsx)(x,{className:p(`ms-auto`,t!==`dark`&&`hidden`),size:14})]}),(0,E.jsxs)(h,{onClick:e=>i(`system`,e),children:[(0,E.jsx)(T,{className:`size-4`}),o(),(0,E.jsx)(x,{className:p(`ms-auto`,t!==`system`&&`hidden`),size:14})]})]})]})}export{k as n,M as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{$p as n,Bp as r,Gp as i,Hp as a,Qp as o,Up as s,Wp as c,em as l,tm as u}from"./messages-BOatyqUm.js";import{t as d}from"./useNavigate-7u4DX0Ho.js";import{r as f}from"./dist-Cc8_LDAq.js";import{i as p,t as m}from"./button-C_NDYaz8.js";import{a as h,l as g,r as _,t as v}from"./dropdown-menu-DzCIpsuG.js";import{n as y}from"./theme-provider-BREWrHp_.js";import{t as b}from"./createLucideIcon-Br0Bd5k2.js";import{t as x}from"./check-CHp0nSkR.js";import{n as S,t as C}from"./sun-JU8p4FoE.js";var w=b(`languages`,[[`path`,{d:`m5 8 6 6`,key:`1wu5hv`}],[`path`,{d:`m4 14 6-6 2-3`,key:`1k1g8d`}],[`path`,{d:`M2 5h12`,key:`or177f`}],[`path`,{d:`M7 2h1`,key:`1t2jsx`}],[`path`,{d:`m22 22-5-10-5 10`,key:`don7ne`}],[`path`,{d:`M14 18h6`,key:`1m8k6r`}]]),T=b(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),E=u(),D={"en-US":`English`,"ja-JP":`日本語`,"ko-KR":`한국어`,"ru-RU":`Русский`,"zh-TW":`繁體中文`,"zh-CN":`简体中文`},O={"en-US":`🇺🇸`,"ja-JP":`🇯🇵`,"ko-KR":`🇰🇷`,"ru-RU":`🇷🇺`,"zh-CN":`🇨🇳`,"zh-TW":`🇭🇰`};function k(){let e=d(),t=o(),i=n=>{n!==t&&(l(n,{reload:!1}),e({to:`.`,replace:!0,reloadDocument:!0}))};return(0,E.jsxs)(v,{modal:!1,children:[(0,E.jsx)(g,{asChild:!0,children:(0,E.jsxs)(m,{className:`scale-95 rounded-full`,size:`icon`,variant:`ghost`,children:[(0,E.jsx)(w,{className:`size-[1.2rem]`}),(0,E.jsx)(`span`,{className:`sr-only`,children:r()})]})}),(0,E.jsx)(_,{align:`end`,children:n.map(e=>(0,E.jsxs)(h,{onClick:()=>i(e),children:[(0,E.jsx)(`span`,{"aria-hidden":`true`,className:`w-5 text-center`,children:O[e]??`🌐`}),D[e]??e,(0,E.jsx)(x,{className:p(`ms-auto`,t!==e&&`hidden`),size:14})]},e))})]})}var A=e(t(),1),j=e(f(),1);function M(){let{resolvedTheme:e,theme:t,setTheme:n}=y();(0,A.useEffect)(()=>{let t=e===`dark`?`#020817`:`#fff`,n=document.querySelector(`meta[name='theme-color']`);n&&n.setAttribute(`content`,t)},[e]);let r=(e,r)=>{if(e===t)return;if(window.matchMedia(`(prefers-reduced-motion: reduce)`).matches||!(`startViewTransition`in document)){n(e);return}let i=r.clientX||window.innerWidth/2,a=r.clientY||window.innerHeight/2,o=Math.hypot(Math.max(i,window.innerWidth-i),Math.max(a,window.innerHeight-a));document.startViewTransition(()=>{(0,j.flushSync)(()=>n(e))}).ready.then(()=>{document.documentElement.animate({clipPath:[`circle(0px at ${i}px ${a}px)`,`circle(${o}px at ${i}px ${a}px)`]},{duration:500,easing:`cubic-bezier(.34,1.56,.64,1)`,pseudoElement:`::view-transition-new(root)`})})};return(0,E.jsxs)(v,{modal:!1,children:[(0,E.jsx)(g,{asChild:!0,children:(0,E.jsxs)(m,{className:`scale-95 rounded-full`,size:`icon`,variant:`ghost`,children:[(0,E.jsx)(C,{className:`size-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0`}),(0,E.jsx)(S,{className:`absolute size-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100`}),(0,E.jsx)(`span`,{className:`sr-only`,children:i()})]})}),(0,E.jsxs)(_,{align:`end`,children:[(0,E.jsxs)(h,{onClick:e=>r(`light`,e),children:[(0,E.jsx)(C,{className:`size-4`}),c(),` `,(0,E.jsx)(x,{className:p(`ms-auto`,t!==`light`&&`hidden`),size:14})]}),(0,E.jsxs)(h,{onClick:e=>r(`dark`,e),children:[(0,E.jsx)(S,{className:`size-4`}),s(),(0,E.jsx)(x,{className:p(`ms-auto`,t!==`dark`&&`hidden`),size:14})]}),(0,E.jsxs)(h,{onClick:e=>r(`system`,e),children:[(0,E.jsx)(T,{className:`size-4`}),a(),(0,E.jsx)(x,{className:p(`ms-auto`,t!==`system`&&`hidden`),size:14})]})]})]})}export{k as n,M as t}; \ No newline at end of file diff --git a/src/www/assets/tooltip-Gx9CUpPD.js b/src/www/assets/tooltip-xZuTTfnF.js similarity index 94% rename from src/www/assets/tooltip-Gx9CUpPD.js rename to src/www/assets/tooltip-xZuTTfnF.js index 5b812f1..e16dddd 100644 --- a/src/www/assets/tooltip-Gx9CUpPD.js +++ b/src/www/assets/tooltip-xZuTTfnF.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";import{t as r}from"./dist-BFnxq45V.js";import{c as i,i as a,u as o}from"./button-BgMnOYKD.js";import{t as s}from"./dist-Bmn8KNt7.js";import{a as c,r as l,t as u}from"./dist-CKFLmh1A.js";import{t as d}from"./dist-Clua1vrx.js";import{n as f}from"./dist-B0ikDpJU.js";import{n as p,t as m}from"./dist-_ND6L-P3.js";import{a as h,i as g,n as _,r as v,t as y}from"./dist-BSXD7MjW.js";var b=e(t(),1),x=n(),[S,C]=c(`Tooltip`,[h]),w=h(),T=`TooltipProvider`,E=700,D=`tooltip.open`,[O,k]=S(T),A=e=>{let{__scopeTooltip:t,delayDuration:n=E,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=b.useRef(!0),s=b.useRef(!1),c=b.useRef(0);return b.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,x.jsx)(O,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:b.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:b.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:b.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};A.displayName=T;var j=`Tooltip`,[M,N]=S(j),P=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=k(j,e.__scopeTooltip),l=w(t),[d,p]=b.useState(null),m=f(),h=b.useRef(0),_=o??c.disableHoverableContent,v=s??c.delayDuration,y=b.useRef(!1),[S,C]=u({prop:r,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(D))):c.onClose(),a?.(e)},caller:j}),T=b.useMemo(()=>S?y.current?`delayed-open`:`instant-open`:`closed`,[S]),E=b.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y.current=!1,C(!0)},[C]),O=b.useCallback(()=>{window.clearTimeout(h.current),h.current=0,C(!1)},[C]),A=b.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{y.current=!0,C(!0),h.current=0},v)},[v,C]);return b.useEffect(()=>()=>{h.current&&=(window.clearTimeout(h.current),0)},[]),(0,x.jsx)(g,{...l,children:(0,x.jsx)(M,{scope:t,contentId:m,open:S,stateAttribute:T,trigger:d,onTriggerChange:p,onTriggerEnter:b.useCallback(()=>{c.isOpenDelayedRef.current?A():E()},[c.isOpenDelayedRef,A,E]),onTriggerLeave:b.useCallback(()=>{_?O():(window.clearTimeout(h.current),h.current=0)},[O,_]),onOpen:E,onClose:O,disableHoverableContent:_,children:n})})};P.displayName=j;var F=`TooltipTrigger`,I=b.forwardRef((e,t)=>{let{__scopeTooltip:n,...i}=e,a=N(F,n),s=k(F,n),c=w(n),u=o(t,b.useRef(null),a.onTriggerChange),d=b.useRef(!1),f=b.useRef(!1),p=b.useCallback(()=>d.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener(`pointerup`,p),[p]),(0,x.jsx)(y,{asChild:!0,...c,children:(0,x.jsx)(r.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...i,ref:u,onPointerMove:l(e.onPointerMove,e=>{e.pointerType!==`touch`&&!f.current&&!s.isPointerInTransitRef.current&&(a.onTriggerEnter(),f.current=!0)}),onPointerLeave:l(e.onPointerLeave,()=>{a.onTriggerLeave(),f.current=!1}),onPointerDown:l(e.onPointerDown,()=>{a.open&&a.onClose(),d.current=!0,document.addEventListener(`pointerup`,p,{once:!0})}),onFocus:l(e.onFocus,()=>{d.current||a.onOpen()}),onBlur:l(e.onBlur,a.onClose),onClick:l(e.onClick,a.onClose)})})});I.displayName=F;var L=`TooltipPortal`,[ee,R]=S(L,{forceMount:void 0}),z=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=N(L,t);return(0,x.jsx)(ee,{scope:t,forceMount:n,children:(0,x.jsx)(d,{present:n||a.open,children:(0,x.jsx)(m,{asChild:!0,container:i,children:r})})})};z.displayName=L;var B=`TooltipContent`,V=b.forwardRef((e,t)=>{let n=R(B,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=N(B,e.__scopeTooltip);return(0,x.jsx)(d,{present:r||o.open,children:o.disableHoverableContent?(0,x.jsx)(K,{side:i,...a,ref:t}):(0,x.jsx)(H,{side:i,...a,ref:t})})}),H=b.forwardRef((e,t)=>{let n=N(B,e.__scopeTooltip),r=k(B,e.__scopeTooltip),i=b.useRef(null),a=o(t,i),[s,c]=b.useState(null),{trigger:l,onClose:u}=n,d=i.current,{onPointerInTransitChange:f}=r,p=b.useCallback(()=>{c(null),f(!1)},[f]),m=b.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=X(r,Y(r,n.getBoundingClientRect())),a=Z(t.getBoundingClientRect());c(te([...i,...a])),f(!0)},[f]);return b.useEffect(()=>()=>p(),[p]),b.useEffect(()=>{if(l&&d){let e=e=>m(e,d),t=e=>m(e,l);return l.addEventListener(`pointerleave`,e),d.addEventListener(`pointerleave`,t),()=>{l.removeEventListener(`pointerleave`,e),d.removeEventListener(`pointerleave`,t)}}},[l,d,m,p]),b.useEffect(()=>{if(s){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=l?.contains(t)||d?.contains(t),i=!Q(n,s);r?p():i&&(p(),u())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[l,d,s,u,p]),(0,x.jsx)(K,{...e,ref:a})}),[U,W]=S(j,{isInside:!1}),G=i(`TooltipContent`),K=b.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...c}=e,l=N(B,n),u=w(n),{onClose:d}=l;return b.useEffect(()=>(document.addEventListener(D,d),()=>document.removeEventListener(D,d)),[d]),b.useEffect(()=>{if(l.trigger){let e=e=>{e.target?.contains(l.trigger)&&d()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[l.trigger,d]),(0,x.jsx)(p,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,x.jsxs)(v,{"data-state":l.stateAttribute,...u,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,x.jsx)(G,{children:r}),(0,x.jsx)(U,{scope:n,isInside:!0,children:(0,x.jsx)(s,{id:l.contentId,role:`tooltip`,children:i||r})})]})})});V.displayName=B;var q=`TooltipArrow`,J=b.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=w(n);return W(q,n).isInside?null:(0,x.jsx)(_,{...i,...r,ref:t})});J.displayName=q;function Y(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function X(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Z(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function Q(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function te(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y)),ne(t)}function ne(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var re=A,ie=P,ae=I,oe=z,$=V,se=J;function ce({delayDuration:e=0,...t}){return(0,x.jsx)(re,{"data-slot":`tooltip-provider`,delayDuration:e,...t})}function le({...e}){return(0,x.jsx)(ie,{"data-slot":`tooltip`,...e})}function ue({...e}){return(0,x.jsx)(ae,{"data-slot":`tooltip-trigger`,...e})}function de({className:e,sideOffset:t=0,children:n,...r}){return(0,x.jsx)(oe,{children:(0,x.jsxs)($,{className:a(`fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in text-balance rounded-md bg-foreground px-3 py-1.5 text-background text-xs data-[state=closed]:animate-out`,e),"data-slot":`tooltip-content`,sideOffset:t,...r,children:[n,(0,x.jsx)(se,{className:`z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground`})]})})}export{ue as i,de as n,ce as r,le as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./dist-Cc8_LDAq.js";import{c as i,i as a,u as o}from"./button-C_NDYaz8.js";import{t as s}from"./dist-Dtn5c_cx.js";import{a as c,r as l,t as u}from"./dist-DPPquN_M.js";import{t as d}from"./dist-DvwKOQ8R.js";import{n as f}from"./dist-D4X8zGEB.js";import{n as p,t as m}from"./dist-rcWP-8Cu.js";import{a as h,i as g,n as _,r as v,t as y}from"./dist-CsIb2aLK.js";var b=e(t(),1),x=n(),[S,C]=c(`Tooltip`,[h]),w=h(),T=`TooltipProvider`,E=700,D=`tooltip.open`,[O,k]=S(T),A=e=>{let{__scopeTooltip:t,delayDuration:n=E,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=b.useRef(!0),s=b.useRef(!1),c=b.useRef(0);return b.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,x.jsx)(O,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:b.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:b.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:b.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};A.displayName=T;var j=`Tooltip`,[M,N]=S(j),P=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=k(j,e.__scopeTooltip),l=w(t),[d,p]=b.useState(null),m=f(),h=b.useRef(0),_=o??c.disableHoverableContent,v=s??c.delayDuration,y=b.useRef(!1),[S,C]=u({prop:r,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(D))):c.onClose(),a?.(e)},caller:j}),T=b.useMemo(()=>S?y.current?`delayed-open`:`instant-open`:`closed`,[S]),E=b.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y.current=!1,C(!0)},[C]),O=b.useCallback(()=>{window.clearTimeout(h.current),h.current=0,C(!1)},[C]),A=b.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{y.current=!0,C(!0),h.current=0},v)},[v,C]);return b.useEffect(()=>()=>{h.current&&=(window.clearTimeout(h.current),0)},[]),(0,x.jsx)(g,{...l,children:(0,x.jsx)(M,{scope:t,contentId:m,open:S,stateAttribute:T,trigger:d,onTriggerChange:p,onTriggerEnter:b.useCallback(()=>{c.isOpenDelayedRef.current?A():E()},[c.isOpenDelayedRef,A,E]),onTriggerLeave:b.useCallback(()=>{_?O():(window.clearTimeout(h.current),h.current=0)},[O,_]),onOpen:E,onClose:O,disableHoverableContent:_,children:n})})};P.displayName=j;var F=`TooltipTrigger`,I=b.forwardRef((e,t)=>{let{__scopeTooltip:n,...i}=e,a=N(F,n),s=k(F,n),c=w(n),u=o(t,b.useRef(null),a.onTriggerChange),d=b.useRef(!1),f=b.useRef(!1),p=b.useCallback(()=>d.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener(`pointerup`,p),[p]),(0,x.jsx)(y,{asChild:!0,...c,children:(0,x.jsx)(r.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...i,ref:u,onPointerMove:l(e.onPointerMove,e=>{e.pointerType!==`touch`&&!f.current&&!s.isPointerInTransitRef.current&&(a.onTriggerEnter(),f.current=!0)}),onPointerLeave:l(e.onPointerLeave,()=>{a.onTriggerLeave(),f.current=!1}),onPointerDown:l(e.onPointerDown,()=>{a.open&&a.onClose(),d.current=!0,document.addEventListener(`pointerup`,p,{once:!0})}),onFocus:l(e.onFocus,()=>{d.current||a.onOpen()}),onBlur:l(e.onBlur,a.onClose),onClick:l(e.onClick,a.onClose)})})});I.displayName=F;var L=`TooltipPortal`,[ee,R]=S(L,{forceMount:void 0}),z=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=N(L,t);return(0,x.jsx)(ee,{scope:t,forceMount:n,children:(0,x.jsx)(d,{present:n||a.open,children:(0,x.jsx)(m,{asChild:!0,container:i,children:r})})})};z.displayName=L;var B=`TooltipContent`,V=b.forwardRef((e,t)=>{let n=R(B,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=N(B,e.__scopeTooltip);return(0,x.jsx)(d,{present:r||o.open,children:o.disableHoverableContent?(0,x.jsx)(K,{side:i,...a,ref:t}):(0,x.jsx)(H,{side:i,...a,ref:t})})}),H=b.forwardRef((e,t)=>{let n=N(B,e.__scopeTooltip),r=k(B,e.__scopeTooltip),i=b.useRef(null),a=o(t,i),[s,c]=b.useState(null),{trigger:l,onClose:u}=n,d=i.current,{onPointerInTransitChange:f}=r,p=b.useCallback(()=>{c(null),f(!1)},[f]),m=b.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=X(r,Y(r,n.getBoundingClientRect())),a=Z(t.getBoundingClientRect());c(te([...i,...a])),f(!0)},[f]);return b.useEffect(()=>()=>p(),[p]),b.useEffect(()=>{if(l&&d){let e=e=>m(e,d),t=e=>m(e,l);return l.addEventListener(`pointerleave`,e),d.addEventListener(`pointerleave`,t),()=>{l.removeEventListener(`pointerleave`,e),d.removeEventListener(`pointerleave`,t)}}},[l,d,m,p]),b.useEffect(()=>{if(s){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=l?.contains(t)||d?.contains(t),i=!Q(n,s);r?p():i&&(p(),u())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[l,d,s,u,p]),(0,x.jsx)(K,{...e,ref:a})}),[U,W]=S(j,{isInside:!1}),G=i(`TooltipContent`),K=b.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...c}=e,l=N(B,n),u=w(n),{onClose:d}=l;return b.useEffect(()=>(document.addEventListener(D,d),()=>document.removeEventListener(D,d)),[d]),b.useEffect(()=>{if(l.trigger){let e=e=>{e.target?.contains(l.trigger)&&d()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[l.trigger,d]),(0,x.jsx)(p,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,x.jsxs)(v,{"data-state":l.stateAttribute,...u,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,x.jsx)(G,{children:r}),(0,x.jsx)(U,{scope:n,isInside:!0,children:(0,x.jsx)(s,{id:l.contentId,role:`tooltip`,children:i||r})})]})})});V.displayName=B;var q=`TooltipArrow`,J=b.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=w(n);return W(q,n).isInside?null:(0,x.jsx)(_,{...i,...r,ref:t})});J.displayName=q;function Y(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function X(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Z(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function Q(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function te(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y)),ne(t)}function ne(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var re=A,ie=P,ae=I,oe=z,$=V,se=J;function ce({delayDuration:e=0,...t}){return(0,x.jsx)(re,{"data-slot":`tooltip-provider`,delayDuration:e,...t})}function le({...e}){return(0,x.jsx)(ie,{"data-slot":`tooltip`,...e})}function ue({...e}){return(0,x.jsx)(ae,{"data-slot":`tooltip-trigger`,...e})}function de({className:e,sideOffset:t=0,children:n,...r}){return(0,x.jsx)(oe,{children:(0,x.jsxs)($,{className:a(`fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in text-balance rounded-md bg-foreground px-3 py-1.5 text-background text-xs data-[state=closed]:animate-out`,e),"data-slot":`tooltip-content`,sideOffset:t,...r,children:[n,(0,x.jsx)(se,{className:`z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground`})]})})}export{ue as i,de as n,ce as r,le as t}; \ No newline at end of file diff --git a/src/www/assets/unauthorized-error-B6bKLdq-.js b/src/www/assets/unauthorized-error-B6bKLdq-.js deleted file mode 100644 index cf5a134..0000000 --- a/src/www/assets/unauthorized-error-B6bKLdq-.js +++ /dev/null @@ -1 +0,0 @@ -import{Dd as e,Dt as t,Et as n,Od as r,Ot as i,em as a}from"./messages-Bp0bCjzp.js";import{t as o}from"./useRouter-DtTm7XkK.js";import{t as s}from"./useNavigate-7u4DX0Ho.js";import{t as c}from"./button-BgMnOYKD.js";var l=a();function u(){let a=s(),{history:u}=o();return(0,l.jsx)(`div`,{className:`h-svh`,children:(0,l.jsxs)(`div`,{className:`m-auto flex h-full w-full flex-col items-center justify-center gap-2`,children:[(0,l.jsx)(`h1`,{className:`font-bold text-[7rem] leading-tight`,children:`401`}),(0,l.jsx)(`span`,{className:`font-medium`,children:i()}),(0,l.jsxs)(`p`,{className:`text-center text-muted-foreground`,children:[t(),` `,(0,l.jsx)(`br`,{}),n()]}),(0,l.jsxs)(`div`,{className:`mt-6 flex gap-4`,children:[(0,l.jsx)(c,{onClick:()=>u.go(-1),variant:`outline`,children:r()}),(0,l.jsx)(c,{onClick:()=>a({to:`/dashboard`}),children:e()})]})]})})}export{u as t}; \ No newline at end of file diff --git a/src/www/assets/unauthorized-error-CtrGmVOn.js b/src/www/assets/unauthorized-error-CtrGmVOn.js new file mode 100644 index 0000000..0d7fb6f --- /dev/null +++ b/src/www/assets/unauthorized-error-CtrGmVOn.js @@ -0,0 +1 @@ +import{Dt as e,Et as t,Od as n,Ot as r,kd as i,tm as a}from"./messages-BOatyqUm.js";import{t as o}from"./useRouter-DtTm7XkK.js";import{t as s}from"./useNavigate-7u4DX0Ho.js";import{t as c}from"./button-C_NDYaz8.js";var l=a();function u(){let a=s(),{history:u}=o();return(0,l.jsx)(`div`,{className:`h-svh`,children:(0,l.jsxs)(`div`,{className:`m-auto flex h-full w-full flex-col items-center justify-center gap-2`,children:[(0,l.jsx)(`h1`,{className:`font-bold text-[7rem] leading-tight`,children:`401`}),(0,l.jsx)(`span`,{className:`font-medium`,children:r()}),(0,l.jsxs)(`p`,{className:`text-center text-muted-foreground`,children:[e(),` `,(0,l.jsx)(`br`,{}),t()]}),(0,l.jsxs)(`div`,{className:`mt-6 flex gap-4`,children:[(0,l.jsx)(c,{onClick:()=>u.go(-1),variant:`outline`,children:i()}),(0,l.jsx)(c,{onClick:()=>a({to:`/dashboard`}),children:n()})]})]})})}export{u as t}; \ No newline at end of file diff --git a/src/www/assets/wallet-Bgblr4kl.js b/src/www/assets/wallet-CtiawGS1.js similarity index 88% rename from src/www/assets/wallet-Bgblr4kl.js rename to src/www/assets/wallet-CtiawGS1.js index 6f0c483..54ce2ea 100644 --- a/src/www/assets/wallet-Bgblr4kl.js +++ b/src/www/assets/wallet-CtiawGS1.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{em as n}from"./messages-Bp0bCjzp.js";import{t as r}from"./dist-C97YBjnT.js";import{n as i,r as a,t as o}from"./cookies-BzZOQYPw.js";import{t as s}from"./createLucideIcon-Br0Bd5k2.js";var c=e(t(),1),l=n(),u=`ltr`,d=`dir`,f=3600*24*365,p=(0,c.createContext)(null);function m({children:e}){let[t,n]=(0,c.useState)(()=>o(d)||u);return(0,c.useEffect)(()=>{document.documentElement.setAttribute(`dir`,t)},[t]),(0,l.jsx)(p,{value:{defaultDir:u,dir:t,setDir:e=>{n(e),a(d,e,f)},resetDir:()=>{n(u),i(d)}},children:(0,l.jsx)(r,{dir:t,children:e})})}function h(){let e=(0,c.useContext)(p);if(!e)throw Error(`useDirection must be used within a DirectionProvider`);return e}var g=s(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),_=s(`wallet`,[[`path`,{d:`M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1`,key:`18etb6`}],[`path`,{d:`M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4`,key:`xoc0q4`}]]);export{h as i,g as n,m as r,_ as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./dist-BNFQuJTu.js";import{n as i,r as a,t as o}from"./cookies-BzZOQYPw.js";import{t as s}from"./createLucideIcon-Br0Bd5k2.js";var c=e(t(),1),l=n(),u=`ltr`,d=`dir`,f=3600*24*365,p=(0,c.createContext)(null);function m({children:e}){let[t,n]=(0,c.useState)(()=>o(d)||u);return(0,c.useEffect)(()=>{document.documentElement.setAttribute(`dir`,t)},[t]),(0,l.jsx)(p,{value:{defaultDir:u,dir:t,setDir:e=>{n(e),a(d,e,f)},resetDir:()=>{n(u),i(d)}},children:(0,l.jsx)(r,{dir:t,children:e})})}function h(){let e=(0,c.useContext)(p);if(!e)throw Error(`useDirection must be used within a DirectionProvider`);return e}var g=s(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),_=s(`wallet`,[[`path`,{d:`M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1`,key:`18etb6`}],[`path`,{d:`M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4`,key:`xoc0q4`}]]);export{h as i,g as n,m as r,_ as t}; \ No newline at end of file diff --git a/src/www/index.html b/src/www/index.html index 12b4fc7..bcf844a 100644 --- a/src/www/index.html +++ b/src/www/index.html @@ -155,54 +155,54 @@ content="GMPay 收款管理后台 - 多链 USDT 支付中间件管理面板" > - + - + - - - - - - - - - - - + + + + + + + + + + + - + - + - - + + - - + + - - - + + + - - - - - - - - + + + + + + + + diff --git a/src/www/sw.js b/src/www/sw.js index bce310f..8067e1c 100644 --- a/src/www/sw.js +++ b/src/www/sw.js @@ -1 +1 @@ -if(!self.define){let s,l={};const e=(e,n)=>(e=new URL(e+".js",n).href,l[e]||new Promise(l=>{if("document"in self){const s=document.createElement("script");s.src=e,s.onload=l,document.head.appendChild(s)}else s=e,importScripts(e),l()}).then(()=>{let s=l[e];if(!s)throw new Error(`Module ${e} didn’t register its module`);return s}));self.define=(n,r)=>{const i=s||("document"in self?document.currentScript.src:"")||location.href;if(l[i])return;let u={};const o=s=>e(s,i),t={module:{uri:i},exports:u,require:o};l[i]=Promise.all(n.map(s=>t[s]||o(s))).then(s=>(r(...s),u))}}define(["./workbox-004510d2"],function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"pwa-maskable-512x512.png",revision:"106b94c2eb0675579ae40309698f364c"},{url:"pwa-maskable-192x192.png",revision:"8befa0caebf24d2e0b01c36e01ab4bd7"},{url:"pwa-512x512.png",revision:"2fcf48a2ae4e95f6d7f4a6bc2cc42a63"},{url:"pwa-192x192.png",revision:"8bc372216f92e2f0e011daff55721ccb"},{url:"favicon.ico",revision:"abba9e0d76413fa735e878d17223cfcb"},{url:"favicon-32x32.png",revision:"0847a57e9d3ae134e314a1339af3516d"},{url:"favicon-16x16.png",revision:"3e5fdc64b0a41f498c177fb2dc89ec6a"},{url:"apple-touch-icon.png",revision:"f9c8240d0509320d85a82bd60a6b426f"},{url:"images/logo.png",revision:"fa701b6a1d714ecf4856df660055eb89"},{url:"assets/zod-rwFXxHlg.js",revision:null},{url:"assets/yaml.contribution-BN-iiJx2.js",revision:null},{url:"assets/yaml-Lx-4NZKN.js",revision:null},{url:"assets/with-selector-DBfssCrY.js",revision:null},{url:"assets/web-vitals-Cb5qXObG.js",revision:null},{url:"assets/wallet-Bgblr4kl.js",revision:null},{url:"assets/useStore-CupyIEEP.js",revision:null},{url:"assets/useSearch-Diln-KYh.js",revision:null},{url:"assets/useRouterState-B2FPPjEe.js",revision:null},{url:"assets/useRouter-DtTm7XkK.js",revision:null},{url:"assets/useNavigate-7u4DX0Ho.js",revision:null},{url:"assets/use-table-url-state-DP0Y4QjR.js",revision:null},{url:"assets/unauthorized-error-B6bKLdq-.js",revision:null},{url:"assets/triangle-alert-DB5v_9sS.js",revision:null},{url:"assets/trash-2-9I8lAjeE.js",revision:null},{url:"assets/tooltip-Gx9CUpPD.js",revision:null},{url:"assets/theme-switch-B3Qb32n8.js",revision:null},{url:"assets/theme-provider-CyJJNAox.js",revision:null},{url:"assets/textarea-BaSGKw3a.js",revision:null},{url:"assets/telescope-DU0wiTDw.js",revision:null},{url:"assets/telegram-DTazPg6z.js",revision:null},{url:"assets/tabs-x8EHz9HA.js",revision:null},{url:"assets/table-503PQfKg.js",revision:null},{url:"assets/system-CcMhRmKJ.js",revision:null},{url:"assets/switch-CVYl00Vs.js",revision:null},{url:"assets/sun-JU8p4FoE.js",revision:null},{url:"assets/skeleton-BQsmx80h.js",revision:null},{url:"assets/sign-in-MWZiX7xb.js",revision:null},{url:"assets/sidebar-nav-DDS5oBdd.js",revision:null},{url:"assets/show-submitted-data-C8ocsjDF.js",revision:null},{url:"assets/shield-check-MAPDL1u8.js",revision:null},{url:"assets/settings-BbpP20ev.js",revision:null},{url:"assets/separator-DbmFQXe4.js",revision:null},{url:"assets/send-BNvceEpO.js",revision:null},{url:"assets/select-C9s05In_.js",revision:null},{url:"assets/search-provider-Bl2HDfcG.js",revision:null},{url:"assets/rpc-m8HV1fJx.js",revision:null},{url:"assets/routes-D7HD5c-e.js",revision:null},{url:"assets/router-BluvjQRz.js",revision:null},{url:"assets/route-CMVRG6IO.js",revision:null},{url:"assets/route-C6lKmXki.js",revision:null},{url:"assets/route-BxnuR592.js",revision:null},{url:"assets/route-Bin9ihv_.js",revision:null},{url:"assets/route-B7oa6zSg.js",revision:null},{url:"assets/route-9wAONQMq.js",revision:null},{url:"assets/route-3D4HslVP.js",revision:null},{url:"assets/redirect-DMNGvjzO.js",revision:null},{url:"assets/react-CO2uhaBc.js",revision:null},{url:"assets/radio-group-DrQ9k883.js",revision:null},{url:"assets/preload-helper-DoS0eHac.js",revision:null},{url:"assets/popover-YeKifm3K.js",revision:null},{url:"assets/payment-setup-CWhCyjHa.js",revision:null},{url:"assets/pay-D-KPn-qm.js",revision:null},{url:"assets/password-input-D8nK3bk7.js",revision:null},{url:"assets/password-CiaPXG92.js",revision:null},{url:"assets/page-header-CDwG3nxs.js",revision:null},{url:"assets/orders-XoL5rQoL.js",revision:null},{url:"assets/okpay-Ce2WH04h.js",revision:null},{url:"assets/nunito-vietnamese-wght-normal-U01xdrZh.woff2",revision:null},{url:"assets/nunito-latin-wght-normal-BzFMHfZw.woff2",revision:null},{url:"assets/nunito-latin-ext-wght-normal-CXYtwYOx.woff2",revision:null},{url:"assets/nunito-cyrillic-wght-normal-CY6AOgYE.woff2",revision:null},{url:"assets/nunito-cyrillic-ext-wght-normal-D4X5GqEv.woff2",revision:null},{url:"assets/noto-sans-vietnamese-wght-normal-DLTJy58D.woff2",revision:null},{url:"assets/noto-sans-latin-wght-normal-BYSzYMf3.woff2",revision:null},{url:"assets/noto-sans-latin-ext-wght-normal-W1qJv59z.woff2",revision:null},{url:"assets/noto-sans-greek-wght-normal-Ymb6dZNd.woff2",revision:null},{url:"assets/noto-sans-greek-ext-wght-normal-12T8GTDR.woff2",revision:null},{url:"assets/noto-sans-devanagari-wght-normal-Cv-Vwajv.woff2",revision:null},{url:"assets/noto-sans-cyrillic-wght-normal-B2hlT84T.woff2",revision:null},{url:"assets/noto-sans-cyrillic-ext-wght-normal-DSNfmdVt.woff2",revision:null},{url:"assets/notifications-OX72ELc1.js",revision:null},{url:"assets/not-found-error-CHHM1I1c.js",revision:null},{url:"assets/monaco.contribution-BNCqMH44.js",revision:null},{url:"assets/messages-Bp0bCjzp.js",revision:null},{url:"assets/matchContext-BFCdcHzo.js",revision:null},{url:"assets/markdown.contribution-FtzundBn.js",revision:null},{url:"assets/markdown-rghzeErz.js",revision:null},{url:"assets/manrope-vietnamese-wght-normal-usUDDRr7.woff2",revision:null},{url:"assets/manrope-latin-wght-normal-DHIcAJRg.woff2",revision:null},{url:"assets/manrope-latin-ext-wght-normal-Ch3YOpNY.woff2",revision:null},{url:"assets/manrope-greek-wght-normal-DL7QRZyv.woff2",revision:null},{url:"assets/manrope-cyrillic-wght-normal-Dvxsihut.woff2",revision:null},{url:"assets/maintenance-error-CuCw7L8t.js",revision:null},{url:"assets/main-DnJ8otd-.js",revision:null},{url:"assets/long-text-fyhANC4b.js",revision:null},{url:"assets/logo-Ce__4GTc.js",revision:null},{url:"assets/loader-circle-DpEz1fQv.js",revision:null},{url:"assets/link-BYG8nKNO.js",revision:null},{url:"assets/lib-DCke3ZPi.js",revision:null},{url:"assets/lazyRouteComponent-iygd3-DM.js",revision:null},{url:"assets/labels-D0HnAPk9.js",revision:null},{url:"assets/label-CQ1eaOwZ.js",revision:null},{url:"assets/keys-D6xhmsEg.js",revision:null},{url:"assets/jsonMode-DjuQ1ZC5.js",revision:null},{url:"assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2",revision:null},{url:"assets/inter-latin-wght-normal-Dx4kXJAl.woff2",revision:null},{url:"assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2",revision:null},{url:"assets/inter-greek-wght-normal-CkhJZR-_.woff2",revision:null},{url:"assets/inter-greek-ext-wght-normal-DlzME5K_.woff2",revision:null},{url:"assets/inter-cyrillic-wght-normal-DqGufNeO.woff2",revision:null},{url:"assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2",revision:null},{url:"assets/integrations-d7FQWamq.js",revision:null},{url:"assets/install-C3-O8MFY.js",revision:null},{url:"assets/input-BleRUV2A.js",revision:null},{url:"assets/index-DhgNijKi.js",revision:null},{url:"assets/index-CSgdIpTt.css",revision:null},{url:"assets/html.contribution-Baf-XjFx.js",revision:null},{url:"assets/html-Dtt1eLDu.js",revision:null},{url:"assets/help-n4xnORtp.js",revision:null},{url:"assets/header-D45l3Ai7.js",revision:null},{url:"assets/handlebars-d5Fb_oR7.js",revision:null},{url:"assets/go.contribution-BmlX-a-9.js",revision:null},{url:"assets/go-leGpQeN8.js",revision:null},{url:"assets/general-error-BoIfl_4Z.js",revision:null},{url:"assets/form-BhKmyN6D.js",revision:null},{url:"assets/forbidden-DZPSchCU.js",revision:null},{url:"assets/font-provider-CtpKPVa7.js",revision:null},{url:"assets/eye-off-B8hO0oST.js",revision:null},{url:"assets/eye-DAKGLydt.js",revision:null},{url:"assets/es2015-D8VLlhse.js",revision:null},{url:"assets/es-fZtL7B9U.js",revision:null},{url:"assets/es-Ddhai3Z6.css",revision:null},{url:"assets/epusdt-DkhuuUpL.js",revision:null},{url:"assets/epay-F8J9Rfxi.js",revision:null},{url:"assets/empty-state-BdzO6t8R.js",revision:null},{url:"assets/ellipsis-74ly4-Wm.js",revision:null},{url:"assets/dropdown-menu-8-hEBtzr.js",revision:null},{url:"assets/download-fYUtNZ3R.js",revision:null},{url:"assets/dist-_ND6L-P3.js",revision:null},{url:"assets/dist-DGDEBCW9.js",revision:null},{url:"assets/dist-D7AUoOWu.js",revision:null},{url:"assets/dist-Clua1vrx.js",revision:null},{url:"assets/dist-CRowTfGU.js",revision:null},{url:"assets/dist-CPQ-sRtL.js",revision:null},{url:"assets/dist-CKFLmh1A.js",revision:null},{url:"assets/dist-C97YBjnT.js",revision:null},{url:"assets/dist-C6i4A_Js.js",revision:null},{url:"assets/dist-Bmn8KNt7.js",revision:null},{url:"assets/dist-BixeH3nX.js",revision:null},{url:"assets/dist-BSXD7MjW.js",revision:null},{url:"assets/dist-BGqHIBUe.js",revision:null},{url:"assets/dist-BFnxq45V.js",revision:null},{url:"assets/dist-B0ikDpJU.js",revision:null},{url:"assets/dist-036CEgdV.js",revision:null},{url:"assets/display-JOhpHnKq.js",revision:null},{url:"assets/dialog-BJ5VA2v_.js",revision:null},{url:"assets/data-table-C3Nm2K6Z.js",revision:null},{url:"assets/dashboard-DLh95Ec3.js",revision:null},{url:"assets/crypto-icon-DsKMU9xz.js",revision:null},{url:"assets/createLucideIcon-Br0Bd5k2.js",revision:null},{url:"assets/copy-to-clipboard-C1tj4a8X.js",revision:null},{url:"assets/cookies-BzZOQYPw.js",revision:null},{url:"assets/confirm-dialog-YmxNnOr3.js",revision:null},{url:"assets/command-CIv3ggHf.js",revision:null},{url:"assets/coming-soon-dialog-BWHKf2Gm.js",revision:null},{url:"assets/clsx-D9aGYY3V.js",revision:null},{url:"assets/chunk-DECur_0Z.js",revision:null},{url:"assets/chevrons-up-down-BPquKoYJ.js",revision:null},{url:"assets/chevron-down-BB5h1CsX.js",revision:null},{url:"assets/checkout-model-CQ3aqlob.js",revision:null},{url:"assets/checkbox-CKrZFk1G.js",revision:null},{url:"assets/check-CHp0nSkR.js",revision:null},{url:"assets/chains-store-B0tGSNqG.js",revision:null},{url:"assets/chains-ZsMRX5G9.js",revision:null},{url:"assets/card-C7G2YcSg.js",revision:null},{url:"assets/button-BgMnOYKD.js",revision:null},{url:"assets/badge-BP05f1dq.js",revision:null},{url:"assets/auth-store-Csn6HPxJ.js",revision:null},{url:"assets/auth-animation-context-CO6PD8ih.js",revision:null},{url:"assets/atom-DQpaPCwp.js",revision:null},{url:"assets/arrow-left-right-CcCrkQiR.js",revision:null},{url:"assets/arrow-left-BpZwGREZ.js",revision:null},{url:"assets/appearance-CslRyYyk.js",revision:null},{url:"assets/addresses-BOy7duFM.js",revision:null},{url:"assets/_trade_id-Busmu9hU.js",revision:null},{url:"assets/_trade_id-BQK1SM3u.js",revision:null},{url:"assets/_error-CeoUllM-.js",revision:null},{url:"assets/_error-BSLzv73v.js",revision:null},{url:"assets/_.contribution-CaUqztrQ.js",revision:null},{url:"assets/Matches-DYR79wJf.js",revision:null},{url:"assets/Match-Cm64cgS9.js",revision:null},{url:"assets/ClientOnly-fFIveJVd.js",revision:null},{url:"assets/503-KDAPoK8D.js",revision:null},{url:"assets/500-Ckr9SgA0.js",revision:null},{url:"assets/404-CfnT1SCK.js",revision:null},{url:"assets/403-DROJKVmF.js",revision:null},{url:"assets/401-BxmwY4ZX.js",revision:null},{url:"apple-touch-icon.png",revision:"f9c8240d0509320d85a82bd60a6b426f"},{url:"favicon.ico",revision:"abba9e0d76413fa735e878d17223cfcb"},{url:"pwa-192x192.png",revision:"8bc372216f92e2f0e011daff55721ccb"},{url:"pwa-512x512.png",revision:"2fcf48a2ae4e95f6d7f4a6bc2cc42a63"},{url:"pwa-maskable-192x192.png",revision:"8befa0caebf24d2e0b01c36e01ab4bd7"},{url:"pwa-maskable-512x512.png",revision:"106b94c2eb0675579ae40309698f364c"},{url:"robots.txt",revision:"fa1ded1ed7c11438a9b0385b1e112850"},{url:"images/logo.png",revision:"fa701b6a1d714ecf4856df660055eb89"},{url:"manifest.webmanifest",revision:"8d2924aafc68495c2adffcd2b8cff2c1"}],{}),s.cleanupOutdatedCaches()}); +if(!self.define){let s,l={};const e=(e,r)=>(e=new URL(e+".js",r).href,l[e]||new Promise(l=>{if("document"in self){const s=document.createElement("script");s.src=e,s.onload=l,document.head.appendChild(s)}else s=e,importScripts(e),l()}).then(()=>{let s=l[e];if(!s)throw new Error(`Module ${e} didn’t register its module`);return s}));self.define=(r,n)=>{const i=s||("document"in self?document.currentScript.src:"")||location.href;if(l[i])return;let u={};const o=s=>e(s,i),t={module:{uri:i},exports:u,require:o};l[i]=Promise.all(r.map(s=>t[s]||o(s))).then(s=>(n(...s),u))}}define(["./workbox-004510d2"],function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"pwa-maskable-512x512.png",revision:"106b94c2eb0675579ae40309698f364c"},{url:"pwa-maskable-192x192.png",revision:"8befa0caebf24d2e0b01c36e01ab4bd7"},{url:"pwa-512x512.png",revision:"2fcf48a2ae4e95f6d7f4a6bc2cc42a63"},{url:"pwa-192x192.png",revision:"8bc372216f92e2f0e011daff55721ccb"},{url:"favicon.ico",revision:"abba9e0d76413fa735e878d17223cfcb"},{url:"favicon-32x32.png",revision:"0847a57e9d3ae134e314a1339af3516d"},{url:"favicon-16x16.png",revision:"3e5fdc64b0a41f498c177fb2dc89ec6a"},{url:"apple-touch-icon.png",revision:"f9c8240d0509320d85a82bd60a6b426f"},{url:"images/logo.png",revision:"fa701b6a1d714ecf4856df660055eb89"},{url:"assets/zod-rwFXxHlg.js",revision:null},{url:"assets/yaml.contribution-BN-iiJx2.js",revision:null},{url:"assets/yaml-Lx-4NZKN.js",revision:null},{url:"assets/with-selector-DBfssCrY.js",revision:null},{url:"assets/web-vitals-Cb5qXObG.js",revision:null},{url:"assets/wallet-CtiawGS1.js",revision:null},{url:"assets/useStore-CupyIEEP.js",revision:null},{url:"assets/useSearch-Diln-KYh.js",revision:null},{url:"assets/useRouterState-B2FPPjEe.js",revision:null},{url:"assets/useRouter-DtTm7XkK.js",revision:null},{url:"assets/useNavigate-7u4DX0Ho.js",revision:null},{url:"assets/use-table-url-state-DP0Y4QjR.js",revision:null},{url:"assets/unauthorized-error-CtrGmVOn.js",revision:null},{url:"assets/triangle-alert-DB5v_9sS.js",revision:null},{url:"assets/trash-2-9I8lAjeE.js",revision:null},{url:"assets/tooltip-xZuTTfnF.js",revision:null},{url:"assets/theme-switch-CHLQml_8.js",revision:null},{url:"assets/theme-provider-BREWrHp_.js",revision:null},{url:"assets/textarea-C8ejjLzk.js",revision:null},{url:"assets/telescope-DU0wiTDw.js",revision:null},{url:"assets/telegram-Br_DijOI.js",revision:null},{url:"assets/tabs-6Ep1KePr.js",revision:null},{url:"assets/table-9UOy2Vxt.js",revision:null},{url:"assets/system-CzKDOsCg.js",revision:null},{url:"assets/switch-CgoJjvdz.js",revision:null},{url:"assets/sun-JU8p4FoE.js",revision:null},{url:"assets/skeleton-CmDjDV1O.js",revision:null},{url:"assets/sign-in-_ux3l1kN.js",revision:null},{url:"assets/sidebar-nav-LZqaVZGH.js",revision:null},{url:"assets/show-submitted-data-BqZb-_Pf.js",revision:null},{url:"assets/shield-check-MAPDL1u8.js",revision:null},{url:"assets/settings-eRG1_Yuf.js",revision:null},{url:"assets/separator-CsUemQNs.js",revision:null},{url:"assets/send-BNvceEpO.js",revision:null},{url:"assets/select-CzebumOF.js",revision:null},{url:"assets/search-provider-C-_FQI9C.js",revision:null},{url:"assets/rpc-cAFAt1WZ.js",revision:null},{url:"assets/routes-D7HD5c-e.js",revision:null},{url:"assets/router-eyRTkMwc.js",revision:null},{url:"assets/route-wzPKSRj2.js",revision:null},{url:"assets/route-lp7ScXTd.js",revision:null},{url:"assets/route-GrVEK0V1.js",revision:null},{url:"assets/route-DvJeidrw.js",revision:null},{url:"assets/route-D1gzbhTf.js",revision:null},{url:"assets/route-CAiA_U_q.js",revision:null},{url:"assets/route-C6USHQDN.js",revision:null},{url:"assets/redirect-DMNGvjzO.js",revision:null},{url:"assets/react-CO2uhaBc.js",revision:null},{url:"assets/radio-group-D2rceepu.js",revision:null},{url:"assets/preload-helper-DoS0eHac.js",revision:null},{url:"assets/popover-NQZzcPDh.js",revision:null},{url:"assets/payment-setup-BFIKIu1u.js",revision:null},{url:"assets/pay-BNu4n_oI.js",revision:null},{url:"assets/password-input-95hMTMdh.js",revision:null},{url:"assets/password-DElKXGVw.js",revision:null},{url:"assets/page-header-GTtyZFBB.js",revision:null},{url:"assets/orders-C2v2goOf.js",revision:null},{url:"assets/okpay-D5pTA_4W.js",revision:null},{url:"assets/nunito-vietnamese-wght-normal-U01xdrZh.woff2",revision:null},{url:"assets/nunito-latin-wght-normal-BzFMHfZw.woff2",revision:null},{url:"assets/nunito-latin-ext-wght-normal-CXYtwYOx.woff2",revision:null},{url:"assets/nunito-cyrillic-wght-normal-CY6AOgYE.woff2",revision:null},{url:"assets/nunito-cyrillic-ext-wght-normal-D4X5GqEv.woff2",revision:null},{url:"assets/noto-sans-vietnamese-wght-normal-DLTJy58D.woff2",revision:null},{url:"assets/noto-sans-latin-wght-normal-BYSzYMf3.woff2",revision:null},{url:"assets/noto-sans-latin-ext-wght-normal-W1qJv59z.woff2",revision:null},{url:"assets/noto-sans-greek-wght-normal-Ymb6dZNd.woff2",revision:null},{url:"assets/noto-sans-greek-ext-wght-normal-12T8GTDR.woff2",revision:null},{url:"assets/noto-sans-devanagari-wght-normal-Cv-Vwajv.woff2",revision:null},{url:"assets/noto-sans-cyrillic-wght-normal-B2hlT84T.woff2",revision:null},{url:"assets/noto-sans-cyrillic-ext-wght-normal-DSNfmdVt.woff2",revision:null},{url:"assets/notifications-xdKOW8nn.js",revision:null},{url:"assets/not-found-error-BvJzTnw0.js",revision:null},{url:"assets/monaco.contribution-BNCqMH44.js",revision:null},{url:"assets/messages-BOatyqUm.js",revision:null},{url:"assets/matchContext-BFCdcHzo.js",revision:null},{url:"assets/markdown.contribution-FtzundBn.js",revision:null},{url:"assets/markdown-rghzeErz.js",revision:null},{url:"assets/manrope-vietnamese-wght-normal-usUDDRr7.woff2",revision:null},{url:"assets/manrope-latin-wght-normal-DHIcAJRg.woff2",revision:null},{url:"assets/manrope-latin-ext-wght-normal-Ch3YOpNY.woff2",revision:null},{url:"assets/manrope-greek-wght-normal-DL7QRZyv.woff2",revision:null},{url:"assets/manrope-cyrillic-wght-normal-Dvxsihut.woff2",revision:null},{url:"assets/maintenance-error-DeZhljU8.js",revision:null},{url:"assets/main-C1R3Hvq1.js",revision:null},{url:"assets/long-text-DNqlDi0R.js",revision:null},{url:"assets/logo-agrtpj2n.js",revision:null},{url:"assets/loader-circle-DpEz1fQv.js",revision:null},{url:"assets/link-DPnL8P5J.js",revision:null},{url:"assets/lib-DDezYSnW.js",revision:null},{url:"assets/lazyRouteComponent-JF8ipq5d.js",revision:null},{url:"assets/labels-Cbc2zlmv.js",revision:null},{url:"assets/label-DNL0sHKL.js",revision:null},{url:"assets/keys-DvE6Ll4y.js",revision:null},{url:"assets/jsonMode-DjuQ1ZC5.js",revision:null},{url:"assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2",revision:null},{url:"assets/inter-latin-wght-normal-Dx4kXJAl.woff2",revision:null},{url:"assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2",revision:null},{url:"assets/inter-greek-wght-normal-CkhJZR-_.woff2",revision:null},{url:"assets/inter-greek-ext-wght-normal-DlzME5K_.woff2",revision:null},{url:"assets/inter-cyrillic-wght-normal-DqGufNeO.woff2",revision:null},{url:"assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2",revision:null},{url:"assets/integrations-Clnk2I57.js",revision:null},{url:"assets/install-B-GE7uWS.js",revision:null},{url:"assets/input-8zzM34r5.js",revision:null},{url:"assets/index-CSgdIpTt.css",revision:null},{url:"assets/index-3E84QvKw.js",revision:null},{url:"assets/html.contribution-Baf-XjFx.js",revision:null},{url:"assets/html-Dtt1eLDu.js",revision:null},{url:"assets/help-Bq6Uj7UY.js",revision:null},{url:"assets/header-DVAsq5d6.js",revision:null},{url:"assets/handlebars-d5Fb_oR7.js",revision:null},{url:"assets/go.contribution-BmlX-a-9.js",revision:null},{url:"assets/go-leGpQeN8.js",revision:null},{url:"assets/general-error-BoAB2alm.js",revision:null},{url:"assets/form-KfFEakes.js",revision:null},{url:"assets/forbidden-CgQyYxDt.js",revision:null},{url:"assets/font-provider-BPsIRWbb.js",revision:null},{url:"assets/eye-off-B8hO0oST.js",revision:null},{url:"assets/eye-DAKGLydt.js",revision:null},{url:"assets/es2015-DT8UeWzs.js",revision:null},{url:"assets/es-fZtL7B9U.js",revision:null},{url:"assets/es-Ddhai3Z6.css",revision:null},{url:"assets/epusdt-BvGYu9TV.js",revision:null},{url:"assets/epay-BPdlNSqh.js",revision:null},{url:"assets/empty-state-CxE4wU3V.js",revision:null},{url:"assets/ellipsis-74ly4-Wm.js",revision:null},{url:"assets/dropdown-menu-DzCIpsuG.js",revision:null},{url:"assets/download-fYUtNZ3R.js",revision:null},{url:"assets/dist-rcWP-8Cu.js",revision:null},{url:"assets/dist-iiotRAEO.js",revision:null},{url:"assets/dist-ZdRQQNeu.js",revision:null},{url:"assets/dist-JOUh6qvR.js",revision:null},{url:"assets/dist-DvwKOQ8R.js",revision:null},{url:"assets/dist-Dtn5c_cx.js",revision:null},{url:"assets/dist-DPPquN_M.js",revision:null},{url:"assets/dist-D4X8zGEB.js",revision:null},{url:"assets/dist-D0DoWChj.js",revision:null},{url:"assets/dist-CsIb2aLK.js",revision:null},{url:"assets/dist-Cc8_LDAq.js",revision:null},{url:"assets/dist-CRowTfGU.js",revision:null},{url:"assets/dist-CHFjpVqk.js",revision:null},{url:"assets/dist-C5heX0fx.js",revision:null},{url:"assets/dist-BixeH3nX.js",revision:null},{url:"assets/dist-BNFQuJTu.js",revision:null},{url:"assets/display-CqGwMVHS.js",revision:null},{url:"assets/dialog-CZ-2RPb-.js",revision:null},{url:"assets/data-table-1LQSBhN2.js",revision:null},{url:"assets/dashboard-C_GaAVh0.js",revision:null},{url:"assets/crypto-icon-DnliVYVs.js",revision:null},{url:"assets/createLucideIcon-Br0Bd5k2.js",revision:null},{url:"assets/copy-to-clipboard-C1tj4a8X.js",revision:null},{url:"assets/cookies-BzZOQYPw.js",revision:null},{url:"assets/confirm-dialog-D1L-0EhT.js",revision:null},{url:"assets/command-B_SlhXkX.js",revision:null},{url:"assets/coming-soon-dialog-B34F88bO.js",revision:null},{url:"assets/clsx-D9aGYY3V.js",revision:null},{url:"assets/chunk-DECur_0Z.js",revision:null},{url:"assets/chevrons-up-down-BPquKoYJ.js",revision:null},{url:"assets/chevron-down-BB5h1CsX.js",revision:null},{url:"assets/checkout-model-CQ3aqlob.js",revision:null},{url:"assets/checkbox-CTHgcB3t.js",revision:null},{url:"assets/check-CHp0nSkR.js",revision:null},{url:"assets/chains-store-DCzO87jZ.js",revision:null},{url:"assets/chains-D5PNpB55.js",revision:null},{url:"assets/card-DiF5YaRi.js",revision:null},{url:"assets/button-C_NDYaz8.js",revision:null},{url:"assets/badge-VJlwwTW5.js",revision:null},{url:"assets/auth-store-De4Y7PFV.js",revision:null},{url:"assets/auth-animation-context-CmPA3sF3.js",revision:null},{url:"assets/atom-DQpaPCwp.js",revision:null},{url:"assets/arrow-left-right-CcCrkQiR.js",revision:null},{url:"assets/arrow-left-BpZwGREZ.js",revision:null},{url:"assets/appearance-Cl8fvRSv.js",revision:null},{url:"assets/addresses-CNbxs6Fb.js",revision:null},{url:"assets/_trade_id-DIf2n6tl.js",revision:null},{url:"assets/_trade_id-CrABgEyD.js",revision:null},{url:"assets/_error-CtV7sHbI.js",revision:null},{url:"assets/_error-BWjxg4aC.js",revision:null},{url:"assets/_.contribution-CaUqztrQ.js",revision:null},{url:"assets/Matches-9qnXJNrS.js",revision:null},{url:"assets/Match-DrG03Wse.js",revision:null},{url:"assets/ClientOnly-Bj5CESUC.js",revision:null},{url:"assets/503-DqC0HW48.js",revision:null},{url:"assets/500-Ch8AmacC.js",revision:null},{url:"assets/404-pq4P7jD8.js",revision:null},{url:"assets/403-DfLmRqHM.js",revision:null},{url:"assets/401-CvFvdOr5.js",revision:null},{url:"apple-touch-icon.png",revision:"f9c8240d0509320d85a82bd60a6b426f"},{url:"favicon.ico",revision:"abba9e0d76413fa735e878d17223cfcb"},{url:"pwa-192x192.png",revision:"8bc372216f92e2f0e011daff55721ccb"},{url:"pwa-512x512.png",revision:"2fcf48a2ae4e95f6d7f4a6bc2cc42a63"},{url:"pwa-maskable-192x192.png",revision:"8befa0caebf24d2e0b01c36e01ab4bd7"},{url:"pwa-maskable-512x512.png",revision:"106b94c2eb0675579ae40309698f364c"},{url:"robots.txt",revision:"fa1ded1ed7c11438a9b0385b1e112850"},{url:"images/logo.png",revision:"fa701b6a1d714ecf4856df660055eb89"},{url:"manifest.webmanifest",revision:"8d2924aafc68495c2adffcd2b8cff2c1"}],{}),s.cleanupOutdatedCaches()}); From 3621a0241405cea446b9b70d2415caf70111dddc Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 29 Jun 2026 08:00:05 +0000 Subject: [PATCH 7/8] chore(www): sync frontend build --- .../assets/{addresses-CNbxs6Fb.js => addresses-lQocmp_u.js} | 2 +- src/www/assets/{chains-D5PNpB55.js => chains-BMgOL_QE.js} | 2 +- src/www/assets/{index-3E84QvKw.js => index-Bhi1y2zc.js} | 2 +- src/www/assets/install-B-GE7uWS.js | 1 - src/www/assets/install-_AmBcHKu.js | 1 + src/www/assets/{keys-DvE6Ll4y.js => keys-D0eVvlbn.js} | 2 +- src/www/assets/{orders-C2v2goOf.js => orders-oloW11KP.js} | 2 +- src/www/assets/{router-eyRTkMwc.js => router-Z0tUklFK.js} | 4 ++-- src/www/assets/{rpc-cAFAt1WZ.js => rpc-D7fjJcmI.js} | 2 +- src/www/index.html | 4 ++-- src/www/sw.js | 2 +- 11 files changed, 12 insertions(+), 12 deletions(-) rename src/www/assets/{addresses-CNbxs6Fb.js => addresses-lQocmp_u.js} (99%) rename src/www/assets/{chains-D5PNpB55.js => chains-BMgOL_QE.js} (99%) rename src/www/assets/{index-3E84QvKw.js => index-Bhi1y2zc.js} (99%) delete mode 100644 src/www/assets/install-B-GE7uWS.js create mode 100644 src/www/assets/install-_AmBcHKu.js rename src/www/assets/{keys-DvE6Ll4y.js => keys-D0eVvlbn.js} (99%) rename src/www/assets/{orders-C2v2goOf.js => orders-oloW11KP.js} (99%) rename src/www/assets/{router-eyRTkMwc.js => router-Z0tUklFK.js} (97%) rename src/www/assets/{rpc-cAFAt1WZ.js => rpc-D7fjJcmI.js} (99%) diff --git a/src/www/assets/addresses-CNbxs6Fb.js b/src/www/assets/addresses-lQocmp_u.js similarity index 99% rename from src/www/assets/addresses-CNbxs6Fb.js rename to src/www/assets/addresses-lQocmp_u.js index 906d87e..b052563 100644 --- a/src/www/assets/addresses-CNbxs6Fb.js +++ b/src/www/assets/addresses-lQocmp_u.js @@ -1,3 +1,3 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{a as t,o as n}from"./auth-store-De4Y7PFV.js";import{t as r}from"./router-eyRTkMwc.js";import{t as i}from"./react-CO2uhaBc.js";import{$o as a,Ao as o,Bo as s,Cs as c,Es as l,Fo as u,Go as d,Ho as f,Io as p,Jo as m,Ko as h,Lo as g,Mo as _,No as ee,Po as v,Qo as y,Ro as b,Ss as x,Ts as S,Uo as C,Vo as te,Wo as w,Xo as T,Yo as E,Zo as D,_s as ne,as as re,bs as ie,cs as O,ds as ae,es as oe,fs as se,gs as k,hs as ce,is as le,jo as ue,ls as de,ms as fe,ns as pe,os as me,ps as he,qo as ge,rs as _e,ss as ve,tm as ye,ts as be,us as xe,vs as Se,ws as Ce,xs as we,ys as Te,zo as Ee}from"./messages-BOatyqUm.js";import{r as De}from"./route-wzPKSRj2.js";import{o as Oe}from"./search-provider-C-_FQI9C.js";import{i as ke,t as A}from"./button-C_NDYaz8.js";import{t as Ae}from"./confirm-dialog-D1L-0EhT.js";import{a as je,c as j,l as Me,r as Ne,s as Pe,t as Fe}from"./dropdown-menu-DzCIpsuG.js";import{t as M}from"./label-DNL0sHKL.js";import{a as N,i as P,n as F,r as I,t as L}from"./select-CzebumOF.js";import{t as Ie}from"./switch-CgoJjvdz.js";import{a as R,c as Le,d as Re,f as ze,l as Be,n as Ve,o as He,r as Ue,s as We,t as Ge,u as Ke}from"./data-table-1LQSBhN2.js";import{t as qe}from"./epusdt-BvGYu9TV.js";import{t as Je}from"./download-fYUtNZ3R.js";import{t as Ye}from"./ellipsis-74ly4-Wm.js";import{t as Xe}from"./eye-off-B8hO0oST.js";import{t as Ze}from"./eye-DAKGLydt.js";import{n as Qe,t as $e}from"./main-C1R3Hvq1.js";import{n as et,t as z}from"./chains-store-DCzO87jZ.js";import{n as tt,t as nt}from"./trash-2-9I8lAjeE.js";import{a as rt,i as B,o as V,r as H,s as U,t as W}from"./dialog-CZ-2RPb-.js";import{n as G}from"./dist-JOUh6qvR.js";import{c as K,s as it}from"./zod-rwFXxHlg.js";import{a as q,c as at,i as J,l as ot,n as Y,o as X,s as Z,t as st}from"./form-KfFEakes.js";import{t as ct}from"./input-8zzM34r5.js";import{t as lt}from"./page-header-GTtyZFBB.js";import{t as ut}from"./textarea-C8ejjLzk.js";import{t as dt}from"./use-table-url-state-DP0Y4QjR.js";import{t as ft}from"./long-text-DNqlDi0R.js";var Q=e(i(),1),$=ye(),pt=it({address:K().min(8,ue()),network:K().min(1,o()),remark:K().max(50).optional()});function mt({open:e,onOpenChange:n,currentRow:r,onSuccess:i}){let{chains:a,loading:o}=z(),c=ot({resolver:at(pt),defaultValues:{address:``,network:``,remark:``}}),l=t.useMutation(`post`,`/admin/api/v1/wallets`),d=t.useMutation(`patch`,`/admin/api/v1/wallets/{id}`),h=(0,Q.useMemo)(()=>a.map(e=>e.network).filter(e=>!!e),[a]);(0,Q.useEffect)(()=>{e&&c.reset({address:r?.address??``,network:r?.network??``,remark:r?.remark??``})},[e,r,c]);function y(e){if(r?.id){d.mutate({params:{path:{id:r.id}},body:{remark:e.remark||void 0}},{onSuccess:()=>{G.success(ee()),n(!1),i?.()}});return}l.mutate({body:{address:e.address,network:e.network,remark:e.remark??``}},{onSuccess:()=>{G.success(_()),n(!1),i?.()}})}let x=l.isPending||d.isPending,S=h.length>0,w=o?C():f(),[T,E]=(0,Q.useState)(!1);return(0,$.jsx)(W,{onOpenChange:n,open:e,children:(0,$.jsxs)(H,{children:[(0,$.jsxs)(V,{children:[(0,$.jsx)(U,{children:r?te():s()}),(0,$.jsx)(B,{children:r?Ee():b()})]}),(0,$.jsx)(st,{...c,children:(0,$.jsxs)(`form`,{className:`space-y-4`,onSubmit:c.handleSubmit(y),children:[(0,$.jsx)(J,{control:c.control,name:`network`,render:({field:e})=>(0,$.jsxs)(q,{children:[(0,$.jsx)(X,{children:O()}),(0,$.jsxs)(L,{disabled:!!r||!S,onValueChange:e.onChange,value:e.value,children:[(0,$.jsx)(Y,{children:(0,$.jsx)(P,{className:`w-full`,children:(0,$.jsx)(N,{placeholder:S?ve():w})})}),(0,$.jsx)(F,{children:S?h.map(e=>(0,$.jsx)(I,{value:e,children:e},e)):(0,$.jsx)(`div`,{className:`px-2 py-1.5 text-muted-foreground text-sm`,children:w})})]}),(0,$.jsx)(Z,{})]})}),(0,$.jsx)(J,{control:c.control,name:`address`,render:({field:e})=>(0,$.jsxs)(q,{children:[(0,$.jsx)(X,{children:re()}),(0,$.jsx)(Y,{children:(0,$.jsxs)(`div`,{className:`relative`,children:[(0,$.jsx)(ct,{...e,className:`pr-10`,disabled:!!r,placeholder:g(),type:T?`text`:`password`}),(0,$.jsx)(`button`,{className:`absolute inset-y-0 right-3 flex items-center text-muted-foreground hover:text-foreground`,onClick:()=>E(e=>!e),type:`button`,children:T?(0,$.jsx)(Xe,{className:`h-4 w-4`}):(0,$.jsx)(Ze,{className:`h-4 w-4`})})]})}),(0,$.jsx)(Z,{})]})}),(0,$.jsx)(J,{control:c.control,name:`remark`,render:({field:e})=>(0,$.jsxs)(q,{children:[(0,$.jsx)(X,{children:m()}),(0,$.jsx)(Y,{children:(0,$.jsx)(ct,{...e,placeholder:p()})}),(0,$.jsx)(Z,{})]})}),(0,$.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,$.jsx)(A,{onClick:()=>n(!1),type:`button`,variant:`outline`,children:le()}),(0,$.jsx)(A,{disabled:x,type:`submit`,children:x?u():v()})]})]})})]})})}function ht(e){return[{id:`status-switch`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:y()}),cell:({row:t})=>(0,$.jsx)(Ie,{checked:t.original.status===1,onCheckedChange:()=>e(t.original.status===1?`disable`:`enable`,t.original)}),enableSorting:!1,enableHiding:!1,meta:{label:y(),skeleton:`switch`,sticky:`left`,th:{className:ke(`rounded-tl-[inherit]`)}}},{accessorKey:`address`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:D()}),cell:({row:e})=>(0,$.jsx)(ft,{className:`font-medium`,children:e.original.address}),enableHiding:!1,meta:{label:D(),skeleton:`long`}},{accessorKey:`network`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:O()}),meta:{label:O(),skeleton:`short`}},{accessorKey:`order_count`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:T()}),meta:{label:T(),skeleton:`id`}},{accessorKey:`source`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:E()}),cell:({row:e})=>e.original.source??`-`,meta:{label:E(),skeleton:`short`}},{accessorKey:`remark`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:m()}),meta:{label:m(),skeleton:`long`}},{accessorKey:`created_at`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:ge()}),cell:({row:e})=>Oe(e.original.created_at),meta:{label:ge(),skeleton:`date`}},{accessorKey:`updated_at`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:h()}),cell:({row:e})=>Oe(e.original.updated_at),meta:{label:h(),skeleton:`date`}},{id:`actions`,enableHiding:!1,meta:{label:d(),skeleton:`action`,sticky:`right`,className:ke(`w-12`)},cell:({row:t})=>(0,$.jsxs)(Fe,{modal:!1,children:[(0,$.jsx)(Me,{asChild:!0,children:(0,$.jsxs)(A,{className:`flex h-8 w-8 p-0 data-[state=open]:bg-muted`,variant:`ghost`,children:[(0,$.jsx)(Ye,{className:`h-4 w-4`}),(0,$.jsx)(`span`,{className:`sr-only`,children:`Open menu`})]})}),(0,$.jsxs)(Ne,{align:`end`,className:`w-40`,children:[(0,$.jsxs)(je,{onClick:()=>e(`edit`,t.original),children:[w(),(0,$.jsx)(j,{children:(0,$.jsx)(et,{size:16})})]}),(0,$.jsx)(Pe,{}),(0,$.jsxs)(je,{onClick:()=>e(`delete`,t.original),variant:`destructive`,children:[k(),(0,$.jsx)(j,{children:(0,$.jsx)(nt,{size:16})})]})]})]})}]}var gt=De(`/_authenticated/addresses/`);function _t({data:e,isLoading:t,onAction:n,onRefresh:r}){let[i,o]=(0,Q.useState)([]),{globalFilter:s,onGlobalFilterChange:c,columnFilters:l,onColumnFiltersChange:u,pagination:d,onPaginationChange:f,ensurePageInRange:p}=dt({search:gt.useSearch(),navigate:gt.useNavigate(),pagination:{defaultPage:1,defaultPageSize:10},globalFilter:{enabled:!0,key:`address`},columnFilters:[{columnId:`status`,searchKey:`status`,type:`array`},{columnId:`network`,searchKey:`network`,type:`array`}]}),m=He({data:e,columns:(0,Q.useMemo)(()=>ht(n),[n]),state:{sorting:i,columnFilters:l,globalFilter:s,pagination:d},onSortingChange:o,onColumnFiltersChange:u,onGlobalFilterChange:c,onPaginationChange:f,globalFilterFn:(e,t,n)=>{let r=String(n).toLowerCase();return(e.original.address??``).toLowerCase().includes(r)||(e.original.remark??``).toLowerCase().includes(r)},getCoreRowModel:We(),getFilteredRowModel:Ke(),getPaginationRowModel:Re(),getSortedRowModel:ze(),getFacetedRowModel:Le(),getFacetedUniqueValues:Be()});(0,Q.useEffect)(()=>{p(m.getPageCount())},[m,p]);let h=[...new Set(e.map(e=>e.network).filter(Boolean))].map(e=>({label:e,value:e}));return(0,$.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,$.jsx)(Ge,{filters:[{columnId:`status`,title:a(),options:[...qe]},{columnId:`network`,title:O(),options:h}],onRefresh:r,searchPlaceholder:be(),table:m}),(0,$.jsx)(Ue,{className:`min-w-[900px]`,emptyText:oe(),loading:t,table:m}),(0,$.jsx)(Ve,{className:`mt-auto`,table:m})]})}function vt(){let{chains:e}=z(),i=t.useQuery(`get`,`/admin/api/v1/wallets`),a=t.useMutation(`delete`,`/admin/api/v1/wallets/{id}`),o=t.useMutation(`post`,`/admin/api/v1/wallets/{id}/status`),s=t.useMutation(`post`,`/admin/api/v1/wallets/batch-import`),[u,d]=(0,Q.useState)(!1),[f,p]=(0,Q.useState)(!1),[m,h]=(0,Q.useState)(``),[g,_]=(0,Q.useState)(``),[ee,v]=(0,Q.useState)(null),[y,b]=(0,Q.useState)(null);(0,Q.useEffect)(()=>{if(!e.length){m&&h(``);return}e.some(e=>e.network&&e.network===m)||h(e[0]?.network??``)},[e,m]);async function C(){await r.invalidateQueries({queryKey:[`get`,`/admin/api/v1/wallets`]})}async function te(){if(!y?.row.id)return;let e=Number(y.row.id);y.action===`delete`?(await a.mutateAsync({params:{path:{id:e}}}),G.success(l())):(y.action===`enable`||y.action===`disable`)&&(await o.mutateAsync({params:{path:{id:e}},body:{status:y.action===`enable`?1:2}}),G.success(S())),await C(),b(null)}async function w(e,t){if(e===`edit`){v(t),d(!0);return}if(e===`enable`||e===`disable`){if(!t.id)return;await o.mutateAsync({params:{path:{id:Number(t.id)}},body:{status:e===`enable`?1:2}}),G.success(S()),await C();return}b({action:e,row:t})}async function T(){if(!m){G.error(Ce());return}let e=g.split(/\r?\n/).map(e=>e.trim()).filter(Boolean);if(!e.length){G.error(c());return}let t=(await s.mutateAsync({body:{addresses:e,network:m}})).data??[],r=t.filter(e=>e.ok).length,i=t.find(e=>!e.ok);i?G.error(we({error:i.error_code?n(i.error_code):i.error??``,success:String(r),total:String(e.length)})):G.success(x({success:String(r),total:String(e.length)})),p(!1),_(``),await C()}return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Qe,{fixed:!0}),(0,$.jsxs)($e,{className:`flex flex-1 flex-col gap-4 sm:gap-6`,children:[(0,$.jsx)(lt,{actions:(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(A,{onClick:()=>p(!0),variant:`outline`,children:[(0,$.jsx)(Je,{className:`mr-2 h-4 w-4`}),ie()]}),(0,$.jsxs)(A,{onClick:()=>{v(null),d(!0)},children:[(0,$.jsx)(tt,{className:`mr-2 h-4 w-4`}),Te()]})]}),description:Se(),title:ne()}),(0,$.jsx)(_t,{data:i.data?.data??[],isLoading:i.isLoading,onAction:w,onRefresh:()=>i.refetch()})]}),(0,$.jsx)(mt,{currentRow:ee,onOpenChange:d,onSuccess:()=>i.refetch(),open:u}),y&&(0,$.jsx)(Ae,{confirmText:y.action===`delete`?k():ce(),desc:(0,$.jsx)(`span`,{children:fe({address:String(y.row.address),action:y.action})}),destructive:y.action===`delete`,handleConfirm:te,onOpenChange:()=>b(null),open:!0,title:y.action===`delete`?he():se()}),(0,$.jsx)(W,{onOpenChange:p,open:f,children:(0,$.jsxs)(H,{children:[(0,$.jsxs)(V,{children:[(0,$.jsx)(U,{children:ae()}),(0,$.jsx)(B,{children:xe()})]}),(0,$.jsxs)(`div`,{className:`space-y-4`,children:[(0,$.jsxs)(`div`,{className:`space-y-2`,children:[(0,$.jsx)(M,{children:de()}),(0,$.jsxs)(L,{onValueChange:h,value:m,children:[(0,$.jsx)(P,{children:(0,$.jsx)(N,{placeholder:ve()})}),(0,$.jsx)(F,{children:e.some(e=>e.network)?e.filter(e=>!!e.network).map(e=>(0,$.jsx)(I,{value:e.network,children:e.display_name??e.network??me()},e.network)):(0,$.jsx)(`div`,{className:`px-2 py-1.5 text-muted-foreground text-sm`,children:Ce()})})]})]}),(0,$.jsxs)(`div`,{className:`space-y-2`,children:[(0,$.jsx)(M,{children:re()}),(0,$.jsx)(ut,{className:`min-h-40`,onChange:e=>_(e.target.value),placeholder:`TAddr001 +import{r as e}from"./chunk-DECur_0Z.js";import{a as t,o as n}from"./auth-store-De4Y7PFV.js";import{t as r}from"./router-Z0tUklFK.js";import{t as i}from"./react-CO2uhaBc.js";import{$o as a,Ao as o,Bo as s,Cs as c,Es as l,Fo as u,Go as d,Ho as f,Io as p,Jo as m,Ko as h,Lo as g,Mo as _,No as ee,Po as v,Qo as y,Ro as b,Ss as x,Ts as S,Uo as C,Vo as te,Wo as w,Xo as T,Yo as E,Zo as D,_s as ne,as as re,bs as ie,cs as O,ds as ae,es as oe,fs as se,gs as k,hs as ce,is as le,jo as ue,ls as de,ms as fe,ns as pe,os as me,ps as he,qo as ge,rs as _e,ss as ve,tm as ye,ts as be,us as xe,vs as Se,ws as Ce,xs as we,ys as Te,zo as Ee}from"./messages-BOatyqUm.js";import{r as De}from"./route-wzPKSRj2.js";import{o as Oe}from"./search-provider-C-_FQI9C.js";import{i as ke,t as A}from"./button-C_NDYaz8.js";import{t as Ae}from"./confirm-dialog-D1L-0EhT.js";import{a as je,c as j,l as Me,r as Ne,s as Pe,t as Fe}from"./dropdown-menu-DzCIpsuG.js";import{t as M}from"./label-DNL0sHKL.js";import{a as N,i as P,n as F,r as I,t as L}from"./select-CzebumOF.js";import{t as Ie}from"./switch-CgoJjvdz.js";import{a as R,c as Le,d as Re,f as ze,l as Be,n as Ve,o as He,r as Ue,s as We,t as Ge,u as Ke}from"./data-table-1LQSBhN2.js";import{t as qe}from"./epusdt-BvGYu9TV.js";import{t as Je}from"./download-fYUtNZ3R.js";import{t as Ye}from"./ellipsis-74ly4-Wm.js";import{t as Xe}from"./eye-off-B8hO0oST.js";import{t as Ze}from"./eye-DAKGLydt.js";import{n as Qe,t as $e}from"./main-C1R3Hvq1.js";import{n as et,t as z}from"./chains-store-DCzO87jZ.js";import{n as tt,t as nt}from"./trash-2-9I8lAjeE.js";import{a as rt,i as B,o as V,r as H,s as U,t as W}from"./dialog-CZ-2RPb-.js";import{n as G}from"./dist-JOUh6qvR.js";import{c as K,s as it}from"./zod-rwFXxHlg.js";import{a as q,c as at,i as J,l as ot,n as Y,o as X,s as Z,t as st}from"./form-KfFEakes.js";import{t as ct}from"./input-8zzM34r5.js";import{t as lt}from"./page-header-GTtyZFBB.js";import{t as ut}from"./textarea-C8ejjLzk.js";import{t as dt}from"./use-table-url-state-DP0Y4QjR.js";import{t as ft}from"./long-text-DNqlDi0R.js";var Q=e(i(),1),$=ye(),pt=it({address:K().min(8,ue()),network:K().min(1,o()),remark:K().max(50).optional()});function mt({open:e,onOpenChange:n,currentRow:r,onSuccess:i}){let{chains:a,loading:o}=z(),c=ot({resolver:at(pt),defaultValues:{address:``,network:``,remark:``}}),l=t.useMutation(`post`,`/admin/api/v1/wallets`),d=t.useMutation(`patch`,`/admin/api/v1/wallets/{id}`),h=(0,Q.useMemo)(()=>a.map(e=>e.network).filter(e=>!!e),[a]);(0,Q.useEffect)(()=>{e&&c.reset({address:r?.address??``,network:r?.network??``,remark:r?.remark??``})},[e,r,c]);function y(e){if(r?.id){d.mutate({params:{path:{id:r.id}},body:{remark:e.remark||void 0}},{onSuccess:()=>{G.success(ee()),n(!1),i?.()}});return}l.mutate({body:{address:e.address,network:e.network,remark:e.remark??``}},{onSuccess:()=>{G.success(_()),n(!1),i?.()}})}let x=l.isPending||d.isPending,S=h.length>0,w=o?C():f(),[T,E]=(0,Q.useState)(!1);return(0,$.jsx)(W,{onOpenChange:n,open:e,children:(0,$.jsxs)(H,{children:[(0,$.jsxs)(V,{children:[(0,$.jsx)(U,{children:r?te():s()}),(0,$.jsx)(B,{children:r?Ee():b()})]}),(0,$.jsx)(st,{...c,children:(0,$.jsxs)(`form`,{className:`space-y-4`,onSubmit:c.handleSubmit(y),children:[(0,$.jsx)(J,{control:c.control,name:`network`,render:({field:e})=>(0,$.jsxs)(q,{children:[(0,$.jsx)(X,{children:O()}),(0,$.jsxs)(L,{disabled:!!r||!S,onValueChange:e.onChange,value:e.value,children:[(0,$.jsx)(Y,{children:(0,$.jsx)(P,{className:`w-full`,children:(0,$.jsx)(N,{placeholder:S?ve():w})})}),(0,$.jsx)(F,{children:S?h.map(e=>(0,$.jsx)(I,{value:e,children:e},e)):(0,$.jsx)(`div`,{className:`px-2 py-1.5 text-muted-foreground text-sm`,children:w})})]}),(0,$.jsx)(Z,{})]})}),(0,$.jsx)(J,{control:c.control,name:`address`,render:({field:e})=>(0,$.jsxs)(q,{children:[(0,$.jsx)(X,{children:re()}),(0,$.jsx)(Y,{children:(0,$.jsxs)(`div`,{className:`relative`,children:[(0,$.jsx)(ct,{...e,className:`pr-10`,disabled:!!r,placeholder:g(),type:T?`text`:`password`}),(0,$.jsx)(`button`,{className:`absolute inset-y-0 right-3 flex items-center text-muted-foreground hover:text-foreground`,onClick:()=>E(e=>!e),type:`button`,children:T?(0,$.jsx)(Xe,{className:`h-4 w-4`}):(0,$.jsx)(Ze,{className:`h-4 w-4`})})]})}),(0,$.jsx)(Z,{})]})}),(0,$.jsx)(J,{control:c.control,name:`remark`,render:({field:e})=>(0,$.jsxs)(q,{children:[(0,$.jsx)(X,{children:m()}),(0,$.jsx)(Y,{children:(0,$.jsx)(ct,{...e,placeholder:p()})}),(0,$.jsx)(Z,{})]})}),(0,$.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,$.jsx)(A,{onClick:()=>n(!1),type:`button`,variant:`outline`,children:le()}),(0,$.jsx)(A,{disabled:x,type:`submit`,children:x?u():v()})]})]})})]})})}function ht(e){return[{id:`status-switch`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:y()}),cell:({row:t})=>(0,$.jsx)(Ie,{checked:t.original.status===1,onCheckedChange:()=>e(t.original.status===1?`disable`:`enable`,t.original)}),enableSorting:!1,enableHiding:!1,meta:{label:y(),skeleton:`switch`,sticky:`left`,th:{className:ke(`rounded-tl-[inherit]`)}}},{accessorKey:`address`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:D()}),cell:({row:e})=>(0,$.jsx)(ft,{className:`font-medium`,children:e.original.address}),enableHiding:!1,meta:{label:D(),skeleton:`long`}},{accessorKey:`network`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:O()}),meta:{label:O(),skeleton:`short`}},{accessorKey:`order_count`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:T()}),meta:{label:T(),skeleton:`id`}},{accessorKey:`source`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:E()}),cell:({row:e})=>e.original.source??`-`,meta:{label:E(),skeleton:`short`}},{accessorKey:`remark`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:m()}),meta:{label:m(),skeleton:`long`}},{accessorKey:`created_at`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:ge()}),cell:({row:e})=>Oe(e.original.created_at),meta:{label:ge(),skeleton:`date`}},{accessorKey:`updated_at`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:h()}),cell:({row:e})=>Oe(e.original.updated_at),meta:{label:h(),skeleton:`date`}},{id:`actions`,enableHiding:!1,meta:{label:d(),skeleton:`action`,sticky:`right`,className:ke(`w-12`)},cell:({row:t})=>(0,$.jsxs)(Fe,{modal:!1,children:[(0,$.jsx)(Me,{asChild:!0,children:(0,$.jsxs)(A,{className:`flex h-8 w-8 p-0 data-[state=open]:bg-muted`,variant:`ghost`,children:[(0,$.jsx)(Ye,{className:`h-4 w-4`}),(0,$.jsx)(`span`,{className:`sr-only`,children:`Open menu`})]})}),(0,$.jsxs)(Ne,{align:`end`,className:`w-40`,children:[(0,$.jsxs)(je,{onClick:()=>e(`edit`,t.original),children:[w(),(0,$.jsx)(j,{children:(0,$.jsx)(et,{size:16})})]}),(0,$.jsx)(Pe,{}),(0,$.jsxs)(je,{onClick:()=>e(`delete`,t.original),variant:`destructive`,children:[k(),(0,$.jsx)(j,{children:(0,$.jsx)(nt,{size:16})})]})]})]})}]}var gt=De(`/_authenticated/addresses/`);function _t({data:e,isLoading:t,onAction:n,onRefresh:r}){let[i,o]=(0,Q.useState)([]),{globalFilter:s,onGlobalFilterChange:c,columnFilters:l,onColumnFiltersChange:u,pagination:d,onPaginationChange:f,ensurePageInRange:p}=dt({search:gt.useSearch(),navigate:gt.useNavigate(),pagination:{defaultPage:1,defaultPageSize:10},globalFilter:{enabled:!0,key:`address`},columnFilters:[{columnId:`status`,searchKey:`status`,type:`array`},{columnId:`network`,searchKey:`network`,type:`array`}]}),m=He({data:e,columns:(0,Q.useMemo)(()=>ht(n),[n]),state:{sorting:i,columnFilters:l,globalFilter:s,pagination:d},onSortingChange:o,onColumnFiltersChange:u,onGlobalFilterChange:c,onPaginationChange:f,globalFilterFn:(e,t,n)=>{let r=String(n).toLowerCase();return(e.original.address??``).toLowerCase().includes(r)||(e.original.remark??``).toLowerCase().includes(r)},getCoreRowModel:We(),getFilteredRowModel:Ke(),getPaginationRowModel:Re(),getSortedRowModel:ze(),getFacetedRowModel:Le(),getFacetedUniqueValues:Be()});(0,Q.useEffect)(()=>{p(m.getPageCount())},[m,p]);let h=[...new Set(e.map(e=>e.network).filter(Boolean))].map(e=>({label:e,value:e}));return(0,$.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,$.jsx)(Ge,{filters:[{columnId:`status`,title:a(),options:[...qe]},{columnId:`network`,title:O(),options:h}],onRefresh:r,searchPlaceholder:be(),table:m}),(0,$.jsx)(Ue,{className:`min-w-[900px]`,emptyText:oe(),loading:t,table:m}),(0,$.jsx)(Ve,{className:`mt-auto`,table:m})]})}function vt(){let{chains:e}=z(),i=t.useQuery(`get`,`/admin/api/v1/wallets`),a=t.useMutation(`delete`,`/admin/api/v1/wallets/{id}`),o=t.useMutation(`post`,`/admin/api/v1/wallets/{id}/status`),s=t.useMutation(`post`,`/admin/api/v1/wallets/batch-import`),[u,d]=(0,Q.useState)(!1),[f,p]=(0,Q.useState)(!1),[m,h]=(0,Q.useState)(``),[g,_]=(0,Q.useState)(``),[ee,v]=(0,Q.useState)(null),[y,b]=(0,Q.useState)(null);(0,Q.useEffect)(()=>{if(!e.length){m&&h(``);return}e.some(e=>e.network&&e.network===m)||h(e[0]?.network??``)},[e,m]);async function C(){await r.invalidateQueries({queryKey:[`get`,`/admin/api/v1/wallets`]})}async function te(){if(!y?.row.id)return;let e=Number(y.row.id);y.action===`delete`?(await a.mutateAsync({params:{path:{id:e}}}),G.success(l())):(y.action===`enable`||y.action===`disable`)&&(await o.mutateAsync({params:{path:{id:e}},body:{status:y.action===`enable`?1:2}}),G.success(S())),await C(),b(null)}async function w(e,t){if(e===`edit`){v(t),d(!0);return}if(e===`enable`||e===`disable`){if(!t.id)return;await o.mutateAsync({params:{path:{id:Number(t.id)}},body:{status:e===`enable`?1:2}}),G.success(S()),await C();return}b({action:e,row:t})}async function T(){if(!m){G.error(Ce());return}let e=g.split(/\r?\n/).map(e=>e.trim()).filter(Boolean);if(!e.length){G.error(c());return}let t=(await s.mutateAsync({body:{addresses:e,network:m}})).data??[],r=t.filter(e=>e.ok).length,i=t.find(e=>!e.ok);i?G.error(we({error:i.error_code?n(i.error_code):i.error??``,success:String(r),total:String(e.length)})):G.success(x({success:String(r),total:String(e.length)})),p(!1),_(``),await C()}return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Qe,{fixed:!0}),(0,$.jsxs)($e,{className:`flex flex-1 flex-col gap-4 sm:gap-6`,children:[(0,$.jsx)(lt,{actions:(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(A,{onClick:()=>p(!0),variant:`outline`,children:[(0,$.jsx)(Je,{className:`mr-2 h-4 w-4`}),ie()]}),(0,$.jsxs)(A,{onClick:()=>{v(null),d(!0)},children:[(0,$.jsx)(tt,{className:`mr-2 h-4 w-4`}),Te()]})]}),description:Se(),title:ne()}),(0,$.jsx)(_t,{data:i.data?.data??[],isLoading:i.isLoading,onAction:w,onRefresh:()=>i.refetch()})]}),(0,$.jsx)(mt,{currentRow:ee,onOpenChange:d,onSuccess:()=>i.refetch(),open:u}),y&&(0,$.jsx)(Ae,{confirmText:y.action===`delete`?k():ce(),desc:(0,$.jsx)(`span`,{children:fe({address:String(y.row.address),action:y.action})}),destructive:y.action===`delete`,handleConfirm:te,onOpenChange:()=>b(null),open:!0,title:y.action===`delete`?he():se()}),(0,$.jsx)(W,{onOpenChange:p,open:f,children:(0,$.jsxs)(H,{children:[(0,$.jsxs)(V,{children:[(0,$.jsx)(U,{children:ae()}),(0,$.jsx)(B,{children:xe()})]}),(0,$.jsxs)(`div`,{className:`space-y-4`,children:[(0,$.jsxs)(`div`,{className:`space-y-2`,children:[(0,$.jsx)(M,{children:de()}),(0,$.jsxs)(L,{onValueChange:h,value:m,children:[(0,$.jsx)(P,{children:(0,$.jsx)(N,{placeholder:ve()})}),(0,$.jsx)(F,{children:e.some(e=>e.network)?e.filter(e=>!!e.network).map(e=>(0,$.jsx)(I,{value:e.network,children:e.display_name??e.network??me()},e.network)):(0,$.jsx)(`div`,{className:`px-2 py-1.5 text-muted-foreground text-sm`,children:Ce()})})]})]}),(0,$.jsxs)(`div`,{className:`space-y-2`,children:[(0,$.jsx)(M,{children:re()}),(0,$.jsx)(ut,{className:`min-h-40`,onChange:e=>_(e.target.value),placeholder:`TAddr001 TAddr002 TAddr003`,value:g})]})]}),(0,$.jsxs)(rt,{children:[(0,$.jsx)(A,{onClick:()=>p(!1),variant:`outline`,children:le()}),(0,$.jsx)(A,{disabled:s.isPending||!e.some(e=>e.network),onClick:T,children:s.isPending?_e():pe()})]})]})})]})}var yt=vt;export{yt as component}; \ No newline at end of file diff --git a/src/www/assets/chains-D5PNpB55.js b/src/www/assets/chains-BMgOL_QE.js similarity index 99% rename from src/www/assets/chains-D5PNpB55.js rename to src/www/assets/chains-BMgOL_QE.js index e564ba2..8dbaab8 100644 --- a/src/www/assets/chains-D5PNpB55.js +++ b/src/www/assets/chains-BMgOL_QE.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{a as t,d as n,f as r}from"./auth-store-De4Y7PFV.js";import{t as i}from"./router-eyRTkMwc.js";import{t as a}from"./react-CO2uhaBc.js";import{$a as o,Co as s,Do as c,Eo as l,Fo as u,Go as d,Ko as f,Oo as p,Qa as m,Qo as h,So as g,To as _,Xa as v,Ya as y,Za as b,_o as ee,ao as x,bo as te,co as ne,cs as S,do as C,eo as w,fo as T,go as re,ho as ie,io as E,is as D,ko as O,lo as ae,mo as k,no as A,oo as oe,po as se,qo as ce,ro as le,so as ue,ss as de,tm as fe,to as pe,uo as me,vo as he,wo as ge,xo as _e,yo as ve}from"./messages-BOatyqUm.js";import{B as ye,H as be,o as j,r as xe}from"./search-provider-C-_FQI9C.js";import{i as M,t as N}from"./button-C_NDYaz8.js";import{t as Se}from"./checkbox-CTHgcB3t.js";import{a as P,c as F,l as Ce,r as we,s as Te,t as Ee}from"./dropdown-menu-DzCIpsuG.js";import{a as De,i as Oe,n as ke,r as Ae,t as je}from"./select-CzebumOF.js";import{t as I}from"./separator-CsUemQNs.js";import{t as L}from"./switch-CgoJjvdz.js";import{a as R,c as Me,d as Ne,f as Pe,l as Fe,n as Ie,o as Le,r as Re,s as ze,t as Be,u as Ve}from"./data-table-1LQSBhN2.js";import{t as He}from"./arrow-left-BpZwGREZ.js";import{t as z}from"./skeleton-CmDjDV1O.js";import{t as Ue}from"./ellipsis-74ly4-Wm.js";import{t as We}from"./empty-state-CxE4wU3V.js";import{n as Ge,t as Ke}from"./main-C1R3Hvq1.js";import{n as qe,t as Je}from"./chains-store-DCzO87jZ.js";import{n as Ye,t as Xe}from"./trash-2-9I8lAjeE.js";import{l as Ze}from"./command-B_SlhXkX.js";import{i as Qe,o as $e,r as et,s as tt,t as nt}from"./dialog-CZ-2RPb-.js";import{n as B}from"./dist-JOUh6qvR.js";import{a as rt,c as V,n as H,s as it}from"./zod-rwFXxHlg.js";import{a as U,c as at,i as W,l as ot,n as G,o as K,s as q,t as st}from"./form-KfFEakes.js";import{t as J}from"./input-8zzM34r5.js";import{t as ct}from"./page-header-GTtyZFBB.js";import{t as Y}from"./badge-VJlwwTW5.js";import{t as lt}from"./coming-soon-dialog-B34F88bO.js";var X=e(a(),1),Z=fe(),ut=it({network:V().min(1,m()),symbol:V().min(1,b()),contract_address:V().optional().default(``),decimals:H().min(0,v()).default(6),min_amount:H().min(0,y()).default(0),enabled:rt().default(!0)});function dt({open:e,onOpenChange:t,currentRow:n,onSuccess:r,defaultNetwork:i,onCreate:a,onUpdate:s,chains:c}){let l=ot({resolver:at(ut),defaultValues:{network:``,symbol:``,contract_address:``,decimals:6,min_amount:0,enabled:!0}}),d;d=c?.length?c:i?[{network:i,display_name:i}]:[],(0,X.useEffect)(()=>{e&&l.reset({network:n?.network??i??d[0]?.network??``,symbol:n?.symbol??``,contract_address:n?.contract_address??``,decimals:n?.decimals??6,min_amount:n?.min_amount??0,enabled:n?.enabled??!0})},[e,n,i,d,l]);async function f(e){n?.id?await s(e):await a(e),t(!1),await r?.()}let p=l.formState.isSubmitting;return(0,Z.jsx)(nt,{onOpenChange:t,open:e,children:(0,Z.jsxs)(et,{children:[(0,Z.jsxs)($e,{children:[(0,Z.jsx)(tt,{children:n?ae():ne()}),(0,Z.jsx)(Qe,{children:n?ue():oe()})]}),(0,Z.jsx)(st,{...l,children:(0,Z.jsxs)(`form`,{className:`space-y-4`,onSubmit:l.handleSubmit(f),children:[(0,Z.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,Z.jsx)(W,{control:l.control,name:`network`,render:({field:e})=>(0,Z.jsxs)(U,{children:[(0,Z.jsx)(K,{children:S()}),(0,Z.jsxs)(je,{disabled:!!n,onValueChange:e.onChange,value:e.value,children:[(0,Z.jsx)(G,{children:(0,Z.jsx)(Oe,{className:`w-full`,children:(0,Z.jsx)(De,{placeholder:de()})})}),(0,Z.jsx)(ke,{children:d.map(e=>(0,Z.jsx)(Ae,{value:e.network,children:e.display_name??e.network},e.network))})]}),(0,Z.jsx)(q,{})]})}),(0,Z.jsx)(W,{control:l.control,name:`symbol`,render:({field:e})=>(0,Z.jsxs)(U,{children:[(0,Z.jsx)(K,{children:x()}),(0,Z.jsx)(G,{children:(0,Z.jsx)(J,{placeholder:`USDT`,...e,disabled:!!n})}),(0,Z.jsx)(q,{})]})})]}),(0,Z.jsx)(`div`,{className:`rounded-md border border-dashed p-3 text-muted-foreground text-sm`,children:E()}),(0,Z.jsx)(W,{control:l.control,name:`contract_address`,render:({field:e})=>(0,Z.jsxs)(U,{children:[(0,Z.jsx)(K,{children:le()}),(0,Z.jsx)(G,{children:(0,Z.jsx)(J,{placeholder:`TR7NHqje...`,...e})}),(0,Z.jsx)(q,{})]})}),(0,Z.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,Z.jsx)(W,{control:l.control,name:`decimals`,render:({field:e})=>(0,Z.jsxs)(U,{children:[(0,Z.jsx)(K,{children:A()}),(0,Z.jsx)(G,{children:(0,Z.jsx)(J,{name:e.name,onBlur:e.onBlur,onChange:t=>e.onChange(t.target.value),ref:e.ref,type:`number`,value:String(e.value??``)})}),(0,Z.jsx)(q,{})]})}),(0,Z.jsx)(W,{control:l.control,name:`min_amount`,render:({field:e})=>(0,Z.jsxs)(U,{children:[(0,Z.jsx)(K,{children:pe()}),(0,Z.jsx)(G,{children:(0,Z.jsx)(J,{name:e.name,onBlur:e.onBlur,onChange:t=>e.onChange(t.target.value),ref:e.ref,step:`0.000001`,type:`number`,value:String(e.value??``)})}),(0,Z.jsx)(q,{})]})})]}),(0,Z.jsx)(W,{control:l.control,name:`enabled`,render:({field:e})=>(0,Z.jsxs)(U,{className:`flex flex-row items-start space-x-3 space-y-0 rounded-md border p-4 rtl:space-x-reverse`,children:[(0,Z.jsx)(G,{children:(0,Z.jsx)(Se,{checked:e.value,onCheckedChange:t=>e.onChange(!!t)})}),(0,Z.jsx)(`div`,{className:`space-y-1 leading-none`,children:(0,Z.jsx)(K,{children:h()})})]})}),(0,Z.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,Z.jsx)(N,{onClick:()=>t(!1),type:`button`,variant:`outline`,children:D()}),(0,Z.jsx)(N,{disabled:p,type:`submit`,children:p?u():n?o():w()})]})]})})]})})}function ft(e){return[{id:`switch`,header:({column:e})=>(0,Z.jsx)(R,{column:e,title:h()}),cell:({row:t})=>(0,Z.jsx)(L,{checked:t.original.enabled===!0,onCheckedChange:()=>e(t.original.enabled?`disable`:`enable`,t.original)}),enableSorting:!1,enableHiding:!1,meta:{label:h(),skeleton:`switch`,sticky:`left`,th:{className:M(`rounded-tl-[inherit]`)}}},{accessorKey:`symbol`,header:({column:e})=>(0,Z.jsx)(R,{column:e,title:T()}),cell:({row:e})=>(0,Z.jsx)(`div`,{className:`font-medium`,children:e.original.symbol??`-`}),enableHiding:!1,meta:{label:T(),skeleton:`short`}},{accessorKey:`network`,header:({column:e})=>(0,Z.jsx)(R,{column:e,title:S()}),meta:{label:S(),skeleton:`short`}},{accessorKey:`created_at`,header:({column:e})=>(0,Z.jsx)(R,{column:e,title:ce()}),cell:({row:e})=>j(e.original.created_at),meta:{label:ce(),skeleton:`date`}},{accessorKey:`updated_at`,header:({column:e})=>(0,Z.jsx)(R,{column:e,title:f()}),cell:({row:e})=>j(e.original.updated_at),meta:{label:f(),skeleton:`date`}},{id:`actions`,enableHiding:!1,meta:{label:d(),skeleton:`action`,sticky:`right`},cell:({row:t})=>(0,Z.jsxs)(Ee,{modal:!1,children:[(0,Z.jsx)(Ce,{asChild:!0,children:(0,Z.jsxs)(N,{className:`flex h-8 w-8 p-0 data-[state=open]:bg-muted`,variant:`ghost`,children:[(0,Z.jsx)(Ue,{className:`h-4 w-4`}),(0,Z.jsx)(`span`,{className:`sr-only`,children:`Open menu`})]})}),(0,Z.jsxs)(we,{align:`end`,className:`w-40`,children:[(0,Z.jsxs)(P,{onClick:()=>e(`edit`,t.original),children:[C(),(0,Z.jsx)(F,{children:(0,Z.jsx)(qe,{size:16})})]}),(0,Z.jsx)(Te,{}),(0,Z.jsxs)(P,{onClick:()=>e(`delete`,t.original),variant:`destructive`,children:[me(),(0,Z.jsx)(F,{children:(0,Z.jsx)(Xe,{size:16})})]})]})]})}]}function pt({data:e,isLoading:t,onAction:n,onRefresh:r}){let[i,a]=(0,X.useState)([]),[o,s]=(0,X.useState)(``),[c,l]=(0,X.useState)([]),[u,d]=(0,X.useState)({pageIndex:0,pageSize:10}),f=Le({data:e,columns:(0,X.useMemo)(()=>ft(n),[n]),state:{sorting:i,columnFilters:c,globalFilter:o,pagination:u},onSortingChange:a,onColumnFiltersChange:l,onGlobalFilterChange:s,onPaginationChange:d,globalFilterFn:(e,t,n)=>{let r=String(n).toLowerCase();return(e.original.symbol??``).toLowerCase().includes(r)||(e.original.contract_address??``).toLowerCase().includes(r)},getCoreRowModel:ze(),getFilteredRowModel:Ve(),getPaginationRowModel:Ne(),getSortedRowModel:Pe(),getFacetedRowModel:Me(),getFacetedUniqueValues:Fe()});return(0,X.useEffect)(()=>{let e=f.getPageCount();e>0&&u.pageIndex>e-1&&d(e=>({...e,pageIndex:0}))},[f,u.pageIndex]),(0,Z.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,Z.jsx)(Be,{onRefresh:r,searchKey:`symbol`,searchPlaceholder:k(),table:f}),(0,Z.jsx)(Re,{emptyText:se(),loading:t,table:f}),(0,Z.jsx)(Ie,{className:`mt-auto`,table:f})]})}var Q=new n({chainTokens:[],loading:!1});function mt(e){Q.setState(t=>({...t,chainTokens:e}))}function ht(e){Q.setState(t=>({...t,loading:e}))}function gt(){let e=r(Q,e=>e.chainTokens),n=r(Q,e=>e.loading),i=t.useQuery(`get`,`/admin/api/v1/chain-tokens`);return(0,X.useEffect)(()=>{ht(i.isLoading)},[i.isLoading]),(0,X.useEffect)(()=>{i.data?.data&&mt(i.data.data)},[i.data?.data]),{chainTokens:e,loading:n,refetch:i.refetch}}var _t=[`chain-1`,`chain-2`,`chain-3`,`chain-4`,`chain-5`];function $({active:e,children:t,onClick:n}){return(0,Z.jsx)(`button`,{className:M(`w-full cursor-pointer rounded-lg px-3 py-3 text-left transition-colors hover:bg-accent hover:text-accent-foreground`,e&&`bg-muted`),onClick:n,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),n())},type:`button`,children:t})}function vt({chains:e,isLoading:t,keyword:n,onKeywordChange:r,selectedPanel:i,onSelect:a,onToggle:o,totalTokens:u,hiddenOnMobile:d}){return(0,Z.jsxs)(`div`,{className:M(`flex w-full flex-col gap-2 sm:w-56 lg:w-72 2xl:w-80`,d&&`hidden sm:flex`),children:[(0,Z.jsxs)(`div`,{className:`sticky top-0 z-10 -mx-4 bg-background px-4 pb-3 shadow-md sm:static sm:z-auto sm:mx-0 sm:p-0 sm:shadow-none`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center justify-between py-2`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Z.jsx)(`h1`,{className:`font-bold text-2xl`,children:O()}),(0,Z.jsx)(ye,{size:20})]}),(0,Z.jsx)(Y,{variant:`secondary`,children:p({count:String(e.length)})})]}),(0,Z.jsxs)(`div`,{className:`relative block`,children:[(0,Z.jsx)(Ze,{className:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),(0,Z.jsx)(J,{className:`pl-9`,onChange:e=>r(e.target.value),placeholder:c(),value:n})]})]}),(0,Z.jsxs)(xe,{className:`-mx-3 h-full overflow-auto p-3`,children:[(0,Z.jsx)($,{active:i===`overview`,onClick:()=>a(`overview`),children:(0,Z.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,Z.jsxs)(`div`,{className:`min-w-0`,children:[(0,Z.jsx)(`div`,{className:`font-medium`,children:l()}),(0,Z.jsx)(`div`,{className:`mt-1 text-muted-foreground text-xs`,children:_({chains:String(e.length),tokens:String(u)})})]}),(0,Z.jsx)(be,{className:`mt-0.5 size-4 text-muted-foreground`})]})}),(0,Z.jsx)(I,{className:`my-1`}),t?_t.map(e=>(0,Z.jsxs)(`div`,{className:`px-3 py-3`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,Z.jsx)(z,{className:`h-4 w-24`}),(0,Z.jsx)(z,{className:`h-5 w-9 rounded-full`})]}),(0,Z.jsxs)(`div`,{className:`mt-2 flex items-center justify-between gap-2`,children:[(0,Z.jsx)(z,{className:`h-3 w-28`}),(0,Z.jsx)(z,{className:`h-5 w-12 rounded-full`})]})]},e)):e.map((t,n)=>(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)($,{active:i===t.network,onClick:()=>a(t.network??`overview`),children:(0,Z.jsx)(`div`,{className:`flex items-start gap-3`,children:(0,Z.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,Z.jsxs)(`div`,{className:`flex items-start justify-between gap-2`,children:[(0,Z.jsx)(`div`,{className:`min-w-0`,children:(0,Z.jsx)(`div`,{className:`truncate font-medium`,children:t.display_name})}),(0,Z.jsx)(L,{checked:t.enabled===!0,onCheckedChange:e=>o(t,e),onClick:e=>e.stopPropagation()})]}),(0,Z.jsxs)(`div`,{className:`mt-1 flex items-center justify-between gap-2`,children:[(0,Z.jsx)(`span`,{className:`text-muted-foreground text-xs`,children:ge()}),(0,Z.jsx)(Y,{className:`shrink-0 text-xs`,variant:`outline`,children:t.network})]})]})})}),n{let t=f.trim().toLowerCase();return t?e.filter(e=>[e.display_name,e.network].filter(Boolean).some(e=>String(e).toLowerCase().includes(t))):e},[e,f]),E=(0,X.useMemo)(()=>m===`overview`?a:a.filter(e=>e.network===m),[a,m]);async function D(){await Promise.all([i.invalidateQueries({queryKey:[`get`,`/admin/api/v1/chains`]}),i.invalidateQueries({queryKey:[`get`,`/admin/api/v1/chain-tokens`]})])}async function O(e,t){e.network&&(await d.mutateAsync({params:{path:{network:e.network}},body:{display_name:e.display_name,enabled:t,min_confirmations:e.min_confirmations,scan_interval_sec:e.scan_interval_sec}}),B.success(te({status:t?ve():he()})),await D())}async function ae(e,t){if(e===`edit`||e===`delete`){x(!0);return}if(e===`enable`||e===`disable`){if(!t.id)return;await u.mutateAsync({params:{path:{id:t.id}},body:{enabled:e===`enable`}}),B.success(ee()),await D();return}}let k=g!==null,A=n||o;return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Ge,{fixed:!0}),(0,Z.jsx)(Ke,{fixed:!0,children:(0,Z.jsxs)(`section`,{className:`flex h-full gap-6`,children:[(0,Z.jsx)(vt,{chains:T,hiddenOnMobile:k,isLoading:A,keyword:f,onKeywordChange:p,onSelect:e=>{h(e),_(e)},onToggle:O,selectedPanel:m,totalTokens:a.length}),(0,Z.jsx)(`div`,{className:M(`absolute inset-0 start-full z-50 hidden w-full flex-1 flex-col border bg-background shadow-xs sm:static sm:z-auto sm:flex sm:min-w-0 sm:rounded-md sm:border-0 sm:bg-transparent sm:shadow-none`,k&&`inset-s-0 flex`),children:(0,Z.jsx)(yt,{isLoading:A,onAction:ae,onBack:()=>_(null),onCreate:()=>x(!0),onRefresh:()=>{r(),s()},tokens:E})})]})}),(0,Z.jsx)(dt,{chains:e.filter(e=>!!e.network).map(e=>({network:e.network,display_name:e.display_name})),currentRow:C,defaultNetwork:ne,onCreate:async e=>{await c.mutateAsync({body:{network:e.network,symbol:e.symbol,contract_address:e.contract_address||void 0,decimals:e.decimals,min_amount:e.min_amount,enabled:e.enabled}})},onOpenChange:e=>{y(e),e||(w(null),S(``))},onSuccess:async()=>{B.success(C?re():ie()),await D()},onUpdate:async e=>{C?.id&&await l.mutateAsync({params:{path:{id:C.id}},body:{contract_address:e.contract_address||void 0,decimals:e.decimals,min_amount:e.min_amount,enabled:e.enabled}})},open:v}),(0,Z.jsx)(lt,{onOpenChange:x,open:b})]})}var xt=bt;export{xt as component}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{a as t,d as n,f as r}from"./auth-store-De4Y7PFV.js";import{t as i}from"./router-Z0tUklFK.js";import{t as a}from"./react-CO2uhaBc.js";import{$a as o,Co as s,Do as c,Eo as l,Fo as u,Go as d,Ko as f,Oo as p,Qa as m,Qo as h,So as g,To as _,Xa as v,Ya as y,Za as b,_o as ee,ao as x,bo as te,co as ne,cs as S,do as C,eo as w,fo as T,go as re,ho as ie,io as E,is as D,ko as O,lo as ae,mo as k,no as A,oo as oe,po as se,qo as ce,ro as le,so as ue,ss as de,tm as fe,to as pe,uo as me,vo as he,wo as ge,xo as _e,yo as ve}from"./messages-BOatyqUm.js";import{B as ye,H as be,o as j,r as xe}from"./search-provider-C-_FQI9C.js";import{i as M,t as N}from"./button-C_NDYaz8.js";import{t as Se}from"./checkbox-CTHgcB3t.js";import{a as P,c as F,l as Ce,r as we,s as Te,t as Ee}from"./dropdown-menu-DzCIpsuG.js";import{a as De,i as Oe,n as ke,r as Ae,t as je}from"./select-CzebumOF.js";import{t as I}from"./separator-CsUemQNs.js";import{t as L}from"./switch-CgoJjvdz.js";import{a as R,c as Me,d as Ne,f as Pe,l as Fe,n as Ie,o as Le,r as Re,s as ze,t as Be,u as Ve}from"./data-table-1LQSBhN2.js";import{t as He}from"./arrow-left-BpZwGREZ.js";import{t as z}from"./skeleton-CmDjDV1O.js";import{t as Ue}from"./ellipsis-74ly4-Wm.js";import{t as We}from"./empty-state-CxE4wU3V.js";import{n as Ge,t as Ke}from"./main-C1R3Hvq1.js";import{n as qe,t as Je}from"./chains-store-DCzO87jZ.js";import{n as Ye,t as Xe}from"./trash-2-9I8lAjeE.js";import{l as Ze}from"./command-B_SlhXkX.js";import{i as Qe,o as $e,r as et,s as tt,t as nt}from"./dialog-CZ-2RPb-.js";import{n as B}from"./dist-JOUh6qvR.js";import{a as rt,c as V,n as H,s as it}from"./zod-rwFXxHlg.js";import{a as U,c as at,i as W,l as ot,n as G,o as K,s as q,t as st}from"./form-KfFEakes.js";import{t as J}from"./input-8zzM34r5.js";import{t as ct}from"./page-header-GTtyZFBB.js";import{t as Y}from"./badge-VJlwwTW5.js";import{t as lt}from"./coming-soon-dialog-B34F88bO.js";var X=e(a(),1),Z=fe(),ut=it({network:V().min(1,m()),symbol:V().min(1,b()),contract_address:V().optional().default(``),decimals:H().min(0,v()).default(6),min_amount:H().min(0,y()).default(0),enabled:rt().default(!0)});function dt({open:e,onOpenChange:t,currentRow:n,onSuccess:r,defaultNetwork:i,onCreate:a,onUpdate:s,chains:c}){let l=ot({resolver:at(ut),defaultValues:{network:``,symbol:``,contract_address:``,decimals:6,min_amount:0,enabled:!0}}),d;d=c?.length?c:i?[{network:i,display_name:i}]:[],(0,X.useEffect)(()=>{e&&l.reset({network:n?.network??i??d[0]?.network??``,symbol:n?.symbol??``,contract_address:n?.contract_address??``,decimals:n?.decimals??6,min_amount:n?.min_amount??0,enabled:n?.enabled??!0})},[e,n,i,d,l]);async function f(e){n?.id?await s(e):await a(e),t(!1),await r?.()}let p=l.formState.isSubmitting;return(0,Z.jsx)(nt,{onOpenChange:t,open:e,children:(0,Z.jsxs)(et,{children:[(0,Z.jsxs)($e,{children:[(0,Z.jsx)(tt,{children:n?ae():ne()}),(0,Z.jsx)(Qe,{children:n?ue():oe()})]}),(0,Z.jsx)(st,{...l,children:(0,Z.jsxs)(`form`,{className:`space-y-4`,onSubmit:l.handleSubmit(f),children:[(0,Z.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,Z.jsx)(W,{control:l.control,name:`network`,render:({field:e})=>(0,Z.jsxs)(U,{children:[(0,Z.jsx)(K,{children:S()}),(0,Z.jsxs)(je,{disabled:!!n,onValueChange:e.onChange,value:e.value,children:[(0,Z.jsx)(G,{children:(0,Z.jsx)(Oe,{className:`w-full`,children:(0,Z.jsx)(De,{placeholder:de()})})}),(0,Z.jsx)(ke,{children:d.map(e=>(0,Z.jsx)(Ae,{value:e.network,children:e.display_name??e.network},e.network))})]}),(0,Z.jsx)(q,{})]})}),(0,Z.jsx)(W,{control:l.control,name:`symbol`,render:({field:e})=>(0,Z.jsxs)(U,{children:[(0,Z.jsx)(K,{children:x()}),(0,Z.jsx)(G,{children:(0,Z.jsx)(J,{placeholder:`USDT`,...e,disabled:!!n})}),(0,Z.jsx)(q,{})]})})]}),(0,Z.jsx)(`div`,{className:`rounded-md border border-dashed p-3 text-muted-foreground text-sm`,children:E()}),(0,Z.jsx)(W,{control:l.control,name:`contract_address`,render:({field:e})=>(0,Z.jsxs)(U,{children:[(0,Z.jsx)(K,{children:le()}),(0,Z.jsx)(G,{children:(0,Z.jsx)(J,{placeholder:`TR7NHqje...`,...e})}),(0,Z.jsx)(q,{})]})}),(0,Z.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,Z.jsx)(W,{control:l.control,name:`decimals`,render:({field:e})=>(0,Z.jsxs)(U,{children:[(0,Z.jsx)(K,{children:A()}),(0,Z.jsx)(G,{children:(0,Z.jsx)(J,{name:e.name,onBlur:e.onBlur,onChange:t=>e.onChange(t.target.value),ref:e.ref,type:`number`,value:String(e.value??``)})}),(0,Z.jsx)(q,{})]})}),(0,Z.jsx)(W,{control:l.control,name:`min_amount`,render:({field:e})=>(0,Z.jsxs)(U,{children:[(0,Z.jsx)(K,{children:pe()}),(0,Z.jsx)(G,{children:(0,Z.jsx)(J,{name:e.name,onBlur:e.onBlur,onChange:t=>e.onChange(t.target.value),ref:e.ref,step:`0.000001`,type:`number`,value:String(e.value??``)})}),(0,Z.jsx)(q,{})]})})]}),(0,Z.jsx)(W,{control:l.control,name:`enabled`,render:({field:e})=>(0,Z.jsxs)(U,{className:`flex flex-row items-start space-x-3 space-y-0 rounded-md border p-4 rtl:space-x-reverse`,children:[(0,Z.jsx)(G,{children:(0,Z.jsx)(Se,{checked:e.value,onCheckedChange:t=>e.onChange(!!t)})}),(0,Z.jsx)(`div`,{className:`space-y-1 leading-none`,children:(0,Z.jsx)(K,{children:h()})})]})}),(0,Z.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,Z.jsx)(N,{onClick:()=>t(!1),type:`button`,variant:`outline`,children:D()}),(0,Z.jsx)(N,{disabled:p,type:`submit`,children:p?u():n?o():w()})]})]})})]})})}function ft(e){return[{id:`switch`,header:({column:e})=>(0,Z.jsx)(R,{column:e,title:h()}),cell:({row:t})=>(0,Z.jsx)(L,{checked:t.original.enabled===!0,onCheckedChange:()=>e(t.original.enabled?`disable`:`enable`,t.original)}),enableSorting:!1,enableHiding:!1,meta:{label:h(),skeleton:`switch`,sticky:`left`,th:{className:M(`rounded-tl-[inherit]`)}}},{accessorKey:`symbol`,header:({column:e})=>(0,Z.jsx)(R,{column:e,title:T()}),cell:({row:e})=>(0,Z.jsx)(`div`,{className:`font-medium`,children:e.original.symbol??`-`}),enableHiding:!1,meta:{label:T(),skeleton:`short`}},{accessorKey:`network`,header:({column:e})=>(0,Z.jsx)(R,{column:e,title:S()}),meta:{label:S(),skeleton:`short`}},{accessorKey:`created_at`,header:({column:e})=>(0,Z.jsx)(R,{column:e,title:ce()}),cell:({row:e})=>j(e.original.created_at),meta:{label:ce(),skeleton:`date`}},{accessorKey:`updated_at`,header:({column:e})=>(0,Z.jsx)(R,{column:e,title:f()}),cell:({row:e})=>j(e.original.updated_at),meta:{label:f(),skeleton:`date`}},{id:`actions`,enableHiding:!1,meta:{label:d(),skeleton:`action`,sticky:`right`},cell:({row:t})=>(0,Z.jsxs)(Ee,{modal:!1,children:[(0,Z.jsx)(Ce,{asChild:!0,children:(0,Z.jsxs)(N,{className:`flex h-8 w-8 p-0 data-[state=open]:bg-muted`,variant:`ghost`,children:[(0,Z.jsx)(Ue,{className:`h-4 w-4`}),(0,Z.jsx)(`span`,{className:`sr-only`,children:`Open menu`})]})}),(0,Z.jsxs)(we,{align:`end`,className:`w-40`,children:[(0,Z.jsxs)(P,{onClick:()=>e(`edit`,t.original),children:[C(),(0,Z.jsx)(F,{children:(0,Z.jsx)(qe,{size:16})})]}),(0,Z.jsx)(Te,{}),(0,Z.jsxs)(P,{onClick:()=>e(`delete`,t.original),variant:`destructive`,children:[me(),(0,Z.jsx)(F,{children:(0,Z.jsx)(Xe,{size:16})})]})]})]})}]}function pt({data:e,isLoading:t,onAction:n,onRefresh:r}){let[i,a]=(0,X.useState)([]),[o,s]=(0,X.useState)(``),[c,l]=(0,X.useState)([]),[u,d]=(0,X.useState)({pageIndex:0,pageSize:10}),f=Le({data:e,columns:(0,X.useMemo)(()=>ft(n),[n]),state:{sorting:i,columnFilters:c,globalFilter:o,pagination:u},onSortingChange:a,onColumnFiltersChange:l,onGlobalFilterChange:s,onPaginationChange:d,globalFilterFn:(e,t,n)=>{let r=String(n).toLowerCase();return(e.original.symbol??``).toLowerCase().includes(r)||(e.original.contract_address??``).toLowerCase().includes(r)},getCoreRowModel:ze(),getFilteredRowModel:Ve(),getPaginationRowModel:Ne(),getSortedRowModel:Pe(),getFacetedRowModel:Me(),getFacetedUniqueValues:Fe()});return(0,X.useEffect)(()=>{let e=f.getPageCount();e>0&&u.pageIndex>e-1&&d(e=>({...e,pageIndex:0}))},[f,u.pageIndex]),(0,Z.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,Z.jsx)(Be,{onRefresh:r,searchKey:`symbol`,searchPlaceholder:k(),table:f}),(0,Z.jsx)(Re,{emptyText:se(),loading:t,table:f}),(0,Z.jsx)(Ie,{className:`mt-auto`,table:f})]})}var Q=new n({chainTokens:[],loading:!1});function mt(e){Q.setState(t=>({...t,chainTokens:e}))}function ht(e){Q.setState(t=>({...t,loading:e}))}function gt(){let e=r(Q,e=>e.chainTokens),n=r(Q,e=>e.loading),i=t.useQuery(`get`,`/admin/api/v1/chain-tokens`);return(0,X.useEffect)(()=>{ht(i.isLoading)},[i.isLoading]),(0,X.useEffect)(()=>{i.data?.data&&mt(i.data.data)},[i.data?.data]),{chainTokens:e,loading:n,refetch:i.refetch}}var _t=[`chain-1`,`chain-2`,`chain-3`,`chain-4`,`chain-5`];function $({active:e,children:t,onClick:n}){return(0,Z.jsx)(`button`,{className:M(`w-full cursor-pointer rounded-lg px-3 py-3 text-left transition-colors hover:bg-accent hover:text-accent-foreground`,e&&`bg-muted`),onClick:n,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),n())},type:`button`,children:t})}function vt({chains:e,isLoading:t,keyword:n,onKeywordChange:r,selectedPanel:i,onSelect:a,onToggle:o,totalTokens:u,hiddenOnMobile:d}){return(0,Z.jsxs)(`div`,{className:M(`flex w-full flex-col gap-2 sm:w-56 lg:w-72 2xl:w-80`,d&&`hidden sm:flex`),children:[(0,Z.jsxs)(`div`,{className:`sticky top-0 z-10 -mx-4 bg-background px-4 pb-3 shadow-md sm:static sm:z-auto sm:mx-0 sm:p-0 sm:shadow-none`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center justify-between py-2`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Z.jsx)(`h1`,{className:`font-bold text-2xl`,children:O()}),(0,Z.jsx)(ye,{size:20})]}),(0,Z.jsx)(Y,{variant:`secondary`,children:p({count:String(e.length)})})]}),(0,Z.jsxs)(`div`,{className:`relative block`,children:[(0,Z.jsx)(Ze,{className:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),(0,Z.jsx)(J,{className:`pl-9`,onChange:e=>r(e.target.value),placeholder:c(),value:n})]})]}),(0,Z.jsxs)(xe,{className:`-mx-3 h-full overflow-auto p-3`,children:[(0,Z.jsx)($,{active:i===`overview`,onClick:()=>a(`overview`),children:(0,Z.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,Z.jsxs)(`div`,{className:`min-w-0`,children:[(0,Z.jsx)(`div`,{className:`font-medium`,children:l()}),(0,Z.jsx)(`div`,{className:`mt-1 text-muted-foreground text-xs`,children:_({chains:String(e.length),tokens:String(u)})})]}),(0,Z.jsx)(be,{className:`mt-0.5 size-4 text-muted-foreground`})]})}),(0,Z.jsx)(I,{className:`my-1`}),t?_t.map(e=>(0,Z.jsxs)(`div`,{className:`px-3 py-3`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,Z.jsx)(z,{className:`h-4 w-24`}),(0,Z.jsx)(z,{className:`h-5 w-9 rounded-full`})]}),(0,Z.jsxs)(`div`,{className:`mt-2 flex items-center justify-between gap-2`,children:[(0,Z.jsx)(z,{className:`h-3 w-28`}),(0,Z.jsx)(z,{className:`h-5 w-12 rounded-full`})]})]},e)):e.map((t,n)=>(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)($,{active:i===t.network,onClick:()=>a(t.network??`overview`),children:(0,Z.jsx)(`div`,{className:`flex items-start gap-3`,children:(0,Z.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,Z.jsxs)(`div`,{className:`flex items-start justify-between gap-2`,children:[(0,Z.jsx)(`div`,{className:`min-w-0`,children:(0,Z.jsx)(`div`,{className:`truncate font-medium`,children:t.display_name})}),(0,Z.jsx)(L,{checked:t.enabled===!0,onCheckedChange:e=>o(t,e),onClick:e=>e.stopPropagation()})]}),(0,Z.jsxs)(`div`,{className:`mt-1 flex items-center justify-between gap-2`,children:[(0,Z.jsx)(`span`,{className:`text-muted-foreground text-xs`,children:ge()}),(0,Z.jsx)(Y,{className:`shrink-0 text-xs`,variant:`outline`,children:t.network})]})]})})}),n{let t=f.trim().toLowerCase();return t?e.filter(e=>[e.display_name,e.network].filter(Boolean).some(e=>String(e).toLowerCase().includes(t))):e},[e,f]),E=(0,X.useMemo)(()=>m===`overview`?a:a.filter(e=>e.network===m),[a,m]);async function D(){await Promise.all([i.invalidateQueries({queryKey:[`get`,`/admin/api/v1/chains`]}),i.invalidateQueries({queryKey:[`get`,`/admin/api/v1/chain-tokens`]})])}async function O(e,t){e.network&&(await d.mutateAsync({params:{path:{network:e.network}},body:{display_name:e.display_name,enabled:t,min_confirmations:e.min_confirmations,scan_interval_sec:e.scan_interval_sec}}),B.success(te({status:t?ve():he()})),await D())}async function ae(e,t){if(e===`edit`||e===`delete`){x(!0);return}if(e===`enable`||e===`disable`){if(!t.id)return;await u.mutateAsync({params:{path:{id:t.id}},body:{enabled:e===`enable`}}),B.success(ee()),await D();return}}let k=g!==null,A=n||o;return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Ge,{fixed:!0}),(0,Z.jsx)(Ke,{fixed:!0,children:(0,Z.jsxs)(`section`,{className:`flex h-full gap-6`,children:[(0,Z.jsx)(vt,{chains:T,hiddenOnMobile:k,isLoading:A,keyword:f,onKeywordChange:p,onSelect:e=>{h(e),_(e)},onToggle:O,selectedPanel:m,totalTokens:a.length}),(0,Z.jsx)(`div`,{className:M(`absolute inset-0 start-full z-50 hidden w-full flex-1 flex-col border bg-background shadow-xs sm:static sm:z-auto sm:flex sm:min-w-0 sm:rounded-md sm:border-0 sm:bg-transparent sm:shadow-none`,k&&`inset-s-0 flex`),children:(0,Z.jsx)(yt,{isLoading:A,onAction:ae,onBack:()=>_(null),onCreate:()=>x(!0),onRefresh:()=>{r(),s()},tokens:E})})]})}),(0,Z.jsx)(dt,{chains:e.filter(e=>!!e.network).map(e=>({network:e.network,display_name:e.display_name})),currentRow:C,defaultNetwork:ne,onCreate:async e=>{await c.mutateAsync({body:{network:e.network,symbol:e.symbol,contract_address:e.contract_address||void 0,decimals:e.decimals,min_amount:e.min_amount,enabled:e.enabled}})},onOpenChange:e=>{y(e),e||(w(null),S(``))},onSuccess:async()=>{B.success(C?re():ie()),await D()},onUpdate:async e=>{C?.id&&await l.mutateAsync({params:{path:{id:C.id}},body:{contract_address:e.contract_address||void 0,decimals:e.decimals,min_amount:e.min_amount,enabled:e.enabled}})},open:v}),(0,Z.jsx)(lt,{onOpenChange:x,open:b})]})}var xt=bt;export{xt as component}; \ No newline at end of file diff --git a/src/www/assets/index-3E84QvKw.js b/src/www/assets/index-Bhi1y2zc.js similarity index 99% rename from src/www/assets/index-3E84QvKw.js rename to src/www/assets/index-Bhi1y2zc.js index 5d4bf8b..02f50a3 100644 --- a/src/www/assets/index-3E84QvKw.js +++ b/src/www/assets/index-Bhi1y2zc.js @@ -1,4 +1,4 @@ -import{r as e,t}from"./chunk-DECur_0Z.js";import{m as n}from"./auth-store-De4Y7PFV.js";import{n as r,t as i}from"./router-eyRTkMwc.js";import{t as a}from"./react-CO2uhaBc.js";import{tm as o}from"./messages-BOatyqUm.js";import{n as s}from"./useRouter-DtTm7XkK.js";import{t as c}from"./Matches-9qnXJNrS.js";import{r as l}from"./dist-Cc8_LDAq.js";import{r as u}from"./tooltip-xZuTTfnF.js";import{r as d}from"./wallet-CtiawGS1.js";import{t as f}from"./font-provider-BPsIRWbb.js";import{t as p}from"./theme-provider-BREWrHp_.js";import{t as m}from"./preload-helper-DoS0eHac.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var h=e(a(),1),g=o();function _({router:e,children:t,...n}){Object.keys(n).length>0&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,g.jsx)(s.Provider,{value:e,children:t});return e.options.Wrap?(0,g.jsx)(e.options.Wrap,{children:r}):r}function v({router:e,...t}){return(0,g.jsx)(_,{router:e,...t,children:(0,g.jsx)(c,{})})}var y=t((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,ee||(ee=!0,oe());else{var t=n(l);t!==null&&le(x,t.startTime-e)}}var ee=!1,te=-1,ne=5,re=-1;function ie(){return g?!0:!(e.unstable_now()-ret&&ie());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&le(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?oe():ee=!1}}}var oe;if(typeof y==`function`)oe=function(){y(ae)};else if(typeof MessageChannel<`u`){var se=new MessageChannel,ce=se.port2;se.port1.onmessage=ae,oe=function(){ce.postMessage(null)}}else oe=function(){_(ae,0)};function le(t,n){te=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(te),te=-1):h=!0,le(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,ee||(ee=!0,oe()))),r},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),b=t(((e,t)=>{t.exports=y()})),x=t((e=>{var t=b(),n=a(),r=l();function i(e){var t=`https://react.dev/errors/`+e;if(1ge||(e.current=he[ge],he[ge]=null,ge--)}function T(e,t){ge++,he[ge]=e.current,e.current=t}var ve=_e(null),ye=_e(null),be=_e(null),xe=_e(null);function Se(e,t){switch(T(be,t),T(ye,e),T(ve,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}w(ve),T(ve,e)}function Ce(){w(ve),w(ye),w(be)}function we(e){e.memoizedState!==null&&T(xe,e);var t=ve.current,n=Hd(t,e.type);t!==n&&(T(ye,e),T(ve,n))}function Te(e){ye.current===e&&(w(ve),w(ye)),xe.current===e&&(w(xe),Qf._currentValue=me)}var Ee,De;function Oe(e){if(Ee===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ee=t&&t[1]||``,De=-1{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var h=e(a(),1),g=o();function _({router:e,children:t,...n}){Object.keys(n).length>0&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,g.jsx)(s.Provider,{value:e,children:t});return e.options.Wrap?(0,g.jsx)(e.options.Wrap,{children:r}):r}function v({router:e,...t}){return(0,g.jsx)(_,{router:e,...t,children:(0,g.jsx)(c,{})})}var y=t((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,ee||(ee=!0,oe());else{var t=n(l);t!==null&&le(x,t.startTime-e)}}var ee=!1,te=-1,ne=5,re=-1;function ie(){return g?!0:!(e.unstable_now()-ret&&ie());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&le(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?oe():ee=!1}}}var oe;if(typeof y==`function`)oe=function(){y(ae)};else if(typeof MessageChannel<`u`){var se=new MessageChannel,ce=se.port2;se.port1.onmessage=ae,oe=function(){ce.postMessage(null)}}else oe=function(){_(ae,0)};function le(t,n){te=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(te),te=-1):h=!0,le(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,ee||(ee=!0,oe()))),r},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),b=t(((e,t)=>{t.exports=y()})),x=t((e=>{var t=b(),n=a(),r=l();function i(e){var t=`https://react.dev/errors/`+e;if(1ge||(e.current=he[ge],he[ge]=null,ge--)}function T(e,t){ge++,he[ge]=e.current,e.current=t}var ve=_e(null),ye=_e(null),be=_e(null),xe=_e(null);function Se(e,t){switch(T(be,t),T(ye,e),T(ve,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}w(ve),T(ve,e)}function Ce(){w(ve),w(ye),w(be)}function we(e){e.memoizedState!==null&&T(xe,e);var t=ve.current,n=Hd(t,e.type);t!==n&&(T(ye,e),T(ve,n))}function Te(e){ye.current===e&&(w(ve),w(ye)),xe.current===e&&(w(xe),Qf._currentValue=me)}var Ee,De;function Oe(e){if(Ee===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ee=t&&t[1]||``,De=-1)`:-1e[Math.floor(Math.random()*e.length)],J=()=>Be[Math.floor(Math.random()*41)];function He({glitchColors:e=[`#2b4539`,`#61dca3`,`#61b3dc`],glitchSpeed:t=`medium`,centerVignette:n=!1,outerVignette:r=!0,smooth:i=!0,className:a}){let o=(0,U.useRef)(null),s=(0,U.useRef)(0),c=(0,U.useRef)([]),l=(0,U.useRef)(0),u=(0,U.useRef)(0),d=(0,U.useCallback)((t,n)=>{c.current=Array.from({length:t*n},()=>({char:J(),color:q(e),opacity:Math.random()*.5+.1}))},[e]),f=(0,U.useCallback)(()=>{let e=o.current;if(!e)return;let t=e.getContext(`2d`);if(!t)return;t.clearRect(0,0,e.width,e.height),t.font=`${G}px monospace`;let n=c.current,r=l.current,i=u.current;for(let e=0;e{let t=c.current,n=t.length,r=Math.floor(n*.05);for(let a=0;a{let e=o.current;if(!e)return;let n=()=>{let t=e.parentElement;t&&(e.width=t.clientWidth,e.height=t.clientHeight,l.current=Math.ceil(e.width/K),u.current=Math.ceil(e.height/K),d(l.current,u.current),f())},r=new ResizeObserver(n);e.parentElement&&r.observe(e.parentElement),n();let i=setInterval(p,Ve[t]);return()=>{r.disconnect(),clearInterval(i),cancelAnimationFrame(s.current)}},[p,f,d,t]),(0,W.jsxs)(`div`,{className:`absolute inset-0 overflow-hidden ${a??``}`,children:[(0,W.jsx)(`canvas`,{className:`absolute inset-0`,ref:o}),r&&(0,W.jsx)(`div`,{className:`absolute inset-0`,style:{background:`radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.85) 100%)`}}),n&&(0,W.jsx)(`div`,{className:`absolute inset-0`,style:{background:`radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 70%)`}})]})}var Ue=ge(`relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current`,{variants:{variant:{default:`bg-card text-card-foreground`,destructive:`bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current`}},defaultVariants:{variant:`default`}});function We({className:e,variant:t,...n}){return(0,W.jsx)(`div`,{className:x(Ue({variant:t}),e),"data-slot":`alert`,role:`alert`,...n})}function Ge({className:e,...t}){return(0,W.jsx)(`div`,{className:x(`col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight`,e),"data-slot":`alert-title`,...t})}function Y({className:e,...t}){return(0,W.jsx)(`div`,{className:x(`col-start-2 grid justify-items-start gap-1 text-muted-foreground text-sm [&_p]:leading-relaxed`,e),"data-slot":`alert-description`,...t})}function Ke({value:e,onChange:t,options:n,placeholder:r=``,searchPlaceholder:i=`Search...`,emptyText:a=`No options found.`,className:o,disabled:s}){let[c,l]=(0,U.useState)(!1),u=n.map(e=>typeof e==`string`?{value:e,label:e}:e);return(0,W.jsxs)(ye,{onOpenChange:l,open:c,children:[(0,W.jsxs)(`div`,{className:x(`relative`,o),children:[(0,W.jsx)(V,{className:`pr-10`,disabled:s,onChange:e=>t(e.target.value),placeholder:r,value:e}),(0,W.jsx)(ve,{asChild:!0,children:(0,W.jsx)(S,{"aria-expanded":c,"aria-label":`Show options`,className:`absolute top-1/2 right-1 size-8 -translate-y-1/2`,disabled:s,size:`icon`,type:`button`,variant:`ghost`,children:(0,W.jsx)(C,{className:`size-4`})})})]}),(0,W.jsx)(_e,{align:`end`,className:`w-48 p-0`,children:(0,W.jsxs)(Te,{children:[(0,W.jsx)(j,{placeholder:i}),(0,W.jsxs)(we,{children:[(0,W.jsx)(Ce,{children:a}),(0,W.jsx)(M,{children:u.map(n=>(0,W.jsxs)(Se,{onSelect:()=>{t(n.value),l(!1)},value:n.value,children:[(0,W.jsx)(xe,{className:x(`size-4`,e===n.value?`opacity-100`:`opacity-0`)}),n.label??n.value]},n.value))})]})]})})]})}var qe=[`0.0.0.0`,`127.0.0.1`,`localhost`];function Je({form:e,loading:t,onSubmit:n,submitText:r}){return(0,W.jsx)(Me,{...e,children:(0,W.jsxs)(`form`,{className:`grid gap-4`,onSubmit:e.handleSubmit(n),children:[(0,W.jsx)(L,{control:e.control,name:`app_name`,render:({field:e})=>(0,W.jsxs)(I,{children:[(0,W.jsx)(z,{children:se()}),(0,W.jsx)(R,{children:(0,W.jsx)(V,{placeholder:`epusdt`,...e})}),(0,W.jsx)(B,{})]})}),(0,W.jsx)(L,{control:e.control,name:`app_uri`,render:({field:e})=>(0,W.jsxs)(I,{children:[(0,W.jsxs)(z,{children:[ne(),` *`]}),(0,W.jsx)(R,{children:(0,W.jsx)(V,{placeholder:`http://your-server-ip:8000`,...e})}),(0,W.jsx)(B,{})]})}),(0,W.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,W.jsx)(L,{control:e.control,name:`http_bind_addr`,render:({field:e})=>(0,W.jsxs)(I,{children:[(0,W.jsx)(z,{children:ee()}),(0,W.jsx)(R,{children:(0,W.jsx)(Ke,{onChange:e.onChange,options:qe,placeholder:`0.0.0.0`,value:e.value??``})}),(0,W.jsx)(B,{})]})}),(0,W.jsx)(L,{control:e.control,name:`http_bind_port`,render:({field:e})=>(0,W.jsxs)(I,{children:[(0,W.jsx)(z,{children:pe()}),(0,W.jsx)(R,{children:(0,W.jsx)(V,{placeholder:`8000`,type:`number`,...e,value:e.value??``})}),(0,W.jsx)(B,{})]})})]}),(0,W.jsx)(L,{control:e.control,name:`runtime_root_path`,render:({field:e})=>(0,W.jsxs)(I,{children:[(0,W.jsx)(z,{children:ie()}),(0,W.jsx)(R,{children:(0,W.jsx)(V,{placeholder:`./runtime`,...e})}),(0,W.jsx)(B,{})]})}),(0,W.jsx)(L,{control:e.control,name:`log_save_path`,render:({field:e})=>(0,W.jsxs)(I,{children:[(0,W.jsx)(z,{children:v()}),(0,W.jsx)(R,{children:(0,W.jsx)(V,{placeholder:`./logs`,...e})}),(0,W.jsx)(B,{})]})}),(0,W.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,W.jsx)(L,{control:e.control,name:`order_expiration_time`,render:({field:e})=>(0,W.jsxs)(I,{children:[(0,W.jsx)(z,{children:ue()}),(0,W.jsx)(R,{children:(0,W.jsx)(V,{placeholder:`10`,type:`number`,...e})}),(0,W.jsx)(B,{})]})}),(0,W.jsx)(L,{control:e.control,name:`order_notice_max_retry`,render:({field:e})=>(0,W.jsxs)(I,{children:[(0,W.jsx)(z,{children:oe()}),(0,W.jsx)(R,{children:(0,W.jsx)(V,{placeholder:`1`,type:`number`,...e})}),(0,W.jsx)(B,{})]})})]}),(0,W.jsxs)(S,{className:`mt-2 w-full`,disabled:t,type:`submit`,children:[t?(0,W.jsx)(A,{className:`animate-spin`}):null,r]})]})})}function Ye({credentials:e,onCopy:t,onTogglePassword:n,passwordLookupFailed:u,showPassword:_}){return(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[(0,W.jsxs)(`div`,{className:`grid gap-4 rounded-2xl border border-emerald-500/20 bg-emerald-500/5 p-4 shadow-sm`,children:[(0,W.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,W.jsx)(`div`,{className:`flex size-10 shrink-0 items-center justify-center rounded-xl bg-emerald-500/12 text-emerald-600 dark:text-emerald-400`,children:(0,W.jsx)(Ee,{className:`size-5`})}),(0,W.jsxs)(`div`,{className:`space-y-1`,children:[(0,W.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,W.jsx)(`h3`,{className:`font-semibold text-base text-foreground`,children:r()}),e?(0,W.jsx)(H,{className:`rounded-md`,variant:`secondary`,children:g()}):null]}),(0,W.jsx)(`p`,{className:`text-muted-foreground text-sm leading-6`,children:l()})]})]}),e?(0,W.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,W.jsx)(`div`,{className:`rounded-xl border border-border/60 bg-background/85 p-4 shadow-sm`,children:(0,W.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,W.jsx)(`p`,{className:`text-muted-foreground text-xs uppercase tracking-wide`,children:ce()}),(0,W.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,W.jsx)(`p`,{className:`min-w-0 flex-1 truncate font-medium text-base text-foreground`,children:e.username}),(0,W.jsxs)(S,{"aria-label":i(),className:`scale-95 rounded-full`,onClick:()=>t(e.username),size:`icon`,type:`button`,variant:`ghost`,children:[(0,W.jsx)(w,{}),(0,W.jsx)(`span`,{className:`sr-only`,children:i()})]})]})]})}),(0,W.jsx)(`div`,{className:`rounded-xl border border-border/60 bg-background/85 p-4 shadow-sm`,children:(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,W.jsx)(H,{className:`w-fit rounded-md border-amber-200 bg-amber-50 text-amber-700 dark:border-amber-900/60 dark:bg-amber-950/40 dark:text-amber-300`,variant:`outline`,children:p()}),(0,W.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,W.jsx)(`p`,{className:`text-muted-foreground text-xs uppercase tracking-wide`,children:c()}),(0,W.jsxs)(H,{className:`rounded-md`,variant:`outline`,children:[(0,W.jsx)(Re,{className:`size-3.5`}),f()]})]}),(0,W.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,W.jsx)(`p`,{className:`min-w-0 flex-1 break-all font-medium text-base text-foreground`,children:_?e.password:`•`.repeat(Math.max(e.password.length,10))}),(0,W.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,W.jsxs)(S,{"aria-label":_?o():d(),className:`scale-95 rounded-full`,onClick:n,size:`icon`,type:`button`,variant:`ghost`,children:[_?(0,W.jsx)(E,{}):(0,W.jsx)(D,{}),(0,W.jsx)(`span`,{className:`sr-only`,children:_?o():d()})]}),(0,W.jsxs)(S,{"aria-label":i(),className:`scale-95 rounded-full`,onClick:()=>t(e.password),size:`icon`,type:`button`,variant:`ghost`,children:[(0,W.jsx)(w,{}),(0,W.jsx)(`span`,{className:`sr-only`,children:i()})]})]})]}),(0,W.jsx)(`p`,{className:`text-muted-foreground text-sm leading-6`,children:a()})]})})]}):null,u?(0,W.jsxs)(`div`,{className:`flex items-start gap-3 rounded-xl border border-amber-200 bg-amber-50 p-4 text-amber-900 dark:border-amber-900/60 dark:bg-amber-950/40 dark:text-amber-100`,children:[(0,W.jsx)(De,{className:`mt-0.5 size-4 shrink-0`}),(0,W.jsxs)(`div`,{className:`space-y-1`,children:[(0,W.jsx)(`p`,{className:`font-medium text-sm`,children:m()}),(0,W.jsx)(`p`,{className:`text-amber-800/80 text-sm leading-6 dark:text-amber-100/75`,children:h()})]})]}):null]}),(0,W.jsx)(S,{asChild:!0,className:`w-full`,type:`button`,children:(0,W.jsx)(he,{to:`/sign-in`,children:s()})})]})}var Xe=Oe({app_name:P().min(1,`App Name is required`),app_uri:P().min(1,`App URI is required`).url(`Must be a valid URL (e.g. http://your-server-ip:8000)`),http_bind_addr:P().min(1,`Bind address is required`),http_bind_port:F({error:`Port must be a number`}).int().min(1,`Port must be ≥ 1`).max(65535,`Port must be ≤ 65535`),runtime_root_path:P().min(1,`Runtime root path is required`),log_save_path:P().min(1,`Log save path is required`),order_expiration_time:F({error:`Must be a number`}).int().min(1,`Must be ≥ 1 minute`),order_notice_max_retry:F({error:`Must be a number`}).int().min(0,`Must be ≥ 0`)}),X={app_name:`epusdt`,app_uri:``,http_bind_addr:`0.0.0.0`,http_bind_port:8e3,runtime_root_path:`./runtime`,log_save_path:`./logs`,order_expiration_time:10,order_notice_max_retry:1},Z=`/`,Q=null;function Ze(e){let t=Z.startsWith(`http`)?Z:new URL(Z,window.location.origin).toString(),n=t.endsWith(`/`)?t:`${t}/`;return new URL(e.replace(/^\//,``),n).toString()}async function Qe(){let e=await fetch(Ze(`/admin/api/v1/auth/init-password`),{headers:{Accept:`application/json`}});if(!e.ok)return null;let t=await e.json(),n=t.data?.password?.trim()||``;return n?{username:t.data?.username?.trim()||`admin`,password:n}:null}function $(){return Q??=Qe().catch(()=>null).finally(()=>{Q=null}),Q}function $e(){let[e,n]=(0,U.useState)(!1),[r,i]=(0,U.useState)(!1),[a,o]=(0,U.useState)(null),[s,c]=(0,U.useState)(null),[l,d]=(0,U.useState)(!1),[f,p]=(0,U.useState)(!1),m=je({resolver:Ae(Xe),defaultValues:X,mode:`onChange`});(0,U.useEffect)(()=>{let e=!0;async function n(){try{let{data:n}=await t.GET(`/api/install/defaults`);if(!(e&&n))return;let r=Object.fromEntries(Object.entries(n).filter(([,e])=>e!==``&&e!=null));m.reset({...X,...r})}catch{}}return n().catch(()=>void 0),()=>{e=!1}},[m]),(0,U.useEffect)(()=>{let e=!0;async function t(){try{let t=await $();if(!(e&&t))return;c(t),d(!1),i(!0)}catch{}}return t().catch(()=>void 0),()=>{e=!1}},[]);function h(e){if(!(0,ze.default)(e)){N.error(u());return}N.success(me())}async function g(e){n(!0),o(null),d(!1);try{let{error:n,response:r}=await t.POST(`/api/install`,{body:e});if(!r.ok||n){o({variant:`destructive`,message:n?.error||b()});return}let a=await $();a||d(!0),i(!0),c(a)}catch{o({variant:`destructive`,message:b()})}finally{n(!1)}}let v=_();return e&&(v=re()),r&&(v=le()),(0,W.jsxs)(`div`,{className:`relative flex min-h-svh items-center justify-center px-4 py-10`,children:[(0,W.jsx)(He,{centerVignette:!1,glitchColors:[`#3f3f46`,`#71717a`,`#a1a1aa`],glitchSpeed:`fast`,outerVignette:!1,smooth:!0}),(0,W.jsxs)(Le,{className:`max-w-2xl border border-border/40 bg-card/55 shadow-xl backdrop-blur-xl`,children:[(0,W.jsxs)(Pe,{className:`space-y-6 border-border/40 border-b pb-8`,children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,W.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,W.jsx)(ke,{className:`size-10 shrink-0`}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`h1`,{className:`font-medium text-xl leading-tight`,children:`GMPay`}),(0,W.jsx)(`p`,{className:`mt-1 whitespace-nowrap text-muted-foreground text-xs`,children:te()})]})]}),(0,W.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,W.jsx)(O,{}),(0,W.jsx)(k,{})]})]}),r?null:(0,W.jsxs)(`div`,{className:`space-y-3`,children:[(0,W.jsx)(Ne,{className:`text-2xl tracking-tight`,children:y()}),(0,W.jsx)(Ie,{className:`max-w-xl text-sm leading-6`,children:ae()})]})]}),(0,W.jsx)(Fe,{children:(0,W.jsxs)(`div`,{className:`grid gap-4`,children:[a?(0,W.jsxs)(We,{variant:a.variant,children:[(0,W.jsx)(Ge,{children:de()}),(0,W.jsx)(Y,{children:a.message})]}):null,r?(0,W.jsx)(Ye,{credentials:s,onCopy:h,onTogglePassword:()=>p(e=>!e),passwordLookupFailed:l,showPassword:f}):(0,W.jsx)(Je,{form:m,loading:e,onSubmit:g,submitText:v})]})})]})]})}var et=$e;export{et as component}; \ No newline at end of file diff --git a/src/www/assets/install-_AmBcHKu.js b/src/www/assets/install-_AmBcHKu.js new file mode 100644 index 0000000..a402deb --- /dev/null +++ b/src/www/assets/install-_AmBcHKu.js @@ -0,0 +1 @@ +import{r as e}from"./chunk-DECur_0Z.js";import{s as t}from"./auth-store-De4Y7PFV.js";import{t as n}from"./react-CO2uhaBc.js";import{$u as r,Bu as i,Gu as a,Hu as o,Ju as s,Ku as c,Qu as l,Ru as u,Uu as d,Vu as f,Wu as p,Xu as m,Yu as h,Zu as g,ad as _,cd as v,dd as ee,ed as te,fd as ne,hd as y,id as re,ld as ie,md as ae,nd as b,od as oe,pd as se,qu as ce,rd as le,sd as ue,td as de,tm as fe,ud as pe,zu as me}from"./messages-BOatyqUm.js";import{t as he}from"./link-DPnL8P5J.js";import{i as x,r as ge,t as S}from"./button-C_NDYaz8.js";import{n as _e,r as ve,t as C}from"./popover-NQZzcPDh.js";import{t as w}from"./createLucideIcon-Br0Bd5k2.js";import{t as T}from"./check-CHp0nSkR.js";import{t as E}from"./chevron-down-BB5h1CsX.js";import{n as D,t as O}from"./copy-to-clipboard-C1tj4a8X.js";import{t as k}from"./eye-off-B8hO0oST.js";import{t as A}from"./eye-DAKGLydt.js";import{n as j,t as M}from"./theme-switch-CHLQml_8.js";import{t as N}from"./loader-circle-DpEz1fQv.js";import{a as P,i as F,o as ye,r as be,s as xe,t as Se}from"./command-B_SlhXkX.js";import{t as Ce}from"./shield-check-MAPDL1u8.js";import{t as we}from"./triangle-alert-DB5v_9sS.js";import{n as I}from"./dist-JOUh6qvR.js";import{c as L,n as R,s as Te}from"./zod-rwFXxHlg.js";import{t as Ee}from"./logo-agrtpj2n.js";import{a as z,c as De,i as B,l as Oe,n as V,o as H,s as U,t as ke}from"./form-KfFEakes.js";import{t as W}from"./input-8zzM34r5.js";import{t as G}from"./badge-VJlwwTW5.js";import{a as Ae,i as je,n as Me,r as Ne,t as Pe}from"./card-DiF5YaRi.js";var Fe=w(`lock-keyhole`,[[`circle`,{cx:`12`,cy:`16`,r:`1`,key:`1au0dj`}],[`rect`,{x:`3`,y:`10`,width:`18`,height:`12`,rx:`2`,key:`6s8ecr`}],[`path`,{d:`M7 10V7a5 5 0 0 1 10 0v3`,key:`1pqi11`}]]),Ie=e(O(),1),K=e(n(),1),q=fe(),Le=`ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%&`,J=14,Y=20,Re={slow:400,medium:200,fast:80},X=e=>e[Math.floor(Math.random()*e.length)],Z=()=>Le[Math.floor(Math.random()*41)];function ze({glitchColors:e=[`#2b4539`,`#61dca3`,`#61b3dc`],glitchSpeed:t=`medium`,centerVignette:n=!1,outerVignette:r=!0,smooth:i=!0,className:a}){let o=(0,K.useRef)(null),s=(0,K.useRef)(0),c=(0,K.useRef)([]),l=(0,K.useRef)(0),u=(0,K.useRef)(0),d=(0,K.useCallback)((t,n)=>{c.current=Array.from({length:t*n},()=>({char:Z(),color:X(e),opacity:Math.random()*.5+.1}))},[e]),f=(0,K.useCallback)(()=>{let e=o.current;if(!e)return;let t=e.getContext(`2d`);if(!t)return;t.clearRect(0,0,e.width,e.height),t.font=`${J}px monospace`;let n=c.current,r=l.current,i=u.current;for(let e=0;e{let t=c.current,n=t.length,r=Math.floor(n*.05);for(let a=0;a{let e=o.current;if(!e)return;let n=()=>{let t=e.parentElement;t&&(e.width=t.clientWidth,e.height=t.clientHeight,l.current=Math.ceil(e.width/Y),u.current=Math.ceil(e.height/Y),d(l.current,u.current),f())},r=new ResizeObserver(n);e.parentElement&&r.observe(e.parentElement),n();let i=setInterval(p,Re[t]);return()=>{r.disconnect(),clearInterval(i),cancelAnimationFrame(s.current)}},[p,f,d,t]),(0,q.jsxs)(`div`,{className:`absolute inset-0 overflow-hidden ${a??``}`,children:[(0,q.jsx)(`canvas`,{className:`absolute inset-0`,ref:o}),r&&(0,q.jsx)(`div`,{className:`absolute inset-0`,style:{background:`radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.85) 100%)`}}),n&&(0,q.jsx)(`div`,{className:`absolute inset-0`,style:{background:`radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 70%)`}})]})}var Be=ge(`relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current`,{variants:{variant:{default:`bg-card text-card-foreground`,destructive:`bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current`}},defaultVariants:{variant:`default`}});function Ve({className:e,variant:t,...n}){return(0,q.jsx)(`div`,{className:x(Be({variant:t}),e),"data-slot":`alert`,role:`alert`,...n})}function He({className:e,...t}){return(0,q.jsx)(`div`,{className:x(`col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight`,e),"data-slot":`alert-title`,...t})}function Q({className:e,...t}){return(0,q.jsx)(`div`,{className:x(`col-start-2 grid justify-items-start gap-1 text-muted-foreground text-sm [&_p]:leading-relaxed`,e),"data-slot":`alert-description`,...t})}function Ue({value:e,onChange:t,options:n,placeholder:r=``,searchPlaceholder:i=`Search...`,emptyText:a=`No options found.`,className:o,disabled:s}){let[c,l]=(0,K.useState)(!1),u=n.map(e=>typeof e==`string`?{value:e,label:e}:e);return(0,q.jsxs)(C,{onOpenChange:l,open:c,children:[(0,q.jsxs)(`div`,{className:x(`relative`,o),children:[(0,q.jsx)(W,{className:`pr-10`,disabled:s,onChange:e=>t(e.target.value),placeholder:r,value:e}),(0,q.jsx)(ve,{asChild:!0,children:(0,q.jsx)(S,{"aria-expanded":c,"aria-label":`Show options`,className:`absolute top-1/2 right-1 size-8 -translate-y-1/2`,disabled:s,size:`icon`,type:`button`,variant:`ghost`,children:(0,q.jsx)(E,{className:`size-4`})})})]}),(0,q.jsx)(_e,{align:`end`,className:`w-48 p-0`,children:(0,q.jsxs)(Se,{children:[(0,q.jsx)(P,{placeholder:i}),(0,q.jsxs)(xe,{children:[(0,q.jsx)(be,{children:a}),(0,q.jsx)(F,{children:u.map(n=>(0,q.jsxs)(ye,{onSelect:()=>{t(n.value),l(!1)},value:n.value,children:[(0,q.jsx)(T,{className:x(`size-4`,e===n.value?`opacity-100`:`opacity-0`)}),n.label??n.value]},n.value))})]})]})})]})}var We=[`0.0.0.0`,`127.0.0.1`,`localhost`];function Ge({form:e,loading:t,onSubmit:n,submitText:r}){return(0,q.jsx)(ke,{...e,children:(0,q.jsxs)(`form`,{className:`grid gap-4`,onSubmit:e.handleSubmit(n),children:[(0,q.jsx)(B,{control:e.control,name:`app_name`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsx)(H,{children:se()}),(0,q.jsx)(V,{children:(0,q.jsx)(W,{placeholder:`epusdt`,...e})}),(0,q.jsx)(U,{})]})}),(0,q.jsx)(B,{control:e.control,name:`app_uri`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsxs)(H,{children:[ne(),` *`]}),(0,q.jsx)(V,{children:(0,q.jsx)(W,{placeholder:`http://your-server-ip:8000`,...e})}),(0,q.jsx)(U,{})]})}),(0,q.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,q.jsx)(B,{control:e.control,name:`http_bind_addr`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsx)(H,{children:ee()}),(0,q.jsx)(V,{children:(0,q.jsx)(Ue,{onChange:e.onChange,options:We,placeholder:`0.0.0.0`,value:e.value??``})}),(0,q.jsx)(U,{})]})}),(0,q.jsx)(B,{control:e.control,name:`http_bind_port`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsx)(H,{children:pe()}),(0,q.jsx)(V,{children:(0,q.jsx)(W,{placeholder:`8000`,type:`number`,...e,value:e.value??``})}),(0,q.jsx)(U,{})]})})]}),(0,q.jsx)(B,{control:e.control,name:`runtime_root_path`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsx)(H,{children:ie()}),(0,q.jsx)(V,{children:(0,q.jsx)(W,{placeholder:`./runtime`,...e})}),(0,q.jsx)(U,{})]})}),(0,q.jsx)(B,{control:e.control,name:`log_save_path`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsx)(H,{children:v()}),(0,q.jsx)(V,{children:(0,q.jsx)(W,{placeholder:`./logs`,...e})}),(0,q.jsx)(U,{})]})}),(0,q.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,q.jsx)(B,{control:e.control,name:`order_expiration_time`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsx)(H,{children:ue()}),(0,q.jsx)(V,{children:(0,q.jsx)(W,{placeholder:`10`,type:`number`,...e})}),(0,q.jsx)(U,{})]})}),(0,q.jsx)(B,{control:e.control,name:`order_notice_max_retry`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsx)(H,{children:oe()}),(0,q.jsx)(V,{children:(0,q.jsx)(W,{placeholder:`1`,type:`number`,...e})}),(0,q.jsx)(U,{})]})})]}),(0,q.jsxs)(S,{className:`mt-2 w-full`,disabled:t,type:`submit`,children:[t?(0,q.jsx)(N,{className:`animate-spin`}):null,r]})]})})}function Ke({credentials:e,onCopy:t,onTogglePassword:n,passwordLookupFailed:u,showPassword:_}){return(0,q.jsxs)(`div`,{className:`grid gap-4`,children:[(0,q.jsxs)(`div`,{className:`grid gap-4 rounded-2xl border border-emerald-500/20 bg-emerald-500/5 p-4 shadow-sm`,children:[(0,q.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,q.jsx)(`div`,{className:`flex size-10 shrink-0 items-center justify-center rounded-xl bg-emerald-500/12 text-emerald-600 dark:text-emerald-400`,children:(0,q.jsx)(Ce,{className:`size-5`})}),(0,q.jsxs)(`div`,{className:`space-y-1`,children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,q.jsx)(`h3`,{className:`font-semibold text-base text-foreground`,children:r()}),e?(0,q.jsx)(G,{className:`rounded-md`,variant:`secondary`,children:g()}):null]}),(0,q.jsx)(`p`,{className:`text-muted-foreground text-sm leading-6`,children:l()})]})]}),e?(0,q.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,q.jsx)(`div`,{className:`rounded-xl border border-border/60 bg-background/85 p-4 shadow-sm`,children:(0,q.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,q.jsx)(`p`,{className:`text-muted-foreground text-xs uppercase tracking-wide`,children:ce()}),(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,q.jsx)(`p`,{className:`min-w-0 flex-1 truncate font-medium text-base text-foreground`,children:e.username}),(0,q.jsxs)(S,{"aria-label":i(),className:`scale-95 rounded-full`,onClick:()=>t(e.username),size:`icon`,type:`button`,variant:`ghost`,children:[(0,q.jsx)(D,{}),(0,q.jsx)(`span`,{className:`sr-only`,children:i()})]})]})]})}),(0,q.jsx)(`div`,{className:`rounded-xl border border-border/60 bg-background/85 p-4 shadow-sm`,children:(0,q.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,q.jsx)(G,{className:`w-fit rounded-md border-amber-200 bg-amber-50 text-amber-700 dark:border-amber-900/60 dark:bg-amber-950/40 dark:text-amber-300`,variant:`outline`,children:p()}),(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,q.jsx)(`p`,{className:`text-muted-foreground text-xs uppercase tracking-wide`,children:c()}),(0,q.jsxs)(G,{className:`rounded-md`,variant:`outline`,children:[(0,q.jsx)(Fe,{className:`size-3.5`}),f()]})]}),(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,q.jsx)(`p`,{className:`min-w-0 flex-1 break-all font-medium text-base text-foreground`,children:_?e.password:`•`.repeat(Math.max(e.password.length,10))}),(0,q.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,q.jsxs)(S,{"aria-label":_?o():d(),className:`scale-95 rounded-full`,onClick:n,size:`icon`,type:`button`,variant:`ghost`,children:[_?(0,q.jsx)(k,{}):(0,q.jsx)(A,{}),(0,q.jsx)(`span`,{className:`sr-only`,children:_?o():d()})]}),(0,q.jsxs)(S,{"aria-label":i(),className:`scale-95 rounded-full`,onClick:()=>t(e.password),size:`icon`,type:`button`,variant:`ghost`,children:[(0,q.jsx)(D,{}),(0,q.jsx)(`span`,{className:`sr-only`,children:i()})]})]})]}),(0,q.jsx)(`p`,{className:`text-muted-foreground text-sm leading-6`,children:a()})]})})]}):null,u?(0,q.jsxs)(`div`,{className:`flex items-start gap-3 rounded-xl border border-amber-200 bg-amber-50 p-4 text-amber-900 dark:border-amber-900/60 dark:bg-amber-950/40 dark:text-amber-100`,children:[(0,q.jsx)(we,{className:`mt-0.5 size-4 shrink-0`}),(0,q.jsxs)(`div`,{className:`space-y-1`,children:[(0,q.jsx)(`p`,{className:`font-medium text-sm`,children:m()}),(0,q.jsx)(`p`,{className:`text-amber-800/80 text-sm leading-6 dark:text-amber-100/75`,children:h()})]})]}):null]}),(0,q.jsx)(S,{asChild:!0,className:`w-full`,type:`button`,children:(0,q.jsx)(he,{to:`/sign-in`,children:s()})})]})}var qe=Te({app_name:L().min(1,`App Name is required`),app_uri:L().min(1,`App URI is required`).url(`Must be a valid URL (e.g. http://your-server-ip:8000)`),http_bind_addr:L().min(1,`Bind address is required`),http_bind_port:R({error:`Port must be a number`}).int().min(1,`Port must be ≥ 1`).max(65535,`Port must be ≤ 65535`),runtime_root_path:L().min(1,`Runtime root path is required`),log_save_path:L().min(1,`Log save path is required`),order_expiration_time:R({error:`Must be a number`}).int().min(1,`Must be ≥ 1 minute`),order_notice_max_retry:R({error:`Must be a number`}).int().min(0,`Must be ≥ 0`)}),$={app_name:`epusdt`,app_uri:``,http_bind_addr:`0.0.0.0`,http_bind_port:8e3,runtime_root_path:`./runtime`,log_save_path:`./logs`,order_expiration_time:10,order_notice_max_retry:1};function Je(){let[e,n]=(0,K.useState)(!1),[r,i]=(0,K.useState)(!1),[a,o]=(0,K.useState)(null),[s,c]=(0,K.useState)(null),[l,d]=(0,K.useState)(!1),[f,p]=(0,K.useState)(!1),m=Oe({resolver:De(qe),defaultValues:$,mode:`onChange`});(0,K.useEffect)(()=>{let e=!0;async function n(){try{let{data:n}=await t.GET(`/api/install/defaults`);if(!(e&&n))return;let r=Object.fromEntries(Object.entries(n).filter(([,e])=>e!==``&&e!=null));m.reset({...$,...r})}catch{}}return n().catch(()=>void 0),()=>{e=!1}},[m]);function h(e){if(!(0,Ie.default)(e)){I.error(u());return}I.success(me())}async function g(e){n(!0),o(null),d(!1);try{let{data:n,error:r,response:a}=await t.POST(`/api/install`,{body:e});if(!a.ok||r){o({variant:`destructive`,message:r?.error||b()});return}let s=n?.init_password?.trim()||``,l=s?{username:`admin`,password:s}:null;l||d(!0),i(!0),c(l)}catch{o({variant:`destructive`,message:b()})}finally{n(!1)}}let v=_();return e&&(v=re()),r&&(v=le()),(0,q.jsxs)(`div`,{className:`relative flex min-h-svh items-center justify-center px-4 py-10`,children:[(0,q.jsx)(ze,{centerVignette:!1,glitchColors:[`#3f3f46`,`#71717a`,`#a1a1aa`],glitchSpeed:`fast`,outerVignette:!1,smooth:!0}),(0,q.jsxs)(Pe,{className:`max-w-2xl border border-border/40 bg-card/55 shadow-xl backdrop-blur-xl`,children:[(0,q.jsxs)(je,{className:`space-y-6 border-border/40 border-b pb-8`,children:[(0,q.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,q.jsx)(Ee,{className:`size-10 shrink-0`}),(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`h1`,{className:`font-medium text-xl leading-tight`,children:`GMPay`}),(0,q.jsx)(`p`,{className:`mt-1 whitespace-nowrap text-muted-foreground text-xs`,children:te()})]})]}),(0,q.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,q.jsx)(j,{}),(0,q.jsx)(M,{})]})]}),r?null:(0,q.jsxs)(`div`,{className:`space-y-3`,children:[(0,q.jsx)(Ae,{className:`text-2xl tracking-tight`,children:y()}),(0,q.jsx)(Ne,{className:`max-w-xl text-sm leading-6`,children:ae()})]})]}),(0,q.jsx)(Me,{children:(0,q.jsxs)(`div`,{className:`grid gap-4`,children:[a?(0,q.jsxs)(Ve,{variant:a.variant,children:[(0,q.jsx)(He,{children:de()}),(0,q.jsx)(Q,{children:a.message})]}):null,r?(0,q.jsx)(Ke,{credentials:s,onCopy:h,onTogglePassword:()=>p(e=>!e),passwordLookupFailed:l,showPassword:f}):(0,q.jsx)(Ge,{form:m,loading:e,onSubmit:g,submitText:v})]})})]})]})}var Ye=Je;export{Ye as component}; \ No newline at end of file diff --git a/src/www/assets/keys-DvE6Ll4y.js b/src/www/assets/keys-D0eVvlbn.js similarity index 99% rename from src/www/assets/keys-DvE6Ll4y.js rename to src/www/assets/keys-D0eVvlbn.js index 80d8150..5412402 100644 --- a/src/www/assets/keys-DvE6Ll4y.js +++ b/src/www/assets/keys-D0eVvlbn.js @@ -1,2 +1,2 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{a as t}from"./auth-store-De4Y7PFV.js";import{t as n}from"./router-eyRTkMwc.js";import{t as r}from"./react-CO2uhaBc.js";import{$i as i,Ai as a,Bi as o,Ci as s,Di as c,Ei as l,Fi as u,Gi as d,Hi as f,Ii as p,Ji as m,Ki as h,Ko as ee,Li as g,Lp as _,Mi as te,Ni as ne,Oi as v,Pi as re,Qi as ie,Ri as ae,Rp as y,Si as oe,Ti as se,Ts as ce,Ui as le,Vi as ue,Wi as de,Xi as fe,Xp as b,Xr as x,Yi as pe,Zi as S,_i as C,bi as w,di as T,fi as E,gi as D,hi as O,ji as me,ki as k,li as A,mi as he,op as ge,pi as j,qi as _e,tm as ve,ui as M,uo as ye,vi as N,wi as be,xi as P,yi as F,zi as xe}from"./messages-BOatyqUm.js";import{r as I}from"./route-wzPKSRj2.js";import{o as L,s as R,z}from"./search-provider-C-_FQI9C.js";import{t as B}from"./button-C_NDYaz8.js";import{t as Se}from"./confirm-dialog-D1L-0EhT.js";import{a as Ce,i as we,n as Te,r as V,t as Ee}from"./select-CzebumOF.js";import{t as De}from"./separator-CsUemQNs.js";import{t as Oe}from"./switch-CgoJjvdz.js";import{t as H}from"./createLucideIcon-Br0Bd5k2.js";import{t as U}from"./skeleton-CmDjDV1O.js";import{n as ke,t as Ae}from"./copy-to-clipboard-C1tj4a8X.js";import{t as je}from"./eye-off-B8hO0oST.js";import{t as Me}from"./eye-DAKGLydt.js";import{n as Ne,r as Pe,t as Fe}from"./empty-state-CxE4wU3V.js";import{n as Ie,t as Le}from"./main-C1R3Hvq1.js";import{n as Re,t as ze}from"./trash-2-9I8lAjeE.js";import{t as Be}from"./shield-check-MAPDL1u8.js";import{i as Ve,o as He,r as Ue,s as We,t as Ge}from"./dialog-CZ-2RPb-.js";import{n as W}from"./dist-JOUh6qvR.js";import{c as G,s as Ke}from"./zod-rwFXxHlg.js";import{a as K,c as qe,i as q,l as Je,n as J,o as Y,r as Ye,s as X,t as Xe}from"./form-KfFEakes.js";import{t as Z}from"./input-8zzM34r5.js";import{t as Ze}from"./page-header-GTtyZFBB.js";import{t as Qe}from"./textarea-C8ejjLzk.js";import{t as $e}from"./badge-VJlwwTW5.js";var et=H(`arrow-down-a-z`,[[`path`,{d:`m3 16 4 4 4-4`,key:`1co6wj`}],[`path`,{d:`M7 20V4`,key:`1yoxec`}],[`path`,{d:`M20 8h-5`,key:`1vsyxs`}],[`path`,{d:`M15 10V6.5a2.5 2.5 0 0 1 5 0V10`,key:`ag13bf`}],[`path`,{d:`M15 14h5l-5 6h5`,key:`ur5jdg`}]]),tt=H(`arrow-up-a-z`,[[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}],[`path`,{d:`M20 8h-5`,key:`1vsyxs`}],[`path`,{d:`M15 10V6.5a2.5 2.5 0 0 1 5 0V10`,key:`ag13bf`}],[`path`,{d:`M15 14h5l-5 6h5`,key:`ur5jdg`}]]),nt=H(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),rt=e(Ae(),1),Q=e(r(),1),$=ve(),it=Ke({name:G().min(1,A()),notify_url:G().optional(),ip_whitelist:G().optional()});function at({open:e,onOpenChange:n,currentRow:r,onSuccess:i}){let a=Je({resolver:qe(it),defaultValues:{name:``,notify_url:``,ip_whitelist:``}}),o=t.useMutation(`post`,`/admin/api/v1/api-keys`),s=t.useMutation(`patch`,`/admin/api/v1/api-keys/{id}`),l=o.data?.data?.secret_key;(0,Q.useEffect)(()=>{e&&a.reset({name:r?.name??``,notify_url:r?.notify_url??``,ip_whitelist:r?.ip_whitelist??``})},[e,r,a]);function u(e){e||(a.reset({name:``,notify_url:``,ip_whitelist:``}),o.reset(),s.reset()),n(e)}function d(e){if(r?.id){s.mutate({params:{path:{id:r.id}},body:{name:e.name,notify_url:e.notify_url,ip_whitelist:e.ip_whitelist||void 0}},{onSuccess:()=>{W.success(T()),n(!1),i?.()}});return}o.mutate({body:{name:e.name,notify_url:e.notify_url,ip_whitelist:e.ip_whitelist||void 0}},{onSuccess:()=>{W.success(M()),i?.()}})}function f(){u(!1)}let p=o.isPending||s.isPending;return(0,$.jsx)(Ge,{onOpenChange:u,open:e,children:(0,$.jsxs)(Ue,{children:[(0,$.jsxs)(He,{children:[(0,$.jsx)(We,{children:r?w():F()}),(0,$.jsx)(Ve,{children:r?N():C()})]}),(0,$.jsx)(Xe,{...a,children:(0,$.jsxs)(`form`,{className:`space-y-4`,onSubmit:a.handleSubmit(d),children:[(0,$.jsx)(q,{control:a.control,name:`name`,render:({field:e})=>(0,$.jsxs)(K,{children:[(0,$.jsx)(Y,{children:oe()}),(0,$.jsx)(J,{children:(0,$.jsx)(Z,{placeholder:P(),...e})}),(0,$.jsx)(X,{})]})}),(0,$.jsx)(q,{control:a.control,name:`notify_url`,render:({field:e})=>(0,$.jsxs)(K,{children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,$.jsx)(Y,{children:c()}),(0,$.jsx)($e,{variant:`secondary`,children:y()})]}),(0,$.jsx)(J,{children:(0,$.jsx)(Z,{disabled:!0,placeholder:`https://example.com/callback`,...e})}),(0,$.jsx)(Ye,{children:_()}),(0,$.jsx)(X,{})]})}),(0,$.jsx)(q,{control:a.control,name:`ip_whitelist`,render:({field:e})=>(0,$.jsxs)(K,{children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,$.jsx)(Y,{children:D()}),(0,$.jsx)($e,{variant:`secondary`,children:y()})]}),(0,$.jsx)(J,{children:(0,$.jsx)(Qe,{disabled:!0,placeholder:`127.0.0.1 +import{r as e}from"./chunk-DECur_0Z.js";import{a as t}from"./auth-store-De4Y7PFV.js";import{t as n}from"./router-Z0tUklFK.js";import{t as r}from"./react-CO2uhaBc.js";import{$i as i,Ai as a,Bi as o,Ci as s,Di as c,Ei as l,Fi as u,Gi as d,Hi as f,Ii as p,Ji as m,Ki as h,Ko as ee,Li as g,Lp as _,Mi as te,Ni as ne,Oi as v,Pi as re,Qi as ie,Ri as ae,Rp as y,Si as oe,Ti as se,Ts as ce,Ui as le,Vi as ue,Wi as de,Xi as fe,Xp as b,Xr as x,Yi as pe,Zi as S,_i as C,bi as w,di as T,fi as E,gi as D,hi as O,ji as me,ki as k,li as A,mi as he,op as ge,pi as j,qi as _e,tm as ve,ui as M,uo as ye,vi as N,wi as be,xi as P,yi as F,zi as xe}from"./messages-BOatyqUm.js";import{r as I}from"./route-wzPKSRj2.js";import{o as L,s as R,z}from"./search-provider-C-_FQI9C.js";import{t as B}from"./button-C_NDYaz8.js";import{t as Se}from"./confirm-dialog-D1L-0EhT.js";import{a as Ce,i as we,n as Te,r as V,t as Ee}from"./select-CzebumOF.js";import{t as De}from"./separator-CsUemQNs.js";import{t as Oe}from"./switch-CgoJjvdz.js";import{t as H}from"./createLucideIcon-Br0Bd5k2.js";import{t as U}from"./skeleton-CmDjDV1O.js";import{n as ke,t as Ae}from"./copy-to-clipboard-C1tj4a8X.js";import{t as je}from"./eye-off-B8hO0oST.js";import{t as Me}from"./eye-DAKGLydt.js";import{n as Ne,r as Pe,t as Fe}from"./empty-state-CxE4wU3V.js";import{n as Ie,t as Le}from"./main-C1R3Hvq1.js";import{n as Re,t as ze}from"./trash-2-9I8lAjeE.js";import{t as Be}from"./shield-check-MAPDL1u8.js";import{i as Ve,o as He,r as Ue,s as We,t as Ge}from"./dialog-CZ-2RPb-.js";import{n as W}from"./dist-JOUh6qvR.js";import{c as G,s as Ke}from"./zod-rwFXxHlg.js";import{a as K,c as qe,i as q,l as Je,n as J,o as Y,r as Ye,s as X,t as Xe}from"./form-KfFEakes.js";import{t as Z}from"./input-8zzM34r5.js";import{t as Ze}from"./page-header-GTtyZFBB.js";import{t as Qe}from"./textarea-C8ejjLzk.js";import{t as $e}from"./badge-VJlwwTW5.js";var et=H(`arrow-down-a-z`,[[`path`,{d:`m3 16 4 4 4-4`,key:`1co6wj`}],[`path`,{d:`M7 20V4`,key:`1yoxec`}],[`path`,{d:`M20 8h-5`,key:`1vsyxs`}],[`path`,{d:`M15 10V6.5a2.5 2.5 0 0 1 5 0V10`,key:`ag13bf`}],[`path`,{d:`M15 14h5l-5 6h5`,key:`ur5jdg`}]]),tt=H(`arrow-up-a-z`,[[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}],[`path`,{d:`M20 8h-5`,key:`1vsyxs`}],[`path`,{d:`M15 10V6.5a2.5 2.5 0 0 1 5 0V10`,key:`ag13bf`}],[`path`,{d:`M15 14h5l-5 6h5`,key:`ur5jdg`}]]),nt=H(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),rt=e(Ae(),1),Q=e(r(),1),$=ve(),it=Ke({name:G().min(1,A()),notify_url:G().optional(),ip_whitelist:G().optional()});function at({open:e,onOpenChange:n,currentRow:r,onSuccess:i}){let a=Je({resolver:qe(it),defaultValues:{name:``,notify_url:``,ip_whitelist:``}}),o=t.useMutation(`post`,`/admin/api/v1/api-keys`),s=t.useMutation(`patch`,`/admin/api/v1/api-keys/{id}`),l=o.data?.data?.secret_key;(0,Q.useEffect)(()=>{e&&a.reset({name:r?.name??``,notify_url:r?.notify_url??``,ip_whitelist:r?.ip_whitelist??``})},[e,r,a]);function u(e){e||(a.reset({name:``,notify_url:``,ip_whitelist:``}),o.reset(),s.reset()),n(e)}function d(e){if(r?.id){s.mutate({params:{path:{id:r.id}},body:{name:e.name,notify_url:e.notify_url,ip_whitelist:e.ip_whitelist||void 0}},{onSuccess:()=>{W.success(T()),n(!1),i?.()}});return}o.mutate({body:{name:e.name,notify_url:e.notify_url,ip_whitelist:e.ip_whitelist||void 0}},{onSuccess:()=>{W.success(M()),i?.()}})}function f(){u(!1)}let p=o.isPending||s.isPending;return(0,$.jsx)(Ge,{onOpenChange:u,open:e,children:(0,$.jsxs)(Ue,{children:[(0,$.jsxs)(He,{children:[(0,$.jsx)(We,{children:r?w():F()}),(0,$.jsx)(Ve,{children:r?N():C()})]}),(0,$.jsx)(Xe,{...a,children:(0,$.jsxs)(`form`,{className:`space-y-4`,onSubmit:a.handleSubmit(d),children:[(0,$.jsx)(q,{control:a.control,name:`name`,render:({field:e})=>(0,$.jsxs)(K,{children:[(0,$.jsx)(Y,{children:oe()}),(0,$.jsx)(J,{children:(0,$.jsx)(Z,{placeholder:P(),...e})}),(0,$.jsx)(X,{})]})}),(0,$.jsx)(q,{control:a.control,name:`notify_url`,render:({field:e})=>(0,$.jsxs)(K,{children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,$.jsx)(Y,{children:c()}),(0,$.jsx)($e,{variant:`secondary`,children:y()})]}),(0,$.jsx)(J,{children:(0,$.jsx)(Z,{disabled:!0,placeholder:`https://example.com/callback`,...e})}),(0,$.jsx)(Ye,{children:_()}),(0,$.jsx)(X,{})]})}),(0,$.jsx)(q,{control:a.control,name:`ip_whitelist`,render:({field:e})=>(0,$.jsxs)(K,{children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,$.jsx)(Y,{children:D()}),(0,$.jsx)($e,{variant:`secondary`,children:y()})]}),(0,$.jsx)(J,{children:(0,$.jsx)(Qe,{disabled:!0,placeholder:`127.0.0.1 10.0.0.2`,...e})}),(0,$.jsx)(Ye,{children:_()}),(0,$.jsx)(X,{})]})}),!r&&l?(0,$.jsxs)(`div`,{className:`rounded-lg border bg-muted/40 p-3 text-sm`,children:[(0,$.jsx)(`div`,{className:`mb-1 font-medium text-amber-600`,children:O()}),(0,$.jsx)(`div`,{className:`break-all font-mono text-muted-foreground`,children:l})]}):null,(0,$.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,$.jsx)(B,{onClick:f,type:`button`,variant:`outline`,children:!r&&l?he():b()}),(!l||r)&&(0,$.jsxs)(B,{disabled:p,type:`submit`,children:[p&&x(),!p&&r&&j(),!(p||r)&&E()]})]})]})})]})})}function ot({data:e,isLoading:t,onAction:n,onCopySecret:r,onToggleSecret:i,secretStates:o}){let[u,d]=(0,Q.useState)(new Set);function f(e){try{return`${new URL(e).protocol}//••••••••`}catch{return`••••••••••••••••`}}function p(e){return e?.visible?e.loading?v():e.value||`-`:`••••••••••••••••`}function m(e,t){return e?t?e:f(e):`-`}return t?(0,$.jsx)(`ul`,{className:`faded-bottom no-scrollbar grid gap-4 overflow-auto pt-4 pb-16 md:grid-cols-2 lg:grid-cols-3`,children:[`api-key-skeleton-1`,`api-key-skeleton-2`,`api-key-skeleton-3`,`api-key-skeleton-4`,`api-key-skeleton-5`,`api-key-skeleton-6`].map(e=>(0,$.jsx)(`li`,{"aria-hidden":`true`,className:`rounded-lg border`,children:(0,$.jsxs)(`div`,{className:`flex h-full flex-col overflow-hidden p-4`,children:[(0,$.jsxs)(`div`,{className:`mb-6 flex items-center justify-between gap-3`,children:[(0,$.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-2`,children:[(0,$.jsx)(U,{className:`h-5 w-32 max-w-full`}),(0,$.jsx)(U,{className:`h-3 w-20`})]}),(0,$.jsx)(U,{className:`h-6 w-11 rounded-full`})]}),(0,$.jsxs)(`div`,{className:`mb-6 flex-1 space-y-3`,children:[(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[(0,$.jsx)(U,{className:`mt-1 h-3 w-12 shrink-0`}),(0,$.jsx)(U,{className:`h-4 w-28 min-w-0 flex-1`})]}),(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[(0,$.jsx)(U,{className:`mt-1 h-3 w-12 shrink-0`}),(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-start gap-2`,children:[(0,$.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-2`,children:[(0,$.jsx)(U,{className:`h-4 w-full`}),(0,$.jsx)(U,{className:`h-4 w-9/12`})]}),(0,$.jsx)(U,{className:`size-8 shrink-0 rounded-md`}),(0,$.jsx)(U,{className:`size-8 shrink-0 rounded-md`})]})]}),[`w-28`,`w-full`,`w-11/12`,`w-24`,`w-32`].map(e=>(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[(0,$.jsx)(U,{className:`mt-1 h-3 w-12 shrink-0`}),(0,$.jsx)(U,{className:`h-4 min-w-0 flex-1 ${e}`})]},e))]}),(0,$.jsx)(`div`,{className:`-mx-4 mt-auto -mb-4 border-t`,children:(0,$.jsx)(`div`,{className:`grid grid-cols-3`,children:[`api-key-action-skeleton-1`,`api-key-action-skeleton-2`,`api-key-action-skeleton-3`].map((e,t)=>(0,$.jsx)(`div`,{className:`flex h-11 items-center justify-center px-4 ${t<2?`border-r`:``}`,children:(0,$.jsx)(U,{className:`h-4 w-16`})},e))})})]})},e))}):e.length?(0,$.jsx)(`ul`,{className:`faded-bottom no-scrollbar grid gap-4 overflow-auto pt-4 pb-16 md:grid-cols-2 lg:grid-cols-3`,children:e.map(e=>{let t=e.status===1,f=String(e.id??e.pid??``),h=o[f],g=u.has(f),_=[{label:`PID`,value:e.pid??`-`},{label:se(),value:p(h),visible:h?.visible,onToggle:()=>i(e),onCopy:()=>r(e)},{label:c(),value:m(e.notify_url,g),visible:g,onToggle:e.notify_url?()=>d(e=>{let t=new Set(e);return t.has(f)?t.delete(f):t.add(f),t}):void 0},{label:l(),value:e.ip_whitelist||`-`},{label:te(),value:R(e.call_count??0,0)},{label:me(),value:L(e.last_used_at)||a()},{label:ee(),value:L(e.updated_at)||`-`}];return(0,$.jsx)(`li`,{className:`rounded-lg border hover:shadow-md`,children:(0,$.jsxs)(`div`,{className:`flex h-full flex-col overflow-hidden p-4`,children:[(0,$.jsxs)(`div`,{className:`mb-6 flex items-center justify-between`,children:[(0,$.jsx)(`div`,{className:`min-w-0`,children:(0,$.jsx)(`h2`,{className:`truncate font-semibold`,children:e.name||e.pid||`#${e.id}`})}),(0,$.jsx)(Oe,{checked:t,onCheckedChange:()=>n(t?`disable`:`enable`,e)})]}),(0,$.jsxs)(`div`,{className:`mb-6 flex-1 space-y-2 text-muted-foreground text-sm`,children:[(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[(0,$.jsx)(`span`,{className:`w-16 shrink-0 text-foreground/80`,children:`PID`}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 break-all`,children:e.pid??`-`})]}),_.filter(e=>e.label!==`PID`).map(e=>(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[(0,$.jsx)(`span`,{className:`w-16 shrink-0 text-foreground/80`,children:e.label}),(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-start gap-2`,children:[(0,$.jsx)(`span`,{className:`min-w-0 flex-1 break-all`,children:e.value}),e.onCopy&&(0,$.jsx)(B,{className:`size-8 shrink-0`,onClick:e.onCopy,size:`icon-sm`,variant:`ghost`,children:(0,$.jsx)(ke,{className:`h-4.5 w-4.5`})}),e.onToggle&&(0,$.jsx)(B,{className:`size-8 shrink-0`,onClick:e.onToggle,size:`icon-sm`,variant:`ghost`,children:e.visible?(0,$.jsx)(je,{className:`h-4.5 w-4.5`}):(0,$.jsx)(Me,{className:`h-4.5 w-4.5`})})]})]},e.label))]}),(0,$.jsx)(`div`,{className:`-mx-4 mt-auto -mb-4 border-t`,children:(0,$.jsxs)(`div`,{className:`grid grid-cols-3`,children:[(0,$.jsxs)(B,{className:`h-11 w-full rounded-none border-r px-0 text-muted-foreground hover:bg-muted/60 hover:text-foreground`,onClick:()=>n(`edit`,e),size:`sm`,variant:`ghost`,children:[(0,$.jsx)(nt,{className:`h-4 w-4`}),be()]}),(0,$.jsxs)(B,{className:`h-11 w-full rounded-none border-r px-0 text-muted-foreground hover:bg-muted/60 hover:text-foreground`,onClick:()=>n(`rotate-secret`,e),size:`sm`,variant:`ghost`,children:[(0,$.jsx)(z,{className:`h-4 w-4`}),s()]}),(0,$.jsxs)(B,{className:`h-11 w-full rounded-none px-0 text-destructive hover:bg-destructive/8 hover:text-destructive`,onClick:()=>n(`delete`,e),size:`sm`,variant:`ghost`,children:[(0,$.jsx)(ze,{className:`h-4 w-4 text-destructive`}),ye()]})]})})]})},e.id??e.pid)})}):(0,$.jsx)(`div`,{className:`pt-4`,children:(0,$.jsx)(Fe,{description:k()})})}var st=I(`/_authenticated/keys/`),ct=new Map([[`all`,i()],[`enabled`,ie()],[`disabled`,S()]]);function lt(){let{filter:e=``,type:r=`all`,sort:s=`asc`}=st.useSearch(),c=st.useNavigate(),l=t.useQuery(`get`,`/admin/api/v1/api-keys`),ee=t.useMutation(`delete`,`/admin/api/v1/api-keys/{id}`),_=t.useMutation(`post`,`/admin/api/v1/api-keys/{id}/status`),v=t.useMutation(`get`,`/admin/api/v1/api-keys/{id}/secret`),y=t.useMutation(`post`,`/admin/api/v1/api-keys/{id}/rotate-secret`),oe=t.useMutation(`get`,`/admin/api/v1/api-keys/{id}/stats`),[se,b]=(0,Q.useState)(!1),[x,C]=(0,Q.useState)(null),[w,T]=(0,Q.useState)(null),[E,D]=(0,Q.useState)(null),[O,k]=(0,Q.useState)({}),[A,he]=(0,Q.useState)(s),[j,ve]=(0,Q.useState)(r),[M,ye]=(0,Q.useState)(e);async function N(){await n.invalidateQueries({queryKey:[`get`,`/admin/api/v1/api-keys`]})}async function be(){if(!w?.row.id)return;let e=w.row.id;w.action===`delete`?(await ee.mutateAsync({params:{path:{id:e}}}),W.success(fe())):(w.action===`enable`||w.action===`disable`)&&(await _.mutateAsync({params:{path:{id:e}},body:{status:w.action===`enable`?1:2}}),W.success(ce())),await N(),T(null)}function P(e){return String(e.id??e.pid??``)}async function F(e,t){let n=P(e),r=t?.visible??O[n]?.visible??!1;k(e=>({...e,[n]:{loading:!0,value:e[n]?.value??``,visible:r}}));try{let t=await v.mutateAsync({params:{path:{id:e.id}}}),i=typeof t.data==`object`&&t.data&&`secret_key`in t.data?String(t.data.secret_key??``):``;return k(e=>({...e,[n]:{loading:!1,value:i||`-`,visible:r}})),i||`-`}catch{return k(e=>({...e,[n]:{loading:!1,value:e[n]?.value??``,visible:r}})),W.error(pe()),null}}async function I(e){if(!e.id){W.error(m());return}let t=P(e),n=O[t];if(n?.visible){k(e=>({...e,[t]:{...n,visible:!1}}));return}if(n?.value){k(e=>({...e,[t]:{...n,visible:!0}}));return}await F(e,{visible:!0})}async function L(e){if(!e.id){W.error(m());return}let t=P(e),n=O[t]?.value??``;if(n||=await F(e,{visible:O[t]?.visible??!1})??``,!n||n===`-`){W.error(_e());return}(0,rt.default)(n),W.success(h())}async function z(e){let t=await y.mutateAsync({params:{path:{id:e.id}}}),n=P(e);k(e=>({...e,[n]:{loading:!1,value:t.data?.secret_key??`-`,visible:!0}})),W.success(d()),await N()}async function Oe(e){let t=await oe.mutateAsync({params:{path:{id:e.id}}});D({apiKey:e.pid??`#${e.id}`,stats:t.data??{}})}async function H(e,t){if(!t.id){W.error(m());return}if(e===`edit`){C(t),b(!0);return}if(e===`delete`){T({action:e,row:t});return}switch(e){case`enable`:case`disable`:await _.mutateAsync({params:{path:{id:t.id}},body:{status:e===`enable`?1:2}}),W.success(ce()),await N();break;case`rotate-secret`:await z(t);break;case`view-stats`:await Oe(t);break;default:break}}let U=[...l.data?.data??[]].sort((e,t)=>{let n=(e.name??e.pid??`#${e.id??``}`).toLowerCase(),r=(t.name??t.pid??`#${t.id??``}`).toLowerCase();return A===`asc`?n.localeCompare(r):r.localeCompare(n)}).filter(e=>j===`enabled`?e.status===1:j===`disabled`?e.status!==1:!0).filter(e=>{let t=M.trim().toLowerCase();return t?(e.pid??``).toLowerCase().includes(t)||(e.name??``).toLowerCase().includes(t)||(e.notify_url??``).toLowerCase().includes(t):!0});return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Ie,{}),(0,$.jsxs)(Le,{fixed:!0,children:[(0,$.jsx)(Ze,{actions:(0,$.jsxs)(B,{onClick:()=>{C(null),b(!0)},children:[(0,$.jsx)(Re,{className:`mr-2 h-4 w-4`}),de()]}),description:le(),title:f()}),(0,$.jsxs)(`div`,{className:`my-4 flex items-end justify-between sm:my-0 sm:items-center`,children:[(0,$.jsxs)(`div`,{className:`flex flex-col gap-4 sm:my-4 sm:flex-row`,children:[(0,$.jsx)(Z,{className:`h-9 w-40 lg:w-62.5`,onChange:e=>{ye(e.target.value),c({search:t=>({...t,filter:e.target.value||void 0})})},placeholder:ue(),value:M}),(0,$.jsxs)(Ee,{onValueChange:e=>{ve(e),c({search:t=>({...t,type:e===`all`?void 0:e})})},value:j,children:[(0,$.jsx)(we,{className:`w-36`,children:(0,$.jsx)(Ce,{children:ct.get(j)})}),(0,$.jsxs)(Te,{children:[(0,$.jsx)(V,{value:`all`,children:i()}),(0,$.jsx)(V,{value:`enabled`,children:ie()}),(0,$.jsx)(V,{value:`disabled`,children:S()})]})]})]}),(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsxs)(B,{onClick:N,variant:`outline`,children:[(0,$.jsx)(Pe,{className:`mr-2 h-4 w-4`}),ge()]}),(0,$.jsxs)(Ee,{onValueChange:e=>{he(e),c({search:t=>({...t,sort:e})})},value:A,children:[(0,$.jsx)(we,{className:`w-16`,children:(0,$.jsx)(Ce,{children:(0,$.jsx)(Ne,{size:18})})}),(0,$.jsxs)(Te,{align:`end`,children:[(0,$.jsx)(V,{value:`asc`,children:(0,$.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,$.jsx)(tt,{size:16}),(0,$.jsx)(`span`,{children:o()})]})}),(0,$.jsx)(V,{value:`desc`,children:(0,$.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,$.jsx)(et,{size:16}),(0,$.jsx)(`span`,{children:xe()})]})})]})]})]})]}),(0,$.jsx)(De,{className:`shadow-sm`}),(0,$.jsx)(ot,{data:U,isLoading:l.isLoading,onAction:H,onCopySecret:L,onToggleSecret:I,secretStates:O})]}),(0,$.jsx)(at,{currentRow:x,onOpenChange:e=>{b(e),e||C(null)},onSuccess:()=>l.refetch(),open:se}),w&&(0,$.jsx)(Se,{confirmText:w.action===`delete`?ae():g(),desc:(0,$.jsx)(`span`,{children:p({target:String(w.row.pid??w.row.id??``),action:w.action})}),destructive:w.action===`delete`,handleConfirm:be,onOpenChange:()=>T(null),open:!0,title:w.action===`delete`?u():re()}),(0,$.jsx)(Ge,{onOpenChange:()=>D(null),open:!!E,children:(0,$.jsxs)(Ue,{children:[(0,$.jsxs)(He,{children:[(0,$.jsxs)(We,{className:`flex items-center gap-2`,children:[(0,$.jsx)(Be,{className:`h-4 w-4`}),ne()]}),(0,$.jsx)(Ve,{children:E?.apiKey})]}),(0,$.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,$.jsxs)(`div`,{className:`rounded-lg border p-4`,children:[(0,$.jsxs)(`div`,{className:`mb-2 flex items-center gap-2 text-muted-foreground text-sm`,children:[(0,$.jsx)(Me,{className:`h-4 w-4`}),` `,te()]}),(0,$.jsx)(`div`,{className:`font-semibold text-2xl`,children:R(E?.stats.call_count??0,0)})]}),(0,$.jsxs)(`div`,{className:`rounded-lg border p-4`,children:[(0,$.jsxs)(`div`,{className:`mb-2 flex items-center gap-2 text-muted-foreground text-sm`,children:[(0,$.jsx)(Pe,{className:`h-4 w-4`}),` `,me()]}),(0,$.jsx)(`div`,{className:`font-medium text-sm`,children:E?.stats.last_used_at??a()})]})]})]})})]})}var ut=lt;export{ut as component}; \ No newline at end of file diff --git a/src/www/assets/orders-C2v2goOf.js b/src/www/assets/orders-oloW11KP.js similarity index 99% rename from src/www/assets/orders-C2v2goOf.js rename to src/www/assets/orders-oloW11KP.js index 15fd974..ff6d0af 100644 --- a/src/www/assets/orders-C2v2goOf.js +++ b/src/www/assets/orders-oloW11KP.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{a as t,c as n}from"./auth-store-De4Y7PFV.js";import{t as r}from"./router-eyRTkMwc.js";import{t as i}from"./react-CO2uhaBc.js";import{$s as a,Ac as o,Bc as s,Cc as c,Dc as l,Ec as u,Fc as ee,Gc as d,Gs as f,Hc as p,Ic as m,Jc as h,Js as g,Kc as te,Ks as _,Lc as ne,Mc as v,Nc as re,Oc as y,Pc as ie,Qc as b,Qs as x,Rc as ae,Sc as S,Tc as C,Uc as oe,Vc as w,Wc as se,Ws as T,Xc as ce,Xp as le,Xs as E,Yc as ue,Ys as D,Zc as O,Zs as k,_c as A,ac as j,bc as M,cc as N,ci as de,dc as fe,ec as pe,fc as me,gc as P,hc as F,ic as he,jc as ge,kc as _e,lc as ve,mc as ye,nc as be,oc as xe,pc as Se,qc as Ce,qs as we,rc as Te,sc as Ee,tc as De,tm as Oe,uc as ke,vc as Ae,wc as I,xc as L,yc as R,zc as je}from"./messages-BOatyqUm.js";import{r as Me}from"./route-wzPKSRj2.js";import{o as z,s as B}from"./search-provider-C-_FQI9C.js";import{i as Ne,t as V}from"./button-C_NDYaz8.js";import{t as Pe}from"./confirm-dialog-D1L-0EhT.js";import{a as H,l as Fe,r as Ie,t as Le}from"./dropdown-menu-DzCIpsuG.js";import{t as Re}from"./label-DNL0sHKL.js";import{t as ze}from"./cookies-BzZOQYPw.js";import{t as U}from"./createLucideIcon-Br0Bd5k2.js";import{a as W,c as Be,d as Ve,f as He,l as Ue,n as We,o as Ge,r as Ke,s as qe,t as Je,u as Ye}from"./data-table-1LQSBhN2.js";import{a as Xe,i as Ze,r as Qe}from"./epusdt-BvGYu9TV.js";import{t as $e}from"./download-fYUtNZ3R.js";import{t as et}from"./ellipsis-74ly4-Wm.js";import{t as tt}from"./eye-DAKGLydt.js";import{r as nt}from"./empty-state-CxE4wU3V.js";import{n as rt,t as it}from"./main-C1R3Hvq1.js";import{a as at,i as G,o as K,r as q,s as J,t as Y}from"./dialog-CZ-2RPb-.js";import{n as X}from"./dist-JOUh6qvR.js";import{t as ot}from"./input-8zzM34r5.js";import{t as st}from"./page-header-GTtyZFBB.js";import{t as ct}from"./badge-VJlwwTW5.js";import{t as lt}from"./use-table-url-state-DP0Y4QjR.js";import{t as Z}from"./long-text-DNqlDi0R.js";import{t as ut}from"./coming-soon-dialog-B34F88bO.js";var dt=U(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),ft=U(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]),Q=e(i(),1),$=Oe();function pt({open:e,onOpenChange:t,order:n,isLoading:r}){let i=[[`Trade ID`,n?.trade_id??`-`],[he(),n?.order_id??`-`],[Te(),n?.name??`-`],[be(),`${B(n?.amount)} ${n?.currency??``}`.trim()||`-`],[De(),`${B(n?.actual_amount,6)} ${n?.token??``}`.trim()||`-`],[pe(),n?.network??`-`],[a(),n?.receive_address??`-`],[x(),n?.notify_url??`-`],[k(),n?.redirect_url??`-`],[E(),n?.block_transaction_id??`-`],[D(),n?.parent_trade_id??`-`],[g(),z(n?.created_at)||`-`],[we(),z(n?.updated_at)||`-`]];return(0,$.jsx)(Y,{onOpenChange:t,open:e,children:(0,$.jsxs)(q,{className:`sm:max-w-3xl`,children:[(0,$.jsxs)(K,{children:[(0,$.jsx)(J,{children:_()}),(0,$.jsx)(G,{children:f()})]}),r?(0,$.jsx)(`div`,{className:`py-8 text-center text-muted-foreground text-sm`,children:T()}):(0,$.jsx)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:i.map(([e,t])=>(0,$.jsxs)(`div`,{className:`rounded-lg border p-3`,children:[(0,$.jsx)(`div`,{className:`mb-1 text-muted-foreground text-xs`,children:e}),(0,$.jsx)(`div`,{className:`break-all text-sm`,children:t})]},e))})]})})}function mt(e){return[{accessorFn:e=>String(e.status??1),id:`status`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:y()}),cell:({row:e})=>{let t=e.original.status??1;return(0,$.jsx)(ct,{className:Ze[t],children:Qe(t)})},filterFn:(e,t,n)=>n.includes(String(e.getValue(t))),meta:{label:y(),skeleton:`badge`}},{accessorKey:`trade_id`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:`Trade ID`}),cell:({row:e})=>(0,$.jsx)(Z,{className:`font-medium`,children:e.original.trade_id}),enableHiding:!1,meta:{label:`Trade ID`,skeleton:`id`}},{accessorKey:`order_id`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:l()}),cell:({row:e})=>(0,$.jsx)(Z,{className:`min-w-40`,children:e.original.order_id}),meta:{label:l(),skeleton:`id`}},{accessorKey:`name`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:u()}),cell:({row:e})=>e.original.name??`-`,meta:{label:u(),skeleton:`short`}},{accessorKey:`amount`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:C()}),cell:({row:e})=>`${B(e.original.amount)} ${e.original.currency||``}`,meta:{label:C(),skeleton:`amount`}},{accessorKey:`actual_amount`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:I()}),cell:({row:e})=>`${B(e.original.actual_amount,6)} ${e.original.token||``}`,meta:{label:I(),skeleton:`amount`}},{accessorKey:`network`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:c()}),id:`chain`,meta:{label:c(),skeleton:`short`}},{accessorKey:`receive_address`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:S()}),cell:({row:e})=>(0,$.jsx)(Z,{className:`min-w-36`,children:e.original.receive_address}),meta:{label:S(),skeleton:`long`}},{accessorKey:`created_at`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:L()}),cell:({row:e})=>(0,$.jsx)(`div`,{className:`min-w-32`,children:z(e.original.created_at)}),meta:{label:L(),skeleton:`date`}},{accessorKey:`updated_at`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:M()}),cell:({row:e})=>z(e.original.updated_at),meta:{label:M(),skeleton:`date`}},{accessorKey:`block_transaction_id`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:R()}),cell:({row:e})=>(0,$.jsx)(Z,{className:`min-w-40`,children:e.original.block_transaction_id??`-`}),meta:{label:R(),skeleton:`id`}},{accessorKey:`is_selected`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:Ae()}),cell:({row:e})=>e.original.is_selected?me():fe(),meta:{label:Ae(),skeleton:`badge`}},{accessorKey:`callback_confirm`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:A()}),cell:({row:e})=>ht(e.original.callback_confirm,e.original.parent_trade_id),meta:{label:A(),skeleton:`badge`}},{accessorKey:`callback_num`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:P()}),cell:({row:e})=>e.original.callback_num??0,meta:{label:P(),skeleton:`id`}},{accessorKey:`notify_url`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:F()}),cell:({row:e})=>(0,$.jsx)(Z,{className:`min-w-48`,children:e.original.notify_url??`-`}),meta:{label:F(),skeleton:`long`}},{accessorKey:`redirect_url`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:ye()}),cell:({row:e})=>(0,$.jsx)(Z,{className:`min-w-48`,children:e.original.redirect_url??`-`}),meta:{label:ye(),skeleton:`long`}},{accessorKey:`api_key_id`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:`API Key ID`}),cell:({row:e})=>e.original.api_key_id??`-`,meta:{label:`API Key ID`,skeleton:`id`}},{id:`actions`,enableHiding:!1,meta:{label:Se(),skeleton:`action`,sticky:`right`,className:Ne(`w-12`)},cell:({row:t})=>(0,$.jsxs)(Le,{modal:!1,children:[(0,$.jsx)(Fe,{asChild:!0,children:(0,$.jsxs)(V,{className:`flex h-8 w-8 p-0 data-[state=open]:bg-muted`,variant:`ghost`,children:[(0,$.jsx)(et,{className:`h-4 w-4`}),(0,$.jsx)(`span`,{className:`sr-only`,children:j()})]})}),(0,$.jsxs)(Ie,{align:`end`,className:`w-44`,children:[(0,$.jsxs)(H,{onClick:()=>e(p(),t.original),children:[Ee(),(0,$.jsx)(tt,{className:`ml-auto h-4 w-4`})]}),(0,$.jsxs)(H,{onClick:()=>e(w(),t.original),children:[xe(),(0,$.jsx)(ft,{className:`ml-auto h-4 w-4`})]}),(0,$.jsxs)(H,{onClick:()=>e(b(),t.original),children:[b(),(0,$.jsx)(dt,{className:`ml-auto h-4 w-4`})]}),t.original.status===2&&!!t.original.notify_url&&(0,$.jsxs)(H,{onClick:()=>e(O(),t.original),children:[O(),(0,$.jsx)(nt,{className:`ml-auto h-4 w-4`})]})]})]})}]}function ht(e,t){return e===1?t?.trim()?ve():ke():N()}var gt=Me(`/_authenticated/orders/`);function _t({data:e,isLoading:t,onAction:n,onRefresh:r}){let[i,a]=(0,Q.useState)([]),[s,c]=(0,Q.useState)({}),{globalFilter:l,onGlobalFilterChange:u,columnFilters:ee,onColumnFiltersChange:d,pagination:f,onPaginationChange:p,ensurePageInRange:m}=lt({search:gt.useSearch(),navigate:gt.useNavigate(),pagination:{defaultPage:1,defaultPageSize:10},globalFilter:{enabled:!0,key:`orderNo`},columnFilters:[{columnId:`status`,searchKey:`status`,type:`array`},{columnId:`chain`,searchKey:`chain`,type:`array`}]}),h=Ge({data:e,columns:(0,Q.useMemo)(()=>mt(n),[n]),state:{sorting:i,columnVisibility:s,columnFilters:ee,globalFilter:l,pagination:f},onSortingChange:a,onColumnVisibilityChange:c,onColumnFiltersChange:d,onGlobalFilterChange:u,onPaginationChange:p,globalFilterFn:(e,t,n)=>{let r=String(n).toLowerCase();return String(e.original.id??``).toLowerCase().includes(r)||String(e.original.order_id??``).toLowerCase().includes(r)},getCoreRowModel:qe(),getFilteredRowModel:Ye(),getPaginationRowModel:Ve(),getSortedRowModel:He(),getFacetedRowModel:Be(),getFacetedUniqueValues:Ue()});(0,Q.useEffect)(()=>{m(h.getPageCount())},[h,m]);let g=[...new Set(e.map(e=>e.network).filter(Boolean))].map(e=>({label:e,value:e}));return(0,$.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,$.jsx)(Je,{filters:[{columnId:`status`,title:v(),options:[...Xe]},{columnId:`chain`,title:ge(),options:g}],onRefresh:r,searchPlaceholder:o(),table:h}),(0,$.jsx)(Ke,{className:`min-w-[1200px]`,emptyText:_e(),loading:t,table:h}),(0,$.jsx)(We,{className:`mt-auto`,table:h})]})}var vt={[b()]:b(),[O()]:O()};function yt(){return window.location.origin}function bt(){let e=t.useQuery(`get`,`/admin/api/v1/orders`),i=t.useMutation(`post`,`/admin/api/v1/orders/{trade_id}/close`),a=t.useMutation(`post`,`/admin/api/v1/orders/{trade_id}/mark-paid`),o=t.useMutation(`post`,`/admin/api/v1/orders/{trade_id}/resend-callback`),c=t.useMutation(`get`,`/admin/api/v1/orders/{trade_id}`),[l,u]=(0,Q.useState)(null),[f,g]=(0,Q.useState)(null),[_,v]=(0,Q.useState)(!1),[y,x]=(0,Q.useState)(null),[S,C]=(0,Q.useState)(!1),[T,E]=(0,Q.useState)(``),[D,k]=(0,Q.useState)(!1);async function A(){await r.invalidateQueries({queryKey:[`get`,`/admin/api/v1/orders`]})}async function j(){if(!l?.row.trade_id)return;let e={params:{path:{trade_id:l.row.trade_id}}};l.action===b()?await i.mutateAsync(e):l.action===O()&&await o.mutateAsync(e),X.success(de({action:vt[l.action]})),await A(),u(null)}async function M(){if(!(f?.trade_id&&T.trim())){X.error(ce());return}await a.mutateAsync({params:{path:{trade_id:f.trade_id}},body:{block_transaction_id:T.trim()}}),X.success(ue()),g(null),E(``),await A()}async function N(){k(!0);try{let e=ze(n),t=e?JSON.parse(e):``,r=await fetch(`${yt()}/admin/api/v1/orders/export`,{headers:t?{Authorization:`Bearer ${t}`}:{}});if(!r.ok)throw Error(`Export failed`);let i=await r.blob(),a=window.URL.createObjectURL(i),o=document.createElement(`a`);o.href=a,o.download=`orders-${Date.now()}.csv`,o.click(),window.URL.revokeObjectURL(a),X.success(Ce())}catch{X.error(h())}finally{k(!1)}}return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(rt,{fixed:!0}),(0,$.jsxs)(it,{className:`flex flex-1 flex-col gap-4 sm:gap-6`,children:[(0,$.jsx)(st,{actions:(0,$.jsxs)(V,{disabled:D,onClick:N,variant:`outline`,children:[(0,$.jsx)($e,{className:`mr-2 h-4 w-4`}),D?te():d()]}),description:se(),title:oe()}),(0,$.jsx)(_t,{data:e.data?.data?.list??[],isLoading:e.isLoading,onAction:async(e,t)=>{if(e===p()){C(!0),x((await c.mutateAsync({params:{path:{trade_id:t.trade_id}}})).data??t);return}if(e===b()||e===O()){v(!0);return}if(e===w()){g(t);return}u({action:e,row:t})},onRefresh:()=>e.refetch()})]}),l&&(0,$.jsx)(Pe,{confirmText:s(),desc:(0,$.jsx)(`span`,{children:je({action:l.action,id:String(l.row.trade_id??l.row.id??``)})}),handleConfirm:j,onOpenChange:()=>u(null),open:!0,title:ae({action:l.action})}),(0,$.jsx)(pt,{isLoading:c.isPending,onOpenChange:e=>{C(e),e||x(null)},open:S,order:y}),(0,$.jsx)(Y,{onOpenChange:e=>{e||(g(null),E(``))},open:!!f,children:(0,$.jsxs)(q,{children:[(0,$.jsxs)(K,{children:[(0,$.jsx)(J,{children:ne()}),(0,$.jsx)(G,{children:m({id:String(f?.trade_id??f?.id??``)})})]}),(0,$.jsxs)(`div`,{className:`space-y-2`,children:[(0,$.jsx)(Re,{htmlFor:`blockTransactionId`,children:ee()}),(0,$.jsx)(ot,{id:`blockTransactionId`,onChange:e=>E(e.target.value),placeholder:`0x... / transaction hash`,value:T})]}),(0,$.jsxs)(at,{children:[(0,$.jsx)(V,{onClick:()=>g(null),variant:`outline`,children:le()}),(0,$.jsx)(V,{disabled:a.isPending,onClick:M,children:a.isPending?ie():re()})]})]})}),(0,$.jsx)(ut,{onOpenChange:v,open:_})]})}var xt=bt;export{xt as component}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{a as t,c as n}from"./auth-store-De4Y7PFV.js";import{t as r}from"./router-Z0tUklFK.js";import{t as i}from"./react-CO2uhaBc.js";import{$s as a,Ac as o,Bc as s,Cc as c,Dc as l,Ec as u,Fc as ee,Gc as d,Gs as f,Hc as p,Ic as m,Jc as h,Js as g,Kc as te,Ks as _,Lc as ne,Mc as v,Nc as re,Oc as y,Pc as ie,Qc as b,Qs as x,Rc as ae,Sc as S,Tc as C,Uc as oe,Vc as w,Wc as se,Ws as T,Xc as ce,Xp as le,Xs as E,Yc as ue,Ys as D,Zc as O,Zs as k,_c as A,ac as j,bc as M,cc as N,ci as de,dc as fe,ec as pe,fc as me,gc as P,hc as F,ic as he,jc as ge,kc as _e,lc as ve,mc as ye,nc as be,oc as xe,pc as Se,qc as Ce,qs as we,rc as Te,sc as Ee,tc as De,tm as Oe,uc as ke,vc as Ae,wc as I,xc as L,yc as R,zc as je}from"./messages-BOatyqUm.js";import{r as Me}from"./route-wzPKSRj2.js";import{o as z,s as B}from"./search-provider-C-_FQI9C.js";import{i as Ne,t as V}from"./button-C_NDYaz8.js";import{t as Pe}from"./confirm-dialog-D1L-0EhT.js";import{a as H,l as Fe,r as Ie,t as Le}from"./dropdown-menu-DzCIpsuG.js";import{t as Re}from"./label-DNL0sHKL.js";import{t as ze}from"./cookies-BzZOQYPw.js";import{t as U}from"./createLucideIcon-Br0Bd5k2.js";import{a as W,c as Be,d as Ve,f as He,l as Ue,n as We,o as Ge,r as Ke,s as qe,t as Je,u as Ye}from"./data-table-1LQSBhN2.js";import{a as Xe,i as Ze,r as Qe}from"./epusdt-BvGYu9TV.js";import{t as $e}from"./download-fYUtNZ3R.js";import{t as et}from"./ellipsis-74ly4-Wm.js";import{t as tt}from"./eye-DAKGLydt.js";import{r as nt}from"./empty-state-CxE4wU3V.js";import{n as rt,t as it}from"./main-C1R3Hvq1.js";import{a as at,i as G,o as K,r as q,s as J,t as Y}from"./dialog-CZ-2RPb-.js";import{n as X}from"./dist-JOUh6qvR.js";import{t as ot}from"./input-8zzM34r5.js";import{t as st}from"./page-header-GTtyZFBB.js";import{t as ct}from"./badge-VJlwwTW5.js";import{t as lt}from"./use-table-url-state-DP0Y4QjR.js";import{t as Z}from"./long-text-DNqlDi0R.js";import{t as ut}from"./coming-soon-dialog-B34F88bO.js";var dt=U(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),ft=U(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]),Q=e(i(),1),$=Oe();function pt({open:e,onOpenChange:t,order:n,isLoading:r}){let i=[[`Trade ID`,n?.trade_id??`-`],[he(),n?.order_id??`-`],[Te(),n?.name??`-`],[be(),`${B(n?.amount)} ${n?.currency??``}`.trim()||`-`],[De(),`${B(n?.actual_amount,6)} ${n?.token??``}`.trim()||`-`],[pe(),n?.network??`-`],[a(),n?.receive_address??`-`],[x(),n?.notify_url??`-`],[k(),n?.redirect_url??`-`],[E(),n?.block_transaction_id??`-`],[D(),n?.parent_trade_id??`-`],[g(),z(n?.created_at)||`-`],[we(),z(n?.updated_at)||`-`]];return(0,$.jsx)(Y,{onOpenChange:t,open:e,children:(0,$.jsxs)(q,{className:`sm:max-w-3xl`,children:[(0,$.jsxs)(K,{children:[(0,$.jsx)(J,{children:_()}),(0,$.jsx)(G,{children:f()})]}),r?(0,$.jsx)(`div`,{className:`py-8 text-center text-muted-foreground text-sm`,children:T()}):(0,$.jsx)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:i.map(([e,t])=>(0,$.jsxs)(`div`,{className:`rounded-lg border p-3`,children:[(0,$.jsx)(`div`,{className:`mb-1 text-muted-foreground text-xs`,children:e}),(0,$.jsx)(`div`,{className:`break-all text-sm`,children:t})]},e))})]})})}function mt(e){return[{accessorFn:e=>String(e.status??1),id:`status`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:y()}),cell:({row:e})=>{let t=e.original.status??1;return(0,$.jsx)(ct,{className:Ze[t],children:Qe(t)})},filterFn:(e,t,n)=>n.includes(String(e.getValue(t))),meta:{label:y(),skeleton:`badge`}},{accessorKey:`trade_id`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:`Trade ID`}),cell:({row:e})=>(0,$.jsx)(Z,{className:`font-medium`,children:e.original.trade_id}),enableHiding:!1,meta:{label:`Trade ID`,skeleton:`id`}},{accessorKey:`order_id`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:l()}),cell:({row:e})=>(0,$.jsx)(Z,{className:`min-w-40`,children:e.original.order_id}),meta:{label:l(),skeleton:`id`}},{accessorKey:`name`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:u()}),cell:({row:e})=>e.original.name??`-`,meta:{label:u(),skeleton:`short`}},{accessorKey:`amount`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:C()}),cell:({row:e})=>`${B(e.original.amount)} ${e.original.currency||``}`,meta:{label:C(),skeleton:`amount`}},{accessorKey:`actual_amount`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:I()}),cell:({row:e})=>`${B(e.original.actual_amount,6)} ${e.original.token||``}`,meta:{label:I(),skeleton:`amount`}},{accessorKey:`network`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:c()}),id:`chain`,meta:{label:c(),skeleton:`short`}},{accessorKey:`receive_address`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:S()}),cell:({row:e})=>(0,$.jsx)(Z,{className:`min-w-36`,children:e.original.receive_address}),meta:{label:S(),skeleton:`long`}},{accessorKey:`created_at`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:L()}),cell:({row:e})=>(0,$.jsx)(`div`,{className:`min-w-32`,children:z(e.original.created_at)}),meta:{label:L(),skeleton:`date`}},{accessorKey:`updated_at`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:M()}),cell:({row:e})=>z(e.original.updated_at),meta:{label:M(),skeleton:`date`}},{accessorKey:`block_transaction_id`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:R()}),cell:({row:e})=>(0,$.jsx)(Z,{className:`min-w-40`,children:e.original.block_transaction_id??`-`}),meta:{label:R(),skeleton:`id`}},{accessorKey:`is_selected`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:Ae()}),cell:({row:e})=>e.original.is_selected?me():fe(),meta:{label:Ae(),skeleton:`badge`}},{accessorKey:`callback_confirm`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:A()}),cell:({row:e})=>ht(e.original.callback_confirm,e.original.parent_trade_id),meta:{label:A(),skeleton:`badge`}},{accessorKey:`callback_num`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:P()}),cell:({row:e})=>e.original.callback_num??0,meta:{label:P(),skeleton:`id`}},{accessorKey:`notify_url`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:F()}),cell:({row:e})=>(0,$.jsx)(Z,{className:`min-w-48`,children:e.original.notify_url??`-`}),meta:{label:F(),skeleton:`long`}},{accessorKey:`redirect_url`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:ye()}),cell:({row:e})=>(0,$.jsx)(Z,{className:`min-w-48`,children:e.original.redirect_url??`-`}),meta:{label:ye(),skeleton:`long`}},{accessorKey:`api_key_id`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:`API Key ID`}),cell:({row:e})=>e.original.api_key_id??`-`,meta:{label:`API Key ID`,skeleton:`id`}},{id:`actions`,enableHiding:!1,meta:{label:Se(),skeleton:`action`,sticky:`right`,className:Ne(`w-12`)},cell:({row:t})=>(0,$.jsxs)(Le,{modal:!1,children:[(0,$.jsx)(Fe,{asChild:!0,children:(0,$.jsxs)(V,{className:`flex h-8 w-8 p-0 data-[state=open]:bg-muted`,variant:`ghost`,children:[(0,$.jsx)(et,{className:`h-4 w-4`}),(0,$.jsx)(`span`,{className:`sr-only`,children:j()})]})}),(0,$.jsxs)(Ie,{align:`end`,className:`w-44`,children:[(0,$.jsxs)(H,{onClick:()=>e(p(),t.original),children:[Ee(),(0,$.jsx)(tt,{className:`ml-auto h-4 w-4`})]}),(0,$.jsxs)(H,{onClick:()=>e(w(),t.original),children:[xe(),(0,$.jsx)(ft,{className:`ml-auto h-4 w-4`})]}),(0,$.jsxs)(H,{onClick:()=>e(b(),t.original),children:[b(),(0,$.jsx)(dt,{className:`ml-auto h-4 w-4`})]}),t.original.status===2&&!!t.original.notify_url&&(0,$.jsxs)(H,{onClick:()=>e(O(),t.original),children:[O(),(0,$.jsx)(nt,{className:`ml-auto h-4 w-4`})]})]})]})}]}function ht(e,t){return e===1?t?.trim()?ve():ke():N()}var gt=Me(`/_authenticated/orders/`);function _t({data:e,isLoading:t,onAction:n,onRefresh:r}){let[i,a]=(0,Q.useState)([]),[s,c]=(0,Q.useState)({}),{globalFilter:l,onGlobalFilterChange:u,columnFilters:ee,onColumnFiltersChange:d,pagination:f,onPaginationChange:p,ensurePageInRange:m}=lt({search:gt.useSearch(),navigate:gt.useNavigate(),pagination:{defaultPage:1,defaultPageSize:10},globalFilter:{enabled:!0,key:`orderNo`},columnFilters:[{columnId:`status`,searchKey:`status`,type:`array`},{columnId:`chain`,searchKey:`chain`,type:`array`}]}),h=Ge({data:e,columns:(0,Q.useMemo)(()=>mt(n),[n]),state:{sorting:i,columnVisibility:s,columnFilters:ee,globalFilter:l,pagination:f},onSortingChange:a,onColumnVisibilityChange:c,onColumnFiltersChange:d,onGlobalFilterChange:u,onPaginationChange:p,globalFilterFn:(e,t,n)=>{let r=String(n).toLowerCase();return String(e.original.id??``).toLowerCase().includes(r)||String(e.original.order_id??``).toLowerCase().includes(r)},getCoreRowModel:qe(),getFilteredRowModel:Ye(),getPaginationRowModel:Ve(),getSortedRowModel:He(),getFacetedRowModel:Be(),getFacetedUniqueValues:Ue()});(0,Q.useEffect)(()=>{m(h.getPageCount())},[h,m]);let g=[...new Set(e.map(e=>e.network).filter(Boolean))].map(e=>({label:e,value:e}));return(0,$.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,$.jsx)(Je,{filters:[{columnId:`status`,title:v(),options:[...Xe]},{columnId:`chain`,title:ge(),options:g}],onRefresh:r,searchPlaceholder:o(),table:h}),(0,$.jsx)(Ke,{className:`min-w-[1200px]`,emptyText:_e(),loading:t,table:h}),(0,$.jsx)(We,{className:`mt-auto`,table:h})]})}var vt={[b()]:b(),[O()]:O()};function yt(){return window.location.origin}function bt(){let e=t.useQuery(`get`,`/admin/api/v1/orders`),i=t.useMutation(`post`,`/admin/api/v1/orders/{trade_id}/close`),a=t.useMutation(`post`,`/admin/api/v1/orders/{trade_id}/mark-paid`),o=t.useMutation(`post`,`/admin/api/v1/orders/{trade_id}/resend-callback`),c=t.useMutation(`get`,`/admin/api/v1/orders/{trade_id}`),[l,u]=(0,Q.useState)(null),[f,g]=(0,Q.useState)(null),[_,v]=(0,Q.useState)(!1),[y,x]=(0,Q.useState)(null),[S,C]=(0,Q.useState)(!1),[T,E]=(0,Q.useState)(``),[D,k]=(0,Q.useState)(!1);async function A(){await r.invalidateQueries({queryKey:[`get`,`/admin/api/v1/orders`]})}async function j(){if(!l?.row.trade_id)return;let e={params:{path:{trade_id:l.row.trade_id}}};l.action===b()?await i.mutateAsync(e):l.action===O()&&await o.mutateAsync(e),X.success(de({action:vt[l.action]})),await A(),u(null)}async function M(){if(!(f?.trade_id&&T.trim())){X.error(ce());return}await a.mutateAsync({params:{path:{trade_id:f.trade_id}},body:{block_transaction_id:T.trim()}}),X.success(ue()),g(null),E(``),await A()}async function N(){k(!0);try{let e=ze(n),t=e?JSON.parse(e):``,r=await fetch(`${yt()}/admin/api/v1/orders/export`,{headers:t?{Authorization:`Bearer ${t}`}:{}});if(!r.ok)throw Error(`Export failed`);let i=await r.blob(),a=window.URL.createObjectURL(i),o=document.createElement(`a`);o.href=a,o.download=`orders-${Date.now()}.csv`,o.click(),window.URL.revokeObjectURL(a),X.success(Ce())}catch{X.error(h())}finally{k(!1)}}return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(rt,{fixed:!0}),(0,$.jsxs)(it,{className:`flex flex-1 flex-col gap-4 sm:gap-6`,children:[(0,$.jsx)(st,{actions:(0,$.jsxs)(V,{disabled:D,onClick:N,variant:`outline`,children:[(0,$.jsx)($e,{className:`mr-2 h-4 w-4`}),D?te():d()]}),description:se(),title:oe()}),(0,$.jsx)(_t,{data:e.data?.data?.list??[],isLoading:e.isLoading,onAction:async(e,t)=>{if(e===p()){C(!0),x((await c.mutateAsync({params:{path:{trade_id:t.trade_id}}})).data??t);return}if(e===b()||e===O()){v(!0);return}if(e===w()){g(t);return}u({action:e,row:t})},onRefresh:()=>e.refetch()})]}),l&&(0,$.jsx)(Pe,{confirmText:s(),desc:(0,$.jsx)(`span`,{children:je({action:l.action,id:String(l.row.trade_id??l.row.id??``)})}),handleConfirm:j,onOpenChange:()=>u(null),open:!0,title:ae({action:l.action})}),(0,$.jsx)(pt,{isLoading:c.isPending,onOpenChange:e=>{C(e),e||x(null)},open:S,order:y}),(0,$.jsx)(Y,{onOpenChange:e=>{e||(g(null),E(``))},open:!!f,children:(0,$.jsxs)(q,{children:[(0,$.jsxs)(K,{children:[(0,$.jsx)(J,{children:ne()}),(0,$.jsx)(G,{children:m({id:String(f?.trade_id??f?.id??``)})})]}),(0,$.jsxs)(`div`,{className:`space-y-2`,children:[(0,$.jsx)(Re,{htmlFor:`blockTransactionId`,children:ee()}),(0,$.jsx)(ot,{id:`blockTransactionId`,onChange:e=>E(e.target.value),placeholder:`0x... / transaction hash`,value:T})]}),(0,$.jsxs)(at,{children:[(0,$.jsx)(V,{onClick:()=>g(null),variant:`outline`,children:le()}),(0,$.jsx)(V,{disabled:a.isPending,onClick:M,children:a.isPending?ie():re()})]})]})}),(0,$.jsx)(ut,{onOpenChange:v,open:_})]})}var xt=bt;export{xt as component}; \ No newline at end of file diff --git a/src/www/assets/router-eyRTkMwc.js b/src/www/assets/router-Z0tUklFK.js similarity index 97% rename from src/www/assets/router-eyRTkMwc.js rename to src/www/assets/router-Z0tUklFK.js index a0e58e0..f9d9603 100644 --- a/src/www/assets/router-eyRTkMwc.js +++ b/src/www/assets/router-Z0tUklFK.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/install-B-GE7uWS.js","assets/chunk-DECur_0Z.js","assets/form-KfFEakes.js","assets/button-C_NDYaz8.js","assets/clsx-D9aGYY3V.js","assets/messages-BOatyqUm.js","assets/react-CO2uhaBc.js","assets/label-DNL0sHKL.js","assets/dist-Cc8_LDAq.js","assets/zod-rwFXxHlg.js","assets/popover-NQZzcPDh.js","assets/dist-CsIb2aLK.js","assets/dist-DPPquN_M.js","assets/dist-D4X8zGEB.js","assets/dist-ZdRQQNeu.js","assets/dist-rcWP-8Cu.js","assets/es2015-DT8UeWzs.js","assets/dist-DvwKOQ8R.js","assets/auth-store-De4Y7PFV.js","assets/dist-JOUh6qvR.js","assets/with-selector-DBfssCrY.js","assets/cookies-BzZOQYPw.js","assets/link-DPnL8P5J.js","assets/ClientOnly-Bj5CESUC.js","assets/useStore-CupyIEEP.js","assets/useRouter-DtTm7XkK.js","assets/command-B_SlhXkX.js","assets/dist-iiotRAEO.js","assets/createLucideIcon-Br0Bd5k2.js","assets/dialog-CZ-2RPb-.js","assets/copy-to-clipboard-C1tj4a8X.js","assets/check-CHp0nSkR.js","assets/chevron-down-BB5h1CsX.js","assets/eye-off-B8hO0oST.js","assets/eye-DAKGLydt.js","assets/theme-switch-CHLQml_8.js","assets/dropdown-menu-DzCIpsuG.js","assets/dist-CHFjpVqk.js","assets/dist-BNFQuJTu.js","assets/dist-D0DoWChj.js","assets/useNavigate-7u4DX0Ho.js","assets/sun-JU8p4FoE.js","assets/theme-provider-BREWrHp_.js","assets/loader-circle-DpEz1fQv.js","assets/shield-check-MAPDL1u8.js","assets/triangle-alert-DB5v_9sS.js","assets/logo-agrtpj2n.js","assets/badge-VJlwwTW5.js","assets/card-DiF5YaRi.js","assets/input-8zzM34r5.js","assets/route-D1gzbhTf.js","assets/Match-DrG03Wse.js","assets/matchContext-BFCdcHzo.js","assets/redirect-DMNGvjzO.js","assets/checkout-model-CQ3aqlob.js","assets/route-GrVEK0V1.js","assets/search-provider-C-_FQI9C.js","assets/dist-CRowTfGU.js","assets/confirm-dialog-D1L-0EhT.js","assets/dist-C5heX0fx.js","assets/dist-BixeH3nX.js","assets/separator-CsUemQNs.js","assets/tooltip-xZuTTfnF.js","assets/dist-Dtn5c_cx.js","assets/skeleton-CmDjDV1O.js","assets/wallet-CtiawGS1.js","assets/font-provider-BPsIRWbb.js","assets/Matches-9qnXJNrS.js","assets/atom-DQpaPCwp.js","assets/chevrons-up-down-BPquKoYJ.js","assets/send-BNvceEpO.js","assets/route-CAiA_U_q.js","assets/auth-animation-context-CmPA3sF3.js","assets/dashboard-C_GaAVh0.js","assets/tabs-6Ep1KePr.js","assets/data-table-1LQSBhN2.js","assets/select-CzebumOF.js","assets/empty-state-CxE4wU3V.js","assets/table-9UOy2Vxt.js","assets/epusdt-BvGYu9TV.js","assets/main-C1R3Hvq1.js","assets/header-DVAsq5d6.js","assets/crypto-icon-DnliVYVs.js","assets/page-header-GTtyZFBB.js","assets/503-DqC0HW48.js","assets/maintenance-error-DeZhljU8.js","assets/500-Ch8AmacC.js","assets/general-error-BoAB2alm.js","assets/404-pq4P7jD8.js","assets/not-found-error-BvJzTnw0.js","assets/403-DfLmRqHM.js","assets/forbidden-CgQyYxDt.js","assets/401-CvFvdOr5.js","assets/unauthorized-error-CtrGmVOn.js","assets/sign-in-_ux3l1kN.js","assets/useSearch-Diln-KYh.js","assets/password-input-95hMTMdh.js","assets/route-C6USHQDN.js","assets/sidebar-nav-LZqaVZGH.js","assets/useRouterState-B2FPPjEe.js","assets/route-DvJeidrw.js","assets/route-lp7ScXTd.js","assets/settings-eRG1_Yuf.js","assets/lib-DDezYSnW.js","assets/rpc-cAFAt1WZ.js","assets/checkbox-CTHgcB3t.js","assets/switch-CgoJjvdz.js","assets/route-wzPKSRj2.js","assets/arrow-left-BpZwGREZ.js","assets/ellipsis-74ly4-Wm.js","assets/chains-store-DCzO87jZ.js","assets/trash-2-9I8lAjeE.js","assets/long-text-DNqlDi0R.js","assets/use-table-url-state-DP0Y4QjR.js","assets/payment-setup-BFIKIu1u.js","assets/labels-Cbc2zlmv.js","assets/orders-C2v2goOf.js","assets/download-fYUtNZ3R.js","assets/coming-soon-dialog-B34F88bO.js","assets/telescope-DU0wiTDw.js","assets/keys-DvE6Ll4y.js","assets/textarea-C8ejjLzk.js","assets/help-Bq6Uj7UY.js","assets/chains-D5PNpB55.js","assets/addresses-CNbxs6Fb.js","assets/telegram-Br_DijOI.js","assets/system-CzKDOsCg.js","assets/pay-BNu4n_oI.js","assets/preload-helper-DoS0eHac.js","assets/arrow-left-right-CcCrkQiR.js","assets/okpay-D5pTA_4W.js","assets/notifications-xdKOW8nn.js","assets/radio-group-D2rceepu.js","assets/show-submitted-data-BqZb-_Pf.js","assets/epay-BPdlNSqh.js","assets/display-CqGwMVHS.js","assets/appearance-Cl8fvRSv.js","assets/integrations-Clnk2I57.js","assets/password-DElKXGVw.js"])))=>i.map(i=>d[i]); -import{r as e}from"./chunk-DECur_0Z.js";import{A as t,C as n,D as r,E as i,O as a,S as o,T as s,_ as c,b as l,g as u,h as d,k as f,t as p,v as m,w as h,x as g,y as _}from"./auth-store-De4Y7PFV.js";import{t as v}from"./react-CO2uhaBc.js";import{tm as y}from"./messages-BOatyqUm.js";import{n as b}from"./redirect-DMNGvjzO.js";import{n as x,o as S}from"./Match-DrG03Wse.js";import{t as C}from"./route-wzPKSRj2.js";import{n as w,t as T}from"./atom-DQpaPCwp.js";import{n as E,t as D}from"./lazyRouteComponent-JF8ipq5d.js";import{t as O}from"./useRouterState-B2FPPjEe.js";import{n as ee}from"./wallet-CtiawGS1.js";import{t as k}from"./preload-helper-DoS0eHac.js";import{t as A}from"./createLucideIcon-Br0Bd5k2.js";import{a as te,n as j,t as M}from"./epusdt-BvGYu9TV.js";import{t as ne}from"./loader-circle-DpEz1fQv.js";import{t as re}from"./triangle-alert-DB5v_9sS.js";import{t as ie}from"./dist-JOUh6qvR.js";import{t as ae}from"./general-error-BoAB2alm.js";import{t as oe}from"./not-found-error-BvJzTnw0.js";import{c as se,s as ce,t as N}from"./zod-rwFXxHlg.js";import{t as le}from"./_trade_id-DIf2n6tl.js";import{t as ue}from"./_error-CtV7sHbI.js";var de=class extends t{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new d({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=P(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=P(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=P(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=P(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){_.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>n(t,e))}findAll(e={}){return this.getAll().filter(t=>n(e,t))}notify(e){_.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return _.batch(()=>Promise.all(e.map(e=>e.continue().catch(s))))}};function P(e){return e.options.scope?.id}var fe=class extends t{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??o(r,t),a=this.get(i);return a||(a=new c({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){_.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>h(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>h(e,t)):t}notify(e){_.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){_.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){_.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},F=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new fe,this.#t=e.mutationCache||new de,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=f.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=m.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),i=n.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(r(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=l(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return _.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;_.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return _.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=_.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(s).catch(s)}invalidateQueries(e,t={}){return _.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=_.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(s)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(s)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(r(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(s).catch(s)}fetchInfiniteQuery(e){return e.behavior=u(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(s).catch(s)}ensureInfiniteQueryData(e){return e.behavior=u(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return m.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(g(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{i(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(g(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{i(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=o(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===a&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},I=e=>({createMutableStore:w,createReadonlyStore:w,batch:T}),L=e=>new R(e),R=class extends S{constructor(e){super(e,I)}},z=e(v(),1),B=()=>{};function V(e,t,n){let r=(0,z.useRef)(B);(0,z.useEffect)(()=>{r.current=e}),(0,z.useEffect)(()=>{},[n]),(0,z.useEffect)(()=>{if(t===null||t===!1)return;let e=setInterval(()=>r.current(),t);return()=>clearInterval(e)},[t])}function H(e,t){return Math.random()*(t-e+1)+e}function U(e,t){return Math.floor(H(e,t))}var pe=(0,z.forwardRef)(({progress:e,height:t=2,className:n=``,color:r=`red`,background:i=`transparent`,onLoaderFinished:a,transitionTime:o=300,loaderSpeed:s=500,waitingTime:c=1e3,shadow:l=!0,containerStyle:u={},style:d={},shadowStyle:f={},containerClassName:p=``},m)=>{let h=(0,z.useRef)(!1),[g,_]=(0,z.useState)(0),v=(0,z.useRef)({active:!1,refreshRate:1e3}),[y,b]=(0,z.useState)({active:!1,value:60}),x={height:`100%`,background:r,transition:`all ${s}ms ease`,width:`0%`},S={position:`fixed`,top:0,left:0,height:t,background:i,zIndex:99999999999,width:`100%`},C={boxShadow:`0 0 10px ${r}, 0 0 10px ${r}`,width:`5%`,opacity:1,position:`absolute`,height:`100%`,transition:`all ${s}ms ease`,transform:`rotate(2deg) translate(0px, -2px)`,left:`-10rem`},[w,T]=(0,z.useState)(x),[E,D]=(0,z.useState)(C);(0,z.useEffect)(()=>(h.current=!0,()=>{h.current=!1}),[]),(0,z.useImperativeHandle)(m,()=>({continuousStart(t,n=1e3){if(y.active)return;if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}let r=t||U(10,20);v.current={active:!0,refreshRate:n},_(r),O(r)},staticStart(t){if(v.current.active)return;if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}let n=t||U(30,60);b({active:!0,value:n}),_(n),O(n)},start(t=`continuous`,n,r){if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}t===`continuous`?v.current={active:!0,refreshRate:r||1e3}:b({active:!0,value:n||20});let i=U(10,20),a=U(30,70),o=n||(t===`continuous`?i:a);_(o),O(o)},complete(){if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}_(100),O(100)},increase(t){if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}_(e=>{let n=e+t;return O(n),n})},decrease(t){if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}_(e=>{let n=e-t;return O(n),n})},getProgress(){return g}})),(0,z.useEffect)(()=>{T({...w,background:r}),D({...E,boxShadow:`0 0 10px ${r}, 0 0 5px ${r}`})},[r]),(0,z.useEffect)(()=>{if(m){if(m&&e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar! Please use only props or only ref methods! Ref methods will override props if "ref" property is available.`);return}O(g)}else e&&O(e)},[e]);let O=e=>{e>=100?(T({...w,width:`100%`}),l&&D({...E,left:e-10+`%`}),setTimeout(()=>{h.current&&(T({...w,opacity:0,width:`100%`,transition:`all ${o}ms ease-out`,color:r}),setTimeout(()=>{h.current&&(v.current.active&&(v.current={...v.current,active:!1},_(0),O(0)),y.active&&(b({...y,active:!1}),_(0),O(0)),a&&a(),_(0),O(0))},o))},c)):(T(t=>({...t,width:e+`%`,opacity:1,transition:e>0?`all ${s}ms ease`:``})),l&&D({...E,left:e-5.5+`%`,transition:e>0?`all ${s}ms ease`:``}))};return V(()=>{let e=H(Math.min(10,(100-g)/5),Math.min(20,(100-g)/3));g+e<95&&(_(g+e),O(g+e))},v.current.active?v.current.refreshRate:null),z.createElement(`div`,{className:p,style:{...S,...u}},z.createElement(`div`,{className:n,style:{...w,...d}},l?z.createElement(`div`,{style:{...E,...f}}):null))});z.createContext(void 0);var W=y();function me(){let e=(0,z.useRef)(null),t=O();return(0,z.useEffect)(()=>{t.status===`pending`?e.current?.continuousStart():e.current?.complete()},[t.status]),(0,W.jsx)(pe,{color:`var(--primary)`,height:2,ref:e,shadow:!0})}var he=A(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),ge=A(`octagon-x`,[[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z`,key:`2d38gg`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),_e=(e,t,n,r,i,a,o,s)=>{let c=document.documentElement,l=[`light`,`dark`];function u(t){(Array.isArray(e)?e:[e]).forEach(e=>{let n=e===`class`,r=n&&a?i.map(e=>a[e]||e):i;n?(c.classList.remove(...r),c.classList.add(a&&a[t]?a[t]:t)):c.setAttribute(e,t)}),d(t)}function d(e){s&&l.includes(e)&&(c.style.colorScheme=e)}function f(){return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}if(r)u(r);else try{let e=localStorage.getItem(t)||n;u(o&&e===`system`?f():e)}catch{}},ve=z.createContext(void 0),ye={setTheme:e=>{},themes:[]},be=()=>z.useContext(ve)??ye;z.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:a,value:o,themes:s,nonce:c,scriptProps:l})=>{let u=JSON.stringify([n,t,a,e,s,o,r,i]).slice(1,-1);return z.createElement(`script`,{...l,suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(${_e.toString()})(${u})`}})});var xe=({...e})=>{let{theme:t=`system`}=be();return(0,W.jsx)(ie,{richColors:!0,className:`toaster group`,icons:{success:(0,W.jsx)(ee,{className:`size-4`}),info:(0,W.jsx)(he,{className:`size-4`}),warning:(0,W.jsx)(re,{className:`size-4`}),error:(0,W.jsx)(ge,{className:`size-4`}),loading:(0,W.jsx)(ne,{className:`size-4 animate-spin`})},style:{"--normal-bg":`var(--popover)`,"--normal-text":`var(--popover-foreground)`,"--normal-border":`var(--border)`,"--border-radius":`var(--radius)`},theme:t,...e})};function Se(){return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(me,{}),(0,W.jsx)(x,{}),(0,W.jsx)(xe,{duration:5e3,position:`top-right`})]})}var G=C()({component:Se,notFoundComponent:oe,errorComponent:ae}),Ce=E(`/install`)({component:D(()=>k(()=>import(`./install-B-GE7uWS.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49])),`component`)}),we=E(`/cashier`)({component:D(()=>k(()=>import(`./route-D1gzbhTf.js`),__vite__mapDeps([50,1,3,4,5,6,51,23,24,20,52,25,53,18,19,8,21,28,35,36,11,12,13,14,37,38,15,16,17,39,31,40,41,42,54])),`component`)}),Te=E(`/_authenticated`)({beforeLoad:({location:e})=>{if(!p.state.accessToken)throw b({to:`/sign-in`,search:{redirect:e.href},replace:!0})},component:D(()=>k(()=>import(`./route-GrVEK0V1.js`),__vite__mapDeps([55,1,12,5,6,56,57,58,3,4,27,15,13,8,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,36,31,51,23,52,53,67,68,22,69,70,47])),`component`)}),Ee=E(`/(auth)`)({component:D(()=>k(()=>import(`./route-CAiA_U_q.js`),__vite__mapDeps([71,1,3,4,5,6,51,23,24,20,52,25,53,35,36,11,12,13,8,14,37,38,15,16,17,39,31,28,40,41,42,21,46,72])),`component`)}),De=E(`/`)({beforeLoad:()=>{throw b({to:p.state.accessToken?`/dashboard`:`/sign-in`,replace:!0})},component:D(()=>k(()=>import(`./routes-D7HD5c-e.js`),[]),`component`)}),Oe=E(`/_authenticated/dashboard`)({component:D(()=>k(()=>import(`./dashboard-C_GaAVh0.js`),__vite__mapDeps([73,1,56,57,12,5,6,58,3,4,27,15,13,8,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,10,74,75,36,31,76,32,69,33,77,47,78,79,80,22,23,35,81,45,82,83,48])),`component`)}),ke=E(`/(errors)/503`)({component:D(()=>k(()=>import(`./503-DqC0HW48.js`),__vite__mapDeps([84,85,3,1,4,5,6])),`component`)}),Ae=E(`/(errors)/500`)({component:D(()=>k(()=>import(`./500-Ch8AmacC.js`),__vite__mapDeps([86,87,3,1,4,5,6,25,40])),`component`)}),je=E(`/(errors)/404`)({component:D(()=>k(()=>import(`./404-pq4P7jD8.js`),__vite__mapDeps([88,89,3,1,4,5,6,25,40])),`component`)}),Me=E(`/(errors)/403`)({component:D(()=>k(()=>import(`./403-DfLmRqHM.js`),__vite__mapDeps([90,91,3,1,4,5,6,25,40])),`component`)}),Ne=E(`/(errors)/401`)({component:D(()=>k(()=>import(`./401-CvFvdOr5.js`),__vite__mapDeps([92,93,3,1,4,5,6,25,40])),`component`)}),Pe=()=>k(()=>import(`./sign-in-_ux3l1kN.js`),__vite__mapDeps([94,1,2,3,4,5,6,7,8,9,58,12,27,15,13,16,17,18,19,20,21,95,52,25,24,40,28,43,96,33,34,49,72])),Fe=ce({redirect:se().optional()}),Ie=E(`/(auth)/sign-in`)({component:D(Pe,`component`),validateSearch:Fe}),Le=E(`/_authenticated/settings`)({component:D(()=>k(()=>import(`./route-C6USHQDN.js`),__vite__mapDeps([97,56,1,57,12,5,6,58,3,4,27,15,13,8,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,51,23,52,53,80,36,31,22,35,81,83,98,76,32,99])),`component`)}),Re=E(`/_authenticated/payment-setup`)({component:D(()=>k(()=>import(`./route-DvJeidrw.js`),__vite__mapDeps([100,56,1,57,12,5,6,58,3,4,27,15,13,8,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,51,23,52,53,80,36,31,22,35,81,83,98,76,32,99])),`component`)}),ze=E(`/_authenticated/account`)({component:D(()=>k(()=>import(`./route-lp7ScXTd.js`),__vite__mapDeps([101,56,1,57,12,5,6,58,3,4,27,15,13,8,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,51,23,52,53,80,36,31,22,35,81,83,98,76,32,99])),`component`)}),Be=E(`/_authenticated/settings/`)({component:D(()=>k(()=>import(`./settings-eRG1_Yuf.js`),__vite__mapDeps([102,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,83,61,49,103,18,19,20,21])),`component`)}),Ve=()=>k(()=>import(`./rpc-cAFAt1WZ.js`),__vite__mapDeps([104,1,2,3,4,5,6,7,8,9,56,57,12,58,27,15,13,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,105,31,36,76,32,106,107,23,22,95,52,53,75,10,69,33,77,47,78,108,109,80,35,81,110,111,112,83,113])),He=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10),enabled:N.array(N.enum(j.map(e=>e.value))).optional().catch([]),type:N.array(N.string()).optional().catch([]),status:N.array(N.enum([`ok`,`down`,`unknown`])).optional().catch([]),keyword:N.string().optional().catch(``)}),Ue=E(`/_authenticated/rpc/`)({validateSearch:He,component:D(Ve,`component`)}),We=()=>k(()=>import(`./payment-setup-BFIKIu1u.js`),__vite__mapDeps([114,1,3,4,5,6,18,19,8,20,21,107,23,24,22,25,95,52,40,53,75,36,11,12,13,14,37,38,15,16,17,39,31,28,10,76,57,60,63,32,61,62,26,27,29,64,69,33,77,47,49,78,115,82,113])),Ge=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10),status:N.enum([`enabled`,`disabled`]).array().optional().catch([]),chain:N.array(N.string()).optional().catch([]),keyword:N.string().optional().catch(``)}),Ke=E(`/_authenticated/payment-setup/`)({validateSearch:Ge,component:D(We,`component`)}),qe=()=>k(()=>import(`./orders-C2v2goOf.js`),__vite__mapDeps([116,1,58,12,5,6,3,4,27,15,13,8,16,17,56,57,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,36,31,7,107,23,22,95,52,53,75,10,76,32,69,33,77,47,78,79,117,109,34,80,35,81,118,119,112,83,113])),Je=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10),status:N.array(N.enum(te.map(e=>e.value))).optional().catch([]),chain:N.array(N.string()).optional().catch([]),orderNo:N.string().optional().catch(``)}),Ye=E(`/_authenticated/orders/`)({validateSearch:Je,component:D(qe,`component`)}),Xe=()=>k(()=>import(`./keys-DvE6Ll4y.js`),__vite__mapDeps([120,1,2,3,4,5,6,7,8,9,58,12,27,15,13,16,17,56,57,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,76,31,32,106,107,23,22,95,52,53,30,33,34,77,80,36,35,81,111,83,47,121])),Ze=N.object({type:N.enum([`all`,`enabled`,`disabled`]).optional().catch(void 0),filter:N.string().optional().catch(``),sort:N.enum([`asc`,`desc`]).optional().catch(void 0)}),Qe=E(`/_authenticated/keys/`)({validateSearch:Ze,component:D(Xe,`component`)}),$e=E(`/_authenticated/help/`)({component:D(()=>k(()=>import(`./help-Bq6Uj7UY.js`),__vite__mapDeps([122,119,28,1,6,5])),`component`)}),et=()=>k(()=>import(`./chains-D5PNpB55.js`),__vite__mapDeps([123,1,2,3,4,5,6,7,8,9,56,57,12,58,27,15,13,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,105,31,36,76,32,106,75,10,69,33,77,47,78,108,109,80,22,23,35,81,110,111,118,119,83])),tt=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10),status:N.array(N.enum(j.map(e=>e.value))).optional().catch([]),keyword:N.string().optional().catch(``)}),nt=E(`/_authenticated/chains/`)({validateSearch:tt,component:D(et,`component`)}),rt=()=>k(()=>import(`./addresses-CNbxs6Fb.js`),__vite__mapDeps([124,1,2,3,4,5,6,7,8,9,58,12,27,15,13,16,17,56,57,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,36,31,76,32,106,107,23,22,95,52,53,75,10,69,33,77,47,78,79,117,109,34,80,35,81,110,111,112,83,121,113])),it=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10),status:N.array(N.enum(M.map(e=>e.value))).optional().catch([]),chain:N.array(N.string()).optional().catch([]),address:N.string().optional().catch(``)}),at=E(`/_authenticated/addresses/`)({validateSearch:it,component:D(rt,`component`)}),ot=E(`/_authenticated/account/`)({beforeLoad:()=>{throw b({to:`/account/password`,replace:!0})}}),st=E(`/_authenticated/settings/telegram`)({component:D(()=>k(()=>import(`./telegram-Br_DijOI.js`),__vite__mapDeps([125,1,2,3,4,5,6,7,8,9,106,12,60,14,83,61,49,103,18,19,20,21])),`component`)}),ct=E(`/_authenticated/settings/system`)({component:D(()=>k(()=>import(`./system-CzKDOsCg.js`),__vite__mapDeps([126,1,2,3,4,5,6,7,8,9,76,11,12,13,14,57,37,38,15,16,60,63,28,31,32,83,61,103,18,19,20,21])),`component`)}),lt=E(`/_authenticated/settings/pay`)({component:D(()=>k(()=>import(`./pay-BNu4n_oI.js`),__vite__mapDeps([127,1,128,2,3,4,5,6,7,8,9,129,28,83,61,49,78,103,18,19,20,21])),`component`)}),ut=E(`/_authenticated/settings/okpay`)({component:D(()=>k(()=>import(`./okpay-D5pTA_4W.js`),__vite__mapDeps([130,1,2,3,4,5,6,7,8,9,106,12,60,14,96,33,28,34,49,83,61,103,18,19,20,21])),`component`)}),dt=E(`/_authenticated/settings/notifications`)({component:D(()=>k(()=>import(`./notifications-xdKOW8nn.js`),__vite__mapDeps([131,2,1,3,4,5,6,7,8,9,105,12,17,60,14,31,28,106,22,23,24,20,25,132,59,38,39,37,13,83,61,133,19])),`component`)}),ft=E(`/_authenticated/settings/epay`)({component:D(()=>k(()=>import(`./epay-BPdlNSqh.js`),__vite__mapDeps([134,1,2,3,4,5,6,7,8,9,76,11,12,13,14,57,37,38,15,16,60,63,28,31,32,18,19,20,21,115,82,83,61,49,103])),`component`)}),pt=E(`/_authenticated/settings/display`)({component:D(()=>k(()=>import(`./display-CqGwMVHS.js`),__vite__mapDeps([135,2,1,3,4,5,6,7,8,9,105,12,17,60,14,31,28,83,61,133,19])),`component`)}),mt=E(`/_authenticated/settings/appearance`)({component:D(()=>k(()=>import(`./appearance-Cl8fvRSv.js`),__vite__mapDeps([136,2,1,3,4,5,6,7,8,9,32,28,132,59,12,38,17,39,37,13,60,14,83,61,66,21,42,133,19])),`component`)}),ht=()=>k(()=>import(`./integrations-Clnk2I57.js`),__vite__mapDeps([137,1,107,23,24,6,20,5,22,8,3,4,25,95,52,40,53,75,36,11,12,13,14,37,38,15,16,17,39,31,28,10,76,57,60,63,32,61,62,26,27,29,64,69,33,77,47,49,78,113])),gt=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10)}),_t=E(`/_authenticated/payment-setup/integrations`)({validateSearch:gt,component:D(ht,`component`)}),vt=E(`/_authenticated/account/password`)({component:D(()=>k(()=>import(`./password-DElKXGVw.js`),__vite__mapDeps([138,2,1,3,4,5,6,7,8,9,18,19,20,21,96,33,28,34,49,83,61])),`component`)}),yt=Ce.update({id:`/install`,path:`/install`,getParentRoute:()=>G}),K=we.update({id:`/cashier`,path:`/cashier`,getParentRoute:()=>G}),q=Te.update({id:`/_authenticated`,getParentRoute:()=>G}),J=Ee.update({id:`/(auth)`,getParentRoute:()=>G}),bt=De.update({id:`/`,path:`/`,getParentRoute:()=>G}),xt=Oe.update({id:`/dashboard`,path:`/dashboard`,getParentRoute:()=>q}),St=ke.update({id:`/(errors)/503`,path:`/503`,getParentRoute:()=>G}),Ct=Ae.update({id:`/(errors)/500`,path:`/500`,getParentRoute:()=>G}),wt=je.update({id:`/(errors)/404`,path:`/404`,getParentRoute:()=>G}),Tt=Me.update({id:`/(errors)/403`,path:`/403`,getParentRoute:()=>G}),Et=Ne.update({id:`/(errors)/401`,path:`/401`,getParentRoute:()=>G}),Dt=Ie.update({id:`/sign-in`,path:`/sign-in`,getParentRoute:()=>J}),Y=Le.update({id:`/settings`,path:`/settings`,getParentRoute:()=>q}),X=Re.update({id:`/payment-setup`,path:`/payment-setup`,getParentRoute:()=>q}),Z=ze.update({id:`/account`,path:`/account`,getParentRoute:()=>q}),Ot=le.update({id:`/$trade_id/`,path:`/$trade_id/`,getParentRoute:()=>K}),kt=Be.update({id:`/`,path:`/`,getParentRoute:()=>Y}),At=Ue.update({id:`/rpc/`,path:`/rpc/`,getParentRoute:()=>q}),jt=Ke.update({id:`/`,path:`/`,getParentRoute:()=>X}),Mt=Ye.update({id:`/orders/`,path:`/orders/`,getParentRoute:()=>q}),Nt=Qe.update({id:`/keys/`,path:`/keys/`,getParentRoute:()=>q}),Pt=$e.update({id:`/help/`,path:`/help/`,getParentRoute:()=>q}),Ft=nt.update({id:`/chains/`,path:`/chains/`,getParentRoute:()=>q}),It=at.update({id:`/addresses/`,path:`/addresses/`,getParentRoute:()=>q}),Lt=ot.update({id:`/`,path:`/`,getParentRoute:()=>Z}),Rt=st.update({id:`/telegram`,path:`/telegram`,getParentRoute:()=>Y}),zt=ct.update({id:`/system`,path:`/system`,getParentRoute:()=>Y}),Bt=lt.update({id:`/pay`,path:`/pay`,getParentRoute:()=>Y}),Vt=ut.update({id:`/okpay`,path:`/okpay`,getParentRoute:()=>Y}),Ht=dt.update({id:`/notifications`,path:`/notifications`,getParentRoute:()=>Y}),Ut=ft.update({id:`/epay`,path:`/epay`,getParentRoute:()=>Y}),Wt=pt.update({id:`/display`,path:`/display`,getParentRoute:()=>Y}),Gt=mt.update({id:`/appearance`,path:`/appearance`,getParentRoute:()=>Y}),Kt=_t.update({id:`/integrations`,path:`/integrations`,getParentRoute:()=>X}),qt=ue.update({id:`/errors/$error`,path:`/errors/$error`,getParentRoute:()=>q}),Jt=vt.update({id:`/password`,path:`/password`,getParentRoute:()=>Z}),Q={authSignInRoute:Dt},Yt=J._addFileChildren(Q),Xt={AuthenticatedAccountPasswordRoute:Jt,AuthenticatedAccountIndexRoute:Lt},Zt=Z._addFileChildren(Xt),Qt={AuthenticatedPaymentSetupIntegrationsRoute:Kt,AuthenticatedPaymentSetupIndexRoute:jt},$t=X._addFileChildren(Qt),en={AuthenticatedSettingsAppearanceRoute:Gt,AuthenticatedSettingsDisplayRoute:Wt,AuthenticatedSettingsEpayRoute:Ut,AuthenticatedSettingsNotificationsRoute:Ht,AuthenticatedSettingsOkpayRoute:Vt,AuthenticatedSettingsPayRoute:Bt,AuthenticatedSettingsSystemRoute:zt,AuthenticatedSettingsTelegramRoute:Rt,AuthenticatedSettingsIndexRoute:kt},tn={AuthenticatedAccountRouteRoute:Zt,AuthenticatedPaymentSetupRouteRoute:$t,AuthenticatedSettingsRouteRoute:Y._addFileChildren(en),AuthenticatedDashboardRoute:xt,AuthenticatedErrorsErrorRoute:qt,AuthenticatedAddressesIndexRoute:It,AuthenticatedChainsIndexRoute:Ft,AuthenticatedHelpIndexRoute:Pt,AuthenticatedKeysIndexRoute:Nt,AuthenticatedOrdersIndexRoute:Mt,AuthenticatedRpcIndexRoute:At},nn=q._addFileChildren(tn),rn={CashierTrade_idIndexRoute:Ot},an={IndexRoute:bt,authRouteRoute:Yt,AuthenticatedRouteRoute:nn,CashierRouteRoute:K._addFileChildren(rn),InstallRoute:yt,errors401Route:Et,errors403Route:Tt,errors404Route:wt,errors500Route:Ct,errors503Route:St},on=G._addFileChildren(an)._addFileTypes(),$=new F({defaultOptions:{queries:{retry:(e,t)=>{if(e>3)return!1;if(typeof t==`object`&&t&&`status`in t){let e=t.status;if(e===401||e===403)return!1}return!0},refetchOnWindowFocus:!0,staleTime:10*1e3}}}),sn=L({routeTree:on,context:{queryClient:$},scrollRestoration:!0,defaultPreload:`intent`,defaultPreloadStaleTime:0});export{sn as n,$ as t}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/install-_AmBcHKu.js","assets/chunk-DECur_0Z.js","assets/form-KfFEakes.js","assets/button-C_NDYaz8.js","assets/clsx-D9aGYY3V.js","assets/messages-BOatyqUm.js","assets/react-CO2uhaBc.js","assets/label-DNL0sHKL.js","assets/dist-Cc8_LDAq.js","assets/zod-rwFXxHlg.js","assets/popover-NQZzcPDh.js","assets/dist-CsIb2aLK.js","assets/dist-DPPquN_M.js","assets/dist-D4X8zGEB.js","assets/dist-ZdRQQNeu.js","assets/dist-rcWP-8Cu.js","assets/es2015-DT8UeWzs.js","assets/dist-DvwKOQ8R.js","assets/auth-store-De4Y7PFV.js","assets/dist-JOUh6qvR.js","assets/with-selector-DBfssCrY.js","assets/cookies-BzZOQYPw.js","assets/link-DPnL8P5J.js","assets/ClientOnly-Bj5CESUC.js","assets/useStore-CupyIEEP.js","assets/useRouter-DtTm7XkK.js","assets/command-B_SlhXkX.js","assets/dist-iiotRAEO.js","assets/createLucideIcon-Br0Bd5k2.js","assets/dialog-CZ-2RPb-.js","assets/copy-to-clipboard-C1tj4a8X.js","assets/check-CHp0nSkR.js","assets/chevron-down-BB5h1CsX.js","assets/eye-off-B8hO0oST.js","assets/eye-DAKGLydt.js","assets/theme-switch-CHLQml_8.js","assets/dropdown-menu-DzCIpsuG.js","assets/dist-CHFjpVqk.js","assets/dist-BNFQuJTu.js","assets/dist-D0DoWChj.js","assets/useNavigate-7u4DX0Ho.js","assets/sun-JU8p4FoE.js","assets/theme-provider-BREWrHp_.js","assets/loader-circle-DpEz1fQv.js","assets/shield-check-MAPDL1u8.js","assets/triangle-alert-DB5v_9sS.js","assets/logo-agrtpj2n.js","assets/badge-VJlwwTW5.js","assets/card-DiF5YaRi.js","assets/input-8zzM34r5.js","assets/route-D1gzbhTf.js","assets/Match-DrG03Wse.js","assets/matchContext-BFCdcHzo.js","assets/redirect-DMNGvjzO.js","assets/checkout-model-CQ3aqlob.js","assets/route-GrVEK0V1.js","assets/search-provider-C-_FQI9C.js","assets/dist-CRowTfGU.js","assets/confirm-dialog-D1L-0EhT.js","assets/dist-C5heX0fx.js","assets/dist-BixeH3nX.js","assets/separator-CsUemQNs.js","assets/tooltip-xZuTTfnF.js","assets/dist-Dtn5c_cx.js","assets/skeleton-CmDjDV1O.js","assets/wallet-CtiawGS1.js","assets/font-provider-BPsIRWbb.js","assets/Matches-9qnXJNrS.js","assets/atom-DQpaPCwp.js","assets/chevrons-up-down-BPquKoYJ.js","assets/send-BNvceEpO.js","assets/route-CAiA_U_q.js","assets/auth-animation-context-CmPA3sF3.js","assets/dashboard-C_GaAVh0.js","assets/tabs-6Ep1KePr.js","assets/data-table-1LQSBhN2.js","assets/select-CzebumOF.js","assets/empty-state-CxE4wU3V.js","assets/table-9UOy2Vxt.js","assets/epusdt-BvGYu9TV.js","assets/main-C1R3Hvq1.js","assets/header-DVAsq5d6.js","assets/crypto-icon-DnliVYVs.js","assets/page-header-GTtyZFBB.js","assets/503-DqC0HW48.js","assets/maintenance-error-DeZhljU8.js","assets/500-Ch8AmacC.js","assets/general-error-BoAB2alm.js","assets/404-pq4P7jD8.js","assets/not-found-error-BvJzTnw0.js","assets/403-DfLmRqHM.js","assets/forbidden-CgQyYxDt.js","assets/401-CvFvdOr5.js","assets/unauthorized-error-CtrGmVOn.js","assets/sign-in-_ux3l1kN.js","assets/useSearch-Diln-KYh.js","assets/password-input-95hMTMdh.js","assets/route-C6USHQDN.js","assets/sidebar-nav-LZqaVZGH.js","assets/useRouterState-B2FPPjEe.js","assets/route-DvJeidrw.js","assets/route-lp7ScXTd.js","assets/settings-eRG1_Yuf.js","assets/lib-DDezYSnW.js","assets/rpc-D7fjJcmI.js","assets/checkbox-CTHgcB3t.js","assets/switch-CgoJjvdz.js","assets/route-wzPKSRj2.js","assets/arrow-left-BpZwGREZ.js","assets/ellipsis-74ly4-Wm.js","assets/chains-store-DCzO87jZ.js","assets/trash-2-9I8lAjeE.js","assets/long-text-DNqlDi0R.js","assets/use-table-url-state-DP0Y4QjR.js","assets/payment-setup-BFIKIu1u.js","assets/labels-Cbc2zlmv.js","assets/orders-oloW11KP.js","assets/download-fYUtNZ3R.js","assets/coming-soon-dialog-B34F88bO.js","assets/telescope-DU0wiTDw.js","assets/keys-D0eVvlbn.js","assets/textarea-C8ejjLzk.js","assets/help-Bq6Uj7UY.js","assets/chains-BMgOL_QE.js","assets/addresses-lQocmp_u.js","assets/telegram-Br_DijOI.js","assets/system-CzKDOsCg.js","assets/pay-BNu4n_oI.js","assets/preload-helper-DoS0eHac.js","assets/arrow-left-right-CcCrkQiR.js","assets/okpay-D5pTA_4W.js","assets/notifications-xdKOW8nn.js","assets/radio-group-D2rceepu.js","assets/show-submitted-data-BqZb-_Pf.js","assets/epay-BPdlNSqh.js","assets/display-CqGwMVHS.js","assets/appearance-Cl8fvRSv.js","assets/integrations-Clnk2I57.js","assets/password-DElKXGVw.js"])))=>i.map(i=>d[i]); +import{r as e}from"./chunk-DECur_0Z.js";import{A as t,C as n,D as r,E as i,O as a,S as o,T as s,_ as c,b as l,g as u,h as d,k as f,t as p,v as m,w as h,x as g,y as _}from"./auth-store-De4Y7PFV.js";import{t as v}from"./react-CO2uhaBc.js";import{tm as y}from"./messages-BOatyqUm.js";import{n as b}from"./redirect-DMNGvjzO.js";import{n as x,o as S}from"./Match-DrG03Wse.js";import{t as C}from"./route-wzPKSRj2.js";import{n as w,t as T}from"./atom-DQpaPCwp.js";import{n as E,t as D}from"./lazyRouteComponent-JF8ipq5d.js";import{t as O}from"./useRouterState-B2FPPjEe.js";import{n as ee}from"./wallet-CtiawGS1.js";import{t as k}from"./preload-helper-DoS0eHac.js";import{t as A}from"./createLucideIcon-Br0Bd5k2.js";import{a as te,n as j,t as M}from"./epusdt-BvGYu9TV.js";import{t as ne}from"./loader-circle-DpEz1fQv.js";import{t as re}from"./triangle-alert-DB5v_9sS.js";import{t as ie}from"./dist-JOUh6qvR.js";import{t as ae}from"./general-error-BoAB2alm.js";import{t as oe}from"./not-found-error-BvJzTnw0.js";import{c as se,s as ce,t as N}from"./zod-rwFXxHlg.js";import{t as le}from"./_trade_id-DIf2n6tl.js";import{t as ue}from"./_error-CtV7sHbI.js";var de=class extends t{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new d({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=P(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=P(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=P(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=P(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){_.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>n(t,e))}findAll(e={}){return this.getAll().filter(t=>n(e,t))}notify(e){_.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return _.batch(()=>Promise.all(e.map(e=>e.continue().catch(s))))}};function P(e){return e.options.scope?.id}var fe=class extends t{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??o(r,t),a=this.get(i);return a||(a=new c({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){_.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>h(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>h(e,t)):t}notify(e){_.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){_.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){_.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},F=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new fe,this.#t=e.mutationCache||new de,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=f.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=m.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),i=n.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(r(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=l(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return _.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;_.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return _.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=_.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(s).catch(s)}invalidateQueries(e,t={}){return _.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=_.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(s)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(s)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(r(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(s).catch(s)}fetchInfiniteQuery(e){return e.behavior=u(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(s).catch(s)}ensureInfiniteQueryData(e){return e.behavior=u(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return m.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(g(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{i(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(g(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{i(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=o(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===a&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},I=e=>({createMutableStore:w,createReadonlyStore:w,batch:T}),L=e=>new R(e),R=class extends S{constructor(e){super(e,I)}},z=e(v(),1),B=()=>{};function V(e,t,n){let r=(0,z.useRef)(B);(0,z.useEffect)(()=>{r.current=e}),(0,z.useEffect)(()=>{},[n]),(0,z.useEffect)(()=>{if(t===null||t===!1)return;let e=setInterval(()=>r.current(),t);return()=>clearInterval(e)},[t])}function H(e,t){return Math.random()*(t-e+1)+e}function U(e,t){return Math.floor(H(e,t))}var pe=(0,z.forwardRef)(({progress:e,height:t=2,className:n=``,color:r=`red`,background:i=`transparent`,onLoaderFinished:a,transitionTime:o=300,loaderSpeed:s=500,waitingTime:c=1e3,shadow:l=!0,containerStyle:u={},style:d={},shadowStyle:f={},containerClassName:p=``},m)=>{let h=(0,z.useRef)(!1),[g,_]=(0,z.useState)(0),v=(0,z.useRef)({active:!1,refreshRate:1e3}),[y,b]=(0,z.useState)({active:!1,value:60}),x={height:`100%`,background:r,transition:`all ${s}ms ease`,width:`0%`},S={position:`fixed`,top:0,left:0,height:t,background:i,zIndex:99999999999,width:`100%`},C={boxShadow:`0 0 10px ${r}, 0 0 10px ${r}`,width:`5%`,opacity:1,position:`absolute`,height:`100%`,transition:`all ${s}ms ease`,transform:`rotate(2deg) translate(0px, -2px)`,left:`-10rem`},[w,T]=(0,z.useState)(x),[E,D]=(0,z.useState)(C);(0,z.useEffect)(()=>(h.current=!0,()=>{h.current=!1}),[]),(0,z.useImperativeHandle)(m,()=>({continuousStart(t,n=1e3){if(y.active)return;if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}let r=t||U(10,20);v.current={active:!0,refreshRate:n},_(r),O(r)},staticStart(t){if(v.current.active)return;if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}let n=t||U(30,60);b({active:!0,value:n}),_(n),O(n)},start(t=`continuous`,n,r){if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}t===`continuous`?v.current={active:!0,refreshRate:r||1e3}:b({active:!0,value:n||20});let i=U(10,20),a=U(30,70),o=n||(t===`continuous`?i:a);_(o),O(o)},complete(){if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}_(100),O(100)},increase(t){if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}_(e=>{let n=e+t;return O(n),n})},decrease(t){if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}_(e=>{let n=e-t;return O(n),n})},getProgress(){return g}})),(0,z.useEffect)(()=>{T({...w,background:r}),D({...E,boxShadow:`0 0 10px ${r}, 0 0 5px ${r}`})},[r]),(0,z.useEffect)(()=>{if(m){if(m&&e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar! Please use only props or only ref methods! Ref methods will override props if "ref" property is available.`);return}O(g)}else e&&O(e)},[e]);let O=e=>{e>=100?(T({...w,width:`100%`}),l&&D({...E,left:e-10+`%`}),setTimeout(()=>{h.current&&(T({...w,opacity:0,width:`100%`,transition:`all ${o}ms ease-out`,color:r}),setTimeout(()=>{h.current&&(v.current.active&&(v.current={...v.current,active:!1},_(0),O(0)),y.active&&(b({...y,active:!1}),_(0),O(0)),a&&a(),_(0),O(0))},o))},c)):(T(t=>({...t,width:e+`%`,opacity:1,transition:e>0?`all ${s}ms ease`:``})),l&&D({...E,left:e-5.5+`%`,transition:e>0?`all ${s}ms ease`:``}))};return V(()=>{let e=H(Math.min(10,(100-g)/5),Math.min(20,(100-g)/3));g+e<95&&(_(g+e),O(g+e))},v.current.active?v.current.refreshRate:null),z.createElement(`div`,{className:p,style:{...S,...u}},z.createElement(`div`,{className:n,style:{...w,...d}},l?z.createElement(`div`,{style:{...E,...f}}):null))});z.createContext(void 0);var W=y();function me(){let e=(0,z.useRef)(null),t=O();return(0,z.useEffect)(()=>{t.status===`pending`?e.current?.continuousStart():e.current?.complete()},[t.status]),(0,W.jsx)(pe,{color:`var(--primary)`,height:2,ref:e,shadow:!0})}var he=A(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),ge=A(`octagon-x`,[[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z`,key:`2d38gg`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),_e=(e,t,n,r,i,a,o,s)=>{let c=document.documentElement,l=[`light`,`dark`];function u(t){(Array.isArray(e)?e:[e]).forEach(e=>{let n=e===`class`,r=n&&a?i.map(e=>a[e]||e):i;n?(c.classList.remove(...r),c.classList.add(a&&a[t]?a[t]:t)):c.setAttribute(e,t)}),d(t)}function d(e){s&&l.includes(e)&&(c.style.colorScheme=e)}function f(){return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}if(r)u(r);else try{let e=localStorage.getItem(t)||n;u(o&&e===`system`?f():e)}catch{}},ve=z.createContext(void 0),ye={setTheme:e=>{},themes:[]},be=()=>z.useContext(ve)??ye;z.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:a,value:o,themes:s,nonce:c,scriptProps:l})=>{let u=JSON.stringify([n,t,a,e,s,o,r,i]).slice(1,-1);return z.createElement(`script`,{...l,suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(${_e.toString()})(${u})`}})});var xe=({...e})=>{let{theme:t=`system`}=be();return(0,W.jsx)(ie,{richColors:!0,className:`toaster group`,icons:{success:(0,W.jsx)(ee,{className:`size-4`}),info:(0,W.jsx)(he,{className:`size-4`}),warning:(0,W.jsx)(re,{className:`size-4`}),error:(0,W.jsx)(ge,{className:`size-4`}),loading:(0,W.jsx)(ne,{className:`size-4 animate-spin`})},style:{"--normal-bg":`var(--popover)`,"--normal-text":`var(--popover-foreground)`,"--normal-border":`var(--border)`,"--border-radius":`var(--radius)`},theme:t,...e})};function Se(){return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(me,{}),(0,W.jsx)(x,{}),(0,W.jsx)(xe,{duration:5e3,position:`top-right`})]})}var G=C()({component:Se,notFoundComponent:oe,errorComponent:ae}),Ce=E(`/install`)({component:D(()=>k(()=>import(`./install-_AmBcHKu.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49])),`component`)}),we=E(`/cashier`)({component:D(()=>k(()=>import(`./route-D1gzbhTf.js`),__vite__mapDeps([50,1,3,4,5,6,51,23,24,20,52,25,53,18,19,8,21,28,35,36,11,12,13,14,37,38,15,16,17,39,31,40,41,42,54])),`component`)}),Te=E(`/_authenticated`)({beforeLoad:({location:e})=>{if(!p.state.accessToken)throw b({to:`/sign-in`,search:{redirect:e.href},replace:!0})},component:D(()=>k(()=>import(`./route-GrVEK0V1.js`),__vite__mapDeps([55,1,12,5,6,56,57,58,3,4,27,15,13,8,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,36,31,51,23,52,53,67,68,22,69,70,47])),`component`)}),Ee=E(`/(auth)`)({component:D(()=>k(()=>import(`./route-CAiA_U_q.js`),__vite__mapDeps([71,1,3,4,5,6,51,23,24,20,52,25,53,35,36,11,12,13,8,14,37,38,15,16,17,39,31,28,40,41,42,21,46,72])),`component`)}),De=E(`/`)({beforeLoad:()=>{throw b({to:p.state.accessToken?`/dashboard`:`/sign-in`,replace:!0})},component:D(()=>k(()=>import(`./routes-D7HD5c-e.js`),[]),`component`)}),Oe=E(`/_authenticated/dashboard`)({component:D(()=>k(()=>import(`./dashboard-C_GaAVh0.js`),__vite__mapDeps([73,1,56,57,12,5,6,58,3,4,27,15,13,8,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,10,74,75,36,31,76,32,69,33,77,47,78,79,80,22,23,35,81,45,82,83,48])),`component`)}),ke=E(`/(errors)/503`)({component:D(()=>k(()=>import(`./503-DqC0HW48.js`),__vite__mapDeps([84,85,3,1,4,5,6])),`component`)}),Ae=E(`/(errors)/500`)({component:D(()=>k(()=>import(`./500-Ch8AmacC.js`),__vite__mapDeps([86,87,3,1,4,5,6,25,40])),`component`)}),je=E(`/(errors)/404`)({component:D(()=>k(()=>import(`./404-pq4P7jD8.js`),__vite__mapDeps([88,89,3,1,4,5,6,25,40])),`component`)}),Me=E(`/(errors)/403`)({component:D(()=>k(()=>import(`./403-DfLmRqHM.js`),__vite__mapDeps([90,91,3,1,4,5,6,25,40])),`component`)}),Ne=E(`/(errors)/401`)({component:D(()=>k(()=>import(`./401-CvFvdOr5.js`),__vite__mapDeps([92,93,3,1,4,5,6,25,40])),`component`)}),Pe=()=>k(()=>import(`./sign-in-_ux3l1kN.js`),__vite__mapDeps([94,1,2,3,4,5,6,7,8,9,58,12,27,15,13,16,17,18,19,20,21,95,52,25,24,40,28,43,96,33,34,49,72])),Fe=ce({redirect:se().optional()}),Ie=E(`/(auth)/sign-in`)({component:D(Pe,`component`),validateSearch:Fe}),Le=E(`/_authenticated/settings`)({component:D(()=>k(()=>import(`./route-C6USHQDN.js`),__vite__mapDeps([97,56,1,57,12,5,6,58,3,4,27,15,13,8,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,51,23,52,53,80,36,31,22,35,81,83,98,76,32,99])),`component`)}),Re=E(`/_authenticated/payment-setup`)({component:D(()=>k(()=>import(`./route-DvJeidrw.js`),__vite__mapDeps([100,56,1,57,12,5,6,58,3,4,27,15,13,8,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,51,23,52,53,80,36,31,22,35,81,83,98,76,32,99])),`component`)}),ze=E(`/_authenticated/account`)({component:D(()=>k(()=>import(`./route-lp7ScXTd.js`),__vite__mapDeps([101,56,1,57,12,5,6,58,3,4,27,15,13,8,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,51,23,52,53,80,36,31,22,35,81,83,98,76,32,99])),`component`)}),Be=E(`/_authenticated/settings/`)({component:D(()=>k(()=>import(`./settings-eRG1_Yuf.js`),__vite__mapDeps([102,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,83,61,49,103,18,19,20,21])),`component`)}),Ve=()=>k(()=>import(`./rpc-D7fjJcmI.js`),__vite__mapDeps([104,1,2,3,4,5,6,7,8,9,56,57,12,58,27,15,13,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,105,31,36,76,32,106,107,23,22,95,52,53,75,10,69,33,77,47,78,108,109,80,35,81,110,111,112,83,113])),He=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10),enabled:N.array(N.enum(j.map(e=>e.value))).optional().catch([]),type:N.array(N.string()).optional().catch([]),status:N.array(N.enum([`ok`,`down`,`unknown`])).optional().catch([]),keyword:N.string().optional().catch(``)}),Ue=E(`/_authenticated/rpc/`)({validateSearch:He,component:D(Ve,`component`)}),We=()=>k(()=>import(`./payment-setup-BFIKIu1u.js`),__vite__mapDeps([114,1,3,4,5,6,18,19,8,20,21,107,23,24,22,25,95,52,40,53,75,36,11,12,13,14,37,38,15,16,17,39,31,28,10,76,57,60,63,32,61,62,26,27,29,64,69,33,77,47,49,78,115,82,113])),Ge=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10),status:N.enum([`enabled`,`disabled`]).array().optional().catch([]),chain:N.array(N.string()).optional().catch([]),keyword:N.string().optional().catch(``)}),Ke=E(`/_authenticated/payment-setup/`)({validateSearch:Ge,component:D(We,`component`)}),qe=()=>k(()=>import(`./orders-oloW11KP.js`),__vite__mapDeps([116,1,58,12,5,6,3,4,27,15,13,8,16,17,56,57,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,36,31,7,107,23,22,95,52,53,75,10,76,32,69,33,77,47,78,79,117,109,34,80,35,81,118,119,112,83,113])),Je=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10),status:N.array(N.enum(te.map(e=>e.value))).optional().catch([]),chain:N.array(N.string()).optional().catch([]),orderNo:N.string().optional().catch(``)}),Ye=E(`/_authenticated/orders/`)({validateSearch:Je,component:D(qe,`component`)}),Xe=()=>k(()=>import(`./keys-D0eVvlbn.js`),__vite__mapDeps([120,1,2,3,4,5,6,7,8,9,58,12,27,15,13,16,17,56,57,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,76,31,32,106,107,23,22,95,52,53,30,33,34,77,80,36,35,81,111,83,47,121])),Ze=N.object({type:N.enum([`all`,`enabled`,`disabled`]).optional().catch(void 0),filter:N.string().optional().catch(``),sort:N.enum([`asc`,`desc`]).optional().catch(void 0)}),Qe=E(`/_authenticated/keys/`)({validateSearch:Ze,component:D(Xe,`component`)}),$e=E(`/_authenticated/help/`)({component:D(()=>k(()=>import(`./help-Bq6Uj7UY.js`),__vite__mapDeps([122,119,28,1,6,5])),`component`)}),et=()=>k(()=>import(`./chains-BMgOL_QE.js`),__vite__mapDeps([123,1,2,3,4,5,6,7,8,9,56,57,12,58,27,15,13,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,105,31,36,76,32,106,75,10,69,33,77,47,78,108,109,80,22,23,35,81,110,111,118,119,83])),tt=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10),status:N.array(N.enum(j.map(e=>e.value))).optional().catch([]),keyword:N.string().optional().catch(``)}),nt=E(`/_authenticated/chains/`)({validateSearch:tt,component:D(et,`component`)}),rt=()=>k(()=>import(`./addresses-lQocmp_u.js`),__vite__mapDeps([124,1,2,3,4,5,6,7,8,9,58,12,27,15,13,16,17,56,57,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,36,31,76,32,106,107,23,22,95,52,53,75,10,69,33,77,47,78,79,117,109,34,80,35,81,110,111,112,83,121,113])),it=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10),status:N.array(N.enum(M.map(e=>e.value))).optional().catch([]),chain:N.array(N.string()).optional().catch([]),address:N.string().optional().catch(``)}),at=E(`/_authenticated/addresses/`)({validateSearch:it,component:D(rt,`component`)}),ot=E(`/_authenticated/account/`)({beforeLoad:()=>{throw b({to:`/account/password`,replace:!0})}}),st=E(`/_authenticated/settings/telegram`)({component:D(()=>k(()=>import(`./telegram-Br_DijOI.js`),__vite__mapDeps([125,1,2,3,4,5,6,7,8,9,106,12,60,14,83,61,49,103,18,19,20,21])),`component`)}),ct=E(`/_authenticated/settings/system`)({component:D(()=>k(()=>import(`./system-CzKDOsCg.js`),__vite__mapDeps([126,1,2,3,4,5,6,7,8,9,76,11,12,13,14,57,37,38,15,16,60,63,28,31,32,83,61,103,18,19,20,21])),`component`)}),lt=E(`/_authenticated/settings/pay`)({component:D(()=>k(()=>import(`./pay-BNu4n_oI.js`),__vite__mapDeps([127,1,128,2,3,4,5,6,7,8,9,129,28,83,61,49,78,103,18,19,20,21])),`component`)}),ut=E(`/_authenticated/settings/okpay`)({component:D(()=>k(()=>import(`./okpay-D5pTA_4W.js`),__vite__mapDeps([130,1,2,3,4,5,6,7,8,9,106,12,60,14,96,33,28,34,49,83,61,103,18,19,20,21])),`component`)}),dt=E(`/_authenticated/settings/notifications`)({component:D(()=>k(()=>import(`./notifications-xdKOW8nn.js`),__vite__mapDeps([131,2,1,3,4,5,6,7,8,9,105,12,17,60,14,31,28,106,22,23,24,20,25,132,59,38,39,37,13,83,61,133,19])),`component`)}),ft=E(`/_authenticated/settings/epay`)({component:D(()=>k(()=>import(`./epay-BPdlNSqh.js`),__vite__mapDeps([134,1,2,3,4,5,6,7,8,9,76,11,12,13,14,57,37,38,15,16,60,63,28,31,32,18,19,20,21,115,82,83,61,49,103])),`component`)}),pt=E(`/_authenticated/settings/display`)({component:D(()=>k(()=>import(`./display-CqGwMVHS.js`),__vite__mapDeps([135,2,1,3,4,5,6,7,8,9,105,12,17,60,14,31,28,83,61,133,19])),`component`)}),mt=E(`/_authenticated/settings/appearance`)({component:D(()=>k(()=>import(`./appearance-Cl8fvRSv.js`),__vite__mapDeps([136,2,1,3,4,5,6,7,8,9,32,28,132,59,12,38,17,39,37,13,60,14,83,61,66,21,42,133,19])),`component`)}),ht=()=>k(()=>import(`./integrations-Clnk2I57.js`),__vite__mapDeps([137,1,107,23,24,6,20,5,22,8,3,4,25,95,52,40,53,75,36,11,12,13,14,37,38,15,16,17,39,31,28,10,76,57,60,63,32,61,62,26,27,29,64,69,33,77,47,49,78,113])),gt=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10)}),_t=E(`/_authenticated/payment-setup/integrations`)({validateSearch:gt,component:D(ht,`component`)}),vt=E(`/_authenticated/account/password`)({component:D(()=>k(()=>import(`./password-DElKXGVw.js`),__vite__mapDeps([138,2,1,3,4,5,6,7,8,9,18,19,20,21,96,33,28,34,49,83,61])),`component`)}),yt=Ce.update({id:`/install`,path:`/install`,getParentRoute:()=>G}),K=we.update({id:`/cashier`,path:`/cashier`,getParentRoute:()=>G}),q=Te.update({id:`/_authenticated`,getParentRoute:()=>G}),J=Ee.update({id:`/(auth)`,getParentRoute:()=>G}),bt=De.update({id:`/`,path:`/`,getParentRoute:()=>G}),xt=Oe.update({id:`/dashboard`,path:`/dashboard`,getParentRoute:()=>q}),St=ke.update({id:`/(errors)/503`,path:`/503`,getParentRoute:()=>G}),Ct=Ae.update({id:`/(errors)/500`,path:`/500`,getParentRoute:()=>G}),wt=je.update({id:`/(errors)/404`,path:`/404`,getParentRoute:()=>G}),Tt=Me.update({id:`/(errors)/403`,path:`/403`,getParentRoute:()=>G}),Et=Ne.update({id:`/(errors)/401`,path:`/401`,getParentRoute:()=>G}),Dt=Ie.update({id:`/sign-in`,path:`/sign-in`,getParentRoute:()=>J}),Y=Le.update({id:`/settings`,path:`/settings`,getParentRoute:()=>q}),X=Re.update({id:`/payment-setup`,path:`/payment-setup`,getParentRoute:()=>q}),Z=ze.update({id:`/account`,path:`/account`,getParentRoute:()=>q}),Ot=le.update({id:`/$trade_id/`,path:`/$trade_id/`,getParentRoute:()=>K}),kt=Be.update({id:`/`,path:`/`,getParentRoute:()=>Y}),At=Ue.update({id:`/rpc/`,path:`/rpc/`,getParentRoute:()=>q}),jt=Ke.update({id:`/`,path:`/`,getParentRoute:()=>X}),Mt=Ye.update({id:`/orders/`,path:`/orders/`,getParentRoute:()=>q}),Nt=Qe.update({id:`/keys/`,path:`/keys/`,getParentRoute:()=>q}),Pt=$e.update({id:`/help/`,path:`/help/`,getParentRoute:()=>q}),Ft=nt.update({id:`/chains/`,path:`/chains/`,getParentRoute:()=>q}),It=at.update({id:`/addresses/`,path:`/addresses/`,getParentRoute:()=>q}),Lt=ot.update({id:`/`,path:`/`,getParentRoute:()=>Z}),Rt=st.update({id:`/telegram`,path:`/telegram`,getParentRoute:()=>Y}),zt=ct.update({id:`/system`,path:`/system`,getParentRoute:()=>Y}),Bt=lt.update({id:`/pay`,path:`/pay`,getParentRoute:()=>Y}),Vt=ut.update({id:`/okpay`,path:`/okpay`,getParentRoute:()=>Y}),Ht=dt.update({id:`/notifications`,path:`/notifications`,getParentRoute:()=>Y}),Ut=ft.update({id:`/epay`,path:`/epay`,getParentRoute:()=>Y}),Wt=pt.update({id:`/display`,path:`/display`,getParentRoute:()=>Y}),Gt=mt.update({id:`/appearance`,path:`/appearance`,getParentRoute:()=>Y}),Kt=_t.update({id:`/integrations`,path:`/integrations`,getParentRoute:()=>X}),qt=ue.update({id:`/errors/$error`,path:`/errors/$error`,getParentRoute:()=>q}),Jt=vt.update({id:`/password`,path:`/password`,getParentRoute:()=>Z}),Q={authSignInRoute:Dt},Yt=J._addFileChildren(Q),Xt={AuthenticatedAccountPasswordRoute:Jt,AuthenticatedAccountIndexRoute:Lt},Zt=Z._addFileChildren(Xt),Qt={AuthenticatedPaymentSetupIntegrationsRoute:Kt,AuthenticatedPaymentSetupIndexRoute:jt},$t=X._addFileChildren(Qt),en={AuthenticatedSettingsAppearanceRoute:Gt,AuthenticatedSettingsDisplayRoute:Wt,AuthenticatedSettingsEpayRoute:Ut,AuthenticatedSettingsNotificationsRoute:Ht,AuthenticatedSettingsOkpayRoute:Vt,AuthenticatedSettingsPayRoute:Bt,AuthenticatedSettingsSystemRoute:zt,AuthenticatedSettingsTelegramRoute:Rt,AuthenticatedSettingsIndexRoute:kt},tn={AuthenticatedAccountRouteRoute:Zt,AuthenticatedPaymentSetupRouteRoute:$t,AuthenticatedSettingsRouteRoute:Y._addFileChildren(en),AuthenticatedDashboardRoute:xt,AuthenticatedErrorsErrorRoute:qt,AuthenticatedAddressesIndexRoute:It,AuthenticatedChainsIndexRoute:Ft,AuthenticatedHelpIndexRoute:Pt,AuthenticatedKeysIndexRoute:Nt,AuthenticatedOrdersIndexRoute:Mt,AuthenticatedRpcIndexRoute:At},nn=q._addFileChildren(tn),rn={CashierTrade_idIndexRoute:Ot},an={IndexRoute:bt,authRouteRoute:Yt,AuthenticatedRouteRoute:nn,CashierRouteRoute:K._addFileChildren(rn),InstallRoute:yt,errors401Route:Et,errors403Route:Tt,errors404Route:wt,errors500Route:Ct,errors503Route:St},on=G._addFileChildren(an)._addFileTypes(),$=new F({defaultOptions:{queries:{retry:(e,t)=>{if(e>3)return!1;if(typeof t==`object`&&t&&`status`in t){let e=t.status;if(e===401||e===403)return!1}return!0},refetchOnWindowFocus:!0,staleTime:10*1e3}}}),sn=L({routeTree:on,context:{queryClient:$},scrollRestoration:!0,defaultPreload:`intent`,defaultPreloadStaleTime:0});export{sn as n,$ as t}; \ No newline at end of file diff --git a/src/www/assets/rpc-cAFAt1WZ.js b/src/www/assets/rpc-D7fjJcmI.js similarity index 99% rename from src/www/assets/rpc-cAFAt1WZ.js rename to src/www/assets/rpc-D7fjJcmI.js index d552743..164c981 100644 --- a/src/www/assets/rpc-cAFAt1WZ.js +++ b/src/www/assets/rpc-D7fjJcmI.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{a as t}from"./auth-store-De4Y7PFV.js";import{t as n}from"./router-eyRTkMwc.js";import{t as r}from"./react-CO2uhaBc.js";import{Aa as i,Ba as a,Ca as o,Da as s,Ea as c,Fa as l,Fo as u,Ga as d,Go as f,Ha as p,Ia as m,Ja as h,Ka as g,Ko as _,La as ee,Ma as te,Na as ne,Oa as v,Pa as re,Po as y,Qo as b,Ra as ie,Sa as x,Ta as S,Ts as ae,Ua as oe,Va as C,Wa as se,Xp as ce,_a as le,aa as ue,ba as de,ca as fe,da as w,ea as T,fa as pe,ga as me,ha as he,ia as E,ja as D,ka as ge,la as _e,ma as ve,na as O,oa as ye,pa as be,qa as xe,qo as Se,ra as Ce,sa as we,ss as Te,ta as k,tm as Ee,ua as De,uo as Oe,va as ke,wa as A,xa as Ae,ya as je,za as Me}from"./messages-BOatyqUm.js";import{r as Ne}from"./route-wzPKSRj2.js";import{I as Pe,o as j,r as Fe}from"./search-provider-C-_FQI9C.js";import{i as M,t as N}from"./button-C_NDYaz8.js";import{t as Ie}from"./checkbox-CTHgcB3t.js";import{a as P,c as F,l as Le,r as Re,s as ze,t as Be}from"./dropdown-menu-DzCIpsuG.js";import{a as I,i as L,n as R,r as z,t as B}from"./select-CzebumOF.js";import{t as Ve}from"./separator-CsUemQNs.js";import{t as He}from"./switch-CgoJjvdz.js";import{t as Ue}from"./createLucideIcon-Br0Bd5k2.js";import{a as V,c as We,d as Ge,f as Ke,l as qe,n as Je,o as Ye,r as Xe,s as Ze,t as Qe,u as $e}from"./data-table-1LQSBhN2.js";import{t as et}from"./arrow-left-BpZwGREZ.js";import{t as H}from"./skeleton-CmDjDV1O.js";import{t as tt}from"./ellipsis-74ly4-Wm.js";import{t as nt}from"./empty-state-CxE4wU3V.js";import{n as rt,t as it}from"./main-C1R3Hvq1.js";import{n as at,t as ot}from"./chains-store-DCzO87jZ.js";import{n as st,t as ct}from"./trash-2-9I8lAjeE.js";import{l as lt}from"./command-B_SlhXkX.js";import{i as ut,o as dt,r as ft,s as pt,t as mt}from"./dialog-CZ-2RPb-.js";import{n as U}from"./dist-JOUh6qvR.js";import{a as ht,c as W,n as gt,r as _t,s as vt}from"./zod-rwFXxHlg.js";import{a as G,c as yt,i as K,l as bt,n as q,o as J,s as Y,t as xt}from"./form-KfFEakes.js";import{t as X}from"./input-8zzM34r5.js";import{t as St}from"./page-header-GTtyZFBB.js";import{t as Z}from"./badge-VJlwwTW5.js";import{t as Ct}from"./use-table-url-state-DP0Y4QjR.js";import{t as wt}from"./long-text-DNqlDi0R.js";var Tt=Ue(`stethoscope`,[[`path`,{d:`M11 2v2`,key:`1539x4`}],[`path`,{d:`M5 2v2`,key:`1yf1q8`}],[`path`,{d:`M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1`,key:`rb5t3r`}],[`path`,{d:`M8 15a6 6 0 0 0 12 0v-3`,key:`x18d4x`}],[`circle`,{cx:`20`,cy:`10`,r:`2`,key:`ts1r5v`}]]),Q=e(r(),1),$=Ee(),Et=vt({network:W().min(1,we()),type:_t([`http`,`ws`,`lite`]),purpose:_t([`general`,`manual_verify`,`both`]),url:W().url(ye()),api_key:W().default(``),weight:gt().min(1,ue()),enabled:ht().default(!0)});function Dt({open:e,onOpenChange:n,currentRow:r,onSuccess:i}){let{chains:a}=ot(),o=bt({resolver:yt(Et),defaultValues:{network:``,type:`http`,purpose:`general`,url:``,api_key:``,weight:1,enabled:!0}}),l=t.useMutation(`post`,`/admin/api/v1/rpc-nodes`),d=t.useMutation(`patch`,`/admin/api/v1/rpc-nodes/{id}`);(0,Q.useEffect)(()=>{e&&o.reset({network:r?.network??``,type:r?.type??`http`,purpose:r?.purpose??`general`,url:r?.url??``,api_key:r?.api_key??``,weight:r?.weight??1,enabled:r?.enabled??!0})},[e,r,o]);function f(e){if(r?.id){d.mutate({params:{path:{id:r.id}},body:{url:e.url,api_key:e.api_key,weight:e.weight,enabled:e.enabled,purpose:e.purpose}},{onSuccess:()=>{U.success(_e()),n(!1),i?.()}});return}l.mutate({body:{network:e.network,type:e.type,purpose:e.purpose,url:e.url,api_key:e.api_key,weight:e.weight,enabled:e.enabled}},{onSuccess:()=>{U.success(fe()),n(!1),i?.()}})}let p=l.isPending||d.isPending;return(0,$.jsx)(mt,{onOpenChange:n,open:e,children:(0,$.jsxs)(ft,{children:[(0,$.jsxs)(dt,{children:[(0,$.jsx)(pt,{children:r?le():me()}),(0,$.jsx)(ut,{children:r?he():ve()})]}),(0,$.jsx)(xt,{...o,children:(0,$.jsxs)(`form`,{className:`space-y-4`,onSubmit:o.handleSubmit(f),children:[(0,$.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,$.jsx)(K,{control:o.control,name:`network`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:s()}),(0,$.jsxs)(B,{disabled:!!r,onValueChange:e.onChange,value:e.value,children:[(0,$.jsx)(q,{children:(0,$.jsx)(L,{className:`w-full`,children:(0,$.jsx)(I,{placeholder:Te()})})}),(0,$.jsx)(R,{children:a.filter(e=>!!e.network).map(e=>(0,$.jsx)(z,{value:e.network??``,children:e.display_name??e.network},e.network))})]}),(0,$.jsx)(Y,{})]})}),(0,$.jsx)(K,{control:o.control,name:`type`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:c()}),(0,$.jsxs)(B,{disabled:!!r,onValueChange:e.onChange,value:e.value,children:[(0,$.jsx)(q,{children:(0,$.jsx)(L,{className:`w-full`,children:(0,$.jsx)(I,{placeholder:be()})})}),(0,$.jsxs)(R,{children:[(0,$.jsx)(z,{value:`http`,children:`HTTP`}),(0,$.jsx)(z,{value:`ws`,children:`WebSocket`}),(0,$.jsx)(z,{value:`lite`,children:`TON LiteServer`})]})]}),(0,$.jsx)(Y,{})]})}),(0,$.jsx)(K,{control:o.control,name:`purpose`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:E()}),(0,$.jsxs)(B,{onValueChange:e.onChange,value:e.value,children:[(0,$.jsx)(q,{children:(0,$.jsx)(L,{className:`w-full`,children:(0,$.jsx)(I,{placeholder:Ce()})})}),(0,$.jsxs)(R,{children:[(0,$.jsx)(z,{value:`general`,children:O()}),(0,$.jsx)(z,{value:`manual_verify`,children:k()}),(0,$.jsx)(z,{value:`both`,children:T()})]})]}),(0,$.jsx)(Y,{})]})})]}),(0,$.jsx)(K,{control:o.control,name:`url`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:S()}),(0,$.jsx)(q,{children:(0,$.jsx)(X,{placeholder:`https://api.trongrid.io`,...e})}),(0,$.jsx)(Y,{})]})}),(0,$.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,$.jsx)(K,{control:o.control,name:`api_key`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:`API Key`}),(0,$.jsx)(q,{children:(0,$.jsx)(X,{placeholder:pe(),...e})}),(0,$.jsx)(Y,{})]})}),(0,$.jsx)(K,{control:o.control,name:`weight`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:A()}),(0,$.jsx)(q,{children:(0,$.jsx)(X,{name:e.name,onBlur:e.onBlur,onChange:t=>e.onChange(t.target.value),ref:e.ref,type:`number`,value:String(e.value??``)})}),(0,$.jsx)(Y,{})]})})]}),(0,$.jsx)(K,{control:o.control,name:`enabled`,render:({field:e})=>(0,$.jsxs)(G,{className:`flex flex-row items-center gap-3 rounded-lg border p-3`,children:[(0,$.jsx)(q,{children:(0,$.jsx)(Ie,{checked:e.value,onCheckedChange:t=>e.onChange(!!t)})}),(0,$.jsxs)(`div`,{className:`space-y-1`,children:[(0,$.jsx)(J,{children:w()}),(0,$.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:De()})]})]})}),(0,$.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,$.jsx)(N,{onClick:()=>n(!1),type:`button`,variant:`outline`,children:ce()}),(0,$.jsx)(N,{disabled:p,type:`submit`,children:p?u():y()})]})]})})]})})}function Ot(e){return[{id:`switch`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:b()}),cell:({row:t})=>(0,$.jsx)(He,{checked:!!t.original.enabled,onCheckedChange:()=>e(t.original.enabled?`disable`:`enable`,t.original)}),enableSorting:!1,enableHiding:!1,meta:{label:b(),skeleton:`switch`,sticky:`left`,th:{className:M(`rounded-tl-[inherit]`)}}},{accessorKey:`status`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:D()}),cell:({row:e})=>{let t=e.original.status??`unknown`,n=`bg-slate-500/10 text-slate-600`,r=v();return t===`ok`?(n=`bg-emerald-500/10 text-emerald-600`,r=i()):t===`down`&&(n=`bg-rose-500/10 text-rose-600`,r=ge()),(0,$.jsx)(Z,{className:n,children:r})},filterFn:(e,t,n)=>n.includes(String(e.getValue(t))),meta:{label:D(),skeleton:`badge`}},{accessorKey:`network`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:s()}),cell:({row:e})=>(0,$.jsx)(`div`,{className:`min-w-24 font-medium`,children:e.original.network??`-`}),enableHiding:!1,meta:{label:s(),skeleton:`short`}},{accessorKey:`type`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:c()}),cell:({row:e})=>kt(e.original.type),filterFn:(e,t,n)=>n.includes(String(e.getValue(t)??`general`)),meta:{label:c(),skeleton:`short`}},{accessorKey:`purpose`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:E()}),cell:({row:e})=>{let t=e.original.purpose??`general`,n=O();return t===`manual_verify`?n=k():t===`both`&&(n=T()),(0,$.jsx)(Z,{variant:`outline`,children:n})},filterFn:(e,t,n)=>n.includes(String(e.getValue(t))),meta:{label:E(),skeleton:`badge`}},{accessorKey:`url`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:S()}),cell:({row:e})=>(0,$.jsx)(wt,{className:`min-w-80`,children:e.original.url??`-`}),meta:{label:S(),skeleton:`long`}},{accessorKey:`weight`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:A()}),cell:({row:e})=>e.original.weight??`-`,meta:{label:A(),skeleton:`id`}},{accessorKey:`last_latency_ms`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:o()}),cell:({row:e})=>e.original.last_latency_ms?`${e.original.last_latency_ms} ms`:`-`,meta:{label:o(),skeleton:`id`}},{accessorKey:`last_checked_at`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:x()}),cell:({row:e})=>j(e.original.last_checked_at),meta:{label:x(),skeleton:`date`}},{accessorKey:`api_key`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:`API Key`}),cell:({row:e})=>(0,$.jsx)(wt,{children:e.original.api_key??`-`}),meta:{label:`API Key`,skeleton:`long`}},{accessorKey:`created_at`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:Se()}),cell:({row:e})=>j(e.original.created_at),meta:{label:Se(),skeleton:`date`}},{accessorKey:`updated_at`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:_()}),cell:({row:e})=>j(e.original.updated_at),meta:{label:_(),skeleton:`date`}},{id:`actions`,enableHiding:!1,meta:{label:f(),skeleton:`action`,sticky:`right`,className:M(`w-12`)},cell:({row:t})=>(0,$.jsxs)(Be,{modal:!1,children:[(0,$.jsx)(Le,{asChild:!0,children:(0,$.jsxs)(N,{className:`flex h-8 w-8 p-0 data-[state=open]:bg-muted`,variant:`ghost`,children:[(0,$.jsx)(tt,{className:`h-4 w-4`}),(0,$.jsx)(`span`,{className:`sr-only`,children:`Open menu`})]})}),(0,$.jsxs)(Re,{align:`end`,className:`w-40`,children:[(0,$.jsxs)(P,{onClick:()=>e(`edit`,t.original),children:[ke(),(0,$.jsx)(F,{children:(0,$.jsx)(at,{size:16})})]}),(0,$.jsxs)(P,{onClick:()=>e(`health-check`,t.original),children:[Ae(),(0,$.jsx)(F,{children:(0,$.jsx)(Tt,{size:16})})]}),(0,$.jsx)(ze,{}),(0,$.jsxs)(P,{onClick:()=>e(`delete`,t.original),variant:`destructive`,children:[Oe(),(0,$.jsx)(F,{children:(0,$.jsx)(ct,{size:16})})]})]})]})}]}function kt(e){return e===`http`?`HTTP`:e===`ws`?`WebSocket`:e===`lite`?`TON LiteServer`:e??`-`}var At=Ne(`/_authenticated/rpc/`),jt=[{label:i(),value:`ok`},{label:ge(),value:`down`},{label:v(),value:`unknown`}];function Mt({data:e,isLoading:t,onAction:n,onRefresh:r}){let[i,a]=(0,Q.useState)([]),{globalFilter:o,onGlobalFilterChange:s,columnFilters:l,onColumnFiltersChange:u,pagination:d,onPaginationChange:f,ensurePageInRange:p}=Ct({search:At.useSearch(),navigate:At.useNavigate(),pagination:{defaultPage:1,defaultPageSize:10},globalFilter:{enabled:!0,key:`keyword`},columnFilters:[{columnId:`type`,searchKey:`type`,type:`array`},{columnId:`status`,searchKey:`status`,type:`array`}]}),m=Ye({data:e,columns:(0,Q.useMemo)(()=>Ot(n),[n]),state:{sorting:i,columnFilters:l,globalFilter:o,pagination:d},onSortingChange:a,onColumnFiltersChange:u,onGlobalFilterChange:s,onPaginationChange:f,globalFilterFn:(e,t,n)=>{let r=String(n).toLowerCase();return(e.original.network??``).toLowerCase().includes(r)||(e.original.url??``).toLowerCase().includes(r)},getCoreRowModel:Ze(),getFilteredRowModel:$e(),getPaginationRowModel:Ge(),getSortedRowModel:Ke(),getFacetedRowModel:We(),getFacetedUniqueValues:qe()});(0,Q.useEffect)(()=>{p(m.getPageCount())},[m,p]);let h=[...new Set(e.map(e=>e.type).filter(Boolean))].map(e=>({label:Nt(e),value:e})),g=[{label:O(),value:`general`},{label:k(),value:`manual_verify`},{label:T(),value:`both`}];return(0,$.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,$.jsx)(Qe,{filters:[{columnId:`type`,title:c(),options:h},{columnId:`purpose`,title:E(),options:g},{columnId:`status`,title:D(),options:[...jt]}],onRefresh:r,searchPlaceholder:de(),table:m}),(0,$.jsx)(Xe,{className:`min-w-[1200px]`,emptyText:je(),loading:t,table:m}),(0,$.jsx)(Je,{className:`mt-auto`,table:m})]})}function Nt(e){return e===`http`?`HTTP`:e===`ws`?`WebSocket`:e===`lite`?`TON LiteServer`:e??`-`}var Pt=[`chain-1`,`chain-2`,`chain-3`,`chain-4`,`chain-5`];function Ft({active:e,children:t,onClick:n}){return(0,$.jsx)(`div`,{className:M(`w-full cursor-pointer rounded-lg px-3 py-3 text-left transition-colors hover:bg-accent hover:text-accent-foreground`,e&&`bg-muted`),onClick:n,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),n())},role:`button`,tabIndex:0,children:t})}function It({chains:e,isLoading:t,keyword:n,onKeywordChange:r,selectedPanel:i,onSelect:a,totalNodes:o,hiddenOnMobile:s}){return(0,$.jsxs)(`div`,{className:M(`flex w-full flex-col gap-2 sm:w-56 lg:w-72 2xl:w-80`,s&&`hidden sm:flex`),children:[(0,$.jsxs)(`div`,{className:`sticky top-0 z-10 -mx-4 bg-background px-4 pb-3 shadow-md sm:static sm:z-auto sm:mx-0 sm:p-0 sm:shadow-none`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between py-2`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsx)(`h1`,{className:`font-bold text-2xl`,children:h()}),(0,$.jsx)(Pe,{size:20})]}),(0,$.jsx)(Z,{variant:`secondary`,children:xe({count:String(e.length)})})]}),(0,$.jsxs)(`div`,{className:`relative block`,children:[(0,$.jsx)(lt,{className:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),(0,$.jsx)(X,{className:`pl-9`,onChange:e=>r(e.target.value),placeholder:g(),value:n})]})]}),(0,$.jsxs)(Fe,{className:`-mx-3 h-full overflow-auto p-3`,children:[(0,$.jsx)(Ft,{active:i===`overview`,onClick:()=>a(`overview`),children:(0,$.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsx)(`div`,{className:`font-medium`,children:d()}),(0,$.jsx)(`div`,{className:`mt-1 text-muted-foreground text-xs`,children:se({chains:String(e.length),nodes:String(o)})})]}),(0,$.jsx)(Pe,{className:`mt-0.5 size-4 text-muted-foreground`})]})}),(0,$.jsx)(Ve,{className:`my-1`}),t?Pt.map(e=>(0,$.jsxs)(`div`,{className:`px-3 py-3`,children:[(0,$.jsx)(`div`,{className:`flex items-center justify-between gap-2`,children:(0,$.jsx)(H,{className:`h-4 w-24`})}),(0,$.jsxs)(`div`,{className:`mt-2 flex items-center justify-between gap-2`,children:[(0,$.jsx)(H,{className:`h-3 w-20`}),(0,$.jsx)(H,{className:`h-5 w-12 rounded-full`})]})]},e)):e.map((t,n)=>{let r=t.network??t.display_name??String(n);return(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Ft,{active:i===t.network,onClick:()=>a(t.network??`overview`),children:(0,$.jsx)(`div`,{className:`flex items-start gap-3`,children:(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`div`,{className:`truncate font-medium`,children:t.display_name??oe()}),(0,$.jsxs)(`div`,{className:`mt-1 flex items-center justify-between gap-2`,children:[(0,$.jsx)(`span`,{className:`text-muted-foreground text-xs`,children:p({count:String(t.nodeCount??0)})}),(0,$.jsx)(Z,{className:`shrink-0 text-xs`,variant:`outline`,children:t.network??`-`})]})]})})}),nS.reduce((e,t)=>(t.network&&(e[t.network]=(e[t.network]??0)+1),e),{}),[S]),C=(0,Q.useMemo)(()=>e.map(e=>({...e,nodeCount:e.network?oe[e.network]??0:0})),[e,oe]),se=(0,Q.useMemo)(()=>{let e=g.trim().toLowerCase();return e?C.filter(t=>[t.display_name,t.network].filter(Boolean).some(t=>String(t).toLowerCase().includes(e))):C},[C,g]),le=(0,Q.useMemo)(()=>v===`overview`?S:S.filter(e=>e.network===v),[S,v]);(0,Q.useEffect)(()=>{v!==`overview`&&!e.some(e=>e.network===v)&&(y(`overview`),x(null))},[e,v]);async function ue(){await n.invalidateQueries({queryKey:[`get`,`/admin/api/v1/rpc-nodes`]})}async function de(){if(p?.row.id){if(p.action===`delete`)await a.mutateAsync({params:{path:{id:p.row.id}}}),U.success(ie());else if(p.action===`enable`||p.action===`disable`)await o.mutateAsync({params:{path:{id:p.row.id}},body:{enabled:p.action===`enable`}}),U.success(ae());else if(p.action===`health-check`){let e=await s.mutateAsync({params:{path:{id:p.row.id}}}),t=e.data?.status??`unknown`,n=e.data?.last_latency_ms;U.success(ee({status:t,latency:n?m({latency:String(n)}):``}))}await ue(),h(null)}}async function fe(e,t){if(e===`edit`){f(t),u(!0);return}if(e===`enable`||e===`disable`){if(!t.id)return;await o.mutateAsync({params:{path:{id:t.id}},body:{enabled:e===`enable`}}),U.success(ae()),await ue();return}if(e===`delete`){h({action:e,row:t});return}h({action:e,row:t})}let w=b!==null;return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(rt,{fixed:!0}),(0,$.jsx)(it,{fixed:!0,children:(0,$.jsxs)(`section`,{className:`flex h-full gap-6`,children:[(0,$.jsx)(It,{chains:se,hiddenOnMobile:w,isLoading:r,keyword:g,onKeywordChange:_,onSelect:e=>{y(e),x(e)},selectedPanel:v,totalNodes:S.length}),(0,$.jsx)(`div`,{className:M(`absolute inset-0 start-full z-50 hidden w-full flex-1 flex-col border bg-background shadow-xs sm:static sm:z-auto sm:flex sm:min-w-0 sm:rounded-md sm:border-0 sm:bg-transparent sm:shadow-none`,w&&`inset-s-0 flex`),children:(0,$.jsx)(Lt,{isLoading:i.isLoading,nodes:le,onAction:fe,onBack:()=>x(null),onCreate:()=>{f(null),u(!0)},onRefresh:()=>{i.refetch()}})})]})}),(0,$.jsx)(Dt,{currentRow:d,onOpenChange:u,onSuccess:()=>i.refetch(),open:c}),(0,$.jsx)(mt,{onOpenChange:e=>{e||h(null)},open:!!p,children:(0,$.jsxs)(ft,{children:[(0,$.jsxs)(dt,{children:[(0,$.jsx)(pt,{children:p?.action===`delete`?ne():te()}),(0,$.jsx)(ut,{children:p?re({url:String(p.row.url??``),action:p.action}):null})]}),(0,$.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,$.jsx)(N,{onClick:()=>h(null),variant:`outline`,children:ce()}),(0,$.jsx)(N,{onClick:de,children:l()})]})]})})]})}var zt=Rt;export{zt as component}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{a as t}from"./auth-store-De4Y7PFV.js";import{t as n}from"./router-Z0tUklFK.js";import{t as r}from"./react-CO2uhaBc.js";import{Aa as i,Ba as a,Ca as o,Da as s,Ea as c,Fa as l,Fo as u,Ga as d,Go as f,Ha as p,Ia as m,Ja as h,Ka as g,Ko as _,La as ee,Ma as te,Na as ne,Oa as v,Pa as re,Po as y,Qo as b,Ra as ie,Sa as x,Ta as S,Ts as ae,Ua as oe,Va as C,Wa as se,Xp as ce,_a as le,aa as ue,ba as de,ca as fe,da as w,ea as T,fa as pe,ga as me,ha as he,ia as E,ja as D,ka as ge,la as _e,ma as ve,na as O,oa as ye,pa as be,qa as xe,qo as Se,ra as Ce,sa as we,ss as Te,ta as k,tm as Ee,ua as De,uo as Oe,va as ke,wa as A,xa as Ae,ya as je,za as Me}from"./messages-BOatyqUm.js";import{r as Ne}from"./route-wzPKSRj2.js";import{I as Pe,o as j,r as Fe}from"./search-provider-C-_FQI9C.js";import{i as M,t as N}from"./button-C_NDYaz8.js";import{t as Ie}from"./checkbox-CTHgcB3t.js";import{a as P,c as F,l as Le,r as Re,s as ze,t as Be}from"./dropdown-menu-DzCIpsuG.js";import{a as I,i as L,n as R,r as z,t as B}from"./select-CzebumOF.js";import{t as Ve}from"./separator-CsUemQNs.js";import{t as He}from"./switch-CgoJjvdz.js";import{t as Ue}from"./createLucideIcon-Br0Bd5k2.js";import{a as V,c as We,d as Ge,f as Ke,l as qe,n as Je,o as Ye,r as Xe,s as Ze,t as Qe,u as $e}from"./data-table-1LQSBhN2.js";import{t as et}from"./arrow-left-BpZwGREZ.js";import{t as H}from"./skeleton-CmDjDV1O.js";import{t as tt}from"./ellipsis-74ly4-Wm.js";import{t as nt}from"./empty-state-CxE4wU3V.js";import{n as rt,t as it}from"./main-C1R3Hvq1.js";import{n as at,t as ot}from"./chains-store-DCzO87jZ.js";import{n as st,t as ct}from"./trash-2-9I8lAjeE.js";import{l as lt}from"./command-B_SlhXkX.js";import{i as ut,o as dt,r as ft,s as pt,t as mt}from"./dialog-CZ-2RPb-.js";import{n as U}from"./dist-JOUh6qvR.js";import{a as ht,c as W,n as gt,r as _t,s as vt}from"./zod-rwFXxHlg.js";import{a as G,c as yt,i as K,l as bt,n as q,o as J,s as Y,t as xt}from"./form-KfFEakes.js";import{t as X}from"./input-8zzM34r5.js";import{t as St}from"./page-header-GTtyZFBB.js";import{t as Z}from"./badge-VJlwwTW5.js";import{t as Ct}from"./use-table-url-state-DP0Y4QjR.js";import{t as wt}from"./long-text-DNqlDi0R.js";var Tt=Ue(`stethoscope`,[[`path`,{d:`M11 2v2`,key:`1539x4`}],[`path`,{d:`M5 2v2`,key:`1yf1q8`}],[`path`,{d:`M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1`,key:`rb5t3r`}],[`path`,{d:`M8 15a6 6 0 0 0 12 0v-3`,key:`x18d4x`}],[`circle`,{cx:`20`,cy:`10`,r:`2`,key:`ts1r5v`}]]),Q=e(r(),1),$=Ee(),Et=vt({network:W().min(1,we()),type:_t([`http`,`ws`,`lite`]),purpose:_t([`general`,`manual_verify`,`both`]),url:W().url(ye()),api_key:W().default(``),weight:gt().min(1,ue()),enabled:ht().default(!0)});function Dt({open:e,onOpenChange:n,currentRow:r,onSuccess:i}){let{chains:a}=ot(),o=bt({resolver:yt(Et),defaultValues:{network:``,type:`http`,purpose:`general`,url:``,api_key:``,weight:1,enabled:!0}}),l=t.useMutation(`post`,`/admin/api/v1/rpc-nodes`),d=t.useMutation(`patch`,`/admin/api/v1/rpc-nodes/{id}`);(0,Q.useEffect)(()=>{e&&o.reset({network:r?.network??``,type:r?.type??`http`,purpose:r?.purpose??`general`,url:r?.url??``,api_key:r?.api_key??``,weight:r?.weight??1,enabled:r?.enabled??!0})},[e,r,o]);function f(e){if(r?.id){d.mutate({params:{path:{id:r.id}},body:{url:e.url,api_key:e.api_key,weight:e.weight,enabled:e.enabled,purpose:e.purpose}},{onSuccess:()=>{U.success(_e()),n(!1),i?.()}});return}l.mutate({body:{network:e.network,type:e.type,purpose:e.purpose,url:e.url,api_key:e.api_key,weight:e.weight,enabled:e.enabled}},{onSuccess:()=>{U.success(fe()),n(!1),i?.()}})}let p=l.isPending||d.isPending;return(0,$.jsx)(mt,{onOpenChange:n,open:e,children:(0,$.jsxs)(ft,{children:[(0,$.jsxs)(dt,{children:[(0,$.jsx)(pt,{children:r?le():me()}),(0,$.jsx)(ut,{children:r?he():ve()})]}),(0,$.jsx)(xt,{...o,children:(0,$.jsxs)(`form`,{className:`space-y-4`,onSubmit:o.handleSubmit(f),children:[(0,$.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,$.jsx)(K,{control:o.control,name:`network`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:s()}),(0,$.jsxs)(B,{disabled:!!r,onValueChange:e.onChange,value:e.value,children:[(0,$.jsx)(q,{children:(0,$.jsx)(L,{className:`w-full`,children:(0,$.jsx)(I,{placeholder:Te()})})}),(0,$.jsx)(R,{children:a.filter(e=>!!e.network).map(e=>(0,$.jsx)(z,{value:e.network??``,children:e.display_name??e.network},e.network))})]}),(0,$.jsx)(Y,{})]})}),(0,$.jsx)(K,{control:o.control,name:`type`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:c()}),(0,$.jsxs)(B,{disabled:!!r,onValueChange:e.onChange,value:e.value,children:[(0,$.jsx)(q,{children:(0,$.jsx)(L,{className:`w-full`,children:(0,$.jsx)(I,{placeholder:be()})})}),(0,$.jsxs)(R,{children:[(0,$.jsx)(z,{value:`http`,children:`HTTP`}),(0,$.jsx)(z,{value:`ws`,children:`WebSocket`}),(0,$.jsx)(z,{value:`lite`,children:`TON LiteServer`})]})]}),(0,$.jsx)(Y,{})]})}),(0,$.jsx)(K,{control:o.control,name:`purpose`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:E()}),(0,$.jsxs)(B,{onValueChange:e.onChange,value:e.value,children:[(0,$.jsx)(q,{children:(0,$.jsx)(L,{className:`w-full`,children:(0,$.jsx)(I,{placeholder:Ce()})})}),(0,$.jsxs)(R,{children:[(0,$.jsx)(z,{value:`general`,children:O()}),(0,$.jsx)(z,{value:`manual_verify`,children:k()}),(0,$.jsx)(z,{value:`both`,children:T()})]})]}),(0,$.jsx)(Y,{})]})})]}),(0,$.jsx)(K,{control:o.control,name:`url`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:S()}),(0,$.jsx)(q,{children:(0,$.jsx)(X,{placeholder:`https://api.trongrid.io`,...e})}),(0,$.jsx)(Y,{})]})}),(0,$.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,$.jsx)(K,{control:o.control,name:`api_key`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:`API Key`}),(0,$.jsx)(q,{children:(0,$.jsx)(X,{placeholder:pe(),...e})}),(0,$.jsx)(Y,{})]})}),(0,$.jsx)(K,{control:o.control,name:`weight`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:A()}),(0,$.jsx)(q,{children:(0,$.jsx)(X,{name:e.name,onBlur:e.onBlur,onChange:t=>e.onChange(t.target.value),ref:e.ref,type:`number`,value:String(e.value??``)})}),(0,$.jsx)(Y,{})]})})]}),(0,$.jsx)(K,{control:o.control,name:`enabled`,render:({field:e})=>(0,$.jsxs)(G,{className:`flex flex-row items-center gap-3 rounded-lg border p-3`,children:[(0,$.jsx)(q,{children:(0,$.jsx)(Ie,{checked:e.value,onCheckedChange:t=>e.onChange(!!t)})}),(0,$.jsxs)(`div`,{className:`space-y-1`,children:[(0,$.jsx)(J,{children:w()}),(0,$.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:De()})]})]})}),(0,$.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,$.jsx)(N,{onClick:()=>n(!1),type:`button`,variant:`outline`,children:ce()}),(0,$.jsx)(N,{disabled:p,type:`submit`,children:p?u():y()})]})]})})]})})}function Ot(e){return[{id:`switch`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:b()}),cell:({row:t})=>(0,$.jsx)(He,{checked:!!t.original.enabled,onCheckedChange:()=>e(t.original.enabled?`disable`:`enable`,t.original)}),enableSorting:!1,enableHiding:!1,meta:{label:b(),skeleton:`switch`,sticky:`left`,th:{className:M(`rounded-tl-[inherit]`)}}},{accessorKey:`status`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:D()}),cell:({row:e})=>{let t=e.original.status??`unknown`,n=`bg-slate-500/10 text-slate-600`,r=v();return t===`ok`?(n=`bg-emerald-500/10 text-emerald-600`,r=i()):t===`down`&&(n=`bg-rose-500/10 text-rose-600`,r=ge()),(0,$.jsx)(Z,{className:n,children:r})},filterFn:(e,t,n)=>n.includes(String(e.getValue(t))),meta:{label:D(),skeleton:`badge`}},{accessorKey:`network`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:s()}),cell:({row:e})=>(0,$.jsx)(`div`,{className:`min-w-24 font-medium`,children:e.original.network??`-`}),enableHiding:!1,meta:{label:s(),skeleton:`short`}},{accessorKey:`type`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:c()}),cell:({row:e})=>kt(e.original.type),filterFn:(e,t,n)=>n.includes(String(e.getValue(t)??`general`)),meta:{label:c(),skeleton:`short`}},{accessorKey:`purpose`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:E()}),cell:({row:e})=>{let t=e.original.purpose??`general`,n=O();return t===`manual_verify`?n=k():t===`both`&&(n=T()),(0,$.jsx)(Z,{variant:`outline`,children:n})},filterFn:(e,t,n)=>n.includes(String(e.getValue(t))),meta:{label:E(),skeleton:`badge`}},{accessorKey:`url`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:S()}),cell:({row:e})=>(0,$.jsx)(wt,{className:`min-w-80`,children:e.original.url??`-`}),meta:{label:S(),skeleton:`long`}},{accessorKey:`weight`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:A()}),cell:({row:e})=>e.original.weight??`-`,meta:{label:A(),skeleton:`id`}},{accessorKey:`last_latency_ms`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:o()}),cell:({row:e})=>e.original.last_latency_ms?`${e.original.last_latency_ms} ms`:`-`,meta:{label:o(),skeleton:`id`}},{accessorKey:`last_checked_at`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:x()}),cell:({row:e})=>j(e.original.last_checked_at),meta:{label:x(),skeleton:`date`}},{accessorKey:`api_key`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:`API Key`}),cell:({row:e})=>(0,$.jsx)(wt,{children:e.original.api_key??`-`}),meta:{label:`API Key`,skeleton:`long`}},{accessorKey:`created_at`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:Se()}),cell:({row:e})=>j(e.original.created_at),meta:{label:Se(),skeleton:`date`}},{accessorKey:`updated_at`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:_()}),cell:({row:e})=>j(e.original.updated_at),meta:{label:_(),skeleton:`date`}},{id:`actions`,enableHiding:!1,meta:{label:f(),skeleton:`action`,sticky:`right`,className:M(`w-12`)},cell:({row:t})=>(0,$.jsxs)(Be,{modal:!1,children:[(0,$.jsx)(Le,{asChild:!0,children:(0,$.jsxs)(N,{className:`flex h-8 w-8 p-0 data-[state=open]:bg-muted`,variant:`ghost`,children:[(0,$.jsx)(tt,{className:`h-4 w-4`}),(0,$.jsx)(`span`,{className:`sr-only`,children:`Open menu`})]})}),(0,$.jsxs)(Re,{align:`end`,className:`w-40`,children:[(0,$.jsxs)(P,{onClick:()=>e(`edit`,t.original),children:[ke(),(0,$.jsx)(F,{children:(0,$.jsx)(at,{size:16})})]}),(0,$.jsxs)(P,{onClick:()=>e(`health-check`,t.original),children:[Ae(),(0,$.jsx)(F,{children:(0,$.jsx)(Tt,{size:16})})]}),(0,$.jsx)(ze,{}),(0,$.jsxs)(P,{onClick:()=>e(`delete`,t.original),variant:`destructive`,children:[Oe(),(0,$.jsx)(F,{children:(0,$.jsx)(ct,{size:16})})]})]})]})}]}function kt(e){return e===`http`?`HTTP`:e===`ws`?`WebSocket`:e===`lite`?`TON LiteServer`:e??`-`}var At=Ne(`/_authenticated/rpc/`),jt=[{label:i(),value:`ok`},{label:ge(),value:`down`},{label:v(),value:`unknown`}];function Mt({data:e,isLoading:t,onAction:n,onRefresh:r}){let[i,a]=(0,Q.useState)([]),{globalFilter:o,onGlobalFilterChange:s,columnFilters:l,onColumnFiltersChange:u,pagination:d,onPaginationChange:f,ensurePageInRange:p}=Ct({search:At.useSearch(),navigate:At.useNavigate(),pagination:{defaultPage:1,defaultPageSize:10},globalFilter:{enabled:!0,key:`keyword`},columnFilters:[{columnId:`type`,searchKey:`type`,type:`array`},{columnId:`status`,searchKey:`status`,type:`array`}]}),m=Ye({data:e,columns:(0,Q.useMemo)(()=>Ot(n),[n]),state:{sorting:i,columnFilters:l,globalFilter:o,pagination:d},onSortingChange:a,onColumnFiltersChange:u,onGlobalFilterChange:s,onPaginationChange:f,globalFilterFn:(e,t,n)=>{let r=String(n).toLowerCase();return(e.original.network??``).toLowerCase().includes(r)||(e.original.url??``).toLowerCase().includes(r)},getCoreRowModel:Ze(),getFilteredRowModel:$e(),getPaginationRowModel:Ge(),getSortedRowModel:Ke(),getFacetedRowModel:We(),getFacetedUniqueValues:qe()});(0,Q.useEffect)(()=>{p(m.getPageCount())},[m,p]);let h=[...new Set(e.map(e=>e.type).filter(Boolean))].map(e=>({label:Nt(e),value:e})),g=[{label:O(),value:`general`},{label:k(),value:`manual_verify`},{label:T(),value:`both`}];return(0,$.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,$.jsx)(Qe,{filters:[{columnId:`type`,title:c(),options:h},{columnId:`purpose`,title:E(),options:g},{columnId:`status`,title:D(),options:[...jt]}],onRefresh:r,searchPlaceholder:de(),table:m}),(0,$.jsx)(Xe,{className:`min-w-[1200px]`,emptyText:je(),loading:t,table:m}),(0,$.jsx)(Je,{className:`mt-auto`,table:m})]})}function Nt(e){return e===`http`?`HTTP`:e===`ws`?`WebSocket`:e===`lite`?`TON LiteServer`:e??`-`}var Pt=[`chain-1`,`chain-2`,`chain-3`,`chain-4`,`chain-5`];function Ft({active:e,children:t,onClick:n}){return(0,$.jsx)(`div`,{className:M(`w-full cursor-pointer rounded-lg px-3 py-3 text-left transition-colors hover:bg-accent hover:text-accent-foreground`,e&&`bg-muted`),onClick:n,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),n())},role:`button`,tabIndex:0,children:t})}function It({chains:e,isLoading:t,keyword:n,onKeywordChange:r,selectedPanel:i,onSelect:a,totalNodes:o,hiddenOnMobile:s}){return(0,$.jsxs)(`div`,{className:M(`flex w-full flex-col gap-2 sm:w-56 lg:w-72 2xl:w-80`,s&&`hidden sm:flex`),children:[(0,$.jsxs)(`div`,{className:`sticky top-0 z-10 -mx-4 bg-background px-4 pb-3 shadow-md sm:static sm:z-auto sm:mx-0 sm:p-0 sm:shadow-none`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between py-2`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsx)(`h1`,{className:`font-bold text-2xl`,children:h()}),(0,$.jsx)(Pe,{size:20})]}),(0,$.jsx)(Z,{variant:`secondary`,children:xe({count:String(e.length)})})]}),(0,$.jsxs)(`div`,{className:`relative block`,children:[(0,$.jsx)(lt,{className:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),(0,$.jsx)(X,{className:`pl-9`,onChange:e=>r(e.target.value),placeholder:g(),value:n})]})]}),(0,$.jsxs)(Fe,{className:`-mx-3 h-full overflow-auto p-3`,children:[(0,$.jsx)(Ft,{active:i===`overview`,onClick:()=>a(`overview`),children:(0,$.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsx)(`div`,{className:`font-medium`,children:d()}),(0,$.jsx)(`div`,{className:`mt-1 text-muted-foreground text-xs`,children:se({chains:String(e.length),nodes:String(o)})})]}),(0,$.jsx)(Pe,{className:`mt-0.5 size-4 text-muted-foreground`})]})}),(0,$.jsx)(Ve,{className:`my-1`}),t?Pt.map(e=>(0,$.jsxs)(`div`,{className:`px-3 py-3`,children:[(0,$.jsx)(`div`,{className:`flex items-center justify-between gap-2`,children:(0,$.jsx)(H,{className:`h-4 w-24`})}),(0,$.jsxs)(`div`,{className:`mt-2 flex items-center justify-between gap-2`,children:[(0,$.jsx)(H,{className:`h-3 w-20`}),(0,$.jsx)(H,{className:`h-5 w-12 rounded-full`})]})]},e)):e.map((t,n)=>{let r=t.network??t.display_name??String(n);return(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Ft,{active:i===t.network,onClick:()=>a(t.network??`overview`),children:(0,$.jsx)(`div`,{className:`flex items-start gap-3`,children:(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`div`,{className:`truncate font-medium`,children:t.display_name??oe()}),(0,$.jsxs)(`div`,{className:`mt-1 flex items-center justify-between gap-2`,children:[(0,$.jsx)(`span`,{className:`text-muted-foreground text-xs`,children:p({count:String(t.nodeCount??0)})}),(0,$.jsx)(Z,{className:`shrink-0 text-xs`,variant:`outline`,children:t.network??`-`})]})]})})}),nS.reduce((e,t)=>(t.network&&(e[t.network]=(e[t.network]??0)+1),e),{}),[S]),C=(0,Q.useMemo)(()=>e.map(e=>({...e,nodeCount:e.network?oe[e.network]??0:0})),[e,oe]),se=(0,Q.useMemo)(()=>{let e=g.trim().toLowerCase();return e?C.filter(t=>[t.display_name,t.network].filter(Boolean).some(t=>String(t).toLowerCase().includes(e))):C},[C,g]),le=(0,Q.useMemo)(()=>v===`overview`?S:S.filter(e=>e.network===v),[S,v]);(0,Q.useEffect)(()=>{v!==`overview`&&!e.some(e=>e.network===v)&&(y(`overview`),x(null))},[e,v]);async function ue(){await n.invalidateQueries({queryKey:[`get`,`/admin/api/v1/rpc-nodes`]})}async function de(){if(p?.row.id){if(p.action===`delete`)await a.mutateAsync({params:{path:{id:p.row.id}}}),U.success(ie());else if(p.action===`enable`||p.action===`disable`)await o.mutateAsync({params:{path:{id:p.row.id}},body:{enabled:p.action===`enable`}}),U.success(ae());else if(p.action===`health-check`){let e=await s.mutateAsync({params:{path:{id:p.row.id}}}),t=e.data?.status??`unknown`,n=e.data?.last_latency_ms;U.success(ee({status:t,latency:n?m({latency:String(n)}):``}))}await ue(),h(null)}}async function fe(e,t){if(e===`edit`){f(t),u(!0);return}if(e===`enable`||e===`disable`){if(!t.id)return;await o.mutateAsync({params:{path:{id:t.id}},body:{enabled:e===`enable`}}),U.success(ae()),await ue();return}if(e===`delete`){h({action:e,row:t});return}h({action:e,row:t})}let w=b!==null;return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(rt,{fixed:!0}),(0,$.jsx)(it,{fixed:!0,children:(0,$.jsxs)(`section`,{className:`flex h-full gap-6`,children:[(0,$.jsx)(It,{chains:se,hiddenOnMobile:w,isLoading:r,keyword:g,onKeywordChange:_,onSelect:e=>{y(e),x(e)},selectedPanel:v,totalNodes:S.length}),(0,$.jsx)(`div`,{className:M(`absolute inset-0 start-full z-50 hidden w-full flex-1 flex-col border bg-background shadow-xs sm:static sm:z-auto sm:flex sm:min-w-0 sm:rounded-md sm:border-0 sm:bg-transparent sm:shadow-none`,w&&`inset-s-0 flex`),children:(0,$.jsx)(Lt,{isLoading:i.isLoading,nodes:le,onAction:fe,onBack:()=>x(null),onCreate:()=>{f(null),u(!0)},onRefresh:()=>{i.refetch()}})})]})}),(0,$.jsx)(Dt,{currentRow:d,onOpenChange:u,onSuccess:()=>i.refetch(),open:c}),(0,$.jsx)(mt,{onOpenChange:e=>{e||h(null)},open:!!p,children:(0,$.jsxs)(ft,{children:[(0,$.jsxs)(dt,{children:[(0,$.jsx)(pt,{children:p?.action===`delete`?ne():te()}),(0,$.jsx)(ut,{children:p?re({url:String(p.row.url??``),action:p.action}):null})]}),(0,$.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,$.jsx)(N,{onClick:()=>h(null),variant:`outline`,children:ce()}),(0,$.jsx)(N,{onClick:de,children:l()})]})]})})]})}var zt=Rt;export{zt as component}; \ No newline at end of file diff --git a/src/www/index.html b/src/www/index.html index bcf844a..4cf3f03 100644 --- a/src/www/index.html +++ b/src/www/index.html @@ -155,7 +155,7 @@ content="GMPay 收款管理后台 - 多链 USDT 支付中间件管理面板" > - + @@ -199,7 +199,7 @@ - + diff --git a/src/www/sw.js b/src/www/sw.js index 8067e1c..9b4708f 100644 --- a/src/www/sw.js +++ b/src/www/sw.js @@ -1 +1 @@ -if(!self.define){let s,l={};const e=(e,r)=>(e=new URL(e+".js",r).href,l[e]||new Promise(l=>{if("document"in self){const s=document.createElement("script");s.src=e,s.onload=l,document.head.appendChild(s)}else s=e,importScripts(e),l()}).then(()=>{let s=l[e];if(!s)throw new Error(`Module ${e} didn’t register its module`);return s}));self.define=(r,n)=>{const i=s||("document"in self?document.currentScript.src:"")||location.href;if(l[i])return;let u={};const o=s=>e(s,i),t={module:{uri:i},exports:u,require:o};l[i]=Promise.all(r.map(s=>t[s]||o(s))).then(s=>(n(...s),u))}}define(["./workbox-004510d2"],function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"pwa-maskable-512x512.png",revision:"106b94c2eb0675579ae40309698f364c"},{url:"pwa-maskable-192x192.png",revision:"8befa0caebf24d2e0b01c36e01ab4bd7"},{url:"pwa-512x512.png",revision:"2fcf48a2ae4e95f6d7f4a6bc2cc42a63"},{url:"pwa-192x192.png",revision:"8bc372216f92e2f0e011daff55721ccb"},{url:"favicon.ico",revision:"abba9e0d76413fa735e878d17223cfcb"},{url:"favicon-32x32.png",revision:"0847a57e9d3ae134e314a1339af3516d"},{url:"favicon-16x16.png",revision:"3e5fdc64b0a41f498c177fb2dc89ec6a"},{url:"apple-touch-icon.png",revision:"f9c8240d0509320d85a82bd60a6b426f"},{url:"images/logo.png",revision:"fa701b6a1d714ecf4856df660055eb89"},{url:"assets/zod-rwFXxHlg.js",revision:null},{url:"assets/yaml.contribution-BN-iiJx2.js",revision:null},{url:"assets/yaml-Lx-4NZKN.js",revision:null},{url:"assets/with-selector-DBfssCrY.js",revision:null},{url:"assets/web-vitals-Cb5qXObG.js",revision:null},{url:"assets/wallet-CtiawGS1.js",revision:null},{url:"assets/useStore-CupyIEEP.js",revision:null},{url:"assets/useSearch-Diln-KYh.js",revision:null},{url:"assets/useRouterState-B2FPPjEe.js",revision:null},{url:"assets/useRouter-DtTm7XkK.js",revision:null},{url:"assets/useNavigate-7u4DX0Ho.js",revision:null},{url:"assets/use-table-url-state-DP0Y4QjR.js",revision:null},{url:"assets/unauthorized-error-CtrGmVOn.js",revision:null},{url:"assets/triangle-alert-DB5v_9sS.js",revision:null},{url:"assets/trash-2-9I8lAjeE.js",revision:null},{url:"assets/tooltip-xZuTTfnF.js",revision:null},{url:"assets/theme-switch-CHLQml_8.js",revision:null},{url:"assets/theme-provider-BREWrHp_.js",revision:null},{url:"assets/textarea-C8ejjLzk.js",revision:null},{url:"assets/telescope-DU0wiTDw.js",revision:null},{url:"assets/telegram-Br_DijOI.js",revision:null},{url:"assets/tabs-6Ep1KePr.js",revision:null},{url:"assets/table-9UOy2Vxt.js",revision:null},{url:"assets/system-CzKDOsCg.js",revision:null},{url:"assets/switch-CgoJjvdz.js",revision:null},{url:"assets/sun-JU8p4FoE.js",revision:null},{url:"assets/skeleton-CmDjDV1O.js",revision:null},{url:"assets/sign-in-_ux3l1kN.js",revision:null},{url:"assets/sidebar-nav-LZqaVZGH.js",revision:null},{url:"assets/show-submitted-data-BqZb-_Pf.js",revision:null},{url:"assets/shield-check-MAPDL1u8.js",revision:null},{url:"assets/settings-eRG1_Yuf.js",revision:null},{url:"assets/separator-CsUemQNs.js",revision:null},{url:"assets/send-BNvceEpO.js",revision:null},{url:"assets/select-CzebumOF.js",revision:null},{url:"assets/search-provider-C-_FQI9C.js",revision:null},{url:"assets/rpc-cAFAt1WZ.js",revision:null},{url:"assets/routes-D7HD5c-e.js",revision:null},{url:"assets/router-eyRTkMwc.js",revision:null},{url:"assets/route-wzPKSRj2.js",revision:null},{url:"assets/route-lp7ScXTd.js",revision:null},{url:"assets/route-GrVEK0V1.js",revision:null},{url:"assets/route-DvJeidrw.js",revision:null},{url:"assets/route-D1gzbhTf.js",revision:null},{url:"assets/route-CAiA_U_q.js",revision:null},{url:"assets/route-C6USHQDN.js",revision:null},{url:"assets/redirect-DMNGvjzO.js",revision:null},{url:"assets/react-CO2uhaBc.js",revision:null},{url:"assets/radio-group-D2rceepu.js",revision:null},{url:"assets/preload-helper-DoS0eHac.js",revision:null},{url:"assets/popover-NQZzcPDh.js",revision:null},{url:"assets/payment-setup-BFIKIu1u.js",revision:null},{url:"assets/pay-BNu4n_oI.js",revision:null},{url:"assets/password-input-95hMTMdh.js",revision:null},{url:"assets/password-DElKXGVw.js",revision:null},{url:"assets/page-header-GTtyZFBB.js",revision:null},{url:"assets/orders-C2v2goOf.js",revision:null},{url:"assets/okpay-D5pTA_4W.js",revision:null},{url:"assets/nunito-vietnamese-wght-normal-U01xdrZh.woff2",revision:null},{url:"assets/nunito-latin-wght-normal-BzFMHfZw.woff2",revision:null},{url:"assets/nunito-latin-ext-wght-normal-CXYtwYOx.woff2",revision:null},{url:"assets/nunito-cyrillic-wght-normal-CY6AOgYE.woff2",revision:null},{url:"assets/nunito-cyrillic-ext-wght-normal-D4X5GqEv.woff2",revision:null},{url:"assets/noto-sans-vietnamese-wght-normal-DLTJy58D.woff2",revision:null},{url:"assets/noto-sans-latin-wght-normal-BYSzYMf3.woff2",revision:null},{url:"assets/noto-sans-latin-ext-wght-normal-W1qJv59z.woff2",revision:null},{url:"assets/noto-sans-greek-wght-normal-Ymb6dZNd.woff2",revision:null},{url:"assets/noto-sans-greek-ext-wght-normal-12T8GTDR.woff2",revision:null},{url:"assets/noto-sans-devanagari-wght-normal-Cv-Vwajv.woff2",revision:null},{url:"assets/noto-sans-cyrillic-wght-normal-B2hlT84T.woff2",revision:null},{url:"assets/noto-sans-cyrillic-ext-wght-normal-DSNfmdVt.woff2",revision:null},{url:"assets/notifications-xdKOW8nn.js",revision:null},{url:"assets/not-found-error-BvJzTnw0.js",revision:null},{url:"assets/monaco.contribution-BNCqMH44.js",revision:null},{url:"assets/messages-BOatyqUm.js",revision:null},{url:"assets/matchContext-BFCdcHzo.js",revision:null},{url:"assets/markdown.contribution-FtzundBn.js",revision:null},{url:"assets/markdown-rghzeErz.js",revision:null},{url:"assets/manrope-vietnamese-wght-normal-usUDDRr7.woff2",revision:null},{url:"assets/manrope-latin-wght-normal-DHIcAJRg.woff2",revision:null},{url:"assets/manrope-latin-ext-wght-normal-Ch3YOpNY.woff2",revision:null},{url:"assets/manrope-greek-wght-normal-DL7QRZyv.woff2",revision:null},{url:"assets/manrope-cyrillic-wght-normal-Dvxsihut.woff2",revision:null},{url:"assets/maintenance-error-DeZhljU8.js",revision:null},{url:"assets/main-C1R3Hvq1.js",revision:null},{url:"assets/long-text-DNqlDi0R.js",revision:null},{url:"assets/logo-agrtpj2n.js",revision:null},{url:"assets/loader-circle-DpEz1fQv.js",revision:null},{url:"assets/link-DPnL8P5J.js",revision:null},{url:"assets/lib-DDezYSnW.js",revision:null},{url:"assets/lazyRouteComponent-JF8ipq5d.js",revision:null},{url:"assets/labels-Cbc2zlmv.js",revision:null},{url:"assets/label-DNL0sHKL.js",revision:null},{url:"assets/keys-DvE6Ll4y.js",revision:null},{url:"assets/jsonMode-DjuQ1ZC5.js",revision:null},{url:"assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2",revision:null},{url:"assets/inter-latin-wght-normal-Dx4kXJAl.woff2",revision:null},{url:"assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2",revision:null},{url:"assets/inter-greek-wght-normal-CkhJZR-_.woff2",revision:null},{url:"assets/inter-greek-ext-wght-normal-DlzME5K_.woff2",revision:null},{url:"assets/inter-cyrillic-wght-normal-DqGufNeO.woff2",revision:null},{url:"assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2",revision:null},{url:"assets/integrations-Clnk2I57.js",revision:null},{url:"assets/install-B-GE7uWS.js",revision:null},{url:"assets/input-8zzM34r5.js",revision:null},{url:"assets/index-CSgdIpTt.css",revision:null},{url:"assets/index-3E84QvKw.js",revision:null},{url:"assets/html.contribution-Baf-XjFx.js",revision:null},{url:"assets/html-Dtt1eLDu.js",revision:null},{url:"assets/help-Bq6Uj7UY.js",revision:null},{url:"assets/header-DVAsq5d6.js",revision:null},{url:"assets/handlebars-d5Fb_oR7.js",revision:null},{url:"assets/go.contribution-BmlX-a-9.js",revision:null},{url:"assets/go-leGpQeN8.js",revision:null},{url:"assets/general-error-BoAB2alm.js",revision:null},{url:"assets/form-KfFEakes.js",revision:null},{url:"assets/forbidden-CgQyYxDt.js",revision:null},{url:"assets/font-provider-BPsIRWbb.js",revision:null},{url:"assets/eye-off-B8hO0oST.js",revision:null},{url:"assets/eye-DAKGLydt.js",revision:null},{url:"assets/es2015-DT8UeWzs.js",revision:null},{url:"assets/es-fZtL7B9U.js",revision:null},{url:"assets/es-Ddhai3Z6.css",revision:null},{url:"assets/epusdt-BvGYu9TV.js",revision:null},{url:"assets/epay-BPdlNSqh.js",revision:null},{url:"assets/empty-state-CxE4wU3V.js",revision:null},{url:"assets/ellipsis-74ly4-Wm.js",revision:null},{url:"assets/dropdown-menu-DzCIpsuG.js",revision:null},{url:"assets/download-fYUtNZ3R.js",revision:null},{url:"assets/dist-rcWP-8Cu.js",revision:null},{url:"assets/dist-iiotRAEO.js",revision:null},{url:"assets/dist-ZdRQQNeu.js",revision:null},{url:"assets/dist-JOUh6qvR.js",revision:null},{url:"assets/dist-DvwKOQ8R.js",revision:null},{url:"assets/dist-Dtn5c_cx.js",revision:null},{url:"assets/dist-DPPquN_M.js",revision:null},{url:"assets/dist-D4X8zGEB.js",revision:null},{url:"assets/dist-D0DoWChj.js",revision:null},{url:"assets/dist-CsIb2aLK.js",revision:null},{url:"assets/dist-Cc8_LDAq.js",revision:null},{url:"assets/dist-CRowTfGU.js",revision:null},{url:"assets/dist-CHFjpVqk.js",revision:null},{url:"assets/dist-C5heX0fx.js",revision:null},{url:"assets/dist-BixeH3nX.js",revision:null},{url:"assets/dist-BNFQuJTu.js",revision:null},{url:"assets/display-CqGwMVHS.js",revision:null},{url:"assets/dialog-CZ-2RPb-.js",revision:null},{url:"assets/data-table-1LQSBhN2.js",revision:null},{url:"assets/dashboard-C_GaAVh0.js",revision:null},{url:"assets/crypto-icon-DnliVYVs.js",revision:null},{url:"assets/createLucideIcon-Br0Bd5k2.js",revision:null},{url:"assets/copy-to-clipboard-C1tj4a8X.js",revision:null},{url:"assets/cookies-BzZOQYPw.js",revision:null},{url:"assets/confirm-dialog-D1L-0EhT.js",revision:null},{url:"assets/command-B_SlhXkX.js",revision:null},{url:"assets/coming-soon-dialog-B34F88bO.js",revision:null},{url:"assets/clsx-D9aGYY3V.js",revision:null},{url:"assets/chunk-DECur_0Z.js",revision:null},{url:"assets/chevrons-up-down-BPquKoYJ.js",revision:null},{url:"assets/chevron-down-BB5h1CsX.js",revision:null},{url:"assets/checkout-model-CQ3aqlob.js",revision:null},{url:"assets/checkbox-CTHgcB3t.js",revision:null},{url:"assets/check-CHp0nSkR.js",revision:null},{url:"assets/chains-store-DCzO87jZ.js",revision:null},{url:"assets/chains-D5PNpB55.js",revision:null},{url:"assets/card-DiF5YaRi.js",revision:null},{url:"assets/button-C_NDYaz8.js",revision:null},{url:"assets/badge-VJlwwTW5.js",revision:null},{url:"assets/auth-store-De4Y7PFV.js",revision:null},{url:"assets/auth-animation-context-CmPA3sF3.js",revision:null},{url:"assets/atom-DQpaPCwp.js",revision:null},{url:"assets/arrow-left-right-CcCrkQiR.js",revision:null},{url:"assets/arrow-left-BpZwGREZ.js",revision:null},{url:"assets/appearance-Cl8fvRSv.js",revision:null},{url:"assets/addresses-CNbxs6Fb.js",revision:null},{url:"assets/_trade_id-DIf2n6tl.js",revision:null},{url:"assets/_trade_id-CrABgEyD.js",revision:null},{url:"assets/_error-CtV7sHbI.js",revision:null},{url:"assets/_error-BWjxg4aC.js",revision:null},{url:"assets/_.contribution-CaUqztrQ.js",revision:null},{url:"assets/Matches-9qnXJNrS.js",revision:null},{url:"assets/Match-DrG03Wse.js",revision:null},{url:"assets/ClientOnly-Bj5CESUC.js",revision:null},{url:"assets/503-DqC0HW48.js",revision:null},{url:"assets/500-Ch8AmacC.js",revision:null},{url:"assets/404-pq4P7jD8.js",revision:null},{url:"assets/403-DfLmRqHM.js",revision:null},{url:"assets/401-CvFvdOr5.js",revision:null},{url:"apple-touch-icon.png",revision:"f9c8240d0509320d85a82bd60a6b426f"},{url:"favicon.ico",revision:"abba9e0d76413fa735e878d17223cfcb"},{url:"pwa-192x192.png",revision:"8bc372216f92e2f0e011daff55721ccb"},{url:"pwa-512x512.png",revision:"2fcf48a2ae4e95f6d7f4a6bc2cc42a63"},{url:"pwa-maskable-192x192.png",revision:"8befa0caebf24d2e0b01c36e01ab4bd7"},{url:"pwa-maskable-512x512.png",revision:"106b94c2eb0675579ae40309698f364c"},{url:"robots.txt",revision:"fa1ded1ed7c11438a9b0385b1e112850"},{url:"images/logo.png",revision:"fa701b6a1d714ecf4856df660055eb89"},{url:"manifest.webmanifest",revision:"8d2924aafc68495c2adffcd2b8cff2c1"}],{}),s.cleanupOutdatedCaches()}); +if(!self.define){let s,l={};const e=(e,r)=>(e=new URL(e+".js",r).href,l[e]||new Promise(l=>{if("document"in self){const s=document.createElement("script");s.src=e,s.onload=l,document.head.appendChild(s)}else s=e,importScripts(e),l()}).then(()=>{let s=l[e];if(!s)throw new Error(`Module ${e} didn’t register its module`);return s}));self.define=(r,n)=>{const i=s||("document"in self?document.currentScript.src:"")||location.href;if(l[i])return;let u={};const o=s=>e(s,i),t={module:{uri:i},exports:u,require:o};l[i]=Promise.all(r.map(s=>t[s]||o(s))).then(s=>(n(...s),u))}}define(["./workbox-004510d2"],function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"pwa-maskable-512x512.png",revision:"106b94c2eb0675579ae40309698f364c"},{url:"pwa-maskable-192x192.png",revision:"8befa0caebf24d2e0b01c36e01ab4bd7"},{url:"pwa-512x512.png",revision:"2fcf48a2ae4e95f6d7f4a6bc2cc42a63"},{url:"pwa-192x192.png",revision:"8bc372216f92e2f0e011daff55721ccb"},{url:"favicon.ico",revision:"abba9e0d76413fa735e878d17223cfcb"},{url:"favicon-32x32.png",revision:"0847a57e9d3ae134e314a1339af3516d"},{url:"favicon-16x16.png",revision:"3e5fdc64b0a41f498c177fb2dc89ec6a"},{url:"apple-touch-icon.png",revision:"f9c8240d0509320d85a82bd60a6b426f"},{url:"images/logo.png",revision:"fa701b6a1d714ecf4856df660055eb89"},{url:"assets/zod-rwFXxHlg.js",revision:null},{url:"assets/yaml.contribution-BN-iiJx2.js",revision:null},{url:"assets/yaml-Lx-4NZKN.js",revision:null},{url:"assets/with-selector-DBfssCrY.js",revision:null},{url:"assets/web-vitals-Cb5qXObG.js",revision:null},{url:"assets/wallet-CtiawGS1.js",revision:null},{url:"assets/useStore-CupyIEEP.js",revision:null},{url:"assets/useSearch-Diln-KYh.js",revision:null},{url:"assets/useRouterState-B2FPPjEe.js",revision:null},{url:"assets/useRouter-DtTm7XkK.js",revision:null},{url:"assets/useNavigate-7u4DX0Ho.js",revision:null},{url:"assets/use-table-url-state-DP0Y4QjR.js",revision:null},{url:"assets/unauthorized-error-CtrGmVOn.js",revision:null},{url:"assets/triangle-alert-DB5v_9sS.js",revision:null},{url:"assets/trash-2-9I8lAjeE.js",revision:null},{url:"assets/tooltip-xZuTTfnF.js",revision:null},{url:"assets/theme-switch-CHLQml_8.js",revision:null},{url:"assets/theme-provider-BREWrHp_.js",revision:null},{url:"assets/textarea-C8ejjLzk.js",revision:null},{url:"assets/telescope-DU0wiTDw.js",revision:null},{url:"assets/telegram-Br_DijOI.js",revision:null},{url:"assets/tabs-6Ep1KePr.js",revision:null},{url:"assets/table-9UOy2Vxt.js",revision:null},{url:"assets/system-CzKDOsCg.js",revision:null},{url:"assets/switch-CgoJjvdz.js",revision:null},{url:"assets/sun-JU8p4FoE.js",revision:null},{url:"assets/skeleton-CmDjDV1O.js",revision:null},{url:"assets/sign-in-_ux3l1kN.js",revision:null},{url:"assets/sidebar-nav-LZqaVZGH.js",revision:null},{url:"assets/show-submitted-data-BqZb-_Pf.js",revision:null},{url:"assets/shield-check-MAPDL1u8.js",revision:null},{url:"assets/settings-eRG1_Yuf.js",revision:null},{url:"assets/separator-CsUemQNs.js",revision:null},{url:"assets/send-BNvceEpO.js",revision:null},{url:"assets/select-CzebumOF.js",revision:null},{url:"assets/search-provider-C-_FQI9C.js",revision:null},{url:"assets/rpc-D7fjJcmI.js",revision:null},{url:"assets/routes-D7HD5c-e.js",revision:null},{url:"assets/router-Z0tUklFK.js",revision:null},{url:"assets/route-wzPKSRj2.js",revision:null},{url:"assets/route-lp7ScXTd.js",revision:null},{url:"assets/route-GrVEK0V1.js",revision:null},{url:"assets/route-DvJeidrw.js",revision:null},{url:"assets/route-D1gzbhTf.js",revision:null},{url:"assets/route-CAiA_U_q.js",revision:null},{url:"assets/route-C6USHQDN.js",revision:null},{url:"assets/redirect-DMNGvjzO.js",revision:null},{url:"assets/react-CO2uhaBc.js",revision:null},{url:"assets/radio-group-D2rceepu.js",revision:null},{url:"assets/preload-helper-DoS0eHac.js",revision:null},{url:"assets/popover-NQZzcPDh.js",revision:null},{url:"assets/payment-setup-BFIKIu1u.js",revision:null},{url:"assets/pay-BNu4n_oI.js",revision:null},{url:"assets/password-input-95hMTMdh.js",revision:null},{url:"assets/password-DElKXGVw.js",revision:null},{url:"assets/page-header-GTtyZFBB.js",revision:null},{url:"assets/orders-oloW11KP.js",revision:null},{url:"assets/okpay-D5pTA_4W.js",revision:null},{url:"assets/nunito-vietnamese-wght-normal-U01xdrZh.woff2",revision:null},{url:"assets/nunito-latin-wght-normal-BzFMHfZw.woff2",revision:null},{url:"assets/nunito-latin-ext-wght-normal-CXYtwYOx.woff2",revision:null},{url:"assets/nunito-cyrillic-wght-normal-CY6AOgYE.woff2",revision:null},{url:"assets/nunito-cyrillic-ext-wght-normal-D4X5GqEv.woff2",revision:null},{url:"assets/noto-sans-vietnamese-wght-normal-DLTJy58D.woff2",revision:null},{url:"assets/noto-sans-latin-wght-normal-BYSzYMf3.woff2",revision:null},{url:"assets/noto-sans-latin-ext-wght-normal-W1qJv59z.woff2",revision:null},{url:"assets/noto-sans-greek-wght-normal-Ymb6dZNd.woff2",revision:null},{url:"assets/noto-sans-greek-ext-wght-normal-12T8GTDR.woff2",revision:null},{url:"assets/noto-sans-devanagari-wght-normal-Cv-Vwajv.woff2",revision:null},{url:"assets/noto-sans-cyrillic-wght-normal-B2hlT84T.woff2",revision:null},{url:"assets/noto-sans-cyrillic-ext-wght-normal-DSNfmdVt.woff2",revision:null},{url:"assets/notifications-xdKOW8nn.js",revision:null},{url:"assets/not-found-error-BvJzTnw0.js",revision:null},{url:"assets/monaco.contribution-BNCqMH44.js",revision:null},{url:"assets/messages-BOatyqUm.js",revision:null},{url:"assets/matchContext-BFCdcHzo.js",revision:null},{url:"assets/markdown.contribution-FtzundBn.js",revision:null},{url:"assets/markdown-rghzeErz.js",revision:null},{url:"assets/manrope-vietnamese-wght-normal-usUDDRr7.woff2",revision:null},{url:"assets/manrope-latin-wght-normal-DHIcAJRg.woff2",revision:null},{url:"assets/manrope-latin-ext-wght-normal-Ch3YOpNY.woff2",revision:null},{url:"assets/manrope-greek-wght-normal-DL7QRZyv.woff2",revision:null},{url:"assets/manrope-cyrillic-wght-normal-Dvxsihut.woff2",revision:null},{url:"assets/maintenance-error-DeZhljU8.js",revision:null},{url:"assets/main-C1R3Hvq1.js",revision:null},{url:"assets/long-text-DNqlDi0R.js",revision:null},{url:"assets/logo-agrtpj2n.js",revision:null},{url:"assets/loader-circle-DpEz1fQv.js",revision:null},{url:"assets/link-DPnL8P5J.js",revision:null},{url:"assets/lib-DDezYSnW.js",revision:null},{url:"assets/lazyRouteComponent-JF8ipq5d.js",revision:null},{url:"assets/labels-Cbc2zlmv.js",revision:null},{url:"assets/label-DNL0sHKL.js",revision:null},{url:"assets/keys-D0eVvlbn.js",revision:null},{url:"assets/jsonMode-DjuQ1ZC5.js",revision:null},{url:"assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2",revision:null},{url:"assets/inter-latin-wght-normal-Dx4kXJAl.woff2",revision:null},{url:"assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2",revision:null},{url:"assets/inter-greek-wght-normal-CkhJZR-_.woff2",revision:null},{url:"assets/inter-greek-ext-wght-normal-DlzME5K_.woff2",revision:null},{url:"assets/inter-cyrillic-wght-normal-DqGufNeO.woff2",revision:null},{url:"assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2",revision:null},{url:"assets/integrations-Clnk2I57.js",revision:null},{url:"assets/install-_AmBcHKu.js",revision:null},{url:"assets/input-8zzM34r5.js",revision:null},{url:"assets/index-CSgdIpTt.css",revision:null},{url:"assets/index-Bhi1y2zc.js",revision:null},{url:"assets/html.contribution-Baf-XjFx.js",revision:null},{url:"assets/html-Dtt1eLDu.js",revision:null},{url:"assets/help-Bq6Uj7UY.js",revision:null},{url:"assets/header-DVAsq5d6.js",revision:null},{url:"assets/handlebars-d5Fb_oR7.js",revision:null},{url:"assets/go.contribution-BmlX-a-9.js",revision:null},{url:"assets/go-leGpQeN8.js",revision:null},{url:"assets/general-error-BoAB2alm.js",revision:null},{url:"assets/form-KfFEakes.js",revision:null},{url:"assets/forbidden-CgQyYxDt.js",revision:null},{url:"assets/font-provider-BPsIRWbb.js",revision:null},{url:"assets/eye-off-B8hO0oST.js",revision:null},{url:"assets/eye-DAKGLydt.js",revision:null},{url:"assets/es2015-DT8UeWzs.js",revision:null},{url:"assets/es-fZtL7B9U.js",revision:null},{url:"assets/es-Ddhai3Z6.css",revision:null},{url:"assets/epusdt-BvGYu9TV.js",revision:null},{url:"assets/epay-BPdlNSqh.js",revision:null},{url:"assets/empty-state-CxE4wU3V.js",revision:null},{url:"assets/ellipsis-74ly4-Wm.js",revision:null},{url:"assets/dropdown-menu-DzCIpsuG.js",revision:null},{url:"assets/download-fYUtNZ3R.js",revision:null},{url:"assets/dist-rcWP-8Cu.js",revision:null},{url:"assets/dist-iiotRAEO.js",revision:null},{url:"assets/dist-ZdRQQNeu.js",revision:null},{url:"assets/dist-JOUh6qvR.js",revision:null},{url:"assets/dist-DvwKOQ8R.js",revision:null},{url:"assets/dist-Dtn5c_cx.js",revision:null},{url:"assets/dist-DPPquN_M.js",revision:null},{url:"assets/dist-D4X8zGEB.js",revision:null},{url:"assets/dist-D0DoWChj.js",revision:null},{url:"assets/dist-CsIb2aLK.js",revision:null},{url:"assets/dist-Cc8_LDAq.js",revision:null},{url:"assets/dist-CRowTfGU.js",revision:null},{url:"assets/dist-CHFjpVqk.js",revision:null},{url:"assets/dist-C5heX0fx.js",revision:null},{url:"assets/dist-BixeH3nX.js",revision:null},{url:"assets/dist-BNFQuJTu.js",revision:null},{url:"assets/display-CqGwMVHS.js",revision:null},{url:"assets/dialog-CZ-2RPb-.js",revision:null},{url:"assets/data-table-1LQSBhN2.js",revision:null},{url:"assets/dashboard-C_GaAVh0.js",revision:null},{url:"assets/crypto-icon-DnliVYVs.js",revision:null},{url:"assets/createLucideIcon-Br0Bd5k2.js",revision:null},{url:"assets/copy-to-clipboard-C1tj4a8X.js",revision:null},{url:"assets/cookies-BzZOQYPw.js",revision:null},{url:"assets/confirm-dialog-D1L-0EhT.js",revision:null},{url:"assets/command-B_SlhXkX.js",revision:null},{url:"assets/coming-soon-dialog-B34F88bO.js",revision:null},{url:"assets/clsx-D9aGYY3V.js",revision:null},{url:"assets/chunk-DECur_0Z.js",revision:null},{url:"assets/chevrons-up-down-BPquKoYJ.js",revision:null},{url:"assets/chevron-down-BB5h1CsX.js",revision:null},{url:"assets/checkout-model-CQ3aqlob.js",revision:null},{url:"assets/checkbox-CTHgcB3t.js",revision:null},{url:"assets/check-CHp0nSkR.js",revision:null},{url:"assets/chains-store-DCzO87jZ.js",revision:null},{url:"assets/chains-BMgOL_QE.js",revision:null},{url:"assets/card-DiF5YaRi.js",revision:null},{url:"assets/button-C_NDYaz8.js",revision:null},{url:"assets/badge-VJlwwTW5.js",revision:null},{url:"assets/auth-store-De4Y7PFV.js",revision:null},{url:"assets/auth-animation-context-CmPA3sF3.js",revision:null},{url:"assets/atom-DQpaPCwp.js",revision:null},{url:"assets/arrow-left-right-CcCrkQiR.js",revision:null},{url:"assets/arrow-left-BpZwGREZ.js",revision:null},{url:"assets/appearance-Cl8fvRSv.js",revision:null},{url:"assets/addresses-lQocmp_u.js",revision:null},{url:"assets/_trade_id-DIf2n6tl.js",revision:null},{url:"assets/_trade_id-CrABgEyD.js",revision:null},{url:"assets/_error-CtV7sHbI.js",revision:null},{url:"assets/_error-BWjxg4aC.js",revision:null},{url:"assets/_.contribution-CaUqztrQ.js",revision:null},{url:"assets/Matches-9qnXJNrS.js",revision:null},{url:"assets/Match-DrG03Wse.js",revision:null},{url:"assets/ClientOnly-Bj5CESUC.js",revision:null},{url:"assets/503-DqC0HW48.js",revision:null},{url:"assets/500-Ch8AmacC.js",revision:null},{url:"assets/404-pq4P7jD8.js",revision:null},{url:"assets/403-DfLmRqHM.js",revision:null},{url:"assets/401-CvFvdOr5.js",revision:null},{url:"apple-touch-icon.png",revision:"f9c8240d0509320d85a82bd60a6b426f"},{url:"favicon.ico",revision:"abba9e0d76413fa735e878d17223cfcb"},{url:"pwa-192x192.png",revision:"8bc372216f92e2f0e011daff55721ccb"},{url:"pwa-512x512.png",revision:"2fcf48a2ae4e95f6d7f4a6bc2cc42a63"},{url:"pwa-maskable-192x192.png",revision:"8befa0caebf24d2e0b01c36e01ab4bd7"},{url:"pwa-maskable-512x512.png",revision:"106b94c2eb0675579ae40309698f364c"},{url:"robots.txt",revision:"fa1ded1ed7c11438a9b0385b1e112850"},{url:"images/logo.png",revision:"fa701b6a1d714ecf4856df660055eb89"},{url:"manifest.webmanifest",revision:"8d2924aafc68495c2adffcd2b8cff2c1"}],{}),s.cleanupOutdatedCaches()}); From 642ea0ebe2ceca697160130cc95d7aba75a69967 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 29 Jun 2026 09:35:39 +0000 Subject: [PATCH 8/8] chore(www): sync frontend build --- src/www/assets/401-CvFvdOr5.js | 1 - src/www/assets/401-QZok9O_U.js | 1 + src/www/assets/403-CHgXHRv0.js | 1 + src/www/assets/403-DfLmRqHM.js | 1 - src/www/assets/404-Dw3fTvCr.js | 1 + src/www/assets/404-pq4P7jD8.js | 1 - src/www/assets/500-CK1ovRtb.js | 1 + src/www/assets/500-Ch8AmacC.js | 1 - src/www/assets/503-BF-pGOH4.js | 1 + src/www/assets/503-DqC0HW48.js | 1 - ...nly-Bj5CESUC.js => ClientOnly-DHd0jlDY.js} | 2 +- .../{Match-DrG03Wse.js => Match-onTP_fNL.js} | 2 +- ...atches-9qnXJNrS.js => Matches-CiQgu9ui.js} | 2 +- src/www/assets/_error-BWjxg4aC.js | 1 - src/www/assets/_error-CtV7sHbI.js | 2 - src/www/assets/_error-D2USOC7M.js | 1 + src/www/assets/_error-DypydLD1.js | 2 + ...e_id-CrABgEyD.js => _trade_id-BUpVePSs.js} | 2 +- src/www/assets/_trade_id-CdBtzygm.js | 2 + src/www/assets/_trade_id-DIf2n6tl.js | 2 - ...sses-lQocmp_u.js => addresses-CHUp3WnH.js} | 2 +- ...nce-Cl8fvRSv.js => appearance-vgBRUuwE.js} | 2 +- ....js => auth-animation-context-Cac9Wtyr.js} | 2 +- ...ore-De4Y7PFV.js => auth-store-8ocF_FHU.js} | 2 +- .../{badge-VJlwwTW5.js => badge-BRKB3301.js} | 2 +- ...{button-C_NDYaz8.js => button-NLSeBFht.js} | 2 +- .../{card-DiF5YaRi.js => card-wpWrYqj9.js} | 2 +- ...{chains-BMgOL_QE.js => chains-CeMUj04i.js} | 2 +- ...e-DCzO87jZ.js => chains-store-CMJvgCLb.js} | 2 +- ...ckbox-CTHgcB3t.js => checkbox-DcRUgRHr.js} | 2 +- ...88bO.js => coming-soon-dialog-CN8U5tTP.js} | 2 +- ...ommand-B_SlhXkX.js => command-vy8966UO.js} | 2 +- ...D1L-0EhT.js => confirm-dialog-Crc1Jrzv.js} | 2 +- ...on-DnliVYVs.js => crypto-icon-BPgcAvNF.js} | 2 +- ...oard-C_GaAVh0.js => dashboard-CicUP9sI.js} | 2 +- ...ble-1LQSBhN2.js => data-table-DC6T69tr.js} | 2 +- ...{dialog-CZ-2RPb-.js => dialog-CtyiwzAl.js} | 2 +- ...isplay-CqGwMVHS.js => display-Zi7WWfTl.js} | 2 +- .../{dist-ZdRQQNeu.js => dist-B0pRVbY9.js} | 2 +- .../{dist-DvwKOQ8R.js => dist-BZMqLvO-.js} | 2 +- .../{dist-BNFQuJTu.js => dist-CGRahgI2.js} | 2 +- .../{dist-Dtn5c_cx.js => dist-CjidLXaw.js} | 2 +- .../{dist-Cc8_LDAq.js => dist-D3WFT-Yo.js} | 2 +- .../{dist-C5heX0fx.js => dist-DA1qWiix.js} | 2 +- .../{dist-CsIb2aLK.js => dist-DB-jLX48.js} | 2 +- .../{dist-iiotRAEO.js => dist-DPYswSIO.js} | 2 +- .../{dist-JOUh6qvR.js => dist-Dd-sCJIt.js} | 2 +- .../{dist-D0DoWChj.js => dist-DhcQhr4B.js} | 2 +- .../{dist-DPPquN_M.js => dist-DmeeHi7K.js} | 2 +- .../{dist-D4X8zGEB.js => dist-SR6sl-WU.js} | 2 +- .../{dist-CHFjpVqk.js => dist-UaPzzPYf.js} | 2 +- .../{dist-rcWP-8Cu.js => dist-esC74fSg.js} | 2 +- ...-DzCIpsuG.js => dropdown-menu-D72UcvWG.js} | 2 +- ...-CF-kC0wX.js => editor.client-BI4ACpIS.js} | 2 +- ...te-CxE4wU3V.js => empty-state-BtKoq2f4.js} | 2 +- .../{epay-BPdlNSqh.js => epay-CMHO4eMB.js} | 2 +- ...{epusdt-BvGYu9TV.js => epusdt-DDJlVqbb.js} | 2 +- ...{es2015-DT8UeWzs.js => es2015-3J9GnV9P.js} | 2 +- ...-BPsIRWbb.js => font-provider-C4_iupSb.js} | 2 +- ...dden-CgQyYxDt.js => forbidden-BCyOYrFV.js} | 2 +- .../{form-KfFEakes.js => form-C_YekIvK.js} | 2 +- ...-BoAB2alm.js => general-error-Drsf0vjz.js} | 2 +- ...{header-DVAsq5d6.js => header-vUJd_CA5.js} | 2 +- .../{help-Bq6Uj7UY.js => help-CuVF-_N9.js} | 2 +- .../{index-Bhi1y2zc.js => index-CbzpCBgq.js} | 2 +- .../{input-8zzM34r5.js => input-DAqep8ZY.js} | 2 +- ...nstall-_AmBcHKu.js => install-Dx6W4swz.js} | 2 +- ...s-Clnk2I57.js => integrations-vDkEDNxG.js} | 2 +- .../{keys-D0eVvlbn.js => keys-CMptb3PN.js} | 2 +- .../{label-DNL0sHKL.js => label-DohxFN8a.js} | 2 +- ...{labels-Cbc2zlmv.js => labels-CQIGkPR0.js} | 2 +- ...pq5d.js => lazyRouteComponent-CleTUoKA.js} | 2 +- .../{lib-DDezYSnW.js => lib-Ku8Lh36m.js} | 2 +- .../{link-DPnL8P5J.js => link-6i3yGmK_.js} | 2 +- src/www/assets/logo-CBibDHP9.js | 1 + src/www/assets/logo-agrtpj2n.js | 1 - ...text-DNqlDi0R.js => long-text-COpCfVI1.js} | 2 +- .../{main-C1R3Hvq1.js => main-CTY49s_f.js} | 2 +- ...hljU8.js => maintenance-error-lgcDljP-.js} | 2 +- src/www/assets/messages-BOatyqUm.js | 1 - src/www/assets/messages-CL4J6BaJ.js | 1 + ...vJzTnw0.js => not-found-error-D4F_Uu-C.js} | 2 +- ...-xdKOW8nn.js => notifications-ugCUkcwq.js} | 2 +- .../{okpay-D5pTA_4W.js => okpay-D8DSnOJb.js} | 2 +- ...{orders-oloW11KP.js => orders-BVHCgRn-.js} | 2 +- ...er-GTtyZFBB.js => page-header-B7O10aw9.js} | 2 +- ...sword-DElKXGVw.js => password-CAMOij5G.js} | 2 +- ...95hMTMdh.js => password-input-D9YsRteD.js} | 2 +- .../{pay-BNu4n_oI.js => pay-B10TXgVj.js} | 4 +- ...-BFIKIu1u.js => payment-setup-CnYyeayi.js} | 2 +- ...opover-NQZzcPDh.js => popover-Y5WNf1yM.js} | 2 +- ...up-D2rceepu.js => radio-group-yaBPIkVa.js} | 2 +- .../{route-D1gzbhTf.js => route-B4K1KfXt.js} | 2 +- .../{route-lp7ScXTd.js => route-BfeN1Yu9.js} | 2 +- .../{route-GrVEK0V1.js => route-CyGJTo_g.js} | 2 +- .../{route-C6USHQDN.js => route-DJLBMX6x.js} | 2 +- .../{route-DvJeidrw.js => route-DYctbiZb.js} | 2 +- .../{route-CAiA_U_q.js => route-DcIGa4_b.js} | 2 +- .../{route-wzPKSRj2.js => route-gtb8yu3E.js} | 2 +- ...{router-Z0tUklFK.js => router-xxaOxfVd.js} | 4 +- .../{rpc-D7fjJcmI.js => rpc-FxQRMB98.js} | 2 +- ...-_FQI9C.js => search-provider-CTRbHqNx.js} | 2 +- ...{select-CzebumOF.js => select-D2uO5-De.js} | 2 +- ...ator-CsUemQNs.js => separator-CqhQIQ-B.js} | 2 +- ...tings-eRG1_Yuf.js => settings-DskxyKWx.js} | 2 +- ..._Pf.js => show-submitted-data-DwaVTW9K.js} | 2 +- ...av-LZqaVZGH.js => sidebar-nav-CrEhVF-o.js} | 2 +- ...ign-in-_ux3l1kN.js => sign-in-C8pEQ7cD.js} | 2 +- ...leton-CmDjDV1O.js => skeleton-B4TLI5_E.js} | 2 +- ...{switch-CgoJjvdz.js => switch-BST3z-JX.js} | 2 +- ...{system-CzKDOsCg.js => system-UzoEfe2L.js} | 2 +- .../{table-9UOy2Vxt.js => table-DgARtYSu.js} | 2 +- .../{tabs-6Ep1KePr.js => tabs-DDe7sXIW.js} | 2 +- ...egram-Br_DijOI.js => telegram-D-IQd24v.js} | 2 +- ...tarea-C8ejjLzk.js => textarea-G_CiBcLa.js} | 2 +- ...BREWrHp_.js => theme-provider-ixHkEVGI.js} | 2 +- ...h-CHLQml_8.js => theme-switch-CdEcHkcU.js} | 2 +- ...ooltip-xZuTTfnF.js => tooltip-QxnX5RKP.js} | 2 +- ...mVOn.js => unauthorized-error-TaUhj35c.js} | 2 +- ...{wallet-CtiawGS1.js => wallet-Cdhl16hF.js} | 2 +- src/www/index.html | 60 +++++++++---------- src/www/sw.js | 2 +- 122 files changed, 145 insertions(+), 145 deletions(-) delete mode 100644 src/www/assets/401-CvFvdOr5.js create mode 100644 src/www/assets/401-QZok9O_U.js create mode 100644 src/www/assets/403-CHgXHRv0.js delete mode 100644 src/www/assets/403-DfLmRqHM.js create mode 100644 src/www/assets/404-Dw3fTvCr.js delete mode 100644 src/www/assets/404-pq4P7jD8.js create mode 100644 src/www/assets/500-CK1ovRtb.js delete mode 100644 src/www/assets/500-Ch8AmacC.js create mode 100644 src/www/assets/503-BF-pGOH4.js delete mode 100644 src/www/assets/503-DqC0HW48.js rename src/www/assets/{ClientOnly-Bj5CESUC.js => ClientOnly-DHd0jlDY.js} (99%) rename src/www/assets/{Match-DrG03Wse.js => Match-onTP_fNL.js} (99%) rename src/www/assets/{Matches-9qnXJNrS.js => Matches-CiQgu9ui.js} (90%) delete mode 100644 src/www/assets/_error-BWjxg4aC.js delete mode 100644 src/www/assets/_error-CtV7sHbI.js create mode 100644 src/www/assets/_error-D2USOC7M.js create mode 100644 src/www/assets/_error-DypydLD1.js rename src/www/assets/{_trade_id-CrABgEyD.js => _trade_id-BUpVePSs.js} (99%) create mode 100644 src/www/assets/_trade_id-CdBtzygm.js delete mode 100644 src/www/assets/_trade_id-DIf2n6tl.js rename src/www/assets/{addresses-lQocmp_u.js => addresses-CHUp3WnH.js} (89%) rename src/www/assets/{appearance-Cl8fvRSv.js => appearance-vgBRUuwE.js} (88%) rename src/www/assets/{auth-animation-context-CmPA3sF3.js => auth-animation-context-Cac9Wtyr.js} (89%) rename src/www/assets/{auth-store-De4Y7PFV.js => auth-store-8ocF_FHU.js} (99%) rename src/www/assets/{badge-VJlwwTW5.js => badge-BRKB3301.js} (90%) rename src/www/assets/{button-C_NDYaz8.js => button-NLSeBFht.js} (99%) rename src/www/assets/{card-DiF5YaRi.js => card-wpWrYqj9.js} (86%) rename src/www/assets/{chains-BMgOL_QE.js => chains-CeMUj04i.js} (91%) rename src/www/assets/{chains-store-DCzO87jZ.js => chains-store-CMJvgCLb.js} (92%) rename src/www/assets/{checkbox-CTHgcB3t.js => checkbox-DcRUgRHr.js} (92%) rename src/www/assets/{coming-soon-dialog-B34F88bO.js => coming-soon-dialog-CN8U5tTP.js} (78%) rename src/www/assets/{command-B_SlhXkX.js => command-vy8966UO.js} (97%) rename src/www/assets/{confirm-dialog-D1L-0EhT.js => confirm-dialog-Crc1Jrzv.js} (95%) rename src/www/assets/{crypto-icon-DnliVYVs.js => crypto-icon-BPgcAvNF.js} (97%) rename src/www/assets/{dashboard-C_GaAVh0.js => dashboard-CicUP9sI.js} (99%) rename src/www/assets/{data-table-1LQSBhN2.js => data-table-DC6T69tr.js} (98%) rename src/www/assets/{dialog-CZ-2RPb-.js => dialog-CtyiwzAl.js} (93%) rename src/www/assets/{display-CqGwMVHS.js => display-Zi7WWfTl.js} (77%) rename src/www/assets/{dist-ZdRQQNeu.js => dist-B0pRVbY9.js} (88%) rename src/www/assets/{dist-DvwKOQ8R.js => dist-BZMqLvO-.js} (93%) rename src/www/assets/{dist-BNFQuJTu.js => dist-CGRahgI2.js} (80%) rename src/www/assets/{dist-Dtn5c_cx.js => dist-CjidLXaw.js} (73%) rename src/www/assets/{dist-Cc8_LDAq.js => dist-D3WFT-Yo.js} (96%) rename src/www/assets/{dist-C5heX0fx.js => dist-DA1qWiix.js} (89%) rename src/www/assets/{dist-CsIb2aLK.js => dist-DB-jLX48.js} (99%) rename src/www/assets/{dist-iiotRAEO.js => dist-DPYswSIO.js} (92%) rename src/www/assets/{dist-JOUh6qvR.js => dist-Dd-sCJIt.js} (99%) rename src/www/assets/{dist-D0DoWChj.js => dist-DhcQhr4B.js} (91%) rename src/www/assets/{dist-DPPquN_M.js => dist-DmeeHi7K.js} (97%) rename src/www/assets/{dist-D4X8zGEB.js => dist-SR6sl-WU.js} (83%) rename src/www/assets/{dist-CHFjpVqk.js => dist-UaPzzPYf.js} (85%) rename src/www/assets/{dist-rcWP-8Cu.js => dist-esC74fSg.js} (93%) rename src/www/assets/{dropdown-menu-DzCIpsuG.js => dropdown-menu-D72UcvWG.js} (96%) rename src/www/assets/{editor.client-CF-kC0wX.js => editor.client-BI4ACpIS.js} (98%) rename src/www/assets/{empty-state-CxE4wU3V.js => empty-state-BtKoq2f4.js} (91%) rename src/www/assets/{epay-BPdlNSqh.js => epay-CMHO4eMB.js} (91%) rename src/www/assets/{epusdt-BvGYu9TV.js => epusdt-DDJlVqbb.js} (90%) rename src/www/assets/{es2015-DT8UeWzs.js => es2015-3J9GnV9P.js} (98%) rename src/www/assets/{font-provider-BPsIRWbb.js => font-provider-C4_iupSb.js} (91%) rename src/www/assets/{forbidden-CgQyYxDt.js => forbidden-BCyOYrFV.js} (85%) rename src/www/assets/{form-KfFEakes.js => form-C_YekIvK.js} (99%) rename src/www/assets/{general-error-BoAB2alm.js => general-error-Drsf0vjz.js} (78%) rename src/www/assets/{header-DVAsq5d6.js => header-vUJd_CA5.js} (89%) rename src/www/assets/{help-Bq6Uj7UY.js => help-CuVF-_N9.js} (88%) rename src/www/assets/{index-Bhi1y2zc.js => index-CbzpCBgq.js} (99%) rename src/www/assets/{input-8zzM34r5.js => input-DAqep8ZY.js} (84%) rename src/www/assets/{install-_AmBcHKu.js => install-Dx6W4swz.js} (94%) rename src/www/assets/{integrations-Clnk2I57.js => integrations-vDkEDNxG.js} (92%) rename src/www/assets/{keys-D0eVvlbn.js => keys-CMptb3PN.js} (93%) rename src/www/assets/{label-DNL0sHKL.js => label-DohxFN8a.js} (83%) rename src/www/assets/{labels-Cbc2zlmv.js => labels-CQIGkPR0.js} (78%) rename src/www/assets/{lazyRouteComponent-JF8ipq5d.js => lazyRouteComponent-CleTUoKA.js} (85%) rename src/www/assets/{lib-DDezYSnW.js => lib-Ku8Lh36m.js} (69%) rename src/www/assets/{link-DPnL8P5J.js => link-6i3yGmK_.js} (95%) create mode 100644 src/www/assets/logo-CBibDHP9.js delete mode 100644 src/www/assets/logo-agrtpj2n.js rename src/www/assets/{long-text-DNqlDi0R.js => long-text-COpCfVI1.js} (78%) rename src/www/assets/{main-C1R3Hvq1.js => main-CTY49s_f.js} (82%) rename src/www/assets/{maintenance-error-DeZhljU8.js => maintenance-error-lgcDljP-.js} (80%) delete mode 100644 src/www/assets/messages-BOatyqUm.js create mode 100644 src/www/assets/messages-CL4J6BaJ.js rename src/www/assets/{not-found-error-BvJzTnw0.js => not-found-error-D4F_Uu-C.js} (77%) rename src/www/assets/{notifications-xdKOW8nn.js => notifications-ugCUkcwq.js} (89%) rename src/www/assets/{okpay-D5pTA_4W.js => okpay-D8DSnOJb.js} (91%) rename src/www/assets/{orders-oloW11KP.js => orders-BVHCgRn-.js} (91%) rename src/www/assets/{page-header-GTtyZFBB.js => page-header-B7O10aw9.js} (87%) rename src/www/assets/{password-DElKXGVw.js => password-CAMOij5G.js} (83%) rename src/www/assets/{password-input-95hMTMdh.js => password-input-D9YsRteD.js} (76%) rename src/www/assets/{pay-BNu4n_oI.js => pay-B10TXgVj.js} (85%) rename src/www/assets/{payment-setup-BFIKIu1u.js => payment-setup-CnYyeayi.js} (87%) rename src/www/assets/{popover-NQZzcPDh.js => popover-Y5WNf1yM.js} (92%) rename src/www/assets/{radio-group-D2rceepu.js => radio-group-yaBPIkVa.js} (88%) rename src/www/assets/{route-D1gzbhTf.js => route-B4K1KfXt.js} (92%) rename src/www/assets/{route-lp7ScXTd.js => route-BfeN1Yu9.js} (59%) rename src/www/assets/{route-GrVEK0V1.js => route-CyGJTo_g.js} (93%) rename src/www/assets/{route-C6USHQDN.js => route-DJLBMX6x.js} (85%) rename src/www/assets/{route-DvJeidrw.js => route-DYctbiZb.js} (64%) rename src/www/assets/{route-CAiA_U_q.js => route-DcIGa4_b.js} (99%) rename src/www/assets/{route-wzPKSRj2.js => route-gtb8yu3E.js} (95%) rename src/www/assets/{router-Z0tUklFK.js => router-xxaOxfVd.js} (77%) rename src/www/assets/{rpc-D7fjJcmI.js => rpc-FxQRMB98.js} (92%) rename src/www/assets/{search-provider-C-_FQI9C.js => search-provider-CTRbHqNx.js} (98%) rename src/www/assets/{select-CzebumOF.js => select-D2uO5-De.js} (97%) rename src/www/assets/{separator-CsUemQNs.js => separator-CqhQIQ-B.js} (85%) rename src/www/assets/{settings-eRG1_Yuf.js => settings-DskxyKWx.js} (98%) rename src/www/assets/{show-submitted-data-BqZb-_Pf.js => show-submitted-data-DwaVTW9K.js} (64%) rename src/www/assets/{sidebar-nav-LZqaVZGH.js => sidebar-nav-CrEhVF-o.js} (78%) rename src/www/assets/{sign-in-_ux3l1kN.js => sign-in-C8pEQ7cD.js} (89%) rename src/www/assets/{skeleton-CmDjDV1O.js => skeleton-B4TLI5_E.js} (65%) rename src/www/assets/{switch-CgoJjvdz.js => switch-BST3z-JX.js} (89%) rename src/www/assets/{system-CzKDOsCg.js => system-UzoEfe2L.js} (88%) rename src/www/assets/{table-9UOy2Vxt.js => table-DgARtYSu.js} (90%) rename src/www/assets/{tabs-6Ep1KePr.js => tabs-DDe7sXIW.js} (92%) rename src/www/assets/{telegram-Br_DijOI.js => telegram-D-IQd24v.js} (88%) rename src/www/assets/{textarea-C8ejjLzk.js => textarea-G_CiBcLa.js} (80%) rename src/www/assets/{theme-provider-BREWrHp_.js => theme-provider-ixHkEVGI.js} (94%) rename src/www/assets/{theme-switch-CHLQml_8.js => theme-switch-CdEcHkcU.js} (91%) rename src/www/assets/{tooltip-xZuTTfnF.js => tooltip-QxnX5RKP.js} (94%) rename src/www/assets/{unauthorized-error-CtrGmVOn.js => unauthorized-error-TaUhj35c.js} (85%) rename src/www/assets/{wallet-CtiawGS1.js => wallet-Cdhl16hF.js} (88%) diff --git a/src/www/assets/401-CvFvdOr5.js b/src/www/assets/401-CvFvdOr5.js deleted file mode 100644 index 3b3d3ca..0000000 --- a/src/www/assets/401-CvFvdOr5.js +++ /dev/null @@ -1 +0,0 @@ -import{t as e}from"./unauthorized-error-CtrGmVOn.js";var t=e;export{t as component}; \ No newline at end of file diff --git a/src/www/assets/401-QZok9O_U.js b/src/www/assets/401-QZok9O_U.js new file mode 100644 index 0000000..19b2378 --- /dev/null +++ b/src/www/assets/401-QZok9O_U.js @@ -0,0 +1 @@ +import{t as e}from"./unauthorized-error-TaUhj35c.js";var t=e;export{t as component}; \ No newline at end of file diff --git a/src/www/assets/403-CHgXHRv0.js b/src/www/assets/403-CHgXHRv0.js new file mode 100644 index 0000000..059fb70 --- /dev/null +++ b/src/www/assets/403-CHgXHRv0.js @@ -0,0 +1 @@ +import{t as e}from"./forbidden-BCyOYrFV.js";var t=e;export{t as component}; \ No newline at end of file diff --git a/src/www/assets/403-DfLmRqHM.js b/src/www/assets/403-DfLmRqHM.js deleted file mode 100644 index b2961a6..0000000 --- a/src/www/assets/403-DfLmRqHM.js +++ /dev/null @@ -1 +0,0 @@ -import{t as e}from"./forbidden-CgQyYxDt.js";var t=e;export{t as component}; \ No newline at end of file diff --git a/src/www/assets/404-Dw3fTvCr.js b/src/www/assets/404-Dw3fTvCr.js new file mode 100644 index 0000000..f4ebefd --- /dev/null +++ b/src/www/assets/404-Dw3fTvCr.js @@ -0,0 +1 @@ +import{t as e}from"./not-found-error-D4F_Uu-C.js";var t=e;export{t as component}; \ No newline at end of file diff --git a/src/www/assets/404-pq4P7jD8.js b/src/www/assets/404-pq4P7jD8.js deleted file mode 100644 index 5174e10..0000000 --- a/src/www/assets/404-pq4P7jD8.js +++ /dev/null @@ -1 +0,0 @@ -import{t as e}from"./not-found-error-BvJzTnw0.js";var t=e;export{t as component}; \ No newline at end of file diff --git a/src/www/assets/500-CK1ovRtb.js b/src/www/assets/500-CK1ovRtb.js new file mode 100644 index 0000000..db9c623 --- /dev/null +++ b/src/www/assets/500-CK1ovRtb.js @@ -0,0 +1 @@ +import{t as e}from"./general-error-Drsf0vjz.js";var t=e;export{t as component}; \ No newline at end of file diff --git a/src/www/assets/500-Ch8AmacC.js b/src/www/assets/500-Ch8AmacC.js deleted file mode 100644 index 384d46c..0000000 --- a/src/www/assets/500-Ch8AmacC.js +++ /dev/null @@ -1 +0,0 @@ -import{t as e}from"./general-error-BoAB2alm.js";var t=e;export{t as component}; \ No newline at end of file diff --git a/src/www/assets/503-BF-pGOH4.js b/src/www/assets/503-BF-pGOH4.js new file mode 100644 index 0000000..11448b1 --- /dev/null +++ b/src/www/assets/503-BF-pGOH4.js @@ -0,0 +1 @@ +import{t as e}from"./maintenance-error-lgcDljP-.js";var t=e;export{t as component}; \ No newline at end of file diff --git a/src/www/assets/503-DqC0HW48.js b/src/www/assets/503-DqC0HW48.js deleted file mode 100644 index 5f816ba..0000000 --- a/src/www/assets/503-DqC0HW48.js +++ /dev/null @@ -1 +0,0 @@ -import{t as e}from"./maintenance-error-DeZhljU8.js";var t=e;export{t as component}; \ No newline at end of file diff --git a/src/www/assets/ClientOnly-Bj5CESUC.js b/src/www/assets/ClientOnly-DHd0jlDY.js similarity index 99% rename from src/www/assets/ClientOnly-Bj5CESUC.js rename to src/www/assets/ClientOnly-DHd0jlDY.js index b559aab..96fa5e9 100644 --- a/src/www/assets/ClientOnly-Bj5CESUC.js +++ b/src/www/assets/ClientOnly-DHd0jlDY.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{m as r,n as i}from"./useStore-CupyIEEP.js";function a(e){let t=new Map,n,r,i=e=>{e.next&&(e.prev?(e.prev.next=e.next,e.next.prev=e.prev,e.next=void 0,r&&(r.next=e,e.prev=r)):(e.next.prev=void 0,n=e.next,e.next=void 0,r&&(e.prev=r,r.next=e)),r=e)};return{get(e){let n=t.get(e);if(n)return i(n),n.value},set(a,o){if(t.size>=e&&n){let e=n;t.delete(e.key),e.next&&(n=e.next,e.next.prev=void 0),e===r&&(r=void 0)}let s=t.get(a);if(s)s.value=o,i(s);else{let e={key:a,value:o,prev:r};r&&(r.next=e),r=e,n||=e,t.set(a,e)}},clear(){t.clear(),n=void 0,r=void 0}}}var o=4,s=5;function c(e){let t=e.indexOf(`{`);if(t===-1)return null;let n=e.indexOf(`}`,t);return n===-1||t+1>=e.length?null:[t,n]}function l(e,t,n=new Uint16Array(6)){let r=e.indexOf(`/`,t),i=r===-1?e.length:r,a=e.substring(t,i);if(!a||!a.includes(`$`))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(a===`$`){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(a.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;let o=c(a);if(o){let[r,s]=o,c=a.charCodeAt(r+1);if(c===45){if(r+2!e.skipOnParamError&&e.caseSensitive===d&&e.prefix===p&&e.suffix===h);if(g)o=g;else{let e=m(1,n.fullPath??n.from,d,p,h);o=e,e.depth=a,e.parent=i,i.dynamic??=[],i.dynamic.push(e)}break}case 3:{let t=r.substring(s,e[1]),l=r.substring(e[4],c),d=u&&!!(t||l),p=t?d?t:t.toLowerCase():void 0,h=l?d?l:l.toLowerCase():void 0,g=!f&&i.optional?.find(e=>!e.skipOnParamError&&e.caseSensitive===d&&e.prefix===p&&e.suffix===h);if(g)o=g;else{let e=m(3,n.fullPath??n.from,d,p,h);o=e,e.parent=i,e.depth=a,i.optional??=[],i.optional.push(e)}break}case 2:{let t=r.substring(s,e[1]),l=r.substring(e[4],c),d=u&&!!(t||l),f=t?d?t:t.toLowerCase():void 0,p=l?d?l:l.toLowerCase():void 0,h=m(2,n.fullPath??n.from,d,f,p);o=h,h.parent=i,h.depth=a,i.wildcard??=[],i.wildcard.push(h)}}i=o}if(f&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(`/`)+1)===95){let e=p(n.fullPath??n.from);e.kind=s,e.parent=i,a++,e.depth=a,i.pathless??=[],i.pathless.push(e),i=e}let h=(n.path||!n.children)&&!n.isRoot;if(h&&r.endsWith(`/`)){let e=p(n.fullPath??n.from);e.kind=o,e.parent=i,a++,e.depth=a,i.index=e,i=e}i.parse=n.options?.params?.parse??null,i.skipOnParamError=f,i.parsingPriority=n.options?.skipRouteOnParseError?.priority??0,h&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(let r of n.children)u(e,t,r,d,i,a,c)}function d(e,t){if(e.skipOnParamError&&!t.skipOnParamError)return-1;if(!e.skipOnParamError&&t.skipOnParamError)return 1;if(e.skipOnParamError&&t.skipOnParamError&&(e.parsingPriority||t.parsingPriority))return t.parsingPriority-e.parsingPriority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function f(e){if(e.pathless)for(let t of e.pathless)f(t);if(e.static)for(let t of e.static.values())f(t);if(e.staticInsensitive)for(let t of e.staticInsensitive.values())f(t);if(e.dynamic?.length){e.dynamic.sort(d);for(let t of e.dynamic)f(t)}if(e.optional?.length){e.optional.sort(d);for(let t of e.optional)f(t)}if(e.wildcard?.length){e.wildcard.sort(d);for(let t of e.wildcard)f(t)}}function p(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}function m(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:n,prefix:r,suffix:i}}function h(e,t){let n=p(`/`),r=new Uint16Array(6);for(let t of e)u(!1,r,t,1,n,0);f(n),t.masksTree=n,t.flatCache=a(1e3)}function g(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=x(e,t.masksTree);return t.flatCache.set(e,r),r}function _(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=p(`/`),u(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),x(r,o,n)}function v(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=x(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=C(a.route)),t.matchCache.set(r,a),a}function y(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function b(e,t=!1,n){let r=p(e.fullPath),o=new Uint16Array(6),s={},c={},l=0;return u(t,o,e,1,r,0,e=>{if(n?.(e,l),e.id in s&&i(),s[e.id]=e,l!==0&&e.path){let t=y(e.fullPath);(!c[t]||e.fullPath.endsWith(`/`))&&(c[t]=e)}l++}),f(r),{processedTree:{segmentTree:r,singleCache:a(1e3),matchCache:a(1e3),flatCache:null,masksTree:null},routesById:s,routesByPath:c}}function x(e,t,n=!1){let r=e.split(`/`),i=T(e,r,t,n);if(!i)return null;let[a]=S(e,r,i);return{route:i.node.route,rawParams:a,parsedParams:i.parsedParams}}function S(e,t,n){let r=w(n.node),i=null,a=Object.create(null),c=n.extract?.part??0,l=n.extract?.node??0,u=n.extract?.path??0,d=n.extract?.segment??0;for(;l=0;n--){let i=r.optional[n];l.push({node:i,index:a,skipped:e,depth:t,statics:h,dynamics:g,optionals:_,extract:v,rawParams:y,parsedParams:b})}if(!x)for(let e=r.optional.length-1;e>=0;e--){let n=r.optional[e],{prefix:i,suffix:o}=n;if(i||o){let e=n.caseSensitive?S:C??=S.toLowerCase();if(i&&!e.startsWith(i)||o&&!e.endsWith(o))continue}l.push({node:n,index:a+1,skipped:p,depth:t,statics:h,dynamics:g,optionals:_+1,extract:v,rawParams:y,parsedParams:b})}}if(!x&&r.dynamic&&S)for(let e=r.dynamic.length-1;e>=0;e--){let t=r.dynamic[e],{prefix:n,suffix:i}=t;if(n||i){let e=t.caseSensitive?S:C??=S.toLowerCase();if(n&&!e.startsWith(n)||i&&!e.endsWith(i))continue}l.push({node:t,index:a+1,skipped:p,depth:m+1,statics:h,dynamics:g+1,optionals:_,extract:v,rawParams:y,parsedParams:b})}if(!x&&r.staticInsensitive){let e=r.staticInsensitive.get(C??=S.toLowerCase());e&&l.push({node:e,index:a+1,skipped:p,depth:m+1,statics:h+1,dynamics:g,optionals:_,extract:v,rawParams:y,parsedParams:b})}if(!x&&r.static){let e=r.static.get(S);e&&l.push({node:e,index:a+1,skipped:p,depth:m+1,statics:h+1,dynamics:g,optionals:_,extract:v,rawParams:y,parsedParams:b})}if(r.pathless){let e=m+1;for(let t=r.pathless.length-1;t>=0;t--){let n=r.pathless[t];l.push({node:n,index:a,skipped:p,depth:e,statics:h,dynamics:g,optionals:_,extract:v,rawParams:y,parsedParams:b})}}}if(f&&u)return D(u,f)?f:u;if(f)return f;if(u)return u;if(i&&d){let n=d.index;for(let e=0;ee.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===o)>(e.node.kind===o)||t.node.kind===o==(e.node.kind===o)&&t.depth>e.depth))):!0}function O(e){return k(e.filter(e=>e!==void 0).join(`/`))}function k(e){return e.replace(/\/{2,}/g,`/`)}function A(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function j(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function M(e){return j(A(e))}function N(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function P(e,t,n){return N(e,n)===N(t,n)}function F({base:e,to:t,trailingSlash:n=`never`,cache:i}){let a=t.startsWith(`/`),o=!a&&t===`.`,s;if(i){s=a?t:o?e:e+`\0`+t;let n=i.get(s);if(n)return n}let c;if(o)c=e.split(`/`);else if(a)c=t.split(`/`);else{for(c=e.split(`/`);c.length>1&&r(c)===``;)c.pop();let n=t.split(`/`);for(let e=0,t=n.length;e1&&(r(c)===``?n===`never`&&c.pop():n===`always`&&c.push(``));let u,d=``;for(let e=0;e0&&(d+=`/`);let t=c[e];if(!t)continue;u=l(t,0,u);let n=u[0];if(n===0){d+=t;continue}let r=u[5],i=t.substring(0,u[1]),a=t.substring(u[4],r),o=t.substring(u[2],u[3]);n===1?d+=i||a?`${i}{$${o}}${a}`:`$${o}`:n===2?d+=i||a?`${i}{$}${a}`:`$`:d+=`${i}{-$${o}}${a}`}d=k(d);let f=d||`/`;return s&&i&&i.set(s,f),f}function I(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=Array.from(t.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),r=new RegExp(n,`g`);return e=>e.replace(r,e=>t.get(e)??e)}function L(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>z(e,n)).join(`/`):z(r,n):r}function R({path:e,params:t,decoder:n,...r}){let i=!1,a=Object.create(null);if(!e||e===`/`)return{interpolatedPath:`/`,usedParams:a,isMissingParams:i};if(!e.includes(`$`))return{interpolatedPath:e,usedParams:a,isMissingParams:i};let o=e.length,s=0,c,u=``;for(;s!0,()=>!1)}function W(){return()=>{}}export{b as _,P as a,N as c,A as d,j as f,h as g,_ as h,I as i,F as l,v as m,U as n,R as o,g as p,k as r,O as s,H as t,M as u,a as v}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";import{m as r,n as i}from"./useStore-CupyIEEP.js";function a(e){let t=new Map,n,r,i=e=>{e.next&&(e.prev?(e.prev.next=e.next,e.next.prev=e.prev,e.next=void 0,r&&(r.next=e,e.prev=r)):(e.next.prev=void 0,n=e.next,e.next=void 0,r&&(e.prev=r,r.next=e)),r=e)};return{get(e){let n=t.get(e);if(n)return i(n),n.value},set(a,o){if(t.size>=e&&n){let e=n;t.delete(e.key),e.next&&(n=e.next,e.next.prev=void 0),e===r&&(r=void 0)}let s=t.get(a);if(s)s.value=o,i(s);else{let e={key:a,value:o,prev:r};r&&(r.next=e),r=e,n||=e,t.set(a,e)}},clear(){t.clear(),n=void 0,r=void 0}}}var o=4,s=5;function c(e){let t=e.indexOf(`{`);if(t===-1)return null;let n=e.indexOf(`}`,t);return n===-1||t+1>=e.length?null:[t,n]}function l(e,t,n=new Uint16Array(6)){let r=e.indexOf(`/`,t),i=r===-1?e.length:r,a=e.substring(t,i);if(!a||!a.includes(`$`))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(a===`$`){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(a.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;let o=c(a);if(o){let[r,s]=o,c=a.charCodeAt(r+1);if(c===45){if(r+2!e.skipOnParamError&&e.caseSensitive===d&&e.prefix===p&&e.suffix===h);if(g)o=g;else{let e=m(1,n.fullPath??n.from,d,p,h);o=e,e.depth=a,e.parent=i,i.dynamic??=[],i.dynamic.push(e)}break}case 3:{let t=r.substring(s,e[1]),l=r.substring(e[4],c),d=u&&!!(t||l),p=t?d?t:t.toLowerCase():void 0,h=l?d?l:l.toLowerCase():void 0,g=!f&&i.optional?.find(e=>!e.skipOnParamError&&e.caseSensitive===d&&e.prefix===p&&e.suffix===h);if(g)o=g;else{let e=m(3,n.fullPath??n.from,d,p,h);o=e,e.parent=i,e.depth=a,i.optional??=[],i.optional.push(e)}break}case 2:{let t=r.substring(s,e[1]),l=r.substring(e[4],c),d=u&&!!(t||l),f=t?d?t:t.toLowerCase():void 0,p=l?d?l:l.toLowerCase():void 0,h=m(2,n.fullPath??n.from,d,f,p);o=h,h.parent=i,h.depth=a,i.wildcard??=[],i.wildcard.push(h)}}i=o}if(f&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(`/`)+1)===95){let e=p(n.fullPath??n.from);e.kind=s,e.parent=i,a++,e.depth=a,i.pathless??=[],i.pathless.push(e),i=e}let h=(n.path||!n.children)&&!n.isRoot;if(h&&r.endsWith(`/`)){let e=p(n.fullPath??n.from);e.kind=o,e.parent=i,a++,e.depth=a,i.index=e,i=e}i.parse=n.options?.params?.parse??null,i.skipOnParamError=f,i.parsingPriority=n.options?.skipRouteOnParseError?.priority??0,h&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(let r of n.children)u(e,t,r,d,i,a,c)}function d(e,t){if(e.skipOnParamError&&!t.skipOnParamError)return-1;if(!e.skipOnParamError&&t.skipOnParamError)return 1;if(e.skipOnParamError&&t.skipOnParamError&&(e.parsingPriority||t.parsingPriority))return t.parsingPriority-e.parsingPriority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function f(e){if(e.pathless)for(let t of e.pathless)f(t);if(e.static)for(let t of e.static.values())f(t);if(e.staticInsensitive)for(let t of e.staticInsensitive.values())f(t);if(e.dynamic?.length){e.dynamic.sort(d);for(let t of e.dynamic)f(t)}if(e.optional?.length){e.optional.sort(d);for(let t of e.optional)f(t)}if(e.wildcard?.length){e.wildcard.sort(d);for(let t of e.wildcard)f(t)}}function p(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}function m(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:n,prefix:r,suffix:i}}function h(e,t){let n=p(`/`),r=new Uint16Array(6);for(let t of e)u(!1,r,t,1,n,0);f(n),t.masksTree=n,t.flatCache=a(1e3)}function g(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=x(e,t.masksTree);return t.flatCache.set(e,r),r}function _(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=p(`/`),u(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),x(r,o,n)}function v(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=x(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=C(a.route)),t.matchCache.set(r,a),a}function y(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function b(e,t=!1,n){let r=p(e.fullPath),o=new Uint16Array(6),s={},c={},l=0;return u(t,o,e,1,r,0,e=>{if(n?.(e,l),e.id in s&&i(),s[e.id]=e,l!==0&&e.path){let t=y(e.fullPath);(!c[t]||e.fullPath.endsWith(`/`))&&(c[t]=e)}l++}),f(r),{processedTree:{segmentTree:r,singleCache:a(1e3),matchCache:a(1e3),flatCache:null,masksTree:null},routesById:s,routesByPath:c}}function x(e,t,n=!1){let r=e.split(`/`),i=T(e,r,t,n);if(!i)return null;let[a]=S(e,r,i);return{route:i.node.route,rawParams:a,parsedParams:i.parsedParams}}function S(e,t,n){let r=w(n.node),i=null,a=Object.create(null),c=n.extract?.part??0,l=n.extract?.node??0,u=n.extract?.path??0,d=n.extract?.segment??0;for(;l=0;n--){let i=r.optional[n];l.push({node:i,index:a,skipped:e,depth:t,statics:h,dynamics:g,optionals:_,extract:v,rawParams:y,parsedParams:b})}if(!x)for(let e=r.optional.length-1;e>=0;e--){let n=r.optional[e],{prefix:i,suffix:o}=n;if(i||o){let e=n.caseSensitive?S:C??=S.toLowerCase();if(i&&!e.startsWith(i)||o&&!e.endsWith(o))continue}l.push({node:n,index:a+1,skipped:p,depth:t,statics:h,dynamics:g,optionals:_+1,extract:v,rawParams:y,parsedParams:b})}}if(!x&&r.dynamic&&S)for(let e=r.dynamic.length-1;e>=0;e--){let t=r.dynamic[e],{prefix:n,suffix:i}=t;if(n||i){let e=t.caseSensitive?S:C??=S.toLowerCase();if(n&&!e.startsWith(n)||i&&!e.endsWith(i))continue}l.push({node:t,index:a+1,skipped:p,depth:m+1,statics:h,dynamics:g+1,optionals:_,extract:v,rawParams:y,parsedParams:b})}if(!x&&r.staticInsensitive){let e=r.staticInsensitive.get(C??=S.toLowerCase());e&&l.push({node:e,index:a+1,skipped:p,depth:m+1,statics:h+1,dynamics:g,optionals:_,extract:v,rawParams:y,parsedParams:b})}if(!x&&r.static){let e=r.static.get(S);e&&l.push({node:e,index:a+1,skipped:p,depth:m+1,statics:h+1,dynamics:g,optionals:_,extract:v,rawParams:y,parsedParams:b})}if(r.pathless){let e=m+1;for(let t=r.pathless.length-1;t>=0;t--){let n=r.pathless[t];l.push({node:n,index:a,skipped:p,depth:e,statics:h,dynamics:g,optionals:_,extract:v,rawParams:y,parsedParams:b})}}}if(f&&u)return D(u,f)?f:u;if(f)return f;if(u)return u;if(i&&d){let n=d.index;for(let e=0;ee.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===o)>(e.node.kind===o)||t.node.kind===o==(e.node.kind===o)&&t.depth>e.depth))):!0}function O(e){return k(e.filter(e=>e!==void 0).join(`/`))}function k(e){return e.replace(/\/{2,}/g,`/`)}function A(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function j(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function M(e){return j(A(e))}function N(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function P(e,t,n){return N(e,n)===N(t,n)}function F({base:e,to:t,trailingSlash:n=`never`,cache:i}){let a=t.startsWith(`/`),o=!a&&t===`.`,s;if(i){s=a?t:o?e:e+`\0`+t;let n=i.get(s);if(n)return n}let c;if(o)c=e.split(`/`);else if(a)c=t.split(`/`);else{for(c=e.split(`/`);c.length>1&&r(c)===``;)c.pop();let n=t.split(`/`);for(let e=0,t=n.length;e1&&(r(c)===``?n===`never`&&c.pop():n===`always`&&c.push(``));let u,d=``;for(let e=0;e0&&(d+=`/`);let t=c[e];if(!t)continue;u=l(t,0,u);let n=u[0];if(n===0){d+=t;continue}let r=u[5],i=t.substring(0,u[1]),a=t.substring(u[4],r),o=t.substring(u[2],u[3]);n===1?d+=i||a?`${i}{$${o}}${a}`:`$${o}`:n===2?d+=i||a?`${i}{$}${a}`:`$`:d+=`${i}{-$${o}}${a}`}d=k(d);let f=d||`/`;return s&&i&&i.set(s,f),f}function I(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=Array.from(t.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),r=new RegExp(n,`g`);return e=>e.replace(r,e=>t.get(e)??e)}function L(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>z(e,n)).join(`/`):z(r,n):r}function R({path:e,params:t,decoder:n,...r}){let i=!1,a=Object.create(null);if(!e||e===`/`)return{interpolatedPath:`/`,usedParams:a,isMissingParams:i};if(!e.includes(`$`))return{interpolatedPath:e,usedParams:a,isMissingParams:i};let o=e.length,s=0,c,u=``;for(;s!0,()=>!1)}function W(){return()=>{}}export{b as _,P as a,N as c,A as d,j as f,h as g,_ as h,I as i,F as l,v as m,U as n,R as o,g as p,k as r,O as s,H as t,M as u,a as v}; \ No newline at end of file diff --git a/src/www/assets/Match-DrG03Wse.js b/src/www/assets/Match-onTP_fNL.js similarity index 99% rename from src/www/assets/Match-DrG03Wse.js rename to src/www/assets/Match-onTP_fNL.js index bd67f41..9108a8e 100644 --- a/src/www/assets/Match-DrG03Wse.js +++ b/src/www/assets/Match-onTP_fNL.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{o as r,t as i}from"./useRouter-DtTm7XkK.js";import{a,c as o,f as s,g as c,h as l,i as u,l as d,m as f,n as p,o as m,p as h,r as g,s as _,t as v,u as y}from"./useStore-CupyIEEP.js";import{_ as b,f as x,g as S,h as C,i as w,l as T,m as E,o as D,p as O,r as k,s as A,t as ee,u as te,v as ne}from"./ClientOnly-Bj5CESUC.js";import{i as j,r as re,t as M}from"./redirect-DMNGvjzO.js";import{n as ie}from"./matchContext-BFCdcHzo.js";function ae(){try{return typeof window<`u`&&typeof window.sessionStorage==`object`?window.sessionStorage:void 0}catch{return}}var oe=`tsr-scroll-restoration-v1_3`;function se(){let e=ae();if(!e)return null;let t={};try{let n=JSON.parse(e.getItem(`tsr-scroll-restoration-v1_3`)||`{}`);s(n)&&(t=n)}catch{}return{get state(){return t},set:e=>{t=d(e,t)||t},persist:()=>{try{e.setItem(oe,JSON.stringify(t))}catch{}}}}var ce=se(),le=e=>e.state.__TSR_key||e.href;function ue(e){let t=[],n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(` > `)}`.toLowerCase()}var N=!1,P=`window`,de=`data-scroll-restoration-id`;function fe(e,t){if(!ce)return;let n=ce;if((t??e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup||!n)return;e.isScrollRestorationSetup=!0,N=!1;let r=e.options.getScrollRestorationKey||le,i=new Map;window.history.scrollRestoration=`manual`;let a=t=>{if(!(N||!e.isScrollRestoring))if(t.target===document||t.target===window)i.set(P,{scrollX:window.scrollX||0,scrollY:window.scrollY||0});else{let e=t.target;i.set(e,{scrollX:e.scrollLeft||0,scrollY:e.scrollTop||0})}},o=t=>{if(!e.isScrollRestoring||!t||i.size===0||!n)return;let r=n.state[t]||={};for(let[e,t]of i){let n;if(e===P)n=P;else if(e.isConnected){let t=e.getAttribute(de);n=t?`[${de}="${t}"]`:ue(e)}n&&(r[n]=t)}};document.addEventListener(`scroll`,a,!0),e.subscribe(`onBeforeLoad`,e=>{o(e.fromLocation?r(e.fromLocation):void 0),i.clear()}),window.addEventListener(`pagehide`,()=>{o(r(e.stores.resolvedLocation.get()??e.stores.location.get())),n.persist()}),e.subscribe(`onRendered`,t=>{let a=r(t.toLocation),o=e.options.scrollRestorationBehavior,c=e.options.scrollToTopSelectors;if(i.clear(),!e.resetNextScroll){e.resetNextScroll=!0;return}if(!(typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))){N=!0;try{let t=e.isScrollRestoring?n.state[a]:void 0,r=!1;if(t)for(let e in t){let n=t[e];if(!s(n))continue;let{scrollX:i,scrollY:a}=n;if(!(!Number.isFinite(i)||!Number.isFinite(a))){if(e===P)window.scrollTo({top:a,left:i,behavior:o}),r=!0;else if(e){let t;try{t=document.querySelector(e)}catch{continue}t&&(t.scrollLeft=i,t.scrollTop=a,r=!0)}}}if(!r){let t=e.history.location.hash.slice(1);if(t){let e=window.history.state?.__hashScrollIntoViewOptions??!0;if(e){let n=document.getElementById(t);n&&n.scrollIntoView(e)}}else{let e={top:0,left:0,behavior:o};if(window.scrollTo(e),c)for(let t of c){if(t===P)continue;let n=typeof t==`function`?t():document.querySelector(t);n&&n.scrollTo(e)}}}}finally{N=!1}e.isScrollRestoring&&n.set(e=>(e[a]||={},e))}})}function pe(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function me(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function he(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=me(r):Array.isArray(t)?t.push(me(r)):n[e]=[t,me(r)]}return n}var ge=ve(JSON.parse),_e=ye(JSON.stringify,JSON.parse);function ve(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=he(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function ye(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=pe(e,r);return t?`?${t}`:``}}function be(e){return{input:({url:t})=>{for(let n of e)t=F(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=Se(e[n],t);return t}}}function xe(e){let t=te(e.basepath),n=`/${t}`,r=`${n}/`,i=e.caseSensitive?n:n.toLowerCase(),a=e.caseSensitive?r:r.toLowerCase();return{input:({url:t})=>{let r=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return r===i?t.pathname=`/`:r.startsWith(a)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=A([`/`,t,e.pathname]),e)}}function F(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Se(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Ce(e){let t=e;return{get(){return t},set(e){t=d(e,t)}}}function we(e){return{get(){return e()}}}function Te(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),h=n(e.statusCode),g=n(e.redirect),_=n([]),v=n([]),y=n([]),b=r(()=>I(o,_.get())),x=r(()=>I(s,v.get())),S=r(()=>I(c,y.get())),C=r(()=>_.get()[0]),w=r(()=>_.get().some(e=>o.get(e)?.get().status===`pending`)),T=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),E=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:b.get(),location:p.get(),resolvedLocation:m.get(),statusCode:h.get(),redirect:g.get()})),D=ne(64);function O(e){let t=D.get(e);return t||(t=r(()=>{let t=_.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),D.set(e,t)),t}let k={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:h,redirect:g,matchesId:_,pendingIds:v,cachedIds:y,matches:b,pendingMatches:x,cachedMatches:S,firstId:C,hasPending:w,matchRouteDeps:T,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:E,getRouteMatchStore:O,setMatches:A,setPending:ee,setCached:te};A(e.matches),a?.(k);function A(e){L(e,o,_,n,i)}function ee(e){L(e,s,v,n,i)}function te(e){L(e,c,y,n,i)}return k}function I(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function L(e,t,n,r,i){let a=e.map(e=>e.id),o=new Set(a);i(()=>{for(let e of t.keys())o.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}u(n.get(),a)||n.set(a)})}var R=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},Ee=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),z=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),B=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},De=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},V=(e,t,n)=>{if(!(!M(n)&&!j(n)))throw M(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:M(n)?`redirected`:r.status===`pending`?`success`:r.status,context:B(e,t.index),isFetching:!1,error:n})),j(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),M(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},Oe=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},ke=(e,t,n)=>{let r=B(e,n);e.updateMatch(t,e=>({...e,context:r}))},H=(e,t,n,r)=>{let{id:i,routeId:a}=e.matches[t],o=e.router.looseRoutesById[a];if(n instanceof Promise)throw n;n.routerCode=r,e.firstBadMatchIndex??=t,V(e,e.router.getMatch(i),n);try{o.options.onError?.(n)}catch(t){n=t,V(e,e.router.getMatch(i),n)}e.updateMatch(i,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!M(n)&&!j(n)&&(e.serialError??=n)},Ae=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!z(e,t)&&(n.options.loader||n.options.beforeLoad||Be(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{R(e)},i);r._nonReactive.pendingTimeout=t}},je=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;Ae(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&V(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},Me=(e,t,n,r)=>{let i=e.router.getMatch(t),o=i._nonReactive.loadPromise;i._nonReactive.loadPromise=a(()=>{o?.resolve(),o=void 0});let{paramsError:s,searchError:c}=i;s&&H(e,n,s,`PARSE_PARAMS`),c&&H(e,n,c,`VALIDATE_SEARCH`),Ae(e,t,r,i);let l=new AbortController,u=!1,d=()=>{u||(u=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:l})))},f=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{d(),f()});return}i._nonReactive.beforeLoadPromise=a();let p={...B(e,n,!1),...i.__routeContext},{search:m,params:g,cause:_}=i,v=z(e,t),y={search:m,abortController:l,params:g,preload:v,context:p,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:v?`preload`:_,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},b=r=>{if(r===void 0){e.router.batch(()=>{d(),f()});return}(M(r)||j(r))&&(d(),H(e,n,r,`BEFORE_LOAD`)),e.router.batch(()=>{d(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),f()})},x;try{if(x=r.options.beforeLoad(y),h(x))return d(),x.catch(t=>{H(e,n,t,`BEFORE_LOAD`)}).then(b)}catch(t){d(),H(e,n,t,`BEFORE_LOAD`)}b(x)},Ne=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>Me(e,n,t,i),s=()=>{if(Oe(e,n))return;let t=je(e,n,i);return h(t)?t.then(o):o()};return a()},Pe=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},Fe=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=B(e,r),d=z(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},Ie=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{U(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(Fe(e,t,n,r,i)),l=!!s&&h(c);if((l||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;V(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let u=a._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:B(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:B(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,j(t)&&await i.options.notFoundComponent?.preload?.(),V(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,V(e,e.router.getMatch(n),t)}!M(o)&&!j(o)&&await U(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:B(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),V(e,r,t)}},Le=async(e,t,n)=>{async function r(r,a,o,l,u){let f=Date.now()-a.updatedAt,p=r?u.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:u.options.staleTime??e.router.options.defaultStaleTime??0,m=u.options.shouldReload,h=typeof m==`function`?m(Fe(e,t,i,n,u)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||o!==void 0&&o!==l.id);s=g===`success`&&(_||(h??v)),r&&u.options.preload===!1||(s&&!e.sync&&d?(c=!0,(async()=>{try{await Ie(e,t,i,n,u);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){M(t)&&await e.router.navigate(t.options)}})()):g!==`success`||s?await Ie(e,t,i,n,u):ke(e,i,n))}let{id:i,routeId:o}=e.matches[n],s=!1,c=!1,l=e.router.looseRoutesById[o],u=l.options.loader,d=((typeof u==`function`?void 0:u?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(Oe(e,i)){if(!e.router.getMatch(i))return e.matches[n];ke(e,i,n)}else{let t=e.router.getMatch(i),s=e.router.stores.matchesId.get()[n],c=(s&&e.router.stores.matchStores.get(s)||null)?.routeId===o?s:e.router.stores.matches.get().find(e=>e.routeId===o)?.id,u=z(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&d)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&&V(e,n,a),n.status===`pending`&&await r(u,t,c,n,l)}else{let n=u&&!e.router.stores.matchStores.has(i),o=e.router.getMatch(i);o._nonReactive.loaderPromise=a(),n!==o.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(u,t,c,o,l)}}let f=e.router.getMatch(i);c||(f._nonReactive.loaderPromise?.resolve(),f._nonReactive.loadPromise?.resolve(),f._nonReactive.loadPromise=void 0),clearTimeout(f._nonReactive.pendingTimeout),f._nonReactive.pendingTimeout=void 0,c||(f._nonReactive.loaderPromise=void 0),f._nonReactive.dehydrated=void 0;let p=c?f.isFetching:!1;return p!==f.isFetching||f.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:p,invalid:!1})),e.router.getMatch(i)):f};async function Re(e){let t=e,n=[];Ee(t.router)&&R(t);let r;for(let e=0;e({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:l},isFetching:!1})),u=e,await U(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await U(e,[`errorComponent`])}for(let e=0;e<=u;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=Pe(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let d=R(t);if(h(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function ze(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function U(e,t=W){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===W?(()=>{if(e._componentsPromise===void 0){let t=ze(e,W);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():ze(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function Be(e){for(let t of W)if(e.options[t]?.preload)return!0;return!1}var W=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`],G=`__TSR_index`,Ve=`popstate`,He=`beforeunload`;function Ue(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=K(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[G];i=We(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[G];i=We(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[G]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function We(e,t){t||={};let n=q();return{...t,key:n,__TSR_key:n,[G]:e}}function Ge(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>K(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=q();t.history.replaceState({[G]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=K(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[G]-l.state[G],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=Ue({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(He,S,{capture:!0}),t.removeEventListener(Ve,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(He,S,{capture:!0}),t.addEventListener(Ve,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function Ke(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function K(e,t){let n=Ke(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=q();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[G]:0,key:a,__TSR_key:a}}}function q(){return(Math.random()+1).toString(36).substring(7)}function J(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var qe=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=w(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Ge()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=ne(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=Te(Ye(this.latestLocation),e),fe(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=te(o);t&&t!==`/`&&e.push(xe({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:be(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a)`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=b(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&S(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:m(e).path,external:!1,searchStr:o,search:l(t?.search,i),hash:m(r.slice(1)).path,state:c(t?.state,a)}}let o=new URL(i,this.origin),s=F(this.rewrite,o),u=this.options.parseSearch(s.search),d=this.options.stringifySearch(u);return s.search=d,{href:s.href.replace(s.origin,``),publicHref:i,pathname:m(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:d,search:l(t?.search,u),hash:m(s.hash.slice(1)).path,state:c(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>T({base:e,to:k(t),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>Xe({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=this.resolvePathWithBase(i,`.`),s=r.search,u=Object.assign(Object.create(null),r.params),f=t.to?this.resolvePathWithBase(a,`${t.to}`):this.resolvePathWithBase(a,`.`),p=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?u:Object.assign(u,d(t.params,u)),h=this.getMatchedRoutes(f),g=h.matchedRoutes;if((!h.foundRoute||h.foundRoute.path!==`/`&&h.routeParams[`**`])&&this.options.notFoundRoute&&(g=[...g,this.options.notFoundRoute]),Object.keys(p).length>0)for(let e of g){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(p,t(p))}catch{}}let _=e.leaveParams?f:m(D({path:f,params:p,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,v=s;if(e._includeValidateSearch&&this.options.search?.strict){let e={};g.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,X(t.options.validateSearch,{...e,...v}))}catch{}}),v=e}v=Ze({search:v,dest:t,destRoutes:g,_includeValidateSearch:e._includeValidateSearch}),v=l(s,v);let y=this.options.stringifySearch(v),b=t.hash===!0?n.hash:t.hash?d(t.hash,n.hash):void 0,x=b?`#${b}`:``,S=t.state===!0?n.state:t.state?d(t.state,n.state):{};S=c(n.state,S);let C=`${_}${y}${x}`,w,T,E=!1;if(this.rewrite){let e=new URL(C,this.origin),t=Se(this.rewrite,e);w=e.href.replace(e.origin,``),t.origin===this.origin?T=t.pathname+t.search+t.hash:(T=t.href,E=!0)}else w=o(C),T=w;return{publicHref:T,href:w,pathname:_,search:v,searchStr:y,state:S,hash:b??``,external:E,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=O(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,d(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=_(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},i=x(this.latestLocation.href)===x(n.href),o=this.commitLocationPromise;if(this.commitLocationPromise=a(()=>{o?.resolve(),o=void 0}),i&&r())this.load();else{let{maskedLocation:r,hashScrollIntoView:i,...a}=n;r&&(a={...r,state:{...r.state,__tempKey:void 0,__tempLocation:{...a,search:a.searchStr,state:{...a.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(a.unmaskOnReload??this.options.unmaskOnReload??!1)&&(a.state.__tempKey=this.tempLocationKey)),a.state.__hashScrollIntoViewOptions=i??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,this.history[n.replace?`replace`:`push`](a.publicHref,a.state,{ignoreBlocker:t})}return this.resetNextScroll=n.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=K(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=F(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(y(t,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return Promise.resolve()}return i.replace?window.location.replace(t):window.location.href=t,Promise.resolve()}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t,n,r,i=this.stores.resolvedLocation.get()??this.stores.location.get();for(r=new Promise(a=>{this.startTransition(async()=>{try{this.beforeLoad();let t=this.latestLocation,n=J(t,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...n}),this.emit({type:`onBeforeLoad`,...n}),await Re({router:this,sync:e?.sync,forceStaleReload:i.href===t.href,matches:this.stores.pendingMatches.get(),location:t,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){M(e)?(t=e,this.navigate({...t.options,replace:!0,ignoreBlocker:!0})):j(e)&&(n=e);let r=t?t.status:n?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(r),this.stores.redirect.set(t)})}this.latestLoadPromise===r&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),a()})}),this.latestLoadPromise=r,await r;this.latestLoadPromise&&r!==this.latestLoadPromise;)await this.latestLoadPromise;let a;this.hasNotFoundMatch()?a=404:this.stores.matches.get().some(e=>e.status===`error`)&&(a=500),a!==void 0&&this.stores.statusCode.set(a)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(J(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&y(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`?!0:e-t.updatedAt>=r}})},this.loadRouteChunk=U,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...r,...this.stores.cachedIds.get()]),a=n.filter(e=>!i.has(e.id));if(a.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...a])}try{return n=await Re({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(M(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});j(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=C(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!_(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?_(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??_e,parseSearch:e.parseSearch??ge,protocolAllowlist:e.protocolAllowlist??g}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:i,parsedParams:o}=n,{matchedRoutes:s}=n,u=!1;(r?r.path!==`/`&&i[`**`]:x(e.pathname))&&(this.options.notFoundRoute?s=[...s,this.options.notFoundRoute]:u=!0);let d=u?$e(this.options.notFoundMode,s):void 0,f=Array(s.length),p=new Map;for(let e of this.stores.matchStores.values())e.routeId&&p.set(e.routeId,e.get());for(let n=0;nthis.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:f,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return f}matchRoutesLightweight(e){let{matchedRoutes:t,routeParams:n,parsedParams:r}=this.getMatchedRoutes(e.pathname),i=f(t),a={...e.search};for(let e of t)try{Object.assign(a,X(e.options.validateSearch,a))}catch{}let o=f(this.stores.matchesId.get()),s=o&&this.stores.matchStores.get(o)?.get(),c=s&&s.routeId===i.id&&s.pathname===e.pathname,l;if(c)l=s.params;else{let e=Object.assign(Object.create(null),n);for(let i of t)try{et(i,n,r??{},e)}catch{}l=e}return{matchedRoutes:t,fullPath:i.fullPath,search:a,params:l}}},Y=class extends Error{},Je=class extends Error{};function Ye(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function X(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new Y(`Async validation not supported`);if(n.issues)throw new Y(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function Xe({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=x(e),a,o,s=E(i,n,!0);return s&&(a=s.route,Object.assign(r,s.rawParams),o=Object.assign(Object.create(null),s.parsedParams)),{matchedRoutes:s?.branch||[t.__root__],routeParams:r,foundRoute:a,parsedParams:o}}function Ze({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return Qe(n)(e,t,r??!1)}function Qe(e){let t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(let n of e)`search`in n.options?n.options.search?.middlewares&&t.middlewares.push(...n.options.search.middlewares):(n.options.preSearchFilters||n.options.postSearchFilters)&&t.middlewares.push(({search:e,next:t})=>{let r=e;`preSearchFilters`in n.options&&n.options.preSearchFilters&&(r=n.options.preSearchFilters.reduce((e,t)=>t(e),e));let i=t(r);return`postSearchFilters`in n.options&&n.options.postSearchFilters?n.options.postSearchFilters.reduce((e,t)=>t(e),i):i}),n.options.validateSearch&&t.middlewares.push(({search:e,next:r})=>{let i=r(e);if(!t._includeValidateSearch)return i;try{return{...i,...X(n.options.validateSearch,i)??void 0}}catch{return i}});t.middlewares.push(({search:e})=>{let n=t.dest;return n.search?n.search===!0?e:d(n.search,e):{}});let n=(e,t,r)=>{if(e>=r.length)return t;let i=r[e];return i({search:t,next:t=>n(e+1,t,r)})};return function(e,r,i){return t.dest=r,t._includeValidateSearch=i,n(0,e,t.middlewares)}}function $e(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return re}function et(e,t,n,r){let i=e.options.params?.parse??e.options.parseParams;if(i)if(e.options.skipRouteOnParseError)for(let e in t)e in n&&(r[e]=n[e]);else{let e=i(r);Object.assign(r,e)}}var Z=e(t(),1),Q=n();function tt(e){let t=e.errorComponent??rt;return(0,Q.jsx)(nt,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?Z.createElement(t,{error:n,reset:r}):e.children})}var nt=class extends Z.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function rt({error:e}){let[t,n]=Z.useState(!1);return(0,Q.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,Q.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,Q.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,Q.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,Q.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,Q.jsx)(`div`,{children:(0,Q.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,Q.jsx)(`code`,{children:e.message}):null})}):null]})}function it(e){let t=i(),n=`not-found-${v(t.stores.location,e=>e.pathname)}-${v(t.stores.status,e=>e)}`;return(0,Q.jsx)(tt,{getResetKey:()=>n,onCatch:(t,n)=>{if(j(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(j(t))return e.fallback?.(t);throw t},children:e.children})}function at(){return(0,Q.jsx)(`p`,{children:`Not Found`})}function $(e){return(0,Q.jsx)(Q.Fragment,{children:e.children})}function ot(e,t,n){return t.options.notFoundComponent?(0,Q.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,Q.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,Q.jsx)(at,{})}var st=Z.memo(function({matchId:e}){let t=i(),n=t.stores.matchStores.get(e);n||p();let r=v(t.stores.loadedAt,e=>e),a=v(n,e=>e);return(0,Q.jsx)(ct,{router:t,matchId:e,resetKey:r,matchState:Z.useMemo(()=>{let e=a.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:a.ssr,_displayPending:a._displayPending,parentRouteId:n}},[a._displayPending,a.routeId,a.ssr,t.routesById])})});function ct({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,Q.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?Z.Suspense:$,f=s?tt:$,p=l?it:$;return(0,Q.jsxs)(i.isRoot?i.options.shellComponent??$:$,{children:[(0,Q.jsx)(ie.Provider,{value:t,children:(0,Q.jsx)(d,{fallback:o,children:(0,Q.jsx)(f,{getResetKey:()=>n,errorComponent:s||rt,onCatch:(e,t)=>{if(j(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,Q.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return Z.createElement(l,e)},children:u||r._displayPending?(0,Q.jsx)(ee,{fallback:o,children:(0,Q.jsx)(ut,{matchId:t})}):(0,Q.jsx)(ut,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(lt,{resetKey:n}),(e.options.scrollRestoration,null)]}):null]})}function lt({resetKey:e}){let t=i(),n=Z.useRef(void 0);return r(()=>{let e=t.latestLocation.href;(n.current===void 0||n.current!==e)&&(t.emit({type:`onRendered`,...J(t.stores.location.get(),t.stores.resolvedLocation.get())}),n.current=e)},[t.latestLocation.state.__TSR_key,e,t]),null}var ut=Z.memo(function({matchId:e}){let t=i(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||p();let o=v(r,e=>e),s=o.routeId,c=t.routesById[s],l=Z.useMemo(()=>{let e=(t.routesById[s].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:s,loaderDeps:o.loaderDeps,params:o._strictParams,search:o._strictSearch});return e?JSON.stringify(e):void 0},[s,o.loaderDeps,o._strictParams,o._strictSearch,t.options.defaultRemountDeps,t.routesById]),u=Z.useMemo(()=>{let e=c.options.component??t.options.defaultComponent;return e?(0,Q.jsx)(e,{},l):(0,Q.jsx)(dt,{})},[l,c.options.component,t.options.defaultComponent]);if(o._displayPending)throw n(o,`displayPendingPromise`);if(o._forcePending)throw n(o,`minPendingPromise`);if(o.status===`pending`){let e=c.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(o.id);if(n&&!n._nonReactive.minPendingPromise){let t=a();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(o,`loadPromise`)}if(o.status===`notFound`)return j(o.error)||p(),ot(t,c,o.error);if(o.status===`redirected`)throw M(o.error)||p(),n(o,`loadPromise`);if(o.status===`error`)throw o.error;return u}),dt=Z.memo(function(){let e=i(),t=Z.useContext(ie),n,r=!1,a;{let i=t?e.stores.matchStores.get(t):void 0;[n,r]=v(i,e=>[e?.routeId,e?.globalNotFound??!1]),a=v(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let o=n?e.routesById[n]:void 0,s=e.options.defaultPendingComponent?(0,Q.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return o||p(),ot(e,o,void 0);if(!a)return null;let c=(0,Q.jsx)(st,{matchId:a});return n===`__root__`?(0,Q.jsx)(Z.Suspense,{fallback:s,children:c}):c});export{rt as a,Ce as c,tt as i,we as l,dt as n,qe as o,$ as r,J as s,st as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";import{o as r,t as i}from"./useRouter-DtTm7XkK.js";import{a,c as o,f as s,g as c,h as l,i as u,l as d,m as f,n as p,o as m,p as h,r as g,s as _,t as v,u as y}from"./useStore-CupyIEEP.js";import{_ as b,f as x,g as S,h as C,i as w,l as T,m as E,o as D,p as O,r as k,s as A,t as ee,u as te,v as ne}from"./ClientOnly-DHd0jlDY.js";import{i as j,r as re,t as M}from"./redirect-DMNGvjzO.js";import{n as ie}from"./matchContext-BFCdcHzo.js";function ae(){try{return typeof window<`u`&&typeof window.sessionStorage==`object`?window.sessionStorage:void 0}catch{return}}var oe=`tsr-scroll-restoration-v1_3`;function se(){let e=ae();if(!e)return null;let t={};try{let n=JSON.parse(e.getItem(`tsr-scroll-restoration-v1_3`)||`{}`);s(n)&&(t=n)}catch{}return{get state(){return t},set:e=>{t=d(e,t)||t},persist:()=>{try{e.setItem(oe,JSON.stringify(t))}catch{}}}}var ce=se(),le=e=>e.state.__TSR_key||e.href;function ue(e){let t=[],n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(` > `)}`.toLowerCase()}var N=!1,P=`window`,de=`data-scroll-restoration-id`;function fe(e,t){if(!ce)return;let n=ce;if((t??e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isScrollRestorationSetup||!n)return;e.isScrollRestorationSetup=!0,N=!1;let r=e.options.getScrollRestorationKey||le,i=new Map;window.history.scrollRestoration=`manual`;let a=t=>{if(!(N||!e.isScrollRestoring))if(t.target===document||t.target===window)i.set(P,{scrollX:window.scrollX||0,scrollY:window.scrollY||0});else{let e=t.target;i.set(e,{scrollX:e.scrollLeft||0,scrollY:e.scrollTop||0})}},o=t=>{if(!e.isScrollRestoring||!t||i.size===0||!n)return;let r=n.state[t]||={};for(let[e,t]of i){let n;if(e===P)n=P;else if(e.isConnected){let t=e.getAttribute(de);n=t?`[${de}="${t}"]`:ue(e)}n&&(r[n]=t)}};document.addEventListener(`scroll`,a,!0),e.subscribe(`onBeforeLoad`,e=>{o(e.fromLocation?r(e.fromLocation):void 0),i.clear()}),window.addEventListener(`pagehide`,()=>{o(r(e.stores.resolvedLocation.get()??e.stores.location.get())),n.persist()}),e.subscribe(`onRendered`,t=>{let a=r(t.toLocation),o=e.options.scrollRestorationBehavior,c=e.options.scrollToTopSelectors;if(i.clear(),!e.resetNextScroll){e.resetNextScroll=!0;return}if(!(typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))){N=!0;try{let t=e.isScrollRestoring?n.state[a]:void 0,r=!1;if(t)for(let e in t){let n=t[e];if(!s(n))continue;let{scrollX:i,scrollY:a}=n;if(!(!Number.isFinite(i)||!Number.isFinite(a))){if(e===P)window.scrollTo({top:a,left:i,behavior:o}),r=!0;else if(e){let t;try{t=document.querySelector(e)}catch{continue}t&&(t.scrollLeft=i,t.scrollTop=a,r=!0)}}}if(!r){let t=e.history.location.hash.slice(1);if(t){let e=window.history.state?.__hashScrollIntoViewOptions??!0;if(e){let n=document.getElementById(t);n&&n.scrollIntoView(e)}}else{let e={top:0,left:0,behavior:o};if(window.scrollTo(e),c)for(let t of c){if(t===P)continue;let n=typeof t==`function`?t():document.querySelector(t);n&&n.scrollTo(e)}}}}finally{N=!1}e.isScrollRestoring&&n.set(e=>(e[a]||={},e))}})}function pe(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function me(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function he(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=me(r):Array.isArray(t)?t.push(me(r)):n[e]=[t,me(r)]}return n}var ge=ve(JSON.parse),_e=ye(JSON.stringify,JSON.parse);function ve(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=he(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function ye(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=pe(e,r);return t?`?${t}`:``}}function be(e){return{input:({url:t})=>{for(let n of e)t=F(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=Se(e[n],t);return t}}}function xe(e){let t=te(e.basepath),n=`/${t}`,r=`${n}/`,i=e.caseSensitive?n:n.toLowerCase(),a=e.caseSensitive?r:r.toLowerCase();return{input:({url:t})=>{let r=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return r===i?t.pathname=`/`:r.startsWith(a)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=A([`/`,t,e.pathname]),e)}}function F(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Se(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Ce(e){let t=e;return{get(){return t},set(e){t=d(e,t)}}}function we(e){return{get(){return e()}}}function Te(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),h=n(e.statusCode),g=n(e.redirect),_=n([]),v=n([]),y=n([]),b=r(()=>I(o,_.get())),x=r(()=>I(s,v.get())),S=r(()=>I(c,y.get())),C=r(()=>_.get()[0]),w=r(()=>_.get().some(e=>o.get(e)?.get().status===`pending`)),T=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),E=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:b.get(),location:p.get(),resolvedLocation:m.get(),statusCode:h.get(),redirect:g.get()})),D=ne(64);function O(e){let t=D.get(e);return t||(t=r(()=>{let t=_.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),D.set(e,t)),t}let k={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:h,redirect:g,matchesId:_,pendingIds:v,cachedIds:y,matches:b,pendingMatches:x,cachedMatches:S,firstId:C,hasPending:w,matchRouteDeps:T,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:E,getRouteMatchStore:O,setMatches:A,setPending:ee,setCached:te};A(e.matches),a?.(k);function A(e){L(e,o,_,n,i)}function ee(e){L(e,s,v,n,i)}function te(e){L(e,c,y,n,i)}return k}function I(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function L(e,t,n,r,i){let a=e.map(e=>e.id),o=new Set(a);i(()=>{for(let e of t.keys())o.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}u(n.get(),a)||n.set(a)})}var R=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},Ee=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),z=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),B=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},De=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},V=(e,t,n)=>{if(!(!M(n)&&!j(n)))throw M(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:M(n)?`redirected`:r.status===`pending`?`success`:r.status,context:B(e,t.index),isFetching:!1,error:n})),j(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),M(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},Oe=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},ke=(e,t,n)=>{let r=B(e,n);e.updateMatch(t,e=>({...e,context:r}))},H=(e,t,n,r)=>{let{id:i,routeId:a}=e.matches[t],o=e.router.looseRoutesById[a];if(n instanceof Promise)throw n;n.routerCode=r,e.firstBadMatchIndex??=t,V(e,e.router.getMatch(i),n);try{o.options.onError?.(n)}catch(t){n=t,V(e,e.router.getMatch(i),n)}e.updateMatch(i,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!M(n)&&!j(n)&&(e.serialError??=n)},Ae=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!z(e,t)&&(n.options.loader||n.options.beforeLoad||Be(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{R(e)},i);r._nonReactive.pendingTimeout=t}},je=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;Ae(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&V(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},Me=(e,t,n,r)=>{let i=e.router.getMatch(t),o=i._nonReactive.loadPromise;i._nonReactive.loadPromise=a(()=>{o?.resolve(),o=void 0});let{paramsError:s,searchError:c}=i;s&&H(e,n,s,`PARSE_PARAMS`),c&&H(e,n,c,`VALIDATE_SEARCH`),Ae(e,t,r,i);let l=new AbortController,u=!1,d=()=>{u||(u=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:l})))},f=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{d(),f()});return}i._nonReactive.beforeLoadPromise=a();let p={...B(e,n,!1),...i.__routeContext},{search:m,params:g,cause:_}=i,v=z(e,t),y={search:m,abortController:l,params:g,preload:v,context:p,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:v?`preload`:_,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},b=r=>{if(r===void 0){e.router.batch(()=>{d(),f()});return}(M(r)||j(r))&&(d(),H(e,n,r,`BEFORE_LOAD`)),e.router.batch(()=>{d(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),f()})},x;try{if(x=r.options.beforeLoad(y),h(x))return d(),x.catch(t=>{H(e,n,t,`BEFORE_LOAD`)}).then(b)}catch(t){d(),H(e,n,t,`BEFORE_LOAD`)}b(x)},Ne=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>Me(e,n,t,i),s=()=>{if(Oe(e,n))return;let t=je(e,n,i);return h(t)?t.then(o):o()};return a()},Pe=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},Fe=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=B(e,r),d=z(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},Ie=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{U(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(Fe(e,t,n,r,i)),l=!!s&&h(c);if((l||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;V(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let u=a._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:B(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:B(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,j(t)&&await i.options.notFoundComponent?.preload?.(),V(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,V(e,e.router.getMatch(n),t)}!M(o)&&!j(o)&&await U(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:B(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),V(e,r,t)}},Le=async(e,t,n)=>{async function r(r,a,o,l,u){let f=Date.now()-a.updatedAt,p=r?u.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:u.options.staleTime??e.router.options.defaultStaleTime??0,m=u.options.shouldReload,h=typeof m==`function`?m(Fe(e,t,i,n,u)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||o!==void 0&&o!==l.id);s=g===`success`&&(_||(h??v)),r&&u.options.preload===!1||(s&&!e.sync&&d?(c=!0,(async()=>{try{await Ie(e,t,i,n,u);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){M(t)&&await e.router.navigate(t.options)}})()):g!==`success`||s?await Ie(e,t,i,n,u):ke(e,i,n))}let{id:i,routeId:o}=e.matches[n],s=!1,c=!1,l=e.router.looseRoutesById[o],u=l.options.loader,d=((typeof u==`function`?void 0:u?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(Oe(e,i)){if(!e.router.getMatch(i))return e.matches[n];ke(e,i,n)}else{let t=e.router.getMatch(i),s=e.router.stores.matchesId.get()[n],c=(s&&e.router.stores.matchStores.get(s)||null)?.routeId===o?s:e.router.stores.matches.get().find(e=>e.routeId===o)?.id,u=z(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&d)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&&V(e,n,a),n.status===`pending`&&await r(u,t,c,n,l)}else{let n=u&&!e.router.stores.matchStores.has(i),o=e.router.getMatch(i);o._nonReactive.loaderPromise=a(),n!==o.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(u,t,c,o,l)}}let f=e.router.getMatch(i);c||(f._nonReactive.loaderPromise?.resolve(),f._nonReactive.loadPromise?.resolve(),f._nonReactive.loadPromise=void 0),clearTimeout(f._nonReactive.pendingTimeout),f._nonReactive.pendingTimeout=void 0,c||(f._nonReactive.loaderPromise=void 0),f._nonReactive.dehydrated=void 0;let p=c?f.isFetching:!1;return p!==f.isFetching||f.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:p,invalid:!1})),e.router.getMatch(i)):f};async function Re(e){let t=e,n=[];Ee(t.router)&&R(t);let r;for(let e=0;e({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:l},isFetching:!1})),u=e,await U(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await U(e,[`errorComponent`])}for(let e=0;e<=u;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=Pe(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let d=R(t);if(h(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function ze(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function U(e,t=W){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===W?(()=>{if(e._componentsPromise===void 0){let t=ze(e,W);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():ze(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function Be(e){for(let t of W)if(e.options[t]?.preload)return!0;return!1}var W=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`],G=`__TSR_index`,Ve=`popstate`,He=`beforeunload`;function Ue(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=K(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[G];i=We(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[G];i=We(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[G]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function We(e,t){t||={};let n=q();return{...t,key:n,__TSR_key:n,[G]:e}}function Ge(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>K(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=q();t.history.replaceState({[G]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=K(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[G]-l.state[G],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=Ue({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(He,S,{capture:!0}),t.removeEventListener(Ve,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(He,S,{capture:!0}),t.addEventListener(Ve,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function Ke(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function K(e,t){let n=Ke(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=q();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[G]:0,key:a,__TSR_key:a}}}function q(){return(Math.random()+1).toString(36).substring(7)}function J(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var qe=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=w(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Ge()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=ne(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=Te(Ye(this.latestLocation),e),fe(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=te(o);t&&t!==`/`&&e.push(xe({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:be(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a)`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=b(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&S(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:m(e).path,external:!1,searchStr:o,search:l(t?.search,i),hash:m(r.slice(1)).path,state:c(t?.state,a)}}let o=new URL(i,this.origin),s=F(this.rewrite,o),u=this.options.parseSearch(s.search),d=this.options.stringifySearch(u);return s.search=d,{href:s.href.replace(s.origin,``),publicHref:i,pathname:m(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:d,search:l(t?.search,u),hash:m(s.hash.slice(1)).path,state:c(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>T({base:e,to:k(t),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>Xe({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=this.resolvePathWithBase(i,`.`),s=r.search,u=Object.assign(Object.create(null),r.params),f=t.to?this.resolvePathWithBase(a,`${t.to}`):this.resolvePathWithBase(a,`.`),p=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?u:Object.assign(u,d(t.params,u)),h=this.getMatchedRoutes(f),g=h.matchedRoutes;if((!h.foundRoute||h.foundRoute.path!==`/`&&h.routeParams[`**`])&&this.options.notFoundRoute&&(g=[...g,this.options.notFoundRoute]),Object.keys(p).length>0)for(let e of g){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(p,t(p))}catch{}}let _=e.leaveParams?f:m(D({path:f,params:p,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,v=s;if(e._includeValidateSearch&&this.options.search?.strict){let e={};g.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,X(t.options.validateSearch,{...e,...v}))}catch{}}),v=e}v=Ze({search:v,dest:t,destRoutes:g,_includeValidateSearch:e._includeValidateSearch}),v=l(s,v);let y=this.options.stringifySearch(v),b=t.hash===!0?n.hash:t.hash?d(t.hash,n.hash):void 0,x=b?`#${b}`:``,S=t.state===!0?n.state:t.state?d(t.state,n.state):{};S=c(n.state,S);let C=`${_}${y}${x}`,w,T,E=!1;if(this.rewrite){let e=new URL(C,this.origin),t=Se(this.rewrite,e);w=e.href.replace(e.origin,``),t.origin===this.origin?T=t.pathname+t.search+t.hash:(T=t.href,E=!0)}else w=o(C),T=w;return{publicHref:T,href:w,pathname:_,search:v,searchStr:y,state:S,hash:b??``,external:E,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=O(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,d(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=_(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},i=x(this.latestLocation.href)===x(n.href),o=this.commitLocationPromise;if(this.commitLocationPromise=a(()=>{o?.resolve(),o=void 0}),i&&r())this.load();else{let{maskedLocation:r,hashScrollIntoView:i,...a}=n;r&&(a={...r,state:{...r.state,__tempKey:void 0,__tempLocation:{...a,search:a.searchStr,state:{...a.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(a.unmaskOnReload??this.options.unmaskOnReload??!1)&&(a.state.__tempKey=this.tempLocationKey)),a.state.__hashScrollIntoViewOptions=i??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,this.history[n.replace?`replace`:`push`](a.publicHref,a.state,{ignoreBlocker:t})}return this.resetNextScroll=n.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=K(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=F(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(y(t,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return Promise.resolve()}return i.replace?window.location.replace(t):window.location.href=t,Promise.resolve()}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t,n,r,i=this.stores.resolvedLocation.get()??this.stores.location.get();for(r=new Promise(a=>{this.startTransition(async()=>{try{this.beforeLoad();let t=this.latestLocation,n=J(t,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...n}),this.emit({type:`onBeforeLoad`,...n}),await Re({router:this,sync:e?.sync,forceStaleReload:i.href===t.href,matches:this.stores.pendingMatches.get(),location:t,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){M(e)?(t=e,this.navigate({...t.options,replace:!0,ignoreBlocker:!0})):j(e)&&(n=e);let r=t?t.status:n?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(r),this.stores.redirect.set(t)})}this.latestLoadPromise===r&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),a()})}),this.latestLoadPromise=r,await r;this.latestLoadPromise&&r!==this.latestLoadPromise;)await this.latestLoadPromise;let a;this.hasNotFoundMatch()?a=404:this.stores.matches.get().some(e=>e.status===`error`)&&(a=500),a!==void 0&&this.stores.statusCode.set(a)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(J(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&y(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`?!0:e-t.updatedAt>=r}})},this.loadRouteChunk=U,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...r,...this.stores.cachedIds.get()]),a=n.filter(e=>!i.has(e.id));if(a.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...a])}try{return n=await Re({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(M(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});j(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=C(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!_(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?_(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??_e,parseSearch:e.parseSearch??ge,protocolAllowlist:e.protocolAllowlist??g}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:i,parsedParams:o}=n,{matchedRoutes:s}=n,u=!1;(r?r.path!==`/`&&i[`**`]:x(e.pathname))&&(this.options.notFoundRoute?s=[...s,this.options.notFoundRoute]:u=!0);let d=u?$e(this.options.notFoundMode,s):void 0,f=Array(s.length),p=new Map;for(let e of this.stores.matchStores.values())e.routeId&&p.set(e.routeId,e.get());for(let n=0;nthis.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:f,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return f}matchRoutesLightweight(e){let{matchedRoutes:t,routeParams:n,parsedParams:r}=this.getMatchedRoutes(e.pathname),i=f(t),a={...e.search};for(let e of t)try{Object.assign(a,X(e.options.validateSearch,a))}catch{}let o=f(this.stores.matchesId.get()),s=o&&this.stores.matchStores.get(o)?.get(),c=s&&s.routeId===i.id&&s.pathname===e.pathname,l;if(c)l=s.params;else{let e=Object.assign(Object.create(null),n);for(let i of t)try{et(i,n,r??{},e)}catch{}l=e}return{matchedRoutes:t,fullPath:i.fullPath,search:a,params:l}}},Y=class extends Error{},Je=class extends Error{};function Ye(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function X(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new Y(`Async validation not supported`);if(n.issues)throw new Y(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function Xe({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=x(e),a,o,s=E(i,n,!0);return s&&(a=s.route,Object.assign(r,s.rawParams),o=Object.assign(Object.create(null),s.parsedParams)),{matchedRoutes:s?.branch||[t.__root__],routeParams:r,foundRoute:a,parsedParams:o}}function Ze({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return Qe(n)(e,t,r??!1)}function Qe(e){let t={dest:null,_includeValidateSearch:!1,middlewares:[]};for(let n of e)`search`in n.options?n.options.search?.middlewares&&t.middlewares.push(...n.options.search.middlewares):(n.options.preSearchFilters||n.options.postSearchFilters)&&t.middlewares.push(({search:e,next:t})=>{let r=e;`preSearchFilters`in n.options&&n.options.preSearchFilters&&(r=n.options.preSearchFilters.reduce((e,t)=>t(e),e));let i=t(r);return`postSearchFilters`in n.options&&n.options.postSearchFilters?n.options.postSearchFilters.reduce((e,t)=>t(e),i):i}),n.options.validateSearch&&t.middlewares.push(({search:e,next:r})=>{let i=r(e);if(!t._includeValidateSearch)return i;try{return{...i,...X(n.options.validateSearch,i)??void 0}}catch{return i}});t.middlewares.push(({search:e})=>{let n=t.dest;return n.search?n.search===!0?e:d(n.search,e):{}});let n=(e,t,r)=>{if(e>=r.length)return t;let i=r[e];return i({search:t,next:t=>n(e+1,t,r)})};return function(e,r,i){return t.dest=r,t._includeValidateSearch=i,n(0,e,t.middlewares)}}function $e(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return re}function et(e,t,n,r){let i=e.options.params?.parse??e.options.parseParams;if(i)if(e.options.skipRouteOnParseError)for(let e in t)e in n&&(r[e]=n[e]);else{let e=i(r);Object.assign(r,e)}}var Z=e(t(),1),Q=n();function tt(e){let t=e.errorComponent??rt;return(0,Q.jsx)(nt,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?Z.createElement(t,{error:n,reset:r}):e.children})}var nt=class extends Z.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function rt({error:e}){let[t,n]=Z.useState(!1);return(0,Q.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,Q.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,Q.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,Q.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,Q.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,Q.jsx)(`div`,{children:(0,Q.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,Q.jsx)(`code`,{children:e.message}):null})}):null]})}function it(e){let t=i(),n=`not-found-${v(t.stores.location,e=>e.pathname)}-${v(t.stores.status,e=>e)}`;return(0,Q.jsx)(tt,{getResetKey:()=>n,onCatch:(t,n)=>{if(j(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(j(t))return e.fallback?.(t);throw t},children:e.children})}function at(){return(0,Q.jsx)(`p`,{children:`Not Found`})}function $(e){return(0,Q.jsx)(Q.Fragment,{children:e.children})}function ot(e,t,n){return t.options.notFoundComponent?(0,Q.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,Q.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,Q.jsx)(at,{})}var st=Z.memo(function({matchId:e}){let t=i(),n=t.stores.matchStores.get(e);n||p();let r=v(t.stores.loadedAt,e=>e),a=v(n,e=>e);return(0,Q.jsx)(ct,{router:t,matchId:e,resetKey:r,matchState:Z.useMemo(()=>{let e=a.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:a.ssr,_displayPending:a._displayPending,parentRouteId:n}},[a._displayPending,a.routeId,a.ssr,t.routesById])})});function ct({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,Q.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?Z.Suspense:$,f=s?tt:$,p=l?it:$;return(0,Q.jsxs)(i.isRoot?i.options.shellComponent??$:$,{children:[(0,Q.jsx)(ie.Provider,{value:t,children:(0,Q.jsx)(d,{fallback:o,children:(0,Q.jsx)(f,{getResetKey:()=>n,errorComponent:s||rt,onCatch:(e,t)=>{if(j(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,Q.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return Z.createElement(l,e)},children:u||r._displayPending?(0,Q.jsx)(ee,{fallback:o,children:(0,Q.jsx)(ut,{matchId:t})}):(0,Q.jsx)(ut,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(lt,{resetKey:n}),(e.options.scrollRestoration,null)]}):null]})}function lt({resetKey:e}){let t=i(),n=Z.useRef(void 0);return r(()=>{let e=t.latestLocation.href;(n.current===void 0||n.current!==e)&&(t.emit({type:`onRendered`,...J(t.stores.location.get(),t.stores.resolvedLocation.get())}),n.current=e)},[t.latestLocation.state.__TSR_key,e,t]),null}var ut=Z.memo(function({matchId:e}){let t=i(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||p();let o=v(r,e=>e),s=o.routeId,c=t.routesById[s],l=Z.useMemo(()=>{let e=(t.routesById[s].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:s,loaderDeps:o.loaderDeps,params:o._strictParams,search:o._strictSearch});return e?JSON.stringify(e):void 0},[s,o.loaderDeps,o._strictParams,o._strictSearch,t.options.defaultRemountDeps,t.routesById]),u=Z.useMemo(()=>{let e=c.options.component??t.options.defaultComponent;return e?(0,Q.jsx)(e,{},l):(0,Q.jsx)(dt,{})},[l,c.options.component,t.options.defaultComponent]);if(o._displayPending)throw n(o,`displayPendingPromise`);if(o._forcePending)throw n(o,`minPendingPromise`);if(o.status===`pending`){let e=c.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(o.id);if(n&&!n._nonReactive.minPendingPromise){let t=a();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(o,`loadPromise`)}if(o.status===`notFound`)return j(o.error)||p(),ot(t,c,o.error);if(o.status===`redirected`)throw M(o.error)||p(),n(o,`loadPromise`);if(o.status===`error`)throw o.error;return u}),dt=Z.memo(function(){let e=i(),t=Z.useContext(ie),n,r=!1,a;{let i=t?e.stores.matchStores.get(t):void 0;[n,r]=v(i,e=>[e?.routeId,e?.globalNotFound??!1]),a=v(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let o=n?e.routesById[n]:void 0,s=e.options.defaultPendingComponent?(0,Q.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return o||p(),ot(e,o,void 0);if(!a)return null;let c=(0,Q.jsx)(st,{matchId:a});return n===`__root__`?(0,Q.jsx)(Z.Suspense,{fallback:s,children:c}):c});export{rt as a,Ce as c,tt as i,we as l,dt as n,qe as o,$ as r,J as s,st as t}; \ No newline at end of file diff --git a/src/www/assets/Matches-9qnXJNrS.js b/src/www/assets/Matches-CiQgu9ui.js similarity index 90% rename from src/www/assets/Matches-9qnXJNrS.js rename to src/www/assets/Matches-CiQgu9ui.js index 64a8d90..46309df 100644 --- a/src/www/assets/Matches-9qnXJNrS.js +++ b/src/www/assets/Matches-CiQgu9ui.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{o as r,s as i,t as a}from"./useRouter-DtTm7XkK.js";import{t as o}from"./useStore-CupyIEEP.js";import{f as s}from"./ClientOnly-Bj5CESUC.js";import"./redirect-DMNGvjzO.js";import{a as c,i as l,r as u,s as d,t as f}from"./Match-DrG03Wse.js";import{n as p}from"./matchContext-BFCdcHzo.js";import{t as m}from"./atom-DQpaPCwp.js";function h(e){if(typeof document<`u`&&document.querySelector){let t=e.stores.location.get(),n=t.state.__hashScrollIntoViewOptions??!0;if(n&&t.hash!==``){let e=document.getElementById(t.hash);e&&e.scrollIntoView(n)}}}var g=e(t(),1);function _(){let e=a(),t=g.useRef({router:e,mounted:!1}),[n,c]=g.useState(!1),l=o(e.stores.isLoading,e=>e),u=o(e.stores.hasPending,e=>e),f=i(l),p=l||n||u,_=i(p),v=l||u,y=i(v);return e.startTransition=e=>{c(!0),g.startTransition(()=>{e(),c(!1)})},g.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return s(e.latestLocation.publicHref)!==s(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),r(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),r(()=>{f&&!l&&e.emit({type:`onLoad`,...d(e.stores.location.get(),e.stores.resolvedLocation.get())})},[f,e,l]),r(()=>{y&&!v&&e.emit({type:`onBeforeRouteMount`,...d(e.stores.location.get(),e.stores.resolvedLocation.get())})},[v,y,e]),r(()=>{if(_&&!p){let t=d(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),m(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())}),t.hrefChanged&&h(e)}},[p,_,e]),null}var v=n();function y(){let e=a(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,v.jsx)(t,{}):null,r=(0,v.jsxs)(typeof document<`u`&&e.ssr?u:g.Suspense,{fallback:n,children:[(0,v.jsx)(_,{}),(0,v.jsx)(b,{})]});return e.options.InnerWrap?(0,v.jsx)(e.options.InnerWrap,{children:r}):r}function b(){let e=a(),t=o(e.stores.firstId,e=>e),n=o(e.stores.loadedAt,e=>e),r=t?(0,v.jsx)(f,{matchId:t}):null;return(0,v.jsx)(p.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,v.jsx)(l,{getResetKey:()=>n,errorComponent:c,onCatch:void 0,children:r})})}function x(){let e=a();return o(e.stores.matchRouteDeps,e=>e),g.useCallback(t=>{let{pending:n,caseSensitive:r,fuzzy:i,includeSearch:a,...o}=t;return e.matchRoute(o,{pending:n,caseSensitive:r,fuzzy:i,includeSearch:a})},[e])}export{x as n,y as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";import{o as r,s as i,t as a}from"./useRouter-DtTm7XkK.js";import{t as o}from"./useStore-CupyIEEP.js";import{f as s}from"./ClientOnly-DHd0jlDY.js";import"./redirect-DMNGvjzO.js";import{a as c,i as l,r as u,s as d,t as f}from"./Match-onTP_fNL.js";import{n as p}from"./matchContext-BFCdcHzo.js";import{t as m}from"./atom-DQpaPCwp.js";function h(e){if(typeof document<`u`&&document.querySelector){let t=e.stores.location.get(),n=t.state.__hashScrollIntoViewOptions??!0;if(n&&t.hash!==``){let e=document.getElementById(t.hash);e&&e.scrollIntoView(n)}}}var g=e(t(),1);function _(){let e=a(),t=g.useRef({router:e,mounted:!1}),[n,c]=g.useState(!1),l=o(e.stores.isLoading,e=>e),u=o(e.stores.hasPending,e=>e),f=i(l),p=l||n||u,_=i(p),v=l||u,y=i(v);return e.startTransition=e=>{c(!0),g.startTransition(()=>{e(),c(!1)})},g.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return s(e.latestLocation.publicHref)!==s(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),r(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),r(()=>{f&&!l&&e.emit({type:`onLoad`,...d(e.stores.location.get(),e.stores.resolvedLocation.get())})},[f,e,l]),r(()=>{y&&!v&&e.emit({type:`onBeforeRouteMount`,...d(e.stores.location.get(),e.stores.resolvedLocation.get())})},[v,y,e]),r(()=>{if(_&&!p){let t=d(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),m(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())}),t.hrefChanged&&h(e)}},[p,_,e]),null}var v=n();function y(){let e=a(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,v.jsx)(t,{}):null,r=(0,v.jsxs)(typeof document<`u`&&e.ssr?u:g.Suspense,{fallback:n,children:[(0,v.jsx)(_,{}),(0,v.jsx)(b,{})]});return e.options.InnerWrap?(0,v.jsx)(e.options.InnerWrap,{children:r}):r}function b(){let e=a(),t=o(e.stores.firstId,e=>e),n=o(e.stores.loadedAt,e=>e),r=t?(0,v.jsx)(f,{matchId:t}):null;return(0,v.jsx)(p.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,v.jsx)(l,{getResetKey:()=>n,errorComponent:c,onCatch:void 0,children:r})})}function x(){let e=a();return o(e.stores.matchRouteDeps,e=>e),g.useCallback(t=>{let{pending:n,caseSensitive:r,fuzzy:i,includeSearch:a,...o}=t;return e.matchRoute(o,{pending:n,caseSensitive:r,fuzzy:i,includeSearch:a})},[e])}export{x as n,y as t}; \ No newline at end of file diff --git a/src/www/assets/_error-BWjxg4aC.js b/src/www/assets/_error-BWjxg4aC.js deleted file mode 100644 index e77affb..0000000 --- a/src/www/assets/_error-BWjxg4aC.js +++ /dev/null @@ -1 +0,0 @@ -import{tm as e}from"./messages-BOatyqUm.js";import{m as t}from"./search-provider-C-_FQI9C.js";import{n,t as r}from"./theme-switch-CHLQml_8.js";import{t as i}from"./general-error-BoAB2alm.js";import{t as a}from"./not-found-error-BvJzTnw0.js";import{t as o}from"./_error-CtV7sHbI.js";import{t as s}from"./unauthorized-error-CtrGmVOn.js";import{t as c}from"./forbidden-CgQyYxDt.js";import{t as l}from"./maintenance-error-DeZhljU8.js";import{n as u,r as d,t as f}from"./header-DVAsq5d6.js";var p=e();function m(){let{error:e}=o.useParams(),m={unauthorized:s,forbidden:c,"not-found":a,"internal-server-error":i,"maintenance-error":l}[e]||a;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(f,{className:`border-b`,fixed:!0,children:[(0,p.jsx)(u,{}),(0,p.jsxs)(`div`,{className:`ms-auto flex items-center space-x-4`,children:[(0,p.jsx)(n,{}),(0,p.jsx)(r,{}),(0,p.jsx)(t,{}),(0,p.jsx)(d,{})]})]}),(0,p.jsx)(`div`,{className:`flex-1 [&>div]:h-full`,children:(0,p.jsx)(m,{})})]})}export{m as component}; \ No newline at end of file diff --git a/src/www/assets/_error-CtV7sHbI.js b/src/www/assets/_error-CtV7sHbI.js deleted file mode 100644 index 7757ce3..0000000 --- a/src/www/assets/_error-CtV7sHbI.js +++ /dev/null @@ -1,2 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_error-BWjxg4aC.js","assets/search-provider-C-_FQI9C.js","assets/chunk-DECur_0Z.js","assets/dist-CRowTfGU.js","assets/dist-DPPquN_M.js","assets/messages-BOatyqUm.js","assets/react-CO2uhaBc.js","assets/confirm-dialog-D1L-0EhT.js","assets/button-C_NDYaz8.js","assets/clsx-D9aGYY3V.js","assets/dist-iiotRAEO.js","assets/dist-rcWP-8Cu.js","assets/dist-D4X8zGEB.js","assets/dist-Cc8_LDAq.js","assets/es2015-DT8UeWzs.js","assets/dist-DvwKOQ8R.js","assets/dist-BNFQuJTu.js","assets/dist-C5heX0fx.js","assets/dist-D0DoWChj.js","assets/dist-CHFjpVqk.js","assets/dist-BixeH3nX.js","assets/dist-ZdRQQNeu.js","assets/separator-CsUemQNs.js","assets/tooltip-xZuTTfnF.js","assets/dist-CsIb2aLK.js","assets/dist-Dtn5c_cx.js","assets/auth-store-De4Y7PFV.js","assets/dist-JOUh6qvR.js","assets/with-selector-DBfssCrY.js","assets/cookies-BzZOQYPw.js","assets/useRouter-DtTm7XkK.js","assets/useNavigate-7u4DX0Ho.js","assets/useStore-CupyIEEP.js","assets/command-B_SlhXkX.js","assets/createLucideIcon-Br0Bd5k2.js","assets/dialog-CZ-2RPb-.js","assets/skeleton-CmDjDV1O.js","assets/wallet-CtiawGS1.js","assets/sun-JU8p4FoE.js","assets/shield-check-MAPDL1u8.js","assets/logo-agrtpj2n.js","assets/input-8zzM34r5.js","assets/font-provider-BPsIRWbb.js","assets/theme-provider-BREWrHp_.js","assets/theme-switch-CHLQml_8.js","assets/dropdown-menu-DzCIpsuG.js","assets/check-CHp0nSkR.js","assets/header-DVAsq5d6.js","assets/link-DPnL8P5J.js","assets/ClientOnly-Bj5CESUC.js","assets/forbidden-CgQyYxDt.js","assets/general-error-BoAB2alm.js","assets/maintenance-error-DeZhljU8.js","assets/not-found-error-BvJzTnw0.js","assets/unauthorized-error-CtrGmVOn.js"])))=>i.map(i=>d[i]); -import{n as e,t}from"./lazyRouteComponent-JF8ipq5d.js";import{t as n}from"./preload-helper-DoS0eHac.js";var r=e(`/_authenticated/errors/$error`)({component:t(()=>n(()=>import(`./_error-BWjxg4aC.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),`component`)});export{r as t}; \ No newline at end of file diff --git a/src/www/assets/_error-D2USOC7M.js b/src/www/assets/_error-D2USOC7M.js new file mode 100644 index 0000000..e0167d4 --- /dev/null +++ b/src/www/assets/_error-D2USOC7M.js @@ -0,0 +1 @@ +import{tm as e}from"./messages-CL4J6BaJ.js";import{m as t}from"./search-provider-CTRbHqNx.js";import{n,t as r}from"./theme-switch-CdEcHkcU.js";import{t as i}from"./general-error-Drsf0vjz.js";import{t as a}from"./not-found-error-D4F_Uu-C.js";import{t as o}from"./_error-DypydLD1.js";import{t as s}from"./unauthorized-error-TaUhj35c.js";import{t as c}from"./forbidden-BCyOYrFV.js";import{t as l}from"./maintenance-error-lgcDljP-.js";import{n as u,r as d,t as f}from"./header-vUJd_CA5.js";var p=e();function m(){let{error:e}=o.useParams(),m={unauthorized:s,forbidden:c,"not-found":a,"internal-server-error":i,"maintenance-error":l}[e]||a;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(f,{className:`border-b`,fixed:!0,children:[(0,p.jsx)(u,{}),(0,p.jsxs)(`div`,{className:`ms-auto flex items-center space-x-4`,children:[(0,p.jsx)(n,{}),(0,p.jsx)(r,{}),(0,p.jsx)(t,{}),(0,p.jsx)(d,{})]})]}),(0,p.jsx)(`div`,{className:`flex-1 [&>div]:h-full`,children:(0,p.jsx)(m,{})})]})}export{m as component}; \ No newline at end of file diff --git a/src/www/assets/_error-DypydLD1.js b/src/www/assets/_error-DypydLD1.js new file mode 100644 index 0000000..82d2eb4 --- /dev/null +++ b/src/www/assets/_error-DypydLD1.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_error-D2USOC7M.js","assets/search-provider-CTRbHqNx.js","assets/chunk-DECur_0Z.js","assets/dist-CRowTfGU.js","assets/dist-DmeeHi7K.js","assets/messages-CL4J6BaJ.js","assets/react-CO2uhaBc.js","assets/confirm-dialog-Crc1Jrzv.js","assets/button-NLSeBFht.js","assets/clsx-D9aGYY3V.js","assets/dist-DPYswSIO.js","assets/dist-esC74fSg.js","assets/dist-SR6sl-WU.js","assets/dist-D3WFT-Yo.js","assets/es2015-3J9GnV9P.js","assets/dist-BZMqLvO-.js","assets/dist-CGRahgI2.js","assets/dist-DA1qWiix.js","assets/dist-DhcQhr4B.js","assets/dist-UaPzzPYf.js","assets/dist-BixeH3nX.js","assets/dist-B0pRVbY9.js","assets/separator-CqhQIQ-B.js","assets/tooltip-QxnX5RKP.js","assets/dist-DB-jLX48.js","assets/dist-CjidLXaw.js","assets/auth-store-8ocF_FHU.js","assets/dist-Dd-sCJIt.js","assets/with-selector-DBfssCrY.js","assets/cookies-BzZOQYPw.js","assets/useRouter-DtTm7XkK.js","assets/useNavigate-7u4DX0Ho.js","assets/useStore-CupyIEEP.js","assets/command-vy8966UO.js","assets/createLucideIcon-Br0Bd5k2.js","assets/dialog-CtyiwzAl.js","assets/skeleton-B4TLI5_E.js","assets/wallet-Cdhl16hF.js","assets/sun-JU8p4FoE.js","assets/shield-check-MAPDL1u8.js","assets/logo-CBibDHP9.js","assets/input-DAqep8ZY.js","assets/font-provider-C4_iupSb.js","assets/theme-provider-ixHkEVGI.js","assets/theme-switch-CdEcHkcU.js","assets/dropdown-menu-D72UcvWG.js","assets/check-CHp0nSkR.js","assets/header-vUJd_CA5.js","assets/link-6i3yGmK_.js","assets/ClientOnly-DHd0jlDY.js","assets/forbidden-BCyOYrFV.js","assets/general-error-Drsf0vjz.js","assets/maintenance-error-lgcDljP-.js","assets/not-found-error-D4F_Uu-C.js","assets/unauthorized-error-TaUhj35c.js"])))=>i.map(i=>d[i]); +import{n as e,t}from"./lazyRouteComponent-CleTUoKA.js";import{t as n}from"./preload-helper-DoS0eHac.js";var r=e(`/_authenticated/errors/$error`)({component:t(()=>n(()=>import(`./_error-D2USOC7M.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54])),`component`)});export{r as t}; \ No newline at end of file diff --git a/src/www/assets/_trade_id-CrABgEyD.js b/src/www/assets/_trade_id-BUpVePSs.js similarity index 99% rename from src/www/assets/_trade_id-CrABgEyD.js rename to src/www/assets/_trade_id-BUpVePSs.js index 690b736..d1e5b94 100644 --- a/src/www/assets/_trade_id-CrABgEyD.js +++ b/src/www/assets/_trade_id-BUpVePSs.js @@ -1,4 +1,4 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{a as t,p as n}from"./auth-store-De4Y7PFV.js";import{t as r}from"./react-CO2uhaBc.js";import{$ as i,A as a,B as o,D as s,E as c,F as l,G as u,H as d,I as f,J as p,K as m,L as h,M as g,N as _,O as v,P as y,Q as b,R as x,Ru as S,T as C,U as w,V as T,W as E,X as D,Xp as O,Y as k,Z as A,at as ee,ct as j,et as te,it as ne,j as re,k as ie,lt as ae,n as M,nt as N,ot as oe,r as P,st as F,t as se,tm as ce,tt as I,z as L}from"./messages-BOatyqUm.js";import{t as le}from"./useNavigate-7u4DX0Ho.js";import{i as ue,t as R}from"./button-C_NDYaz8.js";import{a as z,i as de,n as fe,r as B,t as pe}from"./select-CzebumOF.js";import{t as V}from"./createLucideIcon-Br0Bd5k2.js";import{t as me}from"./arrow-left-right-CcCrkQiR.js";import{t as H}from"./arrow-left-BpZwGREZ.js";import{t as he}from"./check-CHp0nSkR.js";import{n as ge,t as _e}from"./radio-group-D2rceepu.js";import{n as ve,t as ye}from"./copy-to-clipboard-C1tj4a8X.js";import{t as be}from"./loader-circle-DpEz1fQv.js";import{t as xe}from"./send-BNvceEpO.js";import{t as Se}from"./triangle-alert-DB5v_9sS.js";import{a as Ce,c as we,i as Te,l as Ee,n as De,o as Oe,r as ke,s as Ae,t as je}from"./dialog-CZ-2RPb-.js";import{n as Me}from"./dist-JOUh6qvR.js";import{t as Ne}from"./_trade_id-DIf2n6tl.js";import{t as Pe}from"./input-8zzM34r5.js";import{a as Fe,i as Ie,n as Le,o as Re,r as ze,s as Be,t as Ve}from"./crypto-icon-DnliVYVs.js";import{n as He,t as Ue}from"./labels-Cbc2zlmv.js";import{a as We,c as Ge,d as Ke,f as U,h as qe,i as Je,l as Ye,m as Xe,n as Ze,o as Qe,p as $e,r as et,s as tt,u as nt}from"./checkout-model-CQ3aqlob.js";var rt=V(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),it=V(`file-x`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m14.5 12.5-5 5`,key:`b62r18`}],[`path`,{d:`m9.5 12.5 5 5`,key:`1rk7el`}]]),at=V(`link`,[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]),ot=V(`timer`,[[`line`,{x1:`10`,x2:`14`,y1:`2`,y2:`2`,key:`14vaq8`}],[`line`,{x1:`12`,x2:`15`,y1:`14`,y2:`11`,key:`17fdiu`}],[`circle`,{cx:`12`,cy:`14`,r:`8`,key:`1e1u0o`}]]),st=e(ye(),1),W=e(r()),ct=Object.defineProperty,lt=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,ft=(e,t,n)=>t in e?ct(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pt=(e,t)=>{for(var n in t||={})ut.call(t,n)&&ft(e,n,t[n]);if(lt)for(var n of lt(t))dt.call(t,n)&&ft(e,n,t[n]);return e},mt=(e,t)=>{var n={};for(var r in e)ut.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&<)for(var r of lt(e))t.indexOf(r)<0&&dt.call(e,r)&&(n[r]=e[r]);return n},ht;(e=>{let t=class t{constructor(e,n,r,a){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],et.MAX_VERSION)throw RangeError(`Version value out of range`);if(a<-1||a>7)throw RangeError(`Mask value out of range`);this.size=e*4+17;let o=[];for(let e=0;e7)throw RangeError(`Invalid value`);let u,d;for(u=a;;u++){let n=t.getNumDataCodewords(u,r)*8,i=o.getTotalBits(e,u);if(i<=n){d=i;break}if(u>=s)throw RangeError(`Data too long`)}for(let e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])l&&d<=t.getNumDataCodewords(u,e)*8&&(r=e);let f=[];for(let t of e){n(t.mode.modeBits,4,f),n(t.numChars,t.mode.numCharCountBits(u),f);for(let e of t.getData())f.push(e)}i(f.length==d);let p=t.getNumDataCodewords(u,r)*8;i(f.length<=p),n(0,Math.min(4,p-f.length),f),n(0,(8-f.length%8)%8,f),i(f.length%8==0);for(let e=236;f.lengthm[t>>>3]|=e<<7-(t&7)),new t(u,r,m,c)}getModule(e,t){return 0<=e&&e>>9)*1335;let a=(t<<10|n)^21522;i(a>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(a,e));this.setFunctionModule(8,7,r(a,6)),this.setFunctionModule(8,8,r(a,7)),this.setFunctionModule(7,8,r(a,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(a,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(a,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(a,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;i(t>>>18==0);for(let e=0;e<18;e++){let n=r(t,e),i=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(i,a,n),this.setFunctionModule(a,i,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;0<=a&&a{(e!=l-o||n>=c)&&f.push(t[e])});return i(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw RangeError(`Invalid argument`);let n=0;for(let t=this.size-1;t>=1;t-=2){t==6&&(t=5);for(let i=0;i>>3],7-(n&7)),n++)}}i(n==e.length*8)}applyMask(e){if(e<0||e>7)throw RangeError(`Mask value out of range`);for(let t=0;t5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][o],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;n5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[o][n],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;ne+ +!!t,n);let r=this.size*this.size,a=Math.ceil(Math.abs(n*20-r*10)/r)-1;return i(0<=a&&a<=9),e+=a*t.PENALTY_N4,i(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(this.version==1)return[];{let e=Math.floor(this.version/7)+2,t=this.version==32?26:Math.ceil((this.version*4+4)/(e*2-2))*2,n=[6];for(let r=this.size-7;n.lengtht.MAX_VERSION)throw RangeError(`Version number out of range`);let n=(16*e+128)*e+64;if(e>=2){let t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return i(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw RangeError(`Degree out of range`);let n=[];for(let t=0;t0);for(let i of e){let e=i^r.shift();r.push(0),n.forEach((n,i)=>r[i]^=t.reedSolomonMultiply(n,e))}return r}static reedSolomonMultiply(e,t){if(e>>>8||t>>>8)throw RangeError(`Byte out of range`);let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return i(n>>>8==0),n}finderPenaltyCountPatterns(e){let t=e[1];i(t<=this.size*3);let n=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(n&&e[0]>=t*4&&e[6]>=t?1:0)+(n&&e[6]>=t*4&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(e,t,n){if(t<0||t>31||e>>>t)throw RangeError(`Value out of range`);for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function r(e,t){return(e>>>t&1)!=0}function i(e){if(!e)throw Error(`Assertion error`)}let a=class e{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw RangeError(`Invalid argument`);this.bitData=n.slice()}static makeBytes(t){let r=[];for(let e of t)n(e,8,r);return new e(e.Mode.BYTE,t.length,r)}static makeNumeric(t){if(!e.isNumeric(t))throw RangeError(`String contains non-numeric characters`);let r=[];for(let e=0;e=1<{(e=>{let t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};t.LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2),e.Ecc=t})(e.QrCode||={})})(ht||={}),(e=>{(e=>{let t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};t.NUMERIC=new t(1,[10,12,14]),t.ALPHANUMERIC=new t(2,[9,11,13]),t.BYTE=new t(4,[8,16,16]),t.KANJI=new t(8,[8,10,12]),t.ECI=new t(7,[0,0,0]),e.Mode=t})(e.QrSegment||={})})(ht||={});var G=ht,gt={L:G.QrCode.Ecc.LOW,M:G.QrCode.Ecc.MEDIUM,Q:G.QrCode.Ecc.QUARTILE,H:G.QrCode.Ecc.HIGH},_t=128,vt=`L`,yt=`#FFFFFF`,bt=`#000000`,xt=!1,St=1,Ct=4,wt=0,Tt=.1;function Et(e,t=0){let n=[];return e.forEach(function(e,r){let i=null;e.forEach(function(a,o){if(!a&&i!==null){n.push(`M${i+t} ${r+t}h${o-i}v1H${i+t}z`),i=null;return}if(o===e.length-1){if(!a)return;i===null?n.push(`M${o+t},${r+t} h1v1H${o+t}z`):n.push(`M${i+t},${r+t} h${o+1-i}v1H${i+t}z`);return}a&&i===null&&(i=o)})}),n.join(``)}function Dt(e,t){return e.slice().map((e,n)=>n=t.y+t.h?e:e.map((e,n)=>n=t.x+t.w?e:!1))}function Ot(e,t,n,r){if(r==null)return null;let i=e.length+n*2,a=Math.floor(t*Tt),o=i/t,s=(r.width||a)*o,c=(r.height||a)*o,l=r.x==null?e.length/2-s/2:r.x*o,u=r.y==null?e.length/2-c/2:r.y*o,d=r.opacity==null?1:r.opacity,f=null;if(r.excavate){let e=Math.floor(l),t=Math.floor(u);f={x:e,y:t,w:Math.ceil(s+l-e),h:Math.ceil(c+u-t)}}let p=r.crossOrigin;return{x:l,y:u,h:c,w:s,excavation:f,opacity:d,crossOrigin:p}}function kt(e,t){return t==null?e?Ct:wt:Math.max(Math.floor(t),0)}function At({value:e,level:t,minVersion:n,includeMargin:r,marginSize:i,imageSettings:a,size:o,boostLevel:s}){let c=W.useMemo(()=>{let r=(Array.isArray(e)?e:[e]).reduce((e,t)=>(e.push(...G.QrSegment.makeSegments(t)),e),[]);return G.QrCode.encodeSegments(r,gt[t],n,void 0,void 0,s)},[e,t,n,s]),{cells:l,margin:u,numCells:d,calculatedImageSettings:f}=W.useMemo(()=>{let e=c.getModules(),t=kt(r,i);return{cells:e,margin:t,numCells:e.length+t*2,calculatedImageSettings:Ot(e,o,t,a)}},[c,o,a,r,i]);return{qrcode:c,margin:u,cells:l,numCells:d,calculatedImageSettings:f}}var jt=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}(),Mt=W.forwardRef(function(e,t){let n=e,{value:r,size:i=_t,level:a=vt,bgColor:o=yt,fgColor:s=bt,includeMargin:c=xt,minVersion:l=St,boostLevel:u,marginSize:d,imageSettings:f}=n,p=mt(n,[`value`,`size`,`level`,`bgColor`,`fgColor`,`includeMargin`,`minVersion`,`boostLevel`,`marginSize`,`imageSettings`]),{style:m}=p,h=mt(p,[`style`]),g=f?.src,_=W.useRef(null),v=W.useRef(null),y=W.useCallback(e=>{_.current=e,typeof t==`function`?t(e):t&&(t.current=e)},[t]),[b,x]=W.useState(!1),{margin:S,cells:C,numCells:w,calculatedImageSettings:T}=At({value:r,level:a,minVersion:l,boostLevel:u,includeMargin:c,marginSize:d,imageSettings:f,size:i});W.useEffect(()=>{if(_.current!=null){let e=_.current,t=e.getContext(`2d`);if(!t)return;let n=C,r=v.current,a=T!=null&&r!==null&&r.complete&&r.naturalHeight!==0&&r.naturalWidth!==0;a&&T.excavation!=null&&(n=Dt(C,T.excavation));let c=window.devicePixelRatio||1;e.height=e.width=i*c;let l=i/w*c;t.scale(l,l),t.fillStyle=o,t.fillRect(0,0,w,w),t.fillStyle=s,jt?t.fill(new Path2D(Et(n,S))):C.forEach(function(e,n){e.forEach(function(e,r){e&&t.fillRect(r+S,n+S,1,1)})}),T&&(t.globalAlpha=T.opacity),a&&t.drawImage(r,T.x+S,T.y+S,T.w,T.h)}}),W.useEffect(()=>{x(!1)},[g]);let E=pt({height:i,width:i},m),D=null;return g!=null&&(D=W.createElement(`img`,{src:g,key:g,style:{display:`none`},onLoad:()=>{x(!0)},ref:v,crossOrigin:T?.crossOrigin})),W.createElement(W.Fragment,null,W.createElement(`canvas`,pt({style:E,height:i,width:i,ref:y,role:`img`},h)),D)});Mt.displayName=`QRCodeCanvas`;var Nt=W.forwardRef(function(e,t){let n=e,{value:r,size:i=_t,level:a=vt,bgColor:o=yt,fgColor:s=bt,includeMargin:c=xt,minVersion:l=St,boostLevel:u,title:d,marginSize:f,imageSettings:p}=n,m=mt(n,[`value`,`size`,`level`,`bgColor`,`fgColor`,`includeMargin`,`minVersion`,`boostLevel`,`title`,`marginSize`,`imageSettings`]),{margin:h,cells:g,numCells:_,calculatedImageSettings:v}=At({value:r,level:a,minVersion:l,boostLevel:u,includeMargin:c,marginSize:f,imageSettings:p,size:i}),y=g,b=null;p!=null&&v!=null&&(v.excavation!=null&&(y=Dt(g,v.excavation)),b=W.createElement(`image`,{href:p.src,height:v.h,width:v.w,x:v.x+h,y:v.y+h,preserveAspectRatio:`none`,opacity:v.opacity,crossOrigin:v.crossOrigin}));let x=Et(y,h);return W.createElement(`svg`,pt({height:i,width:i,viewBox:`0 0 ${_} ${_}`,ref:t,role:`img`},m),!!d&&W.createElement(`title`,null,d),W.createElement(`path`,{fill:o,d:`M0,0 h${_}v${_}H0z`,shapeRendering:`crispEdges`}),W.createElement(`path`,{fill:s,d:x,shapeRendering:`crispEdges`}),b)});Nt.displayName=`QRCodeSVG`;var K=ce(),Pt=1400;function Ft(e){let t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=e%60,i=e=>String(e).padStart(2,`0`);return t>0?`${i(t)}:${i(n)}:${i(r)}`:`${i(n)}:${i(r)}`}function It({className:e,onClick:t}){let[n,r]=(0,W.useState)(!1),i=(0,W.useRef)(void 0);return(0,W.useEffect)(()=>()=>{i.current!==void 0&&window.clearTimeout(i.current)},[]),(0,K.jsx)(R,{className:ue(`mb-0.5 shrink-0`,e),onClick:()=>{if(i.current!==void 0&&window.clearTimeout(i.current),t()===!1){r(!1);return}r(!0),i.current=window.setTimeout(()=>{r(!1),i.current=void 0},Pt)},size:`icon-sm`,type:`button`,variant:`secondary`,children:n?(0,K.jsx)(he,{className:`text-emerald-600 dark:text-emerald-400`}):(0,K.jsx)(ve,{})})}var Lt=2*Math.PI*20;function Rt({onCopyAddress:e,onChangePaymentOption:t,onSubmitTxHash:n,onTxHashChange:r,order:i,paymentMethod:c,remaining:l,showChangePaymentOption:u,showTxHashSubmit:d,submittingTxHash:f,timeColor:m,timerRatio:h,txHash:y}){let[b,x]=(0,W.useState)(!1),S=i?.receive_address??``,C=i?.payment_url;return c===`okpay`||String(i?.network??``)===`okpay`||C&&!S?(0,K.jsxs)(`section`,{className:`w-full pb-4`,children:[(0,K.jsxs)(`div`,{className:`mb-4 w-full rounded-2xl border bg-card px-5 py-5 text-card-foreground shadow-md`,children:[(0,K.jsx)(`p`,{className:`mb-2 font-semibold text-sm`,children:se()}),C?(0,K.jsx)(`p`,{className:`break-all text-muted-foreground text-sm`,children:C}):null]}),C?(0,K.jsxs)(R,{className:`mb-3 h-12 w-full rounded-xl text-base`,onClick:()=>{window.open(C,`okpay_checkout`,`popup,width=480,height=720`)},type:`button`,children:[(0,K.jsx)(rt,{}),P()]}):null]}):(0,K.jsxs)(`section`,{className:`w-full pb-4`,children:[(0,K.jsxs)(`div`,{className:`mb-4 w-full overflow-hidden rounded-2xl border bg-card px-5 pt-5 pb-0 text-card-foreground shadow-md`,children:[(0,K.jsxs)(`div`,{className:`mb-3 flex items-center justify-between`,children:[(0,K.jsx)(`p`,{className:`font-semibold text-sm`,children:E()}),(0,K.jsxs)(`div`,{className:`relative size-10 shrink-0`,children:[(0,K.jsxs)(`svg`,{"aria-hidden":`true`,className:`absolute inset-0 size-10`,viewBox:`0 0 48 48`,children:[(0,K.jsx)(`circle`,{className:`text-border`,cx:`24`,cy:`24`,fill:`none`,r:`20`,stroke:`currentColor`,strokeWidth:`3`}),(0,K.jsx)(`circle`,{cx:`24`,cy:`24`,fill:`none`,r:`20`,stroke:m,strokeDasharray:Lt,strokeDashoffset:Lt*(1-h),strokeLinecap:`round`,strokeWidth:`3`,style:{transform:`rotate(-90deg)`,transformOrigin:`50% 50%`}})]}),(0,K.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center`,children:(0,K.jsx)(ot,{className:`size-4 text-muted-foreground`})})]})]}),(0,K.jsx)(`p`,{className:`mb-4 text-center font-bold font-mono text-3xl leading-none`,style:{color:m},children:Ft(l)}),(0,K.jsx)(`div`,{className:`mb-4 flex justify-center`,children:(0,K.jsx)(`div`,{className:`rounded-xl border bg-white p-3.5 shadow-md`,children:S?(0,K.jsx)(Nt,{bgColor:`#ffffff`,fgColor:`#111111`,level:`M`,size:120,value:S}):(0,K.jsx)(`div`,{className:`flex size-30 items-center justify-center text-muted-foreground text-xs`,children:`--`})})}),(0,K.jsxs)(`div`,{className:`-mx-5 flex w-[calc(100%+2.5rem)] items-start gap-3 border-border/50 border-t px-5 py-3.5`,children:[(0,K.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,K.jsx)(`p`,{className:`mb-0.5 font-semibold text-muted-foreground text-xs uppercase tracking-wider`,children:p()}),(0,K.jsx)(`p`,{className:`break-all font-medium text-card-foreground text-sm leading-relaxed`,children:i?.receive_address??`--`})]}),(0,K.jsx)(It,{className:`mt-0.5`,onClick:e})]})]}),u?(0,K.jsxs)(R,{className:`mb-3 h-12 w-full rounded-xl text-base`,onClick:t,type:`button`,variant:`outline`,children:[(0,K.jsx)(me,{}),o()]}):null,d?(0,K.jsxs)(je,{onOpenChange:x,open:b,children:[(0,K.jsx)(we,{asChild:!0,children:(0,K.jsxs)(R,{className:`mb-3 h-12 w-full rounded-xl text-base`,type:`button`,children:[(0,K.jsx)(he,{}),_()]})}),(0,K.jsxs)(ke,{children:[(0,K.jsxs)(Oe,{children:[(0,K.jsx)(Ae,{children:g()}),(0,K.jsx)(Te,{children:re()})]}),(0,K.jsxs)(`form`,{className:`space-y-4`,onSubmit:async e=>{e.preventDefault(),await n()&&x(!1)},children:[(0,K.jsxs)(`div`,{className:`space-y-2`,children:[(0,K.jsx)(`label`,{className:`font-medium text-sm`,htmlFor:`checkout-tx-hash`,children:a()}),(0,K.jsx)(Pe,{autoComplete:`off`,autoFocus:!0,className:`h-11`,disabled:f,id:`checkout-tx-hash`,onChange:e=>r(e.target.value),placeholder:ie(),value:y})]}),(0,K.jsx)(`p`,{className:`text-muted-foreground text-xs leading-relaxed`,children:v()}),(0,K.jsxs)(Ce,{children:[(0,K.jsx)(De,{asChild:!0,children:(0,K.jsx)(R,{disabled:f,type:`button`,variant:`outline`,children:O()})}),(0,K.jsxs)(R,{disabled:f||!y.trim(),type:`submit`,children:[f?(0,K.jsx)(be,{className:`animate-spin`}):(0,K.jsx)(xe,{}),s()]})]})]})]})]}):null,(0,K.jsxs)(`div`,{className:`flex items-center justify-center gap-1.5 py-1 text-muted-foreground`,children:[(0,K.jsx)(be,{className:`size-3.5 animate-spin`}),(0,K.jsx)(`span`,{className:`text-xs`,children:F()})]})]})}function zt({className:e,disabled:t,onClick:n}){return(0,K.jsxs)(R,{className:`min-h-18 w-full justify-start rounded-2xl border border-border bg-card/40 px-4 py-3 text-left hover:bg-accent/45 dark:bg-white/[0.03] dark:hover:bg-white/[0.06] ${e??``}`,disabled:t,onClick:n,type:`button`,variant:`ghost`,children:[(0,K.jsx)(Ve,{alt:``,className:`size-10 shrink-0 rounded-lg`,height:40,name:`okpay`,type:`wallet`,width:40}),(0,K.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,K.jsx)(`span`,{className:`block truncate font-semibold text-base text-foreground`,children:P()}),(0,K.jsx)(`span`,{className:`mt-1 block truncate font-normal text-muted-foreground text-xs`,children:M()})]}),t?(0,K.jsx)(be,{className:`size-5 shrink-0 animate-spin text-muted-foreground`}):null]})}function Bt({onSelectChain:e,onSelectOkpay:t,showChain:n,showOkpay:r}){return(0,K.jsxs)(`section`,{className:`w-full pb-4`,children:[(0,K.jsx)(`p`,{className:`mb-3 font-semibold text-base`,children:T()}),(0,K.jsxs)(`div`,{className:`space-y-3`,children:[n?(0,K.jsxs)(R,{className:`min-h-18 w-full justify-start rounded-2xl border border-border bg-card/40 px-4 py-3 text-left hover:bg-accent/45 dark:bg-white/[0.03] dark:hover:bg-white/[0.06]`,onClick:e,type:`button`,variant:`ghost`,children:[(0,K.jsx)(`span`,{className:`flex size-10 shrink-0 items-center justify-center rounded-lg bg-foreground/10 text-foreground`,children:(0,K.jsx)(at,{className:`size-5`})}),(0,K.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,K.jsx)(`span`,{className:`block truncate font-semibold text-base text-foreground`,children:L()}),(0,K.jsx)(`span`,{className:`mt-1 block truncate font-normal text-muted-foreground text-xs`,children:x()})]})]}):null,r?(0,K.jsx)(zt,{onClick:t}):null]})]})}function Vt({onBack:e,networkOptions:t,onConfirm:n,onNetworkChange:r,onTokenChange:a,paymentMethod:o,selectedNetwork:s,selectedOption:c,selectedToken:l,showBack:u=!0,submitting:f,tokenOptions:p}){let m=o!==`okpay`,h=o===`okpay`,g=m?d():w(),_=t.find(e=>e.network.toLowerCase()===s.toLowerCase());return(0,K.jsxs)(`section`,{className:`w-full pb-4`,children:[(0,K.jsxs)(`div`,{className:`mb-3 flex items-center gap-2`,children:[u?(0,K.jsx)(R,{"aria-label":j(),className:`size-8 rounded-full`,onClick:e,size:`icon-sm`,type:`button`,variant:`ghost`,children:(0,K.jsx)(H,{})}):null,(0,K.jsx)(`p`,{className:`font-semibold text-base`,children:g})]}),(0,K.jsxs)(`div`,{className:`mb-4 flex gap-2`,children:[m?(0,K.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,K.jsx)(`p`,{className:`mb-1.5 font-semibold text-muted-foreground text-xs uppercase tracking-wider`,children:i()}),(0,K.jsxs)(pe,{disabled:t.length===0,onValueChange:r,value:s,children:[(0,K.jsx)(de,{className:`h-12.5 w-full rounded-xl bg-card`,children:(0,K.jsx)(z,{placeholder:(0,K.jsx)(Ue,{displayName:_?.displayName,network:s})})}),(0,K.jsx)(fe,{position:`popper`,children:t.map(e=>(0,K.jsx)(B,{value:e.network,children:(0,K.jsx)(Ue,{displayName:e.displayName,network:e.network})},e.network))})]})]}):null,(0,K.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,K.jsx)(`p`,{className:`mb-1.5 font-semibold text-muted-foreground text-xs uppercase tracking-wider`,children:ne()}),h?(0,K.jsx)(_e,{className:`grid grid-cols-2 gap-2`,onValueChange:a,value:l,children:p.map(e=>(0,K.jsxs)(`label`,{className:`flex h-12.5 cursor-pointer items-center gap-3 rounded-xl border bg-card px-3 transition-colors hover:bg-accent/50 has-[[data-state=checked]]:border-primary has-[[data-state=checked]]:bg-primary/5`,htmlFor:`okpay-token-${e.toLowerCase()}`,children:[(0,K.jsx)(ge,{id:`okpay-token-${e.toLowerCase()}`,value:e}),(0,K.jsx)(He,{token:e})]},e))}):(0,K.jsxs)(pe,{disabled:p.length===0,onValueChange:a,value:l,children:[(0,K.jsx)(de,{className:`h-12.5 w-full rounded-xl bg-card`,children:(0,K.jsx)(z,{placeholder:(0,K.jsx)(He,{token:l})})}),(0,K.jsx)(fe,{position:`popper`,children:p.map(e=>(0,K.jsx)(B,{value:e,children:(0,K.jsx)(He,{token:e})},e))})]})]})]}),(0,K.jsx)(R,{className:`h-12 w-full rounded-xl text-base`,disabled:f||!c,onClick:n,type:`button`,children:oe()})]})}function Ht({children:e,description:t,icon:n,title:r}){return(0,K.jsxs)(`section`,{"aria-live":`polite`,className:`flex min-h-96 w-full flex-col items-center justify-center rounded-2xl border bg-card px-6 py-10 text-center text-card-foreground shadow-md`,role:`status`,children:[(0,K.jsx)(`div`,{className:`mb-6 flex size-20 items-center justify-center rounded-full bg-muted`,children:n}),(0,K.jsx)(`p`,{className:`mb-2 font-bold text-xl`,children:r}),(0,K.jsx)(`p`,{className:`mb-6 text-muted-foreground text-sm`,children:t}),e]})}function Ut(){return(0,K.jsx)(Ht,{description:F(),icon:(0,K.jsx)(be,{className:`size-8 animate-spin text-muted-foreground`}),title:te()})}function Wt({redirecting:e}){return(0,K.jsx)(Ht,{description:e?m():f(),icon:(0,K.jsx)(he,{className:`size-10 text-green-500`}),title:h(),children:e?(0,K.jsx)(be,{className:`size-6 animate-spin text-muted-foreground`}):null})}function Gt({onBack:e}){return(0,K.jsxs)(`div`,{className:`space-y-4`,children:[(0,K.jsx)(Ht,{description:I(),icon:(0,K.jsx)(Ee,{className:`size-10 text-destructive`}),title:N()}),(0,K.jsx)(R,{className:`h-12 w-full rounded-xl`,onClick:e,type:`button`,variant:`outline`,children:j()})]})}function Kt({onBack:e,onRetry:t}){return(0,K.jsxs)(`div`,{className:`space-y-4`,children:[(0,K.jsx)(Ht,{description:y(),icon:(0,K.jsx)(Se,{className:`size-10 text-orange-500`}),title:l()}),(0,K.jsxs)(`div`,{className:`flex gap-3`,children:[(0,K.jsx)(R,{className:`h-12 flex-1 rounded-xl`,onClick:e,type:`button`,variant:`outline`,children:j()}),(0,K.jsx)(R,{className:`h-12 flex-1 rounded-xl`,onClick:t,type:`button`,children:u()})]})]})}function qt({onBack:e}){return(0,K.jsxs)(`div`,{className:`space-y-4`,children:[(0,K.jsx)(Ht,{description:A(),icon:(0,K.jsx)(it,{className:`size-10 text-muted-foreground`}),title:b()}),(0,K.jsx)(R,{className:`h-12 w-full rounded-xl`,onClick:e,type:`button`,variant:`outline`,children:j()})]})}function Jt({networkOptions:e,onBack:t,onChangePaymentOption:n,onConfirmSelection:r,onCopyAddress:i,onNetworkChange:a,onRetry:o,onReturnToMethods:s,onSelectChainPayment:c,onSelectOkpayPayment:l,onSubmitTxHash:u,onTokenChange:d,onTxHashChange:f,order:p,panel:m,remaining:h,selectedPaymentMethod:g,selectedNetwork:_,selectedOption:v,selectedToken:y,showChainPayment:b,showChangePaymentOption:x,showOkpay:S,showReturnToMethods:C,showTxHashSubmit:w,submitting:T,submittingTxHash:E,timeColor:D,timerRatio:O,txHash:k,tokenOptions:A}){switch(m){case`loading`:return(0,K.jsx)(Ut,{});case`method`:return(0,K.jsx)(Bt,{onSelectChain:c,onSelectOkpay:l,showChain:b,showOkpay:S});case`select`:return(0,K.jsx)(Vt,{networkOptions:e,onBack:s,onConfirm:r,onNetworkChange:a,onTokenChange:d,paymentMethod:g,selectedNetwork:_,selectedOption:v,selectedToken:y,showBack:C,submitting:T,tokenOptions:A});case`payment`:return(0,K.jsx)(Rt,{onChangePaymentOption:n,onCopyAddress:i,onSubmitTxHash:u,onTxHashChange:f,order:p,paymentMethod:g,remaining:h,showChangePaymentOption:x,showTxHashSubmit:w,submittingTxHash:E,timeColor:D,timerRatio:O,txHash:k});case`success`:return(0,K.jsx)(Wt,{redirecting:!!p?.redirect_url});case`expired`:return(0,K.jsx)(Gt,{onBack:t});case`timeout`:return(0,K.jsx)(Kt,{onBack:t,onRetry:o});case`not-found`:return(0,K.jsx)(qt,{onBack:t});default:return null}}var Yt=`BN.BN.BN.BN.BN.BN.BN.BN.BN.S.B.S.WS.B.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.B.B.B.S.WS.ON.ON.ET.ET.ET.ON.ON.ON.ON.ON.ES.CS.ES.CS.CS.EN.EN.EN.EN.EN.EN.EN.EN.EN.EN.CS.ON.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.ON.ON.ON.BN.BN.BN.BN.BN.BN.B.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.CS.ON.ET.ET.ET.ET.ON.ON.ON.ON.L.ON.ON.BN.ON.ON.ET.ET.EN.EN.ON.L.ON.ON.ON.EN.L.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.L.L.L.L.L.L.L.L`.split(`.`),Xt=[[697,698,`ON`],[706,719,`ON`],[722,735,`ON`],[741,749,`ON`],[751,767,`ON`],[768,879,`NSM`],[884,885,`ON`],[894,894,`ON`],[900,901,`ON`],[903,903,`ON`],[1014,1014,`ON`],[1155,1161,`NSM`],[1418,1418,`ON`],[1421,1422,`ON`],[1423,1423,`ET`],[1424,1424,`R`],[1425,1469,`NSM`],[1470,1470,`R`],[1471,1471,`NSM`],[1472,1472,`R`],[1473,1474,`NSM`],[1475,1475,`R`],[1476,1477,`NSM`],[1478,1478,`R`],[1479,1479,`NSM`],[1480,1535,`R`],[1536,1541,`AN`],[1542,1543,`ON`],[1544,1544,`AL`],[1545,1546,`ET`],[1547,1547,`AL`],[1548,1548,`CS`],[1549,1549,`AL`],[1550,1551,`ON`],[1552,1562,`NSM`],[1563,1610,`AL`],[1611,1631,`NSM`],[1632,1641,`AN`],[1642,1642,`ET`],[1643,1644,`AN`],[1645,1647,`AL`],[1648,1648,`NSM`],[1649,1749,`AL`],[1750,1756,`NSM`],[1757,1757,`AN`],[1758,1758,`ON`],[1759,1764,`NSM`],[1765,1766,`AL`],[1767,1768,`NSM`],[1769,1769,`ON`],[1770,1773,`NSM`],[1774,1775,`AL`],[1776,1785,`EN`],[1786,1808,`AL`],[1809,1809,`NSM`],[1810,1839,`AL`],[1840,1866,`NSM`],[1867,1957,`AL`],[1958,1968,`NSM`],[1969,1983,`AL`],[1984,2026,`R`],[2027,2035,`NSM`],[2036,2037,`R`],[2038,2041,`ON`],[2042,2044,`R`],[2045,2045,`NSM`],[2046,2069,`R`],[2070,2073,`NSM`],[2074,2074,`R`],[2075,2083,`NSM`],[2084,2084,`R`],[2085,2087,`NSM`],[2088,2088,`R`],[2089,2093,`NSM`],[2094,2136,`R`],[2137,2139,`NSM`],[2140,2143,`R`],[2144,2191,`AL`],[2192,2193,`AN`],[2194,2198,`AL`],[2199,2207,`NSM`],[2208,2249,`AL`],[2250,2273,`NSM`],[2274,2274,`AN`],[2275,2306,`NSM`],[2362,2362,`NSM`],[2364,2364,`NSM`],[2369,2376,`NSM`],[2381,2381,`NSM`],[2385,2391,`NSM`],[2402,2403,`NSM`],[2433,2433,`NSM`],[2492,2492,`NSM`],[2497,2500,`NSM`],[2509,2509,`NSM`],[2530,2531,`NSM`],[2546,2547,`ET`],[2555,2555,`ET`],[2558,2558,`NSM`],[2561,2562,`NSM`],[2620,2620,`NSM`],[2625,2626,`NSM`],[2631,2632,`NSM`],[2635,2637,`NSM`],[2641,2641,`NSM`],[2672,2673,`NSM`],[2677,2677,`NSM`],[2689,2690,`NSM`],[2748,2748,`NSM`],[2753,2757,`NSM`],[2759,2760,`NSM`],[2765,2765,`NSM`],[2786,2787,`NSM`],[2801,2801,`ET`],[2810,2815,`NSM`],[2817,2817,`NSM`],[2876,2876,`NSM`],[2879,2879,`NSM`],[2881,2884,`NSM`],[2893,2893,`NSM`],[2901,2902,`NSM`],[2914,2915,`NSM`],[2946,2946,`NSM`],[3008,3008,`NSM`],[3021,3021,`NSM`],[3059,3064,`ON`],[3065,3065,`ET`],[3066,3066,`ON`],[3072,3072,`NSM`],[3076,3076,`NSM`],[3132,3132,`NSM`],[3134,3136,`NSM`],[3142,3144,`NSM`],[3146,3149,`NSM`],[3157,3158,`NSM`],[3170,3171,`NSM`],[3192,3198,`ON`],[3201,3201,`NSM`],[3260,3260,`NSM`],[3276,3277,`NSM`],[3298,3299,`NSM`],[3328,3329,`NSM`],[3387,3388,`NSM`],[3393,3396,`NSM`],[3405,3405,`NSM`],[3426,3427,`NSM`],[3457,3457,`NSM`],[3530,3530,`NSM`],[3538,3540,`NSM`],[3542,3542,`NSM`],[3633,3633,`NSM`],[3636,3642,`NSM`],[3647,3647,`ET`],[3655,3662,`NSM`],[3761,3761,`NSM`],[3764,3772,`NSM`],[3784,3790,`NSM`],[3864,3865,`NSM`],[3893,3893,`NSM`],[3895,3895,`NSM`],[3897,3897,`NSM`],[3898,3901,`ON`],[3953,3966,`NSM`],[3968,3972,`NSM`],[3974,3975,`NSM`],[3981,3991,`NSM`],[3993,4028,`NSM`],[4038,4038,`NSM`],[4141,4144,`NSM`],[4146,4151,`NSM`],[4153,4154,`NSM`],[4157,4158,`NSM`],[4184,4185,`NSM`],[4190,4192,`NSM`],[4209,4212,`NSM`],[4226,4226,`NSM`],[4229,4230,`NSM`],[4237,4237,`NSM`],[4253,4253,`NSM`],[4957,4959,`NSM`],[5008,5017,`ON`],[5120,5120,`ON`],[5760,5760,`WS`],[5787,5788,`ON`],[5906,5908,`NSM`],[5938,5939,`NSM`],[5970,5971,`NSM`],[6002,6003,`NSM`],[6068,6069,`NSM`],[6071,6077,`NSM`],[6086,6086,`NSM`],[6089,6099,`NSM`],[6107,6107,`ET`],[6109,6109,`NSM`],[6128,6137,`ON`],[6144,6154,`ON`],[6155,6157,`NSM`],[6158,6158,`BN`],[6159,6159,`NSM`],[6277,6278,`NSM`],[6313,6313,`NSM`],[6432,6434,`NSM`],[6439,6440,`NSM`],[6450,6450,`NSM`],[6457,6459,`NSM`],[6464,6464,`ON`],[6468,6469,`ON`],[6622,6655,`ON`],[6679,6680,`NSM`],[6683,6683,`NSM`],[6742,6742,`NSM`],[6744,6750,`NSM`],[6752,6752,`NSM`],[6754,6754,`NSM`],[6757,6764,`NSM`],[6771,6780,`NSM`],[6783,6783,`NSM`],[6832,6877,`NSM`],[6880,6891,`NSM`],[6912,6915,`NSM`],[6964,6964,`NSM`],[6966,6970,`NSM`],[6972,6972,`NSM`],[6978,6978,`NSM`],[7019,7027,`NSM`],[7040,7041,`NSM`],[7074,7077,`NSM`],[7080,7081,`NSM`],[7083,7085,`NSM`],[7142,7142,`NSM`],[7144,7145,`NSM`],[7149,7149,`NSM`],[7151,7153,`NSM`],[7212,7219,`NSM`],[7222,7223,`NSM`],[7376,7378,`NSM`],[7380,7392,`NSM`],[7394,7400,`NSM`],[7405,7405,`NSM`],[7412,7412,`NSM`],[7416,7417,`NSM`],[7616,7679,`NSM`],[8125,8125,`ON`],[8127,8129,`ON`],[8141,8143,`ON`],[8157,8159,`ON`],[8173,8175,`ON`],[8189,8190,`ON`],[8192,8202,`WS`],[8203,8205,`BN`],[8207,8207,`R`],[8208,8231,`ON`],[8232,8232,`WS`],[8233,8233,`B`],[8234,8238,`BN`],[8239,8239,`CS`],[8240,8244,`ET`],[8245,8259,`ON`],[8260,8260,`CS`],[8261,8286,`ON`],[8287,8287,`WS`],[8288,8303,`BN`],[8304,8304,`EN`],[8308,8313,`EN`],[8314,8315,`ES`],[8316,8318,`ON`],[8320,8329,`EN`],[8330,8331,`ES`],[8332,8334,`ON`],[8352,8399,`ET`],[8400,8432,`NSM`],[8448,8449,`ON`],[8451,8454,`ON`],[8456,8457,`ON`],[8468,8468,`ON`],[8470,8472,`ON`],[8478,8483,`ON`],[8485,8485,`ON`],[8487,8487,`ON`],[8489,8489,`ON`],[8494,8494,`ET`],[8506,8507,`ON`],[8512,8516,`ON`],[8522,8525,`ON`],[8528,8543,`ON`],[8585,8587,`ON`],[8592,8721,`ON`],[8722,8722,`ES`],[8723,8723,`ET`],[8724,9013,`ON`],[9083,9108,`ON`],[9110,9257,`ON`],[9280,9290,`ON`],[9312,9351,`ON`],[9352,9371,`EN`],[9450,9899,`ON`],[9901,10239,`ON`],[10496,11123,`ON`],[11126,11263,`ON`],[11493,11498,`ON`],[11503,11505,`NSM`],[11513,11519,`ON`],[11647,11647,`NSM`],[11744,11775,`NSM`],[11776,11869,`ON`],[11904,11929,`ON`],[11931,12019,`ON`],[12032,12245,`ON`],[12272,12287,`ON`],[12288,12288,`WS`],[12289,12292,`ON`],[12296,12320,`ON`],[12330,12333,`NSM`],[12336,12336,`ON`],[12342,12343,`ON`],[12349,12351,`ON`],[12441,12442,`NSM`],[12443,12444,`ON`],[12448,12448,`ON`],[12539,12539,`ON`],[12736,12773,`ON`],[12783,12783,`ON`],[12829,12830,`ON`],[12880,12895,`ON`],[12924,12926,`ON`],[12977,12991,`ON`],[13004,13007,`ON`],[13175,13178,`ON`],[13278,13279,`ON`],[13311,13311,`ON`],[19904,19967,`ON`],[42128,42182,`ON`],[42509,42511,`ON`],[42607,42610,`NSM`],[42611,42611,`ON`],[42612,42621,`NSM`],[42622,42623,`ON`],[42654,42655,`NSM`],[42736,42737,`NSM`],[42752,42785,`ON`],[42888,42888,`ON`],[43010,43010,`NSM`],[43014,43014,`NSM`],[43019,43019,`NSM`],[43045,43046,`NSM`],[43048,43051,`ON`],[43052,43052,`NSM`],[43064,43065,`ET`],[43124,43127,`ON`],[43204,43205,`NSM`],[43232,43249,`NSM`],[43263,43263,`NSM`],[43302,43309,`NSM`],[43335,43345,`NSM`],[43392,43394,`NSM`],[43443,43443,`NSM`],[43446,43449,`NSM`],[43452,43453,`NSM`],[43493,43493,`NSM`],[43561,43566,`NSM`],[43569,43570,`NSM`],[43573,43574,`NSM`],[43587,43587,`NSM`],[43596,43596,`NSM`],[43644,43644,`NSM`],[43696,43696,`NSM`],[43698,43700,`NSM`],[43703,43704,`NSM`],[43710,43711,`NSM`],[43713,43713,`NSM`],[43756,43757,`NSM`],[43766,43766,`NSM`],[43882,43883,`ON`],[44005,44005,`NSM`],[44008,44008,`NSM`],[44013,44013,`NSM`],[64285,64285,`R`],[64286,64286,`NSM`],[64287,64296,`R`],[64297,64297,`ES`],[64298,64335,`R`],[64336,64450,`AL`],[64451,64466,`ON`],[64467,64829,`AL`],[64830,64847,`ON`],[64848,64911,`AL`],[64912,64913,`ON`],[64914,64967,`AL`],[64968,64975,`ON`],[64976,65007,`BN`],[65008,65020,`AL`],[65021,65023,`ON`],[65024,65039,`NSM`],[65040,65049,`ON`],[65056,65071,`NSM`],[65072,65103,`ON`],[65104,65104,`CS`],[65105,65105,`ON`],[65106,65106,`CS`],[65108,65108,`ON`],[65109,65109,`CS`],[65110,65118,`ON`],[65119,65119,`ET`],[65120,65121,`ON`],[65122,65123,`ES`],[65124,65126,`ON`],[65128,65128,`ON`],[65129,65130,`ET`],[65131,65131,`ON`],[65136,65278,`AL`],[65279,65279,`BN`],[65281,65282,`ON`],[65283,65285,`ET`],[65286,65290,`ON`],[65291,65291,`ES`],[65292,65292,`CS`],[65293,65293,`ES`],[65294,65295,`CS`],[65296,65305,`EN`],[65306,65306,`CS`],[65307,65312,`ON`],[65339,65344,`ON`],[65371,65381,`ON`],[65504,65505,`ET`],[65506,65508,`ON`],[65509,65510,`ET`],[65512,65518,`ON`],[65520,65528,`BN`],[65529,65533,`ON`],[65534,65535,`BN`],[65793,65793,`ON`],[65856,65932,`ON`],[65936,65948,`ON`],[65952,65952,`ON`],[66045,66045,`NSM`],[66272,66272,`NSM`],[66273,66299,`EN`],[66422,66426,`NSM`],[67584,67870,`R`],[67871,67871,`ON`],[67872,68096,`R`],[68097,68099,`NSM`],[68100,68100,`R`],[68101,68102,`NSM`],[68103,68107,`R`],[68108,68111,`NSM`],[68112,68151,`R`],[68152,68154,`NSM`],[68155,68158,`R`],[68159,68159,`NSM`],[68160,68324,`R`],[68325,68326,`NSM`],[68327,68408,`R`],[68409,68415,`ON`],[68416,68863,`R`],[68864,68899,`AL`],[68900,68903,`NSM`],[68904,68911,`AL`],[68912,68921,`AN`],[68922,68927,`AL`],[68928,68937,`AN`],[68938,68968,`R`],[68969,68973,`NSM`],[68974,68974,`ON`],[68975,69215,`R`],[69216,69246,`AN`],[69247,69290,`R`],[69291,69292,`NSM`],[69293,69311,`R`],[69312,69327,`AL`],[69328,69336,`ON`],[69337,69369,`AL`],[69370,69375,`NSM`],[69376,69423,`R`],[69424,69445,`AL`],[69446,69456,`NSM`],[69457,69487,`AL`],[69488,69505,`R`],[69506,69509,`NSM`],[69510,69631,`R`],[69633,69633,`NSM`],[69688,69702,`NSM`],[69714,69733,`ON`],[69744,69744,`NSM`],[69747,69748,`NSM`],[69759,69761,`NSM`],[69811,69814,`NSM`],[69817,69818,`NSM`],[69826,69826,`NSM`],[69888,69890,`NSM`],[69927,69931,`NSM`],[69933,69940,`NSM`],[70003,70003,`NSM`],[70016,70017,`NSM`],[70070,70078,`NSM`],[70089,70092,`NSM`],[70095,70095,`NSM`],[70191,70193,`NSM`],[70196,70196,`NSM`],[70198,70199,`NSM`],[70206,70206,`NSM`],[70209,70209,`NSM`],[70367,70367,`NSM`],[70371,70378,`NSM`],[70400,70401,`NSM`],[70459,70460,`NSM`],[70464,70464,`NSM`],[70502,70508,`NSM`],[70512,70516,`NSM`],[70587,70592,`NSM`],[70606,70606,`NSM`],[70608,70608,`NSM`],[70610,70610,`NSM`],[70625,70626,`NSM`],[70712,70719,`NSM`],[70722,70724,`NSM`],[70726,70726,`NSM`],[70750,70750,`NSM`],[70835,70840,`NSM`],[70842,70842,`NSM`],[70847,70848,`NSM`],[70850,70851,`NSM`],[71090,71093,`NSM`],[71100,71101,`NSM`],[71103,71104,`NSM`],[71132,71133,`NSM`],[71219,71226,`NSM`],[71229,71229,`NSM`],[71231,71232,`NSM`],[71264,71276,`ON`],[71339,71339,`NSM`],[71341,71341,`NSM`],[71344,71349,`NSM`],[71351,71351,`NSM`],[71453,71453,`NSM`],[71455,71455,`NSM`],[71458,71461,`NSM`],[71463,71467,`NSM`],[71727,71735,`NSM`],[71737,71738,`NSM`],[71995,71996,`NSM`],[71998,71998,`NSM`],[72003,72003,`NSM`],[72148,72151,`NSM`],[72154,72155,`NSM`],[72160,72160,`NSM`],[72193,72198,`NSM`],[72201,72202,`NSM`],[72243,72248,`NSM`],[72251,72254,`NSM`],[72263,72263,`NSM`],[72273,72278,`NSM`],[72281,72283,`NSM`],[72330,72342,`NSM`],[72344,72345,`NSM`],[72544,72544,`NSM`],[72546,72548,`NSM`],[72550,72550,`NSM`],[72752,72758,`NSM`],[72760,72765,`NSM`],[72850,72871,`NSM`],[72874,72880,`NSM`],[72882,72883,`NSM`],[72885,72886,`NSM`],[73009,73014,`NSM`],[73018,73018,`NSM`],[73020,73021,`NSM`],[73023,73029,`NSM`],[73031,73031,`NSM`],[73104,73105,`NSM`],[73109,73109,`NSM`],[73111,73111,`NSM`],[73459,73460,`NSM`],[73472,73473,`NSM`],[73526,73530,`NSM`],[73536,73536,`NSM`],[73538,73538,`NSM`],[73562,73562,`NSM`],[73685,73692,`ON`],[73693,73696,`ET`],[73697,73713,`ON`],[78912,78912,`NSM`],[78919,78933,`NSM`],[90398,90409,`NSM`],[90413,90415,`NSM`],[92912,92916,`NSM`],[92976,92982,`NSM`],[94031,94031,`NSM`],[94095,94098,`NSM`],[94178,94178,`ON`],[94180,94180,`NSM`],[113821,113822,`NSM`],[113824,113827,`BN`],[117760,117973,`ON`],[118e3,118009,`EN`],[118010,118012,`ON`],[118016,118451,`ON`],[118458,118480,`ON`],[118496,118512,`ON`],[118528,118573,`NSM`],[118576,118598,`NSM`],[119143,119145,`NSM`],[119155,119162,`BN`],[119163,119170,`NSM`],[119173,119179,`NSM`],[119210,119213,`NSM`],[119273,119274,`ON`],[119296,119361,`ON`],[119362,119364,`NSM`],[119365,119365,`ON`],[119552,119638,`ON`],[120513,120513,`ON`],[120539,120539,`ON`],[120571,120571,`ON`],[120597,120597,`ON`],[120629,120629,`ON`],[120655,120655,`ON`],[120687,120687,`ON`],[120713,120713,`ON`],[120745,120745,`ON`],[120771,120771,`ON`],[120782,120831,`EN`],[121344,121398,`NSM`],[121403,121452,`NSM`],[121461,121461,`NSM`],[121476,121476,`NSM`],[121499,121503,`NSM`],[121505,121519,`NSM`],[122880,122886,`NSM`],[122888,122904,`NSM`],[122907,122913,`NSM`],[122915,122916,`NSM`],[122918,122922,`NSM`],[123023,123023,`NSM`],[123184,123190,`NSM`],[123566,123566,`NSM`],[123628,123631,`NSM`],[123647,123647,`ET`],[124140,124143,`NSM`],[124398,124399,`NSM`],[124643,124643,`NSM`],[124646,124646,`NSM`],[124654,124655,`NSM`],[124661,124661,`NSM`],[124928,125135,`R`],[125136,125142,`NSM`],[125143,125251,`R`],[125252,125258,`NSM`],[125259,126063,`R`],[126064,126143,`AL`],[126144,126207,`R`],[126208,126287,`AL`],[126288,126463,`R`],[126464,126703,`AL`],[126704,126705,`ON`],[126706,126719,`AL`],[126720,126975,`R`],[126976,127019,`ON`],[127024,127123,`ON`],[127136,127150,`ON`],[127153,127167,`ON`],[127169,127183,`ON`],[127185,127221,`ON`],[127232,127242,`EN`],[127243,127247,`ON`],[127279,127279,`ON`],[127338,127343,`ON`],[127405,127405,`ON`],[127584,127589,`ON`],[127744,128728,`ON`],[128732,128748,`ON`],[128752,128764,`ON`],[128768,128985,`ON`],[128992,129003,`ON`],[129008,129008,`ON`],[129024,129035,`ON`],[129040,129095,`ON`],[129104,129113,`ON`],[129120,129159,`ON`],[129168,129197,`ON`],[129200,129211,`ON`],[129216,129217,`ON`],[129232,129240,`ON`],[129280,129623,`ON`],[129632,129645,`ON`],[129648,129660,`ON`],[129664,129674,`ON`],[129678,129734,`ON`],[129736,129736,`ON`],[129741,129756,`ON`],[129759,129770,`ON`],[129775,129784,`ON`],[129792,129938,`ON`],[129940,130031,`ON`],[130032,130041,`EN`],[130042,130042,`ON`],[131070,131071,`BN`],[196606,196607,`BN`],[262142,262143,`BN`],[327678,327679,`BN`],[393214,393215,`BN`],[458750,458751,`BN`],[524286,524287,`BN`],[589822,589823,`BN`],[655358,655359,`BN`],[720894,720895,`BN`],[786430,786431,`BN`],[851966,851967,`BN`],[917502,917759,`BN`],[917760,917999,`NSM`],[918e3,921599,`BN`],[983038,983039,`BN`],[1048574,1048575,`BN`],[1114110,1114111,`BN`]];function Zt(e){if(e<=255)return Yt[e];let t=0,n=Xt.length-1;for(;t<=n;){let r=t+n>>1,i=Xt[r];if(ei[1]){t=r+1;continue}return i[2]}return`L`}function Qt(e){let t=e.length;if(t===0)return null;let n=Array(t),r=!1;for(let i=0;i=55296&&a<=56319&&i+1=56320&&t<=57343&&(o=(a-55296<<10)+(t-56320)+65536,s=2)}let c=Zt(o);(c===`R`||c===`AL`||c===`AN`)&&(r=!0);for(let e=0;e=0&&n[r]===`ET`;r--)n[r]=`EN`;for(r=e+1;r0?n[e-1]:s,a=r0&&t.charCodeAt(t.length-1)===32&&(t=t.slice(0,-1)),t}function an(e){return/[\r\f]/.test(e)?e.replace(/\r\n/g,` +import{r as e}from"./chunk-DECur_0Z.js";import{a as t,p as n}from"./auth-store-8ocF_FHU.js";import{t as r}from"./react-CO2uhaBc.js";import{$ as i,A as a,B as o,D as s,E as c,F as l,G as u,H as d,I as f,J as p,K as m,L as h,M as g,N as _,O as v,P as y,Q as b,R as x,Ru as S,T as C,U as w,V as T,W as E,X as D,Xp as O,Y as k,Z as A,at as ee,ct as j,et as te,it as ne,j as re,k as ie,lt as ae,n as M,nt as N,ot as oe,r as P,st as F,t as se,tm as ce,tt as I,z as L}from"./messages-CL4J6BaJ.js";import{t as le}from"./useNavigate-7u4DX0Ho.js";import{i as ue,t as R}from"./button-NLSeBFht.js";import{a as z,i as de,n as fe,r as B,t as pe}from"./select-D2uO5-De.js";import{t as V}from"./createLucideIcon-Br0Bd5k2.js";import{t as me}from"./arrow-left-right-CcCrkQiR.js";import{t as H}from"./arrow-left-BpZwGREZ.js";import{t as he}from"./check-CHp0nSkR.js";import{n as ge,t as _e}from"./radio-group-yaBPIkVa.js";import{n as ve,t as ye}from"./copy-to-clipboard-C1tj4a8X.js";import{t as be}from"./loader-circle-DpEz1fQv.js";import{t as xe}from"./send-BNvceEpO.js";import{t as Se}from"./triangle-alert-DB5v_9sS.js";import{a as Ce,c as we,i as Te,l as Ee,n as De,o as Oe,r as ke,s as Ae,t as je}from"./dialog-CtyiwzAl.js";import{n as Me}from"./dist-Dd-sCJIt.js";import{t as Ne}from"./_trade_id-CdBtzygm.js";import{t as Pe}from"./input-DAqep8ZY.js";import{a as Fe,i as Ie,n as Le,o as Re,r as ze,s as Be,t as Ve}from"./crypto-icon-BPgcAvNF.js";import{n as He,t as Ue}from"./labels-CQIGkPR0.js";import{a as We,c as Ge,d as Ke,f as U,h as qe,i as Je,l as Ye,m as Xe,n as Ze,o as Qe,p as $e,r as et,s as tt,u as nt}from"./checkout-model-CQ3aqlob.js";var rt=V(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),it=V(`file-x`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m14.5 12.5-5 5`,key:`b62r18`}],[`path`,{d:`m9.5 12.5 5 5`,key:`1rk7el`}]]),at=V(`link`,[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]),ot=V(`timer`,[[`line`,{x1:`10`,x2:`14`,y1:`2`,y2:`2`,key:`14vaq8`}],[`line`,{x1:`12`,x2:`15`,y1:`14`,y2:`11`,key:`17fdiu`}],[`circle`,{cx:`12`,cy:`14`,r:`8`,key:`1e1u0o`}]]),st=e(ye(),1),W=e(r()),ct=Object.defineProperty,lt=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,ft=(e,t,n)=>t in e?ct(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pt=(e,t)=>{for(var n in t||={})ut.call(t,n)&&ft(e,n,t[n]);if(lt)for(var n of lt(t))dt.call(t,n)&&ft(e,n,t[n]);return e},mt=(e,t)=>{var n={};for(var r in e)ut.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&<)for(var r of lt(e))t.indexOf(r)<0&&dt.call(e,r)&&(n[r]=e[r]);return n},ht;(e=>{let t=class t{constructor(e,n,r,a){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],et.MAX_VERSION)throw RangeError(`Version value out of range`);if(a<-1||a>7)throw RangeError(`Mask value out of range`);this.size=e*4+17;let o=[];for(let e=0;e7)throw RangeError(`Invalid value`);let u,d;for(u=a;;u++){let n=t.getNumDataCodewords(u,r)*8,i=o.getTotalBits(e,u);if(i<=n){d=i;break}if(u>=s)throw RangeError(`Data too long`)}for(let e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])l&&d<=t.getNumDataCodewords(u,e)*8&&(r=e);let f=[];for(let t of e){n(t.mode.modeBits,4,f),n(t.numChars,t.mode.numCharCountBits(u),f);for(let e of t.getData())f.push(e)}i(f.length==d);let p=t.getNumDataCodewords(u,r)*8;i(f.length<=p),n(0,Math.min(4,p-f.length),f),n(0,(8-f.length%8)%8,f),i(f.length%8==0);for(let e=236;f.lengthm[t>>>3]|=e<<7-(t&7)),new t(u,r,m,c)}getModule(e,t){return 0<=e&&e>>9)*1335;let a=(t<<10|n)^21522;i(a>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(a,e));this.setFunctionModule(8,7,r(a,6)),this.setFunctionModule(8,8,r(a,7)),this.setFunctionModule(7,8,r(a,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(a,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(a,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(a,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;i(t>>>18==0);for(let e=0;e<18;e++){let n=r(t,e),i=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(i,a,n),this.setFunctionModule(a,i,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;0<=a&&a{(e!=l-o||n>=c)&&f.push(t[e])});return i(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw RangeError(`Invalid argument`);let n=0;for(let t=this.size-1;t>=1;t-=2){t==6&&(t=5);for(let i=0;i>>3],7-(n&7)),n++)}}i(n==e.length*8)}applyMask(e){if(e<0||e>7)throw RangeError(`Mask value out of range`);for(let t=0;t5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][o],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;n5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[o][n],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;ne+ +!!t,n);let r=this.size*this.size,a=Math.ceil(Math.abs(n*20-r*10)/r)-1;return i(0<=a&&a<=9),e+=a*t.PENALTY_N4,i(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(this.version==1)return[];{let e=Math.floor(this.version/7)+2,t=this.version==32?26:Math.ceil((this.version*4+4)/(e*2-2))*2,n=[6];for(let r=this.size-7;n.lengtht.MAX_VERSION)throw RangeError(`Version number out of range`);let n=(16*e+128)*e+64;if(e>=2){let t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return i(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw RangeError(`Degree out of range`);let n=[];for(let t=0;t0);for(let i of e){let e=i^r.shift();r.push(0),n.forEach((n,i)=>r[i]^=t.reedSolomonMultiply(n,e))}return r}static reedSolomonMultiply(e,t){if(e>>>8||t>>>8)throw RangeError(`Byte out of range`);let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return i(n>>>8==0),n}finderPenaltyCountPatterns(e){let t=e[1];i(t<=this.size*3);let n=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(n&&e[0]>=t*4&&e[6]>=t?1:0)+(n&&e[6]>=t*4&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(e,t,n){if(t<0||t>31||e>>>t)throw RangeError(`Value out of range`);for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function r(e,t){return(e>>>t&1)!=0}function i(e){if(!e)throw Error(`Assertion error`)}let a=class e{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw RangeError(`Invalid argument`);this.bitData=n.slice()}static makeBytes(t){let r=[];for(let e of t)n(e,8,r);return new e(e.Mode.BYTE,t.length,r)}static makeNumeric(t){if(!e.isNumeric(t))throw RangeError(`String contains non-numeric characters`);let r=[];for(let e=0;e=1<{(e=>{let t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};t.LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2),e.Ecc=t})(e.QrCode||={})})(ht||={}),(e=>{(e=>{let t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};t.NUMERIC=new t(1,[10,12,14]),t.ALPHANUMERIC=new t(2,[9,11,13]),t.BYTE=new t(4,[8,16,16]),t.KANJI=new t(8,[8,10,12]),t.ECI=new t(7,[0,0,0]),e.Mode=t})(e.QrSegment||={})})(ht||={});var G=ht,gt={L:G.QrCode.Ecc.LOW,M:G.QrCode.Ecc.MEDIUM,Q:G.QrCode.Ecc.QUARTILE,H:G.QrCode.Ecc.HIGH},_t=128,vt=`L`,yt=`#FFFFFF`,bt=`#000000`,xt=!1,St=1,Ct=4,wt=0,Tt=.1;function Et(e,t=0){let n=[];return e.forEach(function(e,r){let i=null;e.forEach(function(a,o){if(!a&&i!==null){n.push(`M${i+t} ${r+t}h${o-i}v1H${i+t}z`),i=null;return}if(o===e.length-1){if(!a)return;i===null?n.push(`M${o+t},${r+t} h1v1H${o+t}z`):n.push(`M${i+t},${r+t} h${o+1-i}v1H${i+t}z`);return}a&&i===null&&(i=o)})}),n.join(``)}function Dt(e,t){return e.slice().map((e,n)=>n=t.y+t.h?e:e.map((e,n)=>n=t.x+t.w?e:!1))}function Ot(e,t,n,r){if(r==null)return null;let i=e.length+n*2,a=Math.floor(t*Tt),o=i/t,s=(r.width||a)*o,c=(r.height||a)*o,l=r.x==null?e.length/2-s/2:r.x*o,u=r.y==null?e.length/2-c/2:r.y*o,d=r.opacity==null?1:r.opacity,f=null;if(r.excavate){let e=Math.floor(l),t=Math.floor(u);f={x:e,y:t,w:Math.ceil(s+l-e),h:Math.ceil(c+u-t)}}let p=r.crossOrigin;return{x:l,y:u,h:c,w:s,excavation:f,opacity:d,crossOrigin:p}}function kt(e,t){return t==null?e?Ct:wt:Math.max(Math.floor(t),0)}function At({value:e,level:t,minVersion:n,includeMargin:r,marginSize:i,imageSettings:a,size:o,boostLevel:s}){let c=W.useMemo(()=>{let r=(Array.isArray(e)?e:[e]).reduce((e,t)=>(e.push(...G.QrSegment.makeSegments(t)),e),[]);return G.QrCode.encodeSegments(r,gt[t],n,void 0,void 0,s)},[e,t,n,s]),{cells:l,margin:u,numCells:d,calculatedImageSettings:f}=W.useMemo(()=>{let e=c.getModules(),t=kt(r,i);return{cells:e,margin:t,numCells:e.length+t*2,calculatedImageSettings:Ot(e,o,t,a)}},[c,o,a,r,i]);return{qrcode:c,margin:u,cells:l,numCells:d,calculatedImageSettings:f}}var jt=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}(),Mt=W.forwardRef(function(e,t){let n=e,{value:r,size:i=_t,level:a=vt,bgColor:o=yt,fgColor:s=bt,includeMargin:c=xt,minVersion:l=St,boostLevel:u,marginSize:d,imageSettings:f}=n,p=mt(n,[`value`,`size`,`level`,`bgColor`,`fgColor`,`includeMargin`,`minVersion`,`boostLevel`,`marginSize`,`imageSettings`]),{style:m}=p,h=mt(p,[`style`]),g=f?.src,_=W.useRef(null),v=W.useRef(null),y=W.useCallback(e=>{_.current=e,typeof t==`function`?t(e):t&&(t.current=e)},[t]),[b,x]=W.useState(!1),{margin:S,cells:C,numCells:w,calculatedImageSettings:T}=At({value:r,level:a,minVersion:l,boostLevel:u,includeMargin:c,marginSize:d,imageSettings:f,size:i});W.useEffect(()=>{if(_.current!=null){let e=_.current,t=e.getContext(`2d`);if(!t)return;let n=C,r=v.current,a=T!=null&&r!==null&&r.complete&&r.naturalHeight!==0&&r.naturalWidth!==0;a&&T.excavation!=null&&(n=Dt(C,T.excavation));let c=window.devicePixelRatio||1;e.height=e.width=i*c;let l=i/w*c;t.scale(l,l),t.fillStyle=o,t.fillRect(0,0,w,w),t.fillStyle=s,jt?t.fill(new Path2D(Et(n,S))):C.forEach(function(e,n){e.forEach(function(e,r){e&&t.fillRect(r+S,n+S,1,1)})}),T&&(t.globalAlpha=T.opacity),a&&t.drawImage(r,T.x+S,T.y+S,T.w,T.h)}}),W.useEffect(()=>{x(!1)},[g]);let E=pt({height:i,width:i},m),D=null;return g!=null&&(D=W.createElement(`img`,{src:g,key:g,style:{display:`none`},onLoad:()=>{x(!0)},ref:v,crossOrigin:T?.crossOrigin})),W.createElement(W.Fragment,null,W.createElement(`canvas`,pt({style:E,height:i,width:i,ref:y,role:`img`},h)),D)});Mt.displayName=`QRCodeCanvas`;var Nt=W.forwardRef(function(e,t){let n=e,{value:r,size:i=_t,level:a=vt,bgColor:o=yt,fgColor:s=bt,includeMargin:c=xt,minVersion:l=St,boostLevel:u,title:d,marginSize:f,imageSettings:p}=n,m=mt(n,[`value`,`size`,`level`,`bgColor`,`fgColor`,`includeMargin`,`minVersion`,`boostLevel`,`title`,`marginSize`,`imageSettings`]),{margin:h,cells:g,numCells:_,calculatedImageSettings:v}=At({value:r,level:a,minVersion:l,boostLevel:u,includeMargin:c,marginSize:f,imageSettings:p,size:i}),y=g,b=null;p!=null&&v!=null&&(v.excavation!=null&&(y=Dt(g,v.excavation)),b=W.createElement(`image`,{href:p.src,height:v.h,width:v.w,x:v.x+h,y:v.y+h,preserveAspectRatio:`none`,opacity:v.opacity,crossOrigin:v.crossOrigin}));let x=Et(y,h);return W.createElement(`svg`,pt({height:i,width:i,viewBox:`0 0 ${_} ${_}`,ref:t,role:`img`},m),!!d&&W.createElement(`title`,null,d),W.createElement(`path`,{fill:o,d:`M0,0 h${_}v${_}H0z`,shapeRendering:`crispEdges`}),W.createElement(`path`,{fill:s,d:x,shapeRendering:`crispEdges`}),b)});Nt.displayName=`QRCodeSVG`;var K=ce(),Pt=1400;function Ft(e){let t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=e%60,i=e=>String(e).padStart(2,`0`);return t>0?`${i(t)}:${i(n)}:${i(r)}`:`${i(n)}:${i(r)}`}function It({className:e,onClick:t}){let[n,r]=(0,W.useState)(!1),i=(0,W.useRef)(void 0);return(0,W.useEffect)(()=>()=>{i.current!==void 0&&window.clearTimeout(i.current)},[]),(0,K.jsx)(R,{className:ue(`mb-0.5 shrink-0`,e),onClick:()=>{if(i.current!==void 0&&window.clearTimeout(i.current),t()===!1){r(!1);return}r(!0),i.current=window.setTimeout(()=>{r(!1),i.current=void 0},Pt)},size:`icon-sm`,type:`button`,variant:`secondary`,children:n?(0,K.jsx)(he,{className:`text-emerald-600 dark:text-emerald-400`}):(0,K.jsx)(ve,{})})}var Lt=2*Math.PI*20;function Rt({onCopyAddress:e,onChangePaymentOption:t,onSubmitTxHash:n,onTxHashChange:r,order:i,paymentMethod:c,remaining:l,showChangePaymentOption:u,showTxHashSubmit:d,submittingTxHash:f,timeColor:m,timerRatio:h,txHash:y}){let[b,x]=(0,W.useState)(!1),S=i?.receive_address??``,C=i?.payment_url;return c===`okpay`||String(i?.network??``)===`okpay`||C&&!S?(0,K.jsxs)(`section`,{className:`w-full pb-4`,children:[(0,K.jsxs)(`div`,{className:`mb-4 w-full rounded-2xl border bg-card px-5 py-5 text-card-foreground shadow-md`,children:[(0,K.jsx)(`p`,{className:`mb-2 font-semibold text-sm`,children:se()}),C?(0,K.jsx)(`p`,{className:`break-all text-muted-foreground text-sm`,children:C}):null]}),C?(0,K.jsxs)(R,{className:`mb-3 h-12 w-full rounded-xl text-base`,onClick:()=>{window.open(C,`okpay_checkout`,`popup,width=480,height=720`)},type:`button`,children:[(0,K.jsx)(rt,{}),P()]}):null]}):(0,K.jsxs)(`section`,{className:`w-full pb-4`,children:[(0,K.jsxs)(`div`,{className:`mb-4 w-full overflow-hidden rounded-2xl border bg-card px-5 pt-5 pb-0 text-card-foreground shadow-md`,children:[(0,K.jsxs)(`div`,{className:`mb-3 flex items-center justify-between`,children:[(0,K.jsx)(`p`,{className:`font-semibold text-sm`,children:E()}),(0,K.jsxs)(`div`,{className:`relative size-10 shrink-0`,children:[(0,K.jsxs)(`svg`,{"aria-hidden":`true`,className:`absolute inset-0 size-10`,viewBox:`0 0 48 48`,children:[(0,K.jsx)(`circle`,{className:`text-border`,cx:`24`,cy:`24`,fill:`none`,r:`20`,stroke:`currentColor`,strokeWidth:`3`}),(0,K.jsx)(`circle`,{cx:`24`,cy:`24`,fill:`none`,r:`20`,stroke:m,strokeDasharray:Lt,strokeDashoffset:Lt*(1-h),strokeLinecap:`round`,strokeWidth:`3`,style:{transform:`rotate(-90deg)`,transformOrigin:`50% 50%`}})]}),(0,K.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center`,children:(0,K.jsx)(ot,{className:`size-4 text-muted-foreground`})})]})]}),(0,K.jsx)(`p`,{className:`mb-4 text-center font-bold font-mono text-3xl leading-none`,style:{color:m},children:Ft(l)}),(0,K.jsx)(`div`,{className:`mb-4 flex justify-center`,children:(0,K.jsx)(`div`,{className:`rounded-xl border bg-white p-3.5 shadow-md`,children:S?(0,K.jsx)(Nt,{bgColor:`#ffffff`,fgColor:`#111111`,level:`M`,size:120,value:S}):(0,K.jsx)(`div`,{className:`flex size-30 items-center justify-center text-muted-foreground text-xs`,children:`--`})})}),(0,K.jsxs)(`div`,{className:`-mx-5 flex w-[calc(100%+2.5rem)] items-start gap-3 border-border/50 border-t px-5 py-3.5`,children:[(0,K.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,K.jsx)(`p`,{className:`mb-0.5 font-semibold text-muted-foreground text-xs uppercase tracking-wider`,children:p()}),(0,K.jsx)(`p`,{className:`break-all font-medium text-card-foreground text-sm leading-relaxed`,children:i?.receive_address??`--`})]}),(0,K.jsx)(It,{className:`mt-0.5`,onClick:e})]})]}),u?(0,K.jsxs)(R,{className:`mb-3 h-12 w-full rounded-xl text-base`,onClick:t,type:`button`,variant:`outline`,children:[(0,K.jsx)(me,{}),o()]}):null,d?(0,K.jsxs)(je,{onOpenChange:x,open:b,children:[(0,K.jsx)(we,{asChild:!0,children:(0,K.jsxs)(R,{className:`mb-3 h-12 w-full rounded-xl text-base`,type:`button`,children:[(0,K.jsx)(he,{}),_()]})}),(0,K.jsxs)(ke,{children:[(0,K.jsxs)(Oe,{children:[(0,K.jsx)(Ae,{children:g()}),(0,K.jsx)(Te,{children:re()})]}),(0,K.jsxs)(`form`,{className:`space-y-4`,onSubmit:async e=>{e.preventDefault(),await n()&&x(!1)},children:[(0,K.jsxs)(`div`,{className:`space-y-2`,children:[(0,K.jsx)(`label`,{className:`font-medium text-sm`,htmlFor:`checkout-tx-hash`,children:a()}),(0,K.jsx)(Pe,{autoComplete:`off`,autoFocus:!0,className:`h-11`,disabled:f,id:`checkout-tx-hash`,onChange:e=>r(e.target.value),placeholder:ie(),value:y})]}),(0,K.jsx)(`p`,{className:`text-muted-foreground text-xs leading-relaxed`,children:v()}),(0,K.jsxs)(Ce,{children:[(0,K.jsx)(De,{asChild:!0,children:(0,K.jsx)(R,{disabled:f,type:`button`,variant:`outline`,children:O()})}),(0,K.jsxs)(R,{disabled:f||!y.trim(),type:`submit`,children:[f?(0,K.jsx)(be,{className:`animate-spin`}):(0,K.jsx)(xe,{}),s()]})]})]})]})]}):null,(0,K.jsxs)(`div`,{className:`flex items-center justify-center gap-1.5 py-1 text-muted-foreground`,children:[(0,K.jsx)(be,{className:`size-3.5 animate-spin`}),(0,K.jsx)(`span`,{className:`text-xs`,children:F()})]})]})}function zt({className:e,disabled:t,onClick:n}){return(0,K.jsxs)(R,{className:`min-h-18 w-full justify-start rounded-2xl border border-border bg-card/40 px-4 py-3 text-left hover:bg-accent/45 dark:bg-white/[0.03] dark:hover:bg-white/[0.06] ${e??``}`,disabled:t,onClick:n,type:`button`,variant:`ghost`,children:[(0,K.jsx)(Ve,{alt:``,className:`size-10 shrink-0 rounded-lg`,height:40,name:`okpay`,type:`wallet`,width:40}),(0,K.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,K.jsx)(`span`,{className:`block truncate font-semibold text-base text-foreground`,children:P()}),(0,K.jsx)(`span`,{className:`mt-1 block truncate font-normal text-muted-foreground text-xs`,children:M()})]}),t?(0,K.jsx)(be,{className:`size-5 shrink-0 animate-spin text-muted-foreground`}):null]})}function Bt({onSelectChain:e,onSelectOkpay:t,showChain:n,showOkpay:r}){return(0,K.jsxs)(`section`,{className:`w-full pb-4`,children:[(0,K.jsx)(`p`,{className:`mb-3 font-semibold text-base`,children:T()}),(0,K.jsxs)(`div`,{className:`space-y-3`,children:[n?(0,K.jsxs)(R,{className:`min-h-18 w-full justify-start rounded-2xl border border-border bg-card/40 px-4 py-3 text-left hover:bg-accent/45 dark:bg-white/[0.03] dark:hover:bg-white/[0.06]`,onClick:e,type:`button`,variant:`ghost`,children:[(0,K.jsx)(`span`,{className:`flex size-10 shrink-0 items-center justify-center rounded-lg bg-foreground/10 text-foreground`,children:(0,K.jsx)(at,{className:`size-5`})}),(0,K.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,K.jsx)(`span`,{className:`block truncate font-semibold text-base text-foreground`,children:L()}),(0,K.jsx)(`span`,{className:`mt-1 block truncate font-normal text-muted-foreground text-xs`,children:x()})]})]}):null,r?(0,K.jsx)(zt,{onClick:t}):null]})]})}function Vt({onBack:e,networkOptions:t,onConfirm:n,onNetworkChange:r,onTokenChange:a,paymentMethod:o,selectedNetwork:s,selectedOption:c,selectedToken:l,showBack:u=!0,submitting:f,tokenOptions:p}){let m=o!==`okpay`,h=o===`okpay`,g=m?d():w(),_=t.find(e=>e.network.toLowerCase()===s.toLowerCase());return(0,K.jsxs)(`section`,{className:`w-full pb-4`,children:[(0,K.jsxs)(`div`,{className:`mb-3 flex items-center gap-2`,children:[u?(0,K.jsx)(R,{"aria-label":j(),className:`size-8 rounded-full`,onClick:e,size:`icon-sm`,type:`button`,variant:`ghost`,children:(0,K.jsx)(H,{})}):null,(0,K.jsx)(`p`,{className:`font-semibold text-base`,children:g})]}),(0,K.jsxs)(`div`,{className:`mb-4 flex gap-2`,children:[m?(0,K.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,K.jsx)(`p`,{className:`mb-1.5 font-semibold text-muted-foreground text-xs uppercase tracking-wider`,children:i()}),(0,K.jsxs)(pe,{disabled:t.length===0,onValueChange:r,value:s,children:[(0,K.jsx)(de,{className:`h-12.5 w-full rounded-xl bg-card`,children:(0,K.jsx)(z,{placeholder:(0,K.jsx)(Ue,{displayName:_?.displayName,network:s})})}),(0,K.jsx)(fe,{position:`popper`,children:t.map(e=>(0,K.jsx)(B,{value:e.network,children:(0,K.jsx)(Ue,{displayName:e.displayName,network:e.network})},e.network))})]})]}):null,(0,K.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,K.jsx)(`p`,{className:`mb-1.5 font-semibold text-muted-foreground text-xs uppercase tracking-wider`,children:ne()}),h?(0,K.jsx)(_e,{className:`grid grid-cols-2 gap-2`,onValueChange:a,value:l,children:p.map(e=>(0,K.jsxs)(`label`,{className:`flex h-12.5 cursor-pointer items-center gap-3 rounded-xl border bg-card px-3 transition-colors hover:bg-accent/50 has-[[data-state=checked]]:border-primary has-[[data-state=checked]]:bg-primary/5`,htmlFor:`okpay-token-${e.toLowerCase()}`,children:[(0,K.jsx)(ge,{id:`okpay-token-${e.toLowerCase()}`,value:e}),(0,K.jsx)(He,{token:e})]},e))}):(0,K.jsxs)(pe,{disabled:p.length===0,onValueChange:a,value:l,children:[(0,K.jsx)(de,{className:`h-12.5 w-full rounded-xl bg-card`,children:(0,K.jsx)(z,{placeholder:(0,K.jsx)(He,{token:l})})}),(0,K.jsx)(fe,{position:`popper`,children:p.map(e=>(0,K.jsx)(B,{value:e,children:(0,K.jsx)(He,{token:e})},e))})]})]})]}),(0,K.jsx)(R,{className:`h-12 w-full rounded-xl text-base`,disabled:f||!c,onClick:n,type:`button`,children:oe()})]})}function Ht({children:e,description:t,icon:n,title:r}){return(0,K.jsxs)(`section`,{"aria-live":`polite`,className:`flex min-h-96 w-full flex-col items-center justify-center rounded-2xl border bg-card px-6 py-10 text-center text-card-foreground shadow-md`,role:`status`,children:[(0,K.jsx)(`div`,{className:`mb-6 flex size-20 items-center justify-center rounded-full bg-muted`,children:n}),(0,K.jsx)(`p`,{className:`mb-2 font-bold text-xl`,children:r}),(0,K.jsx)(`p`,{className:`mb-6 text-muted-foreground text-sm`,children:t}),e]})}function Ut(){return(0,K.jsx)(Ht,{description:F(),icon:(0,K.jsx)(be,{className:`size-8 animate-spin text-muted-foreground`}),title:te()})}function Wt({redirecting:e}){return(0,K.jsx)(Ht,{description:e?m():f(),icon:(0,K.jsx)(he,{className:`size-10 text-green-500`}),title:h(),children:e?(0,K.jsx)(be,{className:`size-6 animate-spin text-muted-foreground`}):null})}function Gt({onBack:e}){return(0,K.jsxs)(`div`,{className:`space-y-4`,children:[(0,K.jsx)(Ht,{description:I(),icon:(0,K.jsx)(Ee,{className:`size-10 text-destructive`}),title:N()}),(0,K.jsx)(R,{className:`h-12 w-full rounded-xl`,onClick:e,type:`button`,variant:`outline`,children:j()})]})}function Kt({onBack:e,onRetry:t}){return(0,K.jsxs)(`div`,{className:`space-y-4`,children:[(0,K.jsx)(Ht,{description:y(),icon:(0,K.jsx)(Se,{className:`size-10 text-orange-500`}),title:l()}),(0,K.jsxs)(`div`,{className:`flex gap-3`,children:[(0,K.jsx)(R,{className:`h-12 flex-1 rounded-xl`,onClick:e,type:`button`,variant:`outline`,children:j()}),(0,K.jsx)(R,{className:`h-12 flex-1 rounded-xl`,onClick:t,type:`button`,children:u()})]})]})}function qt({onBack:e}){return(0,K.jsxs)(`div`,{className:`space-y-4`,children:[(0,K.jsx)(Ht,{description:A(),icon:(0,K.jsx)(it,{className:`size-10 text-muted-foreground`}),title:b()}),(0,K.jsx)(R,{className:`h-12 w-full rounded-xl`,onClick:e,type:`button`,variant:`outline`,children:j()})]})}function Jt({networkOptions:e,onBack:t,onChangePaymentOption:n,onConfirmSelection:r,onCopyAddress:i,onNetworkChange:a,onRetry:o,onReturnToMethods:s,onSelectChainPayment:c,onSelectOkpayPayment:l,onSubmitTxHash:u,onTokenChange:d,onTxHashChange:f,order:p,panel:m,remaining:h,selectedPaymentMethod:g,selectedNetwork:_,selectedOption:v,selectedToken:y,showChainPayment:b,showChangePaymentOption:x,showOkpay:S,showReturnToMethods:C,showTxHashSubmit:w,submitting:T,submittingTxHash:E,timeColor:D,timerRatio:O,txHash:k,tokenOptions:A}){switch(m){case`loading`:return(0,K.jsx)(Ut,{});case`method`:return(0,K.jsx)(Bt,{onSelectChain:c,onSelectOkpay:l,showChain:b,showOkpay:S});case`select`:return(0,K.jsx)(Vt,{networkOptions:e,onBack:s,onConfirm:r,onNetworkChange:a,onTokenChange:d,paymentMethod:g,selectedNetwork:_,selectedOption:v,selectedToken:y,showBack:C,submitting:T,tokenOptions:A});case`payment`:return(0,K.jsx)(Rt,{onChangePaymentOption:n,onCopyAddress:i,onSubmitTxHash:u,onTxHashChange:f,order:p,paymentMethod:g,remaining:h,showChangePaymentOption:x,showTxHashSubmit:w,submittingTxHash:E,timeColor:D,timerRatio:O,txHash:k});case`success`:return(0,K.jsx)(Wt,{redirecting:!!p?.redirect_url});case`expired`:return(0,K.jsx)(Gt,{onBack:t});case`timeout`:return(0,K.jsx)(Kt,{onBack:t,onRetry:o});case`not-found`:return(0,K.jsx)(qt,{onBack:t});default:return null}}var Yt=`BN.BN.BN.BN.BN.BN.BN.BN.BN.S.B.S.WS.B.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.B.B.B.S.WS.ON.ON.ET.ET.ET.ON.ON.ON.ON.ON.ES.CS.ES.CS.CS.EN.EN.EN.EN.EN.EN.EN.EN.EN.EN.CS.ON.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.ON.ON.ON.BN.BN.BN.BN.BN.BN.B.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.CS.ON.ET.ET.ET.ET.ON.ON.ON.ON.L.ON.ON.BN.ON.ON.ET.ET.EN.EN.ON.L.ON.ON.ON.EN.L.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.L.L.L.L.L.L.L.L`.split(`.`),Xt=[[697,698,`ON`],[706,719,`ON`],[722,735,`ON`],[741,749,`ON`],[751,767,`ON`],[768,879,`NSM`],[884,885,`ON`],[894,894,`ON`],[900,901,`ON`],[903,903,`ON`],[1014,1014,`ON`],[1155,1161,`NSM`],[1418,1418,`ON`],[1421,1422,`ON`],[1423,1423,`ET`],[1424,1424,`R`],[1425,1469,`NSM`],[1470,1470,`R`],[1471,1471,`NSM`],[1472,1472,`R`],[1473,1474,`NSM`],[1475,1475,`R`],[1476,1477,`NSM`],[1478,1478,`R`],[1479,1479,`NSM`],[1480,1535,`R`],[1536,1541,`AN`],[1542,1543,`ON`],[1544,1544,`AL`],[1545,1546,`ET`],[1547,1547,`AL`],[1548,1548,`CS`],[1549,1549,`AL`],[1550,1551,`ON`],[1552,1562,`NSM`],[1563,1610,`AL`],[1611,1631,`NSM`],[1632,1641,`AN`],[1642,1642,`ET`],[1643,1644,`AN`],[1645,1647,`AL`],[1648,1648,`NSM`],[1649,1749,`AL`],[1750,1756,`NSM`],[1757,1757,`AN`],[1758,1758,`ON`],[1759,1764,`NSM`],[1765,1766,`AL`],[1767,1768,`NSM`],[1769,1769,`ON`],[1770,1773,`NSM`],[1774,1775,`AL`],[1776,1785,`EN`],[1786,1808,`AL`],[1809,1809,`NSM`],[1810,1839,`AL`],[1840,1866,`NSM`],[1867,1957,`AL`],[1958,1968,`NSM`],[1969,1983,`AL`],[1984,2026,`R`],[2027,2035,`NSM`],[2036,2037,`R`],[2038,2041,`ON`],[2042,2044,`R`],[2045,2045,`NSM`],[2046,2069,`R`],[2070,2073,`NSM`],[2074,2074,`R`],[2075,2083,`NSM`],[2084,2084,`R`],[2085,2087,`NSM`],[2088,2088,`R`],[2089,2093,`NSM`],[2094,2136,`R`],[2137,2139,`NSM`],[2140,2143,`R`],[2144,2191,`AL`],[2192,2193,`AN`],[2194,2198,`AL`],[2199,2207,`NSM`],[2208,2249,`AL`],[2250,2273,`NSM`],[2274,2274,`AN`],[2275,2306,`NSM`],[2362,2362,`NSM`],[2364,2364,`NSM`],[2369,2376,`NSM`],[2381,2381,`NSM`],[2385,2391,`NSM`],[2402,2403,`NSM`],[2433,2433,`NSM`],[2492,2492,`NSM`],[2497,2500,`NSM`],[2509,2509,`NSM`],[2530,2531,`NSM`],[2546,2547,`ET`],[2555,2555,`ET`],[2558,2558,`NSM`],[2561,2562,`NSM`],[2620,2620,`NSM`],[2625,2626,`NSM`],[2631,2632,`NSM`],[2635,2637,`NSM`],[2641,2641,`NSM`],[2672,2673,`NSM`],[2677,2677,`NSM`],[2689,2690,`NSM`],[2748,2748,`NSM`],[2753,2757,`NSM`],[2759,2760,`NSM`],[2765,2765,`NSM`],[2786,2787,`NSM`],[2801,2801,`ET`],[2810,2815,`NSM`],[2817,2817,`NSM`],[2876,2876,`NSM`],[2879,2879,`NSM`],[2881,2884,`NSM`],[2893,2893,`NSM`],[2901,2902,`NSM`],[2914,2915,`NSM`],[2946,2946,`NSM`],[3008,3008,`NSM`],[3021,3021,`NSM`],[3059,3064,`ON`],[3065,3065,`ET`],[3066,3066,`ON`],[3072,3072,`NSM`],[3076,3076,`NSM`],[3132,3132,`NSM`],[3134,3136,`NSM`],[3142,3144,`NSM`],[3146,3149,`NSM`],[3157,3158,`NSM`],[3170,3171,`NSM`],[3192,3198,`ON`],[3201,3201,`NSM`],[3260,3260,`NSM`],[3276,3277,`NSM`],[3298,3299,`NSM`],[3328,3329,`NSM`],[3387,3388,`NSM`],[3393,3396,`NSM`],[3405,3405,`NSM`],[3426,3427,`NSM`],[3457,3457,`NSM`],[3530,3530,`NSM`],[3538,3540,`NSM`],[3542,3542,`NSM`],[3633,3633,`NSM`],[3636,3642,`NSM`],[3647,3647,`ET`],[3655,3662,`NSM`],[3761,3761,`NSM`],[3764,3772,`NSM`],[3784,3790,`NSM`],[3864,3865,`NSM`],[3893,3893,`NSM`],[3895,3895,`NSM`],[3897,3897,`NSM`],[3898,3901,`ON`],[3953,3966,`NSM`],[3968,3972,`NSM`],[3974,3975,`NSM`],[3981,3991,`NSM`],[3993,4028,`NSM`],[4038,4038,`NSM`],[4141,4144,`NSM`],[4146,4151,`NSM`],[4153,4154,`NSM`],[4157,4158,`NSM`],[4184,4185,`NSM`],[4190,4192,`NSM`],[4209,4212,`NSM`],[4226,4226,`NSM`],[4229,4230,`NSM`],[4237,4237,`NSM`],[4253,4253,`NSM`],[4957,4959,`NSM`],[5008,5017,`ON`],[5120,5120,`ON`],[5760,5760,`WS`],[5787,5788,`ON`],[5906,5908,`NSM`],[5938,5939,`NSM`],[5970,5971,`NSM`],[6002,6003,`NSM`],[6068,6069,`NSM`],[6071,6077,`NSM`],[6086,6086,`NSM`],[6089,6099,`NSM`],[6107,6107,`ET`],[6109,6109,`NSM`],[6128,6137,`ON`],[6144,6154,`ON`],[6155,6157,`NSM`],[6158,6158,`BN`],[6159,6159,`NSM`],[6277,6278,`NSM`],[6313,6313,`NSM`],[6432,6434,`NSM`],[6439,6440,`NSM`],[6450,6450,`NSM`],[6457,6459,`NSM`],[6464,6464,`ON`],[6468,6469,`ON`],[6622,6655,`ON`],[6679,6680,`NSM`],[6683,6683,`NSM`],[6742,6742,`NSM`],[6744,6750,`NSM`],[6752,6752,`NSM`],[6754,6754,`NSM`],[6757,6764,`NSM`],[6771,6780,`NSM`],[6783,6783,`NSM`],[6832,6877,`NSM`],[6880,6891,`NSM`],[6912,6915,`NSM`],[6964,6964,`NSM`],[6966,6970,`NSM`],[6972,6972,`NSM`],[6978,6978,`NSM`],[7019,7027,`NSM`],[7040,7041,`NSM`],[7074,7077,`NSM`],[7080,7081,`NSM`],[7083,7085,`NSM`],[7142,7142,`NSM`],[7144,7145,`NSM`],[7149,7149,`NSM`],[7151,7153,`NSM`],[7212,7219,`NSM`],[7222,7223,`NSM`],[7376,7378,`NSM`],[7380,7392,`NSM`],[7394,7400,`NSM`],[7405,7405,`NSM`],[7412,7412,`NSM`],[7416,7417,`NSM`],[7616,7679,`NSM`],[8125,8125,`ON`],[8127,8129,`ON`],[8141,8143,`ON`],[8157,8159,`ON`],[8173,8175,`ON`],[8189,8190,`ON`],[8192,8202,`WS`],[8203,8205,`BN`],[8207,8207,`R`],[8208,8231,`ON`],[8232,8232,`WS`],[8233,8233,`B`],[8234,8238,`BN`],[8239,8239,`CS`],[8240,8244,`ET`],[8245,8259,`ON`],[8260,8260,`CS`],[8261,8286,`ON`],[8287,8287,`WS`],[8288,8303,`BN`],[8304,8304,`EN`],[8308,8313,`EN`],[8314,8315,`ES`],[8316,8318,`ON`],[8320,8329,`EN`],[8330,8331,`ES`],[8332,8334,`ON`],[8352,8399,`ET`],[8400,8432,`NSM`],[8448,8449,`ON`],[8451,8454,`ON`],[8456,8457,`ON`],[8468,8468,`ON`],[8470,8472,`ON`],[8478,8483,`ON`],[8485,8485,`ON`],[8487,8487,`ON`],[8489,8489,`ON`],[8494,8494,`ET`],[8506,8507,`ON`],[8512,8516,`ON`],[8522,8525,`ON`],[8528,8543,`ON`],[8585,8587,`ON`],[8592,8721,`ON`],[8722,8722,`ES`],[8723,8723,`ET`],[8724,9013,`ON`],[9083,9108,`ON`],[9110,9257,`ON`],[9280,9290,`ON`],[9312,9351,`ON`],[9352,9371,`EN`],[9450,9899,`ON`],[9901,10239,`ON`],[10496,11123,`ON`],[11126,11263,`ON`],[11493,11498,`ON`],[11503,11505,`NSM`],[11513,11519,`ON`],[11647,11647,`NSM`],[11744,11775,`NSM`],[11776,11869,`ON`],[11904,11929,`ON`],[11931,12019,`ON`],[12032,12245,`ON`],[12272,12287,`ON`],[12288,12288,`WS`],[12289,12292,`ON`],[12296,12320,`ON`],[12330,12333,`NSM`],[12336,12336,`ON`],[12342,12343,`ON`],[12349,12351,`ON`],[12441,12442,`NSM`],[12443,12444,`ON`],[12448,12448,`ON`],[12539,12539,`ON`],[12736,12773,`ON`],[12783,12783,`ON`],[12829,12830,`ON`],[12880,12895,`ON`],[12924,12926,`ON`],[12977,12991,`ON`],[13004,13007,`ON`],[13175,13178,`ON`],[13278,13279,`ON`],[13311,13311,`ON`],[19904,19967,`ON`],[42128,42182,`ON`],[42509,42511,`ON`],[42607,42610,`NSM`],[42611,42611,`ON`],[42612,42621,`NSM`],[42622,42623,`ON`],[42654,42655,`NSM`],[42736,42737,`NSM`],[42752,42785,`ON`],[42888,42888,`ON`],[43010,43010,`NSM`],[43014,43014,`NSM`],[43019,43019,`NSM`],[43045,43046,`NSM`],[43048,43051,`ON`],[43052,43052,`NSM`],[43064,43065,`ET`],[43124,43127,`ON`],[43204,43205,`NSM`],[43232,43249,`NSM`],[43263,43263,`NSM`],[43302,43309,`NSM`],[43335,43345,`NSM`],[43392,43394,`NSM`],[43443,43443,`NSM`],[43446,43449,`NSM`],[43452,43453,`NSM`],[43493,43493,`NSM`],[43561,43566,`NSM`],[43569,43570,`NSM`],[43573,43574,`NSM`],[43587,43587,`NSM`],[43596,43596,`NSM`],[43644,43644,`NSM`],[43696,43696,`NSM`],[43698,43700,`NSM`],[43703,43704,`NSM`],[43710,43711,`NSM`],[43713,43713,`NSM`],[43756,43757,`NSM`],[43766,43766,`NSM`],[43882,43883,`ON`],[44005,44005,`NSM`],[44008,44008,`NSM`],[44013,44013,`NSM`],[64285,64285,`R`],[64286,64286,`NSM`],[64287,64296,`R`],[64297,64297,`ES`],[64298,64335,`R`],[64336,64450,`AL`],[64451,64466,`ON`],[64467,64829,`AL`],[64830,64847,`ON`],[64848,64911,`AL`],[64912,64913,`ON`],[64914,64967,`AL`],[64968,64975,`ON`],[64976,65007,`BN`],[65008,65020,`AL`],[65021,65023,`ON`],[65024,65039,`NSM`],[65040,65049,`ON`],[65056,65071,`NSM`],[65072,65103,`ON`],[65104,65104,`CS`],[65105,65105,`ON`],[65106,65106,`CS`],[65108,65108,`ON`],[65109,65109,`CS`],[65110,65118,`ON`],[65119,65119,`ET`],[65120,65121,`ON`],[65122,65123,`ES`],[65124,65126,`ON`],[65128,65128,`ON`],[65129,65130,`ET`],[65131,65131,`ON`],[65136,65278,`AL`],[65279,65279,`BN`],[65281,65282,`ON`],[65283,65285,`ET`],[65286,65290,`ON`],[65291,65291,`ES`],[65292,65292,`CS`],[65293,65293,`ES`],[65294,65295,`CS`],[65296,65305,`EN`],[65306,65306,`CS`],[65307,65312,`ON`],[65339,65344,`ON`],[65371,65381,`ON`],[65504,65505,`ET`],[65506,65508,`ON`],[65509,65510,`ET`],[65512,65518,`ON`],[65520,65528,`BN`],[65529,65533,`ON`],[65534,65535,`BN`],[65793,65793,`ON`],[65856,65932,`ON`],[65936,65948,`ON`],[65952,65952,`ON`],[66045,66045,`NSM`],[66272,66272,`NSM`],[66273,66299,`EN`],[66422,66426,`NSM`],[67584,67870,`R`],[67871,67871,`ON`],[67872,68096,`R`],[68097,68099,`NSM`],[68100,68100,`R`],[68101,68102,`NSM`],[68103,68107,`R`],[68108,68111,`NSM`],[68112,68151,`R`],[68152,68154,`NSM`],[68155,68158,`R`],[68159,68159,`NSM`],[68160,68324,`R`],[68325,68326,`NSM`],[68327,68408,`R`],[68409,68415,`ON`],[68416,68863,`R`],[68864,68899,`AL`],[68900,68903,`NSM`],[68904,68911,`AL`],[68912,68921,`AN`],[68922,68927,`AL`],[68928,68937,`AN`],[68938,68968,`R`],[68969,68973,`NSM`],[68974,68974,`ON`],[68975,69215,`R`],[69216,69246,`AN`],[69247,69290,`R`],[69291,69292,`NSM`],[69293,69311,`R`],[69312,69327,`AL`],[69328,69336,`ON`],[69337,69369,`AL`],[69370,69375,`NSM`],[69376,69423,`R`],[69424,69445,`AL`],[69446,69456,`NSM`],[69457,69487,`AL`],[69488,69505,`R`],[69506,69509,`NSM`],[69510,69631,`R`],[69633,69633,`NSM`],[69688,69702,`NSM`],[69714,69733,`ON`],[69744,69744,`NSM`],[69747,69748,`NSM`],[69759,69761,`NSM`],[69811,69814,`NSM`],[69817,69818,`NSM`],[69826,69826,`NSM`],[69888,69890,`NSM`],[69927,69931,`NSM`],[69933,69940,`NSM`],[70003,70003,`NSM`],[70016,70017,`NSM`],[70070,70078,`NSM`],[70089,70092,`NSM`],[70095,70095,`NSM`],[70191,70193,`NSM`],[70196,70196,`NSM`],[70198,70199,`NSM`],[70206,70206,`NSM`],[70209,70209,`NSM`],[70367,70367,`NSM`],[70371,70378,`NSM`],[70400,70401,`NSM`],[70459,70460,`NSM`],[70464,70464,`NSM`],[70502,70508,`NSM`],[70512,70516,`NSM`],[70587,70592,`NSM`],[70606,70606,`NSM`],[70608,70608,`NSM`],[70610,70610,`NSM`],[70625,70626,`NSM`],[70712,70719,`NSM`],[70722,70724,`NSM`],[70726,70726,`NSM`],[70750,70750,`NSM`],[70835,70840,`NSM`],[70842,70842,`NSM`],[70847,70848,`NSM`],[70850,70851,`NSM`],[71090,71093,`NSM`],[71100,71101,`NSM`],[71103,71104,`NSM`],[71132,71133,`NSM`],[71219,71226,`NSM`],[71229,71229,`NSM`],[71231,71232,`NSM`],[71264,71276,`ON`],[71339,71339,`NSM`],[71341,71341,`NSM`],[71344,71349,`NSM`],[71351,71351,`NSM`],[71453,71453,`NSM`],[71455,71455,`NSM`],[71458,71461,`NSM`],[71463,71467,`NSM`],[71727,71735,`NSM`],[71737,71738,`NSM`],[71995,71996,`NSM`],[71998,71998,`NSM`],[72003,72003,`NSM`],[72148,72151,`NSM`],[72154,72155,`NSM`],[72160,72160,`NSM`],[72193,72198,`NSM`],[72201,72202,`NSM`],[72243,72248,`NSM`],[72251,72254,`NSM`],[72263,72263,`NSM`],[72273,72278,`NSM`],[72281,72283,`NSM`],[72330,72342,`NSM`],[72344,72345,`NSM`],[72544,72544,`NSM`],[72546,72548,`NSM`],[72550,72550,`NSM`],[72752,72758,`NSM`],[72760,72765,`NSM`],[72850,72871,`NSM`],[72874,72880,`NSM`],[72882,72883,`NSM`],[72885,72886,`NSM`],[73009,73014,`NSM`],[73018,73018,`NSM`],[73020,73021,`NSM`],[73023,73029,`NSM`],[73031,73031,`NSM`],[73104,73105,`NSM`],[73109,73109,`NSM`],[73111,73111,`NSM`],[73459,73460,`NSM`],[73472,73473,`NSM`],[73526,73530,`NSM`],[73536,73536,`NSM`],[73538,73538,`NSM`],[73562,73562,`NSM`],[73685,73692,`ON`],[73693,73696,`ET`],[73697,73713,`ON`],[78912,78912,`NSM`],[78919,78933,`NSM`],[90398,90409,`NSM`],[90413,90415,`NSM`],[92912,92916,`NSM`],[92976,92982,`NSM`],[94031,94031,`NSM`],[94095,94098,`NSM`],[94178,94178,`ON`],[94180,94180,`NSM`],[113821,113822,`NSM`],[113824,113827,`BN`],[117760,117973,`ON`],[118e3,118009,`EN`],[118010,118012,`ON`],[118016,118451,`ON`],[118458,118480,`ON`],[118496,118512,`ON`],[118528,118573,`NSM`],[118576,118598,`NSM`],[119143,119145,`NSM`],[119155,119162,`BN`],[119163,119170,`NSM`],[119173,119179,`NSM`],[119210,119213,`NSM`],[119273,119274,`ON`],[119296,119361,`ON`],[119362,119364,`NSM`],[119365,119365,`ON`],[119552,119638,`ON`],[120513,120513,`ON`],[120539,120539,`ON`],[120571,120571,`ON`],[120597,120597,`ON`],[120629,120629,`ON`],[120655,120655,`ON`],[120687,120687,`ON`],[120713,120713,`ON`],[120745,120745,`ON`],[120771,120771,`ON`],[120782,120831,`EN`],[121344,121398,`NSM`],[121403,121452,`NSM`],[121461,121461,`NSM`],[121476,121476,`NSM`],[121499,121503,`NSM`],[121505,121519,`NSM`],[122880,122886,`NSM`],[122888,122904,`NSM`],[122907,122913,`NSM`],[122915,122916,`NSM`],[122918,122922,`NSM`],[123023,123023,`NSM`],[123184,123190,`NSM`],[123566,123566,`NSM`],[123628,123631,`NSM`],[123647,123647,`ET`],[124140,124143,`NSM`],[124398,124399,`NSM`],[124643,124643,`NSM`],[124646,124646,`NSM`],[124654,124655,`NSM`],[124661,124661,`NSM`],[124928,125135,`R`],[125136,125142,`NSM`],[125143,125251,`R`],[125252,125258,`NSM`],[125259,126063,`R`],[126064,126143,`AL`],[126144,126207,`R`],[126208,126287,`AL`],[126288,126463,`R`],[126464,126703,`AL`],[126704,126705,`ON`],[126706,126719,`AL`],[126720,126975,`R`],[126976,127019,`ON`],[127024,127123,`ON`],[127136,127150,`ON`],[127153,127167,`ON`],[127169,127183,`ON`],[127185,127221,`ON`],[127232,127242,`EN`],[127243,127247,`ON`],[127279,127279,`ON`],[127338,127343,`ON`],[127405,127405,`ON`],[127584,127589,`ON`],[127744,128728,`ON`],[128732,128748,`ON`],[128752,128764,`ON`],[128768,128985,`ON`],[128992,129003,`ON`],[129008,129008,`ON`],[129024,129035,`ON`],[129040,129095,`ON`],[129104,129113,`ON`],[129120,129159,`ON`],[129168,129197,`ON`],[129200,129211,`ON`],[129216,129217,`ON`],[129232,129240,`ON`],[129280,129623,`ON`],[129632,129645,`ON`],[129648,129660,`ON`],[129664,129674,`ON`],[129678,129734,`ON`],[129736,129736,`ON`],[129741,129756,`ON`],[129759,129770,`ON`],[129775,129784,`ON`],[129792,129938,`ON`],[129940,130031,`ON`],[130032,130041,`EN`],[130042,130042,`ON`],[131070,131071,`BN`],[196606,196607,`BN`],[262142,262143,`BN`],[327678,327679,`BN`],[393214,393215,`BN`],[458750,458751,`BN`],[524286,524287,`BN`],[589822,589823,`BN`],[655358,655359,`BN`],[720894,720895,`BN`],[786430,786431,`BN`],[851966,851967,`BN`],[917502,917759,`BN`],[917760,917999,`NSM`],[918e3,921599,`BN`],[983038,983039,`BN`],[1048574,1048575,`BN`],[1114110,1114111,`BN`]];function Zt(e){if(e<=255)return Yt[e];let t=0,n=Xt.length-1;for(;t<=n;){let r=t+n>>1,i=Xt[r];if(ei[1]){t=r+1;continue}return i[2]}return`L`}function Qt(e){let t=e.length;if(t===0)return null;let n=Array(t),r=!1;for(let i=0;i=55296&&a<=56319&&i+1=56320&&t<=57343&&(o=(a-55296<<10)+(t-56320)+65536,s=2)}let c=Zt(o);(c===`R`||c===`AL`||c===`AN`)&&(r=!0);for(let e=0;e=0&&n[r]===`ET`;r--)n[r]=`EN`;for(r=e+1;r0?n[e-1]:s,a=r0&&t.charCodeAt(t.length-1)===32&&(t=t.slice(0,-1)),t}function an(e){return/[\r\f]/.test(e)?e.replace(/\r\n/g,` `).replace(/[\r\f]/g,` `):e}var on=null,sn;function cn(){return on===null&&(on=new Intl.Segmenter(sn,{granularity:`word`})),on}function ln(){on=null}var un=/\p{Script=Arabic}/u,q=/\p{M}/u,dn=/\p{Nd}/u;function fn(e){return un.test(e)}function pn(e){return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=177983||e>=177984&&e<=178207||e>=178208&&e<=183983||e>=183984&&e<=191471||e>=191472&&e<=192093||e>=194560&&e<=195103||e>=196608&&e<=201551||e>=201552&&e<=205743||e>=205744&&e<=210041||e>=63744&&e<=64255||e>=12288&&e<=12351||e>=12352&&e<=12447||e>=12448&&e<=12543||e>=12592&&e<=12687||e>=44032&&e<=55215||e>=65280&&e<=65519}function J(e){for(let t=0;t=55296&&n<=56319&&t+1=56320&&r<=57343){if(pn((n-55296<<10)+(r-56320)+65536))return!0;t++;continue}}if(pn(n))return!0}}return!1}function mn(e){let t=jn(e);return t!==null&&(bn.has(t)||Y.has(t))}var hn=new Set([`\xA0`,` `,`⁠`,``]),gn=new Set([`-`,`‐`,`–`,`—`]);function _n(e){let t=jn(e);return t!==null&&hn.has(t)}function vn(e){let t=jn(e);return t!==null&&gn.has(t)}function yn(e,t){return _n(e)?!1:t?!(mn(e)||vn(e)):!0}var bn=new Set(`,...!.:.;.?.、.。.・.).〕.〉.》.」.』.】.〗.〙.〛.ー.々.〻.ゝ.ゞ.ヽ.ヾ`.split(`.`)),xn=new Set([`"`,`(`,`[`,`{`,`¡`,`¿`,`“`,`‘`,`‚`,`„`,`«`,`‹`,`⸘`,`(`,`〔`,`〈`,`《`,`「`,`『`,`【`,`〖`,`〘`,`〚`]),Sn=new Set([`'`,`’`]),Y=new Set(`.(,(!(?(:(;(،(؛(؟(।(॥(၊(။(၌(၍(၏()(](}(%("(”(’(»(›(…`.split(`(`)),Cn=new Set([`:`,`.`,`،`,`؛`]),wn=new Set([`၏`]),Tn=new Set([`”`,`’`,`»`,`›`,`」`,`』`,`】`,`》`,`〉`,`〕`,`)`]);function En(e){if(kn(e))return!0;let t=!1;for(let n of e){if(Y.has(n)||In(n)){t=!0;continue}if(!(t&&q.test(n)))return!1}return t}function Dn(e){for(let t of e)if(!bn.has(t)&&!Y.has(t))return!1;return e.length>0}function On(e){if(kn(e))return!0;for(let t of e)if(!xn.has(t)&&!Sn.has(t)&&!q.test(t)&&!In(t))return!1;return e.length>0}function kn(e){let t=!1;for(let n of e)if(!(n===`\\`||q.test(n))){if(xn.has(n)||Y.has(n)||Sn.has(n)){t=!0;continue}return!1}return t}function An(e,t){let n=t-1;if(n<=0)return Math.max(n,0);let r=e.charCodeAt(n);if(r<56320||r>57343)return n;let i=n-1;if(i<0)return n;let a=e.charCodeAt(i);return a>=55296&&a<=56319?i:n}function jn(e){if(e.length===0)return null;let t=An(e,e.length);return e.slice(t)}function Mn(e){for(let t of e)if(!q.test(t))return t;return null}function Nn(e){for(let t=e.length;t>0;){let n=An(e,t),r=e.slice(n,t);if(!q.test(r))return r;t=n}return null}var Pn=[36,37,43,43,92,92,162,165,176,177,1423,1423,1545,1547,1642,1642,2046,2047,2546,2547,2553,2555,2801,2801,3065,3065,3449,3449,3647,3647,6107,6107,8240,8247,8279,8279,8352,8399,8451,8451,8457,8457,8470,8470,8722,8723,43064,43064,65020,65020,65129,65130,65284,65285,65504,65505,65509,65510,73693,73696,123647,123647,126124,126124,126128,126128];function Fn(e,t){for(let n=0;n=t[n]&&e<=t[n+1])return!0;return!1}function In(e){let t=e.codePointAt(0);return t!==void 0&&Fn(t,Pn)}function Ln(e){let t=Nn(e);return t!==null&&In(t)}function Rn(e){let t=Mn(e);return t!==null&&dn.test(t)}function zn(e){let t=Array.from(e),n=t.length;for(;n>0;){let e=t[n-1];if(q.test(e)){n--;continue}if(xn.has(e)||Sn.has(e)){n--;continue}break}return n<=0||n===t.length?null:{head:t.slice(0,n).join(``),tail:t.slice(n).join(``)}}function Bn(e,t,n){return n===`text`&&!t&&e.length===1&&e!==`-`&&e!==`—`?e:null}function Vn(e,t,n,r){let i=t[r],a=e[r];if(i==null)return a;let o=n[r];if(a.length===o)return a;let s=i.repeat(o);return e[r]=s,s}function Hn(e,t){return e&&t!==null&&Cn.has(t)}function Un(e){let t=jn(e);return t!==null&&wn.has(t)}function Wn(e){if(e.length<2||e[0]!==` `)return null;let t=e.slice(1);return/^\p{M}+$/u.test(t)?{space:` `,marks:t}:null}function Gn(e){let t=e.length;for(;t>0;){let n=An(e,t),r=e.slice(n,t);if(Tn.has(r))return!0;if(!Y.has(r))return!1;t=n}return!1}function Kn(e,t){if(t.preserveOrdinarySpaces||t.preserveHardBreaks){if(e===` `)return`preserved-space`;if(e===` `)return`tab`;if(t.preserveHardBreaks&&e===` `)return`hard-break`}return e===` `?`space`:e===`\xA0`||e===` `||e===`⁠`||e===``?`glue`:e===`​`?`zero-width-break`:e===`­`?`soft-hyphen`:`text`}var qn=/[\x20\t\n\xA0\xAD\u200B\u202F\u2060\uFEFF]/;function X(e){return e.length===1?e[0]:e.join(``)}function Jn(e,t){let n=[];for(let t=e.length-1;t>=0;t--)n.push(e[t]);return n.push(t),X(n)}function Yn(e,t,n,r){if(!qn.test(e))return[{text:e,isWordLike:t,kind:`text`,start:n}];let i=[],a=null,o=[],s=n,c=!1,l=0;for(let u of e){let e=Kn(u,r),d=e===`text`&&t;if(a!==null&&e===a&&d===c){o.push(u),l+=u.length;continue}a!==null&&i.push({text:X(o),isWordLike:c,kind:a,start:s}),a=e,o=[u],s=n+l,c=d,l+=u.length}return a!==null&&i.push({text:X(o),isWordLike:c,kind:a,start:s}),i}function Xn(e){return e===`space`||e===`preserved-space`||e===`zero-width-break`||e===`hard-break`}var Zn=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function Qn(e,t){let n=e.texts[t];return n.startsWith(`www.`)?!0:Zn.test(n)&&t+1=e.len||Xn(e.kinds[s]))continue;let c=[],l=e.starts[s],u=s;for(;u0&&(t.push(X(c)),n.push(!0),r.push(`text`),i.push(l),a=u-1)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}var nr=new Set([`:`,`-`,`/`,`×`,`,`,`.`,`+`,`–`,`—`]),rr=new Set([`.`,`,`,`:`,`;`]);function ir(e){for(let t=e.length;t>0;){let n=An(e,t),r=e.slice(n,t);if(q.test(r)){t=n;continue}return rr.has(r)||In(r)}return!1}function ar(e,t){return t&&!J(e)}function or(e){for(let t of e)if(dn.test(t))return!0;return!1}function sr(e){if(e.length===0)return!1;for(let t of e)if(!(dn.test(t)||nr.has(t)))return!1;return!0}function cr(e){let t=[],n=[],r=[],i=[];for(let a=0;a1;for(let e=0;e0&&c[S]===`text`&&_&&f[S]&&m[S]||n&&i>0&&c[S]===`text`&&Dn(e.text)&&f[S]||n&&i>0&&c[S]===`text`&&h[S]?C():n&&i>0&&c[S]===`text`&&e.isWordLike&&v&&g[S]?(C(),s[S]=!0):r!==null&&i>0&&c[S]===`text`&&u[S]===r?d[S]=(d[S]??1)+1:n&&!e.isWordLike&&i>0&&c[S]===`text`&&!f[S]&&(En(e.text)||e.text===`-`&&s[S])?C():(a[i]=e.text,o[i]=[e.text],s[i]=e.isWordLike,c[i]=e.kind,l[i]=e.start,u[i]=r,d[i]=r===null?0:1,f[i]=_,p[i]=v,m[i]=b,h[i]=x,g[i]=Hn(v,y),i++)}for(let e=0;enull),v=-1;for(let e=i-1;e>=0;e--){let t=a[e];if(t.length!==0){if(c[e]===`text`&&!s[e]&&v>=0&&c[v]===`text`&&(On(t)||t===`-`&&Rn(a[v]))){let n=_[v]??[];n.push(t),_[v]=n,l[v]=l[e],a[e]=``;continue}v=e}}for(let e=0;e=0&&!yn(t.texts[e-1],n)&&d(e),s<0&&(s=e),c||=J(l);continue}d(e),r.push(l),i.push(t.isWordLike[e]),a.push(u),o.push(t.starts[e])}return d(t.len),{len:r.length,texts:r,isWordLike:i,kinds:a,starts:o}}function gr(e,t,n=`normal`,r=`normal`){let i=nn(n),a=i.mode===`pre-wrap`?an(e):rn(e);if(a.length===0)return{normalized:a,chunks:[],len:0,texts:[],isWordLike:[],kinds:[],starts:[]};let o=pr(a,t,i),s=r===`keep-all`?hr(a,o,t.breakKeepAllAfterPunctuation):o;return{normalized:a,chunks:mr(s,i),...s}}var Z=null,_r=new Map,vr=null,yr=96,br=/\p{Emoji_Presentation}/u,xr=/[\p{Emoji_Presentation}\p{Extended_Pictographic}\p{Regional_Indicator}\uFE0F\u20E3]/u,Sr=null,Cr=new Map;function wr(){if(Z!==null)return Z;if(typeof OffscreenCanvas<`u`)return Z=new OffscreenCanvas(1,1).getContext(`2d`),Z;if(typeof document<`u`)return Z=document.createElement(`canvas`).getContext(`2d`),Z;throw Error(`Text measurement requires OffscreenCanvas or a DOM canvas context.`)}function Tr(e){let t=_r.get(e);return t||(t=new Map,_r.set(e,t)),t}function Q(e,t){let n=t.get(e);return n===void 0&&(n={width:wr().measureText(e).width,containsCJK:J(e)},t.set(e,n)),n}function Er(){if(vr!==null)return vr;if(typeof navigator>`u`)return vr={lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,breakKeepAllAfterPunctuation:!0,preferPrefixWidthsForBreakableRuns:!1,preferEarlySoftHyphenBreak:!1},vr;let e=navigator.userAgent,t=navigator.vendor===`Apple Computer, Inc.`&&e.includes(`Safari/`)&&!e.includes(`Chrome/`)&&!e.includes(`Chromium/`)&&!e.includes(`CriOS/`)&&!e.includes(`FxiOS/`)&&!e.includes(`EdgiOS/`),n=e.includes(`Chrome/`)||e.includes(`Chromium/`)||e.includes(`CriOS/`)||e.includes(`Edg/`);return vr={lineFitEpsilon:t?1/64:.005,carryCJKAfterClosingQuote:n,breakKeepAllAfterPunctuation:!t,preferPrefixWidthsForBreakableRuns:t,preferEarlySoftHyphenBreak:t},vr}function Dr(e){let t=e.match(/(\d+(?:\.\d+)?)\s*px/);return t?parseFloat(t[1]):16}function Or(){return Sr===null&&(Sr=new Intl.Segmenter(void 0,{granularity:`grapheme`})),Sr}function kr(e){return br.test(e)||e.includes(`️`)}function Ar(e){return xr.test(e)}function jr(e,t){let n=Cr.get(e);if(n!==void 0)return n;let r=wr();r.font=e;let i=r.measureText(`😀`).width;if(n=0,i>t+.5&&typeof document<`u`&&document.body!==null){let t=document.createElement(`span`);t.style.font=e,t.style.display=`inline-block`,t.style.visibility=`hidden`,t.style.position=`absolute`,t.textContent=`😀`,document.body.appendChild(t);let r=t.getBoundingClientRect().width;document.body.removeChild(t),i-r>.5&&(n=i-r)}return Cr.set(e,n),n}function Mr(e){let t=0,n=Or();for(let r of n.segment(e))kr(r.segment)&&t++;return t}function Nr(e,t){return t.emojiCount===void 0&&(t.emojiCount=Mr(e)),t.emojiCount}function $(e,t,n){return n===0?t.width:t.width-Nr(e,t)*n}function Pr(e,t,n,r,i){if(t.breakableFitAdvances!==void 0&&t.breakableFitMode===i)return t.breakableFitAdvances;t.breakableFitMode=i;let a=Or(),o=[];for(let t of a.segment(e))o.push(t.segment);if(o.length<=1)return t.breakableFitAdvances=null,t.breakableFitAdvances;if(i===`sum-graphemes`){let e=[];for(let t of o){let i=Q(t,n);e.push($(t,i,r))}return t.breakableFitAdvances=e,t.breakableFitAdvances}if(i===`pair-context`||o.length>yr){let e=[],i=null,a=0;for(let t of o){let o=$(t,Q(t,n),r);if(i===null)e.push(o);else{let o=i+t,s=Q(o,n);e.push($(o,s,r)-a)}i=t,a=o}return t.breakableFitAdvances=e,t.breakableFitAdvances}let s=[],c=``,l=0;for(let e of o){c+=e;let t=Q(c,n),i=$(c,t,r);s.push(i-l),l=i}return t.breakableFitAdvances=s,t.breakableFitAdvances}function Fr(e,t){let n=wr();n.font=e;let r=Tr(e),i=Dr(e);return{cache:r,fontSize:i,emojiCorrection:t?jr(e,i):0}}function Ir(){_r.clear(),Cr.clear(),Sr=null}function Lr(e){return e===`space`||e===`zero-width-break`||e===`soft-hyphen`}function Rr(e){return e===`space`||e===`preserved-space`||e===`tab`||e===`zero-width-break`||e===`soft-hyphen`}function zr(e,t,n=e.widths.length){for(;t0?e.letterSpacing:0}function Hr(e,t){return t===0?0:e+t}function Ur(e,t){return e.letterSpacing!==0&&e.spacingGraphemeCounts[t]>0?e.letterSpacing:0}function Wr(e,t,n,r,i){return Hr(r,t===`tab`?i+Ur(e,n):e.lineEndFitAdvances[n])}function Gr(e,t,n,r){return Hr(r,t===`tab`?0:e.lineEndFitAdvances[n])}function Kr(e,t,n,r,i){return Hr(r,t===`tab`?i:e.lineEndPaintAdvances[n])}function qr(e,t,n){return e.letterSpacing!==0&&t?n+e.letterSpacing:n}function Jr(e,t){return e.letterSpacing===0?t:t+e.letterSpacing}function Yr(e,t,n,r,i){if(e.letterSpacing===0)return 0;if(i>0)return e.spacingGraphemeCounts[r]>0?e.letterSpacing:0;for(let i=r-1;i>=t;i--){let a=e.kinds[i];if(!(a===`space`||a===`zero-width-break`||a===`hard-break`)){if(a===`soft-hyphen`){if(i===r-1)return 0;continue}return i===t&&n>0||e.spacingGraphemeCounts[i]>0?e.letterSpacing:0}}return 0}function Xr(e,t,n,r,i,a){return t+Yr(e,n,r,i,a)}function Zr(e,t,n){let{widths:r,kinds:i,breakableFitAdvances:a}=e;if(r.length===0)return 0;let o=t+Er().lineFitEpsilon,s=0,c=0,l=!1,u=0,d=0,f=0,p=0,m=-1,h=0;function g(){m=-1,h=0}function _(e=f,t=p,r=c){s++,n?.(r,u,d,e,t),c=0,l=!1,g()}function v(e,t){l=!0,u=e,d=0,f=e+1,p=0,c=t}function y(e,t,n){l=!0,u=e,d=t,f=e,p=t+1,c=n}function b(e,t){if(!l){v(e,t);return}c+=t,f=e+1,p=0}function x(e,t){let n=a[e];for(let r=t;ro?(_(),y(e,r,t)):(c+=t,f=e,p=r+1):y(e,r,t)}l&&f===e&&p===n.length&&(f=e+1,p=0)}let S=0;for(;S=r.length));){let e=r[S],t=i[S],n=Rr(t);if(!l){e>o&&a[S]!==null?x(S,0):v(S,e),n&&(m=S+1,h=c-e),S++;continue}if(c+e>o){if(n){b(S,e),_(S+1,0,c-e),S++;continue}if(m>=0){if(f>m||f===m&&p>0){_();continue}_(m,0,h);continue}if(e>o&&a[S]!==null){_(),x(S,0),S++;continue}_();continue}b(S,e),n&&(m=S+1,h=c-e),S++}return l&&_(),s}function Qr(e,t,n){if(e.simpleLineWalkFastPath)return Zr(e,t,n);let{widths:r,kinds:i,breakableFitAdvances:a,discretionaryHyphenWidth:o,chunks:s}=e;if(r.length===0||s.length===0)return 0;let c=Er(),l=t+c.lineFitEpsilon,u=0,d=0,f=!1,p=0,m=0,h=0,g=0,_=-1,v=0,y=0,b=null;function x(){_=-1,v=0,y=0,b=null}function S(){return b===`soft-hyphen`&&_===h&&g===0?y:d}function C(t=h,r=g,i){u++,n!==void 0&&n(Xr(e,i??S(),p,m,t,r),p,m,t,r),d=0,f=!1,x()}function w(e,t){f=!0,p=e,m=0,h=e+1,g=0,d=t}function T(e,t,n){f=!0,p=e,m=t,h=e,g=t+1,d=n}function E(e,t){if(!f){w(e,t);return}d+=t,h=e+1,g=0}function D(t,n,r,i,a,o){if(!n)return;let s=Gr(e,t,r,a),c=Kr(e,t,r,a,i);_=r+1,v=d-o+s,y=d-o+c,b=t}function O(t,n){let r=a[t];for(let i=n;il?(C(),T(t,i,n)):(d=a,h=t,g=i+1)}}f&&h===t&&g===r.length&&(h=t+1,g=0)}function k(e){u++,n?.(0,e.startSegmentIndex,0,e.consumedEndSegmentIndex,0),x()}for(let t=0;t=n.endSegmentIndex));){let t=i[u],n=Rr(t),s=Vr(e,f,u),p=t===`tab`?Br(d+s,e.tabStopAdvance):r[u],m=s+p,x=Wr(e,t,u,s,p);if(t===`soft-hyphen`){f&&(h=u+1,g=0,_=u+1,v=d+o,y=d+o,b=t),u++;continue}if(!f){x>l&&a[u]!==null?O(u,0):w(u,p),D(t,n,u,p,s,m),u++;continue}if(d+x>l){let r=d+Gr(e,t,u,s),i=d+Kr(e,t,u,s,p);if(b===`soft-hyphen`&&c.preferEarlySoftHyphenBreak&&v<=l){C(_,0,y);continue}if(n&&r<=l){E(u,m),C(u+1,0,i),u++;continue}if(_>=0&&v<=l){if(h>_||h===_&&g>0){C();continue}let e=_;C(e,0,y),u=e;continue}if(x>l&&a[u]!==null){C(),O(u,0),u++;continue}C();continue}E(u,m),D(t,n,u,p,s,m),u++}if(f){let e=_===n.consumedEndSegmentIndex?y:d;C(n.consumedEndSegmentIndex,0,e)}}return u}var $r=null;function ei(){return $r===null&&($r=new Intl.Segmenter(void 0,{granularity:`grapheme`})),$r}function ti(e){return e?{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[],segments:[]}:{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[]}}function ni(e,t){let n=[],r=[],i=0,a=!1,o=!1,s=!1;function c(){r.length!==0&&(n.push({text:r.length===1?r[0]:r.join(``),start:i}),r=[],a=!1,o=!1,s=!1)}function l(e,t,n){r=[e],i=t,a=n,o=Gn(e),s=xn.has(e)}function u(e,t){r.push(e),a||=t;let n=Gn(e);e.length===1&&Y.has(e)?o||=n:o=n,s=!1}for(let n of ei().segment(e)){let e=n.segment,i=J(e);if(r.length===0){l(e,n.index,i);continue}if(s||bn.has(e)||Y.has(e)||t.carryCJKAfterClosingQuote&&i&&o){u(e,i);continue}if(!a&&!i){u(e,i);continue}c(),l(e,n.index,i)}return c(),n}function ri(e,t,n){if(t.length<=1)return t;let r=[],i=-1,a=!1;function o(n,i){let a=t[n].start,o=i=0&&!yn(t[e-1].text,n)&&s(e),i<0&&(i=e),a||=J(r.text)}return s(t.length),r}function ii(e,t){if(t===`zero-width-break`||t===`soft-hyphen`||t===`hard-break`)return 0;if(t===`tab`)return 1;let n=0,r=ei();for(let t of r.segment(e))n++;return n}function ai(e,t,n){return t>1?e+(t-1)*n:e}function oi(e,t,n,r,i){let a=Er(),{cache:o,emojiCorrection:s}=Fr(t,Ar(e.normalized)),c=$(`-`,Q(`-`,o),s)+(i===0?0:i*2),l=$(` `,Q(` `,o),s)*8,u=i!==0;if(e.len===0)return ti(n);let d=[],f=[],p=[],m=[],h=e.chunks.length<=1&&!u,g=n?[]:null,_=[],v=[],y=n?[]:null,b=Array.from({length:e.len});function x(e,t,n,r,i,a,o,s){i!==`text`&&i!==`space`&&i!==`zero-width-break`&&(h=!1),d.push(t),f.push(n),p.push(r),m.push(i),g?.push(a),_.push(o),u&&v.push(s),y!==null&&y.push(e)}function S(e,t,n,r,c){let l=Q(e,o),d=u?ii(e,t):0,f=ai($(e,l,s),d,i),p=t===`space`||t===`preserved-space`||t===`zero-width-break`?0:f,m=p===0?0:p+(d>0?i:0),h=t===`space`||t===`zero-width-break`?0:f;if(c&&r&&e.length>1){let r=`sum-graphemes`;i===0?sr(e)?r=`pair-context`:a.preferPrefixWidthsForBreakableRuns&&(r=`segment-prefixes`):r=`segment-prefixes`,x(e,f,m,h,t,n,Pr(e,l,o,s,r),d);return}x(e,f,m,h,t,n,null,d)}for(let t=0;t{e>t&&(t=e)}),t}function fi(){ln(),$r=null,Ir()}var pi=Be({cdnList:Ie,fallback:{},path:e=>`colors/${ze[e]}.json`});function mi(e,t){let n=Fe(t).replace(/\s+/g,`-`),[r,i]=(0,W.useState)(()=>pi.get(e)?.[n]);return(0,W.useEffect)(()=>{let t=!1;if(!n){i(void 0);return}return Promise.all([Re(e,n),pi.load(e)]).then(([e,n])=>{if(!t){let t=Fe(e).replace(/\s+/g,`-`);i(n?.[t])}}),()=>{t=!0}},[n,e]),r}function hi(e){if(e)return{background:`rgba(${e.r}, ${e.g}, ${e.b}, 0.16)`,color:`rgb(${e.r} ${e.g} ${e.b})`}}function gi({className:e,displayName:t,label:n,name:r,type:i}){let a=mi(i,r),o=n??(i===`network`?Le(r,t):r);return(0,K.jsxs)(`span`,{className:ue(`inline-flex min-w-0 items-center gap-1 rounded-full px-2 py-0.5`,e),style:hi(a),children:[(0,K.jsx)(Ve,{alt:``,className:`size-4 shrink-0 rounded-full`,height:16,name:r,type:i,width:16}),(0,K.jsx)(`span`,{className:`truncate font-semibold text-xs`,children:o})]})}function _i({className:e,displayName:t,network:n}){return(0,K.jsx)(gi,{className:e,displayName:t,name:n,type:`network`})}var vi=36,yi=1,bi=`700 ${vi}px "Nunito Variable"`,xi={wordBreak:`keep-all`},Si=`\xA0`;function Ci({activeNetwork:e,activeNetworkDisplayName:t,amountMode:n,onCopyAmount:r,order:i,tradeId:a}){let o=n===`payment`?Oi(i):Di(i);return(0,K.jsxs)(`section`,{className:`mb-4 w-full rounded-2xl border bg-card px-6 pt-6 pb-5 text-card-foreground shadow-md`,children:[(0,K.jsx)(`p`,{className:`mb-1 font-medium text-muted-foreground text-sm`,children:n===`payment`?ae():D()}),(0,K.jsxs)(`div`,{className:`flex items-end justify-between gap-3`,children:[(0,K.jsx)(wi,{children:o}),(0,K.jsx)(It,{onClick:r})]}),n===`payment`&&e?(0,K.jsx)(_i,{className:`mt-2`,displayName:t,network:e??``}):null,(0,K.jsx)(`div`,{className:`mt-3 border-border/50 border-t pt-3`,children:(0,K.jsx)(`table`,{className:`w-full border-separate border-spacing-y-1 text-muted-foreground text-sm`,children:(0,K.jsxs)(`tbody`,{children:[n===`payment`?(0,K.jsxs)(`tr`,{children:[(0,K.jsx)(`td`,{className:`w-px whitespace-nowrap pr-3`,children:D()}),(0,K.jsx)(`td`,{className:`whitespace-nowrap font-medium text-card-foreground`,children:Di(i)})]}):null,(0,K.jsxs)(`tr`,{children:[(0,K.jsx)(`td`,{className:`w-px whitespace-nowrap pr-3`,children:k()}),(0,K.jsx)(`td`,{className:`break-all font-medium text-card-foreground`,children:i?.trade_id??a})]})]})})})]})}function wi({children:e}){let t=Ti(e),n=(0,W.useRef)(null),[r,i]=(0,W.useState)(()=>Ei(t)),[a,o]=(0,W.useState)(vi),s=(0,W.useCallback)(()=>{let e=n.current;if(!e)return;let t=e.clientWidth;if(!(t&&r))return;let i=Math.max(yi,Math.min(vi,vi*t/r));o(e=>Math.abs(e-i)<.5?e:i)},[r]);return(0,W.useLayoutEffect)(()=>{i(Ei(t))},[t]),(0,W.useLayoutEffect)(()=>{s();let e=n.current,t=new ResizeObserver(s);return e&&t.observe(e),()=>{t.disconnect()}},[s]),(0,W.useLayoutEffect)(()=>{let e=!0;return document.fonts?.ready.then(()=>{e&&(fi(),i(Ei(t)))}),()=>{e=!1}},[t]),(0,K.jsx)(`span`,{className:`relative block min-w-0 flex-1 overflow-hidden leading-none`,ref:n,children:(0,K.jsx)(`span`,{className:`block whitespace-nowrap font-bold font-nunito leading-none`,style:{fontSize:a},children:t})})}function Ti(e){return e.replace(/\s+/g,Si)}function Ei(e){return di(li(e,bi,xi))}function Di(e){return e?.amount==null?`--`:ki(e.amount,e.currency)}function Oi(e){let t=e?.actual_amount??e?.amount,n=e?.actual_amount==null?e?.currency:e?.token;return t==null?`--`:ki(t,n)}function ki(e,t){return t?`${e}${Si}${t}`:String(e)}function Ai(e,t){return t===2?e===`payment`||e===`success`||e===`expired`?2:+(e===`select`):e===`payment`||e===`success`||e===`expired`?3:e===`select`?2:+(e===`method`)}function ji({hidden:e,panel:t,totalSteps:n=3}){if(e)return null;let r=Ai(t,n);return(0,K.jsx)(`div`,{className:`mb-4 flex w-full items-center gap-2`,children:Array.from({length:n},(e,t)=>t+1).map(e=>(0,K.jsx)(`div`,{className:`h-1 flex-1 overflow-hidden rounded-full bg-foreground/10`,children:(0,K.jsx)(`div`,{className:ue(`h-full rounded-full bg-foreground transition-all`,r>=e?`w-full`:`w-0`)})},e))})}var Mi=new Set,Ni,Pi=Date.now();function Fi(e){return Pi=Date.now(),Mi.add(e),Ni===void 0&&(Ni=window.setInterval(()=>{Pi=Date.now();for(let e of Mi)e()},1e3)),()=>{Mi.delete(e),Mi.size===0&&Ni!==void 0&&(window.clearInterval(Ni),Ni=void 0)}}function Ii(){return Pi}function Li(e){return(0,W.useSyncExternalStore)(e?Fi:()=>()=>void 0,Ii,Ii)}function Ri({tradeId:e}){let r=le(),i=t.useQuery(`get`,`/pay/checkout-counter-resp/{trade_id}`,{params:{path:{trade_id:e}}},{retry:!1}),a=(0,W.useMemo)(()=>{let e=qe(i.data);return e?nt(e):void 0},[i.data]),o=t.useMutation(`post`,`/pay/switch-network`),s=t.useMutation(`post`,`/pay/submit-tx-hash/{trade_id}`),[l,u]=(0,W.useState)(),[d,f]=(0,W.useState)(),[p,m]=(0,W.useState)(),[h,g]=(0,W.useState)(null),[_,v]=(0,W.useState)(!1),[y,b]=(0,W.useState)(``),x=d??a,w=!!(x?.payment_url||x?.receive_address),T=!!(x?.trade_id&&!w),E=!!(x?.network&&x?.token&&!U(x.network,`okpay`)),D=!!(x?.trade_id&&E&&!Ye(x.is_selected)),O=t.useQuery(`get`,`/payments/gmpay/v1/config`,void 0,{enabled:!!x?.trade_id,retry:!1}),k=(0,W.useMemo)(()=>qe(O.data),[O.data]),A=(0,W.useMemo)(()=>Xe(k).filter(e=>!U(e.network,`okpay`)),[k]),j=(0,W.useMemo)(()=>T||_||D?A:[],[D,_,T,A]),te=(0,W.useMemo)(()=>zi(k?.okpay?.allow_tokens),[k?.okpay?.allow_tokens]),ne=j.length>0,re=!!(k?.okpay?.enabled&&te.length),ie=Number(ne)+Number(re),ae;ie===1&&(ae=ne?`chain`:`okpay`);let M=p??(_||E?`chain`:ae),N=(0,W.useMemo)(()=>M===`okpay`?te:M===`chain`?j:[],[M,te,j]),oe=(0,W.useMemo)(()=>tt(N,x,{network:k?.epay?.default_network,token:k?.epay?.default_token}),[N,x,k]),P=h??oe,F=P?.network??x?.network??``,se=P?.token??x?.token??``,ce=(0,W.useMemo)(()=>{if(M===`okpay`&&k?.okpay?.enabled&&U(F,`tron`)&&[`trx`,`usdt`].includes(String(se).toLowerCase()))return{network:`okpay`,token:se.toUpperCase()}},[M,k,F,se]),I=(0,W.useMemo)(()=>Ke(x?.expiration_time),[x?.expiration_time]),L=(0,W.useMemo)(()=>Ke(x?.created_at),[x?.created_at]),ue=L&&I&&L{if(l)return l;if(i.isPending)return`loading`;if(de){let e=Ge(de);return et.includes(e??0)?`not-found`:`timeout`}if(!x?.trade_id)return`not-found`;if(z<=0&&I)return`expired`;if(T||_){if(O.isPending)return`loading`;if(fe){let e=Ge(fe);return et.includes(e??0)?`not-found`:`timeout`}return M?`select`:`method`}return`payment`},[M,I,_,T,x,de,i.isPending,z,fe,O.isPending,l]),pe=!!x?.trade_id&&!l&&![`loading`,`not-found`,`timeout`].includes(B),V=t.useQuery(`get`,`/pay/check-status/{trade_id}`,{params:{path:{trade_id:x?.trade_id??``}}},{enabled:pe,refetchInterval:({state:e})=>pe&&e.fetchFailureCount<5?Je:!1,retry:!1}),me=qe(V.data)?.status,H=(0,W.useMemo)(()=>me===2?`success`:me===3?`expired`:B===`payment`&&V.failureCount>=5?`timeout`:B,[B,me,V.failureCount]);n({queryKey:[`checkout-redirect`,x?.trade_id,x?.redirect_url],queryFn:async({signal:e})=>(await Qe(We,e),window.location.href=x?.redirect_url,!0),enabled:H===`success`&&!!x?.redirect_url,retry:!1});let he=(0,W.useMemo)(()=>{let e=new Map;for(let t of N){if(!t.network)continue;let n=t.network.toLowerCase();e.has(n)||e.set(n,{network:t.network,displayName:t.displayName})}return Array.from(e.values())},[N]),ge=(0,W.useMemo)(()=>{let e=new Map;for(let t of A)t.network&&t.displayName&&e.set(t.network.toLowerCase(),t.displayName);return e},[A]),_e=(0,W.useMemo)(()=>Array.from(new Set(N.filter(e=>U(e.network,F)).map(e=>e.token))),[N,F]),ve=ue>0?Math.max(0,Math.min(1,z/ue)):0,ye=$e(ve),be=L?Math.max(0,Math.round((R-L.getTime())/1e3)):0,xe=H===`payment`&&be>=10,Se=H===`method`||H===`select`||!w?`order`:`payment`,Ce=e=>e==null||e===``?!1:(0,st.default)(String(e))?(Me.success(ee()),!0):(Me.error(S()),!1),we=(0,W.useCallback)((e,t)=>{if(t&&!t.closed){t.location.href=e,t.focus();return}window.open(e,`okpay_checkout`,`popup,width=480,height=720`)},[]),Te=(0,W.useCallback)(async(e,t)=>{if(!x?.trade_id)return;let n=U(e.network,`okpay`);try{let i=qe(await o.mutateAsync({body:{trade_id:x.trade_id,network:e.network.toLowerCase(),token:e.token.toLowerCase()}}));if(!i)throw Error(Ze);let a=nt(i);if(f({...x,...a,is_selected:a.is_selected??!0,network:a.network??e.network,token:a.token??e.token}),v(!1),n&&a.payment_url){we(a.payment_url,t);return}t?.close(),a.trade_id&&a.trade_id!==x.trade_id&&r({params:{trade_id:a.trade_id},replace:!0,to:`/cashier/$trade_id`}).catch(()=>void 0),u(void 0)}catch(e){t?.close();let n=Ge(e);et.includes(n??0)?u(`not-found`):n===10010?u(`expired`):Me.error(e instanceof Error?e.message:Ze)}},[x,we,r,o]),Ee=async()=>{if(M===`okpay`){await De();return}P&&await Te(P)},De=async()=>{ce&&await Te(ce,window.open(`about:blank`,`okpay_checkout`,`popup,width=480,height=720`))},Oe=()=>{if(u(void 0),x?.trade_id&&x.receive_address){V.refetch();return}i.refetch(),(T||O.isError)&&O.refetch()},ke=()=>{if(x?.redirect_url){window.location.href=x.redirect_url;return}if(document.referrer){window.location.href=document.referrer;return}history.back()},Ae=async()=>{let e=y.trim();if(!(x?.trade_id&&e))return Me.error(c()),!1;try{let t=qe(await s.mutateAsync({body:{block_transaction_id:e},params:{path:{trade_id:x.trade_id}}}));return Me.success(C()),b(``),t?.status===2?(u(`success`),!0):(V.refetch(),!0)}catch(e){let t=Ge(e);return et.includes(t??0)?u(`not-found`):t===10010&&u(`expired`),!1}},je=()=>{m(`chain`),g(null)},Ne=()=>{m(`okpay`),g(te[0]??null)},Pe=()=>{if(_){v(!1);return}m(void 0),g(null)},Fe=()=>{let e=A.find(e=>U(e.network,x?.network)&&U(e.token,x?.token));m(`chain`),g(e??null),v(!0)},Ie=e=>{g(N.find(t=>U(t.network,e))??null)},Le=e=>{g(N.find(t=>U(t.network,F)&&U(t.token,e))??null)},Re=M===`okpay`||U(x?.network,`okpay`);return(0,K.jsxs)(`main`,{className:`flex flex-1 flex-col justify-center`,children:[H===`not-found`?null:(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(ji,{hidden:!!(!(_||d)&&w&&E),panel:H,totalSteps:Re||!M?3:2}),(0,K.jsx)(Ci,{activeNetwork:x?.network??F,activeNetworkDisplayName:ge.get((x?.network??F).toLowerCase()),amountMode:Se,onCopyAmount:()=>Ce(Se===`payment`?x?.actual_amount??x?.amount:x?.amount),order:x,tradeId:e})]}),(0,K.jsx)(Jt,{networkOptions:he,onBack:ke,onChangePaymentOption:Fe,onConfirmSelection:Ee,onCopyAddress:()=>Ce(x?.receive_address),onNetworkChange:Ie,onRetry:Oe,onReturnToMethods:Pe,onSelectChainPayment:je,onSelectOkpayPayment:Ne,onSubmitTxHash:Ae,onTokenChange:Le,onTxHashChange:b,order:x,panel:H,remaining:z,selectedNetwork:F,selectedOption:P??void 0,selectedPaymentMethod:M,selectedToken:se,showChainPayment:ne,showChangePaymentOption:D&&H===`payment`&&!U(x?.network,`okpay`),showOkpay:re,showReturnToMethods:!!p&&ie>1,showTxHashSubmit:xe,submitting:o.isPending,submittingTxHash:s.isPending,timeColor:ye,timerRatio:ve,tokenOptions:_e,txHash:y})]})}function zi(e){return Array.from(new Set((e??[]).map(e=>e.trim().toUpperCase()).filter(e=>[`TRX`,`USDT`].includes(e)))).map(e=>({network:`tron`,token:e,displayName:`TRON`}))}function Bi(){let{trade_id:e}=Ne.useParams();return(0,K.jsx)(Ri,{tradeId:e},e)}export{Bi as component}; \ No newline at end of file diff --git a/src/www/assets/_trade_id-CdBtzygm.js b/src/www/assets/_trade_id-CdBtzygm.js new file mode 100644 index 0000000..e13ad39 --- /dev/null +++ b/src/www/assets/_trade_id-CdBtzygm.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_trade_id-BUpVePSs.js","assets/chunk-DECur_0Z.js","assets/button-NLSeBFht.js","assets/clsx-D9aGYY3V.js","assets/messages-CL4J6BaJ.js","assets/react-CO2uhaBc.js","assets/select-D2uO5-De.js","assets/dist-DB-jLX48.js","assets/dist-DmeeHi7K.js","assets/dist-SR6sl-WU.js","assets/dist-D3WFT-Yo.js","assets/dist-B0pRVbY9.js","assets/dist-CRowTfGU.js","assets/dist-UaPzzPYf.js","assets/dist-CGRahgI2.js","assets/dist-esC74fSg.js","assets/es2015-3J9GnV9P.js","assets/dist-BixeH3nX.js","assets/dist-CjidLXaw.js","assets/createLucideIcon-Br0Bd5k2.js","assets/check-CHp0nSkR.js","assets/chevron-down-BB5h1CsX.js","assets/auth-store-8ocF_FHU.js","assets/dist-Dd-sCJIt.js","assets/with-selector-DBfssCrY.js","assets/cookies-BzZOQYPw.js","assets/useNavigate-7u4DX0Ho.js","assets/useRouter-DtTm7XkK.js","assets/copy-to-clipboard-C1tj4a8X.js","assets/arrow-left-right-CcCrkQiR.js","assets/arrow-left-BpZwGREZ.js","assets/radio-group-yaBPIkVa.js","assets/dist-DA1qWiix.js","assets/dist-BZMqLvO-.js","assets/dist-DhcQhr4B.js","assets/loader-circle-DpEz1fQv.js","assets/send-BNvceEpO.js","assets/triangle-alert-DB5v_9sS.js","assets/dialog-CtyiwzAl.js","assets/dist-DPYswSIO.js","assets/crypto-icon-BPgcAvNF.js","assets/labels-CQIGkPR0.js","assets/input-DAqep8ZY.js","assets/checkout-model-CQ3aqlob.js"])))=>i.map(i=>d[i]); +import{n as e,t}from"./lazyRouteComponent-CleTUoKA.js";import{t as n}from"./preload-helper-DoS0eHac.js";var r=e(`/cashier/$trade_id/`)({component:t(()=>n(()=>import(`./_trade_id-BUpVePSs.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43])),`component`)});export{r as t}; \ No newline at end of file diff --git a/src/www/assets/_trade_id-DIf2n6tl.js b/src/www/assets/_trade_id-DIf2n6tl.js deleted file mode 100644 index d0fea2e..0000000 --- a/src/www/assets/_trade_id-DIf2n6tl.js +++ /dev/null @@ -1,2 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_trade_id-CrABgEyD.js","assets/chunk-DECur_0Z.js","assets/button-C_NDYaz8.js","assets/clsx-D9aGYY3V.js","assets/messages-BOatyqUm.js","assets/react-CO2uhaBc.js","assets/select-CzebumOF.js","assets/dist-CsIb2aLK.js","assets/dist-DPPquN_M.js","assets/dist-D4X8zGEB.js","assets/dist-Cc8_LDAq.js","assets/dist-ZdRQQNeu.js","assets/dist-CRowTfGU.js","assets/dist-CHFjpVqk.js","assets/dist-BNFQuJTu.js","assets/dist-rcWP-8Cu.js","assets/es2015-DT8UeWzs.js","assets/dist-BixeH3nX.js","assets/dist-Dtn5c_cx.js","assets/createLucideIcon-Br0Bd5k2.js","assets/check-CHp0nSkR.js","assets/chevron-down-BB5h1CsX.js","assets/auth-store-De4Y7PFV.js","assets/dist-JOUh6qvR.js","assets/with-selector-DBfssCrY.js","assets/cookies-BzZOQYPw.js","assets/useNavigate-7u4DX0Ho.js","assets/useRouter-DtTm7XkK.js","assets/copy-to-clipboard-C1tj4a8X.js","assets/arrow-left-right-CcCrkQiR.js","assets/arrow-left-BpZwGREZ.js","assets/radio-group-D2rceepu.js","assets/dist-C5heX0fx.js","assets/dist-DvwKOQ8R.js","assets/dist-D0DoWChj.js","assets/loader-circle-DpEz1fQv.js","assets/send-BNvceEpO.js","assets/triangle-alert-DB5v_9sS.js","assets/dialog-CZ-2RPb-.js","assets/dist-iiotRAEO.js","assets/crypto-icon-DnliVYVs.js","assets/labels-Cbc2zlmv.js","assets/input-8zzM34r5.js","assets/checkout-model-CQ3aqlob.js"])))=>i.map(i=>d[i]); -import{n as e,t}from"./lazyRouteComponent-JF8ipq5d.js";import{t as n}from"./preload-helper-DoS0eHac.js";var r=e(`/cashier/$trade_id/`)({component:t(()=>n(()=>import(`./_trade_id-CrABgEyD.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43])),`component`)});export{r as t}; \ No newline at end of file diff --git a/src/www/assets/addresses-lQocmp_u.js b/src/www/assets/addresses-CHUp3WnH.js similarity index 89% rename from src/www/assets/addresses-lQocmp_u.js rename to src/www/assets/addresses-CHUp3WnH.js index b052563..24e4e7e 100644 --- a/src/www/assets/addresses-lQocmp_u.js +++ b/src/www/assets/addresses-CHUp3WnH.js @@ -1,3 +1,3 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{a as t,o as n}from"./auth-store-De4Y7PFV.js";import{t as r}from"./router-Z0tUklFK.js";import{t as i}from"./react-CO2uhaBc.js";import{$o as a,Ao as o,Bo as s,Cs as c,Es as l,Fo as u,Go as d,Ho as f,Io as p,Jo as m,Ko as h,Lo as g,Mo as _,No as ee,Po as v,Qo as y,Ro as b,Ss as x,Ts as S,Uo as C,Vo as te,Wo as w,Xo as T,Yo as E,Zo as D,_s as ne,as as re,bs as ie,cs as O,ds as ae,es as oe,fs as se,gs as k,hs as ce,is as le,jo as ue,ls as de,ms as fe,ns as pe,os as me,ps as he,qo as ge,rs as _e,ss as ve,tm as ye,ts as be,us as xe,vs as Se,ws as Ce,xs as we,ys as Te,zo as Ee}from"./messages-BOatyqUm.js";import{r as De}from"./route-wzPKSRj2.js";import{o as Oe}from"./search-provider-C-_FQI9C.js";import{i as ke,t as A}from"./button-C_NDYaz8.js";import{t as Ae}from"./confirm-dialog-D1L-0EhT.js";import{a as je,c as j,l as Me,r as Ne,s as Pe,t as Fe}from"./dropdown-menu-DzCIpsuG.js";import{t as M}from"./label-DNL0sHKL.js";import{a as N,i as P,n as F,r as I,t as L}from"./select-CzebumOF.js";import{t as Ie}from"./switch-CgoJjvdz.js";import{a as R,c as Le,d as Re,f as ze,l as Be,n as Ve,o as He,r as Ue,s as We,t as Ge,u as Ke}from"./data-table-1LQSBhN2.js";import{t as qe}from"./epusdt-BvGYu9TV.js";import{t as Je}from"./download-fYUtNZ3R.js";import{t as Ye}from"./ellipsis-74ly4-Wm.js";import{t as Xe}from"./eye-off-B8hO0oST.js";import{t as Ze}from"./eye-DAKGLydt.js";import{n as Qe,t as $e}from"./main-C1R3Hvq1.js";import{n as et,t as z}from"./chains-store-DCzO87jZ.js";import{n as tt,t as nt}from"./trash-2-9I8lAjeE.js";import{a as rt,i as B,o as V,r as H,s as U,t as W}from"./dialog-CZ-2RPb-.js";import{n as G}from"./dist-JOUh6qvR.js";import{c as K,s as it}from"./zod-rwFXxHlg.js";import{a as q,c as at,i as J,l as ot,n as Y,o as X,s as Z,t as st}from"./form-KfFEakes.js";import{t as ct}from"./input-8zzM34r5.js";import{t as lt}from"./page-header-GTtyZFBB.js";import{t as ut}from"./textarea-C8ejjLzk.js";import{t as dt}from"./use-table-url-state-DP0Y4QjR.js";import{t as ft}from"./long-text-DNqlDi0R.js";var Q=e(i(),1),$=ye(),pt=it({address:K().min(8,ue()),network:K().min(1,o()),remark:K().max(50).optional()});function mt({open:e,onOpenChange:n,currentRow:r,onSuccess:i}){let{chains:a,loading:o}=z(),c=ot({resolver:at(pt),defaultValues:{address:``,network:``,remark:``}}),l=t.useMutation(`post`,`/admin/api/v1/wallets`),d=t.useMutation(`patch`,`/admin/api/v1/wallets/{id}`),h=(0,Q.useMemo)(()=>a.map(e=>e.network).filter(e=>!!e),[a]);(0,Q.useEffect)(()=>{e&&c.reset({address:r?.address??``,network:r?.network??``,remark:r?.remark??``})},[e,r,c]);function y(e){if(r?.id){d.mutate({params:{path:{id:r.id}},body:{remark:e.remark||void 0}},{onSuccess:()=>{G.success(ee()),n(!1),i?.()}});return}l.mutate({body:{address:e.address,network:e.network,remark:e.remark??``}},{onSuccess:()=>{G.success(_()),n(!1),i?.()}})}let x=l.isPending||d.isPending,S=h.length>0,w=o?C():f(),[T,E]=(0,Q.useState)(!1);return(0,$.jsx)(W,{onOpenChange:n,open:e,children:(0,$.jsxs)(H,{children:[(0,$.jsxs)(V,{children:[(0,$.jsx)(U,{children:r?te():s()}),(0,$.jsx)(B,{children:r?Ee():b()})]}),(0,$.jsx)(st,{...c,children:(0,$.jsxs)(`form`,{className:`space-y-4`,onSubmit:c.handleSubmit(y),children:[(0,$.jsx)(J,{control:c.control,name:`network`,render:({field:e})=>(0,$.jsxs)(q,{children:[(0,$.jsx)(X,{children:O()}),(0,$.jsxs)(L,{disabled:!!r||!S,onValueChange:e.onChange,value:e.value,children:[(0,$.jsx)(Y,{children:(0,$.jsx)(P,{className:`w-full`,children:(0,$.jsx)(N,{placeholder:S?ve():w})})}),(0,$.jsx)(F,{children:S?h.map(e=>(0,$.jsx)(I,{value:e,children:e},e)):(0,$.jsx)(`div`,{className:`px-2 py-1.5 text-muted-foreground text-sm`,children:w})})]}),(0,$.jsx)(Z,{})]})}),(0,$.jsx)(J,{control:c.control,name:`address`,render:({field:e})=>(0,$.jsxs)(q,{children:[(0,$.jsx)(X,{children:re()}),(0,$.jsx)(Y,{children:(0,$.jsxs)(`div`,{className:`relative`,children:[(0,$.jsx)(ct,{...e,className:`pr-10`,disabled:!!r,placeholder:g(),type:T?`text`:`password`}),(0,$.jsx)(`button`,{className:`absolute inset-y-0 right-3 flex items-center text-muted-foreground hover:text-foreground`,onClick:()=>E(e=>!e),type:`button`,children:T?(0,$.jsx)(Xe,{className:`h-4 w-4`}):(0,$.jsx)(Ze,{className:`h-4 w-4`})})]})}),(0,$.jsx)(Z,{})]})}),(0,$.jsx)(J,{control:c.control,name:`remark`,render:({field:e})=>(0,$.jsxs)(q,{children:[(0,$.jsx)(X,{children:m()}),(0,$.jsx)(Y,{children:(0,$.jsx)(ct,{...e,placeholder:p()})}),(0,$.jsx)(Z,{})]})}),(0,$.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,$.jsx)(A,{onClick:()=>n(!1),type:`button`,variant:`outline`,children:le()}),(0,$.jsx)(A,{disabled:x,type:`submit`,children:x?u():v()})]})]})})]})})}function ht(e){return[{id:`status-switch`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:y()}),cell:({row:t})=>(0,$.jsx)(Ie,{checked:t.original.status===1,onCheckedChange:()=>e(t.original.status===1?`disable`:`enable`,t.original)}),enableSorting:!1,enableHiding:!1,meta:{label:y(),skeleton:`switch`,sticky:`left`,th:{className:ke(`rounded-tl-[inherit]`)}}},{accessorKey:`address`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:D()}),cell:({row:e})=>(0,$.jsx)(ft,{className:`font-medium`,children:e.original.address}),enableHiding:!1,meta:{label:D(),skeleton:`long`}},{accessorKey:`network`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:O()}),meta:{label:O(),skeleton:`short`}},{accessorKey:`order_count`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:T()}),meta:{label:T(),skeleton:`id`}},{accessorKey:`source`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:E()}),cell:({row:e})=>e.original.source??`-`,meta:{label:E(),skeleton:`short`}},{accessorKey:`remark`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:m()}),meta:{label:m(),skeleton:`long`}},{accessorKey:`created_at`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:ge()}),cell:({row:e})=>Oe(e.original.created_at),meta:{label:ge(),skeleton:`date`}},{accessorKey:`updated_at`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:h()}),cell:({row:e})=>Oe(e.original.updated_at),meta:{label:h(),skeleton:`date`}},{id:`actions`,enableHiding:!1,meta:{label:d(),skeleton:`action`,sticky:`right`,className:ke(`w-12`)},cell:({row:t})=>(0,$.jsxs)(Fe,{modal:!1,children:[(0,$.jsx)(Me,{asChild:!0,children:(0,$.jsxs)(A,{className:`flex h-8 w-8 p-0 data-[state=open]:bg-muted`,variant:`ghost`,children:[(0,$.jsx)(Ye,{className:`h-4 w-4`}),(0,$.jsx)(`span`,{className:`sr-only`,children:`Open menu`})]})}),(0,$.jsxs)(Ne,{align:`end`,className:`w-40`,children:[(0,$.jsxs)(je,{onClick:()=>e(`edit`,t.original),children:[w(),(0,$.jsx)(j,{children:(0,$.jsx)(et,{size:16})})]}),(0,$.jsx)(Pe,{}),(0,$.jsxs)(je,{onClick:()=>e(`delete`,t.original),variant:`destructive`,children:[k(),(0,$.jsx)(j,{children:(0,$.jsx)(nt,{size:16})})]})]})]})}]}var gt=De(`/_authenticated/addresses/`);function _t({data:e,isLoading:t,onAction:n,onRefresh:r}){let[i,o]=(0,Q.useState)([]),{globalFilter:s,onGlobalFilterChange:c,columnFilters:l,onColumnFiltersChange:u,pagination:d,onPaginationChange:f,ensurePageInRange:p}=dt({search:gt.useSearch(),navigate:gt.useNavigate(),pagination:{defaultPage:1,defaultPageSize:10},globalFilter:{enabled:!0,key:`address`},columnFilters:[{columnId:`status`,searchKey:`status`,type:`array`},{columnId:`network`,searchKey:`network`,type:`array`}]}),m=He({data:e,columns:(0,Q.useMemo)(()=>ht(n),[n]),state:{sorting:i,columnFilters:l,globalFilter:s,pagination:d},onSortingChange:o,onColumnFiltersChange:u,onGlobalFilterChange:c,onPaginationChange:f,globalFilterFn:(e,t,n)=>{let r=String(n).toLowerCase();return(e.original.address??``).toLowerCase().includes(r)||(e.original.remark??``).toLowerCase().includes(r)},getCoreRowModel:We(),getFilteredRowModel:Ke(),getPaginationRowModel:Re(),getSortedRowModel:ze(),getFacetedRowModel:Le(),getFacetedUniqueValues:Be()});(0,Q.useEffect)(()=>{p(m.getPageCount())},[m,p]);let h=[...new Set(e.map(e=>e.network).filter(Boolean))].map(e=>({label:e,value:e}));return(0,$.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,$.jsx)(Ge,{filters:[{columnId:`status`,title:a(),options:[...qe]},{columnId:`network`,title:O(),options:h}],onRefresh:r,searchPlaceholder:be(),table:m}),(0,$.jsx)(Ue,{className:`min-w-[900px]`,emptyText:oe(),loading:t,table:m}),(0,$.jsx)(Ve,{className:`mt-auto`,table:m})]})}function vt(){let{chains:e}=z(),i=t.useQuery(`get`,`/admin/api/v1/wallets`),a=t.useMutation(`delete`,`/admin/api/v1/wallets/{id}`),o=t.useMutation(`post`,`/admin/api/v1/wallets/{id}/status`),s=t.useMutation(`post`,`/admin/api/v1/wallets/batch-import`),[u,d]=(0,Q.useState)(!1),[f,p]=(0,Q.useState)(!1),[m,h]=(0,Q.useState)(``),[g,_]=(0,Q.useState)(``),[ee,v]=(0,Q.useState)(null),[y,b]=(0,Q.useState)(null);(0,Q.useEffect)(()=>{if(!e.length){m&&h(``);return}e.some(e=>e.network&&e.network===m)||h(e[0]?.network??``)},[e,m]);async function C(){await r.invalidateQueries({queryKey:[`get`,`/admin/api/v1/wallets`]})}async function te(){if(!y?.row.id)return;let e=Number(y.row.id);y.action===`delete`?(await a.mutateAsync({params:{path:{id:e}}}),G.success(l())):(y.action===`enable`||y.action===`disable`)&&(await o.mutateAsync({params:{path:{id:e}},body:{status:y.action===`enable`?1:2}}),G.success(S())),await C(),b(null)}async function w(e,t){if(e===`edit`){v(t),d(!0);return}if(e===`enable`||e===`disable`){if(!t.id)return;await o.mutateAsync({params:{path:{id:Number(t.id)}},body:{status:e===`enable`?1:2}}),G.success(S()),await C();return}b({action:e,row:t})}async function T(){if(!m){G.error(Ce());return}let e=g.split(/\r?\n/).map(e=>e.trim()).filter(Boolean);if(!e.length){G.error(c());return}let t=(await s.mutateAsync({body:{addresses:e,network:m}})).data??[],r=t.filter(e=>e.ok).length,i=t.find(e=>!e.ok);i?G.error(we({error:i.error_code?n(i.error_code):i.error??``,success:String(r),total:String(e.length)})):G.success(x({success:String(r),total:String(e.length)})),p(!1),_(``),await C()}return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Qe,{fixed:!0}),(0,$.jsxs)($e,{className:`flex flex-1 flex-col gap-4 sm:gap-6`,children:[(0,$.jsx)(lt,{actions:(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(A,{onClick:()=>p(!0),variant:`outline`,children:[(0,$.jsx)(Je,{className:`mr-2 h-4 w-4`}),ie()]}),(0,$.jsxs)(A,{onClick:()=>{v(null),d(!0)},children:[(0,$.jsx)(tt,{className:`mr-2 h-4 w-4`}),Te()]})]}),description:Se(),title:ne()}),(0,$.jsx)(_t,{data:i.data?.data??[],isLoading:i.isLoading,onAction:w,onRefresh:()=>i.refetch()})]}),(0,$.jsx)(mt,{currentRow:ee,onOpenChange:d,onSuccess:()=>i.refetch(),open:u}),y&&(0,$.jsx)(Ae,{confirmText:y.action===`delete`?k():ce(),desc:(0,$.jsx)(`span`,{children:fe({address:String(y.row.address),action:y.action})}),destructive:y.action===`delete`,handleConfirm:te,onOpenChange:()=>b(null),open:!0,title:y.action===`delete`?he():se()}),(0,$.jsx)(W,{onOpenChange:p,open:f,children:(0,$.jsxs)(H,{children:[(0,$.jsxs)(V,{children:[(0,$.jsx)(U,{children:ae()}),(0,$.jsx)(B,{children:xe()})]}),(0,$.jsxs)(`div`,{className:`space-y-4`,children:[(0,$.jsxs)(`div`,{className:`space-y-2`,children:[(0,$.jsx)(M,{children:de()}),(0,$.jsxs)(L,{onValueChange:h,value:m,children:[(0,$.jsx)(P,{children:(0,$.jsx)(N,{placeholder:ve()})}),(0,$.jsx)(F,{children:e.some(e=>e.network)?e.filter(e=>!!e.network).map(e=>(0,$.jsx)(I,{value:e.network,children:e.display_name??e.network??me()},e.network)):(0,$.jsx)(`div`,{className:`px-2 py-1.5 text-muted-foreground text-sm`,children:Ce()})})]})]}),(0,$.jsxs)(`div`,{className:`space-y-2`,children:[(0,$.jsx)(M,{children:re()}),(0,$.jsx)(ut,{className:`min-h-40`,onChange:e=>_(e.target.value),placeholder:`TAddr001 +import{r as e}from"./chunk-DECur_0Z.js";import{a as t,o as n}from"./auth-store-8ocF_FHU.js";import{t as r}from"./router-xxaOxfVd.js";import{t as i}from"./react-CO2uhaBc.js";import{$o as a,Ao as o,Bo as s,Cs as c,Es as l,Fo as u,Go as d,Ho as f,Io as p,Jo as m,Ko as h,Lo as g,Mo as _,No as ee,Po as v,Qo as y,Ro as b,Ss as x,Ts as S,Uo as C,Vo as te,Wo as w,Xo as T,Yo as E,Zo as D,_s as ne,as as re,bs as ie,cs as O,ds as ae,es as oe,fs as se,gs as k,hs as ce,is as le,jo as ue,ls as de,ms as fe,ns as pe,os as me,ps as he,qo as ge,rs as _e,ss as ve,tm as ye,ts as be,us as xe,vs as Se,ws as Ce,xs as we,ys as Te,zo as Ee}from"./messages-CL4J6BaJ.js";import{r as De}from"./route-gtb8yu3E.js";import{o as Oe}from"./search-provider-CTRbHqNx.js";import{i as ke,t as A}from"./button-NLSeBFht.js";import{t as Ae}from"./confirm-dialog-Crc1Jrzv.js";import{a as je,c as j,l as Me,r as Ne,s as Pe,t as Fe}from"./dropdown-menu-D72UcvWG.js";import{t as M}from"./label-DohxFN8a.js";import{a as N,i as P,n as F,r as I,t as L}from"./select-D2uO5-De.js";import{t as Ie}from"./switch-BST3z-JX.js";import{a as R,c as Le,d as Re,f as ze,l as Be,n as Ve,o as He,r as Ue,s as We,t as Ge,u as Ke}from"./data-table-DC6T69tr.js";import{t as qe}from"./epusdt-DDJlVqbb.js";import{t as Je}from"./download-fYUtNZ3R.js";import{t as Ye}from"./ellipsis-74ly4-Wm.js";import{t as Xe}from"./eye-off-B8hO0oST.js";import{t as Ze}from"./eye-DAKGLydt.js";import{n as Qe,t as $e}from"./main-CTY49s_f.js";import{n as et,t as z}from"./chains-store-CMJvgCLb.js";import{n as tt,t as nt}from"./trash-2-9I8lAjeE.js";import{a as rt,i as B,o as V,r as H,s as U,t as W}from"./dialog-CtyiwzAl.js";import{n as G}from"./dist-Dd-sCJIt.js";import{c as K,s as it}from"./zod-rwFXxHlg.js";import{a as q,c as at,i as J,l as ot,n as Y,o as X,s as Z,t as st}from"./form-C_YekIvK.js";import{t as ct}from"./input-DAqep8ZY.js";import{t as lt}from"./page-header-B7O10aw9.js";import{t as ut}from"./textarea-G_CiBcLa.js";import{t as dt}from"./use-table-url-state-DP0Y4QjR.js";import{t as ft}from"./long-text-COpCfVI1.js";var Q=e(i(),1),$=ye(),pt=it({address:K().min(8,ue()),network:K().min(1,o()),remark:K().max(50).optional()});function mt({open:e,onOpenChange:n,currentRow:r,onSuccess:i}){let{chains:a,loading:o}=z(),c=ot({resolver:at(pt),defaultValues:{address:``,network:``,remark:``}}),l=t.useMutation(`post`,`/admin/api/v1/wallets`),d=t.useMutation(`patch`,`/admin/api/v1/wallets/{id}`),h=(0,Q.useMemo)(()=>a.map(e=>e.network).filter(e=>!!e),[a]);(0,Q.useEffect)(()=>{e&&c.reset({address:r?.address??``,network:r?.network??``,remark:r?.remark??``})},[e,r,c]);function y(e){if(r?.id){d.mutate({params:{path:{id:r.id}},body:{remark:e.remark||void 0}},{onSuccess:()=>{G.success(ee()),n(!1),i?.()}});return}l.mutate({body:{address:e.address,network:e.network,remark:e.remark??``}},{onSuccess:()=>{G.success(_()),n(!1),i?.()}})}let x=l.isPending||d.isPending,S=h.length>0,w=o?C():f(),[T,E]=(0,Q.useState)(!1);return(0,$.jsx)(W,{onOpenChange:n,open:e,children:(0,$.jsxs)(H,{children:[(0,$.jsxs)(V,{children:[(0,$.jsx)(U,{children:r?te():s()}),(0,$.jsx)(B,{children:r?Ee():b()})]}),(0,$.jsx)(st,{...c,children:(0,$.jsxs)(`form`,{className:`space-y-4`,onSubmit:c.handleSubmit(y),children:[(0,$.jsx)(J,{control:c.control,name:`network`,render:({field:e})=>(0,$.jsxs)(q,{children:[(0,$.jsx)(X,{children:O()}),(0,$.jsxs)(L,{disabled:!!r||!S,onValueChange:e.onChange,value:e.value,children:[(0,$.jsx)(Y,{children:(0,$.jsx)(P,{className:`w-full`,children:(0,$.jsx)(N,{placeholder:S?ve():w})})}),(0,$.jsx)(F,{children:S?h.map(e=>(0,$.jsx)(I,{value:e,children:e},e)):(0,$.jsx)(`div`,{className:`px-2 py-1.5 text-muted-foreground text-sm`,children:w})})]}),(0,$.jsx)(Z,{})]})}),(0,$.jsx)(J,{control:c.control,name:`address`,render:({field:e})=>(0,$.jsxs)(q,{children:[(0,$.jsx)(X,{children:re()}),(0,$.jsx)(Y,{children:(0,$.jsxs)(`div`,{className:`relative`,children:[(0,$.jsx)(ct,{...e,className:`pr-10`,disabled:!!r,placeholder:g(),type:T?`text`:`password`}),(0,$.jsx)(`button`,{className:`absolute inset-y-0 right-3 flex items-center text-muted-foreground hover:text-foreground`,onClick:()=>E(e=>!e),type:`button`,children:T?(0,$.jsx)(Xe,{className:`h-4 w-4`}):(0,$.jsx)(Ze,{className:`h-4 w-4`})})]})}),(0,$.jsx)(Z,{})]})}),(0,$.jsx)(J,{control:c.control,name:`remark`,render:({field:e})=>(0,$.jsxs)(q,{children:[(0,$.jsx)(X,{children:m()}),(0,$.jsx)(Y,{children:(0,$.jsx)(ct,{...e,placeholder:p()})}),(0,$.jsx)(Z,{})]})}),(0,$.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,$.jsx)(A,{onClick:()=>n(!1),type:`button`,variant:`outline`,children:le()}),(0,$.jsx)(A,{disabled:x,type:`submit`,children:x?u():v()})]})]})})]})})}function ht(e){return[{id:`status-switch`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:y()}),cell:({row:t})=>(0,$.jsx)(Ie,{checked:t.original.status===1,onCheckedChange:()=>e(t.original.status===1?`disable`:`enable`,t.original)}),enableSorting:!1,enableHiding:!1,meta:{label:y(),skeleton:`switch`,sticky:`left`,th:{className:ke(`rounded-tl-[inherit]`)}}},{accessorKey:`address`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:D()}),cell:({row:e})=>(0,$.jsx)(ft,{className:`font-medium`,children:e.original.address}),enableHiding:!1,meta:{label:D(),skeleton:`long`}},{accessorKey:`network`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:O()}),meta:{label:O(),skeleton:`short`}},{accessorKey:`order_count`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:T()}),meta:{label:T(),skeleton:`id`}},{accessorKey:`source`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:E()}),cell:({row:e})=>e.original.source??`-`,meta:{label:E(),skeleton:`short`}},{accessorKey:`remark`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:m()}),meta:{label:m(),skeleton:`long`}},{accessorKey:`created_at`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:ge()}),cell:({row:e})=>Oe(e.original.created_at),meta:{label:ge(),skeleton:`date`}},{accessorKey:`updated_at`,header:({column:e})=>(0,$.jsx)(R,{column:e,title:h()}),cell:({row:e})=>Oe(e.original.updated_at),meta:{label:h(),skeleton:`date`}},{id:`actions`,enableHiding:!1,meta:{label:d(),skeleton:`action`,sticky:`right`,className:ke(`w-12`)},cell:({row:t})=>(0,$.jsxs)(Fe,{modal:!1,children:[(0,$.jsx)(Me,{asChild:!0,children:(0,$.jsxs)(A,{className:`flex h-8 w-8 p-0 data-[state=open]:bg-muted`,variant:`ghost`,children:[(0,$.jsx)(Ye,{className:`h-4 w-4`}),(0,$.jsx)(`span`,{className:`sr-only`,children:`Open menu`})]})}),(0,$.jsxs)(Ne,{align:`end`,className:`w-40`,children:[(0,$.jsxs)(je,{onClick:()=>e(`edit`,t.original),children:[w(),(0,$.jsx)(j,{children:(0,$.jsx)(et,{size:16})})]}),(0,$.jsx)(Pe,{}),(0,$.jsxs)(je,{onClick:()=>e(`delete`,t.original),variant:`destructive`,children:[k(),(0,$.jsx)(j,{children:(0,$.jsx)(nt,{size:16})})]})]})]})}]}var gt=De(`/_authenticated/addresses/`);function _t({data:e,isLoading:t,onAction:n,onRefresh:r}){let[i,o]=(0,Q.useState)([]),{globalFilter:s,onGlobalFilterChange:c,columnFilters:l,onColumnFiltersChange:u,pagination:d,onPaginationChange:f,ensurePageInRange:p}=dt({search:gt.useSearch(),navigate:gt.useNavigate(),pagination:{defaultPage:1,defaultPageSize:10},globalFilter:{enabled:!0,key:`address`},columnFilters:[{columnId:`status`,searchKey:`status`,type:`array`},{columnId:`network`,searchKey:`network`,type:`array`}]}),m=He({data:e,columns:(0,Q.useMemo)(()=>ht(n),[n]),state:{sorting:i,columnFilters:l,globalFilter:s,pagination:d},onSortingChange:o,onColumnFiltersChange:u,onGlobalFilterChange:c,onPaginationChange:f,globalFilterFn:(e,t,n)=>{let r=String(n).toLowerCase();return(e.original.address??``).toLowerCase().includes(r)||(e.original.remark??``).toLowerCase().includes(r)},getCoreRowModel:We(),getFilteredRowModel:Ke(),getPaginationRowModel:Re(),getSortedRowModel:ze(),getFacetedRowModel:Le(),getFacetedUniqueValues:Be()});(0,Q.useEffect)(()=>{p(m.getPageCount())},[m,p]);let h=[...new Set(e.map(e=>e.network).filter(Boolean))].map(e=>({label:e,value:e}));return(0,$.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,$.jsx)(Ge,{filters:[{columnId:`status`,title:a(),options:[...qe]},{columnId:`network`,title:O(),options:h}],onRefresh:r,searchPlaceholder:be(),table:m}),(0,$.jsx)(Ue,{className:`min-w-[900px]`,emptyText:oe(),loading:t,table:m}),(0,$.jsx)(Ve,{className:`mt-auto`,table:m})]})}function vt(){let{chains:e}=z(),i=t.useQuery(`get`,`/admin/api/v1/wallets`),a=t.useMutation(`delete`,`/admin/api/v1/wallets/{id}`),o=t.useMutation(`post`,`/admin/api/v1/wallets/{id}/status`),s=t.useMutation(`post`,`/admin/api/v1/wallets/batch-import`),[u,d]=(0,Q.useState)(!1),[f,p]=(0,Q.useState)(!1),[m,h]=(0,Q.useState)(``),[g,_]=(0,Q.useState)(``),[ee,v]=(0,Q.useState)(null),[y,b]=(0,Q.useState)(null);(0,Q.useEffect)(()=>{if(!e.length){m&&h(``);return}e.some(e=>e.network&&e.network===m)||h(e[0]?.network??``)},[e,m]);async function C(){await r.invalidateQueries({queryKey:[`get`,`/admin/api/v1/wallets`]})}async function te(){if(!y?.row.id)return;let e=Number(y.row.id);y.action===`delete`?(await a.mutateAsync({params:{path:{id:e}}}),G.success(l())):(y.action===`enable`||y.action===`disable`)&&(await o.mutateAsync({params:{path:{id:e}},body:{status:y.action===`enable`?1:2}}),G.success(S())),await C(),b(null)}async function w(e,t){if(e===`edit`){v(t),d(!0);return}if(e===`enable`||e===`disable`){if(!t.id)return;await o.mutateAsync({params:{path:{id:Number(t.id)}},body:{status:e===`enable`?1:2}}),G.success(S()),await C();return}b({action:e,row:t})}async function T(){if(!m){G.error(Ce());return}let e=g.split(/\r?\n/).map(e=>e.trim()).filter(Boolean);if(!e.length){G.error(c());return}let t=(await s.mutateAsync({body:{addresses:e,network:m}})).data??[],r=t.filter(e=>e.ok).length,i=t.find(e=>!e.ok);i?G.error(we({error:i.error_code?n(i.error_code):i.error??``,success:String(r),total:String(e.length)})):G.success(x({success:String(r),total:String(e.length)})),p(!1),_(``),await C()}return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Qe,{fixed:!0}),(0,$.jsxs)($e,{className:`flex flex-1 flex-col gap-4 sm:gap-6`,children:[(0,$.jsx)(lt,{actions:(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(A,{onClick:()=>p(!0),variant:`outline`,children:[(0,$.jsx)(Je,{className:`mr-2 h-4 w-4`}),ie()]}),(0,$.jsxs)(A,{onClick:()=>{v(null),d(!0)},children:[(0,$.jsx)(tt,{className:`mr-2 h-4 w-4`}),Te()]})]}),description:Se(),title:ne()}),(0,$.jsx)(_t,{data:i.data?.data??[],isLoading:i.isLoading,onAction:w,onRefresh:()=>i.refetch()})]}),(0,$.jsx)(mt,{currentRow:ee,onOpenChange:d,onSuccess:()=>i.refetch(),open:u}),y&&(0,$.jsx)(Ae,{confirmText:y.action===`delete`?k():ce(),desc:(0,$.jsx)(`span`,{children:fe({address:String(y.row.address),action:y.action})}),destructive:y.action===`delete`,handleConfirm:te,onOpenChange:()=>b(null),open:!0,title:y.action===`delete`?he():se()}),(0,$.jsx)(W,{onOpenChange:p,open:f,children:(0,$.jsxs)(H,{children:[(0,$.jsxs)(V,{children:[(0,$.jsx)(U,{children:ae()}),(0,$.jsx)(B,{children:xe()})]}),(0,$.jsxs)(`div`,{className:`space-y-4`,children:[(0,$.jsxs)(`div`,{className:`space-y-2`,children:[(0,$.jsx)(M,{children:de()}),(0,$.jsxs)(L,{onValueChange:h,value:m,children:[(0,$.jsx)(P,{children:(0,$.jsx)(N,{placeholder:ve()})}),(0,$.jsx)(F,{children:e.some(e=>e.network)?e.filter(e=>!!e.network).map(e=>(0,$.jsx)(I,{value:e.network,children:e.display_name??e.network??me()},e.network)):(0,$.jsx)(`div`,{className:`px-2 py-1.5 text-muted-foreground text-sm`,children:Ce()})})]})]}),(0,$.jsxs)(`div`,{className:`space-y-2`,children:[(0,$.jsx)(M,{children:re()}),(0,$.jsx)(ut,{className:`min-h-40`,onChange:e=>_(e.target.value),placeholder:`TAddr001 TAddr002 TAddr003`,value:g})]})]}),(0,$.jsxs)(rt,{children:[(0,$.jsx)(A,{onClick:()=>p(!1),variant:`outline`,children:le()}),(0,$.jsx)(A,{disabled:s.isPending||!e.some(e=>e.network),onClick:T,children:s.isPending?_e():pe()})]})]})})]})}var yt=vt;export{yt as component}; \ No newline at end of file diff --git a/src/www/assets/appearance-Cl8fvRSv.js b/src/www/assets/appearance-vgBRUuwE.js similarity index 88% rename from src/www/assets/appearance-Cl8fvRSv.js rename to src/www/assets/appearance-vgBRUuwE.js index 14a4766..8676ac6 100644 --- a/src/www/assets/appearance-Cl8fvRSv.js +++ b/src/www/assets/appearance-vgBRUuwE.js @@ -1 +1 @@ -import{Cn as e,Sn as t,Up as n,Wp as r,_n as i,bn as a,tm as o,vn as s,xn as c,yn as l}from"./messages-BOatyqUm.js";import{i as u,n as d,t as f}from"./button-C_NDYaz8.js";import{n as p,r as m}from"./font-provider-BPsIRWbb.js";import{n as h}from"./theme-provider-BREWrHp_.js";import{t as g}from"./chevron-down-BB5h1CsX.js";import{n as _,t as v}from"./radio-group-D2rceepu.js";import{r as y,s as b}from"./zod-rwFXxHlg.js";import{a as x,c as S,i as C,l as w,n as T,o as E,r as D,s as O,t as k}from"./form-KfFEakes.js";import{t as A}from"./page-header-GTtyZFBB.js";import{t as j}from"./show-submitted-data-BqZb-_Pf.js";var M=o(),N=b({theme:y([`light`,`dark`]),font:y(m)});function P(){let{font:e,setFont:t}=p(),{theme:o,setTheme:y}=h(),b={theme:o,font:e},A=w({resolver:S(N),defaultValues:b});function P(n){n.font!==e&&t(n.font),n.theme!==o&&y(n.theme),j(n)}return(0,M.jsx)(k,{...A,children:(0,M.jsxs)(`form`,{className:`space-y-8`,onSubmit:A.handleSubmit(P),children:[(0,M.jsx)(C,{control:A.control,name:`font`,render:({field:e})=>(0,M.jsxs)(x,{children:[(0,M.jsx)(E,{children:c()}),(0,M.jsxs)(`div`,{className:`relative w-max`,children:[(0,M.jsx)(T,{children:(0,M.jsx)(`select`,{className:u(d({variant:`outline`}),`w-50 appearance-none font-normal capitalize`,`dark:bg-background dark:hover:bg-background`),...e,children:m.map(e=>(0,M.jsx)(`option`,{value:e,children:e},e))})}),(0,M.jsx)(g,{className:`absolute inset-e-3 top-2.5 h-4 w-4 opacity-50`})]}),(0,M.jsx)(D,{className:`font-manrope`,children:a()}),(0,M.jsx)(O,{})]})}),(0,M.jsx)(C,{control:A.control,name:`theme`,render:({field:e})=>(0,M.jsxs)(x,{children:[(0,M.jsx)(E,{children:l()}),(0,M.jsx)(D,{children:s()}),(0,M.jsx)(O,{}),(0,M.jsxs)(v,{className:`grid max-w-md grid-cols-2 gap-8 pt-2`,defaultValue:e.value,onValueChange:e.onChange,children:[(0,M.jsx)(x,{children:(0,M.jsxs)(E,{className:`[&:has([data-state=checked])>div]:border-primary`,children:[(0,M.jsx)(T,{children:(0,M.jsx)(_,{className:`sr-only`,value:`light`})}),(0,M.jsx)(`div`,{className:`items-center rounded-md border-2 border-muted p-1 hover:border-accent`,children:(0,M.jsxs)(`div`,{className:`space-y-2 rounded-sm bg-[#ecedef] p-2`,children:[(0,M.jsxs)(`div`,{className:`space-y-2 rounded-md bg-white p-2 shadow-xs`,children:[(0,M.jsx)(`div`,{className:`h-2 w-20 rounded-lg bg-[#ecedef]`}),(0,M.jsx)(`div`,{className:`h-2 w-25 rounded-lg bg-[#ecedef]`})]}),(0,M.jsxs)(`div`,{className:`flex items-center space-x-2 rounded-md bg-white p-2 shadow-xs`,children:[(0,M.jsx)(`div`,{className:`h-4 w-4 rounded-full bg-[#ecedef]`}),(0,M.jsx)(`div`,{className:`h-2 w-25 rounded-lg bg-[#ecedef]`})]}),(0,M.jsxs)(`div`,{className:`flex items-center space-x-2 rounded-md bg-white p-2 shadow-xs`,children:[(0,M.jsx)(`div`,{className:`h-4 w-4 rounded-full bg-[#ecedef]`}),(0,M.jsx)(`div`,{className:`h-2 w-25 rounded-lg bg-[#ecedef]`})]})]})}),(0,M.jsx)(`span`,{className:`block w-full p-2 text-center font-normal`,children:r()})]})}),(0,M.jsx)(x,{children:(0,M.jsxs)(E,{className:`[&:has([data-state=checked])>div]:border-primary`,children:[(0,M.jsx)(T,{children:(0,M.jsx)(_,{className:`sr-only`,value:`dark`})}),(0,M.jsx)(`div`,{className:`items-center rounded-md border-2 border-muted bg-popover p-1 hover:bg-accent hover:text-accent-foreground`,children:(0,M.jsxs)(`div`,{className:`space-y-2 rounded-sm bg-slate-950 p-2`,children:[(0,M.jsxs)(`div`,{className:`space-y-2 rounded-md bg-slate-800 p-2 shadow-xs`,children:[(0,M.jsx)(`div`,{className:`h-2 w-20 rounded-lg bg-slate-400`}),(0,M.jsx)(`div`,{className:`h-2 w-25 rounded-lg bg-slate-400`})]}),(0,M.jsxs)(`div`,{className:`flex items-center space-x-2 rounded-md bg-slate-800 p-2 shadow-xs`,children:[(0,M.jsx)(`div`,{className:`h-4 w-4 rounded-full bg-slate-400`}),(0,M.jsx)(`div`,{className:`h-2 w-25 rounded-lg bg-slate-400`})]}),(0,M.jsxs)(`div`,{className:`flex items-center space-x-2 rounded-md bg-slate-800 p-2 shadow-xs`,children:[(0,M.jsx)(`div`,{className:`h-4 w-4 rounded-full bg-slate-400`}),(0,M.jsx)(`div`,{className:`h-2 w-25 rounded-lg bg-slate-400`})]})]})}),(0,M.jsx)(`span`,{className:`block w-full p-2 text-center font-normal`,children:n()})]})})]})]})}),(0,M.jsx)(f,{type:`submit`,children:i()})]})})}function F(){return(0,M.jsx)(A,{description:t(),title:e(),variant:`section`,children:(0,M.jsx)(P,{})})}var I=F;export{I as component}; \ No newline at end of file +import{Cn as e,Sn as t,Up as n,Wp as r,_n as i,bn as a,tm as o,vn as s,xn as c,yn as l}from"./messages-CL4J6BaJ.js";import{i as u,n as d,t as f}from"./button-NLSeBFht.js";import{n as p,r as m}from"./font-provider-C4_iupSb.js";import{n as h}from"./theme-provider-ixHkEVGI.js";import{t as g}from"./chevron-down-BB5h1CsX.js";import{n as _,t as v}from"./radio-group-yaBPIkVa.js";import{r as y,s as b}from"./zod-rwFXxHlg.js";import{a as x,c as S,i as C,l as w,n as T,o as E,r as D,s as O,t as k}from"./form-C_YekIvK.js";import{t as A}from"./page-header-B7O10aw9.js";import{t as j}from"./show-submitted-data-DwaVTW9K.js";var M=o(),N=b({theme:y([`light`,`dark`]),font:y(m)});function P(){let{font:e,setFont:t}=p(),{theme:o,setTheme:y}=h(),b={theme:o,font:e},A=w({resolver:S(N),defaultValues:b});function P(n){n.font!==e&&t(n.font),n.theme!==o&&y(n.theme),j(n)}return(0,M.jsx)(k,{...A,children:(0,M.jsxs)(`form`,{className:`space-y-8`,onSubmit:A.handleSubmit(P),children:[(0,M.jsx)(C,{control:A.control,name:`font`,render:({field:e})=>(0,M.jsxs)(x,{children:[(0,M.jsx)(E,{children:c()}),(0,M.jsxs)(`div`,{className:`relative w-max`,children:[(0,M.jsx)(T,{children:(0,M.jsx)(`select`,{className:u(d({variant:`outline`}),`w-50 appearance-none font-normal capitalize`,`dark:bg-background dark:hover:bg-background`),...e,children:m.map(e=>(0,M.jsx)(`option`,{value:e,children:e},e))})}),(0,M.jsx)(g,{className:`absolute inset-e-3 top-2.5 h-4 w-4 opacity-50`})]}),(0,M.jsx)(D,{className:`font-manrope`,children:a()}),(0,M.jsx)(O,{})]})}),(0,M.jsx)(C,{control:A.control,name:`theme`,render:({field:e})=>(0,M.jsxs)(x,{children:[(0,M.jsx)(E,{children:l()}),(0,M.jsx)(D,{children:s()}),(0,M.jsx)(O,{}),(0,M.jsxs)(v,{className:`grid max-w-md grid-cols-2 gap-8 pt-2`,defaultValue:e.value,onValueChange:e.onChange,children:[(0,M.jsx)(x,{children:(0,M.jsxs)(E,{className:`[&:has([data-state=checked])>div]:border-primary`,children:[(0,M.jsx)(T,{children:(0,M.jsx)(_,{className:`sr-only`,value:`light`})}),(0,M.jsx)(`div`,{className:`items-center rounded-md border-2 border-muted p-1 hover:border-accent`,children:(0,M.jsxs)(`div`,{className:`space-y-2 rounded-sm bg-[#ecedef] p-2`,children:[(0,M.jsxs)(`div`,{className:`space-y-2 rounded-md bg-white p-2 shadow-xs`,children:[(0,M.jsx)(`div`,{className:`h-2 w-20 rounded-lg bg-[#ecedef]`}),(0,M.jsx)(`div`,{className:`h-2 w-25 rounded-lg bg-[#ecedef]`})]}),(0,M.jsxs)(`div`,{className:`flex items-center space-x-2 rounded-md bg-white p-2 shadow-xs`,children:[(0,M.jsx)(`div`,{className:`h-4 w-4 rounded-full bg-[#ecedef]`}),(0,M.jsx)(`div`,{className:`h-2 w-25 rounded-lg bg-[#ecedef]`})]}),(0,M.jsxs)(`div`,{className:`flex items-center space-x-2 rounded-md bg-white p-2 shadow-xs`,children:[(0,M.jsx)(`div`,{className:`h-4 w-4 rounded-full bg-[#ecedef]`}),(0,M.jsx)(`div`,{className:`h-2 w-25 rounded-lg bg-[#ecedef]`})]})]})}),(0,M.jsx)(`span`,{className:`block w-full p-2 text-center font-normal`,children:r()})]})}),(0,M.jsx)(x,{children:(0,M.jsxs)(E,{className:`[&:has([data-state=checked])>div]:border-primary`,children:[(0,M.jsx)(T,{children:(0,M.jsx)(_,{className:`sr-only`,value:`dark`})}),(0,M.jsx)(`div`,{className:`items-center rounded-md border-2 border-muted bg-popover p-1 hover:bg-accent hover:text-accent-foreground`,children:(0,M.jsxs)(`div`,{className:`space-y-2 rounded-sm bg-slate-950 p-2`,children:[(0,M.jsxs)(`div`,{className:`space-y-2 rounded-md bg-slate-800 p-2 shadow-xs`,children:[(0,M.jsx)(`div`,{className:`h-2 w-20 rounded-lg bg-slate-400`}),(0,M.jsx)(`div`,{className:`h-2 w-25 rounded-lg bg-slate-400`})]}),(0,M.jsxs)(`div`,{className:`flex items-center space-x-2 rounded-md bg-slate-800 p-2 shadow-xs`,children:[(0,M.jsx)(`div`,{className:`h-4 w-4 rounded-full bg-slate-400`}),(0,M.jsx)(`div`,{className:`h-2 w-25 rounded-lg bg-slate-400`})]}),(0,M.jsxs)(`div`,{className:`flex items-center space-x-2 rounded-md bg-slate-800 p-2 shadow-xs`,children:[(0,M.jsx)(`div`,{className:`h-4 w-4 rounded-full bg-slate-400`}),(0,M.jsx)(`div`,{className:`h-2 w-25 rounded-lg bg-slate-400`})]})]})}),(0,M.jsx)(`span`,{className:`block w-full p-2 text-center font-normal`,children:n()})]})})]})]})}),(0,M.jsx)(f,{type:`submit`,children:i()})]})})}function F(){return(0,M.jsx)(A,{description:t(),title:e(),variant:`section`,children:(0,M.jsx)(P,{})})}var I=F;export{I as component}; \ No newline at end of file diff --git a/src/www/assets/auth-animation-context-CmPA3sF3.js b/src/www/assets/auth-animation-context-Cac9Wtyr.js similarity index 89% rename from src/www/assets/auth-animation-context-CmPA3sF3.js rename to src/www/assets/auth-animation-context-Cac9Wtyr.js index 27b8703..13b6812 100644 --- a/src/www/assets/auth-animation-context-CmPA3sF3.js +++ b/src/www/assets/auth-animation-context-Cac9Wtyr.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";var r=e(t(),1),i=n(),a=(0,r.createContext)({isTyping:!1,passwordLength:0,setIsTyping:()=>void 0,setPasswordLength:()=>void 0,setShowPassword:()=>void 0,showPassword:!1});function o({children:e}){let[t,n]=(0,r.useState)(!1),[o,s]=(0,r.useState)(!1),[c,l]=(0,r.useState)(0);return(0,i.jsx)(a.Provider,{value:{isTyping:t,passwordLength:c,setIsTyping:n,setPasswordLength:l,setShowPassword:s,showPassword:o},children:e})}function s(){return(0,r.useContext)(a)}export{s as n,o as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";var r=e(t(),1),i=n(),a=(0,r.createContext)({isTyping:!1,passwordLength:0,setIsTyping:()=>void 0,setPasswordLength:()=>void 0,setShowPassword:()=>void 0,showPassword:!1});function o({children:e}){let[t,n]=(0,r.useState)(!1),[o,s]=(0,r.useState)(!1),[c,l]=(0,r.useState)(0);return(0,i.jsx)(a.Provider,{value:{isTyping:t,passwordLength:c,setIsTyping:n,setPasswordLength:l,setShowPassword:s,showPassword:o},children:e})}function s(){return(0,r.useContext)(a)}export{s as n,o as t}; \ No newline at end of file diff --git a/src/www/assets/auth-store-De4Y7PFV.js b/src/www/assets/auth-store-8ocF_FHU.js similarity index 99% rename from src/www/assets/auth-store-De4Y7PFV.js rename to src/www/assets/auth-store-8ocF_FHU.js index 40f599c..0099dcf 100644 --- a/src/www/assets/auth-store-De4Y7PFV.js +++ b/src/www/assets/auth-store-8ocF_FHU.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{$d as n,Bd as r,Cf as i,Df as a,Ef as o,Fd as s,Gd as c,Hd as l,Id as u,Jd as d,Kd as f,Ld as p,Md as m,Nd as h,Pd as g,Qd as _,Rd as v,Sf as y,Tf as b,Ud as x,Vd as ee,Wd as S,Xd as C,Yd as w,Zd as te,_f as T,af as ne,bf as E,cf as re,df as D,ef as O,ff as k,gf as A,hf as ie,if as j,lf as ae,mf as oe,nf as se,of as ce,pf as le,qd as ue,rf as de,sf as fe,tf as pe,tm as me,uf as he,vf as ge,wf as _e,xf as ve,yf as ye,zd as be}from"./messages-BOatyqUm.js";import{t as xe}from"./with-selector-DBfssCrY.js";import{n as Se,r as Ce,t as we}from"./cookies-BzZOQYPw.js";import{n as Te}from"./dist-JOUh6qvR.js";var M=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ee=new class extends M{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},De={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},N=new class{#e=De;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function Oe(e){setTimeout(e,0)}var ke=typeof window>`u`||`Deno`in globalThis;function P(){}function Ae(e,t){return typeof e==`function`?e(t):e}function je(e){return typeof e==`number`&&e>=0&&e!==1/0}function Me(e,t){return Math.max(e+(t||0)-Date.now(),0)}function F(e,t){return typeof e==`function`?e(t):e}function I(e,t){return typeof e==`function`?e(t):e}function Ne(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Fe(o,t.options))return!1}else if(!Ie(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function Pe(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(L(t.options.mutationKey)!==L(a))return!1}else if(!Ie(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Fe(e,t){return(t?.queryKeyHashFn||L)(e)}function L(e){return JSON.stringify(e,(e,t)=>Be(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Ie(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>Ie(e[n],t[n])):!1}var Le=Object.prototype.hasOwnProperty;function Re(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=ze(e)&&ze(t);if(!r&&!(Be(e)&&Be(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l{N.setTimeout(t,e)})}function Ue(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:Re(e,t)}function We(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Ge(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ke=Symbol();function qe(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Ke?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Je(e,t){return typeof e==`function`?e(...t):!!e}function Ye(e,t,n){let r=!1,i;return Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var z=(()=>{let e=()=>ke;return{isServer(){return e()},setIsServer(t){e=t}}})();function Xe(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var Ze=Oe;function Qe(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Ze,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var B=Qe(),$e=new class extends M{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function et(e){return Math.min(1e3*2**e,3e4)}function tt(e){return(e??`online`)===`online`?$e.isOnline():!0}var nt=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function rt(e){let t=!1,n=0,r,i=Xe(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new nt(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>Ee.isFocused()&&(e.networkMode===`always`||$e.isOnline())&&e.canRun(),u=()=>tt(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(z.isServer()?0:3),o=e.retryDelay??et,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&nl()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var it=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),je(this.gcTime)&&(this.#e=N.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(z.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(N.clearTimeout(this.#e),this.#e=void 0)}},at=class extends it{#e;#t;#n;#r;#i;#a;#o;constructor(e){super(),this.#o=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=ct(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=ct(this.options);e.data!==void 0&&(this.setState(st(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#n.remove(this)}setData(e,t){let n=Ue(this.state.data,e,this.options);return this.#c({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#c({type:`setState`,state:e,setStateOptions:t})}cancel(e){let t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(P).catch(P):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>I(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ke||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>F(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!Me(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#i&&(this.#o||this.#s()?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#s(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#c({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#i?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},i=()=>{let e=qe(this.options,t),n=(()=>{let e={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#o=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:i};return r(e),e})();this.options.behavior?.onFetch(a,this),this.#t=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#c({type:`fetch`,meta:a.fetchOptions?.meta}),this.#i=rt({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof nt&&e.revert&&this.setState({...this.#t,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#c({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#c({type:`pause`})},onContinue:()=>{this.#c({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#i.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#n.config.onSuccess?.(e,this),this.#n.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof nt){if(e.silent)return this.#i.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#c({type:`error`,error:e}),this.#n.config.onError?.(e,this),this.#n.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#c(e){this.state=(t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...ot(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...st(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}})(this.state),B.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#n.notify({query:this,type:`updated`,action:e})})}};function ot(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:tt(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function st(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function ct(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var lt=class extends M{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=Xe(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),dt(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ft(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ft(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof I(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!R(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&pt(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||I(this.options.enabled,this.#t)!==I(t.enabled,this.#t)||F(this.options.staleTime,this.#t)!==F(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||I(this.options.enabled,this.#t)!==I(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return ht(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(P)),t}#g(){this.#b();let e=F(this.options.staleTime,this.#t);if(z.isServer()||this.#r.isStale||!je(e))return;let t=Me(this.#r.dataUpdatedAt,e)+1;this.#d=N.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(z.isServer()||I(this.options.enabled,this.#t)===!1||!je(this.#p)||this.#p===0)&&(this.#f=N.setInterval(()=>{(this.options.refetchIntervalInBackground||Ee.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(N.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(N.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&dt(e,t),o=i&&pt(e,n,t,r);(a||o)&&(l={...l,...ot(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=Ue(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=Ue(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:mt(e,t),refetch:this.refetch,promise:this.#o,isEnabled:I(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=x.data!==void 0,r=x.status===`error`&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},a=()=>{i(this.#o=x.promise=Xe())},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||x.data!==o.value)&&a();break;case`rejected`:(!r||x.error!==o.reason)&&a();break}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!R(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){B.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function ut(e,t){return I(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&t.retryOnMount===!1)}function dt(e,t){return ut(e,t)||e.state.data!==void 0&&ft(e,t,t.refetchOnMount)}function ft(e,t,n){if(I(t.enabled,e)!==!1&&F(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&mt(e,t)}return!1}function pt(e,t,n,r){return(e!==t||I(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&mt(e,n)}function mt(e,t){return I(t.enabled,e)!==!1&&e.isStaleByTime(F(t.staleTime,e))}function ht(e,t){return!R(e.getCurrentResult(),t)}function gt(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Ye(e,()=>t.signal,()=>n=!0)},u=qe(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject();if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?Ge:We;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?vt:_t,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:_t(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(ct.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function _t(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function vt(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function yt(e,t){return t?_t(e,t)!=null:!1}function bt(e,t){return!t||!e.getPreviousPageParam?!1:vt(e,t)!=null}var xt=class extends lt{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:gt()})}getOptimisticResult(e){return e.behavior=gt(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`forward`}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`backward`}}})}createResult(e,t){let{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:o,isRefetchError:s}=r,c=n.fetchMeta?.fetchMore?.direction,l=o&&c===`forward`,u=i&&c===`forward`,d=o&&c===`backward`,f=i&&c===`backward`;return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:yt(t,n.data),hasPreviousPage:bt(t,n.data),isFetchNextPageError:l,isFetchingNextPage:u,isFetchPreviousPageError:d,isFetchingPreviousPage:f,isRefetchError:s&&!l&&!d,isRefetching:a&&!u&&!f}}},St=class extends it{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Ct(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=rt({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){this.state=(t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}})(this.state),B.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Ct(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var wt=class extends M{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),R(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&L(t.mutationKey)!==L(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??Ct();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){B.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},V=e(t(),1),Tt=me(),Et=V.createContext(void 0),Dt=e=>{let t=V.useContext(Et);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Ot=({client:e,children:t})=>(V.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,Tt.jsx)(Et.Provider,{value:e,children:t})),kt=V.createContext(!1),At=()=>V.useContext(kt);kt.Provider;function jt(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Mt=V.createContext(jt()),Nt=()=>V.useContext(Mt),Pt=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?Je(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Ft=e=>{V.useEffect(()=>{e.clearReset()},[e])},It=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||Je(n,[e.error,r])),Lt=(e,t)=>t.state.data===void 0,Rt=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},zt=(e,t)=>e.isLoading&&e.isFetching&&!t,Bt=(e,t)=>e?.suspense&&t.isPending,Vt=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Ht(e,t,n){let r=At(),i=Nt(),a=Dt(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash);o._optimisticResults=r?`isRestoring`:`optimistic`,Rt(o),Pt(o,i,s),Ft(i);let c=!a.getQueryCache().get(o.queryHash),[l]=V.useState(()=>new t(a,o)),u=l.getOptimisticResult(o),d=!r&&e.subscribed!==!1;if(V.useSyncExternalStore(V.useCallback(e=>{let t=d?l.subscribe(B.batchCalls(e)):P;return l.updateResult(),t},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),V.useEffect(()=>{l.setOptions(o)},[o,l]),Bt(o,u))throw Vt(o,l,i);if(It({result:u,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw u.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,u),o.experimental_prefetchInRender&&!z.isServer()&&zt(u,r)&&(c?Vt(o,l,i):s?.promise)?.catch(P).finally(()=>{l.updateResult()}),o.notifyOnChangeProps?u:l.trackResult(u)}function Ut(e,t){return Ht(e,lt,t)}function Wt(e,t){return Ht({...e,enabled:!0,suspense:!0,throwOnError:Lt,placeholderData:void 0},lt,t)}function Gt(e,t){let n=Dt(t),[r]=V.useState(()=>new wt(n,e));V.useEffect(()=>{r.setOptions(e)},[r,e]);let i=V.useSyncExternalStore(V.useCallback(e=>r.subscribe(B.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=V.useCallback((e,t)=>{r.mutate(e,t).catch(P)},[r]);if(i.error&&Je(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function Kt(e,t){return Ht(e,xt,t)}var qt=xe();function Jt(e,t){return e===t}function Yt(e,t,n=Jt){let r=(0,V.useCallback)(t=>{if(!e)return()=>{};let{unsubscribe:n}=e.subscribe(t);return n},[e]),i=(0,V.useCallback)(()=>e?.get(),[e]);return(0,qt.useSyncExternalStoreWithSelector)(r,i,i,t,n)}var H=function(e){return e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e}({});function Xt({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&(H.RecursedCheck|H.Recursed|H.Dirty|H.Pending)?a&(H.RecursedCheck|H.Recursed)?a&H.RecursedCheck?!(a&(H.Dirty|H.Pending))&&c(e,i)?(i.flags=a|(H.Recursed|H.Pending),a&=H.Mutable):a=H.None:i.flags=a&~H.Recursed|H.Pending:a=H.None:i.flags=a|H.Pending,a&H.Watching&&t(i),a&H.Mutable){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&H.Dirty)a=!0;else if((c&(H.Mutable|H.Dirty))===(H.Mutable|H.Dirty)){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&(H.Mutable|H.Pending))===(H.Mutable|H.Pending)){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=~H.Pending;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&(H.Pending|H.Dirty))===H.Pending&&(n.flags=r|H.Dirty,(r&(H.Watching|H.RecursedCheck))===H.Watching&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function Zt(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var Qt=[],U=0,{link:$t,unlink:en,propagate:tn,checkDirty:nn,shallowPropagate:rn}=Xt({update(e){return e._update()},notify(e){Qt[an++]=e,e.flags&=~H.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=H.Mutable|H.Dirty,K(e))}}),W=0,an=0,G,on=0;function K(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=en(n,e)}function sn(){if(!(on>0)){for(;W{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=G,o=t?.compare??Object.is;if(n)G=i,++U,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=H.Mutable|H.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{G=a,n&&(i.flags&=~H.RecursedCheck),K(i)}}};return n?(i.flags=H.Mutable|H.Dirty,i.get=function(){let e=i.flags;if(e&H.Dirty||e&H.Pending&&nn(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&rn(e)}}else e&H.Pending&&(i.flags=e&~H.Pending);return G!==void 0&&$t(i,G,U),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(tn(e),rn(e),sn())}},i}function ln(e){let t=()=>{let t=G;G=n,++U,n.depsTail=void 0,n.flags=H.Watching|H.RecursedCheck;try{return e()}finally{G=t,n.flags&=~H.RecursedCheck,K(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:H.Watching|H.RecursedCheck,notify(){let e=this.flags;e&H.Dirty||e&H.Pending&&nn(this.deps,this)?t():this.flags=H.Watching},stop(){this.flags=H.None,this.depsTail=void 0,K(this)}};return t(),n}var un=class{constructor(e){this.atom=cn(e)}setState(e){this.atom.set(e)}get state(){return this.atom.get()}get(){return this.state}subscribe(e){return this.atom.subscribe(Zt(e))}},q=`access_token`,dn=`auth_user`,fn=`sidebar_state`,pn=3600*24*7,mn=/\{[^{}]+\}/g,hn=()=>typeof process==`object`&&Number.parseInt(process?.versions?.node?.substring(0,2))>=18&&process.versions.undici;function gn(){return Math.random().toString(36).slice(2,11)}function _n(e){let{baseUrl:t=``,Request:n=globalThis.Request,fetch:r=globalThis.fetch,querySerializer:i,bodySerializer:a,pathSerializer:o,headers:s,requestInitExt:c=void 0,...l}={...e};c=hn()?c:void 0,t=Tn(t);let u=[];async function d(e,d){let{baseUrl:f,fetch:p=r,Request:m=n,headers:h,params:g={},parseAs:_=`json`,querySerializer:v,bodySerializer:y=a??Sn,pathSerializer:b,body:x,middleware:ee=[],...S}=d||{},C=t;f&&(C=Tn(f)??t);let w=typeof i==`function`?i:bn(i);v&&(w=typeof v==`function`?v:bn({...typeof i==`object`?i:{},...v}));let te=b||o||xn,T=x===void 0?void 0:y(x,wn(s,h,g.header)),ne=wn(T===void 0||T instanceof FormData?{}:{"Content-Type":`application/json`},s,h,g.header),E=[...u,...ee],re={redirect:`follow`,...l,...S,body:T,headers:ne},D,O,k=new m(Cn(e,{baseUrl:C,params:g,querySerializer:w,pathSerializer:te}),re),A;for(let e in S)e in k||(k[e]=S[e]);if(E.length){D=gn(),O=Object.freeze({baseUrl:C,fetch:p,parseAs:_,querySerializer:w,bodySerializer:y,pathSerializer:te});for(let t of E)if(t&&typeof t==`object`&&typeof t.onRequest==`function`){let n=await t.onRequest({request:k,schemaPath:e,params:g,options:O,id:D});if(n)if(n instanceof m)k=n;else if(n instanceof Response){A=n;break}else throw Error(`onRequest: must return new Request() or Response() when modifying the request`)}}if(!A){try{A=await p(k,c)}catch(t){let n=t;if(E.length)for(let t=E.length-1;t>=0;t--){let r=E[t];if(r&&typeof r==`object`&&typeof r.onError==`function`){let t=await r.onError({request:k,error:n,schemaPath:e,params:g,options:O,id:D});if(t){if(t instanceof Response){n=void 0,A=t;break}if(t instanceof Error){n=t;continue}throw Error(`onError: must return new Response() or instance of Error`)}}}if(n)throw n}if(E.length)for(let t=E.length-1;t>=0;t--){let n=E[t];if(n&&typeof n==`object`&&typeof n.onResponse==`function`){let t=await n.onResponse({request:k,response:A,schemaPath:e,params:g,options:O,id:D});if(t){if(!(t instanceof Response))throw Error(`onResponse: must return new Response() when modifying the response`);A=t}}}}let ie=A.headers.get(`Content-Length`);if(A.status===204||k.method===`HEAD`||ie===`0`&&!A.headers.get(`Transfer-Encoding`)?.includes(`chunked`))return A.ok?{data:void 0,response:A}:{error:void 0,response:A};if(A.ok)return{data:await(async()=>{if(_===`stream`)return A.body;if(_===`json`&&!ie){let e=await A.text();return e?JSON.parse(e):void 0}return await A[_]()})(),response:A};let j=await A.text();try{j=JSON.parse(j)}catch{}return{error:j,response:A}}return{request(e,t,n){return d(t,{...n,method:e.toUpperCase()})},GET(e,t){return d(e,{...t,method:`GET`})},PUT(e,t){return d(e,{...t,method:`PUT`})},POST(e,t){return d(e,{...t,method:`POST`})},DELETE(e,t){return d(e,{...t,method:`DELETE`})},OPTIONS(e,t){return d(e,{...t,method:`OPTIONS`})},HEAD(e,t){return d(e,{...t,method:`HEAD`})},PATCH(e,t){return d(e,{...t,method:`PATCH`})},TRACE(e,t){return d(e,{...t,method:`TRACE`})},use(...e){for(let t of e)if(t){if(typeof t!=`object`||!(`onRequest`in t||`onResponse`in t||`onError`in t))throw Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");u.push(t)}},eject(...e){for(let t of e){let e=u.indexOf(t);e!==-1&&u.splice(e,1)}}}}function J(e,t,n){if(t==null)return``;if(typeof t==`object`)throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${n?.allowReserved===!0?t:encodeURIComponent(t)}`}function vn(e,t,n){if(!t||typeof t!=`object`)return``;let r=[],i={simple:`,`,label:`.`,matrix:`;`}[n.style]||`&`;if(n.style!==`deepObject`&&n.explode===!1){for(let e in t)r.push(e,n.allowReserved===!0?t[e]:encodeURIComponent(t[e]));let i=r.join(`,`);switch(n.style){case`form`:return`${e}=${i}`;case`label`:return`.${i}`;case`matrix`:return`;${e}=${i}`;default:return i}}for(let i in t){let a=n.style===`deepObject`?`${e}[${i}]`:i;r.push(J(a,t[i],n))}let a=r.join(i);return n.style===`label`||n.style===`matrix`?`${i}${a}`:a}function yn(e,t,n){if(!Array.isArray(t))return``;if(n.explode===!1){let r={form:`,`,spaceDelimited:`%20`,pipeDelimited:`|`}[n.style]||`,`,i=(n.allowReserved===!0?t:t.map(e=>encodeURIComponent(e))).join(r);switch(n.style){case`simple`:return i;case`label`:return`.${i}`;case`matrix`:return`;${e}=${i}`;default:return`${e}=${i}`}}let r={simple:`,`,label:`.`,matrix:`;`}[n.style]||`&`,i=[];for(let r of t)n.style===`simple`||n.style===`label`?i.push(n.allowReserved===!0?r:encodeURIComponent(r)):i.push(J(e,r,n));return n.style===`label`||n.style===`matrix`?`${r}${i.join(r)}`:i.join(r)}function bn(e){return function(t){let n=[];if(t&&typeof t==`object`)for(let r in t){let i=t[r];if(i!=null){if(Array.isArray(i)){if(i.length===0)continue;n.push(yn(r,i,{style:`form`,explode:!0,...e?.array,allowReserved:e?.allowReserved||!1}));continue}if(typeof i==`object`){n.push(vn(r,i,{style:`deepObject`,explode:!0,...e?.object,allowReserved:e?.allowReserved||!1}));continue}n.push(J(r,i,e))}}return n.join(`&`)}}function xn(e,t){let n=e;for(let r of e.match(mn)??[]){let e=r.substring(1,r.length-1),i=!1,a=`simple`;if(e.endsWith(`*`)&&(i=!0,e=e.substring(0,e.length-1)),e.startsWith(`.`)?(a=`label`,e=e.substring(1)):e.startsWith(`;`)&&(a=`matrix`,e=e.substring(1)),!t||t[e]===void 0||t[e]===null)continue;let o=t[e];if(Array.isArray(o)){n=n.replace(r,yn(e,o,{style:a,explode:i}));continue}if(typeof o==`object`){n=n.replace(r,vn(e,o,{style:a,explode:i}));continue}if(a===`matrix`){n=n.replace(r,`;${J(e,o)}`);continue}n=n.replace(r,a===`label`?`.${encodeURIComponent(o)}`:encodeURIComponent(o))}return n}function Sn(e,t){return e instanceof FormData?e:t&&(t.get instanceof Function?t.get(`Content-Type`)??t.get(`content-type`):t[`Content-Type`]??t[`content-type`])===`application/x-www-form-urlencoded`?new URLSearchParams(e).toString():JSON.stringify(e)}function Cn(e,t){let n=`${t.baseUrl}${e}`;t.params?.path&&(n=t.pathSerializer(n,t.params.path));let r=t.querySerializer(t.params.query??{});return r.startsWith(`?`)&&(r=r.substring(1)),r&&(n+=`?${r}`),n}function wn(...e){let t=new Headers;for(let n of e){if(!n||typeof n!=`object`)continue;let e=n instanceof Headers?n.entries():Object.entries(n);for(let[n,r]of e)if(r===null)t.delete(n);else if(Array.isArray(r))for(let e of r)t.append(n,e);else r!==void 0&&t.set(n,r)}return t}function Tn(e){return e.endsWith(`/`)?e.substring(0,e.length-1):e}function En(e){let t=async({queryKey:[t,n,r],signal:i})=>{let a=e[t.toUpperCase()],{data:o,error:s,response:c}=await a(n,{signal:i,...r});if(s)throw s;return c.status===204||c.headers.get(`Content-Length`)===`0`?o??null:o},n=(e,n,...[r,i])=>({queryKey:r===void 0?[e,n]:[e,n,r],queryFn:t,...i});return{queryOptions:n,useQuery:(e,t,...[r,i,a])=>Ut(n(e,t,r,i),a),useSuspenseQuery:(e,t,...[r,i,a])=>Wt(n(e,t,r,i),a),useInfiniteQuery:(t,r,i,a,o)=>{let{pageParamName:s=`cursor`,...c}=a,{queryKey:l}=n(t,r,i);return Kt({queryKey:l,queryFn:async({queryKey:[t,n,r],pageParam:i=0,signal:a})=>{let o=e[t.toUpperCase()],{data:c,error:l}=await o(n,{...r,signal:a,params:{...r?.params||{},query:{...r?.params?.query,[s]:i}}});if(l)throw l;return c},...c},o)},useMutation:(t,n,r,i)=>Gt({mutationKey:[t,n],mutationFn:async r=>{let i=e[t.toUpperCase()],{data:a,error:o}=await i(n,r);if(o)throw o;return a},...r},i)}}var Dn={0:h,400:a,401:o,500:m,10001:b,10002:_e,10003:i,10004:y,10005:ve,10006:E,10007:ye,10008:ge,10009:T,10010:A,10011:ie,10012:oe,10013:le,10014:k,10015:D,10016:he,10017:ae,10018:re,10019:fe,10020:ce,10021:ne,10022:j,10023:de,10024:se,10025:pe,10026:O,10027:n,10028:_,10029:te,10030:C,10031:w,10032:d,10033:ue,10034:f,10035:c,10036:S,10037:x,10038:l,10039:ee,10040:r,10041:be,10042:v,10043:p,10044:u,10045:s,10046:g};function Y(e){return Dn[e]?.()??Dn[0]()}var On={onRequest({request:e}){let t=we(q);if(t)try{let n=JSON.parse(t);n&&e.headers.set(`Authorization`,`Bearer ${n}`)}catch{}return e},async onResponse({response:e}){if(e.status===401){Rn();let t=encodeURIComponent(window.location.pathname+window.location.search);return window.location.replace(`/sign-in?redirect=${t}`),e}if(e.status===400)try{let t=await e.clone().json(),n=t.status_code&&Y(t.status_code)||t.message||Y(0);Te.error(n)}catch{Te.error(Y(0))}return e.status>=500&&Te.error(Y(500)),e}},X=_n({baseUrl:`/`});X.use(On);var kn=En(X);function An(e,t){try{return JSON.parse(e)}catch{return t}}function jn(){if(typeof window>`u`)return null;try{return window.localStorage}catch{return null}}function Mn(e){return jn()?.getItem(e)??void 0}function Nn(e,t){jn()?.setItem(e,t)}function Pn(e){jn()?.removeItem(e)}var Z={getToken:()=>An(we(`access_token`)||``,``),getUser:()=>An(Mn(`auth_user`)||``,null),setToken:e=>e?Ce(q,JSON.stringify(e)):Se(q),setUser:e=>e?Nn(dn,JSON.stringify(e)):Pn(dn),clear:()=>{Se(q),Pn(dn)}},Fn=Z.getToken(),Q=new un({accessToken:Fn,user:Fn?Z.getUser():null}),$=null;function In(e){Z.setUser(e),Q.setState(t=>({...t,user:e}))}function Ln(e){let t=Q.state.accessToken;Z.setToken(e);let n=t!==e;n&&(Z.setUser(null),$=null),Q.setState(t=>({...t,accessToken:e,user:n?null:t.user})),e&&zn()}function Rn(){Z.clear(),$=null,Q.setState(()=>({accessToken:``,user:null}))}function zn(){let{user:e,accessToken:t}=Q.state;return e?Promise.resolve(e):t?$||($=X.GET(`/admin/api/v1/auth/me`).then(({data:e})=>{let t=e?.data??null;return t&&In(t),t}).catch(()=>(Rn(),null)).finally(()=>{$=null}),$):Promise.resolve(null)}function Bn(){return Yt(Q,e=>e)}export{M as A,Pe as C,F as D,Ie as E,Ke as O,Fe as S,P as T,at as _,kn as a,Ae as b,q as c,un as d,Yt as f,gt as g,St as h,Bn as i,Ee as k,pn as l,Ot as m,Rn as n,Y as o,Ut as p,Ln as r,X as s,Q as t,fn as u,$e as v,Ne as w,L as x,B as y}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{$d as n,Bd as r,Cf as i,Df as a,Ef as o,Fd as s,Gd as c,Hd as l,Id as u,Jd as d,Kd as f,Ld as p,Md as m,Nd as h,Pd as g,Qd as _,Rd as v,Sf as y,Tf as b,Ud as x,Vd as ee,Wd as S,Xd as C,Yd as w,Zd as te,_f as T,af as ne,bf as E,cf as re,df as D,ef as O,ff as k,gf as A,hf as ie,if as j,lf as ae,mf as oe,nf as se,of as ce,pf as le,qd as ue,rf as de,sf as fe,tf as pe,tm as me,uf as he,vf as ge,wf as _e,xf as ve,yf as ye,zd as be}from"./messages-CL4J6BaJ.js";import{t as xe}from"./with-selector-DBfssCrY.js";import{n as Se,r as Ce,t as we}from"./cookies-BzZOQYPw.js";import{n as Te}from"./dist-Dd-sCJIt.js";var M=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ee=new class extends M{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},De={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},N=new class{#e=De;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function Oe(e){setTimeout(e,0)}var ke=typeof window>`u`||`Deno`in globalThis;function P(){}function Ae(e,t){return typeof e==`function`?e(t):e}function je(e){return typeof e==`number`&&e>=0&&e!==1/0}function Me(e,t){return Math.max(e+(t||0)-Date.now(),0)}function F(e,t){return typeof e==`function`?e(t):e}function I(e,t){return typeof e==`function`?e(t):e}function Ne(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Fe(o,t.options))return!1}else if(!Ie(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function Pe(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(L(t.options.mutationKey)!==L(a))return!1}else if(!Ie(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Fe(e,t){return(t?.queryKeyHashFn||L)(e)}function L(e){return JSON.stringify(e,(e,t)=>Be(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Ie(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>Ie(e[n],t[n])):!1}var Le=Object.prototype.hasOwnProperty;function Re(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=ze(e)&&ze(t);if(!r&&!(Be(e)&&Be(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l{N.setTimeout(t,e)})}function Ue(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:Re(e,t)}function We(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Ge(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ke=Symbol();function qe(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Ke?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Je(e,t){return typeof e==`function`?e(...t):!!e}function Ye(e,t,n){let r=!1,i;return Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var z=(()=>{let e=()=>ke;return{isServer(){return e()},setIsServer(t){e=t}}})();function Xe(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var Ze=Oe;function Qe(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Ze,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var B=Qe(),$e=new class extends M{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function et(e){return Math.min(1e3*2**e,3e4)}function tt(e){return(e??`online`)===`online`?$e.isOnline():!0}var nt=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function rt(e){let t=!1,n=0,r,i=Xe(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new nt(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>Ee.isFocused()&&(e.networkMode===`always`||$e.isOnline())&&e.canRun(),u=()=>tt(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(z.isServer()?0:3),o=e.retryDelay??et,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&nl()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var it=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),je(this.gcTime)&&(this.#e=N.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(z.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(N.clearTimeout(this.#e),this.#e=void 0)}},at=class extends it{#e;#t;#n;#r;#i;#a;#o;constructor(e){super(),this.#o=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=ct(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=ct(this.options);e.data!==void 0&&(this.setState(st(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#n.remove(this)}setData(e,t){let n=Ue(this.state.data,e,this.options);return this.#c({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#c({type:`setState`,state:e,setStateOptions:t})}cancel(e){let t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(P).catch(P):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>I(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ke||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>F(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!Me(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#i&&(this.#o||this.#s()?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#s(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#c({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#i?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},i=()=>{let e=qe(this.options,t),n=(()=>{let e={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#o=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:i};return r(e),e})();this.options.behavior?.onFetch(a,this),this.#t=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#c({type:`fetch`,meta:a.fetchOptions?.meta}),this.#i=rt({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof nt&&e.revert&&this.setState({...this.#t,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#c({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#c({type:`pause`})},onContinue:()=>{this.#c({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#i.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#n.config.onSuccess?.(e,this),this.#n.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof nt){if(e.silent)return this.#i.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#c({type:`error`,error:e}),this.#n.config.onError?.(e,this),this.#n.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#c(e){this.state=(t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...ot(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...st(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}})(this.state),B.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#n.notify({query:this,type:`updated`,action:e})})}};function ot(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:tt(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function st(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function ct(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var lt=class extends M{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=Xe(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),dt(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ft(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ft(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof I(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!R(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&pt(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||I(this.options.enabled,this.#t)!==I(t.enabled,this.#t)||F(this.options.staleTime,this.#t)!==F(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||I(this.options.enabled,this.#t)!==I(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return ht(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(P)),t}#g(){this.#b();let e=F(this.options.staleTime,this.#t);if(z.isServer()||this.#r.isStale||!je(e))return;let t=Me(this.#r.dataUpdatedAt,e)+1;this.#d=N.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(z.isServer()||I(this.options.enabled,this.#t)===!1||!je(this.#p)||this.#p===0)&&(this.#f=N.setInterval(()=>{(this.options.refetchIntervalInBackground||Ee.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(N.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(N.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&dt(e,t),o=i&&pt(e,n,t,r);(a||o)&&(l={...l,...ot(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=Ue(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=Ue(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:mt(e,t),refetch:this.refetch,promise:this.#o,isEnabled:I(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=x.data!==void 0,r=x.status===`error`&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},a=()=>{i(this.#o=x.promise=Xe())},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||x.data!==o.value)&&a();break;case`rejected`:(!r||x.error!==o.reason)&&a();break}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!R(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){B.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function ut(e,t){return I(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&t.retryOnMount===!1)}function dt(e,t){return ut(e,t)||e.state.data!==void 0&&ft(e,t,t.refetchOnMount)}function ft(e,t,n){if(I(t.enabled,e)!==!1&&F(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&mt(e,t)}return!1}function pt(e,t,n,r){return(e!==t||I(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&mt(e,n)}function mt(e,t){return I(t.enabled,e)!==!1&&e.isStaleByTime(F(t.staleTime,e))}function ht(e,t){return!R(e.getCurrentResult(),t)}function gt(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Ye(e,()=>t.signal,()=>n=!0)},u=qe(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject();if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?Ge:We;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?vt:_t,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:_t(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(ct.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function _t(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function vt(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function yt(e,t){return t?_t(e,t)!=null:!1}function bt(e,t){return!t||!e.getPreviousPageParam?!1:vt(e,t)!=null}var xt=class extends lt{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:gt()})}getOptimisticResult(e){return e.behavior=gt(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`forward`}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`backward`}}})}createResult(e,t){let{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:o,isRefetchError:s}=r,c=n.fetchMeta?.fetchMore?.direction,l=o&&c===`forward`,u=i&&c===`forward`,d=o&&c===`backward`,f=i&&c===`backward`;return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:yt(t,n.data),hasPreviousPage:bt(t,n.data),isFetchNextPageError:l,isFetchingNextPage:u,isFetchPreviousPageError:d,isFetchingPreviousPage:f,isRefetchError:s&&!l&&!d,isRefetching:a&&!u&&!f}}},St=class extends it{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Ct(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=rt({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){this.state=(t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}})(this.state),B.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Ct(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var wt=class extends M{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),R(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&L(t.mutationKey)!==L(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??Ct();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){B.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},V=e(t(),1),Tt=me(),Et=V.createContext(void 0),Dt=e=>{let t=V.useContext(Et);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Ot=({client:e,children:t})=>(V.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,Tt.jsx)(Et.Provider,{value:e,children:t})),kt=V.createContext(!1),At=()=>V.useContext(kt);kt.Provider;function jt(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Mt=V.createContext(jt()),Nt=()=>V.useContext(Mt),Pt=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?Je(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Ft=e=>{V.useEffect(()=>{e.clearReset()},[e])},It=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||Je(n,[e.error,r])),Lt=(e,t)=>t.state.data===void 0,Rt=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},zt=(e,t)=>e.isLoading&&e.isFetching&&!t,Bt=(e,t)=>e?.suspense&&t.isPending,Vt=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Ht(e,t,n){let r=At(),i=Nt(),a=Dt(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash);o._optimisticResults=r?`isRestoring`:`optimistic`,Rt(o),Pt(o,i,s),Ft(i);let c=!a.getQueryCache().get(o.queryHash),[l]=V.useState(()=>new t(a,o)),u=l.getOptimisticResult(o),d=!r&&e.subscribed!==!1;if(V.useSyncExternalStore(V.useCallback(e=>{let t=d?l.subscribe(B.batchCalls(e)):P;return l.updateResult(),t},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),V.useEffect(()=>{l.setOptions(o)},[o,l]),Bt(o,u))throw Vt(o,l,i);if(It({result:u,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw u.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,u),o.experimental_prefetchInRender&&!z.isServer()&&zt(u,r)&&(c?Vt(o,l,i):s?.promise)?.catch(P).finally(()=>{l.updateResult()}),o.notifyOnChangeProps?u:l.trackResult(u)}function Ut(e,t){return Ht(e,lt,t)}function Wt(e,t){return Ht({...e,enabled:!0,suspense:!0,throwOnError:Lt,placeholderData:void 0},lt,t)}function Gt(e,t){let n=Dt(t),[r]=V.useState(()=>new wt(n,e));V.useEffect(()=>{r.setOptions(e)},[r,e]);let i=V.useSyncExternalStore(V.useCallback(e=>r.subscribe(B.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=V.useCallback((e,t)=>{r.mutate(e,t).catch(P)},[r]);if(i.error&&Je(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function Kt(e,t){return Ht(e,xt,t)}var qt=xe();function Jt(e,t){return e===t}function Yt(e,t,n=Jt){let r=(0,V.useCallback)(t=>{if(!e)return()=>{};let{unsubscribe:n}=e.subscribe(t);return n},[e]),i=(0,V.useCallback)(()=>e?.get(),[e]);return(0,qt.useSyncExternalStoreWithSelector)(r,i,i,t,n)}var H=function(e){return e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e}({});function Xt({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&(H.RecursedCheck|H.Recursed|H.Dirty|H.Pending)?a&(H.RecursedCheck|H.Recursed)?a&H.RecursedCheck?!(a&(H.Dirty|H.Pending))&&c(e,i)?(i.flags=a|(H.Recursed|H.Pending),a&=H.Mutable):a=H.None:i.flags=a&~H.Recursed|H.Pending:a=H.None:i.flags=a|H.Pending,a&H.Watching&&t(i),a&H.Mutable){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&H.Dirty)a=!0;else if((c&(H.Mutable|H.Dirty))===(H.Mutable|H.Dirty)){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&(H.Mutable|H.Pending))===(H.Mutable|H.Pending)){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=~H.Pending;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&(H.Pending|H.Dirty))===H.Pending&&(n.flags=r|H.Dirty,(r&(H.Watching|H.RecursedCheck))===H.Watching&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function Zt(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var Qt=[],U=0,{link:$t,unlink:en,propagate:tn,checkDirty:nn,shallowPropagate:rn}=Xt({update(e){return e._update()},notify(e){Qt[an++]=e,e.flags&=~H.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=H.Mutable|H.Dirty,K(e))}}),W=0,an=0,G,on=0;function K(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=en(n,e)}function sn(){if(!(on>0)){for(;W{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=G,o=t?.compare??Object.is;if(n)G=i,++U,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=H.Mutable|H.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{G=a,n&&(i.flags&=~H.RecursedCheck),K(i)}}};return n?(i.flags=H.Mutable|H.Dirty,i.get=function(){let e=i.flags;if(e&H.Dirty||e&H.Pending&&nn(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&rn(e)}}else e&H.Pending&&(i.flags=e&~H.Pending);return G!==void 0&&$t(i,G,U),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(tn(e),rn(e),sn())}},i}function ln(e){let t=()=>{let t=G;G=n,++U,n.depsTail=void 0,n.flags=H.Watching|H.RecursedCheck;try{return e()}finally{G=t,n.flags&=~H.RecursedCheck,K(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:H.Watching|H.RecursedCheck,notify(){let e=this.flags;e&H.Dirty||e&H.Pending&&nn(this.deps,this)?t():this.flags=H.Watching},stop(){this.flags=H.None,this.depsTail=void 0,K(this)}};return t(),n}var un=class{constructor(e){this.atom=cn(e)}setState(e){this.atom.set(e)}get state(){return this.atom.get()}get(){return this.state}subscribe(e){return this.atom.subscribe(Zt(e))}},q=`access_token`,dn=`auth_user`,fn=`sidebar_state`,pn=3600*24*7,mn=/\{[^{}]+\}/g,hn=()=>typeof process==`object`&&Number.parseInt(process?.versions?.node?.substring(0,2))>=18&&process.versions.undici;function gn(){return Math.random().toString(36).slice(2,11)}function _n(e){let{baseUrl:t=``,Request:n=globalThis.Request,fetch:r=globalThis.fetch,querySerializer:i,bodySerializer:a,pathSerializer:o,headers:s,requestInitExt:c=void 0,...l}={...e};c=hn()?c:void 0,t=Tn(t);let u=[];async function d(e,d){let{baseUrl:f,fetch:p=r,Request:m=n,headers:h,params:g={},parseAs:_=`json`,querySerializer:v,bodySerializer:y=a??Sn,pathSerializer:b,body:x,middleware:ee=[],...S}=d||{},C=t;f&&(C=Tn(f)??t);let w=typeof i==`function`?i:bn(i);v&&(w=typeof v==`function`?v:bn({...typeof i==`object`?i:{},...v}));let te=b||o||xn,T=x===void 0?void 0:y(x,wn(s,h,g.header)),ne=wn(T===void 0||T instanceof FormData?{}:{"Content-Type":`application/json`},s,h,g.header),E=[...u,...ee],re={redirect:`follow`,...l,...S,body:T,headers:ne},D,O,k=new m(Cn(e,{baseUrl:C,params:g,querySerializer:w,pathSerializer:te}),re),A;for(let e in S)e in k||(k[e]=S[e]);if(E.length){D=gn(),O=Object.freeze({baseUrl:C,fetch:p,parseAs:_,querySerializer:w,bodySerializer:y,pathSerializer:te});for(let t of E)if(t&&typeof t==`object`&&typeof t.onRequest==`function`){let n=await t.onRequest({request:k,schemaPath:e,params:g,options:O,id:D});if(n)if(n instanceof m)k=n;else if(n instanceof Response){A=n;break}else throw Error(`onRequest: must return new Request() or Response() when modifying the request`)}}if(!A){try{A=await p(k,c)}catch(t){let n=t;if(E.length)for(let t=E.length-1;t>=0;t--){let r=E[t];if(r&&typeof r==`object`&&typeof r.onError==`function`){let t=await r.onError({request:k,error:n,schemaPath:e,params:g,options:O,id:D});if(t){if(t instanceof Response){n=void 0,A=t;break}if(t instanceof Error){n=t;continue}throw Error(`onError: must return new Response() or instance of Error`)}}}if(n)throw n}if(E.length)for(let t=E.length-1;t>=0;t--){let n=E[t];if(n&&typeof n==`object`&&typeof n.onResponse==`function`){let t=await n.onResponse({request:k,response:A,schemaPath:e,params:g,options:O,id:D});if(t){if(!(t instanceof Response))throw Error(`onResponse: must return new Response() when modifying the response`);A=t}}}}let ie=A.headers.get(`Content-Length`);if(A.status===204||k.method===`HEAD`||ie===`0`&&!A.headers.get(`Transfer-Encoding`)?.includes(`chunked`))return A.ok?{data:void 0,response:A}:{error:void 0,response:A};if(A.ok)return{data:await(async()=>{if(_===`stream`)return A.body;if(_===`json`&&!ie){let e=await A.text();return e?JSON.parse(e):void 0}return await A[_]()})(),response:A};let j=await A.text();try{j=JSON.parse(j)}catch{}return{error:j,response:A}}return{request(e,t,n){return d(t,{...n,method:e.toUpperCase()})},GET(e,t){return d(e,{...t,method:`GET`})},PUT(e,t){return d(e,{...t,method:`PUT`})},POST(e,t){return d(e,{...t,method:`POST`})},DELETE(e,t){return d(e,{...t,method:`DELETE`})},OPTIONS(e,t){return d(e,{...t,method:`OPTIONS`})},HEAD(e,t){return d(e,{...t,method:`HEAD`})},PATCH(e,t){return d(e,{...t,method:`PATCH`})},TRACE(e,t){return d(e,{...t,method:`TRACE`})},use(...e){for(let t of e)if(t){if(typeof t!=`object`||!(`onRequest`in t||`onResponse`in t||`onError`in t))throw Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");u.push(t)}},eject(...e){for(let t of e){let e=u.indexOf(t);e!==-1&&u.splice(e,1)}}}}function J(e,t,n){if(t==null)return``;if(typeof t==`object`)throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${n?.allowReserved===!0?t:encodeURIComponent(t)}`}function vn(e,t,n){if(!t||typeof t!=`object`)return``;let r=[],i={simple:`,`,label:`.`,matrix:`;`}[n.style]||`&`;if(n.style!==`deepObject`&&n.explode===!1){for(let e in t)r.push(e,n.allowReserved===!0?t[e]:encodeURIComponent(t[e]));let i=r.join(`,`);switch(n.style){case`form`:return`${e}=${i}`;case`label`:return`.${i}`;case`matrix`:return`;${e}=${i}`;default:return i}}for(let i in t){let a=n.style===`deepObject`?`${e}[${i}]`:i;r.push(J(a,t[i],n))}let a=r.join(i);return n.style===`label`||n.style===`matrix`?`${i}${a}`:a}function yn(e,t,n){if(!Array.isArray(t))return``;if(n.explode===!1){let r={form:`,`,spaceDelimited:`%20`,pipeDelimited:`|`}[n.style]||`,`,i=(n.allowReserved===!0?t:t.map(e=>encodeURIComponent(e))).join(r);switch(n.style){case`simple`:return i;case`label`:return`.${i}`;case`matrix`:return`;${e}=${i}`;default:return`${e}=${i}`}}let r={simple:`,`,label:`.`,matrix:`;`}[n.style]||`&`,i=[];for(let r of t)n.style===`simple`||n.style===`label`?i.push(n.allowReserved===!0?r:encodeURIComponent(r)):i.push(J(e,r,n));return n.style===`label`||n.style===`matrix`?`${r}${i.join(r)}`:i.join(r)}function bn(e){return function(t){let n=[];if(t&&typeof t==`object`)for(let r in t){let i=t[r];if(i!=null){if(Array.isArray(i)){if(i.length===0)continue;n.push(yn(r,i,{style:`form`,explode:!0,...e?.array,allowReserved:e?.allowReserved||!1}));continue}if(typeof i==`object`){n.push(vn(r,i,{style:`deepObject`,explode:!0,...e?.object,allowReserved:e?.allowReserved||!1}));continue}n.push(J(r,i,e))}}return n.join(`&`)}}function xn(e,t){let n=e;for(let r of e.match(mn)??[]){let e=r.substring(1,r.length-1),i=!1,a=`simple`;if(e.endsWith(`*`)&&(i=!0,e=e.substring(0,e.length-1)),e.startsWith(`.`)?(a=`label`,e=e.substring(1)):e.startsWith(`;`)&&(a=`matrix`,e=e.substring(1)),!t||t[e]===void 0||t[e]===null)continue;let o=t[e];if(Array.isArray(o)){n=n.replace(r,yn(e,o,{style:a,explode:i}));continue}if(typeof o==`object`){n=n.replace(r,vn(e,o,{style:a,explode:i}));continue}if(a===`matrix`){n=n.replace(r,`;${J(e,o)}`);continue}n=n.replace(r,a===`label`?`.${encodeURIComponent(o)}`:encodeURIComponent(o))}return n}function Sn(e,t){return e instanceof FormData?e:t&&(t.get instanceof Function?t.get(`Content-Type`)??t.get(`content-type`):t[`Content-Type`]??t[`content-type`])===`application/x-www-form-urlencoded`?new URLSearchParams(e).toString():JSON.stringify(e)}function Cn(e,t){let n=`${t.baseUrl}${e}`;t.params?.path&&(n=t.pathSerializer(n,t.params.path));let r=t.querySerializer(t.params.query??{});return r.startsWith(`?`)&&(r=r.substring(1)),r&&(n+=`?${r}`),n}function wn(...e){let t=new Headers;for(let n of e){if(!n||typeof n!=`object`)continue;let e=n instanceof Headers?n.entries():Object.entries(n);for(let[n,r]of e)if(r===null)t.delete(n);else if(Array.isArray(r))for(let e of r)t.append(n,e);else r!==void 0&&t.set(n,r)}return t}function Tn(e){return e.endsWith(`/`)?e.substring(0,e.length-1):e}function En(e){let t=async({queryKey:[t,n,r],signal:i})=>{let a=e[t.toUpperCase()],{data:o,error:s,response:c}=await a(n,{signal:i,...r});if(s)throw s;return c.status===204||c.headers.get(`Content-Length`)===`0`?o??null:o},n=(e,n,...[r,i])=>({queryKey:r===void 0?[e,n]:[e,n,r],queryFn:t,...i});return{queryOptions:n,useQuery:(e,t,...[r,i,a])=>Ut(n(e,t,r,i),a),useSuspenseQuery:(e,t,...[r,i,a])=>Wt(n(e,t,r,i),a),useInfiniteQuery:(t,r,i,a,o)=>{let{pageParamName:s=`cursor`,...c}=a,{queryKey:l}=n(t,r,i);return Kt({queryKey:l,queryFn:async({queryKey:[t,n,r],pageParam:i=0,signal:a})=>{let o=e[t.toUpperCase()],{data:c,error:l}=await o(n,{...r,signal:a,params:{...r?.params||{},query:{...r?.params?.query,[s]:i}}});if(l)throw l;return c},...c},o)},useMutation:(t,n,r,i)=>Gt({mutationKey:[t,n],mutationFn:async r=>{let i=e[t.toUpperCase()],{data:a,error:o}=await i(n,r);if(o)throw o;return a},...r},i)}}var Dn={0:h,400:a,401:o,500:m,10001:b,10002:_e,10003:i,10004:y,10005:ve,10006:E,10007:ye,10008:ge,10009:T,10010:A,10011:ie,10012:oe,10013:le,10014:k,10015:D,10016:he,10017:ae,10018:re,10019:fe,10020:ce,10021:ne,10022:j,10023:de,10024:se,10025:pe,10026:O,10027:n,10028:_,10029:te,10030:C,10031:w,10032:d,10033:ue,10034:f,10035:c,10036:S,10037:x,10038:l,10039:ee,10040:r,10041:be,10042:v,10043:p,10044:u,10045:s,10046:g};function Y(e){return Dn[e]?.()??Dn[0]()}var On={onRequest({request:e}){let t=we(q);if(t)try{let n=JSON.parse(t);n&&e.headers.set(`Authorization`,`Bearer ${n}`)}catch{}return e},async onResponse({response:e}){if(e.status===401){Rn();let t=encodeURIComponent(window.location.pathname+window.location.search);return window.location.replace(`/sign-in?redirect=${t}`),e}if(e.status===400)try{let t=await e.clone().json(),n=t.status_code&&Y(t.status_code)||t.message||Y(0);Te.error(n)}catch{Te.error(Y(0))}return e.status>=500&&Te.error(Y(500)),e}},X=_n({baseUrl:`/`});X.use(On);var kn=En(X);function An(e,t){try{return JSON.parse(e)}catch{return t}}function jn(){if(typeof window>`u`)return null;try{return window.localStorage}catch{return null}}function Mn(e){return jn()?.getItem(e)??void 0}function Nn(e,t){jn()?.setItem(e,t)}function Pn(e){jn()?.removeItem(e)}var Z={getToken:()=>An(we(`access_token`)||``,``),getUser:()=>An(Mn(`auth_user`)||``,null),setToken:e=>e?Ce(q,JSON.stringify(e)):Se(q),setUser:e=>e?Nn(dn,JSON.stringify(e)):Pn(dn),clear:()=>{Se(q),Pn(dn)}},Fn=Z.getToken(),Q=new un({accessToken:Fn,user:Fn?Z.getUser():null}),$=null;function In(e){Z.setUser(e),Q.setState(t=>({...t,user:e}))}function Ln(e){let t=Q.state.accessToken;Z.setToken(e);let n=t!==e;n&&(Z.setUser(null),$=null),Q.setState(t=>({...t,accessToken:e,user:n?null:t.user})),e&&zn()}function Rn(){Z.clear(),$=null,Q.setState(()=>({accessToken:``,user:null}))}function zn(){let{user:e,accessToken:t}=Q.state;return e?Promise.resolve(e):t?$||($=X.GET(`/admin/api/v1/auth/me`).then(({data:e})=>{let t=e?.data??null;return t&&In(t),t}).catch(()=>(Rn(),null)).finally(()=>{$=null}),$):Promise.resolve(null)}function Bn(){return Yt(Q,e=>e)}export{M as A,Pe as C,F as D,Ie as E,Ke as O,Fe as S,P as T,at as _,kn as a,Ae as b,q as c,un as d,Yt as f,gt as g,St as h,Bn as i,Ee as k,pn as l,Ot as m,Rn as n,Y as o,Ut as p,Ln as r,X as s,Q as t,fn as u,$e as v,Ne as w,L as x,B as y}; \ No newline at end of file diff --git a/src/www/assets/badge-VJlwwTW5.js b/src/www/assets/badge-BRKB3301.js similarity index 90% rename from src/www/assets/badge-VJlwwTW5.js rename to src/www/assets/badge-BRKB3301.js index abc1a08..480df5a 100644 --- a/src/www/assets/badge-VJlwwTW5.js +++ b/src/www/assets/badge-BRKB3301.js @@ -1 +1 @@ -import{tm as e}from"./messages-BOatyqUm.js";import{i as t,o as n,r}from"./button-C_NDYaz8.js";var i=e(),a=r(`inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-full border border-transparent px-2 py-0.5 font-medium text-xs transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3`,{variants:{variant:{default:`bg-primary text-primary-foreground [a&]:hover:bg-primary/90`,secondary:`bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90`,destructive:`bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90`,outline:`border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground`,ghost:`[a&]:hover:bg-accent [a&]:hover:text-accent-foreground`,link:`text-primary underline-offset-4 [a&]:hover:underline`}},defaultVariants:{variant:`default`}});function o({className:e,variant:r=`default`,asChild:o=!1,...s}){return(0,i.jsx)(o?n:`span`,{className:t(a({variant:r}),e),"data-slot":`badge`,"data-variant":r,...s})}export{o as t}; \ No newline at end of file +import{tm as e}from"./messages-CL4J6BaJ.js";import{i as t,o as n,r}from"./button-NLSeBFht.js";var i=e(),a=r(`inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-full border border-transparent px-2 py-0.5 font-medium text-xs transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3`,{variants:{variant:{default:`bg-primary text-primary-foreground [a&]:hover:bg-primary/90`,secondary:`bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90`,destructive:`bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90`,outline:`border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground`,ghost:`[a&]:hover:bg-accent [a&]:hover:text-accent-foreground`,link:`text-primary underline-offset-4 [a&]:hover:underline`}},defaultVariants:{variant:`default`}});function o({className:e,variant:r=`default`,asChild:o=!1,...s}){return(0,i.jsx)(o?n:`span`,{className:t(a({variant:r}),e),"data-slot":`badge`,"data-variant":r,...s})}export{o as t}; \ No newline at end of file diff --git a/src/www/assets/button-C_NDYaz8.js b/src/www/assets/button-NLSeBFht.js similarity index 99% rename from src/www/assets/button-C_NDYaz8.js rename to src/www/assets/button-NLSeBFht.js index 9cb34ec..c275245 100644 --- a/src/www/assets/button-C_NDYaz8.js +++ b/src/www/assets/button-NLSeBFht.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./clsx-D9aGYY3V.js";var i=e(t(),1);function a(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function o(...e){return t=>{let n=!1,r=e.map(e=>{let r=a(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t{let{children:r,...a}=e,o=i.Children.toArray(r),s=o.find(p);if(s){let e=s.props.children,r=o.map(t=>t===s?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,c.jsx)(t,{...a,ref:n,children:i.isValidElement(e)?i.cloneElement(e,void 0,r):null})}return(0,c.jsx)(t,{...a,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var u=l(`Slot`);function ee(e){let t=i.forwardRef((e,t)=>{let{children:n,...r}=e;if(i.isValidElement(n)){let e=h(n),a=m(r,n.props);return n.type!==i.Fragment&&(a.ref=t?o(t,e):e),i.cloneElement(n,a)}return i.Children.count(n)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var d=Symbol(`radix.slottable`);function f(e){let t=({children:e})=>(0,c.jsx)(c.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=d,t}function p(e){return i.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===d}function m(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function h(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var g=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t({classGroupId:e,validator:t}),v=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),y=`-`,b=[],te=`arbitrary..`,ne=e=>{let t=re(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return S(e);let n=e.split(y);return x(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?g(i,t):t:i||b}return n[e]||b}}},x=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=x(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(y):e.slice(t).join(y),s=a.length;for(let e=0;ee.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?te+r:void 0})(),re=e=>{let{theme:t,classGroups:n}=e;return ie(n,t)},ie=(e,t)=>{let n=v();for(let r in e){let i=e[r];C(i,n,r,t)}return n},C=(e,t,n,r)=>{let i=e.length;for(let a=0;a{if(typeof e==`string`){w(e,t,n);return}if(typeof e==`function`){T(e,t,n,r);return}E(e,t,n,r)},w=(e,t,n)=>{let r=e===``?t:D(t,e);r.classGroupId=n},T=(e,t,n,r)=>{if(O(e)){C(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(_(n,e))},E=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e{let n=e,r=t.split(y),i=r.length;for(let e=0;e`isThemeGetter`in e&&e.isThemeGetter===!0,oe=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},k=`!`,A=`:`,se=[],j=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),M=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;si?a-i:void 0;return j(t,l,c,u)};if(t){let e=t+A,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):j(se,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},N=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},P=e=>({cache:oe(e.cacheSize),parseClassName:M(e),sortModifiers:N(e),...ne(e)}),F=/\s+/,ce=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(F),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:ee,baseClassName:d,maybePostfixModifierPosition:f}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let p=!!f,m=r(p?d.substring(0,f):d);if(!m){if(!p){c=t+(c.length>0?` `+c:c);continue}if(m=r(d),!m){c=t+(c.length>0?` `+c:c);continue}p=!1}let h=u.length===0?``:u.length===1?u[0]:a(u).join(`:`),g=ee?h+k:h,_=g+m;if(o.indexOf(_)>-1)continue;o.push(_);let v=i(m,p);for(let e=0;e0?` `+c:c)}return c},I=(...e)=>{let t=0,n,r,i=``;for(;t{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r{let n,r,i,a,o=o=>(n=P(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=ce(e,n);return i(e,a),a};return a=o,(...e)=>a(I(...e))},z=[],B=e=>{let t=t=>t[e]||z;return t.isThemeGetter=!0,t},V=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,H=/^\((?:(\w[\w-]*):)?(.+)\)$/i,le=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ue=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,de=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,fe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,pe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,me=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,U=e=>le.test(e),W=e=>!!e&&!Number.isNaN(Number(e)),G=e=>!!e&&Number.isInteger(Number(e)),he=e=>e.endsWith(`%`)&&W(e.slice(0,-1)),K=e=>ue.test(e),ge=()=>!0,_e=e=>de.test(e)&&!fe.test(e),ve=()=>!1,ye=e=>pe.test(e),be=e=>me.test(e),xe=e=>!q(e)&&!X(e),Se=e=>Q(e,Ie,ve),q=e=>V.test(e),J=e=>Q(e,Le,_e),Ce=e=>Q(e,Re,W),we=e=>Q(e,Be,ge),Te=e=>Q(e,ze,ve),Ee=e=>Q(e,Pe,ve),De=e=>Q(e,Fe,be),Y=e=>Q(e,Ve,ye),X=e=>H.test(e),Z=e=>$(e,Le),Oe=e=>$(e,ze),ke=e=>$(e,Pe),Ae=e=>$(e,Ie),je=e=>$(e,Fe),Me=e=>$(e,Ve,!0),Ne=e=>$(e,Be,!0),Q=(e,t,n)=>{let r=V.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},$=(e,t,n=!1)=>{let r=H.exec(e);return r?r[1]?t(r[1]):n:!1},Pe=e=>e===`position`||e===`percentage`,Fe=e=>e===`image`||e===`url`,Ie=e=>e===`length`||e===`size`||e===`bg-size`,Le=e=>e===`length`,Re=e=>e===`number`,ze=e=>e===`family-name`,Be=e=>e===`number`||e===`weight`,Ve=e=>e===`shadow`,He=R(()=>{let e=B(`color`),t=B(`font`),n=B(`text`),r=B(`font-weight`),i=B(`tracking`),a=B(`leading`),o=B(`breakpoint`),s=B(`container`),c=B(`spacing`),l=B(`radius`),u=B(`shadow`),ee=B(`inset-shadow`),d=B(`text-shadow`),f=B(`drop-shadow`),p=B(`blur`),m=B(`perspective`),h=B(`aspect`),g=B(`ease`),_=B(`animate`),v=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],y=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],b=()=>[...y(),X,q],te=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],ne=()=>[`auto`,`contain`,`none`],x=()=>[X,q,c],S=()=>[U,`full`,`auto`,...x()],re=()=>[G,`none`,`subgrid`,X,q],ie=()=>[`auto`,{span:[`full`,G,X,q]},G,X,q],C=()=>[G,`auto`,X,q],ae=()=>[`auto`,`min`,`max`,`fr`,X,q],w=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],T=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],E=()=>[`auto`,...x()],D=()=>[U,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...x()],O=()=>[U,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...x()],oe=()=>[U,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...x()],k=()=>[e,X,q],A=()=>[...y(),ke,Ee,{position:[X,q]}],se=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],j=()=>[`auto`,`cover`,`contain`,Ae,Se,{size:[X,q]}],M=()=>[he,Z,J],N=()=>[``,`none`,`full`,l,X,q],P=()=>[``,W,Z,J],F=()=>[`solid`,`dashed`,`dotted`,`double`],ce=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],I=()=>[W,he,ke,Ee],L=()=>[``,`none`,p,X,q],R=()=>[`none`,W,X,q],z=()=>[`none`,W,X,q],V=()=>[W,X,q],H=()=>[U,`full`,...x()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[K],breakpoint:[K],color:[ge],container:[K],"drop-shadow":[K],ease:[`in`,`out`,`in-out`],font:[xe],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[K],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[K],shadow:[K],spacing:[`px`,W],text:[K],"text-shadow":[K],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,U,q,X,h]}],container:[`container`],columns:[{columns:[W,q,X,s]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:b()}],overflow:[{overflow:te()}],"overflow-x":[{"overflow-x":te()}],"overflow-y":[{"overflow-y":te()}],overscroll:[{overscroll:ne()}],"overscroll-x":[{"overscroll-x":ne()}],"overscroll-y":[{"overscroll-y":ne()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:S()}],"inset-x":[{"inset-x":S()}],"inset-y":[{"inset-y":S()}],start:[{"inset-s":S(),start:S()}],end:[{"inset-e":S(),end:S()}],"inset-bs":[{"inset-bs":S()}],"inset-be":[{"inset-be":S()}],top:[{top:S()}],right:[{right:S()}],bottom:[{bottom:S()}],left:[{left:S()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[G,`auto`,X,q]}],basis:[{basis:[U,`full`,`auto`,s,...x()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[W,U,`auto`,`initial`,`none`,q]}],grow:[{grow:[``,W,X,q]}],shrink:[{shrink:[``,W,X,q]}],order:[{order:[G,`first`,`last`,`none`,X,q]}],"grid-cols":[{"grid-cols":re()}],"col-start-end":[{col:ie()}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":re()}],"row-start-end":[{row:ie()}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ae()}],"auto-rows":[{"auto-rows":ae()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...w(),`normal`]}],"justify-items":[{"justify-items":[...T(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...T()]}],"align-content":[{content:[`normal`,...w()]}],"align-items":[{items:[...T(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...T(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":w()}],"place-items":[{"place-items":[...T(),`baseline`]}],"place-self":[{"place-self":[`auto`,...T()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mbs:[{mbs:E()}],mbe:[{mbe:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":x()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":x()}],"space-y-reverse":[`space-y-reverse`],size:[{size:D()}],"inline-size":[{inline:[`auto`,...O()]}],"min-inline-size":[{"min-inline":[`auto`,...O()]}],"max-inline-size":[{"max-inline":[`none`,...O()]}],"block-size":[{block:[`auto`,...oe()]}],"min-block-size":[{"min-block":[`auto`,...oe()]}],"max-block-size":[{"max-block":[`none`,...oe()]}],w:[{w:[s,`screen`,...D()]}],"min-w":[{"min-w":[s,`screen`,`none`,...D()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...D()]}],h:[{h:[`screen`,`lh`,...D()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...D()]}],"max-h":[{"max-h":[`screen`,`lh`,...D()]}],"font-size":[{text:[`base`,n,Z,J]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Ne,we]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,he,q]}],"font-family":[{font:[Oe,Te,t]}],"font-features":[{"font-features":[q]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,X,q]}],"line-clamp":[{"line-clamp":[W,`none`,X,Ce]}],leading:[{leading:[a,...x()]}],"list-image":[{"list-image":[`none`,X,q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,X,q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...F(),`wavy`]}],"text-decoration-thickness":[{decoration:[W,`from-font`,`auto`,X,J]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[W,`auto`,X,q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:x()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,X,q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,X,q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:se()}],"bg-size":[{bg:j()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},G,X,q],radial:[``,X,q],conic:[G,X,q]},je,De]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:M()}],"gradient-via-pos":[{via:M()}],"gradient-to-pos":[{to:M()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:N()}],"rounded-s":[{"rounded-s":N()}],"rounded-e":[{"rounded-e":N()}],"rounded-t":[{"rounded-t":N()}],"rounded-r":[{"rounded-r":N()}],"rounded-b":[{"rounded-b":N()}],"rounded-l":[{"rounded-l":N()}],"rounded-ss":[{"rounded-ss":N()}],"rounded-se":[{"rounded-se":N()}],"rounded-ee":[{"rounded-ee":N()}],"rounded-es":[{"rounded-es":N()}],"rounded-tl":[{"rounded-tl":N()}],"rounded-tr":[{"rounded-tr":N()}],"rounded-br":[{"rounded-br":N()}],"rounded-bl":[{"rounded-bl":N()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-bs":[{"border-bs":P()}],"border-w-be":[{"border-be":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":P()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...F(),`hidden`,`none`]}],"divide-style":[{divide:[...F(),`hidden`,`none`]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-bs":[{"border-bs":k()}],"border-color-be":[{"border-be":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...F(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[W,X,q]}],"outline-w":[{outline:[``,W,Z,J]}],"outline-color":[{outline:k()}],shadow:[{shadow:[``,`none`,u,Me,Y]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":[`none`,ee,Me,Y]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:P()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[W,J]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":[`none`,d,Me,Y]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[W,X,q]}],"mix-blend":[{"mix-blend":[...ce(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ce()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[W]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[X,q]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":y()}],"mask-image-conic-pos":[{"mask-conic":[W]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:se()}],"mask-size":[{mask:j()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,X,q]}],filter:[{filter:[``,`none`,X,q]}],blur:[{blur:L()}],brightness:[{brightness:[W,X,q]}],contrast:[{contrast:[W,X,q]}],"drop-shadow":[{"drop-shadow":[``,`none`,f,Me,Y]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:[``,W,X,q]}],"hue-rotate":[{"hue-rotate":[W,X,q]}],invert:[{invert:[``,W,X,q]}],saturate:[{saturate:[W,X,q]}],sepia:[{sepia:[``,W,X,q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,X,q]}],"backdrop-blur":[{"backdrop-blur":L()}],"backdrop-brightness":[{"backdrop-brightness":[W,X,q]}],"backdrop-contrast":[{"backdrop-contrast":[W,X,q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,W,X,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[W,X,q]}],"backdrop-invert":[{"backdrop-invert":[``,W,X,q]}],"backdrop-opacity":[{"backdrop-opacity":[W,X,q]}],"backdrop-saturate":[{"backdrop-saturate":[W,X,q]}],"backdrop-sepia":[{"backdrop-sepia":[``,W,X,q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,X,q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[W,`initial`,X,q]}],ease:[{ease:[`linear`,`initial`,g,X,q]}],delay:[{delay:[W,X,q]}],animate:[{animate:[`none`,_,X,q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[m,X,q]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:R()}],"rotate-x":[{"rotate-x":R()}],"rotate-y":[{"rotate-y":R()}],"rotate-z":[{"rotate-z":R()}],scale:[{scale:z()}],"scale-x":[{"scale-x":z()}],"scale-y":[{"scale-y":z()}],"scale-z":[{"scale-z":z()}],"scale-3d":[`scale-3d`],skew:[{skew:V()}],"skew-x":[{"skew-x":V()}],"skew-y":[{"skew-y":V()}],transform:[{transform:[X,q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:H()}],"translate-x":[{"translate-x":H()}],"translate-y":[{"translate-y":H()}],"translate-z":[{"translate-z":H()}],"translate-none":[`translate-none`],accent:[{accent:k()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,X,q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,X,q]}],fill:[{fill:[`none`,...k()]}],"stroke-w":[{stroke:[W,Z,J,Ce]}],stroke:[{stroke:[`none`,...k()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function Ue(...e){return He(r(e))}function We(e,t){let n=[];if(t<=5)for(let e=1;e<=t;e++)n.push(e);else if(n.push(1),e<=3){for(let e=2;e<=4;e++)n.push(e);n.push(`...`,t)}else if(e>=t-2){n.push(`...`);for(let e=t-3;e<=t;e++)n.push(e)}else{n.push(`...`);for(let t=e-1;t<=e+1;t++)n.push(t);n.push(`...`,t)}return n}var Ge=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Ke=r,qe=(e,t)=>n=>{if(t?.variants==null)return Ke(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Ge(t)||Ge(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Ke(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Je=qe(`inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-none transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/90`,destructive:`bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40`,outline:`border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2 has-[>svg]:px-3`,xs:`h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5`,lg:`h-10 rounded-md px-6 has-[>svg]:px-4`,icon:`size-9`,"icon-xs":`size-6 rounded-md [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-8`,"icon-lg":`size-10`}},defaultVariants:{variant:`default`,size:`default`}});function Ye({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i}){return(0,c.jsx)(r?u:`button`,{className:Ue(Je({variant:t,size:n,className:e})),"data-size":n,"data-slot":`button`,"data-variant":t,...i})}export{We as a,f as c,Ue as i,o as l,Je as n,u as o,qe as r,l as s,Ye as t,s as u}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";import{t as r}from"./clsx-D9aGYY3V.js";var i=e(t(),1);function a(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function o(...e){return t=>{let n=!1,r=e.map(e=>{let r=a(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t{let{children:r,...a}=e,o=i.Children.toArray(r),s=o.find(p);if(s){let e=s.props.children,r=o.map(t=>t===s?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,c.jsx)(t,{...a,ref:n,children:i.isValidElement(e)?i.cloneElement(e,void 0,r):null})}return(0,c.jsx)(t,{...a,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var u=l(`Slot`);function ee(e){let t=i.forwardRef((e,t)=>{let{children:n,...r}=e;if(i.isValidElement(n)){let e=h(n),a=m(r,n.props);return n.type!==i.Fragment&&(a.ref=t?o(t,e):e),i.cloneElement(n,a)}return i.Children.count(n)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var d=Symbol(`radix.slottable`);function f(e){let t=({children:e})=>(0,c.jsx)(c.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=d,t}function p(e){return i.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===d}function m(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function h(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var g=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t({classGroupId:e,validator:t}),v=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),y=`-`,b=[],te=`arbitrary..`,ne=e=>{let t=re(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return S(e);let n=e.split(y);return x(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?g(i,t):t:i||b}return n[e]||b}}},x=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=x(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(y):e.slice(t).join(y),s=a.length;for(let e=0;ee.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?te+r:void 0})(),re=e=>{let{theme:t,classGroups:n}=e;return ie(n,t)},ie=(e,t)=>{let n=v();for(let r in e){let i=e[r];C(i,n,r,t)}return n},C=(e,t,n,r)=>{let i=e.length;for(let a=0;a{if(typeof e==`string`){w(e,t,n);return}if(typeof e==`function`){T(e,t,n,r);return}E(e,t,n,r)},w=(e,t,n)=>{let r=e===``?t:D(t,e);r.classGroupId=n},T=(e,t,n,r)=>{if(O(e)){C(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(_(n,e))},E=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e{let n=e,r=t.split(y),i=r.length;for(let e=0;e`isThemeGetter`in e&&e.isThemeGetter===!0,oe=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},k=`!`,A=`:`,se=[],j=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),M=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;si?a-i:void 0;return j(t,l,c,u)};if(t){let e=t+A,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):j(se,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},N=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},P=e=>({cache:oe(e.cacheSize),parseClassName:M(e),sortModifiers:N(e),...ne(e)}),F=/\s+/,ce=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(F),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:ee,baseClassName:d,maybePostfixModifierPosition:f}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let p=!!f,m=r(p?d.substring(0,f):d);if(!m){if(!p){c=t+(c.length>0?` `+c:c);continue}if(m=r(d),!m){c=t+(c.length>0?` `+c:c);continue}p=!1}let h=u.length===0?``:u.length===1?u[0]:a(u).join(`:`),g=ee?h+k:h,_=g+m;if(o.indexOf(_)>-1)continue;o.push(_);let v=i(m,p);for(let e=0;e0?` `+c:c)}return c},I=(...e)=>{let t=0,n,r,i=``;for(;t{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r{let n,r,i,a,o=o=>(n=P(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=ce(e,n);return i(e,a),a};return a=o,(...e)=>a(I(...e))},z=[],B=e=>{let t=t=>t[e]||z;return t.isThemeGetter=!0,t},V=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,H=/^\((?:(\w[\w-]*):)?(.+)\)$/i,le=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ue=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,de=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,fe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,pe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,me=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,U=e=>le.test(e),W=e=>!!e&&!Number.isNaN(Number(e)),G=e=>!!e&&Number.isInteger(Number(e)),he=e=>e.endsWith(`%`)&&W(e.slice(0,-1)),K=e=>ue.test(e),ge=()=>!0,_e=e=>de.test(e)&&!fe.test(e),ve=()=>!1,ye=e=>pe.test(e),be=e=>me.test(e),xe=e=>!q(e)&&!X(e),Se=e=>Q(e,Ie,ve),q=e=>V.test(e),J=e=>Q(e,Le,_e),Ce=e=>Q(e,Re,W),we=e=>Q(e,Be,ge),Te=e=>Q(e,ze,ve),Ee=e=>Q(e,Pe,ve),De=e=>Q(e,Fe,be),Y=e=>Q(e,Ve,ye),X=e=>H.test(e),Z=e=>$(e,Le),Oe=e=>$(e,ze),ke=e=>$(e,Pe),Ae=e=>$(e,Ie),je=e=>$(e,Fe),Me=e=>$(e,Ve,!0),Ne=e=>$(e,Be,!0),Q=(e,t,n)=>{let r=V.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},$=(e,t,n=!1)=>{let r=H.exec(e);return r?r[1]?t(r[1]):n:!1},Pe=e=>e===`position`||e===`percentage`,Fe=e=>e===`image`||e===`url`,Ie=e=>e===`length`||e===`size`||e===`bg-size`,Le=e=>e===`length`,Re=e=>e===`number`,ze=e=>e===`family-name`,Be=e=>e===`number`||e===`weight`,Ve=e=>e===`shadow`,He=R(()=>{let e=B(`color`),t=B(`font`),n=B(`text`),r=B(`font-weight`),i=B(`tracking`),a=B(`leading`),o=B(`breakpoint`),s=B(`container`),c=B(`spacing`),l=B(`radius`),u=B(`shadow`),ee=B(`inset-shadow`),d=B(`text-shadow`),f=B(`drop-shadow`),p=B(`blur`),m=B(`perspective`),h=B(`aspect`),g=B(`ease`),_=B(`animate`),v=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],y=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],b=()=>[...y(),X,q],te=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],ne=()=>[`auto`,`contain`,`none`],x=()=>[X,q,c],S=()=>[U,`full`,`auto`,...x()],re=()=>[G,`none`,`subgrid`,X,q],ie=()=>[`auto`,{span:[`full`,G,X,q]},G,X,q],C=()=>[G,`auto`,X,q],ae=()=>[`auto`,`min`,`max`,`fr`,X,q],w=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],T=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],E=()=>[`auto`,...x()],D=()=>[U,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...x()],O=()=>[U,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...x()],oe=()=>[U,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...x()],k=()=>[e,X,q],A=()=>[...y(),ke,Ee,{position:[X,q]}],se=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],j=()=>[`auto`,`cover`,`contain`,Ae,Se,{size:[X,q]}],M=()=>[he,Z,J],N=()=>[``,`none`,`full`,l,X,q],P=()=>[``,W,Z,J],F=()=>[`solid`,`dashed`,`dotted`,`double`],ce=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],I=()=>[W,he,ke,Ee],L=()=>[``,`none`,p,X,q],R=()=>[`none`,W,X,q],z=()=>[`none`,W,X,q],V=()=>[W,X,q],H=()=>[U,`full`,...x()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[K],breakpoint:[K],color:[ge],container:[K],"drop-shadow":[K],ease:[`in`,`out`,`in-out`],font:[xe],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[K],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[K],shadow:[K],spacing:[`px`,W],text:[K],"text-shadow":[K],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,U,q,X,h]}],container:[`container`],columns:[{columns:[W,q,X,s]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:b()}],overflow:[{overflow:te()}],"overflow-x":[{"overflow-x":te()}],"overflow-y":[{"overflow-y":te()}],overscroll:[{overscroll:ne()}],"overscroll-x":[{"overscroll-x":ne()}],"overscroll-y":[{"overscroll-y":ne()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:S()}],"inset-x":[{"inset-x":S()}],"inset-y":[{"inset-y":S()}],start:[{"inset-s":S(),start:S()}],end:[{"inset-e":S(),end:S()}],"inset-bs":[{"inset-bs":S()}],"inset-be":[{"inset-be":S()}],top:[{top:S()}],right:[{right:S()}],bottom:[{bottom:S()}],left:[{left:S()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[G,`auto`,X,q]}],basis:[{basis:[U,`full`,`auto`,s,...x()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[W,U,`auto`,`initial`,`none`,q]}],grow:[{grow:[``,W,X,q]}],shrink:[{shrink:[``,W,X,q]}],order:[{order:[G,`first`,`last`,`none`,X,q]}],"grid-cols":[{"grid-cols":re()}],"col-start-end":[{col:ie()}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":re()}],"row-start-end":[{row:ie()}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ae()}],"auto-rows":[{"auto-rows":ae()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...w(),`normal`]}],"justify-items":[{"justify-items":[...T(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...T()]}],"align-content":[{content:[`normal`,...w()]}],"align-items":[{items:[...T(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...T(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":w()}],"place-items":[{"place-items":[...T(),`baseline`]}],"place-self":[{"place-self":[`auto`,...T()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mbs:[{mbs:E()}],mbe:[{mbe:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":x()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":x()}],"space-y-reverse":[`space-y-reverse`],size:[{size:D()}],"inline-size":[{inline:[`auto`,...O()]}],"min-inline-size":[{"min-inline":[`auto`,...O()]}],"max-inline-size":[{"max-inline":[`none`,...O()]}],"block-size":[{block:[`auto`,...oe()]}],"min-block-size":[{"min-block":[`auto`,...oe()]}],"max-block-size":[{"max-block":[`none`,...oe()]}],w:[{w:[s,`screen`,...D()]}],"min-w":[{"min-w":[s,`screen`,`none`,...D()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...D()]}],h:[{h:[`screen`,`lh`,...D()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...D()]}],"max-h":[{"max-h":[`screen`,`lh`,...D()]}],"font-size":[{text:[`base`,n,Z,J]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Ne,we]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,he,q]}],"font-family":[{font:[Oe,Te,t]}],"font-features":[{"font-features":[q]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,X,q]}],"line-clamp":[{"line-clamp":[W,`none`,X,Ce]}],leading:[{leading:[a,...x()]}],"list-image":[{"list-image":[`none`,X,q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,X,q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...F(),`wavy`]}],"text-decoration-thickness":[{decoration:[W,`from-font`,`auto`,X,J]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[W,`auto`,X,q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:x()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,X,q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,X,q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:se()}],"bg-size":[{bg:j()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},G,X,q],radial:[``,X,q],conic:[G,X,q]},je,De]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:M()}],"gradient-via-pos":[{via:M()}],"gradient-to-pos":[{to:M()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:N()}],"rounded-s":[{"rounded-s":N()}],"rounded-e":[{"rounded-e":N()}],"rounded-t":[{"rounded-t":N()}],"rounded-r":[{"rounded-r":N()}],"rounded-b":[{"rounded-b":N()}],"rounded-l":[{"rounded-l":N()}],"rounded-ss":[{"rounded-ss":N()}],"rounded-se":[{"rounded-se":N()}],"rounded-ee":[{"rounded-ee":N()}],"rounded-es":[{"rounded-es":N()}],"rounded-tl":[{"rounded-tl":N()}],"rounded-tr":[{"rounded-tr":N()}],"rounded-br":[{"rounded-br":N()}],"rounded-bl":[{"rounded-bl":N()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-bs":[{"border-bs":P()}],"border-w-be":[{"border-be":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":P()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...F(),`hidden`,`none`]}],"divide-style":[{divide:[...F(),`hidden`,`none`]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-bs":[{"border-bs":k()}],"border-color-be":[{"border-be":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...F(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[W,X,q]}],"outline-w":[{outline:[``,W,Z,J]}],"outline-color":[{outline:k()}],shadow:[{shadow:[``,`none`,u,Me,Y]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":[`none`,ee,Me,Y]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:P()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[W,J]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":[`none`,d,Me,Y]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[W,X,q]}],"mix-blend":[{"mix-blend":[...ce(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ce()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[W]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[X,q]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":y()}],"mask-image-conic-pos":[{"mask-conic":[W]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:se()}],"mask-size":[{mask:j()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,X,q]}],filter:[{filter:[``,`none`,X,q]}],blur:[{blur:L()}],brightness:[{brightness:[W,X,q]}],contrast:[{contrast:[W,X,q]}],"drop-shadow":[{"drop-shadow":[``,`none`,f,Me,Y]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:[``,W,X,q]}],"hue-rotate":[{"hue-rotate":[W,X,q]}],invert:[{invert:[``,W,X,q]}],saturate:[{saturate:[W,X,q]}],sepia:[{sepia:[``,W,X,q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,X,q]}],"backdrop-blur":[{"backdrop-blur":L()}],"backdrop-brightness":[{"backdrop-brightness":[W,X,q]}],"backdrop-contrast":[{"backdrop-contrast":[W,X,q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,W,X,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[W,X,q]}],"backdrop-invert":[{"backdrop-invert":[``,W,X,q]}],"backdrop-opacity":[{"backdrop-opacity":[W,X,q]}],"backdrop-saturate":[{"backdrop-saturate":[W,X,q]}],"backdrop-sepia":[{"backdrop-sepia":[``,W,X,q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,X,q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[W,`initial`,X,q]}],ease:[{ease:[`linear`,`initial`,g,X,q]}],delay:[{delay:[W,X,q]}],animate:[{animate:[`none`,_,X,q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[m,X,q]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:R()}],"rotate-x":[{"rotate-x":R()}],"rotate-y":[{"rotate-y":R()}],"rotate-z":[{"rotate-z":R()}],scale:[{scale:z()}],"scale-x":[{"scale-x":z()}],"scale-y":[{"scale-y":z()}],"scale-z":[{"scale-z":z()}],"scale-3d":[`scale-3d`],skew:[{skew:V()}],"skew-x":[{"skew-x":V()}],"skew-y":[{"skew-y":V()}],transform:[{transform:[X,q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:H()}],"translate-x":[{"translate-x":H()}],"translate-y":[{"translate-y":H()}],"translate-z":[{"translate-z":H()}],"translate-none":[`translate-none`],accent:[{accent:k()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,X,q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,X,q]}],fill:[{fill:[`none`,...k()]}],"stroke-w":[{stroke:[W,Z,J,Ce]}],stroke:[{stroke:[`none`,...k()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function Ue(...e){return He(r(e))}function We(e,t){let n=[];if(t<=5)for(let e=1;e<=t;e++)n.push(e);else if(n.push(1),e<=3){for(let e=2;e<=4;e++)n.push(e);n.push(`...`,t)}else if(e>=t-2){n.push(`...`);for(let e=t-3;e<=t;e++)n.push(e)}else{n.push(`...`);for(let t=e-1;t<=e+1;t++)n.push(t);n.push(`...`,t)}return n}var Ge=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Ke=r,qe=(e,t)=>n=>{if(t?.variants==null)return Ke(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Ge(t)||Ge(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Ke(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Je=qe(`inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-none transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/90`,destructive:`bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40`,outline:`border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2 has-[>svg]:px-3`,xs:`h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5`,lg:`h-10 rounded-md px-6 has-[>svg]:px-4`,icon:`size-9`,"icon-xs":`size-6 rounded-md [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-8`,"icon-lg":`size-10`}},defaultVariants:{variant:`default`,size:`default`}});function Ye({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i}){return(0,c.jsx)(r?u:`button`,{className:Ue(Je({variant:t,size:n,className:e})),"data-size":n,"data-slot":`button`,"data-variant":t,...i})}export{We as a,f as c,Ue as i,o as l,Je as n,u as o,qe as r,l as s,Ye as t,s as u}; \ No newline at end of file diff --git a/src/www/assets/card-DiF5YaRi.js b/src/www/assets/card-wpWrYqj9.js similarity index 86% rename from src/www/assets/card-DiF5YaRi.js rename to src/www/assets/card-wpWrYqj9.js index 9365ec7..cda426c 100644 --- a/src/www/assets/card-DiF5YaRi.js +++ b/src/www/assets/card-wpWrYqj9.js @@ -1 +1 @@ -import{tm as e}from"./messages-BOatyqUm.js";import{i as t}from"./button-C_NDYaz8.js";var n=e();function r({className:e,...r}){return(0,n.jsx)(`div`,{className:t(`flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm`,e),"data-slot":`card`,...r})}function i({className:e,...r}){return(0,n.jsx)(`div`,{className:t(`@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6`,e),"data-slot":`card-header`,...r})}function a({className:e,...r}){return(0,n.jsx)(`div`,{className:t(`font-semibold leading-none`,e),"data-slot":`card-title`,...r})}function o({className:e,...r}){return(0,n.jsx)(`div`,{className:t(`text-muted-foreground text-sm`,e),"data-slot":`card-description`,...r})}function s({className:e,...r}){return(0,n.jsx)(`div`,{className:t(`px-6`,e),"data-slot":`card-content`,...r})}export{a,i,s as n,o as r,r as t}; \ No newline at end of file +import{tm as e}from"./messages-CL4J6BaJ.js";import{i as t}from"./button-NLSeBFht.js";var n=e();function r({className:e,...r}){return(0,n.jsx)(`div`,{className:t(`flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm`,e),"data-slot":`card`,...r})}function i({className:e,...r}){return(0,n.jsx)(`div`,{className:t(`@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6`,e),"data-slot":`card-header`,...r})}function a({className:e,...r}){return(0,n.jsx)(`div`,{className:t(`font-semibold leading-none`,e),"data-slot":`card-title`,...r})}function o({className:e,...r}){return(0,n.jsx)(`div`,{className:t(`text-muted-foreground text-sm`,e),"data-slot":`card-description`,...r})}function s({className:e,...r}){return(0,n.jsx)(`div`,{className:t(`px-6`,e),"data-slot":`card-content`,...r})}export{a,i,s as n,o as r,r as t}; \ No newline at end of file diff --git a/src/www/assets/chains-BMgOL_QE.js b/src/www/assets/chains-CeMUj04i.js similarity index 91% rename from src/www/assets/chains-BMgOL_QE.js rename to src/www/assets/chains-CeMUj04i.js index 8dbaab8..572648e 100644 --- a/src/www/assets/chains-BMgOL_QE.js +++ b/src/www/assets/chains-CeMUj04i.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{a as t,d as n,f as r}from"./auth-store-De4Y7PFV.js";import{t as i}from"./router-Z0tUklFK.js";import{t as a}from"./react-CO2uhaBc.js";import{$a as o,Co as s,Do as c,Eo as l,Fo as u,Go as d,Ko as f,Oo as p,Qa as m,Qo as h,So as g,To as _,Xa as v,Ya as y,Za as b,_o as ee,ao as x,bo as te,co as ne,cs as S,do as C,eo as w,fo as T,go as re,ho as ie,io as E,is as D,ko as O,lo as ae,mo as k,no as A,oo as oe,po as se,qo as ce,ro as le,so as ue,ss as de,tm as fe,to as pe,uo as me,vo as he,wo as ge,xo as _e,yo as ve}from"./messages-BOatyqUm.js";import{B as ye,H as be,o as j,r as xe}from"./search-provider-C-_FQI9C.js";import{i as M,t as N}from"./button-C_NDYaz8.js";import{t as Se}from"./checkbox-CTHgcB3t.js";import{a as P,c as F,l as Ce,r as we,s as Te,t as Ee}from"./dropdown-menu-DzCIpsuG.js";import{a as De,i as Oe,n as ke,r as Ae,t as je}from"./select-CzebumOF.js";import{t as I}from"./separator-CsUemQNs.js";import{t as L}from"./switch-CgoJjvdz.js";import{a as R,c as Me,d as Ne,f as Pe,l as Fe,n as Ie,o as Le,r as Re,s as ze,t as Be,u as Ve}from"./data-table-1LQSBhN2.js";import{t as He}from"./arrow-left-BpZwGREZ.js";import{t as z}from"./skeleton-CmDjDV1O.js";import{t as Ue}from"./ellipsis-74ly4-Wm.js";import{t as We}from"./empty-state-CxE4wU3V.js";import{n as Ge,t as Ke}from"./main-C1R3Hvq1.js";import{n as qe,t as Je}from"./chains-store-DCzO87jZ.js";import{n as Ye,t as Xe}from"./trash-2-9I8lAjeE.js";import{l as Ze}from"./command-B_SlhXkX.js";import{i as Qe,o as $e,r as et,s as tt,t as nt}from"./dialog-CZ-2RPb-.js";import{n as B}from"./dist-JOUh6qvR.js";import{a as rt,c as V,n as H,s as it}from"./zod-rwFXxHlg.js";import{a as U,c as at,i as W,l as ot,n as G,o as K,s as q,t as st}from"./form-KfFEakes.js";import{t as J}from"./input-8zzM34r5.js";import{t as ct}from"./page-header-GTtyZFBB.js";import{t as Y}from"./badge-VJlwwTW5.js";import{t as lt}from"./coming-soon-dialog-B34F88bO.js";var X=e(a(),1),Z=fe(),ut=it({network:V().min(1,m()),symbol:V().min(1,b()),contract_address:V().optional().default(``),decimals:H().min(0,v()).default(6),min_amount:H().min(0,y()).default(0),enabled:rt().default(!0)});function dt({open:e,onOpenChange:t,currentRow:n,onSuccess:r,defaultNetwork:i,onCreate:a,onUpdate:s,chains:c}){let l=ot({resolver:at(ut),defaultValues:{network:``,symbol:``,contract_address:``,decimals:6,min_amount:0,enabled:!0}}),d;d=c?.length?c:i?[{network:i,display_name:i}]:[],(0,X.useEffect)(()=>{e&&l.reset({network:n?.network??i??d[0]?.network??``,symbol:n?.symbol??``,contract_address:n?.contract_address??``,decimals:n?.decimals??6,min_amount:n?.min_amount??0,enabled:n?.enabled??!0})},[e,n,i,d,l]);async function f(e){n?.id?await s(e):await a(e),t(!1),await r?.()}let p=l.formState.isSubmitting;return(0,Z.jsx)(nt,{onOpenChange:t,open:e,children:(0,Z.jsxs)(et,{children:[(0,Z.jsxs)($e,{children:[(0,Z.jsx)(tt,{children:n?ae():ne()}),(0,Z.jsx)(Qe,{children:n?ue():oe()})]}),(0,Z.jsx)(st,{...l,children:(0,Z.jsxs)(`form`,{className:`space-y-4`,onSubmit:l.handleSubmit(f),children:[(0,Z.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,Z.jsx)(W,{control:l.control,name:`network`,render:({field:e})=>(0,Z.jsxs)(U,{children:[(0,Z.jsx)(K,{children:S()}),(0,Z.jsxs)(je,{disabled:!!n,onValueChange:e.onChange,value:e.value,children:[(0,Z.jsx)(G,{children:(0,Z.jsx)(Oe,{className:`w-full`,children:(0,Z.jsx)(De,{placeholder:de()})})}),(0,Z.jsx)(ke,{children:d.map(e=>(0,Z.jsx)(Ae,{value:e.network,children:e.display_name??e.network},e.network))})]}),(0,Z.jsx)(q,{})]})}),(0,Z.jsx)(W,{control:l.control,name:`symbol`,render:({field:e})=>(0,Z.jsxs)(U,{children:[(0,Z.jsx)(K,{children:x()}),(0,Z.jsx)(G,{children:(0,Z.jsx)(J,{placeholder:`USDT`,...e,disabled:!!n})}),(0,Z.jsx)(q,{})]})})]}),(0,Z.jsx)(`div`,{className:`rounded-md border border-dashed p-3 text-muted-foreground text-sm`,children:E()}),(0,Z.jsx)(W,{control:l.control,name:`contract_address`,render:({field:e})=>(0,Z.jsxs)(U,{children:[(0,Z.jsx)(K,{children:le()}),(0,Z.jsx)(G,{children:(0,Z.jsx)(J,{placeholder:`TR7NHqje...`,...e})}),(0,Z.jsx)(q,{})]})}),(0,Z.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,Z.jsx)(W,{control:l.control,name:`decimals`,render:({field:e})=>(0,Z.jsxs)(U,{children:[(0,Z.jsx)(K,{children:A()}),(0,Z.jsx)(G,{children:(0,Z.jsx)(J,{name:e.name,onBlur:e.onBlur,onChange:t=>e.onChange(t.target.value),ref:e.ref,type:`number`,value:String(e.value??``)})}),(0,Z.jsx)(q,{})]})}),(0,Z.jsx)(W,{control:l.control,name:`min_amount`,render:({field:e})=>(0,Z.jsxs)(U,{children:[(0,Z.jsx)(K,{children:pe()}),(0,Z.jsx)(G,{children:(0,Z.jsx)(J,{name:e.name,onBlur:e.onBlur,onChange:t=>e.onChange(t.target.value),ref:e.ref,step:`0.000001`,type:`number`,value:String(e.value??``)})}),(0,Z.jsx)(q,{})]})})]}),(0,Z.jsx)(W,{control:l.control,name:`enabled`,render:({field:e})=>(0,Z.jsxs)(U,{className:`flex flex-row items-start space-x-3 space-y-0 rounded-md border p-4 rtl:space-x-reverse`,children:[(0,Z.jsx)(G,{children:(0,Z.jsx)(Se,{checked:e.value,onCheckedChange:t=>e.onChange(!!t)})}),(0,Z.jsx)(`div`,{className:`space-y-1 leading-none`,children:(0,Z.jsx)(K,{children:h()})})]})}),(0,Z.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,Z.jsx)(N,{onClick:()=>t(!1),type:`button`,variant:`outline`,children:D()}),(0,Z.jsx)(N,{disabled:p,type:`submit`,children:p?u():n?o():w()})]})]})})]})})}function ft(e){return[{id:`switch`,header:({column:e})=>(0,Z.jsx)(R,{column:e,title:h()}),cell:({row:t})=>(0,Z.jsx)(L,{checked:t.original.enabled===!0,onCheckedChange:()=>e(t.original.enabled?`disable`:`enable`,t.original)}),enableSorting:!1,enableHiding:!1,meta:{label:h(),skeleton:`switch`,sticky:`left`,th:{className:M(`rounded-tl-[inherit]`)}}},{accessorKey:`symbol`,header:({column:e})=>(0,Z.jsx)(R,{column:e,title:T()}),cell:({row:e})=>(0,Z.jsx)(`div`,{className:`font-medium`,children:e.original.symbol??`-`}),enableHiding:!1,meta:{label:T(),skeleton:`short`}},{accessorKey:`network`,header:({column:e})=>(0,Z.jsx)(R,{column:e,title:S()}),meta:{label:S(),skeleton:`short`}},{accessorKey:`created_at`,header:({column:e})=>(0,Z.jsx)(R,{column:e,title:ce()}),cell:({row:e})=>j(e.original.created_at),meta:{label:ce(),skeleton:`date`}},{accessorKey:`updated_at`,header:({column:e})=>(0,Z.jsx)(R,{column:e,title:f()}),cell:({row:e})=>j(e.original.updated_at),meta:{label:f(),skeleton:`date`}},{id:`actions`,enableHiding:!1,meta:{label:d(),skeleton:`action`,sticky:`right`},cell:({row:t})=>(0,Z.jsxs)(Ee,{modal:!1,children:[(0,Z.jsx)(Ce,{asChild:!0,children:(0,Z.jsxs)(N,{className:`flex h-8 w-8 p-0 data-[state=open]:bg-muted`,variant:`ghost`,children:[(0,Z.jsx)(Ue,{className:`h-4 w-4`}),(0,Z.jsx)(`span`,{className:`sr-only`,children:`Open menu`})]})}),(0,Z.jsxs)(we,{align:`end`,className:`w-40`,children:[(0,Z.jsxs)(P,{onClick:()=>e(`edit`,t.original),children:[C(),(0,Z.jsx)(F,{children:(0,Z.jsx)(qe,{size:16})})]}),(0,Z.jsx)(Te,{}),(0,Z.jsxs)(P,{onClick:()=>e(`delete`,t.original),variant:`destructive`,children:[me(),(0,Z.jsx)(F,{children:(0,Z.jsx)(Xe,{size:16})})]})]})]})}]}function pt({data:e,isLoading:t,onAction:n,onRefresh:r}){let[i,a]=(0,X.useState)([]),[o,s]=(0,X.useState)(``),[c,l]=(0,X.useState)([]),[u,d]=(0,X.useState)({pageIndex:0,pageSize:10}),f=Le({data:e,columns:(0,X.useMemo)(()=>ft(n),[n]),state:{sorting:i,columnFilters:c,globalFilter:o,pagination:u},onSortingChange:a,onColumnFiltersChange:l,onGlobalFilterChange:s,onPaginationChange:d,globalFilterFn:(e,t,n)=>{let r=String(n).toLowerCase();return(e.original.symbol??``).toLowerCase().includes(r)||(e.original.contract_address??``).toLowerCase().includes(r)},getCoreRowModel:ze(),getFilteredRowModel:Ve(),getPaginationRowModel:Ne(),getSortedRowModel:Pe(),getFacetedRowModel:Me(),getFacetedUniqueValues:Fe()});return(0,X.useEffect)(()=>{let e=f.getPageCount();e>0&&u.pageIndex>e-1&&d(e=>({...e,pageIndex:0}))},[f,u.pageIndex]),(0,Z.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,Z.jsx)(Be,{onRefresh:r,searchKey:`symbol`,searchPlaceholder:k(),table:f}),(0,Z.jsx)(Re,{emptyText:se(),loading:t,table:f}),(0,Z.jsx)(Ie,{className:`mt-auto`,table:f})]})}var Q=new n({chainTokens:[],loading:!1});function mt(e){Q.setState(t=>({...t,chainTokens:e}))}function ht(e){Q.setState(t=>({...t,loading:e}))}function gt(){let e=r(Q,e=>e.chainTokens),n=r(Q,e=>e.loading),i=t.useQuery(`get`,`/admin/api/v1/chain-tokens`);return(0,X.useEffect)(()=>{ht(i.isLoading)},[i.isLoading]),(0,X.useEffect)(()=>{i.data?.data&&mt(i.data.data)},[i.data?.data]),{chainTokens:e,loading:n,refetch:i.refetch}}var _t=[`chain-1`,`chain-2`,`chain-3`,`chain-4`,`chain-5`];function $({active:e,children:t,onClick:n}){return(0,Z.jsx)(`button`,{className:M(`w-full cursor-pointer rounded-lg px-3 py-3 text-left transition-colors hover:bg-accent hover:text-accent-foreground`,e&&`bg-muted`),onClick:n,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),n())},type:`button`,children:t})}function vt({chains:e,isLoading:t,keyword:n,onKeywordChange:r,selectedPanel:i,onSelect:a,onToggle:o,totalTokens:u,hiddenOnMobile:d}){return(0,Z.jsxs)(`div`,{className:M(`flex w-full flex-col gap-2 sm:w-56 lg:w-72 2xl:w-80`,d&&`hidden sm:flex`),children:[(0,Z.jsxs)(`div`,{className:`sticky top-0 z-10 -mx-4 bg-background px-4 pb-3 shadow-md sm:static sm:z-auto sm:mx-0 sm:p-0 sm:shadow-none`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center justify-between py-2`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Z.jsx)(`h1`,{className:`font-bold text-2xl`,children:O()}),(0,Z.jsx)(ye,{size:20})]}),(0,Z.jsx)(Y,{variant:`secondary`,children:p({count:String(e.length)})})]}),(0,Z.jsxs)(`div`,{className:`relative block`,children:[(0,Z.jsx)(Ze,{className:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),(0,Z.jsx)(J,{className:`pl-9`,onChange:e=>r(e.target.value),placeholder:c(),value:n})]})]}),(0,Z.jsxs)(xe,{className:`-mx-3 h-full overflow-auto p-3`,children:[(0,Z.jsx)($,{active:i===`overview`,onClick:()=>a(`overview`),children:(0,Z.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,Z.jsxs)(`div`,{className:`min-w-0`,children:[(0,Z.jsx)(`div`,{className:`font-medium`,children:l()}),(0,Z.jsx)(`div`,{className:`mt-1 text-muted-foreground text-xs`,children:_({chains:String(e.length),tokens:String(u)})})]}),(0,Z.jsx)(be,{className:`mt-0.5 size-4 text-muted-foreground`})]})}),(0,Z.jsx)(I,{className:`my-1`}),t?_t.map(e=>(0,Z.jsxs)(`div`,{className:`px-3 py-3`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,Z.jsx)(z,{className:`h-4 w-24`}),(0,Z.jsx)(z,{className:`h-5 w-9 rounded-full`})]}),(0,Z.jsxs)(`div`,{className:`mt-2 flex items-center justify-between gap-2`,children:[(0,Z.jsx)(z,{className:`h-3 w-28`}),(0,Z.jsx)(z,{className:`h-5 w-12 rounded-full`})]})]},e)):e.map((t,n)=>(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)($,{active:i===t.network,onClick:()=>a(t.network??`overview`),children:(0,Z.jsx)(`div`,{className:`flex items-start gap-3`,children:(0,Z.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,Z.jsxs)(`div`,{className:`flex items-start justify-between gap-2`,children:[(0,Z.jsx)(`div`,{className:`min-w-0`,children:(0,Z.jsx)(`div`,{className:`truncate font-medium`,children:t.display_name})}),(0,Z.jsx)(L,{checked:t.enabled===!0,onCheckedChange:e=>o(t,e),onClick:e=>e.stopPropagation()})]}),(0,Z.jsxs)(`div`,{className:`mt-1 flex items-center justify-between gap-2`,children:[(0,Z.jsx)(`span`,{className:`text-muted-foreground text-xs`,children:ge()}),(0,Z.jsx)(Y,{className:`shrink-0 text-xs`,variant:`outline`,children:t.network})]})]})})}),n{let t=f.trim().toLowerCase();return t?e.filter(e=>[e.display_name,e.network].filter(Boolean).some(e=>String(e).toLowerCase().includes(t))):e},[e,f]),E=(0,X.useMemo)(()=>m===`overview`?a:a.filter(e=>e.network===m),[a,m]);async function D(){await Promise.all([i.invalidateQueries({queryKey:[`get`,`/admin/api/v1/chains`]}),i.invalidateQueries({queryKey:[`get`,`/admin/api/v1/chain-tokens`]})])}async function O(e,t){e.network&&(await d.mutateAsync({params:{path:{network:e.network}},body:{display_name:e.display_name,enabled:t,min_confirmations:e.min_confirmations,scan_interval_sec:e.scan_interval_sec}}),B.success(te({status:t?ve():he()})),await D())}async function ae(e,t){if(e===`edit`||e===`delete`){x(!0);return}if(e===`enable`||e===`disable`){if(!t.id)return;await u.mutateAsync({params:{path:{id:t.id}},body:{enabled:e===`enable`}}),B.success(ee()),await D();return}}let k=g!==null,A=n||o;return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Ge,{fixed:!0}),(0,Z.jsx)(Ke,{fixed:!0,children:(0,Z.jsxs)(`section`,{className:`flex h-full gap-6`,children:[(0,Z.jsx)(vt,{chains:T,hiddenOnMobile:k,isLoading:A,keyword:f,onKeywordChange:p,onSelect:e=>{h(e),_(e)},onToggle:O,selectedPanel:m,totalTokens:a.length}),(0,Z.jsx)(`div`,{className:M(`absolute inset-0 start-full z-50 hidden w-full flex-1 flex-col border bg-background shadow-xs sm:static sm:z-auto sm:flex sm:min-w-0 sm:rounded-md sm:border-0 sm:bg-transparent sm:shadow-none`,k&&`inset-s-0 flex`),children:(0,Z.jsx)(yt,{isLoading:A,onAction:ae,onBack:()=>_(null),onCreate:()=>x(!0),onRefresh:()=>{r(),s()},tokens:E})})]})}),(0,Z.jsx)(dt,{chains:e.filter(e=>!!e.network).map(e=>({network:e.network,display_name:e.display_name})),currentRow:C,defaultNetwork:ne,onCreate:async e=>{await c.mutateAsync({body:{network:e.network,symbol:e.symbol,contract_address:e.contract_address||void 0,decimals:e.decimals,min_amount:e.min_amount,enabled:e.enabled}})},onOpenChange:e=>{y(e),e||(w(null),S(``))},onSuccess:async()=>{B.success(C?re():ie()),await D()},onUpdate:async e=>{C?.id&&await l.mutateAsync({params:{path:{id:C.id}},body:{contract_address:e.contract_address||void 0,decimals:e.decimals,min_amount:e.min_amount,enabled:e.enabled}})},open:v}),(0,Z.jsx)(lt,{onOpenChange:x,open:b})]})}var xt=bt;export{xt as component}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{a as t,d as n,f as r}from"./auth-store-8ocF_FHU.js";import{t as i}from"./router-xxaOxfVd.js";import{t as a}from"./react-CO2uhaBc.js";import{$a as o,Co as s,Do as c,Eo as l,Fo as u,Go as d,Ko as f,Oo as p,Qa as m,Qo as h,So as g,To as _,Xa as v,Ya as y,Za as b,_o as ee,ao as x,bo as te,co as ne,cs as S,do as C,eo as w,fo as T,go as re,ho as ie,io as E,is as D,ko as O,lo as ae,mo as k,no as A,oo as oe,po as se,qo as ce,ro as le,so as ue,ss as de,tm as fe,to as pe,uo as me,vo as he,wo as ge,xo as _e,yo as ve}from"./messages-CL4J6BaJ.js";import{B as ye,H as be,o as j,r as xe}from"./search-provider-CTRbHqNx.js";import{i as M,t as N}from"./button-NLSeBFht.js";import{t as Se}from"./checkbox-DcRUgRHr.js";import{a as P,c as F,l as Ce,r as we,s as Te,t as Ee}from"./dropdown-menu-D72UcvWG.js";import{a as De,i as Oe,n as ke,r as Ae,t as je}from"./select-D2uO5-De.js";import{t as I}from"./separator-CqhQIQ-B.js";import{t as L}from"./switch-BST3z-JX.js";import{a as R,c as Me,d as Ne,f as Pe,l as Fe,n as Ie,o as Le,r as Re,s as ze,t as Be,u as Ve}from"./data-table-DC6T69tr.js";import{t as He}from"./arrow-left-BpZwGREZ.js";import{t as z}from"./skeleton-B4TLI5_E.js";import{t as Ue}from"./ellipsis-74ly4-Wm.js";import{t as We}from"./empty-state-BtKoq2f4.js";import{n as Ge,t as Ke}from"./main-CTY49s_f.js";import{n as qe,t as Je}from"./chains-store-CMJvgCLb.js";import{n as Ye,t as Xe}from"./trash-2-9I8lAjeE.js";import{l as Ze}from"./command-vy8966UO.js";import{i as Qe,o as $e,r as et,s as tt,t as nt}from"./dialog-CtyiwzAl.js";import{n as B}from"./dist-Dd-sCJIt.js";import{a as rt,c as V,n as H,s as it}from"./zod-rwFXxHlg.js";import{a as U,c as at,i as W,l as ot,n as G,o as K,s as q,t as st}from"./form-C_YekIvK.js";import{t as J}from"./input-DAqep8ZY.js";import{t as ct}from"./page-header-B7O10aw9.js";import{t as Y}from"./badge-BRKB3301.js";import{t as lt}from"./coming-soon-dialog-CN8U5tTP.js";var X=e(a(),1),Z=fe(),ut=it({network:V().min(1,m()),symbol:V().min(1,b()),contract_address:V().optional().default(``),decimals:H().min(0,v()).default(6),min_amount:H().min(0,y()).default(0),enabled:rt().default(!0)});function dt({open:e,onOpenChange:t,currentRow:n,onSuccess:r,defaultNetwork:i,onCreate:a,onUpdate:s,chains:c}){let l=ot({resolver:at(ut),defaultValues:{network:``,symbol:``,contract_address:``,decimals:6,min_amount:0,enabled:!0}}),d;d=c?.length?c:i?[{network:i,display_name:i}]:[],(0,X.useEffect)(()=>{e&&l.reset({network:n?.network??i??d[0]?.network??``,symbol:n?.symbol??``,contract_address:n?.contract_address??``,decimals:n?.decimals??6,min_amount:n?.min_amount??0,enabled:n?.enabled??!0})},[e,n,i,d,l]);async function f(e){n?.id?await s(e):await a(e),t(!1),await r?.()}let p=l.formState.isSubmitting;return(0,Z.jsx)(nt,{onOpenChange:t,open:e,children:(0,Z.jsxs)(et,{children:[(0,Z.jsxs)($e,{children:[(0,Z.jsx)(tt,{children:n?ae():ne()}),(0,Z.jsx)(Qe,{children:n?ue():oe()})]}),(0,Z.jsx)(st,{...l,children:(0,Z.jsxs)(`form`,{className:`space-y-4`,onSubmit:l.handleSubmit(f),children:[(0,Z.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,Z.jsx)(W,{control:l.control,name:`network`,render:({field:e})=>(0,Z.jsxs)(U,{children:[(0,Z.jsx)(K,{children:S()}),(0,Z.jsxs)(je,{disabled:!!n,onValueChange:e.onChange,value:e.value,children:[(0,Z.jsx)(G,{children:(0,Z.jsx)(Oe,{className:`w-full`,children:(0,Z.jsx)(De,{placeholder:de()})})}),(0,Z.jsx)(ke,{children:d.map(e=>(0,Z.jsx)(Ae,{value:e.network,children:e.display_name??e.network},e.network))})]}),(0,Z.jsx)(q,{})]})}),(0,Z.jsx)(W,{control:l.control,name:`symbol`,render:({field:e})=>(0,Z.jsxs)(U,{children:[(0,Z.jsx)(K,{children:x()}),(0,Z.jsx)(G,{children:(0,Z.jsx)(J,{placeholder:`USDT`,...e,disabled:!!n})}),(0,Z.jsx)(q,{})]})})]}),(0,Z.jsx)(`div`,{className:`rounded-md border border-dashed p-3 text-muted-foreground text-sm`,children:E()}),(0,Z.jsx)(W,{control:l.control,name:`contract_address`,render:({field:e})=>(0,Z.jsxs)(U,{children:[(0,Z.jsx)(K,{children:le()}),(0,Z.jsx)(G,{children:(0,Z.jsx)(J,{placeholder:`TR7NHqje...`,...e})}),(0,Z.jsx)(q,{})]})}),(0,Z.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,Z.jsx)(W,{control:l.control,name:`decimals`,render:({field:e})=>(0,Z.jsxs)(U,{children:[(0,Z.jsx)(K,{children:A()}),(0,Z.jsx)(G,{children:(0,Z.jsx)(J,{name:e.name,onBlur:e.onBlur,onChange:t=>e.onChange(t.target.value),ref:e.ref,type:`number`,value:String(e.value??``)})}),(0,Z.jsx)(q,{})]})}),(0,Z.jsx)(W,{control:l.control,name:`min_amount`,render:({field:e})=>(0,Z.jsxs)(U,{children:[(0,Z.jsx)(K,{children:pe()}),(0,Z.jsx)(G,{children:(0,Z.jsx)(J,{name:e.name,onBlur:e.onBlur,onChange:t=>e.onChange(t.target.value),ref:e.ref,step:`0.000001`,type:`number`,value:String(e.value??``)})}),(0,Z.jsx)(q,{})]})})]}),(0,Z.jsx)(W,{control:l.control,name:`enabled`,render:({field:e})=>(0,Z.jsxs)(U,{className:`flex flex-row items-start space-x-3 space-y-0 rounded-md border p-4 rtl:space-x-reverse`,children:[(0,Z.jsx)(G,{children:(0,Z.jsx)(Se,{checked:e.value,onCheckedChange:t=>e.onChange(!!t)})}),(0,Z.jsx)(`div`,{className:`space-y-1 leading-none`,children:(0,Z.jsx)(K,{children:h()})})]})}),(0,Z.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,Z.jsx)(N,{onClick:()=>t(!1),type:`button`,variant:`outline`,children:D()}),(0,Z.jsx)(N,{disabled:p,type:`submit`,children:p?u():n?o():w()})]})]})})]})})}function ft(e){return[{id:`switch`,header:({column:e})=>(0,Z.jsx)(R,{column:e,title:h()}),cell:({row:t})=>(0,Z.jsx)(L,{checked:t.original.enabled===!0,onCheckedChange:()=>e(t.original.enabled?`disable`:`enable`,t.original)}),enableSorting:!1,enableHiding:!1,meta:{label:h(),skeleton:`switch`,sticky:`left`,th:{className:M(`rounded-tl-[inherit]`)}}},{accessorKey:`symbol`,header:({column:e})=>(0,Z.jsx)(R,{column:e,title:T()}),cell:({row:e})=>(0,Z.jsx)(`div`,{className:`font-medium`,children:e.original.symbol??`-`}),enableHiding:!1,meta:{label:T(),skeleton:`short`}},{accessorKey:`network`,header:({column:e})=>(0,Z.jsx)(R,{column:e,title:S()}),meta:{label:S(),skeleton:`short`}},{accessorKey:`created_at`,header:({column:e})=>(0,Z.jsx)(R,{column:e,title:ce()}),cell:({row:e})=>j(e.original.created_at),meta:{label:ce(),skeleton:`date`}},{accessorKey:`updated_at`,header:({column:e})=>(0,Z.jsx)(R,{column:e,title:f()}),cell:({row:e})=>j(e.original.updated_at),meta:{label:f(),skeleton:`date`}},{id:`actions`,enableHiding:!1,meta:{label:d(),skeleton:`action`,sticky:`right`},cell:({row:t})=>(0,Z.jsxs)(Ee,{modal:!1,children:[(0,Z.jsx)(Ce,{asChild:!0,children:(0,Z.jsxs)(N,{className:`flex h-8 w-8 p-0 data-[state=open]:bg-muted`,variant:`ghost`,children:[(0,Z.jsx)(Ue,{className:`h-4 w-4`}),(0,Z.jsx)(`span`,{className:`sr-only`,children:`Open menu`})]})}),(0,Z.jsxs)(we,{align:`end`,className:`w-40`,children:[(0,Z.jsxs)(P,{onClick:()=>e(`edit`,t.original),children:[C(),(0,Z.jsx)(F,{children:(0,Z.jsx)(qe,{size:16})})]}),(0,Z.jsx)(Te,{}),(0,Z.jsxs)(P,{onClick:()=>e(`delete`,t.original),variant:`destructive`,children:[me(),(0,Z.jsx)(F,{children:(0,Z.jsx)(Xe,{size:16})})]})]})]})}]}function pt({data:e,isLoading:t,onAction:n,onRefresh:r}){let[i,a]=(0,X.useState)([]),[o,s]=(0,X.useState)(``),[c,l]=(0,X.useState)([]),[u,d]=(0,X.useState)({pageIndex:0,pageSize:10}),f=Le({data:e,columns:(0,X.useMemo)(()=>ft(n),[n]),state:{sorting:i,columnFilters:c,globalFilter:o,pagination:u},onSortingChange:a,onColumnFiltersChange:l,onGlobalFilterChange:s,onPaginationChange:d,globalFilterFn:(e,t,n)=>{let r=String(n).toLowerCase();return(e.original.symbol??``).toLowerCase().includes(r)||(e.original.contract_address??``).toLowerCase().includes(r)},getCoreRowModel:ze(),getFilteredRowModel:Ve(),getPaginationRowModel:Ne(),getSortedRowModel:Pe(),getFacetedRowModel:Me(),getFacetedUniqueValues:Fe()});return(0,X.useEffect)(()=>{let e=f.getPageCount();e>0&&u.pageIndex>e-1&&d(e=>({...e,pageIndex:0}))},[f,u.pageIndex]),(0,Z.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,Z.jsx)(Be,{onRefresh:r,searchKey:`symbol`,searchPlaceholder:k(),table:f}),(0,Z.jsx)(Re,{emptyText:se(),loading:t,table:f}),(0,Z.jsx)(Ie,{className:`mt-auto`,table:f})]})}var Q=new n({chainTokens:[],loading:!1});function mt(e){Q.setState(t=>({...t,chainTokens:e}))}function ht(e){Q.setState(t=>({...t,loading:e}))}function gt(){let e=r(Q,e=>e.chainTokens),n=r(Q,e=>e.loading),i=t.useQuery(`get`,`/admin/api/v1/chain-tokens`);return(0,X.useEffect)(()=>{ht(i.isLoading)},[i.isLoading]),(0,X.useEffect)(()=>{i.data?.data&&mt(i.data.data)},[i.data?.data]),{chainTokens:e,loading:n,refetch:i.refetch}}var _t=[`chain-1`,`chain-2`,`chain-3`,`chain-4`,`chain-5`];function $({active:e,children:t,onClick:n}){return(0,Z.jsx)(`button`,{className:M(`w-full cursor-pointer rounded-lg px-3 py-3 text-left transition-colors hover:bg-accent hover:text-accent-foreground`,e&&`bg-muted`),onClick:n,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),n())},type:`button`,children:t})}function vt({chains:e,isLoading:t,keyword:n,onKeywordChange:r,selectedPanel:i,onSelect:a,onToggle:o,totalTokens:u,hiddenOnMobile:d}){return(0,Z.jsxs)(`div`,{className:M(`flex w-full flex-col gap-2 sm:w-56 lg:w-72 2xl:w-80`,d&&`hidden sm:flex`),children:[(0,Z.jsxs)(`div`,{className:`sticky top-0 z-10 -mx-4 bg-background px-4 pb-3 shadow-md sm:static sm:z-auto sm:mx-0 sm:p-0 sm:shadow-none`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center justify-between py-2`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Z.jsx)(`h1`,{className:`font-bold text-2xl`,children:O()}),(0,Z.jsx)(ye,{size:20})]}),(0,Z.jsx)(Y,{variant:`secondary`,children:p({count:String(e.length)})})]}),(0,Z.jsxs)(`div`,{className:`relative block`,children:[(0,Z.jsx)(Ze,{className:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),(0,Z.jsx)(J,{className:`pl-9`,onChange:e=>r(e.target.value),placeholder:c(),value:n})]})]}),(0,Z.jsxs)(xe,{className:`-mx-3 h-full overflow-auto p-3`,children:[(0,Z.jsx)($,{active:i===`overview`,onClick:()=>a(`overview`),children:(0,Z.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,Z.jsxs)(`div`,{className:`min-w-0`,children:[(0,Z.jsx)(`div`,{className:`font-medium`,children:l()}),(0,Z.jsx)(`div`,{className:`mt-1 text-muted-foreground text-xs`,children:_({chains:String(e.length),tokens:String(u)})})]}),(0,Z.jsx)(be,{className:`mt-0.5 size-4 text-muted-foreground`})]})}),(0,Z.jsx)(I,{className:`my-1`}),t?_t.map(e=>(0,Z.jsxs)(`div`,{className:`px-3 py-3`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,Z.jsx)(z,{className:`h-4 w-24`}),(0,Z.jsx)(z,{className:`h-5 w-9 rounded-full`})]}),(0,Z.jsxs)(`div`,{className:`mt-2 flex items-center justify-between gap-2`,children:[(0,Z.jsx)(z,{className:`h-3 w-28`}),(0,Z.jsx)(z,{className:`h-5 w-12 rounded-full`})]})]},e)):e.map((t,n)=>(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)($,{active:i===t.network,onClick:()=>a(t.network??`overview`),children:(0,Z.jsx)(`div`,{className:`flex items-start gap-3`,children:(0,Z.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,Z.jsxs)(`div`,{className:`flex items-start justify-between gap-2`,children:[(0,Z.jsx)(`div`,{className:`min-w-0`,children:(0,Z.jsx)(`div`,{className:`truncate font-medium`,children:t.display_name})}),(0,Z.jsx)(L,{checked:t.enabled===!0,onCheckedChange:e=>o(t,e),onClick:e=>e.stopPropagation()})]}),(0,Z.jsxs)(`div`,{className:`mt-1 flex items-center justify-between gap-2`,children:[(0,Z.jsx)(`span`,{className:`text-muted-foreground text-xs`,children:ge()}),(0,Z.jsx)(Y,{className:`shrink-0 text-xs`,variant:`outline`,children:t.network})]})]})})}),n{let t=f.trim().toLowerCase();return t?e.filter(e=>[e.display_name,e.network].filter(Boolean).some(e=>String(e).toLowerCase().includes(t))):e},[e,f]),E=(0,X.useMemo)(()=>m===`overview`?a:a.filter(e=>e.network===m),[a,m]);async function D(){await Promise.all([i.invalidateQueries({queryKey:[`get`,`/admin/api/v1/chains`]}),i.invalidateQueries({queryKey:[`get`,`/admin/api/v1/chain-tokens`]})])}async function O(e,t){e.network&&(await d.mutateAsync({params:{path:{network:e.network}},body:{display_name:e.display_name,enabled:t,min_confirmations:e.min_confirmations,scan_interval_sec:e.scan_interval_sec}}),B.success(te({status:t?ve():he()})),await D())}async function ae(e,t){if(e===`edit`||e===`delete`){x(!0);return}if(e===`enable`||e===`disable`){if(!t.id)return;await u.mutateAsync({params:{path:{id:t.id}},body:{enabled:e===`enable`}}),B.success(ee()),await D();return}}let k=g!==null,A=n||o;return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Ge,{fixed:!0}),(0,Z.jsx)(Ke,{fixed:!0,children:(0,Z.jsxs)(`section`,{className:`flex h-full gap-6`,children:[(0,Z.jsx)(vt,{chains:T,hiddenOnMobile:k,isLoading:A,keyword:f,onKeywordChange:p,onSelect:e=>{h(e),_(e)},onToggle:O,selectedPanel:m,totalTokens:a.length}),(0,Z.jsx)(`div`,{className:M(`absolute inset-0 start-full z-50 hidden w-full flex-1 flex-col border bg-background shadow-xs sm:static sm:z-auto sm:flex sm:min-w-0 sm:rounded-md sm:border-0 sm:bg-transparent sm:shadow-none`,k&&`inset-s-0 flex`),children:(0,Z.jsx)(yt,{isLoading:A,onAction:ae,onBack:()=>_(null),onCreate:()=>x(!0),onRefresh:()=>{r(),s()},tokens:E})})]})}),(0,Z.jsx)(dt,{chains:e.filter(e=>!!e.network).map(e=>({network:e.network,display_name:e.display_name})),currentRow:C,defaultNetwork:ne,onCreate:async e=>{await c.mutateAsync({body:{network:e.network,symbol:e.symbol,contract_address:e.contract_address||void 0,decimals:e.decimals,min_amount:e.min_amount,enabled:e.enabled}})},onOpenChange:e=>{y(e),e||(w(null),S(``))},onSuccess:async()=>{B.success(C?re():ie()),await D()},onUpdate:async e=>{C?.id&&await l.mutateAsync({params:{path:{id:C.id}},body:{contract_address:e.contract_address||void 0,decimals:e.decimals,min_amount:e.min_amount,enabled:e.enabled}})},open:v}),(0,Z.jsx)(lt,{onOpenChange:x,open:b})]})}var xt=bt;export{xt as component}; \ No newline at end of file diff --git a/src/www/assets/chains-store-DCzO87jZ.js b/src/www/assets/chains-store-CMJvgCLb.js similarity index 92% rename from src/www/assets/chains-store-DCzO87jZ.js rename to src/www/assets/chains-store-CMJvgCLb.js index 3e9b10a..4eb656c 100644 --- a/src/www/assets/chains-store-DCzO87jZ.js +++ b/src/www/assets/chains-store-CMJvgCLb.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{a as t,d as n,f as r}from"./auth-store-De4Y7PFV.js";import{t as i}from"./react-CO2uhaBc.js";import{t as a}from"./createLucideIcon-Br0Bd5k2.js";var o=a(`pen-line`,[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),s=e(i(),1),c=new n({chains:[],loading:!1});function l(e){c.setState(t=>({...t,chains:e}))}function u(e){c.setState(t=>({...t,loading:e}))}function d(){let e=r(c,e=>e.chains),n=r(c,e=>e.loading),i=t.useQuery(`get`,`/admin/api/v1/chains`);return(0,s.useEffect)(()=>{u(i.isLoading)},[i.isLoading]),(0,s.useEffect)(()=>{i.data?.data&&l(i.data.data)},[i.data?.data]),{chains:e,loading:n,refetch:i.refetch}}export{o as n,d as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{a as t,d as n,f as r}from"./auth-store-8ocF_FHU.js";import{t as i}from"./react-CO2uhaBc.js";import{t as a}from"./createLucideIcon-Br0Bd5k2.js";var o=a(`pen-line`,[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),s=e(i(),1),c=new n({chains:[],loading:!1});function l(e){c.setState(t=>({...t,chains:e}))}function u(e){c.setState(t=>({...t,loading:e}))}function d(){let e=r(c,e=>e.chains),n=r(c,e=>e.loading),i=t.useQuery(`get`,`/admin/api/v1/chains`);return(0,s.useEffect)(()=>{u(i.isLoading)},[i.isLoading]),(0,s.useEffect)(()=>{i.data?.data&&l(i.data.data)},[i.data?.data]),{chains:e,loading:n,refetch:i.refetch}}export{o as n,d as t}; \ No newline at end of file diff --git a/src/www/assets/checkbox-CTHgcB3t.js b/src/www/assets/checkbox-DcRUgRHr.js similarity index 92% rename from src/www/assets/checkbox-CTHgcB3t.js rename to src/www/assets/checkbox-DcRUgRHr.js index 73aabf0..d78e3f4 100644 --- a/src/www/assets/checkbox-CTHgcB3t.js +++ b/src/www/assets/checkbox-DcRUgRHr.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./dist-Cc8_LDAq.js";import{i,u as a}from"./button-C_NDYaz8.js";import{a as o,r as s,t as c}from"./dist-DPPquN_M.js";import{t as l}from"./dist-DvwKOQ8R.js";import{t as u}from"./dist-BixeH3nX.js";import{t as d}from"./dist-ZdRQQNeu.js";import{t as f}from"./check-CHp0nSkR.js";var p=e(t(),1),m=n(),h=`Checkbox`,[g,_]=o(h),[v,y]=g(h);function b(e){let{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:l,required:u,value:d=`on`,internal_do_not_use_render:f}=e,[g,_]=c({prop:n,defaultProp:i??!1,onChange:l,caller:h}),[y,b]=p.useState(null),[x,S]=p.useState(null),C=p.useRef(!1),w=y?!!o||!!y.closest(`form`):!0,T={checked:g,disabled:a,setChecked:_,control:y,setControl:b,name:s,form:o,value:d,hasConsumerStoppedPropagationRef:C,required:u,defaultChecked:k(i)?!1:i,isFormControl:w,bubbleInput:x,setBubbleInput:S};return(0,m.jsx)(v,{scope:t,...T,children:O(f)?f(T):r})}var x=`CheckboxTrigger`,S=p.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...i},o)=>{let{control:c,value:l,disabled:u,checked:d,required:f,setControl:h,setChecked:g,hasConsumerStoppedPropagationRef:_,isFormControl:v,bubbleInput:b}=y(x,e),S=a(o,h),C=p.useRef(d);return p.useEffect(()=>{let e=c?.form;if(e){let t=()=>g(C.current);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[c,g]),(0,m.jsx)(r.button,{type:`button`,role:`checkbox`,"aria-checked":k(d)?`mixed`:d,"aria-required":f,"data-state":A(d),"data-disabled":u?``:void 0,disabled:u,value:l,...i,ref:S,onKeyDown:s(t,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:s(n,e=>{g(e=>k(e)?!0:!e),b&&v&&(_.current=e.isPropagationStopped(),_.current||e.stopPropagation())})})});S.displayName=x;var C=p.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return(0,m.jsx)(b,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(S,{...d,ref:t,__scopeCheckbox:n}),e&&(0,m.jsx)(D,{__scopeCheckbox:n})]})})});C.displayName=h;var w=`CheckboxIndicator`,T=p.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:i,...a}=e,o=y(w,n);return(0,m.jsx)(l,{present:i||k(o.checked)||o.checked===!0,children:(0,m.jsx)(r.span,{"data-state":A(o.checked),"data-disabled":o.disabled?``:void 0,...a,ref:t,style:{pointerEvents:`none`,...e.style}})})});T.displayName=w;var E=`CheckboxBubbleInput`,D=p.forwardRef(({__scopeCheckbox:e,...t},n)=>{let{control:i,hasConsumerStoppedPropagationRef:o,checked:s,defaultChecked:c,required:l,disabled:f,name:h,value:g,form:_,bubbleInput:v,setBubbleInput:b}=y(E,e),x=a(n,b),S=u(s),C=d(i);p.useEffect(()=>{let e=v;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=!o.current;if(S!==s&&n){let t=new Event(`click`,{bubbles:r});e.indeterminate=k(s),n.call(e,k(s)?!1:s),e.dispatchEvent(t)}},[v,S,s,o]);let w=p.useRef(k(s)?!1:s);return(0,m.jsx)(r.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:c??w.current,required:l,disabled:f,name:h,value:g,form:_,...t,tabIndex:-1,ref:x,style:{...t.style,...C,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})});D.displayName=E;function O(e){return typeof e==`function`}function k(e){return e===`indeterminate`}function A(e){return k(e)?`indeterminate`:e?`checked`:`unchecked`}function j({className:e,...t}){return(0,m.jsx)(C,{className:i(`peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs outline-none transition-shadow focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:data-[state=checked]:bg-primary dark:aria-invalid:ring-destructive/40`,e),"data-slot":`checkbox`,...t,children:(0,m.jsx)(T,{className:`grid place-content-center text-current transition-none`,"data-slot":`checkbox-indicator`,children:(0,m.jsx)(f,{className:`size-3.5`})})})}export{j as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";import{t as r}from"./dist-D3WFT-Yo.js";import{i,u as a}from"./button-NLSeBFht.js";import{a as o,r as s,t as c}from"./dist-DmeeHi7K.js";import{t as l}from"./dist-BZMqLvO-.js";import{t as u}from"./dist-BixeH3nX.js";import{t as d}from"./dist-B0pRVbY9.js";import{t as f}from"./check-CHp0nSkR.js";var p=e(t(),1),m=n(),h=`Checkbox`,[g,_]=o(h),[v,y]=g(h);function b(e){let{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:l,required:u,value:d=`on`,internal_do_not_use_render:f}=e,[g,_]=c({prop:n,defaultProp:i??!1,onChange:l,caller:h}),[y,b]=p.useState(null),[x,S]=p.useState(null),C=p.useRef(!1),w=y?!!o||!!y.closest(`form`):!0,T={checked:g,disabled:a,setChecked:_,control:y,setControl:b,name:s,form:o,value:d,hasConsumerStoppedPropagationRef:C,required:u,defaultChecked:k(i)?!1:i,isFormControl:w,bubbleInput:x,setBubbleInput:S};return(0,m.jsx)(v,{scope:t,...T,children:O(f)?f(T):r})}var x=`CheckboxTrigger`,S=p.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...i},o)=>{let{control:c,value:l,disabled:u,checked:d,required:f,setControl:h,setChecked:g,hasConsumerStoppedPropagationRef:_,isFormControl:v,bubbleInput:b}=y(x,e),S=a(o,h),C=p.useRef(d);return p.useEffect(()=>{let e=c?.form;if(e){let t=()=>g(C.current);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[c,g]),(0,m.jsx)(r.button,{type:`button`,role:`checkbox`,"aria-checked":k(d)?`mixed`:d,"aria-required":f,"data-state":A(d),"data-disabled":u?``:void 0,disabled:u,value:l,...i,ref:S,onKeyDown:s(t,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:s(n,e=>{g(e=>k(e)?!0:!e),b&&v&&(_.current=e.isPropagationStopped(),_.current||e.stopPropagation())})})});S.displayName=x;var C=p.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return(0,m.jsx)(b,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(S,{...d,ref:t,__scopeCheckbox:n}),e&&(0,m.jsx)(D,{__scopeCheckbox:n})]})})});C.displayName=h;var w=`CheckboxIndicator`,T=p.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:i,...a}=e,o=y(w,n);return(0,m.jsx)(l,{present:i||k(o.checked)||o.checked===!0,children:(0,m.jsx)(r.span,{"data-state":A(o.checked),"data-disabled":o.disabled?``:void 0,...a,ref:t,style:{pointerEvents:`none`,...e.style}})})});T.displayName=w;var E=`CheckboxBubbleInput`,D=p.forwardRef(({__scopeCheckbox:e,...t},n)=>{let{control:i,hasConsumerStoppedPropagationRef:o,checked:s,defaultChecked:c,required:l,disabled:f,name:h,value:g,form:_,bubbleInput:v,setBubbleInput:b}=y(E,e),x=a(n,b),S=u(s),C=d(i);p.useEffect(()=>{let e=v;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=!o.current;if(S!==s&&n){let t=new Event(`click`,{bubbles:r});e.indeterminate=k(s),n.call(e,k(s)?!1:s),e.dispatchEvent(t)}},[v,S,s,o]);let w=p.useRef(k(s)?!1:s);return(0,m.jsx)(r.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:c??w.current,required:l,disabled:f,name:h,value:g,form:_,...t,tabIndex:-1,ref:x,style:{...t.style,...C,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})});D.displayName=E;function O(e){return typeof e==`function`}function k(e){return e===`indeterminate`}function A(e){return k(e)?`indeterminate`:e?`checked`:`unchecked`}function j({className:e,...t}){return(0,m.jsx)(C,{className:i(`peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs outline-none transition-shadow focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:data-[state=checked]:bg-primary dark:aria-invalid:ring-destructive/40`,e),"data-slot":`checkbox`,...t,children:(0,m.jsx)(T,{className:`grid place-content-center text-current transition-none`,"data-slot":`checkbox-indicator`,children:(0,m.jsx)(f,{className:`size-3.5`})})})}export{j as t}; \ No newline at end of file diff --git a/src/www/assets/coming-soon-dialog-B34F88bO.js b/src/www/assets/coming-soon-dialog-CN8U5tTP.js similarity index 78% rename from src/www/assets/coming-soon-dialog-B34F88bO.js rename to src/www/assets/coming-soon-dialog-CN8U5tTP.js index aee95fb..3393410 100644 --- a/src/www/assets/coming-soon-dialog-B34F88bO.js +++ b/src/www/assets/coming-soon-dialog-CN8U5tTP.js @@ -1 +1 @@ -import{Ip as e,Lp as t,Rp as n,tm as r}from"./messages-BOatyqUm.js";import{t as i}from"./telescope-DU0wiTDw.js";import{i as a,o,r as s,s as c,t as l}from"./dialog-CZ-2RPb-.js";var u=r();function d({open:r,onOpenChange:d}){return(0,u.jsx)(l,{onOpenChange:d,open:r,children:(0,u.jsx)(s,{className:`sm:max-w-sm`,children:(0,u.jsxs)(o,{className:`items-center text-center`,children:[(0,u.jsx)(i,{className:`mb-2 size-12 text-muted-foreground`}),(0,u.jsx)(c,{children:n()}),(0,u.jsxs)(a,{children:[t(),(0,u.jsx)(`br`,{}),(0,u.jsx)(`p`,{className:`mt-2 text-center`,children:e()})]})]})})})}export{d as t}; \ No newline at end of file +import{Ip as e,Lp as t,Rp as n,tm as r}from"./messages-CL4J6BaJ.js";import{t as i}from"./telescope-DU0wiTDw.js";import{i as a,o,r as s,s as c,t as l}from"./dialog-CtyiwzAl.js";var u=r();function d({open:r,onOpenChange:d}){return(0,u.jsx)(l,{onOpenChange:d,open:r,children:(0,u.jsx)(s,{className:`sm:max-w-sm`,children:(0,u.jsxs)(o,{className:`items-center text-center`,children:[(0,u.jsx)(i,{className:`mb-2 size-12 text-muted-foreground`}),(0,u.jsx)(c,{children:n()}),(0,u.jsxs)(a,{children:[t(),(0,u.jsx)(`br`,{}),(0,u.jsx)(`p`,{className:`mt-2 text-center`,children:e()})]})]})})})}export{d as t}; \ No newline at end of file diff --git a/src/www/assets/command-B_SlhXkX.js b/src/www/assets/command-vy8966UO.js similarity index 97% rename from src/www/assets/command-B_SlhXkX.js rename to src/www/assets/command-vy8966UO.js index 2b5fe1f..2f00baf 100644 --- a/src/www/assets/command-B_SlhXkX.js +++ b/src/www/assets/command-vy8966UO.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./dist-Cc8_LDAq.js";import{i,l as a}from"./button-C_NDYaz8.js";import{n as o}from"./dist-D4X8zGEB.js";import{a as s,i as c,n as l,o as u}from"./dist-iiotRAEO.js";import{t as d}from"./createLucideIcon-Br0Bd5k2.js";import{i as f,o as p,r as m,s as h,t as g}from"./dialog-CZ-2RPb-.js";var _=d(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),v=1,y=.9,b=.8,ee=.17,x=.1,S=.999,C=.9999,w=.99,T=/[\\\/_+.#"@\[\(\{&]/,E=/[\\\/_+.#"@\[\(\{&]/g,D=/[\s-]/,O=/[\s-]/g;function k(e,t,n,r,i,a,o){if(a===t.length)return i===e.length?v:w;var s=`${i},${a}`;if(o[s]!==void 0)return o[s];for(var c=r.charAt(a),l=n.indexOf(c,i),u=0,d,f,p,m;l>=0;)d=k(e,t,n,r,l+1,a+1,o),d>u&&(l===i?d*=v:T.test(e.charAt(l-1))?(d*=b,p=e.slice(i,l-1).match(E),p&&i>0&&(d*=S**+p.length)):D.test(e.charAt(l-1))?(d*=y,m=e.slice(i,l-1).match(O),m&&i>0&&(d*=S**+m.length)):(d*=ee,i>0&&(d*=S**+(l-i))),e.charAt(l)!==t.charAt(a)&&(d*=C)),(dd&&(d=f*x)),d>u&&(u=d),l=n.indexOf(c,l+1);return o[s]=u,u}function A(e){return e.toLowerCase().replace(O,` `)}function j(e,t,n){return e=n&&n.length>0?`${e+` `+n.join(` `)}`:e,k(e,t,A(e),A(t),0,0,{})}var M=e(t(),1),N=`[cmdk-group=""]`,P=`[cmdk-group-items=""]`,te=`[cmdk-group-heading=""]`,F=`[cmdk-item=""]`,ne=`${F}:not([aria-disabled="true"])`,I=`cmdk-item-select`,L=`data-value`,re=(e,t,n)=>j(e,t,n),R=M.createContext(void 0),z=()=>M.useContext(R),B=M.createContext(void 0),V=()=>M.useContext(B),H=M.createContext(void 0),U=M.forwardRef((e,t)=>{let n=X(()=>({search:``,value:e.value??e.defaultValue??``,selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}})),i=X(()=>new Set),a=X(()=>new Map),s=X(()=>new Map),c=X(()=>new Set),l=J(e),{label:u,children:d,value:f,onValueChange:p,filter:m,shouldFilter:h,loop:g,disablePointerSelection:_=!1,vimBindings:v=!0,...y}=e,b=o(),ee=o(),x=o(),S=M.useRef(null),C=fe();Y(()=>{if(f!==void 0){let e=f.trim();n.current.value=e,w.emit()}},[f]),Y(()=>{C(6,A)},[]);let w=M.useMemo(()=>({subscribe:e=>(c.current.add(e),()=>c.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var i,a,o;if(!Object.is(n.current[e],t)){if(n.current[e]=t,e===`search`)k(),D(),C(1,O);else if(e===`value`){if(document.activeElement.hasAttribute(`cmdk-input`)||document.activeElement.hasAttribute(`cmdk-root`)){let e=document.getElementById(x);e?e.focus():(i=document.getElementById(b))==null||i.focus()}if(C(7,()=>{n.current.selectedItemId=j()?.id,w.emit()}),r||C(5,A),l.current?.value!==void 0){let e=t??``;(o=(a=l.current).onValueChange)==null||o.call(a,e);return}}w.emit()}},emit:()=>{c.current.forEach(e=>e())}}),[]),T=M.useMemo(()=>({value:(e,t,r)=>{t!==s.current.get(e)?.value&&(s.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,E(t,r)),C(2,()=>{D(),w.emit()}))},item:(e,t)=>(i.current.add(e),t&&(a.current.has(t)?a.current.get(t).add(e):a.current.set(t,new Set([e]))),C(3,()=>{k(),D(),n.current.value||O(),w.emit()}),()=>{s.current.delete(e),i.current.delete(e),n.current.filtered.items.delete(e);let t=j();C(4,()=>{k(),t?.getAttribute(`id`)===e&&O(),w.emit()})}),group:e=>(a.current.has(e)||a.current.set(e,new Set),()=>{s.current.delete(e),a.current.delete(e)}),filter:()=>l.current.shouldFilter,label:u||e[`aria-label`],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:b,inputId:x,labelId:ee,listInnerRef:S}),[]);function E(e,t){let r=l.current?.filter??re;return e?r(e,n.current.search,t):0}function D(){if(!n.current.search||l.current.shouldFilter===!1)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let r=a.current.get(n),i=0;r.forEach(t=>{let n=e.get(t);i=Math.max(n,i)}),t.push([n,i])});let r=S.current;z().sort((t,n)=>{let r=t.getAttribute(`id`),i=n.getAttribute(`id`);return(e.get(i)??0)-(e.get(r)??0)}).forEach(e=>{let t=e.closest(P);t?t.appendChild(e.parentElement===t?e:e.closest(`${P} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${P} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=S.current?.querySelector(`${N}[${L}="${encodeURIComponent(e[0])}"]`);t?.parentElement.appendChild(t)})}function O(){let e=z().find(e=>e.getAttribute(`aria-disabled`)!==`true`)?.getAttribute(L);w.setState(`value`,e||void 0)}function k(){if(!n.current.search||l.current.shouldFilter===!1){n.current.filtered.count=i.current.size;return}n.current.filtered.groups=new Set;let e=0;for(let t of i.current){let r=E(s.current.get(t)?.value??``,s.current.get(t)?.keywords??[]);n.current.filtered.items.set(t,r),r>0&&e++}for(let[e,t]of a.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=e}function A(){var e;let t=j();t&&(t.parentElement?.firstChild===t&&((e=t.closest(N)?.querySelector(te))==null||e.scrollIntoView({block:`nearest`})),t.scrollIntoView({block:`nearest`}))}function j(){return S.current?.querySelector(`${F}[aria-selected="true"]`)}function z(){return Array.from(S.current?.querySelectorAll(ne)||[])}function V(e){let t=z()[e];t&&w.setState(`value`,t.getAttribute(L))}function H(e){var t;let n=j(),r=z(),i=r.findIndex(e=>e===n),a=r[i+e];(t=l.current)!=null&&t.loop&&(a=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),a&&w.setState(`value`,a.getAttribute(L))}function U(e){let t=j()?.closest(N),n;for(;t&&!n;)t=e>0?le(t,N):ue(t,N),n=t?.querySelector(ne);n?w.setState(`value`,n.getAttribute(L)):H(e)}let W=()=>V(z().length-1),G=e=>{e.preventDefault(),e.metaKey?W():e.altKey?U(1):H(1)},K=e=>{e.preventDefault(),e.metaKey?V(0):e.altKey?U(-1):H(-1)};return M.createElement(r.div,{ref:t,tabIndex:-1,...y,"cmdk-root":``,onKeyDown:e=>{var t;(t=y.onKeyDown)==null||t.call(y,e);let n=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||n))switch(e.key){case`n`:case`j`:v&&e.ctrlKey&&G(e);break;case`ArrowDown`:G(e);break;case`p`:case`k`:v&&e.ctrlKey&&K(e);break;case`ArrowUp`:K(e);break;case`Home`:e.preventDefault(),V(0);break;case`End`:e.preventDefault(),W();break;case`Enter`:{e.preventDefault();let t=j();if(t){let e=new Event(I);t.dispatchEvent(e)}}}}},M.createElement(`label`,{"cmdk-label":``,htmlFor:T.inputId,id:T.labelId,style:me},u),Q(e,e=>M.createElement(B.Provider,{value:w},M.createElement(R.Provider,{value:T},e))))}),W=M.forwardRef((e,t)=>{let n=o(),i=M.useRef(null),s=M.useContext(H),c=z(),l=J(e),u=l.current?.forceMount??s?.forceMount;Y(()=>{if(!u)return c.item(n,s?.id)},[u]);let d=de(n,i,[e.value,e.children,i],e.keywords),f=V(),p=Z(e=>e.value&&e.value===d.current),m=Z(e=>u||c.filter()===!1?!0:e.search?e.filtered.items.get(n)>0:!0);M.useEffect(()=>{let t=i.current;if(!(!t||e.disabled))return t.addEventListener(I,h),()=>t.removeEventListener(I,h)},[m,e.onSelect,e.disabled]);function h(){var e,t;g(),(t=(e=l.current).onSelect)==null||t.call(e,d.current)}function g(){f.setState(`value`,d.current,!0)}if(!m)return null;let{disabled:_,value:v,onSelect:y,forceMount:b,keywords:ee,...x}=e;return M.createElement(r.div,{ref:a(i,t),...x,id:n,"cmdk-item":``,role:`option`,"aria-disabled":!!_,"aria-selected":!!p,"data-disabled":!!_,"data-selected":!!p,onPointerMove:_||c.getDisablePointerSelection()?void 0:g,onClick:_?void 0:h},e.children)}),G=M.forwardRef((e,t)=>{let{heading:n,children:i,forceMount:s,...c}=e,l=o(),u=M.useRef(null),d=M.useRef(null),f=o(),p=z(),m=Z(e=>s||p.filter()===!1?!0:e.search?e.filtered.groups.has(l):!0);Y(()=>p.group(l),[]),de(l,u,[e.value,e.heading,d]);let h=M.useMemo(()=>({id:l,forceMount:s}),[s]);return M.createElement(r.div,{ref:a(u,t),...c,"cmdk-group":``,role:`presentation`,hidden:m?void 0:!0},n&&M.createElement(`div`,{ref:d,"cmdk-group-heading":``,"aria-hidden":!0,id:f},n),Q(e,e=>M.createElement(`div`,{"cmdk-group-items":``,role:`group`,"aria-labelledby":n?f:void 0},M.createElement(H.Provider,{value:h},e))))}),K=M.forwardRef((e,t)=>{let{alwaysRender:n,...i}=e,o=M.useRef(null),s=Z(e=>!e.search);return!n&&!s?null:M.createElement(r.div,{ref:a(o,t),...i,"cmdk-separator":``,role:`separator`})}),ie=M.forwardRef((e,t)=>{let{onValueChange:n,...i}=e,a=e.value!=null,o=V(),s=Z(e=>e.search),c=Z(e=>e.selectedItemId),l=z();return M.useEffect(()=>{e.value!=null&&o.setState(`search`,e.value)},[e.value]),M.createElement(r.input,{ref:t,...i,"cmdk-input":``,autoComplete:`off`,autoCorrect:`off`,spellCheck:!1,"aria-autocomplete":`list`,role:`combobox`,"aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":c,id:l.inputId,type:`text`,value:a?e.value:s,onChange:e=>{a||o.setState(`search`,e.target.value),n?.(e.target.value)}})}),ae=M.forwardRef((e,t)=>{let{children:n,label:i=`Suggestions`,...o}=e,s=M.useRef(null),c=M.useRef(null),l=Z(e=>e.selectedItemId),u=z();return M.useEffect(()=>{if(c.current&&s.current){let e=c.current,t=s.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.offsetHeight;t.style.setProperty(`--cmdk-list-height`,n.toFixed(1)+`px`)})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),M.createElement(r.div,{ref:a(s,t),...o,"cmdk-list":``,role:`listbox`,tabIndex:-1,"aria-activedescendant":l,"aria-label":i,id:u.listId},Q(e,e=>M.createElement(`div`,{ref:a(c,u.listInnerRef),"cmdk-list-sizer":``},e)))}),oe=M.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:i,contentClassName:a,container:o,...d}=e;return M.createElement(u,{open:n,onOpenChange:r},M.createElement(s,{container:o},M.createElement(c,{"cmdk-overlay":``,className:i}),M.createElement(l,{"aria-label":e.label,"cmdk-dialog":``,className:a},M.createElement(U,{ref:t,...d}))))}),se=M.forwardRef((e,t)=>Z(e=>e.filtered.count===0)?M.createElement(r.div,{ref:t,...e,"cmdk-empty":``,role:`presentation`}):null),ce=M.forwardRef((e,t)=>{let{progress:n,children:i,label:a=`Loading...`,...o}=e;return M.createElement(r.div,{ref:t,...o,"cmdk-loading":``,role:`progressbar`,"aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},Q(e,e=>M.createElement(`div`,{"aria-hidden":!0},e)))}),q=Object.assign(U,{List:ae,Item:W,Input:ie,Group:G,Separator:K,Dialog:oe,Empty:se,Loading:ce});function le(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function ue(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function J(e){let t=M.useRef(e);return Y(()=>{t.current=e}),t}var Y=typeof window>`u`?M.useEffect:M.useLayoutEffect;function X(e){let t=M.useRef();return t.current===void 0&&(t.current=e()),t}function Z(e){let t=V(),n=()=>e(t.snapshot());return M.useSyncExternalStore(t.subscribe,n,n)}function de(e,t,n,r=[]){let i=M.useRef(),a=z();return Y(()=>{var o;let s=(()=>{for(let e of n){if(typeof e==`string`)return e.trim();if(typeof e==`object`&&`current`in e)return e.current?e.current.textContent?.trim():i.current}})(),c=r.map(e=>e.trim());a.value(e,s,c),(o=t.current)==null||o.setAttribute(L,s),i.current=s}),i}var fe=()=>{let[e,t]=M.useState(),n=X(()=>new Map);return Y(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function pe(e){let t=e.type;return typeof t==`function`?t(e.props):`render`in t?t.render(e.props):e}function Q({asChild:e,children:t},n){return e&&M.isValidElement(t)?M.cloneElement(pe(t),{ref:t.ref},n(t.props.children)):n(t)}var me={position:`absolute`,width:`1px`,height:`1px`,padding:`0`,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,borderWidth:`0`},$=n();function he({className:e,...t}){return(0,$.jsx)(q,{className:i(`flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground`,e),"data-slot":`command`,...t})}function ge({title:e=`Command Palette`,description:t=`Search for a command to run...`,children:n,className:r,showCloseButton:a=!0,...o}){return(0,$.jsxs)(g,{...o,children:[(0,$.jsxs)(p,{className:`sr-only`,children:[(0,$.jsx)(h,{children:e}),(0,$.jsx)(f,{children:t})]}),(0,$.jsx)(m,{className:i(`overflow-hidden p-0`,r),showCloseButton:a,children:(0,$.jsx)(he,{className:`**:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5`,children:n})})]})}function _e({className:e,...t}){return(0,$.jsxs)(`div`,{className:`flex h-9 items-center gap-2 border-b px-3`,"data-slot":`command-input-wrapper`,children:[(0,$.jsx)(_,{className:`size-4 shrink-0 opacity-50`}),(0,$.jsx)(q.Input,{className:i(`flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50`,e),"data-slot":`command-input`,...t})]})}function ve({className:e,...t}){return(0,$.jsx)(q.List,{className:i(`max-h-[300px] scroll-py-1 overflow-y-auto overflow-x-hidden`,e),"data-slot":`command-list`,...t})}function ye({...e}){return(0,$.jsx)(q.Empty,{className:`py-6 text-center text-sm`,"data-slot":`command-empty`,...e})}function be({className:e,...t}){return(0,$.jsx)(q.Group,{className:i(`overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:text-xs`,e),"data-slot":`command-group`,...t})}function xe({className:e,...t}){return(0,$.jsx)(q.Separator,{className:i(`-mx-1 h-px bg-border`,e),"data-slot":`command-separator`,...t})}function Se({className:e,...t}){return(0,$.jsx)(q.Item,{className:i(`relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0`,e),"data-slot":`command-item`,...t})}export{_e as a,xe as c,be as i,_ as l,ge as n,Se as o,ye as r,ve as s,he as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";import{t as r}from"./dist-D3WFT-Yo.js";import{i,l as a}from"./button-NLSeBFht.js";import{n as o}from"./dist-SR6sl-WU.js";import{a as s,i as c,n as l,o as u}from"./dist-DPYswSIO.js";import{t as d}from"./createLucideIcon-Br0Bd5k2.js";import{i as f,o as p,r as m,s as h,t as g}from"./dialog-CtyiwzAl.js";var _=d(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),v=1,y=.9,b=.8,ee=.17,x=.1,S=.999,C=.9999,w=.99,T=/[\\\/_+.#"@\[\(\{&]/,E=/[\\\/_+.#"@\[\(\{&]/g,D=/[\s-]/,O=/[\s-]/g;function k(e,t,n,r,i,a,o){if(a===t.length)return i===e.length?v:w;var s=`${i},${a}`;if(o[s]!==void 0)return o[s];for(var c=r.charAt(a),l=n.indexOf(c,i),u=0,d,f,p,m;l>=0;)d=k(e,t,n,r,l+1,a+1,o),d>u&&(l===i?d*=v:T.test(e.charAt(l-1))?(d*=b,p=e.slice(i,l-1).match(E),p&&i>0&&(d*=S**+p.length)):D.test(e.charAt(l-1))?(d*=y,m=e.slice(i,l-1).match(O),m&&i>0&&(d*=S**+m.length)):(d*=ee,i>0&&(d*=S**+(l-i))),e.charAt(l)!==t.charAt(a)&&(d*=C)),(dd&&(d=f*x)),d>u&&(u=d),l=n.indexOf(c,l+1);return o[s]=u,u}function A(e){return e.toLowerCase().replace(O,` `)}function j(e,t,n){return e=n&&n.length>0?`${e+` `+n.join(` `)}`:e,k(e,t,A(e),A(t),0,0,{})}var M=e(t(),1),N=`[cmdk-group=""]`,P=`[cmdk-group-items=""]`,te=`[cmdk-group-heading=""]`,F=`[cmdk-item=""]`,ne=`${F}:not([aria-disabled="true"])`,I=`cmdk-item-select`,L=`data-value`,re=(e,t,n)=>j(e,t,n),R=M.createContext(void 0),z=()=>M.useContext(R),B=M.createContext(void 0),V=()=>M.useContext(B),H=M.createContext(void 0),U=M.forwardRef((e,t)=>{let n=X(()=>({search:``,value:e.value??e.defaultValue??``,selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}})),i=X(()=>new Set),a=X(()=>new Map),s=X(()=>new Map),c=X(()=>new Set),l=J(e),{label:u,children:d,value:f,onValueChange:p,filter:m,shouldFilter:h,loop:g,disablePointerSelection:_=!1,vimBindings:v=!0,...y}=e,b=o(),ee=o(),x=o(),S=M.useRef(null),C=fe();Y(()=>{if(f!==void 0){let e=f.trim();n.current.value=e,w.emit()}},[f]),Y(()=>{C(6,A)},[]);let w=M.useMemo(()=>({subscribe:e=>(c.current.add(e),()=>c.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var i,a,o;if(!Object.is(n.current[e],t)){if(n.current[e]=t,e===`search`)k(),D(),C(1,O);else if(e===`value`){if(document.activeElement.hasAttribute(`cmdk-input`)||document.activeElement.hasAttribute(`cmdk-root`)){let e=document.getElementById(x);e?e.focus():(i=document.getElementById(b))==null||i.focus()}if(C(7,()=>{n.current.selectedItemId=j()?.id,w.emit()}),r||C(5,A),l.current?.value!==void 0){let e=t??``;(o=(a=l.current).onValueChange)==null||o.call(a,e);return}}w.emit()}},emit:()=>{c.current.forEach(e=>e())}}),[]),T=M.useMemo(()=>({value:(e,t,r)=>{t!==s.current.get(e)?.value&&(s.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,E(t,r)),C(2,()=>{D(),w.emit()}))},item:(e,t)=>(i.current.add(e),t&&(a.current.has(t)?a.current.get(t).add(e):a.current.set(t,new Set([e]))),C(3,()=>{k(),D(),n.current.value||O(),w.emit()}),()=>{s.current.delete(e),i.current.delete(e),n.current.filtered.items.delete(e);let t=j();C(4,()=>{k(),t?.getAttribute(`id`)===e&&O(),w.emit()})}),group:e=>(a.current.has(e)||a.current.set(e,new Set),()=>{s.current.delete(e),a.current.delete(e)}),filter:()=>l.current.shouldFilter,label:u||e[`aria-label`],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:b,inputId:x,labelId:ee,listInnerRef:S}),[]);function E(e,t){let r=l.current?.filter??re;return e?r(e,n.current.search,t):0}function D(){if(!n.current.search||l.current.shouldFilter===!1)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let r=a.current.get(n),i=0;r.forEach(t=>{let n=e.get(t);i=Math.max(n,i)}),t.push([n,i])});let r=S.current;z().sort((t,n)=>{let r=t.getAttribute(`id`),i=n.getAttribute(`id`);return(e.get(i)??0)-(e.get(r)??0)}).forEach(e=>{let t=e.closest(P);t?t.appendChild(e.parentElement===t?e:e.closest(`${P} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${P} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=S.current?.querySelector(`${N}[${L}="${encodeURIComponent(e[0])}"]`);t?.parentElement.appendChild(t)})}function O(){let e=z().find(e=>e.getAttribute(`aria-disabled`)!==`true`)?.getAttribute(L);w.setState(`value`,e||void 0)}function k(){if(!n.current.search||l.current.shouldFilter===!1){n.current.filtered.count=i.current.size;return}n.current.filtered.groups=new Set;let e=0;for(let t of i.current){let r=E(s.current.get(t)?.value??``,s.current.get(t)?.keywords??[]);n.current.filtered.items.set(t,r),r>0&&e++}for(let[e,t]of a.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=e}function A(){var e;let t=j();t&&(t.parentElement?.firstChild===t&&((e=t.closest(N)?.querySelector(te))==null||e.scrollIntoView({block:`nearest`})),t.scrollIntoView({block:`nearest`}))}function j(){return S.current?.querySelector(`${F}[aria-selected="true"]`)}function z(){return Array.from(S.current?.querySelectorAll(ne)||[])}function V(e){let t=z()[e];t&&w.setState(`value`,t.getAttribute(L))}function H(e){var t;let n=j(),r=z(),i=r.findIndex(e=>e===n),a=r[i+e];(t=l.current)!=null&&t.loop&&(a=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),a&&w.setState(`value`,a.getAttribute(L))}function U(e){let t=j()?.closest(N),n;for(;t&&!n;)t=e>0?le(t,N):ue(t,N),n=t?.querySelector(ne);n?w.setState(`value`,n.getAttribute(L)):H(e)}let W=()=>V(z().length-1),G=e=>{e.preventDefault(),e.metaKey?W():e.altKey?U(1):H(1)},K=e=>{e.preventDefault(),e.metaKey?V(0):e.altKey?U(-1):H(-1)};return M.createElement(r.div,{ref:t,tabIndex:-1,...y,"cmdk-root":``,onKeyDown:e=>{var t;(t=y.onKeyDown)==null||t.call(y,e);let n=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||n))switch(e.key){case`n`:case`j`:v&&e.ctrlKey&&G(e);break;case`ArrowDown`:G(e);break;case`p`:case`k`:v&&e.ctrlKey&&K(e);break;case`ArrowUp`:K(e);break;case`Home`:e.preventDefault(),V(0);break;case`End`:e.preventDefault(),W();break;case`Enter`:{e.preventDefault();let t=j();if(t){let e=new Event(I);t.dispatchEvent(e)}}}}},M.createElement(`label`,{"cmdk-label":``,htmlFor:T.inputId,id:T.labelId,style:me},u),Q(e,e=>M.createElement(B.Provider,{value:w},M.createElement(R.Provider,{value:T},e))))}),W=M.forwardRef((e,t)=>{let n=o(),i=M.useRef(null),s=M.useContext(H),c=z(),l=J(e),u=l.current?.forceMount??s?.forceMount;Y(()=>{if(!u)return c.item(n,s?.id)},[u]);let d=de(n,i,[e.value,e.children,i],e.keywords),f=V(),p=Z(e=>e.value&&e.value===d.current),m=Z(e=>u||c.filter()===!1?!0:e.search?e.filtered.items.get(n)>0:!0);M.useEffect(()=>{let t=i.current;if(!(!t||e.disabled))return t.addEventListener(I,h),()=>t.removeEventListener(I,h)},[m,e.onSelect,e.disabled]);function h(){var e,t;g(),(t=(e=l.current).onSelect)==null||t.call(e,d.current)}function g(){f.setState(`value`,d.current,!0)}if(!m)return null;let{disabled:_,value:v,onSelect:y,forceMount:b,keywords:ee,...x}=e;return M.createElement(r.div,{ref:a(i,t),...x,id:n,"cmdk-item":``,role:`option`,"aria-disabled":!!_,"aria-selected":!!p,"data-disabled":!!_,"data-selected":!!p,onPointerMove:_||c.getDisablePointerSelection()?void 0:g,onClick:_?void 0:h},e.children)}),G=M.forwardRef((e,t)=>{let{heading:n,children:i,forceMount:s,...c}=e,l=o(),u=M.useRef(null),d=M.useRef(null),f=o(),p=z(),m=Z(e=>s||p.filter()===!1?!0:e.search?e.filtered.groups.has(l):!0);Y(()=>p.group(l),[]),de(l,u,[e.value,e.heading,d]);let h=M.useMemo(()=>({id:l,forceMount:s}),[s]);return M.createElement(r.div,{ref:a(u,t),...c,"cmdk-group":``,role:`presentation`,hidden:m?void 0:!0},n&&M.createElement(`div`,{ref:d,"cmdk-group-heading":``,"aria-hidden":!0,id:f},n),Q(e,e=>M.createElement(`div`,{"cmdk-group-items":``,role:`group`,"aria-labelledby":n?f:void 0},M.createElement(H.Provider,{value:h},e))))}),K=M.forwardRef((e,t)=>{let{alwaysRender:n,...i}=e,o=M.useRef(null),s=Z(e=>!e.search);return!n&&!s?null:M.createElement(r.div,{ref:a(o,t),...i,"cmdk-separator":``,role:`separator`})}),ie=M.forwardRef((e,t)=>{let{onValueChange:n,...i}=e,a=e.value!=null,o=V(),s=Z(e=>e.search),c=Z(e=>e.selectedItemId),l=z();return M.useEffect(()=>{e.value!=null&&o.setState(`search`,e.value)},[e.value]),M.createElement(r.input,{ref:t,...i,"cmdk-input":``,autoComplete:`off`,autoCorrect:`off`,spellCheck:!1,"aria-autocomplete":`list`,role:`combobox`,"aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":c,id:l.inputId,type:`text`,value:a?e.value:s,onChange:e=>{a||o.setState(`search`,e.target.value),n?.(e.target.value)}})}),ae=M.forwardRef((e,t)=>{let{children:n,label:i=`Suggestions`,...o}=e,s=M.useRef(null),c=M.useRef(null),l=Z(e=>e.selectedItemId),u=z();return M.useEffect(()=>{if(c.current&&s.current){let e=c.current,t=s.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.offsetHeight;t.style.setProperty(`--cmdk-list-height`,n.toFixed(1)+`px`)})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),M.createElement(r.div,{ref:a(s,t),...o,"cmdk-list":``,role:`listbox`,tabIndex:-1,"aria-activedescendant":l,"aria-label":i,id:u.listId},Q(e,e=>M.createElement(`div`,{ref:a(c,u.listInnerRef),"cmdk-list-sizer":``},e)))}),oe=M.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:i,contentClassName:a,container:o,...d}=e;return M.createElement(u,{open:n,onOpenChange:r},M.createElement(s,{container:o},M.createElement(c,{"cmdk-overlay":``,className:i}),M.createElement(l,{"aria-label":e.label,"cmdk-dialog":``,className:a},M.createElement(U,{ref:t,...d}))))}),se=M.forwardRef((e,t)=>Z(e=>e.filtered.count===0)?M.createElement(r.div,{ref:t,...e,"cmdk-empty":``,role:`presentation`}):null),ce=M.forwardRef((e,t)=>{let{progress:n,children:i,label:a=`Loading...`,...o}=e;return M.createElement(r.div,{ref:t,...o,"cmdk-loading":``,role:`progressbar`,"aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},Q(e,e=>M.createElement(`div`,{"aria-hidden":!0},e)))}),q=Object.assign(U,{List:ae,Item:W,Input:ie,Group:G,Separator:K,Dialog:oe,Empty:se,Loading:ce});function le(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function ue(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function J(e){let t=M.useRef(e);return Y(()=>{t.current=e}),t}var Y=typeof window>`u`?M.useEffect:M.useLayoutEffect;function X(e){let t=M.useRef();return t.current===void 0&&(t.current=e()),t}function Z(e){let t=V(),n=()=>e(t.snapshot());return M.useSyncExternalStore(t.subscribe,n,n)}function de(e,t,n,r=[]){let i=M.useRef(),a=z();return Y(()=>{var o;let s=(()=>{for(let e of n){if(typeof e==`string`)return e.trim();if(typeof e==`object`&&`current`in e)return e.current?e.current.textContent?.trim():i.current}})(),c=r.map(e=>e.trim());a.value(e,s,c),(o=t.current)==null||o.setAttribute(L,s),i.current=s}),i}var fe=()=>{let[e,t]=M.useState(),n=X(()=>new Map);return Y(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function pe(e){let t=e.type;return typeof t==`function`?t(e.props):`render`in t?t.render(e.props):e}function Q({asChild:e,children:t},n){return e&&M.isValidElement(t)?M.cloneElement(pe(t),{ref:t.ref},n(t.props.children)):n(t)}var me={position:`absolute`,width:`1px`,height:`1px`,padding:`0`,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,borderWidth:`0`},$=n();function he({className:e,...t}){return(0,$.jsx)(q,{className:i(`flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground`,e),"data-slot":`command`,...t})}function ge({title:e=`Command Palette`,description:t=`Search for a command to run...`,children:n,className:r,showCloseButton:a=!0,...o}){return(0,$.jsxs)(g,{...o,children:[(0,$.jsxs)(p,{className:`sr-only`,children:[(0,$.jsx)(h,{children:e}),(0,$.jsx)(f,{children:t})]}),(0,$.jsx)(m,{className:i(`overflow-hidden p-0`,r),showCloseButton:a,children:(0,$.jsx)(he,{className:`**:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5`,children:n})})]})}function _e({className:e,...t}){return(0,$.jsxs)(`div`,{className:`flex h-9 items-center gap-2 border-b px-3`,"data-slot":`command-input-wrapper`,children:[(0,$.jsx)(_,{className:`size-4 shrink-0 opacity-50`}),(0,$.jsx)(q.Input,{className:i(`flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50`,e),"data-slot":`command-input`,...t})]})}function ve({className:e,...t}){return(0,$.jsx)(q.List,{className:i(`max-h-[300px] scroll-py-1 overflow-y-auto overflow-x-hidden`,e),"data-slot":`command-list`,...t})}function ye({...e}){return(0,$.jsx)(q.Empty,{className:`py-6 text-center text-sm`,"data-slot":`command-empty`,...e})}function be({className:e,...t}){return(0,$.jsx)(q.Group,{className:i(`overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:text-xs`,e),"data-slot":`command-group`,...t})}function xe({className:e,...t}){return(0,$.jsx)(q.Separator,{className:i(`-mx-1 h-px bg-border`,e),"data-slot":`command-separator`,...t})}function Se({className:e,...t}){return(0,$.jsx)(q.Item,{className:i(`relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0`,e),"data-slot":`command-item`,...t})}export{_e as a,xe as c,be as i,_ as l,ge as n,Se as o,ye as r,ve as s,he as t}; \ No newline at end of file diff --git a/src/www/assets/confirm-dialog-D1L-0EhT.js b/src/www/assets/confirm-dialog-Crc1Jrzv.js similarity index 95% rename from src/www/assets/confirm-dialog-D1L-0EhT.js rename to src/www/assets/confirm-dialog-Crc1Jrzv.js index a96a88b..0848099 100644 --- a/src/www/assets/confirm-dialog-D1L-0EhT.js +++ b/src/www/assets/confirm-dialog-Crc1Jrzv.js @@ -1,4 +1,4 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{Xp as n,Yp as r,tm as i}from"./messages-BOatyqUm.js";import{c as a,i as o,t as s,u as c}from"./button-C_NDYaz8.js";import{a as l,r as u}from"./dist-DPPquN_M.js";import{a as d,c as f,i as p,l as m,n as h,o as g,r as _,s as ee,t as v,u as y}from"./dist-iiotRAEO.js";var b=e(t(),1),x=i(),S=`AlertDialog`,[C,te]=l(S,[y]),w=y(),T=e=>{let{__scopeAlertDialog:t,...n}=e,r=w(t);return(0,x.jsx)(g,{...r,...n,modal:!0})};T.displayName=S;var E=`AlertDialogTrigger`,D=b.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=w(n);return(0,x.jsx)(f,{...i,...r,ref:t})});D.displayName=E;var O=`AlertDialogPortal`,k=e=>{let{__scopeAlertDialog:t,...n}=e,r=w(t);return(0,x.jsx)(d,{...r,...n})};k.displayName=O;var A=`AlertDialogOverlay`,j=b.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=w(n);return(0,x.jsx)(p,{...i,...r,ref:t})});j.displayName=A;var M=`AlertDialogContent`,[N,P]=C(M),F=a(`AlertDialogContent`),I=b.forwardRef((e,t)=>{let{__scopeAlertDialog:n,children:r,...i}=e,a=w(n),o=b.useRef(null),s=c(t,o),l=b.useRef(null);return(0,x.jsx)(m,{contentName:M,titleName:L,docsSlug:`alert-dialog`,children:(0,x.jsx)(N,{scope:n,cancelRef:l,children:(0,x.jsxs)(h,{role:`alertdialog`,...a,...i,ref:s,onOpenAutoFocus:u(i.onOpenAutoFocus,e=>{e.preventDefault(),l.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,x.jsx)(F,{children:r}),(0,x.jsx)(G,{contentRef:o})]})})})});I.displayName=M;var L=`AlertDialogTitle`,R=b.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=w(n);return(0,x.jsx)(ee,{...i,...r,ref:t})});R.displayName=L;var z=`AlertDialogDescription`,B=b.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=w(n);return(0,x.jsx)(_,{...i,...r,ref:t})});B.displayName=z;var V=`AlertDialogAction`,H=b.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=w(n);return(0,x.jsx)(v,{...i,...r,ref:t})});H.displayName=V;var U=`AlertDialogCancel`,W=b.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=P(U,n),a=w(n),o=c(t,i);return(0,x.jsx)(v,{...a,...r,ref:o})});W.displayName=U;var G=({contentRef:e})=>{let t=`\`${M}\` requires a description for the component to be accessible for screen reader users. +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{Xp as n,Yp as r,tm as i}from"./messages-CL4J6BaJ.js";import{c as a,i as o,t as s,u as c}from"./button-NLSeBFht.js";import{a as l,r as u}from"./dist-DmeeHi7K.js";import{a as d,c as f,i as p,l as m,n as h,o as g,r as _,s as ee,t as v,u as y}from"./dist-DPYswSIO.js";var b=e(t(),1),x=i(),S=`AlertDialog`,[C,te]=l(S,[y]),w=y(),T=e=>{let{__scopeAlertDialog:t,...n}=e,r=w(t);return(0,x.jsx)(g,{...r,...n,modal:!0})};T.displayName=S;var E=`AlertDialogTrigger`,D=b.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=w(n);return(0,x.jsx)(f,{...i,...r,ref:t})});D.displayName=E;var O=`AlertDialogPortal`,k=e=>{let{__scopeAlertDialog:t,...n}=e,r=w(t);return(0,x.jsx)(d,{...r,...n})};k.displayName=O;var A=`AlertDialogOverlay`,j=b.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=w(n);return(0,x.jsx)(p,{...i,...r,ref:t})});j.displayName=A;var M=`AlertDialogContent`,[N,P]=C(M),F=a(`AlertDialogContent`),I=b.forwardRef((e,t)=>{let{__scopeAlertDialog:n,children:r,...i}=e,a=w(n),o=b.useRef(null),s=c(t,o),l=b.useRef(null);return(0,x.jsx)(m,{contentName:M,titleName:L,docsSlug:`alert-dialog`,children:(0,x.jsx)(N,{scope:n,cancelRef:l,children:(0,x.jsxs)(h,{role:`alertdialog`,...a,...i,ref:s,onOpenAutoFocus:u(i.onOpenAutoFocus,e=>{e.preventDefault(),l.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,x.jsx)(F,{children:r}),(0,x.jsx)(G,{contentRef:o})]})})})});I.displayName=M;var L=`AlertDialogTitle`,R=b.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=w(n);return(0,x.jsx)(ee,{...i,...r,ref:t})});R.displayName=L;var z=`AlertDialogDescription`,B=b.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=w(n);return(0,x.jsx)(_,{...i,...r,ref:t})});B.displayName=z;var V=`AlertDialogAction`,H=b.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=w(n);return(0,x.jsx)(v,{...i,...r,ref:t})});H.displayName=V;var U=`AlertDialogCancel`,W=b.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=P(U,n),a=w(n),o=c(t,i);return(0,x.jsx)(v,{...a,...r,ref:o})});W.displayName=U;var G=({contentRef:e})=>{let t=`\`${M}\` requires a description for the component to be accessible for screen reader users. You can add a description to the \`${M}\` by passing a \`${z}\` component as a child, which also benefits sighted users by adding visible context to the dialog. diff --git a/src/www/assets/crypto-icon-DnliVYVs.js b/src/www/assets/crypto-icon-BPgcAvNF.js similarity index 97% rename from src/www/assets/crypto-icon-DnliVYVs.js rename to src/www/assets/crypto-icon-BPgcAvNF.js index 1e5c3a7..4139854 100644 --- a/src/www/assets/crypto-icon-DnliVYVs.js +++ b/src/www/assets/crypto-icon-BPgcAvNF.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";var r=e(t(),1);function i(e){let t=new Map,n=new Map;return{get(e){return t.get(e)},load(r){let i=t.get(r);if(i)return Promise.resolve(i);let a=n.get(r);if(a)return a;let o=e(r).then(e=>(t.set(r,e),e)).finally(()=>{n.delete(r)});return n.set(r,o),o}}}async function a(e,t,n){for(let n of e){let e=`${n.base}/${t}`;try{let t=await fetch(e,{signal:AbortSignal.timeout(3e3)});if(t.ok)return await t.json()}catch{}}return n}function o({cdnList:e,fallback:t,path:n}){return i(r=>a(e,n(r),t))}var s=`GMWalletApp/crypto-icons`,c=`latest`,l=[{base:`https://cdn.jsdmirror.com/gh/${s}@${c}`,name:`jsdmirror`},{base:`https://cdn.jsdelivr.net/gh/${s}@${c}`,name:`jsdelivr`},{base:`https://fastly.jsdelivr.net/gh/${s}@${c}`,name:`fastly.jsdelivr`},{base:`https://gcore.jsdelivr.net/gh/${s}@${c}`,name:`gcore.jsdelivr`}],u={exchange:`exchanges`,network:`networks`,token:`tokens`,wallet:`wallets`},d=o({cdnList:l,fallback:{},path:e=>`aliases/${u[e]}.json`}),f=o({cdnList:l,fallback:[],path:e=>`maps/${u[e]}.json`});function p(e){return String(e??``).trim().toLowerCase()}function m(e){return p(e).replace(/\s+/g,`-`)}function h(e){let t=e?.split(`:`).pop();return t?t.trim():``}function g(e){return[e.id,e.symbol,e.name,e.shortName,h(e.filePath)].map(e=>m(e??``)).filter(Boolean)}function _(e,t){let n=e.find(e=>g(e).includes(t));return n&&(h(n.filePath)||n.id||n.symbol)||null}async function v(e,t){let n=m(t);if(!n)return``;let[r,i]=await Promise.all([f.load(e),d.load(e)]),a=m(i[n]??``);return _(r,n)||(a?_(r,a):null)||i[n]||n}function y(e,t,n={}){let{variant:r=`branded`}=n,i=m(t);return i?`${l[0].base}/assets/${u[e]}/${r}/${i}.svg`:null}async function b(e,t,n={}){let{variant:r=`branded`}=n,i=await v(e,t),a=`assets/${u[e]}/${r}/${i}.svg`;for(let e of l){let t=`${e.base}/${a}`;try{if((await fetch(t,{method:`HEAD`,signal:AbortSignal.timeout(2500)})).ok)return{url:t}}catch{}}return{url:`${l[0].base}/${a}`}}function x(e,t){return t?.trim()||e||`--`}var S=n();function C({type:e,name:t,variant:n=`branded`,size:i=16,width:a,height:o,className:s,alt:c,style:l,onError:u,...d}){let f=y(e,t,{variant:n}),[p,m]=(0,r.useState)(null),[h,g]=(0,r.useState)(f),_=h??f,v=a??i,x=o??i;return(0,r.useEffect)(()=>{let r=!1;return m(null),g(y(e,t,{variant:n})),b(e,t,{variant:n}).then(e=>{r||g(e.url)}),()=>{r=!0}},[t,e,n]),!(_&&t)||p===_?null:(0,S.jsx)(`img`,{alt:c??``,className:s,height:x,onError:e=>{m(_),u?.(e)},src:_,style:{display:`inline-block`,...l},width:v,...d})}export{p as a,l as i,x as n,v as o,u as r,o as s,C as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";var r=e(t(),1);function i(e){let t=new Map,n=new Map;return{get(e){return t.get(e)},load(r){let i=t.get(r);if(i)return Promise.resolve(i);let a=n.get(r);if(a)return a;let o=e(r).then(e=>(t.set(r,e),e)).finally(()=>{n.delete(r)});return n.set(r,o),o}}}async function a(e,t,n){for(let n of e){let e=`${n.base}/${t}`;try{let t=await fetch(e,{signal:AbortSignal.timeout(3e3)});if(t.ok)return await t.json()}catch{}}return n}function o({cdnList:e,fallback:t,path:n}){return i(r=>a(e,n(r),t))}var s=`GMWalletApp/crypto-icons`,c=`latest`,l=[{base:`https://cdn.jsdmirror.com/gh/${s}@${c}`,name:`jsdmirror`},{base:`https://cdn.jsdelivr.net/gh/${s}@${c}`,name:`jsdelivr`},{base:`https://fastly.jsdelivr.net/gh/${s}@${c}`,name:`fastly.jsdelivr`},{base:`https://gcore.jsdelivr.net/gh/${s}@${c}`,name:`gcore.jsdelivr`}],u={exchange:`exchanges`,network:`networks`,token:`tokens`,wallet:`wallets`},d=o({cdnList:l,fallback:{},path:e=>`aliases/${u[e]}.json`}),f=o({cdnList:l,fallback:[],path:e=>`maps/${u[e]}.json`});function p(e){return String(e??``).trim().toLowerCase()}function m(e){return p(e).replace(/\s+/g,`-`)}function h(e){let t=e?.split(`:`).pop();return t?t.trim():``}function g(e){return[e.id,e.symbol,e.name,e.shortName,h(e.filePath)].map(e=>m(e??``)).filter(Boolean)}function _(e,t){let n=e.find(e=>g(e).includes(t));return n&&(h(n.filePath)||n.id||n.symbol)||null}async function v(e,t){let n=m(t);if(!n)return``;let[r,i]=await Promise.all([f.load(e),d.load(e)]),a=m(i[n]??``);return _(r,n)||(a?_(r,a):null)||i[n]||n}function y(e,t,n={}){let{variant:r=`branded`}=n,i=m(t);return i?`${l[0].base}/assets/${u[e]}/${r}/${i}.svg`:null}async function b(e,t,n={}){let{variant:r=`branded`}=n,i=await v(e,t),a=`assets/${u[e]}/${r}/${i}.svg`;for(let e of l){let t=`${e.base}/${a}`;try{if((await fetch(t,{method:`HEAD`,signal:AbortSignal.timeout(2500)})).ok)return{url:t}}catch{}}return{url:`${l[0].base}/${a}`}}function x(e,t){return t?.trim()||e||`--`}var S=n();function C({type:e,name:t,variant:n=`branded`,size:i=16,width:a,height:o,className:s,alt:c,style:l,onError:u,...d}){let f=y(e,t,{variant:n}),[p,m]=(0,r.useState)(null),[h,g]=(0,r.useState)(f),_=h??f,v=a??i,x=o??i;return(0,r.useEffect)(()=>{let r=!1;return m(null),g(y(e,t,{variant:n})),b(e,t,{variant:n}).then(e=>{r||g(e.url)}),()=>{r=!0}},[t,e,n]),!(_&&t)||p===_?null:(0,S.jsx)(`img`,{alt:c??``,className:s,height:x,onError:e=>{m(_),u?.(e)},src:_,style:{display:`inline-block`,...l},width:v,...d})}export{p as a,l as i,x as n,v as o,u as r,o as s,C as t}; \ No newline at end of file diff --git a/src/www/assets/dashboard-C_GaAVh0.js b/src/www/assets/dashboard-CicUP9sI.js similarity index 99% rename from src/www/assets/dashboard-C_GaAVh0.js rename to src/www/assets/dashboard-CicUP9sI.js index f089b10..29b4a30 100644 --- a/src/www/assets/dashboard-C_GaAVh0.js +++ b/src/www/assets/dashboard-CicUP9sI.js @@ -1,4 +1,4 @@ -import{n as e,r as t,t as n}from"./chunk-DECur_0Z.js";import{a as r,c as i}from"./auth-store-De4Y7PFV.js";import{t as a}from"./react-CO2uhaBc.js";import{$c as o,$f as s,$l as c,Al as l,Bl as u,Cl as d,Dl as f,El as p,Fl as m,Gl as h,Hl as g,Il as _,Jl as v,Kl as y,Ll as b,Ml as x,Nl as S,Ol as C,Pl as w,Qf as T,Ql as E,Qp as D,Rl as O,Sl as k,Tl as ee,Ul as te,Vl as A,Wl as j,Xl as ne,Yl as re,Zf as ie,Zl as ae,_l as oe,_u as se,al as ce,au as le,bl as ue,bu as de,cl as fe,cu as pe,dl as me,du as he,el as ge,ep as _e,eu as ve,fl as ye,fu as be,gl as xe,gu as Se,hl as Ce,hu as we,il as Te,iu as Ee,jl as De,kl as Oe,ll as ke,lu as Ae,ml as je,mu as Me,nl as Ne,np as Pe,nu as Fe,ol as Ie,ou as Le,pl as Re,pu as ze,ql as Be,rl as Ve,rp as He,ru as Ue,sl as We,su as Ge,tl as Ke,tm as qe,tp as Je,tu as Ye,ul as Xe,uu as Ze,vl as Qe,vu as $e,wl as et,xl as tt,yl as nt,yu as rt,zl as it}from"./messages-BOatyqUm.js";import{t as at}from"./with-selector-DBfssCrY.js";import{t as ot}from"./useNavigate-7u4DX0Ho.js";import{r as st}from"./dist-Cc8_LDAq.js";import{a as ct,c as lt,o as ut,s as dt}from"./search-provider-C-_FQI9C.js";import{i as M,n as ft,t as pt}from"./button-C_NDYaz8.js";import{n as mt,r as ht,t as gt}from"./popover-NQZzcPDh.js";import{n as _t,r as vt,t as yt}from"./tabs-6Ep1KePr.js";import{i as bt,n as xt,r as St,t as Ct}from"./tooltip-xZuTTfnF.js";import{t as N}from"./clsx-D9aGYY3V.js";import{t as wt}from"./cookies-BzZOQYPw.js";import{t as Tt}from"./createLucideIcon-Br0Bd5k2.js";import{i as Et,p as Dt}from"./data-table-1LQSBhN2.js";import{t as Ot}from"./check-CHp0nSkR.js";import{t as kt}from"./chevron-down-BB5h1CsX.js";import{n as At,t as jt}from"./skeleton-CmDjDV1O.js";import{i as Mt,o as Nt,r as Pt}from"./epusdt-BvGYu9TV.js";import{n as Ft,t as It}from"./main-C1R3Hvq1.js";import{c as Lt,i as Rt,o as zt,r as Bt,s as Vt,t as Ht}from"./command-B_SlhXkX.js";import{t as Ut}from"./shield-check-MAPDL1u8.js";import{t as Wt}from"./triangle-alert-DB5v_9sS.js";import{t as Gt}from"./page-header-GTtyZFBB.js";import{t as Kt}from"./badge-VJlwwTW5.js";import{a as qt,i as Jt,n as Yt,o as Xt,r as Zt,t as Qt}from"./table-9UOy2Vxt.js";import{a as $t,i as en,n as tn,r as nn,t as rn}from"./card-DiF5YaRi.js";import{t as an}from"./crypto-icon-DnliVYVs.js";var on=Tt(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),sn=Tt(`calendar`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}]]),cn=Tt(`dollar-sign`,[[`line`,{x1:`12`,x2:`12`,y1:`2`,y2:`22`,key:`7eqyqh`}],[`path`,{d:`M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6`,key:`1b0p4s`}]]),ln=Tt(`layers`,[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]]),un=Tt(`list-filter`,[[`path`,{d:`M2 5h20`,key:`1fs1ex`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`path`,{d:`M9 19h6`,key:`456am0`}]]),dn=Tt(`network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]),fn=Tt(`piggy-bank`,[[`path`,{d:`M11 17h3v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a3.16 3.16 0 0 0 2-2h1a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-1a5 5 0 0 0-2-4V3a4 4 0 0 0-3.2 1.6l-.3.4H11a6 6 0 0 0-6 6v1a5 5 0 0 0 2 4v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1z`,key:`1piglc`}],[`path`,{d:`M16 10h.01`,key:`1m94wz`}],[`path`,{d:`M2 8v1a2 2 0 0 0 2 2h1`,key:`1env43`}]]),pn=Tt(`radio-tower`,[[`path`,{d:`M4.9 16.1C1 12.2 1 5.8 4.9 1.9`,key:`s0qx1y`}],[`path`,{d:`M7.8 4.7a6.14 6.14 0 0 0-.8 7.5`,key:`1idnkw`}],[`circle`,{cx:`12`,cy:`9`,r:`2`,key:`1092wv`}],[`path`,{d:`M16.2 4.8c2 2 2.26 5.11.8 7.47`,key:`ojru2q`}],[`path`,{d:`M19.1 1.9a9.96 9.96 0 0 1 0 14.1`,key:`rhi7fg`}],[`path`,{d:`M9.5 18h5`,key:`mfy3pd`}],[`path`,{d:`m8 22 4-11 4 11`,key:`25yftu`}]]),mn=Tt(`receipt-text`,[[`path`,{d:`M13 16H8`,key:`wsln4y`}],[`path`,{d:`M14 8H8`,key:`1l3xfs`}],[`path`,{d:`M16 12H8`,key:`1fr5h0`}],[`path`,{d:`M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z`,key:`ycz6yz`}]]),hn=Tt(`server-cog`,[[`path`,{d:`m10.852 14.772-.383.923`,key:`11vil6`}],[`path`,{d:`M13.148 14.772a3 3 0 1 0-2.296-5.544l-.383-.923`,key:`1v3clb`}],[`path`,{d:`m13.148 9.228.383-.923`,key:`t2zzyc`}],[`path`,{d:`m13.53 15.696-.382-.924a3 3 0 1 1-2.296-5.544`,key:`1bxfiv`}],[`path`,{d:`m14.772 10.852.923-.383`,key:`k9m8cz`}],[`path`,{d:`m14.772 13.148.923.383`,key:`1xvhww`}],[`path`,{d:`M4.5 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-.5`,key:`tn8das`}],[`path`,{d:`M4.5 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-.5`,key:`1g2pve`}],[`path`,{d:`M6 18h.01`,key:`uhywen`}],[`path`,{d:`M6 6h.01`,key:`1utrut`}],[`path`,{d:`m9.228 10.852-.923-.383`,key:`1wtb30`}],[`path`,{d:`m9.228 13.148-.923.383`,key:`1a830x`}]]),gn=Tt(`trending-up`,[[`path`,{d:`M16 7h6v6`,key:`box55l`}],[`path`,{d:`m22 7-8.5 8.5-5-5L2 17`,key:`1t1m79`}]]),_n=Tt(`wifi`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M2 8.82a15 15 0 0 1 20 0`,key:`dnpr2z`}],[`path`,{d:`M5 12.859a10 10 0 0 1 14 0`,key:`1x1e6c`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}]]),vn=365.2425,yn=6048e5,bn=864e5,xn=3600*24;xn*7,xn*vn/12*3;var Sn=Symbol.for(`constructDateFrom`);function Cn(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&Sn in e?e[Sn](t):e instanceof Date?new e.constructor(t):new Date(t)}function P(e,t){return Cn(t||e,e)}function wn(e,t,n){let r=P(e,n?.in);return isNaN(t)?Cn(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Tn(e,t,n){let r=P(e,n?.in);if(isNaN(t))return Cn(n?.in||e,NaN);if(!t)return r;let i=r.getDate(),a=Cn(n?.in||e,r.getTime());return a.setMonth(r.getMonth()+t+1,0),i>=a.getDate()?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}var En={};function Dn(){return En}function On(e,t){let n=Dn(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=P(e,t?.in),a=i.getDay(),o=(a=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function jn(e){let t=P(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-+n}function Mn(e,...t){let n=Cn.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}function Nn(e,t){let n=P(e,t?.in);return n.setHours(0,0,0,0),n}function Pn(e,t,n){let[r,i]=Mn(n?.in,e,t),a=Nn(r),o=Nn(i),s=+a-jn(a),c=+o-jn(o);return Math.round((s-c)/bn)}function Fn(e,t){let n=An(e,t),r=Cn(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),kn(r)}function In(e,t,n){return wn(e,t*7,n)}function Ln(e,t,n){return Tn(e,t*12,n)}function Rn(e,t){let n,r=t?.in;return e.forEach(e=>{!r&&typeof e==`object`&&(r=Cn.bind(null,e));let t=P(e,r);(!n||n{!r&&typeof e==`object`&&(r=Cn.bind(null,e));let t=P(e,r);(!n||n>t||isNaN(+t))&&(n=t)}),Cn(r,n||NaN)}function Bn(e,t,n){let[r,i]=Mn(n?.in,e,t);return+Nn(r)==+Nn(i)}function Vn(e){return e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`}function Hn(e){return!(!Vn(e)&&typeof e!=`number`||isNaN(+P(e)))}function Un(e,t,n){let[r,i]=Mn(n?.in,e,t),a=r.getFullYear()-i.getFullYear(),o=r.getMonth()-i.getMonth();return a*12+o}function Wn(e,t){let n=P(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Gn(e,t){let[n,r]=Mn(e,t.start,t.end);return{start:n,end:r}}function Kn(e,t){let{start:n,end:r}=Gn(t?.in,e),i=+n>+r,a=i?+n:+r,o=i?r:n;o.setHours(0,0,0,0),o.setDate(1);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,i=!i);let c=[];for(;+o<=a;)c.push(Cn(n,o)),o.setMonth(o.getMonth()+s);return i?c.reverse():c}function qn(e,t){let n=P(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Jn(e,t){let n=P(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Yn(e,t){let n=P(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Xn(e,t){let{start:n,end:r}=Gn(t?.in,e),i=+n>+r,a=i?+n:+r,o=i?r:n;o.setHours(0,0,0,0),o.setMonth(0,1);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,i=!i);let c=[];for(;+o<=a;)c.push(Cn(n,o)),o.setFullYear(o.getFullYear()+s);return i?c.reverse():c}function Zn(e,t){let n=Dn(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=P(e,t?.in),a=i.getDay(),o=(a{let r,i=$n[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r};function tr(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var nr={date:tr({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:tr({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:tr({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},rr={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},ir=(e,t,n,r)=>rr[e];function ar(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}var or={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:ar({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:ar({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:ar({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:ar({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:ar({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function sr(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?lr(s,e=>e.test(o)):cr(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function cr(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function lr(e,t){for(let n=0;n{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var dr={code:`en-US`,formatDistance:er,formatLong:nr,formatRelative:ir,localize:or,match:{ordinalNumber:ur({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:sr({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:sr({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:sr({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:sr({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:sr({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function fr(e,t){let n=P(e,t?.in);return Pn(n,Yn(n))+1}function pr(e,t){let n=P(e,t?.in),r=kn(n)-+Fn(n);return Math.round(r/yn)+1}function mr(e,t){let n=P(e,t?.in),r=n.getFullYear(),i=Dn(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=Cn(t?.in||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);let s=On(o,t),c=Cn(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);let l=On(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function hr(e,t){let n=Dn(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=mr(e,t),a=Cn(t?.in||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),On(a,t)}function gr(e,t){let n=P(e,t?.in),r=On(n,t)-+hr(n,t);return Math.round(r/yn)+1}function F(e,t){return(e<0?`-`:``)+Math.abs(e).toString().padStart(t,`0`)}var _r={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return F(t===`yy`?r%100:r,t.length)},M(e,t){let n=e.getMonth();return t===`M`?String(n+1):F(n+1,2)},d(e,t){return F(e.getDate(),t.length)},a(e,t){let n=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.toUpperCase();case`aaa`:return n;case`aaaaa`:return n[0];default:return n===`am`?`a.m.`:`p.m.`}},h(e,t){return F(e.getHours()%12||12,t.length)},H(e,t){return F(e.getHours(),t.length)},m(e,t){return F(e.getMinutes(),t.length)},s(e,t){return F(e.getSeconds(),t.length)},S(e,t){let n=t.length,r=e.getMilliseconds();return F(Math.trunc(r*10**(n-3)),t.length)}},vr={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},yr={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){let t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:`year`})}return _r.y(e,t)},Y:function(e,t,n,r){let i=mr(e,r),a=i>0?i:1-i;return t===`YY`?F(a%100,2):t===`Yo`?n.ordinalNumber(a,{unit:`year`}):F(a,t.length)},R:function(e,t){return F(An(e),t.length)},u:function(e,t){return F(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return F(r,2);case`Qo`:return n.ordinalNumber(r,{unit:`quarter`});case`QQQ`:return n.quarter(r,{width:`abbreviated`,context:`formatting`});case`QQQQQ`:return n.quarter(r,{width:`narrow`,context:`formatting`});default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`q`:return String(r);case`qq`:return F(r,2);case`qo`:return n.ordinalNumber(r,{unit:`quarter`});case`qqq`:return n.quarter(r,{width:`abbreviated`,context:`standalone`});case`qqqqq`:return n.quarter(r,{width:`narrow`,context:`standalone`});default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){let r=e.getMonth();switch(t){case`M`:case`MM`:return _r.M(e,t);case`Mo`:return n.ordinalNumber(r+1,{unit:`month`});case`MMM`:return n.month(r,{width:`abbreviated`,context:`formatting`});case`MMMMM`:return n.month(r,{width:`narrow`,context:`formatting`});default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){let r=e.getMonth();switch(t){case`L`:return String(r+1);case`LL`:return F(r+1,2);case`Lo`:return n.ordinalNumber(r+1,{unit:`month`});case`LLL`:return n.month(r,{width:`abbreviated`,context:`standalone`});case`LLLLL`:return n.month(r,{width:`narrow`,context:`standalone`});default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){let i=gr(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):F(i,t.length)},I:function(e,t,n){let r=pr(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):F(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):_r.d(e,t)},D:function(e,t,n){let r=fr(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):F(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case`E`:case`EE`:case`EEE`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`EEEEE`:return n.day(r,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(a);case`ee`:return F(a,2);case`eo`:return n.ordinalNumber(a,{unit:`day`});case`eee`:return n.day(i,{width:`abbreviated`,context:`formatting`});case`eeeee`:return n.day(i,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(i,{width:`short`,context:`formatting`});default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(a);case`cc`:return F(a,t.length);case`co`:return n.ordinalNumber(a,{unit:`day`});case`ccc`:return n.day(i,{width:`abbreviated`,context:`standalone`});case`ccccc`:return n.day(i,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(i,{width:`short`,context:`standalone`});default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){let r=e.getDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return F(i,t.length);case`io`:return n.ordinalNumber(i,{unit:`day`});case`iii`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`iiiii`:return n.day(r,{width:`narrow`,context:`formatting`});case`iiiiii`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){let r=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(r,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(r,{width:`wide`,context:`formatting`})}},b:function(e,t,n){let r=e.getHours(),i;switch(i=r===12?vr.noon:r===0?vr.midnight:r/12>=1?`pm`:`am`,t){case`b`:case`bb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`bbb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){let r=e.getHours(),i;switch(i=r>=17?vr.evening:r>=12?vr.afternoon:r>=4?vr.morning:vr.night,t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:`hour`})}return _r.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):_r.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):F(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):F(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):_r.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):_r.s(e,t)},S:function(e,t){return _r.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return xr(r);case`XXXX`:case`XX`:return Sr(r);default:return Sr(r,`:`)}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`x`:return xr(r);case`xxxx`:case`xx`:return Sr(r);default:return Sr(r,`:`)}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+br(r,`:`);default:return`GMT`+Sr(r,`:`)}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+br(r,`:`);default:return`GMT`+Sr(r,`:`)}},t:function(e,t,n){return F(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return F(+e,t.length)}};function br(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+F(a,2)}function xr(e,t){return e%60==0?(e>0?`-`:`+`)+F(Math.abs(e)/60,2):Sr(e,t)}function Sr(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=F(Math.trunc(r/60),2),a=F(r%60,2);return n+i+t+a}var Cr=(e,t)=>{switch(e){case`P`:return t.date({width:`short`});case`PP`:return t.date({width:`medium`});case`PPP`:return t.date({width:`long`});default:return t.date({width:`full`})}},wr=(e,t)=>{switch(e){case`p`:return t.time({width:`short`});case`pp`:return t.time({width:`medium`});case`ppp`:return t.time({width:`long`});default:return t.time({width:`full`})}},Tr={p:wr,P:(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Cr(e,t);let a;switch(r){case`P`:a=t.dateTime({width:`short`});break;case`PP`:a=t.dateTime({width:`medium`});break;case`PPP`:a=t.dateTime({width:`long`});break;default:a=t.dateTime({width:`full`});break}return a.replace(`{{date}}`,Cr(r,t)).replace(`{{time}}`,wr(i,t))}},Er=/^D+$/,Dr=/^Y+$/,Or=[`D`,`DD`,`YY`,`YYYY`];function kr(e){return Er.test(e)}function Ar(e){return Dr.test(e)}function jr(e,t,n){let r=Mr(e,t,n);if(console.warn(r),Or.includes(e))throw RangeError(r)}function Mr(e,t,n){let r=e[0]===`Y`?`years`:`days of the month`;return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var Nr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Pr=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Fr=/^'([^]*?)'?$/,Ir=/''/g,Lr=/[a-zA-Z]/;function Rr(e,t,n){let r=Dn(),i=n?.locale??r.locale??dr,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=P(e,n?.in);if(!Hn(s))throw RangeError(`Invalid time value`);let c=t.match(Pr).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=Tr[t];return n(e,i.formatLong)}return e}).join(``).match(Nr).map(e=>{if(e===`''`)return{isToken:!1,value:`'`};let t=e[0];if(t===`'`)return{isToken:!1,value:zr(e)};if(yr[t])return{isToken:!0,value:e};if(t.match(Lr))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));let l={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return c.map(r=>{if(!r.isToken)return r.value;let a=r.value;(!n?.useAdditionalWeekYearTokens&&Ar(a)||!n?.useAdditionalDayOfYearTokens&&kr(a))&&jr(a,t,String(e));let o=yr[a[0]];return o(s,a,i.localize,l)}).join(``)}function zr(e){let t=e.match(Fr);return t?t[1].replace(Ir,`'`):e}function Br(e,t){let n=P(e,t?.in),r=n.getFullYear(),i=n.getMonth(),a=Cn(n,0);return a.setFullYear(r,i+1,0),a.setHours(0,0,0,0),a.getDate()}function Vr(e,t){return P(e,t?.in).getMonth()}function Hr(e,t){return P(e,t?.in).getFullYear()}function Ur(e,t){return+P(e)>+P(t)}function Wr(e,t){return+P(e)<+P(t)}function Gr(e,t,n){let[r,i]=Mn(n?.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function Kr(e,t,n){let[r,i]=Mn(n?.in,e,t);return r.getFullYear()===i.getFullYear()}function qr(e,t,n){return wn(e,-t,n)}function Jr(e,t,n){let r=P(e,n?.in),i=r.getFullYear(),a=r.getDate(),o=Cn(n?.in||e,0);o.setFullYear(i,t,15),o.setHours(0,0,0,0);let s=Br(o);return r.setMonth(t,Math.min(a,s)),r}function Yr(e,t,n){let r=P(e,n?.in);return isNaN(+r)?Cn(n?.in||e,NaN):(r.setFullYear(t),r)}function Xr(e,t,n){return Tn(e,-t,n)}var Zr={lessThanXSeconds:{one:`少於 1 秒`,other:`少於 {{count}} 秒`},xSeconds:{one:`1 秒`,other:`{{count}} 秒`},halfAMinute:`半分鐘`,lessThanXMinutes:{one:`少於 1 分鐘`,other:`少於 {{count}} 分鐘`},xMinutes:{one:`1 分鐘`,other:`{{count}} 分鐘`},xHours:{one:`1 小時`,other:`{{count}} 小時`},aboutXHours:{one:`大約 1 小時`,other:`大約 {{count}} 小時`},xDays:{one:`1 天`,other:`{{count}} 天`},aboutXWeeks:{one:`大約 1 個星期`,other:`大約 {{count}} 個星期`},xWeeks:{one:`1 個星期`,other:`{{count}} 個星期`},aboutXMonths:{one:`大約 1 個月`,other:`大約 {{count}} 個月`},xMonths:{one:`1 個月`,other:`{{count}} 個月`},aboutXYears:{one:`大約 1 年`,other:`大約 {{count}} 年`},xYears:{one:`1 年`,other:`{{count}} 年`},overXYears:{one:`超過 1 年`,other:`超過 {{count}} 年`},almostXYears:{one:`將近 1 年`,other:`將近 {{count}} 年`}},Qr=(e,t,n)=>{let r,i=Zr[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+`內`:r+`前`:r},$r={date:tr({formats:{full:`y'年'M'月'd'日' EEEE`,long:`y'年'M'月'd'日'`,medium:`yyyy-MM-dd`,short:`yy-MM-dd`},defaultWidth:`full`}),time:tr({formats:{full:`zzzz a h:mm:ss`,long:`z a h:mm:ss`,medium:`a h:mm:ss`,short:`a h:mm`},defaultWidth:`full`}),dateTime:tr({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},ei={lastWeek:`'上個'eeee p`,yesterday:`'昨天' p`,today:`'今天' p`,tomorrow:`'明天' p`,nextWeek:`'下個'eeee p`,other:`P`},ti={code:`zh-TW`,formatDistance:Qr,formatLong:$r,formatRelative:(e,t,n,r)=>ei[e],localize:{ordinalNumber:(e,t)=>{let n=Number(e);switch(t?.unit){case`date`:return n+`日`;case`hour`:return n+`時`;case`minute`:return n+`分`;case`second`:return n+`秒`;default:return`第 `+n}},era:ar({values:{narrow:[`前`,`公元`],abbreviated:[`前`,`公元`],wide:[`公元前`,`公元`]},defaultWidth:`wide`}),quarter:ar({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`第一刻`,`第二刻`,`第三刻`,`第四刻`],wide:[`第一刻鐘`,`第二刻鐘`,`第三刻鐘`,`第四刻鐘`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:ar({values:{narrow:[`一`,`二`,`三`,`四`,`五`,`六`,`七`,`八`,`九`,`十`,`十一`,`十二`],abbreviated:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],wide:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`]},defaultWidth:`wide`}),day:ar({values:{narrow:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],short:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],abbreviated:[`週日`,`週一`,`週二`,`週三`,`週四`,`週五`,`週六`],wide:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`]},defaultWidth:`wide`}),dayPeriod:ar({values:{narrow:{am:`上`,pm:`下`,midnight:`凌晨`,noon:`午`,morning:`早`,afternoon:`下午`,evening:`晚`,night:`夜`},abbreviated:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜間`},wide:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜間`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`上`,pm:`下`,midnight:`凌晨`,noon:`午`,morning:`早`,afternoon:`下午`,evening:`晚`,night:`夜`},abbreviated:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜間`},wide:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜間`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:ur({matchPattern:/^(第\s*)?\d+(日|時|分|秒)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:sr({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:`any`}),quarter:sr({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻鐘/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:sr({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},defaultParseWidth:`any`}),day:sr({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:`any`}),dayPeriod:sr({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};function ni(e,t,n=`long`){return new Intl.DateTimeFormat(`en-US`,{hour:`numeric`,timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(` `)}var ri={},ii={};function ai(e,t){try{let n=(ri[e]||=new Intl.DateTimeFormat(`en-US`,{timeZone:e,timeZoneName:`longOffset`}).format)(t).split(`GMT`)[1];return n in ii?ii[n]:si(n,n.split(`:`))}catch{if(e in ii)return ii[e];let t=e?.match(oi);return t?si(e,t.slice(1)):NaN}}var oi=/([+-]\d\d):?(\d\d)?/;function si(e,t){let n=+(t[0]||0),r=+(t[1]||0),i=(t[2]||0)/60;return ii[e]=n*60+r>0?n*60+r+i:n*60-r-i}var ci=class e extends Date{constructor(...e){super(),e.length>1&&typeof e[e.length-1]==`string`&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(ai(this.timeZone,this))?this.setTime(NaN):e.length?typeof e[0]==`number`&&(e.length===1||e.length===2&&typeof e[1]!=`number`)?this.setTime(e[0]):typeof e[0]==`string`?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),fi(this,NaN),ui(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}withTimeZone(t){return new e(+this,t)}getTimezoneOffset(){let e=-ai(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),ui(this),+this}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}},li=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!li.test(e))return;let t=e.replace(li,`$1UTC`);ci.prototype[t]&&(e.startsWith(`get`)?ci.prototype[e]=function(){return this.internal[t]()}:(ci.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),di(this),+this},ci.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),ui(this),+this}))});function ui(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-ai(e.timeZone,e)*60))}function di(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),fi(e)}function fi(e){let t=ai(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);let i=-new Date(+e).getTimezoneOffset(),a=i- -new Date(+r).getTimezoneOffset(),o=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&o&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);let s=i-n;s&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+s);let c=new Date(+e);c.setUTCSeconds(0);let l=i>0?c.getSeconds():(c.getSeconds()-60)%60,u=Math.round(-(ai(e.timeZone,e)*60))%60;(u||l)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+u),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+u+l));let d=ai(e.timeZone,e),f=d>0?Math.floor(d):Math.ceil(d),p=-new Date(+e).getTimezoneOffset()-f,m=f!==n,h=p-s;if(m&&h){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+h);let t=ai(e.timeZone,e),n=f-(t>0?Math.floor(t):Math.ceil(t));n&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+n),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n))}}var pi=class e extends ci{static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}toISOString(){let[e,t,n]=this.tzComponents(),r=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){let[e,t,n,r]=this.internal.toUTCString().split(` `);return`${e?.slice(0,-1)} ${n} ${t} ${r}`}toTimeString(){let e=this.internal.toUTCString().split(` `)[4],[t,n,r]=this.tzComponents();return`${e} GMT${t}${n}${r} (${ni(this.timeZone,this)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){let e=this.getTimezoneOffset();return[e>0?`-`:`+`,String(Math.floor(Math.abs(e)/60)).padStart(2,`0`),String(Math.abs(e)%60).padStart(2,`0`)]}withTimeZone(t){return new e(+this,t)}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}},mi=5,hi=4;function gi(e,t){let n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,i=t.addDays(e,-r+1),a=t.addDays(i,mi*7-1);return t.getMonth(e)===t.getMonth(a)?mi:hi}function _i(e,t){let n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-6):t.addDays(n,-1*(r-1))}function vi(e,t){let n=_i(e,t),r=gi(e,t);return t.addDays(n,r*7-1)}var yi={...dr,labels:{labelDayButton:(e,t,n,r)=>{let i;i=r&&typeof r.format==`function`?r.format.bind(r):(e,t)=>Rr(e,t,{locale:dr,...n});let a=i(e,`PPPP`);return t.today&&(a=`Today, ${a}`),t.selected&&(a=`${a}, selected`),a},labelMonthDropdown:`Choose the Month`,labelNext:`Go to the Next Month`,labelPrevious:`Go to the Previous Month`,labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:`Choose the Year`,labelGrid:(e,t,n)=>{let r;return r=n&&typeof n.format==`function`?n.format.bind(n):(e,n)=>Rr(e,n,{locale:dr,...t}),r(e,`LLLL yyyy`)},labelGridcell:(e,t,n,r)=>{let i;i=r&&typeof r.format==`function`?r.format.bind(r):(e,t)=>Rr(e,t,{locale:dr,...n});let a=i(e,`PPPP`);return t?.today&&(a=`Today, ${a}`),a},labelNav:`Navigation bar`,labelWeekNumberHeader:`Week Number`,labelWeekday:(e,t,n)=>{let r;return r=n&&typeof n.format==`function`?n.format.bind(n):(e,n)=>Rr(e,n,{locale:dr,...t}),r(e,`cccc`)}}},bi=class e{constructor(e,t){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?pi.tz(this.options.timeZone):new this.Date,this.newDate=(e,t,n)=>this.overrides?.newDate?this.overrides.newDate(e,t,n):this.options.timeZone?new pi(e,t,n,this.options.timeZone):new Date(e,t,n),this.addDays=(e,t)=>this.overrides?.addDays?this.overrides.addDays(e,t):wn(e,t),this.addMonths=(e,t)=>this.overrides?.addMonths?this.overrides.addMonths(e,t):Tn(e,t),this.addWeeks=(e,t)=>this.overrides?.addWeeks?this.overrides.addWeeks(e,t):In(e,t),this.addYears=(e,t)=>this.overrides?.addYears?this.overrides.addYears(e,t):Ln(e,t),this.differenceInCalendarDays=(e,t)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(e,t):Pn(e,t),this.differenceInCalendarMonths=(e,t)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(e,t):Un(e,t),this.eachMonthOfInterval=e=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(e):Kn(e),this.eachYearOfInterval=e=>{let t=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(e):Xn(e),n=new Set(t.map(e=>this.getYear(e)));if(n.size===t.length)return t;let r=[];return n.forEach(e=>{r.push(new Date(e,0,1))}),r},this.endOfBroadcastWeek=e=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(e):vi(e,this),this.endOfISOWeek=e=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(e):Qn(e),this.endOfMonth=e=>this.overrides?.endOfMonth?this.overrides.endOfMonth(e):Wn(e),this.endOfWeek=(e,t)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(e,t):Zn(e,this.options),this.endOfYear=e=>this.overrides?.endOfYear?this.overrides.endOfYear(e):Jn(e),this.format=(e,t,n)=>{let r=this.overrides?.format?this.overrides.format(e,t,this.options):Rr(e,t,this.options);return this.options.numerals&&this.options.numerals!==`latn`?this.replaceDigits(r):r},this.getISOWeek=e=>this.overrides?.getISOWeek?this.overrides.getISOWeek(e):pr(e),this.getMonth=(e,t)=>this.overrides?.getMonth?this.overrides.getMonth(e,this.options):Vr(e,this.options),this.getYear=(e,t)=>this.overrides?.getYear?this.overrides.getYear(e,this.options):Hr(e,this.options),this.getWeek=(e,t)=>this.overrides?.getWeek?this.overrides.getWeek(e,this.options):gr(e,this.options),this.isAfter=(e,t)=>this.overrides?.isAfter?this.overrides.isAfter(e,t):Ur(e,t),this.isBefore=(e,t)=>this.overrides?.isBefore?this.overrides.isBefore(e,t):Wr(e,t),this.isDate=e=>this.overrides?.isDate?this.overrides.isDate(e):Vn(e),this.isSameDay=(e,t)=>this.overrides?.isSameDay?this.overrides.isSameDay(e,t):Bn(e,t),this.isSameMonth=(e,t)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(e,t):Gr(e,t),this.isSameYear=(e,t)=>this.overrides?.isSameYear?this.overrides.isSameYear(e,t):Kr(e,t),this.max=e=>this.overrides?.max?this.overrides.max(e):Rn(e),this.min=e=>this.overrides?.min?this.overrides.min(e):zn(e),this.setMonth=(e,t)=>this.overrides?.setMonth?this.overrides.setMonth(e,t):Jr(e,t),this.setYear=(e,t)=>this.overrides?.setYear?this.overrides.setYear(e,t):Yr(e,t),this.startOfBroadcastWeek=(e,t)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(e,this):_i(e,this),this.startOfDay=e=>this.overrides?.startOfDay?this.overrides.startOfDay(e):Nn(e),this.startOfISOWeek=e=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(e):kn(e),this.startOfMonth=e=>this.overrides?.startOfMonth?this.overrides.startOfMonth(e):qn(e),this.startOfWeek=(e,t)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(e,this.options):On(e,this.options),this.startOfYear=e=>this.overrides?.startOfYear?this.overrides.startOfYear(e):Yn(e),this.options={locale:yi,...e},this.overrides=t}getDigitMap(){let{numerals:e=`latn`}=this.options,t=new Intl.NumberFormat(`en-US`,{numberingSystem:e}),n={};for(let e=0;e<10;e++)n[e.toString()]=t.format(e);return n}replaceDigits(e){let t=this.getDigitMap();return e.replace(/\d/g,e=>t[e]||e)}formatNumber(e){return this.replaceDigits(e.toString())}getMonthYearOrder(){let t=this.options.locale?.code;return t&&e.yearFirstLocales.has(t)?`year-first`:`month-first`}formatMonthYear(t){let{locale:n,timeZone:r,numerals:i}=this.options,a=n?.code;if(a&&e.yearFirstLocales.has(a))try{return new Intl.DateTimeFormat(a,{month:`long`,year:`numeric`,timeZone:r,numberingSystem:i}).format(t)}catch{}let o=this.getMonthYearOrder()===`year-first`?`y LLLL`:`LLLL y`;return this.format(t,o)}};bi.yearFirstLocales=new Set([`eu`,`hu`,`ja`,`ja-Hira`,`ja-JP`,`ko`,`ko-KR`,`lt`,`lt-LT`,`lv`,`lv-LV`,`mn`,`mn-MN`,`zh`,`zh-CN`,`zh-HK`,`zh-TW`]);var xi=new bi,Si=class{constructor(e,t,n=xi){this.date=e,this.displayMonth=t,this.outside=!!(t&&!n.isSameMonth(e,t)),this.dateLib=n,this.isoDate=n.format(e,`yyyy-MM-dd`),this.displayMonthId=n.format(t,`yyyy-MM`),this.dateMonthId=n.format(e,`yyyy-MM`)}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}},Ci=class{constructor(e,t){this.date=e,this.weeks=t}},wi=class{constructor(e,t){this.days=t,this.weekNumber=e}},I=t(a(),1);function Ti(e){return I.createElement(`button`,{...e})}function Ei(e){return I.createElement(`span`,{...e})}function Di(e){let{size:t=24,orientation:n=`left`,className:r}=e;return I.createElement(`svg`,{className:r,width:t,height:t,viewBox:`0 0 24 24`},n===`up`&&I.createElement(`polygon`,{points:`6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28`}),n===`down`&&I.createElement(`polygon`,{points:`6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72`}),n===`left`&&I.createElement(`polygon`,{points:`16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20`}),n===`right`&&I.createElement(`polygon`,{points:`8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20`}))}function Oi(e){let{day:t,modifiers:n,...r}=e;return I.createElement(`td`,{...r})}function ki(e){let{day:t,modifiers:n,...r}=e,i=I.useRef(null);return I.useEffect(()=>{n.focused&&i.current?.focus()},[n.focused]),I.createElement(`button`,{ref:i,...r})}var L;(function(e){e.Root=`root`,e.Chevron=`chevron`,e.Day=`day`,e.DayButton=`day_button`,e.CaptionLabel=`caption_label`,e.Dropdowns=`dropdowns`,e.Dropdown=`dropdown`,e.DropdownRoot=`dropdown_root`,e.Footer=`footer`,e.MonthGrid=`month_grid`,e.MonthCaption=`month_caption`,e.MonthsDropdown=`months_dropdown`,e.Month=`month`,e.Months=`months`,e.Nav=`nav`,e.NextMonthButton=`button_next`,e.PreviousMonthButton=`button_previous`,e.Week=`week`,e.Weeks=`weeks`,e.Weekday=`weekday`,e.Weekdays=`weekdays`,e.WeekNumber=`week_number`,e.WeekNumberHeader=`week_number_header`,e.YearsDropdown=`years_dropdown`})(L||={});var R;(function(e){e.disabled=`disabled`,e.hidden=`hidden`,e.outside=`outside`,e.focused=`focused`,e.today=`today`})(R||={});var Ai;(function(e){e.range_end=`range_end`,e.range_middle=`range_middle`,e.range_start=`range_start`,e.selected=`selected`})(Ai||={});var ji;(function(e){e.weeks_before_enter=`weeks_before_enter`,e.weeks_before_exit=`weeks_before_exit`,e.weeks_after_enter=`weeks_after_enter`,e.weeks_after_exit=`weeks_after_exit`,e.caption_after_enter=`caption_after_enter`,e.caption_after_exit=`caption_after_exit`,e.caption_before_enter=`caption_before_enter`,e.caption_before_exit=`caption_before_exit`})(ji||={});function Mi(e){let{options:t,className:n,components:r,classNames:i,...a}=e,o=[i[L.Dropdown],n].join(` `),s=t?.find(({value:e})=>e===a.value);return I.createElement(`span`,{"data-disabled":a.disabled,className:i[L.DropdownRoot]},I.createElement(r.Select,{className:o,...a},t?.map(({value:e,label:t,disabled:n})=>I.createElement(r.Option,{key:e,value:e,disabled:n},t))),I.createElement(`span`,{className:i[L.CaptionLabel],"aria-hidden":!0},s?.label,I.createElement(r.Chevron,{orientation:`down`,size:18,className:i[L.Chevron]})))}function Ni(e){return I.createElement(`div`,{...e})}function Pi(e){return I.createElement(`div`,{...e})}function Fi(e){let{calendarMonth:t,displayIndex:n,...r}=e;return I.createElement(`div`,{...r},e.children)}function Ii(e){let{calendarMonth:t,displayIndex:n,...r}=e;return I.createElement(`div`,{...r})}function Li(e){return I.createElement(`table`,{...e})}function Ri(e){return I.createElement(`div`,{...e})}var zi=(0,I.createContext)(void 0);function Bi(){let e=(0,I.useContext)(zi);if(e===void 0)throw Error(`useDayPicker() must be used within a custom component.`);return e}function Vi(e){let{components:t}=Bi();return I.createElement(t.Dropdown,{...e})}function Hi(e){let{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:i,...a}=e,{components:o,classNames:s,labels:{labelPrevious:c,labelNext:l}}=Bi(),u=(0,I.useCallback)(e=>{i&&n?.(e)},[i,n]),d=(0,I.useCallback)(e=>{r&&t?.(e)},[r,t]);return I.createElement(`nav`,{...a},I.createElement(o.PreviousMonthButton,{type:`button`,className:s[L.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":c(r),onClick:d},I.createElement(o.Chevron,{disabled:r?void 0:!0,className:s[L.Chevron],orientation:`left`})),I.createElement(o.NextMonthButton,{type:`button`,className:s[L.NextMonthButton],tabIndex:i?void 0:-1,"aria-disabled":i?void 0:!0,"aria-label":l(i),onClick:u},I.createElement(o.Chevron,{disabled:i?void 0:!0,orientation:`right`,className:s[L.Chevron]})))}function Ui(e){let{components:t}=Bi();return I.createElement(t.Button,{...e})}function Wi(e){return I.createElement(`option`,{...e})}function Gi(e){let{components:t}=Bi();return I.createElement(t.Button,{...e})}function Ki(e){let{rootRef:t,...n}=e;return I.createElement(`div`,{...n,ref:t})}function qi(e){return I.createElement(`select`,{...e})}function Ji(e){let{week:t,...n}=e;return I.createElement(`tr`,{...n})}function Yi(e){return I.createElement(`th`,{...e})}function Xi(e){return I.createElement(`thead`,{"aria-hidden":!0},I.createElement(`tr`,{...e}))}function Zi(e){let{week:t,...n}=e;return I.createElement(`th`,{...n})}function Qi(e){return I.createElement(`th`,{...e})}function $i(e){return I.createElement(`tbody`,{...e})}function ea(e){let{components:t}=Bi();return I.createElement(t.Dropdown,{...e})}var ta=e({Button:()=>Ti,CaptionLabel:()=>Ei,Chevron:()=>Di,Day:()=>Oi,DayButton:()=>ki,Dropdown:()=>Mi,DropdownNav:()=>Ni,Footer:()=>Pi,Month:()=>Fi,MonthCaption:()=>Ii,MonthGrid:()=>Li,Months:()=>Ri,MonthsDropdown:()=>Vi,Nav:()=>Hi,NextMonthButton:()=>Ui,Option:()=>Wi,PreviousMonthButton:()=>Gi,Root:()=>Ki,Select:()=>qi,Week:()=>Ji,WeekNumber:()=>Zi,WeekNumberHeader:()=>Qi,Weekday:()=>Yi,Weekdays:()=>Xi,Weeks:()=>$i,YearsDropdown:()=>ea});function na(e,t,n=!1,r=xi){let{from:i,to:a}=e,{differenceInCalendarDays:o,isSameDay:s}=r;return i&&a?(o(a,i)<0&&([i,a]=[a,i]),o(t,i)>=+!!n&&o(a,t)>=+!!n):!n&&a?s(a,t):!n&&i?s(i,t):!1}function ra(e){return!!(e&&typeof e==`object`&&`before`in e&&`after`in e)}function ia(e){return!!(e&&typeof e==`object`&&`from`in e)}function aa(e){return!!(e&&typeof e==`object`&&`after`in e)}function oa(e){return!!(e&&typeof e==`object`&&`before`in e)}function sa(e){return!!(e&&typeof e==`object`&&`dayOfWeek`in e)}function ca(e,t){return Array.isArray(e)&&e.every(t.isDate)}function la(e,t,n=xi){let r=Array.isArray(t)?t:[t],{isSameDay:i,differenceInCalendarDays:a,isAfter:o}=n;return r.some(t=>{if(typeof t==`boolean`)return t;if(n.isDate(t))return i(e,t);if(ca(t,n))return t.some(t=>i(e,t));if(ia(t))return na(t,e,!1,n);if(sa(t))return Array.isArray(t.dayOfWeek)?t.dayOfWeek.includes(e.getDay()):t.dayOfWeek===e.getDay();if(ra(t)){let n=a(t.before,e),r=a(t.after,e),i=n>0,s=r<0;return o(t.before,t.after)?s&&i:i||s}return aa(t)?a(e,t.after)>0:oa(t)?a(t.before,e)>0:typeof t==`function`?t(e):!1})}function ua(e,t,n,r,i){let{disabled:a,hidden:o,modifiers:s,showOutsideDays:c,broadcastCalendar:l,today:u=i.today()}=t,{isSameDay:d,isSameMonth:f,startOfMonth:p,isBefore:m,endOfMonth:h,isAfter:g}=i,_=n&&p(n),v=r&&h(r),y={[R.focused]:[],[R.outside]:[],[R.disabled]:[],[R.hidden]:[],[R.today]:[]},b={};for(let t of e){let{date:e,displayMonth:n}=t,r=!!(n&&!f(e,n)),p=!!(_&&m(e,_)),h=!!(v&&g(e,v)),x=!!(a&&la(e,a,i)),S=!!(o&&la(e,o,i))||p||h||!l&&!c&&r||l&&c===!1&&r,C=d(e,u);r&&y.outside.push(t),x&&y.disabled.push(t),S&&y.hidden.push(t),C&&y.today.push(t),s&&Object.keys(s).forEach(n=>{let r=s?.[n];r&&la(e,r,i)&&(b[n]?b[n].push(t):b[n]=[t])})}return e=>{let t={[R.focused]:!1,[R.disabled]:!1,[R.hidden]:!1,[R.outside]:!1,[R.today]:!1},n={};for(let n in y)t[n]=y[n].some(t=>t===e);for(let t in b)n[t]=b[t].some(t=>t===e);return{...t,...n}}}function da(e,t,n={}){return Object.entries(e).filter(([,e])=>e===!0).reduce((e,[r])=>(n[r]?e.push(n[r]):t[R[r]]?e.push(t[R[r]]):t[Ai[r]]&&e.push(t[Ai[r]]),e),[t[L.Day]])}function fa(e){return{...ta,...e}}function pa(e){let t={"data-mode":e.mode??void 0,"data-required":`required`in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([e,n])=>{e.startsWith(`data-`)&&(t[e]=n)}),t}function ma(){let e={};for(let t in L)e[L[t]]=`rdp-${L[t]}`;for(let t in R)e[R[t]]=`rdp-${R[t]}`;for(let t in Ai)e[Ai[t]]=`rdp-${Ai[t]}`;for(let t in ji)e[ji[t]]=`rdp-${ji[t]}`;return e}function ha(e,t,n){return(n??new bi(t)).formatMonthYear(e)}var ga=ha;function _a(e,t,n){return(n??new bi(t)).format(e,`d`)}function va(e,t=xi){return t.format(e,`LLLL`)}function ya(e,t,n){return(n??new bi(t)).format(e,`cccccc`)}function ba(e,t=xi){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function xa(){return``}function Sa(e,t=xi){return t.format(e,`yyyy`)}var Ca=Sa,wa=e({formatCaption:()=>ha,formatDay:()=>_a,formatMonthCaption:()=>ga,formatMonthDropdown:()=>va,formatWeekNumber:()=>ba,formatWeekNumberHeader:()=>xa,formatWeekdayName:()=>ya,formatYearCaption:()=>Ca,formatYearDropdown:()=>Sa});function Ta(e){return e?.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e?.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...wa,...e}}function Ea(e,t,n,r){let i=(r??new bi(n)).format(e,`PPPP`);return t.today&&(i=`Today, ${i}`),t.selected&&(i=`${i}, selected`),i}var Da=Ea;function Oa(e,t,n){return(n??new bi(t)).formatMonthYear(e)}var ka=Oa;function Aa(e,t,n,r){let i=(r??new bi(n)).format(e,`PPPP`);return t?.today&&(i=`Today, ${i}`),i}function ja(e){return`Choose the Month`}function Ma(){return``}var Na=`Go to the Next Month`;function Pa(e,t){return Na}function Fa(e){return`Go to the Previous Month`}function Ia(e,t,n){return(n??new bi(t)).format(e,`cccc`)}function La(e,t){return`Week ${e}`}function Ra(e){return`Week Number`}function za(e){return`Choose the Year`}var Ba=e({labelCaption:()=>ka,labelDay:()=>Da,labelDayButton:()=>Ea,labelGrid:()=>Oa,labelGridcell:()=>Aa,labelMonthDropdown:()=>ja,labelNav:()=>Ma,labelNext:()=>Pa,labelPrevious:()=>Fa,labelWeekNumber:()=>La,labelWeekNumberHeader:()=>Ra,labelWeekday:()=>Ia,labelYearDropdown:()=>za}),Va=(e,t,n)=>t||(n?typeof n==`function`?n:(...e)=>n:e);function Ha(e,t){let n=t.locale?.labels??{};return{...Ba,...e??{},labelDayButton:Va(Ea,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:Va(ja,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:Va(Pa,e?.labelNext,n.labelNext),labelPrevious:Va(Fa,e?.labelPrevious,n.labelPrevious),labelWeekNumber:Va(La,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:Va(za,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:Va(Oa,e?.labelGrid,n.labelGrid),labelGridcell:Va(Aa,e?.labelGridcell,n.labelGridcell),labelNav:Va(Ma,e?.labelNav,n.labelNav),labelWeekNumberHeader:Va(Ra,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:Va(Ia,e?.labelWeekday,n.labelWeekday)}}function Ua(e,t,n,r,i){let{startOfMonth:a,startOfYear:o,endOfYear:s,eachMonthOfInterval:c,getMonth:l}=i;return c({start:o(e),end:s(e)}).map(e=>{let o=r.formatMonthDropdown(e,i);return{value:l(e),label:o,disabled:t&&ea(n)||!1}})}function Wa(e,t={},n={}){let r={...t?.[L.Day]};return Object.entries(e).filter(([,e])=>e===!0).forEach(([e])=>{r={...r,...n?.[e]}}),r}function Ga(e,t,n,r){let i=r??e.today(),a=n?e.startOfBroadcastWeek(i,e):t?e.startOfISOWeek(i):e.startOfWeek(i),o=[];for(let t=0;t<7;t++){let n=e.addDays(a,t);o.push(n)}return o}function Ka(e,t,n,r,i=!1){if(!e||!t)return;let{startOfYear:a,endOfYear:o,eachYearOfInterval:s,getYear:c}=r,l=s({start:a(e),end:o(t)});return i&&l.reverse(),l.map(e=>{let t=n.formatYearDropdown(e,r);return{value:c(e),label:t,disabled:!1}})}function qa(e,t={}){let{weekStartsOn:n,locale:r}=t,i=n??r?.options?.weekStartsOn??0,a=t=>{let n=typeof t==`number`||typeof t==`string`?new Date(t):t;return new pi(n.getFullYear(),n.getMonth(),n.getDate(),12,0,0,e)},o=e=>{let t=a(e);return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)};return{today:()=>a(pi.tz(e)),newDate:(t,n,r)=>new pi(t,n,r,12,0,0,e),startOfDay:e=>a(e),startOfWeek:(e,t)=>{let n=a(e),r=t?.weekStartsOn??i,o=(n.getDay()-r+7)%7;return n.setDate(n.getDate()-o),n},startOfISOWeek:e=>{let t=a(e),n=(t.getDay()-1+7)%7;return t.setDate(t.getDate()-n),t},startOfMonth:e=>{let t=a(e);return t.setDate(1),t},startOfYear:e=>{let t=a(e);return t.setMonth(0,1),t},endOfWeek:(e,t)=>{let n=a(e),r=(((t?.weekStartsOn??i)+6)%7-n.getDay()+7)%7;return n.setDate(n.getDate()+r),n},endOfISOWeek:e=>{let t=a(e),n=(7-t.getDay())%7;return t.setDate(t.getDate()+n),t},endOfMonth:e=>{let t=a(e);return t.setMonth(t.getMonth()+1,0),t},endOfYear:e=>{let t=a(e);return t.setMonth(11,31),t},eachMonthOfInterval:t=>{let n=a(t.start),r=a(t.end),i=[],o=new pi(n.getFullYear(),n.getMonth(),1,12,0,0,e),s=r.getFullYear()*12+r.getMonth();for(;o.getFullYear()*12+o.getMonth()<=s;)i.push(new pi(o,e)),o.setMonth(o.getMonth()+1,1);return i},addDays:(e,t)=>{let n=a(e);return n.setDate(n.getDate()+t),n},addWeeks:(e,t)=>{let n=a(e);return n.setDate(n.getDate()+t*7),n},addMonths:(e,t)=>{let n=a(e);return n.setMonth(n.getMonth()+t),n},addYears:(e,t)=>{let n=a(e);return n.setFullYear(n.getFullYear()+t),n},eachYearOfInterval:t=>{let n=a(t.start),r=a(t.end),i=[],o=new pi(n.getFullYear(),0,1,12,0,0,e);for(;o.getFullYear()<=r.getFullYear();)i.push(new pi(o,e)),o.setFullYear(o.getFullYear()+1,0,1);return i},getWeek:(e,t)=>gr(o(e),{weekStartsOn:t?.weekStartsOn??i,firstWeekContainsDate:t?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1}),getISOWeek:e=>pr(o(e)),differenceInCalendarDays:(e,t)=>Pn(o(e),o(t)),differenceInCalendarMonths:(e,t)=>Un(o(e),o(t))}}var Ja=e=>e instanceof HTMLElement?e:null,Ya=e=>[...e.querySelectorAll(`[data-animated-month]`)??[]],Xa=e=>Ja(e.querySelector(`[data-animated-month]`)),Za=e=>Ja(e.querySelector(`[data-animated-caption]`)),Qa=e=>Ja(e.querySelector(`[data-animated-weeks]`)),$a=e=>Ja(e.querySelector(`[data-animated-nav]`)),eo=e=>Ja(e.querySelector(`[data-animated-weekdays]`));function to(e,t,{classNames:n,months:r,focused:i,dateLib:a}){let o=(0,I.useRef)(null),s=(0,I.useRef)(r),c=(0,I.useRef)(!1);(0,I.useLayoutEffect)(()=>{let l=s.current;if(s.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||l.length===0||r.length!==l.length)return;let u=a.isSameMonth(r[0].date,l[0].date),d=a.isAfter(r[0].date,l[0].date),f=d?n[ji.caption_after_enter]:n[ji.caption_before_enter],p=d?n[ji.weeks_after_enter]:n[ji.weeks_before_enter],m=o.current,h=e.current.cloneNode(!0);if(h instanceof HTMLElement?(Ya(h).forEach(e=>{if(!(e instanceof HTMLElement))return;let t=Xa(e);t&&e.contains(t)&&e.removeChild(t);let n=Za(e);n&&n.classList.remove(f);let r=Qa(e);r&&r.classList.remove(p)}),o.current=h):o.current=null,c.current||u||i)return;let g=m instanceof HTMLElement?Ya(m):[],_=Ya(e.current);if(_?.every(e=>e instanceof HTMLElement)&&g&&g.every(e=>e instanceof HTMLElement)){c.current=!0;let t=[];e.current.style.isolation=`isolate`;let r=$a(e.current);r&&(r.style.zIndex=`1`),_.forEach((i,a)=>{let o=g[a];if(!o)return;i.style.position=`relative`,i.style.overflow=`hidden`;let s=Za(i);s&&s.classList.add(f);let l=Qa(i);l&&l.classList.add(p);let u=()=>{c.current=!1,e.current&&(e.current.style.isolation=``),r&&(r.style.zIndex=``),s&&s.classList.remove(f),l&&l.classList.remove(p),i.style.position=``,i.style.overflow=``,i.contains(o)&&i.removeChild(o)};t.push(u),o.style.pointerEvents=`none`,o.style.position=`absolute`,o.style.overflow=`hidden`,o.setAttribute(`aria-hidden`,`true`);let m=eo(o);m&&(m.style.opacity=`0`);let h=Za(o);h&&(h.classList.add(d?n[ji.caption_before_exit]:n[ji.caption_after_exit]),h.addEventListener(`animationend`,u));let _=Qa(o);_&&_.classList.add(d?n[ji.weeks_before_exit]:n[ji.weeks_after_exit]),i.insertBefore(o,i.firstChild)})}})}function no(e,t,n,r){let i=e[0],a=e[e.length-1],{ISOWeek:o,fixedWeeks:s,broadcastCalendar:c}=n??{},{addDays:l,differenceInCalendarDays:u,differenceInCalendarMonths:d,endOfBroadcastWeek:f,endOfISOWeek:p,endOfMonth:m,endOfWeek:h,isAfter:g,startOfBroadcastWeek:_,startOfISOWeek:v,startOfWeek:y}=r,b=c?_(i,r):o?v(i):y(i),x=c?f(a):o?p(m(a)):h(m(a)),S=t&&(c?f(t):o?p(t):h(t)),C=u(S&&g(x,S)?S:x,b),w=d(a,i)+1,T=[];for(let e=0;e<=C;e++){let t=l(b,e);T.push(t)}let E=(c?35:42)*w;if(s&&T.length{let r=n.weeks.reduce((e,t)=>e.concat(t.days.slice()),t.slice());return e.concat(r.slice())},t.slice())}function io(e,t,n,r){let{numberOfMonths:i=1}=n,a=[];for(let n=0;nt)break;a.push(i)}return a}function ao(e,t,n,r){let{month:i,defaultMonth:a,today:o=r.today(),numberOfMonths:s=1}=e,c=i||a||o,{differenceInCalendarMonths:l,addMonths:u,startOfMonth:d}=r;return n&&l(n,c){let h=n.broadcastCalendar?d(m,r):n.ISOWeek?f(m):p(m),g=n.broadcastCalendar?a(m):n.ISOWeek?o(s(m)):c(s(m)),_=t.filter(e=>e>=h&&e<=g),v=n.broadcastCalendar?35:42;if(n.fixedWeeks&&_.length{let t=v-_.length;return e>g&&e<=i(g,t)});_.push(...e)}let y=new Ci(m,_.reduce((e,t)=>{let i=n.ISOWeek?l(t):u(t),a=e.find(e=>e.weekNumber===i),o=new Si(t,m,r);return a?a.days.push(o):e.push(new wi(i,[o])),e},[]));return e.push(y),e},[]);return n.reverseMonths?m.reverse():m}function so(e,t){let{startMonth:n,endMonth:r}=e,{startOfYear:i,startOfDay:a,startOfMonth:o,endOfMonth:s,addYears:c,endOfYear:l,newDate:u,today:d}=t,{fromYear:f,toYear:p,fromMonth:m,toMonth:h}=e;!n&&m&&(n=m),!n&&f&&(n=t.newDate(f,0,1)),!r&&h&&(r=h),!r&&p&&(r=u(p,11,31));let g=e.captionLayout===`dropdown`||e.captionLayout===`dropdown-years`;return n?n=o(n):f?n=u(f,0,1):!n&&g&&(n=i(c(e.today??d(),-100))),r?r=s(r):p?r=u(p,11,31):!r&&g&&(r=l(e.today??d())),[n&&a(n),r&&a(r)]}function co(e,t,n,r){if(n.disableNavigation)return;let{pagedNavigation:i,numberOfMonths:a=1}=n,{startOfMonth:o,addMonths:s,differenceInCalendarMonths:c}=r,l=i?a:1,u=o(e);if(!t||!(c(t,e)e.concat(t.weeks.slice()),[].slice())}function fo(e,t){let[n,r]=(0,I.useState)(e);return[t===void 0?n:t,r]}function po(e,t){let[n,r]=so(e,t),{startOfMonth:i,endOfMonth:a}=t,o=ao(e,n,r,t),[s,c]=fo(o,e.month?o:void 0);(0,I.useEffect)(()=>{c(ao(e,n,r,t))},[e.timeZone]);let{months:l,weeks:u,days:d,previousMonth:f,nextMonth:p}=(0,I.useMemo)(()=>{let i=io(s,r,{numberOfMonths:e.numberOfMonths},t),o=oo(i,no(i,e.endMonth?a(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t);return{months:o,weeks:uo(o),days:ro(o),previousMonth:lo(s,n,e,t),nextMonth:co(s,r,e,t)}},[t,s.getTime(),r?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:m,onMonthChange:h}=e,g=e=>u.some(t=>t.days.some(t=>t.isEqualTo(e))),_=e=>{if(m)return;let t=i(e);n&&ti(r)&&(t=i(r)),c(t),h?.(t)};return{months:l,weeks:u,days:d,navStart:n,navEnd:r,previousMonth:f,nextMonth:p,goToMonth:_,goToDay:e=>{g(e)||_(e.date)}}}var mo;(function(e){e[e.Today=0]=`Today`,e[e.Selected=1]=`Selected`,e[e.LastFocused=2]=`LastFocused`,e[e.FocusedModifier=3]=`FocusedModifier`})(mo||={});function ho(e){return!e[R.disabled]&&!e[R.hidden]&&!e[R.outside]}function go(e,t,n,r){let i,a=-1;for(let o of e){let e=t(o);ho(e)&&(e[R.focused]&&aho(t(e))),i}function _o(e,t,n,r,i,a,o){let{ISOWeek:s,broadcastCalendar:c}=a,{addDays:l,addMonths:u,addWeeks:d,addYears:f,endOfBroadcastWeek:p,endOfISOWeek:m,endOfWeek:h,max:g,min:_,startOfBroadcastWeek:v,startOfISOWeek:y,startOfWeek:b}=o,x={day:l,week:d,month:u,year:f,startOfWeek:e=>c?v(e,o):s?y(e):b(e),endOfWeek:e=>c?p(e):s?m(e):h(e)}[e](n,t===`after`?1:-1);return t===`before`&&r?x=g([r,x]):t===`after`&&i&&(x=_([i,x])),x}function vo(e,t,n,r,i,a,o,s=0){if(s>365)return;let c=_o(e,t,n.date,r,i,a,o),l=!!(a.disabled&&la(c,a.disabled,o)),u=!!(a.hidden&&la(c,a.hidden,o)),d=new Si(c,c,o);return!l&&!u?d:vo(e,t,d,r,i,a,o,s+1)}function yo(e,t,n,r,i){let{autoFocus:a}=e,[o,s]=(0,I.useState)(),c=go(t.days,n,r||(()=>!1),o),[l,u]=(0,I.useState)(a?c:void 0);return{isFocusTarget:e=>!!c?.isEqualTo(e),setFocused:u,focused:l,blur:()=>{s(l),u(void 0)},moveFocus:(n,r)=>{if(!l)return;let a=vo(n,r,l,t.navStart,t.navEnd,e,i);a&&(e.disableNavigation&&!t.days.some(e=>e.isEqualTo(a))||(t.goToDay(a),u(a)))}}}function bo(e,t){let{selected:n,required:r,onSelect:i}=e,[a,o]=fo(n,i?n:void 0),s=i?n:a,{isSameDay:c}=t,l=e=>s?.some(t=>c(t,e))??!1,{min:u,max:d}=e;return{selected:s,select:(e,t,n)=>{let a=[...s??[]];if(l(e)){if(s?.length===u||r&&s?.length===1)return;a=s?.filter(t=>!c(t,e))}else a=s?.length===d?[e]:[...a,e];return i||o(a),i?.(a,e,t,n),a},isSelected:l}}function xo(e,t,n=0,r=0,i=!1,a=xi){let{from:o,to:s}=t||{},{isSameDay:c,isAfter:l,isBefore:u}=a,d;if(!o&&!s)d={from:e,to:n>0?void 0:e};else if(o&&!s)d=c(o,e)?n===0?{from:o,to:e}:i?{from:o,to:void 0}:void 0:u(e,o)?{from:e,to:o}:{from:o,to:e};else if(o&&s)if(c(o,e)&&c(s,e))d=i?{from:o,to:s}:void 0;else if(c(o,e))d={from:o,to:n>0?void 0:e};else if(c(s,e))d={from:e,to:n>0?void 0:e};else if(u(e,o))d={from:e,to:s};else if(l(e,o))d={from:o,to:e};else if(l(e,s))d={from:o,to:e};else throw Error(`Invalid range`);if(d?.from&&d?.to){let t=a.differenceInCalendarDays(d.to,d.from);(r>0&&t>r||n>1&&ttypeof e!=`function`).some(t=>typeof t==`boolean`?t:n.isDate(t)?na(e,t,!1,n):ca(t,n)?t.some(t=>na(e,t,!1,n)):ia(t)?t.from&&t.to?Co(e,{from:t.from,to:t.to},n):!1:sa(t)?So(e,t.dayOfWeek,n):ra(t)?n.isAfter(t.before,t.after)?Co(e,{from:n.addDays(t.after,1),to:n.addDays(t.before,-1)},n):la(e.from,t,n)||la(e.to,t,n):aa(t)||oa(t)?la(e.from,t,n)||la(e.to,t,n):!1))return!0;let i=r.filter(e=>typeof e==`function`);if(i.length){let t=e.from,r=n.differenceInCalendarDays(e.to,e.from);for(let e=0;e<=r;e++){if(i.some(e=>e(t)))return!0;t=n.addDays(t,1)}}return!1}function To(e,t){let{disabled:n,excludeDisabled:r,resetOnSelect:i,selected:a,required:o,onSelect:s}=e,[c,l]=fo(a,s?a:void 0),u=s?a:c;return{selected:u,select:(a,c,d)=>{let{min:f,max:p}=e,m;if(a){let e=u?.from,n=u?.to,r=!!e&&!!n,s=!!e&&!!n&&t.isSameDay(e,n)&&t.isSameDay(a,e);m=i&&(r||!u?.from)?!o&&s?void 0:{from:a,to:void 0}:xo(a,u,f,p,o,t)}return r&&n&&m?.from&&m.to&&wo({from:m.from,to:m.to},n,t)&&(m.from=a,m.to=void 0),s||l(m),s?.(m,a,c,d),m},isSelected:e=>u&&na(u,e,!1,t)}}function Eo(e,t){let{selected:n,required:r,onSelect:i}=e,[a,o]=fo(n,i?n:void 0),s=i?n:a,{isSameDay:c}=t;return{selected:s,select:(e,t,n)=>{let a=e;return!r&&s&&s&&c(e,s)&&(a=void 0),i||o(a),i?.(a,e,t,n),a},isSelected:e=>s?c(s,e):!1}}function Do(e,t){let n=Eo(e,t),r=bo(e,t),i=To(e,t);switch(e.mode){case`single`:return n;case`multiple`:return r;case`range`:return i;default:return}}function Oo(e,t){return e instanceof pi&&e.timeZone===t?e:new pi(e,t)}function ko(e,t,n){if(!n)return Oo(e,t);let r=Oo(e,t),i=new pi(r.getFullYear(),r.getMonth(),r.getDate(),12,0,0,t);return new Date(i.getTime())}function Ao(e,t,n){return typeof e==`boolean`||typeof e==`function`?e:e instanceof Date?ko(e,t,n):Array.isArray(e)?e.map(e=>e instanceof Date?ko(e,t,n):e):ia(e)?{...e,from:e.from?Oo(e.from,t):e.from,to:e.to?Oo(e.to,t):e.to}:ra(e)?{before:ko(e.before,t,n),after:ko(e.after,t,n)}:aa(e)?{after:ko(e.after,t,n)}:oa(e)?{before:ko(e.before,t,n)}:e}function jo(e,t,n){return e&&(Array.isArray(e)?e.map(e=>Ao(e,t,n)):Ao(e,t,n))}function Mo(e){let t=e,n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&=Oo(t.today,n),t.month&&=Oo(t.month,n),t.defaultMonth&&=Oo(t.defaultMonth,n),t.startMonth&&=Oo(t.startMonth,n),t.endMonth&&=Oo(t.endMonth,n),t.mode===`single`&&t.selected?t.selected=Oo(t.selected,n):t.mode===`multiple`&&t.selected?t.selected=t.selected?.map(e=>Oo(e,n)):t.mode===`range`&&t.selected&&(t.selected={from:t.selected.from?Oo(t.selected.from,n):t.selected.from,to:t.selected.to?Oo(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=jo(t.disabled,n)),t.hidden!==void 0&&(t.hidden=jo(t.hidden,n)),t.modifiers)){let e={};Object.keys(t.modifiers).forEach(r=>{e[r]=jo(t.modifiers?.[r],n)}),t.modifiers=e}let{components:r,formatters:i,labels:a,dateLib:o,locale:s,classNames:c}=(0,I.useMemo)(()=>{let e={...yi,...t.locale},n=t.broadcastCalendar?1:t.weekStartsOn,r=t.noonSafe&&t.timeZone?qa(t.timeZone,{weekStartsOn:n,locale:e}):void 0,i=t.dateLib&&r?{...r,...t.dateLib}:t.dateLib??r,a=new bi({locale:e,weekStartsOn:n,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},i);return{dateLib:a,components:fa(t.components),formatters:Ta(t.formatters),labels:Ha(t.labels,a.options),locale:e,classNames:{...ma(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:o.today()});let{captionLayout:l,mode:u,navLayout:d,numberOfMonths:f=1,onDayBlur:p,onDayClick:m,onDayFocus:h,onDayKeyDown:g,onDayMouseEnter:_,onDayMouseLeave:v,onNextClick:y,onPrevClick:b,showWeekNumber:x,styles:S}=t,{formatCaption:C,formatDay:w,formatMonthDropdown:T,formatWeekNumber:E,formatWeekNumberHeader:D,formatWeekdayName:O,formatYearDropdown:k}=i,ee=po(t,o),{days:te,months:A,navStart:j,navEnd:ne,previousMonth:re,nextMonth:ie,goToMonth:ae}=ee,oe=ua(te,t,j,ne,o),{isSelected:se,select:ce,selected:le}=Do(t,o)??{},{blur:ue,focused:de,isFocusTarget:fe,moveFocus:pe,setFocused:me}=yo(t,ee,oe,se??(()=>!1),o),{labelDayButton:he,labelGridcell:ge,labelGrid:_e,labelMonthDropdown:ve,labelNav:ye,labelPrevious:be,labelNext:xe,labelWeekday:Se,labelWeekNumber:Ce,labelWeekNumberHeader:we,labelYearDropdown:Te}=a,Ee=(0,I.useMemo)(()=>Ga(o,t.ISOWeek,t.broadcastCalendar,t.today),[o,t.ISOWeek,t.broadcastCalendar,t.today]),De=u!==void 0||m!==void 0,Oe=(0,I.useCallback)(()=>{re&&(ae(re),b?.(re))},[re,ae,b]),ke=(0,I.useCallback)(()=>{ie&&(ae(ie),y?.(ie))},[ae,ie,y]),Ae=(0,I.useCallback)((e,t)=>n=>{n.preventDefault(),n.stopPropagation(),me(e),!t.disabled&&(ce?.(e.date,t,n),m?.(e.date,t,n))},[ce,m,me]),je=(0,I.useCallback)((e,t)=>n=>{me(e),h?.(e.date,t,n)},[h,me]),Me=(0,I.useCallback)((e,t)=>n=>{ue(),p?.(e.date,t,n)},[ue,p]),Ne=(0,I.useCallback)((e,n)=>r=>{let i={ArrowLeft:[r.shiftKey?`month`:`day`,t.dir===`rtl`?`after`:`before`],ArrowRight:[r.shiftKey?`month`:`day`,t.dir===`rtl`?`before`:`after`],ArrowDown:[r.shiftKey?`year`:`week`,`after`],ArrowUp:[r.shiftKey?`year`:`week`,`before`],PageUp:[r.shiftKey?`year`:`month`,`before`],PageDown:[r.shiftKey?`year`:`month`,`after`],Home:[`startOfWeek`,`before`],End:[`endOfWeek`,`after`]};if(i[r.key]){r.preventDefault(),r.stopPropagation();let[e,t]=i[r.key];pe(e,t)}g?.(e.date,n,r)},[pe,g,t.dir]),Pe=(0,I.useCallback)((e,t)=>n=>{_?.(e.date,t,n)},[_]),Fe=(0,I.useCallback)((e,t)=>n=>{v?.(e.date,t,n)},[v]),Ie=(0,I.useCallback)(e=>t=>{let n=Number(t.target.value);ae(o.setMonth(o.startOfMonth(e),n))},[o,ae]),Le=(0,I.useCallback)(e=>t=>{let n=Number(t.target.value);ae(o.setYear(o.startOfMonth(e),n))},[o,ae]),{className:Re,style:ze}=(0,I.useMemo)(()=>({className:[c[L.Root],t.className].filter(Boolean).join(` `),style:{...S?.[L.Root],...t.style}}),[c,t.className,t.style,S]),Be=pa(t),Ve=(0,I.useRef)(null);to(Ve,!!t.animate,{classNames:c,months:A,focused:de,dateLib:o});let He={dayPickerProps:t,selected:le,select:ce,isSelected:se,months:A,nextMonth:ie,previousMonth:re,goToMonth:ae,getModifiers:oe,components:r,classNames:c,styles:S,labels:a,formatters:i};return I.createElement(zi.Provider,{value:He},I.createElement(r.Root,{rootRef:t.animate?Ve:void 0,className:Re,style:ze,dir:t.dir,id:t.id,lang:t.lang??s.code,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t[`aria-label`],"aria-labelledby":t[`aria-labelledby`],...Be},I.createElement(r.Months,{className:c[L.Months],style:S?.[L.Months]},!t.hideNavigation&&!d&&I.createElement(r.Nav,{"data-animated-nav":t.animate?`true`:void 0,className:c[L.Nav],style:S?.[L.Nav],"aria-label":ye(),onPreviousClick:Oe,onNextClick:ke,previousMonth:re,nextMonth:ie}),A.map((e,n)=>I.createElement(r.Month,{"data-animated-month":t.animate?`true`:void 0,className:c[L.Month],style:S?.[L.Month],key:n,displayIndex:n,calendarMonth:e},d===`around`&&!t.hideNavigation&&n===0&&I.createElement(r.PreviousMonthButton,{type:`button`,className:c[L.PreviousMonthButton],tabIndex:re?void 0:-1,"aria-disabled":re?void 0:!0,"aria-label":be(re),onClick:Oe,"data-animated-button":t.animate?`true`:void 0},I.createElement(r.Chevron,{disabled:re?void 0:!0,className:c[L.Chevron],orientation:t.dir===`rtl`?`right`:`left`})),I.createElement(r.MonthCaption,{"data-animated-caption":t.animate?`true`:void 0,className:c[L.MonthCaption],style:S?.[L.MonthCaption],calendarMonth:e,displayIndex:n},l?.startsWith(`dropdown`)?I.createElement(r.DropdownNav,{className:c[L.Dropdowns],style:S?.[L.Dropdowns]},(()=>{let n=l===`dropdown`||l===`dropdown-months`?I.createElement(r.MonthsDropdown,{key:`month`,className:c[L.MonthsDropdown],"aria-label":ve(),classNames:c,components:r,disabled:!!t.disableNavigation,onChange:Ie(e.date),options:Ua(e.date,j,ne,i,o),style:S?.[L.Dropdown],value:o.getMonth(e.date)}):I.createElement(`span`,{key:`month`},T(e.date,o)),a=l===`dropdown`||l===`dropdown-years`?I.createElement(r.YearsDropdown,{key:`year`,className:c[L.YearsDropdown],"aria-label":Te(o.options),classNames:c,components:r,disabled:!!t.disableNavigation,onChange:Le(e.date),options:Ka(j,ne,i,o,!!t.reverseYears),style:S?.[L.Dropdown],value:o.getYear(e.date)}):I.createElement(`span`,{key:`year`},k(e.date,o));return o.getMonthYearOrder()===`year-first`?[a,n]:[n,a]})(),I.createElement(`span`,{role:`status`,"aria-live":`polite`,style:{border:0,clip:`rect(0 0 0 0)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`,wordWrap:`normal`}},C(e.date,o.options,o))):I.createElement(r.CaptionLabel,{className:c[L.CaptionLabel],role:`status`,"aria-live":`polite`},C(e.date,o.options,o))),d===`around`&&!t.hideNavigation&&n===f-1&&I.createElement(r.NextMonthButton,{type:`button`,className:c[L.NextMonthButton],tabIndex:ie?void 0:-1,"aria-disabled":ie?void 0:!0,"aria-label":xe(ie),onClick:ke,"data-animated-button":t.animate?`true`:void 0},I.createElement(r.Chevron,{disabled:ie?void 0:!0,className:c[L.Chevron],orientation:t.dir===`rtl`?`left`:`right`})),n===f-1&&d===`after`&&!t.hideNavigation&&I.createElement(r.Nav,{"data-animated-nav":t.animate?`true`:void 0,className:c[L.Nav],style:S?.[L.Nav],"aria-label":ye(),onPreviousClick:Oe,onNextClick:ke,previousMonth:re,nextMonth:ie}),I.createElement(r.MonthGrid,{role:`grid`,"aria-multiselectable":u===`multiple`||u===`range`,"aria-label":_e(e.date,o.options,o)||void 0,className:c[L.MonthGrid],style:S?.[L.MonthGrid]},!t.hideWeekdays&&I.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?`true`:void 0,className:c[L.Weekdays],style:S?.[L.Weekdays]},x&&I.createElement(r.WeekNumberHeader,{"aria-label":we(o.options),className:c[L.WeekNumberHeader],style:S?.[L.WeekNumberHeader],scope:`col`},D()),Ee.map(e=>I.createElement(r.Weekday,{"aria-label":Se(e,o.options,o),className:c[L.Weekday],key:String(e),style:S?.[L.Weekday],scope:`col`},O(e,o.options,o)))),I.createElement(r.Weeks,{"data-animated-weeks":t.animate?`true`:void 0,className:c[L.Weeks],style:S?.[L.Weeks]},e.weeks.map(e=>I.createElement(r.Week,{className:c[L.Week],key:e.weekNumber,style:S?.[L.Week],week:e},x&&I.createElement(r.WeekNumber,{week:e,style:S?.[L.WeekNumber],"aria-label":Ce(e.weekNumber,{locale:s}),className:c[L.WeekNumber],scope:`row`,role:`rowheader`},E(e.weekNumber,o)),e.days.map(e=>{let{date:n}=e,i=oe(e);if(i[R.focused]=!i.hidden&&!!de?.isEqualTo(e),i[Ai.selected]=se?.(n)||i.selected,ia(le)){let{from:e,to:t}=le;i[Ai.range_start]=!!(e&&t&&o.isSameDay(n,e)),i[Ai.range_end]=!!(e&&t&&o.isSameDay(n,t)),i[Ai.range_middle]=na(le,n,!0,o)}let a=Wa(i,S,t.modifiersStyles),s=da(i,c,t.modifiersClassNames),l=!De&&!i.hidden?ge(n,i,o.options,o):void 0;return I.createElement(r.Day,{key:`${e.isoDate}_${e.displayMonthId}`,day:e,modifiers:i,className:s.join(` `),style:a,role:`gridcell`,"aria-selected":i.selected||void 0,"aria-label":l,"data-day":e.isoDate,"data-month":e.outside?e.dateMonthId:void 0,"data-selected":i.selected||void 0,"data-disabled":i.disabled||void 0,"data-hidden":i.hidden||void 0,"data-outside":e.outside||void 0,"data-focused":i.focused||void 0,"data-today":i.today||void 0},!i.hidden&&De?I.createElement(r.DayButton,{className:c[L.DayButton],style:S?.[L.DayButton],type:`button`,day:e,modifiers:i,disabled:!i.focused&&i.disabled||void 0,"aria-disabled":i.focused&&i.disabled||void 0,tabIndex:fe(e)?0:-1,"aria-label":he(n,i,o.options,o),onClick:Ae(e,i),onBlur:Me(e,i),onFocus:je(e,i),onKeyDown:Ne(e,i),onMouseEnter:Pe(e,i),onMouseLeave:Fe(e,i)},w(n,o.options,o)):!i.hidden&&w(e.date,o.options,o))})))))))),t.footer&&I.createElement(r.Footer,{className:c[L.Footer],style:S?.[L.Footer],role:`status`,"aria-live":`polite`},t.footer)))}var z=qe();function No({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:r=`label`,buttonVariant:i=`ghost`,formatters:a,components:o,...s}){let c=ma();return(0,z.jsx)(Mo,{captionLayout:r,className:M(`group/calendar bg-background p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent`,String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),classNames:{root:M(`w-fit`,c.root),months:M(`relative flex flex-col gap-4 md:flex-row`,c.months),month:M(`flex w-full flex-col gap-4`,c.month),nav:M(`absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1`,c.nav),button_previous:M(ft({variant:i}),`size-(--cell-size) select-none p-0 aria-disabled:opacity-50`,c.button_previous),button_next:M(ft({variant:i}),`size-(--cell-size) select-none p-0 aria-disabled:opacity-50`,c.button_next),month_caption:M(`flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)`,c.month_caption),dropdowns:M(`flex h-(--cell-size) w-full items-center justify-center gap-1.5 font-medium text-sm`,c.dropdowns),dropdown_root:M(`relative rounded-md border border-input shadow-xs has-focus:border-ring has-focus:ring-[3px] has-focus:ring-ring/50`,c.dropdown_root),dropdown:M(`absolute inset-0 bg-popover opacity-0`,c.dropdown),caption_label:M(`select-none font-medium`,r===`label`?`text-sm`:`flex h-8 items-center gap-1 rounded-md pr-1 pl-2 text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground`,c.caption_label),table:`w-full border-collapse`,weekdays:M(`flex`,c.weekdays),weekday:M(`flex-1 select-none rounded-md font-normal text-[0.8rem] text-muted-foreground`,c.weekday),week:M(`mt-2 flex w-full`,c.week),week_number_header:M(`w-(--cell-size) select-none`,c.week_number_header),week_number:M(`select-none text-[0.8rem] text-muted-foreground`,c.week_number),day:M(`group/day relative aspect-square h-full w-full select-none p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-md`,s.showWeekNumber?`[&:nth-child(2)[data-selected=true]_button]:rounded-l-md`:`[&:first-child[data-selected=true]_button]:rounded-l-md`,c.day),range_start:M(`rounded-l-md bg-accent`,c.range_start),range_middle:M(`rounded-none`,c.range_middle),range_end:M(`rounded-r-md bg-accent`,c.range_end),today:M(`rounded-md bg-accent text-accent-foreground data-[selected=true]:rounded-none`,c.today),outside:M(`text-muted-foreground aria-selected:text-muted-foreground`,c.outside),disabled:M(`text-muted-foreground opacity-50`,c.disabled),hidden:M(`invisible`,c.hidden),...t},components:{Root:({className:e,rootRef:t,...n})=>(0,z.jsx)(`div`,{className:M(e),"data-slot":`calendar`,ref:t,...n}),Chevron:({className:e,orientation:t,...n})=>t===`left`?(0,z.jsx)(Dt,{className:M(`size-4`,e),...n}):t===`right`?(0,z.jsx)(At,{className:M(`size-4`,e),...n}):(0,z.jsx)(kt,{className:M(`size-4`,e),...n}),DayButton:Po,WeekNumber:({children:e,...t})=>(0,z.jsx)(`td`,{...t,children:(0,z.jsx)(`div`,{className:`flex size-(--cell-size) items-center justify-center text-center`,children:e})}),...o},formatters:{formatMonthDropdown:e=>e.toLocaleString(`default`,{month:`short`}),...a},showOutsideDays:n,...s})}function Po({className:e,day:t,modifiers:n,...r}){let i=ma(),a=I.useRef(null);return I.useEffect(()=>{n.focused&&a.current?.focus()},[n.focused]),(0,z.jsx)(pt,{className:M(`flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-start=true]:rounded-l-md data-[range-end=true]:bg-primary data-[range-middle=true]:bg-accent data-[range-start=true]:bg-primary data-[selected-single=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:text-accent-foreground data-[range-start=true]:text-primary-foreground data-[selected-single=true]:text-primary-foreground group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground [&>span]:text-xs [&>span]:opacity-70`,i.day,e),"data-day":t.date.toLocaleDateString(),"data-range-end":n.range_end,"data-range-middle":n.range_middle,"data-range-start":n.range_start,"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,ref:a,size:`icon`,variant:`ghost`,...r})}function Fo({selected:e,onSelect:t}){let n=D()===`zh-TW`?ti:dr,r=new Date,i=[{label:Pe(),range:{from:r,to:r}},{label:Je(),range:{from:qr(r,1),to:qr(r,1)}},{label:_e(),range:{from:qr(r,6),to:r}},{label:s(),range:{from:qr(r,29),to:r}},{label:T(),range:{from:qn(r),to:r}},{label:ie(),range:{from:qn(Xr(r,1)),to:Wn(Xr(r,1))}}],a;return e?.from&&e?.to?a=`${Rr(e.from,`PP`,{locale:n})} – ${Rr(e.to,`PP`,{locale:n})}`:e?.from&&(a=Rr(e.from,`PP`,{locale:n})),(0,z.jsxs)(gt,{children:[(0,z.jsx)(ht,{asChild:!0,children:(0,z.jsxs)(pt,{className:`w-auto justify-start text-start font-normal data-[empty=true]:text-muted-foreground`,"data-empty":!a,size:`sm`,variant:`outline`,children:[a??(0,z.jsx)(`span`,{children:He()}),(0,z.jsx)(sn,{className:`ms-2 h-4 w-4 opacity-50`})]})}),(0,z.jsxs)(mt,{align:`end`,className:`flex w-auto gap-0 p-0`,children:[(0,z.jsx)(`div`,{className:`flex flex-col gap-1 border-r p-3`,children:i.map(e=>(0,z.jsx)(pt,{className:`justify-start`,onClick:()=>t(e.range),size:`sm`,variant:`ghost`,children:e.label},e.label))}),(0,z.jsx)(No,{captionLayout:`dropdown`,disabled:e=>e>new Date||e{var{children:n,width:r,height:i,viewBox:a,className:o,style:s,title:c,desc:l}=e,u=qo(e,Go),d=a||{width:r,height:i,x:0,y:0},f=N(`recharts-surface`,o);return I.createElement(`svg`,Ko({},Uo(u),{className:f,width:r,height:i,style:s,viewBox:`${d.x} ${d.y} ${d.width} ${d.height}`,ref:t}),I.createElement(`title`,null,c),I.createElement(`desc`,null,l),n)}),Xo=[`children`,`className`];function Zo(){return Zo=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{children:n,className:r}=e,i=Qo(e,Xo),a=N(`recharts-layer`,r);return I.createElement(`g`,Zo({className:a},Uo(i),{ref:t}),n)}),ts=(0,I.createContext)(null),ns=()=>(0,I.useContext)(ts);function B(e){return function(){return e}}var rs=Math.cos,is=Math.sin,as=Math.sqrt,os=Math.PI;os/2;var ss=2*os,cs=Math.PI,ls=2*cs,us=1e-6,ds=ls-us;function fs(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw Error(`invalid digits: ${e}`);if(t>15)return fs;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;tus)if(!(Math.abs(u*s-c*l)>us)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((cs-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>us&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>us||Math.abs(this._y1-l)>us)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%ls+ls),d>ds?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>us&&this._append`A${n},${n},0,${+(d>=cs)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function hs(){return new ms}hs.prototype=ms.prototype;function gs(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new ms(t)}Array.prototype.slice;function _s(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function vs(e){this._context=e}vs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function ys(e){return new vs(e)}function bs(e){return e[0]}function xs(e){return e[1]}function Ss(e,t){var n=B(!0),r=null,i=ys,a=null,o=gs(s);e=typeof e==`function`?e:e===void 0?bs:B(e),t=typeof t==`function`?t:t===void 0?xs:B(t);function s(s){var c,l=(s=_s(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c=d;--f)s.point(_[f],v[f]);s.lineEnd(),s.areaEnd()}h&&(_[u]=+e(m,u,l),v[u]=+t(m,u,l),s.point(r?+r(m,u,l):_[u],n?+n(m,u,l):v[u]))}if(g)return s=null,g+``||null}function u(){return Ss().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:B(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:B(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:B(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:B(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:B(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:B(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i=typeof e==`function`?e:B(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,a!=null&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(e==null?a=s=null:s=o(a=e),l):a},l}var ws=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function Ts(e){return new ws(e,!0)}function Es(e){return new ws(e,!1)}var Ds={draw(e,t){let n=as(t/os);e.moveTo(n,0),e.arc(0,0,n,0,ss)}},Os={draw(e,t){let n=as(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},ks=as(1/3),As=ks*2,js={draw(e,t){let n=as(t/As),r=n*ks;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Ms={draw(e,t){let n=as(t),r=-n/2;e.rect(r,r,n,n)}},Ns=.8908130915292852,Ps=is(os/10)/is(7*os/10),Fs=is(ss/10)*Ps,Is=-rs(ss/10)*Ps,Ls={draw(e,t){let n=as(t*Ns),r=Fs*n,i=Is*n;e.moveTo(0,-n),e.lineTo(r,i);for(let t=1;t<5;++t){let a=ss*t/5,o=rs(a),s=is(a);e.lineTo(s*n,-o*n),e.lineTo(o*r-s*i,s*r+o*i)}e.closePath()}},Rs=as(3),zs={draw(e,t){let n=-as(t/(Rs*3));e.moveTo(0,n*2),e.lineTo(-Rs*n,-n),e.lineTo(Rs*n,-n),e.closePath()}},Bs=-.5,Vs=as(3)/2,Hs=1/as(12),Us=(Hs/2+1)*3,Ws={draw(e,t){let n=as(t/Us),r=n/2,i=n*Hs,a=r,o=n*Hs+n,s=-a,c=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,c),e.lineTo(Bs*r-Vs*i,Vs*r+Bs*i),e.lineTo(Bs*a-Vs*o,Vs*a+Bs*o),e.lineTo(Bs*s-Vs*c,Vs*s+Bs*c),e.lineTo(Bs*r+Vs*i,Bs*i-Vs*r),e.lineTo(Bs*a+Vs*o,Bs*o-Vs*a),e.lineTo(Bs*s+Vs*c,Bs*c-Vs*s),e.closePath()}};function Gs(e,t){let n=null,r=gs(i);e=typeof e==`function`?e:B(e||Ds),t=typeof t==`function`?t:B(t===void 0?64:+t);function i(){let i;if(n||=i=r(),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+``||null}return i.type=function(t){return arguments.length?(e=typeof t==`function`?t:B(t),i):e},i.size=function(e){return arguments.length?(t=typeof e==`function`?e:B(+e),i):t},i.context=function(e){return arguments.length?(n=e??null,i):n},i}function Ks(){}function qs(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Js(e){this._context=e}Js.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:qs(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:qs(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ys(e){return new Js(e)}function Xs(e){this._context=e}Xs.prototype={areaStart:Ks,areaEnd:Ks,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:qs(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Zs(e){return new Xs(e)}function Qs(e){this._context=e}Qs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:qs(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $s(e){return new Qs(e)}function ec(e){this._context=e}ec.prototype={areaStart:Ks,areaEnd:Ks,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function tc(e){return new ec(e)}function nc(e){return e<0?-1:1}function rc(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(nc(a)+nc(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function ic(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function ac(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function oc(e){this._context=e}oc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ac(this,this._t0,ic(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,ac(this,ic(this,n=rc(this,e,t)),n);break;default:ac(this,this._t0,n=rc(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function sc(e){this._context=new cc(e)}(sc.prototype=Object.create(oc.prototype)).point=function(e,t){oc.prototype.point.call(this,t,e)};function cc(e){this._context=e}cc.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function lc(e){return new oc(e)}function uc(e){return new sc(e)}function dc(e){this._context=e}dc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=fc(e),i=fc(t),a=0,o=1;o=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t}};function hc(e){return new mc(e,.5)}function gc(e){return new mc(e,0)}function _c(e){return new mc(e,1)}function vc(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n=0;)n[t]=t;return n}function bc(e,t){return e[t]}function xc(e){let t=[];return t.key=e,t}function Sc(){var e=B([]),t=yc,n=vc,r=bc;function i(i){var a=Array.from(e.apply(this,arguments),xc),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o0){for(var n,r,i=0,a=e[0].length,o;i0){for(var n=0,r=e[t[0]],i,a=r.length;n0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e===`__proto__`}e.isUnsafeProperty=t})),Dc=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e.includes(`.`)||e.includes(`[`)||e.includes(`]`)}}e.isDeepKey=t})),Oc=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}e.toKey=t})),kc=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){if(e==null)return``;if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(t).join(`,`);let n=String(e);return n===`0`&&Object.is(Number(e),-0)?`-0`:n}e.toString=t})),Ac=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=kc(),n=Oc();function r(e){if(Array.isArray(e))return e.map(n.toKey);if(typeof e==`symbol`)return[e];e=t.toString(e);let r=[],i=e.length;if(i===0)return r;let a=0,o=``,s=``,c=!1;for(e.charCodeAt(0)===46&&(r.push(``),a++);a{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Ec(),n=Dc(),r=Oc(),i=Ac();function a(e,s,c){if(e==null)return c;switch(typeof s){case`string`:{if(t.isUnsafeProperty(s))return c;let r=e[s];return r===void 0?n.isDeepKey(s)?a(e,i.toPath(s),c):c:r}case`number`:case`symbol`:{typeof s==`number`&&(s=r.toKey(s));let t=e[s];return t===void 0?c:t}default:{if(Array.isArray(s))return o(e,s,c);if(s=Object.is(s?.valueOf(),-0)?`-0`:String(s),t.isUnsafeProperty(s))return c;let n=e[s];return n===void 0?c:n}}}function o(e,n,r){if(n.length===0)return r;let i=e;for(let e=0;e{t.exports=jc().get})),Nc=4;function Pc(e){var t=10**(arguments.length>1&&arguments[1]!==void 0?arguments[1]:Nc),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function Fc(e){var t=[...arguments].slice(1);return e.reduce((e,n,r)=>{var i=t[r-1];return typeof i==`string`?e+i+n:i===void 0?e+n:e+Pc(i)+n},``)}var Ic=t(Mc()),Lc=e=>e===0?0:e>0?1:-1,Rc=e=>typeof e==`number`&&e!=+e,zc=e=>typeof e==`string`&&e.indexOf(`%`)===e.length-1,V=e=>(typeof e==`number`||e instanceof Number)&&!Rc(e),Bc=e=>V(e)||typeof e==`string`,Vc=0,Hc=e=>{var t=++Vc;return`${e||``}${t}`},Uc=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!V(e)&&typeof e!=`string`)return n;var i;if(zc(e)){if(t==null)return n;var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return Rc(i)&&(i=n),r&&t!=null&&i>t&&(i=t),i},Wc=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;re&&(typeof t==`function`?t(e):(0,Ic.default)(e,t))===n)}var U=e=>e==null,Kc=e=>U(e)?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`;function qc(e){return e!=null}function Jc(){}var Yc=[`type`,`size`,`sizeType`];function Xc(){return Xc=Object.assign?Object.assign.bind():function(e){for(var t=1;til[`symbol${Kc(e)}`]||Ds,sl=(e,t,n)=>{if(t===`area`)return e;switch(n){case`cross`:return 5*e*e/9;case`diamond`:return .5*e*e/Math.sqrt(3);case`square`:return e*e;case`star`:var r=18*al;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2);case`triangle`:return Math.sqrt(3)*e*e/4;case`wye`:return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},cl=(e,t)=>{il[`symbol${Kc(e)}`]=t},ll=e=>{var{type:t=`circle`,size:n=64,sizeType:r=`area`}=e,i=Qc(Qc({},nl(e,Yc)),{},{type:t,size:n,sizeType:r}),a=`circle`;typeof t==`string`&&(a=t);var o=()=>{var e=ol(a),t=Gs().type(e).size(sl(n,r,a))();if(t!==null)return t},{className:s,cx:c,cy:l}=i,u=Uo(i);return V(c)&&V(l)&&V(n)?I.createElement(`path`,Xc({},u,{className:N(`recharts-symbols`,s),transform:`translate(${c}, ${l})`,d:o()})):null};ll.registerSymbol=cl;var ul=e=>`radius`in e&&`startAngle`in e&&`endAngle`in e,dl=(e,t)=>{if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if((0,I.isValidElement)(e)&&(n=e.props),typeof n!=`object`&&typeof n!=`function`)return null;var r={};return Object.keys(n).forEach(e=>{Lo(e)&&typeof n[e]==`function`&&(r[e]=t||(t=>n[e](n,t)))}),r},fl=(e,t,n)=>r=>(e(t,n,r),null),pl=(e,t,n)=>{if(e===null||typeof e!=`object`&&typeof e!=`function`)return null;var r=null;return Object.keys(e).forEach(i=>{var a=e[i];Lo(i)&&typeof a==`function`&&(r||={},r[i]=fl(a,t,n))}),r};function ml(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hl(e){for(var t=1;t(e[t]===void 0&&r[t]!==void 0&&(e[t]=r[t]),e),n)}function bl(){return bl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=a.getDate()?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}var En={};function Dn(){return En}function On(e,t){let n=Dn(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=P(e,t?.in),a=i.getDay(),o=(a=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function jn(e){let t=P(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-+n}function Mn(e,...t){let n=Cn.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}function Nn(e,t){let n=P(e,t?.in);return n.setHours(0,0,0,0),n}function Pn(e,t,n){let[r,i]=Mn(n?.in,e,t),a=Nn(r),o=Nn(i),s=+a-jn(a),c=+o-jn(o);return Math.round((s-c)/bn)}function Fn(e,t){let n=An(e,t),r=Cn(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),kn(r)}function In(e,t,n){return wn(e,t*7,n)}function Ln(e,t,n){return Tn(e,t*12,n)}function Rn(e,t){let n,r=t?.in;return e.forEach(e=>{!r&&typeof e==`object`&&(r=Cn.bind(null,e));let t=P(e,r);(!n||n{!r&&typeof e==`object`&&(r=Cn.bind(null,e));let t=P(e,r);(!n||n>t||isNaN(+t))&&(n=t)}),Cn(r,n||NaN)}function Bn(e,t,n){let[r,i]=Mn(n?.in,e,t);return+Nn(r)==+Nn(i)}function Vn(e){return e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`}function Hn(e){return!(!Vn(e)&&typeof e!=`number`||isNaN(+P(e)))}function Un(e,t,n){let[r,i]=Mn(n?.in,e,t),a=r.getFullYear()-i.getFullYear(),o=r.getMonth()-i.getMonth();return a*12+o}function Wn(e,t){let n=P(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Gn(e,t){let[n,r]=Mn(e,t.start,t.end);return{start:n,end:r}}function Kn(e,t){let{start:n,end:r}=Gn(t?.in,e),i=+n>+r,a=i?+n:+r,o=i?r:n;o.setHours(0,0,0,0),o.setDate(1);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,i=!i);let c=[];for(;+o<=a;)c.push(Cn(n,o)),o.setMonth(o.getMonth()+s);return i?c.reverse():c}function qn(e,t){let n=P(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Jn(e,t){let n=P(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Yn(e,t){let n=P(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Xn(e,t){let{start:n,end:r}=Gn(t?.in,e),i=+n>+r,a=i?+n:+r,o=i?r:n;o.setHours(0,0,0,0),o.setMonth(0,1);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,i=!i);let c=[];for(;+o<=a;)c.push(Cn(n,o)),o.setFullYear(o.getFullYear()+s);return i?c.reverse():c}function Zn(e,t){let n=Dn(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=P(e,t?.in),a=i.getDay(),o=(a{let r,i=$n[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r};function tr(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var nr={date:tr({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:tr({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:tr({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},rr={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},ir=(e,t,n,r)=>rr[e];function ar(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}var or={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:ar({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:ar({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:ar({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:ar({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:ar({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function sr(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?lr(s,e=>e.test(o)):cr(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function cr(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function lr(e,t){for(let n=0;n{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var dr={code:`en-US`,formatDistance:er,formatLong:nr,formatRelative:ir,localize:or,match:{ordinalNumber:ur({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:sr({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:sr({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:sr({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:sr({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:sr({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function fr(e,t){let n=P(e,t?.in);return Pn(n,Yn(n))+1}function pr(e,t){let n=P(e,t?.in),r=kn(n)-+Fn(n);return Math.round(r/yn)+1}function mr(e,t){let n=P(e,t?.in),r=n.getFullYear(),i=Dn(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=Cn(t?.in||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);let s=On(o,t),c=Cn(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);let l=On(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function hr(e,t){let n=Dn(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=mr(e,t),a=Cn(t?.in||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),On(a,t)}function gr(e,t){let n=P(e,t?.in),r=On(n,t)-+hr(n,t);return Math.round(r/yn)+1}function F(e,t){return(e<0?`-`:``)+Math.abs(e).toString().padStart(t,`0`)}var _r={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return F(t===`yy`?r%100:r,t.length)},M(e,t){let n=e.getMonth();return t===`M`?String(n+1):F(n+1,2)},d(e,t){return F(e.getDate(),t.length)},a(e,t){let n=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.toUpperCase();case`aaa`:return n;case`aaaaa`:return n[0];default:return n===`am`?`a.m.`:`p.m.`}},h(e,t){return F(e.getHours()%12||12,t.length)},H(e,t){return F(e.getHours(),t.length)},m(e,t){return F(e.getMinutes(),t.length)},s(e,t){return F(e.getSeconds(),t.length)},S(e,t){let n=t.length,r=e.getMilliseconds();return F(Math.trunc(r*10**(n-3)),t.length)}},vr={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},yr={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){let t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:`year`})}return _r.y(e,t)},Y:function(e,t,n,r){let i=mr(e,r),a=i>0?i:1-i;return t===`YY`?F(a%100,2):t===`Yo`?n.ordinalNumber(a,{unit:`year`}):F(a,t.length)},R:function(e,t){return F(An(e),t.length)},u:function(e,t){return F(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return F(r,2);case`Qo`:return n.ordinalNumber(r,{unit:`quarter`});case`QQQ`:return n.quarter(r,{width:`abbreviated`,context:`formatting`});case`QQQQQ`:return n.quarter(r,{width:`narrow`,context:`formatting`});default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`q`:return String(r);case`qq`:return F(r,2);case`qo`:return n.ordinalNumber(r,{unit:`quarter`});case`qqq`:return n.quarter(r,{width:`abbreviated`,context:`standalone`});case`qqqqq`:return n.quarter(r,{width:`narrow`,context:`standalone`});default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){let r=e.getMonth();switch(t){case`M`:case`MM`:return _r.M(e,t);case`Mo`:return n.ordinalNumber(r+1,{unit:`month`});case`MMM`:return n.month(r,{width:`abbreviated`,context:`formatting`});case`MMMMM`:return n.month(r,{width:`narrow`,context:`formatting`});default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){let r=e.getMonth();switch(t){case`L`:return String(r+1);case`LL`:return F(r+1,2);case`Lo`:return n.ordinalNumber(r+1,{unit:`month`});case`LLL`:return n.month(r,{width:`abbreviated`,context:`standalone`});case`LLLLL`:return n.month(r,{width:`narrow`,context:`standalone`});default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){let i=gr(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):F(i,t.length)},I:function(e,t,n){let r=pr(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):F(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):_r.d(e,t)},D:function(e,t,n){let r=fr(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):F(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case`E`:case`EE`:case`EEE`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`EEEEE`:return n.day(r,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(a);case`ee`:return F(a,2);case`eo`:return n.ordinalNumber(a,{unit:`day`});case`eee`:return n.day(i,{width:`abbreviated`,context:`formatting`});case`eeeee`:return n.day(i,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(i,{width:`short`,context:`formatting`});default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(a);case`cc`:return F(a,t.length);case`co`:return n.ordinalNumber(a,{unit:`day`});case`ccc`:return n.day(i,{width:`abbreviated`,context:`standalone`});case`ccccc`:return n.day(i,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(i,{width:`short`,context:`standalone`});default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){let r=e.getDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return F(i,t.length);case`io`:return n.ordinalNumber(i,{unit:`day`});case`iii`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`iiiii`:return n.day(r,{width:`narrow`,context:`formatting`});case`iiiiii`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){let r=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(r,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(r,{width:`wide`,context:`formatting`})}},b:function(e,t,n){let r=e.getHours(),i;switch(i=r===12?vr.noon:r===0?vr.midnight:r/12>=1?`pm`:`am`,t){case`b`:case`bb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`bbb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){let r=e.getHours(),i;switch(i=r>=17?vr.evening:r>=12?vr.afternoon:r>=4?vr.morning:vr.night,t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:`hour`})}return _r.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):_r.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):F(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):F(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):_r.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):_r.s(e,t)},S:function(e,t){return _r.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return xr(r);case`XXXX`:case`XX`:return Sr(r);default:return Sr(r,`:`)}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`x`:return xr(r);case`xxxx`:case`xx`:return Sr(r);default:return Sr(r,`:`)}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+br(r,`:`);default:return`GMT`+Sr(r,`:`)}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+br(r,`:`);default:return`GMT`+Sr(r,`:`)}},t:function(e,t,n){return F(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return F(+e,t.length)}};function br(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+F(a,2)}function xr(e,t){return e%60==0?(e>0?`-`:`+`)+F(Math.abs(e)/60,2):Sr(e,t)}function Sr(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=F(Math.trunc(r/60),2),a=F(r%60,2);return n+i+t+a}var Cr=(e,t)=>{switch(e){case`P`:return t.date({width:`short`});case`PP`:return t.date({width:`medium`});case`PPP`:return t.date({width:`long`});default:return t.date({width:`full`})}},wr=(e,t)=>{switch(e){case`p`:return t.time({width:`short`});case`pp`:return t.time({width:`medium`});case`ppp`:return t.time({width:`long`});default:return t.time({width:`full`})}},Tr={p:wr,P:(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Cr(e,t);let a;switch(r){case`P`:a=t.dateTime({width:`short`});break;case`PP`:a=t.dateTime({width:`medium`});break;case`PPP`:a=t.dateTime({width:`long`});break;default:a=t.dateTime({width:`full`});break}return a.replace(`{{date}}`,Cr(r,t)).replace(`{{time}}`,wr(i,t))}},Er=/^D+$/,Dr=/^Y+$/,Or=[`D`,`DD`,`YY`,`YYYY`];function kr(e){return Er.test(e)}function Ar(e){return Dr.test(e)}function jr(e,t,n){let r=Mr(e,t,n);if(console.warn(r),Or.includes(e))throw RangeError(r)}function Mr(e,t,n){let r=e[0]===`Y`?`years`:`days of the month`;return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var Nr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Pr=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Fr=/^'([^]*?)'?$/,Ir=/''/g,Lr=/[a-zA-Z]/;function Rr(e,t,n){let r=Dn(),i=n?.locale??r.locale??dr,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=P(e,n?.in);if(!Hn(s))throw RangeError(`Invalid time value`);let c=t.match(Pr).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=Tr[t];return n(e,i.formatLong)}return e}).join(``).match(Nr).map(e=>{if(e===`''`)return{isToken:!1,value:`'`};let t=e[0];if(t===`'`)return{isToken:!1,value:zr(e)};if(yr[t])return{isToken:!0,value:e};if(t.match(Lr))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));let l={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return c.map(r=>{if(!r.isToken)return r.value;let a=r.value;(!n?.useAdditionalWeekYearTokens&&Ar(a)||!n?.useAdditionalDayOfYearTokens&&kr(a))&&jr(a,t,String(e));let o=yr[a[0]];return o(s,a,i.localize,l)}).join(``)}function zr(e){let t=e.match(Fr);return t?t[1].replace(Ir,`'`):e}function Br(e,t){let n=P(e,t?.in),r=n.getFullYear(),i=n.getMonth(),a=Cn(n,0);return a.setFullYear(r,i+1,0),a.setHours(0,0,0,0),a.getDate()}function Vr(e,t){return P(e,t?.in).getMonth()}function Hr(e,t){return P(e,t?.in).getFullYear()}function Ur(e,t){return+P(e)>+P(t)}function Wr(e,t){return+P(e)<+P(t)}function Gr(e,t,n){let[r,i]=Mn(n?.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function Kr(e,t,n){let[r,i]=Mn(n?.in,e,t);return r.getFullYear()===i.getFullYear()}function qr(e,t,n){return wn(e,-t,n)}function Jr(e,t,n){let r=P(e,n?.in),i=r.getFullYear(),a=r.getDate(),o=Cn(n?.in||e,0);o.setFullYear(i,t,15),o.setHours(0,0,0,0);let s=Br(o);return r.setMonth(t,Math.min(a,s)),r}function Yr(e,t,n){let r=P(e,n?.in);return isNaN(+r)?Cn(n?.in||e,NaN):(r.setFullYear(t),r)}function Xr(e,t,n){return Tn(e,-t,n)}var Zr={lessThanXSeconds:{one:`少於 1 秒`,other:`少於 {{count}} 秒`},xSeconds:{one:`1 秒`,other:`{{count}} 秒`},halfAMinute:`半分鐘`,lessThanXMinutes:{one:`少於 1 分鐘`,other:`少於 {{count}} 分鐘`},xMinutes:{one:`1 分鐘`,other:`{{count}} 分鐘`},xHours:{one:`1 小時`,other:`{{count}} 小時`},aboutXHours:{one:`大約 1 小時`,other:`大約 {{count}} 小時`},xDays:{one:`1 天`,other:`{{count}} 天`},aboutXWeeks:{one:`大約 1 個星期`,other:`大約 {{count}} 個星期`},xWeeks:{one:`1 個星期`,other:`{{count}} 個星期`},aboutXMonths:{one:`大約 1 個月`,other:`大約 {{count}} 個月`},xMonths:{one:`1 個月`,other:`{{count}} 個月`},aboutXYears:{one:`大約 1 年`,other:`大約 {{count}} 年`},xYears:{one:`1 年`,other:`{{count}} 年`},overXYears:{one:`超過 1 年`,other:`超過 {{count}} 年`},almostXYears:{one:`將近 1 年`,other:`將近 {{count}} 年`}},Qr=(e,t,n)=>{let r,i=Zr[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+`內`:r+`前`:r},$r={date:tr({formats:{full:`y'年'M'月'd'日' EEEE`,long:`y'年'M'月'd'日'`,medium:`yyyy-MM-dd`,short:`yy-MM-dd`},defaultWidth:`full`}),time:tr({formats:{full:`zzzz a h:mm:ss`,long:`z a h:mm:ss`,medium:`a h:mm:ss`,short:`a h:mm`},defaultWidth:`full`}),dateTime:tr({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},ei={lastWeek:`'上個'eeee p`,yesterday:`'昨天' p`,today:`'今天' p`,tomorrow:`'明天' p`,nextWeek:`'下個'eeee p`,other:`P`},ti={code:`zh-TW`,formatDistance:Qr,formatLong:$r,formatRelative:(e,t,n,r)=>ei[e],localize:{ordinalNumber:(e,t)=>{let n=Number(e);switch(t?.unit){case`date`:return n+`日`;case`hour`:return n+`時`;case`minute`:return n+`分`;case`second`:return n+`秒`;default:return`第 `+n}},era:ar({values:{narrow:[`前`,`公元`],abbreviated:[`前`,`公元`],wide:[`公元前`,`公元`]},defaultWidth:`wide`}),quarter:ar({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`第一刻`,`第二刻`,`第三刻`,`第四刻`],wide:[`第一刻鐘`,`第二刻鐘`,`第三刻鐘`,`第四刻鐘`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:ar({values:{narrow:[`一`,`二`,`三`,`四`,`五`,`六`,`七`,`八`,`九`,`十`,`十一`,`十二`],abbreviated:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],wide:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`]},defaultWidth:`wide`}),day:ar({values:{narrow:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],short:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],abbreviated:[`週日`,`週一`,`週二`,`週三`,`週四`,`週五`,`週六`],wide:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`]},defaultWidth:`wide`}),dayPeriod:ar({values:{narrow:{am:`上`,pm:`下`,midnight:`凌晨`,noon:`午`,morning:`早`,afternoon:`下午`,evening:`晚`,night:`夜`},abbreviated:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜間`},wide:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜間`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`上`,pm:`下`,midnight:`凌晨`,noon:`午`,morning:`早`,afternoon:`下午`,evening:`晚`,night:`夜`},abbreviated:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜間`},wide:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜間`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:ur({matchPattern:/^(第\s*)?\d+(日|時|分|秒)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:sr({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:`any`}),quarter:sr({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻鐘/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:sr({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},defaultParseWidth:`any`}),day:sr({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:`any`}),dayPeriod:sr({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}};function ni(e,t,n=`long`){return new Intl.DateTimeFormat(`en-US`,{hour:`numeric`,timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(` `)}var ri={},ii={};function ai(e,t){try{let n=(ri[e]||=new Intl.DateTimeFormat(`en-US`,{timeZone:e,timeZoneName:`longOffset`}).format)(t).split(`GMT`)[1];return n in ii?ii[n]:si(n,n.split(`:`))}catch{if(e in ii)return ii[e];let t=e?.match(oi);return t?si(e,t.slice(1)):NaN}}var oi=/([+-]\d\d):?(\d\d)?/;function si(e,t){let n=+(t[0]||0),r=+(t[1]||0),i=(t[2]||0)/60;return ii[e]=n*60+r>0?n*60+r+i:n*60-r-i}var ci=class e extends Date{constructor(...e){super(),e.length>1&&typeof e[e.length-1]==`string`&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(ai(this.timeZone,this))?this.setTime(NaN):e.length?typeof e[0]==`number`&&(e.length===1||e.length===2&&typeof e[1]!=`number`)?this.setTime(e[0]):typeof e[0]==`string`?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),fi(this,NaN),ui(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}withTimeZone(t){return new e(+this,t)}getTimezoneOffset(){let e=-ai(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),ui(this),+this}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}},li=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!li.test(e))return;let t=e.replace(li,`$1UTC`);ci.prototype[t]&&(e.startsWith(`get`)?ci.prototype[e]=function(){return this.internal[t]()}:(ci.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),di(this),+this},ci.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),ui(this),+this}))});function ui(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-ai(e.timeZone,e)*60))}function di(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),fi(e)}function fi(e){let t=ai(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);let i=-new Date(+e).getTimezoneOffset(),a=i- -new Date(+r).getTimezoneOffset(),o=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&o&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);let s=i-n;s&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+s);let c=new Date(+e);c.setUTCSeconds(0);let l=i>0?c.getSeconds():(c.getSeconds()-60)%60,u=Math.round(-(ai(e.timeZone,e)*60))%60;(u||l)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+u),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+u+l));let d=ai(e.timeZone,e),f=d>0?Math.floor(d):Math.ceil(d),p=-new Date(+e).getTimezoneOffset()-f,m=f!==n,h=p-s;if(m&&h){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+h);let t=ai(e.timeZone,e),n=f-(t>0?Math.floor(t):Math.ceil(t));n&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+n),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n))}}var pi=class e extends ci{static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}toISOString(){let[e,t,n]=this.tzComponents(),r=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){let[e,t,n,r]=this.internal.toUTCString().split(` `);return`${e?.slice(0,-1)} ${n} ${t} ${r}`}toTimeString(){let e=this.internal.toUTCString().split(` `)[4],[t,n,r]=this.tzComponents();return`${e} GMT${t}${n}${r} (${ni(this.timeZone,this)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){let e=this.getTimezoneOffset();return[e>0?`-`:`+`,String(Math.floor(Math.abs(e)/60)).padStart(2,`0`),String(Math.abs(e)%60).padStart(2,`0`)]}withTimeZone(t){return new e(+this,t)}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}},mi=5,hi=4;function gi(e,t){let n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,i=t.addDays(e,-r+1),a=t.addDays(i,mi*7-1);return t.getMonth(e)===t.getMonth(a)?mi:hi}function _i(e,t){let n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-6):t.addDays(n,-1*(r-1))}function vi(e,t){let n=_i(e,t),r=gi(e,t);return t.addDays(n,r*7-1)}var yi={...dr,labels:{labelDayButton:(e,t,n,r)=>{let i;i=r&&typeof r.format==`function`?r.format.bind(r):(e,t)=>Rr(e,t,{locale:dr,...n});let a=i(e,`PPPP`);return t.today&&(a=`Today, ${a}`),t.selected&&(a=`${a}, selected`),a},labelMonthDropdown:`Choose the Month`,labelNext:`Go to the Next Month`,labelPrevious:`Go to the Previous Month`,labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:`Choose the Year`,labelGrid:(e,t,n)=>{let r;return r=n&&typeof n.format==`function`?n.format.bind(n):(e,n)=>Rr(e,n,{locale:dr,...t}),r(e,`LLLL yyyy`)},labelGridcell:(e,t,n,r)=>{let i;i=r&&typeof r.format==`function`?r.format.bind(r):(e,t)=>Rr(e,t,{locale:dr,...n});let a=i(e,`PPPP`);return t?.today&&(a=`Today, ${a}`),a},labelNav:`Navigation bar`,labelWeekNumberHeader:`Week Number`,labelWeekday:(e,t,n)=>{let r;return r=n&&typeof n.format==`function`?n.format.bind(n):(e,n)=>Rr(e,n,{locale:dr,...t}),r(e,`cccc`)}}},bi=class e{constructor(e,t){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?pi.tz(this.options.timeZone):new this.Date,this.newDate=(e,t,n)=>this.overrides?.newDate?this.overrides.newDate(e,t,n):this.options.timeZone?new pi(e,t,n,this.options.timeZone):new Date(e,t,n),this.addDays=(e,t)=>this.overrides?.addDays?this.overrides.addDays(e,t):wn(e,t),this.addMonths=(e,t)=>this.overrides?.addMonths?this.overrides.addMonths(e,t):Tn(e,t),this.addWeeks=(e,t)=>this.overrides?.addWeeks?this.overrides.addWeeks(e,t):In(e,t),this.addYears=(e,t)=>this.overrides?.addYears?this.overrides.addYears(e,t):Ln(e,t),this.differenceInCalendarDays=(e,t)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(e,t):Pn(e,t),this.differenceInCalendarMonths=(e,t)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(e,t):Un(e,t),this.eachMonthOfInterval=e=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(e):Kn(e),this.eachYearOfInterval=e=>{let t=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(e):Xn(e),n=new Set(t.map(e=>this.getYear(e)));if(n.size===t.length)return t;let r=[];return n.forEach(e=>{r.push(new Date(e,0,1))}),r},this.endOfBroadcastWeek=e=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(e):vi(e,this),this.endOfISOWeek=e=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(e):Qn(e),this.endOfMonth=e=>this.overrides?.endOfMonth?this.overrides.endOfMonth(e):Wn(e),this.endOfWeek=(e,t)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(e,t):Zn(e,this.options),this.endOfYear=e=>this.overrides?.endOfYear?this.overrides.endOfYear(e):Jn(e),this.format=(e,t,n)=>{let r=this.overrides?.format?this.overrides.format(e,t,this.options):Rr(e,t,this.options);return this.options.numerals&&this.options.numerals!==`latn`?this.replaceDigits(r):r},this.getISOWeek=e=>this.overrides?.getISOWeek?this.overrides.getISOWeek(e):pr(e),this.getMonth=(e,t)=>this.overrides?.getMonth?this.overrides.getMonth(e,this.options):Vr(e,this.options),this.getYear=(e,t)=>this.overrides?.getYear?this.overrides.getYear(e,this.options):Hr(e,this.options),this.getWeek=(e,t)=>this.overrides?.getWeek?this.overrides.getWeek(e,this.options):gr(e,this.options),this.isAfter=(e,t)=>this.overrides?.isAfter?this.overrides.isAfter(e,t):Ur(e,t),this.isBefore=(e,t)=>this.overrides?.isBefore?this.overrides.isBefore(e,t):Wr(e,t),this.isDate=e=>this.overrides?.isDate?this.overrides.isDate(e):Vn(e),this.isSameDay=(e,t)=>this.overrides?.isSameDay?this.overrides.isSameDay(e,t):Bn(e,t),this.isSameMonth=(e,t)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(e,t):Gr(e,t),this.isSameYear=(e,t)=>this.overrides?.isSameYear?this.overrides.isSameYear(e,t):Kr(e,t),this.max=e=>this.overrides?.max?this.overrides.max(e):Rn(e),this.min=e=>this.overrides?.min?this.overrides.min(e):zn(e),this.setMonth=(e,t)=>this.overrides?.setMonth?this.overrides.setMonth(e,t):Jr(e,t),this.setYear=(e,t)=>this.overrides?.setYear?this.overrides.setYear(e,t):Yr(e,t),this.startOfBroadcastWeek=(e,t)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(e,this):_i(e,this),this.startOfDay=e=>this.overrides?.startOfDay?this.overrides.startOfDay(e):Nn(e),this.startOfISOWeek=e=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(e):kn(e),this.startOfMonth=e=>this.overrides?.startOfMonth?this.overrides.startOfMonth(e):qn(e),this.startOfWeek=(e,t)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(e,this.options):On(e,this.options),this.startOfYear=e=>this.overrides?.startOfYear?this.overrides.startOfYear(e):Yn(e),this.options={locale:yi,...e},this.overrides=t}getDigitMap(){let{numerals:e=`latn`}=this.options,t=new Intl.NumberFormat(`en-US`,{numberingSystem:e}),n={};for(let e=0;e<10;e++)n[e.toString()]=t.format(e);return n}replaceDigits(e){let t=this.getDigitMap();return e.replace(/\d/g,e=>t[e]||e)}formatNumber(e){return this.replaceDigits(e.toString())}getMonthYearOrder(){let t=this.options.locale?.code;return t&&e.yearFirstLocales.has(t)?`year-first`:`month-first`}formatMonthYear(t){let{locale:n,timeZone:r,numerals:i}=this.options,a=n?.code;if(a&&e.yearFirstLocales.has(a))try{return new Intl.DateTimeFormat(a,{month:`long`,year:`numeric`,timeZone:r,numberingSystem:i}).format(t)}catch{}let o=this.getMonthYearOrder()===`year-first`?`y LLLL`:`LLLL y`;return this.format(t,o)}};bi.yearFirstLocales=new Set([`eu`,`hu`,`ja`,`ja-Hira`,`ja-JP`,`ko`,`ko-KR`,`lt`,`lt-LT`,`lv`,`lv-LV`,`mn`,`mn-MN`,`zh`,`zh-CN`,`zh-HK`,`zh-TW`]);var xi=new bi,Si=class{constructor(e,t,n=xi){this.date=e,this.displayMonth=t,this.outside=!!(t&&!n.isSameMonth(e,t)),this.dateLib=n,this.isoDate=n.format(e,`yyyy-MM-dd`),this.displayMonthId=n.format(t,`yyyy-MM`),this.dateMonthId=n.format(e,`yyyy-MM`)}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}},Ci=class{constructor(e,t){this.date=e,this.weeks=t}},wi=class{constructor(e,t){this.days=t,this.weekNumber=e}},I=t(a(),1);function Ti(e){return I.createElement(`button`,{...e})}function Ei(e){return I.createElement(`span`,{...e})}function Di(e){let{size:t=24,orientation:n=`left`,className:r}=e;return I.createElement(`svg`,{className:r,width:t,height:t,viewBox:`0 0 24 24`},n===`up`&&I.createElement(`polygon`,{points:`6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28`}),n===`down`&&I.createElement(`polygon`,{points:`6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72`}),n===`left`&&I.createElement(`polygon`,{points:`16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20`}),n===`right`&&I.createElement(`polygon`,{points:`8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20`}))}function Oi(e){let{day:t,modifiers:n,...r}=e;return I.createElement(`td`,{...r})}function ki(e){let{day:t,modifiers:n,...r}=e,i=I.useRef(null);return I.useEffect(()=>{n.focused&&i.current?.focus()},[n.focused]),I.createElement(`button`,{ref:i,...r})}var L;(function(e){e.Root=`root`,e.Chevron=`chevron`,e.Day=`day`,e.DayButton=`day_button`,e.CaptionLabel=`caption_label`,e.Dropdowns=`dropdowns`,e.Dropdown=`dropdown`,e.DropdownRoot=`dropdown_root`,e.Footer=`footer`,e.MonthGrid=`month_grid`,e.MonthCaption=`month_caption`,e.MonthsDropdown=`months_dropdown`,e.Month=`month`,e.Months=`months`,e.Nav=`nav`,e.NextMonthButton=`button_next`,e.PreviousMonthButton=`button_previous`,e.Week=`week`,e.Weeks=`weeks`,e.Weekday=`weekday`,e.Weekdays=`weekdays`,e.WeekNumber=`week_number`,e.WeekNumberHeader=`week_number_header`,e.YearsDropdown=`years_dropdown`})(L||={});var R;(function(e){e.disabled=`disabled`,e.hidden=`hidden`,e.outside=`outside`,e.focused=`focused`,e.today=`today`})(R||={});var Ai;(function(e){e.range_end=`range_end`,e.range_middle=`range_middle`,e.range_start=`range_start`,e.selected=`selected`})(Ai||={});var ji;(function(e){e.weeks_before_enter=`weeks_before_enter`,e.weeks_before_exit=`weeks_before_exit`,e.weeks_after_enter=`weeks_after_enter`,e.weeks_after_exit=`weeks_after_exit`,e.caption_after_enter=`caption_after_enter`,e.caption_after_exit=`caption_after_exit`,e.caption_before_enter=`caption_before_enter`,e.caption_before_exit=`caption_before_exit`})(ji||={});function Mi(e){let{options:t,className:n,components:r,classNames:i,...a}=e,o=[i[L.Dropdown],n].join(` `),s=t?.find(({value:e})=>e===a.value);return I.createElement(`span`,{"data-disabled":a.disabled,className:i[L.DropdownRoot]},I.createElement(r.Select,{className:o,...a},t?.map(({value:e,label:t,disabled:n})=>I.createElement(r.Option,{key:e,value:e,disabled:n},t))),I.createElement(`span`,{className:i[L.CaptionLabel],"aria-hidden":!0},s?.label,I.createElement(r.Chevron,{orientation:`down`,size:18,className:i[L.Chevron]})))}function Ni(e){return I.createElement(`div`,{...e})}function Pi(e){return I.createElement(`div`,{...e})}function Fi(e){let{calendarMonth:t,displayIndex:n,...r}=e;return I.createElement(`div`,{...r},e.children)}function Ii(e){let{calendarMonth:t,displayIndex:n,...r}=e;return I.createElement(`div`,{...r})}function Li(e){return I.createElement(`table`,{...e})}function Ri(e){return I.createElement(`div`,{...e})}var zi=(0,I.createContext)(void 0);function Bi(){let e=(0,I.useContext)(zi);if(e===void 0)throw Error(`useDayPicker() must be used within a custom component.`);return e}function Vi(e){let{components:t}=Bi();return I.createElement(t.Dropdown,{...e})}function Hi(e){let{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:i,...a}=e,{components:o,classNames:s,labels:{labelPrevious:c,labelNext:l}}=Bi(),u=(0,I.useCallback)(e=>{i&&n?.(e)},[i,n]),d=(0,I.useCallback)(e=>{r&&t?.(e)},[r,t]);return I.createElement(`nav`,{...a},I.createElement(o.PreviousMonthButton,{type:`button`,className:s[L.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":c(r),onClick:d},I.createElement(o.Chevron,{disabled:r?void 0:!0,className:s[L.Chevron],orientation:`left`})),I.createElement(o.NextMonthButton,{type:`button`,className:s[L.NextMonthButton],tabIndex:i?void 0:-1,"aria-disabled":i?void 0:!0,"aria-label":l(i),onClick:u},I.createElement(o.Chevron,{disabled:i?void 0:!0,orientation:`right`,className:s[L.Chevron]})))}function Ui(e){let{components:t}=Bi();return I.createElement(t.Button,{...e})}function Wi(e){return I.createElement(`option`,{...e})}function Gi(e){let{components:t}=Bi();return I.createElement(t.Button,{...e})}function Ki(e){let{rootRef:t,...n}=e;return I.createElement(`div`,{...n,ref:t})}function qi(e){return I.createElement(`select`,{...e})}function Ji(e){let{week:t,...n}=e;return I.createElement(`tr`,{...n})}function Yi(e){return I.createElement(`th`,{...e})}function Xi(e){return I.createElement(`thead`,{"aria-hidden":!0},I.createElement(`tr`,{...e}))}function Zi(e){let{week:t,...n}=e;return I.createElement(`th`,{...n})}function Qi(e){return I.createElement(`th`,{...e})}function $i(e){return I.createElement(`tbody`,{...e})}function ea(e){let{components:t}=Bi();return I.createElement(t.Dropdown,{...e})}var ta=e({Button:()=>Ti,CaptionLabel:()=>Ei,Chevron:()=>Di,Day:()=>Oi,DayButton:()=>ki,Dropdown:()=>Mi,DropdownNav:()=>Ni,Footer:()=>Pi,Month:()=>Fi,MonthCaption:()=>Ii,MonthGrid:()=>Li,Months:()=>Ri,MonthsDropdown:()=>Vi,Nav:()=>Hi,NextMonthButton:()=>Ui,Option:()=>Wi,PreviousMonthButton:()=>Gi,Root:()=>Ki,Select:()=>qi,Week:()=>Ji,WeekNumber:()=>Zi,WeekNumberHeader:()=>Qi,Weekday:()=>Yi,Weekdays:()=>Xi,Weeks:()=>$i,YearsDropdown:()=>ea});function na(e,t,n=!1,r=xi){let{from:i,to:a}=e,{differenceInCalendarDays:o,isSameDay:s}=r;return i&&a?(o(a,i)<0&&([i,a]=[a,i]),o(t,i)>=+!!n&&o(a,t)>=+!!n):!n&&a?s(a,t):!n&&i?s(i,t):!1}function ra(e){return!!(e&&typeof e==`object`&&`before`in e&&`after`in e)}function ia(e){return!!(e&&typeof e==`object`&&`from`in e)}function aa(e){return!!(e&&typeof e==`object`&&`after`in e)}function oa(e){return!!(e&&typeof e==`object`&&`before`in e)}function sa(e){return!!(e&&typeof e==`object`&&`dayOfWeek`in e)}function ca(e,t){return Array.isArray(e)&&e.every(t.isDate)}function la(e,t,n=xi){let r=Array.isArray(t)?t:[t],{isSameDay:i,differenceInCalendarDays:a,isAfter:o}=n;return r.some(t=>{if(typeof t==`boolean`)return t;if(n.isDate(t))return i(e,t);if(ca(t,n))return t.some(t=>i(e,t));if(ia(t))return na(t,e,!1,n);if(sa(t))return Array.isArray(t.dayOfWeek)?t.dayOfWeek.includes(e.getDay()):t.dayOfWeek===e.getDay();if(ra(t)){let n=a(t.before,e),r=a(t.after,e),i=n>0,s=r<0;return o(t.before,t.after)?s&&i:i||s}return aa(t)?a(e,t.after)>0:oa(t)?a(t.before,e)>0:typeof t==`function`?t(e):!1})}function ua(e,t,n,r,i){let{disabled:a,hidden:o,modifiers:s,showOutsideDays:c,broadcastCalendar:l,today:u=i.today()}=t,{isSameDay:d,isSameMonth:f,startOfMonth:p,isBefore:m,endOfMonth:h,isAfter:g}=i,_=n&&p(n),v=r&&h(r),y={[R.focused]:[],[R.outside]:[],[R.disabled]:[],[R.hidden]:[],[R.today]:[]},b={};for(let t of e){let{date:e,displayMonth:n}=t,r=!!(n&&!f(e,n)),p=!!(_&&m(e,_)),h=!!(v&&g(e,v)),x=!!(a&&la(e,a,i)),S=!!(o&&la(e,o,i))||p||h||!l&&!c&&r||l&&c===!1&&r,C=d(e,u);r&&y.outside.push(t),x&&y.disabled.push(t),S&&y.hidden.push(t),C&&y.today.push(t),s&&Object.keys(s).forEach(n=>{let r=s?.[n];r&&la(e,r,i)&&(b[n]?b[n].push(t):b[n]=[t])})}return e=>{let t={[R.focused]:!1,[R.disabled]:!1,[R.hidden]:!1,[R.outside]:!1,[R.today]:!1},n={};for(let n in y)t[n]=y[n].some(t=>t===e);for(let t in b)n[t]=b[t].some(t=>t===e);return{...t,...n}}}function da(e,t,n={}){return Object.entries(e).filter(([,e])=>e===!0).reduce((e,[r])=>(n[r]?e.push(n[r]):t[R[r]]?e.push(t[R[r]]):t[Ai[r]]&&e.push(t[Ai[r]]),e),[t[L.Day]])}function fa(e){return{...ta,...e}}function pa(e){let t={"data-mode":e.mode??void 0,"data-required":`required`in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([e,n])=>{e.startsWith(`data-`)&&(t[e]=n)}),t}function ma(){let e={};for(let t in L)e[L[t]]=`rdp-${L[t]}`;for(let t in R)e[R[t]]=`rdp-${R[t]}`;for(let t in Ai)e[Ai[t]]=`rdp-${Ai[t]}`;for(let t in ji)e[ji[t]]=`rdp-${ji[t]}`;return e}function ha(e,t,n){return(n??new bi(t)).formatMonthYear(e)}var ga=ha;function _a(e,t,n){return(n??new bi(t)).format(e,`d`)}function va(e,t=xi){return t.format(e,`LLLL`)}function ya(e,t,n){return(n??new bi(t)).format(e,`cccccc`)}function ba(e,t=xi){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function xa(){return``}function Sa(e,t=xi){return t.format(e,`yyyy`)}var Ca=Sa,wa=e({formatCaption:()=>ha,formatDay:()=>_a,formatMonthCaption:()=>ga,formatMonthDropdown:()=>va,formatWeekNumber:()=>ba,formatWeekNumberHeader:()=>xa,formatWeekdayName:()=>ya,formatYearCaption:()=>Ca,formatYearDropdown:()=>Sa});function Ta(e){return e?.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e?.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...wa,...e}}function Ea(e,t,n,r){let i=(r??new bi(n)).format(e,`PPPP`);return t.today&&(i=`Today, ${i}`),t.selected&&(i=`${i}, selected`),i}var Da=Ea;function Oa(e,t,n){return(n??new bi(t)).formatMonthYear(e)}var ka=Oa;function Aa(e,t,n,r){let i=(r??new bi(n)).format(e,`PPPP`);return t?.today&&(i=`Today, ${i}`),i}function ja(e){return`Choose the Month`}function Ma(){return``}var Na=`Go to the Next Month`;function Pa(e,t){return Na}function Fa(e){return`Go to the Previous Month`}function Ia(e,t,n){return(n??new bi(t)).format(e,`cccc`)}function La(e,t){return`Week ${e}`}function Ra(e){return`Week Number`}function za(e){return`Choose the Year`}var Ba=e({labelCaption:()=>ka,labelDay:()=>Da,labelDayButton:()=>Ea,labelGrid:()=>Oa,labelGridcell:()=>Aa,labelMonthDropdown:()=>ja,labelNav:()=>Ma,labelNext:()=>Pa,labelPrevious:()=>Fa,labelWeekNumber:()=>La,labelWeekNumberHeader:()=>Ra,labelWeekday:()=>Ia,labelYearDropdown:()=>za}),Va=(e,t,n)=>t||(n?typeof n==`function`?n:(...e)=>n:e);function Ha(e,t){let n=t.locale?.labels??{};return{...Ba,...e??{},labelDayButton:Va(Ea,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:Va(ja,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:Va(Pa,e?.labelNext,n.labelNext),labelPrevious:Va(Fa,e?.labelPrevious,n.labelPrevious),labelWeekNumber:Va(La,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:Va(za,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:Va(Oa,e?.labelGrid,n.labelGrid),labelGridcell:Va(Aa,e?.labelGridcell,n.labelGridcell),labelNav:Va(Ma,e?.labelNav,n.labelNav),labelWeekNumberHeader:Va(Ra,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:Va(Ia,e?.labelWeekday,n.labelWeekday)}}function Ua(e,t,n,r,i){let{startOfMonth:a,startOfYear:o,endOfYear:s,eachMonthOfInterval:c,getMonth:l}=i;return c({start:o(e),end:s(e)}).map(e=>{let o=r.formatMonthDropdown(e,i);return{value:l(e),label:o,disabled:t&&ea(n)||!1}})}function Wa(e,t={},n={}){let r={...t?.[L.Day]};return Object.entries(e).filter(([,e])=>e===!0).forEach(([e])=>{r={...r,...n?.[e]}}),r}function Ga(e,t,n,r){let i=r??e.today(),a=n?e.startOfBroadcastWeek(i,e):t?e.startOfISOWeek(i):e.startOfWeek(i),o=[];for(let t=0;t<7;t++){let n=e.addDays(a,t);o.push(n)}return o}function Ka(e,t,n,r,i=!1){if(!e||!t)return;let{startOfYear:a,endOfYear:o,eachYearOfInterval:s,getYear:c}=r,l=s({start:a(e),end:o(t)});return i&&l.reverse(),l.map(e=>{let t=n.formatYearDropdown(e,r);return{value:c(e),label:t,disabled:!1}})}function qa(e,t={}){let{weekStartsOn:n,locale:r}=t,i=n??r?.options?.weekStartsOn??0,a=t=>{let n=typeof t==`number`||typeof t==`string`?new Date(t):t;return new pi(n.getFullYear(),n.getMonth(),n.getDate(),12,0,0,e)},o=e=>{let t=a(e);return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)};return{today:()=>a(pi.tz(e)),newDate:(t,n,r)=>new pi(t,n,r,12,0,0,e),startOfDay:e=>a(e),startOfWeek:(e,t)=>{let n=a(e),r=t?.weekStartsOn??i,o=(n.getDay()-r+7)%7;return n.setDate(n.getDate()-o),n},startOfISOWeek:e=>{let t=a(e),n=(t.getDay()-1+7)%7;return t.setDate(t.getDate()-n),t},startOfMonth:e=>{let t=a(e);return t.setDate(1),t},startOfYear:e=>{let t=a(e);return t.setMonth(0,1),t},endOfWeek:(e,t)=>{let n=a(e),r=(((t?.weekStartsOn??i)+6)%7-n.getDay()+7)%7;return n.setDate(n.getDate()+r),n},endOfISOWeek:e=>{let t=a(e),n=(7-t.getDay())%7;return t.setDate(t.getDate()+n),t},endOfMonth:e=>{let t=a(e);return t.setMonth(t.getMonth()+1,0),t},endOfYear:e=>{let t=a(e);return t.setMonth(11,31),t},eachMonthOfInterval:t=>{let n=a(t.start),r=a(t.end),i=[],o=new pi(n.getFullYear(),n.getMonth(),1,12,0,0,e),s=r.getFullYear()*12+r.getMonth();for(;o.getFullYear()*12+o.getMonth()<=s;)i.push(new pi(o,e)),o.setMonth(o.getMonth()+1,1);return i},addDays:(e,t)=>{let n=a(e);return n.setDate(n.getDate()+t),n},addWeeks:(e,t)=>{let n=a(e);return n.setDate(n.getDate()+t*7),n},addMonths:(e,t)=>{let n=a(e);return n.setMonth(n.getMonth()+t),n},addYears:(e,t)=>{let n=a(e);return n.setFullYear(n.getFullYear()+t),n},eachYearOfInterval:t=>{let n=a(t.start),r=a(t.end),i=[],o=new pi(n.getFullYear(),0,1,12,0,0,e);for(;o.getFullYear()<=r.getFullYear();)i.push(new pi(o,e)),o.setFullYear(o.getFullYear()+1,0,1);return i},getWeek:(e,t)=>gr(o(e),{weekStartsOn:t?.weekStartsOn??i,firstWeekContainsDate:t?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1}),getISOWeek:e=>pr(o(e)),differenceInCalendarDays:(e,t)=>Pn(o(e),o(t)),differenceInCalendarMonths:(e,t)=>Un(o(e),o(t))}}var Ja=e=>e instanceof HTMLElement?e:null,Ya=e=>[...e.querySelectorAll(`[data-animated-month]`)??[]],Xa=e=>Ja(e.querySelector(`[data-animated-month]`)),Za=e=>Ja(e.querySelector(`[data-animated-caption]`)),Qa=e=>Ja(e.querySelector(`[data-animated-weeks]`)),$a=e=>Ja(e.querySelector(`[data-animated-nav]`)),eo=e=>Ja(e.querySelector(`[data-animated-weekdays]`));function to(e,t,{classNames:n,months:r,focused:i,dateLib:a}){let o=(0,I.useRef)(null),s=(0,I.useRef)(r),c=(0,I.useRef)(!1);(0,I.useLayoutEffect)(()=>{let l=s.current;if(s.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||l.length===0||r.length!==l.length)return;let u=a.isSameMonth(r[0].date,l[0].date),d=a.isAfter(r[0].date,l[0].date),f=d?n[ji.caption_after_enter]:n[ji.caption_before_enter],p=d?n[ji.weeks_after_enter]:n[ji.weeks_before_enter],m=o.current,h=e.current.cloneNode(!0);if(h instanceof HTMLElement?(Ya(h).forEach(e=>{if(!(e instanceof HTMLElement))return;let t=Xa(e);t&&e.contains(t)&&e.removeChild(t);let n=Za(e);n&&n.classList.remove(f);let r=Qa(e);r&&r.classList.remove(p)}),o.current=h):o.current=null,c.current||u||i)return;let g=m instanceof HTMLElement?Ya(m):[],_=Ya(e.current);if(_?.every(e=>e instanceof HTMLElement)&&g&&g.every(e=>e instanceof HTMLElement)){c.current=!0;let t=[];e.current.style.isolation=`isolate`;let r=$a(e.current);r&&(r.style.zIndex=`1`),_.forEach((i,a)=>{let o=g[a];if(!o)return;i.style.position=`relative`,i.style.overflow=`hidden`;let s=Za(i);s&&s.classList.add(f);let l=Qa(i);l&&l.classList.add(p);let u=()=>{c.current=!1,e.current&&(e.current.style.isolation=``),r&&(r.style.zIndex=``),s&&s.classList.remove(f),l&&l.classList.remove(p),i.style.position=``,i.style.overflow=``,i.contains(o)&&i.removeChild(o)};t.push(u),o.style.pointerEvents=`none`,o.style.position=`absolute`,o.style.overflow=`hidden`,o.setAttribute(`aria-hidden`,`true`);let m=eo(o);m&&(m.style.opacity=`0`);let h=Za(o);h&&(h.classList.add(d?n[ji.caption_before_exit]:n[ji.caption_after_exit]),h.addEventListener(`animationend`,u));let _=Qa(o);_&&_.classList.add(d?n[ji.weeks_before_exit]:n[ji.weeks_after_exit]),i.insertBefore(o,i.firstChild)})}})}function no(e,t,n,r){let i=e[0],a=e[e.length-1],{ISOWeek:o,fixedWeeks:s,broadcastCalendar:c}=n??{},{addDays:l,differenceInCalendarDays:u,differenceInCalendarMonths:d,endOfBroadcastWeek:f,endOfISOWeek:p,endOfMonth:m,endOfWeek:h,isAfter:g,startOfBroadcastWeek:_,startOfISOWeek:v,startOfWeek:y}=r,b=c?_(i,r):o?v(i):y(i),x=c?f(a):o?p(m(a)):h(m(a)),S=t&&(c?f(t):o?p(t):h(t)),C=u(S&&g(x,S)?S:x,b),w=d(a,i)+1,T=[];for(let e=0;e<=C;e++){let t=l(b,e);T.push(t)}let E=(c?35:42)*w;if(s&&T.length{let r=n.weeks.reduce((e,t)=>e.concat(t.days.slice()),t.slice());return e.concat(r.slice())},t.slice())}function io(e,t,n,r){let{numberOfMonths:i=1}=n,a=[];for(let n=0;nt)break;a.push(i)}return a}function ao(e,t,n,r){let{month:i,defaultMonth:a,today:o=r.today(),numberOfMonths:s=1}=e,c=i||a||o,{differenceInCalendarMonths:l,addMonths:u,startOfMonth:d}=r;return n&&l(n,c){let h=n.broadcastCalendar?d(m,r):n.ISOWeek?f(m):p(m),g=n.broadcastCalendar?a(m):n.ISOWeek?o(s(m)):c(s(m)),_=t.filter(e=>e>=h&&e<=g),v=n.broadcastCalendar?35:42;if(n.fixedWeeks&&_.length{let t=v-_.length;return e>g&&e<=i(g,t)});_.push(...e)}let y=new Ci(m,_.reduce((e,t)=>{let i=n.ISOWeek?l(t):u(t),a=e.find(e=>e.weekNumber===i),o=new Si(t,m,r);return a?a.days.push(o):e.push(new wi(i,[o])),e},[]));return e.push(y),e},[]);return n.reverseMonths?m.reverse():m}function so(e,t){let{startMonth:n,endMonth:r}=e,{startOfYear:i,startOfDay:a,startOfMonth:o,endOfMonth:s,addYears:c,endOfYear:l,newDate:u,today:d}=t,{fromYear:f,toYear:p,fromMonth:m,toMonth:h}=e;!n&&m&&(n=m),!n&&f&&(n=t.newDate(f,0,1)),!r&&h&&(r=h),!r&&p&&(r=u(p,11,31));let g=e.captionLayout===`dropdown`||e.captionLayout===`dropdown-years`;return n?n=o(n):f?n=u(f,0,1):!n&&g&&(n=i(c(e.today??d(),-100))),r?r=s(r):p?r=u(p,11,31):!r&&g&&(r=l(e.today??d())),[n&&a(n),r&&a(r)]}function co(e,t,n,r){if(n.disableNavigation)return;let{pagedNavigation:i,numberOfMonths:a=1}=n,{startOfMonth:o,addMonths:s,differenceInCalendarMonths:c}=r,l=i?a:1,u=o(e);if(!t||!(c(t,e)e.concat(t.weeks.slice()),[].slice())}function fo(e,t){let[n,r]=(0,I.useState)(e);return[t===void 0?n:t,r]}function po(e,t){let[n,r]=so(e,t),{startOfMonth:i,endOfMonth:a}=t,o=ao(e,n,r,t),[s,c]=fo(o,e.month?o:void 0);(0,I.useEffect)(()=>{c(ao(e,n,r,t))},[e.timeZone]);let{months:l,weeks:u,days:d,previousMonth:f,nextMonth:p}=(0,I.useMemo)(()=>{let i=io(s,r,{numberOfMonths:e.numberOfMonths},t),o=oo(i,no(i,e.endMonth?a(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t);return{months:o,weeks:uo(o),days:ro(o),previousMonth:lo(s,n,e,t),nextMonth:co(s,r,e,t)}},[t,s.getTime(),r?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:m,onMonthChange:h}=e,g=e=>u.some(t=>t.days.some(t=>t.isEqualTo(e))),_=e=>{if(m)return;let t=i(e);n&&ti(r)&&(t=i(r)),c(t),h?.(t)};return{months:l,weeks:u,days:d,navStart:n,navEnd:r,previousMonth:f,nextMonth:p,goToMonth:_,goToDay:e=>{g(e)||_(e.date)}}}var mo;(function(e){e[e.Today=0]=`Today`,e[e.Selected=1]=`Selected`,e[e.LastFocused=2]=`LastFocused`,e[e.FocusedModifier=3]=`FocusedModifier`})(mo||={});function ho(e){return!e[R.disabled]&&!e[R.hidden]&&!e[R.outside]}function go(e,t,n,r){let i,a=-1;for(let o of e){let e=t(o);ho(e)&&(e[R.focused]&&aho(t(e))),i}function _o(e,t,n,r,i,a,o){let{ISOWeek:s,broadcastCalendar:c}=a,{addDays:l,addMonths:u,addWeeks:d,addYears:f,endOfBroadcastWeek:p,endOfISOWeek:m,endOfWeek:h,max:g,min:_,startOfBroadcastWeek:v,startOfISOWeek:y,startOfWeek:b}=o,x={day:l,week:d,month:u,year:f,startOfWeek:e=>c?v(e,o):s?y(e):b(e),endOfWeek:e=>c?p(e):s?m(e):h(e)}[e](n,t===`after`?1:-1);return t===`before`&&r?x=g([r,x]):t===`after`&&i&&(x=_([i,x])),x}function vo(e,t,n,r,i,a,o,s=0){if(s>365)return;let c=_o(e,t,n.date,r,i,a,o),l=!!(a.disabled&&la(c,a.disabled,o)),u=!!(a.hidden&&la(c,a.hidden,o)),d=new Si(c,c,o);return!l&&!u?d:vo(e,t,d,r,i,a,o,s+1)}function yo(e,t,n,r,i){let{autoFocus:a}=e,[o,s]=(0,I.useState)(),c=go(t.days,n,r||(()=>!1),o),[l,u]=(0,I.useState)(a?c:void 0);return{isFocusTarget:e=>!!c?.isEqualTo(e),setFocused:u,focused:l,blur:()=>{s(l),u(void 0)},moveFocus:(n,r)=>{if(!l)return;let a=vo(n,r,l,t.navStart,t.navEnd,e,i);a&&(e.disableNavigation&&!t.days.some(e=>e.isEqualTo(a))||(t.goToDay(a),u(a)))}}}function bo(e,t){let{selected:n,required:r,onSelect:i}=e,[a,o]=fo(n,i?n:void 0),s=i?n:a,{isSameDay:c}=t,l=e=>s?.some(t=>c(t,e))??!1,{min:u,max:d}=e;return{selected:s,select:(e,t,n)=>{let a=[...s??[]];if(l(e)){if(s?.length===u||r&&s?.length===1)return;a=s?.filter(t=>!c(t,e))}else a=s?.length===d?[e]:[...a,e];return i||o(a),i?.(a,e,t,n),a},isSelected:l}}function xo(e,t,n=0,r=0,i=!1,a=xi){let{from:o,to:s}=t||{},{isSameDay:c,isAfter:l,isBefore:u}=a,d;if(!o&&!s)d={from:e,to:n>0?void 0:e};else if(o&&!s)d=c(o,e)?n===0?{from:o,to:e}:i?{from:o,to:void 0}:void 0:u(e,o)?{from:e,to:o}:{from:o,to:e};else if(o&&s)if(c(o,e)&&c(s,e))d=i?{from:o,to:s}:void 0;else if(c(o,e))d={from:o,to:n>0?void 0:e};else if(c(s,e))d={from:e,to:n>0?void 0:e};else if(u(e,o))d={from:e,to:s};else if(l(e,o))d={from:o,to:e};else if(l(e,s))d={from:o,to:e};else throw Error(`Invalid range`);if(d?.from&&d?.to){let t=a.differenceInCalendarDays(d.to,d.from);(r>0&&t>r||n>1&&ttypeof e!=`function`).some(t=>typeof t==`boolean`?t:n.isDate(t)?na(e,t,!1,n):ca(t,n)?t.some(t=>na(e,t,!1,n)):ia(t)?t.from&&t.to?Co(e,{from:t.from,to:t.to},n):!1:sa(t)?So(e,t.dayOfWeek,n):ra(t)?n.isAfter(t.before,t.after)?Co(e,{from:n.addDays(t.after,1),to:n.addDays(t.before,-1)},n):la(e.from,t,n)||la(e.to,t,n):aa(t)||oa(t)?la(e.from,t,n)||la(e.to,t,n):!1))return!0;let i=r.filter(e=>typeof e==`function`);if(i.length){let t=e.from,r=n.differenceInCalendarDays(e.to,e.from);for(let e=0;e<=r;e++){if(i.some(e=>e(t)))return!0;t=n.addDays(t,1)}}return!1}function To(e,t){let{disabled:n,excludeDisabled:r,resetOnSelect:i,selected:a,required:o,onSelect:s}=e,[c,l]=fo(a,s?a:void 0),u=s?a:c;return{selected:u,select:(a,c,d)=>{let{min:f,max:p}=e,m;if(a){let e=u?.from,n=u?.to,r=!!e&&!!n,s=!!e&&!!n&&t.isSameDay(e,n)&&t.isSameDay(a,e);m=i&&(r||!u?.from)?!o&&s?void 0:{from:a,to:void 0}:xo(a,u,f,p,o,t)}return r&&n&&m?.from&&m.to&&wo({from:m.from,to:m.to},n,t)&&(m.from=a,m.to=void 0),s||l(m),s?.(m,a,c,d),m},isSelected:e=>u&&na(u,e,!1,t)}}function Eo(e,t){let{selected:n,required:r,onSelect:i}=e,[a,o]=fo(n,i?n:void 0),s=i?n:a,{isSameDay:c}=t;return{selected:s,select:(e,t,n)=>{let a=e;return!r&&s&&s&&c(e,s)&&(a=void 0),i||o(a),i?.(a,e,t,n),a},isSelected:e=>s?c(s,e):!1}}function Do(e,t){let n=Eo(e,t),r=bo(e,t),i=To(e,t);switch(e.mode){case`single`:return n;case`multiple`:return r;case`range`:return i;default:return}}function Oo(e,t){return e instanceof pi&&e.timeZone===t?e:new pi(e,t)}function ko(e,t,n){if(!n)return Oo(e,t);let r=Oo(e,t),i=new pi(r.getFullYear(),r.getMonth(),r.getDate(),12,0,0,t);return new Date(i.getTime())}function Ao(e,t,n){return typeof e==`boolean`||typeof e==`function`?e:e instanceof Date?ko(e,t,n):Array.isArray(e)?e.map(e=>e instanceof Date?ko(e,t,n):e):ia(e)?{...e,from:e.from?Oo(e.from,t):e.from,to:e.to?Oo(e.to,t):e.to}:ra(e)?{before:ko(e.before,t,n),after:ko(e.after,t,n)}:aa(e)?{after:ko(e.after,t,n)}:oa(e)?{before:ko(e.before,t,n)}:e}function jo(e,t,n){return e&&(Array.isArray(e)?e.map(e=>Ao(e,t,n)):Ao(e,t,n))}function Mo(e){let t=e,n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&=Oo(t.today,n),t.month&&=Oo(t.month,n),t.defaultMonth&&=Oo(t.defaultMonth,n),t.startMonth&&=Oo(t.startMonth,n),t.endMonth&&=Oo(t.endMonth,n),t.mode===`single`&&t.selected?t.selected=Oo(t.selected,n):t.mode===`multiple`&&t.selected?t.selected=t.selected?.map(e=>Oo(e,n)):t.mode===`range`&&t.selected&&(t.selected={from:t.selected.from?Oo(t.selected.from,n):t.selected.from,to:t.selected.to?Oo(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=jo(t.disabled,n)),t.hidden!==void 0&&(t.hidden=jo(t.hidden,n)),t.modifiers)){let e={};Object.keys(t.modifiers).forEach(r=>{e[r]=jo(t.modifiers?.[r],n)}),t.modifiers=e}let{components:r,formatters:i,labels:a,dateLib:o,locale:s,classNames:c}=(0,I.useMemo)(()=>{let e={...yi,...t.locale},n=t.broadcastCalendar?1:t.weekStartsOn,r=t.noonSafe&&t.timeZone?qa(t.timeZone,{weekStartsOn:n,locale:e}):void 0,i=t.dateLib&&r?{...r,...t.dateLib}:t.dateLib??r,a=new bi({locale:e,weekStartsOn:n,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},i);return{dateLib:a,components:fa(t.components),formatters:Ta(t.formatters),labels:Ha(t.labels,a.options),locale:e,classNames:{...ma(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:o.today()});let{captionLayout:l,mode:u,navLayout:d,numberOfMonths:f=1,onDayBlur:p,onDayClick:m,onDayFocus:h,onDayKeyDown:g,onDayMouseEnter:_,onDayMouseLeave:v,onNextClick:y,onPrevClick:b,showWeekNumber:x,styles:S}=t,{formatCaption:C,formatDay:w,formatMonthDropdown:T,formatWeekNumber:E,formatWeekNumberHeader:D,formatWeekdayName:O,formatYearDropdown:k}=i,ee=po(t,o),{days:te,months:A,navStart:j,navEnd:ne,previousMonth:re,nextMonth:ie,goToMonth:ae}=ee,oe=ua(te,t,j,ne,o),{isSelected:se,select:ce,selected:le}=Do(t,o)??{},{blur:ue,focused:de,isFocusTarget:fe,moveFocus:pe,setFocused:me}=yo(t,ee,oe,se??(()=>!1),o),{labelDayButton:he,labelGridcell:ge,labelGrid:_e,labelMonthDropdown:ve,labelNav:ye,labelPrevious:be,labelNext:xe,labelWeekday:Se,labelWeekNumber:Ce,labelWeekNumberHeader:we,labelYearDropdown:Te}=a,Ee=(0,I.useMemo)(()=>Ga(o,t.ISOWeek,t.broadcastCalendar,t.today),[o,t.ISOWeek,t.broadcastCalendar,t.today]),De=u!==void 0||m!==void 0,Oe=(0,I.useCallback)(()=>{re&&(ae(re),b?.(re))},[re,ae,b]),ke=(0,I.useCallback)(()=>{ie&&(ae(ie),y?.(ie))},[ae,ie,y]),Ae=(0,I.useCallback)((e,t)=>n=>{n.preventDefault(),n.stopPropagation(),me(e),!t.disabled&&(ce?.(e.date,t,n),m?.(e.date,t,n))},[ce,m,me]),je=(0,I.useCallback)((e,t)=>n=>{me(e),h?.(e.date,t,n)},[h,me]),Me=(0,I.useCallback)((e,t)=>n=>{ue(),p?.(e.date,t,n)},[ue,p]),Ne=(0,I.useCallback)((e,n)=>r=>{let i={ArrowLeft:[r.shiftKey?`month`:`day`,t.dir===`rtl`?`after`:`before`],ArrowRight:[r.shiftKey?`month`:`day`,t.dir===`rtl`?`before`:`after`],ArrowDown:[r.shiftKey?`year`:`week`,`after`],ArrowUp:[r.shiftKey?`year`:`week`,`before`],PageUp:[r.shiftKey?`year`:`month`,`before`],PageDown:[r.shiftKey?`year`:`month`,`after`],Home:[`startOfWeek`,`before`],End:[`endOfWeek`,`after`]};if(i[r.key]){r.preventDefault(),r.stopPropagation();let[e,t]=i[r.key];pe(e,t)}g?.(e.date,n,r)},[pe,g,t.dir]),Pe=(0,I.useCallback)((e,t)=>n=>{_?.(e.date,t,n)},[_]),Fe=(0,I.useCallback)((e,t)=>n=>{v?.(e.date,t,n)},[v]),Ie=(0,I.useCallback)(e=>t=>{let n=Number(t.target.value);ae(o.setMonth(o.startOfMonth(e),n))},[o,ae]),Le=(0,I.useCallback)(e=>t=>{let n=Number(t.target.value);ae(o.setYear(o.startOfMonth(e),n))},[o,ae]),{className:Re,style:ze}=(0,I.useMemo)(()=>({className:[c[L.Root],t.className].filter(Boolean).join(` `),style:{...S?.[L.Root],...t.style}}),[c,t.className,t.style,S]),Be=pa(t),Ve=(0,I.useRef)(null);to(Ve,!!t.animate,{classNames:c,months:A,focused:de,dateLib:o});let He={dayPickerProps:t,selected:le,select:ce,isSelected:se,months:A,nextMonth:ie,previousMonth:re,goToMonth:ae,getModifiers:oe,components:r,classNames:c,styles:S,labels:a,formatters:i};return I.createElement(zi.Provider,{value:He},I.createElement(r.Root,{rootRef:t.animate?Ve:void 0,className:Re,style:ze,dir:t.dir,id:t.id,lang:t.lang??s.code,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t[`aria-label`],"aria-labelledby":t[`aria-labelledby`],...Be},I.createElement(r.Months,{className:c[L.Months],style:S?.[L.Months]},!t.hideNavigation&&!d&&I.createElement(r.Nav,{"data-animated-nav":t.animate?`true`:void 0,className:c[L.Nav],style:S?.[L.Nav],"aria-label":ye(),onPreviousClick:Oe,onNextClick:ke,previousMonth:re,nextMonth:ie}),A.map((e,n)=>I.createElement(r.Month,{"data-animated-month":t.animate?`true`:void 0,className:c[L.Month],style:S?.[L.Month],key:n,displayIndex:n,calendarMonth:e},d===`around`&&!t.hideNavigation&&n===0&&I.createElement(r.PreviousMonthButton,{type:`button`,className:c[L.PreviousMonthButton],tabIndex:re?void 0:-1,"aria-disabled":re?void 0:!0,"aria-label":be(re),onClick:Oe,"data-animated-button":t.animate?`true`:void 0},I.createElement(r.Chevron,{disabled:re?void 0:!0,className:c[L.Chevron],orientation:t.dir===`rtl`?`right`:`left`})),I.createElement(r.MonthCaption,{"data-animated-caption":t.animate?`true`:void 0,className:c[L.MonthCaption],style:S?.[L.MonthCaption],calendarMonth:e,displayIndex:n},l?.startsWith(`dropdown`)?I.createElement(r.DropdownNav,{className:c[L.Dropdowns],style:S?.[L.Dropdowns]},(()=>{let n=l===`dropdown`||l===`dropdown-months`?I.createElement(r.MonthsDropdown,{key:`month`,className:c[L.MonthsDropdown],"aria-label":ve(),classNames:c,components:r,disabled:!!t.disableNavigation,onChange:Ie(e.date),options:Ua(e.date,j,ne,i,o),style:S?.[L.Dropdown],value:o.getMonth(e.date)}):I.createElement(`span`,{key:`month`},T(e.date,o)),a=l===`dropdown`||l===`dropdown-years`?I.createElement(r.YearsDropdown,{key:`year`,className:c[L.YearsDropdown],"aria-label":Te(o.options),classNames:c,components:r,disabled:!!t.disableNavigation,onChange:Le(e.date),options:Ka(j,ne,i,o,!!t.reverseYears),style:S?.[L.Dropdown],value:o.getYear(e.date)}):I.createElement(`span`,{key:`year`},k(e.date,o));return o.getMonthYearOrder()===`year-first`?[a,n]:[n,a]})(),I.createElement(`span`,{role:`status`,"aria-live":`polite`,style:{border:0,clip:`rect(0 0 0 0)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`,wordWrap:`normal`}},C(e.date,o.options,o))):I.createElement(r.CaptionLabel,{className:c[L.CaptionLabel],role:`status`,"aria-live":`polite`},C(e.date,o.options,o))),d===`around`&&!t.hideNavigation&&n===f-1&&I.createElement(r.NextMonthButton,{type:`button`,className:c[L.NextMonthButton],tabIndex:ie?void 0:-1,"aria-disabled":ie?void 0:!0,"aria-label":xe(ie),onClick:ke,"data-animated-button":t.animate?`true`:void 0},I.createElement(r.Chevron,{disabled:ie?void 0:!0,className:c[L.Chevron],orientation:t.dir===`rtl`?`left`:`right`})),n===f-1&&d===`after`&&!t.hideNavigation&&I.createElement(r.Nav,{"data-animated-nav":t.animate?`true`:void 0,className:c[L.Nav],style:S?.[L.Nav],"aria-label":ye(),onPreviousClick:Oe,onNextClick:ke,previousMonth:re,nextMonth:ie}),I.createElement(r.MonthGrid,{role:`grid`,"aria-multiselectable":u===`multiple`||u===`range`,"aria-label":_e(e.date,o.options,o)||void 0,className:c[L.MonthGrid],style:S?.[L.MonthGrid]},!t.hideWeekdays&&I.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?`true`:void 0,className:c[L.Weekdays],style:S?.[L.Weekdays]},x&&I.createElement(r.WeekNumberHeader,{"aria-label":we(o.options),className:c[L.WeekNumberHeader],style:S?.[L.WeekNumberHeader],scope:`col`},D()),Ee.map(e=>I.createElement(r.Weekday,{"aria-label":Se(e,o.options,o),className:c[L.Weekday],key:String(e),style:S?.[L.Weekday],scope:`col`},O(e,o.options,o)))),I.createElement(r.Weeks,{"data-animated-weeks":t.animate?`true`:void 0,className:c[L.Weeks],style:S?.[L.Weeks]},e.weeks.map(e=>I.createElement(r.Week,{className:c[L.Week],key:e.weekNumber,style:S?.[L.Week],week:e},x&&I.createElement(r.WeekNumber,{week:e,style:S?.[L.WeekNumber],"aria-label":Ce(e.weekNumber,{locale:s}),className:c[L.WeekNumber],scope:`row`,role:`rowheader`},E(e.weekNumber,o)),e.days.map(e=>{let{date:n}=e,i=oe(e);if(i[R.focused]=!i.hidden&&!!de?.isEqualTo(e),i[Ai.selected]=se?.(n)||i.selected,ia(le)){let{from:e,to:t}=le;i[Ai.range_start]=!!(e&&t&&o.isSameDay(n,e)),i[Ai.range_end]=!!(e&&t&&o.isSameDay(n,t)),i[Ai.range_middle]=na(le,n,!0,o)}let a=Wa(i,S,t.modifiersStyles),s=da(i,c,t.modifiersClassNames),l=!De&&!i.hidden?ge(n,i,o.options,o):void 0;return I.createElement(r.Day,{key:`${e.isoDate}_${e.displayMonthId}`,day:e,modifiers:i,className:s.join(` `),style:a,role:`gridcell`,"aria-selected":i.selected||void 0,"aria-label":l,"data-day":e.isoDate,"data-month":e.outside?e.dateMonthId:void 0,"data-selected":i.selected||void 0,"data-disabled":i.disabled||void 0,"data-hidden":i.hidden||void 0,"data-outside":e.outside||void 0,"data-focused":i.focused||void 0,"data-today":i.today||void 0},!i.hidden&&De?I.createElement(r.DayButton,{className:c[L.DayButton],style:S?.[L.DayButton],type:`button`,day:e,modifiers:i,disabled:!i.focused&&i.disabled||void 0,"aria-disabled":i.focused&&i.disabled||void 0,tabIndex:fe(e)?0:-1,"aria-label":he(n,i,o.options,o),onClick:Ae(e,i),onBlur:Me(e,i),onFocus:je(e,i),onKeyDown:Ne(e,i),onMouseEnter:Pe(e,i),onMouseLeave:Fe(e,i)},w(n,o.options,o)):!i.hidden&&w(e.date,o.options,o))})))))))),t.footer&&I.createElement(r.Footer,{className:c[L.Footer],style:S?.[L.Footer],role:`status`,"aria-live":`polite`},t.footer)))}var z=qe();function No({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:r=`label`,buttonVariant:i=`ghost`,formatters:a,components:o,...s}){let c=ma();return(0,z.jsx)(Mo,{captionLayout:r,className:M(`group/calendar bg-background p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent`,String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),classNames:{root:M(`w-fit`,c.root),months:M(`relative flex flex-col gap-4 md:flex-row`,c.months),month:M(`flex w-full flex-col gap-4`,c.month),nav:M(`absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1`,c.nav),button_previous:M(ft({variant:i}),`size-(--cell-size) select-none p-0 aria-disabled:opacity-50`,c.button_previous),button_next:M(ft({variant:i}),`size-(--cell-size) select-none p-0 aria-disabled:opacity-50`,c.button_next),month_caption:M(`flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)`,c.month_caption),dropdowns:M(`flex h-(--cell-size) w-full items-center justify-center gap-1.5 font-medium text-sm`,c.dropdowns),dropdown_root:M(`relative rounded-md border border-input shadow-xs has-focus:border-ring has-focus:ring-[3px] has-focus:ring-ring/50`,c.dropdown_root),dropdown:M(`absolute inset-0 bg-popover opacity-0`,c.dropdown),caption_label:M(`select-none font-medium`,r===`label`?`text-sm`:`flex h-8 items-center gap-1 rounded-md pr-1 pl-2 text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground`,c.caption_label),table:`w-full border-collapse`,weekdays:M(`flex`,c.weekdays),weekday:M(`flex-1 select-none rounded-md font-normal text-[0.8rem] text-muted-foreground`,c.weekday),week:M(`mt-2 flex w-full`,c.week),week_number_header:M(`w-(--cell-size) select-none`,c.week_number_header),week_number:M(`select-none text-[0.8rem] text-muted-foreground`,c.week_number),day:M(`group/day relative aspect-square h-full w-full select-none p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-md`,s.showWeekNumber?`[&:nth-child(2)[data-selected=true]_button]:rounded-l-md`:`[&:first-child[data-selected=true]_button]:rounded-l-md`,c.day),range_start:M(`rounded-l-md bg-accent`,c.range_start),range_middle:M(`rounded-none`,c.range_middle),range_end:M(`rounded-r-md bg-accent`,c.range_end),today:M(`rounded-md bg-accent text-accent-foreground data-[selected=true]:rounded-none`,c.today),outside:M(`text-muted-foreground aria-selected:text-muted-foreground`,c.outside),disabled:M(`text-muted-foreground opacity-50`,c.disabled),hidden:M(`invisible`,c.hidden),...t},components:{Root:({className:e,rootRef:t,...n})=>(0,z.jsx)(`div`,{className:M(e),"data-slot":`calendar`,ref:t,...n}),Chevron:({className:e,orientation:t,...n})=>t===`left`?(0,z.jsx)(Dt,{className:M(`size-4`,e),...n}):t===`right`?(0,z.jsx)(At,{className:M(`size-4`,e),...n}):(0,z.jsx)(kt,{className:M(`size-4`,e),...n}),DayButton:Po,WeekNumber:({children:e,...t})=>(0,z.jsx)(`td`,{...t,children:(0,z.jsx)(`div`,{className:`flex size-(--cell-size) items-center justify-center text-center`,children:e})}),...o},formatters:{formatMonthDropdown:e=>e.toLocaleString(`default`,{month:`short`}),...a},showOutsideDays:n,...s})}function Po({className:e,day:t,modifiers:n,...r}){let i=ma(),a=I.useRef(null);return I.useEffect(()=>{n.focused&&a.current?.focus()},[n.focused]),(0,z.jsx)(pt,{className:M(`flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-start=true]:rounded-l-md data-[range-end=true]:bg-primary data-[range-middle=true]:bg-accent data-[range-start=true]:bg-primary data-[selected-single=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:text-accent-foreground data-[range-start=true]:text-primary-foreground data-[selected-single=true]:text-primary-foreground group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground [&>span]:text-xs [&>span]:opacity-70`,i.day,e),"data-day":t.date.toLocaleDateString(),"data-range-end":n.range_end,"data-range-middle":n.range_middle,"data-range-start":n.range_start,"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,ref:a,size:`icon`,variant:`ghost`,...r})}function Fo({selected:e,onSelect:t}){let n=D()===`zh-TW`?ti:dr,r=new Date,i=[{label:Pe(),range:{from:r,to:r}},{label:Je(),range:{from:qr(r,1),to:qr(r,1)}},{label:_e(),range:{from:qr(r,6),to:r}},{label:s(),range:{from:qr(r,29),to:r}},{label:T(),range:{from:qn(r),to:r}},{label:ie(),range:{from:qn(Xr(r,1)),to:Wn(Xr(r,1))}}],a;return e?.from&&e?.to?a=`${Rr(e.from,`PP`,{locale:n})} – ${Rr(e.to,`PP`,{locale:n})}`:e?.from&&(a=Rr(e.from,`PP`,{locale:n})),(0,z.jsxs)(gt,{children:[(0,z.jsx)(ht,{asChild:!0,children:(0,z.jsxs)(pt,{className:`w-auto justify-start text-start font-normal data-[empty=true]:text-muted-foreground`,"data-empty":!a,size:`sm`,variant:`outline`,children:[a??(0,z.jsx)(`span`,{children:He()}),(0,z.jsx)(sn,{className:`ms-2 h-4 w-4 opacity-50`})]})}),(0,z.jsxs)(mt,{align:`end`,className:`flex w-auto gap-0 p-0`,children:[(0,z.jsx)(`div`,{className:`flex flex-col gap-1 border-r p-3`,children:i.map(e=>(0,z.jsx)(pt,{className:`justify-start`,onClick:()=>t(e.range),size:`sm`,variant:`ghost`,children:e.label},e.label))}),(0,z.jsx)(No,{captionLayout:`dropdown`,disabled:e=>e>new Date||e{var{children:n,width:r,height:i,viewBox:a,className:o,style:s,title:c,desc:l}=e,u=qo(e,Go),d=a||{width:r,height:i,x:0,y:0},f=N(`recharts-surface`,o);return I.createElement(`svg`,Ko({},Uo(u),{className:f,width:r,height:i,style:s,viewBox:`${d.x} ${d.y} ${d.width} ${d.height}`,ref:t}),I.createElement(`title`,null,c),I.createElement(`desc`,null,l),n)}),Xo=[`children`,`className`];function Zo(){return Zo=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{children:n,className:r}=e,i=Qo(e,Xo),a=N(`recharts-layer`,r);return I.createElement(`g`,Zo({className:a},Uo(i),{ref:t}),n)}),ts=(0,I.createContext)(null),ns=()=>(0,I.useContext)(ts);function B(e){return function(){return e}}var rs=Math.cos,is=Math.sin,as=Math.sqrt,os=Math.PI;os/2;var ss=2*os,cs=Math.PI,ls=2*cs,us=1e-6,ds=ls-us;function fs(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw Error(`invalid digits: ${e}`);if(t>15)return fs;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;tus)if(!(Math.abs(u*s-c*l)>us)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((cs-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>us&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>us||Math.abs(this._y1-l)>us)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%ls+ls),d>ds?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>us&&this._append`A${n},${n},0,${+(d>=cs)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function hs(){return new ms}hs.prototype=ms.prototype;function gs(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new ms(t)}Array.prototype.slice;function _s(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function vs(e){this._context=e}vs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function ys(e){return new vs(e)}function bs(e){return e[0]}function xs(e){return e[1]}function Ss(e,t){var n=B(!0),r=null,i=ys,a=null,o=gs(s);e=typeof e==`function`?e:e===void 0?bs:B(e),t=typeof t==`function`?t:t===void 0?xs:B(t);function s(s){var c,l=(s=_s(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c=d;--f)s.point(_[f],v[f]);s.lineEnd(),s.areaEnd()}h&&(_[u]=+e(m,u,l),v[u]=+t(m,u,l),s.point(r?+r(m,u,l):_[u],n?+n(m,u,l):v[u]))}if(g)return s=null,g+``||null}function u(){return Ss().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:B(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:B(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:B(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:B(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:B(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:B(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i=typeof e==`function`?e:B(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,a!=null&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(e==null?a=s=null:s=o(a=e),l):a},l}var ws=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function Ts(e){return new ws(e,!0)}function Es(e){return new ws(e,!1)}var Ds={draw(e,t){let n=as(t/os);e.moveTo(n,0),e.arc(0,0,n,0,ss)}},Os={draw(e,t){let n=as(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},ks=as(1/3),As=ks*2,js={draw(e,t){let n=as(t/As),r=n*ks;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Ms={draw(e,t){let n=as(t),r=-n/2;e.rect(r,r,n,n)}},Ns=.8908130915292852,Ps=is(os/10)/is(7*os/10),Fs=is(ss/10)*Ps,Is=-rs(ss/10)*Ps,Ls={draw(e,t){let n=as(t*Ns),r=Fs*n,i=Is*n;e.moveTo(0,-n),e.lineTo(r,i);for(let t=1;t<5;++t){let a=ss*t/5,o=rs(a),s=is(a);e.lineTo(s*n,-o*n),e.lineTo(o*r-s*i,s*r+o*i)}e.closePath()}},Rs=as(3),zs={draw(e,t){let n=-as(t/(Rs*3));e.moveTo(0,n*2),e.lineTo(-Rs*n,-n),e.lineTo(Rs*n,-n),e.closePath()}},Bs=-.5,Vs=as(3)/2,Hs=1/as(12),Us=(Hs/2+1)*3,Ws={draw(e,t){let n=as(t/Us),r=n/2,i=n*Hs,a=r,o=n*Hs+n,s=-a,c=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,c),e.lineTo(Bs*r-Vs*i,Vs*r+Bs*i),e.lineTo(Bs*a-Vs*o,Vs*a+Bs*o),e.lineTo(Bs*s-Vs*c,Vs*s+Bs*c),e.lineTo(Bs*r+Vs*i,Bs*i-Vs*r),e.lineTo(Bs*a+Vs*o,Bs*o-Vs*a),e.lineTo(Bs*s+Vs*c,Bs*c-Vs*s),e.closePath()}};function Gs(e,t){let n=null,r=gs(i);e=typeof e==`function`?e:B(e||Ds),t=typeof t==`function`?t:B(t===void 0?64:+t);function i(){let i;if(n||=i=r(),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+``||null}return i.type=function(t){return arguments.length?(e=typeof t==`function`?t:B(t),i):e},i.size=function(e){return arguments.length?(t=typeof e==`function`?e:B(+e),i):t},i.context=function(e){return arguments.length?(n=e??null,i):n},i}function Ks(){}function qs(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Js(e){this._context=e}Js.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:qs(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:qs(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ys(e){return new Js(e)}function Xs(e){this._context=e}Xs.prototype={areaStart:Ks,areaEnd:Ks,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:qs(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Zs(e){return new Xs(e)}function Qs(e){this._context=e}Qs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:qs(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $s(e){return new Qs(e)}function ec(e){this._context=e}ec.prototype={areaStart:Ks,areaEnd:Ks,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function tc(e){return new ec(e)}function nc(e){return e<0?-1:1}function rc(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(nc(a)+nc(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function ic(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function ac(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function oc(e){this._context=e}oc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ac(this,this._t0,ic(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,ac(this,ic(this,n=rc(this,e,t)),n);break;default:ac(this,this._t0,n=rc(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function sc(e){this._context=new cc(e)}(sc.prototype=Object.create(oc.prototype)).point=function(e,t){oc.prototype.point.call(this,t,e)};function cc(e){this._context=e}cc.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function lc(e){return new oc(e)}function uc(e){return new sc(e)}function dc(e){this._context=e}dc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=fc(e),i=fc(t),a=0,o=1;o=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t}};function hc(e){return new mc(e,.5)}function gc(e){return new mc(e,0)}function _c(e){return new mc(e,1)}function vc(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n=0;)n[t]=t;return n}function bc(e,t){return e[t]}function xc(e){let t=[];return t.key=e,t}function Sc(){var e=B([]),t=yc,n=vc,r=bc;function i(i){var a=Array.from(e.apply(this,arguments),xc),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o0){for(var n,r,i=0,a=e[0].length,o;i0){for(var n=0,r=e[t[0]],i,a=r.length;n0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e===`__proto__`}e.isUnsafeProperty=t})),Dc=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e.includes(`.`)||e.includes(`[`)||e.includes(`]`)}}e.isDeepKey=t})),Oc=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}e.toKey=t})),kc=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){if(e==null)return``;if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(t).join(`,`);let n=String(e);return n===`0`&&Object.is(Number(e),-0)?`-0`:n}e.toString=t})),Ac=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=kc(),n=Oc();function r(e){if(Array.isArray(e))return e.map(n.toKey);if(typeof e==`symbol`)return[e];e=t.toString(e);let r=[],i=e.length;if(i===0)return r;let a=0,o=``,s=``,c=!1;for(e.charCodeAt(0)===46&&(r.push(``),a++);a{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Ec(),n=Dc(),r=Oc(),i=Ac();function a(e,s,c){if(e==null)return c;switch(typeof s){case`string`:{if(t.isUnsafeProperty(s))return c;let r=e[s];return r===void 0?n.isDeepKey(s)?a(e,i.toPath(s),c):c:r}case`number`:case`symbol`:{typeof s==`number`&&(s=r.toKey(s));let t=e[s];return t===void 0?c:t}default:{if(Array.isArray(s))return o(e,s,c);if(s=Object.is(s?.valueOf(),-0)?`-0`:String(s),t.isUnsafeProperty(s))return c;let n=e[s];return n===void 0?c:n}}}function o(e,n,r){if(n.length===0)return r;let i=e;for(let e=0;e{t.exports=jc().get})),Nc=4;function Pc(e){var t=10**(arguments.length>1&&arguments[1]!==void 0?arguments[1]:Nc),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function Fc(e){var t=[...arguments].slice(1);return e.reduce((e,n,r)=>{var i=t[r-1];return typeof i==`string`?e+i+n:i===void 0?e+n:e+Pc(i)+n},``)}var Ic=t(Mc()),Lc=e=>e===0?0:e>0?1:-1,Rc=e=>typeof e==`number`&&e!=+e,zc=e=>typeof e==`string`&&e.indexOf(`%`)===e.length-1,V=e=>(typeof e==`number`||e instanceof Number)&&!Rc(e),Bc=e=>V(e)||typeof e==`string`,Vc=0,Hc=e=>{var t=++Vc;return`${e||``}${t}`},Uc=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!V(e)&&typeof e!=`string`)return n;var i;if(zc(e)){if(t==null)return n;var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return Rc(i)&&(i=n),r&&t!=null&&i>t&&(i=t),i},Wc=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;re&&(typeof t==`function`?t(e):(0,Ic.default)(e,t))===n)}var U=e=>e==null,Kc=e=>U(e)?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`;function qc(e){return e!=null}function Jc(){}var Yc=[`type`,`size`,`sizeType`];function Xc(){return Xc=Object.assign?Object.assign.bind():function(e){for(var t=1;til[`symbol${Kc(e)}`]||Ds,sl=(e,t,n)=>{if(t===`area`)return e;switch(n){case`cross`:return 5*e*e/9;case`diamond`:return .5*e*e/Math.sqrt(3);case`square`:return e*e;case`star`:var r=18*al;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2);case`triangle`:return Math.sqrt(3)*e*e/4;case`wye`:return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},cl=(e,t)=>{il[`symbol${Kc(e)}`]=t},ll=e=>{var{type:t=`circle`,size:n=64,sizeType:r=`area`}=e,i=Qc(Qc({},nl(e,Yc)),{},{type:t,size:n,sizeType:r}),a=`circle`;typeof t==`string`&&(a=t);var o=()=>{var e=ol(a),t=Gs().type(e).size(sl(n,r,a))();if(t!==null)return t},{className:s,cx:c,cy:l}=i,u=Uo(i);return V(c)&&V(l)&&V(n)?I.createElement(`path`,Xc({},u,{className:N(`recharts-symbols`,s),transform:`translate(${c}, ${l})`,d:o()})):null};ll.registerSymbol=cl;var ul=e=>`radius`in e&&`startAngle`in e&&`endAngle`in e,dl=(e,t)=>{if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if((0,I.isValidElement)(e)&&(n=e.props),typeof n!=`object`&&typeof n!=`function`)return null;var r={};return Object.keys(n).forEach(e=>{Lo(e)&&typeof n[e]==`function`&&(r[e]=t||(t=>n[e](n,t)))}),r},fl=(e,t,n)=>r=>(e(t,n,r),null),pl=(e,t,n)=>{if(e===null||typeof e!=`object`&&typeof e!=`function`)return null;var r=null;return Object.keys(e).forEach(i=>{var a=e[i];Lo(i)&&typeof a==`function`&&(r||={},r[i]=fl(a,t,n))}),r};function ml(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hl(e){for(var t=1;t(e[t]===void 0&&r[t]!==void 0&&(e[t]=r[t]),e),n)}function bl(){return bl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var d=t.formatter||i,f=N({"recharts-legend-item":!0,[`legend-item-${r}`]:!0,inactive:t.inactive});if(t.type===`none`)return null;var p=typeof s==`object`?Sl({},s):{};p.color=t.inactive?a:p.color||t.color;var m=d?d(t.value,t,r):t.value;return I.createElement(`li`,bl({className:f,style:l,key:`legend-item-${r}`},pl(e,t,r)),I.createElement(Yo,{width:n,height:n,viewBox:c,style:u,"aria-label":`${t.value} legend icon`},I.createElement(kl,{data:t,iconType:o,inactiveColor:a})),I.createElement(`span`,{className:`recharts-legend-item-text`,style:p},m))})}var jl=e=>{var t=yl(e,Dl),{payload:n,layout:r,align:i}=t;if(!n||!n.length)return null;var a={padding:0,margin:0,textAlign:r===`horizontal`?i:`left`};return I.createElement(`ul`,{className:`recharts-default-legend`,style:a},I.createElement(Al,bl({},t,{payload:n})))},Ml=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e,t){let n=new Map;for(let r=0;r{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}e.ary=t})),Pl=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e}e.identity=t})),Fl=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return Number.isSafeInteger(e)&&e>=0}e.isLength=t})),Il=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Fl();function n(e){return e!=null&&typeof e!=`function`&&t.isLength(e.length)}e.isArrayLike=n})),Ll=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return typeof e==`object`&&!!e}e.isObjectLike=t})),Rl=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Il(),n=Ll();function r(e){return n.isObjectLike(e)&&t.isArrayLike(e)}e.isArrayLikeObject=r})),zl=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=jc();function n(e){return function(n){return t.get(n,e)}}e.property=n})),Bl=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}e.isObject=t})),Vl=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e==null||typeof e!=`object`&&typeof e!=`function`}e.isPrimitive=t})),Hl=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}e.isEqualsSameValueZero=t})),Ul=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Bl(),n=Vl(),r=Hl();function i(e,t,n){return typeof n==`function`?a(e,t,function e(t,r,i,o,s,c){let l=n(t,r,i,o,s,c);return l===void 0?a(t,r,e,c):!!l},new Map):i(e,t,()=>void 0)}function a(e,n,i,s){if(n===e)return!0;switch(typeof n){case`object`:return o(e,n,i,s);case`function`:return Object.keys(n).length>0?a(e,{...n},i,s):r.isEqualsSameValueZero(e,n);default:return t.isObject(e)?typeof n==`string`?n===``:!0:r.isEqualsSameValueZero(e,n)}}function o(e,t,r,i){if(t==null)return!0;if(Array.isArray(t))return c(e,t,r,i);if(t instanceof Map)return s(e,t,r,i);if(t instanceof Set)return l(e,t,r,i);let a=Object.keys(t);if(e==null||n.isPrimitive(e))return a.length===0;if(a.length===0)return!0;if(i?.has(t))return i.get(t)===e;i?.set(t,e);try{for(let o=0;o{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Ul();function n(e,n){return t.isMatchWith(e,n,()=>void 0)}e.isMatch=n})),Gl=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}e.getSymbols=t})),Kl=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}e.getTag=t})),ql=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),e.argumentsTag=`[object Arguments]`,e.arrayBufferTag=`[object ArrayBuffer]`,e.arrayTag=`[object Array]`,e.bigInt64ArrayTag=`[object BigInt64Array]`,e.bigUint64ArrayTag=`[object BigUint64Array]`,e.booleanTag=`[object Boolean]`,e.dataViewTag=`[object DataView]`,e.dateTag=`[object Date]`,e.errorTag=`[object Error]`,e.float32ArrayTag=`[object Float32Array]`,e.float64ArrayTag=`[object Float64Array]`,e.functionTag=`[object Function]`,e.int16ArrayTag=`[object Int16Array]`,e.int32ArrayTag=`[object Int32Array]`,e.int8ArrayTag=`[object Int8Array]`,e.mapTag=`[object Map]`,e.numberTag=`[object Number]`,e.objectTag=`[object Object]`,e.regexpTag=`[object RegExp]`,e.setTag=`[object Set]`,e.stringTag=`[object String]`,e.symbolTag=`[object Symbol]`,e.uint16ArrayTag=`[object Uint16Array]`,e.uint32ArrayTag=`[object Uint32Array]`,e.uint8ArrayTag=`[object Uint8Array]`,e.uint8ClampedArrayTag=`[object Uint8ClampedArray]`})),Jl=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}e.isTypedArray=t})),Yl=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Gl(),n=Kl(),r=ql(),i=Vl(),a=Jl();function o(e,t){return s(e,void 0,e,new Map,t)}function s(e,t,n,r=new Map,o=void 0){let u=o?.(e,t,n,r);if(u!==void 0)return u;if(i.isPrimitive(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let i=0;i{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Yl();function n(e){return t.cloneDeepWithImpl(e,void 0,e,new Map,void 0)}e.cloneDeep=n})),Zl=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Wl(),n=Xl();function r(e){return e=n.cloneDeep(e),n=>t.isMatch(n,e)}e.matches=r})),Ql=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Yl(),n=Kl(),r=ql();function i(e,i){return t.cloneDeepWith(e,(a,o,s,c)=>{let l=i?.(a,o,s,c);if(l!==void 0)return l;if(typeof e==`object`){if(n.getTag(e)===r.objectTag&&typeof e.constructor!=`function`){let n={};return c.set(e,n),t.copyProperties(n,e,s,c),n}switch(Object.prototype.toString.call(e)){case r.numberTag:case r.stringTag:case r.booleanTag:{let n=new e.constructor(e?.valueOf());return t.copyProperties(n,e),n}case r.argumentsTag:{let n={};return t.copyProperties(n,e),n.length=e.length,n[Symbol.iterator]=e[Symbol.iterator],n}default:return}}})}e.cloneDeepWith=i})),$l=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Ql();function n(e){return t.cloneDeepWith(e)}e.cloneDeep=n})),eu=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=/^(?:0|[1-9]\d*)$/;function n(e,n=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Kl();function n(e){return typeof e==`object`&&!!e&&t.getTag(e)===`[object Arguments]`}e.isArguments=n})),nu=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Dc(),n=eu(),r=tu(),i=Ac();function a(e,a){let o;if(o=Array.isArray(a)?a:typeof a==`string`&&t.isDeepKey(a)&&e?.[a]==null?i.toPath(a):[a],o.length===0)return!1;let s=e;for(let e=0;e{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Wl(),n=Oc(),r=$l(),i=jc(),a=nu();function o(e,o){switch(typeof e){case`object`:Object.is(e?.valueOf(),-0)&&(e=`-0`);break;case`number`:e=n.toKey(e);break}return o=r.cloneDeep(o),function(n){let r=i.get(n,e);return r===void 0?a.has(n,e):o===void 0?r===void 0:t.isMatch(r,o)}}e.matchesProperty=o})),iu=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Pl(),n=zl(),r=Zl(),i=ru();function a(e){if(e==null)return t.identity;switch(typeof e){case`function`:return e;case`object`:return Array.isArray(e)&&e.length===2?i.matchesProperty(e[0],e[1]):r.matches(e);case`string`:case`symbol`:case`number`:return n.property(e)}}e.iteratee=a})),au=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Ml(),n=Nl(),r=Pl(),i=Rl(),a=iu();function o(e,o=r.identity){return i.isArrayLikeObject(e)?t.uniqBy(Array.from(e),n.ary(a.iteratee(o),1)):[]}e.uniqBy=o})),ou=t(n(((e,t)=>{t.exports=au().uniqBy}))());function su(e,t,n){return t===!0?(0,ou.default)(e,n):typeof t==`function`?(0,ou.default)(e,t):e}var cu=(0,I.createContext)(null),lu=at(),uu=e=>e,W=()=>{var e=(0,I.useContext)(cu);return e?e.store.dispatch:uu},du=()=>{},fu=()=>du,pu=(e,t)=>e===t;function G(e){var t=(0,I.useContext)(cu),n=(0,I.useMemo)(()=>t?t=>{if(t!=null)return e(t)}:du,[t,e]);return(0,lu.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:fu,t?t.store.getState:du,t?t.store.getState:du,n,pu)}function mu(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function hu(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!=`object`)throw TypeError(t)}function gu(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}var _u=e=>Array.isArray(e)?e:[e];function vu(e){let t=Array.isArray(e[0])?e[0]:e;return gu(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function yu(e,t){let n=[],{length:r}=e;for(let i=0;i{n=wu(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function Eu(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),mu(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=Tu,argsMemoizeOptions:u=[],devModeChecks:d={}}={...n,...a},f=_u(c),p=_u(u),m=vu(e),h=s(function(){return t++,o.apply(null,arguments)},...f),g=l(function(){r++;let e=yu(m,arguments);return i=h.apply(null,e),i},...p);return Object.assign(g,{resultFunc:o,memoizedResultFunc:h,dependencies:m,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var K=Eu(Tu),Du=Object.assign((e,t=K)=>{hu(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let n=Object.keys(e);return t(n.map(t=>e[t]),(...e)=>e.reduce((e,t,r)=>(e[n[r]]=t,e),{}))},{withTypes:()=>Du}),Ou=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return typeof e==`symbol`?1:e===null?2:e===void 0?3:e===e?0:4}e.compareValues=(e,n,r)=>{if(e!==n){let i=t(e),a=t(n);if(i===a&&i===0){if(en)return r===`desc`?-1:1}return r===`desc`?a-i:i-a}return 0}})),ku=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return typeof e==`symbol`||e instanceof Symbol}e.isSymbol=t})),Au=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=ku(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(e,i){return Array.isArray(e)?!1:typeof e==`number`||typeof e==`boolean`||e==null||t.isSymbol(e)?!0:typeof e==`string`&&(r.test(e)||!n.test(e))||i!=null&&Object.hasOwn(i,e)}e.isKey=i})),ju=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Ou(),n=Au(),r=Ac();function i(e,i,a,o){if(e==null)return[];a=o?void 0:a,Array.isArray(e)||(e=Object.values(e)),Array.isArray(i)||(i=i==null?[null]:[i]),i.length===0&&(i=[null]),Array.isArray(a)||(a=a==null?[]:[a]),a=a.map(e=>String(e));let s=(e,t)=>{let n=e;for(let e=0;et==null||e==null?t:typeof e==`object`&&`key`in e?Object.hasOwn(t,e.key)?t[e.key]:s(t,e.path):typeof e==`function`?e(t):Array.isArray(e)?s(t,e):typeof t==`object`?t[e]:t,l=i.map(e=>(Array.isArray(e)&&e.length===1&&(e=e[0]),e==null||typeof e==`function`||Array.isArray(e)||n.isKey(e)?e:{key:e,path:r.toPath(e)}));return e.map(e=>({original:e,criteria:l.map(t=>c(t,e))})).slice().sort((e,n)=>{for(let r=0;re.original)}e.orderBy=i})),Mu=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e,t=1){let n=[],r=Math.floor(t),i=(e,t)=>{for(let a=0;a{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=eu(),n=Il(),r=Bl(),i=Hl();function a(e,a,o){return r.isObject(o)&&(typeof a==`number`&&n.isArrayLike(o)&&t.isIndex(a)&&a{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=ju(),n=Mu(),r=Nu();function i(e,...i){let a=i.length;return a>1&&r.isIterateeCall(e,i[0],i[1])?i=[]:a>2&&r.isIterateeCall(i[0],i[1],i[2])&&(i=[i[0]]),t.orderBy(e,n.flatten(i),[`asc`])}e.sortBy=i})),Fu=t(n(((e,t)=>{t.exports=Pu().sortBy}))()),Iu=e=>e.legend.settings,Lu=e=>e.legend.size,Ru=K([e=>e.legend.payload,Iu],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?(0,Fu.default)(r,n):r});function zu(){return G(Ru)}var Bu=1;function Vu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,n]=(0,I.useState)({height:0,left:0,top:0,width:0});return[t,(0,I.useCallback)(e=>{if(e!=null){var r=e.getBoundingClientRect(),i={height:r.height,left:r.left,top:r.top,width:r.width};(Math.abs(i.height-t.height)>Bu||Math.abs(i.left-t.left)>Bu||Math.abs(i.top-t.top)>Bu||Math.abs(i.width-t.width)>Bu)&&n({height:i.height,left:i.left,top:i.top,width:i.width})}},[t.width,t.height,t.top,t.left,...e])]}function Hu(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Uu=typeof Symbol==`function`&&Symbol.observable||`@@observable`,Wu=()=>Math.random().toString(36).substring(7).split(``).join(`.`),Gu={INIT:`@@redux/INIT${Wu()}`,REPLACE:`@@redux/REPLACE${Wu()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Wu()}`};function Ku(e){if(typeof e!=`object`||!e)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function qu(e,t,n){if(typeof e!=`function`)throw Error(Hu(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(Hu(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(Hu(1));return n(qu)(e,t)}let r=e,i=t,a=new Map,o=a,s=0,c=!1;function l(){o===a&&(o=new Map,a.forEach((e,t)=>{o.set(t,e)}))}function u(){if(c)throw Error(Hu(3));return i}function d(e){if(typeof e!=`function`)throw Error(Hu(4));if(c)throw Error(Hu(5));let t=!0;l();let n=s++;return o.set(n,e),function(){if(t){if(c)throw Error(Hu(6));t=!1,l(),o.delete(n),a=null}}}function f(e){if(!Ku(e))throw Error(Hu(7));if(e.type===void 0)throw Error(Hu(8));if(typeof e.type!=`string`)throw Error(Hu(17));if(c)throw Error(Hu(9));try{c=!0,i=r(i,e)}finally{c=!1}return(a=o).forEach(e=>{e()}),e}function p(e){if(typeof e!=`function`)throw Error(Hu(10));r=e,f({type:Gu.REPLACE})}function m(){let e=d;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(Hu(11));function n(){let e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[Uu](){return this}}}return f({type:Gu.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:p,[Uu]:m}}function Ju(e){Object.keys(e).forEach(t=>{let n=e[t];if(n(void 0,{type:Gu.INIT})===void 0)throw Error(Hu(12));if(n(void 0,{type:Gu.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(Hu(13))})}function Yu(e){let t=Object.keys(e),n={};for(let r=0;re:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function Zu(...e){return t=>(n,r)=>{let i=t(n,r),a=()=>{throw Error(Hu(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=Xu(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}function Qu(e){return Ku(e)&&`type`in e&&typeof e.type==`string`}var $u=Symbol.for(`immer-nothing`),ed=Symbol.for(`immer-draftable`),td=Symbol.for(`immer-state`);function nd(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var rd=Object,id=rd.getPrototypeOf,ad=`constructor`,od=`prototype`,sd=`configurable`,cd=`enumerable`,ld=`writable`,ud=`value`,dd=e=>!!e&&!!e[td];function fd(e){return e?hd(e)||Sd(e)||!!e[ed]||!!e[ad]?.[ed]||Cd(e)||wd(e):!1}var pd=rd[od][ad].toString(),md=new WeakMap;function hd(e){if(!e||!Td(e))return!1;let t=id(e);if(t===null||t===rd[od])return!0;let n=rd.hasOwnProperty.call(t,ad)&&t[ad];if(n===Object)return!0;if(!Ed(n))return!1;let r=md.get(n);return r===void 0&&(r=Function.toString.call(n),md.set(n,r)),r===pd}function gd(e,t,n=!0){_d(e)===0?(n?Reflect.ownKeys(e):rd.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function _d(e){let t=e[td];return t?t.type_:Sd(e)?1:Cd(e)?2:wd(e)?3:0}var vd=(e,t,n=_d(e))=>n===2?e.has(t):rd[od].hasOwnProperty.call(e,t),yd=(e,t,n=_d(e))=>n===2?e.get(t):e[t],bd=(e,t,n,r=_d(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function xd(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var Sd=Array.isArray,Cd=e=>e instanceof Map,wd=e=>e instanceof Set,Td=e=>typeof e==`object`,Ed=e=>typeof e==`function`,Dd=e=>typeof e==`boolean`;function Od(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var kd=e=>e.copy_||e.base_,Ad=e=>e.modified_?e.copy_:e.base_;function jd(e,t){if(Cd(e))return new Map(e);if(wd(e))return new Set(e);if(Sd(e))return Array[od].slice.call(e);let n=hd(e);if(t===!0||t===`class_only`&&!n){let t=rd.getOwnPropertyDescriptors(e);delete t[td];let n=Reflect.ownKeys(t);for(let r=0;r1&&rd.defineProperties(e,{set:Pd,add:Pd,clear:Pd,delete:Pd}),rd.freeze(e),t&&gd(e,(e,t)=>{Md(t,!0)},!1),e)}function Nd(){nd(2)}var Pd={[ud]:Nd};function Fd(e){return e===null||!Td(e)?!0:rd.isFrozen(e)}var Id=`MapSet`,Ld=`Patches`,Rd=`ArrayMethods`,zd={};function Bd(e){let t=zd[e];return t||nd(0,e),t}var Vd=e=>!!zd[e],Hd,Ud=()=>Hd,Wd=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Vd(Id)?Bd(Id):void 0,arrayMethodsPlugin_:Vd(Rd)?Bd(Rd):void 0});function Gd(e,t){t&&(e.patchPlugin_=Bd(Ld),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Kd(e){qd(e),e.drafts_.forEach(Yd),e.drafts_=null}function qd(e){e===Hd&&(Hd=e.parent_)}var Jd=e=>Hd=Wd(Hd,e);function Yd(e){let t=e[td];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Xd(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[td].modified_&&(Kd(t),nd(4)),fd(e)&&(e=Zd(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[td].base_,e,t)}else e=Zd(t,n);return Qd(t,e,!0),Kd(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===$u?void 0:e}function Zd(e,t){if(Fd(t))return t;let n=t[td];if(!n)return sf(t,e.handledSet_,e);if(!ef(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);af(n,e)}return n.copy_}function Qd(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Md(t,n)}function $d(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var ef=(e,t)=>e.scope_===t,tf=[];function nf(e,t,n,r){let i=kd(e),a=e.type_;if(r!==void 0&&yd(i,r,a)===t){bd(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;gd(i,(e,n)=>{if(dd(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??tf;for(let e of o)bd(i,e,n,a)}function rf(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!ef(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=Ad(i);nf(e,i.draft_??i,a,n),af(i,r)})}function af(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}$d(e)}}function of(e,t,n){let{scope_:r}=e;if(dd(n)){let i=n[td];ef(i,r)&&i.callbacks_.push(function(){hf(e),nf(e,n,Ad(i),t)})}else fd(n)&&e.callbacks_.push(function(){let i=kd(e);e.type_===3?i.has(n)&&sf(n,r.handledSet_,r):yd(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&sf(yd(e.copy_,t,e.type_),r.handledSet_,r)})}function sf(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||dd(e)||t.has(e)||!fd(e)||Fd(e)?e:(t.add(e),gd(e,(r,i)=>{if(dd(i)){let t=i[td];ef(t,n)&&(bd(e,r,Ad(t),e.type_),$d(t))}else fd(i)&&sf(i,t,n)}),e)}function cf(e,t){let n=Sd(e),r={type_:+!!n,scope_:t?t.scope_:Ud(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=lf;n&&(i=[r],a=uf);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var lf={get(e,t){if(t===td)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=kd(e);if(!vd(i,t,e.type_))return ff(e,i,t);let a=i[t];if(e.finalized_||!fd(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Od(t))return a;if(a===df(e.base_,t)){hf(e);let n=e.type_===1?+t:t,r=_f(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in kd(e)},ownKeys(e){return Reflect.ownKeys(kd(e))},set(e,t,n){let r=pf(kd(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=df(kd(e),t),i=r?.[td];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(xd(n,r)&&(n!==void 0||vd(e.base_,t,e.type_)))return!0;hf(e),mf(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),of(e,t,n),!0)},deleteProperty(e,t){return hf(e),df(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),mf(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=kd(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[ld]:!0,[sd]:e.type_!==1||t!==`length`,[cd]:r[cd],[ud]:n[t]}},defineProperty(){nd(11)},getPrototypeOf(e){return id(e.base_)},setPrototypeOf(){nd(12)}},uf={};for(let e in lf){let t=lf[e];uf[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}uf.deleteProperty=function(e,t){return uf.set.call(this,e,t,void 0)},uf.set=function(e,t,n){return lf.set.call(this,e[0],t,n,e[0])};function df(e,t){let n=e[td];return(n?kd(n):e)[t]}function ff(e,t,n){let r=pf(t,n);return r?ud in r?r[ud]:r.get?.call(e.draft_):void 0}function pf(e,t){if(!(t in e))return;let n=id(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=id(n)}}function mf(e){e.modified_||(e.modified_=!0,e.parent_&&mf(e.parent_))}function hf(e){e.copy_||=(e.assigned_=new Map,jd(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var gf=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(Ed(e)&&!Ed(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}Ed(t)||nd(6),n!==void 0&&!Ed(n)&&nd(7);let r;if(fd(e)){let i=Jd(this),a=_f(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?Kd(i):qd(i)}return Gd(i,n),Xd(r,i)}else if(!e||!Td(e)){if(r=t(e),r===void 0&&(r=e),r===$u&&(r=void 0),this.autoFreeze_&&Md(r,!0),n){let t=[],i=[];Bd(Ld).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}else nd(1,e)},this.produceWithPatches=(e,t)=>{if(Ed(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},Dd(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Dd(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Dd(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){fd(e)||nd(8),dd(e)&&(e=vf(e));let t=Jd(this),n=_f(t,e,void 0);return n[td].isManual_=!0,qd(t),n}finishDraft(e,t){let n=e&&e[td];(!n||!n.isManual_)&&nd(9);let{scope_:r}=n;return Gd(r,t),Xd(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=Bd(Ld).applyPatches_;return dd(e)?r(e,t):this.produce(e,e=>r(e,t))}};function _f(e,t,n,r){let[i,a]=Cd(t)?Bd(Id).proxyMap_(t,n):wd(t)?Bd(Id).proxySet_(t,n):cf(t,n);return(n?.scope_??Ud()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?rf(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function vf(e){return dd(e)||nd(10,e),yf(e)}function yf(e){if(!fd(e)||Fd(e))return e;let t=e[td],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=jd(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=jd(e,!0);return gd(n,(e,t)=>{bd(n,e,yf(t))},r),t&&(t.finalized_=!1),n}var bf=new gf().produce;function xf(e){return({dispatch:t,getState:n})=>r=>i=>typeof i==`function`?i(t,n,e):r(i)}var Sf=xf(),Cf=xf,wf=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]==`object`?Xu:Xu.apply(null,arguments)};typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function Tf(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw Error(Mp(0));return{type:e,payload:r.payload,...`meta`in r&&{meta:r.meta},...`error`in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>Qu(t)&&t.type===e,n}var Ef=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function Df(e){return fd(e)?bf(e,()=>{}):e}function Of(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function kf(e){return typeof e==`boolean`}var Af=()=>function(e){let{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{},a=new Ef;return t&&(kf(t)?a.push(Sf):a.push(Cf(t.extraArgument))),a},jf=`RTK_autoBatch`,q=()=>e=>({payload:e,meta:{[jf]:!0}}),Mf=e=>t=>{setTimeout(t,e)},Nf=(e={type:`raf`})=>t=>(...n)=>{let r=t(...n),i=!0,a=!1,o=!1,s=new Set,c=e.type===`tick`?queueMicrotask:e.type===`raf`?typeof window<`u`&&window.requestAnimationFrame?window.requestAnimationFrame:Mf(10):e.type===`callback`?e.queueNotification:Mf(e.timeout),l=()=>{o=!1,a&&(a=!1,s.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){let t=r.subscribe(()=>i&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return i=!e?.meta?.[jf],a=!i,a&&(o||(o=!0,c(l))),r.dispatch(e)}finally{i=!0}}})},Pf=e=>function(t){let{autoBatch:n=!0}=t??{},r=new Ef(e);return n&&r.push(Nf(typeof n==`object`?n:void 0)),r};function Ff(e){let t=Af(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{},c;if(typeof n==`function`)c=n;else if(Ku(n))c=Yu(n);else throw Error(Mp(1));let l;l=typeof r==`function`?r(t):t();let u=Xu;i&&(u=wf({trace:!1,...typeof i==`object`&&i}));let d=Pf(Zu(...l)),f=typeof s==`function`?s(d):d(),p=u(...f);return qu(c,o,p)}function If(e){let t={},n=[],r,i={addCase(e,n){let r=typeof e==`string`?e:e.type;if(!r)throw Error(Mp(28));if(r in t)throw Error(Mp(29));return t[r]=n,i},addAsyncThunk(e,r){return r.pending&&(t[e.pending.type]=r.pending),r.rejected&&(t[e.rejected.type]=r.rejected),r.fulfilled&&(t[e.fulfilled.type]=r.fulfilled),r.settled&&n.push({matcher:e.settled,reducer:r.settled}),i},addMatcher(e,t){return n.push({matcher:e,reducer:t}),i},addDefaultCase(e){return r=e,i}};return e(i),[t,n,r]}function Lf(e){return typeof e==`function`}function Rf(e,t){let[n,r,i]=If(t),a;if(Lf(e))a=()=>Df(e());else{let t=Df(e);a=()=>t}function o(e=a(),t){let o=[n[t.type],...r.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return o.filter(e=>!!e).length===0&&(o=[i]),o.reduce((e,n)=>{if(n)if(dd(e)){let r=n(e,t);return r===void 0?e:r}else if(fd(e))return bf(e,e=>n(e,t));else{let r=n(e,t);if(r===void 0){if(e===null)return e;throw Error(`A case reducer on a non-draftable value must not return undefined`)}return r}return e},e)}return o.getInitialState=a,o}var zf=`ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW`,Bf=(e=21)=>{let t=``,n=e;for(;n--;)t+=zf[Math.random()*64|0];return t},Vf=Symbol.for(`rtk-slice-createasyncthunk`);function Hf(e,t){return`${e}/${t}`}function Uf({creators:e}={}){let t=e?.asyncThunk?.[Vf];return function(e){let{name:n,reducerPath:r=n}=e;if(!n)throw Error(Mp(11));let i=(typeof e.reducers==`function`?e.reducers(Kf()):e.reducers)||{},a=Object.keys(i),o={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){let n=typeof e==`string`?e:e.type;if(!n)throw Error(Mp(12));if(n in o.sliceCaseReducersByType)throw Error(Mp(13));return o.sliceCaseReducersByType[n]=t,s},addMatcher(e,t){return o.sliceMatchers.push({matcher:e,reducer:t}),s},exposeAction(e,t){return o.actionCreators[e]=t,s},exposeCaseReducer(e,t){return o.sliceCaseReducersByName[e]=t,s}};a.forEach(r=>{let a=i[r],o={reducerName:r,type:Hf(n,r),createNotation:typeof e.reducers==`function`};Jf(a)?Xf(o,a,s,t):qf(o,a,s)});function c(){let[t={},n=[],r=void 0]=typeof e.extraReducers==`function`?If(e.extraReducers):[e.extraReducers],i={...t,...o.sliceCaseReducersByType};return Rf(e.initialState,e=>{for(let t in i)e.addCase(t,i[t]);for(let t of o.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}let l=e=>e,u=new Map,d=new WeakMap,f;function p(e,t){return f||=c(),f(e,t)}function m(){return f||=c(),f.getInitialState()}function h(t,n=!1){function r(e){let i=e[t];return i===void 0&&n&&(i=Of(d,r,m)),i}function i(t=l){return Of(Of(u,n,()=>new WeakMap),t,()=>{let r={};for(let[i,a]of Object.entries(e.selectors??{}))r[i]=Wf(a,t,()=>Of(d,t,m),n);return r})}return{reducerPath:t,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}let g={name:n,reducer:p,actions:o.actionCreators,caseReducers:o.sliceCaseReducersByName,getInitialState:m,...h(r),injectInto(e,{reducerPath:t,...n}={}){let i=t??r;return e.inject({reducerPath:i,reducer:p},n),{...g,...h(i,!0)}}};return g}}function Wf(e,t,n,r){function i(i,...a){let o=t(i);return o===void 0&&r&&(o=n()),e(o,...a)}return i.unwrapped=e,i}var Gf=Uf();function Kf(){function e(e,t){return{_reducerDefinitionType:`asyncThunk`,payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer(e){return Object.assign({[e.name](...t){return e(...t)}}[e.name],{_reducerDefinitionType:`reducer`})},preparedReducer(e,t){return{_reducerDefinitionType:`reducerWithPrepare`,prepare:e,reducer:t}},asyncThunk:e}}function qf({type:e,reducerName:t,createNotation:n},r,i){let a,o;if(`reducer`in r){if(n&&!Yf(r))throw Error(Mp(17));a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Tf(e,o):Tf(e))}function Jf(e){return e._reducerDefinitionType===`asyncThunk`}function Yf(e){return e._reducerDefinitionType===`reducerWithPrepare`}function Xf({type:e,reducerName:t},n,r,i){if(!i)throw Error(Mp(18));let{payloadCreator:a,fulfilled:o,pending:s,rejected:c,settled:l,options:u}=n,d=i(e,a,u);r.exposeAction(t,d),o&&r.addCase(d.fulfilled,o),s&&r.addCase(d.pending,s),c&&r.addCase(d.rejected,c),l&&r.addMatcher(d.settled,l),r.exposeCaseReducer(t,{fulfilled:o||Zf,pending:s||Zf,rejected:c||Zf,settled:l||Zf})}function Zf(){}var Qf=`task`,$f=`listener`,ep=`completed`,tp=`cancelled`,np=`task-${tp}`,rp=`task-${ep}`,ip=`${$f}-${tp}`,ap=`${$f}-${ep}`,op=class{constructor(e){this.code=e,this.message=`${Qf} ${tp} (reason: ${e})`}name=`TaskAbortError`;message},sp=(e,t)=>{if(typeof e!=`function`)throw TypeError(Mp(32))},cp=()=>{},lp=(e,t=cp)=>(e.catch(t),e),up=(e,t)=>(e.addEventListener(`abort`,t,{once:!0}),()=>e.removeEventListener(`abort`,t)),dp=e=>{if(e.aborted)throw new op(e.reason)};function fp(e,t){let n=cp;return new Promise((r,i)=>{let a=()=>i(new op(e.reason));if(e.aborted){a();return}n=up(e,a),t.finally(()=>n()).then(r,i)}).finally(()=>{n=cp})}var pp=async(e,t)=>{try{return await Promise.resolve(),{status:`ok`,value:await e()}}catch(e){return{status:e instanceof op?`cancelled`:`rejected`,error:e}}finally{t?.()}},mp=e=>t=>lp(fp(e,t).then(t=>(dp(e),t))),hp=e=>{let t=mp(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:gp}=Object,_p={},vp=`listenerMiddleware`,yp=(e,t)=>{let n=t=>up(e,()=>t.abort(e.reason));return(r,i)=>{sp(r,`taskExecutor`);let a=new AbortController;n(a);let o=pp(async()=>{dp(e),dp(a.signal);let t=await r({pause:mp(a.signal),delay:hp(a.signal),signal:a.signal});return dp(a.signal),t},()=>a.abort(rp));return i?.autoJoin&&t.push(o.catch(cp)),{result:mp(e)(o),cancel(){a.abort(np)}}}},bp=(e,t)=>{let n=async(n,r)=>{dp(t);let i=()=>{},a=[new Promise((t,r)=>{let a=e({predicate:n,effect:(e,n)=>{n.unsubscribe(),t([e,n.getState(),n.getOriginalState()])}});i=()=>{a(),r()}})];r!=null&&a.push(new Promise(e=>setTimeout(e,r,null)));try{let e=await fp(t,Promise.race(a));return dp(t),e}finally{i()}};return(e,t)=>lp(n(e,t))},xp=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:a}=e;if(t)i=Tf(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw Error(Mp(21));return sp(a,`options.listener`),{predicate:i,type:t,effect:a}},Sp=gp(e=>{let{type:t,predicate:n,effect:r}=xp(e);return{id:Bf(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw Error(Mp(22))}}},{withTypes:()=>Sp}),Cp=(e,t)=>{let{type:n,effect:r,predicate:i}=xp(t);return Array.from(e.values()).find(e=>(typeof n==`string`?e.type===n:e.predicate===i)&&e.effect===r)},wp=e=>{e.pending.forEach(e=>{e.abort(ip)})},Tp=(e,t)=>()=>{for(let e of t.keys())wp(e);e.clear()},Ep=(e,t,n)=>{try{e(t,n)}catch(e){setTimeout(()=>{throw e},0)}},Dp=gp(Tf(`${vp}/add`),{withTypes:()=>Dp}),Op=Tf(`${vp}/removeAll`),kp=gp(Tf(`${vp}/remove`),{withTypes:()=>kp}),Ap=(...e)=>{console.error(`${vp}/error`,...e)},jp=(e={})=>{let t=new Map,n=new Map,r=e=>{let t=n.get(e)??0;n.set(e,t+1)},i=e=>{let t=n.get(e)??1;t===1?n.delete(e):n.set(e,t-1)},{extra:a,onError:o=Ap}=e;sp(o,`onError`);let s=e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),t?.cancelActive&&wp(e)}),c=e=>s(Cp(t,e)??Sp(e));gp(c,{withTypes:()=>c});let l=e=>{let n=Cp(t,e);return n&&(n.unsubscribe(),e.cancelActive&&wp(n)),!!n};gp(l,{withTypes:()=>l});let u=async(e,n,s,l)=>{let u=new AbortController,d=bp(c,u.signal),f=[];try{e.pending.add(u),r(e),await Promise.resolve(e.effect(n,gp({},s,{getOriginalState:l,condition:(e,t)=>d(e,t).then(Boolean),take:d,delay:hp(u.signal),pause:mp(u.signal),extra:a,signal:u.signal,fork:yp(u.signal,f),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,n)=>{e!==u&&(e.abort(ip),n.delete(e))})},cancel:()=>{u.abort(ip),e.pending.delete(u)},throwIfCancelled:()=>{dp(u.signal)}})))}catch(e){e instanceof op||Ep(o,e,{raisedBy:`effect`})}finally{await Promise.all(f),u.abort(ap),i(e),e.pending.delete(u)}},d=Tp(t,n);return{middleware:e=>n=>r=>{if(!Qu(r))return n(r);if(Dp.match(r))return c(r.payload);if(Op.match(r)){d();return}if(kp.match(r))return l(r.payload);let i=e.getState(),a=()=>{if(i===_p)throw Error(Mp(23));return i},s;try{if(s=n(r),t.size>0){let n=e.getState(),s=Array.from(t.values());for(let t of s){let s=!1;try{s=t.predicate(r,n,i)}catch(e){s=!1,Ep(o,e,{raisedBy:`predicate`})}s&&u(t,r,e,a)}}}finally{i=_p}return s},startListening:c,stopListening:l,clearListeners:d}};function Mp(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Np=Gf({name:`chartLayout`,initialState:{layoutType:`horizontal`,width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){e.margin.top=t.payload.top??0,e.margin.right=t.payload.right??0,e.margin.bottom=t.payload.bottom??0,e.margin.left=t.payload.left??0},setScale(e,t){e.scale=t.payload}}}),{setMargin:Pp,setLayout:Fp,setChartSize:Ip,setScale:Lp}=Np.actions,Rp=Np.reducer;function zp(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function J(e){return Number.isFinite(e)}function Bp(e){return typeof e==`number`&&e>0&&Number.isFinite(e)}function Vp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Hp(e){for(var t=1;t{if(t&&n){var{width:r,height:i}=n,{align:a,verticalAlign:o,layout:s}=t;if((s===`vertical`||s===`horizontal`&&o===`middle`)&&a!==`center`&&V(e[a]))return Hp(Hp({},e),{},{[a]:e[a]+(r||0)});if((s===`horizontal`||s===`vertical`&&a===`center`)&&o!==`middle`&&V(e[o]))return Hp(Hp({},e),{},{[o]:e[o]+(i||0)})}return e},qp=(e,t)=>e===`horizontal`&&t===`xAxis`||e===`vertical`&&t===`yAxis`||e===`centric`&&t===`angleAxis`||e===`radial`&&t===`radiusAxis`,Jp=(e,t,n,r)=>{if(r)return e.map(e=>e.coordinate);var i,a,o=e.map(e=>(e.coordinate===t&&(i=!0),e.coordinate===n&&(a=!0),e.coordinate));return i||o.push(t),a||o.push(n),o},Yp=(e,t,n)=>{if(!e)return null;var{duplicateDomain:r,type:i,range:a,scale:o,realScaleType:s,isCategorical:c,categoricalDomain:l,tickCount:u,ticks:d,niceTicks:f,axisType:p}=e;if(!o)return null;var m=s===`scaleBand`&&o.bandwidth?o.bandwidth()/2:2,h=(t||n)&&i===`category`&&o.bandwidth?o.bandwidth()/m:0;return h=p===`angleAxis`&&a&&a.length>=2?Lc(a[0]-a[1])*2*h:h,t&&(d||f)?(d||f||[]).map((e,t)=>{var n=r?r.indexOf(e):e,i=o.map(n);return J(i)?{coordinate:i+h,value:e,offset:h,index:t}:null}).filter(qc):c&&l?l.map((e,t)=>{var n=o.map(e);return J(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(qc):o.ticks&&!n&&u!=null?o.ticks(u).map((e,t)=>{var n=o.map(e);return J(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(qc):o.domain().map((e,t)=>{var n=o.map(e);return J(n)?{coordinate:n+h,value:r?r[e]:e,index:t,offset:h}:null}).filter(qc)},Xp=(e,t)=>{if(!t||t.length!==2||!V(t[0])||!V(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!V(e[0])||e[0]r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r=0?(s[0]=i,i+=u,s[1]=i):(s[0]=a,a+=u,s[1]=a)}}}},expand:Cc,none:vc,silhouette:wc,wiggle:Tc,positive:e=>{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r=0?(o[0]=i,i+=s,o[1]=i):(o[0]=0,o[1]=0)}}}}},Qp=(e,t,n)=>{var r=Zp[n]??vc,i=Sc().keys(t).value((e,t)=>Number(Y(e,t,0))).order(yc).offset(r)(e);return i.forEach((n,r)=>{n.forEach((n,i)=>{var a=Y(e[i],t[r],0);Array.isArray(a)&&a.length===2&&V(a[0])&&V(a[1])&&(n[0]=a[0],n[1]=a[1])})}),i};function $p(e){return e==null?void 0:String(e)}function em(e){var{axis:t,ticks:n,bandSize:r,entry:i,index:a,dataKey:o}=e;if(t.type===`category`){if(!t.allowDuplicatedCategory&&t.dataKey&&!U(i[t.dataKey])){var s=Gc(n,`value`,i[t.dataKey]);if(s)return s.coordinate+r/2}return n!=null&&n[a]?n[a].coordinate+r/2:null}var c=Y(i,U(o)?t.dataKey:o),l=t.scale.map(c);return V(l)?l:null}var tm=e=>{var{axis:t,ticks:n,offset:r,bandSize:i,entry:a,index:o}=e;if(t.type===`category`)return n[o]?n[o].coordinate+r:null;var s=Y(a,t.dataKey,t.scale.domain()[o]);if(U(s))return null;var c=t.scale.map(s);return V(c)?c-i/2+r:null},nm=e=>{var{numericAxis:t}=e,n=t.scale.domain();if(t.type===`number`){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},rm=e=>{var t=e.flat(2).filter(V);return[Math.min(...t),Math.max(...t)]},im=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],am=(e,t,n)=>{if(e!=null)return im(Object.keys(e).reduce((r,i)=>{var a=e[i];if(!a)return r;var{stackedData:o}=a,s=o.reduce((e,r)=>{var i=rm(zp(r,t,n));return!J(i[0])||!J(i[1])?e:[Math.min(e[0],i[0]),Math.max(e[1],i[1])]},[1/0,-1/0]);return[Math.min(s[0],r[0]),Math.max(s[1],r[1])]},[1/0,-1/0]))},om=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,sm=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cm=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=(0,Fu.default)(t,e=>e.coordinate),a=1/0,o=1,s=i.length;o{if(t===`horizontal`)return e.relativeX;if(t===`vertical`)return e.relativeY},fm=(e,t)=>t===`centric`?e.angle:e.radius,pm=e=>e.layout.width,mm=e=>e.layout.height,hm=e=>e.layout.scale,gm=e=>e.layout.margin,_m=K(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),vm=K(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),ym=`data-recharts-item-index`;function bm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xm(e){for(var t=1;te.brush.height;function Em(e){return vm(e).reduce((e,t)=>t.orientation===`left`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function Dm(e){return vm(e).reduce((e,t)=>t.orientation===`right`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function Om(e){return _m(e).reduce((e,t)=>t.orientation===`top`&&!t.mirror&&!t.hide?e+t.height:e,0)}function km(e){return _m(e).reduce((e,t)=>t.orientation===`bottom`&&!t.mirror&&!t.hide?e+t.height:e,0)}var Am=K([pm,mm,gm,Tm,Em,Dm,Om,km,Iu,Lu],(e,t,n,r,i,a,o,s,c,l)=>{var u={left:(n.left||0)+i,right:(n.right||0)+a},d=xm(xm({},{top:(n.top||0)+o,bottom:(n.bottom||0)+s}),u),f=d.bottom;d.bottom+=r,d=Kp(d,c,l);var p=e-d.left-d.right,m=t-d.top-d.bottom;return xm(xm({brushBottom:f},d),{},{width:Math.max(p,0),height:Math.max(m,0)})}),jm=K(Am,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Mm=K(pm,mm,(e,t)=>({x:0,y:0,width:e,height:t})),Nm=(0,I.createContext)(null),Pm=()=>(0,I.useContext)(Nm)!=null,Fm=e=>e.brush,Im=K([Fm,Am,gm],(e,t,n)=>({height:e.height,x:V(e.x)?e.x:t.left,y:V(e.y)?e.y:t.top+t.height+t.brushBottom-(n?.bottom||0),width:V(e.width)?e.width:t.width})),Lm=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}e.debounce=t})),Rm=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Lm();function n(e,n=0,r={}){typeof r!=`object`&&(r={});let{leading:i=!1,trailing:a=!0,maxWait:o}=r,s=[,,];i&&(s[0]=`leading`),a&&(s[1]=`trailing`);let c,l=null,u=t.debounce(function(...t){c=e.apply(this,t),l=null},n,{edges:s}),d=function(...t){return o!=null&&(l===null&&(l=Date.now()),Date.now()-l>=o)?(c=e.apply(this,t),l=Date.now(),u.cancel(),u.schedule(),c):(u.apply(this,t),c)};return d.cancel=u.cancel,d.flush=()=>(u.flush(),c),d}e.debounce=n})),zm=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Rm();function n(e,n=0,r={}){let{leading:i=!0,trailing:a=!0}=r;return t.debounce(e,n,{leading:i,maxWait:n,trailing:a})}e.throttle=n})),Bm=n(((e,t)=>{t.exports=zm().throttle})),Vm=!0,Hm=function(e,t){var n=[...arguments].slice(2);if(Vm&&typeof console<`u`&&console.warn&&(t===void 0&&console.warn(`LogUtils requires an error message argument`),!e))if(t===void 0)console.warn(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var r=0;console.warn(t.replace(/%s/g,()=>n[r++]))}},Um={width:`100%`,height:`100%`,debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},Wm=(e,t,n)=>{var{width:r=Um.width,height:i=Um.height,aspect:a,maxHeight:o}=n,s=zc(r)?e:Number(r),c=zc(i)?t:Number(i);return a&&a>0&&(s?c=s/a:c&&(s=c*a),o&&c!=null&&c>o&&(c=o)),{calculatedWidth:s,calculatedHeight:c}},Gm={width:0,height:0,overflow:`visible`},Km={width:0,overflowX:`visible`},qm={height:0,overflowY:`visible`},Jm={},Ym=e=>{var{width:t,height:n}=e,r=zc(t),i=zc(n);return r&&i?Gm:r?Km:i?qm:Jm};function Xm(e){var{width:t,height:n,aspect:r}=e,i=t,a=n;return i===void 0&&a===void 0?(i=Um.width,a=Um.height):i===void 0?i=r&&r>0?void 0:Um.width:a===void 0&&(a=r&&r>0?void 0:Um.height),{width:i,height:a}}var Zm=t(Bm());function Qm(){return Qm=Object.assign?Object.assign.bind():function(e){for(var t=1;t({width:n,height:r}),[n,r]);return ah(i)?I.createElement(ih.Provider,{value:i},t):null}var sh=()=>(0,I.useContext)(ih),ch=(0,I.forwardRef)((e,t)=>{var{aspect:n,initialDimension:r=Um.initialDimension,width:i,height:a,minWidth:o=Um.minWidth,minHeight:s,maxHeight:c,children:l,debounce:u=Um.debounce,id:d,className:f,onResize:p,style:m={}}=e,h=(0,I.useRef)(null),g=(0,I.useRef)();g.current=p,(0,I.useImperativeHandle)(t,()=>h.current);var[_,v]=(0,I.useState)({containerWidth:r.width,containerHeight:r.height}),y=(0,I.useCallback)((e,t)=>{v(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]);(0,I.useEffect)(()=>{if(h.current==null||typeof ResizeObserver>`u`)return Jc;var e=e=>{var t,n=e[0];if(n!=null){var{width:r,height:i}=n.contentRect;y(r,i),(t=g.current)==null||t.call(g,r,i)}};u>0&&(e=(0,Zm.default)(e,u,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),{width:n,height:r}=h.current.getBoundingClientRect();return y(n,r),t.observe(h.current),()=>{t.disconnect()}},[y,u]);var{containerWidth:b,containerHeight:x}=_;Hm(!n||n>0,`The aspect(%s) must be greater than zero.`,n);var{calculatedWidth:S,calculatedHeight:C}=Wm(b,x,{width:i,height:a,aspect:n,maxHeight:c});return Hm(S!=null&&S>0||C!=null&&C>0,`The width(%s) and height(%s) of chart should be greater than 0, diff --git a/src/www/assets/data-table-1LQSBhN2.js b/src/www/assets/data-table-DC6T69tr.js similarity index 98% rename from src/www/assets/data-table-1LQSBhN2.js rename to src/www/assets/data-table-DC6T69tr.js index 85396db..2c8c641 100644 --- a/src/www/assets/data-table-1LQSBhN2.js +++ b/src/www/assets/data-table-DC6T69tr.js @@ -1,4 +1,4 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{Pp as n,_p as r,ap as i,cp as a,dp as o,fp as s,ft as c,gp as l,hp as u,ip as d,lp as f,mp as p,op as m,pp as h,sp as g,tm as ee,up as te,vp as ne}from"./messages-BOatyqUm.js";import{a as re,i as _,r as ie,t as v}from"./button-C_NDYaz8.js";import{a as y,l as ae,n as oe,o as se,r as ce,s as le,t as ue,u as de}from"./dropdown-menu-DzCIpsuG.js";import{n as fe,r as pe,t as me}from"./popover-NQZzcPDh.js";import{a as he,i as ge,n as _e,r as ve,t as ye}from"./select-CzebumOF.js";import{t as be}from"./separator-CsUemQNs.js";import"./tooltip-xZuTTfnF.js";import{t as b}from"./createLucideIcon-Br0Bd5k2.js";import{t as xe}from"./check-CHp0nSkR.js";import{n as Se,t as Ce}from"./skeleton-CmDjDV1O.js";import{t as we}from"./chevrons-up-down-BPquKoYJ.js";import{t as Te}from"./eye-off-B8hO0oST.js";import{n as Ee,r as De,t as Oe}from"./empty-state-CxE4wU3V.js";import{a as ke,c as Ae,i as je,o as Me,r as Ne,s as Pe,t as Fe}from"./command-B_SlhXkX.js";import{l as Ie}from"./dialog-CZ-2RPb-.js";import{t as Le}from"./input-8zzM34r5.js";import{t as x}from"./badge-VJlwwTW5.js";import{a as Re,i as ze,n as Be,o as S,r as C,t as Ve}from"./table-9UOy2Vxt.js";var He=b(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),Ue=b(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),We=b(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),Ge=b(`chevrons-left`,[[`path`,{d:`m11 17-5-5 5-5`,key:`13zhaf`}],[`path`,{d:`m18 17-5-5 5-5`,key:`h8a8et`}]]),Ke=b(`chevrons-right`,[[`path`,{d:`m6 17 5-5-5-5`,key:`xnjwq`}],[`path`,{d:`m13 17 5-5-5-5`,key:`17xmmf`}]]),qe=b(`circle-plus`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}],[`path`,{d:`M12 8v8`,key:`napkw2`}]]),w=e(t(),1),T=ee();function E(e,t){return typeof e==`function`?e(t):e}function D(e,t){return n=>{t.setState(t=>({...t,[e]:E(n,t[e])}))}}function O(e){return e instanceof Function}function Je(e){return Array.isArray(e)&&e.every(e=>typeof e==`number`)}function Ye(e,t){let n=[],r=e=>{e.forEach(e=>{n.push(e);let i=t(e);i!=null&&i.length&&r(i)})};return r(e),n}function k(e,t,n){let r=[],i;return a=>{let o;n.key&&n.debug&&(o=Date.now());let s=e(a);if(!(s.length!==r.length||s.some((e,t)=>r[t]!==e)))return i;r=s;let c;if(n.key&&n.debug&&(c=Date.now()),i=t(...s),n==null||n.onChange==null||n.onChange(i),n.key&&n.debug&&n!=null&&n.debug()){let e=Math.round((Date.now()-o)*100)/100,t=Math.round((Date.now()-c)*100)/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length{t.setState(t=>({...t,[e]:E(n,t[e])}))}}function O(e){return e instanceof Function}function Je(e){return Array.isArray(e)&&e.every(e=>typeof e==`number`)}function Ye(e,t){let n=[],r=e=>{e.forEach(e=>{n.push(e);let i=t(e);i!=null&&i.length&&r(i)})};return r(e),n}function k(e,t,n){let r=[],i;return a=>{let o;n.key&&n.debug&&(o=Date.now());let s=e(a);if(!(s.length!==r.length||s.some((e,t)=>r[t]!==e)))return i;r=s;let c;if(n.key&&n.debug&&(c=Date.now()),i=t(...s),n==null||n.onChange==null||n.onChange(i),n.key&&n.debug&&n!=null&&n.debug()){let e=Math.round((Date.now()-o)*100)/100,t=Math.round((Date.now()-c)*100)/100,r=t/16,i=(e,t)=>{for(e=String(e);e.lengthe?.debugAll??e[t],key:!1,onChange:r}}function Xe(e,t,n,r){let i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>i.getValue()??e.options.renderFallbackValue,getContext:k(()=>[e,n,t,i],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),A(e.options,`debugCells`,`cell.getContext`))};return e._features.forEach(r=>{r.createCell==null||r.createCell(i,n,t,e)},{}),i}function Ze(e,t,n,r){let i={...e._getDefaultColumnDef(),...t},a=i.accessorKey,o=i.id??(a?typeof String.prototype.replaceAll==`function`?a.replaceAll(`.`,`_`):a.replace(/\./g,`_`):void 0)??(typeof i.header==`string`?i.header:void 0),s;if(i.accessorFn?s=i.accessorFn:a&&(s=a.includes(`.`)?e=>{let t=e;for(let e of a.split(`.`))t=t?.[e];return t}:e=>e[i.accessorKey]),!o)throw Error();let c={id:`${String(o)}`,accessorFn:s,parent:r,depth:n,columnDef:i,columns:[],getFlatColumns:k(()=>[!0],()=>[c,...c.columns?.flatMap(e=>e.getFlatColumns())],A(e.options,`debugColumns`,`column.getFlatColumns`)),getLeafColumns:k(()=>[e._getOrderColumnsFn()],e=>{var t;return(t=c.columns)!=null&&t.length?e(c.columns.flatMap(e=>e.getLeafColumns())):[c]},A(e.options,`debugColumns`,`column.getLeafColumns`))};for(let t of e._features)t.createColumn==null||t.createColumn(c,e);return c}var j=`debugHeaders`;function Qe(e,t,n){let r={id:n.id??t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{let e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(r),e},getContext:()=>({table:e,header:r,column:t})};return e._features.forEach(t=>{t.createHeader==null||t.createHeader(r,e)}),r}var $e={createTable:e=>{e.getHeaderGroups=k(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{let a=r?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],o=i?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],s=n.filter(e=>!(r!=null&&r.includes(e.id))&&!(i!=null&&i.includes(e.id)));return M(t,[...a,...s,...o],e)},A(e.options,j,`getHeaderGroups`)),e.getCenterHeaderGroups=k(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>(n=n.filter(e=>!(r!=null&&r.includes(e.id))&&!(i!=null&&i.includes(e.id))),M(t,n,e,`center`)),A(e.options,j,`getCenterHeaderGroups`)),e.getLeftHeaderGroups=k(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>M(t,r?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],e,`left`),A(e.options,j,`getLeftHeaderGroups`)),e.getRightHeaderGroups=k(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>M(t,r?.map(e=>n.find(t=>t.id===e)).filter(Boolean)??[],e,`right`),A(e.options,j,`getRightHeaderGroups`)),e.getFooterGroups=k(()=>[e.getHeaderGroups()],e=>[...e].reverse(),A(e.options,j,`getFooterGroups`)),e.getLeftFooterGroups=k(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),A(e.options,j,`getLeftFooterGroups`)),e.getCenterFooterGroups=k(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),A(e.options,j,`getCenterFooterGroups`)),e.getRightFooterGroups=k(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),A(e.options,j,`getRightFooterGroups`)),e.getFlatHeaders=k(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),A(e.options,j,`getFlatHeaders`)),e.getLeftFlatHeaders=k(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),A(e.options,j,`getLeftFlatHeaders`)),e.getCenterFlatHeaders=k(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),A(e.options,j,`getCenterFlatHeaders`)),e.getRightFlatHeaders=k(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),A(e.options,j,`getRightFlatHeaders`)),e.getCenterLeafHeaders=k(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!((t=e.subHeaders)!=null&&t.length)}),A(e.options,j,`getCenterLeafHeaders`)),e.getLeftLeafHeaders=k(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!((t=e.subHeaders)!=null&&t.length)}),A(e.options,j,`getLeftLeafHeaders`)),e.getRightLeafHeaders=k(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!((t=e.subHeaders)!=null&&t.length)}),A(e.options,j,`getRightLeafHeaders`)),e.getLeafHeaders=k(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>[...e[0]?.headers??[],...t[0]?.headers??[],...n[0]?.headers??[]].map(e=>e.getLeafHeaders()).flat(),A(e.options,j,`getLeafHeaders`))}};function M(e,t,n,r){let i=0,a=function(e,t){t===void 0&&(t=1),i=Math.max(i,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;(n=e.columns)!=null&&n.length&&a(e.columns,t+1)},0)};a(e);let o=[],s=(e,t)=>{let i={depth:t,id:[r,`${t}`].filter(Boolean).join(`_`),headers:[]},a=[];e.forEach(e=>{let o=[...a].reverse()[0],s=e.column.depth===i.depth,c,l=!1;if(s&&e.column.parent?c=e.column.parent:(c=e.column,l=!0),o&&o?.column===c)o.subHeaders.push(e);else{let i=Qe(n,c,{id:[r,t,c.id,e?.id].filter(Boolean).join(`_`),isPlaceholder:l,placeholderId:l?`${a.filter(e=>e.column===c).length}`:void 0,depth:t,index:a.length});i.subHeaders.push(e),a.push(i)}i.headers.push(e),e.headerGroup=i}),o.push(i),t>0&&s(a,t-1)};s(t.map((e,t)=>Qe(n,e,{depth:i,index:t})),i-1),o.reverse();let c=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,r=[0];e.subHeaders&&e.subHeaders.length?(r=[],c(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:i}=e;t+=n,r.push(i)})):t=1;let i=Math.min(...r);return n+=i,e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return c(o[0]?.headers??[]),o}var et=(e,t,n,r,i,a,o)=>{let s={id:t,index:r,original:n,depth:i,parentId:o,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];let n=e.getColumn(t);if(n!=null&&n.accessorFn)return s._valuesCache[t]=n.accessorFn(s.original,r),s._valuesCache[t]},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];let n=e.getColumn(t);if(n!=null&&n.accessorFn)return n.columnDef.getUniqueValues?(s._uniqueValuesCache[t]=n.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[t]):(s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t])},renderValue:t=>s.getValue(t)??e.options.renderFallbackValue,subRows:a??[],getLeafRows:()=>Ye(s.subRows,e=>e.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let e=[],t=s;for(;;){let n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:k(()=>[e.getAllLeafColumns()],t=>t.map(t=>Xe(e,s,t,t.id)),A(e.options,`debugRows`,`getAllCells`)),_getAllCellsByColumnId:k(()=>[s.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),A(e.options,`debugRows`,`getAllCellsByColumnId`))};for(let t=0;t{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},nt=(e,t,n)=>{var r,i;let a=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((i=e.getValue(t))==null||(i=i.toString())==null||(i=i.toLowerCase())==null)&&i.includes(a))};nt.autoRemove=e=>F(e);var rt=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};rt.autoRemove=e=>F(e);var it=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===n?.toLowerCase()};it.autoRemove=e=>F(e);var at=(e,t,n)=>e.getValue(t)?.includes(n);at.autoRemove=e=>F(e);var ot=(e,t,n)=>!n.some(n=>{var r;return!((r=e.getValue(t))!=null&&r.includes(n))});ot.autoRemove=e=>F(e)||!(e!=null&&e.length);var st=(e,t,n)=>n.some(n=>e.getValue(t)?.includes(n));st.autoRemove=e=>F(e)||!(e!=null&&e.length);var ct=(e,t,n)=>e.getValue(t)===n;ct.autoRemove=e=>F(e);var lt=(e,t,n)=>e.getValue(t)==n;lt.autoRemove=e=>F(e);var N=(e,t,n)=>{let[r,i]=n,a=e.getValue(t);return a>=r&&a<=i};N.resolveFilterValue=e=>{let[t,n]=e,r=typeof t==`number`?t:parseFloat(t),i=typeof n==`number`?n:parseFloat(n),a=t===null||Number.isNaN(r)?-1/0:r,o=n===null||Number.isNaN(i)?1/0:i;if(a>o){let e=a;a=o,o=e}return[a,o]},N.autoRemove=e=>F(e)||F(e[0])&&F(e[1]);var P={includesString:nt,includesStringSensitive:rt,equalsString:it,arrIncludes:at,arrIncludesAll:ot,arrIncludesSome:st,equals:ct,weakEquals:lt,inNumberRange:N};function F(e){return e==null||e===``}var ut={getDefaultColumnDef:()=>({filterFn:`auto`}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:D(`columnFilters`,e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{let n=t.getCoreRowModel().flatRows[0]?.getValue(e.id);return typeof n==`string`?P.includesString:typeof n==`number`?P.inNumberRange:typeof n==`boolean`||typeof n==`object`&&n?P.equals:Array.isArray(n)?P.arrIncludes:P.weakEquals},e.getFilterFn=()=>O(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn===`auto`?e.getAutoFilterFn():t.options.filterFns?.[e.columnDef.filterFn]??P[e.columnDef.filterFn],e.getCanFilter=()=>(e.columnDef.enableColumnFilter??!0)&&(t.options.enableColumnFilters??!0)&&(t.options.enableFilters??!0)&&!!e.accessorFn,e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(t=>t.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>t.getState().columnFilters?.findIndex(t=>t.id===e.id)??-1,e.setFilterValue=n=>{t.setColumnFilters(t=>{let r=e.getFilterFn(),i=t?.find(t=>t.id===e.id),a=E(n,i?i.value:void 0);if(dt(r,a,e))return t?.filter(t=>t.id!==e.id)??[];let o={id:e.id,value:a};return i?t?.map(t=>t.id===e.id?o:t)??[]:t!=null&&t.length?[...t,o]:[o]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{let n=e.getAllLeafColumns();e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(e=>E(t,e)?.filter(e=>{let t=n.find(t=>t.id===e.id);return!(t&&dt(t.getFilterFn(),e.value,t))}))},e.resetColumnFilters=t=>{e.setColumnFilters(t?[]:e.initialState?.columnFilters??[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function dt(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||t===void 0||typeof t==`string`&&!t}var I={sum:(e,t,n)=>n.reduce((t,n)=>{let r=n.getValue(e);return t+(typeof r==`number`?r:0)},0),min:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);n!=null&&(r>n||r===void 0&&n>=n)&&(r=n)}),r},max:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);n!=null&&(r=n)&&(r=n)}),r},extent:(e,t,n)=>{let r,i;return n.forEach(t=>{let n=t.getValue(e);n!=null&&(r===void 0?n>=n&&(r=i=n):(r>n&&(r=n),i{let n=0,r=0;if(t.forEach(t=>{let i=t.getValue(e);i!=null&&(i=+i)>=i&&(++n,r+=i)}),n)return r/n},median:(e,t)=>{if(!t.length)return;let n=t.map(t=>t.getValue(e));if(!Je(n))return;if(n.length===1)return n[0];let r=Math.floor(n.length/2),i=n.sort((e,t)=>e-t);return n.length%2==0?(i[r-1]+i[r])/2:i[r]},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},ft={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t;return((t=e.getValue())==null||t.toString==null?void 0:t.toString())??null},aggregationFn:`auto`}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:D(`grouping`,e),groupedColumnMode:`reorder`}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>t!=null&&t.includes(e.id)?t.filter(t=>t!==e.id):[...t??[],e.id])},e.getCanGroup=()=>(e.columnDef.enableGrouping??!0)&&(t.options.enableGrouping??!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue),e.getIsGrouped=()=>t.getState().grouping?.includes(e.id),e.getGroupedIndex=()=>t.getState().grouping?.indexOf(e.id),e.getToggleGroupingHandler=()=>{let t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{let n=t.getCoreRowModel().flatRows[0]?.getValue(e.id);if(typeof n==`number`)return I.sum;if(Object.prototype.toString.call(n)===`[object Date]`)return I.extent},e.getAggregationFn=()=>{if(!e)throw Error();return O(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn===`auto`?e.getAutoAggregationFn():t.options.aggregationFns?.[e.columnDef.aggregationFn]??I[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{e.setGrouping(t?[]:e.initialState?.grouping??[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];let r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((t=n.subRows)!=null&&t.length)}}};function pt(e,t,n){if(!(t!=null&&t.length)||!n)return e;let r=e.filter(e=>!t.includes(e.id));return n===`remove`?r:[...t.map(t=>e.find(e=>e.id===t)).filter(Boolean),...r]}var mt={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:D(`columnOrder`,e)}),createColumn:(e,t)=>{e.getIndex=k(e=>[V(t,e)],t=>t.findIndex(t=>t.id===e.id),A(t.options,`debugColumns`,`getIndex`)),e.getIsFirstColumn=n=>V(t,n)[0]?.id===e.id,e.getIsLastColumn=n=>{let r=V(t,n);return r[r.length-1]?.id===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{e.setColumnOrder(t?[]:e.initialState.columnOrder??[])},e._getOrderColumnsFn=k(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>r=>{let i=[];if(!(e!=null&&e.length))i=r;else{let t=[...e],n=[...r];for(;n.length&&t.length;){let e=t.shift(),r=n.findIndex(t=>t.id===e);r>-1&&i.push(n.splice(r,1)[0])}i=[...i,...n]}return pt(i,t,n)},A(e.options,`debugTable`,`_getOrderColumnsFn`))}},ht=()=>({left:[],right:[]}),gt={getInitialState:e=>({columnPinning:ht(),...e}),getDefaultOptions:e=>({onColumnPinningChange:D(`columnPinning`,e)}),createColumn:(e,t)=>{e.pin=n=>{let r=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>n===`right`?{left:(e?.left??[]).filter(e=>!(r!=null&&r.includes(e))),right:[...(e?.right??[]).filter(e=>!(r!=null&&r.includes(e))),...r]}:n===`left`?{left:[...(e?.left??[]).filter(e=>!(r!=null&&r.includes(e))),...r],right:(e?.right??[]).filter(e=>!(r!=null&&r.includes(e)))}:{left:(e?.left??[]).filter(e=>!(r!=null&&r.includes(e))),right:(e?.right??[]).filter(e=>!(r!=null&&r.includes(e)))})},e.getCanPin=()=>e.getLeafColumns().some(e=>(e.columnDef.enablePinning??!0)&&(t.options.enableColumnPinning??t.options.enablePinning??!0)),e.getIsPinned=()=>{let n=e.getLeafColumns().map(e=>e.id),{left:r,right:i}=t.getState().columnPinning,a=n.some(e=>r?.includes(e)),o=n.some(e=>i?.includes(e));return a?`left`:o?`right`:!1},e.getPinnedIndex=()=>{var n;let r=e.getIsPinned();return r?((n=t.getState().columnPinning)==null||(n=n[r])==null?void 0:n.indexOf(e.id))??-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=k(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{let r=[...t??[],...n??[]];return e.filter(e=>!r.includes(e.column.id))},A(t.options,`debugRows`,`getCenterVisibleCells`)),e.getLeftVisibleCells=k(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>(t??[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:`left`})),A(t.options,`debugRows`,`getLeftVisibleCells`)),e.getRightVisibleCells=k(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(t??[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:`right`})),A(t.options,`debugRows`,`getRightVisibleCells`))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>e.setColumnPinning(t?ht():e.initialState?.columnPinning??ht()),e.getIsSomeColumnsPinned=t=>{let n=e.getState().columnPinning;return t?!!n[t]?.length:!!(n.left?.length||n.right?.length)},e.getLeftLeafColumns=k(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(t??[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),A(e.options,`debugColumns`,`getLeftLeafColumns`)),e.getRightLeafColumns=k(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(t??[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),A(e.options,`debugColumns`,`getRightLeafColumns`)),e.getCenterLeafColumns=k(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{let r=[...t??[],...n??[]];return e.filter(e=>!r.includes(e.id))},A(e.options,`debugColumns`,`getCenterLeafColumns`))}};function _t(e){return e||(typeof document<`u`?document:null)}var L={size:150,minSize:20,maxSize:2**53-1},R=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),vt={getDefaultColumnDef:()=>L,getInitialState:e=>({columnSizing:{},columnSizingInfo:R(),...e}),getDefaultOptions:e=>({columnResizeMode:`onEnd`,columnResizeDirection:`ltr`,onColumnSizingChange:D(`columnSizing`,e),onColumnSizingInfoChange:D(`columnSizingInfo`,e)}),createColumn:(e,t)=>{e.getSize=()=>{let n=t.getState().columnSizing[e.id];return Math.min(Math.max(e.columnDef.minSize??L.minSize,n??e.columnDef.size??L.size),e.columnDef.maxSize??L.maxSize)},e.getStart=k(e=>[e,V(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),A(t.options,`debugColumns`,`getStart`)),e.getAfter=k(e=>[e,V(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),A(t.options,`debugColumns`,`getAfter`)),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:n,...r}=t;return r})},e.getCanResize=()=>(e.columnDef.enableResizing??!0)&&(t.options.enableColumnResizing??!0),e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0,n=e=>{e.subHeaders.length?e.subHeaders.forEach(n):t+=e.column.getSize()??0};return n(e),t},e.getStart=()=>{if(e.index>0){let t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{let r=t.getColumn(e.column.id),i=r?.getCanResize();return a=>{if(!r||!i||(a.persist==null||a.persist(),B(a)&&a.touches&&a.touches.length>1))return;let o=e.getSize(),s=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[r.id,r.getSize()]],c=B(a)?Math.round(a.touches[0].clientX):a.clientX,l={},u=(e,n)=>{typeof n==`number`&&(t.setColumnSizingInfo(e=>{let r=t.options.columnResizeDirection===`rtl`?-1:1,i=(n-(e?.startOffset??0))*r,a=Math.max(i/(e?.startSize??0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;l[t]=Math.round(Math.max(n+n*a,0)*100)/100}),{...e,deltaOffset:i,deltaPercentage:a}}),(t.options.columnResizeMode===`onChange`||e===`end`)&&t.setColumnSizing(e=>({...e,...l})))},d=e=>u(`move`,e),f=e=>{u(`end`,e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},p=_t(n),m={moveHandler:e=>d(e.clientX),upHandler:e=>{p?.removeEventListener(`mousemove`,m.moveHandler),p?.removeEventListener(`mouseup`,m.upHandler),f(e.clientX)}},h={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{p?.removeEventListener(`touchmove`,h.moveHandler),p?.removeEventListener(`touchend`,h.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(e.touches[0]?.clientX)}},g=yt()?{passive:!1}:!1;B(a)?(p?.addEventListener(`touchmove`,h.moveHandler,g),p?.addEventListener(`touchend`,h.upHandler,g)):(p?.addEventListener(`mousemove`,m.moveHandler,g),p?.addEventListener(`mouseup`,m.upHandler,g)),t.setColumnSizingInfo(e=>({...e,startOffset:c,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{e.setColumnSizing(t?{}:e.initialState.columnSizing??{})},e.resetHeaderSizeInfo=t=>{e.setColumnSizingInfo(t?R():e.initialState.columnSizingInfo??R())},e.getTotalSize=()=>e.getHeaderGroups()[0]?.headers.reduce((e,t)=>e+t.getSize(),0)??0,e.getLeftTotalSize=()=>e.getLeftHeaderGroups()[0]?.headers.reduce((e,t)=>e+t.getSize(),0)??0,e.getCenterTotalSize=()=>e.getCenterHeaderGroups()[0]?.headers.reduce((e,t)=>e+t.getSize(),0)??0,e.getRightTotalSize=()=>e.getRightHeaderGroups()[0]?.headers.reduce((e,t)=>e+t.getSize(),0)??0}},z=null;function yt(){if(typeof z==`boolean`)return z;let e=!1;try{let t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener(`test`,n,t),window.removeEventListener(`test`,n)}catch{e=!1}return z=e,z}function B(e){return e.type===`touchstart`}var bt={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:D(`columnVisibility`,e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{let n=e.columns;return(n.length?n.some(e=>e.getIsVisible()):t.getState().columnVisibility?.[e.id])??!0},e.getCanHide=()=>(e.columnDef.enableHiding??!0)&&(t.options.enableHiding??!0),e.getToggleVisibilityHandler=()=>t=>{e.toggleVisibility==null||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=k(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),A(t.options,`debugRows`,`_getAllVisibleCells`)),e.getVisibleCells=k(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],A(t.options,`debugRows`,`getVisibleCells`))},createTable:e=>{let t=(t,n)=>k(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join(`_`)],e=>e.filter(e=>e.getIsVisible==null?void 0:e.getIsVisible()),A(e.options,`debugColumns`,t));e.getVisibleFlatColumns=t(`getVisibleFlatColumns`,()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t(`getVisibleLeafColumns`,()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t(`getLeftVisibleLeafColumns`,()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t(`getRightVisibleLeafColumns`,()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t(`getCenterVisibleLeafColumns`,()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{e.setColumnVisibility(t?{}:e.initialState.columnVisibility??{})},e.toggleAllColumnsVisible=t=>{t??=!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>({...e,[n.id]:t||!(n.getCanHide!=null&&n.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(e.getIsVisible!=null&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>e.getIsVisible==null?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{e.toggleAllColumnsVisible(t.target?.checked)}}};function V(e,t){return t?t===`center`?e.getCenterVisibleLeafColumns():t===`left`?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}var xt={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,`__global__`),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,`__global__`),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,`__global__`),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},St={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:D(`globalFilter`,e),globalFilterFn:`auto`,getColumnCanGlobalFilter:t=>{var n;let r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r==`string`||typeof r==`number`}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>(e.columnDef.enableGlobalFilter??!0)&&(t.options.enableGlobalFilter??!0)&&(t.options.enableFilters??!0)&&((t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))??!0)&&!!e.accessorFn},createTable:e=>{e.getGlobalAutoFilterFn=()=>P.includesString,e.getGlobalFilterFn=()=>{let{globalFilterFn:t}=e.options;return O(t)?t:t===`auto`?e.getGlobalAutoFilterFn():e.options.filterFns?.[t]??P[t]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},Ct={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:D(`expanded`,e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{if(!t){e._queue(()=>{t=!0});return}if(e.options.autoResetAll??e.options.autoResetExpanded??!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=t=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{t??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{e.setExpanded(t?{}:e.initialState?.expanded??{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{t.persist==null||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{let t=e.getState().expanded;return t===!0||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{let t=e.getState().expanded;return typeof t==`boolean`?t===!0:!(!Object.keys(t).length||e.getRowModel().flatRows.some(e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{let n=e.split(`.`);t=Math.max(t,n.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{let i=r===!0?!0:!!(r!=null&&r[e.id]),a={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(e=>{a[e]=!0}):a=r,n??=!i,!i&&n)return{...a,[e.id]:!0};if(i&&!n){let{[e.id]:t,...n}=a;return n}return r})},e.getIsExpanded=()=>{let n=t.getState().expanded;return!!((t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))??(n===!0||n?.[e.id]))},e.getCanExpand=()=>{var n;return(t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))??((t.options.enableExpanding??!0)&&!!((n=e.subRows)!=null&&n.length))},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{let t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},H=0,U=10,W=()=>({pageIndex:H,pageSize:U}),wt={getInitialState:e=>({...e,pagination:{...W(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:D(`pagination`,e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{if(!t){e._queue(()=>{t=!0});return}if(e.options.autoResetAll??e.options.autoResetPageIndex??!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=t=>e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(e=>E(t,e)),e.resetPagination=t=>{e.setPagination(t?W():e.initialState.pagination??W())},e.setPageIndex=t=>{e.setPagination(n=>{let r=E(t,n.pageIndex),i=e.options.pageCount===void 0||e.options.pageCount===-1?2**53-1:e.options.pageCount-1;return r=Math.max(0,Math.min(r,i)),{...n,pageIndex:r}})},e.resetPageIndex=t=>{var n;e.setPageIndex(t?H:((n=e.initialState)==null||(n=n.pagination)==null?void 0:n.pageIndex)??H)},e.resetPageSize=t=>{var n;e.setPageSize(t?U:((n=e.initialState)==null||(n=n.pagination)==null?void 0:n.pageSize)??U)},e.setPageSize=t=>{e.setPagination(e=>{let n=Math.max(1,E(t,e.pageSize)),r=e.pageSize*e.pageIndex,i=Math.floor(r/n);return{...e,pageIndex:i,pageSize:n}})},e.setPageCount=t=>e.setPagination(n=>{let r=E(t,e.options.pageCount??-1);return typeof r==`number`&&(r=Math.max(-1,r)),{...n,pageCount:r}}),e.getPageOptions=k(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...Array(e)].fill(null).map((e,t)=>t)),t},A(e.options,`debugTable`,`getPageOptions`)),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{let{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return n===-1?!0:n===0?!1:te.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>e.options.pageCount??Math.ceil(e.getRowCount()/e.getState().pagination.pageSize),e.getRowCount=()=>e.options.rowCount??e.getPrePaginationRowModel().rows.length}},G=()=>({top:[],bottom:[]}),Tt={getInitialState:e=>({rowPinning:G(),...e}),getDefaultOptions:e=>({onRowPinningChange:D(`rowPinning`,e)}),createRow:(e,t)=>{e.pin=(n,r,i)=>{let a=r?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],o=i?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],s=new Set([...o,e.id,...a]);t.setRowPinning(e=>n===`bottom`?{top:(e?.top??[]).filter(e=>!(s!=null&&s.has(e))),bottom:[...(e?.bottom??[]).filter(e=>!(s!=null&&s.has(e))),...Array.from(s)]}:n===`top`?{top:[...(e?.top??[]).filter(e=>!(s!=null&&s.has(e))),...Array.from(s)],bottom:(e?.bottom??[]).filter(e=>!(s!=null&&s.has(e)))}:{top:(e?.top??[]).filter(e=>!(s!=null&&s.has(e))),bottom:(e?.bottom??[]).filter(e=>!(s!=null&&s.has(e)))})},e.getCanPin=()=>{let{enableRowPinning:n,enablePinning:r}=t.options;return typeof n==`function`?n(e):n??r??!0},e.getIsPinned=()=>{let n=[e.id],{top:r,bottom:i}=t.getState().rowPinning,a=n.some(e=>r?.includes(e)),o=n.some(e=>i?.includes(e));return a?`top`:o?`bottom`:!1},e.getPinnedIndex=()=>{let n=e.getIsPinned();return n?((n===`top`?t.getTopRows():t.getBottomRows())?.map(e=>{let{id:t}=e;return t}))?.indexOf(e.id)??-1:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>e.setRowPinning(t?G():e.initialState?.rowPinning??G()),e.getIsSomeRowsPinned=t=>{let n=e.getState().rowPinning;return t?!!n[t]?.length:!!(n.top?.length||n.bottom?.length)},e._getPinnedRows=(t,n,r)=>(e.options.keepPinnedRows??!0?(n??[]).map(t=>{let n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null}):(n??[]).map(e=>t.find(t=>t.id===e))).filter(Boolean).map(e=>({...e,position:r})),e.getTopRows=k(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,`top`),A(e.options,`debugRows`,`getTopRows`)),e.getBottomRows=k(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,`bottom`),A(e.options,`debugRows`,`getBottomRows`)),e.getCenterRows=k(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,n)=>{let r=new Set([...t??[],...n??[]]);return e.filter(e=>!r.has(e.id))},A(e.options,`debugRows`,`getCenterRows`))}},Et={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:D(`rowSelection`,e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>e.setRowSelection(t?{}:e.initialState.rowSelection??{}),e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=t===void 0?!e.getIsAllRowsSelected():t;let r={...n},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(e=>{e.getCanSelect()&&(r[e.id]=!0)}):i.forEach(e=>{delete r[e.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{let r=t===void 0?!e.getIsAllPageRowsSelected():t,i={...n};return e.getRowModel().rows.forEach(t=>{K(i,t.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=k(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?q(e,n):{rows:[],flatRows:[],rowsById:{}},A(e.options,`debugTable`,`getSelectedRowModel`)),e.getFilteredSelectedRowModel=k(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?q(e,n):{rows:[],flatRows:[],rowsById:{}},A(e.options,`debugTable`,`getFilteredSelectedRowModel`)),e.getGroupedSelectedRowModel=k(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?q(e,n):{rows:[],flatRows:[],rowsById:{}},A(e.options,`debugTable`,`getGroupedSelectedRowModel`)),e.getIsAllRowsSelected=()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState(),r=!!(t.length&&Object.keys(n).length);return r&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:n}=e.getState(),r=!!t.length;return r&&t.some(e=>!n[e.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{let t=Object.keys(e.getState().rowSelection??{}).length;return t>0&&t{let t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{let i=e.getIsSelected();t.setRowSelection(a=>{if(n=n===void 0?!i:n,e.getCanSelect()&&i===n)return a;let o={...a};return K(o,e.id,n,r?.selectChildren??!0,t),o})},e.getIsSelected=()=>{let{rowSelection:n}=t.getState();return J(e,n)},e.getIsSomeSelected=()=>{let{rowSelection:n}=t.getState();return Y(e,n)===`some`},e.getIsAllSubRowsSelected=()=>{let{rowSelection:n}=t.getState();return Y(e,n)===`all`},e.getCanSelect=()=>typeof t.options.enableRowSelection==`function`?t.options.enableRowSelection(e):t.options.enableRowSelection??!0,e.getCanSelectSubRows=()=>typeof t.options.enableSubRowSelection==`function`?t.options.enableSubRowSelection(e):t.options.enableSubRowSelection??!0,e.getCanMultiSelect=()=>typeof t.options.enableMultiRowSelection==`function`?t.options.enableMultiRowSelection(e):t.options.enableMultiRowSelection??!0,e.getToggleSelectedHandler=()=>{let t=e.getCanSelect();return n=>{t&&e.toggleSelected(n.target?.checked)}}}},K=(e,t,n,r,i)=>{var a;let o=i.getRow(t,!0);n?(o.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),o.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(a=o.subRows)!=null&&a.length&&o.getCanSelectSubRows()&&o.subRows.forEach(t=>K(e,t.id,n,r,i))};function q(e,t){let n=e.getState().rowSelection,r=[],i={},a=function(e,t){return e.map(e=>{var t;let o=J(e,n);if(o&&(r.push(e),i[e.id]=e),(t=e.subRows)!=null&&t.length&&(e={...e,subRows:a(e.subRows)}),o)return e}).filter(Boolean)};return{rows:a(t.rows),flatRows:r,rowsById:i}}function J(e,t){return t[e.id]??!1}function Y(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let i=!0,a=!1;return e.subRows.forEach(e=>{if(!(a&&!i)&&(e.getCanSelect()&&(J(e,t)?a=!0:i=!1),e.subRows&&e.subRows.length)){let n=Y(e,t);n===`all`?a=!0:(n===`some`&&(a=!0),i=!1)}}),i?`all`:a?`some`:!1}var X=/([0-9]+)/gm,Dt=(e,t,n)=>Nt(Q(e.getValue(n)).toLowerCase(),Q(t.getValue(n)).toLowerCase()),Ot=(e,t,n)=>Nt(Q(e.getValue(n)),Q(t.getValue(n))),kt=(e,t,n)=>Z(Q(e.getValue(n)).toLowerCase(),Q(t.getValue(n)).toLowerCase()),At=(e,t,n)=>Z(Q(e.getValue(n)),Q(t.getValue(n))),jt=(e,t,n)=>{let r=e.getValue(n),i=t.getValue(n);return r>i?1:rZ(e.getValue(n),t.getValue(n));function Z(e,t){return e===t?0:e>t?1:-1}function Q(e){return typeof e==`number`?isNaN(e)||e===1/0||e===-1/0?``:String(e):typeof e==`string`?e:``}function Nt(e,t){let n=e.split(X).filter(Boolean),r=t.split(X).filter(Boolean);for(;n.length&&r.length;){let e=n.shift(),t=r.shift(),i=parseInt(e,10),a=parseInt(t,10),o=[i,a].sort();if(isNaN(o[0])){if(e>t)return 1;if(t>e)return-1;continue}if(isNaN(o[1]))return isNaN(i)?-1:1;if(i>a)return 1;if(a>i)return-1}return n.length-r.length}var $={alphanumeric:Dt,alphanumericCaseSensitive:Ot,text:kt,textCaseSensitive:At,datetime:jt,basic:Mt},Pt=[$e,bt,mt,gt,tt,ut,xt,St,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:`auto`,sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:D(`sorting`,e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{let n=t.getFilteredRowModel().flatRows.slice(10),r=!1;for(let t of n){let n=t?.getValue(e.id);if(Object.prototype.toString.call(n)===`[object Date]`)return $.datetime;if(typeof n==`string`&&(r=!0,n.split(X).length>1))return $.alphanumeric}return r?$.text:$.basic},e.getAutoSortDir=()=>typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id)==`string`?`asc`:`desc`,e.getSortingFn=()=>{if(!e)throw Error();return O(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn===`auto`?e.getAutoSortingFn():t.options.sortingFns?.[e.columnDef.sortingFn]??$[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{let i=e.getNextSortingOrder(),a=n!=null;t.setSorting(o=>{let s=o?.find(t=>t.id===e.id),c=o?.findIndex(t=>t.id===e.id),l=[],u,d=a?n:i===`desc`;return u=o!=null&&o.length&&e.getCanMultiSort()&&r?s?`toggle`:`add`:o!=null&&o.length&&c!==o.length-1?`replace`:s?`toggle`:`replace`,u===`toggle`&&(a||i||(u=`remove`)),u===`add`?(l=[...o,{id:e.id,desc:d}],l.splice(0,l.length-(t.options.maxMultiSortColCount??2**53-1))):l=u===`toggle`?o.map(t=>t.id===e.id?{...t,desc:d}:t):u===`remove`?o.filter(t=>t.id!==e.id):[{id:e.id,desc:d}],l})},e.getFirstSortDir=()=>e.columnDef.sortDescFirst??t.options.sortDescFirst??e.getAutoSortDir()===`desc`?`desc`:`asc`,e.getNextSortingOrder=n=>{let r=e.getFirstSortDir(),i=e.getIsSorted();return i?i!==r&&(t.options.enableSortingRemoval??!0)&&(!n||(t.options.enableMultiRemove??!0))?!1:i===`desc`?`asc`:`desc`:r},e.getCanSort=()=>(e.columnDef.enableSorting??!0)&&(t.options.enableSorting??!0)&&!!e.accessorFn,e.getCanMultiSort=()=>e.columnDef.enableMultiSort??t.options.enableMultiSort??!!e.accessorFn,e.getIsSorted=()=>{let n=t.getState().sorting?.find(t=>t.id===e.id);return n?n.desc?`desc`:`asc`:!1},e.getSortIndex=()=>t.getState().sorting?.findIndex(t=>t.id===e.id)??-1,e.clearSorting=()=>{t.setSorting(t=>t!=null&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{let n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{e.setSorting(t?[]:e.initialState?.sorting??[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},ft,Ct,wt,Tt,Et,vt];function Ft(e){let t=[...Pt,...e._features??[]],n={_features:t},r=n._features.reduce((e,t)=>Object.assign(e,t.getDefaultOptions==null?void 0:t.getDefaultOptions(n)),{}),i=e=>n.options.mergeOptions?n.options.mergeOptions(r,e):{...r,...e},a={...e.initialState??{}};n._features.forEach(e=>{a=(e.getInitialState==null?void 0:e.getInitialState(a))??a});let o=[],s=!1,c={_features:t,options:{...r,...e},initialState:a,_queue:e=>{o.push(e),s||(s=!0,Promise.resolve().then(()=>{for(;o.length;)o.shift()();s=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{n.setState(n.initialState)},setOptions:e=>{n.options=i(E(e,n.options))},getState:()=>n.options.state,setState:e=>{n.options.onStateChange==null||n.options.onStateChange(e)},_getRowId:(e,t,r)=>(n.options.getRowId==null?void 0:n.options.getRowId(e,t,r))??`${r?[r.id,t].join(`.`):t}`,getCoreRowModel:()=>(n._getCoreRowModel||=n.options.getCoreRowModel(n),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(e,t)=>{let r=(t?n.getPrePaginationRowModel():n.getRowModel()).rowsById[e];if(!r&&(r=n.getCoreRowModel().rowsById[e],!r))throw Error();return r},_getDefaultColumnDef:k(()=>[n.options.defaultColumn],e=>(e??={},{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t;return((t=e.renderValue())==null||t.toString==null?void 0:t.toString())??null},...n._features.reduce((e,t)=>Object.assign(e,t.getDefaultColumnDef==null?void 0:t.getDefaultColumnDef()),{}),...e}),A(e,`debugColumns`,`_getDefaultColumnDef`)),_getColumnDefs:()=>n.options.columns,getAllColumns:k(()=>[n._getColumnDefs()],e=>{let t=function(e,r,i){return i===void 0&&(i=0),e.map(e=>{let a=Ze(n,e,i,r),o=e;return a.columns=o.columns?t(o.columns,a,i+1):[],a})};return t(e)},A(e,`debugColumns`,`getAllColumns`)),getAllFlatColumns:k(()=>[n.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),A(e,`debugColumns`,`getAllFlatColumns`)),_getAllFlatColumnsById:k(()=>[n.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),A(e,`debugColumns`,`getAllFlatColumnsById`)),getAllLeafColumns:k(()=>[n.getAllColumns(),n._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),A(e,`debugColumns`,`getAllLeafColumns`)),getColumn:e=>n._getAllFlatColumnsById()[e]};Object.assign(n,c);for(let e=0;ek(()=>[e.options.data],t=>{let n={rows:[],flatRows:[],rowsById:{}},r=function(t,i,a){i===void 0&&(i=0);let o=[];for(let c=0;ce._autoResetPageIndex()))}function Lt(e){let t=[],n=e=>{var r;t.push(e),(r=e.subRows)!=null&&r.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function Rt(e,t,n){return n.options.filterFromLeafRows?zt(e,t,n):Bt(e,t,n)}function zt(e,t,n){let r=[],i={},a=n.options.maxLeafRowFilterDepth??100,o=function(e,s){s===void 0&&(s=0);let c=[];for(let u=0;uk(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter,e.getFilteredRowModel()],(n,r,i)=>{if(!n.rows.length||!(r!=null&&r.length)&&!i)return n;let a=[...r.map(e=>e.id).filter(e=>e!==t),i?`__global__`:void 0].filter(Boolean);return Rt(n.rows,e=>{for(let t=0;tk(()=>[e.getColumn(t)?.getFacetedRowModel()],e=>{if(!e)return new Map;let n=new Map;for(let r=0;rk(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{if(!t.rows.length||!(n!=null&&n.length)&&!r){for(let e=0;e{let n=e.getColumn(t.id);if(!n)return;let r=n.getFilterFn();r&&i.push({id:t.id,filterFn:r,resolvedValue:(r.resolveFilterValue==null?void 0:r.resolveFilterValue(t.value))??t.value})});let o=(n??[]).map(e=>e.id),s=e.getGlobalFilterFn(),c=e.getAllLeafColumns().filter(e=>e.getCanGlobalFilter());r&&s&&c.length&&(o.push(`__global__`),c.forEach(e=>{a.push({id:e.id,filterFn:s,resolvedValue:(s.resolveFilterValue==null?void 0:s.resolveFilterValue(r))??r})}));let l,u;for(let e=0;e{n.columnFiltersMeta[t]=e})}if(a.length){for(let e=0;e{n.columnFiltersMeta[t]=e})){n.columnFilters.__global__=!0;break}}n.columnFilters.__global__!==!0&&(n.columnFilters.__global__=!1)}}return Rt(t.rows,e=>{for(let t=0;te._autoResetPageIndex()))}function Wt(e){return e=>k(()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded],(t,n)=>{if(!n.rows.length)return n;let{pageSize:r,pageIndex:i}=t,{rows:a,flatRows:o,rowsById:s}=n,c=r*i,l=c+r;a=a.slice(c,l);let u;u=e.options.paginateExpandedRows?{rows:a,flatRows:o,rowsById:s}:Lt({rows:a,flatRows:o,rowsById:s}),u.flatRows=[];let d=e=>{u.flatRows.push(e),e.subRows.length&&e.subRows.forEach(d)};return u.rows.forEach(d),u},A(e.options,`debugTable`,`getPaginationRowModel`))}function Gt(){return e=>k(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;let r=e.getState().sorting,i=[],a=r.filter(t=>e.getColumn(t.id)?.getCanSort()),o={};a.forEach(t=>{let n=e.getColumn(t.id);n&&(o[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})});let s=e=>{let t=e.map(e=>({...e}));return t.sort((e,t)=>{for(let n=0;n{var t;i.push(e),(t=e.subRows)!=null&&t.length&&(e.subRows=s(e.subRows))}),t};return{rows:s(n.rows),flatRows:i,rowsById:n.rowsById}},A(e.options,`debugTable`,`getSortedRowModel`,()=>e._autoResetPageIndex()))}function Kt(e,t){return e?qt(e)?w.createElement(e,t):e:null}function qt(e){return Jt(e)||typeof e==`function`||Yt(e)}function Jt(e){return typeof e==`function`&&(()=>{let t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function Yt(e){return typeof e==`object`&&typeof e.$$typeof==`symbol`&&[`react.memo`,`react.forward_ref`].includes(e.$$typeof.description)}function Xt(e){let t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=w.useState(()=>({current:Ft(t)})),[r,i]=w.useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{i(t),e.onStateChange==null||e.onStateChange(t)}})),n.current}function Zt({column:e,title:t,className:n}){return e.getCanSort()?(0,T.jsx)(`div`,{className:_(`flex items-center space-x-2`,n),children:(0,T.jsxs)(ue,{children:[(0,T.jsx)(ae,{asChild:!0,children:(0,T.jsxs)(v,{className:`h-8 data-[state=open]:bg-accent`,size:`sm`,variant:`ghost`,children:[(0,T.jsx)(`span`,{children:t}),(()=>{let t=e.getIsSorted();return t===`desc`?(0,T.jsx)(He,{className:`ms-2 h-4 w-4`}):t===`asc`?(0,T.jsx)(Ue,{className:`ms-2 h-4 w-4`}):(0,T.jsx)(we,{className:`ms-2 h-4 w-4`})})()]})}),(0,T.jsxs)(ce,{align:`start`,children:[(0,T.jsxs)(y,{onClick:()=>e.toggleSorting(!1),children:[(0,T.jsx)(Ue,{className:`size-3.5 text-muted-foreground/70`}),ne()]}),(0,T.jsxs)(y,{onClick:()=>e.toggleSorting(!0),children:[(0,T.jsx)(He,{className:`size-3.5 text-muted-foreground/70`}),r()]}),e.getCanHide()&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(le,{}),(0,T.jsxs)(y,{onClick:()=>e.toggleVisibility(!1),children:[(0,T.jsx)(Te,{className:`size-3.5 text-muted-foreground/70`}),l()]})]})]})]})}):(0,T.jsx)(`div`,{className:_(`px-2`,n),children:t})}var Qt={switch:`h-5 w-9 rounded-full`,action:`h-8 w-8 rounded-md`,badge:`h-5 rounded-full`,id:`h-4`,date:`h-4`,short:`h-4`,long:`h-4`,amount:`h-4`};function $t({type:e=`long`}){return(0,T.jsx)(Ce,{className:Qt[e]})}var en=`group/row`,tn=ie(`bg-background group-hover/row:bg-muted group-data-[state=selected]/row:bg-muted`,{variants:{sticky:{left:`sticky inset-s-0 z-10`,right:`sticky inset-e-0 z-10`,none:``},shadow:{true:``,false:``},skeleton:{action:`w-8`,switch:`w-9`,badge:``,id:``,date:``,short:``,long:``,amount:``,none:``}},compoundVariants:[{sticky:`left`,shadow:!0,class:`drop-shadow-[0_1px_2px_rgb(0_0_0/_0.1)] dark:drop-shadow-[0_1px_2px_rgb(255_255_255/_0.1)]`},{sticky:`right`,shadow:!0,class:`drop-shadow-[0_-1px_2px_rgb(0_0_0/_0.1)] dark:drop-shadow-[0_-1px_2px_rgb(255_255_255/_0.1)]`}],defaultVariants:{sticky:`none`,shadow:!0,skeleton:`none`}});function nn(e){return _(`px-4`,tn({sticky:e?.sticky,shadow:e?.shadow,skeleton:e?.skeleton}),e?.className,e?.td?.className)}function rn(e){return _(tn({sticky:e?.sticky,shadow:e?.shadow,skeleton:e?.skeleton}),e?.className,e?.th?.className)}function an({table:e,loadingRows:t}){let n=e.getVisibleLeafColumns();return(0,T.jsx)(T.Fragment,{children:Array.from({length:t},(e,t)=>(0,T.jsx)(S,{className:en,children:n.map(e=>{let t=e.columnDef.meta;return(0,T.jsx)(C,{className:nn(t),children:(0,T.jsx)($t,{type:t?.skeleton??`long`})},e.id)})},`skeleton-${t}`))})}function on({table:e,renderExpandedRow:t}){return(0,T.jsx)(T.Fragment,{children:e.getRowModel().rows.map(e=>{let n=(0,T.jsx)(S,{className:_(en,e.depth>0&&`bg-muted/40`),"data-state":e.getIsSelected()?`selected`:void 0,children:e.getVisibleCells().map(e=>{let t=e.column.columnDef.meta;return(0,T.jsx)(C,{className:nn(t),children:Kt(e.column.columnDef.cell,e.getContext())},e.id)})},e.id);return t&&e.getIsExpanded()?(0,T.jsxs)(w.Fragment,{children:[n,(0,T.jsx)(S,{children:(0,T.jsx)(C,{className:`bg-background p-4`,colSpan:e.getVisibleCells().length,children:t(e)})})]},e.id):n})})}function sn({colSpan:e,text:t}){return(0,T.jsx)(S,{children:(0,T.jsx)(C,{className:`p-0`,colSpan:e,children:(0,T.jsx)(Oe,{description:t})})})}function cn({table:e,className:t,emptyText:n=c(),loading:r=!1,loadingRows:i=10,renderExpandedRow:a}){let o=e.getVisibleLeafColumns(),s=e.getRowModel().rows,l=r||s.length>0;function u(){return r?(0,T.jsx)(an,{loadingRows:i,table:e}):s.length?(0,T.jsx)(on,{renderExpandedRow:a,table:e}):(0,T.jsx)(sn,{colSpan:o.length,text:n})}return(0,T.jsx)(`div`,{className:`overflow-x-auto rounded-md border`,children:(0,T.jsxs)(Ve,{className:t,children:[l&&(0,T.jsx)(Re,{children:e.getHeaderGroups().map(e=>(0,T.jsx)(S,{className:en,children:e.headers.map(e=>{let t=e.column.columnDef.meta;return(0,T.jsx)(ze,{className:rn(t),colSpan:e.colSpan,children:e.isPlaceholder?null:Kt(e.column.columnDef.header,e.getContext())},e.id)})},e.id))}),(0,T.jsx)(Be,{children:u()})]})})}function ln({table:e,className:t}){let n=e.getState().pagination.pageIndex+1,r=e.getPageCount(),i=re(n,r);return(0,T.jsxs)(`div`,{className:_(`flex items-center justify-between`,`@max-2xl/content:flex-col-reverse @max-2xl/content:gap-4`,t),children:[(0,T.jsxs)(`div`,{className:`flex w-full items-center justify-between`,children:[(0,T.jsx)(`div`,{className:`flex @2xl/content:hidden w-auto items-center justify-center whitespace-nowrap font-medium text-sm`,children:u({current:n,total:r})}),(0,T.jsxs)(`div`,{className:`flex @max-2xl/content:flex-row-reverse items-center gap-2`,children:[(0,T.jsxs)(ye,{onValueChange:t=>{e.setPageSize(Number(t))},value:`${e.getState().pagination.pageSize}`,children:[(0,T.jsx)(ge,{className:`h-8 w-17.5`,children:(0,T.jsx)(he,{placeholder:e.getState().pagination.pageSize})}),(0,T.jsx)(_e,{side:`top`,children:[10,20,30,40,50].map(e=>(0,T.jsx)(ve,{value:`${e}`,children:e},e))})]}),(0,T.jsx)(`p`,{className:`hidden font-medium text-sm sm:block`,children:p()})]})]}),(0,T.jsxs)(`div`,{className:`flex items-center sm:space-x-6 lg:space-x-8`,children:[(0,T.jsx)(`div`,{className:`flex @max-3xl/content:hidden w-auto items-center justify-center whitespace-nowrap font-medium text-sm`,children:u({current:n,total:r})}),(0,T.jsxs)(`div`,{className:`flex items-center space-x-2`,children:[(0,T.jsxs)(v,{className:`@max-md/content:hidden size-8 p-0`,disabled:!e.getCanPreviousPage(),onClick:()=>e.setPageIndex(0),variant:`outline`,children:[(0,T.jsx)(`span`,{className:`sr-only`,children:h()}),(0,T.jsx)(Ge,{className:`h-4 w-4`})]}),(0,T.jsxs)(v,{className:`size-8 p-0`,disabled:!e.getCanPreviousPage(),onClick:()=>e.previousPage(),variant:`outline`,children:[(0,T.jsx)(`span`,{className:`sr-only`,children:s()}),(0,T.jsx)(We,{className:`h-4 w-4`})]}),i.map((t,r)=>(0,T.jsx)(`div`,{className:`flex items-center`,children:t===`...`?(0,T.jsx)(`span`,{className:`px-1 text-muted-foreground text-sm`,children:`...`}):(0,T.jsxs)(v,{className:`h-8 min-w-8 px-2`,onClick:()=>e.setPageIndex(t-1),variant:n===t?`default`:`outline`,children:[(0,T.jsx)(`span`,{className:`sr-only`,children:o({page:t})}),t]})},`page-${t}-${r}`)),(0,T.jsxs)(v,{className:`size-8 p-0`,disabled:!e.getCanNextPage(),onClick:()=>e.nextPage(),variant:`outline`,children:[(0,T.jsx)(`span`,{className:`sr-only`,children:te()}),(0,T.jsx)(Se,{className:`h-4 w-4`})]}),(0,T.jsxs)(v,{className:`@max-md/content:hidden size-8 p-0`,disabled:!e.getCanNextPage(),onClick:()=>e.setPageIndex(e.getPageCount()-1),variant:`outline`,children:[(0,T.jsx)(`span`,{className:`sr-only`,children:f()}),(0,T.jsx)(Ke,{className:`h-4 w-4`})]})]})]})]})}function un({column:e,title:t,options:r}){let i=e?.getFacetedUniqueValues(),a=new Set(e?.getFilterValue());return(0,T.jsxs)(me,{children:[(0,T.jsx)(pe,{asChild:!0,children:(0,T.jsxs)(v,{className:`h-8 border-dashed`,size:`sm`,variant:`outline`,children:[(0,T.jsx)(qe,{className:`size-4`}),t,a?.size>0&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(be,{className:`mx-2 h-4`,orientation:`vertical`}),(0,T.jsx)(x,{className:`rounded-sm px-1 font-normal lg:hidden`,variant:`secondary`,children:a.size}),(0,T.jsx)(`div`,{className:`hidden space-x-1 lg:flex`,children:a.size>2?(0,T.jsxs)(x,{className:`rounded-sm px-1 font-normal`,variant:`secondary`,children:[a.size,` selected`]}):r.filter(e=>a.has(e.value)).map(e=>(0,T.jsx)(x,{className:`rounded-sm px-1 font-normal`,variant:`secondary`,children:e.label},e.value))})]})]})}),(0,T.jsx)(fe,{align:`start`,className:`w-50 p-0`,children:(0,T.jsxs)(Fe,{children:[(0,T.jsx)(ke,{placeholder:t}),(0,T.jsxs)(Pe,{children:[(0,T.jsx)(Ne,{children:n()}),(0,T.jsx)(je,{children:r.map(t=>{let n=a.has(t.value);return(0,T.jsxs)(Me,{onSelect:()=>{n?a.delete(t.value):a.add(t.value);let r=Array.from(a);e?.setFilterValue(r.length?r:void 0)},children:[(0,T.jsx)(`div`,{className:_(`flex size-4 items-center justify-center rounded-sm border border-primary`,n?`bg-primary text-primary-foreground`:`opacity-50 [&_svg]:invisible`),children:(0,T.jsx)(xe,{className:_(`h-4 w-4 text-background`)})}),t.icon&&(0,T.jsx)(t.icon,{className:`size-4 text-muted-foreground`}),(0,T.jsx)(`span`,{children:t.label}),i?.get(t.value)&&(0,T.jsx)(`span`,{className:`ms-auto flex h-4 w-4 items-center justify-center font-mono text-xs`,children:i.get(t.value)})]},t.value)})}),a.size>0&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(Ae,{}),(0,T.jsx)(je,{children:(0,T.jsx)(Me,{className:`justify-center text-center`,onSelect:()=>e?.setFilterValue(void 0),children:`Clear filters`})})]})]})]})})]})}function dn(e){let t=e.columnDef.meta?.label;if(typeof t==`string`&&t.trim())return t;let n=e.columnDef.header;return typeof n==`string`&&n.trim()?n:e.id}function fn({table:e}){return(0,T.jsxs)(ue,{modal:!1,children:[(0,T.jsx)(de,{asChild:!0,children:(0,T.jsxs)(v,{className:`ms-auto hidden h-8 lg:flex`,size:`sm`,variant:`outline`,children:[(0,T.jsx)(Ee,{className:`size-4`}),i()]})}),(0,T.jsxs)(ce,{align:`end`,className:`w-37.5`,children:[(0,T.jsx)(se,{children:d()}),(0,T.jsx)(le,{}),e.getAllColumns().filter(e=>e.accessorFn!==void 0&&e.getCanHide()).map(e=>(0,T.jsx)(oe,{checked:e.getIsVisible(),className:`capitalize`,onCheckedChange:t=>e.toggleVisibility(!!t),children:dn(e)},e.id))]})]})}function pn({table:e,searchPlaceholder:t=a(),searchKey:n,filters:r=[],onRefresh:i}){let o=e.getState().columnFilters.length>0||e.getState().globalFilter;return(0,T.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,T.jsxs)(`div`,{className:`flex flex-1 flex-col-reverse items-start gap-y-2 sm:flex-row sm:items-center sm:space-x-2`,children:[n?(0,T.jsx)(Le,{className:`h-8 w-37.5 lg:w-62.5`,onChange:t=>e.getColumn(n)?.setFilterValue(t.target.value),placeholder:t,value:e.getColumn(n)?.getFilterValue()??``}):(0,T.jsx)(Le,{className:`h-8 w-37.5 lg:w-62.5`,onChange:t=>e.setGlobalFilter(t.target.value),placeholder:t,value:e.getState().globalFilter??``}),(0,T.jsx)(`div`,{className:`flex gap-x-2`,children:r.map(t=>{let n=e.getColumn(t.columnId);return n?(0,T.jsx)(un,{column:n,options:t.options,title:t.title},t.columnId):null})}),o&&(0,T.jsxs)(v,{className:`h-8 px-2 lg:px-3`,onClick:()=>{e.resetColumnFilters(),e.setGlobalFilter(``)},variant:`ghost`,children:[g(),(0,T.jsx)(Ie,{className:`ms-2 h-4 w-4`})]})]}),(0,T.jsxs)(`div`,{className:`flex items-center gap-2`,children:[i&&(0,T.jsx)(mn,{onRefresh:i}),(0,T.jsx)(fn,{table:e})]})]})}function mn({onRefresh:e}){let[t,n]=(0,w.useState)(!1);return(0,T.jsxs)(v,{className:`hidden h-8 lg:flex`,disabled:t,onClick:(0,w.useCallback)(async()=>{n(!0);try{await e()}catch{}finally{setTimeout(()=>n(!1),500)}},[e]),size:`sm`,variant:`outline`,children:[(0,T.jsx)(De,{className:_(`size-4`,t&&`animate-spin`)}),m()]})}export{Zt as a,Vt as c,Wt as d,Gt as f,$t as i,Ht as l,ln as n,Xt as o,We as p,cn as r,It as s,pn as t,Ut as u}; \ No newline at end of file diff --git a/src/www/assets/dialog-CZ-2RPb-.js b/src/www/assets/dialog-CtyiwzAl.js similarity index 93% rename from src/www/assets/dialog-CZ-2RPb-.js rename to src/www/assets/dialog-CtyiwzAl.js index 094b2d8..dcf0b91 100644 --- a/src/www/assets/dialog-CZ-2RPb-.js +++ b/src/www/assets/dialog-CtyiwzAl.js @@ -1 +1 @@ -import{tm as e}from"./messages-BOatyqUm.js";import{i as t,t as n}from"./button-C_NDYaz8.js";import{a as r,c as i,i as a,n as o,o as s,r as c,s as l,t as u}from"./dist-iiotRAEO.js";import{t as d}from"./createLucideIcon-Br0Bd5k2.js";var f=d(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),p=e();function m({...e}){return(0,p.jsx)(s,{"data-slot":`dialog`,...e})}function h({...e}){return(0,p.jsx)(i,{"data-slot":`dialog-trigger`,...e})}function g({...e}){return(0,p.jsx)(r,{"data-slot":`dialog-portal`,...e})}function _({...e}){return(0,p.jsx)(u,{"data-slot":`dialog-close`,...e})}function v({className:e,...n}){return(0,p.jsx)(a,{className:t(`data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in`,e),"data-slot":`dialog-overlay`,...n})}function y({className:e,children:n,showCloseButton:r=!0,...i}){return(0,p.jsxs)(g,{"data-slot":`dialog-portal`,children:[(0,p.jsx)(v,{}),(0,p.jsxs)(o,{className:t(`data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg outline-none duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg`,e),"data-slot":`dialog-content`,...i,children:[n,r&&(0,p.jsxs)(u,{className:`absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,"data-slot":`dialog-close`,children:[(0,p.jsx)(f,{}),(0,p.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function b({className:e,...n}){return(0,p.jsx)(`div`,{className:t(`flex flex-col gap-2 text-center sm:text-left`,e),"data-slot":`dialog-header`,...n})}function x({className:e,showCloseButton:r=!1,children:i,...a}){return(0,p.jsxs)(`div`,{className:t(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),"data-slot":`dialog-footer`,...a,children:[i,r&&(0,p.jsx)(u,{asChild:!0,children:(0,p.jsx)(n,{variant:`outline`,children:`Close`})})]})}function S({className:e,...n}){return(0,p.jsx)(l,{className:t(`font-semibold text-lg leading-none`,e),"data-slot":`dialog-title`,...n})}function C({className:e,...n}){return(0,p.jsx)(c,{className:t(`text-muted-foreground text-sm`,e),"data-slot":`dialog-description`,...n})}export{x as a,h as c,C as i,f as l,_ as n,b as o,y as r,S as s,m as t}; \ No newline at end of file +import{tm as e}from"./messages-CL4J6BaJ.js";import{i as t,t as n}from"./button-NLSeBFht.js";import{a as r,c as i,i as a,n as o,o as s,r as c,s as l,t as u}from"./dist-DPYswSIO.js";import{t as d}from"./createLucideIcon-Br0Bd5k2.js";var f=d(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),p=e();function m({...e}){return(0,p.jsx)(s,{"data-slot":`dialog`,...e})}function h({...e}){return(0,p.jsx)(i,{"data-slot":`dialog-trigger`,...e})}function g({...e}){return(0,p.jsx)(r,{"data-slot":`dialog-portal`,...e})}function _({...e}){return(0,p.jsx)(u,{"data-slot":`dialog-close`,...e})}function v({className:e,...n}){return(0,p.jsx)(a,{className:t(`data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in`,e),"data-slot":`dialog-overlay`,...n})}function y({className:e,children:n,showCloseButton:r=!0,...i}){return(0,p.jsxs)(g,{"data-slot":`dialog-portal`,children:[(0,p.jsx)(v,{}),(0,p.jsxs)(o,{className:t(`data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg outline-none duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg`,e),"data-slot":`dialog-content`,...i,children:[n,r&&(0,p.jsxs)(u,{className:`absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,"data-slot":`dialog-close`,children:[(0,p.jsx)(f,{}),(0,p.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function b({className:e,...n}){return(0,p.jsx)(`div`,{className:t(`flex flex-col gap-2 text-center sm:text-left`,e),"data-slot":`dialog-header`,...n})}function x({className:e,showCloseButton:r=!1,children:i,...a}){return(0,p.jsxs)(`div`,{className:t(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),"data-slot":`dialog-footer`,...a,children:[i,r&&(0,p.jsx)(u,{asChild:!0,children:(0,p.jsx)(n,{variant:`outline`,children:`Close`})})]})}function S({className:e,...n}){return(0,p.jsx)(l,{className:t(`font-semibold text-lg leading-none`,e),"data-slot":`dialog-title`,...n})}function C({className:e,...n}){return(0,p.jsx)(c,{className:t(`text-muted-foreground text-sm`,e),"data-slot":`dialog-description`,...n})}export{x as a,h as c,C as i,f as l,_ as n,b as o,y as r,S as s,m as t}; \ No newline at end of file diff --git a/src/www/assets/display-CqGwMVHS.js b/src/www/assets/display-Zi7WWfTl.js similarity index 77% rename from src/www/assets/display-CqGwMVHS.js rename to src/www/assets/display-Zi7WWfTl.js index 3474f76..df82985 100644 --- a/src/www/assets/display-CqGwMVHS.js +++ b/src/www/assets/display-Zi7WWfTl.js @@ -1 +1 @@ -import{an as e,cn as t,dn as n,fn as r,gn as i,hn as a,ln as o,mn as s,on as c,pn as l,sn as u,tm as d,un as f}from"./messages-BOatyqUm.js";import{t as p}from"./button-C_NDYaz8.js";import{t as m}from"./checkbox-CTHgcB3t.js";import{c as h,i as g,s as _}from"./zod-rwFXxHlg.js";import{a as v,c as y,i as b,l as x,n as S,o as C,r as w,s as T,t as E}from"./form-KfFEakes.js";import{t as D}from"./page-header-GTtyZFBB.js";import{t as O}from"./show-submitted-data-BqZb-_Pf.js";var k=d(),A=[{id:`recents`,label:s()},{id:`home`,label:l()},{id:`applications`,label:r()},{id:`desktop`,label:n()},{id:`downloads`,label:f()},{id:`documents`,label:o()}],j=_({items:g(h()).refine(e=>e.some(e=>e),{message:t()})}),M={items:[`recents`,`home`]};function N(){let t=x({resolver:y(j),defaultValues:M});return(0,k.jsx)(E,{...t,children:(0,k.jsxs)(`form`,{className:`space-y-8`,onSubmit:t.handleSubmit(e=>O(e)),children:[(0,k.jsx)(b,{control:t.control,name:`items`,render:()=>(0,k.jsxs)(v,{children:[(0,k.jsxs)(`div`,{className:`mb-4`,children:[(0,k.jsx)(C,{className:`text-base`,children:u()}),(0,k.jsx)(w,{children:c()})]}),A.map(e=>(0,k.jsx)(b,{control:t.control,name:`items`,render:({field:t})=>(0,k.jsxs)(v,{className:`flex flex-row items-start`,children:[(0,k.jsx)(S,{children:(0,k.jsx)(m,{checked:t.value?.includes(e.id),onCheckedChange:n=>n?t.onChange([...t.value,e.id]):t.onChange(t.value?.filter(t=>t!==e.id))})}),(0,k.jsx)(C,{className:`font-normal`,children:e.label})]},e.id)},e.id)),(0,k.jsx)(T,{})]})}),(0,k.jsx)(p,{type:`submit`,children:e()})]})})}function P(){return(0,k.jsx)(D,{description:a(),title:i(),variant:`section`,children:(0,k.jsx)(N,{})})}var F=P;export{F as component}; \ No newline at end of file +import{an as e,cn as t,dn as n,fn as r,gn as i,hn as a,ln as o,mn as s,on as c,pn as l,sn as u,tm as d,un as f}from"./messages-CL4J6BaJ.js";import{t as p}from"./button-NLSeBFht.js";import{t as m}from"./checkbox-DcRUgRHr.js";import{c as h,i as g,s as _}from"./zod-rwFXxHlg.js";import{a as v,c as y,i as b,l as x,n as S,o as C,r as w,s as T,t as E}from"./form-C_YekIvK.js";import{t as D}from"./page-header-B7O10aw9.js";import{t as O}from"./show-submitted-data-DwaVTW9K.js";var k=d(),A=[{id:`recents`,label:s()},{id:`home`,label:l()},{id:`applications`,label:r()},{id:`desktop`,label:n()},{id:`downloads`,label:f()},{id:`documents`,label:o()}],j=_({items:g(h()).refine(e=>e.some(e=>e),{message:t()})}),M={items:[`recents`,`home`]};function N(){let t=x({resolver:y(j),defaultValues:M});return(0,k.jsx)(E,{...t,children:(0,k.jsxs)(`form`,{className:`space-y-8`,onSubmit:t.handleSubmit(e=>O(e)),children:[(0,k.jsx)(b,{control:t.control,name:`items`,render:()=>(0,k.jsxs)(v,{children:[(0,k.jsxs)(`div`,{className:`mb-4`,children:[(0,k.jsx)(C,{className:`text-base`,children:u()}),(0,k.jsx)(w,{children:c()})]}),A.map(e=>(0,k.jsx)(b,{control:t.control,name:`items`,render:({field:t})=>(0,k.jsxs)(v,{className:`flex flex-row items-start`,children:[(0,k.jsx)(S,{children:(0,k.jsx)(m,{checked:t.value?.includes(e.id),onCheckedChange:n=>n?t.onChange([...t.value,e.id]):t.onChange(t.value?.filter(t=>t!==e.id))})}),(0,k.jsx)(C,{className:`font-normal`,children:e.label})]},e.id)},e.id)),(0,k.jsx)(T,{})]})}),(0,k.jsx)(p,{type:`submit`,children:e()})]})})}function P(){return(0,k.jsx)(D,{description:a(),title:i(),variant:`section`,children:(0,k.jsx)(N,{})})}var F=P;export{F as component}; \ No newline at end of file diff --git a/src/www/assets/dist-ZdRQQNeu.js b/src/www/assets/dist-B0pRVbY9.js similarity index 88% rename from src/www/assets/dist-ZdRQQNeu.js rename to src/www/assets/dist-B0pRVbY9.js index 94e3c5b..b1f908f 100644 --- a/src/www/assets/dist-ZdRQQNeu.js +++ b/src/www/assets/dist-B0pRVbY9.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{n}from"./dist-DPPquN_M.js";var r=e(t(),1);function i(e){let[t,i]=r.useState(void 0);return n(()=>{if(e){i({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let n=t[0],r,a;if(`borderBoxSize`in n){let e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,a=t.blockSize}else r=e.offsetWidth,a=e.offsetHeight;i({width:r,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else i(void 0)},[e]),t}export{i as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{n}from"./dist-DmeeHi7K.js";var r=e(t(),1);function i(e){let[t,i]=r.useState(void 0);return n(()=>{if(e){i({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let n=t[0],r,a;if(`borderBoxSize`in n){let e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,a=t.blockSize}else r=e.offsetWidth,a=e.offsetHeight;i({width:r,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else i(void 0)},[e]),t}export{i as t}; \ No newline at end of file diff --git a/src/www/assets/dist-DvwKOQ8R.js b/src/www/assets/dist-BZMqLvO-.js similarity index 93% rename from src/www/assets/dist-DvwKOQ8R.js rename to src/www/assets/dist-BZMqLvO-.js index 3f50b49..19de0ba 100644 --- a/src/www/assets/dist-DvwKOQ8R.js +++ b/src/www/assets/dist-BZMqLvO-.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{u as n}from"./button-C_NDYaz8.js";import{n as r}from"./dist-DPPquN_M.js";var i=e(t(),1);function a(e,t){return i.useReducer((e,n)=>t[e][n]??e,e)}var o=e=>{let{present:t,children:r}=e,a=s(t),o=typeof r==`function`?r({present:a.isPresent}):i.Children.only(r),c=n(a.ref,l(o));return typeof r==`function`||a.isPresent?i.cloneElement(o,{ref:c}):null};o.displayName=`Presence`;function s(e){let[t,n]=i.useState(),o=i.useRef(null),s=i.useRef(e),l=i.useRef(`none`),[u,d]=a(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return i.useEffect(()=>{let e=c(o.current);l.current=u===`mounted`?e:`none`},[u]),r(()=>{let t=o.current,n=s.current;if(n!==e){let r=l.current,i=c(t);e?d(`MOUNT`):i===`none`||t?.display===`none`?d(`UNMOUNT`):d(n&&r!==i?`ANIMATION_OUT`:`UNMOUNT`),s.current=e}},[e,d]),r(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,r=r=>{let i=c(o.current).includes(CSS.escape(r.animationName));if(r.target===t&&i&&(d(`ANIMATION_END`),!s.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},i=e=>{e.target===t&&(l.current=c(o.current))};return t.addEventListener(`animationstart`,i),t.addEventListener(`animationcancel`,r),t.addEventListener(`animationend`,r),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,i),t.removeEventListener(`animationcancel`,r),t.removeEventListener(`animationend`,r)}}else d(`ANIMATION_END`)},[t,d]),{isPresent:[`mounted`,`unmountSuspended`].includes(u),ref:i.useCallback(e=>{o.current=e?getComputedStyle(e):null,n(e)},[])}}function c(e){return e?.animationName||`none`}function l(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}export{o as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{u as n}from"./button-NLSeBFht.js";import{n as r}from"./dist-DmeeHi7K.js";var i=e(t(),1);function a(e,t){return i.useReducer((e,n)=>t[e][n]??e,e)}var o=e=>{let{present:t,children:r}=e,a=s(t),o=typeof r==`function`?r({present:a.isPresent}):i.Children.only(r),c=n(a.ref,l(o));return typeof r==`function`||a.isPresent?i.cloneElement(o,{ref:c}):null};o.displayName=`Presence`;function s(e){let[t,n]=i.useState(),o=i.useRef(null),s=i.useRef(e),l=i.useRef(`none`),[u,d]=a(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return i.useEffect(()=>{let e=c(o.current);l.current=u===`mounted`?e:`none`},[u]),r(()=>{let t=o.current,n=s.current;if(n!==e){let r=l.current,i=c(t);e?d(`MOUNT`):i===`none`||t?.display===`none`?d(`UNMOUNT`):d(n&&r!==i?`ANIMATION_OUT`:`UNMOUNT`),s.current=e}},[e,d]),r(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,r=r=>{let i=c(o.current).includes(CSS.escape(r.animationName));if(r.target===t&&i&&(d(`ANIMATION_END`),!s.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},i=e=>{e.target===t&&(l.current=c(o.current))};return t.addEventListener(`animationstart`,i),t.addEventListener(`animationcancel`,r),t.addEventListener(`animationend`,r),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,i),t.removeEventListener(`animationcancel`,r),t.removeEventListener(`animationend`,r)}}else d(`ANIMATION_END`)},[t,d]),{isPresent:[`mounted`,`unmountSuspended`].includes(u),ref:i.useCallback(e=>{o.current=e?getComputedStyle(e):null,n(e)},[])}}function c(e){return e?.animationName||`none`}function l(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}export{o as t}; \ No newline at end of file diff --git a/src/www/assets/dist-BNFQuJTu.js b/src/www/assets/dist-CGRahgI2.js similarity index 80% rename from src/www/assets/dist-BNFQuJTu.js rename to src/www/assets/dist-CGRahgI2.js index 8db6206..6740de4 100644 --- a/src/www/assets/dist-BNFQuJTu.js +++ b/src/www/assets/dist-CGRahgI2.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";var r=e(t(),1),i=n(),a=r.createContext(void 0),o=e=>{let{dir:t,children:n}=e;return(0,i.jsx)(a.Provider,{value:t,children:n})};function s(e){let t=r.useContext(a);return e||t||`ltr`}export{s as n,o as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";var r=e(t(),1),i=n(),a=r.createContext(void 0),o=e=>{let{dir:t,children:n}=e;return(0,i.jsx)(a.Provider,{value:t,children:n})};function s(e){let t=r.useContext(a);return e||t||`ltr`}export{s as n,o as t}; \ No newline at end of file diff --git a/src/www/assets/dist-Dtn5c_cx.js b/src/www/assets/dist-CjidLXaw.js similarity index 73% rename from src/www/assets/dist-Dtn5c_cx.js rename to src/www/assets/dist-CjidLXaw.js index d85269a..8a5dd98 100644 --- a/src/www/assets/dist-Dtn5c_cx.js +++ b/src/www/assets/dist-CjidLXaw.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./dist-Cc8_LDAq.js";var i=e(t(),1),a=n(),o=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),s=`VisuallyHidden`,c=i.forwardRef((e,t)=>(0,a.jsx)(r.span,{...e,ref:t,style:{...o,...e.style}}));c.displayName=s;var l=c;export{o as n,l as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";import{t as r}from"./dist-D3WFT-Yo.js";var i=e(t(),1),a=n(),o=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),s=`VisuallyHidden`,c=i.forwardRef((e,t)=>(0,a.jsx)(r.span,{...e,ref:t,style:{...o,...e.style}}));c.displayName=s;var l=c;export{o as n,l as t}; \ No newline at end of file diff --git a/src/www/assets/dist-Cc8_LDAq.js b/src/www/assets/dist-D3WFT-Yo.js similarity index 96% rename from src/www/assets/dist-Cc8_LDAq.js rename to src/www/assets/dist-D3WFT-Yo.js index 6ee60b9..26af1b2 100644 --- a/src/www/assets/dist-Cc8_LDAq.js +++ b/src/www/assets/dist-D3WFT-Yo.js @@ -1 +1 @@ -import{r as e,t}from"./chunk-DECur_0Z.js";import{t as n}from"./react-CO2uhaBc.js";import{tm as r}from"./messages-BOatyqUm.js";import{s as i}from"./button-C_NDYaz8.js";var a=t((e=>{var t=n();function r(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=a()})),s=e(n(),1),c=e(o(),1),l=r(),u=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=i(`Primitive.${t}`),r=s.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,l.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function d(e,t){e&&c.flushSync(()=>e.dispatchEvent(t))}export{d as n,o as r,u as t}; \ No newline at end of file +import{r as e,t}from"./chunk-DECur_0Z.js";import{t as n}from"./react-CO2uhaBc.js";import{tm as r}from"./messages-CL4J6BaJ.js";import{s as i}from"./button-NLSeBFht.js";var a=t((e=>{var t=n();function r(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=a()})),s=e(n(),1),c=e(o(),1),l=r(),u=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=i(`Primitive.${t}`),r=s.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,l.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function d(e,t){e&&c.flushSync(()=>e.dispatchEvent(t))}export{d as n,o as r,u as t}; \ No newline at end of file diff --git a/src/www/assets/dist-C5heX0fx.js b/src/www/assets/dist-DA1qWiix.js similarity index 89% rename from src/www/assets/dist-C5heX0fx.js rename to src/www/assets/dist-DA1qWiix.js index 2bb8af1..2c6a12d 100644 --- a/src/www/assets/dist-C5heX0fx.js +++ b/src/www/assets/dist-DA1qWiix.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./dist-Cc8_LDAq.js";import{u as i}from"./button-C_NDYaz8.js";import{a,r as o,t as s}from"./dist-DPPquN_M.js";import{t as c}from"./dist-DvwKOQ8R.js";import{n as l}from"./dist-BNFQuJTu.js";import{t as u}from"./dist-BixeH3nX.js";import{t as d}from"./dist-ZdRQQNeu.js";import{n as f,r as p,t as m}from"./dist-D0DoWChj.js";var h=e(t(),1),g=n(),_=`Radio`,[v,y]=a(_),[b,x]=v(_),S=h.forwardRef((e,t)=>{let{__scopeRadio:n,name:a,checked:s=!1,required:c,disabled:l,value:u=`on`,onCheck:d,form:f,...p}=e,[m,_]=h.useState(null),v=i(t,e=>_(e)),y=h.useRef(!1),x=m?f||!!m.closest(`form`):!0;return(0,g.jsxs)(b,{scope:n,checked:s,disabled:l,children:[(0,g.jsx)(r.button,{type:`button`,role:`radio`,"aria-checked":s,"data-state":D(s),"data-disabled":l?``:void 0,disabled:l,value:u,...p,ref:v,onClick:o(e.onClick,e=>{s||d?.(),x&&(y.current=e.isPropagationStopped(),y.current||e.stopPropagation())})}),x&&(0,g.jsx)(E,{control:m,bubbles:!y.current,name:a,value:u,checked:s,required:c,disabled:l,form:f,style:{transform:`translateX(-100%)`}})]})});S.displayName=_;var C=`RadioIndicator`,w=h.forwardRef((e,t)=>{let{__scopeRadio:n,forceMount:i,...a}=e,o=x(C,n);return(0,g.jsx)(c,{present:i||o.checked,children:(0,g.jsx)(r.span,{"data-state":D(o.checked),"data-disabled":o.disabled?``:void 0,...a,ref:t})})});w.displayName=C;var T=`RadioBubbleInput`,E=h.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:a=!0,...o},s)=>{let c=h.useRef(null),l=i(c,s),f=u(n),p=d(t);return h.useEffect(()=>{let e=c.current;if(!e)return;let t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,`checked`).set;if(f!==n&&r){let t=new Event(`click`,{bubbles:a});r.call(e,n),e.dispatchEvent(t)}},[f,n,a]),(0,g.jsx)(r.input,{type:`radio`,"aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:l,style:{...o.style,...p,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0}})});E.displayName=T;function D(e){return e?`checked`:`unchecked`}var O=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],k=`RadioGroup`,[A,j]=a(k,[p,y]),M=p(),N=y(),[P,F]=A(k),I=h.forwardRef((e,t)=>{let{__scopeRadioGroup:n,name:i,defaultValue:a,value:o,required:c=!1,disabled:u=!1,orientation:d,dir:p,loop:m=!0,onValueChange:h,..._}=e,v=M(n),y=l(p),[b,x]=s({prop:o,defaultProp:a??null,onChange:h,caller:k});return(0,g.jsx)(P,{scope:n,name:i,required:c,disabled:u,value:b,onValueChange:x,children:(0,g.jsx)(f,{asChild:!0,...v,orientation:d,dir:y,loop:m,children:(0,g.jsx)(r.div,{role:`radiogroup`,"aria-required":c,"aria-orientation":d,"data-disabled":u?``:void 0,dir:y,..._,ref:t})})})});I.displayName=k;var L=`RadioGroupItem`,R=h.forwardRef((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...a}=e,s=F(L,n),c=s.disabled||r,l=M(n),u=N(n),d=h.useRef(null),f=i(t,d),p=s.value===a.value,_=h.useRef(!1);return h.useEffect(()=>{let e=e=>{O.includes(e.key)&&(_.current=!0)},t=()=>_.current=!1;return document.addEventListener(`keydown`,e),document.addEventListener(`keyup`,t),()=>{document.removeEventListener(`keydown`,e),document.removeEventListener(`keyup`,t)}},[]),(0,g.jsx)(m,{asChild:!0,...l,focusable:!c,active:p,children:(0,g.jsx)(S,{disabled:c,required:s.required,checked:p,...u,...a,name:s.name,ref:f,onCheck:()=>s.onValueChange(a.value),onKeyDown:o(e=>{e.key===`Enter`&&e.preventDefault()}),onFocus:o(a.onFocus,()=>{_.current&&d.current?.click()})})})});R.displayName=L;var z=`RadioGroupIndicator`,B=h.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e;return(0,g.jsx)(w,{...N(n),...r,ref:t})});B.displayName=z;var V=I,H=R,U=B;export{H as n,V as r,U as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";import{t as r}from"./dist-D3WFT-Yo.js";import{u as i}from"./button-NLSeBFht.js";import{a,r as o,t as s}from"./dist-DmeeHi7K.js";import{t as c}from"./dist-BZMqLvO-.js";import{n as l}from"./dist-CGRahgI2.js";import{t as u}from"./dist-BixeH3nX.js";import{t as d}from"./dist-B0pRVbY9.js";import{n as f,r as p,t as m}from"./dist-DhcQhr4B.js";var h=e(t(),1),g=n(),_=`Radio`,[v,y]=a(_),[b,x]=v(_),S=h.forwardRef((e,t)=>{let{__scopeRadio:n,name:a,checked:s=!1,required:c,disabled:l,value:u=`on`,onCheck:d,form:f,...p}=e,[m,_]=h.useState(null),v=i(t,e=>_(e)),y=h.useRef(!1),x=m?f||!!m.closest(`form`):!0;return(0,g.jsxs)(b,{scope:n,checked:s,disabled:l,children:[(0,g.jsx)(r.button,{type:`button`,role:`radio`,"aria-checked":s,"data-state":D(s),"data-disabled":l?``:void 0,disabled:l,value:u,...p,ref:v,onClick:o(e.onClick,e=>{s||d?.(),x&&(y.current=e.isPropagationStopped(),y.current||e.stopPropagation())})}),x&&(0,g.jsx)(E,{control:m,bubbles:!y.current,name:a,value:u,checked:s,required:c,disabled:l,form:f,style:{transform:`translateX(-100%)`}})]})});S.displayName=_;var C=`RadioIndicator`,w=h.forwardRef((e,t)=>{let{__scopeRadio:n,forceMount:i,...a}=e,o=x(C,n);return(0,g.jsx)(c,{present:i||o.checked,children:(0,g.jsx)(r.span,{"data-state":D(o.checked),"data-disabled":o.disabled?``:void 0,...a,ref:t})})});w.displayName=C;var T=`RadioBubbleInput`,E=h.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:a=!0,...o},s)=>{let c=h.useRef(null),l=i(c,s),f=u(n),p=d(t);return h.useEffect(()=>{let e=c.current;if(!e)return;let t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,`checked`).set;if(f!==n&&r){let t=new Event(`click`,{bubbles:a});r.call(e,n),e.dispatchEvent(t)}},[f,n,a]),(0,g.jsx)(r.input,{type:`radio`,"aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:l,style:{...o.style,...p,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0}})});E.displayName=T;function D(e){return e?`checked`:`unchecked`}var O=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],k=`RadioGroup`,[A,j]=a(k,[p,y]),M=p(),N=y(),[P,F]=A(k),I=h.forwardRef((e,t)=>{let{__scopeRadioGroup:n,name:i,defaultValue:a,value:o,required:c=!1,disabled:u=!1,orientation:d,dir:p,loop:m=!0,onValueChange:h,..._}=e,v=M(n),y=l(p),[b,x]=s({prop:o,defaultProp:a??null,onChange:h,caller:k});return(0,g.jsx)(P,{scope:n,name:i,required:c,disabled:u,value:b,onValueChange:x,children:(0,g.jsx)(f,{asChild:!0,...v,orientation:d,dir:y,loop:m,children:(0,g.jsx)(r.div,{role:`radiogroup`,"aria-required":c,"aria-orientation":d,"data-disabled":u?``:void 0,dir:y,..._,ref:t})})})});I.displayName=k;var L=`RadioGroupItem`,R=h.forwardRef((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...a}=e,s=F(L,n),c=s.disabled||r,l=M(n),u=N(n),d=h.useRef(null),f=i(t,d),p=s.value===a.value,_=h.useRef(!1);return h.useEffect(()=>{let e=e=>{O.includes(e.key)&&(_.current=!0)},t=()=>_.current=!1;return document.addEventListener(`keydown`,e),document.addEventListener(`keyup`,t),()=>{document.removeEventListener(`keydown`,e),document.removeEventListener(`keyup`,t)}},[]),(0,g.jsx)(m,{asChild:!0,...l,focusable:!c,active:p,children:(0,g.jsx)(S,{disabled:c,required:s.required,checked:p,...u,...a,name:s.name,ref:f,onCheck:()=>s.onValueChange(a.value),onKeyDown:o(e=>{e.key===`Enter`&&e.preventDefault()}),onFocus:o(a.onFocus,()=>{_.current&&d.current?.click()})})})});R.displayName=L;var z=`RadioGroupIndicator`,B=h.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e;return(0,g.jsx)(w,{...N(n),...r,ref:t})});B.displayName=z;var V=I,H=R,U=B;export{H as n,V as r,U as t}; \ No newline at end of file diff --git a/src/www/assets/dist-CsIb2aLK.js b/src/www/assets/dist-DB-jLX48.js similarity index 99% rename from src/www/assets/dist-CsIb2aLK.js rename to src/www/assets/dist-DB-jLX48.js index 0512c1a..3049034 100644 --- a/src/www/assets/dist-CsIb2aLK.js +++ b/src/www/assets/dist-DB-jLX48.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{r,t as i}from"./dist-Cc8_LDAq.js";import{u as a}from"./button-C_NDYaz8.js";import{a as o,n as s}from"./dist-DPPquN_M.js";import{t as c}from"./dist-D4X8zGEB.js";import{t as l}from"./dist-ZdRQQNeu.js";var u=e(t(),1),d=[`top`,`right`,`bottom`,`left`],f=Math.min,p=Math.max,m=Math.round,h=Math.floor,g=e=>({x:e,y:e}),_={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function v(e,t,n){return p(e,f(t,n))}function y(e,t){return typeof e==`function`?e(t):e}function b(e){return e.split(`-`)[0]}function x(e){return e.split(`-`)[1]}function S(e){return e===`x`?`y`:`x`}function C(e){return e===`y`?`height`:`width`}function w(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function T(e){return S(w(e))}function E(e,t,n){n===void 0&&(n=!1);let r=x(e),i=T(e),a=C(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=F(o)),[o,F(o)]}function D(e){let t=F(e);return[O(e),t,O(t)]}function O(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var k=[`left`,`right`],A=[`right`,`left`],j=[`top`,`bottom`],M=[`bottom`,`top`];function N(e,t,n){switch(e){case`top`:case`bottom`:return n?t?A:k:t?k:A;case`left`:case`right`:return t?j:M;default:return[]}}function P(e,t,n,r){let i=x(e),a=N(b(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(O)))),a}function F(e){let t=b(e);return _[t]+e.slice(t.length)}function I(e){return{top:0,right:0,bottom:0,left:0,...e}}function ee(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:I(e)}function L(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function R(e,t,n){let{reference:r,floating:i}=e,a=w(t),o=T(t),s=C(o),c=b(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(x(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function z(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=y(t,e),p=ee(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=L(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},b=L(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-b.top+p.top)/v.y,bottom:(b.bottom-h.bottom+p.bottom)/v.y,left:(h.left-b.left+p.left)/v.x,right:(b.right-h.right+p.right)/v.x}}var te=50,ne=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:z},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=R(l,r,c),f=r,p=0,m={};for(let n=0;n({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=y(e,t)||{};if(l==null)return{};let d=ee(u),p={x:n,y:r},m=T(i),h=C(m),g=await o.getDimensions(l),_=m===`y`,b=_?`top`:`left`,S=_?`bottom`:`right`,w=_?`clientHeight`:`clientWidth`,E=a.reference[h]+a.reference[m]-p[m]-a.floating[h],D=p[m]-a.reference[m],O=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),k=O?O[w]:0;(!k||!await(o.isElement==null?void 0:o.isElement(O)))&&(k=s.floating[w]||a.floating[h]);let A=E/2-D/2,j=k/2-g[h]/2-1,M=f(d[b],j),N=f(d[S],j),P=M,F=k-g[h]-N,I=k/2-g[h]/2+A,L=v(P,I,F),R=!c.arrow&&x(i)!=null&&I!==L&&a.reference[h]/2-(Ie<=0)){let e=(i.flip?.index||0)+1,t=T[e];if(t&&(!(u===`alignment`&&_!==w(t))||A.every(e=>w(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:A},reset:{placement:t}};let n=A.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=A.filter(e=>{if(C){let t=w(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function ae(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function oe(e){return d.some(t=>e[t]>=0)}var se=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=y(e,t);switch(i){case`referenceHidden`:{let e=ae(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:oe(e)}}}case`escaped`:{let e=ae(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:oe(e)}}}default:return{}}}}},ce=new Set([`left`,`top`]);async function le(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=b(n),s=x(n),c=w(n)===`y`,l=ce.has(o)?-1:1,u=a&&c?-1:1,d=y(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var ue=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await le(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},de=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=y(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=w(b(i)),p=S(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=v(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=v(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},fe=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=y(e,t),u={x:n,y:r},d=w(i),f=S(d),p=u[f],m=u[d],h=y(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;pn&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=ce.has(b(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);mr&&(m=r)}return{[f]:p,[d]:m}}}},pe=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=y(e,t),u=await o.detectOverflow(t,l),d=b(i),m=x(i),h=w(i)===`y`,{width:g,height:_}=a.floating,v,S;d===`top`||d===`bottom`?(v=d,S=m===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(S=d,v=m===`end`?`top`:`bottom`);let C=_-u.top-u.bottom,T=g-u.left-u.right,E=f(_-u[v],C),D=f(g-u[S],T),O=!t.middlewareData.shift,k=E,A=D;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=T),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=C),O&&!m){let e=p(u.left,0),t=p(u.right,0),n=p(u.top,0),r=p(u.bottom,0);h?A=g-2*(e!==0||t!==0?e+t:p(u.left,u.right)):k=_-2*(n!==0||r!==0?n+r:p(u.top,u.bottom))}await c({...t,availableWidth:A,availableHeight:k});let j=await o.getDimensions(s.floating);return g!==j.width||_!==j.height?{reset:{rects:!0}}:{}}}};function me(){return typeof window<`u`}function B(e){return he(e)?(e.nodeName||``).toLowerCase():`#document`}function V(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function H(e){return((he(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function he(e){return me()?e instanceof Node||e instanceof V(e).Node:!1}function U(e){return me()?e instanceof Element||e instanceof V(e).Element:!1}function W(e){return me()?e instanceof HTMLElement||e instanceof V(e).HTMLElement:!1}function ge(e){return!me()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof V(e).ShadowRoot}function G(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function _e(e){return/^(table|td|th)$/.test(B(e))}function ve(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var ye=/transform|translate|scale|rotate|perspective|filter/,be=/paint|layout|strict|content/,K=e=>!!e&&e!==`none`,xe;function Se(e){let t=U(e)?J(e):e;return K(t.transform)||K(t.translate)||K(t.scale)||K(t.rotate)||K(t.perspective)||!we()&&(K(t.backdropFilter)||K(t.filter))||ye.test(t.willChange||``)||be.test(t.contain||``)}function Ce(e){let t=Y(e);for(;W(t)&&!q(t);){if(Se(t))return t;if(ve(t))return null;t=Y(t)}return null}function we(){return xe??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),xe}function q(e){return/^(html|body|#document)$/.test(B(e))}function J(e){return V(e).getComputedStyle(e)}function Te(e){return U(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Y(e){if(B(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ge(e)&&e.host||H(e);return ge(t)?t.host:t}function Ee(e){let t=Y(e);return q(t)?e.ownerDocument?e.ownerDocument.body:e.body:W(t)&&G(t)?t:Ee(t)}function X(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Ee(e),i=r===e.ownerDocument?.body,a=V(r);if(i){let e=De(a);return t.concat(a,a.visualViewport||[],G(r)?r:[],e&&n?X(e):[])}else return t.concat(r,X(r,[],n))}function De(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Oe(e){let t=J(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=W(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=m(n)!==a||m(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ke(e){return U(e)?e:e.contextElement}function Z(e){let t=ke(e);if(!W(t))return g(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Oe(t),o=(a?m(n.width):n.width)/r,s=(a?m(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Ae=g(0);function je(e){let t=V(e);return!we()||!t.visualViewport?Ae:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Me(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==V(e)?!1:t}function Q(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ke(e),o=g(1);t&&(r?U(r)&&(o=Z(r)):o=Z(e));let s=Me(a,n,r)?je(a):g(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=V(a),t=r&&U(r)?V(r):r,n=e,i=De(n);for(;i&&r&&t!==n;){let e=Z(i),t=i.getBoundingClientRect(),r=J(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=V(i),i=De(n)}}return L({width:u,height:d,x:c,y:l})}function Ne(e,t){let n=Te(e).scrollLeft;return t?t.left+n:Q(H(e)).left+n}function Pe(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ne(e,n),y:n.top+t.scrollTop}}function Fe(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=H(r),s=t?ve(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=g(1),u=g(0),d=W(r);if((d||!d&&!a)&&((B(r)!==`body`||G(o))&&(c=Te(r)),d)){let e=Q(r);l=Z(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Pe(o,c):g(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Ie(e){return Array.from(e.getClientRects())}function Le(e){let t=H(e),n=Te(e),r=e.ownerDocument.body,i=p(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=p(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Ne(e),s=-n.scrollTop;return J(r).direction===`rtl`&&(o+=p(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Re=25;function ze(e,t){let n=V(e),r=H(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=we();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Ne(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Re&&(a-=o)}else l<=Re&&(a+=l);return{width:a,height:o,x:s,y:c}}function Be(e,t){let n=Q(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=W(e)?Z(e):g(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Ve(e,t,n){let r;if(t===`viewport`)r=ze(e,n);else if(t===`document`)r=Le(H(e));else if(U(t))r=Be(t,n);else{let n=je(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return L(r)}function He(e,t){let n=Y(e);return n===t||!U(n)||q(n)?!1:J(n).position===`fixed`||He(n,t)}function Ue(e,t){let n=t.get(e);if(n)return n;let r=X(e,[],!1).filter(e=>U(e)&&B(e)!==`body`),i=null,a=J(e).position===`fixed`,o=a?Y(e):e;for(;U(o)&&!q(o);){let t=J(o),n=Se(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||G(o)&&!n&&He(e,o))?r=r.filter(e=>e!==o):i=t,o=Y(o)}return t.set(e,r),r}function We(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?ve(t)?[]:Ue(t,this._c):[].concat(n),r],o=Ve(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e{o(!1,1e-7)},1e3)}n===1&&!$e(l,e.getBoundingClientRect())&&o(),S=!1}try{n=new IntersectionObserver(C,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return o(!0),a}function tt(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=ke(e),u=i||a?[...l?X(l):[],...t?X(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?et(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Q(e):null;c&&g();function g(){let t=Q(e);h&&!$e(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var nt=ue,rt=de,it=ie,at=pe,ot=se,st=re,ct=fe,lt=(e,t,n)=>{let r=new Map,i={platform:Qe,...n},a={...i.platform,_c:r};return ne(e,t,{...i,platform:a})},ut=e(r(),1),dt=typeof document<`u`?u.useLayoutEffect:function(){};function ft(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ft(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!ft(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function pt(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mt(e,t){let n=pt(e);return Math.round(t*n)/n}function ht(e){let t=u.useRef(e);return dt(()=>{t.current=e}),t}function gt(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[d,f]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=u.useState(r);ft(p,r)||m(r);let[h,g]=u.useState(null),[_,v]=u.useState(null),y=u.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),b=u.useCallback(e=>{e!==w.current&&(w.current=e,v(e))},[]),x=a||h,S=o||_,C=u.useRef(null),w=u.useRef(null),T=u.useRef(d),E=c!=null,D=ht(c),O=ht(i),k=ht(l),A=u.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:p};O.current&&(e.platform=O.current),lt(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!ft(T.current,t)&&(T.current=t,ut.flushSync(()=>{f(t)}))})},[p,t,n,O,k]);dt(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[l]);let j=u.useRef(!1);dt(()=>(j.current=!0,()=>{j.current=!1}),[]),dt(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,A);A()}},[x,S,A,D,E]);let M=u.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),N=u.useMemo(()=>({reference:x,floating:S}),[x,S]),P=u.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=mt(N.floating,d.x),r=mt(N.floating,d.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...pt(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,d.x,d.y]);return u.useMemo(()=>({...d,update:A,refs:M,elements:N,floatingStyles:P}),[d,A,M,N,P])}var _t=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:st({element:r.current,padding:i}).fn(n):r?st({element:r,padding:i}).fn(n):{}}}},vt=(e,t)=>{let n=nt(e);return{name:n.name,fn:n.fn,options:[e,t]}},yt=(e,t)=>{let n=rt(e);return{name:n.name,fn:n.fn,options:[e,t]}},bt=(e,t)=>({fn:ct(e).fn,options:[e,t]}),xt=(e,t)=>{let n=it(e);return{name:n.name,fn:n.fn,options:[e,t]}},St=(e,t)=>{let n=at(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ct=(e,t)=>{let n=ot(e);return{name:n.name,fn:n.fn,options:[e,t]}},wt=(e,t)=>{let n=_t(e);return{name:n.name,fn:n.fn,options:[e,t]}},$=n(),Tt=`Arrow`,Et=u.forwardRef((e,t)=>{let{children:n,width:r=10,height:a=5,...o}=e;return(0,$.jsx)(i.svg,{...o,ref:t,width:r,height:a,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,$.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});Et.displayName=Tt;var Dt=Et,Ot=`Popper`,[kt,At]=o(Ot),[jt,Mt]=kt(Ot),Nt=e=>{let{__scopePopper:t,children:n}=e,[r,i]=u.useState(null);return(0,$.jsx)(jt,{scope:t,anchor:r,onAnchorChange:i,children:n})};Nt.displayName=Ot;var Pt=`PopperAnchor`,Ft=u.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,s=Mt(Pt,n),c=u.useRef(null),l=a(t,c),d=u.useRef(null);return u.useEffect(()=>{let e=d.current;d.current=r?.current||c.current,e!==d.current&&s.onAnchorChange(d.current)}),r?null:(0,$.jsx)(i.div,{...o,ref:l})});Ft.displayName=Pt;var It=`PopperContent`,[Lt,Rt]=kt(It),zt=u.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:o=0,align:d=`center`,alignOffset:f=0,arrowPadding:p=0,avoidCollisions:m=!0,collisionBoundary:h=[],collisionPadding:g=0,sticky:_=`partial`,hideWhenDetached:v=!1,updatePositionStrategy:y=`optimized`,onPlaced:b,...x}=e,S=Mt(It,n),[C,w]=u.useState(null),T=a(t,e=>w(e)),[E,D]=u.useState(null),O=l(E),k=O?.width??0,A=O?.height??0,j=r+(d===`center`?``:`-`+d),M=typeof g==`number`?g:{top:0,right:0,bottom:0,left:0,...g},N=Array.isArray(h)?h:[h],P=N.length>0,F={padding:M,boundary:N.filter(Ut),altBoundary:P},{refs:I,floatingStyles:ee,placement:L,isPositioned:R,middlewareData:z}=gt({strategy:`fixed`,placement:j,whileElementsMounted:(...e)=>tt(...e,{animationFrame:y===`always`}),elements:{reference:S.anchor},middleware:[vt({mainAxis:o+A,alignmentAxis:f}),m&&yt({mainAxis:!0,crossAxis:!1,limiter:_===`partial`?bt():void 0,...F}),m&&xt({...F}),St({...F,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),E&&wt({element:E,padding:p}),Wt({arrowWidth:k,arrowHeight:A}),v&&Ct({strategy:`referenceHidden`,...F})]}),[te,ne]=Gt(L),re=c(b);s(()=>{R&&re?.()},[R,re]);let ie=z.arrow?.x,ae=z.arrow?.y,oe=z.arrow?.centerOffset!==0,[se,ce]=u.useState();return s(()=>{C&&ce(window.getComputedStyle(C).zIndex)},[C]),(0,$.jsx)(`div`,{ref:I.setFloating,"data-radix-popper-content-wrapper":``,style:{...ee,transform:R?ee.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:se,"--radix-popper-transform-origin":[z.transformOrigin?.x,z.transformOrigin?.y].join(` `),...z.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,$.jsx)(Lt,{scope:n,placedSide:te,onArrowChange:D,arrowX:ie,arrowY:ae,shouldHideArrow:oe,children:(0,$.jsx)(i.div,{"data-side":te,"data-align":ne,...x,ref:T,style:{...x.style,animation:R?void 0:`none`}})})})});zt.displayName=It;var Bt=`PopperArrow`,Vt={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Ht=u.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=Rt(Bt,n),a=Vt[i.placedSide];return(0,$.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,$.jsx)(Dt,{...r,ref:t,style:{...r.style,display:`block`}})})});Ht.displayName=Bt;function Ut(e){return e!==null}var Wt=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Gt(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function Gt(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var Kt=Nt,qt=Ft,Jt=zt,Yt=Ht;export{At as a,Kt as i,Yt as n,Jt as r,qt as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";import{r,t as i}from"./dist-D3WFT-Yo.js";import{u as a}from"./button-NLSeBFht.js";import{a as o,n as s}from"./dist-DmeeHi7K.js";import{t as c}from"./dist-SR6sl-WU.js";import{t as l}from"./dist-B0pRVbY9.js";var u=e(t(),1),d=[`top`,`right`,`bottom`,`left`],f=Math.min,p=Math.max,m=Math.round,h=Math.floor,g=e=>({x:e,y:e}),_={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function v(e,t,n){return p(e,f(t,n))}function y(e,t){return typeof e==`function`?e(t):e}function b(e){return e.split(`-`)[0]}function x(e){return e.split(`-`)[1]}function S(e){return e===`x`?`y`:`x`}function C(e){return e===`y`?`height`:`width`}function w(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function T(e){return S(w(e))}function E(e,t,n){n===void 0&&(n=!1);let r=x(e),i=T(e),a=C(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=F(o)),[o,F(o)]}function D(e){let t=F(e);return[O(e),t,O(t)]}function O(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var k=[`left`,`right`],A=[`right`,`left`],j=[`top`,`bottom`],M=[`bottom`,`top`];function N(e,t,n){switch(e){case`top`:case`bottom`:return n?t?A:k:t?k:A;case`left`:case`right`:return t?j:M;default:return[]}}function P(e,t,n,r){let i=x(e),a=N(b(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(O)))),a}function F(e){let t=b(e);return _[t]+e.slice(t.length)}function I(e){return{top:0,right:0,bottom:0,left:0,...e}}function ee(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:I(e)}function L(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function R(e,t,n){let{reference:r,floating:i}=e,a=w(t),o=T(t),s=C(o),c=b(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(x(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function z(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=y(t,e),p=ee(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=L(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},b=L(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-b.top+p.top)/v.y,bottom:(b.bottom-h.bottom+p.bottom)/v.y,left:(h.left-b.left+p.left)/v.x,right:(b.right-h.right+p.right)/v.x}}var te=50,ne=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:z},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=R(l,r,c),f=r,p=0,m={};for(let n=0;n({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=y(e,t)||{};if(l==null)return{};let d=ee(u),p={x:n,y:r},m=T(i),h=C(m),g=await o.getDimensions(l),_=m===`y`,b=_?`top`:`left`,S=_?`bottom`:`right`,w=_?`clientHeight`:`clientWidth`,E=a.reference[h]+a.reference[m]-p[m]-a.floating[h],D=p[m]-a.reference[m],O=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),k=O?O[w]:0;(!k||!await(o.isElement==null?void 0:o.isElement(O)))&&(k=s.floating[w]||a.floating[h]);let A=E/2-D/2,j=k/2-g[h]/2-1,M=f(d[b],j),N=f(d[S],j),P=M,F=k-g[h]-N,I=k/2-g[h]/2+A,L=v(P,I,F),R=!c.arrow&&x(i)!=null&&I!==L&&a.reference[h]/2-(Ie<=0)){let e=(i.flip?.index||0)+1,t=T[e];if(t&&(!(u===`alignment`&&_!==w(t))||A.every(e=>w(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:A},reset:{placement:t}};let n=A.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=A.filter(e=>{if(C){let t=w(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function ae(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function oe(e){return d.some(t=>e[t]>=0)}var se=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=y(e,t);switch(i){case`referenceHidden`:{let e=ae(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:oe(e)}}}case`escaped`:{let e=ae(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:oe(e)}}}default:return{}}}}},ce=new Set([`left`,`top`]);async function le(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=b(n),s=x(n),c=w(n)===`y`,l=ce.has(o)?-1:1,u=a&&c?-1:1,d=y(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var ue=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await le(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},de=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=y(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=w(b(i)),p=S(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=v(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=v(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},fe=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=y(e,t),u={x:n,y:r},d=w(i),f=S(d),p=u[f],m=u[d],h=y(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;pn&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=ce.has(b(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);mr&&(m=r)}return{[f]:p,[d]:m}}}},pe=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=y(e,t),u=await o.detectOverflow(t,l),d=b(i),m=x(i),h=w(i)===`y`,{width:g,height:_}=a.floating,v,S;d===`top`||d===`bottom`?(v=d,S=m===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(S=d,v=m===`end`?`top`:`bottom`);let C=_-u.top-u.bottom,T=g-u.left-u.right,E=f(_-u[v],C),D=f(g-u[S],T),O=!t.middlewareData.shift,k=E,A=D;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=T),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=C),O&&!m){let e=p(u.left,0),t=p(u.right,0),n=p(u.top,0),r=p(u.bottom,0);h?A=g-2*(e!==0||t!==0?e+t:p(u.left,u.right)):k=_-2*(n!==0||r!==0?n+r:p(u.top,u.bottom))}await c({...t,availableWidth:A,availableHeight:k});let j=await o.getDimensions(s.floating);return g!==j.width||_!==j.height?{reset:{rects:!0}}:{}}}};function me(){return typeof window<`u`}function B(e){return he(e)?(e.nodeName||``).toLowerCase():`#document`}function V(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function H(e){return((he(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function he(e){return me()?e instanceof Node||e instanceof V(e).Node:!1}function U(e){return me()?e instanceof Element||e instanceof V(e).Element:!1}function W(e){return me()?e instanceof HTMLElement||e instanceof V(e).HTMLElement:!1}function ge(e){return!me()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof V(e).ShadowRoot}function G(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function _e(e){return/^(table|td|th)$/.test(B(e))}function ve(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var ye=/transform|translate|scale|rotate|perspective|filter/,be=/paint|layout|strict|content/,K=e=>!!e&&e!==`none`,xe;function Se(e){let t=U(e)?J(e):e;return K(t.transform)||K(t.translate)||K(t.scale)||K(t.rotate)||K(t.perspective)||!we()&&(K(t.backdropFilter)||K(t.filter))||ye.test(t.willChange||``)||be.test(t.contain||``)}function Ce(e){let t=Y(e);for(;W(t)&&!q(t);){if(Se(t))return t;if(ve(t))return null;t=Y(t)}return null}function we(){return xe??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),xe}function q(e){return/^(html|body|#document)$/.test(B(e))}function J(e){return V(e).getComputedStyle(e)}function Te(e){return U(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Y(e){if(B(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ge(e)&&e.host||H(e);return ge(t)?t.host:t}function Ee(e){let t=Y(e);return q(t)?e.ownerDocument?e.ownerDocument.body:e.body:W(t)&&G(t)?t:Ee(t)}function X(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Ee(e),i=r===e.ownerDocument?.body,a=V(r);if(i){let e=De(a);return t.concat(a,a.visualViewport||[],G(r)?r:[],e&&n?X(e):[])}else return t.concat(r,X(r,[],n))}function De(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Oe(e){let t=J(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=W(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=m(n)!==a||m(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ke(e){return U(e)?e:e.contextElement}function Z(e){let t=ke(e);if(!W(t))return g(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Oe(t),o=(a?m(n.width):n.width)/r,s=(a?m(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Ae=g(0);function je(e){let t=V(e);return!we()||!t.visualViewport?Ae:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Me(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==V(e)?!1:t}function Q(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ke(e),o=g(1);t&&(r?U(r)&&(o=Z(r)):o=Z(e));let s=Me(a,n,r)?je(a):g(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=V(a),t=r&&U(r)?V(r):r,n=e,i=De(n);for(;i&&r&&t!==n;){let e=Z(i),t=i.getBoundingClientRect(),r=J(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=V(i),i=De(n)}}return L({width:u,height:d,x:c,y:l})}function Ne(e,t){let n=Te(e).scrollLeft;return t?t.left+n:Q(H(e)).left+n}function Pe(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ne(e,n),y:n.top+t.scrollTop}}function Fe(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=H(r),s=t?ve(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=g(1),u=g(0),d=W(r);if((d||!d&&!a)&&((B(r)!==`body`||G(o))&&(c=Te(r)),d)){let e=Q(r);l=Z(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Pe(o,c):g(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Ie(e){return Array.from(e.getClientRects())}function Le(e){let t=H(e),n=Te(e),r=e.ownerDocument.body,i=p(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=p(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Ne(e),s=-n.scrollTop;return J(r).direction===`rtl`&&(o+=p(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Re=25;function ze(e,t){let n=V(e),r=H(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=we();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Ne(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Re&&(a-=o)}else l<=Re&&(a+=l);return{width:a,height:o,x:s,y:c}}function Be(e,t){let n=Q(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=W(e)?Z(e):g(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Ve(e,t,n){let r;if(t===`viewport`)r=ze(e,n);else if(t===`document`)r=Le(H(e));else if(U(t))r=Be(t,n);else{let n=je(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return L(r)}function He(e,t){let n=Y(e);return n===t||!U(n)||q(n)?!1:J(n).position===`fixed`||He(n,t)}function Ue(e,t){let n=t.get(e);if(n)return n;let r=X(e,[],!1).filter(e=>U(e)&&B(e)!==`body`),i=null,a=J(e).position===`fixed`,o=a?Y(e):e;for(;U(o)&&!q(o);){let t=J(o),n=Se(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||G(o)&&!n&&He(e,o))?r=r.filter(e=>e!==o):i=t,o=Y(o)}return t.set(e,r),r}function We(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?ve(t)?[]:Ue(t,this._c):[].concat(n),r],o=Ve(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e{o(!1,1e-7)},1e3)}n===1&&!$e(l,e.getBoundingClientRect())&&o(),S=!1}try{n=new IntersectionObserver(C,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return o(!0),a}function tt(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=ke(e),u=i||a?[...l?X(l):[],...t?X(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?et(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Q(e):null;c&&g();function g(){let t=Q(e);h&&!$e(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var nt=ue,rt=de,it=ie,at=pe,ot=se,st=re,ct=fe,lt=(e,t,n)=>{let r=new Map,i={platform:Qe,...n},a={...i.platform,_c:r};return ne(e,t,{...i,platform:a})},ut=e(r(),1),dt=typeof document<`u`?u.useLayoutEffect:function(){};function ft(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ft(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!ft(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function pt(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mt(e,t){let n=pt(e);return Math.round(t*n)/n}function ht(e){let t=u.useRef(e);return dt(()=>{t.current=e}),t}function gt(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[d,f]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=u.useState(r);ft(p,r)||m(r);let[h,g]=u.useState(null),[_,v]=u.useState(null),y=u.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),b=u.useCallback(e=>{e!==w.current&&(w.current=e,v(e))},[]),x=a||h,S=o||_,C=u.useRef(null),w=u.useRef(null),T=u.useRef(d),E=c!=null,D=ht(c),O=ht(i),k=ht(l),A=u.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:p};O.current&&(e.platform=O.current),lt(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!ft(T.current,t)&&(T.current=t,ut.flushSync(()=>{f(t)}))})},[p,t,n,O,k]);dt(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[l]);let j=u.useRef(!1);dt(()=>(j.current=!0,()=>{j.current=!1}),[]),dt(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,A);A()}},[x,S,A,D,E]);let M=u.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),N=u.useMemo(()=>({reference:x,floating:S}),[x,S]),P=u.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=mt(N.floating,d.x),r=mt(N.floating,d.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...pt(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,d.x,d.y]);return u.useMemo(()=>({...d,update:A,refs:M,elements:N,floatingStyles:P}),[d,A,M,N,P])}var _t=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:st({element:r.current,padding:i}).fn(n):r?st({element:r,padding:i}).fn(n):{}}}},vt=(e,t)=>{let n=nt(e);return{name:n.name,fn:n.fn,options:[e,t]}},yt=(e,t)=>{let n=rt(e);return{name:n.name,fn:n.fn,options:[e,t]}},bt=(e,t)=>({fn:ct(e).fn,options:[e,t]}),xt=(e,t)=>{let n=it(e);return{name:n.name,fn:n.fn,options:[e,t]}},St=(e,t)=>{let n=at(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ct=(e,t)=>{let n=ot(e);return{name:n.name,fn:n.fn,options:[e,t]}},wt=(e,t)=>{let n=_t(e);return{name:n.name,fn:n.fn,options:[e,t]}},$=n(),Tt=`Arrow`,Et=u.forwardRef((e,t)=>{let{children:n,width:r=10,height:a=5,...o}=e;return(0,$.jsx)(i.svg,{...o,ref:t,width:r,height:a,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,$.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});Et.displayName=Tt;var Dt=Et,Ot=`Popper`,[kt,At]=o(Ot),[jt,Mt]=kt(Ot),Nt=e=>{let{__scopePopper:t,children:n}=e,[r,i]=u.useState(null);return(0,$.jsx)(jt,{scope:t,anchor:r,onAnchorChange:i,children:n})};Nt.displayName=Ot;var Pt=`PopperAnchor`,Ft=u.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,s=Mt(Pt,n),c=u.useRef(null),l=a(t,c),d=u.useRef(null);return u.useEffect(()=>{let e=d.current;d.current=r?.current||c.current,e!==d.current&&s.onAnchorChange(d.current)}),r?null:(0,$.jsx)(i.div,{...o,ref:l})});Ft.displayName=Pt;var It=`PopperContent`,[Lt,Rt]=kt(It),zt=u.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:o=0,align:d=`center`,alignOffset:f=0,arrowPadding:p=0,avoidCollisions:m=!0,collisionBoundary:h=[],collisionPadding:g=0,sticky:_=`partial`,hideWhenDetached:v=!1,updatePositionStrategy:y=`optimized`,onPlaced:b,...x}=e,S=Mt(It,n),[C,w]=u.useState(null),T=a(t,e=>w(e)),[E,D]=u.useState(null),O=l(E),k=O?.width??0,A=O?.height??0,j=r+(d===`center`?``:`-`+d),M=typeof g==`number`?g:{top:0,right:0,bottom:0,left:0,...g},N=Array.isArray(h)?h:[h],P=N.length>0,F={padding:M,boundary:N.filter(Ut),altBoundary:P},{refs:I,floatingStyles:ee,placement:L,isPositioned:R,middlewareData:z}=gt({strategy:`fixed`,placement:j,whileElementsMounted:(...e)=>tt(...e,{animationFrame:y===`always`}),elements:{reference:S.anchor},middleware:[vt({mainAxis:o+A,alignmentAxis:f}),m&&yt({mainAxis:!0,crossAxis:!1,limiter:_===`partial`?bt():void 0,...F}),m&&xt({...F}),St({...F,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),E&&wt({element:E,padding:p}),Wt({arrowWidth:k,arrowHeight:A}),v&&Ct({strategy:`referenceHidden`,...F})]}),[te,ne]=Gt(L),re=c(b);s(()=>{R&&re?.()},[R,re]);let ie=z.arrow?.x,ae=z.arrow?.y,oe=z.arrow?.centerOffset!==0,[se,ce]=u.useState();return s(()=>{C&&ce(window.getComputedStyle(C).zIndex)},[C]),(0,$.jsx)(`div`,{ref:I.setFloating,"data-radix-popper-content-wrapper":``,style:{...ee,transform:R?ee.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:se,"--radix-popper-transform-origin":[z.transformOrigin?.x,z.transformOrigin?.y].join(` `),...z.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,$.jsx)(Lt,{scope:n,placedSide:te,onArrowChange:D,arrowX:ie,arrowY:ae,shouldHideArrow:oe,children:(0,$.jsx)(i.div,{"data-side":te,"data-align":ne,...x,ref:T,style:{...x.style,animation:R?void 0:`none`}})})})});zt.displayName=It;var Bt=`PopperArrow`,Vt={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Ht=u.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=Rt(Bt,n),a=Vt[i.placedSide];return(0,$.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,$.jsx)(Dt,{...r,ref:t,style:{...r.style,display:`block`}})})});Ht.displayName=Bt;function Ut(e){return e!==null}var Wt=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Gt(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function Gt(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var Kt=Nt,qt=Ft,Jt=zt,Yt=Ht;export{At as a,Kt as i,Yt as n,Jt as r,qt as t}; \ No newline at end of file diff --git a/src/www/assets/dist-iiotRAEO.js b/src/www/assets/dist-DPYswSIO.js similarity index 92% rename from src/www/assets/dist-iiotRAEO.js rename to src/www/assets/dist-DPYswSIO.js index cf70e3f..5f410f9 100644 --- a/src/www/assets/dist-iiotRAEO.js +++ b/src/www/assets/dist-DPYswSIO.js @@ -1,4 +1,4 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./dist-Cc8_LDAq.js";import{s as i,u as a}from"./button-C_NDYaz8.js";import{a as o,i as s,r as c,t as l}from"./dist-DPPquN_M.js";import{t as u}from"./dist-DvwKOQ8R.js";import{n as d}from"./dist-D4X8zGEB.js";import{n as f,t as p}from"./dist-rcWP-8Cu.js";import{i as m,n as h,r as g,t as _}from"./es2015-DT8UeWzs.js";var v=e(t(),1),y=n(),b=`Dialog`,[x,S]=o(b),[C,w]=x(b),T=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=v.useRef(null),c=v.useRef(null),[u,f]=l({prop:r,defaultProp:i??!1,onChange:a,caller:b});return(0,y.jsx)(C,{scope:t,triggerRef:s,contentRef:c,contentId:d(),titleId:d(),descriptionId:d(),open:u,onOpenChange:f,onOpenToggle:v.useCallback(()=>f(e=>!e),[f]),modal:o,children:n})};T.displayName=b;var E=`DialogTrigger`,D=v.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,o=w(E,n),s=a(t,o.triggerRef);return(0,y.jsx)(r.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":o.open,"aria-controls":o.contentId,"data-state":q(o.open),...i,ref:s,onClick:c(e.onClick,o.onOpenToggle)})});D.displayName=E;var O=`DialogPortal`,[k,A]=x(O,{forceMount:void 0}),j=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=w(O,t);return(0,y.jsx)(k,{scope:t,forceMount:n,children:v.Children.map(r,e=>(0,y.jsx)(u,{present:n||a.open,children:(0,y.jsx)(p,{asChild:!0,container:i,children:e})}))})};j.displayName=O;var M=`DialogOverlay`,N=v.forwardRef((e,t)=>{let n=A(M,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=w(M,e.__scopeDialog);return a.modal?(0,y.jsx)(u,{present:r||a.open,children:(0,y.jsx)(F,{...i,ref:t})}):null});N.displayName=M;var P=i(`DialogOverlay.RemoveScroll`),F=v.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,a=w(M,n);return(0,y.jsx)(h,{as:P,allowPinchZoom:!0,shards:[a.contentRef],children:(0,y.jsx)(r.div,{"data-state":q(a.open),...i,ref:t,style:{pointerEvents:`auto`,...i.style}})})}),I=`DialogContent`,L=v.forwardRef((e,t)=>{let n=A(I,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=w(I,e.__scopeDialog);return(0,y.jsx)(u,{present:r||a.open,children:a.modal?(0,y.jsx)(R,{...i,ref:t}):(0,y.jsx)(z,{...i,ref:t})})});L.displayName=I;var R=v.forwardRef((e,t)=>{let n=w(I,e.__scopeDialog),r=v.useRef(null),i=a(t,n.contentRef,r);return v.useEffect(()=>{let e=r.current;if(e)return _(e)},[]),(0,y.jsx)(B,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:c(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:c(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:c(e.onFocusOutside,e=>e.preventDefault())})}),z=v.forwardRef((e,t)=>{let n=w(I,e.__scopeDialog),r=v.useRef(!1),i=v.useRef(!1);return(0,y.jsx)(B,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),B=v.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...s}=e,c=w(I,n),l=v.useRef(null),u=a(t,l);return g(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(m,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,y.jsx)(f,{role:`dialog`,id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":q(c.open),...s,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Z,{titleId:c.titleId}),(0,y.jsx)($,{contentRef:l,descriptionId:c.descriptionId})]})]})}),V=`DialogTitle`,H=v.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,a=w(V,n);return(0,y.jsx)(r.h2,{id:a.titleId,...i,ref:t})});H.displayName=V;var U=`DialogDescription`,W=v.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,a=w(U,n);return(0,y.jsx)(r.p,{id:a.descriptionId,...i,ref:t})});W.displayName=U;var G=`DialogClose`,K=v.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,a=w(G,n);return(0,y.jsx)(r.button,{type:`button`,...i,ref:t,onClick:c(e.onClick,()=>a.onOpenChange(!1))})});K.displayName=G;function q(e){return e?`open`:`closed`}var J=`DialogTitleWarning`,[Y,X]=s(J,{contentName:I,titleName:V,docsSlug:`dialog`}),Z=({titleId:e})=>{let t=X(J),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";import{t as r}from"./dist-D3WFT-Yo.js";import{s as i,u as a}from"./button-NLSeBFht.js";import{a as o,i as s,r as c,t as l}from"./dist-DmeeHi7K.js";import{t as u}from"./dist-BZMqLvO-.js";import{n as d}from"./dist-SR6sl-WU.js";import{n as f,t as p}from"./dist-esC74fSg.js";import{i as m,n as h,r as g,t as _}from"./es2015-3J9GnV9P.js";var v=e(t(),1),y=n(),b=`Dialog`,[x,S]=o(b),[C,w]=x(b),T=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=v.useRef(null),c=v.useRef(null),[u,f]=l({prop:r,defaultProp:i??!1,onChange:a,caller:b});return(0,y.jsx)(C,{scope:t,triggerRef:s,contentRef:c,contentId:d(),titleId:d(),descriptionId:d(),open:u,onOpenChange:f,onOpenToggle:v.useCallback(()=>f(e=>!e),[f]),modal:o,children:n})};T.displayName=b;var E=`DialogTrigger`,D=v.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,o=w(E,n),s=a(t,o.triggerRef);return(0,y.jsx)(r.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":o.open,"aria-controls":o.contentId,"data-state":q(o.open),...i,ref:s,onClick:c(e.onClick,o.onOpenToggle)})});D.displayName=E;var O=`DialogPortal`,[k,A]=x(O,{forceMount:void 0}),j=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=w(O,t);return(0,y.jsx)(k,{scope:t,forceMount:n,children:v.Children.map(r,e=>(0,y.jsx)(u,{present:n||a.open,children:(0,y.jsx)(p,{asChild:!0,container:i,children:e})}))})};j.displayName=O;var M=`DialogOverlay`,N=v.forwardRef((e,t)=>{let n=A(M,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=w(M,e.__scopeDialog);return a.modal?(0,y.jsx)(u,{present:r||a.open,children:(0,y.jsx)(F,{...i,ref:t})}):null});N.displayName=M;var P=i(`DialogOverlay.RemoveScroll`),F=v.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,a=w(M,n);return(0,y.jsx)(h,{as:P,allowPinchZoom:!0,shards:[a.contentRef],children:(0,y.jsx)(r.div,{"data-state":q(a.open),...i,ref:t,style:{pointerEvents:`auto`,...i.style}})})}),I=`DialogContent`,L=v.forwardRef((e,t)=>{let n=A(I,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=w(I,e.__scopeDialog);return(0,y.jsx)(u,{present:r||a.open,children:a.modal?(0,y.jsx)(R,{...i,ref:t}):(0,y.jsx)(z,{...i,ref:t})})});L.displayName=I;var R=v.forwardRef((e,t)=>{let n=w(I,e.__scopeDialog),r=v.useRef(null),i=a(t,n.contentRef,r);return v.useEffect(()=>{let e=r.current;if(e)return _(e)},[]),(0,y.jsx)(B,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:c(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:c(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:c(e.onFocusOutside,e=>e.preventDefault())})}),z=v.forwardRef((e,t)=>{let n=w(I,e.__scopeDialog),r=v.useRef(!1),i=v.useRef(!1);return(0,y.jsx)(B,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),B=v.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...s}=e,c=w(I,n),l=v.useRef(null),u=a(t,l);return g(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(m,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,y.jsx)(f,{role:`dialog`,id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":q(c.open),...s,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Z,{titleId:c.titleId}),(0,y.jsx)($,{contentRef:l,descriptionId:c.descriptionId})]})]})}),V=`DialogTitle`,H=v.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,a=w(V,n);return(0,y.jsx)(r.h2,{id:a.titleId,...i,ref:t})});H.displayName=V;var U=`DialogDescription`,W=v.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,a=w(U,n);return(0,y.jsx)(r.p,{id:a.descriptionId,...i,ref:t})});W.displayName=U;var G=`DialogClose`,K=v.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,a=w(G,n);return(0,y.jsx)(r.button,{type:`button`,...i,ref:t,onClick:c(e.onClick,()=>a.onOpenChange(!1))})});K.displayName=G;function q(e){return e?`open`:`closed`}var J=`DialogTitleWarning`,[Y,X]=s(J,{contentName:I,titleName:V,docsSlug:`dialog`}),Z=({titleId:e})=>{let t=X(J),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. diff --git a/src/www/assets/dist-JOUh6qvR.js b/src/www/assets/dist-Dd-sCJIt.js similarity index 99% rename from src/www/assets/dist-JOUh6qvR.js rename to src/www/assets/dist-Dd-sCJIt.js index 045ba2e..f891f1e 100644 --- a/src/www/assets/dist-JOUh6qvR.js +++ b/src/www/assets/dist-Dd-sCJIt.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{r as n}from"./dist-Cc8_LDAq.js";var r=e(t(),1),i=e(n(),1);function a(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var o=e=>{switch(e){case`success`:return l;case`info`:return d;case`warning`:return u;case`error`:return f;default:return null}},s=Array(12).fill(0),c=({visible:e,className:t})=>r.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},r.createElement(`div`,{className:`sonner-spinner`},s.map((e,t)=>r.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),l=r.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},r.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),u=r.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`},r.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),d=r.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},r.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),f=r.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},r.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),p=r.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`},r.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),r.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),ee=()=>{let[e,t]=r.useState(document.hidden);return r.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>window.removeEventListener(`visibilitychange`,e)},[]),e},m=1,h=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{let{message:t,...n}=e,r=typeof e?.id==`number`||e.id?.length>0?e.id:m++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let i=Promise.resolve(e instanceof Function?e():e),a=n!==void 0,o,s=i.then(async e=>{if(o=[`resolve`,e],r.isValidElement(e))a=!1,this.create({id:n,type:`default`,message:e});else if(_(e)&&!e.ok){a=!1;let i=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,o=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,s=typeof i==`object`&&!r.isValidElement(i)?i:{message:i};this.create({id:n,type:`error`,description:o,...s})}else if(e instanceof Error){a=!1;let i=typeof t.error==`function`?await t.error(e):t.error,o=typeof t.description==`function`?await t.description(e):t.description,s=typeof i==`object`&&!r.isValidElement(i)?i:{message:i};this.create({id:n,type:`error`,description:o,...s})}else if(t.success!==void 0){a=!1;let i=typeof t.success==`function`?await t.success(e):t.success,o=typeof t.description==`function`?await t.description(e):t.description,s=typeof i==`object`&&!r.isValidElement(i)?i:{message:i};this.create({id:n,type:`success`,description:o,...s})}}).catch(async e=>{if(o=[`reject`,e],t.error!==void 0){a=!1;let i=typeof t.error==`function`?await t.error(e):t.error,o=typeof t.description==`function`?await t.description(e):t.description,s=typeof i==`object`&&!r.isValidElement(i)?i:{message:i};this.create({id:n,type:`error`,description:o,...s})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),c=()=>new Promise((e,t)=>s.then(()=>o[0]===`reject`?t(o[1]):e(o[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:c}:Object.assign(n,{unwrap:c})},this.custom=(e,t)=>{let n=t?.id||m++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},g=(e,t)=>{let n=t?.id||m++;return h.addToast({title:e,...t,id:n}),n},_=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,v=Object.assign(g,{success:h.success,info:h.info,warning:h.warning,error:h.error,custom:h.custom,message:h.message,promise:h.promise,dismiss:h.dismiss,loading:h.loading},{getHistory:()=>h.toasts,getToasts:()=>h.getActiveToasts()});a(`[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}`);function y(e){return e.label!==void 0}var te=3,b=`24px`,x=`16px`,S=4e3,C=356,w=14,T=45,E=200;function D(...e){return e.filter(Boolean).join(` `)}function ne(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var O=e=>{let{invert:t,toast:n,unstyled:i,interacting:a,setHeights:s,visibleToasts:l,heights:u,index:d,toasts:f,expanded:m,removeToast:h,defaultRichColors:g,closeButton:_,style:v,cancelButtonStyle:te,actionButtonStyle:b,className:x=``,descriptionClassName:C=``,duration:w,position:O,gap:k,expandByDefault:A,classNames:j,icons:M,closeButtonAriaLabel:re=`Close toast`}=e,[N,P]=r.useState(null),[F,ie]=r.useState(null),[I,L]=r.useState(!1),[R,z]=r.useState(!1),[B,V]=r.useState(!1),[ae,oe]=r.useState(!1),[se,ce]=r.useState(!1),[le,H]=r.useState(0),[ue,U]=r.useState(0),W=r.useRef(n.duration||w||S),de=r.useRef(null),G=r.useRef(null),fe=d===0,pe=d+1<=l,K=n.type,q=n.dismissible!==!1,me=n.className||``,he=n.descriptionClassName||``,J=r.useMemo(()=>u.findIndex(e=>e.toastId===n.id)||0,[u,n.id]),ge=r.useMemo(()=>n.closeButton??_,[n.closeButton,_]),_e=r.useMemo(()=>n.duration||w||S,[n.duration,w]),Y=r.useRef(0),X=r.useRef(0),ve=r.useRef(0),Z=r.useRef(null),[ye,be]=O.split(`-`),xe=r.useMemo(()=>u.reduce((e,t,n)=>n>=J?e:e+t.height,0),[u,J]),Se=ee(),Ce=n.invert||t,Q=K===`loading`;X.current=r.useMemo(()=>J*k+xe,[J,xe]),r.useEffect(()=>{W.current=_e},[_e]),r.useEffect(()=>{L(!0)},[]),r.useEffect(()=>{let e=G.current;if(e){let t=e.getBoundingClientRect().height;return U(t),s(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>s(e=>e.filter(e=>e.toastId!==n.id))}},[s,n.id]),r.useLayoutEffect(()=>{if(!I)return;let e=G.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,U(r),s(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[I,n.title,n.description,s,n.id,n.jsx,n.action,n.cancel]);let $=r.useCallback(()=>{z(!0),H(X.current),s(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{h(n)},E)},[n,h,s,X]);r.useEffect(()=>{if(n.promise&&K===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return m||a||Se?(()=>{if(ve.current{n.onAutoClose==null||n.onAutoClose.call(n,n),$()},W.current)),()=>clearTimeout(e)},[m,a,n,K,Se,$]),r.useEffect(()=>{n.delete&&($(),n.onDismiss==null||n.onDismiss.call(n,n))},[$,n.delete]);function we(){return M?.loading?r.createElement(`div`,{className:D(j?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":K===`loading`},M.loading):r.createElement(c,{className:D(j?.loader,n?.classNames?.loader),visible:K===`loading`})}let Te=n.icon||M?.[K]||o(K);return r.createElement(`li`,{tabIndex:0,ref:G,className:D(x,me,j?.toast,n?.classNames?.toast,j?.default,j?.[K],n?.classNames?.[K]),"data-sonner-toast":``,"data-rich-colors":n.richColors??g,"data-styled":!(n.jsx||n.unstyled||i),"data-mounted":I,"data-promise":!!n.promise,"data-swiped":se,"data-removed":R,"data-visible":pe,"data-y-position":ye,"data-x-position":be,"data-index":d,"data-front":fe,"data-swiping":B,"data-dismissible":q,"data-type":K,"data-invert":Ce,"data-swipe-out":ae,"data-swipe-direction":F,"data-expanded":!!(m||A&&I),"data-testid":n.testId,style:{"--index":d,"--toasts-before":d,"--z-index":f.length-d,"--offset":`${R?le:X.current}px`,"--initial-height":A?`auto`:`${ue}px`,...v,...n.style},onDragEnd:()=>{V(!1),P(null),Z.current=null},onPointerDown:e=>{e.button!==2&&(Q||!q||(de.current=new Date,H(X.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(V(!0),Z.current={x:e.clientX,y:e.clientY})))},onPointerUp:()=>{if(ae||!q)return;Z.current=null;let e=Number(G.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(G.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-de.current?.getTime(),i=N===`x`?e:t,a=Math.abs(i)/r;if(Math.abs(i)>=T||a>.11){H(X.current),n.onDismiss==null||n.onDismiss.call(n,n),ie(N===`x`?e>0?`right`:`left`:t>0?`down`:`up`),$(),oe(!0);return}else{var o,s;(o=G.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=G.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`)}ce(!1),V(!1),P(null)},onPointerMove:t=>{var n,r;if(!Z.current||!q||window.getSelection()?.toString().length>0)return;let i=t.clientY-Z.current.y,a=t.clientX-Z.current.x,o=e.swipeDirections??ne(O);!N&&(Math.abs(a)>1||Math.abs(i)>1)&&P(Math.abs(a)>Math.abs(i)?`x`:`y`);let s={x:0,y:0},c=e=>1/(1.5+Math.abs(e)/20);if(N===`y`){if(o.includes(`top`)||o.includes(`bottom`))if(o.includes(`top`)&&i<0||o.includes(`bottom`)&&i>0)s.y=i;else{let e=i*c(i);s.y=Math.abs(e)0)s.x=a;else{let e=a*c(a);s.x=Math.abs(e)0||Math.abs(s.y)>0)&&ce(!0),(n=G.current)==null||n.style.setProperty(`--swipe-amount-x`,`${s.x}px`),(r=G.current)==null||r.style.setProperty(`--swipe-amount-y`,`${s.y}px`)}},ge&&!n.jsx&&K!==`loading`?r.createElement(`button`,{"aria-label":re,"data-disabled":Q,"data-close-button":!0,onClick:Q||!q?()=>{}:()=>{$(),n.onDismiss==null||n.onDismiss.call(n,n)},className:D(j?.closeButton,n?.classNames?.closeButton)},M?.close??p):null,(K||n.icon||n.promise)&&n.icon!==null&&(M?.[K]!==null||n.icon)?r.createElement(`div`,{"data-icon":``,className:D(j?.icon,n?.classNames?.icon)},n.promise||n.type===`loading`&&!n.icon?n.icon||we():null,n.type===`loading`?null:Te):null,r.createElement(`div`,{"data-content":``,className:D(j?.content,n?.classNames?.content)},r.createElement(`div`,{"data-title":``,className:D(j?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?r.createElement(`div`,{"data-description":``,className:D(C,he,j?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),r.isValidElement(n.cancel)?n.cancel:n.cancel&&y(n.cancel)?r.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||te,onClick:e=>{y(n.cancel)&&q&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),$())},className:D(j?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,r.isValidElement(n.action)?n.action:n.action&&y(n.action)?r.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||b,onClick:e=>{y(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&$())},className:D(j?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function k(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function A(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?x:b;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var j=r.forwardRef(function(e,t){let{id:n,invert:a,position:o=`bottom-right`,hotkey:s=[`altKey`,`KeyT`],expand:c,closeButton:l,className:u,offset:d,mobileOffset:f,theme:p=`light`,richColors:ee,duration:m,style:g,visibleToasts:_=te,toastOptions:v,dir:y=k(),gap:b=w,icons:x,containerAriaLabel:S=`Notifications`}=e,[T,E]=r.useState([]),D=r.useMemo(()=>n?T.filter(e=>e.toasterId===n):T.filter(e=>!e.toasterId),[T,n]),ne=r.useMemo(()=>Array.from(new Set([o].concat(D.filter(e=>e.position).map(e=>e.position)))),[D,o]),[j,M]=r.useState([]),[re,N]=r.useState(!1),[P,F]=r.useState(!1),[ie,I]=r.useState(p===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:p),L=r.useRef(null),R=s.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),z=r.useRef(null),B=r.useRef(!1),V=r.useCallback(e=>{E(t=>(t.find(t=>t.id===e.id)?.delete||h.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return r.useEffect(()=>h.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{E(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});return}setTimeout(()=>{i.flushSync(()=>{E(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[T]),r.useEffect(()=>{if(p!==`system`){I(p);return}if(p===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?I(`dark`):I(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{I(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{I(e?`dark`:`light`)}catch(e){console.error(e)}})}},[p]),r.useEffect(()=>{T.length<=1&&N(!1)},[T]),r.useEffect(()=>{let e=e=>{if(s.every(t=>e[t]||e.code===t)){var t;N(!0),(t=L.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===L.current||L.current?.contains(document.activeElement))&&N(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[s]),r.useEffect(()=>{if(L.current)return()=>{z.current&&(z.current.focus({preventScroll:!0}),z.current=null,B.current=!1)}},[L.current]),r.createElement(`section`,{ref:t,"aria-label":`${S} ${R}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0},ne.map((t,n)=>{let[i,o]=t.split(`-`);return D.length?r.createElement(`ol`,{key:t,dir:y===`auto`?k():y,tabIndex:-1,ref:L,className:u,"data-sonner-toaster":!0,"data-sonner-theme":ie,"data-y-position":i,"data-x-position":o,style:{"--front-toast-height":`${j[0]?.height||0}px`,"--width":`${C}px`,"--gap":`${b}px`,...g,...A(d,f)},onBlur:e=>{B.current&&!e.currentTarget.contains(e.relatedTarget)&&(B.current=!1,z.current&&=(z.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||B.current||(B.current=!0,z.current=e.relatedTarget)},onMouseEnter:()=>N(!0),onMouseMove:()=>N(!0),onMouseLeave:()=>{P||N(!1)},onDragEnd:()=>N(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||F(!0)},onPointerUp:()=>F(!1)},D.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>r.createElement(O,{key:n.id,icons:x,index:i,toast:n,defaultRichColors:ee,duration:v?.duration??m,className:v?.className,descriptionClassName:v?.descriptionClassName,invert:a,visibleToasts:_,closeButton:v?.closeButton??l,interacting:P,position:t,style:v?.style,unstyled:v?.unstyled,classNames:v?.classNames,cancelButtonStyle:v?.cancelButtonStyle,actionButtonStyle:v?.actionButtonStyle,closeButtonAriaLabel:v?.closeButtonAriaLabel,removeToast:V,toasts:D.filter(e=>e.position==n.position),heights:j.filter(e=>e.position==n.position),setHeights:M,expandByDefault:c,gap:b,expanded:re,swipeDirections:e.swipeDirections}))):null}))});export{v as n,j as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{r as n}from"./dist-D3WFT-Yo.js";var r=e(t(),1),i=e(n(),1);function a(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var o=e=>{switch(e){case`success`:return l;case`info`:return d;case`warning`:return u;case`error`:return f;default:return null}},s=Array(12).fill(0),c=({visible:e,className:t})=>r.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},r.createElement(`div`,{className:`sonner-spinner`},s.map((e,t)=>r.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),l=r.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},r.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),u=r.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`},r.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),d=r.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},r.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),f=r.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},r.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),p=r.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`},r.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),r.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),ee=()=>{let[e,t]=r.useState(document.hidden);return r.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>window.removeEventListener(`visibilitychange`,e)},[]),e},m=1,h=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{let{message:t,...n}=e,r=typeof e?.id==`number`||e.id?.length>0?e.id:m++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let i=Promise.resolve(e instanceof Function?e():e),a=n!==void 0,o,s=i.then(async e=>{if(o=[`resolve`,e],r.isValidElement(e))a=!1,this.create({id:n,type:`default`,message:e});else if(_(e)&&!e.ok){a=!1;let i=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,o=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,s=typeof i==`object`&&!r.isValidElement(i)?i:{message:i};this.create({id:n,type:`error`,description:o,...s})}else if(e instanceof Error){a=!1;let i=typeof t.error==`function`?await t.error(e):t.error,o=typeof t.description==`function`?await t.description(e):t.description,s=typeof i==`object`&&!r.isValidElement(i)?i:{message:i};this.create({id:n,type:`error`,description:o,...s})}else if(t.success!==void 0){a=!1;let i=typeof t.success==`function`?await t.success(e):t.success,o=typeof t.description==`function`?await t.description(e):t.description,s=typeof i==`object`&&!r.isValidElement(i)?i:{message:i};this.create({id:n,type:`success`,description:o,...s})}}).catch(async e=>{if(o=[`reject`,e],t.error!==void 0){a=!1;let i=typeof t.error==`function`?await t.error(e):t.error,o=typeof t.description==`function`?await t.description(e):t.description,s=typeof i==`object`&&!r.isValidElement(i)?i:{message:i};this.create({id:n,type:`error`,description:o,...s})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),c=()=>new Promise((e,t)=>s.then(()=>o[0]===`reject`?t(o[1]):e(o[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:c}:Object.assign(n,{unwrap:c})},this.custom=(e,t)=>{let n=t?.id||m++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},g=(e,t)=>{let n=t?.id||m++;return h.addToast({title:e,...t,id:n}),n},_=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,v=Object.assign(g,{success:h.success,info:h.info,warning:h.warning,error:h.error,custom:h.custom,message:h.message,promise:h.promise,dismiss:h.dismiss,loading:h.loading},{getHistory:()=>h.toasts,getToasts:()=>h.getActiveToasts()});a(`[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}`);function y(e){return e.label!==void 0}var te=3,b=`24px`,x=`16px`,S=4e3,C=356,w=14,T=45,E=200;function D(...e){return e.filter(Boolean).join(` `)}function ne(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var O=e=>{let{invert:t,toast:n,unstyled:i,interacting:a,setHeights:s,visibleToasts:l,heights:u,index:d,toasts:f,expanded:m,removeToast:h,defaultRichColors:g,closeButton:_,style:v,cancelButtonStyle:te,actionButtonStyle:b,className:x=``,descriptionClassName:C=``,duration:w,position:O,gap:k,expandByDefault:A,classNames:j,icons:M,closeButtonAriaLabel:re=`Close toast`}=e,[N,P]=r.useState(null),[F,ie]=r.useState(null),[I,L]=r.useState(!1),[R,z]=r.useState(!1),[B,V]=r.useState(!1),[ae,oe]=r.useState(!1),[se,ce]=r.useState(!1),[le,H]=r.useState(0),[ue,U]=r.useState(0),W=r.useRef(n.duration||w||S),de=r.useRef(null),G=r.useRef(null),fe=d===0,pe=d+1<=l,K=n.type,q=n.dismissible!==!1,me=n.className||``,he=n.descriptionClassName||``,J=r.useMemo(()=>u.findIndex(e=>e.toastId===n.id)||0,[u,n.id]),ge=r.useMemo(()=>n.closeButton??_,[n.closeButton,_]),_e=r.useMemo(()=>n.duration||w||S,[n.duration,w]),Y=r.useRef(0),X=r.useRef(0),ve=r.useRef(0),Z=r.useRef(null),[ye,be]=O.split(`-`),xe=r.useMemo(()=>u.reduce((e,t,n)=>n>=J?e:e+t.height,0),[u,J]),Se=ee(),Ce=n.invert||t,Q=K===`loading`;X.current=r.useMemo(()=>J*k+xe,[J,xe]),r.useEffect(()=>{W.current=_e},[_e]),r.useEffect(()=>{L(!0)},[]),r.useEffect(()=>{let e=G.current;if(e){let t=e.getBoundingClientRect().height;return U(t),s(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>s(e=>e.filter(e=>e.toastId!==n.id))}},[s,n.id]),r.useLayoutEffect(()=>{if(!I)return;let e=G.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,U(r),s(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[I,n.title,n.description,s,n.id,n.jsx,n.action,n.cancel]);let $=r.useCallback(()=>{z(!0),H(X.current),s(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{h(n)},E)},[n,h,s,X]);r.useEffect(()=>{if(n.promise&&K===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return m||a||Se?(()=>{if(ve.current{n.onAutoClose==null||n.onAutoClose.call(n,n),$()},W.current)),()=>clearTimeout(e)},[m,a,n,K,Se,$]),r.useEffect(()=>{n.delete&&($(),n.onDismiss==null||n.onDismiss.call(n,n))},[$,n.delete]);function we(){return M?.loading?r.createElement(`div`,{className:D(j?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":K===`loading`},M.loading):r.createElement(c,{className:D(j?.loader,n?.classNames?.loader),visible:K===`loading`})}let Te=n.icon||M?.[K]||o(K);return r.createElement(`li`,{tabIndex:0,ref:G,className:D(x,me,j?.toast,n?.classNames?.toast,j?.default,j?.[K],n?.classNames?.[K]),"data-sonner-toast":``,"data-rich-colors":n.richColors??g,"data-styled":!(n.jsx||n.unstyled||i),"data-mounted":I,"data-promise":!!n.promise,"data-swiped":se,"data-removed":R,"data-visible":pe,"data-y-position":ye,"data-x-position":be,"data-index":d,"data-front":fe,"data-swiping":B,"data-dismissible":q,"data-type":K,"data-invert":Ce,"data-swipe-out":ae,"data-swipe-direction":F,"data-expanded":!!(m||A&&I),"data-testid":n.testId,style:{"--index":d,"--toasts-before":d,"--z-index":f.length-d,"--offset":`${R?le:X.current}px`,"--initial-height":A?`auto`:`${ue}px`,...v,...n.style},onDragEnd:()=>{V(!1),P(null),Z.current=null},onPointerDown:e=>{e.button!==2&&(Q||!q||(de.current=new Date,H(X.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(V(!0),Z.current={x:e.clientX,y:e.clientY})))},onPointerUp:()=>{if(ae||!q)return;Z.current=null;let e=Number(G.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(G.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-de.current?.getTime(),i=N===`x`?e:t,a=Math.abs(i)/r;if(Math.abs(i)>=T||a>.11){H(X.current),n.onDismiss==null||n.onDismiss.call(n,n),ie(N===`x`?e>0?`right`:`left`:t>0?`down`:`up`),$(),oe(!0);return}else{var o,s;(o=G.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=G.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`)}ce(!1),V(!1),P(null)},onPointerMove:t=>{var n,r;if(!Z.current||!q||window.getSelection()?.toString().length>0)return;let i=t.clientY-Z.current.y,a=t.clientX-Z.current.x,o=e.swipeDirections??ne(O);!N&&(Math.abs(a)>1||Math.abs(i)>1)&&P(Math.abs(a)>Math.abs(i)?`x`:`y`);let s={x:0,y:0},c=e=>1/(1.5+Math.abs(e)/20);if(N===`y`){if(o.includes(`top`)||o.includes(`bottom`))if(o.includes(`top`)&&i<0||o.includes(`bottom`)&&i>0)s.y=i;else{let e=i*c(i);s.y=Math.abs(e)0)s.x=a;else{let e=a*c(a);s.x=Math.abs(e)0||Math.abs(s.y)>0)&&ce(!0),(n=G.current)==null||n.style.setProperty(`--swipe-amount-x`,`${s.x}px`),(r=G.current)==null||r.style.setProperty(`--swipe-amount-y`,`${s.y}px`)}},ge&&!n.jsx&&K!==`loading`?r.createElement(`button`,{"aria-label":re,"data-disabled":Q,"data-close-button":!0,onClick:Q||!q?()=>{}:()=>{$(),n.onDismiss==null||n.onDismiss.call(n,n)},className:D(j?.closeButton,n?.classNames?.closeButton)},M?.close??p):null,(K||n.icon||n.promise)&&n.icon!==null&&(M?.[K]!==null||n.icon)?r.createElement(`div`,{"data-icon":``,className:D(j?.icon,n?.classNames?.icon)},n.promise||n.type===`loading`&&!n.icon?n.icon||we():null,n.type===`loading`?null:Te):null,r.createElement(`div`,{"data-content":``,className:D(j?.content,n?.classNames?.content)},r.createElement(`div`,{"data-title":``,className:D(j?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?r.createElement(`div`,{"data-description":``,className:D(C,he,j?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),r.isValidElement(n.cancel)?n.cancel:n.cancel&&y(n.cancel)?r.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||te,onClick:e=>{y(n.cancel)&&q&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),$())},className:D(j?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,r.isValidElement(n.action)?n.action:n.action&&y(n.action)?r.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||b,onClick:e=>{y(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&$())},className:D(j?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function k(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function A(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?x:b;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var j=r.forwardRef(function(e,t){let{id:n,invert:a,position:o=`bottom-right`,hotkey:s=[`altKey`,`KeyT`],expand:c,closeButton:l,className:u,offset:d,mobileOffset:f,theme:p=`light`,richColors:ee,duration:m,style:g,visibleToasts:_=te,toastOptions:v,dir:y=k(),gap:b=w,icons:x,containerAriaLabel:S=`Notifications`}=e,[T,E]=r.useState([]),D=r.useMemo(()=>n?T.filter(e=>e.toasterId===n):T.filter(e=>!e.toasterId),[T,n]),ne=r.useMemo(()=>Array.from(new Set([o].concat(D.filter(e=>e.position).map(e=>e.position)))),[D,o]),[j,M]=r.useState([]),[re,N]=r.useState(!1),[P,F]=r.useState(!1),[ie,I]=r.useState(p===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:p),L=r.useRef(null),R=s.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),z=r.useRef(null),B=r.useRef(!1),V=r.useCallback(e=>{E(t=>(t.find(t=>t.id===e.id)?.delete||h.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return r.useEffect(()=>h.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{E(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});return}setTimeout(()=>{i.flushSync(()=>{E(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[T]),r.useEffect(()=>{if(p!==`system`){I(p);return}if(p===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?I(`dark`):I(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{I(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{I(e?`dark`:`light`)}catch(e){console.error(e)}})}},[p]),r.useEffect(()=>{T.length<=1&&N(!1)},[T]),r.useEffect(()=>{let e=e=>{if(s.every(t=>e[t]||e.code===t)){var t;N(!0),(t=L.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===L.current||L.current?.contains(document.activeElement))&&N(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[s]),r.useEffect(()=>{if(L.current)return()=>{z.current&&(z.current.focus({preventScroll:!0}),z.current=null,B.current=!1)}},[L.current]),r.createElement(`section`,{ref:t,"aria-label":`${S} ${R}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0},ne.map((t,n)=>{let[i,o]=t.split(`-`);return D.length?r.createElement(`ol`,{key:t,dir:y===`auto`?k():y,tabIndex:-1,ref:L,className:u,"data-sonner-toaster":!0,"data-sonner-theme":ie,"data-y-position":i,"data-x-position":o,style:{"--front-toast-height":`${j[0]?.height||0}px`,"--width":`${C}px`,"--gap":`${b}px`,...g,...A(d,f)},onBlur:e=>{B.current&&!e.currentTarget.contains(e.relatedTarget)&&(B.current=!1,z.current&&=(z.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||B.current||(B.current=!0,z.current=e.relatedTarget)},onMouseEnter:()=>N(!0),onMouseMove:()=>N(!0),onMouseLeave:()=>{P||N(!1)},onDragEnd:()=>N(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||F(!0)},onPointerUp:()=>F(!1)},D.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>r.createElement(O,{key:n.id,icons:x,index:i,toast:n,defaultRichColors:ee,duration:v?.duration??m,className:v?.className,descriptionClassName:v?.descriptionClassName,invert:a,visibleToasts:_,closeButton:v?.closeButton??l,interacting:P,position:t,style:v?.style,unstyled:v?.unstyled,classNames:v?.classNames,cancelButtonStyle:v?.cancelButtonStyle,actionButtonStyle:v?.actionButtonStyle,closeButtonAriaLabel:v?.closeButtonAriaLabel,removeToast:V,toasts:D.filter(e=>e.position==n.position),heights:j.filter(e=>e.position==n.position),setHeights:M,expandByDefault:c,gap:b,expanded:re,swipeDirections:e.swipeDirections}))):null}))});export{v as n,j as t}; \ No newline at end of file diff --git a/src/www/assets/dist-D0DoWChj.js b/src/www/assets/dist-DhcQhr4B.js similarity index 91% rename from src/www/assets/dist-D0DoWChj.js rename to src/www/assets/dist-DhcQhr4B.js index 451254d..ce2bb3f 100644 --- a/src/www/assets/dist-D0DoWChj.js +++ b/src/www/assets/dist-DhcQhr4B.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./dist-Cc8_LDAq.js";import{u as i}from"./button-C_NDYaz8.js";import{a,r as o,t as s}from"./dist-DPPquN_M.js";import{t as c}from"./dist-CHFjpVqk.js";import{n as l,t as u}from"./dist-D4X8zGEB.js";import{n as d}from"./dist-BNFQuJTu.js";var f=e(t(),1),p=n(),m=`rovingFocusGroup.onEntryFocus`,h={bubbles:!1,cancelable:!0},g=`RovingFocusGroup`,[_,v,y]=c(g),[b,x]=a(g,[y]),[S,C]=b(g),w=f.forwardRef((e,t)=>(0,p.jsx)(_.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(_.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(T,{...e,ref:t})})}));w.displayName=g;var T=f.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:a,loop:c=!1,dir:l,currentTabStopId:_,defaultCurrentTabStopId:y,onCurrentTabStopIdChange:b,onEntryFocus:x,preventScrollOnEntryFocus:C=!1,...w}=e,T=f.useRef(null),E=i(t,T),D=d(l),[O,k]=s({prop:_,defaultProp:y??null,onChange:b,caller:g}),[A,M]=f.useState(!1),N=u(x),P=v(n),F=f.useRef(!1),[I,L]=f.useState(0);return f.useEffect(()=>{let e=T.current;if(e)return e.addEventListener(m,N),()=>e.removeEventListener(m,N)},[N]),(0,p.jsx)(S,{scope:n,orientation:a,dir:D,loop:c,currentTabStopId:O,onItemFocus:f.useCallback(e=>k(e),[k]),onItemShiftTab:f.useCallback(()=>M(!0),[]),onFocusableItemAdd:f.useCallback(()=>L(e=>e+1),[]),onFocusableItemRemove:f.useCallback(()=>L(e=>e-1),[]),children:(0,p.jsx)(r.div,{tabIndex:A||I===0?-1:0,"data-orientation":a,...w,ref:E,style:{outline:`none`,...e.style},onMouseDown:o(e.onMouseDown,()=>{F.current=!0}),onFocus:o(e.onFocus,e=>{let t=!F.current;if(e.target===e.currentTarget&&t&&!A){let t=new CustomEvent(m,h);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=P().filter(e=>e.focusable);j([e.find(e=>e.active),e.find(e=>e.id===O),...e].filter(Boolean).map(e=>e.ref.current),C)}}F.current=!1}),onBlur:o(e.onBlur,()=>M(!1))})})}),E=`RovingFocusGroupItem`,D=f.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:i=!0,active:a=!1,tabStopId:s,children:c,...u}=e,d=l(),m=s||d,h=C(E,n),g=h.currentTabStopId===m,y=v(n),{onFocusableItemAdd:b,onFocusableItemRemove:x,currentTabStopId:S}=h;return f.useEffect(()=>{if(i)return b(),()=>x()},[i,b,x]),(0,p.jsx)(_.ItemSlot,{scope:n,id:m,focusable:i,active:a,children:(0,p.jsx)(r.span,{tabIndex:g?0:-1,"data-orientation":h.orientation,...u,ref:t,onMouseDown:o(e.onMouseDown,e=>{i?h.onItemFocus(m):e.preventDefault()}),onFocus:o(e.onFocus,()=>h.onItemFocus(m)),onKeyDown:o(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){h.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=A(e,h.orientation,h.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=y().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=h.loop?M(n,r+1):n.slice(r+1)}setTimeout(()=>j(n))}}),children:typeof c==`function`?c({isCurrentTabStop:g,hasTabStop:S!=null}):c})})});D.displayName=E;var O={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function k(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function A(e,t,n){let r=k(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return O[r]}function j(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function M(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var N=w,P=D;export{N as n,x as r,P as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";import{t as r}from"./dist-D3WFT-Yo.js";import{u as i}from"./button-NLSeBFht.js";import{a,r as o,t as s}from"./dist-DmeeHi7K.js";import{t as c}from"./dist-UaPzzPYf.js";import{n as l,t as u}from"./dist-SR6sl-WU.js";import{n as d}from"./dist-CGRahgI2.js";var f=e(t(),1),p=n(),m=`rovingFocusGroup.onEntryFocus`,h={bubbles:!1,cancelable:!0},g=`RovingFocusGroup`,[_,v,y]=c(g),[b,x]=a(g,[y]),[S,C]=b(g),w=f.forwardRef((e,t)=>(0,p.jsx)(_.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(_.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(T,{...e,ref:t})})}));w.displayName=g;var T=f.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:a,loop:c=!1,dir:l,currentTabStopId:_,defaultCurrentTabStopId:y,onCurrentTabStopIdChange:b,onEntryFocus:x,preventScrollOnEntryFocus:C=!1,...w}=e,T=f.useRef(null),E=i(t,T),D=d(l),[O,k]=s({prop:_,defaultProp:y??null,onChange:b,caller:g}),[A,M]=f.useState(!1),N=u(x),P=v(n),F=f.useRef(!1),[I,L]=f.useState(0);return f.useEffect(()=>{let e=T.current;if(e)return e.addEventListener(m,N),()=>e.removeEventListener(m,N)},[N]),(0,p.jsx)(S,{scope:n,orientation:a,dir:D,loop:c,currentTabStopId:O,onItemFocus:f.useCallback(e=>k(e),[k]),onItemShiftTab:f.useCallback(()=>M(!0),[]),onFocusableItemAdd:f.useCallback(()=>L(e=>e+1),[]),onFocusableItemRemove:f.useCallback(()=>L(e=>e-1),[]),children:(0,p.jsx)(r.div,{tabIndex:A||I===0?-1:0,"data-orientation":a,...w,ref:E,style:{outline:`none`,...e.style},onMouseDown:o(e.onMouseDown,()=>{F.current=!0}),onFocus:o(e.onFocus,e=>{let t=!F.current;if(e.target===e.currentTarget&&t&&!A){let t=new CustomEvent(m,h);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=P().filter(e=>e.focusable);j([e.find(e=>e.active),e.find(e=>e.id===O),...e].filter(Boolean).map(e=>e.ref.current),C)}}F.current=!1}),onBlur:o(e.onBlur,()=>M(!1))})})}),E=`RovingFocusGroupItem`,D=f.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:i=!0,active:a=!1,tabStopId:s,children:c,...u}=e,d=l(),m=s||d,h=C(E,n),g=h.currentTabStopId===m,y=v(n),{onFocusableItemAdd:b,onFocusableItemRemove:x,currentTabStopId:S}=h;return f.useEffect(()=>{if(i)return b(),()=>x()},[i,b,x]),(0,p.jsx)(_.ItemSlot,{scope:n,id:m,focusable:i,active:a,children:(0,p.jsx)(r.span,{tabIndex:g?0:-1,"data-orientation":h.orientation,...u,ref:t,onMouseDown:o(e.onMouseDown,e=>{i?h.onItemFocus(m):e.preventDefault()}),onFocus:o(e.onFocus,()=>h.onItemFocus(m)),onKeyDown:o(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){h.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=A(e,h.orientation,h.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=y().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=h.loop?M(n,r+1):n.slice(r+1)}setTimeout(()=>j(n))}}),children:typeof c==`function`?c({isCurrentTabStop:g,hasTabStop:S!=null}):c})})});D.displayName=E;var O={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function k(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function A(e,t,n){let r=k(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return O[r]}function j(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function M(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var N=w,P=D;export{N as n,x as r,P as t}; \ No newline at end of file diff --git a/src/www/assets/dist-DPPquN_M.js b/src/www/assets/dist-DmeeHi7K.js similarity index 97% rename from src/www/assets/dist-DPPquN_M.js rename to src/www/assets/dist-DmeeHi7K.js index 8037de4..8ffa7d3 100644 --- a/src/www/assets/dist-DPPquN_M.js +++ b/src/www/assets/dist-DmeeHi7K.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";var r=e(t(),1),i=n();function a(e,t){let n=r.createContext(t),a=e=>{let{children:t,...a}=e,o=r.useMemo(()=>a,Object.values(a));return(0,i.jsx)(n.Provider,{value:o,children:t})};a.displayName=e+`Provider`;function o(i){let a=r.useContext(n);if(a)return a;if(t!==void 0)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}return[a,o]}function o(e,t=[]){let n=[];function a(t,a){let o=r.createContext(a),s=n.length;n=[...n,a];let c=t=>{let{scope:n,children:a,...c}=t,l=n?.[e]?.[s]||o,u=r.useMemo(()=>c,Object.values(c));return(0,i.jsx)(l.Provider,{value:u,children:a})};c.displayName=t+`Provider`;function l(n,i){let c=i?.[e]?.[s]||o,l=r.useContext(c);if(l)return l;if(a!==void 0)return a;throw Error(`\`${n}\` must be used within \`${t}\``)}return[c,l]}let o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return o.scopeName=e,[a,s(o,...t)]}function s(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}typeof window<`u`&&window.document&&window.document.createElement;function c(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}var l=globalThis?.document?r.useLayoutEffect:()=>{},u=r.useInsertionEffect||l;function d({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){let[a,o,s]=f({defaultProp:t,onChange:n}),c=e!==void 0,l=c?e:a;{let t=r.useRef(e!==void 0);r.useEffect(()=>{let e=t.current;e!==c&&console.warn(`${i} is changing from ${e?`controlled`:`uncontrolled`} to ${c?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=c},[c,i])}return[l,r.useCallback(t=>{if(c){let n=p(t)?t(e):t;n!==e&&s.current?.(n)}else o(t)},[c,e,o,s])]}function f({defaultProp:e,onChange:t}){let[n,i]=r.useState(e),a=r.useRef(n),o=r.useRef(t);return u(()=>{o.current=t},[t]),r.useEffect(()=>{a.current!==n&&(o.current?.(n),a.current=n)},[n,a]),[n,i,o]}function p(e){return typeof e==`function`}export{o as a,a as i,l as n,c as r,d as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";var r=e(t(),1),i=n();function a(e,t){let n=r.createContext(t),a=e=>{let{children:t,...a}=e,o=r.useMemo(()=>a,Object.values(a));return(0,i.jsx)(n.Provider,{value:o,children:t})};a.displayName=e+`Provider`;function o(i){let a=r.useContext(n);if(a)return a;if(t!==void 0)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}return[a,o]}function o(e,t=[]){let n=[];function a(t,a){let o=r.createContext(a),s=n.length;n=[...n,a];let c=t=>{let{scope:n,children:a,...c}=t,l=n?.[e]?.[s]||o,u=r.useMemo(()=>c,Object.values(c));return(0,i.jsx)(l.Provider,{value:u,children:a})};c.displayName=t+`Provider`;function l(n,i){let c=i?.[e]?.[s]||o,l=r.useContext(c);if(l)return l;if(a!==void 0)return a;throw Error(`\`${n}\` must be used within \`${t}\``)}return[c,l]}let o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return o.scopeName=e,[a,s(o,...t)]}function s(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}typeof window<`u`&&window.document&&window.document.createElement;function c(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}var l=globalThis?.document?r.useLayoutEffect:()=>{},u=r.useInsertionEffect||l;function d({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){let[a,o,s]=f({defaultProp:t,onChange:n}),c=e!==void 0,l=c?e:a;{let t=r.useRef(e!==void 0);r.useEffect(()=>{let e=t.current;e!==c&&console.warn(`${i} is changing from ${e?`controlled`:`uncontrolled`} to ${c?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=c},[c,i])}return[l,r.useCallback(t=>{if(c){let n=p(t)?t(e):t;n!==e&&s.current?.(n)}else o(t)},[c,e,o,s])]}function f({defaultProp:e,onChange:t}){let[n,i]=r.useState(e),a=r.useRef(n),o=r.useRef(t);return u(()=>{o.current=t},[t]),r.useEffect(()=>{a.current!==n&&(o.current?.(n),a.current=n)},[n,a]),[n,i,o]}function p(e){return typeof e==`function`}export{o as a,a as i,l as n,c as r,d as t}; \ No newline at end of file diff --git a/src/www/assets/dist-D4X8zGEB.js b/src/www/assets/dist-SR6sl-WU.js similarity index 83% rename from src/www/assets/dist-D4X8zGEB.js rename to src/www/assets/dist-SR6sl-WU.js index 669cc46..918f7d7 100644 --- a/src/www/assets/dist-D4X8zGEB.js +++ b/src/www/assets/dist-SR6sl-WU.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{n}from"./dist-DPPquN_M.js";var r=e(t(),1),i=r.useId||(()=>void 0),a=0;function o(e){let[t,o]=r.useState(i());return n(()=>{e||o(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:``)}function s(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}export{o as n,s as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{n}from"./dist-DmeeHi7K.js";var r=e(t(),1),i=r.useId||(()=>void 0),a=0;function o(e){let[t,o]=r.useState(i());return n(()=>{e||o(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:``)}function s(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}export{o as n,s as t}; \ No newline at end of file diff --git a/src/www/assets/dist-CHFjpVqk.js b/src/www/assets/dist-UaPzzPYf.js similarity index 85% rename from src/www/assets/dist-CHFjpVqk.js rename to src/www/assets/dist-UaPzzPYf.js index 49974c9..8e8db61 100644 --- a/src/www/assets/dist-CHFjpVqk.js +++ b/src/www/assets/dist-UaPzzPYf.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{s as r,u as i}from"./button-C_NDYaz8.js";import{a}from"./dist-DPPquN_M.js";var o=e(t(),1),s=n();function c(e){let t=e+`CollectionProvider`,[n,c]=a(t),[l,u]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,r=o.useRef(null),i=o.useRef(new Map).current;return(0,s.jsx)(l,{scope:t,itemMap:i,collectionRef:r,children:n})};d.displayName=t;let f=e+`CollectionSlot`,p=r(f),m=o.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,s.jsx)(p,{ref:i(t,u(f,n).collectionRef),children:r})});m.displayName=f;let h=e+`CollectionItemSlot`,g=`data-radix-collection-item`,_=r(h),v=o.forwardRef((e,t)=>{let{scope:n,children:r,...a}=e,c=o.useRef(null),l=i(t,c),d=u(h,n);return o.useEffect(()=>(d.itemMap.set(c,{ref:c,...a}),()=>void d.itemMap.delete(c))),(0,s.jsx)(_,{[g]:``,ref:l,children:r})});v.displayName=h;function y(t){let n=u(e+`CollectionConsumer`,t);return o.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:d,Slot:m,ItemSlot:v},y,c]}export{c as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";import{s as r,u as i}from"./button-NLSeBFht.js";import{a}from"./dist-DmeeHi7K.js";var o=e(t(),1),s=n();function c(e){let t=e+`CollectionProvider`,[n,c]=a(t),[l,u]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,r=o.useRef(null),i=o.useRef(new Map).current;return(0,s.jsx)(l,{scope:t,itemMap:i,collectionRef:r,children:n})};d.displayName=t;let f=e+`CollectionSlot`,p=r(f),m=o.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,s.jsx)(p,{ref:i(t,u(f,n).collectionRef),children:r})});m.displayName=f;let h=e+`CollectionItemSlot`,g=`data-radix-collection-item`,_=r(h),v=o.forwardRef((e,t)=>{let{scope:n,children:r,...a}=e,c=o.useRef(null),l=i(t,c),d=u(h,n);return o.useEffect(()=>(d.itemMap.set(c,{ref:c,...a}),()=>void d.itemMap.delete(c))),(0,s.jsx)(_,{[g]:``,ref:l,children:r})});v.displayName=h;function y(t){let n=u(e+`CollectionConsumer`,t);return o.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:d,Slot:m,ItemSlot:v},y,c]}export{c as t}; \ No newline at end of file diff --git a/src/www/assets/dist-rcWP-8Cu.js b/src/www/assets/dist-esC74fSg.js similarity index 93% rename from src/www/assets/dist-rcWP-8Cu.js rename to src/www/assets/dist-esC74fSg.js index 934e871..977eabf 100644 --- a/src/www/assets/dist-rcWP-8Cu.js +++ b/src/www/assets/dist-esC74fSg.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{n as r,r as i,t as a}from"./dist-Cc8_LDAq.js";import{u as o}from"./button-C_NDYaz8.js";import{n as s,r as c}from"./dist-DPPquN_M.js";import{t as l}from"./dist-D4X8zGEB.js";var u=e(t(),1);function d(e,t=globalThis?.document){let n=l(e);u.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var f=n(),p=`DismissableLayer`,m=`dismissableLayer.update`,h=`dismissableLayer.pointerDownOutside`,g=`dismissableLayer.focusOutside`,_,v=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),y=u.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:p,...h}=e,g=u.useContext(v),[y,b]=u.useState(null),x=y?.ownerDocument??globalThis?.document,[,T]=u.useState({}),E=o(t,e=>b(e)),D=Array.from(g.layers),[O]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),k=D.indexOf(O),A=y?D.indexOf(y):-1,j=g.layersWithOutsidePointerEventsDisabled.size>0,M=A>=k,N=S(e=>{let t=e.target,n=[...g.branches].some(e=>e.contains(t));!M||n||(i?.(e),l?.(e),e.defaultPrevented||p?.())},x),P=C(e=>{let t=e.target;[...g.branches].some(e=>e.contains(t))||(s?.(e),l?.(e),e.defaultPrevented||p?.())},x);return d(e=>{A===g.layers.size-1&&(r?.(e),!e.defaultPrevented&&p&&(e.preventDefault(),p()))},x),u.useEffect(()=>{if(y)return n&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(_=x.body.style.pointerEvents,x.body.style.pointerEvents=`none`),g.layersWithOutsidePointerEventsDisabled.add(y)),g.layers.add(y),w(),()=>{n&&g.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=_)}},[y,x,n,g]),u.useEffect(()=>()=>{y&&(g.layers.delete(y),g.layersWithOutsidePointerEventsDisabled.delete(y),w())},[y,g]),u.useEffect(()=>{let e=()=>T({});return document.addEventListener(m,e),()=>document.removeEventListener(m,e)},[]),(0,f.jsx)(a.div,{...h,ref:E,style:{pointerEvents:j?M?`auto`:`none`:void 0,...e.style},onFocusCapture:c(e.onFocusCapture,P.onFocusCapture),onBlurCapture:c(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:c(e.onPointerDownCapture,N.onPointerDownCapture)})});y.displayName=p;var b=`DismissableLayerBranch`,x=u.forwardRef((e,t)=>{let n=u.useContext(v),r=u.useRef(null),i=o(t,r);return u.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,f.jsx)(a.div,{...e,ref:i})});x.displayName=b;function S(e,t=globalThis?.document){let n=l(e),r=u.useRef(!1),i=u.useRef(()=>{});return u.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){T(h,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function C(e,t=globalThis?.document){let n=l(e),r=u.useRef(!1);return u.useEffect(()=>{let e=e=>{e.target&&!r.current&&T(g,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function w(){let e=new CustomEvent(m);document.dispatchEvent(e)}function T(e,t,n,{discrete:i}){let a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),i?r(a,o):a.dispatchEvent(o)}var E=e(i(),1),D=`Portal`,O=u.forwardRef((e,t)=>{let{container:n,...r}=e,[i,o]=u.useState(!1);s(()=>o(!0),[]);let c=n||i&&globalThis?.document?.body;return c?E.createPortal((0,f.jsx)(a.div,{...r,ref:t}),c):null});O.displayName=D;export{y as n,O as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";import{n as r,r as i,t as a}from"./dist-D3WFT-Yo.js";import{u as o}from"./button-NLSeBFht.js";import{n as s,r as c}from"./dist-DmeeHi7K.js";import{t as l}from"./dist-SR6sl-WU.js";var u=e(t(),1);function d(e,t=globalThis?.document){let n=l(e);u.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var f=n(),p=`DismissableLayer`,m=`dismissableLayer.update`,h=`dismissableLayer.pointerDownOutside`,g=`dismissableLayer.focusOutside`,_,v=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),y=u.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:p,...h}=e,g=u.useContext(v),[y,b]=u.useState(null),x=y?.ownerDocument??globalThis?.document,[,T]=u.useState({}),E=o(t,e=>b(e)),D=Array.from(g.layers),[O]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),k=D.indexOf(O),A=y?D.indexOf(y):-1,j=g.layersWithOutsidePointerEventsDisabled.size>0,M=A>=k,N=S(e=>{let t=e.target,n=[...g.branches].some(e=>e.contains(t));!M||n||(i?.(e),l?.(e),e.defaultPrevented||p?.())},x),P=C(e=>{let t=e.target;[...g.branches].some(e=>e.contains(t))||(s?.(e),l?.(e),e.defaultPrevented||p?.())},x);return d(e=>{A===g.layers.size-1&&(r?.(e),!e.defaultPrevented&&p&&(e.preventDefault(),p()))},x),u.useEffect(()=>{if(y)return n&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(_=x.body.style.pointerEvents,x.body.style.pointerEvents=`none`),g.layersWithOutsidePointerEventsDisabled.add(y)),g.layers.add(y),w(),()=>{n&&g.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=_)}},[y,x,n,g]),u.useEffect(()=>()=>{y&&(g.layers.delete(y),g.layersWithOutsidePointerEventsDisabled.delete(y),w())},[y,g]),u.useEffect(()=>{let e=()=>T({});return document.addEventListener(m,e),()=>document.removeEventListener(m,e)},[]),(0,f.jsx)(a.div,{...h,ref:E,style:{pointerEvents:j?M?`auto`:`none`:void 0,...e.style},onFocusCapture:c(e.onFocusCapture,P.onFocusCapture),onBlurCapture:c(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:c(e.onPointerDownCapture,N.onPointerDownCapture)})});y.displayName=p;var b=`DismissableLayerBranch`,x=u.forwardRef((e,t)=>{let n=u.useContext(v),r=u.useRef(null),i=o(t,r);return u.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,f.jsx)(a.div,{...e,ref:i})});x.displayName=b;function S(e,t=globalThis?.document){let n=l(e),r=u.useRef(!1),i=u.useRef(()=>{});return u.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){T(h,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function C(e,t=globalThis?.document){let n=l(e),r=u.useRef(!1);return u.useEffect(()=>{let e=e=>{e.target&&!r.current&&T(g,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function w(){let e=new CustomEvent(m);document.dispatchEvent(e)}function T(e,t,n,{discrete:i}){let a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),i?r(a,o):a.dispatchEvent(o)}var E=e(i(),1),D=`Portal`,O=u.forwardRef((e,t)=>{let{container:n,...r}=e,[i,o]=u.useState(!1);s(()=>o(!0),[]);let c=n||i&&globalThis?.document?.body;return c?E.createPortal((0,f.jsx)(a.div,{...r,ref:t}),c):null});O.displayName=D;export{y as n,O as t}; \ No newline at end of file diff --git a/src/www/assets/dropdown-menu-DzCIpsuG.js b/src/www/assets/dropdown-menu-D72UcvWG.js similarity index 96% rename from src/www/assets/dropdown-menu-DzCIpsuG.js rename to src/www/assets/dropdown-menu-D72UcvWG.js index b7e0be4..cfed136 100644 --- a/src/www/assets/dropdown-menu-DzCIpsuG.js +++ b/src/www/assets/dropdown-menu-D72UcvWG.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{n as r,t as i}from"./dist-Cc8_LDAq.js";import{i as a,l as o,s,u as c}from"./button-C_NDYaz8.js";import{a as l,r as u,t as d}from"./dist-DPPquN_M.js";import{t as f}from"./dist-CHFjpVqk.js";import{t as p}from"./dist-DvwKOQ8R.js";import{n as m,t as h}from"./dist-D4X8zGEB.js";import{n as g}from"./dist-BNFQuJTu.js";import{n as ee,t as _}from"./dist-rcWP-8Cu.js";import{i as te,n as ne,r as re,t as v}from"./es2015-DT8UeWzs.js";import{a as y,i as b,n as ie,r as ae,t as x}from"./dist-CsIb2aLK.js";import{n as oe,r as S,t as C}from"./dist-D0DoWChj.js";import{t as w}from"./check-CHp0nSkR.js";var T=e(t(),1),E=n(),D=[`Enter`,` `],O=[`ArrowDown`,`PageUp`,`Home`],se=[`ArrowUp`,`PageDown`,`End`],ce=[...O,...se],k={ltr:[...D,`ArrowRight`],rtl:[...D,`ArrowLeft`]},le={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},A=`Menu`,[j,ue,M]=f(A),[N,P]=l(A,[M,y,S]),F=y(),de=S(),[I,L]=N(A),[R,z]=N(A),fe=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=F(t),[c,l]=T.useState(null),u=T.useRef(!1),d=h(a),f=g(i);return T.useEffect(()=>{let e=()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>u.current=!1;return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),(0,E.jsx)(b,{...s,children:(0,E.jsx)(I,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,E.jsx)(R,{scope:t,onClose:T.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})};fe.displayName=A;var pe=`MenuAnchor`,B=T.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=F(n);return(0,E.jsx)(x,{...i,...r,ref:t})});B.displayName=pe;var V=`MenuPortal`,[me,he]=N(V,{forceMount:void 0}),ge=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=L(V,t);return(0,E.jsx)(me,{scope:t,forceMount:n,children:(0,E.jsx)(p,{present:n||a.open,children:(0,E.jsx)(_,{asChild:!0,container:i,children:r})})})};ge.displayName=V;var H=`MenuContent`,[_e,U]=N(H),ve=T.forwardRef((e,t)=>{let n=he(H,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=L(H,e.__scopeMenu),o=z(H,e.__scopeMenu);return(0,E.jsx)(j.Provider,{scope:e.__scopeMenu,children:(0,E.jsx)(p,{present:r||a.open,children:(0,E.jsx)(j.Slot,{scope:e.__scopeMenu,children:o.modal?(0,E.jsx)(ye,{...i,ref:t}):(0,E.jsx)(be,{...i,ref:t})})})})}),ye=T.forwardRef((e,t)=>{let n=L(H,e.__scopeMenu),r=T.useRef(null),i=c(t,r);return T.useEffect(()=>{let e=r.current;if(e)return v(e)},[]),(0,E.jsx)(W,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:u(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),be=T.forwardRef((e,t)=>{let n=L(H,e.__scopeMenu);return(0,E.jsx)(W,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),xe=s(`MenuContent.ScrollLock`),W=T.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:h,disableOutsideScroll:g,..._}=e,v=L(H,n),y=z(H,n),b=F(n),ie=de(n),x=ue(n),[S,C]=T.useState(null),w=T.useRef(null),D=c(t,w,v.onContentChange),O=T.useRef(0),k=T.useRef(``),le=T.useRef(0),A=T.useRef(null),j=T.useRef(`right`),M=T.useRef(0),N=g?ne:T.Fragment,P=g?{as:xe,allowPinchZoom:!0}:void 0,I=e=>{let t=k.current+e,n=x().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=$e(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;(function e(t){k.current=t,window.clearTimeout(O.current),t!==``&&(O.current=window.setTimeout(()=>e(``),1e3))})(t),o&&setTimeout(()=>o.focus())};T.useEffect(()=>()=>window.clearTimeout(O.current),[]),re();let R=T.useCallback(e=>j.current===A.current?.side&&tt(e,A.current?.area),[]);return(0,E.jsx)(_e,{scope:n,searchRef:k,onItemEnter:T.useCallback(e=>{R(e)&&e.preventDefault()},[R]),onItemLeave:T.useCallback(e=>{R(e)||(w.current?.focus(),C(null))},[R]),onTriggerLeave:T.useCallback(e=>{R(e)&&e.preventDefault()},[R]),pointerGraceTimerRef:le,onPointerGraceIntentChange:T.useCallback(e=>{A.current=e},[]),children:(0,E.jsx)(N,{...P,children:(0,E.jsx)(te,{asChild:!0,trapped:i,onMountAutoFocus:u(a,e=>{e.preventDefault(),w.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,E.jsx)(ee,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:h,children:(0,E.jsx)(oe,{asChild:!0,...ie,dir:y.dir,orientation:`vertical`,loop:r,currentTabStopId:S,onCurrentTabStopIdChange:C,onEntryFocus:u(l,e=>{y.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,E.jsx)(ae,{role:`menu`,"aria-orientation":`vertical`,"data-state":Ye(v.open),"data-radix-menu-content":``,dir:y.dir,...b,..._,ref:D,style:{outline:`none`,..._.style},onKeyDown:u(_.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&I(e.key));let i=w.current;if(e.target!==i||!ce.includes(e.key))return;e.preventDefault();let a=x().filter(e=>!e.disabled).map(e=>e.ref.current);se.includes(e.key)&&a.reverse(),Ze(a)}),onBlur:u(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(O.current),k.current=``)}),onPointerMove:u(e.onPointerMove,Z(e=>{let t=e.target,n=M.current!==e.clientX;e.currentTarget.contains(t)&&n&&(j.current=e.clientX>M.current?`right`:`left`,M.current=e.clientX)}))})})})})})})});ve.displayName=H;var Se=`MenuGroup`,G=T.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,E.jsx)(i.div,{role:`group`,...r,ref:t})});G.displayName=Se;var Ce=`MenuLabel`,we=T.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,E.jsx)(i.div,{...r,ref:t})});we.displayName=Ce;var K=`MenuItem`,Te=`menu.itemSelect`,q=T.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:i,...a}=e,o=T.useRef(null),s=z(K,e.__scopeMenu),l=U(K,e.__scopeMenu),d=c(t,o),f=T.useRef(!1),p=()=>{let e=o.current;if(!n&&e){let t=new CustomEvent(Te,{bubbles:!0,cancelable:!0});e.addEventListener(Te,e=>i?.(e),{once:!0}),r(e,t),t.defaultPrevented?f.current=!1:s.onClose()}};return(0,E.jsx)(Ee,{...a,ref:d,disabled:n,onClick:u(e.onClick,p),onPointerDown:t=>{e.onPointerDown?.(t),f.current=!0},onPointerUp:u(e.onPointerUp,e=>{f.current||e.currentTarget?.click()}),onKeyDown:u(e.onKeyDown,e=>{let t=l.searchRef.current!==``;n||t&&e.key===` `||D.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});q.displayName=K;var Ee=T.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:a,...o}=e,s=U(K,n),l=de(n),d=T.useRef(null),f=c(t,d),[p,m]=T.useState(!1),[h,g]=T.useState(``);return T.useEffect(()=>{let e=d.current;e&&g((e.textContent??``).trim())},[o.children]),(0,E.jsx)(j.ItemSlot,{scope:n,disabled:r,textValue:a??h,children:(0,E.jsx)(C,{asChild:!0,...l,focusable:!r,children:(0,E.jsx)(i.div,{role:`menuitem`,"data-highlighted":p?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...o,ref:f,onPointerMove:u(e.onPointerMove,Z(e=>{r?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:u(e.onPointerLeave,Z(e=>s.onItemLeave(e))),onFocus:u(e.onFocus,()=>m(!0)),onBlur:u(e.onBlur,()=>m(!1))})})})}),De=`MenuCheckboxItem`,Oe=T.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,E.jsx)(Fe,{scope:e.__scopeMenu,checked:n,children:(0,E.jsx)(q,{role:`menuitemcheckbox`,"aria-checked":X(n)?`mixed`:n,...i,ref:t,"data-state":Xe(n),onSelect:u(i.onSelect,()=>r?.(X(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Oe.displayName=De;var ke=`MenuRadioGroup`,[Ae,je]=N(ke,{value:void 0,onValueChange:()=>{}}),Me=T.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=h(r);return(0,E.jsx)(Ae,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,E.jsx)(G,{...i,ref:t})})});Me.displayName=ke;var Ne=`MenuRadioItem`,Pe=T.forwardRef((e,t)=>{let{value:n,...r}=e,i=je(Ne,e.__scopeMenu),a=n===i.value;return(0,E.jsx)(Fe,{scope:e.__scopeMenu,checked:a,children:(0,E.jsx)(q,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":Xe(a),onSelect:u(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Pe.displayName=Ne;var J=`MenuItemIndicator`,[Fe,Ie]=N(J,{checked:!1}),Le=T.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...a}=e,o=Ie(J,n);return(0,E.jsx)(p,{present:r||X(o.checked)||o.checked===!0,children:(0,E.jsx)(i.span,{...a,ref:t,"data-state":Xe(o.checked)})})});Le.displayName=J;var Re=`MenuSeparator`,ze=T.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,E.jsx)(i.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});ze.displayName=Re;var Be=`MenuArrow`,Ve=T.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=F(n);return(0,E.jsx)(ie,{...i,...r,ref:t})});Ve.displayName=Be;var He=`MenuSub`,[Ue,We]=N(He),Ge=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=L(He,t),o=F(t),[s,c]=T.useState(null),[l,u]=T.useState(null),d=h(i);return T.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),(0,E.jsx)(b,{...o,children:(0,E.jsx)(I,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u,children:(0,E.jsx)(Ue,{scope:t,contentId:m(),triggerId:m(),trigger:s,onTriggerChange:c,children:n})})})};Ge.displayName=He;var Y=`MenuSubTrigger`,Ke=T.forwardRef((e,t)=>{let n=L(Y,e.__scopeMenu),r=z(Y,e.__scopeMenu),i=We(Y,e.__scopeMenu),a=U(Y,e.__scopeMenu),s=T.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:l}=a,d={__scopeMenu:e.__scopeMenu},f=T.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return T.useEffect(()=>f,[f]),T.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),l(null)}},[c,l]),(0,E.jsx)(B,{asChild:!0,...d,children:(0,E.jsx)(Ee,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":i.contentId,"data-state":Ye(n.open),...e,ref:o(t,i.onTriggerChange),onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:u(e.onPointerMove,Z(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:u(e.onPointerLeave,Z(e=>{f();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,s=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:s,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:s,y:t.bottom}],side:r}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:u(e.onKeyDown,t=>{let i=a.searchRef.current!==``;e.disabled||i&&t.key===` `||k[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});Ke.displayName=Y;var qe=`MenuSubContent`,Je=T.forwardRef((e,t)=>{let n=he(H,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=L(H,e.__scopeMenu),o=z(H,e.__scopeMenu),s=We(qe,e.__scopeMenu),l=T.useRef(null),d=c(t,l);return(0,E.jsx)(j.Provider,{scope:e.__scopeMenu,children:(0,E.jsx)(p,{present:r||a.open,children:(0,E.jsx)(j.Slot,{scope:e.__scopeMenu,children:(0,E.jsx)(W,{id:s.contentId,"aria-labelledby":s.triggerId,...i,ref:d,align:`start`,side:o.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{o.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:u(e.onFocusOutside,e=>{e.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:u(e.onEscapeKeyDown,e=>{o.onClose(),e.preventDefault()}),onKeyDown:u(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=le[o.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())})})})})})});Je.displayName=qe;function Ye(e){return e?`open`:`closed`}function X(e){return e===`indeterminate`}function Xe(e){return X(e)?`indeterminate`:e?`checked`:`unchecked`}function Ze(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Qe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function $e(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Qe(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function et(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function tt(e,t){return t?et({x:e.clientX,y:e.clientY},t):!1}function Z(e){return t=>t.pointerType===`mouse`?e(t):void 0}var nt=fe,rt=B,it=ge,at=ve,ot=G,st=we,ct=q,lt=Oe,ut=Me,dt=Pe,ft=Le,pt=ze,mt=Ve,ht=Ke,gt=Je,Q=`DropdownMenu`,[_t,vt]=l(Q,[P]),$=P(),[yt,bt]=_t(Q),xt=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=$(t),l=T.useRef(null),[u,f]=d({prop:i,defaultProp:a??!1,onChange:o,caller:Q});return(0,E.jsx)(yt,{scope:t,triggerId:m(),triggerRef:l,contentId:m(),open:u,onOpenChange:f,onOpenToggle:T.useCallback(()=>f(e=>!e),[f]),modal:s,children:(0,E.jsx)(nt,{...c,open:u,onOpenChange:f,dir:r,modal:s,children:n})})};xt.displayName=Q;var St=`DropdownMenuTrigger`,Ct=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...a}=e,s=bt(St,n),c=$(n);return(0,E.jsx)(rt,{asChild:!0,...c,children:(0,E.jsx)(i.button,{type:`button`,id:s.triggerId,"aria-haspopup":`menu`,"aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...a,ref:o(t,s.triggerRef),onPointerDown:u(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(s.onOpenToggle(),s.open||e.preventDefault())}),onKeyDown:u(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&s.onOpenToggle(),e.key===`ArrowDown`&&s.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});Ct.displayName=St;var wt=`DropdownMenuPortal`,Tt=e=>{let{__scopeDropdownMenu:t,...n}=e,r=$(t);return(0,E.jsx)(it,{...r,...n})};Tt.displayName=wt;var Et=`DropdownMenuContent`,Dt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=bt(Et,n),a=$(n),o=T.useRef(!1);return(0,E.jsx)(at,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:u(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:u(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Dt.displayName=Et;var Ot=`DropdownMenuGroup`,kt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(ot,{...i,...r,ref:t})});kt.displayName=Ot;var At=`DropdownMenuLabel`,jt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(st,{...i,...r,ref:t})});jt.displayName=At;var Mt=`DropdownMenuItem`,Nt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(ct,{...i,...r,ref:t})});Nt.displayName=Mt;var Pt=`DropdownMenuCheckboxItem`,Ft=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(lt,{...i,...r,ref:t})});Ft.displayName=Pt;var It=`DropdownMenuRadioGroup`,Lt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(ut,{...i,...r,ref:t})});Lt.displayName=It;var Rt=`DropdownMenuRadioItem`,zt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(dt,{...i,...r,ref:t})});zt.displayName=Rt;var Bt=`DropdownMenuItemIndicator`,Vt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(ft,{...i,...r,ref:t})});Vt.displayName=Bt;var Ht=`DropdownMenuSeparator`,Ut=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(pt,{...i,...r,ref:t})});Ut.displayName=Ht;var Wt=`DropdownMenuArrow`,Gt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(mt,{...i,...r,ref:t})});Gt.displayName=Wt;var Kt=`DropdownMenuSubTrigger`,qt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(ht,{...i,...r,ref:t})});qt.displayName=Kt;var Jt=`DropdownMenuSubContent`,Yt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(gt,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Yt.displayName=Jt;var Xt=xt,Zt=Ct,Qt=Tt,$t=Dt,en=kt,tn=jt,nn=Nt,rn=Ft,an=Vt,on=Ut;function sn({...e}){return(0,E.jsx)(Xt,{"data-slot":`dropdown-menu`,...e})}function cn({...e}){return(0,E.jsx)(Zt,{"data-slot":`dropdown-menu-trigger`,...e})}function ln({className:e,sideOffset:t=4,...n}){return(0,E.jsx)(Qt,{children:(0,E.jsx)($t,{className:a(`data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in`,e),"data-slot":`dropdown-menu-content`,sideOffset:t,...n})})}function un({...e}){return(0,E.jsx)(en,{"data-slot":`dropdown-menu-group`,...e})}function dn({className:e,inset:t,variant:n=`default`,...r}){return(0,E.jsx)(nn,{className:a(`relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[disabled]:opacity-50 data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 data-[variant=destructive]:*:[svg]:text-destructive!`,e),"data-inset":t,"data-slot":`dropdown-menu-item`,"data-variant":n,...r})}function fn({className:e,children:t,checked:n,...r}){return(0,E.jsxs)(rn,{checked:n,className:a(`relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,e),"data-slot":`dropdown-menu-checkbox-item`,...r,children:[(0,E.jsx)(`span`,{className:`pointer-events-none absolute left-2 flex size-3.5 items-center justify-center`,children:(0,E.jsx)(an,{children:(0,E.jsx)(w,{className:`size-4`})})}),t]})}function pn({className:e,inset:t,...n}){return(0,E.jsx)(tn,{className:a(`px-2 py-1.5 font-medium text-sm data-[inset]:pl-8`,e),"data-inset":t,"data-slot":`dropdown-menu-label`,...n})}function mn({className:e,...t}){return(0,E.jsx)(on,{className:a(`-mx-1 my-1 h-px bg-border`,e),"data-slot":`dropdown-menu-separator`,...t})}function hn({className:e,...t}){return(0,E.jsx)(`span`,{className:a(`ml-auto text-muted-foreground text-xs tracking-widest`,e),"data-slot":`dropdown-menu-shortcut`,...t})}export{dn as a,hn as c,un as i,cn as l,fn as n,pn as o,ln as r,mn as s,sn as t,Ct as u}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";import{n as r,t as i}from"./dist-D3WFT-Yo.js";import{i as a,l as o,s,u as c}from"./button-NLSeBFht.js";import{a as l,r as u,t as d}from"./dist-DmeeHi7K.js";import{t as f}from"./dist-UaPzzPYf.js";import{t as p}from"./dist-BZMqLvO-.js";import{n as m,t as h}from"./dist-SR6sl-WU.js";import{n as g}from"./dist-CGRahgI2.js";import{n as ee,t as _}from"./dist-esC74fSg.js";import{i as te,n as ne,r as re,t as v}from"./es2015-3J9GnV9P.js";import{a as y,i as b,n as ie,r as ae,t as x}from"./dist-DB-jLX48.js";import{n as oe,r as S,t as C}from"./dist-DhcQhr4B.js";import{t as w}from"./check-CHp0nSkR.js";var T=e(t(),1),E=n(),D=[`Enter`,` `],O=[`ArrowDown`,`PageUp`,`Home`],se=[`ArrowUp`,`PageDown`,`End`],ce=[...O,...se],k={ltr:[...D,`ArrowRight`],rtl:[...D,`ArrowLeft`]},le={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},A=`Menu`,[j,ue,M]=f(A),[N,P]=l(A,[M,y,S]),F=y(),de=S(),[I,L]=N(A),[R,z]=N(A),fe=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=F(t),[c,l]=T.useState(null),u=T.useRef(!1),d=h(a),f=g(i);return T.useEffect(()=>{let e=()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>u.current=!1;return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),(0,E.jsx)(b,{...s,children:(0,E.jsx)(I,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,E.jsx)(R,{scope:t,onClose:T.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})};fe.displayName=A;var pe=`MenuAnchor`,B=T.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=F(n);return(0,E.jsx)(x,{...i,...r,ref:t})});B.displayName=pe;var V=`MenuPortal`,[me,he]=N(V,{forceMount:void 0}),ge=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=L(V,t);return(0,E.jsx)(me,{scope:t,forceMount:n,children:(0,E.jsx)(p,{present:n||a.open,children:(0,E.jsx)(_,{asChild:!0,container:i,children:r})})})};ge.displayName=V;var H=`MenuContent`,[_e,U]=N(H),ve=T.forwardRef((e,t)=>{let n=he(H,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=L(H,e.__scopeMenu),o=z(H,e.__scopeMenu);return(0,E.jsx)(j.Provider,{scope:e.__scopeMenu,children:(0,E.jsx)(p,{present:r||a.open,children:(0,E.jsx)(j.Slot,{scope:e.__scopeMenu,children:o.modal?(0,E.jsx)(ye,{...i,ref:t}):(0,E.jsx)(be,{...i,ref:t})})})})}),ye=T.forwardRef((e,t)=>{let n=L(H,e.__scopeMenu),r=T.useRef(null),i=c(t,r);return T.useEffect(()=>{let e=r.current;if(e)return v(e)},[]),(0,E.jsx)(W,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:u(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),be=T.forwardRef((e,t)=>{let n=L(H,e.__scopeMenu);return(0,E.jsx)(W,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),xe=s(`MenuContent.ScrollLock`),W=T.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:h,disableOutsideScroll:g,..._}=e,v=L(H,n),y=z(H,n),b=F(n),ie=de(n),x=ue(n),[S,C]=T.useState(null),w=T.useRef(null),D=c(t,w,v.onContentChange),O=T.useRef(0),k=T.useRef(``),le=T.useRef(0),A=T.useRef(null),j=T.useRef(`right`),M=T.useRef(0),N=g?ne:T.Fragment,P=g?{as:xe,allowPinchZoom:!0}:void 0,I=e=>{let t=k.current+e,n=x().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=$e(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;(function e(t){k.current=t,window.clearTimeout(O.current),t!==``&&(O.current=window.setTimeout(()=>e(``),1e3))})(t),o&&setTimeout(()=>o.focus())};T.useEffect(()=>()=>window.clearTimeout(O.current),[]),re();let R=T.useCallback(e=>j.current===A.current?.side&&tt(e,A.current?.area),[]);return(0,E.jsx)(_e,{scope:n,searchRef:k,onItemEnter:T.useCallback(e=>{R(e)&&e.preventDefault()},[R]),onItemLeave:T.useCallback(e=>{R(e)||(w.current?.focus(),C(null))},[R]),onTriggerLeave:T.useCallback(e=>{R(e)&&e.preventDefault()},[R]),pointerGraceTimerRef:le,onPointerGraceIntentChange:T.useCallback(e=>{A.current=e},[]),children:(0,E.jsx)(N,{...P,children:(0,E.jsx)(te,{asChild:!0,trapped:i,onMountAutoFocus:u(a,e=>{e.preventDefault(),w.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,E.jsx)(ee,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:h,children:(0,E.jsx)(oe,{asChild:!0,...ie,dir:y.dir,orientation:`vertical`,loop:r,currentTabStopId:S,onCurrentTabStopIdChange:C,onEntryFocus:u(l,e=>{y.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,E.jsx)(ae,{role:`menu`,"aria-orientation":`vertical`,"data-state":Ye(v.open),"data-radix-menu-content":``,dir:y.dir,...b,..._,ref:D,style:{outline:`none`,..._.style},onKeyDown:u(_.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&I(e.key));let i=w.current;if(e.target!==i||!ce.includes(e.key))return;e.preventDefault();let a=x().filter(e=>!e.disabled).map(e=>e.ref.current);se.includes(e.key)&&a.reverse(),Ze(a)}),onBlur:u(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(O.current),k.current=``)}),onPointerMove:u(e.onPointerMove,Z(e=>{let t=e.target,n=M.current!==e.clientX;e.currentTarget.contains(t)&&n&&(j.current=e.clientX>M.current?`right`:`left`,M.current=e.clientX)}))})})})})})})});ve.displayName=H;var Se=`MenuGroup`,G=T.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,E.jsx)(i.div,{role:`group`,...r,ref:t})});G.displayName=Se;var Ce=`MenuLabel`,we=T.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,E.jsx)(i.div,{...r,ref:t})});we.displayName=Ce;var K=`MenuItem`,Te=`menu.itemSelect`,q=T.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:i,...a}=e,o=T.useRef(null),s=z(K,e.__scopeMenu),l=U(K,e.__scopeMenu),d=c(t,o),f=T.useRef(!1),p=()=>{let e=o.current;if(!n&&e){let t=new CustomEvent(Te,{bubbles:!0,cancelable:!0});e.addEventListener(Te,e=>i?.(e),{once:!0}),r(e,t),t.defaultPrevented?f.current=!1:s.onClose()}};return(0,E.jsx)(Ee,{...a,ref:d,disabled:n,onClick:u(e.onClick,p),onPointerDown:t=>{e.onPointerDown?.(t),f.current=!0},onPointerUp:u(e.onPointerUp,e=>{f.current||e.currentTarget?.click()}),onKeyDown:u(e.onKeyDown,e=>{let t=l.searchRef.current!==``;n||t&&e.key===` `||D.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});q.displayName=K;var Ee=T.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:a,...o}=e,s=U(K,n),l=de(n),d=T.useRef(null),f=c(t,d),[p,m]=T.useState(!1),[h,g]=T.useState(``);return T.useEffect(()=>{let e=d.current;e&&g((e.textContent??``).trim())},[o.children]),(0,E.jsx)(j.ItemSlot,{scope:n,disabled:r,textValue:a??h,children:(0,E.jsx)(C,{asChild:!0,...l,focusable:!r,children:(0,E.jsx)(i.div,{role:`menuitem`,"data-highlighted":p?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...o,ref:f,onPointerMove:u(e.onPointerMove,Z(e=>{r?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:u(e.onPointerLeave,Z(e=>s.onItemLeave(e))),onFocus:u(e.onFocus,()=>m(!0)),onBlur:u(e.onBlur,()=>m(!1))})})})}),De=`MenuCheckboxItem`,Oe=T.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,E.jsx)(Fe,{scope:e.__scopeMenu,checked:n,children:(0,E.jsx)(q,{role:`menuitemcheckbox`,"aria-checked":X(n)?`mixed`:n,...i,ref:t,"data-state":Xe(n),onSelect:u(i.onSelect,()=>r?.(X(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Oe.displayName=De;var ke=`MenuRadioGroup`,[Ae,je]=N(ke,{value:void 0,onValueChange:()=>{}}),Me=T.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=h(r);return(0,E.jsx)(Ae,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,E.jsx)(G,{...i,ref:t})})});Me.displayName=ke;var Ne=`MenuRadioItem`,Pe=T.forwardRef((e,t)=>{let{value:n,...r}=e,i=je(Ne,e.__scopeMenu),a=n===i.value;return(0,E.jsx)(Fe,{scope:e.__scopeMenu,checked:a,children:(0,E.jsx)(q,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":Xe(a),onSelect:u(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Pe.displayName=Ne;var J=`MenuItemIndicator`,[Fe,Ie]=N(J,{checked:!1}),Le=T.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...a}=e,o=Ie(J,n);return(0,E.jsx)(p,{present:r||X(o.checked)||o.checked===!0,children:(0,E.jsx)(i.span,{...a,ref:t,"data-state":Xe(o.checked)})})});Le.displayName=J;var Re=`MenuSeparator`,ze=T.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,E.jsx)(i.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});ze.displayName=Re;var Be=`MenuArrow`,Ve=T.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=F(n);return(0,E.jsx)(ie,{...i,...r,ref:t})});Ve.displayName=Be;var He=`MenuSub`,[Ue,We]=N(He),Ge=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=L(He,t),o=F(t),[s,c]=T.useState(null),[l,u]=T.useState(null),d=h(i);return T.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),(0,E.jsx)(b,{...o,children:(0,E.jsx)(I,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u,children:(0,E.jsx)(Ue,{scope:t,contentId:m(),triggerId:m(),trigger:s,onTriggerChange:c,children:n})})})};Ge.displayName=He;var Y=`MenuSubTrigger`,Ke=T.forwardRef((e,t)=>{let n=L(Y,e.__scopeMenu),r=z(Y,e.__scopeMenu),i=We(Y,e.__scopeMenu),a=U(Y,e.__scopeMenu),s=T.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:l}=a,d={__scopeMenu:e.__scopeMenu},f=T.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return T.useEffect(()=>f,[f]),T.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),l(null)}},[c,l]),(0,E.jsx)(B,{asChild:!0,...d,children:(0,E.jsx)(Ee,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":i.contentId,"data-state":Ye(n.open),...e,ref:o(t,i.onTriggerChange),onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:u(e.onPointerMove,Z(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:u(e.onPointerLeave,Z(e=>{f();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,s=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:s,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:s,y:t.bottom}],side:r}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:u(e.onKeyDown,t=>{let i=a.searchRef.current!==``;e.disabled||i&&t.key===` `||k[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});Ke.displayName=Y;var qe=`MenuSubContent`,Je=T.forwardRef((e,t)=>{let n=he(H,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=L(H,e.__scopeMenu),o=z(H,e.__scopeMenu),s=We(qe,e.__scopeMenu),l=T.useRef(null),d=c(t,l);return(0,E.jsx)(j.Provider,{scope:e.__scopeMenu,children:(0,E.jsx)(p,{present:r||a.open,children:(0,E.jsx)(j.Slot,{scope:e.__scopeMenu,children:(0,E.jsx)(W,{id:s.contentId,"aria-labelledby":s.triggerId,...i,ref:d,align:`start`,side:o.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{o.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:u(e.onFocusOutside,e=>{e.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:u(e.onEscapeKeyDown,e=>{o.onClose(),e.preventDefault()}),onKeyDown:u(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=le[o.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())})})})})})});Je.displayName=qe;function Ye(e){return e?`open`:`closed`}function X(e){return e===`indeterminate`}function Xe(e){return X(e)?`indeterminate`:e?`checked`:`unchecked`}function Ze(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Qe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function $e(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Qe(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function et(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function tt(e,t){return t?et({x:e.clientX,y:e.clientY},t):!1}function Z(e){return t=>t.pointerType===`mouse`?e(t):void 0}var nt=fe,rt=B,it=ge,at=ve,ot=G,st=we,ct=q,lt=Oe,ut=Me,dt=Pe,ft=Le,pt=ze,mt=Ve,ht=Ke,gt=Je,Q=`DropdownMenu`,[_t,vt]=l(Q,[P]),$=P(),[yt,bt]=_t(Q),xt=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=$(t),l=T.useRef(null),[u,f]=d({prop:i,defaultProp:a??!1,onChange:o,caller:Q});return(0,E.jsx)(yt,{scope:t,triggerId:m(),triggerRef:l,contentId:m(),open:u,onOpenChange:f,onOpenToggle:T.useCallback(()=>f(e=>!e),[f]),modal:s,children:(0,E.jsx)(nt,{...c,open:u,onOpenChange:f,dir:r,modal:s,children:n})})};xt.displayName=Q;var St=`DropdownMenuTrigger`,Ct=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...a}=e,s=bt(St,n),c=$(n);return(0,E.jsx)(rt,{asChild:!0,...c,children:(0,E.jsx)(i.button,{type:`button`,id:s.triggerId,"aria-haspopup":`menu`,"aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...a,ref:o(t,s.triggerRef),onPointerDown:u(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(s.onOpenToggle(),s.open||e.preventDefault())}),onKeyDown:u(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&s.onOpenToggle(),e.key===`ArrowDown`&&s.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});Ct.displayName=St;var wt=`DropdownMenuPortal`,Tt=e=>{let{__scopeDropdownMenu:t,...n}=e,r=$(t);return(0,E.jsx)(it,{...r,...n})};Tt.displayName=wt;var Et=`DropdownMenuContent`,Dt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=bt(Et,n),a=$(n),o=T.useRef(!1);return(0,E.jsx)(at,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:u(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:u(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Dt.displayName=Et;var Ot=`DropdownMenuGroup`,kt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(ot,{...i,...r,ref:t})});kt.displayName=Ot;var At=`DropdownMenuLabel`,jt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(st,{...i,...r,ref:t})});jt.displayName=At;var Mt=`DropdownMenuItem`,Nt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(ct,{...i,...r,ref:t})});Nt.displayName=Mt;var Pt=`DropdownMenuCheckboxItem`,Ft=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(lt,{...i,...r,ref:t})});Ft.displayName=Pt;var It=`DropdownMenuRadioGroup`,Lt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(ut,{...i,...r,ref:t})});Lt.displayName=It;var Rt=`DropdownMenuRadioItem`,zt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(dt,{...i,...r,ref:t})});zt.displayName=Rt;var Bt=`DropdownMenuItemIndicator`,Vt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(ft,{...i,...r,ref:t})});Vt.displayName=Bt;var Ht=`DropdownMenuSeparator`,Ut=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(pt,{...i,...r,ref:t})});Ut.displayName=Ht;var Wt=`DropdownMenuArrow`,Gt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(mt,{...i,...r,ref:t})});Gt.displayName=Wt;var Kt=`DropdownMenuSubTrigger`,qt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(ht,{...i,...r,ref:t})});qt.displayName=Kt;var Jt=`DropdownMenuSubContent`,Yt=T.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,E.jsx)(gt,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Yt.displayName=Jt;var Xt=xt,Zt=Ct,Qt=Tt,$t=Dt,en=kt,tn=jt,nn=Nt,rn=Ft,an=Vt,on=Ut;function sn({...e}){return(0,E.jsx)(Xt,{"data-slot":`dropdown-menu`,...e})}function cn({...e}){return(0,E.jsx)(Zt,{"data-slot":`dropdown-menu-trigger`,...e})}function ln({className:e,sideOffset:t=4,...n}){return(0,E.jsx)(Qt,{children:(0,E.jsx)($t,{className:a(`data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in`,e),"data-slot":`dropdown-menu-content`,sideOffset:t,...n})})}function un({...e}){return(0,E.jsx)(en,{"data-slot":`dropdown-menu-group`,...e})}function dn({className:e,inset:t,variant:n=`default`,...r}){return(0,E.jsx)(nn,{className:a(`relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[disabled]:opacity-50 data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 data-[variant=destructive]:*:[svg]:text-destructive!`,e),"data-inset":t,"data-slot":`dropdown-menu-item`,"data-variant":n,...r})}function fn({className:e,children:t,checked:n,...r}){return(0,E.jsxs)(rn,{checked:n,className:a(`relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,e),"data-slot":`dropdown-menu-checkbox-item`,...r,children:[(0,E.jsx)(`span`,{className:`pointer-events-none absolute left-2 flex size-3.5 items-center justify-center`,children:(0,E.jsx)(an,{children:(0,E.jsx)(w,{className:`size-4`})})}),t]})}function pn({className:e,inset:t,...n}){return(0,E.jsx)(tn,{className:a(`px-2 py-1.5 font-medium text-sm data-[inset]:pl-8`,e),"data-inset":t,"data-slot":`dropdown-menu-label`,...n})}function mn({className:e,...t}){return(0,E.jsx)(on,{className:a(`-mx-1 my-1 h-px bg-border`,e),"data-slot":`dropdown-menu-separator`,...t})}function hn({className:e,...t}){return(0,E.jsx)(`span`,{className:a(`ml-auto text-muted-foreground text-xs tracking-widest`,e),"data-slot":`dropdown-menu-shortcut`,...t})}export{dn as a,hn as c,un as i,cn as l,fn as n,pn as o,ln as r,mn as s,sn as t,Ct as u}; \ No newline at end of file diff --git a/src/www/assets/editor.client-CF-kC0wX.js b/src/www/assets/editor.client-BI4ACpIS.js similarity index 98% rename from src/www/assets/editor.client-CF-kC0wX.js rename to src/www/assets/editor.client-BI4ACpIS.js index 6a5af99..b0298ad 100644 --- a/src/www/assets/editor.client-CF-kC0wX.js +++ b/src/www/assets/editor.client-BI4ACpIS.js @@ -1,5 +1,5 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/editor.api-Dv1ZVczm.js","assets/editor.api2-BM_YT0wu.js","assets/chunk-DECur_0Z.js","assets/editor-DV6jjE6F.css","assets/editor-DKgfVINf.css","assets/go.contribution-BmlX-a-9.js","assets/preload-helper-DoS0eHac.js","assets/_.contribution-CaUqztrQ.js","assets/toggleHighContrast-CYWWoXog.js","assets/toggleHighContrast-BBlRgZ6L.css","assets/handlebars-d5Fb_oR7.js","assets/html.contribution-Baf-XjFx.js","assets/monaco.contribution-BNCqMH44.js","assets/markdown.contribution-FtzundBn.js","assets/yaml.contribution-BN-iiJx2.js","assets/es-fZtL7B9U.js","assets/clsx-D9aGYY3V.js","assets/react-CO2uhaBc.js","assets/es-Ddhai3Z6.css"])))=>i.map(i=>d[i]); -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{An as n,Dn as r,En as i,Mn as a,Nn as o,On as s,Tn as c,jn as l,kn as u,tm as d,wn as f}from"./messages-BOatyqUm.js";import{i as p,t as m}from"./button-C_NDYaz8.js";import{n as h,r as g,t as _}from"./tabs-6Ep1KePr.js";import{t as v}from"./preload-helper-DoS0eHac.js";import{t as y}from"./createLucideIcon-Br0Bd5k2.js";import{c as b,i as x,o as S,r as C,s as w,t as T}from"./dialog-CZ-2RPb-.js";var E=y(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),D=y(`file-plus-corner`,[[`path`,{d:`M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35`,key:`17jvcc`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M14 19h6`,key:`bvotb8`}],[`path`,{d:`M17 16v6`,key:`18yu1i`}]]),O=y(`maximize-2`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]),k=y(`minimize-2`,[[`path`,{d:`m14 10 7-7`,key:`oa77jy`}],[`path`,{d:`M20 10h-6V4`,key:`mjg0md`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M4 14h6v6`,key:`rmj7iw`}]]),A=e(t(),1),j={base:`vs`,inherit:!0,rules:[{token:``,foreground:`383a42`},{token:`attribute.name`,foreground:`986801`},{token:`attribute.name.html`,foreground:`986801`},{token:`attribute.value`,foreground:`50a14f`},{token:`attribute.value.html`,foreground:`50a14f`},{token:`comment`,foreground:`a0a1a7`,fontStyle:`italic`},{token:`comment.content`,foreground:`a0a1a7`,fontStyle:`italic`},{token:`comment.content.handlebars`,foreground:`a0a1a7`,fontStyle:`italic`},{token:`comment.content.html`,foreground:`a0a1a7`,fontStyle:`italic`},{token:`comment.html`,foreground:`a0a1a7`,fontStyle:`italic`},{token:`constant`,foreground:`986801`},{token:`delimiter`,foreground:`383a42`},{token:`delimiter.bracket`,foreground:`383a42`},{token:`delimiter.handlebars`,foreground:`0184bc`},{token:`delimiter.html`,foreground:`383a42`},{token:`delimiter.parenthesis`,foreground:`383a42`},{token:`delimiter.square`,foreground:`383a42`},{token:`identifier`,foreground:`383a42`},{token:`identifier.go`,foreground:`383a42`},{token:`keyword.flow.go`,foreground:`a626a4`},{token:`keyword.helper.handlebars`,foreground:`a626a4`},{token:`keyword.operator.go`,foreground:`0184bc`},{token:`keyword`,foreground:`a626a4`},{token:`metatag.content.html`,foreground:`383a42`},{token:`metatag.html`,foreground:`a626a4`},{token:`metatag`,foreground:`a626a4`},{token:`number.float.go`,foreground:`986801`},{token:`number.hex.go`,foreground:`986801`},{token:`number`,foreground:`986801`},{token:`operator`,foreground:`0184bc`},{token:`predefined`,foreground:`4078f2`},{token:`regexp`,foreground:`50a14f`},{token:`string.escape`,foreground:`0184bc`},{token:`string.escape.go`,foreground:`0184bc`},{token:`string.key.json`,foreground:`e45649`},{token:`string.value.json`,foreground:`50a14f`},{token:`string`,foreground:`50a14f`},{token:`tag.html`,foreground:`e45649`},{token:`tag`,foreground:`e45649`},{token:`type.identifier.go`,foreground:`c18401`},{token:`type`,foreground:`c18401`},{token:`variable.go`,foreground:`383a42`},{token:`variable.parameter.handlebars`,foreground:`4078f2`}],colors:{"editor.background":`#fafafa`,"editor.foreground":`#383a42`,"editor.lineHighlightBackground":`#f2f3f580`,"editor.selectionBackground":`#c8d3f566`,"editorCursor.foreground":`#526fff`,"editorGutter.background":`#fafafa`,"editorLineNumber.activeForeground":`#383a42`,"editorLineNumber.foreground":`#a0a1a7`}},M={base:`vs-dark`,inherit:!0,rules:[{token:``,foreground:`abb2bf`},{token:`attribute.name`,foreground:`d19a66`},{token:`attribute.name.html`,foreground:`d19a66`},{token:`attribute.value`,foreground:`98c379`},{token:`attribute.value.html`,foreground:`98c379`},{token:`comment`,foreground:`5c6370`,fontStyle:`italic`},{token:`comment.content`,foreground:`5c6370`,fontStyle:`italic`},{token:`comment.content.handlebars`,foreground:`5c6370`,fontStyle:`italic`},{token:`comment.content.html`,foreground:`5c6370`,fontStyle:`italic`},{token:`comment.html`,foreground:`5c6370`,fontStyle:`italic`},{token:`constant`,foreground:`d19a66`},{token:`delimiter`,foreground:`abb2bf`},{token:`delimiter.bracket`,foreground:`abb2bf`},{token:`delimiter.handlebars`,foreground:`56b6c2`},{token:`delimiter.html`,foreground:`abb2bf`},{token:`delimiter.parenthesis`,foreground:`abb2bf`},{token:`delimiter.square`,foreground:`abb2bf`},{token:`identifier`,foreground:`abb2bf`},{token:`identifier.go`,foreground:`abb2bf`},{token:`keyword.flow.go`,foreground:`c678dd`},{token:`keyword.helper.handlebars`,foreground:`c678dd`},{token:`keyword.operator.go`,foreground:`56b6c2`},{token:`keyword`,foreground:`c678dd`},{token:`metatag.content.html`,foreground:`abb2bf`},{token:`metatag.html`,foreground:`c678dd`},{token:`metatag`,foreground:`c678dd`},{token:`number.float.go`,foreground:`d19a66`},{token:`number.hex.go`,foreground:`d19a66`},{token:`number`,foreground:`d19a66`},{token:`operator`,foreground:`56b6c2`},{token:`predefined`,foreground:`61afef`},{token:`regexp`,foreground:`98c379`},{token:`string.escape`,foreground:`56b6c2`},{token:`string.escape.go`,foreground:`56b6c2`},{token:`string.key.json`,foreground:`e06c75`},{token:`string.value.json`,foreground:`98c379`},{token:`string`,foreground:`98c379`},{token:`tag.html`,foreground:`e06c75`},{token:`tag`,foreground:`e06c75`},{token:`type.identifier.go`,foreground:`e5c07b`},{token:`type`,foreground:`e5c07b`},{token:`variable.go`,foreground:`abb2bf`},{token:`variable.parameter.handlebars`,foreground:`61afef`}],colors:{"editor.background":`#282c34`,"editor.foreground":`#abb2bf`,"editor.lineHighlightBackground":`#2c313c`,"editor.selectionBackground":`#3e4451`,"editorCursor.foreground":`#528bff`,"editorGutter.background":`#282c34`,"editorLineNumber.activeForeground":`#abb2bf`,"editorLineNumber.foreground":`#5c6370`}},N=new Set,P={go:`Go`,gotemplate:`Go Template`,html:`HTML`,json:`JSON`,markdown:`Markdown`,plaintext:`Plain Text`,yaml:`YAML`},F=globalThis,I=d();function L({autoFocus:e,autoFormat:t,className:n,disabled:r,language:i,onChange:a,placeholder:o,value:s}){let c=(0,A.useRef)(null),l=(0,A.useRef)(null),u=(0,A.useRef)(null),d=(0,A.useRef)(s),f=(0,A.useRef)(a),m=(0,A.useId)(),[h,g]=(0,A.useState)(!1),[_,y]=(0,A.useState)(!0);(0,A.useEffect)(()=>{f.current=a},[a]),(0,A.useEffect)(()=>{let n=c.current;if(!n)return;let a=n,o=!1,s;async function p(){y(!0);let[n,{default:c}]=await Promise.all([v(()=>import(`./editor.api-Dv1ZVczm.js`),__vite__mapDeps([0,1,2,3])),v(()=>import(`./editor.worker-DCurFCio.js`),[]),v(()=>Promise.resolve({}),__vite__mapDeps([4]))]),[p,h]=await Promise.all([B(i)?v(()=>import(`./html.worker-BXRdYPFS.js`).then(e=>e.default),[]):Promise.resolve(void 0),V(i)?v(()=>import(`./json.worker-BHONpNZS.js`).then(e=>e.default),[]):Promise.resolve(void 0)]);if(o||(z({EditorWorker:c,HtmlWorker:p,JsonWorker:h}),await H(n,i),o))return;U(n);let _=n.editor.create(a,{automaticLayout:!1,contextmenu:!0,cursorBlinking:`smooth`,fontFamily:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace`,fontSize:13,folding:!0,glyphMargin:!1,language:i,lineDecorationsWidth:10,lineNumbers:`on`,minimap:{enabled:!1},model:n.editor.createModel(d.current,i,n.Uri.parse(`inmemory://editor/${m}`)),padding:{bottom:12,top:12},readOnly:r,renderLineHighlight:r?`none`:`line`,scrollBeyondLastLine:!1,scrollbar:{horizontalScrollbarSize:10,verticalScrollbarSize:10},"semanticHighlighting.enabled":!0,tabSize:2,theme:W(),wordWrap:`on`});l.current=_,u.current=n,y(!1);let b=[_.onDidChangeModelContent(()=>{let e=_.getValue();d.current=e,f.current?.(e)}),_.onDidFocusEditorWidget(()=>g(!0)),_.onDidBlurEditorWidget(()=>{g(!1),t&&!r&&R(_,d,f).catch(()=>{})})],x=new ResizeObserver(()=>_.layout());x.observe(a);let S=new MutationObserver(()=>{n.editor.setTheme(W())});S.observe(document.documentElement,{attributeFilter:[`class`,`data-mode`],attributes:!0}),e&&_.focus(),s=()=>{x.disconnect(),S.disconnect();for(let e of b)e.dispose();_.getModel()?.dispose(),_.dispose(),l.current=null,u.current=null}}return p(),()=>{o=!0,s?.()}},[e,t,r,i,m]),(0,A.useEffect)(()=>{let e=l.current;!e||s===d.current||(d.current=s,e.setValue(s))},[s]),(0,A.useEffect)(()=>{let e=l.current;e&&e.updateOptions({readOnly:r,renderLineHighlight:r?`none`:`line`})},[r]),(0,A.useEffect)(()=>{let e=l.current,t=u.current;if(!e)return;let n=e.getModel();n&&t&&t.editor.setModelLanguage(n,i)},[i]);let b=!!(o&&!s&&!h);return(0,I.jsxs)(`div`,{className:p(`relative size-full min-w-0 bg-background text-sm`,n),children:[(0,I.jsx)(`div`,{className:`size-full`,ref:c}),_?(0,I.jsx)(`div`,{className:`absolute inset-0 bg-background/80`}):null,b?(0,I.jsx)(`div`,{className:`pointer-events-none absolute top-3 left-[4.1rem] select-none whitespace-pre-line text-muted-foreground text-sm`,children:o}):null]})}async function R(e,t,n){await e.getAction(`editor.action.formatDocument`)?.run();let r=e.getValue();r!==t.current&&(t.current=r,n.current?.(r))}function z({EditorWorker:e,HtmlWorker:t,JsonWorker:n}){F.MonacoEnvironment={getWorker:(r,i)=>i===`json`&&n?new n:(i===`html`||i===`handlebars`)&&t?new t:new e}}function B(e){return e===`html`||e===`gotemplate`}function V(e){return e===`json`}async function H(e,t){if(!N.has(t)){switch(t){case`go`:await v(()=>import(`./go.contribution-BmlX-a-9.js`),__vite__mapDeps([5,6,7,1,2,3,8,9]));break;case`gotemplate`:{let{conf:t,language:n}=await v(async()=>{let{conf:e,language:t}=await import(`./handlebars-d5Fb_oR7.js`);return{conf:e,language:t}},__vite__mapDeps([10,1,2,3,8,9]));e.languages.register({aliases:[`Go Template`,`gotemplate`],extensions:[`.gotmpl`,`.tmpl`],id:`gotemplate`}),e.languages.setLanguageConfiguration(`gotemplate`,t),e.languages.setMonarchTokensProvider(`gotemplate`,n);break}case`html`:await v(()=>import(`./html.contribution-Baf-XjFx.js`),__vite__mapDeps([11,6,7,1,2,3,8,9]));break;case`json`:await v(()=>import(`./monaco.contribution-BNCqMH44.js`),__vite__mapDeps([12,6,1,2,3,8,9]));break;case`markdown`:await v(()=>import(`./markdown.contribution-FtzundBn.js`),__vite__mapDeps([13,6,7,1,2,3,8,9]));break;case`yaml`:await v(()=>import(`./yaml.contribution-BN-iiJx2.js`),__vite__mapDeps([14,6,7,1,2,3,8,9]));break;default:break}N.add(t)}}function U(e){e.editor.defineTheme(`one-light-pro`,j),e.editor.defineTheme(`one-dark-pro`,M)}function W(){return G()?`one-dark-pro`:`one-light-pro`}function G(){if(typeof document>`u`)return!1;let e=document.documentElement;return e.dataset.mode?e.dataset.mode===`dark`:e.classList.contains(`dark`)}function K(e,t){return t?e===`markdown`?`markdown`:e===`html`?`html`:null:null}function q(e,t){return` +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{An as n,Dn as r,En as i,Mn as a,Nn as o,On as s,Tn as c,jn as l,kn as u,tm as d,wn as f}from"./messages-CL4J6BaJ.js";import{i as p,t as m}from"./button-NLSeBFht.js";import{n as h,r as g,t as _}from"./tabs-DDe7sXIW.js";import{t as v}from"./preload-helper-DoS0eHac.js";import{t as y}from"./createLucideIcon-Br0Bd5k2.js";import{c as b,i as x,o as S,r as C,s as w,t as T}from"./dialog-CtyiwzAl.js";var E=y(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),D=y(`file-plus-corner`,[[`path`,{d:`M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35`,key:`17jvcc`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M14 19h6`,key:`bvotb8`}],[`path`,{d:`M17 16v6`,key:`18yu1i`}]]),O=y(`maximize-2`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]),k=y(`minimize-2`,[[`path`,{d:`m14 10 7-7`,key:`oa77jy`}],[`path`,{d:`M20 10h-6V4`,key:`mjg0md`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M4 14h6v6`,key:`rmj7iw`}]]),A=e(t(),1),j={base:`vs`,inherit:!0,rules:[{token:``,foreground:`383a42`},{token:`attribute.name`,foreground:`986801`},{token:`attribute.name.html`,foreground:`986801`},{token:`attribute.value`,foreground:`50a14f`},{token:`attribute.value.html`,foreground:`50a14f`},{token:`comment`,foreground:`a0a1a7`,fontStyle:`italic`},{token:`comment.content`,foreground:`a0a1a7`,fontStyle:`italic`},{token:`comment.content.handlebars`,foreground:`a0a1a7`,fontStyle:`italic`},{token:`comment.content.html`,foreground:`a0a1a7`,fontStyle:`italic`},{token:`comment.html`,foreground:`a0a1a7`,fontStyle:`italic`},{token:`constant`,foreground:`986801`},{token:`delimiter`,foreground:`383a42`},{token:`delimiter.bracket`,foreground:`383a42`},{token:`delimiter.handlebars`,foreground:`0184bc`},{token:`delimiter.html`,foreground:`383a42`},{token:`delimiter.parenthesis`,foreground:`383a42`},{token:`delimiter.square`,foreground:`383a42`},{token:`identifier`,foreground:`383a42`},{token:`identifier.go`,foreground:`383a42`},{token:`keyword.flow.go`,foreground:`a626a4`},{token:`keyword.helper.handlebars`,foreground:`a626a4`},{token:`keyword.operator.go`,foreground:`0184bc`},{token:`keyword`,foreground:`a626a4`},{token:`metatag.content.html`,foreground:`383a42`},{token:`metatag.html`,foreground:`a626a4`},{token:`metatag`,foreground:`a626a4`},{token:`number.float.go`,foreground:`986801`},{token:`number.hex.go`,foreground:`986801`},{token:`number`,foreground:`986801`},{token:`operator`,foreground:`0184bc`},{token:`predefined`,foreground:`4078f2`},{token:`regexp`,foreground:`50a14f`},{token:`string.escape`,foreground:`0184bc`},{token:`string.escape.go`,foreground:`0184bc`},{token:`string.key.json`,foreground:`e45649`},{token:`string.value.json`,foreground:`50a14f`},{token:`string`,foreground:`50a14f`},{token:`tag.html`,foreground:`e45649`},{token:`tag`,foreground:`e45649`},{token:`type.identifier.go`,foreground:`c18401`},{token:`type`,foreground:`c18401`},{token:`variable.go`,foreground:`383a42`},{token:`variable.parameter.handlebars`,foreground:`4078f2`}],colors:{"editor.background":`#fafafa`,"editor.foreground":`#383a42`,"editor.lineHighlightBackground":`#f2f3f580`,"editor.selectionBackground":`#c8d3f566`,"editorCursor.foreground":`#526fff`,"editorGutter.background":`#fafafa`,"editorLineNumber.activeForeground":`#383a42`,"editorLineNumber.foreground":`#a0a1a7`}},M={base:`vs-dark`,inherit:!0,rules:[{token:``,foreground:`abb2bf`},{token:`attribute.name`,foreground:`d19a66`},{token:`attribute.name.html`,foreground:`d19a66`},{token:`attribute.value`,foreground:`98c379`},{token:`attribute.value.html`,foreground:`98c379`},{token:`comment`,foreground:`5c6370`,fontStyle:`italic`},{token:`comment.content`,foreground:`5c6370`,fontStyle:`italic`},{token:`comment.content.handlebars`,foreground:`5c6370`,fontStyle:`italic`},{token:`comment.content.html`,foreground:`5c6370`,fontStyle:`italic`},{token:`comment.html`,foreground:`5c6370`,fontStyle:`italic`},{token:`constant`,foreground:`d19a66`},{token:`delimiter`,foreground:`abb2bf`},{token:`delimiter.bracket`,foreground:`abb2bf`},{token:`delimiter.handlebars`,foreground:`56b6c2`},{token:`delimiter.html`,foreground:`abb2bf`},{token:`delimiter.parenthesis`,foreground:`abb2bf`},{token:`delimiter.square`,foreground:`abb2bf`},{token:`identifier`,foreground:`abb2bf`},{token:`identifier.go`,foreground:`abb2bf`},{token:`keyword.flow.go`,foreground:`c678dd`},{token:`keyword.helper.handlebars`,foreground:`c678dd`},{token:`keyword.operator.go`,foreground:`56b6c2`},{token:`keyword`,foreground:`c678dd`},{token:`metatag.content.html`,foreground:`abb2bf`},{token:`metatag.html`,foreground:`c678dd`},{token:`metatag`,foreground:`c678dd`},{token:`number.float.go`,foreground:`d19a66`},{token:`number.hex.go`,foreground:`d19a66`},{token:`number`,foreground:`d19a66`},{token:`operator`,foreground:`56b6c2`},{token:`predefined`,foreground:`61afef`},{token:`regexp`,foreground:`98c379`},{token:`string.escape`,foreground:`56b6c2`},{token:`string.escape.go`,foreground:`56b6c2`},{token:`string.key.json`,foreground:`e06c75`},{token:`string.value.json`,foreground:`98c379`},{token:`string`,foreground:`98c379`},{token:`tag.html`,foreground:`e06c75`},{token:`tag`,foreground:`e06c75`},{token:`type.identifier.go`,foreground:`e5c07b`},{token:`type`,foreground:`e5c07b`},{token:`variable.go`,foreground:`abb2bf`},{token:`variable.parameter.handlebars`,foreground:`61afef`}],colors:{"editor.background":`#282c34`,"editor.foreground":`#abb2bf`,"editor.lineHighlightBackground":`#2c313c`,"editor.selectionBackground":`#3e4451`,"editorCursor.foreground":`#528bff`,"editorGutter.background":`#282c34`,"editorLineNumber.activeForeground":`#abb2bf`,"editorLineNumber.foreground":`#5c6370`}},N=new Set,P={go:`Go`,gotemplate:`Go Template`,html:`HTML`,json:`JSON`,markdown:`Markdown`,plaintext:`Plain Text`,yaml:`YAML`},F=globalThis,I=d();function L({autoFocus:e,autoFormat:t,className:n,disabled:r,language:i,onChange:a,placeholder:o,value:s}){let c=(0,A.useRef)(null),l=(0,A.useRef)(null),u=(0,A.useRef)(null),d=(0,A.useRef)(s),f=(0,A.useRef)(a),m=(0,A.useId)(),[h,g]=(0,A.useState)(!1),[_,y]=(0,A.useState)(!0);(0,A.useEffect)(()=>{f.current=a},[a]),(0,A.useEffect)(()=>{let n=c.current;if(!n)return;let a=n,o=!1,s;async function p(){y(!0);let[n,{default:c}]=await Promise.all([v(()=>import(`./editor.api-Dv1ZVczm.js`),__vite__mapDeps([0,1,2,3])),v(()=>import(`./editor.worker-DCurFCio.js`),[]),v(()=>Promise.resolve({}),__vite__mapDeps([4]))]),[p,h]=await Promise.all([B(i)?v(()=>import(`./html.worker-BXRdYPFS.js`).then(e=>e.default),[]):Promise.resolve(void 0),V(i)?v(()=>import(`./json.worker-BHONpNZS.js`).then(e=>e.default),[]):Promise.resolve(void 0)]);if(o||(z({EditorWorker:c,HtmlWorker:p,JsonWorker:h}),await H(n,i),o))return;U(n);let _=n.editor.create(a,{automaticLayout:!1,contextmenu:!0,cursorBlinking:`smooth`,fontFamily:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace`,fontSize:13,folding:!0,glyphMargin:!1,language:i,lineDecorationsWidth:10,lineNumbers:`on`,minimap:{enabled:!1},model:n.editor.createModel(d.current,i,n.Uri.parse(`inmemory://editor/${m}`)),padding:{bottom:12,top:12},readOnly:r,renderLineHighlight:r?`none`:`line`,scrollBeyondLastLine:!1,scrollbar:{horizontalScrollbarSize:10,verticalScrollbarSize:10},"semanticHighlighting.enabled":!0,tabSize:2,theme:W(),wordWrap:`on`});l.current=_,u.current=n,y(!1);let b=[_.onDidChangeModelContent(()=>{let e=_.getValue();d.current=e,f.current?.(e)}),_.onDidFocusEditorWidget(()=>g(!0)),_.onDidBlurEditorWidget(()=>{g(!1),t&&!r&&R(_,d,f).catch(()=>{})})],x=new ResizeObserver(()=>_.layout());x.observe(a);let S=new MutationObserver(()=>{n.editor.setTheme(W())});S.observe(document.documentElement,{attributeFilter:[`class`,`data-mode`],attributes:!0}),e&&_.focus(),s=()=>{x.disconnect(),S.disconnect();for(let e of b)e.dispose();_.getModel()?.dispose(),_.dispose(),l.current=null,u.current=null}}return p(),()=>{o=!0,s?.()}},[e,t,r,i,m]),(0,A.useEffect)(()=>{let e=l.current;!e||s===d.current||(d.current=s,e.setValue(s))},[s]),(0,A.useEffect)(()=>{let e=l.current;e&&e.updateOptions({readOnly:r,renderLineHighlight:r?`none`:`line`})},[r]),(0,A.useEffect)(()=>{let e=l.current,t=u.current;if(!e)return;let n=e.getModel();n&&t&&t.editor.setModelLanguage(n,i)},[i]);let b=!!(o&&!s&&!h);return(0,I.jsxs)(`div`,{className:p(`relative size-full min-w-0 bg-background text-sm`,n),children:[(0,I.jsx)(`div`,{className:`size-full`,ref:c}),_?(0,I.jsx)(`div`,{className:`absolute inset-0 bg-background/80`}):null,b?(0,I.jsx)(`div`,{className:`pointer-events-none absolute top-3 left-[4.1rem] select-none whitespace-pre-line text-muted-foreground text-sm`,children:o}):null]})}async function R(e,t,n){await e.getAction(`editor.action.formatDocument`)?.run();let r=e.getValue();r!==t.current&&(t.current=r,n.current?.(r))}function z({EditorWorker:e,HtmlWorker:t,JsonWorker:n}){F.MonacoEnvironment={getWorker:(r,i)=>i===`json`&&n?new n:(i===`html`||i===`handlebars`)&&t?new t:new e}}function B(e){return e===`html`||e===`gotemplate`}function V(e){return e===`json`}async function H(e,t){if(!N.has(t)){switch(t){case`go`:await v(()=>import(`./go.contribution-BmlX-a-9.js`),__vite__mapDeps([5,6,7,1,2,3,8,9]));break;case`gotemplate`:{let{conf:t,language:n}=await v(async()=>{let{conf:e,language:t}=await import(`./handlebars-d5Fb_oR7.js`);return{conf:e,language:t}},__vite__mapDeps([10,1,2,3,8,9]));e.languages.register({aliases:[`Go Template`,`gotemplate`],extensions:[`.gotmpl`,`.tmpl`],id:`gotemplate`}),e.languages.setLanguageConfiguration(`gotemplate`,t),e.languages.setMonarchTokensProvider(`gotemplate`,n);break}case`html`:await v(()=>import(`./html.contribution-Baf-XjFx.js`),__vite__mapDeps([11,6,7,1,2,3,8,9]));break;case`json`:await v(()=>import(`./monaco.contribution-BNCqMH44.js`),__vite__mapDeps([12,6,1,2,3,8,9]));break;case`markdown`:await v(()=>import(`./markdown.contribution-FtzundBn.js`),__vite__mapDeps([13,6,7,1,2,3,8,9]));break;case`yaml`:await v(()=>import(`./yaml.contribution-BN-iiJx2.js`),__vite__mapDeps([14,6,7,1,2,3,8,9]));break;default:break}N.add(t)}}function U(e){e.editor.defineTheme(`one-light-pro`,j),e.editor.defineTheme(`one-dark-pro`,M)}function W(){return G()?`one-dark-pro`:`one-light-pro`}function G(){if(typeof document>`u`)return!1;let e=document.documentElement;return e.dataset.mode?e.dataset.mode===`dark`:e.classList.contains(`dark`)}function K(e,t){return t?e===`markdown`?`markdown`:e===`html`?`html`:null:null}function q(e,t){return` diff --git a/src/www/assets/empty-state-CxE4wU3V.js b/src/www/assets/empty-state-BtKoq2f4.js similarity index 91% rename from src/www/assets/empty-state-CxE4wU3V.js rename to src/www/assets/empty-state-BtKoq2f4.js index 424fb66..52b6b6e 100644 --- a/src/www/assets/empty-state-CxE4wU3V.js +++ b/src/www/assets/empty-state-BtKoq2f4.js @@ -1 +1 @@ -import{ft as e,tm as t}from"./messages-BOatyqUm.js";import{i as n}from"./button-C_NDYaz8.js";import{t as r}from"./createLucideIcon-Br0Bd5k2.js";var i=r(`inbox`,[[`polyline`,{points:`22 12 16 12 14 15 10 15 8 12 2 12`,key:`o97t9d`}],[`path`,{d:`M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`oot6mr`}]]),a=r(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),o=r(`sliders-horizontal`,[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]),s=t();function c({className:t,description:r=e(),icon:a,title:o}){return(0,s.jsxs)(`div`,{className:n(`flex flex-col items-center justify-center gap-3 py-16 text-center`,t),children:[(0,s.jsx)(`div`,{className:`flex size-12 items-center justify-center rounded-full bg-muted text-muted-foreground`,children:a??(0,s.jsx)(i,{className:`size-6`})}),o&&(0,s.jsx)(`p`,{className:`font-medium text-sm`,children:o}),(0,s.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:r})]})}export{o as n,a as r,c as t}; \ No newline at end of file +import{ft as e,tm as t}from"./messages-CL4J6BaJ.js";import{i as n}from"./button-NLSeBFht.js";import{t as r}from"./createLucideIcon-Br0Bd5k2.js";var i=r(`inbox`,[[`polyline`,{points:`22 12 16 12 14 15 10 15 8 12 2 12`,key:`o97t9d`}],[`path`,{d:`M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`oot6mr`}]]),a=r(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),o=r(`sliders-horizontal`,[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]),s=t();function c({className:t,description:r=e(),icon:a,title:o}){return(0,s.jsxs)(`div`,{className:n(`flex flex-col items-center justify-center gap-3 py-16 text-center`,t),children:[(0,s.jsx)(`div`,{className:`flex size-12 items-center justify-center rounded-full bg-muted text-muted-foreground`,children:a??(0,s.jsx)(i,{className:`size-6`})}),o&&(0,s.jsx)(`p`,{className:`font-medium text-sm`,children:o}),(0,s.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:r})]})}export{o as n,a as r,c as t}; \ No newline at end of file diff --git a/src/www/assets/epay-BPdlNSqh.js b/src/www/assets/epay-CMHO4eMB.js similarity index 91% rename from src/www/assets/epay-BPdlNSqh.js rename to src/www/assets/epay-CMHO4eMB.js index e6d6760..a55eca5 100644 --- a/src/www/assets/epay-BPdlNSqh.js +++ b/src/www/assets/epay-CMHO4eMB.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{a as t}from"./auth-store-De4Y7PFV.js";import{t as n}from"./react-CO2uhaBc.js";import{Af as r,Fn as i,In as a,Ln as o,Mf as s,Nf as c,Of as l,Pn as u,Rn as d,jf as f,kf as p,tm as m}from"./messages-BOatyqUm.js";import{t as h}from"./button-C_NDYaz8.js";import{a as g,i as _,n as v,r as y,t as b}from"./select-CzebumOF.js";import{c as x,s as S}from"./zod-rwFXxHlg.js";import{a as C,c as w,i as T,l as E,n as D,o as O,s as k,t as A}from"./form-KfFEakes.js";import{t as j}from"./input-8zzM34r5.js";import{t as M}from"./page-header-GTtyZFBB.js";import{n as N,t as P}from"./labels-Cbc2zlmv.js";import{a as F,i as I,n as L,r as R,t as z}from"./lib-DDezYSnW.js";var B=e(n(),1),V=m(),H=`__empty__`,U=S({defaultToken:x().trim(),defaultCurrency:x().trim().min(1,l()),defaultNetwork:x().trim()});function W(){let e=I(`epay`),n=t.useQuery(`get`,`/admin/api/v1/config`),c=F(),l=(0,B.useRef)(``),d=E({resolver:w(U),defaultValues:{defaultToken:`usdt`,defaultCurrency:`CNY`,defaultNetwork:`TRON`}}),m=(0,B.useMemo)(()=>n.data?.data?.supported_assets??[],[n.data?.data?.supported_assets]),x=(0,B.useMemo)(()=>G(m),[m]),S=d.watch(`defaultNetwork`),M=(0,B.useMemo)(()=>K(m,S),[m,S]);(0,B.useEffect)(()=>{let t=e.data?.data;if(!(t&&!n.isLoading))return;let r=`${e.dataUpdatedAt}:${n.dataUpdatedAt}`;if(l.current===r)return;l.current=r;let i=z(t,`epay.default_network`).trim(),a=x.find(e=>X(e.network,i))?.network||(i?``:H)||x[0]?.network||i||`TRON`,o=K(m,a),s=z(t,`epay.default_token`).trim(),c=o.find(e=>X(e.value,s))?.value||(s?``:H)||(s&&o.length===0?s.toLowerCase():o[0]?.value||`usdt`);d.reset({defaultToken:c,defaultCurrency:z(t,`epay.default_currency`,`CNY`).trim().toUpperCase(),defaultNetwork:a})},[n.dataUpdatedAt,n.isLoading,d,x,e.dataUpdatedAt,e.data,m]);async function W(t){await R(c.mutateAsync,[{group:`epay`,key:`epay.default_token`,type:`string`,value:Q(t.defaultToken)},{group:`epay`,key:`epay.default_currency`,type:`string`,value:t.defaultCurrency.toLowerCase()},{group:`epay`,key:`epay.default_network`,type:`string`,value:Q(t.defaultNetwork)}],o()),await e.refetch()}async function $(){await L(c.mutateAsync,[{group:`epay`,key:`epay.default_token`,type:`string`,value:``},{group:`epay`,key:`epay.default_currency`,type:`string`,value:``},{group:`epay`,key:`epay.default_network`,type:`string`,value:``}],u()),await e.refetch()}return(0,V.jsx)(A,{...d,children:(0,V.jsxs)(`form`,{className:`space-y-6`,onSubmit:d.handleSubmit(W),children:[(0,V.jsxs)(`div`,{className:`grid gap-6 md:grid-cols-2`,children:[(0,V.jsx)(T,{control:d.control,name:`defaultNetwork`,render:({field:e})=>{let t=J(x,e.value),i=t?.network||e.value,a=Z(e.value);return(0,V.jsxs)(C,{children:[(0,V.jsx)(O,{children:r()}),(0,V.jsxs)(b,{disabled:n.isLoading,onValueChange:t=>{if(e.onChange(t),Z(t)){d.setValue(`defaultToken`,H,{shouldDirty:!0,shouldValidate:!0});return}let n=K(m,t)[0]?.value;d.setValue(`defaultToken`,n??``,{shouldDirty:!0,shouldValidate:!0})},value:e.value,children:[(0,V.jsx)(D,{children:(0,V.jsxs)(_,{className:`w-full`,children:[(0,V.jsx)(`span`,{className:`sr-only`,children:(0,V.jsx)(g,{})}),(0,V.jsx)(`span`,{className:`pointer-events-none`,children:a?p():(0,V.jsx)(P,{displayName:t?.displayName,network:i||`TRON`})})]})}),(0,V.jsxs)(v,{children:[(0,V.jsx)(y,{textValue:p(),value:H,children:(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:p()})}),x.map(e=>(0,V.jsx)(y,{textValue:q(e),value:e.network,children:(0,V.jsx)(`span`,{className:`pointer-events-none`,children:(0,V.jsx)(P,{displayName:e.displayName,network:e.network})})},e.network))]})]}),(0,V.jsx)(k,{})]})}}),(0,V.jsx)(T,{control:d.control,name:`defaultToken`,render:({field:e})=>{let t=Y(M,e.value),r=Z(e.value);return(0,V.jsxs)(C,{children:[(0,V.jsx)(O,{children:s()}),(0,V.jsxs)(b,{disabled:n.isLoading||Z(S),onValueChange:e.onChange,value:e.value,children:[(0,V.jsx)(D,{children:(0,V.jsxs)(_,{className:`w-full`,children:[(0,V.jsx)(`span`,{className:`sr-only`,children:(0,V.jsx)(g,{})}),(0,V.jsx)(`span`,{className:`pointer-events-none`,children:r?p():(0,V.jsx)(N,{token:t||`USDT`})})]})}),(0,V.jsxs)(v,{children:[(0,V.jsx)(y,{textValue:p(),value:H,children:(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:p()})}),M.map(e=>(0,V.jsx)(y,{textValue:e.displayName,value:e.value,children:(0,V.jsx)(`span`,{className:`pointer-events-none`,children:(0,V.jsx)(N,{token:e.displayName})})},e.value))]})]}),(0,V.jsx)(k,{})]})}})]}),(0,V.jsx)(T,{control:d.control,name:`defaultCurrency`,render:({field:e})=>(0,V.jsxs)(C,{children:[(0,V.jsx)(O,{children:f()}),(0,V.jsx)(D,{children:(0,V.jsx)(j,{placeholder:`CNY`,...e})}),(0,V.jsx)(k,{})]})}),(0,V.jsxs)(`div`,{className:`flex gap-2`,children:[(0,V.jsx)(h,{disabled:c.isPending||e.isLoading,type:`submit`,children:a()}),(0,V.jsx)(h,{disabled:c.isPending,onClick:$,type:`button`,variant:`outline`,children:i()})]})]})})}function G(e){let t=new Map;for(let n of e){if(!n.network)continue;let e=n.network.toLowerCase();t.has(e)||t.set(e,{displayName:n.display_name,network:n.network})}return Array.from(t.values())}function K(e,t){if(Z(t))return[];let n=new Map;for(let r of e)if(X(r.network,t))for(let e of r.tokens??[]){if(!e)continue;let t=e.toLowerCase();n.has(t)||n.set(t,{displayName:e.toUpperCase(),value:t})}return Array.from(n.values())}function q(e){return e.displayName?.trim()||e.network}function J(e,t){return e.find(e=>X(e.network,t))}function Y(e,t){return t&&!Z(t)?e.find(e=>X(e.value,t))?.displayName||t.toUpperCase():``}function X(e,t){return String(e??``).toLowerCase()===String(t??``).toLowerCase()}function Z(e){return e===H}function Q(e){return Z(e)?``:e.toLowerCase()}function $(){return(0,V.jsx)(M,{description:d(),title:c(),variant:`section`,children:(0,V.jsx)(W,{})})}var ee=$;export{ee as component}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{a as t}from"./auth-store-8ocF_FHU.js";import{t as n}from"./react-CO2uhaBc.js";import{Af as r,Fn as i,In as a,Ln as o,Mf as s,Nf as c,Of as l,Pn as u,Rn as d,jf as f,kf as p,tm as m}from"./messages-CL4J6BaJ.js";import{t as h}from"./button-NLSeBFht.js";import{a as g,i as _,n as v,r as y,t as b}from"./select-D2uO5-De.js";import{c as x,s as S}from"./zod-rwFXxHlg.js";import{a as C,c as w,i as T,l as E,n as D,o as O,s as k,t as A}from"./form-C_YekIvK.js";import{t as j}from"./input-DAqep8ZY.js";import{t as M}from"./page-header-B7O10aw9.js";import{n as N,t as P}from"./labels-CQIGkPR0.js";import{a as F,i as I,n as L,r as R,t as z}from"./lib-Ku8Lh36m.js";var B=e(n(),1),V=m(),H=`__empty__`,U=S({defaultToken:x().trim(),defaultCurrency:x().trim().min(1,l()),defaultNetwork:x().trim()});function W(){let e=I(`epay`),n=t.useQuery(`get`,`/admin/api/v1/config`),c=F(),l=(0,B.useRef)(``),d=E({resolver:w(U),defaultValues:{defaultToken:`usdt`,defaultCurrency:`CNY`,defaultNetwork:`TRON`}}),m=(0,B.useMemo)(()=>n.data?.data?.supported_assets??[],[n.data?.data?.supported_assets]),x=(0,B.useMemo)(()=>G(m),[m]),S=d.watch(`defaultNetwork`),M=(0,B.useMemo)(()=>K(m,S),[m,S]);(0,B.useEffect)(()=>{let t=e.data?.data;if(!(t&&!n.isLoading))return;let r=`${e.dataUpdatedAt}:${n.dataUpdatedAt}`;if(l.current===r)return;l.current=r;let i=z(t,`epay.default_network`).trim(),a=x.find(e=>X(e.network,i))?.network||(i?``:H)||x[0]?.network||i||`TRON`,o=K(m,a),s=z(t,`epay.default_token`).trim(),c=o.find(e=>X(e.value,s))?.value||(s?``:H)||(s&&o.length===0?s.toLowerCase():o[0]?.value||`usdt`);d.reset({defaultToken:c,defaultCurrency:z(t,`epay.default_currency`,`CNY`).trim().toUpperCase(),defaultNetwork:a})},[n.dataUpdatedAt,n.isLoading,d,x,e.dataUpdatedAt,e.data,m]);async function W(t){await R(c.mutateAsync,[{group:`epay`,key:`epay.default_token`,type:`string`,value:Q(t.defaultToken)},{group:`epay`,key:`epay.default_currency`,type:`string`,value:t.defaultCurrency.toLowerCase()},{group:`epay`,key:`epay.default_network`,type:`string`,value:Q(t.defaultNetwork)}],o()),await e.refetch()}async function $(){await L(c.mutateAsync,[{group:`epay`,key:`epay.default_token`,type:`string`,value:``},{group:`epay`,key:`epay.default_currency`,type:`string`,value:``},{group:`epay`,key:`epay.default_network`,type:`string`,value:``}],u()),await e.refetch()}return(0,V.jsx)(A,{...d,children:(0,V.jsxs)(`form`,{className:`space-y-6`,onSubmit:d.handleSubmit(W),children:[(0,V.jsxs)(`div`,{className:`grid gap-6 md:grid-cols-2`,children:[(0,V.jsx)(T,{control:d.control,name:`defaultNetwork`,render:({field:e})=>{let t=J(x,e.value),i=t?.network||e.value,a=Z(e.value);return(0,V.jsxs)(C,{children:[(0,V.jsx)(O,{children:r()}),(0,V.jsxs)(b,{disabled:n.isLoading,onValueChange:t=>{if(e.onChange(t),Z(t)){d.setValue(`defaultToken`,H,{shouldDirty:!0,shouldValidate:!0});return}let n=K(m,t)[0]?.value;d.setValue(`defaultToken`,n??``,{shouldDirty:!0,shouldValidate:!0})},value:e.value,children:[(0,V.jsx)(D,{children:(0,V.jsxs)(_,{className:`w-full`,children:[(0,V.jsx)(`span`,{className:`sr-only`,children:(0,V.jsx)(g,{})}),(0,V.jsx)(`span`,{className:`pointer-events-none`,children:a?p():(0,V.jsx)(P,{displayName:t?.displayName,network:i||`TRON`})})]})}),(0,V.jsxs)(v,{children:[(0,V.jsx)(y,{textValue:p(),value:H,children:(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:p()})}),x.map(e=>(0,V.jsx)(y,{textValue:q(e),value:e.network,children:(0,V.jsx)(`span`,{className:`pointer-events-none`,children:(0,V.jsx)(P,{displayName:e.displayName,network:e.network})})},e.network))]})]}),(0,V.jsx)(k,{})]})}}),(0,V.jsx)(T,{control:d.control,name:`defaultToken`,render:({field:e})=>{let t=Y(M,e.value),r=Z(e.value);return(0,V.jsxs)(C,{children:[(0,V.jsx)(O,{children:s()}),(0,V.jsxs)(b,{disabled:n.isLoading||Z(S),onValueChange:e.onChange,value:e.value,children:[(0,V.jsx)(D,{children:(0,V.jsxs)(_,{className:`w-full`,children:[(0,V.jsx)(`span`,{className:`sr-only`,children:(0,V.jsx)(g,{})}),(0,V.jsx)(`span`,{className:`pointer-events-none`,children:r?p():(0,V.jsx)(N,{token:t||`USDT`})})]})}),(0,V.jsxs)(v,{children:[(0,V.jsx)(y,{textValue:p(),value:H,children:(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:p()})}),M.map(e=>(0,V.jsx)(y,{textValue:e.displayName,value:e.value,children:(0,V.jsx)(`span`,{className:`pointer-events-none`,children:(0,V.jsx)(N,{token:e.displayName})})},e.value))]})]}),(0,V.jsx)(k,{})]})}})]}),(0,V.jsx)(T,{control:d.control,name:`defaultCurrency`,render:({field:e})=>(0,V.jsxs)(C,{children:[(0,V.jsx)(O,{children:f()}),(0,V.jsx)(D,{children:(0,V.jsx)(j,{placeholder:`CNY`,...e})}),(0,V.jsx)(k,{})]})}),(0,V.jsxs)(`div`,{className:`flex gap-2`,children:[(0,V.jsx)(h,{disabled:c.isPending||e.isLoading,type:`submit`,children:a()}),(0,V.jsx)(h,{disabled:c.isPending,onClick:$,type:`button`,variant:`outline`,children:i()})]})]})})}function G(e){let t=new Map;for(let n of e){if(!n.network)continue;let e=n.network.toLowerCase();t.has(e)||t.set(e,{displayName:n.display_name,network:n.network})}return Array.from(t.values())}function K(e,t){if(Z(t))return[];let n=new Map;for(let r of e)if(X(r.network,t))for(let e of r.tokens??[]){if(!e)continue;let t=e.toLowerCase();n.has(t)||n.set(t,{displayName:e.toUpperCase(),value:t})}return Array.from(n.values())}function q(e){return e.displayName?.trim()||e.network}function J(e,t){return e.find(e=>X(e.network,t))}function Y(e,t){return t&&!Z(t)?e.find(e=>X(e.value,t))?.displayName||t.toUpperCase():``}function X(e,t){return String(e??``).toLowerCase()===String(t??``).toLowerCase()}function Z(e){return e===H}function Q(e){return Z(e)?``:e.toLowerCase()}function $(){return(0,V.jsx)(M,{description:d(),title:c(),variant:`section`,children:(0,V.jsx)(W,{})})}var ee=$;export{ee as component}; \ No newline at end of file diff --git a/src/www/assets/epusdt-BvGYu9TV.js b/src/www/assets/epusdt-DDJlVqbb.js similarity index 90% rename from src/www/assets/epusdt-BvGYu9TV.js rename to src/www/assets/epusdt-DDJlVqbb.js index 4de62b6..2257f86 100644 --- a/src/www/assets/epusdt-BvGYu9TV.js +++ b/src/www/assets/epusdt-DDJlVqbb.js @@ -1 +1 @@ -import{_t as e,bt as t,gt as n,ht as r,mt as i,pt as a,vt as o,xt as s,yt as c}from"./messages-BOatyqUm.js";import{n as l,t as u}from"./wallet-CtiawGS1.js";import{t as d}from"./createLucideIcon-Br0Bd5k2.js";var f=d(`circle-pause`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`10`,x2:`10`,y1:`15`,y2:`9`,key:`c1nkhi`}],[`line`,{x1:`14`,x2:`14`,y1:`15`,y2:`9`,key:`h65svq`}]]),p=d(`clock-3`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6h4`,key:`135r8i`}]]),m=d(`link-2-off`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7`,key:`10o201`}],[`path`,{d:`M15 7h2a5 5 0 0 1 4 8`,key:`1d3206`}],[`line`,{x1:`8`,x2:`12`,y1:`12`,y2:`12`,key:`rvw6j4`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),h=[{label:s(),value:`1`,icon:p},{label:t(),value:`2`,icon:l},{label:c(),value:`3`,icon:m},{label:o(),value:`4`,icon:u}],g={1:`bg-amber-500/10 text-amber-600`,2:`bg-emerald-500/10 text-emerald-600`,3:`bg-rose-500/10 text-rose-600`,4:`bg-cyan-500/10 text-cyan-600`};function _(e){return h.find(t=>t.value===String(e??1))?.label??String(e??`-`)}var v=[{label:e(),value:`enabled`,icon:u},{label:n(),value:`disabled`,icon:f},{label:r(),value:`monitoring`,icon:l}];i(),a();var y=[{label:i(),value:`true`},{label:a(),value:`false`}];export{h as a,g as i,y as n,p as o,_ as r,v as t}; \ No newline at end of file +import{_t as e,bt as t,gt as n,ht as r,mt as i,pt as a,vt as o,xt as s,yt as c}from"./messages-CL4J6BaJ.js";import{n as l,t as u}from"./wallet-Cdhl16hF.js";import{t as d}from"./createLucideIcon-Br0Bd5k2.js";var f=d(`circle-pause`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`10`,x2:`10`,y1:`15`,y2:`9`,key:`c1nkhi`}],[`line`,{x1:`14`,x2:`14`,y1:`15`,y2:`9`,key:`h65svq`}]]),p=d(`clock-3`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6h4`,key:`135r8i`}]]),m=d(`link-2-off`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7`,key:`10o201`}],[`path`,{d:`M15 7h2a5 5 0 0 1 4 8`,key:`1d3206`}],[`line`,{x1:`8`,x2:`12`,y1:`12`,y2:`12`,key:`rvw6j4`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]),h=[{label:s(),value:`1`,icon:p},{label:t(),value:`2`,icon:l},{label:c(),value:`3`,icon:m},{label:o(),value:`4`,icon:u}],g={1:`bg-amber-500/10 text-amber-600`,2:`bg-emerald-500/10 text-emerald-600`,3:`bg-rose-500/10 text-rose-600`,4:`bg-cyan-500/10 text-cyan-600`};function _(e){return h.find(t=>t.value===String(e??1))?.label??String(e??`-`)}var v=[{label:e(),value:`enabled`,icon:u},{label:n(),value:`disabled`,icon:f},{label:r(),value:`monitoring`,icon:l}];i(),a();var y=[{label:i(),value:`true`},{label:a(),value:`false`}];export{h as a,g as i,y as n,p as o,_ as r,v as t}; \ No newline at end of file diff --git a/src/www/assets/es2015-DT8UeWzs.js b/src/www/assets/es2015-3J9GnV9P.js similarity index 98% rename from src/www/assets/es2015-DT8UeWzs.js rename to src/www/assets/es2015-3J9GnV9P.js index f486f5f..f106455 100644 --- a/src/www/assets/es2015-DT8UeWzs.js +++ b/src/www/assets/es2015-3J9GnV9P.js @@ -1,4 +1,4 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./dist-Cc8_LDAq.js";import{u as i}from"./button-C_NDYaz8.js";import{t as a}from"./dist-D4X8zGEB.js";var o=e(t(),1),s=n(),c=`focusScope.autoFocusOnMount`,l=`focusScope.autoFocusOnUnmount`,u={bubbles:!1,cancelable:!0},d=`FocusScope`,f=o.forwardRef((e,t)=>{let{loop:n=!1,trapped:d=!1,onMountAutoFocus:f,onUnmountAutoFocus:g,..._}=e,[v,x]=o.useState(null),S=a(f),w=a(g),T=o.useRef(null),E=i(t,e=>x(e)),D=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(d){let e=function(e){if(D.paused||!v)return;let t=e.target;v.contains(t)?T.current=t:y(T.current,{select:!0})},t=function(e){if(D.paused||!v)return;let t=e.relatedTarget;t!==null&&(v.contains(t)||y(T.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&y(v)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return v&&r.observe(v,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[d,v,D.paused]),o.useEffect(()=>{if(v){b.add(D);let e=document.activeElement;if(!v.contains(e)){let t=new CustomEvent(c,u);v.addEventListener(c,S),v.dispatchEvent(t),t.defaultPrevented||(p(C(h(v)),{select:!0}),document.activeElement===e&&y(v))}return()=>{v.removeEventListener(c,S),setTimeout(()=>{let t=new CustomEvent(l,u);v.addEventListener(l,w),v.dispatchEvent(t),t.defaultPrevented||y(e??document.body,{select:!0}),v.removeEventListener(l,w),b.remove(D)},0)}}},[v,S,w,D]);let O=o.useCallback(e=>{if(!n&&!d||D.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[i,a]=m(t);i&&a?!e.shiftKey&&r===a?(e.preventDefault(),n&&y(i,{select:!0})):e.shiftKey&&r===i&&(e.preventDefault(),n&&y(a,{select:!0})):r===t&&e.preventDefault()}},[n,d,D.paused]);return(0,s.jsx)(r.div,{tabIndex:-1,..._,ref:E,onKeyDown:O})});f.displayName=d;function p(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(y(r,{select:t}),document.activeElement!==n)return}function m(e){let t=h(e);return[g(t,e),g(t.reverse(),e)]}function h(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function g(e,t){for(let n of e)if(!_(n,{upTo:t}))return n}function _(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function v(e){return e instanceof HTMLInputElement&&`select`in e}function y(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&v(e)&&t&&e.select()}}var b=x();function x(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=S(e,t),e.unshift(t)},remove(t){e=S(e,t),e[0]?.resume()}}}function S(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function C(e){return e.filter(e=>e.tagName!==`A`)}var w=0;function T(){o.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??E()),document.body.insertAdjacentElement(`beforeend`,e[1]??E()),w++,()=>{w===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),w--}},[])}function E(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var D=function(){return D=Object.assign||function(e){for(var t,n=1,r=arguments.length;n`u`)return ge;var t=_e(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ye=R(),B=`data-scroll-locked`,be=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),` +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";import{t as r}from"./dist-D3WFT-Yo.js";import{u as i}from"./button-NLSeBFht.js";import{t as a}from"./dist-SR6sl-WU.js";var o=e(t(),1),s=n(),c=`focusScope.autoFocusOnMount`,l=`focusScope.autoFocusOnUnmount`,u={bubbles:!1,cancelable:!0},d=`FocusScope`,f=o.forwardRef((e,t)=>{let{loop:n=!1,trapped:d=!1,onMountAutoFocus:f,onUnmountAutoFocus:g,..._}=e,[v,x]=o.useState(null),S=a(f),w=a(g),T=o.useRef(null),E=i(t,e=>x(e)),D=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(d){let e=function(e){if(D.paused||!v)return;let t=e.target;v.contains(t)?T.current=t:y(T.current,{select:!0})},t=function(e){if(D.paused||!v)return;let t=e.relatedTarget;t!==null&&(v.contains(t)||y(T.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&y(v)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return v&&r.observe(v,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[d,v,D.paused]),o.useEffect(()=>{if(v){b.add(D);let e=document.activeElement;if(!v.contains(e)){let t=new CustomEvent(c,u);v.addEventListener(c,S),v.dispatchEvent(t),t.defaultPrevented||(p(C(h(v)),{select:!0}),document.activeElement===e&&y(v))}return()=>{v.removeEventListener(c,S),setTimeout(()=>{let t=new CustomEvent(l,u);v.addEventListener(l,w),v.dispatchEvent(t),t.defaultPrevented||y(e??document.body,{select:!0}),v.removeEventListener(l,w),b.remove(D)},0)}}},[v,S,w,D]);let O=o.useCallback(e=>{if(!n&&!d||D.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[i,a]=m(t);i&&a?!e.shiftKey&&r===a?(e.preventDefault(),n&&y(i,{select:!0})):e.shiftKey&&r===i&&(e.preventDefault(),n&&y(a,{select:!0})):r===t&&e.preventDefault()}},[n,d,D.paused]);return(0,s.jsx)(r.div,{tabIndex:-1,..._,ref:E,onKeyDown:O})});f.displayName=d;function p(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(y(r,{select:t}),document.activeElement!==n)return}function m(e){let t=h(e);return[g(t,e),g(t.reverse(),e)]}function h(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function g(e,t){for(let n of e)if(!_(n,{upTo:t}))return n}function _(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function v(e){return e instanceof HTMLInputElement&&`select`in e}function y(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&v(e)&&t&&e.select()}}var b=x();function x(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=S(e,t),e.unshift(t)},remove(t){e=S(e,t),e[0]?.resume()}}}function S(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function C(e){return e.filter(e=>e.tagName!==`A`)}var w=0;function T(){o.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??E()),document.body.insertAdjacentElement(`beforeend`,e[1]??E()),w++,()=>{w===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),w--}},[])}function E(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var D=function(){return D=Object.assign||function(e){for(var t,n=1,r=arguments.length;n`u`)return ge;var t=_e(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ye=R(),B=`data-scroll-locked`,be=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),` .${te} { overflow: hidden ${r}; padding-right: ${s}px ${r}; diff --git a/src/www/assets/font-provider-BPsIRWbb.js b/src/www/assets/font-provider-C4_iupSb.js similarity index 91% rename from src/www/assets/font-provider-BPsIRWbb.js rename to src/www/assets/font-provider-C4_iupSb.js index dc7120c..340b5a3 100644 --- a/src/www/assets/font-provider-BPsIRWbb.js +++ b/src/www/assets/font-provider-C4_iupSb.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{n as r,r as i,t as a}from"./cookies-BzZOQYPw.js";var o=e(t(),1),s=[`inter`,`manrope`,`noto`,`system`],c=n(),l=`font`,u=3600*24*365,d=(0,o.createContext)(null);function f({children:e}){let[t,n]=(0,o.useState)(()=>{let e=a(l);return s.includes(e)?e:s[0]});return(0,o.useEffect)(()=>{(e=>{let t=document.documentElement;t.classList.remove(...[...t.classList].filter(e=>e.startsWith(`font-`))),t.classList.add(`font-${e}`)})(t)},[t]),(0,c.jsx)(d,{value:{font:t,setFont:e=>{i(l,e,u),n(e)},resetFont:()=>{r(l),n(s[0])}},children:e})}var p=()=>{let e=(0,o.useContext)(d);if(!e)throw Error(`useFont must be used within a FontProvider`);return e};export{p as n,s as r,f as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";import{n as r,r as i,t as a}from"./cookies-BzZOQYPw.js";var o=e(t(),1),s=[`inter`,`manrope`,`noto`,`system`],c=n(),l=`font`,u=3600*24*365,d=(0,o.createContext)(null);function f({children:e}){let[t,n]=(0,o.useState)(()=>{let e=a(l);return s.includes(e)?e:s[0]});return(0,o.useEffect)(()=>{(e=>{let t=document.documentElement;t.classList.remove(...[...t.classList].filter(e=>e.startsWith(`font-`))),t.classList.add(`font-${e}`)})(t)},[t]),(0,c.jsx)(d,{value:{font:t,setFont:e=>{i(l,e,u),n(e)},resetFont:()=>{r(l),n(s[0])}},children:e})}var p=()=>{let e=(0,o.useContext)(d);if(!e)throw Error(`useFont must be used within a FontProvider`);return e};export{p as n,s as r,f as t}; \ No newline at end of file diff --git a/src/www/assets/forbidden-CgQyYxDt.js b/src/www/assets/forbidden-BCyOYrFV.js similarity index 85% rename from src/www/assets/forbidden-CgQyYxDt.js rename to src/www/assets/forbidden-BCyOYrFV.js index 3ab373f..4a49cb4 100644 --- a/src/www/assets/forbidden-CgQyYxDt.js +++ b/src/www/assets/forbidden-BCyOYrFV.js @@ -1 +1 @@ -import{Mt as e,Nt as t,Od as n,Pt as r,kd as i,tm as a}from"./messages-BOatyqUm.js";import{t as o}from"./useRouter-DtTm7XkK.js";import{t as s}from"./useNavigate-7u4DX0Ho.js";import{t as c}from"./button-C_NDYaz8.js";var l=a();function u(){let a=s(),{history:u}=o();return(0,l.jsx)(`div`,{className:`h-svh`,children:(0,l.jsxs)(`div`,{className:`m-auto flex h-full w-full flex-col items-center justify-center gap-2`,children:[(0,l.jsx)(`h1`,{className:`font-bold text-[7rem] leading-tight`,children:`403`}),(0,l.jsx)(`span`,{className:`font-medium`,children:r()}),(0,l.jsxs)(`p`,{className:`text-center text-muted-foreground`,children:[t(),` `,(0,l.jsx)(`br`,{}),e()]}),(0,l.jsxs)(`div`,{className:`mt-6 flex gap-4`,children:[(0,l.jsx)(c,{onClick:()=>u.go(-1),variant:`outline`,children:i()}),(0,l.jsx)(c,{onClick:()=>a({to:`/dashboard`}),children:n()})]})]})})}export{u as t}; \ No newline at end of file +import{Mt as e,Nt as t,Od as n,Pt as r,kd as i,tm as a}from"./messages-CL4J6BaJ.js";import{t as o}from"./useRouter-DtTm7XkK.js";import{t as s}from"./useNavigate-7u4DX0Ho.js";import{t as c}from"./button-NLSeBFht.js";var l=a();function u(){let a=s(),{history:u}=o();return(0,l.jsx)(`div`,{className:`h-svh`,children:(0,l.jsxs)(`div`,{className:`m-auto flex h-full w-full flex-col items-center justify-center gap-2`,children:[(0,l.jsx)(`h1`,{className:`font-bold text-[7rem] leading-tight`,children:`403`}),(0,l.jsx)(`span`,{className:`font-medium`,children:r()}),(0,l.jsxs)(`p`,{className:`text-center text-muted-foreground`,children:[t(),` `,(0,l.jsx)(`br`,{}),e()]}),(0,l.jsxs)(`div`,{className:`mt-6 flex gap-4`,children:[(0,l.jsx)(c,{onClick:()=>u.go(-1),variant:`outline`,children:i()}),(0,l.jsx)(c,{onClick:()=>a({to:`/dashboard`}),children:n()})]})]})})}export{u as t}; \ No newline at end of file diff --git a/src/www/assets/form-KfFEakes.js b/src/www/assets/form-C_YekIvK.js similarity index 99% rename from src/www/assets/form-KfFEakes.js rename to src/www/assets/form-C_YekIvK.js index d21abca..b72d87e 100644 --- a/src/www/assets/form-KfFEakes.js +++ b/src/www/assets/form-C_YekIvK.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{i as r,o as i}from"./button-C_NDYaz8.js";import{t as a}from"./label-DNL0sHKL.js";import{d as o,l as s,u as c}from"./zod-rwFXxHlg.js";var l=e(t(),1),u=e=>e.type===`checkbox`,d=e=>e instanceof Date,f=e=>e==null,p=e=>typeof e==`object`,m=e=>!f(e)&&!Array.isArray(e)&&p(e)&&!d(e),h=e=>m(e)&&e.target?u(e.target)?e.target.checked:e.target.value:e,g=(e,t)=>t.split(`.`).some((t,n,r)=>!isNaN(Number(t))&&e.has(r.slice(0,n).join(`.`))),_=e=>{let t=e.constructor&&e.constructor.prototype;return m(t)&&t.hasOwnProperty(`isPrototypeOf`)},v=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;function y(e){if(e instanceof Date)return new Date(e);let t=typeof FileList<`u`&&e instanceof FileList;if(v&&(e instanceof Blob||t))return e;let n=Array.isArray(e);if(!n&&!(m(e)&&_(e)))return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=y(e[t]));return r}var b=e=>/^\w*$/.test(e),x=e=>e===void 0,S=e=>Array.isArray(e)?e.filter(Boolean):[],C=e=>S(e.replace(/["|']|\]/g,``).split(/\.|\[/)),w=(e,t,n)=>{if(!t||!m(e))return n;let r=(b(t)?[t]:C(t)).reduce((e,t)=>f(e)?e:e[t],e);return x(r)||r===e?x(e[t])?n:e[t]:r},T=e=>typeof e==`boolean`,E=e=>typeof e==`function`,D=(e,t,n)=>{let r=-1,i=b(t)?[t]:C(t),a=i.length,o=a-1;for(;++rl.useContext(M),P=(e,t,n,r=!0)=>{let i={defaultValues:t._defaultValues};for(let a in e)Object.defineProperty(i,a,{get:()=>{let i=a;return t._proxyFormState[i]!==k.all&&(t._proxyFormState[i]=!r||k.all),n&&(n[i]=!0),e[i]}});return i},F=typeof window<`u`?l.useLayoutEffect:l.useEffect;function te(e){let t=N(),{control:n=t,disabled:r,name:i,exact:a}=e||{},[o,s]=l.useState(n._formState),c=l.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return F(()=>n._subscribe({name:i,formState:c.current,exact:a,callback:e=>{!r&&s({...n._formState,...e})}}),[i,r,a]),l.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),l.useMemo(()=>P(o,n,c.current,!1),[o,n])}var I=e=>typeof e==`string`,ne=(e,t,n,r,i)=>I(e)?(r&&t.watch.add(e),w(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),w(n,e))):(r&&(t.watchAll=!0),n),re=e=>f(e)||!p(e);function L(e,t,n=new WeakSet){if(re(e)||re(t))return Object.is(e,t);if(d(e)&&d(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(let a of r){let r=e[a];if(!i.includes(a))return!1;if(a!==`ref`){let e=t[a];if(d(r)&&d(e)||(m(r)||Array.isArray(r))&&(m(e)||Array.isArray(e))?!L(r,e,n):!Object.is(r,e))return!1}}return!0}function ie(e){let t=N(),{control:n=t,name:r,defaultValue:i,disabled:a,exact:o,compute:s}=e||{},c=l.useRef(i),u=l.useRef(s),d=l.useRef(void 0),f=l.useRef(n),p=l.useRef(r);u.current=s;let[m,h]=l.useState(()=>{let e=n._getWatch(r,c.current);return u.current?u.current(e):e}),g=l.useCallback(e=>{let t=ne(r,n._names,e||n._formValues,!1,c.current);return u.current?u.current(t):t},[n._formValues,n._names,r]),_=l.useCallback(e=>{if(!a){let t=ne(r,n._names,e||n._formValues,!1,c.current);if(u.current){let e=u.current(t);L(e,d.current)||(h(e),d.current=e)}else h(t)}},[n._formValues,n._names,a,r]);F(()=>((f.current!==n||!L(p.current,r))&&(f.current=n,p.current=r,_()),n._subscribe({name:r,formState:{values:!0},exact:o,callback:e=>{_(e.values)}})),[n,o,r,_]),l.useEffect(()=>n._removeUnmounted());let v=f.current!==n,y=p.current,b=l.useMemo(()=>{if(a)return null;let e=!v&&!L(y,r);return v||e?g():null},[a,v,r,y,g]);return b===null?m:b}function ae(e){let t=N(),{name:n,disabled:r,control:i=t,shouldUnregister:a,defaultValue:o,exact:s=!0}=e,c=g(i._names.array,n),u=ie({control:i,name:n,defaultValue:l.useMemo(()=>w(i._formValues,n,w(i._defaultValues,n,o)),[i,n,o]),exact:s}),d=te({control:i,name:n,exact:s}),f=l.useRef(e),p=l.useRef(void 0),m=l.useRef(i.register(n,{...e.rules,value:u,...T(e.disabled)?{disabled:e.disabled}:{}}));f.current=e;let _=l.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!w(d.errors,n)},isDirty:{enumerable:!0,get:()=>!!w(d.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!w(d.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!w(d.validatingFields,n)},error:{enumerable:!0,get:()=>w(d.errors,n)}}),[d,n]),v=l.useCallback(e=>m.current.onChange({target:{value:h(e),name:n},type:O.CHANGE}),[n]),b=l.useCallback(()=>m.current.onBlur({target:{value:w(i._formValues,n),name:n},type:O.BLUR}),[n,i._formValues]),S=l.useCallback(e=>{let t=w(i._fields,n);t&&t._f&&e&&(t._f.ref={focus:()=>E(e.focus)&&e.focus(),select:()=>E(e.select)&&e.select(),setCustomValidity:t=>E(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>E(e.reportValidity)&&e.reportValidity()})},[i._fields,n]),C=l.useMemo(()=>({name:n,value:u,...T(r)||d.disabled?{disabled:d.disabled||r}:{},onChange:v,onBlur:b,ref:S}),[n,r,d.disabled,v,b,S,u]);return l.useEffect(()=>{let e=i._options.shouldUnregister||a,t=p.current;t&&t!==n&&!c&&i.unregister(t),i.register(n,{...f.current.rules,...T(f.current.disabled)?{disabled:f.current.disabled}:{}});let r=(e,t)=>{let n=w(i._fields,e);n&&n._f&&(n._f.mount=t)};if(r(n,!0),e){let e=y(w(i._options.defaultValues,n,f.current.defaultValue));D(i._defaultValues,n,e),x(w(i._formValues,n))&&D(i._formValues,n,e)}return!c&&i.register(n),p.current=n,()=>{(c?e&&!i._state.action:e)?i.unregister(n):r(n,!1)}},[n,i,c,a]),l.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),l.useMemo(()=>({field:C,formState:d,fieldState:_}),[C,d,_])}var oe=e=>e.render(ae(e)),se=l.createContext(null);se.displayName=`HookFormContext`;var ce=()=>l.useContext(se),R=e=>{let{children:t,watch:n,getValues:r,getFieldState:i,setError:a,clearErrors:o,setValue:s,trigger:c,formState:u,resetField:d,reset:f,handleSubmit:p,unregister:m,control:h,register:g,setFocus:_,subscribe:v}=e,y=l.useMemo(()=>({watch:n,getValues:r,getFieldState:i,setError:a,clearErrors:o,setValue:s,trigger:c,formState:u,resetField:d,reset:f,handleSubmit:p,unregister:m,control:h,register:g,setFocus:_,subscribe:v}),[o,h,u,i,r,p,g,f,d,a,_,s,v,c,m,n]);return l.createElement(se.Provider,{value:y},l.createElement(M.Provider,{value:y.control},t))},le=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},ue=e=>Array.isArray(e)?e:[e],de=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function fe(e,t){let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],a=t[r];if(i&&m(i)&&a){let e=fe(i,a);m(e)&&(n[r]=e)}else e[r]&&(n[r]=a)}return n}var z=e=>m(e)&&!Object.keys(e).length,pe=e=>e.type===`file`,me=e=>{if(!v)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},he=e=>e.type===`select-multiple`,B=e=>e.type===`radio`,ge=e=>B(e)||u(e),_e=e=>me(e)&&e.isConnected;function V(e,t){let n=t.slice(0,-1).length,r=0;for(;r{for(let t in e)if(E(e[t]))return!0;return!1};function W(e){return Array.isArray(e)||m(e)&&!U(e)}function ye(e,t={}){for(let n in e){let r=e[n];W(r)?(t[n]=Array.isArray(r)?[]:{},ye(r,t[n])):x(r)||(t[n]=!0)}return t}function G(e,t,n){n||=ye(t);for(let r in e){let i=e[r];if(W(i))x(t)||re(n[r])?n[r]=ye(i,Array.isArray(i)?[]:{}):G(i,f(t)?{}:t[r],n[r]);else{let e=t[r];n[r]=!L(i,e)}}return n}var K={value:!1,isValid:!1},be={value:!0,isValid:!0},q=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!x(e[0].attributes.value)?x(e[0].value)||e[0].value===``?be:{value:e[0].value,isValid:!0}:be:K}return K},xe=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>x(e)?e:t?e===``?NaN:e&&+e:n&&I(e)?new Date(e):r?r(e):e,Se={isValid:!1,value:null},Ce=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,Se):Se;function we(e){let t=e.ref;return pe(t)?t.files:B(t)?Ce(e.refs).value:he(t)?[...t.selectedOptions].map(({value:e})=>e):u(t)?q(e.refs).value:xe(x(t.value)?e.ref.value:t.value,e)}var Te=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Ee=(e,t,n,r)=>{let i={};for(let n of e){let e=w(t,n);e&&D(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},J=e=>e instanceof RegExp,Y=e=>x(e)?e:J(e)?e.source:m(e)?J(e.value)?e.value.source:e.value:e,De=e=>({isOnSubmit:!e||e===k.onSubmit,isOnBlur:e===k.onBlur,isOnChange:e===k.onChange,isOnAll:e===k.all,isOnTouch:e===k.onTouched}),Oe=`AsyncFunction`,ke=e=>!!e&&!!e.validate&&!!(E(e.validate)&&e.validate.constructor.name===Oe||m(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===Oe)),Ae=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),je=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),X=(e,t,n,r)=>{for(let i of n||Object.keys(e)){let n=w(e,i);if(n){let{_f:e,...a}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r||e.ref&&t(e.ref,e.name)&&!r)return!0;if(X(a,t))break}else if(m(a)&&X(a,t))break}}};function Me(e,t,n){let r=w(e,n);if(r||b(n))return{error:r,name:n};let i=n.split(`.`);for(;i.length;){let r=i.join(`.`),a=w(t,r),o=w(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};if(o&&o.root&&o.root.type)return{name:`${r}.root`,error:o.root};i.pop()}return{name:n}}var Ne=(e,t,n,r)=>{n(e);let{name:i,...a}=e;return z(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!r||k.all))},Pe=(e,t,n)=>!e||!t||e===t||ue(e).some(e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))),Fe=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,Ie=(e,t)=>!S(w(e,t)).length&&H(e,t),Le=(e,t,n)=>{let r=ue(w(e,n));return D(r,ee,t[n]),D(e,n,r),e};function Re(e,t,n=`validate`){if(I(e)||Array.isArray(e)&&e.every(I)||T(e)&&!e)return{type:n,message:I(e)?e:``,ref:t}}var Z=e=>m(e)&&!J(e)?e:{value:e,message:``},ze=async(e,t,n,r,i,a)=>{let{ref:o,refs:s,required:c,maxLength:l,minLength:d,min:p,max:h,pattern:g,validate:_,name:v,valueAsNumber:y,mount:b}=e._f,S=w(n,v);if(!b||t.has(v))return{};let C=s?s[0]:o,D=e=>{i&&C.reportValidity&&(C.setCustomValidity(T(e)?``:e||``),C.reportValidity())},O={},k=B(o),j=u(o),ee=k||j,M=(y||pe(o))&&x(o.value)&&x(S)||me(o)&&o.value===``||S===``||Array.isArray(S)&&!S.length,N=le.bind(null,v,r,O),P=(e,t,n,r=A.maxLength,i=A.minLength)=>{let a=e?t:n;O[v]={type:e?r:i,message:a,ref:o,...N(e?r:i,a)}};if(a?!Array.isArray(S)||!S.length:c&&(!ee&&(M||f(S))||T(S)&&!S||j&&!q(s).isValid||k&&!Ce(s).isValid)){let{value:e,message:t}=I(c)?{value:!!c,message:c}:Z(c);if(e&&(O[v]={type:A.required,message:t,ref:C,...N(A.required,t)},!r))return D(t),O}if(!M&&(!f(p)||!f(h))){let e,t,n=Z(h),i=Z(p);if(!f(S)&&!isNaN(S)){let r=o.valueAsNumber||S&&+S;f(n.value)||(e=r>n.value),f(i.value)||(t=rnew Date(new Date().toDateString()+` `+e),s=o.type==`time`,c=o.type==`week`;I(n.value)&&S&&(e=s?a(S)>a(n.value):c?S>n.value:r>new Date(n.value)),I(i.value)&&S&&(t=s?a(S)+e.value,i=!f(t.value)&&S.length<+t.value;if((n||i)&&(P(n,e.message,t.message),!r))return D(O[v].message),O}if(g&&!M&&I(S)){let{value:e,message:t}=Z(g);if(J(e)&&!S.match(e)&&(O[v]={type:A.pattern,message:t,ref:o,...N(A.pattern,t)},!r))return D(t),O}if(_){if(E(_)){let e=Re(await _(S,n),C);if(e&&(O[v]={...e,...N(A.validate,e.message)},!r))return D(e.message),O}else if(m(_)){let e={};for(let t in _){if(!z(e)&&!r)break;let i=Re(await _[t](S,n),C,t);i&&(e={...i,...N(t,i.message)},D(i.message),r&&(O[v]=e))}if(!z(e)&&(O[v]={ref:C,...e},!r))return O}}return D(!0),O},Be={mode:k.onSubmit,reValidateMode:k.onChange,shouldFocusError:!0};function Ve(e={}){let t={...Be,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:E(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=(m(t.defaultValues)||m(t.values))&&y(t.defaultValues||t.values)||{},a=t.shouldUnregister?{}:y(i),o={action:!1,mount:!1,watch:!1,keepIsValid:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},c,l=0,p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},_={...p},b={..._},C={array:de(),state:de()},M=t.criteriaMode===k.all,N=e=>t=>{clearTimeout(l),l=setTimeout(e,t)},P=async e=>{if(!o.keepIsValid&&!t.disabled&&(_.isValid||b.isValid||e)){let e;t.resolver?(e=z((await R()).errors),F()):e=await V({fields:r,onlyCheckValid:!0,eventType:O.VALID}),e!==n.isValid&&C.state.next({isValid:e})}},F=(e,r)=>{!t.disabled&&(_.isValidating||_.validatingFields||b.isValidating||b.validatingFields)&&((e||Array.from(s.mount)).forEach(e=>{e&&(r?D(n.validatingFields,e,r):H(n.validatingFields,e))}),C.state.next({validatingFields:n.validatingFields,isValidating:!z(n.validatingFields)}))},te=e=>{let t=G(i,a),r=Te(e);D(n.dirtyFields,r,w(t,r))},re=(e,i=[],s,c,l=!0,u=!0)=>{if(c&&s&&!t.disabled){if(o.action=!0,u&&Array.isArray(w(r,e))){let t=s(w(r,e),c.argA,c.argB);l&&D(r,e,t)}if(u&&Array.isArray(w(n.errors,e))){let t=s(w(n.errors,e),c.argA,c.argB);l&&D(n.errors,e,t),Ie(n.errors,e)}if((_.touchedFields||b.touchedFields)&&u&&Array.isArray(w(n.touchedFields,e))){let t=s(w(n.touchedFields,e),c.argA,c.argB);l&&D(n.touchedFields,e,t)}(_.dirtyFields||b.dirtyFields)&&te(e),C.state.next({name:e,isDirty:U(e,i),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else D(a,e,i)},ie=(e,t)=>{D(n.errors,e,t),C.state.next({errors:n.errors})},ae=e=>{n.errors=e,C.state.next({errors:n.errors,isValid:!1})},oe=(e,t,n,s)=>{let c=w(r,e);if(c){let r=w(a,e,x(n)?w(i,e):n);x(r)||s&&s.defaultChecked||t?D(a,e,t?r:we(c._f)):K(e,r),o.mount&&!o.action&&P()}},se=(e,r,a,o,s)=>{let c=!1,l=!1,u={name:e};if(!t.disabled){if(!a||o){(_.isDirty||b.isDirty)&&(l=n.isDirty,n.isDirty=u.isDirty=U(),c=l!==u.isDirty);let t=L(w(i,e),r);l=!!w(n.dirtyFields,e),t?H(n.dirtyFields,e):D(n.dirtyFields,e,!0),u.dirtyFields=n.dirtyFields,c||=(_.dirtyFields||b.dirtyFields)&&l!==!t}if(a){let t=w(n.touchedFields,e);t||(D(n.touchedFields,e,a),u.touchedFields=n.touchedFields,c||=(_.touchedFields||b.touchedFields)&&t!==a)}c&&s&&C.state.next(u)}return c?u:{}},ce=(e,r,i,a)=>{let o=w(n.errors,e),s=(_.isValid||b.isValid)&&T(r)&&n.isValid!==r;if(t.delayError&&i?(c=N(()=>ie(e,i)),c(t.delayError)):(clearTimeout(l),c=null,i?D(n.errors,e,i):H(n.errors,e)),(i?!L(o,i):o)||!z(a)||s){let t={...a,...s&&T(r)?{isValid:r}:{},errors:n.errors,name:e};n={...n,...t},C.state.next(t)}},R=async e=>(F(e,!0),await t.resolver(a,t.context,Ee(e||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),le=async e=>{let{errors:t}=await R(e);if(F(e),e)for(let r of e){let e=w(t,r);e?D(n.errors,r,e):H(n.errors,r)}else n.errors=t;return t},B=async({name:t,eventType:r})=>{if(e.validate){let i=await e.validate({formValues:a,formState:n,name:t,eventType:r});if(m(i))for(let e in i)i[e]&&Ve(`${j}.${e}`,{message:I(i.message)?i.message:``,type:A.validate});else I(i)||!i?Ve(j,{message:i||``,type:A.validate}):Z(j);return i}return!0},V=async({fields:r,onlyCheckValid:i,name:o,eventType:c,context:l={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(l.runRootValidation=!0,!await B({name:o,eventType:c})&&(l.valid=!1,i)))return l.valid;for(let o in r){let u=r[o];if(u){let{_f:r,...d}=u;if(r){let o=s.array.has(r.name),c=u._f&&ke(u._f);c&&_.validatingFields&&F([r.name],!0);let d=await ze(u,s.disabled,a,M,t.shouldUseNativeValidation&&!i,o);if(c&&_.validatingFields&&F([r.name]),d[r.name]&&(l.valid=!1,i)||(!i&&(w(d,r.name)?o?Le(n.errors,d,r.name):D(n.errors,r.name,d[r.name]):H(n.errors,r.name)),e.shouldUseNativeValidation&&d[r.name]))break}!z(d)&&await V({context:l,onlyCheckValid:i,fields:d,name:o,eventType:c})}}return l.valid},ve=()=>{for(let e of s.unMount){let t=w(r,e);t&&(t._f.refs?t._f.refs.every(e=>!_e(e)):!_e(t._f.ref))&&Ge(e)}s.unMount=new Set},U=(e,n)=>!t.disabled&&(e&&n&&D(a,e,n),!L(Oe(),i)),W=(e,t,n)=>ne(e,s,{...o.mount?a:x(t)?i:I(e)?{[e]:t}:t},n,t),ye=e=>S(w(o.mount?a:i,e,t.shouldUnregister?w(i,e,[]):[])),K=(e,t,n={})=>{let i=w(r,e),o=t;if(i){let n=i._f;n&&(!n.disabled&&D(a,e,xe(t,n)),o=me(n.ref)&&f(t)?``:t,he(n.ref)?[...n.ref.options].forEach(e=>e.selected=o.includes(e.value)):n.refs?u(n.ref)?n.refs.forEach(e=>{(!e.defaultChecked||!e.disabled)&&(Array.isArray(o)?e.checked=!!o.find(t=>t===e.value):e.checked=o===e.value||!!o)}):n.refs.forEach(e=>e.checked=e.value===o):pe(n.ref)?n.ref.value=``:(n.ref.value=o,n.ref.type||C.state.next({name:e,values:y(a)})))}(n.shouldDirty||n.shouldTouch)&&se(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&J(e)},be=(e,t,n)=>{for(let i in t){if(!t.hasOwnProperty(i))return;let a=t[i],o=e+`.`+i,c=w(r,o);(s.array.has(e)||m(a)||c&&!c._f)&&!d(a)?be(o,a,n):K(o,a,n)}},q=(e,t,i={})=>{let c=w(r,e),l=s.array.has(e),u=y(t);D(a,e,u),l?(C.array.next({name:e,values:y(a)}),(_.isDirty||_.dirtyFields||b.isDirty||b.dirtyFields)&&i.shouldDirty&&(te(e),C.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:U(e,u)}))):c&&!c._f&&!f(u)?be(e,u,i):K(e,u,i),je(e,s)?C.state.next({...n,name:e,values:y(a)}):C.state.next({name:o.mount?e:void 0,values:y(a)})},Se=async i=>{o.mount=!0;let l=i.target,u=l.name,f=!0,p=w(r,u),m=e=>{f=Number.isNaN(e)||d(e)&&isNaN(e.getTime())||L(e,w(a,u,e))},g=De(t.mode),v=De(t.reValidateMode);if(p){let o,d,x=l.type?we(p._f):h(i),S=i.type===O.BLUR||i.type===O.FOCUS_OUT,T=!Ae(p._f)&&!e.validate&&!t.resolver&&!w(n.errors,u)&&!p._f.deps||Fe(S,w(n.touchedFields,u),n.isSubmitted,v,g),E=je(u,s,S);D(a,u,x),S?(!l||!l.readOnly)&&(p._f.onBlur&&p._f.onBlur(i),c&&c(0)):p._f.onChange&&p._f.onChange(i);let k=se(u,x,S),A=!z(k)||E;if(!S&&C.state.next({name:u,type:i.type,values:y(a)}),T)return(_.isValid||b.isValid)&&(t.mode===`onBlur`?S&&P():S||P()),A&&C.state.next({name:u,...E?{}:k});if(!t.resolver&&e.validate&&await B({name:u,eventType:i.type}),!S&&E&&C.state.next({...n}),t.resolver){let{errors:e}=await R([u]);if(F([u]),m(x),f){let t=Me(n.errors,r,u),i=Me(e,r,t.name||u);o=i.error,u=i.name,d=z(e)}}else F([u],!0),o=(await ze(p,s.disabled,a,M,t.shouldUseNativeValidation))[u],F([u]),m(x),f&&(o?d=!1:(_.isValid||b.isValid)&&(d=await V({fields:r,onlyCheckValid:!0,name:u,eventType:i.type})));f&&(p._f.deps&&(!Array.isArray(p._f.deps)||p._f.deps.length>0)&&J(p._f.deps),ce(u,d,o,k))}},Ce=(e,t)=>{if(w(n.errors,t)&&e.focus)return e.focus(),1},J=async(e,i={})=>{let a,o,c=ue(e);if(t.resolver){let t=await le(x(e)?e:c);a=z(t),o=e?!c.some(e=>w(t,e)):a}else e?(o=(await Promise.all(c.map(async e=>{let t=w(r,e);return await V({fields:t&&t._f?{[e]:t}:t,eventType:O.TRIGGER})}))).every(Boolean),!(!o&&!n.isValid)&&P()):o=a=await V({fields:r,name:e,eventType:O.TRIGGER});return C.state.next({...!I(e)||(_.isValid||b.isValid)&&a!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:a}:{},errors:n.errors}),i.shouldFocus&&!o&&X(r,Ce,e?c:s.mount),o},Oe=(e,t)=>{let r={...o.mount?a:i};return t&&(r=fe(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),x(e)?r:I(e)?w(r,e):e.map(e=>w(r,e))},Re=(e,t)=>({invalid:!!w((t||n).errors,e),isDirty:!!w((t||n).dirtyFields,e),error:w((t||n).errors,e),isValidating:!!w(n.validatingFields,e),isTouched:!!w((t||n).touchedFields,e)}),Z=e=>{let t=e?ue(e):void 0;t?.forEach(e=>H(n.errors,e)),t?t.forEach(e=>{C.state.next({name:e,errors:n.errors})}):C.state.next({errors:{}})},Ve=(e,t,i)=>{let a=(w(r,e,{_f:{}})._f||{}).ref,{ref:o,message:s,type:c,...l}=w(n.errors,e)||{};D(n.errors,e,{...l,...t,ref:a}),C.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&a&&a.focus&&a.focus()},He=(e,t)=>E(e)?C.state.subscribe({next:n=>`values`in n&&e(W(void 0,t),n)}):W(e,t,!0),Ue=e=>C.state.subscribe({next:t=>{Pe(e.name,t.name,e.exact)&&Ne(t,e.formState||_,et,e.reRenderRoot)&&e.callback({values:{...a},...n,...t,defaultValues:i})}}).unsubscribe,We=e=>(o.mount=!0,b={...b,...e.formState},Ue({...e,formState:{...p,...e.formState}})),Ge=(e,o={})=>{for(let c of e?ue(e):s.mount)s.mount.delete(c),s.array.delete(c),o.keepValue||(H(r,c),H(a,c)),!o.keepError&&H(n.errors,c),!o.keepDirty&&H(n.dirtyFields,c),!o.keepTouched&&H(n.touchedFields,c),!o.keepIsValidating&&H(n.validatingFields,c),!t.shouldUnregister&&!o.keepDefaultValue&&H(i,c);C.state.next({values:y(a)}),C.state.next({...n,...o.keepDirty?{isDirty:U()}:{}}),!o.keepIsValid&&P()},Ke=({disabled:e,name:t})=>{if(T(e)&&o.mount||e||s.disabled.has(t)){let n=s.disabled.has(t)!==!!e;e?s.disabled.add(t):s.disabled.delete(t),n&&o.mount&&!o.action&&P()}},qe=(e,n={})=>{let a=w(r,e),c=T(n.disabled)||T(t.disabled),l=!s.registerName.has(e)&&a&&!a._f.mount;return D(r,e,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...n}}),s.mount.add(e),a&&!l?Ke({disabled:T(n.disabled)?n.disabled:t.disabled,name:e}):oe(e,!0,n.value),{...c?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:Y(n.min),max:Y(n.max),minLength:Y(n.minLength),maxLength:Y(n.maxLength),pattern:Y(n.pattern)}:{},name:e,onChange:Se,onBlur:Se,ref:c=>{if(c){s.registerName.add(e),qe(e,n),s.registerName.delete(e),a=w(r,e);let t=x(c.value)&&c.querySelectorAll&&c.querySelectorAll(`input,select,textarea`)[0]||c,o=ge(t),l=a._f.refs||[];if(o?l.find(e=>e===t):t===a._f.ref)return;D(r,e,{_f:{...a._f,...o?{refs:[...l.filter(_e),t,...Array.isArray(w(i,e))?[{}]:[]],ref:{type:t.type,name:e}}:{ref:t}}}),oe(e,!1,void 0,t)}else a=w(r,e,{}),a._f&&(a._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&!(g(s.array,e)&&o.action)&&s.unMount.add(e)}}},Je=()=>t.shouldFocusError&&X(r,Ce,s.mount),Ye=e=>{T(e)&&(C.state.next({disabled:e}),X(r,(t,n)=>{let i=w(r,n);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0,!1))},Xe=(e,i)=>async o=>{let c;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let l=y(a);if(C.state.next({isSubmitting:!0}),t.resolver){let{errors:e,values:t}=await R();F(),n.errors=e,l=y(t)}else await V({fields:r,eventType:O.SUBMIT});if(s.disabled.size)for(let e of s.disabled)H(l,e);if(H(n.errors,ee),z(n.errors)){C.state.next({errors:{}});try{await e(l,o)}catch(e){c=e}}else i&&await i({...n.errors},o),Je(),setTimeout(Je);if(C.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:z(n.errors)&&!c,submitCount:n.submitCount+1,errors:n.errors}),c)throw c},Ze=(e,t={})=>{w(r,e)&&(x(t.defaultValue)?q(e,y(w(i,e))):(q(e,t.defaultValue),D(i,e,y(t.defaultValue))),t.keepTouched||H(n.touchedFields,e),t.keepDirty||(H(n.dirtyFields,e),n.isDirty=t.defaultValue?U(e,y(w(i,e))):U()),t.keepError||(H(n.errors,e),_.isValid&&P()),C.state.next({...n}))},Q=(e,c={})=>{let l=e?y(e):i,u=y(l),d=z(e),f=d?i:u;if(c.keepDefaultValues||(i=l),!c.keepValues){if(c.keepDirtyValues){let e=new Set([...s.mount,...Object.keys(G(i,a))]);for(let t of Array.from(e)){let e=w(n.dirtyFields,t),r=w(a,t),i=w(f,t);e&&!x(r)?D(f,t,r):!e&&!x(i)&&q(t,i)}}else{if(v&&x(e))for(let e of s.mount){let t=w(r,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(me(e)){let t=e.closest(`form`);if(t){t.reset();break}}}}if(c.keepFieldsRef)for(let e of s.mount)q(e,w(f,e));else r={}}a=t.shouldUnregister?c.keepDefaultValues?y(i):{}:y(f),C.array.next({values:{...f}}),C.state.next({values:{...f}})}s={mount:c.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:``},o.mount=!_.isValid||!!c.keepIsValid||!!c.keepDirtyValues||!t.shouldUnregister&&!z(f),o.watch=!!t.shouldUnregister,o.keepIsValid=!!c.keepIsValid,o.action=!1,c.keepErrors||(n.errors={}),C.state.next({submitCount:c.keepSubmitCount?n.submitCount:0,isDirty:d?!1:c.keepDirty?n.isDirty:!!(c.keepDefaultValues&&!L(e,i)),isSubmitted:c.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:d?{}:c.keepDirtyValues?c.keepDefaultValues&&a?G(i,a):n.dirtyFields:c.keepDefaultValues&&e?G(i,e):c.keepDirty?n.dirtyFields:{},touchedFields:c.keepTouched?n.touchedFields:{},errors:c.keepErrors?n.errors:{},isSubmitSuccessful:c.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},Qe=(e,n)=>Q(E(e)?e(a):e,{...t.resetOptions,...n}),$e=(e,t={})=>{let n=w(r,e),i=n&&n._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&E(e.select)&&e.select()})}},et=e=>{n={...n,...e}},$={control:{register:qe,unregister:Ge,getFieldState:Re,handleSubmit:Xe,setError:Ve,_subscribe:Ue,_runSchema:R,_updateIsValidating:F,_focusError:Je,_getWatch:W,_getDirty:U,_setValid:P,_setFieldArray:re,_setDisabledField:Ke,_setErrors:ae,_getFieldArray:ye,_reset:Q,_resetDefaultValues:()=>E(t.defaultValues)&&t.defaultValues().then(e=>{Qe(e,t.resetOptions),C.state.next({isLoading:!1})}),_removeUnmounted:ve,_disableForm:Ye,_subjects:C,_proxyFormState:_,get _fields(){return r},get _formValues(){return a},get _state(){return o},set _state(e){o=e},get _defaultValues(){return i},get _names(){return s},set _names(e){s=e},get _formState(){return n},get _options(){return t},set _options(e){t={...t,...e}}},subscribe:We,trigger:J,register:qe,handleSubmit:Xe,watch:He,setValue:q,getValues:Oe,reset:Qe,resetField:Ze,clearErrors:Z,unregister:Ge,setError:Ve,setFocus:$e,getFieldState:Re};return{...$,formControl:$}}function He(e={}){let t=l.useRef(void 0),n=l.useRef(void 0),[r,i]=l.useState({isDirty:!1,isValidating:!1,isLoading:E(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:E(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!E(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...i}=Ve(e);t.current={...i,formState:r}}let a=t.current.control;return a._options=e,F(()=>{let e=a._subscribe({formState:a._proxyFormState,callback:()=>i({...a._formState}),reRenderRoot:!0});return i(e=>({...e,isReady:!0})),a._formState.isReady=!0,e},[a]),l.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),l.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),l.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),l.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),l.useEffect(()=>{if(a._proxyFormState.isDirty){let e=a._getDirty();e!==r.isDirty&&a._subjects.state.next({isDirty:e})}},[a,r.isDirty]),l.useEffect(()=>{e.values&&!L(e.values,n.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),a._options.resetOptions?.keepIsValid||a._setValid(),n.current=e.values,i(e=>({...e}))):a._resetDefaultValues()},[a,e.values]),l.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=l.useMemo(()=>P(r,a),[a,r]),t.current}var Ue=(e,t,n)=>{if(e&&`reportValidity`in e){let r=w(n,t);e.setCustomValidity(r&&r.message||``),e.reportValidity()}},We=(e,t)=>{for(let n in t.fields){let r=t.fields[n];r&&r.ref&&`reportValidity`in r.ref?Ue(r.ref,n,e):r&&r.refs&&r.refs.forEach(t=>Ue(t,n,e))}},Ge=(e,t)=>{t.shouldUseNativeValidation&&We(e,t);let n={};for(let r in e){let i=w(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if(Ke(t.names||Object.keys(e),r)){let e=Object.assign({},w(n,r));D(e,`root`,a),D(n,r,e)}else D(n,r,a)}return n},Ke=(e,t)=>{let n=qe(t);return e.some(e=>qe(e).match(`^${n}\\.\\d+`))};function qe(e){return e.replace(/\]|\[/g,``)}function Je(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}function Ye(e,t){for(var n={};e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(`.`);if(!n[o])if(`unionErrors`in r){var s=r.unionErrors[0].errors[0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if(`unionErrors`in r&&r.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=le(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()}return n}function Xe(e,t){for(var n={};e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(`.`);if(!n[o])if(r.code===`invalid_union`&&r.errors.length>0){var s=r.errors[0][0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if(r.code===`invalid_union`&&r.errors.forEach(function(t){return t.forEach(function(t){return e.push(t)})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=le(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()}return n}function Ze(e,t,n){if(n===void 0&&(n={}),function(e){return`_def`in e&&typeof e._def==`object`&&`typeName`in e._def}(e))return function(r,i,a){try{return Promise.resolve(Je(function(){return Promise.resolve(e[n.mode===`sync`?`parse`:`parseAsync`](r,t)).then(function(e){return a.shouldUseNativeValidation&&We({},a),{errors:{},values:n.raw?Object.assign({},r):e}})},function(e){if(function(e){return Array.isArray(e?.issues)}(e))return{values:{},errors:Ge(Ye(e.errors,!a.shouldUseNativeValidation&&a.criteriaMode===`all`),a)};throw e}))}catch(e){return Promise.reject(e)}};if(function(e){return`_zod`in e&&typeof e._zod==`object`}(e))return function(r,i,a){try{return Promise.resolve(Je(function(){return Promise.resolve((n.mode===`sync`?s:c)(e,r,t)).then(function(e){return a.shouldUseNativeValidation&&We({},a),{errors:{},values:n.raw?Object.assign({},r):e}})},function(e){if(function(e){return e instanceof o}(e))return{values:{},errors:Ge(Xe(e.issues,!a.shouldUseNativeValidation&&a.criteriaMode===`all`),a)};throw e}))}catch(e){return Promise.reject(e)}};throw Error(`Invalid input: not a Zod schema`)}var Q=n(),Qe=R,$e=l.createContext({}),et=({...e})=>(0,Q.jsx)($e.Provider,{value:{name:e.name},children:(0,Q.jsx)(oe,{...e})}),$=()=>{let e=l.useContext($e),t=l.useContext(tt),{getFieldState:n}=ce(),r=te({name:e.name}),i=n(e.name,r);if(!e)throw Error(`useFormField should be used within `);let{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...i}},tt=l.createContext({});function nt({className:e,...t}){let n=l.useId();return(0,Q.jsx)(tt.Provider,{value:{id:n},children:(0,Q.jsx)(`div`,{className:r(`grid gap-2`,e),"data-slot":`form-item`,...t})})}function rt({className:e,...t}){let{error:n,formItemId:i}=$();return(0,Q.jsx)(a,{className:r(`data-[error=true]:text-destructive`,e),"data-error":!!n,"data-slot":`form-label`,htmlFor:i,...t})}function it({...e}){let{error:t,formItemId:n,formDescriptionId:r,formMessageId:a}=$();return(0,Q.jsx)(i,{"aria-describedby":t?`${r} ${a}`:`${r}`,"aria-invalid":!!t,"data-slot":`form-control`,id:n,...e})}function at({className:e,...t}){let{formDescriptionId:n}=$();return(0,Q.jsx)(`p`,{className:r(`text-muted-foreground text-sm`,e),"data-slot":`form-description`,id:n,...t})}function ot({className:e,...t}){let{error:n,formMessageId:i}=$(),a=n?String(n?.message??``):t.children;return a?(0,Q.jsx)(`p`,{className:r(`text-destructive text-sm`,e),"data-slot":`form-message`,id:i,...t,children:a}):null}export{nt as a,Ze as c,et as i,He as l,it as n,rt as o,at as r,ot as s,Qe as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";import{i as r,o as i}from"./button-NLSeBFht.js";import{t as a}from"./label-DohxFN8a.js";import{d as o,l as s,u as c}from"./zod-rwFXxHlg.js";var l=e(t(),1),u=e=>e.type===`checkbox`,d=e=>e instanceof Date,f=e=>e==null,p=e=>typeof e==`object`,m=e=>!f(e)&&!Array.isArray(e)&&p(e)&&!d(e),h=e=>m(e)&&e.target?u(e.target)?e.target.checked:e.target.value:e,g=(e,t)=>t.split(`.`).some((t,n,r)=>!isNaN(Number(t))&&e.has(r.slice(0,n).join(`.`))),_=e=>{let t=e.constructor&&e.constructor.prototype;return m(t)&&t.hasOwnProperty(`isPrototypeOf`)},v=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;function y(e){if(e instanceof Date)return new Date(e);let t=typeof FileList<`u`&&e instanceof FileList;if(v&&(e instanceof Blob||t))return e;let n=Array.isArray(e);if(!n&&!(m(e)&&_(e)))return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=y(e[t]));return r}var b=e=>/^\w*$/.test(e),x=e=>e===void 0,S=e=>Array.isArray(e)?e.filter(Boolean):[],C=e=>S(e.replace(/["|']|\]/g,``).split(/\.|\[/)),w=(e,t,n)=>{if(!t||!m(e))return n;let r=(b(t)?[t]:C(t)).reduce((e,t)=>f(e)?e:e[t],e);return x(r)||r===e?x(e[t])?n:e[t]:r},T=e=>typeof e==`boolean`,E=e=>typeof e==`function`,D=(e,t,n)=>{let r=-1,i=b(t)?[t]:C(t),a=i.length,o=a-1;for(;++rl.useContext(M),P=(e,t,n,r=!0)=>{let i={defaultValues:t._defaultValues};for(let a in e)Object.defineProperty(i,a,{get:()=>{let i=a;return t._proxyFormState[i]!==k.all&&(t._proxyFormState[i]=!r||k.all),n&&(n[i]=!0),e[i]}});return i},F=typeof window<`u`?l.useLayoutEffect:l.useEffect;function te(e){let t=N(),{control:n=t,disabled:r,name:i,exact:a}=e||{},[o,s]=l.useState(n._formState),c=l.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return F(()=>n._subscribe({name:i,formState:c.current,exact:a,callback:e=>{!r&&s({...n._formState,...e})}}),[i,r,a]),l.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),l.useMemo(()=>P(o,n,c.current,!1),[o,n])}var I=e=>typeof e==`string`,ne=(e,t,n,r,i)=>I(e)?(r&&t.watch.add(e),w(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),w(n,e))):(r&&(t.watchAll=!0),n),re=e=>f(e)||!p(e);function L(e,t,n=new WeakSet){if(re(e)||re(t))return Object.is(e,t);if(d(e)&&d(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(let a of r){let r=e[a];if(!i.includes(a))return!1;if(a!==`ref`){let e=t[a];if(d(r)&&d(e)||(m(r)||Array.isArray(r))&&(m(e)||Array.isArray(e))?!L(r,e,n):!Object.is(r,e))return!1}}return!0}function ie(e){let t=N(),{control:n=t,name:r,defaultValue:i,disabled:a,exact:o,compute:s}=e||{},c=l.useRef(i),u=l.useRef(s),d=l.useRef(void 0),f=l.useRef(n),p=l.useRef(r);u.current=s;let[m,h]=l.useState(()=>{let e=n._getWatch(r,c.current);return u.current?u.current(e):e}),g=l.useCallback(e=>{let t=ne(r,n._names,e||n._formValues,!1,c.current);return u.current?u.current(t):t},[n._formValues,n._names,r]),_=l.useCallback(e=>{if(!a){let t=ne(r,n._names,e||n._formValues,!1,c.current);if(u.current){let e=u.current(t);L(e,d.current)||(h(e),d.current=e)}else h(t)}},[n._formValues,n._names,a,r]);F(()=>((f.current!==n||!L(p.current,r))&&(f.current=n,p.current=r,_()),n._subscribe({name:r,formState:{values:!0},exact:o,callback:e=>{_(e.values)}})),[n,o,r,_]),l.useEffect(()=>n._removeUnmounted());let v=f.current!==n,y=p.current,b=l.useMemo(()=>{if(a)return null;let e=!v&&!L(y,r);return v||e?g():null},[a,v,r,y,g]);return b===null?m:b}function ae(e){let t=N(),{name:n,disabled:r,control:i=t,shouldUnregister:a,defaultValue:o,exact:s=!0}=e,c=g(i._names.array,n),u=ie({control:i,name:n,defaultValue:l.useMemo(()=>w(i._formValues,n,w(i._defaultValues,n,o)),[i,n,o]),exact:s}),d=te({control:i,name:n,exact:s}),f=l.useRef(e),p=l.useRef(void 0),m=l.useRef(i.register(n,{...e.rules,value:u,...T(e.disabled)?{disabled:e.disabled}:{}}));f.current=e;let _=l.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!w(d.errors,n)},isDirty:{enumerable:!0,get:()=>!!w(d.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!w(d.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!w(d.validatingFields,n)},error:{enumerable:!0,get:()=>w(d.errors,n)}}),[d,n]),v=l.useCallback(e=>m.current.onChange({target:{value:h(e),name:n},type:O.CHANGE}),[n]),b=l.useCallback(()=>m.current.onBlur({target:{value:w(i._formValues,n),name:n},type:O.BLUR}),[n,i._formValues]),S=l.useCallback(e=>{let t=w(i._fields,n);t&&t._f&&e&&(t._f.ref={focus:()=>E(e.focus)&&e.focus(),select:()=>E(e.select)&&e.select(),setCustomValidity:t=>E(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>E(e.reportValidity)&&e.reportValidity()})},[i._fields,n]),C=l.useMemo(()=>({name:n,value:u,...T(r)||d.disabled?{disabled:d.disabled||r}:{},onChange:v,onBlur:b,ref:S}),[n,r,d.disabled,v,b,S,u]);return l.useEffect(()=>{let e=i._options.shouldUnregister||a,t=p.current;t&&t!==n&&!c&&i.unregister(t),i.register(n,{...f.current.rules,...T(f.current.disabled)?{disabled:f.current.disabled}:{}});let r=(e,t)=>{let n=w(i._fields,e);n&&n._f&&(n._f.mount=t)};if(r(n,!0),e){let e=y(w(i._options.defaultValues,n,f.current.defaultValue));D(i._defaultValues,n,e),x(w(i._formValues,n))&&D(i._formValues,n,e)}return!c&&i.register(n),p.current=n,()=>{(c?e&&!i._state.action:e)?i.unregister(n):r(n,!1)}},[n,i,c,a]),l.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),l.useMemo(()=>({field:C,formState:d,fieldState:_}),[C,d,_])}var oe=e=>e.render(ae(e)),se=l.createContext(null);se.displayName=`HookFormContext`;var ce=()=>l.useContext(se),R=e=>{let{children:t,watch:n,getValues:r,getFieldState:i,setError:a,clearErrors:o,setValue:s,trigger:c,formState:u,resetField:d,reset:f,handleSubmit:p,unregister:m,control:h,register:g,setFocus:_,subscribe:v}=e,y=l.useMemo(()=>({watch:n,getValues:r,getFieldState:i,setError:a,clearErrors:o,setValue:s,trigger:c,formState:u,resetField:d,reset:f,handleSubmit:p,unregister:m,control:h,register:g,setFocus:_,subscribe:v}),[o,h,u,i,r,p,g,f,d,a,_,s,v,c,m,n]);return l.createElement(se.Provider,{value:y},l.createElement(M.Provider,{value:y.control},t))},le=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},ue=e=>Array.isArray(e)?e:[e],de=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function fe(e,t){let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],a=t[r];if(i&&m(i)&&a){let e=fe(i,a);m(e)&&(n[r]=e)}else e[r]&&(n[r]=a)}return n}var z=e=>m(e)&&!Object.keys(e).length,pe=e=>e.type===`file`,me=e=>{if(!v)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},he=e=>e.type===`select-multiple`,B=e=>e.type===`radio`,ge=e=>B(e)||u(e),_e=e=>me(e)&&e.isConnected;function V(e,t){let n=t.slice(0,-1).length,r=0;for(;r{for(let t in e)if(E(e[t]))return!0;return!1};function W(e){return Array.isArray(e)||m(e)&&!U(e)}function ye(e,t={}){for(let n in e){let r=e[n];W(r)?(t[n]=Array.isArray(r)?[]:{},ye(r,t[n])):x(r)||(t[n]=!0)}return t}function G(e,t,n){n||=ye(t);for(let r in e){let i=e[r];if(W(i))x(t)||re(n[r])?n[r]=ye(i,Array.isArray(i)?[]:{}):G(i,f(t)?{}:t[r],n[r]);else{let e=t[r];n[r]=!L(i,e)}}return n}var K={value:!1,isValid:!1},be={value:!0,isValid:!0},q=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!x(e[0].attributes.value)?x(e[0].value)||e[0].value===``?be:{value:e[0].value,isValid:!0}:be:K}return K},xe=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>x(e)?e:t?e===``?NaN:e&&+e:n&&I(e)?new Date(e):r?r(e):e,Se={isValid:!1,value:null},Ce=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,Se):Se;function we(e){let t=e.ref;return pe(t)?t.files:B(t)?Ce(e.refs).value:he(t)?[...t.selectedOptions].map(({value:e})=>e):u(t)?q(e.refs).value:xe(x(t.value)?e.ref.value:t.value,e)}var Te=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Ee=(e,t,n,r)=>{let i={};for(let n of e){let e=w(t,n);e&&D(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},J=e=>e instanceof RegExp,Y=e=>x(e)?e:J(e)?e.source:m(e)?J(e.value)?e.value.source:e.value:e,De=e=>({isOnSubmit:!e||e===k.onSubmit,isOnBlur:e===k.onBlur,isOnChange:e===k.onChange,isOnAll:e===k.all,isOnTouch:e===k.onTouched}),Oe=`AsyncFunction`,ke=e=>!!e&&!!e.validate&&!!(E(e.validate)&&e.validate.constructor.name===Oe||m(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===Oe)),Ae=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),je=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),X=(e,t,n,r)=>{for(let i of n||Object.keys(e)){let n=w(e,i);if(n){let{_f:e,...a}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r||e.ref&&t(e.ref,e.name)&&!r)return!0;if(X(a,t))break}else if(m(a)&&X(a,t))break}}};function Me(e,t,n){let r=w(e,n);if(r||b(n))return{error:r,name:n};let i=n.split(`.`);for(;i.length;){let r=i.join(`.`),a=w(t,r),o=w(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};if(o&&o.root&&o.root.type)return{name:`${r}.root`,error:o.root};i.pop()}return{name:n}}var Ne=(e,t,n,r)=>{n(e);let{name:i,...a}=e;return z(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!r||k.all))},Pe=(e,t,n)=>!e||!t||e===t||ue(e).some(e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))),Fe=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,Ie=(e,t)=>!S(w(e,t)).length&&H(e,t),Le=(e,t,n)=>{let r=ue(w(e,n));return D(r,ee,t[n]),D(e,n,r),e};function Re(e,t,n=`validate`){if(I(e)||Array.isArray(e)&&e.every(I)||T(e)&&!e)return{type:n,message:I(e)?e:``,ref:t}}var Z=e=>m(e)&&!J(e)?e:{value:e,message:``},ze=async(e,t,n,r,i,a)=>{let{ref:o,refs:s,required:c,maxLength:l,minLength:d,min:p,max:h,pattern:g,validate:_,name:v,valueAsNumber:y,mount:b}=e._f,S=w(n,v);if(!b||t.has(v))return{};let C=s?s[0]:o,D=e=>{i&&C.reportValidity&&(C.setCustomValidity(T(e)?``:e||``),C.reportValidity())},O={},k=B(o),j=u(o),ee=k||j,M=(y||pe(o))&&x(o.value)&&x(S)||me(o)&&o.value===``||S===``||Array.isArray(S)&&!S.length,N=le.bind(null,v,r,O),P=(e,t,n,r=A.maxLength,i=A.minLength)=>{let a=e?t:n;O[v]={type:e?r:i,message:a,ref:o,...N(e?r:i,a)}};if(a?!Array.isArray(S)||!S.length:c&&(!ee&&(M||f(S))||T(S)&&!S||j&&!q(s).isValid||k&&!Ce(s).isValid)){let{value:e,message:t}=I(c)?{value:!!c,message:c}:Z(c);if(e&&(O[v]={type:A.required,message:t,ref:C,...N(A.required,t)},!r))return D(t),O}if(!M&&(!f(p)||!f(h))){let e,t,n=Z(h),i=Z(p);if(!f(S)&&!isNaN(S)){let r=o.valueAsNumber||S&&+S;f(n.value)||(e=r>n.value),f(i.value)||(t=rnew Date(new Date().toDateString()+` `+e),s=o.type==`time`,c=o.type==`week`;I(n.value)&&S&&(e=s?a(S)>a(n.value):c?S>n.value:r>new Date(n.value)),I(i.value)&&S&&(t=s?a(S)+e.value,i=!f(t.value)&&S.length<+t.value;if((n||i)&&(P(n,e.message,t.message),!r))return D(O[v].message),O}if(g&&!M&&I(S)){let{value:e,message:t}=Z(g);if(J(e)&&!S.match(e)&&(O[v]={type:A.pattern,message:t,ref:o,...N(A.pattern,t)},!r))return D(t),O}if(_){if(E(_)){let e=Re(await _(S,n),C);if(e&&(O[v]={...e,...N(A.validate,e.message)},!r))return D(e.message),O}else if(m(_)){let e={};for(let t in _){if(!z(e)&&!r)break;let i=Re(await _[t](S,n),C,t);i&&(e={...i,...N(t,i.message)},D(i.message),r&&(O[v]=e))}if(!z(e)&&(O[v]={ref:C,...e},!r))return O}}return D(!0),O},Be={mode:k.onSubmit,reValidateMode:k.onChange,shouldFocusError:!0};function Ve(e={}){let t={...Be,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:E(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=(m(t.defaultValues)||m(t.values))&&y(t.defaultValues||t.values)||{},a=t.shouldUnregister?{}:y(i),o={action:!1,mount:!1,watch:!1,keepIsValid:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},c,l=0,p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},_={...p},b={..._},C={array:de(),state:de()},M=t.criteriaMode===k.all,N=e=>t=>{clearTimeout(l),l=setTimeout(e,t)},P=async e=>{if(!o.keepIsValid&&!t.disabled&&(_.isValid||b.isValid||e)){let e;t.resolver?(e=z((await R()).errors),F()):e=await V({fields:r,onlyCheckValid:!0,eventType:O.VALID}),e!==n.isValid&&C.state.next({isValid:e})}},F=(e,r)=>{!t.disabled&&(_.isValidating||_.validatingFields||b.isValidating||b.validatingFields)&&((e||Array.from(s.mount)).forEach(e=>{e&&(r?D(n.validatingFields,e,r):H(n.validatingFields,e))}),C.state.next({validatingFields:n.validatingFields,isValidating:!z(n.validatingFields)}))},te=e=>{let t=G(i,a),r=Te(e);D(n.dirtyFields,r,w(t,r))},re=(e,i=[],s,c,l=!0,u=!0)=>{if(c&&s&&!t.disabled){if(o.action=!0,u&&Array.isArray(w(r,e))){let t=s(w(r,e),c.argA,c.argB);l&&D(r,e,t)}if(u&&Array.isArray(w(n.errors,e))){let t=s(w(n.errors,e),c.argA,c.argB);l&&D(n.errors,e,t),Ie(n.errors,e)}if((_.touchedFields||b.touchedFields)&&u&&Array.isArray(w(n.touchedFields,e))){let t=s(w(n.touchedFields,e),c.argA,c.argB);l&&D(n.touchedFields,e,t)}(_.dirtyFields||b.dirtyFields)&&te(e),C.state.next({name:e,isDirty:U(e,i),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else D(a,e,i)},ie=(e,t)=>{D(n.errors,e,t),C.state.next({errors:n.errors})},ae=e=>{n.errors=e,C.state.next({errors:n.errors,isValid:!1})},oe=(e,t,n,s)=>{let c=w(r,e);if(c){let r=w(a,e,x(n)?w(i,e):n);x(r)||s&&s.defaultChecked||t?D(a,e,t?r:we(c._f)):K(e,r),o.mount&&!o.action&&P()}},se=(e,r,a,o,s)=>{let c=!1,l=!1,u={name:e};if(!t.disabled){if(!a||o){(_.isDirty||b.isDirty)&&(l=n.isDirty,n.isDirty=u.isDirty=U(),c=l!==u.isDirty);let t=L(w(i,e),r);l=!!w(n.dirtyFields,e),t?H(n.dirtyFields,e):D(n.dirtyFields,e,!0),u.dirtyFields=n.dirtyFields,c||=(_.dirtyFields||b.dirtyFields)&&l!==!t}if(a){let t=w(n.touchedFields,e);t||(D(n.touchedFields,e,a),u.touchedFields=n.touchedFields,c||=(_.touchedFields||b.touchedFields)&&t!==a)}c&&s&&C.state.next(u)}return c?u:{}},ce=(e,r,i,a)=>{let o=w(n.errors,e),s=(_.isValid||b.isValid)&&T(r)&&n.isValid!==r;if(t.delayError&&i?(c=N(()=>ie(e,i)),c(t.delayError)):(clearTimeout(l),c=null,i?D(n.errors,e,i):H(n.errors,e)),(i?!L(o,i):o)||!z(a)||s){let t={...a,...s&&T(r)?{isValid:r}:{},errors:n.errors,name:e};n={...n,...t},C.state.next(t)}},R=async e=>(F(e,!0),await t.resolver(a,t.context,Ee(e||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),le=async e=>{let{errors:t}=await R(e);if(F(e),e)for(let r of e){let e=w(t,r);e?D(n.errors,r,e):H(n.errors,r)}else n.errors=t;return t},B=async({name:t,eventType:r})=>{if(e.validate){let i=await e.validate({formValues:a,formState:n,name:t,eventType:r});if(m(i))for(let e in i)i[e]&&Ve(`${j}.${e}`,{message:I(i.message)?i.message:``,type:A.validate});else I(i)||!i?Ve(j,{message:i||``,type:A.validate}):Z(j);return i}return!0},V=async({fields:r,onlyCheckValid:i,name:o,eventType:c,context:l={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(l.runRootValidation=!0,!await B({name:o,eventType:c})&&(l.valid=!1,i)))return l.valid;for(let o in r){let u=r[o];if(u){let{_f:r,...d}=u;if(r){let o=s.array.has(r.name),c=u._f&&ke(u._f);c&&_.validatingFields&&F([r.name],!0);let d=await ze(u,s.disabled,a,M,t.shouldUseNativeValidation&&!i,o);if(c&&_.validatingFields&&F([r.name]),d[r.name]&&(l.valid=!1,i)||(!i&&(w(d,r.name)?o?Le(n.errors,d,r.name):D(n.errors,r.name,d[r.name]):H(n.errors,r.name)),e.shouldUseNativeValidation&&d[r.name]))break}!z(d)&&await V({context:l,onlyCheckValid:i,fields:d,name:o,eventType:c})}}return l.valid},ve=()=>{for(let e of s.unMount){let t=w(r,e);t&&(t._f.refs?t._f.refs.every(e=>!_e(e)):!_e(t._f.ref))&&Ge(e)}s.unMount=new Set},U=(e,n)=>!t.disabled&&(e&&n&&D(a,e,n),!L(Oe(),i)),W=(e,t,n)=>ne(e,s,{...o.mount?a:x(t)?i:I(e)?{[e]:t}:t},n,t),ye=e=>S(w(o.mount?a:i,e,t.shouldUnregister?w(i,e,[]):[])),K=(e,t,n={})=>{let i=w(r,e),o=t;if(i){let n=i._f;n&&(!n.disabled&&D(a,e,xe(t,n)),o=me(n.ref)&&f(t)?``:t,he(n.ref)?[...n.ref.options].forEach(e=>e.selected=o.includes(e.value)):n.refs?u(n.ref)?n.refs.forEach(e=>{(!e.defaultChecked||!e.disabled)&&(Array.isArray(o)?e.checked=!!o.find(t=>t===e.value):e.checked=o===e.value||!!o)}):n.refs.forEach(e=>e.checked=e.value===o):pe(n.ref)?n.ref.value=``:(n.ref.value=o,n.ref.type||C.state.next({name:e,values:y(a)})))}(n.shouldDirty||n.shouldTouch)&&se(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&J(e)},be=(e,t,n)=>{for(let i in t){if(!t.hasOwnProperty(i))return;let a=t[i],o=e+`.`+i,c=w(r,o);(s.array.has(e)||m(a)||c&&!c._f)&&!d(a)?be(o,a,n):K(o,a,n)}},q=(e,t,i={})=>{let c=w(r,e),l=s.array.has(e),u=y(t);D(a,e,u),l?(C.array.next({name:e,values:y(a)}),(_.isDirty||_.dirtyFields||b.isDirty||b.dirtyFields)&&i.shouldDirty&&(te(e),C.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:U(e,u)}))):c&&!c._f&&!f(u)?be(e,u,i):K(e,u,i),je(e,s)?C.state.next({...n,name:e,values:y(a)}):C.state.next({name:o.mount?e:void 0,values:y(a)})},Se=async i=>{o.mount=!0;let l=i.target,u=l.name,f=!0,p=w(r,u),m=e=>{f=Number.isNaN(e)||d(e)&&isNaN(e.getTime())||L(e,w(a,u,e))},g=De(t.mode),v=De(t.reValidateMode);if(p){let o,d,x=l.type?we(p._f):h(i),S=i.type===O.BLUR||i.type===O.FOCUS_OUT,T=!Ae(p._f)&&!e.validate&&!t.resolver&&!w(n.errors,u)&&!p._f.deps||Fe(S,w(n.touchedFields,u),n.isSubmitted,v,g),E=je(u,s,S);D(a,u,x),S?(!l||!l.readOnly)&&(p._f.onBlur&&p._f.onBlur(i),c&&c(0)):p._f.onChange&&p._f.onChange(i);let k=se(u,x,S),A=!z(k)||E;if(!S&&C.state.next({name:u,type:i.type,values:y(a)}),T)return(_.isValid||b.isValid)&&(t.mode===`onBlur`?S&&P():S||P()),A&&C.state.next({name:u,...E?{}:k});if(!t.resolver&&e.validate&&await B({name:u,eventType:i.type}),!S&&E&&C.state.next({...n}),t.resolver){let{errors:e}=await R([u]);if(F([u]),m(x),f){let t=Me(n.errors,r,u),i=Me(e,r,t.name||u);o=i.error,u=i.name,d=z(e)}}else F([u],!0),o=(await ze(p,s.disabled,a,M,t.shouldUseNativeValidation))[u],F([u]),m(x),f&&(o?d=!1:(_.isValid||b.isValid)&&(d=await V({fields:r,onlyCheckValid:!0,name:u,eventType:i.type})));f&&(p._f.deps&&(!Array.isArray(p._f.deps)||p._f.deps.length>0)&&J(p._f.deps),ce(u,d,o,k))}},Ce=(e,t)=>{if(w(n.errors,t)&&e.focus)return e.focus(),1},J=async(e,i={})=>{let a,o,c=ue(e);if(t.resolver){let t=await le(x(e)?e:c);a=z(t),o=e?!c.some(e=>w(t,e)):a}else e?(o=(await Promise.all(c.map(async e=>{let t=w(r,e);return await V({fields:t&&t._f?{[e]:t}:t,eventType:O.TRIGGER})}))).every(Boolean),!(!o&&!n.isValid)&&P()):o=a=await V({fields:r,name:e,eventType:O.TRIGGER});return C.state.next({...!I(e)||(_.isValid||b.isValid)&&a!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:a}:{},errors:n.errors}),i.shouldFocus&&!o&&X(r,Ce,e?c:s.mount),o},Oe=(e,t)=>{let r={...o.mount?a:i};return t&&(r=fe(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),x(e)?r:I(e)?w(r,e):e.map(e=>w(r,e))},Re=(e,t)=>({invalid:!!w((t||n).errors,e),isDirty:!!w((t||n).dirtyFields,e),error:w((t||n).errors,e),isValidating:!!w(n.validatingFields,e),isTouched:!!w((t||n).touchedFields,e)}),Z=e=>{let t=e?ue(e):void 0;t?.forEach(e=>H(n.errors,e)),t?t.forEach(e=>{C.state.next({name:e,errors:n.errors})}):C.state.next({errors:{}})},Ve=(e,t,i)=>{let a=(w(r,e,{_f:{}})._f||{}).ref,{ref:o,message:s,type:c,...l}=w(n.errors,e)||{};D(n.errors,e,{...l,...t,ref:a}),C.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&a&&a.focus&&a.focus()},He=(e,t)=>E(e)?C.state.subscribe({next:n=>`values`in n&&e(W(void 0,t),n)}):W(e,t,!0),Ue=e=>C.state.subscribe({next:t=>{Pe(e.name,t.name,e.exact)&&Ne(t,e.formState||_,et,e.reRenderRoot)&&e.callback({values:{...a},...n,...t,defaultValues:i})}}).unsubscribe,We=e=>(o.mount=!0,b={...b,...e.formState},Ue({...e,formState:{...p,...e.formState}})),Ge=(e,o={})=>{for(let c of e?ue(e):s.mount)s.mount.delete(c),s.array.delete(c),o.keepValue||(H(r,c),H(a,c)),!o.keepError&&H(n.errors,c),!o.keepDirty&&H(n.dirtyFields,c),!o.keepTouched&&H(n.touchedFields,c),!o.keepIsValidating&&H(n.validatingFields,c),!t.shouldUnregister&&!o.keepDefaultValue&&H(i,c);C.state.next({values:y(a)}),C.state.next({...n,...o.keepDirty?{isDirty:U()}:{}}),!o.keepIsValid&&P()},Ke=({disabled:e,name:t})=>{if(T(e)&&o.mount||e||s.disabled.has(t)){let n=s.disabled.has(t)!==!!e;e?s.disabled.add(t):s.disabled.delete(t),n&&o.mount&&!o.action&&P()}},qe=(e,n={})=>{let a=w(r,e),c=T(n.disabled)||T(t.disabled),l=!s.registerName.has(e)&&a&&!a._f.mount;return D(r,e,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...n}}),s.mount.add(e),a&&!l?Ke({disabled:T(n.disabled)?n.disabled:t.disabled,name:e}):oe(e,!0,n.value),{...c?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:Y(n.min),max:Y(n.max),minLength:Y(n.minLength),maxLength:Y(n.maxLength),pattern:Y(n.pattern)}:{},name:e,onChange:Se,onBlur:Se,ref:c=>{if(c){s.registerName.add(e),qe(e,n),s.registerName.delete(e),a=w(r,e);let t=x(c.value)&&c.querySelectorAll&&c.querySelectorAll(`input,select,textarea`)[0]||c,o=ge(t),l=a._f.refs||[];if(o?l.find(e=>e===t):t===a._f.ref)return;D(r,e,{_f:{...a._f,...o?{refs:[...l.filter(_e),t,...Array.isArray(w(i,e))?[{}]:[]],ref:{type:t.type,name:e}}:{ref:t}}}),oe(e,!1,void 0,t)}else a=w(r,e,{}),a._f&&(a._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&!(g(s.array,e)&&o.action)&&s.unMount.add(e)}}},Je=()=>t.shouldFocusError&&X(r,Ce,s.mount),Ye=e=>{T(e)&&(C.state.next({disabled:e}),X(r,(t,n)=>{let i=w(r,n);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0,!1))},Xe=(e,i)=>async o=>{let c;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let l=y(a);if(C.state.next({isSubmitting:!0}),t.resolver){let{errors:e,values:t}=await R();F(),n.errors=e,l=y(t)}else await V({fields:r,eventType:O.SUBMIT});if(s.disabled.size)for(let e of s.disabled)H(l,e);if(H(n.errors,ee),z(n.errors)){C.state.next({errors:{}});try{await e(l,o)}catch(e){c=e}}else i&&await i({...n.errors},o),Je(),setTimeout(Je);if(C.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:z(n.errors)&&!c,submitCount:n.submitCount+1,errors:n.errors}),c)throw c},Ze=(e,t={})=>{w(r,e)&&(x(t.defaultValue)?q(e,y(w(i,e))):(q(e,t.defaultValue),D(i,e,y(t.defaultValue))),t.keepTouched||H(n.touchedFields,e),t.keepDirty||(H(n.dirtyFields,e),n.isDirty=t.defaultValue?U(e,y(w(i,e))):U()),t.keepError||(H(n.errors,e),_.isValid&&P()),C.state.next({...n}))},Q=(e,c={})=>{let l=e?y(e):i,u=y(l),d=z(e),f=d?i:u;if(c.keepDefaultValues||(i=l),!c.keepValues){if(c.keepDirtyValues){let e=new Set([...s.mount,...Object.keys(G(i,a))]);for(let t of Array.from(e)){let e=w(n.dirtyFields,t),r=w(a,t),i=w(f,t);e&&!x(r)?D(f,t,r):!e&&!x(i)&&q(t,i)}}else{if(v&&x(e))for(let e of s.mount){let t=w(r,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(me(e)){let t=e.closest(`form`);if(t){t.reset();break}}}}if(c.keepFieldsRef)for(let e of s.mount)q(e,w(f,e));else r={}}a=t.shouldUnregister?c.keepDefaultValues?y(i):{}:y(f),C.array.next({values:{...f}}),C.state.next({values:{...f}})}s={mount:c.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:``},o.mount=!_.isValid||!!c.keepIsValid||!!c.keepDirtyValues||!t.shouldUnregister&&!z(f),o.watch=!!t.shouldUnregister,o.keepIsValid=!!c.keepIsValid,o.action=!1,c.keepErrors||(n.errors={}),C.state.next({submitCount:c.keepSubmitCount?n.submitCount:0,isDirty:d?!1:c.keepDirty?n.isDirty:!!(c.keepDefaultValues&&!L(e,i)),isSubmitted:c.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:d?{}:c.keepDirtyValues?c.keepDefaultValues&&a?G(i,a):n.dirtyFields:c.keepDefaultValues&&e?G(i,e):c.keepDirty?n.dirtyFields:{},touchedFields:c.keepTouched?n.touchedFields:{},errors:c.keepErrors?n.errors:{},isSubmitSuccessful:c.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},Qe=(e,n)=>Q(E(e)?e(a):e,{...t.resetOptions,...n}),$e=(e,t={})=>{let n=w(r,e),i=n&&n._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&E(e.select)&&e.select()})}},et=e=>{n={...n,...e}},$={control:{register:qe,unregister:Ge,getFieldState:Re,handleSubmit:Xe,setError:Ve,_subscribe:Ue,_runSchema:R,_updateIsValidating:F,_focusError:Je,_getWatch:W,_getDirty:U,_setValid:P,_setFieldArray:re,_setDisabledField:Ke,_setErrors:ae,_getFieldArray:ye,_reset:Q,_resetDefaultValues:()=>E(t.defaultValues)&&t.defaultValues().then(e=>{Qe(e,t.resetOptions),C.state.next({isLoading:!1})}),_removeUnmounted:ve,_disableForm:Ye,_subjects:C,_proxyFormState:_,get _fields(){return r},get _formValues(){return a},get _state(){return o},set _state(e){o=e},get _defaultValues(){return i},get _names(){return s},set _names(e){s=e},get _formState(){return n},get _options(){return t},set _options(e){t={...t,...e}}},subscribe:We,trigger:J,register:qe,handleSubmit:Xe,watch:He,setValue:q,getValues:Oe,reset:Qe,resetField:Ze,clearErrors:Z,unregister:Ge,setError:Ve,setFocus:$e,getFieldState:Re};return{...$,formControl:$}}function He(e={}){let t=l.useRef(void 0),n=l.useRef(void 0),[r,i]=l.useState({isDirty:!1,isValidating:!1,isLoading:E(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:E(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!E(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...i}=Ve(e);t.current={...i,formState:r}}let a=t.current.control;return a._options=e,F(()=>{let e=a._subscribe({formState:a._proxyFormState,callback:()=>i({...a._formState}),reRenderRoot:!0});return i(e=>({...e,isReady:!0})),a._formState.isReady=!0,e},[a]),l.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),l.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),l.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),l.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),l.useEffect(()=>{if(a._proxyFormState.isDirty){let e=a._getDirty();e!==r.isDirty&&a._subjects.state.next({isDirty:e})}},[a,r.isDirty]),l.useEffect(()=>{e.values&&!L(e.values,n.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),a._options.resetOptions?.keepIsValid||a._setValid(),n.current=e.values,i(e=>({...e}))):a._resetDefaultValues()},[a,e.values]),l.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=l.useMemo(()=>P(r,a),[a,r]),t.current}var Ue=(e,t,n)=>{if(e&&`reportValidity`in e){let r=w(n,t);e.setCustomValidity(r&&r.message||``),e.reportValidity()}},We=(e,t)=>{for(let n in t.fields){let r=t.fields[n];r&&r.ref&&`reportValidity`in r.ref?Ue(r.ref,n,e):r&&r.refs&&r.refs.forEach(t=>Ue(t,n,e))}},Ge=(e,t)=>{t.shouldUseNativeValidation&&We(e,t);let n={};for(let r in e){let i=w(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if(Ke(t.names||Object.keys(e),r)){let e=Object.assign({},w(n,r));D(e,`root`,a),D(n,r,e)}else D(n,r,a)}return n},Ke=(e,t)=>{let n=qe(t);return e.some(e=>qe(e).match(`^${n}\\.\\d+`))};function qe(e){return e.replace(/\]|\[/g,``)}function Je(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}function Ye(e,t){for(var n={};e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(`.`);if(!n[o])if(`unionErrors`in r){var s=r.unionErrors[0].errors[0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if(`unionErrors`in r&&r.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=le(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()}return n}function Xe(e,t){for(var n={};e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(`.`);if(!n[o])if(r.code===`invalid_union`&&r.errors.length>0){var s=r.errors[0][0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,type:i};if(r.code===`invalid_union`&&r.errors.forEach(function(t){return t.forEach(function(t){return e.push(t)})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=le(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()}return n}function Ze(e,t,n){if(n===void 0&&(n={}),function(e){return`_def`in e&&typeof e._def==`object`&&`typeName`in e._def}(e))return function(r,i,a){try{return Promise.resolve(Je(function(){return Promise.resolve(e[n.mode===`sync`?`parse`:`parseAsync`](r,t)).then(function(e){return a.shouldUseNativeValidation&&We({},a),{errors:{},values:n.raw?Object.assign({},r):e}})},function(e){if(function(e){return Array.isArray(e?.issues)}(e))return{values:{},errors:Ge(Ye(e.errors,!a.shouldUseNativeValidation&&a.criteriaMode===`all`),a)};throw e}))}catch(e){return Promise.reject(e)}};if(function(e){return`_zod`in e&&typeof e._zod==`object`}(e))return function(r,i,a){try{return Promise.resolve(Je(function(){return Promise.resolve((n.mode===`sync`?s:c)(e,r,t)).then(function(e){return a.shouldUseNativeValidation&&We({},a),{errors:{},values:n.raw?Object.assign({},r):e}})},function(e){if(function(e){return e instanceof o}(e))return{values:{},errors:Ge(Xe(e.issues,!a.shouldUseNativeValidation&&a.criteriaMode===`all`),a)};throw e}))}catch(e){return Promise.reject(e)}};throw Error(`Invalid input: not a Zod schema`)}var Q=n(),Qe=R,$e=l.createContext({}),et=({...e})=>(0,Q.jsx)($e.Provider,{value:{name:e.name},children:(0,Q.jsx)(oe,{...e})}),$=()=>{let e=l.useContext($e),t=l.useContext(tt),{getFieldState:n}=ce(),r=te({name:e.name}),i=n(e.name,r);if(!e)throw Error(`useFormField should be used within `);let{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...i}},tt=l.createContext({});function nt({className:e,...t}){let n=l.useId();return(0,Q.jsx)(tt.Provider,{value:{id:n},children:(0,Q.jsx)(`div`,{className:r(`grid gap-2`,e),"data-slot":`form-item`,...t})})}function rt({className:e,...t}){let{error:n,formItemId:i}=$();return(0,Q.jsx)(a,{className:r(`data-[error=true]:text-destructive`,e),"data-error":!!n,"data-slot":`form-label`,htmlFor:i,...t})}function it({...e}){let{error:t,formItemId:n,formDescriptionId:r,formMessageId:a}=$();return(0,Q.jsx)(i,{"aria-describedby":t?`${r} ${a}`:`${r}`,"aria-invalid":!!t,"data-slot":`form-control`,id:n,...e})}function at({className:e,...t}){let{formDescriptionId:n}=$();return(0,Q.jsx)(`p`,{className:r(`text-muted-foreground text-sm`,e),"data-slot":`form-description`,id:n,...t})}function ot({className:e,...t}){let{error:n,formMessageId:i}=$(),a=n?String(n?.message??``):t.children;return a?(0,Q.jsx)(`p`,{className:r(`text-destructive text-sm`,e),"data-slot":`form-message`,id:i,...t,children:a}):null}export{nt as a,Ze as c,et as i,He as l,it as n,rt as o,at as r,ot as s,Qe as t}; \ No newline at end of file diff --git a/src/www/assets/general-error-BoAB2alm.js b/src/www/assets/general-error-Drsf0vjz.js similarity index 78% rename from src/www/assets/general-error-BoAB2alm.js rename to src/www/assets/general-error-Drsf0vjz.js index cf686b6..fdc590e 100644 --- a/src/www/assets/general-error-BoAB2alm.js +++ b/src/www/assets/general-error-Drsf0vjz.js @@ -1 +1 @@ -import{Ad as e,Od as t,jd as n,kd as r,tm as i}from"./messages-BOatyqUm.js";import{t as a}from"./useRouter-DtTm7XkK.js";import{t as o}from"./useNavigate-7u4DX0Ho.js";import{i as s,t as c}from"./button-C_NDYaz8.js";var l=i();function u({className:i,minimal:u=!1}){let d=o(),{history:f}=a();return(0,l.jsx)(`div`,{className:s(`h-svh w-full`,i),children:(0,l.jsxs)(`div`,{className:`m-auto flex h-full w-full flex-col items-center justify-center gap-2`,children:[!u&&(0,l.jsx)(`h1`,{className:`font-bold text-[7rem] leading-tight`,children:`500`}),(0,l.jsx)(`span`,{className:`font-medium`,children:n()}),(0,l.jsx)(`p`,{className:`text-center text-muted-foreground`,children:e()}),!u&&(0,l.jsxs)(`div`,{className:`mt-6 flex gap-4`,children:[(0,l.jsx)(c,{onClick:()=>f.go(-1),variant:`outline`,children:r()}),(0,l.jsx)(c,{onClick:()=>d({to:`/dashboard`}),children:t()})]})]})})}export{u as t}; \ No newline at end of file +import{Ad as e,Od as t,jd as n,kd as r,tm as i}from"./messages-CL4J6BaJ.js";import{t as a}from"./useRouter-DtTm7XkK.js";import{t as o}from"./useNavigate-7u4DX0Ho.js";import{i as s,t as c}from"./button-NLSeBFht.js";var l=i();function u({className:i,minimal:u=!1}){let d=o(),{history:f}=a();return(0,l.jsx)(`div`,{className:s(`h-svh w-full`,i),children:(0,l.jsxs)(`div`,{className:`m-auto flex h-full w-full flex-col items-center justify-center gap-2`,children:[!u&&(0,l.jsx)(`h1`,{className:`font-bold text-[7rem] leading-tight`,children:`500`}),(0,l.jsx)(`span`,{className:`font-medium`,children:n()}),(0,l.jsx)(`p`,{className:`text-center text-muted-foreground`,children:e()}),!u&&(0,l.jsxs)(`div`,{className:`mt-6 flex gap-4`,children:[(0,l.jsx)(c,{onClick:()=>f.go(-1),variant:`outline`,children:r()}),(0,l.jsx)(c,{onClick:()=>d({to:`/dashboard`}),children:t()})]})]})})}export{u as t}; \ No newline at end of file diff --git a/src/www/assets/header-DVAsq5d6.js b/src/www/assets/header-vUJd_CA5.js similarity index 89% rename from src/www/assets/header-DVAsq5d6.js rename to src/www/assets/header-vUJd_CA5.js index 2f43e93..46d1f80 100644 --- a/src/www/assets/header-DVAsq5d6.js +++ b/src/www/assets/header-vUJd_CA5.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{i as t}from"./auth-store-De4Y7PFV.js";import{t as n}from"./react-CO2uhaBc.js";import{Au as r,Jp as i,Su as a,Tt as o,Zp as s,qp as c,tm as l,xu as u}from"./messages-BOatyqUm.js";import{t as d}from"./link-DPnL8P5J.js";import{F as f,L as p,R as m,d as h,f as g,h as _,j as v,l as y,n as b,o as x,p as S,u as C,z as w}from"./search-provider-C-_FQI9C.js";import{i as T,t as E}from"./button-C_NDYaz8.js";import{a as D,i as O,l as k,o as A,r as j,s as M,t as N}from"./dropdown-menu-DzCIpsuG.js";import{t as P}from"./separator-CsUemQNs.js";import{l as F}from"./command-B_SlhXkX.js";var I=e(n(),1),L=l();function R(){let[e,n]=y(),[s,l]=(0,I.useState)(!1),{user:v}=t(),b=v?.username?.trim()||o(),T=b.charAt(0).toUpperCase()||`U`,P=v?.last_login_at?a({time:x(v.last_login_at)}):u();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(f,{onOpenChange:l,open:s,children:(0,L.jsx)(_,{})}),(0,L.jsxs)(N,{modal:!1,children:[(0,L.jsx)(k,{asChild:!0,children:(0,L.jsx)(E,{className:`relative h-8 w-8 rounded-full`,variant:`ghost`,children:(0,L.jsxs)(C,{className:`h-8 w-8`,children:[(0,L.jsx)(g,{alt:b,src:`/avatars/01.png`}),(0,L.jsx)(h,{children:T})]})})}),(0,L.jsxs)(j,{align:`end`,className:`w-56`,forceMount:!0,children:[(0,L.jsx)(A,{className:`p-0 font-normal`,children:(0,L.jsxs)(`div`,{className:`flex items-center gap-2 px-1 py-1.5 text-start text-sm`,children:[(0,L.jsxs)(C,{className:`h-8 w-8 rounded-lg`,children:[(0,L.jsx)(g,{alt:b,src:`/avatars/01.png`}),(0,L.jsx)(h,{className:`rounded-lg`,children:T})]}),(0,L.jsxs)(`div`,{className:`grid flex-1 text-start text-sm leading-tight`,children:[(0,L.jsx)(`span`,{className:`truncate font-semibold`,children:b}),(0,L.jsx)(`span`,{className:`truncate text-muted-foreground text-xs`,children:P})]})]})}),(0,L.jsx)(M,{}),(0,L.jsxs)(O,{children:[(0,L.jsx)(D,{asChild:!0,children:(0,L.jsxs)(d,{to:`/account/password`,children:[(0,L.jsx)(w,{className:`mr-2 size-4`}),i()]})}),(0,L.jsxs)(D,{onClick:()=>l(!0),onSelect:e=>e.preventDefault(),children:[(0,L.jsx)(p,{className:`mr-2 size-4`}),r()]})]}),(0,L.jsx)(M,{}),(0,L.jsxs)(D,{onClick:()=>n(!0),variant:`destructive`,children:[(0,L.jsx)(m,{className:`mr-2 size-4`}),c()]})]})]}),(0,L.jsx)(S,{onOpenChange:n,open:!!e})]})}function z({className:e=``,placeholder:t}){let{setOpen:n}=b();return(0,L.jsxs)(E,{className:T(`group relative h-8 w-full flex-1 justify-start rounded-md bg-muted/25 font-normal text-muted-foreground text-sm shadow-none hover:bg-accent sm:w-40 sm:pe-12 md:flex-none lg:w-52 xl:w-64`,e),onClick:()=>n(!0),variant:`outline`,children:[(0,L.jsx)(F,{"aria-hidden":`true`,className:`absolute inset-s-1.5 top-1/2 -translate-y-1/2`,size:16}),(0,L.jsx)(`span`,{className:`ms-4`,children:t??s()}),(0,L.jsxs)(`kbd`,{className:`pointer-events-none absolute inset-e-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-medium font-mono text-[10px] opacity-100 group-hover:bg-accent sm:flex`,children:[(0,L.jsx)(`span`,{className:`text-xs`,children:`⌘`}),`K`]})]})}function B({className:e,fixed:t,children:n,...r}){let[i,a]=(0,I.useState)(0);return(0,I.useEffect)(()=>{let e=()=>{a(document.body.scrollTop||document.documentElement.scrollTop)};return document.addEventListener(`scroll`,e,{passive:!0}),()=>document.removeEventListener(`scroll`,e)},[]),(0,L.jsx)(`header`,{className:T(`z-50 h-16`,t&&`header-fixed peer/header sticky top-0 w-[inherit]`,i>10&&t?`shadow`:`shadow-none`,e),...r,children:(0,L.jsxs)(`div`,{className:T(`relative flex h-full items-center gap-3 p-4 sm:gap-4`,i>10&&t&&`after:absolute after:inset-0 after:-z-10 after:bg-background/20 after:backdrop-blur-lg`),children:[(0,L.jsx)(v,{className:`max-md:scale-125`,variant:`outline`}),(0,L.jsx)(P,{className:`h-6`,orientation:`vertical`}),n]})})}export{z as n,R as r,B as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{i as t}from"./auth-store-8ocF_FHU.js";import{t as n}from"./react-CO2uhaBc.js";import{Au as r,Jp as i,Su as a,Tt as o,Zp as s,qp as c,tm as l,xu as u}from"./messages-CL4J6BaJ.js";import{t as d}from"./link-6i3yGmK_.js";import{F as f,L as p,R as m,d as h,f as g,h as _,j as v,l as y,n as b,o as x,p as S,u as C,z as w}from"./search-provider-CTRbHqNx.js";import{i as T,t as E}from"./button-NLSeBFht.js";import{a as D,i as O,l as k,o as A,r as j,s as M,t as N}from"./dropdown-menu-D72UcvWG.js";import{t as P}from"./separator-CqhQIQ-B.js";import{l as F}from"./command-vy8966UO.js";var I=e(n(),1),L=l();function R(){let[e,n]=y(),[s,l]=(0,I.useState)(!1),{user:v}=t(),b=v?.username?.trim()||o(),T=b.charAt(0).toUpperCase()||`U`,P=v?.last_login_at?a({time:x(v.last_login_at)}):u();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(f,{onOpenChange:l,open:s,children:(0,L.jsx)(_,{})}),(0,L.jsxs)(N,{modal:!1,children:[(0,L.jsx)(k,{asChild:!0,children:(0,L.jsx)(E,{className:`relative h-8 w-8 rounded-full`,variant:`ghost`,children:(0,L.jsxs)(C,{className:`h-8 w-8`,children:[(0,L.jsx)(g,{alt:b,src:`/avatars/01.png`}),(0,L.jsx)(h,{children:T})]})})}),(0,L.jsxs)(j,{align:`end`,className:`w-56`,forceMount:!0,children:[(0,L.jsx)(A,{className:`p-0 font-normal`,children:(0,L.jsxs)(`div`,{className:`flex items-center gap-2 px-1 py-1.5 text-start text-sm`,children:[(0,L.jsxs)(C,{className:`h-8 w-8 rounded-lg`,children:[(0,L.jsx)(g,{alt:b,src:`/avatars/01.png`}),(0,L.jsx)(h,{className:`rounded-lg`,children:T})]}),(0,L.jsxs)(`div`,{className:`grid flex-1 text-start text-sm leading-tight`,children:[(0,L.jsx)(`span`,{className:`truncate font-semibold`,children:b}),(0,L.jsx)(`span`,{className:`truncate text-muted-foreground text-xs`,children:P})]})]})}),(0,L.jsx)(M,{}),(0,L.jsxs)(O,{children:[(0,L.jsx)(D,{asChild:!0,children:(0,L.jsxs)(d,{to:`/account/password`,children:[(0,L.jsx)(w,{className:`mr-2 size-4`}),i()]})}),(0,L.jsxs)(D,{onClick:()=>l(!0),onSelect:e=>e.preventDefault(),children:[(0,L.jsx)(p,{className:`mr-2 size-4`}),r()]})]}),(0,L.jsx)(M,{}),(0,L.jsxs)(D,{onClick:()=>n(!0),variant:`destructive`,children:[(0,L.jsx)(m,{className:`mr-2 size-4`}),c()]})]})]}),(0,L.jsx)(S,{onOpenChange:n,open:!!e})]})}function z({className:e=``,placeholder:t}){let{setOpen:n}=b();return(0,L.jsxs)(E,{className:T(`group relative h-8 w-full flex-1 justify-start rounded-md bg-muted/25 font-normal text-muted-foreground text-sm shadow-none hover:bg-accent sm:w-40 sm:pe-12 md:flex-none lg:w-52 xl:w-64`,e),onClick:()=>n(!0),variant:`outline`,children:[(0,L.jsx)(F,{"aria-hidden":`true`,className:`absolute inset-s-1.5 top-1/2 -translate-y-1/2`,size:16}),(0,L.jsx)(`span`,{className:`ms-4`,children:t??s()}),(0,L.jsxs)(`kbd`,{className:`pointer-events-none absolute inset-e-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-medium font-mono text-[10px] opacity-100 group-hover:bg-accent sm:flex`,children:[(0,L.jsx)(`span`,{className:`text-xs`,children:`⌘`}),`K`]})]})}function B({className:e,fixed:t,children:n,...r}){let[i,a]=(0,I.useState)(0);return(0,I.useEffect)(()=>{let e=()=>{a(document.body.scrollTop||document.documentElement.scrollTop)};return document.addEventListener(`scroll`,e,{passive:!0}),()=>document.removeEventListener(`scroll`,e)},[]),(0,L.jsx)(`header`,{className:T(`z-50 h-16`,t&&`header-fixed peer/header sticky top-0 w-[inherit]`,i>10&&t?`shadow`:`shadow-none`,e),...r,children:(0,L.jsxs)(`div`,{className:T(`relative flex h-full items-center gap-3 p-4 sm:gap-4`,i>10&&t&&`after:absolute after:inset-0 after:-z-10 after:bg-background/20 after:backdrop-blur-lg`),children:[(0,L.jsx)(v,{className:`max-md:scale-125`,variant:`outline`}),(0,L.jsx)(P,{className:`h-6`,orientation:`vertical`}),n]})})}export{z as n,R as r,B as t}; \ No newline at end of file diff --git a/src/www/assets/help-Bq6Uj7UY.js b/src/www/assets/help-CuVF-_N9.js similarity index 88% rename from src/www/assets/help-Bq6Uj7UY.js rename to src/www/assets/help-CuVF-_N9.js index 672518f..5f092bf 100644 --- a/src/www/assets/help-Bq6Uj7UY.js +++ b/src/www/assets/help-CuVF-_N9.js @@ -1 +1 @@ -import{Ip as e,Lp as t,Rp as n,tm as r}from"./messages-BOatyqUm.js";import{t as i}from"./telescope-DU0wiTDw.js";var a=r();function o(){return(0,a.jsx)(`div`,{className:`h-svh`,children:(0,a.jsxs)(`div`,{className:`m-auto flex h-full w-full flex-col items-center justify-center gap-2`,children:[(0,a.jsx)(i,{size:72}),(0,a.jsx)(`h1`,{className:`font-bold text-4xl leading-tight`,children:n()}),(0,a.jsxs)(`p`,{className:`text-center text-muted-foreground`,children:[t(),` `,(0,a.jsx)(`br`,{}),e()]})]})})}var s=o;export{s as component}; \ No newline at end of file +import{Ip as e,Lp as t,Rp as n,tm as r}from"./messages-CL4J6BaJ.js";import{t as i}from"./telescope-DU0wiTDw.js";var a=r();function o(){return(0,a.jsx)(`div`,{className:`h-svh`,children:(0,a.jsxs)(`div`,{className:`m-auto flex h-full w-full flex-col items-center justify-center gap-2`,children:[(0,a.jsx)(i,{size:72}),(0,a.jsx)(`h1`,{className:`font-bold text-4xl leading-tight`,children:n()}),(0,a.jsxs)(`p`,{className:`text-center text-muted-foreground`,children:[t(),` `,(0,a.jsx)(`br`,{}),e()]})]})})}var s=o;export{s as component}; \ No newline at end of file diff --git a/src/www/assets/index-Bhi1y2zc.js b/src/www/assets/index-CbzpCBgq.js similarity index 99% rename from src/www/assets/index-Bhi1y2zc.js rename to src/www/assets/index-CbzpCBgq.js index 02f50a3..ff7bc90 100644 --- a/src/www/assets/index-Bhi1y2zc.js +++ b/src/www/assets/index-CbzpCBgq.js @@ -1,4 +1,4 @@ -import{r as e,t}from"./chunk-DECur_0Z.js";import{m as n}from"./auth-store-De4Y7PFV.js";import{n as r,t as i}from"./router-Z0tUklFK.js";import{t as a}from"./react-CO2uhaBc.js";import{tm as o}from"./messages-BOatyqUm.js";import{n as s}from"./useRouter-DtTm7XkK.js";import{t as c}from"./Matches-9qnXJNrS.js";import{r as l}from"./dist-Cc8_LDAq.js";import{r as u}from"./tooltip-xZuTTfnF.js";import{r as d}from"./wallet-CtiawGS1.js";import{t as f}from"./font-provider-BPsIRWbb.js";import{t as p}from"./theme-provider-BREWrHp_.js";import{t as m}from"./preload-helper-DoS0eHac.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var h=e(a(),1),g=o();function _({router:e,children:t,...n}){Object.keys(n).length>0&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,g.jsx)(s.Provider,{value:e,children:t});return e.options.Wrap?(0,g.jsx)(e.options.Wrap,{children:r}):r}function v({router:e,...t}){return(0,g.jsx)(_,{router:e,...t,children:(0,g.jsx)(c,{})})}var y=t((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,ee||(ee=!0,oe());else{var t=n(l);t!==null&&le(x,t.startTime-e)}}var ee=!1,te=-1,ne=5,re=-1;function ie(){return g?!0:!(e.unstable_now()-ret&&ie());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&le(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?oe():ee=!1}}}var oe;if(typeof y==`function`)oe=function(){y(ae)};else if(typeof MessageChannel<`u`){var se=new MessageChannel,ce=se.port2;se.port1.onmessage=ae,oe=function(){ce.postMessage(null)}}else oe=function(){_(ae,0)};function le(t,n){te=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(te),te=-1):h=!0,le(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,ee||(ee=!0,oe()))),r},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),b=t(((e,t)=>{t.exports=y()})),x=t((e=>{var t=b(),n=a(),r=l();function i(e){var t=`https://react.dev/errors/`+e;if(1ge||(e.current=he[ge],he[ge]=null,ge--)}function T(e,t){ge++,he[ge]=e.current,e.current=t}var ve=_e(null),ye=_e(null),be=_e(null),xe=_e(null);function Se(e,t){switch(T(be,t),T(ye,e),T(ve,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}w(ve),T(ve,e)}function Ce(){w(ve),w(ye),w(be)}function we(e){e.memoizedState!==null&&T(xe,e);var t=ve.current,n=Hd(t,e.type);t!==n&&(T(ye,e),T(ve,n))}function Te(e){ye.current===e&&(w(ve),w(ye)),xe.current===e&&(w(xe),Qf._currentValue=me)}var Ee,De;function Oe(e){if(Ee===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ee=t&&t[1]||``,De=-1{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var h=e(a(),1),g=o();function _({router:e,children:t,...n}){Object.keys(n).length>0&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,g.jsx)(s.Provider,{value:e,children:t});return e.options.Wrap?(0,g.jsx)(e.options.Wrap,{children:r}):r}function v({router:e,...t}){return(0,g.jsx)(_,{router:e,...t,children:(0,g.jsx)(c,{})})}var y=t((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,ee||(ee=!0,oe());else{var t=n(l);t!==null&&le(x,t.startTime-e)}}var ee=!1,te=-1,ne=5,re=-1;function ie(){return g?!0:!(e.unstable_now()-ret&&ie());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&le(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?oe():ee=!1}}}var oe;if(typeof y==`function`)oe=function(){y(ae)};else if(typeof MessageChannel<`u`){var se=new MessageChannel,ce=se.port2;se.port1.onmessage=ae,oe=function(){ce.postMessage(null)}}else oe=function(){_(ae,0)};function le(t,n){te=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(te),te=-1):h=!0,le(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,ee||(ee=!0,oe()))),r},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),b=t(((e,t)=>{t.exports=y()})),x=t((e=>{var t=b(),n=a(),r=l();function i(e){var t=`https://react.dev/errors/`+e;if(1ge||(e.current=he[ge],he[ge]=null,ge--)}function T(e,t){ge++,he[ge]=e.current,e.current=t}var ve=_e(null),ye=_e(null),be=_e(null),xe=_e(null);function Se(e,t){switch(T(be,t),T(ye,e),T(ve,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}w(ve),T(ve,e)}function Ce(){w(ve),w(ye),w(be)}function we(e){e.memoizedState!==null&&T(xe,e);var t=ve.current,n=Hd(t,e.type);t!==n&&(T(ye,e),T(ve,n))}function Te(e){ye.current===e&&(w(ve),w(ye)),xe.current===e&&(w(xe),Qf._currentValue=me)}var Ee,De;function Oe(e){if(Ee===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ee=t&&t[1]||``,De=-1)`:-1e[Math.floor(Math.random()*e.length)],Z=()=>Le[Math.floor(Math.random()*41)];function ze({glitchColors:e=[`#2b4539`,`#61dca3`,`#61b3dc`],glitchSpeed:t=`medium`,centerVignette:n=!1,outerVignette:r=!0,smooth:i=!0,className:a}){let o=(0,K.useRef)(null),s=(0,K.useRef)(0),c=(0,K.useRef)([]),l=(0,K.useRef)(0),u=(0,K.useRef)(0),d=(0,K.useCallback)((t,n)=>{c.current=Array.from({length:t*n},()=>({char:Z(),color:X(e),opacity:Math.random()*.5+.1}))},[e]),f=(0,K.useCallback)(()=>{let e=o.current;if(!e)return;let t=e.getContext(`2d`);if(!t)return;t.clearRect(0,0,e.width,e.height),t.font=`${J}px monospace`;let n=c.current,r=l.current,i=u.current;for(let e=0;e{let t=c.current,n=t.length,r=Math.floor(n*.05);for(let a=0;a{let e=o.current;if(!e)return;let n=()=>{let t=e.parentElement;t&&(e.width=t.clientWidth,e.height=t.clientHeight,l.current=Math.ceil(e.width/Y),u.current=Math.ceil(e.height/Y),d(l.current,u.current),f())},r=new ResizeObserver(n);e.parentElement&&r.observe(e.parentElement),n();let i=setInterval(p,Re[t]);return()=>{r.disconnect(),clearInterval(i),cancelAnimationFrame(s.current)}},[p,f,d,t]),(0,q.jsxs)(`div`,{className:`absolute inset-0 overflow-hidden ${a??``}`,children:[(0,q.jsx)(`canvas`,{className:`absolute inset-0`,ref:o}),r&&(0,q.jsx)(`div`,{className:`absolute inset-0`,style:{background:`radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.85) 100%)`}}),n&&(0,q.jsx)(`div`,{className:`absolute inset-0`,style:{background:`radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 70%)`}})]})}var Be=ge(`relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current`,{variants:{variant:{default:`bg-card text-card-foreground`,destructive:`bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current`}},defaultVariants:{variant:`default`}});function Ve({className:e,variant:t,...n}){return(0,q.jsx)(`div`,{className:x(Be({variant:t}),e),"data-slot":`alert`,role:`alert`,...n})}function He({className:e,...t}){return(0,q.jsx)(`div`,{className:x(`col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight`,e),"data-slot":`alert-title`,...t})}function Q({className:e,...t}){return(0,q.jsx)(`div`,{className:x(`col-start-2 grid justify-items-start gap-1 text-muted-foreground text-sm [&_p]:leading-relaxed`,e),"data-slot":`alert-description`,...t})}function Ue({value:e,onChange:t,options:n,placeholder:r=``,searchPlaceholder:i=`Search...`,emptyText:a=`No options found.`,className:o,disabled:s}){let[c,l]=(0,K.useState)(!1),u=n.map(e=>typeof e==`string`?{value:e,label:e}:e);return(0,q.jsxs)(C,{onOpenChange:l,open:c,children:[(0,q.jsxs)(`div`,{className:x(`relative`,o),children:[(0,q.jsx)(W,{className:`pr-10`,disabled:s,onChange:e=>t(e.target.value),placeholder:r,value:e}),(0,q.jsx)(ve,{asChild:!0,children:(0,q.jsx)(S,{"aria-expanded":c,"aria-label":`Show options`,className:`absolute top-1/2 right-1 size-8 -translate-y-1/2`,disabled:s,size:`icon`,type:`button`,variant:`ghost`,children:(0,q.jsx)(E,{className:`size-4`})})})]}),(0,q.jsx)(_e,{align:`end`,className:`w-48 p-0`,children:(0,q.jsxs)(Se,{children:[(0,q.jsx)(P,{placeholder:i}),(0,q.jsxs)(xe,{children:[(0,q.jsx)(be,{children:a}),(0,q.jsx)(F,{children:u.map(n=>(0,q.jsxs)(ye,{onSelect:()=>{t(n.value),l(!1)},value:n.value,children:[(0,q.jsx)(T,{className:x(`size-4`,e===n.value?`opacity-100`:`opacity-0`)}),n.label??n.value]},n.value))})]})]})})]})}var We=[`0.0.0.0`,`127.0.0.1`,`localhost`];function Ge({form:e,loading:t,onSubmit:n,submitText:r}){return(0,q.jsx)(ke,{...e,children:(0,q.jsxs)(`form`,{className:`grid gap-4`,onSubmit:e.handleSubmit(n),children:[(0,q.jsx)(B,{control:e.control,name:`app_name`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsx)(H,{children:se()}),(0,q.jsx)(V,{children:(0,q.jsx)(W,{placeholder:`epusdt`,...e})}),(0,q.jsx)(U,{})]})}),(0,q.jsx)(B,{control:e.control,name:`app_uri`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsxs)(H,{children:[ne(),` *`]}),(0,q.jsx)(V,{children:(0,q.jsx)(W,{placeholder:`http://your-server-ip:8000`,...e})}),(0,q.jsx)(U,{})]})}),(0,q.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,q.jsx)(B,{control:e.control,name:`http_bind_addr`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsx)(H,{children:ee()}),(0,q.jsx)(V,{children:(0,q.jsx)(Ue,{onChange:e.onChange,options:We,placeholder:`0.0.0.0`,value:e.value??``})}),(0,q.jsx)(U,{})]})}),(0,q.jsx)(B,{control:e.control,name:`http_bind_port`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsx)(H,{children:pe()}),(0,q.jsx)(V,{children:(0,q.jsx)(W,{placeholder:`8000`,type:`number`,...e,value:e.value??``})}),(0,q.jsx)(U,{})]})})]}),(0,q.jsx)(B,{control:e.control,name:`runtime_root_path`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsx)(H,{children:ie()}),(0,q.jsx)(V,{children:(0,q.jsx)(W,{placeholder:`./runtime`,...e})}),(0,q.jsx)(U,{})]})}),(0,q.jsx)(B,{control:e.control,name:`log_save_path`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsx)(H,{children:v()}),(0,q.jsx)(V,{children:(0,q.jsx)(W,{placeholder:`./logs`,...e})}),(0,q.jsx)(U,{})]})}),(0,q.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,q.jsx)(B,{control:e.control,name:`order_expiration_time`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsx)(H,{children:ue()}),(0,q.jsx)(V,{children:(0,q.jsx)(W,{placeholder:`10`,type:`number`,...e})}),(0,q.jsx)(U,{})]})}),(0,q.jsx)(B,{control:e.control,name:`order_notice_max_retry`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsx)(H,{children:oe()}),(0,q.jsx)(V,{children:(0,q.jsx)(W,{placeholder:`1`,type:`number`,...e})}),(0,q.jsx)(U,{})]})})]}),(0,q.jsxs)(S,{className:`mt-2 w-full`,disabled:t,type:`submit`,children:[t?(0,q.jsx)(N,{className:`animate-spin`}):null,r]})]})})}function Ke({credentials:e,onCopy:t,onTogglePassword:n,passwordLookupFailed:u,showPassword:_}){return(0,q.jsxs)(`div`,{className:`grid gap-4`,children:[(0,q.jsxs)(`div`,{className:`grid gap-4 rounded-2xl border border-emerald-500/20 bg-emerald-500/5 p-4 shadow-sm`,children:[(0,q.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,q.jsx)(`div`,{className:`flex size-10 shrink-0 items-center justify-center rounded-xl bg-emerald-500/12 text-emerald-600 dark:text-emerald-400`,children:(0,q.jsx)(Ce,{className:`size-5`})}),(0,q.jsxs)(`div`,{className:`space-y-1`,children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,q.jsx)(`h3`,{className:`font-semibold text-base text-foreground`,children:r()}),e?(0,q.jsx)(G,{className:`rounded-md`,variant:`secondary`,children:g()}):null]}),(0,q.jsx)(`p`,{className:`text-muted-foreground text-sm leading-6`,children:l()})]})]}),e?(0,q.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,q.jsx)(`div`,{className:`rounded-xl border border-border/60 bg-background/85 p-4 shadow-sm`,children:(0,q.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,q.jsx)(`p`,{className:`text-muted-foreground text-xs uppercase tracking-wide`,children:ce()}),(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,q.jsx)(`p`,{className:`min-w-0 flex-1 truncate font-medium text-base text-foreground`,children:e.username}),(0,q.jsxs)(S,{"aria-label":i(),className:`scale-95 rounded-full`,onClick:()=>t(e.username),size:`icon`,type:`button`,variant:`ghost`,children:[(0,q.jsx)(D,{}),(0,q.jsx)(`span`,{className:`sr-only`,children:i()})]})]})]})}),(0,q.jsx)(`div`,{className:`rounded-xl border border-border/60 bg-background/85 p-4 shadow-sm`,children:(0,q.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,q.jsx)(G,{className:`w-fit rounded-md border-amber-200 bg-amber-50 text-amber-700 dark:border-amber-900/60 dark:bg-amber-950/40 dark:text-amber-300`,variant:`outline`,children:p()}),(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,q.jsx)(`p`,{className:`text-muted-foreground text-xs uppercase tracking-wide`,children:c()}),(0,q.jsxs)(G,{className:`rounded-md`,variant:`outline`,children:[(0,q.jsx)(Fe,{className:`size-3.5`}),f()]})]}),(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,q.jsx)(`p`,{className:`min-w-0 flex-1 break-all font-medium text-base text-foreground`,children:_?e.password:`•`.repeat(Math.max(e.password.length,10))}),(0,q.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,q.jsxs)(S,{"aria-label":_?o():d(),className:`scale-95 rounded-full`,onClick:n,size:`icon`,type:`button`,variant:`ghost`,children:[_?(0,q.jsx)(k,{}):(0,q.jsx)(A,{}),(0,q.jsx)(`span`,{className:`sr-only`,children:_?o():d()})]}),(0,q.jsxs)(S,{"aria-label":i(),className:`scale-95 rounded-full`,onClick:()=>t(e.password),size:`icon`,type:`button`,variant:`ghost`,children:[(0,q.jsx)(D,{}),(0,q.jsx)(`span`,{className:`sr-only`,children:i()})]})]})]}),(0,q.jsx)(`p`,{className:`text-muted-foreground text-sm leading-6`,children:a()})]})})]}):null,u?(0,q.jsxs)(`div`,{className:`flex items-start gap-3 rounded-xl border border-amber-200 bg-amber-50 p-4 text-amber-900 dark:border-amber-900/60 dark:bg-amber-950/40 dark:text-amber-100`,children:[(0,q.jsx)(we,{className:`mt-0.5 size-4 shrink-0`}),(0,q.jsxs)(`div`,{className:`space-y-1`,children:[(0,q.jsx)(`p`,{className:`font-medium text-sm`,children:m()}),(0,q.jsx)(`p`,{className:`text-amber-800/80 text-sm leading-6 dark:text-amber-100/75`,children:h()})]})]}):null]}),(0,q.jsx)(S,{asChild:!0,className:`w-full`,type:`button`,children:(0,q.jsx)(he,{to:`/sign-in`,children:s()})})]})}var qe=Te({app_name:L().min(1,`App Name is required`),app_uri:L().min(1,`App URI is required`).url(`Must be a valid URL (e.g. http://your-server-ip:8000)`),http_bind_addr:L().min(1,`Bind address is required`),http_bind_port:R({error:`Port must be a number`}).int().min(1,`Port must be ≥ 1`).max(65535,`Port must be ≤ 65535`),runtime_root_path:L().min(1,`Runtime root path is required`),log_save_path:L().min(1,`Log save path is required`),order_expiration_time:R({error:`Must be a number`}).int().min(1,`Must be ≥ 1 minute`),order_notice_max_retry:R({error:`Must be a number`}).int().min(0,`Must be ≥ 0`)}),$={app_name:`epusdt`,app_uri:``,http_bind_addr:`0.0.0.0`,http_bind_port:8e3,runtime_root_path:`./runtime`,log_save_path:`./logs`,order_expiration_time:10,order_notice_max_retry:1};function Je(){let[e,n]=(0,K.useState)(!1),[r,i]=(0,K.useState)(!1),[a,o]=(0,K.useState)(null),[s,c]=(0,K.useState)(null),[l,d]=(0,K.useState)(!1),[f,p]=(0,K.useState)(!1),m=Oe({resolver:De(qe),defaultValues:$,mode:`onChange`});(0,K.useEffect)(()=>{let e=!0;async function n(){try{let{data:n}=await t.GET(`/api/install/defaults`);if(!(e&&n))return;let r=Object.fromEntries(Object.entries(n).filter(([,e])=>e!==``&&e!=null));m.reset({...$,...r})}catch{}}return n().catch(()=>void 0),()=>{e=!1}},[m]);function h(e){if(!(0,Ie.default)(e)){I.error(u());return}I.success(me())}async function g(e){n(!0),o(null),d(!1);try{let{data:n,error:r,response:a}=await t.POST(`/api/install`,{body:e});if(!a.ok||r){o({variant:`destructive`,message:r?.error||b()});return}let s=n?.init_password?.trim()||``,l=s?{username:`admin`,password:s}:null;l||d(!0),i(!0),c(l)}catch{o({variant:`destructive`,message:b()})}finally{n(!1)}}let v=_();return e&&(v=re()),r&&(v=le()),(0,q.jsxs)(`div`,{className:`relative flex min-h-svh items-center justify-center px-4 py-10`,children:[(0,q.jsx)(ze,{centerVignette:!1,glitchColors:[`#3f3f46`,`#71717a`,`#a1a1aa`],glitchSpeed:`fast`,outerVignette:!1,smooth:!0}),(0,q.jsxs)(Pe,{className:`max-w-2xl border border-border/40 bg-card/55 shadow-xl backdrop-blur-xl`,children:[(0,q.jsxs)(je,{className:`space-y-6 border-border/40 border-b pb-8`,children:[(0,q.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,q.jsx)(Ee,{className:`size-10 shrink-0`}),(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`h1`,{className:`font-medium text-xl leading-tight`,children:`GMPay`}),(0,q.jsx)(`p`,{className:`mt-1 whitespace-nowrap text-muted-foreground text-xs`,children:te()})]})]}),(0,q.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,q.jsx)(j,{}),(0,q.jsx)(M,{})]})]}),r?null:(0,q.jsxs)(`div`,{className:`space-y-3`,children:[(0,q.jsx)(Ae,{className:`text-2xl tracking-tight`,children:y()}),(0,q.jsx)(Ne,{className:`max-w-xl text-sm leading-6`,children:ae()})]})]}),(0,q.jsx)(Me,{children:(0,q.jsxs)(`div`,{className:`grid gap-4`,children:[a?(0,q.jsxs)(Ve,{variant:a.variant,children:[(0,q.jsx)(He,{children:de()}),(0,q.jsx)(Q,{children:a.message})]}):null,r?(0,q.jsx)(Ke,{credentials:s,onCopy:h,onTogglePassword:()=>p(e=>!e),passwordLookupFailed:l,showPassword:f}):(0,q.jsx)(Ge,{form:m,loading:e,onSubmit:g,submitText:v})]})})]})]})}var Ye=Je;export{Ye as component}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{s as t}from"./auth-store-8ocF_FHU.js";import{t as n}from"./react-CO2uhaBc.js";import{$u as r,Bu as i,Gu as a,Hu as o,Ju as s,Ku as c,Qu as l,Ru as u,Uu as d,Vu as f,Wu as p,Xu as m,Yu as h,Zu as g,ad as _,cd as v,dd as ee,ed as te,fd as ne,hd as y,id as re,ld as ie,md as ae,nd as b,od as oe,pd as se,qu as ce,rd as le,sd as ue,td as de,tm as fe,ud as pe,zu as me}from"./messages-CL4J6BaJ.js";import{t as he}from"./link-6i3yGmK_.js";import{i as x,r as ge,t as S}from"./button-NLSeBFht.js";import{n as _e,r as ve,t as C}from"./popover-Y5WNf1yM.js";import{t as w}from"./createLucideIcon-Br0Bd5k2.js";import{t as T}from"./check-CHp0nSkR.js";import{t as E}from"./chevron-down-BB5h1CsX.js";import{n as D,t as O}from"./copy-to-clipboard-C1tj4a8X.js";import{t as k}from"./eye-off-B8hO0oST.js";import{t as A}from"./eye-DAKGLydt.js";import{n as j,t as M}from"./theme-switch-CdEcHkcU.js";import{t as N}from"./loader-circle-DpEz1fQv.js";import{a as P,i as F,o as ye,r as be,s as xe,t as Se}from"./command-vy8966UO.js";import{t as Ce}from"./shield-check-MAPDL1u8.js";import{t as we}from"./triangle-alert-DB5v_9sS.js";import{n as I}from"./dist-Dd-sCJIt.js";import{c as L,n as R,s as Te}from"./zod-rwFXxHlg.js";import{t as Ee}from"./logo-CBibDHP9.js";import{a as z,c as De,i as B,l as Oe,n as V,o as H,s as U,t as ke}from"./form-C_YekIvK.js";import{t as W}from"./input-DAqep8ZY.js";import{t as G}from"./badge-BRKB3301.js";import{a as Ae,i as je,n as Me,r as Ne,t as Pe}from"./card-wpWrYqj9.js";var Fe=w(`lock-keyhole`,[[`circle`,{cx:`12`,cy:`16`,r:`1`,key:`1au0dj`}],[`rect`,{x:`3`,y:`10`,width:`18`,height:`12`,rx:`2`,key:`6s8ecr`}],[`path`,{d:`M7 10V7a5 5 0 0 1 10 0v3`,key:`1pqi11`}]]),Ie=e(O(),1),K=e(n(),1),q=fe(),Le=`ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%&`,J=14,Y=20,Re={slow:400,medium:200,fast:80},X=e=>e[Math.floor(Math.random()*e.length)],Z=()=>Le[Math.floor(Math.random()*41)];function ze({glitchColors:e=[`#2b4539`,`#61dca3`,`#61b3dc`],glitchSpeed:t=`medium`,centerVignette:n=!1,outerVignette:r=!0,smooth:i=!0,className:a}){let o=(0,K.useRef)(null),s=(0,K.useRef)(0),c=(0,K.useRef)([]),l=(0,K.useRef)(0),u=(0,K.useRef)(0),d=(0,K.useCallback)((t,n)=>{c.current=Array.from({length:t*n},()=>({char:Z(),color:X(e),opacity:Math.random()*.5+.1}))},[e]),f=(0,K.useCallback)(()=>{let e=o.current;if(!e)return;let t=e.getContext(`2d`);if(!t)return;t.clearRect(0,0,e.width,e.height),t.font=`${J}px monospace`;let n=c.current,r=l.current,i=u.current;for(let e=0;e{let t=c.current,n=t.length,r=Math.floor(n*.05);for(let a=0;a{let e=o.current;if(!e)return;let n=()=>{let t=e.parentElement;t&&(e.width=t.clientWidth,e.height=t.clientHeight,l.current=Math.ceil(e.width/Y),u.current=Math.ceil(e.height/Y),d(l.current,u.current),f())},r=new ResizeObserver(n);e.parentElement&&r.observe(e.parentElement),n();let i=setInterval(p,Re[t]);return()=>{r.disconnect(),clearInterval(i),cancelAnimationFrame(s.current)}},[p,f,d,t]),(0,q.jsxs)(`div`,{className:`absolute inset-0 overflow-hidden ${a??``}`,children:[(0,q.jsx)(`canvas`,{className:`absolute inset-0`,ref:o}),r&&(0,q.jsx)(`div`,{className:`absolute inset-0`,style:{background:`radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.85) 100%)`}}),n&&(0,q.jsx)(`div`,{className:`absolute inset-0`,style:{background:`radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 70%)`}})]})}var Be=ge(`relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current`,{variants:{variant:{default:`bg-card text-card-foreground`,destructive:`bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current`}},defaultVariants:{variant:`default`}});function Ve({className:e,variant:t,...n}){return(0,q.jsx)(`div`,{className:x(Be({variant:t}),e),"data-slot":`alert`,role:`alert`,...n})}function He({className:e,...t}){return(0,q.jsx)(`div`,{className:x(`col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight`,e),"data-slot":`alert-title`,...t})}function Q({className:e,...t}){return(0,q.jsx)(`div`,{className:x(`col-start-2 grid justify-items-start gap-1 text-muted-foreground text-sm [&_p]:leading-relaxed`,e),"data-slot":`alert-description`,...t})}function Ue({value:e,onChange:t,options:n,placeholder:r=``,searchPlaceholder:i=`Search...`,emptyText:a=`No options found.`,className:o,disabled:s}){let[c,l]=(0,K.useState)(!1),u=n.map(e=>typeof e==`string`?{value:e,label:e}:e);return(0,q.jsxs)(C,{onOpenChange:l,open:c,children:[(0,q.jsxs)(`div`,{className:x(`relative`,o),children:[(0,q.jsx)(W,{className:`pr-10`,disabled:s,onChange:e=>t(e.target.value),placeholder:r,value:e}),(0,q.jsx)(ve,{asChild:!0,children:(0,q.jsx)(S,{"aria-expanded":c,"aria-label":`Show options`,className:`absolute top-1/2 right-1 size-8 -translate-y-1/2`,disabled:s,size:`icon`,type:`button`,variant:`ghost`,children:(0,q.jsx)(E,{className:`size-4`})})})]}),(0,q.jsx)(_e,{align:`end`,className:`w-48 p-0`,children:(0,q.jsxs)(Se,{children:[(0,q.jsx)(P,{placeholder:i}),(0,q.jsxs)(xe,{children:[(0,q.jsx)(be,{children:a}),(0,q.jsx)(F,{children:u.map(n=>(0,q.jsxs)(ye,{onSelect:()=>{t(n.value),l(!1)},value:n.value,children:[(0,q.jsx)(T,{className:x(`size-4`,e===n.value?`opacity-100`:`opacity-0`)}),n.label??n.value]},n.value))})]})]})})]})}var We=[`0.0.0.0`,`127.0.0.1`,`localhost`];function Ge({form:e,loading:t,onSubmit:n,submitText:r}){return(0,q.jsx)(ke,{...e,children:(0,q.jsxs)(`form`,{className:`grid gap-4`,onSubmit:e.handleSubmit(n),children:[(0,q.jsx)(B,{control:e.control,name:`app_name`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsx)(H,{children:se()}),(0,q.jsx)(V,{children:(0,q.jsx)(W,{placeholder:`epusdt`,...e})}),(0,q.jsx)(U,{})]})}),(0,q.jsx)(B,{control:e.control,name:`app_uri`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsxs)(H,{children:[ne(),` *`]}),(0,q.jsx)(V,{children:(0,q.jsx)(W,{placeholder:`http://your-server-ip:8000`,...e})}),(0,q.jsx)(U,{})]})}),(0,q.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,q.jsx)(B,{control:e.control,name:`http_bind_addr`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsx)(H,{children:ee()}),(0,q.jsx)(V,{children:(0,q.jsx)(Ue,{onChange:e.onChange,options:We,placeholder:`0.0.0.0`,value:e.value??``})}),(0,q.jsx)(U,{})]})}),(0,q.jsx)(B,{control:e.control,name:`http_bind_port`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsx)(H,{children:pe()}),(0,q.jsx)(V,{children:(0,q.jsx)(W,{placeholder:`8000`,type:`number`,...e,value:e.value??``})}),(0,q.jsx)(U,{})]})})]}),(0,q.jsx)(B,{control:e.control,name:`runtime_root_path`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsx)(H,{children:ie()}),(0,q.jsx)(V,{children:(0,q.jsx)(W,{placeholder:`./runtime`,...e})}),(0,q.jsx)(U,{})]})}),(0,q.jsx)(B,{control:e.control,name:`log_save_path`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsx)(H,{children:v()}),(0,q.jsx)(V,{children:(0,q.jsx)(W,{placeholder:`./logs`,...e})}),(0,q.jsx)(U,{})]})}),(0,q.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,q.jsx)(B,{control:e.control,name:`order_expiration_time`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsx)(H,{children:ue()}),(0,q.jsx)(V,{children:(0,q.jsx)(W,{placeholder:`10`,type:`number`,...e})}),(0,q.jsx)(U,{})]})}),(0,q.jsx)(B,{control:e.control,name:`order_notice_max_retry`,render:({field:e})=>(0,q.jsxs)(z,{children:[(0,q.jsx)(H,{children:oe()}),(0,q.jsx)(V,{children:(0,q.jsx)(W,{placeholder:`1`,type:`number`,...e})}),(0,q.jsx)(U,{})]})})]}),(0,q.jsxs)(S,{className:`mt-2 w-full`,disabled:t,type:`submit`,children:[t?(0,q.jsx)(N,{className:`animate-spin`}):null,r]})]})})}function Ke({credentials:e,onCopy:t,onTogglePassword:n,passwordLookupFailed:u,showPassword:_}){return(0,q.jsxs)(`div`,{className:`grid gap-4`,children:[(0,q.jsxs)(`div`,{className:`grid gap-4 rounded-2xl border border-emerald-500/20 bg-emerald-500/5 p-4 shadow-sm`,children:[(0,q.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,q.jsx)(`div`,{className:`flex size-10 shrink-0 items-center justify-center rounded-xl bg-emerald-500/12 text-emerald-600 dark:text-emerald-400`,children:(0,q.jsx)(Ce,{className:`size-5`})}),(0,q.jsxs)(`div`,{className:`space-y-1`,children:[(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,q.jsx)(`h3`,{className:`font-semibold text-base text-foreground`,children:r()}),e?(0,q.jsx)(G,{className:`rounded-md`,variant:`secondary`,children:g()}):null]}),(0,q.jsx)(`p`,{className:`text-muted-foreground text-sm leading-6`,children:l()})]})]}),e?(0,q.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,q.jsx)(`div`,{className:`rounded-xl border border-border/60 bg-background/85 p-4 shadow-sm`,children:(0,q.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,q.jsx)(`p`,{className:`text-muted-foreground text-xs uppercase tracking-wide`,children:ce()}),(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,q.jsx)(`p`,{className:`min-w-0 flex-1 truncate font-medium text-base text-foreground`,children:e.username}),(0,q.jsxs)(S,{"aria-label":i(),className:`scale-95 rounded-full`,onClick:()=>t(e.username),size:`icon`,type:`button`,variant:`ghost`,children:[(0,q.jsx)(D,{}),(0,q.jsx)(`span`,{className:`sr-only`,children:i()})]})]})]})}),(0,q.jsx)(`div`,{className:`rounded-xl border border-border/60 bg-background/85 p-4 shadow-sm`,children:(0,q.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,q.jsx)(G,{className:`w-fit rounded-md border-amber-200 bg-amber-50 text-amber-700 dark:border-amber-900/60 dark:bg-amber-950/40 dark:text-amber-300`,variant:`outline`,children:p()}),(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,q.jsx)(`p`,{className:`text-muted-foreground text-xs uppercase tracking-wide`,children:c()}),(0,q.jsxs)(G,{className:`rounded-md`,variant:`outline`,children:[(0,q.jsx)(Fe,{className:`size-3.5`}),f()]})]}),(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,q.jsx)(`p`,{className:`min-w-0 flex-1 break-all font-medium text-base text-foreground`,children:_?e.password:`•`.repeat(Math.max(e.password.length,10))}),(0,q.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,q.jsxs)(S,{"aria-label":_?o():d(),className:`scale-95 rounded-full`,onClick:n,size:`icon`,type:`button`,variant:`ghost`,children:[_?(0,q.jsx)(k,{}):(0,q.jsx)(A,{}),(0,q.jsx)(`span`,{className:`sr-only`,children:_?o():d()})]}),(0,q.jsxs)(S,{"aria-label":i(),className:`scale-95 rounded-full`,onClick:()=>t(e.password),size:`icon`,type:`button`,variant:`ghost`,children:[(0,q.jsx)(D,{}),(0,q.jsx)(`span`,{className:`sr-only`,children:i()})]})]})]}),(0,q.jsx)(`p`,{className:`text-muted-foreground text-sm leading-6`,children:a()})]})})]}):null,u?(0,q.jsxs)(`div`,{className:`flex items-start gap-3 rounded-xl border border-amber-200 bg-amber-50 p-4 text-amber-900 dark:border-amber-900/60 dark:bg-amber-950/40 dark:text-amber-100`,children:[(0,q.jsx)(we,{className:`mt-0.5 size-4 shrink-0`}),(0,q.jsxs)(`div`,{className:`space-y-1`,children:[(0,q.jsx)(`p`,{className:`font-medium text-sm`,children:m()}),(0,q.jsx)(`p`,{className:`text-amber-800/80 text-sm leading-6 dark:text-amber-100/75`,children:h()})]})]}):null]}),(0,q.jsx)(S,{asChild:!0,className:`w-full`,type:`button`,children:(0,q.jsx)(he,{to:`/sign-in`,children:s()})})]})}var qe=Te({app_name:L().min(1,`App Name is required`),app_uri:L().min(1,`App URI is required`).url(`Must be a valid URL (e.g. http://your-server-ip:8000)`),http_bind_addr:L().min(1,`Bind address is required`),http_bind_port:R({error:`Port must be a number`}).int().min(1,`Port must be ≥ 1`).max(65535,`Port must be ≤ 65535`),runtime_root_path:L().min(1,`Runtime root path is required`),log_save_path:L().min(1,`Log save path is required`),order_expiration_time:R({error:`Must be a number`}).int().min(1,`Must be ≥ 1 minute`),order_notice_max_retry:R({error:`Must be a number`}).int().min(0,`Must be ≥ 0`)}),$={app_name:`epusdt`,app_uri:``,http_bind_addr:`0.0.0.0`,http_bind_port:8e3,runtime_root_path:`./runtime`,log_save_path:`./logs`,order_expiration_time:10,order_notice_max_retry:1};function Je(){let[e,n]=(0,K.useState)(!1),[r,i]=(0,K.useState)(!1),[a,o]=(0,K.useState)(null),[s,c]=(0,K.useState)(null),[l,d]=(0,K.useState)(!1),[f,p]=(0,K.useState)(!1),m=Oe({resolver:De(qe),defaultValues:$,mode:`onChange`});(0,K.useEffect)(()=>{let e=!0;async function n(){try{let{data:n}=await t.GET(`/api/install/defaults`);if(!(e&&n))return;let r=Object.fromEntries(Object.entries(n).filter(([,e])=>e!==``&&e!=null));m.reset({...$,...r})}catch{}}return n().catch(()=>void 0),()=>{e=!1}},[m]);function h(e){if(!(0,Ie.default)(e)){I.error(u());return}I.success(me())}async function g(e){n(!0),o(null),d(!1);try{let{data:n,error:r,response:a}=await t.POST(`/api/install`,{body:e});if(!a.ok||r){o({variant:`destructive`,message:r?.error||b()});return}let s=n?.init_password?.trim()||``,l=s?{username:`admin`,password:s}:null;l||d(!0),i(!0),c(l)}catch{o({variant:`destructive`,message:b()})}finally{n(!1)}}let v=_();return e&&(v=re()),r&&(v=le()),(0,q.jsxs)(`div`,{className:`relative flex min-h-svh items-center justify-center px-4 py-10`,children:[(0,q.jsx)(ze,{centerVignette:!1,glitchColors:[`#3f3f46`,`#71717a`,`#a1a1aa`],glitchSpeed:`fast`,outerVignette:!1,smooth:!0}),(0,q.jsxs)(Pe,{className:`max-w-2xl border border-border/40 bg-card/55 shadow-xl backdrop-blur-xl`,children:[(0,q.jsxs)(je,{className:`space-y-6 border-border/40 border-b pb-8`,children:[(0,q.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,q.jsx)(Ee,{className:`size-10 shrink-0`}),(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`h1`,{className:`font-medium text-xl leading-tight`,children:`GMPay`}),(0,q.jsx)(`p`,{className:`mt-1 whitespace-nowrap text-muted-foreground text-xs`,children:te()})]})]}),(0,q.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,q.jsx)(j,{}),(0,q.jsx)(M,{})]})]}),r?null:(0,q.jsxs)(`div`,{className:`space-y-3`,children:[(0,q.jsx)(Ae,{className:`text-2xl tracking-tight`,children:y()}),(0,q.jsx)(Ne,{className:`max-w-xl text-sm leading-6`,children:ae()})]})]}),(0,q.jsx)(Me,{children:(0,q.jsxs)(`div`,{className:`grid gap-4`,children:[a?(0,q.jsxs)(Ve,{variant:a.variant,children:[(0,q.jsx)(He,{children:de()}),(0,q.jsx)(Q,{children:a.message})]}):null,r?(0,q.jsx)(Ke,{credentials:s,onCopy:h,onTogglePassword:()=>p(e=>!e),passwordLookupFailed:l,showPassword:f}):(0,q.jsx)(Ge,{form:m,loading:e,onSubmit:g,submitText:v})]})})]})]})}var Ye=Je;export{Ye as component}; \ No newline at end of file diff --git a/src/www/assets/integrations-Clnk2I57.js b/src/www/assets/integrations-vDkEDNxG.js similarity index 92% rename from src/www/assets/integrations-Clnk2I57.js rename to src/www/assets/integrations-vDkEDNxG.js index e39218a..bbe5401 100644 --- a/src/www/assets/integrations-Clnk2I57.js +++ b/src/www/assets/integrations-vDkEDNxG.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{As as n,Ds as r,Fs as i,Ms as a,Ns as o,Os as s,Ps as c,js as l,ks as u,tm as d}from"./messages-BOatyqUm.js";import{r as f}from"./route-wzPKSRj2.js";import{d as p,n as m,o as h,r as g,s as _}from"./data-table-1LQSBhN2.js";import{t as v}from"./badge-VJlwwTW5.js";import{t as y}from"./use-table-url-state-DP0Y4QjR.js";var b=e(t(),1),x=d(),S=[{name:`GMPay`,entries:[{method:`POST`,path:`/payments/gmpay/v1/order/create-transaction`}],requestFields:[`order_id`,`currency`,`token`,`network`,`amount`,`notify_url`,`signature`,`redirect_url?`,`name?`,`payment_type?`],callbackNote:u()},{name:`EPay Compatible`,entries:[{method:`POST`,path:`/payments/epay/v1/order/create-transaction/submit.php`},{method:`GET`,path:`/payments/epay/v1/order/create-transaction/submit.php`}],requestFields:[`pid`,`money`,`out_trade_no`,`notify_url`,`return_url?`,`name?`,`type?`,`sign`,`sign_type?`],callbackNote:s()},{name:`OKPay`,entries:[{method:`POST`,path:`/payments/okpay/v1/notify`}],requestFields:[`OkPay notify payload`],callbackNote:r()}];function C({method:e}){return(0,x.jsx)(v,{className:e===`GET`?`rounded border border-blue-500/30 bg-blue-500/10 font-mono text-blue-600 dark:text-blue-400`:`rounded border border-emerald-500/30 bg-emerald-500/10 font-mono text-emerald-600 dark:text-emerald-400`,variant:`outline`,children:e})}function w({field:e}){return(0,x.jsx)(`code`,{className:`rounded bg-muted px-1.5 py-0.5 font-mono text-foreground text-xs`,children:e})}function T({item:e}){let t=e.entries.reduce((e,t)=>(e[t.path]||(e[t.path]=[]),e[t.path].push(t.method),e),{});return(0,x.jsx)(`div`,{className:`flex flex-col gap-1.5`,children:Object.entries(t).map(([e,t])=>(0,x.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,x.jsx)(`div`,{className:`flex gap-1.5`,children:t.map(e=>(0,x.jsx)(C,{method:e},e))}),(0,x.jsx)(`code`,{className:`whitespace-normal break-words font-mono text-sm`,children:e})]},e))})}function E({fields:e}){return(0,x.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:e.map(e=>(0,x.jsx)(w,{field:e},e))})}var D=f(`/_authenticated/payment-setup/integrations`);function O(){let{pagination:e,onPaginationChange:t,ensurePageInRange:r}=y({search:D.useSearch(),navigate:D.useNavigate(),pagination:{defaultPage:1,defaultPageSize:10}}),s=h({data:S,columns:(0,b.useMemo)(()=>[{accessorKey:`name`,header:o(),cell:({row:e})=>(0,x.jsx)(`span`,{className:`font-medium`,children:e.original.name})},{accessorKey:`entries`,header:a(),cell:({row:e})=>(0,x.jsx)(T,{item:e.original})},{accessorKey:`requestFields`,header:l(),cell:({row:e})=>(0,x.jsx)(E,{fields:e.original.requestFields})},{accessorKey:`callbackNote`,header:n(),cell:({row:e})=>(0,x.jsx)(`span`,{className:`whitespace-normal break-words text-muted-foreground text-sm`,children:e.original.callbackNote})}],[]),state:{pagination:e},onPaginationChange:t,getCoreRowModel:_(),getPaginationRowModel:p()});return(0,b.useEffect)(()=>{r(s.getPageCount())},[s,r]),(0,x.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,x.jsxs)(`div`,{className:`space-y-1`,children:[(0,x.jsx)(`h3`,{className:`font-semibold text-lg`,children:i()}),(0,x.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:c()})]}),(0,x.jsx)(g,{table:s}),(0,x.jsx)(m,{className:`mt-auto`,table:s})]})}function k(){return(0,x.jsx)(O,{})}var A=k;export{A as component}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{As as n,Ds as r,Fs as i,Ms as a,Ns as o,Os as s,Ps as c,js as l,ks as u,tm as d}from"./messages-CL4J6BaJ.js";import{r as f}from"./route-gtb8yu3E.js";import{d as p,n as m,o as h,r as g,s as _}from"./data-table-DC6T69tr.js";import{t as v}from"./badge-BRKB3301.js";import{t as y}from"./use-table-url-state-DP0Y4QjR.js";var b=e(t(),1),x=d(),S=[{name:`GMPay`,entries:[{method:`POST`,path:`/payments/gmpay/v1/order/create-transaction`}],requestFields:[`order_id`,`currency`,`token`,`network`,`amount`,`notify_url`,`signature`,`redirect_url?`,`name?`,`payment_type?`],callbackNote:u()},{name:`EPay Compatible`,entries:[{method:`POST`,path:`/payments/epay/v1/order/create-transaction/submit.php`},{method:`GET`,path:`/payments/epay/v1/order/create-transaction/submit.php`}],requestFields:[`pid`,`money`,`out_trade_no`,`notify_url`,`return_url?`,`name?`,`type?`,`sign`,`sign_type?`],callbackNote:s()},{name:`OKPay`,entries:[{method:`POST`,path:`/payments/okpay/v1/notify`}],requestFields:[`OkPay notify payload`],callbackNote:r()}];function C({method:e}){return(0,x.jsx)(v,{className:e===`GET`?`rounded border border-blue-500/30 bg-blue-500/10 font-mono text-blue-600 dark:text-blue-400`:`rounded border border-emerald-500/30 bg-emerald-500/10 font-mono text-emerald-600 dark:text-emerald-400`,variant:`outline`,children:e})}function w({field:e}){return(0,x.jsx)(`code`,{className:`rounded bg-muted px-1.5 py-0.5 font-mono text-foreground text-xs`,children:e})}function T({item:e}){let t=e.entries.reduce((e,t)=>(e[t.path]||(e[t.path]=[]),e[t.path].push(t.method),e),{});return(0,x.jsx)(`div`,{className:`flex flex-col gap-1.5`,children:Object.entries(t).map(([e,t])=>(0,x.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,x.jsx)(`div`,{className:`flex gap-1.5`,children:t.map(e=>(0,x.jsx)(C,{method:e},e))}),(0,x.jsx)(`code`,{className:`whitespace-normal break-words font-mono text-sm`,children:e})]},e))})}function E({fields:e}){return(0,x.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:e.map(e=>(0,x.jsx)(w,{field:e},e))})}var D=f(`/_authenticated/payment-setup/integrations`);function O(){let{pagination:e,onPaginationChange:t,ensurePageInRange:r}=y({search:D.useSearch(),navigate:D.useNavigate(),pagination:{defaultPage:1,defaultPageSize:10}}),s=h({data:S,columns:(0,b.useMemo)(()=>[{accessorKey:`name`,header:o(),cell:({row:e})=>(0,x.jsx)(`span`,{className:`font-medium`,children:e.original.name})},{accessorKey:`entries`,header:a(),cell:({row:e})=>(0,x.jsx)(T,{item:e.original})},{accessorKey:`requestFields`,header:l(),cell:({row:e})=>(0,x.jsx)(E,{fields:e.original.requestFields})},{accessorKey:`callbackNote`,header:n(),cell:({row:e})=>(0,x.jsx)(`span`,{className:`whitespace-normal break-words text-muted-foreground text-sm`,children:e.original.callbackNote})}],[]),state:{pagination:e},onPaginationChange:t,getCoreRowModel:_(),getPaginationRowModel:p()});return(0,b.useEffect)(()=>{r(s.getPageCount())},[s,r]),(0,x.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,x.jsxs)(`div`,{className:`space-y-1`,children:[(0,x.jsx)(`h3`,{className:`font-semibold text-lg`,children:i()}),(0,x.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:c()})]}),(0,x.jsx)(g,{table:s}),(0,x.jsx)(m,{className:`mt-auto`,table:s})]})}function k(){return(0,x.jsx)(O,{})}var A=k;export{A as component}; \ No newline at end of file diff --git a/src/www/assets/keys-D0eVvlbn.js b/src/www/assets/keys-CMptb3PN.js similarity index 93% rename from src/www/assets/keys-D0eVvlbn.js rename to src/www/assets/keys-CMptb3PN.js index 5412402..b15401d 100644 --- a/src/www/assets/keys-D0eVvlbn.js +++ b/src/www/assets/keys-CMptb3PN.js @@ -1,2 +1,2 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{a as t}from"./auth-store-De4Y7PFV.js";import{t as n}from"./router-Z0tUklFK.js";import{t as r}from"./react-CO2uhaBc.js";import{$i as i,Ai as a,Bi as o,Ci as s,Di as c,Ei as l,Fi as u,Gi as d,Hi as f,Ii as p,Ji as m,Ki as h,Ko as ee,Li as g,Lp as _,Mi as te,Ni as ne,Oi as v,Pi as re,Qi as ie,Ri as ae,Rp as y,Si as oe,Ti as se,Ts as ce,Ui as le,Vi as ue,Wi as de,Xi as fe,Xp as b,Xr as x,Yi as pe,Zi as S,_i as C,bi as w,di as T,fi as E,gi as D,hi as O,ji as me,ki as k,li as A,mi as he,op as ge,pi as j,qi as _e,tm as ve,ui as M,uo as ye,vi as N,wi as be,xi as P,yi as F,zi as xe}from"./messages-BOatyqUm.js";import{r as I}from"./route-wzPKSRj2.js";import{o as L,s as R,z}from"./search-provider-C-_FQI9C.js";import{t as B}from"./button-C_NDYaz8.js";import{t as Se}from"./confirm-dialog-D1L-0EhT.js";import{a as Ce,i as we,n as Te,r as V,t as Ee}from"./select-CzebumOF.js";import{t as De}from"./separator-CsUemQNs.js";import{t as Oe}from"./switch-CgoJjvdz.js";import{t as H}from"./createLucideIcon-Br0Bd5k2.js";import{t as U}from"./skeleton-CmDjDV1O.js";import{n as ke,t as Ae}from"./copy-to-clipboard-C1tj4a8X.js";import{t as je}from"./eye-off-B8hO0oST.js";import{t as Me}from"./eye-DAKGLydt.js";import{n as Ne,r as Pe,t as Fe}from"./empty-state-CxE4wU3V.js";import{n as Ie,t as Le}from"./main-C1R3Hvq1.js";import{n as Re,t as ze}from"./trash-2-9I8lAjeE.js";import{t as Be}from"./shield-check-MAPDL1u8.js";import{i as Ve,o as He,r as Ue,s as We,t as Ge}from"./dialog-CZ-2RPb-.js";import{n as W}from"./dist-JOUh6qvR.js";import{c as G,s as Ke}from"./zod-rwFXxHlg.js";import{a as K,c as qe,i as q,l as Je,n as J,o as Y,r as Ye,s as X,t as Xe}from"./form-KfFEakes.js";import{t as Z}from"./input-8zzM34r5.js";import{t as Ze}from"./page-header-GTtyZFBB.js";import{t as Qe}from"./textarea-C8ejjLzk.js";import{t as $e}from"./badge-VJlwwTW5.js";var et=H(`arrow-down-a-z`,[[`path`,{d:`m3 16 4 4 4-4`,key:`1co6wj`}],[`path`,{d:`M7 20V4`,key:`1yoxec`}],[`path`,{d:`M20 8h-5`,key:`1vsyxs`}],[`path`,{d:`M15 10V6.5a2.5 2.5 0 0 1 5 0V10`,key:`ag13bf`}],[`path`,{d:`M15 14h5l-5 6h5`,key:`ur5jdg`}]]),tt=H(`arrow-up-a-z`,[[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}],[`path`,{d:`M20 8h-5`,key:`1vsyxs`}],[`path`,{d:`M15 10V6.5a2.5 2.5 0 0 1 5 0V10`,key:`ag13bf`}],[`path`,{d:`M15 14h5l-5 6h5`,key:`ur5jdg`}]]),nt=H(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),rt=e(Ae(),1),Q=e(r(),1),$=ve(),it=Ke({name:G().min(1,A()),notify_url:G().optional(),ip_whitelist:G().optional()});function at({open:e,onOpenChange:n,currentRow:r,onSuccess:i}){let a=Je({resolver:qe(it),defaultValues:{name:``,notify_url:``,ip_whitelist:``}}),o=t.useMutation(`post`,`/admin/api/v1/api-keys`),s=t.useMutation(`patch`,`/admin/api/v1/api-keys/{id}`),l=o.data?.data?.secret_key;(0,Q.useEffect)(()=>{e&&a.reset({name:r?.name??``,notify_url:r?.notify_url??``,ip_whitelist:r?.ip_whitelist??``})},[e,r,a]);function u(e){e||(a.reset({name:``,notify_url:``,ip_whitelist:``}),o.reset(),s.reset()),n(e)}function d(e){if(r?.id){s.mutate({params:{path:{id:r.id}},body:{name:e.name,notify_url:e.notify_url,ip_whitelist:e.ip_whitelist||void 0}},{onSuccess:()=>{W.success(T()),n(!1),i?.()}});return}o.mutate({body:{name:e.name,notify_url:e.notify_url,ip_whitelist:e.ip_whitelist||void 0}},{onSuccess:()=>{W.success(M()),i?.()}})}function f(){u(!1)}let p=o.isPending||s.isPending;return(0,$.jsx)(Ge,{onOpenChange:u,open:e,children:(0,$.jsxs)(Ue,{children:[(0,$.jsxs)(He,{children:[(0,$.jsx)(We,{children:r?w():F()}),(0,$.jsx)(Ve,{children:r?N():C()})]}),(0,$.jsx)(Xe,{...a,children:(0,$.jsxs)(`form`,{className:`space-y-4`,onSubmit:a.handleSubmit(d),children:[(0,$.jsx)(q,{control:a.control,name:`name`,render:({field:e})=>(0,$.jsxs)(K,{children:[(0,$.jsx)(Y,{children:oe()}),(0,$.jsx)(J,{children:(0,$.jsx)(Z,{placeholder:P(),...e})}),(0,$.jsx)(X,{})]})}),(0,$.jsx)(q,{control:a.control,name:`notify_url`,render:({field:e})=>(0,$.jsxs)(K,{children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,$.jsx)(Y,{children:c()}),(0,$.jsx)($e,{variant:`secondary`,children:y()})]}),(0,$.jsx)(J,{children:(0,$.jsx)(Z,{disabled:!0,placeholder:`https://example.com/callback`,...e})}),(0,$.jsx)(Ye,{children:_()}),(0,$.jsx)(X,{})]})}),(0,$.jsx)(q,{control:a.control,name:`ip_whitelist`,render:({field:e})=>(0,$.jsxs)(K,{children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,$.jsx)(Y,{children:D()}),(0,$.jsx)($e,{variant:`secondary`,children:y()})]}),(0,$.jsx)(J,{children:(0,$.jsx)(Qe,{disabled:!0,placeholder:`127.0.0.1 +import{r as e}from"./chunk-DECur_0Z.js";import{a as t}from"./auth-store-8ocF_FHU.js";import{t as n}from"./router-xxaOxfVd.js";import{t as r}from"./react-CO2uhaBc.js";import{$i as i,Ai as a,Bi as o,Ci as s,Di as c,Ei as l,Fi as u,Gi as d,Hi as f,Ii as p,Ji as m,Ki as h,Ko as ee,Li as g,Lp as _,Mi as te,Ni as ne,Oi as v,Pi as re,Qi as ie,Ri as ae,Rp as y,Si as oe,Ti as se,Ts as ce,Ui as le,Vi as ue,Wi as de,Xi as fe,Xp as b,Xr as x,Yi as pe,Zi as S,_i as C,bi as w,di as T,fi as E,gi as D,hi as O,ji as me,ki as k,li as A,mi as he,op as ge,pi as j,qi as _e,tm as ve,ui as M,uo as ye,vi as N,wi as be,xi as P,yi as F,zi as xe}from"./messages-CL4J6BaJ.js";import{r as I}from"./route-gtb8yu3E.js";import{o as L,s as R,z}from"./search-provider-CTRbHqNx.js";import{t as B}from"./button-NLSeBFht.js";import{t as Se}from"./confirm-dialog-Crc1Jrzv.js";import{a as Ce,i as we,n as Te,r as V,t as Ee}from"./select-D2uO5-De.js";import{t as De}from"./separator-CqhQIQ-B.js";import{t as Oe}from"./switch-BST3z-JX.js";import{t as H}from"./createLucideIcon-Br0Bd5k2.js";import{t as U}from"./skeleton-B4TLI5_E.js";import{n as ke,t as Ae}from"./copy-to-clipboard-C1tj4a8X.js";import{t as je}from"./eye-off-B8hO0oST.js";import{t as Me}from"./eye-DAKGLydt.js";import{n as Ne,r as Pe,t as Fe}from"./empty-state-BtKoq2f4.js";import{n as Ie,t as Le}from"./main-CTY49s_f.js";import{n as Re,t as ze}from"./trash-2-9I8lAjeE.js";import{t as Be}from"./shield-check-MAPDL1u8.js";import{i as Ve,o as He,r as Ue,s as We,t as Ge}from"./dialog-CtyiwzAl.js";import{n as W}from"./dist-Dd-sCJIt.js";import{c as G,s as Ke}from"./zod-rwFXxHlg.js";import{a as K,c as qe,i as q,l as Je,n as J,o as Y,r as Ye,s as X,t as Xe}from"./form-C_YekIvK.js";import{t as Z}from"./input-DAqep8ZY.js";import{t as Ze}from"./page-header-B7O10aw9.js";import{t as Qe}from"./textarea-G_CiBcLa.js";import{t as $e}from"./badge-BRKB3301.js";var et=H(`arrow-down-a-z`,[[`path`,{d:`m3 16 4 4 4-4`,key:`1co6wj`}],[`path`,{d:`M7 20V4`,key:`1yoxec`}],[`path`,{d:`M20 8h-5`,key:`1vsyxs`}],[`path`,{d:`M15 10V6.5a2.5 2.5 0 0 1 5 0V10`,key:`ag13bf`}],[`path`,{d:`M15 14h5l-5 6h5`,key:`ur5jdg`}]]),tt=H(`arrow-up-a-z`,[[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}],[`path`,{d:`M20 8h-5`,key:`1vsyxs`}],[`path`,{d:`M15 10V6.5a2.5 2.5 0 0 1 5 0V10`,key:`ag13bf`}],[`path`,{d:`M15 14h5l-5 6h5`,key:`ur5jdg`}]]),nt=H(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),rt=e(Ae(),1),Q=e(r(),1),$=ve(),it=Ke({name:G().min(1,A()),notify_url:G().optional(),ip_whitelist:G().optional()});function at({open:e,onOpenChange:n,currentRow:r,onSuccess:i}){let a=Je({resolver:qe(it),defaultValues:{name:``,notify_url:``,ip_whitelist:``}}),o=t.useMutation(`post`,`/admin/api/v1/api-keys`),s=t.useMutation(`patch`,`/admin/api/v1/api-keys/{id}`),l=o.data?.data?.secret_key;(0,Q.useEffect)(()=>{e&&a.reset({name:r?.name??``,notify_url:r?.notify_url??``,ip_whitelist:r?.ip_whitelist??``})},[e,r,a]);function u(e){e||(a.reset({name:``,notify_url:``,ip_whitelist:``}),o.reset(),s.reset()),n(e)}function d(e){if(r?.id){s.mutate({params:{path:{id:r.id}},body:{name:e.name,notify_url:e.notify_url,ip_whitelist:e.ip_whitelist||void 0}},{onSuccess:()=>{W.success(T()),n(!1),i?.()}});return}o.mutate({body:{name:e.name,notify_url:e.notify_url,ip_whitelist:e.ip_whitelist||void 0}},{onSuccess:()=>{W.success(M()),i?.()}})}function f(){u(!1)}let p=o.isPending||s.isPending;return(0,$.jsx)(Ge,{onOpenChange:u,open:e,children:(0,$.jsxs)(Ue,{children:[(0,$.jsxs)(He,{children:[(0,$.jsx)(We,{children:r?w():F()}),(0,$.jsx)(Ve,{children:r?N():C()})]}),(0,$.jsx)(Xe,{...a,children:(0,$.jsxs)(`form`,{className:`space-y-4`,onSubmit:a.handleSubmit(d),children:[(0,$.jsx)(q,{control:a.control,name:`name`,render:({field:e})=>(0,$.jsxs)(K,{children:[(0,$.jsx)(Y,{children:oe()}),(0,$.jsx)(J,{children:(0,$.jsx)(Z,{placeholder:P(),...e})}),(0,$.jsx)(X,{})]})}),(0,$.jsx)(q,{control:a.control,name:`notify_url`,render:({field:e})=>(0,$.jsxs)(K,{children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,$.jsx)(Y,{children:c()}),(0,$.jsx)($e,{variant:`secondary`,children:y()})]}),(0,$.jsx)(J,{children:(0,$.jsx)(Z,{disabled:!0,placeholder:`https://example.com/callback`,...e})}),(0,$.jsx)(Ye,{children:_()}),(0,$.jsx)(X,{})]})}),(0,$.jsx)(q,{control:a.control,name:`ip_whitelist`,render:({field:e})=>(0,$.jsxs)(K,{children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,$.jsx)(Y,{children:D()}),(0,$.jsx)($e,{variant:`secondary`,children:y()})]}),(0,$.jsx)(J,{children:(0,$.jsx)(Qe,{disabled:!0,placeholder:`127.0.0.1 10.0.0.2`,...e})}),(0,$.jsx)(Ye,{children:_()}),(0,$.jsx)(X,{})]})}),!r&&l?(0,$.jsxs)(`div`,{className:`rounded-lg border bg-muted/40 p-3 text-sm`,children:[(0,$.jsx)(`div`,{className:`mb-1 font-medium text-amber-600`,children:O()}),(0,$.jsx)(`div`,{className:`break-all font-mono text-muted-foreground`,children:l})]}):null,(0,$.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,$.jsx)(B,{onClick:f,type:`button`,variant:`outline`,children:!r&&l?he():b()}),(!l||r)&&(0,$.jsxs)(B,{disabled:p,type:`submit`,children:[p&&x(),!p&&r&&j(),!(p||r)&&E()]})]})]})})]})})}function ot({data:e,isLoading:t,onAction:n,onCopySecret:r,onToggleSecret:i,secretStates:o}){let[u,d]=(0,Q.useState)(new Set);function f(e){try{return`${new URL(e).protocol}//••••••••`}catch{return`••••••••••••••••`}}function p(e){return e?.visible?e.loading?v():e.value||`-`:`••••••••••••••••`}function m(e,t){return e?t?e:f(e):`-`}return t?(0,$.jsx)(`ul`,{className:`faded-bottom no-scrollbar grid gap-4 overflow-auto pt-4 pb-16 md:grid-cols-2 lg:grid-cols-3`,children:[`api-key-skeleton-1`,`api-key-skeleton-2`,`api-key-skeleton-3`,`api-key-skeleton-4`,`api-key-skeleton-5`,`api-key-skeleton-6`].map(e=>(0,$.jsx)(`li`,{"aria-hidden":`true`,className:`rounded-lg border`,children:(0,$.jsxs)(`div`,{className:`flex h-full flex-col overflow-hidden p-4`,children:[(0,$.jsxs)(`div`,{className:`mb-6 flex items-center justify-between gap-3`,children:[(0,$.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-2`,children:[(0,$.jsx)(U,{className:`h-5 w-32 max-w-full`}),(0,$.jsx)(U,{className:`h-3 w-20`})]}),(0,$.jsx)(U,{className:`h-6 w-11 rounded-full`})]}),(0,$.jsxs)(`div`,{className:`mb-6 flex-1 space-y-3`,children:[(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[(0,$.jsx)(U,{className:`mt-1 h-3 w-12 shrink-0`}),(0,$.jsx)(U,{className:`h-4 w-28 min-w-0 flex-1`})]}),(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[(0,$.jsx)(U,{className:`mt-1 h-3 w-12 shrink-0`}),(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-start gap-2`,children:[(0,$.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-2`,children:[(0,$.jsx)(U,{className:`h-4 w-full`}),(0,$.jsx)(U,{className:`h-4 w-9/12`})]}),(0,$.jsx)(U,{className:`size-8 shrink-0 rounded-md`}),(0,$.jsx)(U,{className:`size-8 shrink-0 rounded-md`})]})]}),[`w-28`,`w-full`,`w-11/12`,`w-24`,`w-32`].map(e=>(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[(0,$.jsx)(U,{className:`mt-1 h-3 w-12 shrink-0`}),(0,$.jsx)(U,{className:`h-4 min-w-0 flex-1 ${e}`})]},e))]}),(0,$.jsx)(`div`,{className:`-mx-4 mt-auto -mb-4 border-t`,children:(0,$.jsx)(`div`,{className:`grid grid-cols-3`,children:[`api-key-action-skeleton-1`,`api-key-action-skeleton-2`,`api-key-action-skeleton-3`].map((e,t)=>(0,$.jsx)(`div`,{className:`flex h-11 items-center justify-center px-4 ${t<2?`border-r`:``}`,children:(0,$.jsx)(U,{className:`h-4 w-16`})},e))})})]})},e))}):e.length?(0,$.jsx)(`ul`,{className:`faded-bottom no-scrollbar grid gap-4 overflow-auto pt-4 pb-16 md:grid-cols-2 lg:grid-cols-3`,children:e.map(e=>{let t=e.status===1,f=String(e.id??e.pid??``),h=o[f],g=u.has(f),_=[{label:`PID`,value:e.pid??`-`},{label:se(),value:p(h),visible:h?.visible,onToggle:()=>i(e),onCopy:()=>r(e)},{label:c(),value:m(e.notify_url,g),visible:g,onToggle:e.notify_url?()=>d(e=>{let t=new Set(e);return t.has(f)?t.delete(f):t.add(f),t}):void 0},{label:l(),value:e.ip_whitelist||`-`},{label:te(),value:R(e.call_count??0,0)},{label:me(),value:L(e.last_used_at)||a()},{label:ee(),value:L(e.updated_at)||`-`}];return(0,$.jsx)(`li`,{className:`rounded-lg border hover:shadow-md`,children:(0,$.jsxs)(`div`,{className:`flex h-full flex-col overflow-hidden p-4`,children:[(0,$.jsxs)(`div`,{className:`mb-6 flex items-center justify-between`,children:[(0,$.jsx)(`div`,{className:`min-w-0`,children:(0,$.jsx)(`h2`,{className:`truncate font-semibold`,children:e.name||e.pid||`#${e.id}`})}),(0,$.jsx)(Oe,{checked:t,onCheckedChange:()=>n(t?`disable`:`enable`,e)})]}),(0,$.jsxs)(`div`,{className:`mb-6 flex-1 space-y-2 text-muted-foreground text-sm`,children:[(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[(0,$.jsx)(`span`,{className:`w-16 shrink-0 text-foreground/80`,children:`PID`}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 break-all`,children:e.pid??`-`})]}),_.filter(e=>e.label!==`PID`).map(e=>(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[(0,$.jsx)(`span`,{className:`w-16 shrink-0 text-foreground/80`,children:e.label}),(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-start gap-2`,children:[(0,$.jsx)(`span`,{className:`min-w-0 flex-1 break-all`,children:e.value}),e.onCopy&&(0,$.jsx)(B,{className:`size-8 shrink-0`,onClick:e.onCopy,size:`icon-sm`,variant:`ghost`,children:(0,$.jsx)(ke,{className:`h-4.5 w-4.5`})}),e.onToggle&&(0,$.jsx)(B,{className:`size-8 shrink-0`,onClick:e.onToggle,size:`icon-sm`,variant:`ghost`,children:e.visible?(0,$.jsx)(je,{className:`h-4.5 w-4.5`}):(0,$.jsx)(Me,{className:`h-4.5 w-4.5`})})]})]},e.label))]}),(0,$.jsx)(`div`,{className:`-mx-4 mt-auto -mb-4 border-t`,children:(0,$.jsxs)(`div`,{className:`grid grid-cols-3`,children:[(0,$.jsxs)(B,{className:`h-11 w-full rounded-none border-r px-0 text-muted-foreground hover:bg-muted/60 hover:text-foreground`,onClick:()=>n(`edit`,e),size:`sm`,variant:`ghost`,children:[(0,$.jsx)(nt,{className:`h-4 w-4`}),be()]}),(0,$.jsxs)(B,{className:`h-11 w-full rounded-none border-r px-0 text-muted-foreground hover:bg-muted/60 hover:text-foreground`,onClick:()=>n(`rotate-secret`,e),size:`sm`,variant:`ghost`,children:[(0,$.jsx)(z,{className:`h-4 w-4`}),s()]}),(0,$.jsxs)(B,{className:`h-11 w-full rounded-none px-0 text-destructive hover:bg-destructive/8 hover:text-destructive`,onClick:()=>n(`delete`,e),size:`sm`,variant:`ghost`,children:[(0,$.jsx)(ze,{className:`h-4 w-4 text-destructive`}),ye()]})]})})]})},e.id??e.pid)})}):(0,$.jsx)(`div`,{className:`pt-4`,children:(0,$.jsx)(Fe,{description:k()})})}var st=I(`/_authenticated/keys/`),ct=new Map([[`all`,i()],[`enabled`,ie()],[`disabled`,S()]]);function lt(){let{filter:e=``,type:r=`all`,sort:s=`asc`}=st.useSearch(),c=st.useNavigate(),l=t.useQuery(`get`,`/admin/api/v1/api-keys`),ee=t.useMutation(`delete`,`/admin/api/v1/api-keys/{id}`),_=t.useMutation(`post`,`/admin/api/v1/api-keys/{id}/status`),v=t.useMutation(`get`,`/admin/api/v1/api-keys/{id}/secret`),y=t.useMutation(`post`,`/admin/api/v1/api-keys/{id}/rotate-secret`),oe=t.useMutation(`get`,`/admin/api/v1/api-keys/{id}/stats`),[se,b]=(0,Q.useState)(!1),[x,C]=(0,Q.useState)(null),[w,T]=(0,Q.useState)(null),[E,D]=(0,Q.useState)(null),[O,k]=(0,Q.useState)({}),[A,he]=(0,Q.useState)(s),[j,ve]=(0,Q.useState)(r),[M,ye]=(0,Q.useState)(e);async function N(){await n.invalidateQueries({queryKey:[`get`,`/admin/api/v1/api-keys`]})}async function be(){if(!w?.row.id)return;let e=w.row.id;w.action===`delete`?(await ee.mutateAsync({params:{path:{id:e}}}),W.success(fe())):(w.action===`enable`||w.action===`disable`)&&(await _.mutateAsync({params:{path:{id:e}},body:{status:w.action===`enable`?1:2}}),W.success(ce())),await N(),T(null)}function P(e){return String(e.id??e.pid??``)}async function F(e,t){let n=P(e),r=t?.visible??O[n]?.visible??!1;k(e=>({...e,[n]:{loading:!0,value:e[n]?.value??``,visible:r}}));try{let t=await v.mutateAsync({params:{path:{id:e.id}}}),i=typeof t.data==`object`&&t.data&&`secret_key`in t.data?String(t.data.secret_key??``):``;return k(e=>({...e,[n]:{loading:!1,value:i||`-`,visible:r}})),i||`-`}catch{return k(e=>({...e,[n]:{loading:!1,value:e[n]?.value??``,visible:r}})),W.error(pe()),null}}async function I(e){if(!e.id){W.error(m());return}let t=P(e),n=O[t];if(n?.visible){k(e=>({...e,[t]:{...n,visible:!1}}));return}if(n?.value){k(e=>({...e,[t]:{...n,visible:!0}}));return}await F(e,{visible:!0})}async function L(e){if(!e.id){W.error(m());return}let t=P(e),n=O[t]?.value??``;if(n||=await F(e,{visible:O[t]?.visible??!1})??``,!n||n===`-`){W.error(_e());return}(0,rt.default)(n),W.success(h())}async function z(e){let t=await y.mutateAsync({params:{path:{id:e.id}}}),n=P(e);k(e=>({...e,[n]:{loading:!1,value:t.data?.secret_key??`-`,visible:!0}})),W.success(d()),await N()}async function Oe(e){let t=await oe.mutateAsync({params:{path:{id:e.id}}});D({apiKey:e.pid??`#${e.id}`,stats:t.data??{}})}async function H(e,t){if(!t.id){W.error(m());return}if(e===`edit`){C(t),b(!0);return}if(e===`delete`){T({action:e,row:t});return}switch(e){case`enable`:case`disable`:await _.mutateAsync({params:{path:{id:t.id}},body:{status:e===`enable`?1:2}}),W.success(ce()),await N();break;case`rotate-secret`:await z(t);break;case`view-stats`:await Oe(t);break;default:break}}let U=[...l.data?.data??[]].sort((e,t)=>{let n=(e.name??e.pid??`#${e.id??``}`).toLowerCase(),r=(t.name??t.pid??`#${t.id??``}`).toLowerCase();return A===`asc`?n.localeCompare(r):r.localeCompare(n)}).filter(e=>j===`enabled`?e.status===1:j===`disabled`?e.status!==1:!0).filter(e=>{let t=M.trim().toLowerCase();return t?(e.pid??``).toLowerCase().includes(t)||(e.name??``).toLowerCase().includes(t)||(e.notify_url??``).toLowerCase().includes(t):!0});return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Ie,{}),(0,$.jsxs)(Le,{fixed:!0,children:[(0,$.jsx)(Ze,{actions:(0,$.jsxs)(B,{onClick:()=>{C(null),b(!0)},children:[(0,$.jsx)(Re,{className:`mr-2 h-4 w-4`}),de()]}),description:le(),title:f()}),(0,$.jsxs)(`div`,{className:`my-4 flex items-end justify-between sm:my-0 sm:items-center`,children:[(0,$.jsxs)(`div`,{className:`flex flex-col gap-4 sm:my-4 sm:flex-row`,children:[(0,$.jsx)(Z,{className:`h-9 w-40 lg:w-62.5`,onChange:e=>{ye(e.target.value),c({search:t=>({...t,filter:e.target.value||void 0})})},placeholder:ue(),value:M}),(0,$.jsxs)(Ee,{onValueChange:e=>{ve(e),c({search:t=>({...t,type:e===`all`?void 0:e})})},value:j,children:[(0,$.jsx)(we,{className:`w-36`,children:(0,$.jsx)(Ce,{children:ct.get(j)})}),(0,$.jsxs)(Te,{children:[(0,$.jsx)(V,{value:`all`,children:i()}),(0,$.jsx)(V,{value:`enabled`,children:ie()}),(0,$.jsx)(V,{value:`disabled`,children:S()})]})]})]}),(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsxs)(B,{onClick:N,variant:`outline`,children:[(0,$.jsx)(Pe,{className:`mr-2 h-4 w-4`}),ge()]}),(0,$.jsxs)(Ee,{onValueChange:e=>{he(e),c({search:t=>({...t,sort:e})})},value:A,children:[(0,$.jsx)(we,{className:`w-16`,children:(0,$.jsx)(Ce,{children:(0,$.jsx)(Ne,{size:18})})}),(0,$.jsxs)(Te,{align:`end`,children:[(0,$.jsx)(V,{value:`asc`,children:(0,$.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,$.jsx)(tt,{size:16}),(0,$.jsx)(`span`,{children:o()})]})}),(0,$.jsx)(V,{value:`desc`,children:(0,$.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,$.jsx)(et,{size:16}),(0,$.jsx)(`span`,{children:xe()})]})})]})]})]})]}),(0,$.jsx)(De,{className:`shadow-sm`}),(0,$.jsx)(ot,{data:U,isLoading:l.isLoading,onAction:H,onCopySecret:L,onToggleSecret:I,secretStates:O})]}),(0,$.jsx)(at,{currentRow:x,onOpenChange:e=>{b(e),e||C(null)},onSuccess:()=>l.refetch(),open:se}),w&&(0,$.jsx)(Se,{confirmText:w.action===`delete`?ae():g(),desc:(0,$.jsx)(`span`,{children:p({target:String(w.row.pid??w.row.id??``),action:w.action})}),destructive:w.action===`delete`,handleConfirm:be,onOpenChange:()=>T(null),open:!0,title:w.action===`delete`?u():re()}),(0,$.jsx)(Ge,{onOpenChange:()=>D(null),open:!!E,children:(0,$.jsxs)(Ue,{children:[(0,$.jsxs)(He,{children:[(0,$.jsxs)(We,{className:`flex items-center gap-2`,children:[(0,$.jsx)(Be,{className:`h-4 w-4`}),ne()]}),(0,$.jsx)(Ve,{children:E?.apiKey})]}),(0,$.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,$.jsxs)(`div`,{className:`rounded-lg border p-4`,children:[(0,$.jsxs)(`div`,{className:`mb-2 flex items-center gap-2 text-muted-foreground text-sm`,children:[(0,$.jsx)(Me,{className:`h-4 w-4`}),` `,te()]}),(0,$.jsx)(`div`,{className:`font-semibold text-2xl`,children:R(E?.stats.call_count??0,0)})]}),(0,$.jsxs)(`div`,{className:`rounded-lg border p-4`,children:[(0,$.jsxs)(`div`,{className:`mb-2 flex items-center gap-2 text-muted-foreground text-sm`,children:[(0,$.jsx)(Pe,{className:`h-4 w-4`}),` `,me()]}),(0,$.jsx)(`div`,{className:`font-medium text-sm`,children:E?.stats.last_used_at??a()})]})]})]})})]})}var ut=lt;export{ut as component}; \ No newline at end of file diff --git a/src/www/assets/label-DNL0sHKL.js b/src/www/assets/label-DohxFN8a.js similarity index 83% rename from src/www/assets/label-DNL0sHKL.js rename to src/www/assets/label-DohxFN8a.js index abf065d..c29dff1 100644 --- a/src/www/assets/label-DNL0sHKL.js +++ b/src/www/assets/label-DohxFN8a.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./dist-Cc8_LDAq.js";import{i}from"./button-C_NDYaz8.js";var a=e(t(),1),o=n(),s=`Label`,c=a.forwardRef((e,t)=>(0,o.jsx)(r.label,{...e,ref:t,onMouseDown:t=>{t.target.closest(`button, input, select, textarea`)||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));c.displayName=s;var l=c;function u({className:e,...t}){return(0,o.jsx)(l,{className:i(`flex select-none items-center gap-2 font-medium text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50`,e),"data-slot":`label`,...t})}export{u as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";import{t as r}from"./dist-D3WFT-Yo.js";import{i}from"./button-NLSeBFht.js";var a=e(t(),1),o=n(),s=`Label`,c=a.forwardRef((e,t)=>(0,o.jsx)(r.label,{...e,ref:t,onMouseDown:t=>{t.target.closest(`button, input, select, textarea`)||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));c.displayName=s;var l=c;function u({className:e,...t}){return(0,o.jsx)(l,{className:i(`flex select-none items-center gap-2 font-medium text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50`,e),"data-slot":`label`,...t})}export{u as t}; \ No newline at end of file diff --git a/src/www/assets/labels-Cbc2zlmv.js b/src/www/assets/labels-CQIGkPR0.js similarity index 78% rename from src/www/assets/labels-Cbc2zlmv.js rename to src/www/assets/labels-CQIGkPR0.js index 0654140..053ed5a 100644 --- a/src/www/assets/labels-Cbc2zlmv.js +++ b/src/www/assets/labels-CQIGkPR0.js @@ -1 +1 @@ -import{tm as e}from"./messages-BOatyqUm.js";import{i as t}from"./button-C_NDYaz8.js";import{n,t as r}from"./crypto-icon-DnliVYVs.js";var i=e();function a({displayName:e,network:t}){return(0,i.jsx)(s,{label:n(t,e),name:t,type:`network`})}function o({token:e}){return(0,i.jsx)(s,{label:e,name:e,type:`token`})}function s({label:e,name:n,type:a}){return(0,i.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,i.jsx)(r,{alt:``,className:t(`size-4 rounded-full`),height:16,name:n,type:a,width:16}),(0,i.jsx)(`span`,{className:`truncate`,children:e})]})}export{o as n,a as t}; \ No newline at end of file +import{tm as e}from"./messages-CL4J6BaJ.js";import{i as t}from"./button-NLSeBFht.js";import{n,t as r}from"./crypto-icon-BPgcAvNF.js";var i=e();function a({displayName:e,network:t}){return(0,i.jsx)(s,{label:n(t,e),name:t,type:`network`})}function o({token:e}){return(0,i.jsx)(s,{label:e,name:e,type:`token`})}function s({label:e,name:n,type:a}){return(0,i.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,i.jsx)(r,{alt:``,className:t(`size-4 rounded-full`),height:16,name:n,type:a,width:16}),(0,i.jsx)(`span`,{className:`truncate`,children:e})]})}export{o as n,a as t}; \ No newline at end of file diff --git a/src/www/assets/lazyRouteComponent-JF8ipq5d.js b/src/www/assets/lazyRouteComponent-CleTUoKA.js similarity index 85% rename from src/www/assets/lazyRouteComponent-JF8ipq5d.js rename to src/www/assets/lazyRouteComponent-CleTUoKA.js index dcf0a48..b327640 100644 --- a/src/www/assets/lazyRouteComponent-JF8ipq5d.js +++ b/src/www/assets/lazyRouteComponent-CleTUoKA.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{r as n}from"./useRouter-DtTm7XkK.js";import{d as r}from"./useStore-CupyIEEP.js";import{n as i}from"./route-wzPKSRj2.js";function a(e){return new o(e,{silent:!0}).createRoute}var o=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=i(e);return t.isRoot=!1,t},this.silent=t?.silent}},s=e(t(),1);function c(e,t){let i,a,o,c,l=()=>(i||=e().then(e=>{i=void 0,a=e[t??`default`]}).catch(e=>{if(o=e,r(o)&&o instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${o.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),c=!0)}}),i),u=function(e){if(c)throw window.location.reload(),new Promise(()=>{});if(o)throw o;if(!a)if(n)n(l());else throw l();return s.createElement(a,e)};return u.preload=l,u}export{a as n,c as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{r as n}from"./useRouter-DtTm7XkK.js";import{d as r}from"./useStore-CupyIEEP.js";import{n as i}from"./route-gtb8yu3E.js";function a(e){return new o(e,{silent:!0}).createRoute}var o=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=i(e);return t.isRoot=!1,t},this.silent=t?.silent}},s=e(t(),1);function c(e,t){let i,a,o,c,l=()=>(i||=e().then(e=>{i=void 0,a=e[t??`default`]}).catch(e=>{if(o=e,r(o)&&o instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${o.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),c=!0)}}),i),u=function(e){if(c)throw window.location.reload(),new Promise(()=>{});if(o)throw o;if(!a)if(n)n(l());else throw l();return s.createElement(a,e)};return u.preload=l,u}export{a as n,c as t}; \ No newline at end of file diff --git a/src/www/assets/lib-DDezYSnW.js b/src/www/assets/lib-Ku8Lh36m.js similarity index 69% rename from src/www/assets/lib-DDezYSnW.js rename to src/www/assets/lib-Ku8Lh36m.js index 1543ca6..916a77d 100644 --- a/src/www/assets/lib-DDezYSnW.js +++ b/src/www/assets/lib-Ku8Lh36m.js @@ -1 +1 @@ -import{a as e,o as t}from"./auth-store-De4Y7PFV.js";import{Ft as n,It as r}from"./messages-BOatyqUm.js";import{n as i}from"./dist-JOUh6qvR.js";function a(t){return e.useQuery(`get`,`/admin/api/v1/settings`,t?{params:{query:{group:t}}}:void 0)}function o(){return e.useMutation(`put`,`/admin/api/v1/settings`)}function s(e,t,n=``){return e?.find(e=>e.key===t)?.value??n}async function c(e,a,o=r()){let s=(await e({body:{items:a}})).data?.find(e=>!e.ok);if(s){i.error(n({error:s.error_code?t(s.error_code):s.error??``,key:s.key??``}));return}i.success(o)}async function l(e,t,n){await c(e,t,n)}export{o as a,a as i,l as n,c as r,s as t}; \ No newline at end of file +import{a as e,o as t}from"./auth-store-8ocF_FHU.js";import{Ft as n,It as r}from"./messages-CL4J6BaJ.js";import{n as i}from"./dist-Dd-sCJIt.js";function a(t){return e.useQuery(`get`,`/admin/api/v1/settings`,t?{params:{query:{group:t}}}:void 0)}function o(){return e.useMutation(`put`,`/admin/api/v1/settings`)}function s(e,t,n=``){return e?.find(e=>e.key===t)?.value??n}async function c(e,a,o=r()){let s=(await e({body:{items:a}})).data?.find(e=>!e.ok);if(s){i.error(n({error:s.error_code?t(s.error_code):s.error??``,key:s.key??``}));return}i.success(o)}async function l(e,t,n){await c(e,t,n)}export{o as a,a as i,l as n,c as r,s as t}; \ No newline at end of file diff --git a/src/www/assets/link-DPnL8P5J.js b/src/www/assets/link-6i3yGmK_.js similarity index 95% rename from src/www/assets/link-DPnL8P5J.js rename to src/www/assets/link-6i3yGmK_.js index 7c893e1..0e82850 100644 --- a/src/www/assets/link-DPnL8P5J.js +++ b/src/www/assets/link-6i3yGmK_.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{a as r,i,t as a}from"./useRouter-DtTm7XkK.js";import{l as o,s as ee,t as te,u as s}from"./useStore-CupyIEEP.js";import{a as ne,c,n as re}from"./ClientOnly-Bj5CESUC.js";import{r as l}from"./dist-Cc8_LDAq.js";var ie=`Error preloading route! ☝️`,u=e(t(),1);n();var ae=e(l(),1);function d(e,t){let n=a(),l=i(t),{activeProps:d,inactiveProps:g,activeOptions:_,to:v,preload:pe,preloadDelay:me,preloadIntentProximity:he,hashScrollIntoView:ge,replace:y,startTransition:_e,resetScroll:b,viewTransition:ve,children:x,target:S,disabled:C,style:w,className:T,onClick:E,onBlur:D,onFocus:O,onMouseEnter:k,onMouseLeave:A,onTouchStart:j,ignoreBlocker:M,params:ye,search:be,hash:xe,state:Se,mask:Ce,reloadDocument:we,unsafeRelative:Te,from:Ee,_fromLocation:De,...N}=e,P=re(),F=u.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),I=te(n.stores.location,e=>e,(e,t)=>e.href===t.href),L=u.useMemo(()=>{let e={_fromLocation:I,...F};return n.buildLocation(e)},[n,I,F]),R=L.maskedLocation?L.maskedLocation.publicHref:L.publicHref,z=L.maskedLocation?L.maskedLocation.external:L.external,B=u.useMemo(()=>ue(R,z,n.history,C),[C,z,R,n.history]),V=u.useMemo(()=>{if(B?.external)return s(B.href,n.protocolAllowlist)?void 0:B.href;if(!de(v)&&!(typeof v!=`string`||v.indexOf(`:`)===-1))try{return new URL(v),s(v,n.protocolAllowlist)?void 0:v}catch{}},[v,B,n.protocolAllowlist]),H=u.useMemo(()=>{if(V)return!1;if(_?.exact){if(!ne(I.pathname,L.pathname,n.basepath))return!1}else{let e=c(I.pathname,n.basepath),t=c(L.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(_?.includeSearch??!0)&&!ee(I.search,L.search,{partial:!_?.exact,ignoreUndefined:!_?.explicitUndefined})?!1:_?.includeHash?P&&I.hash===L.hash:!0},[_?.exact,_?.explicitUndefined,_?.includeHash,_?.includeSearch,I,V,P,L.hash,L.pathname,L.search,n.basepath]),U=H?o(d,{})??oe:f,W=H?f:o(g,{})??f,G=[T,U.className,W.className].filter(Boolean).join(` `),K=(w||U.style||W.style)&&{...w,...U.style,...W.style},[Oe,q]=u.useState(!1),J=u.useRef(!1),Y=e.reloadDocument||V?!1:pe??n.options.defaultPreload,X=me??n.options.defaultPreloadDelay??0,Z=u.useCallback(()=>{n.preloadRoute({...F,_builtLocation:L}).catch(e=>{console.warn(e),console.warn(ie)})},[n,F,L]);r(l,u.useCallback(e=>{e?.isIntersecting&&Z()},[Z]),m,{disabled:!!C||Y!==`viewport`}),u.useEffect(()=>{J.current||!C&&Y===`render`&&(Z(),J.current=!0)},[C,Z,Y]);let ke=e=>{let t=e.currentTarget.getAttribute(`target`),r=S===void 0?t:S;if(!C&&!fe(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,ae.flushSync)(()=>{q(!0)});let t=n.subscribe(`onResolved`,()=>{t(),q(!1)});n.navigate({...F,replace:y,resetScroll:b,hashScrollIntoView:ge,startTransition:_e,viewTransition:ve,ignoreBlocker:M})}};if(V)return{...N,ref:l,href:V,...x&&{children:x},...S&&{target:S},...C&&{disabled:C},...w&&{style:w},...T&&{className:T},...E&&{onClick:E},...D&&{onBlur:D},...O&&{onFocus:O},...k&&{onMouseEnter:k},...A&&{onMouseLeave:A},...j&&{onTouchStart:j}};let Q=e=>{if(C||Y!==`intent`)return;if(!X){Z();return}let t=e.currentTarget;if(p.has(t))return;let n=setTimeout(()=>{p.delete(t),Z()},X);p.set(t,n)},Ae=e=>{C||Y!==`intent`||Z()},$=e=>{if(C||!Y||!X)return;let t=e.currentTarget,n=p.get(t);n&&(clearTimeout(n),p.delete(t))};return{...N,...U,...W,href:B?.href,ref:l,onClick:h([E,ke]),onBlur:h([D,$]),onFocus:h([O,Q]),onMouseEnter:h([k,Q]),onMouseLeave:h([A,$]),onTouchStart:h([j,Ae]),disabled:!!C,target:S,...K&&{style:K},...G&&{className:G},...C&&se,...H&&ce,...P&&Oe&&le}}var f={},oe={className:`active`},se={role:`link`,"aria-disabled":!0},ce={"data-status":`active`,"aria-current":`page`},le={"data-transitioning":`transitioning`},p=new WeakMap,m={rootMargin:`100px`},h=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function ue(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function de(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var g=u.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=d(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;return u.createElement(`a`,t,o)}return u.createElement(n,a,o)});function fe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}export{g as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";import{a as r,i,t as a}from"./useRouter-DtTm7XkK.js";import{l as o,s as ee,t as te,u as s}from"./useStore-CupyIEEP.js";import{a as ne,c,n as re}from"./ClientOnly-DHd0jlDY.js";import{r as l}from"./dist-D3WFT-Yo.js";var ie=`Error preloading route! ☝️`,u=e(t(),1);n();var ae=e(l(),1);function d(e,t){let n=a(),l=i(t),{activeProps:d,inactiveProps:g,activeOptions:_,to:v,preload:pe,preloadDelay:me,preloadIntentProximity:he,hashScrollIntoView:ge,replace:y,startTransition:_e,resetScroll:b,viewTransition:ve,children:x,target:S,disabled:C,style:w,className:T,onClick:E,onBlur:D,onFocus:O,onMouseEnter:k,onMouseLeave:A,onTouchStart:j,ignoreBlocker:M,params:ye,search:be,hash:xe,state:Se,mask:Ce,reloadDocument:we,unsafeRelative:Te,from:Ee,_fromLocation:De,...N}=e,P=re(),F=u.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),I=te(n.stores.location,e=>e,(e,t)=>e.href===t.href),L=u.useMemo(()=>{let e={_fromLocation:I,...F};return n.buildLocation(e)},[n,I,F]),R=L.maskedLocation?L.maskedLocation.publicHref:L.publicHref,z=L.maskedLocation?L.maskedLocation.external:L.external,B=u.useMemo(()=>ue(R,z,n.history,C),[C,z,R,n.history]),V=u.useMemo(()=>{if(B?.external)return s(B.href,n.protocolAllowlist)?void 0:B.href;if(!de(v)&&!(typeof v!=`string`||v.indexOf(`:`)===-1))try{return new URL(v),s(v,n.protocolAllowlist)?void 0:v}catch{}},[v,B,n.protocolAllowlist]),H=u.useMemo(()=>{if(V)return!1;if(_?.exact){if(!ne(I.pathname,L.pathname,n.basepath))return!1}else{let e=c(I.pathname,n.basepath),t=c(L.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(_?.includeSearch??!0)&&!ee(I.search,L.search,{partial:!_?.exact,ignoreUndefined:!_?.explicitUndefined})?!1:_?.includeHash?P&&I.hash===L.hash:!0},[_?.exact,_?.explicitUndefined,_?.includeHash,_?.includeSearch,I,V,P,L.hash,L.pathname,L.search,n.basepath]),U=H?o(d,{})??oe:f,W=H?f:o(g,{})??f,G=[T,U.className,W.className].filter(Boolean).join(` `),K=(w||U.style||W.style)&&{...w,...U.style,...W.style},[Oe,q]=u.useState(!1),J=u.useRef(!1),Y=e.reloadDocument||V?!1:pe??n.options.defaultPreload,X=me??n.options.defaultPreloadDelay??0,Z=u.useCallback(()=>{n.preloadRoute({...F,_builtLocation:L}).catch(e=>{console.warn(e),console.warn(ie)})},[n,F,L]);r(l,u.useCallback(e=>{e?.isIntersecting&&Z()},[Z]),m,{disabled:!!C||Y!==`viewport`}),u.useEffect(()=>{J.current||!C&&Y===`render`&&(Z(),J.current=!0)},[C,Z,Y]);let ke=e=>{let t=e.currentTarget.getAttribute(`target`),r=S===void 0?t:S;if(!C&&!fe(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,ae.flushSync)(()=>{q(!0)});let t=n.subscribe(`onResolved`,()=>{t(),q(!1)});n.navigate({...F,replace:y,resetScroll:b,hashScrollIntoView:ge,startTransition:_e,viewTransition:ve,ignoreBlocker:M})}};if(V)return{...N,ref:l,href:V,...x&&{children:x},...S&&{target:S},...C&&{disabled:C},...w&&{style:w},...T&&{className:T},...E&&{onClick:E},...D&&{onBlur:D},...O&&{onFocus:O},...k&&{onMouseEnter:k},...A&&{onMouseLeave:A},...j&&{onTouchStart:j}};let Q=e=>{if(C||Y!==`intent`)return;if(!X){Z();return}let t=e.currentTarget;if(p.has(t))return;let n=setTimeout(()=>{p.delete(t),Z()},X);p.set(t,n)},Ae=e=>{C||Y!==`intent`||Z()},$=e=>{if(C||!Y||!X)return;let t=e.currentTarget,n=p.get(t);n&&(clearTimeout(n),p.delete(t))};return{...N,...U,...W,href:B?.href,ref:l,onClick:h([E,ke]),onBlur:h([D,$]),onFocus:h([O,Q]),onMouseEnter:h([k,Q]),onMouseLeave:h([A,$]),onTouchStart:h([j,Ae]),disabled:!!C,target:S,...K&&{style:K},...G&&{className:G},...C&&se,...H&&ce,...P&&Oe&&le}}var f={},oe={className:`active`},se={role:`link`,"aria-disabled":!0},ce={"data-status":`active`,"aria-current":`page`},le={"data-transitioning":`transitioning`},p=new WeakMap,m={rootMargin:`100px`},h=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function ue(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function de(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var g=u.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=d(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;return u.createElement(`a`,t,o)}return u.createElement(n,a,o)});function fe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}export{g as t}; \ No newline at end of file diff --git a/src/www/assets/logo-CBibDHP9.js b/src/www/assets/logo-CBibDHP9.js new file mode 100644 index 0000000..61c3769 --- /dev/null +++ b/src/www/assets/logo-CBibDHP9.js @@ -0,0 +1 @@ +import{tm as e}from"./messages-CL4J6BaJ.js";import{i as t}from"./button-NLSeBFht.js";var n=e();function r({className:e,...r}){return(0,n.jsx)(`img`,{alt:`GMPay`,className:t(`size-6`,e),height:24,src:`/images/logo.png`,width:24,...r})}export{r as t}; \ No newline at end of file diff --git a/src/www/assets/logo-agrtpj2n.js b/src/www/assets/logo-agrtpj2n.js deleted file mode 100644 index e065bce..0000000 --- a/src/www/assets/logo-agrtpj2n.js +++ /dev/null @@ -1 +0,0 @@ -import{tm as e}from"./messages-BOatyqUm.js";import{i as t}from"./button-C_NDYaz8.js";var n=e();function r({className:e,...r}){return(0,n.jsx)(`img`,{alt:`GMPay`,className:t(`size-6`,e),height:24,src:`/images/logo.png`,width:24,...r})}export{r as t}; \ No newline at end of file diff --git a/src/www/assets/long-text-DNqlDi0R.js b/src/www/assets/long-text-COpCfVI1.js similarity index 78% rename from src/www/assets/long-text-DNqlDi0R.js rename to src/www/assets/long-text-COpCfVI1.js index d3fa00c..188eb08 100644 --- a/src/www/assets/long-text-DNqlDi0R.js +++ b/src/www/assets/long-text-COpCfVI1.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{i as r}from"./button-C_NDYaz8.js";import{n as i,r as a,t as o}from"./popover-NQZzcPDh.js";import{i as s,n as c,r as l,t as u}from"./tooltip-xZuTTfnF.js";var d=e(t(),1),f=n();function p({children:e,className:t=``,contentClassName:n=``}){let p=(0,d.useRef)(null),[h,g]=(0,d.useState)(!1),_=e=>{p.current=e,e&&m(e)&&queueMicrotask(()=>g(!0))};return h?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`div`,{className:`hidden sm:block`,children:(0,f.jsx)(l,{delayDuration:0,children:(0,f.jsxs)(u,{children:[(0,f.jsx)(s,{asChild:!0,children:(0,f.jsx)(`div`,{className:r(`truncate`,t),ref:_,children:e})}),(0,f.jsx)(c,{children:(0,f.jsx)(`p`,{className:n,children:e})})]})})}),(0,f.jsx)(`div`,{className:`sm:hidden`,children:(0,f.jsxs)(o,{children:[(0,f.jsx)(a,{asChild:!0,children:(0,f.jsx)(`div`,{className:r(`truncate`,t),ref:_,children:e})}),(0,f.jsx)(i,{className:r(`w-fit`,n),children:(0,f.jsx)(`p`,{children:e})})]})})]}):(0,f.jsx)(`div`,{className:r(`truncate`,t),ref:_,children:e})}var m=e=>e?e.offsetHeight{p.current=e,e&&m(e)&&queueMicrotask(()=>g(!0))};return h?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`div`,{className:`hidden sm:block`,children:(0,f.jsx)(l,{delayDuration:0,children:(0,f.jsxs)(u,{children:[(0,f.jsx)(s,{asChild:!0,children:(0,f.jsx)(`div`,{className:r(`truncate`,t),ref:_,children:e})}),(0,f.jsx)(c,{children:(0,f.jsx)(`p`,{className:n,children:e})})]})})}),(0,f.jsx)(`div`,{className:`sm:hidden`,children:(0,f.jsxs)(o,{children:[(0,f.jsx)(a,{asChild:!0,children:(0,f.jsx)(`div`,{className:r(`truncate`,t),ref:_,children:e})}),(0,f.jsx)(i,{className:r(`w-fit`,n),children:(0,f.jsx)(`p`,{children:e})})]})})]}):(0,f.jsx)(`div`,{className:r(`truncate`,t),ref:_,children:e})}var m=e=>e?e.offsetHeight(0,h.jsx)(i,{asChild:!0,children:(0,h.jsx)(t,{className:r?``:`text-muted-foreground`,disabled:a,to:n,children:e})},`${e}-${n}`))})]})}),(0,h.jsx)(`nav`,{className:n(`hidden items-center space-x-4 lg:flex lg:space-x-4 xl:space-x-6`,e),...l,children:c.map(({title:e,href:n,isActive:r,disabled:i})=>(0,h.jsx)(t,{className:`font-medium text-sm transition-colors hover:text-primary ${r?``:`text-muted-foreground`}`,disabled:i,to:n,children:e},`${e}-${n}`))})]})}function _({fixed:e,topNav:t}){return(0,h.jsxs)(p,{fixed:e,children:[t?(0,h.jsx)(g,{links:t}):(0,h.jsx)(d,{}),(0,h.jsxs)(`div`,{className:`ms-auto flex items-center space-x-4`,children:[t&&(0,h.jsx)(d,{}),(0,h.jsx)(l,{}),(0,h.jsx)(u,{}),(0,h.jsx)(f,{})]})]})}function v({fixed:e,className:t,fluid:r,...i}){return(0,h.jsx)(`main`,{className:n(`px-4 py-6`,e&&`flex grow flex-col overflow-hidden`,!r&&`@7xl/content:mx-auto @7xl/content:w-full @7xl/content:max-w-7xl`,t),"data-layout":e?`fixed`:`auto`,...i})}export{_ as n,v as t}; \ No newline at end of file +import{tm as e}from"./messages-CL4J6BaJ.js";import{t}from"./link-6i3yGmK_.js";import{i as n,t as r}from"./button-NLSeBFht.js";import{a as i,l as a,r as o,t as s}from"./dropdown-menu-D72UcvWG.js";import{t as c}from"./createLucideIcon-Br0Bd5k2.js";import{n as l,t as u}from"./theme-switch-CdEcHkcU.js";import{n as d,r as f,t as p}from"./header-vUJd_CA5.js";var m=c(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),h=e();function g({className:e,links:c,...l}){return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(`div`,{className:`lg:hidden`,children:(0,h.jsxs)(s,{modal:!1,children:[(0,h.jsx)(a,{asChild:!0,children:(0,h.jsx)(r,{className:`md:size-7`,size:`icon`,variant:`outline`,children:(0,h.jsx)(m,{})})}),(0,h.jsx)(o,{align:`start`,side:`bottom`,children:c.map(({title:e,href:n,isActive:r,disabled:a})=>(0,h.jsx)(i,{asChild:!0,children:(0,h.jsx)(t,{className:r?``:`text-muted-foreground`,disabled:a,to:n,children:e})},`${e}-${n}`))})]})}),(0,h.jsx)(`nav`,{className:n(`hidden items-center space-x-4 lg:flex lg:space-x-4 xl:space-x-6`,e),...l,children:c.map(({title:e,href:n,isActive:r,disabled:i})=>(0,h.jsx)(t,{className:`font-medium text-sm transition-colors hover:text-primary ${r?``:`text-muted-foreground`}`,disabled:i,to:n,children:e},`${e}-${n}`))})]})}function _({fixed:e,topNav:t}){return(0,h.jsxs)(p,{fixed:e,children:[t?(0,h.jsx)(g,{links:t}):(0,h.jsx)(d,{}),(0,h.jsxs)(`div`,{className:`ms-auto flex items-center space-x-4`,children:[t&&(0,h.jsx)(d,{}),(0,h.jsx)(l,{}),(0,h.jsx)(u,{}),(0,h.jsx)(f,{})]})]})}function v({fixed:e,className:t,fluid:r,...i}){return(0,h.jsx)(`main`,{className:n(`px-4 py-6`,e&&`flex grow flex-col overflow-hidden`,!r&&`@7xl/content:mx-auto @7xl/content:w-full @7xl/content:max-w-7xl`,t),"data-layout":e?`fixed`:`auto`,...i})}export{_ as n,v as t}; \ No newline at end of file diff --git a/src/www/assets/maintenance-error-DeZhljU8.js b/src/www/assets/maintenance-error-lgcDljP-.js similarity index 80% rename from src/www/assets/maintenance-error-DeZhljU8.js rename to src/www/assets/maintenance-error-lgcDljP-.js index 951fdea..414a204 100644 --- a/src/www/assets/maintenance-error-DeZhljU8.js +++ b/src/www/assets/maintenance-error-lgcDljP-.js @@ -1 +1 @@ -import{At as e,jt as t,kt as n,tm as r,zp as i}from"./messages-BOatyqUm.js";import{t as a}from"./button-C_NDYaz8.js";var o=r();function s(){return(0,o.jsx)(`div`,{className:`h-svh`,children:(0,o.jsxs)(`div`,{className:`m-auto flex h-full w-full flex-col items-center justify-center gap-2`,children:[(0,o.jsx)(`h1`,{className:`font-bold text-[7rem] leading-tight`,children:`503`}),(0,o.jsx)(`span`,{className:`font-medium`,children:t()}),(0,o.jsxs)(`p`,{className:`text-center text-muted-foreground`,children:[e(),` `,(0,o.jsx)(`br`,{}),n()]}),(0,o.jsx)(`div`,{className:`mt-6 flex gap-4`,children:(0,o.jsx)(a,{variant:`outline`,children:i()})})]})})}export{s as t}; \ No newline at end of file +import{At as e,jt as t,kt as n,tm as r,zp as i}from"./messages-CL4J6BaJ.js";import{t as a}from"./button-NLSeBFht.js";var o=r();function s(){return(0,o.jsx)(`div`,{className:`h-svh`,children:(0,o.jsxs)(`div`,{className:`m-auto flex h-full w-full flex-col items-center justify-center gap-2`,children:[(0,o.jsx)(`h1`,{className:`font-bold text-[7rem] leading-tight`,children:`503`}),(0,o.jsx)(`span`,{className:`font-medium`,children:t()}),(0,o.jsxs)(`p`,{className:`text-center text-muted-foreground`,children:[e(),` `,(0,o.jsx)(`br`,{}),n()]}),(0,o.jsx)(`div`,{className:`mt-6 flex gap-4`,children:(0,o.jsx)(a,{variant:`outline`,children:i()})})]})})}export{s as t}; \ No newline at end of file diff --git a/src/www/assets/messages-BOatyqUm.js b/src/www/assets/messages-BOatyqUm.js deleted file mode 100644 index d95db3e..0000000 --- a/src/www/assets/messages-BOatyqUm.js +++ /dev/null @@ -1 +0,0 @@ -import{t as e}from"./chunk-DECur_0Z.js";var t=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),n=e(((e,n)=>{n.exports=t()})),r={},i=`en-US`,a=[`en-US`,`ja-JP`,`ko-KR`,`ru-RU`,`zh-TW`,`zh-CN`],o=`PARAGLIDE_LOCALE`,ee=3456e4,s=[`cookie`,`preferredLanguage`,`baseLocale`],c=[],l,u;function te(e){if(c.length===0)return;let t=typeof e==`string`?e:e.href;if(l===t)return u;let n=new URL(t,`http://dummy.com`),i;for(let e of c)if(new r(e.match,n.href).exec(n.href)){i=e;break}return l=t,u=i,i}function d(e){let t=te(e);return t&&t.exclude!==!0&&Array.isArray(t.strategy)?t.strategy:s}var f=void 0;globalThis.__paraglide=globalThis.__paraglide??{},globalThis.__paraglide.ssr=globalThis.__paraglide.ssr??{};var p=!1,m=()=>{if(f){let e=f?.getStore()?.locale;if(e)return e}let e=s;typeof window<`u`&&window.location?.href&&(e=d(window.location.href));let t=h(e,typeof window<`u`?window.location?.href:void 0);if(t)return p||(p=!0,_(t,{reload:!1})),t;throw Error(`No locale found. Read the docs https://inlang.com/m/gerre34r/library-inlang-paraglideJs/errors#no-locale-found`)};function h(e,t){let n;for(let t of e){if(t===`cookie`)n=b();else if(t===`baseLocale`)n=i;else if(t===`preferredLanguage`)n=x();else if(C(t)&&S.has(t)){let e=S.get(t);if(e){let t=e.getLocale();if(t instanceof Promise)continue;if(t!==void 0)return y(t)}}let e=v(n);if(e)return e}}var g=e=>{e?window.location.href=e:window.location.reload()},_=(e,t)=>{let n={reload:!0,...t},r;try{r=m()}catch{}let i=[],a=s;typeof window<`u`&&window.location?.href&&(a=d(window.location.href));for(let t of a)if(t===`cookie`){if(typeof document>`u`||typeof window>`u`)continue;let t=`${o}=${e}; path=/; max-age=${ee}`;document.cookie=t}else if(t===`baseLocale`)continue;else if(C(t)&&S.has(t)){let n=S.get(t);if(n){let r=n.setLocale(e);r instanceof Promise&&(r=r.catch(e=>{throw Error(`Custom strategy "${t}" setLocale failed.`,{cause:e})}),i.push(r))}}let c=()=>{n.reload&&window.location&&e!==r&&g(void 0)};if(i.length)return Promise.all(i).then(()=>{c()});c()};function v(e){if(typeof e!=`string`)return;let t=e.toLowerCase();for(let e of a)if(e.toLowerCase()===t)return e}function y(e){let t=v(e);if(t)return t;throw Error(`Invalid locale: ${e}. Expected one of: ${a.join(`, `)}`)}function b(){if(typeof document>`u`||!document.cookie)return;let e=document.cookie.match(RegExp(`(^| )${o}=([^;]+)`))?.[2];return v(e)}function x(){if(!navigator?.languages?.length)return;let e=navigator.languages.map(e=>({fullTag:e,baseTag:e.split(`-`)[0]}));for(let t of e){let e=v(t.fullTag);if(e)return e;let n=v(t.baseTag);if(n)return n}}var S=new Map;function C(e){return typeof e==`string`&&/^custom-[A-Za-z0-9_-]+$/.test(e)}var w=()=>`Search`,T=()=>`Search`,E=()=>`Search`,D=()=>`Search`,O=()=>`搜尋`,k=()=>`搜索`,A=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?w(e):n===`ja-JP`?T(e):n===`ko-KR`?E(e):n===`ru-RU`?D(e):n===`zh-TW`?O(e):k(e)}),j=()=>`Cancel`,M=()=>`Cancel`,N=()=>`Cancel`,P=()=>`Cancel`,F=()=>`取消`,I=()=>`取消`,L=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?j(e):n===`ja-JP`?M(e):n===`ko-KR`?N(e):n===`ru-RU`?P(e):n===`zh-TW`?F(e):I(e)}),R=()=>`Continue`,z=()=>`Continue`,B=()=>`Continue`,V=()=>`Continue`,H=()=>`繼續`,U=()=>`继续`,W=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?R(e):n===`ja-JP`?z(e):n===`ko-KR`?B(e):n===`ru-RU`?V(e):n===`zh-TW`?H(e):U(e)}),G=()=>`Change Password`,K=()=>`Change Password`,q=()=>`Change Password`,J=()=>`Change Password`,Y=()=>`修改密碼`,X=()=>`修改密码`,Z=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?G(e):n===`ja-JP`?K(e):n===`ko-KR`?q(e):n===`ru-RU`?J(e):n===`zh-TW`?Y(e):X(e)}),Q=()=>`Sign out`,ne=()=>`Sign out`,re=()=>`Sign out`,ie=()=>`Sign out`,ae=()=>`退出登入`,oe=()=>`退出登录`,se=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Q(e):n===`ja-JP`?ne(e):n===`ko-KR`?re(e):n===`ru-RU`?ie(e):n===`zh-TW`?ae(e):oe(e)}),ce=()=>`Are you sure you want to sign out? You will need to sign in again to access your account.`,le=()=>`Are you sure you want to sign out? You will need to sign in again to access your account.`,ue=()=>`Are you sure you want to sign out? You will need to sign in again to access your account.`,de=()=>`Are you sure you want to sign out? You will need to sign in again to access your account.`,fe=()=>`您確定要退出登入嗎?您需要重新登入才能訪問您的賬戶。`,pe=()=>`您确定要退出登录吗?您需要重新登录才能访问您的账户。`,me=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ce(e):n===`ja-JP`?le(e):n===`ko-KR`?ue(e):n===`ru-RU`?de(e):n===`zh-TW`?fe(e):pe(e)}),he=()=>`Toggle theme`,ge=()=>`テーマを切り替え`,_e=()=>`테마 전환`,ve=()=>`Переключить тему`,ye=()=>`切換主題`,be=()=>`切换主题`,xe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?he(e):n===`ja-JP`?ge(e):n===`ko-KR`?_e(e):n===`ru-RU`?ve(e):n===`zh-TW`?ye(e):be(e)}),Se=()=>`Light`,Ce=()=>`ライト`,we=()=>`라이트`,Te=()=>`Светлая`,Ee=()=>`淺色`,De=()=>`浅色`,Oe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Se(e):n===`ja-JP`?Ce(e):n===`ko-KR`?we(e):n===`ru-RU`?Te(e):n===`zh-TW`?Ee(e):De(e)}),ke=()=>`Dark`,Ae=()=>`ダーク`,je=()=>`다크`,Me=()=>`Темная`,Ne=()=>`深色`,Pe=()=>`深色`,Fe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ke(e):n===`ja-JP`?Ae(e):n===`ko-KR`?je(e):n===`ru-RU`?Me(e):n===`zh-TW`?Ne(e):Pe(e)}),Ie=()=>`System`,Le=()=>`システム`,Re=()=>`시스템`,ze=()=>`Системная`,Be=()=>`系統`,Ve=()=>`系统`,He=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ie(e):n===`ja-JP`?Le(e):n===`ko-KR`?Re(e):n===`ru-RU`?ze(e):n===`zh-TW`?Be(e):Ve(e)}),Ue=()=>`Skip to Main`,We=()=>`Skip to Main`,Ge=()=>`Skip to Main`,Ke=()=>`Skip to Main`,qe=()=>`跳至主內容`,Je=()=>`跳至主内容`,Ye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ue(e):n===`ja-JP`?We(e):n===`ko-KR`?Ge(e):n===`ru-RU`?Ke(e):n===`zh-TW`?qe(e):Je(e)}),Xe=()=>`Switch language`,Ze=()=>`言語を切り替え`,Qe=()=>`언어 전환`,$e=()=>`Сменить язык`,et=()=>`切換語言`,tt=()=>`切换语言`,nt=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Xe(e):n===`ja-JP`?Ze(e):n===`ko-KR`?Qe(e):n===`ru-RU`?$e(e):n===`zh-TW`?et(e):tt(e)}),rt=()=>`Learn more`,it=()=>`Learn more`,at=()=>`Learn more`,ot=()=>`Learn more`,st=()=>`瞭解更多`,ct=()=>`了解更多`,lt=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rt(e):n===`ja-JP`?it(e):n===`ko-KR`?at(e):n===`ru-RU`?ot(e):n===`zh-TW`?st(e):ct(e)}),ut=()=>`Coming Soon`,dt=()=>`Coming Soon`,ft=()=>`Coming Soon`,pt=()=>`Coming Soon`,mt=()=>`即將推出`,ht=()=>`即将推出`,gt=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ut(e):n===`ja-JP`?dt(e):n===`ko-KR`?ft(e):n===`ru-RU`?pt(e):n===`zh-TW`?mt(e):ht(e)}),_t=()=>`We are putting the finishing touches on this feature. Stay tuned for a better experience.`,vt=()=>`We are putting the finishing touches on this feature. Stay tuned for a better experience.`,yt=()=>`We are putting the finishing touches on this feature. Stay tuned for a better experience.`,bt=()=>`We are putting the finishing touches on this feature. Stay tuned for a better experience.`,xt=()=>`我們正在打磨這一功能,敬請期待更好的體驗`,St=()=>`我们正在打磨这一功能,敬请期待更好的体验`,Ct=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_t(e):n===`ja-JP`?vt(e):n===`ko-KR`?yt(e):n===`ru-RU`?bt(e):n===`zh-TW`?xt(e):St(e)}),wt=()=>`Hang tight 👀`,Tt=()=>`Hang tight 👀`,Et=()=>`Hang tight 👀`,Dt=()=>`Hang tight 👀`,Ot=()=>`再等等 👀`,kt=()=>`再等等 👀`,At=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wt(e):n===`ja-JP`?Tt(e):n===`ko-KR`?Et(e):n===`ru-RU`?Dt(e):n===`zh-TW`?Ot(e):kt(e)}),jt=()=>`Type a command or search...`,Mt=()=>`Type a command or search...`,Nt=()=>`Type a command or search...`,Pt=()=>`Type a command or search...`,Ft=()=>`輸入命令或搜尋...`,It=()=>`输入命令或搜索...`,Lt=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jt(e):n===`ja-JP`?Mt(e):n===`ko-KR`?Nt(e):n===`ru-RU`?Pt(e):n===`zh-TW`?Ft(e):It(e)}),Rt=()=>`No results found.`,zt=()=>`No results found.`,Bt=()=>`No results found.`,Vt=()=>`No results found.`,Ht=()=>`未找到結果。`,Ut=()=>`未找到结果。`,Wt=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Rt(e):n===`ja-JP`?zt(e):n===`ko-KR`?Bt(e):n===`ru-RU`?Vt(e):n===`zh-TW`?Ht(e):Ut(e)}),Gt=()=>`Theme Settings`,Kt=()=>`Theme Settings`,qt=()=>`Theme Settings`,Jt=()=>`Theme Settings`,Yt=()=>`主題設定`,Xt=()=>`主题设置`,Zt=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Gt(e):n===`ja-JP`?Kt(e):n===`ko-KR`?qt(e):n===`ru-RU`?Jt(e):n===`zh-TW`?Yt(e):Xt(e)}),Qt=()=>`Adjust the appearance and layout to suit your preferences.`,$t=()=>`Adjust the appearance and layout to suit your preferences.`,en=()=>`Adjust the appearance and layout to suit your preferences.`,tn=()=>`Adjust the appearance and layout to suit your preferences.`,nn=()=>`調整外觀和佈局以適合您的偏好。`,rn=()=>`调整外观和布局以适合您的偏好。`,an=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Qt(e):n===`ja-JP`?$t(e):n===`ko-KR`?en(e):n===`ru-RU`?tn(e):n===`zh-TW`?nn(e):rn(e)}),on=()=>`Reset`,sn=()=>`Reset`,cn=()=>`Reset`,ln=()=>`Reset`,un=()=>`重置`,dn=()=>`重置`,fn=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?on(e):n===`ja-JP`?sn(e):n===`ko-KR`?cn(e):n===`ru-RU`?ln(e):n===`zh-TW`?un(e):dn(e)}),pn=()=>`Theme`,mn=()=>`Theme`,hn=()=>`Theme`,gn=()=>`Theme`,_n=()=>`主題`,vn=()=>`主题`,yn=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pn(e):n===`ja-JP`?mn(e):n===`ko-KR`?hn(e):n===`ru-RU`?gn(e):n===`zh-TW`?_n(e):vn(e)}),bn=()=>`Sidebar`,xn=()=>`Sidebar`,Sn=()=>`Sidebar`,Cn=()=>`Sidebar`,wn=()=>`側邊欄`,Tn=()=>`侧边栏`,En=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bn(e):n===`ja-JP`?xn(e):n===`ko-KR`?Sn(e):n===`ru-RU`?Cn(e):n===`zh-TW`?wn(e):Tn(e)}),Dn=()=>`Layout`,On=()=>`Layout`,kn=()=>`Layout`,An=()=>`Layout`,jn=()=>`佈局`,Mn=()=>`布局`,Nn=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Dn(e):n===`ja-JP`?On(e):n===`ko-KR`?kn(e):n===`ru-RU`?An(e):n===`zh-TW`?jn(e):Mn(e)}),Pn=()=>`Direction`,Fn=()=>`Direction`,In=()=>`Direction`,Ln=()=>`Direction`,Rn=()=>`方向`,zn=()=>`方向`,Bn=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Pn(e):n===`ja-JP`?Fn(e):n===`ko-KR`?In(e):n===`ru-RU`?Ln(e):n===`zh-TW`?Rn(e):zn(e)}),Vn=()=>`Inset`,Hn=()=>`Inset`,Un=()=>`Inset`,Wn=()=>`Inset`,Gn=()=>`嵌入`,Kn=()=>`嵌入`,qn=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Vn(e):n===`ja-JP`?Hn(e):n===`ko-KR`?Un(e):n===`ru-RU`?Wn(e):n===`zh-TW`?Gn(e):Kn(e)}),Jn=()=>`Floating`,Yn=()=>`Floating`,Xn=()=>`Floating`,Zn=()=>`Floating`,Qn=()=>`浮動`,$n=()=>`浮动`,er=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Jn(e):n===`ja-JP`?Yn(e):n===`ko-KR`?Xn(e):n===`ru-RU`?Zn(e):n===`zh-TW`?Qn(e):$n(e)}),tr=()=>`Sidebar`,nr=()=>`Sidebar`,rr=()=>`Sidebar`,ir=()=>`Sidebar`,ar=()=>`側邊欄`,or=()=>`侧边栏`,sr=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tr(e):n===`ja-JP`?nr(e):n===`ko-KR`?rr(e):n===`ru-RU`?ir(e):n===`zh-TW`?ar(e):or(e)}),cr=()=>`Default`,lr=()=>`Default`,ur=()=>`Default`,dr=()=>`Default`,fr=()=>`預設`,pr=()=>`默认`,mr=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cr(e):n===`ja-JP`?lr(e):n===`ko-KR`?ur(e):n===`ru-RU`?dr(e):n===`zh-TW`?fr(e):pr(e)}),hr=()=>`Compact`,gr=()=>`Compact`,_r=()=>`Compact`,vr=()=>`Compact`,yr=()=>`緊湊`,br=()=>`紧凑`,xr=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hr(e):n===`ja-JP`?gr(e):n===`ko-KR`?_r(e):n===`ru-RU`?vr(e):n===`zh-TW`?yr(e):br(e)}),Sr=()=>`Full layout`,Cr=()=>`Full layout`,wr=()=>`Full layout`,Tr=()=>`Full layout`,Er=()=>`完整佈局`,Dr=()=>`完整布局`,Or=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Sr(e):n===`ja-JP`?Cr(e):n===`ko-KR`?wr(e):n===`ru-RU`?Tr(e):n===`zh-TW`?Er(e):Dr(e)}),kr=()=>`Left to Right`,Ar=()=>`Left to Right`,jr=()=>`Left to Right`,Mr=()=>`Left to Right`,Nr=()=>`從左到右`,Pr=()=>`从左到右`,Fr=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kr(e):n===`ja-JP`?Ar(e):n===`ko-KR`?jr(e):n===`ru-RU`?Mr(e):n===`zh-TW`?Nr(e):Pr(e)}),Ir=()=>`Right to Left`,Lr=()=>`Right to Left`,Rr=()=>`Right to Left`,zr=()=>`Right to Left`,Br=()=>`從右到左`,Vr=()=>`从右到左`,Hr=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ir(e):n===`ja-JP`?Lr(e):n===`ko-KR`?Rr(e):n===`ru-RU`?zr(e):n===`zh-TW`?Br(e):Vr(e)}),Ur=()=>`Asc`,Wr=()=>`Asc`,Gr=()=>`Asc`,Kr=()=>`Asc`,qr=()=>`升序`,Jr=()=>`升序`,Yr=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ur(e):n===`ja-JP`?Wr(e):n===`ko-KR`?Gr(e):n===`ru-RU`?Kr(e):n===`zh-TW`?qr(e):Jr(e)}),Xr=()=>`Desc`,Zr=()=>`Desc`,Qr=()=>`Desc`,$r=()=>`Desc`,ei=()=>`降序`,ti=()=>`降序`,ni=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Xr(e):n===`ja-JP`?Zr(e):n===`ko-KR`?Qr(e):n===`ru-RU`?$r(e):n===`zh-TW`?ei(e):ti(e)}),ri=()=>`Hide`,ii=()=>`Hide`,ai=()=>`Hide`,oi=()=>`Hide`,si=()=>`隱藏`,ci=()=>`隐藏`,li=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ri(e):n===`ja-JP`?ii(e):n===`ko-KR`?ai(e):n===`ru-RU`?oi(e):n===`zh-TW`?si(e):ci(e)}),ui=e=>`Page ${e?.current} of ${e?.total}`,di=e=>`Page ${e?.current} of ${e?.total}`,fi=e=>`Page ${e?.current} of ${e?.total}`,pi=e=>`Page ${e?.current} of ${e?.total}`,mi=e=>`第 ${e?.current} 頁,共 ${e?.total} 頁`,hi=e=>`第 ${e?.current} 页,共 ${e?.total} 页`,gi=((e,t={})=>{let n=t.locale??m();return n===`en-US`?ui(e):n===`ja-JP`?di(e):n===`ko-KR`?fi(e):n===`ru-RU`?pi(e):n===`zh-TW`?mi(e):hi(e)}),_i=()=>`Rows per page`,vi=()=>`Rows per page`,yi=()=>`Rows per page`,bi=()=>`Rows per page`,xi=()=>`每頁行數`,Si=()=>`每页行数`,Ci=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_i(e):n===`ja-JP`?vi(e):n===`ko-KR`?yi(e):n===`ru-RU`?bi(e):n===`zh-TW`?xi(e):Si(e)}),wi=()=>`Go to first page`,Ti=()=>`Go to first page`,Ei=()=>`Go to first page`,Di=()=>`Go to first page`,Oi=()=>`跳轉到第一頁`,ki=()=>`跳转到第一页`,Ai=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wi(e):n===`ja-JP`?Ti(e):n===`ko-KR`?Ei(e):n===`ru-RU`?Di(e):n===`zh-TW`?Oi(e):ki(e)}),ji=()=>`Go to previous page`,Mi=()=>`Go to previous page`,Ni=()=>`Go to previous page`,Pi=()=>`Go to previous page`,Fi=()=>`跳轉到上一頁`,Ii=()=>`跳转到上一页`,Li=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ji(e):n===`ja-JP`?Mi(e):n===`ko-KR`?Ni(e):n===`ru-RU`?Pi(e):n===`zh-TW`?Fi(e):Ii(e)}),Ri=e=>`Go to page ${e?.page}`,zi=e=>`Go to page ${e?.page}`,Bi=e=>`Go to page ${e?.page}`,Vi=e=>`Go to page ${e?.page}`,Hi=e=>`跳轉到第 ${e?.page} 頁`,Ui=e=>`跳转到第 ${e?.page} 页`,Wi=((e,t={})=>{let n=t.locale??m();return n===`en-US`?Ri(e):n===`ja-JP`?zi(e):n===`ko-KR`?Bi(e):n===`ru-RU`?Vi(e):n===`zh-TW`?Hi(e):Ui(e)}),Gi=()=>`Go to next page`,Ki=()=>`Go to next page`,qi=()=>`Go to next page`,Ji=()=>`Go to next page`,Yi=()=>`跳轉到下一頁`,Xi=()=>`跳转到下一页`,Zi=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Gi(e):n===`ja-JP`?Ki(e):n===`ko-KR`?qi(e):n===`ru-RU`?Ji(e):n===`zh-TW`?Yi(e):Xi(e)}),Qi=()=>`Go to last page`,$i=()=>`Go to last page`,ea=()=>`Go to last page`,ta=()=>`Go to last page`,na=()=>`跳轉到最後一頁`,ra=()=>`跳转到最后一页`,ia=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Qi(e):n===`ja-JP`?$i(e):n===`ko-KR`?ea(e):n===`ru-RU`?ta(e):n===`zh-TW`?na(e):ra(e)}),aa=()=>`Filter...`,oa=()=>`Filter...`,sa=()=>`Filter...`,ca=()=>`Filter...`,la=()=>`篩選...`,ua=()=>`筛选...`,da=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?aa(e):n===`ja-JP`?oa(e):n===`ko-KR`?sa(e):n===`ru-RU`?ca(e):n===`zh-TW`?la(e):ua(e)}),fa=()=>`Reset`,pa=()=>`Reset`,ma=()=>`Reset`,ha=()=>`Reset`,ga=()=>`重置`,_a=()=>`重置`,va=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fa(e):n===`ja-JP`?pa(e):n===`ko-KR`?ma(e):n===`ru-RU`?ha(e):n===`zh-TW`?ga(e):_a(e)}),ya=()=>`Refresh`,ba=()=>`Refresh`,xa=()=>`Refresh`,Sa=()=>`Refresh`,Ca=()=>`重新整理`,wa=()=>`刷新`,Ta=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ya(e):n===`ja-JP`?ba(e):n===`ko-KR`?xa(e):n===`ru-RU`?Sa(e):n===`zh-TW`?Ca(e):wa(e)}),Ea=()=>`View`,Da=()=>`View`,Oa=()=>`View`,ka=()=>`View`,Aa=()=>`檢視`,ja=()=>`查看`,Ma=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ea(e):n===`ja-JP`?Da(e):n===`ko-KR`?Oa(e):n===`ru-RU`?ka(e):n===`zh-TW`?Aa(e):ja(e)}),Na=()=>`Toggle columns`,Pa=()=>`Toggle columns`,Fa=()=>`Toggle columns`,Ia=()=>`Toggle columns`,La=()=>`切換列`,Ra=()=>`切换列`,za=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Na(e):n===`ja-JP`?Pa(e):n===`ko-KR`?Fa(e):n===`ru-RU`?Ia(e):n===`zh-TW`?La(e):Ra(e)}),Ba=()=>`Select date range`,Va=()=>`Select date range`,Ha=()=>`Select date range`,Ua=()=>`Select date range`,Wa=()=>`選擇時間範圍`,Ga=()=>`选择时间范围`,Ka=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ba(e):n===`ja-JP`?Va(e):n===`ko-KR`?Ha(e):n===`ru-RU`?Ua(e):n===`zh-TW`?Wa(e):Ga(e)}),qa=()=>`Today`,Ja=()=>`Today`,Ya=()=>`Today`,Xa=()=>`Today`,Za=()=>`今天`,Qa=()=>`今天`,$a=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qa(e):n===`ja-JP`?Ja(e):n===`ko-KR`?Ya(e):n===`ru-RU`?Xa(e):n===`zh-TW`?Za(e):Qa(e)}),eo=()=>`Yesterday`,to=()=>`Yesterday`,no=()=>`Yesterday`,ro=()=>`Yesterday`,io=()=>`昨天`,ao=()=>`昨天`,oo=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?eo(e):n===`ja-JP`?to(e):n===`ko-KR`?no(e):n===`ru-RU`?ro(e):n===`zh-TW`?io(e):ao(e)}),so=()=>`Last 7 days`,co=()=>`Last 7 days`,lo=()=>`Last 7 days`,uo=()=>`Last 7 days`,fo=()=>`最近 7 天`,po=()=>`最近 7 天`,mo=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?so(e):n===`ja-JP`?co(e):n===`ko-KR`?lo(e):n===`ru-RU`?uo(e):n===`zh-TW`?fo(e):po(e)}),ho=()=>`Last 30 days`,go=()=>`Last 30 days`,_o=()=>`Last 30 days`,vo=()=>`Last 30 days`,yo=()=>`最近 30 天`,bo=()=>`最近 30 天`,xo=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ho(e):n===`ja-JP`?go(e):n===`ko-KR`?_o(e):n===`ru-RU`?vo(e):n===`zh-TW`?yo(e):bo(e)}),So=()=>`This month`,Co=()=>`This month`,wo=()=>`This month`,To=()=>`This month`,Eo=()=>`本月`,Do=()=>`本月`,Oo=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?So(e):n===`ja-JP`?Co(e):n===`ko-KR`?wo(e):n===`ru-RU`?To(e):n===`zh-TW`?Eo(e):Do(e)}),ko=()=>`Last month`,Ao=()=>`Last month`,jo=()=>`Last month`,Mo=()=>`Last month`,No=()=>`上月`,Po=()=>`上月`,Fo=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ko(e):n===`ja-JP`?Ao(e):n===`ko-KR`?jo(e):n===`ru-RU`?Mo(e):n===`zh-TW`?No(e):Po(e)}),Io=()=>`Overview`,Lo=()=>`Overview`,Ro=()=>`Overview`,zo=()=>`Overview`,Bo=()=>`概覽`,Vo=()=>`概览`,Ho=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Io(e):n===`ja-JP`?Lo(e):n===`ko-KR`?Ro(e):n===`ru-RU`?zo(e):n===`zh-TW`?Bo(e):Vo(e)}),Uo=()=>`Dashboard`,Wo=()=>`Dashboard`,Go=()=>`Dashboard`,Ko=()=>`Dashboard`,qo=()=>`儀表盤`,Jo=()=>`仪表盘`,Yo=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Uo(e):n===`ja-JP`?Wo(e):n===`ko-KR`?Go(e):n===`ru-RU`?Ko(e):n===`zh-TW`?qo(e):Jo(e)}),Xo=()=>`Orders`,Zo=()=>`Orders`,Qo=()=>`Orders`,$o=()=>`Orders`,es=()=>`訂單管理`,ts=()=>`订单管理`,ns=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Xo(e):n===`ja-JP`?Zo(e):n===`ko-KR`?Qo(e):n===`ru-RU`?$o(e):n===`zh-TW`?es(e):ts(e)}),rs=()=>`Payments`,is=()=>`Payments`,as=()=>`Payments`,os=()=>`Payments`,ss=()=>`支付管理`,cs=()=>`支付管理`,ls=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rs(e):n===`ja-JP`?is(e):n===`ko-KR`?as(e):n===`ru-RU`?os(e):n===`zh-TW`?ss(e):cs(e)}),us=()=>`Blockchain`,ds=()=>`Blockchain`,fs=()=>`Blockchain`,ps=()=>`Blockchain`,ms=()=>`區塊鏈`,hs=()=>`区块链`,gs=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?us(e):n===`ja-JP`?ds(e):n===`ko-KR`?fs(e):n===`ru-RU`?ps(e):n===`zh-TW`?ms(e):hs(e)}),_s=()=>`Chains & Tokens`,vs=()=>`Chains & Tokens`,ys=()=>`Chains & Tokens`,bs=()=>`Chains & Tokens`,xs=()=>`鏈與代幣`,Ss=()=>`链与代币`,Cs=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_s(e):n===`ja-JP`?vs(e):n===`ko-KR`?ys(e):n===`ru-RU`?bs(e):n===`zh-TW`?xs(e):Ss(e)}),ws=()=>`RPC Nodes`,Ts=()=>`RPC Nodes`,Es=()=>`RPC Nodes`,Ds=()=>`RPC Nodes`,Os=()=>`RPC 節點`,ks=()=>`RPC 节点`,As=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ws(e):n===`ja-JP`?Ts(e):n===`ko-KR`?Es(e):n===`ru-RU`?Ds(e):n===`zh-TW`?Os(e):ks(e)}),js=()=>`System`,Ms=()=>`System`,Ns=()=>`System`,Ps=()=>`System`,Fs=()=>`系統`,Is=()=>`系统`,Ls=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?js(e):n===`ja-JP`?Ms(e):n===`ko-KR`?Ns(e):n===`ru-RU`?Ps(e):n===`zh-TW`?Fs(e):Is(e)}),Rs=()=>`Settings`,zs=()=>`Settings`,Bs=()=>`Settings`,Vs=()=>`Settings`,Hs=()=>`系統配置`,Us=()=>`系统配置`,Ws=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Rs(e):n===`ja-JP`?zs(e):n===`ko-KR`?Bs(e):n===`ru-RU`?Vs(e):n===`zh-TW`?Hs(e):Us(e)}),Gs=()=>`Account Security`,Ks=()=>`Account Security`,qs=()=>`Account Security`,Js=()=>`Account Security`,Ys=()=>`賬戶安全`,Xs=()=>`账户安全`,Zs=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Gs(e):n===`ja-JP`?Ks(e):n===`ko-KR`?qs(e):n===`ru-RU`?Js(e):n===`zh-TW`?Ys(e):Xs(e)}),Qs=()=>`Manage your account security settings.`,$s=()=>`Manage your account security settings.`,ec=()=>`Manage your account security settings.`,tc=()=>`Manage your account security settings.`,nc=()=>`管理你的賬戶安全設定。`,rc=()=>`管理你的账户安全设置。`,ic=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Qs(e):n===`ja-JP`?$s(e):n===`ko-KR`?ec(e):n===`ru-RU`?tc(e):n===`zh-TW`?nc(e):rc(e)}),ac=()=>`Change Password`,oc=()=>`Change Password`,sc=()=>`Change Password`,cc=()=>`Change Password`,lc=()=>`修改密碼`,uc=()=>`修改密码`,dc=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ac(e):n===`ja-JP`?oc(e):n===`ko-KR`?sc(e):n===`ru-RU`?cc(e):n===`zh-TW`?lc(e):uc(e)}),fc=()=>`Change Password`,pc=()=>`Change Password`,mc=()=>`Change Password`,hc=()=>`Change Password`,gc=()=>`修改密碼`,_c=()=>`修改密码`,vc=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fc(e):n===`ja-JP`?pc(e):n===`ko-KR`?mc(e):n===`ru-RU`?hc(e):n===`zh-TW`?gc(e):_c(e)}),yc=()=>`Update your login password.`,bc=()=>`Update your login password.`,xc=()=>`Update your login password.`,Sc=()=>`Update your login password.`,Cc=()=>`更新你的登入密碼。`,wc=()=>`更新你的登录密码。`,Tc=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yc(e):n===`ja-JP`?bc(e):n===`ko-KR`?xc(e):n===`ru-RU`?Sc(e):n===`zh-TW`?Cc(e):wc(e)}),Ec=()=>`General`,Dc=()=>`General`,Oc=()=>`General`,kc=()=>`General`,Ac=()=>`基礎配置`,jc=()=>`基础配置`,Mc=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ec(e):n===`ja-JP`?Dc(e):n===`ko-KR`?Oc(e):n===`ru-RU`?kc(e):n===`zh-TW`?Ac(e):jc(e)}),Nc=()=>`Telegram`,Pc=()=>`Telegram`,Fc=()=>`Telegram`,Ic=()=>`Telegram`,Lc=()=>`Telegram 配置`,Rc=()=>`Telegram 配置`,zc=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Nc(e):n===`ja-JP`?Pc(e):n===`ko-KR`?Fc(e):n===`ru-RU`?Ic(e):n===`zh-TW`?Lc(e):Rc(e)}),Bc=()=>`Payment Config`,Vc=()=>`Payment Config`,Hc=()=>`Payment Config`,Uc=()=>`Payment Config`,Wc=()=>`支付配置`,Gc=()=>`支付配置`,Kc=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Bc(e):n===`ja-JP`?Vc(e):n===`ko-KR`?Hc(e):n===`ru-RU`?Uc(e):n===`zh-TW`?Wc(e):Gc(e)}),qc=()=>`EPay Config`,Jc=()=>`EPay Config`,Yc=()=>`EPay Config`,Xc=()=>`EPay Config`,Zc=()=>`EPay 配置`,Qc=()=>`EPay 配置`,$c=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qc(e):n===`ja-JP`?Jc(e):n===`ko-KR`?Yc(e):n===`ru-RU`?Xc(e):n===`zh-TW`?Zc(e):Qc(e)}),el=()=>`Default Token`,tl=()=>`Default Token`,nl=()=>`Default Token`,rl=()=>`Default Token`,il=()=>`預設代幣`,al=()=>`默认代币`,ol=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?el(e):n===`ja-JP`?tl(e):n===`ko-KR`?nl(e):n===`ru-RU`?rl(e):n===`zh-TW`?il(e):al(e)}),sl=()=>`Default Currency`,cl=()=>`Default Currency`,ll=()=>`Default Currency`,ul=()=>`Default Currency`,dl=()=>`預設法幣`,fl=()=>`默认法币`,pl=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sl(e):n===`ja-JP`?cl(e):n===`ko-KR`?ll(e):n===`ru-RU`?ul(e):n===`zh-TW`?dl(e):fl(e)}),ml=()=>`Default Network`,hl=()=>`Default Network`,gl=()=>`Default Network`,_l=()=>`Default Network`,vl=()=>`預設網路`,yl=()=>`默认网络`,bl=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ml(e):n===`ja-JP`?hl(e):n===`ko-KR`?gl(e):n===`ru-RU`?_l(e):n===`zh-TW`?vl(e):yl(e)}),xl=()=>`Empty config`,Sl=()=>`Empty config`,Cl=()=>`Empty config`,wl=()=>`Empty config`,Tl=()=>`空配置`,El=()=>`空配置`,Dl=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xl(e):n===`ja-JP`?Sl(e):n===`ko-KR`?Cl(e):n===`ru-RU`?wl(e):n===`zh-TW`?Tl(e):El(e)}),Ol=()=>`Please enter a default currency`,kl=()=>`Please enter a default currency`,Al=()=>`Please enter a default currency`,jl=()=>`Please enter a default currency`,Ml=()=>`請輸入預設法幣`,Nl=()=>`请输入默认法币`,Pl=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ol(e):n===`ja-JP`?kl(e):n===`ko-KR`?Al(e):n===`ru-RU`?jl(e):n===`zh-TW`?Ml(e):Nl(e)}),Fl=()=>`system error`,Il=()=>`system error`,Ll=()=>`system error`,Rl=()=>`system error`,zl=()=>`系統錯誤`,Bl=()=>`系统错误`,Vl=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Fl(e):n===`ja-JP`?Il(e):n===`ko-KR`?Ll(e):n===`ru-RU`?Rl(e):n===`zh-TW`?zl(e):Bl(e)}),Hl=()=>`signature verification failed`,Ul=()=>`signature verification failed`,Wl=()=>`signature verification failed`,Gl=()=>`signature verification failed`,Kl=()=>`簽名驗證失敗`,ql=()=>`签名验证失败`,Jl=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hl(e):n===`ja-JP`?Ul(e):n===`ko-KR`?Wl(e):n===`ru-RU`?Gl(e):n===`zh-TW`?Kl(e):ql(e)}),Yl=()=>`Wallet address already exists`,Xl=()=>`Wallet address already exists`,Zl=()=>`Wallet address already exists`,Ql=()=>`Wallet address already exists`,$l=()=>`錢包地址已存在`,eu=()=>`钱包地址已存在`,tu=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yl(e):n===`ja-JP`?Xl(e):n===`ko-KR`?Zl(e):n===`ru-RU`?Ql(e):n===`zh-TW`?$l(e):eu(e)}),nu=()=>`Order already exists`,ru=()=>`Order already exists`,iu=()=>`Order already exists`,au=()=>`Order already exists`,ou=()=>`訂單已存在`,su=()=>`订单已存在`,cu=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nu(e):n===`ja-JP`?ru(e):n===`ko-KR`?iu(e):n===`ru-RU`?au(e):n===`zh-TW`?ou(e):su(e)}),lu=()=>`No available wallet address`,uu=()=>`No available wallet address`,du=()=>`No available wallet address`,fu=()=>`No available wallet address`,pu=()=>`無可用錢包地址`,mu=()=>`无可用钱包地址`,hu=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lu(e):n===`ja-JP`?uu(e):n===`ko-KR`?du(e):n===`ru-RU`?fu(e):n===`zh-TW`?pu(e):mu(e)}),gu=()=>`Invalid payment amount`,_u=()=>`Invalid payment amount`,vu=()=>`Invalid payment amount`,yu=()=>`Invalid payment amount`,bu=()=>`無效支付金額`,xu=()=>`无效支付金额`,Su=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gu(e):n===`ja-JP`?_u(e):n===`ko-KR`?vu(e):n===`ru-RU`?yu(e):n===`zh-TW`?bu(e):xu(e)}),Cu=()=>`No available amount channel`,wu=()=>`No available amount channel`,Tu=()=>`No available amount channel`,Eu=()=>`No available amount channel`,Du=()=>`無可用金額通道`,Ou=()=>`无可用金额通道`,ku=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Cu(e):n===`ja-JP`?wu(e):n===`ko-KR`?Tu(e):n===`ru-RU`?Eu(e):n===`zh-TW`?Du(e):Ou(e)}),Au=()=>`Rate calculation failed`,ju=()=>`rate calculation failed`,Mu=()=>`rate calculation failed`,Nu=()=>`rate calculation failed`,Pu=()=>`匯率計算失敗`,Fu=()=>`汇率计算失败`,Iu=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Au(e):n===`ja-JP`?ju(e):n===`ko-KR`?Mu(e):n===`ru-RU`?Nu(e):n===`zh-TW`?Pu(e):Fu(e)}),Lu=()=>`Block transaction already processed`,Ru=()=>`Block transaction already processed`,zu=()=>`Block transaction already processed`,Bu=()=>`Block transaction already processed`,Vu=()=>`區塊交易已處理`,Hu=()=>`区块交易已处理`,Uu=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Lu(e):n===`ja-JP`?Ru(e):n===`ko-KR`?zu(e):n===`ru-RU`?Bu(e):n===`zh-TW`?Vu(e):Hu(e)}),Wu=()=>`Order does not exist`,Gu=()=>`order does not exist`,Ku=()=>`order does not exist`,qu=()=>`order does not exist`,Ju=()=>`訂單不存在`,Yu=()=>`订单不存在`,Xu=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Wu(e):n===`ja-JP`?Gu(e):n===`ko-KR`?Ku(e):n===`ru-RU`?qu(e):n===`zh-TW`?Ju(e):Yu(e)}),Zu=()=>`Failed to parse request params`,Qu=()=>`failed to parse request params`,$u=()=>`failed to parse request params`,ed=()=>`failed to parse request params`,td=()=>`請求引數解析失敗`,nd=()=>`请求参数解析失败`,rd=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Zu(e):n===`ja-JP`?Qu(e):n===`ko-KR`?$u(e):n===`ru-RU`?ed(e):n===`zh-TW`?td(e):nd(e)}),id=()=>`Order status already changed`,ad=()=>`order status already changed`,od=()=>`order status already changed`,sd=()=>`order status already changed`,cd=()=>`訂單狀態已變更`,ld=()=>`订单状态已变更`,ud=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?id(e):n===`ja-JP`?ad(e):n===`ko-KR`?od(e):n===`ru-RU`?sd(e):n===`zh-TW`?cd(e):ld(e)}),dd=()=>`Exceeded maximum sub-order limit`,fd=()=>`exceeded maximum sub-order limit`,pd=()=>`exceeded maximum sub-order limit`,md=()=>`exceeded maximum sub-order limit`,hd=()=>`超過最大子訂單數量限制`,gd=()=>`超过最大子订单数量限制`,_d=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dd(e):n===`ja-JP`?fd(e):n===`ko-KR`?pd(e):n===`ru-RU`?md(e):n===`zh-TW`?hd(e):gd(e)}),vd=()=>`Cannot switch network for sub-order`,yd=()=>`Cannot switch network for sub-order`,bd=()=>`Cannot switch network for sub-order`,xd=()=>`Cannot switch network for sub-order`,Sd=()=>`不能對子訂單切換網路`,Cd=()=>`不能对子订单切换网络`,wd=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vd(e):n===`ja-JP`?yd(e):n===`ko-KR`?bd(e):n===`ru-RU`?xd(e):n===`zh-TW`?Sd(e):Cd(e)}),Td=()=>`Order is not awaiting payment`,Ed=()=>`order is not awaiting payment`,Dd=()=>`order is not awaiting payment`,Od=()=>`order is not awaiting payment`,kd=()=>`訂單不是待支付狀態`,Ad=()=>`订单不是待支付状态`,jd=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Td(e):n===`ja-JP`?Ed(e):n===`ko-KR`?Dd(e):n===`ru-RU`?Od(e):n===`zh-TW`?kd(e):Ad(e)}),Md=()=>`Chain is not enabled`,Nd=()=>`chain is not enabled`,Pd=()=>`chain is not enabled`,Fd=()=>`chain is not enabled`,Id=()=>`鏈未啟用`,Ld=()=>`链未启用`,Rd=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Md(e):n===`ja-JP`?Nd(e):n===`ko-KR`?Pd(e):n===`ru-RU`?Fd(e):n===`zh-TW`?Id(e):Ld(e)}),zd=()=>`Supported asset already exists`,Bd=()=>`Supported asset already exists`,Vd=()=>`Supported asset already exists`,Hd=()=>`Supported asset already exists`,Ud=()=>`支援的資產已存在`,Wd=()=>`支持的资产已存在`,Gd=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zd(e):n===`ja-JP`?Bd(e):n===`ko-KR`?Vd(e):n===`ru-RU`?Hd(e):n===`zh-TW`?Ud(e):Wd(e)}),Kd=()=>`Supported asset not found`,qd=()=>`supported asset not found`,Jd=()=>`supported asset not found`,Yd=()=>`supported asset not found`,Xd=()=>`未找到支援的資產`,Zd=()=>`未找到支持的资产`,Qd=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Kd(e):n===`ja-JP`?qd(e):n===`ko-KR`?Jd(e):n===`ru-RU`?Yd(e):n===`zh-TW`?Xd(e):Zd(e)}),$d=()=>`Payment provider is not enabled`,ef=()=>`payment provider is not enabled`,tf=()=>`payment provider is not enabled`,nf=()=>`payment provider is not enabled`,rf=()=>`支付服務商未啟用`,af=()=>`支付服务商未启用`,of=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$d(e):n===`ja-JP`?ef(e):n===`ko-KR`?tf(e):n===`ru-RU`?nf(e):n===`zh-TW`?rf(e):af(e)}),sf=()=>`Payment provider configuration is incomplete`,cf=()=>`payment provider configuration is incomplete`,lf=()=>`payment provider configuration is incomplete`,uf=()=>`payment provider configuration is incomplete`,df=()=>`支付服務商配置不完整`,ff=()=>`支付服务商配置不完整`,pf=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sf(e):n===`ja-JP`?cf(e):n===`ko-KR`?lf(e):n===`ru-RU`?uf(e):n===`zh-TW`?df(e):ff(e)}),mf=()=>`Payment provider does not support this token or network`,hf=()=>`payment provider does not support this token or network`,gf=()=>`payment provider does not support this token or network`,_f=()=>`payment provider does not support this token or network`,vf=()=>`支付服務商不支援該代幣或網路`,yf=()=>`支付服务商不支持该代币或网络`,bf=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mf(e):n===`ja-JP`?hf(e):n===`ko-KR`?gf(e):n===`ru-RU`?_f(e):n===`zh-TW`?vf(e):yf(e)}),xf=()=>`Invalid RPC node purpose`,Sf=()=>`invalid rpc node purpose`,Cf=()=>`invalid rpc node purpose`,wf=()=>`invalid rpc node purpose`,Tf=()=>`無效的 RPC 節點用途`,Ef=()=>`无效的 RPC 节点用途`,Df=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xf(e):n===`ja-JP`?Sf(e):n===`ko-KR`?Cf(e):n===`ru-RU`?wf(e):n===`zh-TW`?Tf(e):Ef(e)}),Of=()=>`Invalid RPC node URL`,kf=()=>`invalid rpc node url`,Af=()=>`invalid rpc node url`,jf=()=>`invalid rpc node url`,Mf=()=>`無效的 RPC 節點 URL`,Nf=()=>`无效的 RPC 节点 URL`,Pf=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Of(e):n===`ja-JP`?kf(e):n===`ko-KR`?Af(e):n===`ru-RU`?jf(e):n===`zh-TW`?Mf(e):Nf(e)}),Ff=()=>`RPC node HTTP URL required`,If=()=>`rpc node http url required`,Lf=()=>`rpc node http url required`,Rf=()=>`rpc node http url required`,zf=()=>`RPC 節點需要 HTTP URL`,Bf=()=>`RPC 节点需要 HTTP URL`,Vf=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ff(e):n===`ja-JP`?If(e):n===`ko-KR`?Lf(e):n===`ru-RU`?Rf(e):n===`zh-TW`?zf(e):Bf(e)}),Hf=()=>`RPC node WebSocket URL required`,Uf=()=>`rpc node websocket url required`,Wf=()=>`rpc node websocket url required`,Gf=()=>`rpc node websocket url required`,Kf=()=>`RPC 節點需要 WebSocket URL`,qf=()=>`RPC 节点需要 WebSocket URL`,Jf=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hf(e):n===`ja-JP`?Uf(e):n===`ko-KR`?Wf(e):n===`ru-RU`?Gf(e):n===`zh-TW`?Kf(e):qf(e)}),Yf=()=>`Invalid RPC node type`,Xf=()=>`invalid rpc node type`,Zf=()=>`invalid rpc node type`,Qf=()=>`invalid rpc node type`,$f=()=>`無效的 RPC 節點類型`,ep=()=>`无效的 RPC 节点类型`,tp=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yf(e):n===`ja-JP`?Xf(e):n===`ko-KR`?Zf(e):n===`ru-RU`?Qf(e):n===`zh-TW`?$f(e):ep(e)}),np=()=>`Invalid username or password`,rp=()=>`invalid username or password`,ip=()=>`invalid username or password`,ap=()=>`invalid username or password`,op=()=>`使用者名稱或密碼錯誤`,sp=()=>`用户名或密码错误`,cp=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?np(e):n===`ja-JP`?rp(e):n===`ko-KR`?ip(e):n===`ru-RU`?ap(e):n===`zh-TW`?op(e):sp(e)}),lp=()=>`Admin user disabled`,up=()=>`admin user disabled`,dp=()=>`admin user disabled`,fp=()=>`admin user disabled`,pp=()=>`管理員使用者已停用`,mp=()=>`管理员用户已禁用`,hp=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lp(e):n===`ja-JP`?up(e):n===`ko-KR`?dp(e):n===`ru-RU`?fp(e):n===`zh-TW`?pp(e):mp(e)}),gp=()=>`Admin unauthorized`,_p=()=>`admin unauthorized`,vp=()=>`admin unauthorized`,yp=()=>`admin unauthorized`,bp=()=>`管理員未授權`,xp=()=>`管理员未授权`,Sp=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gp(e):n===`ja-JP`?_p(e):n===`ko-KR`?vp(e):n===`ru-RU`?yp(e):n===`zh-TW`?bp(e):xp(e)}),Cp=()=>`Admin user not found`,wp=()=>`admin user not found`,Tp=()=>`admin user not found`,Ep=()=>`admin user not found`,Dp=()=>`管理員使用者不存在`,Op=()=>`管理员用户不存在`,kp=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Cp(e):n===`ja-JP`?wp(e):n===`ko-KR`?Tp(e):n===`ru-RU`?Ep(e):n===`zh-TW`?Dp(e):Op(e)}),Ap=()=>`Old password incorrect`,jp=()=>`old password incorrect`,Mp=()=>`old password incorrect`,Np=()=>`old password incorrect`,Pp=()=>`舊密碼錯誤`,Fp=()=>`旧密码错误`,Ip=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ap(e):n===`ja-JP`?jp(e):n===`ko-KR`?Mp(e):n===`ru-RU`?Np(e):n===`zh-TW`?Pp(e):Fp(e)}),Lp=()=>`Wallet not found`,Rp=()=>`wallet not found`,zp=()=>`wallet not found`,Bp=()=>`wallet not found`,Vp=()=>`錢包不存在`,Hp=()=>`钱包不存在`,Up=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Lp(e):n===`ja-JP`?Rp(e):n===`ko-KR`?zp(e):n===`ru-RU`?Bp(e):n===`zh-TW`?Vp(e):Hp(e)}),Wp=()=>`API key not found`,Gp=()=>`api key not found`,Kp=()=>`api key not found`,qp=()=>`api key not found`,Jp=()=>`API Key 不存在`,Yp=()=>`API Key 不存在`,Xp=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Wp(e):n===`ja-JP`?Gp(e):n===`ko-KR`?Kp(e):n===`ru-RU`?qp(e):n===`zh-TW`?Jp(e):Yp(e)}),Zp=()=>`RPC node not found`,Qp=()=>`rpc node not found`,$p=()=>`rpc node not found`,em=()=>`rpc node not found`,tm=()=>`RPC 節點不存在`,nm=()=>`RPC 节点不存在`,rm=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Zp(e):n===`ja-JP`?Qp(e):n===`ko-KR`?$p(e):n===`ru-RU`?em(e):n===`zh-TW`?tm(e):nm(e)}),im=()=>`Order callback not applicable`,am=()=>`order callback not applicable`,om=()=>`order callback not applicable`,sm=()=>`order callback not applicable`,cm=()=>`該訂單不適用回調`,lm=()=>`该订单不适用回调`,um=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?im(e):n===`ja-JP`?am(e):n===`ko-KR`?om(e):n===`ru-RU`?sm(e):n===`zh-TW`?cm(e):lm(e)}),dm=()=>`Order notify URL empty`,fm=()=>`order notify url empty`,pm=()=>`order notify url empty`,mm=()=>`order notify url empty`,hm=()=>`訂單通知地址為空`,gm=()=>`订单通知地址为空`,_m=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dm(e):n===`ja-JP`?fm(e):n===`ko-KR`?pm(e):n===`ru-RU`?mm(e):n===`zh-TW`?hm(e):gm(e)}),vm=()=>`Resend callback failed`,ym=()=>`resend callback failed`,bm=()=>`resend callback failed`,xm=()=>`resend callback failed`,Sm=()=>`重發回調失敗`,Cm=()=>`重发回调失败`,wm=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vm(e):n===`ja-JP`?ym(e):n===`ko-KR`?bm(e):n===`ru-RU`?xm(e):n===`zh-TW`?Sm(e):Cm(e)}),Tm=()=>`Invalid notification config`,Em=()=>`invalid notification config`,Dm=()=>`invalid notification config`,Om=()=>`invalid notification config`,km=()=>`無效的通知配置`,Am=()=>`无效的通知配置`,jm=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Tm(e):n===`ja-JP`?Em(e):n===`ko-KR`?Dm(e):n===`ru-RU`?Om(e):n===`zh-TW`?km(e):Am(e)}),Mm=()=>`Invalid notification events`,Nm=()=>`invalid notification events`,Pm=()=>`invalid notification events`,Fm=()=>`invalid notification events`,Im=()=>`無效的通知事件`,Lm=()=>`无效的通知事件`,Rm=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Mm(e):n===`ja-JP`?Nm(e):n===`ko-KR`?Pm(e):n===`ru-RU`?Fm(e):n===`zh-TW`?Im(e):Lm(e)}),zm=()=>`Manual payment verification failed`,Bm=()=>`manual payment verification failed`,Vm=()=>`manual payment verification failed`,Hm=()=>`manual payment verification failed`,Um=()=>`手動支付校驗失敗`,Wm=()=>`手动支付校验失败`,Gm=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zm(e):n===`ja-JP`?Bm(e):n===`ko-KR`?Vm(e):n===`ru-RU`?Hm(e):n===`zh-TW`?Um(e):Wm(e)}),Km=()=>`Manual payment only supports on-chain orders`,qm=()=>`manual payment only supports on-chain orders`,Jm=()=>`manual payment only supports on-chain orders`,Ym=()=>`manual payment only supports on-chain orders`,Xm=()=>`手動支付僅支援鏈上訂單`,Zm=()=>`手动支付仅支持链上订单`,Qm=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Km(e):n===`ja-JP`?qm(e):n===`ko-KR`?Jm(e):n===`ru-RU`?Ym(e):n===`zh-TW`?Xm(e):Zm(e)}),$m=()=>`Initial admin password unavailable, check from logs`,eh=()=>`initial admin password unavailable, check from logs`,th=()=>`initial admin password unavailable, check from logs`,nh=()=>`initial admin password unavailable, check from logs`,rh=()=>`無法取得初始管理員密碼,請查看日誌`,ih=()=>`无法获取初始管理员密码,请查看日志`,ah=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$m(e):n===`ja-JP`?eh(e):n===`ko-KR`?th(e):n===`ru-RU`?nh(e):n===`zh-TW`?rh(e):ih(e)}),oh=()=>`Invalid notify URL`,sh=()=>`invalid notify url`,ch=()=>`invalid notify url`,lh=()=>`invalid notify url`,uh=()=>`無效通知地址`,dh=()=>`无效通知地址`,fh=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?oh(e):n===`ja-JP`?sh(e):n===`ko-KR`?ch(e):n===`ru-RU`?lh(e):n===`zh-TW`?uh(e):dh(e)}),ph=()=>`Payment provider order creation failed`,mh=()=>`payment provider order creation failed`,hh=()=>`payment provider order creation failed`,gh=()=>`payment provider order creation failed`,_h=()=>`支付服務商訂單建立失敗`,vh=()=>`支付服务商订单创建失败`,yh=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ph(e):n===`ja-JP`?mh(e):n===`ko-KR`?hh(e):n===`ru-RU`?gh(e):n===`zh-TW`?_h(e):vh(e)}),bh=()=>`Invalid setting item`,xh=()=>`invalid setting item`,Sh=()=>`invalid setting item`,Ch=()=>`invalid setting item`,wh=()=>`無效配置項`,Th=()=>`无效配置项`,Eh=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bh(e):n===`ja-JP`?xh(e):n===`ko-KR`?Sh(e):n===`ru-RU`?Ch(e):n===`zh-TW`?wh(e):Th(e)}),Dh=()=>`Invalid order redirect URL`,Oh=()=>`invalid order redirect url`,kh=()=>`invalid order redirect url`,Ah=()=>`invalid order redirect url`,jh=()=>`無效訂單跳轉地址`,Mh=()=>`无效订单跳转地址`,Nh=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Dh(e):n===`ja-JP`?Oh(e):n===`ko-KR`?kh(e):n===`ru-RU`?Ah(e):n===`zh-TW`?jh(e):Mh(e)}),Ph=()=>`Order API key unavailable`,Fh=()=>`order api key unavailable`,Ih=()=>`order api key unavailable`,Lh=()=>`order api key unavailable`,Rh=()=>`訂單 API Key 不可用`,zh=()=>`订单 API Key 不可用`,Bh=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ph(e):n===`ja-JP`?Fh(e):n===`ko-KR`?Ih(e):n===`ru-RU`?Lh(e):n===`zh-TW`?Rh(e):zh(e)}),Vh=()=>`Failed to build EPay return signature`,Hh=()=>`failed to build epay return signature`,Uh=()=>`failed to build epay return signature`,Wh=()=>`failed to build epay return signature`,Gh=()=>`產生 EPay 返回簽名失敗`,Kh=()=>`生成 EPay 返回签名失败`,qh=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Vh(e):n===`ja-JP`?Hh(e):n===`ko-KR`?Uh(e):n===`ru-RU`?Wh(e):n===`zh-TW`?Gh(e):Kh(e)}),Jh=()=>`Request failed`,Yh=()=>`Request failed`,Xh=()=>`Request failed`,Zh=()=>`Request failed`,Qh=()=>`請求失敗`,$h=()=>`请求失败`,eg=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Jh(e):n===`ja-JP`?Yh(e):n===`ko-KR`?Xh(e):n===`ru-RU`?Zh(e):n===`zh-TW`?Qh(e):$h(e)}),tg=()=>`Server error, please try again later`,ng=()=>`Server error, please try again later`,rg=()=>`Server error, please try again later`,ig=()=>`Server error, please try again later`,ag=()=>`伺服器錯誤,請稍後重試`,og=()=>`服务器错误,请稍后重试`,sg=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tg(e):n===`ja-JP`?ng(e):n===`ko-KR`?rg(e):n===`ru-RU`?ig(e):n===`zh-TW`?ag(e):og(e)}),cg=()=>`Oops! Something went wrong :')`,lg=()=>`Oops! Something went wrong :')`,ug=()=>`Oops! Something went wrong :')`,dg=()=>`Oops! Something went wrong :')`,fg=()=>`出錯了 :')`,pg=()=>`出错了 :')`,mg=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cg(e):n===`ja-JP`?lg(e):n===`ko-KR`?ug(e):n===`ru-RU`?dg(e):n===`zh-TW`?fg(e):pg(e)}),hg=()=>`We apologize for the inconvenience. Please try again later.`,gg=()=>`We apologize for the inconvenience. Please try again later.`,_g=()=>`We apologize for the inconvenience. Please try again later.`,vg=()=>`We apologize for the inconvenience. Please try again later.`,yg=()=>`抱歉給您帶來不便,請稍後重試。`,bg=()=>`抱歉给您带来不便,请稍后重试。`,xg=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hg(e):n===`ja-JP`?gg(e):n===`ko-KR`?_g(e):n===`ru-RU`?vg(e):n===`zh-TW`?yg(e):bg(e)}),Sg=()=>`Go Back`,Cg=()=>`Go Back`,wg=()=>`Go Back`,Tg=()=>`Go Back`,Eg=()=>`返回`,Dg=()=>`返回`,Og=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Sg(e):n===`ja-JP`?Cg(e):n===`ko-KR`?wg(e):n===`ru-RU`?Tg(e):n===`zh-TW`?Eg(e):Dg(e)}),kg=()=>`Back to Home`,Ag=()=>`Back to Home`,jg=()=>`Back to Home`,Mg=()=>`Back to Home`,Ng=()=>`回到首頁`,Pg=()=>`回到首页`,Fg=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kg(e):n===`ja-JP`?Ag(e):n===`ko-KR`?jg(e):n===`ru-RU`?Mg(e):n===`zh-TW`?Ng(e):Pg(e)}),Ig=()=>`Oops! Page Not Found!`,Lg=()=>`Oops! Page Not Found!`,Rg=()=>`Oops! Page Not Found!`,zg=()=>`Oops! Page Not Found!`,Bg=()=>`頁面未找到!`,Vg=()=>`页面未找到!`,Hg=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ig(e):n===`ja-JP`?Lg(e):n===`ko-KR`?Rg(e):n===`ru-RU`?zg(e):n===`zh-TW`?Bg(e):Vg(e)}),Ug=()=>`It seems like the page you're looking for does not exist or might have been removed.`,Wg=()=>`It seems like the page you're looking for does not exist or might have been removed.`,Gg=()=>`It seems like the page you're looking for does not exist or might have been removed.`,Kg=()=>`It seems like the page you're looking for does not exist or might have been removed.`,qg=()=>`您訪問的頁面不存在或已被移除。`,Jg=()=>`您访问的页面不存在或已被移除。`,Yg=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ug(e):n===`ja-JP`?Wg(e):n===`ko-KR`?Gg(e):n===`ru-RU`?Kg(e):n===`zh-TW`?qg(e):Jg(e)}),Xg=()=>`Welcome back`,Zg=()=>`Welcome back`,Qg=()=>`Welcome back`,$g=()=>`Welcome back`,e_=()=>`歡迎回來`,t_=()=>`欢迎回来`,n_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Xg(e):n===`ja-JP`?Zg(e):n===`ko-KR`?Qg(e):n===`ru-RU`?$g(e):n===`zh-TW`?e_(e):t_(e)}),r_=()=>`Sign in to GMPay`,i_=()=>`Sign in to GMPay`,a_=()=>`Sign in to GMPay`,o_=()=>`Sign in to GMPay`,s_=()=>`登入 GMPay 後臺`,c_=()=>`登录 GMPay 后台`,l_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?r_(e):n===`ja-JP`?i_(e):n===`ko-KR`?a_(e):n===`ru-RU`?o_(e):n===`zh-TW`?s_(e):c_(e)}),u_=()=>`Use your admin account to access the console and manage payment orders, wallet configuration and callback notifications.`,d_=()=>`Use your admin account to access the console and manage payment orders, wallet configuration and callback notifications.`,f_=()=>`Use your admin account to access the console and manage payment orders, wallet configuration and callback notifications.`,p_=()=>`Use your admin account to access the console and manage payment orders, wallet configuration and callback notifications.`,m_=()=>`使用管理員帳號進入控制台,繼續處理收款訂單、錢包配置與通知回呼。`,h_=()=>`使用管理员账号进入控制台,继续处理收款订单、钱包配置与通知回调。`,g_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?u_(e):n===`ja-JP`?d_(e):n===`ko-KR`?f_(e):n===`ru-RU`?p_(e):n===`zh-TW`?m_(e):h_(e)}),__=()=>`Username`,v_=()=>`Username`,y_=()=>`Username`,b_=()=>`Username`,x_=()=>`帳號`,S_=()=>`账号`,C_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?__(e):n===`ja-JP`?v_(e):n===`ko-KR`?y_(e):n===`ru-RU`?b_(e):n===`zh-TW`?x_(e):S_(e)}),w_=()=>`admin`,T_=()=>`admin`,E_=()=>`admin`,D_=()=>`admin`,O_=()=>`admin`,k_=()=>`admin`,A_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?w_(e):n===`ja-JP`?T_(e):n===`ko-KR`?E_(e):n===`ru-RU`?D_(e):n===`zh-TW`?O_(e):k_(e)}),j_=()=>`Password`,M_=()=>`Password`,N_=()=>`Password`,P_=()=>`Password`,F_=()=>`密碼`,I_=()=>`密码`,L_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?j_(e):n===`ja-JP`?M_(e):n===`ko-KR`?N_(e):n===`ru-RU`?P_(e):n===`zh-TW`?F_(e):I_(e)}),R_=()=>`Please enter your username`,z_=()=>`Please enter your username`,B_=()=>`Please enter your username`,V_=()=>`Please enter your username`,H_=()=>`請輸入帳號`,U_=()=>`请输入账号`,W_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?R_(e):n===`ja-JP`?z_(e):n===`ko-KR`?B_(e):n===`ru-RU`?V_(e):n===`zh-TW`?H_(e):U_(e)}),G_=()=>`Please enter your password`,K_=()=>`Please enter your password`,q_=()=>`Please enter your password`,J_=()=>`Please enter your password`,Y_=()=>`請輸入密碼`,X_=()=>`请输入密码`,Z_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?G_(e):n===`ja-JP`?K_(e):n===`ko-KR`?q_(e):n===`ru-RU`?J_(e):n===`zh-TW`?Y_(e):X_(e)}),Q_=()=>`Sign In`,$_=()=>`Sign In`,ev=()=>`Sign In`,tv=()=>`Sign In`,nv=()=>`登入`,rv=()=>`登录`,iv=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Q_(e):n===`ja-JP`?$_(e):n===`ko-KR`?ev(e):n===`ru-RU`?tv(e):n===`zh-TW`?nv(e):rv(e)}),av=e=>`Welcome back, ${e?.username}!`,ov=e=>`Welcome back, ${e?.username}!`,sv=e=>`Welcome back, ${e?.username}!`,cv=e=>`Welcome back, ${e?.username}!`,lv=e=>`歡迎回來,${e?.username}!`,uv=e=>`欢迎回来,${e?.username}!`,dv=((e,t={})=>{let n=t.locale??m();return n===`en-US`?av(e):n===`ja-JP`?ov(e):n===`ko-KR`?sv(e):n===`ru-RU`?cv(e):n===`zh-TW`?lv(e):uv(e)}),fv=()=>`GMPay Setup`,pv=()=>`GMPay Setup`,mv=()=>`GMPay Setup`,hv=()=>`GMPay Setup`,gv=()=>`GMPay 安裝配置`,_v=()=>`GMPay 安装配置`,vv=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fv(e):n===`ja-JP`?pv(e):n===`ko-KR`?mv(e):n===`ru-RU`?hv(e):n===`zh-TW`?gv(e):_v(e)}),yv=()=>`Fill in the details below to create your configuration file.`,bv=()=>`Fill in the details below to create your configuration file.`,xv=()=>`Fill in the details below to create your configuration file.`,Sv=()=>`Fill in the details below to create your configuration file.`,Cv=()=>`填寫以下資訊以建立配置檔案。`,wv=()=>`填写以下信息以创建配置文件。`,Tv=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yv(e):n===`ja-JP`?bv(e):n===`ko-KR`?xv(e):n===`ru-RU`?Sv(e):n===`zh-TW`?Cv(e):wv(e)}),Ev=()=>`App Name`,Dv=()=>`App Name`,Ov=()=>`App Name`,kv=()=>`App Name`,Av=()=>`應用名稱`,jv=()=>`应用名称`,Mv=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ev(e):n===`ja-JP`?Dv(e):n===`ko-KR`?Ov(e):n===`ru-RU`?kv(e):n===`zh-TW`?Av(e):jv(e)}),Nv=()=>`App URI`,Pv=()=>`App URI`,Fv=()=>`App URI`,Iv=()=>`App URI`,Lv=()=>`應用地址`,Rv=()=>`应用地址`,zv=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Nv(e):n===`ja-JP`?Pv(e):n===`ko-KR`?Fv(e):n===`ru-RU`?Iv(e):n===`zh-TW`?Lv(e):Rv(e)}),Bv=()=>`HTTP Bind Address`,Vv=()=>`HTTP Bind Address`,Hv=()=>`HTTP Bind Address`,Uv=()=>`HTTP Bind Address`,Wv=()=>`HTTP 繫結地址`,Gv=()=>`HTTP 绑定地址`,Kv=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Bv(e):n===`ja-JP`?Vv(e):n===`ko-KR`?Hv(e):n===`ru-RU`?Uv(e):n===`zh-TW`?Wv(e):Gv(e)}),qv=()=>`HTTP Bind Port`,Jv=()=>`HTTP Bind Port`,Yv=()=>`HTTP Bind Port`,Xv=()=>`HTTP Bind Port`,Zv=()=>`HTTP 繫結埠`,Qv=()=>`HTTP 绑定端口`,$v=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qv(e):n===`ja-JP`?Jv(e):n===`ko-KR`?Yv(e):n===`ru-RU`?Xv(e):n===`zh-TW`?Zv(e):Qv(e)}),ey=()=>`Runtime Root Path`,ty=()=>`Runtime Root Path`,ny=()=>`Runtime Root Path`,ry=()=>`Runtime Root Path`,iy=()=>`執行時根目錄`,ay=()=>`运行时根目录`,oy=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ey(e):n===`ja-JP`?ty(e):n===`ko-KR`?ny(e):n===`ru-RU`?ry(e):n===`zh-TW`?iy(e):ay(e)}),sy=()=>`Log Save Path`,cy=()=>`Log Save Path`,ly=()=>`Log Save Path`,uy=()=>`Log Save Path`,dy=()=>`日誌儲存路徑`,fy=()=>`日志保存路径`,py=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sy(e):n===`ja-JP`?cy(e):n===`ko-KR`?ly(e):n===`ru-RU`?uy(e):n===`zh-TW`?dy(e):fy(e)}),my=()=>`Order Expiration (min)`,hy=()=>`Order Expiration (min)`,gy=()=>`Order Expiration (min)`,_y=()=>`Order Expiration (min)`,vy=()=>`訂單過期時間(分鐘)`,yy=()=>`订单过期时间(分钟)`,by=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?my(e):n===`ja-JP`?hy(e):n===`ko-KR`?gy(e):n===`ru-RU`?_y(e):n===`zh-TW`?vy(e):yy(e)}),xy=()=>`Max Callback Retries`,Sy=()=>`Max Callback Retries`,Cy=()=>`Max Callback Retries`,wy=()=>`Max Callback Retries`,Ty=()=>`最大回調重試次數`,Ey=()=>`最大回调重试次数`,Dy=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xy(e):n===`ja-JP`?Sy(e):n===`ko-KR`?Cy(e):n===`ru-RU`?wy(e):n===`zh-TW`?Ty(e):Ey(e)}),Oy=()=>`Install`,ky=()=>`Install`,Ay=()=>`Install`,jy=()=>`Install`,My=()=>`開始安裝`,Ny=()=>`开始安装`,Py=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Oy(e):n===`ja-JP`?ky(e):n===`ko-KR`?Ay(e):n===`ru-RU`?jy(e):n===`zh-TW`?My(e):Ny(e)}),Fy=()=>`Installing…`,Iy=()=>`Installing…`,Ly=()=>`Installing…`,Ry=()=>`Installing…`,zy=()=>`安裝中…`,By=()=>`安装中…`,Vy=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Fy(e):n===`ja-JP`?Iy(e):n===`ko-KR`?Ly(e):n===`ru-RU`?Ry(e):n===`zh-TW`?zy(e):By(e)}),Hy=()=>`Done!`,Uy=()=>`Done!`,Wy=()=>`Done!`,Gy=()=>`Done!`,Ky=()=>`完成!`,qy=()=>`完成!`,Jy=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hy(e):n===`ja-JP`?Uy(e):n===`ko-KR`?Wy(e):n===`ru-RU`?Gy(e):n===`zh-TW`?Ky(e):qy(e)}),Yy=()=>`Install failed.`,Xy=()=>`Install failed.`,Zy=()=>`Install failed.`,Qy=()=>`Install failed.`,$y=()=>`安裝失敗。`,eb=()=>`安装失败。`,tb=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yy(e):n===`ja-JP`?Xy(e):n===`ko-KR`?Zy(e):n===`ru-RU`?Qy(e):n===`zh-TW`?$y(e):eb(e)}),nb=()=>`Error`,rb=()=>`Error`,ib=()=>`Error`,ab=()=>`Error`,ob=()=>`安裝失敗`,sb=()=>`安装失败`,cb=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nb(e):n===`ja-JP`?rb(e):n===`ko-KR`?ib(e):n===`ru-RU`?ab(e):n===`zh-TW`?ob(e):sb(e)}),lb=()=>`Secure and efficient USDT payment middleware`,ub=()=>`Secure and efficient USDT payment middleware`,db=()=>`Secure and efficient USDT payment middleware`,fb=()=>`Secure and efficient USDT payment middleware`,pb=()=>`安全、高效的 USDT 支付中介軟體`,mb=()=>`安全、高效的 USDT 支付中间件`,hb=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lb(e):n===`ja-JP`?ub(e):n===`ko-KR`?db(e):n===`ru-RU`?fb(e):n===`zh-TW`?pb(e):mb(e)}),gb=()=>`Installation complete`,_b=()=>`Installation complete`,vb=()=>`Installation complete`,yb=()=>`Installation complete`,bb=()=>`安裝完成`,xb=()=>`安装完成`,Sb=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gb(e):n===`ja-JP`?_b(e):n===`ko-KR`?vb(e):n===`ru-RU`?yb(e):n===`zh-TW`?bb(e):xb(e)}),Cb=()=>`Please save the initial admin username and password below.`,wb=()=>`Please save the initial admin username and password below.`,Tb=()=>`Please save the initial admin username and password below.`,Eb=()=>`Please save the initial admin username and password below.`,Db=()=>`請先儲存下面的初始管理員帳號和密碼。`,Ob=()=>`请先保存下面的初始管理员账号和密码,并尽快登录修改密码。`,kb=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Cb(e):n===`ja-JP`?wb(e):n===`ko-KR`?Tb(e):n===`ru-RU`?Eb(e):n===`zh-TW`?Db(e):Ob(e)}),Ab=()=>`Admin credentials ready`,jb=()=>`Admin credentials ready`,Mb=()=>`Admin credentials ready`,Nb=()=>`Admin credentials ready`,Pb=()=>`管理員憑據已生成`,Fb=()=>`管理员凭证已生成`,Ib=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ab(e):n===`ja-JP`?jb(e):n===`ko-KR`?Mb(e):n===`ru-RU`?Nb(e):n===`zh-TW`?Pb(e):Fb(e)}),Lb=()=>`Initial password unavailable`,Rb=()=>`Initial password unavailable`,zb=()=>`Initial password unavailable`,Bb=()=>`Initial password unavailable`,Vb=()=>`初始密碼讀取失敗`,Hb=()=>`初始密码读取失败`,Ub=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Lb(e):n===`ja-JP`?Rb(e):n===`ko-KR`?zb(e):n===`ru-RU`?Bb(e):n===`zh-TW`?Vb(e):Hb(e)}),Wb=()=>`Check the service startup terminal for the admin username and initial password.`,Gb=()=>`Check the service startup terminal for the admin username and initial password.`,Kb=()=>`Check the service startup terminal for the admin username and initial password.`,qb=()=>`Check the service startup terminal for the admin username and initial password.`,Jb=()=>`請前往服務啟動終端機查看管理員帳號和初始密碼。`,Yb=()=>`如果没有看到初始密码,请刷新浏览器重试,或前往服务启动终端查看管理员账号和初始密码。`,Xb=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Wb(e):n===`ja-JP`?Gb(e):n===`ko-KR`?Kb(e):n===`ru-RU`?qb(e):n===`zh-TW`?Jb(e):Yb(e)}),Zb=()=>`Go to sign in`,Qb=()=>`Go to sign in`,$b=()=>`Go to sign in`,ex=()=>`Go to sign in`,tx=()=>`去登入`,nx=()=>`去登录`,rx=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Zb(e):n===`ja-JP`?Qb(e):n===`ko-KR`?$b(e):n===`ru-RU`?ex(e):n===`zh-TW`?tx(e):nx(e)}),ix=()=>`Username`,ax=()=>`Username`,ox=()=>`Username`,sx=()=>`Username`,cx=()=>`使用者名稱`,lx=()=>`用户名`,ux=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ix(e):n===`ja-JP`?ax(e):n===`ko-KR`?ox(e):n===`ru-RU`?sx(e):n===`zh-TW`?cx(e):lx(e)}),dx=()=>`Initial password`,fx=()=>`Initial password`,px=()=>`Initial password`,mx=()=>`Initial password`,hx=()=>`初始密碼`,gx=()=>`初始密码`,_x=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dx(e):n===`ja-JP`?fx(e):n===`ko-KR`?px(e):n===`ru-RU`?mx(e):n===`zh-TW`?hx(e):gx(e)}),vx=()=>`If you still use the initial password after the first sign-in, the system will prompt you to change it immediately.`,yx=()=>`If you still use the initial password after the first sign-in, the system will prompt you to change it immediately.`,bx=()=>`If you still use the initial password after the first sign-in, the system will prompt you to change it immediately.`,xx=()=>`If you still use the initial password after the first sign-in, the system will prompt you to change it immediately.`,Sx=()=>`首次登入後如果仍使用初始密碼,系統會提示你立即修改。`,Cx=()=>`请在首次登录后尽快修改初始密码。`,wx=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vx(e):n===`ja-JP`?yx(e):n===`ko-KR`?bx(e):n===`ru-RU`?xx(e):n===`zh-TW`?Sx(e):Cx(e)}),Tx=()=>`Change the password in an HTTPS environment`,Ex=()=>`Change the password in an HTTPS environment`,Dx=()=>`Change the password in an HTTPS environment`,Ox=()=>`Change the password in an HTTPS environment`,kx=()=>`請在 HTTPS 環境下修改密碼`,Ax=()=>`请在 HTTPS 环境下修改密码`,jx=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Tx(e):n===`ja-JP`?Ex(e):n===`ko-KR`?Dx(e):n===`ru-RU`?Ox(e):n===`zh-TW`?kx(e):Ax(e)}),Mx=()=>`Show password`,Nx=()=>`Show password`,Px=()=>`Show password`,Fx=()=>`Show password`,Ix=()=>`顯示密碼`,Lx=()=>`显示密码`,Rx=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Mx(e):n===`ja-JP`?Nx(e):n===`ko-KR`?Px(e):n===`ru-RU`?Fx(e):n===`zh-TW`?Ix(e):Lx(e)}),zx=()=>`Hide password`,Bx=()=>`Hide password`,Vx=()=>`Hide password`,Hx=()=>`Hide password`,Ux=()=>`隱藏密碼`,Wx=()=>`隐藏密码`,Gx=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zx(e):n===`ja-JP`?Bx(e):n===`ko-KR`?Vx(e):n===`ru-RU`?Hx(e):n===`zh-TW`?Ux(e):Wx(e)}),Kx=()=>`One-time view`,qx=()=>`One-time view`,Jx=()=>`One-time view`,Yx=()=>`One-time view`,Xx=()=>`一次性檢視`,Zx=()=>`一次性查看`,Qx=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Kx(e):n===`ja-JP`?qx(e):n===`ko-KR`?Jx(e):n===`ru-RU`?Yx(e):n===`zh-TW`?Xx(e):Zx(e)}),$x=()=>`Copy`,eS=()=>`Copy`,tS=()=>`Copy`,nS=()=>`Copy`,rS=()=>`複製`,iS=()=>`复制`,aS=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$x(e):n===`ja-JP`?eS(e):n===`ko-KR`?tS(e):n===`ru-RU`?nS(e):n===`zh-TW`?rS(e):iS(e)}),oS=()=>`Copied`,sS=()=>`Copied`,cS=()=>`Copied`,lS=()=>`Copied`,uS=()=>`已複製`,dS=()=>`已复制`,fS=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?oS(e):n===`ja-JP`?sS(e):n===`ko-KR`?cS(e):n===`ru-RU`?lS(e):n===`zh-TW`?uS(e):dS(e)}),pS=()=>`Copy failed`,mS=()=>`Copy failed`,hS=()=>`Copy failed`,gS=()=>`Copy failed`,_S=()=>`複製失敗`,vS=()=>`复制失败`,yS=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pS(e):n===`ja-JP`?mS(e):n===`ko-KR`?hS(e):n===`ru-RU`?gS(e):n===`zh-TW`?_S(e):vS(e)}),bS=()=>`We recommend changing the admin password first`,xS=()=>`We recommend changing the admin password first`,SS=()=>`We recommend changing the admin password first`,CS=()=>`We recommend changing the admin password first`,wS=()=>`建議先完成管理員密碼修改`,TS=()=>`建议先完成管理员密码修改`,ES=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bS(e):n===`ja-JP`?xS(e):n===`ko-KR`?SS(e):n===`ru-RU`?CS(e):n===`zh-TW`?wS(e):TS(e)}),DS=()=>`Change password now`,OS=()=>`Change password now`,kS=()=>`Change password now`,AS=()=>`Change password now`,jS=()=>`立即修改密碼`,MS=()=>`立即修改密码`,NS=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?DS(e):n===`ja-JP`?OS(e):n===`ko-KR`?kS(e):n===`ru-RU`?AS(e):n===`zh-TW`?jS(e):MS(e)}),PS=()=>`This account is still using the initial password`,FS=()=>`This account is still using the initial password`,IS=()=>`This account is still using the initial password`,LS=()=>`This account is still using the initial password`,RS=()=>`當前帳號仍在使用初始密碼`,zS=()=>`当前账号仍在使用初始密码`,BS=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?PS(e):n===`ja-JP`?FS(e):n===`ko-KR`?IS(e):n===`ru-RU`?LS(e):n===`zh-TW`?RS(e):zS(e)}),VS=()=>`To reduce the risk of someone signing in with a weak or default password, we recommend changing the admin password now before entering the system.`,HS=()=>`To reduce the risk of someone signing in with a weak or default password, we recommend changing the admin password now before entering the system.`,US=()=>`To reduce the risk of someone signing in with a weak or default password, we recommend changing the admin password now before entering the system.`,WS=()=>`To reduce the risk of someone signing in with a weak or default password, we recommend changing the admin password now before entering the system.`,GS=()=>`為了避免後臺帳號被弱口令或預設口令直接登入,建議你現在先完成密碼修改,再繼續進入系統。`,KS=()=>`为了避免后台账号因弱口令或默认口令被直接登录,建议你现在先完成密码修改,再继续进入系统。`,qS=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?VS(e):n===`ja-JP`?HS(e):n===`ko-KR`?US(e):n===`ru-RU`?WS(e):n===`zh-TW`?GS(e):KS(e)}),JS=()=>`What happens next`,YS=()=>`What happens next`,XS=()=>`What happens next`,ZS=()=>`What happens next`,QS=()=>`接下來會發生什麼`,$S=()=>`接下来会发生什么`,eC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?JS(e):n===`ja-JP`?YS(e):n===`ko-KR`?XS(e):n===`ru-RU`?ZS(e):n===`zh-TW`?QS(e):$S(e)}),tC=()=>`Clicking “Change password now” will take you to the password change page`,nC=()=>`Clicking “Change password now” will take you to the password change page`,rC=()=>`Clicking “Change password now” will take you to the password change page`,iC=()=>`Clicking “Change password now” will take you to the password change page`,aC=()=>`點選“立即修改密碼”後會跳轉到修改密碼頁面`,oC=()=>`点击“立即修改密码”后会跳转到修改密码页面`,sC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tC(e):n===`ja-JP`?nC(e):n===`ko-KR`?rC(e):n===`ru-RU`?iC(e):n===`zh-TW`?aC(e):oC(e)}),cC=()=>`After updating the password, you can continue to the page you originally wanted to visit`,lC=()=>`After updating the password, you can continue to the page you originally wanted to visit`,uC=()=>`After updating the password, you can continue to the page you originally wanted to visit`,dC=()=>`After updating the password, you can continue to the page you originally wanted to visit`,fC=()=>`修改完成後可繼續返回你原本要進入的頁面`,pC=()=>`修改完成后可继续返回你原本要进入的页面`,mC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cC(e):n===`ja-JP`?lC(e):n===`ko-KR`?uC(e):n===`ru-RU`?dC(e):n===`zh-TW`?fC(e):pC(e)}),hC=()=>`Appearance`,gC=()=>`Appearance`,_C=()=>`Appearance`,vC=()=>`Appearance`,yC=()=>`外觀設定`,bC=()=>`外观设置`,xC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hC(e):n===`ja-JP`?gC(e):n===`ko-KR`?_C(e):n===`ru-RU`?vC(e):n===`zh-TW`?yC(e):bC(e)}),SC=()=>`Admin Console`,CC=()=>`Admin Console`,wC=()=>`Admin Console`,TC=()=>`Admin Console`,EC=()=>`管理控制台`,DC=()=>`管理控制台`,OC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?SC(e):n===`ja-JP`?CC(e):n===`ko-KR`?wC(e):n===`ru-RU`?TC(e):n===`zh-TW`?EC(e):DC(e)}),kC=()=>`Payment Integrations`,AC=()=>`Payment Integrations`,jC=()=>`Payment Integrations`,MC=()=>`Payment Integrations`,NC=()=>`支付接入`,PC=()=>`支付接入`,FC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kC(e):n===`ja-JP`?AC(e):n===`ko-KR`?jC(e):n===`ru-RU`?MC(e):n===`zh-TW`?NC(e):PC(e)}),IC=()=>`Payment Assets`,LC=()=>`Payment Assets`,RC=()=>`Payment Assets`,zC=()=>`Payment Assets`,BC=()=>`收款資產`,VC=()=>`收款资产`,HC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?IC(e):n===`ja-JP`?LC(e):n===`ko-KR`?RC(e):n===`ru-RU`?zC(e):n===`zh-TW`?BC(e):VC(e)}),UC=()=>`Integration Guide`,WC=()=>`Integration Guide`,GC=()=>`Integration Guide`,KC=()=>`Integration Guide`,qC=()=>`接入配置`,JC=()=>`接入配置`,YC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?UC(e):n===`ja-JP`?WC(e):n===`ko-KR`?GC(e):n===`ru-RU`?KC(e):n===`zh-TW`?qC(e):JC(e)}),XC=()=>`Transactions`,ZC=()=>`Transactions`,QC=()=>`Transactions`,$C=()=>`Transactions`,ew=()=>`交易`,tw=()=>`交易`,nw=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?XC(e):n===`ja-JP`?ZC(e):n===`ko-KR`?QC(e):n===`ru-RU`?$C(e):n===`zh-TW`?ew(e):tw(e)}),rw=()=>`Finance`,iw=()=>`Finance`,aw=()=>`Finance`,ow=()=>`Finance`,sw=()=>`財務`,cw=()=>`财务`,lw=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rw(e):n===`ja-JP`?iw(e):n===`ko-KR`?aw(e):n===`ru-RU`?ow(e):n===`zh-TW`?sw(e):cw(e)}),uw=()=>`Address Management`,dw=()=>`Address Management`,fw=()=>`Address Management`,pw=()=>`Address Management`,mw=()=>`地址管理`,hw=()=>`地址管理`,gw=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?uw(e):n===`ja-JP`?dw(e):n===`ko-KR`?fw(e):n===`ru-RU`?pw(e):n===`zh-TW`?mw(e):hw(e)}),_w=e=>`Last login: ${e?.time}`,vw=e=>`Last login: ${e?.time}`,yw=e=>`Last login: ${e?.time}`,bw=e=>`Last login: ${e?.time}`,xw=e=>`上次登入: ${e?.time}`,Sw=e=>`上次登录: ${e?.time}`,Cw=((e,t={})=>{let n=t.locale??m();return n===`en-US`?_w(e):n===`ja-JP`?vw(e):n===`ko-KR`?yw(e):n===`ru-RU`?bw(e):n===`zh-TW`?xw(e):Sw(e)}),ww=()=>`Welcome to Admin Console`,Tw=()=>`Welcome to Admin Console`,Ew=()=>`Welcome to Admin Console`,Dw=()=>`Welcome to Admin Console`,Ow=()=>`歡迎使用管理後臺`,kw=()=>`欢迎使用管理后台`,Aw=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ww(e):n===`ja-JP`?Tw(e):n===`ko-KR`?Ew(e):n===`ru-RU`?Dw(e):n===`zh-TW`?Ow(e):kw(e)}),jw=()=>`Dashboard`,Mw=()=>`Dashboard`,Nw=()=>`Dashboard`,Pw=()=>`Dashboard`,Fw=()=>`儀表盤`,Iw=()=>`仪表盘`,Lw=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jw(e):n===`ja-JP`?Mw(e):n===`ko-KR`?Nw(e):n===`ru-RU`?Pw(e):n===`zh-TW`?Fw(e):Iw(e)}),Rw=()=>`View asset balances, revenue trends, and recent order statuses.`,zw=()=>`View asset balances, revenue trends, and recent order statuses.`,Bw=()=>`View asset balances, revenue trends, and recent order statuses.`,Vw=()=>`View asset balances, revenue trends, and recent order statuses.`,Hw=()=>`檢視資產、流水與最近訂單狀態。`,Uw=()=>`查看资产、流水与最近订单状态。`,Ww=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Rw(e):n===`ja-JP`?zw(e):n===`ko-KR`?Bw(e):n===`ru-RU`?Vw(e):n===`zh-TW`?Hw(e):Uw(e)}),Gw=()=>`Time`,Kw=()=>`Time`,qw=()=>`Time`,Jw=()=>`Time`,Yw=()=>`時間`,Xw=()=>`时间`,Zw=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Gw(e):n===`ja-JP`?Kw(e):n===`ko-KR`?qw(e):n===`ru-RU`?Jw(e):n===`zh-TW`?Yw(e):Xw(e)}),Qw=()=>`Order ID`,$w=()=>`Order ID`,eT=()=>`Order ID`,tT=()=>`Order ID`,nT=()=>`訂單號`,rT=()=>`订单号`,iT=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Qw(e):n===`ja-JP`?$w(e):n===`ko-KR`?eT(e):n===`ru-RU`?tT(e):n===`zh-TW`?nT(e):rT(e)}),aT=()=>`Wallet Address`,oT=()=>`Wallet Address`,sT=()=>`Wallet Address`,cT=()=>`Wallet Address`,lT=()=>`錢包地址`,uT=()=>`钱包地址`,dT=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?aT(e):n===`ja-JP`?oT(e):n===`ko-KR`?sT(e):n===`ru-RU`?cT(e):n===`zh-TW`?lT(e):uT(e)}),fT=()=>`Fiat Amount`,pT=()=>`Fiat Amount`,mT=()=>`Fiat Amount`,hT=()=>`Fiat Amount`,gT=()=>`法幣金額`,_T=()=>`法币金额`,vT=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fT(e):n===`ja-JP`?pT(e):n===`ko-KR`?mT(e):n===`ru-RU`?hT(e):n===`zh-TW`?gT(e):_T(e)}),yT=()=>`Token Amount`,bT=()=>`Token Amount`,xT=()=>`Token Amount`,ST=()=>`Token Amount`,CT=()=>`代幣金額`,wT=()=>`代币金额`,TT=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yT(e):n===`ja-JP`?bT(e):n===`ko-KR`?xT(e):n===`ru-RU`?ST(e):n===`zh-TW`?CT(e):wT(e)}),ET=()=>`Chain`,DT=()=>`Chain`,OT=()=>`Chain`,kT=()=>`Chain`,AT=()=>`鏈`,jT=()=>`链`,MT=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ET(e):n===`ja-JP`?DT(e):n===`ko-KR`?OT(e):n===`ru-RU`?kT(e):n===`zh-TW`?AT(e):jT(e)}),NT=()=>`Status`,PT=()=>`Status`,FT=()=>`Status`,IT=()=>`Status`,LT=()=>`狀態`,RT=()=>`状态`,zT=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?NT(e):n===`ja-JP`?PT(e):n===`ko-KR`?FT(e):n===`ru-RU`?IT(e):n===`zh-TW`?LT(e):RT(e)}),BT=()=>`Revenue Trend`,VT=()=>`Revenue Trend`,HT=()=>`Revenue Trend`,UT=()=>`Revenue Trend`,WT=()=>`流水趨勢`,GT=()=>`流水趋势`,KT=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?BT(e):n===`ja-JP`?VT(e):n===`ko-KR`?HT(e):n===`ru-RU`?UT(e):n===`zh-TW`?WT(e):GT(e)}),qT=()=>`Trend of successful and failed order amounts`,JT=()=>`Trend of successful and failed order amounts`,YT=()=>`Trend of successful and failed order amounts`,XT=()=>`Trend of successful and failed order amounts`,ZT=()=>`成功與失敗訂單金額趨勢`,QT=()=>`成功与失败订单金额趋势`,$T=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qT(e):n===`ja-JP`?JT(e):n===`ko-KR`?YT(e):n===`ru-RU`?XT(e):n===`zh-TW`?ZT(e):QT(e)}),eE=()=>`Order Statistics`,tE=()=>`Order Statistics`,nE=()=>`Order Statistics`,rE=()=>`Order Statistics`,iE=()=>`訂單統計`,aE=()=>`订单统计`,oE=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?eE(e):n===`ja-JP`?tE(e):n===`ko-KR`?nE(e):n===`ru-RU`?rE(e):n===`zh-TW`?iE(e):aE(e)}),sE=()=>`Daily order count and conversion rate trend`,cE=()=>`Daily order count and conversion rate trend`,lE=()=>`Daily order count and conversion rate trend`,uE=()=>`Daily order count and conversion rate trend`,dE=()=>`每日訂單數與成交率趨勢`,fE=()=>`每日订单数与成交率趋势`,pE=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sE(e):n===`ja-JP`?cE(e):n===`ko-KR`?lE(e):n===`ru-RU`?uE(e):n===`zh-TW`?dE(e):fE(e)}),mE=()=>`Recent Orders`,hE=()=>`Recent Orders`,gE=()=>`Recent Orders`,_E=()=>`Recent Orders`,vE=()=>`最近訂單`,yE=()=>`最近订单`,bE=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mE(e):n===`ja-JP`?hE(e):n===`ko-KR`?gE(e):n===`ru-RU`?_E(e):n===`zh-TW`?vE(e):yE(e)}),xE=()=>`Payment status of the latest 20 orders`,SE=()=>`Payment status of the latest 20 orders`,CE=()=>`Payment status of the latest 20 orders`,wE=()=>`Payment status of the latest 20 orders`,TE=()=>`最新 20 筆訂單收款狀態`,EE=()=>`最新 20 笔订单收款状态`,DE=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xE(e):n===`ja-JP`?SE(e):n===`ko-KR`?CE(e):n===`ru-RU`?wE(e):n===`zh-TW`?TE(e):EE(e)}),OE=()=>`No recent orders`,kE=()=>`No recent orders`,AE=()=>`No recent orders`,jE=()=>`No recent orders`,ME=()=>`暫無最近訂單`,NE=()=>`暂无最近订单`,PE=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?OE(e):n===`ja-JP`?kE(e):n===`ko-KR`?AE(e):n===`ru-RU`?jE(e):n===`zh-TW`?ME(e):NE(e)}),FE=()=>`Asset Trend`,IE=()=>`Asset Trend`,LE=()=>`Asset Trend`,RE=()=>`Asset Trend`,zE=()=>`資產趨勢`,BE=()=>`资产趋势`,VE=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?FE(e):n===`ja-JP`?IE(e):n===`ko-KR`?LE(e):n===`ru-RU`?RE(e):n===`zh-TW`?zE(e):BE(e)}),HE=()=>`Switch between today, 7 days, 30 days, and custom views`,UE=()=>`Switch between today, 7 days, 30 days, and custom views`,WE=()=>`Switch between today, 7 days, 30 days, and custom views`,GE=()=>`Switch between today, 7 days, 30 days, and custom views`,KE=()=>`支援今日、7 天、30 天與自定義檢視切換`,qE=()=>`支持今日、7 天、30 天与自定义视图切换`,JE=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?HE(e):n===`ja-JP`?UE(e):n===`ko-KR`?WE(e):n===`ru-RU`?GE(e):n===`zh-TW`?KE(e):qE(e)}),YE=()=>`Filter`,XE=()=>`Filter`,ZE=()=>`Filter`,QE=()=>`Filter`,$E=()=>`篩選`,eD=()=>`筛选`,tD=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?YE(e):n===`ja-JP`?XE(e):n===`ko-KR`?ZE(e):n===`ru-RU`?QE(e):n===`zh-TW`?$E(e):eD(e)}),nD=()=>`No data`,rD=()=>`No data`,iD=()=>`No data`,aD=()=>`No data`,oD=()=>`無資料`,sD=()=>`无数据`,cD=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nD(e):n===`ja-JP`?rD(e):n===`ko-KR`?iD(e):n===`ru-RU`?aD(e):n===`zh-TW`?oD(e):sD(e)}),lD=()=>`Clear filters`,uD=()=>`Clear filters`,dD=()=>`Clear filters`,fD=()=>`Clear filters`,pD=()=>`清除篩選`,mD=()=>`清除筛选`,hD=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lD(e):n===`ja-JP`?uD(e):n===`ko-KR`?dD(e):n===`ru-RU`?fD(e):n===`zh-TW`?pD(e):mD(e)}),gD=()=>`Total Amount`,_D=()=>`Total Amount`,vD=()=>`Total Amount`,yD=()=>`Total Amount`,bD=()=>`總金額`,xD=()=>`总金额`,SD=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gD(e):n===`ja-JP`?_D(e):n===`ko-KR`?vD(e):n===`ru-RU`?yD(e):n===`zh-TW`?bD(e):xD(e)}),CD=()=>`Actual Amount`,wD=()=>`Actual Amount`,TD=()=>`Actual Amount`,ED=()=>`Actual Amount`,DD=()=>`實收金額`,OD=()=>`实收金额`,kD=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?CD(e):n===`ja-JP`?wD(e):n===`ko-KR`?TD(e):n===`ru-RU`?ED(e):n===`zh-TW`?DD(e):OD(e)}),AD=()=>`Total Asset Balance (USD)`,jD=()=>`Total Asset Balance (USD)`,MD=()=>`Total Asset Balance (USD)`,ND=()=>`Total Asset Balance (USD)`,PD=()=>`總資產餘額 (USD)`,FD=()=>`总资产余额 (USD)`,ID=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?AD(e):n===`ja-JP`?jD(e):n===`ko-KR`?MD(e):n===`ru-RU`?ND(e):n===`zh-TW`?PD(e):FD(e)}),LD=()=>`Current available asset pool`,RD=()=>`Current available asset pool`,zD=()=>`Current available asset pool`,BD=()=>`Current available asset pool`,VD=()=>`當前可用資金池`,HD=()=>`当前可用资金池`,UD=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?LD(e):n===`ja-JP`?RD(e):n===`ko-KR`?zD(e):n===`ru-RU`?BD(e):n===`zh-TW`?VD(e):HD(e)}),WD=()=>`Total Volume`,GD=()=>`Total Volume`,KD=()=>`Total Volume`,qD=()=>`Total Volume`,JD=()=>`總流水`,YD=()=>`总流水`,XD=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?WD(e):n===`ja-JP`?GD(e):n===`ko-KR`?KD(e):n===`ru-RU`?qD(e):n===`zh-TW`?JD(e):YD(e)}),ZD=()=>`Cumulative successful payment amount`,QD=()=>`Cumulative successful payment amount`,$D=()=>`Cumulative successful payment amount`,eO=()=>`Cumulative successful payment amount`,tO=()=>`累計成功收款金額`,nO=()=>`累计成功收款金额`,rO=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ZD(e):n===`ja-JP`?QD(e):n===`ko-KR`?$D(e):n===`ru-RU`?eO(e):n===`zh-TW`?tO(e):nO(e)}),iO=()=>`Total Orders`,aO=()=>`Total Orders`,oO=()=>`Total Orders`,sO=()=>`Total Orders`,cO=()=>`總訂單量`,lO=()=>`总订单量`,uO=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?iO(e):n===`ja-JP`?aO(e):n===`ko-KR`?oO(e):n===`ru-RU`?sO(e):n===`zh-TW`?cO(e):lO(e)}),dO=()=>`Cumulative number of orders`,fO=()=>`Cumulative number of orders`,pO=()=>`Cumulative number of orders`,mO=()=>`Cumulative number of orders`,hO=()=>`累計訂單數量`,gO=()=>`累计订单数量`,_O=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dO(e):n===`ja-JP`?fO(e):n===`ko-KR`?pO(e):n===`ru-RU`?mO(e):n===`zh-TW`?hO(e):gO(e)}),vO=()=>`Total Conversion Rate`,yO=()=>`Total Conversion Rate`,bO=()=>`Total Conversion Rate`,xO=()=>`Total Conversion Rate`,SO=()=>`總成交率`,CO=()=>`总成交率`,wO=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vO(e):n===`ja-JP`?yO(e):n===`ko-KR`?bO(e):n===`ru-RU`?xO(e):n===`zh-TW`?SO(e):CO(e)}),TO=()=>`Cumulative paid / total orders`,EO=()=>`Cumulative paid / total orders`,DO=()=>`Cumulative paid / total orders`,OO=()=>`Cumulative paid / total orders`,kO=()=>`累計已支付 / 總訂單`,AO=()=>`累计已支付 / 总订单`,jO=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?TO(e):n===`ja-JP`?EO(e):n===`ko-KR`?DO(e):n===`ru-RU`?OO(e):n===`zh-TW`?kO(e):AO(e)}),MO=()=>`Order Count`,NO=()=>`Order Count`,PO=()=>`Order Count`,FO=()=>`Order Count`,IO=()=>`訂單總數`,LO=()=>`订单总数`,RO=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?MO(e):n===`ja-JP`?NO(e):n===`ko-KR`?PO(e):n===`ru-RU`?FO(e):n===`zh-TW`?IO(e):LO(e)}),zO=()=>`Total orders in the selected period`,BO=()=>`Total orders in the selected period`,VO=()=>`Total orders in the selected period`,HO=()=>`Total orders in the selected period`,UO=()=>`當前篩選週期內訂單總數`,WO=()=>`当前筛选周期内订单总数`,GO=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zO(e):n===`ja-JP`?BO(e):n===`ko-KR`?VO(e):n===`ru-RU`?HO(e):n===`zh-TW`?UO(e):WO(e)}),KO=()=>`Successful Orders`,qO=()=>`Successful Orders`,JO=()=>`Successful Orders`,YO=()=>`Successful Orders`,XO=()=>`成功訂單`,ZO=()=>`成功订单`,QO=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?KO(e):n===`ja-JP`?qO(e):n===`ko-KR`?JO(e):n===`ru-RU`?YO(e):n===`zh-TW`?XO(e):ZO(e)}),$O=()=>`Paid orders in the selected period`,ek=()=>`Paid orders in the selected period`,tk=()=>`Paid orders in the selected period`,nk=()=>`Paid orders in the selected period`,rk=()=>`當前篩選週期內已支付訂單`,ik=()=>`当前筛选周期内已支付订单`,ak=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$O(e):n===`ja-JP`?ek(e):n===`ko-KR`?tk(e):n===`ru-RU`?nk(e):n===`zh-TW`?rk(e):ik(e)}),ok=()=>`Average Payment Time`,sk=()=>`Average Payment Time`,ck=()=>`Average Payment Time`,lk=()=>`Average Payment Time`,uk=()=>`平均支付耗時`,dk=()=>`平均支付耗时`,fk=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ok(e):n===`ja-JP`?sk(e):n===`ko-KR`?ck(e):n===`ru-RU`?lk(e):n===`zh-TW`?uk(e):dk(e)}),pk=()=>`Average time from order creation to payment success`,mk=()=>`Average time from order creation to payment success`,hk=()=>`Average time from order creation to payment success`,gk=()=>`Average time from order creation to payment success`,_k=()=>`訂單建立到支付成功平均耗時`,vk=()=>`订单创建到支付成功平均耗时`,yk=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pk(e):n===`ja-JP`?mk(e):n===`ko-KR`?hk(e):n===`ru-RU`?gk(e):n===`zh-TW`?_k(e):vk(e)}),bk=()=>`Expired Unpaid`,xk=()=>`Expired Unpaid`,Sk=()=>`Expired Unpaid`,Ck=()=>`Expired Unpaid`,wk=()=>`超時未支付`,Tk=()=>`超时未支付`,Ek=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bk(e):n===`ja-JP`?xk(e):n===`ko-KR`?Sk(e):n===`ru-RU`?Ck(e):n===`zh-TW`?wk(e):Tk(e)}),Dk=()=>`Expired and unpaid orders`,Ok=()=>`Expired and unpaid orders`,kk=()=>`Expired and unpaid orders`,Ak=()=>`Expired and unpaid orders`,jk=()=>`已過期且未支付訂單`,Mk=()=>`已过期且未支付订单`,Nk=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Dk(e):n===`ja-JP`?Ok(e):n===`ko-KR`?kk(e):n===`ru-RU`?Ak(e):n===`zh-TW`?jk(e):Mk(e)}),Pk=()=>`Last 7 Days Volume`,Fk=()=>`Last 7 Days Volume`,Ik=()=>`Last 7 Days Volume`,Lk=()=>`Last 7 Days Volume`,Rk=()=>`最近7日流水`,zk=()=>`最近7日流水`,Bk=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Pk(e):n===`ja-JP`?Fk(e):n===`ko-KR`?Ik(e):n===`ru-RU`?Lk(e):n===`zh-TW`?Rk(e):zk(e)}),Vk=()=>`Cumulative payments in the last 7 days`,Hk=()=>`Cumulative payments in the last 7 days`,Uk=()=>`Cumulative payments in the last 7 days`,Wk=()=>`Cumulative payments in the last 7 days`,Gk=()=>`近 7 天累計收款`,Kk=()=>`近 7 天累计收款`,qk=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Vk(e):n===`ja-JP`?Hk(e):n===`ko-KR`?Uk(e):n===`ru-RU`?Wk(e):n===`zh-TW`?Gk(e):Kk(e)}),Jk=()=>`Active Address Count`,Yk=()=>`Active Address Count`,Xk=()=>`Active Address Count`,Zk=()=>`Active Address Count`,Qk=()=>`活躍地址數量`,$k=()=>`活跃地址数量`,eA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Jk(e):n===`ja-JP`?Yk(e):n===`ko-KR`?Xk(e):n===`ru-RU`?Zk(e):n===`zh-TW`?Qk(e):$k(e)}),tA=()=>`Addresses with transactions in the last 24 hours`,nA=()=>`Addresses with transactions in the last 24 hours`,rA=()=>`Addresses with transactions in the last 24 hours`,iA=()=>`Addresses with transactions in the last 24 hours`,aA=()=>`近 24 小時有流水地址`,oA=()=>`近 24 小时有流水地址`,sA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tA(e):n===`ja-JP`?nA(e):n===`ko-KR`?rA(e):n===`ru-RU`?iA(e):n===`zh-TW`?aA(e):oA(e)}),cA=()=>`Online Chain Count`,lA=()=>`Online Chain Count`,uA=()=>`Online Chain Count`,dA=()=>`Online Chain Count`,fA=()=>`線上鏈數量`,pA=()=>`在线链数量`,mA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cA(e):n===`ja-JP`?lA(e):n===`ko-KR`?uA(e):n===`ru-RU`?dA(e):n===`zh-TW`?fA(e):pA(e)}),hA=()=>`Currently available payment networks`,gA=()=>`Currently available payment networks`,_A=()=>`Currently available payment networks`,vA=()=>`Currently available payment networks`,yA=()=>`當前可用收款網路`,bA=()=>`当前可用收款网络`,xA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hA(e):n===`ja-JP`?gA(e):n===`ko-KR`?_A(e):n===`ru-RU`?vA(e):n===`zh-TW`?yA(e):bA(e)}),SA=()=>`Order Success Rate`,CA=()=>`Order Success Rate`,wA=()=>`Order Success Rate`,TA=()=>`Order Success Rate`,EA=()=>`訂單成功率`,DA=()=>`订单成功率`,OA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?SA(e):n===`ja-JP`?CA(e):n===`ko-KR`?wA(e):n===`ru-RU`?TA(e):n===`zh-TW`?EA(e):DA(e)}),kA=()=>`Conversion rate in the selected period`,AA=()=>`Conversion rate in the selected period`,jA=()=>`Conversion rate in the selected period`,MA=()=>`Conversion rate in the selected period`,NA=()=>`當前篩選週期內成交率`,PA=()=>`当前筛选周期内成交率`,FA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kA(e):n===`ja-JP`?AA(e):n===`ko-KR`?jA(e):n===`ru-RU`?MA(e):n===`zh-TW`?NA(e):PA(e)}),IA=()=>`RPC Live Monitor`,LA=()=>`RPC Live Monitor`,RA=()=>`RPC Live Monitor`,zA=()=>`RPC Live Monitor`,BA=()=>`RPC 即時監控`,VA=()=>`RPC 实时监控`,HA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?IA(e):n===`ja-JP`?LA(e):n===`ko-KR`?RA(e):n===`ru-RU`?zA(e):n===`zh-TW`?BA(e):VA(e)}),UA=()=>`Real-time chain sync, RPC success rate, and runtime status.`,WA=()=>`Real-time chain sync, RPC success rate, and runtime status.`,GA=()=>`Real-time chain sync, RPC success rate, and runtime status.`,KA=()=>`Real-time chain sync, RPC success rate, and runtime status.`,qA=()=>`鏈上同步、RPC 成功率與執行狀態即時更新`,JA=()=>`链上同步、RPC 成功率与运行状态实时更新`,YA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?UA(e):n===`ja-JP`?WA(e):n===`ko-KR`?GA(e):n===`ru-RU`?KA(e):n===`zh-TW`?qA(e):JA(e)}),XA=()=>`Live`,ZA=()=>`Live`,QA=()=>`Live`,$A=()=>`Live`,ej=()=>`即時連線`,tj=()=>`实时连接`,nj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?XA(e):n===`ja-JP`?ZA(e):n===`ko-KR`?QA(e):n===`ru-RU`?$A(e):n===`zh-TW`?ej(e):tj(e)}),rj=()=>`Connecting`,ij=()=>`Connecting`,aj=()=>`Connecting`,oj=()=>`Connecting`,sj=()=>`連線中`,cj=()=>`连接中`,lj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rj(e):n===`ja-JP`?ij(e):n===`ko-KR`?aj(e):n===`ru-RU`?oj(e):n===`zh-TW`?sj(e):cj(e)}),uj=()=>`Reconnecting`,dj=()=>`Reconnecting`,fj=()=>`Reconnecting`,pj=()=>`Reconnecting`,mj=()=>`重新連線中`,hj=()=>`重连中`,gj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?uj(e):n===`ja-JP`?dj(e):n===`ko-KR`?fj(e):n===`ru-RU`?pj(e):n===`zh-TW`?mj(e):hj(e)}),_j=()=>`RPC stats unavailable`,vj=()=>`RPC stats unavailable`,yj=()=>`RPC stats unavailable`,bj=()=>`RPC stats unavailable`,xj=()=>`RPC 統計暫不可用`,Sj=()=>`RPC 统计暂不可用`,Cj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_j(e):n===`ja-JP`?vj(e):n===`ko-KR`?yj(e):n===`ru-RU`?bj(e):n===`zh-TW`?xj(e):Sj(e)}),wj=()=>`RPC Success Rate`,Tj=()=>`RPC Success Rate`,Ej=()=>`RPC Success Rate`,Dj=()=>`RPC Success Rate`,Oj=()=>`RPC 成功率`,kj=()=>`RPC 成功率`,Aj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wj(e):n===`ja-JP`?Tj(e):n===`ko-KR`?Ej(e):n===`ru-RU`?Dj(e):n===`zh-TW`?Oj(e):kj(e)}),jj=()=>`Active Links`,Mj=()=>`Active Links`,Nj=()=>`Active Links`,Pj=()=>`Active Links`,Fj=()=>`活躍鏈路`,Ij=()=>`活跃链路`,Lj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jj(e):n===`ja-JP`?Mj(e):n===`ko-KR`?Nj(e):n===`ru-RU`?Pj(e):n===`zh-TW`?Fj(e):Ij(e)}),Rj=()=>`Latest Block`,zj=()=>`Latest Block`,Bj=()=>`Latest Block`,Vj=()=>`Latest Block`,Hj=()=>`最新區塊`,Uj=()=>`最新区块`,Wj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Rj(e):n===`ja-JP`?zj(e):n===`ko-KR`?Bj(e):n===`ru-RU`?Vj(e):n===`zh-TW`?Hj(e):Uj(e)}),Gj=()=>`Needs Attention`,Kj=()=>`Needs Attention`,qj=()=>`Needs Attention`,Jj=()=>`Needs Attention`,Yj=()=>`需關注鏈路`,Xj=()=>`需关注链路`,Zj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Gj(e):n===`ja-JP`?Kj(e):n===`ko-KR`?qj(e):n===`ru-RU`?Jj(e):n===`zh-TW`?Yj(e):Xj(e)}),Qj=()=>`Chain Runtime`,$j=()=>`Chain Runtime`,eM=()=>`Chain Runtime`,tM=()=>`Chain Runtime`,nM=()=>`鏈執行狀態`,rM=()=>`链运行状态`,iM=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Qj(e):n===`ja-JP`?$j(e):n===`ko-KR`?eM(e):n===`ru-RU`?tM(e):n===`zh-TW`?nM(e):rM(e)}),aM=e=>`Updated ${e?.time}`,oM=e=>`Updated ${e?.time}`,sM=e=>`Updated ${e?.time}`,cM=e=>`Updated ${e?.time}`,lM=e=>`更新於 ${e?.time}`,uM=e=>`更新于 ${e?.time}`,dM=((e,t={})=>{let n=t.locale??m();return n===`en-US`?aM(e):n===`ja-JP`?oM(e):n===`ko-KR`?sM(e):n===`ru-RU`?cM(e):n===`zh-TW`?lM(e):uM(e)}),fM=()=>`No RPC runtime data`,pM=()=>`No RPC runtime data`,mM=()=>`No RPC runtime data`,hM=()=>`No RPC runtime data`,gM=()=>`暫無 RPC 執行資料`,_M=()=>`暂无 RPC 运行数据`,vM=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fM(e):n===`ja-JP`?pM(e):n===`ko-KR`?mM(e):n===`ru-RU`?hM(e):n===`zh-TW`?gM(e):_M(e)}),yM=()=>`OK`,bM=()=>`OK`,xM=()=>`OK`,SM=()=>`OK`,CM=()=>`正常`,wM=()=>`正常`,TM=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yM(e):n===`ja-JP`?bM(e):n===`ko-KR`?xM(e):n===`ru-RU`?SM(e):n===`zh-TW`?CM(e):wM(e)}),EM=()=>`Warning`,DM=()=>`Warning`,OM=()=>`Warning`,kM=()=>`Warning`,AM=()=>`波動`,jM=()=>`波动`,MM=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?EM(e):n===`ja-JP`?DM(e):n===`ko-KR`?OM(e):n===`ru-RU`?kM(e):n===`zh-TW`?AM(e):jM(e)}),NM=()=>`Down`,PM=()=>`Down`,FM=()=>`Down`,IM=()=>`Down`,LM=()=>`異常`,RM=()=>`异常`,zM=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?NM(e):n===`ja-JP`?PM(e):n===`ko-KR`?FM(e):n===`ru-RU`?IM(e):n===`zh-TW`?LM(e):RM(e)}),BM=()=>`Unknown`,VM=()=>`Unknown`,HM=()=>`Unknown`,UM=()=>`Unknown`,WM=()=>`未知`,GM=()=>`未知`,KM=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?BM(e):n===`ja-JP`?VM(e):n===`ko-KR`?HM(e):n===`ru-RU`?UM(e):n===`zh-TW`?WM(e):GM(e)}),qM=()=>`Disabled`,JM=()=>`Disabled`,YM=()=>`Disabled`,XM=()=>`Disabled`,ZM=()=>`停用`,QM=()=>`停用`,$M=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qM(e):n===`ja-JP`?JM(e):n===`ko-KR`?YM(e):n===`ru-RU`?XM(e):n===`zh-TW`?ZM(e):QM(e)}),eN=()=>`Success Rate`,tN=()=>`Success Rate`,nN=()=>`Success Rate`,rN=()=>`Success Rate`,iN=()=>`成功率`,aN=()=>`成功率`,oN=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?eN(e):n===`ja-JP`?tN(e):n===`ko-KR`?nN(e):n===`ru-RU`?rN(e):n===`zh-TW`?iN(e):aN(e)}),sN=()=>`Block Height`,cN=()=>`Block Height`,lN=()=>`Block Height`,uN=()=>`Block Height`,dN=()=>`區塊高度`,fN=()=>`区块高度`,pN=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sN(e):n===`ja-JP`?cN(e):n===`ko-KR`?lN(e):n===`ru-RU`?uN(e):n===`zh-TW`?dN(e):fN(e)}),mN=e=>`Synced ${e?.time}`,hN=e=>`Synced ${e?.time}`,gN=e=>`Synced ${e?.time}`,_N=e=>`Synced ${e?.time}`,vN=e=>`同步於 ${e?.time}`,yN=e=>`同步于 ${e?.time}`,bN=((e,t={})=>{let n=t.locale??m();return n===`en-US`?mN(e):n===`ja-JP`?hN(e):n===`ko-KR`?gN(e):n===`ru-RU`?_N(e):n===`zh-TW`?vN(e):yN(e)}),xN=()=>`Total Amount`,SN=()=>`Total Amount`,CN=()=>`Total Amount`,wN=()=>`Total Amount`,TN=()=>`總金額`,EN=()=>`总金额`,DN=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xN(e):n===`ja-JP`?SN(e):n===`ko-KR`?CN(e):n===`ru-RU`?wN(e):n===`zh-TW`?TN(e):EN(e)}),ON=()=>`Actual Amount`,kN=()=>`Actual Amount`,AN=()=>`Actual Amount`,jN=()=>`Actual Amount`,MN=()=>`實收金額`,NN=()=>`实收金额`,PN=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ON(e):n===`ja-JP`?kN(e):n===`ko-KR`?AN(e):n===`ru-RU`?jN(e):n===`zh-TW`?MN(e):NN(e)}),FN=()=>`Order Count`,IN=()=>`Order Count`,LN=()=>`Order Count`,RN=()=>`Order Count`,zN=()=>`訂單數`,BN=()=>`订单数`,VN=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?FN(e):n===`ja-JP`?IN(e):n===`ko-KR`?LN(e):n===`ru-RU`?RN(e):n===`zh-TW`?zN(e):BN(e)}),HN=()=>`Successful Orders`,UN=()=>`Successful Orders`,WN=()=>`Successful Orders`,GN=()=>`Successful Orders`,KN=()=>`成功訂單`,qN=()=>`成功订单`,JN=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?HN(e):n===`ja-JP`?UN(e):n===`ko-KR`?WN(e):n===`ru-RU`?GN(e):n===`zh-TW`?KN(e):qN(e)}),YN=()=>`Today`,XN=()=>`Today`,ZN=()=>`Today`,QN=()=>`Today`,$N=()=>`今日`,eP=()=>`今日`,tP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?YN(e):n===`ja-JP`?XN(e):n===`ko-KR`?ZN(e):n===`ru-RU`?QN(e):n===`zh-TW`?$N(e):eP(e)}),nP=()=>`7 days`,rP=()=>`7 days`,iP=()=>`7 days`,aP=()=>`7 days`,oP=()=>`7天`,sP=()=>`7天`,cP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nP(e):n===`ja-JP`?rP(e):n===`ko-KR`?iP(e):n===`ru-RU`?aP(e):n===`zh-TW`?oP(e):sP(e)}),lP=()=>`30 days`,uP=()=>`30 days`,dP=()=>`30 days`,fP=()=>`30 days`,pP=()=>`30天`,mP=()=>`30天`,hP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lP(e):n===`ja-JP`?uP(e):n===`ko-KR`?dP(e):n===`ru-RU`?fP(e):n===`zh-TW`?pP(e):mP(e)}),gP=()=>`Custom`,_P=()=>`Custom`,vP=()=>`Custom`,yP=()=>`Custom`,bP=()=>`自定義`,xP=()=>`自定义`,SP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gP(e):n===`ja-JP`?_P(e):n===`ko-KR`?vP(e):n===`ru-RU`?yP(e):n===`zh-TW`?bP(e):xP(e)}),CP=()=>`Close Order`,wP=()=>`Close Order`,TP=()=>`Close Order`,EP=()=>`Close Order`,DP=()=>`關閉訂單`,OP=()=>`关闭订单`,kP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?CP(e):n===`ja-JP`?wP(e):n===`ko-KR`?TP(e):n===`ru-RU`?EP(e):n===`zh-TW`?DP(e):OP(e)}),AP=()=>`Resend Callback`,jP=()=>`Resend Callback`,MP=()=>`Resend Callback`,NP=()=>`Resend Callback`,PP=()=>`回呼重發`,FP=()=>`回调重发`,IP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?AP(e):n===`ja-JP`?jP(e):n===`ko-KR`?MP(e):n===`ru-RU`?NP(e):n===`zh-TW`?PP(e):FP(e)}),LP=()=>`Please enter the block transaction ID`,RP=()=>`Please enter the block transaction ID`,zP=()=>`Please enter the block transaction ID`,BP=()=>`Please enter the block transaction ID`,VP=()=>`請輸入區塊交易 ID`,HP=()=>`请输入区块交易 ID`,UP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?LP(e):n===`ja-JP`?RP(e):n===`ko-KR`?zP(e):n===`ru-RU`?BP(e):n===`zh-TW`?VP(e):HP(e)}),WP=()=>`Order marked as paid`,GP=()=>`Order marked as paid`,KP=()=>`Order marked as paid`,qP=()=>`Order marked as paid`,JP=()=>`訂單已標記為已支付`,YP=()=>`订单已标记为已支付`,XP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?WP(e):n===`ja-JP`?GP(e):n===`ko-KR`?KP(e):n===`ru-RU`?qP(e):n===`zh-TW`?JP(e):YP(e)}),ZP=()=>`Order export failed`,QP=()=>`Order export failed`,$P=()=>`Order export failed`,eF=()=>`Order export failed`,tF=()=>`訂單匯出失敗`,nF=()=>`订单导出失败`,rF=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ZP(e):n===`ja-JP`?QP(e):n===`ko-KR`?$P(e):n===`ru-RU`?eF(e):n===`zh-TW`?tF(e):nF(e)}),iF=()=>`Order export succeeded`,aF=()=>`Order export succeeded`,oF=()=>`Order export succeeded`,sF=()=>`Order export succeeded`,cF=()=>`訂單匯出成功`,lF=()=>`订单导出成功`,uF=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?iF(e):n===`ja-JP`?aF(e):n===`ko-KR`?oF(e):n===`ru-RU`?sF(e):n===`zh-TW`?cF(e):lF(e)}),dF=()=>`Exporting...`,fF=()=>`Exporting...`,pF=()=>`Exporting...`,mF=()=>`Exporting...`,hF=()=>`匯出中...`,gF=()=>`导出中...`,_F=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dF(e):n===`ja-JP`?fF(e):n===`ko-KR`?pF(e):n===`ru-RU`?mF(e):n===`zh-TW`?hF(e):gF(e)}),vF=()=>`Export Orders`,yF=()=>`Export Orders`,bF=()=>`Export Orders`,xF=()=>`Export Orders`,SF=()=>`匯出訂單`,CF=()=>`导出订单`,wF=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vF(e):n===`ja-JP`?yF(e):n===`ko-KR`?bF(e):n===`ru-RU`?xF(e):n===`zh-TW`?SF(e):CF(e)}),TF=()=>`Search orders, filter by status, and perform manual payment / close / resend callback actions.`,EF=()=>`Search orders, filter by status, and perform manual payment / close / resend callback actions.`,DF=()=>`Search orders, filter by status, and perform manual payment / close / resend callback actions.`,OF=()=>`Search orders, filter by status, and perform manual payment / close / resend callback actions.`,kF=()=>`搜尋訂單、篩選狀態與執行補單/關閉/回呼操作。`,AF=()=>`搜索订单、筛选状态并执行补单 / 关闭 / 回调操作。`,jF=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?TF(e):n===`ja-JP`?EF(e):n===`ko-KR`?DF(e):n===`ru-RU`?OF(e):n===`zh-TW`?kF(e):AF(e)}),MF=()=>`Order Management`,NF=()=>`Order Management`,PF=()=>`Order Management`,FF=()=>`Order Management`,IF=()=>`訂單管理`,LF=()=>`订单管理`,RF=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?MF(e):n===`ja-JP`?NF(e):n===`ko-KR`?PF(e):n===`ru-RU`?FF(e):n===`zh-TW`?IF(e):LF(e)}),zF=()=>`Details`,BF=()=>`Details`,VF=()=>`Details`,HF=()=>`Details`,UF=()=>`詳情`,WF=()=>`详情`,GF=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zF(e):n===`ja-JP`?BF(e):n===`ko-KR`?VF(e):n===`ru-RU`?HF(e):n===`zh-TW`?UF(e):WF(e)}),KF=()=>`Manual Mark Paid`,qF=()=>`Manual Mark Paid`,JF=()=>`Manual Mark Paid`,YF=()=>`Manual Mark Paid`,XF=()=>`補單`,ZF=()=>`补单`,QF=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?KF(e):n===`ja-JP`?qF(e):n===`ko-KR`?JF(e):n===`ru-RU`?YF(e):n===`zh-TW`?XF(e):ZF(e)}),$F=()=>`Confirm`,eI=()=>`Confirm`,tI=()=>`Confirm`,nI=()=>`Confirm`,rI=()=>`確認`,iI=()=>`确认`,aI=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$F(e):n===`ja-JP`?eI(e):n===`ko-KR`?tI(e):n===`ru-RU`?nI(e):n===`zh-TW`?rI(e):iI(e)}),oI=e=>`You are about to perform the “${e?.action}” action on order ${e?.id}.`,sI=e=>`You are about to perform the “${e?.action}” action on order ${e?.id}.`,cI=e=>`You are about to perform the “${e?.action}” action on order ${e?.id}.`,lI=e=>`You are about to perform the “${e?.action}” action on order ${e?.id}.`,uI=e=>`即將對訂單 ${e?.id} 執行“${e?.action}”操作。`,dI=e=>`即将对订单 ${e?.id} 执行“${e?.action}”操作。`,fI=((e,t={})=>{let n=t.locale??m();return n===`en-US`?oI(e):n===`ja-JP`?sI(e):n===`ko-KR`?cI(e):n===`ru-RU`?lI(e):n===`zh-TW`?uI(e):dI(e)}),pI=e=>`Confirm ${e?.action}`,mI=e=>`Confirm ${e?.action}`,hI=e=>`Confirm ${e?.action}`,gI=e=>`Confirm ${e?.action}`,_I=e=>`${e?.action}確認`,vI=e=>`${e?.action}确认`,yI=((e,t={})=>{let n=t.locale??m();return n===`en-US`?pI(e):n===`ja-JP`?mI(e):n===`ko-KR`?hI(e):n===`ru-RU`?gI(e):n===`zh-TW`?_I(e):vI(e)}),bI=()=>`Mark as Paid`,xI=()=>`Mark as Paid`,SI=()=>`Mark as Paid`,CI=()=>`Mark as Paid`,wI=()=>`標記已支付`,TI=()=>`标记已支付`,EI=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bI(e):n===`ja-JP`?xI(e):n===`ko-KR`?SI(e):n===`ru-RU`?CI(e):n===`zh-TW`?wI(e):TI(e)}),DI=e=>`Fill in the on-chain transaction ID for order ${e?.id}.`,OI=e=>`Fill in the on-chain transaction ID for order ${e?.id}.`,kI=e=>`Fill in the on-chain transaction ID for order ${e?.id}.`,AI=e=>`Fill in the on-chain transaction ID for order ${e?.id}.`,jI=e=>`為訂單 ${e?.id} 填寫鏈上交易 ID。`,MI=e=>`为订单 ${e?.id} 填写链上交易 ID。`,NI=((e,t={})=>{let n=t.locale??m();return n===`en-US`?DI(e):n===`ja-JP`?OI(e):n===`ko-KR`?kI(e):n===`ru-RU`?AI(e):n===`zh-TW`?jI(e):MI(e)}),PI=()=>`Block Transaction ID`,FI=()=>`Block Transaction ID`,II=()=>`Block Transaction ID`,LI=()=>`Block Transaction ID`,RI=()=>`區塊交易 ID`,zI=()=>`区块交易 ID`,BI=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?PI(e):n===`ja-JP`?FI(e):n===`ko-KR`?II(e):n===`ru-RU`?LI(e):n===`zh-TW`?RI(e):zI(e)}),VI=()=>`Submitting...`,HI=()=>`Submitting...`,UI=()=>`Submitting...`,WI=()=>`Submitting...`,GI=()=>`提交中...`,KI=()=>`提交中...`,qI=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?VI(e):n===`ja-JP`?HI(e):n===`ko-KR`?UI(e):n===`ru-RU`?WI(e):n===`zh-TW`?GI(e):KI(e)}),JI=()=>`Confirm Manual Mark Paid`,YI=()=>`Confirm Manual Mark Paid`,XI=()=>`Confirm Manual Mark Paid`,ZI=()=>`Confirm Manual Mark Paid`,QI=()=>`確認補單`,$I=()=>`确认补单`,eL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?JI(e):n===`ja-JP`?YI(e):n===`ko-KR`?XI(e):n===`ru-RU`?ZI(e):n===`zh-TW`?QI(e):$I(e)}),tL=()=>`Status`,nL=()=>`Status`,rL=()=>`Status`,iL=()=>`Status`,aL=()=>`狀態`,oL=()=>`状态`,sL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tL(e):n===`ja-JP`?nL(e):n===`ko-KR`?rL(e):n===`ru-RU`?iL(e):n===`zh-TW`?aL(e):oL(e)}),cL=()=>`Chain`,lL=()=>`Chain`,uL=()=>`Chain`,dL=()=>`Chain`,fL=()=>`鏈`,pL=()=>`链`,mL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cL(e):n===`ja-JP`?lL(e):n===`ko-KR`?uL(e):n===`ru-RU`?dL(e):n===`zh-TW`?fL(e):pL(e)}),hL=()=>`Search order ID / merchant order ID...`,gL=()=>`Search order ID / merchant order ID...`,_L=()=>`Search order ID / merchant order ID...`,vL=()=>`Search order ID / merchant order ID...`,yL=()=>`搜尋訂單號 / 商戶訂單號...`,bL=()=>`搜索订单号 / 商户订单号...`,xL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hL(e):n===`ja-JP`?gL(e):n===`ko-KR`?_L(e):n===`ru-RU`?vL(e):n===`zh-TW`?yL(e):bL(e)}),SL=()=>`No order data`,CL=()=>`No order data`,wL=()=>`No order data`,TL=()=>`No order data`,EL=()=>`暫無訂單資料`,DL=()=>`暂无订单数据`,OL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?SL(e):n===`ja-JP`?CL(e):n===`ko-KR`?wL(e):n===`ru-RU`?TL(e):n===`zh-TW`?EL(e):DL(e)}),kL=()=>`Status`,AL=()=>`Status`,jL=()=>`Status`,ML=()=>`Status`,NL=()=>`狀態`,PL=()=>`状态`,FL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kL(e):n===`ja-JP`?AL(e):n===`ko-KR`?jL(e):n===`ru-RU`?ML(e):n===`zh-TW`?NL(e):PL(e)}),IL=()=>`Merchant Order ID`,LL=()=>`Merchant Order ID`,RL=()=>`Merchant Order ID`,zL=()=>`Merchant Order ID`,BL=()=>`商戶訂單號`,VL=()=>`商户订单号`,HL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?IL(e):n===`ja-JP`?LL(e):n===`ko-KR`?RL(e):n===`ru-RU`?zL(e):n===`zh-TW`?BL(e):VL(e)}),UL=()=>`Order Name`,WL=()=>`Order Name`,GL=()=>`Order Name`,KL=()=>`Order Name`,qL=()=>`訂單名稱`,JL=()=>`订单名称`,YL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?UL(e):n===`ja-JP`?WL(e):n===`ko-KR`?GL(e):n===`ru-RU`?KL(e):n===`zh-TW`?qL(e):JL(e)}),XL=()=>`Fiat Amount`,ZL=()=>`Fiat Amount`,QL=()=>`Fiat Amount`,$L=()=>`Fiat Amount`,eR=()=>`法幣金額`,tR=()=>`法币金额`,nR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?XL(e):n===`ja-JP`?ZL(e):n===`ko-KR`?QL(e):n===`ru-RU`?$L(e):n===`zh-TW`?eR(e):tR(e)}),rR=()=>`Token Amount`,iR=()=>`Token Amount`,aR=()=>`Token Amount`,oR=()=>`Token Amount`,sR=()=>`代幣金額`,cR=()=>`代币金额`,lR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rR(e):n===`ja-JP`?iR(e):n===`ko-KR`?aR(e):n===`ru-RU`?oR(e):n===`zh-TW`?sR(e):cR(e)}),uR=()=>`Chain`,dR=()=>`Chain`,fR=()=>`Chain`,pR=()=>`Chain`,mR=()=>`鏈`,hR=()=>`链`,gR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?uR(e):n===`ja-JP`?dR(e):n===`ko-KR`?fR(e):n===`ru-RU`?pR(e):n===`zh-TW`?mR(e):hR(e)}),_R=()=>`Address`,vR=()=>`Address`,yR=()=>`Address`,bR=()=>`Address`,xR=()=>`地址`,SR=()=>`地址`,CR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_R(e):n===`ja-JP`?vR(e):n===`ko-KR`?yR(e):n===`ru-RU`?bR(e):n===`zh-TW`?xR(e):SR(e)}),wR=()=>`Created At`,TR=()=>`Created At`,ER=()=>`Created At`,DR=()=>`Created At`,OR=()=>`建立時間`,kR=()=>`创建时间`,AR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wR(e):n===`ja-JP`?TR(e):n===`ko-KR`?ER(e):n===`ru-RU`?DR(e):n===`zh-TW`?OR(e):kR(e)}),jR=()=>`Updated At`,MR=()=>`Updated At`,NR=()=>`Updated At`,PR=()=>`Updated At`,FR=()=>`更新時間`,IR=()=>`更新时间`,LR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jR(e):n===`ja-JP`?MR(e):n===`ko-KR`?NR(e):n===`ru-RU`?PR(e):n===`zh-TW`?FR(e):IR(e)}),RR=()=>`On-chain Transaction ID`,zR=()=>`On-chain Transaction ID`,BR=()=>`On-chain Transaction ID`,VR=()=>`On-chain Transaction ID`,HR=()=>`鏈上交易 ID`,UR=()=>`链上交易 ID`,WR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?RR(e):n===`ja-JP`?zR(e):n===`ko-KR`?BR(e):n===`ru-RU`?VR(e):n===`zh-TW`?HR(e):UR(e)}),GR=()=>`Assigned Address`,KR=()=>`Assigned Address`,qR=()=>`Assigned Address`,JR=()=>`Assigned Address`,YR=()=>`已分配地址`,XR=()=>`已分配地址`,ZR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?GR(e):n===`ja-JP`?KR(e):n===`ko-KR`?qR(e):n===`ru-RU`?JR(e):n===`zh-TW`?YR(e):XR(e)}),QR=()=>`Callback Status`,$R=()=>`Callback Status`,ez=()=>`Callback Status`,tz=()=>`Callback Status`,nz=()=>`回呼狀態`,rz=()=>`回调状态`,iz=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?QR(e):n===`ja-JP`?$R(e):n===`ko-KR`?ez(e):n===`ru-RU`?tz(e):n===`zh-TW`?nz(e):rz(e)}),az=()=>`Callback Count`,oz=()=>`Callback Count`,sz=()=>`Callback Count`,cz=()=>`Callback Count`,lz=()=>`回呼次數`,uz=()=>`回调次数`,dz=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?az(e):n===`ja-JP`?oz(e):n===`ko-KR`?sz(e):n===`ru-RU`?cz(e):n===`zh-TW`?lz(e):uz(e)}),fz=()=>`Notify URL`,pz=()=>`Notify URL`,mz=()=>`Notify URL`,hz=()=>`Notify URL`,gz=()=>`通知地址`,_z=()=>`通知地址`,vz=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fz(e):n===`ja-JP`?pz(e):n===`ko-KR`?mz(e):n===`ru-RU`?hz(e):n===`zh-TW`?gz(e):_z(e)}),yz=()=>`Redirect URL`,bz=()=>`Redirect URL`,xz=()=>`Redirect URL`,Sz=()=>`Redirect URL`,Cz=()=>`跳轉地址`,wz=()=>`跳转地址`,Tz=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yz(e):n===`ja-JP`?bz(e):n===`ko-KR`?xz(e):n===`ru-RU`?Sz(e):n===`zh-TW`?Cz(e):wz(e)}),Ez=()=>`Actions`,Dz=()=>`Actions`,Oz=()=>`Actions`,kz=()=>`Actions`,Az=()=>`操作`,jz=()=>`操作`,Mz=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ez(e):n===`ja-JP`?Dz(e):n===`ko-KR`?Oz(e):n===`ru-RU`?kz(e):n===`zh-TW`?Az(e):jz(e)}),Nz=()=>`Yes`,Pz=()=>`Yes`,Fz=()=>`Yes`,Iz=()=>`Yes`,Lz=()=>`是`,Rz=()=>`是`,zz=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Nz(e):n===`ja-JP`?Pz(e):n===`ko-KR`?Fz(e):n===`ru-RU`?Iz(e):n===`zh-TW`?Lz(e):Rz(e)}),Bz=()=>`No`,Vz=()=>`No`,Hz=()=>`No`,Uz=()=>`No`,Wz=()=>`否`,Gz=()=>`否`,Kz=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Bz(e):n===`ja-JP`?Vz(e):n===`ko-KR`?Hz(e):n===`ru-RU`?Uz(e):n===`zh-TW`?Wz(e):Gz(e)}),qz=()=>`Parent order callback succeeded`,Jz=()=>`Parent order callback succeeded`,Yz=()=>`Parent order callback succeeded`,Xz=()=>`Parent order callback succeeded`,Zz=()=>`父訂單回呼成功`,Qz=()=>`父订单回调成功`,$z=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qz(e):n===`ja-JP`?Jz(e):n===`ko-KR`?Yz(e):n===`ru-RU`?Xz(e):n===`zh-TW`?Zz(e):Qz(e)}),eB=()=>`Child order delegates callback to parent`,tB=()=>`Child order delegates callback to parent`,nB=()=>`Child order delegates callback to parent`,rB=()=>`Child order delegates callback to parent`,iB=()=>`子訂單不參與回呼,交由父訂單回呼`,aB=()=>`子订单不参与回调,交由父订单回调`,oB=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?eB(e):n===`ja-JP`?tB(e):n===`ko-KR`?nB(e):n===`ru-RU`?rB(e):n===`zh-TW`?iB(e):aB(e)}),sB=()=>`Not Called Back / Failed`,cB=()=>`Not Called Back / Failed`,lB=()=>`Not Called Back / Failed`,uB=()=>`Not Called Back / Failed`,dB=()=>`未回呼/失敗`,fB=()=>`未回调 / 失败`,pB=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sB(e):n===`ja-JP`?cB(e):n===`ko-KR`?lB(e):n===`ru-RU`?uB(e):n===`zh-TW`?dB(e):fB(e)}),mB=()=>`View Details`,hB=()=>`View Details`,gB=()=>`View Details`,_B=()=>`View Details`,vB=()=>`檢視詳情`,yB=()=>`查看详情`,bB=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mB(e):n===`ja-JP`?hB(e):n===`ko-KR`?gB(e):n===`ru-RU`?_B(e):n===`zh-TW`?vB(e):yB(e)}),xB=()=>`Manual Mark Paid`,SB=()=>`Manual Mark Paid`,CB=()=>`Manual Mark Paid`,wB=()=>`Manual Mark Paid`,TB=()=>`手動補單`,EB=()=>`手动补单`,DB=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xB(e):n===`ja-JP`?SB(e):n===`ko-KR`?CB(e):n===`ru-RU`?wB(e):n===`zh-TW`?TB(e):EB(e)}),OB=()=>`Open menu`,kB=()=>`Open menu`,AB=()=>`Open menu`,jB=()=>`Open menu`,MB=()=>`開啟選單`,NB=()=>`开启选单`,PB=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?OB(e):n===`ja-JP`?kB(e):n===`ko-KR`?AB(e):n===`ru-RU`?jB(e):n===`zh-TW`?MB(e):NB(e)}),FB=()=>`Merchant Order ID`,IB=()=>`Merchant Order ID`,LB=()=>`Merchant Order ID`,RB=()=>`Merchant Order ID`,zB=()=>`商戶訂單號`,BB=()=>`商户订单号`,VB=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?FB(e):n===`ja-JP`?IB(e):n===`ko-KR`?LB(e):n===`ru-RU`?RB(e):n===`zh-TW`?zB(e):BB(e)}),HB=()=>`Order Name`,UB=()=>`Order Name`,WB=()=>`Order Name`,GB=()=>`Order Name`,KB=()=>`訂單名稱`,qB=()=>`订单名称`,JB=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?HB(e):n===`ja-JP`?UB(e):n===`ko-KR`?WB(e):n===`ru-RU`?GB(e):n===`zh-TW`?KB(e):qB(e)}),YB=()=>`Amount`,XB=()=>`Amount`,ZB=()=>`Amount`,QB=()=>`Amount`,$B=()=>`金額`,eV=()=>`金额`,tV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?YB(e):n===`ja-JP`?XB(e):n===`ko-KR`?ZB(e):n===`ru-RU`?QB(e):n===`zh-TW`?$B(e):eV(e)}),nV=()=>`Actual Paid`,rV=()=>`Actual Paid`,iV=()=>`Actual Paid`,aV=()=>`Actual Paid`,oV=()=>`實付`,sV=()=>`实付`,cV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nV(e):n===`ja-JP`?rV(e):n===`ko-KR`?iV(e):n===`ru-RU`?aV(e):n===`zh-TW`?oV(e):sV(e)}),lV=()=>`Chain`,uV=()=>`Chain`,dV=()=>`Chain`,fV=()=>`Chain`,pV=()=>`鏈`,mV=()=>`链`,hV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lV(e):n===`ja-JP`?uV(e):n===`ko-KR`?dV(e):n===`ru-RU`?fV(e):n===`zh-TW`?pV(e):mV(e)}),gV=()=>`Receive Address`,_V=()=>`Receive Address`,vV=()=>`Receive Address`,yV=()=>`Receive Address`,bV=()=>`收款地址`,xV=()=>`收款地址`,SV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gV(e):n===`ja-JP`?_V(e):n===`ko-KR`?vV(e):n===`ru-RU`?yV(e):n===`zh-TW`?bV(e):xV(e)}),CV=()=>`Callback URL`,wV=()=>`Callback URL`,TV=()=>`Callback URL`,EV=()=>`Callback URL`,DV=()=>`回呼地址`,OV=()=>`回调地址`,kV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?CV(e):n===`ja-JP`?wV(e):n===`ko-KR`?TV(e):n===`ru-RU`?EV(e):n===`zh-TW`?DV(e):OV(e)}),AV=()=>`Redirect URL`,jV=()=>`Redirect URL`,MV=()=>`Redirect URL`,NV=()=>`Redirect URL`,PV=()=>`跳轉地址`,FV=()=>`跳转地址`,IV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?AV(e):n===`ja-JP`?jV(e):n===`ko-KR`?MV(e):n===`ru-RU`?NV(e):n===`zh-TW`?PV(e):FV(e)}),LV=()=>`Block Transaction ID`,RV=()=>`Block Transaction ID`,zV=()=>`Block Transaction ID`,BV=()=>`Block Transaction ID`,VV=()=>`區塊交易 ID`,HV=()=>`区块交易 ID`,UV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?LV(e):n===`ja-JP`?RV(e):n===`ko-KR`?zV(e):n===`ru-RU`?BV(e):n===`zh-TW`?VV(e):HV(e)}),WV=()=>`Parent Order`,GV=()=>`Parent Order`,KV=()=>`Parent Order`,qV=()=>`Parent Order`,JV=()=>`父訂單`,YV=()=>`父订单`,XV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?WV(e):n===`ja-JP`?GV(e):n===`ko-KR`?KV(e):n===`ru-RU`?qV(e):n===`zh-TW`?JV(e):YV(e)}),ZV=()=>`Created At`,QV=()=>`Created At`,$V=()=>`Created At`,eH=()=>`Created At`,tH=()=>`建立時間`,nH=()=>`创建时间`,rH=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ZV(e):n===`ja-JP`?QV(e):n===`ko-KR`?$V(e):n===`ru-RU`?eH(e):n===`zh-TW`?tH(e):nH(e)}),iH=()=>`Updated At`,aH=()=>`Updated At`,oH=()=>`Updated At`,sH=()=>`Updated At`,cH=()=>`更新時間`,lH=()=>`更新时间`,uH=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?iH(e):n===`ja-JP`?aH(e):n===`ko-KR`?oH(e):n===`ru-RU`?sH(e):n===`zh-TW`?cH(e):lH(e)}),dH=()=>`Order Details`,fH=()=>`Order Details`,pH=()=>`Order Details`,mH=()=>`Order Details`,hH=()=>`訂單詳情`,gH=()=>`订单详情`,_H=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dH(e):n===`ja-JP`?fH(e):n===`ko-KR`?pH(e):n===`ru-RU`?mH(e):n===`zh-TW`?hH(e):gH(e)}),vH=()=>`View the full API response for the current order.`,yH=()=>`View the full API response for the current order.`,bH=()=>`View the full API response for the current order.`,xH=()=>`View the full API response for the current order.`,SH=()=>`檢視當前訂單的完整介面返回資訊。`,CH=()=>`查看当前订单的完整接口返回信息。`,wH=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vH(e):n===`ja-JP`?yH(e):n===`ko-KR`?bH(e):n===`ru-RU`?xH(e):n===`zh-TW`?SH(e):CH(e)}),TH=()=>`Loading...`,EH=()=>`Loading...`,DH=()=>`Loading...`,OH=()=>`Loading...`,kH=()=>`載入中...`,AH=()=>`加载中...`,jH=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?TH(e):n===`ja-JP`?EH(e):n===`ko-KR`?DH(e):n===`ru-RU`?OH(e):n===`zh-TW`?kH(e):AH(e)}),MH=()=>`Supported Payment Assets`,NH=()=>`Supported Payment Assets`,PH=()=>`Supported Payment Assets`,FH=()=>`Supported Payment Assets`,IH=()=>`收款資產`,LH=()=>`收款资产`,RH=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?MH(e):n===`ja-JP`?NH(e):n===`ko-KR`?PH(e):n===`ru-RU`?FH(e):n===`zh-TW`?IH(e):LH(e)}),zH=()=>`Browse the currently supported networks and tokens without leaving this page.`,BH=()=>`Browse the currently supported networks and tokens without leaving this page.`,VH=()=>`Browse the currently supported networks and tokens without leaving this page.`,HH=()=>`Browse the currently supported networks and tokens without leaving this page.`,UH=()=>`在當前頁面直接檢視支援的網路與代幣列表。`,WH=()=>`在当前页面直接查看支持的网络与代币列表。`,GH=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zH(e):n===`ja-JP`?BH(e):n===`ko-KR`?VH(e):n===`ru-RU`?HH(e):n===`zh-TW`?UH(e):WH(e)}),KH=()=>`Chain`,qH=()=>`Chain`,JH=()=>`Chain`,YH=()=>`Chain`,XH=()=>`鏈`,ZH=()=>`链`,QH=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?KH(e):n===`ja-JP`?qH(e):n===`ko-KR`?JH(e):n===`ru-RU`?YH(e):n===`zh-TW`?XH(e):ZH(e)}),$H=()=>`Search chains or tokens...`,eU=()=>`Search chains or tokens...`,tU=()=>`Search chains or tokens...`,nU=()=>`Search chains or tokens...`,rU=()=>`搜尋鏈或代幣...`,iU=()=>`搜索链或代币...`,aU=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$H(e):n===`ja-JP`?eU(e):n===`ko-KR`?tU(e):n===`ru-RU`?nU(e):n===`zh-TW`?rU(e):iU(e)}),oU=()=>`No payment asset data`,sU=()=>`No payment asset data`,cU=()=>`No payment asset data`,lU=()=>`No payment asset data`,uU=()=>`暫無收款資產資料`,dU=()=>`暂无收款资产数据`,fU=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?oU(e):n===`ja-JP`?sU(e):n===`ko-KR`?cU(e):n===`ru-RU`?lU(e):n===`zh-TW`?uU(e):dU(e)}),pU=()=>`Chain`,mU=()=>`Chain`,hU=()=>`Chain`,gU=()=>`Chain`,_U=()=>`鏈`,vU=()=>`链`,yU=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pU(e):n===`ja-JP`?mU(e):n===`ko-KR`?hU(e):n===`ru-RU`?gU(e):n===`zh-TW`?_U(e):vU(e)}),bU=()=>`Supported Tokens`,xU=()=>`Supported Tokens`,SU=()=>`Supported Tokens`,CU=()=>`Supported Tokens`,wU=()=>`支援代幣`,TU=()=>`支持代币`,EU=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bU(e):n===`ja-JP`?xU(e):n===`ko-KR`?SU(e):n===`ru-RU`?CU(e):n===`zh-TW`?wU(e):TU(e)}),DU=()=>`Manage supported payment assets and integration guides in one place.`,OU=()=>`Manage supported payment assets and integration guides in one place.`,kU=()=>`Manage supported payment assets and integration guides in one place.`,AU=()=>`Manage supported payment assets and integration guides in one place.`,jU=()=>`統一管理收款資產與各類支付接入配置。`,MU=()=>`统一管理收款资产与各类支付接入配置。`,NU=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?DU(e):n===`ja-JP`?OU(e):n===`ko-KR`?kU(e):n===`ru-RU`?AU(e):n===`zh-TW`?jU(e):MU(e)}),PU=()=>`Supported Integrations`,FU=()=>`Supported Integrations`,IU=()=>`Supported Integrations`,LU=()=>`Supported Integrations`,RU=()=>`支援的接入方式`,zU=()=>`支持的接入方式`,BU=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?PU(e):n===`ja-JP`?FU(e):n===`ko-KR`?IU(e):n===`ru-RU`?LU(e):n===`zh-TW`?RU(e):zU(e)}),VU=()=>`Entry endpoints, required configuration keys, and callback rules for each integration.`,HU=()=>`Entry endpoints, required configuration keys, and callback rules for each integration.`,UU=()=>`Entry endpoints, required configuration keys, and callback rules for each integration.`,WU=()=>`Entry endpoints, required configuration keys, and callback rules for each integration.`,GU=()=>`各接入方式的入口端點、關鍵配置項與回呼要求一覽。`,KU=()=>`各接入方式的入口端点、关键配置项与回调要求一览。`,qU=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?VU(e):n===`ja-JP`?HU(e):n===`ko-KR`?UU(e):n===`ru-RU`?WU(e):n===`zh-TW`?GU(e):KU(e)}),JU=()=>`Name`,YU=()=>`Name`,XU=()=>`Name`,ZU=()=>`Name`,QU=()=>`名稱`,$U=()=>`名称`,eW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?JU(e):n===`ja-JP`?YU(e):n===`ko-KR`?XU(e):n===`ru-RU`?ZU(e):n===`zh-TW`?QU(e):$U(e)}),tW=()=>`Entry`,nW=()=>`Entry`,rW=()=>`Entry`,iW=()=>`Entry`,aW=()=>`接入入口`,oW=()=>`接入入口`,sW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tW(e):n===`ja-JP`?nW(e):n===`ko-KR`?rW(e):n===`ru-RU`?iW(e):n===`zh-TW`?aW(e):oW(e)}),cW=()=>`Request Body`,lW=()=>`Request Body`,uW=()=>`Request Body`,dW=()=>`Request Body`,fW=()=>`請求體`,pW=()=>`请求体`,mW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cW(e):n===`ja-JP`?lW(e):n===`ko-KR`?uW(e):n===`ru-RU`?dW(e):n===`zh-TW`?fW(e):pW(e)}),hW=()=>`Callback`,gW=()=>`Callback`,_W=()=>`Callback`,vW=()=>`Callback`,yW=()=>`回呼要求`,bW=()=>`回调要求`,xW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hW(e):n===`ja-JP`?gW(e):n===`ko-KR`?_W(e):n===`ru-RU`?vW(e):n===`zh-TW`?yW(e):bW(e)}),SW=()=>`Verify signature and return plain text ok; payload includes trade_id · order_id · status · actual_amount · signature`,CW=()=>`Verify signature and return plain text ok; payload includes trade_id · order_id · status · actual_amount · signature`,wW=()=>`Verify signature and return plain text ok; payload includes trade_id · order_id · status · actual_amount · signature`,TW=()=>`Verify signature and return plain text ok; payload includes trade_id · order_id · status · actual_amount · signature`,EW=()=>`驗籤後返回純文字 ok;回呼含 trade_id · order_id · status · actual_amount · signature`,DW=()=>`验签后返回纯文本 ok;回调包含 trade_id · order_id · status · actual_amount · signature`,OW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?SW(e):n===`ja-JP`?CW(e):n===`ko-KR`?wW(e):n===`ru-RU`?TW(e):n===`zh-TW`?EW(e):DW(e)}),kW=()=>`Verify signature and return plain text ok; EPay-style fields (trade_no · out_trade_no · trade_status)`,AW=()=>`Verify signature and return plain text ok; EPay-style fields (trade_no · out_trade_no · trade_status)`,jW=()=>`Verify signature and return plain text ok; EPay-style fields (trade_no · out_trade_no · trade_status)`,MW=()=>`Verify signature and return plain text ok; EPay-style fields (trade_no · out_trade_no · trade_status)`,NW=()=>`驗籤後返回純文字 ok;回呼欄位相容 EPay 風格(trade_no · out_trade_no · trade_status)`,PW=()=>`验签后返回纯文本 ok;回调字段兼容 EPay 风格(trade_no · out_trade_no · trade_status)`,FW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kW(e):n===`ja-JP`?AW(e):n===`ko-KR`?jW(e):n===`ru-RU`?MW(e):n===`zh-TW`?NW(e):PW(e)}),IW=()=>`Callback URL must use HTTPS, must not be an IP address, and must have a valid TLS certificate.`,LW=()=>`Callback URL must use HTTPS, must not be an IP address, and must have a valid TLS certificate.`,RW=()=>`Callback URL must use HTTPS, must not be an IP address, and must have a valid TLS certificate.`,zW=()=>`Callback URL must use HTTPS, must not be an IP address, and must have a valid TLS certificate.`,BW=()=>`回呼地址必須使用 HTTPS,不可以是 IP 地址,TLS 憑證必須有效。`,VW=()=>`回调地址必须使用 HTTPS,不可以是 IP 地址,TLS 证书必须有效。`,HW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?IW(e):n===`ja-JP`?LW(e):n===`ko-KR`?RW(e):n===`ru-RU`?zW(e):n===`zh-TW`?BW(e):VW(e)}),UW=()=>`Wallet deleted successfully`,WW=()=>`Wallet deleted successfully`,GW=()=>`Wallet deleted successfully`,KW=()=>`Wallet deleted successfully`,qW=()=>`錢包刪除成功`,JW=()=>`钱包删除成功`,YW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?UW(e):n===`ja-JP`?WW(e):n===`ko-KR`?GW(e):n===`ru-RU`?KW(e):n===`zh-TW`?qW(e):JW(e)}),XW=()=>`Status updated`,ZW=()=>`Status updated`,QW=()=>`Status updated`,$W=()=>`Status updated`,eG=()=>`狀態已更新`,tG=()=>`状态已更新`,nG=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?XW(e):n===`ja-JP`?ZW(e):n===`ko-KR`?QW(e):n===`ru-RU`?$W(e):n===`zh-TW`?eG(e):tG(e)}),rG=()=>`Please configure chains and tokens in chain management first`,iG=()=>`Please configure chains and tokens in chain management first`,aG=()=>`Please configure chains and tokens in chain management first`,oG=()=>`Please configure chains and tokens in chain management first`,sG=()=>`請先在鏈管理中配置鏈與代幣`,cG=()=>`请先在链管理中配置链与代币`,lG=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rG(e):n===`ja-JP`?iG(e):n===`ko-KR`?aG(e):n===`ru-RU`?oG(e):n===`zh-TW`?sG(e):cG(e)}),uG=()=>`Please enter at least one wallet address`,dG=()=>`Please enter at least one wallet address`,fG=()=>`Please enter at least one wallet address`,pG=()=>`Please enter at least one wallet address`,mG=()=>`請輸入至少一個錢包地址`,hG=()=>`请输入至少一个钱包地址`,gG=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?uG(e):n===`ja-JP`?dG(e):n===`ko-KR`?fG(e):n===`ru-RU`?pG(e):n===`zh-TW`?mG(e):hG(e)}),_G=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}`,vG=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}`,yG=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}`,bG=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}`,xG=e=>`批次匯入完成,成功 ${e?.success}/${e?.total}`,SG=e=>`批量导入完成,成功 ${e?.success}/${e?.total}`,CG=((e,t={})=>{let n=t.locale??m();return n===`en-US`?_G(e):n===`ja-JP`?vG(e):n===`ko-KR`?yG(e):n===`ru-RU`?bG(e):n===`zh-TW`?xG(e):SG(e)}),wG=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}. Failed reason: ${e?.error}`,TG=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}. Failed reason: ${e?.error}`,EG=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}. Failed reason: ${e?.error}`,DG=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}. Failed reason: ${e?.error}`,OG=e=>`批次匯入完成,成功 ${e?.success}/${e?.total},失敗原因:${e?.error}`,kG=e=>`批量导入完成,成功 ${e?.success}/${e?.total},失败原因:${e?.error}`,AG=((e,t={})=>{let n=t.locale??m();return n===`en-US`?wG(e):n===`ja-JP`?TG(e):n===`ko-KR`?EG(e):n===`ru-RU`?DG(e):n===`zh-TW`?OG(e):kG(e)}),jG=()=>`Batch Import`,MG=()=>`Batch Import`,NG=()=>`Batch Import`,PG=()=>`Batch Import`,FG=()=>`批次匯入`,IG=()=>`批量导入`,LG=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jG(e):n===`ja-JP`?MG(e):n===`ko-KR`?NG(e):n===`ru-RU`?PG(e):n===`zh-TW`?FG(e):IG(e)}),RG=()=>`Add Wallet`,zG=()=>`Add Wallet`,BG=()=>`Add Wallet`,VG=()=>`Add Wallet`,HG=()=>`新增錢包`,UG=()=>`新增钱包`,WG=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?RG(e):n===`ja-JP`?zG(e):n===`ko-KR`?BG(e):n===`ru-RU`?VG(e):n===`zh-TW`?HG(e):UG(e)}),GG=()=>`Manage payment addresses, balance status, and remarks.`,KG=()=>`Manage payment addresses, balance status, and remarks.`,qG=()=>`Manage payment addresses, balance status, and remarks.`,JG=()=>`Manage payment addresses, balance status, and remarks.`,YG=()=>`管理收款地址、餘額狀態與備註。`,XG=()=>`管理收款地址、余额状态与备注。`,ZG=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?GG(e):n===`ja-JP`?KG(e):n===`ko-KR`?qG(e):n===`ru-RU`?JG(e):n===`zh-TW`?YG(e):XG(e)}),QG=()=>`Address Management`,$G=()=>`Address Management`,eK=()=>`Address Management`,tK=()=>`Address Management`,nK=()=>`地址管理`,rK=()=>`地址管理`,iK=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?QG(e):n===`ja-JP`?$G(e):n===`ko-KR`?eK(e):n===`ru-RU`?tK(e):n===`zh-TW`?nK(e):rK(e)}),aK=()=>`Delete`,oK=()=>`Delete`,sK=()=>`Delete`,cK=()=>`Delete`,lK=()=>`刪除`,uK=()=>`删除`,dK=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?aK(e):n===`ja-JP`?oK(e):n===`ko-KR`?sK(e):n===`ru-RU`?cK(e):n===`zh-TW`?lK(e):uK(e)}),fK=()=>`Confirm`,pK=()=>`Confirm`,mK=()=>`Confirm`,hK=()=>`Confirm`,gK=()=>`確認`,_K=()=>`确认`,vK=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fK(e):n===`ja-JP`?pK(e):n===`ko-KR`?mK(e):n===`ru-RU`?hK(e):n===`zh-TW`?gK(e):_K(e)}),yK=e=>`Perform “${e?.action}” on wallet ${e?.address}.`,bK=e=>`Perform “${e?.action}” on wallet ${e?.address}.`,xK=e=>`Perform “${e?.action}” on wallet ${e?.address}.`,SK=e=>`Perform “${e?.action}” on wallet ${e?.address}.`,CK=e=>`將對錢包 ${e?.address} 執行“${e?.action}”操作。`,wK=e=>`将对钱包 ${e?.address} 执行“${e?.action}”操作。`,TK=((e,t={})=>{let n=t.locale??m();return n===`en-US`?yK(e):n===`ja-JP`?bK(e):n===`ko-KR`?xK(e):n===`ru-RU`?SK(e):n===`zh-TW`?CK(e):wK(e)}),EK=()=>`Delete Wallet`,DK=()=>`Delete Wallet`,OK=()=>`Delete Wallet`,kK=()=>`Delete Wallet`,AK=()=>`刪除錢包`,jK=()=>`删除钱包`,MK=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?EK(e):n===`ja-JP`?DK(e):n===`ko-KR`?OK(e):n===`ru-RU`?kK(e):n===`zh-TW`?AK(e):jK(e)}),NK=()=>`Confirm Wallet Action`,PK=()=>`Confirm Wallet Action`,FK=()=>`Confirm Wallet Action`,IK=()=>`Confirm Wallet Action`,LK=()=>`錢包操作確認`,RK=()=>`钱包操作确认`,zK=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?NK(e):n===`ja-JP`?PK(e):n===`ko-KR`?FK(e):n===`ru-RU`?IK(e):n===`zh-TW`?LK(e):RK(e)}),BK=()=>`Batch Import Wallets`,VK=()=>`Batch Import Wallets`,HK=()=>`Batch Import Wallets`,UK=()=>`Batch Import Wallets`,WK=()=>`批次匯入錢包`,GK=()=>`批量导入钱包`,KK=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?BK(e):n===`ja-JP`?VK(e):n===`ko-KR`?HK(e):n===`ru-RU`?UK(e):n===`zh-TW`?WK(e):GK(e)}),qK=()=>`One wallet address per line, imported as watch-only wallets.`,JK=()=>`One wallet address per line, imported as watch-only wallets.`,YK=()=>`One wallet address per line, imported as watch-only wallets.`,XK=()=>`One wallet address per line, imported as watch-only wallets.`,ZK=()=>`每行一個錢包地址,匯入為觀察錢包。`,QK=()=>`每行一个钱包地址,导入为观察钱包。`,$K=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qK(e):n===`ja-JP`?JK(e):n===`ko-KR`?YK(e):n===`ru-RU`?XK(e):n===`zh-TW`?ZK(e):QK(e)}),eq=()=>`Network`,tq=()=>`Network`,nq=()=>`Network`,rq=()=>`Network`,iq=()=>`網路`,aq=()=>`网络`,oq=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?eq(e):n===`ja-JP`?tq(e):n===`ko-KR`?nq(e):n===`ru-RU`?rq(e):n===`zh-TW`?iq(e):aq(e)}),sq=()=>`Chain`,cq=()=>`Chain`,lq=()=>`Chain`,uq=()=>`Chain`,dq=()=>`鏈`,fq=()=>`链`,pq=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sq(e):n===`ja-JP`?cq(e):n===`ko-KR`?lq(e):n===`ru-RU`?uq(e):n===`zh-TW`?dq(e):fq(e)}),mq=()=>`Select chain`,hq=()=>`Select chain`,gq=()=>`Select chain`,_q=()=>`Select chain`,vq=()=>`選擇鏈`,yq=()=>`选择链`,bq=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mq(e):n===`ja-JP`?hq(e):n===`ko-KR`?gq(e):n===`ru-RU`?_q(e):n===`zh-TW`?vq(e):yq(e)}),xq=()=>`Unnamed chain`,Sq=()=>`Unnamed chain`,Cq=()=>`Unnamed chain`,wq=()=>`Unnamed chain`,Tq=()=>`未命名鏈`,Eq=()=>`未命名链`,Dq=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xq(e):n===`ja-JP`?Sq(e):n===`ko-KR`?Cq(e):n===`ru-RU`?wq(e):n===`zh-TW`?Tq(e):Eq(e)}),Oq=()=>`Wallet Address`,kq=()=>`Wallet Address`,Aq=()=>`Wallet Address`,jq=()=>`Wallet Address`,Mq=()=>`錢包地址`,Nq=()=>`钱包地址`,Pq=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Oq(e):n===`ja-JP`?kq(e):n===`ko-KR`?Aq(e):n===`ru-RU`?jq(e):n===`zh-TW`?Mq(e):Nq(e)}),Fq=()=>`Cancel`,Iq=()=>`Cancel`,Lq=()=>`Cancel`,Rq=()=>`Cancel`,zq=()=>`取消`,Bq=()=>`取消`,Vq=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Fq(e):n===`ja-JP`?Iq(e):n===`ko-KR`?Lq(e):n===`ru-RU`?Rq(e):n===`zh-TW`?zq(e):Bq(e)}),Hq=()=>`Importing...`,Uq=()=>`Importing...`,Wq=()=>`Importing...`,Gq=()=>`Importing...`,Kq=()=>`匯入中...`,qq=()=>`导入中...`,Jq=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hq(e):n===`ja-JP`?Uq(e):n===`ko-KR`?Wq(e):n===`ru-RU`?Gq(e):n===`zh-TW`?Kq(e):qq(e)}),Yq=()=>`Start Import`,Xq=()=>`Start Import`,Zq=()=>`Start Import`,Qq=()=>`Start Import`,$q=()=>`開始匯入`,eJ=()=>`开始导入`,tJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yq(e):n===`ja-JP`?Xq(e):n===`ko-KR`?Zq(e):n===`ru-RU`?Qq(e):n===`zh-TW`?$q(e):eJ(e)}),nJ=()=>`Search addresses or remarks...`,rJ=()=>`Search addresses or remarks...`,iJ=()=>`Search addresses or remarks...`,aJ=()=>`Search addresses or remarks...`,oJ=()=>`搜尋地址或備註...`,sJ=()=>`搜索地址或备注...`,cJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nJ(e):n===`ja-JP`?rJ(e):n===`ko-KR`?iJ(e):n===`ru-RU`?aJ(e):n===`zh-TW`?oJ(e):sJ(e)}),lJ=()=>`No address data`,uJ=()=>`No address data`,dJ=()=>`No address data`,fJ=()=>`No address data`,pJ=()=>`暫無地址資料`,mJ=()=>`暂无地址数据`,hJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lJ(e):n===`ja-JP`?uJ(e):n===`ko-KR`?dJ(e):n===`ru-RU`?fJ(e):n===`zh-TW`?pJ(e):mJ(e)}),gJ=()=>`Status`,_J=()=>`Status`,vJ=()=>`Status`,yJ=()=>`Status`,bJ=()=>`狀態`,xJ=()=>`状态`,SJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gJ(e):n===`ja-JP`?_J(e):n===`ko-KR`?vJ(e):n===`ru-RU`?yJ(e):n===`zh-TW`?bJ(e):xJ(e)}),CJ=()=>`Enabled`,wJ=()=>`Enabled`,TJ=()=>`Enabled`,EJ=()=>`Enabled`,DJ=()=>`啟用`,OJ=()=>`启用`,kJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?CJ(e):n===`ja-JP`?wJ(e):n===`ko-KR`?TJ(e):n===`ru-RU`?EJ(e):n===`zh-TW`?DJ(e):OJ(e)}),AJ=()=>`Address`,jJ=()=>`Address`,MJ=()=>`Address`,NJ=()=>`Address`,PJ=()=>`地址`,FJ=()=>`地址`,IJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?AJ(e):n===`ja-JP`?jJ(e):n===`ko-KR`?MJ(e):n===`ru-RU`?NJ(e):n===`zh-TW`?PJ(e):FJ(e)}),LJ=()=>`Order Count`,RJ=()=>`Order Count`,zJ=()=>`Order Count`,BJ=()=>`Order Count`,VJ=()=>`訂單數`,HJ=()=>`订单数`,UJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?LJ(e):n===`ja-JP`?RJ(e):n===`ko-KR`?zJ(e):n===`ru-RU`?BJ(e):n===`zh-TW`?VJ(e):HJ(e)}),WJ=()=>`Source`,GJ=()=>`Source`,KJ=()=>`Source`,qJ=()=>`Source`,JJ=()=>`來源`,YJ=()=>`来源`,XJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?WJ(e):n===`ja-JP`?GJ(e):n===`ko-KR`?KJ(e):n===`ru-RU`?qJ(e):n===`zh-TW`?JJ(e):YJ(e)}),ZJ=()=>`Remark`,QJ=()=>`Remark`,$J=()=>`Remark`,eY=()=>`Remark`,tY=()=>`備註`,nY=()=>`备注`,rY=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ZJ(e):n===`ja-JP`?QJ(e):n===`ko-KR`?$J(e):n===`ru-RU`?eY(e):n===`zh-TW`?tY(e):nY(e)}),iY=()=>`Created At`,aY=()=>`Created At`,oY=()=>`Created At`,sY=()=>`Created At`,cY=()=>`建立時間`,lY=()=>`创建时间`,uY=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?iY(e):n===`ja-JP`?aY(e):n===`ko-KR`?oY(e):n===`ru-RU`?sY(e):n===`zh-TW`?cY(e):lY(e)}),dY=()=>`Updated At`,fY=()=>`Updated At`,pY=()=>`Updated At`,mY=()=>`Updated At`,hY=()=>`更新時間`,gY=()=>`更新时间`,_Y=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dY(e):n===`ja-JP`?fY(e):n===`ko-KR`?pY(e):n===`ru-RU`?mY(e):n===`zh-TW`?hY(e):gY(e)}),vY=()=>`Actions`,yY=()=>`Actions`,bY=()=>`Actions`,xY=()=>`Actions`,SY=()=>`操作`,CY=()=>`操作`,wY=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vY(e):n===`ja-JP`?yY(e):n===`ko-KR`?bY(e):n===`ru-RU`?xY(e):n===`zh-TW`?SY(e):CY(e)}),TY=()=>`Edit Remark`,EY=()=>`Edit Remark`,DY=()=>`Edit Remark`,OY=()=>`Edit Remark`,kY=()=>`編輯備註`,AY=()=>`编辑备注`,jY=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?TY(e):n===`ja-JP`?EY(e):n===`ko-KR`?DY(e):n===`ru-RU`?OY(e):n===`zh-TW`?kY(e):AY(e)}),MY=()=>`Loading...`,NY=()=>`Loading...`,PY=()=>`Loading...`,FY=()=>`Loading...`,IY=()=>`載入中...`,LY=()=>`加载中...`,RY=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?MY(e):n===`ja-JP`?NY(e):n===`ko-KR`?PY(e):n===`ru-RU`?FY(e):n===`zh-TW`?IY(e):LY(e)}),zY=()=>`Please configure supported tokens in chain management first`,BY=()=>`Please configure supported tokens in chain management first`,VY=()=>`Please configure supported tokens in chain management first`,HY=()=>`Please configure supported tokens in chain management first`,UY=()=>`請先在鏈管理中配置支援代幣`,WY=()=>`请先在链管理中配置支持代币`,GY=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zY(e):n===`ja-JP`?BY(e):n===`ko-KR`?VY(e):n===`ru-RU`?HY(e):n===`zh-TW`?UY(e):WY(e)}),KY=()=>`Edit Wallet`,qY=()=>`Edit Wallet`,JY=()=>`Edit Wallet`,YY=()=>`Edit Wallet`,XY=()=>`編輯錢包`,ZY=()=>`编辑钱包`,QY=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?KY(e):n===`ja-JP`?qY(e):n===`ko-KR`?JY(e):n===`ru-RU`?YY(e):n===`zh-TW`?XY(e):ZY(e)}),$Y=()=>`Add Wallet`,eX=()=>`Add Wallet`,tX=()=>`Add Wallet`,nX=()=>`Add Wallet`,rX=()=>`新增錢包`,iX=()=>`新增钱包`,aX=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$Y(e):n===`ja-JP`?eX(e):n===`ko-KR`?tX(e):n===`ru-RU`?nX(e):n===`zh-TW`?rX(e):iX(e)}),oX=()=>`Modify wallet remark information.`,sX=()=>`Modify wallet remark information.`,cX=()=>`Modify wallet remark information.`,lX=()=>`Modify wallet remark information.`,uX=()=>`修改錢包備註資訊。`,dX=()=>`修改钱包备注信息。`,fX=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?oX(e):n===`ja-JP`?sX(e):n===`ko-KR`?cX(e):n===`ru-RU`?lX(e):n===`zh-TW`?uX(e):dX(e)}),pX=()=>`Add a new payment wallet.`,mX=()=>`Add a new payment wallet.`,hX=()=>`Add a new payment wallet.`,gX=()=>`Add a new payment wallet.`,_X=()=>`新增新的收款錢包。`,vX=()=>`新增新的收款钱包。`,yX=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pX(e):n===`ja-JP`?mX(e):n===`ko-KR`?hX(e):n===`ru-RU`?gX(e):n===`zh-TW`?_X(e):vX(e)}),bX=()=>`Please enter wallet address`,xX=()=>`Please enter wallet address`,SX=()=>`Please enter wallet address`,CX=()=>`Please enter wallet address`,wX=()=>`請輸入錢包地址`,TX=()=>`请输入钱包地址`,EX=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bX(e):n===`ja-JP`?xX(e):n===`ko-KR`?SX(e):n===`ru-RU`?CX(e):n===`zh-TW`?wX(e):TX(e)}),DX=()=>`Optional`,OX=()=>`Optional`,kX=()=>`Optional`,AX=()=>`Optional`,jX=()=>`選填`,MX=()=>`选填`,NX=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?DX(e):n===`ja-JP`?OX(e):n===`ko-KR`?kX(e):n===`ru-RU`?AX(e):n===`zh-TW`?jX(e):MX(e)}),PX=()=>`Saving...`,FX=()=>`Saving...`,IX=()=>`Saving...`,LX=()=>`Saving...`,RX=()=>`儲存中...`,zX=()=>`保存中...`,BX=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?PX(e):n===`ja-JP`?FX(e):n===`ko-KR`?IX(e):n===`ru-RU`?LX(e):n===`zh-TW`?RX(e):zX(e)}),VX=()=>`Save`,HX=()=>`Save`,UX=()=>`Save`,WX=()=>`Save`,GX=()=>`儲存`,KX=()=>`保存`,qX=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?VX(e):n===`ja-JP`?HX(e):n===`ko-KR`?UX(e):n===`ru-RU`?WX(e):n===`zh-TW`?GX(e):KX(e)}),JX=()=>`Wallet remark updated successfully`,YX=()=>`Wallet remark updated successfully`,XX=()=>`Wallet remark updated successfully`,ZX=()=>`Wallet remark updated successfully`,QX=()=>`錢包備註更新成功`,$X=()=>`钱包备注更新成功`,eZ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?JX(e):n===`ja-JP`?YX(e):n===`ko-KR`?XX(e):n===`ru-RU`?ZX(e):n===`zh-TW`?QX(e):$X(e)}),tZ=()=>`Wallet added successfully`,nZ=()=>`Wallet added successfully`,rZ=()=>`Wallet added successfully`,iZ=()=>`Wallet added successfully`,aZ=()=>`錢包新增成功`,oZ=()=>`钱包新增成功`,sZ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tZ(e):n===`ja-JP`?nZ(e):n===`ko-KR`?rZ(e):n===`ru-RU`?iZ(e):n===`zh-TW`?aZ(e):oZ(e)}),cZ=()=>`Please enter a valid address`,lZ=()=>`Please enter a valid address`,uZ=()=>`Please enter a valid address`,dZ=()=>`Please enter a valid address`,fZ=()=>`請輸入有效地址`,pZ=()=>`请输入有效地址`,mZ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cZ(e):n===`ja-JP`?lZ(e):n===`ko-KR`?uZ(e):n===`ru-RU`?dZ(e):n===`zh-TW`?fZ(e):pZ(e)}),hZ=()=>`Please select a chain`,gZ=()=>`Please select a chain`,_Z=()=>`Please select a chain`,vZ=()=>`Please select a chain`,yZ=()=>`請選擇鏈`,bZ=()=>`请选择链`,xZ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hZ(e):n===`ja-JP`?gZ(e):n===`ko-KR`?_Z(e):n===`ru-RU`?vZ(e):n===`zh-TW`?yZ(e):bZ(e)}),SZ=()=>`Chains & Tokens`,CZ=()=>`Chains & Tokens`,wZ=()=>`Chains & Tokens`,TZ=()=>`Chains & Tokens`,EZ=()=>`鏈與代幣`,DZ=()=>`链与代币`,OZ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?SZ(e):n===`ja-JP`?CZ(e):n===`ko-KR`?wZ(e):n===`ru-RU`?TZ(e):n===`zh-TW`?EZ(e):DZ(e)}),kZ=e=>`${e?.count} chains`,AZ=e=>`${e?.count} chains`,jZ=e=>`${e?.count} chains`,MZ=e=>`${e?.count} chains`,NZ=e=>`${e?.count} 條鏈`,PZ=e=>`${e?.count} 条链`,FZ=((e,t={})=>{let n=t.locale??m();return n===`en-US`?kZ(e):n===`ja-JP`?AZ(e):n===`ko-KR`?jZ(e):n===`ru-RU`?MZ(e):n===`zh-TW`?NZ(e):PZ(e)}),IZ=()=>`Search chain names...`,LZ=()=>`Search chain names...`,RZ=()=>`Search chain names...`,zZ=()=>`Search chain names...`,BZ=()=>`搜尋鏈名稱...`,VZ=()=>`搜索链名称...`,HZ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?IZ(e):n===`ja-JP`?LZ(e):n===`ko-KR`?RZ(e):n===`ru-RU`?zZ(e):n===`zh-TW`?BZ(e):VZ(e)}),UZ=()=>`Overview`,WZ=()=>`Overview`,GZ=()=>`Overview`,KZ=()=>`Overview`,qZ=()=>`總覽`,JZ=()=>`概览`,YZ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?UZ(e):n===`ja-JP`?WZ(e):n===`ko-KR`?GZ(e):n===`ru-RU`?KZ(e):n===`zh-TW`?qZ(e):JZ(e)}),XZ=e=>`Total chains: ${e?.chains} | Total tokens: ${e?.tokens}`,ZZ=e=>`Total chains: ${e?.chains} | Total tokens: ${e?.tokens}`,QZ=e=>`Total chains: ${e?.chains} | Total tokens: ${e?.tokens}`,$Z=e=>`Total chains: ${e?.chains} | Total tokens: ${e?.tokens}`,eQ=e=>`鏈總數: ${e?.chains} | 代幣總數: ${e?.tokens}`,tQ=e=>`链总数: ${e?.chains} | 代币总数: ${e?.tokens}`,nQ=((e,t={})=>{let n=t.locale??m();return n===`en-US`?XZ(e):n===`ja-JP`?ZZ(e):n===`ko-KR`?QZ(e):n===`ru-RU`?$Z(e):n===`zh-TW`?eQ(e):tQ(e)}),rQ=()=>`Supported payment network`,iQ=()=>`Supported payment network`,aQ=()=>`Supported payment network`,oQ=()=>`Supported payment network`,sQ=()=>`支援收款網路`,cQ=()=>`支持收款网络`,lQ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rQ(e):n===`ja-JP`?iQ(e):n===`ko-KR`?aQ(e):n===`ru-RU`?oQ(e):n===`zh-TW`?sQ(e):cQ(e)}),uQ=()=>`No chain data`,dQ=()=>`No chain data`,fQ=()=>`No chain data`,pQ=()=>`No chain data`,mQ=()=>`暫無鏈資料`,hQ=()=>`暂无链数据`,gQ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?uQ(e):n===`ja-JP`?dQ(e):n===`ko-KR`?fQ(e):n===`ru-RU`?pQ(e):n===`zh-TW`?mQ(e):hQ(e)}),_Q=()=>`Add Token`,vQ=()=>`Add Token`,yQ=()=>`Add Token`,bQ=()=>`Add Token`,xQ=()=>`新增代幣`,SQ=()=>`新增代币`,CQ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_Q(e):n===`ja-JP`?vQ(e):n===`ko-KR`?yQ(e):n===`ru-RU`?bQ(e):n===`zh-TW`?xQ(e):SQ(e)}),wQ=()=>`Manage supported blockchain networks and tokens, including status and basic parameters.`,TQ=()=>`Manage supported blockchain networks and tokens, including status and basic parameters.`,EQ=()=>`Manage supported blockchain networks and tokens, including status and basic parameters.`,DQ=()=>`Manage supported blockchain networks and tokens, including status and basic parameters.`,OQ=()=>`管理支援的區塊鏈網路和代幣,維護啟用狀態與基礎引數。`,kQ=()=>`管理支持的区块链网络和代币,维护启用状态与基础参数。`,AQ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wQ(e):n===`ja-JP`?TQ(e):n===`ko-KR`?EQ(e):n===`ru-RU`?DQ(e):n===`zh-TW`?OQ(e):kQ(e)}),jQ=e=>`Chain ${e?.status}`,MQ=e=>`Chain ${e?.status}`,NQ=e=>`Chain ${e?.status}`,PQ=e=>`Chain ${e?.status}`,FQ=e=>`鏈已${e?.status}`,IQ=e=>`链已${e?.status}`,LQ=((e,t={})=>{let n=t.locale??m();return n===`en-US`?jQ(e):n===`ja-JP`?MQ(e):n===`ko-KR`?NQ(e):n===`ru-RU`?PQ(e):n===`zh-TW`?FQ(e):IQ(e)}),RQ=()=>`enabled`,zQ=()=>`enabled`,BQ=()=>`enabled`,VQ=()=>`enabled`,HQ=()=>`啟用`,UQ=()=>`启用`,WQ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?RQ(e):n===`ja-JP`?zQ(e):n===`ko-KR`?BQ(e):n===`ru-RU`?VQ(e):n===`zh-TW`?HQ(e):UQ(e)}),GQ=()=>`disabled`,KQ=()=>`disabled`,qQ=()=>`disabled`,JQ=()=>`disabled`,YQ=()=>`停用`,XQ=()=>`停用`,ZQ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?GQ(e):n===`ja-JP`?KQ(e):n===`ko-KR`?qQ(e):n===`ru-RU`?JQ(e):n===`zh-TW`?YQ(e):XQ(e)}),QQ=()=>`Token status updated`,$Q=()=>`Token status updated`,e$=()=>`Token status updated`,t$=()=>`Token status updated`,n$=()=>`代幣狀態已更新`,r$=()=>`代币状态已更新`,i$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?QQ(e):n===`ja-JP`?$Q(e):n===`ko-KR`?e$(e):n===`ru-RU`?t$(e):n===`zh-TW`?n$(e):r$(e)}),a$=()=>`Token updated successfully`,o$=()=>`Token updated successfully`,s$=()=>`Token updated successfully`,c$=()=>`Token updated successfully`,l$=()=>`代幣更新成功`,u$=()=>`代币更新成功`,d$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?a$(e):n===`ja-JP`?o$(e):n===`ko-KR`?s$(e):n===`ru-RU`?c$(e):n===`zh-TW`?l$(e):u$(e)}),f$=()=>`Token created successfully`,p$=()=>`Token created successfully`,m$=()=>`Token created successfully`,h$=()=>`Token created successfully`,g$=()=>`代幣建立成功`,_$=()=>`代币创建成功`,v$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?f$(e):n===`ja-JP`?p$(e):n===`ko-KR`?m$(e):n===`ru-RU`?h$(e):n===`zh-TW`?g$(e):_$(e)}),y$=()=>`Search token symbols...`,b$=()=>`Search token symbols...`,x$=()=>`Search token symbols...`,S$=()=>`Search token symbols...`,C$=()=>`搜尋代幣符號...`,w$=()=>`搜索代币符号...`,T$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?y$(e):n===`ja-JP`?b$(e):n===`ko-KR`?x$(e):n===`ru-RU`?S$(e):n===`zh-TW`?C$(e):w$(e)}),E$=()=>`No chain token data`,D$=()=>`No chain token data`,O$=()=>`No chain token data`,k$=()=>`No chain token data`,A$=()=>`暫無鏈代幣資料`,j$=()=>`暂无链代币数据`,M$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?E$(e):n===`ja-JP`?D$(e):n===`ko-KR`?O$(e):n===`ru-RU`?k$(e):n===`zh-TW`?A$(e):j$(e)}),N$=()=>`Token`,P$=()=>`Token`,F$=()=>`Token`,I$=()=>`Token`,L$=()=>`代幣`,R$=()=>`代币`,z$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?N$(e):n===`ja-JP`?P$(e):n===`ko-KR`?F$(e):n===`ru-RU`?I$(e):n===`zh-TW`?L$(e):R$(e)}),B$=()=>`Edit`,V$=()=>`Edit`,H$=()=>`Edit`,U$=()=>`Edit`,W$=()=>`編輯`,G$=()=>`编辑`,K$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?B$(e):n===`ja-JP`?V$(e):n===`ko-KR`?H$(e):n===`ru-RU`?U$(e):n===`zh-TW`?W$(e):G$(e)}),q$=()=>`Delete`,J$=()=>`Delete`,Y$=()=>`Delete`,X$=()=>`Delete`,Z$=()=>`刪除`,Q$=()=>`删除`,$$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?q$(e):n===`ja-JP`?J$(e):n===`ko-KR`?Y$(e):n===`ru-RU`?X$(e):n===`zh-TW`?Z$(e):Q$(e)}),e1=()=>`Edit Chain Token`,t1=()=>`Edit Chain Token`,n1=()=>`Edit Chain Token`,r1=()=>`Edit Chain Token`,i1=()=>`編輯鏈代幣`,a1=()=>`编辑链代币`,o1=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?e1(e):n===`ja-JP`?t1(e):n===`ko-KR`?n1(e):n===`ru-RU`?r1(e):n===`zh-TW`?i1(e):a1(e)}),s1=()=>`Add Chain Token`,c1=()=>`Add Chain Token`,l1=()=>`Add Chain Token`,u1=()=>`Add Chain Token`,d1=()=>`新增鏈代幣`,f1=()=>`新增链代币`,p1=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?s1(e):n===`ja-JP`?c1(e):n===`ko-KR`?l1(e):n===`ru-RU`?u1(e):n===`zh-TW`?d1(e):f1(e)}),m1=()=>`Modify chain token configuration.`,h1=()=>`Modify chain token configuration.`,g1=()=>`Modify chain token configuration.`,_1=()=>`Modify chain token configuration.`,v1=()=>`修改鏈代幣配置。`,y1=()=>`修改链代币配置。`,b1=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?m1(e):n===`ja-JP`?h1(e):n===`ko-KR`?g1(e):n===`ru-RU`?_1(e):n===`zh-TW`?v1(e):y1(e)}),x1=()=>`Add a new chain token configuration.`,S1=()=>`Add a new chain token configuration.`,C1=()=>`Add a new chain token configuration.`,w1=()=>`Add a new chain token configuration.`,T1=()=>`新增新的鏈代幣配置。`,E1=()=>`新增新的链代币配置。`,D1=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?x1(e):n===`ja-JP`?S1(e):n===`ko-KR`?C1(e):n===`ru-RU`?w1(e):n===`zh-TW`?T1(e):E1(e)}),O1=()=>`Token Symbol`,k1=()=>`Token Symbol`,A1=()=>`Token Symbol`,j1=()=>`Token Symbol`,M1=()=>`代幣符號`,N1=()=>`代币符号`,P1=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?O1(e):n===`ja-JP`?k1(e):n===`ko-KR`?A1(e):n===`ru-RU`?j1(e):n===`zh-TW`?M1(e):N1(e)}),F1=()=>`Configure available tokens for this chain and maintain contract address, decimals, minimum amount, and enabled status.`,I1=()=>`Configure available tokens for this chain and maintain contract address, decimals, minimum amount, and enabled status.`,L1=()=>`Configure available tokens for this chain and maintain contract address, decimals, minimum amount, and enabled status.`,R1=()=>`Configure available tokens for this chain and maintain contract address, decimals, minimum amount, and enabled status.`,z1=()=>`為當前鏈配置可用代幣,並維護合約地址、精度、最小金額與啟用狀態。`,B1=()=>`为当前链配置可用代币,并维护合约地址、精度、最小金额与启用状态。`,V1=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?F1(e):n===`ja-JP`?I1(e):n===`ko-KR`?L1(e):n===`ru-RU`?R1(e):n===`zh-TW`?z1(e):B1(e)}),H1=()=>`Contract Address`,U1=()=>`Contract Address`,W1=()=>`Contract Address`,G1=()=>`Contract Address`,K1=()=>`合約地址`,q1=()=>`合约地址`,J1=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?H1(e):n===`ja-JP`?U1(e):n===`ko-KR`?W1(e):n===`ru-RU`?G1(e):n===`zh-TW`?K1(e):q1(e)}),Y1=()=>`Decimals`,X1=()=>`Decimals`,Z1=()=>`Decimals`,Q1=()=>`Decimals`,$1=()=>`精度`,$=()=>`精度`,e0=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Y1(e):n===`ja-JP`?X1(e):n===`ko-KR`?Z1(e):n===`ru-RU`?Q1(e):n===`zh-TW`?$1(e):$(e)}),t0=()=>`Minimum Amount`,n0=()=>`Minimum Amount`,r0=()=>`Minimum Amount`,i0=()=>`Minimum Amount`,a0=()=>`最小金額`,o0=()=>`最小金额`,eee=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?t0(e):n===`ja-JP`?n0(e):n===`ko-KR`?r0(e):n===`ru-RU`?i0(e):n===`zh-TW`?a0(e):o0(e)}),s0=()=>`Create`,c0=()=>`Create`,l0=()=>`Create`,u0=()=>`Create`,d0=()=>`建立`,f0=()=>`创建`,p0=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?s0(e):n===`ja-JP`?c0(e):n===`ko-KR`?l0(e):n===`ru-RU`?u0(e):n===`zh-TW`?d0(e):f0(e)}),m0=()=>`Save Changes`,h0=()=>`Save Changes`,g0=()=>`Save Changes`,_0=()=>`Save Changes`,v0=()=>`儲存修改`,y0=()=>`保存修改`,b0=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?m0(e):n===`ja-JP`?h0(e):n===`ko-KR`?g0(e):n===`ru-RU`?_0(e):n===`zh-TW`?v0(e):y0(e)}),x0=()=>`Please select a chain`,S0=()=>`Please select a chain`,C0=()=>`Please select a chain`,w0=()=>`Please select a chain`,T0=()=>`請選擇鏈`,E0=()=>`请选择链`,D0=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?x0(e):n===`ja-JP`?S0(e):n===`ko-KR`?C0(e):n===`ru-RU`?w0(e):n===`zh-TW`?T0(e):E0(e)}),O0=()=>`Please enter token symbol`,k0=()=>`Please enter token symbol`,A0=()=>`Please enter token symbol`,j0=()=>`Please enter token symbol`,M0=()=>`請輸入代幣符號`,N0=()=>`请输入代币符号`,P0=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?O0(e):n===`ja-JP`?k0(e):n===`ko-KR`?A0(e):n===`ru-RU`?j0(e):n===`zh-TW`?M0(e):N0(e)}),F0=()=>`Please enter valid decimals`,I0=()=>`Please enter valid decimals`,L0=()=>`Please enter valid decimals`,R0=()=>`Please enter valid decimals`,z0=()=>`請輸入有效精度`,B0=()=>`请输入有效精度`,V0=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?F0(e):n===`ja-JP`?I0(e):n===`ko-KR`?L0(e):n===`ru-RU`?R0(e):n===`zh-TW`?z0(e):B0(e)}),H0=()=>`Please enter a valid minimum amount`,U0=()=>`Please enter a valid minimum amount`,W0=()=>`Please enter a valid minimum amount`,G0=()=>`Please enter a valid minimum amount`,K0=()=>`請輸入有效最小金額`,q0=()=>`请输入有效最小金额`,J0=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?H0(e):n===`ja-JP`?U0(e):n===`ko-KR`?W0(e):n===`ru-RU`?G0(e):n===`zh-TW`?K0(e):q0(e)}),Y0=()=>`RPC Nodes`,X0=()=>`RPC Nodes`,Z0=()=>`RPC Nodes`,Q0=()=>`RPC Nodes`,$0=()=>`RPC 節點`,e2=()=>`RPC 节点`,t2=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Y0(e):n===`ja-JP`?X0(e):n===`ko-KR`?Z0(e):n===`ru-RU`?Q0(e):n===`zh-TW`?$0(e):e2(e)}),n2=e=>`${e?.count} chains`,r2=e=>`${e?.count} chains`,i2=e=>`${e?.count} chains`,a2=e=>`${e?.count} chains`,o2=e=>`${e?.count} 條鏈`,s2=e=>`${e?.count} 条链`,c2=((e,t={})=>{let n=t.locale??m();return n===`en-US`?n2(e):n===`ja-JP`?r2(e):n===`ko-KR`?i2(e):n===`ru-RU`?a2(e):n===`zh-TW`?o2(e):s2(e)}),l2=()=>`Search chain names or network...`,u2=()=>`Search chain names or network...`,d2=()=>`Search chain names or network...`,f2=()=>`Search chain names or network...`,p2=()=>`搜尋鏈名或 network...`,m2=()=>`搜索链名称或 network...`,h2=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?l2(e):n===`ja-JP`?u2(e):n===`ko-KR`?d2(e):n===`ru-RU`?f2(e):n===`zh-TW`?p2(e):m2(e)}),g2=()=>`Overview`,_2=()=>`Overview`,v2=()=>`Overview`,y2=()=>`Overview`,b2=()=>`總覽`,x2=()=>`概览`,S2=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?g2(e):n===`ja-JP`?_2(e):n===`ko-KR`?v2(e):n===`ru-RU`?y2(e):n===`zh-TW`?b2(e):x2(e)}),C2=e=>`Total chains: ${e?.chains} | Total nodes: ${e?.nodes}`,w2=e=>`Total chains: ${e?.chains} | Total nodes: ${e?.nodes}`,T2=e=>`Total chains: ${e?.chains} | Total nodes: ${e?.nodes}`,E2=e=>`Total chains: ${e?.chains} | Total nodes: ${e?.nodes}`,D2=e=>`鏈總數: ${e?.chains} | 節點總數: ${e?.nodes}`,O2=e=>`链总数: ${e?.chains} | 节点总数: ${e?.nodes}`,k2=((e,t={})=>{let n=t.locale??m();return n===`en-US`?C2(e):n===`ja-JP`?w2(e):n===`ko-KR`?T2(e):n===`ru-RU`?E2(e):n===`zh-TW`?D2(e):O2(e)}),A2=()=>`Unnamed chain`,j2=()=>`Unnamed chain`,M2=()=>`Unnamed chain`,N2=()=>`Unnamed chain`,P2=()=>`未命名鏈`,F2=()=>`未命名链`,I2=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?A2(e):n===`ja-JP`?j2(e):n===`ko-KR`?M2(e):n===`ru-RU`?N2(e):n===`zh-TW`?P2(e):F2(e)}),L2=e=>`Nodes: ${e?.count}`,R2=e=>`Nodes: ${e?.count}`,z2=e=>`Nodes: ${e?.count}`,B2=e=>`Nodes: ${e?.count}`,V2=e=>`節點數: ${e?.count}`,H2=e=>`节点数: ${e?.count}`,U2=((e,t={})=>{let n=t.locale??m();return n===`en-US`?L2(e):n===`ja-JP`?R2(e):n===`ko-KR`?z2(e):n===`ru-RU`?B2(e):n===`zh-TW`?V2(e):H2(e)}),W2=()=>`No chain data`,G2=()=>`No chain data`,K2=()=>`No chain data`,q2=()=>`No chain data`,J2=()=>`暫無鏈資料`,Y2=()=>`暂无链数据`,X2=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?W2(e):n===`ja-JP`?G2(e):n===`ko-KR`?K2(e):n===`ru-RU`?q2(e):n===`zh-TW`?J2(e):Y2(e)}),Z2=()=>`Add Node`,Q2=()=>`Add Node`,$2=()=>`Add Node`,e4=()=>`Add Node`,t4=()=>`新增節點`,n4=()=>`新增节点`,r4=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Z2(e):n===`ja-JP`?Q2(e):n===`ko-KR`?$2(e):n===`ru-RU`?e4(e):n===`zh-TW`?t4(e):n4(e)}),i4=()=>`Manage RPC nodes, weights, and health status for each chain.`,a4=()=>`Manage RPC nodes, weights, and health status for each chain.`,o4=()=>`Manage RPC nodes, weights, and health status for each chain.`,s4=()=>`Manage RPC nodes, weights, and health status for each chain.`,c4=()=>`管理各鏈 RPC 節點、權重與健康狀態。`,l4=()=>`管理各链 RPC 节点、权重与健康状态。`,u4=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?i4(e):n===`ja-JP`?a4(e):n===`ko-KR`?o4(e):n===`ru-RU`?s4(e):n===`zh-TW`?c4(e):l4(e)}),d4=()=>`Deleted successfully`,f4=()=>`Deleted successfully`,p4=()=>`Deleted successfully`,m4=()=>`Deleted successfully`,h4=()=>`刪除成功`,g4=()=>`删除成功`,_4=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?d4(e):n===`ja-JP`?f4(e):n===`ko-KR`?p4(e):n===`ru-RU`?m4(e):n===`zh-TW`?h4(e):g4(e)}),v4=e=>`Health check completed, status: ${e?.status}${e?.latency}`,y4=e=>`Health check completed, status: ${e?.status}${e?.latency}`,b4=e=>`Health check completed, status: ${e?.status}${e?.latency}`,x4=e=>`Health check completed, status: ${e?.status}${e?.latency}`,S4=e=>`健康檢查完成,狀態: ${e?.status}${e?.latency}`,C4=e=>`健康检查完成,状态: ${e?.status}${e?.latency}`,w4=((e,t={})=>{let n=t.locale??m();return n===`en-US`?v4(e):n===`ja-JP`?y4(e):n===`ko-KR`?b4(e):n===`ru-RU`?x4(e):n===`zh-TW`?S4(e):C4(e)}),T4=e=>`, latency ${e?.latency}ms`,E4=e=>`, latency ${e?.latency}ms`,D4=e=>`, latency ${e?.latency}ms`,O4=e=>`, latency ${e?.latency}ms`,k4=e=>`,延遲 ${e?.latency}ms`,A4=e=>`,延迟 ${e?.latency}ms`,j4=((e,t={})=>{let n=t.locale??m();return n===`en-US`?T4(e):n===`ja-JP`?E4(e):n===`ko-KR`?D4(e):n===`ru-RU`?O4(e):n===`zh-TW`?k4(e):A4(e)}),M4=()=>`Confirm`,N4=()=>`Confirm`,P4=()=>`Confirm`,F4=()=>`Confirm`,I4=()=>`確認`,L4=()=>`确认`,R4=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?M4(e):n===`ja-JP`?N4(e):n===`ko-KR`?P4(e):n===`ru-RU`?F4(e):n===`zh-TW`?I4(e):L4(e)}),z4=e=>`Perform “${e?.action}” on RPC node ${e?.url}.`,B4=e=>`Perform “${e?.action}” on RPC node ${e?.url}.`,V4=e=>`Perform “${e?.action}” on RPC node ${e?.url}.`,H4=e=>`Perform “${e?.action}” on RPC node ${e?.url}.`,U4=e=>`將對 RPC 節點 ${e?.url} 執行“${e?.action}”操作。`,W4=e=>`将对 RPC 节点 ${e?.url} 执行“${e?.action}”操作。`,G4=((e,t={})=>{let n=t.locale??m();return n===`en-US`?z4(e):n===`ja-JP`?B4(e):n===`ko-KR`?V4(e):n===`ru-RU`?H4(e):n===`zh-TW`?U4(e):W4(e)}),K4=()=>`Delete RPC Node`,q4=()=>`Delete RPC Node`,J4=()=>`Delete RPC Node`,Y4=()=>`Delete RPC Node`,X4=()=>`刪除 RPC 節點`,Z4=()=>`删除 RPC 节点`,Q4=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?K4(e):n===`ja-JP`?q4(e):n===`ko-KR`?J4(e):n===`ru-RU`?Y4(e):n===`zh-TW`?X4(e):Z4(e)}),$4=()=>`Confirm RPC Node Action`,e3=()=>`Confirm RPC Node Action`,t3=()=>`Confirm RPC Node Action`,n3=()=>`Confirm RPC Node Action`,r3=()=>`RPC 節點操作確認`,i3=()=>`RPC 节点操作确认`,a3=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$4(e):n===`ja-JP`?e3(e):n===`ko-KR`?t3(e):n===`ru-RU`?n3(e):n===`zh-TW`?r3(e):i3(e)}),o3=()=>`Health Status`,s3=()=>`Health Status`,c3=()=>`Health Status`,l3=()=>`Health Status`,u3=()=>`健康狀態`,d3=()=>`健康状态`,f3=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?o3(e):n===`ja-JP`?s3(e):n===`ko-KR`?c3(e):n===`ru-RU`?l3(e):n===`zh-TW`?u3(e):d3(e)}),p3=()=>`OK`,m3=()=>`OK`,h3=()=>`OK`,g3=()=>`OK`,_3=()=>`正常`,v3=()=>`正常`,y3=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?p3(e):n===`ja-JP`?m3(e):n===`ko-KR`?h3(e):n===`ru-RU`?g3(e):n===`zh-TW`?_3(e):v3(e)}),b3=()=>`Down`,x3=()=>`Down`,S3=()=>`Down`,C3=()=>`Down`,w3=()=>`異常`,T3=()=>`异常`,E3=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?b3(e):n===`ja-JP`?x3(e):n===`ko-KR`?S3(e):n===`ru-RU`?C3(e):n===`zh-TW`?w3(e):T3(e)}),D3=()=>`Unknown`,O3=()=>`Unknown`,k3=()=>`Unknown`,A3=()=>`Unknown`,j3=()=>`未知`,M3=()=>`未知`,N3=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?D3(e):n===`ja-JP`?O3(e):n===`ko-KR`?k3(e):n===`ru-RU`?A3(e):n===`zh-TW`?j3(e):M3(e)}),P3=()=>`Chain Network`,F3=()=>`Chain Network`,I3=()=>`Chain Network`,L3=()=>`Chain Network`,R3=()=>`鏈網路`,z3=()=>`链网络`,B3=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?P3(e):n===`ja-JP`?F3(e):n===`ko-KR`?I3(e):n===`ru-RU`?L3(e):n===`zh-TW`?R3(e):z3(e)}),V3=()=>`Connection Type`,H3=()=>`Connection Type`,U3=()=>`Connection Type`,W3=()=>`Connection Type`,G3=()=>`連線型別`,K3=()=>`连接类型`,q3=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?V3(e):n===`ja-JP`?H3(e):n===`ko-KR`?U3(e):n===`ru-RU`?W3(e):n===`zh-TW`?G3(e):K3(e)}),J3=()=>`Node URL`,Y3=()=>`Node URL`,X3=()=>`Node URL`,Z3=()=>`Node URL`,Q3=()=>`節點 URL`,$3=()=>`节点 URL`,e6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?J3(e):n===`ja-JP`?Y3(e):n===`ko-KR`?X3(e):n===`ru-RU`?Z3(e):n===`zh-TW`?Q3(e):$3(e)}),t6=()=>`Weight`,n6=()=>`Weight`,r6=()=>`Weight`,i6=()=>`Weight`,a6=()=>`權重`,o6=()=>`权重`,s6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?t6(e):n===`ja-JP`?n6(e):n===`ko-KR`?r6(e):n===`ru-RU`?i6(e):n===`zh-TW`?a6(e):o6(e)}),c6=()=>`Latest Latency`,l6=()=>`Latest Latency`,u6=()=>`Latest Latency`,d6=()=>`Latest Latency`,f6=()=>`最近延遲`,p6=()=>`最近延迟`,m6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?c6(e):n===`ja-JP`?l6(e):n===`ko-KR`?u6(e):n===`ru-RU`?d6(e):n===`zh-TW`?f6(e):p6(e)}),h6=()=>`Last Checked At`,g6=()=>`Last Checked At`,_6=()=>`Last Checked At`,v6=()=>`Last Checked At`,y6=()=>`最近檢查時間`,b6=()=>`最近检查时间`,x6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?h6(e):n===`ja-JP`?g6(e):n===`ko-KR`?_6(e):n===`ru-RU`?v6(e):n===`zh-TW`?y6(e):b6(e)}),S6=()=>`Health Check`,C6=()=>`Health Check`,w6=()=>`Health Check`,T6=()=>`Health Check`,E6=()=>`健康檢查`,D6=()=>`健康检查`,O6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?S6(e):n===`ja-JP`?C6(e):n===`ko-KR`?w6(e):n===`ru-RU`?T6(e):n===`zh-TW`?E6(e):D6(e)}),k6=()=>`Search chain network or node URL...`,A6=()=>`Search chain network or node URL...`,j6=()=>`Search chain network or node URL...`,M6=()=>`Search chain network or node URL...`,N6=()=>`搜尋鏈網路或節點 URL...`,P6=()=>`搜索链网络或节点 URL...`,F6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?k6(e):n===`ja-JP`?A6(e):n===`ko-KR`?j6(e):n===`ru-RU`?M6(e):n===`zh-TW`?N6(e):P6(e)}),I6=()=>`No RPC node data`,L6=()=>`No RPC node data`,R6=()=>`No RPC node data`,z6=()=>`No RPC node data`,B6=()=>`暫無 RPC 節點資料`,V6=()=>`暂无 RPC 节点数据`,H6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?I6(e):n===`ja-JP`?L6(e):n===`ko-KR`?R6(e):n===`ru-RU`?z6(e):n===`zh-TW`?B6(e):V6(e)}),U6=()=>`Edit`,W6=()=>`Edit`,G6=()=>`Edit`,K6=()=>`Edit`,q6=()=>`編輯`,J6=()=>`编辑`,Y6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?U6(e):n===`ja-JP`?W6(e):n===`ko-KR`?G6(e):n===`ru-RU`?K6(e):n===`zh-TW`?q6(e):J6(e)}),X6=()=>`Edit RPC Node`,Z6=()=>`Edit RPC Node`,Q6=()=>`Edit RPC Node`,$6=()=>`Edit RPC Node`,e8=()=>`編輯 RPC 節點`,t8=()=>`编辑 RPC 节点`,n8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?X6(e):n===`ja-JP`?Z6(e):n===`ko-KR`?Q6(e):n===`ru-RU`?$6(e):n===`zh-TW`?e8(e):t8(e)}),r8=()=>`Add RPC Node`,i8=()=>`Add RPC Node`,a8=()=>`Add RPC Node`,o8=()=>`Add RPC Node`,s8=()=>`新增 RPC 節點`,c8=()=>`新增 RPC 节点`,l8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?r8(e):n===`ja-JP`?i8(e):n===`ko-KR`?a8(e):n===`ru-RU`?o8(e):n===`zh-TW`?s8(e):c8(e)}),u8=()=>`Modify RPC node configuration.`,d8=()=>`Modify RPC node configuration.`,f8=()=>`Modify RPC node configuration.`,p8=()=>`Modify RPC node configuration.`,m8=()=>`修改 RPC 節點配置。`,h8=()=>`修改 RPC 节点配置。`,g8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?u8(e):n===`ja-JP`?d8(e):n===`ko-KR`?f8(e):n===`ru-RU`?p8(e):n===`zh-TW`?m8(e):h8(e)}),_8=()=>`Configure a new RPC node.`,v8=()=>`Configure a new RPC node.`,y8=()=>`Configure a new RPC node.`,b8=()=>`Configure a new RPC node.`,x8=()=>`配置新的 RPC 節點資訊。`,S8=()=>`配置新的 RPC 节点信息。`,C8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_8(e):n===`ja-JP`?v8(e):n===`ko-KR`?y8(e):n===`ru-RU`?b8(e):n===`zh-TW`?x8(e):S8(e)}),w8=()=>`Select type`,T8=()=>`Select type`,E8=()=>`Select type`,D8=()=>`Select type`,O8=()=>`選擇型別`,k8=()=>`选择类型`,A8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?w8(e):n===`ja-JP`?T8(e):n===`ko-KR`?E8(e):n===`ru-RU`?D8(e):n===`zh-TW`?O8(e):k8(e)}),j8=()=>`Optional`,M8=()=>`Optional`,N8=()=>`Optional`,P8=()=>`Optional`,F8=()=>`可選`,I8=()=>`可选`,L8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?j8(e):n===`ja-JP`?M8(e):n===`ko-KR`?N8(e):n===`ru-RU`?P8(e):n===`zh-TW`?F8(e):I8(e)}),R8=()=>`Enable immediately after creation`,z8=()=>`Enable immediately after creation`,B8=()=>`Enable immediately after creation`,V8=()=>`Enable immediately after creation`,H8=()=>`建立後立即啟用`,U8=()=>`创建后立即启用`,W8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?R8(e):n===`ja-JP`?z8(e):n===`ko-KR`?B8(e):n===`ru-RU`?V8(e):n===`zh-TW`?H8(e):U8(e)}),G8=()=>`Disabled nodes will not participate in scheduling.`,K8=()=>`Disabled nodes will not participate in scheduling.`,q8=()=>`Disabled nodes will not participate in scheduling.`,J8=()=>`Disabled nodes will not participate in scheduling.`,Y8=()=>`關閉後該節點不會參與排程。`,X8=()=>`关闭后该节点不会参与排程。`,Z8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?G8(e):n===`ja-JP`?K8(e):n===`ko-KR`?q8(e):n===`ru-RU`?J8(e):n===`zh-TW`?Y8(e):X8(e)}),Q8=()=>`RPC node updated successfully`,$8=()=>`RPC node updated successfully`,e5=()=>`RPC node updated successfully`,t5=()=>`RPC node updated successfully`,n5=()=>`RPC 節點更新成功`,r5=()=>`RPC 节点更新成功`,i5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Q8(e):n===`ja-JP`?$8(e):n===`ko-KR`?e5(e):n===`ru-RU`?t5(e):n===`zh-TW`?n5(e):r5(e)}),a5=()=>`RPC node created successfully`,o5=()=>`RPC node created successfully`,s5=()=>`RPC node created successfully`,c5=()=>`RPC node created successfully`,l5=()=>`RPC 節點建立成功`,u5=()=>`RPC 节点创建成功`,d5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?a5(e):n===`ja-JP`?o5(e):n===`ko-KR`?s5(e):n===`ru-RU`?c5(e):n===`zh-TW`?l5(e):u5(e)}),f5=()=>`Please enter chain network`,p5=()=>`Please enter chain network`,m5=()=>`Please enter chain network`,h5=()=>`Please enter chain network`,g5=()=>`請輸入鏈網路`,_5=()=>`请输入链网络`,v5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?f5(e):n===`ja-JP`?p5(e):n===`ko-KR`?m5(e):n===`ru-RU`?h5(e):n===`zh-TW`?g5(e):_5(e)}),y5=()=>`Please enter a valid URL`,b5=()=>`Please enter a valid URL`,x5=()=>`Please enter a valid URL`,S5=()=>`Please enter a valid URL`,C5=()=>`請輸入合法 URL`,w5=()=>`请输入合法 URL`,T5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?y5(e):n===`ja-JP`?b5(e):n===`ko-KR`?x5(e):n===`ru-RU`?S5(e):n===`zh-TW`?C5(e):w5(e)}),E5=()=>`Weight must be at least 1`,D5=()=>`Weight must be at least 1`,O5=()=>`Weight must be at least 1`,k5=()=>`Weight must be at least 1`,A5=()=>`權重至少為 1`,j5=()=>`权重至少为 1`,M5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?E5(e):n===`ja-JP`?D5(e):n===`ko-KR`?O5(e):n===`ru-RU`?k5(e):n===`zh-TW`?A5(e):j5(e)}),N5=()=>`Node Purpose`,P5=()=>`Node Purpose`,F5=()=>`Node Purpose`,I5=()=>`Node Purpose`,L5=()=>`節點用途`,R5=()=>`节点用途`,z5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?N5(e):n===`ja-JP`?P5(e):n===`ko-KR`?F5(e):n===`ru-RU`?I5(e):n===`zh-TW`?L5(e):R5(e)}),B5=()=>`Select purpose`,V5=()=>`Select purpose`,H5=()=>`Select purpose`,U5=()=>`Select purpose`,W5=()=>`選擇用途`,G5=()=>`选择用途`,K5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?B5(e):n===`ja-JP`?V5(e):n===`ko-KR`?H5(e):n===`ru-RU`?U5(e):n===`zh-TW`?W5(e):G5(e)}),q5=()=>`General`,J5=()=>`General`,Y5=()=>`General`,X5=()=>`General`,Z5=()=>`通用`,Q5=()=>`通用`,$5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?q5(e):n===`ja-JP`?J5(e):n===`ko-KR`?Y5(e):n===`ru-RU`?X5(e):n===`zh-TW`?Z5(e):Q5(e)}),e7=()=>`Manual verification only`,t7=()=>`Manual verification only`,n7=()=>`Manual verification only`,r7=()=>`Manual verification only`,i7=()=>`補單專用`,a7=()=>`补单专用`,o7=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?e7(e):n===`ja-JP`?t7(e):n===`ko-KR`?n7(e):n===`ru-RU`?r7(e):n===`zh-TW`?i7(e):a7(e)}),s7=()=>`General + manual verification`,c7=()=>`General + manual verification`,l7=()=>`General + manual verification`,u7=()=>`General + manual verification`,d7=()=>`通用 + 補單`,f7=()=>`通用 + 补单`,p7=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?s7(e):n===`ja-JP`?c7(e):n===`ko-KR`?l7(e):n===`ru-RU`?u7(e):n===`zh-TW`?d7(e):f7(e)}),m7=()=>`All`,h7=()=>`All`,g7=()=>`All`,_7=()=>`All`,v7=()=>`全部`,y7=()=>`全部`,b7=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?m7(e):n===`ja-JP`?h7(e):n===`ko-KR`?g7(e):n===`ru-RU`?_7(e):n===`zh-TW`?v7(e):y7(e)}),x7=()=>`Enabled`,S7=()=>`Enabled`,C7=()=>`Enabled`,w7=()=>`Enabled`,T7=()=>`已啟用`,E7=()=>`已启用`,D7=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?x7(e):n===`ja-JP`?S7(e):n===`ko-KR`?C7(e):n===`ru-RU`?w7(e):n===`zh-TW`?T7(e):E7(e)}),O7=()=>`Disabled`,k7=()=>`Disabled`,A7=()=>`Disabled`,j7=()=>`Disabled`,M7=()=>`已停用`,N7=()=>`已停用`,P7=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?O7(e):n===`ja-JP`?k7(e):n===`ko-KR`?A7(e):n===`ru-RU`?j7(e):n===`zh-TW`?M7(e):N7(e)}),F7=()=>`Deleted successfully`,I7=()=>`Deleted successfully`,L7=()=>`Deleted successfully`,R7=()=>`Deleted successfully`,z7=()=>`刪除成功`,B7=()=>`删除成功`,V7=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?F7(e):n===`ja-JP`?I7(e):n===`ko-KR`?L7(e):n===`ru-RU`?R7(e):n===`zh-TW`?z7(e):B7(e)}),H7=()=>`Failed to fetch secret key`,U7=()=>`Failed to fetch secret key`,W7=()=>`Failed to fetch secret key`,G7=()=>`Failed to fetch secret key`,K7=()=>`取得金鑰失敗`,q7=()=>`获取密钥失败`,J7=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?H7(e):n===`ja-JP`?U7(e):n===`ko-KR`?W7(e):n===`ru-RU`?G7(e):n===`zh-TW`?K7(e):q7(e)}),Y7=()=>`Missing API Key ID`,X7=()=>`Missing API Key ID`,Z7=()=>`Missing API Key ID`,Q7=()=>`Missing API Key ID`,$7=()=>`缺少 API Key ID`,e9=()=>`缺少 API Key ID`,t9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Y7(e):n===`ja-JP`?X7(e):n===`ko-KR`?Z7(e):n===`ru-RU`?Q7(e):n===`zh-TW`?$7(e):e9(e)}),n9=()=>`No secret key available to copy`,r9=()=>`No secret key available to copy`,i9=()=>`No secret key available to copy`,a9=()=>`No secret key available to copy`,o9=()=>`暫無金鑰可複製`,s9=()=>`暂无密钥可复制`,c9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?n9(e):n===`ja-JP`?r9(e):n===`ko-KR`?i9(e):n===`ru-RU`?a9(e):n===`zh-TW`?o9(e):s9(e)}),l9=()=>`Secret key copied`,u9=()=>`Secret key copied`,d9=()=>`Secret key copied`,f9=()=>`Secret key copied`,p9=()=>`金鑰已複製`,m9=()=>`密钥已复制`,h9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?l9(e):n===`ja-JP`?u9(e):n===`ko-KR`?d9(e):n===`ru-RU`?f9(e):n===`zh-TW`?p9(e):m9(e)}),g9=()=>`Secret key rotated`,_9=()=>`Secret key rotated`,v9=()=>`Secret key rotated`,y9=()=>`Secret key rotated`,b9=()=>`金鑰已輪換`,x9=()=>`密钥已轮换`,S9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?g9(e):n===`ja-JP`?_9(e):n===`ko-KR`?v9(e):n===`ru-RU`?y9(e):n===`zh-TW`?b9(e):x9(e)}),C9=()=>`Create Key`,w9=()=>`Create Key`,T9=()=>`Create Key`,E9=()=>`Create Key`,D9=()=>`建立 Key`,O9=()=>`创建 Key`,k9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?C9(e):n===`ja-JP`?w9(e):n===`ko-KR`?T9(e):n===`ru-RU`?E9(e):n===`zh-TW`?D9(e):O9(e)}),A9=()=>`Manage payment keys, access restrictions, and callback URL settings.`,j9=()=>`Manage payment keys, access restrictions, and callback URL settings.`,M9=()=>`Manage payment keys, access restrictions, and callback URL settings.`,N9=()=>`Manage payment keys, access restrictions, and callback URL settings.`,P9=()=>`管理支付 Key、訪問限制與通知地址配置。`,F9=()=>`管理支付 Key、访问限制与通知地址配置。`,I9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?A9(e):n===`ja-JP`?j9(e):n===`ko-KR`?M9(e):n===`ru-RU`?N9(e):n===`zh-TW`?P9(e):F9(e)}),L9=()=>`Payment Management`,R9=()=>`Payment Management`,z9=()=>`Payment Management`,B9=()=>`Payment Management`,V9=()=>`支付管理`,H9=()=>`支付管理`,U9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?L9(e):n===`ja-JP`?R9(e):n===`ko-KR`?z9(e):n===`ru-RU`?B9(e):n===`zh-TW`?V9(e):H9(e)}),W9=()=>`Search PID, name, or callback URL...`,G9=()=>`Search PID, name, or callback URL...`,K9=()=>`Search PID, name, or callback URL...`,q9=()=>`Search PID, name, or callback URL...`,J9=()=>`搜尋 PID、名稱或通知地址...`,Y9=()=>`搜索 PID、名称或通知地址...`,X9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?W9(e):n===`ja-JP`?G9(e):n===`ko-KR`?K9(e):n===`ru-RU`?q9(e):n===`zh-TW`?J9(e):Y9(e)}),Z9=()=>`Ascending`,Q9=()=>`Ascending`,$9=()=>`Ascending`,tee=()=>`Ascending`,nee=()=>`Ascending`,ree=()=>`Ascending`,iee=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Z9(e):n===`ja-JP`?Q9(e):n===`ko-KR`?$9(e):n===`ru-RU`?tee(e):n===`zh-TW`?nee(e):ree(e)}),aee=()=>`Descending`,oee=()=>`Descending`,see=()=>`Descending`,cee=()=>`Descending`,lee=()=>`Descending`,uee=()=>`Descending`,dee=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?aee(e):n===`ja-JP`?oee(e):n===`ko-KR`?see(e):n===`ru-RU`?cee(e):n===`zh-TW`?lee(e):uee(e)}),fee=()=>`Delete`,pee=()=>`Delete`,mee=()=>`Delete`,hee=()=>`Delete`,gee=()=>`刪除`,_ee=()=>`删除`,vee=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fee(e):n===`ja-JP`?pee(e):n===`ko-KR`?mee(e):n===`ru-RU`?hee(e):n===`zh-TW`?gee(e):_ee(e)}),yee=()=>`Confirm`,bee=()=>`Confirm`,xee=()=>`Confirm`,See=()=>`Confirm`,Cee=()=>`確認`,wee=()=>`确认`,Tee=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yee(e):n===`ja-JP`?bee(e):n===`ko-KR`?xee(e):n===`ru-RU`?See(e):n===`zh-TW`?Cee(e):wee(e)}),Eee=e=>`Perform “${e?.action}” on ${e?.target}.`,Dee=e=>`Perform “${e?.action}” on ${e?.target}.`,Oee=e=>`Perform “${e?.action}” on ${e?.target}.`,kee=e=>`Perform “${e?.action}” on ${e?.target}.`,Aee=e=>`將對 ${e?.target} 執行“${e?.action}”操作。`,jee=e=>`将对 ${e?.target} 执行“${e?.action}”操作。`,Mee=((e,t={})=>{let n=t.locale??m();return n===`en-US`?Eee(e):n===`ja-JP`?Dee(e):n===`ko-KR`?Oee(e):n===`ru-RU`?kee(e):n===`zh-TW`?Aee(e):jee(e)}),Nee=()=>`Delete API Key`,Pee=()=>`Delete API Key`,Fee=()=>`Delete API Key`,Iee=()=>`Delete API Key`,Lee=()=>`刪除 API Key`,Ree=()=>`删除 API Key`,zee=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Nee(e):n===`ja-JP`?Pee(e):n===`ko-KR`?Fee(e):n===`ru-RU`?Iee(e):n===`zh-TW`?Lee(e):Ree(e)}),Bee=()=>`Confirm API Key Action`,Vee=()=>`Confirm API Key Action`,Hee=()=>`Confirm API Key Action`,Uee=()=>`Confirm API Key Action`,Wee=()=>`API Key 操作確認`,Gee=()=>`API Key 操作确认`,Kee=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Bee(e):n===`ja-JP`?Vee(e):n===`ko-KR`?Hee(e):n===`ru-RU`?Uee(e):n===`zh-TW`?Wee(e):Gee(e)}),qee=()=>`API Key Stats`,Jee=()=>`API Key Stats`,Yee=()=>`API Key Stats`,Xee=()=>`API Key Stats`,Zee=()=>`API Key 統計`,Qee=()=>`API Key 统计`,$ee=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qee(e):n===`ja-JP`?Jee(e):n===`ko-KR`?Yee(e):n===`ru-RU`?Xee(e):n===`zh-TW`?Zee(e):Qee(e)}),ete=()=>`Call Count`,tte=()=>`Call Count`,nte=()=>`Call Count`,rte=()=>`Call Count`,ite=()=>`呼叫次數`,ate=()=>`呼叫次数`,ote=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ete(e):n===`ja-JP`?tte(e):n===`ko-KR`?nte(e):n===`ru-RU`?rte(e):n===`zh-TW`?ite(e):ate(e)}),ste=()=>`Last Used`,cte=()=>`Last Used`,lte=()=>`Last Used`,ute=()=>`Last Used`,dte=()=>`最近使用`,fte=()=>`最近使用`,pte=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ste(e):n===`ja-JP`?cte(e):n===`ko-KR`?lte(e):n===`ru-RU`?ute(e):n===`zh-TW`?dte(e):fte(e)}),mte=()=>`No records`,hte=()=>`No records`,gte=()=>`No records`,_te=()=>`No records`,vte=()=>`暫無記錄`,yte=()=>`暂无记录`,bte=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mte(e):n===`ja-JP`?hte(e):n===`ko-KR`?gte(e):n===`ru-RU`?_te(e):n===`zh-TW`?vte(e):yte(e)}),xte=()=>`No API Keys`,Ste=()=>`No API Keys`,Cte=()=>`No API Keys`,wte=()=>`No API Keys`,Tte=()=>`暫無 API Key`,Ete=()=>`暂无 API Key`,Dte=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xte(e):n===`ja-JP`?Ste(e):n===`ko-KR`?Cte(e):n===`ru-RU`?wte(e):n===`zh-TW`?Tte(e):Ete(e)}),Ote=()=>`Loading...`,kte=()=>`Loading...`,Ate=()=>`Loading...`,jte=()=>`Loading...`,Mte=()=>`載入中...`,Nte=()=>`加载中...`,Pte=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ote(e):n===`ja-JP`?kte(e):n===`ko-KR`?Ate(e):n===`ru-RU`?jte(e):n===`zh-TW`?Mte(e):Nte(e)}),Fte=()=>`Callback URL`,Ite=()=>`Callback URL`,Lte=()=>`Callback URL`,Rte=()=>`Callback URL`,zte=()=>`回呼地址`,Bte=()=>`回调地址`,Vte=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Fte(e):n===`ja-JP`?Ite(e):n===`ko-KR`?Lte(e):n===`ru-RU`?Rte(e):n===`zh-TW`?zte(e):Bte(e)}),Hte=()=>`IP Whitelist`,Ute=()=>`IP Whitelist`,Wte=()=>`IP Whitelist`,Gte=()=>`IP Whitelist`,Kte=()=>`IP 白名單`,qte=()=>`IP 白名单`,Jte=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hte(e):n===`ja-JP`?Ute(e):n===`ko-KR`?Wte(e):n===`ru-RU`?Gte(e):n===`zh-TW`?Kte(e):qte(e)}),Yte=()=>`Secret`,Xte=()=>`Secret`,Zte=()=>`Secret`,Qte=()=>`Secret`,$te=()=>`金鑰`,ene=()=>`密钥`,tne=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yte(e):n===`ja-JP`?Xte(e):n===`ko-KR`?Zte(e):n===`ru-RU`?Qte(e):n===`zh-TW`?$te(e):ene(e)}),nne=()=>`Edit`,rne=()=>`Edit`,ine=()=>`Edit`,ane=()=>`Edit`,one=()=>`編輯`,sne=()=>`编辑`,cne=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nne(e):n===`ja-JP`?rne(e):n===`ko-KR`?ine(e):n===`ru-RU`?ane(e):n===`zh-TW`?one(e):sne(e)}),lne=()=>`Rotate Secret`,une=()=>`Rotate Secret`,dne=()=>`Rotate Secret`,fne=()=>`Rotate Secret`,pne=()=>`輪換金鑰`,mne=()=>`轮换密钥`,hne=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lne(e):n===`ja-JP`?une(e):n===`ko-KR`?dne(e):n===`ru-RU`?fne(e):n===`zh-TW`?pne(e):mne(e)}),gne=()=>`Name`,_ne=()=>`Name`,vne=()=>`Name`,yne=()=>`Name`,bne=()=>`名稱`,xne=()=>`名称`,Sne=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gne(e):n===`ja-JP`?_ne(e):n===`ko-KR`?vne(e):n===`ru-RU`?yne(e):n===`zh-TW`?bne(e):xne(e)}),Cne=()=>`My App`,wne=()=>`My App`,Tne=()=>`My App`,Ene=()=>`My App`,Dne=()=>`我的應用`,One=()=>`我的应用`,kne=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Cne(e):n===`ja-JP`?wne(e):n===`ko-KR`?Tne(e):n===`ru-RU`?Ene(e):n===`zh-TW`?Dne(e):One(e)}),Ane=()=>`Edit API Key`,jne=()=>`Edit API Key`,Mne=()=>`Edit API Key`,Nne=()=>`Edit API Key`,Pne=()=>`編輯 API Key`,Fne=()=>`编辑 API Key`,Ine=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ane(e):n===`ja-JP`?jne(e):n===`ko-KR`?Mne(e):n===`ru-RU`?Nne(e):n===`zh-TW`?Pne(e):Fne(e)}),Lne=()=>`Create API Key`,Rne=()=>`Create API Key`,zne=()=>`Create API Key`,Bne=()=>`Create API Key`,Vne=()=>`建立 API Key`,Hne=()=>`创建 API Key`,Une=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Lne(e):n===`ja-JP`?Rne(e):n===`ko-KR`?zne(e):n===`ru-RU`?Bne(e):n===`zh-TW`?Vne(e):Hne(e)}),Wne=()=>`Modify API Key configuration.`,Gne=()=>`Modify API Key configuration.`,Kne=()=>`Modify API Key configuration.`,qne=()=>`Modify API Key configuration.`,Jne=()=>`修改 API Key 配置。`,Yne=()=>`修改 API Key 配置。`,Xne=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Wne(e):n===`ja-JP`?Gne(e):n===`ko-KR`?Kne(e):n===`ru-RU`?qne(e):n===`zh-TW`?Jne(e):Yne(e)}),Zne=()=>`Create a new API secret key.`,Qne=()=>`Create a new API secret key.`,$ne=()=>`Create a new API secret key.`,ere=()=>`Create a new API secret key.`,tre=()=>`建立新的 API 金鑰。`,nre=()=>`创建新的 API 密钥。`,rre=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Zne(e):n===`ja-JP`?Qne(e):n===`ko-KR`?$ne(e):n===`ru-RU`?ere(e):n===`zh-TW`?tre(e):nre(e)}),ire=()=>`IP Whitelist (Optional)`,are=()=>`IP Whitelist (Optional)`,ore=()=>`IP Whitelist (Optional)`,sre=()=>`IP Whitelist (Optional)`,cre=()=>`IP 白名單(選填)`,lre=()=>`IP 白名单(选填)`,ure=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ire(e):n===`ja-JP`?are(e):n===`ko-KR`?ore(e):n===`ru-RU`?sre(e):n===`zh-TW`?cre(e):lre(e)}),dre=()=>`⚠️ Secret Key is shown only once, please save it immediately`,fre=()=>`⚠️ Secret Key is shown only once, please save it immediately`,pre=()=>`⚠️ Secret Key is shown only once, please save it immediately`,mre=()=>`⚠️ Secret Key is shown only once, please save it immediately`,hre=()=>`⚠️ Secret Key,僅展示一次,請立即儲存`,gre=()=>`⚠️ Secret Key,仅展示一次,请立即保存`,_re=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dre(e):n===`ja-JP`?fre(e):n===`ko-KR`?pre(e):n===`ru-RU`?mre(e):n===`zh-TW`?hre(e):gre(e)}),vre=()=>`Close`,yre=()=>`Close`,bre=()=>`Close`,xre=()=>`Close`,Sre=()=>`關閉`,Cre=()=>`关闭`,wre=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vre(e):n===`ja-JP`?yre(e):n===`ko-KR`?bre(e):n===`ru-RU`?xre(e):n===`zh-TW`?Sre(e):Cre(e)}),Tre=()=>`Save Changes`,Ere=()=>`Save Changes`,Dre=()=>`Save Changes`,Ore=()=>`Save Changes`,kre=()=>`儲存修改`,Are=()=>`保存修改`,jre=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Tre(e):n===`ja-JP`?Ere(e):n===`ko-KR`?Dre(e):n===`ru-RU`?Ore(e):n===`zh-TW`?kre(e):Are(e)}),Mre=()=>`Create Key`,Nre=()=>`Create Key`,Pre=()=>`Create Key`,Fre=()=>`Create Key`,Ire=()=>`建立 Key`,Lre=()=>`创建 Key`,Rre=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Mre(e):n===`ja-JP`?Nre(e):n===`ko-KR`?Pre(e):n===`ru-RU`?Fre(e):n===`zh-TW`?Ire(e):Lre(e)}),zre=()=>`API Key updated successfully`,Bre=()=>`API Key updated successfully`,Vre=()=>`API Key updated successfully`,Hre=()=>`API Key updated successfully`,Ure=()=>`API Key 更新成功`,Wre=()=>`API Key 更新成功`,Gre=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zre(e):n===`ja-JP`?Bre(e):n===`ko-KR`?Vre(e):n===`ru-RU`?Hre(e):n===`zh-TW`?Ure(e):Wre(e)}),Kre=()=>`API Key created successfully`,qre=()=>`API Key created successfully`,Jre=()=>`API Key created successfully`,Yre=()=>`API Key created successfully`,Xre=()=>`API Key 建立成功`,Zre=()=>`API Key 创建成功`,Qre=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Kre(e):n===`ja-JP`?qre(e):n===`ko-KR`?Jre(e):n===`ru-RU`?Yre(e):n===`zh-TW`?Xre(e):Zre(e)}),$re=()=>`Please enter a name`,eie=()=>`Please enter a name`,tie=()=>`Please enter a name`,nie=()=>`Please enter a name`,rie=()=>`請輸入名稱`,iie=()=>`请输入名称`,aie=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$re(e):n===`ja-JP`?eie(e):n===`ko-KR`?tie(e):n===`ru-RU`?nie(e):n===`zh-TW`?rie(e):iie(e)}),oie=e=>`${e?.action} succeeded`,sie=e=>`${e?.action} succeeded`,cie=e=>`${e?.action} succeeded`,lie=e=>`${e?.action} succeeded`,uie=e=>`${e?.action}成功`,die=e=>`${e?.action}成功`,fie=((e,t={})=>{let n=t.locale??m();return n===`en-US`?oie(e):n===`ja-JP`?sie(e):n===`ko-KR`?cie(e):n===`ru-RU`?lie(e):n===`zh-TW`?uie(e):die(e)}),pie=()=>`Please enter your current password`,mie=()=>`Please enter your current password`,hie=()=>`Please enter your current password`,gie=()=>`Please enter your current password`,_ie=()=>`請輸入當前密碼`,vie=()=>`请输入当前密码`,yie=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pie(e):n===`ja-JP`?mie(e):n===`ko-KR`?hie(e):n===`ru-RU`?gie(e):n===`zh-TW`?_ie(e):vie(e)}),bie=()=>`New password must be at least 8 characters`,xie=()=>`New password must be at least 8 characters`,Sie=()=>`New password must be at least 8 characters`,Cie=()=>`New password must be at least 8 characters`,wie=()=>`新密碼至少 8 位`,Tie=()=>`新密码至少 8 位`,Eie=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bie(e):n===`ja-JP`?xie(e):n===`ko-KR`?Sie(e):n===`ru-RU`?Cie(e):n===`zh-TW`?wie(e):Tie(e)}),Die=()=>`Please confirm your new password`,Oie=()=>`Please confirm your new password`,kie=()=>`Please confirm your new password`,Aie=()=>`Please confirm your new password`,jie=()=>`請確認新密碼`,Mie=()=>`请确认新密码`,Nie=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Die(e):n===`ja-JP`?Oie(e):n===`ko-KR`?kie(e):n===`ru-RU`?Aie(e):n===`zh-TW`?jie(e):Mie(e)}),Pie=()=>`The two passwords do not match`,Fie=()=>`The two passwords do not match`,Iie=()=>`The two passwords do not match`,Lie=()=>`The two passwords do not match`,Rie=()=>`兩次輸入的密碼不一致`,zie=()=>`两次输入的密码不一致`,Bie=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Pie(e):n===`ja-JP`?Fie(e):n===`ko-KR`?Iie(e):n===`ru-RU`?Lie(e):n===`zh-TW`?Rie(e):zie(e)}),Vie=()=>`Password updated successfully`,Hie=()=>`Password updated successfully`,Uie=()=>`Password updated successfully`,Wie=()=>`Password updated successfully`,Gie=()=>`密碼修改成功`,Kie=()=>`密码修改成功`,qie=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Vie(e):n===`ja-JP`?Hie(e):n===`ko-KR`?Uie(e):n===`ru-RU`?Wie(e):n===`zh-TW`?Gie(e):Kie(e)}),Jie=()=>`Current password`,Yie=()=>`Current password`,Xie=()=>`Current password`,Zie=()=>`Current password`,Qie=()=>`當前密碼`,$ie=()=>`当前密码`,eae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Jie(e):n===`ja-JP`?Yie(e):n===`ko-KR`?Xie(e):n===`ru-RU`?Zie(e):n===`zh-TW`?Qie(e):$ie(e)}),tae=()=>`Enter current password`,nae=()=>`Enter current password`,rae=()=>`Enter current password`,iae=()=>`Enter current password`,aae=()=>`輸入當前密碼`,oae=()=>`输入当前密码`,sae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tae(e):n===`ja-JP`?nae(e):n===`ko-KR`?rae(e):n===`ru-RU`?iae(e):n===`zh-TW`?aae(e):oae(e)}),cae=()=>`New password`,lae=()=>`New password`,uae=()=>`New password`,dae=()=>`New password`,fae=()=>`新密碼`,pae=()=>`新密码`,mae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cae(e):n===`ja-JP`?lae(e):n===`ko-KR`?uae(e):n===`ru-RU`?dae(e):n===`zh-TW`?fae(e):pae(e)}),hae=()=>`At least 8 characters`,gae=()=>`At least 8 characters`,_ae=()=>`At least 8 characters`,vae=()=>`At least 8 characters`,yae=()=>`至少 8 位`,bae=()=>`至少 8 位`,xae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hae(e):n===`ja-JP`?gae(e):n===`ko-KR`?_ae(e):n===`ru-RU`?vae(e):n===`zh-TW`?yae(e):bae(e)}),Sae=()=>`Confirm new password`,Cae=()=>`Confirm new password`,wae=()=>`Confirm new password`,Tae=()=>`Confirm new password`,Eae=()=>`確認新密碼`,Dae=()=>`确认新密码`,Oae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Sae(e):n===`ja-JP`?Cae(e):n===`ko-KR`?wae(e):n===`ru-RU`?Tae(e):n===`zh-TW`?Eae(e):Dae(e)}),kae=()=>`Enter new password again`,Aae=()=>`Enter new password again`,jae=()=>`Enter new password again`,Mae=()=>`Enter new password again`,Nae=()=>`再次輸入新密碼`,Pae=()=>`再次输入新密码`,Fae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kae(e):n===`ja-JP`?Aae(e):n===`ko-KR`?jae(e):n===`ru-RU`?Mae(e):n===`zh-TW`?Nae(e):Pae(e)}),Iae=()=>`Saving…`,Lae=()=>`Saving…`,Rae=()=>`Saving…`,zae=()=>`Saving…`,Bae=()=>`儲存中…`,Vae=()=>`保存中…`,Hae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Iae(e):n===`ja-JP`?Lae(e):n===`ko-KR`?Rae(e):n===`ru-RU`?zae(e):n===`zh-TW`?Bae(e):Vae(e)}),Uae=()=>`Save changes`,Wae=()=>`Save changes`,Gae=()=>`Save changes`,Kae=()=>`Save changes`,qae=()=>`儲存修改`,Jae=()=>`保存修改`,Yae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Uae(e):n===`ja-JP`?Wae(e):n===`ko-KR`?Gae(e):n===`ru-RU`?Kae(e):n===`zh-TW`?qae(e):Jae(e)}),Xae=()=>`System Settings`,Zae=()=>`System Settings`,Qae=()=>`System Settings`,$ae=()=>`System Settings`,eoe=()=>`系統配置`,toe=()=>`系统配置`,noe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Xae(e):n===`ja-JP`?Zae(e):n===`ko-KR`?Qae(e):n===`ru-RU`?$ae(e):n===`zh-TW`?eoe(e):toe(e)}),roe=()=>`Manage checkout basics, Telegram notifications, exchange rate strategy, and payment parameters in one place.`,ioe=()=>`Manage checkout basics, Telegram notifications, exchange rate strategy, and payment parameters in one place.`,aoe=()=>`Manage checkout basics, Telegram notifications, exchange rate strategy, and payment parameters in one place.`,ooe=()=>`Manage checkout basics, Telegram notifications, exchange rate strategy, and payment parameters in one place.`,soe=()=>`集中管理收銀臺基礎配置、Telegram 通知、匯率策略與收款引數。`,coe=()=>`集中管理收银台基础配置、Telegram 通知、汇率策略与收款参数。`,loe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?roe(e):n===`ja-JP`?ioe(e):n===`ko-KR`?aoe(e):n===`ru-RU`?ooe(e):n===`zh-TW`?soe(e):coe(e)}),uoe=()=>`Configure checkout display information.`,doe=()=>`Configure checkout display information.`,foe=()=>`Configure checkout display information.`,poe=()=>`Configure checkout display information.`,moe=()=>`配置收銀臺展示資訊。`,hoe=()=>`配置收银台展示信息。`,goe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?uoe(e):n===`ja-JP`?doe(e):n===`ko-KR`?foe(e):n===`ru-RU`?poe(e):n===`zh-TW`?moe(e):hoe(e)}),_oe=()=>`Please enter the checkout name`,voe=()=>`Please enter the checkout name`,yoe=()=>`Please enter the checkout name`,boe=()=>`Please enter the checkout name`,xoe=()=>`請輸入收銀臺名稱`,Soe=()=>`请输入收银台名称`,Coe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_oe(e):n===`ja-JP`?voe(e):n===`ko-KR`?yoe(e):n===`ru-RU`?boe(e):n===`zh-TW`?xoe(e):Soe(e)}),woe=()=>`Please enter a valid logo URL`,Toe=()=>`Please enter a valid logo URL`,Eoe=()=>`Please enter a valid logo URL`,Doe=()=>`Please enter a valid logo URL`,Ooe=()=>`請輸入合法 Logo 地址`,koe=()=>`请输入有效 Logo 地址`,Aoe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?woe(e):n===`ja-JP`?Toe(e):n===`ko-KR`?Eoe(e):n===`ru-RU`?Doe(e):n===`zh-TW`?Ooe(e):koe(e)}),joe=()=>`Please enter the site title`,Moe=()=>`Please enter the site title`,Noe=()=>`Please enter the site title`,Poe=()=>`Please enter the site title`,Foe=()=>`請輸入網站標題`,Ioe=()=>`请输入网站标题`,Loe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?joe(e):n===`ja-JP`?Moe(e):n===`ko-KR`?Noe(e):n===`ru-RU`?Poe(e):n===`zh-TW`?Foe(e):Ioe(e)}),Roe=()=>`Please enter a valid support URL`,zoe=()=>`Please enter a valid support URL`,Boe=()=>`Please enter a valid support URL`,Voe=()=>`Please enter a valid support URL`,Hoe=()=>`請輸入合法客服連結`,Uoe=()=>`请输入有效客服链接`,Woe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Roe(e):n===`ja-JP`?zoe(e):n===`ko-KR`?Boe(e):n===`ru-RU`?Voe(e):n===`zh-TW`?Hoe(e):Uoe(e)}),Goe=()=>`Base settings reset to defaults`,Koe=()=>`Base settings reset to defaults`,qoe=()=>`Base settings reset to defaults`,Joe=()=>`Base settings reset to defaults`,Yoe=()=>`基礎配置已重置為預設值`,Xoe=()=>`基础配置已重置为默认值`,Zoe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Goe(e):n===`ja-JP`?Koe(e):n===`ko-KR`?qoe(e):n===`ru-RU`?Joe(e):n===`zh-TW`?Yoe(e):Xoe(e)}),Qoe=()=>`Base settings saved`,$oe=()=>`Base settings saved`,ese=()=>`Base settings saved`,tse=()=>`Base settings saved`,nse=()=>`基礎配置已儲存`,rse=()=>`基础配置已保存`,ise=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Qoe(e):n===`ja-JP`?$oe(e):n===`ko-KR`?ese(e):n===`ru-RU`?tse(e):n===`zh-TW`?nse(e):rse(e)}),ase=()=>`Checkout name`,ose=()=>`Checkout name`,sse=()=>`Checkout name`,cse=()=>`Checkout name`,lse=()=>`收銀臺名稱`,use=()=>`收银台名称`,dse=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ase(e):n===`ja-JP`?ose(e):n===`ko-KR`?sse(e):n===`ru-RU`?cse(e):n===`zh-TW`?lse(e):use(e)}),fse=()=>`Logo URL`,pse=()=>`Logo URL`,mse=()=>`Logo URL`,hse=()=>`Logo URL`,gse=()=>`Logo URL`,_se=()=>`Logo URL`,vse=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fse(e):n===`ja-JP`?pse(e):n===`ko-KR`?mse(e):n===`ru-RU`?hse(e):n===`zh-TW`?gse(e):_se(e)}),yse=()=>`Site title`,bse=()=>`Site title`,xse=()=>`Site title`,Sse=()=>`Site title`,Cse=()=>`網站標題`,wse=()=>`网站标题`,Tse=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yse(e):n===`ja-JP`?bse(e):n===`ko-KR`?xse(e):n===`ru-RU`?Sse(e):n===`zh-TW`?Cse(e):wse(e)}),Ese=()=>`Support URL`,Dse=()=>`Support URL`,Ose=()=>`Support URL`,kse=()=>`Support URL`,Ase=()=>`客服連結`,jse=()=>`客服链接`,Mse=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ese(e):n===`ja-JP`?Dse(e):n===`ko-KR`?Ose(e):n===`ru-RU`?kse(e):n===`zh-TW`?Ase(e):jse(e)}),Nse=()=>`Background color`,Pse=()=>`Background color`,Fse=()=>`Background color`,Ise=()=>`Background color`,Lse=()=>`背景顏色`,Rse=()=>`背景颜色`,zse=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Nse(e):n===`ja-JP`?Pse(e):n===`ko-KR`?Fse(e):n===`ru-RU`?Ise(e):n===`zh-TW`?Lse(e):Rse(e)}),Bse=()=>`Supports rgba() and hex alpha values. Leave empty to use the default background.`,Vse=()=>`Supports rgba() and hex alpha values. Leave empty to use the default background.`,Hse=()=>`Supports rgba() and hex alpha values. Leave empty to use the default background.`,Use=()=>`Supports rgba() and hex alpha values. Leave empty to use the default background.`,Wse=()=>`支援 rgba() 和帶透明度的 hex 值。留空則使用預設背景。`,Gse=()=>`支持 rgba() 和带透明度的 hex 值。留空则使用默认背景。`,Kse=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Bse(e):n===`ja-JP`?Vse(e):n===`ko-KR`?Hse(e):n===`ru-RU`?Use(e):n===`zh-TW`?Wse(e):Gse(e)}),qse=()=>`Please enter a valid color`,Jse=()=>`Please enter a valid color`,Yse=()=>`Please enter a valid color`,Xse=()=>`Please enter a valid color`,Zse=()=>`請輸入有效顏色`,Qse=()=>`请输入有效颜色`,$se=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qse(e):n===`ja-JP`?Jse(e):n===`ko-KR`?Yse(e):n===`ru-RU`?Xse(e):n===`zh-TW`?Zse(e):Qse(e)}),ece=()=>`Background image URL`,tce=()=>`Background image URL`,nce=()=>`Background image URL`,rce=()=>`Background image URL`,ice=()=>`背景圖 URL`,ace=()=>`背景图 URL`,oce=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ece(e):n===`ja-JP`?tce(e):n===`ko-KR`?nce(e):n===`ru-RU`?rce(e):n===`zh-TW`?ice(e):ace(e)}),sce=()=>`Please enter a valid background image URL`,cce=()=>`Please enter a valid background image URL`,lce=()=>`Please enter a valid background image URL`,uce=()=>`Please enter a valid background image URL`,dce=()=>`請輸入有效背景圖地址`,fce=()=>`请输入有效背景图地址`,pce=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sce(e):n===`ja-JP`?cce(e):n===`ko-KR`?lce(e):n===`ru-RU`?uce(e):n===`zh-TW`?dce(e):fce(e)}),mce=()=>`Save base settings`,hce=()=>`Save base settings`,gce=()=>`Save base settings`,_ce=()=>`Save base settings`,vce=()=>`儲存基礎配置`,yce=()=>`保存基础配置`,bce=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mce(e):n===`ja-JP`?hce(e):n===`ko-KR`?gce(e):n===`ru-RU`?_ce(e):n===`zh-TW`?vce(e):yce(e)}),xce=()=>`Reset to defaults`,Sce=()=>`Reset to defaults`,Cce=()=>`Reset to defaults`,wce=()=>`Reset to defaults`,Tce=()=>`重置為預設值`,Ece=()=>`重置为默认值`,Dce=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xce(e):n===`ja-JP`?Sce(e):n===`ko-KR`?Cce(e):n===`ru-RU`?wce(e):n===`zh-TW`?Tce(e):Ece(e)}),Oce=()=>`System Logs`,kce=()=>`System Logs`,Ace=()=>`System Logs`,jce=()=>`System Logs`,Mce=()=>`系統日誌`,Nce=()=>`系统日志`,Pce=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Oce(e):n===`ja-JP`?kce(e):n===`ko-KR`?Ace(e):n===`ru-RU`?jce(e):n===`zh-TW`?Mce(e):Nce(e)}),Fce=()=>`Configure runtime log output.`,Ice=()=>`Configure runtime log output.`,Lce=()=>`Configure runtime log output.`,Rce=()=>`Configure runtime log output.`,zce=()=>`配置執行時日誌輸出。`,Bce=()=>`配置运行时日志输出。`,Vce=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Fce(e):n===`ja-JP`?Ice(e):n===`ko-KR`?Lce(e):n===`ru-RU`?Rce(e):n===`zh-TW`?zce(e):Bce(e)}),Hce=()=>`System log settings saved`,Uce=()=>`System log settings saved`,Wce=()=>`System log settings saved`,Gce=()=>`System log settings saved`,Kce=()=>`系統日誌配置已儲存`,qce=()=>`系统日志配置已保存`,Jce=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hce(e):n===`ja-JP`?Uce(e):n===`ko-KR`?Wce(e):n===`ru-RU`?Gce(e):n===`zh-TW`?Kce(e):qce(e)}),Yce=()=>`System log settings reset to defaults`,Xce=()=>`System log settings reset to defaults`,Zce=()=>`System log settings reset to defaults`,Qce=()=>`System log settings reset to defaults`,$ce=()=>`系統日誌配置已重置為預設值`,ele=()=>`系统日志配置已重置为默认值`,tle=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yce(e):n===`ja-JP`?Xce(e):n===`ko-KR`?Zce(e):n===`ru-RU`?Qce(e):n===`zh-TW`?$ce(e):ele(e)}),nle=()=>`Save system log settings`,rle=()=>`Save system log settings`,ile=()=>`Save system log settings`,ale=()=>`Save system log settings`,ole=()=>`儲存系統日誌配置`,sle=()=>`保存系统日志配置`,cle=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nle(e):n===`ja-JP`?rle(e):n===`ko-KR`?ile(e):n===`ru-RU`?ale(e):n===`zh-TW`?ole(e):sle(e)}),lle=()=>`Reset to defaults`,ule=()=>`Reset to defaults`,dle=()=>`Reset to defaults`,fle=()=>`Reset to defaults`,ple=()=>`重置為預設值`,mle=()=>`重置为默认值`,hle=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lle(e):n===`ja-JP`?ule(e):n===`ko-KR`?dle(e):n===`ru-RU`?fle(e):n===`zh-TW`?ple(e):mle(e)}),gle=()=>`Used for payment notifications and exception alerts.`,_le=()=>`Used for payment notifications and exception alerts.`,vle=()=>`Used for payment notifications and exception alerts.`,yle=()=>`Used for payment notifications and exception alerts.`,ble=()=>`用於收款通知與異常提醒推送。`,xle=()=>`用于收款通知与异常提醒推送。`,Sle=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gle(e):n===`ja-JP`?_le(e):n===`ko-KR`?vle(e):n===`ru-RU`?yle(e):n===`zh-TW`?ble(e):xle(e)}),Cle=()=>`Please enter the Bot Token`,wle=()=>`Please enter the Bot Token`,Tle=()=>`Please enter the Bot Token`,Ele=()=>`Please enter the Bot Token`,Dle=()=>`請輸入 Bot Token`,Ole=()=>`请输入 Bot Token`,kle=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Cle(e):n===`ja-JP`?wle(e):n===`ko-KR`?Tle(e):n===`ru-RU`?Ele(e):n===`zh-TW`?Dle(e):Ole(e)}),Ale=()=>`Please enter the Chat ID`,jle=()=>`Please enter the Chat ID`,Mle=()=>`Please enter the Chat ID`,Nle=()=>`Please enter the Chat ID`,Ple=()=>`請輸入 Chat ID`,Fle=()=>`请输入 Chat ID`,Ile=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ale(e):n===`ja-JP`?jle(e):n===`ko-KR`?Mle(e):n===`ru-RU`?Nle(e):n===`zh-TW`?Ple(e):Fle(e)}),Lle=()=>`Telegram settings saved`,Rle=()=>`Telegram settings saved`,zle=()=>`Telegram settings saved`,Ble=()=>`Telegram settings saved`,Vle=()=>`Telegram 配置已儲存`,Hle=()=>`Telegram 配置已保存`,Ule=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Lle(e):n===`ja-JP`?Rle(e):n===`ko-KR`?zle(e):n===`ru-RU`?Ble(e):n===`zh-TW`?Vle(e):Hle(e)}),Wle=()=>`Bot Token`,Gle=()=>`Bot Token`,Kle=()=>`Bot Token`,qle=()=>`Bot Token`,Jle=()=>`Bot Token`,Yle=()=>`Bot Token`,Xle=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Wle(e):n===`ja-JP`?Gle(e):n===`ko-KR`?Kle(e):n===`ru-RU`?qle(e):n===`zh-TW`?Jle(e):Yle(e)}),Zle=()=>`Chat ID`,Qle=()=>`Chat ID`,$le=()=>`Chat ID`,eue=()=>`Chat ID`,tue=()=>`Chat ID`,nue=()=>`Chat ID`,rue=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Zle(e):n===`ja-JP`?Qle(e):n===`ko-KR`?$le(e):n===`ru-RU`?eue(e):n===`zh-TW`?tue(e):nue(e)}),iue=()=>`Payment notification switch`,aue=()=>`Payment notification switch`,oue=()=>`Payment notification switch`,sue=()=>`Payment notification switch`,cue=()=>`收款通知開關`,lue=()=>`收款通知开关`,uue=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?iue(e):n===`ja-JP`?aue(e):n===`ko-KR`?oue(e):n===`ru-RU`?sue(e):n===`zh-TW`?cue(e):lue(e)}),due=()=>`Abnormal notification switch`,fue=()=>`Abnormal notification switch`,pue=()=>`Abnormal notification switch`,mue=()=>`Abnormal notification switch`,hue=()=>`異常通知開關`,gue=()=>`异常通知开关`,_ue=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?due(e):n===`ja-JP`?fue(e):n===`ko-KR`?pue(e):n===`ru-RU`?mue(e):n===`zh-TW`?hue(e):gue(e)}),vue=()=>`Save Telegram settings`,yue=()=>`Save Telegram settings`,bue=()=>`Save Telegram settings`,xue=()=>`Save Telegram settings`,Sue=()=>`儲存 Telegram 配置`,Cue=()=>`保存 Telegram 配置`,wue=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vue(e):n===`ja-JP`?yue(e):n===`ko-KR`?bue(e):n===`ru-RU`?xue(e):n===`zh-TW`?Sue(e):Cue(e)}),Tue=()=>`Reset to defaults`,Eue=()=>`Reset to defaults`,Due=()=>`Reset to defaults`,Oue=()=>`Reset to defaults`,kue=()=>`重置為預設值`,Aue=()=>`重置为默认值`,jue=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Tue(e):n===`ja-JP`?Eue(e):n===`ko-KR`?Due(e):n===`ru-RU`?Oue(e):n===`zh-TW`?kue(e):Aue(e)}),Mue=()=>`Telegram settings reset to defaults`,Nue=()=>`Telegram settings reset to defaults`,Pue=()=>`Telegram settings reset to defaults`,Fue=()=>`Telegram settings reset to defaults`,Iue=()=>`Telegram 配置已重置為預設值`,Lue=()=>`Telegram 配置已重置为默认值`,Rue=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Mue(e):n===`ja-JP`?Nue(e):n===`ko-KR`?Pue(e):n===`ru-RU`?Fue(e):n===`zh-TW`?Iue(e):Lue(e)}),zue=()=>`Configure payment amount precision and exchange rate strategy.`,Bue=()=>`Configure payment amount precision and exchange rate strategy.`,Vue=()=>`Configure payment amount precision and exchange rate strategy.`,Hue=()=>`Configure payment amount precision and exchange rate strategy.`,Uue=()=>`配置支付金額精度與匯率策略。`,Wue=()=>`配置支付金额精度与汇率策略。`,Gue=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zue(e):n===`ja-JP`?Bue(e):n===`ko-KR`?Vue(e):n===`ru-RU`?Hue(e):n===`zh-TW`?Uue(e):Wue(e)}),Kue=()=>`Amount precision must be an integer from 2 to 6`,que=()=>`Amount precision must be an integer from 2 to 6`,Jue=()=>`Amount precision must be an integer from 2 to 6`,Yue=()=>`Amount precision must be an integer from 2 to 6`,Xue=()=>`金額精度必須是 2 到 6 的整數`,Zue=()=>`金额精度必须是 2 到 6 的整数`,Que=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Kue(e):n===`ja-JP`?que(e):n===`ko-KR`?Jue(e):n===`ru-RU`?Yue(e):n===`zh-TW`?Xue(e):Zue(e)}),$ue=()=>`Please enter a valid API URL`,ede=()=>`Please enter a valid API URL`,tde=()=>`Please enter a valid API URL`,nde=()=>`Please enter a valid API URL`,rde=()=>`請輸入合法 API 地址`,ide=()=>`请输入有效 API 地址`,ade=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$ue(e):n===`ja-JP`?ede(e):n===`ko-KR`?tde(e):n===`ru-RU`?nde(e):n===`zh-TW`?rde(e):ide(e)}),ode=()=>`Please enter a valid exchange rate`,sde=()=>`Please enter a valid exchange rate`,cde=()=>`Please enter a valid exchange rate`,lde=()=>`Please enter a valid exchange rate`,ude=()=>`請輸入有效匯率`,dde=()=>`请输入有效汇率`,fde=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ode(e):n===`ja-JP`?sde(e):n===`ko-KR`?cde(e):n===`ru-RU`?lde(e):n===`zh-TW`?ude(e):dde(e)}),pde=()=>`Payment settings reset to defaults`,mde=()=>`Payment settings reset to defaults`,hde=()=>`Payment settings reset to defaults`,gde=()=>`Payment settings reset to defaults`,_de=()=>`支付配置已重置為預設值`,vde=()=>`支付配置已重置为默认值`,yde=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pde(e):n===`ja-JP`?mde(e):n===`ko-KR`?hde(e):n===`ru-RU`?gde(e):n===`zh-TW`?_de(e):vde(e)}),bde=()=>`Payment settings saved`,xde=()=>`Payment settings saved`,Sde=()=>`Payment settings saved`,Cde=()=>`Payment settings saved`,wde=()=>`支付配置已儲存`,Tde=()=>`支付配置已保存`,Ede=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bde(e):n===`ja-JP`?xde(e):n===`ko-KR`?Sde(e):n===`ru-RU`?Cde(e):n===`zh-TW`?wde(e):Tde(e)}),Dde=()=>`Amount precision`,Ode=()=>`Amount precision`,kde=()=>`Amount precision`,Ade=()=>`Amount precision`,jde=()=>`金額精度`,Mde=()=>`金额精度`,Nde=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Dde(e):n===`ja-JP`?Ode(e):n===`ko-KR`?kde(e):n===`ru-RU`?Ade(e):n===`zh-TW`?jde(e):Mde(e)}),Pde=()=>`Exchange rate API URL`,Fde=()=>`Exchange rate API URL`,Ide=()=>`Exchange rate API URL`,Lde=()=>`Exchange rate API URL`,Rde=()=>`匯率 API 地址`,zde=()=>`汇率 API 地址`,Bde=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Pde(e):n===`ja-JP`?Fde(e):n===`ko-KR`?Ide(e):n===`ru-RU`?Lde(e):n===`zh-TW`?Rde(e):zde(e)}),Vde=()=>`Set the API endpoint used to fetch exchange rates.`,Hde=()=>`Set the API endpoint used to fetch exchange rates.`,Ude=()=>`Set the API endpoint used to fetch exchange rates.`,Wde=()=>`Set the API endpoint used to fetch exchange rates.`,Gde=()=>`設定用於取得匯率的 API 介面地址。`,Kde=()=>`设置用于获取汇率的 API 接口地址。`,qde=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Vde(e):n===`ja-JP`?Hde(e):n===`ko-KR`?Ude(e):n===`ru-RU`?Wde(e):n===`zh-TW`?Gde(e):Kde(e)}),Jde=()=>`View docs`,Yde=()=>`View docs`,Xde=()=>`View docs`,Zde=()=>`View docs`,Qde=()=>`查看文件`,$de=()=>`查看文档`,efe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Jde(e):n===`ja-JP`?Yde(e):n===`ko-KR`?Xde(e):n===`ru-RU`?Zde(e):n===`zh-TW`?Qde(e):$de(e)}),tfe=()=>`Runtime log level`,nfe=()=>`Runtime log level`,rfe=()=>`Runtime log level`,ife=()=>`Runtime log level`,afe=()=>`執行日誌級別`,ofe=()=>`运行日志级别`,sfe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tfe(e):n===`ja-JP`?nfe(e):n===`ko-KR`?rfe(e):n===`ru-RU`?ife(e):n===`zh-TW`?afe(e):ofe(e)}),cfe=()=>`Controls backend runtime logging. Deleting this setting resets it to Error.`,lfe=()=>`Controls backend runtime logging. Deleting this setting resets it to Error.`,ufe=()=>`Controls backend runtime logging. Deleting this setting resets it to Error.`,dfe=()=>`Controls backend runtime logging. Deleting this setting resets it to Error.`,ffe=()=>`控制後端執行時日誌輸出。刪除此設定會重設為 Error。`,pfe=()=>`控制后端运行时日志输出。删除该配置会重置为 Error。`,mfe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cfe(e):n===`ja-JP`?lfe(e):n===`ko-KR`?ufe(e):n===`ru-RU`?dfe(e):n===`zh-TW`?ffe(e):pfe(e)}),hfe=()=>`Debug`,gfe=()=>`Debug`,_fe=()=>`Debug`,vfe=()=>`Debug`,yfe=()=>`Debug`,bfe=()=>`Debug`,xfe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hfe(e):n===`ja-JP`?gfe(e):n===`ko-KR`?_fe(e):n===`ru-RU`?vfe(e):n===`zh-TW`?yfe(e):bfe(e)}),Sfe=()=>`Info`,Cfe=()=>`Info`,wfe=()=>`Info`,Tfe=()=>`Info`,Efe=()=>`Info`,Dfe=()=>`Info`,Ofe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Sfe(e):n===`ja-JP`?Cfe(e):n===`ko-KR`?wfe(e):n===`ru-RU`?Tfe(e):n===`zh-TW`?Efe(e):Dfe(e)}),kfe=()=>`Warn`,Afe=()=>`Warn`,jfe=()=>`Warn`,Mfe=()=>`Warn`,Nfe=()=>`Warn`,Pfe=()=>`Warn`,Ffe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kfe(e):n===`ja-JP`?Afe(e):n===`ko-KR`?jfe(e):n===`ru-RU`?Mfe(e):n===`zh-TW`?Nfe(e):Pfe(e)}),Ife=()=>`Error`,Lfe=()=>`Error`,Rfe=()=>`Error`,zfe=()=>`Error`,Bfe=()=>`Error`,Vfe=()=>`Error`,Hfe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ife(e):n===`ja-JP`?Lfe(e):n===`ko-KR`?Rfe(e):n===`ru-RU`?zfe(e):n===`zh-TW`?Bfe(e):Vfe(e)}),Ufe=()=>`Forced rate table`,Wfe=()=>`Forced rate table`,Gfe=()=>`Forced rate table`,Kfe=()=>`Forced rate table`,qfe=()=>`強制匯率表`,Jfe=()=>`强制汇率表`,Yfe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ufe(e):n===`ja-JP`?Wfe(e):n===`ko-KR`?Gfe(e):n===`ru-RU`?Kfe(e):n===`zh-TW`?qfe(e):Jfe(e)}),Xfe=()=>`Preview`,Zfe=()=>`Preview`,Qfe=()=>`Preview`,$fe=()=>`Preview`,epe=()=>`預覽`,tpe=()=>`预览`,npe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Xfe(e):n===`ja-JP`?Zfe(e):n===`ko-KR`?Qfe(e):n===`ru-RU`?$fe(e):n===`zh-TW`?epe(e):tpe(e)}),rpe=()=>`Review the parsed currency and coin rates before saving.`,ipe=()=>`Review the parsed currency and coin rates before saving.`,ape=()=>`Review the parsed currency and coin rates before saving.`,ope=()=>`Review the parsed currency and coin rates before saving.`,spe=()=>`儲存前查看解析後的法幣與代幣匯率。`,cpe=()=>`保存前查看解析后的法币与代币汇率。`,lpe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rpe(e):n===`ja-JP`?ipe(e):n===`ko-KR`?ape(e):n===`ru-RU`?ope(e):n===`zh-TW`?spe(e):cpe(e)}),upe=()=>`Currency`,dpe=()=>`Currency`,fpe=()=>`Currency`,ppe=()=>`Currency`,mpe=()=>`法幣`,hpe=()=>`法币`,gpe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?upe(e):n===`ja-JP`?dpe(e):n===`ko-KR`?fpe(e):n===`ru-RU`?ppe(e):n===`zh-TW`?mpe(e):hpe(e)}),_pe=()=>`Coin`,vpe=()=>`Coin`,ype=()=>`Coin`,bpe=()=>`Coin`,xpe=()=>`代幣`,Spe=()=>`代币`,Cpe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_pe(e):n===`ja-JP`?vpe(e):n===`ko-KR`?ype(e):n===`ru-RU`?bpe(e):n===`zh-TW`?xpe(e):Spe(e)}),wpe=()=>`Rate`,Tpe=()=>`Rate`,Epe=()=>`Rate`,Dpe=()=>`Rate`,Ope=()=>`匯率`,kpe=()=>`汇率`,Ape=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wpe(e):n===`ja-JP`?Tpe(e):n===`ko-KR`?Epe(e):n===`ru-RU`?Dpe(e):n===`zh-TW`?Ope(e):kpe(e)}),jpe=()=>`Reverse preview`,Mpe=()=>`Reverse preview`,Npe=()=>`Reverse preview`,Ppe=()=>`Reverse preview`,Fpe=()=>`反向預覽`,Ipe=()=>`反向预览`,Lpe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jpe(e):n===`ja-JP`?Mpe(e):n===`ko-KR`?Npe(e):n===`ru-RU`?Ppe(e):n===`zh-TW`?Fpe(e):Ipe(e)}),Rpe=()=>`Original preview`,zpe=()=>`Original preview`,Bpe=()=>`Original preview`,Vpe=()=>`Original preview`,Hpe=()=>`原始預覽`,Upe=()=>`原始预览`,Wpe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Rpe(e):n===`ja-JP`?zpe(e):n===`ko-KR`?Bpe(e):n===`ru-RU`?Vpe(e):n===`zh-TW`?Hpe(e):Upe(e)}),Gpe=()=>`No forced rates`,Kpe=()=>`No forced rates`,qpe=()=>`No forced rates`,Jpe=()=>`No forced rates`,Ype=()=>`暫無強制匯率`,Xpe=()=>`暂无强制汇率`,Zpe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Gpe(e):n===`ja-JP`?Kpe(e):n===`ko-KR`?qpe(e):n===`ru-RU`?Jpe(e):n===`zh-TW`?Ype(e):Xpe(e)}),Qpe=()=>`Save payment settings`,$pe=()=>`Save payment settings`,eme=()=>`Save payment settings`,tme=()=>`Save payment settings`,nme=()=>`儲存支付配置`,rme=()=>`保存支付配置`,ime=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Qpe(e):n===`ja-JP`?$pe(e):n===`ko-KR`?eme(e):n===`ru-RU`?tme(e):n===`zh-TW`?nme(e):rme(e)}),ame=()=>`Reset to defaults`,ome=()=>`Reset to defaults`,sme=()=>`Reset to defaults`,cme=()=>`Reset to defaults`,lme=()=>`重置為預設值`,ume=()=>`重置为默认值`,dme=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ame(e):n===`ja-JP`?ome(e):n===`ko-KR`?sme(e):n===`ru-RU`?cme(e):n===`zh-TW`?lme(e):ume(e)}),fme=()=>`Configure the default payment token, fiat currency, and network.`,pme=()=>`Configure the default payment token, fiat currency, and network.`,mme=()=>`Configure the default payment token, fiat currency, and network.`,hme=()=>`Configure the default payment token, fiat currency, and network.`,gme=()=>`配置預設收款代幣、法幣與網路。`,_me=()=>`配置默认收款代币、法币与网络。`,vme=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fme(e):n===`ja-JP`?pme(e):n===`ko-KR`?mme(e):n===`ru-RU`?hme(e):n===`zh-TW`?gme(e):_me(e)}),yme=()=>`Payment settings saved`,bme=()=>`Payment settings saved`,xme=()=>`Payment settings saved`,Sme=()=>`Payment settings saved`,Cme=()=>`收款配置已儲存`,wme=()=>`收款配置已保存`,Tme=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yme(e):n===`ja-JP`?bme(e):n===`ko-KR`?xme(e):n===`ru-RU`?Sme(e):n===`zh-TW`?Cme(e):wme(e)}),Eme=()=>`Save payment settings`,Dme=()=>`Save payment settings`,Ome=()=>`Save payment settings`,kme=()=>`Save payment settings`,Ame=()=>`儲存收款配置`,jme=()=>`保存收款配置`,Mme=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Eme(e):n===`ja-JP`?Dme(e):n===`ko-KR`?Ome(e):n===`ru-RU`?kme(e):n===`zh-TW`?Ame(e):jme(e)}),Nme=()=>`Reset to defaults`,Pme=()=>`Reset to defaults`,Fme=()=>`Reset to defaults`,Ime=()=>`Reset to defaults`,Lme=()=>`重置為預設值`,Rme=()=>`重置为默认值`,zme=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Nme(e):n===`ja-JP`?Pme(e):n===`ko-KR`?Fme(e):n===`ru-RU`?Ime(e):n===`zh-TW`?Lme(e):Rme(e)}),Bme=()=>`EPay settings reset to defaults`,Vme=()=>`EPay settings reset to defaults`,Hme=()=>`EPay settings reset to defaults`,Ume=()=>`EPay settings reset to defaults`,Wme=()=>`EPay 配置已重置為預設值`,Gme=()=>`EPay 配置已重置为默认值`,Kme=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Bme(e):n===`ja-JP`?Vme(e):n===`ko-KR`?Hme(e):n===`ru-RU`?Ume(e):n===`zh-TW`?Wme(e):Gme(e)}),qme=()=>`Fill example`,Jme=()=>`Fill example`,Yme=()=>`Fill example`,Xme=()=>`Fill example`,Zme=()=>`填充示例`,Qme=()=>`填充示例`,$me=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qme(e):n===`ja-JP`?Jme(e):n===`ko-KR`?Yme(e):n===`ru-RU`?Xme(e):n===`zh-TW`?Zme(e):Qme(e)}),ehe=()=>`Fullscreen`,the=()=>`Fullscreen`,nhe=()=>`Fullscreen`,rhe=()=>`Fullscreen`,ihe=()=>`全螢幕`,ahe=()=>`全屏`,ohe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ehe(e):n===`ja-JP`?the(e):n===`ko-KR`?nhe(e):n===`ru-RU`?rhe(e):n===`zh-TW`?ihe(e):ahe(e)}),she=()=>`Fullscreen edit`,che=()=>`Fullscreen edit`,lhe=()=>`Fullscreen edit`,uhe=()=>`Fullscreen edit`,dhe=()=>`全螢幕編輯`,fhe=()=>`全屏编辑`,phe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?she(e):n===`ja-JP`?che(e):n===`ko-KR`?lhe(e):n===`ru-RU`?uhe(e):n===`zh-TW`?dhe(e):fhe(e)}),mhe=()=>`Exit fullscreen`,hhe=()=>`Exit fullscreen`,ghe=()=>`Exit fullscreen`,_he=()=>`Exit fullscreen`,vhe=()=>`退出全螢幕`,yhe=()=>`退出全屏`,bhe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mhe(e):n===`ja-JP`?hhe(e):n===`ko-KR`?ghe(e):n===`ru-RU`?_he(e):n===`zh-TW`?vhe(e):yhe(e)}),xhe=()=>`Edit`,She=()=>`Edit`,Che=()=>`Edit`,whe=()=>`Edit`,The=()=>`編輯`,Ehe=()=>`编辑`,Dhe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xhe(e):n===`ja-JP`?She(e):n===`ko-KR`?Che(e):n===`ru-RU`?whe(e):n===`zh-TW`?The(e):Ehe(e)}),Ohe=()=>`Preview`,khe=()=>`Preview`,Ahe=()=>`Preview`,jhe=()=>`Preview`,Mhe=()=>`預覽`,Nhe=()=>`预览`,Phe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ohe(e):n===`ja-JP`?khe(e):n===`ko-KR`?Ahe(e):n===`ru-RU`?jhe(e):n===`zh-TW`?Mhe(e):Nhe(e)}),Fhe=()=>`Split`,Ihe=()=>`Split`,Lhe=()=>`Split`,Rhe=()=>`Split`,zhe=()=>`分屏`,Bhe=()=>`分屏`,Vhe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Fhe(e):n===`ja-JP`?Ihe(e):n===`ko-KR`?Lhe(e):n===`ru-RU`?Rhe(e):n===`zh-TW`?zhe(e):Bhe(e)}),Hhe=()=>`View help`,Uhe=()=>`View help`,Whe=()=>`View help`,Ghe=()=>`View help`,Khe=()=>`查看說明`,qhe=()=>`查看说明`,Jhe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hhe(e):n===`ja-JP`?Uhe(e):n===`ko-KR`?Whe(e):n===`ru-RU`?Ghe(e):n===`zh-TW`?Khe(e):qhe(e)}),Yhe=()=>`Help`,Xhe=()=>`Help`,Zhe=()=>`Help`,Qhe=()=>`Help`,$he=()=>`說明`,ege=()=>`说明`,tge=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yhe(e):n===`ja-JP`?Xhe(e):n===`ko-KR`?Zhe(e):n===`ru-RU`?Qhe(e):n===`zh-TW`?$he(e):ege(e)}),nge=()=>`HTML preview`,rge=()=>`HTML preview`,ige=()=>`HTML preview`,age=()=>`HTML preview`,oge=()=>`HTML 預覽`,sge=()=>`HTML 预览`,cge=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nge(e):n===`ja-JP`?rge(e):n===`ko-KR`?ige(e):n===`ru-RU`?age(e):n===`zh-TW`?oge(e):sge(e)}),lge=()=>`Appearance`,uge=()=>`Appearance`,dge=()=>`Appearance`,fge=()=>`Appearance`,pge=()=>`外觀`,mge=()=>`外观`,hge=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lge(e):n===`ja-JP`?uge(e):n===`ko-KR`?dge(e):n===`ru-RU`?fge(e):n===`zh-TW`?pge(e):mge(e)}),gge=()=>`Customize the app appearance and switch between light and dark themes.`,_ge=()=>`Customize the app appearance and switch between light and dark themes.`,vge=()=>`Customize the app appearance and switch between light and dark themes.`,yge=()=>`Customize the app appearance and switch between light and dark themes.`,bge=()=>`自定義應用外觀,可在淺色與深色主題之間切換。`,xge=()=>`自定义应用外观,可在浅色与深色主题之间切换。`,Sge=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gge(e):n===`ja-JP`?_ge(e):n===`ko-KR`?vge(e):n===`ru-RU`?yge(e):n===`zh-TW`?bge(e):xge(e)}),Cge=()=>`Font`,wge=()=>`Font`,Tge=()=>`Font`,Ege=()=>`Font`,Dge=()=>`字型`,Oge=()=>`字体`,kge=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Cge(e):n===`ja-JP`?wge(e):n===`ko-KR`?Tge(e):n===`ru-RU`?Ege(e):n===`zh-TW`?Dge(e):Oge(e)}),Age=()=>`Set the font you want to use in the dashboard.`,jge=()=>`Set the font you want to use in the dashboard.`,Mge=()=>`Set the font you want to use in the dashboard.`,Nge=()=>`Set the font you want to use in the dashboard.`,Pge=()=>`設定你希望在控制台中使用的字型。`,Fge=()=>`设置你希望在控制台中使用的字体。`,Ige=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Age(e):n===`ja-JP`?jge(e):n===`ko-KR`?Mge(e):n===`ru-RU`?Nge(e):n===`zh-TW`?Pge(e):Fge(e)}),Lge=()=>`Theme`,Rge=()=>`Theme`,zge=()=>`Theme`,Bge=()=>`Theme`,Vge=()=>`主題`,Hge=()=>`主题`,Uge=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Lge(e):n===`ja-JP`?Rge(e):n===`ko-KR`?zge(e):n===`ru-RU`?Bge(e):n===`zh-TW`?Vge(e):Hge(e)}),Wge=()=>`Select the theme for the dashboard.`,Gge=()=>`Select the theme for the dashboard.`,Kge=()=>`Select the theme for the dashboard.`,qge=()=>`Select the theme for the dashboard.`,Jge=()=>`選擇控制台的主題。`,Yge=()=>`选择控制台的主题。`,Xge=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Wge(e):n===`ja-JP`?Gge(e):n===`ko-KR`?Kge(e):n===`ru-RU`?qge(e):n===`zh-TW`?Jge(e):Yge(e)}),Zge=()=>`Update preferences`,Qge=()=>`Update preferences`,$ge=()=>`Update preferences`,e_e=()=>`Update preferences`,t_e=()=>`更新偏好設定`,n_e=()=>`更新偏好设置`,r_e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Zge(e):n===`ja-JP`?Qge(e):n===`ko-KR`?$ge(e):n===`ru-RU`?e_e(e):n===`zh-TW`?t_e(e):n_e(e)}),i_e=()=>`Display`,a_e=()=>`Display`,o_e=()=>`Display`,s_e=()=>`Display`,c_e=()=>`顯示`,l_e=()=>`显示`,u_e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?i_e(e):n===`ja-JP`?a_e(e):n===`ko-KR`?o_e(e):n===`ru-RU`?s_e(e):n===`zh-TW`?c_e(e):l_e(e)}),d_e=()=>`Turn items on or off to control what is displayed in the app.`,f_e=()=>`Turn items on or off to control what is displayed in the app.`,p_e=()=>`Turn items on or off to control what is displayed in the app.`,m_e=()=>`Turn items on or off to control what is displayed in the app.`,h_e=()=>`開關各項內容,控制應用中展示的資訊。`,g_e=()=>`开关各项内容,控制应用中展示的信息。`,__e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?d_e(e):n===`ja-JP`?f_e(e):n===`ko-KR`?p_e(e):n===`ru-RU`?m_e(e):n===`zh-TW`?h_e(e):g_e(e)}),v_e=()=>`Recents`,y_e=()=>`Recents`,b_e=()=>`Recents`,x_e=()=>`Recents`,S_e=()=>`最近專案`,C_e=()=>`最近专案`,w_e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?v_e(e):n===`ja-JP`?y_e(e):n===`ko-KR`?b_e(e):n===`ru-RU`?x_e(e):n===`zh-TW`?S_e(e):C_e(e)}),T_e=()=>`Home`,E_e=()=>`Home`,D_e=()=>`Home`,O_e=()=>`Home`,k_e=()=>`主頁`,A_e=()=>`主页`,j_e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?T_e(e):n===`ja-JP`?E_e(e):n===`ko-KR`?D_e(e):n===`ru-RU`?O_e(e):n===`zh-TW`?k_e(e):A_e(e)}),M_e=()=>`Applications`,N_e=()=>`Applications`,P_e=()=>`Applications`,F_e=()=>`Applications`,I_e=()=>`應用`,L_e=()=>`应用`,R_e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?M_e(e):n===`ja-JP`?N_e(e):n===`ko-KR`?P_e(e):n===`ru-RU`?F_e(e):n===`zh-TW`?I_e(e):L_e(e)}),z_e=()=>`Desktop`,B_e=()=>`Desktop`,V_e=()=>`Desktop`,H_e=()=>`Desktop`,U_e=()=>`桌面`,W_e=()=>`桌面`,G_e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?z_e(e):n===`ja-JP`?B_e(e):n===`ko-KR`?V_e(e):n===`ru-RU`?H_e(e):n===`zh-TW`?U_e(e):W_e(e)}),K_e=()=>`Downloads`,q_e=()=>`Downloads`,J_e=()=>`Downloads`,Y_e=()=>`Downloads`,X_e=()=>`下載`,Z_e=()=>`下载`,Q_e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?K_e(e):n===`ja-JP`?q_e(e):n===`ko-KR`?J_e(e):n===`ru-RU`?Y_e(e):n===`zh-TW`?X_e(e):Z_e(e)}),$_e=()=>`Documents`,eve=()=>`Documents`,tve=()=>`Documents`,nve=()=>`Documents`,rve=()=>`文件`,ive=()=>`文件`,ave=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$_e(e):n===`ja-JP`?eve(e):n===`ko-KR`?tve(e):n===`ru-RU`?nve(e):n===`zh-TW`?rve(e):ive(e)}),ove=()=>`You have to select at least one item.`,sve=()=>`You have to select at least one item.`,cve=()=>`You have to select at least one item.`,lve=()=>`You have to select at least one item.`,uve=()=>`至少選擇一個專案。`,dve=()=>`至少选择一个专案。`,fve=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ove(e):n===`ja-JP`?sve(e):n===`ko-KR`?cve(e):n===`ru-RU`?lve(e):n===`zh-TW`?uve(e):dve(e)}),pve=()=>`Sidebar`,mve=()=>`Sidebar`,hve=()=>`Sidebar`,gve=()=>`Sidebar`,_ve=()=>`側邊欄`,vve=()=>`侧边栏`,yve=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pve(e):n===`ja-JP`?mve(e):n===`ko-KR`?hve(e):n===`ru-RU`?gve(e):n===`zh-TW`?_ve(e):vve(e)}),bve=()=>`Select the items you want to display in the sidebar.`,xve=()=>`Select the items you want to display in the sidebar.`,Sve=()=>`Select the items you want to display in the sidebar.`,Cve=()=>`Select the items you want to display in the sidebar.`,wve=()=>`選擇你希望在側邊欄中顯示的專案。`,Tve=()=>`选择你希望在侧边栏中显示的项目。`,Eve=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bve(e):n===`ja-JP`?xve(e):n===`ko-KR`?Sve(e):n===`ru-RU`?Cve(e):n===`zh-TW`?wve(e):Tve(e)}),Dve=()=>`Update display`,Ove=()=>`Update display`,kve=()=>`Update display`,Ave=()=>`Update display`,jve=()=>`更新顯示設定`,Mve=()=>`更新显示设置`,Nve=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Dve(e):n===`ja-JP`?Ove(e):n===`ko-KR`?kve(e):n===`ru-RU`?Ave(e):n===`zh-TW`?jve(e):Mve(e)}),Pve=()=>`Notifications`,Fve=()=>`Notifications`,Ive=()=>`Notifications`,Lve=()=>`Notifications`,Rve=()=>`通知`,zve=()=>`通知`,Bve=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Pve(e):n===`ja-JP`?Fve(e):n===`ko-KR`?Ive(e):n===`ru-RU`?Lve(e):n===`zh-TW`?Rve(e):zve(e)}),Vve=()=>`Configure how you receive notifications.`,Hve=()=>`Configure how you receive notifications.`,Uve=()=>`Configure how you receive notifications.`,Wve=()=>`Configure how you receive notifications.`,Gve=()=>`配置你接收通知的方式。`,Kve=()=>`配置你接收通知的方式。`,qve=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Vve(e):n===`ja-JP`?Hve(e):n===`ko-KR`?Uve(e):n===`ru-RU`?Wve(e):n===`zh-TW`?Gve(e):Kve(e)}),Jve=()=>`Please select a notification type.`,Yve=()=>`Please select a notification type.`,Xve=()=>`Please select a notification type.`,Zve=()=>`Please select a notification type.`,Qve=()=>`請選擇通知型別。`,$ve=()=>`请选择通知类型。`,eye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Jve(e):n===`ja-JP`?Yve(e):n===`ko-KR`?Xve(e):n===`ru-RU`?Zve(e):n===`zh-TW`?Qve(e):$ve(e)}),tye=()=>`Notify me about...`,nye=()=>`Notify me about...`,rye=()=>`Notify me about...`,iye=()=>`Notify me about...`,aye=()=>`通知我關於……`,oye=()=>`通知我关于……`,sye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tye(e):n===`ja-JP`?nye(e):n===`ko-KR`?rye(e):n===`ru-RU`?iye(e):n===`zh-TW`?aye(e):oye(e)}),cye=()=>`All new messages`,lye=()=>`All new messages`,uye=()=>`All new messages`,dye=()=>`All new messages`,fye=()=>`所有新訊息`,pye=()=>`所有新讯息`,mye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cye(e):n===`ja-JP`?lye(e):n===`ko-KR`?uye(e):n===`ru-RU`?dye(e):n===`zh-TW`?fye(e):pye(e)}),hye=()=>`Direct messages and mentions`,gye=()=>`Direct messages and mentions`,_ye=()=>`Direct messages and mentions`,vye=()=>`Direct messages and mentions`,yye=()=>`私信和提及`,bye=()=>`私信和提及`,xye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hye(e):n===`ja-JP`?gye(e):n===`ko-KR`?_ye(e):n===`ru-RU`?vye(e):n===`zh-TW`?yye(e):bye(e)}),Sye=()=>`Nothing`,Cye=()=>`Nothing`,wye=()=>`Nothing`,Tye=()=>`Nothing`,Eye=()=>`不接收通知`,Dye=()=>`不接收通知`,Oye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Sye(e):n===`ja-JP`?Cye(e):n===`ko-KR`?wye(e):n===`ru-RU`?Tye(e):n===`zh-TW`?Eye(e):Dye(e)}),kye=()=>`Email Notifications`,Aye=()=>`Email Notifications`,jye=()=>`Email Notifications`,Mye=()=>`Email Notifications`,Nye=()=>`郵件通知`,Pye=()=>`邮件通知`,Fye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kye(e):n===`ja-JP`?Aye(e):n===`ko-KR`?jye(e):n===`ru-RU`?Mye(e):n===`zh-TW`?Nye(e):Pye(e)}),Iye=()=>`Communication emails`,Lye=()=>`Communication emails`,Rye=()=>`Communication emails`,zye=()=>`Communication emails`,Bye=()=>`通訊郵件`,Vye=()=>`通讯邮件`,Hye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Iye(e):n===`ja-JP`?Lye(e):n===`ko-KR`?Rye(e):n===`ru-RU`?zye(e):n===`zh-TW`?Bye(e):Vye(e)}),Uye=()=>`Receive emails about your account activity.`,Wye=()=>`Receive emails about your account activity.`,Gye=()=>`Receive emails about your account activity.`,Kye=()=>`Receive emails about your account activity.`,qye=()=>`接收與你賬戶活動相關的郵件。`,Jye=()=>`接收与你账户活动相关的邮件。`,Yye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Uye(e):n===`ja-JP`?Wye(e):n===`ko-KR`?Gye(e):n===`ru-RU`?Kye(e):n===`zh-TW`?qye(e):Jye(e)}),Xye=()=>`Marketing emails`,Zye=()=>`Marketing emails`,Qye=()=>`Marketing emails`,$ye=()=>`Marketing emails`,ebe=()=>`營銷郵件`,tbe=()=>`营销邮件`,nbe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Xye(e):n===`ja-JP`?Zye(e):n===`ko-KR`?Qye(e):n===`ru-RU`?$ye(e):n===`zh-TW`?ebe(e):tbe(e)}),rbe=()=>`Receive emails about new products, features, and more.`,ibe=()=>`Receive emails about new products, features, and more.`,abe=()=>`Receive emails about new products, features, and more.`,obe=()=>`Receive emails about new products, features, and more.`,sbe=()=>`接收有關新產品、新功能等內容的郵件。`,cbe=()=>`接收有关新产品、新功能等内容的邮件。`,lbe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rbe(e):n===`ja-JP`?ibe(e):n===`ko-KR`?abe(e):n===`ru-RU`?obe(e):n===`zh-TW`?sbe(e):cbe(e)}),ube=()=>`Social emails`,dbe=()=>`Social emails`,fbe=()=>`Social emails`,pbe=()=>`Social emails`,mbe=()=>`社交郵件`,hbe=()=>`社交邮件`,gbe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ube(e):n===`ja-JP`?dbe(e):n===`ko-KR`?fbe(e):n===`ru-RU`?pbe(e):n===`zh-TW`?mbe(e):hbe(e)}),_be=()=>`Receive emails for friend requests, follows, and more.`,vbe=()=>`Receive emails for friend requests, follows, and more.`,ybe=()=>`Receive emails for friend requests, follows, and more.`,bbe=()=>`Receive emails for friend requests, follows, and more.`,xbe=()=>`接收好友請求、關注等社交郵件。`,Sbe=()=>`接收好友请求、关注等社交邮件。`,Cbe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_be(e):n===`ja-JP`?vbe(e):n===`ko-KR`?ybe(e):n===`ru-RU`?bbe(e):n===`zh-TW`?xbe(e):Sbe(e)}),wbe=()=>`Security emails`,Tbe=()=>`Security emails`,Ebe=()=>`Security emails`,Dbe=()=>`Security emails`,Obe=()=>`安全郵件`,kbe=()=>`安全邮件`,Abe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wbe(e):n===`ja-JP`?Tbe(e):n===`ko-KR`?Ebe(e):n===`ru-RU`?Dbe(e):n===`zh-TW`?Obe(e):kbe(e)}),jbe=()=>`Receive emails about your account activity and security.`,Mbe=()=>`Receive emails about your account activity and security.`,Nbe=()=>`Receive emails about your account activity and security.`,Pbe=()=>`Receive emails about your account activity and security.`,Fbe=()=>`接收與你賬戶活動和安全相關的郵件。`,Ibe=()=>`接收与你账户活动和安全相关的邮件。`,Lbe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jbe(e):n===`ja-JP`?Mbe(e):n===`ko-KR`?Nbe(e):n===`ru-RU`?Pbe(e):n===`zh-TW`?Fbe(e):Ibe(e)}),Rbe=()=>`Use different settings for my mobile devices`,zbe=()=>`Use different settings for my mobile devices`,Bbe=()=>`Use different settings for my mobile devices`,Vbe=()=>`Use different settings for my mobile devices`,Hbe=()=>`我的移動裝置使用不同的通知設定`,Ube=()=>`我的移动装置使用不同的通知设置`,Wbe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Rbe(e):n===`ja-JP`?zbe(e):n===`ko-KR`?Bbe(e):n===`ru-RU`?Vbe(e):n===`zh-TW`?Hbe(e):Ube(e)}),Gbe=()=>`You can manage your mobile notifications in the`,Kbe=()=>`You can manage your mobile notifications in the`,qbe=()=>`You can manage your mobile notifications in the`,Jbe=()=>`You can manage your mobile notifications in the`,Ybe=()=>`你可以在`,Xbe=()=>`你可以在`,Zbe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Gbe(e):n===`ja-JP`?Kbe(e):n===`ko-KR`?qbe(e):n===`ru-RU`?Jbe(e):n===`zh-TW`?Ybe(e):Xbe(e)}),Qbe=()=>`mobile settings`,$be=()=>`mobile settings`,exe=()=>`mobile settings`,txe=()=>`mobile settings`,nxe=()=>`移動端設定`,rxe=()=>`移动端设置`,ixe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Qbe(e):n===`ja-JP`?$be(e):n===`ko-KR`?exe(e):n===`ru-RU`?txe(e):n===`zh-TW`?nxe(e):rxe(e)}),axe=()=>`page.`,oxe=()=>`page.`,sxe=()=>`page.`,cxe=()=>`page.`,lxe=()=>`頁面中管理移動通知。`,uxe=()=>`在在页面中管理移动通知。`,dxe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?axe(e):n===`ja-JP`?oxe(e):n===`ko-KR`?sxe(e):n===`ru-RU`?cxe(e):n===`zh-TW`?lxe(e):uxe(e)}),fxe=()=>`Update notifications`,pxe=()=>`Update notifications`,mxe=()=>`Update notifications`,hxe=()=>`Update notifications`,gxe=()=>`更新通知設定`,_xe=()=>`更新通知设置`,vxe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fxe(e):n===`ja-JP`?pxe(e):n===`ko-KR`?mxe(e):n===`ru-RU`?hxe(e):n===`zh-TW`?gxe(e):_xe(e)}),yxe=()=>`Select a settings page`,bxe=()=>`Select a settings page`,xxe=()=>`Select a settings page`,Sxe=()=>`Select a settings page`,Cxe=()=>`選擇配置項`,wxe=()=>`选择配置项`,Txe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yxe(e):n===`ja-JP`?bxe(e):n===`ko-KR`?xxe(e):n===`ru-RU`?Sxe(e):n===`zh-TW`?Cxe(e):wxe(e)}),Exe=()=>`Saved successfully`,Dxe=()=>`Saved successfully`,Oxe=()=>`Saved successfully`,kxe=()=>`Saved successfully`,Axe=()=>`儲存成功`,jxe=()=>`保存成功`,Mxe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Exe(e):n===`ja-JP`?Dxe(e):n===`ko-KR`?Oxe(e):n===`ru-RU`?kxe(e):n===`zh-TW`?Axe(e):jxe(e)}),Nxe=e=>`Failed to save ${e?.key}: ${e?.error}`,Pxe=e=>`Failed to save ${e?.key}: ${e?.error}`,Fxe=e=>`Failed to save ${e?.key}: ${e?.error}`,Ixe=e=>`Failed to save ${e?.key}: ${e?.error}`,Lxe=e=>`${e?.key} 儲存失敗:${e?.error}`,Rxe=e=>`${e?.key} 保存失败:${e?.error}`,zxe=((e,t={})=>{let n=t.locale??m();return n===`en-US`?Nxe(e):n===`ja-JP`?Pxe(e):n===`ko-KR`?Fxe(e):n===`ru-RU`?Ixe(e):n===`zh-TW`?Lxe(e):Rxe(e)}),Bxe=()=>`Access Forbidden`,Vxe=()=>`Access Forbidden`,Hxe=()=>`Access Forbidden`,Uxe=()=>`Access Forbidden`,Wxe=()=>`禁止訪問`,Gxe=()=>`禁止访问`,Kxe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Bxe(e):n===`ja-JP`?Vxe(e):n===`ko-KR`?Hxe(e):n===`ru-RU`?Uxe(e):n===`zh-TW`?Wxe(e):Gxe(e)}),qxe=()=>`You do not have permission to access this resource.`,Jxe=()=>`You do not have permission to access this resource.`,Yxe=()=>`You do not have permission to access this resource.`,Xxe=()=>`You do not have permission to access this resource.`,Zxe=()=>`你沒有訪問此資源所需的許可權。`,Qxe=()=>`你没有访问此资源所需的许可权。`,$xe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qxe(e):n===`ja-JP`?Jxe(e):n===`ko-KR`?Yxe(e):n===`ru-RU`?Xxe(e):n===`zh-TW`?Zxe(e):Qxe(e)}),eSe=()=>`Please contact your administrator for access.`,tSe=()=>`Please contact your administrator for access.`,nSe=()=>`Please contact your administrator for access.`,rSe=()=>`Please contact your administrator for access.`,iSe=()=>`請聯絡管理員以取得存取權限。`,aSe=()=>`请联络管理员以获取存取权限。`,oSe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?eSe(e):n===`ja-JP`?tSe(e):n===`ko-KR`?nSe(e):n===`ru-RU`?rSe(e):n===`zh-TW`?iSe(e):aSe(e)}),sSe=()=>`Website is under maintenance!`,cSe=()=>`Website is under maintenance!`,lSe=()=>`Website is under maintenance!`,uSe=()=>`Website is under maintenance!`,dSe=()=>`網站維護中!`,fSe=()=>`网站维护中!`,pSe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sSe(e):n===`ja-JP`?cSe(e):n===`ko-KR`?lSe(e):n===`ru-RU`?uSe(e):n===`zh-TW`?dSe(e):fSe(e)}),mSe=()=>`The site is not available at the moment.`,hSe=()=>`The site is not available at the moment.`,gSe=()=>`The site is not available at the moment.`,_Se=()=>`The site is not available at the moment.`,vSe=()=>`站點當前暫不可用。`,ySe=()=>`站点当前暂不可用。`,bSe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mSe(e):n===`ja-JP`?hSe(e):n===`ko-KR`?gSe(e):n===`ru-RU`?_Se(e):n===`zh-TW`?vSe(e):ySe(e)}),xSe=()=>`We will be back online shortly.`,SSe=()=>`We will be back online shortly.`,CSe=()=>`We will be back online shortly.`,wSe=()=>`We will be back online shortly.`,TSe=()=>`我們會盡快恢復服務。`,ESe=()=>`我们会尽快恢复服务。`,DSe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xSe(e):n===`ja-JP`?SSe(e):n===`ko-KR`?CSe(e):n===`ru-RU`?wSe(e):n===`zh-TW`?TSe(e):ESe(e)}),OSe=()=>`Unauthorized Access`,kSe=()=>`Unauthorized Access`,ASe=()=>`Unauthorized Access`,jSe=()=>`Unauthorized Access`,MSe=()=>`未授權訪問`,NSe=()=>`未授权访问`,PSe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?OSe(e):n===`ja-JP`?kSe(e):n===`ko-KR`?ASe(e):n===`ru-RU`?jSe(e):n===`zh-TW`?MSe(e):NSe(e)}),FSe=()=>`Please log in with the appropriate credentials.`,ISe=()=>`Please log in with the appropriate credentials.`,LSe=()=>`Please log in with the appropriate credentials.`,RSe=()=>`Please log in with the appropriate credentials.`,zSe=()=>`請使用正確的憑證登入。`,BSe=()=>`请使用正确的凭证登录。`,VSe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?FSe(e):n===`ja-JP`?ISe(e):n===`ko-KR`?LSe(e):n===`ru-RU`?RSe(e):n===`zh-TW`?zSe(e):BSe(e)}),HSe=()=>`Once signed in, you can access this resource.`,USe=()=>`Once signed in, you can access this resource.`,WSe=()=>`Once signed in, you can access this resource.`,GSe=()=>`Once signed in, you can access this resource.`,KSe=()=>`登入後即可訪問此資源。`,qSe=()=>`登录后即可访问此资源。`,JSe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?HSe(e):n===`ja-JP`?USe(e):n===`ko-KR`?WSe(e):n===`ru-RU`?GSe(e):n===`zh-TW`?KSe(e):qSe(e)}),YSe=()=>`User`,XSe=()=>`User`,ZSe=()=>`User`,QSe=()=>`User`,$Se=()=>`使用者`,eCe=()=>`用户`,tCe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?YSe(e):n===`ja-JP`?XSe(e):n===`ko-KR`?ZSe(e):n===`ru-RU`?QSe(e):n===`zh-TW`?$Se(e):eCe(e)}),nCe=()=>`Font`,rCe=()=>`Font`,iCe=()=>`Font`,aCe=()=>`Font`,oCe=()=>`字型`,sCe=()=>`字体`,cCe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nCe(e):n===`ja-JP`?rCe(e):n===`ko-KR`?iCe(e):n===`ru-RU`?aCe(e):n===`zh-TW`?oCe(e):sCe(e)}),lCe=()=>`Secure Payments, Fully in Control`,uCe=()=>`Secure Payments, Fully in Control`,dCe=()=>`Secure Payments, Fully in Control`,fCe=()=>`Secure Payments, Fully in Control`,pCe=()=>`安全收付,盡在掌握`,mCe=()=>`安全收付,尽在掌握`,hCe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lCe(e):n===`ja-JP`?uCe(e):n===`ko-KR`?dCe(e):n===`ru-RU`?fCe(e):n===`zh-TW`?pCe(e):mCe(e)}),gCe=()=>`Multi-chain USDT collection, real-time callbacks, and smart settlement — reliable payment infrastructure for your business.`,_Ce=()=>`Multi-chain USDT collection, real-time callbacks, and smart settlement — reliable payment infrastructure for your business.`,vCe=()=>`Multi-chain USDT collection, real-time callbacks, and smart settlement — reliable payment infrastructure for your business.`,yCe=()=>`Multi-chain USDT collection, real-time callbacks, and smart settlement — reliable payment infrastructure for your business.`,bCe=()=>`多鏈 USDT 自動收款、即時回呼、智能結算,為您的業務提供穩定可靠的支付基礎設施。`,xCe=()=>`多链 USDT 自动收款、实时回调、智能结算,为您的业务提供稳定可靠的支付基础设施。`,SCe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gCe(e):n===`ja-JP`?_Ce(e):n===`ko-KR`?vCe(e):n===`ru-RU`?yCe(e):n===`zh-TW`?bCe(e):xCe(e)}),CCe=()=>`Pending`,wCe=()=>`Pending`,TCe=()=>`Pending`,ECe=()=>`Pending`,DCe=()=>`待付款`,OCe=()=>`待付款`,kCe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?CCe(e):n===`ja-JP`?wCe(e):n===`ko-KR`?TCe(e):n===`ru-RU`?ECe(e):n===`zh-TW`?DCe(e):OCe(e)}),ACe=()=>`Paid`,jCe=()=>`Paid`,MCe=()=>`Paid`,NCe=()=>`Paid`,PCe=()=>`已付款`,FCe=()=>`已付款`,ICe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ACe(e):n===`ja-JP`?jCe(e):n===`ko-KR`?MCe(e):n===`ru-RU`?NCe(e):n===`zh-TW`?PCe(e):FCe(e)}),LCe=()=>`Expired`,RCe=()=>`Expired`,zCe=()=>`Expired`,BCe=()=>`Expired`,VCe=()=>`已過期`,HCe=()=>`已过期`,UCe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?LCe(e):n===`ja-JP`?RCe(e):n===`ko-KR`?zCe(e):n===`ru-RU`?BCe(e):n===`zh-TW`?VCe(e):HCe(e)}),WCe=()=>`Selecting asset`,GCe=()=>`Selecting asset`,KCe=()=>`Selecting asset`,qCe=()=>`Selecting asset`,JCe=()=>`待選擇資產`,YCe=()=>`待选择资产`,XCe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?WCe(e):n===`ja-JP`?GCe(e):n===`ko-KR`?KCe(e):n===`ru-RU`?qCe(e):n===`zh-TW`?JCe(e):YCe(e)}),ZCe=()=>`Active`,QCe=()=>`Active`,$Ce=()=>`Active`,ewe=()=>`Active`,twe=()=>`啟用中`,nwe=()=>`启用中`,rwe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ZCe(e):n===`ja-JP`?QCe(e):n===`ko-KR`?$Ce(e):n===`ru-RU`?ewe(e):n===`zh-TW`?twe(e):nwe(e)}),iwe=()=>`Disabled`,awe=()=>`Disabled`,owe=()=>`Disabled`,swe=()=>`Disabled`,cwe=()=>`已停用`,lwe=()=>`已禁用`,uwe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?iwe(e):n===`ja-JP`?awe(e):n===`ko-KR`?owe(e):n===`ru-RU`?swe(e):n===`zh-TW`?cwe(e):lwe(e)}),dwe=()=>`Monitoring`,fwe=()=>`Monitoring`,pwe=()=>`Monitoring`,mwe=()=>`Monitoring`,hwe=()=>`監控中`,gwe=()=>`监控中`,_we=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dwe(e):n===`ja-JP`?fwe(e):n===`ko-KR`?pwe(e):n===`ru-RU`?mwe(e):n===`zh-TW`?hwe(e):gwe(e)}),vwe=()=>`Active`,ywe=()=>`Active`,bwe=()=>`Active`,xwe=()=>`Active`,Swe=()=>`啟用中`,Cwe=()=>`启用中`,wwe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vwe(e):n===`ja-JP`?ywe(e):n===`ko-KR`?bwe(e):n===`ru-RU`?xwe(e):n===`zh-TW`?Swe(e):Cwe(e)}),Twe=()=>`Disabled`,Ewe=()=>`Disabled`,Dwe=()=>`Disabled`,Owe=()=>`Disabled`,kwe=()=>`已停用`,Awe=()=>`已禁用`,jwe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Twe(e):n===`ja-JP`?Ewe(e):n===`ko-KR`?Dwe(e):n===`ru-RU`?Owe(e):n===`zh-TW`?kwe(e):Awe(e)}),Mwe=()=>`No data`,Nwe=()=>`No data`,Pwe=()=>`No data`,Fwe=()=>`No data`,Iwe=()=>`暫無資料`,Lwe=()=>`暂无数据`,Rwe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Mwe(e):n===`ja-JP`?Nwe(e):n===`ko-KR`?Pwe(e):n===`ru-RU`?Fwe(e):n===`zh-TW`?Iwe(e):Lwe(e)}),zwe=()=>`Signing out…`,Bwe=()=>`Signing out…`,Vwe=()=>`Signing out…`,Hwe=()=>`Signing out…`,Uwe=()=>`登出中…`,Wwe=()=>`登出中…`,Gwe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zwe(e):n===`ja-JP`?Bwe(e):n===`ko-KR`?Vwe(e):n===`ru-RU`?Hwe(e):n===`zh-TW`?Uwe(e):Wwe(e)}),Kwe=()=>`Secure, high-performance USDT payment middleware`,qwe=()=>`Secure, high-performance USDT payment middleware`,Jwe=()=>`Secure, high-performance USDT payment middleware`,Ywe=()=>`Secure, high-performance USDT payment middleware`,Xwe=()=>`安全、高效的 USDT 支付中介軟體`,Zwe=()=>`安全、高效的 USDT 支付中介软件`,Qwe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Kwe(e):n===`ja-JP`?qwe(e):n===`ko-KR`?Jwe(e):n===`ru-RU`?Ywe(e):n===`zh-TW`?Xwe(e):Zwe(e)}),$we=()=>`Amount to pay`,eTe=()=>`支払金額`,tTe=()=>`결제 금액`,nTe=()=>`Сумма к оплате`,rTe=()=>`應付金額`,iTe=()=>`应付金额`,aTe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$we(e):n===`ja-JP`?eTe(e):n===`ko-KR`?tTe(e):n===`ru-RU`?nTe(e):n===`zh-TW`?rTe(e):iTe(e)}),oTe=()=>`Back`,sTe=()=>`戻る`,cTe=()=>`뒤로`,lTe=()=>`Назад`,uTe=()=>`返回`,dTe=()=>`返回`,fTe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?oTe(e):n===`ja-JP`?sTe(e):n===`ko-KR`?cTe(e):n===`ru-RU`?lTe(e):n===`zh-TW`?uTe(e):dTe(e)}),pTe=()=>`Waiting for confirmation`,mTe=()=>`入金確認を待機中`,hTe=()=>`입금 확인 대기 중`,gTe=()=>`Ожидание подтверждения`,_Te=()=>`等待到賬確認`,vTe=()=>`等待到账确认`,yTe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pTe(e):n===`ja-JP`?mTe(e):n===`ko-KR`?hTe(e):n===`ru-RU`?gTe(e):n===`zh-TW`?_Te(e):vTe(e)}),bTe=()=>`Confirm payment`,xTe=()=>`支払いを確認`,STe=()=>`결제 확인`,CTe=()=>`Подтвердить оплату`,wTe=()=>`確認支付`,TTe=()=>`确认支付`,ETe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bTe(e):n===`ja-JP`?xTe(e):n===`ko-KR`?STe(e):n===`ru-RU`?CTe(e):n===`zh-TW`?wTe(e):TTe(e)}),DTe=()=>`Copied`,OTe=()=>`コピーしました`,kTe=()=>`복사됨`,ATe=()=>`Скопировано`,jTe=()=>`已複製`,MTe=()=>`已复制`,NTe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?DTe(e):n===`ja-JP`?OTe(e):n===`ko-KR`?kTe(e):n===`ru-RU`?ATe(e):n===`zh-TW`?jTe(e):MTe(e)}),PTe=()=>`Currency`,FTe=()=>`通貨`,ITe=()=>`통화`,LTe=()=>`Валюта`,RTe=()=>`幣種`,zTe=()=>`币种`,BTe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?PTe(e):n===`ja-JP`?FTe(e):n===`ko-KR`?ITe(e):n===`ru-RU`?LTe(e):n===`zh-TW`?RTe(e):zTe(e)}),VTe=()=>`Customer Service`,HTe=()=>`カスタマーサポート`,UTe=()=>`고객센터`,WTe=()=>`Поддержка`,GTe=()=>`客服`,KTe=()=>`客服`,qTe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?VTe(e):n===`ja-JP`?HTe(e):n===`ko-KR`?UTe(e):n===`ru-RU`?WTe(e):n===`zh-TW`?GTe(e):KTe(e)}),JTe=()=>`Payment Expired`,YTe=()=>`支払い期限切れ`,XTe=()=>`결제 만료`,ZTe=()=>`Платеж истек`,QTe=()=>`支付已過期`,$Te=()=>`支付已过期`,eEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?JTe(e):n===`ja-JP`?YTe(e):n===`ko-KR`?XTe(e):n===`ru-RU`?ZTe(e):n===`zh-TW`?QTe(e):$Te(e)}),tEe=()=>`Please initiate a new payment`,nEe=()=>`新しい支払いを開始してください`,rEe=()=>`새 결제를 시작하세요`,iEe=()=>`Создайте новый платеж`,aEe=()=>`請重新發起支付`,oEe=()=>`请重新发起支付`,sEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tEe(e):n===`ja-JP`?nEe(e):n===`ko-KR`?rEe(e):n===`ru-RU`?iEe(e):n===`zh-TW`?aEe(e):oEe(e)}),cEe=()=>`Loading payment`,lEe=()=>`支払い情報を読み込み中`,uEe=()=>`결제 정보 불러오는 중`,dEe=()=>`Загрузка платежа`,fEe=()=>`正在載入支付資訊`,pEe=()=>`正在加载支付信息`,mEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cEe(e):n===`ja-JP`?lEe(e):n===`ko-KR`?uEe(e):n===`ru-RU`?dEe(e):n===`zh-TW`?fEe(e):pEe(e)}),hEe=()=>`Network`,gEe=()=>`ネットワーク`,_Ee=()=>`네트워크`,vEe=()=>`Сеть`,yEe=()=>`網絡`,bEe=()=>`网络`,xEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hEe(e):n===`ja-JP`?gEe(e):n===`ko-KR`?_Ee(e):n===`ru-RU`?vEe(e):n===`zh-TW`?yEe(e):bEe(e)}),SEe=()=>`Order Not Found`,CEe=()=>`注文が見つかりません`,wEe=()=>`주문 없음`,TEe=()=>`Заказ не найден`,EEe=()=>`訂單不存在`,DEe=()=>`订单不存在`,OEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?SEe(e):n===`ja-JP`?CEe(e):n===`ko-KR`?wEe(e):n===`ru-RU`?TEe(e):n===`zh-TW`?EEe(e):DEe(e)}),kEe=()=>`The order does not exist or has already expired`,AEe=()=>`注文が存在しないか期限切れです`,jEe=()=>`주문이 없거나 이미 만료되었습니다`,MEe=()=>`Заказ не существует или уже истек`,NEe=()=>`訂單不存在或已過期`,PEe=()=>`订单不存在或已经过期`,FEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kEe(e):n===`ja-JP`?AEe(e):n===`ko-KR`?jEe(e):n===`ru-RU`?MEe(e):n===`zh-TW`?NEe(e):PEe(e)}),IEe=()=>`Order amount`,LEe=()=>`注文金額`,REe=()=>`주문 금액`,zEe=()=>`Сумма заказа`,BEe=()=>`訂單金額`,VEe=()=>`订单金额`,HEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?IEe(e):n===`ja-JP`?LEe(e):n===`ko-KR`?REe(e):n===`ru-RU`?zEe(e):n===`zh-TW`?BEe(e):VEe(e)}),UEe=()=>`Order ID`,WEe=()=>`注文ID`,GEe=()=>`주문 ID`,KEe=()=>`ID заказа`,qEe=()=>`訂單號`,JEe=()=>`订单号`,YEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?UEe(e):n===`ja-JP`?WEe(e):n===`ko-KR`?GEe(e):n===`ru-RU`?KEe(e):n===`zh-TW`?qEe(e):JEe(e)}),XEe=()=>`Payment address`,ZEe=()=>`支払いアドレス`,QEe=()=>`결제 주소`,$Ee=()=>`Адрес оплаты`,eDe=()=>`收款地址`,tDe=()=>`收款地址`,nDe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?XEe(e):n===`ja-JP`?ZEe(e):n===`ko-KR`?QEe(e):n===`ru-RU`?$Ee(e):n===`zh-TW`?eDe(e):tDe(e)}),rDe=()=>`Powered by`,iDe=()=>`Powered by`,aDe=()=>`Powered by`,oDe=()=>`Powered by`,sDe=()=>`Powered by`,cDe=()=>`Powered by`,lDe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rDe(e):n===`ja-JP`?iDe(e):n===`ko-KR`?aDe(e):n===`ru-RU`?oDe(e):n===`zh-TW`?sDe(e):cDe(e)}),uDe=()=>`Redirecting...`,dDe=()=>`リダイレクト中...`,fDe=()=>`이동 중...`,pDe=()=>`Перенаправление...`,mDe=()=>`正在跳轉...`,hDe=()=>`正在跳转...`,gDe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?uDe(e):n===`ja-JP`?dDe(e):n===`ko-KR`?fDe(e):n===`ru-RU`?pDe(e):n===`zh-TW`?mDe(e):hDe(e)}),_De=()=>`Retry`,vDe=()=>`再試行`,yDe=()=>`재시도`,bDe=()=>`Повторить`,xDe=()=>`重試`,SDe=()=>`重试`,CDe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_De(e):n===`ja-JP`?vDe(e):n===`ko-KR`?yDe(e):n===`ru-RU`?bDe(e):n===`zh-TW`?xDe(e):SDe(e)}),wDe=()=>`Scan or copy address to pay`,TDe=()=>`スキャンまたはアドレスをコピー`,EDe=()=>`스캔하거나 주소를 복사해 결제`,DDe=()=>`Сканируйте или скопируйте адрес`,ODe=()=>`掃碼或複製地址付款`,kDe=()=>`扫码或复制地址付款`,ADe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wDe(e):n===`ja-JP`?TDe(e):n===`ko-KR`?EDe(e):n===`ru-RU`?DDe(e):n===`zh-TW`?ODe(e):kDe(e)}),jDe=()=>`Select payment asset`,MDe=()=>`支払い通貨を選択`,NDe=()=>`결제 자산 선택`,PDe=()=>`Выберите платежный актив`,FDe=()=>`選擇支付幣種`,IDe=()=>`选择支付币种`,LDe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jDe(e):n===`ja-JP`?MDe(e):n===`ko-KR`?NDe(e):n===`ru-RU`?PDe(e):n===`zh-TW`?FDe(e):IDe(e)}),RDe=()=>`Select payment network and asset`,zDe=()=>`支払いネットワークと通貨を選択`,BDe=()=>`결제 네트워크와 자산 선택`,VDe=()=>`Выберите сеть и актив`,HDe=()=>`選擇支付網路和幣種`,UDe=()=>`选择支付网络和币种`,WDe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?RDe(e):n===`ja-JP`?zDe(e):n===`ko-KR`?BDe(e):n===`ru-RU`?VDe(e):n===`zh-TW`?HDe(e):UDe(e)}),GDe=()=>`Choose how to pay`,KDe=()=>`支払い方法を選択`,qDe=()=>`결제 방법 선택`,JDe=()=>`Выберите способ оплаты`,YDe=()=>`選擇付款方式`,XDe=()=>`选择付款方式`,ZDe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?GDe(e):n===`ja-JP`?KDe(e):n===`ko-KR`?qDe(e):n===`ru-RU`?JDe(e):n===`zh-TW`?YDe(e):XDe(e)}),QDe=()=>`Change network or asset`,$De=()=>`Change network or asset`,eOe=()=>`Change network or asset`,tOe=()=>`Change network or asset`,nOe=()=>`切換網路或幣種`,rOe=()=>`切换网络或币种`,iOe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?QDe(e):n===`ja-JP`?$De(e):n===`ko-KR`?eOe(e):n===`ru-RU`?tOe(e):n===`zh-TW`?nOe(e):rOe(e)}),aOe=()=>`On-chain payment`,oOe=()=>`オンチェーン支払い`,sOe=()=>`온체인 결제`,cOe=()=>`Оплата ончейн`,lOe=()=>`鏈上支付`,uOe=()=>`链上支付`,dOe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?aOe(e):n===`ja-JP`?oOe(e):n===`ko-KR`?sOe(e):n===`ru-RU`?cOe(e):n===`zh-TW`?lOe(e):uOe(e)}),fOe=()=>`Send funds from your wallet to the payment address`,pOe=()=>`ウォレットから指定アドレスへ送金`,mOe=()=>`지갑에서 지정 주소로 전송`,hOe=()=>`Отправьте средства с кошелька на адрес оплаты`,gOe=()=>`使用錢包轉帳到指定地址`,_Oe=()=>`使用钱包转账到指定地址`,vOe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fOe(e):n===`ja-JP`?pOe(e):n===`ko-KR`?mOe(e):n===`ru-RU`?hOe(e):n===`zh-TW`?gOe(e):_Oe(e)}),yOe=()=>`Payment Successful`,bOe=()=>`支払い成功`,xOe=()=>`결제 성공`,SOe=()=>`Платеж успешен`,COe=()=>`支付成功`,wOe=()=>`支付成功`,TOe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yOe(e):n===`ja-JP`?bOe(e):n===`ko-KR`?xOe(e):n===`ru-RU`?SOe(e):n===`zh-TW`?COe(e):wOe(e)}),EOe=()=>`Payment has been confirmed`,DOe=()=>`支払いが確認されました`,OOe=()=>`결제가 확인되었습니다`,kOe=()=>`Платеж подтвержден`,AOe=()=>`支付已確認`,jOe=()=>`支付已确认`,MOe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?EOe(e):n===`ja-JP`?DOe(e):n===`ko-KR`?OOe(e):n===`ru-RU`?kOe(e):n===`zh-TW`?AOe(e):jOe(e)}),NOe=()=>`Connection Timeout`,POe=()=>`接続タイムアウト`,FOe=()=>`연결 시간 초과`,IOe=()=>`Таймаут соединения`,LOe=()=>`連接超時`,ROe=()=>`连接超时`,zOe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?NOe(e):n===`ja-JP`?POe(e):n===`ko-KR`?FOe(e):n===`ru-RU`?IOe(e):n===`zh-TW`?LOe(e):ROe(e)}),BOe=()=>`Unable to connect to the payment server`,VOe=()=>`支払いサーバーに接続できません`,HOe=()=>`결제 서버에 연결할 수 없습니다`,UOe=()=>`Не удалось подключиться к серверу оплаты`,WOe=()=>`無法連接到支付伺服器`,GOe=()=>`无法连接到支付服务器`,KOe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?BOe(e):n===`ja-JP`?VOe(e):n===`ko-KR`?HOe(e):n===`ru-RU`?UOe(e):n===`zh-TW`?WOe(e):GOe(e)}),qOe=()=>`Paid but not confirmed?`,JOe=()=>`送金済みだが未確認ですか?`,YOe=()=>`송금했지만 확인되지 않았나요?`,XOe=()=>`Оплатили, но нет подтверждения?`,ZOe=()=>`已轉帳但未到帳?`,QOe=()=>`已转账但未到账?`,$Oe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qOe(e):n===`ja-JP`?JOe(e):n===`ko-KR`?YOe(e):n===`ru-RU`?XOe(e):n===`zh-TW`?ZOe(e):QOe(e)}),eke=()=>`Confirm transfer`,tke=()=>`送金を確認`,nke=()=>`송금 확인`,rke=()=>`Подтвердить перевод`,ike=()=>`確認轉帳`,ake=()=>`确认转账`,oke=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?eke(e):n===`ja-JP`?tke(e):n===`ko-KR`?nke(e):n===`ru-RU`?rke(e):n===`zh-TW`?ike(e):ake(e)}),ske=()=>`Enter the transaction hash for this transfer. We will verify it and update the order status.`,cke=()=>`この送金の取引ハッシュを入力してください。確認後、注文ステータスを更新します。`,lke=()=>`이 송금의 거래 해시를 입력하세요. 확인 후 주문 상태를 업데이트합니다.`,uke=()=>`Введите хэш этой транзакции. Мы проверим его и обновим статус заказа.`,dke=()=>`請填寫這筆轉帳的交易哈希,我們會立即校驗並更新訂單狀態。`,fke=()=>`请填写这笔转账的交易哈希,我们会立即校验并更新订单状态。`,pke=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ske(e):n===`ja-JP`?cke(e):n===`ko-KR`?lke(e):n===`ru-RU`?uke(e):n===`zh-TW`?dke(e):fke(e)}),mke=()=>`Transaction hash`,hke=()=>`取引ハッシュ`,gke=()=>`거래 해시`,_ke=()=>`Хэш транзакции`,vke=()=>`交易哈希`,yke=()=>`交易哈希`,bke=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mke(e):n===`ja-JP`?hke(e):n===`ko-KR`?gke(e):n===`ru-RU`?_ke(e):n===`zh-TW`?vke(e):yke(e)}),xke=()=>`Enter transaction hash / TxID`,Ske=()=>`取引ハッシュ / TxID を入力`,Cke=()=>`거래 해시 / TxID 입력`,wke=()=>`Введите хэш транзакции / TxID`,Tke=()=>`請輸入交易哈希 / TxID`,Eke=()=>`请输入交易哈希 / TxID`,Dke=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xke(e):n===`ja-JP`?Ske(e):n===`ko-KR`?Cke(e):n===`ru-RU`?wke(e):n===`zh-TW`?Tke(e):Eke(e)}),Oke=()=>`Make sure the amount, network, and receiving address match this order. Submit once only.`,kke=()=>`金額、ネットワーク、受取アドレスがこの注文と一致していることを確認してください。送信は一度だけで十分です。`,Ake=()=>`금액, 네트워크, 수취 주소가 이 주문과 일치하는지 확인하세요. 한 번만 제출하면 됩니다.`,jke=()=>`Убедитесь, что сумма, сеть и адрес получателя совпадают с этим заказом. Отправьте только один раз.`,Mke=()=>`請確認金額、網路和收款地址與目前訂單一致。提交一次即可,請勿重複提交。`,Nke=()=>`请确认金额、网络和收款地址与当前订单一致。提交一次即可,请勿重复提交。`,Pke=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Oke(e):n===`ja-JP`?kke(e):n===`ko-KR`?Ake(e):n===`ru-RU`?jke(e):n===`zh-TW`?Mke(e):Nke(e)}),Fke=()=>`Confirm submission`,Ike=()=>`送信を確認`,Lke=()=>`제출 확인`,Rke=()=>`Подтвердить отправку`,zke=()=>`確認提交`,Bke=()=>`确认提交`,Vke=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Fke(e):n===`ja-JP`?Ike(e):n===`ko-KR`?Lke(e):n===`ru-RU`?Rke(e):n===`zh-TW`?zke(e):Bke(e)}),Hke=()=>`Enter the transaction hash`,Uke=()=>`取引ハッシュを入力してください`,Wke=()=>`거래 해시를 입력하세요`,Gke=()=>`Введите хэш транзакции`,Kke=()=>`請輸入交易哈希`,qke=()=>`请输入交易哈希`,Jke=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hke(e):n===`ja-JP`?Uke(e):n===`ko-KR`?Wke(e):n===`ru-RU`?Gke(e):n===`zh-TW`?Kke(e):qke(e)}),Yke=()=>`Transaction hash submitted. Waiting for confirmation.`,Xke=()=>`取引ハッシュを送信しました。確認中です。`,Zke=()=>`거래 해시가 제출되었습니다. 확인을 기다리는 중입니다.`,Qke=()=>`Хэш транзакции отправлен. Ожидаем подтверждения.`,$ke=()=>`已提交交易哈希,正在確認到帳`,eAe=()=>`已提交交易哈希,正在确认到账`,tAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yke(e):n===`ja-JP`?Xke(e):n===`ko-KR`?Zke(e):n===`ru-RU`?Qke(e):n===`zh-TW`?$ke(e):eAe(e)}),nAe=()=>`OkPay Config`,rAe=()=>`OkPay Config`,iAe=()=>`OkPay Config`,aAe=()=>`OkPay Config`,oAe=()=>`OkPay 配置`,sAe=()=>`OkPay 配置`,cAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nAe(e):n===`ja-JP`?rAe(e):n===`ko-KR`?iAe(e):n===`ru-RU`?aAe(e):n===`zh-TW`?oAe(e):sAe(e)}),lAe=()=>`Configure OkPay hosted checkout parameters.`,uAe=()=>`Configure OkPay hosted checkout parameters.`,dAe=()=>`Configure OkPay hosted checkout parameters.`,fAe=()=>`Configure OkPay hosted checkout parameters.`,pAe=()=>`配置 OkPay 託管收銀台參數。`,mAe=()=>`配置 OkPay 托管收银台参数。`,hAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lAe(e):n===`ja-JP`?uAe(e):n===`ko-KR`?dAe(e):n===`ru-RU`?fAe(e):n===`zh-TW`?pAe(e):mAe(e)}),gAe=()=>`Enable OkPay`,_Ae=()=>`Enable OkPay`,vAe=()=>`Enable OkPay`,yAe=()=>`Enable OkPay`,bAe=()=>`啟用 OkPay`,xAe=()=>`启用 OkPay`,SAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gAe(e):n===`ja-JP`?_Ae(e):n===`ko-KR`?vAe(e):n===`ru-RU`?yAe(e):n===`zh-TW`?bAe(e):xAe(e)}),CAe=()=>`Allow checkout orders to be redirected to OkPay.`,wAe=()=>`Allow checkout orders to be redirected to OkPay.`,TAe=()=>`Allow checkout orders to be redirected to OkPay.`,EAe=()=>`Allow checkout orders to be redirected to OkPay.`,DAe=()=>`允許收銀台訂單跳轉到 OkPay 支付頁。`,OAe=()=>`允许收银台订单跳转到 OkPay 支付页。`,kAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?CAe(e):n===`ja-JP`?wAe(e):n===`ko-KR`?TAe(e):n===`ru-RU`?EAe(e):n===`zh-TW`?DAe(e):OAe(e)}),AAe=()=>`Shop ID`,jAe=()=>`Shop ID`,MAe=()=>`Shop ID`,NAe=()=>`Shop ID`,PAe=()=>`商戶 ID`,FAe=()=>`商户 ID`,IAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?AAe(e):n===`ja-JP`?jAe(e):n===`ko-KR`?MAe(e):n===`ru-RU`?NAe(e):n===`zh-TW`?PAe(e):FAe(e)}),LAe=()=>`Please enter the OkPay shop ID`,RAe=()=>`Please enter the OkPay shop ID`,zAe=()=>`Please enter the OkPay shop ID`,BAe=()=>`Please enter the OkPay shop ID`,VAe=()=>`請輸入 OkPay 商戶 ID`,HAe=()=>`请输入 OkPay 商户 ID`,UAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?LAe(e):n===`ja-JP`?RAe(e):n===`ko-KR`?zAe(e):n===`ru-RU`?BAe(e):n===`zh-TW`?VAe(e):HAe(e)}),WAe=()=>`Shop Token`,GAe=()=>`Shop Token`,KAe=()=>`Shop Token`,qAe=()=>`Shop Token`,JAe=()=>`商戶 Token`,YAe=()=>`商户 Token`,XAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?WAe(e):n===`ja-JP`?GAe(e):n===`ko-KR`?KAe(e):n===`ru-RU`?qAe(e):n===`zh-TW`?JAe(e):YAe(e)}),ZAe=()=>`Please enter the OkPay shop token`,QAe=()=>`Please enter the OkPay shop token`,$Ae=()=>`Please enter the OkPay shop token`,eje=()=>`Please enter the OkPay shop token`,tje=()=>`請輸入 OkPay 商戶 Token`,nje=()=>`请输入 OkPay 商户 Token`,rje=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ZAe(e):n===`ja-JP`?QAe(e):n===`ko-KR`?$Ae(e):n===`ru-RU`?eje(e):n===`zh-TW`?tje(e):nje(e)}),ije=()=>`API URL`,aje=()=>`API URL`,oje=()=>`API URL`,sje=()=>`API URL`,cje=()=>`API 位址`,lje=()=>`API 地址`,uje=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ije(e):n===`ja-JP`?aje(e):n===`ko-KR`?oje(e):n===`ru-RU`?sje(e):n===`zh-TW`?cje(e):lje(e)}),dje=()=>`Callback URL`,fje=()=>`Callback URL`,pje=()=>`Callback URL`,mje=()=>`Callback URL`,hje=()=>`回調位址`,gje=()=>`回调地址`,_je=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dje(e):n===`ja-JP`?fje(e):n===`ko-KR`?pje(e):n===`ru-RU`?mje(e):n===`zh-TW`?hje(e):gje(e)}),vje=()=>`Please enter a valid callback URL`,yje=()=>`Please enter a valid callback URL`,bje=()=>`Please enter a valid callback URL`,xje=()=>`Please enter a valid callback URL`,Sje=()=>`請輸入有效的回調位址`,Cje=()=>`请输入有效的回调地址`,wje=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vje(e):n===`ja-JP`?yje(e):n===`ko-KR`?bje(e):n===`ru-RU`?xje(e):n===`zh-TW`?Sje(e):Cje(e)}),Tje=()=>`Return URL`,Eje=()=>`Return URL`,Dje=()=>`Return URL`,Oje=()=>`Return URL`,kje=()=>`返回位址`,Aje=()=>`返回地址`,jje=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Tje(e):n===`ja-JP`?Eje(e):n===`ko-KR`?Dje(e):n===`ru-RU`?Oje(e):n===`zh-TW`?kje(e):Aje(e)}),Mje=()=>`Timeout (seconds)`,Nje=()=>`Timeout (seconds)`,Pje=()=>`Timeout (seconds)`,Fje=()=>`Timeout (seconds)`,Ije=()=>`逾時時間(秒)`,Lje=()=>`超时时间(秒)`,Rje=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Mje(e):n===`ja-JP`?Nje(e):n===`ko-KR`?Pje(e):n===`ru-RU`?Fje(e):n===`zh-TW`?Ije(e):Lje(e)}),zje=()=>`Please enter the timeout`,Bje=()=>`Please enter the timeout`,Vje=()=>`Please enter the timeout`,Hje=()=>`Please enter the timeout`,Uje=()=>`請輸入逾時時間`,Wje=()=>`请输入超时时间`,Gje=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zje(e):n===`ja-JP`?Bje(e):n===`ko-KR`?Vje(e):n===`ru-RU`?Hje(e):n===`zh-TW`?Uje(e):Wje(e)}),Kje=()=>`Timeout must be a positive integer`,qje=()=>`Timeout must be a positive integer`,Jje=()=>`Timeout must be a positive integer`,Yje=()=>`Timeout must be a positive integer`,Xje=()=>`逾時時間必須是正整數`,Zje=()=>`超时时间必须是正整数`,Qje=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Kje(e):n===`ja-JP`?qje(e):n===`ko-KR`?Jje(e):n===`ru-RU`?Yje(e):n===`zh-TW`?Xje(e):Zje(e)}),$je=()=>`Allowed Tokens`,eMe=()=>`Allowed Tokens`,tMe=()=>`Allowed Tokens`,nMe=()=>`Allowed Tokens`,rMe=()=>`允許代幣`,iMe=()=>`允许代币`,aMe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$je(e):n===`ja-JP`?eMe(e):n===`ko-KR`?tMe(e):n===`ru-RU`?nMe(e):n===`zh-TW`?rMe(e):iMe(e)}),oMe=()=>`Comma-separated token symbols, for example USDT,USDC.`,sMe=()=>`Comma-separated token symbols, for example USDT,USDC.`,cMe=()=>`Comma-separated token symbols, for example USDT,USDC.`,lMe=()=>`Comma-separated token symbols, for example USDT,USDC.`,uMe=()=>`多個代幣用英文逗號分隔,例如 USDT,USDC。`,dMe=()=>`多个代币用英文逗号分隔,例如 USDT,USDC。`,fMe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?oMe(e):n===`ja-JP`?sMe(e):n===`ko-KR`?cMe(e):n===`ru-RU`?lMe(e):n===`zh-TW`?uMe(e):dMe(e)}),pMe=()=>`Save OkPay Config`,mMe=()=>`Save OkPay Config`,hMe=()=>`Save OkPay Config`,gMe=()=>`Save OkPay Config`,_Me=()=>`儲存 OkPay 配置`,vMe=()=>`保存 OkPay 配置`,yMe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pMe(e):n===`ja-JP`?mMe(e):n===`ko-KR`?hMe(e):n===`ru-RU`?gMe(e):n===`zh-TW`?_Me(e):vMe(e)}),bMe=()=>`OkPay config saved`,xMe=()=>`OkPay config saved`,SMe=()=>`OkPay config saved`,CMe=()=>`OkPay config saved`,wMe=()=>`OkPay 配置已儲存`,TMe=()=>`OkPay 配置已保存`,EMe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bMe(e):n===`ja-JP`?xMe(e):n===`ko-KR`?SMe(e):n===`ru-RU`?CMe(e):n===`zh-TW`?wMe(e):TMe(e)}),DMe=()=>`Reset to defaults`,OMe=()=>`Reset to defaults`,kMe=()=>`Reset to defaults`,AMe=()=>`Reset to defaults`,jMe=()=>`重置為預設值`,MMe=()=>`重置为默认值`,NMe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?DMe(e):n===`ja-JP`?OMe(e):n===`ko-KR`?kMe(e):n===`ru-RU`?AMe(e):n===`zh-TW`?jMe(e):MMe(e)}),PMe=()=>`OkPay config reset to defaults`,FMe=()=>`OkPay config reset to defaults`,IMe=()=>`OkPay config reset to defaults`,LMe=()=>`OkPay config reset to defaults`,RMe=()=>`OkPay 配置已重置為預設值`,zMe=()=>`OkPay 配置已重置为默认值`,BMe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?PMe(e):n===`ja-JP`?FMe(e):n===`ko-KR`?IMe(e):n===`ru-RU`?LMe(e):n===`zh-TW`?RMe(e):zMe(e)}),VMe=()=>`OkPay`,HMe=()=>`OkPay`,UMe=()=>`OkPay`,WMe=()=>`OkPay`,GMe=()=>`OkPay`,KMe=()=>`OkPay`,qMe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?VMe(e):n===`ja-JP`?HMe(e):n===`ko-KR`?UMe(e):n===`ru-RU`?WMe(e):n===`zh-TW`?GMe(e):KMe(e)}),JMe=()=>`Open OkPay in Telegram to complete payment`,YMe=()=>`Telegram で OkPay を開いて支払う`,XMe=()=>`Telegram에서 OkPay를 열어 결제`,ZMe=()=>`Откройте OkPay в Telegram для оплаты`,QMe=()=>`透過 Telegram 開啟 OkPay 完成支付`,$Me=()=>`通过 Telegram 打开 OkPay 完成支付`,eNe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?JMe(e):n===`ja-JP`?YMe(e):n===`ko-KR`?XMe(e):n===`ru-RU`?ZMe(e):n===`zh-TW`?QMe(e):$Me(e)}),tNe=()=>`Opening OkPay payment window`,nNe=()=>`OkPay 支払いウィンドウを開いています`,rNe=()=>`OkPay 결제 창을 여는 중`,iNe=()=>`Открываем окно оплаты OkPay`,aNe=()=>`正在開啟 OkPay 支付視窗`,oNe=()=>`正在打开 OkPay 支付窗口`,sNe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tNe(e):n===`ja-JP`?nNe(e):n===`ko-KR`?rNe(e):n===`ru-RU`?iNe(e):n===`zh-TW`?aNe(e):oNe(e)});export{xEe as $,b0 as $a,SP as $c,Sp as $d,xo as $f,b7 as $i,SD as $l,xfe as $n,SJ as $o,a as $p,xae as $r,SV as $s,xye as $t,Sb as $u,bke as A,y3 as Aa,xL as Ac,xg as Ad,bl as Af,bte as Ai,xA as Al,bhe as An,xZ as Ao,yn as Ap,bce as Ar,xW as As,bSe as At,xC as Au,iOe as B,r4 as Ba,aI as Bc,ah as Bd,ic as Bf,iee as Bi,ak as Bl,ime as Bn,aX as Bo,nt as Bp,ise as Br,aU as Bs,ixe as Bt,aS as Bu,hAe as C,m6 as Ca,gR as Cc,g_ as Cd,hu as Cf,hne as Ci,gj as Cl,hge as Cn,gQ as Co,mr as Cp,hle as Cr,gG as Cs,hCe as Ct,gw as Cu,Vke as D,B3 as Da,HL as Dc,Hg as Dd,Vl as Df,Vte as Di,HA as Dl,Vhe as Dn,HZ as Do,Bn as Dp,Vce as Dr,HW as Ds,VSe as Dt,HC as Du,Jke as E,q3 as Ea,YL as Ec,Yg as Ed,Jl as Ef,Jte as Ei,YA as El,Jhe as En,YZ as Eo,qn as Ep,Jce as Er,YW as Es,JSe as Et,YC as Eu,zOe as F,R4 as Fa,BI as Fc,Bh as Fd,zc as Ff,zee as Fi,Bk as Fl,zme as Fn,BX as Fo,Lt as Fp,zse as Fr,BU as Fs,zxe as Ft,BS as Fu,CDe as G,S2 as Ga,wF as Gc,wm as Gd,Cs as Gf,S9 as Gi,wO as Gl,Cpe as Gn,wY as Go,xe as Gp,Coe as Gr,wH as Gs,Cbe as Gt,wx as Gu,WDe as H,U2 as Ha,GF as Hc,Gm as Hd,Ws as Hf,U9 as Hi,GO as Hl,Wpe as Hn,GY as Ho,He as Hp,Woe as Hr,GH as Hs,Wbe as Ht,Gx as Hu,MOe as I,j4 as Ia,NI as Ic,Nh as Id,Mc as If,Mee as Ii,Nk as Il,Mme as In,NX as Io,At as Ip,Mse as Ir,NU as Is,Mxe as It,NS as Iu,nDe as J,t2 as Ja,rF as Jc,rm as Jd,ns as Jf,t9 as Ji,rO as Jl,npe as Jn,rY as Jo,Z as Jp,noe as Jr,rH as Js,nbe as Jt,rx as Ju,gDe as K,h2 as Ka,_F as Kc,_m as Kd,gs as Kf,h9 as Ki,_O as Kl,gpe as Kn,_Y as Ko,me as Kp,goe as Kr,_H as Ks,gbe as Kt,_x as Ku,TOe as L,w4 as La,EI as Lc,Eh as Ld,Tc as Lf,Tee as Li,Ek as Ll,Tme as Ln,EX as Lo,Ct as Lp,Tse as Lr,EU as Ls,Txe as Lt,ES as Lu,oke as M,a3 as Ma,sL as Mc,sg as Md,ol as Mf,ote as Mi,sA as Ml,ohe as Mn,sZ as Mo,an as Mp,oce as Mr,sW as Ms,oSe as Mt,sC as Mu,$Oe as N,Q4 as Na,eL as Nc,eg as Nd,$c as Nf,$ee as Ni,eA as Nl,$me as Nn,eZ as No,Zt as Np,$se as Nr,eW as Ns,$xe as Nt,eC as Nu,Pke as O,N3 as Oa,FL as Oc,Fg as Od,Pl as Of,Pte as Oi,FA as Ol,Phe as On,FZ as Oo,Nn as Op,Pce as Or,FW as Os,PSe as Ot,FC as Ou,KOe as P,G4 as Pa,qI as Pc,qh as Pd,Kc as Pf,Kee as Pi,qk as Pl,Kme as Pn,qX as Po,Wt as Pp,Kse as Pr,qU as Ps,Kxe as Pt,qS as Pu,OEe as Q,D0 as Qa,kP as Qc,kp as Qd,Oo as Qf,D7 as Qi,kD as Ql,Ofe as Qn,kJ as Qo,m as Qp,Oae as Qr,kV as Qs,Oye as Qt,kb as Qu,vOe as R,_4 as Ra,yI as Rc,yh as Rd,vc as Rf,vee as Ri,yk as Rl,vme as Rn,yX as Ro,gt as Rp,vse as Rr,yU as Rs,vxe as Rt,yS as Ru,SAe as S,x6 as Sa,CR as Sc,C_ as Sd,Su as Sf,Sne as Si,Cj as Sl,Sge as Sn,CQ as So,xr as Sp,Sle as Sr,CG as Ss,SCe as St,Cw as Su,tAe as T,e6 as Ta,nR as Tc,n_ as Td,tu as Tf,tne as Ti,nj as Tl,tge as Tn,nQ as To,er as Tp,tle as Tr,nG as Ts,tCe as Tt,nw as Tu,LDe as U,I2 as Ua,RF as Uc,Rm as Ud,Ls as Uf,I9 as Ui,RO as Ul,Lpe as Un,RY as Uo,Fe as Up,Loe as Ur,RH as Us,Lbe as Ut,Rx as Uu,ZDe as V,X2 as Va,QF as Vc,Qm as Vd,Zs as Vf,X9 as Vi,QO as Vl,Zpe as Vn,QY as Vo,Ye as Vp,Zoe as Vr,QH as Vs,Zbe as Vt,Qx as Vu,ADe as W,k2 as Wa,jF as Wc,jm as Wd,As as Wf,k9 as Wi,jO as Wl,Ape as Wn,jY as Wo,Oe as Wp,Aoe as Wr,jH as Ws,Abe as Wt,jx as Wu,HEe as X,V0 as Xa,UP as Xc,Up as Xd,Ho as Xf,V7 as Xi,UD as Xl,Hfe as Xn,UJ as Xo,L as Xp,Hae as Xr,UV as Xs,Hye as Xt,Ub as Xu,YEe as Y,J0 as Ya,XP as Yc,Xp as Yd,Yo as Yf,J7 as Yi,XD as Yl,Yfe as Yn,XJ as Yo,W as Yp,Yae as Yr,XV as Ys,Yye as Yt,Xb as Yu,FEe as Z,P0 as Za,IP as Zc,Ip as Zd,Fo as Zf,P7 as Zi,ID as Zl,Ffe as Zn,IJ as Zo,A as Zp,Fae as Zr,IV as Zs,Fye as Zt,Ib as Zu,rje as _,n8 as _a,iz as _c,iv as _d,rd as _f,rre as _i,iM as _l,r_e as _n,i$ as _o,ni as _p,rue as _r,iK as _s,rwe as _t,iT as _u,NMe as a,M5 as aa,PB as ac,Py as ad,Pf as af,Nie as ai,PN as al,Nve as an,P1 as ao,Ma as ap,Nde as ar,Pq as as,NTe as at,PE as au,IAe as b,F6 as ba,LR as bc,L_ as bd,Iu as bf,Ine as bi,Lj as bl,Ige as bn,LQ as bo,Fr as bp,Ile as br,LG as bs,ICe as bt,Lw as bu,fMe as c,d5 as ca,pB as cc,py as cd,pf as cf,fie as ci,pN as cl,fve as cn,p1 as co,da as cp,fde as cr,pq as cs,fTe as ct,pE as cu,Gje as d,W8 as da,Kz as dc,Kv as dd,Gd as df,Gre as di,KM as dl,G_e as dn,K$ as do,Wi as dp,Gue as dr,KK as ds,Gwe as dt,KT as du,p7 as ea,hV as ec,hb as ed,hp as ef,mae as ei,hP as el,_ as em,mye as en,p0 as eo,mo as ep,mfe as er,hJ as es,mEe as et,hD as eu,Rje as f,L8 as fa,zz as fc,zv as fd,Rd as ff,Rre as fi,zM as fl,R_e as fn,z$ as fo,Li as fp,Rue as fr,zK as fs,Rwe as ft,zT as fu,uje as g,l8 as ga,dz as gc,dv as gd,ud as gf,ure as gi,dM as gl,u_e as gn,d$ as go,li as gp,uue as gr,dK as gs,uwe as gt,dT as gu,_je as h,g8 as ha,vz as hc,vv as hd,_d as hf,_re as hi,vM as hl,__e as hn,v$ as ho,gi as hp,_ue as hr,vK as hs,_we as ht,vT as hu,BMe as i,z5 as ia,VB as ic,Vy as id,Vf as if,Bie as ii,VN as il,Bve as in,V1 as io,za as ip,Bde as ir,Vq as is,BTe as it,VE as iu,pke as j,f3 as ja,mL as jc,mg as jd,pl as jf,pte as ji,mA as jl,phe as jn,mZ as jo,fn as jp,pce as jr,mW as js,pSe as jt,mC as ju,Dke as k,E3 as ka,OL as kc,Og as kd,Dl as kf,Dte as ki,OA as kl,Dhe as kn,OZ as ko,En as kp,Dce as kr,OW as ks,DSe as kt,OC as ku,aMe as l,i5 as la,oB as lc,oy as ld,of as lf,aie as li,oN as ll,ave as ln,o1 as lo,ia as lp,ade as lr,oq as ls,aTe as lt,oE as lu,wje as m,C8 as ma,Tz as mc,Tv as md,wd as mf,wre as mi,TM as ml,w_e as mn,T$ as mo,Ci as mp,wue as mr,TK as ms,wwe as mt,TT as mu,eNe as n,$5 as na,tV as nc,tb as nd,tp as nf,eae as ni,tP as nl,eye as nn,e0 as no,$a as np,efe as nr,tJ as ns,eEe as nt,tD as nu,EMe as o,T5 as oa,DB as oc,Dy as od,Df as of,Eie as oi,DN as ol,Eve as on,D1 as oo,Ta as op,Ede as or,Dq as os,ETe as ot,DE as ou,jje as p,A8 as pa,Mz as pc,Mv as pd,jd as pf,jre as pi,MM as pl,j_e as pn,M$ as po,Ai as pp,jue as pr,MK as ps,jwe as pt,MT as pu,lDe as q,c2 as qa,uF as qc,um as qd,ls as qf,c9 as qi,uO as ql,lpe as qn,uY as qo,se as qp,loe as qr,uH as qs,lbe as qt,ux as qu,qMe as r,K5 as ra,JB as rc,Jy as rd,Jf as rf,qie as ri,JN as rl,qve as rn,J1 as ro,Ka as rp,qde as rr,Jq as rs,qTe as rt,JE as ru,yMe as s,v5 as sa,bB as sc,by as sd,bf as sf,yie as si,bN as sl,yve as sn,b1 as so,va as sp,yde as sr,bq as ss,yTe as st,bE as su,sNe as t,o7 as ta,cV as tc,cb as td,cp as tf,sae as ti,cP as tl,n as tm,sye as tn,eee as to,oo as tp,sfe as tr,cJ as ts,sEe as tt,cD as tu,Qje as u,Z8 as ua,$z as uc,$v as ud,Qd as uf,Qre as ui,$M as ul,Q_e as un,$$ as uo,Zi as up,Que as ur,$K as us,Qwe as ut,$T as uu,XAe as v,Y6 as va,ZR as vc,Z_ as vd,Xu as vf,Xne as vi,Zj as vl,Xge as vn,ZQ as vo,Yr as vp,Xle as vr,ZG as vs,XCe as vt,Zw as vu,cAe as w,s6 as wa,lR as wc,l_ as wd,cu as wf,cne as wi,lj as wl,cge as wn,lQ as wo,sr as wp,cle as wr,lG as ws,cCe as wt,lw as wu,kAe as x,O6 as xa,AR as xc,A_ as xd,ku as xf,kne as xi,Aj as xl,kge as xn,AQ as xo,Or as xp,kle as xr,AG as xs,kCe as xt,Aw as xu,UAe as y,H6 as ya,WR as yc,W_ as yd,Uu as yf,Une as yi,Wj as yl,Uge as yn,WQ as yo,Hr as yp,Ule as yr,WG as ys,UCe as yt,Ww as yu,dOe as z,u4 as za,fI as zc,fh as zd,dc as zf,dee as zi,fk as zl,dme as zn,fX as zo,lt as zp,dse as zr,fU as zs,dxe as zt,fS as zu}; \ No newline at end of file diff --git a/src/www/assets/messages-CL4J6BaJ.js b/src/www/assets/messages-CL4J6BaJ.js new file mode 100644 index 0000000..ba1ca28 --- /dev/null +++ b/src/www/assets/messages-CL4J6BaJ.js @@ -0,0 +1 @@ +import{t as e}from"./chunk-DECur_0Z.js";var t=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),n=e(((e,n)=>{n.exports=t()})),r={},i=`en-US`,a=[`en-US`,`ja-JP`,`ko-KR`,`ru-RU`,`zh-TW`,`zh-CN`],o=`PARAGLIDE_LOCALE`,ee=3456e4,s=[`cookie`,`preferredLanguage`,`baseLocale`],c=[],l,u;function te(e){if(c.length===0)return;let t=typeof e==`string`?e:e.href;if(l===t)return u;let n=new URL(t,`http://dummy.com`),i;for(let e of c)if(new r(e.match,n.href).exec(n.href)){i=e;break}return l=t,u=i,i}function d(e){let t=te(e);return t&&t.exclude!==!0&&Array.isArray(t.strategy)?t.strategy:s}var f=void 0;globalThis.__paraglide=globalThis.__paraglide??{},globalThis.__paraglide.ssr=globalThis.__paraglide.ssr??{};var p=!1,m=()=>{if(f){let e=f?.getStore()?.locale;if(e)return e}let e=s;typeof window<`u`&&window.location?.href&&(e=d(window.location.href));let t=h(e,typeof window<`u`?window.location?.href:void 0);if(t)return p||(p=!0,_(t,{reload:!1})),t;throw Error(`No locale found. Read the docs https://inlang.com/m/gerre34r/library-inlang-paraglideJs/errors#no-locale-found`)};function h(e,t){let n;for(let t of e){if(t===`cookie`)n=b();else if(t===`baseLocale`)n=i;else if(t===`preferredLanguage`)n=x();else if(C(t)&&S.has(t)){let e=S.get(t);if(e){let t=e.getLocale();if(t instanceof Promise)continue;if(t!==void 0)return y(t)}}let e=v(n);if(e)return e}}var g=e=>{e?window.location.href=e:window.location.reload()},_=(e,t)=>{let n={reload:!0,...t},r;try{r=m()}catch{}let i=[],a=s;typeof window<`u`&&window.location?.href&&(a=d(window.location.href));for(let t of a)if(t===`cookie`){if(typeof document>`u`||typeof window>`u`)continue;let t=`${o}=${e}; path=/; max-age=${ee}`;document.cookie=t}else if(t===`baseLocale`)continue;else if(C(t)&&S.has(t)){let n=S.get(t);if(n){let r=n.setLocale(e);r instanceof Promise&&(r=r.catch(e=>{throw Error(`Custom strategy "${t}" setLocale failed.`,{cause:e})}),i.push(r))}}let c=()=>{n.reload&&window.location&&e!==r&&g(void 0)};if(i.length)return Promise.all(i).then(()=>{c()});c()};function v(e){if(typeof e!=`string`)return;let t=e.toLowerCase();for(let e of a)if(e.toLowerCase()===t)return e}function y(e){let t=v(e);if(t)return t;throw Error(`Invalid locale: ${e}. Expected one of: ${a.join(`, `)}`)}function b(){if(typeof document>`u`||!document.cookie)return;let e=document.cookie.match(RegExp(`(^| )${o}=([^;]+)`))?.[2];return v(e)}function x(){if(!navigator?.languages?.length)return;let e=navigator.languages.map(e=>({fullTag:e,baseTag:e.split(`-`)[0]}));for(let t of e){let e=v(t.fullTag);if(e)return e;let n=v(t.baseTag);if(n)return n}}var S=new Map;function C(e){return typeof e==`string`&&/^custom-[A-Za-z0-9_-]+$/.test(e)}var w=()=>`Search`,T=()=>`Search`,E=()=>`Search`,D=()=>`Search`,O=()=>`搜尋`,k=()=>`搜索`,A=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?w(e):n===`ja-JP`?T(e):n===`ko-KR`?E(e):n===`ru-RU`?D(e):n===`zh-TW`?O(e):k(e)}),j=()=>`Cancel`,M=()=>`Cancel`,N=()=>`Cancel`,P=()=>`Cancel`,F=()=>`取消`,I=()=>`取消`,L=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?j(e):n===`ja-JP`?M(e):n===`ko-KR`?N(e):n===`ru-RU`?P(e):n===`zh-TW`?F(e):I(e)}),R=()=>`Continue`,z=()=>`Continue`,B=()=>`Continue`,V=()=>`Continue`,H=()=>`繼續`,U=()=>`继续`,W=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?R(e):n===`ja-JP`?z(e):n===`ko-KR`?B(e):n===`ru-RU`?V(e):n===`zh-TW`?H(e):U(e)}),G=()=>`Change Password`,K=()=>`Change Password`,q=()=>`Change Password`,J=()=>`Change Password`,Y=()=>`修改密碼`,X=()=>`修改密码`,Z=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?G(e):n===`ja-JP`?K(e):n===`ko-KR`?q(e):n===`ru-RU`?J(e):n===`zh-TW`?Y(e):X(e)}),Q=()=>`Sign out`,ne=()=>`Sign out`,re=()=>`Sign out`,ie=()=>`Sign out`,ae=()=>`退出登入`,oe=()=>`退出登录`,se=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Q(e):n===`ja-JP`?ne(e):n===`ko-KR`?re(e):n===`ru-RU`?ie(e):n===`zh-TW`?ae(e):oe(e)}),ce=()=>`Are you sure you want to sign out? You will need to sign in again to access your account.`,le=()=>`Are you sure you want to sign out? You will need to sign in again to access your account.`,ue=()=>`Are you sure you want to sign out? You will need to sign in again to access your account.`,de=()=>`Are you sure you want to sign out? You will need to sign in again to access your account.`,fe=()=>`您確定要退出登入嗎?您需要重新登入才能訪問您的賬戶。`,pe=()=>`您确定要退出登录吗?您需要重新登录才能访问您的账户。`,me=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ce(e):n===`ja-JP`?le(e):n===`ko-KR`?ue(e):n===`ru-RU`?de(e):n===`zh-TW`?fe(e):pe(e)}),he=()=>`Toggle theme`,ge=()=>`テーマを切り替え`,_e=()=>`테마 전환`,ve=()=>`Переключить тему`,ye=()=>`切換主題`,be=()=>`切换主题`,xe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?he(e):n===`ja-JP`?ge(e):n===`ko-KR`?_e(e):n===`ru-RU`?ve(e):n===`zh-TW`?ye(e):be(e)}),Se=()=>`Light`,Ce=()=>`ライト`,we=()=>`라이트`,Te=()=>`Светлая`,Ee=()=>`淺色`,De=()=>`浅色`,Oe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Se(e):n===`ja-JP`?Ce(e):n===`ko-KR`?we(e):n===`ru-RU`?Te(e):n===`zh-TW`?Ee(e):De(e)}),ke=()=>`Dark`,Ae=()=>`ダーク`,je=()=>`다크`,Me=()=>`Темная`,Ne=()=>`深色`,Pe=()=>`深色`,Fe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ke(e):n===`ja-JP`?Ae(e):n===`ko-KR`?je(e):n===`ru-RU`?Me(e):n===`zh-TW`?Ne(e):Pe(e)}),Ie=()=>`System`,Le=()=>`システム`,Re=()=>`시스템`,ze=()=>`Системная`,Be=()=>`系統`,Ve=()=>`系统`,He=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ie(e):n===`ja-JP`?Le(e):n===`ko-KR`?Re(e):n===`ru-RU`?ze(e):n===`zh-TW`?Be(e):Ve(e)}),Ue=()=>`Skip to Main`,We=()=>`Skip to Main`,Ge=()=>`Skip to Main`,Ke=()=>`Skip to Main`,qe=()=>`跳至主內容`,Je=()=>`跳至主内容`,Ye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ue(e):n===`ja-JP`?We(e):n===`ko-KR`?Ge(e):n===`ru-RU`?Ke(e):n===`zh-TW`?qe(e):Je(e)}),Xe=()=>`Switch language`,Ze=()=>`言語を切り替え`,Qe=()=>`언어 전환`,$e=()=>`Сменить язык`,et=()=>`切換語言`,tt=()=>`切换语言`,nt=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Xe(e):n===`ja-JP`?Ze(e):n===`ko-KR`?Qe(e):n===`ru-RU`?$e(e):n===`zh-TW`?et(e):tt(e)}),rt=()=>`Learn more`,it=()=>`Learn more`,at=()=>`Learn more`,ot=()=>`Learn more`,st=()=>`瞭解更多`,ct=()=>`了解更多`,lt=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rt(e):n===`ja-JP`?it(e):n===`ko-KR`?at(e):n===`ru-RU`?ot(e):n===`zh-TW`?st(e):ct(e)}),ut=()=>`Coming Soon`,dt=()=>`Coming Soon`,ft=()=>`Coming Soon`,pt=()=>`Coming Soon`,mt=()=>`即將推出`,ht=()=>`即将推出`,gt=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ut(e):n===`ja-JP`?dt(e):n===`ko-KR`?ft(e):n===`ru-RU`?pt(e):n===`zh-TW`?mt(e):ht(e)}),_t=()=>`We are putting the finishing touches on this feature. Stay tuned for a better experience.`,vt=()=>`We are putting the finishing touches on this feature. Stay tuned for a better experience.`,yt=()=>`We are putting the finishing touches on this feature. Stay tuned for a better experience.`,bt=()=>`We are putting the finishing touches on this feature. Stay tuned for a better experience.`,xt=()=>`我們正在打磨這一功能,敬請期待更好的體驗`,St=()=>`我们正在打磨这一功能,敬请期待更好的体验`,Ct=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_t(e):n===`ja-JP`?vt(e):n===`ko-KR`?yt(e):n===`ru-RU`?bt(e):n===`zh-TW`?xt(e):St(e)}),wt=()=>`Hang tight 👀`,Tt=()=>`Hang tight 👀`,Et=()=>`Hang tight 👀`,Dt=()=>`Hang tight 👀`,Ot=()=>`再等等 👀`,kt=()=>`再等等 👀`,At=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wt(e):n===`ja-JP`?Tt(e):n===`ko-KR`?Et(e):n===`ru-RU`?Dt(e):n===`zh-TW`?Ot(e):kt(e)}),jt=()=>`Type a command or search...`,Mt=()=>`Type a command or search...`,Nt=()=>`Type a command or search...`,Pt=()=>`Type a command or search...`,Ft=()=>`輸入命令或搜尋...`,It=()=>`输入命令或搜索...`,Lt=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jt(e):n===`ja-JP`?Mt(e):n===`ko-KR`?Nt(e):n===`ru-RU`?Pt(e):n===`zh-TW`?Ft(e):It(e)}),Rt=()=>`No results found.`,zt=()=>`No results found.`,Bt=()=>`No results found.`,Vt=()=>`No results found.`,Ht=()=>`未找到結果。`,Ut=()=>`未找到结果。`,Wt=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Rt(e):n===`ja-JP`?zt(e):n===`ko-KR`?Bt(e):n===`ru-RU`?Vt(e):n===`zh-TW`?Ht(e):Ut(e)}),Gt=()=>`Theme Settings`,Kt=()=>`Theme Settings`,qt=()=>`Theme Settings`,Jt=()=>`Theme Settings`,Yt=()=>`主題設定`,Xt=()=>`主题设置`,Zt=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Gt(e):n===`ja-JP`?Kt(e):n===`ko-KR`?qt(e):n===`ru-RU`?Jt(e):n===`zh-TW`?Yt(e):Xt(e)}),Qt=()=>`Adjust the appearance and layout to suit your preferences.`,$t=()=>`Adjust the appearance and layout to suit your preferences.`,en=()=>`Adjust the appearance and layout to suit your preferences.`,tn=()=>`Adjust the appearance and layout to suit your preferences.`,nn=()=>`調整外觀和佈局以適合您的偏好。`,rn=()=>`调整外观和布局以适合您的偏好。`,an=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Qt(e):n===`ja-JP`?$t(e):n===`ko-KR`?en(e):n===`ru-RU`?tn(e):n===`zh-TW`?nn(e):rn(e)}),on=()=>`Reset`,sn=()=>`Reset`,cn=()=>`Reset`,ln=()=>`Reset`,un=()=>`重置`,dn=()=>`重置`,fn=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?on(e):n===`ja-JP`?sn(e):n===`ko-KR`?cn(e):n===`ru-RU`?ln(e):n===`zh-TW`?un(e):dn(e)}),pn=()=>`Theme`,mn=()=>`Theme`,hn=()=>`Theme`,gn=()=>`Theme`,_n=()=>`主題`,vn=()=>`主题`,yn=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pn(e):n===`ja-JP`?mn(e):n===`ko-KR`?hn(e):n===`ru-RU`?gn(e):n===`zh-TW`?_n(e):vn(e)}),bn=()=>`Sidebar`,xn=()=>`Sidebar`,Sn=()=>`Sidebar`,Cn=()=>`Sidebar`,wn=()=>`側邊欄`,Tn=()=>`侧边栏`,En=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bn(e):n===`ja-JP`?xn(e):n===`ko-KR`?Sn(e):n===`ru-RU`?Cn(e):n===`zh-TW`?wn(e):Tn(e)}),Dn=()=>`Layout`,On=()=>`Layout`,kn=()=>`Layout`,An=()=>`Layout`,jn=()=>`佈局`,Mn=()=>`布局`,Nn=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Dn(e):n===`ja-JP`?On(e):n===`ko-KR`?kn(e):n===`ru-RU`?An(e):n===`zh-TW`?jn(e):Mn(e)}),Pn=()=>`Direction`,Fn=()=>`Direction`,In=()=>`Direction`,Ln=()=>`Direction`,Rn=()=>`方向`,zn=()=>`方向`,Bn=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Pn(e):n===`ja-JP`?Fn(e):n===`ko-KR`?In(e):n===`ru-RU`?Ln(e):n===`zh-TW`?Rn(e):zn(e)}),Vn=()=>`Inset`,Hn=()=>`Inset`,Un=()=>`Inset`,Wn=()=>`Inset`,Gn=()=>`嵌入`,Kn=()=>`嵌入`,qn=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Vn(e):n===`ja-JP`?Hn(e):n===`ko-KR`?Un(e):n===`ru-RU`?Wn(e):n===`zh-TW`?Gn(e):Kn(e)}),Jn=()=>`Floating`,Yn=()=>`Floating`,Xn=()=>`Floating`,Zn=()=>`Floating`,Qn=()=>`浮動`,$n=()=>`浮动`,er=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Jn(e):n===`ja-JP`?Yn(e):n===`ko-KR`?Xn(e):n===`ru-RU`?Zn(e):n===`zh-TW`?Qn(e):$n(e)}),tr=()=>`Sidebar`,nr=()=>`Sidebar`,rr=()=>`Sidebar`,ir=()=>`Sidebar`,ar=()=>`側邊欄`,or=()=>`侧边栏`,sr=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tr(e):n===`ja-JP`?nr(e):n===`ko-KR`?rr(e):n===`ru-RU`?ir(e):n===`zh-TW`?ar(e):or(e)}),cr=()=>`Default`,lr=()=>`Default`,ur=()=>`Default`,dr=()=>`Default`,fr=()=>`預設`,pr=()=>`默认`,mr=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cr(e):n===`ja-JP`?lr(e):n===`ko-KR`?ur(e):n===`ru-RU`?dr(e):n===`zh-TW`?fr(e):pr(e)}),hr=()=>`Compact`,gr=()=>`Compact`,_r=()=>`Compact`,vr=()=>`Compact`,yr=()=>`緊湊`,br=()=>`紧凑`,xr=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hr(e):n===`ja-JP`?gr(e):n===`ko-KR`?_r(e):n===`ru-RU`?vr(e):n===`zh-TW`?yr(e):br(e)}),Sr=()=>`Full layout`,Cr=()=>`Full layout`,wr=()=>`Full layout`,Tr=()=>`Full layout`,Er=()=>`完整佈局`,Dr=()=>`完整布局`,Or=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Sr(e):n===`ja-JP`?Cr(e):n===`ko-KR`?wr(e):n===`ru-RU`?Tr(e):n===`zh-TW`?Er(e):Dr(e)}),kr=()=>`Left to Right`,Ar=()=>`Left to Right`,jr=()=>`Left to Right`,Mr=()=>`Left to Right`,Nr=()=>`從左到右`,Pr=()=>`从左到右`,Fr=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kr(e):n===`ja-JP`?Ar(e):n===`ko-KR`?jr(e):n===`ru-RU`?Mr(e):n===`zh-TW`?Nr(e):Pr(e)}),Ir=()=>`Right to Left`,Lr=()=>`Right to Left`,Rr=()=>`Right to Left`,zr=()=>`Right to Left`,Br=()=>`從右到左`,Vr=()=>`从右到左`,Hr=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ir(e):n===`ja-JP`?Lr(e):n===`ko-KR`?Rr(e):n===`ru-RU`?zr(e):n===`zh-TW`?Br(e):Vr(e)}),Ur=()=>`Asc`,Wr=()=>`Asc`,Gr=()=>`Asc`,Kr=()=>`Asc`,qr=()=>`升序`,Jr=()=>`升序`,Yr=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ur(e):n===`ja-JP`?Wr(e):n===`ko-KR`?Gr(e):n===`ru-RU`?Kr(e):n===`zh-TW`?qr(e):Jr(e)}),Xr=()=>`Desc`,Zr=()=>`Desc`,Qr=()=>`Desc`,$r=()=>`Desc`,ei=()=>`降序`,ti=()=>`降序`,ni=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Xr(e):n===`ja-JP`?Zr(e):n===`ko-KR`?Qr(e):n===`ru-RU`?$r(e):n===`zh-TW`?ei(e):ti(e)}),ri=()=>`Hide`,ii=()=>`Hide`,ai=()=>`Hide`,oi=()=>`Hide`,si=()=>`隱藏`,ci=()=>`隐藏`,li=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ri(e):n===`ja-JP`?ii(e):n===`ko-KR`?ai(e):n===`ru-RU`?oi(e):n===`zh-TW`?si(e):ci(e)}),ui=e=>`Page ${e?.current} of ${e?.total}`,di=e=>`Page ${e?.current} of ${e?.total}`,fi=e=>`Page ${e?.current} of ${e?.total}`,pi=e=>`Page ${e?.current} of ${e?.total}`,mi=e=>`第 ${e?.current} 頁,共 ${e?.total} 頁`,hi=e=>`第 ${e?.current} 页,共 ${e?.total} 页`,gi=((e,t={})=>{let n=t.locale??m();return n===`en-US`?ui(e):n===`ja-JP`?di(e):n===`ko-KR`?fi(e):n===`ru-RU`?pi(e):n===`zh-TW`?mi(e):hi(e)}),_i=()=>`Rows per page`,vi=()=>`Rows per page`,yi=()=>`Rows per page`,bi=()=>`Rows per page`,xi=()=>`每頁行數`,Si=()=>`每页行数`,Ci=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_i(e):n===`ja-JP`?vi(e):n===`ko-KR`?yi(e):n===`ru-RU`?bi(e):n===`zh-TW`?xi(e):Si(e)}),wi=()=>`Go to first page`,Ti=()=>`Go to first page`,Ei=()=>`Go to first page`,Di=()=>`Go to first page`,Oi=()=>`跳轉到第一頁`,ki=()=>`跳转到第一页`,Ai=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wi(e):n===`ja-JP`?Ti(e):n===`ko-KR`?Ei(e):n===`ru-RU`?Di(e):n===`zh-TW`?Oi(e):ki(e)}),ji=()=>`Go to previous page`,Mi=()=>`Go to previous page`,Ni=()=>`Go to previous page`,Pi=()=>`Go to previous page`,Fi=()=>`跳轉到上一頁`,Ii=()=>`跳转到上一页`,Li=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ji(e):n===`ja-JP`?Mi(e):n===`ko-KR`?Ni(e):n===`ru-RU`?Pi(e):n===`zh-TW`?Fi(e):Ii(e)}),Ri=e=>`Go to page ${e?.page}`,zi=e=>`Go to page ${e?.page}`,Bi=e=>`Go to page ${e?.page}`,Vi=e=>`Go to page ${e?.page}`,Hi=e=>`跳轉到第 ${e?.page} 頁`,Ui=e=>`跳转到第 ${e?.page} 页`,Wi=((e,t={})=>{let n=t.locale??m();return n===`en-US`?Ri(e):n===`ja-JP`?zi(e):n===`ko-KR`?Bi(e):n===`ru-RU`?Vi(e):n===`zh-TW`?Hi(e):Ui(e)}),Gi=()=>`Go to next page`,Ki=()=>`Go to next page`,qi=()=>`Go to next page`,Ji=()=>`Go to next page`,Yi=()=>`跳轉到下一頁`,Xi=()=>`跳转到下一页`,Zi=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Gi(e):n===`ja-JP`?Ki(e):n===`ko-KR`?qi(e):n===`ru-RU`?Ji(e):n===`zh-TW`?Yi(e):Xi(e)}),Qi=()=>`Go to last page`,$i=()=>`Go to last page`,ea=()=>`Go to last page`,ta=()=>`Go to last page`,na=()=>`跳轉到最後一頁`,ra=()=>`跳转到最后一页`,ia=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Qi(e):n===`ja-JP`?$i(e):n===`ko-KR`?ea(e):n===`ru-RU`?ta(e):n===`zh-TW`?na(e):ra(e)}),aa=()=>`Filter...`,oa=()=>`Filter...`,sa=()=>`Filter...`,ca=()=>`Filter...`,la=()=>`篩選...`,ua=()=>`筛选...`,da=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?aa(e):n===`ja-JP`?oa(e):n===`ko-KR`?sa(e):n===`ru-RU`?ca(e):n===`zh-TW`?la(e):ua(e)}),fa=()=>`Reset`,pa=()=>`Reset`,ma=()=>`Reset`,ha=()=>`Reset`,ga=()=>`重置`,_a=()=>`重置`,va=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fa(e):n===`ja-JP`?pa(e):n===`ko-KR`?ma(e):n===`ru-RU`?ha(e):n===`zh-TW`?ga(e):_a(e)}),ya=()=>`Refresh`,ba=()=>`Refresh`,xa=()=>`Refresh`,Sa=()=>`Refresh`,Ca=()=>`重新整理`,wa=()=>`刷新`,Ta=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ya(e):n===`ja-JP`?ba(e):n===`ko-KR`?xa(e):n===`ru-RU`?Sa(e):n===`zh-TW`?Ca(e):wa(e)}),Ea=()=>`View`,Da=()=>`View`,Oa=()=>`View`,ka=()=>`View`,Aa=()=>`檢視`,ja=()=>`查看`,Ma=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ea(e):n===`ja-JP`?Da(e):n===`ko-KR`?Oa(e):n===`ru-RU`?ka(e):n===`zh-TW`?Aa(e):ja(e)}),Na=()=>`Toggle columns`,Pa=()=>`Toggle columns`,Fa=()=>`Toggle columns`,Ia=()=>`Toggle columns`,La=()=>`切換列`,Ra=()=>`切换列`,za=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Na(e):n===`ja-JP`?Pa(e):n===`ko-KR`?Fa(e):n===`ru-RU`?Ia(e):n===`zh-TW`?La(e):Ra(e)}),Ba=()=>`Select date range`,Va=()=>`Select date range`,Ha=()=>`Select date range`,Ua=()=>`Select date range`,Wa=()=>`選擇時間範圍`,Ga=()=>`选择时间范围`,Ka=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ba(e):n===`ja-JP`?Va(e):n===`ko-KR`?Ha(e):n===`ru-RU`?Ua(e):n===`zh-TW`?Wa(e):Ga(e)}),qa=()=>`Today`,Ja=()=>`Today`,Ya=()=>`Today`,Xa=()=>`Today`,Za=()=>`今天`,Qa=()=>`今天`,$a=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qa(e):n===`ja-JP`?Ja(e):n===`ko-KR`?Ya(e):n===`ru-RU`?Xa(e):n===`zh-TW`?Za(e):Qa(e)}),eo=()=>`Yesterday`,to=()=>`Yesterday`,no=()=>`Yesterday`,ro=()=>`Yesterday`,io=()=>`昨天`,ao=()=>`昨天`,oo=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?eo(e):n===`ja-JP`?to(e):n===`ko-KR`?no(e):n===`ru-RU`?ro(e):n===`zh-TW`?io(e):ao(e)}),so=()=>`Last 7 days`,co=()=>`Last 7 days`,lo=()=>`Last 7 days`,uo=()=>`Last 7 days`,fo=()=>`最近 7 天`,po=()=>`最近 7 天`,mo=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?so(e):n===`ja-JP`?co(e):n===`ko-KR`?lo(e):n===`ru-RU`?uo(e):n===`zh-TW`?fo(e):po(e)}),ho=()=>`Last 30 days`,go=()=>`Last 30 days`,_o=()=>`Last 30 days`,vo=()=>`Last 30 days`,yo=()=>`最近 30 天`,bo=()=>`最近 30 天`,xo=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ho(e):n===`ja-JP`?go(e):n===`ko-KR`?_o(e):n===`ru-RU`?vo(e):n===`zh-TW`?yo(e):bo(e)}),So=()=>`This month`,Co=()=>`This month`,wo=()=>`This month`,To=()=>`This month`,Eo=()=>`本月`,Do=()=>`本月`,Oo=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?So(e):n===`ja-JP`?Co(e):n===`ko-KR`?wo(e):n===`ru-RU`?To(e):n===`zh-TW`?Eo(e):Do(e)}),ko=()=>`Last month`,Ao=()=>`Last month`,jo=()=>`Last month`,Mo=()=>`Last month`,No=()=>`上月`,Po=()=>`上月`,Fo=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ko(e):n===`ja-JP`?Ao(e):n===`ko-KR`?jo(e):n===`ru-RU`?Mo(e):n===`zh-TW`?No(e):Po(e)}),Io=()=>`Overview`,Lo=()=>`Overview`,Ro=()=>`Overview`,zo=()=>`Overview`,Bo=()=>`概覽`,Vo=()=>`概览`,Ho=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Io(e):n===`ja-JP`?Lo(e):n===`ko-KR`?Ro(e):n===`ru-RU`?zo(e):n===`zh-TW`?Bo(e):Vo(e)}),Uo=()=>`Dashboard`,Wo=()=>`Dashboard`,Go=()=>`Dashboard`,Ko=()=>`Dashboard`,qo=()=>`儀表盤`,Jo=()=>`仪表盘`,Yo=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Uo(e):n===`ja-JP`?Wo(e):n===`ko-KR`?Go(e):n===`ru-RU`?Ko(e):n===`zh-TW`?qo(e):Jo(e)}),Xo=()=>`Orders`,Zo=()=>`Orders`,Qo=()=>`Orders`,$o=()=>`Orders`,es=()=>`訂單管理`,ts=()=>`订单管理`,ns=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Xo(e):n===`ja-JP`?Zo(e):n===`ko-KR`?Qo(e):n===`ru-RU`?$o(e):n===`zh-TW`?es(e):ts(e)}),rs=()=>`Payments`,is=()=>`Payments`,as=()=>`Payments`,os=()=>`Payments`,ss=()=>`支付管理`,cs=()=>`支付管理`,ls=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rs(e):n===`ja-JP`?is(e):n===`ko-KR`?as(e):n===`ru-RU`?os(e):n===`zh-TW`?ss(e):cs(e)}),us=()=>`Blockchain`,ds=()=>`Blockchain`,fs=()=>`Blockchain`,ps=()=>`Blockchain`,ms=()=>`區塊鏈`,hs=()=>`区块链`,gs=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?us(e):n===`ja-JP`?ds(e):n===`ko-KR`?fs(e):n===`ru-RU`?ps(e):n===`zh-TW`?ms(e):hs(e)}),_s=()=>`Chains & Tokens`,vs=()=>`Chains & Tokens`,ys=()=>`Chains & Tokens`,bs=()=>`Chains & Tokens`,xs=()=>`鏈與代幣`,Ss=()=>`链与代币`,Cs=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_s(e):n===`ja-JP`?vs(e):n===`ko-KR`?ys(e):n===`ru-RU`?bs(e):n===`zh-TW`?xs(e):Ss(e)}),ws=()=>`RPC Nodes`,Ts=()=>`RPC Nodes`,Es=()=>`RPC Nodes`,Ds=()=>`RPC Nodes`,Os=()=>`RPC 節點`,ks=()=>`RPC 节点`,As=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ws(e):n===`ja-JP`?Ts(e):n===`ko-KR`?Es(e):n===`ru-RU`?Ds(e):n===`zh-TW`?Os(e):ks(e)}),js=()=>`System`,Ms=()=>`System`,Ns=()=>`System`,Ps=()=>`System`,Fs=()=>`系統`,Is=()=>`系统`,Ls=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?js(e):n===`ja-JP`?Ms(e):n===`ko-KR`?Ns(e):n===`ru-RU`?Ps(e):n===`zh-TW`?Fs(e):Is(e)}),Rs=()=>`Settings`,zs=()=>`Settings`,Bs=()=>`Settings`,Vs=()=>`Settings`,Hs=()=>`系統配置`,Us=()=>`系统配置`,Ws=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Rs(e):n===`ja-JP`?zs(e):n===`ko-KR`?Bs(e):n===`ru-RU`?Vs(e):n===`zh-TW`?Hs(e):Us(e)}),Gs=()=>`Account Security`,Ks=()=>`Account Security`,qs=()=>`Account Security`,Js=()=>`Account Security`,Ys=()=>`賬戶安全`,Xs=()=>`账户安全`,Zs=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Gs(e):n===`ja-JP`?Ks(e):n===`ko-KR`?qs(e):n===`ru-RU`?Js(e):n===`zh-TW`?Ys(e):Xs(e)}),Qs=()=>`Manage your account security settings.`,$s=()=>`Manage your account security settings.`,ec=()=>`Manage your account security settings.`,tc=()=>`Manage your account security settings.`,nc=()=>`管理你的賬戶安全設定。`,rc=()=>`管理你的账户安全设置。`,ic=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Qs(e):n===`ja-JP`?$s(e):n===`ko-KR`?ec(e):n===`ru-RU`?tc(e):n===`zh-TW`?nc(e):rc(e)}),ac=()=>`Change Password`,oc=()=>`Change Password`,sc=()=>`Change Password`,cc=()=>`Change Password`,lc=()=>`修改密碼`,uc=()=>`修改密码`,dc=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ac(e):n===`ja-JP`?oc(e):n===`ko-KR`?sc(e):n===`ru-RU`?cc(e):n===`zh-TW`?lc(e):uc(e)}),fc=()=>`Change Password`,pc=()=>`Change Password`,mc=()=>`Change Password`,hc=()=>`Change Password`,gc=()=>`修改密碼`,_c=()=>`修改密码`,vc=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fc(e):n===`ja-JP`?pc(e):n===`ko-KR`?mc(e):n===`ru-RU`?hc(e):n===`zh-TW`?gc(e):_c(e)}),yc=()=>`Update your login password.`,bc=()=>`Update your login password.`,xc=()=>`Update your login password.`,Sc=()=>`Update your login password.`,Cc=()=>`更新你的登入密碼。`,wc=()=>`更新你的登录密码。`,Tc=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yc(e):n===`ja-JP`?bc(e):n===`ko-KR`?xc(e):n===`ru-RU`?Sc(e):n===`zh-TW`?Cc(e):wc(e)}),Ec=()=>`General`,Dc=()=>`General`,Oc=()=>`General`,kc=()=>`General`,Ac=()=>`基礎配置`,jc=()=>`基础配置`,Mc=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ec(e):n===`ja-JP`?Dc(e):n===`ko-KR`?Oc(e):n===`ru-RU`?kc(e):n===`zh-TW`?Ac(e):jc(e)}),Nc=()=>`Telegram`,Pc=()=>`Telegram`,Fc=()=>`Telegram`,Ic=()=>`Telegram`,Lc=()=>`Telegram 配置`,Rc=()=>`Telegram 配置`,zc=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Nc(e):n===`ja-JP`?Pc(e):n===`ko-KR`?Fc(e):n===`ru-RU`?Ic(e):n===`zh-TW`?Lc(e):Rc(e)}),Bc=()=>`Payment Config`,Vc=()=>`Payment Config`,Hc=()=>`Payment Config`,Uc=()=>`Payment Config`,Wc=()=>`支付配置`,Gc=()=>`支付配置`,Kc=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Bc(e):n===`ja-JP`?Vc(e):n===`ko-KR`?Hc(e):n===`ru-RU`?Uc(e):n===`zh-TW`?Wc(e):Gc(e)}),qc=()=>`EPay Config`,Jc=()=>`EPay Config`,Yc=()=>`EPay Config`,Xc=()=>`EPay Config`,Zc=()=>`EPay 配置`,Qc=()=>`EPay 配置`,$c=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qc(e):n===`ja-JP`?Jc(e):n===`ko-KR`?Yc(e):n===`ru-RU`?Xc(e):n===`zh-TW`?Zc(e):Qc(e)}),el=()=>`Default Token`,tl=()=>`Default Token`,nl=()=>`Default Token`,rl=()=>`Default Token`,il=()=>`預設代幣`,al=()=>`默认代币`,ol=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?el(e):n===`ja-JP`?tl(e):n===`ko-KR`?nl(e):n===`ru-RU`?rl(e):n===`zh-TW`?il(e):al(e)}),sl=()=>`Default Currency`,cl=()=>`Default Currency`,ll=()=>`Default Currency`,ul=()=>`Default Currency`,dl=()=>`預設法幣`,fl=()=>`默认法币`,pl=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sl(e):n===`ja-JP`?cl(e):n===`ko-KR`?ll(e):n===`ru-RU`?ul(e):n===`zh-TW`?dl(e):fl(e)}),ml=()=>`Default Network`,hl=()=>`Default Network`,gl=()=>`Default Network`,_l=()=>`Default Network`,vl=()=>`預設網路`,yl=()=>`默认网络`,bl=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ml(e):n===`ja-JP`?hl(e):n===`ko-KR`?gl(e):n===`ru-RU`?_l(e):n===`zh-TW`?vl(e):yl(e)}),xl=()=>`Empty config`,Sl=()=>`Empty config`,Cl=()=>`Empty config`,wl=()=>`Empty config`,Tl=()=>`空配置`,El=()=>`空配置`,Dl=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xl(e):n===`ja-JP`?Sl(e):n===`ko-KR`?Cl(e):n===`ru-RU`?wl(e):n===`zh-TW`?Tl(e):El(e)}),Ol=()=>`Please enter a default currency`,kl=()=>`Please enter a default currency`,Al=()=>`Please enter a default currency`,jl=()=>`Please enter a default currency`,Ml=()=>`請輸入預設法幣`,Nl=()=>`请输入默认法币`,Pl=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ol(e):n===`ja-JP`?kl(e):n===`ko-KR`?Al(e):n===`ru-RU`?jl(e):n===`zh-TW`?Ml(e):Nl(e)}),Fl=()=>`system error`,Il=()=>`system error`,Ll=()=>`system error`,Rl=()=>`system error`,zl=()=>`系統錯誤`,Bl=()=>`系统错误`,Vl=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Fl(e):n===`ja-JP`?Il(e):n===`ko-KR`?Ll(e):n===`ru-RU`?Rl(e):n===`zh-TW`?zl(e):Bl(e)}),Hl=()=>`signature verification failed`,Ul=()=>`signature verification failed`,Wl=()=>`signature verification failed`,Gl=()=>`signature verification failed`,Kl=()=>`簽名驗證失敗`,ql=()=>`签名验证失败`,Jl=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hl(e):n===`ja-JP`?Ul(e):n===`ko-KR`?Wl(e):n===`ru-RU`?Gl(e):n===`zh-TW`?Kl(e):ql(e)}),Yl=()=>`Wallet address already exists`,Xl=()=>`Wallet address already exists`,Zl=()=>`Wallet address already exists`,Ql=()=>`Wallet address already exists`,$l=()=>`錢包地址已存在`,eu=()=>`钱包地址已存在`,tu=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yl(e):n===`ja-JP`?Xl(e):n===`ko-KR`?Zl(e):n===`ru-RU`?Ql(e):n===`zh-TW`?$l(e):eu(e)}),nu=()=>`Order already exists`,ru=()=>`Order already exists`,iu=()=>`Order already exists`,au=()=>`Order already exists`,ou=()=>`訂單已存在`,su=()=>`订单已存在`,cu=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nu(e):n===`ja-JP`?ru(e):n===`ko-KR`?iu(e):n===`ru-RU`?au(e):n===`zh-TW`?ou(e):su(e)}),lu=()=>`No available wallet address`,uu=()=>`No available wallet address`,du=()=>`No available wallet address`,fu=()=>`No available wallet address`,pu=()=>`無可用錢包地址`,mu=()=>`无可用钱包地址`,hu=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lu(e):n===`ja-JP`?uu(e):n===`ko-KR`?du(e):n===`ru-RU`?fu(e):n===`zh-TW`?pu(e):mu(e)}),gu=()=>`Invalid payment amount`,_u=()=>`Invalid payment amount`,vu=()=>`Invalid payment amount`,yu=()=>`Invalid payment amount`,bu=()=>`無效支付金額`,xu=()=>`无效支付金额`,Su=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gu(e):n===`ja-JP`?_u(e):n===`ko-KR`?vu(e):n===`ru-RU`?yu(e):n===`zh-TW`?bu(e):xu(e)}),Cu=()=>`No available amount channel`,wu=()=>`No available amount channel`,Tu=()=>`No available amount channel`,Eu=()=>`No available amount channel`,Du=()=>`無可用金額通道`,Ou=()=>`无可用金额通道`,ku=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Cu(e):n===`ja-JP`?wu(e):n===`ko-KR`?Tu(e):n===`ru-RU`?Eu(e):n===`zh-TW`?Du(e):Ou(e)}),Au=()=>`Rate calculation failed`,ju=()=>`rate calculation failed`,Mu=()=>`rate calculation failed`,Nu=()=>`rate calculation failed`,Pu=()=>`匯率計算失敗`,Fu=()=>`汇率计算失败`,Iu=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Au(e):n===`ja-JP`?ju(e):n===`ko-KR`?Mu(e):n===`ru-RU`?Nu(e):n===`zh-TW`?Pu(e):Fu(e)}),Lu=()=>`Block transaction already processed`,Ru=()=>`Block transaction already processed`,zu=()=>`Block transaction already processed`,Bu=()=>`Block transaction already processed`,Vu=()=>`區塊交易已處理`,Hu=()=>`区块交易已处理`,Uu=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Lu(e):n===`ja-JP`?Ru(e):n===`ko-KR`?zu(e):n===`ru-RU`?Bu(e):n===`zh-TW`?Vu(e):Hu(e)}),Wu=()=>`Order does not exist`,Gu=()=>`order does not exist`,Ku=()=>`order does not exist`,qu=()=>`order does not exist`,Ju=()=>`訂單不存在`,Yu=()=>`订单不存在`,Xu=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Wu(e):n===`ja-JP`?Gu(e):n===`ko-KR`?Ku(e):n===`ru-RU`?qu(e):n===`zh-TW`?Ju(e):Yu(e)}),Zu=()=>`Failed to parse request params`,Qu=()=>`failed to parse request params`,$u=()=>`failed to parse request params`,ed=()=>`failed to parse request params`,td=()=>`請求引數解析失敗`,nd=()=>`请求参数解析失败`,rd=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Zu(e):n===`ja-JP`?Qu(e):n===`ko-KR`?$u(e):n===`ru-RU`?ed(e):n===`zh-TW`?td(e):nd(e)}),id=()=>`Order status already changed`,ad=()=>`order status already changed`,od=()=>`order status already changed`,sd=()=>`order status already changed`,cd=()=>`訂單狀態已變更`,ld=()=>`订单状态已变更`,ud=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?id(e):n===`ja-JP`?ad(e):n===`ko-KR`?od(e):n===`ru-RU`?sd(e):n===`zh-TW`?cd(e):ld(e)}),dd=()=>`Exceeded maximum sub-order limit`,fd=()=>`exceeded maximum sub-order limit`,pd=()=>`exceeded maximum sub-order limit`,md=()=>`exceeded maximum sub-order limit`,hd=()=>`超過最大子訂單數量限制`,gd=()=>`超过最大子订单数量限制`,_d=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dd(e):n===`ja-JP`?fd(e):n===`ko-KR`?pd(e):n===`ru-RU`?md(e):n===`zh-TW`?hd(e):gd(e)}),vd=()=>`Cannot switch network for sub-order`,yd=()=>`Cannot switch network for sub-order`,bd=()=>`Cannot switch network for sub-order`,xd=()=>`Cannot switch network for sub-order`,Sd=()=>`不能對子訂單切換網路`,Cd=()=>`不能对子订单切换网络`,wd=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vd(e):n===`ja-JP`?yd(e):n===`ko-KR`?bd(e):n===`ru-RU`?xd(e):n===`zh-TW`?Sd(e):Cd(e)}),Td=()=>`Order is not awaiting payment`,Ed=()=>`order is not awaiting payment`,Dd=()=>`order is not awaiting payment`,Od=()=>`order is not awaiting payment`,kd=()=>`訂單不是待支付狀態`,Ad=()=>`订单不是待支付状态`,jd=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Td(e):n===`ja-JP`?Ed(e):n===`ko-KR`?Dd(e):n===`ru-RU`?Od(e):n===`zh-TW`?kd(e):Ad(e)}),Md=()=>`Chain is not enabled`,Nd=()=>`chain is not enabled`,Pd=()=>`chain is not enabled`,Fd=()=>`chain is not enabled`,Id=()=>`鏈未啟用`,Ld=()=>`链未启用`,Rd=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Md(e):n===`ja-JP`?Nd(e):n===`ko-KR`?Pd(e):n===`ru-RU`?Fd(e):n===`zh-TW`?Id(e):Ld(e)}),zd=()=>`Supported asset already exists`,Bd=()=>`Supported asset already exists`,Vd=()=>`Supported asset already exists`,Hd=()=>`Supported asset already exists`,Ud=()=>`支援的資產已存在`,Wd=()=>`支持的资产已存在`,Gd=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zd(e):n===`ja-JP`?Bd(e):n===`ko-KR`?Vd(e):n===`ru-RU`?Hd(e):n===`zh-TW`?Ud(e):Wd(e)}),Kd=()=>`Supported asset not found`,qd=()=>`supported asset not found`,Jd=()=>`supported asset not found`,Yd=()=>`supported asset not found`,Xd=()=>`未找到支援的資產`,Zd=()=>`未找到支持的资产`,Qd=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Kd(e):n===`ja-JP`?qd(e):n===`ko-KR`?Jd(e):n===`ru-RU`?Yd(e):n===`zh-TW`?Xd(e):Zd(e)}),$d=()=>`Payment provider is not enabled`,ef=()=>`payment provider is not enabled`,tf=()=>`payment provider is not enabled`,nf=()=>`payment provider is not enabled`,rf=()=>`支付服務商未啟用`,af=()=>`支付服务商未启用`,of=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$d(e):n===`ja-JP`?ef(e):n===`ko-KR`?tf(e):n===`ru-RU`?nf(e):n===`zh-TW`?rf(e):af(e)}),sf=()=>`Payment provider configuration is incomplete`,cf=()=>`payment provider configuration is incomplete`,lf=()=>`payment provider configuration is incomplete`,uf=()=>`payment provider configuration is incomplete`,df=()=>`支付服務商配置不完整`,ff=()=>`支付服务商配置不完整`,pf=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sf(e):n===`ja-JP`?cf(e):n===`ko-KR`?lf(e):n===`ru-RU`?uf(e):n===`zh-TW`?df(e):ff(e)}),mf=()=>`Payment provider does not support this token or network`,hf=()=>`payment provider does not support this token or network`,gf=()=>`payment provider does not support this token or network`,_f=()=>`payment provider does not support this token or network`,vf=()=>`支付服務商不支援該代幣或網路`,yf=()=>`支付服务商不支持该代币或网络`,bf=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mf(e):n===`ja-JP`?hf(e):n===`ko-KR`?gf(e):n===`ru-RU`?_f(e):n===`zh-TW`?vf(e):yf(e)}),xf=()=>`Invalid RPC node purpose`,Sf=()=>`invalid rpc node purpose`,Cf=()=>`invalid rpc node purpose`,wf=()=>`invalid rpc node purpose`,Tf=()=>`無效的 RPC 節點用途`,Ef=()=>`无效的 RPC 节点用途`,Df=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xf(e):n===`ja-JP`?Sf(e):n===`ko-KR`?Cf(e):n===`ru-RU`?wf(e):n===`zh-TW`?Tf(e):Ef(e)}),Of=()=>`Invalid RPC node URL`,kf=()=>`invalid rpc node url`,Af=()=>`invalid rpc node url`,jf=()=>`invalid rpc node url`,Mf=()=>`無效的 RPC 節點 URL`,Nf=()=>`无效的 RPC 节点 URL`,Pf=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Of(e):n===`ja-JP`?kf(e):n===`ko-KR`?Af(e):n===`ru-RU`?jf(e):n===`zh-TW`?Mf(e):Nf(e)}),Ff=()=>`RPC node HTTP URL required`,If=()=>`rpc node http url required`,Lf=()=>`rpc node http url required`,Rf=()=>`rpc node http url required`,zf=()=>`RPC 節點需要 HTTP URL`,Bf=()=>`RPC 节点需要 HTTP URL`,Vf=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ff(e):n===`ja-JP`?If(e):n===`ko-KR`?Lf(e):n===`ru-RU`?Rf(e):n===`zh-TW`?zf(e):Bf(e)}),Hf=()=>`RPC node WebSocket URL required`,Uf=()=>`rpc node websocket url required`,Wf=()=>`rpc node websocket url required`,Gf=()=>`rpc node websocket url required`,Kf=()=>`RPC 節點需要 WebSocket URL`,qf=()=>`RPC 节点需要 WebSocket URL`,Jf=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hf(e):n===`ja-JP`?Uf(e):n===`ko-KR`?Wf(e):n===`ru-RU`?Gf(e):n===`zh-TW`?Kf(e):qf(e)}),Yf=()=>`Invalid RPC node type`,Xf=()=>`invalid rpc node type`,Zf=()=>`invalid rpc node type`,Qf=()=>`invalid rpc node type`,$f=()=>`無效的 RPC 節點類型`,ep=()=>`无效的 RPC 节点类型`,tp=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yf(e):n===`ja-JP`?Xf(e):n===`ko-KR`?Zf(e):n===`ru-RU`?Qf(e):n===`zh-TW`?$f(e):ep(e)}),np=()=>`Invalid username or password`,rp=()=>`invalid username or password`,ip=()=>`invalid username or password`,ap=()=>`invalid username or password`,op=()=>`使用者名稱或密碼錯誤`,sp=()=>`用户名或密码错误`,cp=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?np(e):n===`ja-JP`?rp(e):n===`ko-KR`?ip(e):n===`ru-RU`?ap(e):n===`zh-TW`?op(e):sp(e)}),lp=()=>`Admin user disabled`,up=()=>`admin user disabled`,dp=()=>`admin user disabled`,fp=()=>`admin user disabled`,pp=()=>`管理員使用者已停用`,mp=()=>`管理员用户已禁用`,hp=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lp(e):n===`ja-JP`?up(e):n===`ko-KR`?dp(e):n===`ru-RU`?fp(e):n===`zh-TW`?pp(e):mp(e)}),gp=()=>`Admin unauthorized`,_p=()=>`admin unauthorized`,vp=()=>`admin unauthorized`,yp=()=>`admin unauthorized`,bp=()=>`管理員未授權`,xp=()=>`管理员未授权`,Sp=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gp(e):n===`ja-JP`?_p(e):n===`ko-KR`?vp(e):n===`ru-RU`?yp(e):n===`zh-TW`?bp(e):xp(e)}),Cp=()=>`Admin user not found`,wp=()=>`admin user not found`,Tp=()=>`admin user not found`,Ep=()=>`admin user not found`,Dp=()=>`管理員使用者不存在`,Op=()=>`管理员用户不存在`,kp=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Cp(e):n===`ja-JP`?wp(e):n===`ko-KR`?Tp(e):n===`ru-RU`?Ep(e):n===`zh-TW`?Dp(e):Op(e)}),Ap=()=>`Old password incorrect`,jp=()=>`old password incorrect`,Mp=()=>`old password incorrect`,Np=()=>`old password incorrect`,Pp=()=>`舊密碼錯誤`,Fp=()=>`旧密码错误`,Ip=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ap(e):n===`ja-JP`?jp(e):n===`ko-KR`?Mp(e):n===`ru-RU`?Np(e):n===`zh-TW`?Pp(e):Fp(e)}),Lp=()=>`Wallet not found`,Rp=()=>`wallet not found`,zp=()=>`wallet not found`,Bp=()=>`wallet not found`,Vp=()=>`錢包不存在`,Hp=()=>`钱包不存在`,Up=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Lp(e):n===`ja-JP`?Rp(e):n===`ko-KR`?zp(e):n===`ru-RU`?Bp(e):n===`zh-TW`?Vp(e):Hp(e)}),Wp=()=>`API key not found`,Gp=()=>`api key not found`,Kp=()=>`api key not found`,qp=()=>`api key not found`,Jp=()=>`API Key 不存在`,Yp=()=>`API Key 不存在`,Xp=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Wp(e):n===`ja-JP`?Gp(e):n===`ko-KR`?Kp(e):n===`ru-RU`?qp(e):n===`zh-TW`?Jp(e):Yp(e)}),Zp=()=>`RPC node not found`,Qp=()=>`rpc node not found`,$p=()=>`rpc node not found`,em=()=>`rpc node not found`,tm=()=>`RPC 節點不存在`,nm=()=>`RPC 节点不存在`,rm=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Zp(e):n===`ja-JP`?Qp(e):n===`ko-KR`?$p(e):n===`ru-RU`?em(e):n===`zh-TW`?tm(e):nm(e)}),im=()=>`Order callback not applicable`,am=()=>`order callback not applicable`,om=()=>`order callback not applicable`,sm=()=>`order callback not applicable`,cm=()=>`該訂單不適用回調`,lm=()=>`该订单不适用回调`,um=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?im(e):n===`ja-JP`?am(e):n===`ko-KR`?om(e):n===`ru-RU`?sm(e):n===`zh-TW`?cm(e):lm(e)}),dm=()=>`Order notify URL empty`,fm=()=>`order notify url empty`,pm=()=>`order notify url empty`,mm=()=>`order notify url empty`,hm=()=>`訂單通知地址為空`,gm=()=>`订单通知地址为空`,_m=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dm(e):n===`ja-JP`?fm(e):n===`ko-KR`?pm(e):n===`ru-RU`?mm(e):n===`zh-TW`?hm(e):gm(e)}),vm=()=>`Resend callback failed`,ym=()=>`resend callback failed`,bm=()=>`resend callback failed`,xm=()=>`resend callback failed`,Sm=()=>`重發回調失敗`,Cm=()=>`重发回调失败`,wm=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vm(e):n===`ja-JP`?ym(e):n===`ko-KR`?bm(e):n===`ru-RU`?xm(e):n===`zh-TW`?Sm(e):Cm(e)}),Tm=()=>`Invalid notification config`,Em=()=>`invalid notification config`,Dm=()=>`invalid notification config`,Om=()=>`invalid notification config`,km=()=>`無效的通知配置`,Am=()=>`无效的通知配置`,jm=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Tm(e):n===`ja-JP`?Em(e):n===`ko-KR`?Dm(e):n===`ru-RU`?Om(e):n===`zh-TW`?km(e):Am(e)}),Mm=()=>`Invalid notification events`,Nm=()=>`invalid notification events`,Pm=()=>`invalid notification events`,Fm=()=>`invalid notification events`,Im=()=>`無效的通知事件`,Lm=()=>`无效的通知事件`,Rm=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Mm(e):n===`ja-JP`?Nm(e):n===`ko-KR`?Pm(e):n===`ru-RU`?Fm(e):n===`zh-TW`?Im(e):Lm(e)}),zm=()=>`Manual payment verification failed`,Bm=()=>`manual payment verification failed`,Vm=()=>`manual payment verification failed`,Hm=()=>`manual payment verification failed`,Um=()=>`手動支付校驗失敗`,Wm=()=>`手动支付校验失败`,Gm=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zm(e):n===`ja-JP`?Bm(e):n===`ko-KR`?Vm(e):n===`ru-RU`?Hm(e):n===`zh-TW`?Um(e):Wm(e)}),Km=()=>`Manual payment only supports on-chain orders`,qm=()=>`manual payment only supports on-chain orders`,Jm=()=>`manual payment only supports on-chain orders`,Ym=()=>`manual payment only supports on-chain orders`,Xm=()=>`手動支付僅支援鏈上訂單`,Zm=()=>`手动支付仅支持链上订单`,Qm=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Km(e):n===`ja-JP`?qm(e):n===`ko-KR`?Jm(e):n===`ru-RU`?Ym(e):n===`zh-TW`?Xm(e):Zm(e)}),$m=()=>`Initial admin password unavailable, check from logs`,eh=()=>`initial admin password unavailable, check from logs`,th=()=>`initial admin password unavailable, check from logs`,nh=()=>`initial admin password unavailable, check from logs`,rh=()=>`無法取得初始管理員密碼,請查看日誌`,ih=()=>`无法获取初始管理员密码,请查看日志`,ah=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$m(e):n===`ja-JP`?eh(e):n===`ko-KR`?th(e):n===`ru-RU`?nh(e):n===`zh-TW`?rh(e):ih(e)}),oh=()=>`Invalid notify URL`,sh=()=>`invalid notify url`,ch=()=>`invalid notify url`,lh=()=>`invalid notify url`,uh=()=>`無效通知地址`,dh=()=>`无效通知地址`,fh=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?oh(e):n===`ja-JP`?sh(e):n===`ko-KR`?ch(e):n===`ru-RU`?lh(e):n===`zh-TW`?uh(e):dh(e)}),ph=()=>`Payment provider order creation failed`,mh=()=>`payment provider order creation failed`,hh=()=>`payment provider order creation failed`,gh=()=>`payment provider order creation failed`,_h=()=>`支付服務商訂單建立失敗`,vh=()=>`支付服务商订单创建失败`,yh=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ph(e):n===`ja-JP`?mh(e):n===`ko-KR`?hh(e):n===`ru-RU`?gh(e):n===`zh-TW`?_h(e):vh(e)}),bh=()=>`Invalid setting item`,xh=()=>`invalid setting item`,Sh=()=>`invalid setting item`,Ch=()=>`invalid setting item`,wh=()=>`無效配置項`,Th=()=>`无效配置项`,Eh=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bh(e):n===`ja-JP`?xh(e):n===`ko-KR`?Sh(e):n===`ru-RU`?Ch(e):n===`zh-TW`?wh(e):Th(e)}),Dh=()=>`Invalid order redirect URL`,Oh=()=>`invalid order redirect url`,kh=()=>`invalid order redirect url`,Ah=()=>`invalid order redirect url`,jh=()=>`無效訂單跳轉地址`,Mh=()=>`无效订单跳转地址`,Nh=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Dh(e):n===`ja-JP`?Oh(e):n===`ko-KR`?kh(e):n===`ru-RU`?Ah(e):n===`zh-TW`?jh(e):Mh(e)}),Ph=()=>`Order API key unavailable`,Fh=()=>`order api key unavailable`,Ih=()=>`order api key unavailable`,Lh=()=>`order api key unavailable`,Rh=()=>`訂單 API Key 不可用`,zh=()=>`订单 API Key 不可用`,Bh=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ph(e):n===`ja-JP`?Fh(e):n===`ko-KR`?Ih(e):n===`ru-RU`?Lh(e):n===`zh-TW`?Rh(e):zh(e)}),Vh=()=>`Failed to build EPay return signature`,Hh=()=>`failed to build epay return signature`,Uh=()=>`failed to build epay return signature`,Wh=()=>`failed to build epay return signature`,Gh=()=>`產生 EPay 返回簽名失敗`,Kh=()=>`生成 EPay 返回签名失败`,qh=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Vh(e):n===`ja-JP`?Hh(e):n===`ko-KR`?Uh(e):n===`ru-RU`?Wh(e):n===`zh-TW`?Gh(e):Kh(e)}),Jh=()=>`Request failed`,Yh=()=>`Request failed`,Xh=()=>`Request failed`,Zh=()=>`Request failed`,Qh=()=>`請求失敗`,$h=()=>`请求失败`,eg=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Jh(e):n===`ja-JP`?Yh(e):n===`ko-KR`?Xh(e):n===`ru-RU`?Zh(e):n===`zh-TW`?Qh(e):$h(e)}),tg=()=>`Server error, please try again later`,ng=()=>`Server error, please try again later`,rg=()=>`Server error, please try again later`,ig=()=>`Server error, please try again later`,ag=()=>`伺服器錯誤,請稍後重試`,og=()=>`服务器错误,请稍后重试`,sg=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tg(e):n===`ja-JP`?ng(e):n===`ko-KR`?rg(e):n===`ru-RU`?ig(e):n===`zh-TW`?ag(e):og(e)}),cg=()=>`Oops! Something went wrong :')`,lg=()=>`Oops! Something went wrong :')`,ug=()=>`Oops! Something went wrong :')`,dg=()=>`Oops! Something went wrong :')`,fg=()=>`出錯了 :')`,pg=()=>`出错了 :')`,mg=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cg(e):n===`ja-JP`?lg(e):n===`ko-KR`?ug(e):n===`ru-RU`?dg(e):n===`zh-TW`?fg(e):pg(e)}),hg=()=>`We apologize for the inconvenience. Please try again later.`,gg=()=>`We apologize for the inconvenience. Please try again later.`,_g=()=>`We apologize for the inconvenience. Please try again later.`,vg=()=>`We apologize for the inconvenience. Please try again later.`,yg=()=>`抱歉給您帶來不便,請稍後重試。`,bg=()=>`抱歉给您带来不便,请稍后重试。`,xg=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hg(e):n===`ja-JP`?gg(e):n===`ko-KR`?_g(e):n===`ru-RU`?vg(e):n===`zh-TW`?yg(e):bg(e)}),Sg=()=>`Go Back`,Cg=()=>`Go Back`,wg=()=>`Go Back`,Tg=()=>`Go Back`,Eg=()=>`返回`,Dg=()=>`返回`,Og=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Sg(e):n===`ja-JP`?Cg(e):n===`ko-KR`?wg(e):n===`ru-RU`?Tg(e):n===`zh-TW`?Eg(e):Dg(e)}),kg=()=>`Back to Home`,Ag=()=>`Back to Home`,jg=()=>`Back to Home`,Mg=()=>`Back to Home`,Ng=()=>`回到首頁`,Pg=()=>`回到首页`,Fg=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kg(e):n===`ja-JP`?Ag(e):n===`ko-KR`?jg(e):n===`ru-RU`?Mg(e):n===`zh-TW`?Ng(e):Pg(e)}),Ig=()=>`Oops! Page Not Found!`,Lg=()=>`Oops! Page Not Found!`,Rg=()=>`Oops! Page Not Found!`,zg=()=>`Oops! Page Not Found!`,Bg=()=>`頁面未找到!`,Vg=()=>`页面未找到!`,Hg=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ig(e):n===`ja-JP`?Lg(e):n===`ko-KR`?Rg(e):n===`ru-RU`?zg(e):n===`zh-TW`?Bg(e):Vg(e)}),Ug=()=>`It seems like the page you're looking for does not exist or might have been removed.`,Wg=()=>`It seems like the page you're looking for does not exist or might have been removed.`,Gg=()=>`It seems like the page you're looking for does not exist or might have been removed.`,Kg=()=>`It seems like the page you're looking for does not exist or might have been removed.`,qg=()=>`您訪問的頁面不存在或已被移除。`,Jg=()=>`您访问的页面不存在或已被移除。`,Yg=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ug(e):n===`ja-JP`?Wg(e):n===`ko-KR`?Gg(e):n===`ru-RU`?Kg(e):n===`zh-TW`?qg(e):Jg(e)}),Xg=()=>`Welcome back`,Zg=()=>`Welcome back`,Qg=()=>`Welcome back`,$g=()=>`Welcome back`,e_=()=>`歡迎回來`,t_=()=>`欢迎回来`,n_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Xg(e):n===`ja-JP`?Zg(e):n===`ko-KR`?Qg(e):n===`ru-RU`?$g(e):n===`zh-TW`?e_(e):t_(e)}),r_=()=>`Sign in to GMPay`,i_=()=>`Sign in to GMPay`,a_=()=>`Sign in to GMPay`,o_=()=>`Sign in to GMPay`,s_=()=>`登入 GMPay 後臺`,c_=()=>`登录 GMPay 后台`,l_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?r_(e):n===`ja-JP`?i_(e):n===`ko-KR`?a_(e):n===`ru-RU`?o_(e):n===`zh-TW`?s_(e):c_(e)}),u_=()=>`Use your admin account to access the console and manage payment orders, wallet configuration and callback notifications.`,d_=()=>`Use your admin account to access the console and manage payment orders, wallet configuration and callback notifications.`,f_=()=>`Use your admin account to access the console and manage payment orders, wallet configuration and callback notifications.`,p_=()=>`Use your admin account to access the console and manage payment orders, wallet configuration and callback notifications.`,m_=()=>`使用管理員帳號進入控制台,繼續處理收款訂單、錢包配置與通知回呼。`,h_=()=>`使用管理员账号进入控制台,继续处理收款订单、钱包配置与通知回调。`,g_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?u_(e):n===`ja-JP`?d_(e):n===`ko-KR`?f_(e):n===`ru-RU`?p_(e):n===`zh-TW`?m_(e):h_(e)}),__=()=>`Username`,v_=()=>`Username`,y_=()=>`Username`,b_=()=>`Username`,x_=()=>`帳號`,S_=()=>`账号`,C_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?__(e):n===`ja-JP`?v_(e):n===`ko-KR`?y_(e):n===`ru-RU`?b_(e):n===`zh-TW`?x_(e):S_(e)}),w_=()=>`admin`,T_=()=>`admin`,E_=()=>`admin`,D_=()=>`admin`,O_=()=>`admin`,k_=()=>`admin`,A_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?w_(e):n===`ja-JP`?T_(e):n===`ko-KR`?E_(e):n===`ru-RU`?D_(e):n===`zh-TW`?O_(e):k_(e)}),j_=()=>`Password`,M_=()=>`Password`,N_=()=>`Password`,P_=()=>`Password`,F_=()=>`密碼`,I_=()=>`密码`,L_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?j_(e):n===`ja-JP`?M_(e):n===`ko-KR`?N_(e):n===`ru-RU`?P_(e):n===`zh-TW`?F_(e):I_(e)}),R_=()=>`Please enter your username`,z_=()=>`Please enter your username`,B_=()=>`Please enter your username`,V_=()=>`Please enter your username`,H_=()=>`請輸入帳號`,U_=()=>`请输入账号`,W_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?R_(e):n===`ja-JP`?z_(e):n===`ko-KR`?B_(e):n===`ru-RU`?V_(e):n===`zh-TW`?H_(e):U_(e)}),G_=()=>`Please enter your password`,K_=()=>`Please enter your password`,q_=()=>`Please enter your password`,J_=()=>`Please enter your password`,Y_=()=>`請輸入密碼`,X_=()=>`请输入密码`,Z_=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?G_(e):n===`ja-JP`?K_(e):n===`ko-KR`?q_(e):n===`ru-RU`?J_(e):n===`zh-TW`?Y_(e):X_(e)}),Q_=()=>`Sign In`,$_=()=>`Sign In`,ev=()=>`Sign In`,tv=()=>`Sign In`,nv=()=>`登入`,rv=()=>`登录`,iv=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Q_(e):n===`ja-JP`?$_(e):n===`ko-KR`?ev(e):n===`ru-RU`?tv(e):n===`zh-TW`?nv(e):rv(e)}),av=e=>`Welcome back, ${e?.username}!`,ov=e=>`Welcome back, ${e?.username}!`,sv=e=>`Welcome back, ${e?.username}!`,cv=e=>`Welcome back, ${e?.username}!`,lv=e=>`歡迎回來,${e?.username}!`,uv=e=>`欢迎回来,${e?.username}!`,dv=((e,t={})=>{let n=t.locale??m();return n===`en-US`?av(e):n===`ja-JP`?ov(e):n===`ko-KR`?sv(e):n===`ru-RU`?cv(e):n===`zh-TW`?lv(e):uv(e)}),fv=()=>`GMPay Setup`,pv=()=>`GMPay Setup`,mv=()=>`GMPay Setup`,hv=()=>`GMPay Setup`,gv=()=>`GMPay 安裝配置`,_v=()=>`GMPay 安装配置`,vv=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fv(e):n===`ja-JP`?pv(e):n===`ko-KR`?mv(e):n===`ru-RU`?hv(e):n===`zh-TW`?gv(e):_v(e)}),yv=()=>`Fill in the details below to create your configuration file.`,bv=()=>`Fill in the details below to create your configuration file.`,xv=()=>`Fill in the details below to create your configuration file.`,Sv=()=>`Fill in the details below to create your configuration file.`,Cv=()=>`填寫以下資訊以建立配置檔案。`,wv=()=>`填写以下信息以创建配置文件。`,Tv=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yv(e):n===`ja-JP`?bv(e):n===`ko-KR`?xv(e):n===`ru-RU`?Sv(e):n===`zh-TW`?Cv(e):wv(e)}),Ev=()=>`App Name`,Dv=()=>`App Name`,Ov=()=>`App Name`,kv=()=>`App Name`,Av=()=>`應用名稱`,jv=()=>`应用名称`,Mv=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ev(e):n===`ja-JP`?Dv(e):n===`ko-KR`?Ov(e):n===`ru-RU`?kv(e):n===`zh-TW`?Av(e):jv(e)}),Nv=()=>`App URI`,Pv=()=>`App URI`,Fv=()=>`App URI`,Iv=()=>`App URI`,Lv=()=>`應用地址`,Rv=()=>`应用地址`,zv=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Nv(e):n===`ja-JP`?Pv(e):n===`ko-KR`?Fv(e):n===`ru-RU`?Iv(e):n===`zh-TW`?Lv(e):Rv(e)}),Bv=()=>`HTTP Bind Address`,Vv=()=>`HTTP Bind Address`,Hv=()=>`HTTP Bind Address`,Uv=()=>`HTTP Bind Address`,Wv=()=>`HTTP 繫結地址`,Gv=()=>`HTTP 绑定地址`,Kv=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Bv(e):n===`ja-JP`?Vv(e):n===`ko-KR`?Hv(e):n===`ru-RU`?Uv(e):n===`zh-TW`?Wv(e):Gv(e)}),qv=()=>`HTTP Bind Port`,Jv=()=>`HTTP Bind Port`,Yv=()=>`HTTP Bind Port`,Xv=()=>`HTTP Bind Port`,Zv=()=>`HTTP 繫結埠`,Qv=()=>`HTTP 绑定端口`,$v=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qv(e):n===`ja-JP`?Jv(e):n===`ko-KR`?Yv(e):n===`ru-RU`?Xv(e):n===`zh-TW`?Zv(e):Qv(e)}),ey=()=>`Runtime Root Path`,ty=()=>`Runtime Root Path`,ny=()=>`Runtime Root Path`,ry=()=>`Runtime Root Path`,iy=()=>`執行時根目錄`,ay=()=>`运行时根目录`,oy=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ey(e):n===`ja-JP`?ty(e):n===`ko-KR`?ny(e):n===`ru-RU`?ry(e):n===`zh-TW`?iy(e):ay(e)}),sy=()=>`Log Save Path`,cy=()=>`Log Save Path`,ly=()=>`Log Save Path`,uy=()=>`Log Save Path`,dy=()=>`日誌儲存路徑`,fy=()=>`日志保存路径`,py=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sy(e):n===`ja-JP`?cy(e):n===`ko-KR`?ly(e):n===`ru-RU`?uy(e):n===`zh-TW`?dy(e):fy(e)}),my=()=>`Order Expiration (min)`,hy=()=>`Order Expiration (min)`,gy=()=>`Order Expiration (min)`,_y=()=>`Order Expiration (min)`,vy=()=>`訂單過期時間(分鐘)`,yy=()=>`订单过期时间(分钟)`,by=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?my(e):n===`ja-JP`?hy(e):n===`ko-KR`?gy(e):n===`ru-RU`?_y(e):n===`zh-TW`?vy(e):yy(e)}),xy=()=>`Max Callback Retries`,Sy=()=>`Max Callback Retries`,Cy=()=>`Max Callback Retries`,wy=()=>`Max Callback Retries`,Ty=()=>`最大回調重試次數`,Ey=()=>`最大回调重试次数`,Dy=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xy(e):n===`ja-JP`?Sy(e):n===`ko-KR`?Cy(e):n===`ru-RU`?wy(e):n===`zh-TW`?Ty(e):Ey(e)}),Oy=()=>`Install`,ky=()=>`Install`,Ay=()=>`Install`,jy=()=>`Install`,My=()=>`開始安裝`,Ny=()=>`开始安装`,Py=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Oy(e):n===`ja-JP`?ky(e):n===`ko-KR`?Ay(e):n===`ru-RU`?jy(e):n===`zh-TW`?My(e):Ny(e)}),Fy=()=>`Installing…`,Iy=()=>`Installing…`,Ly=()=>`Installing…`,Ry=()=>`Installing…`,zy=()=>`安裝中…`,By=()=>`安装中…`,Vy=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Fy(e):n===`ja-JP`?Iy(e):n===`ko-KR`?Ly(e):n===`ru-RU`?Ry(e):n===`zh-TW`?zy(e):By(e)}),Hy=()=>`Done!`,Uy=()=>`Done!`,Wy=()=>`Done!`,Gy=()=>`Done!`,Ky=()=>`完成!`,qy=()=>`完成!`,Jy=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hy(e):n===`ja-JP`?Uy(e):n===`ko-KR`?Wy(e):n===`ru-RU`?Gy(e):n===`zh-TW`?Ky(e):qy(e)}),Yy=()=>`Install failed.`,Xy=()=>`Install failed.`,Zy=()=>`Install failed.`,Qy=()=>`Install failed.`,$y=()=>`安裝失敗。`,eb=()=>`安装失败。`,tb=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yy(e):n===`ja-JP`?Xy(e):n===`ko-KR`?Zy(e):n===`ru-RU`?Qy(e):n===`zh-TW`?$y(e):eb(e)}),nb=()=>`Error`,rb=()=>`Error`,ib=()=>`Error`,ab=()=>`Error`,ob=()=>`安裝失敗`,sb=()=>`安装失败`,cb=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nb(e):n===`ja-JP`?rb(e):n===`ko-KR`?ib(e):n===`ru-RU`?ab(e):n===`zh-TW`?ob(e):sb(e)}),lb=()=>`Secure and efficient USDT payment middleware`,ub=()=>`Secure and efficient USDT payment middleware`,db=()=>`Secure and efficient USDT payment middleware`,fb=()=>`Secure and efficient USDT payment middleware`,pb=()=>`安全、高效的 USDT 支付中介軟體`,mb=()=>`安全、高效的 USDT 支付中间件`,hb=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lb(e):n===`ja-JP`?ub(e):n===`ko-KR`?db(e):n===`ru-RU`?fb(e):n===`zh-TW`?pb(e):mb(e)}),gb=()=>`Installation complete`,_b=()=>`Installation complete`,vb=()=>`Installation complete`,yb=()=>`Installation complete`,bb=()=>`安裝完成`,xb=()=>`安装完成`,Sb=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gb(e):n===`ja-JP`?_b(e):n===`ko-KR`?vb(e):n===`ru-RU`?yb(e):n===`zh-TW`?bb(e):xb(e)}),Cb=()=>`Please save the initial admin username and password below.`,wb=()=>`Please save the initial admin username and password below.`,Tb=()=>`Please save the initial admin username and password below.`,Eb=()=>`Please save the initial admin username and password below.`,Db=()=>`請先儲存下面的初始管理員帳號和密碼。`,Ob=()=>`请先保存下面的初始管理员账号和密码,并尽快登录修改密码。`,kb=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Cb(e):n===`ja-JP`?wb(e):n===`ko-KR`?Tb(e):n===`ru-RU`?Eb(e):n===`zh-TW`?Db(e):Ob(e)}),Ab=()=>`Admin credentials ready`,jb=()=>`Admin credentials ready`,Mb=()=>`Admin credentials ready`,Nb=()=>`Admin credentials ready`,Pb=()=>`管理員憑據已生成`,Fb=()=>`管理员凭证已生成`,Ib=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ab(e):n===`ja-JP`?jb(e):n===`ko-KR`?Mb(e):n===`ru-RU`?Nb(e):n===`zh-TW`?Pb(e):Fb(e)}),Lb=()=>`Reinstall complete`,Rb=()=>`Initial password unavailable`,zb=()=>`Initial password unavailable`,Bb=()=>`Initial password unavailable`,Vb=()=>`初始密碼讀取失敗`,Hb=()=>`重新安装完成`,Ub=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Lb(e):n===`ja-JP`?Rb(e):n===`ko-KR`?zb(e):n===`ru-RU`?Bb(e):n===`zh-TW`?Vb(e):Hb(e)}),Wb=()=>`Sign in with the saved admin credentials. If the initial password was not saved, check the service startup terminal records.`,Gb=()=>`Check the service startup terminal for the admin username and initial password.`,Kb=()=>`Check the service startup terminal for the admin username and initial password.`,qb=()=>`Check the service startup terminal for the admin username and initial password.`,Jb=()=>`請前往服務啟動終端機查看管理員帳號和初始密碼。`,Yb=()=>`请使用已保存的管理员账号和密码登录。如未保存初始密码,请前往服务启动终端查看记录。`,Xb=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Wb(e):n===`ja-JP`?Gb(e):n===`ko-KR`?Kb(e):n===`ru-RU`?qb(e):n===`zh-TW`?Jb(e):Yb(e)}),Zb=()=>`Go to sign in`,Qb=()=>`Go to sign in`,$b=()=>`Go to sign in`,ex=()=>`Go to sign in`,tx=()=>`去登入`,nx=()=>`去登录`,rx=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Zb(e):n===`ja-JP`?Qb(e):n===`ko-KR`?$b(e):n===`ru-RU`?ex(e):n===`zh-TW`?tx(e):nx(e)}),ix=()=>`Username`,ax=()=>`Username`,ox=()=>`Username`,sx=()=>`Username`,cx=()=>`使用者名稱`,lx=()=>`用户名`,ux=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ix(e):n===`ja-JP`?ax(e):n===`ko-KR`?ox(e):n===`ru-RU`?sx(e):n===`zh-TW`?cx(e):lx(e)}),dx=()=>`Initial password`,fx=()=>`Initial password`,px=()=>`Initial password`,mx=()=>`Initial password`,hx=()=>`初始密碼`,gx=()=>`初始密码`,_x=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dx(e):n===`ja-JP`?fx(e):n===`ko-KR`?px(e):n===`ru-RU`?mx(e):n===`zh-TW`?hx(e):gx(e)}),vx=()=>`If you still use the initial password after the first sign-in, the system will prompt you to change it immediately.`,yx=()=>`If you still use the initial password after the first sign-in, the system will prompt you to change it immediately.`,bx=()=>`If you still use the initial password after the first sign-in, the system will prompt you to change it immediately.`,xx=()=>`If you still use the initial password after the first sign-in, the system will prompt you to change it immediately.`,Sx=()=>`首次登入後如果仍使用初始密碼,系統會提示你立即修改。`,Cx=()=>`请在首次登录后尽快修改初始密码。`,wx=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vx(e):n===`ja-JP`?yx(e):n===`ko-KR`?bx(e):n===`ru-RU`?xx(e):n===`zh-TW`?Sx(e):Cx(e)}),Tx=()=>`Change the password in an HTTPS environment`,Ex=()=>`Change the password in an HTTPS environment`,Dx=()=>`Change the password in an HTTPS environment`,Ox=()=>`Change the password in an HTTPS environment`,kx=()=>`請在 HTTPS 環境下修改密碼`,Ax=()=>`请在 HTTPS 环境下修改密码`,jx=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Tx(e):n===`ja-JP`?Ex(e):n===`ko-KR`?Dx(e):n===`ru-RU`?Ox(e):n===`zh-TW`?kx(e):Ax(e)}),Mx=()=>`Show password`,Nx=()=>`Show password`,Px=()=>`Show password`,Fx=()=>`Show password`,Ix=()=>`顯示密碼`,Lx=()=>`显示密码`,Rx=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Mx(e):n===`ja-JP`?Nx(e):n===`ko-KR`?Px(e):n===`ru-RU`?Fx(e):n===`zh-TW`?Ix(e):Lx(e)}),zx=()=>`Hide password`,Bx=()=>`Hide password`,Vx=()=>`Hide password`,Hx=()=>`Hide password`,Ux=()=>`隱藏密碼`,Wx=()=>`隐藏密码`,Gx=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zx(e):n===`ja-JP`?Bx(e):n===`ko-KR`?Vx(e):n===`ru-RU`?Hx(e):n===`zh-TW`?Ux(e):Wx(e)}),Kx=()=>`One-time view`,qx=()=>`One-time view`,Jx=()=>`One-time view`,Yx=()=>`One-time view`,Xx=()=>`一次性檢視`,Zx=()=>`一次性查看`,Qx=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Kx(e):n===`ja-JP`?qx(e):n===`ko-KR`?Jx(e):n===`ru-RU`?Yx(e):n===`zh-TW`?Xx(e):Zx(e)}),$x=()=>`Copy`,eS=()=>`Copy`,tS=()=>`Copy`,nS=()=>`Copy`,rS=()=>`複製`,iS=()=>`复制`,aS=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$x(e):n===`ja-JP`?eS(e):n===`ko-KR`?tS(e):n===`ru-RU`?nS(e):n===`zh-TW`?rS(e):iS(e)}),oS=()=>`Copied`,sS=()=>`Copied`,cS=()=>`Copied`,lS=()=>`Copied`,uS=()=>`已複製`,dS=()=>`已复制`,fS=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?oS(e):n===`ja-JP`?sS(e):n===`ko-KR`?cS(e):n===`ru-RU`?lS(e):n===`zh-TW`?uS(e):dS(e)}),pS=()=>`Copy failed`,mS=()=>`Copy failed`,hS=()=>`Copy failed`,gS=()=>`Copy failed`,_S=()=>`複製失敗`,vS=()=>`复制失败`,yS=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pS(e):n===`ja-JP`?mS(e):n===`ko-KR`?hS(e):n===`ru-RU`?gS(e):n===`zh-TW`?_S(e):vS(e)}),bS=()=>`We recommend changing the admin password first`,xS=()=>`We recommend changing the admin password first`,SS=()=>`We recommend changing the admin password first`,CS=()=>`We recommend changing the admin password first`,wS=()=>`建議先完成管理員密碼修改`,TS=()=>`建议先完成管理员密码修改`,ES=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bS(e):n===`ja-JP`?xS(e):n===`ko-KR`?SS(e):n===`ru-RU`?CS(e):n===`zh-TW`?wS(e):TS(e)}),DS=()=>`Change password now`,OS=()=>`Change password now`,kS=()=>`Change password now`,AS=()=>`Change password now`,jS=()=>`立即修改密碼`,MS=()=>`立即修改密码`,NS=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?DS(e):n===`ja-JP`?OS(e):n===`ko-KR`?kS(e):n===`ru-RU`?AS(e):n===`zh-TW`?jS(e):MS(e)}),PS=()=>`This account is still using the initial password`,FS=()=>`This account is still using the initial password`,IS=()=>`This account is still using the initial password`,LS=()=>`This account is still using the initial password`,RS=()=>`當前帳號仍在使用初始密碼`,zS=()=>`当前账号仍在使用初始密码`,BS=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?PS(e):n===`ja-JP`?FS(e):n===`ko-KR`?IS(e):n===`ru-RU`?LS(e):n===`zh-TW`?RS(e):zS(e)}),VS=()=>`To reduce the risk of someone signing in with a weak or default password, we recommend changing the admin password now before entering the system.`,HS=()=>`To reduce the risk of someone signing in with a weak or default password, we recommend changing the admin password now before entering the system.`,US=()=>`To reduce the risk of someone signing in with a weak or default password, we recommend changing the admin password now before entering the system.`,WS=()=>`To reduce the risk of someone signing in with a weak or default password, we recommend changing the admin password now before entering the system.`,GS=()=>`為了避免後臺帳號被弱口令或預設口令直接登入,建議你現在先完成密碼修改,再繼續進入系統。`,KS=()=>`为了避免后台账号因弱口令或默认口令被直接登录,建议你现在先完成密码修改,再继续进入系统。`,qS=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?VS(e):n===`ja-JP`?HS(e):n===`ko-KR`?US(e):n===`ru-RU`?WS(e):n===`zh-TW`?GS(e):KS(e)}),JS=()=>`What happens next`,YS=()=>`What happens next`,XS=()=>`What happens next`,ZS=()=>`What happens next`,QS=()=>`接下來會發生什麼`,$S=()=>`接下来会发生什么`,eC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?JS(e):n===`ja-JP`?YS(e):n===`ko-KR`?XS(e):n===`ru-RU`?ZS(e):n===`zh-TW`?QS(e):$S(e)}),tC=()=>`Clicking “Change password now” will take you to the password change page`,nC=()=>`Clicking “Change password now” will take you to the password change page`,rC=()=>`Clicking “Change password now” will take you to the password change page`,iC=()=>`Clicking “Change password now” will take you to the password change page`,aC=()=>`點選“立即修改密碼”後會跳轉到修改密碼頁面`,oC=()=>`点击“立即修改密码”后会跳转到修改密码页面`,sC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tC(e):n===`ja-JP`?nC(e):n===`ko-KR`?rC(e):n===`ru-RU`?iC(e):n===`zh-TW`?aC(e):oC(e)}),cC=()=>`After updating the password, you can continue to the page you originally wanted to visit`,lC=()=>`After updating the password, you can continue to the page you originally wanted to visit`,uC=()=>`After updating the password, you can continue to the page you originally wanted to visit`,dC=()=>`After updating the password, you can continue to the page you originally wanted to visit`,fC=()=>`修改完成後可繼續返回你原本要進入的頁面`,pC=()=>`修改完成后可继续返回你原本要进入的页面`,mC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cC(e):n===`ja-JP`?lC(e):n===`ko-KR`?uC(e):n===`ru-RU`?dC(e):n===`zh-TW`?fC(e):pC(e)}),hC=()=>`Appearance`,gC=()=>`Appearance`,_C=()=>`Appearance`,vC=()=>`Appearance`,yC=()=>`外觀設定`,bC=()=>`外观设置`,xC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hC(e):n===`ja-JP`?gC(e):n===`ko-KR`?_C(e):n===`ru-RU`?vC(e):n===`zh-TW`?yC(e):bC(e)}),SC=()=>`Admin Console`,CC=()=>`Admin Console`,wC=()=>`Admin Console`,TC=()=>`Admin Console`,EC=()=>`管理控制台`,DC=()=>`管理控制台`,OC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?SC(e):n===`ja-JP`?CC(e):n===`ko-KR`?wC(e):n===`ru-RU`?TC(e):n===`zh-TW`?EC(e):DC(e)}),kC=()=>`Payment Integrations`,AC=()=>`Payment Integrations`,jC=()=>`Payment Integrations`,MC=()=>`Payment Integrations`,NC=()=>`支付接入`,PC=()=>`支付接入`,FC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kC(e):n===`ja-JP`?AC(e):n===`ko-KR`?jC(e):n===`ru-RU`?MC(e):n===`zh-TW`?NC(e):PC(e)}),IC=()=>`Payment Assets`,LC=()=>`Payment Assets`,RC=()=>`Payment Assets`,zC=()=>`Payment Assets`,BC=()=>`收款資產`,VC=()=>`收款资产`,HC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?IC(e):n===`ja-JP`?LC(e):n===`ko-KR`?RC(e):n===`ru-RU`?zC(e):n===`zh-TW`?BC(e):VC(e)}),UC=()=>`Integration Guide`,WC=()=>`Integration Guide`,GC=()=>`Integration Guide`,KC=()=>`Integration Guide`,qC=()=>`接入配置`,JC=()=>`接入配置`,YC=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?UC(e):n===`ja-JP`?WC(e):n===`ko-KR`?GC(e):n===`ru-RU`?KC(e):n===`zh-TW`?qC(e):JC(e)}),XC=()=>`Transactions`,ZC=()=>`Transactions`,QC=()=>`Transactions`,$C=()=>`Transactions`,ew=()=>`交易`,tw=()=>`交易`,nw=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?XC(e):n===`ja-JP`?ZC(e):n===`ko-KR`?QC(e):n===`ru-RU`?$C(e):n===`zh-TW`?ew(e):tw(e)}),rw=()=>`Finance`,iw=()=>`Finance`,aw=()=>`Finance`,ow=()=>`Finance`,sw=()=>`財務`,cw=()=>`财务`,lw=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rw(e):n===`ja-JP`?iw(e):n===`ko-KR`?aw(e):n===`ru-RU`?ow(e):n===`zh-TW`?sw(e):cw(e)}),uw=()=>`Address Management`,dw=()=>`Address Management`,fw=()=>`Address Management`,pw=()=>`Address Management`,mw=()=>`地址管理`,hw=()=>`地址管理`,gw=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?uw(e):n===`ja-JP`?dw(e):n===`ko-KR`?fw(e):n===`ru-RU`?pw(e):n===`zh-TW`?mw(e):hw(e)}),_w=e=>`Last login: ${e?.time}`,vw=e=>`Last login: ${e?.time}`,yw=e=>`Last login: ${e?.time}`,bw=e=>`Last login: ${e?.time}`,xw=e=>`上次登入: ${e?.time}`,Sw=e=>`上次登录: ${e?.time}`,Cw=((e,t={})=>{let n=t.locale??m();return n===`en-US`?_w(e):n===`ja-JP`?vw(e):n===`ko-KR`?yw(e):n===`ru-RU`?bw(e):n===`zh-TW`?xw(e):Sw(e)}),ww=()=>`Welcome to Admin Console`,Tw=()=>`Welcome to Admin Console`,Ew=()=>`Welcome to Admin Console`,Dw=()=>`Welcome to Admin Console`,Ow=()=>`歡迎使用管理後臺`,kw=()=>`欢迎使用管理后台`,Aw=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ww(e):n===`ja-JP`?Tw(e):n===`ko-KR`?Ew(e):n===`ru-RU`?Dw(e):n===`zh-TW`?Ow(e):kw(e)}),jw=()=>`Dashboard`,Mw=()=>`Dashboard`,Nw=()=>`Dashboard`,Pw=()=>`Dashboard`,Fw=()=>`儀表盤`,Iw=()=>`仪表盘`,Lw=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jw(e):n===`ja-JP`?Mw(e):n===`ko-KR`?Nw(e):n===`ru-RU`?Pw(e):n===`zh-TW`?Fw(e):Iw(e)}),Rw=()=>`View asset balances, revenue trends, and recent order statuses.`,zw=()=>`View asset balances, revenue trends, and recent order statuses.`,Bw=()=>`View asset balances, revenue trends, and recent order statuses.`,Vw=()=>`View asset balances, revenue trends, and recent order statuses.`,Hw=()=>`檢視資產、流水與最近訂單狀態。`,Uw=()=>`查看资产、流水与最近订单状态。`,Ww=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Rw(e):n===`ja-JP`?zw(e):n===`ko-KR`?Bw(e):n===`ru-RU`?Vw(e):n===`zh-TW`?Hw(e):Uw(e)}),Gw=()=>`Time`,Kw=()=>`Time`,qw=()=>`Time`,Jw=()=>`Time`,Yw=()=>`時間`,Xw=()=>`时间`,Zw=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Gw(e):n===`ja-JP`?Kw(e):n===`ko-KR`?qw(e):n===`ru-RU`?Jw(e):n===`zh-TW`?Yw(e):Xw(e)}),Qw=()=>`Order ID`,$w=()=>`Order ID`,eT=()=>`Order ID`,tT=()=>`Order ID`,nT=()=>`訂單號`,rT=()=>`订单号`,iT=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Qw(e):n===`ja-JP`?$w(e):n===`ko-KR`?eT(e):n===`ru-RU`?tT(e):n===`zh-TW`?nT(e):rT(e)}),aT=()=>`Wallet Address`,oT=()=>`Wallet Address`,sT=()=>`Wallet Address`,cT=()=>`Wallet Address`,lT=()=>`錢包地址`,uT=()=>`钱包地址`,dT=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?aT(e):n===`ja-JP`?oT(e):n===`ko-KR`?sT(e):n===`ru-RU`?cT(e):n===`zh-TW`?lT(e):uT(e)}),fT=()=>`Fiat Amount`,pT=()=>`Fiat Amount`,mT=()=>`Fiat Amount`,hT=()=>`Fiat Amount`,gT=()=>`法幣金額`,_T=()=>`法币金额`,vT=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fT(e):n===`ja-JP`?pT(e):n===`ko-KR`?mT(e):n===`ru-RU`?hT(e):n===`zh-TW`?gT(e):_T(e)}),yT=()=>`Token Amount`,bT=()=>`Token Amount`,xT=()=>`Token Amount`,ST=()=>`Token Amount`,CT=()=>`代幣金額`,wT=()=>`代币金额`,TT=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yT(e):n===`ja-JP`?bT(e):n===`ko-KR`?xT(e):n===`ru-RU`?ST(e):n===`zh-TW`?CT(e):wT(e)}),ET=()=>`Chain`,DT=()=>`Chain`,OT=()=>`Chain`,kT=()=>`Chain`,AT=()=>`鏈`,jT=()=>`链`,MT=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ET(e):n===`ja-JP`?DT(e):n===`ko-KR`?OT(e):n===`ru-RU`?kT(e):n===`zh-TW`?AT(e):jT(e)}),NT=()=>`Status`,PT=()=>`Status`,FT=()=>`Status`,IT=()=>`Status`,LT=()=>`狀態`,RT=()=>`状态`,zT=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?NT(e):n===`ja-JP`?PT(e):n===`ko-KR`?FT(e):n===`ru-RU`?IT(e):n===`zh-TW`?LT(e):RT(e)}),BT=()=>`Revenue Trend`,VT=()=>`Revenue Trend`,HT=()=>`Revenue Trend`,UT=()=>`Revenue Trend`,WT=()=>`流水趨勢`,GT=()=>`流水趋势`,KT=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?BT(e):n===`ja-JP`?VT(e):n===`ko-KR`?HT(e):n===`ru-RU`?UT(e):n===`zh-TW`?WT(e):GT(e)}),qT=()=>`Trend of successful and failed order amounts`,JT=()=>`Trend of successful and failed order amounts`,YT=()=>`Trend of successful and failed order amounts`,XT=()=>`Trend of successful and failed order amounts`,ZT=()=>`成功與失敗訂單金額趨勢`,QT=()=>`成功与失败订单金额趋势`,$T=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qT(e):n===`ja-JP`?JT(e):n===`ko-KR`?YT(e):n===`ru-RU`?XT(e):n===`zh-TW`?ZT(e):QT(e)}),eE=()=>`Order Statistics`,tE=()=>`Order Statistics`,nE=()=>`Order Statistics`,rE=()=>`Order Statistics`,iE=()=>`訂單統計`,aE=()=>`订单统计`,oE=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?eE(e):n===`ja-JP`?tE(e):n===`ko-KR`?nE(e):n===`ru-RU`?rE(e):n===`zh-TW`?iE(e):aE(e)}),sE=()=>`Daily order count and conversion rate trend`,cE=()=>`Daily order count and conversion rate trend`,lE=()=>`Daily order count and conversion rate trend`,uE=()=>`Daily order count and conversion rate trend`,dE=()=>`每日訂單數與成交率趨勢`,fE=()=>`每日订单数与成交率趋势`,pE=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sE(e):n===`ja-JP`?cE(e):n===`ko-KR`?lE(e):n===`ru-RU`?uE(e):n===`zh-TW`?dE(e):fE(e)}),mE=()=>`Recent Orders`,hE=()=>`Recent Orders`,gE=()=>`Recent Orders`,_E=()=>`Recent Orders`,vE=()=>`最近訂單`,yE=()=>`最近订单`,bE=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mE(e):n===`ja-JP`?hE(e):n===`ko-KR`?gE(e):n===`ru-RU`?_E(e):n===`zh-TW`?vE(e):yE(e)}),xE=()=>`Payment status of the latest 20 orders`,SE=()=>`Payment status of the latest 20 orders`,CE=()=>`Payment status of the latest 20 orders`,wE=()=>`Payment status of the latest 20 orders`,TE=()=>`最新 20 筆訂單收款狀態`,EE=()=>`最新 20 笔订单收款状态`,DE=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xE(e):n===`ja-JP`?SE(e):n===`ko-KR`?CE(e):n===`ru-RU`?wE(e):n===`zh-TW`?TE(e):EE(e)}),OE=()=>`No recent orders`,kE=()=>`No recent orders`,AE=()=>`No recent orders`,jE=()=>`No recent orders`,ME=()=>`暫無最近訂單`,NE=()=>`暂无最近订单`,PE=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?OE(e):n===`ja-JP`?kE(e):n===`ko-KR`?AE(e):n===`ru-RU`?jE(e):n===`zh-TW`?ME(e):NE(e)}),FE=()=>`Asset Trend`,IE=()=>`Asset Trend`,LE=()=>`Asset Trend`,RE=()=>`Asset Trend`,zE=()=>`資產趨勢`,BE=()=>`资产趋势`,VE=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?FE(e):n===`ja-JP`?IE(e):n===`ko-KR`?LE(e):n===`ru-RU`?RE(e):n===`zh-TW`?zE(e):BE(e)}),HE=()=>`Switch between today, 7 days, 30 days, and custom views`,UE=()=>`Switch between today, 7 days, 30 days, and custom views`,WE=()=>`Switch between today, 7 days, 30 days, and custom views`,GE=()=>`Switch between today, 7 days, 30 days, and custom views`,KE=()=>`支援今日、7 天、30 天與自定義檢視切換`,qE=()=>`支持今日、7 天、30 天与自定义视图切换`,JE=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?HE(e):n===`ja-JP`?UE(e):n===`ko-KR`?WE(e):n===`ru-RU`?GE(e):n===`zh-TW`?KE(e):qE(e)}),YE=()=>`Filter`,XE=()=>`Filter`,ZE=()=>`Filter`,QE=()=>`Filter`,$E=()=>`篩選`,eD=()=>`筛选`,tD=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?YE(e):n===`ja-JP`?XE(e):n===`ko-KR`?ZE(e):n===`ru-RU`?QE(e):n===`zh-TW`?$E(e):eD(e)}),nD=()=>`No data`,rD=()=>`No data`,iD=()=>`No data`,aD=()=>`No data`,oD=()=>`無資料`,sD=()=>`无数据`,cD=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nD(e):n===`ja-JP`?rD(e):n===`ko-KR`?iD(e):n===`ru-RU`?aD(e):n===`zh-TW`?oD(e):sD(e)}),lD=()=>`Clear filters`,uD=()=>`Clear filters`,dD=()=>`Clear filters`,fD=()=>`Clear filters`,pD=()=>`清除篩選`,mD=()=>`清除筛选`,hD=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lD(e):n===`ja-JP`?uD(e):n===`ko-KR`?dD(e):n===`ru-RU`?fD(e):n===`zh-TW`?pD(e):mD(e)}),gD=()=>`Total Amount`,_D=()=>`Total Amount`,vD=()=>`Total Amount`,yD=()=>`Total Amount`,bD=()=>`總金額`,xD=()=>`总金额`,SD=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gD(e):n===`ja-JP`?_D(e):n===`ko-KR`?vD(e):n===`ru-RU`?yD(e):n===`zh-TW`?bD(e):xD(e)}),CD=()=>`Actual Amount`,wD=()=>`Actual Amount`,TD=()=>`Actual Amount`,ED=()=>`Actual Amount`,DD=()=>`實收金額`,OD=()=>`实收金额`,kD=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?CD(e):n===`ja-JP`?wD(e):n===`ko-KR`?TD(e):n===`ru-RU`?ED(e):n===`zh-TW`?DD(e):OD(e)}),AD=()=>`Total Asset Balance (USD)`,jD=()=>`Total Asset Balance (USD)`,MD=()=>`Total Asset Balance (USD)`,ND=()=>`Total Asset Balance (USD)`,PD=()=>`總資產餘額 (USD)`,FD=()=>`总资产余额 (USD)`,ID=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?AD(e):n===`ja-JP`?jD(e):n===`ko-KR`?MD(e):n===`ru-RU`?ND(e):n===`zh-TW`?PD(e):FD(e)}),LD=()=>`Current available asset pool`,RD=()=>`Current available asset pool`,zD=()=>`Current available asset pool`,BD=()=>`Current available asset pool`,VD=()=>`當前可用資金池`,HD=()=>`当前可用资金池`,UD=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?LD(e):n===`ja-JP`?RD(e):n===`ko-KR`?zD(e):n===`ru-RU`?BD(e):n===`zh-TW`?VD(e):HD(e)}),WD=()=>`Total Volume`,GD=()=>`Total Volume`,KD=()=>`Total Volume`,qD=()=>`Total Volume`,JD=()=>`總流水`,YD=()=>`总流水`,XD=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?WD(e):n===`ja-JP`?GD(e):n===`ko-KR`?KD(e):n===`ru-RU`?qD(e):n===`zh-TW`?JD(e):YD(e)}),ZD=()=>`Cumulative successful payment amount`,QD=()=>`Cumulative successful payment amount`,$D=()=>`Cumulative successful payment amount`,eO=()=>`Cumulative successful payment amount`,tO=()=>`累計成功收款金額`,nO=()=>`累计成功收款金额`,rO=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ZD(e):n===`ja-JP`?QD(e):n===`ko-KR`?$D(e):n===`ru-RU`?eO(e):n===`zh-TW`?tO(e):nO(e)}),iO=()=>`Total Orders`,aO=()=>`Total Orders`,oO=()=>`Total Orders`,sO=()=>`Total Orders`,cO=()=>`總訂單量`,lO=()=>`总订单量`,uO=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?iO(e):n===`ja-JP`?aO(e):n===`ko-KR`?oO(e):n===`ru-RU`?sO(e):n===`zh-TW`?cO(e):lO(e)}),dO=()=>`Cumulative number of orders`,fO=()=>`Cumulative number of orders`,pO=()=>`Cumulative number of orders`,mO=()=>`Cumulative number of orders`,hO=()=>`累計訂單數量`,gO=()=>`累计订单数量`,_O=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dO(e):n===`ja-JP`?fO(e):n===`ko-KR`?pO(e):n===`ru-RU`?mO(e):n===`zh-TW`?hO(e):gO(e)}),vO=()=>`Total Conversion Rate`,yO=()=>`Total Conversion Rate`,bO=()=>`Total Conversion Rate`,xO=()=>`Total Conversion Rate`,SO=()=>`總成交率`,CO=()=>`总成交率`,wO=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vO(e):n===`ja-JP`?yO(e):n===`ko-KR`?bO(e):n===`ru-RU`?xO(e):n===`zh-TW`?SO(e):CO(e)}),TO=()=>`Cumulative paid / total orders`,EO=()=>`Cumulative paid / total orders`,DO=()=>`Cumulative paid / total orders`,OO=()=>`Cumulative paid / total orders`,kO=()=>`累計已支付 / 總訂單`,AO=()=>`累计已支付 / 总订单`,jO=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?TO(e):n===`ja-JP`?EO(e):n===`ko-KR`?DO(e):n===`ru-RU`?OO(e):n===`zh-TW`?kO(e):AO(e)}),MO=()=>`Order Count`,NO=()=>`Order Count`,PO=()=>`Order Count`,FO=()=>`Order Count`,IO=()=>`訂單總數`,LO=()=>`订单总数`,RO=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?MO(e):n===`ja-JP`?NO(e):n===`ko-KR`?PO(e):n===`ru-RU`?FO(e):n===`zh-TW`?IO(e):LO(e)}),zO=()=>`Total orders in the selected period`,BO=()=>`Total orders in the selected period`,VO=()=>`Total orders in the selected period`,HO=()=>`Total orders in the selected period`,UO=()=>`當前篩選週期內訂單總數`,WO=()=>`当前筛选周期内订单总数`,GO=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zO(e):n===`ja-JP`?BO(e):n===`ko-KR`?VO(e):n===`ru-RU`?HO(e):n===`zh-TW`?UO(e):WO(e)}),KO=()=>`Successful Orders`,qO=()=>`Successful Orders`,JO=()=>`Successful Orders`,YO=()=>`Successful Orders`,XO=()=>`成功訂單`,ZO=()=>`成功订单`,QO=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?KO(e):n===`ja-JP`?qO(e):n===`ko-KR`?JO(e):n===`ru-RU`?YO(e):n===`zh-TW`?XO(e):ZO(e)}),$O=()=>`Paid orders in the selected period`,ek=()=>`Paid orders in the selected period`,tk=()=>`Paid orders in the selected period`,nk=()=>`Paid orders in the selected period`,rk=()=>`當前篩選週期內已支付訂單`,ik=()=>`当前筛选周期内已支付订单`,ak=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$O(e):n===`ja-JP`?ek(e):n===`ko-KR`?tk(e):n===`ru-RU`?nk(e):n===`zh-TW`?rk(e):ik(e)}),ok=()=>`Average Payment Time`,sk=()=>`Average Payment Time`,ck=()=>`Average Payment Time`,lk=()=>`Average Payment Time`,uk=()=>`平均支付耗時`,dk=()=>`平均支付耗时`,fk=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ok(e):n===`ja-JP`?sk(e):n===`ko-KR`?ck(e):n===`ru-RU`?lk(e):n===`zh-TW`?uk(e):dk(e)}),pk=()=>`Average time from order creation to payment success`,mk=()=>`Average time from order creation to payment success`,hk=()=>`Average time from order creation to payment success`,gk=()=>`Average time from order creation to payment success`,_k=()=>`訂單建立到支付成功平均耗時`,vk=()=>`订单创建到支付成功平均耗时`,yk=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pk(e):n===`ja-JP`?mk(e):n===`ko-KR`?hk(e):n===`ru-RU`?gk(e):n===`zh-TW`?_k(e):vk(e)}),bk=()=>`Expired Unpaid`,xk=()=>`Expired Unpaid`,Sk=()=>`Expired Unpaid`,Ck=()=>`Expired Unpaid`,wk=()=>`超時未支付`,Tk=()=>`超时未支付`,Ek=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bk(e):n===`ja-JP`?xk(e):n===`ko-KR`?Sk(e):n===`ru-RU`?Ck(e):n===`zh-TW`?wk(e):Tk(e)}),Dk=()=>`Expired and unpaid orders`,Ok=()=>`Expired and unpaid orders`,kk=()=>`Expired and unpaid orders`,Ak=()=>`Expired and unpaid orders`,jk=()=>`已過期且未支付訂單`,Mk=()=>`已过期且未支付订单`,Nk=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Dk(e):n===`ja-JP`?Ok(e):n===`ko-KR`?kk(e):n===`ru-RU`?Ak(e):n===`zh-TW`?jk(e):Mk(e)}),Pk=()=>`Last 7 Days Volume`,Fk=()=>`Last 7 Days Volume`,Ik=()=>`Last 7 Days Volume`,Lk=()=>`Last 7 Days Volume`,Rk=()=>`最近7日流水`,zk=()=>`最近7日流水`,Bk=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Pk(e):n===`ja-JP`?Fk(e):n===`ko-KR`?Ik(e):n===`ru-RU`?Lk(e):n===`zh-TW`?Rk(e):zk(e)}),Vk=()=>`Cumulative payments in the last 7 days`,Hk=()=>`Cumulative payments in the last 7 days`,Uk=()=>`Cumulative payments in the last 7 days`,Wk=()=>`Cumulative payments in the last 7 days`,Gk=()=>`近 7 天累計收款`,Kk=()=>`近 7 天累计收款`,qk=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Vk(e):n===`ja-JP`?Hk(e):n===`ko-KR`?Uk(e):n===`ru-RU`?Wk(e):n===`zh-TW`?Gk(e):Kk(e)}),Jk=()=>`Active Address Count`,Yk=()=>`Active Address Count`,Xk=()=>`Active Address Count`,Zk=()=>`Active Address Count`,Qk=()=>`活躍地址數量`,$k=()=>`活跃地址数量`,eA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Jk(e):n===`ja-JP`?Yk(e):n===`ko-KR`?Xk(e):n===`ru-RU`?Zk(e):n===`zh-TW`?Qk(e):$k(e)}),tA=()=>`Addresses with transactions in the last 24 hours`,nA=()=>`Addresses with transactions in the last 24 hours`,rA=()=>`Addresses with transactions in the last 24 hours`,iA=()=>`Addresses with transactions in the last 24 hours`,aA=()=>`近 24 小時有流水地址`,oA=()=>`近 24 小时有流水地址`,sA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tA(e):n===`ja-JP`?nA(e):n===`ko-KR`?rA(e):n===`ru-RU`?iA(e):n===`zh-TW`?aA(e):oA(e)}),cA=()=>`Online Chain Count`,lA=()=>`Online Chain Count`,uA=()=>`Online Chain Count`,dA=()=>`Online Chain Count`,fA=()=>`線上鏈數量`,pA=()=>`在线链数量`,mA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cA(e):n===`ja-JP`?lA(e):n===`ko-KR`?uA(e):n===`ru-RU`?dA(e):n===`zh-TW`?fA(e):pA(e)}),hA=()=>`Currently available payment networks`,gA=()=>`Currently available payment networks`,_A=()=>`Currently available payment networks`,vA=()=>`Currently available payment networks`,yA=()=>`當前可用收款網路`,bA=()=>`当前可用收款网络`,xA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hA(e):n===`ja-JP`?gA(e):n===`ko-KR`?_A(e):n===`ru-RU`?vA(e):n===`zh-TW`?yA(e):bA(e)}),SA=()=>`Order Success Rate`,CA=()=>`Order Success Rate`,wA=()=>`Order Success Rate`,TA=()=>`Order Success Rate`,EA=()=>`訂單成功率`,DA=()=>`订单成功率`,OA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?SA(e):n===`ja-JP`?CA(e):n===`ko-KR`?wA(e):n===`ru-RU`?TA(e):n===`zh-TW`?EA(e):DA(e)}),kA=()=>`Conversion rate in the selected period`,AA=()=>`Conversion rate in the selected period`,jA=()=>`Conversion rate in the selected period`,MA=()=>`Conversion rate in the selected period`,NA=()=>`當前篩選週期內成交率`,PA=()=>`当前筛选周期内成交率`,FA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kA(e):n===`ja-JP`?AA(e):n===`ko-KR`?jA(e):n===`ru-RU`?MA(e):n===`zh-TW`?NA(e):PA(e)}),IA=()=>`RPC Live Monitor`,LA=()=>`RPC Live Monitor`,RA=()=>`RPC Live Monitor`,zA=()=>`RPC Live Monitor`,BA=()=>`RPC 即時監控`,VA=()=>`RPC 实时监控`,HA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?IA(e):n===`ja-JP`?LA(e):n===`ko-KR`?RA(e):n===`ru-RU`?zA(e):n===`zh-TW`?BA(e):VA(e)}),UA=()=>`Real-time chain sync, RPC success rate, and runtime status.`,WA=()=>`Real-time chain sync, RPC success rate, and runtime status.`,GA=()=>`Real-time chain sync, RPC success rate, and runtime status.`,KA=()=>`Real-time chain sync, RPC success rate, and runtime status.`,qA=()=>`鏈上同步、RPC 成功率與執行狀態即時更新`,JA=()=>`链上同步、RPC 成功率与运行状态实时更新`,YA=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?UA(e):n===`ja-JP`?WA(e):n===`ko-KR`?GA(e):n===`ru-RU`?KA(e):n===`zh-TW`?qA(e):JA(e)}),XA=()=>`Live`,ZA=()=>`Live`,QA=()=>`Live`,$A=()=>`Live`,ej=()=>`即時連線`,tj=()=>`实时连接`,nj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?XA(e):n===`ja-JP`?ZA(e):n===`ko-KR`?QA(e):n===`ru-RU`?$A(e):n===`zh-TW`?ej(e):tj(e)}),rj=()=>`Connecting`,ij=()=>`Connecting`,aj=()=>`Connecting`,oj=()=>`Connecting`,sj=()=>`連線中`,cj=()=>`连接中`,lj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rj(e):n===`ja-JP`?ij(e):n===`ko-KR`?aj(e):n===`ru-RU`?oj(e):n===`zh-TW`?sj(e):cj(e)}),uj=()=>`Reconnecting`,dj=()=>`Reconnecting`,fj=()=>`Reconnecting`,pj=()=>`Reconnecting`,mj=()=>`重新連線中`,hj=()=>`重连中`,gj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?uj(e):n===`ja-JP`?dj(e):n===`ko-KR`?fj(e):n===`ru-RU`?pj(e):n===`zh-TW`?mj(e):hj(e)}),_j=()=>`RPC stats unavailable`,vj=()=>`RPC stats unavailable`,yj=()=>`RPC stats unavailable`,bj=()=>`RPC stats unavailable`,xj=()=>`RPC 統計暫不可用`,Sj=()=>`RPC 统计暂不可用`,Cj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_j(e):n===`ja-JP`?vj(e):n===`ko-KR`?yj(e):n===`ru-RU`?bj(e):n===`zh-TW`?xj(e):Sj(e)}),wj=()=>`RPC Success Rate`,Tj=()=>`RPC Success Rate`,Ej=()=>`RPC Success Rate`,Dj=()=>`RPC Success Rate`,Oj=()=>`RPC 成功率`,kj=()=>`RPC 成功率`,Aj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wj(e):n===`ja-JP`?Tj(e):n===`ko-KR`?Ej(e):n===`ru-RU`?Dj(e):n===`zh-TW`?Oj(e):kj(e)}),jj=()=>`Active Links`,Mj=()=>`Active Links`,Nj=()=>`Active Links`,Pj=()=>`Active Links`,Fj=()=>`活躍鏈路`,Ij=()=>`活跃链路`,Lj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jj(e):n===`ja-JP`?Mj(e):n===`ko-KR`?Nj(e):n===`ru-RU`?Pj(e):n===`zh-TW`?Fj(e):Ij(e)}),Rj=()=>`Latest Block`,zj=()=>`Latest Block`,Bj=()=>`Latest Block`,Vj=()=>`Latest Block`,Hj=()=>`最新區塊`,Uj=()=>`最新区块`,Wj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Rj(e):n===`ja-JP`?zj(e):n===`ko-KR`?Bj(e):n===`ru-RU`?Vj(e):n===`zh-TW`?Hj(e):Uj(e)}),Gj=()=>`Needs Attention`,Kj=()=>`Needs Attention`,qj=()=>`Needs Attention`,Jj=()=>`Needs Attention`,Yj=()=>`需關注鏈路`,Xj=()=>`需关注链路`,Zj=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Gj(e):n===`ja-JP`?Kj(e):n===`ko-KR`?qj(e):n===`ru-RU`?Jj(e):n===`zh-TW`?Yj(e):Xj(e)}),Qj=()=>`Chain Runtime`,$j=()=>`Chain Runtime`,eM=()=>`Chain Runtime`,tM=()=>`Chain Runtime`,nM=()=>`鏈執行狀態`,rM=()=>`链运行状态`,iM=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Qj(e):n===`ja-JP`?$j(e):n===`ko-KR`?eM(e):n===`ru-RU`?tM(e):n===`zh-TW`?nM(e):rM(e)}),aM=e=>`Updated ${e?.time}`,oM=e=>`Updated ${e?.time}`,sM=e=>`Updated ${e?.time}`,cM=e=>`Updated ${e?.time}`,lM=e=>`更新於 ${e?.time}`,uM=e=>`更新于 ${e?.time}`,dM=((e,t={})=>{let n=t.locale??m();return n===`en-US`?aM(e):n===`ja-JP`?oM(e):n===`ko-KR`?sM(e):n===`ru-RU`?cM(e):n===`zh-TW`?lM(e):uM(e)}),fM=()=>`No RPC runtime data`,pM=()=>`No RPC runtime data`,mM=()=>`No RPC runtime data`,hM=()=>`No RPC runtime data`,gM=()=>`暫無 RPC 執行資料`,_M=()=>`暂无 RPC 运行数据`,vM=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fM(e):n===`ja-JP`?pM(e):n===`ko-KR`?mM(e):n===`ru-RU`?hM(e):n===`zh-TW`?gM(e):_M(e)}),yM=()=>`OK`,bM=()=>`OK`,xM=()=>`OK`,SM=()=>`OK`,CM=()=>`正常`,wM=()=>`正常`,TM=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yM(e):n===`ja-JP`?bM(e):n===`ko-KR`?xM(e):n===`ru-RU`?SM(e):n===`zh-TW`?CM(e):wM(e)}),EM=()=>`Warning`,DM=()=>`Warning`,OM=()=>`Warning`,kM=()=>`Warning`,AM=()=>`波動`,jM=()=>`波动`,MM=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?EM(e):n===`ja-JP`?DM(e):n===`ko-KR`?OM(e):n===`ru-RU`?kM(e):n===`zh-TW`?AM(e):jM(e)}),NM=()=>`Down`,PM=()=>`Down`,FM=()=>`Down`,IM=()=>`Down`,LM=()=>`異常`,RM=()=>`异常`,zM=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?NM(e):n===`ja-JP`?PM(e):n===`ko-KR`?FM(e):n===`ru-RU`?IM(e):n===`zh-TW`?LM(e):RM(e)}),BM=()=>`Unknown`,VM=()=>`Unknown`,HM=()=>`Unknown`,UM=()=>`Unknown`,WM=()=>`未知`,GM=()=>`未知`,KM=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?BM(e):n===`ja-JP`?VM(e):n===`ko-KR`?HM(e):n===`ru-RU`?UM(e):n===`zh-TW`?WM(e):GM(e)}),qM=()=>`Disabled`,JM=()=>`Disabled`,YM=()=>`Disabled`,XM=()=>`Disabled`,ZM=()=>`停用`,QM=()=>`停用`,$M=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qM(e):n===`ja-JP`?JM(e):n===`ko-KR`?YM(e):n===`ru-RU`?XM(e):n===`zh-TW`?ZM(e):QM(e)}),eN=()=>`Success Rate`,tN=()=>`Success Rate`,nN=()=>`Success Rate`,rN=()=>`Success Rate`,iN=()=>`成功率`,aN=()=>`成功率`,oN=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?eN(e):n===`ja-JP`?tN(e):n===`ko-KR`?nN(e):n===`ru-RU`?rN(e):n===`zh-TW`?iN(e):aN(e)}),sN=()=>`Block Height`,cN=()=>`Block Height`,lN=()=>`Block Height`,uN=()=>`Block Height`,dN=()=>`區塊高度`,fN=()=>`区块高度`,pN=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sN(e):n===`ja-JP`?cN(e):n===`ko-KR`?lN(e):n===`ru-RU`?uN(e):n===`zh-TW`?dN(e):fN(e)}),mN=e=>`Synced ${e?.time}`,hN=e=>`Synced ${e?.time}`,gN=e=>`Synced ${e?.time}`,_N=e=>`Synced ${e?.time}`,vN=e=>`同步於 ${e?.time}`,yN=e=>`同步于 ${e?.time}`,bN=((e,t={})=>{let n=t.locale??m();return n===`en-US`?mN(e):n===`ja-JP`?hN(e):n===`ko-KR`?gN(e):n===`ru-RU`?_N(e):n===`zh-TW`?vN(e):yN(e)}),xN=()=>`Total Amount`,SN=()=>`Total Amount`,CN=()=>`Total Amount`,wN=()=>`Total Amount`,TN=()=>`總金額`,EN=()=>`总金额`,DN=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xN(e):n===`ja-JP`?SN(e):n===`ko-KR`?CN(e):n===`ru-RU`?wN(e):n===`zh-TW`?TN(e):EN(e)}),ON=()=>`Actual Amount`,kN=()=>`Actual Amount`,AN=()=>`Actual Amount`,jN=()=>`Actual Amount`,MN=()=>`實收金額`,NN=()=>`实收金额`,PN=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ON(e):n===`ja-JP`?kN(e):n===`ko-KR`?AN(e):n===`ru-RU`?jN(e):n===`zh-TW`?MN(e):NN(e)}),FN=()=>`Order Count`,IN=()=>`Order Count`,LN=()=>`Order Count`,RN=()=>`Order Count`,zN=()=>`訂單數`,BN=()=>`订单数`,VN=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?FN(e):n===`ja-JP`?IN(e):n===`ko-KR`?LN(e):n===`ru-RU`?RN(e):n===`zh-TW`?zN(e):BN(e)}),HN=()=>`Successful Orders`,UN=()=>`Successful Orders`,WN=()=>`Successful Orders`,GN=()=>`Successful Orders`,KN=()=>`成功訂單`,qN=()=>`成功订单`,JN=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?HN(e):n===`ja-JP`?UN(e):n===`ko-KR`?WN(e):n===`ru-RU`?GN(e):n===`zh-TW`?KN(e):qN(e)}),YN=()=>`Today`,XN=()=>`Today`,ZN=()=>`Today`,QN=()=>`Today`,$N=()=>`今日`,eP=()=>`今日`,tP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?YN(e):n===`ja-JP`?XN(e):n===`ko-KR`?ZN(e):n===`ru-RU`?QN(e):n===`zh-TW`?$N(e):eP(e)}),nP=()=>`7 days`,rP=()=>`7 days`,iP=()=>`7 days`,aP=()=>`7 days`,oP=()=>`7天`,sP=()=>`7天`,cP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nP(e):n===`ja-JP`?rP(e):n===`ko-KR`?iP(e):n===`ru-RU`?aP(e):n===`zh-TW`?oP(e):sP(e)}),lP=()=>`30 days`,uP=()=>`30 days`,dP=()=>`30 days`,fP=()=>`30 days`,pP=()=>`30天`,mP=()=>`30天`,hP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lP(e):n===`ja-JP`?uP(e):n===`ko-KR`?dP(e):n===`ru-RU`?fP(e):n===`zh-TW`?pP(e):mP(e)}),gP=()=>`Custom`,_P=()=>`Custom`,vP=()=>`Custom`,yP=()=>`Custom`,bP=()=>`自定義`,xP=()=>`自定义`,SP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gP(e):n===`ja-JP`?_P(e):n===`ko-KR`?vP(e):n===`ru-RU`?yP(e):n===`zh-TW`?bP(e):xP(e)}),CP=()=>`Close Order`,wP=()=>`Close Order`,TP=()=>`Close Order`,EP=()=>`Close Order`,DP=()=>`關閉訂單`,OP=()=>`关闭订单`,kP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?CP(e):n===`ja-JP`?wP(e):n===`ko-KR`?TP(e):n===`ru-RU`?EP(e):n===`zh-TW`?DP(e):OP(e)}),AP=()=>`Resend Callback`,jP=()=>`Resend Callback`,MP=()=>`Resend Callback`,NP=()=>`Resend Callback`,PP=()=>`回呼重發`,FP=()=>`回调重发`,IP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?AP(e):n===`ja-JP`?jP(e):n===`ko-KR`?MP(e):n===`ru-RU`?NP(e):n===`zh-TW`?PP(e):FP(e)}),LP=()=>`Please enter the block transaction ID`,RP=()=>`Please enter the block transaction ID`,zP=()=>`Please enter the block transaction ID`,BP=()=>`Please enter the block transaction ID`,VP=()=>`請輸入區塊交易 ID`,HP=()=>`请输入区块交易 ID`,UP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?LP(e):n===`ja-JP`?RP(e):n===`ko-KR`?zP(e):n===`ru-RU`?BP(e):n===`zh-TW`?VP(e):HP(e)}),WP=()=>`Order marked as paid`,GP=()=>`Order marked as paid`,KP=()=>`Order marked as paid`,qP=()=>`Order marked as paid`,JP=()=>`訂單已標記為已支付`,YP=()=>`订单已标记为已支付`,XP=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?WP(e):n===`ja-JP`?GP(e):n===`ko-KR`?KP(e):n===`ru-RU`?qP(e):n===`zh-TW`?JP(e):YP(e)}),ZP=()=>`Order export failed`,QP=()=>`Order export failed`,$P=()=>`Order export failed`,eF=()=>`Order export failed`,tF=()=>`訂單匯出失敗`,nF=()=>`订单导出失败`,rF=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ZP(e):n===`ja-JP`?QP(e):n===`ko-KR`?$P(e):n===`ru-RU`?eF(e):n===`zh-TW`?tF(e):nF(e)}),iF=()=>`Order export succeeded`,aF=()=>`Order export succeeded`,oF=()=>`Order export succeeded`,sF=()=>`Order export succeeded`,cF=()=>`訂單匯出成功`,lF=()=>`订单导出成功`,uF=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?iF(e):n===`ja-JP`?aF(e):n===`ko-KR`?oF(e):n===`ru-RU`?sF(e):n===`zh-TW`?cF(e):lF(e)}),dF=()=>`Exporting...`,fF=()=>`Exporting...`,pF=()=>`Exporting...`,mF=()=>`Exporting...`,hF=()=>`匯出中...`,gF=()=>`导出中...`,_F=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dF(e):n===`ja-JP`?fF(e):n===`ko-KR`?pF(e):n===`ru-RU`?mF(e):n===`zh-TW`?hF(e):gF(e)}),vF=()=>`Export Orders`,yF=()=>`Export Orders`,bF=()=>`Export Orders`,xF=()=>`Export Orders`,SF=()=>`匯出訂單`,CF=()=>`导出订单`,wF=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vF(e):n===`ja-JP`?yF(e):n===`ko-KR`?bF(e):n===`ru-RU`?xF(e):n===`zh-TW`?SF(e):CF(e)}),TF=()=>`Search orders, filter by status, and perform manual payment / close / resend callback actions.`,EF=()=>`Search orders, filter by status, and perform manual payment / close / resend callback actions.`,DF=()=>`Search orders, filter by status, and perform manual payment / close / resend callback actions.`,OF=()=>`Search orders, filter by status, and perform manual payment / close / resend callback actions.`,kF=()=>`搜尋訂單、篩選狀態與執行補單/關閉/回呼操作。`,AF=()=>`搜索订单、筛选状态并执行补单 / 关闭 / 回调操作。`,jF=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?TF(e):n===`ja-JP`?EF(e):n===`ko-KR`?DF(e):n===`ru-RU`?OF(e):n===`zh-TW`?kF(e):AF(e)}),MF=()=>`Order Management`,NF=()=>`Order Management`,PF=()=>`Order Management`,FF=()=>`Order Management`,IF=()=>`訂單管理`,LF=()=>`订单管理`,RF=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?MF(e):n===`ja-JP`?NF(e):n===`ko-KR`?PF(e):n===`ru-RU`?FF(e):n===`zh-TW`?IF(e):LF(e)}),zF=()=>`Details`,BF=()=>`Details`,VF=()=>`Details`,HF=()=>`Details`,UF=()=>`詳情`,WF=()=>`详情`,GF=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zF(e):n===`ja-JP`?BF(e):n===`ko-KR`?VF(e):n===`ru-RU`?HF(e):n===`zh-TW`?UF(e):WF(e)}),KF=()=>`Manual Mark Paid`,qF=()=>`Manual Mark Paid`,JF=()=>`Manual Mark Paid`,YF=()=>`Manual Mark Paid`,XF=()=>`補單`,ZF=()=>`补单`,QF=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?KF(e):n===`ja-JP`?qF(e):n===`ko-KR`?JF(e):n===`ru-RU`?YF(e):n===`zh-TW`?XF(e):ZF(e)}),$F=()=>`Confirm`,eI=()=>`Confirm`,tI=()=>`Confirm`,nI=()=>`Confirm`,rI=()=>`確認`,iI=()=>`确认`,aI=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$F(e):n===`ja-JP`?eI(e):n===`ko-KR`?tI(e):n===`ru-RU`?nI(e):n===`zh-TW`?rI(e):iI(e)}),oI=e=>`You are about to perform the “${e?.action}” action on order ${e?.id}.`,sI=e=>`You are about to perform the “${e?.action}” action on order ${e?.id}.`,cI=e=>`You are about to perform the “${e?.action}” action on order ${e?.id}.`,lI=e=>`You are about to perform the “${e?.action}” action on order ${e?.id}.`,uI=e=>`即將對訂單 ${e?.id} 執行“${e?.action}”操作。`,dI=e=>`即将对订单 ${e?.id} 执行“${e?.action}”操作。`,fI=((e,t={})=>{let n=t.locale??m();return n===`en-US`?oI(e):n===`ja-JP`?sI(e):n===`ko-KR`?cI(e):n===`ru-RU`?lI(e):n===`zh-TW`?uI(e):dI(e)}),pI=e=>`Confirm ${e?.action}`,mI=e=>`Confirm ${e?.action}`,hI=e=>`Confirm ${e?.action}`,gI=e=>`Confirm ${e?.action}`,_I=e=>`${e?.action}確認`,vI=e=>`${e?.action}确认`,yI=((e,t={})=>{let n=t.locale??m();return n===`en-US`?pI(e):n===`ja-JP`?mI(e):n===`ko-KR`?hI(e):n===`ru-RU`?gI(e):n===`zh-TW`?_I(e):vI(e)}),bI=()=>`Mark as Paid`,xI=()=>`Mark as Paid`,SI=()=>`Mark as Paid`,CI=()=>`Mark as Paid`,wI=()=>`標記已支付`,TI=()=>`标记已支付`,EI=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bI(e):n===`ja-JP`?xI(e):n===`ko-KR`?SI(e):n===`ru-RU`?CI(e):n===`zh-TW`?wI(e):TI(e)}),DI=e=>`Fill in the on-chain transaction ID for order ${e?.id}.`,OI=e=>`Fill in the on-chain transaction ID for order ${e?.id}.`,kI=e=>`Fill in the on-chain transaction ID for order ${e?.id}.`,AI=e=>`Fill in the on-chain transaction ID for order ${e?.id}.`,jI=e=>`為訂單 ${e?.id} 填寫鏈上交易 ID。`,MI=e=>`为订单 ${e?.id} 填写链上交易 ID。`,NI=((e,t={})=>{let n=t.locale??m();return n===`en-US`?DI(e):n===`ja-JP`?OI(e):n===`ko-KR`?kI(e):n===`ru-RU`?AI(e):n===`zh-TW`?jI(e):MI(e)}),PI=()=>`Block Transaction ID`,FI=()=>`Block Transaction ID`,II=()=>`Block Transaction ID`,LI=()=>`Block Transaction ID`,RI=()=>`區塊交易 ID`,zI=()=>`区块交易 ID`,BI=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?PI(e):n===`ja-JP`?FI(e):n===`ko-KR`?II(e):n===`ru-RU`?LI(e):n===`zh-TW`?RI(e):zI(e)}),VI=()=>`Submitting...`,HI=()=>`Submitting...`,UI=()=>`Submitting...`,WI=()=>`Submitting...`,GI=()=>`提交中...`,KI=()=>`提交中...`,qI=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?VI(e):n===`ja-JP`?HI(e):n===`ko-KR`?UI(e):n===`ru-RU`?WI(e):n===`zh-TW`?GI(e):KI(e)}),JI=()=>`Confirm Manual Mark Paid`,YI=()=>`Confirm Manual Mark Paid`,XI=()=>`Confirm Manual Mark Paid`,ZI=()=>`Confirm Manual Mark Paid`,QI=()=>`確認補單`,$I=()=>`确认补单`,eL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?JI(e):n===`ja-JP`?YI(e):n===`ko-KR`?XI(e):n===`ru-RU`?ZI(e):n===`zh-TW`?QI(e):$I(e)}),tL=()=>`Status`,nL=()=>`Status`,rL=()=>`Status`,iL=()=>`Status`,aL=()=>`狀態`,oL=()=>`状态`,sL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tL(e):n===`ja-JP`?nL(e):n===`ko-KR`?rL(e):n===`ru-RU`?iL(e):n===`zh-TW`?aL(e):oL(e)}),cL=()=>`Chain`,lL=()=>`Chain`,uL=()=>`Chain`,dL=()=>`Chain`,fL=()=>`鏈`,pL=()=>`链`,mL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cL(e):n===`ja-JP`?lL(e):n===`ko-KR`?uL(e):n===`ru-RU`?dL(e):n===`zh-TW`?fL(e):pL(e)}),hL=()=>`Search order ID / merchant order ID...`,gL=()=>`Search order ID / merchant order ID...`,_L=()=>`Search order ID / merchant order ID...`,vL=()=>`Search order ID / merchant order ID...`,yL=()=>`搜尋訂單號 / 商戶訂單號...`,bL=()=>`搜索订单号 / 商户订单号...`,xL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hL(e):n===`ja-JP`?gL(e):n===`ko-KR`?_L(e):n===`ru-RU`?vL(e):n===`zh-TW`?yL(e):bL(e)}),SL=()=>`No order data`,CL=()=>`No order data`,wL=()=>`No order data`,TL=()=>`No order data`,EL=()=>`暫無訂單資料`,DL=()=>`暂无订单数据`,OL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?SL(e):n===`ja-JP`?CL(e):n===`ko-KR`?wL(e):n===`ru-RU`?TL(e):n===`zh-TW`?EL(e):DL(e)}),kL=()=>`Status`,AL=()=>`Status`,jL=()=>`Status`,ML=()=>`Status`,NL=()=>`狀態`,PL=()=>`状态`,FL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kL(e):n===`ja-JP`?AL(e):n===`ko-KR`?jL(e):n===`ru-RU`?ML(e):n===`zh-TW`?NL(e):PL(e)}),IL=()=>`Merchant Order ID`,LL=()=>`Merchant Order ID`,RL=()=>`Merchant Order ID`,zL=()=>`Merchant Order ID`,BL=()=>`商戶訂單號`,VL=()=>`商户订单号`,HL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?IL(e):n===`ja-JP`?LL(e):n===`ko-KR`?RL(e):n===`ru-RU`?zL(e):n===`zh-TW`?BL(e):VL(e)}),UL=()=>`Order Name`,WL=()=>`Order Name`,GL=()=>`Order Name`,KL=()=>`Order Name`,qL=()=>`訂單名稱`,JL=()=>`订单名称`,YL=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?UL(e):n===`ja-JP`?WL(e):n===`ko-KR`?GL(e):n===`ru-RU`?KL(e):n===`zh-TW`?qL(e):JL(e)}),XL=()=>`Fiat Amount`,ZL=()=>`Fiat Amount`,QL=()=>`Fiat Amount`,$L=()=>`Fiat Amount`,eR=()=>`法幣金額`,tR=()=>`法币金额`,nR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?XL(e):n===`ja-JP`?ZL(e):n===`ko-KR`?QL(e):n===`ru-RU`?$L(e):n===`zh-TW`?eR(e):tR(e)}),rR=()=>`Token Amount`,iR=()=>`Token Amount`,aR=()=>`Token Amount`,oR=()=>`Token Amount`,sR=()=>`代幣金額`,cR=()=>`代币金额`,lR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rR(e):n===`ja-JP`?iR(e):n===`ko-KR`?aR(e):n===`ru-RU`?oR(e):n===`zh-TW`?sR(e):cR(e)}),uR=()=>`Chain`,dR=()=>`Chain`,fR=()=>`Chain`,pR=()=>`Chain`,mR=()=>`鏈`,hR=()=>`链`,gR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?uR(e):n===`ja-JP`?dR(e):n===`ko-KR`?fR(e):n===`ru-RU`?pR(e):n===`zh-TW`?mR(e):hR(e)}),_R=()=>`Address`,vR=()=>`Address`,yR=()=>`Address`,bR=()=>`Address`,xR=()=>`地址`,SR=()=>`地址`,CR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_R(e):n===`ja-JP`?vR(e):n===`ko-KR`?yR(e):n===`ru-RU`?bR(e):n===`zh-TW`?xR(e):SR(e)}),wR=()=>`Created At`,TR=()=>`Created At`,ER=()=>`Created At`,DR=()=>`Created At`,OR=()=>`建立時間`,kR=()=>`创建时间`,AR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wR(e):n===`ja-JP`?TR(e):n===`ko-KR`?ER(e):n===`ru-RU`?DR(e):n===`zh-TW`?OR(e):kR(e)}),jR=()=>`Updated At`,MR=()=>`Updated At`,NR=()=>`Updated At`,PR=()=>`Updated At`,FR=()=>`更新時間`,IR=()=>`更新时间`,LR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jR(e):n===`ja-JP`?MR(e):n===`ko-KR`?NR(e):n===`ru-RU`?PR(e):n===`zh-TW`?FR(e):IR(e)}),RR=()=>`On-chain Transaction ID`,zR=()=>`On-chain Transaction ID`,BR=()=>`On-chain Transaction ID`,VR=()=>`On-chain Transaction ID`,HR=()=>`鏈上交易 ID`,UR=()=>`链上交易 ID`,WR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?RR(e):n===`ja-JP`?zR(e):n===`ko-KR`?BR(e):n===`ru-RU`?VR(e):n===`zh-TW`?HR(e):UR(e)}),GR=()=>`Assigned Address`,KR=()=>`Assigned Address`,qR=()=>`Assigned Address`,JR=()=>`Assigned Address`,YR=()=>`已分配地址`,XR=()=>`已分配地址`,ZR=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?GR(e):n===`ja-JP`?KR(e):n===`ko-KR`?qR(e):n===`ru-RU`?JR(e):n===`zh-TW`?YR(e):XR(e)}),QR=()=>`Callback Status`,$R=()=>`Callback Status`,ez=()=>`Callback Status`,tz=()=>`Callback Status`,nz=()=>`回呼狀態`,rz=()=>`回调状态`,iz=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?QR(e):n===`ja-JP`?$R(e):n===`ko-KR`?ez(e):n===`ru-RU`?tz(e):n===`zh-TW`?nz(e):rz(e)}),az=()=>`Callback Count`,oz=()=>`Callback Count`,sz=()=>`Callback Count`,cz=()=>`Callback Count`,lz=()=>`回呼次數`,uz=()=>`回调次数`,dz=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?az(e):n===`ja-JP`?oz(e):n===`ko-KR`?sz(e):n===`ru-RU`?cz(e):n===`zh-TW`?lz(e):uz(e)}),fz=()=>`Notify URL`,pz=()=>`Notify URL`,mz=()=>`Notify URL`,hz=()=>`Notify URL`,gz=()=>`通知地址`,_z=()=>`通知地址`,vz=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fz(e):n===`ja-JP`?pz(e):n===`ko-KR`?mz(e):n===`ru-RU`?hz(e):n===`zh-TW`?gz(e):_z(e)}),yz=()=>`Redirect URL`,bz=()=>`Redirect URL`,xz=()=>`Redirect URL`,Sz=()=>`Redirect URL`,Cz=()=>`跳轉地址`,wz=()=>`跳转地址`,Tz=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yz(e):n===`ja-JP`?bz(e):n===`ko-KR`?xz(e):n===`ru-RU`?Sz(e):n===`zh-TW`?Cz(e):wz(e)}),Ez=()=>`Actions`,Dz=()=>`Actions`,Oz=()=>`Actions`,kz=()=>`Actions`,Az=()=>`操作`,jz=()=>`操作`,Mz=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ez(e):n===`ja-JP`?Dz(e):n===`ko-KR`?Oz(e):n===`ru-RU`?kz(e):n===`zh-TW`?Az(e):jz(e)}),Nz=()=>`Yes`,Pz=()=>`Yes`,Fz=()=>`Yes`,Iz=()=>`Yes`,Lz=()=>`是`,Rz=()=>`是`,zz=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Nz(e):n===`ja-JP`?Pz(e):n===`ko-KR`?Fz(e):n===`ru-RU`?Iz(e):n===`zh-TW`?Lz(e):Rz(e)}),Bz=()=>`No`,Vz=()=>`No`,Hz=()=>`No`,Uz=()=>`No`,Wz=()=>`否`,Gz=()=>`否`,Kz=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Bz(e):n===`ja-JP`?Vz(e):n===`ko-KR`?Hz(e):n===`ru-RU`?Uz(e):n===`zh-TW`?Wz(e):Gz(e)}),qz=()=>`Parent order callback succeeded`,Jz=()=>`Parent order callback succeeded`,Yz=()=>`Parent order callback succeeded`,Xz=()=>`Parent order callback succeeded`,Zz=()=>`父訂單回呼成功`,Qz=()=>`父订单回调成功`,$z=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qz(e):n===`ja-JP`?Jz(e):n===`ko-KR`?Yz(e):n===`ru-RU`?Xz(e):n===`zh-TW`?Zz(e):Qz(e)}),eB=()=>`Child order delegates callback to parent`,tB=()=>`Child order delegates callback to parent`,nB=()=>`Child order delegates callback to parent`,rB=()=>`Child order delegates callback to parent`,iB=()=>`子訂單不參與回呼,交由父訂單回呼`,aB=()=>`子订单不参与回调,交由父订单回调`,oB=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?eB(e):n===`ja-JP`?tB(e):n===`ko-KR`?nB(e):n===`ru-RU`?rB(e):n===`zh-TW`?iB(e):aB(e)}),sB=()=>`Not Called Back / Failed`,cB=()=>`Not Called Back / Failed`,lB=()=>`Not Called Back / Failed`,uB=()=>`Not Called Back / Failed`,dB=()=>`未回呼/失敗`,fB=()=>`未回调 / 失败`,pB=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sB(e):n===`ja-JP`?cB(e):n===`ko-KR`?lB(e):n===`ru-RU`?uB(e):n===`zh-TW`?dB(e):fB(e)}),mB=()=>`View Details`,hB=()=>`View Details`,gB=()=>`View Details`,_B=()=>`View Details`,vB=()=>`檢視詳情`,yB=()=>`查看详情`,bB=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mB(e):n===`ja-JP`?hB(e):n===`ko-KR`?gB(e):n===`ru-RU`?_B(e):n===`zh-TW`?vB(e):yB(e)}),xB=()=>`Manual Mark Paid`,SB=()=>`Manual Mark Paid`,CB=()=>`Manual Mark Paid`,wB=()=>`Manual Mark Paid`,TB=()=>`手動補單`,EB=()=>`手动补单`,DB=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xB(e):n===`ja-JP`?SB(e):n===`ko-KR`?CB(e):n===`ru-RU`?wB(e):n===`zh-TW`?TB(e):EB(e)}),OB=()=>`Open menu`,kB=()=>`Open menu`,AB=()=>`Open menu`,jB=()=>`Open menu`,MB=()=>`開啟選單`,NB=()=>`开启选单`,PB=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?OB(e):n===`ja-JP`?kB(e):n===`ko-KR`?AB(e):n===`ru-RU`?jB(e):n===`zh-TW`?MB(e):NB(e)}),FB=()=>`Merchant Order ID`,IB=()=>`Merchant Order ID`,LB=()=>`Merchant Order ID`,RB=()=>`Merchant Order ID`,zB=()=>`商戶訂單號`,BB=()=>`商户订单号`,VB=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?FB(e):n===`ja-JP`?IB(e):n===`ko-KR`?LB(e):n===`ru-RU`?RB(e):n===`zh-TW`?zB(e):BB(e)}),HB=()=>`Order Name`,UB=()=>`Order Name`,WB=()=>`Order Name`,GB=()=>`Order Name`,KB=()=>`訂單名稱`,qB=()=>`订单名称`,JB=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?HB(e):n===`ja-JP`?UB(e):n===`ko-KR`?WB(e):n===`ru-RU`?GB(e):n===`zh-TW`?KB(e):qB(e)}),YB=()=>`Amount`,XB=()=>`Amount`,ZB=()=>`Amount`,QB=()=>`Amount`,$B=()=>`金額`,eV=()=>`金额`,tV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?YB(e):n===`ja-JP`?XB(e):n===`ko-KR`?ZB(e):n===`ru-RU`?QB(e):n===`zh-TW`?$B(e):eV(e)}),nV=()=>`Actual Paid`,rV=()=>`Actual Paid`,iV=()=>`Actual Paid`,aV=()=>`Actual Paid`,oV=()=>`實付`,sV=()=>`实付`,cV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nV(e):n===`ja-JP`?rV(e):n===`ko-KR`?iV(e):n===`ru-RU`?aV(e):n===`zh-TW`?oV(e):sV(e)}),lV=()=>`Chain`,uV=()=>`Chain`,dV=()=>`Chain`,fV=()=>`Chain`,pV=()=>`鏈`,mV=()=>`链`,hV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lV(e):n===`ja-JP`?uV(e):n===`ko-KR`?dV(e):n===`ru-RU`?fV(e):n===`zh-TW`?pV(e):mV(e)}),gV=()=>`Receive Address`,_V=()=>`Receive Address`,vV=()=>`Receive Address`,yV=()=>`Receive Address`,bV=()=>`收款地址`,xV=()=>`收款地址`,SV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gV(e):n===`ja-JP`?_V(e):n===`ko-KR`?vV(e):n===`ru-RU`?yV(e):n===`zh-TW`?bV(e):xV(e)}),CV=()=>`Callback URL`,wV=()=>`Callback URL`,TV=()=>`Callback URL`,EV=()=>`Callback URL`,DV=()=>`回呼地址`,OV=()=>`回调地址`,kV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?CV(e):n===`ja-JP`?wV(e):n===`ko-KR`?TV(e):n===`ru-RU`?EV(e):n===`zh-TW`?DV(e):OV(e)}),AV=()=>`Redirect URL`,jV=()=>`Redirect URL`,MV=()=>`Redirect URL`,NV=()=>`Redirect URL`,PV=()=>`跳轉地址`,FV=()=>`跳转地址`,IV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?AV(e):n===`ja-JP`?jV(e):n===`ko-KR`?MV(e):n===`ru-RU`?NV(e):n===`zh-TW`?PV(e):FV(e)}),LV=()=>`Block Transaction ID`,RV=()=>`Block Transaction ID`,zV=()=>`Block Transaction ID`,BV=()=>`Block Transaction ID`,VV=()=>`區塊交易 ID`,HV=()=>`区块交易 ID`,UV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?LV(e):n===`ja-JP`?RV(e):n===`ko-KR`?zV(e):n===`ru-RU`?BV(e):n===`zh-TW`?VV(e):HV(e)}),WV=()=>`Parent Order`,GV=()=>`Parent Order`,KV=()=>`Parent Order`,qV=()=>`Parent Order`,JV=()=>`父訂單`,YV=()=>`父订单`,XV=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?WV(e):n===`ja-JP`?GV(e):n===`ko-KR`?KV(e):n===`ru-RU`?qV(e):n===`zh-TW`?JV(e):YV(e)}),ZV=()=>`Created At`,QV=()=>`Created At`,$V=()=>`Created At`,eH=()=>`Created At`,tH=()=>`建立時間`,nH=()=>`创建时间`,rH=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ZV(e):n===`ja-JP`?QV(e):n===`ko-KR`?$V(e):n===`ru-RU`?eH(e):n===`zh-TW`?tH(e):nH(e)}),iH=()=>`Updated At`,aH=()=>`Updated At`,oH=()=>`Updated At`,sH=()=>`Updated At`,cH=()=>`更新時間`,lH=()=>`更新时间`,uH=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?iH(e):n===`ja-JP`?aH(e):n===`ko-KR`?oH(e):n===`ru-RU`?sH(e):n===`zh-TW`?cH(e):lH(e)}),dH=()=>`Order Details`,fH=()=>`Order Details`,pH=()=>`Order Details`,mH=()=>`Order Details`,hH=()=>`訂單詳情`,gH=()=>`订单详情`,_H=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dH(e):n===`ja-JP`?fH(e):n===`ko-KR`?pH(e):n===`ru-RU`?mH(e):n===`zh-TW`?hH(e):gH(e)}),vH=()=>`View the full API response for the current order.`,yH=()=>`View the full API response for the current order.`,bH=()=>`View the full API response for the current order.`,xH=()=>`View the full API response for the current order.`,SH=()=>`檢視當前訂單的完整介面返回資訊。`,CH=()=>`查看当前订单的完整接口返回信息。`,wH=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vH(e):n===`ja-JP`?yH(e):n===`ko-KR`?bH(e):n===`ru-RU`?xH(e):n===`zh-TW`?SH(e):CH(e)}),TH=()=>`Loading...`,EH=()=>`Loading...`,DH=()=>`Loading...`,OH=()=>`Loading...`,kH=()=>`載入中...`,AH=()=>`加载中...`,jH=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?TH(e):n===`ja-JP`?EH(e):n===`ko-KR`?DH(e):n===`ru-RU`?OH(e):n===`zh-TW`?kH(e):AH(e)}),MH=()=>`Supported Payment Assets`,NH=()=>`Supported Payment Assets`,PH=()=>`Supported Payment Assets`,FH=()=>`Supported Payment Assets`,IH=()=>`收款資產`,LH=()=>`收款资产`,RH=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?MH(e):n===`ja-JP`?NH(e):n===`ko-KR`?PH(e):n===`ru-RU`?FH(e):n===`zh-TW`?IH(e):LH(e)}),zH=()=>`Browse the currently supported networks and tokens without leaving this page.`,BH=()=>`Browse the currently supported networks and tokens without leaving this page.`,VH=()=>`Browse the currently supported networks and tokens without leaving this page.`,HH=()=>`Browse the currently supported networks and tokens without leaving this page.`,UH=()=>`在當前頁面直接檢視支援的網路與代幣列表。`,WH=()=>`在当前页面直接查看支持的网络与代币列表。`,GH=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zH(e):n===`ja-JP`?BH(e):n===`ko-KR`?VH(e):n===`ru-RU`?HH(e):n===`zh-TW`?UH(e):WH(e)}),KH=()=>`Chain`,qH=()=>`Chain`,JH=()=>`Chain`,YH=()=>`Chain`,XH=()=>`鏈`,ZH=()=>`链`,QH=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?KH(e):n===`ja-JP`?qH(e):n===`ko-KR`?JH(e):n===`ru-RU`?YH(e):n===`zh-TW`?XH(e):ZH(e)}),$H=()=>`Search chains or tokens...`,eU=()=>`Search chains or tokens...`,tU=()=>`Search chains or tokens...`,nU=()=>`Search chains or tokens...`,rU=()=>`搜尋鏈或代幣...`,iU=()=>`搜索链或代币...`,aU=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$H(e):n===`ja-JP`?eU(e):n===`ko-KR`?tU(e):n===`ru-RU`?nU(e):n===`zh-TW`?rU(e):iU(e)}),oU=()=>`No payment asset data`,sU=()=>`No payment asset data`,cU=()=>`No payment asset data`,lU=()=>`No payment asset data`,uU=()=>`暫無收款資產資料`,dU=()=>`暂无收款资产数据`,fU=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?oU(e):n===`ja-JP`?sU(e):n===`ko-KR`?cU(e):n===`ru-RU`?lU(e):n===`zh-TW`?uU(e):dU(e)}),pU=()=>`Chain`,mU=()=>`Chain`,hU=()=>`Chain`,gU=()=>`Chain`,_U=()=>`鏈`,vU=()=>`链`,yU=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pU(e):n===`ja-JP`?mU(e):n===`ko-KR`?hU(e):n===`ru-RU`?gU(e):n===`zh-TW`?_U(e):vU(e)}),bU=()=>`Supported Tokens`,xU=()=>`Supported Tokens`,SU=()=>`Supported Tokens`,CU=()=>`Supported Tokens`,wU=()=>`支援代幣`,TU=()=>`支持代币`,EU=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bU(e):n===`ja-JP`?xU(e):n===`ko-KR`?SU(e):n===`ru-RU`?CU(e):n===`zh-TW`?wU(e):TU(e)}),DU=()=>`Manage supported payment assets and integration guides in one place.`,OU=()=>`Manage supported payment assets and integration guides in one place.`,kU=()=>`Manage supported payment assets and integration guides in one place.`,AU=()=>`Manage supported payment assets and integration guides in one place.`,jU=()=>`統一管理收款資產與各類支付接入配置。`,MU=()=>`统一管理收款资产与各类支付接入配置。`,NU=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?DU(e):n===`ja-JP`?OU(e):n===`ko-KR`?kU(e):n===`ru-RU`?AU(e):n===`zh-TW`?jU(e):MU(e)}),PU=()=>`Supported Integrations`,FU=()=>`Supported Integrations`,IU=()=>`Supported Integrations`,LU=()=>`Supported Integrations`,RU=()=>`支援的接入方式`,zU=()=>`支持的接入方式`,BU=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?PU(e):n===`ja-JP`?FU(e):n===`ko-KR`?IU(e):n===`ru-RU`?LU(e):n===`zh-TW`?RU(e):zU(e)}),VU=()=>`Entry endpoints, required configuration keys, and callback rules for each integration.`,HU=()=>`Entry endpoints, required configuration keys, and callback rules for each integration.`,UU=()=>`Entry endpoints, required configuration keys, and callback rules for each integration.`,WU=()=>`Entry endpoints, required configuration keys, and callback rules for each integration.`,GU=()=>`各接入方式的入口端點、關鍵配置項與回呼要求一覽。`,KU=()=>`各接入方式的入口端点、关键配置项与回调要求一览。`,qU=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?VU(e):n===`ja-JP`?HU(e):n===`ko-KR`?UU(e):n===`ru-RU`?WU(e):n===`zh-TW`?GU(e):KU(e)}),JU=()=>`Name`,YU=()=>`Name`,XU=()=>`Name`,ZU=()=>`Name`,QU=()=>`名稱`,$U=()=>`名称`,eW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?JU(e):n===`ja-JP`?YU(e):n===`ko-KR`?XU(e):n===`ru-RU`?ZU(e):n===`zh-TW`?QU(e):$U(e)}),tW=()=>`Entry`,nW=()=>`Entry`,rW=()=>`Entry`,iW=()=>`Entry`,aW=()=>`接入入口`,oW=()=>`接入入口`,sW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tW(e):n===`ja-JP`?nW(e):n===`ko-KR`?rW(e):n===`ru-RU`?iW(e):n===`zh-TW`?aW(e):oW(e)}),cW=()=>`Request Body`,lW=()=>`Request Body`,uW=()=>`Request Body`,dW=()=>`Request Body`,fW=()=>`請求體`,pW=()=>`请求体`,mW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cW(e):n===`ja-JP`?lW(e):n===`ko-KR`?uW(e):n===`ru-RU`?dW(e):n===`zh-TW`?fW(e):pW(e)}),hW=()=>`Callback`,gW=()=>`Callback`,_W=()=>`Callback`,vW=()=>`Callback`,yW=()=>`回呼要求`,bW=()=>`回调要求`,xW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hW(e):n===`ja-JP`?gW(e):n===`ko-KR`?_W(e):n===`ru-RU`?vW(e):n===`zh-TW`?yW(e):bW(e)}),SW=()=>`Verify signature and return plain text ok; payload includes trade_id · order_id · status · actual_amount · signature`,CW=()=>`Verify signature and return plain text ok; payload includes trade_id · order_id · status · actual_amount · signature`,wW=()=>`Verify signature and return plain text ok; payload includes trade_id · order_id · status · actual_amount · signature`,TW=()=>`Verify signature and return plain text ok; payload includes trade_id · order_id · status · actual_amount · signature`,EW=()=>`驗籤後返回純文字 ok;回呼含 trade_id · order_id · status · actual_amount · signature`,DW=()=>`验签后返回纯文本 ok;回调包含 trade_id · order_id · status · actual_amount · signature`,OW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?SW(e):n===`ja-JP`?CW(e):n===`ko-KR`?wW(e):n===`ru-RU`?TW(e):n===`zh-TW`?EW(e):DW(e)}),kW=()=>`Verify signature and return plain text ok; EPay-style fields (trade_no · out_trade_no · trade_status)`,AW=()=>`Verify signature and return plain text ok; EPay-style fields (trade_no · out_trade_no · trade_status)`,jW=()=>`Verify signature and return plain text ok; EPay-style fields (trade_no · out_trade_no · trade_status)`,MW=()=>`Verify signature and return plain text ok; EPay-style fields (trade_no · out_trade_no · trade_status)`,NW=()=>`驗籤後返回純文字 ok;回呼欄位相容 EPay 風格(trade_no · out_trade_no · trade_status)`,PW=()=>`验签后返回纯文本 ok;回调字段兼容 EPay 风格(trade_no · out_trade_no · trade_status)`,FW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kW(e):n===`ja-JP`?AW(e):n===`ko-KR`?jW(e):n===`ru-RU`?MW(e):n===`zh-TW`?NW(e):PW(e)}),IW=()=>`Callback URL must use HTTPS, must not be an IP address, and must have a valid TLS certificate.`,LW=()=>`Callback URL must use HTTPS, must not be an IP address, and must have a valid TLS certificate.`,RW=()=>`Callback URL must use HTTPS, must not be an IP address, and must have a valid TLS certificate.`,zW=()=>`Callback URL must use HTTPS, must not be an IP address, and must have a valid TLS certificate.`,BW=()=>`回呼地址必須使用 HTTPS,不可以是 IP 地址,TLS 憑證必須有效。`,VW=()=>`回调地址必须使用 HTTPS,不可以是 IP 地址,TLS 证书必须有效。`,HW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?IW(e):n===`ja-JP`?LW(e):n===`ko-KR`?RW(e):n===`ru-RU`?zW(e):n===`zh-TW`?BW(e):VW(e)}),UW=()=>`Wallet deleted successfully`,WW=()=>`Wallet deleted successfully`,GW=()=>`Wallet deleted successfully`,KW=()=>`Wallet deleted successfully`,qW=()=>`錢包刪除成功`,JW=()=>`钱包删除成功`,YW=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?UW(e):n===`ja-JP`?WW(e):n===`ko-KR`?GW(e):n===`ru-RU`?KW(e):n===`zh-TW`?qW(e):JW(e)}),XW=()=>`Status updated`,ZW=()=>`Status updated`,QW=()=>`Status updated`,$W=()=>`Status updated`,eG=()=>`狀態已更新`,tG=()=>`状态已更新`,nG=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?XW(e):n===`ja-JP`?ZW(e):n===`ko-KR`?QW(e):n===`ru-RU`?$W(e):n===`zh-TW`?eG(e):tG(e)}),rG=()=>`Please configure chains and tokens in chain management first`,iG=()=>`Please configure chains and tokens in chain management first`,aG=()=>`Please configure chains and tokens in chain management first`,oG=()=>`Please configure chains and tokens in chain management first`,sG=()=>`請先在鏈管理中配置鏈與代幣`,cG=()=>`请先在链管理中配置链与代币`,lG=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rG(e):n===`ja-JP`?iG(e):n===`ko-KR`?aG(e):n===`ru-RU`?oG(e):n===`zh-TW`?sG(e):cG(e)}),uG=()=>`Please enter at least one wallet address`,dG=()=>`Please enter at least one wallet address`,fG=()=>`Please enter at least one wallet address`,pG=()=>`Please enter at least one wallet address`,mG=()=>`請輸入至少一個錢包地址`,hG=()=>`请输入至少一个钱包地址`,gG=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?uG(e):n===`ja-JP`?dG(e):n===`ko-KR`?fG(e):n===`ru-RU`?pG(e):n===`zh-TW`?mG(e):hG(e)}),_G=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}`,vG=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}`,yG=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}`,bG=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}`,xG=e=>`批次匯入完成,成功 ${e?.success}/${e?.total}`,SG=e=>`批量导入完成,成功 ${e?.success}/${e?.total}`,CG=((e,t={})=>{let n=t.locale??m();return n===`en-US`?_G(e):n===`ja-JP`?vG(e):n===`ko-KR`?yG(e):n===`ru-RU`?bG(e):n===`zh-TW`?xG(e):SG(e)}),wG=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}. Failed reason: ${e?.error}`,TG=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}. Failed reason: ${e?.error}`,EG=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}. Failed reason: ${e?.error}`,DG=e=>`Batch import completed, succeeded ${e?.success}/${e?.total}. Failed reason: ${e?.error}`,OG=e=>`批次匯入完成,成功 ${e?.success}/${e?.total},失敗原因:${e?.error}`,kG=e=>`批量导入完成,成功 ${e?.success}/${e?.total},失败原因:${e?.error}`,AG=((e,t={})=>{let n=t.locale??m();return n===`en-US`?wG(e):n===`ja-JP`?TG(e):n===`ko-KR`?EG(e):n===`ru-RU`?DG(e):n===`zh-TW`?OG(e):kG(e)}),jG=()=>`Batch Import`,MG=()=>`Batch Import`,NG=()=>`Batch Import`,PG=()=>`Batch Import`,FG=()=>`批次匯入`,IG=()=>`批量导入`,LG=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jG(e):n===`ja-JP`?MG(e):n===`ko-KR`?NG(e):n===`ru-RU`?PG(e):n===`zh-TW`?FG(e):IG(e)}),RG=()=>`Add Wallet`,zG=()=>`Add Wallet`,BG=()=>`Add Wallet`,VG=()=>`Add Wallet`,HG=()=>`新增錢包`,UG=()=>`新增钱包`,WG=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?RG(e):n===`ja-JP`?zG(e):n===`ko-KR`?BG(e):n===`ru-RU`?VG(e):n===`zh-TW`?HG(e):UG(e)}),GG=()=>`Manage payment addresses, balance status, and remarks.`,KG=()=>`Manage payment addresses, balance status, and remarks.`,qG=()=>`Manage payment addresses, balance status, and remarks.`,JG=()=>`Manage payment addresses, balance status, and remarks.`,YG=()=>`管理收款地址、餘額狀態與備註。`,XG=()=>`管理收款地址、余额状态与备注。`,ZG=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?GG(e):n===`ja-JP`?KG(e):n===`ko-KR`?qG(e):n===`ru-RU`?JG(e):n===`zh-TW`?YG(e):XG(e)}),QG=()=>`Address Management`,$G=()=>`Address Management`,eK=()=>`Address Management`,tK=()=>`Address Management`,nK=()=>`地址管理`,rK=()=>`地址管理`,iK=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?QG(e):n===`ja-JP`?$G(e):n===`ko-KR`?eK(e):n===`ru-RU`?tK(e):n===`zh-TW`?nK(e):rK(e)}),aK=()=>`Delete`,oK=()=>`Delete`,sK=()=>`Delete`,cK=()=>`Delete`,lK=()=>`刪除`,uK=()=>`删除`,dK=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?aK(e):n===`ja-JP`?oK(e):n===`ko-KR`?sK(e):n===`ru-RU`?cK(e):n===`zh-TW`?lK(e):uK(e)}),fK=()=>`Confirm`,pK=()=>`Confirm`,mK=()=>`Confirm`,hK=()=>`Confirm`,gK=()=>`確認`,_K=()=>`确认`,vK=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fK(e):n===`ja-JP`?pK(e):n===`ko-KR`?mK(e):n===`ru-RU`?hK(e):n===`zh-TW`?gK(e):_K(e)}),yK=e=>`Perform “${e?.action}” on wallet ${e?.address}.`,bK=e=>`Perform “${e?.action}” on wallet ${e?.address}.`,xK=e=>`Perform “${e?.action}” on wallet ${e?.address}.`,SK=e=>`Perform “${e?.action}” on wallet ${e?.address}.`,CK=e=>`將對錢包 ${e?.address} 執行“${e?.action}”操作。`,wK=e=>`将对钱包 ${e?.address} 执行“${e?.action}”操作。`,TK=((e,t={})=>{let n=t.locale??m();return n===`en-US`?yK(e):n===`ja-JP`?bK(e):n===`ko-KR`?xK(e):n===`ru-RU`?SK(e):n===`zh-TW`?CK(e):wK(e)}),EK=()=>`Delete Wallet`,DK=()=>`Delete Wallet`,OK=()=>`Delete Wallet`,kK=()=>`Delete Wallet`,AK=()=>`刪除錢包`,jK=()=>`删除钱包`,MK=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?EK(e):n===`ja-JP`?DK(e):n===`ko-KR`?OK(e):n===`ru-RU`?kK(e):n===`zh-TW`?AK(e):jK(e)}),NK=()=>`Confirm Wallet Action`,PK=()=>`Confirm Wallet Action`,FK=()=>`Confirm Wallet Action`,IK=()=>`Confirm Wallet Action`,LK=()=>`錢包操作確認`,RK=()=>`钱包操作确认`,zK=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?NK(e):n===`ja-JP`?PK(e):n===`ko-KR`?FK(e):n===`ru-RU`?IK(e):n===`zh-TW`?LK(e):RK(e)}),BK=()=>`Batch Import Wallets`,VK=()=>`Batch Import Wallets`,HK=()=>`Batch Import Wallets`,UK=()=>`Batch Import Wallets`,WK=()=>`批次匯入錢包`,GK=()=>`批量导入钱包`,KK=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?BK(e):n===`ja-JP`?VK(e):n===`ko-KR`?HK(e):n===`ru-RU`?UK(e):n===`zh-TW`?WK(e):GK(e)}),qK=()=>`One wallet address per line, imported as watch-only wallets.`,JK=()=>`One wallet address per line, imported as watch-only wallets.`,YK=()=>`One wallet address per line, imported as watch-only wallets.`,XK=()=>`One wallet address per line, imported as watch-only wallets.`,ZK=()=>`每行一個錢包地址,匯入為觀察錢包。`,QK=()=>`每行一个钱包地址,导入为观察钱包。`,$K=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qK(e):n===`ja-JP`?JK(e):n===`ko-KR`?YK(e):n===`ru-RU`?XK(e):n===`zh-TW`?ZK(e):QK(e)}),eq=()=>`Network`,tq=()=>`Network`,nq=()=>`Network`,rq=()=>`Network`,iq=()=>`網路`,aq=()=>`网络`,oq=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?eq(e):n===`ja-JP`?tq(e):n===`ko-KR`?nq(e):n===`ru-RU`?rq(e):n===`zh-TW`?iq(e):aq(e)}),sq=()=>`Chain`,cq=()=>`Chain`,lq=()=>`Chain`,uq=()=>`Chain`,dq=()=>`鏈`,fq=()=>`链`,pq=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sq(e):n===`ja-JP`?cq(e):n===`ko-KR`?lq(e):n===`ru-RU`?uq(e):n===`zh-TW`?dq(e):fq(e)}),mq=()=>`Select chain`,hq=()=>`Select chain`,gq=()=>`Select chain`,_q=()=>`Select chain`,vq=()=>`選擇鏈`,yq=()=>`选择链`,bq=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mq(e):n===`ja-JP`?hq(e):n===`ko-KR`?gq(e):n===`ru-RU`?_q(e):n===`zh-TW`?vq(e):yq(e)}),xq=()=>`Unnamed chain`,Sq=()=>`Unnamed chain`,Cq=()=>`Unnamed chain`,wq=()=>`Unnamed chain`,Tq=()=>`未命名鏈`,Eq=()=>`未命名链`,Dq=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xq(e):n===`ja-JP`?Sq(e):n===`ko-KR`?Cq(e):n===`ru-RU`?wq(e):n===`zh-TW`?Tq(e):Eq(e)}),Oq=()=>`Wallet Address`,kq=()=>`Wallet Address`,Aq=()=>`Wallet Address`,jq=()=>`Wallet Address`,Mq=()=>`錢包地址`,Nq=()=>`钱包地址`,Pq=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Oq(e):n===`ja-JP`?kq(e):n===`ko-KR`?Aq(e):n===`ru-RU`?jq(e):n===`zh-TW`?Mq(e):Nq(e)}),Fq=()=>`Cancel`,Iq=()=>`Cancel`,Lq=()=>`Cancel`,Rq=()=>`Cancel`,zq=()=>`取消`,Bq=()=>`取消`,Vq=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Fq(e):n===`ja-JP`?Iq(e):n===`ko-KR`?Lq(e):n===`ru-RU`?Rq(e):n===`zh-TW`?zq(e):Bq(e)}),Hq=()=>`Importing...`,Uq=()=>`Importing...`,Wq=()=>`Importing...`,Gq=()=>`Importing...`,Kq=()=>`匯入中...`,qq=()=>`导入中...`,Jq=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hq(e):n===`ja-JP`?Uq(e):n===`ko-KR`?Wq(e):n===`ru-RU`?Gq(e):n===`zh-TW`?Kq(e):qq(e)}),Yq=()=>`Start Import`,Xq=()=>`Start Import`,Zq=()=>`Start Import`,Qq=()=>`Start Import`,$q=()=>`開始匯入`,eJ=()=>`开始导入`,tJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yq(e):n===`ja-JP`?Xq(e):n===`ko-KR`?Zq(e):n===`ru-RU`?Qq(e):n===`zh-TW`?$q(e):eJ(e)}),nJ=()=>`Search addresses or remarks...`,rJ=()=>`Search addresses or remarks...`,iJ=()=>`Search addresses or remarks...`,aJ=()=>`Search addresses or remarks...`,oJ=()=>`搜尋地址或備註...`,sJ=()=>`搜索地址或备注...`,cJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nJ(e):n===`ja-JP`?rJ(e):n===`ko-KR`?iJ(e):n===`ru-RU`?aJ(e):n===`zh-TW`?oJ(e):sJ(e)}),lJ=()=>`No address data`,uJ=()=>`No address data`,dJ=()=>`No address data`,fJ=()=>`No address data`,pJ=()=>`暫無地址資料`,mJ=()=>`暂无地址数据`,hJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lJ(e):n===`ja-JP`?uJ(e):n===`ko-KR`?dJ(e):n===`ru-RU`?fJ(e):n===`zh-TW`?pJ(e):mJ(e)}),gJ=()=>`Status`,_J=()=>`Status`,vJ=()=>`Status`,yJ=()=>`Status`,bJ=()=>`狀態`,xJ=()=>`状态`,SJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gJ(e):n===`ja-JP`?_J(e):n===`ko-KR`?vJ(e):n===`ru-RU`?yJ(e):n===`zh-TW`?bJ(e):xJ(e)}),CJ=()=>`Enabled`,wJ=()=>`Enabled`,TJ=()=>`Enabled`,EJ=()=>`Enabled`,DJ=()=>`啟用`,OJ=()=>`启用`,kJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?CJ(e):n===`ja-JP`?wJ(e):n===`ko-KR`?TJ(e):n===`ru-RU`?EJ(e):n===`zh-TW`?DJ(e):OJ(e)}),AJ=()=>`Address`,jJ=()=>`Address`,MJ=()=>`Address`,NJ=()=>`Address`,PJ=()=>`地址`,FJ=()=>`地址`,IJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?AJ(e):n===`ja-JP`?jJ(e):n===`ko-KR`?MJ(e):n===`ru-RU`?NJ(e):n===`zh-TW`?PJ(e):FJ(e)}),LJ=()=>`Order Count`,RJ=()=>`Order Count`,zJ=()=>`Order Count`,BJ=()=>`Order Count`,VJ=()=>`訂單數`,HJ=()=>`订单数`,UJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?LJ(e):n===`ja-JP`?RJ(e):n===`ko-KR`?zJ(e):n===`ru-RU`?BJ(e):n===`zh-TW`?VJ(e):HJ(e)}),WJ=()=>`Source`,GJ=()=>`Source`,KJ=()=>`Source`,qJ=()=>`Source`,JJ=()=>`來源`,YJ=()=>`来源`,XJ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?WJ(e):n===`ja-JP`?GJ(e):n===`ko-KR`?KJ(e):n===`ru-RU`?qJ(e):n===`zh-TW`?JJ(e):YJ(e)}),ZJ=()=>`Remark`,QJ=()=>`Remark`,$J=()=>`Remark`,eY=()=>`Remark`,tY=()=>`備註`,nY=()=>`备注`,rY=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ZJ(e):n===`ja-JP`?QJ(e):n===`ko-KR`?$J(e):n===`ru-RU`?eY(e):n===`zh-TW`?tY(e):nY(e)}),iY=()=>`Created At`,aY=()=>`Created At`,oY=()=>`Created At`,sY=()=>`Created At`,cY=()=>`建立時間`,lY=()=>`创建时间`,uY=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?iY(e):n===`ja-JP`?aY(e):n===`ko-KR`?oY(e):n===`ru-RU`?sY(e):n===`zh-TW`?cY(e):lY(e)}),dY=()=>`Updated At`,fY=()=>`Updated At`,pY=()=>`Updated At`,mY=()=>`Updated At`,hY=()=>`更新時間`,gY=()=>`更新时间`,_Y=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dY(e):n===`ja-JP`?fY(e):n===`ko-KR`?pY(e):n===`ru-RU`?mY(e):n===`zh-TW`?hY(e):gY(e)}),vY=()=>`Actions`,yY=()=>`Actions`,bY=()=>`Actions`,xY=()=>`Actions`,SY=()=>`操作`,CY=()=>`操作`,wY=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vY(e):n===`ja-JP`?yY(e):n===`ko-KR`?bY(e):n===`ru-RU`?xY(e):n===`zh-TW`?SY(e):CY(e)}),TY=()=>`Edit Remark`,EY=()=>`Edit Remark`,DY=()=>`Edit Remark`,OY=()=>`Edit Remark`,kY=()=>`編輯備註`,AY=()=>`编辑备注`,jY=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?TY(e):n===`ja-JP`?EY(e):n===`ko-KR`?DY(e):n===`ru-RU`?OY(e):n===`zh-TW`?kY(e):AY(e)}),MY=()=>`Loading...`,NY=()=>`Loading...`,PY=()=>`Loading...`,FY=()=>`Loading...`,IY=()=>`載入中...`,LY=()=>`加载中...`,RY=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?MY(e):n===`ja-JP`?NY(e):n===`ko-KR`?PY(e):n===`ru-RU`?FY(e):n===`zh-TW`?IY(e):LY(e)}),zY=()=>`Please configure supported tokens in chain management first`,BY=()=>`Please configure supported tokens in chain management first`,VY=()=>`Please configure supported tokens in chain management first`,HY=()=>`Please configure supported tokens in chain management first`,UY=()=>`請先在鏈管理中配置支援代幣`,WY=()=>`请先在链管理中配置支持代币`,GY=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zY(e):n===`ja-JP`?BY(e):n===`ko-KR`?VY(e):n===`ru-RU`?HY(e):n===`zh-TW`?UY(e):WY(e)}),KY=()=>`Edit Wallet`,qY=()=>`Edit Wallet`,JY=()=>`Edit Wallet`,YY=()=>`Edit Wallet`,XY=()=>`編輯錢包`,ZY=()=>`编辑钱包`,QY=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?KY(e):n===`ja-JP`?qY(e):n===`ko-KR`?JY(e):n===`ru-RU`?YY(e):n===`zh-TW`?XY(e):ZY(e)}),$Y=()=>`Add Wallet`,eX=()=>`Add Wallet`,tX=()=>`Add Wallet`,nX=()=>`Add Wallet`,rX=()=>`新增錢包`,iX=()=>`新增钱包`,aX=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$Y(e):n===`ja-JP`?eX(e):n===`ko-KR`?tX(e):n===`ru-RU`?nX(e):n===`zh-TW`?rX(e):iX(e)}),oX=()=>`Modify wallet remark information.`,sX=()=>`Modify wallet remark information.`,cX=()=>`Modify wallet remark information.`,lX=()=>`Modify wallet remark information.`,uX=()=>`修改錢包備註資訊。`,dX=()=>`修改钱包备注信息。`,fX=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?oX(e):n===`ja-JP`?sX(e):n===`ko-KR`?cX(e):n===`ru-RU`?lX(e):n===`zh-TW`?uX(e):dX(e)}),pX=()=>`Add a new payment wallet.`,mX=()=>`Add a new payment wallet.`,hX=()=>`Add a new payment wallet.`,gX=()=>`Add a new payment wallet.`,_X=()=>`新增新的收款錢包。`,vX=()=>`新增新的收款钱包。`,yX=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pX(e):n===`ja-JP`?mX(e):n===`ko-KR`?hX(e):n===`ru-RU`?gX(e):n===`zh-TW`?_X(e):vX(e)}),bX=()=>`Please enter wallet address`,xX=()=>`Please enter wallet address`,SX=()=>`Please enter wallet address`,CX=()=>`Please enter wallet address`,wX=()=>`請輸入錢包地址`,TX=()=>`请输入钱包地址`,EX=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bX(e):n===`ja-JP`?xX(e):n===`ko-KR`?SX(e):n===`ru-RU`?CX(e):n===`zh-TW`?wX(e):TX(e)}),DX=()=>`Optional`,OX=()=>`Optional`,kX=()=>`Optional`,AX=()=>`Optional`,jX=()=>`選填`,MX=()=>`选填`,NX=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?DX(e):n===`ja-JP`?OX(e):n===`ko-KR`?kX(e):n===`ru-RU`?AX(e):n===`zh-TW`?jX(e):MX(e)}),PX=()=>`Saving...`,FX=()=>`Saving...`,IX=()=>`Saving...`,LX=()=>`Saving...`,RX=()=>`儲存中...`,zX=()=>`保存中...`,BX=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?PX(e):n===`ja-JP`?FX(e):n===`ko-KR`?IX(e):n===`ru-RU`?LX(e):n===`zh-TW`?RX(e):zX(e)}),VX=()=>`Save`,HX=()=>`Save`,UX=()=>`Save`,WX=()=>`Save`,GX=()=>`儲存`,KX=()=>`保存`,qX=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?VX(e):n===`ja-JP`?HX(e):n===`ko-KR`?UX(e):n===`ru-RU`?WX(e):n===`zh-TW`?GX(e):KX(e)}),JX=()=>`Wallet remark updated successfully`,YX=()=>`Wallet remark updated successfully`,XX=()=>`Wallet remark updated successfully`,ZX=()=>`Wallet remark updated successfully`,QX=()=>`錢包備註更新成功`,$X=()=>`钱包备注更新成功`,eZ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?JX(e):n===`ja-JP`?YX(e):n===`ko-KR`?XX(e):n===`ru-RU`?ZX(e):n===`zh-TW`?QX(e):$X(e)}),tZ=()=>`Wallet added successfully`,nZ=()=>`Wallet added successfully`,rZ=()=>`Wallet added successfully`,iZ=()=>`Wallet added successfully`,aZ=()=>`錢包新增成功`,oZ=()=>`钱包新增成功`,sZ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tZ(e):n===`ja-JP`?nZ(e):n===`ko-KR`?rZ(e):n===`ru-RU`?iZ(e):n===`zh-TW`?aZ(e):oZ(e)}),cZ=()=>`Please enter a valid address`,lZ=()=>`Please enter a valid address`,uZ=()=>`Please enter a valid address`,dZ=()=>`Please enter a valid address`,fZ=()=>`請輸入有效地址`,pZ=()=>`请输入有效地址`,mZ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cZ(e):n===`ja-JP`?lZ(e):n===`ko-KR`?uZ(e):n===`ru-RU`?dZ(e):n===`zh-TW`?fZ(e):pZ(e)}),hZ=()=>`Please select a chain`,gZ=()=>`Please select a chain`,_Z=()=>`Please select a chain`,vZ=()=>`Please select a chain`,yZ=()=>`請選擇鏈`,bZ=()=>`请选择链`,xZ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hZ(e):n===`ja-JP`?gZ(e):n===`ko-KR`?_Z(e):n===`ru-RU`?vZ(e):n===`zh-TW`?yZ(e):bZ(e)}),SZ=()=>`Chains & Tokens`,CZ=()=>`Chains & Tokens`,wZ=()=>`Chains & Tokens`,TZ=()=>`Chains & Tokens`,EZ=()=>`鏈與代幣`,DZ=()=>`链与代币`,OZ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?SZ(e):n===`ja-JP`?CZ(e):n===`ko-KR`?wZ(e):n===`ru-RU`?TZ(e):n===`zh-TW`?EZ(e):DZ(e)}),kZ=e=>`${e?.count} chains`,AZ=e=>`${e?.count} chains`,jZ=e=>`${e?.count} chains`,MZ=e=>`${e?.count} chains`,NZ=e=>`${e?.count} 條鏈`,PZ=e=>`${e?.count} 条链`,FZ=((e,t={})=>{let n=t.locale??m();return n===`en-US`?kZ(e):n===`ja-JP`?AZ(e):n===`ko-KR`?jZ(e):n===`ru-RU`?MZ(e):n===`zh-TW`?NZ(e):PZ(e)}),IZ=()=>`Search chain names...`,LZ=()=>`Search chain names...`,RZ=()=>`Search chain names...`,zZ=()=>`Search chain names...`,BZ=()=>`搜尋鏈名稱...`,VZ=()=>`搜索链名称...`,HZ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?IZ(e):n===`ja-JP`?LZ(e):n===`ko-KR`?RZ(e):n===`ru-RU`?zZ(e):n===`zh-TW`?BZ(e):VZ(e)}),UZ=()=>`Overview`,WZ=()=>`Overview`,GZ=()=>`Overview`,KZ=()=>`Overview`,qZ=()=>`總覽`,JZ=()=>`概览`,YZ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?UZ(e):n===`ja-JP`?WZ(e):n===`ko-KR`?GZ(e):n===`ru-RU`?KZ(e):n===`zh-TW`?qZ(e):JZ(e)}),XZ=e=>`Total chains: ${e?.chains} | Total tokens: ${e?.tokens}`,ZZ=e=>`Total chains: ${e?.chains} | Total tokens: ${e?.tokens}`,QZ=e=>`Total chains: ${e?.chains} | Total tokens: ${e?.tokens}`,$Z=e=>`Total chains: ${e?.chains} | Total tokens: ${e?.tokens}`,eQ=e=>`鏈總數: ${e?.chains} | 代幣總數: ${e?.tokens}`,tQ=e=>`链总数: ${e?.chains} | 代币总数: ${e?.tokens}`,nQ=((e,t={})=>{let n=t.locale??m();return n===`en-US`?XZ(e):n===`ja-JP`?ZZ(e):n===`ko-KR`?QZ(e):n===`ru-RU`?$Z(e):n===`zh-TW`?eQ(e):tQ(e)}),rQ=()=>`Supported payment network`,iQ=()=>`Supported payment network`,aQ=()=>`Supported payment network`,oQ=()=>`Supported payment network`,sQ=()=>`支援收款網路`,cQ=()=>`支持收款网络`,lQ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rQ(e):n===`ja-JP`?iQ(e):n===`ko-KR`?aQ(e):n===`ru-RU`?oQ(e):n===`zh-TW`?sQ(e):cQ(e)}),uQ=()=>`No chain data`,dQ=()=>`No chain data`,fQ=()=>`No chain data`,pQ=()=>`No chain data`,mQ=()=>`暫無鏈資料`,hQ=()=>`暂无链数据`,gQ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?uQ(e):n===`ja-JP`?dQ(e):n===`ko-KR`?fQ(e):n===`ru-RU`?pQ(e):n===`zh-TW`?mQ(e):hQ(e)}),_Q=()=>`Add Token`,vQ=()=>`Add Token`,yQ=()=>`Add Token`,bQ=()=>`Add Token`,xQ=()=>`新增代幣`,SQ=()=>`新增代币`,CQ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_Q(e):n===`ja-JP`?vQ(e):n===`ko-KR`?yQ(e):n===`ru-RU`?bQ(e):n===`zh-TW`?xQ(e):SQ(e)}),wQ=()=>`Manage supported blockchain networks and tokens, including status and basic parameters.`,TQ=()=>`Manage supported blockchain networks and tokens, including status and basic parameters.`,EQ=()=>`Manage supported blockchain networks and tokens, including status and basic parameters.`,DQ=()=>`Manage supported blockchain networks and tokens, including status and basic parameters.`,OQ=()=>`管理支援的區塊鏈網路和代幣,維護啟用狀態與基礎引數。`,kQ=()=>`管理支持的区块链网络和代币,维护启用状态与基础参数。`,AQ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wQ(e):n===`ja-JP`?TQ(e):n===`ko-KR`?EQ(e):n===`ru-RU`?DQ(e):n===`zh-TW`?OQ(e):kQ(e)}),jQ=e=>`Chain ${e?.status}`,MQ=e=>`Chain ${e?.status}`,NQ=e=>`Chain ${e?.status}`,PQ=e=>`Chain ${e?.status}`,FQ=e=>`鏈已${e?.status}`,IQ=e=>`链已${e?.status}`,LQ=((e,t={})=>{let n=t.locale??m();return n===`en-US`?jQ(e):n===`ja-JP`?MQ(e):n===`ko-KR`?NQ(e):n===`ru-RU`?PQ(e):n===`zh-TW`?FQ(e):IQ(e)}),RQ=()=>`enabled`,zQ=()=>`enabled`,BQ=()=>`enabled`,VQ=()=>`enabled`,HQ=()=>`啟用`,UQ=()=>`启用`,WQ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?RQ(e):n===`ja-JP`?zQ(e):n===`ko-KR`?BQ(e):n===`ru-RU`?VQ(e):n===`zh-TW`?HQ(e):UQ(e)}),GQ=()=>`disabled`,KQ=()=>`disabled`,qQ=()=>`disabled`,JQ=()=>`disabled`,YQ=()=>`停用`,XQ=()=>`停用`,ZQ=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?GQ(e):n===`ja-JP`?KQ(e):n===`ko-KR`?qQ(e):n===`ru-RU`?JQ(e):n===`zh-TW`?YQ(e):XQ(e)}),QQ=()=>`Token status updated`,$Q=()=>`Token status updated`,e$=()=>`Token status updated`,t$=()=>`Token status updated`,n$=()=>`代幣狀態已更新`,r$=()=>`代币状态已更新`,i$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?QQ(e):n===`ja-JP`?$Q(e):n===`ko-KR`?e$(e):n===`ru-RU`?t$(e):n===`zh-TW`?n$(e):r$(e)}),a$=()=>`Token updated successfully`,o$=()=>`Token updated successfully`,s$=()=>`Token updated successfully`,c$=()=>`Token updated successfully`,l$=()=>`代幣更新成功`,u$=()=>`代币更新成功`,d$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?a$(e):n===`ja-JP`?o$(e):n===`ko-KR`?s$(e):n===`ru-RU`?c$(e):n===`zh-TW`?l$(e):u$(e)}),f$=()=>`Token created successfully`,p$=()=>`Token created successfully`,m$=()=>`Token created successfully`,h$=()=>`Token created successfully`,g$=()=>`代幣建立成功`,_$=()=>`代币创建成功`,v$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?f$(e):n===`ja-JP`?p$(e):n===`ko-KR`?m$(e):n===`ru-RU`?h$(e):n===`zh-TW`?g$(e):_$(e)}),y$=()=>`Search token symbols...`,b$=()=>`Search token symbols...`,x$=()=>`Search token symbols...`,S$=()=>`Search token symbols...`,C$=()=>`搜尋代幣符號...`,w$=()=>`搜索代币符号...`,T$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?y$(e):n===`ja-JP`?b$(e):n===`ko-KR`?x$(e):n===`ru-RU`?S$(e):n===`zh-TW`?C$(e):w$(e)}),E$=()=>`No chain token data`,D$=()=>`No chain token data`,O$=()=>`No chain token data`,k$=()=>`No chain token data`,A$=()=>`暫無鏈代幣資料`,j$=()=>`暂无链代币数据`,M$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?E$(e):n===`ja-JP`?D$(e):n===`ko-KR`?O$(e):n===`ru-RU`?k$(e):n===`zh-TW`?A$(e):j$(e)}),N$=()=>`Token`,P$=()=>`Token`,F$=()=>`Token`,I$=()=>`Token`,L$=()=>`代幣`,R$=()=>`代币`,z$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?N$(e):n===`ja-JP`?P$(e):n===`ko-KR`?F$(e):n===`ru-RU`?I$(e):n===`zh-TW`?L$(e):R$(e)}),B$=()=>`Edit`,V$=()=>`Edit`,H$=()=>`Edit`,U$=()=>`Edit`,W$=()=>`編輯`,G$=()=>`编辑`,K$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?B$(e):n===`ja-JP`?V$(e):n===`ko-KR`?H$(e):n===`ru-RU`?U$(e):n===`zh-TW`?W$(e):G$(e)}),q$=()=>`Delete`,J$=()=>`Delete`,Y$=()=>`Delete`,X$=()=>`Delete`,Z$=()=>`刪除`,Q$=()=>`删除`,$$=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?q$(e):n===`ja-JP`?J$(e):n===`ko-KR`?Y$(e):n===`ru-RU`?X$(e):n===`zh-TW`?Z$(e):Q$(e)}),e1=()=>`Edit Chain Token`,t1=()=>`Edit Chain Token`,n1=()=>`Edit Chain Token`,r1=()=>`Edit Chain Token`,i1=()=>`編輯鏈代幣`,a1=()=>`编辑链代币`,o1=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?e1(e):n===`ja-JP`?t1(e):n===`ko-KR`?n1(e):n===`ru-RU`?r1(e):n===`zh-TW`?i1(e):a1(e)}),s1=()=>`Add Chain Token`,c1=()=>`Add Chain Token`,l1=()=>`Add Chain Token`,u1=()=>`Add Chain Token`,d1=()=>`新增鏈代幣`,f1=()=>`新增链代币`,p1=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?s1(e):n===`ja-JP`?c1(e):n===`ko-KR`?l1(e):n===`ru-RU`?u1(e):n===`zh-TW`?d1(e):f1(e)}),m1=()=>`Modify chain token configuration.`,h1=()=>`Modify chain token configuration.`,g1=()=>`Modify chain token configuration.`,_1=()=>`Modify chain token configuration.`,v1=()=>`修改鏈代幣配置。`,y1=()=>`修改链代币配置。`,b1=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?m1(e):n===`ja-JP`?h1(e):n===`ko-KR`?g1(e):n===`ru-RU`?_1(e):n===`zh-TW`?v1(e):y1(e)}),x1=()=>`Add a new chain token configuration.`,S1=()=>`Add a new chain token configuration.`,C1=()=>`Add a new chain token configuration.`,w1=()=>`Add a new chain token configuration.`,T1=()=>`新增新的鏈代幣配置。`,E1=()=>`新增新的链代币配置。`,D1=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?x1(e):n===`ja-JP`?S1(e):n===`ko-KR`?C1(e):n===`ru-RU`?w1(e):n===`zh-TW`?T1(e):E1(e)}),O1=()=>`Token Symbol`,k1=()=>`Token Symbol`,A1=()=>`Token Symbol`,j1=()=>`Token Symbol`,M1=()=>`代幣符號`,N1=()=>`代币符号`,P1=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?O1(e):n===`ja-JP`?k1(e):n===`ko-KR`?A1(e):n===`ru-RU`?j1(e):n===`zh-TW`?M1(e):N1(e)}),F1=()=>`Configure available tokens for this chain and maintain contract address, decimals, minimum amount, and enabled status.`,I1=()=>`Configure available tokens for this chain and maintain contract address, decimals, minimum amount, and enabled status.`,L1=()=>`Configure available tokens for this chain and maintain contract address, decimals, minimum amount, and enabled status.`,R1=()=>`Configure available tokens for this chain and maintain contract address, decimals, minimum amount, and enabled status.`,z1=()=>`為當前鏈配置可用代幣,並維護合約地址、精度、最小金額與啟用狀態。`,B1=()=>`为当前链配置可用代币,并维护合约地址、精度、最小金额与启用状态。`,V1=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?F1(e):n===`ja-JP`?I1(e):n===`ko-KR`?L1(e):n===`ru-RU`?R1(e):n===`zh-TW`?z1(e):B1(e)}),H1=()=>`Contract Address`,U1=()=>`Contract Address`,W1=()=>`Contract Address`,G1=()=>`Contract Address`,K1=()=>`合約地址`,q1=()=>`合约地址`,J1=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?H1(e):n===`ja-JP`?U1(e):n===`ko-KR`?W1(e):n===`ru-RU`?G1(e):n===`zh-TW`?K1(e):q1(e)}),Y1=()=>`Decimals`,X1=()=>`Decimals`,Z1=()=>`Decimals`,Q1=()=>`Decimals`,$1=()=>`精度`,$=()=>`精度`,e0=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Y1(e):n===`ja-JP`?X1(e):n===`ko-KR`?Z1(e):n===`ru-RU`?Q1(e):n===`zh-TW`?$1(e):$(e)}),t0=()=>`Minimum Amount`,n0=()=>`Minimum Amount`,r0=()=>`Minimum Amount`,i0=()=>`Minimum Amount`,a0=()=>`最小金額`,o0=()=>`最小金额`,eee=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?t0(e):n===`ja-JP`?n0(e):n===`ko-KR`?r0(e):n===`ru-RU`?i0(e):n===`zh-TW`?a0(e):o0(e)}),s0=()=>`Create`,c0=()=>`Create`,l0=()=>`Create`,u0=()=>`Create`,d0=()=>`建立`,f0=()=>`创建`,p0=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?s0(e):n===`ja-JP`?c0(e):n===`ko-KR`?l0(e):n===`ru-RU`?u0(e):n===`zh-TW`?d0(e):f0(e)}),m0=()=>`Save Changes`,h0=()=>`Save Changes`,g0=()=>`Save Changes`,_0=()=>`Save Changes`,v0=()=>`儲存修改`,y0=()=>`保存修改`,b0=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?m0(e):n===`ja-JP`?h0(e):n===`ko-KR`?g0(e):n===`ru-RU`?_0(e):n===`zh-TW`?v0(e):y0(e)}),x0=()=>`Please select a chain`,S0=()=>`Please select a chain`,C0=()=>`Please select a chain`,w0=()=>`Please select a chain`,T0=()=>`請選擇鏈`,E0=()=>`请选择链`,D0=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?x0(e):n===`ja-JP`?S0(e):n===`ko-KR`?C0(e):n===`ru-RU`?w0(e):n===`zh-TW`?T0(e):E0(e)}),O0=()=>`Please enter token symbol`,k0=()=>`Please enter token symbol`,A0=()=>`Please enter token symbol`,j0=()=>`Please enter token symbol`,M0=()=>`請輸入代幣符號`,N0=()=>`请输入代币符号`,P0=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?O0(e):n===`ja-JP`?k0(e):n===`ko-KR`?A0(e):n===`ru-RU`?j0(e):n===`zh-TW`?M0(e):N0(e)}),F0=()=>`Please enter valid decimals`,I0=()=>`Please enter valid decimals`,L0=()=>`Please enter valid decimals`,R0=()=>`Please enter valid decimals`,z0=()=>`請輸入有效精度`,B0=()=>`请输入有效精度`,V0=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?F0(e):n===`ja-JP`?I0(e):n===`ko-KR`?L0(e):n===`ru-RU`?R0(e):n===`zh-TW`?z0(e):B0(e)}),H0=()=>`Please enter a valid minimum amount`,U0=()=>`Please enter a valid minimum amount`,W0=()=>`Please enter a valid minimum amount`,G0=()=>`Please enter a valid minimum amount`,K0=()=>`請輸入有效最小金額`,q0=()=>`请输入有效最小金额`,J0=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?H0(e):n===`ja-JP`?U0(e):n===`ko-KR`?W0(e):n===`ru-RU`?G0(e):n===`zh-TW`?K0(e):q0(e)}),Y0=()=>`RPC Nodes`,X0=()=>`RPC Nodes`,Z0=()=>`RPC Nodes`,Q0=()=>`RPC Nodes`,$0=()=>`RPC 節點`,e2=()=>`RPC 节点`,t2=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Y0(e):n===`ja-JP`?X0(e):n===`ko-KR`?Z0(e):n===`ru-RU`?Q0(e):n===`zh-TW`?$0(e):e2(e)}),n2=e=>`${e?.count} chains`,r2=e=>`${e?.count} chains`,i2=e=>`${e?.count} chains`,a2=e=>`${e?.count} chains`,o2=e=>`${e?.count} 條鏈`,s2=e=>`${e?.count} 条链`,c2=((e,t={})=>{let n=t.locale??m();return n===`en-US`?n2(e):n===`ja-JP`?r2(e):n===`ko-KR`?i2(e):n===`ru-RU`?a2(e):n===`zh-TW`?o2(e):s2(e)}),l2=()=>`Search chain names or network...`,u2=()=>`Search chain names or network...`,d2=()=>`Search chain names or network...`,f2=()=>`Search chain names or network...`,p2=()=>`搜尋鏈名或 network...`,m2=()=>`搜索链名称或 network...`,h2=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?l2(e):n===`ja-JP`?u2(e):n===`ko-KR`?d2(e):n===`ru-RU`?f2(e):n===`zh-TW`?p2(e):m2(e)}),g2=()=>`Overview`,_2=()=>`Overview`,v2=()=>`Overview`,y2=()=>`Overview`,b2=()=>`總覽`,x2=()=>`概览`,S2=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?g2(e):n===`ja-JP`?_2(e):n===`ko-KR`?v2(e):n===`ru-RU`?y2(e):n===`zh-TW`?b2(e):x2(e)}),C2=e=>`Total chains: ${e?.chains} | Total nodes: ${e?.nodes}`,w2=e=>`Total chains: ${e?.chains} | Total nodes: ${e?.nodes}`,T2=e=>`Total chains: ${e?.chains} | Total nodes: ${e?.nodes}`,E2=e=>`Total chains: ${e?.chains} | Total nodes: ${e?.nodes}`,D2=e=>`鏈總數: ${e?.chains} | 節點總數: ${e?.nodes}`,O2=e=>`链总数: ${e?.chains} | 节点总数: ${e?.nodes}`,k2=((e,t={})=>{let n=t.locale??m();return n===`en-US`?C2(e):n===`ja-JP`?w2(e):n===`ko-KR`?T2(e):n===`ru-RU`?E2(e):n===`zh-TW`?D2(e):O2(e)}),A2=()=>`Unnamed chain`,j2=()=>`Unnamed chain`,M2=()=>`Unnamed chain`,N2=()=>`Unnamed chain`,P2=()=>`未命名鏈`,F2=()=>`未命名链`,I2=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?A2(e):n===`ja-JP`?j2(e):n===`ko-KR`?M2(e):n===`ru-RU`?N2(e):n===`zh-TW`?P2(e):F2(e)}),L2=e=>`Nodes: ${e?.count}`,R2=e=>`Nodes: ${e?.count}`,z2=e=>`Nodes: ${e?.count}`,B2=e=>`Nodes: ${e?.count}`,V2=e=>`節點數: ${e?.count}`,H2=e=>`节点数: ${e?.count}`,U2=((e,t={})=>{let n=t.locale??m();return n===`en-US`?L2(e):n===`ja-JP`?R2(e):n===`ko-KR`?z2(e):n===`ru-RU`?B2(e):n===`zh-TW`?V2(e):H2(e)}),W2=()=>`No chain data`,G2=()=>`No chain data`,K2=()=>`No chain data`,q2=()=>`No chain data`,J2=()=>`暫無鏈資料`,Y2=()=>`暂无链数据`,X2=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?W2(e):n===`ja-JP`?G2(e):n===`ko-KR`?K2(e):n===`ru-RU`?q2(e):n===`zh-TW`?J2(e):Y2(e)}),Z2=()=>`Add Node`,Q2=()=>`Add Node`,$2=()=>`Add Node`,e4=()=>`Add Node`,t4=()=>`新增節點`,n4=()=>`新增节点`,r4=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Z2(e):n===`ja-JP`?Q2(e):n===`ko-KR`?$2(e):n===`ru-RU`?e4(e):n===`zh-TW`?t4(e):n4(e)}),i4=()=>`Manage RPC nodes, weights, and health status for each chain.`,a4=()=>`Manage RPC nodes, weights, and health status for each chain.`,o4=()=>`Manage RPC nodes, weights, and health status for each chain.`,s4=()=>`Manage RPC nodes, weights, and health status for each chain.`,c4=()=>`管理各鏈 RPC 節點、權重與健康狀態。`,l4=()=>`管理各链 RPC 节点、权重与健康状态。`,u4=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?i4(e):n===`ja-JP`?a4(e):n===`ko-KR`?o4(e):n===`ru-RU`?s4(e):n===`zh-TW`?c4(e):l4(e)}),d4=()=>`Deleted successfully`,f4=()=>`Deleted successfully`,p4=()=>`Deleted successfully`,m4=()=>`Deleted successfully`,h4=()=>`刪除成功`,g4=()=>`删除成功`,_4=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?d4(e):n===`ja-JP`?f4(e):n===`ko-KR`?p4(e):n===`ru-RU`?m4(e):n===`zh-TW`?h4(e):g4(e)}),v4=e=>`Health check completed, status: ${e?.status}${e?.latency}`,y4=e=>`Health check completed, status: ${e?.status}${e?.latency}`,b4=e=>`Health check completed, status: ${e?.status}${e?.latency}`,x4=e=>`Health check completed, status: ${e?.status}${e?.latency}`,S4=e=>`健康檢查完成,狀態: ${e?.status}${e?.latency}`,C4=e=>`健康检查完成,状态: ${e?.status}${e?.latency}`,w4=((e,t={})=>{let n=t.locale??m();return n===`en-US`?v4(e):n===`ja-JP`?y4(e):n===`ko-KR`?b4(e):n===`ru-RU`?x4(e):n===`zh-TW`?S4(e):C4(e)}),T4=e=>`, latency ${e?.latency}ms`,E4=e=>`, latency ${e?.latency}ms`,D4=e=>`, latency ${e?.latency}ms`,O4=e=>`, latency ${e?.latency}ms`,k4=e=>`,延遲 ${e?.latency}ms`,A4=e=>`,延迟 ${e?.latency}ms`,j4=((e,t={})=>{let n=t.locale??m();return n===`en-US`?T4(e):n===`ja-JP`?E4(e):n===`ko-KR`?D4(e):n===`ru-RU`?O4(e):n===`zh-TW`?k4(e):A4(e)}),M4=()=>`Confirm`,N4=()=>`Confirm`,P4=()=>`Confirm`,F4=()=>`Confirm`,I4=()=>`確認`,L4=()=>`确认`,R4=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?M4(e):n===`ja-JP`?N4(e):n===`ko-KR`?P4(e):n===`ru-RU`?F4(e):n===`zh-TW`?I4(e):L4(e)}),z4=e=>`Perform “${e?.action}” on RPC node ${e?.url}.`,B4=e=>`Perform “${e?.action}” on RPC node ${e?.url}.`,V4=e=>`Perform “${e?.action}” on RPC node ${e?.url}.`,H4=e=>`Perform “${e?.action}” on RPC node ${e?.url}.`,U4=e=>`將對 RPC 節點 ${e?.url} 執行“${e?.action}”操作。`,W4=e=>`将对 RPC 节点 ${e?.url} 执行“${e?.action}”操作。`,G4=((e,t={})=>{let n=t.locale??m();return n===`en-US`?z4(e):n===`ja-JP`?B4(e):n===`ko-KR`?V4(e):n===`ru-RU`?H4(e):n===`zh-TW`?U4(e):W4(e)}),K4=()=>`Delete RPC Node`,q4=()=>`Delete RPC Node`,J4=()=>`Delete RPC Node`,Y4=()=>`Delete RPC Node`,X4=()=>`刪除 RPC 節點`,Z4=()=>`删除 RPC 节点`,Q4=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?K4(e):n===`ja-JP`?q4(e):n===`ko-KR`?J4(e):n===`ru-RU`?Y4(e):n===`zh-TW`?X4(e):Z4(e)}),$4=()=>`Confirm RPC Node Action`,e3=()=>`Confirm RPC Node Action`,t3=()=>`Confirm RPC Node Action`,n3=()=>`Confirm RPC Node Action`,r3=()=>`RPC 節點操作確認`,i3=()=>`RPC 节点操作确认`,a3=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$4(e):n===`ja-JP`?e3(e):n===`ko-KR`?t3(e):n===`ru-RU`?n3(e):n===`zh-TW`?r3(e):i3(e)}),o3=()=>`Health Status`,s3=()=>`Health Status`,c3=()=>`Health Status`,l3=()=>`Health Status`,u3=()=>`健康狀態`,d3=()=>`健康状态`,f3=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?o3(e):n===`ja-JP`?s3(e):n===`ko-KR`?c3(e):n===`ru-RU`?l3(e):n===`zh-TW`?u3(e):d3(e)}),p3=()=>`OK`,m3=()=>`OK`,h3=()=>`OK`,g3=()=>`OK`,_3=()=>`正常`,v3=()=>`正常`,y3=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?p3(e):n===`ja-JP`?m3(e):n===`ko-KR`?h3(e):n===`ru-RU`?g3(e):n===`zh-TW`?_3(e):v3(e)}),b3=()=>`Down`,x3=()=>`Down`,S3=()=>`Down`,C3=()=>`Down`,w3=()=>`異常`,T3=()=>`异常`,E3=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?b3(e):n===`ja-JP`?x3(e):n===`ko-KR`?S3(e):n===`ru-RU`?C3(e):n===`zh-TW`?w3(e):T3(e)}),D3=()=>`Unknown`,O3=()=>`Unknown`,k3=()=>`Unknown`,A3=()=>`Unknown`,j3=()=>`未知`,M3=()=>`未知`,N3=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?D3(e):n===`ja-JP`?O3(e):n===`ko-KR`?k3(e):n===`ru-RU`?A3(e):n===`zh-TW`?j3(e):M3(e)}),P3=()=>`Chain Network`,F3=()=>`Chain Network`,I3=()=>`Chain Network`,L3=()=>`Chain Network`,R3=()=>`鏈網路`,z3=()=>`链网络`,B3=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?P3(e):n===`ja-JP`?F3(e):n===`ko-KR`?I3(e):n===`ru-RU`?L3(e):n===`zh-TW`?R3(e):z3(e)}),V3=()=>`Connection Type`,H3=()=>`Connection Type`,U3=()=>`Connection Type`,W3=()=>`Connection Type`,G3=()=>`連線型別`,K3=()=>`连接类型`,q3=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?V3(e):n===`ja-JP`?H3(e):n===`ko-KR`?U3(e):n===`ru-RU`?W3(e):n===`zh-TW`?G3(e):K3(e)}),J3=()=>`Node URL`,Y3=()=>`Node URL`,X3=()=>`Node URL`,Z3=()=>`Node URL`,Q3=()=>`節點 URL`,$3=()=>`节点 URL`,e6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?J3(e):n===`ja-JP`?Y3(e):n===`ko-KR`?X3(e):n===`ru-RU`?Z3(e):n===`zh-TW`?Q3(e):$3(e)}),t6=()=>`Weight`,n6=()=>`Weight`,r6=()=>`Weight`,i6=()=>`Weight`,a6=()=>`權重`,o6=()=>`权重`,s6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?t6(e):n===`ja-JP`?n6(e):n===`ko-KR`?r6(e):n===`ru-RU`?i6(e):n===`zh-TW`?a6(e):o6(e)}),c6=()=>`Latest Latency`,l6=()=>`Latest Latency`,u6=()=>`Latest Latency`,d6=()=>`Latest Latency`,f6=()=>`最近延遲`,p6=()=>`最近延迟`,m6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?c6(e):n===`ja-JP`?l6(e):n===`ko-KR`?u6(e):n===`ru-RU`?d6(e):n===`zh-TW`?f6(e):p6(e)}),h6=()=>`Last Checked At`,g6=()=>`Last Checked At`,_6=()=>`Last Checked At`,v6=()=>`Last Checked At`,y6=()=>`最近檢查時間`,b6=()=>`最近检查时间`,x6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?h6(e):n===`ja-JP`?g6(e):n===`ko-KR`?_6(e):n===`ru-RU`?v6(e):n===`zh-TW`?y6(e):b6(e)}),S6=()=>`Health Check`,C6=()=>`Health Check`,w6=()=>`Health Check`,T6=()=>`Health Check`,E6=()=>`健康檢查`,D6=()=>`健康检查`,O6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?S6(e):n===`ja-JP`?C6(e):n===`ko-KR`?w6(e):n===`ru-RU`?T6(e):n===`zh-TW`?E6(e):D6(e)}),k6=()=>`Search chain network or node URL...`,A6=()=>`Search chain network or node URL...`,j6=()=>`Search chain network or node URL...`,M6=()=>`Search chain network or node URL...`,N6=()=>`搜尋鏈網路或節點 URL...`,P6=()=>`搜索链网络或节点 URL...`,F6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?k6(e):n===`ja-JP`?A6(e):n===`ko-KR`?j6(e):n===`ru-RU`?M6(e):n===`zh-TW`?N6(e):P6(e)}),I6=()=>`No RPC node data`,L6=()=>`No RPC node data`,R6=()=>`No RPC node data`,z6=()=>`No RPC node data`,B6=()=>`暫無 RPC 節點資料`,V6=()=>`暂无 RPC 节点数据`,H6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?I6(e):n===`ja-JP`?L6(e):n===`ko-KR`?R6(e):n===`ru-RU`?z6(e):n===`zh-TW`?B6(e):V6(e)}),U6=()=>`Edit`,W6=()=>`Edit`,G6=()=>`Edit`,K6=()=>`Edit`,q6=()=>`編輯`,J6=()=>`编辑`,Y6=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?U6(e):n===`ja-JP`?W6(e):n===`ko-KR`?G6(e):n===`ru-RU`?K6(e):n===`zh-TW`?q6(e):J6(e)}),X6=()=>`Edit RPC Node`,Z6=()=>`Edit RPC Node`,Q6=()=>`Edit RPC Node`,$6=()=>`Edit RPC Node`,e8=()=>`編輯 RPC 節點`,t8=()=>`编辑 RPC 节点`,n8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?X6(e):n===`ja-JP`?Z6(e):n===`ko-KR`?Q6(e):n===`ru-RU`?$6(e):n===`zh-TW`?e8(e):t8(e)}),r8=()=>`Add RPC Node`,i8=()=>`Add RPC Node`,a8=()=>`Add RPC Node`,o8=()=>`Add RPC Node`,s8=()=>`新增 RPC 節點`,c8=()=>`新增 RPC 节点`,l8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?r8(e):n===`ja-JP`?i8(e):n===`ko-KR`?a8(e):n===`ru-RU`?o8(e):n===`zh-TW`?s8(e):c8(e)}),u8=()=>`Modify RPC node configuration.`,d8=()=>`Modify RPC node configuration.`,f8=()=>`Modify RPC node configuration.`,p8=()=>`Modify RPC node configuration.`,m8=()=>`修改 RPC 節點配置。`,h8=()=>`修改 RPC 节点配置。`,g8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?u8(e):n===`ja-JP`?d8(e):n===`ko-KR`?f8(e):n===`ru-RU`?p8(e):n===`zh-TW`?m8(e):h8(e)}),_8=()=>`Configure a new RPC node.`,v8=()=>`Configure a new RPC node.`,y8=()=>`Configure a new RPC node.`,b8=()=>`Configure a new RPC node.`,x8=()=>`配置新的 RPC 節點資訊。`,S8=()=>`配置新的 RPC 节点信息。`,C8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_8(e):n===`ja-JP`?v8(e):n===`ko-KR`?y8(e):n===`ru-RU`?b8(e):n===`zh-TW`?x8(e):S8(e)}),w8=()=>`Select type`,T8=()=>`Select type`,E8=()=>`Select type`,D8=()=>`Select type`,O8=()=>`選擇型別`,k8=()=>`选择类型`,A8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?w8(e):n===`ja-JP`?T8(e):n===`ko-KR`?E8(e):n===`ru-RU`?D8(e):n===`zh-TW`?O8(e):k8(e)}),j8=()=>`Optional`,M8=()=>`Optional`,N8=()=>`Optional`,P8=()=>`Optional`,F8=()=>`可選`,I8=()=>`可选`,L8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?j8(e):n===`ja-JP`?M8(e):n===`ko-KR`?N8(e):n===`ru-RU`?P8(e):n===`zh-TW`?F8(e):I8(e)}),R8=()=>`Enable immediately after creation`,z8=()=>`Enable immediately after creation`,B8=()=>`Enable immediately after creation`,V8=()=>`Enable immediately after creation`,H8=()=>`建立後立即啟用`,U8=()=>`创建后立即启用`,W8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?R8(e):n===`ja-JP`?z8(e):n===`ko-KR`?B8(e):n===`ru-RU`?V8(e):n===`zh-TW`?H8(e):U8(e)}),G8=()=>`Disabled nodes will not participate in scheduling.`,K8=()=>`Disabled nodes will not participate in scheduling.`,q8=()=>`Disabled nodes will not participate in scheduling.`,J8=()=>`Disabled nodes will not participate in scheduling.`,Y8=()=>`關閉後該節點不會參與排程。`,X8=()=>`关闭后该节点不会参与排程。`,Z8=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?G8(e):n===`ja-JP`?K8(e):n===`ko-KR`?q8(e):n===`ru-RU`?J8(e):n===`zh-TW`?Y8(e):X8(e)}),Q8=()=>`RPC node updated successfully`,$8=()=>`RPC node updated successfully`,e5=()=>`RPC node updated successfully`,t5=()=>`RPC node updated successfully`,n5=()=>`RPC 節點更新成功`,r5=()=>`RPC 节点更新成功`,i5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Q8(e):n===`ja-JP`?$8(e):n===`ko-KR`?e5(e):n===`ru-RU`?t5(e):n===`zh-TW`?n5(e):r5(e)}),a5=()=>`RPC node created successfully`,o5=()=>`RPC node created successfully`,s5=()=>`RPC node created successfully`,c5=()=>`RPC node created successfully`,l5=()=>`RPC 節點建立成功`,u5=()=>`RPC 节点创建成功`,d5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?a5(e):n===`ja-JP`?o5(e):n===`ko-KR`?s5(e):n===`ru-RU`?c5(e):n===`zh-TW`?l5(e):u5(e)}),f5=()=>`Please enter chain network`,p5=()=>`Please enter chain network`,m5=()=>`Please enter chain network`,h5=()=>`Please enter chain network`,g5=()=>`請輸入鏈網路`,_5=()=>`请输入链网络`,v5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?f5(e):n===`ja-JP`?p5(e):n===`ko-KR`?m5(e):n===`ru-RU`?h5(e):n===`zh-TW`?g5(e):_5(e)}),y5=()=>`Please enter a valid URL`,b5=()=>`Please enter a valid URL`,x5=()=>`Please enter a valid URL`,S5=()=>`Please enter a valid URL`,C5=()=>`請輸入合法 URL`,w5=()=>`请输入合法 URL`,T5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?y5(e):n===`ja-JP`?b5(e):n===`ko-KR`?x5(e):n===`ru-RU`?S5(e):n===`zh-TW`?C5(e):w5(e)}),E5=()=>`Weight must be at least 1`,D5=()=>`Weight must be at least 1`,O5=()=>`Weight must be at least 1`,k5=()=>`Weight must be at least 1`,A5=()=>`權重至少為 1`,j5=()=>`权重至少为 1`,M5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?E5(e):n===`ja-JP`?D5(e):n===`ko-KR`?O5(e):n===`ru-RU`?k5(e):n===`zh-TW`?A5(e):j5(e)}),N5=()=>`Node Purpose`,P5=()=>`Node Purpose`,F5=()=>`Node Purpose`,I5=()=>`Node Purpose`,L5=()=>`節點用途`,R5=()=>`节点用途`,z5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?N5(e):n===`ja-JP`?P5(e):n===`ko-KR`?F5(e):n===`ru-RU`?I5(e):n===`zh-TW`?L5(e):R5(e)}),B5=()=>`Select purpose`,V5=()=>`Select purpose`,H5=()=>`Select purpose`,U5=()=>`Select purpose`,W5=()=>`選擇用途`,G5=()=>`选择用途`,K5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?B5(e):n===`ja-JP`?V5(e):n===`ko-KR`?H5(e):n===`ru-RU`?U5(e):n===`zh-TW`?W5(e):G5(e)}),q5=()=>`General`,J5=()=>`General`,Y5=()=>`General`,X5=()=>`General`,Z5=()=>`通用`,Q5=()=>`通用`,$5=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?q5(e):n===`ja-JP`?J5(e):n===`ko-KR`?Y5(e):n===`ru-RU`?X5(e):n===`zh-TW`?Z5(e):Q5(e)}),e7=()=>`Manual verification only`,t7=()=>`Manual verification only`,n7=()=>`Manual verification only`,r7=()=>`Manual verification only`,i7=()=>`補單專用`,a7=()=>`补单专用`,o7=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?e7(e):n===`ja-JP`?t7(e):n===`ko-KR`?n7(e):n===`ru-RU`?r7(e):n===`zh-TW`?i7(e):a7(e)}),s7=()=>`General + manual verification`,c7=()=>`General + manual verification`,l7=()=>`General + manual verification`,u7=()=>`General + manual verification`,d7=()=>`通用 + 補單`,f7=()=>`通用 + 补单`,p7=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?s7(e):n===`ja-JP`?c7(e):n===`ko-KR`?l7(e):n===`ru-RU`?u7(e):n===`zh-TW`?d7(e):f7(e)}),m7=()=>`All`,h7=()=>`All`,g7=()=>`All`,_7=()=>`All`,v7=()=>`全部`,y7=()=>`全部`,b7=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?m7(e):n===`ja-JP`?h7(e):n===`ko-KR`?g7(e):n===`ru-RU`?_7(e):n===`zh-TW`?v7(e):y7(e)}),x7=()=>`Enabled`,S7=()=>`Enabled`,C7=()=>`Enabled`,w7=()=>`Enabled`,T7=()=>`已啟用`,E7=()=>`已启用`,D7=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?x7(e):n===`ja-JP`?S7(e):n===`ko-KR`?C7(e):n===`ru-RU`?w7(e):n===`zh-TW`?T7(e):E7(e)}),O7=()=>`Disabled`,k7=()=>`Disabled`,A7=()=>`Disabled`,j7=()=>`Disabled`,M7=()=>`已停用`,N7=()=>`已停用`,P7=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?O7(e):n===`ja-JP`?k7(e):n===`ko-KR`?A7(e):n===`ru-RU`?j7(e):n===`zh-TW`?M7(e):N7(e)}),F7=()=>`Deleted successfully`,I7=()=>`Deleted successfully`,L7=()=>`Deleted successfully`,R7=()=>`Deleted successfully`,z7=()=>`刪除成功`,B7=()=>`删除成功`,V7=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?F7(e):n===`ja-JP`?I7(e):n===`ko-KR`?L7(e):n===`ru-RU`?R7(e):n===`zh-TW`?z7(e):B7(e)}),H7=()=>`Failed to fetch secret key`,U7=()=>`Failed to fetch secret key`,W7=()=>`Failed to fetch secret key`,G7=()=>`Failed to fetch secret key`,K7=()=>`取得金鑰失敗`,q7=()=>`获取密钥失败`,J7=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?H7(e):n===`ja-JP`?U7(e):n===`ko-KR`?W7(e):n===`ru-RU`?G7(e):n===`zh-TW`?K7(e):q7(e)}),Y7=()=>`Missing API Key ID`,X7=()=>`Missing API Key ID`,Z7=()=>`Missing API Key ID`,Q7=()=>`Missing API Key ID`,$7=()=>`缺少 API Key ID`,e9=()=>`缺少 API Key ID`,t9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Y7(e):n===`ja-JP`?X7(e):n===`ko-KR`?Z7(e):n===`ru-RU`?Q7(e):n===`zh-TW`?$7(e):e9(e)}),n9=()=>`No secret key available to copy`,r9=()=>`No secret key available to copy`,i9=()=>`No secret key available to copy`,a9=()=>`No secret key available to copy`,o9=()=>`暫無金鑰可複製`,s9=()=>`暂无密钥可复制`,c9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?n9(e):n===`ja-JP`?r9(e):n===`ko-KR`?i9(e):n===`ru-RU`?a9(e):n===`zh-TW`?o9(e):s9(e)}),l9=()=>`Secret key copied`,u9=()=>`Secret key copied`,d9=()=>`Secret key copied`,f9=()=>`Secret key copied`,p9=()=>`金鑰已複製`,m9=()=>`密钥已复制`,h9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?l9(e):n===`ja-JP`?u9(e):n===`ko-KR`?d9(e):n===`ru-RU`?f9(e):n===`zh-TW`?p9(e):m9(e)}),g9=()=>`Secret key rotated`,_9=()=>`Secret key rotated`,v9=()=>`Secret key rotated`,y9=()=>`Secret key rotated`,b9=()=>`金鑰已輪換`,x9=()=>`密钥已轮换`,S9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?g9(e):n===`ja-JP`?_9(e):n===`ko-KR`?v9(e):n===`ru-RU`?y9(e):n===`zh-TW`?b9(e):x9(e)}),C9=()=>`Create Key`,w9=()=>`Create Key`,T9=()=>`Create Key`,E9=()=>`Create Key`,D9=()=>`建立 Key`,O9=()=>`创建 Key`,k9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?C9(e):n===`ja-JP`?w9(e):n===`ko-KR`?T9(e):n===`ru-RU`?E9(e):n===`zh-TW`?D9(e):O9(e)}),A9=()=>`Manage payment keys, access restrictions, and callback URL settings.`,j9=()=>`Manage payment keys, access restrictions, and callback URL settings.`,M9=()=>`Manage payment keys, access restrictions, and callback URL settings.`,N9=()=>`Manage payment keys, access restrictions, and callback URL settings.`,P9=()=>`管理支付 Key、訪問限制與通知地址配置。`,F9=()=>`管理支付 Key、访问限制与通知地址配置。`,I9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?A9(e):n===`ja-JP`?j9(e):n===`ko-KR`?M9(e):n===`ru-RU`?N9(e):n===`zh-TW`?P9(e):F9(e)}),L9=()=>`Payment Management`,R9=()=>`Payment Management`,z9=()=>`Payment Management`,B9=()=>`Payment Management`,V9=()=>`支付管理`,H9=()=>`支付管理`,U9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?L9(e):n===`ja-JP`?R9(e):n===`ko-KR`?z9(e):n===`ru-RU`?B9(e):n===`zh-TW`?V9(e):H9(e)}),W9=()=>`Search PID, name, or callback URL...`,G9=()=>`Search PID, name, or callback URL...`,K9=()=>`Search PID, name, or callback URL...`,q9=()=>`Search PID, name, or callback URL...`,J9=()=>`搜尋 PID、名稱或通知地址...`,Y9=()=>`搜索 PID、名称或通知地址...`,X9=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?W9(e):n===`ja-JP`?G9(e):n===`ko-KR`?K9(e):n===`ru-RU`?q9(e):n===`zh-TW`?J9(e):Y9(e)}),Z9=()=>`Ascending`,Q9=()=>`Ascending`,$9=()=>`Ascending`,tee=()=>`Ascending`,nee=()=>`Ascending`,ree=()=>`Ascending`,iee=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Z9(e):n===`ja-JP`?Q9(e):n===`ko-KR`?$9(e):n===`ru-RU`?tee(e):n===`zh-TW`?nee(e):ree(e)}),aee=()=>`Descending`,oee=()=>`Descending`,see=()=>`Descending`,cee=()=>`Descending`,lee=()=>`Descending`,uee=()=>`Descending`,dee=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?aee(e):n===`ja-JP`?oee(e):n===`ko-KR`?see(e):n===`ru-RU`?cee(e):n===`zh-TW`?lee(e):uee(e)}),fee=()=>`Delete`,pee=()=>`Delete`,mee=()=>`Delete`,hee=()=>`Delete`,gee=()=>`刪除`,_ee=()=>`删除`,vee=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fee(e):n===`ja-JP`?pee(e):n===`ko-KR`?mee(e):n===`ru-RU`?hee(e):n===`zh-TW`?gee(e):_ee(e)}),yee=()=>`Confirm`,bee=()=>`Confirm`,xee=()=>`Confirm`,See=()=>`Confirm`,Cee=()=>`確認`,wee=()=>`确认`,Tee=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yee(e):n===`ja-JP`?bee(e):n===`ko-KR`?xee(e):n===`ru-RU`?See(e):n===`zh-TW`?Cee(e):wee(e)}),Eee=e=>`Perform “${e?.action}” on ${e?.target}.`,Dee=e=>`Perform “${e?.action}” on ${e?.target}.`,Oee=e=>`Perform “${e?.action}” on ${e?.target}.`,kee=e=>`Perform “${e?.action}” on ${e?.target}.`,Aee=e=>`將對 ${e?.target} 執行“${e?.action}”操作。`,jee=e=>`将对 ${e?.target} 执行“${e?.action}”操作。`,Mee=((e,t={})=>{let n=t.locale??m();return n===`en-US`?Eee(e):n===`ja-JP`?Dee(e):n===`ko-KR`?Oee(e):n===`ru-RU`?kee(e):n===`zh-TW`?Aee(e):jee(e)}),Nee=()=>`Delete API Key`,Pee=()=>`Delete API Key`,Fee=()=>`Delete API Key`,Iee=()=>`Delete API Key`,Lee=()=>`刪除 API Key`,Ree=()=>`删除 API Key`,zee=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Nee(e):n===`ja-JP`?Pee(e):n===`ko-KR`?Fee(e):n===`ru-RU`?Iee(e):n===`zh-TW`?Lee(e):Ree(e)}),Bee=()=>`Confirm API Key Action`,Vee=()=>`Confirm API Key Action`,Hee=()=>`Confirm API Key Action`,Uee=()=>`Confirm API Key Action`,Wee=()=>`API Key 操作確認`,Gee=()=>`API Key 操作确认`,Kee=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Bee(e):n===`ja-JP`?Vee(e):n===`ko-KR`?Hee(e):n===`ru-RU`?Uee(e):n===`zh-TW`?Wee(e):Gee(e)}),qee=()=>`API Key Stats`,Jee=()=>`API Key Stats`,Yee=()=>`API Key Stats`,Xee=()=>`API Key Stats`,Zee=()=>`API Key 統計`,Qee=()=>`API Key 统计`,$ee=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qee(e):n===`ja-JP`?Jee(e):n===`ko-KR`?Yee(e):n===`ru-RU`?Xee(e):n===`zh-TW`?Zee(e):Qee(e)}),ete=()=>`Call Count`,tte=()=>`Call Count`,nte=()=>`Call Count`,rte=()=>`Call Count`,ite=()=>`呼叫次數`,ate=()=>`呼叫次数`,ote=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ete(e):n===`ja-JP`?tte(e):n===`ko-KR`?nte(e):n===`ru-RU`?rte(e):n===`zh-TW`?ite(e):ate(e)}),ste=()=>`Last Used`,cte=()=>`Last Used`,lte=()=>`Last Used`,ute=()=>`Last Used`,dte=()=>`最近使用`,fte=()=>`最近使用`,pte=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ste(e):n===`ja-JP`?cte(e):n===`ko-KR`?lte(e):n===`ru-RU`?ute(e):n===`zh-TW`?dte(e):fte(e)}),mte=()=>`No records`,hte=()=>`No records`,gte=()=>`No records`,_te=()=>`No records`,vte=()=>`暫無記錄`,yte=()=>`暂无记录`,bte=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mte(e):n===`ja-JP`?hte(e):n===`ko-KR`?gte(e):n===`ru-RU`?_te(e):n===`zh-TW`?vte(e):yte(e)}),xte=()=>`No API Keys`,Ste=()=>`No API Keys`,Cte=()=>`No API Keys`,wte=()=>`No API Keys`,Tte=()=>`暫無 API Key`,Ete=()=>`暂无 API Key`,Dte=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xte(e):n===`ja-JP`?Ste(e):n===`ko-KR`?Cte(e):n===`ru-RU`?wte(e):n===`zh-TW`?Tte(e):Ete(e)}),Ote=()=>`Loading...`,kte=()=>`Loading...`,Ate=()=>`Loading...`,jte=()=>`Loading...`,Mte=()=>`載入中...`,Nte=()=>`加载中...`,Pte=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ote(e):n===`ja-JP`?kte(e):n===`ko-KR`?Ate(e):n===`ru-RU`?jte(e):n===`zh-TW`?Mte(e):Nte(e)}),Fte=()=>`Callback URL`,Ite=()=>`Callback URL`,Lte=()=>`Callback URL`,Rte=()=>`Callback URL`,zte=()=>`回呼地址`,Bte=()=>`回调地址`,Vte=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Fte(e):n===`ja-JP`?Ite(e):n===`ko-KR`?Lte(e):n===`ru-RU`?Rte(e):n===`zh-TW`?zte(e):Bte(e)}),Hte=()=>`IP Whitelist`,Ute=()=>`IP Whitelist`,Wte=()=>`IP Whitelist`,Gte=()=>`IP Whitelist`,Kte=()=>`IP 白名單`,qte=()=>`IP 白名单`,Jte=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hte(e):n===`ja-JP`?Ute(e):n===`ko-KR`?Wte(e):n===`ru-RU`?Gte(e):n===`zh-TW`?Kte(e):qte(e)}),Yte=()=>`Secret`,Xte=()=>`Secret`,Zte=()=>`Secret`,Qte=()=>`Secret`,$te=()=>`金鑰`,ene=()=>`密钥`,tne=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yte(e):n===`ja-JP`?Xte(e):n===`ko-KR`?Zte(e):n===`ru-RU`?Qte(e):n===`zh-TW`?$te(e):ene(e)}),nne=()=>`Edit`,rne=()=>`Edit`,ine=()=>`Edit`,ane=()=>`Edit`,one=()=>`編輯`,sne=()=>`编辑`,cne=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nne(e):n===`ja-JP`?rne(e):n===`ko-KR`?ine(e):n===`ru-RU`?ane(e):n===`zh-TW`?one(e):sne(e)}),lne=()=>`Rotate Secret`,une=()=>`Rotate Secret`,dne=()=>`Rotate Secret`,fne=()=>`Rotate Secret`,pne=()=>`輪換金鑰`,mne=()=>`轮换密钥`,hne=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lne(e):n===`ja-JP`?une(e):n===`ko-KR`?dne(e):n===`ru-RU`?fne(e):n===`zh-TW`?pne(e):mne(e)}),gne=()=>`Name`,_ne=()=>`Name`,vne=()=>`Name`,yne=()=>`Name`,bne=()=>`名稱`,xne=()=>`名称`,Sne=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gne(e):n===`ja-JP`?_ne(e):n===`ko-KR`?vne(e):n===`ru-RU`?yne(e):n===`zh-TW`?bne(e):xne(e)}),Cne=()=>`My App`,wne=()=>`My App`,Tne=()=>`My App`,Ene=()=>`My App`,Dne=()=>`我的應用`,One=()=>`我的应用`,kne=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Cne(e):n===`ja-JP`?wne(e):n===`ko-KR`?Tne(e):n===`ru-RU`?Ene(e):n===`zh-TW`?Dne(e):One(e)}),Ane=()=>`Edit API Key`,jne=()=>`Edit API Key`,Mne=()=>`Edit API Key`,Nne=()=>`Edit API Key`,Pne=()=>`編輯 API Key`,Fne=()=>`编辑 API Key`,Ine=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ane(e):n===`ja-JP`?jne(e):n===`ko-KR`?Mne(e):n===`ru-RU`?Nne(e):n===`zh-TW`?Pne(e):Fne(e)}),Lne=()=>`Create API Key`,Rne=()=>`Create API Key`,zne=()=>`Create API Key`,Bne=()=>`Create API Key`,Vne=()=>`建立 API Key`,Hne=()=>`创建 API Key`,Une=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Lne(e):n===`ja-JP`?Rne(e):n===`ko-KR`?zne(e):n===`ru-RU`?Bne(e):n===`zh-TW`?Vne(e):Hne(e)}),Wne=()=>`Modify API Key configuration.`,Gne=()=>`Modify API Key configuration.`,Kne=()=>`Modify API Key configuration.`,qne=()=>`Modify API Key configuration.`,Jne=()=>`修改 API Key 配置。`,Yne=()=>`修改 API Key 配置。`,Xne=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Wne(e):n===`ja-JP`?Gne(e):n===`ko-KR`?Kne(e):n===`ru-RU`?qne(e):n===`zh-TW`?Jne(e):Yne(e)}),Zne=()=>`Create a new API secret key.`,Qne=()=>`Create a new API secret key.`,$ne=()=>`Create a new API secret key.`,ere=()=>`Create a new API secret key.`,tre=()=>`建立新的 API 金鑰。`,nre=()=>`创建新的 API 密钥。`,rre=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Zne(e):n===`ja-JP`?Qne(e):n===`ko-KR`?$ne(e):n===`ru-RU`?ere(e):n===`zh-TW`?tre(e):nre(e)}),ire=()=>`IP Whitelist (Optional)`,are=()=>`IP Whitelist (Optional)`,ore=()=>`IP Whitelist (Optional)`,sre=()=>`IP Whitelist (Optional)`,cre=()=>`IP 白名單(選填)`,lre=()=>`IP 白名单(选填)`,ure=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ire(e):n===`ja-JP`?are(e):n===`ko-KR`?ore(e):n===`ru-RU`?sre(e):n===`zh-TW`?cre(e):lre(e)}),dre=()=>`⚠️ Secret Key is shown only once, please save it immediately`,fre=()=>`⚠️ Secret Key is shown only once, please save it immediately`,pre=()=>`⚠️ Secret Key is shown only once, please save it immediately`,mre=()=>`⚠️ Secret Key is shown only once, please save it immediately`,hre=()=>`⚠️ Secret Key,僅展示一次,請立即儲存`,gre=()=>`⚠️ Secret Key,仅展示一次,请立即保存`,_re=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dre(e):n===`ja-JP`?fre(e):n===`ko-KR`?pre(e):n===`ru-RU`?mre(e):n===`zh-TW`?hre(e):gre(e)}),vre=()=>`Close`,yre=()=>`Close`,bre=()=>`Close`,xre=()=>`Close`,Sre=()=>`關閉`,Cre=()=>`关闭`,wre=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vre(e):n===`ja-JP`?yre(e):n===`ko-KR`?bre(e):n===`ru-RU`?xre(e):n===`zh-TW`?Sre(e):Cre(e)}),Tre=()=>`Save Changes`,Ere=()=>`Save Changes`,Dre=()=>`Save Changes`,Ore=()=>`Save Changes`,kre=()=>`儲存修改`,Are=()=>`保存修改`,jre=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Tre(e):n===`ja-JP`?Ere(e):n===`ko-KR`?Dre(e):n===`ru-RU`?Ore(e):n===`zh-TW`?kre(e):Are(e)}),Mre=()=>`Create Key`,Nre=()=>`Create Key`,Pre=()=>`Create Key`,Fre=()=>`Create Key`,Ire=()=>`建立 Key`,Lre=()=>`创建 Key`,Rre=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Mre(e):n===`ja-JP`?Nre(e):n===`ko-KR`?Pre(e):n===`ru-RU`?Fre(e):n===`zh-TW`?Ire(e):Lre(e)}),zre=()=>`API Key updated successfully`,Bre=()=>`API Key updated successfully`,Vre=()=>`API Key updated successfully`,Hre=()=>`API Key updated successfully`,Ure=()=>`API Key 更新成功`,Wre=()=>`API Key 更新成功`,Gre=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zre(e):n===`ja-JP`?Bre(e):n===`ko-KR`?Vre(e):n===`ru-RU`?Hre(e):n===`zh-TW`?Ure(e):Wre(e)}),Kre=()=>`API Key created successfully`,qre=()=>`API Key created successfully`,Jre=()=>`API Key created successfully`,Yre=()=>`API Key created successfully`,Xre=()=>`API Key 建立成功`,Zre=()=>`API Key 创建成功`,Qre=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Kre(e):n===`ja-JP`?qre(e):n===`ko-KR`?Jre(e):n===`ru-RU`?Yre(e):n===`zh-TW`?Xre(e):Zre(e)}),$re=()=>`Please enter a name`,eie=()=>`Please enter a name`,tie=()=>`Please enter a name`,nie=()=>`Please enter a name`,rie=()=>`請輸入名稱`,iie=()=>`请输入名称`,aie=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$re(e):n===`ja-JP`?eie(e):n===`ko-KR`?tie(e):n===`ru-RU`?nie(e):n===`zh-TW`?rie(e):iie(e)}),oie=e=>`${e?.action} succeeded`,sie=e=>`${e?.action} succeeded`,cie=e=>`${e?.action} succeeded`,lie=e=>`${e?.action} succeeded`,uie=e=>`${e?.action}成功`,die=e=>`${e?.action}成功`,fie=((e,t={})=>{let n=t.locale??m();return n===`en-US`?oie(e):n===`ja-JP`?sie(e):n===`ko-KR`?cie(e):n===`ru-RU`?lie(e):n===`zh-TW`?uie(e):die(e)}),pie=()=>`Please enter your current password`,mie=()=>`Please enter your current password`,hie=()=>`Please enter your current password`,gie=()=>`Please enter your current password`,_ie=()=>`請輸入當前密碼`,vie=()=>`请输入当前密码`,yie=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pie(e):n===`ja-JP`?mie(e):n===`ko-KR`?hie(e):n===`ru-RU`?gie(e):n===`zh-TW`?_ie(e):vie(e)}),bie=()=>`New password must be at least 8 characters`,xie=()=>`New password must be at least 8 characters`,Sie=()=>`New password must be at least 8 characters`,Cie=()=>`New password must be at least 8 characters`,wie=()=>`新密碼至少 8 位`,Tie=()=>`新密码至少 8 位`,Eie=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bie(e):n===`ja-JP`?xie(e):n===`ko-KR`?Sie(e):n===`ru-RU`?Cie(e):n===`zh-TW`?wie(e):Tie(e)}),Die=()=>`Please confirm your new password`,Oie=()=>`Please confirm your new password`,kie=()=>`Please confirm your new password`,Aie=()=>`Please confirm your new password`,jie=()=>`請確認新密碼`,Mie=()=>`请确认新密码`,Nie=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Die(e):n===`ja-JP`?Oie(e):n===`ko-KR`?kie(e):n===`ru-RU`?Aie(e):n===`zh-TW`?jie(e):Mie(e)}),Pie=()=>`The two passwords do not match`,Fie=()=>`The two passwords do not match`,Iie=()=>`The two passwords do not match`,Lie=()=>`The two passwords do not match`,Rie=()=>`兩次輸入的密碼不一致`,zie=()=>`两次输入的密码不一致`,Bie=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Pie(e):n===`ja-JP`?Fie(e):n===`ko-KR`?Iie(e):n===`ru-RU`?Lie(e):n===`zh-TW`?Rie(e):zie(e)}),Vie=()=>`Password updated successfully`,Hie=()=>`Password updated successfully`,Uie=()=>`Password updated successfully`,Wie=()=>`Password updated successfully`,Gie=()=>`密碼修改成功`,Kie=()=>`密码修改成功`,qie=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Vie(e):n===`ja-JP`?Hie(e):n===`ko-KR`?Uie(e):n===`ru-RU`?Wie(e):n===`zh-TW`?Gie(e):Kie(e)}),Jie=()=>`Current password`,Yie=()=>`Current password`,Xie=()=>`Current password`,Zie=()=>`Current password`,Qie=()=>`當前密碼`,$ie=()=>`当前密码`,eae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Jie(e):n===`ja-JP`?Yie(e):n===`ko-KR`?Xie(e):n===`ru-RU`?Zie(e):n===`zh-TW`?Qie(e):$ie(e)}),tae=()=>`Enter current password`,nae=()=>`Enter current password`,rae=()=>`Enter current password`,iae=()=>`Enter current password`,aae=()=>`輸入當前密碼`,oae=()=>`输入当前密码`,sae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tae(e):n===`ja-JP`?nae(e):n===`ko-KR`?rae(e):n===`ru-RU`?iae(e):n===`zh-TW`?aae(e):oae(e)}),cae=()=>`New password`,lae=()=>`New password`,uae=()=>`New password`,dae=()=>`New password`,fae=()=>`新密碼`,pae=()=>`新密码`,mae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cae(e):n===`ja-JP`?lae(e):n===`ko-KR`?uae(e):n===`ru-RU`?dae(e):n===`zh-TW`?fae(e):pae(e)}),hae=()=>`At least 8 characters`,gae=()=>`At least 8 characters`,_ae=()=>`At least 8 characters`,vae=()=>`At least 8 characters`,yae=()=>`至少 8 位`,bae=()=>`至少 8 位`,xae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hae(e):n===`ja-JP`?gae(e):n===`ko-KR`?_ae(e):n===`ru-RU`?vae(e):n===`zh-TW`?yae(e):bae(e)}),Sae=()=>`Confirm new password`,Cae=()=>`Confirm new password`,wae=()=>`Confirm new password`,Tae=()=>`Confirm new password`,Eae=()=>`確認新密碼`,Dae=()=>`确认新密码`,Oae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Sae(e):n===`ja-JP`?Cae(e):n===`ko-KR`?wae(e):n===`ru-RU`?Tae(e):n===`zh-TW`?Eae(e):Dae(e)}),kae=()=>`Enter new password again`,Aae=()=>`Enter new password again`,jae=()=>`Enter new password again`,Mae=()=>`Enter new password again`,Nae=()=>`再次輸入新密碼`,Pae=()=>`再次输入新密码`,Fae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kae(e):n===`ja-JP`?Aae(e):n===`ko-KR`?jae(e):n===`ru-RU`?Mae(e):n===`zh-TW`?Nae(e):Pae(e)}),Iae=()=>`Saving…`,Lae=()=>`Saving…`,Rae=()=>`Saving…`,zae=()=>`Saving…`,Bae=()=>`儲存中…`,Vae=()=>`保存中…`,Hae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Iae(e):n===`ja-JP`?Lae(e):n===`ko-KR`?Rae(e):n===`ru-RU`?zae(e):n===`zh-TW`?Bae(e):Vae(e)}),Uae=()=>`Save changes`,Wae=()=>`Save changes`,Gae=()=>`Save changes`,Kae=()=>`Save changes`,qae=()=>`儲存修改`,Jae=()=>`保存修改`,Yae=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Uae(e):n===`ja-JP`?Wae(e):n===`ko-KR`?Gae(e):n===`ru-RU`?Kae(e):n===`zh-TW`?qae(e):Jae(e)}),Xae=()=>`System Settings`,Zae=()=>`System Settings`,Qae=()=>`System Settings`,$ae=()=>`System Settings`,eoe=()=>`系統配置`,toe=()=>`系统配置`,noe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Xae(e):n===`ja-JP`?Zae(e):n===`ko-KR`?Qae(e):n===`ru-RU`?$ae(e):n===`zh-TW`?eoe(e):toe(e)}),roe=()=>`Manage checkout basics, Telegram notifications, exchange rate strategy, and payment parameters in one place.`,ioe=()=>`Manage checkout basics, Telegram notifications, exchange rate strategy, and payment parameters in one place.`,aoe=()=>`Manage checkout basics, Telegram notifications, exchange rate strategy, and payment parameters in one place.`,ooe=()=>`Manage checkout basics, Telegram notifications, exchange rate strategy, and payment parameters in one place.`,soe=()=>`集中管理收銀臺基礎配置、Telegram 通知、匯率策略與收款引數。`,coe=()=>`集中管理收银台基础配置、Telegram 通知、汇率策略与收款参数。`,loe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?roe(e):n===`ja-JP`?ioe(e):n===`ko-KR`?aoe(e):n===`ru-RU`?ooe(e):n===`zh-TW`?soe(e):coe(e)}),uoe=()=>`Configure checkout display information.`,doe=()=>`Configure checkout display information.`,foe=()=>`Configure checkout display information.`,poe=()=>`Configure checkout display information.`,moe=()=>`配置收銀臺展示資訊。`,hoe=()=>`配置收银台展示信息。`,goe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?uoe(e):n===`ja-JP`?doe(e):n===`ko-KR`?foe(e):n===`ru-RU`?poe(e):n===`zh-TW`?moe(e):hoe(e)}),_oe=()=>`Please enter the checkout name`,voe=()=>`Please enter the checkout name`,yoe=()=>`Please enter the checkout name`,boe=()=>`Please enter the checkout name`,xoe=()=>`請輸入收銀臺名稱`,Soe=()=>`请输入收银台名称`,Coe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_oe(e):n===`ja-JP`?voe(e):n===`ko-KR`?yoe(e):n===`ru-RU`?boe(e):n===`zh-TW`?xoe(e):Soe(e)}),woe=()=>`Please enter a valid logo URL`,Toe=()=>`Please enter a valid logo URL`,Eoe=()=>`Please enter a valid logo URL`,Doe=()=>`Please enter a valid logo URL`,Ooe=()=>`請輸入合法 Logo 地址`,koe=()=>`请输入有效 Logo 地址`,Aoe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?woe(e):n===`ja-JP`?Toe(e):n===`ko-KR`?Eoe(e):n===`ru-RU`?Doe(e):n===`zh-TW`?Ooe(e):koe(e)}),joe=()=>`Please enter the site title`,Moe=()=>`Please enter the site title`,Noe=()=>`Please enter the site title`,Poe=()=>`Please enter the site title`,Foe=()=>`請輸入網站標題`,Ioe=()=>`请输入网站标题`,Loe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?joe(e):n===`ja-JP`?Moe(e):n===`ko-KR`?Noe(e):n===`ru-RU`?Poe(e):n===`zh-TW`?Foe(e):Ioe(e)}),Roe=()=>`Please enter a valid support URL`,zoe=()=>`Please enter a valid support URL`,Boe=()=>`Please enter a valid support URL`,Voe=()=>`Please enter a valid support URL`,Hoe=()=>`請輸入合法客服連結`,Uoe=()=>`请输入有效客服链接`,Woe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Roe(e):n===`ja-JP`?zoe(e):n===`ko-KR`?Boe(e):n===`ru-RU`?Voe(e):n===`zh-TW`?Hoe(e):Uoe(e)}),Goe=()=>`Base settings reset to defaults`,Koe=()=>`Base settings reset to defaults`,qoe=()=>`Base settings reset to defaults`,Joe=()=>`Base settings reset to defaults`,Yoe=()=>`基礎配置已重置為預設值`,Xoe=()=>`基础配置已重置为默认值`,Zoe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Goe(e):n===`ja-JP`?Koe(e):n===`ko-KR`?qoe(e):n===`ru-RU`?Joe(e):n===`zh-TW`?Yoe(e):Xoe(e)}),Qoe=()=>`Base settings saved`,$oe=()=>`Base settings saved`,ese=()=>`Base settings saved`,tse=()=>`Base settings saved`,nse=()=>`基礎配置已儲存`,rse=()=>`基础配置已保存`,ise=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Qoe(e):n===`ja-JP`?$oe(e):n===`ko-KR`?ese(e):n===`ru-RU`?tse(e):n===`zh-TW`?nse(e):rse(e)}),ase=()=>`Checkout name`,ose=()=>`Checkout name`,sse=()=>`Checkout name`,cse=()=>`Checkout name`,lse=()=>`收銀臺名稱`,use=()=>`收银台名称`,dse=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ase(e):n===`ja-JP`?ose(e):n===`ko-KR`?sse(e):n===`ru-RU`?cse(e):n===`zh-TW`?lse(e):use(e)}),fse=()=>`Logo URL`,pse=()=>`Logo URL`,mse=()=>`Logo URL`,hse=()=>`Logo URL`,gse=()=>`Logo URL`,_se=()=>`Logo URL`,vse=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fse(e):n===`ja-JP`?pse(e):n===`ko-KR`?mse(e):n===`ru-RU`?hse(e):n===`zh-TW`?gse(e):_se(e)}),yse=()=>`Site title`,bse=()=>`Site title`,xse=()=>`Site title`,Sse=()=>`Site title`,Cse=()=>`網站標題`,wse=()=>`网站标题`,Tse=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yse(e):n===`ja-JP`?bse(e):n===`ko-KR`?xse(e):n===`ru-RU`?Sse(e):n===`zh-TW`?Cse(e):wse(e)}),Ese=()=>`Support URL`,Dse=()=>`Support URL`,Ose=()=>`Support URL`,kse=()=>`Support URL`,Ase=()=>`客服連結`,jse=()=>`客服链接`,Mse=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ese(e):n===`ja-JP`?Dse(e):n===`ko-KR`?Ose(e):n===`ru-RU`?kse(e):n===`zh-TW`?Ase(e):jse(e)}),Nse=()=>`Background color`,Pse=()=>`Background color`,Fse=()=>`Background color`,Ise=()=>`Background color`,Lse=()=>`背景顏色`,Rse=()=>`背景颜色`,zse=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Nse(e):n===`ja-JP`?Pse(e):n===`ko-KR`?Fse(e):n===`ru-RU`?Ise(e):n===`zh-TW`?Lse(e):Rse(e)}),Bse=()=>`Supports rgba() and hex alpha values. Leave empty to use the default background.`,Vse=()=>`Supports rgba() and hex alpha values. Leave empty to use the default background.`,Hse=()=>`Supports rgba() and hex alpha values. Leave empty to use the default background.`,Use=()=>`Supports rgba() and hex alpha values. Leave empty to use the default background.`,Wse=()=>`支援 rgba() 和帶透明度的 hex 值。留空則使用預設背景。`,Gse=()=>`支持 rgba() 和带透明度的 hex 值。留空则使用默认背景。`,Kse=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Bse(e):n===`ja-JP`?Vse(e):n===`ko-KR`?Hse(e):n===`ru-RU`?Use(e):n===`zh-TW`?Wse(e):Gse(e)}),qse=()=>`Please enter a valid color`,Jse=()=>`Please enter a valid color`,Yse=()=>`Please enter a valid color`,Xse=()=>`Please enter a valid color`,Zse=()=>`請輸入有效顏色`,Qse=()=>`请输入有效颜色`,$se=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qse(e):n===`ja-JP`?Jse(e):n===`ko-KR`?Yse(e):n===`ru-RU`?Xse(e):n===`zh-TW`?Zse(e):Qse(e)}),ece=()=>`Background image URL`,tce=()=>`Background image URL`,nce=()=>`Background image URL`,rce=()=>`Background image URL`,ice=()=>`背景圖 URL`,ace=()=>`背景图 URL`,oce=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ece(e):n===`ja-JP`?tce(e):n===`ko-KR`?nce(e):n===`ru-RU`?rce(e):n===`zh-TW`?ice(e):ace(e)}),sce=()=>`Please enter a valid background image URL`,cce=()=>`Please enter a valid background image URL`,lce=()=>`Please enter a valid background image URL`,uce=()=>`Please enter a valid background image URL`,dce=()=>`請輸入有效背景圖地址`,fce=()=>`请输入有效背景图地址`,pce=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sce(e):n===`ja-JP`?cce(e):n===`ko-KR`?lce(e):n===`ru-RU`?uce(e):n===`zh-TW`?dce(e):fce(e)}),mce=()=>`Save base settings`,hce=()=>`Save base settings`,gce=()=>`Save base settings`,_ce=()=>`Save base settings`,vce=()=>`儲存基礎配置`,yce=()=>`保存基础配置`,bce=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mce(e):n===`ja-JP`?hce(e):n===`ko-KR`?gce(e):n===`ru-RU`?_ce(e):n===`zh-TW`?vce(e):yce(e)}),xce=()=>`Reset to defaults`,Sce=()=>`Reset to defaults`,Cce=()=>`Reset to defaults`,wce=()=>`Reset to defaults`,Tce=()=>`重置為預設值`,Ece=()=>`重置为默认值`,Dce=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xce(e):n===`ja-JP`?Sce(e):n===`ko-KR`?Cce(e):n===`ru-RU`?wce(e):n===`zh-TW`?Tce(e):Ece(e)}),Oce=()=>`System Logs`,kce=()=>`System Logs`,Ace=()=>`System Logs`,jce=()=>`System Logs`,Mce=()=>`系統日誌`,Nce=()=>`系统日志`,Pce=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Oce(e):n===`ja-JP`?kce(e):n===`ko-KR`?Ace(e):n===`ru-RU`?jce(e):n===`zh-TW`?Mce(e):Nce(e)}),Fce=()=>`Configure runtime log output.`,Ice=()=>`Configure runtime log output.`,Lce=()=>`Configure runtime log output.`,Rce=()=>`Configure runtime log output.`,zce=()=>`配置執行時日誌輸出。`,Bce=()=>`配置运行时日志输出。`,Vce=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Fce(e):n===`ja-JP`?Ice(e):n===`ko-KR`?Lce(e):n===`ru-RU`?Rce(e):n===`zh-TW`?zce(e):Bce(e)}),Hce=()=>`System log settings saved`,Uce=()=>`System log settings saved`,Wce=()=>`System log settings saved`,Gce=()=>`System log settings saved`,Kce=()=>`系統日誌配置已儲存`,qce=()=>`系统日志配置已保存`,Jce=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hce(e):n===`ja-JP`?Uce(e):n===`ko-KR`?Wce(e):n===`ru-RU`?Gce(e):n===`zh-TW`?Kce(e):qce(e)}),Yce=()=>`System log settings reset to defaults`,Xce=()=>`System log settings reset to defaults`,Zce=()=>`System log settings reset to defaults`,Qce=()=>`System log settings reset to defaults`,$ce=()=>`系統日誌配置已重置為預設值`,ele=()=>`系统日志配置已重置为默认值`,tle=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yce(e):n===`ja-JP`?Xce(e):n===`ko-KR`?Zce(e):n===`ru-RU`?Qce(e):n===`zh-TW`?$ce(e):ele(e)}),nle=()=>`Save system log settings`,rle=()=>`Save system log settings`,ile=()=>`Save system log settings`,ale=()=>`Save system log settings`,ole=()=>`儲存系統日誌配置`,sle=()=>`保存系统日志配置`,cle=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nle(e):n===`ja-JP`?rle(e):n===`ko-KR`?ile(e):n===`ru-RU`?ale(e):n===`zh-TW`?ole(e):sle(e)}),lle=()=>`Reset to defaults`,ule=()=>`Reset to defaults`,dle=()=>`Reset to defaults`,fle=()=>`Reset to defaults`,ple=()=>`重置為預設值`,mle=()=>`重置为默认值`,hle=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lle(e):n===`ja-JP`?ule(e):n===`ko-KR`?dle(e):n===`ru-RU`?fle(e):n===`zh-TW`?ple(e):mle(e)}),gle=()=>`Used for payment notifications and exception alerts.`,_le=()=>`Used for payment notifications and exception alerts.`,vle=()=>`Used for payment notifications and exception alerts.`,yle=()=>`Used for payment notifications and exception alerts.`,ble=()=>`用於收款通知與異常提醒推送。`,xle=()=>`用于收款通知与异常提醒推送。`,Sle=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gle(e):n===`ja-JP`?_le(e):n===`ko-KR`?vle(e):n===`ru-RU`?yle(e):n===`zh-TW`?ble(e):xle(e)}),Cle=()=>`Please enter the Bot Token`,wle=()=>`Please enter the Bot Token`,Tle=()=>`Please enter the Bot Token`,Ele=()=>`Please enter the Bot Token`,Dle=()=>`請輸入 Bot Token`,Ole=()=>`请输入 Bot Token`,kle=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Cle(e):n===`ja-JP`?wle(e):n===`ko-KR`?Tle(e):n===`ru-RU`?Ele(e):n===`zh-TW`?Dle(e):Ole(e)}),Ale=()=>`Please enter the Chat ID`,jle=()=>`Please enter the Chat ID`,Mle=()=>`Please enter the Chat ID`,Nle=()=>`Please enter the Chat ID`,Ple=()=>`請輸入 Chat ID`,Fle=()=>`请输入 Chat ID`,Ile=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ale(e):n===`ja-JP`?jle(e):n===`ko-KR`?Mle(e):n===`ru-RU`?Nle(e):n===`zh-TW`?Ple(e):Fle(e)}),Lle=()=>`Telegram settings saved`,Rle=()=>`Telegram settings saved`,zle=()=>`Telegram settings saved`,Ble=()=>`Telegram settings saved`,Vle=()=>`Telegram 配置已儲存`,Hle=()=>`Telegram 配置已保存`,Ule=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Lle(e):n===`ja-JP`?Rle(e):n===`ko-KR`?zle(e):n===`ru-RU`?Ble(e):n===`zh-TW`?Vle(e):Hle(e)}),Wle=()=>`Bot Token`,Gle=()=>`Bot Token`,Kle=()=>`Bot Token`,qle=()=>`Bot Token`,Jle=()=>`Bot Token`,Yle=()=>`Bot Token`,Xle=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Wle(e):n===`ja-JP`?Gle(e):n===`ko-KR`?Kle(e):n===`ru-RU`?qle(e):n===`zh-TW`?Jle(e):Yle(e)}),Zle=()=>`Chat ID`,Qle=()=>`Chat ID`,$le=()=>`Chat ID`,eue=()=>`Chat ID`,tue=()=>`Chat ID`,nue=()=>`Chat ID`,rue=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Zle(e):n===`ja-JP`?Qle(e):n===`ko-KR`?$le(e):n===`ru-RU`?eue(e):n===`zh-TW`?tue(e):nue(e)}),iue=()=>`Payment notification switch`,aue=()=>`Payment notification switch`,oue=()=>`Payment notification switch`,sue=()=>`Payment notification switch`,cue=()=>`收款通知開關`,lue=()=>`收款通知开关`,uue=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?iue(e):n===`ja-JP`?aue(e):n===`ko-KR`?oue(e):n===`ru-RU`?sue(e):n===`zh-TW`?cue(e):lue(e)}),due=()=>`Abnormal notification switch`,fue=()=>`Abnormal notification switch`,pue=()=>`Abnormal notification switch`,mue=()=>`Abnormal notification switch`,hue=()=>`異常通知開關`,gue=()=>`异常通知开关`,_ue=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?due(e):n===`ja-JP`?fue(e):n===`ko-KR`?pue(e):n===`ru-RU`?mue(e):n===`zh-TW`?hue(e):gue(e)}),vue=()=>`Save Telegram settings`,yue=()=>`Save Telegram settings`,bue=()=>`Save Telegram settings`,xue=()=>`Save Telegram settings`,Sue=()=>`儲存 Telegram 配置`,Cue=()=>`保存 Telegram 配置`,wue=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vue(e):n===`ja-JP`?yue(e):n===`ko-KR`?bue(e):n===`ru-RU`?xue(e):n===`zh-TW`?Sue(e):Cue(e)}),Tue=()=>`Reset to defaults`,Eue=()=>`Reset to defaults`,Due=()=>`Reset to defaults`,Oue=()=>`Reset to defaults`,kue=()=>`重置為預設值`,Aue=()=>`重置为默认值`,jue=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Tue(e):n===`ja-JP`?Eue(e):n===`ko-KR`?Due(e):n===`ru-RU`?Oue(e):n===`zh-TW`?kue(e):Aue(e)}),Mue=()=>`Telegram settings reset to defaults`,Nue=()=>`Telegram settings reset to defaults`,Pue=()=>`Telegram settings reset to defaults`,Fue=()=>`Telegram settings reset to defaults`,Iue=()=>`Telegram 配置已重置為預設值`,Lue=()=>`Telegram 配置已重置为默认值`,Rue=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Mue(e):n===`ja-JP`?Nue(e):n===`ko-KR`?Pue(e):n===`ru-RU`?Fue(e):n===`zh-TW`?Iue(e):Lue(e)}),zue=()=>`Configure payment amount precision and exchange rate strategy.`,Bue=()=>`Configure payment amount precision and exchange rate strategy.`,Vue=()=>`Configure payment amount precision and exchange rate strategy.`,Hue=()=>`Configure payment amount precision and exchange rate strategy.`,Uue=()=>`配置支付金額精度與匯率策略。`,Wue=()=>`配置支付金额精度与汇率策略。`,Gue=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zue(e):n===`ja-JP`?Bue(e):n===`ko-KR`?Vue(e):n===`ru-RU`?Hue(e):n===`zh-TW`?Uue(e):Wue(e)}),Kue=()=>`Amount precision must be an integer from 2 to 6`,que=()=>`Amount precision must be an integer from 2 to 6`,Jue=()=>`Amount precision must be an integer from 2 to 6`,Yue=()=>`Amount precision must be an integer from 2 to 6`,Xue=()=>`金額精度必須是 2 到 6 的整數`,Zue=()=>`金额精度必须是 2 到 6 的整数`,Que=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Kue(e):n===`ja-JP`?que(e):n===`ko-KR`?Jue(e):n===`ru-RU`?Yue(e):n===`zh-TW`?Xue(e):Zue(e)}),$ue=()=>`Please enter a valid API URL`,ede=()=>`Please enter a valid API URL`,tde=()=>`Please enter a valid API URL`,nde=()=>`Please enter a valid API URL`,rde=()=>`請輸入合法 API 地址`,ide=()=>`请输入有效 API 地址`,ade=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$ue(e):n===`ja-JP`?ede(e):n===`ko-KR`?tde(e):n===`ru-RU`?nde(e):n===`zh-TW`?rde(e):ide(e)}),ode=()=>`Please enter a valid exchange rate`,sde=()=>`Please enter a valid exchange rate`,cde=()=>`Please enter a valid exchange rate`,lde=()=>`Please enter a valid exchange rate`,ude=()=>`請輸入有效匯率`,dde=()=>`请输入有效汇率`,fde=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ode(e):n===`ja-JP`?sde(e):n===`ko-KR`?cde(e):n===`ru-RU`?lde(e):n===`zh-TW`?ude(e):dde(e)}),pde=()=>`Payment settings reset to defaults`,mde=()=>`Payment settings reset to defaults`,hde=()=>`Payment settings reset to defaults`,gde=()=>`Payment settings reset to defaults`,_de=()=>`支付配置已重置為預設值`,vde=()=>`支付配置已重置为默认值`,yde=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pde(e):n===`ja-JP`?mde(e):n===`ko-KR`?hde(e):n===`ru-RU`?gde(e):n===`zh-TW`?_de(e):vde(e)}),bde=()=>`Payment settings saved`,xde=()=>`Payment settings saved`,Sde=()=>`Payment settings saved`,Cde=()=>`Payment settings saved`,wde=()=>`支付配置已儲存`,Tde=()=>`支付配置已保存`,Ede=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bde(e):n===`ja-JP`?xde(e):n===`ko-KR`?Sde(e):n===`ru-RU`?Cde(e):n===`zh-TW`?wde(e):Tde(e)}),Dde=()=>`Amount precision`,Ode=()=>`Amount precision`,kde=()=>`Amount precision`,Ade=()=>`Amount precision`,jde=()=>`金額精度`,Mde=()=>`金额精度`,Nde=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Dde(e):n===`ja-JP`?Ode(e):n===`ko-KR`?kde(e):n===`ru-RU`?Ade(e):n===`zh-TW`?jde(e):Mde(e)}),Pde=()=>`Exchange rate API URL`,Fde=()=>`Exchange rate API URL`,Ide=()=>`Exchange rate API URL`,Lde=()=>`Exchange rate API URL`,Rde=()=>`匯率 API 地址`,zde=()=>`汇率 API 地址`,Bde=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Pde(e):n===`ja-JP`?Fde(e):n===`ko-KR`?Ide(e):n===`ru-RU`?Lde(e):n===`zh-TW`?Rde(e):zde(e)}),Vde=()=>`Set the API endpoint used to fetch exchange rates.`,Hde=()=>`Set the API endpoint used to fetch exchange rates.`,Ude=()=>`Set the API endpoint used to fetch exchange rates.`,Wde=()=>`Set the API endpoint used to fetch exchange rates.`,Gde=()=>`設定用於取得匯率的 API 介面地址。`,Kde=()=>`设置用于获取汇率的 API 接口地址。`,qde=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Vde(e):n===`ja-JP`?Hde(e):n===`ko-KR`?Ude(e):n===`ru-RU`?Wde(e):n===`zh-TW`?Gde(e):Kde(e)}),Jde=()=>`View docs`,Yde=()=>`View docs`,Xde=()=>`View docs`,Zde=()=>`View docs`,Qde=()=>`查看文件`,$de=()=>`查看文档`,efe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Jde(e):n===`ja-JP`?Yde(e):n===`ko-KR`?Xde(e):n===`ru-RU`?Zde(e):n===`zh-TW`?Qde(e):$de(e)}),tfe=()=>`Runtime log level`,nfe=()=>`Runtime log level`,rfe=()=>`Runtime log level`,ife=()=>`Runtime log level`,afe=()=>`執行日誌級別`,ofe=()=>`运行日志级别`,sfe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tfe(e):n===`ja-JP`?nfe(e):n===`ko-KR`?rfe(e):n===`ru-RU`?ife(e):n===`zh-TW`?afe(e):ofe(e)}),cfe=()=>`Controls backend runtime logging. Deleting this setting resets it to Error.`,lfe=()=>`Controls backend runtime logging. Deleting this setting resets it to Error.`,ufe=()=>`Controls backend runtime logging. Deleting this setting resets it to Error.`,dfe=()=>`Controls backend runtime logging. Deleting this setting resets it to Error.`,ffe=()=>`控制後端執行時日誌輸出。刪除此設定會重設為 Error。`,pfe=()=>`控制后端运行时日志输出。删除该配置会重置为 Error。`,mfe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cfe(e):n===`ja-JP`?lfe(e):n===`ko-KR`?ufe(e):n===`ru-RU`?dfe(e):n===`zh-TW`?ffe(e):pfe(e)}),hfe=()=>`Debug`,gfe=()=>`Debug`,_fe=()=>`Debug`,vfe=()=>`Debug`,yfe=()=>`Debug`,bfe=()=>`Debug`,xfe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hfe(e):n===`ja-JP`?gfe(e):n===`ko-KR`?_fe(e):n===`ru-RU`?vfe(e):n===`zh-TW`?yfe(e):bfe(e)}),Sfe=()=>`Info`,Cfe=()=>`Info`,wfe=()=>`Info`,Tfe=()=>`Info`,Efe=()=>`Info`,Dfe=()=>`Info`,Ofe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Sfe(e):n===`ja-JP`?Cfe(e):n===`ko-KR`?wfe(e):n===`ru-RU`?Tfe(e):n===`zh-TW`?Efe(e):Dfe(e)}),kfe=()=>`Warn`,Afe=()=>`Warn`,jfe=()=>`Warn`,Mfe=()=>`Warn`,Nfe=()=>`Warn`,Pfe=()=>`Warn`,Ffe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kfe(e):n===`ja-JP`?Afe(e):n===`ko-KR`?jfe(e):n===`ru-RU`?Mfe(e):n===`zh-TW`?Nfe(e):Pfe(e)}),Ife=()=>`Error`,Lfe=()=>`Error`,Rfe=()=>`Error`,zfe=()=>`Error`,Bfe=()=>`Error`,Vfe=()=>`Error`,Hfe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ife(e):n===`ja-JP`?Lfe(e):n===`ko-KR`?Rfe(e):n===`ru-RU`?zfe(e):n===`zh-TW`?Bfe(e):Vfe(e)}),Ufe=()=>`Forced rate table`,Wfe=()=>`Forced rate table`,Gfe=()=>`Forced rate table`,Kfe=()=>`Forced rate table`,qfe=()=>`強制匯率表`,Jfe=()=>`强制汇率表`,Yfe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ufe(e):n===`ja-JP`?Wfe(e):n===`ko-KR`?Gfe(e):n===`ru-RU`?Kfe(e):n===`zh-TW`?qfe(e):Jfe(e)}),Xfe=()=>`Preview`,Zfe=()=>`Preview`,Qfe=()=>`Preview`,$fe=()=>`Preview`,epe=()=>`預覽`,tpe=()=>`预览`,npe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Xfe(e):n===`ja-JP`?Zfe(e):n===`ko-KR`?Qfe(e):n===`ru-RU`?$fe(e):n===`zh-TW`?epe(e):tpe(e)}),rpe=()=>`Review the parsed currency and coin rates before saving.`,ipe=()=>`Review the parsed currency and coin rates before saving.`,ape=()=>`Review the parsed currency and coin rates before saving.`,ope=()=>`Review the parsed currency and coin rates before saving.`,spe=()=>`儲存前查看解析後的法幣與代幣匯率。`,cpe=()=>`保存前查看解析后的法币与代币汇率。`,lpe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rpe(e):n===`ja-JP`?ipe(e):n===`ko-KR`?ape(e):n===`ru-RU`?ope(e):n===`zh-TW`?spe(e):cpe(e)}),upe=()=>`Currency`,dpe=()=>`Currency`,fpe=()=>`Currency`,ppe=()=>`Currency`,mpe=()=>`法幣`,hpe=()=>`法币`,gpe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?upe(e):n===`ja-JP`?dpe(e):n===`ko-KR`?fpe(e):n===`ru-RU`?ppe(e):n===`zh-TW`?mpe(e):hpe(e)}),_pe=()=>`Coin`,vpe=()=>`Coin`,ype=()=>`Coin`,bpe=()=>`Coin`,xpe=()=>`代幣`,Spe=()=>`代币`,Cpe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_pe(e):n===`ja-JP`?vpe(e):n===`ko-KR`?ype(e):n===`ru-RU`?bpe(e):n===`zh-TW`?xpe(e):Spe(e)}),wpe=()=>`Rate`,Tpe=()=>`Rate`,Epe=()=>`Rate`,Dpe=()=>`Rate`,Ope=()=>`匯率`,kpe=()=>`汇率`,Ape=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wpe(e):n===`ja-JP`?Tpe(e):n===`ko-KR`?Epe(e):n===`ru-RU`?Dpe(e):n===`zh-TW`?Ope(e):kpe(e)}),jpe=()=>`Reverse preview`,Mpe=()=>`Reverse preview`,Npe=()=>`Reverse preview`,Ppe=()=>`Reverse preview`,Fpe=()=>`反向預覽`,Ipe=()=>`反向预览`,Lpe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jpe(e):n===`ja-JP`?Mpe(e):n===`ko-KR`?Npe(e):n===`ru-RU`?Ppe(e):n===`zh-TW`?Fpe(e):Ipe(e)}),Rpe=()=>`Original preview`,zpe=()=>`Original preview`,Bpe=()=>`Original preview`,Vpe=()=>`Original preview`,Hpe=()=>`原始預覽`,Upe=()=>`原始预览`,Wpe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Rpe(e):n===`ja-JP`?zpe(e):n===`ko-KR`?Bpe(e):n===`ru-RU`?Vpe(e):n===`zh-TW`?Hpe(e):Upe(e)}),Gpe=()=>`No forced rates`,Kpe=()=>`No forced rates`,qpe=()=>`No forced rates`,Jpe=()=>`No forced rates`,Ype=()=>`暫無強制匯率`,Xpe=()=>`暂无强制汇率`,Zpe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Gpe(e):n===`ja-JP`?Kpe(e):n===`ko-KR`?qpe(e):n===`ru-RU`?Jpe(e):n===`zh-TW`?Ype(e):Xpe(e)}),Qpe=()=>`Save payment settings`,$pe=()=>`Save payment settings`,eme=()=>`Save payment settings`,tme=()=>`Save payment settings`,nme=()=>`儲存支付配置`,rme=()=>`保存支付配置`,ime=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Qpe(e):n===`ja-JP`?$pe(e):n===`ko-KR`?eme(e):n===`ru-RU`?tme(e):n===`zh-TW`?nme(e):rme(e)}),ame=()=>`Reset to defaults`,ome=()=>`Reset to defaults`,sme=()=>`Reset to defaults`,cme=()=>`Reset to defaults`,lme=()=>`重置為預設值`,ume=()=>`重置为默认值`,dme=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ame(e):n===`ja-JP`?ome(e):n===`ko-KR`?sme(e):n===`ru-RU`?cme(e):n===`zh-TW`?lme(e):ume(e)}),fme=()=>`Configure the default payment token, fiat currency, and network.`,pme=()=>`Configure the default payment token, fiat currency, and network.`,mme=()=>`Configure the default payment token, fiat currency, and network.`,hme=()=>`Configure the default payment token, fiat currency, and network.`,gme=()=>`配置預設收款代幣、法幣與網路。`,_me=()=>`配置默认收款代币、法币与网络。`,vme=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fme(e):n===`ja-JP`?pme(e):n===`ko-KR`?mme(e):n===`ru-RU`?hme(e):n===`zh-TW`?gme(e):_me(e)}),yme=()=>`Payment settings saved`,bme=()=>`Payment settings saved`,xme=()=>`Payment settings saved`,Sme=()=>`Payment settings saved`,Cme=()=>`收款配置已儲存`,wme=()=>`收款配置已保存`,Tme=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yme(e):n===`ja-JP`?bme(e):n===`ko-KR`?xme(e):n===`ru-RU`?Sme(e):n===`zh-TW`?Cme(e):wme(e)}),Eme=()=>`Save payment settings`,Dme=()=>`Save payment settings`,Ome=()=>`Save payment settings`,kme=()=>`Save payment settings`,Ame=()=>`儲存收款配置`,jme=()=>`保存收款配置`,Mme=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Eme(e):n===`ja-JP`?Dme(e):n===`ko-KR`?Ome(e):n===`ru-RU`?kme(e):n===`zh-TW`?Ame(e):jme(e)}),Nme=()=>`Reset to defaults`,Pme=()=>`Reset to defaults`,Fme=()=>`Reset to defaults`,Ime=()=>`Reset to defaults`,Lme=()=>`重置為預設值`,Rme=()=>`重置为默认值`,zme=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Nme(e):n===`ja-JP`?Pme(e):n===`ko-KR`?Fme(e):n===`ru-RU`?Ime(e):n===`zh-TW`?Lme(e):Rme(e)}),Bme=()=>`EPay settings reset to defaults`,Vme=()=>`EPay settings reset to defaults`,Hme=()=>`EPay settings reset to defaults`,Ume=()=>`EPay settings reset to defaults`,Wme=()=>`EPay 配置已重置為預設值`,Gme=()=>`EPay 配置已重置为默认值`,Kme=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Bme(e):n===`ja-JP`?Vme(e):n===`ko-KR`?Hme(e):n===`ru-RU`?Ume(e):n===`zh-TW`?Wme(e):Gme(e)}),qme=()=>`Fill example`,Jme=()=>`Fill example`,Yme=()=>`Fill example`,Xme=()=>`Fill example`,Zme=()=>`填充示例`,Qme=()=>`填充示例`,$me=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qme(e):n===`ja-JP`?Jme(e):n===`ko-KR`?Yme(e):n===`ru-RU`?Xme(e):n===`zh-TW`?Zme(e):Qme(e)}),ehe=()=>`Fullscreen`,the=()=>`Fullscreen`,nhe=()=>`Fullscreen`,rhe=()=>`Fullscreen`,ihe=()=>`全螢幕`,ahe=()=>`全屏`,ohe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ehe(e):n===`ja-JP`?the(e):n===`ko-KR`?nhe(e):n===`ru-RU`?rhe(e):n===`zh-TW`?ihe(e):ahe(e)}),she=()=>`Fullscreen edit`,che=()=>`Fullscreen edit`,lhe=()=>`Fullscreen edit`,uhe=()=>`Fullscreen edit`,dhe=()=>`全螢幕編輯`,fhe=()=>`全屏编辑`,phe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?she(e):n===`ja-JP`?che(e):n===`ko-KR`?lhe(e):n===`ru-RU`?uhe(e):n===`zh-TW`?dhe(e):fhe(e)}),mhe=()=>`Exit fullscreen`,hhe=()=>`Exit fullscreen`,ghe=()=>`Exit fullscreen`,_he=()=>`Exit fullscreen`,vhe=()=>`退出全螢幕`,yhe=()=>`退出全屏`,bhe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mhe(e):n===`ja-JP`?hhe(e):n===`ko-KR`?ghe(e):n===`ru-RU`?_he(e):n===`zh-TW`?vhe(e):yhe(e)}),xhe=()=>`Edit`,She=()=>`Edit`,Che=()=>`Edit`,whe=()=>`Edit`,The=()=>`編輯`,Ehe=()=>`编辑`,Dhe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xhe(e):n===`ja-JP`?She(e):n===`ko-KR`?Che(e):n===`ru-RU`?whe(e):n===`zh-TW`?The(e):Ehe(e)}),Ohe=()=>`Preview`,khe=()=>`Preview`,Ahe=()=>`Preview`,jhe=()=>`Preview`,Mhe=()=>`預覽`,Nhe=()=>`预览`,Phe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Ohe(e):n===`ja-JP`?khe(e):n===`ko-KR`?Ahe(e):n===`ru-RU`?jhe(e):n===`zh-TW`?Mhe(e):Nhe(e)}),Fhe=()=>`Split`,Ihe=()=>`Split`,Lhe=()=>`Split`,Rhe=()=>`Split`,zhe=()=>`分屏`,Bhe=()=>`分屏`,Vhe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Fhe(e):n===`ja-JP`?Ihe(e):n===`ko-KR`?Lhe(e):n===`ru-RU`?Rhe(e):n===`zh-TW`?zhe(e):Bhe(e)}),Hhe=()=>`View help`,Uhe=()=>`View help`,Whe=()=>`View help`,Ghe=()=>`View help`,Khe=()=>`查看說明`,qhe=()=>`查看说明`,Jhe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hhe(e):n===`ja-JP`?Uhe(e):n===`ko-KR`?Whe(e):n===`ru-RU`?Ghe(e):n===`zh-TW`?Khe(e):qhe(e)}),Yhe=()=>`Help`,Xhe=()=>`Help`,Zhe=()=>`Help`,Qhe=()=>`Help`,$he=()=>`說明`,ege=()=>`说明`,tge=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yhe(e):n===`ja-JP`?Xhe(e):n===`ko-KR`?Zhe(e):n===`ru-RU`?Qhe(e):n===`zh-TW`?$he(e):ege(e)}),nge=()=>`HTML preview`,rge=()=>`HTML preview`,ige=()=>`HTML preview`,age=()=>`HTML preview`,oge=()=>`HTML 預覽`,sge=()=>`HTML 预览`,cge=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nge(e):n===`ja-JP`?rge(e):n===`ko-KR`?ige(e):n===`ru-RU`?age(e):n===`zh-TW`?oge(e):sge(e)}),lge=()=>`Appearance`,uge=()=>`Appearance`,dge=()=>`Appearance`,fge=()=>`Appearance`,pge=()=>`外觀`,mge=()=>`外观`,hge=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lge(e):n===`ja-JP`?uge(e):n===`ko-KR`?dge(e):n===`ru-RU`?fge(e):n===`zh-TW`?pge(e):mge(e)}),gge=()=>`Customize the app appearance and switch between light and dark themes.`,_ge=()=>`Customize the app appearance and switch between light and dark themes.`,vge=()=>`Customize the app appearance and switch between light and dark themes.`,yge=()=>`Customize the app appearance and switch between light and dark themes.`,bge=()=>`自定義應用外觀,可在淺色與深色主題之間切換。`,xge=()=>`自定义应用外观,可在浅色与深色主题之间切换。`,Sge=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gge(e):n===`ja-JP`?_ge(e):n===`ko-KR`?vge(e):n===`ru-RU`?yge(e):n===`zh-TW`?bge(e):xge(e)}),Cge=()=>`Font`,wge=()=>`Font`,Tge=()=>`Font`,Ege=()=>`Font`,Dge=()=>`字型`,Oge=()=>`字体`,kge=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Cge(e):n===`ja-JP`?wge(e):n===`ko-KR`?Tge(e):n===`ru-RU`?Ege(e):n===`zh-TW`?Dge(e):Oge(e)}),Age=()=>`Set the font you want to use in the dashboard.`,jge=()=>`Set the font you want to use in the dashboard.`,Mge=()=>`Set the font you want to use in the dashboard.`,Nge=()=>`Set the font you want to use in the dashboard.`,Pge=()=>`設定你希望在控制台中使用的字型。`,Fge=()=>`设置你希望在控制台中使用的字体。`,Ige=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Age(e):n===`ja-JP`?jge(e):n===`ko-KR`?Mge(e):n===`ru-RU`?Nge(e):n===`zh-TW`?Pge(e):Fge(e)}),Lge=()=>`Theme`,Rge=()=>`Theme`,zge=()=>`Theme`,Bge=()=>`Theme`,Vge=()=>`主題`,Hge=()=>`主题`,Uge=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Lge(e):n===`ja-JP`?Rge(e):n===`ko-KR`?zge(e):n===`ru-RU`?Bge(e):n===`zh-TW`?Vge(e):Hge(e)}),Wge=()=>`Select the theme for the dashboard.`,Gge=()=>`Select the theme for the dashboard.`,Kge=()=>`Select the theme for the dashboard.`,qge=()=>`Select the theme for the dashboard.`,Jge=()=>`選擇控制台的主題。`,Yge=()=>`选择控制台的主题。`,Xge=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Wge(e):n===`ja-JP`?Gge(e):n===`ko-KR`?Kge(e):n===`ru-RU`?qge(e):n===`zh-TW`?Jge(e):Yge(e)}),Zge=()=>`Update preferences`,Qge=()=>`Update preferences`,$ge=()=>`Update preferences`,e_e=()=>`Update preferences`,t_e=()=>`更新偏好設定`,n_e=()=>`更新偏好设置`,r_e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Zge(e):n===`ja-JP`?Qge(e):n===`ko-KR`?$ge(e):n===`ru-RU`?e_e(e):n===`zh-TW`?t_e(e):n_e(e)}),i_e=()=>`Display`,a_e=()=>`Display`,o_e=()=>`Display`,s_e=()=>`Display`,c_e=()=>`顯示`,l_e=()=>`显示`,u_e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?i_e(e):n===`ja-JP`?a_e(e):n===`ko-KR`?o_e(e):n===`ru-RU`?s_e(e):n===`zh-TW`?c_e(e):l_e(e)}),d_e=()=>`Turn items on or off to control what is displayed in the app.`,f_e=()=>`Turn items on or off to control what is displayed in the app.`,p_e=()=>`Turn items on or off to control what is displayed in the app.`,m_e=()=>`Turn items on or off to control what is displayed in the app.`,h_e=()=>`開關各項內容,控制應用中展示的資訊。`,g_e=()=>`开关各项内容,控制应用中展示的信息。`,__e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?d_e(e):n===`ja-JP`?f_e(e):n===`ko-KR`?p_e(e):n===`ru-RU`?m_e(e):n===`zh-TW`?h_e(e):g_e(e)}),v_e=()=>`Recents`,y_e=()=>`Recents`,b_e=()=>`Recents`,x_e=()=>`Recents`,S_e=()=>`最近專案`,C_e=()=>`最近专案`,w_e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?v_e(e):n===`ja-JP`?y_e(e):n===`ko-KR`?b_e(e):n===`ru-RU`?x_e(e):n===`zh-TW`?S_e(e):C_e(e)}),T_e=()=>`Home`,E_e=()=>`Home`,D_e=()=>`Home`,O_e=()=>`Home`,k_e=()=>`主頁`,A_e=()=>`主页`,j_e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?T_e(e):n===`ja-JP`?E_e(e):n===`ko-KR`?D_e(e):n===`ru-RU`?O_e(e):n===`zh-TW`?k_e(e):A_e(e)}),M_e=()=>`Applications`,N_e=()=>`Applications`,P_e=()=>`Applications`,F_e=()=>`Applications`,I_e=()=>`應用`,L_e=()=>`应用`,R_e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?M_e(e):n===`ja-JP`?N_e(e):n===`ko-KR`?P_e(e):n===`ru-RU`?F_e(e):n===`zh-TW`?I_e(e):L_e(e)}),z_e=()=>`Desktop`,B_e=()=>`Desktop`,V_e=()=>`Desktop`,H_e=()=>`Desktop`,U_e=()=>`桌面`,W_e=()=>`桌面`,G_e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?z_e(e):n===`ja-JP`?B_e(e):n===`ko-KR`?V_e(e):n===`ru-RU`?H_e(e):n===`zh-TW`?U_e(e):W_e(e)}),K_e=()=>`Downloads`,q_e=()=>`Downloads`,J_e=()=>`Downloads`,Y_e=()=>`Downloads`,X_e=()=>`下載`,Z_e=()=>`下载`,Q_e=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?K_e(e):n===`ja-JP`?q_e(e):n===`ko-KR`?J_e(e):n===`ru-RU`?Y_e(e):n===`zh-TW`?X_e(e):Z_e(e)}),$_e=()=>`Documents`,eve=()=>`Documents`,tve=()=>`Documents`,nve=()=>`Documents`,rve=()=>`文件`,ive=()=>`文件`,ave=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$_e(e):n===`ja-JP`?eve(e):n===`ko-KR`?tve(e):n===`ru-RU`?nve(e):n===`zh-TW`?rve(e):ive(e)}),ove=()=>`You have to select at least one item.`,sve=()=>`You have to select at least one item.`,cve=()=>`You have to select at least one item.`,lve=()=>`You have to select at least one item.`,uve=()=>`至少選擇一個專案。`,dve=()=>`至少选择一个专案。`,fve=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ove(e):n===`ja-JP`?sve(e):n===`ko-KR`?cve(e):n===`ru-RU`?lve(e):n===`zh-TW`?uve(e):dve(e)}),pve=()=>`Sidebar`,mve=()=>`Sidebar`,hve=()=>`Sidebar`,gve=()=>`Sidebar`,_ve=()=>`側邊欄`,vve=()=>`侧边栏`,yve=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pve(e):n===`ja-JP`?mve(e):n===`ko-KR`?hve(e):n===`ru-RU`?gve(e):n===`zh-TW`?_ve(e):vve(e)}),bve=()=>`Select the items you want to display in the sidebar.`,xve=()=>`Select the items you want to display in the sidebar.`,Sve=()=>`Select the items you want to display in the sidebar.`,Cve=()=>`Select the items you want to display in the sidebar.`,wve=()=>`選擇你希望在側邊欄中顯示的專案。`,Tve=()=>`选择你希望在侧边栏中显示的项目。`,Eve=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bve(e):n===`ja-JP`?xve(e):n===`ko-KR`?Sve(e):n===`ru-RU`?Cve(e):n===`zh-TW`?wve(e):Tve(e)}),Dve=()=>`Update display`,Ove=()=>`Update display`,kve=()=>`Update display`,Ave=()=>`Update display`,jve=()=>`更新顯示設定`,Mve=()=>`更新显示设置`,Nve=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Dve(e):n===`ja-JP`?Ove(e):n===`ko-KR`?kve(e):n===`ru-RU`?Ave(e):n===`zh-TW`?jve(e):Mve(e)}),Pve=()=>`Notifications`,Fve=()=>`Notifications`,Ive=()=>`Notifications`,Lve=()=>`Notifications`,Rve=()=>`通知`,zve=()=>`通知`,Bve=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Pve(e):n===`ja-JP`?Fve(e):n===`ko-KR`?Ive(e):n===`ru-RU`?Lve(e):n===`zh-TW`?Rve(e):zve(e)}),Vve=()=>`Configure how you receive notifications.`,Hve=()=>`Configure how you receive notifications.`,Uve=()=>`Configure how you receive notifications.`,Wve=()=>`Configure how you receive notifications.`,Gve=()=>`配置你接收通知的方式。`,Kve=()=>`配置你接收通知的方式。`,qve=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Vve(e):n===`ja-JP`?Hve(e):n===`ko-KR`?Uve(e):n===`ru-RU`?Wve(e):n===`zh-TW`?Gve(e):Kve(e)}),Jve=()=>`Please select a notification type.`,Yve=()=>`Please select a notification type.`,Xve=()=>`Please select a notification type.`,Zve=()=>`Please select a notification type.`,Qve=()=>`請選擇通知型別。`,$ve=()=>`请选择通知类型。`,eye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Jve(e):n===`ja-JP`?Yve(e):n===`ko-KR`?Xve(e):n===`ru-RU`?Zve(e):n===`zh-TW`?Qve(e):$ve(e)}),tye=()=>`Notify me about...`,nye=()=>`Notify me about...`,rye=()=>`Notify me about...`,iye=()=>`Notify me about...`,aye=()=>`通知我關於……`,oye=()=>`通知我关于……`,sye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tye(e):n===`ja-JP`?nye(e):n===`ko-KR`?rye(e):n===`ru-RU`?iye(e):n===`zh-TW`?aye(e):oye(e)}),cye=()=>`All new messages`,lye=()=>`All new messages`,uye=()=>`All new messages`,dye=()=>`All new messages`,fye=()=>`所有新訊息`,pye=()=>`所有新讯息`,mye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cye(e):n===`ja-JP`?lye(e):n===`ko-KR`?uye(e):n===`ru-RU`?dye(e):n===`zh-TW`?fye(e):pye(e)}),hye=()=>`Direct messages and mentions`,gye=()=>`Direct messages and mentions`,_ye=()=>`Direct messages and mentions`,vye=()=>`Direct messages and mentions`,yye=()=>`私信和提及`,bye=()=>`私信和提及`,xye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hye(e):n===`ja-JP`?gye(e):n===`ko-KR`?_ye(e):n===`ru-RU`?vye(e):n===`zh-TW`?yye(e):bye(e)}),Sye=()=>`Nothing`,Cye=()=>`Nothing`,wye=()=>`Nothing`,Tye=()=>`Nothing`,Eye=()=>`不接收通知`,Dye=()=>`不接收通知`,Oye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Sye(e):n===`ja-JP`?Cye(e):n===`ko-KR`?wye(e):n===`ru-RU`?Tye(e):n===`zh-TW`?Eye(e):Dye(e)}),kye=()=>`Email Notifications`,Aye=()=>`Email Notifications`,jye=()=>`Email Notifications`,Mye=()=>`Email Notifications`,Nye=()=>`郵件通知`,Pye=()=>`邮件通知`,Fye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kye(e):n===`ja-JP`?Aye(e):n===`ko-KR`?jye(e):n===`ru-RU`?Mye(e):n===`zh-TW`?Nye(e):Pye(e)}),Iye=()=>`Communication emails`,Lye=()=>`Communication emails`,Rye=()=>`Communication emails`,zye=()=>`Communication emails`,Bye=()=>`通訊郵件`,Vye=()=>`通讯邮件`,Hye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Iye(e):n===`ja-JP`?Lye(e):n===`ko-KR`?Rye(e):n===`ru-RU`?zye(e):n===`zh-TW`?Bye(e):Vye(e)}),Uye=()=>`Receive emails about your account activity.`,Wye=()=>`Receive emails about your account activity.`,Gye=()=>`Receive emails about your account activity.`,Kye=()=>`Receive emails about your account activity.`,qye=()=>`接收與你賬戶活動相關的郵件。`,Jye=()=>`接收与你账户活动相关的邮件。`,Yye=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Uye(e):n===`ja-JP`?Wye(e):n===`ko-KR`?Gye(e):n===`ru-RU`?Kye(e):n===`zh-TW`?qye(e):Jye(e)}),Xye=()=>`Marketing emails`,Zye=()=>`Marketing emails`,Qye=()=>`Marketing emails`,$ye=()=>`Marketing emails`,ebe=()=>`營銷郵件`,tbe=()=>`营销邮件`,nbe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Xye(e):n===`ja-JP`?Zye(e):n===`ko-KR`?Qye(e):n===`ru-RU`?$ye(e):n===`zh-TW`?ebe(e):tbe(e)}),rbe=()=>`Receive emails about new products, features, and more.`,ibe=()=>`Receive emails about new products, features, and more.`,abe=()=>`Receive emails about new products, features, and more.`,obe=()=>`Receive emails about new products, features, and more.`,sbe=()=>`接收有關新產品、新功能等內容的郵件。`,cbe=()=>`接收有关新产品、新功能等内容的邮件。`,lbe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rbe(e):n===`ja-JP`?ibe(e):n===`ko-KR`?abe(e):n===`ru-RU`?obe(e):n===`zh-TW`?sbe(e):cbe(e)}),ube=()=>`Social emails`,dbe=()=>`Social emails`,fbe=()=>`Social emails`,pbe=()=>`Social emails`,mbe=()=>`社交郵件`,hbe=()=>`社交邮件`,gbe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ube(e):n===`ja-JP`?dbe(e):n===`ko-KR`?fbe(e):n===`ru-RU`?pbe(e):n===`zh-TW`?mbe(e):hbe(e)}),_be=()=>`Receive emails for friend requests, follows, and more.`,vbe=()=>`Receive emails for friend requests, follows, and more.`,ybe=()=>`Receive emails for friend requests, follows, and more.`,bbe=()=>`Receive emails for friend requests, follows, and more.`,xbe=()=>`接收好友請求、關注等社交郵件。`,Sbe=()=>`接收好友请求、关注等社交邮件。`,Cbe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_be(e):n===`ja-JP`?vbe(e):n===`ko-KR`?ybe(e):n===`ru-RU`?bbe(e):n===`zh-TW`?xbe(e):Sbe(e)}),wbe=()=>`Security emails`,Tbe=()=>`Security emails`,Ebe=()=>`Security emails`,Dbe=()=>`Security emails`,Obe=()=>`安全郵件`,kbe=()=>`安全邮件`,Abe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wbe(e):n===`ja-JP`?Tbe(e):n===`ko-KR`?Ebe(e):n===`ru-RU`?Dbe(e):n===`zh-TW`?Obe(e):kbe(e)}),jbe=()=>`Receive emails about your account activity and security.`,Mbe=()=>`Receive emails about your account activity and security.`,Nbe=()=>`Receive emails about your account activity and security.`,Pbe=()=>`Receive emails about your account activity and security.`,Fbe=()=>`接收與你賬戶活動和安全相關的郵件。`,Ibe=()=>`接收与你账户活动和安全相关的邮件。`,Lbe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jbe(e):n===`ja-JP`?Mbe(e):n===`ko-KR`?Nbe(e):n===`ru-RU`?Pbe(e):n===`zh-TW`?Fbe(e):Ibe(e)}),Rbe=()=>`Use different settings for my mobile devices`,zbe=()=>`Use different settings for my mobile devices`,Bbe=()=>`Use different settings for my mobile devices`,Vbe=()=>`Use different settings for my mobile devices`,Hbe=()=>`我的移動裝置使用不同的通知設定`,Ube=()=>`我的移动装置使用不同的通知设置`,Wbe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Rbe(e):n===`ja-JP`?zbe(e):n===`ko-KR`?Bbe(e):n===`ru-RU`?Vbe(e):n===`zh-TW`?Hbe(e):Ube(e)}),Gbe=()=>`You can manage your mobile notifications in the`,Kbe=()=>`You can manage your mobile notifications in the`,qbe=()=>`You can manage your mobile notifications in the`,Jbe=()=>`You can manage your mobile notifications in the`,Ybe=()=>`你可以在`,Xbe=()=>`你可以在`,Zbe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Gbe(e):n===`ja-JP`?Kbe(e):n===`ko-KR`?qbe(e):n===`ru-RU`?Jbe(e):n===`zh-TW`?Ybe(e):Xbe(e)}),Qbe=()=>`mobile settings`,$be=()=>`mobile settings`,exe=()=>`mobile settings`,txe=()=>`mobile settings`,nxe=()=>`移動端設定`,rxe=()=>`移动端设置`,ixe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Qbe(e):n===`ja-JP`?$be(e):n===`ko-KR`?exe(e):n===`ru-RU`?txe(e):n===`zh-TW`?nxe(e):rxe(e)}),axe=()=>`page.`,oxe=()=>`page.`,sxe=()=>`page.`,cxe=()=>`page.`,lxe=()=>`頁面中管理移動通知。`,uxe=()=>`在在页面中管理移动通知。`,dxe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?axe(e):n===`ja-JP`?oxe(e):n===`ko-KR`?sxe(e):n===`ru-RU`?cxe(e):n===`zh-TW`?lxe(e):uxe(e)}),fxe=()=>`Update notifications`,pxe=()=>`Update notifications`,mxe=()=>`Update notifications`,hxe=()=>`Update notifications`,gxe=()=>`更新通知設定`,_xe=()=>`更新通知设置`,vxe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fxe(e):n===`ja-JP`?pxe(e):n===`ko-KR`?mxe(e):n===`ru-RU`?hxe(e):n===`zh-TW`?gxe(e):_xe(e)}),yxe=()=>`Select a settings page`,bxe=()=>`Select a settings page`,xxe=()=>`Select a settings page`,Sxe=()=>`Select a settings page`,Cxe=()=>`選擇配置項`,wxe=()=>`选择配置项`,Txe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yxe(e):n===`ja-JP`?bxe(e):n===`ko-KR`?xxe(e):n===`ru-RU`?Sxe(e):n===`zh-TW`?Cxe(e):wxe(e)}),Exe=()=>`Saved successfully`,Dxe=()=>`Saved successfully`,Oxe=()=>`Saved successfully`,kxe=()=>`Saved successfully`,Axe=()=>`儲存成功`,jxe=()=>`保存成功`,Mxe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Exe(e):n===`ja-JP`?Dxe(e):n===`ko-KR`?Oxe(e):n===`ru-RU`?kxe(e):n===`zh-TW`?Axe(e):jxe(e)}),Nxe=e=>`Failed to save ${e?.key}: ${e?.error}`,Pxe=e=>`Failed to save ${e?.key}: ${e?.error}`,Fxe=e=>`Failed to save ${e?.key}: ${e?.error}`,Ixe=e=>`Failed to save ${e?.key}: ${e?.error}`,Lxe=e=>`${e?.key} 儲存失敗:${e?.error}`,Rxe=e=>`${e?.key} 保存失败:${e?.error}`,zxe=((e,t={})=>{let n=t.locale??m();return n===`en-US`?Nxe(e):n===`ja-JP`?Pxe(e):n===`ko-KR`?Fxe(e):n===`ru-RU`?Ixe(e):n===`zh-TW`?Lxe(e):Rxe(e)}),Bxe=()=>`Access Forbidden`,Vxe=()=>`Access Forbidden`,Hxe=()=>`Access Forbidden`,Uxe=()=>`Access Forbidden`,Wxe=()=>`禁止訪問`,Gxe=()=>`禁止访问`,Kxe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Bxe(e):n===`ja-JP`?Vxe(e):n===`ko-KR`?Hxe(e):n===`ru-RU`?Uxe(e):n===`zh-TW`?Wxe(e):Gxe(e)}),qxe=()=>`You do not have permission to access this resource.`,Jxe=()=>`You do not have permission to access this resource.`,Yxe=()=>`You do not have permission to access this resource.`,Xxe=()=>`You do not have permission to access this resource.`,Zxe=()=>`你沒有訪問此資源所需的許可權。`,Qxe=()=>`你没有访问此资源所需的许可权。`,$xe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qxe(e):n===`ja-JP`?Jxe(e):n===`ko-KR`?Yxe(e):n===`ru-RU`?Xxe(e):n===`zh-TW`?Zxe(e):Qxe(e)}),eSe=()=>`Please contact your administrator for access.`,tSe=()=>`Please contact your administrator for access.`,nSe=()=>`Please contact your administrator for access.`,rSe=()=>`Please contact your administrator for access.`,iSe=()=>`請聯絡管理員以取得存取權限。`,aSe=()=>`请联络管理员以获取存取权限。`,oSe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?eSe(e):n===`ja-JP`?tSe(e):n===`ko-KR`?nSe(e):n===`ru-RU`?rSe(e):n===`zh-TW`?iSe(e):aSe(e)}),sSe=()=>`Website is under maintenance!`,cSe=()=>`Website is under maintenance!`,lSe=()=>`Website is under maintenance!`,uSe=()=>`Website is under maintenance!`,dSe=()=>`網站維護中!`,fSe=()=>`网站维护中!`,pSe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?sSe(e):n===`ja-JP`?cSe(e):n===`ko-KR`?lSe(e):n===`ru-RU`?uSe(e):n===`zh-TW`?dSe(e):fSe(e)}),mSe=()=>`The site is not available at the moment.`,hSe=()=>`The site is not available at the moment.`,gSe=()=>`The site is not available at the moment.`,_Se=()=>`The site is not available at the moment.`,vSe=()=>`站點當前暫不可用。`,ySe=()=>`站点当前暂不可用。`,bSe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mSe(e):n===`ja-JP`?hSe(e):n===`ko-KR`?gSe(e):n===`ru-RU`?_Se(e):n===`zh-TW`?vSe(e):ySe(e)}),xSe=()=>`We will be back online shortly.`,SSe=()=>`We will be back online shortly.`,CSe=()=>`We will be back online shortly.`,wSe=()=>`We will be back online shortly.`,TSe=()=>`我們會盡快恢復服務。`,ESe=()=>`我们会尽快恢复服务。`,DSe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xSe(e):n===`ja-JP`?SSe(e):n===`ko-KR`?CSe(e):n===`ru-RU`?wSe(e):n===`zh-TW`?TSe(e):ESe(e)}),OSe=()=>`Unauthorized Access`,kSe=()=>`Unauthorized Access`,ASe=()=>`Unauthorized Access`,jSe=()=>`Unauthorized Access`,MSe=()=>`未授權訪問`,NSe=()=>`未授权访问`,PSe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?OSe(e):n===`ja-JP`?kSe(e):n===`ko-KR`?ASe(e):n===`ru-RU`?jSe(e):n===`zh-TW`?MSe(e):NSe(e)}),FSe=()=>`Please log in with the appropriate credentials.`,ISe=()=>`Please log in with the appropriate credentials.`,LSe=()=>`Please log in with the appropriate credentials.`,RSe=()=>`Please log in with the appropriate credentials.`,zSe=()=>`請使用正確的憑證登入。`,BSe=()=>`请使用正确的凭证登录。`,VSe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?FSe(e):n===`ja-JP`?ISe(e):n===`ko-KR`?LSe(e):n===`ru-RU`?RSe(e):n===`zh-TW`?zSe(e):BSe(e)}),HSe=()=>`Once signed in, you can access this resource.`,USe=()=>`Once signed in, you can access this resource.`,WSe=()=>`Once signed in, you can access this resource.`,GSe=()=>`Once signed in, you can access this resource.`,KSe=()=>`登入後即可訪問此資源。`,qSe=()=>`登录后即可访问此资源。`,JSe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?HSe(e):n===`ja-JP`?USe(e):n===`ko-KR`?WSe(e):n===`ru-RU`?GSe(e):n===`zh-TW`?KSe(e):qSe(e)}),YSe=()=>`User`,XSe=()=>`User`,ZSe=()=>`User`,QSe=()=>`User`,$Se=()=>`使用者`,eCe=()=>`用户`,tCe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?YSe(e):n===`ja-JP`?XSe(e):n===`ko-KR`?ZSe(e):n===`ru-RU`?QSe(e):n===`zh-TW`?$Se(e):eCe(e)}),nCe=()=>`Font`,rCe=()=>`Font`,iCe=()=>`Font`,aCe=()=>`Font`,oCe=()=>`字型`,sCe=()=>`字体`,cCe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nCe(e):n===`ja-JP`?rCe(e):n===`ko-KR`?iCe(e):n===`ru-RU`?aCe(e):n===`zh-TW`?oCe(e):sCe(e)}),lCe=()=>`Secure Payments, Fully in Control`,uCe=()=>`Secure Payments, Fully in Control`,dCe=()=>`Secure Payments, Fully in Control`,fCe=()=>`Secure Payments, Fully in Control`,pCe=()=>`安全收付,盡在掌握`,mCe=()=>`安全收付,尽在掌握`,hCe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lCe(e):n===`ja-JP`?uCe(e):n===`ko-KR`?dCe(e):n===`ru-RU`?fCe(e):n===`zh-TW`?pCe(e):mCe(e)}),gCe=()=>`Multi-chain USDT collection, real-time callbacks, and smart settlement — reliable payment infrastructure for your business.`,_Ce=()=>`Multi-chain USDT collection, real-time callbacks, and smart settlement — reliable payment infrastructure for your business.`,vCe=()=>`Multi-chain USDT collection, real-time callbacks, and smart settlement — reliable payment infrastructure for your business.`,yCe=()=>`Multi-chain USDT collection, real-time callbacks, and smart settlement — reliable payment infrastructure for your business.`,bCe=()=>`多鏈 USDT 自動收款、即時回呼、智能結算,為您的業務提供穩定可靠的支付基礎設施。`,xCe=()=>`多链 USDT 自动收款、实时回调、智能结算,为您的业务提供稳定可靠的支付基础设施。`,SCe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gCe(e):n===`ja-JP`?_Ce(e):n===`ko-KR`?vCe(e):n===`ru-RU`?yCe(e):n===`zh-TW`?bCe(e):xCe(e)}),CCe=()=>`Pending`,wCe=()=>`Pending`,TCe=()=>`Pending`,ECe=()=>`Pending`,DCe=()=>`待付款`,OCe=()=>`待付款`,kCe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?CCe(e):n===`ja-JP`?wCe(e):n===`ko-KR`?TCe(e):n===`ru-RU`?ECe(e):n===`zh-TW`?DCe(e):OCe(e)}),ACe=()=>`Paid`,jCe=()=>`Paid`,MCe=()=>`Paid`,NCe=()=>`Paid`,PCe=()=>`已付款`,FCe=()=>`已付款`,ICe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ACe(e):n===`ja-JP`?jCe(e):n===`ko-KR`?MCe(e):n===`ru-RU`?NCe(e):n===`zh-TW`?PCe(e):FCe(e)}),LCe=()=>`Expired`,RCe=()=>`Expired`,zCe=()=>`Expired`,BCe=()=>`Expired`,VCe=()=>`已過期`,HCe=()=>`已过期`,UCe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?LCe(e):n===`ja-JP`?RCe(e):n===`ko-KR`?zCe(e):n===`ru-RU`?BCe(e):n===`zh-TW`?VCe(e):HCe(e)}),WCe=()=>`Selecting asset`,GCe=()=>`Selecting asset`,KCe=()=>`Selecting asset`,qCe=()=>`Selecting asset`,JCe=()=>`待選擇資產`,YCe=()=>`待选择资产`,XCe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?WCe(e):n===`ja-JP`?GCe(e):n===`ko-KR`?KCe(e):n===`ru-RU`?qCe(e):n===`zh-TW`?JCe(e):YCe(e)}),ZCe=()=>`Active`,QCe=()=>`Active`,$Ce=()=>`Active`,ewe=()=>`Active`,twe=()=>`啟用中`,nwe=()=>`启用中`,rwe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ZCe(e):n===`ja-JP`?QCe(e):n===`ko-KR`?$Ce(e):n===`ru-RU`?ewe(e):n===`zh-TW`?twe(e):nwe(e)}),iwe=()=>`Disabled`,awe=()=>`Disabled`,owe=()=>`Disabled`,swe=()=>`Disabled`,cwe=()=>`已停用`,lwe=()=>`已禁用`,uwe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?iwe(e):n===`ja-JP`?awe(e):n===`ko-KR`?owe(e):n===`ru-RU`?swe(e):n===`zh-TW`?cwe(e):lwe(e)}),dwe=()=>`Monitoring`,fwe=()=>`Monitoring`,pwe=()=>`Monitoring`,mwe=()=>`Monitoring`,hwe=()=>`監控中`,gwe=()=>`监控中`,_we=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dwe(e):n===`ja-JP`?fwe(e):n===`ko-KR`?pwe(e):n===`ru-RU`?mwe(e):n===`zh-TW`?hwe(e):gwe(e)}),vwe=()=>`Active`,ywe=()=>`Active`,bwe=()=>`Active`,xwe=()=>`Active`,Swe=()=>`啟用中`,Cwe=()=>`启用中`,wwe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vwe(e):n===`ja-JP`?ywe(e):n===`ko-KR`?bwe(e):n===`ru-RU`?xwe(e):n===`zh-TW`?Swe(e):Cwe(e)}),Twe=()=>`Disabled`,Ewe=()=>`Disabled`,Dwe=()=>`Disabled`,Owe=()=>`Disabled`,kwe=()=>`已停用`,Awe=()=>`已禁用`,jwe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Twe(e):n===`ja-JP`?Ewe(e):n===`ko-KR`?Dwe(e):n===`ru-RU`?Owe(e):n===`zh-TW`?kwe(e):Awe(e)}),Mwe=()=>`No data`,Nwe=()=>`No data`,Pwe=()=>`No data`,Fwe=()=>`No data`,Iwe=()=>`暫無資料`,Lwe=()=>`暂无数据`,Rwe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Mwe(e):n===`ja-JP`?Nwe(e):n===`ko-KR`?Pwe(e):n===`ru-RU`?Fwe(e):n===`zh-TW`?Iwe(e):Lwe(e)}),zwe=()=>`Signing out…`,Bwe=()=>`Signing out…`,Vwe=()=>`Signing out…`,Hwe=()=>`Signing out…`,Uwe=()=>`登出中…`,Wwe=()=>`登出中…`,Gwe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zwe(e):n===`ja-JP`?Bwe(e):n===`ko-KR`?Vwe(e):n===`ru-RU`?Hwe(e):n===`zh-TW`?Uwe(e):Wwe(e)}),Kwe=()=>`Secure, high-performance USDT payment middleware`,qwe=()=>`Secure, high-performance USDT payment middleware`,Jwe=()=>`Secure, high-performance USDT payment middleware`,Ywe=()=>`Secure, high-performance USDT payment middleware`,Xwe=()=>`安全、高效的 USDT 支付中介軟體`,Zwe=()=>`安全、高效的 USDT 支付中介软件`,Qwe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Kwe(e):n===`ja-JP`?qwe(e):n===`ko-KR`?Jwe(e):n===`ru-RU`?Ywe(e):n===`zh-TW`?Xwe(e):Zwe(e)}),$we=()=>`Amount to pay`,eTe=()=>`支払金額`,tTe=()=>`결제 금액`,nTe=()=>`Сумма к оплате`,rTe=()=>`應付金額`,iTe=()=>`应付金额`,aTe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$we(e):n===`ja-JP`?eTe(e):n===`ko-KR`?tTe(e):n===`ru-RU`?nTe(e):n===`zh-TW`?rTe(e):iTe(e)}),oTe=()=>`Back`,sTe=()=>`戻る`,cTe=()=>`뒤로`,lTe=()=>`Назад`,uTe=()=>`返回`,dTe=()=>`返回`,fTe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?oTe(e):n===`ja-JP`?sTe(e):n===`ko-KR`?cTe(e):n===`ru-RU`?lTe(e):n===`zh-TW`?uTe(e):dTe(e)}),pTe=()=>`Waiting for confirmation`,mTe=()=>`入金確認を待機中`,hTe=()=>`입금 확인 대기 중`,gTe=()=>`Ожидание подтверждения`,_Te=()=>`等待到賬確認`,vTe=()=>`等待到账确认`,yTe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pTe(e):n===`ja-JP`?mTe(e):n===`ko-KR`?hTe(e):n===`ru-RU`?gTe(e):n===`zh-TW`?_Te(e):vTe(e)}),bTe=()=>`Confirm payment`,xTe=()=>`支払いを確認`,STe=()=>`결제 확인`,CTe=()=>`Подтвердить оплату`,wTe=()=>`確認支付`,TTe=()=>`确认支付`,ETe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bTe(e):n===`ja-JP`?xTe(e):n===`ko-KR`?STe(e):n===`ru-RU`?CTe(e):n===`zh-TW`?wTe(e):TTe(e)}),DTe=()=>`Copied`,OTe=()=>`コピーしました`,kTe=()=>`복사됨`,ATe=()=>`Скопировано`,jTe=()=>`已複製`,MTe=()=>`已复制`,NTe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?DTe(e):n===`ja-JP`?OTe(e):n===`ko-KR`?kTe(e):n===`ru-RU`?ATe(e):n===`zh-TW`?jTe(e):MTe(e)}),PTe=()=>`Currency`,FTe=()=>`通貨`,ITe=()=>`통화`,LTe=()=>`Валюта`,RTe=()=>`幣種`,zTe=()=>`币种`,BTe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?PTe(e):n===`ja-JP`?FTe(e):n===`ko-KR`?ITe(e):n===`ru-RU`?LTe(e):n===`zh-TW`?RTe(e):zTe(e)}),VTe=()=>`Customer Service`,HTe=()=>`カスタマーサポート`,UTe=()=>`고객센터`,WTe=()=>`Поддержка`,GTe=()=>`客服`,KTe=()=>`客服`,qTe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?VTe(e):n===`ja-JP`?HTe(e):n===`ko-KR`?UTe(e):n===`ru-RU`?WTe(e):n===`zh-TW`?GTe(e):KTe(e)}),JTe=()=>`Payment Expired`,YTe=()=>`支払い期限切れ`,XTe=()=>`결제 만료`,ZTe=()=>`Платеж истек`,QTe=()=>`支付已過期`,$Te=()=>`支付已过期`,eEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?JTe(e):n===`ja-JP`?YTe(e):n===`ko-KR`?XTe(e):n===`ru-RU`?ZTe(e):n===`zh-TW`?QTe(e):$Te(e)}),tEe=()=>`Please initiate a new payment`,nEe=()=>`新しい支払いを開始してください`,rEe=()=>`새 결제를 시작하세요`,iEe=()=>`Создайте новый платеж`,aEe=()=>`請重新發起支付`,oEe=()=>`请重新发起支付`,sEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tEe(e):n===`ja-JP`?nEe(e):n===`ko-KR`?rEe(e):n===`ru-RU`?iEe(e):n===`zh-TW`?aEe(e):oEe(e)}),cEe=()=>`Loading payment`,lEe=()=>`支払い情報を読み込み中`,uEe=()=>`결제 정보 불러오는 중`,dEe=()=>`Загрузка платежа`,fEe=()=>`正在載入支付資訊`,pEe=()=>`正在加载支付信息`,mEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?cEe(e):n===`ja-JP`?lEe(e):n===`ko-KR`?uEe(e):n===`ru-RU`?dEe(e):n===`zh-TW`?fEe(e):pEe(e)}),hEe=()=>`Network`,gEe=()=>`ネットワーク`,_Ee=()=>`네트워크`,vEe=()=>`Сеть`,yEe=()=>`網絡`,bEe=()=>`网络`,xEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?hEe(e):n===`ja-JP`?gEe(e):n===`ko-KR`?_Ee(e):n===`ru-RU`?vEe(e):n===`zh-TW`?yEe(e):bEe(e)}),SEe=()=>`Order Not Found`,CEe=()=>`注文が見つかりません`,wEe=()=>`주문 없음`,TEe=()=>`Заказ не найден`,EEe=()=>`訂單不存在`,DEe=()=>`订单不存在`,OEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?SEe(e):n===`ja-JP`?CEe(e):n===`ko-KR`?wEe(e):n===`ru-RU`?TEe(e):n===`zh-TW`?EEe(e):DEe(e)}),kEe=()=>`The order does not exist or has already expired`,AEe=()=>`注文が存在しないか期限切れです`,jEe=()=>`주문이 없거나 이미 만료되었습니다`,MEe=()=>`Заказ не существует или уже истек`,NEe=()=>`訂單不存在或已過期`,PEe=()=>`订单不存在或已经过期`,FEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?kEe(e):n===`ja-JP`?AEe(e):n===`ko-KR`?jEe(e):n===`ru-RU`?MEe(e):n===`zh-TW`?NEe(e):PEe(e)}),IEe=()=>`Order amount`,LEe=()=>`注文金額`,REe=()=>`주문 금액`,zEe=()=>`Сумма заказа`,BEe=()=>`訂單金額`,VEe=()=>`订单金额`,HEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?IEe(e):n===`ja-JP`?LEe(e):n===`ko-KR`?REe(e):n===`ru-RU`?zEe(e):n===`zh-TW`?BEe(e):VEe(e)}),UEe=()=>`Order ID`,WEe=()=>`注文ID`,GEe=()=>`주문 ID`,KEe=()=>`ID заказа`,qEe=()=>`訂單號`,JEe=()=>`订单号`,YEe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?UEe(e):n===`ja-JP`?WEe(e):n===`ko-KR`?GEe(e):n===`ru-RU`?KEe(e):n===`zh-TW`?qEe(e):JEe(e)}),XEe=()=>`Payment address`,ZEe=()=>`支払いアドレス`,QEe=()=>`결제 주소`,$Ee=()=>`Адрес оплаты`,eDe=()=>`收款地址`,tDe=()=>`收款地址`,nDe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?XEe(e):n===`ja-JP`?ZEe(e):n===`ko-KR`?QEe(e):n===`ru-RU`?$Ee(e):n===`zh-TW`?eDe(e):tDe(e)}),rDe=()=>`Powered by`,iDe=()=>`Powered by`,aDe=()=>`Powered by`,oDe=()=>`Powered by`,sDe=()=>`Powered by`,cDe=()=>`Powered by`,lDe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?rDe(e):n===`ja-JP`?iDe(e):n===`ko-KR`?aDe(e):n===`ru-RU`?oDe(e):n===`zh-TW`?sDe(e):cDe(e)}),uDe=()=>`Redirecting...`,dDe=()=>`リダイレクト中...`,fDe=()=>`이동 중...`,pDe=()=>`Перенаправление...`,mDe=()=>`正在跳轉...`,hDe=()=>`正在跳转...`,gDe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?uDe(e):n===`ja-JP`?dDe(e):n===`ko-KR`?fDe(e):n===`ru-RU`?pDe(e):n===`zh-TW`?mDe(e):hDe(e)}),_De=()=>`Retry`,vDe=()=>`再試行`,yDe=()=>`재시도`,bDe=()=>`Повторить`,xDe=()=>`重試`,SDe=()=>`重试`,CDe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?_De(e):n===`ja-JP`?vDe(e):n===`ko-KR`?yDe(e):n===`ru-RU`?bDe(e):n===`zh-TW`?xDe(e):SDe(e)}),wDe=()=>`Scan or copy address to pay`,TDe=()=>`スキャンまたはアドレスをコピー`,EDe=()=>`스캔하거나 주소를 복사해 결제`,DDe=()=>`Сканируйте или скопируйте адрес`,ODe=()=>`掃碼或複製地址付款`,kDe=()=>`扫码或复制地址付款`,ADe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?wDe(e):n===`ja-JP`?TDe(e):n===`ko-KR`?EDe(e):n===`ru-RU`?DDe(e):n===`zh-TW`?ODe(e):kDe(e)}),jDe=()=>`Select payment asset`,MDe=()=>`支払い通貨を選択`,NDe=()=>`결제 자산 선택`,PDe=()=>`Выберите платежный актив`,FDe=()=>`選擇支付幣種`,IDe=()=>`选择支付币种`,LDe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?jDe(e):n===`ja-JP`?MDe(e):n===`ko-KR`?NDe(e):n===`ru-RU`?PDe(e):n===`zh-TW`?FDe(e):IDe(e)}),RDe=()=>`Select payment network and asset`,zDe=()=>`支払いネットワークと通貨を選択`,BDe=()=>`결제 네트워크와 자산 선택`,VDe=()=>`Выберите сеть и актив`,HDe=()=>`選擇支付網路和幣種`,UDe=()=>`选择支付网络和币种`,WDe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?RDe(e):n===`ja-JP`?zDe(e):n===`ko-KR`?BDe(e):n===`ru-RU`?VDe(e):n===`zh-TW`?HDe(e):UDe(e)}),GDe=()=>`Choose how to pay`,KDe=()=>`支払い方法を選択`,qDe=()=>`결제 방법 선택`,JDe=()=>`Выберите способ оплаты`,YDe=()=>`選擇付款方式`,XDe=()=>`选择付款方式`,ZDe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?GDe(e):n===`ja-JP`?KDe(e):n===`ko-KR`?qDe(e):n===`ru-RU`?JDe(e):n===`zh-TW`?YDe(e):XDe(e)}),QDe=()=>`Change network or asset`,$De=()=>`Change network or asset`,eOe=()=>`Change network or asset`,tOe=()=>`Change network or asset`,nOe=()=>`切換網路或幣種`,rOe=()=>`切换网络或币种`,iOe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?QDe(e):n===`ja-JP`?$De(e):n===`ko-KR`?eOe(e):n===`ru-RU`?tOe(e):n===`zh-TW`?nOe(e):rOe(e)}),aOe=()=>`On-chain payment`,oOe=()=>`オンチェーン支払い`,sOe=()=>`온체인 결제`,cOe=()=>`Оплата ончейн`,lOe=()=>`鏈上支付`,uOe=()=>`链上支付`,dOe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?aOe(e):n===`ja-JP`?oOe(e):n===`ko-KR`?sOe(e):n===`ru-RU`?cOe(e):n===`zh-TW`?lOe(e):uOe(e)}),fOe=()=>`Send funds from your wallet to the payment address`,pOe=()=>`ウォレットから指定アドレスへ送金`,mOe=()=>`지갑에서 지정 주소로 전송`,hOe=()=>`Отправьте средства с кошелька на адрес оплаты`,gOe=()=>`使用錢包轉帳到指定地址`,_Oe=()=>`使用钱包转账到指定地址`,vOe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?fOe(e):n===`ja-JP`?pOe(e):n===`ko-KR`?mOe(e):n===`ru-RU`?hOe(e):n===`zh-TW`?gOe(e):_Oe(e)}),yOe=()=>`Payment Successful`,bOe=()=>`支払い成功`,xOe=()=>`결제 성공`,SOe=()=>`Платеж успешен`,COe=()=>`支付成功`,wOe=()=>`支付成功`,TOe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?yOe(e):n===`ja-JP`?bOe(e):n===`ko-KR`?xOe(e):n===`ru-RU`?SOe(e):n===`zh-TW`?COe(e):wOe(e)}),EOe=()=>`Payment has been confirmed`,DOe=()=>`支払いが確認されました`,OOe=()=>`결제가 확인되었습니다`,kOe=()=>`Платеж подтвержден`,AOe=()=>`支付已確認`,jOe=()=>`支付已确认`,MOe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?EOe(e):n===`ja-JP`?DOe(e):n===`ko-KR`?OOe(e):n===`ru-RU`?kOe(e):n===`zh-TW`?AOe(e):jOe(e)}),NOe=()=>`Connection Timeout`,POe=()=>`接続タイムアウト`,FOe=()=>`연결 시간 초과`,IOe=()=>`Таймаут соединения`,LOe=()=>`連接超時`,ROe=()=>`连接超时`,zOe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?NOe(e):n===`ja-JP`?POe(e):n===`ko-KR`?FOe(e):n===`ru-RU`?IOe(e):n===`zh-TW`?LOe(e):ROe(e)}),BOe=()=>`Unable to connect to the payment server`,VOe=()=>`支払いサーバーに接続できません`,HOe=()=>`결제 서버에 연결할 수 없습니다`,UOe=()=>`Не удалось подключиться к серверу оплаты`,WOe=()=>`無法連接到支付伺服器`,GOe=()=>`无法连接到支付服务器`,KOe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?BOe(e):n===`ja-JP`?VOe(e):n===`ko-KR`?HOe(e):n===`ru-RU`?UOe(e):n===`zh-TW`?WOe(e):GOe(e)}),qOe=()=>`Paid but not confirmed?`,JOe=()=>`送金済みだが未確認ですか?`,YOe=()=>`송금했지만 확인되지 않았나요?`,XOe=()=>`Оплатили, но нет подтверждения?`,ZOe=()=>`已轉帳但未到帳?`,QOe=()=>`已转账但未到账?`,$Oe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?qOe(e):n===`ja-JP`?JOe(e):n===`ko-KR`?YOe(e):n===`ru-RU`?XOe(e):n===`zh-TW`?ZOe(e):QOe(e)}),eke=()=>`Confirm transfer`,tke=()=>`送金を確認`,nke=()=>`송금 확인`,rke=()=>`Подтвердить перевод`,ike=()=>`確認轉帳`,ake=()=>`确认转账`,oke=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?eke(e):n===`ja-JP`?tke(e):n===`ko-KR`?nke(e):n===`ru-RU`?rke(e):n===`zh-TW`?ike(e):ake(e)}),ske=()=>`Enter the transaction hash for this transfer. We will verify it and update the order status.`,cke=()=>`この送金の取引ハッシュを入力してください。確認後、注文ステータスを更新します。`,lke=()=>`이 송금의 거래 해시를 입력하세요. 확인 후 주문 상태를 업데이트합니다.`,uke=()=>`Введите хэш этой транзакции. Мы проверим его и обновим статус заказа.`,dke=()=>`請填寫這筆轉帳的交易哈希,我們會立即校驗並更新訂單狀態。`,fke=()=>`请填写这笔转账的交易哈希,我们会立即校验并更新订单状态。`,pke=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ske(e):n===`ja-JP`?cke(e):n===`ko-KR`?lke(e):n===`ru-RU`?uke(e):n===`zh-TW`?dke(e):fke(e)}),mke=()=>`Transaction hash`,hke=()=>`取引ハッシュ`,gke=()=>`거래 해시`,_ke=()=>`Хэш транзакции`,vke=()=>`交易哈希`,yke=()=>`交易哈希`,bke=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?mke(e):n===`ja-JP`?hke(e):n===`ko-KR`?gke(e):n===`ru-RU`?_ke(e):n===`zh-TW`?vke(e):yke(e)}),xke=()=>`Enter transaction hash / TxID`,Ske=()=>`取引ハッシュ / TxID を入力`,Cke=()=>`거래 해시 / TxID 입력`,wke=()=>`Введите хэш транзакции / TxID`,Tke=()=>`請輸入交易哈希 / TxID`,Eke=()=>`请输入交易哈希 / TxID`,Dke=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?xke(e):n===`ja-JP`?Ske(e):n===`ko-KR`?Cke(e):n===`ru-RU`?wke(e):n===`zh-TW`?Tke(e):Eke(e)}),Oke=()=>`Make sure the amount, network, and receiving address match this order. Submit once only.`,kke=()=>`金額、ネットワーク、受取アドレスがこの注文と一致していることを確認してください。送信は一度だけで十分です。`,Ake=()=>`금액, 네트워크, 수취 주소가 이 주문과 일치하는지 확인하세요. 한 번만 제출하면 됩니다.`,jke=()=>`Убедитесь, что сумма, сеть и адрес получателя совпадают с этим заказом. Отправьте только один раз.`,Mke=()=>`請確認金額、網路和收款地址與目前訂單一致。提交一次即可,請勿重複提交。`,Nke=()=>`请确认金额、网络和收款地址与当前订单一致。提交一次即可,请勿重复提交。`,Pke=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Oke(e):n===`ja-JP`?kke(e):n===`ko-KR`?Ake(e):n===`ru-RU`?jke(e):n===`zh-TW`?Mke(e):Nke(e)}),Fke=()=>`Confirm submission`,Ike=()=>`送信を確認`,Lke=()=>`제출 확인`,Rke=()=>`Подтвердить отправку`,zke=()=>`確認提交`,Bke=()=>`确认提交`,Vke=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Fke(e):n===`ja-JP`?Ike(e):n===`ko-KR`?Lke(e):n===`ru-RU`?Rke(e):n===`zh-TW`?zke(e):Bke(e)}),Hke=()=>`Enter the transaction hash`,Uke=()=>`取引ハッシュを入力してください`,Wke=()=>`거래 해시를 입력하세요`,Gke=()=>`Введите хэш транзакции`,Kke=()=>`請輸入交易哈希`,qke=()=>`请输入交易哈希`,Jke=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Hke(e):n===`ja-JP`?Uke(e):n===`ko-KR`?Wke(e):n===`ru-RU`?Gke(e):n===`zh-TW`?Kke(e):qke(e)}),Yke=()=>`Transaction hash submitted. Waiting for confirmation.`,Xke=()=>`取引ハッシュを送信しました。確認中です。`,Zke=()=>`거래 해시가 제출되었습니다. 확인을 기다리는 중입니다.`,Qke=()=>`Хэш транзакции отправлен. Ожидаем подтверждения.`,$ke=()=>`已提交交易哈希,正在確認到帳`,eAe=()=>`已提交交易哈希,正在确认到账`,tAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Yke(e):n===`ja-JP`?Xke(e):n===`ko-KR`?Zke(e):n===`ru-RU`?Qke(e):n===`zh-TW`?$ke(e):eAe(e)}),nAe=()=>`OkPay Config`,rAe=()=>`OkPay Config`,iAe=()=>`OkPay Config`,aAe=()=>`OkPay Config`,oAe=()=>`OkPay 配置`,sAe=()=>`OkPay 配置`,cAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?nAe(e):n===`ja-JP`?rAe(e):n===`ko-KR`?iAe(e):n===`ru-RU`?aAe(e):n===`zh-TW`?oAe(e):sAe(e)}),lAe=()=>`Configure OkPay hosted checkout parameters.`,uAe=()=>`Configure OkPay hosted checkout parameters.`,dAe=()=>`Configure OkPay hosted checkout parameters.`,fAe=()=>`Configure OkPay hosted checkout parameters.`,pAe=()=>`配置 OkPay 託管收銀台參數。`,mAe=()=>`配置 OkPay 托管收银台参数。`,hAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?lAe(e):n===`ja-JP`?uAe(e):n===`ko-KR`?dAe(e):n===`ru-RU`?fAe(e):n===`zh-TW`?pAe(e):mAe(e)}),gAe=()=>`Enable OkPay`,_Ae=()=>`Enable OkPay`,vAe=()=>`Enable OkPay`,yAe=()=>`Enable OkPay`,bAe=()=>`啟用 OkPay`,xAe=()=>`启用 OkPay`,SAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?gAe(e):n===`ja-JP`?_Ae(e):n===`ko-KR`?vAe(e):n===`ru-RU`?yAe(e):n===`zh-TW`?bAe(e):xAe(e)}),CAe=()=>`Allow checkout orders to be redirected to OkPay.`,wAe=()=>`Allow checkout orders to be redirected to OkPay.`,TAe=()=>`Allow checkout orders to be redirected to OkPay.`,EAe=()=>`Allow checkout orders to be redirected to OkPay.`,DAe=()=>`允許收銀台訂單跳轉到 OkPay 支付頁。`,OAe=()=>`允许收银台订单跳转到 OkPay 支付页。`,kAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?CAe(e):n===`ja-JP`?wAe(e):n===`ko-KR`?TAe(e):n===`ru-RU`?EAe(e):n===`zh-TW`?DAe(e):OAe(e)}),AAe=()=>`Shop ID`,jAe=()=>`Shop ID`,MAe=()=>`Shop ID`,NAe=()=>`Shop ID`,PAe=()=>`商戶 ID`,FAe=()=>`商户 ID`,IAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?AAe(e):n===`ja-JP`?jAe(e):n===`ko-KR`?MAe(e):n===`ru-RU`?NAe(e):n===`zh-TW`?PAe(e):FAe(e)}),LAe=()=>`Please enter the OkPay shop ID`,RAe=()=>`Please enter the OkPay shop ID`,zAe=()=>`Please enter the OkPay shop ID`,BAe=()=>`Please enter the OkPay shop ID`,VAe=()=>`請輸入 OkPay 商戶 ID`,HAe=()=>`请输入 OkPay 商户 ID`,UAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?LAe(e):n===`ja-JP`?RAe(e):n===`ko-KR`?zAe(e):n===`ru-RU`?BAe(e):n===`zh-TW`?VAe(e):HAe(e)}),WAe=()=>`Shop Token`,GAe=()=>`Shop Token`,KAe=()=>`Shop Token`,qAe=()=>`Shop Token`,JAe=()=>`商戶 Token`,YAe=()=>`商户 Token`,XAe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?WAe(e):n===`ja-JP`?GAe(e):n===`ko-KR`?KAe(e):n===`ru-RU`?qAe(e):n===`zh-TW`?JAe(e):YAe(e)}),ZAe=()=>`Please enter the OkPay shop token`,QAe=()=>`Please enter the OkPay shop token`,$Ae=()=>`Please enter the OkPay shop token`,eje=()=>`Please enter the OkPay shop token`,tje=()=>`請輸入 OkPay 商戶 Token`,nje=()=>`请输入 OkPay 商户 Token`,rje=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ZAe(e):n===`ja-JP`?QAe(e):n===`ko-KR`?$Ae(e):n===`ru-RU`?eje(e):n===`zh-TW`?tje(e):nje(e)}),ije=()=>`API URL`,aje=()=>`API URL`,oje=()=>`API URL`,sje=()=>`API URL`,cje=()=>`API 位址`,lje=()=>`API 地址`,uje=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?ije(e):n===`ja-JP`?aje(e):n===`ko-KR`?oje(e):n===`ru-RU`?sje(e):n===`zh-TW`?cje(e):lje(e)}),dje=()=>`Callback URL`,fje=()=>`Callback URL`,pje=()=>`Callback URL`,mje=()=>`Callback URL`,hje=()=>`回調位址`,gje=()=>`回调地址`,_je=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?dje(e):n===`ja-JP`?fje(e):n===`ko-KR`?pje(e):n===`ru-RU`?mje(e):n===`zh-TW`?hje(e):gje(e)}),vje=()=>`Please enter a valid callback URL`,yje=()=>`Please enter a valid callback URL`,bje=()=>`Please enter a valid callback URL`,xje=()=>`Please enter a valid callback URL`,Sje=()=>`請輸入有效的回調位址`,Cje=()=>`请输入有效的回调地址`,wje=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?vje(e):n===`ja-JP`?yje(e):n===`ko-KR`?bje(e):n===`ru-RU`?xje(e):n===`zh-TW`?Sje(e):Cje(e)}),Tje=()=>`Return URL`,Eje=()=>`Return URL`,Dje=()=>`Return URL`,Oje=()=>`Return URL`,kje=()=>`返回位址`,Aje=()=>`返回地址`,jje=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Tje(e):n===`ja-JP`?Eje(e):n===`ko-KR`?Dje(e):n===`ru-RU`?Oje(e):n===`zh-TW`?kje(e):Aje(e)}),Mje=()=>`Timeout (seconds)`,Nje=()=>`Timeout (seconds)`,Pje=()=>`Timeout (seconds)`,Fje=()=>`Timeout (seconds)`,Ije=()=>`逾時時間(秒)`,Lje=()=>`超时时间(秒)`,Rje=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Mje(e):n===`ja-JP`?Nje(e):n===`ko-KR`?Pje(e):n===`ru-RU`?Fje(e):n===`zh-TW`?Ije(e):Lje(e)}),zje=()=>`Please enter the timeout`,Bje=()=>`Please enter the timeout`,Vje=()=>`Please enter the timeout`,Hje=()=>`Please enter the timeout`,Uje=()=>`請輸入逾時時間`,Wje=()=>`请输入超时时间`,Gje=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?zje(e):n===`ja-JP`?Bje(e):n===`ko-KR`?Vje(e):n===`ru-RU`?Hje(e):n===`zh-TW`?Uje(e):Wje(e)}),Kje=()=>`Timeout must be a positive integer`,qje=()=>`Timeout must be a positive integer`,Jje=()=>`Timeout must be a positive integer`,Yje=()=>`Timeout must be a positive integer`,Xje=()=>`逾時時間必須是正整數`,Zje=()=>`超时时间必须是正整数`,Qje=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?Kje(e):n===`ja-JP`?qje(e):n===`ko-KR`?Jje(e):n===`ru-RU`?Yje(e):n===`zh-TW`?Xje(e):Zje(e)}),$je=()=>`Allowed Tokens`,eMe=()=>`Allowed Tokens`,tMe=()=>`Allowed Tokens`,nMe=()=>`Allowed Tokens`,rMe=()=>`允許代幣`,iMe=()=>`允许代币`,aMe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?$je(e):n===`ja-JP`?eMe(e):n===`ko-KR`?tMe(e):n===`ru-RU`?nMe(e):n===`zh-TW`?rMe(e):iMe(e)}),oMe=()=>`Comma-separated token symbols, for example USDT,USDC.`,sMe=()=>`Comma-separated token symbols, for example USDT,USDC.`,cMe=()=>`Comma-separated token symbols, for example USDT,USDC.`,lMe=()=>`Comma-separated token symbols, for example USDT,USDC.`,uMe=()=>`多個代幣用英文逗號分隔,例如 USDT,USDC。`,dMe=()=>`多个代币用英文逗号分隔,例如 USDT,USDC。`,fMe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?oMe(e):n===`ja-JP`?sMe(e):n===`ko-KR`?cMe(e):n===`ru-RU`?lMe(e):n===`zh-TW`?uMe(e):dMe(e)}),pMe=()=>`Save OkPay Config`,mMe=()=>`Save OkPay Config`,hMe=()=>`Save OkPay Config`,gMe=()=>`Save OkPay Config`,_Me=()=>`儲存 OkPay 配置`,vMe=()=>`保存 OkPay 配置`,yMe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?pMe(e):n===`ja-JP`?mMe(e):n===`ko-KR`?hMe(e):n===`ru-RU`?gMe(e):n===`zh-TW`?_Me(e):vMe(e)}),bMe=()=>`OkPay config saved`,xMe=()=>`OkPay config saved`,SMe=()=>`OkPay config saved`,CMe=()=>`OkPay config saved`,wMe=()=>`OkPay 配置已儲存`,TMe=()=>`OkPay 配置已保存`,EMe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?bMe(e):n===`ja-JP`?xMe(e):n===`ko-KR`?SMe(e):n===`ru-RU`?CMe(e):n===`zh-TW`?wMe(e):TMe(e)}),DMe=()=>`Reset to defaults`,OMe=()=>`Reset to defaults`,kMe=()=>`Reset to defaults`,AMe=()=>`Reset to defaults`,jMe=()=>`重置為預設值`,MMe=()=>`重置为默认值`,NMe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?DMe(e):n===`ja-JP`?OMe(e):n===`ko-KR`?kMe(e):n===`ru-RU`?AMe(e):n===`zh-TW`?jMe(e):MMe(e)}),PMe=()=>`OkPay config reset to defaults`,FMe=()=>`OkPay config reset to defaults`,IMe=()=>`OkPay config reset to defaults`,LMe=()=>`OkPay config reset to defaults`,RMe=()=>`OkPay 配置已重置為預設值`,zMe=()=>`OkPay 配置已重置为默认值`,BMe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?PMe(e):n===`ja-JP`?FMe(e):n===`ko-KR`?IMe(e):n===`ru-RU`?LMe(e):n===`zh-TW`?RMe(e):zMe(e)}),VMe=()=>`OkPay`,HMe=()=>`OkPay`,UMe=()=>`OkPay`,WMe=()=>`OkPay`,GMe=()=>`OkPay`,KMe=()=>`OkPay`,qMe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?VMe(e):n===`ja-JP`?HMe(e):n===`ko-KR`?UMe(e):n===`ru-RU`?WMe(e):n===`zh-TW`?GMe(e):KMe(e)}),JMe=()=>`Open OkPay in Telegram to complete payment`,YMe=()=>`Telegram で OkPay を開いて支払う`,XMe=()=>`Telegram에서 OkPay를 열어 결제`,ZMe=()=>`Откройте OkPay в Telegram для оплаты`,QMe=()=>`透過 Telegram 開啟 OkPay 完成支付`,$Me=()=>`通过 Telegram 打开 OkPay 完成支付`,eNe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?JMe(e):n===`ja-JP`?YMe(e):n===`ko-KR`?XMe(e):n===`ru-RU`?ZMe(e):n===`zh-TW`?QMe(e):$Me(e)}),tNe=()=>`Opening OkPay payment window`,nNe=()=>`OkPay 支払いウィンドウを開いています`,rNe=()=>`OkPay 결제 창을 여는 중`,iNe=()=>`Открываем окно оплаты OkPay`,aNe=()=>`正在開啟 OkPay 支付視窗`,oNe=()=>`正在打开 OkPay 支付窗口`,sNe=((e={},t={})=>{let n=t.locale??m();return n===`en-US`?tNe(e):n===`ja-JP`?nNe(e):n===`ko-KR`?rNe(e):n===`ru-RU`?iNe(e):n===`zh-TW`?aNe(e):oNe(e)});export{xEe as $,b0 as $a,SP as $c,Sp as $d,xo as $f,b7 as $i,SD as $l,xfe as $n,SJ as $o,a as $p,xae as $r,SV as $s,xye as $t,Sb as $u,bke as A,y3 as Aa,xL as Ac,xg as Ad,bl as Af,bte as Ai,xA as Al,bhe as An,xZ as Ao,yn as Ap,bce as Ar,xW as As,bSe as At,xC as Au,iOe as B,r4 as Ba,aI as Bc,ah as Bd,ic as Bf,iee as Bi,ak as Bl,ime as Bn,aX as Bo,nt as Bp,ise as Br,aU as Bs,ixe as Bt,aS as Bu,hAe as C,m6 as Ca,gR as Cc,g_ as Cd,hu as Cf,hne as Ci,gj as Cl,hge as Cn,gQ as Co,mr as Cp,hle as Cr,gG as Cs,hCe as Ct,gw as Cu,Vke as D,B3 as Da,HL as Dc,Hg as Dd,Vl as Df,Vte as Di,HA as Dl,Vhe as Dn,HZ as Do,Bn as Dp,Vce as Dr,HW as Ds,VSe as Dt,HC as Du,Jke as E,q3 as Ea,YL as Ec,Yg as Ed,Jl as Ef,Jte as Ei,YA as El,Jhe as En,YZ as Eo,qn as Ep,Jce as Er,YW as Es,JSe as Et,YC as Eu,zOe as F,R4 as Fa,BI as Fc,Bh as Fd,zc as Ff,zee as Fi,Bk as Fl,zme as Fn,BX as Fo,Lt as Fp,zse as Fr,BU as Fs,zxe as Ft,BS as Fu,CDe as G,S2 as Ga,wF as Gc,wm as Gd,Cs as Gf,S9 as Gi,wO as Gl,Cpe as Gn,wY as Go,xe as Gp,Coe as Gr,wH as Gs,Cbe as Gt,wx as Gu,WDe as H,U2 as Ha,GF as Hc,Gm as Hd,Ws as Hf,U9 as Hi,GO as Hl,Wpe as Hn,GY as Ho,He as Hp,Woe as Hr,GH as Hs,Wbe as Ht,Gx as Hu,MOe as I,j4 as Ia,NI as Ic,Nh as Id,Mc as If,Mee as Ii,Nk as Il,Mme as In,NX as Io,At as Ip,Mse as Ir,NU as Is,Mxe as It,NS as Iu,nDe as J,t2 as Ja,rF as Jc,rm as Jd,ns as Jf,t9 as Ji,rO as Jl,npe as Jn,rY as Jo,Z as Jp,noe as Jr,rH as Js,nbe as Jt,rx as Ju,gDe as K,h2 as Ka,_F as Kc,_m as Kd,gs as Kf,h9 as Ki,_O as Kl,gpe as Kn,_Y as Ko,me as Kp,goe as Kr,_H as Ks,gbe as Kt,_x as Ku,TOe as L,w4 as La,EI as Lc,Eh as Ld,Tc as Lf,Tee as Li,Ek as Ll,Tme as Ln,EX as Lo,Ct as Lp,Tse as Lr,EU as Ls,Txe as Lt,ES as Lu,oke as M,a3 as Ma,sL as Mc,sg as Md,ol as Mf,ote as Mi,sA as Ml,ohe as Mn,sZ as Mo,an as Mp,oce as Mr,sW as Ms,oSe as Mt,sC as Mu,$Oe as N,Q4 as Na,eL as Nc,eg as Nd,$c as Nf,$ee as Ni,eA as Nl,$me as Nn,eZ as No,Zt as Np,$se as Nr,eW as Ns,$xe as Nt,eC as Nu,Pke as O,N3 as Oa,FL as Oc,Fg as Od,Pl as Of,Pte as Oi,FA as Ol,Phe as On,FZ as Oo,Nn as Op,Pce as Or,FW as Os,PSe as Ot,FC as Ou,KOe as P,G4 as Pa,qI as Pc,qh as Pd,Kc as Pf,Kee as Pi,qk as Pl,Kme as Pn,qX as Po,Wt as Pp,Kse as Pr,qU as Ps,Kxe as Pt,qS as Pu,OEe as Q,D0 as Qa,kP as Qc,kp as Qd,Oo as Qf,D7 as Qi,kD as Ql,Ofe as Qn,kJ as Qo,m as Qp,Oae as Qr,kV as Qs,Oye as Qt,kb as Qu,vOe as R,_4 as Ra,yI as Rc,yh as Rd,vc as Rf,vee as Ri,yk as Rl,vme as Rn,yX as Ro,gt as Rp,vse as Rr,yU as Rs,vxe as Rt,yS as Ru,SAe as S,x6 as Sa,CR as Sc,C_ as Sd,Su as Sf,Sne as Si,Cj as Sl,Sge as Sn,CQ as So,xr as Sp,Sle as Sr,CG as Ss,SCe as St,Cw as Su,tAe as T,e6 as Ta,nR as Tc,n_ as Td,tu as Tf,tne as Ti,nj as Tl,tge as Tn,nQ as To,er as Tp,tle as Tr,nG as Ts,tCe as Tt,nw as Tu,LDe as U,I2 as Ua,RF as Uc,Rm as Ud,Ls as Uf,I9 as Ui,RO as Ul,Lpe as Un,RY as Uo,Fe as Up,Loe as Ur,RH as Us,Lbe as Ut,Rx as Uu,ZDe as V,X2 as Va,QF as Vc,Qm as Vd,Zs as Vf,X9 as Vi,QO as Vl,Zpe as Vn,QY as Vo,Ye as Vp,Zoe as Vr,QH as Vs,Zbe as Vt,Qx as Vu,ADe as W,k2 as Wa,jF as Wc,jm as Wd,As as Wf,k9 as Wi,jO as Wl,Ape as Wn,jY as Wo,Oe as Wp,Aoe as Wr,jH as Ws,Abe as Wt,jx as Wu,HEe as X,V0 as Xa,UP as Xc,Up as Xd,Ho as Xf,V7 as Xi,UD as Xl,Hfe as Xn,UJ as Xo,L as Xp,Hae as Xr,UV as Xs,Hye as Xt,Ub as Xu,YEe as Y,J0 as Ya,XP as Yc,Xp as Yd,Yo as Yf,J7 as Yi,XD as Yl,Yfe as Yn,XJ as Yo,W as Yp,Yae as Yr,XV as Ys,Yye as Yt,Xb as Yu,FEe as Z,P0 as Za,IP as Zc,Ip as Zd,Fo as Zf,P7 as Zi,ID as Zl,Ffe as Zn,IJ as Zo,A as Zp,Fae as Zr,IV as Zs,Fye as Zt,Ib as Zu,rje as _,n8 as _a,iz as _c,iv as _d,rd as _f,rre as _i,iM as _l,r_e as _n,i$ as _o,ni as _p,rue as _r,iK as _s,rwe as _t,iT as _u,NMe as a,M5 as aa,PB as ac,Py as ad,Pf as af,Nie as ai,PN as al,Nve as an,P1 as ao,Ma as ap,Nde as ar,Pq as as,NTe as at,PE as au,IAe as b,F6 as ba,LR as bc,L_ as bd,Iu as bf,Ine as bi,Lj as bl,Ige as bn,LQ as bo,Fr as bp,Ile as br,LG as bs,ICe as bt,Lw as bu,fMe as c,d5 as ca,pB as cc,py as cd,pf as cf,fie as ci,pN as cl,fve as cn,p1 as co,da as cp,fde as cr,pq as cs,fTe as ct,pE as cu,Gje as d,W8 as da,Kz as dc,Kv as dd,Gd as df,Gre as di,KM as dl,G_e as dn,K$ as do,Wi as dp,Gue as dr,KK as ds,Gwe as dt,KT as du,p7 as ea,hV as ec,hb as ed,hp as ef,mae as ei,hP as el,_ as em,mye as en,p0 as eo,mo as ep,mfe as er,hJ as es,mEe as et,hD as eu,Rje as f,L8 as fa,zz as fc,zv as fd,Rd as ff,Rre as fi,zM as fl,R_e as fn,z$ as fo,Li as fp,Rue as fr,zK as fs,Rwe as ft,zT as fu,uje as g,l8 as ga,dz as gc,dv as gd,ud as gf,ure as gi,dM as gl,u_e as gn,d$ as go,li as gp,uue as gr,dK as gs,uwe as gt,dT as gu,_je as h,g8 as ha,vz as hc,vv as hd,_d as hf,_re as hi,vM as hl,__e as hn,v$ as ho,gi as hp,_ue as hr,vK as hs,_we as ht,vT as hu,BMe as i,z5 as ia,VB as ic,Vy as id,Vf as if,Bie as ii,VN as il,Bve as in,V1 as io,za as ip,Bde as ir,Vq as is,BTe as it,VE as iu,pke as j,f3 as ja,mL as jc,mg as jd,pl as jf,pte as ji,mA as jl,phe as jn,mZ as jo,fn as jp,pce as jr,mW as js,pSe as jt,mC as ju,Dke as k,E3 as ka,OL as kc,Og as kd,Dl as kf,Dte as ki,OA as kl,Dhe as kn,OZ as ko,En as kp,Dce as kr,OW as ks,DSe as kt,OC as ku,aMe as l,i5 as la,oB as lc,oy as ld,of as lf,aie as li,oN as ll,ave as ln,o1 as lo,ia as lp,ade as lr,oq as ls,aTe as lt,oE as lu,wje as m,C8 as ma,Tz as mc,Tv as md,wd as mf,wre as mi,TM as ml,w_e as mn,T$ as mo,Ci as mp,wue as mr,TK as ms,wwe as mt,TT as mu,eNe as n,$5 as na,tV as nc,tb as nd,tp as nf,eae as ni,tP as nl,eye as nn,e0 as no,$a as np,efe as nr,tJ as ns,eEe as nt,tD as nu,EMe as o,T5 as oa,DB as oc,Dy as od,Df as of,Eie as oi,DN as ol,Eve as on,D1 as oo,Ta as op,Ede as or,Dq as os,ETe as ot,DE as ou,jje as p,A8 as pa,Mz as pc,Mv as pd,jd as pf,jre as pi,MM as pl,j_e as pn,M$ as po,Ai as pp,jue as pr,MK as ps,jwe as pt,MT as pu,lDe as q,c2 as qa,uF as qc,um as qd,ls as qf,c9 as qi,uO as ql,lpe as qn,uY as qo,se as qp,loe as qr,uH as qs,lbe as qt,ux as qu,qMe as r,K5 as ra,JB as rc,Jy as rd,Jf as rf,qie as ri,JN as rl,qve as rn,J1 as ro,Ka as rp,qde as rr,Jq as rs,qTe as rt,JE as ru,yMe as s,v5 as sa,bB as sc,by as sd,bf as sf,yie as si,bN as sl,yve as sn,b1 as so,va as sp,yde as sr,bq as ss,yTe as st,bE as su,sNe as t,o7 as ta,cV as tc,cb as td,cp as tf,sae as ti,cP as tl,n as tm,sye as tn,eee as to,oo as tp,sfe as tr,cJ as ts,sEe as tt,cD as tu,Qje as u,Z8 as ua,$z as uc,$v as ud,Qd as uf,Qre as ui,$M as ul,Q_e as un,$$ as uo,Zi as up,Que as ur,$K as us,Qwe as ut,$T as uu,XAe as v,Y6 as va,ZR as vc,Z_ as vd,Xu as vf,Xne as vi,Zj as vl,Xge as vn,ZQ as vo,Yr as vp,Xle as vr,ZG as vs,XCe as vt,Zw as vu,cAe as w,s6 as wa,lR as wc,l_ as wd,cu as wf,cne as wi,lj as wl,cge as wn,lQ as wo,sr as wp,cle as wr,lG as ws,cCe as wt,lw as wu,kAe as x,O6 as xa,AR as xc,A_ as xd,ku as xf,kne as xi,Aj as xl,kge as xn,AQ as xo,Or as xp,kle as xr,AG as xs,kCe as xt,Aw as xu,UAe as y,H6 as ya,WR as yc,W_ as yd,Uu as yf,Une as yi,Wj as yl,Uge as yn,WQ as yo,Hr as yp,Ule as yr,WG as ys,UCe as yt,Ww as yu,dOe as z,u4 as za,fI as zc,fh as zd,dc as zf,dee as zi,fk as zl,dme as zn,fX as zo,lt as zp,dse as zr,fU as zs,dxe as zt,fS as zu}; \ No newline at end of file diff --git a/src/www/assets/not-found-error-BvJzTnw0.js b/src/www/assets/not-found-error-D4F_Uu-C.js similarity index 77% rename from src/www/assets/not-found-error-BvJzTnw0.js rename to src/www/assets/not-found-error-D4F_Uu-C.js index 396b8ba..7cc7cac 100644 --- a/src/www/assets/not-found-error-BvJzTnw0.js +++ b/src/www/assets/not-found-error-D4F_Uu-C.js @@ -1 +1 @@ -import{Dd as e,Ed as t,Od as n,kd as r,tm as i}from"./messages-BOatyqUm.js";import{t as a}from"./useRouter-DtTm7XkK.js";import{t as o}from"./useNavigate-7u4DX0Ho.js";import{t as s}from"./button-C_NDYaz8.js";var c=i();function l(){let i=o(),{history:l}=a();return(0,c.jsx)(`div`,{className:`h-svh`,children:(0,c.jsxs)(`div`,{className:`m-auto flex h-full w-full flex-col items-center justify-center gap-2`,children:[(0,c.jsx)(`h1`,{className:`font-bold text-[7rem] leading-tight`,children:`404`}),(0,c.jsx)(`span`,{className:`font-medium`,children:e()}),(0,c.jsx)(`p`,{className:`text-center text-muted-foreground`,children:t()}),(0,c.jsxs)(`div`,{className:`mt-6 flex gap-4`,children:[(0,c.jsx)(s,{onClick:()=>l.go(-1),variant:`outline`,children:r()}),(0,c.jsx)(s,{onClick:()=>i({to:`/dashboard`}),children:n()})]})]})})}export{l as t}; \ No newline at end of file +import{Dd as e,Ed as t,Od as n,kd as r,tm as i}from"./messages-CL4J6BaJ.js";import{t as a}from"./useRouter-DtTm7XkK.js";import{t as o}from"./useNavigate-7u4DX0Ho.js";import{t as s}from"./button-NLSeBFht.js";var c=i();function l(){let i=o(),{history:l}=a();return(0,c.jsx)(`div`,{className:`h-svh`,children:(0,c.jsxs)(`div`,{className:`m-auto flex h-full w-full flex-col items-center justify-center gap-2`,children:[(0,c.jsx)(`h1`,{className:`font-bold text-[7rem] leading-tight`,children:`404`}),(0,c.jsx)(`span`,{className:`font-medium`,children:e()}),(0,c.jsx)(`p`,{className:`text-center text-muted-foreground`,children:t()}),(0,c.jsxs)(`div`,{className:`mt-6 flex gap-4`,children:[(0,c.jsx)(s,{onClick:()=>l.go(-1),variant:`outline`,children:r()}),(0,c.jsx)(s,{onClick:()=>i({to:`/dashboard`}),children:n()})]})]})})}export{l as t}; \ No newline at end of file diff --git a/src/www/assets/notifications-xdKOW8nn.js b/src/www/assets/notifications-ugCUkcwq.js similarity index 89% rename from src/www/assets/notifications-xdKOW8nn.js rename to src/www/assets/notifications-ugCUkcwq.js index 967da94..da55373 100644 --- a/src/www/assets/notifications-xdKOW8nn.js +++ b/src/www/assets/notifications-ugCUkcwq.js @@ -1 +1 @@ -import{$t as e,Bt as t,Gt as n,Ht as r,Jt as i,Kt as a,Qt as o,Rt as s,Ut as c,Vt as l,Wt as u,Xt as d,Yt as f,Zt as p,en as m,in as h,nn as g,qt as _,rn as v,tm as y,tn as b,zt as x}from"./messages-BOatyqUm.js";import{t as S}from"./link-DPnL8P5J.js";import{t as C}from"./button-C_NDYaz8.js";import{t as w}from"./checkbox-CTHgcB3t.js";import{t as T}from"./switch-CgoJjvdz.js";import{n as E,t as D}from"./radio-group-D2rceepu.js";import{a as O,r as k,s as A}from"./zod-rwFXxHlg.js";import{a as j,c as M,i as N,l as P,n as F,o as I,r as L,s as R,t as z}from"./form-KfFEakes.js";import{t as B}from"./page-header-GTtyZFBB.js";import{t as V}from"./show-submitted-data-BqZb-_Pf.js";var H=y(),U=A({type:k([`all`,`mentions`,`none`],{error:e=>e.input===void 0?g():void 0}),mobile:O().default(!1).optional(),communication_emails:O().default(!1).optional(),social_emails:O().default(!1).optional(),marketing_emails:O().default(!1).optional(),security_emails:O()}),W={communication_emails:!1,marketing_emails:!1,social_emails:!0,security_emails:!0};function G(){let h=P({resolver:M(U),defaultValues:W});return(0,H.jsx)(z,{...h,children:(0,H.jsxs)(`form`,{className:`space-y-8`,onSubmit:h.handleSubmit(e=>V(e)),children:[(0,H.jsx)(N,{control:h.control,name:`type`,render:({field:t})=>(0,H.jsxs)(j,{className:`relative space-y-3`,children:[(0,H.jsx)(I,{children:b()}),(0,H.jsx)(F,{children:(0,H.jsxs)(D,{className:`flex flex-col gap-2`,defaultValue:t.value,onValueChange:t.onChange,children:[(0,H.jsxs)(j,{className:`flex items-center`,children:[(0,H.jsx)(F,{children:(0,H.jsx)(E,{value:`all`})}),(0,H.jsx)(I,{className:`font-normal`,children:m()})]}),(0,H.jsxs)(j,{className:`flex items-center`,children:[(0,H.jsx)(F,{children:(0,H.jsx)(E,{value:`mentions`})}),(0,H.jsx)(I,{className:`font-normal`,children:e()})]}),(0,H.jsxs)(j,{className:`flex items-center`,children:[(0,H.jsx)(F,{children:(0,H.jsx)(E,{value:`none`})}),(0,H.jsx)(I,{className:`font-normal`,children:o()})]})]})}),(0,H.jsx)(R,{})]})}),(0,H.jsxs)(`div`,{className:`relative`,children:[(0,H.jsx)(`h3`,{className:`mb-4 font-medium text-lg`,children:p()}),(0,H.jsxs)(`div`,{className:`space-y-4`,children:[(0,H.jsx)(N,{control:h.control,name:`communication_emails`,render:({field:e})=>(0,H.jsxs)(j,{className:`flex flex-row items-center justify-between rounded-lg border p-4`,children:[(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,H.jsx)(I,{className:`text-base`,children:d()}),(0,H.jsx)(L,{children:f()})]}),(0,H.jsx)(F,{children:(0,H.jsx)(T,{checked:e.value,onCheckedChange:e.onChange})})]})}),(0,H.jsx)(N,{control:h.control,name:`marketing_emails`,render:({field:e})=>(0,H.jsxs)(j,{className:`flex flex-row items-center justify-between rounded-lg border p-4`,children:[(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,H.jsx)(I,{className:`text-base`,children:i()}),(0,H.jsx)(L,{children:_()})]}),(0,H.jsx)(F,{children:(0,H.jsx)(T,{checked:e.value,onCheckedChange:e.onChange})})]})}),(0,H.jsx)(N,{control:h.control,name:`social_emails`,render:({field:e})=>(0,H.jsxs)(j,{className:`flex flex-row items-center justify-between rounded-lg border p-4`,children:[(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,H.jsx)(I,{className:`text-base`,children:a()}),(0,H.jsx)(L,{children:n()})]}),(0,H.jsx)(F,{children:(0,H.jsx)(T,{checked:e.value,onCheckedChange:e.onChange})})]})}),(0,H.jsx)(N,{control:h.control,name:`security_emails`,render:({field:e})=>(0,H.jsxs)(j,{className:`flex flex-row items-center justify-between rounded-lg border p-4`,children:[(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,H.jsx)(I,{className:`text-base`,children:u()}),(0,H.jsx)(L,{children:c()})]}),(0,H.jsx)(F,{children:(0,H.jsx)(T,{"aria-readonly":!0,checked:e.value,disabled:!0,onCheckedChange:e.onChange})})]})})]})]}),(0,H.jsx)(N,{control:h.control,name:`mobile`,render:({field:e})=>(0,H.jsxs)(j,{className:`relative flex flex-row items-start`,children:[(0,H.jsx)(F,{children:(0,H.jsx)(w,{checked:e.value,onCheckedChange:e.onChange})}),(0,H.jsxs)(`div`,{className:`space-y-1 leading-none`,children:[(0,H.jsx)(I,{children:r()}),(0,H.jsxs)(L,{children:[l(),` `,(0,H.jsx)(S,{className:`underline decoration-dashed underline-offset-4 hover:decoration-solid`,to:`/settings`,children:t()}),` `,x()]})]})]})}),(0,H.jsx)(C,{type:`submit`,children:s()})]})})}function K(){return(0,H.jsx)(B,{description:v(),title:h(),variant:`section`,children:(0,H.jsx)(G,{})})}var q=K;export{q as component}; \ No newline at end of file +import{$t as e,Bt as t,Gt as n,Ht as r,Jt as i,Kt as a,Qt as o,Rt as s,Ut as c,Vt as l,Wt as u,Xt as d,Yt as f,Zt as p,en as m,in as h,nn as g,qt as _,rn as v,tm as y,tn as b,zt as x}from"./messages-CL4J6BaJ.js";import{t as S}from"./link-6i3yGmK_.js";import{t as C}from"./button-NLSeBFht.js";import{t as w}from"./checkbox-DcRUgRHr.js";import{t as T}from"./switch-BST3z-JX.js";import{n as E,t as D}from"./radio-group-yaBPIkVa.js";import{a as O,r as k,s as A}from"./zod-rwFXxHlg.js";import{a as j,c as M,i as N,l as P,n as F,o as I,r as L,s as R,t as z}from"./form-C_YekIvK.js";import{t as B}from"./page-header-B7O10aw9.js";import{t as V}from"./show-submitted-data-DwaVTW9K.js";var H=y(),U=A({type:k([`all`,`mentions`,`none`],{error:e=>e.input===void 0?g():void 0}),mobile:O().default(!1).optional(),communication_emails:O().default(!1).optional(),social_emails:O().default(!1).optional(),marketing_emails:O().default(!1).optional(),security_emails:O()}),W={communication_emails:!1,marketing_emails:!1,social_emails:!0,security_emails:!0};function G(){let h=P({resolver:M(U),defaultValues:W});return(0,H.jsx)(z,{...h,children:(0,H.jsxs)(`form`,{className:`space-y-8`,onSubmit:h.handleSubmit(e=>V(e)),children:[(0,H.jsx)(N,{control:h.control,name:`type`,render:({field:t})=>(0,H.jsxs)(j,{className:`relative space-y-3`,children:[(0,H.jsx)(I,{children:b()}),(0,H.jsx)(F,{children:(0,H.jsxs)(D,{className:`flex flex-col gap-2`,defaultValue:t.value,onValueChange:t.onChange,children:[(0,H.jsxs)(j,{className:`flex items-center`,children:[(0,H.jsx)(F,{children:(0,H.jsx)(E,{value:`all`})}),(0,H.jsx)(I,{className:`font-normal`,children:m()})]}),(0,H.jsxs)(j,{className:`flex items-center`,children:[(0,H.jsx)(F,{children:(0,H.jsx)(E,{value:`mentions`})}),(0,H.jsx)(I,{className:`font-normal`,children:e()})]}),(0,H.jsxs)(j,{className:`flex items-center`,children:[(0,H.jsx)(F,{children:(0,H.jsx)(E,{value:`none`})}),(0,H.jsx)(I,{className:`font-normal`,children:o()})]})]})}),(0,H.jsx)(R,{})]})}),(0,H.jsxs)(`div`,{className:`relative`,children:[(0,H.jsx)(`h3`,{className:`mb-4 font-medium text-lg`,children:p()}),(0,H.jsxs)(`div`,{className:`space-y-4`,children:[(0,H.jsx)(N,{control:h.control,name:`communication_emails`,render:({field:e})=>(0,H.jsxs)(j,{className:`flex flex-row items-center justify-between rounded-lg border p-4`,children:[(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,H.jsx)(I,{className:`text-base`,children:d()}),(0,H.jsx)(L,{children:f()})]}),(0,H.jsx)(F,{children:(0,H.jsx)(T,{checked:e.value,onCheckedChange:e.onChange})})]})}),(0,H.jsx)(N,{control:h.control,name:`marketing_emails`,render:({field:e})=>(0,H.jsxs)(j,{className:`flex flex-row items-center justify-between rounded-lg border p-4`,children:[(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,H.jsx)(I,{className:`text-base`,children:i()}),(0,H.jsx)(L,{children:_()})]}),(0,H.jsx)(F,{children:(0,H.jsx)(T,{checked:e.value,onCheckedChange:e.onChange})})]})}),(0,H.jsx)(N,{control:h.control,name:`social_emails`,render:({field:e})=>(0,H.jsxs)(j,{className:`flex flex-row items-center justify-between rounded-lg border p-4`,children:[(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,H.jsx)(I,{className:`text-base`,children:a()}),(0,H.jsx)(L,{children:n()})]}),(0,H.jsx)(F,{children:(0,H.jsx)(T,{checked:e.value,onCheckedChange:e.onChange})})]})}),(0,H.jsx)(N,{control:h.control,name:`security_emails`,render:({field:e})=>(0,H.jsxs)(j,{className:`flex flex-row items-center justify-between rounded-lg border p-4`,children:[(0,H.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,H.jsx)(I,{className:`text-base`,children:u()}),(0,H.jsx)(L,{children:c()})]}),(0,H.jsx)(F,{children:(0,H.jsx)(T,{"aria-readonly":!0,checked:e.value,disabled:!0,onCheckedChange:e.onChange})})]})})]})]}),(0,H.jsx)(N,{control:h.control,name:`mobile`,render:({field:e})=>(0,H.jsxs)(j,{className:`relative flex flex-row items-start`,children:[(0,H.jsx)(F,{children:(0,H.jsx)(w,{checked:e.value,onCheckedChange:e.onChange})}),(0,H.jsxs)(`div`,{className:`space-y-1 leading-none`,children:[(0,H.jsx)(I,{children:r()}),(0,H.jsxs)(L,{children:[l(),` `,(0,H.jsx)(S,{className:`underline decoration-dashed underline-offset-4 hover:decoration-solid`,to:`/settings`,children:t()}),` `,x()]})]})]})}),(0,H.jsx)(C,{type:`submit`,children:s()})]})})}function K(){return(0,H.jsx)(B,{description:v(),title:h(),variant:`section`,children:(0,H.jsx)(G,{})})}var q=K;export{q as component}; \ No newline at end of file diff --git a/src/www/assets/okpay-D5pTA_4W.js b/src/www/assets/okpay-D8DSnOJb.js similarity index 91% rename from src/www/assets/okpay-D5pTA_4W.js rename to src/www/assets/okpay-D8DSnOJb.js index 03729a8..e1d72b9 100644 --- a/src/www/assets/okpay-D5pTA_4W.js +++ b/src/www/assets/okpay-D8DSnOJb.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{C as n,S as r,_ as i,a,b as o,c as s,d as c,f as l,g as u,h as d,i as f,l as p,m,o as h,p as g,s as _,tm as v,u as y,v as b,w as x,x as S,y as C}from"./messages-BOatyqUm.js";import{t as w}from"./button-C_NDYaz8.js";import{t as T}from"./switch-CgoJjvdz.js";import{a as E,c as D,s as O}from"./zod-rwFXxHlg.js";import{a as k,c as A,i as j,l as M,n as N,o as P,r as F,s as I,t as L}from"./form-KfFEakes.js";import{t as R}from"./input-8zzM34r5.js";import{t as z}from"./password-input-95hMTMdh.js";import{t as B}from"./page-header-GTtyZFBB.js";import{a as V,i as H,n as U,r as W,t as G}from"./lib-DDezYSnW.js";var K=e(t(),1),q=v(),J=O({allowTokens:D(),apiUrl:D(),callbackUrl:D().url(m()),enabled:E(),returnUrl:D(),shopId:D().min(1,C()),shopToken:D().min(1,i()),timeoutSeconds:D().min(1,c()).refine(e=>Number.isInteger(Number(e))&&Number(e)>0,{message:y()})});function Y(){let e=H(`okpay`),t=V(),n=M({resolver:A(J),defaultValues:{allowTokens:`USDT`,apiUrl:``,callbackUrl:``,enabled:!1,returnUrl:``,shopId:``,shopToken:``,timeoutSeconds:`600`}});(0,K.useEffect)(()=>{let t=e.data?.data;t&&n.reset({allowTokens:X(G(t,`okpay.allow_tokens`,`USDT`)).join(`,`),apiUrl:G(t,`okpay.api_url`),callbackUrl:G(t,`okpay.callback_url`),enabled:[`1`,`true`,`yes`].includes(G(t,`okpay.enabled`).toLowerCase()),returnUrl:G(t,`okpay.return_url`),shopId:G(t,`okpay.shop_id`),shopToken:G(t,`okpay.shop_token`),timeoutSeconds:G(t,`okpay.timeout_seconds`,`600`)})},[e.data,n]);async function i(n){await W(t.mutateAsync,[{group:`okpay`,key:`okpay.enabled`,type:`bool`,value:n.enabled?`true`:`false`},{group:`okpay`,key:`okpay.shop_id`,type:`string`,value:n.shopId},{group:`okpay`,key:`okpay.shop_token`,type:`string`,value:n.shopToken},{group:`okpay`,key:`okpay.timeout_seconds`,type:`int`,value:n.timeoutSeconds},{group:`okpay`,key:`okpay.callback_url`,type:`string`,value:n.callbackUrl}],h()),await e.refetch()}async function c(){await U(t.mutateAsync,[{group:`okpay`,key:`okpay.enabled`,type:`bool`,value:!1},{group:`okpay`,key:`okpay.shop_id`,type:`string`,value:``},{group:`okpay`,key:`okpay.shop_token`,type:`string`,value:``},{group:`okpay`,key:`okpay.api_url`,type:`string`,value:``},{group:`okpay`,key:`okpay.callback_url`,type:`string`,value:``},{group:`okpay`,key:`okpay.return_url`,type:`string`,value:``},{group:`okpay`,key:`okpay.timeout_seconds`,type:`int`,value:600},{group:`okpay`,key:`okpay.allow_tokens`,type:`string`,value:``}],f()),await e.refetch()}return(0,q.jsx)(L,{...n,children:(0,q.jsxs)(`form`,{className:`space-y-6`,onSubmit:n.handleSubmit(i),children:[(0,q.jsx)(j,{control:n.control,name:`enabled`,render:({field:e})=>(0,q.jsxs)(k,{className:`flex items-center justify-between gap-4`,children:[(0,q.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,q.jsx)(P,{children:r()}),(0,q.jsx)(F,{children:S()})]}),(0,q.jsx)(N,{children:(0,q.jsx)(T,{checked:e.value,onCheckedChange:e.onChange})})]})}),(0,q.jsxs)(`div`,{className:`grid gap-6 md:grid-cols-2`,children:[(0,q.jsx)(j,{control:n.control,name:`shopId`,render:({field:e})=>(0,q.jsxs)(k,{children:[(0,q.jsx)(P,{children:o()}),(0,q.jsx)(N,{children:(0,q.jsx)(R,{autoComplete:`off`,...e})}),(0,q.jsx)(I,{})]})}),(0,q.jsx)(j,{control:n.control,name:`shopToken`,render:({field:e})=>(0,q.jsxs)(k,{children:[(0,q.jsx)(P,{children:b()}),(0,q.jsx)(N,{children:(0,q.jsx)(z,{autoComplete:`off`,...e})}),(0,q.jsx)(I,{})]})}),(0,q.jsx)(j,{control:n.control,name:`timeoutSeconds`,render:({field:e})=>(0,q.jsxs)(k,{children:[(0,q.jsx)(P,{children:l()}),(0,q.jsx)(N,{children:(0,q.jsx)(R,{inputMode:`numeric`,placeholder:`600`,...e})}),(0,q.jsx)(I,{})]})})]}),(0,q.jsx)(j,{control:n.control,name:`apiUrl`,render:({field:e})=>(0,q.jsxs)(k,{children:[(0,q.jsx)(P,{children:u()}),(0,q.jsx)(N,{children:(0,q.jsx)(R,{disabled:!0,placeholder:`https://api.okpay.example`,...e})}),(0,q.jsx)(I,{})]})}),(0,q.jsxs)(`div`,{className:`grid gap-6 md:grid-cols-2`,children:[(0,q.jsx)(j,{control:n.control,name:`callbackUrl`,render:({field:e})=>(0,q.jsxs)(k,{children:[(0,q.jsx)(P,{children:d()}),(0,q.jsx)(N,{children:(0,q.jsx)(R,{placeholder:`https://example.com/notify`,...e})}),(0,q.jsx)(I,{})]})}),(0,q.jsx)(j,{control:n.control,name:`returnUrl`,render:({field:e})=>(0,q.jsxs)(k,{children:[(0,q.jsx)(P,{children:g()}),(0,q.jsx)(N,{children:(0,q.jsx)(R,{disabled:!0,placeholder:`https://example.com/success`,...e})}),(0,q.jsx)(I,{})]})})]}),(0,q.jsx)(j,{control:n.control,name:`allowTokens`,render:({field:e})=>(0,q.jsxs)(k,{children:[(0,q.jsx)(P,{children:p()}),(0,q.jsx)(N,{children:(0,q.jsx)(R,{disabled:!0,placeholder:`USDT,USDC`,...e})}),(0,q.jsx)(F,{children:s()}),(0,q.jsx)(I,{})]})}),(0,q.jsxs)(`div`,{className:`flex gap-2`,children:[(0,q.jsx)(w,{disabled:t.isPending||e.isLoading,type:`submit`,children:_()}),(0,q.jsx)(w,{disabled:t.isPending,onClick:c,type:`button`,variant:`outline`,children:a()})]})]})})}function X(e){return e.split(/[\s,]+/).map(e=>e.trim().toUpperCase()).filter(Boolean)}function Z(){return(0,q.jsx)(B,{description:n(),title:x(),variant:`section`,children:(0,q.jsx)(Y,{})})}var Q=Z;export{Q as component}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{C as n,S as r,_ as i,a,b as o,c as s,d as c,f as l,g as u,h as d,i as f,l as p,m,o as h,p as g,s as _,tm as v,u as y,v as b,w as x,x as S,y as C}from"./messages-CL4J6BaJ.js";import{t as w}from"./button-NLSeBFht.js";import{t as T}from"./switch-BST3z-JX.js";import{a as E,c as D,s as O}from"./zod-rwFXxHlg.js";import{a as k,c as A,i as j,l as M,n as N,o as P,r as F,s as I,t as L}from"./form-C_YekIvK.js";import{t as R}from"./input-DAqep8ZY.js";import{t as z}from"./password-input-D9YsRteD.js";import{t as B}from"./page-header-B7O10aw9.js";import{a as V,i as H,n as U,r as W,t as G}from"./lib-Ku8Lh36m.js";var K=e(t(),1),q=v(),J=O({allowTokens:D(),apiUrl:D(),callbackUrl:D().url(m()),enabled:E(),returnUrl:D(),shopId:D().min(1,C()),shopToken:D().min(1,i()),timeoutSeconds:D().min(1,c()).refine(e=>Number.isInteger(Number(e))&&Number(e)>0,{message:y()})});function Y(){let e=H(`okpay`),t=V(),n=M({resolver:A(J),defaultValues:{allowTokens:`USDT`,apiUrl:``,callbackUrl:``,enabled:!1,returnUrl:``,shopId:``,shopToken:``,timeoutSeconds:`600`}});(0,K.useEffect)(()=>{let t=e.data?.data;t&&n.reset({allowTokens:X(G(t,`okpay.allow_tokens`,`USDT`)).join(`,`),apiUrl:G(t,`okpay.api_url`),callbackUrl:G(t,`okpay.callback_url`),enabled:[`1`,`true`,`yes`].includes(G(t,`okpay.enabled`).toLowerCase()),returnUrl:G(t,`okpay.return_url`),shopId:G(t,`okpay.shop_id`),shopToken:G(t,`okpay.shop_token`),timeoutSeconds:G(t,`okpay.timeout_seconds`,`600`)})},[e.data,n]);async function i(n){await W(t.mutateAsync,[{group:`okpay`,key:`okpay.enabled`,type:`bool`,value:n.enabled?`true`:`false`},{group:`okpay`,key:`okpay.shop_id`,type:`string`,value:n.shopId},{group:`okpay`,key:`okpay.shop_token`,type:`string`,value:n.shopToken},{group:`okpay`,key:`okpay.timeout_seconds`,type:`int`,value:n.timeoutSeconds},{group:`okpay`,key:`okpay.callback_url`,type:`string`,value:n.callbackUrl}],h()),await e.refetch()}async function c(){await U(t.mutateAsync,[{group:`okpay`,key:`okpay.enabled`,type:`bool`,value:!1},{group:`okpay`,key:`okpay.shop_id`,type:`string`,value:``},{group:`okpay`,key:`okpay.shop_token`,type:`string`,value:``},{group:`okpay`,key:`okpay.api_url`,type:`string`,value:``},{group:`okpay`,key:`okpay.callback_url`,type:`string`,value:``},{group:`okpay`,key:`okpay.return_url`,type:`string`,value:``},{group:`okpay`,key:`okpay.timeout_seconds`,type:`int`,value:600},{group:`okpay`,key:`okpay.allow_tokens`,type:`string`,value:``}],f()),await e.refetch()}return(0,q.jsx)(L,{...n,children:(0,q.jsxs)(`form`,{className:`space-y-6`,onSubmit:n.handleSubmit(i),children:[(0,q.jsx)(j,{control:n.control,name:`enabled`,render:({field:e})=>(0,q.jsxs)(k,{className:`flex items-center justify-between gap-4`,children:[(0,q.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,q.jsx)(P,{children:r()}),(0,q.jsx)(F,{children:S()})]}),(0,q.jsx)(N,{children:(0,q.jsx)(T,{checked:e.value,onCheckedChange:e.onChange})})]})}),(0,q.jsxs)(`div`,{className:`grid gap-6 md:grid-cols-2`,children:[(0,q.jsx)(j,{control:n.control,name:`shopId`,render:({field:e})=>(0,q.jsxs)(k,{children:[(0,q.jsx)(P,{children:o()}),(0,q.jsx)(N,{children:(0,q.jsx)(R,{autoComplete:`off`,...e})}),(0,q.jsx)(I,{})]})}),(0,q.jsx)(j,{control:n.control,name:`shopToken`,render:({field:e})=>(0,q.jsxs)(k,{children:[(0,q.jsx)(P,{children:b()}),(0,q.jsx)(N,{children:(0,q.jsx)(z,{autoComplete:`off`,...e})}),(0,q.jsx)(I,{})]})}),(0,q.jsx)(j,{control:n.control,name:`timeoutSeconds`,render:({field:e})=>(0,q.jsxs)(k,{children:[(0,q.jsx)(P,{children:l()}),(0,q.jsx)(N,{children:(0,q.jsx)(R,{inputMode:`numeric`,placeholder:`600`,...e})}),(0,q.jsx)(I,{})]})})]}),(0,q.jsx)(j,{control:n.control,name:`apiUrl`,render:({field:e})=>(0,q.jsxs)(k,{children:[(0,q.jsx)(P,{children:u()}),(0,q.jsx)(N,{children:(0,q.jsx)(R,{disabled:!0,placeholder:`https://api.okpay.example`,...e})}),(0,q.jsx)(I,{})]})}),(0,q.jsxs)(`div`,{className:`grid gap-6 md:grid-cols-2`,children:[(0,q.jsx)(j,{control:n.control,name:`callbackUrl`,render:({field:e})=>(0,q.jsxs)(k,{children:[(0,q.jsx)(P,{children:d()}),(0,q.jsx)(N,{children:(0,q.jsx)(R,{placeholder:`https://example.com/notify`,...e})}),(0,q.jsx)(I,{})]})}),(0,q.jsx)(j,{control:n.control,name:`returnUrl`,render:({field:e})=>(0,q.jsxs)(k,{children:[(0,q.jsx)(P,{children:g()}),(0,q.jsx)(N,{children:(0,q.jsx)(R,{disabled:!0,placeholder:`https://example.com/success`,...e})}),(0,q.jsx)(I,{})]})})]}),(0,q.jsx)(j,{control:n.control,name:`allowTokens`,render:({field:e})=>(0,q.jsxs)(k,{children:[(0,q.jsx)(P,{children:p()}),(0,q.jsx)(N,{children:(0,q.jsx)(R,{disabled:!0,placeholder:`USDT,USDC`,...e})}),(0,q.jsx)(F,{children:s()}),(0,q.jsx)(I,{})]})}),(0,q.jsxs)(`div`,{className:`flex gap-2`,children:[(0,q.jsx)(w,{disabled:t.isPending||e.isLoading,type:`submit`,children:_()}),(0,q.jsx)(w,{disabled:t.isPending,onClick:c,type:`button`,variant:`outline`,children:a()})]})]})})}function X(e){return e.split(/[\s,]+/).map(e=>e.trim().toUpperCase()).filter(Boolean)}function Z(){return(0,q.jsx)(B,{description:n(),title:x(),variant:`section`,children:(0,q.jsx)(Y,{})})}var Q=Z;export{Q as component}; \ No newline at end of file diff --git a/src/www/assets/orders-oloW11KP.js b/src/www/assets/orders-BVHCgRn-.js similarity index 91% rename from src/www/assets/orders-oloW11KP.js rename to src/www/assets/orders-BVHCgRn-.js index ff6d0af..54616cf 100644 --- a/src/www/assets/orders-oloW11KP.js +++ b/src/www/assets/orders-BVHCgRn-.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{a as t,c as n}from"./auth-store-De4Y7PFV.js";import{t as r}from"./router-Z0tUklFK.js";import{t as i}from"./react-CO2uhaBc.js";import{$s as a,Ac as o,Bc as s,Cc as c,Dc as l,Ec as u,Fc as ee,Gc as d,Gs as f,Hc as p,Ic as m,Jc as h,Js as g,Kc as te,Ks as _,Lc as ne,Mc as v,Nc as re,Oc as y,Pc as ie,Qc as b,Qs as x,Rc as ae,Sc as S,Tc as C,Uc as oe,Vc as w,Wc as se,Ws as T,Xc as ce,Xp as le,Xs as E,Yc as ue,Ys as D,Zc as O,Zs as k,_c as A,ac as j,bc as M,cc as N,ci as de,dc as fe,ec as pe,fc as me,gc as P,hc as F,ic as he,jc as ge,kc as _e,lc as ve,mc as ye,nc as be,oc as xe,pc as Se,qc as Ce,qs as we,rc as Te,sc as Ee,tc as De,tm as Oe,uc as ke,vc as Ae,wc as I,xc as L,yc as R,zc as je}from"./messages-BOatyqUm.js";import{r as Me}from"./route-wzPKSRj2.js";import{o as z,s as B}from"./search-provider-C-_FQI9C.js";import{i as Ne,t as V}from"./button-C_NDYaz8.js";import{t as Pe}from"./confirm-dialog-D1L-0EhT.js";import{a as H,l as Fe,r as Ie,t as Le}from"./dropdown-menu-DzCIpsuG.js";import{t as Re}from"./label-DNL0sHKL.js";import{t as ze}from"./cookies-BzZOQYPw.js";import{t as U}from"./createLucideIcon-Br0Bd5k2.js";import{a as W,c as Be,d as Ve,f as He,l as Ue,n as We,o as Ge,r as Ke,s as qe,t as Je,u as Ye}from"./data-table-1LQSBhN2.js";import{a as Xe,i as Ze,r as Qe}from"./epusdt-BvGYu9TV.js";import{t as $e}from"./download-fYUtNZ3R.js";import{t as et}from"./ellipsis-74ly4-Wm.js";import{t as tt}from"./eye-DAKGLydt.js";import{r as nt}from"./empty-state-CxE4wU3V.js";import{n as rt,t as it}from"./main-C1R3Hvq1.js";import{a as at,i as G,o as K,r as q,s as J,t as Y}from"./dialog-CZ-2RPb-.js";import{n as X}from"./dist-JOUh6qvR.js";import{t as ot}from"./input-8zzM34r5.js";import{t as st}from"./page-header-GTtyZFBB.js";import{t as ct}from"./badge-VJlwwTW5.js";import{t as lt}from"./use-table-url-state-DP0Y4QjR.js";import{t as Z}from"./long-text-DNqlDi0R.js";import{t as ut}from"./coming-soon-dialog-B34F88bO.js";var dt=U(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),ft=U(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]),Q=e(i(),1),$=Oe();function pt({open:e,onOpenChange:t,order:n,isLoading:r}){let i=[[`Trade ID`,n?.trade_id??`-`],[he(),n?.order_id??`-`],[Te(),n?.name??`-`],[be(),`${B(n?.amount)} ${n?.currency??``}`.trim()||`-`],[De(),`${B(n?.actual_amount,6)} ${n?.token??``}`.trim()||`-`],[pe(),n?.network??`-`],[a(),n?.receive_address??`-`],[x(),n?.notify_url??`-`],[k(),n?.redirect_url??`-`],[E(),n?.block_transaction_id??`-`],[D(),n?.parent_trade_id??`-`],[g(),z(n?.created_at)||`-`],[we(),z(n?.updated_at)||`-`]];return(0,$.jsx)(Y,{onOpenChange:t,open:e,children:(0,$.jsxs)(q,{className:`sm:max-w-3xl`,children:[(0,$.jsxs)(K,{children:[(0,$.jsx)(J,{children:_()}),(0,$.jsx)(G,{children:f()})]}),r?(0,$.jsx)(`div`,{className:`py-8 text-center text-muted-foreground text-sm`,children:T()}):(0,$.jsx)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:i.map(([e,t])=>(0,$.jsxs)(`div`,{className:`rounded-lg border p-3`,children:[(0,$.jsx)(`div`,{className:`mb-1 text-muted-foreground text-xs`,children:e}),(0,$.jsx)(`div`,{className:`break-all text-sm`,children:t})]},e))})]})})}function mt(e){return[{accessorFn:e=>String(e.status??1),id:`status`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:y()}),cell:({row:e})=>{let t=e.original.status??1;return(0,$.jsx)(ct,{className:Ze[t],children:Qe(t)})},filterFn:(e,t,n)=>n.includes(String(e.getValue(t))),meta:{label:y(),skeleton:`badge`}},{accessorKey:`trade_id`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:`Trade ID`}),cell:({row:e})=>(0,$.jsx)(Z,{className:`font-medium`,children:e.original.trade_id}),enableHiding:!1,meta:{label:`Trade ID`,skeleton:`id`}},{accessorKey:`order_id`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:l()}),cell:({row:e})=>(0,$.jsx)(Z,{className:`min-w-40`,children:e.original.order_id}),meta:{label:l(),skeleton:`id`}},{accessorKey:`name`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:u()}),cell:({row:e})=>e.original.name??`-`,meta:{label:u(),skeleton:`short`}},{accessorKey:`amount`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:C()}),cell:({row:e})=>`${B(e.original.amount)} ${e.original.currency||``}`,meta:{label:C(),skeleton:`amount`}},{accessorKey:`actual_amount`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:I()}),cell:({row:e})=>`${B(e.original.actual_amount,6)} ${e.original.token||``}`,meta:{label:I(),skeleton:`amount`}},{accessorKey:`network`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:c()}),id:`chain`,meta:{label:c(),skeleton:`short`}},{accessorKey:`receive_address`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:S()}),cell:({row:e})=>(0,$.jsx)(Z,{className:`min-w-36`,children:e.original.receive_address}),meta:{label:S(),skeleton:`long`}},{accessorKey:`created_at`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:L()}),cell:({row:e})=>(0,$.jsx)(`div`,{className:`min-w-32`,children:z(e.original.created_at)}),meta:{label:L(),skeleton:`date`}},{accessorKey:`updated_at`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:M()}),cell:({row:e})=>z(e.original.updated_at),meta:{label:M(),skeleton:`date`}},{accessorKey:`block_transaction_id`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:R()}),cell:({row:e})=>(0,$.jsx)(Z,{className:`min-w-40`,children:e.original.block_transaction_id??`-`}),meta:{label:R(),skeleton:`id`}},{accessorKey:`is_selected`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:Ae()}),cell:({row:e})=>e.original.is_selected?me():fe(),meta:{label:Ae(),skeleton:`badge`}},{accessorKey:`callback_confirm`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:A()}),cell:({row:e})=>ht(e.original.callback_confirm,e.original.parent_trade_id),meta:{label:A(),skeleton:`badge`}},{accessorKey:`callback_num`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:P()}),cell:({row:e})=>e.original.callback_num??0,meta:{label:P(),skeleton:`id`}},{accessorKey:`notify_url`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:F()}),cell:({row:e})=>(0,$.jsx)(Z,{className:`min-w-48`,children:e.original.notify_url??`-`}),meta:{label:F(),skeleton:`long`}},{accessorKey:`redirect_url`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:ye()}),cell:({row:e})=>(0,$.jsx)(Z,{className:`min-w-48`,children:e.original.redirect_url??`-`}),meta:{label:ye(),skeleton:`long`}},{accessorKey:`api_key_id`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:`API Key ID`}),cell:({row:e})=>e.original.api_key_id??`-`,meta:{label:`API Key ID`,skeleton:`id`}},{id:`actions`,enableHiding:!1,meta:{label:Se(),skeleton:`action`,sticky:`right`,className:Ne(`w-12`)},cell:({row:t})=>(0,$.jsxs)(Le,{modal:!1,children:[(0,$.jsx)(Fe,{asChild:!0,children:(0,$.jsxs)(V,{className:`flex h-8 w-8 p-0 data-[state=open]:bg-muted`,variant:`ghost`,children:[(0,$.jsx)(et,{className:`h-4 w-4`}),(0,$.jsx)(`span`,{className:`sr-only`,children:j()})]})}),(0,$.jsxs)(Ie,{align:`end`,className:`w-44`,children:[(0,$.jsxs)(H,{onClick:()=>e(p(),t.original),children:[Ee(),(0,$.jsx)(tt,{className:`ml-auto h-4 w-4`})]}),(0,$.jsxs)(H,{onClick:()=>e(w(),t.original),children:[xe(),(0,$.jsx)(ft,{className:`ml-auto h-4 w-4`})]}),(0,$.jsxs)(H,{onClick:()=>e(b(),t.original),children:[b(),(0,$.jsx)(dt,{className:`ml-auto h-4 w-4`})]}),t.original.status===2&&!!t.original.notify_url&&(0,$.jsxs)(H,{onClick:()=>e(O(),t.original),children:[O(),(0,$.jsx)(nt,{className:`ml-auto h-4 w-4`})]})]})]})}]}function ht(e,t){return e===1?t?.trim()?ve():ke():N()}var gt=Me(`/_authenticated/orders/`);function _t({data:e,isLoading:t,onAction:n,onRefresh:r}){let[i,a]=(0,Q.useState)([]),[s,c]=(0,Q.useState)({}),{globalFilter:l,onGlobalFilterChange:u,columnFilters:ee,onColumnFiltersChange:d,pagination:f,onPaginationChange:p,ensurePageInRange:m}=lt({search:gt.useSearch(),navigate:gt.useNavigate(),pagination:{defaultPage:1,defaultPageSize:10},globalFilter:{enabled:!0,key:`orderNo`},columnFilters:[{columnId:`status`,searchKey:`status`,type:`array`},{columnId:`chain`,searchKey:`chain`,type:`array`}]}),h=Ge({data:e,columns:(0,Q.useMemo)(()=>mt(n),[n]),state:{sorting:i,columnVisibility:s,columnFilters:ee,globalFilter:l,pagination:f},onSortingChange:a,onColumnVisibilityChange:c,onColumnFiltersChange:d,onGlobalFilterChange:u,onPaginationChange:p,globalFilterFn:(e,t,n)=>{let r=String(n).toLowerCase();return String(e.original.id??``).toLowerCase().includes(r)||String(e.original.order_id??``).toLowerCase().includes(r)},getCoreRowModel:qe(),getFilteredRowModel:Ye(),getPaginationRowModel:Ve(),getSortedRowModel:He(),getFacetedRowModel:Be(),getFacetedUniqueValues:Ue()});(0,Q.useEffect)(()=>{m(h.getPageCount())},[h,m]);let g=[...new Set(e.map(e=>e.network).filter(Boolean))].map(e=>({label:e,value:e}));return(0,$.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,$.jsx)(Je,{filters:[{columnId:`status`,title:v(),options:[...Xe]},{columnId:`chain`,title:ge(),options:g}],onRefresh:r,searchPlaceholder:o(),table:h}),(0,$.jsx)(Ke,{className:`min-w-[1200px]`,emptyText:_e(),loading:t,table:h}),(0,$.jsx)(We,{className:`mt-auto`,table:h})]})}var vt={[b()]:b(),[O()]:O()};function yt(){return window.location.origin}function bt(){let e=t.useQuery(`get`,`/admin/api/v1/orders`),i=t.useMutation(`post`,`/admin/api/v1/orders/{trade_id}/close`),a=t.useMutation(`post`,`/admin/api/v1/orders/{trade_id}/mark-paid`),o=t.useMutation(`post`,`/admin/api/v1/orders/{trade_id}/resend-callback`),c=t.useMutation(`get`,`/admin/api/v1/orders/{trade_id}`),[l,u]=(0,Q.useState)(null),[f,g]=(0,Q.useState)(null),[_,v]=(0,Q.useState)(!1),[y,x]=(0,Q.useState)(null),[S,C]=(0,Q.useState)(!1),[T,E]=(0,Q.useState)(``),[D,k]=(0,Q.useState)(!1);async function A(){await r.invalidateQueries({queryKey:[`get`,`/admin/api/v1/orders`]})}async function j(){if(!l?.row.trade_id)return;let e={params:{path:{trade_id:l.row.trade_id}}};l.action===b()?await i.mutateAsync(e):l.action===O()&&await o.mutateAsync(e),X.success(de({action:vt[l.action]})),await A(),u(null)}async function M(){if(!(f?.trade_id&&T.trim())){X.error(ce());return}await a.mutateAsync({params:{path:{trade_id:f.trade_id}},body:{block_transaction_id:T.trim()}}),X.success(ue()),g(null),E(``),await A()}async function N(){k(!0);try{let e=ze(n),t=e?JSON.parse(e):``,r=await fetch(`${yt()}/admin/api/v1/orders/export`,{headers:t?{Authorization:`Bearer ${t}`}:{}});if(!r.ok)throw Error(`Export failed`);let i=await r.blob(),a=window.URL.createObjectURL(i),o=document.createElement(`a`);o.href=a,o.download=`orders-${Date.now()}.csv`,o.click(),window.URL.revokeObjectURL(a),X.success(Ce())}catch{X.error(h())}finally{k(!1)}}return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(rt,{fixed:!0}),(0,$.jsxs)(it,{className:`flex flex-1 flex-col gap-4 sm:gap-6`,children:[(0,$.jsx)(st,{actions:(0,$.jsxs)(V,{disabled:D,onClick:N,variant:`outline`,children:[(0,$.jsx)($e,{className:`mr-2 h-4 w-4`}),D?te():d()]}),description:se(),title:oe()}),(0,$.jsx)(_t,{data:e.data?.data?.list??[],isLoading:e.isLoading,onAction:async(e,t)=>{if(e===p()){C(!0),x((await c.mutateAsync({params:{path:{trade_id:t.trade_id}}})).data??t);return}if(e===b()||e===O()){v(!0);return}if(e===w()){g(t);return}u({action:e,row:t})},onRefresh:()=>e.refetch()})]}),l&&(0,$.jsx)(Pe,{confirmText:s(),desc:(0,$.jsx)(`span`,{children:je({action:l.action,id:String(l.row.trade_id??l.row.id??``)})}),handleConfirm:j,onOpenChange:()=>u(null),open:!0,title:ae({action:l.action})}),(0,$.jsx)(pt,{isLoading:c.isPending,onOpenChange:e=>{C(e),e||x(null)},open:S,order:y}),(0,$.jsx)(Y,{onOpenChange:e=>{e||(g(null),E(``))},open:!!f,children:(0,$.jsxs)(q,{children:[(0,$.jsxs)(K,{children:[(0,$.jsx)(J,{children:ne()}),(0,$.jsx)(G,{children:m({id:String(f?.trade_id??f?.id??``)})})]}),(0,$.jsxs)(`div`,{className:`space-y-2`,children:[(0,$.jsx)(Re,{htmlFor:`blockTransactionId`,children:ee()}),(0,$.jsx)(ot,{id:`blockTransactionId`,onChange:e=>E(e.target.value),placeholder:`0x... / transaction hash`,value:T})]}),(0,$.jsxs)(at,{children:[(0,$.jsx)(V,{onClick:()=>g(null),variant:`outline`,children:le()}),(0,$.jsx)(V,{disabled:a.isPending,onClick:M,children:a.isPending?ie():re()})]})]})}),(0,$.jsx)(ut,{onOpenChange:v,open:_})]})}var xt=bt;export{xt as component}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{a as t,c as n}from"./auth-store-8ocF_FHU.js";import{t as r}from"./router-xxaOxfVd.js";import{t as i}from"./react-CO2uhaBc.js";import{$s as a,Ac as o,Bc as s,Cc as c,Dc as l,Ec as u,Fc as ee,Gc as d,Gs as f,Hc as p,Ic as m,Jc as h,Js as g,Kc as te,Ks as _,Lc as ne,Mc as v,Nc as re,Oc as y,Pc as ie,Qc as b,Qs as x,Rc as ae,Sc as S,Tc as C,Uc as oe,Vc as w,Wc as se,Ws as T,Xc as ce,Xp as le,Xs as E,Yc as ue,Ys as D,Zc as O,Zs as k,_c as A,ac as j,bc as M,cc as N,ci as de,dc as fe,ec as pe,fc as me,gc as P,hc as F,ic as he,jc as ge,kc as _e,lc as ve,mc as ye,nc as be,oc as xe,pc as Se,qc as Ce,qs as we,rc as Te,sc as Ee,tc as De,tm as Oe,uc as ke,vc as Ae,wc as I,xc as L,yc as R,zc as je}from"./messages-CL4J6BaJ.js";import{r as Me}from"./route-gtb8yu3E.js";import{o as z,s as B}from"./search-provider-CTRbHqNx.js";import{i as Ne,t as V}from"./button-NLSeBFht.js";import{t as Pe}from"./confirm-dialog-Crc1Jrzv.js";import{a as H,l as Fe,r as Ie,t as Le}from"./dropdown-menu-D72UcvWG.js";import{t as Re}from"./label-DohxFN8a.js";import{t as ze}from"./cookies-BzZOQYPw.js";import{t as U}from"./createLucideIcon-Br0Bd5k2.js";import{a as W,c as Be,d as Ve,f as He,l as Ue,n as We,o as Ge,r as Ke,s as qe,t as Je,u as Ye}from"./data-table-DC6T69tr.js";import{a as Xe,i as Ze,r as Qe}from"./epusdt-DDJlVqbb.js";import{t as $e}from"./download-fYUtNZ3R.js";import{t as et}from"./ellipsis-74ly4-Wm.js";import{t as tt}from"./eye-DAKGLydt.js";import{r as nt}from"./empty-state-BtKoq2f4.js";import{n as rt,t as it}from"./main-CTY49s_f.js";import{a as at,i as G,o as K,r as q,s as J,t as Y}from"./dialog-CtyiwzAl.js";import{n as X}from"./dist-Dd-sCJIt.js";import{t as ot}from"./input-DAqep8ZY.js";import{t as st}from"./page-header-B7O10aw9.js";import{t as ct}from"./badge-BRKB3301.js";import{t as lt}from"./use-table-url-state-DP0Y4QjR.js";import{t as Z}from"./long-text-COpCfVI1.js";import{t as ut}from"./coming-soon-dialog-CN8U5tTP.js";var dt=U(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),ft=U(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]),Q=e(i(),1),$=Oe();function pt({open:e,onOpenChange:t,order:n,isLoading:r}){let i=[[`Trade ID`,n?.trade_id??`-`],[he(),n?.order_id??`-`],[Te(),n?.name??`-`],[be(),`${B(n?.amount)} ${n?.currency??``}`.trim()||`-`],[De(),`${B(n?.actual_amount,6)} ${n?.token??``}`.trim()||`-`],[pe(),n?.network??`-`],[a(),n?.receive_address??`-`],[x(),n?.notify_url??`-`],[k(),n?.redirect_url??`-`],[E(),n?.block_transaction_id??`-`],[D(),n?.parent_trade_id??`-`],[g(),z(n?.created_at)||`-`],[we(),z(n?.updated_at)||`-`]];return(0,$.jsx)(Y,{onOpenChange:t,open:e,children:(0,$.jsxs)(q,{className:`sm:max-w-3xl`,children:[(0,$.jsxs)(K,{children:[(0,$.jsx)(J,{children:_()}),(0,$.jsx)(G,{children:f()})]}),r?(0,$.jsx)(`div`,{className:`py-8 text-center text-muted-foreground text-sm`,children:T()}):(0,$.jsx)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:i.map(([e,t])=>(0,$.jsxs)(`div`,{className:`rounded-lg border p-3`,children:[(0,$.jsx)(`div`,{className:`mb-1 text-muted-foreground text-xs`,children:e}),(0,$.jsx)(`div`,{className:`break-all text-sm`,children:t})]},e))})]})})}function mt(e){return[{accessorFn:e=>String(e.status??1),id:`status`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:y()}),cell:({row:e})=>{let t=e.original.status??1;return(0,$.jsx)(ct,{className:Ze[t],children:Qe(t)})},filterFn:(e,t,n)=>n.includes(String(e.getValue(t))),meta:{label:y(),skeleton:`badge`}},{accessorKey:`trade_id`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:`Trade ID`}),cell:({row:e})=>(0,$.jsx)(Z,{className:`font-medium`,children:e.original.trade_id}),enableHiding:!1,meta:{label:`Trade ID`,skeleton:`id`}},{accessorKey:`order_id`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:l()}),cell:({row:e})=>(0,$.jsx)(Z,{className:`min-w-40`,children:e.original.order_id}),meta:{label:l(),skeleton:`id`}},{accessorKey:`name`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:u()}),cell:({row:e})=>e.original.name??`-`,meta:{label:u(),skeleton:`short`}},{accessorKey:`amount`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:C()}),cell:({row:e})=>`${B(e.original.amount)} ${e.original.currency||``}`,meta:{label:C(),skeleton:`amount`}},{accessorKey:`actual_amount`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:I()}),cell:({row:e})=>`${B(e.original.actual_amount,6)} ${e.original.token||``}`,meta:{label:I(),skeleton:`amount`}},{accessorKey:`network`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:c()}),id:`chain`,meta:{label:c(),skeleton:`short`}},{accessorKey:`receive_address`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:S()}),cell:({row:e})=>(0,$.jsx)(Z,{className:`min-w-36`,children:e.original.receive_address}),meta:{label:S(),skeleton:`long`}},{accessorKey:`created_at`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:L()}),cell:({row:e})=>(0,$.jsx)(`div`,{className:`min-w-32`,children:z(e.original.created_at)}),meta:{label:L(),skeleton:`date`}},{accessorKey:`updated_at`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:M()}),cell:({row:e})=>z(e.original.updated_at),meta:{label:M(),skeleton:`date`}},{accessorKey:`block_transaction_id`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:R()}),cell:({row:e})=>(0,$.jsx)(Z,{className:`min-w-40`,children:e.original.block_transaction_id??`-`}),meta:{label:R(),skeleton:`id`}},{accessorKey:`is_selected`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:Ae()}),cell:({row:e})=>e.original.is_selected?me():fe(),meta:{label:Ae(),skeleton:`badge`}},{accessorKey:`callback_confirm`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:A()}),cell:({row:e})=>ht(e.original.callback_confirm,e.original.parent_trade_id),meta:{label:A(),skeleton:`badge`}},{accessorKey:`callback_num`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:P()}),cell:({row:e})=>e.original.callback_num??0,meta:{label:P(),skeleton:`id`}},{accessorKey:`notify_url`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:F()}),cell:({row:e})=>(0,$.jsx)(Z,{className:`min-w-48`,children:e.original.notify_url??`-`}),meta:{label:F(),skeleton:`long`}},{accessorKey:`redirect_url`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:ye()}),cell:({row:e})=>(0,$.jsx)(Z,{className:`min-w-48`,children:e.original.redirect_url??`-`}),meta:{label:ye(),skeleton:`long`}},{accessorKey:`api_key_id`,header:({column:e})=>(0,$.jsx)(W,{column:e,title:`API Key ID`}),cell:({row:e})=>e.original.api_key_id??`-`,meta:{label:`API Key ID`,skeleton:`id`}},{id:`actions`,enableHiding:!1,meta:{label:Se(),skeleton:`action`,sticky:`right`,className:Ne(`w-12`)},cell:({row:t})=>(0,$.jsxs)(Le,{modal:!1,children:[(0,$.jsx)(Fe,{asChild:!0,children:(0,$.jsxs)(V,{className:`flex h-8 w-8 p-0 data-[state=open]:bg-muted`,variant:`ghost`,children:[(0,$.jsx)(et,{className:`h-4 w-4`}),(0,$.jsx)(`span`,{className:`sr-only`,children:j()})]})}),(0,$.jsxs)(Ie,{align:`end`,className:`w-44`,children:[(0,$.jsxs)(H,{onClick:()=>e(p(),t.original),children:[Ee(),(0,$.jsx)(tt,{className:`ml-auto h-4 w-4`})]}),(0,$.jsxs)(H,{onClick:()=>e(w(),t.original),children:[xe(),(0,$.jsx)(ft,{className:`ml-auto h-4 w-4`})]}),(0,$.jsxs)(H,{onClick:()=>e(b(),t.original),children:[b(),(0,$.jsx)(dt,{className:`ml-auto h-4 w-4`})]}),t.original.status===2&&!!t.original.notify_url&&(0,$.jsxs)(H,{onClick:()=>e(O(),t.original),children:[O(),(0,$.jsx)(nt,{className:`ml-auto h-4 w-4`})]})]})]})}]}function ht(e,t){return e===1?t?.trim()?ve():ke():N()}var gt=Me(`/_authenticated/orders/`);function _t({data:e,isLoading:t,onAction:n,onRefresh:r}){let[i,a]=(0,Q.useState)([]),[s,c]=(0,Q.useState)({}),{globalFilter:l,onGlobalFilterChange:u,columnFilters:ee,onColumnFiltersChange:d,pagination:f,onPaginationChange:p,ensurePageInRange:m}=lt({search:gt.useSearch(),navigate:gt.useNavigate(),pagination:{defaultPage:1,defaultPageSize:10},globalFilter:{enabled:!0,key:`orderNo`},columnFilters:[{columnId:`status`,searchKey:`status`,type:`array`},{columnId:`chain`,searchKey:`chain`,type:`array`}]}),h=Ge({data:e,columns:(0,Q.useMemo)(()=>mt(n),[n]),state:{sorting:i,columnVisibility:s,columnFilters:ee,globalFilter:l,pagination:f},onSortingChange:a,onColumnVisibilityChange:c,onColumnFiltersChange:d,onGlobalFilterChange:u,onPaginationChange:p,globalFilterFn:(e,t,n)=>{let r=String(n).toLowerCase();return String(e.original.id??``).toLowerCase().includes(r)||String(e.original.order_id??``).toLowerCase().includes(r)},getCoreRowModel:qe(),getFilteredRowModel:Ye(),getPaginationRowModel:Ve(),getSortedRowModel:He(),getFacetedRowModel:Be(),getFacetedUniqueValues:Ue()});(0,Q.useEffect)(()=>{m(h.getPageCount())},[h,m]);let g=[...new Set(e.map(e=>e.network).filter(Boolean))].map(e=>({label:e,value:e}));return(0,$.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,$.jsx)(Je,{filters:[{columnId:`status`,title:v(),options:[...Xe]},{columnId:`chain`,title:ge(),options:g}],onRefresh:r,searchPlaceholder:o(),table:h}),(0,$.jsx)(Ke,{className:`min-w-[1200px]`,emptyText:_e(),loading:t,table:h}),(0,$.jsx)(We,{className:`mt-auto`,table:h})]})}var vt={[b()]:b(),[O()]:O()};function yt(){return window.location.origin}function bt(){let e=t.useQuery(`get`,`/admin/api/v1/orders`),i=t.useMutation(`post`,`/admin/api/v1/orders/{trade_id}/close`),a=t.useMutation(`post`,`/admin/api/v1/orders/{trade_id}/mark-paid`),o=t.useMutation(`post`,`/admin/api/v1/orders/{trade_id}/resend-callback`),c=t.useMutation(`get`,`/admin/api/v1/orders/{trade_id}`),[l,u]=(0,Q.useState)(null),[f,g]=(0,Q.useState)(null),[_,v]=(0,Q.useState)(!1),[y,x]=(0,Q.useState)(null),[S,C]=(0,Q.useState)(!1),[T,E]=(0,Q.useState)(``),[D,k]=(0,Q.useState)(!1);async function A(){await r.invalidateQueries({queryKey:[`get`,`/admin/api/v1/orders`]})}async function j(){if(!l?.row.trade_id)return;let e={params:{path:{trade_id:l.row.trade_id}}};l.action===b()?await i.mutateAsync(e):l.action===O()&&await o.mutateAsync(e),X.success(de({action:vt[l.action]})),await A(),u(null)}async function M(){if(!(f?.trade_id&&T.trim())){X.error(ce());return}await a.mutateAsync({params:{path:{trade_id:f.trade_id}},body:{block_transaction_id:T.trim()}}),X.success(ue()),g(null),E(``),await A()}async function N(){k(!0);try{let e=ze(n),t=e?JSON.parse(e):``,r=await fetch(`${yt()}/admin/api/v1/orders/export`,{headers:t?{Authorization:`Bearer ${t}`}:{}});if(!r.ok)throw Error(`Export failed`);let i=await r.blob(),a=window.URL.createObjectURL(i),o=document.createElement(`a`);o.href=a,o.download=`orders-${Date.now()}.csv`,o.click(),window.URL.revokeObjectURL(a),X.success(Ce())}catch{X.error(h())}finally{k(!1)}}return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(rt,{fixed:!0}),(0,$.jsxs)(it,{className:`flex flex-1 flex-col gap-4 sm:gap-6`,children:[(0,$.jsx)(st,{actions:(0,$.jsxs)(V,{disabled:D,onClick:N,variant:`outline`,children:[(0,$.jsx)($e,{className:`mr-2 h-4 w-4`}),D?te():d()]}),description:se(),title:oe()}),(0,$.jsx)(_t,{data:e.data?.data?.list??[],isLoading:e.isLoading,onAction:async(e,t)=>{if(e===p()){C(!0),x((await c.mutateAsync({params:{path:{trade_id:t.trade_id}}})).data??t);return}if(e===b()||e===O()){v(!0);return}if(e===w()){g(t);return}u({action:e,row:t})},onRefresh:()=>e.refetch()})]}),l&&(0,$.jsx)(Pe,{confirmText:s(),desc:(0,$.jsx)(`span`,{children:je({action:l.action,id:String(l.row.trade_id??l.row.id??``)})}),handleConfirm:j,onOpenChange:()=>u(null),open:!0,title:ae({action:l.action})}),(0,$.jsx)(pt,{isLoading:c.isPending,onOpenChange:e=>{C(e),e||x(null)},open:S,order:y}),(0,$.jsx)(Y,{onOpenChange:e=>{e||(g(null),E(``))},open:!!f,children:(0,$.jsxs)(q,{children:[(0,$.jsxs)(K,{children:[(0,$.jsx)(J,{children:ne()}),(0,$.jsx)(G,{children:m({id:String(f?.trade_id??f?.id??``)})})]}),(0,$.jsxs)(`div`,{className:`space-y-2`,children:[(0,$.jsx)(Re,{htmlFor:`blockTransactionId`,children:ee()}),(0,$.jsx)(ot,{id:`blockTransactionId`,onChange:e=>E(e.target.value),placeholder:`0x... / transaction hash`,value:T})]}),(0,$.jsxs)(at,{children:[(0,$.jsx)(V,{onClick:()=>g(null),variant:`outline`,children:le()}),(0,$.jsx)(V,{disabled:a.isPending,onClick:M,children:a.isPending?ie():re()})]})]})}),(0,$.jsx)(ut,{onOpenChange:v,open:_})]})}var xt=bt;export{xt as component}; \ No newline at end of file diff --git a/src/www/assets/page-header-GTtyZFBB.js b/src/www/assets/page-header-B7O10aw9.js similarity index 87% rename from src/www/assets/page-header-GTtyZFBB.js rename to src/www/assets/page-header-B7O10aw9.js index 6ae7e7b..41e11d6 100644 --- a/src/www/assets/page-header-GTtyZFBB.js +++ b/src/www/assets/page-header-B7O10aw9.js @@ -1 +1 @@ -import{tm as e}from"./messages-BOatyqUm.js";import{t}from"./separator-CsUemQNs.js";var n=e();function r({title:e,description:r,actions:i,children:a,variant:o=`page`}){return o===`section`?(0,n.jsxs)(`div`,{className:`flex flex-1 flex-col`,children:[(0,n.jsxs)(`div`,{className:`flex-none`,children:[(0,n.jsx)(`h3`,{className:`font-medium text-lg`,children:e}),r&&(0,n.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:r})]}),(0,n.jsx)(t,{className:`my-4 flex-none`}),(0,n.jsx)(`div`,{className:`faded-bottom h-full w-full overflow-y-auto scroll-smooth pe-4 pb-12`,children:(0,n.jsx)(`div`,{className:`-mx-1 px-1.5 lg:max-w-xl`,children:a})})]}):(0,n.jsxs)(`div`,{className:`flex flex-wrap items-end justify-between gap-2`,children:[(0,n.jsxs)(`div`,{children:[(0,n.jsx)(`h2`,{className:`font-bold text-2xl tracking-tight`,children:e}),r&&(0,n.jsx)(`p`,{className:`text-muted-foreground`,children:r})]}),i&&(0,n.jsx)(`div`,{className:`flex gap-2`,children:i})]})}export{r as t}; \ No newline at end of file +import{tm as e}from"./messages-CL4J6BaJ.js";import{t}from"./separator-CqhQIQ-B.js";var n=e();function r({title:e,description:r,actions:i,children:a,variant:o=`page`}){return o===`section`?(0,n.jsxs)(`div`,{className:`flex flex-1 flex-col`,children:[(0,n.jsxs)(`div`,{className:`flex-none`,children:[(0,n.jsx)(`h3`,{className:`font-medium text-lg`,children:e}),r&&(0,n.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:r})]}),(0,n.jsx)(t,{className:`my-4 flex-none`}),(0,n.jsx)(`div`,{className:`faded-bottom h-full w-full overflow-y-auto scroll-smooth pe-4 pb-12`,children:(0,n.jsx)(`div`,{className:`-mx-1 px-1.5 lg:max-w-xl`,children:a})})]}):(0,n.jsxs)(`div`,{className:`flex flex-wrap items-end justify-between gap-2`,children:[(0,n.jsxs)(`div`,{children:[(0,n.jsx)(`h2`,{className:`font-bold text-2xl tracking-tight`,children:e}),r&&(0,n.jsx)(`p`,{className:`text-muted-foreground`,children:r})]}),i&&(0,n.jsx)(`div`,{className:`flex gap-2`,children:i})]})}export{r as t}; \ No newline at end of file diff --git a/src/www/assets/password-DElKXGVw.js b/src/www/assets/password-CAMOij5G.js similarity index 83% rename from src/www/assets/password-DElKXGVw.js rename to src/www/assets/password-CAMOij5G.js index 8132828..d506884 100644 --- a/src/www/assets/password-DElKXGVw.js +++ b/src/www/assets/password-CAMOij5G.js @@ -1 +1 @@ -import{a as e}from"./auth-store-De4Y7PFV.js";import{$r as t,Lf as n,Qr as r,Rf as i,Xr as a,Yr as o,Zr as s,ai as c,ei as l,ii as u,ni as d,oi as f,ri as p,si as m,ti as h,tm as g}from"./messages-BOatyqUm.js";import{t as _}from"./button-C_NDYaz8.js";import{n as v}from"./dist-JOUh6qvR.js";import{c as y,s as b}from"./zod-rwFXxHlg.js";import{a as x,c as S,i as C,l as w,n as T,o as E,s as D,t as O}from"./form-KfFEakes.js";import{t as k}from"./password-input-95hMTMdh.js";import{t as A}from"./page-header-GTtyZFBB.js";var j=g(),M=b({old_password:y().min(1,m()),new_password:y().min(8,f()),confirm_password:y().min(1,c())}).refine(e=>e.new_password===e.confirm_password,{message:u(),path:[`confirm_password`]});function N(){let n=w({resolver:S(M),defaultValues:{old_password:``,new_password:``,confirm_password:``}}),i=e.useMutation(`post`,`/admin/api/v1/auth/password`);async function c(e){await i.mutateAsync({body:{old_password:e.old_password,new_password:e.new_password}}),v.success(p()),n.reset()}return(0,j.jsx)(O,{...n,children:(0,j.jsxs)(`form`,{className:`max-w-md space-y-4`,onSubmit:n.handleSubmit(c),children:[(0,j.jsx)(C,{control:n.control,name:`old_password`,render:({field:e})=>(0,j.jsxs)(x,{children:[(0,j.jsx)(E,{children:d()}),(0,j.jsx)(T,{children:(0,j.jsx)(k,{placeholder:h(),...e})}),(0,j.jsx)(D,{})]})}),(0,j.jsx)(C,{control:n.control,name:`new_password`,render:({field:e})=>(0,j.jsxs)(x,{children:[(0,j.jsx)(E,{children:l()}),(0,j.jsx)(T,{children:(0,j.jsx)(k,{placeholder:t(),...e})}),(0,j.jsx)(D,{})]})}),(0,j.jsx)(C,{control:n.control,name:`confirm_password`,render:({field:e})=>(0,j.jsxs)(x,{children:[(0,j.jsx)(E,{children:r()}),(0,j.jsx)(T,{children:(0,j.jsx)(k,{placeholder:s(),...e})}),(0,j.jsx)(D,{})]})}),(0,j.jsx)(_,{disabled:i.isPending,type:`submit`,children:i.isPending?a():o()})]})})}function P(){return(0,j.jsx)(A,{description:n(),title:i(),variant:`section`,children:(0,j.jsx)(N,{})})}var F=P;export{F as component}; \ No newline at end of file +import{a as e}from"./auth-store-8ocF_FHU.js";import{$r as t,Lf as n,Qr as r,Rf as i,Xr as a,Yr as o,Zr as s,ai as c,ei as l,ii as u,ni as d,oi as f,ri as p,si as m,ti as h,tm as g}from"./messages-CL4J6BaJ.js";import{t as _}from"./button-NLSeBFht.js";import{n as v}from"./dist-Dd-sCJIt.js";import{c as y,s as b}from"./zod-rwFXxHlg.js";import{a as x,c as S,i as C,l as w,n as T,o as E,s as D,t as O}from"./form-C_YekIvK.js";import{t as k}from"./password-input-D9YsRteD.js";import{t as A}from"./page-header-B7O10aw9.js";var j=g(),M=b({old_password:y().min(1,m()),new_password:y().min(8,f()),confirm_password:y().min(1,c())}).refine(e=>e.new_password===e.confirm_password,{message:u(),path:[`confirm_password`]});function N(){let n=w({resolver:S(M),defaultValues:{old_password:``,new_password:``,confirm_password:``}}),i=e.useMutation(`post`,`/admin/api/v1/auth/password`);async function c(e){await i.mutateAsync({body:{old_password:e.old_password,new_password:e.new_password}}),v.success(p()),n.reset()}return(0,j.jsx)(O,{...n,children:(0,j.jsxs)(`form`,{className:`max-w-md space-y-4`,onSubmit:n.handleSubmit(c),children:[(0,j.jsx)(C,{control:n.control,name:`old_password`,render:({field:e})=>(0,j.jsxs)(x,{children:[(0,j.jsx)(E,{children:d()}),(0,j.jsx)(T,{children:(0,j.jsx)(k,{placeholder:h(),...e})}),(0,j.jsx)(D,{})]})}),(0,j.jsx)(C,{control:n.control,name:`new_password`,render:({field:e})=>(0,j.jsxs)(x,{children:[(0,j.jsx)(E,{children:l()}),(0,j.jsx)(T,{children:(0,j.jsx)(k,{placeholder:t(),...e})}),(0,j.jsx)(D,{})]})}),(0,j.jsx)(C,{control:n.control,name:`confirm_password`,render:({field:e})=>(0,j.jsxs)(x,{children:[(0,j.jsx)(E,{children:r()}),(0,j.jsx)(T,{children:(0,j.jsx)(k,{placeholder:s(),...e})}),(0,j.jsx)(D,{})]})}),(0,j.jsx)(_,{disabled:i.isPending,type:`submit`,children:i.isPending?a():o()})]})})}function P(){return(0,j.jsx)(A,{description:n(),title:i(),variant:`section`,children:(0,j.jsx)(N,{})})}var F=P;export{F as component}; \ No newline at end of file diff --git a/src/www/assets/password-input-95hMTMdh.js b/src/www/assets/password-input-D9YsRteD.js similarity index 76% rename from src/www/assets/password-input-95hMTMdh.js rename to src/www/assets/password-input-D9YsRteD.js index 7955d84..9c65821 100644 --- a/src/www/assets/password-input-95hMTMdh.js +++ b/src/www/assets/password-input-D9YsRteD.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{i as r,t as i}from"./button-C_NDYaz8.js";import{t as a}from"./eye-off-B8hO0oST.js";import{t as o}from"./eye-DAKGLydt.js";import{t as s}from"./input-8zzM34r5.js";var c=e(t(),1),l=n();function u({className:e,disabled:t,onVisibilityChange:n,ref:u,...d}){let[f,p]=c.useState(!1);return(0,l.jsxs)(`div`,{className:r(`relative`,e),children:[(0,l.jsx)(s,{className:`pr-9`,disabled:t,ref:u,type:f?`text`:`password`,...d}),(0,l.jsx)(i,{className:`absolute inset-e-1 top-1/2 h-6 w-6 -translate-y-1/2 rounded-md text-muted-foreground`,disabled:t,onClick:()=>{p(e=>{let t=!e;return n?.(t),t})},size:`icon`,type:`button`,variant:`ghost`,children:f?(0,l.jsx)(o,{size:18}):(0,l.jsx)(a,{size:18})})]})}export{u as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";import{i as r,t as i}from"./button-NLSeBFht.js";import{t as a}from"./eye-off-B8hO0oST.js";import{t as o}from"./eye-DAKGLydt.js";import{t as s}from"./input-DAqep8ZY.js";var c=e(t(),1),l=n();function u({className:e,disabled:t,onVisibilityChange:n,ref:u,...d}){let[f,p]=c.useState(!1);return(0,l.jsxs)(`div`,{className:r(`relative`,e),children:[(0,l.jsx)(s,{className:`pr-9`,disabled:t,ref:u,type:f?`text`:`password`,...d}),(0,l.jsx)(i,{className:`absolute inset-e-1 top-1/2 h-6 w-6 -translate-y-1/2 rounded-md text-muted-foreground`,disabled:t,onClick:()=>{p(e=>{let t=!e;return n?.(t),t})},size:`icon`,type:`button`,variant:`ghost`,children:f?(0,l.jsx)(o,{size:18}):(0,l.jsx)(a,{size:18})})]})}export{u as t}; \ No newline at end of file diff --git a/src/www/assets/pay-BNu4n_oI.js b/src/www/assets/pay-B10TXgVj.js similarity index 85% rename from src/www/assets/pay-BNu4n_oI.js rename to src/www/assets/pay-B10TXgVj.js index f59d104..c7dbf9d 100644 --- a/src/www/assets/pay-BNu4n_oI.js +++ b/src/www/assets/pay-B10TXgVj.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/editor.client-CF-kC0wX.js","assets/chunk-DECur_0Z.js","assets/preload-helper-DoS0eHac.js","assets/button-C_NDYaz8.js","assets/clsx-D9aGYY3V.js","assets/messages-BOatyqUm.js","assets/react-CO2uhaBc.js","assets/tabs-6Ep1KePr.js","assets/dist-DPPquN_M.js","assets/dist-BNFQuJTu.js","assets/dist-D4X8zGEB.js","assets/dist-DvwKOQ8R.js","assets/dist-Cc8_LDAq.js","assets/dist-D0DoWChj.js","assets/dist-CHFjpVqk.js","assets/createLucideIcon-Br0Bd5k2.js","assets/dialog-CZ-2RPb-.js","assets/dist-iiotRAEO.js","assets/dist-rcWP-8Cu.js","assets/es2015-DT8UeWzs.js"])))=>i.map(i=>d[i]); -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{Bn as n,Gn as r,Hn as i,Jn as a,Kn as o,Pf as s,Un as c,Vn as l,Wn as u,Yn as ee,ar as te,cr as d,dr as f,ir as p,lr as m,nr as h,or as g,qn as ne,rr as re,sr as ie,tm as ae,ur as _,zn as oe}from"./messages-BOatyqUm.js";import{t as v}from"./button-C_NDYaz8.js";import{t as se}from"./preload-helper-DoS0eHac.js";import{t as y}from"./arrow-left-right-CcCrkQiR.js";import{c as b,s as x}from"./zod-rwFXxHlg.js";import{a as S,c as ce,i as C,l as le,n as w,o as T,r as E,s as D,t as O}from"./form-KfFEakes.js";import{t as k}from"./input-8zzM34r5.js";import{t as A}from"./page-header-GTtyZFBB.js";import{a as j,i as M,n as N,o as P,r as F,t as I}from"./table-9UOy2Vxt.js";import{a as L,i as R,n as z,r as B,t as V}from"./lib-DDezYSnW.js";var H=e(t(),1),U=ae(),W=(0,H.lazy)(async()=>({default:(await se(()=>import(`./editor.client-CF-kC0wX.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]))).ClientEditor}));function ue(e){let[t,n]=(0,H.useState)(!1);return(0,H.useEffect)(()=>{n(!0)},[]),t?(0,U.jsx)(H.Suspense,{fallback:(0,U.jsx)(G,{...e}),children:(0,U.jsx)(W,{...e})}):(0,U.jsx)(G,{...e})}function G({className:e,disabled:t}){return(0,U.jsx)(`div`,{className:e,children:(0,U.jsx)(`div`,{className:[`h-64 rounded-sm border border-border/80 bg-background shadow-none`,t?`opacity-70`:``].filter(Boolean).join(` `)})})}var de=x({amountPrecision:b().min(1,_()).refine(e=>{let t=Number(e);return Number.isInteger(t)&&t>=2&&t<=6},{message:_()}),apiUrl:b().url(m()),forcedUsdtRate:b().refine(he,{message:d()})});function fe(){let e=R(`rate`),t=R(`system`),r=L(),i=le({resolver:ce(de),defaultValues:{amountPrecision:`2`,apiUrl:``,forcedUsdtRate:K}});(0,H.useEffect)(()=>{let n=e.data?.data,r=t.data?.data;n&&r&&i.reset({amountPrecision:V(r,`system.amount_precision`,`2`),apiUrl:V(n,`rate.api_url`),forcedUsdtRate:_e(n)})},[e.data,t.data,i]);async function o(){await z(r.mutateAsync,[{group:`rate`,key:`rate.api_url`,type:`string`,value:``},{group:`rate`,key:`rate.forced_rate_list`,type:`json`,value:{}},{group:`system`,key:`system.amount_precision`,type:`int`,value:2}],ie()),await e.refetch(),await t.refetch()}async function s(n){let a=n.forcedUsdtRate.trim()?Z(n.forcedUsdtRate):K;i.setValue(`forcedUsdtRate`,a),await B(r.mutateAsync,[{group:`rate`,key:`rate.api_url`,type:`string`,value:n.apiUrl},{group:`rate`,key:`rate.forced_rate_list`,type:`json`,value:Y(a)},{group:`system`,key:`system.amount_precision`,type:`int`,value:n.amountPrecision}],g()),await e.refetch(),await t.refetch()}let c=e.isLoading||t.isLoading;return(0,U.jsx)(O,{...i,children:(0,U.jsxs)(`form`,{className:`space-y-6`,onSubmit:i.handleSubmit(s),children:[(0,U.jsx)(C,{control:i.control,name:`amountPrecision`,render:({field:e})=>(0,U.jsxs)(S,{children:[(0,U.jsx)(T,{children:te()}),(0,U.jsx)(w,{children:(0,U.jsx)(k,{max:6,min:2,step:1,type:`number`,...e})}),(0,U.jsx)(D,{})]})}),(0,U.jsx)(C,{control:i.control,name:`apiUrl`,render:({field:e})=>(0,U.jsxs)(S,{children:[(0,U.jsx)(T,{children:p()}),(0,U.jsx)(w,{children:(0,U.jsx)(k,{...e})}),(0,U.jsxs)(E,{children:[re(),` `,(0,U.jsx)(`a`,{className:`font-medium text-primary underline-offset-4 hover:underline`,href:`https://epusdt.com/guide/faq`,rel:`noreferrer`,target:`_blank`,children:h()})]}),(0,U.jsx)(D,{})]})}),(0,U.jsx)(C,{control:i.control,name:`forcedUsdtRate`,render:({field:e})=>(0,U.jsxs)(S,{children:[(0,U.jsx)(T,{children:ee()}),(0,U.jsx)(w,{children:(0,U.jsx)(ue,{autoFormat:!0,className:`h-72`,defaultView:`split`,language:`json`,markdownPreview:!1,onChange:e.onChange,preview:{content:(0,U.jsx)(pe,{value:e.value}),label:a()},toolbarExample:{value:me},value:e.value})}),(0,U.jsx)(D,{})]})}),(0,U.jsxs)(`div`,{className:`flex gap-2`,children:[(0,U.jsx)(v,{disabled:r.isPending||c,type:`submit`,children:n()}),(0,U.jsx)(v,{disabled:r.isPending,onClick:o,type:`button`,variant:`outline`,children:oe()})]})]})})}function pe({value:e}){let[t,n]=(0,H.useState)(!1),a=J(e);if(!a)return(0,U.jsx)(`div`,{className:`rounded-md border border-destructive/30 bg-destructive/10 p-3 text-destructive text-sm`,children:d()});let s=a.map(e=>ge(e,t));return(0,U.jsxs)(`div`,{className:`space-y-3`,children:[(0,U.jsxs)(`div`,{className:`flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between`,children:[(0,U.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:ne()}),s.length>0?(0,U.jsxs)(v,{className:`sm:shrink-0`,onClick:()=>n(e=>!e),size:`sm`,type:`button`,variant:`outline`,children:[(0,U.jsx)(y,{}),t?i():c()]}):null]}),s.length===0?(0,U.jsx)(`div`,{className:`rounded-md border bg-muted/30 p-3 text-muted-foreground text-sm`,children:l()}):(0,U.jsxs)(I,{children:[(0,U.jsx)(j,{children:(0,U.jsxs)(P,{children:[(0,U.jsx)(M,{children:t?r():o()}),(0,U.jsx)(M,{children:t?o():r()}),(0,U.jsx)(M,{className:`text-right`,children:u()})]})}),(0,U.jsx)(N,{children:s.map(e=>(0,U.jsxs)(P,{children:[(0,U.jsx)(F,{className:`font-medium uppercase`,children:e.from}),(0,U.jsx)(F,{className:`uppercase`,children:e.to}),(0,U.jsx)(F,{className:`text-right font-mono`,children:e.rate})]},`${e.from}:${e.to}`))})]})]})}var me=JSON.stringify({cny:{usdt:.137,ton:.5,trx:.55},usd:{usdt:1,ton:3.65,trx:4.02}},null,2),K=JSON.stringify({},null,2);function he(e){return e.trim()===``||q(e)}function q(e){try{return Q(e),!0}catch{return!1}}function ge(e,t){return t?{from:e.coin,rate:e.rate===0?`-`:X(1/e.rate),to:e.base}:{from:e.base,rate:X(e.rate),to:e.coin}}function J(e){return e.trim()===``||ve(e)?[]:q(e)?Object.entries(Y(e)).flatMap(([e,t])=>Object.entries(t).map(([t,n])=>({base:e,coin:t,rate:n}))):null}function _e(e){let t=e?.find(e=>e.key===`rate.forced_rate_list`)?.value;if(t===void 0||t===``)return K;try{return Z(t)}catch{return K}}function Y(e){return Q(e)}function X(e){return Number.isInteger(e)?String(e):Number(e.toPrecision(12)).toString()}function Z(e){return JSON.stringify(Q(e),null,2)}function ve(e){try{return Object.keys(Y(e)).length===0}catch{return!1}}function Q(e){let t=ye($(e));if(!t)throw Error(`Invalid rate map`);return t}function $(e){if(typeof e!=`string`)return e;let t=e.trim();if(!t)return{};let n=JSON.parse(t);return typeof n==`string`?$(n):n}function ye(e){if(!(e&&typeof e==`object`&&!Array.isArray(e)))return null;let t={};for(let[n,r]of Object.entries(e)){if(!(r&&typeof r==`object`&&!Array.isArray(r)))return null;t[n]={};for(let[e,i]of Object.entries(r)){let r=typeof i==`string`&&i.trim()?Number(i):i;if(!(typeof r==`number`&&Number.isFinite(r)&&r>=0))return null;t[n][e]=r}}return t}function be(){return(0,U.jsx)(A,{description:f(),title:s(),variant:`section`,children:(0,U.jsx)(fe,{})})}var xe=be;export{xe as component}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/editor.client-BI4ACpIS.js","assets/chunk-DECur_0Z.js","assets/preload-helper-DoS0eHac.js","assets/button-NLSeBFht.js","assets/clsx-D9aGYY3V.js","assets/messages-CL4J6BaJ.js","assets/react-CO2uhaBc.js","assets/tabs-DDe7sXIW.js","assets/dist-DmeeHi7K.js","assets/dist-CGRahgI2.js","assets/dist-SR6sl-WU.js","assets/dist-BZMqLvO-.js","assets/dist-D3WFT-Yo.js","assets/dist-DhcQhr4B.js","assets/dist-UaPzzPYf.js","assets/createLucideIcon-Br0Bd5k2.js","assets/dialog-CtyiwzAl.js","assets/dist-DPYswSIO.js","assets/dist-esC74fSg.js","assets/es2015-3J9GnV9P.js"])))=>i.map(i=>d[i]); +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{Bn as n,Gn as r,Hn as i,Jn as a,Kn as o,Pf as s,Un as c,Vn as l,Wn as u,Yn as ee,ar as te,cr as d,dr as f,ir as p,lr as m,nr as h,or as g,qn as ne,rr as re,sr as ie,tm as ae,ur as _,zn as oe}from"./messages-CL4J6BaJ.js";import{t as v}from"./button-NLSeBFht.js";import{t as se}from"./preload-helper-DoS0eHac.js";import{t as y}from"./arrow-left-right-CcCrkQiR.js";import{c as b,s as x}from"./zod-rwFXxHlg.js";import{a as S,c as ce,i as C,l as le,n as w,o as T,r as E,s as D,t as O}from"./form-C_YekIvK.js";import{t as k}from"./input-DAqep8ZY.js";import{t as A}from"./page-header-B7O10aw9.js";import{a as j,i as M,n as N,o as P,r as F,t as I}from"./table-DgARtYSu.js";import{a as L,i as R,n as z,r as B,t as V}from"./lib-Ku8Lh36m.js";var H=e(t(),1),U=ae(),W=(0,H.lazy)(async()=>({default:(await se(()=>import(`./editor.client-BI4ACpIS.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]))).ClientEditor}));function ue(e){let[t,n]=(0,H.useState)(!1);return(0,H.useEffect)(()=>{n(!0)},[]),t?(0,U.jsx)(H.Suspense,{fallback:(0,U.jsx)(G,{...e}),children:(0,U.jsx)(W,{...e})}):(0,U.jsx)(G,{...e})}function G({className:e,disabled:t}){return(0,U.jsx)(`div`,{className:e,children:(0,U.jsx)(`div`,{className:[`h-64 rounded-sm border border-border/80 bg-background shadow-none`,t?`opacity-70`:``].filter(Boolean).join(` `)})})}var de=x({amountPrecision:b().min(1,_()).refine(e=>{let t=Number(e);return Number.isInteger(t)&&t>=2&&t<=6},{message:_()}),apiUrl:b().url(m()),forcedUsdtRate:b().refine(he,{message:d()})});function fe(){let e=R(`rate`),t=R(`system`),r=L(),i=le({resolver:ce(de),defaultValues:{amountPrecision:`2`,apiUrl:``,forcedUsdtRate:K}});(0,H.useEffect)(()=>{let n=e.data?.data,r=t.data?.data;n&&r&&i.reset({amountPrecision:V(r,`system.amount_precision`,`2`),apiUrl:V(n,`rate.api_url`),forcedUsdtRate:_e(n)})},[e.data,t.data,i]);async function o(){await z(r.mutateAsync,[{group:`rate`,key:`rate.api_url`,type:`string`,value:``},{group:`rate`,key:`rate.forced_rate_list`,type:`json`,value:{}},{group:`system`,key:`system.amount_precision`,type:`int`,value:2}],ie()),await e.refetch(),await t.refetch()}async function s(n){let a=n.forcedUsdtRate.trim()?Z(n.forcedUsdtRate):K;i.setValue(`forcedUsdtRate`,a),await B(r.mutateAsync,[{group:`rate`,key:`rate.api_url`,type:`string`,value:n.apiUrl},{group:`rate`,key:`rate.forced_rate_list`,type:`json`,value:Y(a)},{group:`system`,key:`system.amount_precision`,type:`int`,value:n.amountPrecision}],g()),await e.refetch(),await t.refetch()}let c=e.isLoading||t.isLoading;return(0,U.jsx)(O,{...i,children:(0,U.jsxs)(`form`,{className:`space-y-6`,onSubmit:i.handleSubmit(s),children:[(0,U.jsx)(C,{control:i.control,name:`amountPrecision`,render:({field:e})=>(0,U.jsxs)(S,{children:[(0,U.jsx)(T,{children:te()}),(0,U.jsx)(w,{children:(0,U.jsx)(k,{max:6,min:2,step:1,type:`number`,...e})}),(0,U.jsx)(D,{})]})}),(0,U.jsx)(C,{control:i.control,name:`apiUrl`,render:({field:e})=>(0,U.jsxs)(S,{children:[(0,U.jsx)(T,{children:p()}),(0,U.jsx)(w,{children:(0,U.jsx)(k,{...e})}),(0,U.jsxs)(E,{children:[re(),` `,(0,U.jsx)(`a`,{className:`font-medium text-primary underline-offset-4 hover:underline`,href:`https://epusdt.com/guide/faq`,rel:`noreferrer`,target:`_blank`,children:h()})]}),(0,U.jsx)(D,{})]})}),(0,U.jsx)(C,{control:i.control,name:`forcedUsdtRate`,render:({field:e})=>(0,U.jsxs)(S,{children:[(0,U.jsx)(T,{children:ee()}),(0,U.jsx)(w,{children:(0,U.jsx)(ue,{autoFormat:!0,className:`h-72`,defaultView:`split`,language:`json`,markdownPreview:!1,onChange:e.onChange,preview:{content:(0,U.jsx)(pe,{value:e.value}),label:a()},toolbarExample:{value:me},value:e.value})}),(0,U.jsx)(D,{})]})}),(0,U.jsxs)(`div`,{className:`flex gap-2`,children:[(0,U.jsx)(v,{disabled:r.isPending||c,type:`submit`,children:n()}),(0,U.jsx)(v,{disabled:r.isPending,onClick:o,type:`button`,variant:`outline`,children:oe()})]})]})})}function pe({value:e}){let[t,n]=(0,H.useState)(!1),a=J(e);if(!a)return(0,U.jsx)(`div`,{className:`rounded-md border border-destructive/30 bg-destructive/10 p-3 text-destructive text-sm`,children:d()});let s=a.map(e=>ge(e,t));return(0,U.jsxs)(`div`,{className:`space-y-3`,children:[(0,U.jsxs)(`div`,{className:`flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between`,children:[(0,U.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:ne()}),s.length>0?(0,U.jsxs)(v,{className:`sm:shrink-0`,onClick:()=>n(e=>!e),size:`sm`,type:`button`,variant:`outline`,children:[(0,U.jsx)(y,{}),t?i():c()]}):null]}),s.length===0?(0,U.jsx)(`div`,{className:`rounded-md border bg-muted/30 p-3 text-muted-foreground text-sm`,children:l()}):(0,U.jsxs)(I,{children:[(0,U.jsx)(j,{children:(0,U.jsxs)(P,{children:[(0,U.jsx)(M,{children:t?r():o()}),(0,U.jsx)(M,{children:t?o():r()}),(0,U.jsx)(M,{className:`text-right`,children:u()})]})}),(0,U.jsx)(N,{children:s.map(e=>(0,U.jsxs)(P,{children:[(0,U.jsx)(F,{className:`font-medium uppercase`,children:e.from}),(0,U.jsx)(F,{className:`uppercase`,children:e.to}),(0,U.jsx)(F,{className:`text-right font-mono`,children:e.rate})]},`${e.from}:${e.to}`))})]})]})}var me=JSON.stringify({cny:{usdt:.137,ton:.5,trx:.55},usd:{usdt:1,ton:3.65,trx:4.02}},null,2),K=JSON.stringify({},null,2);function he(e){return e.trim()===``||q(e)}function q(e){try{return Q(e),!0}catch{return!1}}function ge(e,t){return t?{from:e.coin,rate:e.rate===0?`-`:X(1/e.rate),to:e.base}:{from:e.base,rate:X(e.rate),to:e.coin}}function J(e){return e.trim()===``||ve(e)?[]:q(e)?Object.entries(Y(e)).flatMap(([e,t])=>Object.entries(t).map(([t,n])=>({base:e,coin:t,rate:n}))):null}function _e(e){let t=e?.find(e=>e.key===`rate.forced_rate_list`)?.value;if(t===void 0||t===``)return K;try{return Z(t)}catch{return K}}function Y(e){return Q(e)}function X(e){return Number.isInteger(e)?String(e):Number(e.toPrecision(12)).toString()}function Z(e){return JSON.stringify(Q(e),null,2)}function ve(e){try{return Object.keys(Y(e)).length===0}catch{return!1}}function Q(e){let t=ye($(e));if(!t)throw Error(`Invalid rate map`);return t}function $(e){if(typeof e!=`string`)return e;let t=e.trim();if(!t)return{};let n=JSON.parse(t);return typeof n==`string`?$(n):n}function ye(e){if(!(e&&typeof e==`object`&&!Array.isArray(e)))return null;let t={};for(let[n,r]of Object.entries(e)){if(!(r&&typeof r==`object`&&!Array.isArray(r)))return null;t[n]={};for(let[e,i]of Object.entries(r)){let r=typeof i==`string`&&i.trim()?Number(i):i;if(!(typeof r==`number`&&Number.isFinite(r)&&r>=0))return null;t[n][e]=r}}return t}function be(){return(0,U.jsx)(A,{description:f(),title:s(),variant:`section`,children:(0,U.jsx)(fe,{})})}var xe=be;export{xe as component}; \ No newline at end of file diff --git a/src/www/assets/payment-setup-BFIKIu1u.js b/src/www/assets/payment-setup-CnYyeayi.js similarity index 87% rename from src/www/assets/payment-setup-BFIKIu1u.js rename to src/www/assets/payment-setup-CnYyeayi.js index 62b8196..7c5da5e 100644 --- a/src/www/assets/payment-setup-BFIKIu1u.js +++ b/src/www/assets/payment-setup-CnYyeayi.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{a as t}from"./auth-store-De4Y7PFV.js";import{t as n}from"./react-CO2uhaBc.js";import{Bs as r,Hs as i,Ls as a,Rs as o,Us as s,Vs as c,tm as l,zs as u}from"./messages-BOatyqUm.js";import{r as d}from"./route-wzPKSRj2.js";import{i as f}from"./button-C_NDYaz8.js";import{a as p,c as m,d as h,f as g,l as _,n as v,o as y,r as b,s as x,t as S,u as C}from"./data-table-1LQSBhN2.js";import{t as w}from"./badge-VJlwwTW5.js";import{t as T}from"./use-table-url-state-DP0Y4QjR.js";import{t as E}from"./labels-Cbc2zlmv.js";var D=e(n(),1),O=l();function k(){return[{accessorKey:`network`,header:({column:e})=>(0,O.jsx)(p,{column:e,title:o()}),cell:({row:e})=>e.original.network?(0,O.jsx)(E,{displayName:e.original.display_name,network:e.original.network}):`-`,meta:{label:o(),skeleton:`short`}},{id:`tokens`,accessorFn:e=>e.tokens?.join(`, `)??``,header:({column:e})=>(0,O.jsx)(p,{column:e,title:a()}),cell:({row:e})=>{let t=e.original.tokens??[];return t.length===0?`-`:(0,O.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:t.map(e=>(0,O.jsx)(w,{className:`bg-emerald-500/10 text-emerald-600`,children:e},e))})},meta:{className:f(`text-center`),label:a(),skeleton:`short`}}]}var A=d(`/_authenticated/payment-setup/`);function j({data:e,isLoading:t,onRefresh:n}){let[a,o]=(0,D.useState)([]),{globalFilter:l,onGlobalFilterChange:d,columnFilters:f,onColumnFiltersChange:p,pagination:w,onPaginationChange:E,ensurePageInRange:j}=T({search:A.useSearch(),navigate:A.useNavigate(),pagination:{defaultPage:1,defaultPageSize:10},globalFilter:{enabled:!0,key:`keyword`},columnFilters:[{columnId:`network`,searchKey:`chain`,type:`array`}]}),M=y({data:e,columns:(0,D.useMemo)(()=>k(),[]),state:{sorting:a,columnFilters:f,globalFilter:l,pagination:w},onSortingChange:o,onColumnFiltersChange:p,onGlobalFilterChange:d,onPaginationChange:E,globalFilterFn:(e,t,n)=>{let r=String(n).toLowerCase();return(e.original.network??``).toLowerCase().includes(r)||(e.original.display_name??``).toLowerCase().includes(r)||(e.original.tokens??[]).some(e=>e.toLowerCase().includes(r))},getCoreRowModel:x(),getFilteredRowModel:C(),getPaginationRowModel:h(),getSortedRowModel:g(),getFacetedRowModel:m(),getFacetedUniqueValues:_()});(0,D.useEffect)(()=>{j(M.getPageCount())},[M,j]);let N=Array.from(e.filter(e=>e.network).reduce((e,t)=>{let n=t.network,r=n.toLowerCase();return e.has(r)||e.set(r,{label:t.display_name||n,value:n}),e},new Map).values());return(0,O.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,O.jsxs)(`div`,{className:`space-y-1`,children:[(0,O.jsx)(`h3`,{className:`font-semibold text-lg`,children:s()}),(0,O.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:i()})]}),(0,O.jsx)(S,{filters:[{columnId:`network`,title:c(),options:N}],onRefresh:n,searchPlaceholder:r(),table:M}),(0,O.jsx)(b,{className:`min-w-[700px]`,emptyText:u(),loading:t,table:M}),(0,O.jsx)(v,{className:`mt-auto`,table:M})]})}function M(){let e=t.useQuery(`get`,`/admin/api/v1/config`);return(0,O.jsx)(j,{data:e.data?.data?.supported_assets??[],isLoading:e.isLoading,onRefresh:()=>e.refetch()})}var N=M;export{N as component}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{a as t}from"./auth-store-8ocF_FHU.js";import{t as n}from"./react-CO2uhaBc.js";import{Bs as r,Hs as i,Ls as a,Rs as o,Us as s,Vs as c,tm as l,zs as u}from"./messages-CL4J6BaJ.js";import{r as d}from"./route-gtb8yu3E.js";import{i as f}from"./button-NLSeBFht.js";import{a as p,c as m,d as h,f as g,l as _,n as v,o as y,r as b,s as x,t as S,u as C}from"./data-table-DC6T69tr.js";import{t as w}from"./badge-BRKB3301.js";import{t as T}from"./use-table-url-state-DP0Y4QjR.js";import{t as E}from"./labels-CQIGkPR0.js";var D=e(n(),1),O=l();function k(){return[{accessorKey:`network`,header:({column:e})=>(0,O.jsx)(p,{column:e,title:o()}),cell:({row:e})=>e.original.network?(0,O.jsx)(E,{displayName:e.original.display_name,network:e.original.network}):`-`,meta:{label:o(),skeleton:`short`}},{id:`tokens`,accessorFn:e=>e.tokens?.join(`, `)??``,header:({column:e})=>(0,O.jsx)(p,{column:e,title:a()}),cell:({row:e})=>{let t=e.original.tokens??[];return t.length===0?`-`:(0,O.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:t.map(e=>(0,O.jsx)(w,{className:`bg-emerald-500/10 text-emerald-600`,children:e},e))})},meta:{className:f(`text-center`),label:a(),skeleton:`short`}}]}var A=d(`/_authenticated/payment-setup/`);function j({data:e,isLoading:t,onRefresh:n}){let[a,o]=(0,D.useState)([]),{globalFilter:l,onGlobalFilterChange:d,columnFilters:f,onColumnFiltersChange:p,pagination:w,onPaginationChange:E,ensurePageInRange:j}=T({search:A.useSearch(),navigate:A.useNavigate(),pagination:{defaultPage:1,defaultPageSize:10},globalFilter:{enabled:!0,key:`keyword`},columnFilters:[{columnId:`network`,searchKey:`chain`,type:`array`}]}),M=y({data:e,columns:(0,D.useMemo)(()=>k(),[]),state:{sorting:a,columnFilters:f,globalFilter:l,pagination:w},onSortingChange:o,onColumnFiltersChange:p,onGlobalFilterChange:d,onPaginationChange:E,globalFilterFn:(e,t,n)=>{let r=String(n).toLowerCase();return(e.original.network??``).toLowerCase().includes(r)||(e.original.display_name??``).toLowerCase().includes(r)||(e.original.tokens??[]).some(e=>e.toLowerCase().includes(r))},getCoreRowModel:x(),getFilteredRowModel:C(),getPaginationRowModel:h(),getSortedRowModel:g(),getFacetedRowModel:m(),getFacetedUniqueValues:_()});(0,D.useEffect)(()=>{j(M.getPageCount())},[M,j]);let N=Array.from(e.filter(e=>e.network).reduce((e,t)=>{let n=t.network,r=n.toLowerCase();return e.has(r)||e.set(r,{label:t.display_name||n,value:n}),e},new Map).values());return(0,O.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,O.jsxs)(`div`,{className:`space-y-1`,children:[(0,O.jsx)(`h3`,{className:`font-semibold text-lg`,children:s()}),(0,O.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:i()})]}),(0,O.jsx)(S,{filters:[{columnId:`network`,title:c(),options:N}],onRefresh:n,searchPlaceholder:r(),table:M}),(0,O.jsx)(b,{className:`min-w-[700px]`,emptyText:u(),loading:t,table:M}),(0,O.jsx)(v,{className:`mt-auto`,table:M})]})}function M(){let e=t.useQuery(`get`,`/admin/api/v1/config`);return(0,O.jsx)(j,{data:e.data?.data?.supported_assets??[],isLoading:e.isLoading,onRefresh:()=>e.refetch()})}var N=M;export{N as component}; \ No newline at end of file diff --git a/src/www/assets/popover-NQZzcPDh.js b/src/www/assets/popover-Y5WNf1yM.js similarity index 92% rename from src/www/assets/popover-NQZzcPDh.js rename to src/www/assets/popover-Y5WNf1yM.js index 5968f6f..01e1e68 100644 --- a/src/www/assets/popover-NQZzcPDh.js +++ b/src/www/assets/popover-Y5WNf1yM.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./dist-Cc8_LDAq.js";import{i,s as a,u as o}from"./button-C_NDYaz8.js";import{a as s,r as c,t as l}from"./dist-DPPquN_M.js";import{t as u}from"./dist-DvwKOQ8R.js";import{n as d}from"./dist-D4X8zGEB.js";import{n as f,t as p}from"./dist-rcWP-8Cu.js";import{i as m,n as h,r as g,t as _}from"./es2015-DT8UeWzs.js";import{a as v,i as y,n as b,r as x,t as S}from"./dist-CsIb2aLK.js";var C=e(t(),1),w=n(),T=`Popover`,[E,ee]=s(T,[v]),D=v(),[O,k]=E(T),A=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=D(t),c=C.useRef(null),[u,f]=C.useState(!1),[p,m]=l({prop:r,defaultProp:i??!1,onChange:a,caller:T});return(0,w.jsx)(y,{...s,children:(0,w.jsx)(O,{scope:t,contentId:d(),triggerRef:c,open:p,onOpenChange:m,onOpenToggle:C.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:u,onCustomAnchorAdd:C.useCallback(()=>f(!0),[]),onCustomAnchorRemove:C.useCallback(()=>f(!1),[]),modal:o,children:n})})};A.displayName=T;var j=`PopoverAnchor`,M=C.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=k(j,n),a=D(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return C.useEffect(()=>(o(),()=>s()),[o,s]),(0,w.jsx)(S,{...a,...r,ref:t})});M.displayName=j;var N=`PopoverTrigger`,P=C.forwardRef((e,t)=>{let{__scopePopover:n,...i}=e,a=k(N,n),s=D(n),l=o(t,a.triggerRef),u=(0,w.jsx)(r.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Y(a.open),...i,ref:l,onClick:c(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?u:(0,w.jsx)(S,{asChild:!0,...s,children:u})});P.displayName=N;var F=`PopoverPortal`,[I,L]=E(F,{forceMount:void 0}),R=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=k(F,t);return(0,w.jsx)(I,{scope:t,forceMount:n,children:(0,w.jsx)(u,{present:n||a.open,children:(0,w.jsx)(p,{asChild:!0,container:i,children:r})})})};R.displayName=F;var z=`PopoverContent`,B=C.forwardRef((e,t)=>{let n=L(z,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=k(z,e.__scopePopover);return(0,w.jsx)(u,{present:r||a.open,children:a.modal?(0,w.jsx)(H,{...i,ref:t}):(0,w.jsx)(U,{...i,ref:t})})});B.displayName=z;var V=a(`PopoverContent.RemoveScroll`),H=C.forwardRef((e,t)=>{let n=k(z,e.__scopePopover),r=C.useRef(null),i=o(t,r),a=C.useRef(!1);return C.useEffect(()=>{let e=r.current;if(e)return _(e)},[]),(0,w.jsx)(h,{as:V,allowPinchZoom:!0,children:(0,w.jsx)(W,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:c(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:c(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;a.current=t.button===2||n},{checkForDefaultPrevented:!1}),onFocusOutside:c(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),U=C.forwardRef((e,t)=>{let n=k(z,e.__scopePopover),r=C.useRef(!1),i=C.useRef(!1);return(0,w.jsx)(W,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),W=C.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,p=k(z,n),h=D(n);return g(),(0,w.jsx)(m,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,w.jsx)(f,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>p.onOpenChange(!1),children:(0,w.jsx)(x,{"data-state":Y(p.open),role:`dialog`,id:p.contentId,...h,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),G=`PopoverClose`,K=C.forwardRef((e,t)=>{let{__scopePopover:n,...i}=e,a=k(G,n);return(0,w.jsx)(r.button,{type:`button`,...i,ref:t,onClick:c(e.onClick,()=>a.onOpenChange(!1))})});K.displayName=G;var q=`PopoverArrow`,J=C.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=D(n);return(0,w.jsx)(b,{...i,...r,ref:t})});J.displayName=q;function Y(e){return e?`open`:`closed`}var X=A,Z=P,Q=R,$=B;function te({...e}){return(0,w.jsx)(X,{"data-slot":`popover`,...e})}function ne({...e}){return(0,w.jsx)(Z,{"data-slot":`popover-trigger`,...e})}function re({className:e,align:t=`center`,sideOffset:n=4,...r}){return(0,w.jsx)(Q,{children:(0,w.jsx)($,{align:t,className:i(`data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=closed]:animate-out data-[state=open]:animate-in`,e),"data-slot":`popover-content`,sideOffset:n,...r})})}export{re as n,ne as r,te as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";import{t as r}from"./dist-D3WFT-Yo.js";import{i,s as a,u as o}from"./button-NLSeBFht.js";import{a as s,r as c,t as l}from"./dist-DmeeHi7K.js";import{t as u}from"./dist-BZMqLvO-.js";import{n as d}from"./dist-SR6sl-WU.js";import{n as f,t as p}from"./dist-esC74fSg.js";import{i as m,n as h,r as g,t as _}from"./es2015-3J9GnV9P.js";import{a as v,i as y,n as b,r as x,t as S}from"./dist-DB-jLX48.js";var C=e(t(),1),w=n(),T=`Popover`,[E,ee]=s(T,[v]),D=v(),[O,k]=E(T),A=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=D(t),c=C.useRef(null),[u,f]=C.useState(!1),[p,m]=l({prop:r,defaultProp:i??!1,onChange:a,caller:T});return(0,w.jsx)(y,{...s,children:(0,w.jsx)(O,{scope:t,contentId:d(),triggerRef:c,open:p,onOpenChange:m,onOpenToggle:C.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:u,onCustomAnchorAdd:C.useCallback(()=>f(!0),[]),onCustomAnchorRemove:C.useCallback(()=>f(!1),[]),modal:o,children:n})})};A.displayName=T;var j=`PopoverAnchor`,M=C.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=k(j,n),a=D(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return C.useEffect(()=>(o(),()=>s()),[o,s]),(0,w.jsx)(S,{...a,...r,ref:t})});M.displayName=j;var N=`PopoverTrigger`,P=C.forwardRef((e,t)=>{let{__scopePopover:n,...i}=e,a=k(N,n),s=D(n),l=o(t,a.triggerRef),u=(0,w.jsx)(r.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Y(a.open),...i,ref:l,onClick:c(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?u:(0,w.jsx)(S,{asChild:!0,...s,children:u})});P.displayName=N;var F=`PopoverPortal`,[I,L]=E(F,{forceMount:void 0}),R=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=k(F,t);return(0,w.jsx)(I,{scope:t,forceMount:n,children:(0,w.jsx)(u,{present:n||a.open,children:(0,w.jsx)(p,{asChild:!0,container:i,children:r})})})};R.displayName=F;var z=`PopoverContent`,B=C.forwardRef((e,t)=>{let n=L(z,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=k(z,e.__scopePopover);return(0,w.jsx)(u,{present:r||a.open,children:a.modal?(0,w.jsx)(H,{...i,ref:t}):(0,w.jsx)(U,{...i,ref:t})})});B.displayName=z;var V=a(`PopoverContent.RemoveScroll`),H=C.forwardRef((e,t)=>{let n=k(z,e.__scopePopover),r=C.useRef(null),i=o(t,r),a=C.useRef(!1);return C.useEffect(()=>{let e=r.current;if(e)return _(e)},[]),(0,w.jsx)(h,{as:V,allowPinchZoom:!0,children:(0,w.jsx)(W,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:c(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:c(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;a.current=t.button===2||n},{checkForDefaultPrevented:!1}),onFocusOutside:c(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),U=C.forwardRef((e,t)=>{let n=k(z,e.__scopePopover),r=C.useRef(!1),i=C.useRef(!1);return(0,w.jsx)(W,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),W=C.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,p=k(z,n),h=D(n);return g(),(0,w.jsx)(m,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,w.jsx)(f,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>p.onOpenChange(!1),children:(0,w.jsx)(x,{"data-state":Y(p.open),role:`dialog`,id:p.contentId,...h,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),G=`PopoverClose`,K=C.forwardRef((e,t)=>{let{__scopePopover:n,...i}=e,a=k(G,n);return(0,w.jsx)(r.button,{type:`button`,...i,ref:t,onClick:c(e.onClick,()=>a.onOpenChange(!1))})});K.displayName=G;var q=`PopoverArrow`,J=C.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=D(n);return(0,w.jsx)(b,{...i,...r,ref:t})});J.displayName=q;function Y(e){return e?`open`:`closed`}var X=A,Z=P,Q=R,$=B;function te({...e}){return(0,w.jsx)(X,{"data-slot":`popover`,...e})}function ne({...e}){return(0,w.jsx)(Z,{"data-slot":`popover-trigger`,...e})}function re({className:e,align:t=`center`,sideOffset:n=4,...r}){return(0,w.jsx)(Q,{children:(0,w.jsx)($,{align:t,className:i(`data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=closed]:animate-out data-[state=open]:animate-in`,e),"data-slot":`popover-content`,sideOffset:n,...r})})}export{re as n,ne as r,te as t}; \ No newline at end of file diff --git a/src/www/assets/radio-group-D2rceepu.js b/src/www/assets/radio-group-yaBPIkVa.js similarity index 88% rename from src/www/assets/radio-group-D2rceepu.js rename to src/www/assets/radio-group-yaBPIkVa.js index cba5a08..a9bfaf4 100644 --- a/src/www/assets/radio-group-D2rceepu.js +++ b/src/www/assets/radio-group-yaBPIkVa.js @@ -1 +1 @@ -import{tm as e}from"./messages-BOatyqUm.js";import{i as t}from"./button-C_NDYaz8.js";import{n,r,t as i}from"./dist-C5heX0fx.js";import{t as a}from"./createLucideIcon-Br0Bd5k2.js";var o=a(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),s=e();function c({className:e,...n}){return(0,s.jsx)(r,{className:t(`grid gap-3`,e),"data-slot":`radio-group`,...n})}function l({className:e,...r}){return(0,s.jsx)(n,{className:t(`aspect-square size-4 shrink-0 rounded-full border border-input text-primary shadow-xs outline-none transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:ring-destructive/40`,e),"data-slot":`radio-group-item`,...r,children:(0,s.jsx)(i,{className:`relative flex items-center justify-center`,"data-slot":`radio-group-indicator`,children:(0,s.jsx)(o,{className:`absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-primary`})})})}export{l as n,c as t}; \ No newline at end of file +import{tm as e}from"./messages-CL4J6BaJ.js";import{i as t}from"./button-NLSeBFht.js";import{n,r,t as i}from"./dist-DA1qWiix.js";import{t as a}from"./createLucideIcon-Br0Bd5k2.js";var o=a(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),s=e();function c({className:e,...n}){return(0,s.jsx)(r,{className:t(`grid gap-3`,e),"data-slot":`radio-group`,...n})}function l({className:e,...r}){return(0,s.jsx)(n,{className:t(`aspect-square size-4 shrink-0 rounded-full border border-input text-primary shadow-xs outline-none transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:ring-destructive/40`,e),"data-slot":`radio-group-item`,...r,children:(0,s.jsx)(i,{className:`relative flex items-center justify-center`,"data-slot":`radio-group-indicator`,children:(0,s.jsx)(o,{className:`absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-primary`})})})}export{l as n,c as t}; \ No newline at end of file diff --git a/src/www/assets/route-D1gzbhTf.js b/src/www/assets/route-B4K1KfXt.js similarity index 92% rename from src/www/assets/route-D1gzbhTf.js rename to src/www/assets/route-B4K1KfXt.js index 2701116..c3b34fd 100644 --- a/src/www/assets/route-D1gzbhTf.js +++ b/src/www/assets/route-B4K1KfXt.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{a as t}from"./auth-store-De4Y7PFV.js";import{t as n}from"./react-CO2uhaBc.js";import{q as r,rt as i,tm as a}from"./messages-BOatyqUm.js";import{n as o}from"./Match-DrG03Wse.js";import{i as s}from"./button-C_NDYaz8.js";import{t as c}from"./createLucideIcon-Br0Bd5k2.js";import{n as l,t as u}from"./theme-switch-CHLQml_8.js";import{h as d}from"./checkout-model-CQ3aqlob.js";var f=c(`message-circle`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]),p=e(n()),m=a();function h({className:e,...t}){return(0,m.jsxs)(`svg`,{className:s(`[&>path]:stroke-current`,e),fill:`none`,height:`24`,role:`img`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,viewBox:`0 0 24 24`,width:`24`,xmlns:`http://www.w3.org/2000/svg`,...t,children:[(0,m.jsx)(`title`,{children:`GitHub`}),(0,m.jsx)(`path`,{d:`M0 0h24v24H0z`,fill:`none`,strokeWidth:`0`}),(0,m.jsx)(`path`,{d:`M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5`})]})}function g(){let e=t.useQuery(`get`,`/payments/gmpay/v1/config`,void 0,{retry:!1}),n=(0,p.useMemo)(()=>d(e.data),[e.data])?.site,a=n?.cashier_name||`GM Pay`,s=n?.logo_url||`/images/logo.png`,c=n?.website_title||a,g=n?.support_link,_=n?.background_color?.trim(),v=n?.background_image_url?.trim(),y=(0,p.useMemo)(()=>({..._&&!v?{backgroundColor:_}:{},...v&&_?{backgroundAttachment:`fixed`,backgroundImage:`linear-gradient(${_}, ${_}), url(${JSON.stringify(v)})`,backgroundPosition:`center, center`,backgroundRepeat:`no-repeat, no-repeat`,backgroundSize:`cover, cover`}:{},...v&&!_?{backgroundAttachment:`fixed`,backgroundImage:`url(${JSON.stringify(v)})`,backgroundPosition:`center`,backgroundRepeat:`no-repeat`,backgroundSize:`cover`}:{}}),[_,v]);return(0,p.useEffect)(()=>{document.title=c},[c]),(0,m.jsx)(`div`,{className:`min-h-svh bg-background text-foreground`,style:y,children:(0,m.jsxs)(`div`,{className:`mx-auto flex min-h-svh w-full max-w-sm flex-col px-5`,children:[(0,m.jsxs)(`header`,{className:`flex items-center justify-between pt-8 pb-6`,children:[(0,m.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,m.jsx)(`img`,{alt:a,className:`size-8 rounded-sm shadow-sm`,height:32,src:s,width:32}),(0,m.jsx)(`span`,{className:`font-semibold text-card-foreground text-lg tracking-tight`,children:a})]}),(0,m.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,m.jsx)(l,{}),(0,m.jsx)(u,{})]})]}),(0,m.jsx)(o,{}),g?(0,m.jsxs)(`a`,{"aria-label":i(),className:`fixed right-5 bottom-5 z-20 flex h-12 items-center gap-2 rounded-full bg-primary px-4 font-medium text-primary-foreground text-sm shadow-lg transition hover:opacity-90`,href:g,rel:`noopener noreferrer`,target:`_blank`,children:[(0,m.jsx)(f,{className:`size-4`}),(0,m.jsx)(`span`,{children:i()})]}):null,(0,m.jsxs)(`footer`,{className:`flex flex-wrap items-center justify-center gap-2.5 py-6 text-muted-foreground text-xs`,children:[(0,m.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[r(),(0,m.jsxs)(`a`,{className:`flex items-center gap-1 font-semibold text-card-foreground hover:opacity-70`,href:`https://www.gmwallet.app`,rel:`noopener noreferrer`,target:`_blank`,children:[(0,m.jsx)(`img`,{alt:``,className:`size-3.5 rounded-xs`,height:14,src:`/images/logo.png`,width:14}),`GM Wallet`]})]}),(0,m.jsx)(`span`,{className:`opacity-30`,children:`|`}),(0,m.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[`Open source on`,(0,m.jsxs)(`a`,{className:`flex items-center gap-1 font-semibold text-card-foreground hover:opacity-70`,href:`https://github.com/GMwalletApp`,rel:`noopener noreferrer`,target:`_blank`,children:[(0,m.jsx)(h,{className:`size-3.5`}),`GitHub`]})]})]})]})})}export{g as component}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{a as t}from"./auth-store-8ocF_FHU.js";import{t as n}from"./react-CO2uhaBc.js";import{q as r,rt as i,tm as a}from"./messages-CL4J6BaJ.js";import{n as o}from"./Match-onTP_fNL.js";import{i as s}from"./button-NLSeBFht.js";import{t as c}from"./createLucideIcon-Br0Bd5k2.js";import{n as l,t as u}from"./theme-switch-CdEcHkcU.js";import{h as d}from"./checkout-model-CQ3aqlob.js";var f=c(`message-circle`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]),p=e(n()),m=a();function h({className:e,...t}){return(0,m.jsxs)(`svg`,{className:s(`[&>path]:stroke-current`,e),fill:`none`,height:`24`,role:`img`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,viewBox:`0 0 24 24`,width:`24`,xmlns:`http://www.w3.org/2000/svg`,...t,children:[(0,m.jsx)(`title`,{children:`GitHub`}),(0,m.jsx)(`path`,{d:`M0 0h24v24H0z`,fill:`none`,strokeWidth:`0`}),(0,m.jsx)(`path`,{d:`M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5`})]})}function g(){let e=t.useQuery(`get`,`/payments/gmpay/v1/config`,void 0,{retry:!1}),n=(0,p.useMemo)(()=>d(e.data),[e.data])?.site,a=n?.cashier_name||`GM Pay`,s=n?.logo_url||`/images/logo.png`,c=n?.website_title||a,g=n?.support_link,_=n?.background_color?.trim(),v=n?.background_image_url?.trim(),y=(0,p.useMemo)(()=>({..._&&!v?{backgroundColor:_}:{},...v&&_?{backgroundAttachment:`fixed`,backgroundImage:`linear-gradient(${_}, ${_}), url(${JSON.stringify(v)})`,backgroundPosition:`center, center`,backgroundRepeat:`no-repeat, no-repeat`,backgroundSize:`cover, cover`}:{},...v&&!_?{backgroundAttachment:`fixed`,backgroundImage:`url(${JSON.stringify(v)})`,backgroundPosition:`center`,backgroundRepeat:`no-repeat`,backgroundSize:`cover`}:{}}),[_,v]);return(0,p.useEffect)(()=>{document.title=c},[c]),(0,m.jsx)(`div`,{className:`min-h-svh bg-background text-foreground`,style:y,children:(0,m.jsxs)(`div`,{className:`mx-auto flex min-h-svh w-full max-w-sm flex-col px-5`,children:[(0,m.jsxs)(`header`,{className:`flex items-center justify-between pt-8 pb-6`,children:[(0,m.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,m.jsx)(`img`,{alt:a,className:`size-8 rounded-sm shadow-sm`,height:32,src:s,width:32}),(0,m.jsx)(`span`,{className:`font-semibold text-card-foreground text-lg tracking-tight`,children:a})]}),(0,m.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,m.jsx)(l,{}),(0,m.jsx)(u,{})]})]}),(0,m.jsx)(o,{}),g?(0,m.jsxs)(`a`,{"aria-label":i(),className:`fixed right-5 bottom-5 z-20 flex h-12 items-center gap-2 rounded-full bg-primary px-4 font-medium text-primary-foreground text-sm shadow-lg transition hover:opacity-90`,href:g,rel:`noopener noreferrer`,target:`_blank`,children:[(0,m.jsx)(f,{className:`size-4`}),(0,m.jsx)(`span`,{children:i()})]}):null,(0,m.jsxs)(`footer`,{className:`flex flex-wrap items-center justify-center gap-2.5 py-6 text-muted-foreground text-xs`,children:[(0,m.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[r(),(0,m.jsxs)(`a`,{className:`flex items-center gap-1 font-semibold text-card-foreground hover:opacity-70`,href:`https://www.gmwallet.app`,rel:`noopener noreferrer`,target:`_blank`,children:[(0,m.jsx)(`img`,{alt:``,className:`size-3.5 rounded-xs`,height:14,src:`/images/logo.png`,width:14}),`GM Wallet`]})]}),(0,m.jsx)(`span`,{className:`opacity-30`,children:`|`}),(0,m.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[`Open source on`,(0,m.jsxs)(`a`,{className:`flex items-center gap-1 font-semibold text-card-foreground hover:opacity-70`,href:`https://github.com/GMwalletApp`,rel:`noopener noreferrer`,target:`_blank`,children:[(0,m.jsx)(h,{className:`size-3.5`}),`GitHub`]})]})]})]})})}export{g as component}; \ No newline at end of file diff --git a/src/www/assets/route-lp7ScXTd.js b/src/www/assets/route-BfeN1Yu9.js similarity index 59% rename from src/www/assets/route-lp7ScXTd.js rename to src/www/assets/route-BfeN1Yu9.js index 79ad69a..b43f7b2 100644 --- a/src/www/assets/route-lp7ScXTd.js +++ b/src/www/assets/route-BfeN1Yu9.js @@ -1 +1 @@ -import{Bf as e,Vf as t,tm as n,zf as r}from"./messages-BOatyqUm.js";import{n as i}from"./Match-DrG03Wse.js";import{z as a}from"./search-provider-C-_FQI9C.js";import{t as o}from"./separator-CsUemQNs.js";import{n as s,t as c}from"./main-C1R3Hvq1.js";import{t as l}from"./page-header-GTtyZFBB.js";import{t as u}from"./sidebar-nav-LZqaVZGH.js";var d=n();function f(){let n=[{title:r(),href:`/account/password`,icon:(0,d.jsx)(a,{size:18})}];return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(s,{}),(0,d.jsxs)(c,{fixed:!0,children:[(0,d.jsx)(l,{description:e(),title:t()}),(0,d.jsx)(o,{className:`my-4 lg:my-6`}),(0,d.jsxs)(`div`,{className:`flex flex-1 flex-col space-y-2 overflow-hidden lg:flex-row lg:space-x-12 lg:space-y-0`,children:[(0,d.jsx)(`aside`,{className:`top-0 lg:sticky lg:w-1/5`,children:(0,d.jsx)(u,{items:n})}),(0,d.jsx)(`div`,{className:`flex w-full overflow-y-hidden p-1`,children:(0,d.jsx)(i,{})})]})]})]})}var p=f;export{p as component}; \ No newline at end of file +import{Bf as e,Vf as t,tm as n,zf as r}from"./messages-CL4J6BaJ.js";import{n as i}from"./Match-onTP_fNL.js";import{z as a}from"./search-provider-CTRbHqNx.js";import{t as o}from"./separator-CqhQIQ-B.js";import{n as s,t as c}from"./main-CTY49s_f.js";import{t as l}from"./page-header-B7O10aw9.js";import{t as u}from"./sidebar-nav-CrEhVF-o.js";var d=n();function f(){let n=[{title:r(),href:`/account/password`,icon:(0,d.jsx)(a,{size:18})}];return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(s,{}),(0,d.jsxs)(c,{fixed:!0,children:[(0,d.jsx)(l,{description:e(),title:t()}),(0,d.jsx)(o,{className:`my-4 lg:my-6`}),(0,d.jsxs)(`div`,{className:`flex flex-1 flex-col space-y-2 overflow-hidden lg:flex-row lg:space-x-12 lg:space-y-0`,children:[(0,d.jsx)(`aside`,{className:`top-0 lg:sticky lg:w-1/5`,children:(0,d.jsx)(u,{items:n})}),(0,d.jsx)(`div`,{className:`flex w-full overflow-y-hidden p-1`,children:(0,d.jsx)(i,{})})]})]})]})}var p=f;export{p as component}; \ No newline at end of file diff --git a/src/www/assets/route-GrVEK0V1.js b/src/www/assets/route-CyGJTo_g.js similarity index 93% rename from src/www/assets/route-GrVEK0V1.js rename to src/www/assets/route-CyGJTo_g.js index 9c1306b..4008ac7 100644 --- a/src/www/assets/route-GrVEK0V1.js +++ b/src/www/assets/route-CyGJTo_g.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{a as t,i as n,p as r,u as i}from"./auth-store-De4Y7PFV.js";import{t as a}from"./react-CO2uhaBc.js";import{Au as o,Jp as s,Su as c,Tt as l,Vp as u,qp as d,tm as f,xu as p}from"./messages-BOatyqUm.js";import{n as m}from"./Match-DrG03Wse.js";import{t as h}from"./link-DPnL8P5J.js";import{n as g}from"./Matches-9qnXJNrS.js";import{t as _}from"./dist-Cc8_LDAq.js";import{A as v,C as y,D as ee,E as te,F as ne,L as re,M as b,N as ie,O as ae,P as x,R as oe,S as se,T as S,_ as ce,b as le,d as C,f as w,g as ue,h as de,i as fe,k as pe,l as me,o as he,p as ge,t as _e,u as T,v as ve,w as E,x as ye,y as be,z as xe}from"./search-provider-C-_FQI9C.js";import{i as D,t as O,u as k}from"./button-C_NDYaz8.js";import{a as A,n as j,r as M,t as Se}from"./dist-DPPquN_M.js";import{t as Ce}from"./dist-DvwKOQ8R.js";import{n as we}from"./dist-D4X8zGEB.js";import{a as N,i as Te,l as P,o as F,r as I,s as L,t as R}from"./dropdown-menu-DzCIpsuG.js";import{t as Ee}from"./cookies-BzZOQYPw.js";import{n as z}from"./skeleton-CmDjDV1O.js";import{t as De}from"./chevrons-up-down-BPquKoYJ.js";import{t as Oe}from"./send-BNvceEpO.js";import{t as ke}from"./badge-VJlwwTW5.js";var B=e(a(),1),V=f(),H=`Collapsible`,[Ae,je]=A(H),[Me,U]=Ae(H),W=B.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[c,l]=Se({prop:r,defaultProp:i??!1,onChange:o,caller:H});return(0,V.jsx)(Me,{scope:n,disabled:a,contentId:we(),open:c,onOpenToggle:B.useCallback(()=>l(e=>!e),[l]),children:(0,V.jsx)(_.div,{"data-state":Y(c),"data-disabled":a?``:void 0,...s,ref:t})})});W.displayName=H;var G=`CollapsibleTrigger`,K=B.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=U(G,n);return(0,V.jsx)(_.button,{type:`button`,"aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":Y(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:M(e.onClick,i.onOpenToggle)})});K.displayName=G;var q=`CollapsibleContent`,J=B.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=U(q,e.__scopeCollapsible);return(0,V.jsx)(Ce,{present:n||i.open,children:({present:e})=>(0,V.jsx)(Ne,{...r,ref:t,present:e})})});J.displayName=q;var Ne=B.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...a}=e,o=U(q,n),[s,c]=B.useState(r),l=B.useRef(null),u=k(t,l),d=B.useRef(0),f=d.current,p=B.useRef(0),m=p.current,h=o.open||s,g=B.useRef(h),v=B.useRef(void 0);return B.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),j(()=>{let e=l.current;if(e){v.current=v.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();d.current=t.height,p.current=t.width,g.current||(e.style.transitionDuration=v.current.transitionDuration,e.style.animationName=v.current.animationName),c(r)}},[o.open,r]),(0,V.jsx)(_.div,{"data-state":Y(o.open),"data-disabled":o.disabled?``:void 0,id:o.contentId,hidden:!h,...a,ref:u,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:h&&i})});function Y(e){return e?`open`:`closed`}var Pe=W;function Fe(){return(0,V.jsx)(`a`,{className:D(`fixed inset-s-44 z-999 whitespace-nowrap`,`bg-primary px-4 py-2 font-medium text-primary-foreground text-sm`,`opacity-95 shadow-sm transition`,`-translate-y-52 hover:bg-primary/90`,`focus:translate-y-3 focus:transform`,`focus-visible:ring-1 focus-visible:ring-ring`),href:`#content`,children:u()})}function Ie({...e}){return(0,V.jsx)(Pe,{"data-slot":`collapsible`,...e})}function Le({...e}){return(0,V.jsx)(K,{"data-slot":`collapsible-trigger`,...e})}function Re({...e}){return(0,V.jsx)(J,{"data-slot":`collapsible-content`,...e})}function ze({title:e,items:t}){let{state:n,isMobile:r}=b();return(0,V.jsxs)(be,{children:[(0,V.jsx)(le,{children:e}),(0,V.jsx)(y,{children:t.map(e=>{let t=`${e.title}-${e.url}`;return e.items?n===`collapsed`&&!r?(0,V.jsx)(Ue,{item:e},t):(0,V.jsx)(Ve,{item:e},t):(0,V.jsx)(Be,{item:e},t)})})]})}function X({children:e}){return(0,V.jsx)(ke,{className:`rounded-full px-1 py-0 text-xs`,children:e})}function Be({item:e}){let{setOpenMobile:t}=b();return(0,V.jsx)(S,{children:(0,V.jsx)(E,{asChild:!0,isActive:!!g()({to:e.url}),tooltip:e.title,children:(0,V.jsxs)(h,{onClick:()=>t(!1),to:e.url,children:[e.icon&&(0,V.jsx)(e.icon,{}),(0,V.jsx)(`span`,{children:e.title}),e.badge&&(0,V.jsx)(X,{children:e.badge})]})})})}function Ve({item:e}){let{setOpenMobile:t}=b();return(0,V.jsx)(Ie,{asChild:!0,className:`group/collapsible`,defaultOpen:!1,children:(0,V.jsxs)(S,{children:[(0,V.jsx)(Le,{asChild:!0,children:(0,V.jsxs)(E,{tooltip:e.title,children:[e.icon&&(0,V.jsx)(e.icon,{}),(0,V.jsx)(`span`,{children:e.title}),e.badge&&(0,V.jsx)(X,{children:e.badge}),(0,V.jsx)(z,{className:`ms-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90 rtl:rotate-180`})]})}),(0,V.jsx)(Re,{className:`CollapsibleContent`,children:(0,V.jsx)(te,{children:e.items.map(e=>(0,V.jsx)(He,{item:e,onClose:()=>t(!1)},e.title))})})]})})}function He({item:e,onClose:t}){return(0,V.jsx)(ae,{children:(0,V.jsx)(ee,{asChild:!0,isActive:!!g()({to:e.url}),children:(0,V.jsxs)(h,{onClick:t,to:e.url,children:[e.icon&&(0,V.jsx)(e.icon,{}),(0,V.jsx)(`span`,{children:e.title}),e.badge&&(0,V.jsx)(X,{children:e.badge})]})})})}function Ue({item:e}){let t=g();return(0,V.jsx)(S,{children:(0,V.jsxs)(R,{children:[(0,V.jsx)(P,{asChild:!0,children:(0,V.jsxs)(E,{isActive:e.items.some(e=>!!t({to:e.url})),tooltip:e.title,children:[e.icon&&(0,V.jsx)(e.icon,{}),(0,V.jsx)(`span`,{children:e.title}),e.badge&&(0,V.jsx)(X,{children:e.badge}),(0,V.jsx)(z,{className:`ms-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90`})]})}),(0,V.jsxs)(I,{align:`start`,side:`right`,sideOffset:4,children:[(0,V.jsxs)(F,{children:[e.title,` `,e.badge?`(${e.badge})`:``]}),(0,V.jsx)(L,{}),e.items.map(e=>(0,V.jsx)(Z,{item:e},`${e.title}-${e.url}`))]})]})})}function Z({item:e}){return(0,V.jsx)(N,{asChild:!0,children:(0,V.jsxs)(h,{className:g()({to:e.url})?`bg-secondary`:``,to:e.url,children:[e.icon&&(0,V.jsx)(e.icon,{}),(0,V.jsx)(`span`,{className:`max-w-52 text-wrap`,children:e.title}),e.badge&&(0,V.jsx)(`span`,{className:`ms-auto text-xs`,children:e.badge})]})})}function We(){let{isMobile:e}=b(),[t,r]=me(),[i,a]=(0,B.useState)(!1),{user:u}=n(),f=u?.username?.trim()||l(),m=f.charAt(0).toUpperCase()||`U`,g=u?.last_login_at?c({time:he(u.last_login_at)}):p();return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(ne,{onOpenChange:a,open:i,children:(0,V.jsx)(de,{})}),(0,V.jsx)(y,{children:(0,V.jsx)(S,{children:(0,V.jsxs)(R,{children:[(0,V.jsx)(P,{asChild:!0,children:(0,V.jsxs)(E,{className:`data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground`,size:`lg`,children:[(0,V.jsxs)(T,{className:`h-8 w-8 rounded-lg`,children:[(0,V.jsx)(w,{alt:f,src:`/avatars/01.png`}),(0,V.jsx)(C,{className:`rounded-lg`,children:m})]}),(0,V.jsxs)(`div`,{className:`grid flex-1 text-start text-sm leading-tight`,children:[(0,V.jsx)(`span`,{className:`truncate font-semibold`,children:f}),(0,V.jsx)(`span`,{className:`truncate text-xs`,children:g})]}),(0,V.jsx)(De,{className:`ms-auto size-4`})]})}),(0,V.jsxs)(I,{align:`end`,className:`w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg`,side:e?`bottom`:`right`,sideOffset:4,children:[(0,V.jsx)(F,{className:`p-0 font-normal`,children:(0,V.jsxs)(`div`,{className:`flex items-center gap-2 px-1 py-1.5 text-start text-sm`,children:[(0,V.jsxs)(T,{className:`h-8 w-8 rounded-lg`,children:[(0,V.jsx)(w,{alt:f,src:`/avatars/01.png`}),(0,V.jsx)(C,{className:`rounded-lg`,children:m})]}),(0,V.jsxs)(`div`,{className:`grid flex-1 text-start text-sm leading-tight`,children:[(0,V.jsx)(`span`,{className:`truncate font-semibold`,children:f}),(0,V.jsx)(`span`,{className:`truncate text-xs`,children:g})]})]})}),(0,V.jsx)(L,{}),(0,V.jsxs)(Te,{children:[(0,V.jsx)(N,{asChild:!0,children:(0,V.jsxs)(h,{to:`/account/password`,children:[(0,V.jsx)(xe,{}),s()]})}),(0,V.jsxs)(N,{onClick:()=>a(!0),onSelect:e=>e.preventDefault(),children:[(0,V.jsx)(re,{}),o()]})]}),(0,V.jsx)(L,{}),(0,V.jsxs)(N,{onClick:()=>r(!0),variant:`destructive`,children:[(0,V.jsx)(oe,{}),d()]})]})]})})}),(0,V.jsx)(ge,{onOpenChange:r,open:!!t})]})}function Ge({teams:e}){let t=e[0];return(0,V.jsx)(y,{children:(0,V.jsx)(S,{children:(0,V.jsxs)(E,{className:`cursor-default`,size:`lg`,children:[(0,V.jsx)(`div`,{className:`flex aspect-square size-8 items-center justify-center rounded-lg`,children:(0,V.jsx)(t.logo,{className:`size-8`})}),(0,V.jsxs)(`div`,{className:`grid flex-1 text-start text-sm leading-tight`,children:[(0,V.jsx)(`span`,{className:`truncate font-semibold`,children:t.name}),(0,V.jsx)(`span`,{className:`truncate text-xs`,children:t.plan})]})]})})})}var Ke=`https://t.me/epusdt_group`,qe=`https://github.com/GMWalletApp/epusdt`,Je=`https://epusdt.com/`,Ye=`https://api.github.com/repos/GMWalletApp/epusdt/releases/latest`,Xe=`v1.0.1`;function Q(){return(0,V.jsx)(`span`,{"aria-hidden":`true`,className:`text-sidebar-foreground/25`,children:`|`})}function Ze(e){return(0,V.jsx)(`svg`,{"aria-hidden":`true`,fill:`currentColor`,viewBox:`0 0 24 24`,...e,children:(0,V.jsx)(`path`,{d:`M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.866-.014-1.7-2.782.605-3.369-1.343-3.369-1.343-.455-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.071 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0 1 12 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.203 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.31.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .269.18.58.688.481A10.02 10.02 0 0 0 22 12.017C22 6.484 17.523 2 12 2Z`})})}function $(e){return e.trim().replace(/^[^\d]*/,``).split(/[^\d]+/).filter(Boolean).map(e=>Number(e))}function Qe(e,t){let n=$(e),r=$(t),i=Math.max(n.length,r.length);for(let e=0;ei)return!0;if(t{let e=await fetch(Ye,{headers:{Accept:`application/vnd.github+json`}});if(e.status===404)return null;if(!e.ok)throw Error(`Failed to fetch latest release: ${e.status}`);return e.json()},retry:!1,staleTime:1e3*60*30}),i=n.data?.tag_name,a=n.data?.html_url,o=e.data?.data?.version||Xe,s=typeof i==`string`&&typeof a==`string`&&Qe(i,o);return(0,V.jsx)(`div`,{className:`border-sidebar-border/60 border-t px-2 pt-2 pb-1 text-sidebar-foreground/70 text-xs group-data-[collapsible=icon]:hidden`,children:(0,V.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,V.jsx)(O,{asChild:!0,size:`icon-xs`,variant:`ghost`,children:(0,V.jsx)(`a`,{href:Ke,rel:`noreferrer`,target:`_blank`,title:`Telegram`,children:(0,V.jsx)(Oe,{className:`size-3.5`})})}),(0,V.jsx)(Q,{}),(0,V.jsx)(O,{asChild:!0,size:`icon-xs`,variant:`ghost`,children:(0,V.jsx)(`a`,{href:qe,rel:`noreferrer`,target:`_blank`,title:`GitHub`,children:(0,V.jsx)(Ze,{className:`size-3.5`})})}),(0,V.jsx)(Q,{}),(0,V.jsx)(O,{asChild:!0,className:`h-6 px-2 text-xs`,variant:`ghost`,children:(0,V.jsx)(`a`,{href:Je,rel:`noreferrer`,target:`_blank`,title:`官网文档`,children:(0,V.jsx)(`span`,{children:`官网文档`})})}),(0,V.jsxs)(`div`,{className:`ml-auto flex items-center gap-0 whitespace-nowrap`,children:[(0,V.jsx)(`span`,{className:`shrink-0 rounded-md bg-sidebar-accent/60 px-2 py-1 font-medium text-sidebar-foreground/85 leading-none`,children:o}),s?(0,V.jsx)(`a`,{className:`shrink-0 font-medium text-primary leading-none hover:text-primary/80`,href:a,rel:`noreferrer`,target:`_blank`,children:`更新`}):null]})]})})}function et(){let{collapsible:e,variant:t}=x(),n=fe();return(0,V.jsxs)(ue,{collapsible:e,variant:t,children:[(0,V.jsx)(ye,{children:(0,V.jsx)(Ge,{teams:n.teams})}),(0,V.jsx)(ce,{children:n.navGroups.map(e=>(0,V.jsx)(ze,{...e},e.title))}),(0,V.jsxs)(ve,{children:[(0,V.jsx)(We,{}),(0,V.jsx)($e,{})]}),(0,V.jsx)(v,{})]})}function tt({children:e}){return(0,V.jsx)(_e,{children:(0,V.jsx)(ie,{children:(0,V.jsxs)(pe,{defaultOpen:Ee(i)!==`false`,children:[(0,V.jsx)(Fe,{}),(0,V.jsx)(et,{}),(0,V.jsx)(se,{className:D(`@container/content`,`has-data-[layout=fixed]:h-svh`,`peer-data-[variant=inset]:has-data-[layout=fixed]:h-[calc(100svh-(var(--spacing)*4))]`),id:`content`,tabIndex:-1,children:e??(0,V.jsx)(m,{})})]})})})}var nt=tt;export{nt as component}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{a as t,i as n,p as r,u as i}from"./auth-store-8ocF_FHU.js";import{t as a}from"./react-CO2uhaBc.js";import{Au as o,Jp as s,Su as c,Tt as l,Vp as u,qp as d,tm as f,xu as p}from"./messages-CL4J6BaJ.js";import{n as m}from"./Match-onTP_fNL.js";import{t as h}from"./link-6i3yGmK_.js";import{n as g}from"./Matches-CiQgu9ui.js";import{t as _}from"./dist-D3WFT-Yo.js";import{A as v,C as y,D as ee,E as te,F as ne,L as re,M as b,N as ie,O as ae,P as x,R as oe,S as se,T as S,_ as ce,b as le,d as C,f as w,g as ue,h as de,i as fe,k as pe,l as me,o as he,p as ge,t as _e,u as T,v as ve,w as E,x as ye,y as be,z as xe}from"./search-provider-CTRbHqNx.js";import{i as D,t as O,u as k}from"./button-NLSeBFht.js";import{a as A,n as j,r as M,t as Se}from"./dist-DmeeHi7K.js";import{t as Ce}from"./dist-BZMqLvO-.js";import{n as we}from"./dist-SR6sl-WU.js";import{a as N,i as Te,l as P,o as F,r as I,s as L,t as R}from"./dropdown-menu-D72UcvWG.js";import{t as Ee}from"./cookies-BzZOQYPw.js";import{n as z}from"./skeleton-B4TLI5_E.js";import{t as De}from"./chevrons-up-down-BPquKoYJ.js";import{t as Oe}from"./send-BNvceEpO.js";import{t as ke}from"./badge-BRKB3301.js";var B=e(a(),1),V=f(),H=`Collapsible`,[Ae,je]=A(H),[Me,U]=Ae(H),W=B.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[c,l]=Se({prop:r,defaultProp:i??!1,onChange:o,caller:H});return(0,V.jsx)(Me,{scope:n,disabled:a,contentId:we(),open:c,onOpenToggle:B.useCallback(()=>l(e=>!e),[l]),children:(0,V.jsx)(_.div,{"data-state":Y(c),"data-disabled":a?``:void 0,...s,ref:t})})});W.displayName=H;var G=`CollapsibleTrigger`,K=B.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=U(G,n);return(0,V.jsx)(_.button,{type:`button`,"aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":Y(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:M(e.onClick,i.onOpenToggle)})});K.displayName=G;var q=`CollapsibleContent`,J=B.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=U(q,e.__scopeCollapsible);return(0,V.jsx)(Ce,{present:n||i.open,children:({present:e})=>(0,V.jsx)(Ne,{...r,ref:t,present:e})})});J.displayName=q;var Ne=B.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...a}=e,o=U(q,n),[s,c]=B.useState(r),l=B.useRef(null),u=k(t,l),d=B.useRef(0),f=d.current,p=B.useRef(0),m=p.current,h=o.open||s,g=B.useRef(h),v=B.useRef(void 0);return B.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),j(()=>{let e=l.current;if(e){v.current=v.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();d.current=t.height,p.current=t.width,g.current||(e.style.transitionDuration=v.current.transitionDuration,e.style.animationName=v.current.animationName),c(r)}},[o.open,r]),(0,V.jsx)(_.div,{"data-state":Y(o.open),"data-disabled":o.disabled?``:void 0,id:o.contentId,hidden:!h,...a,ref:u,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:h&&i})});function Y(e){return e?`open`:`closed`}var Pe=W;function Fe(){return(0,V.jsx)(`a`,{className:D(`fixed inset-s-44 z-999 whitespace-nowrap`,`bg-primary px-4 py-2 font-medium text-primary-foreground text-sm`,`opacity-95 shadow-sm transition`,`-translate-y-52 hover:bg-primary/90`,`focus:translate-y-3 focus:transform`,`focus-visible:ring-1 focus-visible:ring-ring`),href:`#content`,children:u()})}function Ie({...e}){return(0,V.jsx)(Pe,{"data-slot":`collapsible`,...e})}function Le({...e}){return(0,V.jsx)(K,{"data-slot":`collapsible-trigger`,...e})}function Re({...e}){return(0,V.jsx)(J,{"data-slot":`collapsible-content`,...e})}function ze({title:e,items:t}){let{state:n,isMobile:r}=b();return(0,V.jsxs)(be,{children:[(0,V.jsx)(le,{children:e}),(0,V.jsx)(y,{children:t.map(e=>{let t=`${e.title}-${e.url}`;return e.items?n===`collapsed`&&!r?(0,V.jsx)(Ue,{item:e},t):(0,V.jsx)(Ve,{item:e},t):(0,V.jsx)(Be,{item:e},t)})})]})}function X({children:e}){return(0,V.jsx)(ke,{className:`rounded-full px-1 py-0 text-xs`,children:e})}function Be({item:e}){let{setOpenMobile:t}=b();return(0,V.jsx)(S,{children:(0,V.jsx)(E,{asChild:!0,isActive:!!g()({to:e.url}),tooltip:e.title,children:(0,V.jsxs)(h,{onClick:()=>t(!1),to:e.url,children:[e.icon&&(0,V.jsx)(e.icon,{}),(0,V.jsx)(`span`,{children:e.title}),e.badge&&(0,V.jsx)(X,{children:e.badge})]})})})}function Ve({item:e}){let{setOpenMobile:t}=b();return(0,V.jsx)(Ie,{asChild:!0,className:`group/collapsible`,defaultOpen:!1,children:(0,V.jsxs)(S,{children:[(0,V.jsx)(Le,{asChild:!0,children:(0,V.jsxs)(E,{tooltip:e.title,children:[e.icon&&(0,V.jsx)(e.icon,{}),(0,V.jsx)(`span`,{children:e.title}),e.badge&&(0,V.jsx)(X,{children:e.badge}),(0,V.jsx)(z,{className:`ms-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90 rtl:rotate-180`})]})}),(0,V.jsx)(Re,{className:`CollapsibleContent`,children:(0,V.jsx)(te,{children:e.items.map(e=>(0,V.jsx)(He,{item:e,onClose:()=>t(!1)},e.title))})})]})})}function He({item:e,onClose:t}){return(0,V.jsx)(ae,{children:(0,V.jsx)(ee,{asChild:!0,isActive:!!g()({to:e.url}),children:(0,V.jsxs)(h,{onClick:t,to:e.url,children:[e.icon&&(0,V.jsx)(e.icon,{}),(0,V.jsx)(`span`,{children:e.title}),e.badge&&(0,V.jsx)(X,{children:e.badge})]})})})}function Ue({item:e}){let t=g();return(0,V.jsx)(S,{children:(0,V.jsxs)(R,{children:[(0,V.jsx)(P,{asChild:!0,children:(0,V.jsxs)(E,{isActive:e.items.some(e=>!!t({to:e.url})),tooltip:e.title,children:[e.icon&&(0,V.jsx)(e.icon,{}),(0,V.jsx)(`span`,{children:e.title}),e.badge&&(0,V.jsx)(X,{children:e.badge}),(0,V.jsx)(z,{className:`ms-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90`})]})}),(0,V.jsxs)(I,{align:`start`,side:`right`,sideOffset:4,children:[(0,V.jsxs)(F,{children:[e.title,` `,e.badge?`(${e.badge})`:``]}),(0,V.jsx)(L,{}),e.items.map(e=>(0,V.jsx)(Z,{item:e},`${e.title}-${e.url}`))]})]})})}function Z({item:e}){return(0,V.jsx)(N,{asChild:!0,children:(0,V.jsxs)(h,{className:g()({to:e.url})?`bg-secondary`:``,to:e.url,children:[e.icon&&(0,V.jsx)(e.icon,{}),(0,V.jsx)(`span`,{className:`max-w-52 text-wrap`,children:e.title}),e.badge&&(0,V.jsx)(`span`,{className:`ms-auto text-xs`,children:e.badge})]})})}function We(){let{isMobile:e}=b(),[t,r]=me(),[i,a]=(0,B.useState)(!1),{user:u}=n(),f=u?.username?.trim()||l(),m=f.charAt(0).toUpperCase()||`U`,g=u?.last_login_at?c({time:he(u.last_login_at)}):p();return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(ne,{onOpenChange:a,open:i,children:(0,V.jsx)(de,{})}),(0,V.jsx)(y,{children:(0,V.jsx)(S,{children:(0,V.jsxs)(R,{children:[(0,V.jsx)(P,{asChild:!0,children:(0,V.jsxs)(E,{className:`data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground`,size:`lg`,children:[(0,V.jsxs)(T,{className:`h-8 w-8 rounded-lg`,children:[(0,V.jsx)(w,{alt:f,src:`/avatars/01.png`}),(0,V.jsx)(C,{className:`rounded-lg`,children:m})]}),(0,V.jsxs)(`div`,{className:`grid flex-1 text-start text-sm leading-tight`,children:[(0,V.jsx)(`span`,{className:`truncate font-semibold`,children:f}),(0,V.jsx)(`span`,{className:`truncate text-xs`,children:g})]}),(0,V.jsx)(De,{className:`ms-auto size-4`})]})}),(0,V.jsxs)(I,{align:`end`,className:`w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg`,side:e?`bottom`:`right`,sideOffset:4,children:[(0,V.jsx)(F,{className:`p-0 font-normal`,children:(0,V.jsxs)(`div`,{className:`flex items-center gap-2 px-1 py-1.5 text-start text-sm`,children:[(0,V.jsxs)(T,{className:`h-8 w-8 rounded-lg`,children:[(0,V.jsx)(w,{alt:f,src:`/avatars/01.png`}),(0,V.jsx)(C,{className:`rounded-lg`,children:m})]}),(0,V.jsxs)(`div`,{className:`grid flex-1 text-start text-sm leading-tight`,children:[(0,V.jsx)(`span`,{className:`truncate font-semibold`,children:f}),(0,V.jsx)(`span`,{className:`truncate text-xs`,children:g})]})]})}),(0,V.jsx)(L,{}),(0,V.jsxs)(Te,{children:[(0,V.jsx)(N,{asChild:!0,children:(0,V.jsxs)(h,{to:`/account/password`,children:[(0,V.jsx)(xe,{}),s()]})}),(0,V.jsxs)(N,{onClick:()=>a(!0),onSelect:e=>e.preventDefault(),children:[(0,V.jsx)(re,{}),o()]})]}),(0,V.jsx)(L,{}),(0,V.jsxs)(N,{onClick:()=>r(!0),variant:`destructive`,children:[(0,V.jsx)(oe,{}),d()]})]})]})})}),(0,V.jsx)(ge,{onOpenChange:r,open:!!t})]})}function Ge({teams:e}){let t=e[0];return(0,V.jsx)(y,{children:(0,V.jsx)(S,{children:(0,V.jsxs)(E,{className:`cursor-default`,size:`lg`,children:[(0,V.jsx)(`div`,{className:`flex aspect-square size-8 items-center justify-center rounded-lg`,children:(0,V.jsx)(t.logo,{className:`size-8`})}),(0,V.jsxs)(`div`,{className:`grid flex-1 text-start text-sm leading-tight`,children:[(0,V.jsx)(`span`,{className:`truncate font-semibold`,children:t.name}),(0,V.jsx)(`span`,{className:`truncate text-xs`,children:t.plan})]})]})})})}var Ke=`https://t.me/epusdt_group`,qe=`https://github.com/GMWalletApp/epusdt`,Je=`https://epusdt.com/`,Ye=`https://api.github.com/repos/GMWalletApp/epusdt/releases/latest`,Xe=`v1.0.1`;function Q(){return(0,V.jsx)(`span`,{"aria-hidden":`true`,className:`text-sidebar-foreground/25`,children:`|`})}function Ze(e){return(0,V.jsx)(`svg`,{"aria-hidden":`true`,fill:`currentColor`,viewBox:`0 0 24 24`,...e,children:(0,V.jsx)(`path`,{d:`M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.866-.014-1.7-2.782.605-3.369-1.343-3.369-1.343-.455-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.071 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0 1 12 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.203 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.31.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .269.18.58.688.481A10.02 10.02 0 0 0 22 12.017C22 6.484 17.523 2 12 2Z`})})}function $(e){return e.trim().replace(/^[^\d]*/,``).split(/[^\d]+/).filter(Boolean).map(e=>Number(e))}function Qe(e,t){let n=$(e),r=$(t),i=Math.max(n.length,r.length);for(let e=0;ei)return!0;if(t{let e=await fetch(Ye,{headers:{Accept:`application/vnd.github+json`}});if(e.status===404)return null;if(!e.ok)throw Error(`Failed to fetch latest release: ${e.status}`);return e.json()},retry:!1,staleTime:1e3*60*30}),i=n.data?.tag_name,a=n.data?.html_url,o=e.data?.data?.version||Xe,s=typeof i==`string`&&typeof a==`string`&&Qe(i,o);return(0,V.jsx)(`div`,{className:`border-sidebar-border/60 border-t px-2 pt-2 pb-1 text-sidebar-foreground/70 text-xs group-data-[collapsible=icon]:hidden`,children:(0,V.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,V.jsx)(O,{asChild:!0,size:`icon-xs`,variant:`ghost`,children:(0,V.jsx)(`a`,{href:Ke,rel:`noreferrer`,target:`_blank`,title:`Telegram`,children:(0,V.jsx)(Oe,{className:`size-3.5`})})}),(0,V.jsx)(Q,{}),(0,V.jsx)(O,{asChild:!0,size:`icon-xs`,variant:`ghost`,children:(0,V.jsx)(`a`,{href:qe,rel:`noreferrer`,target:`_blank`,title:`GitHub`,children:(0,V.jsx)(Ze,{className:`size-3.5`})})}),(0,V.jsx)(Q,{}),(0,V.jsx)(O,{asChild:!0,className:`h-6 px-2 text-xs`,variant:`ghost`,children:(0,V.jsx)(`a`,{href:Je,rel:`noreferrer`,target:`_blank`,title:`官网文档`,children:(0,V.jsx)(`span`,{children:`官网文档`})})}),(0,V.jsxs)(`div`,{className:`ml-auto flex items-center gap-0 whitespace-nowrap`,children:[(0,V.jsx)(`span`,{className:`shrink-0 rounded-md bg-sidebar-accent/60 px-2 py-1 font-medium text-sidebar-foreground/85 leading-none`,children:o}),s?(0,V.jsx)(`a`,{className:`shrink-0 font-medium text-primary leading-none hover:text-primary/80`,href:a,rel:`noreferrer`,target:`_blank`,children:`更新`}):null]})]})})}function et(){let{collapsible:e,variant:t}=x(),n=fe();return(0,V.jsxs)(ue,{collapsible:e,variant:t,children:[(0,V.jsx)(ye,{children:(0,V.jsx)(Ge,{teams:n.teams})}),(0,V.jsx)(ce,{children:n.navGroups.map(e=>(0,V.jsx)(ze,{...e},e.title))}),(0,V.jsxs)(ve,{children:[(0,V.jsx)(We,{}),(0,V.jsx)($e,{})]}),(0,V.jsx)(v,{})]})}function tt({children:e}){return(0,V.jsx)(_e,{children:(0,V.jsx)(ie,{children:(0,V.jsxs)(pe,{defaultOpen:Ee(i)!==`false`,children:[(0,V.jsx)(Fe,{}),(0,V.jsx)(et,{}),(0,V.jsx)(se,{className:D(`@container/content`,`has-data-[layout=fixed]:h-svh`,`peer-data-[variant=inset]:has-data-[layout=fixed]:h-[calc(100svh-(var(--spacing)*4))]`),id:`content`,tabIndex:-1,children:e??(0,V.jsx)(m,{})})]})})})}var nt=tt;export{nt as component}; \ No newline at end of file diff --git a/src/www/assets/route-C6USHQDN.js b/src/www/assets/route-DJLBMX6x.js similarity index 85% rename from src/www/assets/route-C6USHQDN.js rename to src/www/assets/route-DJLBMX6x.js index 5e213ae..c4ad4a1 100644 --- a/src/www/assets/route-C6USHQDN.js +++ b/src/www/assets/route-DJLBMX6x.js @@ -1 +1 @@ -import{Ff as e,If as t,Jr as n,Nf as r,Or as i,Pf as a,qr as o,tm as s,w as c}from"./messages-BOatyqUm.js";import{n as l}from"./Match-DrG03Wse.js";import{H as u,L as d,V as f}from"./search-provider-C-_FQI9C.js";import{t as p}from"./separator-CsUemQNs.js";import{t as m}from"./createLucideIcon-Br0Bd5k2.js";import{n as h,t as g}from"./main-C1R3Hvq1.js";import{t as _}from"./page-header-GTtyZFBB.js";import{t as v}from"./sidebar-nav-LZqaVZGH.js";var y=m(`bell-ring`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M22 8c0-2.3-.8-4.3-2-6`,key:`5bb3ad`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}],[`path`,{d:`M4 2C2.8 3.7 2 5.7 2 8`,key:`tap9e0`}]]),b=m(`globe-lock`,[[`path`,{d:`M15.686 15A14.5 14.5 0 0 1 12 22a14.5 14.5 0 0 1 0-20 10 10 0 1 0 9.542 13`,key:`qkt0x6`}],[`path`,{d:`M2 12h8.5`,key:`ovaggd`}],[`path`,{d:`M20 6V4a2 2 0 1 0-4 0v2`,key:`1of5e8`}],[`rect`,{width:`8`,height:`5`,x:`14`,y:`6`,rx:`1`,key:`1fmf51`}]]),x=m(`scroll-text`,[[`path`,{d:`M15 12h-5`,key:`r7krc0`}],[`path`,{d:`M15 8h-5`,key:`1khuty`}],[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`,key:`zz82l3`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`,key:`1ph1d7`}]]),S=s(),C=[{title:t(),href:`/settings`,icon:(0,S.jsx)(d,{size:18})},{title:e(),href:`/settings/telegram`,icon:(0,S.jsx)(y,{size:18})},{title:i(),href:`/settings/system`,icon:(0,S.jsx)(x,{size:18})},{title:a(),href:`/settings/pay`,icon:(0,S.jsx)(b,{size:18})},{title:r(),href:`/settings/epay`,icon:(0,S.jsx)(u,{size:18})},{title:c(),href:`/settings/okpay`,icon:(0,S.jsx)(f,{size:18})}];function w(){return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(h,{}),(0,S.jsxs)(g,{fixed:!0,children:[(0,S.jsx)(_,{description:o(),title:n()}),(0,S.jsx)(p,{className:`my-4 lg:my-6`}),(0,S.jsxs)(`div`,{className:`flex flex-1 flex-col space-y-2 overflow-hidden lg:flex-row lg:space-x-12 lg:space-y-0`,children:[(0,S.jsx)(`aside`,{className:`top-0 lg:sticky lg:w-1/5`,children:(0,S.jsx)(v,{items:C})}),(0,S.jsx)(`div`,{className:`flex w-full overflow-y-hidden p-1`,children:(0,S.jsx)(l,{})})]})]})]})}var T=w;export{T as component}; \ No newline at end of file +import{Ff as e,If as t,Jr as n,Nf as r,Or as i,Pf as a,qr as o,tm as s,w as c}from"./messages-CL4J6BaJ.js";import{n as l}from"./Match-onTP_fNL.js";import{H as u,L as d,V as f}from"./search-provider-CTRbHqNx.js";import{t as p}from"./separator-CqhQIQ-B.js";import{t as m}from"./createLucideIcon-Br0Bd5k2.js";import{n as h,t as g}from"./main-CTY49s_f.js";import{t as _}from"./page-header-B7O10aw9.js";import{t as v}from"./sidebar-nav-CrEhVF-o.js";var y=m(`bell-ring`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M22 8c0-2.3-.8-4.3-2-6`,key:`5bb3ad`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}],[`path`,{d:`M4 2C2.8 3.7 2 5.7 2 8`,key:`tap9e0`}]]),b=m(`globe-lock`,[[`path`,{d:`M15.686 15A14.5 14.5 0 0 1 12 22a14.5 14.5 0 0 1 0-20 10 10 0 1 0 9.542 13`,key:`qkt0x6`}],[`path`,{d:`M2 12h8.5`,key:`ovaggd`}],[`path`,{d:`M20 6V4a2 2 0 1 0-4 0v2`,key:`1of5e8`}],[`rect`,{width:`8`,height:`5`,x:`14`,y:`6`,rx:`1`,key:`1fmf51`}]]),x=m(`scroll-text`,[[`path`,{d:`M15 12h-5`,key:`r7krc0`}],[`path`,{d:`M15 8h-5`,key:`1khuty`}],[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`,key:`zz82l3`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`,key:`1ph1d7`}]]),S=s(),C=[{title:t(),href:`/settings`,icon:(0,S.jsx)(d,{size:18})},{title:e(),href:`/settings/telegram`,icon:(0,S.jsx)(y,{size:18})},{title:i(),href:`/settings/system`,icon:(0,S.jsx)(x,{size:18})},{title:a(),href:`/settings/pay`,icon:(0,S.jsx)(b,{size:18})},{title:r(),href:`/settings/epay`,icon:(0,S.jsx)(u,{size:18})},{title:c(),href:`/settings/okpay`,icon:(0,S.jsx)(f,{size:18})}];function w(){return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(h,{}),(0,S.jsxs)(g,{fixed:!0,children:[(0,S.jsx)(_,{description:o(),title:n()}),(0,S.jsx)(p,{className:`my-4 lg:my-6`}),(0,S.jsxs)(`div`,{className:`flex flex-1 flex-col space-y-2 overflow-hidden lg:flex-row lg:space-x-12 lg:space-y-0`,children:[(0,S.jsx)(`aside`,{className:`top-0 lg:sticky lg:w-1/5`,children:(0,S.jsx)(v,{items:C})}),(0,S.jsx)(`div`,{className:`flex w-full overflow-y-hidden p-1`,children:(0,S.jsx)(l,{})})]})]})]})}var T=w;export{T as component}; \ No newline at end of file diff --git a/src/www/assets/route-DvJeidrw.js b/src/www/assets/route-DYctbiZb.js similarity index 64% rename from src/www/assets/route-DvJeidrw.js rename to src/www/assets/route-DYctbiZb.js index 0a2329b..3eda793 100644 --- a/src/www/assets/route-DvJeidrw.js +++ b/src/www/assets/route-DYctbiZb.js @@ -1 +1 @@ -import{Du as e,Eu as t,Is as n,Ou as r,tm as i}from"./messages-BOatyqUm.js";import{n as a}from"./Match-DrG03Wse.js";import{H as o}from"./search-provider-C-_FQI9C.js";import{t as s}from"./separator-CsUemQNs.js";import{t as c}from"./createLucideIcon-Br0Bd5k2.js";import{n as l,t as u}from"./main-C1R3Hvq1.js";import{t as d}from"./page-header-GTtyZFBB.js";import{t as f}from"./sidebar-nav-LZqaVZGH.js";var p=c(`book-marked`,[[`path`,{d:`M10 2v8l3-3 3 3V2`,key:`sqw3rj`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}]]),m=i(),h=[{title:e(),href:`/payment-setup`,icon:(0,m.jsx)(o,{size:18})},{title:t(),href:`/payment-setup/integrations`,icon:(0,m.jsx)(p,{size:18})}];function g(){return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(l,{}),(0,m.jsxs)(u,{fixed:!0,children:[(0,m.jsx)(d,{description:n(),title:r()}),(0,m.jsx)(s,{className:`my-4 lg:my-6`}),(0,m.jsxs)(`div`,{className:`flex flex-1 flex-col space-y-2 overflow-hidden lg:flex-row lg:space-x-12 lg:space-y-0`,children:[(0,m.jsx)(`aside`,{className:`top-0 lg:sticky lg:w-1/5`,children:(0,m.jsx)(f,{items:h})}),(0,m.jsx)(`div`,{className:`flex w-full overflow-y-hidden p-1`,children:(0,m.jsx)(a,{})})]})]})]})}var _=g;export{_ as component}; \ No newline at end of file +import{Du as e,Eu as t,Is as n,Ou as r,tm as i}from"./messages-CL4J6BaJ.js";import{n as a}from"./Match-onTP_fNL.js";import{H as o}from"./search-provider-CTRbHqNx.js";import{t as s}from"./separator-CqhQIQ-B.js";import{t as c}from"./createLucideIcon-Br0Bd5k2.js";import{n as l,t as u}from"./main-CTY49s_f.js";import{t as d}from"./page-header-B7O10aw9.js";import{t as f}from"./sidebar-nav-CrEhVF-o.js";var p=c(`book-marked`,[[`path`,{d:`M10 2v8l3-3 3 3V2`,key:`sqw3rj`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}]]),m=i(),h=[{title:e(),href:`/payment-setup`,icon:(0,m.jsx)(o,{size:18})},{title:t(),href:`/payment-setup/integrations`,icon:(0,m.jsx)(p,{size:18})}];function g(){return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(l,{}),(0,m.jsxs)(u,{fixed:!0,children:[(0,m.jsx)(d,{description:n(),title:r()}),(0,m.jsx)(s,{className:`my-4 lg:my-6`}),(0,m.jsxs)(`div`,{className:`flex flex-1 flex-col space-y-2 overflow-hidden lg:flex-row lg:space-x-12 lg:space-y-0`,children:[(0,m.jsx)(`aside`,{className:`top-0 lg:sticky lg:w-1/5`,children:(0,m.jsx)(f,{items:h})}),(0,m.jsx)(`div`,{className:`flex w-full overflow-y-hidden p-1`,children:(0,m.jsx)(a,{})})]})]})]})}var _=g;export{_ as component}; \ No newline at end of file diff --git a/src/www/assets/route-CAiA_U_q.js b/src/www/assets/route-DcIGa4_b.js similarity index 99% rename from src/www/assets/route-CAiA_U_q.js rename to src/www/assets/route-DcIGa4_b.js index 2bf3e87..8ff15b3 100644 --- a/src/www/assets/route-CAiA_U_q.js +++ b/src/www/assets/route-DcIGa4_b.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{Ct as n,St as r,tm as i,ut as a}from"./messages-BOatyqUm.js";import{n as o}from"./Match-DrG03Wse.js";import{i as s}from"./button-C_NDYaz8.js";import{n as c,t as l}from"./theme-switch-CHLQml_8.js";import{t as u}from"./logo-agrtpj2n.js";import{n as d,t as f}from"./auth-animation-context-CmPA3sF3.js";var p=e(t());function m(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function h(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var g={autoSleep:120,force3D:`auto`,nullTargetWarn:1,units:{lineHeight:``}},_={duration:.5,overwrite:!1,delay:0},v,y,b,x=1e8,S=1/x,C=Math.PI*2,w=C/4,T=0,E=Math.sqrt,D=Math.cos,O=Math.sin,k=function(e){return typeof e==`string`},A=function(e){return typeof e==`function`},j=function(e){return typeof e==`number`},M=function(e){return e===void 0},N=function(e){return typeof e==`object`},P=function(e){return e!==!1},F=function(){return typeof window<`u`},I=function(e){return A(e)||k(e)},ee=typeof ArrayBuffer==`function`&&ArrayBuffer.isView||function(){},L=Array.isArray,te=/random\([^)]+\)/g,ne=/,\s*/g,re=/(?:-?\.?\d|\.)+/gi,ie=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,ae=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,oe=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,se=/[+-]=-?[.\d]+/,ce=/[^,'"\[\]\s]+/gi,le=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,R,ue,de,fe,pe={},me={},he,ge=function(e){return(me=We(e,pe))&&Y},_e=function(e,t){return console.warn(`Invalid property`,e,`set to`,t,`Missing plugin? gsap.registerPlugin()`)},ve=function(e,t){return!t&&console.warn(e)},ye=function(e,t){return e&&(pe[e]=t)&&me&&(me[e]=t)||pe},be=function(){return 0},xe={suppressEvents:!0,isStart:!0,kill:!1},Se={suppressEvents:!0,kill:!1},Ce={suppressEvents:!0},we={},Te=[],Ee={},De,Oe={},ke={},Ae=30,je=[],Me=``,Ne=function(e){var t=e[0],n,r;if(N(t)||A(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(r=je.length;r--&&!je[r].targetTest(t););n=je[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new _n(e[r],n)))||e.splice(r,1);return e},Pe=function(e){return e._gsap||Ne(Et(e))[0]._gsap},Fe=function(e,t,n){return(n=e[t])&&A(n)?e[t]():M(n)&&e.getAttribute&&e.getAttribute(t)||n},z=function(e,t){return(e=e.split(`,`)).forEach(t)||e},B=function(e){return Math.round(e*1e5)/1e5||0},V=function(e){return Math.round(e*1e7)/1e7||0},Ie=function(e,t){var n=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),n===`+`?e+r:n===`-`?e-r:n===`*`?e*r:e/r},Le=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++ro;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=a,t.parent=t._dp=e,t},Xe=function(e,t,n,r){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var i=t._prev,a=t._next;i?i._next=a:e[n]===t&&(e[n]=a),a?a._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},Ze=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Qe=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},$e=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},et=function(e,t,n,r){return e._startAt&&(y?e._startAt.revert(Se):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},tt=function e(t){return!t||t._ts&&e(t.parent)},nt=function(e){return e._repeat?rt(e._tTime,e=e.duration()+e._rDelay)*e:0},rt=function(e,t){var n=Math.floor(e=V(e/t));return e&&n===e?n-1:n},it=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},at=function(e){return e._end=V(e._start+(e._tDur/Math.abs(e._ts||e._rts||S)||0))},ot=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=V(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),at(e),n._dirty||Qe(n,e)),e},st=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._startS)&&t.render(n,!0)),Qe(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-S}},ct=function(e,t,n,r){return t.parent&&Ze(t),t._start=V((j(n)?n:n||e!==R?vt(e,n,t):e._time)+t._delay),t._end=V(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Ye(e,t,`_first`,`_last`,e._sort?`_start`:0),ft(t)||(e._recent=t),r||st(e,t),e._ts<0&&ot(e,e._tTime),e},lt=function(e,t){return(pe.ScrollTrigger||_e(`scrollTrigger`,t))&&pe.ScrollTrigger.create(t,e)},ut=function(e,t,n,r,i){if(Tn(e,t,i),!e._initted)return 1;if(!n&&e._pt&&!y&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&De!==rn.frame)return Te.push(e),e._lazy=[i,r],1},dt=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},ft=function(e){var t=e.data;return t===`isFromStart`||t===`isStart`},pt=function(e,t,n,r){var i=e.ratio,a=t<0||!t&&(!e._start&&dt(e)&&!(!e._initted&&ft(e))||(e._ts<0||e._dp._ts<0)&&!ft(e))?0:1,o=e._rDelay,s=0,c,l,u;if(o&&e._repeat&&(s=xt(0,e._tDur,t),l=rt(s,o),e._yoyo&&l&1&&(a=1-a),l!==rt(e._tTime,o)&&(i=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==i||y||r||e._zTime===S||!t&&e._zTime){if(!e._initted&&ut(e,t,r,n,s))return;for(u=e._zTime,e._zTime=t||(n?S:0),n||=t&&!u,e.ratio=a,e._from&&(a=1-a),e._time=0,e._tTime=s,c=e._pt;c;)c.r(a,c.d),c=c._next;t<0&&et(e,t,n,!0),e._onUpdate&&!n&&Ut(e,`onUpdate`),s&&e._repeat&&!n&&e.parent&&Ut(e,`onRepeat`),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&Ze(e,1),!n&&!y&&(Ut(e,a?`onComplete`:`onReverseComplete`,!0),e._prom&&e._prom()))}else e._zTime||=t},mt=function(e,t,n){var r;if(n>t)for(r=e._first;r&&r._start<=n;){if(r.data===`isPause`&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if(r.data===`isPause`&&r._start0&&!r&&ot(e,e._tTime=e._tDur*o),e.parent&&at(e),n||Qe(e.parent,e),e},gt=function(e){return e instanceof K?Qe(e):ht(e,e._dur)},_t={_start:0,endTime:be,totalDuration:be},vt=function e(t,n,r){var i=t.labels,a=t._recent||_t,o=t.duration()>=x?a.endTime(!1):t._dur,s,c,l;return k(n)&&(isNaN(n)||n in i)?(c=n.charAt(0),l=n.substr(-1)===`%`,s=n.indexOf(`=`),c===`<`||c===`>`?(s>=0&&(n=n.replace(/=/,``)),(c===`<`?a._start:a.endTime(a._repeat>=0))+(parseFloat(n.substr(1))||0)*(l?(s<0?a:r).totalDuration()/100:1)):s<0?(n in i||(i[n]=o),i[n]):(c=parseFloat(n.charAt(s-1)+n.substr(s+1)),l&&r&&(c=c/100*(L(r)?r[0]:r).totalDuration()),s>1?e(t,n.substr(0,s-1),r)+c:o+c)):n==null?o:+n},yt=function(e,t,n){var r=j(t[1]),i=(r?2:1)+(e<2?0:1),a=t[i],o,s;if(r&&(a.duration=t[1]),a.parent=n,e){for(o=a,s=n;s&&!(`immediateRender`in o);)o=s.vars.defaults||{},s=P(s.vars.inherit)&&s.parent;a.immediateRender=P(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[i-1]}return new q(t[0],a,t[i+1])},bt=function(e,t){return e||e===0?t(e):t},xt=function(e,t,n){return nt?t:n},U=function(e,t){return!k(e)||!(t=le.exec(e))?``:t[1]},St=function(e,t,n){return bt(n,function(n){return xt(e,t,n)})},Ct=[].slice,wt=function(e,t){return e&&N(e)&&`length`in e&&(!t&&!e.length||e.length-1 in e&&N(e[0]))&&!e.nodeType&&e!==ue},Tt=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(e){var r;return k(e)&&!t||wt(e,1)?(r=n).push.apply(r,Et(e)):n.push(e)})||n},Et=function(e,t,n){return b&&!t&&b.selector?b.selector(e):k(e)&&!n&&(de||!an())?Ct.call((t||fe).querySelectorAll(e),0):L(e)?Tt(e,n):wt(e)?Ct.call(e,0):e?[e]:[]},Dt=function(e){return e=Et(e)[0]||ve(`Invalid scope`)||{},function(t){var n=e.current||e.nativeElement||e;return Et(t,n.querySelectorAll?n:n===e?ve(`Invalid scope`)||fe.createElement(`div`):e)}},Ot=function(e){return e.sort(function(){return .5-Math.random()})},kt=function(e){if(A(e))return e;var t=N(e)?e:{each:e},n=fn(t.ease),r=t.from||0,i=parseFloat(t.base)||0,a={},o=r>0&&r<1,s=isNaN(r)||o,c=t.axis,l=r,u=r;return k(r)?l=u={center:.5,edges:.5,end:1}[r]||0:!o&&s&&(l=r[0],u=r[1]),function(e,o,d){var f=(d||t).length,p=a[f],m,h,g,_,v,y,b,S,C;if(!p){if(C=t.grid===`auto`?0:(t.grid||[1,x])[1],!C){for(b=-x;b<(b=d[C++].getBoundingClientRect().left)&&Cb&&(b=v),vf?f-1:c?c===`y`?f/C:C:Math.max(C,f/C))||0)*(r===`edges`?-1:1),p.b=f<0?i-f:i,p.u=U(t.amount||t.each)||0,n=n&&f<0?dn(n):n}return f=(p[e]-p.min)/p.max||0,V(p.b+(n?n(f):f)*p.v)+p.u}},At=function(e){var t=10**((e+``).split(`.`)[1]||``).length;return function(n){var r=V(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(j(n)?0:U(n))}},jt=function(e,t){var n=L(e),r,i;return!n&&N(e)&&(r=n=e.radius||x,e.values?(e=Et(e.values),(i=!j(e[0]))&&(r*=r)):e=At(e.increment)),bt(t,n?A(e)?function(t){return i=e(t),Math.abs(i-t)<=r?i:t}:function(t){for(var n=parseFloat(i?t.x:t),a=parseFloat(i?t.y:0),o=x,s=0,c=e.length,l,u;c--;)i?(l=e[c].x-n,u=e[c].y-a,l=l*l+u*u):l=Math.abs(e[c]-n),li?a-e:e)})},zt=function(e){return e.replace(te,function(e){var t=e.indexOf(`[`)+1,n=e.substring(t||7,t?e.indexOf(`]`):e.length-1).split(ne);return Mt(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},Bt=function(e,t,n,r,i){var a=t-e,o=r-n;return bt(i,function(t){return n+((t-e)/a*o||0)})},Vt=function e(t,n,r,i){var a=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!a){var o=k(t),s={},c,l,u,d,f;if(r===!0&&(i=1)&&(r=null),o)t={p:t},n={p:n};else if(L(t)&&!L(n)){for(u=[],d=t.length,f=d-2,l=1;l(o=Math.abs(o))&&(s=a,i=o);return s},Ut=function(e,t,n){var r=e.vars,i=r[t],a=b,o=e._ctx,s,c,l;if(i)return s=r[t+`Params`],c=r.callbackScope||e,n&&Te.length&&Re(),o&&(b=o),l=s?i.apply(c,s):i.call(c),b=a,l},Wt=function(e){return Ze(e),e.scrollTrigger&&e.scrollTrigger.kill(!!y),e.progress()<1&&Ut(e,`onInterrupt`),e},Gt,Kt=[],qt=function(e){if(e)if(e=!e.name&&e.default||e,F()||e.headless){var t=e.name,n=A(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:be,render:Bn,add:bn,kill:Hn,modifier:Vn,rawVars:0},a={targetTest:0,get:0,getSetter:In,aliases:{},register:0};if(an(),e!==r){if(Oe[t])return;H(r,H(Ke(e,i),a)),We(r.prototype,We(i,Ke(e,a))),Oe[r.prop=t]=r,e.targetTest&&(je.push(r),we[t]=1),t=(t===`css`?`CSS`:t.charAt(0).toUpperCase()+t.substr(1))+`Plugin`}ye(t,r),e.register&&e.register(Y,r,J)}else Kt.push(e)},W=255,Jt={aqua:[0,W,W],lime:[0,W,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,W],navy:[0,0,128],white:[W,W,W],olive:[128,128,0],yellow:[W,W,0],orange:[W,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[W,0,0],pink:[W,192,203],cyan:[0,W,W],transparent:[W,W,W,0]},Yt=function(e,t,n){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(n-t)*e*6:e<.5?n:e*3<2?t+(n-t)*(2/3-e)*6:t)*W+.5|0},Xt=function(e,t,n){var r=e?j(e)?[e>>16,e>>8&W,e&W]:0:Jt.black,i,a,o,s,c,l,u,d,f,p;if(!r){if(e.substr(-1)===`,`&&(e=e.substr(0,e.length-1)),Jt[e])r=Jt[e];else if(e.charAt(0)===`#`){if(e.length<6&&(i=e.charAt(1),a=e.charAt(2),o=e.charAt(3),e=`#`+i+i+a+a+o+o+(e.length===5?e.charAt(4)+e.charAt(4):``)),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&W,r&W,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&W,e&W]}else if(e.substr(0,3)===`hsl`){if(r=p=e.match(re),!t)s=r[0]%360/360,c=r[1]/100,l=r[2]/100,a=l<=.5?l*(c+1):l+c-l*c,i=l*2-a,r.length>3&&(r[3]*=1),r[0]=Yt(s+1/3,i,a),r[1]=Yt(s,i,a),r[2]=Yt(s-1/3,i,a);else if(~e.indexOf(`=`))return r=e.match(ie),n&&r.length<4&&(r[3]=1),r}else r=e.match(re)||Jt.transparent;r=r.map(Number)}return t&&!p&&(i=r[0]/W,a=r[1]/W,o=r[2]/W,u=Math.max(i,a,o),d=Math.min(i,a,o),l=(u+d)/2,u===d?s=c=0:(f=u-d,c=l>.5?f/(2-u-d):f/(u+d),s=u===i?(a-o)/f+(at||h<0)&&(r+=h-n),i+=h,y=i-r,_=y-o,(_>0||g)&&(b=++d.frame,f=y-d.time*1e3,d.time=y/=1e3,o+=_+(_>=a?4:a-_),v=1),g||(c=l(u)),v)for(p=0;p=t&&p--},_listeners:s},d}(),an=function(){return!nn&&rn.wake()},G={},on=/^[\d.\-M][\d.\-,\s]/,sn=/["']/g,cn=function(e){for(var t={},n=e.substr(1,e.length-3).split(`:`),r=n[0],i=1,a=n.length,o,s,c;i1&&n.config?n.config.apply(null,~e.indexOf(`{`)?[cn(t[1])]:ln(e).split(`,`).map(Ve)):G._CE&&on.test(e)?G._CE(``,e):n},dn=function(e){return function(t){return 1-e(1-t)}},fn=function(e,t){return e&&(A(e)?e:G[e]||un(e))||t},pn=function(e,t,n,r){n===void 0&&(n=function(e){return 1-t(1-e)}),r===void 0&&(r=function(e){return e<.5?t(e*2)/2:1-t((1-e)*2)/2});var i={easeIn:t,easeOut:n,easeInOut:r},a;return z(e,function(e){for(var t in G[e]=pe[e]=i,G[a=e.toLowerCase()]=n,i)G[a+(t===`easeIn`?`.in`:t===`easeOut`?`.out`:`.inOut`)]=G[e+`.`+t]=i[t]}),i},mn=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},hn=function e(t,n,r){var i=n>=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),o=a/C*(Math.asin(1/i)||0),s=function(e){return e===1?1:i*2**(-10*e)*O((e-o)*a)+1},c=t===`out`?s:t===`in`?function(e){return 1-s(1-e)}:mn(s);return a=C/a,c.config=function(n,r){return e(t,n,r)},c},gn=function e(t,n){n===void 0&&(n=1.70158);var r=function(e){return e?--e*e*((n+1)*e+n)+1:0},i=t===`out`?r:t===`in`?function(e){return 1-r(1-e)}:mn(r);return i.config=function(n){return e(t,n)},i};z(`Linear,Quad,Cubic,Quart,Quint,Strong`,function(e,t){var n=t<5?t+1:t;pn(e+`,Power`+(n-1),t?function(e){return e**+n}:function(e){return e},function(e){return 1-(1-e)**n},function(e){return e<.5?(e*2)**n/2:1-((1-e)*2)**n/2})}),G.Linear.easeNone=G.none=G.Linear.easeIn,pn(`Elastic`,hn(`in`),hn(`out`),hn()),(function(e,t){var n=1/t,r=2*n,i=2.5*n,a=function(a){return a0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,ht(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(an(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(ot(this,e),!n._dp||n.parent||st(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e0||!this._tDur&&!e)&&ct(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===S||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),Be(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+nt(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-e:e)+nt(this),t):this.duration()?Math.min(1,this._time/this._dur):+(this.rawTime()>0)},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?rt(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return this._rts===-S?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?it(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-S?0:this._rts,this.totalTime(xt(-Math.abs(this._delay),this.totalDuration(),n),t!==!1),at(this),$e(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(an(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==S&&(this._tTime-=S)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=V(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&ct(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(P(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?it(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){e===void 0&&(e=Ce);var t=y;return y=e,ze(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!==`nested`&&e.kill!==!1&&this.kill(),y=t,this},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,gt(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,gt(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(vt(this,e),P(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,P(t)),this._dur||(this._zTime=-S),this},t.play=function(e,t){return e!=null&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return e!=null&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return e!=null&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-S:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-S,this},t.isActive=function(){var e=this.parent||this._dp,t=this._start,n;return!!(!e||this._ts&&this._initted&&e.isActive()&&(n=e.rawTime(!0))>=t&&n1?(t?(r[e]=t,n&&(r[e+`Params`]=n),e===`onUpdate`&&(this._onUpdate=t)):delete r[e],this):r[e]},t.then=function(e){var t=this,n=t._prom;return new Promise(function(r){var i=A(e)?e:He,a=function(){var e=t.then;t.then=null,n&&n(),A(i)&&(i=i(t))&&(i.then||i===t)&&(t.then=e),r(i),t.then=e};t._initted&&t.totalProgress()===1&&t._ts>=0||!t._tTime&&t._ts<0?a():t._prom=a})},t.kill=function(){Wt(this)},e}();H(vn.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-S,_prom:0,_ps:!1,_rts:1});var K=function(e){h(t,e);function t(t,n){var r;return t===void 0&&(t={}),r=e.call(this,t)||this,r.labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=P(t.sortChildren),R&&ct(t.parent||R,m(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&<(m(r),t.scrollTrigger),r}var n=t.prototype;return n.to=function(e,t,n){return yt(0,arguments,this),this},n.from=function(e,t,n){return yt(1,arguments,this),this},n.fromTo=function(e,t,n,r){return yt(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,qe(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new q(e,t,vt(this,n),1),this},n.call=function(e,t,n){return ct(this,q.delayedCall(0,e,t),n)},n.staggerTo=function(e,t,n,r,i,a,o){return n.duration=t,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=o,n.parent=this,new q(e,n,vt(this,i)),this},n.staggerFrom=function(e,t,n,r,i,a,o){return n.runBackwards=1,qe(n).immediateRender=P(n.immediateRender),this.staggerTo(e,t,n,r,i,a,o)},n.staggerFromTo=function(e,t,n,r,i,a,o,s){return r.startAt=n,qe(r).immediateRender=P(r.immediateRender),this.staggerTo(e,t,r,i,a,o,s)},n.render=function(e,t,n){var r=this._time,i=this._dirty?this.totalDuration():this._tDur,a=this._dur,o=e<=0?0:V(e),s=this._zTime<0!=e<0&&(this._initted||!a),c,l,u,d,f,p,m,h,g,_,v,b;if(this!==R&&o>i&&e>=0&&(o=i),o!==this._tTime||n||s){if(r!==this._time&&a&&(o+=this._time-r,e+=this._time-r),c=o,g=this._start,h=this._ts,p=!h,s&&(a||(r=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(v=this._yoyo,f=a+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(f*100+e,t,n);if(c=V(o%f),o===i?(d=this._repeat,c=a):(_=V(o/f),d=~~_,d&&d===_&&(c=a,d--),c>a&&(c=a)),_=rt(this._tTime,f),!r&&this._tTime&&_!==d&&this._tTime-_*f-this._dur<=0&&(_=d),v&&d&1&&(c=a-c,b=1),d!==_&&!this._lock){var x=v&&_&1,C=x===(v&&d&1);if(d<_&&(x=!x),r=x?0:o%a?a:o,this._lock=1,this.render(r||(b?0:V(d*f)),t,!a)._lock=0,this._tTime=o,!t&&this.parent&&Ut(this,`onRepeat`),this.vars.repeatRefresh&&!b&&(this.invalidate()._lock=1,_=d),r&&r!==this._time||p!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act||(a=this._dur,i=this._tDur,C&&(this._lock=2,r=x?a:-1e-4,this.render(r,!0),this.vars.repeatRefresh&&!b&&this.invalidate()),this._lock=0,!this._ts&&!p))return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(m=mt(this,V(r),V(c)),m&&(o-=c-(c=m._start))),this._tTime=o,this._time=c,this._act=!!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,r=0),!r&&o&&a&&!t&&!_&&(Ut(this,`onStart`),this._tTime!==o))return this;if(c>=r&&e>=0)for(l=this._first;l;){if(u=l._next,(l._act||c>=l._start)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(c-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(c-l._start)*l._ts,t,n),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=-S);break}}l=u}else{l=this._last;for(var w=e<0?e:c;l;){if(u=l._prev,(l._act||w<=l._end)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(w-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(w-l._start)*l._ts,t,n||y&&ze(l)),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=w?-S:S);break}}l=u}}if(m&&!t&&(this.pause(),m.render(c>=r?0:-S)._zTime=c>=r?1:-1,this._ts))return this._start=g,at(this),this.render(e,t,n);this._onUpdate&&!t&&Ut(this,`onUpdate`,!0),(o===i&&this._tTime>=this.totalDuration()||!o&&r)&&(g===this._start||Math.abs(h)!==Math.abs(this._ts))&&(this._lock||((e||!a)&&(o===i&&this._ts>0||!o&&this._ts<0)&&Ze(this,1),!t&&!(e<0&&!r)&&(o||r||!i)&&(Ut(this,o===i&&e>=0?`onComplete`:`onReverseComplete`,!0),this._prom&&!(o0)&&this._prom())))}return this},n.add=function(e,t){var n=this;if(j(t)||(t=vt(this,t,e)),!(e instanceof vn)){if(L(e))return e.forEach(function(e){return n.add(e,t)}),this;if(k(e))return this.addLabel(e,t);if(A(e))e=q.delayedCall(0,e);else return this}return this===e?this:ct(this,e,t)},n.getChildren=function(e,t,n,r){e===void 0&&(e=!0),t===void 0&&(t=!0),n===void 0&&(n=!0),r===void 0&&(r=-x);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof q?t&&i.push(a):(n&&i.push(a),e&&i.push.apply(i,a.getChildren(!0,t,n)))),a=a._next;return i},n.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},n.remove=function(e){return k(e)?this.removeLabel(e):A(e)?this.killTweensOf(e):(e.parent===this&&Xe(this,e),e===this._recent&&(this._recent=this._last),Qe(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=V(rn.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,n),this._forcing=0,this):this._tTime},n.addLabel=function(e,t){return this.labels[e]=vt(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=q.delayedCall(0,t||be,n);return r.data=`isPause`,this._hasPause=1,ct(this,r,vt(this,e))},n.removePause=function(e){var t=this._first;for(e=vt(this,e);t;)t._start===e&&t.data===`isPause`&&Ze(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)Cn!==r[i]&&r[i].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n=[],r=Et(e),i=this._first,a=j(t),o;i;)i instanceof q?Le(i._targets,r)&&(a?(!Cn||i._initted&&i._ts)&&i.globalTime(0)<=t&&i.globalTime(i.totalDuration())>t:!t||i.isActive())&&n.push(i):(o=i.getTweensOf(r,t)).length&&n.push.apply(n,o),i=i._next;return n},n.tweenTo=function(e,t){t||={};var n=this,r=vt(n,e),i=t,a=i.startAt,o=i.onStart,s=i.onStartParams,c=i.immediateRender,l,u=q.to(n,H({ease:t.ease||`none`,lazy:!1,immediateRender:!1,time:r,overwrite:`auto`,duration:t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale())||S,onStart:function(){if(n.pause(),!l){var e=t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale());u._dur!==e&&ht(u,e,0,1).render(u._time,!0,!0),l=1}o&&o.apply(u,s||[])}},t));return c?u.render(0):u},n.tweenFromTo=function(e,t,n){return this.tweenTo(t,H({startAt:{time:vt(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return e===void 0&&(e=this._time),Ht(this,vt(this,e))},n.previousLabel=function(e){return e===void 0&&(e=this._time),Ht(this,vt(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+S)},n.shiftChildren=function(e,t,n){n===void 0&&(n=0);var r=this._first,i=this.labels,a;for(e=V(e);r;)r._start>=n&&(r._start+=e,r._end+=e),r=r._next;if(t)for(a in i)i[a]>=n&&(i[a]+=e);return Qe(this)},n.invalidate=function(t){var n=this._first;for(this._lock=0;n;)n.invalidate(t),n=n._next;return e.prototype.invalidate.call(this,t)},n.clear=function(e){e===void 0&&(e=!0);for(var t=this._first,n;t;)n=t._next,this.remove(t),t=n;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),Qe(this)},n.totalDuration=function(e){var t=0,n=this,r=n._last,i=x,a,o,s;if(arguments.length)return n.timeScale((n._repeat<0?n.duration():n.totalDuration())/(n.reversed()?-e:e));if(n._dirty){for(s=n.parent;r;)a=r._prev,r._dirty&&r.totalDuration(),o=r._start,o>i&&n._sort&&r._ts&&!n._lock?(n._lock=1,ct(n,r,o-r._delay,1)._lock=0):i=o,o<0&&r._ts&&(t-=o,(!s&&!n._dp||s&&s.smoothChildTiming)&&(n._start+=V(o/n._ts),n._time-=o,n._tTime-=o),n.shiftChildren(-o,!1,-1/0),i=0),r._end>t&&r._ts&&(t=r._end),r=a;ht(n,n===R&&n._time>t?n._time:t,1,1),n._dirty=0}return n._tDur},t.updateRoot=function(e){if(R._ts&&(Be(R,it(e,R)),De=rn.frame),rn.frame>=Ae){Ae+=g.autoSleep||120;var t=R._first;if((!t||!t._ts)&&g.autoSleep&&rn._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||rn.sleep()}}},t}(vn);H(K.prototype,{_lock:0,_hasPause:0,_forcing:0});var yn=function(e,t,n,r,i,a,o){var s=new J(this._pt,e,t,0,1,zn,null,i),c=0,l=0,u,d,f,p,m,h,g,_;for(s.b=n,s.e=r,n+=``,r+=``,(g=~r.indexOf(`random(`))&&(r=zt(r)),a&&(_=[n,r],a(_,e,t),n=_[0],r=_[1]),d=n.match(oe)||[];u=oe.exec(r);)p=u[0],m=r.substring(c,u.index),f?f=(f+1)%5:m.substr(-5)===`rgba(`&&(f=1),p!==d[l++]&&(h=parseFloat(d[l-1])||0,s._pt={_next:s._pt,p:m||l===1?m:`,`,s:h,c:p.charAt(1)===`=`?Ie(h,p)-h:parseFloat(p)-h,m:f&&f<4?Math.round:0},c=oe.lastIndex);return s.c=c`)}),b.duration();else{for(T in C={},f)T===`ease`||T===`easeEach`||On(T,f[T],C,f.easeEach);for(T in C)for(M=C[T].sort(function(e,t){return e.t-t.t}),A=0,x=0;xi-S&&!o?i:ea&&(c=a)),p=this._yoyo&&u&1,p&&(c=a-c),f=rt(this._tTime,d),c===r&&!n&&this._initted&&u===f)return this._tTime=s,this;u!==f&&this.vars.repeatRefresh&&!p&&!this._lock&&c!==d&&this._initted&&(this._lock=n=1,this.render(V(d*u),!0).invalidate()._lock=0)}if(!this._initted){if(ut(this,o?e:c,n,t,s))return this._tTime=0,this;if(r!==this._time&&!(n&&this.vars.repeatRefresh&&u!==f))return this;if(a!==this._dur)return this.render(e,t,n)}if(this._rEase){var g=c0||!s&&this._ts<0)&&Ze(this,1),!t&&!(o&&!r)&&(s||r||p)&&(Ut(this,s===i?`onComplete`:`onReverseComplete`,!0),this._prom&&!(s0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},n.resetTo=function(e,t,n,r,i){nn||rn.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts),o;return this._initted||Tn(this,a),o=this._ease(a/this._dur),En(this,e,t,n,r,o,a,i)?this.resetTo(e,t,n,r,1):(ot(this,0),this.parent||Ye(this._dp,this,`_first`,`_last`,this._dp._sort?`_start`:0),this.render(0))},n.kill=function(e,t){if(t===void 0&&(t=`all`),!e&&(!t||t===`all`))return this._lazy=this._pt=0,this.parent?Wt(this):this.scrollTrigger&&this.scrollTrigger.kill(!!y),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,Cn&&Cn.vars.overwrite!==!0)._first||Wt(this),this.parent&&n!==this.timeline.totalDuration()&&ht(this,this._dur*this.timeline._tDur/n,0,1),this}var r=this._targets,i=e?Et(e):r,a=this._ptLookup,o=this._pt,s,c,l,u,d,f,p;if((!t||t===`all`)&&Je(r,i))return t===`all`&&(this._pt=0),Wt(this);for(s=this._op=this._op||[],t!==`all`&&(k(t)&&(d={},z(t,function(e){return d[e]=1}),t=d),t=Dn(r,t)),p=r.length;p--;)if(~i.indexOf(r[p]))for(d in c=a[p],t===`all`?(s[p]=t,u=c,l={}):(l=s[p]=s[p]||{},u=t),u)f=c&&c[d],f&&((!(`kill`in f.d)||f.d.kill(d)===!0)&&Xe(this,f,`_pt`),delete c[d]),l!==`all`&&(l[d]=1);return this._initted&&!this._pt&&o&&Wt(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return yt(1,arguments)},t.delayedCall=function(e,n,r,i){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},t.fromTo=function(e,t,n){return yt(2,arguments)},t.set=function(e,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(e,n)},t.killTweensOf=function(e,t,n){return R.killTweensOf(e,t,n)},t}(vn);H(q.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),z(`staggerTo,staggerFrom,staggerFromTo`,function(e){q[e]=function(){var t=new K,n=Ct.call(arguments,0);return n.splice(e===`staggerFromTo`?5:4,0,0),t[e].apply(t,n)}});var Mn=function(e,t,n){return e[t]=n},Nn=function(e,t,n){return e[t](n)},Pn=function(e,t,n,r){return e[t](r.fp,n)},Fn=function(e,t,n){return e.setAttribute(t,n)},In=function(e,t){return A(e[t])?Nn:M(e[t])&&e.setAttribute?Fn:Mn},Ln=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},Rn=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},zn=function(e,t){var n=t._pt,r=``;if(!e&&t.b)r=t.b;else if(e===1&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round((n.s+n.c*e)*1e4)/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},Bn=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},Vn=function(e,t,n,r){for(var i=this._pt,a;i;)a=i._next,i.p===r&&i.modifier(e,t,n),i=a},Hn=function(e){for(var t=this._pt,n,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?Xe(this,t,`_pt`):t.dep||(n=1),t=r;return!n},Un=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},Wn=function(e){for(var t=e._pt,n,r,i,a;t;){for(n=t._next,r=i;r&&r.pr>t.pr;)r=r._next;(t._prev=r?r._prev:a)?t._prev._next=t:i=t,(t._next=r)?r._prev=t:a=t,t=n}e._pt=i},J=function(){function e(e,t,n,r,i,a,o,s,c){this.t=t,this.s=r,this.c=i,this.p=n,this.r=a||Ln,this.d=o||this,this.set=s||Mn,this.pr=c||0,this._next=e,e&&(e._prev=this)}var t=e.prototype;return t.modifier=function(e,t,n){this.mSet=this.mSet||this.set,this.set=Un,this.m=e,this.mt=n,this.tween=t},e}();z(Me+`parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse`,function(e){return we[e]=1}),pe.TweenMax=pe.TweenLite=q,pe.TimelineLite=pe.TimelineMax=K,R=new K({sortChildren:!1,defaults:_,autoRemoveChildren:!0,id:`root`,smoothChildTiming:!0}),g.stringFilter=tn;var Gn=[],Kn={},qn=[],Jn=0,Yn=0,Xn=function(e){return(Kn[e]||qn).map(function(e){return e()})},Zn=function(){var e=Date.now(),t=[];e-Jn>2&&(Xn(`matchMediaInit`),Gn.forEach(function(e){var n=e.queries,r=e.conditions,i,a,o,s;for(a in n)i=ue.matchMedia(n[a]).matches,i&&(o=1),i!==r[a]&&(r[a]=i,s=1);s&&(e.revert(),o&&t.push(e))}),Xn(`matchMediaRevert`),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),Jn=e,Xn(`matchMedia`))},Qn=function(){function e(e,t){this.selector=t&&Dt(t),this.data=[],this._r=[],this.isReverted=!1,this.id=Yn++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){A(e)&&(n=t,t=e,e=A);var r=this,i=function(){var e=b,i=r.selector,a;return e&&e!==r&&e.data.push(r),n&&(r.selector=Dt(n)),b=r,a=t.apply(r,arguments),A(a)&&r._r.push(a),b=e,r.selector=i,r.isReverted=!1,a};return r.last=i,e===A?i(r,function(e){return r.add(null,e)}):e?r[e]=i:i},t.ignore=function(e){var t=b;b=null,e(this),b=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof q&&!(n.parent&&n.parent.data===`nested`)&&t.push(n)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var n=this;if(e?(function(){for(var t=n.getTweens(),r=n.data.length,i;r--;)i=n.data[r],i.data===`isFlip`&&(i.revert(),i.getChildren(!0,!0,!1).forEach(function(e){return t.splice(t.indexOf(e),1)}));for(t.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),r=n.data.length;r--;)i=n.data[r],i instanceof K?i.data!==`nested`&&(i.scrollTrigger&&i.scrollTrigger.revert(),i.kill()):!(i instanceof q)&&i.revert&&i.revert(e);n._r.forEach(function(t){return t(e,n)}),n.isReverted=!0})():this.data.forEach(function(e){return e.kill&&e.kill()}),this.clear(),t)for(var r=Gn.length;r--;)Gn[r].id===this.id&&Gn.splice(r,1)},t.revert=function(e){this.kill(e||{})},e}(),$n=function(){function e(e){this.contexts=[],this.scope=e,b&&b.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){N(e)||(e={matches:e});var r=new Qn(0,n||this.scope),i=r.conditions={},a,o,s;for(o in b&&!r.selector&&(r.selector=b.selector),this.contexts.push(r),t=r.add(`onMatch`,t),r.queries=e,e)o===`all`?s=1:(a=ue.matchMedia(e[o]),a&&(Gn.indexOf(r)<0&&Gn.push(r),(i[o]=a.matches)&&(s=1),a.addListener?a.addListener(Zn):a.addEventListener(`change`,Zn)));return s&&t(r,function(e){return r.add(null,e)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),er={registerPlugin:function(){[...arguments].forEach(function(e){return qt(e)})},timeline:function(e){return new K(e)},getTweensOf:function(e,t){return R.getTweensOf(e,t)},getProperty:function(e,t,n,r){k(e)&&(e=Et(e)[0]);var i=Pe(e||{}).get,a=n?He:Ve;return n===`native`&&(n=``),e&&(t?a((Oe[t]&&Oe[t].get||i)(e,t,n,r)):function(t,n,r){return a((Oe[t]&&Oe[t].get||i)(e,t,n,r))})},quickSetter:function(e,t,n){if(e=Et(e),e.length>1){var r=e.map(function(e){return Y.quickSetter(e,t,n)}),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var a=Oe[t],o=Pe(e),s=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(t){var r=new a;Gt._pt=0,r.init(e,n?t+n:t,Gt,0,[e]),r.render(1,r),Gt._pt&&Bn(1,Gt)}:o.set(e,s);return a?c:function(t){return c(e,s,n?t+n:t,o,1)}},quickTo:function(e,t,n){var r,i=Y.to(e,H((r={},r[t]=`+=0.1`,r.paused=!0,r.stagger=0,r),n||{})),a=function(e,n,r){return i.resetTo(t,e,n,r)};return a.tween=i,a},isTweening:function(e){return R.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=fn(e.ease,_.ease)),Ge(_,e||{})},config:function(e){return Ge(g,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.plugins,i=e.defaults,a=e.extendTimeline;(r||``).split(`,`).forEach(function(e){return e&&!Oe[e]&&!pe[e]&&ve(t+` effect requires `+e+` plugin.`)}),ke[t]=function(e,t,r){return n(Et(e),H(t||{},i),r)},a&&(K.prototype[t]=function(e,n,r){return this.add(ke[t](e,N(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){G[e]=fn(t)},parseEase:function(e,t){return arguments.length?fn(e,t):G},getById:function(e){return R.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new K(e),r,i;for(n.smoothChildTiming=P(e.smoothChildTiming),R.remove(n),n._dp=0,n._time=n._tTime=R._time,r=R._first;r;)i=r._next,(t||!(!r._dur&&r instanceof q&&r.vars.onComplete===r._targets[0]))&&ct(n,r,r._start-r._delay),r=i;return ct(R,n,0),n},context:function(e,t){return e?new Qn(e,t):b},matchMedia:function(e){return new $n(e)},matchMediaRefresh:function(){return Gn.forEach(function(e){var t=e.conditions,n,r;for(r in t)t[r]&&(t[r]=!1,n=1);n&&e.revert()})||Zn()},addEventListener:function(e,t){var n=Kn[e]||(Kn[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=Kn[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:Lt,wrapYoyo:Rt,distribute:kt,random:Mt,snap:jt,normalize:Ft,getUnit:U,clamp:St,splitColor:Xt,toArray:Et,selector:Dt,mapRange:Bt,pipe:Nt,unitize:Pt,interpolate:Vt,shuffle:Ot},install:ge,effects:ke,ticker:rn,updateRoot:K.updateRoot,plugins:Oe,globalTimeline:R,core:{PropTween:J,globals:ye,Tween:q,Timeline:K,Animation:vn,getCache:Pe,_removeLinkedListItem:Xe,reverting:function(){return y},context:function(e){return e&&b&&(b.data.push(e),e._ctx=b),b},suppressOverwrites:function(e){return v=e}}};z(`to,from,fromTo,delayedCall,set,killTweensOf`,function(e){return er[e]=q[e]}),rn.add(K.updateRoot),Gt=er.to({},{duration:0});var tr=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},nr=function(e,t){var n=e._targets,r,i,a;for(r in t)for(i=n.length;i--;)a=e._ptLookup[i][r],(a&&=a.d)&&(a._pt&&(a=tr(a,r)),a&&a.modifier&&a.modifier(t[r],e,n[i],r))},rr=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,i;if(k(n)&&(r={},z(n,function(e){return r[e]=1}),n=r),t){for(i in r={},n)r[i]=t(n[i]);n=r}nr(e,n)}}}},Y=er.registerPlugin({name:`attr`,init:function(e,t,n,r,i){var a,o,s;for(a in this.tween=n,t)s=e.getAttribute(a)||``,o=this.add(e,`setAttribute`,(s||0)+``,t[a],r,i,0,0,a),o.op=a,o.b=s,this._props.push(a)},render:function(e,t){for(var n=t._pt;n;)y?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:`endArray`,headless:1,init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},rr(`roundProps`,At),rr(`modifiers`),rr(`snap`,jt))||er;q.version=K.version=Y.version=`3.15.0`,he=1,F()&&an(),G.Power0,G.Power1,G.Power2,G.Power3,G.Power4,G.Linear,G.Quad,G.Cubic,G.Quart,G.Quint,G.Strong,G.Elastic,G.Back,G.SteppedEase,G.Bounce,G.Sine,G.Expo,G.Circ;var ir,ar,or,sr,cr,lr,ur,dr=function(){return typeof window<`u`},fr={},pr=180/Math.PI,mr=Math.PI/180,hr=Math.atan2,gr=1e8,_r=/([A-Z])/g,vr=/(left|right|width|margin|padding|x)/i,yr=/[\s,\(]\S/,br={autoAlpha:`opacity,visibility`,scale:`scaleX,scaleY`,alpha:`opacity`},xr=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Sr=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Cr=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},wr=function(e,t){return t.set(t.t,t.p,e===1?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},Tr=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},Er=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},Dr=function(e,t){return t.set(t.t,t.p,e===1?t.e:t.b,t)},Or=function(e,t,n){return e.style[t]=n},kr=function(e,t,n){return e.style.setProperty(t,n)},Ar=function(e,t,n){return e._gsap[t]=n},jr=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},Mr=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},Nr=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},X=`transform`,Z=X+`Origin`,Pr=function e(t,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(t in fr&&a){if(this.tfm=this.tfm||{},t!==`transform`)t=br[t]||t,~t.indexOf(`,`)?t.split(`,`).forEach(function(e){return r.tfm[e]=$r(i,e)}):this.tfm[t]=o.x?o[t]:$r(i,t),t===Z&&(this.tfm.zOrigin=o.zOrigin);else return br.transform.split(`,`).forEach(function(t){return e.call(r,t,n)});if(this.props.indexOf(X)>=0)return;o.svg&&(this.svgo=i.getAttribute(`data-svg-origin`),this.props.push(Z,n,``)),t=X}(a||n)&&this.props.push(t,n,a[t])},Fr=function(e){e.translate&&(e.removeProperty(`translate`),e.removeProperty(`scale`),e.removeProperty(`rotate`))},Ir=function(){var e=this.props,t=this.target,n=t.style,r=t._gsap,i,a;for(i=0;i=0?Vr[i]:``)+e},Ur=function(){dr()&&window.document&&(ir=window,ar=ir.document,or=ar.documentElement,cr=zr(`div`)||{style:{}},zr(`div`),X=Hr(X),Z=X+`Origin`,cr.style.cssText=`border-width:0;line-height:0;position:absolute;padding:0`,Rr=!!Hr(`perspective`),ur=Y.core.reverting,sr=1)},Wr=function(e){var t=e.ownerSVGElement,n=zr(`svg`,t&&t.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`),r=e.cloneNode(!0),i;r.style.display=`block`,n.appendChild(r),or.appendChild(n);try{i=r.getBBox()}catch{}return n.removeChild(r),or.removeChild(n),i},Gr=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},Kr=function(e){var t,n;try{t=e.getBBox()}catch{t=Wr(e),n=1}return t&&(t.width||t.height)||n||(t=Wr(e)),t&&!t.width&&!t.x&&!t.y?{x:+Gr(e,[`x`,`cx`,`x1`])||0,y:+Gr(e,[`y`,`cy`,`y1`])||0,width:0,height:0}:t},qr=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Kr(e))},Jr=function(e,t){if(t){var n=e.style,r;t in fr&&t!==Z&&(t=X),n.removeProperty?(r=t.substr(0,2),(r===`ms`||t.substr(0,6)===`webkit`)&&(t=`-`+t),n.removeProperty(r===`--`?t:t.replace(_r,`-$1`).toLowerCase())):n.removeAttribute(t)}},Yr=function(e,t,n,r,i,a){var o=new J(e._pt,t,n,0,1,a?Dr:Er);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},Xr={deg:1,rad:1,turn:1},Zr={grid:1,flex:1},Qr=function e(t,n,r,i){var a=parseFloat(r)||0,o=(r+``).trim().substr((a+``).length)||`px`,s=cr.style,c=vr.test(n),l=t.tagName.toLowerCase()===`svg`,u=(l?`client`:`offset`)+(c?`Width`:`Height`),d=100,f=i===`px`,p=i===`%`,m,h,g,_;if(i===o||!a||Xr[i]||Xr[o])return a;if(o!==`px`&&!f&&(a=e(t,n,r,`px`)),_=t.getCTM&&qr(t),(p||o===`%`)&&(fr[n]||~n.indexOf(`adius`)))return m=_?t.getBBox()[c?`width`:`height`]:t[u],B(p?a/m*d:a/100*m);if(s[c?`width`:`height`]=d+(f?o:i),h=i!==`rem`&&~n.indexOf(`adius`)||i===`em`&&t.appendChild&&!l?t:t.parentNode,_&&(h=(t.ownerSVGElement||{}).parentNode),(!h||h===ar||!h.appendChild)&&(h=ar.body),g=h._gsap,g&&p&&g.width&&c&&g.time===rn.time&&!g.uncache)return B(a/g.width*d);if(p&&(n===`height`||n===`width`)){var v=t.style[n];t.style[n]=d+i,m=t[u],v?t.style[n]=v:Jr(t,n)}else (p||o===`%`)&&!Zr[Br(h,`display`)]&&(s.position=Br(t,`position`)),h===t&&(s.position=`static`),h.appendChild(cr),m=cr[u],h.removeChild(cr),s.position=`absolute`;return c&&p&&(g=Pe(h),g.time=rn.time,g.width=h[u]),B(f?m*a/d:m&&a?d/m*a:0)},$r=function(e,t,n,r){var i;return sr||Ur(),t in br&&t!==`transform`&&(t=br[t],~t.indexOf(`,`)&&(t=t.split(`,`)[0])),fr[t]&&t!==`transform`?(i=di(e,r),i=t===`transformOrigin`?i.svg?i.origin:fi(Br(e,Z))+` `+i.zOrigin+`px`:i[t]):(i=e.style[t],(!i||i===`auto`||r||~(i+``).indexOf(`calc(`))&&(i=ii[t]&&ii[t](e,t,n)||Br(e,t)||Fe(e,t)||+(t===`opacity`))),n&&!~(i+``).trim().indexOf(` `)?Qr(e,t,i,n)+n:i},ei=function(e,t,n,r){if(!n||n===`none`){var i=Hr(t,e,1),a=i&&Br(e,i,1);a&&a!==n?(t=i,n=a):t===`borderColor`&&(n=Br(e,`borderTopColor`))}var o=new J(this._pt,e.style,t,0,1,zn),s=0,c=0,l,u,d,f,p,m,h,_,v,y,b,x;if(o.b=n,o.e=r,n+=``,r+=``,r.substring(0,6)===`var(--`&&(r=Br(e,r.substring(4,r.indexOf(`)`)))),r===`auto`&&(m=e.style[t],e.style[t]=r,r=Br(e,t)||r,m?e.style[t]=m:Jr(e,t)),l=[n,r],tn(l),n=l[0],r=l[1],d=n.match(ae)||[],x=r.match(ae)||[],x.length){for(;u=ae.exec(r);)h=u[0],v=r.substring(s,u.index),p?p=(p+1)%5:(v.substr(-5)===`rgba(`||v.substr(-5)===`hsla(`)&&(p=1),h!==(m=d[c++]||``)&&(f=parseFloat(m)||0,b=m.substr((f+``).length),h.charAt(1)===`=`&&(h=Ie(f,h)+b),_=parseFloat(h),y=h.substr((_+``).length),s=ae.lastIndex-y.length,y||(y=y||g.units[t]||b,s===r.length&&(r+=y,o.e+=y)),b!==y&&(f=Qr(e,t,m,y)||0),o._pt={_next:o._pt,p:v||c===1?v:`,`,s:f,c:_-f,m:p&&p<4||t===`zIndex`?Math.round:0});o.c=s-1;)o=i[c],fr[o]&&(s=1,o=o===`transformOrigin`?Z:X),Jr(n,o);s&&(Jr(n,X),a&&(a.svg&&n.removeAttribute(`transform`),r.scale=r.rotate=r.translate=`none`,di(n,1),a.uncache=1,Fr(r)))}},ii={clearProps:function(e,t,n,r,i){if(i.data!==`isFromStart`){var a=e._pt=new J(e._pt,t,n,0,0,ri);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},ai=[1,0,0,1,0,0],oi={},si=function(e){return e===`matrix(1, 0, 0, 1, 0, 0)`||e===`none`||!e},ci=function(e){var t=Br(e,X);return si(t)?ai:t.substr(7).match(ie).map(B)},li=function(e,t){var n=e._gsap||Pe(e),r=e.style,i=ci(e),a,o,s,c;return n.svg&&e.getAttribute(`transform`)?(s=e.transform.baseVal.consolidate().matrix,i=[s.a,s.b,s.c,s.d,s.e,s.f],i.join(`,`)===`1,0,0,1,0,0`?ai:i):(i===ai&&!e.offsetParent&&e!==or&&!n.svg&&(s=r.display,r.display=`block`,a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,o=e.nextElementSibling,or.appendChild(e)),i=ci(e),s?r.display=s:Jr(e,`display`),c&&(o?a.insertBefore(e,o):a?a.appendChild(e):or.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},ui=function(e,t,n,r,i,a){var o=e._gsap,s=i||li(e,!0),c=o.xOrigin||0,l=o.yOrigin||0,u=o.xOffset||0,d=o.yOffset||0,f=s[0],p=s[1],m=s[2],h=s[3],g=s[4],_=s[5],v=t.split(` `),y=parseFloat(v[0])||0,b=parseFloat(v[1])||0,x,S,C,w;n?s!==ai&&(S=f*h-p*m)&&(C=h/S*y+b*(-m/S)+(m*_-h*g)/S,w=y*(-p/S)+f/S*b-(f*_-p*g)/S,y=C,b=w):(x=Kr(e),y=x.x+(~v[0].indexOf(`%`)?y/100*x.width:y),b=x.y+(~(v[1]||v[0]).indexOf(`%`)?b/100*x.height:b)),r||r!==!1&&o.smooth?(g=y-c,_=b-l,o.xOffset=u+(g*f+_*m)-g,o.yOffset=d+(g*p+_*h)-_):o.xOffset=o.yOffset=0,o.xOrigin=y,o.yOrigin=b,o.smooth=!!r,o.origin=t,o.originIsAbsolute=!!n,e.style[Z]=`0px 0px`,a&&(Yr(a,o,`xOrigin`,c,y),Yr(a,o,`yOrigin`,l,b),Yr(a,o,`xOffset`,u,o.xOffset),Yr(a,o,`yOffset`,d,o.yOffset)),e.setAttribute(`data-svg-origin`,y+` `+b)},di=function(e,t){var n=e._gsap||new _n(e);if(`x`in n&&!t&&!n.uncache)return n;var r=e.style,i=n.scaleX<0,a=`px`,o=`deg`,s=getComputedStyle(e),c=Br(e,Z)||`0`,l=u=d=m=h=_=v=y=b=0,u,d,f=p=1,p,m,h,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,I,ee,L,te,ne,re;return n.svg=!!(e.getCTM&&qr(e)),s.translate&&((s.translate!==`none`||s.scale!==`none`||s.rotate!==`none`)&&(r[X]=(s.translate===`none`?``:`translate3d(`+(s.translate+` 0 0`).split(` `).slice(0,3).join(`, `)+`) `)+(s.rotate===`none`?``:`rotate(`+s.rotate+`) `)+(s.scale===`none`?``:`scale(`+s.scale.split(` `).join(`,`)+`) `)+(s[X]===`none`?``:s[X])),r.scale=r.rotate=r.translate=`none`),C=li(e,n.svg),n.svg&&(n.uncache?(P=e.getBBox(),c=n.xOrigin-P.x+`px `+(n.yOrigin-P.y)+`px`,N=``):N=!t&&e.getAttribute(`data-svg-origin`),ui(e,N||c,!!N||n.originIsAbsolute,n.smooth!==!1,C)),x=n.xOrigin||0,S=n.yOrigin||0,C!==ai&&(D=C[0],O=C[1],k=C[2],A=C[3],l=j=C[4],u=M=C[5],C.length===6?(f=Math.sqrt(D*D+O*O),p=Math.sqrt(A*A+k*k),m=D||O?hr(O,D)*pr:0,v=k||A?hr(k,A)*pr+m:0,v&&(p*=Math.abs(Math.cos(v*mr))),n.svg&&(l-=x-(x*D+S*k),u-=S-(x*O+S*A))):(re=C[6],te=C[7],I=C[8],ee=C[9],L=C[10],ne=C[11],l=C[12],u=C[13],d=C[14],w=hr(re,L),h=w*pr,w&&(T=Math.cos(-w),E=Math.sin(-w),N=j*T+I*E,P=M*T+ee*E,F=re*T+L*E,I=j*-E+I*T,ee=M*-E+ee*T,L=re*-E+L*T,ne=te*-E+ne*T,j=N,M=P,re=F),w=hr(-k,L),_=w*pr,w&&(T=Math.cos(-w),E=Math.sin(-w),N=D*T-I*E,P=O*T-ee*E,F=k*T-L*E,ne=A*E+ne*T,D=N,O=P,k=F),w=hr(O,D),m=w*pr,w&&(T=Math.cos(w),E=Math.sin(w),N=D*T+O*E,P=j*T+M*E,O=O*T-D*E,M=M*T-j*E,D=N,j=P),h&&Math.abs(h)+Math.abs(m)>359.9&&(h=m=0,_=180-_),f=B(Math.sqrt(D*D+O*O+k*k)),p=B(Math.sqrt(M*M+re*re)),w=hr(j,M),v=Math.abs(w)>2e-4?w*pr:0,b=ne?1/(ne<0?-ne:ne):0),n.svg&&(N=e.getAttribute(`transform`),n.forceCSS=e.setAttribute(`transform`,``)||!si(Br(e,X)),N&&e.setAttribute(`transform`,N))),Math.abs(v)>90&&Math.abs(v)<270&&(i?(f*=-1,v+=m<=0?180:-180,m+=m<=0?180:-180):(p*=-1,v+=v<=0?180:-180)),t||=n.uncache,n.x=l-((n.xPercent=l&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-l)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+a,n.y=u-((n.yPercent=u&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-u)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+a,n.z=d+a,n.scaleX=B(f),n.scaleY=B(p),n.rotation=B(m)+o,n.rotationX=B(h)+o,n.rotationY=B(_)+o,n.skewX=v+o,n.skewY=y+o,n.transformPerspective=b+a,(n.zOrigin=parseFloat(c.split(` `)[2])||!t&&n.zOrigin||0)&&(r[Z]=fi(c)),n.xOffset=n.yOffset=0,n.force3D=g.force3D,n.renderTransform=n.svg?yi:Rr?vi:mi,n.uncache=0,n},fi=function(e){return(e=e.split(` `))[0]+` `+e[1]},pi=function(e,t,n){var r=U(t);return B(parseFloat(t)+parseFloat(Qr(e,`x`,n+`px`,r)))+r},mi=function(e,t){t.z=`0px`,t.rotationY=t.rotationX=`0deg`,t.force3D=0,vi(e,t)},hi=`0deg`,gi=`0px`,_i=`) `,vi=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,c=n.rotation,l=n.rotationY,u=n.rotationX,d=n.skewX,f=n.skewY,p=n.scaleX,m=n.scaleY,h=n.transformPerspective,g=n.force3D,_=n.target,v=n.zOrigin,y=``,b=g===`auto`&&e&&e!==1||g===!0;if(v&&(u!==hi||l!==hi)){var x=parseFloat(l)*mr,S=Math.sin(x),C=Math.cos(x),w;x=parseFloat(u)*mr,w=Math.cos(x),a=pi(_,a,S*w*-v),o=pi(_,o,-Math.sin(x)*-v),s=pi(_,s,C*w*-v+v)}h!==gi&&(y+=`perspective(`+h+_i),(r||i)&&(y+=`translate(`+r+`%, `+i+`%) `),(b||a!==gi||o!==gi||s!==gi)&&(y+=s!==gi||b?`translate3d(`+a+`, `+o+`, `+s+`) `:`translate(`+a+`, `+o+_i),c!==hi&&(y+=`rotate(`+c+_i),l!==hi&&(y+=`rotateY(`+l+_i),u!==hi&&(y+=`rotateX(`+u+_i),(d!==hi||f!==hi)&&(y+=`skew(`+d+`, `+f+_i),(p!==1||m!==1)&&(y+=`scale(`+p+`, `+m+_i),_.style[X]=y||`translate(0, 0)`},yi=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.rotation,c=n.skewX,l=n.skewY,u=n.scaleX,d=n.scaleY,f=n.target,p=n.xOrigin,m=n.yOrigin,h=n.xOffset,g=n.yOffset,_=n.forceCSS,v=parseFloat(a),y=parseFloat(o),b,x,S,C,w;s=parseFloat(s),c=parseFloat(c),l=parseFloat(l),l&&(l=parseFloat(l),c+=l,s+=l),s||c?(s*=mr,c*=mr,b=Math.cos(s)*u,x=Math.sin(s)*u,S=Math.sin(s-c)*-d,C=Math.cos(s-c)*d,c&&(l*=mr,w=Math.tan(c-l),w=Math.sqrt(1+w*w),S*=w,C*=w,l&&(w=Math.tan(l),w=Math.sqrt(1+w*w),b*=w,x*=w)),b=B(b),x=B(x),S=B(S),C=B(C)):(b=u,C=d,x=S=0),(v&&!~(a+``).indexOf(`px`)||y&&!~(o+``).indexOf(`px`))&&(v=Qr(f,`x`,a,`px`),y=Qr(f,`y`,o,`px`)),(p||m||h||g)&&(v=B(v+p-(p*b+m*S)+h),y=B(y+m-(p*x+m*C)+g)),(r||i)&&(w=f.getBBox(),v=B(v+r/100*w.width),y=B(y+i/100*w.height)),w=`matrix(`+b+`,`+x+`,`+S+`,`+C+`,`+v+`,`+y+`)`,f.setAttribute(`transform`,w),_&&(f.style[X]=w)},bi=function(e,t,n,r,i){var a=360,o=k(i),s=parseFloat(i)*(o&&~i.indexOf(`rad`)?pr:1)-r,c=r+s+`deg`,l,u;return o&&(l=i.split(`_`)[1],l===`short`&&(s%=a,s!==s%(a/2)&&(s+=s<0?a:-a)),l===`cw`&&s<0?s=(s+a*gr)%a-~~(s/a)*a:l===`ccw`&&s>0&&(s=(s-a*gr)%a-~~(s/a)*a)),e._pt=u=new J(e._pt,t,n,r,s,Sr),u.e=c,u.u=`deg`,e._props.push(n),u},xi=function(e,t){for(var n in t)e[n]=t[n];return e},Si=function(e,t,n){var r=xi({},n._gsap),i=`perspective,force3D,transformOrigin,svgOrigin`,a=n.style,o,s,c,l,u,d,f,p;for(s in r.svg?(c=n.getAttribute(`transform`),n.setAttribute(`transform`,``),a[X]=t,o=di(n,1),Jr(n,X),n.setAttribute(`transform`,c)):(c=getComputedStyle(n)[X],a[X]=t,o=di(n,1),a[X]=c),fr)c=r[s],l=o[s],c!==l&&i.indexOf(s)<0&&(f=U(c),p=U(l),u=f===p?parseFloat(c):Qr(n,s,c,p),d=parseFloat(l),e._pt=new J(e._pt,o,s,u,d-u,xr),e._pt.u=p||0,e._props.push(s));xi(o,r)};z(`padding,margin,Width,Radius`,function(e,t){var n=`Top`,r=`Right`,i=`Bottom`,a=`Left`,o=(t<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map(function(n){return t<2?e+n:`border`+n+e});ii[t>1?`border`+e:e]=function(e,t,n,r,i){var a,s;if(arguments.length<4)return a=o.map(function(t){return $r(e,t,n)}),s=a.join(` `),s.split(a[0]).length===5?a[0]:s;a=(r+``).split(` `),s={},o.forEach(function(e,t){return s[e]=a[t]=a[t]||a[(t-1)/2|0]}),e.init(t,s,i)}});var Ci={name:`css`,register:Ur,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,i){var a=this._props,o=e.style,s=n.vars.startAt,c,l,u,d,f,p,m,h,_,v,y,b,x,S,C,w,T;for(m in sr||Ur(),this.styles=this.styles||Lr(e),w=this.styles.props,this.tween=n,t)if(m!==`autoRound`&&(l=t[m],!(Oe[m]&&Sn(m,t,n,r,e,i)))){if(f=typeof l,p=ii[m],f===`function`&&(l=l.call(n,r,e,i),f=typeof l),f===`string`&&~l.indexOf(`random(`)&&(l=zt(l)),p)p(this,e,m,l,n)&&(C=1);else if(m.substr(0,2)===`--`)c=(getComputedStyle(e).getPropertyValue(m)+``).trim(),l+=``,$t.lastIndex=0,$t.test(c)||(h=U(c),_=U(l),_?h!==_&&(c=Qr(e,m,c,_)+_):h&&(l+=h)),this.add(o,`setProperty`,c,l,r,i,0,0,m),a.push(m),w.push(m,0,o[m]);else if(f!==`undefined`){if(s&&m in s?(c=typeof s[m]==`function`?s[m].call(n,r,e,i):s[m],k(c)&&~c.indexOf(`random(`)&&(c=zt(c)),U(c+``)||c===`auto`||(c+=g.units[m]||U($r(e,m))||``),(c+``).charAt(1)===`=`&&(c=$r(e,m))):c=$r(e,m),d=parseFloat(c),v=f===`string`&&l.charAt(1)===`=`&&l.substr(0,2),v&&(l=l.substr(2)),u=parseFloat(l),m in br&&(m===`autoAlpha`&&(d===1&&$r(e,`visibility`)===`hidden`&&u&&(d=0),w.push(`visibility`,0,o.visibility),Yr(this,o,`visibility`,d?`inherit`:`hidden`,u?`inherit`:`hidden`,!u)),m!==`scale`&&m!==`transform`&&(m=br[m],~m.indexOf(`,`)&&(m=m.split(`,`)[0]))),y=m in fr,y){if(this.styles.save(m),T=l,f===`string`&&l.substring(0,6)===`var(--`){if(l=Br(e,l.substring(4,l.indexOf(`)`))),l.substring(0,5)===`calc(`){var E=e.style.perspective;e.style.perspective=l,l=Br(e,`perspective`),E?e.style.perspective=E:Jr(e,`perspective`)}u=parseFloat(l)}if(b||(x=e._gsap,x.renderTransform&&!t.parseTransform||di(e,t.parseTransform),S=t.smoothOrigin!==!1&&x.smooth,b=this._pt=new J(this._pt,o,X,0,1,x.renderTransform,x,0,-1),b.dep=1),m===`scale`)this._pt=new J(this._pt,x,`scaleY`,x.scaleY,(v?Ie(x.scaleY,v+u):u)-x.scaleY||0,xr),this._pt.u=0,a.push(`scaleY`,m),m+=`X`;else if(m===`transformOrigin`){w.push(Z,0,o[Z]),l=ni(l),x.svg?ui(e,l,0,S,0,this):(_=parseFloat(l.split(` `)[2])||0,_!==x.zOrigin&&Yr(this,x,`zOrigin`,x.zOrigin,_),Yr(this,o,m,fi(c),fi(l)));continue}else if(m===`svgOrigin`){ui(e,l,1,S,0,this);continue}else if(m in oi){bi(this,x,m,d,v?Ie(d,v+l):l);continue}else if(m===`smoothOrigin`){Yr(this,x,`smooth`,x.smooth,l);continue}else if(m===`force3D`){x[m]=l;continue}else if(m===`transform`){Si(this,l,e);continue}}else m in o||(m=Hr(m)||m);if(y||(u||u===0)&&(d||d===0)&&!yr.test(l)&&m in o)h=(c+``).substr((d+``).length),u||=0,_=U(l)||(m in g.units?g.units[m]:h),h!==_&&(d=Qr(e,m,c,_)),this._pt=new J(this._pt,y?x:o,m,d,(v?Ie(d,v+u):u)-d,!y&&(_===`px`||m===`zIndex`)&&t.autoRound!==!1?Tr:xr),this._pt.u=_||0,y&&T!==l?(this._pt.b=c,this._pt.e=T,this._pt.r=wr):h!==_&&_!==`%`&&(this._pt.b=c,this._pt.r=Cr);else if(m in o)ei.call(this,e,m,c,v?v+l:l);else if(m in e)this.add(e,m,c||e[m],v?v+l:l,r,i);else if(m!==`parseTransform`){_e(m,l);continue}y||(m in o?w.push(m,0,o[m]):typeof e[m]==`function`?w.push(m,2,e[m]()):w.push(m,1,c||e[m])),a.push(m)}}C&&Wn(this)},render:function(e,t){if(t.tween._time||!ur())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:$r,aliases:br,getSetter:function(e,t,n){var r=br[t];return r&&r.indexOf(`,`)<0&&(t=r),t in fr&&t!==Z&&(e._gsap.x||$r(e,`x`))?n&&lr===n?t===`scale`?jr:Ar:(lr=n||{})&&(t===`scale`?Mr:Nr):e.style&&!M(e.style[t])?Or:~t.indexOf(`-`)?kr:In(e,t)},core:{_removeProperty:Jr,_getMatrix:li}};Y.utils.checkPrefix=Hr,Y.core.getStyleSaver=Lr,(function(e,t,n,r){var i=z(e+`,`+t+`,`+n,function(e){fr[e]=1});z(t,function(e){g.units[e]=`deg`,oi[e]=1}),br[i[13]]=e+`,`+t,z(r,function(e){var t=e.split(`:`);br[t[1]]=i[t[0]]})})(`x,y,z,scale,scaleX,scaleY,xPercent,yPercent`,`rotation,rotationX,rotationY,skewX,skewY`,`transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective`,`0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY`),z(`x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective`,function(e){g.units[e]=`px`}),Y.registerPlugin(Ci);var Q=Y.registerPlugin(Ci)||Y;Q.core.Tween;var wi=typeof document<`u`?p.useLayoutEffect:p.useEffect,Ti=e=>e&&!Array.isArray(e)&&typeof e==`object`,Ei=[],Di={},Oi=Q,ki=(e,t=Ei)=>{let n=Di;Ti(e)?(n=e,e=null,t=`dependencies`in n?n.dependencies:Ei):Ti(t)&&(n=t,t=`dependencies`in n?n.dependencies:Ei),e&&typeof e!=`function`&&console.warn(`First parameter must be a function or config object`);let{scope:r,revertOnUpdate:i}=n,a=(0,p.useRef)(!1),o=(0,p.useRef)(Oi.context(()=>{},r)),s=(0,p.useRef)(e=>o.current.add(null,e)),c=t&&t.length&&!i;return c&&wi(()=>(a.current=!0,()=>o.current.revert()),Ei),wi(()=>{if(e&&o.current.add(e,r),!c||!a.current)return()=>o.current.revert()},t),{context:o.current,contextSafe:s.current}};ki.register=e=>{Oi=e},ki.headless=!0;var $=i();Q.registerPlugin(ki);function Ai({size:e=12,maxDistance:t=5,pupilColor:n=`#2D2D2D`}){return(0,$.jsx)(`div`,{className:`pupil rounded-full`,"data-max-distance":t,style:{backgroundColor:n,height:e,width:e,willChange:`transform`}})}function ji({size:e=48,pupilSize:t=16,maxDistance:n=10,eyeColor:r=`white`,pupilColor:i=`#2D2D2D`}){return(0,$.jsx)(`div`,{className:`eyeball flex items-center justify-center overflow-hidden rounded-full`,"data-max-distance":n,style:{backgroundColor:r,height:e,width:e,willChange:`height`},children:(0,$.jsx)(`div`,{className:`eyeball-pupil rounded-full`,style:{backgroundColor:i,height:t,width:t,willChange:`transform`}})})}function Mi({isTyping:e=!1,showPassword:t=!1,passwordLength:n=0}){let r=(0,p.useRef)(null),i=(0,p.useRef)({x:0,y:0}),a=(0,p.useRef)(0),o=(0,p.useRef)(null),s=(0,p.useRef)(null),c=(0,p.useRef)(null),l=(0,p.useRef)(null),u=(0,p.useRef)(null),d=(0,p.useRef)(null),f=(0,p.useRef)(null),m=(0,p.useRef)(null),h=(0,p.useRef)(null),g=(0,p.useRef)(void 0),_=(0,p.useRef)(void 0),v=(0,p.useRef)(void 0),y=(0,p.useRef)(void 0),b=(0,p.useRef)(!1),x=n>0&&!t,S=n>0&&t,C=(0,p.useRef)({isHidingPassword:x,isLooking:!1,isShowingPassword:S,isTyping:e});C.current={isHidingPassword:x,isLooking:b.current,isShowingPassword:S,isTyping:e};let{contextSafe:w}=ki(()=>{Q.set(`.pupil`,{x:0,y:0}),Q.set(`.eyeball-pupil`,{x:0,y:0})},{scope:r}),T=(0,p.useRef)(null);(0,p.useEffect)(()=>{if(!(o.current&&s.current&&l.current&&c.current&&u.current&&d.current&&m.current&&f.current&&h.current))return;let e={blackFaceLeft:Q.quickTo(d.current,`left`,{duration:.3,ease:`power2.out`}),blackFaceTop:Q.quickTo(d.current,`top`,{duration:.3,ease:`power2.out`}),blackSkew:Q.quickTo(s.current,`skewX`,{duration:.3,ease:`power2.out`}),blackX:Q.quickTo(s.current,`x`,{duration:.3,ease:`power2.out`}),mouthX:Q.quickTo(h.current,`x`,{duration:.2,ease:`power2.out`}),mouthY:Q.quickTo(h.current,`y`,{duration:.2,ease:`power2.out`}),orangeFaceX:Q.quickTo(m.current,`x`,{duration:.2,ease:`power2.out`}),orangeFaceY:Q.quickTo(m.current,`y`,{duration:.2,ease:`power2.out`}),orangeSkew:Q.quickTo(l.current,`skewX`,{duration:.3,ease:`power2.out`}),purpleFaceLeft:Q.quickTo(u.current,`left`,{duration:.3,ease:`power2.out`}),purpleFaceTop:Q.quickTo(u.current,`top`,{duration:.3,ease:`power2.out`}),purpleHeight:Q.quickTo(o.current,`height`,{duration:.3,ease:`power2.out`}),purpleSkew:Q.quickTo(o.current,`skewX`,{duration:.3,ease:`power2.out`}),purpleX:Q.quickTo(o.current,`x`,{duration:.3,ease:`power2.out`}),yellowFaceX:Q.quickTo(f.current,`x`,{duration:.2,ease:`power2.out`}),yellowFaceY:Q.quickTo(f.current,`y`,{duration:.2,ease:`power2.out`}),yellowSkew:Q.quickTo(c.current,`skewX`,{duration:.3,ease:`power2.out`})};T.current=e;let t=e=>{let t=e.getBoundingClientRect(),n=t.left+t.width/2,r=t.top+t.height/3,a=i.current.x-n,o=i.current.y-r;return{bodySkew:Math.max(-6,Math.min(6,-a/120)),faceX:Math.max(-15,Math.min(15,a/20)),faceY:Math.max(-10,Math.min(10,o/30))}},n=(e,t)=>{let n=e.getBoundingClientRect(),r=n.left+n.width/2,a=n.top+n.height/2,o=i.current.x-r,s=i.current.y-a,c=Math.min(Math.sqrt(o**2+s**2),t),l=Math.atan2(s,o);return{x:Math.cos(l)*c,y:Math.sin(l)*c}},p=()=>{let i=r.current;if(!i)return;let{isHidingPassword:u,isLooking:d,isShowingPassword:f,isTyping:m}=C.current;if(o.current&&!f){let n=t(o.current);m||u?(e.purpleSkew(n.bodySkew-12),e.purpleX(40),e.purpleHeight(440)):(e.purpleSkew(n.bodySkew),e.purpleX(0),e.purpleHeight(400))}if(s.current&&!f){let n=t(s.current);d?(e.blackSkew(n.bodySkew*1.5+10),e.blackX(20)):m||u?(e.blackSkew(n.bodySkew*1.5),e.blackX(0)):(e.blackSkew(n.bodySkew),e.blackX(0))}if(l.current&&!f){let n=t(l.current);e.orangeSkew(n.bodySkew)}if(c.current&&!f){let n=t(c.current);e.yellowSkew(n.bodySkew)}if(o.current&&!f&&!d){let n=t(o.current),r=n.faceX>=0?Math.min(25,n.faceX*1.5):n.faceX;e.purpleFaceLeft(45+r),e.purpleFaceTop(40+n.faceY)}if(s.current&&!f&&!d){let n=t(s.current);e.blackFaceLeft(26+n.faceX),e.blackFaceTop(32+n.faceY)}if(l.current&&!f){let n=t(l.current);e.orangeFaceX(n.faceX),e.orangeFaceY(n.faceY)}if(c.current&&!f){let n=t(c.current);e.yellowFaceX(n.faceX),e.yellowFaceY(n.faceY),e.mouthX(n.faceX),e.mouthY(n.faceY)}if(!f){let e=i.querySelectorAll(`.pupil`);for(let t of e){let e=t,r=n(e,Number(e.dataset.maxDistance)||5);Q.set(e,{x:r.x,y:r.y})}if(!d){let e=i.querySelectorAll(`.eyeball`);for(let t of e){let e=t,r=Number(e.dataset.maxDistance)||10,i=e.querySelector(`.eyeball-pupil`);if(!i)continue;let a=n(e,r);Q.set(i,{x:a.x,y:a.y})}}}a.current=requestAnimationFrame(p)},g=e=>{i.current={x:e.clientX,y:e.clientY}};return window.addEventListener(`mousemove`,g,{passive:!0}),a.current=requestAnimationFrame(p),()=>{window.removeEventListener(`mousemove`,g),cancelAnimationFrame(a.current)}},[]),(0,p.useEffect)(()=>{let e=o.current?.querySelectorAll(`.eyeball`);if(!e?.length)return;let t=()=>{g.current=setTimeout(()=>{for(let t of e)Q.to(t,{duration:.08,ease:`power2.in`,height:2});setTimeout(()=>{for(let t of e){let e=Number(t.style.width.replace(`px`,``))||18;Q.to(t,{duration:.08,ease:`power2.out`,height:e})}t()},150)},Math.random()*4e3+3e3)};return t(),()=>clearTimeout(g.current)},[]),(0,p.useEffect)(()=>{let e=s.current?.querySelectorAll(`.eyeball`);if(!e?.length)return;let t=()=>{_.current=setTimeout(()=>{for(let t of e)Q.to(t,{duration:.08,ease:`power2.in`,height:2});setTimeout(()=>{for(let t of e){let e=Number(t.style.width.replace(`px`,``))||16;Q.to(t,{duration:.08,ease:`power2.out`,height:e})}t()},150)},Math.random()*4e3+3e3)};return t(),()=>clearTimeout(_.current)},[]);let E=w(()=>{let e=T.current;e&&(e.purpleFaceLeft(55),e.purpleFaceTop(65),e.blackFaceLeft(32),e.blackFaceTop(12)),o.current?.querySelectorAll(`.eyeball-pupil`).forEach(e=>{Q.to(e,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:3,y:4})}),s.current?.querySelectorAll(`.eyeball-pupil`).forEach(e=>{Q.to(e,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:0,y:-4})})}),D=w(()=>{let e=T.current;e&&(e.purpleFaceLeft(55),e.purpleFaceTop(65))}),O=w(()=>{let e=T.current;e&&(e.purpleSkew(0),e.blackSkew(0),e.orangeSkew(0),e.yellowSkew(0),e.purpleX(0),e.blackX(0),e.purpleHeight(400),e.purpleFaceLeft(20),e.purpleFaceTop(35),e.blackFaceLeft(10),e.blackFaceTop(28),e.orangeFaceX(-32),e.orangeFaceY(-5),e.yellowFaceX(-32),e.yellowFaceY(-5),e.mouthX(-30),e.mouthY(0)),o.current?.querySelectorAll(`.eyeball-pupil`).forEach(e=>{Q.to(e,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:-4,y:-4})}),s.current?.querySelectorAll(`.eyeball-pupil`).forEach(e=>{Q.to(e,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:-4,y:-4})}),l.current?.querySelectorAll(`.pupil`).forEach(e=>{Q.to(e,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:-5,y:-4})}),c.current?.querySelectorAll(`.pupil`).forEach(e=>{Q.to(e,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:-5,y:-4})})});return(0,p.useEffect)(()=>{if(!S||n<=0){clearTimeout(v.current);return}let e=o.current?.querySelectorAll(`.eyeball-pupil`);if(!e?.length)return;let t=()=>{v.current=setTimeout(()=>{for(let t of e)Q.to(t,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:4,y:5});let n=T.current;n&&(n.purpleFaceLeft(20),n.purpleFaceTop(35)),setTimeout(()=>{for(let t of e)Q.to(t,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:-4,y:-4});t()},800)},Math.random()*3e3+2e3)};return t(),()=>clearTimeout(v.current)},[S,n]),(0,p.useEffect)(()=>(e&&!S?(b.current=!0,C.current.isLooking=!0,E(),clearTimeout(y.current),y.current=setTimeout(()=>{b.current=!1,C.current.isLooking=!1,o.current?.querySelectorAll(`.eyeball-pupil`).forEach(e=>{Q.killTweensOf(e)})},800)):(clearTimeout(y.current),b.current=!1,C.current.isLooking=!1),()=>clearTimeout(y.current)),[E,S,e]),(0,p.useEffect)(()=>{S?O():x&&D()},[D,O,x,S]),(0,$.jsxs)(`div`,{className:`relative mx-auto h-[320px] w-[440px] max-w-full lg:h-[400px] lg:w-[550px]`,ref:r,children:[(0,$.jsx)(`div`,{className:`absolute bottom-0 left-[70px] z-[1] rounded-t-[10px]`,ref:o,style:{backgroundColor:`#6C3FF5`,borderRadius:`10px 10px 0 0`,height:400,transformOrigin:`bottom center`,width:180,willChange:`transform`},children:(0,$.jsxs)(`div`,{className:`absolute flex gap-8`,ref:u,style:{left:45,top:40},children:[(0,$.jsx)(ji,{maxDistance:5,pupilColor:`#2D2D2D`,pupilSize:7,size:18}),(0,$.jsx)(ji,{maxDistance:5,pupilColor:`#2D2D2D`,pupilSize:7,size:18})]})}),(0,$.jsx)(`div`,{className:`absolute bottom-0 left-[240px] z-[2] rounded-t-[8px]`,ref:s,style:{backgroundColor:`#2D2D2D`,borderRadius:`8px 8px 0 0`,height:310,transformOrigin:`bottom center`,width:120,willChange:`transform`},children:(0,$.jsxs)(`div`,{className:`absolute flex gap-6`,ref:d,style:{left:26,top:32},children:[(0,$.jsx)(ji,{maxDistance:4,pupilColor:`#2D2D2D`,pupilSize:6,size:16}),(0,$.jsx)(ji,{maxDistance:4,pupilColor:`#2D2D2D`,pupilSize:6,size:16})]})}),(0,$.jsx)(`div`,{className:`absolute bottom-0 left-0 z-[3]`,ref:l,style:{backgroundColor:`#FF9B6B`,borderRadius:`120px 120px 0 0`,height:200,transformOrigin:`bottom center`,width:240,willChange:`transform`},children:(0,$.jsxs)(`div`,{className:`absolute flex gap-8`,ref:m,style:{left:82,top:90},children:[(0,$.jsx)(Ai,{maxDistance:5,pupilColor:`#2D2D2D`,size:12}),(0,$.jsx)(Ai,{maxDistance:5,pupilColor:`#2D2D2D`,size:12})]})}),(0,$.jsxs)(`div`,{className:`absolute bottom-0 left-[310px] z-[4]`,ref:c,style:{backgroundColor:`#E8D754`,borderRadius:`70px 70px 0 0`,height:230,transformOrigin:`bottom center`,width:140,willChange:`transform`},children:[(0,$.jsxs)(`div`,{className:`absolute flex gap-6`,ref:f,style:{left:52,top:40},children:[(0,$.jsx)(Ai,{maxDistance:5,pupilColor:`#2D2D2D`,size:12}),(0,$.jsx)(Ai,{maxDistance:5,pupilColor:`#2D2D2D`,size:12})]}),(0,$.jsx)(`div`,{className:`absolute rounded-full`,ref:h,style:{backgroundColor:`#2D2D2D`,height:4,left:40,top:88,width:80}})]})]})}function Ni({className:e}){let{isTyping:t,passwordLength:i,showPassword:a}=d();return(0,$.jsxs)(`div`,{className:s(`relative overflow-hidden bg-muted text-foreground`,e),children:[(0,$.jsx)(`div`,{className:`absolute inset-0 bg-[linear-gradient(rgba(0,0,0,0.03)_1px,transparent_1px),linear-gradient(90deg,rgba(0,0,0,0.03)_1px,transparent_1px)] bg-[size:48px_48px] opacity-60 dark:bg-[linear-gradient(rgba(255,255,255,0.03)_1px,transparent_1px),linear-gradient(90deg,rgba(255,255,255,0.03)_1px,transparent_1px)]`}),(0,$.jsx)(`div`,{className:`absolute top-[-10%] right-[-5%] size-80 rounded-full bg-primary/5 blur-3xl`}),(0,$.jsx)(`div`,{className:`absolute bottom-[-10%] left-[-5%] size-72 rounded-full bg-primary/5 blur-3xl`}),(0,$.jsxs)(`div`,{className:`relative z-20 flex h-full flex-col items-center justify-center gap-10 p-12`,children:[(0,$.jsxs)(`div`,{className:`w-full space-y-4 text-center`,children:[(0,$.jsx)(`p`,{className:`text-muted-foreground text-xs uppercase tracking-[0.3em]`,children:`USDT Payment Gateway`}),(0,$.jsx)(`h2`,{className:`font-semibold text-3xl tracking-tight xl:text-4xl`,children:n()}),(0,$.jsx)(`p`,{className:`mx-auto max-w-md text-muted-foreground text-sm leading-relaxed`,children:r()})]}),(0,$.jsx)(`div`,{className:`w-full rounded-[36px] border bg-background/50 px-6 py-8 shadow-2xl backdrop-blur-sm`,children:(0,$.jsx)(Mi,{isTyping:t,passwordLength:i,showPassword:a})})]})]})}function Pi(){return(0,$.jsx)(f,{children:(0,$.jsxs)(`div`,{className:`container relative grid h-svh flex-col items-center justify-center lg:max-w-none lg:grid-cols-2 lg:px-0`,children:[(0,$.jsx)(Ni,{className:`relative h-full overflow-hidden bg-muted max-lg:hidden`}),(0,$.jsxs)(`div`,{className:`flex h-full min-w-xs flex-col justify-center lg:p-8`,children:[(0,$.jsx)(`div`,{className:`mx-auto flex w-full flex-col justify-center space-y-2 py-8 sm:p-8 md:p-0`,children:(0,$.jsxs)(`div`,{className:`flex w-full items-center justify-between`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,$.jsx)(u,{className:`size-10 shrink-0`}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`h1`,{className:`font-medium text-xl leading-tight`,children:`GMPay`}),(0,$.jsx)(`p`,{className:`mt-1 whitespace-nowrap text-muted-foreground text-xs`,children:a()})]})]}),(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,$.jsx)(c,{}),(0,$.jsx)(l,{})]})]})}),(0,$.jsx)(`div`,{className:`mx-auto flex w-full max-w-sm flex-1 flex-col justify-center`,children:(0,$.jsx)(o,{})})]})]})})}export{Pi as component}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{Ct as n,St as r,tm as i,ut as a}from"./messages-CL4J6BaJ.js";import{n as o}from"./Match-onTP_fNL.js";import{i as s}from"./button-NLSeBFht.js";import{n as c,t as l}from"./theme-switch-CdEcHkcU.js";import{t as u}from"./logo-CBibDHP9.js";import{n as d,t as f}from"./auth-animation-context-Cac9Wtyr.js";var p=e(t());function m(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function h(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var g={autoSleep:120,force3D:`auto`,nullTargetWarn:1,units:{lineHeight:``}},_={duration:.5,overwrite:!1,delay:0},v,y,b,x=1e8,S=1/x,C=Math.PI*2,w=C/4,T=0,E=Math.sqrt,D=Math.cos,O=Math.sin,k=function(e){return typeof e==`string`},A=function(e){return typeof e==`function`},j=function(e){return typeof e==`number`},M=function(e){return e===void 0},N=function(e){return typeof e==`object`},P=function(e){return e!==!1},F=function(){return typeof window<`u`},I=function(e){return A(e)||k(e)},ee=typeof ArrayBuffer==`function`&&ArrayBuffer.isView||function(){},L=Array.isArray,te=/random\([^)]+\)/g,ne=/,\s*/g,re=/(?:-?\.?\d|\.)+/gi,ie=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,ae=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,oe=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,se=/[+-]=-?[.\d]+/,ce=/[^,'"\[\]\s]+/gi,le=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,R,ue,de,fe,pe={},me={},he,ge=function(e){return(me=We(e,pe))&&Y},_e=function(e,t){return console.warn(`Invalid property`,e,`set to`,t,`Missing plugin? gsap.registerPlugin()`)},ve=function(e,t){return!t&&console.warn(e)},ye=function(e,t){return e&&(pe[e]=t)&&me&&(me[e]=t)||pe},be=function(){return 0},xe={suppressEvents:!0,isStart:!0,kill:!1},Se={suppressEvents:!0,kill:!1},Ce={suppressEvents:!0},we={},Te=[],Ee={},De,Oe={},ke={},Ae=30,je=[],Me=``,Ne=function(e){var t=e[0],n,r;if(N(t)||A(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(r=je.length;r--&&!je[r].targetTest(t););n=je[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new _n(e[r],n)))||e.splice(r,1);return e},Pe=function(e){return e._gsap||Ne(Et(e))[0]._gsap},Fe=function(e,t,n){return(n=e[t])&&A(n)?e[t]():M(n)&&e.getAttribute&&e.getAttribute(t)||n},z=function(e,t){return(e=e.split(`,`)).forEach(t)||e},B=function(e){return Math.round(e*1e5)/1e5||0},V=function(e){return Math.round(e*1e7)/1e7||0},Ie=function(e,t){var n=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),n===`+`?e+r:n===`-`?e-r:n===`*`?e*r:e/r},Le=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++ro;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=a,t.parent=t._dp=e,t},Xe=function(e,t,n,r){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var i=t._prev,a=t._next;i?i._next=a:e[n]===t&&(e[n]=a),a?a._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},Ze=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Qe=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},$e=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},et=function(e,t,n,r){return e._startAt&&(y?e._startAt.revert(Se):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},tt=function e(t){return!t||t._ts&&e(t.parent)},nt=function(e){return e._repeat?rt(e._tTime,e=e.duration()+e._rDelay)*e:0},rt=function(e,t){var n=Math.floor(e=V(e/t));return e&&n===e?n-1:n},it=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},at=function(e){return e._end=V(e._start+(e._tDur/Math.abs(e._ts||e._rts||S)||0))},ot=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=V(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),at(e),n._dirty||Qe(n,e)),e},st=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._startS)&&t.render(n,!0)),Qe(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-S}},ct=function(e,t,n,r){return t.parent&&Ze(t),t._start=V((j(n)?n:n||e!==R?vt(e,n,t):e._time)+t._delay),t._end=V(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Ye(e,t,`_first`,`_last`,e._sort?`_start`:0),ft(t)||(e._recent=t),r||st(e,t),e._ts<0&&ot(e,e._tTime),e},lt=function(e,t){return(pe.ScrollTrigger||_e(`scrollTrigger`,t))&&pe.ScrollTrigger.create(t,e)},ut=function(e,t,n,r,i){if(Tn(e,t,i),!e._initted)return 1;if(!n&&e._pt&&!y&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&De!==rn.frame)return Te.push(e),e._lazy=[i,r],1},dt=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},ft=function(e){var t=e.data;return t===`isFromStart`||t===`isStart`},pt=function(e,t,n,r){var i=e.ratio,a=t<0||!t&&(!e._start&&dt(e)&&!(!e._initted&&ft(e))||(e._ts<0||e._dp._ts<0)&&!ft(e))?0:1,o=e._rDelay,s=0,c,l,u;if(o&&e._repeat&&(s=xt(0,e._tDur,t),l=rt(s,o),e._yoyo&&l&1&&(a=1-a),l!==rt(e._tTime,o)&&(i=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==i||y||r||e._zTime===S||!t&&e._zTime){if(!e._initted&&ut(e,t,r,n,s))return;for(u=e._zTime,e._zTime=t||(n?S:0),n||=t&&!u,e.ratio=a,e._from&&(a=1-a),e._time=0,e._tTime=s,c=e._pt;c;)c.r(a,c.d),c=c._next;t<0&&et(e,t,n,!0),e._onUpdate&&!n&&Ut(e,`onUpdate`),s&&e._repeat&&!n&&e.parent&&Ut(e,`onRepeat`),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&Ze(e,1),!n&&!y&&(Ut(e,a?`onComplete`:`onReverseComplete`,!0),e._prom&&e._prom()))}else e._zTime||=t},mt=function(e,t,n){var r;if(n>t)for(r=e._first;r&&r._start<=n;){if(r.data===`isPause`&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if(r.data===`isPause`&&r._start0&&!r&&ot(e,e._tTime=e._tDur*o),e.parent&&at(e),n||Qe(e.parent,e),e},gt=function(e){return e instanceof K?Qe(e):ht(e,e._dur)},_t={_start:0,endTime:be,totalDuration:be},vt=function e(t,n,r){var i=t.labels,a=t._recent||_t,o=t.duration()>=x?a.endTime(!1):t._dur,s,c,l;return k(n)&&(isNaN(n)||n in i)?(c=n.charAt(0),l=n.substr(-1)===`%`,s=n.indexOf(`=`),c===`<`||c===`>`?(s>=0&&(n=n.replace(/=/,``)),(c===`<`?a._start:a.endTime(a._repeat>=0))+(parseFloat(n.substr(1))||0)*(l?(s<0?a:r).totalDuration()/100:1)):s<0?(n in i||(i[n]=o),i[n]):(c=parseFloat(n.charAt(s-1)+n.substr(s+1)),l&&r&&(c=c/100*(L(r)?r[0]:r).totalDuration()),s>1?e(t,n.substr(0,s-1),r)+c:o+c)):n==null?o:+n},yt=function(e,t,n){var r=j(t[1]),i=(r?2:1)+(e<2?0:1),a=t[i],o,s;if(r&&(a.duration=t[1]),a.parent=n,e){for(o=a,s=n;s&&!(`immediateRender`in o);)o=s.vars.defaults||{},s=P(s.vars.inherit)&&s.parent;a.immediateRender=P(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[i-1]}return new q(t[0],a,t[i+1])},bt=function(e,t){return e||e===0?t(e):t},xt=function(e,t,n){return nt?t:n},U=function(e,t){return!k(e)||!(t=le.exec(e))?``:t[1]},St=function(e,t,n){return bt(n,function(n){return xt(e,t,n)})},Ct=[].slice,wt=function(e,t){return e&&N(e)&&`length`in e&&(!t&&!e.length||e.length-1 in e&&N(e[0]))&&!e.nodeType&&e!==ue},Tt=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(e){var r;return k(e)&&!t||wt(e,1)?(r=n).push.apply(r,Et(e)):n.push(e)})||n},Et=function(e,t,n){return b&&!t&&b.selector?b.selector(e):k(e)&&!n&&(de||!an())?Ct.call((t||fe).querySelectorAll(e),0):L(e)?Tt(e,n):wt(e)?Ct.call(e,0):e?[e]:[]},Dt=function(e){return e=Et(e)[0]||ve(`Invalid scope`)||{},function(t){var n=e.current||e.nativeElement||e;return Et(t,n.querySelectorAll?n:n===e?ve(`Invalid scope`)||fe.createElement(`div`):e)}},Ot=function(e){return e.sort(function(){return .5-Math.random()})},kt=function(e){if(A(e))return e;var t=N(e)?e:{each:e},n=fn(t.ease),r=t.from||0,i=parseFloat(t.base)||0,a={},o=r>0&&r<1,s=isNaN(r)||o,c=t.axis,l=r,u=r;return k(r)?l=u={center:.5,edges:.5,end:1}[r]||0:!o&&s&&(l=r[0],u=r[1]),function(e,o,d){var f=(d||t).length,p=a[f],m,h,g,_,v,y,b,S,C;if(!p){if(C=t.grid===`auto`?0:(t.grid||[1,x])[1],!C){for(b=-x;b<(b=d[C++].getBoundingClientRect().left)&&Cb&&(b=v),vf?f-1:c?c===`y`?f/C:C:Math.max(C,f/C))||0)*(r===`edges`?-1:1),p.b=f<0?i-f:i,p.u=U(t.amount||t.each)||0,n=n&&f<0?dn(n):n}return f=(p[e]-p.min)/p.max||0,V(p.b+(n?n(f):f)*p.v)+p.u}},At=function(e){var t=10**((e+``).split(`.`)[1]||``).length;return function(n){var r=V(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(j(n)?0:U(n))}},jt=function(e,t){var n=L(e),r,i;return!n&&N(e)&&(r=n=e.radius||x,e.values?(e=Et(e.values),(i=!j(e[0]))&&(r*=r)):e=At(e.increment)),bt(t,n?A(e)?function(t){return i=e(t),Math.abs(i-t)<=r?i:t}:function(t){for(var n=parseFloat(i?t.x:t),a=parseFloat(i?t.y:0),o=x,s=0,c=e.length,l,u;c--;)i?(l=e[c].x-n,u=e[c].y-a,l=l*l+u*u):l=Math.abs(e[c]-n),li?a-e:e)})},zt=function(e){return e.replace(te,function(e){var t=e.indexOf(`[`)+1,n=e.substring(t||7,t?e.indexOf(`]`):e.length-1).split(ne);return Mt(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},Bt=function(e,t,n,r,i){var a=t-e,o=r-n;return bt(i,function(t){return n+((t-e)/a*o||0)})},Vt=function e(t,n,r,i){var a=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!a){var o=k(t),s={},c,l,u,d,f;if(r===!0&&(i=1)&&(r=null),o)t={p:t},n={p:n};else if(L(t)&&!L(n)){for(u=[],d=t.length,f=d-2,l=1;l(o=Math.abs(o))&&(s=a,i=o);return s},Ut=function(e,t,n){var r=e.vars,i=r[t],a=b,o=e._ctx,s,c,l;if(i)return s=r[t+`Params`],c=r.callbackScope||e,n&&Te.length&&Re(),o&&(b=o),l=s?i.apply(c,s):i.call(c),b=a,l},Wt=function(e){return Ze(e),e.scrollTrigger&&e.scrollTrigger.kill(!!y),e.progress()<1&&Ut(e,`onInterrupt`),e},Gt,Kt=[],qt=function(e){if(e)if(e=!e.name&&e.default||e,F()||e.headless){var t=e.name,n=A(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:be,render:Bn,add:bn,kill:Hn,modifier:Vn,rawVars:0},a={targetTest:0,get:0,getSetter:In,aliases:{},register:0};if(an(),e!==r){if(Oe[t])return;H(r,H(Ke(e,i),a)),We(r.prototype,We(i,Ke(e,a))),Oe[r.prop=t]=r,e.targetTest&&(je.push(r),we[t]=1),t=(t===`css`?`CSS`:t.charAt(0).toUpperCase()+t.substr(1))+`Plugin`}ye(t,r),e.register&&e.register(Y,r,J)}else Kt.push(e)},W=255,Jt={aqua:[0,W,W],lime:[0,W,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,W],navy:[0,0,128],white:[W,W,W],olive:[128,128,0],yellow:[W,W,0],orange:[W,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[W,0,0],pink:[W,192,203],cyan:[0,W,W],transparent:[W,W,W,0]},Yt=function(e,t,n){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(n-t)*e*6:e<.5?n:e*3<2?t+(n-t)*(2/3-e)*6:t)*W+.5|0},Xt=function(e,t,n){var r=e?j(e)?[e>>16,e>>8&W,e&W]:0:Jt.black,i,a,o,s,c,l,u,d,f,p;if(!r){if(e.substr(-1)===`,`&&(e=e.substr(0,e.length-1)),Jt[e])r=Jt[e];else if(e.charAt(0)===`#`){if(e.length<6&&(i=e.charAt(1),a=e.charAt(2),o=e.charAt(3),e=`#`+i+i+a+a+o+o+(e.length===5?e.charAt(4)+e.charAt(4):``)),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&W,r&W,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&W,e&W]}else if(e.substr(0,3)===`hsl`){if(r=p=e.match(re),!t)s=r[0]%360/360,c=r[1]/100,l=r[2]/100,a=l<=.5?l*(c+1):l+c-l*c,i=l*2-a,r.length>3&&(r[3]*=1),r[0]=Yt(s+1/3,i,a),r[1]=Yt(s,i,a),r[2]=Yt(s-1/3,i,a);else if(~e.indexOf(`=`))return r=e.match(ie),n&&r.length<4&&(r[3]=1),r}else r=e.match(re)||Jt.transparent;r=r.map(Number)}return t&&!p&&(i=r[0]/W,a=r[1]/W,o=r[2]/W,u=Math.max(i,a,o),d=Math.min(i,a,o),l=(u+d)/2,u===d?s=c=0:(f=u-d,c=l>.5?f/(2-u-d):f/(u+d),s=u===i?(a-o)/f+(at||h<0)&&(r+=h-n),i+=h,y=i-r,_=y-o,(_>0||g)&&(b=++d.frame,f=y-d.time*1e3,d.time=y/=1e3,o+=_+(_>=a?4:a-_),v=1),g||(c=l(u)),v)for(p=0;p=t&&p--},_listeners:s},d}(),an=function(){return!nn&&rn.wake()},G={},on=/^[\d.\-M][\d.\-,\s]/,sn=/["']/g,cn=function(e){for(var t={},n=e.substr(1,e.length-3).split(`:`),r=n[0],i=1,a=n.length,o,s,c;i1&&n.config?n.config.apply(null,~e.indexOf(`{`)?[cn(t[1])]:ln(e).split(`,`).map(Ve)):G._CE&&on.test(e)?G._CE(``,e):n},dn=function(e){return function(t){return 1-e(1-t)}},fn=function(e,t){return e&&(A(e)?e:G[e]||un(e))||t},pn=function(e,t,n,r){n===void 0&&(n=function(e){return 1-t(1-e)}),r===void 0&&(r=function(e){return e<.5?t(e*2)/2:1-t((1-e)*2)/2});var i={easeIn:t,easeOut:n,easeInOut:r},a;return z(e,function(e){for(var t in G[e]=pe[e]=i,G[a=e.toLowerCase()]=n,i)G[a+(t===`easeIn`?`.in`:t===`easeOut`?`.out`:`.inOut`)]=G[e+`.`+t]=i[t]}),i},mn=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},hn=function e(t,n,r){var i=n>=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),o=a/C*(Math.asin(1/i)||0),s=function(e){return e===1?1:i*2**(-10*e)*O((e-o)*a)+1},c=t===`out`?s:t===`in`?function(e){return 1-s(1-e)}:mn(s);return a=C/a,c.config=function(n,r){return e(t,n,r)},c},gn=function e(t,n){n===void 0&&(n=1.70158);var r=function(e){return e?--e*e*((n+1)*e+n)+1:0},i=t===`out`?r:t===`in`?function(e){return 1-r(1-e)}:mn(r);return i.config=function(n){return e(t,n)},i};z(`Linear,Quad,Cubic,Quart,Quint,Strong`,function(e,t){var n=t<5?t+1:t;pn(e+`,Power`+(n-1),t?function(e){return e**+n}:function(e){return e},function(e){return 1-(1-e)**n},function(e){return e<.5?(e*2)**n/2:1-((1-e)*2)**n/2})}),G.Linear.easeNone=G.none=G.Linear.easeIn,pn(`Elastic`,hn(`in`),hn(`out`),hn()),(function(e,t){var n=1/t,r=2*n,i=2.5*n,a=function(a){return a0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,ht(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(an(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(ot(this,e),!n._dp||n.parent||st(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e0||!this._tDur&&!e)&&ct(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===S||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),Be(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+nt(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-e:e)+nt(this),t):this.duration()?Math.min(1,this._time/this._dur):+(this.rawTime()>0)},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?rt(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return this._rts===-S?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?it(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-S?0:this._rts,this.totalTime(xt(-Math.abs(this._delay),this.totalDuration(),n),t!==!1),at(this),$e(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(an(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==S&&(this._tTime-=S)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=V(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&ct(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(P(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?it(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){e===void 0&&(e=Ce);var t=y;return y=e,ze(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!==`nested`&&e.kill!==!1&&this.kill(),y=t,this},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,gt(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,gt(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(vt(this,e),P(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,P(t)),this._dur||(this._zTime=-S),this},t.play=function(e,t){return e!=null&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return e!=null&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return e!=null&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-S:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-S,this},t.isActive=function(){var e=this.parent||this._dp,t=this._start,n;return!!(!e||this._ts&&this._initted&&e.isActive()&&(n=e.rawTime(!0))>=t&&n1?(t?(r[e]=t,n&&(r[e+`Params`]=n),e===`onUpdate`&&(this._onUpdate=t)):delete r[e],this):r[e]},t.then=function(e){var t=this,n=t._prom;return new Promise(function(r){var i=A(e)?e:He,a=function(){var e=t.then;t.then=null,n&&n(),A(i)&&(i=i(t))&&(i.then||i===t)&&(t.then=e),r(i),t.then=e};t._initted&&t.totalProgress()===1&&t._ts>=0||!t._tTime&&t._ts<0?a():t._prom=a})},t.kill=function(){Wt(this)},e}();H(vn.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-S,_prom:0,_ps:!1,_rts:1});var K=function(e){h(t,e);function t(t,n){var r;return t===void 0&&(t={}),r=e.call(this,t)||this,r.labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=P(t.sortChildren),R&&ct(t.parent||R,m(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&<(m(r),t.scrollTrigger),r}var n=t.prototype;return n.to=function(e,t,n){return yt(0,arguments,this),this},n.from=function(e,t,n){return yt(1,arguments,this),this},n.fromTo=function(e,t,n,r){return yt(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,qe(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new q(e,t,vt(this,n),1),this},n.call=function(e,t,n){return ct(this,q.delayedCall(0,e,t),n)},n.staggerTo=function(e,t,n,r,i,a,o){return n.duration=t,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=o,n.parent=this,new q(e,n,vt(this,i)),this},n.staggerFrom=function(e,t,n,r,i,a,o){return n.runBackwards=1,qe(n).immediateRender=P(n.immediateRender),this.staggerTo(e,t,n,r,i,a,o)},n.staggerFromTo=function(e,t,n,r,i,a,o,s){return r.startAt=n,qe(r).immediateRender=P(r.immediateRender),this.staggerTo(e,t,r,i,a,o,s)},n.render=function(e,t,n){var r=this._time,i=this._dirty?this.totalDuration():this._tDur,a=this._dur,o=e<=0?0:V(e),s=this._zTime<0!=e<0&&(this._initted||!a),c,l,u,d,f,p,m,h,g,_,v,b;if(this!==R&&o>i&&e>=0&&(o=i),o!==this._tTime||n||s){if(r!==this._time&&a&&(o+=this._time-r,e+=this._time-r),c=o,g=this._start,h=this._ts,p=!h,s&&(a||(r=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(v=this._yoyo,f=a+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(f*100+e,t,n);if(c=V(o%f),o===i?(d=this._repeat,c=a):(_=V(o/f),d=~~_,d&&d===_&&(c=a,d--),c>a&&(c=a)),_=rt(this._tTime,f),!r&&this._tTime&&_!==d&&this._tTime-_*f-this._dur<=0&&(_=d),v&&d&1&&(c=a-c,b=1),d!==_&&!this._lock){var x=v&&_&1,C=x===(v&&d&1);if(d<_&&(x=!x),r=x?0:o%a?a:o,this._lock=1,this.render(r||(b?0:V(d*f)),t,!a)._lock=0,this._tTime=o,!t&&this.parent&&Ut(this,`onRepeat`),this.vars.repeatRefresh&&!b&&(this.invalidate()._lock=1,_=d),r&&r!==this._time||p!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act||(a=this._dur,i=this._tDur,C&&(this._lock=2,r=x?a:-1e-4,this.render(r,!0),this.vars.repeatRefresh&&!b&&this.invalidate()),this._lock=0,!this._ts&&!p))return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(m=mt(this,V(r),V(c)),m&&(o-=c-(c=m._start))),this._tTime=o,this._time=c,this._act=!!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,r=0),!r&&o&&a&&!t&&!_&&(Ut(this,`onStart`),this._tTime!==o))return this;if(c>=r&&e>=0)for(l=this._first;l;){if(u=l._next,(l._act||c>=l._start)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(c-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(c-l._start)*l._ts,t,n),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=-S);break}}l=u}else{l=this._last;for(var w=e<0?e:c;l;){if(u=l._prev,(l._act||w<=l._end)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(w-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(w-l._start)*l._ts,t,n||y&&ze(l)),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=w?-S:S);break}}l=u}}if(m&&!t&&(this.pause(),m.render(c>=r?0:-S)._zTime=c>=r?1:-1,this._ts))return this._start=g,at(this),this.render(e,t,n);this._onUpdate&&!t&&Ut(this,`onUpdate`,!0),(o===i&&this._tTime>=this.totalDuration()||!o&&r)&&(g===this._start||Math.abs(h)!==Math.abs(this._ts))&&(this._lock||((e||!a)&&(o===i&&this._ts>0||!o&&this._ts<0)&&Ze(this,1),!t&&!(e<0&&!r)&&(o||r||!i)&&(Ut(this,o===i&&e>=0?`onComplete`:`onReverseComplete`,!0),this._prom&&!(o0)&&this._prom())))}return this},n.add=function(e,t){var n=this;if(j(t)||(t=vt(this,t,e)),!(e instanceof vn)){if(L(e))return e.forEach(function(e){return n.add(e,t)}),this;if(k(e))return this.addLabel(e,t);if(A(e))e=q.delayedCall(0,e);else return this}return this===e?this:ct(this,e,t)},n.getChildren=function(e,t,n,r){e===void 0&&(e=!0),t===void 0&&(t=!0),n===void 0&&(n=!0),r===void 0&&(r=-x);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof q?t&&i.push(a):(n&&i.push(a),e&&i.push.apply(i,a.getChildren(!0,t,n)))),a=a._next;return i},n.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},n.remove=function(e){return k(e)?this.removeLabel(e):A(e)?this.killTweensOf(e):(e.parent===this&&Xe(this,e),e===this._recent&&(this._recent=this._last),Qe(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=V(rn.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,n),this._forcing=0,this):this._tTime},n.addLabel=function(e,t){return this.labels[e]=vt(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=q.delayedCall(0,t||be,n);return r.data=`isPause`,this._hasPause=1,ct(this,r,vt(this,e))},n.removePause=function(e){var t=this._first;for(e=vt(this,e);t;)t._start===e&&t.data===`isPause`&&Ze(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)Cn!==r[i]&&r[i].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n=[],r=Et(e),i=this._first,a=j(t),o;i;)i instanceof q?Le(i._targets,r)&&(a?(!Cn||i._initted&&i._ts)&&i.globalTime(0)<=t&&i.globalTime(i.totalDuration())>t:!t||i.isActive())&&n.push(i):(o=i.getTweensOf(r,t)).length&&n.push.apply(n,o),i=i._next;return n},n.tweenTo=function(e,t){t||={};var n=this,r=vt(n,e),i=t,a=i.startAt,o=i.onStart,s=i.onStartParams,c=i.immediateRender,l,u=q.to(n,H({ease:t.ease||`none`,lazy:!1,immediateRender:!1,time:r,overwrite:`auto`,duration:t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale())||S,onStart:function(){if(n.pause(),!l){var e=t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale());u._dur!==e&&ht(u,e,0,1).render(u._time,!0,!0),l=1}o&&o.apply(u,s||[])}},t));return c?u.render(0):u},n.tweenFromTo=function(e,t,n){return this.tweenTo(t,H({startAt:{time:vt(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return e===void 0&&(e=this._time),Ht(this,vt(this,e))},n.previousLabel=function(e){return e===void 0&&(e=this._time),Ht(this,vt(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+S)},n.shiftChildren=function(e,t,n){n===void 0&&(n=0);var r=this._first,i=this.labels,a;for(e=V(e);r;)r._start>=n&&(r._start+=e,r._end+=e),r=r._next;if(t)for(a in i)i[a]>=n&&(i[a]+=e);return Qe(this)},n.invalidate=function(t){var n=this._first;for(this._lock=0;n;)n.invalidate(t),n=n._next;return e.prototype.invalidate.call(this,t)},n.clear=function(e){e===void 0&&(e=!0);for(var t=this._first,n;t;)n=t._next,this.remove(t),t=n;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),Qe(this)},n.totalDuration=function(e){var t=0,n=this,r=n._last,i=x,a,o,s;if(arguments.length)return n.timeScale((n._repeat<0?n.duration():n.totalDuration())/(n.reversed()?-e:e));if(n._dirty){for(s=n.parent;r;)a=r._prev,r._dirty&&r.totalDuration(),o=r._start,o>i&&n._sort&&r._ts&&!n._lock?(n._lock=1,ct(n,r,o-r._delay,1)._lock=0):i=o,o<0&&r._ts&&(t-=o,(!s&&!n._dp||s&&s.smoothChildTiming)&&(n._start+=V(o/n._ts),n._time-=o,n._tTime-=o),n.shiftChildren(-o,!1,-1/0),i=0),r._end>t&&r._ts&&(t=r._end),r=a;ht(n,n===R&&n._time>t?n._time:t,1,1),n._dirty=0}return n._tDur},t.updateRoot=function(e){if(R._ts&&(Be(R,it(e,R)),De=rn.frame),rn.frame>=Ae){Ae+=g.autoSleep||120;var t=R._first;if((!t||!t._ts)&&g.autoSleep&&rn._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||rn.sleep()}}},t}(vn);H(K.prototype,{_lock:0,_hasPause:0,_forcing:0});var yn=function(e,t,n,r,i,a,o){var s=new J(this._pt,e,t,0,1,zn,null,i),c=0,l=0,u,d,f,p,m,h,g,_;for(s.b=n,s.e=r,n+=``,r+=``,(g=~r.indexOf(`random(`))&&(r=zt(r)),a&&(_=[n,r],a(_,e,t),n=_[0],r=_[1]),d=n.match(oe)||[];u=oe.exec(r);)p=u[0],m=r.substring(c,u.index),f?f=(f+1)%5:m.substr(-5)===`rgba(`&&(f=1),p!==d[l++]&&(h=parseFloat(d[l-1])||0,s._pt={_next:s._pt,p:m||l===1?m:`,`,s:h,c:p.charAt(1)===`=`?Ie(h,p)-h:parseFloat(p)-h,m:f&&f<4?Math.round:0},c=oe.lastIndex);return s.c=c`)}),b.duration();else{for(T in C={},f)T===`ease`||T===`easeEach`||On(T,f[T],C,f.easeEach);for(T in C)for(M=C[T].sort(function(e,t){return e.t-t.t}),A=0,x=0;xi-S&&!o?i:ea&&(c=a)),p=this._yoyo&&u&1,p&&(c=a-c),f=rt(this._tTime,d),c===r&&!n&&this._initted&&u===f)return this._tTime=s,this;u!==f&&this.vars.repeatRefresh&&!p&&!this._lock&&c!==d&&this._initted&&(this._lock=n=1,this.render(V(d*u),!0).invalidate()._lock=0)}if(!this._initted){if(ut(this,o?e:c,n,t,s))return this._tTime=0,this;if(r!==this._time&&!(n&&this.vars.repeatRefresh&&u!==f))return this;if(a!==this._dur)return this.render(e,t,n)}if(this._rEase){var g=c0||!s&&this._ts<0)&&Ze(this,1),!t&&!(o&&!r)&&(s||r||p)&&(Ut(this,s===i?`onComplete`:`onReverseComplete`,!0),this._prom&&!(s0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},n.resetTo=function(e,t,n,r,i){nn||rn.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts),o;return this._initted||Tn(this,a),o=this._ease(a/this._dur),En(this,e,t,n,r,o,a,i)?this.resetTo(e,t,n,r,1):(ot(this,0),this.parent||Ye(this._dp,this,`_first`,`_last`,this._dp._sort?`_start`:0),this.render(0))},n.kill=function(e,t){if(t===void 0&&(t=`all`),!e&&(!t||t===`all`))return this._lazy=this._pt=0,this.parent?Wt(this):this.scrollTrigger&&this.scrollTrigger.kill(!!y),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,Cn&&Cn.vars.overwrite!==!0)._first||Wt(this),this.parent&&n!==this.timeline.totalDuration()&&ht(this,this._dur*this.timeline._tDur/n,0,1),this}var r=this._targets,i=e?Et(e):r,a=this._ptLookup,o=this._pt,s,c,l,u,d,f,p;if((!t||t===`all`)&&Je(r,i))return t===`all`&&(this._pt=0),Wt(this);for(s=this._op=this._op||[],t!==`all`&&(k(t)&&(d={},z(t,function(e){return d[e]=1}),t=d),t=Dn(r,t)),p=r.length;p--;)if(~i.indexOf(r[p]))for(d in c=a[p],t===`all`?(s[p]=t,u=c,l={}):(l=s[p]=s[p]||{},u=t),u)f=c&&c[d],f&&((!(`kill`in f.d)||f.d.kill(d)===!0)&&Xe(this,f,`_pt`),delete c[d]),l!==`all`&&(l[d]=1);return this._initted&&!this._pt&&o&&Wt(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return yt(1,arguments)},t.delayedCall=function(e,n,r,i){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},t.fromTo=function(e,t,n){return yt(2,arguments)},t.set=function(e,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(e,n)},t.killTweensOf=function(e,t,n){return R.killTweensOf(e,t,n)},t}(vn);H(q.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),z(`staggerTo,staggerFrom,staggerFromTo`,function(e){q[e]=function(){var t=new K,n=Ct.call(arguments,0);return n.splice(e===`staggerFromTo`?5:4,0,0),t[e].apply(t,n)}});var Mn=function(e,t,n){return e[t]=n},Nn=function(e,t,n){return e[t](n)},Pn=function(e,t,n,r){return e[t](r.fp,n)},Fn=function(e,t,n){return e.setAttribute(t,n)},In=function(e,t){return A(e[t])?Nn:M(e[t])&&e.setAttribute?Fn:Mn},Ln=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},Rn=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},zn=function(e,t){var n=t._pt,r=``;if(!e&&t.b)r=t.b;else if(e===1&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round((n.s+n.c*e)*1e4)/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},Bn=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},Vn=function(e,t,n,r){for(var i=this._pt,a;i;)a=i._next,i.p===r&&i.modifier(e,t,n),i=a},Hn=function(e){for(var t=this._pt,n,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?Xe(this,t,`_pt`):t.dep||(n=1),t=r;return!n},Un=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},Wn=function(e){for(var t=e._pt,n,r,i,a;t;){for(n=t._next,r=i;r&&r.pr>t.pr;)r=r._next;(t._prev=r?r._prev:a)?t._prev._next=t:i=t,(t._next=r)?r._prev=t:a=t,t=n}e._pt=i},J=function(){function e(e,t,n,r,i,a,o,s,c){this.t=t,this.s=r,this.c=i,this.p=n,this.r=a||Ln,this.d=o||this,this.set=s||Mn,this.pr=c||0,this._next=e,e&&(e._prev=this)}var t=e.prototype;return t.modifier=function(e,t,n){this.mSet=this.mSet||this.set,this.set=Un,this.m=e,this.mt=n,this.tween=t},e}();z(Me+`parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse`,function(e){return we[e]=1}),pe.TweenMax=pe.TweenLite=q,pe.TimelineLite=pe.TimelineMax=K,R=new K({sortChildren:!1,defaults:_,autoRemoveChildren:!0,id:`root`,smoothChildTiming:!0}),g.stringFilter=tn;var Gn=[],Kn={},qn=[],Jn=0,Yn=0,Xn=function(e){return(Kn[e]||qn).map(function(e){return e()})},Zn=function(){var e=Date.now(),t=[];e-Jn>2&&(Xn(`matchMediaInit`),Gn.forEach(function(e){var n=e.queries,r=e.conditions,i,a,o,s;for(a in n)i=ue.matchMedia(n[a]).matches,i&&(o=1),i!==r[a]&&(r[a]=i,s=1);s&&(e.revert(),o&&t.push(e))}),Xn(`matchMediaRevert`),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),Jn=e,Xn(`matchMedia`))},Qn=function(){function e(e,t){this.selector=t&&Dt(t),this.data=[],this._r=[],this.isReverted=!1,this.id=Yn++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){A(e)&&(n=t,t=e,e=A);var r=this,i=function(){var e=b,i=r.selector,a;return e&&e!==r&&e.data.push(r),n&&(r.selector=Dt(n)),b=r,a=t.apply(r,arguments),A(a)&&r._r.push(a),b=e,r.selector=i,r.isReverted=!1,a};return r.last=i,e===A?i(r,function(e){return r.add(null,e)}):e?r[e]=i:i},t.ignore=function(e){var t=b;b=null,e(this),b=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof q&&!(n.parent&&n.parent.data===`nested`)&&t.push(n)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var n=this;if(e?(function(){for(var t=n.getTweens(),r=n.data.length,i;r--;)i=n.data[r],i.data===`isFlip`&&(i.revert(),i.getChildren(!0,!0,!1).forEach(function(e){return t.splice(t.indexOf(e),1)}));for(t.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),r=n.data.length;r--;)i=n.data[r],i instanceof K?i.data!==`nested`&&(i.scrollTrigger&&i.scrollTrigger.revert(),i.kill()):!(i instanceof q)&&i.revert&&i.revert(e);n._r.forEach(function(t){return t(e,n)}),n.isReverted=!0})():this.data.forEach(function(e){return e.kill&&e.kill()}),this.clear(),t)for(var r=Gn.length;r--;)Gn[r].id===this.id&&Gn.splice(r,1)},t.revert=function(e){this.kill(e||{})},e}(),$n=function(){function e(e){this.contexts=[],this.scope=e,b&&b.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){N(e)||(e={matches:e});var r=new Qn(0,n||this.scope),i=r.conditions={},a,o,s;for(o in b&&!r.selector&&(r.selector=b.selector),this.contexts.push(r),t=r.add(`onMatch`,t),r.queries=e,e)o===`all`?s=1:(a=ue.matchMedia(e[o]),a&&(Gn.indexOf(r)<0&&Gn.push(r),(i[o]=a.matches)&&(s=1),a.addListener?a.addListener(Zn):a.addEventListener(`change`,Zn)));return s&&t(r,function(e){return r.add(null,e)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),er={registerPlugin:function(){[...arguments].forEach(function(e){return qt(e)})},timeline:function(e){return new K(e)},getTweensOf:function(e,t){return R.getTweensOf(e,t)},getProperty:function(e,t,n,r){k(e)&&(e=Et(e)[0]);var i=Pe(e||{}).get,a=n?He:Ve;return n===`native`&&(n=``),e&&(t?a((Oe[t]&&Oe[t].get||i)(e,t,n,r)):function(t,n,r){return a((Oe[t]&&Oe[t].get||i)(e,t,n,r))})},quickSetter:function(e,t,n){if(e=Et(e),e.length>1){var r=e.map(function(e){return Y.quickSetter(e,t,n)}),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var a=Oe[t],o=Pe(e),s=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(t){var r=new a;Gt._pt=0,r.init(e,n?t+n:t,Gt,0,[e]),r.render(1,r),Gt._pt&&Bn(1,Gt)}:o.set(e,s);return a?c:function(t){return c(e,s,n?t+n:t,o,1)}},quickTo:function(e,t,n){var r,i=Y.to(e,H((r={},r[t]=`+=0.1`,r.paused=!0,r.stagger=0,r),n||{})),a=function(e,n,r){return i.resetTo(t,e,n,r)};return a.tween=i,a},isTweening:function(e){return R.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=fn(e.ease,_.ease)),Ge(_,e||{})},config:function(e){return Ge(g,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.plugins,i=e.defaults,a=e.extendTimeline;(r||``).split(`,`).forEach(function(e){return e&&!Oe[e]&&!pe[e]&&ve(t+` effect requires `+e+` plugin.`)}),ke[t]=function(e,t,r){return n(Et(e),H(t||{},i),r)},a&&(K.prototype[t]=function(e,n,r){return this.add(ke[t](e,N(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){G[e]=fn(t)},parseEase:function(e,t){return arguments.length?fn(e,t):G},getById:function(e){return R.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new K(e),r,i;for(n.smoothChildTiming=P(e.smoothChildTiming),R.remove(n),n._dp=0,n._time=n._tTime=R._time,r=R._first;r;)i=r._next,(t||!(!r._dur&&r instanceof q&&r.vars.onComplete===r._targets[0]))&&ct(n,r,r._start-r._delay),r=i;return ct(R,n,0),n},context:function(e,t){return e?new Qn(e,t):b},matchMedia:function(e){return new $n(e)},matchMediaRefresh:function(){return Gn.forEach(function(e){var t=e.conditions,n,r;for(r in t)t[r]&&(t[r]=!1,n=1);n&&e.revert()})||Zn()},addEventListener:function(e,t){var n=Kn[e]||(Kn[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=Kn[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:Lt,wrapYoyo:Rt,distribute:kt,random:Mt,snap:jt,normalize:Ft,getUnit:U,clamp:St,splitColor:Xt,toArray:Et,selector:Dt,mapRange:Bt,pipe:Nt,unitize:Pt,interpolate:Vt,shuffle:Ot},install:ge,effects:ke,ticker:rn,updateRoot:K.updateRoot,plugins:Oe,globalTimeline:R,core:{PropTween:J,globals:ye,Tween:q,Timeline:K,Animation:vn,getCache:Pe,_removeLinkedListItem:Xe,reverting:function(){return y},context:function(e){return e&&b&&(b.data.push(e),e._ctx=b),b},suppressOverwrites:function(e){return v=e}}};z(`to,from,fromTo,delayedCall,set,killTweensOf`,function(e){return er[e]=q[e]}),rn.add(K.updateRoot),Gt=er.to({},{duration:0});var tr=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},nr=function(e,t){var n=e._targets,r,i,a;for(r in t)for(i=n.length;i--;)a=e._ptLookup[i][r],(a&&=a.d)&&(a._pt&&(a=tr(a,r)),a&&a.modifier&&a.modifier(t[r],e,n[i],r))},rr=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,i;if(k(n)&&(r={},z(n,function(e){return r[e]=1}),n=r),t){for(i in r={},n)r[i]=t(n[i]);n=r}nr(e,n)}}}},Y=er.registerPlugin({name:`attr`,init:function(e,t,n,r,i){var a,o,s;for(a in this.tween=n,t)s=e.getAttribute(a)||``,o=this.add(e,`setAttribute`,(s||0)+``,t[a],r,i,0,0,a),o.op=a,o.b=s,this._props.push(a)},render:function(e,t){for(var n=t._pt;n;)y?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:`endArray`,headless:1,init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},rr(`roundProps`,At),rr(`modifiers`),rr(`snap`,jt))||er;q.version=K.version=Y.version=`3.15.0`,he=1,F()&&an(),G.Power0,G.Power1,G.Power2,G.Power3,G.Power4,G.Linear,G.Quad,G.Cubic,G.Quart,G.Quint,G.Strong,G.Elastic,G.Back,G.SteppedEase,G.Bounce,G.Sine,G.Expo,G.Circ;var ir,ar,or,sr,cr,lr,ur,dr=function(){return typeof window<`u`},fr={},pr=180/Math.PI,mr=Math.PI/180,hr=Math.atan2,gr=1e8,_r=/([A-Z])/g,vr=/(left|right|width|margin|padding|x)/i,yr=/[\s,\(]\S/,br={autoAlpha:`opacity,visibility`,scale:`scaleX,scaleY`,alpha:`opacity`},xr=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Sr=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Cr=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},wr=function(e,t){return t.set(t.t,t.p,e===1?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},Tr=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},Er=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},Dr=function(e,t){return t.set(t.t,t.p,e===1?t.e:t.b,t)},Or=function(e,t,n){return e.style[t]=n},kr=function(e,t,n){return e.style.setProperty(t,n)},Ar=function(e,t,n){return e._gsap[t]=n},jr=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},Mr=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},Nr=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},X=`transform`,Z=X+`Origin`,Pr=function e(t,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(t in fr&&a){if(this.tfm=this.tfm||{},t!==`transform`)t=br[t]||t,~t.indexOf(`,`)?t.split(`,`).forEach(function(e){return r.tfm[e]=$r(i,e)}):this.tfm[t]=o.x?o[t]:$r(i,t),t===Z&&(this.tfm.zOrigin=o.zOrigin);else return br.transform.split(`,`).forEach(function(t){return e.call(r,t,n)});if(this.props.indexOf(X)>=0)return;o.svg&&(this.svgo=i.getAttribute(`data-svg-origin`),this.props.push(Z,n,``)),t=X}(a||n)&&this.props.push(t,n,a[t])},Fr=function(e){e.translate&&(e.removeProperty(`translate`),e.removeProperty(`scale`),e.removeProperty(`rotate`))},Ir=function(){var e=this.props,t=this.target,n=t.style,r=t._gsap,i,a;for(i=0;i=0?Vr[i]:``)+e},Ur=function(){dr()&&window.document&&(ir=window,ar=ir.document,or=ar.documentElement,cr=zr(`div`)||{style:{}},zr(`div`),X=Hr(X),Z=X+`Origin`,cr.style.cssText=`border-width:0;line-height:0;position:absolute;padding:0`,Rr=!!Hr(`perspective`),ur=Y.core.reverting,sr=1)},Wr=function(e){var t=e.ownerSVGElement,n=zr(`svg`,t&&t.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`),r=e.cloneNode(!0),i;r.style.display=`block`,n.appendChild(r),or.appendChild(n);try{i=r.getBBox()}catch{}return n.removeChild(r),or.removeChild(n),i},Gr=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},Kr=function(e){var t,n;try{t=e.getBBox()}catch{t=Wr(e),n=1}return t&&(t.width||t.height)||n||(t=Wr(e)),t&&!t.width&&!t.x&&!t.y?{x:+Gr(e,[`x`,`cx`,`x1`])||0,y:+Gr(e,[`y`,`cy`,`y1`])||0,width:0,height:0}:t},qr=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Kr(e))},Jr=function(e,t){if(t){var n=e.style,r;t in fr&&t!==Z&&(t=X),n.removeProperty?(r=t.substr(0,2),(r===`ms`||t.substr(0,6)===`webkit`)&&(t=`-`+t),n.removeProperty(r===`--`?t:t.replace(_r,`-$1`).toLowerCase())):n.removeAttribute(t)}},Yr=function(e,t,n,r,i,a){var o=new J(e._pt,t,n,0,1,a?Dr:Er);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},Xr={deg:1,rad:1,turn:1},Zr={grid:1,flex:1},Qr=function e(t,n,r,i){var a=parseFloat(r)||0,o=(r+``).trim().substr((a+``).length)||`px`,s=cr.style,c=vr.test(n),l=t.tagName.toLowerCase()===`svg`,u=(l?`client`:`offset`)+(c?`Width`:`Height`),d=100,f=i===`px`,p=i===`%`,m,h,g,_;if(i===o||!a||Xr[i]||Xr[o])return a;if(o!==`px`&&!f&&(a=e(t,n,r,`px`)),_=t.getCTM&&qr(t),(p||o===`%`)&&(fr[n]||~n.indexOf(`adius`)))return m=_?t.getBBox()[c?`width`:`height`]:t[u],B(p?a/m*d:a/100*m);if(s[c?`width`:`height`]=d+(f?o:i),h=i!==`rem`&&~n.indexOf(`adius`)||i===`em`&&t.appendChild&&!l?t:t.parentNode,_&&(h=(t.ownerSVGElement||{}).parentNode),(!h||h===ar||!h.appendChild)&&(h=ar.body),g=h._gsap,g&&p&&g.width&&c&&g.time===rn.time&&!g.uncache)return B(a/g.width*d);if(p&&(n===`height`||n===`width`)){var v=t.style[n];t.style[n]=d+i,m=t[u],v?t.style[n]=v:Jr(t,n)}else (p||o===`%`)&&!Zr[Br(h,`display`)]&&(s.position=Br(t,`position`)),h===t&&(s.position=`static`),h.appendChild(cr),m=cr[u],h.removeChild(cr),s.position=`absolute`;return c&&p&&(g=Pe(h),g.time=rn.time,g.width=h[u]),B(f?m*a/d:m&&a?d/m*a:0)},$r=function(e,t,n,r){var i;return sr||Ur(),t in br&&t!==`transform`&&(t=br[t],~t.indexOf(`,`)&&(t=t.split(`,`)[0])),fr[t]&&t!==`transform`?(i=di(e,r),i=t===`transformOrigin`?i.svg?i.origin:fi(Br(e,Z))+` `+i.zOrigin+`px`:i[t]):(i=e.style[t],(!i||i===`auto`||r||~(i+``).indexOf(`calc(`))&&(i=ii[t]&&ii[t](e,t,n)||Br(e,t)||Fe(e,t)||+(t===`opacity`))),n&&!~(i+``).trim().indexOf(` `)?Qr(e,t,i,n)+n:i},ei=function(e,t,n,r){if(!n||n===`none`){var i=Hr(t,e,1),a=i&&Br(e,i,1);a&&a!==n?(t=i,n=a):t===`borderColor`&&(n=Br(e,`borderTopColor`))}var o=new J(this._pt,e.style,t,0,1,zn),s=0,c=0,l,u,d,f,p,m,h,_,v,y,b,x;if(o.b=n,o.e=r,n+=``,r+=``,r.substring(0,6)===`var(--`&&(r=Br(e,r.substring(4,r.indexOf(`)`)))),r===`auto`&&(m=e.style[t],e.style[t]=r,r=Br(e,t)||r,m?e.style[t]=m:Jr(e,t)),l=[n,r],tn(l),n=l[0],r=l[1],d=n.match(ae)||[],x=r.match(ae)||[],x.length){for(;u=ae.exec(r);)h=u[0],v=r.substring(s,u.index),p?p=(p+1)%5:(v.substr(-5)===`rgba(`||v.substr(-5)===`hsla(`)&&(p=1),h!==(m=d[c++]||``)&&(f=parseFloat(m)||0,b=m.substr((f+``).length),h.charAt(1)===`=`&&(h=Ie(f,h)+b),_=parseFloat(h),y=h.substr((_+``).length),s=ae.lastIndex-y.length,y||(y=y||g.units[t]||b,s===r.length&&(r+=y,o.e+=y)),b!==y&&(f=Qr(e,t,m,y)||0),o._pt={_next:o._pt,p:v||c===1?v:`,`,s:f,c:_-f,m:p&&p<4||t===`zIndex`?Math.round:0});o.c=s-1;)o=i[c],fr[o]&&(s=1,o=o===`transformOrigin`?Z:X),Jr(n,o);s&&(Jr(n,X),a&&(a.svg&&n.removeAttribute(`transform`),r.scale=r.rotate=r.translate=`none`,di(n,1),a.uncache=1,Fr(r)))}},ii={clearProps:function(e,t,n,r,i){if(i.data!==`isFromStart`){var a=e._pt=new J(e._pt,t,n,0,0,ri);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},ai=[1,0,0,1,0,0],oi={},si=function(e){return e===`matrix(1, 0, 0, 1, 0, 0)`||e===`none`||!e},ci=function(e){var t=Br(e,X);return si(t)?ai:t.substr(7).match(ie).map(B)},li=function(e,t){var n=e._gsap||Pe(e),r=e.style,i=ci(e),a,o,s,c;return n.svg&&e.getAttribute(`transform`)?(s=e.transform.baseVal.consolidate().matrix,i=[s.a,s.b,s.c,s.d,s.e,s.f],i.join(`,`)===`1,0,0,1,0,0`?ai:i):(i===ai&&!e.offsetParent&&e!==or&&!n.svg&&(s=r.display,r.display=`block`,a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,o=e.nextElementSibling,or.appendChild(e)),i=ci(e),s?r.display=s:Jr(e,`display`),c&&(o?a.insertBefore(e,o):a?a.appendChild(e):or.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},ui=function(e,t,n,r,i,a){var o=e._gsap,s=i||li(e,!0),c=o.xOrigin||0,l=o.yOrigin||0,u=o.xOffset||0,d=o.yOffset||0,f=s[0],p=s[1],m=s[2],h=s[3],g=s[4],_=s[5],v=t.split(` `),y=parseFloat(v[0])||0,b=parseFloat(v[1])||0,x,S,C,w;n?s!==ai&&(S=f*h-p*m)&&(C=h/S*y+b*(-m/S)+(m*_-h*g)/S,w=y*(-p/S)+f/S*b-(f*_-p*g)/S,y=C,b=w):(x=Kr(e),y=x.x+(~v[0].indexOf(`%`)?y/100*x.width:y),b=x.y+(~(v[1]||v[0]).indexOf(`%`)?b/100*x.height:b)),r||r!==!1&&o.smooth?(g=y-c,_=b-l,o.xOffset=u+(g*f+_*m)-g,o.yOffset=d+(g*p+_*h)-_):o.xOffset=o.yOffset=0,o.xOrigin=y,o.yOrigin=b,o.smooth=!!r,o.origin=t,o.originIsAbsolute=!!n,e.style[Z]=`0px 0px`,a&&(Yr(a,o,`xOrigin`,c,y),Yr(a,o,`yOrigin`,l,b),Yr(a,o,`xOffset`,u,o.xOffset),Yr(a,o,`yOffset`,d,o.yOffset)),e.setAttribute(`data-svg-origin`,y+` `+b)},di=function(e,t){var n=e._gsap||new _n(e);if(`x`in n&&!t&&!n.uncache)return n;var r=e.style,i=n.scaleX<0,a=`px`,o=`deg`,s=getComputedStyle(e),c=Br(e,Z)||`0`,l=u=d=m=h=_=v=y=b=0,u,d,f=p=1,p,m,h,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,I,ee,L,te,ne,re;return n.svg=!!(e.getCTM&&qr(e)),s.translate&&((s.translate!==`none`||s.scale!==`none`||s.rotate!==`none`)&&(r[X]=(s.translate===`none`?``:`translate3d(`+(s.translate+` 0 0`).split(` `).slice(0,3).join(`, `)+`) `)+(s.rotate===`none`?``:`rotate(`+s.rotate+`) `)+(s.scale===`none`?``:`scale(`+s.scale.split(` `).join(`,`)+`) `)+(s[X]===`none`?``:s[X])),r.scale=r.rotate=r.translate=`none`),C=li(e,n.svg),n.svg&&(n.uncache?(P=e.getBBox(),c=n.xOrigin-P.x+`px `+(n.yOrigin-P.y)+`px`,N=``):N=!t&&e.getAttribute(`data-svg-origin`),ui(e,N||c,!!N||n.originIsAbsolute,n.smooth!==!1,C)),x=n.xOrigin||0,S=n.yOrigin||0,C!==ai&&(D=C[0],O=C[1],k=C[2],A=C[3],l=j=C[4],u=M=C[5],C.length===6?(f=Math.sqrt(D*D+O*O),p=Math.sqrt(A*A+k*k),m=D||O?hr(O,D)*pr:0,v=k||A?hr(k,A)*pr+m:0,v&&(p*=Math.abs(Math.cos(v*mr))),n.svg&&(l-=x-(x*D+S*k),u-=S-(x*O+S*A))):(re=C[6],te=C[7],I=C[8],ee=C[9],L=C[10],ne=C[11],l=C[12],u=C[13],d=C[14],w=hr(re,L),h=w*pr,w&&(T=Math.cos(-w),E=Math.sin(-w),N=j*T+I*E,P=M*T+ee*E,F=re*T+L*E,I=j*-E+I*T,ee=M*-E+ee*T,L=re*-E+L*T,ne=te*-E+ne*T,j=N,M=P,re=F),w=hr(-k,L),_=w*pr,w&&(T=Math.cos(-w),E=Math.sin(-w),N=D*T-I*E,P=O*T-ee*E,F=k*T-L*E,ne=A*E+ne*T,D=N,O=P,k=F),w=hr(O,D),m=w*pr,w&&(T=Math.cos(w),E=Math.sin(w),N=D*T+O*E,P=j*T+M*E,O=O*T-D*E,M=M*T-j*E,D=N,j=P),h&&Math.abs(h)+Math.abs(m)>359.9&&(h=m=0,_=180-_),f=B(Math.sqrt(D*D+O*O+k*k)),p=B(Math.sqrt(M*M+re*re)),w=hr(j,M),v=Math.abs(w)>2e-4?w*pr:0,b=ne?1/(ne<0?-ne:ne):0),n.svg&&(N=e.getAttribute(`transform`),n.forceCSS=e.setAttribute(`transform`,``)||!si(Br(e,X)),N&&e.setAttribute(`transform`,N))),Math.abs(v)>90&&Math.abs(v)<270&&(i?(f*=-1,v+=m<=0?180:-180,m+=m<=0?180:-180):(p*=-1,v+=v<=0?180:-180)),t||=n.uncache,n.x=l-((n.xPercent=l&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-l)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+a,n.y=u-((n.yPercent=u&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-u)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+a,n.z=d+a,n.scaleX=B(f),n.scaleY=B(p),n.rotation=B(m)+o,n.rotationX=B(h)+o,n.rotationY=B(_)+o,n.skewX=v+o,n.skewY=y+o,n.transformPerspective=b+a,(n.zOrigin=parseFloat(c.split(` `)[2])||!t&&n.zOrigin||0)&&(r[Z]=fi(c)),n.xOffset=n.yOffset=0,n.force3D=g.force3D,n.renderTransform=n.svg?yi:Rr?vi:mi,n.uncache=0,n},fi=function(e){return(e=e.split(` `))[0]+` `+e[1]},pi=function(e,t,n){var r=U(t);return B(parseFloat(t)+parseFloat(Qr(e,`x`,n+`px`,r)))+r},mi=function(e,t){t.z=`0px`,t.rotationY=t.rotationX=`0deg`,t.force3D=0,vi(e,t)},hi=`0deg`,gi=`0px`,_i=`) `,vi=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,c=n.rotation,l=n.rotationY,u=n.rotationX,d=n.skewX,f=n.skewY,p=n.scaleX,m=n.scaleY,h=n.transformPerspective,g=n.force3D,_=n.target,v=n.zOrigin,y=``,b=g===`auto`&&e&&e!==1||g===!0;if(v&&(u!==hi||l!==hi)){var x=parseFloat(l)*mr,S=Math.sin(x),C=Math.cos(x),w;x=parseFloat(u)*mr,w=Math.cos(x),a=pi(_,a,S*w*-v),o=pi(_,o,-Math.sin(x)*-v),s=pi(_,s,C*w*-v+v)}h!==gi&&(y+=`perspective(`+h+_i),(r||i)&&(y+=`translate(`+r+`%, `+i+`%) `),(b||a!==gi||o!==gi||s!==gi)&&(y+=s!==gi||b?`translate3d(`+a+`, `+o+`, `+s+`) `:`translate(`+a+`, `+o+_i),c!==hi&&(y+=`rotate(`+c+_i),l!==hi&&(y+=`rotateY(`+l+_i),u!==hi&&(y+=`rotateX(`+u+_i),(d!==hi||f!==hi)&&(y+=`skew(`+d+`, `+f+_i),(p!==1||m!==1)&&(y+=`scale(`+p+`, `+m+_i),_.style[X]=y||`translate(0, 0)`},yi=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.rotation,c=n.skewX,l=n.skewY,u=n.scaleX,d=n.scaleY,f=n.target,p=n.xOrigin,m=n.yOrigin,h=n.xOffset,g=n.yOffset,_=n.forceCSS,v=parseFloat(a),y=parseFloat(o),b,x,S,C,w;s=parseFloat(s),c=parseFloat(c),l=parseFloat(l),l&&(l=parseFloat(l),c+=l,s+=l),s||c?(s*=mr,c*=mr,b=Math.cos(s)*u,x=Math.sin(s)*u,S=Math.sin(s-c)*-d,C=Math.cos(s-c)*d,c&&(l*=mr,w=Math.tan(c-l),w=Math.sqrt(1+w*w),S*=w,C*=w,l&&(w=Math.tan(l),w=Math.sqrt(1+w*w),b*=w,x*=w)),b=B(b),x=B(x),S=B(S),C=B(C)):(b=u,C=d,x=S=0),(v&&!~(a+``).indexOf(`px`)||y&&!~(o+``).indexOf(`px`))&&(v=Qr(f,`x`,a,`px`),y=Qr(f,`y`,o,`px`)),(p||m||h||g)&&(v=B(v+p-(p*b+m*S)+h),y=B(y+m-(p*x+m*C)+g)),(r||i)&&(w=f.getBBox(),v=B(v+r/100*w.width),y=B(y+i/100*w.height)),w=`matrix(`+b+`,`+x+`,`+S+`,`+C+`,`+v+`,`+y+`)`,f.setAttribute(`transform`,w),_&&(f.style[X]=w)},bi=function(e,t,n,r,i){var a=360,o=k(i),s=parseFloat(i)*(o&&~i.indexOf(`rad`)?pr:1)-r,c=r+s+`deg`,l,u;return o&&(l=i.split(`_`)[1],l===`short`&&(s%=a,s!==s%(a/2)&&(s+=s<0?a:-a)),l===`cw`&&s<0?s=(s+a*gr)%a-~~(s/a)*a:l===`ccw`&&s>0&&(s=(s-a*gr)%a-~~(s/a)*a)),e._pt=u=new J(e._pt,t,n,r,s,Sr),u.e=c,u.u=`deg`,e._props.push(n),u},xi=function(e,t){for(var n in t)e[n]=t[n];return e},Si=function(e,t,n){var r=xi({},n._gsap),i=`perspective,force3D,transformOrigin,svgOrigin`,a=n.style,o,s,c,l,u,d,f,p;for(s in r.svg?(c=n.getAttribute(`transform`),n.setAttribute(`transform`,``),a[X]=t,o=di(n,1),Jr(n,X),n.setAttribute(`transform`,c)):(c=getComputedStyle(n)[X],a[X]=t,o=di(n,1),a[X]=c),fr)c=r[s],l=o[s],c!==l&&i.indexOf(s)<0&&(f=U(c),p=U(l),u=f===p?parseFloat(c):Qr(n,s,c,p),d=parseFloat(l),e._pt=new J(e._pt,o,s,u,d-u,xr),e._pt.u=p||0,e._props.push(s));xi(o,r)};z(`padding,margin,Width,Radius`,function(e,t){var n=`Top`,r=`Right`,i=`Bottom`,a=`Left`,o=(t<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map(function(n){return t<2?e+n:`border`+n+e});ii[t>1?`border`+e:e]=function(e,t,n,r,i){var a,s;if(arguments.length<4)return a=o.map(function(t){return $r(e,t,n)}),s=a.join(` `),s.split(a[0]).length===5?a[0]:s;a=(r+``).split(` `),s={},o.forEach(function(e,t){return s[e]=a[t]=a[t]||a[(t-1)/2|0]}),e.init(t,s,i)}});var Ci={name:`css`,register:Ur,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,i){var a=this._props,o=e.style,s=n.vars.startAt,c,l,u,d,f,p,m,h,_,v,y,b,x,S,C,w,T;for(m in sr||Ur(),this.styles=this.styles||Lr(e),w=this.styles.props,this.tween=n,t)if(m!==`autoRound`&&(l=t[m],!(Oe[m]&&Sn(m,t,n,r,e,i)))){if(f=typeof l,p=ii[m],f===`function`&&(l=l.call(n,r,e,i),f=typeof l),f===`string`&&~l.indexOf(`random(`)&&(l=zt(l)),p)p(this,e,m,l,n)&&(C=1);else if(m.substr(0,2)===`--`)c=(getComputedStyle(e).getPropertyValue(m)+``).trim(),l+=``,$t.lastIndex=0,$t.test(c)||(h=U(c),_=U(l),_?h!==_&&(c=Qr(e,m,c,_)+_):h&&(l+=h)),this.add(o,`setProperty`,c,l,r,i,0,0,m),a.push(m),w.push(m,0,o[m]);else if(f!==`undefined`){if(s&&m in s?(c=typeof s[m]==`function`?s[m].call(n,r,e,i):s[m],k(c)&&~c.indexOf(`random(`)&&(c=zt(c)),U(c+``)||c===`auto`||(c+=g.units[m]||U($r(e,m))||``),(c+``).charAt(1)===`=`&&(c=$r(e,m))):c=$r(e,m),d=parseFloat(c),v=f===`string`&&l.charAt(1)===`=`&&l.substr(0,2),v&&(l=l.substr(2)),u=parseFloat(l),m in br&&(m===`autoAlpha`&&(d===1&&$r(e,`visibility`)===`hidden`&&u&&(d=0),w.push(`visibility`,0,o.visibility),Yr(this,o,`visibility`,d?`inherit`:`hidden`,u?`inherit`:`hidden`,!u)),m!==`scale`&&m!==`transform`&&(m=br[m],~m.indexOf(`,`)&&(m=m.split(`,`)[0]))),y=m in fr,y){if(this.styles.save(m),T=l,f===`string`&&l.substring(0,6)===`var(--`){if(l=Br(e,l.substring(4,l.indexOf(`)`))),l.substring(0,5)===`calc(`){var E=e.style.perspective;e.style.perspective=l,l=Br(e,`perspective`),E?e.style.perspective=E:Jr(e,`perspective`)}u=parseFloat(l)}if(b||(x=e._gsap,x.renderTransform&&!t.parseTransform||di(e,t.parseTransform),S=t.smoothOrigin!==!1&&x.smooth,b=this._pt=new J(this._pt,o,X,0,1,x.renderTransform,x,0,-1),b.dep=1),m===`scale`)this._pt=new J(this._pt,x,`scaleY`,x.scaleY,(v?Ie(x.scaleY,v+u):u)-x.scaleY||0,xr),this._pt.u=0,a.push(`scaleY`,m),m+=`X`;else if(m===`transformOrigin`){w.push(Z,0,o[Z]),l=ni(l),x.svg?ui(e,l,0,S,0,this):(_=parseFloat(l.split(` `)[2])||0,_!==x.zOrigin&&Yr(this,x,`zOrigin`,x.zOrigin,_),Yr(this,o,m,fi(c),fi(l)));continue}else if(m===`svgOrigin`){ui(e,l,1,S,0,this);continue}else if(m in oi){bi(this,x,m,d,v?Ie(d,v+l):l);continue}else if(m===`smoothOrigin`){Yr(this,x,`smooth`,x.smooth,l);continue}else if(m===`force3D`){x[m]=l;continue}else if(m===`transform`){Si(this,l,e);continue}}else m in o||(m=Hr(m)||m);if(y||(u||u===0)&&(d||d===0)&&!yr.test(l)&&m in o)h=(c+``).substr((d+``).length),u||=0,_=U(l)||(m in g.units?g.units[m]:h),h!==_&&(d=Qr(e,m,c,_)),this._pt=new J(this._pt,y?x:o,m,d,(v?Ie(d,v+u):u)-d,!y&&(_===`px`||m===`zIndex`)&&t.autoRound!==!1?Tr:xr),this._pt.u=_||0,y&&T!==l?(this._pt.b=c,this._pt.e=T,this._pt.r=wr):h!==_&&_!==`%`&&(this._pt.b=c,this._pt.r=Cr);else if(m in o)ei.call(this,e,m,c,v?v+l:l);else if(m in e)this.add(e,m,c||e[m],v?v+l:l,r,i);else if(m!==`parseTransform`){_e(m,l);continue}y||(m in o?w.push(m,0,o[m]):typeof e[m]==`function`?w.push(m,2,e[m]()):w.push(m,1,c||e[m])),a.push(m)}}C&&Wn(this)},render:function(e,t){if(t.tween._time||!ur())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:$r,aliases:br,getSetter:function(e,t,n){var r=br[t];return r&&r.indexOf(`,`)<0&&(t=r),t in fr&&t!==Z&&(e._gsap.x||$r(e,`x`))?n&&lr===n?t===`scale`?jr:Ar:(lr=n||{})&&(t===`scale`?Mr:Nr):e.style&&!M(e.style[t])?Or:~t.indexOf(`-`)?kr:In(e,t)},core:{_removeProperty:Jr,_getMatrix:li}};Y.utils.checkPrefix=Hr,Y.core.getStyleSaver=Lr,(function(e,t,n,r){var i=z(e+`,`+t+`,`+n,function(e){fr[e]=1});z(t,function(e){g.units[e]=`deg`,oi[e]=1}),br[i[13]]=e+`,`+t,z(r,function(e){var t=e.split(`:`);br[t[1]]=i[t[0]]})})(`x,y,z,scale,scaleX,scaleY,xPercent,yPercent`,`rotation,rotationX,rotationY,skewX,skewY`,`transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective`,`0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY`),z(`x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective`,function(e){g.units[e]=`px`}),Y.registerPlugin(Ci);var Q=Y.registerPlugin(Ci)||Y;Q.core.Tween;var wi=typeof document<`u`?p.useLayoutEffect:p.useEffect,Ti=e=>e&&!Array.isArray(e)&&typeof e==`object`,Ei=[],Di={},Oi=Q,ki=(e,t=Ei)=>{let n=Di;Ti(e)?(n=e,e=null,t=`dependencies`in n?n.dependencies:Ei):Ti(t)&&(n=t,t=`dependencies`in n?n.dependencies:Ei),e&&typeof e!=`function`&&console.warn(`First parameter must be a function or config object`);let{scope:r,revertOnUpdate:i}=n,a=(0,p.useRef)(!1),o=(0,p.useRef)(Oi.context(()=>{},r)),s=(0,p.useRef)(e=>o.current.add(null,e)),c=t&&t.length&&!i;return c&&wi(()=>(a.current=!0,()=>o.current.revert()),Ei),wi(()=>{if(e&&o.current.add(e,r),!c||!a.current)return()=>o.current.revert()},t),{context:o.current,contextSafe:s.current}};ki.register=e=>{Oi=e},ki.headless=!0;var $=i();Q.registerPlugin(ki);function Ai({size:e=12,maxDistance:t=5,pupilColor:n=`#2D2D2D`}){return(0,$.jsx)(`div`,{className:`pupil rounded-full`,"data-max-distance":t,style:{backgroundColor:n,height:e,width:e,willChange:`transform`}})}function ji({size:e=48,pupilSize:t=16,maxDistance:n=10,eyeColor:r=`white`,pupilColor:i=`#2D2D2D`}){return(0,$.jsx)(`div`,{className:`eyeball flex items-center justify-center overflow-hidden rounded-full`,"data-max-distance":n,style:{backgroundColor:r,height:e,width:e,willChange:`height`},children:(0,$.jsx)(`div`,{className:`eyeball-pupil rounded-full`,style:{backgroundColor:i,height:t,width:t,willChange:`transform`}})})}function Mi({isTyping:e=!1,showPassword:t=!1,passwordLength:n=0}){let r=(0,p.useRef)(null),i=(0,p.useRef)({x:0,y:0}),a=(0,p.useRef)(0),o=(0,p.useRef)(null),s=(0,p.useRef)(null),c=(0,p.useRef)(null),l=(0,p.useRef)(null),u=(0,p.useRef)(null),d=(0,p.useRef)(null),f=(0,p.useRef)(null),m=(0,p.useRef)(null),h=(0,p.useRef)(null),g=(0,p.useRef)(void 0),_=(0,p.useRef)(void 0),v=(0,p.useRef)(void 0),y=(0,p.useRef)(void 0),b=(0,p.useRef)(!1),x=n>0&&!t,S=n>0&&t,C=(0,p.useRef)({isHidingPassword:x,isLooking:!1,isShowingPassword:S,isTyping:e});C.current={isHidingPassword:x,isLooking:b.current,isShowingPassword:S,isTyping:e};let{contextSafe:w}=ki(()=>{Q.set(`.pupil`,{x:0,y:0}),Q.set(`.eyeball-pupil`,{x:0,y:0})},{scope:r}),T=(0,p.useRef)(null);(0,p.useEffect)(()=>{if(!(o.current&&s.current&&l.current&&c.current&&u.current&&d.current&&m.current&&f.current&&h.current))return;let e={blackFaceLeft:Q.quickTo(d.current,`left`,{duration:.3,ease:`power2.out`}),blackFaceTop:Q.quickTo(d.current,`top`,{duration:.3,ease:`power2.out`}),blackSkew:Q.quickTo(s.current,`skewX`,{duration:.3,ease:`power2.out`}),blackX:Q.quickTo(s.current,`x`,{duration:.3,ease:`power2.out`}),mouthX:Q.quickTo(h.current,`x`,{duration:.2,ease:`power2.out`}),mouthY:Q.quickTo(h.current,`y`,{duration:.2,ease:`power2.out`}),orangeFaceX:Q.quickTo(m.current,`x`,{duration:.2,ease:`power2.out`}),orangeFaceY:Q.quickTo(m.current,`y`,{duration:.2,ease:`power2.out`}),orangeSkew:Q.quickTo(l.current,`skewX`,{duration:.3,ease:`power2.out`}),purpleFaceLeft:Q.quickTo(u.current,`left`,{duration:.3,ease:`power2.out`}),purpleFaceTop:Q.quickTo(u.current,`top`,{duration:.3,ease:`power2.out`}),purpleHeight:Q.quickTo(o.current,`height`,{duration:.3,ease:`power2.out`}),purpleSkew:Q.quickTo(o.current,`skewX`,{duration:.3,ease:`power2.out`}),purpleX:Q.quickTo(o.current,`x`,{duration:.3,ease:`power2.out`}),yellowFaceX:Q.quickTo(f.current,`x`,{duration:.2,ease:`power2.out`}),yellowFaceY:Q.quickTo(f.current,`y`,{duration:.2,ease:`power2.out`}),yellowSkew:Q.quickTo(c.current,`skewX`,{duration:.3,ease:`power2.out`})};T.current=e;let t=e=>{let t=e.getBoundingClientRect(),n=t.left+t.width/2,r=t.top+t.height/3,a=i.current.x-n,o=i.current.y-r;return{bodySkew:Math.max(-6,Math.min(6,-a/120)),faceX:Math.max(-15,Math.min(15,a/20)),faceY:Math.max(-10,Math.min(10,o/30))}},n=(e,t)=>{let n=e.getBoundingClientRect(),r=n.left+n.width/2,a=n.top+n.height/2,o=i.current.x-r,s=i.current.y-a,c=Math.min(Math.sqrt(o**2+s**2),t),l=Math.atan2(s,o);return{x:Math.cos(l)*c,y:Math.sin(l)*c}},p=()=>{let i=r.current;if(!i)return;let{isHidingPassword:u,isLooking:d,isShowingPassword:f,isTyping:m}=C.current;if(o.current&&!f){let n=t(o.current);m||u?(e.purpleSkew(n.bodySkew-12),e.purpleX(40),e.purpleHeight(440)):(e.purpleSkew(n.bodySkew),e.purpleX(0),e.purpleHeight(400))}if(s.current&&!f){let n=t(s.current);d?(e.blackSkew(n.bodySkew*1.5+10),e.blackX(20)):m||u?(e.blackSkew(n.bodySkew*1.5),e.blackX(0)):(e.blackSkew(n.bodySkew),e.blackX(0))}if(l.current&&!f){let n=t(l.current);e.orangeSkew(n.bodySkew)}if(c.current&&!f){let n=t(c.current);e.yellowSkew(n.bodySkew)}if(o.current&&!f&&!d){let n=t(o.current),r=n.faceX>=0?Math.min(25,n.faceX*1.5):n.faceX;e.purpleFaceLeft(45+r),e.purpleFaceTop(40+n.faceY)}if(s.current&&!f&&!d){let n=t(s.current);e.blackFaceLeft(26+n.faceX),e.blackFaceTop(32+n.faceY)}if(l.current&&!f){let n=t(l.current);e.orangeFaceX(n.faceX),e.orangeFaceY(n.faceY)}if(c.current&&!f){let n=t(c.current);e.yellowFaceX(n.faceX),e.yellowFaceY(n.faceY),e.mouthX(n.faceX),e.mouthY(n.faceY)}if(!f){let e=i.querySelectorAll(`.pupil`);for(let t of e){let e=t,r=n(e,Number(e.dataset.maxDistance)||5);Q.set(e,{x:r.x,y:r.y})}if(!d){let e=i.querySelectorAll(`.eyeball`);for(let t of e){let e=t,r=Number(e.dataset.maxDistance)||10,i=e.querySelector(`.eyeball-pupil`);if(!i)continue;let a=n(e,r);Q.set(i,{x:a.x,y:a.y})}}}a.current=requestAnimationFrame(p)},g=e=>{i.current={x:e.clientX,y:e.clientY}};return window.addEventListener(`mousemove`,g,{passive:!0}),a.current=requestAnimationFrame(p),()=>{window.removeEventListener(`mousemove`,g),cancelAnimationFrame(a.current)}},[]),(0,p.useEffect)(()=>{let e=o.current?.querySelectorAll(`.eyeball`);if(!e?.length)return;let t=()=>{g.current=setTimeout(()=>{for(let t of e)Q.to(t,{duration:.08,ease:`power2.in`,height:2});setTimeout(()=>{for(let t of e){let e=Number(t.style.width.replace(`px`,``))||18;Q.to(t,{duration:.08,ease:`power2.out`,height:e})}t()},150)},Math.random()*4e3+3e3)};return t(),()=>clearTimeout(g.current)},[]),(0,p.useEffect)(()=>{let e=s.current?.querySelectorAll(`.eyeball`);if(!e?.length)return;let t=()=>{_.current=setTimeout(()=>{for(let t of e)Q.to(t,{duration:.08,ease:`power2.in`,height:2});setTimeout(()=>{for(let t of e){let e=Number(t.style.width.replace(`px`,``))||16;Q.to(t,{duration:.08,ease:`power2.out`,height:e})}t()},150)},Math.random()*4e3+3e3)};return t(),()=>clearTimeout(_.current)},[]);let E=w(()=>{let e=T.current;e&&(e.purpleFaceLeft(55),e.purpleFaceTop(65),e.blackFaceLeft(32),e.blackFaceTop(12)),o.current?.querySelectorAll(`.eyeball-pupil`).forEach(e=>{Q.to(e,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:3,y:4})}),s.current?.querySelectorAll(`.eyeball-pupil`).forEach(e=>{Q.to(e,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:0,y:-4})})}),D=w(()=>{let e=T.current;e&&(e.purpleFaceLeft(55),e.purpleFaceTop(65))}),O=w(()=>{let e=T.current;e&&(e.purpleSkew(0),e.blackSkew(0),e.orangeSkew(0),e.yellowSkew(0),e.purpleX(0),e.blackX(0),e.purpleHeight(400),e.purpleFaceLeft(20),e.purpleFaceTop(35),e.blackFaceLeft(10),e.blackFaceTop(28),e.orangeFaceX(-32),e.orangeFaceY(-5),e.yellowFaceX(-32),e.yellowFaceY(-5),e.mouthX(-30),e.mouthY(0)),o.current?.querySelectorAll(`.eyeball-pupil`).forEach(e=>{Q.to(e,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:-4,y:-4})}),s.current?.querySelectorAll(`.eyeball-pupil`).forEach(e=>{Q.to(e,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:-4,y:-4})}),l.current?.querySelectorAll(`.pupil`).forEach(e=>{Q.to(e,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:-5,y:-4})}),c.current?.querySelectorAll(`.pupil`).forEach(e=>{Q.to(e,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:-5,y:-4})})});return(0,p.useEffect)(()=>{if(!S||n<=0){clearTimeout(v.current);return}let e=o.current?.querySelectorAll(`.eyeball-pupil`);if(!e?.length)return;let t=()=>{v.current=setTimeout(()=>{for(let t of e)Q.to(t,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:4,y:5});let n=T.current;n&&(n.purpleFaceLeft(20),n.purpleFaceTop(35)),setTimeout(()=>{for(let t of e)Q.to(t,{duration:.3,ease:`power2.out`,overwrite:`auto`,x:-4,y:-4});t()},800)},Math.random()*3e3+2e3)};return t(),()=>clearTimeout(v.current)},[S,n]),(0,p.useEffect)(()=>(e&&!S?(b.current=!0,C.current.isLooking=!0,E(),clearTimeout(y.current),y.current=setTimeout(()=>{b.current=!1,C.current.isLooking=!1,o.current?.querySelectorAll(`.eyeball-pupil`).forEach(e=>{Q.killTweensOf(e)})},800)):(clearTimeout(y.current),b.current=!1,C.current.isLooking=!1),()=>clearTimeout(y.current)),[E,S,e]),(0,p.useEffect)(()=>{S?O():x&&D()},[D,O,x,S]),(0,$.jsxs)(`div`,{className:`relative mx-auto h-[320px] w-[440px] max-w-full lg:h-[400px] lg:w-[550px]`,ref:r,children:[(0,$.jsx)(`div`,{className:`absolute bottom-0 left-[70px] z-[1] rounded-t-[10px]`,ref:o,style:{backgroundColor:`#6C3FF5`,borderRadius:`10px 10px 0 0`,height:400,transformOrigin:`bottom center`,width:180,willChange:`transform`},children:(0,$.jsxs)(`div`,{className:`absolute flex gap-8`,ref:u,style:{left:45,top:40},children:[(0,$.jsx)(ji,{maxDistance:5,pupilColor:`#2D2D2D`,pupilSize:7,size:18}),(0,$.jsx)(ji,{maxDistance:5,pupilColor:`#2D2D2D`,pupilSize:7,size:18})]})}),(0,$.jsx)(`div`,{className:`absolute bottom-0 left-[240px] z-[2] rounded-t-[8px]`,ref:s,style:{backgroundColor:`#2D2D2D`,borderRadius:`8px 8px 0 0`,height:310,transformOrigin:`bottom center`,width:120,willChange:`transform`},children:(0,$.jsxs)(`div`,{className:`absolute flex gap-6`,ref:d,style:{left:26,top:32},children:[(0,$.jsx)(ji,{maxDistance:4,pupilColor:`#2D2D2D`,pupilSize:6,size:16}),(0,$.jsx)(ji,{maxDistance:4,pupilColor:`#2D2D2D`,pupilSize:6,size:16})]})}),(0,$.jsx)(`div`,{className:`absolute bottom-0 left-0 z-[3]`,ref:l,style:{backgroundColor:`#FF9B6B`,borderRadius:`120px 120px 0 0`,height:200,transformOrigin:`bottom center`,width:240,willChange:`transform`},children:(0,$.jsxs)(`div`,{className:`absolute flex gap-8`,ref:m,style:{left:82,top:90},children:[(0,$.jsx)(Ai,{maxDistance:5,pupilColor:`#2D2D2D`,size:12}),(0,$.jsx)(Ai,{maxDistance:5,pupilColor:`#2D2D2D`,size:12})]})}),(0,$.jsxs)(`div`,{className:`absolute bottom-0 left-[310px] z-[4]`,ref:c,style:{backgroundColor:`#E8D754`,borderRadius:`70px 70px 0 0`,height:230,transformOrigin:`bottom center`,width:140,willChange:`transform`},children:[(0,$.jsxs)(`div`,{className:`absolute flex gap-6`,ref:f,style:{left:52,top:40},children:[(0,$.jsx)(Ai,{maxDistance:5,pupilColor:`#2D2D2D`,size:12}),(0,$.jsx)(Ai,{maxDistance:5,pupilColor:`#2D2D2D`,size:12})]}),(0,$.jsx)(`div`,{className:`absolute rounded-full`,ref:h,style:{backgroundColor:`#2D2D2D`,height:4,left:40,top:88,width:80}})]})]})}function Ni({className:e}){let{isTyping:t,passwordLength:i,showPassword:a}=d();return(0,$.jsxs)(`div`,{className:s(`relative overflow-hidden bg-muted text-foreground`,e),children:[(0,$.jsx)(`div`,{className:`absolute inset-0 bg-[linear-gradient(rgba(0,0,0,0.03)_1px,transparent_1px),linear-gradient(90deg,rgba(0,0,0,0.03)_1px,transparent_1px)] bg-[size:48px_48px] opacity-60 dark:bg-[linear-gradient(rgba(255,255,255,0.03)_1px,transparent_1px),linear-gradient(90deg,rgba(255,255,255,0.03)_1px,transparent_1px)]`}),(0,$.jsx)(`div`,{className:`absolute top-[-10%] right-[-5%] size-80 rounded-full bg-primary/5 blur-3xl`}),(0,$.jsx)(`div`,{className:`absolute bottom-[-10%] left-[-5%] size-72 rounded-full bg-primary/5 blur-3xl`}),(0,$.jsxs)(`div`,{className:`relative z-20 flex h-full flex-col items-center justify-center gap-10 p-12`,children:[(0,$.jsxs)(`div`,{className:`w-full space-y-4 text-center`,children:[(0,$.jsx)(`p`,{className:`text-muted-foreground text-xs uppercase tracking-[0.3em]`,children:`USDT Payment Gateway`}),(0,$.jsx)(`h2`,{className:`font-semibold text-3xl tracking-tight xl:text-4xl`,children:n()}),(0,$.jsx)(`p`,{className:`mx-auto max-w-md text-muted-foreground text-sm leading-relaxed`,children:r()})]}),(0,$.jsx)(`div`,{className:`w-full rounded-[36px] border bg-background/50 px-6 py-8 shadow-2xl backdrop-blur-sm`,children:(0,$.jsx)(Mi,{isTyping:t,passwordLength:i,showPassword:a})})]})]})}function Pi(){return(0,$.jsx)(f,{children:(0,$.jsxs)(`div`,{className:`container relative grid h-svh flex-col items-center justify-center lg:max-w-none lg:grid-cols-2 lg:px-0`,children:[(0,$.jsx)(Ni,{className:`relative h-full overflow-hidden bg-muted max-lg:hidden`}),(0,$.jsxs)(`div`,{className:`flex h-full min-w-xs flex-col justify-center lg:p-8`,children:[(0,$.jsx)(`div`,{className:`mx-auto flex w-full flex-col justify-center space-y-2 py-8 sm:p-8 md:p-0`,children:(0,$.jsxs)(`div`,{className:`flex w-full items-center justify-between`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,$.jsx)(u,{className:`size-10 shrink-0`}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`h1`,{className:`font-medium text-xl leading-tight`,children:`GMPay`}),(0,$.jsx)(`p`,{className:`mt-1 whitespace-nowrap text-muted-foreground text-xs`,children:a()})]})]}),(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,$.jsx)(c,{}),(0,$.jsx)(l,{})]})]})}),(0,$.jsx)(`div`,{className:`mx-auto flex w-full max-w-sm flex-1 flex-col justify-center`,children:(0,$.jsx)(o,{})})]})]})})}export{Pi as component}; \ No newline at end of file diff --git a/src/www/assets/route-wzPKSRj2.js b/src/www/assets/route-gtb8yu3E.js similarity index 95% rename from src/www/assets/route-wzPKSRj2.js rename to src/www/assets/route-gtb8yu3E.js index 9ac7ebb..8f3c9ad 100644 --- a/src/www/assets/route-wzPKSRj2.js +++ b/src/www/assets/route-gtb8yu3E.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./useRouter-DtTm7XkK.js";import{n as i}from"./useStore-CupyIEEP.js";import{d as a,f as o,s}from"./ClientOnly-Bj5CESUC.js";import{a as c,n as l,r as u}from"./redirect-DMNGvjzO.js";import{t as d}from"./link-DPnL8P5J.js";import{n as f,t as p}from"./useSearch-Diln-KYh.js";import{t as m}from"./useNavigate-7u4DX0Ho.js";var h=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=u:this.parentRoute||i();let r=n?u:t?.path;r&&r!==`/`&&(r=a(r));let c=t?.id||r,l=n?u:s([this.parentRoute.id===`__root__`?``:this.parentRoute.id,c]);r===`__root__`&&(r=`/`),l!==`__root__`&&(l=s([`/`,l]));let d=l===`__root__`?`/`:s([this.parentRoute.fullPath,r]);this._path=r,this._id=l,this._fullPath=d,this._to=o(d)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>l({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},g=class{constructor({id:e}){this.notFound=e=>c({routeId:this.id,...e}),this.redirect=e=>l({from:this.id,...e}),this.id=e}},_=class extends h{constructor(e){super(e)}};function v(e){return f({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function y(e){let{select:t,...n}=e;return f({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function b(e){return f({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function x(e){return f({...e,select:t=>e.select?e.select(t.context):t.context})}var S=e(t(),1),C=n();function w(e){return new T({id:e})}var T=class extends g{constructor({id:e}){super({id:e}),this.useMatch=e=>f({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>x({...e,from:this.id}),this.useSearch=e=>p({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>b({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>y({...e,from:this.id,strict:!1}),this.useLoaderData=e=>v({...e,from:this.id,strict:!1}),this.useNavigate=()=>m({from:r().routesById[this.id].fullPath}),this.notFound=e=>c({routeId:this.id,...e}),this.Link=S.forwardRef((e,t)=>{let n=r().routesById[this.id].fullPath;return(0,C.jsx)(d,{ref:t,from:n,...e})})}},E=class extends h{constructor(e){super(e),this.useMatch=e=>f({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>x({...e,from:this.id}),this.useSearch=e=>p({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>b({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>y({...e,from:this.id}),this.useLoaderData=e=>v({...e,from:this.id}),this.useNavigate=()=>m({from:this.fullPath}),this.Link=S.forwardRef((e,t)=>(0,C.jsx)(d,{ref:t,from:this.fullPath,...e}))}};function D(e){return new E(e)}function O(){return e=>A(e)}var k=class extends _{constructor(e){super(e),this.useMatch=e=>f({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>x({...e,from:this.id}),this.useSearch=e=>p({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>b({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>y({...e,from:this.id}),this.useLoaderData=e=>v({...e,from:this.id}),this.useNavigate=()=>m({from:this.fullPath}),this.Link=S.forwardRef((e,t)=>(0,C.jsx)(d,{ref:t,from:this.fullPath,...e}))}};function A(e){return new k(e)}export{D as n,w as r,O as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";import{t as r}from"./useRouter-DtTm7XkK.js";import{n as i}from"./useStore-CupyIEEP.js";import{d as a,f as o,s}from"./ClientOnly-DHd0jlDY.js";import{a as c,n as l,r as u}from"./redirect-DMNGvjzO.js";import{t as d}from"./link-6i3yGmK_.js";import{n as f,t as p}from"./useSearch-Diln-KYh.js";import{t as m}from"./useNavigate-7u4DX0Ho.js";var h=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=u:this.parentRoute||i();let r=n?u:t?.path;r&&r!==`/`&&(r=a(r));let c=t?.id||r,l=n?u:s([this.parentRoute.id===`__root__`?``:this.parentRoute.id,c]);r===`__root__`&&(r=`/`),l!==`__root__`&&(l=s([`/`,l]));let d=l===`__root__`?`/`:s([this.parentRoute.fullPath,r]);this._path=r,this._id=l,this._fullPath=d,this._to=o(d)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>l({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},g=class{constructor({id:e}){this.notFound=e=>c({routeId:this.id,...e}),this.redirect=e=>l({from:this.id,...e}),this.id=e}},_=class extends h{constructor(e){super(e)}};function v(e){return f({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function y(e){let{select:t,...n}=e;return f({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function b(e){return f({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function x(e){return f({...e,select:t=>e.select?e.select(t.context):t.context})}var S=e(t(),1),C=n();function w(e){return new T({id:e})}var T=class extends g{constructor({id:e}){super({id:e}),this.useMatch=e=>f({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>x({...e,from:this.id}),this.useSearch=e=>p({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>b({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>y({...e,from:this.id,strict:!1}),this.useLoaderData=e=>v({...e,from:this.id,strict:!1}),this.useNavigate=()=>m({from:r().routesById[this.id].fullPath}),this.notFound=e=>c({routeId:this.id,...e}),this.Link=S.forwardRef((e,t)=>{let n=r().routesById[this.id].fullPath;return(0,C.jsx)(d,{ref:t,from:n,...e})})}},E=class extends h{constructor(e){super(e),this.useMatch=e=>f({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>x({...e,from:this.id}),this.useSearch=e=>p({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>b({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>y({...e,from:this.id}),this.useLoaderData=e=>v({...e,from:this.id}),this.useNavigate=()=>m({from:this.fullPath}),this.Link=S.forwardRef((e,t)=>(0,C.jsx)(d,{ref:t,from:this.fullPath,...e}))}};function D(e){return new E(e)}function O(){return e=>A(e)}var k=class extends _{constructor(e){super(e),this.useMatch=e=>f({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>x({...e,from:this.id}),this.useSearch=e=>p({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>b({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>y({...e,from:this.id}),this.useLoaderData=e=>v({...e,from:this.id}),this.useNavigate=()=>m({from:this.fullPath}),this.Link=S.forwardRef((e,t)=>(0,C.jsx)(d,{ref:t,from:this.fullPath,...e}))}};function A(e){return new k(e)}export{D as n,w as r,O as t}; \ No newline at end of file diff --git a/src/www/assets/router-Z0tUklFK.js b/src/www/assets/router-xxaOxfVd.js similarity index 77% rename from src/www/assets/router-Z0tUklFK.js rename to src/www/assets/router-xxaOxfVd.js index f9d9603..02d12c6 100644 --- a/src/www/assets/router-Z0tUklFK.js +++ b/src/www/assets/router-xxaOxfVd.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/install-_AmBcHKu.js","assets/chunk-DECur_0Z.js","assets/form-KfFEakes.js","assets/button-C_NDYaz8.js","assets/clsx-D9aGYY3V.js","assets/messages-BOatyqUm.js","assets/react-CO2uhaBc.js","assets/label-DNL0sHKL.js","assets/dist-Cc8_LDAq.js","assets/zod-rwFXxHlg.js","assets/popover-NQZzcPDh.js","assets/dist-CsIb2aLK.js","assets/dist-DPPquN_M.js","assets/dist-D4X8zGEB.js","assets/dist-ZdRQQNeu.js","assets/dist-rcWP-8Cu.js","assets/es2015-DT8UeWzs.js","assets/dist-DvwKOQ8R.js","assets/auth-store-De4Y7PFV.js","assets/dist-JOUh6qvR.js","assets/with-selector-DBfssCrY.js","assets/cookies-BzZOQYPw.js","assets/link-DPnL8P5J.js","assets/ClientOnly-Bj5CESUC.js","assets/useStore-CupyIEEP.js","assets/useRouter-DtTm7XkK.js","assets/command-B_SlhXkX.js","assets/dist-iiotRAEO.js","assets/createLucideIcon-Br0Bd5k2.js","assets/dialog-CZ-2RPb-.js","assets/copy-to-clipboard-C1tj4a8X.js","assets/check-CHp0nSkR.js","assets/chevron-down-BB5h1CsX.js","assets/eye-off-B8hO0oST.js","assets/eye-DAKGLydt.js","assets/theme-switch-CHLQml_8.js","assets/dropdown-menu-DzCIpsuG.js","assets/dist-CHFjpVqk.js","assets/dist-BNFQuJTu.js","assets/dist-D0DoWChj.js","assets/useNavigate-7u4DX0Ho.js","assets/sun-JU8p4FoE.js","assets/theme-provider-BREWrHp_.js","assets/loader-circle-DpEz1fQv.js","assets/shield-check-MAPDL1u8.js","assets/triangle-alert-DB5v_9sS.js","assets/logo-agrtpj2n.js","assets/badge-VJlwwTW5.js","assets/card-DiF5YaRi.js","assets/input-8zzM34r5.js","assets/route-D1gzbhTf.js","assets/Match-DrG03Wse.js","assets/matchContext-BFCdcHzo.js","assets/redirect-DMNGvjzO.js","assets/checkout-model-CQ3aqlob.js","assets/route-GrVEK0V1.js","assets/search-provider-C-_FQI9C.js","assets/dist-CRowTfGU.js","assets/confirm-dialog-D1L-0EhT.js","assets/dist-C5heX0fx.js","assets/dist-BixeH3nX.js","assets/separator-CsUemQNs.js","assets/tooltip-xZuTTfnF.js","assets/dist-Dtn5c_cx.js","assets/skeleton-CmDjDV1O.js","assets/wallet-CtiawGS1.js","assets/font-provider-BPsIRWbb.js","assets/Matches-9qnXJNrS.js","assets/atom-DQpaPCwp.js","assets/chevrons-up-down-BPquKoYJ.js","assets/send-BNvceEpO.js","assets/route-CAiA_U_q.js","assets/auth-animation-context-CmPA3sF3.js","assets/dashboard-C_GaAVh0.js","assets/tabs-6Ep1KePr.js","assets/data-table-1LQSBhN2.js","assets/select-CzebumOF.js","assets/empty-state-CxE4wU3V.js","assets/table-9UOy2Vxt.js","assets/epusdt-BvGYu9TV.js","assets/main-C1R3Hvq1.js","assets/header-DVAsq5d6.js","assets/crypto-icon-DnliVYVs.js","assets/page-header-GTtyZFBB.js","assets/503-DqC0HW48.js","assets/maintenance-error-DeZhljU8.js","assets/500-Ch8AmacC.js","assets/general-error-BoAB2alm.js","assets/404-pq4P7jD8.js","assets/not-found-error-BvJzTnw0.js","assets/403-DfLmRqHM.js","assets/forbidden-CgQyYxDt.js","assets/401-CvFvdOr5.js","assets/unauthorized-error-CtrGmVOn.js","assets/sign-in-_ux3l1kN.js","assets/useSearch-Diln-KYh.js","assets/password-input-95hMTMdh.js","assets/route-C6USHQDN.js","assets/sidebar-nav-LZqaVZGH.js","assets/useRouterState-B2FPPjEe.js","assets/route-DvJeidrw.js","assets/route-lp7ScXTd.js","assets/settings-eRG1_Yuf.js","assets/lib-DDezYSnW.js","assets/rpc-D7fjJcmI.js","assets/checkbox-CTHgcB3t.js","assets/switch-CgoJjvdz.js","assets/route-wzPKSRj2.js","assets/arrow-left-BpZwGREZ.js","assets/ellipsis-74ly4-Wm.js","assets/chains-store-DCzO87jZ.js","assets/trash-2-9I8lAjeE.js","assets/long-text-DNqlDi0R.js","assets/use-table-url-state-DP0Y4QjR.js","assets/payment-setup-BFIKIu1u.js","assets/labels-Cbc2zlmv.js","assets/orders-oloW11KP.js","assets/download-fYUtNZ3R.js","assets/coming-soon-dialog-B34F88bO.js","assets/telescope-DU0wiTDw.js","assets/keys-D0eVvlbn.js","assets/textarea-C8ejjLzk.js","assets/help-Bq6Uj7UY.js","assets/chains-BMgOL_QE.js","assets/addresses-lQocmp_u.js","assets/telegram-Br_DijOI.js","assets/system-CzKDOsCg.js","assets/pay-BNu4n_oI.js","assets/preload-helper-DoS0eHac.js","assets/arrow-left-right-CcCrkQiR.js","assets/okpay-D5pTA_4W.js","assets/notifications-xdKOW8nn.js","assets/radio-group-D2rceepu.js","assets/show-submitted-data-BqZb-_Pf.js","assets/epay-BPdlNSqh.js","assets/display-CqGwMVHS.js","assets/appearance-Cl8fvRSv.js","assets/integrations-Clnk2I57.js","assets/password-DElKXGVw.js"])))=>i.map(i=>d[i]); -import{r as e}from"./chunk-DECur_0Z.js";import{A as t,C as n,D as r,E as i,O as a,S as o,T as s,_ as c,b as l,g as u,h as d,k as f,t as p,v as m,w as h,x as g,y as _}from"./auth-store-De4Y7PFV.js";import{t as v}from"./react-CO2uhaBc.js";import{tm as y}from"./messages-BOatyqUm.js";import{n as b}from"./redirect-DMNGvjzO.js";import{n as x,o as S}from"./Match-DrG03Wse.js";import{t as C}from"./route-wzPKSRj2.js";import{n as w,t as T}from"./atom-DQpaPCwp.js";import{n as E,t as D}from"./lazyRouteComponent-JF8ipq5d.js";import{t as O}from"./useRouterState-B2FPPjEe.js";import{n as ee}from"./wallet-CtiawGS1.js";import{t as k}from"./preload-helper-DoS0eHac.js";import{t as A}from"./createLucideIcon-Br0Bd5k2.js";import{a as te,n as j,t as M}from"./epusdt-BvGYu9TV.js";import{t as ne}from"./loader-circle-DpEz1fQv.js";import{t as re}from"./triangle-alert-DB5v_9sS.js";import{t as ie}from"./dist-JOUh6qvR.js";import{t as ae}from"./general-error-BoAB2alm.js";import{t as oe}from"./not-found-error-BvJzTnw0.js";import{c as se,s as ce,t as N}from"./zod-rwFXxHlg.js";import{t as le}from"./_trade_id-DIf2n6tl.js";import{t as ue}from"./_error-CtV7sHbI.js";var de=class extends t{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new d({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=P(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=P(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=P(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=P(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){_.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>n(t,e))}findAll(e={}){return this.getAll().filter(t=>n(e,t))}notify(e){_.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return _.batch(()=>Promise.all(e.map(e=>e.continue().catch(s))))}};function P(e){return e.options.scope?.id}var fe=class extends t{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??o(r,t),a=this.get(i);return a||(a=new c({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){_.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>h(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>h(e,t)):t}notify(e){_.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){_.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){_.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},F=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new fe,this.#t=e.mutationCache||new de,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=f.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=m.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),i=n.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(r(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=l(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return _.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;_.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return _.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=_.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(s).catch(s)}invalidateQueries(e,t={}){return _.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=_.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(s)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(s)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(r(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(s).catch(s)}fetchInfiniteQuery(e){return e.behavior=u(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(s).catch(s)}ensureInfiniteQueryData(e){return e.behavior=u(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return m.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(g(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{i(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(g(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{i(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=o(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===a&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},I=e=>({createMutableStore:w,createReadonlyStore:w,batch:T}),L=e=>new R(e),R=class extends S{constructor(e){super(e,I)}},z=e(v(),1),B=()=>{};function V(e,t,n){let r=(0,z.useRef)(B);(0,z.useEffect)(()=>{r.current=e}),(0,z.useEffect)(()=>{},[n]),(0,z.useEffect)(()=>{if(t===null||t===!1)return;let e=setInterval(()=>r.current(),t);return()=>clearInterval(e)},[t])}function H(e,t){return Math.random()*(t-e+1)+e}function U(e,t){return Math.floor(H(e,t))}var pe=(0,z.forwardRef)(({progress:e,height:t=2,className:n=``,color:r=`red`,background:i=`transparent`,onLoaderFinished:a,transitionTime:o=300,loaderSpeed:s=500,waitingTime:c=1e3,shadow:l=!0,containerStyle:u={},style:d={},shadowStyle:f={},containerClassName:p=``},m)=>{let h=(0,z.useRef)(!1),[g,_]=(0,z.useState)(0),v=(0,z.useRef)({active:!1,refreshRate:1e3}),[y,b]=(0,z.useState)({active:!1,value:60}),x={height:`100%`,background:r,transition:`all ${s}ms ease`,width:`0%`},S={position:`fixed`,top:0,left:0,height:t,background:i,zIndex:99999999999,width:`100%`},C={boxShadow:`0 0 10px ${r}, 0 0 10px ${r}`,width:`5%`,opacity:1,position:`absolute`,height:`100%`,transition:`all ${s}ms ease`,transform:`rotate(2deg) translate(0px, -2px)`,left:`-10rem`},[w,T]=(0,z.useState)(x),[E,D]=(0,z.useState)(C);(0,z.useEffect)(()=>(h.current=!0,()=>{h.current=!1}),[]),(0,z.useImperativeHandle)(m,()=>({continuousStart(t,n=1e3){if(y.active)return;if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}let r=t||U(10,20);v.current={active:!0,refreshRate:n},_(r),O(r)},staticStart(t){if(v.current.active)return;if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}let n=t||U(30,60);b({active:!0,value:n}),_(n),O(n)},start(t=`continuous`,n,r){if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}t===`continuous`?v.current={active:!0,refreshRate:r||1e3}:b({active:!0,value:n||20});let i=U(10,20),a=U(30,70),o=n||(t===`continuous`?i:a);_(o),O(o)},complete(){if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}_(100),O(100)},increase(t){if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}_(e=>{let n=e+t;return O(n),n})},decrease(t){if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}_(e=>{let n=e-t;return O(n),n})},getProgress(){return g}})),(0,z.useEffect)(()=>{T({...w,background:r}),D({...E,boxShadow:`0 0 10px ${r}, 0 0 5px ${r}`})},[r]),(0,z.useEffect)(()=>{if(m){if(m&&e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar! Please use only props or only ref methods! Ref methods will override props if "ref" property is available.`);return}O(g)}else e&&O(e)},[e]);let O=e=>{e>=100?(T({...w,width:`100%`}),l&&D({...E,left:e-10+`%`}),setTimeout(()=>{h.current&&(T({...w,opacity:0,width:`100%`,transition:`all ${o}ms ease-out`,color:r}),setTimeout(()=>{h.current&&(v.current.active&&(v.current={...v.current,active:!1},_(0),O(0)),y.active&&(b({...y,active:!1}),_(0),O(0)),a&&a(),_(0),O(0))},o))},c)):(T(t=>({...t,width:e+`%`,opacity:1,transition:e>0?`all ${s}ms ease`:``})),l&&D({...E,left:e-5.5+`%`,transition:e>0?`all ${s}ms ease`:``}))};return V(()=>{let e=H(Math.min(10,(100-g)/5),Math.min(20,(100-g)/3));g+e<95&&(_(g+e),O(g+e))},v.current.active?v.current.refreshRate:null),z.createElement(`div`,{className:p,style:{...S,...u}},z.createElement(`div`,{className:n,style:{...w,...d}},l?z.createElement(`div`,{style:{...E,...f}}):null))});z.createContext(void 0);var W=y();function me(){let e=(0,z.useRef)(null),t=O();return(0,z.useEffect)(()=>{t.status===`pending`?e.current?.continuousStart():e.current?.complete()},[t.status]),(0,W.jsx)(pe,{color:`var(--primary)`,height:2,ref:e,shadow:!0})}var he=A(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),ge=A(`octagon-x`,[[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z`,key:`2d38gg`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),_e=(e,t,n,r,i,a,o,s)=>{let c=document.documentElement,l=[`light`,`dark`];function u(t){(Array.isArray(e)?e:[e]).forEach(e=>{let n=e===`class`,r=n&&a?i.map(e=>a[e]||e):i;n?(c.classList.remove(...r),c.classList.add(a&&a[t]?a[t]:t)):c.setAttribute(e,t)}),d(t)}function d(e){s&&l.includes(e)&&(c.style.colorScheme=e)}function f(){return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}if(r)u(r);else try{let e=localStorage.getItem(t)||n;u(o&&e===`system`?f():e)}catch{}},ve=z.createContext(void 0),ye={setTheme:e=>{},themes:[]},be=()=>z.useContext(ve)??ye;z.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:a,value:o,themes:s,nonce:c,scriptProps:l})=>{let u=JSON.stringify([n,t,a,e,s,o,r,i]).slice(1,-1);return z.createElement(`script`,{...l,suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(${_e.toString()})(${u})`}})});var xe=({...e})=>{let{theme:t=`system`}=be();return(0,W.jsx)(ie,{richColors:!0,className:`toaster group`,icons:{success:(0,W.jsx)(ee,{className:`size-4`}),info:(0,W.jsx)(he,{className:`size-4`}),warning:(0,W.jsx)(re,{className:`size-4`}),error:(0,W.jsx)(ge,{className:`size-4`}),loading:(0,W.jsx)(ne,{className:`size-4 animate-spin`})},style:{"--normal-bg":`var(--popover)`,"--normal-text":`var(--popover-foreground)`,"--normal-border":`var(--border)`,"--border-radius":`var(--radius)`},theme:t,...e})};function Se(){return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(me,{}),(0,W.jsx)(x,{}),(0,W.jsx)(xe,{duration:5e3,position:`top-right`})]})}var G=C()({component:Se,notFoundComponent:oe,errorComponent:ae}),Ce=E(`/install`)({component:D(()=>k(()=>import(`./install-_AmBcHKu.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49])),`component`)}),we=E(`/cashier`)({component:D(()=>k(()=>import(`./route-D1gzbhTf.js`),__vite__mapDeps([50,1,3,4,5,6,51,23,24,20,52,25,53,18,19,8,21,28,35,36,11,12,13,14,37,38,15,16,17,39,31,40,41,42,54])),`component`)}),Te=E(`/_authenticated`)({beforeLoad:({location:e})=>{if(!p.state.accessToken)throw b({to:`/sign-in`,search:{redirect:e.href},replace:!0})},component:D(()=>k(()=>import(`./route-GrVEK0V1.js`),__vite__mapDeps([55,1,12,5,6,56,57,58,3,4,27,15,13,8,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,36,31,51,23,52,53,67,68,22,69,70,47])),`component`)}),Ee=E(`/(auth)`)({component:D(()=>k(()=>import(`./route-CAiA_U_q.js`),__vite__mapDeps([71,1,3,4,5,6,51,23,24,20,52,25,53,35,36,11,12,13,8,14,37,38,15,16,17,39,31,28,40,41,42,21,46,72])),`component`)}),De=E(`/`)({beforeLoad:()=>{throw b({to:p.state.accessToken?`/dashboard`:`/sign-in`,replace:!0})},component:D(()=>k(()=>import(`./routes-D7HD5c-e.js`),[]),`component`)}),Oe=E(`/_authenticated/dashboard`)({component:D(()=>k(()=>import(`./dashboard-C_GaAVh0.js`),__vite__mapDeps([73,1,56,57,12,5,6,58,3,4,27,15,13,8,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,10,74,75,36,31,76,32,69,33,77,47,78,79,80,22,23,35,81,45,82,83,48])),`component`)}),ke=E(`/(errors)/503`)({component:D(()=>k(()=>import(`./503-DqC0HW48.js`),__vite__mapDeps([84,85,3,1,4,5,6])),`component`)}),Ae=E(`/(errors)/500`)({component:D(()=>k(()=>import(`./500-Ch8AmacC.js`),__vite__mapDeps([86,87,3,1,4,5,6,25,40])),`component`)}),je=E(`/(errors)/404`)({component:D(()=>k(()=>import(`./404-pq4P7jD8.js`),__vite__mapDeps([88,89,3,1,4,5,6,25,40])),`component`)}),Me=E(`/(errors)/403`)({component:D(()=>k(()=>import(`./403-DfLmRqHM.js`),__vite__mapDeps([90,91,3,1,4,5,6,25,40])),`component`)}),Ne=E(`/(errors)/401`)({component:D(()=>k(()=>import(`./401-CvFvdOr5.js`),__vite__mapDeps([92,93,3,1,4,5,6,25,40])),`component`)}),Pe=()=>k(()=>import(`./sign-in-_ux3l1kN.js`),__vite__mapDeps([94,1,2,3,4,5,6,7,8,9,58,12,27,15,13,16,17,18,19,20,21,95,52,25,24,40,28,43,96,33,34,49,72])),Fe=ce({redirect:se().optional()}),Ie=E(`/(auth)/sign-in`)({component:D(Pe,`component`),validateSearch:Fe}),Le=E(`/_authenticated/settings`)({component:D(()=>k(()=>import(`./route-C6USHQDN.js`),__vite__mapDeps([97,56,1,57,12,5,6,58,3,4,27,15,13,8,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,51,23,52,53,80,36,31,22,35,81,83,98,76,32,99])),`component`)}),Re=E(`/_authenticated/payment-setup`)({component:D(()=>k(()=>import(`./route-DvJeidrw.js`),__vite__mapDeps([100,56,1,57,12,5,6,58,3,4,27,15,13,8,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,51,23,52,53,80,36,31,22,35,81,83,98,76,32,99])),`component`)}),ze=E(`/_authenticated/account`)({component:D(()=>k(()=>import(`./route-lp7ScXTd.js`),__vite__mapDeps([101,56,1,57,12,5,6,58,3,4,27,15,13,8,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,51,23,52,53,80,36,31,22,35,81,83,98,76,32,99])),`component`)}),Be=E(`/_authenticated/settings/`)({component:D(()=>k(()=>import(`./settings-eRG1_Yuf.js`),__vite__mapDeps([102,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,83,61,49,103,18,19,20,21])),`component`)}),Ve=()=>k(()=>import(`./rpc-D7fjJcmI.js`),__vite__mapDeps([104,1,2,3,4,5,6,7,8,9,56,57,12,58,27,15,13,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,105,31,36,76,32,106,107,23,22,95,52,53,75,10,69,33,77,47,78,108,109,80,35,81,110,111,112,83,113])),He=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10),enabled:N.array(N.enum(j.map(e=>e.value))).optional().catch([]),type:N.array(N.string()).optional().catch([]),status:N.array(N.enum([`ok`,`down`,`unknown`])).optional().catch([]),keyword:N.string().optional().catch(``)}),Ue=E(`/_authenticated/rpc/`)({validateSearch:He,component:D(Ve,`component`)}),We=()=>k(()=>import(`./payment-setup-BFIKIu1u.js`),__vite__mapDeps([114,1,3,4,5,6,18,19,8,20,21,107,23,24,22,25,95,52,40,53,75,36,11,12,13,14,37,38,15,16,17,39,31,28,10,76,57,60,63,32,61,62,26,27,29,64,69,33,77,47,49,78,115,82,113])),Ge=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10),status:N.enum([`enabled`,`disabled`]).array().optional().catch([]),chain:N.array(N.string()).optional().catch([]),keyword:N.string().optional().catch(``)}),Ke=E(`/_authenticated/payment-setup/`)({validateSearch:Ge,component:D(We,`component`)}),qe=()=>k(()=>import(`./orders-oloW11KP.js`),__vite__mapDeps([116,1,58,12,5,6,3,4,27,15,13,8,16,17,56,57,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,36,31,7,107,23,22,95,52,53,75,10,76,32,69,33,77,47,78,79,117,109,34,80,35,81,118,119,112,83,113])),Je=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10),status:N.array(N.enum(te.map(e=>e.value))).optional().catch([]),chain:N.array(N.string()).optional().catch([]),orderNo:N.string().optional().catch(``)}),Ye=E(`/_authenticated/orders/`)({validateSearch:Je,component:D(qe,`component`)}),Xe=()=>k(()=>import(`./keys-D0eVvlbn.js`),__vite__mapDeps([120,1,2,3,4,5,6,7,8,9,58,12,27,15,13,16,17,56,57,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,76,31,32,106,107,23,22,95,52,53,30,33,34,77,80,36,35,81,111,83,47,121])),Ze=N.object({type:N.enum([`all`,`enabled`,`disabled`]).optional().catch(void 0),filter:N.string().optional().catch(``),sort:N.enum([`asc`,`desc`]).optional().catch(void 0)}),Qe=E(`/_authenticated/keys/`)({validateSearch:Ze,component:D(Xe,`component`)}),$e=E(`/_authenticated/help/`)({component:D(()=>k(()=>import(`./help-Bq6Uj7UY.js`),__vite__mapDeps([122,119,28,1,6,5])),`component`)}),et=()=>k(()=>import(`./chains-BMgOL_QE.js`),__vite__mapDeps([123,1,2,3,4,5,6,7,8,9,56,57,12,58,27,15,13,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,105,31,36,76,32,106,75,10,69,33,77,47,78,108,109,80,22,23,35,81,110,111,118,119,83])),tt=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10),status:N.array(N.enum(j.map(e=>e.value))).optional().catch([]),keyword:N.string().optional().catch(``)}),nt=E(`/_authenticated/chains/`)({validateSearch:tt,component:D(et,`component`)}),rt=()=>k(()=>import(`./addresses-lQocmp_u.js`),__vite__mapDeps([124,1,2,3,4,5,6,7,8,9,58,12,27,15,13,16,17,56,57,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,36,31,76,32,106,107,23,22,95,52,53,75,10,69,33,77,47,78,79,117,109,34,80,35,81,110,111,112,83,121,113])),it=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10),status:N.array(N.enum(M.map(e=>e.value))).optional().catch([]),chain:N.array(N.string()).optional().catch([]),address:N.string().optional().catch(``)}),at=E(`/_authenticated/addresses/`)({validateSearch:it,component:D(rt,`component`)}),ot=E(`/_authenticated/account/`)({beforeLoad:()=>{throw b({to:`/account/password`,replace:!0})}}),st=E(`/_authenticated/settings/telegram`)({component:D(()=>k(()=>import(`./telegram-Br_DijOI.js`),__vite__mapDeps([125,1,2,3,4,5,6,7,8,9,106,12,60,14,83,61,49,103,18,19,20,21])),`component`)}),ct=E(`/_authenticated/settings/system`)({component:D(()=>k(()=>import(`./system-CzKDOsCg.js`),__vite__mapDeps([126,1,2,3,4,5,6,7,8,9,76,11,12,13,14,57,37,38,15,16,60,63,28,31,32,83,61,103,18,19,20,21])),`component`)}),lt=E(`/_authenticated/settings/pay`)({component:D(()=>k(()=>import(`./pay-BNu4n_oI.js`),__vite__mapDeps([127,1,128,2,3,4,5,6,7,8,9,129,28,83,61,49,78,103,18,19,20,21])),`component`)}),ut=E(`/_authenticated/settings/okpay`)({component:D(()=>k(()=>import(`./okpay-D5pTA_4W.js`),__vite__mapDeps([130,1,2,3,4,5,6,7,8,9,106,12,60,14,96,33,28,34,49,83,61,103,18,19,20,21])),`component`)}),dt=E(`/_authenticated/settings/notifications`)({component:D(()=>k(()=>import(`./notifications-xdKOW8nn.js`),__vite__mapDeps([131,2,1,3,4,5,6,7,8,9,105,12,17,60,14,31,28,106,22,23,24,20,25,132,59,38,39,37,13,83,61,133,19])),`component`)}),ft=E(`/_authenticated/settings/epay`)({component:D(()=>k(()=>import(`./epay-BPdlNSqh.js`),__vite__mapDeps([134,1,2,3,4,5,6,7,8,9,76,11,12,13,14,57,37,38,15,16,60,63,28,31,32,18,19,20,21,115,82,83,61,49,103])),`component`)}),pt=E(`/_authenticated/settings/display`)({component:D(()=>k(()=>import(`./display-CqGwMVHS.js`),__vite__mapDeps([135,2,1,3,4,5,6,7,8,9,105,12,17,60,14,31,28,83,61,133,19])),`component`)}),mt=E(`/_authenticated/settings/appearance`)({component:D(()=>k(()=>import(`./appearance-Cl8fvRSv.js`),__vite__mapDeps([136,2,1,3,4,5,6,7,8,9,32,28,132,59,12,38,17,39,37,13,60,14,83,61,66,21,42,133,19])),`component`)}),ht=()=>k(()=>import(`./integrations-Clnk2I57.js`),__vite__mapDeps([137,1,107,23,24,6,20,5,22,8,3,4,25,95,52,40,53,75,36,11,12,13,14,37,38,15,16,17,39,31,28,10,76,57,60,63,32,61,62,26,27,29,64,69,33,77,47,49,78,113])),gt=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10)}),_t=E(`/_authenticated/payment-setup/integrations`)({validateSearch:gt,component:D(ht,`component`)}),vt=E(`/_authenticated/account/password`)({component:D(()=>k(()=>import(`./password-DElKXGVw.js`),__vite__mapDeps([138,2,1,3,4,5,6,7,8,9,18,19,20,21,96,33,28,34,49,83,61])),`component`)}),yt=Ce.update({id:`/install`,path:`/install`,getParentRoute:()=>G}),K=we.update({id:`/cashier`,path:`/cashier`,getParentRoute:()=>G}),q=Te.update({id:`/_authenticated`,getParentRoute:()=>G}),J=Ee.update({id:`/(auth)`,getParentRoute:()=>G}),bt=De.update({id:`/`,path:`/`,getParentRoute:()=>G}),xt=Oe.update({id:`/dashboard`,path:`/dashboard`,getParentRoute:()=>q}),St=ke.update({id:`/(errors)/503`,path:`/503`,getParentRoute:()=>G}),Ct=Ae.update({id:`/(errors)/500`,path:`/500`,getParentRoute:()=>G}),wt=je.update({id:`/(errors)/404`,path:`/404`,getParentRoute:()=>G}),Tt=Me.update({id:`/(errors)/403`,path:`/403`,getParentRoute:()=>G}),Et=Ne.update({id:`/(errors)/401`,path:`/401`,getParentRoute:()=>G}),Dt=Ie.update({id:`/sign-in`,path:`/sign-in`,getParentRoute:()=>J}),Y=Le.update({id:`/settings`,path:`/settings`,getParentRoute:()=>q}),X=Re.update({id:`/payment-setup`,path:`/payment-setup`,getParentRoute:()=>q}),Z=ze.update({id:`/account`,path:`/account`,getParentRoute:()=>q}),Ot=le.update({id:`/$trade_id/`,path:`/$trade_id/`,getParentRoute:()=>K}),kt=Be.update({id:`/`,path:`/`,getParentRoute:()=>Y}),At=Ue.update({id:`/rpc/`,path:`/rpc/`,getParentRoute:()=>q}),jt=Ke.update({id:`/`,path:`/`,getParentRoute:()=>X}),Mt=Ye.update({id:`/orders/`,path:`/orders/`,getParentRoute:()=>q}),Nt=Qe.update({id:`/keys/`,path:`/keys/`,getParentRoute:()=>q}),Pt=$e.update({id:`/help/`,path:`/help/`,getParentRoute:()=>q}),Ft=nt.update({id:`/chains/`,path:`/chains/`,getParentRoute:()=>q}),It=at.update({id:`/addresses/`,path:`/addresses/`,getParentRoute:()=>q}),Lt=ot.update({id:`/`,path:`/`,getParentRoute:()=>Z}),Rt=st.update({id:`/telegram`,path:`/telegram`,getParentRoute:()=>Y}),zt=ct.update({id:`/system`,path:`/system`,getParentRoute:()=>Y}),Bt=lt.update({id:`/pay`,path:`/pay`,getParentRoute:()=>Y}),Vt=ut.update({id:`/okpay`,path:`/okpay`,getParentRoute:()=>Y}),Ht=dt.update({id:`/notifications`,path:`/notifications`,getParentRoute:()=>Y}),Ut=ft.update({id:`/epay`,path:`/epay`,getParentRoute:()=>Y}),Wt=pt.update({id:`/display`,path:`/display`,getParentRoute:()=>Y}),Gt=mt.update({id:`/appearance`,path:`/appearance`,getParentRoute:()=>Y}),Kt=_t.update({id:`/integrations`,path:`/integrations`,getParentRoute:()=>X}),qt=ue.update({id:`/errors/$error`,path:`/errors/$error`,getParentRoute:()=>q}),Jt=vt.update({id:`/password`,path:`/password`,getParentRoute:()=>Z}),Q={authSignInRoute:Dt},Yt=J._addFileChildren(Q),Xt={AuthenticatedAccountPasswordRoute:Jt,AuthenticatedAccountIndexRoute:Lt},Zt=Z._addFileChildren(Xt),Qt={AuthenticatedPaymentSetupIntegrationsRoute:Kt,AuthenticatedPaymentSetupIndexRoute:jt},$t=X._addFileChildren(Qt),en={AuthenticatedSettingsAppearanceRoute:Gt,AuthenticatedSettingsDisplayRoute:Wt,AuthenticatedSettingsEpayRoute:Ut,AuthenticatedSettingsNotificationsRoute:Ht,AuthenticatedSettingsOkpayRoute:Vt,AuthenticatedSettingsPayRoute:Bt,AuthenticatedSettingsSystemRoute:zt,AuthenticatedSettingsTelegramRoute:Rt,AuthenticatedSettingsIndexRoute:kt},tn={AuthenticatedAccountRouteRoute:Zt,AuthenticatedPaymentSetupRouteRoute:$t,AuthenticatedSettingsRouteRoute:Y._addFileChildren(en),AuthenticatedDashboardRoute:xt,AuthenticatedErrorsErrorRoute:qt,AuthenticatedAddressesIndexRoute:It,AuthenticatedChainsIndexRoute:Ft,AuthenticatedHelpIndexRoute:Pt,AuthenticatedKeysIndexRoute:Nt,AuthenticatedOrdersIndexRoute:Mt,AuthenticatedRpcIndexRoute:At},nn=q._addFileChildren(tn),rn={CashierTrade_idIndexRoute:Ot},an={IndexRoute:bt,authRouteRoute:Yt,AuthenticatedRouteRoute:nn,CashierRouteRoute:K._addFileChildren(rn),InstallRoute:yt,errors401Route:Et,errors403Route:Tt,errors404Route:wt,errors500Route:Ct,errors503Route:St},on=G._addFileChildren(an)._addFileTypes(),$=new F({defaultOptions:{queries:{retry:(e,t)=>{if(e>3)return!1;if(typeof t==`object`&&t&&`status`in t){let e=t.status;if(e===401||e===403)return!1}return!0},refetchOnWindowFocus:!0,staleTime:10*1e3}}}),sn=L({routeTree:on,context:{queryClient:$},scrollRestoration:!0,defaultPreload:`intent`,defaultPreloadStaleTime:0});export{sn as n,$ as t}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/install-Dx6W4swz.js","assets/chunk-DECur_0Z.js","assets/form-C_YekIvK.js","assets/button-NLSeBFht.js","assets/clsx-D9aGYY3V.js","assets/messages-CL4J6BaJ.js","assets/react-CO2uhaBc.js","assets/label-DohxFN8a.js","assets/dist-D3WFT-Yo.js","assets/zod-rwFXxHlg.js","assets/popover-Y5WNf1yM.js","assets/dist-DB-jLX48.js","assets/dist-DmeeHi7K.js","assets/dist-SR6sl-WU.js","assets/dist-B0pRVbY9.js","assets/dist-esC74fSg.js","assets/es2015-3J9GnV9P.js","assets/dist-BZMqLvO-.js","assets/auth-store-8ocF_FHU.js","assets/dist-Dd-sCJIt.js","assets/with-selector-DBfssCrY.js","assets/cookies-BzZOQYPw.js","assets/link-6i3yGmK_.js","assets/ClientOnly-DHd0jlDY.js","assets/useStore-CupyIEEP.js","assets/useRouter-DtTm7XkK.js","assets/command-vy8966UO.js","assets/dist-DPYswSIO.js","assets/createLucideIcon-Br0Bd5k2.js","assets/dialog-CtyiwzAl.js","assets/copy-to-clipboard-C1tj4a8X.js","assets/check-CHp0nSkR.js","assets/chevron-down-BB5h1CsX.js","assets/eye-off-B8hO0oST.js","assets/eye-DAKGLydt.js","assets/theme-switch-CdEcHkcU.js","assets/dropdown-menu-D72UcvWG.js","assets/dist-UaPzzPYf.js","assets/dist-CGRahgI2.js","assets/dist-DhcQhr4B.js","assets/useNavigate-7u4DX0Ho.js","assets/sun-JU8p4FoE.js","assets/theme-provider-ixHkEVGI.js","assets/loader-circle-DpEz1fQv.js","assets/shield-check-MAPDL1u8.js","assets/triangle-alert-DB5v_9sS.js","assets/logo-CBibDHP9.js","assets/badge-BRKB3301.js","assets/card-wpWrYqj9.js","assets/input-DAqep8ZY.js","assets/route-B4K1KfXt.js","assets/Match-onTP_fNL.js","assets/matchContext-BFCdcHzo.js","assets/redirect-DMNGvjzO.js","assets/checkout-model-CQ3aqlob.js","assets/route-CyGJTo_g.js","assets/search-provider-CTRbHqNx.js","assets/dist-CRowTfGU.js","assets/confirm-dialog-Crc1Jrzv.js","assets/dist-DA1qWiix.js","assets/dist-BixeH3nX.js","assets/separator-CqhQIQ-B.js","assets/tooltip-QxnX5RKP.js","assets/dist-CjidLXaw.js","assets/skeleton-B4TLI5_E.js","assets/wallet-Cdhl16hF.js","assets/font-provider-C4_iupSb.js","assets/Matches-CiQgu9ui.js","assets/atom-DQpaPCwp.js","assets/chevrons-up-down-BPquKoYJ.js","assets/send-BNvceEpO.js","assets/route-DcIGa4_b.js","assets/auth-animation-context-Cac9Wtyr.js","assets/dashboard-CicUP9sI.js","assets/tabs-DDe7sXIW.js","assets/data-table-DC6T69tr.js","assets/select-D2uO5-De.js","assets/empty-state-BtKoq2f4.js","assets/table-DgARtYSu.js","assets/epusdt-DDJlVqbb.js","assets/main-CTY49s_f.js","assets/header-vUJd_CA5.js","assets/crypto-icon-BPgcAvNF.js","assets/page-header-B7O10aw9.js","assets/503-BF-pGOH4.js","assets/maintenance-error-lgcDljP-.js","assets/500-CK1ovRtb.js","assets/general-error-Drsf0vjz.js","assets/404-Dw3fTvCr.js","assets/not-found-error-D4F_Uu-C.js","assets/403-CHgXHRv0.js","assets/forbidden-BCyOYrFV.js","assets/401-QZok9O_U.js","assets/unauthorized-error-TaUhj35c.js","assets/sign-in-C8pEQ7cD.js","assets/useSearch-Diln-KYh.js","assets/password-input-D9YsRteD.js","assets/route-DJLBMX6x.js","assets/sidebar-nav-CrEhVF-o.js","assets/useRouterState-B2FPPjEe.js","assets/route-DYctbiZb.js","assets/route-BfeN1Yu9.js","assets/settings-DskxyKWx.js","assets/lib-Ku8Lh36m.js","assets/rpc-FxQRMB98.js","assets/checkbox-DcRUgRHr.js","assets/switch-BST3z-JX.js","assets/route-gtb8yu3E.js","assets/arrow-left-BpZwGREZ.js","assets/ellipsis-74ly4-Wm.js","assets/chains-store-CMJvgCLb.js","assets/trash-2-9I8lAjeE.js","assets/long-text-COpCfVI1.js","assets/use-table-url-state-DP0Y4QjR.js","assets/payment-setup-CnYyeayi.js","assets/labels-CQIGkPR0.js","assets/orders-BVHCgRn-.js","assets/download-fYUtNZ3R.js","assets/coming-soon-dialog-CN8U5tTP.js","assets/telescope-DU0wiTDw.js","assets/keys-CMptb3PN.js","assets/textarea-G_CiBcLa.js","assets/help-CuVF-_N9.js","assets/chains-CeMUj04i.js","assets/addresses-CHUp3WnH.js","assets/telegram-D-IQd24v.js","assets/system-UzoEfe2L.js","assets/pay-B10TXgVj.js","assets/preload-helper-DoS0eHac.js","assets/arrow-left-right-CcCrkQiR.js","assets/okpay-D8DSnOJb.js","assets/notifications-ugCUkcwq.js","assets/radio-group-yaBPIkVa.js","assets/show-submitted-data-DwaVTW9K.js","assets/epay-CMHO4eMB.js","assets/display-Zi7WWfTl.js","assets/appearance-vgBRUuwE.js","assets/integrations-vDkEDNxG.js","assets/password-CAMOij5G.js"])))=>i.map(i=>d[i]); +import{r as e}from"./chunk-DECur_0Z.js";import{A as t,C as n,D as r,E as i,O as a,S as o,T as s,_ as c,b as l,g as u,h as d,k as f,t as p,v as m,w as h,x as g,y as _}from"./auth-store-8ocF_FHU.js";import{t as v}from"./react-CO2uhaBc.js";import{tm as y}from"./messages-CL4J6BaJ.js";import{n as b}from"./redirect-DMNGvjzO.js";import{n as x,o as S}from"./Match-onTP_fNL.js";import{t as C}from"./route-gtb8yu3E.js";import{n as w,t as T}from"./atom-DQpaPCwp.js";import{n as E,t as D}from"./lazyRouteComponent-CleTUoKA.js";import{t as O}from"./useRouterState-B2FPPjEe.js";import{n as ee}from"./wallet-Cdhl16hF.js";import{t as k}from"./preload-helper-DoS0eHac.js";import{t as A}from"./createLucideIcon-Br0Bd5k2.js";import{a as te,n as j,t as M}from"./epusdt-DDJlVqbb.js";import{t as ne}from"./loader-circle-DpEz1fQv.js";import{t as re}from"./triangle-alert-DB5v_9sS.js";import{t as ie}from"./dist-Dd-sCJIt.js";import{t as ae}from"./general-error-Drsf0vjz.js";import{t as oe}from"./not-found-error-D4F_Uu-C.js";import{c as se,s as ce,t as N}from"./zod-rwFXxHlg.js";import{t as le}from"./_trade_id-CdBtzygm.js";import{t as ue}from"./_error-DypydLD1.js";var de=class extends t{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new d({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=P(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=P(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=P(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=P(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){_.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>n(t,e))}findAll(e={}){return this.getAll().filter(t=>n(e,t))}notify(e){_.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return _.batch(()=>Promise.all(e.map(e=>e.continue().catch(s))))}};function P(e){return e.options.scope?.id}var fe=class extends t{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??o(r,t),a=this.get(i);return a||(a=new c({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){_.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>h(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>h(e,t)):t}notify(e){_.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){_.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){_.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},F=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new fe,this.#t=e.mutationCache||new de,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=f.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=m.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),i=n.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(r(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=l(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return _.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;_.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return _.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=_.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(s).catch(s)}invalidateQueries(e,t={}){return _.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=_.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(s)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(s)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(r(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(s).catch(s)}fetchInfiniteQuery(e){return e.behavior=u(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(s).catch(s)}ensureInfiniteQueryData(e){return e.behavior=u(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return m.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(g(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{i(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(g(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{i(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=o(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===a&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},I=e=>({createMutableStore:w,createReadonlyStore:w,batch:T}),L=e=>new R(e),R=class extends S{constructor(e){super(e,I)}},z=e(v(),1),B=()=>{};function V(e,t,n){let r=(0,z.useRef)(B);(0,z.useEffect)(()=>{r.current=e}),(0,z.useEffect)(()=>{},[n]),(0,z.useEffect)(()=>{if(t===null||t===!1)return;let e=setInterval(()=>r.current(),t);return()=>clearInterval(e)},[t])}function H(e,t){return Math.random()*(t-e+1)+e}function U(e,t){return Math.floor(H(e,t))}var pe=(0,z.forwardRef)(({progress:e,height:t=2,className:n=``,color:r=`red`,background:i=`transparent`,onLoaderFinished:a,transitionTime:o=300,loaderSpeed:s=500,waitingTime:c=1e3,shadow:l=!0,containerStyle:u={},style:d={},shadowStyle:f={},containerClassName:p=``},m)=>{let h=(0,z.useRef)(!1),[g,_]=(0,z.useState)(0),v=(0,z.useRef)({active:!1,refreshRate:1e3}),[y,b]=(0,z.useState)({active:!1,value:60}),x={height:`100%`,background:r,transition:`all ${s}ms ease`,width:`0%`},S={position:`fixed`,top:0,left:0,height:t,background:i,zIndex:99999999999,width:`100%`},C={boxShadow:`0 0 10px ${r}, 0 0 10px ${r}`,width:`5%`,opacity:1,position:`absolute`,height:`100%`,transition:`all ${s}ms ease`,transform:`rotate(2deg) translate(0px, -2px)`,left:`-10rem`},[w,T]=(0,z.useState)(x),[E,D]=(0,z.useState)(C);(0,z.useEffect)(()=>(h.current=!0,()=>{h.current=!1}),[]),(0,z.useImperativeHandle)(m,()=>({continuousStart(t,n=1e3){if(y.active)return;if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}let r=t||U(10,20);v.current={active:!0,refreshRate:n},_(r),O(r)},staticStart(t){if(v.current.active)return;if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}let n=t||U(30,60);b({active:!0,value:n}),_(n),O(n)},start(t=`continuous`,n,r){if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}t===`continuous`?v.current={active:!0,refreshRate:r||1e3}:b({active:!0,value:n||20});let i=U(10,20),a=U(30,70),o=n||(t===`continuous`?i:a);_(o),O(o)},complete(){if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}_(100),O(100)},increase(t){if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}_(e=>{let n=e+t;return O(n),n})},decrease(t){if(e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar!`);return}_(e=>{let n=e-t;return O(n),n})},getProgress(){return g}})),(0,z.useEffect)(()=>{T({...w,background:r}),D({...E,boxShadow:`0 0 10px ${r}, 0 0 5px ${r}`})},[r]),(0,z.useEffect)(()=>{if(m){if(m&&e!==void 0){console.warn(`react-top-loading-bar: You can't use both controlling by props and ref methods to control the bar! Please use only props or only ref methods! Ref methods will override props if "ref" property is available.`);return}O(g)}else e&&O(e)},[e]);let O=e=>{e>=100?(T({...w,width:`100%`}),l&&D({...E,left:e-10+`%`}),setTimeout(()=>{h.current&&(T({...w,opacity:0,width:`100%`,transition:`all ${o}ms ease-out`,color:r}),setTimeout(()=>{h.current&&(v.current.active&&(v.current={...v.current,active:!1},_(0),O(0)),y.active&&(b({...y,active:!1}),_(0),O(0)),a&&a(),_(0),O(0))},o))},c)):(T(t=>({...t,width:e+`%`,opacity:1,transition:e>0?`all ${s}ms ease`:``})),l&&D({...E,left:e-5.5+`%`,transition:e>0?`all ${s}ms ease`:``}))};return V(()=>{let e=H(Math.min(10,(100-g)/5),Math.min(20,(100-g)/3));g+e<95&&(_(g+e),O(g+e))},v.current.active?v.current.refreshRate:null),z.createElement(`div`,{className:p,style:{...S,...u}},z.createElement(`div`,{className:n,style:{...w,...d}},l?z.createElement(`div`,{style:{...E,...f}}):null))});z.createContext(void 0);var W=y();function me(){let e=(0,z.useRef)(null),t=O();return(0,z.useEffect)(()=>{t.status===`pending`?e.current?.continuousStart():e.current?.complete()},[t.status]),(0,W.jsx)(pe,{color:`var(--primary)`,height:2,ref:e,shadow:!0})}var he=A(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),ge=A(`octagon-x`,[[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z`,key:`2d38gg`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),_e=(e,t,n,r,i,a,o,s)=>{let c=document.documentElement,l=[`light`,`dark`];function u(t){(Array.isArray(e)?e:[e]).forEach(e=>{let n=e===`class`,r=n&&a?i.map(e=>a[e]||e):i;n?(c.classList.remove(...r),c.classList.add(a&&a[t]?a[t]:t)):c.setAttribute(e,t)}),d(t)}function d(e){s&&l.includes(e)&&(c.style.colorScheme=e)}function f(){return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}if(r)u(r);else try{let e=localStorage.getItem(t)||n;u(o&&e===`system`?f():e)}catch{}},ve=z.createContext(void 0),ye={setTheme:e=>{},themes:[]},be=()=>z.useContext(ve)??ye;z.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:a,value:o,themes:s,nonce:c,scriptProps:l})=>{let u=JSON.stringify([n,t,a,e,s,o,r,i]).slice(1,-1);return z.createElement(`script`,{...l,suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(${_e.toString()})(${u})`}})});var xe=({...e})=>{let{theme:t=`system`}=be();return(0,W.jsx)(ie,{richColors:!0,className:`toaster group`,icons:{success:(0,W.jsx)(ee,{className:`size-4`}),info:(0,W.jsx)(he,{className:`size-4`}),warning:(0,W.jsx)(re,{className:`size-4`}),error:(0,W.jsx)(ge,{className:`size-4`}),loading:(0,W.jsx)(ne,{className:`size-4 animate-spin`})},style:{"--normal-bg":`var(--popover)`,"--normal-text":`var(--popover-foreground)`,"--normal-border":`var(--border)`,"--border-radius":`var(--radius)`},theme:t,...e})};function Se(){return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(me,{}),(0,W.jsx)(x,{}),(0,W.jsx)(xe,{duration:5e3,position:`top-right`})]})}var G=C()({component:Se,notFoundComponent:oe,errorComponent:ae}),Ce=E(`/install`)({component:D(()=>k(()=>import(`./install-Dx6W4swz.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49])),`component`)}),we=E(`/cashier`)({component:D(()=>k(()=>import(`./route-B4K1KfXt.js`),__vite__mapDeps([50,1,3,4,5,6,51,23,24,20,52,25,53,18,19,8,21,28,35,36,11,12,13,14,37,38,15,16,17,39,31,40,41,42,54])),`component`)}),Te=E(`/_authenticated`)({beforeLoad:({location:e})=>{if(!p.state.accessToken)throw b({to:`/sign-in`,search:{redirect:e.href},replace:!0})},component:D(()=>k(()=>import(`./route-CyGJTo_g.js`),__vite__mapDeps([55,1,12,5,6,56,57,58,3,4,27,15,13,8,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,36,31,51,23,52,53,67,68,22,69,70,47])),`component`)}),Ee=E(`/(auth)`)({component:D(()=>k(()=>import(`./route-DcIGa4_b.js`),__vite__mapDeps([71,1,3,4,5,6,51,23,24,20,52,25,53,35,36,11,12,13,8,14,37,38,15,16,17,39,31,28,40,41,42,21,46,72])),`component`)}),De=E(`/`)({beforeLoad:()=>{throw b({to:p.state.accessToken?`/dashboard`:`/sign-in`,replace:!0})},component:D(()=>k(()=>import(`./routes-D7HD5c-e.js`),[]),`component`)}),Oe=E(`/_authenticated/dashboard`)({component:D(()=>k(()=>import(`./dashboard-CicUP9sI.js`),__vite__mapDeps([73,1,56,57,12,5,6,58,3,4,27,15,13,8,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,10,74,75,36,31,76,32,69,33,77,47,78,79,80,22,23,35,81,45,82,83,48])),`component`)}),ke=E(`/(errors)/503`)({component:D(()=>k(()=>import(`./503-BF-pGOH4.js`),__vite__mapDeps([84,85,3,1,4,5,6])),`component`)}),Ae=E(`/(errors)/500`)({component:D(()=>k(()=>import(`./500-CK1ovRtb.js`),__vite__mapDeps([86,87,3,1,4,5,6,25,40])),`component`)}),je=E(`/(errors)/404`)({component:D(()=>k(()=>import(`./404-Dw3fTvCr.js`),__vite__mapDeps([88,89,3,1,4,5,6,25,40])),`component`)}),Me=E(`/(errors)/403`)({component:D(()=>k(()=>import(`./403-CHgXHRv0.js`),__vite__mapDeps([90,91,3,1,4,5,6,25,40])),`component`)}),Ne=E(`/(errors)/401`)({component:D(()=>k(()=>import(`./401-QZok9O_U.js`),__vite__mapDeps([92,93,3,1,4,5,6,25,40])),`component`)}),Pe=()=>k(()=>import(`./sign-in-C8pEQ7cD.js`),__vite__mapDeps([94,1,2,3,4,5,6,7,8,9,58,12,27,15,13,16,17,18,19,20,21,95,52,25,24,40,28,43,96,33,34,49,72])),Fe=ce({redirect:se().optional()}),Ie=E(`/(auth)/sign-in`)({component:D(Pe,`component`),validateSearch:Fe}),Le=E(`/_authenticated/settings`)({component:D(()=>k(()=>import(`./route-DJLBMX6x.js`),__vite__mapDeps([97,56,1,57,12,5,6,58,3,4,27,15,13,8,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,51,23,52,53,80,36,31,22,35,81,83,98,76,32,99])),`component`)}),Re=E(`/_authenticated/payment-setup`)({component:D(()=>k(()=>import(`./route-DYctbiZb.js`),__vite__mapDeps([100,56,1,57,12,5,6,58,3,4,27,15,13,8,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,51,23,52,53,80,36,31,22,35,81,83,98,76,32,99])),`component`)}),ze=E(`/_authenticated/account`)({component:D(()=>k(()=>import(`./route-BfeN1Yu9.js`),__vite__mapDeps([101,56,1,57,12,5,6,58,3,4,27,15,13,8,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,51,23,52,53,80,36,31,22,35,81,83,98,76,32,99])),`component`)}),Be=E(`/_authenticated/settings/`)({component:D(()=>k(()=>import(`./settings-DskxyKWx.js`),__vite__mapDeps([102,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,83,61,49,103,18,19,20,21])),`component`)}),Ve=()=>k(()=>import(`./rpc-FxQRMB98.js`),__vite__mapDeps([104,1,2,3,4,5,6,7,8,9,56,57,12,58,27,15,13,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,105,31,36,76,32,106,107,23,22,95,52,53,75,10,69,33,77,47,78,108,109,80,35,81,110,111,112,83,113])),He=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10),enabled:N.array(N.enum(j.map(e=>e.value))).optional().catch([]),type:N.array(N.string()).optional().catch([]),status:N.array(N.enum([`ok`,`down`,`unknown`])).optional().catch([]),keyword:N.string().optional().catch(``)}),Ue=E(`/_authenticated/rpc/`)({validateSearch:He,component:D(Ve,`component`)}),We=()=>k(()=>import(`./payment-setup-CnYyeayi.js`),__vite__mapDeps([114,1,3,4,5,6,18,19,8,20,21,107,23,24,22,25,95,52,40,53,75,36,11,12,13,14,37,38,15,16,17,39,31,28,10,76,57,60,63,32,61,62,26,27,29,64,69,33,77,47,49,78,115,82,113])),Ge=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10),status:N.enum([`enabled`,`disabled`]).array().optional().catch([]),chain:N.array(N.string()).optional().catch([]),keyword:N.string().optional().catch(``)}),Ke=E(`/_authenticated/payment-setup/`)({validateSearch:Ge,component:D(We,`component`)}),qe=()=>k(()=>import(`./orders-BVHCgRn-.js`),__vite__mapDeps([116,1,58,12,5,6,3,4,27,15,13,8,16,17,56,57,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,36,31,7,107,23,22,95,52,53,75,10,76,32,69,33,77,47,78,79,117,109,34,80,35,81,118,119,112,83,113])),Je=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10),status:N.array(N.enum(te.map(e=>e.value))).optional().catch([]),chain:N.array(N.string()).optional().catch([]),orderNo:N.string().optional().catch(``)}),Ye=E(`/_authenticated/orders/`)({validateSearch:Je,component:D(qe,`component`)}),Xe=()=>k(()=>import(`./keys-CMptb3PN.js`),__vite__mapDeps([120,1,2,3,4,5,6,7,8,9,58,12,27,15,13,16,17,56,57,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,76,31,32,106,107,23,22,95,52,53,30,33,34,77,80,36,35,81,111,83,47,121])),Ze=N.object({type:N.enum([`all`,`enabled`,`disabled`]).optional().catch(void 0),filter:N.string().optional().catch(``),sort:N.enum([`asc`,`desc`]).optional().catch(void 0)}),Qe=E(`/_authenticated/keys/`)({validateSearch:Ze,component:D(Xe,`component`)}),$e=E(`/_authenticated/help/`)({component:D(()=>k(()=>import(`./help-CuVF-_N9.js`),__vite__mapDeps([122,119,28,1,6,5])),`component`)}),et=()=>k(()=>import(`./chains-CeMUj04i.js`),__vite__mapDeps([123,1,2,3,4,5,6,7,8,9,56,57,12,58,27,15,13,16,17,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,105,31,36,76,32,106,75,10,69,33,77,47,78,108,109,80,22,23,35,81,110,111,118,119,83])),tt=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10),status:N.array(N.enum(j.map(e=>e.value))).optional().catch([]),keyword:N.string().optional().catch(``)}),nt=E(`/_authenticated/chains/`)({validateSearch:tt,component:D(et,`component`)}),rt=()=>k(()=>import(`./addresses-CHUp3WnH.js`),__vite__mapDeps([124,1,2,3,4,5,6,7,8,9,58,12,27,15,13,16,17,56,57,38,59,39,37,60,14,61,62,11,63,18,19,20,21,25,40,24,26,28,29,64,65,41,44,46,49,66,42,36,31,76,32,106,107,23,22,95,52,53,75,10,69,33,77,47,78,79,117,109,34,80,35,81,110,111,112,83,121,113])),it=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10),status:N.array(N.enum(M.map(e=>e.value))).optional().catch([]),chain:N.array(N.string()).optional().catch([]),address:N.string().optional().catch(``)}),at=E(`/_authenticated/addresses/`)({validateSearch:it,component:D(rt,`component`)}),ot=E(`/_authenticated/account/`)({beforeLoad:()=>{throw b({to:`/account/password`,replace:!0})}}),st=E(`/_authenticated/settings/telegram`)({component:D(()=>k(()=>import(`./telegram-D-IQd24v.js`),__vite__mapDeps([125,1,2,3,4,5,6,7,8,9,106,12,60,14,83,61,49,103,18,19,20,21])),`component`)}),ct=E(`/_authenticated/settings/system`)({component:D(()=>k(()=>import(`./system-UzoEfe2L.js`),__vite__mapDeps([126,1,2,3,4,5,6,7,8,9,76,11,12,13,14,57,37,38,15,16,60,63,28,31,32,83,61,103,18,19,20,21])),`component`)}),lt=E(`/_authenticated/settings/pay`)({component:D(()=>k(()=>import(`./pay-B10TXgVj.js`),__vite__mapDeps([127,1,128,2,3,4,5,6,7,8,9,129,28,83,61,49,78,103,18,19,20,21])),`component`)}),ut=E(`/_authenticated/settings/okpay`)({component:D(()=>k(()=>import(`./okpay-D8DSnOJb.js`),__vite__mapDeps([130,1,2,3,4,5,6,7,8,9,106,12,60,14,96,33,28,34,49,83,61,103,18,19,20,21])),`component`)}),dt=E(`/_authenticated/settings/notifications`)({component:D(()=>k(()=>import(`./notifications-ugCUkcwq.js`),__vite__mapDeps([131,2,1,3,4,5,6,7,8,9,105,12,17,60,14,31,28,106,22,23,24,20,25,132,59,38,39,37,13,83,61,133,19])),`component`)}),ft=E(`/_authenticated/settings/epay`)({component:D(()=>k(()=>import(`./epay-CMHO4eMB.js`),__vite__mapDeps([134,1,2,3,4,5,6,7,8,9,76,11,12,13,14,57,37,38,15,16,60,63,28,31,32,18,19,20,21,115,82,83,61,49,103])),`component`)}),pt=E(`/_authenticated/settings/display`)({component:D(()=>k(()=>import(`./display-Zi7WWfTl.js`),__vite__mapDeps([135,2,1,3,4,5,6,7,8,9,105,12,17,60,14,31,28,83,61,133,19])),`component`)}),mt=E(`/_authenticated/settings/appearance`)({component:D(()=>k(()=>import(`./appearance-vgBRUuwE.js`),__vite__mapDeps([136,2,1,3,4,5,6,7,8,9,32,28,132,59,12,38,17,39,37,13,60,14,83,61,66,21,42,133,19])),`component`)}),ht=()=>k(()=>import(`./integrations-vDkEDNxG.js`),__vite__mapDeps([137,1,107,23,24,6,20,5,22,8,3,4,25,95,52,40,53,75,36,11,12,13,14,37,38,15,16,17,39,31,28,10,76,57,60,63,32,61,62,26,27,29,64,69,33,77,47,49,78,113])),gt=N.object({page:N.number().optional().catch(1),pageSize:N.number().optional().catch(10)}),_t=E(`/_authenticated/payment-setup/integrations`)({validateSearch:gt,component:D(ht,`component`)}),vt=E(`/_authenticated/account/password`)({component:D(()=>k(()=>import(`./password-CAMOij5G.js`),__vite__mapDeps([138,2,1,3,4,5,6,7,8,9,18,19,20,21,96,33,28,34,49,83,61])),`component`)}),yt=Ce.update({id:`/install`,path:`/install`,getParentRoute:()=>G}),K=we.update({id:`/cashier`,path:`/cashier`,getParentRoute:()=>G}),q=Te.update({id:`/_authenticated`,getParentRoute:()=>G}),J=Ee.update({id:`/(auth)`,getParentRoute:()=>G}),bt=De.update({id:`/`,path:`/`,getParentRoute:()=>G}),xt=Oe.update({id:`/dashboard`,path:`/dashboard`,getParentRoute:()=>q}),St=ke.update({id:`/(errors)/503`,path:`/503`,getParentRoute:()=>G}),Ct=Ae.update({id:`/(errors)/500`,path:`/500`,getParentRoute:()=>G}),wt=je.update({id:`/(errors)/404`,path:`/404`,getParentRoute:()=>G}),Tt=Me.update({id:`/(errors)/403`,path:`/403`,getParentRoute:()=>G}),Et=Ne.update({id:`/(errors)/401`,path:`/401`,getParentRoute:()=>G}),Dt=Ie.update({id:`/sign-in`,path:`/sign-in`,getParentRoute:()=>J}),Y=Le.update({id:`/settings`,path:`/settings`,getParentRoute:()=>q}),X=Re.update({id:`/payment-setup`,path:`/payment-setup`,getParentRoute:()=>q}),Z=ze.update({id:`/account`,path:`/account`,getParentRoute:()=>q}),Ot=le.update({id:`/$trade_id/`,path:`/$trade_id/`,getParentRoute:()=>K}),kt=Be.update({id:`/`,path:`/`,getParentRoute:()=>Y}),At=Ue.update({id:`/rpc/`,path:`/rpc/`,getParentRoute:()=>q}),jt=Ke.update({id:`/`,path:`/`,getParentRoute:()=>X}),Mt=Ye.update({id:`/orders/`,path:`/orders/`,getParentRoute:()=>q}),Nt=Qe.update({id:`/keys/`,path:`/keys/`,getParentRoute:()=>q}),Pt=$e.update({id:`/help/`,path:`/help/`,getParentRoute:()=>q}),Ft=nt.update({id:`/chains/`,path:`/chains/`,getParentRoute:()=>q}),It=at.update({id:`/addresses/`,path:`/addresses/`,getParentRoute:()=>q}),Lt=ot.update({id:`/`,path:`/`,getParentRoute:()=>Z}),Rt=st.update({id:`/telegram`,path:`/telegram`,getParentRoute:()=>Y}),zt=ct.update({id:`/system`,path:`/system`,getParentRoute:()=>Y}),Bt=lt.update({id:`/pay`,path:`/pay`,getParentRoute:()=>Y}),Vt=ut.update({id:`/okpay`,path:`/okpay`,getParentRoute:()=>Y}),Ht=dt.update({id:`/notifications`,path:`/notifications`,getParentRoute:()=>Y}),Ut=ft.update({id:`/epay`,path:`/epay`,getParentRoute:()=>Y}),Wt=pt.update({id:`/display`,path:`/display`,getParentRoute:()=>Y}),Gt=mt.update({id:`/appearance`,path:`/appearance`,getParentRoute:()=>Y}),Kt=_t.update({id:`/integrations`,path:`/integrations`,getParentRoute:()=>X}),qt=ue.update({id:`/errors/$error`,path:`/errors/$error`,getParentRoute:()=>q}),Jt=vt.update({id:`/password`,path:`/password`,getParentRoute:()=>Z}),Q={authSignInRoute:Dt},Yt=J._addFileChildren(Q),Xt={AuthenticatedAccountPasswordRoute:Jt,AuthenticatedAccountIndexRoute:Lt},Zt=Z._addFileChildren(Xt),Qt={AuthenticatedPaymentSetupIntegrationsRoute:Kt,AuthenticatedPaymentSetupIndexRoute:jt},$t=X._addFileChildren(Qt),en={AuthenticatedSettingsAppearanceRoute:Gt,AuthenticatedSettingsDisplayRoute:Wt,AuthenticatedSettingsEpayRoute:Ut,AuthenticatedSettingsNotificationsRoute:Ht,AuthenticatedSettingsOkpayRoute:Vt,AuthenticatedSettingsPayRoute:Bt,AuthenticatedSettingsSystemRoute:zt,AuthenticatedSettingsTelegramRoute:Rt,AuthenticatedSettingsIndexRoute:kt},tn={AuthenticatedAccountRouteRoute:Zt,AuthenticatedPaymentSetupRouteRoute:$t,AuthenticatedSettingsRouteRoute:Y._addFileChildren(en),AuthenticatedDashboardRoute:xt,AuthenticatedErrorsErrorRoute:qt,AuthenticatedAddressesIndexRoute:It,AuthenticatedChainsIndexRoute:Ft,AuthenticatedHelpIndexRoute:Pt,AuthenticatedKeysIndexRoute:Nt,AuthenticatedOrdersIndexRoute:Mt,AuthenticatedRpcIndexRoute:At},nn=q._addFileChildren(tn),rn={CashierTrade_idIndexRoute:Ot},an={IndexRoute:bt,authRouteRoute:Yt,AuthenticatedRouteRoute:nn,CashierRouteRoute:K._addFileChildren(rn),InstallRoute:yt,errors401Route:Et,errors403Route:Tt,errors404Route:wt,errors500Route:Ct,errors503Route:St},on=G._addFileChildren(an)._addFileTypes(),$=new F({defaultOptions:{queries:{retry:(e,t)=>{if(e>3)return!1;if(typeof t==`object`&&t&&`status`in t){let e=t.status;if(e===401||e===403)return!1}return!0},refetchOnWindowFocus:!0,staleTime:10*1e3}}}),sn=L({routeTree:on,context:{queryClient:$},scrollRestoration:!0,defaultPreload:`intent`,defaultPreloadStaleTime:0});export{sn as n,$ as t}; \ No newline at end of file diff --git a/src/www/assets/rpc-D7fjJcmI.js b/src/www/assets/rpc-FxQRMB98.js similarity index 92% rename from src/www/assets/rpc-D7fjJcmI.js rename to src/www/assets/rpc-FxQRMB98.js index 164c981..860b738 100644 --- a/src/www/assets/rpc-D7fjJcmI.js +++ b/src/www/assets/rpc-FxQRMB98.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{a as t}from"./auth-store-De4Y7PFV.js";import{t as n}from"./router-Z0tUklFK.js";import{t as r}from"./react-CO2uhaBc.js";import{Aa as i,Ba as a,Ca as o,Da as s,Ea as c,Fa as l,Fo as u,Ga as d,Go as f,Ha as p,Ia as m,Ja as h,Ka as g,Ko as _,La as ee,Ma as te,Na as ne,Oa as v,Pa as re,Po as y,Qo as b,Ra as ie,Sa as x,Ta as S,Ts as ae,Ua as oe,Va as C,Wa as se,Xp as ce,_a as le,aa as ue,ba as de,ca as fe,da as w,ea as T,fa as pe,ga as me,ha as he,ia as E,ja as D,ka as ge,la as _e,ma as ve,na as O,oa as ye,pa as be,qa as xe,qo as Se,ra as Ce,sa as we,ss as Te,ta as k,tm as Ee,ua as De,uo as Oe,va as ke,wa as A,xa as Ae,ya as je,za as Me}from"./messages-BOatyqUm.js";import{r as Ne}from"./route-wzPKSRj2.js";import{I as Pe,o as j,r as Fe}from"./search-provider-C-_FQI9C.js";import{i as M,t as N}from"./button-C_NDYaz8.js";import{t as Ie}from"./checkbox-CTHgcB3t.js";import{a as P,c as F,l as Le,r as Re,s as ze,t as Be}from"./dropdown-menu-DzCIpsuG.js";import{a as I,i as L,n as R,r as z,t as B}from"./select-CzebumOF.js";import{t as Ve}from"./separator-CsUemQNs.js";import{t as He}from"./switch-CgoJjvdz.js";import{t as Ue}from"./createLucideIcon-Br0Bd5k2.js";import{a as V,c as We,d as Ge,f as Ke,l as qe,n as Je,o as Ye,r as Xe,s as Ze,t as Qe,u as $e}from"./data-table-1LQSBhN2.js";import{t as et}from"./arrow-left-BpZwGREZ.js";import{t as H}from"./skeleton-CmDjDV1O.js";import{t as tt}from"./ellipsis-74ly4-Wm.js";import{t as nt}from"./empty-state-CxE4wU3V.js";import{n as rt,t as it}from"./main-C1R3Hvq1.js";import{n as at,t as ot}from"./chains-store-DCzO87jZ.js";import{n as st,t as ct}from"./trash-2-9I8lAjeE.js";import{l as lt}from"./command-B_SlhXkX.js";import{i as ut,o as dt,r as ft,s as pt,t as mt}from"./dialog-CZ-2RPb-.js";import{n as U}from"./dist-JOUh6qvR.js";import{a as ht,c as W,n as gt,r as _t,s as vt}from"./zod-rwFXxHlg.js";import{a as G,c as yt,i as K,l as bt,n as q,o as J,s as Y,t as xt}from"./form-KfFEakes.js";import{t as X}from"./input-8zzM34r5.js";import{t as St}from"./page-header-GTtyZFBB.js";import{t as Z}from"./badge-VJlwwTW5.js";import{t as Ct}from"./use-table-url-state-DP0Y4QjR.js";import{t as wt}from"./long-text-DNqlDi0R.js";var Tt=Ue(`stethoscope`,[[`path`,{d:`M11 2v2`,key:`1539x4`}],[`path`,{d:`M5 2v2`,key:`1yf1q8`}],[`path`,{d:`M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1`,key:`rb5t3r`}],[`path`,{d:`M8 15a6 6 0 0 0 12 0v-3`,key:`x18d4x`}],[`circle`,{cx:`20`,cy:`10`,r:`2`,key:`ts1r5v`}]]),Q=e(r(),1),$=Ee(),Et=vt({network:W().min(1,we()),type:_t([`http`,`ws`,`lite`]),purpose:_t([`general`,`manual_verify`,`both`]),url:W().url(ye()),api_key:W().default(``),weight:gt().min(1,ue()),enabled:ht().default(!0)});function Dt({open:e,onOpenChange:n,currentRow:r,onSuccess:i}){let{chains:a}=ot(),o=bt({resolver:yt(Et),defaultValues:{network:``,type:`http`,purpose:`general`,url:``,api_key:``,weight:1,enabled:!0}}),l=t.useMutation(`post`,`/admin/api/v1/rpc-nodes`),d=t.useMutation(`patch`,`/admin/api/v1/rpc-nodes/{id}`);(0,Q.useEffect)(()=>{e&&o.reset({network:r?.network??``,type:r?.type??`http`,purpose:r?.purpose??`general`,url:r?.url??``,api_key:r?.api_key??``,weight:r?.weight??1,enabled:r?.enabled??!0})},[e,r,o]);function f(e){if(r?.id){d.mutate({params:{path:{id:r.id}},body:{url:e.url,api_key:e.api_key,weight:e.weight,enabled:e.enabled,purpose:e.purpose}},{onSuccess:()=>{U.success(_e()),n(!1),i?.()}});return}l.mutate({body:{network:e.network,type:e.type,purpose:e.purpose,url:e.url,api_key:e.api_key,weight:e.weight,enabled:e.enabled}},{onSuccess:()=>{U.success(fe()),n(!1),i?.()}})}let p=l.isPending||d.isPending;return(0,$.jsx)(mt,{onOpenChange:n,open:e,children:(0,$.jsxs)(ft,{children:[(0,$.jsxs)(dt,{children:[(0,$.jsx)(pt,{children:r?le():me()}),(0,$.jsx)(ut,{children:r?he():ve()})]}),(0,$.jsx)(xt,{...o,children:(0,$.jsxs)(`form`,{className:`space-y-4`,onSubmit:o.handleSubmit(f),children:[(0,$.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,$.jsx)(K,{control:o.control,name:`network`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:s()}),(0,$.jsxs)(B,{disabled:!!r,onValueChange:e.onChange,value:e.value,children:[(0,$.jsx)(q,{children:(0,$.jsx)(L,{className:`w-full`,children:(0,$.jsx)(I,{placeholder:Te()})})}),(0,$.jsx)(R,{children:a.filter(e=>!!e.network).map(e=>(0,$.jsx)(z,{value:e.network??``,children:e.display_name??e.network},e.network))})]}),(0,$.jsx)(Y,{})]})}),(0,$.jsx)(K,{control:o.control,name:`type`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:c()}),(0,$.jsxs)(B,{disabled:!!r,onValueChange:e.onChange,value:e.value,children:[(0,$.jsx)(q,{children:(0,$.jsx)(L,{className:`w-full`,children:(0,$.jsx)(I,{placeholder:be()})})}),(0,$.jsxs)(R,{children:[(0,$.jsx)(z,{value:`http`,children:`HTTP`}),(0,$.jsx)(z,{value:`ws`,children:`WebSocket`}),(0,$.jsx)(z,{value:`lite`,children:`TON LiteServer`})]})]}),(0,$.jsx)(Y,{})]})}),(0,$.jsx)(K,{control:o.control,name:`purpose`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:E()}),(0,$.jsxs)(B,{onValueChange:e.onChange,value:e.value,children:[(0,$.jsx)(q,{children:(0,$.jsx)(L,{className:`w-full`,children:(0,$.jsx)(I,{placeholder:Ce()})})}),(0,$.jsxs)(R,{children:[(0,$.jsx)(z,{value:`general`,children:O()}),(0,$.jsx)(z,{value:`manual_verify`,children:k()}),(0,$.jsx)(z,{value:`both`,children:T()})]})]}),(0,$.jsx)(Y,{})]})})]}),(0,$.jsx)(K,{control:o.control,name:`url`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:S()}),(0,$.jsx)(q,{children:(0,$.jsx)(X,{placeholder:`https://api.trongrid.io`,...e})}),(0,$.jsx)(Y,{})]})}),(0,$.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,$.jsx)(K,{control:o.control,name:`api_key`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:`API Key`}),(0,$.jsx)(q,{children:(0,$.jsx)(X,{placeholder:pe(),...e})}),(0,$.jsx)(Y,{})]})}),(0,$.jsx)(K,{control:o.control,name:`weight`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:A()}),(0,$.jsx)(q,{children:(0,$.jsx)(X,{name:e.name,onBlur:e.onBlur,onChange:t=>e.onChange(t.target.value),ref:e.ref,type:`number`,value:String(e.value??``)})}),(0,$.jsx)(Y,{})]})})]}),(0,$.jsx)(K,{control:o.control,name:`enabled`,render:({field:e})=>(0,$.jsxs)(G,{className:`flex flex-row items-center gap-3 rounded-lg border p-3`,children:[(0,$.jsx)(q,{children:(0,$.jsx)(Ie,{checked:e.value,onCheckedChange:t=>e.onChange(!!t)})}),(0,$.jsxs)(`div`,{className:`space-y-1`,children:[(0,$.jsx)(J,{children:w()}),(0,$.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:De()})]})]})}),(0,$.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,$.jsx)(N,{onClick:()=>n(!1),type:`button`,variant:`outline`,children:ce()}),(0,$.jsx)(N,{disabled:p,type:`submit`,children:p?u():y()})]})]})})]})})}function Ot(e){return[{id:`switch`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:b()}),cell:({row:t})=>(0,$.jsx)(He,{checked:!!t.original.enabled,onCheckedChange:()=>e(t.original.enabled?`disable`:`enable`,t.original)}),enableSorting:!1,enableHiding:!1,meta:{label:b(),skeleton:`switch`,sticky:`left`,th:{className:M(`rounded-tl-[inherit]`)}}},{accessorKey:`status`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:D()}),cell:({row:e})=>{let t=e.original.status??`unknown`,n=`bg-slate-500/10 text-slate-600`,r=v();return t===`ok`?(n=`bg-emerald-500/10 text-emerald-600`,r=i()):t===`down`&&(n=`bg-rose-500/10 text-rose-600`,r=ge()),(0,$.jsx)(Z,{className:n,children:r})},filterFn:(e,t,n)=>n.includes(String(e.getValue(t))),meta:{label:D(),skeleton:`badge`}},{accessorKey:`network`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:s()}),cell:({row:e})=>(0,$.jsx)(`div`,{className:`min-w-24 font-medium`,children:e.original.network??`-`}),enableHiding:!1,meta:{label:s(),skeleton:`short`}},{accessorKey:`type`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:c()}),cell:({row:e})=>kt(e.original.type),filterFn:(e,t,n)=>n.includes(String(e.getValue(t)??`general`)),meta:{label:c(),skeleton:`short`}},{accessorKey:`purpose`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:E()}),cell:({row:e})=>{let t=e.original.purpose??`general`,n=O();return t===`manual_verify`?n=k():t===`both`&&(n=T()),(0,$.jsx)(Z,{variant:`outline`,children:n})},filterFn:(e,t,n)=>n.includes(String(e.getValue(t))),meta:{label:E(),skeleton:`badge`}},{accessorKey:`url`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:S()}),cell:({row:e})=>(0,$.jsx)(wt,{className:`min-w-80`,children:e.original.url??`-`}),meta:{label:S(),skeleton:`long`}},{accessorKey:`weight`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:A()}),cell:({row:e})=>e.original.weight??`-`,meta:{label:A(),skeleton:`id`}},{accessorKey:`last_latency_ms`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:o()}),cell:({row:e})=>e.original.last_latency_ms?`${e.original.last_latency_ms} ms`:`-`,meta:{label:o(),skeleton:`id`}},{accessorKey:`last_checked_at`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:x()}),cell:({row:e})=>j(e.original.last_checked_at),meta:{label:x(),skeleton:`date`}},{accessorKey:`api_key`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:`API Key`}),cell:({row:e})=>(0,$.jsx)(wt,{children:e.original.api_key??`-`}),meta:{label:`API Key`,skeleton:`long`}},{accessorKey:`created_at`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:Se()}),cell:({row:e})=>j(e.original.created_at),meta:{label:Se(),skeleton:`date`}},{accessorKey:`updated_at`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:_()}),cell:({row:e})=>j(e.original.updated_at),meta:{label:_(),skeleton:`date`}},{id:`actions`,enableHiding:!1,meta:{label:f(),skeleton:`action`,sticky:`right`,className:M(`w-12`)},cell:({row:t})=>(0,$.jsxs)(Be,{modal:!1,children:[(0,$.jsx)(Le,{asChild:!0,children:(0,$.jsxs)(N,{className:`flex h-8 w-8 p-0 data-[state=open]:bg-muted`,variant:`ghost`,children:[(0,$.jsx)(tt,{className:`h-4 w-4`}),(0,$.jsx)(`span`,{className:`sr-only`,children:`Open menu`})]})}),(0,$.jsxs)(Re,{align:`end`,className:`w-40`,children:[(0,$.jsxs)(P,{onClick:()=>e(`edit`,t.original),children:[ke(),(0,$.jsx)(F,{children:(0,$.jsx)(at,{size:16})})]}),(0,$.jsxs)(P,{onClick:()=>e(`health-check`,t.original),children:[Ae(),(0,$.jsx)(F,{children:(0,$.jsx)(Tt,{size:16})})]}),(0,$.jsx)(ze,{}),(0,$.jsxs)(P,{onClick:()=>e(`delete`,t.original),variant:`destructive`,children:[Oe(),(0,$.jsx)(F,{children:(0,$.jsx)(ct,{size:16})})]})]})]})}]}function kt(e){return e===`http`?`HTTP`:e===`ws`?`WebSocket`:e===`lite`?`TON LiteServer`:e??`-`}var At=Ne(`/_authenticated/rpc/`),jt=[{label:i(),value:`ok`},{label:ge(),value:`down`},{label:v(),value:`unknown`}];function Mt({data:e,isLoading:t,onAction:n,onRefresh:r}){let[i,a]=(0,Q.useState)([]),{globalFilter:o,onGlobalFilterChange:s,columnFilters:l,onColumnFiltersChange:u,pagination:d,onPaginationChange:f,ensurePageInRange:p}=Ct({search:At.useSearch(),navigate:At.useNavigate(),pagination:{defaultPage:1,defaultPageSize:10},globalFilter:{enabled:!0,key:`keyword`},columnFilters:[{columnId:`type`,searchKey:`type`,type:`array`},{columnId:`status`,searchKey:`status`,type:`array`}]}),m=Ye({data:e,columns:(0,Q.useMemo)(()=>Ot(n),[n]),state:{sorting:i,columnFilters:l,globalFilter:o,pagination:d},onSortingChange:a,onColumnFiltersChange:u,onGlobalFilterChange:s,onPaginationChange:f,globalFilterFn:(e,t,n)=>{let r=String(n).toLowerCase();return(e.original.network??``).toLowerCase().includes(r)||(e.original.url??``).toLowerCase().includes(r)},getCoreRowModel:Ze(),getFilteredRowModel:$e(),getPaginationRowModel:Ge(),getSortedRowModel:Ke(),getFacetedRowModel:We(),getFacetedUniqueValues:qe()});(0,Q.useEffect)(()=>{p(m.getPageCount())},[m,p]);let h=[...new Set(e.map(e=>e.type).filter(Boolean))].map(e=>({label:Nt(e),value:e})),g=[{label:O(),value:`general`},{label:k(),value:`manual_verify`},{label:T(),value:`both`}];return(0,$.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,$.jsx)(Qe,{filters:[{columnId:`type`,title:c(),options:h},{columnId:`purpose`,title:E(),options:g},{columnId:`status`,title:D(),options:[...jt]}],onRefresh:r,searchPlaceholder:de(),table:m}),(0,$.jsx)(Xe,{className:`min-w-[1200px]`,emptyText:je(),loading:t,table:m}),(0,$.jsx)(Je,{className:`mt-auto`,table:m})]})}function Nt(e){return e===`http`?`HTTP`:e===`ws`?`WebSocket`:e===`lite`?`TON LiteServer`:e??`-`}var Pt=[`chain-1`,`chain-2`,`chain-3`,`chain-4`,`chain-5`];function Ft({active:e,children:t,onClick:n}){return(0,$.jsx)(`div`,{className:M(`w-full cursor-pointer rounded-lg px-3 py-3 text-left transition-colors hover:bg-accent hover:text-accent-foreground`,e&&`bg-muted`),onClick:n,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),n())},role:`button`,tabIndex:0,children:t})}function It({chains:e,isLoading:t,keyword:n,onKeywordChange:r,selectedPanel:i,onSelect:a,totalNodes:o,hiddenOnMobile:s}){return(0,$.jsxs)(`div`,{className:M(`flex w-full flex-col gap-2 sm:w-56 lg:w-72 2xl:w-80`,s&&`hidden sm:flex`),children:[(0,$.jsxs)(`div`,{className:`sticky top-0 z-10 -mx-4 bg-background px-4 pb-3 shadow-md sm:static sm:z-auto sm:mx-0 sm:p-0 sm:shadow-none`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between py-2`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsx)(`h1`,{className:`font-bold text-2xl`,children:h()}),(0,$.jsx)(Pe,{size:20})]}),(0,$.jsx)(Z,{variant:`secondary`,children:xe({count:String(e.length)})})]}),(0,$.jsxs)(`div`,{className:`relative block`,children:[(0,$.jsx)(lt,{className:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),(0,$.jsx)(X,{className:`pl-9`,onChange:e=>r(e.target.value),placeholder:g(),value:n})]})]}),(0,$.jsxs)(Fe,{className:`-mx-3 h-full overflow-auto p-3`,children:[(0,$.jsx)(Ft,{active:i===`overview`,onClick:()=>a(`overview`),children:(0,$.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsx)(`div`,{className:`font-medium`,children:d()}),(0,$.jsx)(`div`,{className:`mt-1 text-muted-foreground text-xs`,children:se({chains:String(e.length),nodes:String(o)})})]}),(0,$.jsx)(Pe,{className:`mt-0.5 size-4 text-muted-foreground`})]})}),(0,$.jsx)(Ve,{className:`my-1`}),t?Pt.map(e=>(0,$.jsxs)(`div`,{className:`px-3 py-3`,children:[(0,$.jsx)(`div`,{className:`flex items-center justify-between gap-2`,children:(0,$.jsx)(H,{className:`h-4 w-24`})}),(0,$.jsxs)(`div`,{className:`mt-2 flex items-center justify-between gap-2`,children:[(0,$.jsx)(H,{className:`h-3 w-20`}),(0,$.jsx)(H,{className:`h-5 w-12 rounded-full`})]})]},e)):e.map((t,n)=>{let r=t.network??t.display_name??String(n);return(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Ft,{active:i===t.network,onClick:()=>a(t.network??`overview`),children:(0,$.jsx)(`div`,{className:`flex items-start gap-3`,children:(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`div`,{className:`truncate font-medium`,children:t.display_name??oe()}),(0,$.jsxs)(`div`,{className:`mt-1 flex items-center justify-between gap-2`,children:[(0,$.jsx)(`span`,{className:`text-muted-foreground text-xs`,children:p({count:String(t.nodeCount??0)})}),(0,$.jsx)(Z,{className:`shrink-0 text-xs`,variant:`outline`,children:t.network??`-`})]})]})})}),nS.reduce((e,t)=>(t.network&&(e[t.network]=(e[t.network]??0)+1),e),{}),[S]),C=(0,Q.useMemo)(()=>e.map(e=>({...e,nodeCount:e.network?oe[e.network]??0:0})),[e,oe]),se=(0,Q.useMemo)(()=>{let e=g.trim().toLowerCase();return e?C.filter(t=>[t.display_name,t.network].filter(Boolean).some(t=>String(t).toLowerCase().includes(e))):C},[C,g]),le=(0,Q.useMemo)(()=>v===`overview`?S:S.filter(e=>e.network===v),[S,v]);(0,Q.useEffect)(()=>{v!==`overview`&&!e.some(e=>e.network===v)&&(y(`overview`),x(null))},[e,v]);async function ue(){await n.invalidateQueries({queryKey:[`get`,`/admin/api/v1/rpc-nodes`]})}async function de(){if(p?.row.id){if(p.action===`delete`)await a.mutateAsync({params:{path:{id:p.row.id}}}),U.success(ie());else if(p.action===`enable`||p.action===`disable`)await o.mutateAsync({params:{path:{id:p.row.id}},body:{enabled:p.action===`enable`}}),U.success(ae());else if(p.action===`health-check`){let e=await s.mutateAsync({params:{path:{id:p.row.id}}}),t=e.data?.status??`unknown`,n=e.data?.last_latency_ms;U.success(ee({status:t,latency:n?m({latency:String(n)}):``}))}await ue(),h(null)}}async function fe(e,t){if(e===`edit`){f(t),u(!0);return}if(e===`enable`||e===`disable`){if(!t.id)return;await o.mutateAsync({params:{path:{id:t.id}},body:{enabled:e===`enable`}}),U.success(ae()),await ue();return}if(e===`delete`){h({action:e,row:t});return}h({action:e,row:t})}let w=b!==null;return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(rt,{fixed:!0}),(0,$.jsx)(it,{fixed:!0,children:(0,$.jsxs)(`section`,{className:`flex h-full gap-6`,children:[(0,$.jsx)(It,{chains:se,hiddenOnMobile:w,isLoading:r,keyword:g,onKeywordChange:_,onSelect:e=>{y(e),x(e)},selectedPanel:v,totalNodes:S.length}),(0,$.jsx)(`div`,{className:M(`absolute inset-0 start-full z-50 hidden w-full flex-1 flex-col border bg-background shadow-xs sm:static sm:z-auto sm:flex sm:min-w-0 sm:rounded-md sm:border-0 sm:bg-transparent sm:shadow-none`,w&&`inset-s-0 flex`),children:(0,$.jsx)(Lt,{isLoading:i.isLoading,nodes:le,onAction:fe,onBack:()=>x(null),onCreate:()=>{f(null),u(!0)},onRefresh:()=>{i.refetch()}})})]})}),(0,$.jsx)(Dt,{currentRow:d,onOpenChange:u,onSuccess:()=>i.refetch(),open:c}),(0,$.jsx)(mt,{onOpenChange:e=>{e||h(null)},open:!!p,children:(0,$.jsxs)(ft,{children:[(0,$.jsxs)(dt,{children:[(0,$.jsx)(pt,{children:p?.action===`delete`?ne():te()}),(0,$.jsx)(ut,{children:p?re({url:String(p.row.url??``),action:p.action}):null})]}),(0,$.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,$.jsx)(N,{onClick:()=>h(null),variant:`outline`,children:ce()}),(0,$.jsx)(N,{onClick:de,children:l()})]})]})})]})}var zt=Rt;export{zt as component}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{a as t}from"./auth-store-8ocF_FHU.js";import{t as n}from"./router-xxaOxfVd.js";import{t as r}from"./react-CO2uhaBc.js";import{Aa as i,Ba as a,Ca as o,Da as s,Ea as c,Fa as l,Fo as u,Ga as d,Go as f,Ha as p,Ia as m,Ja as h,Ka as g,Ko as _,La as ee,Ma as te,Na as ne,Oa as v,Pa as re,Po as y,Qo as b,Ra as ie,Sa as x,Ta as S,Ts as ae,Ua as oe,Va as C,Wa as se,Xp as ce,_a as le,aa as ue,ba as de,ca as fe,da as w,ea as T,fa as pe,ga as me,ha as he,ia as E,ja as D,ka as ge,la as _e,ma as ve,na as O,oa as ye,pa as be,qa as xe,qo as Se,ra as Ce,sa as we,ss as Te,ta as k,tm as Ee,ua as De,uo as Oe,va as ke,wa as A,xa as Ae,ya as je,za as Me}from"./messages-CL4J6BaJ.js";import{r as Ne}from"./route-gtb8yu3E.js";import{I as Pe,o as j,r as Fe}from"./search-provider-CTRbHqNx.js";import{i as M,t as N}from"./button-NLSeBFht.js";import{t as Ie}from"./checkbox-DcRUgRHr.js";import{a as P,c as F,l as Le,r as Re,s as ze,t as Be}from"./dropdown-menu-D72UcvWG.js";import{a as I,i as L,n as R,r as z,t as B}from"./select-D2uO5-De.js";import{t as Ve}from"./separator-CqhQIQ-B.js";import{t as He}from"./switch-BST3z-JX.js";import{t as Ue}from"./createLucideIcon-Br0Bd5k2.js";import{a as V,c as We,d as Ge,f as Ke,l as qe,n as Je,o as Ye,r as Xe,s as Ze,t as Qe,u as $e}from"./data-table-DC6T69tr.js";import{t as et}from"./arrow-left-BpZwGREZ.js";import{t as H}from"./skeleton-B4TLI5_E.js";import{t as tt}from"./ellipsis-74ly4-Wm.js";import{t as nt}from"./empty-state-BtKoq2f4.js";import{n as rt,t as it}from"./main-CTY49s_f.js";import{n as at,t as ot}from"./chains-store-CMJvgCLb.js";import{n as st,t as ct}from"./trash-2-9I8lAjeE.js";import{l as lt}from"./command-vy8966UO.js";import{i as ut,o as dt,r as ft,s as pt,t as mt}from"./dialog-CtyiwzAl.js";import{n as U}from"./dist-Dd-sCJIt.js";import{a as ht,c as W,n as gt,r as _t,s as vt}from"./zod-rwFXxHlg.js";import{a as G,c as yt,i as K,l as bt,n as q,o as J,s as Y,t as xt}from"./form-C_YekIvK.js";import{t as X}from"./input-DAqep8ZY.js";import{t as St}from"./page-header-B7O10aw9.js";import{t as Z}from"./badge-BRKB3301.js";import{t as Ct}from"./use-table-url-state-DP0Y4QjR.js";import{t as wt}from"./long-text-COpCfVI1.js";var Tt=Ue(`stethoscope`,[[`path`,{d:`M11 2v2`,key:`1539x4`}],[`path`,{d:`M5 2v2`,key:`1yf1q8`}],[`path`,{d:`M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1`,key:`rb5t3r`}],[`path`,{d:`M8 15a6 6 0 0 0 12 0v-3`,key:`x18d4x`}],[`circle`,{cx:`20`,cy:`10`,r:`2`,key:`ts1r5v`}]]),Q=e(r(),1),$=Ee(),Et=vt({network:W().min(1,we()),type:_t([`http`,`ws`,`lite`]),purpose:_t([`general`,`manual_verify`,`both`]),url:W().url(ye()),api_key:W().default(``),weight:gt().min(1,ue()),enabled:ht().default(!0)});function Dt({open:e,onOpenChange:n,currentRow:r,onSuccess:i}){let{chains:a}=ot(),o=bt({resolver:yt(Et),defaultValues:{network:``,type:`http`,purpose:`general`,url:``,api_key:``,weight:1,enabled:!0}}),l=t.useMutation(`post`,`/admin/api/v1/rpc-nodes`),d=t.useMutation(`patch`,`/admin/api/v1/rpc-nodes/{id}`);(0,Q.useEffect)(()=>{e&&o.reset({network:r?.network??``,type:r?.type??`http`,purpose:r?.purpose??`general`,url:r?.url??``,api_key:r?.api_key??``,weight:r?.weight??1,enabled:r?.enabled??!0})},[e,r,o]);function f(e){if(r?.id){d.mutate({params:{path:{id:r.id}},body:{url:e.url,api_key:e.api_key,weight:e.weight,enabled:e.enabled,purpose:e.purpose}},{onSuccess:()=>{U.success(_e()),n(!1),i?.()}});return}l.mutate({body:{network:e.network,type:e.type,purpose:e.purpose,url:e.url,api_key:e.api_key,weight:e.weight,enabled:e.enabled}},{onSuccess:()=>{U.success(fe()),n(!1),i?.()}})}let p=l.isPending||d.isPending;return(0,$.jsx)(mt,{onOpenChange:n,open:e,children:(0,$.jsxs)(ft,{children:[(0,$.jsxs)(dt,{children:[(0,$.jsx)(pt,{children:r?le():me()}),(0,$.jsx)(ut,{children:r?he():ve()})]}),(0,$.jsx)(xt,{...o,children:(0,$.jsxs)(`form`,{className:`space-y-4`,onSubmit:o.handleSubmit(f),children:[(0,$.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,$.jsx)(K,{control:o.control,name:`network`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:s()}),(0,$.jsxs)(B,{disabled:!!r,onValueChange:e.onChange,value:e.value,children:[(0,$.jsx)(q,{children:(0,$.jsx)(L,{className:`w-full`,children:(0,$.jsx)(I,{placeholder:Te()})})}),(0,$.jsx)(R,{children:a.filter(e=>!!e.network).map(e=>(0,$.jsx)(z,{value:e.network??``,children:e.display_name??e.network},e.network))})]}),(0,$.jsx)(Y,{})]})}),(0,$.jsx)(K,{control:o.control,name:`type`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:c()}),(0,$.jsxs)(B,{disabled:!!r,onValueChange:e.onChange,value:e.value,children:[(0,$.jsx)(q,{children:(0,$.jsx)(L,{className:`w-full`,children:(0,$.jsx)(I,{placeholder:be()})})}),(0,$.jsxs)(R,{children:[(0,$.jsx)(z,{value:`http`,children:`HTTP`}),(0,$.jsx)(z,{value:`ws`,children:`WebSocket`}),(0,$.jsx)(z,{value:`lite`,children:`TON LiteServer`})]})]}),(0,$.jsx)(Y,{})]})}),(0,$.jsx)(K,{control:o.control,name:`purpose`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:E()}),(0,$.jsxs)(B,{onValueChange:e.onChange,value:e.value,children:[(0,$.jsx)(q,{children:(0,$.jsx)(L,{className:`w-full`,children:(0,$.jsx)(I,{placeholder:Ce()})})}),(0,$.jsxs)(R,{children:[(0,$.jsx)(z,{value:`general`,children:O()}),(0,$.jsx)(z,{value:`manual_verify`,children:k()}),(0,$.jsx)(z,{value:`both`,children:T()})]})]}),(0,$.jsx)(Y,{})]})})]}),(0,$.jsx)(K,{control:o.control,name:`url`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:S()}),(0,$.jsx)(q,{children:(0,$.jsx)(X,{placeholder:`https://api.trongrid.io`,...e})}),(0,$.jsx)(Y,{})]})}),(0,$.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,$.jsx)(K,{control:o.control,name:`api_key`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:`API Key`}),(0,$.jsx)(q,{children:(0,$.jsx)(X,{placeholder:pe(),...e})}),(0,$.jsx)(Y,{})]})}),(0,$.jsx)(K,{control:o.control,name:`weight`,render:({field:e})=>(0,$.jsxs)(G,{children:[(0,$.jsx)(J,{children:A()}),(0,$.jsx)(q,{children:(0,$.jsx)(X,{name:e.name,onBlur:e.onBlur,onChange:t=>e.onChange(t.target.value),ref:e.ref,type:`number`,value:String(e.value??``)})}),(0,$.jsx)(Y,{})]})})]}),(0,$.jsx)(K,{control:o.control,name:`enabled`,render:({field:e})=>(0,$.jsxs)(G,{className:`flex flex-row items-center gap-3 rounded-lg border p-3`,children:[(0,$.jsx)(q,{children:(0,$.jsx)(Ie,{checked:e.value,onCheckedChange:t=>e.onChange(!!t)})}),(0,$.jsxs)(`div`,{className:`space-y-1`,children:[(0,$.jsx)(J,{children:w()}),(0,$.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:De()})]})]})}),(0,$.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,$.jsx)(N,{onClick:()=>n(!1),type:`button`,variant:`outline`,children:ce()}),(0,$.jsx)(N,{disabled:p,type:`submit`,children:p?u():y()})]})]})})]})})}function Ot(e){return[{id:`switch`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:b()}),cell:({row:t})=>(0,$.jsx)(He,{checked:!!t.original.enabled,onCheckedChange:()=>e(t.original.enabled?`disable`:`enable`,t.original)}),enableSorting:!1,enableHiding:!1,meta:{label:b(),skeleton:`switch`,sticky:`left`,th:{className:M(`rounded-tl-[inherit]`)}}},{accessorKey:`status`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:D()}),cell:({row:e})=>{let t=e.original.status??`unknown`,n=`bg-slate-500/10 text-slate-600`,r=v();return t===`ok`?(n=`bg-emerald-500/10 text-emerald-600`,r=i()):t===`down`&&(n=`bg-rose-500/10 text-rose-600`,r=ge()),(0,$.jsx)(Z,{className:n,children:r})},filterFn:(e,t,n)=>n.includes(String(e.getValue(t))),meta:{label:D(),skeleton:`badge`}},{accessorKey:`network`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:s()}),cell:({row:e})=>(0,$.jsx)(`div`,{className:`min-w-24 font-medium`,children:e.original.network??`-`}),enableHiding:!1,meta:{label:s(),skeleton:`short`}},{accessorKey:`type`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:c()}),cell:({row:e})=>kt(e.original.type),filterFn:(e,t,n)=>n.includes(String(e.getValue(t)??`general`)),meta:{label:c(),skeleton:`short`}},{accessorKey:`purpose`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:E()}),cell:({row:e})=>{let t=e.original.purpose??`general`,n=O();return t===`manual_verify`?n=k():t===`both`&&(n=T()),(0,$.jsx)(Z,{variant:`outline`,children:n})},filterFn:(e,t,n)=>n.includes(String(e.getValue(t))),meta:{label:E(),skeleton:`badge`}},{accessorKey:`url`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:S()}),cell:({row:e})=>(0,$.jsx)(wt,{className:`min-w-80`,children:e.original.url??`-`}),meta:{label:S(),skeleton:`long`}},{accessorKey:`weight`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:A()}),cell:({row:e})=>e.original.weight??`-`,meta:{label:A(),skeleton:`id`}},{accessorKey:`last_latency_ms`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:o()}),cell:({row:e})=>e.original.last_latency_ms?`${e.original.last_latency_ms} ms`:`-`,meta:{label:o(),skeleton:`id`}},{accessorKey:`last_checked_at`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:x()}),cell:({row:e})=>j(e.original.last_checked_at),meta:{label:x(),skeleton:`date`}},{accessorKey:`api_key`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:`API Key`}),cell:({row:e})=>(0,$.jsx)(wt,{children:e.original.api_key??`-`}),meta:{label:`API Key`,skeleton:`long`}},{accessorKey:`created_at`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:Se()}),cell:({row:e})=>j(e.original.created_at),meta:{label:Se(),skeleton:`date`}},{accessorKey:`updated_at`,header:({column:e})=>(0,$.jsx)(V,{column:e,title:_()}),cell:({row:e})=>j(e.original.updated_at),meta:{label:_(),skeleton:`date`}},{id:`actions`,enableHiding:!1,meta:{label:f(),skeleton:`action`,sticky:`right`,className:M(`w-12`)},cell:({row:t})=>(0,$.jsxs)(Be,{modal:!1,children:[(0,$.jsx)(Le,{asChild:!0,children:(0,$.jsxs)(N,{className:`flex h-8 w-8 p-0 data-[state=open]:bg-muted`,variant:`ghost`,children:[(0,$.jsx)(tt,{className:`h-4 w-4`}),(0,$.jsx)(`span`,{className:`sr-only`,children:`Open menu`})]})}),(0,$.jsxs)(Re,{align:`end`,className:`w-40`,children:[(0,$.jsxs)(P,{onClick:()=>e(`edit`,t.original),children:[ke(),(0,$.jsx)(F,{children:(0,$.jsx)(at,{size:16})})]}),(0,$.jsxs)(P,{onClick:()=>e(`health-check`,t.original),children:[Ae(),(0,$.jsx)(F,{children:(0,$.jsx)(Tt,{size:16})})]}),(0,$.jsx)(ze,{}),(0,$.jsxs)(P,{onClick:()=>e(`delete`,t.original),variant:`destructive`,children:[Oe(),(0,$.jsx)(F,{children:(0,$.jsx)(ct,{size:16})})]})]})]})}]}function kt(e){return e===`http`?`HTTP`:e===`ws`?`WebSocket`:e===`lite`?`TON LiteServer`:e??`-`}var At=Ne(`/_authenticated/rpc/`),jt=[{label:i(),value:`ok`},{label:ge(),value:`down`},{label:v(),value:`unknown`}];function Mt({data:e,isLoading:t,onAction:n,onRefresh:r}){let[i,a]=(0,Q.useState)([]),{globalFilter:o,onGlobalFilterChange:s,columnFilters:l,onColumnFiltersChange:u,pagination:d,onPaginationChange:f,ensurePageInRange:p}=Ct({search:At.useSearch(),navigate:At.useNavigate(),pagination:{defaultPage:1,defaultPageSize:10},globalFilter:{enabled:!0,key:`keyword`},columnFilters:[{columnId:`type`,searchKey:`type`,type:`array`},{columnId:`status`,searchKey:`status`,type:`array`}]}),m=Ye({data:e,columns:(0,Q.useMemo)(()=>Ot(n),[n]),state:{sorting:i,columnFilters:l,globalFilter:o,pagination:d},onSortingChange:a,onColumnFiltersChange:u,onGlobalFilterChange:s,onPaginationChange:f,globalFilterFn:(e,t,n)=>{let r=String(n).toLowerCase();return(e.original.network??``).toLowerCase().includes(r)||(e.original.url??``).toLowerCase().includes(r)},getCoreRowModel:Ze(),getFilteredRowModel:$e(),getPaginationRowModel:Ge(),getSortedRowModel:Ke(),getFacetedRowModel:We(),getFacetedUniqueValues:qe()});(0,Q.useEffect)(()=>{p(m.getPageCount())},[m,p]);let h=[...new Set(e.map(e=>e.type).filter(Boolean))].map(e=>({label:Nt(e),value:e})),g=[{label:O(),value:`general`},{label:k(),value:`manual_verify`},{label:T(),value:`both`}];return(0,$.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[(0,$.jsx)(Qe,{filters:[{columnId:`type`,title:c(),options:h},{columnId:`purpose`,title:E(),options:g},{columnId:`status`,title:D(),options:[...jt]}],onRefresh:r,searchPlaceholder:de(),table:m}),(0,$.jsx)(Xe,{className:`min-w-[1200px]`,emptyText:je(),loading:t,table:m}),(0,$.jsx)(Je,{className:`mt-auto`,table:m})]})}function Nt(e){return e===`http`?`HTTP`:e===`ws`?`WebSocket`:e===`lite`?`TON LiteServer`:e??`-`}var Pt=[`chain-1`,`chain-2`,`chain-3`,`chain-4`,`chain-5`];function Ft({active:e,children:t,onClick:n}){return(0,$.jsx)(`div`,{className:M(`w-full cursor-pointer rounded-lg px-3 py-3 text-left transition-colors hover:bg-accent hover:text-accent-foreground`,e&&`bg-muted`),onClick:n,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),n())},role:`button`,tabIndex:0,children:t})}function It({chains:e,isLoading:t,keyword:n,onKeywordChange:r,selectedPanel:i,onSelect:a,totalNodes:o,hiddenOnMobile:s}){return(0,$.jsxs)(`div`,{className:M(`flex w-full flex-col gap-2 sm:w-56 lg:w-72 2xl:w-80`,s&&`hidden sm:flex`),children:[(0,$.jsxs)(`div`,{className:`sticky top-0 z-10 -mx-4 bg-background px-4 pb-3 shadow-md sm:static sm:z-auto sm:mx-0 sm:p-0 sm:shadow-none`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between py-2`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsx)(`h1`,{className:`font-bold text-2xl`,children:h()}),(0,$.jsx)(Pe,{size:20})]}),(0,$.jsx)(Z,{variant:`secondary`,children:xe({count:String(e.length)})})]}),(0,$.jsxs)(`div`,{className:`relative block`,children:[(0,$.jsx)(lt,{className:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),(0,$.jsx)(X,{className:`pl-9`,onChange:e=>r(e.target.value),placeholder:g(),value:n})]})]}),(0,$.jsxs)(Fe,{className:`-mx-3 h-full overflow-auto p-3`,children:[(0,$.jsx)(Ft,{active:i===`overview`,onClick:()=>a(`overview`),children:(0,$.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsx)(`div`,{className:`font-medium`,children:d()}),(0,$.jsx)(`div`,{className:`mt-1 text-muted-foreground text-xs`,children:se({chains:String(e.length),nodes:String(o)})})]}),(0,$.jsx)(Pe,{className:`mt-0.5 size-4 text-muted-foreground`})]})}),(0,$.jsx)(Ve,{className:`my-1`}),t?Pt.map(e=>(0,$.jsxs)(`div`,{className:`px-3 py-3`,children:[(0,$.jsx)(`div`,{className:`flex items-center justify-between gap-2`,children:(0,$.jsx)(H,{className:`h-4 w-24`})}),(0,$.jsxs)(`div`,{className:`mt-2 flex items-center justify-between gap-2`,children:[(0,$.jsx)(H,{className:`h-3 w-20`}),(0,$.jsx)(H,{className:`h-5 w-12 rounded-full`})]})]},e)):e.map((t,n)=>{let r=t.network??t.display_name??String(n);return(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Ft,{active:i===t.network,onClick:()=>a(t.network??`overview`),children:(0,$.jsx)(`div`,{className:`flex items-start gap-3`,children:(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsx)(`div`,{className:`truncate font-medium`,children:t.display_name??oe()}),(0,$.jsxs)(`div`,{className:`mt-1 flex items-center justify-between gap-2`,children:[(0,$.jsx)(`span`,{className:`text-muted-foreground text-xs`,children:p({count:String(t.nodeCount??0)})}),(0,$.jsx)(Z,{className:`shrink-0 text-xs`,variant:`outline`,children:t.network??`-`})]})]})})}),nS.reduce((e,t)=>(t.network&&(e[t.network]=(e[t.network]??0)+1),e),{}),[S]),C=(0,Q.useMemo)(()=>e.map(e=>({...e,nodeCount:e.network?oe[e.network]??0:0})),[e,oe]),se=(0,Q.useMemo)(()=>{let e=g.trim().toLowerCase();return e?C.filter(t=>[t.display_name,t.network].filter(Boolean).some(t=>String(t).toLowerCase().includes(e))):C},[C,g]),le=(0,Q.useMemo)(()=>v===`overview`?S:S.filter(e=>e.network===v),[S,v]);(0,Q.useEffect)(()=>{v!==`overview`&&!e.some(e=>e.network===v)&&(y(`overview`),x(null))},[e,v]);async function ue(){await n.invalidateQueries({queryKey:[`get`,`/admin/api/v1/rpc-nodes`]})}async function de(){if(p?.row.id){if(p.action===`delete`)await a.mutateAsync({params:{path:{id:p.row.id}}}),U.success(ie());else if(p.action===`enable`||p.action===`disable`)await o.mutateAsync({params:{path:{id:p.row.id}},body:{enabled:p.action===`enable`}}),U.success(ae());else if(p.action===`health-check`){let e=await s.mutateAsync({params:{path:{id:p.row.id}}}),t=e.data?.status??`unknown`,n=e.data?.last_latency_ms;U.success(ee({status:t,latency:n?m({latency:String(n)}):``}))}await ue(),h(null)}}async function fe(e,t){if(e===`edit`){f(t),u(!0);return}if(e===`enable`||e===`disable`){if(!t.id)return;await o.mutateAsync({params:{path:{id:t.id}},body:{enabled:e===`enable`}}),U.success(ae()),await ue();return}if(e===`delete`){h({action:e,row:t});return}h({action:e,row:t})}let w=b!==null;return(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(rt,{fixed:!0}),(0,$.jsx)(it,{fixed:!0,children:(0,$.jsxs)(`section`,{className:`flex h-full gap-6`,children:[(0,$.jsx)(It,{chains:se,hiddenOnMobile:w,isLoading:r,keyword:g,onKeywordChange:_,onSelect:e=>{y(e),x(e)},selectedPanel:v,totalNodes:S.length}),(0,$.jsx)(`div`,{className:M(`absolute inset-0 start-full z-50 hidden w-full flex-1 flex-col border bg-background shadow-xs sm:static sm:z-auto sm:flex sm:min-w-0 sm:rounded-md sm:border-0 sm:bg-transparent sm:shadow-none`,w&&`inset-s-0 flex`),children:(0,$.jsx)(Lt,{isLoading:i.isLoading,nodes:le,onAction:fe,onBack:()=>x(null),onCreate:()=>{f(null),u(!0)},onRefresh:()=>{i.refetch()}})})]})}),(0,$.jsx)(Dt,{currentRow:d,onOpenChange:u,onSuccess:()=>i.refetch(),open:c}),(0,$.jsx)(mt,{onOpenChange:e=>{e||h(null)},open:!!p,children:(0,$.jsxs)(ft,{children:[(0,$.jsxs)(dt,{children:[(0,$.jsx)(pt,{children:p?.action===`delete`?ne():te()}),(0,$.jsx)(ut,{children:p?re({url:String(p.row.url??``),action:p.action}):null})]}),(0,$.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,$.jsx)(N,{onClick:()=>h(null),variant:`outline`,children:ce()}),(0,$.jsx)(N,{onClick:de,children:l()})]})]})})]})}var zt=Rt;export{zt as component}; \ No newline at end of file diff --git a/src/www/assets/search-provider-C-_FQI9C.js b/src/www/assets/search-provider-CTRbHqNx.js similarity index 98% rename from src/www/assets/search-provider-C-_FQI9C.js rename to src/www/assets/search-provider-CTRbHqNx.js index 09d4a31..737b84c 100644 --- a/src/www/assets/search-provider-C-_FQI9C.js +++ b/src/www/assets/search-provider-CTRbHqNx.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{a as t,l as n,n as r,u as i}from"./auth-store-De4Y7PFV.js";import{t as a}from"./react-CO2uhaBc.js";import{Ap as o,Cp as s,Cu as c,Dp as l,Du as u,Ep as d,Eu as f,Ff as p,Fp as m,Gf as h,Hf as g,Hp as _,If as v,Jf as ee,Kf as y,Kp as b,Mp as x,Nf as S,Np as C,Op as te,Or as w,Ou as ne,Pf as re,Pp as ie,Sp as ae,Tp as oe,Tu as se,Uf as ce,Up as le,Vf as ue,Wf as de,Wp as fe,Xf as pe,Yf as me,bp as he,dt as ge,jp as _e,kp as ve,ku as ye,qf as be,qp as xe,tm as Se,w as Ce,wp as we,wt as Te,wu as Ee,xp as De,yp as Oe,zf as ke}from"./messages-BOatyqUm.js";import{t as Ae}from"./useRouter-DtTm7XkK.js";import{g as je,t as Me}from"./useStore-CupyIEEP.js";import{n as Ne}from"./with-selector-DBfssCrY.js";import{t as Pe}from"./useNavigate-7u4DX0Ho.js";import{t as T}from"./dist-Cc8_LDAq.js";import{i as E,o as Fe,r as Ie,t as D,u as O}from"./button-C_NDYaz8.js";import{a as Le,n as k,r as A}from"./dist-DPPquN_M.js";import{t as j}from"./dist-DvwKOQ8R.js";import{t as M}from"./dist-D4X8zGEB.js";import{n as Re}from"./dist-BNFQuJTu.js";import{a as ze,c as Be,i as Ve,n as He,o as Ue,r as We,s as Ge,t as Ke}from"./dist-iiotRAEO.js";import{t as qe}from"./confirm-dialog-D1L-0EhT.js";import{t as Je}from"./dist-CRowTfGU.js";import{n as Ye,r as N}from"./dist-C5heX0fx.js";import"./separator-CsUemQNs.js";import{i as Xe,n as Ze,r as Qe,t as $e}from"./tooltip-xZuTTfnF.js";import{r as et,t as tt}from"./cookies-BzZOQYPw.js";import{i as nt,n as rt,t as it}from"./wallet-CtiawGS1.js";import{n as at,r as ot}from"./font-provider-BPsIRWbb.js";import{n as P}from"./theme-provider-BREWrHp_.js";import{t as F}from"./createLucideIcon-Br0Bd5k2.js";import{n as st}from"./skeleton-CmDjDV1O.js";import{n as ct,t as lt}from"./sun-JU8p4FoE.js";import{a as ut,c as dt,i as ft,n as pt,o as I,r as mt,s as ht}from"./command-B_SlhXkX.js";import{t as gt}from"./shield-check-MAPDL1u8.js";import{l as _t}from"./dialog-CZ-2RPb-.js";import{t as vt}from"./logo-agrtpj2n.js";import"./input-8zzM34r5.js";var L=e(a(),1);function yt(e){let t=Ae(),n=(0,L.useRef)(void 0);return Me(t.stores.location,r=>{let i=e?.select?e.select(r):r;if(e?.structuralSharing??t.options.defaultStructuralSharing){let e=je(n.current,i);return n.current=e,e}return i})}var bt=Ne();function xt(){return(0,bt.useSyncExternalStore)(St,()=>!0,()=>!1)}function St(){return()=>{}}var R=Se(),z=`Avatar`,[Ct,wt]=Le(z),[Tt,Et]=Ct(z),Dt=L.forwardRef((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,a]=L.useState(`idle`);return(0,R.jsx)(Tt,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:a,children:(0,R.jsx)(T.span,{...r,ref:t})})});Dt.displayName=z;var Ot=`AvatarImage`,kt=L.forwardRef((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...a}=e,o=Et(Ot,n),s=Nt(r,a),c=M(e=>{i(e),o.onImageLoadingStatusChange(e)});return k(()=>{s!==`idle`&&c(s)},[s,c]),s===`loaded`?(0,R.jsx)(T.img,{...a,ref:t,src:r}):null});kt.displayName=Ot;var At=`AvatarFallback`,jt=L.forwardRef((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,a=Et(At,n),[o,s]=L.useState(r===void 0);return L.useEffect(()=>{if(r!==void 0){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),o&&a.imageLoadingStatus!==`loaded`?(0,R.jsx)(T.span,{...i,ref:t}):null});jt.displayName=At;function Mt(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?`loaded`:`loading`):`error`:`idle`}function Nt(e,{referrerPolicy:t,crossOrigin:n}){let r=xt(),i=L.useRef(null),a=r?(i.current||=new window.Image,i.current):null,[o,s]=L.useState(()=>Mt(a,e));return k(()=>{s(Mt(a,e))},[a,e]),k(()=>{let e=e=>()=>{s(e)};if(!a)return;let r=e(`loaded`),i=e(`error`);return a.addEventListener(`load`,r),a.addEventListener(`error`,i),t&&(a.referrerPolicy=t),typeof n==`string`&&(a.crossOrigin=n),()=>{a.removeEventListener(`load`,r),a.removeEventListener(`error`,i)}},[a,n,t]),o}var Pt=Dt,Ft=kt,It=jt;function Lt(e,t){return L.useReducer((e,n)=>t[e][n]??e,e)}var B=`ScrollArea`,[Rt,zt]=Le(B),[Bt,V]=Rt(B),Vt=L.forwardRef((e,t)=>{let{__scopeScrollArea:n,type:r=`hover`,dir:i,scrollHideDelay:a=600,...o}=e,[s,c]=L.useState(null),[l,u]=L.useState(null),[d,f]=L.useState(null),[p,m]=L.useState(null),[h,g]=L.useState(null),[_,v]=L.useState(0),[ee,y]=L.useState(0),[b,x]=L.useState(!1),[S,C]=L.useState(!1),te=O(t,e=>c(e)),w=Re(i);return(0,R.jsx)(Bt,{scope:n,type:r,dir:w,scrollHideDelay:a,scrollArea:s,viewport:l,onViewportChange:u,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:m,scrollbarXEnabled:b,onScrollbarXEnabledChange:x,scrollbarY:h,onScrollbarYChange:g,scrollbarYEnabled:S,onScrollbarYEnabledChange:C,onCornerWidthChange:v,onCornerHeightChange:y,children:(0,R.jsx)(T.div,{dir:w,...o,ref:te,style:{position:`relative`,"--radix-scroll-area-corner-width":_+`px`,"--radix-scroll-area-corner-height":ee+`px`,...e.style}})})});Vt.displayName=B;var Ht=`ScrollAreaViewport`,Ut=L.forwardRef((e,t)=>{let{__scopeScrollArea:n,children:r,nonce:i,...a}=e,o=V(Ht,n),s=O(t,L.useRef(null),o.onViewportChange);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}`},nonce:i}),(0,R.jsx)(T.div,{"data-radix-scroll-area-viewport":``,...a,ref:s,style:{overflowX:o.scrollbarXEnabled?`scroll`:`hidden`,overflowY:o.scrollbarYEnabled?`scroll`:`hidden`,...e.style},children:(0,R.jsx)(`div`,{ref:o.onContentChange,style:{minWidth:`100%`,display:`table`},children:r})})]})});Ut.displayName=Ht;var H=`ScrollAreaScrollbar`,Wt=L.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=V(H,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:o}=i,s=e.orientation===`horizontal`;return L.useEffect(()=>(s?a(!0):o(!0),()=>{s?a(!1):o(!1)}),[s,a,o]),i.type===`hover`?(0,R.jsx)(Gt,{...r,ref:t,forceMount:n}):i.type===`scroll`?(0,R.jsx)(Kt,{...r,ref:t,forceMount:n}):i.type===`auto`?(0,R.jsx)(qt,{...r,ref:t,forceMount:n}):i.type===`always`?(0,R.jsx)(U,{...r,ref:t}):null});Wt.displayName=H;var Gt=L.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=V(H,e.__scopeScrollArea),[a,o]=L.useState(!1);return L.useEffect(()=>{let e=i.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),o(!0)},r=()=>{t=window.setTimeout(()=>o(!1),i.scrollHideDelay)};return e.addEventListener(`pointerenter`,n),e.addEventListener(`pointerleave`,r),()=>{window.clearTimeout(t),e.removeEventListener(`pointerenter`,n),e.removeEventListener(`pointerleave`,r)}}},[i.scrollArea,i.scrollHideDelay]),(0,R.jsx)(j,{present:n||a,children:(0,R.jsx)(qt,{"data-state":a?`visible`:`hidden`,...r,ref:t})})}),Kt=L.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=V(H,e.__scopeScrollArea),a=e.orientation===`horizontal`,o=J(()=>c(`SCROLL_END`),100),[s,c]=Lt(`hidden`,{hidden:{SCROLL:`scrolling`},scrolling:{SCROLL_END:`idle`,POINTER_ENTER:`interacting`},interacting:{SCROLL:`interacting`,POINTER_LEAVE:`idle`},idle:{HIDE:`hidden`,SCROLL:`scrolling`,POINTER_ENTER:`interacting`}});return L.useEffect(()=>{if(s===`idle`){let e=window.setTimeout(()=>c(`HIDE`),i.scrollHideDelay);return()=>window.clearTimeout(e)}},[s,i.scrollHideDelay,c]),L.useEffect(()=>{let e=i.viewport,t=a?`scrollLeft`:`scrollTop`;if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(c(`SCROLL`),o()),n=r};return e.addEventListener(`scroll`,r),()=>e.removeEventListener(`scroll`,r)}},[i.viewport,a,c,o]),(0,R.jsx)(j,{present:n||s!==`hidden`,children:(0,R.jsx)(U,{"data-state":s===`hidden`?`hidden`:`visible`,...r,ref:t,onPointerEnter:A(e.onPointerEnter,()=>c(`POINTER_ENTER`)),onPointerLeave:A(e.onPointerLeave,()=>c(`POINTER_LEAVE`))})})}),qt=L.forwardRef((e,t)=>{let n=V(H,e.__scopeScrollArea),{forceMount:r,...i}=e,[a,o]=L.useState(!1),s=e.orientation===`horizontal`,c=J(()=>{if(n.viewport){let e=n.viewport.offsetWidth{let{orientation:n=`vertical`,...r}=e,i=V(H,e.__scopeScrollArea),a=L.useRef(null),o=L.useRef(0),[s,c]=L.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=rn(s.viewport,s.content),u={...r,sizes:s,onSizesChange:c,hasThumb:l>0&&l<1,onThumbChange:e=>a.current=e,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:e=>o.current=e};function d(e,t){return an(e,o.current,s,t)}return n===`horizontal`?(0,R.jsx)(Jt,{...u,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollLeft,t=on(e,s,i.dir);a.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,i.dir))}}):n===`vertical`?(0,R.jsx)(Yt,{...u,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollTop,t=on(e,s);a.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}}):null}),Jt=L.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=V(H,e.__scopeScrollArea),[o,s]=L.useState(),c=L.useRef(null),l=O(t,c,a.onScrollbarXChange);return L.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),(0,R.jsx)(Qt,{"data-orientation":`horizontal`,...i,ref:l,sizes:n,style:{bottom:0,left:a.dir===`rtl`?`var(--radix-scroll-area-corner-width)`:0,right:a.dir===`ltr`?`var(--radix-scroll-area-corner-width)`:0,"--radix-scroll-area-thumb-width":q(n)+`px`,...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),cn(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&o&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:K(o.paddingLeft),paddingEnd:K(o.paddingRight)}})}})}),Yt=L.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=V(H,e.__scopeScrollArea),[o,s]=L.useState(),c=L.useRef(null),l=O(t,c,a.onScrollbarYChange);return L.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),(0,R.jsx)(Qt,{"data-orientation":`vertical`,...i,ref:l,sizes:n,style:{top:0,right:a.dir===`ltr`?0:void 0,left:a.dir===`rtl`?0:void 0,bottom:`var(--radix-scroll-area-corner-height)`,"--radix-scroll-area-thumb-height":q(n)+`px`,...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),cn(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&o&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:K(o.paddingTop),paddingEnd:K(o.paddingBottom)}})}})}),[Xt,Zt]=Rt(H),Qt=L.forwardRef((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:a,onThumbPointerUp:o,onThumbPointerDown:s,onThumbPositionChange:c,onDragScroll:l,onWheelScroll:u,onResize:d,...f}=e,p=V(H,n),[m,h]=L.useState(null),g=O(t,e=>h(e)),_=L.useRef(null),v=L.useRef(``),ee=p.viewport,y=r.content-r.viewport,b=M(u),x=M(c),S=J(d,10);function C(e){_.current&&l({x:e.clientX-_.current.left,y:e.clientY-_.current.top})}return L.useEffect(()=>{let e=e=>{let t=e.target;m?.contains(t)&&b(e,y)};return document.addEventListener(`wheel`,e,{passive:!1}),()=>document.removeEventListener(`wheel`,e,{passive:!1})},[ee,m,y,b]),L.useEffect(x,[r,x]),Y(m,S),Y(p.content,S),(0,R.jsx)(Xt,{scope:n,scrollbar:m,hasThumb:i,onThumbChange:M(a),onThumbPointerUp:M(o),onThumbPositionChange:x,onThumbPointerDown:M(s),children:(0,R.jsx)(T.div,{...f,ref:g,style:{position:`absolute`,...f.style},onPointerDown:A(e.onPointerDown,e=>{e.button===0&&(e.target.setPointerCapture(e.pointerId),_.current=m.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect=`none`,p.viewport&&(p.viewport.style.scrollBehavior=`auto`),C(e))}),onPointerMove:A(e.onPointerMove,C),onPointerUp:A(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=v.current,p.viewport&&(p.viewport.style.scrollBehavior=``),_.current=null})})})}),W=`ScrollAreaThumb`,$t=L.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=Zt(W,e.__scopeScrollArea);return(0,R.jsx)(j,{present:n||i.hasThumb,children:(0,R.jsx)(en,{ref:t,...r})})}),en=L.forwardRef((e,t)=>{let{__scopeScrollArea:n,style:r,...i}=e,a=V(W,n),o=Zt(W,n),{onThumbPositionChange:s}=o,c=O(t,e=>o.onThumbChange(e)),l=L.useRef(void 0),u=J(()=>{l.current&&=(l.current(),void 0)},100);return L.useEffect(()=>{let e=a.viewport;if(e){let t=()=>{u(),l.current||(l.current=ln(e,s),s())};return s(),e.addEventListener(`scroll`,t),()=>e.removeEventListener(`scroll`,t)}},[a.viewport,u,s]),(0,R.jsx)(T.div,{"data-state":o.hasThumb?`visible`:`hidden`,...i,ref:c,style:{width:`var(--radix-scroll-area-thumb-width)`,height:`var(--radix-scroll-area-thumb-height)`,...r},onPointerDownCapture:A(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;o.onThumbPointerDown({x:n,y:r})}),onPointerUp:A(e.onPointerUp,o.onThumbPointerUp)})});$t.displayName=W;var G=`ScrollAreaCorner`,tn=L.forwardRef((e,t)=>{let n=V(G,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!==`scroll`&&r?(0,R.jsx)(nn,{...e,ref:t}):null});tn.displayName=G;var nn=L.forwardRef((e,t)=>{let{__scopeScrollArea:n,...r}=e,i=V(G,n),[a,o]=L.useState(0),[s,c]=L.useState(0),l=!!(a&&s);return Y(i.scrollbarX,()=>{let e=i.scrollbarX?.offsetHeight||0;i.onCornerHeightChange(e),c(e)}),Y(i.scrollbarY,()=>{let e=i.scrollbarY?.offsetWidth||0;i.onCornerWidthChange(e),o(e)}),l?(0,R.jsx)(T.div,{...r,ref:t,style:{width:a,height:s,position:`absolute`,right:i.dir===`ltr`?0:void 0,left:i.dir===`rtl`?0:void 0,bottom:0,...e.style}}):null});function K(e){return e?parseInt(e,10):0}function rn(e,t){let n=e/t;return isNaN(n)?0:n}function q(e){let t=rn(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function an(e,t,n,r=`ltr`){let i=q(n),a=i/2,o=t||a,s=i-o,c=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r===`ltr`?[0,u]:[u*-1,0];return sn([c,l],d)(e)}function on(e,t,n=`ltr`){let r=q(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=Je(e,n===`ltr`?[0,o]:[o*-1,0]);return sn([0,o],[0,s])(c)}function sn(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function cn(e,t){return e>0&&e{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)};function J(e,t){let n=M(e),r=L.useRef(0);return L.useEffect(()=>()=>window.clearTimeout(r.current),[]),L.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Y(e,t){let n=M(t);k(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var un=Vt,dn=Ut,fn=tn,pn=F(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),mn=F(`coins`,[[`path`,{d:`M13.744 17.736a6 6 0 1 1-7.48-7.48`,key:`bq4yh3`}],[`path`,{d:`M15 6h1v4`,key:`11y1tn`}],[`path`,{d:`m6.134 14.768.866-.5 2 3.464`,key:`17snzx`}],[`circle`,{cx:`16`,cy:`8`,r:`6`,key:`14bfc9`}]]),hn=F(`credit-card`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`5`,rx:`2`,key:`ynyp8z`}],[`line`,{x1:`2`,x2:`22`,y1:`10`,y2:`10`,key:`1b3vmo`}]]),gn=F(`git-branch`,[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]),_n=F(`key-round`,[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]),vn=F(`laptop`,[[`path`,{d:`M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z`,key:`1pdavp`}],[`path`,{d:`M20.054 15.987H3.946`,key:`14rxg9`}]]),yn=F(`layout-dashboard`,[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]),bn=F(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),xn=F(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),Sn=F(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),Cn=F(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),wn=F(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Tn=F(`shopping-cart`,[[`circle`,{cx:`8`,cy:`21`,r:`1`,key:`jimo8o`}],[`circle`,{cx:`19`,cy:`21`,r:`1`,key:`13723u`}],[`path`,{d:`M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12`,key:`9zh506`}]]),En=F(`waypoints`,[[`path`,{d:`m10.586 5.414-5.172 5.172`,key:`4mc350`}],[`path`,{d:`m18.586 13.414-5.172 5.172`,key:`8c96vv`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`circle`,{cx:`12`,cy:`20`,r:`2`,key:`144qzu`}],[`circle`,{cx:`12`,cy:`4`,r:`2`,key:`muu5ef`}],[`circle`,{cx:`20`,cy:`12`,r:`2`,key:`1xzzfp`}],[`circle`,{cx:`4`,cy:`12`,r:`2`,key:`1hvhnz`}]]);function Dn({dir:e,className:t,...n}){return(0,R.jsxs)(`svg`,{className:E(e===`rtl`&&`rotate-y-180`,t),"data-name":`icon-dir-${e}`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,R.jsx)(`title`,{children:`Directory Icon`}),(0,R.jsx)(`path`,{d:`M23.42.51h51.92c2.21 0 4 1.79 4 4v42.18c0 2.21-1.79 4-4 4H23.42s-.04-.02-.04-.04V.55s.02-.04.04-.04z`,opacity:.15}),(0,R.jsx)(`path`,{d:`M5.56 14.88L17.78 14.88`,fill:`none`,opacity:.72,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M5.56 22.09L16.08 22.09`,fill:`none`,opacity:.48,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M5.56 18.38L14.93 18.38`,fill:`none`,opacity:.55,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsxs)(`g`,{strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`circle`,{cx:7.51,cy:7.4,opacity:.8,r:2.54}),(0,R.jsx)(`path`,{d:`M12.06 6.14L17.78 6.14`,fill:`none`,opacity:.8,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M11.85 8.79L16.91 8.79`,fill:`none`,opacity:.6})]}),(0,R.jsx)(`path`,{d:`M29.41 7.4L34.67 7.4`,fill:`none`,opacity:.62,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`3px`}),(0,R.jsx)(`rect`,{height:2.73,opacity:.44,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:26.03,x:28.76,y:11.21}),(0,R.jsx)(`rect`,{height:13.48,opacity:.3,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:44.25,x:28.76,y:17.01}),(0,R.jsx)(`rect`,{height:4.67,opacity:.21,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:44.25,x:28.76,y:33.57}),(0,R.jsx)(`rect`,{height:4.67,opacity:.3,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:36.21,x:28.76,y:41.32})]})}function On(e){return(0,R.jsxs)(`svg`,{"data-name":`icon-layout-compact`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Compact Layout`}),(0,R.jsx)(`rect`,{height:40,rx:2,ry:2,strokeLinecap:`round`,strokeMiterlimit:10,width:4,x:5.84,y:5.2}),(0,R.jsxs)(`g`,{stroke:`#fff`,strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`path`,{d:`M7.26 11.56L8.37 11.56`,fill:`none`,opacity:.66,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M7.26 14.49L8.37 14.49`,fill:`none`,opacity:.51,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M7.26 17.39L8.37 17.39`,fill:`none`,opacity:.52,strokeWidth:`2px`}),(0,R.jsx)(`circle`,{cx:7.81,cy:7.25,fill:`#fff`,opacity:.8,r:1.16})]}),(0,R.jsx)(`path`,{d:`M15.81 14.49L22.89 14.49`,fill:`none`,opacity:.75,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`3px`}),(0,R.jsx)(`rect`,{height:2.73,opacity:.5,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:22.19,x:14.93,y:18.39}),(0,R.jsx)(`rect`,{height:2.73,opacity:.9,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:59.16,x:14.93,y:5.89}),(0,R.jsx)(`rect`,{height:19.95,opacity:.4,rx:2.11,ry:2.11,strokeLinecap:`round`,strokeMiterlimit:10,width:32.68,x:14.93,y:24.22}),(0,R.jsxs)(`g`,{strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`rect`,{height:3.42,opacity:.32,rx:.33,ry:.33,width:2.01,x:59.05,y:38.15}),(0,R.jsx)(`rect`,{height:6.58,opacity:.44,rx:.33,ry:.33,width:2.01,x:54.78,y:34.99}),(0,R.jsx)(`rect`,{height:8.7,opacity:.53,rx:.33,ry:.33,width:2.01,x:63.17,y:32.86}),(0,R.jsx)(`rect`,{height:12.4,opacity:.66,rx:.33,ry:.33,width:2.01,x:67.54,y:29.17})]}),(0,R.jsxs)(`g`,{opacity:.5,children:[(0,R.jsx)(`circle`,{cx:62.16,cy:18.63,r:7.5}),(0,R.jsx)(`path`,{d:`M62.16 11.63c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.14-7-7 3.14-7 7-7m0-1c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8z`})]}),(0,R.jsxs)(`g`,{opacity:.74,children:[(0,R.jsx)(`path`,{d:`M63.04 18.13l3.38-5.67c.93.64 1.7 1.48 2.26 2.47.56.98.89 2.08.96 3.21h-6.6z`}),(0,R.jsx)(`path`,{d:`M66.57 13.19a6.977 6.977 0 012.52 4.44h-5.17l2.65-4.44m-.31-1.43l-4.1 6.87h8c0-1.39-.36-2.75-1.04-3.95a8.007 8.007 0 00-2.86-2.92z`})]})]})}function kn(e){return(0,R.jsxs)(`svg`,{"data-name":`con-layout-default`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Default Layout`}),(0,R.jsx)(`path`,{d:`M39.22 15.99h-8.16c-.79 0-1.43-.67-1.43-1.5s.64-1.5 1.43-1.5h8.16c.79 0 1.43.67 1.43 1.5s-.64 1.5-1.43 1.5z`,opacity:.75}),(0,R.jsx)(`rect`,{height:2.73,opacity:.5,rx:1.36,ry:1.36,width:16.72,x:29.63,y:18.39}),(0,R.jsx)(`path`,{d:`M75.1 6.68v1.45c0 .63-.49 1.14-1.09 1.14H30.72c-.6 0-1.09-.51-1.09-1.14V6.68c0-.62.49-1.14 1.09-1.14h43.29c.6 0 1.09.52 1.09 1.14z`,opacity:.9}),(0,R.jsx)(`rect`,{height:19.95,opacity:.4,rx:2.11,ry:2.11,width:21.8,x:29.63,y:24.22}),(0,R.jsxs)(`g`,{strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`rect`,{height:3.42,opacity:.32,rx:.33,ry:.33,width:2.01,x:61.06,y:38.15}),(0,R.jsx)(`rect`,{height:6.58,opacity:.44,rx:.33,ry:.33,width:2.01,x:56.78,y:34.99}),(0,R.jsx)(`rect`,{height:8.7,opacity:.53,rx:.33,ry:.33,width:2.01,x:65.17,y:32.86}),(0,R.jsx)(`rect`,{height:12.4,opacity:.66,rx:.33,ry:.33,width:2.01,x:69.55,y:29.17})]}),(0,R.jsxs)(`g`,{opacity:.5,children:[(0,R.jsx)(`circle`,{cx:63.17,cy:18.63,r:7.5}),(0,R.jsx)(`path`,{d:`M63.17 11.63c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.14-7-7 3.14-7 7-7m0-1c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8z`})]}),(0,R.jsxs)(`g`,{opacity:.74,children:[(0,R.jsx)(`path`,{d:`M64.05 18.13l3.38-5.67c.93.64 1.7 1.48 2.26 2.47.56.98.89 2.08.96 3.21h-6.6z`}),(0,R.jsx)(`path`,{d:`M67.57 13.19a6.977 6.977 0 012.52 4.44h-5.17l2.65-4.44m-.31-1.43l-4.1 6.87h8c0-1.39-.36-2.75-1.04-3.95a8.007 8.007 0 00-2.86-2.92z`})]}),(0,R.jsxs)(`g`,{strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`rect`,{height:40,opacity:.8,rx:2,ry:2,width:19.14,x:5.84,y:5.02}),(0,R.jsxs)(`g`,{stroke:`#fff`,children:[(0,R.jsx)(`path`,{d:`M9.02 17.39L21.25 17.39`,fill:`none`,opacity:.72,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M9.02 24.6L19.54 24.6`,fill:`none`,opacity:.48,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M9.02 20.88L18.4 20.88`,fill:`none`,opacity:.55,strokeWidth:`2px`}),(0,R.jsx)(`circle`,{cx:10.98,cy:9.91,fill:`#fff`,opacity:.8,r:2.54}),(0,R.jsx)(`path`,{d:`M15.53 8.65L21.25 8.65`,fill:`none`,opacity:.8,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M15.32 11.3L20.38 11.3`,fill:`none`,opacity:.6})]})]})]})}function An(e){return(0,R.jsxs)(`svg`,{"data-name":`icon-layout-full`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Full Layout`}),(0,R.jsx)(`path`,{d:`M6.85 14.49L15.02 14.49`,fill:`none`,opacity:.75,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`3px`}),(0,R.jsx)(`rect`,{height:2.73,opacity:.5,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:25.6,x:5.84,y:18.39}),(0,R.jsx)(`rect`,{height:2.73,opacity:.9,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:68.26,x:5.84,y:5.89}),(0,R.jsx)(`rect`,{height:19.95,opacity:.4,rx:2.11,ry:2.11,strokeLinecap:`round`,strokeMiterlimit:10,width:37.71,x:5.84,y:24.22}),(0,R.jsxs)(`g`,{strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`rect`,{height:3.42,opacity:.32,rx:.33,ry:.33,width:2.01,x:59.05,y:38.15}),(0,R.jsx)(`rect`,{height:6.58,opacity:.44,rx:.33,ry:.33,width:2.01,x:54.78,y:34.99}),(0,R.jsx)(`rect`,{height:8.7,opacity:.53,rx:.33,ry:.33,width:2.01,x:63.17,y:32.86}),(0,R.jsx)(`rect`,{height:12.4,opacity:.66,rx:.33,ry:.33,width:2.01,x:67.54,y:29.17})]}),(0,R.jsxs)(`g`,{opacity:.5,children:[(0,R.jsx)(`circle`,{cx:62.16,cy:18.63,r:7.5}),(0,R.jsx)(`path`,{d:`M62.16 11.63c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.14-7-7 3.14-7 7-7m0-1c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8z`})]}),(0,R.jsxs)(`g`,{opacity:.74,children:[(0,R.jsx)(`path`,{d:`M63.04 18.13l3.38-5.67c.93.64 1.7 1.48 2.26 2.47.56.98.89 2.08.96 3.21h-6.6z`}),(0,R.jsx)(`path`,{d:`M66.57 13.19a6.977 6.977 0 012.52 4.44h-5.17l2.65-4.44m-.31-1.43l-4.1 6.87h8c0-1.39-.36-2.75-1.04-3.95a8.007 8.007 0 00-2.86-2.92z`})]})]})}function jn(e){return(0,R.jsxs)(`svg`,{"data-name":`icon-sidebar-floating`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Floating Sidebar`}),(0,R.jsx)(`rect`,{height:40,opacity:.8,rx:2,ry:2,strokeLinecap:`round`,strokeMiterlimit:10,width:19.74,x:5.89,y:5.15}),(0,R.jsxs)(`g`,{stroke:`#fff`,strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`path`,{d:`M9.81 18.36L22.04 18.36`,fill:`none`,opacity:.72,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M9.81 25.57L20.33 25.57`,fill:`none`,opacity:.48,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M9.81 21.85L19.18 21.85`,fill:`none`,opacity:.55,strokeWidth:`2px`}),(0,R.jsx)(`circle`,{cx:11.76,cy:10.88,fill:`#fff`,opacity:.8,r:2.54}),(0,R.jsx)(`path`,{d:`M16.31 9.62L22.04 9.62`,fill:`none`,opacity:.8,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M16.1 12.27L21.16 12.27`,fill:`none`,opacity:.6})]}),(0,R.jsx)(`path`,{d:`M30.59 9.62L35.85 9.62`,fill:`none`,opacity:.62,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`3px`}),(0,R.jsx)(`rect`,{height:2.73,opacity:.44,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:26.03,x:29.94,y:13.42}),(0,R.jsx)(`rect`,{height:25.87,opacity:.3,rx:2,ry:2,strokeLinecap:`round`,strokeMiterlimit:10,width:43.11,x:29.94,y:19.28})]})}function Mn(e){return(0,R.jsxs)(`svg`,{"data-name":`icon-sidebar-inset`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Inset Sidebar`}),(0,R.jsx)(`rect`,{height:40,opacity:.2,rx:2,ry:2,strokeLinecap:`round`,strokeMiterlimit:10,width:50.22,x:23.39,y:5.57}),(0,R.jsx)(`path`,{d:`M5.08 17.05L17.31 17.05`,fill:`none`,opacity:.72,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M5.08 24.25L15.6 24.25`,fill:`none`,opacity:.48,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M5.08 20.54L14.46 20.54`,fill:`none`,opacity:.55,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsxs)(`g`,{strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`circle`,{cx:7.04,cy:9.57,opacity:.8,r:2.54}),(0,R.jsx)(`path`,{d:`M11.59 8.3L17.31 8.3`,fill:`none`,opacity:.8,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M11.38 10.95L16.44 10.95`,fill:`none`,opacity:.6})]})]})}function Nn(e){return(0,R.jsxs)(`svg`,{"data-name":`icon-sidebar-sidebar`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Sidebar`}),(0,R.jsx)(`path`,{d:`M23.42.51h51.99c2.21 0 4 1.79 4 4v42.18c0 2.21-1.79 4-4 4H23.42s-.04-.02-.04-.04V.55s.02-.04.04-.04z`,opacity:.2,strokeLinecap:`round`,strokeMiterlimit:10}),(0,R.jsx)(`path`,{d:`M5.56 14.88L17.78 14.88`,fill:`none`,opacity:.72,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M5.56 22.09L16.08 22.09`,fill:`none`,opacity:.48,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M5.56 18.38L14.93 18.38`,fill:`none`,opacity:.55,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsxs)(`g`,{strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`circle`,{cx:7.51,cy:7.4,opacity:.8,r:2.54}),(0,R.jsx)(`path`,{d:`M12.06 6.14L17.78 6.14`,fill:`none`,opacity:.8,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M11.85 8.79L16.91 8.79`,fill:`none`,opacity:.6})]})]})}function Pn(e){return(0,R.jsxs)(`svg`,{"aria-label":`Dark theme icon`,"data-name":`icon-theme-dark`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Dark Theme`}),(0,R.jsxs)(`g`,{fill:`#1d2b3f`,children:[(0,R.jsx)(`rect`,{height:50.14,rx:3.5,ry:3.5,width:78.83,x:.53,y:.5}),(0,R.jsx)(`path`,{d:`M75.86 1c1.65 0 3 1.35 3 3v43.14c0 1.65-1.35 3-3 3H4.03c-1.65 0-3-1.35-3-3V4c0-1.65 1.35-3 3-3h71.83m0-1H4.03c-2.21 0-4 1.79-4 4v43.14c0 2.21 1.79 4 4 4h71.83c2.21 0 4-1.79 4-4V4c0-2.21-1.79-4-4-4z`})]}),(0,R.jsx)(`path`,{d:`M22.88 0h52.97c2.21 0 4 1.79 4 4v43.14c0 2.21-1.79 4-4 4H22.88V0z`,fill:`#0d1628`}),(0,R.jsx)(`circle`,{cx:6.7,cy:7.04,fill:`#426187`,r:3.54}),(0,R.jsx)(`path`,{d:`M18.12 6.39h-5.87c-.6 0-1.09-.45-1.09-1s.49-1 1.09-1h5.87c.6 0 1.09.45 1.09 1s-.49 1-1.09 1zM16.55 9.77h-4.24c-.55 0-1-.45-1-1s.45-1 1-1h4.24c.55 0 1 .45 1 1s-.45 1-1 1zM18.32 17.37H4.59c-.69 0-1.25-.47-1.25-1.05s.56-1.05 1.25-1.05h13.73c.69 0 1.25.47 1.25 1.05s-.56 1.05-1.25 1.05zM15.34 21.26h-11c-.55 0-1-.41-1-.91s.45-.91 1-.91h11c.55 0 1 .41 1 .91s-.45.91-1 .91zM16.46 25.57H4.43c-.6 0-1.09-.44-1.09-.98s.49-.98 1.09-.98h12.03c.6 0 1.09.44 1.09.98s-.49.98-1.09.98z`,fill:`#426187`}),(0,R.jsxs)(`g`,{fill:`#2a62bc`,children:[(0,R.jsx)(`rect`,{height:3.42,opacity:.32,rx:.33,ry:.33,width:2.75,x:33.36,y:19.73}),(0,R.jsx)(`rect`,{height:6.58,opacity:.44,rx:.33,ry:.33,width:2.75,x:29.64,y:16.57}),(0,R.jsx)(`rect`,{height:8.7,opacity:.53,rx:.33,ry:.33,width:2.75,x:37.16,y:14.44}),(0,R.jsx)(`rect`,{height:12.4,opacity:.53,rx:.33,ry:.33,width:2.75,x:41.19,y:10.75})]}),(0,R.jsx)(`circle`,{cx:62.74,cy:16.32,fill:`#2f5491`,opacity:.5,r:8}),(0,R.jsx)(`path`,{d:`M62.74 16.32l4.1-6.87c1.19.71 2.18 1.72 2.86 2.92s1.04 2.57 1.04 3.95h-8z`,fill:`#2f5491`,opacity:.74}),(0,R.jsx)(`rect`,{fill:`#17273f`,height:18.62,rx:1.69,ry:1.69,width:41.62,x:29.64,y:27.75})]})}function Fn(e){return(0,R.jsxs)(`svg`,{"aria-label":`Light theme icon`,"data-name":`icon-theme-light`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Light Theme`}),(0,R.jsxs)(`g`,{fill:`#d9d9d9`,children:[(0,R.jsx)(`rect`,{height:50.14,rx:3.5,ry:3.5,width:78.83,x:.53,y:.5}),(0,R.jsx)(`path`,{d:`M75.86 1c1.65 0 3 1.35 3 3v43.14c0 1.65-1.35 3-3 3H4.03c-1.65 0-3-1.35-3-3V4c0-1.65 1.35-3 3-3h71.83m0-1H4.03c-2.21 0-4 1.79-4 4v43.14c0 2.21 1.79 4 4 4h71.83c2.21 0 4-1.79 4-4V4c0-2.21-1.79-4-4-4z`})]}),(0,R.jsx)(`path`,{d:`M22.88 0h52.97c2.21 0 4 1.79 4 4v43.14c0 2.21-1.79 4-4 4H22.88V0z`,fill:`#ecedef`}),(0,R.jsx)(`circle`,{cx:6.7,cy:7.04,fill:`#fff`,r:3.54}),(0,R.jsx)(`path`,{d:`M18.12 6.39h-5.87c-.6 0-1.09-.45-1.09-1s.49-1 1.09-1h5.87c.6 0 1.09.45 1.09 1s-.49 1-1.09 1zM16.55 9.77h-4.24c-.55 0-1-.45-1-1s.45-1 1-1h4.24c.55 0 1 .45 1 1s-.45 1-1 1zM18.32 17.37H4.59c-.69 0-1.25-.47-1.25-1.05s.56-1.05 1.25-1.05h13.73c.69 0 1.25.47 1.25 1.05s-.56 1.05-1.25 1.05zM15.34 21.26h-11c-.55 0-1-.41-1-.91s.45-.91 1-.91h11c.55 0 1 .41 1 .91s-.45.91-1 .91zM16.46 25.57H4.43c-.6 0-1.09-.44-1.09-.98s.49-.98 1.09-.98h12.03c.6 0 1.09.44 1.09.98s-.49.98-1.09.98z`,fill:`#fff`}),(0,R.jsxs)(`g`,{fill:`#c0c4c4`,children:[(0,R.jsx)(`rect`,{height:3.42,opacity:.32,rx:.33,ry:.33,width:2.75,x:33.36,y:19.73}),(0,R.jsx)(`rect`,{height:6.58,opacity:.44,rx:.33,ry:.33,width:2.75,x:29.64,y:16.57}),(0,R.jsx)(`rect`,{height:8.7,opacity:.53,rx:.33,ry:.33,width:2.75,x:37.16,y:14.44}),(0,R.jsx)(`rect`,{height:12.4,opacity:.53,rx:.33,ry:.33,width:2.75,x:41.19,y:10.75})]}),(0,R.jsx)(`circle`,{cx:62.74,cy:16.32,fill:`#fff`,r:8}),(0,R.jsxs)(`g`,{fill:`#d9d9d9`,children:[(0,R.jsx)(`path`,{d:`M63.62 15.82L67 10.15c.93.64 1.7 1.48 2.26 2.47.56.98.89 2.08.96 3.21h-6.6z`}),(0,R.jsx)(`path`,{d:`M67.14 10.88a6.977 6.977 0 012.52 4.44h-5.17l2.65-4.44m-.31-1.43l-4.1 6.87h8c0-1.39-.36-2.75-1.04-3.95s-1.67-2.21-2.86-2.92z`})]}),(0,R.jsx)(`rect`,{fill:`#fff`,height:18.62,rx:1.69,ry:1.69,width:41.62,x:29.64,y:27.75})]})}function In({className:e,...t}){return(0,R.jsxs)(`svg`,{"aria-label":`System theme icon`,className:E(`overflow-hidden rounded-[6px]`,`fill-primary stroke-primary group-data-[state=unchecked]:fill-muted-foreground group-data-[state=unchecked]:stroke-muted-foreground`,e),"data-name":`icon-theme-system`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...t,children:[(0,R.jsx)(`title`,{children:`System Theme`}),(0,R.jsx)(`path`,{d:`M0 0.03H22.88V51.17H0z`,opacity:.2}),(0,R.jsx)(`circle`,{cx:6.7,cy:7.04,fill:`#fff`,opacity:.8,r:3.54,stroke:`#fff`,strokeLinecap:`round`,strokeMiterlimit:10}),(0,R.jsx)(`path`,{d:`M18.12 6.39h-5.87c-.6 0-1.09-.45-1.09-1s.49-1 1.09-1h5.87c.6 0 1.09.45 1.09 1s-.49 1-1.09 1zM16.55 9.77h-4.24c-.55 0-1-.45-1-1s.45-1 1-1h4.24c.55 0 1 .45 1 1s-.45 1-1 1z`,fill:`#fff`,opacity:.75,stroke:`none`}),(0,R.jsx)(`path`,{d:`M18.32 17.37H4.59c-.69 0-1.25-.47-1.25-1.05s.56-1.05 1.25-1.05h13.73c.69 0 1.25.47 1.25 1.05s-.56 1.05-1.25 1.05z`,fill:`#fff`,opacity:.72,stroke:`none`}),(0,R.jsx)(`path`,{d:`M15.34 21.26h-11c-.55 0-1-.41-1-.91s.45-.91 1-.91h11c.55 0 1 .41 1 .91s-.45.91-1 .91z`,fill:`#fff`,opacity:.55,stroke:`none`}),(0,R.jsx)(`path`,{d:`M16.46 25.57H4.43c-.6 0-1.09-.44-1.09-.98s.49-.98 1.09-.98h12.03c.6 0 1.09.44 1.09.98s-.49.98-1.09.98z`,fill:`#fff`,opacity:.67,stroke:`none`}),(0,R.jsx)(`rect`,{height:3.42,opacity:.31,rx:.33,ry:.33,stroke:`none`,width:2.75,x:33.36,y:19.73}),(0,R.jsx)(`rect`,{height:6.58,opacity:.4,rx:.33,ry:.33,stroke:`none`,width:2.75,x:29.64,y:16.57}),(0,R.jsx)(`rect`,{height:8.7,opacity:.26,rx:.33,ry:.33,stroke:`none`,width:2.75,x:37.16,y:14.44}),(0,R.jsx)(`rect`,{height:12.4,opacity:.37,rx:.33,ry:.33,stroke:`none`,width:2.75,x:41.19,y:10.75}),(0,R.jsxs)(`g`,{children:[(0,R.jsx)(`circle`,{cx:62.74,cy:16.32,opacity:.25,r:8}),(0,R.jsx)(`path`,{d:`M62.74 16.32l4.1-6.87c1.19.71 2.18 1.72 2.86 2.92s1.04 2.57 1.04 3.95h-8z`,opacity:.45})]}),(0,R.jsx)(`rect`,{height:18.62,opacity:.3,rx:1.69,ry:1.69,stroke:`none`,strokeLinecap:`round`,strokeMiterlimit:10,width:41.62,x:29.64,y:27.75})]})}function Ln({...e}){return(0,R.jsx)(Ue,{"data-slot":`sheet`,...e})}function Rn({...e}){return(0,R.jsx)(Be,{"data-slot":`sheet-trigger`,...e})}function zn({...e}){return(0,R.jsx)(ze,{"data-slot":`sheet-portal`,...e})}function Bn({className:e,...t}){return(0,R.jsx)(Ve,{className:E(`data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in`,e),"data-slot":`sheet-overlay`,...t})}function Vn({className:e,children:t,side:n=`right`,showCloseButton:r=!0,...i}){return(0,R.jsxs)(zn,{children:[(0,R.jsx)(Bn,{}),(0,R.jsxs)(He,{className:E(`fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=open]:animate-in data-[state=closed]:duration-300 data-[state=open]:duration-500`,n===`right`&&`data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm`,n===`left`&&`data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm`,n===`top`&&`data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b`,n===`bottom`&&`data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t`,e),"data-slot":`sheet-content`,...i,children:[t,r&&(0,R.jsxs)(Ke,{className:`absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary`,children:[(0,R.jsx)(_t,{className:`size-4`}),(0,R.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function Hn({className:e,...t}){return(0,R.jsx)(`div`,{className:E(`flex flex-col gap-1.5 p-4`,e),"data-slot":`sheet-header`,...t})}function Un({className:e,...t}){return(0,R.jsx)(`div`,{className:E(`mt-auto flex flex-col gap-2 p-4`,e),"data-slot":`sheet-footer`,...t})}function Wn({className:e,...t}){return(0,R.jsx)(Ge,{className:E(`font-semibold text-foreground`,e),"data-slot":`sheet-title`,...t})}function Gn({className:e,...t}){return(0,R.jsx)(We,{className:E(`text-muted-foreground text-sm`,e),"data-slot":`sheet-description`,...t})}var Kn=`layout_collapsible`,qn=`layout_variant`,Jn=3600*24*7,Yn=`sidebar`,Xn=`icon`,Zn=(0,L.createContext)(null);function Qn({children:e}){let[t,n]=(0,L.useState)(()=>tt(Kn)||Xn),[r,i]=(0,L.useState)(()=>tt(qn)||Yn),a=e=>{n(e),et(Kn,e,Jn)},o=e=>{i(e),et(qn,e,Jn)};return(0,R.jsx)(Zn,{value:{resetLayout:()=>{a(Xn),o(Yn)},defaultCollapsible:Xn,collapsible:t,setCollapsible:a,defaultVariant:Yn,variant:r,setVariant:o},children:e})}function X(){let e=(0,L.useContext)(Zn);if(!e)throw Error(`useLayout must be used within a LayoutProvider`);return e}var $n=768;function er(){let[e,t]=L.useState(void 0);return L.useEffect(()=>{let e=window.matchMedia(`(max-width: ${$n-1}px)`),n=()=>{t(window.innerWidth<$n)};return e.addEventListener(`change`,n),t(window.innerWidth<$n),()=>e.removeEventListener(`change`,n)},[]),!!e}var tr=`16rem`,nr=`18rem`,rr=`3rem`,ir=`b`,ar=L.createContext(null);function Z(){let e=L.useContext(ar);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function or({defaultOpen:e=!0,open:t,onOpenChange:r,className:a,style:o,children:s,...c}){let l=er(),[u,d]=L.useState(!1),[f,p]=L.useState(e),m=t??f,h=L.useCallback(e=>{let t=typeof e==`function`?e(m):e;r?r(t):p(t),document.cookie=`${i}=${t}; path=/; max-age=${n}`},[r,m]),g=L.useCallback(()=>l?d(e=>!e):h(e=>!e),[l,h]);L.useEffect(()=>{let e=e=>{e.key===ir&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),g())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[g]);let _=m?`expanded`:`collapsed`,v=L.useMemo(()=>({state:_,open:m,setOpen:h,isMobile:l,openMobile:u,setOpenMobile:d,toggleSidebar:g}),[_,m,h,l,u,g]);return(0,R.jsx)(ar.Provider,{value:v,children:(0,R.jsx)(Qe,{delayDuration:0,children:(0,R.jsx)(`div`,{className:E(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar`,a),"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":tr,"--sidebar-width-icon":rr,...o},...c,children:s})})})}function sr({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,...a}){let{isMobile:o,state:s,openMobile:c,setOpenMobile:l}=Z();return n===`none`?(0,R.jsx)(`div`,{className:E(`flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground`,r),"data-slot":`sidebar`,...a,children:i}):o?(0,R.jsx)(Ln,{onOpenChange:l,open:c,...a,children:(0,R.jsxs)(Vn,{className:`w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden`,"data-mobile":`true`,"data-sidebar":`sidebar`,"data-slot":`sidebar`,side:e,style:{"--sidebar-width":nr},children:[(0,R.jsxs)(Hn,{className:`sr-only`,children:[(0,R.jsx)(Wn,{children:`Sidebar`}),(0,R.jsx)(Gn,{children:`Displays the mobile sidebar.`})]}),(0,R.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:i})]})}):(0,R.jsxs)(`div`,{className:`group peer hidden text-sidebar-foreground md:block`,"data-collapsible":s===`collapsed`?n:``,"data-side":e,"data-slot":`sidebar`,"data-state":s,"data-variant":t,children:[(0,R.jsx)(`div`,{className:E(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,t===`floating`||t===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`),"data-slot":`sidebar-gap`}),(0,R.jsx)(`div`,{className:E(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,e===`left`?`left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,t===`floating`||t===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,r),"data-slot":`sidebar-container`,...a,children:(0,R.jsx)(`div`,{className:`flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm`,"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,children:i})})]})}function cr({className:e,onClick:t,...n}){let{toggleSidebar:r}=Z();return(0,R.jsxs)(D,{className:E(`size-7`,e),"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,onClick:e=>{t?.(e),r()},size:`icon`,variant:`ghost`,...n,children:[(0,R.jsx)(xn,{}),(0,R.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function lr({className:e,...t}){let{toggleSidebar:n}=Z();return(0,R.jsx)(`button`,{"aria-label":`Toggle Sidebar`,className:E(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex`,`in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`group-data-[collapsible=offcanvas]:translate-x-0 hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:after:left-full`,`[[data-side=left][data-collapsible=offcanvas]_&]:-right-2`,`[[data-side=right][data-collapsible=offcanvas]_&]:-left-2`,e),"data-sidebar":`rail`,"data-slot":`sidebar-rail`,onClick:n,tabIndex:-1,title:`Toggle Sidebar`,...t})}function ur({className:e,...t}){return(0,R.jsx)(`main`,{className:E(`relative flex w-full flex-1 flex-col bg-background`,`md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm`,e),"data-slot":`sidebar-inset`,...t})}function dr({className:e,...t}){return(0,R.jsx)(`div`,{className:E(`flex flex-col gap-2 p-2`,e),"data-sidebar":`header`,"data-slot":`sidebar-header`,...t})}function fr({className:e,...t}){return(0,R.jsx)(`div`,{className:E(`flex flex-col gap-2 p-2`,e),"data-sidebar":`footer`,"data-slot":`sidebar-footer`,...t})}function pr({className:e,...t}){return(0,R.jsx)(`div`,{className:E(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),"data-sidebar":`content`,"data-slot":`sidebar-content`,...t})}function mr({className:e,...t}){return(0,R.jsx)(`div`,{className:E(`relative flex w-full min-w-0 flex-col p-2`,e),"data-sidebar":`group`,"data-slot":`sidebar-group`,...t})}function hr({className:e,asChild:t=!1,...n}){return(0,R.jsx)(t?Fe:`div`,{className:E(`flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-sidebar-foreground/70 text-xs outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0`,e),"data-sidebar":`group-label`,"data-slot":`sidebar-group-label`,...n})}function gr({className:e,...t}){return(0,R.jsx)(`ul`,{className:E(`flex w-full min-w-0 flex-col gap-1`,e),"data-sidebar":`menu`,"data-slot":`sidebar-menu`,...t})}function _r({className:e,...t}){return(0,R.jsx)(`li`,{className:E(`group/menu-item relative`,e),"data-sidebar":`menu-item`,"data-slot":`sidebar-menu-item`,...t})}var vr=Ie(`peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function yr({asChild:e=!1,isActive:t=!1,variant:n=`default`,size:r=`default`,tooltip:i,className:a,...o}){let s=e?Fe:`button`,{isMobile:c,state:l}=Z(),u=(0,R.jsx)(s,{className:E(vr({variant:n,size:r}),a),"data-active":t,"data-sidebar":`menu-button`,"data-size":r,"data-slot":`sidebar-menu-button`,...o});return i?(typeof i==`string`&&(i={children:i}),(0,R.jsxs)($e,{children:[(0,R.jsx)(Xe,{asChild:!0,children:u}),(0,R.jsx)(Ze,{align:`center`,hidden:l!==`collapsed`||c,side:`right`,...i})]})):u}function br({className:e,...t}){return(0,R.jsx)(`ul`,{className:E(`mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-sidebar-border border-l px-2.5 py-0.5`,`group-data-[collapsible=icon]:hidden`,e),"data-sidebar":`menu-sub`,"data-slot":`sidebar-menu-sub`,...t})}function xr({className:e,...t}){return(0,R.jsx)(`li`,{className:E(`group/menu-sub-item relative`,e),"data-sidebar":`menu-sub-item`,"data-slot":`sidebar-menu-sub-item`,...t})}function Sr({asChild:e=!1,size:t=`md`,isActive:n=!1,className:r,...i}){return(0,R.jsx)(e?Fe:`a`,{className:E(`flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-hidden ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground`,`data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground`,t===`sm`&&`text-xs`,t===`md`&&`text-sm`,`group-data-[collapsible=icon]:hidden`,r),"data-active":n,"data-sidebar":`menu-sub-button`,"data-size":t,"data-slot":`sidebar-menu-sub-button`,...i})}function Cr(){return(0,R.jsxs)(Ln,{children:[(0,R.jsx)(Rn,{asChild:!0,children:(0,R.jsx)(D,{"aria-describedby":`config-drawer-description`,"aria-label":`Open theme settings`,className:`rounded-full`,size:`icon`,variant:`ghost`,children:(0,R.jsx)(wn,{"aria-hidden":`true`})})}),(0,R.jsx)(wr,{})]})}function wr(){let{setOpen:e}=Z(),{resetDir:t}=nt(),{resetFont:n}=at(),{resetTheme:r}=P(),{resetLayout:i}=X();return(0,R.jsxs)(Vn,{className:`flex flex-col`,children:[(0,R.jsxs)(Hn,{className:`pb-0 text-start`,children:[(0,R.jsx)(Wn,{children:C()}),(0,R.jsx)(Gn,{id:`config-drawer-description`,children:x()})]}),(0,R.jsxs)(`div`,{className:`space-y-6 overflow-y-auto px-4`,children:[(0,R.jsx)(Er,{}),(0,R.jsx)(Tr,{}),(0,R.jsx)(Dr,{}),(0,R.jsx)(Or,{}),(0,R.jsx)(kr,{})]}),(0,R.jsx)(Un,{className:`gap-2`,children:(0,R.jsx)(D,{"aria-label":`Reset all settings to default values`,onClick:()=>{e(!0),t(),n(),r(),i()},variant:`destructive`,children:_e()})})]})}function Q({title:e,showReset:t=!1,onReset:n,className:r}){return(0,R.jsxs)(`div`,{className:E(`mb-2 flex items-center gap-2 font-semibold text-muted-foreground text-sm`,r),children:[e,t&&n&&(0,R.jsx)(D,{className:`size-4 rounded-full`,onClick:n,size:`icon`,variant:`secondary`,children:(0,R.jsx)(Sn,{className:`size-3`})})]})}function $({item:e,isTheme:t=!1}){return(0,R.jsxs)(Ye,{"aria-describedby":`${e.value}-description`,"aria-label":`Select ${e.label.toLowerCase()}`,className:E(`group outline-none`,`transition duration-200 ease-in`),value:e.value,children:[(0,R.jsxs)(`div`,{"aria-hidden":`false`,"aria-label":`${e.label} option preview`,className:E(`relative rounded-[6px] ring-[1px] ring-border`,`group-data-[state=checked]:shadow-2xl group-data-[state=checked]:ring-primary`,`group-focus-visible:ring-2`),role:`img`,children:[(0,R.jsx)(rt,{"aria-hidden":`true`,className:E(`size-6 fill-primary stroke-white`,`group-data-[state=unchecked]:hidden`,`absolute top-0 right-0 translate-x-1/2 -translate-y-1/2`)}),(0,R.jsx)(e.icon,{"aria-hidden":`true`,className:E(!t&&`fill-primary stroke-primary group-data-[state=unchecked]:fill-muted-foreground group-data-[state=unchecked]:stroke-muted-foreground`)})]}),(0,R.jsx)(`div`,{"aria-live":`polite`,className:`mt-1 text-xs`,id:`${e.value}-description`,children:e.label})]})}function Tr(){let{defaultTheme:e,theme:t,setTheme:n}=P();return(0,R.jsxs)(`div`,{children:[(0,R.jsx)(Q,{onReset:()=>n(e),showReset:t!==e,title:o()}),(0,R.jsx)(N,{"aria-describedby":`theme-description`,"aria-label":`Select theme preference`,className:`grid w-full max-w-md grid-cols-3 gap-4`,onValueChange:n,value:t,children:[{value:`system`,label:_(),icon:In},{value:`light`,label:fe(),icon:Fn},{value:`dark`,label:le(),icon:Pn}].map(e=>(0,R.jsx)($,{isTheme:!0,item:e},e.value))}),(0,R.jsx)(`div`,{className:`sr-only`,id:`theme-description`,children:`Choose between system preference, light mode, or dark mode`})]})}function Er(){let{font:e,setFont:t,resetFont:n}=at();return(0,R.jsxs)(`div`,{children:[(0,R.jsx)(Q,{onReset:n,showReset:e!==ot[0],title:Te()}),(0,R.jsx)(`select`,{className:`w-full rounded-md border border-input bg-background px-3 py-2 text-sm`,onChange:e=>t(e.target.value),value:e,children:ot.map(e=>(0,R.jsx)(`option`,{value:e,children:e},e))})]})}function Dr(){let{defaultVariant:e,variant:t,setVariant:n}=X();return(0,R.jsxs)(`div`,{className:`max-md:hidden`,children:[(0,R.jsx)(Q,{onReset:()=>n(e),showReset:e!==t,title:ve()}),(0,R.jsx)(N,{"aria-describedby":`sidebar-description`,"aria-label":`Select sidebar style`,className:`grid w-full max-w-md grid-cols-3 gap-4`,onValueChange:n,value:t,children:[{value:`inset`,label:d(),icon:Mn},{value:`floating`,label:oe(),icon:jn},{value:`sidebar`,label:we(),icon:Nn}].map(e=>(0,R.jsx)($,{item:e},e.value))}),(0,R.jsx)(`div`,{className:`sr-only`,id:`sidebar-description`,children:`Choose between inset, floating, or standard sidebar layout`})]})}function Or(){let{open:e,setOpen:t}=Z(),{defaultCollapsible:n,collapsible:r,setCollapsible:i}=X(),a=e?`default`:r;return(0,R.jsxs)(`div`,{className:`max-md:hidden`,children:[(0,R.jsx)(Q,{onReset:()=>{t(!0),i(n)},showReset:a!==`default`,title:te()}),(0,R.jsx)(N,{"aria-describedby":`layout-description`,"aria-label":`Select layout style`,className:`grid w-full max-w-md grid-cols-3 gap-4`,onValueChange:e=>{if(e===`default`){t(!0);return}t(!1),i(e)},value:a,children:[{value:`default`,label:s(),icon:kn},{value:`icon`,label:ae(),icon:On},{value:`offcanvas`,label:De(),icon:An}].map(e=>(0,R.jsx)($,{item:e},e.value))}),(0,R.jsx)(`div`,{className:`sr-only`,id:`layout-description`,children:`Choose between default expanded, compact icon-only, or full layout mode`})]})}function kr(){let{defaultDir:e,dir:t,setDir:n}=nt();return(0,R.jsxs)(`div`,{children:[(0,R.jsx)(Q,{onReset:()=>n(e),showReset:e!==t,title:l()}),(0,R.jsx)(N,{"aria-describedby":`direction-description`,"aria-label":`Select site direction`,className:`grid w-full max-w-md grid-cols-3 gap-4`,onValueChange:n,value:t,children:[{value:`ltr`,label:he(),icon:e=>(0,R.jsx)(Dn,{dir:`ltr`,...e})},{value:`rtl`,label:Oe(),icon:e=>(0,R.jsx)(Dn,{dir:`rtl`,...e})}].map(e=>(0,R.jsx)($,{item:e},e.value))}),(0,R.jsx)(`div`,{className:`sr-only`,id:`direction-description`,children:`Choose between left-to-right or right-to-left site direction`})]})}function Ar({open:e,onOpenChange:n}){let i=Pe(),a=yt(),o=t.useMutation(`post`,`/admin/api/v1/auth/logout`);return(0,R.jsx)(qe,{className:`sm:max-w-sm`,confirmText:o.isPending?ge():xe(),desc:b(),destructive:!0,handleConfirm:async()=>{await o.mutateAsync({}),r();let e=a.href;i({to:`/sign-in`,search:{redirect:e},replace:!0})},onOpenChange:n,open:e,title:xe()})}function jr({className:e,size:t=`default`,...n}){return(0,R.jsx)(Pt,{className:E(`group/avatar relative flex size-8 shrink-0 select-none overflow-hidden rounded-full data-[size=lg]:size-10 data-[size=sm]:size-6`,e),"data-size":t,"data-slot":`avatar`,...n})}function Mr({className:e,...t}){return(0,R.jsx)(Ft,{className:E(`aspect-square size-full`,e),"data-slot":`avatar-image`,...t})}function Nr({className:e,...t}){return(0,R.jsx)(It,{className:E(`flex size-full items-center justify-center rounded-full bg-muted text-muted-foreground text-sm group-data-[size=sm]/avatar:text-xs`,e),"data-slot":`avatar-fallback`,...t})}function Pr(e=null){let[t,n]=(0,L.useState)(e);return[t,e=>n(t=>t===e?null:e)]}function Fr(e){if(!e)return`-`;let t=new Date(e.replace(` `,`T`));return Number.isNaN(t.getTime())?e:new Intl.DateTimeFormat(`zh-TW`,{year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:!1}).format(t)}function Ir(e){return e?e.includes(` `)?e.slice(11,16):e.slice(5):``}function Lr(e,t=2){return Number(e??0).toLocaleString(`en-US`,{maximumFractionDigits:t})}function Rr(e,t=2){return`$${Number(e??0).toLocaleString(`en-US`,{maximumFractionDigits:t})}`}function zr(){return{user:{name:`GMPay`,email:`admin@gmpay.local`,avatar:`/avatars/shadcn.jpg`},teams:[{name:`GMPay`,logo:vt,plan:ye()}],navGroups:[{title:pe(),items:[{title:me(),url:`/dashboard`,icon:yn},{title:ne(),icon:mn,items:[{title:u(),url:`/payment-setup`},{title:f(),url:`/payment-setup/integrations`}]}]},{title:se(),items:[{title:ee(),url:`/orders`,icon:Tn}]},{title:Ee(),items:[{title:c(),url:`/addresses`,icon:it}]},{title:y(),items:[{title:h(),url:`/chains`,icon:gn},{title:de(),url:`/rpc`,icon:En}]},{title:ce(),items:[{title:be(),url:`/keys`,icon:hn},{title:g(),icon:wn,items:[{title:v(),url:`/settings`},{title:p(),url:`/settings/telegram`},{title:w(),url:`/settings/system`},{title:re(),url:`/settings/pay`},{title:S(),url:`/settings/epay`},{title:Ce(),url:`/settings/okpay`}]},{title:ue(),icon:gt,items:[{title:ke(),url:`/account/password`}]}]}]}}function Br({className:e,children:t,...n}){return(0,R.jsxs)(un,{className:E(`relative`,e),"data-slot":`scroll-area`,...n,children:[(0,R.jsx)(dn,{className:`size-full rounded-[inherit] outline-none transition-[color,box-shadow] focus-visible:outline-1 focus-visible:ring-[3px] focus-visible:ring-ring/50`,"data-slot":`scroll-area-viewport`,children:t}),(0,R.jsx)(Vr,{}),(0,R.jsx)(fn,{})]})}function Vr({className:e,orientation:t=`vertical`,...n}){return(0,R.jsx)(Wt,{className:E(`flex touch-none select-none p-px transition-colors`,t===`vertical`&&`h-full w-2.5 border-l border-l-transparent`,t===`horizontal`&&`h-2.5 flex-col border-t border-t-transparent`,e),"data-slot":`scroll-area-scrollbar`,orientation:t,...n,children:(0,R.jsx)($t,{className:`relative flex-1 rounded-full bg-border`,"data-slot":`scroll-area-thumb`})})}function Hr(){let e=Pe(),{setTheme:t}=P(),{open:n,setOpen:r}=Gr(),i=zr(),a=L.useCallback(e=>{r(!1),e()},[r]);return(0,R.jsxs)(pt,{modal:!0,onOpenChange:r,open:n,children:[(0,R.jsx)(ut,{placeholder:m()}),(0,R.jsx)(ht,{children:(0,R.jsxs)(Br,{className:`h-72 pe-1`,type:`hover`,children:[(0,R.jsx)(mt,{children:ie()}),i.navGroups.map(t=>(0,R.jsx)(ft,{heading:t.title,children:t.items.map(t=>t.url?(0,R.jsxs)(I,{onSelect:()=>{a(()=>e({to:t.url}))},value:t.title,children:[(0,R.jsx)(`div`,{className:`flex size-4 items-center justify-center`,children:(0,R.jsx)(pn,{className:`size-2 text-muted-foreground/80`})}),t.title]},t.url):t.items?.map(n=>(0,R.jsxs)(I,{onSelect:()=>{a(()=>e({to:n.url}))},value:`${t.title}-${n.url}`,children:[(0,R.jsx)(`div`,{className:`flex size-4 items-center justify-center`,children:(0,R.jsx)(pn,{className:`size-2 text-muted-foreground/80`})}),t.title,` `,(0,R.jsx)(st,{}),` `,n.title]},`${t.title}-${n.url}`)))},t.title)),(0,R.jsx)(dt,{}),(0,R.jsxs)(ft,{heading:o(),children:[(0,R.jsxs)(I,{onSelect:()=>a(()=>t(`light`)),children:[(0,R.jsx)(lt,{}),` `,(0,R.jsx)(`span`,{children:fe()})]}),(0,R.jsxs)(I,{onSelect:()=>a(()=>t(`dark`)),children:[(0,R.jsx)(ct,{className:`scale-90`}),(0,R.jsx)(`span`,{children:le()})]}),(0,R.jsxs)(I,{onSelect:()=>a(()=>t(`system`)),children:[(0,R.jsx)(vn,{}),(0,R.jsx)(`span`,{children:_()})]})]})]})})]})}var Ur=(0,L.createContext)(null);function Wr({children:e}){let[t,n]=(0,L.useState)(!1);return(0,L.useEffect)(()=>{let e=e=>{e.key===`k`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),n(e=>!e))};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[]),(0,R.jsxs)(Ur,{value:{open:t,setOpen:n},children:[e,(0,R.jsx)(Hr,{})]})}var Gr=()=>{let e=(0,L.useContext)(Ur);if(!e)throw Error(`useSearch has to be used within SearchProvider`);return e};export{lr as A,gn as B,gr as C,Sr as D,br as E,Ln as F,mn as H,En as I,Cn as L,Z as M,Qn as N,xr as O,X as P,bn as R,ur as S,_r as T,hn as V,pr as _,Rr as a,hr as b,Ir as c,Nr as d,Mr as f,sr as g,wr as h,zr as i,cr as j,or as k,Pr as l,Cr as m,Gr as n,Fr as o,Ar as p,Br as r,Lr as s,Wr as t,jr as u,fr as v,yr as w,dr as x,mr as y,_n as z}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{a as t,l as n,n as r,u as i}from"./auth-store-8ocF_FHU.js";import{t as a}from"./react-CO2uhaBc.js";import{Ap as o,Cp as s,Cu as c,Dp as l,Du as u,Ep as d,Eu as f,Ff as p,Fp as m,Gf as h,Hf as g,Hp as _,If as v,Jf as ee,Kf as y,Kp as b,Mp as x,Nf as S,Np as C,Op as te,Or as w,Ou as ne,Pf as re,Pp as ie,Sp as ae,Tp as oe,Tu as se,Uf as ce,Up as le,Vf as ue,Wf as de,Wp as fe,Xf as pe,Yf as me,bp as he,dt as ge,jp as _e,kp as ve,ku as ye,qf as be,qp as xe,tm as Se,w as Ce,wp as we,wt as Te,wu as Ee,xp as De,yp as Oe,zf as ke}from"./messages-CL4J6BaJ.js";import{t as Ae}from"./useRouter-DtTm7XkK.js";import{g as je,t as Me}from"./useStore-CupyIEEP.js";import{n as Ne}from"./with-selector-DBfssCrY.js";import{t as Pe}from"./useNavigate-7u4DX0Ho.js";import{t as T}from"./dist-D3WFT-Yo.js";import{i as E,o as Fe,r as Ie,t as D,u as O}from"./button-NLSeBFht.js";import{a as Le,n as k,r as A}from"./dist-DmeeHi7K.js";import{t as j}from"./dist-BZMqLvO-.js";import{t as M}from"./dist-SR6sl-WU.js";import{n as Re}from"./dist-CGRahgI2.js";import{a as ze,c as Be,i as Ve,n as He,o as Ue,r as We,s as Ge,t as Ke}from"./dist-DPYswSIO.js";import{t as qe}from"./confirm-dialog-Crc1Jrzv.js";import{t as Je}from"./dist-CRowTfGU.js";import{n as Ye,r as N}from"./dist-DA1qWiix.js";import"./separator-CqhQIQ-B.js";import{i as Xe,n as Ze,r as Qe,t as $e}from"./tooltip-QxnX5RKP.js";import{r as et,t as tt}from"./cookies-BzZOQYPw.js";import{i as nt,n as rt,t as it}from"./wallet-Cdhl16hF.js";import{n as at,r as ot}from"./font-provider-C4_iupSb.js";import{n as P}from"./theme-provider-ixHkEVGI.js";import{t as F}from"./createLucideIcon-Br0Bd5k2.js";import{n as st}from"./skeleton-B4TLI5_E.js";import{n as ct,t as lt}from"./sun-JU8p4FoE.js";import{a as ut,c as dt,i as ft,n as pt,o as I,r as mt,s as ht}from"./command-vy8966UO.js";import{t as gt}from"./shield-check-MAPDL1u8.js";import{l as _t}from"./dialog-CtyiwzAl.js";import{t as vt}from"./logo-CBibDHP9.js";import"./input-DAqep8ZY.js";var L=e(a(),1);function yt(e){let t=Ae(),n=(0,L.useRef)(void 0);return Me(t.stores.location,r=>{let i=e?.select?e.select(r):r;if(e?.structuralSharing??t.options.defaultStructuralSharing){let e=je(n.current,i);return n.current=e,e}return i})}var bt=Ne();function xt(){return(0,bt.useSyncExternalStore)(St,()=>!0,()=>!1)}function St(){return()=>{}}var R=Se(),z=`Avatar`,[Ct,wt]=Le(z),[Tt,Et]=Ct(z),Dt=L.forwardRef((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,a]=L.useState(`idle`);return(0,R.jsx)(Tt,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:a,children:(0,R.jsx)(T.span,{...r,ref:t})})});Dt.displayName=z;var Ot=`AvatarImage`,kt=L.forwardRef((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...a}=e,o=Et(Ot,n),s=Nt(r,a),c=M(e=>{i(e),o.onImageLoadingStatusChange(e)});return k(()=>{s!==`idle`&&c(s)},[s,c]),s===`loaded`?(0,R.jsx)(T.img,{...a,ref:t,src:r}):null});kt.displayName=Ot;var At=`AvatarFallback`,jt=L.forwardRef((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,a=Et(At,n),[o,s]=L.useState(r===void 0);return L.useEffect(()=>{if(r!==void 0){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),o&&a.imageLoadingStatus!==`loaded`?(0,R.jsx)(T.span,{...i,ref:t}):null});jt.displayName=At;function Mt(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?`loaded`:`loading`):`error`:`idle`}function Nt(e,{referrerPolicy:t,crossOrigin:n}){let r=xt(),i=L.useRef(null),a=r?(i.current||=new window.Image,i.current):null,[o,s]=L.useState(()=>Mt(a,e));return k(()=>{s(Mt(a,e))},[a,e]),k(()=>{let e=e=>()=>{s(e)};if(!a)return;let r=e(`loaded`),i=e(`error`);return a.addEventListener(`load`,r),a.addEventListener(`error`,i),t&&(a.referrerPolicy=t),typeof n==`string`&&(a.crossOrigin=n),()=>{a.removeEventListener(`load`,r),a.removeEventListener(`error`,i)}},[a,n,t]),o}var Pt=Dt,Ft=kt,It=jt;function Lt(e,t){return L.useReducer((e,n)=>t[e][n]??e,e)}var B=`ScrollArea`,[Rt,zt]=Le(B),[Bt,V]=Rt(B),Vt=L.forwardRef((e,t)=>{let{__scopeScrollArea:n,type:r=`hover`,dir:i,scrollHideDelay:a=600,...o}=e,[s,c]=L.useState(null),[l,u]=L.useState(null),[d,f]=L.useState(null),[p,m]=L.useState(null),[h,g]=L.useState(null),[_,v]=L.useState(0),[ee,y]=L.useState(0),[b,x]=L.useState(!1),[S,C]=L.useState(!1),te=O(t,e=>c(e)),w=Re(i);return(0,R.jsx)(Bt,{scope:n,type:r,dir:w,scrollHideDelay:a,scrollArea:s,viewport:l,onViewportChange:u,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:m,scrollbarXEnabled:b,onScrollbarXEnabledChange:x,scrollbarY:h,onScrollbarYChange:g,scrollbarYEnabled:S,onScrollbarYEnabledChange:C,onCornerWidthChange:v,onCornerHeightChange:y,children:(0,R.jsx)(T.div,{dir:w,...o,ref:te,style:{position:`relative`,"--radix-scroll-area-corner-width":_+`px`,"--radix-scroll-area-corner-height":ee+`px`,...e.style}})})});Vt.displayName=B;var Ht=`ScrollAreaViewport`,Ut=L.forwardRef((e,t)=>{let{__scopeScrollArea:n,children:r,nonce:i,...a}=e,o=V(Ht,n),s=O(t,L.useRef(null),o.onViewportChange);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}`},nonce:i}),(0,R.jsx)(T.div,{"data-radix-scroll-area-viewport":``,...a,ref:s,style:{overflowX:o.scrollbarXEnabled?`scroll`:`hidden`,overflowY:o.scrollbarYEnabled?`scroll`:`hidden`,...e.style},children:(0,R.jsx)(`div`,{ref:o.onContentChange,style:{minWidth:`100%`,display:`table`},children:r})})]})});Ut.displayName=Ht;var H=`ScrollAreaScrollbar`,Wt=L.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=V(H,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:o}=i,s=e.orientation===`horizontal`;return L.useEffect(()=>(s?a(!0):o(!0),()=>{s?a(!1):o(!1)}),[s,a,o]),i.type===`hover`?(0,R.jsx)(Gt,{...r,ref:t,forceMount:n}):i.type===`scroll`?(0,R.jsx)(Kt,{...r,ref:t,forceMount:n}):i.type===`auto`?(0,R.jsx)(qt,{...r,ref:t,forceMount:n}):i.type===`always`?(0,R.jsx)(U,{...r,ref:t}):null});Wt.displayName=H;var Gt=L.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=V(H,e.__scopeScrollArea),[a,o]=L.useState(!1);return L.useEffect(()=>{let e=i.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),o(!0)},r=()=>{t=window.setTimeout(()=>o(!1),i.scrollHideDelay)};return e.addEventListener(`pointerenter`,n),e.addEventListener(`pointerleave`,r),()=>{window.clearTimeout(t),e.removeEventListener(`pointerenter`,n),e.removeEventListener(`pointerleave`,r)}}},[i.scrollArea,i.scrollHideDelay]),(0,R.jsx)(j,{present:n||a,children:(0,R.jsx)(qt,{"data-state":a?`visible`:`hidden`,...r,ref:t})})}),Kt=L.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=V(H,e.__scopeScrollArea),a=e.orientation===`horizontal`,o=J(()=>c(`SCROLL_END`),100),[s,c]=Lt(`hidden`,{hidden:{SCROLL:`scrolling`},scrolling:{SCROLL_END:`idle`,POINTER_ENTER:`interacting`},interacting:{SCROLL:`interacting`,POINTER_LEAVE:`idle`},idle:{HIDE:`hidden`,SCROLL:`scrolling`,POINTER_ENTER:`interacting`}});return L.useEffect(()=>{if(s===`idle`){let e=window.setTimeout(()=>c(`HIDE`),i.scrollHideDelay);return()=>window.clearTimeout(e)}},[s,i.scrollHideDelay,c]),L.useEffect(()=>{let e=i.viewport,t=a?`scrollLeft`:`scrollTop`;if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(c(`SCROLL`),o()),n=r};return e.addEventListener(`scroll`,r),()=>e.removeEventListener(`scroll`,r)}},[i.viewport,a,c,o]),(0,R.jsx)(j,{present:n||s!==`hidden`,children:(0,R.jsx)(U,{"data-state":s===`hidden`?`hidden`:`visible`,...r,ref:t,onPointerEnter:A(e.onPointerEnter,()=>c(`POINTER_ENTER`)),onPointerLeave:A(e.onPointerLeave,()=>c(`POINTER_LEAVE`))})})}),qt=L.forwardRef((e,t)=>{let n=V(H,e.__scopeScrollArea),{forceMount:r,...i}=e,[a,o]=L.useState(!1),s=e.orientation===`horizontal`,c=J(()=>{if(n.viewport){let e=n.viewport.offsetWidth{let{orientation:n=`vertical`,...r}=e,i=V(H,e.__scopeScrollArea),a=L.useRef(null),o=L.useRef(0),[s,c]=L.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=rn(s.viewport,s.content),u={...r,sizes:s,onSizesChange:c,hasThumb:l>0&&l<1,onThumbChange:e=>a.current=e,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:e=>o.current=e};function d(e,t){return an(e,o.current,s,t)}return n===`horizontal`?(0,R.jsx)(Jt,{...u,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollLeft,t=on(e,s,i.dir);a.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,i.dir))}}):n===`vertical`?(0,R.jsx)(Yt,{...u,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollTop,t=on(e,s);a.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}}):null}),Jt=L.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=V(H,e.__scopeScrollArea),[o,s]=L.useState(),c=L.useRef(null),l=O(t,c,a.onScrollbarXChange);return L.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),(0,R.jsx)(Qt,{"data-orientation":`horizontal`,...i,ref:l,sizes:n,style:{bottom:0,left:a.dir===`rtl`?`var(--radix-scroll-area-corner-width)`:0,right:a.dir===`ltr`?`var(--radix-scroll-area-corner-width)`:0,"--radix-scroll-area-thumb-width":q(n)+`px`,...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),cn(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&o&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:K(o.paddingLeft),paddingEnd:K(o.paddingRight)}})}})}),Yt=L.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=V(H,e.__scopeScrollArea),[o,s]=L.useState(),c=L.useRef(null),l=O(t,c,a.onScrollbarYChange);return L.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),(0,R.jsx)(Qt,{"data-orientation":`vertical`,...i,ref:l,sizes:n,style:{top:0,right:a.dir===`ltr`?0:void 0,left:a.dir===`rtl`?0:void 0,bottom:`var(--radix-scroll-area-corner-height)`,"--radix-scroll-area-thumb-height":q(n)+`px`,...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),cn(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&o&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:K(o.paddingTop),paddingEnd:K(o.paddingBottom)}})}})}),[Xt,Zt]=Rt(H),Qt=L.forwardRef((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:a,onThumbPointerUp:o,onThumbPointerDown:s,onThumbPositionChange:c,onDragScroll:l,onWheelScroll:u,onResize:d,...f}=e,p=V(H,n),[m,h]=L.useState(null),g=O(t,e=>h(e)),_=L.useRef(null),v=L.useRef(``),ee=p.viewport,y=r.content-r.viewport,b=M(u),x=M(c),S=J(d,10);function C(e){_.current&&l({x:e.clientX-_.current.left,y:e.clientY-_.current.top})}return L.useEffect(()=>{let e=e=>{let t=e.target;m?.contains(t)&&b(e,y)};return document.addEventListener(`wheel`,e,{passive:!1}),()=>document.removeEventListener(`wheel`,e,{passive:!1})},[ee,m,y,b]),L.useEffect(x,[r,x]),Y(m,S),Y(p.content,S),(0,R.jsx)(Xt,{scope:n,scrollbar:m,hasThumb:i,onThumbChange:M(a),onThumbPointerUp:M(o),onThumbPositionChange:x,onThumbPointerDown:M(s),children:(0,R.jsx)(T.div,{...f,ref:g,style:{position:`absolute`,...f.style},onPointerDown:A(e.onPointerDown,e=>{e.button===0&&(e.target.setPointerCapture(e.pointerId),_.current=m.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect=`none`,p.viewport&&(p.viewport.style.scrollBehavior=`auto`),C(e))}),onPointerMove:A(e.onPointerMove,C),onPointerUp:A(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=v.current,p.viewport&&(p.viewport.style.scrollBehavior=``),_.current=null})})})}),W=`ScrollAreaThumb`,$t=L.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=Zt(W,e.__scopeScrollArea);return(0,R.jsx)(j,{present:n||i.hasThumb,children:(0,R.jsx)(en,{ref:t,...r})})}),en=L.forwardRef((e,t)=>{let{__scopeScrollArea:n,style:r,...i}=e,a=V(W,n),o=Zt(W,n),{onThumbPositionChange:s}=o,c=O(t,e=>o.onThumbChange(e)),l=L.useRef(void 0),u=J(()=>{l.current&&=(l.current(),void 0)},100);return L.useEffect(()=>{let e=a.viewport;if(e){let t=()=>{u(),l.current||(l.current=ln(e,s),s())};return s(),e.addEventListener(`scroll`,t),()=>e.removeEventListener(`scroll`,t)}},[a.viewport,u,s]),(0,R.jsx)(T.div,{"data-state":o.hasThumb?`visible`:`hidden`,...i,ref:c,style:{width:`var(--radix-scroll-area-thumb-width)`,height:`var(--radix-scroll-area-thumb-height)`,...r},onPointerDownCapture:A(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;o.onThumbPointerDown({x:n,y:r})}),onPointerUp:A(e.onPointerUp,o.onThumbPointerUp)})});$t.displayName=W;var G=`ScrollAreaCorner`,tn=L.forwardRef((e,t)=>{let n=V(G,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!==`scroll`&&r?(0,R.jsx)(nn,{...e,ref:t}):null});tn.displayName=G;var nn=L.forwardRef((e,t)=>{let{__scopeScrollArea:n,...r}=e,i=V(G,n),[a,o]=L.useState(0),[s,c]=L.useState(0),l=!!(a&&s);return Y(i.scrollbarX,()=>{let e=i.scrollbarX?.offsetHeight||0;i.onCornerHeightChange(e),c(e)}),Y(i.scrollbarY,()=>{let e=i.scrollbarY?.offsetWidth||0;i.onCornerWidthChange(e),o(e)}),l?(0,R.jsx)(T.div,{...r,ref:t,style:{width:a,height:s,position:`absolute`,right:i.dir===`ltr`?0:void 0,left:i.dir===`rtl`?0:void 0,bottom:0,...e.style}}):null});function K(e){return e?parseInt(e,10):0}function rn(e,t){let n=e/t;return isNaN(n)?0:n}function q(e){let t=rn(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function an(e,t,n,r=`ltr`){let i=q(n),a=i/2,o=t||a,s=i-o,c=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r===`ltr`?[0,u]:[u*-1,0];return sn([c,l],d)(e)}function on(e,t,n=`ltr`){let r=q(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=Je(e,n===`ltr`?[0,o]:[o*-1,0]);return sn([0,o],[0,s])(c)}function sn(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function cn(e,t){return e>0&&e{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)};function J(e,t){let n=M(e),r=L.useRef(0);return L.useEffect(()=>()=>window.clearTimeout(r.current),[]),L.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Y(e,t){let n=M(t);k(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var un=Vt,dn=Ut,fn=tn,pn=F(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),mn=F(`coins`,[[`path`,{d:`M13.744 17.736a6 6 0 1 1-7.48-7.48`,key:`bq4yh3`}],[`path`,{d:`M15 6h1v4`,key:`11y1tn`}],[`path`,{d:`m6.134 14.768.866-.5 2 3.464`,key:`17snzx`}],[`circle`,{cx:`16`,cy:`8`,r:`6`,key:`14bfc9`}]]),hn=F(`credit-card`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`5`,rx:`2`,key:`ynyp8z`}],[`line`,{x1:`2`,x2:`22`,y1:`10`,y2:`10`,key:`1b3vmo`}]]),gn=F(`git-branch`,[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]),_n=F(`key-round`,[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]),vn=F(`laptop`,[[`path`,{d:`M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z`,key:`1pdavp`}],[`path`,{d:`M20.054 15.987H3.946`,key:`14rxg9`}]]),yn=F(`layout-dashboard`,[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]),bn=F(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),xn=F(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),Sn=F(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),Cn=F(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),wn=F(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Tn=F(`shopping-cart`,[[`circle`,{cx:`8`,cy:`21`,r:`1`,key:`jimo8o`}],[`circle`,{cx:`19`,cy:`21`,r:`1`,key:`13723u`}],[`path`,{d:`M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12`,key:`9zh506`}]]),En=F(`waypoints`,[[`path`,{d:`m10.586 5.414-5.172 5.172`,key:`4mc350`}],[`path`,{d:`m18.586 13.414-5.172 5.172`,key:`8c96vv`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`circle`,{cx:`12`,cy:`20`,r:`2`,key:`144qzu`}],[`circle`,{cx:`12`,cy:`4`,r:`2`,key:`muu5ef`}],[`circle`,{cx:`20`,cy:`12`,r:`2`,key:`1xzzfp`}],[`circle`,{cx:`4`,cy:`12`,r:`2`,key:`1hvhnz`}]]);function Dn({dir:e,className:t,...n}){return(0,R.jsxs)(`svg`,{className:E(e===`rtl`&&`rotate-y-180`,t),"data-name":`icon-dir-${e}`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...n,children:[(0,R.jsx)(`title`,{children:`Directory Icon`}),(0,R.jsx)(`path`,{d:`M23.42.51h51.92c2.21 0 4 1.79 4 4v42.18c0 2.21-1.79 4-4 4H23.42s-.04-.02-.04-.04V.55s.02-.04.04-.04z`,opacity:.15}),(0,R.jsx)(`path`,{d:`M5.56 14.88L17.78 14.88`,fill:`none`,opacity:.72,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M5.56 22.09L16.08 22.09`,fill:`none`,opacity:.48,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M5.56 18.38L14.93 18.38`,fill:`none`,opacity:.55,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsxs)(`g`,{strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`circle`,{cx:7.51,cy:7.4,opacity:.8,r:2.54}),(0,R.jsx)(`path`,{d:`M12.06 6.14L17.78 6.14`,fill:`none`,opacity:.8,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M11.85 8.79L16.91 8.79`,fill:`none`,opacity:.6})]}),(0,R.jsx)(`path`,{d:`M29.41 7.4L34.67 7.4`,fill:`none`,opacity:.62,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`3px`}),(0,R.jsx)(`rect`,{height:2.73,opacity:.44,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:26.03,x:28.76,y:11.21}),(0,R.jsx)(`rect`,{height:13.48,opacity:.3,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:44.25,x:28.76,y:17.01}),(0,R.jsx)(`rect`,{height:4.67,opacity:.21,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:44.25,x:28.76,y:33.57}),(0,R.jsx)(`rect`,{height:4.67,opacity:.3,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:36.21,x:28.76,y:41.32})]})}function On(e){return(0,R.jsxs)(`svg`,{"data-name":`icon-layout-compact`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Compact Layout`}),(0,R.jsx)(`rect`,{height:40,rx:2,ry:2,strokeLinecap:`round`,strokeMiterlimit:10,width:4,x:5.84,y:5.2}),(0,R.jsxs)(`g`,{stroke:`#fff`,strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`path`,{d:`M7.26 11.56L8.37 11.56`,fill:`none`,opacity:.66,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M7.26 14.49L8.37 14.49`,fill:`none`,opacity:.51,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M7.26 17.39L8.37 17.39`,fill:`none`,opacity:.52,strokeWidth:`2px`}),(0,R.jsx)(`circle`,{cx:7.81,cy:7.25,fill:`#fff`,opacity:.8,r:1.16})]}),(0,R.jsx)(`path`,{d:`M15.81 14.49L22.89 14.49`,fill:`none`,opacity:.75,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`3px`}),(0,R.jsx)(`rect`,{height:2.73,opacity:.5,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:22.19,x:14.93,y:18.39}),(0,R.jsx)(`rect`,{height:2.73,opacity:.9,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:59.16,x:14.93,y:5.89}),(0,R.jsx)(`rect`,{height:19.95,opacity:.4,rx:2.11,ry:2.11,strokeLinecap:`round`,strokeMiterlimit:10,width:32.68,x:14.93,y:24.22}),(0,R.jsxs)(`g`,{strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`rect`,{height:3.42,opacity:.32,rx:.33,ry:.33,width:2.01,x:59.05,y:38.15}),(0,R.jsx)(`rect`,{height:6.58,opacity:.44,rx:.33,ry:.33,width:2.01,x:54.78,y:34.99}),(0,R.jsx)(`rect`,{height:8.7,opacity:.53,rx:.33,ry:.33,width:2.01,x:63.17,y:32.86}),(0,R.jsx)(`rect`,{height:12.4,opacity:.66,rx:.33,ry:.33,width:2.01,x:67.54,y:29.17})]}),(0,R.jsxs)(`g`,{opacity:.5,children:[(0,R.jsx)(`circle`,{cx:62.16,cy:18.63,r:7.5}),(0,R.jsx)(`path`,{d:`M62.16 11.63c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.14-7-7 3.14-7 7-7m0-1c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8z`})]}),(0,R.jsxs)(`g`,{opacity:.74,children:[(0,R.jsx)(`path`,{d:`M63.04 18.13l3.38-5.67c.93.64 1.7 1.48 2.26 2.47.56.98.89 2.08.96 3.21h-6.6z`}),(0,R.jsx)(`path`,{d:`M66.57 13.19a6.977 6.977 0 012.52 4.44h-5.17l2.65-4.44m-.31-1.43l-4.1 6.87h8c0-1.39-.36-2.75-1.04-3.95a8.007 8.007 0 00-2.86-2.92z`})]})]})}function kn(e){return(0,R.jsxs)(`svg`,{"data-name":`con-layout-default`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Default Layout`}),(0,R.jsx)(`path`,{d:`M39.22 15.99h-8.16c-.79 0-1.43-.67-1.43-1.5s.64-1.5 1.43-1.5h8.16c.79 0 1.43.67 1.43 1.5s-.64 1.5-1.43 1.5z`,opacity:.75}),(0,R.jsx)(`rect`,{height:2.73,opacity:.5,rx:1.36,ry:1.36,width:16.72,x:29.63,y:18.39}),(0,R.jsx)(`path`,{d:`M75.1 6.68v1.45c0 .63-.49 1.14-1.09 1.14H30.72c-.6 0-1.09-.51-1.09-1.14V6.68c0-.62.49-1.14 1.09-1.14h43.29c.6 0 1.09.52 1.09 1.14z`,opacity:.9}),(0,R.jsx)(`rect`,{height:19.95,opacity:.4,rx:2.11,ry:2.11,width:21.8,x:29.63,y:24.22}),(0,R.jsxs)(`g`,{strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`rect`,{height:3.42,opacity:.32,rx:.33,ry:.33,width:2.01,x:61.06,y:38.15}),(0,R.jsx)(`rect`,{height:6.58,opacity:.44,rx:.33,ry:.33,width:2.01,x:56.78,y:34.99}),(0,R.jsx)(`rect`,{height:8.7,opacity:.53,rx:.33,ry:.33,width:2.01,x:65.17,y:32.86}),(0,R.jsx)(`rect`,{height:12.4,opacity:.66,rx:.33,ry:.33,width:2.01,x:69.55,y:29.17})]}),(0,R.jsxs)(`g`,{opacity:.5,children:[(0,R.jsx)(`circle`,{cx:63.17,cy:18.63,r:7.5}),(0,R.jsx)(`path`,{d:`M63.17 11.63c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.14-7-7 3.14-7 7-7m0-1c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8z`})]}),(0,R.jsxs)(`g`,{opacity:.74,children:[(0,R.jsx)(`path`,{d:`M64.05 18.13l3.38-5.67c.93.64 1.7 1.48 2.26 2.47.56.98.89 2.08.96 3.21h-6.6z`}),(0,R.jsx)(`path`,{d:`M67.57 13.19a6.977 6.977 0 012.52 4.44h-5.17l2.65-4.44m-.31-1.43l-4.1 6.87h8c0-1.39-.36-2.75-1.04-3.95a8.007 8.007 0 00-2.86-2.92z`})]}),(0,R.jsxs)(`g`,{strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`rect`,{height:40,opacity:.8,rx:2,ry:2,width:19.14,x:5.84,y:5.02}),(0,R.jsxs)(`g`,{stroke:`#fff`,children:[(0,R.jsx)(`path`,{d:`M9.02 17.39L21.25 17.39`,fill:`none`,opacity:.72,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M9.02 24.6L19.54 24.6`,fill:`none`,opacity:.48,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M9.02 20.88L18.4 20.88`,fill:`none`,opacity:.55,strokeWidth:`2px`}),(0,R.jsx)(`circle`,{cx:10.98,cy:9.91,fill:`#fff`,opacity:.8,r:2.54}),(0,R.jsx)(`path`,{d:`M15.53 8.65L21.25 8.65`,fill:`none`,opacity:.8,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M15.32 11.3L20.38 11.3`,fill:`none`,opacity:.6})]})]})]})}function An(e){return(0,R.jsxs)(`svg`,{"data-name":`icon-layout-full`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Full Layout`}),(0,R.jsx)(`path`,{d:`M6.85 14.49L15.02 14.49`,fill:`none`,opacity:.75,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`3px`}),(0,R.jsx)(`rect`,{height:2.73,opacity:.5,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:25.6,x:5.84,y:18.39}),(0,R.jsx)(`rect`,{height:2.73,opacity:.9,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:68.26,x:5.84,y:5.89}),(0,R.jsx)(`rect`,{height:19.95,opacity:.4,rx:2.11,ry:2.11,strokeLinecap:`round`,strokeMiterlimit:10,width:37.71,x:5.84,y:24.22}),(0,R.jsxs)(`g`,{strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`rect`,{height:3.42,opacity:.32,rx:.33,ry:.33,width:2.01,x:59.05,y:38.15}),(0,R.jsx)(`rect`,{height:6.58,opacity:.44,rx:.33,ry:.33,width:2.01,x:54.78,y:34.99}),(0,R.jsx)(`rect`,{height:8.7,opacity:.53,rx:.33,ry:.33,width:2.01,x:63.17,y:32.86}),(0,R.jsx)(`rect`,{height:12.4,opacity:.66,rx:.33,ry:.33,width:2.01,x:67.54,y:29.17})]}),(0,R.jsxs)(`g`,{opacity:.5,children:[(0,R.jsx)(`circle`,{cx:62.16,cy:18.63,r:7.5}),(0,R.jsx)(`path`,{d:`M62.16 11.63c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.14-7-7 3.14-7 7-7m0-1c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8z`})]}),(0,R.jsxs)(`g`,{opacity:.74,children:[(0,R.jsx)(`path`,{d:`M63.04 18.13l3.38-5.67c.93.64 1.7 1.48 2.26 2.47.56.98.89 2.08.96 3.21h-6.6z`}),(0,R.jsx)(`path`,{d:`M66.57 13.19a6.977 6.977 0 012.52 4.44h-5.17l2.65-4.44m-.31-1.43l-4.1 6.87h8c0-1.39-.36-2.75-1.04-3.95a8.007 8.007 0 00-2.86-2.92z`})]})]})}function jn(e){return(0,R.jsxs)(`svg`,{"data-name":`icon-sidebar-floating`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Floating Sidebar`}),(0,R.jsx)(`rect`,{height:40,opacity:.8,rx:2,ry:2,strokeLinecap:`round`,strokeMiterlimit:10,width:19.74,x:5.89,y:5.15}),(0,R.jsxs)(`g`,{stroke:`#fff`,strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`path`,{d:`M9.81 18.36L22.04 18.36`,fill:`none`,opacity:.72,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M9.81 25.57L20.33 25.57`,fill:`none`,opacity:.48,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M9.81 21.85L19.18 21.85`,fill:`none`,opacity:.55,strokeWidth:`2px`}),(0,R.jsx)(`circle`,{cx:11.76,cy:10.88,fill:`#fff`,opacity:.8,r:2.54}),(0,R.jsx)(`path`,{d:`M16.31 9.62L22.04 9.62`,fill:`none`,opacity:.8,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M16.1 12.27L21.16 12.27`,fill:`none`,opacity:.6})]}),(0,R.jsx)(`path`,{d:`M30.59 9.62L35.85 9.62`,fill:`none`,opacity:.62,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`3px`}),(0,R.jsx)(`rect`,{height:2.73,opacity:.44,rx:.64,ry:.64,strokeLinecap:`round`,strokeMiterlimit:10,width:26.03,x:29.94,y:13.42}),(0,R.jsx)(`rect`,{height:25.87,opacity:.3,rx:2,ry:2,strokeLinecap:`round`,strokeMiterlimit:10,width:43.11,x:29.94,y:19.28})]})}function Mn(e){return(0,R.jsxs)(`svg`,{"data-name":`icon-sidebar-inset`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Inset Sidebar`}),(0,R.jsx)(`rect`,{height:40,opacity:.2,rx:2,ry:2,strokeLinecap:`round`,strokeMiterlimit:10,width:50.22,x:23.39,y:5.57}),(0,R.jsx)(`path`,{d:`M5.08 17.05L17.31 17.05`,fill:`none`,opacity:.72,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M5.08 24.25L15.6 24.25`,fill:`none`,opacity:.48,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M5.08 20.54L14.46 20.54`,fill:`none`,opacity:.55,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsxs)(`g`,{strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`circle`,{cx:7.04,cy:9.57,opacity:.8,r:2.54}),(0,R.jsx)(`path`,{d:`M11.59 8.3L17.31 8.3`,fill:`none`,opacity:.8,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M11.38 10.95L16.44 10.95`,fill:`none`,opacity:.6})]})]})}function Nn(e){return(0,R.jsxs)(`svg`,{"data-name":`icon-sidebar-sidebar`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Sidebar`}),(0,R.jsx)(`path`,{d:`M23.42.51h51.99c2.21 0 4 1.79 4 4v42.18c0 2.21-1.79 4-4 4H23.42s-.04-.02-.04-.04V.55s.02-.04.04-.04z`,opacity:.2,strokeLinecap:`round`,strokeMiterlimit:10}),(0,R.jsx)(`path`,{d:`M5.56 14.88L17.78 14.88`,fill:`none`,opacity:.72,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M5.56 22.09L16.08 22.09`,fill:`none`,opacity:.48,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M5.56 18.38L14.93 18.38`,fill:`none`,opacity:.55,strokeLinecap:`round`,strokeMiterlimit:10,strokeWidth:`2px`}),(0,R.jsxs)(`g`,{strokeLinecap:`round`,strokeMiterlimit:10,children:[(0,R.jsx)(`circle`,{cx:7.51,cy:7.4,opacity:.8,r:2.54}),(0,R.jsx)(`path`,{d:`M12.06 6.14L17.78 6.14`,fill:`none`,opacity:.8,strokeWidth:`2px`}),(0,R.jsx)(`path`,{d:`M11.85 8.79L16.91 8.79`,fill:`none`,opacity:.6})]})]})}function Pn(e){return(0,R.jsxs)(`svg`,{"aria-label":`Dark theme icon`,"data-name":`icon-theme-dark`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Dark Theme`}),(0,R.jsxs)(`g`,{fill:`#1d2b3f`,children:[(0,R.jsx)(`rect`,{height:50.14,rx:3.5,ry:3.5,width:78.83,x:.53,y:.5}),(0,R.jsx)(`path`,{d:`M75.86 1c1.65 0 3 1.35 3 3v43.14c0 1.65-1.35 3-3 3H4.03c-1.65 0-3-1.35-3-3V4c0-1.65 1.35-3 3-3h71.83m0-1H4.03c-2.21 0-4 1.79-4 4v43.14c0 2.21 1.79 4 4 4h71.83c2.21 0 4-1.79 4-4V4c0-2.21-1.79-4-4-4z`})]}),(0,R.jsx)(`path`,{d:`M22.88 0h52.97c2.21 0 4 1.79 4 4v43.14c0 2.21-1.79 4-4 4H22.88V0z`,fill:`#0d1628`}),(0,R.jsx)(`circle`,{cx:6.7,cy:7.04,fill:`#426187`,r:3.54}),(0,R.jsx)(`path`,{d:`M18.12 6.39h-5.87c-.6 0-1.09-.45-1.09-1s.49-1 1.09-1h5.87c.6 0 1.09.45 1.09 1s-.49 1-1.09 1zM16.55 9.77h-4.24c-.55 0-1-.45-1-1s.45-1 1-1h4.24c.55 0 1 .45 1 1s-.45 1-1 1zM18.32 17.37H4.59c-.69 0-1.25-.47-1.25-1.05s.56-1.05 1.25-1.05h13.73c.69 0 1.25.47 1.25 1.05s-.56 1.05-1.25 1.05zM15.34 21.26h-11c-.55 0-1-.41-1-.91s.45-.91 1-.91h11c.55 0 1 .41 1 .91s-.45.91-1 .91zM16.46 25.57H4.43c-.6 0-1.09-.44-1.09-.98s.49-.98 1.09-.98h12.03c.6 0 1.09.44 1.09.98s-.49.98-1.09.98z`,fill:`#426187`}),(0,R.jsxs)(`g`,{fill:`#2a62bc`,children:[(0,R.jsx)(`rect`,{height:3.42,opacity:.32,rx:.33,ry:.33,width:2.75,x:33.36,y:19.73}),(0,R.jsx)(`rect`,{height:6.58,opacity:.44,rx:.33,ry:.33,width:2.75,x:29.64,y:16.57}),(0,R.jsx)(`rect`,{height:8.7,opacity:.53,rx:.33,ry:.33,width:2.75,x:37.16,y:14.44}),(0,R.jsx)(`rect`,{height:12.4,opacity:.53,rx:.33,ry:.33,width:2.75,x:41.19,y:10.75})]}),(0,R.jsx)(`circle`,{cx:62.74,cy:16.32,fill:`#2f5491`,opacity:.5,r:8}),(0,R.jsx)(`path`,{d:`M62.74 16.32l4.1-6.87c1.19.71 2.18 1.72 2.86 2.92s1.04 2.57 1.04 3.95h-8z`,fill:`#2f5491`,opacity:.74}),(0,R.jsx)(`rect`,{fill:`#17273f`,height:18.62,rx:1.69,ry:1.69,width:41.62,x:29.64,y:27.75})]})}function Fn(e){return(0,R.jsxs)(`svg`,{"aria-label":`Light theme icon`,"data-name":`icon-theme-light`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,R.jsx)(`title`,{children:`Light Theme`}),(0,R.jsxs)(`g`,{fill:`#d9d9d9`,children:[(0,R.jsx)(`rect`,{height:50.14,rx:3.5,ry:3.5,width:78.83,x:.53,y:.5}),(0,R.jsx)(`path`,{d:`M75.86 1c1.65 0 3 1.35 3 3v43.14c0 1.65-1.35 3-3 3H4.03c-1.65 0-3-1.35-3-3V4c0-1.65 1.35-3 3-3h71.83m0-1H4.03c-2.21 0-4 1.79-4 4v43.14c0 2.21 1.79 4 4 4h71.83c2.21 0 4-1.79 4-4V4c0-2.21-1.79-4-4-4z`})]}),(0,R.jsx)(`path`,{d:`M22.88 0h52.97c2.21 0 4 1.79 4 4v43.14c0 2.21-1.79 4-4 4H22.88V0z`,fill:`#ecedef`}),(0,R.jsx)(`circle`,{cx:6.7,cy:7.04,fill:`#fff`,r:3.54}),(0,R.jsx)(`path`,{d:`M18.12 6.39h-5.87c-.6 0-1.09-.45-1.09-1s.49-1 1.09-1h5.87c.6 0 1.09.45 1.09 1s-.49 1-1.09 1zM16.55 9.77h-4.24c-.55 0-1-.45-1-1s.45-1 1-1h4.24c.55 0 1 .45 1 1s-.45 1-1 1zM18.32 17.37H4.59c-.69 0-1.25-.47-1.25-1.05s.56-1.05 1.25-1.05h13.73c.69 0 1.25.47 1.25 1.05s-.56 1.05-1.25 1.05zM15.34 21.26h-11c-.55 0-1-.41-1-.91s.45-.91 1-.91h11c.55 0 1 .41 1 .91s-.45.91-1 .91zM16.46 25.57H4.43c-.6 0-1.09-.44-1.09-.98s.49-.98 1.09-.98h12.03c.6 0 1.09.44 1.09.98s-.49.98-1.09.98z`,fill:`#fff`}),(0,R.jsxs)(`g`,{fill:`#c0c4c4`,children:[(0,R.jsx)(`rect`,{height:3.42,opacity:.32,rx:.33,ry:.33,width:2.75,x:33.36,y:19.73}),(0,R.jsx)(`rect`,{height:6.58,opacity:.44,rx:.33,ry:.33,width:2.75,x:29.64,y:16.57}),(0,R.jsx)(`rect`,{height:8.7,opacity:.53,rx:.33,ry:.33,width:2.75,x:37.16,y:14.44}),(0,R.jsx)(`rect`,{height:12.4,opacity:.53,rx:.33,ry:.33,width:2.75,x:41.19,y:10.75})]}),(0,R.jsx)(`circle`,{cx:62.74,cy:16.32,fill:`#fff`,r:8}),(0,R.jsxs)(`g`,{fill:`#d9d9d9`,children:[(0,R.jsx)(`path`,{d:`M63.62 15.82L67 10.15c.93.64 1.7 1.48 2.26 2.47.56.98.89 2.08.96 3.21h-6.6z`}),(0,R.jsx)(`path`,{d:`M67.14 10.88a6.977 6.977 0 012.52 4.44h-5.17l2.65-4.44m-.31-1.43l-4.1 6.87h8c0-1.39-.36-2.75-1.04-3.95s-1.67-2.21-2.86-2.92z`})]}),(0,R.jsx)(`rect`,{fill:`#fff`,height:18.62,rx:1.69,ry:1.69,width:41.62,x:29.64,y:27.75})]})}function In({className:e,...t}){return(0,R.jsxs)(`svg`,{"aria-label":`System theme icon`,className:E(`overflow-hidden rounded-[6px]`,`fill-primary stroke-primary group-data-[state=unchecked]:fill-muted-foreground group-data-[state=unchecked]:stroke-muted-foreground`,e),"data-name":`icon-theme-system`,viewBox:`0 0 79.86 51.14`,xmlns:`http://www.w3.org/2000/svg`,...t,children:[(0,R.jsx)(`title`,{children:`System Theme`}),(0,R.jsx)(`path`,{d:`M0 0.03H22.88V51.17H0z`,opacity:.2}),(0,R.jsx)(`circle`,{cx:6.7,cy:7.04,fill:`#fff`,opacity:.8,r:3.54,stroke:`#fff`,strokeLinecap:`round`,strokeMiterlimit:10}),(0,R.jsx)(`path`,{d:`M18.12 6.39h-5.87c-.6 0-1.09-.45-1.09-1s.49-1 1.09-1h5.87c.6 0 1.09.45 1.09 1s-.49 1-1.09 1zM16.55 9.77h-4.24c-.55 0-1-.45-1-1s.45-1 1-1h4.24c.55 0 1 .45 1 1s-.45 1-1 1z`,fill:`#fff`,opacity:.75,stroke:`none`}),(0,R.jsx)(`path`,{d:`M18.32 17.37H4.59c-.69 0-1.25-.47-1.25-1.05s.56-1.05 1.25-1.05h13.73c.69 0 1.25.47 1.25 1.05s-.56 1.05-1.25 1.05z`,fill:`#fff`,opacity:.72,stroke:`none`}),(0,R.jsx)(`path`,{d:`M15.34 21.26h-11c-.55 0-1-.41-1-.91s.45-.91 1-.91h11c.55 0 1 .41 1 .91s-.45.91-1 .91z`,fill:`#fff`,opacity:.55,stroke:`none`}),(0,R.jsx)(`path`,{d:`M16.46 25.57H4.43c-.6 0-1.09-.44-1.09-.98s.49-.98 1.09-.98h12.03c.6 0 1.09.44 1.09.98s-.49.98-1.09.98z`,fill:`#fff`,opacity:.67,stroke:`none`}),(0,R.jsx)(`rect`,{height:3.42,opacity:.31,rx:.33,ry:.33,stroke:`none`,width:2.75,x:33.36,y:19.73}),(0,R.jsx)(`rect`,{height:6.58,opacity:.4,rx:.33,ry:.33,stroke:`none`,width:2.75,x:29.64,y:16.57}),(0,R.jsx)(`rect`,{height:8.7,opacity:.26,rx:.33,ry:.33,stroke:`none`,width:2.75,x:37.16,y:14.44}),(0,R.jsx)(`rect`,{height:12.4,opacity:.37,rx:.33,ry:.33,stroke:`none`,width:2.75,x:41.19,y:10.75}),(0,R.jsxs)(`g`,{children:[(0,R.jsx)(`circle`,{cx:62.74,cy:16.32,opacity:.25,r:8}),(0,R.jsx)(`path`,{d:`M62.74 16.32l4.1-6.87c1.19.71 2.18 1.72 2.86 2.92s1.04 2.57 1.04 3.95h-8z`,opacity:.45})]}),(0,R.jsx)(`rect`,{height:18.62,opacity:.3,rx:1.69,ry:1.69,stroke:`none`,strokeLinecap:`round`,strokeMiterlimit:10,width:41.62,x:29.64,y:27.75})]})}function Ln({...e}){return(0,R.jsx)(Ue,{"data-slot":`sheet`,...e})}function Rn({...e}){return(0,R.jsx)(Be,{"data-slot":`sheet-trigger`,...e})}function zn({...e}){return(0,R.jsx)(ze,{"data-slot":`sheet-portal`,...e})}function Bn({className:e,...t}){return(0,R.jsx)(Ve,{className:E(`data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in`,e),"data-slot":`sheet-overlay`,...t})}function Vn({className:e,children:t,side:n=`right`,showCloseButton:r=!0,...i}){return(0,R.jsxs)(zn,{children:[(0,R.jsx)(Bn,{}),(0,R.jsxs)(He,{className:E(`fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=open]:animate-in data-[state=closed]:duration-300 data-[state=open]:duration-500`,n===`right`&&`data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm`,n===`left`&&`data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm`,n===`top`&&`data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b`,n===`bottom`&&`data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t`,e),"data-slot":`sheet-content`,...i,children:[t,r&&(0,R.jsxs)(Ke,{className:`absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary`,children:[(0,R.jsx)(_t,{className:`size-4`}),(0,R.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function Hn({className:e,...t}){return(0,R.jsx)(`div`,{className:E(`flex flex-col gap-1.5 p-4`,e),"data-slot":`sheet-header`,...t})}function Un({className:e,...t}){return(0,R.jsx)(`div`,{className:E(`mt-auto flex flex-col gap-2 p-4`,e),"data-slot":`sheet-footer`,...t})}function Wn({className:e,...t}){return(0,R.jsx)(Ge,{className:E(`font-semibold text-foreground`,e),"data-slot":`sheet-title`,...t})}function Gn({className:e,...t}){return(0,R.jsx)(We,{className:E(`text-muted-foreground text-sm`,e),"data-slot":`sheet-description`,...t})}var Kn=`layout_collapsible`,qn=`layout_variant`,Jn=3600*24*7,Yn=`sidebar`,Xn=`icon`,Zn=(0,L.createContext)(null);function Qn({children:e}){let[t,n]=(0,L.useState)(()=>tt(Kn)||Xn),[r,i]=(0,L.useState)(()=>tt(qn)||Yn),a=e=>{n(e),et(Kn,e,Jn)},o=e=>{i(e),et(qn,e,Jn)};return(0,R.jsx)(Zn,{value:{resetLayout:()=>{a(Xn),o(Yn)},defaultCollapsible:Xn,collapsible:t,setCollapsible:a,defaultVariant:Yn,variant:r,setVariant:o},children:e})}function X(){let e=(0,L.useContext)(Zn);if(!e)throw Error(`useLayout must be used within a LayoutProvider`);return e}var $n=768;function er(){let[e,t]=L.useState(void 0);return L.useEffect(()=>{let e=window.matchMedia(`(max-width: ${$n-1}px)`),n=()=>{t(window.innerWidth<$n)};return e.addEventListener(`change`,n),t(window.innerWidth<$n),()=>e.removeEventListener(`change`,n)},[]),!!e}var tr=`16rem`,nr=`18rem`,rr=`3rem`,ir=`b`,ar=L.createContext(null);function Z(){let e=L.useContext(ar);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function or({defaultOpen:e=!0,open:t,onOpenChange:r,className:a,style:o,children:s,...c}){let l=er(),[u,d]=L.useState(!1),[f,p]=L.useState(e),m=t??f,h=L.useCallback(e=>{let t=typeof e==`function`?e(m):e;r?r(t):p(t),document.cookie=`${i}=${t}; path=/; max-age=${n}`},[r,m]),g=L.useCallback(()=>l?d(e=>!e):h(e=>!e),[l,h]);L.useEffect(()=>{let e=e=>{e.key===ir&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),g())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[g]);let _=m?`expanded`:`collapsed`,v=L.useMemo(()=>({state:_,open:m,setOpen:h,isMobile:l,openMobile:u,setOpenMobile:d,toggleSidebar:g}),[_,m,h,l,u,g]);return(0,R.jsx)(ar.Provider,{value:v,children:(0,R.jsx)(Qe,{delayDuration:0,children:(0,R.jsx)(`div`,{className:E(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar`,a),"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":tr,"--sidebar-width-icon":rr,...o},...c,children:s})})})}function sr({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,...a}){let{isMobile:o,state:s,openMobile:c,setOpenMobile:l}=Z();return n===`none`?(0,R.jsx)(`div`,{className:E(`flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground`,r),"data-slot":`sidebar`,...a,children:i}):o?(0,R.jsx)(Ln,{onOpenChange:l,open:c,...a,children:(0,R.jsxs)(Vn,{className:`w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden`,"data-mobile":`true`,"data-sidebar":`sidebar`,"data-slot":`sidebar`,side:e,style:{"--sidebar-width":nr},children:[(0,R.jsxs)(Hn,{className:`sr-only`,children:[(0,R.jsx)(Wn,{children:`Sidebar`}),(0,R.jsx)(Gn,{children:`Displays the mobile sidebar.`})]}),(0,R.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:i})]})}):(0,R.jsxs)(`div`,{className:`group peer hidden text-sidebar-foreground md:block`,"data-collapsible":s===`collapsed`?n:``,"data-side":e,"data-slot":`sidebar`,"data-state":s,"data-variant":t,children:[(0,R.jsx)(`div`,{className:E(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,t===`floating`||t===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`),"data-slot":`sidebar-gap`}),(0,R.jsx)(`div`,{className:E(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,e===`left`?`left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,t===`floating`||t===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,r),"data-slot":`sidebar-container`,...a,children:(0,R.jsx)(`div`,{className:`flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm`,"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,children:i})})]})}function cr({className:e,onClick:t,...n}){let{toggleSidebar:r}=Z();return(0,R.jsxs)(D,{className:E(`size-7`,e),"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,onClick:e=>{t?.(e),r()},size:`icon`,variant:`ghost`,...n,children:[(0,R.jsx)(xn,{}),(0,R.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function lr({className:e,...t}){let{toggleSidebar:n}=Z();return(0,R.jsx)(`button`,{"aria-label":`Toggle Sidebar`,className:E(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex`,`in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`group-data-[collapsible=offcanvas]:translate-x-0 hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:after:left-full`,`[[data-side=left][data-collapsible=offcanvas]_&]:-right-2`,`[[data-side=right][data-collapsible=offcanvas]_&]:-left-2`,e),"data-sidebar":`rail`,"data-slot":`sidebar-rail`,onClick:n,tabIndex:-1,title:`Toggle Sidebar`,...t})}function ur({className:e,...t}){return(0,R.jsx)(`main`,{className:E(`relative flex w-full flex-1 flex-col bg-background`,`md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm`,e),"data-slot":`sidebar-inset`,...t})}function dr({className:e,...t}){return(0,R.jsx)(`div`,{className:E(`flex flex-col gap-2 p-2`,e),"data-sidebar":`header`,"data-slot":`sidebar-header`,...t})}function fr({className:e,...t}){return(0,R.jsx)(`div`,{className:E(`flex flex-col gap-2 p-2`,e),"data-sidebar":`footer`,"data-slot":`sidebar-footer`,...t})}function pr({className:e,...t}){return(0,R.jsx)(`div`,{className:E(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),"data-sidebar":`content`,"data-slot":`sidebar-content`,...t})}function mr({className:e,...t}){return(0,R.jsx)(`div`,{className:E(`relative flex w-full min-w-0 flex-col p-2`,e),"data-sidebar":`group`,"data-slot":`sidebar-group`,...t})}function hr({className:e,asChild:t=!1,...n}){return(0,R.jsx)(t?Fe:`div`,{className:E(`flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-sidebar-foreground/70 text-xs outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0`,e),"data-sidebar":`group-label`,"data-slot":`sidebar-group-label`,...n})}function gr({className:e,...t}){return(0,R.jsx)(`ul`,{className:E(`flex w-full min-w-0 flex-col gap-1`,e),"data-sidebar":`menu`,"data-slot":`sidebar-menu`,...t})}function _r({className:e,...t}){return(0,R.jsx)(`li`,{className:E(`group/menu-item relative`,e),"data-sidebar":`menu-item`,"data-slot":`sidebar-menu-item`,...t})}var vr=Ie(`peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function yr({asChild:e=!1,isActive:t=!1,variant:n=`default`,size:r=`default`,tooltip:i,className:a,...o}){let s=e?Fe:`button`,{isMobile:c,state:l}=Z(),u=(0,R.jsx)(s,{className:E(vr({variant:n,size:r}),a),"data-active":t,"data-sidebar":`menu-button`,"data-size":r,"data-slot":`sidebar-menu-button`,...o});return i?(typeof i==`string`&&(i={children:i}),(0,R.jsxs)($e,{children:[(0,R.jsx)(Xe,{asChild:!0,children:u}),(0,R.jsx)(Ze,{align:`center`,hidden:l!==`collapsed`||c,side:`right`,...i})]})):u}function br({className:e,...t}){return(0,R.jsx)(`ul`,{className:E(`mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-sidebar-border border-l px-2.5 py-0.5`,`group-data-[collapsible=icon]:hidden`,e),"data-sidebar":`menu-sub`,"data-slot":`sidebar-menu-sub`,...t})}function xr({className:e,...t}){return(0,R.jsx)(`li`,{className:E(`group/menu-sub-item relative`,e),"data-sidebar":`menu-sub-item`,"data-slot":`sidebar-menu-sub-item`,...t})}function Sr({asChild:e=!1,size:t=`md`,isActive:n=!1,className:r,...i}){return(0,R.jsx)(e?Fe:`a`,{className:E(`flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-hidden ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground`,`data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground`,t===`sm`&&`text-xs`,t===`md`&&`text-sm`,`group-data-[collapsible=icon]:hidden`,r),"data-active":n,"data-sidebar":`menu-sub-button`,"data-size":t,"data-slot":`sidebar-menu-sub-button`,...i})}function Cr(){return(0,R.jsxs)(Ln,{children:[(0,R.jsx)(Rn,{asChild:!0,children:(0,R.jsx)(D,{"aria-describedby":`config-drawer-description`,"aria-label":`Open theme settings`,className:`rounded-full`,size:`icon`,variant:`ghost`,children:(0,R.jsx)(wn,{"aria-hidden":`true`})})}),(0,R.jsx)(wr,{})]})}function wr(){let{setOpen:e}=Z(),{resetDir:t}=nt(),{resetFont:n}=at(),{resetTheme:r}=P(),{resetLayout:i}=X();return(0,R.jsxs)(Vn,{className:`flex flex-col`,children:[(0,R.jsxs)(Hn,{className:`pb-0 text-start`,children:[(0,R.jsx)(Wn,{children:C()}),(0,R.jsx)(Gn,{id:`config-drawer-description`,children:x()})]}),(0,R.jsxs)(`div`,{className:`space-y-6 overflow-y-auto px-4`,children:[(0,R.jsx)(Er,{}),(0,R.jsx)(Tr,{}),(0,R.jsx)(Dr,{}),(0,R.jsx)(Or,{}),(0,R.jsx)(kr,{})]}),(0,R.jsx)(Un,{className:`gap-2`,children:(0,R.jsx)(D,{"aria-label":`Reset all settings to default values`,onClick:()=>{e(!0),t(),n(),r(),i()},variant:`destructive`,children:_e()})})]})}function Q({title:e,showReset:t=!1,onReset:n,className:r}){return(0,R.jsxs)(`div`,{className:E(`mb-2 flex items-center gap-2 font-semibold text-muted-foreground text-sm`,r),children:[e,t&&n&&(0,R.jsx)(D,{className:`size-4 rounded-full`,onClick:n,size:`icon`,variant:`secondary`,children:(0,R.jsx)(Sn,{className:`size-3`})})]})}function $({item:e,isTheme:t=!1}){return(0,R.jsxs)(Ye,{"aria-describedby":`${e.value}-description`,"aria-label":`Select ${e.label.toLowerCase()}`,className:E(`group outline-none`,`transition duration-200 ease-in`),value:e.value,children:[(0,R.jsxs)(`div`,{"aria-hidden":`false`,"aria-label":`${e.label} option preview`,className:E(`relative rounded-[6px] ring-[1px] ring-border`,`group-data-[state=checked]:shadow-2xl group-data-[state=checked]:ring-primary`,`group-focus-visible:ring-2`),role:`img`,children:[(0,R.jsx)(rt,{"aria-hidden":`true`,className:E(`size-6 fill-primary stroke-white`,`group-data-[state=unchecked]:hidden`,`absolute top-0 right-0 translate-x-1/2 -translate-y-1/2`)}),(0,R.jsx)(e.icon,{"aria-hidden":`true`,className:E(!t&&`fill-primary stroke-primary group-data-[state=unchecked]:fill-muted-foreground group-data-[state=unchecked]:stroke-muted-foreground`)})]}),(0,R.jsx)(`div`,{"aria-live":`polite`,className:`mt-1 text-xs`,id:`${e.value}-description`,children:e.label})]})}function Tr(){let{defaultTheme:e,theme:t,setTheme:n}=P();return(0,R.jsxs)(`div`,{children:[(0,R.jsx)(Q,{onReset:()=>n(e),showReset:t!==e,title:o()}),(0,R.jsx)(N,{"aria-describedby":`theme-description`,"aria-label":`Select theme preference`,className:`grid w-full max-w-md grid-cols-3 gap-4`,onValueChange:n,value:t,children:[{value:`system`,label:_(),icon:In},{value:`light`,label:fe(),icon:Fn},{value:`dark`,label:le(),icon:Pn}].map(e=>(0,R.jsx)($,{isTheme:!0,item:e},e.value))}),(0,R.jsx)(`div`,{className:`sr-only`,id:`theme-description`,children:`Choose between system preference, light mode, or dark mode`})]})}function Er(){let{font:e,setFont:t,resetFont:n}=at();return(0,R.jsxs)(`div`,{children:[(0,R.jsx)(Q,{onReset:n,showReset:e!==ot[0],title:Te()}),(0,R.jsx)(`select`,{className:`w-full rounded-md border border-input bg-background px-3 py-2 text-sm`,onChange:e=>t(e.target.value),value:e,children:ot.map(e=>(0,R.jsx)(`option`,{value:e,children:e},e))})]})}function Dr(){let{defaultVariant:e,variant:t,setVariant:n}=X();return(0,R.jsxs)(`div`,{className:`max-md:hidden`,children:[(0,R.jsx)(Q,{onReset:()=>n(e),showReset:e!==t,title:ve()}),(0,R.jsx)(N,{"aria-describedby":`sidebar-description`,"aria-label":`Select sidebar style`,className:`grid w-full max-w-md grid-cols-3 gap-4`,onValueChange:n,value:t,children:[{value:`inset`,label:d(),icon:Mn},{value:`floating`,label:oe(),icon:jn},{value:`sidebar`,label:we(),icon:Nn}].map(e=>(0,R.jsx)($,{item:e},e.value))}),(0,R.jsx)(`div`,{className:`sr-only`,id:`sidebar-description`,children:`Choose between inset, floating, or standard sidebar layout`})]})}function Or(){let{open:e,setOpen:t}=Z(),{defaultCollapsible:n,collapsible:r,setCollapsible:i}=X(),a=e?`default`:r;return(0,R.jsxs)(`div`,{className:`max-md:hidden`,children:[(0,R.jsx)(Q,{onReset:()=>{t(!0),i(n)},showReset:a!==`default`,title:te()}),(0,R.jsx)(N,{"aria-describedby":`layout-description`,"aria-label":`Select layout style`,className:`grid w-full max-w-md grid-cols-3 gap-4`,onValueChange:e=>{if(e===`default`){t(!0);return}t(!1),i(e)},value:a,children:[{value:`default`,label:s(),icon:kn},{value:`icon`,label:ae(),icon:On},{value:`offcanvas`,label:De(),icon:An}].map(e=>(0,R.jsx)($,{item:e},e.value))}),(0,R.jsx)(`div`,{className:`sr-only`,id:`layout-description`,children:`Choose between default expanded, compact icon-only, or full layout mode`})]})}function kr(){let{defaultDir:e,dir:t,setDir:n}=nt();return(0,R.jsxs)(`div`,{children:[(0,R.jsx)(Q,{onReset:()=>n(e),showReset:e!==t,title:l()}),(0,R.jsx)(N,{"aria-describedby":`direction-description`,"aria-label":`Select site direction`,className:`grid w-full max-w-md grid-cols-3 gap-4`,onValueChange:n,value:t,children:[{value:`ltr`,label:he(),icon:e=>(0,R.jsx)(Dn,{dir:`ltr`,...e})},{value:`rtl`,label:Oe(),icon:e=>(0,R.jsx)(Dn,{dir:`rtl`,...e})}].map(e=>(0,R.jsx)($,{item:e},e.value))}),(0,R.jsx)(`div`,{className:`sr-only`,id:`direction-description`,children:`Choose between left-to-right or right-to-left site direction`})]})}function Ar({open:e,onOpenChange:n}){let i=Pe(),a=yt(),o=t.useMutation(`post`,`/admin/api/v1/auth/logout`);return(0,R.jsx)(qe,{className:`sm:max-w-sm`,confirmText:o.isPending?ge():xe(),desc:b(),destructive:!0,handleConfirm:async()=>{await o.mutateAsync({}),r();let e=a.href;i({to:`/sign-in`,search:{redirect:e},replace:!0})},onOpenChange:n,open:e,title:xe()})}function jr({className:e,size:t=`default`,...n}){return(0,R.jsx)(Pt,{className:E(`group/avatar relative flex size-8 shrink-0 select-none overflow-hidden rounded-full data-[size=lg]:size-10 data-[size=sm]:size-6`,e),"data-size":t,"data-slot":`avatar`,...n})}function Mr({className:e,...t}){return(0,R.jsx)(Ft,{className:E(`aspect-square size-full`,e),"data-slot":`avatar-image`,...t})}function Nr({className:e,...t}){return(0,R.jsx)(It,{className:E(`flex size-full items-center justify-center rounded-full bg-muted text-muted-foreground text-sm group-data-[size=sm]/avatar:text-xs`,e),"data-slot":`avatar-fallback`,...t})}function Pr(e=null){let[t,n]=(0,L.useState)(e);return[t,e=>n(t=>t===e?null:e)]}function Fr(e){if(!e)return`-`;let t=new Date(e.replace(` `,`T`));return Number.isNaN(t.getTime())?e:new Intl.DateTimeFormat(`zh-TW`,{year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:!1}).format(t)}function Ir(e){return e?e.includes(` `)?e.slice(11,16):e.slice(5):``}function Lr(e,t=2){return Number(e??0).toLocaleString(`en-US`,{maximumFractionDigits:t})}function Rr(e,t=2){return`$${Number(e??0).toLocaleString(`en-US`,{maximumFractionDigits:t})}`}function zr(){return{user:{name:`GMPay`,email:`admin@gmpay.local`,avatar:`/avatars/shadcn.jpg`},teams:[{name:`GMPay`,logo:vt,plan:ye()}],navGroups:[{title:pe(),items:[{title:me(),url:`/dashboard`,icon:yn},{title:ne(),icon:mn,items:[{title:u(),url:`/payment-setup`},{title:f(),url:`/payment-setup/integrations`}]}]},{title:se(),items:[{title:ee(),url:`/orders`,icon:Tn}]},{title:Ee(),items:[{title:c(),url:`/addresses`,icon:it}]},{title:y(),items:[{title:h(),url:`/chains`,icon:gn},{title:de(),url:`/rpc`,icon:En}]},{title:ce(),items:[{title:be(),url:`/keys`,icon:hn},{title:g(),icon:wn,items:[{title:v(),url:`/settings`},{title:p(),url:`/settings/telegram`},{title:w(),url:`/settings/system`},{title:re(),url:`/settings/pay`},{title:S(),url:`/settings/epay`},{title:Ce(),url:`/settings/okpay`}]},{title:ue(),icon:gt,items:[{title:ke(),url:`/account/password`}]}]}]}}function Br({className:e,children:t,...n}){return(0,R.jsxs)(un,{className:E(`relative`,e),"data-slot":`scroll-area`,...n,children:[(0,R.jsx)(dn,{className:`size-full rounded-[inherit] outline-none transition-[color,box-shadow] focus-visible:outline-1 focus-visible:ring-[3px] focus-visible:ring-ring/50`,"data-slot":`scroll-area-viewport`,children:t}),(0,R.jsx)(Vr,{}),(0,R.jsx)(fn,{})]})}function Vr({className:e,orientation:t=`vertical`,...n}){return(0,R.jsx)(Wt,{className:E(`flex touch-none select-none p-px transition-colors`,t===`vertical`&&`h-full w-2.5 border-l border-l-transparent`,t===`horizontal`&&`h-2.5 flex-col border-t border-t-transparent`,e),"data-slot":`scroll-area-scrollbar`,orientation:t,...n,children:(0,R.jsx)($t,{className:`relative flex-1 rounded-full bg-border`,"data-slot":`scroll-area-thumb`})})}function Hr(){let e=Pe(),{setTheme:t}=P(),{open:n,setOpen:r}=Gr(),i=zr(),a=L.useCallback(e=>{r(!1),e()},[r]);return(0,R.jsxs)(pt,{modal:!0,onOpenChange:r,open:n,children:[(0,R.jsx)(ut,{placeholder:m()}),(0,R.jsx)(ht,{children:(0,R.jsxs)(Br,{className:`h-72 pe-1`,type:`hover`,children:[(0,R.jsx)(mt,{children:ie()}),i.navGroups.map(t=>(0,R.jsx)(ft,{heading:t.title,children:t.items.map(t=>t.url?(0,R.jsxs)(I,{onSelect:()=>{a(()=>e({to:t.url}))},value:t.title,children:[(0,R.jsx)(`div`,{className:`flex size-4 items-center justify-center`,children:(0,R.jsx)(pn,{className:`size-2 text-muted-foreground/80`})}),t.title]},t.url):t.items?.map(n=>(0,R.jsxs)(I,{onSelect:()=>{a(()=>e({to:n.url}))},value:`${t.title}-${n.url}`,children:[(0,R.jsx)(`div`,{className:`flex size-4 items-center justify-center`,children:(0,R.jsx)(pn,{className:`size-2 text-muted-foreground/80`})}),t.title,` `,(0,R.jsx)(st,{}),` `,n.title]},`${t.title}-${n.url}`)))},t.title)),(0,R.jsx)(dt,{}),(0,R.jsxs)(ft,{heading:o(),children:[(0,R.jsxs)(I,{onSelect:()=>a(()=>t(`light`)),children:[(0,R.jsx)(lt,{}),` `,(0,R.jsx)(`span`,{children:fe()})]}),(0,R.jsxs)(I,{onSelect:()=>a(()=>t(`dark`)),children:[(0,R.jsx)(ct,{className:`scale-90`}),(0,R.jsx)(`span`,{children:le()})]}),(0,R.jsxs)(I,{onSelect:()=>a(()=>t(`system`)),children:[(0,R.jsx)(vn,{}),(0,R.jsx)(`span`,{children:_()})]})]})]})})]})}var Ur=(0,L.createContext)(null);function Wr({children:e}){let[t,n]=(0,L.useState)(!1);return(0,L.useEffect)(()=>{let e=e=>{e.key===`k`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),n(e=>!e))};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[]),(0,R.jsxs)(Ur,{value:{open:t,setOpen:n},children:[e,(0,R.jsx)(Hr,{})]})}var Gr=()=>{let e=(0,L.useContext)(Ur);if(!e)throw Error(`useSearch has to be used within SearchProvider`);return e};export{lr as A,gn as B,gr as C,Sr as D,br as E,Ln as F,mn as H,En as I,Cn as L,Z as M,Qn as N,xr as O,X as P,bn as R,ur as S,_r as T,hn as V,pr as _,Rr as a,hr as b,Ir as c,Nr as d,Mr as f,sr as g,wr as h,zr as i,cr as j,or as k,Pr as l,Cr as m,Gr as n,Fr as o,Ar as p,Br as r,Lr as s,Wr as t,jr as u,fr as v,yr as w,dr as x,mr as y,_n as z}; \ No newline at end of file diff --git a/src/www/assets/select-CzebumOF.js b/src/www/assets/select-D2uO5-De.js similarity index 97% rename from src/www/assets/select-CzebumOF.js rename to src/www/assets/select-D2uO5-De.js index 621c057..ae6e2af 100644 --- a/src/www/assets/select-CzebumOF.js +++ b/src/www/assets/select-D2uO5-De.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{r,t as i}from"./dist-Cc8_LDAq.js";import{i as a,s as o,u as s}from"./button-C_NDYaz8.js";import{n as c}from"./dist-Dtn5c_cx.js";import{a as l,n as u,r as d,t as f}from"./dist-DPPquN_M.js";import{t as p}from"./dist-CHFjpVqk.js";import{n as m,t as h}from"./dist-D4X8zGEB.js";import{n as g}from"./dist-BNFQuJTu.js";import{n as _,t as v}from"./dist-rcWP-8Cu.js";import{i as y,n as b,r as x,t as S}from"./es2015-DT8UeWzs.js";import{t as C}from"./dist-BixeH3nX.js";import{a as w,i as T,n as E,r as D,t as O}from"./dist-CsIb2aLK.js";import{t as k}from"./dist-CRowTfGU.js";import{t as A}from"./createLucideIcon-Br0Bd5k2.js";import{t as j}from"./check-CHp0nSkR.js";import{t as M}from"./chevron-down-BB5h1CsX.js";var N=e(t(),1),P=e(r(),1),F=n(),I=[` `,`Enter`,`ArrowUp`,`ArrowDown`],L=[` `,`Enter`],R=`Select`,[z,B,V]=p(R),[H,U]=l(R,[V,w]),W=w(),[G,K]=H(R),[ee,te]=H(R),q=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:p,required:h,form:_}=e,v=W(t),[y,b]=N.useState(null),[x,S]=N.useState(null),[C,w]=N.useState(!1),E=g(l),[D,O]=f({prop:r,defaultProp:i??!1,onChange:a,caller:R}),[k,A]=f({prop:o,defaultProp:s,onChange:c,caller:R}),j=N.useRef(null),M=y?_||!!y.closest(`form`):!0,[P,I]=N.useState(new Set),L=Array.from(P).map(e=>e.props.value).join(`;`);return(0,F.jsx)(T,{...v,children:(0,F.jsxs)(G,{required:h,scope:t,trigger:y,onTriggerChange:b,valueNode:x,onValueNodeChange:S,valueNodeHasChildren:C,onValueNodeHasChildrenChange:w,contentId:m(),value:k,onValueChange:A,open:D,onOpenChange:O,dir:E,triggerPointerDownPosRef:j,disabled:p,children:[(0,F.jsx)(z.Provider,{scope:t,children:(0,F.jsx)(ee,{scope:e.__scopeSelect,onNativeOptionAdd:N.useCallback(e=>{I(t=>new Set(t).add(e))},[]),onNativeOptionRemove:N.useCallback(e=>{I(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),M?(0,F.jsxs)(We,{"aria-hidden":!0,required:h,tabIndex:-1,name:u,autoComplete:d,value:k,onChange:e=>A(e.target.value),disabled:p,form:_,children:[k===void 0?(0,F.jsx)(`option`,{value:``}):null,Array.from(P)]},L):null]})})};q.displayName=R;var ne=`SelectTrigger`,re=N.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...a}=e,o=W(n),c=K(ne,n),l=c.disabled||r,u=s(t,c.onTriggerChange),f=B(n),p=N.useRef(`touch`),[m,h,g]=Ke(e=>{let t=f().filter(e=>!e.disabled),n=qe(t,e,t.find(e=>e.value===c.value));n!==void 0&&c.onValueChange(n.value)}),_=e=>{l||(c.onOpenChange(!0),g()),e&&(c.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,F.jsx)(O,{asChild:!0,...o,children:(0,F.jsx)(i.button,{type:`button`,role:`combobox`,"aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":`none`,dir:c.dir,"data-state":c.open?`open`:`closed`,disabled:l,"data-disabled":l?``:void 0,"data-placeholder":Ge(c.value)?``:void 0,...a,ref:u,onClick:d(a.onClick,e=>{e.currentTarget.focus(),p.current!==`mouse`&&_(e)}),onPointerDown:d(a.onPointerDown,e=>{p.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(_(e),e.preventDefault())}),onKeyDown:d(a.onKeyDown,e=>{let t=m.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&h(e.key),!(t&&e.key===` `)&&I.includes(e.key)&&(_(),e.preventDefault())})})})});re.displayName=ne;var J=`SelectValue`,ie=N.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:a,children:o,placeholder:c=``,...l}=e,d=K(J,n),{onValueNodeHasChildrenChange:f}=d,p=o!==void 0,m=s(t,d.onValueNodeChange);return u(()=>{f(p)},[f,p]),(0,F.jsx)(i.span,{...l,ref:m,style:{pointerEvents:`none`},children:Ge(d.value)?(0,F.jsx)(F.Fragment,{children:c}):o})});ie.displayName=J;var ae=`SelectIcon`,oe=N.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...a}=e;return(0,F.jsx)(i.span,{"aria-hidden":!0,...a,ref:t,children:r||`▼`})});oe.displayName=ae;var se=`SelectPortal`,ce=e=>(0,F.jsx)(v,{asChild:!0,...e});ce.displayName=se;var Y=`SelectContent`,le=N.forwardRef((e,t)=>{let n=K(Y,e.__scopeSelect),[r,i]=N.useState();if(u(()=>{i(new DocumentFragment)},[]),!n.open){let t=r;return t?P.createPortal((0,F.jsx)(ue,{scope:e.__scopeSelect,children:(0,F.jsx)(z.Slot,{scope:e.__scopeSelect,children:(0,F.jsx)(`div`,{children:e.children})})}),t):null}return(0,F.jsx)(pe,{...e,ref:t})});le.displayName=Y;var X=10,[ue,Z]=H(Y),de=`SelectContentImpl`,fe=o(`SelectContent.RemoveScroll`),pe=N.forwardRef((e,t)=>{let{__scopeSelect:n,position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:c,sideOffset:l,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:h,sticky:g,hideWhenDetached:v,avoidCollisions:C,...w}=e,T=K(Y,n),[E,D]=N.useState(null),[O,k]=N.useState(null),A=s(t,e=>D(e)),[j,M]=N.useState(null),[P,I]=N.useState(null),L=B(n),[R,z]=N.useState(!1),V=N.useRef(!1);N.useEffect(()=>{if(E)return S(E)},[E]),x();let H=N.useCallback(e=>{let[t,...n]=L().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&O&&(O.scrollTop=0),n===r&&O&&(O.scrollTop=O.scrollHeight),n?.focus(),document.activeElement!==i))return},[L,O]),U=N.useCallback(()=>H([j,E]),[H,j,E]);N.useEffect(()=>{R&&U()},[R,U]);let{onOpenChange:W,triggerPointerDownPosRef:G}=T;N.useEffect(()=>{if(E){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(G.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(G.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():E.contains(n.target)||W(!1),document.removeEventListener(`pointermove`,t),G.current=null};return G.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[E,W,G]),N.useEffect(()=>{let e=()=>W(!1);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[W]);let[ee,te]=Ke(e=>{let t=L().filter(e=>!e.disabled),n=qe(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current.focus())}),q=N.useCallback((e,t,n)=>{let r=!V.current&&!n;(T.value!==void 0&&T.value===t||r)&&(M(e),r&&(V.current=!0))},[T.value]),ne=N.useCallback(()=>E?.focus(),[E]),re=N.useCallback((e,t,n)=>{let r=!V.current&&!n;(T.value!==void 0&&T.value===t||r)&&I(e)},[T.value]),J=r===`popper`?_e:he,ie=J===_e?{side:c,sideOffset:l,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:h,sticky:g,hideWhenDetached:v,avoidCollisions:C}:{};return(0,F.jsx)(ue,{scope:n,content:E,viewport:O,onViewportChange:k,itemRefCallback:q,selectedItem:j,onItemLeave:ne,itemTextRefCallback:re,focusSelectedItem:U,selectedItemText:P,position:r,isPositioned:R,searchRef:ee,children:(0,F.jsx)(b,{as:fe,allowPinchZoom:!0,children:(0,F.jsx)(y,{asChild:!0,trapped:T.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:d(i,e=>{T.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,F.jsx)(_,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:(0,F.jsx)(J,{role:`listbox`,id:T.contentId,"data-state":T.open?`open`:`closed`,dir:T.dir,onContextMenu:e=>e.preventDefault(),...w,...ie,onPlaced:()=>z(!0),ref:A,style:{display:`flex`,flexDirection:`column`,outline:`none`,...w.style},onKeyDown:d(w.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&te(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=L().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>H(t)),e.preventDefault()}})})})})})})});pe.displayName=de;var me=`SelectItemAlignedPosition`,he=N.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...a}=e,o=K(Y,n),c=Z(Y,n),[l,d]=N.useState(null),[f,p]=N.useState(null),m=s(t,e=>p(e)),h=B(n),g=N.useRef(!1),_=N.useRef(!0),{viewport:v,selectedItem:y,selectedItemText:b,focusSelectedItem:x}=c,S=N.useCallback(()=>{if(o.trigger&&o.valueNode&&l&&f&&v&&y&&b){let e=o.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),n=o.valueNode.getBoundingClientRect(),i=b.getBoundingClientRect();if(o.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,s=e.width+o,c=Math.max(s,t.width),u=window.innerWidth-X,d=k(a,[X,Math.max(X,u-c)]);l.style.minWidth=s+`px`,l.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,s=e.width+o,c=Math.max(s,t.width),u=window.innerWidth-X,d=k(a,[X,Math.max(X,u-c)]);l.style.minWidth=s+`px`,l.style.right=d+`px`}let a=h(),s=window.innerHeight-X*2,c=v.scrollHeight,u=window.getComputedStyle(f),d=parseInt(u.borderTopWidth,10),p=parseInt(u.paddingTop,10),m=parseInt(u.borderBottomWidth,10),_=parseInt(u.paddingBottom,10),x=d+p+c+_+m,S=Math.min(y.offsetHeight*5,x),C=window.getComputedStyle(v),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-X,D=s-E,O=y.offsetHeight/2,A=y.offsetTop+O,j=d+p+A,M=x-j;if(j<=E){let e=a.length>0&&y===a[a.length-1].ref.current;l.style.bottom=`0px`;let t=f.clientHeight-v.offsetTop-v.offsetHeight,n=j+Math.max(D,O+(e?T:0)+t+m);l.style.height=n+`px`}else{let e=a.length>0&&y===a[0].ref.current;l.style.top=`0px`;let t=Math.max(E,d+v.offsetTop+(e?w:0)+O)+M;l.style.height=t+`px`,v.scrollTop=j-E+v.offsetTop}l.style.margin=`${X}px 0`,l.style.minHeight=S+`px`,l.style.maxHeight=s+`px`,r?.(),requestAnimationFrame(()=>g.current=!0)}},[h,o.trigger,o.valueNode,l,f,v,y,b,o.dir,r]);u(()=>S(),[S]);let[C,w]=N.useState();return u(()=>{f&&w(window.getComputedStyle(f).zIndex)},[f]),(0,F.jsx)(ve,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:g,onScrollButtonChange:N.useCallback(e=>{e&&_.current===!0&&(S(),x?.(),_.current=!1)},[S,x]),children:(0,F.jsx)(`div`,{ref:d,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:C},children:(0,F.jsx)(i.div,{...a,ref:m,style:{boxSizing:`border-box`,maxHeight:`100%`,...a.style}})})})});he.displayName=me;var ge=`SelectPopperPosition`,_e=N.forwardRef((e,t)=>{let{__scopeSelect:n,align:r=`start`,collisionPadding:i=X,...a}=e,o=W(n);return(0,F.jsx)(D,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})});_e.displayName=ge;var[ve,ye]=H(Y,{}),be=`SelectViewport`,xe=N.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...a}=e,o=Z(be,n),c=ye(be,n),l=s(t,o.onViewportChange),u=N.useRef(0);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,F.jsx)(z.Slot,{scope:n,children:(0,F.jsx)(i.div,{"data-radix-select-viewport":``,role:`presentation`,...a,ref:l,style:{position:`relative`,flex:1,overflow:`hidden auto`,...a.style},onScroll:d(a.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=c;if(r?.current&&n){let e=Math.abs(u.current-t.scrollTop);if(e>0){let r=window.innerHeight-X*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o0?s:0,n.style.justifyContent=`flex-end`)}}}u.current=t.scrollTop})})})]})});xe.displayName=be;var Se=`SelectGroup`,[Ce,we]=H(Se),Te=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,a=m();return(0,F.jsx)(Ce,{scope:n,id:a,children:(0,F.jsx)(i.div,{role:`group`,"aria-labelledby":a,...r,ref:t})})});Te.displayName=Se;var Ee=`SelectLabel`,De=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,a=we(Ee,n);return(0,F.jsx)(i.div,{id:a.id,...r,ref:t})});De.displayName=Ee;var Q=`SelectItem`,[Oe,ke]=H(Q),Ae=N.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:a=!1,textValue:o,...c}=e,l=K(Q,n),u=Z(Q,n),f=l.value===r,[p,h]=N.useState(o??``),[g,_]=N.useState(!1),v=s(t,e=>u.itemRefCallback?.(e,r,a)),y=m(),b=N.useRef(`touch`),x=()=>{a||(l.onValueChange(r),l.onOpenChange(!1))};if(r===``)throw Error(`A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.`);return(0,F.jsx)(Oe,{scope:n,value:r,disabled:a,textId:y,isSelected:f,onItemTextChange:N.useCallback(e=>{h(t=>t||(e?.textContent??``).trim())},[]),children:(0,F.jsx)(z.ItemSlot,{scope:n,value:r,disabled:a,textValue:p,children:(0,F.jsx)(i.div,{role:`option`,"aria-labelledby":y,"data-highlighted":g?``:void 0,"aria-selected":f&&g,"data-state":f?`checked`:`unchecked`,"aria-disabled":a||void 0,"data-disabled":a?``:void 0,tabIndex:a?void 0:-1,...c,ref:v,onFocus:d(c.onFocus,()=>_(!0)),onBlur:d(c.onBlur,()=>_(!1)),onClick:d(c.onClick,()=>{b.current!==`mouse`&&x()}),onPointerUp:d(c.onPointerUp,()=>{b.current===`mouse`&&x()}),onPointerDown:d(c.onPointerDown,e=>{b.current=e.pointerType}),onPointerMove:d(c.onPointerMove,e=>{b.current=e.pointerType,a?u.onItemLeave?.():b.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:d(c.onPointerLeave,e=>{e.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:d(c.onKeyDown,e=>{u.searchRef?.current!==``&&e.key===` `||(L.includes(e.key)&&x(),e.key===` `&&e.preventDefault())})})})})});Ae.displayName=Q;var $=`SelectItemText`,je=N.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:a,...o}=e,c=K($,n),l=Z($,n),d=ke($,n),f=te($,n),[p,m]=N.useState(null),h=s(t,e=>m(e),d.onItemTextChange,e=>l.itemTextRefCallback?.(e,d.value,d.disabled)),g=p?.textContent,_=N.useMemo(()=>(0,F.jsx)(`option`,{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:v,onNativeOptionRemove:y}=f;return u(()=>(v(_),()=>y(_)),[v,y,_]),(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(i.span,{id:d.textId,...o,ref:h}),d.isSelected&&c.valueNode&&!c.valueNodeHasChildren?P.createPortal(o.children,c.valueNode):null]})});je.displayName=$;var Me=`SelectItemIndicator`,Ne=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return ke(Me,n).isSelected?(0,F.jsx)(i.span,{"aria-hidden":!0,...r,ref:t}):null});Ne.displayName=Me;var Pe=`SelectScrollUpButton`,Fe=N.forwardRef((e,t)=>{let n=Z(Pe,e.__scopeSelect),r=ye(Pe,e.__scopeSelect),[i,a]=N.useState(!1),o=s(t,r.onScrollButtonChange);return u(()=>{if(n.viewport&&n.isPositioned){let e=function(){a(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,F.jsx)(Re,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null});Fe.displayName=Pe;var Ie=`SelectScrollDownButton`,Le=N.forwardRef((e,t)=>{let n=Z(Ie,e.__scopeSelect),r=ye(Ie,e.__scopeSelect),[i,a]=N.useState(!1),o=s(t,r.onScrollButtonChange);return u(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,F.jsx)(Re,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null});Le.displayName=Ie;var Re=N.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...a}=e,o=Z(`SelectScrollButton`,n),s=N.useRef(null),c=B(n),l=N.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return N.useEffect(()=>()=>l(),[l]),u(()=>{c().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[c]),(0,F.jsx)(i.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:d(a.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:d(a.onPointerMove,()=>{o.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:d(a.onPointerLeave,()=>{l()})})}),ze=`SelectSeparator`,Be=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,F.jsx)(i.div,{"aria-hidden":!0,...r,ref:t})});Be.displayName=ze;var Ve=`SelectArrow`,He=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=W(n),a=K(Ve,n),o=Z(Ve,n);return a.open&&o.position===`popper`?(0,F.jsx)(E,{...i,...r,ref:t}):null});He.displayName=Ve;var Ue=`SelectBubbleInput`,We=N.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{let a=N.useRef(null),o=s(r,a),l=C(t);return N.useEffect(()=>{let e=a.current;if(!e)return;let n=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(n,`value`).set;if(l!==t&&r){let n=new Event(`change`,{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[l,t]),(0,F.jsx)(i.select,{...n,style:{...c,...n.style},ref:o,defaultValue:t})});We.displayName=Ue;function Ge(e){return e===``||e===void 0}function Ke(e){let t=h(e),n=N.useRef(``),r=N.useRef(0),i=N.useCallback(e=>{let i=n.current+e;t(i),(function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))})(i)},[t]),a=N.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return N.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function qe(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Je(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function Je(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Ye=q,Xe=re,Ze=ie,Qe=oe,$e=ce,et=le,tt=xe,nt=Ae,rt=je,it=Ne,at=Fe,ot=Le,st=A(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]);function ct({...e}){return(0,F.jsx)(Ye,{"data-slot":`select`,...e})}function lt({...e}){return(0,F.jsx)(Ze,{"data-slot":`select-value`,...e})}function ut({className:e,size:t=`default`,children:n,...r}){return(0,F.jsxs)(Xe,{className:a(`flex w-fit items-center justify-between gap-2 whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-xs outline-none transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[size=default]:h-9 data-[size=sm]:h-8 data-[placeholder]:text-muted-foreground *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:hover:bg-input/50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0`,e),"data-size":t,"data-slot":`select-trigger`,...r,children:[n,(0,F.jsx)(Qe,{asChild:!0,children:(0,F.jsx)(M,{className:`size-4 opacity-50`})})]})}function dt({className:e,children:t,position:n=`item-aligned`,align:r=`center`,...i}){return(0,F.jsx)($e,{children:(0,F.jsxs)(et,{align:r,className:a(`data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in`,n===`popper`&&`data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1`,e),"data-slot":`select-content`,position:n,...i,children:[(0,F.jsx)(pt,{}),(0,F.jsx)(tt,{className:a(`p-1`,n===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1`),children:t}),(0,F.jsx)(mt,{})]})})}function ft({className:e,children:t,...n}){return(0,F.jsxs)(nt,{className:a(`relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),"data-slot":`select-item`,...n,children:[(0,F.jsx)(`span`,{className:`absolute right-2 flex size-3.5 items-center justify-center`,"data-slot":`select-item-indicator`,children:(0,F.jsx)(it,{children:(0,F.jsx)(j,{className:`size-4`})})}),(0,F.jsx)(rt,{children:t})]})}function pt({className:e,...t}){return(0,F.jsx)(at,{className:a(`flex cursor-default items-center justify-center py-1`,e),"data-slot":`select-scroll-up-button`,...t,children:(0,F.jsx)(st,{className:`size-4`})})}function mt({className:e,...t}){return(0,F.jsx)(ot,{className:a(`flex cursor-default items-center justify-center py-1`,e),"data-slot":`select-scroll-down-button`,...t,children:(0,F.jsx)(M,{className:`size-4`})})}export{lt as a,ut as i,dt as n,ft as r,ct as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";import{r,t as i}from"./dist-D3WFT-Yo.js";import{i as a,s as o,u as s}from"./button-NLSeBFht.js";import{n as c}from"./dist-CjidLXaw.js";import{a as l,n as u,r as d,t as f}from"./dist-DmeeHi7K.js";import{t as p}from"./dist-UaPzzPYf.js";import{n as m,t as h}from"./dist-SR6sl-WU.js";import{n as g}from"./dist-CGRahgI2.js";import{n as _,t as v}from"./dist-esC74fSg.js";import{i as y,n as b,r as x,t as S}from"./es2015-3J9GnV9P.js";import{t as C}from"./dist-BixeH3nX.js";import{a as w,i as T,n as E,r as D,t as O}from"./dist-DB-jLX48.js";import{t as k}from"./dist-CRowTfGU.js";import{t as A}from"./createLucideIcon-Br0Bd5k2.js";import{t as j}from"./check-CHp0nSkR.js";import{t as M}from"./chevron-down-BB5h1CsX.js";var N=e(t(),1),P=e(r(),1),F=n(),I=[` `,`Enter`,`ArrowUp`,`ArrowDown`],L=[` `,`Enter`],R=`Select`,[z,B,V]=p(R),[H,U]=l(R,[V,w]),W=w(),[G,K]=H(R),[ee,te]=H(R),q=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:p,required:h,form:_}=e,v=W(t),[y,b]=N.useState(null),[x,S]=N.useState(null),[C,w]=N.useState(!1),E=g(l),[D,O]=f({prop:r,defaultProp:i??!1,onChange:a,caller:R}),[k,A]=f({prop:o,defaultProp:s,onChange:c,caller:R}),j=N.useRef(null),M=y?_||!!y.closest(`form`):!0,[P,I]=N.useState(new Set),L=Array.from(P).map(e=>e.props.value).join(`;`);return(0,F.jsx)(T,{...v,children:(0,F.jsxs)(G,{required:h,scope:t,trigger:y,onTriggerChange:b,valueNode:x,onValueNodeChange:S,valueNodeHasChildren:C,onValueNodeHasChildrenChange:w,contentId:m(),value:k,onValueChange:A,open:D,onOpenChange:O,dir:E,triggerPointerDownPosRef:j,disabled:p,children:[(0,F.jsx)(z.Provider,{scope:t,children:(0,F.jsx)(ee,{scope:e.__scopeSelect,onNativeOptionAdd:N.useCallback(e=>{I(t=>new Set(t).add(e))},[]),onNativeOptionRemove:N.useCallback(e=>{I(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),M?(0,F.jsxs)(We,{"aria-hidden":!0,required:h,tabIndex:-1,name:u,autoComplete:d,value:k,onChange:e=>A(e.target.value),disabled:p,form:_,children:[k===void 0?(0,F.jsx)(`option`,{value:``}):null,Array.from(P)]},L):null]})})};q.displayName=R;var ne=`SelectTrigger`,re=N.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...a}=e,o=W(n),c=K(ne,n),l=c.disabled||r,u=s(t,c.onTriggerChange),f=B(n),p=N.useRef(`touch`),[m,h,g]=Ke(e=>{let t=f().filter(e=>!e.disabled),n=qe(t,e,t.find(e=>e.value===c.value));n!==void 0&&c.onValueChange(n.value)}),_=e=>{l||(c.onOpenChange(!0),g()),e&&(c.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,F.jsx)(O,{asChild:!0,...o,children:(0,F.jsx)(i.button,{type:`button`,role:`combobox`,"aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":`none`,dir:c.dir,"data-state":c.open?`open`:`closed`,disabled:l,"data-disabled":l?``:void 0,"data-placeholder":Ge(c.value)?``:void 0,...a,ref:u,onClick:d(a.onClick,e=>{e.currentTarget.focus(),p.current!==`mouse`&&_(e)}),onPointerDown:d(a.onPointerDown,e=>{p.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(_(e),e.preventDefault())}),onKeyDown:d(a.onKeyDown,e=>{let t=m.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&h(e.key),!(t&&e.key===` `)&&I.includes(e.key)&&(_(),e.preventDefault())})})})});re.displayName=ne;var J=`SelectValue`,ie=N.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:a,children:o,placeholder:c=``,...l}=e,d=K(J,n),{onValueNodeHasChildrenChange:f}=d,p=o!==void 0,m=s(t,d.onValueNodeChange);return u(()=>{f(p)},[f,p]),(0,F.jsx)(i.span,{...l,ref:m,style:{pointerEvents:`none`},children:Ge(d.value)?(0,F.jsx)(F.Fragment,{children:c}):o})});ie.displayName=J;var ae=`SelectIcon`,oe=N.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...a}=e;return(0,F.jsx)(i.span,{"aria-hidden":!0,...a,ref:t,children:r||`▼`})});oe.displayName=ae;var se=`SelectPortal`,ce=e=>(0,F.jsx)(v,{asChild:!0,...e});ce.displayName=se;var Y=`SelectContent`,le=N.forwardRef((e,t)=>{let n=K(Y,e.__scopeSelect),[r,i]=N.useState();if(u(()=>{i(new DocumentFragment)},[]),!n.open){let t=r;return t?P.createPortal((0,F.jsx)(ue,{scope:e.__scopeSelect,children:(0,F.jsx)(z.Slot,{scope:e.__scopeSelect,children:(0,F.jsx)(`div`,{children:e.children})})}),t):null}return(0,F.jsx)(pe,{...e,ref:t})});le.displayName=Y;var X=10,[ue,Z]=H(Y),de=`SelectContentImpl`,fe=o(`SelectContent.RemoveScroll`),pe=N.forwardRef((e,t)=>{let{__scopeSelect:n,position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:c,sideOffset:l,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:h,sticky:g,hideWhenDetached:v,avoidCollisions:C,...w}=e,T=K(Y,n),[E,D]=N.useState(null),[O,k]=N.useState(null),A=s(t,e=>D(e)),[j,M]=N.useState(null),[P,I]=N.useState(null),L=B(n),[R,z]=N.useState(!1),V=N.useRef(!1);N.useEffect(()=>{if(E)return S(E)},[E]),x();let H=N.useCallback(e=>{let[t,...n]=L().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&O&&(O.scrollTop=0),n===r&&O&&(O.scrollTop=O.scrollHeight),n?.focus(),document.activeElement!==i))return},[L,O]),U=N.useCallback(()=>H([j,E]),[H,j,E]);N.useEffect(()=>{R&&U()},[R,U]);let{onOpenChange:W,triggerPointerDownPosRef:G}=T;N.useEffect(()=>{if(E){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(G.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(G.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():E.contains(n.target)||W(!1),document.removeEventListener(`pointermove`,t),G.current=null};return G.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[E,W,G]),N.useEffect(()=>{let e=()=>W(!1);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[W]);let[ee,te]=Ke(e=>{let t=L().filter(e=>!e.disabled),n=qe(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current.focus())}),q=N.useCallback((e,t,n)=>{let r=!V.current&&!n;(T.value!==void 0&&T.value===t||r)&&(M(e),r&&(V.current=!0))},[T.value]),ne=N.useCallback(()=>E?.focus(),[E]),re=N.useCallback((e,t,n)=>{let r=!V.current&&!n;(T.value!==void 0&&T.value===t||r)&&I(e)},[T.value]),J=r===`popper`?_e:he,ie=J===_e?{side:c,sideOffset:l,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:h,sticky:g,hideWhenDetached:v,avoidCollisions:C}:{};return(0,F.jsx)(ue,{scope:n,content:E,viewport:O,onViewportChange:k,itemRefCallback:q,selectedItem:j,onItemLeave:ne,itemTextRefCallback:re,focusSelectedItem:U,selectedItemText:P,position:r,isPositioned:R,searchRef:ee,children:(0,F.jsx)(b,{as:fe,allowPinchZoom:!0,children:(0,F.jsx)(y,{asChild:!0,trapped:T.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:d(i,e=>{T.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,F.jsx)(_,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:(0,F.jsx)(J,{role:`listbox`,id:T.contentId,"data-state":T.open?`open`:`closed`,dir:T.dir,onContextMenu:e=>e.preventDefault(),...w,...ie,onPlaced:()=>z(!0),ref:A,style:{display:`flex`,flexDirection:`column`,outline:`none`,...w.style},onKeyDown:d(w.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&te(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=L().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>H(t)),e.preventDefault()}})})})})})})});pe.displayName=de;var me=`SelectItemAlignedPosition`,he=N.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...a}=e,o=K(Y,n),c=Z(Y,n),[l,d]=N.useState(null),[f,p]=N.useState(null),m=s(t,e=>p(e)),h=B(n),g=N.useRef(!1),_=N.useRef(!0),{viewport:v,selectedItem:y,selectedItemText:b,focusSelectedItem:x}=c,S=N.useCallback(()=>{if(o.trigger&&o.valueNode&&l&&f&&v&&y&&b){let e=o.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),n=o.valueNode.getBoundingClientRect(),i=b.getBoundingClientRect();if(o.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,s=e.width+o,c=Math.max(s,t.width),u=window.innerWidth-X,d=k(a,[X,Math.max(X,u-c)]);l.style.minWidth=s+`px`,l.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,s=e.width+o,c=Math.max(s,t.width),u=window.innerWidth-X,d=k(a,[X,Math.max(X,u-c)]);l.style.minWidth=s+`px`,l.style.right=d+`px`}let a=h(),s=window.innerHeight-X*2,c=v.scrollHeight,u=window.getComputedStyle(f),d=parseInt(u.borderTopWidth,10),p=parseInt(u.paddingTop,10),m=parseInt(u.borderBottomWidth,10),_=parseInt(u.paddingBottom,10),x=d+p+c+_+m,S=Math.min(y.offsetHeight*5,x),C=window.getComputedStyle(v),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-X,D=s-E,O=y.offsetHeight/2,A=y.offsetTop+O,j=d+p+A,M=x-j;if(j<=E){let e=a.length>0&&y===a[a.length-1].ref.current;l.style.bottom=`0px`;let t=f.clientHeight-v.offsetTop-v.offsetHeight,n=j+Math.max(D,O+(e?T:0)+t+m);l.style.height=n+`px`}else{let e=a.length>0&&y===a[0].ref.current;l.style.top=`0px`;let t=Math.max(E,d+v.offsetTop+(e?w:0)+O)+M;l.style.height=t+`px`,v.scrollTop=j-E+v.offsetTop}l.style.margin=`${X}px 0`,l.style.minHeight=S+`px`,l.style.maxHeight=s+`px`,r?.(),requestAnimationFrame(()=>g.current=!0)}},[h,o.trigger,o.valueNode,l,f,v,y,b,o.dir,r]);u(()=>S(),[S]);let[C,w]=N.useState();return u(()=>{f&&w(window.getComputedStyle(f).zIndex)},[f]),(0,F.jsx)(ve,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:g,onScrollButtonChange:N.useCallback(e=>{e&&_.current===!0&&(S(),x?.(),_.current=!1)},[S,x]),children:(0,F.jsx)(`div`,{ref:d,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:C},children:(0,F.jsx)(i.div,{...a,ref:m,style:{boxSizing:`border-box`,maxHeight:`100%`,...a.style}})})})});he.displayName=me;var ge=`SelectPopperPosition`,_e=N.forwardRef((e,t)=>{let{__scopeSelect:n,align:r=`start`,collisionPadding:i=X,...a}=e,o=W(n);return(0,F.jsx)(D,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})});_e.displayName=ge;var[ve,ye]=H(Y,{}),be=`SelectViewport`,xe=N.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...a}=e,o=Z(be,n),c=ye(be,n),l=s(t,o.onViewportChange),u=N.useRef(0);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,F.jsx)(z.Slot,{scope:n,children:(0,F.jsx)(i.div,{"data-radix-select-viewport":``,role:`presentation`,...a,ref:l,style:{position:`relative`,flex:1,overflow:`hidden auto`,...a.style},onScroll:d(a.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=c;if(r?.current&&n){let e=Math.abs(u.current-t.scrollTop);if(e>0){let r=window.innerHeight-X*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o0?s:0,n.style.justifyContent=`flex-end`)}}}u.current=t.scrollTop})})})]})});xe.displayName=be;var Se=`SelectGroup`,[Ce,we]=H(Se),Te=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,a=m();return(0,F.jsx)(Ce,{scope:n,id:a,children:(0,F.jsx)(i.div,{role:`group`,"aria-labelledby":a,...r,ref:t})})});Te.displayName=Se;var Ee=`SelectLabel`,De=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,a=we(Ee,n);return(0,F.jsx)(i.div,{id:a.id,...r,ref:t})});De.displayName=Ee;var Q=`SelectItem`,[Oe,ke]=H(Q),Ae=N.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:a=!1,textValue:o,...c}=e,l=K(Q,n),u=Z(Q,n),f=l.value===r,[p,h]=N.useState(o??``),[g,_]=N.useState(!1),v=s(t,e=>u.itemRefCallback?.(e,r,a)),y=m(),b=N.useRef(`touch`),x=()=>{a||(l.onValueChange(r),l.onOpenChange(!1))};if(r===``)throw Error(`A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.`);return(0,F.jsx)(Oe,{scope:n,value:r,disabled:a,textId:y,isSelected:f,onItemTextChange:N.useCallback(e=>{h(t=>t||(e?.textContent??``).trim())},[]),children:(0,F.jsx)(z.ItemSlot,{scope:n,value:r,disabled:a,textValue:p,children:(0,F.jsx)(i.div,{role:`option`,"aria-labelledby":y,"data-highlighted":g?``:void 0,"aria-selected":f&&g,"data-state":f?`checked`:`unchecked`,"aria-disabled":a||void 0,"data-disabled":a?``:void 0,tabIndex:a?void 0:-1,...c,ref:v,onFocus:d(c.onFocus,()=>_(!0)),onBlur:d(c.onBlur,()=>_(!1)),onClick:d(c.onClick,()=>{b.current!==`mouse`&&x()}),onPointerUp:d(c.onPointerUp,()=>{b.current===`mouse`&&x()}),onPointerDown:d(c.onPointerDown,e=>{b.current=e.pointerType}),onPointerMove:d(c.onPointerMove,e=>{b.current=e.pointerType,a?u.onItemLeave?.():b.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:d(c.onPointerLeave,e=>{e.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:d(c.onKeyDown,e=>{u.searchRef?.current!==``&&e.key===` `||(L.includes(e.key)&&x(),e.key===` `&&e.preventDefault())})})})})});Ae.displayName=Q;var $=`SelectItemText`,je=N.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:a,...o}=e,c=K($,n),l=Z($,n),d=ke($,n),f=te($,n),[p,m]=N.useState(null),h=s(t,e=>m(e),d.onItemTextChange,e=>l.itemTextRefCallback?.(e,d.value,d.disabled)),g=p?.textContent,_=N.useMemo(()=>(0,F.jsx)(`option`,{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:v,onNativeOptionRemove:y}=f;return u(()=>(v(_),()=>y(_)),[v,y,_]),(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(i.span,{id:d.textId,...o,ref:h}),d.isSelected&&c.valueNode&&!c.valueNodeHasChildren?P.createPortal(o.children,c.valueNode):null]})});je.displayName=$;var Me=`SelectItemIndicator`,Ne=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return ke(Me,n).isSelected?(0,F.jsx)(i.span,{"aria-hidden":!0,...r,ref:t}):null});Ne.displayName=Me;var Pe=`SelectScrollUpButton`,Fe=N.forwardRef((e,t)=>{let n=Z(Pe,e.__scopeSelect),r=ye(Pe,e.__scopeSelect),[i,a]=N.useState(!1),o=s(t,r.onScrollButtonChange);return u(()=>{if(n.viewport&&n.isPositioned){let e=function(){a(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,F.jsx)(Re,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null});Fe.displayName=Pe;var Ie=`SelectScrollDownButton`,Le=N.forwardRef((e,t)=>{let n=Z(Ie,e.__scopeSelect),r=ye(Ie,e.__scopeSelect),[i,a]=N.useState(!1),o=s(t,r.onScrollButtonChange);return u(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,F.jsx)(Re,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null});Le.displayName=Ie;var Re=N.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...a}=e,o=Z(`SelectScrollButton`,n),s=N.useRef(null),c=B(n),l=N.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return N.useEffect(()=>()=>l(),[l]),u(()=>{c().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[c]),(0,F.jsx)(i.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:d(a.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:d(a.onPointerMove,()=>{o.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:d(a.onPointerLeave,()=>{l()})})}),ze=`SelectSeparator`,Be=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,F.jsx)(i.div,{"aria-hidden":!0,...r,ref:t})});Be.displayName=ze;var Ve=`SelectArrow`,He=N.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=W(n),a=K(Ve,n),o=Z(Ve,n);return a.open&&o.position===`popper`?(0,F.jsx)(E,{...i,...r,ref:t}):null});He.displayName=Ve;var Ue=`SelectBubbleInput`,We=N.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{let a=N.useRef(null),o=s(r,a),l=C(t);return N.useEffect(()=>{let e=a.current;if(!e)return;let n=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(n,`value`).set;if(l!==t&&r){let n=new Event(`change`,{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[l,t]),(0,F.jsx)(i.select,{...n,style:{...c,...n.style},ref:o,defaultValue:t})});We.displayName=Ue;function Ge(e){return e===``||e===void 0}function Ke(e){let t=h(e),n=N.useRef(``),r=N.useRef(0),i=N.useCallback(e=>{let i=n.current+e;t(i),(function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))})(i)},[t]),a=N.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return N.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function qe(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Je(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function Je(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Ye=q,Xe=re,Ze=ie,Qe=oe,$e=ce,et=le,tt=xe,nt=Ae,rt=je,it=Ne,at=Fe,ot=Le,st=A(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]);function ct({...e}){return(0,F.jsx)(Ye,{"data-slot":`select`,...e})}function lt({...e}){return(0,F.jsx)(Ze,{"data-slot":`select-value`,...e})}function ut({className:e,size:t=`default`,children:n,...r}){return(0,F.jsxs)(Xe,{className:a(`flex w-fit items-center justify-between gap-2 whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-xs outline-none transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[size=default]:h-9 data-[size=sm]:h-8 data-[placeholder]:text-muted-foreground *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:hover:bg-input/50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0`,e),"data-size":t,"data-slot":`select-trigger`,...r,children:[n,(0,F.jsx)(Qe,{asChild:!0,children:(0,F.jsx)(M,{className:`size-4 opacity-50`})})]})}function dt({className:e,children:t,position:n=`item-aligned`,align:r=`center`,...i}){return(0,F.jsx)($e,{children:(0,F.jsxs)(et,{align:r,className:a(`data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in`,n===`popper`&&`data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1`,e),"data-slot":`select-content`,position:n,...i,children:[(0,F.jsx)(pt,{}),(0,F.jsx)(tt,{className:a(`p-1`,n===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1`),children:t}),(0,F.jsx)(mt,{})]})})}function ft({className:e,children:t,...n}){return(0,F.jsxs)(nt,{className:a(`relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),"data-slot":`select-item`,...n,children:[(0,F.jsx)(`span`,{className:`absolute right-2 flex size-3.5 items-center justify-center`,"data-slot":`select-item-indicator`,children:(0,F.jsx)(it,{children:(0,F.jsx)(j,{className:`size-4`})})}),(0,F.jsx)(rt,{children:t})]})}function pt({className:e,...t}){return(0,F.jsx)(at,{className:a(`flex cursor-default items-center justify-center py-1`,e),"data-slot":`select-scroll-up-button`,...t,children:(0,F.jsx)(st,{className:`size-4`})})}function mt({className:e,...t}){return(0,F.jsx)(ot,{className:a(`flex cursor-default items-center justify-center py-1`,e),"data-slot":`select-scroll-down-button`,...t,children:(0,F.jsx)(M,{className:`size-4`})})}export{lt as a,ut as i,dt as n,ft as r,ct as t}; \ No newline at end of file diff --git a/src/www/assets/separator-CsUemQNs.js b/src/www/assets/separator-CqhQIQ-B.js similarity index 85% rename from src/www/assets/separator-CsUemQNs.js rename to src/www/assets/separator-CqhQIQ-B.js index 933066b..c875788 100644 --- a/src/www/assets/separator-CsUemQNs.js +++ b/src/www/assets/separator-CqhQIQ-B.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./dist-Cc8_LDAq.js";import{i}from"./button-C_NDYaz8.js";var a=e(t(),1),o=n(),s=`Separator`,c=`horizontal`,l=[`horizontal`,`vertical`],u=a.forwardRef((e,t)=>{let{decorative:n,orientation:i=c,...a}=e,s=d(i)?i:c,l=n?{role:`none`}:{"aria-orientation":s===`vertical`?s:void 0,role:`separator`};return(0,o.jsx)(r.div,{"data-orientation":s,...l,...a,ref:t})});u.displayName=s;function d(e){return l.includes(e)}var f=u;function p({className:e,orientation:t=`horizontal`,decorative:n=!0,...r}){return(0,o.jsx)(f,{className:i(`shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px`,e),"data-slot":`separator`,decorative:n,orientation:t,...r})}export{p as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";import{t as r}from"./dist-D3WFT-Yo.js";import{i}from"./button-NLSeBFht.js";var a=e(t(),1),o=n(),s=`Separator`,c=`horizontal`,l=[`horizontal`,`vertical`],u=a.forwardRef((e,t)=>{let{decorative:n,orientation:i=c,...a}=e,s=d(i)?i:c,l=n?{role:`none`}:{"aria-orientation":s===`vertical`?s:void 0,role:`separator`};return(0,o.jsx)(r.div,{"data-orientation":s,...l,...a,ref:t})});u.displayName=s;function d(e){return l.includes(e)}var f=u;function p({className:e,orientation:t=`horizontal`,decorative:n=!0,...r}){return(0,o.jsx)(f,{className:i(`shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px`,e),"data-slot":`separator`,decorative:n,orientation:t,...r})}export{p as t}; \ No newline at end of file diff --git a/src/www/assets/settings-eRG1_Yuf.js b/src/www/assets/settings-DskxyKWx.js similarity index 98% rename from src/www/assets/settings-eRG1_Yuf.js rename to src/www/assets/settings-DskxyKWx.js index 537e034..ae7a94a 100644 --- a/src/www/assets/settings-eRG1_Yuf.js +++ b/src/www/assets/settings-DskxyKWx.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{Ar as n,Br as r,Fr as i,Gr as a,Hr as o,If as s,Ir as c,Kr as l,Lr as u,Mr as d,Nr as f,Pr as p,Rr as m,Ur as h,Vr as g,Wr as _,jr as v,kr as y,tm as b,zr as x}from"./messages-BOatyqUm.js";import{i as S,t as C}from"./button-C_NDYaz8.js";import{n as w,r as T,t as E}from"./popover-NQZzcPDh.js";import{c as D,o as O,s as ee}from"./zod-rwFXxHlg.js";import{a as k,c as te,i as A,l as ne,n as j,o as M,r as re,s as N,t as ie}from"./form-KfFEakes.js";import{t as P}from"./input-8zzM34r5.js";import{t as ae}from"./page-header-GTtyZFBB.js";import{a as oe,i as se,n as ce,r as le,t as F}from"./lib-DDezYSnW.js";function I(){return I=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{r:t,g:n,b:r,a:i}=e,a=Math.max(t,n,r),o=a-Math.min(t,n,r),s=o?a===t?(n-r)/o:a===n?2+(r-t)/o:4+(t-n)/o:0;return{h:60*(s<0?s+6:s),s:a?o/a*R:0,v:a/L*R,a:i}},de=e=>{var{h:t,s:n,l:r,a:i}=fe(e);return`hsla(`+t+`, `+n+`%, `+r+`%, `+i+`)`},B=e=>{var{h:t,s:n,l:r,a:i}=e;return n*=(r<50?r:R-r)/R,{h:t,s:n>0?2*n/(r+n)*R:0,v:r+n,a:i}},fe=e=>{var{h:t,s:n,v:r,a:i}=e,a=(200-n)*r/R;return{h:t,s:a>0&&a<200?n*r/R/(a<=R?a:200-a)*R:0,l:a/2,a:i}};ue/400,ue/(Math.PI*2);var pe=e=>{var{r:t,g:n,b:r}=e;return`#`+(e=>Array(7-e.length).join(`0`)+e)((t<<16|n<<8|r).toString(16))},me=e=>{var{r:t,g:n,b:r,a:i}=e,a=typeof i==`number`&&(i*255|256).toString(16).slice(1);return``+pe({r:t,g:n,b:r})+(a||``)},V=e=>z(he(e)),he=e=>{var t=e.replace(`#`,``);/^#?/.test(e)&&t.length===3&&(e=`#`+t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2));var n=RegExp(`[A-Za-z0-9]{2}`,`g`),[r,i,a=0,o]=e.match(n).map(e=>parseInt(e,16));return{r,g:i,b:a,a:(o??255)/L}},H=e=>{var{h:t,s:n,v:r,a:i}=e,a=t/60,o=n/R,s=r/R,c=Math.floor(a)%6,l=a-Math.floor(a),u=L*s*(1-o),d=L*s*(1-o*l),f=L*s*(1-o*(1-l));s*=L;var p={};switch(c){case 0:p.r=s,p.g=f,p.b=u;break;case 1:p.r=d,p.g=s,p.b=u;break;case 2:p.r=u,p.g=s,p.b=f;break;case 3:p.r=u,p.g=d,p.b=s;break;case 4:p.r=f,p.g=u,p.b=s;break;case 5:p.r=s,p.g=u,p.b=d;break}return p.r=Math.round(p.r),p.g=Math.round(p.g),p.b=Math.round(p.b),I({},p,{a:i})},ge=e=>{var{r:t,g:n,b:r,a:i}=H(e);return`rgba(`+t+`, `+n+`, `+r+`, `+i+`)`},_e=e=>{var{r:t,g:n,b:r}=e;return{r:t,g:n,b:r}},ve=e=>{var{h:t,s:n,l:r}=e;return{h:t,s:n,l:r}},U=e=>pe(H(e)),ye=e=>me(H(e)),be=e=>{var{h:t,s:n,v:r}=e;return{h:t,s:n,v:r}},xe=e=>{var{r:t,g:n,b:r}=e,i=function(e){return e<=.04045?e/12.92:((e+.055)/1.055)**2.4},a=i(t/255),o=i(n/255),s=i(r/255),c={};return c.x=a*.4124+o*.3576+s*.1805,c.y=a*.2126+o*.7152+s*.0722,c.bri=a*.0193+o*.1192+s*.9505,c},W=e=>{var t,n,r,i,a,o,s,c,l;return typeof e==`string`&&G(e)?(o=V(e),c=e):typeof e!=`string`&&(o=e),o&&(r=be(o),a=fe(o),i=H(o),l=me(i),c=U(o),n=ve(a),t=_e(i),s=xe(t)),{rgb:t,hsl:n,hsv:r,rgba:i,hsla:a,hsva:o,hex:c,hexa:l,xy:s}},G=e=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(e);function K(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var q=e(t());function Se(e){var t=(0,q.useRef)(e);return(0,q.useEffect)(()=>{t.current=e}),(0,q.useCallback)((e,n)=>t.current&&t.current(e,n),[])}var J=e=>`touches`in e,Ce=e=>{!J(e)&&e.preventDefault&&e.preventDefault()},we=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e{var n=e.getBoundingClientRect(),r=J(t)?t.touches[0]:t;return{left:we((r.pageX-(n.left+window.pageXOffset))/n.width),top:we((r.pageY-(n.top+window.pageYOffset))/n.height),width:n.width,height:n.height,x:r.pageX-(n.left+window.pageXOffset),y:r.pageY-(n.top+window.pageYOffset)}},Y=b(),Ee=[`prefixCls`,`className`,`onMove`,`onDown`],De=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-interactive`,className:r,onMove:i,onDown:a}=e,o=K(e,Ee),s=(0,q.useRef)(null),c=(0,q.useRef)(!1),[l,u]=(0,q.useState)(!1),d=Se(i),f=Se(a),p=e=>c.current&&!J(e)?!1:(c.current=J(e),!0),m=(0,q.useCallback)(e=>{if(Ce(e),s.current){if(!(J(e)?e.touches.length>0:e.buttons>0)){u(!1);return}d?.(Te(s.current,e),e)}},[d]),h=(0,q.useCallback)(()=>u(!1),[]),g=(0,q.useCallback)(e=>{e?(window.addEventListener(c.current?`touchmove`:`mousemove`,m),window.addEventListener(c.current?`touchend`:`mouseup`,h)):(window.removeEventListener(`mousemove`,m),window.removeEventListener(`mouseup`,h),window.removeEventListener(`touchmove`,m),window.removeEventListener(`touchend`,h))},[m,h]);(0,q.useEffect)(()=>(g(l),()=>{g(!1)}),[l,m,h,g]);var _=(0,q.useCallback)(e=>{document.activeElement?.blur(),Ce(e.nativeEvent),p(e.nativeEvent)&&s.current&&(f?.(Te(s.current,e.nativeEvent),e.nativeEvent),u(!0))},[f]);return(0,Y.jsx)(`div`,I({},o,{className:[n,r||``].filter(Boolean).join(` `),style:I({},o.style,{touchAction:`none`}),ref:s,tabIndex:0,onMouseDown:_,onTouchStart:_}))});De.displayName=`Interactive`;var Oe=[`className`,`prefixCls`,`left`,`top`,`style`,`fillProps`],ke=e=>{var{className:t,prefixCls:n,left:r,top:i,style:a,fillProps:o}=e,s=K(e,Oe),c=I({},a,{position:`absolute`,left:r,top:i}),l=I({width:18,height:18,boxShadow:`var(--alpha-pointer-box-shadow)`,borderRadius:`50%`,backgroundColor:`var(--alpha-pointer-background-color)`},o?.style,{transform:r?`translate(-9px, -1px)`:`translate(-1px, -9px)`});return(0,Y.jsx)(`div`,I({className:n+`-pointer `+(t||``),style:c},s,{children:(0,Y.jsx)(`div`,I({className:n+`-fill`},o,{style:l}))}))},Ae=[`prefixCls`,`className`,`hsva`,`background`,`bgProps`,`innerProps`,`pointerProps`,`radius`,`width`,`height`,`direction`,`reverse`,`style`,`onChange`,`pointer`],je=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==`,X=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-alpha`,className:r,hsva:i,background:a,bgProps:o={},innerProps:s={},pointerProps:c={},radius:l=0,width:u,height:d=16,direction:f=`horizontal`,reverse:p=!1,style:m,onChange:h,pointer:g}=e,_=K(e,Ae),v=(0,q.useCallback)(e=>{var t=f===`horizontal`?e.left:e.top;return f===`horizontal`?p?1-t:t:p?t:1-t},[f,p]),y=(0,q.useCallback)(e=>f===`horizontal`?p?1-e:e:p?e:1-e,[f,p]),b=e=>{var t=v(e);h&&h(I({},i,{a:t}),e)},x=de(Object.assign({},i,{a:1})),S=p?`linear-gradient(to right, `+x+` 0%, rgba(244, 67, 54, 0) 100%)`:`linear-gradient(to right, rgba(244, 67, 54, 0) 0%, `+x+` 100%)`,C=p?`linear-gradient(to bottom, rgba(244, 67, 54, 0) 0%, `+x+` 100%)`:`linear-gradient(to bottom, `+x+` 0%, rgba(244, 67, 54, 0) 100%)`,w=f===`horizontal`?S:C,T={};f===`horizontal`?T.left=y(i.a)*100+`%`:T.top=y(i.a)*100+`%`;var E=I({"--alpha-background-color":`#fff`,"--alpha-pointer-background-color":`rgb(248, 248, 248)`,"--alpha-pointer-box-shadow":`rgb(0 0 0 / 37%) 0px 1px 4px 0px`,borderRadius:l,background:`url(`+je+`) left center`,backgroundColor:`var(--alpha-background-color)`},{width:u,height:d},m,{position:`relative`}),D=(0,q.useCallback)(e=>{var t=.01,n=i.a,r=n;switch(e.key){case`ArrowLeft`:f===`horizontal`&&(r=p?Math.min(1,n+t):Math.max(0,n-t),e.preventDefault());break;case`ArrowRight`:f===`horizontal`&&(r=p?Math.max(0,n-t):Math.min(1,n+t),e.preventDefault());break;case`ArrowUp`:f===`vertical`&&(r=p?Math.max(0,n-t):Math.min(1,n+t),e.preventDefault());break;case`ArrowDown`:f===`vertical`&&(r=p?Math.min(1,n+t):Math.max(0,n-t),e.preventDefault());break;default:return}if(r!==n){var a=y(r),o={left:f===`horizontal`?a:i.a,top:f===`vertical`?a:i.a,width:0,height:0,x:0,y:0};h&&h(I({},i,{a:r}),o)}},[y,i,f,h,p]),O=(0,q.useCallback)(e=>{e.target.focus()},[]),ee=g&&typeof g==`function`?g(I({prefixCls:n},c,T)):(0,Y.jsx)(ke,I({},c,{prefixCls:n},T));return(0,Y.jsxs)(`div`,I({},_,{className:[n,n+`-`+f,r||``].filter(Boolean).join(` `),style:E,ref:t,children:[(0,Y.jsx)(`div`,I({},o,{style:I({inset:0,position:`absolute`,background:a||w,borderRadius:l},o.style)})),(0,Y.jsx)(De,I({},s,{style:I({},s.style,{inset:0,zIndex:1,position:`absolute`,outline:`none`}),onMove:b,onDown:b,onClick:O,onKeyDown:D,children:ee}))]}))});X.displayName=`Alpha`;var Me=[`prefixCls`,`placement`,`label`,`value`,`className`,`style`,`labelStyle`,`inputStyle`,`onChange`,`onBlur`,`renderInput`],Ne=e=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(e),Pe=e=>Number(String(e).replace(/%/g,``)),Z=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-editable-input`,placement:r=`bottom`,label:i,value:a,className:o,style:s,labelStyle:c,inputStyle:l,onChange:u,onBlur:d,renderInput:f}=e,p=K(e,Me),[m,h]=(0,q.useState)(a),g=(0,q.useRef)(!1),_=(0,q.useRef)(p.id||n+`-`+Math.random().toString(36).slice(2,11)),v=p.id||_.current;(0,q.useEffect)(()=>{e.value!==m&&(g.current||h(e.value))},[e.value]);function y(e,t){var n=(t||e.target.value).trim().replace(/^#/,``);Ne(n)&&u&&u(e,n);var r=Pe(n);isNaN(r)||u&&u(e,r),h(n)}function b(t){g.current=!1,h(e.value),d&&d(t)}var x={};r===`bottom`&&(x.flexDirection=`column`),r===`top`&&(x.flexDirection=`column-reverse`),r===`left`&&(x.flexDirection=`row-reverse`);var S=I({"--editable-input-label-color":`rgb(153, 153, 153)`,"--editable-input-box-shadow":`rgb(204 204 204) 0px 0px 0px 1px inset`,"--editable-input-color":`#666`,position:`relative`,alignItems:`center`,display:`flex`,fontSize:11},x,s),C=I({width:`100%`,paddingTop:2,paddingBottom:2,paddingLeft:3,paddingRight:3,fontSize:11,background:`transparent`,boxSizing:`border-box`,border:`none`,color:`var(--editable-input-color)`,boxShadow:`var(--editable-input-box-shadow)`},l),w=I({value:m,onChange:y,onBlur:b,autoComplete:`off`,onFocus:()=>g.current=!0},p,{id:v,style:C,onFocusCapture:e=>{var t=e.target;t.setSelectionRange(t.value.length,t.value.length)}});return(0,Y.jsxs)(`div`,{className:[n,o||``].filter(Boolean).join(` `),style:S,children:[f?f(w,t):(0,Y.jsx)(`input`,I({ref:t},w)),i&&(0,Y.jsx)(`label`,{htmlFor:v,style:I({color:`var(--editable-input-label-color)`,textTransform:`capitalize`},c),children:i})]})});Z.displayName=`EditableInput`;var Fe=[`prefixCls`,`className`,`color`,`colors`,`style`,`rectProps`,`onChange`,`addonAfter`,`addonBefore`,`rectRender`],Ie=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-swatch`,className:r,color:i,colors:a=[],style:o,rectProps:s={},onChange:c,addonAfter:l,addonBefore:u,rectRender:d}=e,f=K(e,Fe),p=I({"--swatch-background-color":`rgb(144, 19, 254)`,background:`var(--swatch-background-color)`,height:15,width:15,marginRight:5,marginBottom:5,cursor:`pointer`,position:`relative`,outline:`none`,borderRadius:2},s.style),m=(e,t)=>{c&&c(V(e),W(V(e)),t)};return(0,Y.jsxs)(`div`,I({ref:t},f,{className:[n,r||``].filter(Boolean).join(` `),style:I({display:`flex`,flexWrap:`wrap`,position:`relative`},o),children:[u&&q.isValidElement(u)&&u,a&&Array.isArray(a)&&a.map((e,t)=>{var n=``,r=``;typeof e==`string`&&(n=e,r=e),typeof e==`object`&&e.color&&(n=e.title||e.color,r=e.color);var a=i&&i.toLocaleLowerCase()===r.toLocaleLowerCase(),o=d&&d({title:n,color:r,checked:!!a,style:I({},p,{background:r}),onClick:e=>m(r,e)});if(o)return(0,Y.jsx)(q.Fragment,{children:o},t);var c=s.children&&q.isValidElement(s.children)?q.cloneElement(s.children,{color:r,checked:a}):null;return(0,Y.jsx)(`div`,I({tabIndex:0,title:n,onClick:e=>m(r,e)},s,{children:c,style:I({},p,{background:r})}),t)}),l&&q.isValidElement(l)&&l]}))});Ie.displayName=`Swatch`;function Le(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var Re={marginRight:0,marginBottom:0,borderRadius:0,boxSizing:`border-box`,height:25,width:25};function ze(e){var{style:t,title:n,checked:r,color:i,onClick:a,rectProps:o}=e,s=(0,q.useRef)(null),c=(0,q.useCallback)(()=>{s.current.style.zIndex=`2`,s.current.style.outline=`#fff solid 2px`,s.current.style.boxShadow=`rgb(0 0 0 / 25%) 0 0 5px 2px`},[]),l=(0,q.useCallback)(()=>{r||(s.current.style.zIndex=`0`,s.current.style.outline=`initial`,s.current.style.boxShadow=`initial`)},[r]);return(0,Y.jsx)(`div`,I({ref:s,title:n},o,{onClick:a,onMouseEnter:c,onMouseLeave:l,style:I({},t,{marginRight:0,marginBottom:0,borderRadius:0,boxSizing:`border-box`,height:25,width:25},Re,r?{zIndex:1,outline:`#fff solid 2px`,boxShadow:`rgb(0 0 0 / 25%) 0 0 5px 2px`}:{zIndex:0},o?.style)}))}var Be=[`prefixCls`,`placement`,`className`,`style`,`color`,`colors`,`showTriangle`,`rectProps`,`onChange`,`rectRender`],Ve=[`#B80000`,`#DB3E00`,`#FCCB00`,`#008B02`,`#006B76`,`#1273DE`,`#004DCF`,`#5300EB`,`#EB9694`,`#FAD0C3`,`#FEF3BD`,`#C1E1C5`,`#BEDADC`,`#C4DEF6`,`#BED3F3`,`#D4C4FB`],Q=function(e){return e.Left=`L`,e.LeftTop=`LT`,e.LeftBottom=`LB`,e.Right=`R`,e.RightTop=`RT`,e.RightBottom=`RB`,e.Top=`T`,e.TopRight=`TR`,e.TopLeft=`TL`,e.Bottom=`B`,e.BottomLeft=`BL`,e.BottomRight=`BR`,e}({}),He=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-github`,placement:r=Q.TopRight,className:i,style:a,color:o,colors:s=Ve,showTriangle:c=!0,rectProps:l={},onChange:u,rectRender:d}=e,f=K(e,Be),p=typeof o==`string`&&G(o)?V(o):o,m=o?U(p):``,h=e=>u&&u(W(e)),g=I({"--github-border":`1px solid rgba(0, 0, 0, 0.2)`,"--github-background-color":`#fff`,"--github-box-shadow":`rgb(0 0 0 / 15%) 0px 3px 12px`,"--github-arrow-border-color":`rgba(0, 0, 0, 0.15)`,width:200,borderRadius:4,background:`var(--github-background-color)`,boxShadow:`var(--github-box-shadow)`,border:`var(--github-border)`,position:`relative`,padding:5},a),_={borderStyle:`solid`,position:`absolute`},v=I({},_),y=I({},_);return/^T/.test(r)&&(v.borderWidth=`0 8px 8px`,v.borderColor=`transparent transparent var(--github-arrow-border-color)`,y.borderWidth=`0 7px 7px`,y.borderColor=`transparent transparent var(--github-background-color)`),r===Q.TopRight&&(v.top=-8,y.top=-7),r===Q.Top&&(v.top=-8,y.top=-7),r===Q.TopLeft&&(v.top=-8,y.top=-7),/^B/.test(r)&&(v.borderWidth=`8px 8px 0`,v.borderColor=`var(--github-arrow-border-color) transparent transparent`,y.borderWidth=`7px 7px 0`,y.borderColor=`var(--github-background-color) transparent transparent`,r===Q.BottomRight&&(v.top=`100%`,y.top=`100%`),r===Q.Bottom&&(v.top=`100%`,y.top=`100%`),r===Q.BottomLeft&&(v.top=`100%`,y.top=`100%`)),/^(B|T)/.test(r)&&((r===Q.Top||r===Q.Bottom)&&(v.left=`50%`,v.marginLeft=-8,y.left=`50%`,y.marginLeft=-7),(r===Q.TopRight||r===Q.BottomRight)&&(v.right=10,y.right=11),(r===Q.TopLeft||r===Q.BottomLeft)&&(v.left=7,y.left=8)),/^L/.test(r)&&(v.borderWidth=`8px 8px 8px 0`,v.borderColor=`transparent var(--github-arrow-border-color) transparent transparent`,y.borderWidth=`7px 7px 7px 0`,y.borderColor=`transparent var(--github-background-color) transparent transparent`,v.left=-8,y.left=-7),/^R/.test(r)&&(v.borderWidth=`8px 0 8px 8px`,v.borderColor=`transparent transparent transparent var(--github-arrow-border-color)`,y.borderWidth=`7px 0 7px 7px`,y.borderColor=`transparent transparent transparent var(--github-background-color)`,v.right=-8,y.right=-7),/^(L|R)/.test(r)&&((r===Q.RightTop||r===Q.LeftTop)&&(v.top=5,y.top=6),(r===Q.Left||r===Q.Right)&&(v.top=`50%`,y.top=`50%`,v.marginTop=-8,y.marginTop=-7),(r===Q.LeftBottom||r===Q.RightBottom)&&(v.top=`100%`,y.top=`100%`,v.marginTop=-21,y.marginTop=-20)),(0,Y.jsx)(Ie,I({ref:t,className:[n,i].filter(Boolean).join(` `),colors:s,color:m,rectRender:e=>{var t=I({},(Le(e),e));return d&&d(I({},t))||(0,Y.jsx)(ze,I({},t,{rectProps:l}))}},f,{onChange:h,style:g,rectProps:{style:{marginRight:0,marginBottom:0,borderRadius:0,height:25,width:25}},addonBefore:(0,Y.jsx)(q.Fragment,{children:c&&(0,Y.jsxs)(q.Fragment,{children:[(0,Y.jsx)(`div`,{style:v}),(0,Y.jsx)(`div`,{style:y})]})})}))});He.displayName=`Github`;var Ue=e=>{var{className:t,color:n,left:r,top:i,prefixCls:a}=e,o={position:`absolute`,top:i,left:r},s={"--saturation-pointer-box-shadow":`rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px`,width:6,height:6,transform:`translate(-3px, -3px)`,boxShadow:`var(--saturation-pointer-box-shadow)`,borderRadius:`50%`,backgroundColor:n};return(0,q.useMemo)(()=>(0,Y.jsx)(`div`,{className:a+`-pointer `+(t||``),style:o,children:(0,Y.jsx)(`div`,{className:a+`-fill`,style:s})}),[i,r,n,t,a])},We=[`prefixCls`,`radius`,`pointer`,`className`,`hue`,`style`,`hsva`,`onChange`],Ge=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-saturation`,radius:r=0,pointer:i,className:a,hue:o=0,style:s,hsva:c,onChange:l}=e,u=K(e,We),d=I({width:200,height:200,borderRadius:r},s,{position:`relative`}),f=(0,q.useRef)(null),p=(0,q.useCallback)(e=>{f.current=e,typeof t==`function`?t(e):t&&`current`in t&&(t.current=e)},[t]),m=(0,q.useCallback)((e,t)=>{l&&c&&l({h:c.h,s:e.left*100,v:(1-e.top)*100,a:c.a});var n=f.current;n&&n.focus()},[c,l]),h=(0,q.useCallback)(e=>{if(!(!c||!l)){var t=1,n=c.s,r=c.v,i=!1;switch(e.key){case`ArrowLeft`:n=Math.max(0,c.s-t),i=!0,e.preventDefault();break;case`ArrowRight`:n=Math.min(100,c.s+t),i=!0,e.preventDefault();break;case`ArrowUp`:r=Math.min(100,c.v+t),i=!0,e.preventDefault();break;case`ArrowDown`:r=Math.max(0,c.v-t),i=!0,e.preventDefault();break;default:return}i&&l({h:c.h,s:n,v:r,a:c.a})}},[c,l]),g=(0,q.useMemo)(()=>{if(!c)return null;var e={top:100-c.v+`%`,left:c.s+`%`,color:de(c)};return i&&typeof i==`function`?i(I({prefixCls:n},e)):(0,Y.jsx)(Ue,I({prefixCls:n},e))},[c,i,n]),_=(0,q.useCallback)(e=>{e.target.focus()},[]);return(0,Y.jsx)(De,I({className:[n,a||``].filter(Boolean).join(` `)},u,{style:I({position:`absolute`,inset:0,cursor:`crosshair`,backgroundImage:`linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, hsl(`+(c?.h??o)+`, 100%, 50%))`},d,{outline:`none`}),ref:p,onMove:m,onDown:m,onKeyDown:h,onClick:_,children:g}))});Ge.displayName=`Saturation`;var Ke=[`prefixCls`,`className`,`hue`,`onChange`,`direction`,`reverse`],qe=`rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%`,Je=`rgb(255, 0, 0) 0%, rgb(255, 0, 255) 17%, rgb(0, 0, 255) 33%, rgb(0, 255, 255) 50%, rgb(0, 255, 0) 67%, rgb(255, 255, 0) 83%, rgb(255, 0, 0) 100%`,Ye=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-hue`,className:r,hue:i=0,onChange:a,direction:o=`horizontal`,reverse:s=!1}=e,c=K(e,Ke),l=(0,q.useCallback)(()=>o===`horizontal`?`linear-gradient(to right, `+(s?Je:qe)+`)`:`linear-gradient(to bottom, `+(s?qe:Je)+`)`,[o,s]),u=(0,q.useCallback)(e=>{var t=o===`horizontal`?e.left:e.top;return 360*(o===`horizontal`?s?1-t:t:s?t:1-t)},[o,s]),d=(0,q.useMemo)(()=>l(),[l]);return(0,Y.jsx)(X,I({ref:t,className:n+` `+(r||``)},c,{direction:o,reverse:s,background:d,hsva:{h:i,s:100,v:100,a:i/360},onChange:(e,t)=>{a&&a({h:u(t)})}}))});Ye.displayName=`Hue`;var Xe=[`prefixCls`,`hsva`,`placement`,`rProps`,`gProps`,`bProps`,`aProps`,`className`,`style`,`onChange`],Ze=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-editable-input-rgba`,hsva:r,placement:i=`bottom`,rProps:a={},gProps:o={},bProps:s={},aProps:c={},className:l,style:u,onChange:d}=e,f=K(e,Xe),p=r?H(r):{};function m(e){var t=Number(e.target.value);t&&t>255&&(e.target.value=`255`),t&&t<0&&(e.target.value=`0`)}var h=e=>{var t=Number(e.target.value);t&&t>100&&(e.target.value=`100`),t&&t<0&&(e.target.value=`0`)},g=(e,t,n)=>{typeof e==`number`&&(t===`a`&&(e<0&&(e=0),e>100&&(e=100),d&&d(W(z(I({},p,{a:e/100}))))),e>255&&(e=255,n.target.value=`255`),e<0&&(e=0,n.target.value=`0`),t===`r`&&d&&d(W(z(I({},p,{r:e})))),t===`g`&&d&&d(W(z(I({},p,{g:e})))),t===`b`&&d&&d(W(z(I({},p,{b:e})))))},_=p.a?Math.round(p.a*100)/100:0;return(0,Y.jsxs)(`div`,I({ref:t,className:[n,l||``].filter(Boolean).join(` `)},f,{style:I({fontSize:11,display:`flex`},u),children:[(0,Y.jsx)(Z,I({label:`R`,value:p.r||0,onBlur:m,placement:i,onChange:(e,t)=>g(t,`r`,e)},a,{style:I({},a.style)})),(0,Y.jsx)(Z,I({label:`G`,value:p.g||0,onBlur:m,placement:i,onChange:(e,t)=>g(t,`g`,e)},o,{style:I({marginLeft:5},o.style)})),(0,Y.jsx)(Z,I({label:`B`,value:p.b||0,onBlur:m,placement:i,onChange:(e,t)=>g(t,`b`,e)},s,{style:I({marginLeft:5},s.style)})),c&&(0,Y.jsx)(Z,I({label:`A`,value:parseInt(String(_*100),10),onBlur:h,placement:i,onChange:(e,t)=>g(t,`a`,e)},c,{style:I({marginLeft:5},c.style)}))]}))});Ze.displayName=`EditableInputRGBA`;var Qe=[`prefixCls`,`hsva`,`hProps`,`sProps`,`lProps`,`aProps`,`className`,`onChange`],$e=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-editable-input-hsla`,hsva:r,hProps:i={},sProps:a={},lProps:o={},aProps:s={},className:c,onChange:l}=e,u=K(e,Qe),d=r?fe(r):{h:0,s:0,l:0,a:0},f=(e,t,n)=>{typeof e==`number`&&(t===`h`&&(e<0&&(e=0),e>360&&(e=360),l&&l(W(B(I({},d,{h:e}))))),t===`s`&&(e<0&&(e=0),e>100&&(e=100),l&&l(W(B(I({},d,{s:e}))))),t===`l`&&(e<0&&(e=0),e>100&&(e=100),l&&l(W(B(I({},d,{l:e}))))),t===`a`&&(e<0&&(e=0),e>1&&(e=1),l&&l(W(B(I({},d,{a:e}))))))},p=s==0?!1:I({label:`A`,value:Math.round(d.a*100)/100},s,{onChange:(e,t)=>f(t,`a`,e)});return(0,Y.jsx)(Ze,I({ref:t,hsva:r,rProps:I({label:`H`,value:Math.round(d.h)},i,{onChange:(e,t)=>f(t,`h`,e)}),gProps:I({label:`S`,value:Math.round(d.s)+`%`},a,{onChange:(e,t)=>f(t,`s`,e)}),bProps:I({label:`L`,value:Math.round(d.l)+`%`},o,{onChange:(e,t)=>f(t,`l`,e)}),aProps:p,className:[n,c||``].filter(Boolean).join(` `)},u))});$e.displayName=`EditableInputHSLA`;var et=[`style`];function tt(e){var{style:t}=e,n=K(e,et),r=(0,q.useRef)(null),i=(0,q.useCallback)(()=>{r.current.style.backgroundColor=`var(--chrome-arrow-background-color)`},[]),a=(0,q.useCallback)(()=>{r.current.style.backgroundColor=`transparent`},[]);return(0,Y.jsx)(`div`,I({ref:r,style:I({marginLeft:5,cursor:`pointer`,transition:`background-color .3s`,borderRadius:2},t)},n,{onMouseEnter:i,onMouseLeave:a,children:(0,Y.jsx)(`svg`,{viewBox:`0 0 1024 1024`,width:`24`,height:`24`,style:{display:`block`},children:(0,Y.jsx)(`path`,{d:`M373.888 576h276.224c9.322667 0 14.293333 11.178667 9.173333 18.773333l-1.258666 1.557334-138.112 146.858666a10.709333 10.709333 0 0 1-14.293334 1.365334l-1.536-1.365334-138.112-146.858666c-6.592-6.997333-2.666667-18.645333 5.973334-20.16l1.941333-0.170667h276.224-276.224z m146.026667-295.189333l138.112 146.858666c7.04 7.509333 2.069333 20.330667-7.914667 20.330667H373.888c-9.984 0-14.976-12.821333-7.914667-20.330667l138.112-146.858666a10.730667 10.730667 0 0 1 15.829334 0z`,fill:`var(--chrome-arrow-fill)`})})}))}function nt(){return`EyeDropper`in window}function rt(e){return(0,Y.jsx)(`svg`,{viewBox:`0 0 512 512`,height:`1em`,width:`1em`,onClick:()=>{`EyeDropper`in window&&new window.EyeDropper().open().then(t=>{e.onPickColor==null||e.onPickColor(t.sRGBHex)}).catch(e=>{e.name})},children:(0,Y.jsx)(`path`,{fill:`currentColor`,d:`M482.8 29.23c38.9 38.98 38.9 102.17 0 141.17L381.2 271.9l9.4 9.5c12.5 12.5 12.5 32.7 0 45.2s-32.7 12.5-45.2 0l-160-160c-12.5-12.5-12.5-32.7 0-45.2s32.7-12.5 45.2 0l9.5 9.4L341.6 29.23c39-38.974 102.2-38.974 141.2 0zM55.43 323.3 176.1 202.6l45.3 45.3-120.7 120.7c-3.01 3-4.7 7-4.7 11.3V416h36.1c4.3 0 8.3-1.7 11.3-4.7l120.7-120.7 45.3 45.3-120.7 120.7c-15 15-35.4 23.4-56.6 23.4H89.69l-39.94 26.6c-12.69 8.5-29.59 6.8-40.377-4-10.786-10.8-12.459-27.7-3.998-40.4L32 422.3v-42.4c0-21.2 8.43-41.6 23.43-56.6z`})})}var it=[`prefixCls`,`className`,`style`,`color`,`showEditableInput`,`showEyeDropper`,`showColorPreview`,`showHue`,`showAlpha`,`inputType`,`rectProps`,`onChange`],$=function(e){return e.HEXA=`hexa`,e.RGBA=`rgba`,e.HSLA=`hsla`,e}({}),at=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-chrome`,className:r,style:i,color:a,showEditableInput:o=!0,showEyeDropper:s=!0,showColorPreview:c=!0,showHue:l=!0,showAlpha:u=!0,inputType:d=$.RGBA,rectProps:f={},onChange:p}=e,m=K(e,it),h=typeof a==`string`&&G(a)?V(a):a||{h:0,s:0,l:0,a:0},g=e=>p&&p(W(e)),[_,v]=(0,q.useState)(d),y=()=>{_===$.RGBA&&v($.HSLA),_===$.HSLA&&v($.HEXA),_===$.HEXA&&v($.RGBA)},b={paddingTop:6},x={textAlign:`center`,paddingTop:4,paddingBottom:4},S=I({"--chrome-arrow-fill":`#333`,"--chrome-arrow-background-color":`#e8e8e8`,borderRadius:0,flexDirection:`column`,width:230,padding:0},i),C={"--chrome-alpha-box-shadow":`rgb(0 0 0 / 25%) 0px 0px 1px inset`,borderRadius:`50%`,background:ge(h),boxShadow:`var(--chrome-alpha-box-shadow)`},w=e=>{g(I({},V(e)))},T={height:14,width:14},E={style:I({},T),fillProps:{style:T}};return(0,Y.jsx)(He,I({ref:t,color:h,style:S,colors:void 0,className:[n,r].filter(Boolean).join(` `),placement:Q.TopLeft},m,{addonAfter:(0,Y.jsxs)(q.Fragment,{children:[(0,Y.jsx)(Ge,{hsva:h,style:{width:`100%`,height:130},onChange:e=>{g(I({},h,e,{a:h.a}))}}),(0,Y.jsxs)(`div`,{style:{padding:15,display:`flex`,alignItems:`center`,gap:10},children:[nt()&&s&&(0,Y.jsx)(rt,{onPickColor:w}),c&&(0,Y.jsx)(X,{width:28,height:28,hsva:h,radius:2,style:{borderRadius:`50%`},bgProps:{style:{background:`transparent`}},innerProps:{style:C},pointer:()=>(0,Y.jsx)(q.Fragment,{})}),(0,Y.jsxs)(`div`,{style:{flex:1},children:[l==1&&(0,Y.jsx)(Ye,{hue:h.h,style:{width:`100%`,height:12,borderRadius:2},pointerProps:E,bgProps:{style:{borderRadius:2}},onChange:e=>{g(I({},h,e))}}),u==1&&(0,Y.jsx)(X,{hsva:h,style:{marginTop:6,height:12,borderRadius:2},pointerProps:E,bgProps:{style:{borderRadius:2}},onChange:e=>{g(I({},h,e))}})]})]}),o&&(0,Y.jsxs)(`div`,{style:{display:`flex`,alignItems:`flex-start`,padding:`0 15px 15px 15px`,userSelect:`none`},children:[(0,Y.jsxs)(`div`,{style:{flex:1},children:[_==$.RGBA&&(0,Y.jsx)(Ze,{hsva:h,rProps:{labelStyle:b,inputStyle:x},gProps:{labelStyle:b,inputStyle:x},bProps:{labelStyle:b,inputStyle:x},aProps:u==0?!1:{labelStyle:b,inputStyle:x},onChange:e=>g(e.hsva)}),_===$.HEXA&&(0,Y.jsx)(Z,{label:`HEX`,labelStyle:b,inputStyle:x,value:h.a>0&&h.a<1?ye(h).toLocaleUpperCase():U(h).toLocaleUpperCase(),onChange:(e,t)=>{typeof t==`string`&&g(V(/^#/.test(t)?t:`#`+t))}}),_===$.HSLA&&(0,Y.jsx)($e,{hsva:h,hProps:{labelStyle:b,inputStyle:x},sProps:{labelStyle:b,inputStyle:x},lProps:{labelStyle:b,inputStyle:x},aProps:u==0?!1:{labelStyle:b,inputStyle:x},onChange:e=>g(e.hsva)})]}),(0,Y.jsx)(tt,{onClick:y})]})]}),rectRender:()=>(0,Y.jsx)(q.Fragment,{})}))});at.displayName=`Chrome`;var ot=ee({backgroundColor:D().refine(ct,f()),backgroundImageUrl:D().url(v()).or(O(``)),checkoutName:D().min(1,a()),logoUrl:D().url(_()).or(O(``)),siteTitle:D().min(1,h()),supportUrl:D().url(o()).or(O(``))});function st(){let e=se(`brand`),t=oe(),a=ne({resolver:te(ot),defaultValues:{backgroundColor:``,backgroundImageUrl:``,checkoutName:``,logoUrl:``,siteTitle:``,supportUrl:``}});(0,q.useEffect)(()=>{let t=e.data?.data;t&&a.reset({backgroundColor:F(t,`brand.background_color`),backgroundImageUrl:F(t,`brand.background_image_url`),checkoutName:F(t,`brand.checkout_name`),logoUrl:F(t,`brand.logo_url`),siteTitle:F(t,`brand.site_title`),supportUrl:F(t,`brand.support_url`)})},[e.data,a]);async function o(){await ce(t.mutateAsync,[{group:`brand`,key:`brand.background_color`,type:`string`,value:``},{group:`brand`,key:`brand.background_image_url`,type:`string`,value:``},{group:`brand`,key:`brand.checkout_name`,type:`string`,value:``},{group:`brand`,key:`brand.logo_url`,type:`string`,value:``},{group:`brand`,key:`brand.site_title`,type:`string`,value:``},{group:`brand`,key:`brand.support_url`,type:`string`,value:``}],g()),await e.refetch()}async function s(n){await le(t.mutateAsync,[{group:`brand`,key:`brand.background_color`,type:`string`,value:n.backgroundColor},{group:`brand`,key:`brand.background_image_url`,type:`string`,value:n.backgroundImageUrl},{group:`brand`,key:`brand.checkout_name`,type:`string`,value:n.checkoutName},{group:`brand`,key:`brand.logo_url`,type:`string`,value:n.logoUrl},{group:`brand`,key:`brand.site_title`,type:`string`,value:n.siteTitle},{group:`brand`,key:`brand.support_url`,type:`string`,value:n.supportUrl}],r()),await e.refetch()}return(0,Y.jsx)(ie,{...a,children:(0,Y.jsxs)(`form`,{className:`space-y-6`,onSubmit:a.handleSubmit(s),children:[(0,Y.jsx)(A,{control:a.control,name:`checkoutName`,render:({field:e})=>(0,Y.jsxs)(k,{children:[(0,Y.jsx)(M,{children:x()}),(0,Y.jsx)(j,{children:(0,Y.jsx)(P,{...e})}),(0,Y.jsx)(N,{})]})}),(0,Y.jsx)(A,{control:a.control,name:`logoUrl`,render:({field:e})=>(0,Y.jsxs)(k,{children:[(0,Y.jsx)(M,{children:m()}),(0,Y.jsx)(j,{children:(0,Y.jsx)(P,{...e})}),(0,Y.jsx)(N,{})]})}),(0,Y.jsx)(A,{control:a.control,name:`siteTitle`,render:({field:e})=>(0,Y.jsxs)(k,{children:[(0,Y.jsx)(M,{children:u()}),(0,Y.jsx)(j,{children:(0,Y.jsx)(P,{...e})}),(0,Y.jsx)(N,{})]})}),(0,Y.jsx)(A,{control:a.control,name:`supportUrl`,render:({field:e})=>(0,Y.jsxs)(k,{children:[(0,Y.jsx)(M,{children:c()}),(0,Y.jsx)(j,{children:(0,Y.jsx)(P,{...e})}),(0,Y.jsx)(N,{})]})}),(0,Y.jsx)(A,{control:a.control,name:`backgroundColor`,render:({field:e})=>(0,Y.jsxs)(k,{children:[(0,Y.jsx)(M,{children:i()}),(0,Y.jsx)(j,{children:(0,Y.jsxs)(`div`,{className:`flex gap-2`,children:[(0,Y.jsxs)(E,{children:[(0,Y.jsx)(T,{asChild:!0,children:(0,Y.jsx)(C,{"aria-label":i(),className:`h-9 w-11 shrink-0 overflow-hidden border`,style:{background:e.value?e.value:`linear-gradient(45deg, #e5e7eb 25%, transparent 25%), linear-gradient(-45deg, #e5e7eb 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e5e7eb 75%), linear-gradient(-45deg, transparent 75%, #e5e7eb 75%)`,backgroundColor:e.value||`#ffffff`,backgroundPosition:`0 0, 0 6px, 6px -6px, -6px 0`,backgroundSize:`12px 12px`},type:`button`,variant:`outline`})}),(0,Y.jsx)(w,{align:`start`,className:`w-auto p-3`,children:(0,Y.jsx)(at,{color:lt(e.value),inputType:$.RGBA,onChange:t=>{e.onChange(ut(t))},showAlpha:!0,showEditableInput:!0,showEyeDropper:!1})})]}),(0,Y.jsx)(P,{...e,className:S(`font-mono`,!e.value&&`font-sans`),placeholder:`rgba(15, 23, 42, 0.72)`})]})}),(0,Y.jsx)(re,{children:p()}),(0,Y.jsx)(N,{})]})}),(0,Y.jsx)(A,{control:a.control,name:`backgroundImageUrl`,render:({field:e})=>(0,Y.jsxs)(k,{children:[(0,Y.jsx)(M,{children:d()}),(0,Y.jsx)(j,{children:(0,Y.jsx)(P,{...e})}),(0,Y.jsx)(N,{})]})}),(0,Y.jsxs)(`div`,{className:`flex gap-2`,children:[(0,Y.jsx)(C,{disabled:t.isPending||e.isLoading,type:`submit`,children:n()}),(0,Y.jsx)(C,{disabled:t.isPending,onClick:o,type:`button`,variant:`outline`,children:y()})]})]})})}function ct(e){let t=e.trim();if(!t)return!0;if(typeof CSS<`u`)return CSS.supports(`color`,t);try{return W(t),!0}catch{return!1}}function lt(e){try{return e.trim()?W(e).hsva:`#00000000`}catch{return`#00000000`}}function ut(e){let{r:t,g:n,b:r,a:i}=e.rgba;return`rgba(${t}, ${n}, ${r}, ${Number(i.toFixed(2))})`}function dt(){return(0,Y.jsx)(ae,{description:l(),title:s(),variant:`section`,children:(0,Y.jsx)(st,{})})}var ft=dt;export{ft as component}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{Ar as n,Br as r,Fr as i,Gr as a,Hr as o,If as s,Ir as c,Kr as l,Lr as u,Mr as d,Nr as f,Pr as p,Rr as m,Ur as h,Vr as g,Wr as _,jr as v,kr as y,tm as b,zr as x}from"./messages-CL4J6BaJ.js";import{i as S,t as C}from"./button-NLSeBFht.js";import{n as w,r as T,t as E}from"./popover-Y5WNf1yM.js";import{c as D,o as O,s as ee}from"./zod-rwFXxHlg.js";import{a as k,c as te,i as A,l as ne,n as j,o as M,r as re,s as N,t as ie}from"./form-C_YekIvK.js";import{t as P}from"./input-DAqep8ZY.js";import{t as ae}from"./page-header-B7O10aw9.js";import{a as oe,i as se,n as ce,r as le,t as F}from"./lib-Ku8Lh36m.js";function I(){return I=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{r:t,g:n,b:r,a:i}=e,a=Math.max(t,n,r),o=a-Math.min(t,n,r),s=o?a===t?(n-r)/o:a===n?2+(r-t)/o:4+(t-n)/o:0;return{h:60*(s<0?s+6:s),s:a?o/a*R:0,v:a/L*R,a:i}},de=e=>{var{h:t,s:n,l:r,a:i}=fe(e);return`hsla(`+t+`, `+n+`%, `+r+`%, `+i+`)`},B=e=>{var{h:t,s:n,l:r,a:i}=e;return n*=(r<50?r:R-r)/R,{h:t,s:n>0?2*n/(r+n)*R:0,v:r+n,a:i}},fe=e=>{var{h:t,s:n,v:r,a:i}=e,a=(200-n)*r/R;return{h:t,s:a>0&&a<200?n*r/R/(a<=R?a:200-a)*R:0,l:a/2,a:i}};ue/400,ue/(Math.PI*2);var pe=e=>{var{r:t,g:n,b:r}=e;return`#`+(e=>Array(7-e.length).join(`0`)+e)((t<<16|n<<8|r).toString(16))},me=e=>{var{r:t,g:n,b:r,a:i}=e,a=typeof i==`number`&&(i*255|256).toString(16).slice(1);return``+pe({r:t,g:n,b:r})+(a||``)},V=e=>z(he(e)),he=e=>{var t=e.replace(`#`,``);/^#?/.test(e)&&t.length===3&&(e=`#`+t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2));var n=RegExp(`[A-Za-z0-9]{2}`,`g`),[r,i,a=0,o]=e.match(n).map(e=>parseInt(e,16));return{r,g:i,b:a,a:(o??255)/L}},H=e=>{var{h:t,s:n,v:r,a:i}=e,a=t/60,o=n/R,s=r/R,c=Math.floor(a)%6,l=a-Math.floor(a),u=L*s*(1-o),d=L*s*(1-o*l),f=L*s*(1-o*(1-l));s*=L;var p={};switch(c){case 0:p.r=s,p.g=f,p.b=u;break;case 1:p.r=d,p.g=s,p.b=u;break;case 2:p.r=u,p.g=s,p.b=f;break;case 3:p.r=u,p.g=d,p.b=s;break;case 4:p.r=f,p.g=u,p.b=s;break;case 5:p.r=s,p.g=u,p.b=d;break}return p.r=Math.round(p.r),p.g=Math.round(p.g),p.b=Math.round(p.b),I({},p,{a:i})},ge=e=>{var{r:t,g:n,b:r,a:i}=H(e);return`rgba(`+t+`, `+n+`, `+r+`, `+i+`)`},_e=e=>{var{r:t,g:n,b:r}=e;return{r:t,g:n,b:r}},ve=e=>{var{h:t,s:n,l:r}=e;return{h:t,s:n,l:r}},U=e=>pe(H(e)),ye=e=>me(H(e)),be=e=>{var{h:t,s:n,v:r}=e;return{h:t,s:n,v:r}},xe=e=>{var{r:t,g:n,b:r}=e,i=function(e){return e<=.04045?e/12.92:((e+.055)/1.055)**2.4},a=i(t/255),o=i(n/255),s=i(r/255),c={};return c.x=a*.4124+o*.3576+s*.1805,c.y=a*.2126+o*.7152+s*.0722,c.bri=a*.0193+o*.1192+s*.9505,c},W=e=>{var t,n,r,i,a,o,s,c,l;return typeof e==`string`&&G(e)?(o=V(e),c=e):typeof e!=`string`&&(o=e),o&&(r=be(o),a=fe(o),i=H(o),l=me(i),c=U(o),n=ve(a),t=_e(i),s=xe(t)),{rgb:t,hsl:n,hsv:r,rgba:i,hsla:a,hsva:o,hex:c,hexa:l,xy:s}},G=e=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(e);function K(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var q=e(t());function Se(e){var t=(0,q.useRef)(e);return(0,q.useEffect)(()=>{t.current=e}),(0,q.useCallback)((e,n)=>t.current&&t.current(e,n),[])}var J=e=>`touches`in e,Ce=e=>{!J(e)&&e.preventDefault&&e.preventDefault()},we=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e{var n=e.getBoundingClientRect(),r=J(t)?t.touches[0]:t;return{left:we((r.pageX-(n.left+window.pageXOffset))/n.width),top:we((r.pageY-(n.top+window.pageYOffset))/n.height),width:n.width,height:n.height,x:r.pageX-(n.left+window.pageXOffset),y:r.pageY-(n.top+window.pageYOffset)}},Y=b(),Ee=[`prefixCls`,`className`,`onMove`,`onDown`],De=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-interactive`,className:r,onMove:i,onDown:a}=e,o=K(e,Ee),s=(0,q.useRef)(null),c=(0,q.useRef)(!1),[l,u]=(0,q.useState)(!1),d=Se(i),f=Se(a),p=e=>c.current&&!J(e)?!1:(c.current=J(e),!0),m=(0,q.useCallback)(e=>{if(Ce(e),s.current){if(!(J(e)?e.touches.length>0:e.buttons>0)){u(!1);return}d?.(Te(s.current,e),e)}},[d]),h=(0,q.useCallback)(()=>u(!1),[]),g=(0,q.useCallback)(e=>{e?(window.addEventListener(c.current?`touchmove`:`mousemove`,m),window.addEventListener(c.current?`touchend`:`mouseup`,h)):(window.removeEventListener(`mousemove`,m),window.removeEventListener(`mouseup`,h),window.removeEventListener(`touchmove`,m),window.removeEventListener(`touchend`,h))},[m,h]);(0,q.useEffect)(()=>(g(l),()=>{g(!1)}),[l,m,h,g]);var _=(0,q.useCallback)(e=>{document.activeElement?.blur(),Ce(e.nativeEvent),p(e.nativeEvent)&&s.current&&(f?.(Te(s.current,e.nativeEvent),e.nativeEvent),u(!0))},[f]);return(0,Y.jsx)(`div`,I({},o,{className:[n,r||``].filter(Boolean).join(` `),style:I({},o.style,{touchAction:`none`}),ref:s,tabIndex:0,onMouseDown:_,onTouchStart:_}))});De.displayName=`Interactive`;var Oe=[`className`,`prefixCls`,`left`,`top`,`style`,`fillProps`],ke=e=>{var{className:t,prefixCls:n,left:r,top:i,style:a,fillProps:o}=e,s=K(e,Oe),c=I({},a,{position:`absolute`,left:r,top:i}),l=I({width:18,height:18,boxShadow:`var(--alpha-pointer-box-shadow)`,borderRadius:`50%`,backgroundColor:`var(--alpha-pointer-background-color)`},o?.style,{transform:r?`translate(-9px, -1px)`:`translate(-1px, -9px)`});return(0,Y.jsx)(`div`,I({className:n+`-pointer `+(t||``),style:c},s,{children:(0,Y.jsx)(`div`,I({className:n+`-fill`},o,{style:l}))}))},Ae=[`prefixCls`,`className`,`hsva`,`background`,`bgProps`,`innerProps`,`pointerProps`,`radius`,`width`,`height`,`direction`,`reverse`,`style`,`onChange`,`pointer`],je=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==`,X=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-alpha`,className:r,hsva:i,background:a,bgProps:o={},innerProps:s={},pointerProps:c={},radius:l=0,width:u,height:d=16,direction:f=`horizontal`,reverse:p=!1,style:m,onChange:h,pointer:g}=e,_=K(e,Ae),v=(0,q.useCallback)(e=>{var t=f===`horizontal`?e.left:e.top;return f===`horizontal`?p?1-t:t:p?t:1-t},[f,p]),y=(0,q.useCallback)(e=>f===`horizontal`?p?1-e:e:p?e:1-e,[f,p]),b=e=>{var t=v(e);h&&h(I({},i,{a:t}),e)},x=de(Object.assign({},i,{a:1})),S=p?`linear-gradient(to right, `+x+` 0%, rgba(244, 67, 54, 0) 100%)`:`linear-gradient(to right, rgba(244, 67, 54, 0) 0%, `+x+` 100%)`,C=p?`linear-gradient(to bottom, rgba(244, 67, 54, 0) 0%, `+x+` 100%)`:`linear-gradient(to bottom, `+x+` 0%, rgba(244, 67, 54, 0) 100%)`,w=f===`horizontal`?S:C,T={};f===`horizontal`?T.left=y(i.a)*100+`%`:T.top=y(i.a)*100+`%`;var E=I({"--alpha-background-color":`#fff`,"--alpha-pointer-background-color":`rgb(248, 248, 248)`,"--alpha-pointer-box-shadow":`rgb(0 0 0 / 37%) 0px 1px 4px 0px`,borderRadius:l,background:`url(`+je+`) left center`,backgroundColor:`var(--alpha-background-color)`},{width:u,height:d},m,{position:`relative`}),D=(0,q.useCallback)(e=>{var t=.01,n=i.a,r=n;switch(e.key){case`ArrowLeft`:f===`horizontal`&&(r=p?Math.min(1,n+t):Math.max(0,n-t),e.preventDefault());break;case`ArrowRight`:f===`horizontal`&&(r=p?Math.max(0,n-t):Math.min(1,n+t),e.preventDefault());break;case`ArrowUp`:f===`vertical`&&(r=p?Math.max(0,n-t):Math.min(1,n+t),e.preventDefault());break;case`ArrowDown`:f===`vertical`&&(r=p?Math.min(1,n+t):Math.max(0,n-t),e.preventDefault());break;default:return}if(r!==n){var a=y(r),o={left:f===`horizontal`?a:i.a,top:f===`vertical`?a:i.a,width:0,height:0,x:0,y:0};h&&h(I({},i,{a:r}),o)}},[y,i,f,h,p]),O=(0,q.useCallback)(e=>{e.target.focus()},[]),ee=g&&typeof g==`function`?g(I({prefixCls:n},c,T)):(0,Y.jsx)(ke,I({},c,{prefixCls:n},T));return(0,Y.jsxs)(`div`,I({},_,{className:[n,n+`-`+f,r||``].filter(Boolean).join(` `),style:E,ref:t,children:[(0,Y.jsx)(`div`,I({},o,{style:I({inset:0,position:`absolute`,background:a||w,borderRadius:l},o.style)})),(0,Y.jsx)(De,I({},s,{style:I({},s.style,{inset:0,zIndex:1,position:`absolute`,outline:`none`}),onMove:b,onDown:b,onClick:O,onKeyDown:D,children:ee}))]}))});X.displayName=`Alpha`;var Me=[`prefixCls`,`placement`,`label`,`value`,`className`,`style`,`labelStyle`,`inputStyle`,`onChange`,`onBlur`,`renderInput`],Ne=e=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(e),Pe=e=>Number(String(e).replace(/%/g,``)),Z=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-editable-input`,placement:r=`bottom`,label:i,value:a,className:o,style:s,labelStyle:c,inputStyle:l,onChange:u,onBlur:d,renderInput:f}=e,p=K(e,Me),[m,h]=(0,q.useState)(a),g=(0,q.useRef)(!1),_=(0,q.useRef)(p.id||n+`-`+Math.random().toString(36).slice(2,11)),v=p.id||_.current;(0,q.useEffect)(()=>{e.value!==m&&(g.current||h(e.value))},[e.value]);function y(e,t){var n=(t||e.target.value).trim().replace(/^#/,``);Ne(n)&&u&&u(e,n);var r=Pe(n);isNaN(r)||u&&u(e,r),h(n)}function b(t){g.current=!1,h(e.value),d&&d(t)}var x={};r===`bottom`&&(x.flexDirection=`column`),r===`top`&&(x.flexDirection=`column-reverse`),r===`left`&&(x.flexDirection=`row-reverse`);var S=I({"--editable-input-label-color":`rgb(153, 153, 153)`,"--editable-input-box-shadow":`rgb(204 204 204) 0px 0px 0px 1px inset`,"--editable-input-color":`#666`,position:`relative`,alignItems:`center`,display:`flex`,fontSize:11},x,s),C=I({width:`100%`,paddingTop:2,paddingBottom:2,paddingLeft:3,paddingRight:3,fontSize:11,background:`transparent`,boxSizing:`border-box`,border:`none`,color:`var(--editable-input-color)`,boxShadow:`var(--editable-input-box-shadow)`},l),w=I({value:m,onChange:y,onBlur:b,autoComplete:`off`,onFocus:()=>g.current=!0},p,{id:v,style:C,onFocusCapture:e=>{var t=e.target;t.setSelectionRange(t.value.length,t.value.length)}});return(0,Y.jsxs)(`div`,{className:[n,o||``].filter(Boolean).join(` `),style:S,children:[f?f(w,t):(0,Y.jsx)(`input`,I({ref:t},w)),i&&(0,Y.jsx)(`label`,{htmlFor:v,style:I({color:`var(--editable-input-label-color)`,textTransform:`capitalize`},c),children:i})]})});Z.displayName=`EditableInput`;var Fe=[`prefixCls`,`className`,`color`,`colors`,`style`,`rectProps`,`onChange`,`addonAfter`,`addonBefore`,`rectRender`],Ie=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-swatch`,className:r,color:i,colors:a=[],style:o,rectProps:s={},onChange:c,addonAfter:l,addonBefore:u,rectRender:d}=e,f=K(e,Fe),p=I({"--swatch-background-color":`rgb(144, 19, 254)`,background:`var(--swatch-background-color)`,height:15,width:15,marginRight:5,marginBottom:5,cursor:`pointer`,position:`relative`,outline:`none`,borderRadius:2},s.style),m=(e,t)=>{c&&c(V(e),W(V(e)),t)};return(0,Y.jsxs)(`div`,I({ref:t},f,{className:[n,r||``].filter(Boolean).join(` `),style:I({display:`flex`,flexWrap:`wrap`,position:`relative`},o),children:[u&&q.isValidElement(u)&&u,a&&Array.isArray(a)&&a.map((e,t)=>{var n=``,r=``;typeof e==`string`&&(n=e,r=e),typeof e==`object`&&e.color&&(n=e.title||e.color,r=e.color);var a=i&&i.toLocaleLowerCase()===r.toLocaleLowerCase(),o=d&&d({title:n,color:r,checked:!!a,style:I({},p,{background:r}),onClick:e=>m(r,e)});if(o)return(0,Y.jsx)(q.Fragment,{children:o},t);var c=s.children&&q.isValidElement(s.children)?q.cloneElement(s.children,{color:r,checked:a}):null;return(0,Y.jsx)(`div`,I({tabIndex:0,title:n,onClick:e=>m(r,e)},s,{children:c,style:I({},p,{background:r})}),t)}),l&&q.isValidElement(l)&&l]}))});Ie.displayName=`Swatch`;function Le(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var Re={marginRight:0,marginBottom:0,borderRadius:0,boxSizing:`border-box`,height:25,width:25};function ze(e){var{style:t,title:n,checked:r,color:i,onClick:a,rectProps:o}=e,s=(0,q.useRef)(null),c=(0,q.useCallback)(()=>{s.current.style.zIndex=`2`,s.current.style.outline=`#fff solid 2px`,s.current.style.boxShadow=`rgb(0 0 0 / 25%) 0 0 5px 2px`},[]),l=(0,q.useCallback)(()=>{r||(s.current.style.zIndex=`0`,s.current.style.outline=`initial`,s.current.style.boxShadow=`initial`)},[r]);return(0,Y.jsx)(`div`,I({ref:s,title:n},o,{onClick:a,onMouseEnter:c,onMouseLeave:l,style:I({},t,{marginRight:0,marginBottom:0,borderRadius:0,boxSizing:`border-box`,height:25,width:25},Re,r?{zIndex:1,outline:`#fff solid 2px`,boxShadow:`rgb(0 0 0 / 25%) 0 0 5px 2px`}:{zIndex:0},o?.style)}))}var Be=[`prefixCls`,`placement`,`className`,`style`,`color`,`colors`,`showTriangle`,`rectProps`,`onChange`,`rectRender`],Ve=[`#B80000`,`#DB3E00`,`#FCCB00`,`#008B02`,`#006B76`,`#1273DE`,`#004DCF`,`#5300EB`,`#EB9694`,`#FAD0C3`,`#FEF3BD`,`#C1E1C5`,`#BEDADC`,`#C4DEF6`,`#BED3F3`,`#D4C4FB`],Q=function(e){return e.Left=`L`,e.LeftTop=`LT`,e.LeftBottom=`LB`,e.Right=`R`,e.RightTop=`RT`,e.RightBottom=`RB`,e.Top=`T`,e.TopRight=`TR`,e.TopLeft=`TL`,e.Bottom=`B`,e.BottomLeft=`BL`,e.BottomRight=`BR`,e}({}),He=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-github`,placement:r=Q.TopRight,className:i,style:a,color:o,colors:s=Ve,showTriangle:c=!0,rectProps:l={},onChange:u,rectRender:d}=e,f=K(e,Be),p=typeof o==`string`&&G(o)?V(o):o,m=o?U(p):``,h=e=>u&&u(W(e)),g=I({"--github-border":`1px solid rgba(0, 0, 0, 0.2)`,"--github-background-color":`#fff`,"--github-box-shadow":`rgb(0 0 0 / 15%) 0px 3px 12px`,"--github-arrow-border-color":`rgba(0, 0, 0, 0.15)`,width:200,borderRadius:4,background:`var(--github-background-color)`,boxShadow:`var(--github-box-shadow)`,border:`var(--github-border)`,position:`relative`,padding:5},a),_={borderStyle:`solid`,position:`absolute`},v=I({},_),y=I({},_);return/^T/.test(r)&&(v.borderWidth=`0 8px 8px`,v.borderColor=`transparent transparent var(--github-arrow-border-color)`,y.borderWidth=`0 7px 7px`,y.borderColor=`transparent transparent var(--github-background-color)`),r===Q.TopRight&&(v.top=-8,y.top=-7),r===Q.Top&&(v.top=-8,y.top=-7),r===Q.TopLeft&&(v.top=-8,y.top=-7),/^B/.test(r)&&(v.borderWidth=`8px 8px 0`,v.borderColor=`var(--github-arrow-border-color) transparent transparent`,y.borderWidth=`7px 7px 0`,y.borderColor=`var(--github-background-color) transparent transparent`,r===Q.BottomRight&&(v.top=`100%`,y.top=`100%`),r===Q.Bottom&&(v.top=`100%`,y.top=`100%`),r===Q.BottomLeft&&(v.top=`100%`,y.top=`100%`)),/^(B|T)/.test(r)&&((r===Q.Top||r===Q.Bottom)&&(v.left=`50%`,v.marginLeft=-8,y.left=`50%`,y.marginLeft=-7),(r===Q.TopRight||r===Q.BottomRight)&&(v.right=10,y.right=11),(r===Q.TopLeft||r===Q.BottomLeft)&&(v.left=7,y.left=8)),/^L/.test(r)&&(v.borderWidth=`8px 8px 8px 0`,v.borderColor=`transparent var(--github-arrow-border-color) transparent transparent`,y.borderWidth=`7px 7px 7px 0`,y.borderColor=`transparent var(--github-background-color) transparent transparent`,v.left=-8,y.left=-7),/^R/.test(r)&&(v.borderWidth=`8px 0 8px 8px`,v.borderColor=`transparent transparent transparent var(--github-arrow-border-color)`,y.borderWidth=`7px 0 7px 7px`,y.borderColor=`transparent transparent transparent var(--github-background-color)`,v.right=-8,y.right=-7),/^(L|R)/.test(r)&&((r===Q.RightTop||r===Q.LeftTop)&&(v.top=5,y.top=6),(r===Q.Left||r===Q.Right)&&(v.top=`50%`,y.top=`50%`,v.marginTop=-8,y.marginTop=-7),(r===Q.LeftBottom||r===Q.RightBottom)&&(v.top=`100%`,y.top=`100%`,v.marginTop=-21,y.marginTop=-20)),(0,Y.jsx)(Ie,I({ref:t,className:[n,i].filter(Boolean).join(` `),colors:s,color:m,rectRender:e=>{var t=I({},(Le(e),e));return d&&d(I({},t))||(0,Y.jsx)(ze,I({},t,{rectProps:l}))}},f,{onChange:h,style:g,rectProps:{style:{marginRight:0,marginBottom:0,borderRadius:0,height:25,width:25}},addonBefore:(0,Y.jsx)(q.Fragment,{children:c&&(0,Y.jsxs)(q.Fragment,{children:[(0,Y.jsx)(`div`,{style:v}),(0,Y.jsx)(`div`,{style:y})]})})}))});He.displayName=`Github`;var Ue=e=>{var{className:t,color:n,left:r,top:i,prefixCls:a}=e,o={position:`absolute`,top:i,left:r},s={"--saturation-pointer-box-shadow":`rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px`,width:6,height:6,transform:`translate(-3px, -3px)`,boxShadow:`var(--saturation-pointer-box-shadow)`,borderRadius:`50%`,backgroundColor:n};return(0,q.useMemo)(()=>(0,Y.jsx)(`div`,{className:a+`-pointer `+(t||``),style:o,children:(0,Y.jsx)(`div`,{className:a+`-fill`,style:s})}),[i,r,n,t,a])},We=[`prefixCls`,`radius`,`pointer`,`className`,`hue`,`style`,`hsva`,`onChange`],Ge=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-saturation`,radius:r=0,pointer:i,className:a,hue:o=0,style:s,hsva:c,onChange:l}=e,u=K(e,We),d=I({width:200,height:200,borderRadius:r},s,{position:`relative`}),f=(0,q.useRef)(null),p=(0,q.useCallback)(e=>{f.current=e,typeof t==`function`?t(e):t&&`current`in t&&(t.current=e)},[t]),m=(0,q.useCallback)((e,t)=>{l&&c&&l({h:c.h,s:e.left*100,v:(1-e.top)*100,a:c.a});var n=f.current;n&&n.focus()},[c,l]),h=(0,q.useCallback)(e=>{if(!(!c||!l)){var t=1,n=c.s,r=c.v,i=!1;switch(e.key){case`ArrowLeft`:n=Math.max(0,c.s-t),i=!0,e.preventDefault();break;case`ArrowRight`:n=Math.min(100,c.s+t),i=!0,e.preventDefault();break;case`ArrowUp`:r=Math.min(100,c.v+t),i=!0,e.preventDefault();break;case`ArrowDown`:r=Math.max(0,c.v-t),i=!0,e.preventDefault();break;default:return}i&&l({h:c.h,s:n,v:r,a:c.a})}},[c,l]),g=(0,q.useMemo)(()=>{if(!c)return null;var e={top:100-c.v+`%`,left:c.s+`%`,color:de(c)};return i&&typeof i==`function`?i(I({prefixCls:n},e)):(0,Y.jsx)(Ue,I({prefixCls:n},e))},[c,i,n]),_=(0,q.useCallback)(e=>{e.target.focus()},[]);return(0,Y.jsx)(De,I({className:[n,a||``].filter(Boolean).join(` `)},u,{style:I({position:`absolute`,inset:0,cursor:`crosshair`,backgroundImage:`linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, hsl(`+(c?.h??o)+`, 100%, 50%))`},d,{outline:`none`}),ref:p,onMove:m,onDown:m,onKeyDown:h,onClick:_,children:g}))});Ge.displayName=`Saturation`;var Ke=[`prefixCls`,`className`,`hue`,`onChange`,`direction`,`reverse`],qe=`rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%`,Je=`rgb(255, 0, 0) 0%, rgb(255, 0, 255) 17%, rgb(0, 0, 255) 33%, rgb(0, 255, 255) 50%, rgb(0, 255, 0) 67%, rgb(255, 255, 0) 83%, rgb(255, 0, 0) 100%`,Ye=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-hue`,className:r,hue:i=0,onChange:a,direction:o=`horizontal`,reverse:s=!1}=e,c=K(e,Ke),l=(0,q.useCallback)(()=>o===`horizontal`?`linear-gradient(to right, `+(s?Je:qe)+`)`:`linear-gradient(to bottom, `+(s?qe:Je)+`)`,[o,s]),u=(0,q.useCallback)(e=>{var t=o===`horizontal`?e.left:e.top;return 360*(o===`horizontal`?s?1-t:t:s?t:1-t)},[o,s]),d=(0,q.useMemo)(()=>l(),[l]);return(0,Y.jsx)(X,I({ref:t,className:n+` `+(r||``)},c,{direction:o,reverse:s,background:d,hsva:{h:i,s:100,v:100,a:i/360},onChange:(e,t)=>{a&&a({h:u(t)})}}))});Ye.displayName=`Hue`;var Xe=[`prefixCls`,`hsva`,`placement`,`rProps`,`gProps`,`bProps`,`aProps`,`className`,`style`,`onChange`],Ze=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-editable-input-rgba`,hsva:r,placement:i=`bottom`,rProps:a={},gProps:o={},bProps:s={},aProps:c={},className:l,style:u,onChange:d}=e,f=K(e,Xe),p=r?H(r):{};function m(e){var t=Number(e.target.value);t&&t>255&&(e.target.value=`255`),t&&t<0&&(e.target.value=`0`)}var h=e=>{var t=Number(e.target.value);t&&t>100&&(e.target.value=`100`),t&&t<0&&(e.target.value=`0`)},g=(e,t,n)=>{typeof e==`number`&&(t===`a`&&(e<0&&(e=0),e>100&&(e=100),d&&d(W(z(I({},p,{a:e/100}))))),e>255&&(e=255,n.target.value=`255`),e<0&&(e=0,n.target.value=`0`),t===`r`&&d&&d(W(z(I({},p,{r:e})))),t===`g`&&d&&d(W(z(I({},p,{g:e})))),t===`b`&&d&&d(W(z(I({},p,{b:e})))))},_=p.a?Math.round(p.a*100)/100:0;return(0,Y.jsxs)(`div`,I({ref:t,className:[n,l||``].filter(Boolean).join(` `)},f,{style:I({fontSize:11,display:`flex`},u),children:[(0,Y.jsx)(Z,I({label:`R`,value:p.r||0,onBlur:m,placement:i,onChange:(e,t)=>g(t,`r`,e)},a,{style:I({},a.style)})),(0,Y.jsx)(Z,I({label:`G`,value:p.g||0,onBlur:m,placement:i,onChange:(e,t)=>g(t,`g`,e)},o,{style:I({marginLeft:5},o.style)})),(0,Y.jsx)(Z,I({label:`B`,value:p.b||0,onBlur:m,placement:i,onChange:(e,t)=>g(t,`b`,e)},s,{style:I({marginLeft:5},s.style)})),c&&(0,Y.jsx)(Z,I({label:`A`,value:parseInt(String(_*100),10),onBlur:h,placement:i,onChange:(e,t)=>g(t,`a`,e)},c,{style:I({marginLeft:5},c.style)}))]}))});Ze.displayName=`EditableInputRGBA`;var Qe=[`prefixCls`,`hsva`,`hProps`,`sProps`,`lProps`,`aProps`,`className`,`onChange`],$e=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-editable-input-hsla`,hsva:r,hProps:i={},sProps:a={},lProps:o={},aProps:s={},className:c,onChange:l}=e,u=K(e,Qe),d=r?fe(r):{h:0,s:0,l:0,a:0},f=(e,t,n)=>{typeof e==`number`&&(t===`h`&&(e<0&&(e=0),e>360&&(e=360),l&&l(W(B(I({},d,{h:e}))))),t===`s`&&(e<0&&(e=0),e>100&&(e=100),l&&l(W(B(I({},d,{s:e}))))),t===`l`&&(e<0&&(e=0),e>100&&(e=100),l&&l(W(B(I({},d,{l:e}))))),t===`a`&&(e<0&&(e=0),e>1&&(e=1),l&&l(W(B(I({},d,{a:e}))))))},p=s==0?!1:I({label:`A`,value:Math.round(d.a*100)/100},s,{onChange:(e,t)=>f(t,`a`,e)});return(0,Y.jsx)(Ze,I({ref:t,hsva:r,rProps:I({label:`H`,value:Math.round(d.h)},i,{onChange:(e,t)=>f(t,`h`,e)}),gProps:I({label:`S`,value:Math.round(d.s)+`%`},a,{onChange:(e,t)=>f(t,`s`,e)}),bProps:I({label:`L`,value:Math.round(d.l)+`%`},o,{onChange:(e,t)=>f(t,`l`,e)}),aProps:p,className:[n,c||``].filter(Boolean).join(` `)},u))});$e.displayName=`EditableInputHSLA`;var et=[`style`];function tt(e){var{style:t}=e,n=K(e,et),r=(0,q.useRef)(null),i=(0,q.useCallback)(()=>{r.current.style.backgroundColor=`var(--chrome-arrow-background-color)`},[]),a=(0,q.useCallback)(()=>{r.current.style.backgroundColor=`transparent`},[]);return(0,Y.jsx)(`div`,I({ref:r,style:I({marginLeft:5,cursor:`pointer`,transition:`background-color .3s`,borderRadius:2},t)},n,{onMouseEnter:i,onMouseLeave:a,children:(0,Y.jsx)(`svg`,{viewBox:`0 0 1024 1024`,width:`24`,height:`24`,style:{display:`block`},children:(0,Y.jsx)(`path`,{d:`M373.888 576h276.224c9.322667 0 14.293333 11.178667 9.173333 18.773333l-1.258666 1.557334-138.112 146.858666a10.709333 10.709333 0 0 1-14.293334 1.365334l-1.536-1.365334-138.112-146.858666c-6.592-6.997333-2.666667-18.645333 5.973334-20.16l1.941333-0.170667h276.224-276.224z m146.026667-295.189333l138.112 146.858666c7.04 7.509333 2.069333 20.330667-7.914667 20.330667H373.888c-9.984 0-14.976-12.821333-7.914667-20.330667l138.112-146.858666a10.730667 10.730667 0 0 1 15.829334 0z`,fill:`var(--chrome-arrow-fill)`})})}))}function nt(){return`EyeDropper`in window}function rt(e){return(0,Y.jsx)(`svg`,{viewBox:`0 0 512 512`,height:`1em`,width:`1em`,onClick:()=>{`EyeDropper`in window&&new window.EyeDropper().open().then(t=>{e.onPickColor==null||e.onPickColor(t.sRGBHex)}).catch(e=>{e.name})},children:(0,Y.jsx)(`path`,{fill:`currentColor`,d:`M482.8 29.23c38.9 38.98 38.9 102.17 0 141.17L381.2 271.9l9.4 9.5c12.5 12.5 12.5 32.7 0 45.2s-32.7 12.5-45.2 0l-160-160c-12.5-12.5-12.5-32.7 0-45.2s32.7-12.5 45.2 0l9.5 9.4L341.6 29.23c39-38.974 102.2-38.974 141.2 0zM55.43 323.3 176.1 202.6l45.3 45.3-120.7 120.7c-3.01 3-4.7 7-4.7 11.3V416h36.1c4.3 0 8.3-1.7 11.3-4.7l120.7-120.7 45.3 45.3-120.7 120.7c-15 15-35.4 23.4-56.6 23.4H89.69l-39.94 26.6c-12.69 8.5-29.59 6.8-40.377-4-10.786-10.8-12.459-27.7-3.998-40.4L32 422.3v-42.4c0-21.2 8.43-41.6 23.43-56.6z`})})}var it=[`prefixCls`,`className`,`style`,`color`,`showEditableInput`,`showEyeDropper`,`showColorPreview`,`showHue`,`showAlpha`,`inputType`,`rectProps`,`onChange`],$=function(e){return e.HEXA=`hexa`,e.RGBA=`rgba`,e.HSLA=`hsla`,e}({}),at=q.forwardRef((e,t)=>{var{prefixCls:n=`w-color-chrome`,className:r,style:i,color:a,showEditableInput:o=!0,showEyeDropper:s=!0,showColorPreview:c=!0,showHue:l=!0,showAlpha:u=!0,inputType:d=$.RGBA,rectProps:f={},onChange:p}=e,m=K(e,it),h=typeof a==`string`&&G(a)?V(a):a||{h:0,s:0,l:0,a:0},g=e=>p&&p(W(e)),[_,v]=(0,q.useState)(d),y=()=>{_===$.RGBA&&v($.HSLA),_===$.HSLA&&v($.HEXA),_===$.HEXA&&v($.RGBA)},b={paddingTop:6},x={textAlign:`center`,paddingTop:4,paddingBottom:4},S=I({"--chrome-arrow-fill":`#333`,"--chrome-arrow-background-color":`#e8e8e8`,borderRadius:0,flexDirection:`column`,width:230,padding:0},i),C={"--chrome-alpha-box-shadow":`rgb(0 0 0 / 25%) 0px 0px 1px inset`,borderRadius:`50%`,background:ge(h),boxShadow:`var(--chrome-alpha-box-shadow)`},w=e=>{g(I({},V(e)))},T={height:14,width:14},E={style:I({},T),fillProps:{style:T}};return(0,Y.jsx)(He,I({ref:t,color:h,style:S,colors:void 0,className:[n,r].filter(Boolean).join(` `),placement:Q.TopLeft},m,{addonAfter:(0,Y.jsxs)(q.Fragment,{children:[(0,Y.jsx)(Ge,{hsva:h,style:{width:`100%`,height:130},onChange:e=>{g(I({},h,e,{a:h.a}))}}),(0,Y.jsxs)(`div`,{style:{padding:15,display:`flex`,alignItems:`center`,gap:10},children:[nt()&&s&&(0,Y.jsx)(rt,{onPickColor:w}),c&&(0,Y.jsx)(X,{width:28,height:28,hsva:h,radius:2,style:{borderRadius:`50%`},bgProps:{style:{background:`transparent`}},innerProps:{style:C},pointer:()=>(0,Y.jsx)(q.Fragment,{})}),(0,Y.jsxs)(`div`,{style:{flex:1},children:[l==1&&(0,Y.jsx)(Ye,{hue:h.h,style:{width:`100%`,height:12,borderRadius:2},pointerProps:E,bgProps:{style:{borderRadius:2}},onChange:e=>{g(I({},h,e))}}),u==1&&(0,Y.jsx)(X,{hsva:h,style:{marginTop:6,height:12,borderRadius:2},pointerProps:E,bgProps:{style:{borderRadius:2}},onChange:e=>{g(I({},h,e))}})]})]}),o&&(0,Y.jsxs)(`div`,{style:{display:`flex`,alignItems:`flex-start`,padding:`0 15px 15px 15px`,userSelect:`none`},children:[(0,Y.jsxs)(`div`,{style:{flex:1},children:[_==$.RGBA&&(0,Y.jsx)(Ze,{hsva:h,rProps:{labelStyle:b,inputStyle:x},gProps:{labelStyle:b,inputStyle:x},bProps:{labelStyle:b,inputStyle:x},aProps:u==0?!1:{labelStyle:b,inputStyle:x},onChange:e=>g(e.hsva)}),_===$.HEXA&&(0,Y.jsx)(Z,{label:`HEX`,labelStyle:b,inputStyle:x,value:h.a>0&&h.a<1?ye(h).toLocaleUpperCase():U(h).toLocaleUpperCase(),onChange:(e,t)=>{typeof t==`string`&&g(V(/^#/.test(t)?t:`#`+t))}}),_===$.HSLA&&(0,Y.jsx)($e,{hsva:h,hProps:{labelStyle:b,inputStyle:x},sProps:{labelStyle:b,inputStyle:x},lProps:{labelStyle:b,inputStyle:x},aProps:u==0?!1:{labelStyle:b,inputStyle:x},onChange:e=>g(e.hsva)})]}),(0,Y.jsx)(tt,{onClick:y})]})]}),rectRender:()=>(0,Y.jsx)(q.Fragment,{})}))});at.displayName=`Chrome`;var ot=ee({backgroundColor:D().refine(ct,f()),backgroundImageUrl:D().url(v()).or(O(``)),checkoutName:D().min(1,a()),logoUrl:D().url(_()).or(O(``)),siteTitle:D().min(1,h()),supportUrl:D().url(o()).or(O(``))});function st(){let e=se(`brand`),t=oe(),a=ne({resolver:te(ot),defaultValues:{backgroundColor:``,backgroundImageUrl:``,checkoutName:``,logoUrl:``,siteTitle:``,supportUrl:``}});(0,q.useEffect)(()=>{let t=e.data?.data;t&&a.reset({backgroundColor:F(t,`brand.background_color`),backgroundImageUrl:F(t,`brand.background_image_url`),checkoutName:F(t,`brand.checkout_name`),logoUrl:F(t,`brand.logo_url`),siteTitle:F(t,`brand.site_title`),supportUrl:F(t,`brand.support_url`)})},[e.data,a]);async function o(){await ce(t.mutateAsync,[{group:`brand`,key:`brand.background_color`,type:`string`,value:``},{group:`brand`,key:`brand.background_image_url`,type:`string`,value:``},{group:`brand`,key:`brand.checkout_name`,type:`string`,value:``},{group:`brand`,key:`brand.logo_url`,type:`string`,value:``},{group:`brand`,key:`brand.site_title`,type:`string`,value:``},{group:`brand`,key:`brand.support_url`,type:`string`,value:``}],g()),await e.refetch()}async function s(n){await le(t.mutateAsync,[{group:`brand`,key:`brand.background_color`,type:`string`,value:n.backgroundColor},{group:`brand`,key:`brand.background_image_url`,type:`string`,value:n.backgroundImageUrl},{group:`brand`,key:`brand.checkout_name`,type:`string`,value:n.checkoutName},{group:`brand`,key:`brand.logo_url`,type:`string`,value:n.logoUrl},{group:`brand`,key:`brand.site_title`,type:`string`,value:n.siteTitle},{group:`brand`,key:`brand.support_url`,type:`string`,value:n.supportUrl}],r()),await e.refetch()}return(0,Y.jsx)(ie,{...a,children:(0,Y.jsxs)(`form`,{className:`space-y-6`,onSubmit:a.handleSubmit(s),children:[(0,Y.jsx)(A,{control:a.control,name:`checkoutName`,render:({field:e})=>(0,Y.jsxs)(k,{children:[(0,Y.jsx)(M,{children:x()}),(0,Y.jsx)(j,{children:(0,Y.jsx)(P,{...e})}),(0,Y.jsx)(N,{})]})}),(0,Y.jsx)(A,{control:a.control,name:`logoUrl`,render:({field:e})=>(0,Y.jsxs)(k,{children:[(0,Y.jsx)(M,{children:m()}),(0,Y.jsx)(j,{children:(0,Y.jsx)(P,{...e})}),(0,Y.jsx)(N,{})]})}),(0,Y.jsx)(A,{control:a.control,name:`siteTitle`,render:({field:e})=>(0,Y.jsxs)(k,{children:[(0,Y.jsx)(M,{children:u()}),(0,Y.jsx)(j,{children:(0,Y.jsx)(P,{...e})}),(0,Y.jsx)(N,{})]})}),(0,Y.jsx)(A,{control:a.control,name:`supportUrl`,render:({field:e})=>(0,Y.jsxs)(k,{children:[(0,Y.jsx)(M,{children:c()}),(0,Y.jsx)(j,{children:(0,Y.jsx)(P,{...e})}),(0,Y.jsx)(N,{})]})}),(0,Y.jsx)(A,{control:a.control,name:`backgroundColor`,render:({field:e})=>(0,Y.jsxs)(k,{children:[(0,Y.jsx)(M,{children:i()}),(0,Y.jsx)(j,{children:(0,Y.jsxs)(`div`,{className:`flex gap-2`,children:[(0,Y.jsxs)(E,{children:[(0,Y.jsx)(T,{asChild:!0,children:(0,Y.jsx)(C,{"aria-label":i(),className:`h-9 w-11 shrink-0 overflow-hidden border`,style:{background:e.value?e.value:`linear-gradient(45deg, #e5e7eb 25%, transparent 25%), linear-gradient(-45deg, #e5e7eb 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e5e7eb 75%), linear-gradient(-45deg, transparent 75%, #e5e7eb 75%)`,backgroundColor:e.value||`#ffffff`,backgroundPosition:`0 0, 0 6px, 6px -6px, -6px 0`,backgroundSize:`12px 12px`},type:`button`,variant:`outline`})}),(0,Y.jsx)(w,{align:`start`,className:`w-auto p-3`,children:(0,Y.jsx)(at,{color:lt(e.value),inputType:$.RGBA,onChange:t=>{e.onChange(ut(t))},showAlpha:!0,showEditableInput:!0,showEyeDropper:!1})})]}),(0,Y.jsx)(P,{...e,className:S(`font-mono`,!e.value&&`font-sans`),placeholder:`rgba(15, 23, 42, 0.72)`})]})}),(0,Y.jsx)(re,{children:p()}),(0,Y.jsx)(N,{})]})}),(0,Y.jsx)(A,{control:a.control,name:`backgroundImageUrl`,render:({field:e})=>(0,Y.jsxs)(k,{children:[(0,Y.jsx)(M,{children:d()}),(0,Y.jsx)(j,{children:(0,Y.jsx)(P,{...e})}),(0,Y.jsx)(N,{})]})}),(0,Y.jsxs)(`div`,{className:`flex gap-2`,children:[(0,Y.jsx)(C,{disabled:t.isPending||e.isLoading,type:`submit`,children:n()}),(0,Y.jsx)(C,{disabled:t.isPending,onClick:o,type:`button`,variant:`outline`,children:y()})]})]})})}function ct(e){let t=e.trim();if(!t)return!0;if(typeof CSS<`u`)return CSS.supports(`color`,t);try{return W(t),!0}catch{return!1}}function lt(e){try{return e.trim()?W(e).hsva:`#00000000`}catch{return`#00000000`}}function ut(e){let{r:t,g:n,b:r,a:i}=e.rgba;return`rgba(${t}, ${n}, ${r}, ${Number(i.toFixed(2))})`}function dt(){return(0,Y.jsx)(ae,{description:l(),title:s(),variant:`section`,children:(0,Y.jsx)(st,{})})}var ft=dt;export{ft as component}; \ No newline at end of file diff --git a/src/www/assets/show-submitted-data-BqZb-_Pf.js b/src/www/assets/show-submitted-data-DwaVTW9K.js similarity index 64% rename from src/www/assets/show-submitted-data-BqZb-_Pf.js rename to src/www/assets/show-submitted-data-DwaVTW9K.js index 3dc433d..81fa56f 100644 --- a/src/www/assets/show-submitted-data-BqZb-_Pf.js +++ b/src/www/assets/show-submitted-data-DwaVTW9K.js @@ -1 +1 @@ -import{tm as e}from"./messages-BOatyqUm.js";import{n as t}from"./dist-JOUh6qvR.js";var n=e();function r(e,r=`You submitted the following values:`){t.message(r,{description:(0,n.jsx)(`pre`,{className:`mt-2 w-full overflow-x-auto rounded-md bg-slate-950 p-4`,children:(0,n.jsx)(`code`,{className:`text-white`,children:JSON.stringify(e,null,2)})})})}export{r as t}; \ No newline at end of file +import{tm as e}from"./messages-CL4J6BaJ.js";import{n as t}from"./dist-Dd-sCJIt.js";var n=e();function r(e,r=`You submitted the following values:`){t.message(r,{description:(0,n.jsx)(`pre`,{className:`mt-2 w-full overflow-x-auto rounded-md bg-slate-950 p-4`,children:(0,n.jsx)(`code`,{className:`text-white`,children:JSON.stringify(e,null,2)})})})}export{r as t}; \ No newline at end of file diff --git a/src/www/assets/sidebar-nav-LZqaVZGH.js b/src/www/assets/sidebar-nav-CrEhVF-o.js similarity index 78% rename from src/www/assets/sidebar-nav-LZqaVZGH.js rename to src/www/assets/sidebar-nav-CrEhVF-o.js index 08a8ae6..d805a06 100644 --- a/src/www/assets/sidebar-nav-LZqaVZGH.js +++ b/src/www/assets/sidebar-nav-CrEhVF-o.js @@ -1 +1 @@ -import{Lt as e,tm as t}from"./messages-BOatyqUm.js";import{t as n}from"./link-DPnL8P5J.js";import{t as r}from"./useNavigate-7u4DX0Ho.js";import{t as i}from"./useRouterState-B2FPPjEe.js";import{r as a}from"./search-provider-C-_FQI9C.js";import{i as o,n as s}from"./button-C_NDYaz8.js";import{a as c,i as l,n as u,r as d,t as f}from"./select-CzebumOF.js";var p=t();function m({className:t,items:m,...h}){let g=r(),{location:_}=i(),v=m.find(e=>_.pathname===e.href)?.href??m[0]?.href??``;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`div`,{className:`p-1 md:hidden`,children:(0,p.jsxs)(f,{onValueChange:e=>{g({to:e})},value:v,children:[(0,p.jsx)(l,{className:`h-12 sm:w-48`,children:(0,p.jsx)(c,{placeholder:e()})}),(0,p.jsx)(u,{children:m.map(e=>(0,p.jsx)(d,{value:e.href,children:(0,p.jsxs)(`div`,{className:`flex gap-x-4 px-2 py-1`,children:[(0,p.jsx)(`span`,{className:`scale-125`,children:e.icon}),(0,p.jsx)(`span`,{className:`text-md`,children:e.title})]})},e.href))})]})}),(0,p.jsx)(a,{className:`hidden w-full min-w-40 bg-background px-1 py-2 md:block`,type:`always`,children:(0,p.jsx)(`nav`,{className:o(`flex space-x-2 py-1 lg:flex-col lg:space-x-0 lg:space-y-1`,t),...h,children:m.map(e=>(0,p.jsxs)(n,{activeOptions:{exact:!0},activeProps:{className:o(s({variant:`ghost`}),`justify-start bg-muted hover:bg-accent`)},className:o(s({variant:`ghost`}),`justify-start hover:bg-accent hover:underline`),to:e.href,children:[(0,p.jsx)(`span`,{className:`me-2`,children:e.icon}),e.title]},e.href))})})]})}export{m as t}; \ No newline at end of file +import{Lt as e,tm as t}from"./messages-CL4J6BaJ.js";import{t as n}from"./link-6i3yGmK_.js";import{t as r}from"./useNavigate-7u4DX0Ho.js";import{t as i}from"./useRouterState-B2FPPjEe.js";import{r as a}from"./search-provider-CTRbHqNx.js";import{i as o,n as s}from"./button-NLSeBFht.js";import{a as c,i as l,n as u,r as d,t as f}from"./select-D2uO5-De.js";var p=t();function m({className:t,items:m,...h}){let g=r(),{location:_}=i(),v=m.find(e=>_.pathname===e.href)?.href??m[0]?.href??``;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`div`,{className:`p-1 md:hidden`,children:(0,p.jsxs)(f,{onValueChange:e=>{g({to:e})},value:v,children:[(0,p.jsx)(l,{className:`h-12 sm:w-48`,children:(0,p.jsx)(c,{placeholder:e()})}),(0,p.jsx)(u,{children:m.map(e=>(0,p.jsx)(d,{value:e.href,children:(0,p.jsxs)(`div`,{className:`flex gap-x-4 px-2 py-1`,children:[(0,p.jsx)(`span`,{className:`scale-125`,children:e.icon}),(0,p.jsx)(`span`,{className:`text-md`,children:e.title})]})},e.href))})]})}),(0,p.jsx)(a,{className:`hidden w-full min-w-40 bg-background px-1 py-2 md:block`,type:`always`,children:(0,p.jsx)(`nav`,{className:o(`flex space-x-2 py-1 lg:flex-col lg:space-x-0 lg:space-y-1`,t),...h,children:m.map(e=>(0,p.jsxs)(n,{activeOptions:{exact:!0},activeProps:{className:o(s({variant:`ghost`}),`justify-start bg-muted hover:bg-accent`)},className:o(s({variant:`ghost`}),`justify-start hover:bg-accent hover:underline`),to:e.href,children:[(0,p.jsx)(`span`,{className:`me-2`,children:e.icon}),e.title]},e.href))})})]})}export{m as t}; \ No newline at end of file diff --git a/src/www/assets/sign-in-_ux3l1kN.js b/src/www/assets/sign-in-C8pEQ7cD.js similarity index 89% rename from src/www/assets/sign-in-_ux3l1kN.js rename to src/www/assets/sign-in-C8pEQ7cD.js index 1316bb3..73051b9 100644 --- a/src/www/assets/sign-in-_ux3l1kN.js +++ b/src/www/assets/sign-in-C8pEQ7cD.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{a as t,r as n,s as r}from"./auth-store-De4Y7PFV.js";import{t as i}from"./react-CO2uhaBc.js";import{Cd as a,Fu as o,Iu as s,Lu as c,Mu as l,Nu as u,Pu as d,Sd as f,Td as p,_d as m,bd as h,gd as g,ju as _,tm as v,vd as y,wd as b,xd as x,yd as S}from"./messages-BOatyqUm.js";import{t as C}from"./useSearch-Diln-KYh.js";import{t as w}from"./useNavigate-7u4DX0Ho.js";import{i as T,t as E}from"./button-C_NDYaz8.js";import{t as D}from"./confirm-dialog-D1L-0EhT.js";import{t as O}from"./createLucideIcon-Br0Bd5k2.js";import{t as k}from"./loader-circle-DpEz1fQv.js";import{n as A}from"./dist-JOUh6qvR.js";import{c as j,s as M}from"./zod-rwFXxHlg.js";import{n as N}from"./auth-animation-context-CmPA3sF3.js";import{a as P,c as F,i as I,l as L,n as R,o as z,s as B,t as V}from"./form-KfFEakes.js";import{t as H}from"./input-8zzM34r5.js";import{t as U}from"./password-input-95hMTMdh.js";var W=O(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),G=O(`log-in`,[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]]),K=O(`shield-alert`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]),q=e(i(),1),J=v(),Y=M({username:j().min(1,S()),password:j().min(1,y())});async function X(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest(`SHA-256`,t);return Array.from(new Uint8Array(n)).map(e=>e.toString(16).padStart(2,`0`)).join(``)}function Z({className:e,redirectTo:i,...a}){let p=w(),{setIsTyping:v,setPasswordLength:y,setShowPassword:b}=N(),S=t.useMutation(`post`,`/admin/api/v1/auth/login`),[C,O]=(0,q.useState)(!1),[j,M]=(0,q.useState)(null),Z=L({resolver:F(Y),defaultValues:{username:``,password:``}});(0,q.useEffect)(()=>()=>{v(!1),y(0),b(!1)},[v,y,b]);async function Q(e){let t=await S.mutateAsync({body:{username:e.username,password:e.password}});if(!t?.data?.token)return;n(t.data.token),A.success(g({username:t.data.username??e.username}));let a=!1;try{let[{data:t},{data:n}]=await Promise.all([r.GET(`/admin/api/v1/auth/me`),r.GET(`/admin/api/v1/auth/init-password-hash`)]),i=!!t?.data?.password_is_default,o=n?.data,s=o?.available&&!o.password_changed&&o.algorithm?.toLowerCase()===`sha256`&&!!o.password_hash;i?a=!0:s&&(a=(await X(e.password)).toLowerCase()===o.password_hash?.toLowerCase())}catch{}let o=i||`/dashboard`;if(a){M(o),O(!0);return}p({to:o,replace:!0})}function $(e){y(e.length)}function ee(){O(!1),p({to:`/account/password`,search:j?{redirect:j}:void 0,replace:!0})}return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(V,{...Z,children:(0,J.jsxs)(`form`,{className:T(`grid gap-3`,e),onSubmit:Z.handleSubmit(Q),...a,children:[(0,J.jsx)(I,{control:Z.control,name:`username`,render:({field:e})=>(0,J.jsxs)(P,{children:[(0,J.jsx)(z,{children:f()}),(0,J.jsx)(R,{children:(0,J.jsx)(H,{placeholder:x(),...e,onBlur:()=>{v(!1),e.onBlur()},onFocus:()=>v(!0)})}),(0,J.jsx)(B,{})]})}),(0,J.jsx)(I,{control:Z.control,name:`password`,render:({field:e})=>(0,J.jsxs)(P,{children:[(0,J.jsx)(z,{children:h()}),(0,J.jsx)(R,{children:(0,J.jsx)(U,{placeholder:`********`,...e,onBlur:()=>{v(!1),e.onBlur()},onChange:t=>{$(t.target.value),e.onChange(t)},onFocus:()=>v(!0),onVisibilityChange:b})}),(0,J.jsx)(B,{})]})}),(0,J.jsxs)(E,{className:`mt-2`,disabled:S.isPending,children:[S.isPending?(0,J.jsx)(k,{className:`animate-spin`}):(0,J.jsx)(G,{}),m()]})]})}),(0,J.jsx)(D,{className:`sm:max-w-xl`,confirmText:s(),desc:(0,J.jsxs)(`div`,{className:`space-y-4`,children:[(0,J.jsxs)(`div`,{className:`flex items-start gap-3 rounded-xl border border-amber-500/20 bg-amber-500/5 p-4`,children:[(0,J.jsx)(`div`,{className:`flex size-9 shrink-0 items-center justify-center rounded-lg bg-amber-500/12 text-amber-600 dark:text-amber-400`,children:(0,J.jsx)(K,{className:`size-4.5`})}),(0,J.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,J.jsx)(`p`,{className:`font-medium text-foreground text-sm`,children:o()}),(0,J.jsx)(`p`,{className:`text-muted-foreground text-sm leading-6`,children:d()})]})]}),(0,J.jsxs)(`div`,{className:`rounded-xl border bg-muted/20 p-4 text-muted-foreground text-sm leading-6`,children:[(0,J.jsxs)(`div`,{className:`mb-2 flex items-center gap-2 font-medium text-foreground`,children:[(0,J.jsx)(W,{className:`size-4`}),u()]}),(0,J.jsxs)(`ul`,{className:`list-disc space-y-1 pl-5`,children:[(0,J.jsx)(`li`,{children:l()}),(0,J.jsx)(`li`,{children:_()})]})]})]}),handleConfirm:ee,onOpenChange:O,open:C,title:c()})]})}function Q(){let{redirect:e}=C({from:`/(auth)/sign-in`});return(0,J.jsxs)(`div`,{className:`w-full space-y-6`,children:[(0,J.jsxs)(`div`,{className:`space-y-2`,children:[(0,J.jsx)(`p`,{className:`font-medium text-primary text-sm`,children:p()}),(0,J.jsx)(`h2`,{className:`font-semibold text-3xl tracking-tight`,children:b()}),(0,J.jsx)(`p`,{className:`text-muted-foreground leading-6`,children:a()})]}),(0,J.jsx)(Z,{redirectTo:e})]})}var $=Q;export{$ as component}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{a as t,r as n,s as r}from"./auth-store-8ocF_FHU.js";import{t as i}from"./react-CO2uhaBc.js";import{Cd as a,Fu as o,Iu as s,Lu as c,Mu as l,Nu as u,Pu as d,Sd as f,Td as p,_d as m,bd as h,gd as g,ju as _,tm as v,vd as y,wd as b,xd as x,yd as S}from"./messages-CL4J6BaJ.js";import{t as C}from"./useSearch-Diln-KYh.js";import{t as w}from"./useNavigate-7u4DX0Ho.js";import{i as T,t as E}from"./button-NLSeBFht.js";import{t as D}from"./confirm-dialog-Crc1Jrzv.js";import{t as O}from"./createLucideIcon-Br0Bd5k2.js";import{t as k}from"./loader-circle-DpEz1fQv.js";import{n as A}from"./dist-Dd-sCJIt.js";import{c as j,s as M}from"./zod-rwFXxHlg.js";import{n as N}from"./auth-animation-context-Cac9Wtyr.js";import{a as P,c as F,i as I,l as L,n as R,o as z,s as B,t as V}from"./form-C_YekIvK.js";import{t as H}from"./input-DAqep8ZY.js";import{t as U}from"./password-input-D9YsRteD.js";var W=O(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),G=O(`log-in`,[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]]),K=O(`shield-alert`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]),q=e(i(),1),J=v(),Y=M({username:j().min(1,S()),password:j().min(1,y())});async function X(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest(`SHA-256`,t);return Array.from(new Uint8Array(n)).map(e=>e.toString(16).padStart(2,`0`)).join(``)}function Z({className:e,redirectTo:i,...a}){let p=w(),{setIsTyping:v,setPasswordLength:y,setShowPassword:b}=N(),S=t.useMutation(`post`,`/admin/api/v1/auth/login`),[C,O]=(0,q.useState)(!1),[j,M]=(0,q.useState)(null),Z=L({resolver:F(Y),defaultValues:{username:``,password:``}});(0,q.useEffect)(()=>()=>{v(!1),y(0),b(!1)},[v,y,b]);async function Q(e){let t=await S.mutateAsync({body:{username:e.username,password:e.password}});if(!t?.data?.token)return;n(t.data.token),A.success(g({username:t.data.username??e.username}));let a=!1;try{let[{data:t},{data:n}]=await Promise.all([r.GET(`/admin/api/v1/auth/me`),r.GET(`/admin/api/v1/auth/init-password-hash`)]),i=!!t?.data?.password_is_default,o=n?.data,s=o?.available&&!o.password_changed&&o.algorithm?.toLowerCase()===`sha256`&&!!o.password_hash;i?a=!0:s&&(a=(await X(e.password)).toLowerCase()===o.password_hash?.toLowerCase())}catch{}let o=i||`/dashboard`;if(a){M(o),O(!0);return}p({to:o,replace:!0})}function $(e){y(e.length)}function ee(){O(!1),p({to:`/account/password`,search:j?{redirect:j}:void 0,replace:!0})}return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(V,{...Z,children:(0,J.jsxs)(`form`,{className:T(`grid gap-3`,e),onSubmit:Z.handleSubmit(Q),...a,children:[(0,J.jsx)(I,{control:Z.control,name:`username`,render:({field:e})=>(0,J.jsxs)(P,{children:[(0,J.jsx)(z,{children:f()}),(0,J.jsx)(R,{children:(0,J.jsx)(H,{placeholder:x(),...e,onBlur:()=>{v(!1),e.onBlur()},onFocus:()=>v(!0)})}),(0,J.jsx)(B,{})]})}),(0,J.jsx)(I,{control:Z.control,name:`password`,render:({field:e})=>(0,J.jsxs)(P,{children:[(0,J.jsx)(z,{children:h()}),(0,J.jsx)(R,{children:(0,J.jsx)(U,{placeholder:`********`,...e,onBlur:()=>{v(!1),e.onBlur()},onChange:t=>{$(t.target.value),e.onChange(t)},onFocus:()=>v(!0),onVisibilityChange:b})}),(0,J.jsx)(B,{})]})}),(0,J.jsxs)(E,{className:`mt-2`,disabled:S.isPending,children:[S.isPending?(0,J.jsx)(k,{className:`animate-spin`}):(0,J.jsx)(G,{}),m()]})]})}),(0,J.jsx)(D,{className:`sm:max-w-xl`,confirmText:s(),desc:(0,J.jsxs)(`div`,{className:`space-y-4`,children:[(0,J.jsxs)(`div`,{className:`flex items-start gap-3 rounded-xl border border-amber-500/20 bg-amber-500/5 p-4`,children:[(0,J.jsx)(`div`,{className:`flex size-9 shrink-0 items-center justify-center rounded-lg bg-amber-500/12 text-amber-600 dark:text-amber-400`,children:(0,J.jsx)(K,{className:`size-4.5`})}),(0,J.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,J.jsx)(`p`,{className:`font-medium text-foreground text-sm`,children:o()}),(0,J.jsx)(`p`,{className:`text-muted-foreground text-sm leading-6`,children:d()})]})]}),(0,J.jsxs)(`div`,{className:`rounded-xl border bg-muted/20 p-4 text-muted-foreground text-sm leading-6`,children:[(0,J.jsxs)(`div`,{className:`mb-2 flex items-center gap-2 font-medium text-foreground`,children:[(0,J.jsx)(W,{className:`size-4`}),u()]}),(0,J.jsxs)(`ul`,{className:`list-disc space-y-1 pl-5`,children:[(0,J.jsx)(`li`,{children:l()}),(0,J.jsx)(`li`,{children:_()})]})]})]}),handleConfirm:ee,onOpenChange:O,open:C,title:c()})]})}function Q(){let{redirect:e}=C({from:`/(auth)/sign-in`});return(0,J.jsxs)(`div`,{className:`w-full space-y-6`,children:[(0,J.jsxs)(`div`,{className:`space-y-2`,children:[(0,J.jsx)(`p`,{className:`font-medium text-primary text-sm`,children:p()}),(0,J.jsx)(`h2`,{className:`font-semibold text-3xl tracking-tight`,children:b()}),(0,J.jsx)(`p`,{className:`text-muted-foreground leading-6`,children:a()})]}),(0,J.jsx)(Z,{redirectTo:e})]})}var $=Q;export{$ as component}; \ No newline at end of file diff --git a/src/www/assets/skeleton-CmDjDV1O.js b/src/www/assets/skeleton-B4TLI5_E.js similarity index 65% rename from src/www/assets/skeleton-CmDjDV1O.js rename to src/www/assets/skeleton-B4TLI5_E.js index f0043e9..8c389d0 100644 --- a/src/www/assets/skeleton-CmDjDV1O.js +++ b/src/www/assets/skeleton-B4TLI5_E.js @@ -1 +1 @@ -import{tm as e}from"./messages-BOatyqUm.js";import{i as t}from"./button-C_NDYaz8.js";import{t as n}from"./createLucideIcon-Br0Bd5k2.js";var r=n(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),i=e();function a({className:e,...n}){return(0,i.jsx)(`div`,{className:t(`animate-pulse rounded-md bg-accent`,e),"data-slot":`skeleton`,...n})}export{r as n,a as t}; \ No newline at end of file +import{tm as e}from"./messages-CL4J6BaJ.js";import{i as t}from"./button-NLSeBFht.js";import{t as n}from"./createLucideIcon-Br0Bd5k2.js";var r=n(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),i=e();function a({className:e,...n}){return(0,i.jsx)(`div`,{className:t(`animate-pulse rounded-md bg-accent`,e),"data-slot":`skeleton`,...n})}export{r as n,a as t}; \ No newline at end of file diff --git a/src/www/assets/switch-CgoJjvdz.js b/src/www/assets/switch-BST3z-JX.js similarity index 89% rename from src/www/assets/switch-CgoJjvdz.js rename to src/www/assets/switch-BST3z-JX.js index 10234bd..1f4fb19 100644 --- a/src/www/assets/switch-CgoJjvdz.js +++ b/src/www/assets/switch-BST3z-JX.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./dist-Cc8_LDAq.js";import{i,u as a}from"./button-C_NDYaz8.js";import{a as o,r as s,t as c}from"./dist-DPPquN_M.js";import{t as l}from"./dist-BixeH3nX.js";import{t as u}from"./dist-ZdRQQNeu.js";var d=e(t(),1),f=n(),p=`Switch`,[m,h]=o(p),[g,_]=m(p),v=d.forwardRef((e,t)=>{let{__scopeSwitch:n,name:i,checked:o,defaultChecked:l,required:u,disabled:m,value:h=`on`,onCheckedChange:_,form:v,...y}=e,[b,x]=d.useState(null),w=a(t,e=>x(e)),T=d.useRef(!1),E=b?v||!!b.closest(`form`):!0,[D,O]=c({prop:o,defaultProp:l??!1,onChange:_,caller:p});return(0,f.jsxs)(g,{scope:n,checked:D,disabled:m,children:[(0,f.jsx)(r.button,{type:`button`,role:`switch`,"aria-checked":D,"aria-required":u,"data-state":C(D),"data-disabled":m?``:void 0,disabled:m,value:h,...y,ref:w,onClick:s(e.onClick,e=>{O(e=>!e),E&&(T.current=e.isPropagationStopped(),T.current||e.stopPropagation())})}),E&&(0,f.jsx)(S,{control:b,bubbles:!T.current,name:i,value:h,checked:D,required:u,disabled:m,form:v,style:{transform:`translateX(-100%)`}})]})});v.displayName=p;var y=`SwitchThumb`,b=d.forwardRef((e,t)=>{let{__scopeSwitch:n,...i}=e,a=_(y,n);return(0,f.jsx)(r.span,{"data-state":C(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t})});b.displayName=y;var x=`SwitchBubbleInput`,S=d.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...i},o)=>{let s=d.useRef(null),c=a(s,o),p=l(n),m=u(t);return d.useEffect(()=>{let e=s.current;if(!e)return;let t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,`checked`).set;if(p!==n&&i){let t=new Event(`click`,{bubbles:r});i.call(e,n),e.dispatchEvent(t)}},[p,n,r]),(0,f.jsx)(`input`,{type:`checkbox`,"aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:c,style:{...i.style,...m,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0}})});S.displayName=x;function C(e){return e?`checked`:`unchecked`}var w=v,T=b;function E({className:e,size:t=`default`,...n}){return(0,f.jsx)(w,{className:i(`peer group/switch inline-flex shrink-0 cursor-pointer items-center rounded-full border border-transparent shadow-xs outline-none transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=sm]:h-3.5 data-[size=default]:w-8 data-[size=sm]:w-6 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80`,e),"data-size":t,"data-slot":`switch`,...n,children:(0,f.jsx)(T,{className:i(`pointer-events-none block rounded-full bg-background ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground`),"data-slot":`switch-thumb`})})}export{E as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";import{t as r}from"./dist-D3WFT-Yo.js";import{i,u as a}from"./button-NLSeBFht.js";import{a as o,r as s,t as c}from"./dist-DmeeHi7K.js";import{t as l}from"./dist-BixeH3nX.js";import{t as u}from"./dist-B0pRVbY9.js";var d=e(t(),1),f=n(),p=`Switch`,[m,h]=o(p),[g,_]=m(p),v=d.forwardRef((e,t)=>{let{__scopeSwitch:n,name:i,checked:o,defaultChecked:l,required:u,disabled:m,value:h=`on`,onCheckedChange:_,form:v,...y}=e,[b,x]=d.useState(null),w=a(t,e=>x(e)),T=d.useRef(!1),E=b?v||!!b.closest(`form`):!0,[D,O]=c({prop:o,defaultProp:l??!1,onChange:_,caller:p});return(0,f.jsxs)(g,{scope:n,checked:D,disabled:m,children:[(0,f.jsx)(r.button,{type:`button`,role:`switch`,"aria-checked":D,"aria-required":u,"data-state":C(D),"data-disabled":m?``:void 0,disabled:m,value:h,...y,ref:w,onClick:s(e.onClick,e=>{O(e=>!e),E&&(T.current=e.isPropagationStopped(),T.current||e.stopPropagation())})}),E&&(0,f.jsx)(S,{control:b,bubbles:!T.current,name:i,value:h,checked:D,required:u,disabled:m,form:v,style:{transform:`translateX(-100%)`}})]})});v.displayName=p;var y=`SwitchThumb`,b=d.forwardRef((e,t)=>{let{__scopeSwitch:n,...i}=e,a=_(y,n);return(0,f.jsx)(r.span,{"data-state":C(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t})});b.displayName=y;var x=`SwitchBubbleInput`,S=d.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...i},o)=>{let s=d.useRef(null),c=a(s,o),p=l(n),m=u(t);return d.useEffect(()=>{let e=s.current;if(!e)return;let t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,`checked`).set;if(p!==n&&i){let t=new Event(`click`,{bubbles:r});i.call(e,n),e.dispatchEvent(t)}},[p,n,r]),(0,f.jsx)(`input`,{type:`checkbox`,"aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:c,style:{...i.style,...m,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0}})});S.displayName=x;function C(e){return e?`checked`:`unchecked`}var w=v,T=b;function E({className:e,size:t=`default`,...n}){return(0,f.jsx)(w,{className:i(`peer group/switch inline-flex shrink-0 cursor-pointer items-center rounded-full border border-transparent shadow-xs outline-none transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=sm]:h-3.5 data-[size=default]:w-8 data-[size=sm]:w-6 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80`,e),"data-size":t,"data-slot":`switch`,...n,children:(0,f.jsx)(T,{className:i(`pointer-events-none block rounded-full bg-background ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground`),"data-slot":`switch-thumb`})})}export{E as t}; \ No newline at end of file diff --git a/src/www/assets/system-CzKDOsCg.js b/src/www/assets/system-UzoEfe2L.js similarity index 88% rename from src/www/assets/system-CzKDOsCg.js rename to src/www/assets/system-UzoEfe2L.js index f2b71b6..184dbac 100644 --- a/src/www/assets/system-CzKDOsCg.js +++ b/src/www/assets/system-UzoEfe2L.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{$n as n,Cr as r,Dr as i,Er as a,Or as o,Qn as s,Tr as c,Xn as l,Zn as u,er as d,tm as f,tr as p,wr as m}from"./messages-BOatyqUm.js";import{t as h}from"./button-C_NDYaz8.js";import{a as g,i as _,n as v,r as y,t as b}from"./select-CzebumOF.js";import{r as x,s as S}from"./zod-rwFXxHlg.js";import{a as C,c as w,i as T,l as E,n as D,o as O,r as k,s as A,t as j}from"./form-KfFEakes.js";import{t as M}from"./page-header-GTtyZFBB.js";import{a as N,i as P,n as F,r as I,t as L}from"./lib-DDezYSnW.js";var R=e(t(),1),z=f(),B=S({logLevel:x([`debug`,`info`,`warn`,`error`])});function V(){let e=P(`system`),t=N(),i=E({resolver:w(B),defaultValues:{logLevel:`error`}});(0,R.useEffect)(()=>{let t=e.data?.data;t&&i.reset({logLevel:H(L(t,`system.log_level`,`error`))})},[e.data,i]);async function o(){await F(t.mutateAsync,[{group:`system`,key:`system.log_level`,type:`string`,value:``}],c()),await e.refetch()}async function f(n){await I(t.mutateAsync,[{group:`system`,key:`system.log_level`,type:`string`,value:n.logLevel}],a()),await e.refetch()}return(0,z.jsx)(j,{...i,children:(0,z.jsxs)(`form`,{className:`space-y-6`,onSubmit:i.handleSubmit(f),children:[(0,z.jsx)(T,{control:i.control,name:`logLevel`,render:({field:e})=>(0,z.jsxs)(C,{children:[(0,z.jsx)(O,{children:p()}),(0,z.jsxs)(b,{onValueChange:e.onChange,value:e.value,children:[(0,z.jsx)(D,{children:(0,z.jsx)(_,{className:`w-full`,children:(0,z.jsx)(g,{})})}),(0,z.jsxs)(v,{children:[(0,z.jsx)(y,{value:`debug`,children:n()}),(0,z.jsx)(y,{value:`info`,children:s()}),(0,z.jsx)(y,{value:`warn`,children:u()}),(0,z.jsx)(y,{value:`error`,children:l()})]})]}),(0,z.jsx)(k,{children:d()}),(0,z.jsx)(A,{})]})}),(0,z.jsxs)(`div`,{className:`flex gap-2`,children:[(0,z.jsx)(h,{disabled:t.isPending||e.isLoading,type:`submit`,children:m()}),(0,z.jsx)(h,{disabled:t.isPending,onClick:o,type:`button`,variant:`outline`,children:r()})]})]})})}function H(e){let t=e.toLowerCase();return[`debug`,`info`,`warn`,`error`].includes(t)?t:`error`}function U(){return(0,z.jsx)(M,{description:i(),title:o(),variant:`section`,children:(0,z.jsx)(V,{})})}var W=U;export{W as component}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{$n as n,Cr as r,Dr as i,Er as a,Or as o,Qn as s,Tr as c,Xn as l,Zn as u,er as d,tm as f,tr as p,wr as m}from"./messages-CL4J6BaJ.js";import{t as h}from"./button-NLSeBFht.js";import{a as g,i as _,n as v,r as y,t as b}from"./select-D2uO5-De.js";import{r as x,s as S}from"./zod-rwFXxHlg.js";import{a as C,c as w,i as T,l as E,n as D,o as O,r as k,s as A,t as j}from"./form-C_YekIvK.js";import{t as M}from"./page-header-B7O10aw9.js";import{a as N,i as P,n as F,r as I,t as L}from"./lib-Ku8Lh36m.js";var R=e(t(),1),z=f(),B=S({logLevel:x([`debug`,`info`,`warn`,`error`])});function V(){let e=P(`system`),t=N(),i=E({resolver:w(B),defaultValues:{logLevel:`error`}});(0,R.useEffect)(()=>{let t=e.data?.data;t&&i.reset({logLevel:H(L(t,`system.log_level`,`error`))})},[e.data,i]);async function o(){await F(t.mutateAsync,[{group:`system`,key:`system.log_level`,type:`string`,value:``}],c()),await e.refetch()}async function f(n){await I(t.mutateAsync,[{group:`system`,key:`system.log_level`,type:`string`,value:n.logLevel}],a()),await e.refetch()}return(0,z.jsx)(j,{...i,children:(0,z.jsxs)(`form`,{className:`space-y-6`,onSubmit:i.handleSubmit(f),children:[(0,z.jsx)(T,{control:i.control,name:`logLevel`,render:({field:e})=>(0,z.jsxs)(C,{children:[(0,z.jsx)(O,{children:p()}),(0,z.jsxs)(b,{onValueChange:e.onChange,value:e.value,children:[(0,z.jsx)(D,{children:(0,z.jsx)(_,{className:`w-full`,children:(0,z.jsx)(g,{})})}),(0,z.jsxs)(v,{children:[(0,z.jsx)(y,{value:`debug`,children:n()}),(0,z.jsx)(y,{value:`info`,children:s()}),(0,z.jsx)(y,{value:`warn`,children:u()}),(0,z.jsx)(y,{value:`error`,children:l()})]})]}),(0,z.jsx)(k,{children:d()}),(0,z.jsx)(A,{})]})}),(0,z.jsxs)(`div`,{className:`flex gap-2`,children:[(0,z.jsx)(h,{disabled:t.isPending||e.isLoading,type:`submit`,children:m()}),(0,z.jsx)(h,{disabled:t.isPending,onClick:o,type:`button`,variant:`outline`,children:r()})]})]})})}function H(e){let t=e.toLowerCase();return[`debug`,`info`,`warn`,`error`].includes(t)?t:`error`}function U(){return(0,z.jsx)(M,{description:i(),title:o(),variant:`section`,children:(0,z.jsx)(V,{})})}var W=U;export{W as component}; \ No newline at end of file diff --git a/src/www/assets/table-9UOy2Vxt.js b/src/www/assets/table-DgARtYSu.js similarity index 90% rename from src/www/assets/table-9UOy2Vxt.js rename to src/www/assets/table-DgARtYSu.js index 8e3b842..c81c093 100644 --- a/src/www/assets/table-9UOy2Vxt.js +++ b/src/www/assets/table-DgARtYSu.js @@ -1 +1 @@ -import{tm as e}from"./messages-BOatyqUm.js";import{i as t}from"./button-C_NDYaz8.js";var n=e();function r({className:e,...r}){return(0,n.jsx)(`div`,{className:`relative w-full overflow-x-auto`,"data-slot":`table-container`,children:(0,n.jsx)(`table`,{className:t(`w-full caption-bottom text-sm`,e),"data-slot":`table`,...r})})}function i({className:e,...r}){return(0,n.jsx)(`thead`,{className:t(`[&_tr]:border-b`,e),"data-slot":`table-header`,...r})}function a({className:e,...r}){return(0,n.jsx)(`tbody`,{className:t(`[&_tr:last-child]:border-0`,e),"data-slot":`table-body`,...r})}function o({className:e,...r}){return(0,n.jsx)(`tr`,{className:t(`border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted`,e),"data-slot":`table-row`,...r})}function s({className:e,...r}){return(0,n.jsx)(`th`,{className:t(`h-10 whitespace-nowrap px-2 text-left align-middle font-medium text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]`,e),"data-slot":`table-head`,...r})}function c({className:e,...r}){return(0,n.jsx)(`td`,{className:t(`whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]`,e),"data-slot":`table-cell`,...r})}export{i as a,s as i,a as n,o,c as r,r as t}; \ No newline at end of file +import{tm as e}from"./messages-CL4J6BaJ.js";import{i as t}from"./button-NLSeBFht.js";var n=e();function r({className:e,...r}){return(0,n.jsx)(`div`,{className:`relative w-full overflow-x-auto`,"data-slot":`table-container`,children:(0,n.jsx)(`table`,{className:t(`w-full caption-bottom text-sm`,e),"data-slot":`table`,...r})})}function i({className:e,...r}){return(0,n.jsx)(`thead`,{className:t(`[&_tr]:border-b`,e),"data-slot":`table-header`,...r})}function a({className:e,...r}){return(0,n.jsx)(`tbody`,{className:t(`[&_tr:last-child]:border-0`,e),"data-slot":`table-body`,...r})}function o({className:e,...r}){return(0,n.jsx)(`tr`,{className:t(`border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted`,e),"data-slot":`table-row`,...r})}function s({className:e,...r}){return(0,n.jsx)(`th`,{className:t(`h-10 whitespace-nowrap px-2 text-left align-middle font-medium text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]`,e),"data-slot":`table-head`,...r})}function c({className:e,...r}){return(0,n.jsx)(`td`,{className:t(`whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]`,e),"data-slot":`table-cell`,...r})}export{i as a,s as i,a as n,o,c as r,r as t}; \ No newline at end of file diff --git a/src/www/assets/tabs-6Ep1KePr.js b/src/www/assets/tabs-DDe7sXIW.js similarity index 92% rename from src/www/assets/tabs-6Ep1KePr.js rename to src/www/assets/tabs-DDe7sXIW.js index 6c67a2e..f74500c 100644 --- a/src/www/assets/tabs-6Ep1KePr.js +++ b/src/www/assets/tabs-DDe7sXIW.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./dist-Cc8_LDAq.js";import{i,r as a}from"./button-C_NDYaz8.js";import{a as o,r as s,t as c}from"./dist-DPPquN_M.js";import{t as l}from"./dist-DvwKOQ8R.js";import{n as u}from"./dist-D4X8zGEB.js";import{n as d}from"./dist-BNFQuJTu.js";import{n as f,r as p,t as m}from"./dist-D0DoWChj.js";var h=e(t(),1),g=n(),_=`Tabs`,[v,y]=o(_,[p]),b=p(),[x,S]=v(_),C=h.forwardRef((e,t)=>{let{__scopeTabs:n,value:i,onValueChange:a,defaultValue:o,orientation:s=`horizontal`,dir:l,activationMode:f=`automatic`,...p}=e,m=d(l),[h,v]=c({prop:i,onChange:a,defaultProp:o??``,caller:_});return(0,g.jsx)(x,{scope:n,baseId:u(),value:h,onValueChange:v,orientation:s,dir:m,activationMode:f,children:(0,g.jsx)(r.div,{dir:m,"data-orientation":s,...p,ref:t})})});C.displayName=_;var w=`TabsList`,T=h.forwardRef((e,t)=>{let{__scopeTabs:n,loop:i=!0,...a}=e,o=S(w,n),s=b(n);return(0,g.jsx)(f,{asChild:!0,...s,orientation:o.orientation,dir:o.dir,loop:i,children:(0,g.jsx)(r.div,{role:`tablist`,"aria-orientation":o.orientation,...a,ref:t})})});T.displayName=w;var E=`TabsTrigger`,D=h.forwardRef((e,t)=>{let{__scopeTabs:n,value:i,disabled:a=!1,...o}=e,c=S(E,n),l=b(n),u=A(c.baseId,i),d=j(c.baseId,i),f=i===c.value;return(0,g.jsx)(m,{asChild:!0,...l,focusable:!a,active:f,children:(0,g.jsx)(r.button,{type:`button`,role:`tab`,"aria-selected":f,"aria-controls":d,"data-state":f?`active`:`inactive`,"data-disabled":a?``:void 0,disabled:a,id:u,...o,ref:t,onMouseDown:s(e.onMouseDown,e=>{!a&&e.button===0&&e.ctrlKey===!1?c.onValueChange(i):e.preventDefault()}),onKeyDown:s(e.onKeyDown,e=>{[` `,`Enter`].includes(e.key)&&c.onValueChange(i)}),onFocus:s(e.onFocus,()=>{let e=c.activationMode!==`manual`;!f&&!a&&e&&c.onValueChange(i)})})})});D.displayName=E;var O=`TabsContent`,k=h.forwardRef((e,t)=>{let{__scopeTabs:n,value:i,forceMount:a,children:o,...s}=e,c=S(O,n),u=A(c.baseId,i),d=j(c.baseId,i),f=i===c.value,p=h.useRef(f);return h.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,g.jsx)(l,{present:a||f,children:({present:n})=>(0,g.jsx)(r.div,{"data-state":f?`active`:`inactive`,"data-orientation":c.orientation,role:`tabpanel`,"aria-labelledby":u,hidden:!n,id:d,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:p.current?`0s`:void 0},children:n&&o})})});k.displayName=O;function A(e,t){return`${e}-trigger-${t}`}function j(e,t){return`${e}-content-${t}`}var M=C,N=T,P=D;function F({className:e,orientation:t=`horizontal`,...n}){return(0,g.jsx)(M,{className:i(`group/tabs flex gap-2 data-[orientation=horizontal]:flex-col`,e),"data-orientation":t,"data-slot":`tabs`,orientation:t,...n})}var I=a(`group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground data-[variant=line]:rounded-none group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col`,{variants:{variant:{default:`bg-muted`,line:`gap-1 bg-transparent`}},defaultVariants:{variant:`default`}});function L({className:e,variant:t=`default`,...n}){return(0,g.jsx)(N,{className:i(I({variant:t}),e),"data-slot":`tabs-list`,"data-variant":t,...n})}function R({className:e,...t}){return(0,g.jsx)(P,{className:i(`relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 whitespace-nowrap rounded-md border border-transparent px-2 py-1 font-medium text-foreground/60 text-sm transition-all hover:text-foreground focus-visible:border-ring focus-visible:outline-1 focus-visible:outline-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,`group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent`,`data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground`,`after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100`,e),"data-slot":`tabs-trigger`,...t})}export{L as n,R as r,F as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";import{t as r}from"./dist-D3WFT-Yo.js";import{i,r as a}from"./button-NLSeBFht.js";import{a as o,r as s,t as c}from"./dist-DmeeHi7K.js";import{t as l}from"./dist-BZMqLvO-.js";import{n as u}from"./dist-SR6sl-WU.js";import{n as d}from"./dist-CGRahgI2.js";import{n as f,r as p,t as m}from"./dist-DhcQhr4B.js";var h=e(t(),1),g=n(),_=`Tabs`,[v,y]=o(_,[p]),b=p(),[x,S]=v(_),C=h.forwardRef((e,t)=>{let{__scopeTabs:n,value:i,onValueChange:a,defaultValue:o,orientation:s=`horizontal`,dir:l,activationMode:f=`automatic`,...p}=e,m=d(l),[h,v]=c({prop:i,onChange:a,defaultProp:o??``,caller:_});return(0,g.jsx)(x,{scope:n,baseId:u(),value:h,onValueChange:v,orientation:s,dir:m,activationMode:f,children:(0,g.jsx)(r.div,{dir:m,"data-orientation":s,...p,ref:t})})});C.displayName=_;var w=`TabsList`,T=h.forwardRef((e,t)=>{let{__scopeTabs:n,loop:i=!0,...a}=e,o=S(w,n),s=b(n);return(0,g.jsx)(f,{asChild:!0,...s,orientation:o.orientation,dir:o.dir,loop:i,children:(0,g.jsx)(r.div,{role:`tablist`,"aria-orientation":o.orientation,...a,ref:t})})});T.displayName=w;var E=`TabsTrigger`,D=h.forwardRef((e,t)=>{let{__scopeTabs:n,value:i,disabled:a=!1,...o}=e,c=S(E,n),l=b(n),u=A(c.baseId,i),d=j(c.baseId,i),f=i===c.value;return(0,g.jsx)(m,{asChild:!0,...l,focusable:!a,active:f,children:(0,g.jsx)(r.button,{type:`button`,role:`tab`,"aria-selected":f,"aria-controls":d,"data-state":f?`active`:`inactive`,"data-disabled":a?``:void 0,disabled:a,id:u,...o,ref:t,onMouseDown:s(e.onMouseDown,e=>{!a&&e.button===0&&e.ctrlKey===!1?c.onValueChange(i):e.preventDefault()}),onKeyDown:s(e.onKeyDown,e=>{[` `,`Enter`].includes(e.key)&&c.onValueChange(i)}),onFocus:s(e.onFocus,()=>{let e=c.activationMode!==`manual`;!f&&!a&&e&&c.onValueChange(i)})})})});D.displayName=E;var O=`TabsContent`,k=h.forwardRef((e,t)=>{let{__scopeTabs:n,value:i,forceMount:a,children:o,...s}=e,c=S(O,n),u=A(c.baseId,i),d=j(c.baseId,i),f=i===c.value,p=h.useRef(f);return h.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,g.jsx)(l,{present:a||f,children:({present:n})=>(0,g.jsx)(r.div,{"data-state":f?`active`:`inactive`,"data-orientation":c.orientation,role:`tabpanel`,"aria-labelledby":u,hidden:!n,id:d,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:p.current?`0s`:void 0},children:n&&o})})});k.displayName=O;function A(e,t){return`${e}-trigger-${t}`}function j(e,t){return`${e}-content-${t}`}var M=C,N=T,P=D;function F({className:e,orientation:t=`horizontal`,...n}){return(0,g.jsx)(M,{className:i(`group/tabs flex gap-2 data-[orientation=horizontal]:flex-col`,e),"data-orientation":t,"data-slot":`tabs`,orientation:t,...n})}var I=a(`group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground data-[variant=line]:rounded-none group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col`,{variants:{variant:{default:`bg-muted`,line:`gap-1 bg-transparent`}},defaultVariants:{variant:`default`}});function L({className:e,variant:t=`default`,...n}){return(0,g.jsx)(N,{className:i(I({variant:t}),e),"data-slot":`tabs-list`,"data-variant":t,...n})}function R({className:e,...t}){return(0,g.jsx)(P,{className:i(`relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 whitespace-nowrap rounded-md border border-transparent px-2 py-1 font-medium text-foreground/60 text-sm transition-all hover:text-foreground focus-visible:border-ring focus-visible:outline-1 focus-visible:outline-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,`group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent`,`data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground`,`after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100`,e),"data-slot":`tabs-trigger`,...t})}export{L as n,R as r,F as t}; \ No newline at end of file diff --git a/src/www/assets/telegram-Br_DijOI.js b/src/www/assets/telegram-D-IQd24v.js similarity index 88% rename from src/www/assets/telegram-Br_DijOI.js rename to src/www/assets/telegram-D-IQd24v.js index 5c4b95e..2bdf8a0 100644 --- a/src/www/assets/telegram-Br_DijOI.js +++ b/src/www/assets/telegram-D-IQd24v.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{Ff as n,Sr as r,_r as i,br as a,fr as o,gr as s,hr as c,mr as l,pr as u,tm as d,vr as f,xr as p,yr as m}from"./messages-BOatyqUm.js";import{t as h}from"./button-C_NDYaz8.js";import{t as g}from"./switch-CgoJjvdz.js";import{a as _,c as v,s as y}from"./zod-rwFXxHlg.js";import{a as b,c as x,i as S,l as C,n as w,o as T,s as E,t as D}from"./form-KfFEakes.js";import{t as O}from"./input-8zzM34r5.js";import{t as k}from"./page-header-GTtyZFBB.js";import{a as A,i as j,n as M,r as N,t as P}from"./lib-DDezYSnW.js";var F=e(t(),1),I=d(),L=y({botToken:v().min(1,p()),chatId:v().min(1,a()),paymentNoticeEnabled:_(),abnormalNoticeEnabled:_()});function R(){let e=j(`system`),t=A(),n=C({resolver:x(L),defaultValues:{botToken:``,chatId:``,paymentNoticeEnabled:!1,abnormalNoticeEnabled:!1}});(0,F.useEffect)(()=>{let t=e.data?.data;t&&n.reset({botToken:P(t,`system.telegram_bot_token`),chatId:P(t,`system.telegram_chat_id`),paymentNoticeEnabled:P(t,`system.telegram_payment_notice_enabled`)===`true`,abnormalNoticeEnabled:P(t,`system.telegram_abnormal_notice_enabled`)===`true`})},[e.data,n]);async function r(n){await N(t.mutateAsync,[{group:`system`,key:`system.telegram_bot_token`,type:`string`,value:n.botToken},{group:`system`,key:`system.telegram_chat_id`,type:`string`,value:n.chatId},{group:`system`,key:`system.telegram_payment_notice_enabled`,type:`bool`,value:String(n.paymentNoticeEnabled)},{group:`system`,key:`system.telegram_abnormal_notice_enabled`,type:`bool`,value:String(n.abnormalNoticeEnabled)}],m()),await e.refetch()}async function a(){await M(t.mutateAsync,[{group:`system`,key:`system.telegram_bot_token`,type:`string`,value:``},{group:`system`,key:`system.telegram_chat_id`,type:`string`,value:``},{group:`system`,key:`system.telegram_payment_notice_enabled`,type:`bool`,value:!1},{group:`system`,key:`system.telegram_abnormal_notice_enabled`,type:`bool`,value:!1}],o()),await e.refetch()}return(0,I.jsx)(D,{...n,children:(0,I.jsxs)(`form`,{className:`space-y-6`,onSubmit:n.handleSubmit(r),children:[(0,I.jsx)(S,{control:n.control,name:`botToken`,render:({field:e})=>(0,I.jsxs)(b,{children:[(0,I.jsx)(T,{children:f()}),(0,I.jsx)(w,{children:(0,I.jsx)(O,{...e})}),(0,I.jsx)(E,{})]})}),(0,I.jsx)(S,{control:n.control,name:`chatId`,render:({field:e})=>(0,I.jsxs)(b,{children:[(0,I.jsx)(T,{children:i()}),(0,I.jsx)(w,{children:(0,I.jsx)(O,{...e})}),(0,I.jsx)(E,{})]})}),(0,I.jsx)(S,{control:n.control,name:`paymentNoticeEnabled`,render:({field:e})=>(0,I.jsxs)(b,{className:`flex items-center justify-between rounded-lg border p-3`,children:[(0,I.jsx)(T,{children:s()}),(0,I.jsx)(w,{children:(0,I.jsx)(g,{checked:e.value,onCheckedChange:e.onChange})})]})}),(0,I.jsx)(S,{control:n.control,name:`abnormalNoticeEnabled`,render:({field:e})=>(0,I.jsxs)(b,{className:`flex items-center justify-between rounded-lg border p-3`,children:[(0,I.jsx)(T,{children:c()}),(0,I.jsx)(w,{children:(0,I.jsx)(g,{checked:e.value,onCheckedChange:e.onChange})})]})}),(0,I.jsxs)(`div`,{className:`flex gap-2`,children:[(0,I.jsx)(h,{disabled:t.isPending||e.isLoading,type:`submit`,children:l()}),(0,I.jsx)(h,{disabled:t.isPending,onClick:a,type:`button`,variant:`outline`,children:u()})]})]})})}function z(){return(0,I.jsx)(k,{description:r(),title:n(),variant:`section`,children:(0,I.jsx)(R,{})})}var B=z;export{B as component}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{Ff as n,Sr as r,_r as i,br as a,fr as o,gr as s,hr as c,mr as l,pr as u,tm as d,vr as f,xr as p,yr as m}from"./messages-CL4J6BaJ.js";import{t as h}from"./button-NLSeBFht.js";import{t as g}from"./switch-BST3z-JX.js";import{a as _,c as v,s as y}from"./zod-rwFXxHlg.js";import{a as b,c as x,i as S,l as C,n as w,o as T,s as E,t as D}from"./form-C_YekIvK.js";import{t as O}from"./input-DAqep8ZY.js";import{t as k}from"./page-header-B7O10aw9.js";import{a as A,i as j,n as M,r as N,t as P}from"./lib-Ku8Lh36m.js";var F=e(t(),1),I=d(),L=y({botToken:v().min(1,p()),chatId:v().min(1,a()),paymentNoticeEnabled:_(),abnormalNoticeEnabled:_()});function R(){let e=j(`system`),t=A(),n=C({resolver:x(L),defaultValues:{botToken:``,chatId:``,paymentNoticeEnabled:!1,abnormalNoticeEnabled:!1}});(0,F.useEffect)(()=>{let t=e.data?.data;t&&n.reset({botToken:P(t,`system.telegram_bot_token`),chatId:P(t,`system.telegram_chat_id`),paymentNoticeEnabled:P(t,`system.telegram_payment_notice_enabled`)===`true`,abnormalNoticeEnabled:P(t,`system.telegram_abnormal_notice_enabled`)===`true`})},[e.data,n]);async function r(n){await N(t.mutateAsync,[{group:`system`,key:`system.telegram_bot_token`,type:`string`,value:n.botToken},{group:`system`,key:`system.telegram_chat_id`,type:`string`,value:n.chatId},{group:`system`,key:`system.telegram_payment_notice_enabled`,type:`bool`,value:String(n.paymentNoticeEnabled)},{group:`system`,key:`system.telegram_abnormal_notice_enabled`,type:`bool`,value:String(n.abnormalNoticeEnabled)}],m()),await e.refetch()}async function a(){await M(t.mutateAsync,[{group:`system`,key:`system.telegram_bot_token`,type:`string`,value:``},{group:`system`,key:`system.telegram_chat_id`,type:`string`,value:``},{group:`system`,key:`system.telegram_payment_notice_enabled`,type:`bool`,value:!1},{group:`system`,key:`system.telegram_abnormal_notice_enabled`,type:`bool`,value:!1}],o()),await e.refetch()}return(0,I.jsx)(D,{...n,children:(0,I.jsxs)(`form`,{className:`space-y-6`,onSubmit:n.handleSubmit(r),children:[(0,I.jsx)(S,{control:n.control,name:`botToken`,render:({field:e})=>(0,I.jsxs)(b,{children:[(0,I.jsx)(T,{children:f()}),(0,I.jsx)(w,{children:(0,I.jsx)(O,{...e})}),(0,I.jsx)(E,{})]})}),(0,I.jsx)(S,{control:n.control,name:`chatId`,render:({field:e})=>(0,I.jsxs)(b,{children:[(0,I.jsx)(T,{children:i()}),(0,I.jsx)(w,{children:(0,I.jsx)(O,{...e})}),(0,I.jsx)(E,{})]})}),(0,I.jsx)(S,{control:n.control,name:`paymentNoticeEnabled`,render:({field:e})=>(0,I.jsxs)(b,{className:`flex items-center justify-between rounded-lg border p-3`,children:[(0,I.jsx)(T,{children:s()}),(0,I.jsx)(w,{children:(0,I.jsx)(g,{checked:e.value,onCheckedChange:e.onChange})})]})}),(0,I.jsx)(S,{control:n.control,name:`abnormalNoticeEnabled`,render:({field:e})=>(0,I.jsxs)(b,{className:`flex items-center justify-between rounded-lg border p-3`,children:[(0,I.jsx)(T,{children:c()}),(0,I.jsx)(w,{children:(0,I.jsx)(g,{checked:e.value,onCheckedChange:e.onChange})})]})}),(0,I.jsxs)(`div`,{className:`flex gap-2`,children:[(0,I.jsx)(h,{disabled:t.isPending||e.isLoading,type:`submit`,children:l()}),(0,I.jsx)(h,{disabled:t.isPending,onClick:a,type:`button`,variant:`outline`,children:u()})]})]})})}function z(){return(0,I.jsx)(k,{description:r(),title:n(),variant:`section`,children:(0,I.jsx)(R,{})})}var B=z;export{B as component}; \ No newline at end of file diff --git a/src/www/assets/textarea-C8ejjLzk.js b/src/www/assets/textarea-G_CiBcLa.js similarity index 80% rename from src/www/assets/textarea-C8ejjLzk.js rename to src/www/assets/textarea-G_CiBcLa.js index f92e250..e7c8b74 100644 --- a/src/www/assets/textarea-C8ejjLzk.js +++ b/src/www/assets/textarea-G_CiBcLa.js @@ -1 +1 @@ -import{tm as e}from"./messages-BOatyqUm.js";import{i as t}from"./button-C_NDYaz8.js";var n=e();function r({className:e,...r}){return(0,n.jsx)(`textarea`,{className:t(`field-sizing-content flex min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs outline-none transition-[color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40`,e),"data-slot":`textarea`,...r})}export{r as t}; \ No newline at end of file +import{tm as e}from"./messages-CL4J6BaJ.js";import{i as t}from"./button-NLSeBFht.js";var n=e();function r({className:e,...r}){return(0,n.jsx)(`textarea`,{className:t(`field-sizing-content flex min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs outline-none transition-[color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40`,e),"data-slot":`textarea`,...r})}export{r as t}; \ No newline at end of file diff --git a/src/www/assets/theme-provider-BREWrHp_.js b/src/www/assets/theme-provider-ixHkEVGI.js similarity index 94% rename from src/www/assets/theme-provider-BREWrHp_.js rename to src/www/assets/theme-provider-ixHkEVGI.js index 2234734..b5339ba 100644 --- a/src/www/assets/theme-provider-BREWrHp_.js +++ b/src/www/assets/theme-provider-ixHkEVGI.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{n as r,r as i,t as a}from"./cookies-BzZOQYPw.js";var o=e(t(),1),s=n(),c=`system`,l=`theme`,u=3600*24*365,d=(0,o.createContext)({defaultTheme:c,resolvedTheme:`light`,theme:c,setTheme:()=>null,resetTheme:()=>null});function f({children:e,defaultTheme:t=c,storageKey:n=l,...f}){let[p,m]=(0,o.useState)(()=>a(n)||t),h=(0,o.useMemo)(()=>p===`system`?window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:p,[p]);return(0,o.useEffect)(()=>{let e=window.document.documentElement,t=window.matchMedia(`(prefers-color-scheme: dark)`),n=t=>{e.dataset.mode=t,e.style.colorScheme=t},r=()=>{p===`system`&&n(t.matches?`dark`:`light`)};return n(h),t.addEventListener(`change`,r),()=>t.removeEventListener(`change`,r)},[p,h]),(0,s.jsx)(d,{value:{defaultTheme:t,resolvedTheme:h,resetTheme:()=>{r(n),m(c)},theme:p,setTheme:e=>{i(n,e,u),m(e)}},...f,children:e})}var p=()=>{let e=(0,o.useContext)(d);if(!e)throw Error(`useTheme must be used within a ThemeProvider`);return e};export{p as n,f as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";import{n as r,r as i,t as a}from"./cookies-BzZOQYPw.js";var o=e(t(),1),s=n(),c=`system`,l=`theme`,u=3600*24*365,d=(0,o.createContext)({defaultTheme:c,resolvedTheme:`light`,theme:c,setTheme:()=>null,resetTheme:()=>null});function f({children:e,defaultTheme:t=c,storageKey:n=l,...f}){let[p,m]=(0,o.useState)(()=>a(n)||t),h=(0,o.useMemo)(()=>p===`system`?window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:p,[p]);return(0,o.useEffect)(()=>{let e=window.document.documentElement,t=window.matchMedia(`(prefers-color-scheme: dark)`),n=t=>{e.dataset.mode=t,e.style.colorScheme=t},r=()=>{p===`system`&&n(t.matches?`dark`:`light`)};return n(h),t.addEventListener(`change`,r),()=>t.removeEventListener(`change`,r)},[p,h]),(0,s.jsx)(d,{value:{defaultTheme:t,resolvedTheme:h,resetTheme:()=>{r(n),m(c)},theme:p,setTheme:e=>{i(n,e,u),m(e)}},...f,children:e})}var p=()=>{let e=(0,o.useContext)(d);if(!e)throw Error(`useTheme must be used within a ThemeProvider`);return e};export{p as n,f as t}; \ No newline at end of file diff --git a/src/www/assets/theme-switch-CHLQml_8.js b/src/www/assets/theme-switch-CdEcHkcU.js similarity index 91% rename from src/www/assets/theme-switch-CHLQml_8.js rename to src/www/assets/theme-switch-CdEcHkcU.js index a7f0020..5360407 100644 --- a/src/www/assets/theme-switch-CHLQml_8.js +++ b/src/www/assets/theme-switch-CdEcHkcU.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{$p as n,Bp as r,Gp as i,Hp as a,Qp as o,Up as s,Wp as c,em as l,tm as u}from"./messages-BOatyqUm.js";import{t as d}from"./useNavigate-7u4DX0Ho.js";import{r as f}from"./dist-Cc8_LDAq.js";import{i as p,t as m}from"./button-C_NDYaz8.js";import{a as h,l as g,r as _,t as v}from"./dropdown-menu-DzCIpsuG.js";import{n as y}from"./theme-provider-BREWrHp_.js";import{t as b}from"./createLucideIcon-Br0Bd5k2.js";import{t as x}from"./check-CHp0nSkR.js";import{n as S,t as C}from"./sun-JU8p4FoE.js";var w=b(`languages`,[[`path`,{d:`m5 8 6 6`,key:`1wu5hv`}],[`path`,{d:`m4 14 6-6 2-3`,key:`1k1g8d`}],[`path`,{d:`M2 5h12`,key:`or177f`}],[`path`,{d:`M7 2h1`,key:`1t2jsx`}],[`path`,{d:`m22 22-5-10-5 10`,key:`don7ne`}],[`path`,{d:`M14 18h6`,key:`1m8k6r`}]]),T=b(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),E=u(),D={"en-US":`English`,"ja-JP":`日本語`,"ko-KR":`한국어`,"ru-RU":`Русский`,"zh-TW":`繁體中文`,"zh-CN":`简体中文`},O={"en-US":`🇺🇸`,"ja-JP":`🇯🇵`,"ko-KR":`🇰🇷`,"ru-RU":`🇷🇺`,"zh-CN":`🇨🇳`,"zh-TW":`🇭🇰`};function k(){let e=d(),t=o(),i=n=>{n!==t&&(l(n,{reload:!1}),e({to:`.`,replace:!0,reloadDocument:!0}))};return(0,E.jsxs)(v,{modal:!1,children:[(0,E.jsx)(g,{asChild:!0,children:(0,E.jsxs)(m,{className:`scale-95 rounded-full`,size:`icon`,variant:`ghost`,children:[(0,E.jsx)(w,{className:`size-[1.2rem]`}),(0,E.jsx)(`span`,{className:`sr-only`,children:r()})]})}),(0,E.jsx)(_,{align:`end`,children:n.map(e=>(0,E.jsxs)(h,{onClick:()=>i(e),children:[(0,E.jsx)(`span`,{"aria-hidden":`true`,className:`w-5 text-center`,children:O[e]??`🌐`}),D[e]??e,(0,E.jsx)(x,{className:p(`ms-auto`,t!==e&&`hidden`),size:14})]},e))})]})}var A=e(t(),1),j=e(f(),1);function M(){let{resolvedTheme:e,theme:t,setTheme:n}=y();(0,A.useEffect)(()=>{let t=e===`dark`?`#020817`:`#fff`,n=document.querySelector(`meta[name='theme-color']`);n&&n.setAttribute(`content`,t)},[e]);let r=(e,r)=>{if(e===t)return;if(window.matchMedia(`(prefers-reduced-motion: reduce)`).matches||!(`startViewTransition`in document)){n(e);return}let i=r.clientX||window.innerWidth/2,a=r.clientY||window.innerHeight/2,o=Math.hypot(Math.max(i,window.innerWidth-i),Math.max(a,window.innerHeight-a));document.startViewTransition(()=>{(0,j.flushSync)(()=>n(e))}).ready.then(()=>{document.documentElement.animate({clipPath:[`circle(0px at ${i}px ${a}px)`,`circle(${o}px at ${i}px ${a}px)`]},{duration:500,easing:`cubic-bezier(.34,1.56,.64,1)`,pseudoElement:`::view-transition-new(root)`})})};return(0,E.jsxs)(v,{modal:!1,children:[(0,E.jsx)(g,{asChild:!0,children:(0,E.jsxs)(m,{className:`scale-95 rounded-full`,size:`icon`,variant:`ghost`,children:[(0,E.jsx)(C,{className:`size-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0`}),(0,E.jsx)(S,{className:`absolute size-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100`}),(0,E.jsx)(`span`,{className:`sr-only`,children:i()})]})}),(0,E.jsxs)(_,{align:`end`,children:[(0,E.jsxs)(h,{onClick:e=>r(`light`,e),children:[(0,E.jsx)(C,{className:`size-4`}),c(),` `,(0,E.jsx)(x,{className:p(`ms-auto`,t!==`light`&&`hidden`),size:14})]}),(0,E.jsxs)(h,{onClick:e=>r(`dark`,e),children:[(0,E.jsx)(S,{className:`size-4`}),s(),(0,E.jsx)(x,{className:p(`ms-auto`,t!==`dark`&&`hidden`),size:14})]}),(0,E.jsxs)(h,{onClick:e=>r(`system`,e),children:[(0,E.jsx)(T,{className:`size-4`}),a(),(0,E.jsx)(x,{className:p(`ms-auto`,t!==`system`&&`hidden`),size:14})]})]})]})}export{k as n,M as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{$p as n,Bp as r,Gp as i,Hp as a,Qp as o,Up as s,Wp as c,em as l,tm as u}from"./messages-CL4J6BaJ.js";import{t as d}from"./useNavigate-7u4DX0Ho.js";import{r as f}from"./dist-D3WFT-Yo.js";import{i as p,t as m}from"./button-NLSeBFht.js";import{a as h,l as g,r as _,t as v}from"./dropdown-menu-D72UcvWG.js";import{n as y}from"./theme-provider-ixHkEVGI.js";import{t as b}from"./createLucideIcon-Br0Bd5k2.js";import{t as x}from"./check-CHp0nSkR.js";import{n as S,t as C}from"./sun-JU8p4FoE.js";var w=b(`languages`,[[`path`,{d:`m5 8 6 6`,key:`1wu5hv`}],[`path`,{d:`m4 14 6-6 2-3`,key:`1k1g8d`}],[`path`,{d:`M2 5h12`,key:`or177f`}],[`path`,{d:`M7 2h1`,key:`1t2jsx`}],[`path`,{d:`m22 22-5-10-5 10`,key:`don7ne`}],[`path`,{d:`M14 18h6`,key:`1m8k6r`}]]),T=b(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),E=u(),D={"en-US":`English`,"ja-JP":`日本語`,"ko-KR":`한국어`,"ru-RU":`Русский`,"zh-TW":`繁體中文`,"zh-CN":`简体中文`},O={"en-US":`🇺🇸`,"ja-JP":`🇯🇵`,"ko-KR":`🇰🇷`,"ru-RU":`🇷🇺`,"zh-CN":`🇨🇳`,"zh-TW":`🇭🇰`};function k(){let e=d(),t=o(),i=n=>{n!==t&&(l(n,{reload:!1}),e({to:`.`,replace:!0,reloadDocument:!0}))};return(0,E.jsxs)(v,{modal:!1,children:[(0,E.jsx)(g,{asChild:!0,children:(0,E.jsxs)(m,{className:`scale-95 rounded-full`,size:`icon`,variant:`ghost`,children:[(0,E.jsx)(w,{className:`size-[1.2rem]`}),(0,E.jsx)(`span`,{className:`sr-only`,children:r()})]})}),(0,E.jsx)(_,{align:`end`,children:n.map(e=>(0,E.jsxs)(h,{onClick:()=>i(e),children:[(0,E.jsx)(`span`,{"aria-hidden":`true`,className:`w-5 text-center`,children:O[e]??`🌐`}),D[e]??e,(0,E.jsx)(x,{className:p(`ms-auto`,t!==e&&`hidden`),size:14})]},e))})]})}var A=e(t(),1),j=e(f(),1);function M(){let{resolvedTheme:e,theme:t,setTheme:n}=y();(0,A.useEffect)(()=>{let t=e===`dark`?`#020817`:`#fff`,n=document.querySelector(`meta[name='theme-color']`);n&&n.setAttribute(`content`,t)},[e]);let r=(e,r)=>{if(e===t)return;if(window.matchMedia(`(prefers-reduced-motion: reduce)`).matches||!(`startViewTransition`in document)){n(e);return}let i=r.clientX||window.innerWidth/2,a=r.clientY||window.innerHeight/2,o=Math.hypot(Math.max(i,window.innerWidth-i),Math.max(a,window.innerHeight-a));document.startViewTransition(()=>{(0,j.flushSync)(()=>n(e))}).ready.then(()=>{document.documentElement.animate({clipPath:[`circle(0px at ${i}px ${a}px)`,`circle(${o}px at ${i}px ${a}px)`]},{duration:500,easing:`cubic-bezier(.34,1.56,.64,1)`,pseudoElement:`::view-transition-new(root)`})})};return(0,E.jsxs)(v,{modal:!1,children:[(0,E.jsx)(g,{asChild:!0,children:(0,E.jsxs)(m,{className:`scale-95 rounded-full`,size:`icon`,variant:`ghost`,children:[(0,E.jsx)(C,{className:`size-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0`}),(0,E.jsx)(S,{className:`absolute size-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100`}),(0,E.jsx)(`span`,{className:`sr-only`,children:i()})]})}),(0,E.jsxs)(_,{align:`end`,children:[(0,E.jsxs)(h,{onClick:e=>r(`light`,e),children:[(0,E.jsx)(C,{className:`size-4`}),c(),` `,(0,E.jsx)(x,{className:p(`ms-auto`,t!==`light`&&`hidden`),size:14})]}),(0,E.jsxs)(h,{onClick:e=>r(`dark`,e),children:[(0,E.jsx)(S,{className:`size-4`}),s(),(0,E.jsx)(x,{className:p(`ms-auto`,t!==`dark`&&`hidden`),size:14})]}),(0,E.jsxs)(h,{onClick:e=>r(`system`,e),children:[(0,E.jsx)(T,{className:`size-4`}),a(),(0,E.jsx)(x,{className:p(`ms-auto`,t!==`system`&&`hidden`),size:14})]})]})]})}export{k as n,M as t}; \ No newline at end of file diff --git a/src/www/assets/tooltip-xZuTTfnF.js b/src/www/assets/tooltip-QxnX5RKP.js similarity index 94% rename from src/www/assets/tooltip-xZuTTfnF.js rename to src/www/assets/tooltip-QxnX5RKP.js index e16dddd..33a5135 100644 --- a/src/www/assets/tooltip-xZuTTfnF.js +++ b/src/www/assets/tooltip-QxnX5RKP.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./dist-Cc8_LDAq.js";import{c as i,i as a,u as o}from"./button-C_NDYaz8.js";import{t as s}from"./dist-Dtn5c_cx.js";import{a as c,r as l,t as u}from"./dist-DPPquN_M.js";import{t as d}from"./dist-DvwKOQ8R.js";import{n as f}from"./dist-D4X8zGEB.js";import{n as p,t as m}from"./dist-rcWP-8Cu.js";import{a as h,i as g,n as _,r as v,t as y}from"./dist-CsIb2aLK.js";var b=e(t(),1),x=n(),[S,C]=c(`Tooltip`,[h]),w=h(),T=`TooltipProvider`,E=700,D=`tooltip.open`,[O,k]=S(T),A=e=>{let{__scopeTooltip:t,delayDuration:n=E,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=b.useRef(!0),s=b.useRef(!1),c=b.useRef(0);return b.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,x.jsx)(O,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:b.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:b.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:b.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};A.displayName=T;var j=`Tooltip`,[M,N]=S(j),P=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=k(j,e.__scopeTooltip),l=w(t),[d,p]=b.useState(null),m=f(),h=b.useRef(0),_=o??c.disableHoverableContent,v=s??c.delayDuration,y=b.useRef(!1),[S,C]=u({prop:r,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(D))):c.onClose(),a?.(e)},caller:j}),T=b.useMemo(()=>S?y.current?`delayed-open`:`instant-open`:`closed`,[S]),E=b.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y.current=!1,C(!0)},[C]),O=b.useCallback(()=>{window.clearTimeout(h.current),h.current=0,C(!1)},[C]),A=b.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{y.current=!0,C(!0),h.current=0},v)},[v,C]);return b.useEffect(()=>()=>{h.current&&=(window.clearTimeout(h.current),0)},[]),(0,x.jsx)(g,{...l,children:(0,x.jsx)(M,{scope:t,contentId:m,open:S,stateAttribute:T,trigger:d,onTriggerChange:p,onTriggerEnter:b.useCallback(()=>{c.isOpenDelayedRef.current?A():E()},[c.isOpenDelayedRef,A,E]),onTriggerLeave:b.useCallback(()=>{_?O():(window.clearTimeout(h.current),h.current=0)},[O,_]),onOpen:E,onClose:O,disableHoverableContent:_,children:n})})};P.displayName=j;var F=`TooltipTrigger`,I=b.forwardRef((e,t)=>{let{__scopeTooltip:n,...i}=e,a=N(F,n),s=k(F,n),c=w(n),u=o(t,b.useRef(null),a.onTriggerChange),d=b.useRef(!1),f=b.useRef(!1),p=b.useCallback(()=>d.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener(`pointerup`,p),[p]),(0,x.jsx)(y,{asChild:!0,...c,children:(0,x.jsx)(r.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...i,ref:u,onPointerMove:l(e.onPointerMove,e=>{e.pointerType!==`touch`&&!f.current&&!s.isPointerInTransitRef.current&&(a.onTriggerEnter(),f.current=!0)}),onPointerLeave:l(e.onPointerLeave,()=>{a.onTriggerLeave(),f.current=!1}),onPointerDown:l(e.onPointerDown,()=>{a.open&&a.onClose(),d.current=!0,document.addEventListener(`pointerup`,p,{once:!0})}),onFocus:l(e.onFocus,()=>{d.current||a.onOpen()}),onBlur:l(e.onBlur,a.onClose),onClick:l(e.onClick,a.onClose)})})});I.displayName=F;var L=`TooltipPortal`,[ee,R]=S(L,{forceMount:void 0}),z=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=N(L,t);return(0,x.jsx)(ee,{scope:t,forceMount:n,children:(0,x.jsx)(d,{present:n||a.open,children:(0,x.jsx)(m,{asChild:!0,container:i,children:r})})})};z.displayName=L;var B=`TooltipContent`,V=b.forwardRef((e,t)=>{let n=R(B,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=N(B,e.__scopeTooltip);return(0,x.jsx)(d,{present:r||o.open,children:o.disableHoverableContent?(0,x.jsx)(K,{side:i,...a,ref:t}):(0,x.jsx)(H,{side:i,...a,ref:t})})}),H=b.forwardRef((e,t)=>{let n=N(B,e.__scopeTooltip),r=k(B,e.__scopeTooltip),i=b.useRef(null),a=o(t,i),[s,c]=b.useState(null),{trigger:l,onClose:u}=n,d=i.current,{onPointerInTransitChange:f}=r,p=b.useCallback(()=>{c(null),f(!1)},[f]),m=b.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=X(r,Y(r,n.getBoundingClientRect())),a=Z(t.getBoundingClientRect());c(te([...i,...a])),f(!0)},[f]);return b.useEffect(()=>()=>p(),[p]),b.useEffect(()=>{if(l&&d){let e=e=>m(e,d),t=e=>m(e,l);return l.addEventListener(`pointerleave`,e),d.addEventListener(`pointerleave`,t),()=>{l.removeEventListener(`pointerleave`,e),d.removeEventListener(`pointerleave`,t)}}},[l,d,m,p]),b.useEffect(()=>{if(s){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=l?.contains(t)||d?.contains(t),i=!Q(n,s);r?p():i&&(p(),u())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[l,d,s,u,p]),(0,x.jsx)(K,{...e,ref:a})}),[U,W]=S(j,{isInside:!1}),G=i(`TooltipContent`),K=b.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...c}=e,l=N(B,n),u=w(n),{onClose:d}=l;return b.useEffect(()=>(document.addEventListener(D,d),()=>document.removeEventListener(D,d)),[d]),b.useEffect(()=>{if(l.trigger){let e=e=>{e.target?.contains(l.trigger)&&d()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[l.trigger,d]),(0,x.jsx)(p,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,x.jsxs)(v,{"data-state":l.stateAttribute,...u,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,x.jsx)(G,{children:r}),(0,x.jsx)(U,{scope:n,isInside:!0,children:(0,x.jsx)(s,{id:l.contentId,role:`tooltip`,children:i||r})})]})})});V.displayName=B;var q=`TooltipArrow`,J=b.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=w(n);return W(q,n).isInside?null:(0,x.jsx)(_,{...i,...r,ref:t})});J.displayName=q;function Y(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function X(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Z(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function Q(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function te(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y)),ne(t)}function ne(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var re=A,ie=P,ae=I,oe=z,$=V,se=J;function ce({delayDuration:e=0,...t}){return(0,x.jsx)(re,{"data-slot":`tooltip-provider`,delayDuration:e,...t})}function le({...e}){return(0,x.jsx)(ie,{"data-slot":`tooltip`,...e})}function ue({...e}){return(0,x.jsx)(ae,{"data-slot":`tooltip-trigger`,...e})}function de({className:e,sideOffset:t=0,children:n,...r}){return(0,x.jsx)(oe,{children:(0,x.jsxs)($,{className:a(`fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in text-balance rounded-md bg-foreground px-3 py-1.5 text-background text-xs data-[state=closed]:animate-out`,e),"data-slot":`tooltip-content`,sideOffset:t,...r,children:[n,(0,x.jsx)(se,{className:`z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground`})]})})}export{ue as i,de as n,ce as r,le as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";import{t as r}from"./dist-D3WFT-Yo.js";import{c as i,i as a,u as o}from"./button-NLSeBFht.js";import{t as s}from"./dist-CjidLXaw.js";import{a as c,r as l,t as u}from"./dist-DmeeHi7K.js";import{t as d}from"./dist-BZMqLvO-.js";import{n as f}from"./dist-SR6sl-WU.js";import{n as p,t as m}from"./dist-esC74fSg.js";import{a as h,i as g,n as _,r as v,t as y}from"./dist-DB-jLX48.js";var b=e(t(),1),x=n(),[S,C]=c(`Tooltip`,[h]),w=h(),T=`TooltipProvider`,E=700,D=`tooltip.open`,[O,k]=S(T),A=e=>{let{__scopeTooltip:t,delayDuration:n=E,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=b.useRef(!0),s=b.useRef(!1),c=b.useRef(0);return b.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,x.jsx)(O,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:b.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:b.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:b.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};A.displayName=T;var j=`Tooltip`,[M,N]=S(j),P=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=k(j,e.__scopeTooltip),l=w(t),[d,p]=b.useState(null),m=f(),h=b.useRef(0),_=o??c.disableHoverableContent,v=s??c.delayDuration,y=b.useRef(!1),[S,C]=u({prop:r,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(D))):c.onClose(),a?.(e)},caller:j}),T=b.useMemo(()=>S?y.current?`delayed-open`:`instant-open`:`closed`,[S]),E=b.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y.current=!1,C(!0)},[C]),O=b.useCallback(()=>{window.clearTimeout(h.current),h.current=0,C(!1)},[C]),A=b.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{y.current=!0,C(!0),h.current=0},v)},[v,C]);return b.useEffect(()=>()=>{h.current&&=(window.clearTimeout(h.current),0)},[]),(0,x.jsx)(g,{...l,children:(0,x.jsx)(M,{scope:t,contentId:m,open:S,stateAttribute:T,trigger:d,onTriggerChange:p,onTriggerEnter:b.useCallback(()=>{c.isOpenDelayedRef.current?A():E()},[c.isOpenDelayedRef,A,E]),onTriggerLeave:b.useCallback(()=>{_?O():(window.clearTimeout(h.current),h.current=0)},[O,_]),onOpen:E,onClose:O,disableHoverableContent:_,children:n})})};P.displayName=j;var F=`TooltipTrigger`,I=b.forwardRef((e,t)=>{let{__scopeTooltip:n,...i}=e,a=N(F,n),s=k(F,n),c=w(n),u=o(t,b.useRef(null),a.onTriggerChange),d=b.useRef(!1),f=b.useRef(!1),p=b.useCallback(()=>d.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener(`pointerup`,p),[p]),(0,x.jsx)(y,{asChild:!0,...c,children:(0,x.jsx)(r.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...i,ref:u,onPointerMove:l(e.onPointerMove,e=>{e.pointerType!==`touch`&&!f.current&&!s.isPointerInTransitRef.current&&(a.onTriggerEnter(),f.current=!0)}),onPointerLeave:l(e.onPointerLeave,()=>{a.onTriggerLeave(),f.current=!1}),onPointerDown:l(e.onPointerDown,()=>{a.open&&a.onClose(),d.current=!0,document.addEventListener(`pointerup`,p,{once:!0})}),onFocus:l(e.onFocus,()=>{d.current||a.onOpen()}),onBlur:l(e.onBlur,a.onClose),onClick:l(e.onClick,a.onClose)})})});I.displayName=F;var L=`TooltipPortal`,[ee,R]=S(L,{forceMount:void 0}),z=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=N(L,t);return(0,x.jsx)(ee,{scope:t,forceMount:n,children:(0,x.jsx)(d,{present:n||a.open,children:(0,x.jsx)(m,{asChild:!0,container:i,children:r})})})};z.displayName=L;var B=`TooltipContent`,V=b.forwardRef((e,t)=>{let n=R(B,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=N(B,e.__scopeTooltip);return(0,x.jsx)(d,{present:r||o.open,children:o.disableHoverableContent?(0,x.jsx)(K,{side:i,...a,ref:t}):(0,x.jsx)(H,{side:i,...a,ref:t})})}),H=b.forwardRef((e,t)=>{let n=N(B,e.__scopeTooltip),r=k(B,e.__scopeTooltip),i=b.useRef(null),a=o(t,i),[s,c]=b.useState(null),{trigger:l,onClose:u}=n,d=i.current,{onPointerInTransitChange:f}=r,p=b.useCallback(()=>{c(null),f(!1)},[f]),m=b.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=X(r,Y(r,n.getBoundingClientRect())),a=Z(t.getBoundingClientRect());c(te([...i,...a])),f(!0)},[f]);return b.useEffect(()=>()=>p(),[p]),b.useEffect(()=>{if(l&&d){let e=e=>m(e,d),t=e=>m(e,l);return l.addEventListener(`pointerleave`,e),d.addEventListener(`pointerleave`,t),()=>{l.removeEventListener(`pointerleave`,e),d.removeEventListener(`pointerleave`,t)}}},[l,d,m,p]),b.useEffect(()=>{if(s){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=l?.contains(t)||d?.contains(t),i=!Q(n,s);r?p():i&&(p(),u())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[l,d,s,u,p]),(0,x.jsx)(K,{...e,ref:a})}),[U,W]=S(j,{isInside:!1}),G=i(`TooltipContent`),K=b.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...c}=e,l=N(B,n),u=w(n),{onClose:d}=l;return b.useEffect(()=>(document.addEventListener(D,d),()=>document.removeEventListener(D,d)),[d]),b.useEffect(()=>{if(l.trigger){let e=e=>{e.target?.contains(l.trigger)&&d()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[l.trigger,d]),(0,x.jsx)(p,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,x.jsxs)(v,{"data-state":l.stateAttribute,...u,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,x.jsx)(G,{children:r}),(0,x.jsx)(U,{scope:n,isInside:!0,children:(0,x.jsx)(s,{id:l.contentId,role:`tooltip`,children:i||r})})]})})});V.displayName=B;var q=`TooltipArrow`,J=b.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=w(n);return W(q,n).isInside?null:(0,x.jsx)(_,{...i,...r,ref:t})});J.displayName=q;function Y(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function X(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Z(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function Q(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;er!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function te(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y)),ne(t)}function ne(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var re=A,ie=P,ae=I,oe=z,$=V,se=J;function ce({delayDuration:e=0,...t}){return(0,x.jsx)(re,{"data-slot":`tooltip-provider`,delayDuration:e,...t})}function le({...e}){return(0,x.jsx)(ie,{"data-slot":`tooltip`,...e})}function ue({...e}){return(0,x.jsx)(ae,{"data-slot":`tooltip-trigger`,...e})}function de({className:e,sideOffset:t=0,children:n,...r}){return(0,x.jsx)(oe,{children:(0,x.jsxs)($,{className:a(`fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in text-balance rounded-md bg-foreground px-3 py-1.5 text-background text-xs data-[state=closed]:animate-out`,e),"data-slot":`tooltip-content`,sideOffset:t,...r,children:[n,(0,x.jsx)(se,{className:`z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground`})]})})}export{ue as i,de as n,ce as r,le as t}; \ No newline at end of file diff --git a/src/www/assets/unauthorized-error-CtrGmVOn.js b/src/www/assets/unauthorized-error-TaUhj35c.js similarity index 85% rename from src/www/assets/unauthorized-error-CtrGmVOn.js rename to src/www/assets/unauthorized-error-TaUhj35c.js index 0d7fb6f..3a72c3a 100644 --- a/src/www/assets/unauthorized-error-CtrGmVOn.js +++ b/src/www/assets/unauthorized-error-TaUhj35c.js @@ -1 +1 @@ -import{Dt as e,Et as t,Od as n,Ot as r,kd as i,tm as a}from"./messages-BOatyqUm.js";import{t as o}from"./useRouter-DtTm7XkK.js";import{t as s}from"./useNavigate-7u4DX0Ho.js";import{t as c}from"./button-C_NDYaz8.js";var l=a();function u(){let a=s(),{history:u}=o();return(0,l.jsx)(`div`,{className:`h-svh`,children:(0,l.jsxs)(`div`,{className:`m-auto flex h-full w-full flex-col items-center justify-center gap-2`,children:[(0,l.jsx)(`h1`,{className:`font-bold text-[7rem] leading-tight`,children:`401`}),(0,l.jsx)(`span`,{className:`font-medium`,children:r()}),(0,l.jsxs)(`p`,{className:`text-center text-muted-foreground`,children:[e(),` `,(0,l.jsx)(`br`,{}),t()]}),(0,l.jsxs)(`div`,{className:`mt-6 flex gap-4`,children:[(0,l.jsx)(c,{onClick:()=>u.go(-1),variant:`outline`,children:i()}),(0,l.jsx)(c,{onClick:()=>a({to:`/dashboard`}),children:n()})]})]})})}export{u as t}; \ No newline at end of file +import{Dt as e,Et as t,Od as n,Ot as r,kd as i,tm as a}from"./messages-CL4J6BaJ.js";import{t as o}from"./useRouter-DtTm7XkK.js";import{t as s}from"./useNavigate-7u4DX0Ho.js";import{t as c}from"./button-NLSeBFht.js";var l=a();function u(){let a=s(),{history:u}=o();return(0,l.jsx)(`div`,{className:`h-svh`,children:(0,l.jsxs)(`div`,{className:`m-auto flex h-full w-full flex-col items-center justify-center gap-2`,children:[(0,l.jsx)(`h1`,{className:`font-bold text-[7rem] leading-tight`,children:`401`}),(0,l.jsx)(`span`,{className:`font-medium`,children:r()}),(0,l.jsxs)(`p`,{className:`text-center text-muted-foreground`,children:[e(),` `,(0,l.jsx)(`br`,{}),t()]}),(0,l.jsxs)(`div`,{className:`mt-6 flex gap-4`,children:[(0,l.jsx)(c,{onClick:()=>u.go(-1),variant:`outline`,children:i()}),(0,l.jsx)(c,{onClick:()=>a({to:`/dashboard`}),children:n()})]})]})})}export{u as t}; \ No newline at end of file diff --git a/src/www/assets/wallet-CtiawGS1.js b/src/www/assets/wallet-Cdhl16hF.js similarity index 88% rename from src/www/assets/wallet-CtiawGS1.js rename to src/www/assets/wallet-Cdhl16hF.js index 54ce2ea..56d4041 100644 --- a/src/www/assets/wallet-CtiawGS1.js +++ b/src/www/assets/wallet-Cdhl16hF.js @@ -1 +1 @@ -import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-BOatyqUm.js";import{t as r}from"./dist-BNFQuJTu.js";import{n as i,r as a,t as o}from"./cookies-BzZOQYPw.js";import{t as s}from"./createLucideIcon-Br0Bd5k2.js";var c=e(t(),1),l=n(),u=`ltr`,d=`dir`,f=3600*24*365,p=(0,c.createContext)(null);function m({children:e}){let[t,n]=(0,c.useState)(()=>o(d)||u);return(0,c.useEffect)(()=>{document.documentElement.setAttribute(`dir`,t)},[t]),(0,l.jsx)(p,{value:{defaultDir:u,dir:t,setDir:e=>{n(e),a(d,e,f)},resetDir:()=>{n(u),i(d)}},children:(0,l.jsx)(r,{dir:t,children:e})})}function h(){let e=(0,c.useContext)(p);if(!e)throw Error(`useDirection must be used within a DirectionProvider`);return e}var g=s(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),_=s(`wallet`,[[`path`,{d:`M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1`,key:`18etb6`}],[`path`,{d:`M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4`,key:`xoc0q4`}]]);export{h as i,g as n,m as r,_ as t}; \ No newline at end of file +import{r as e}from"./chunk-DECur_0Z.js";import{t}from"./react-CO2uhaBc.js";import{tm as n}from"./messages-CL4J6BaJ.js";import{t as r}from"./dist-CGRahgI2.js";import{n as i,r as a,t as o}from"./cookies-BzZOQYPw.js";import{t as s}from"./createLucideIcon-Br0Bd5k2.js";var c=e(t(),1),l=n(),u=`ltr`,d=`dir`,f=3600*24*365,p=(0,c.createContext)(null);function m({children:e}){let[t,n]=(0,c.useState)(()=>o(d)||u);return(0,c.useEffect)(()=>{document.documentElement.setAttribute(`dir`,t)},[t]),(0,l.jsx)(p,{value:{defaultDir:u,dir:t,setDir:e=>{n(e),a(d,e,f)},resetDir:()=>{n(u),i(d)}},children:(0,l.jsx)(r,{dir:t,children:e})})}function h(){let e=(0,c.useContext)(p);if(!e)throw Error(`useDirection must be used within a DirectionProvider`);return e}var g=s(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),_=s(`wallet`,[[`path`,{d:`M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1`,key:`18etb6`}],[`path`,{d:`M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4`,key:`xoc0q4`}]]);export{h as i,g as n,m as r,_ as t}; \ No newline at end of file diff --git a/src/www/index.html b/src/www/index.html index 4cf3f03..3cf0fc7 100644 --- a/src/www/index.html +++ b/src/www/index.html @@ -155,54 +155,54 @@ content="GMPay 收款管理后台 - 多链 USDT 支付中间件管理面板" > - + - + - - - - - - - - - - - + + + + + + + + + + + - + - + - - + + - - + + - - - + + + - - - - - - - - + + + + + + + + diff --git a/src/www/sw.js b/src/www/sw.js index 9b4708f..793f985 100644 --- a/src/www/sw.js +++ b/src/www/sw.js @@ -1 +1 @@ -if(!self.define){let s,l={};const e=(e,r)=>(e=new URL(e+".js",r).href,l[e]||new Promise(l=>{if("document"in self){const s=document.createElement("script");s.src=e,s.onload=l,document.head.appendChild(s)}else s=e,importScripts(e),l()}).then(()=>{let s=l[e];if(!s)throw new Error(`Module ${e} didn’t register its module`);return s}));self.define=(r,n)=>{const i=s||("document"in self?document.currentScript.src:"")||location.href;if(l[i])return;let u={};const o=s=>e(s,i),t={module:{uri:i},exports:u,require:o};l[i]=Promise.all(r.map(s=>t[s]||o(s))).then(s=>(n(...s),u))}}define(["./workbox-004510d2"],function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"pwa-maskable-512x512.png",revision:"106b94c2eb0675579ae40309698f364c"},{url:"pwa-maskable-192x192.png",revision:"8befa0caebf24d2e0b01c36e01ab4bd7"},{url:"pwa-512x512.png",revision:"2fcf48a2ae4e95f6d7f4a6bc2cc42a63"},{url:"pwa-192x192.png",revision:"8bc372216f92e2f0e011daff55721ccb"},{url:"favicon.ico",revision:"abba9e0d76413fa735e878d17223cfcb"},{url:"favicon-32x32.png",revision:"0847a57e9d3ae134e314a1339af3516d"},{url:"favicon-16x16.png",revision:"3e5fdc64b0a41f498c177fb2dc89ec6a"},{url:"apple-touch-icon.png",revision:"f9c8240d0509320d85a82bd60a6b426f"},{url:"images/logo.png",revision:"fa701b6a1d714ecf4856df660055eb89"},{url:"assets/zod-rwFXxHlg.js",revision:null},{url:"assets/yaml.contribution-BN-iiJx2.js",revision:null},{url:"assets/yaml-Lx-4NZKN.js",revision:null},{url:"assets/with-selector-DBfssCrY.js",revision:null},{url:"assets/web-vitals-Cb5qXObG.js",revision:null},{url:"assets/wallet-CtiawGS1.js",revision:null},{url:"assets/useStore-CupyIEEP.js",revision:null},{url:"assets/useSearch-Diln-KYh.js",revision:null},{url:"assets/useRouterState-B2FPPjEe.js",revision:null},{url:"assets/useRouter-DtTm7XkK.js",revision:null},{url:"assets/useNavigate-7u4DX0Ho.js",revision:null},{url:"assets/use-table-url-state-DP0Y4QjR.js",revision:null},{url:"assets/unauthorized-error-CtrGmVOn.js",revision:null},{url:"assets/triangle-alert-DB5v_9sS.js",revision:null},{url:"assets/trash-2-9I8lAjeE.js",revision:null},{url:"assets/tooltip-xZuTTfnF.js",revision:null},{url:"assets/theme-switch-CHLQml_8.js",revision:null},{url:"assets/theme-provider-BREWrHp_.js",revision:null},{url:"assets/textarea-C8ejjLzk.js",revision:null},{url:"assets/telescope-DU0wiTDw.js",revision:null},{url:"assets/telegram-Br_DijOI.js",revision:null},{url:"assets/tabs-6Ep1KePr.js",revision:null},{url:"assets/table-9UOy2Vxt.js",revision:null},{url:"assets/system-CzKDOsCg.js",revision:null},{url:"assets/switch-CgoJjvdz.js",revision:null},{url:"assets/sun-JU8p4FoE.js",revision:null},{url:"assets/skeleton-CmDjDV1O.js",revision:null},{url:"assets/sign-in-_ux3l1kN.js",revision:null},{url:"assets/sidebar-nav-LZqaVZGH.js",revision:null},{url:"assets/show-submitted-data-BqZb-_Pf.js",revision:null},{url:"assets/shield-check-MAPDL1u8.js",revision:null},{url:"assets/settings-eRG1_Yuf.js",revision:null},{url:"assets/separator-CsUemQNs.js",revision:null},{url:"assets/send-BNvceEpO.js",revision:null},{url:"assets/select-CzebumOF.js",revision:null},{url:"assets/search-provider-C-_FQI9C.js",revision:null},{url:"assets/rpc-D7fjJcmI.js",revision:null},{url:"assets/routes-D7HD5c-e.js",revision:null},{url:"assets/router-Z0tUklFK.js",revision:null},{url:"assets/route-wzPKSRj2.js",revision:null},{url:"assets/route-lp7ScXTd.js",revision:null},{url:"assets/route-GrVEK0V1.js",revision:null},{url:"assets/route-DvJeidrw.js",revision:null},{url:"assets/route-D1gzbhTf.js",revision:null},{url:"assets/route-CAiA_U_q.js",revision:null},{url:"assets/route-C6USHQDN.js",revision:null},{url:"assets/redirect-DMNGvjzO.js",revision:null},{url:"assets/react-CO2uhaBc.js",revision:null},{url:"assets/radio-group-D2rceepu.js",revision:null},{url:"assets/preload-helper-DoS0eHac.js",revision:null},{url:"assets/popover-NQZzcPDh.js",revision:null},{url:"assets/payment-setup-BFIKIu1u.js",revision:null},{url:"assets/pay-BNu4n_oI.js",revision:null},{url:"assets/password-input-95hMTMdh.js",revision:null},{url:"assets/password-DElKXGVw.js",revision:null},{url:"assets/page-header-GTtyZFBB.js",revision:null},{url:"assets/orders-oloW11KP.js",revision:null},{url:"assets/okpay-D5pTA_4W.js",revision:null},{url:"assets/nunito-vietnamese-wght-normal-U01xdrZh.woff2",revision:null},{url:"assets/nunito-latin-wght-normal-BzFMHfZw.woff2",revision:null},{url:"assets/nunito-latin-ext-wght-normal-CXYtwYOx.woff2",revision:null},{url:"assets/nunito-cyrillic-wght-normal-CY6AOgYE.woff2",revision:null},{url:"assets/nunito-cyrillic-ext-wght-normal-D4X5GqEv.woff2",revision:null},{url:"assets/noto-sans-vietnamese-wght-normal-DLTJy58D.woff2",revision:null},{url:"assets/noto-sans-latin-wght-normal-BYSzYMf3.woff2",revision:null},{url:"assets/noto-sans-latin-ext-wght-normal-W1qJv59z.woff2",revision:null},{url:"assets/noto-sans-greek-wght-normal-Ymb6dZNd.woff2",revision:null},{url:"assets/noto-sans-greek-ext-wght-normal-12T8GTDR.woff2",revision:null},{url:"assets/noto-sans-devanagari-wght-normal-Cv-Vwajv.woff2",revision:null},{url:"assets/noto-sans-cyrillic-wght-normal-B2hlT84T.woff2",revision:null},{url:"assets/noto-sans-cyrillic-ext-wght-normal-DSNfmdVt.woff2",revision:null},{url:"assets/notifications-xdKOW8nn.js",revision:null},{url:"assets/not-found-error-BvJzTnw0.js",revision:null},{url:"assets/monaco.contribution-BNCqMH44.js",revision:null},{url:"assets/messages-BOatyqUm.js",revision:null},{url:"assets/matchContext-BFCdcHzo.js",revision:null},{url:"assets/markdown.contribution-FtzundBn.js",revision:null},{url:"assets/markdown-rghzeErz.js",revision:null},{url:"assets/manrope-vietnamese-wght-normal-usUDDRr7.woff2",revision:null},{url:"assets/manrope-latin-wght-normal-DHIcAJRg.woff2",revision:null},{url:"assets/manrope-latin-ext-wght-normal-Ch3YOpNY.woff2",revision:null},{url:"assets/manrope-greek-wght-normal-DL7QRZyv.woff2",revision:null},{url:"assets/manrope-cyrillic-wght-normal-Dvxsihut.woff2",revision:null},{url:"assets/maintenance-error-DeZhljU8.js",revision:null},{url:"assets/main-C1R3Hvq1.js",revision:null},{url:"assets/long-text-DNqlDi0R.js",revision:null},{url:"assets/logo-agrtpj2n.js",revision:null},{url:"assets/loader-circle-DpEz1fQv.js",revision:null},{url:"assets/link-DPnL8P5J.js",revision:null},{url:"assets/lib-DDezYSnW.js",revision:null},{url:"assets/lazyRouteComponent-JF8ipq5d.js",revision:null},{url:"assets/labels-Cbc2zlmv.js",revision:null},{url:"assets/label-DNL0sHKL.js",revision:null},{url:"assets/keys-D0eVvlbn.js",revision:null},{url:"assets/jsonMode-DjuQ1ZC5.js",revision:null},{url:"assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2",revision:null},{url:"assets/inter-latin-wght-normal-Dx4kXJAl.woff2",revision:null},{url:"assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2",revision:null},{url:"assets/inter-greek-wght-normal-CkhJZR-_.woff2",revision:null},{url:"assets/inter-greek-ext-wght-normal-DlzME5K_.woff2",revision:null},{url:"assets/inter-cyrillic-wght-normal-DqGufNeO.woff2",revision:null},{url:"assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2",revision:null},{url:"assets/integrations-Clnk2I57.js",revision:null},{url:"assets/install-_AmBcHKu.js",revision:null},{url:"assets/input-8zzM34r5.js",revision:null},{url:"assets/index-CSgdIpTt.css",revision:null},{url:"assets/index-Bhi1y2zc.js",revision:null},{url:"assets/html.contribution-Baf-XjFx.js",revision:null},{url:"assets/html-Dtt1eLDu.js",revision:null},{url:"assets/help-Bq6Uj7UY.js",revision:null},{url:"assets/header-DVAsq5d6.js",revision:null},{url:"assets/handlebars-d5Fb_oR7.js",revision:null},{url:"assets/go.contribution-BmlX-a-9.js",revision:null},{url:"assets/go-leGpQeN8.js",revision:null},{url:"assets/general-error-BoAB2alm.js",revision:null},{url:"assets/form-KfFEakes.js",revision:null},{url:"assets/forbidden-CgQyYxDt.js",revision:null},{url:"assets/font-provider-BPsIRWbb.js",revision:null},{url:"assets/eye-off-B8hO0oST.js",revision:null},{url:"assets/eye-DAKGLydt.js",revision:null},{url:"assets/es2015-DT8UeWzs.js",revision:null},{url:"assets/es-fZtL7B9U.js",revision:null},{url:"assets/es-Ddhai3Z6.css",revision:null},{url:"assets/epusdt-BvGYu9TV.js",revision:null},{url:"assets/epay-BPdlNSqh.js",revision:null},{url:"assets/empty-state-CxE4wU3V.js",revision:null},{url:"assets/ellipsis-74ly4-Wm.js",revision:null},{url:"assets/dropdown-menu-DzCIpsuG.js",revision:null},{url:"assets/download-fYUtNZ3R.js",revision:null},{url:"assets/dist-rcWP-8Cu.js",revision:null},{url:"assets/dist-iiotRAEO.js",revision:null},{url:"assets/dist-ZdRQQNeu.js",revision:null},{url:"assets/dist-JOUh6qvR.js",revision:null},{url:"assets/dist-DvwKOQ8R.js",revision:null},{url:"assets/dist-Dtn5c_cx.js",revision:null},{url:"assets/dist-DPPquN_M.js",revision:null},{url:"assets/dist-D4X8zGEB.js",revision:null},{url:"assets/dist-D0DoWChj.js",revision:null},{url:"assets/dist-CsIb2aLK.js",revision:null},{url:"assets/dist-Cc8_LDAq.js",revision:null},{url:"assets/dist-CRowTfGU.js",revision:null},{url:"assets/dist-CHFjpVqk.js",revision:null},{url:"assets/dist-C5heX0fx.js",revision:null},{url:"assets/dist-BixeH3nX.js",revision:null},{url:"assets/dist-BNFQuJTu.js",revision:null},{url:"assets/display-CqGwMVHS.js",revision:null},{url:"assets/dialog-CZ-2RPb-.js",revision:null},{url:"assets/data-table-1LQSBhN2.js",revision:null},{url:"assets/dashboard-C_GaAVh0.js",revision:null},{url:"assets/crypto-icon-DnliVYVs.js",revision:null},{url:"assets/createLucideIcon-Br0Bd5k2.js",revision:null},{url:"assets/copy-to-clipboard-C1tj4a8X.js",revision:null},{url:"assets/cookies-BzZOQYPw.js",revision:null},{url:"assets/confirm-dialog-D1L-0EhT.js",revision:null},{url:"assets/command-B_SlhXkX.js",revision:null},{url:"assets/coming-soon-dialog-B34F88bO.js",revision:null},{url:"assets/clsx-D9aGYY3V.js",revision:null},{url:"assets/chunk-DECur_0Z.js",revision:null},{url:"assets/chevrons-up-down-BPquKoYJ.js",revision:null},{url:"assets/chevron-down-BB5h1CsX.js",revision:null},{url:"assets/checkout-model-CQ3aqlob.js",revision:null},{url:"assets/checkbox-CTHgcB3t.js",revision:null},{url:"assets/check-CHp0nSkR.js",revision:null},{url:"assets/chains-store-DCzO87jZ.js",revision:null},{url:"assets/chains-BMgOL_QE.js",revision:null},{url:"assets/card-DiF5YaRi.js",revision:null},{url:"assets/button-C_NDYaz8.js",revision:null},{url:"assets/badge-VJlwwTW5.js",revision:null},{url:"assets/auth-store-De4Y7PFV.js",revision:null},{url:"assets/auth-animation-context-CmPA3sF3.js",revision:null},{url:"assets/atom-DQpaPCwp.js",revision:null},{url:"assets/arrow-left-right-CcCrkQiR.js",revision:null},{url:"assets/arrow-left-BpZwGREZ.js",revision:null},{url:"assets/appearance-Cl8fvRSv.js",revision:null},{url:"assets/addresses-lQocmp_u.js",revision:null},{url:"assets/_trade_id-DIf2n6tl.js",revision:null},{url:"assets/_trade_id-CrABgEyD.js",revision:null},{url:"assets/_error-CtV7sHbI.js",revision:null},{url:"assets/_error-BWjxg4aC.js",revision:null},{url:"assets/_.contribution-CaUqztrQ.js",revision:null},{url:"assets/Matches-9qnXJNrS.js",revision:null},{url:"assets/Match-DrG03Wse.js",revision:null},{url:"assets/ClientOnly-Bj5CESUC.js",revision:null},{url:"assets/503-DqC0HW48.js",revision:null},{url:"assets/500-Ch8AmacC.js",revision:null},{url:"assets/404-pq4P7jD8.js",revision:null},{url:"assets/403-DfLmRqHM.js",revision:null},{url:"assets/401-CvFvdOr5.js",revision:null},{url:"apple-touch-icon.png",revision:"f9c8240d0509320d85a82bd60a6b426f"},{url:"favicon.ico",revision:"abba9e0d76413fa735e878d17223cfcb"},{url:"pwa-192x192.png",revision:"8bc372216f92e2f0e011daff55721ccb"},{url:"pwa-512x512.png",revision:"2fcf48a2ae4e95f6d7f4a6bc2cc42a63"},{url:"pwa-maskable-192x192.png",revision:"8befa0caebf24d2e0b01c36e01ab4bd7"},{url:"pwa-maskable-512x512.png",revision:"106b94c2eb0675579ae40309698f364c"},{url:"robots.txt",revision:"fa1ded1ed7c11438a9b0385b1e112850"},{url:"images/logo.png",revision:"fa701b6a1d714ecf4856df660055eb89"},{url:"manifest.webmanifest",revision:"8d2924aafc68495c2adffcd2b8cff2c1"}],{}),s.cleanupOutdatedCaches()}); +if(!self.define){let s,l={};const e=(e,r)=>(e=new URL(e+".js",r).href,l[e]||new Promise(l=>{if("document"in self){const s=document.createElement("script");s.src=e,s.onload=l,document.head.appendChild(s)}else s=e,importScripts(e),l()}).then(()=>{let s=l[e];if(!s)throw new Error(`Module ${e} didn’t register its module`);return s}));self.define=(r,n)=>{const i=s||("document"in self?document.currentScript.src:"")||location.href;if(l[i])return;let u={};const o=s=>e(s,i),t={module:{uri:i},exports:u,require:o};l[i]=Promise.all(r.map(s=>t[s]||o(s))).then(s=>(n(...s),u))}}define(["./workbox-004510d2"],function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"pwa-maskable-512x512.png",revision:"106b94c2eb0675579ae40309698f364c"},{url:"pwa-maskable-192x192.png",revision:"8befa0caebf24d2e0b01c36e01ab4bd7"},{url:"pwa-512x512.png",revision:"2fcf48a2ae4e95f6d7f4a6bc2cc42a63"},{url:"pwa-192x192.png",revision:"8bc372216f92e2f0e011daff55721ccb"},{url:"favicon.ico",revision:"abba9e0d76413fa735e878d17223cfcb"},{url:"favicon-32x32.png",revision:"0847a57e9d3ae134e314a1339af3516d"},{url:"favicon-16x16.png",revision:"3e5fdc64b0a41f498c177fb2dc89ec6a"},{url:"apple-touch-icon.png",revision:"f9c8240d0509320d85a82bd60a6b426f"},{url:"images/logo.png",revision:"fa701b6a1d714ecf4856df660055eb89"},{url:"assets/zod-rwFXxHlg.js",revision:null},{url:"assets/yaml.contribution-BN-iiJx2.js",revision:null},{url:"assets/yaml-Lx-4NZKN.js",revision:null},{url:"assets/with-selector-DBfssCrY.js",revision:null},{url:"assets/web-vitals-Cb5qXObG.js",revision:null},{url:"assets/wallet-Cdhl16hF.js",revision:null},{url:"assets/useStore-CupyIEEP.js",revision:null},{url:"assets/useSearch-Diln-KYh.js",revision:null},{url:"assets/useRouterState-B2FPPjEe.js",revision:null},{url:"assets/useRouter-DtTm7XkK.js",revision:null},{url:"assets/useNavigate-7u4DX0Ho.js",revision:null},{url:"assets/use-table-url-state-DP0Y4QjR.js",revision:null},{url:"assets/unauthorized-error-TaUhj35c.js",revision:null},{url:"assets/triangle-alert-DB5v_9sS.js",revision:null},{url:"assets/trash-2-9I8lAjeE.js",revision:null},{url:"assets/tooltip-QxnX5RKP.js",revision:null},{url:"assets/theme-switch-CdEcHkcU.js",revision:null},{url:"assets/theme-provider-ixHkEVGI.js",revision:null},{url:"assets/textarea-G_CiBcLa.js",revision:null},{url:"assets/telescope-DU0wiTDw.js",revision:null},{url:"assets/telegram-D-IQd24v.js",revision:null},{url:"assets/tabs-DDe7sXIW.js",revision:null},{url:"assets/table-DgARtYSu.js",revision:null},{url:"assets/system-UzoEfe2L.js",revision:null},{url:"assets/switch-BST3z-JX.js",revision:null},{url:"assets/sun-JU8p4FoE.js",revision:null},{url:"assets/skeleton-B4TLI5_E.js",revision:null},{url:"assets/sign-in-C8pEQ7cD.js",revision:null},{url:"assets/sidebar-nav-CrEhVF-o.js",revision:null},{url:"assets/show-submitted-data-DwaVTW9K.js",revision:null},{url:"assets/shield-check-MAPDL1u8.js",revision:null},{url:"assets/settings-DskxyKWx.js",revision:null},{url:"assets/separator-CqhQIQ-B.js",revision:null},{url:"assets/send-BNvceEpO.js",revision:null},{url:"assets/select-D2uO5-De.js",revision:null},{url:"assets/search-provider-CTRbHqNx.js",revision:null},{url:"assets/rpc-FxQRMB98.js",revision:null},{url:"assets/routes-D7HD5c-e.js",revision:null},{url:"assets/router-xxaOxfVd.js",revision:null},{url:"assets/route-gtb8yu3E.js",revision:null},{url:"assets/route-DcIGa4_b.js",revision:null},{url:"assets/route-DYctbiZb.js",revision:null},{url:"assets/route-DJLBMX6x.js",revision:null},{url:"assets/route-CyGJTo_g.js",revision:null},{url:"assets/route-BfeN1Yu9.js",revision:null},{url:"assets/route-B4K1KfXt.js",revision:null},{url:"assets/redirect-DMNGvjzO.js",revision:null},{url:"assets/react-CO2uhaBc.js",revision:null},{url:"assets/radio-group-yaBPIkVa.js",revision:null},{url:"assets/preload-helper-DoS0eHac.js",revision:null},{url:"assets/popover-Y5WNf1yM.js",revision:null},{url:"assets/payment-setup-CnYyeayi.js",revision:null},{url:"assets/pay-B10TXgVj.js",revision:null},{url:"assets/password-input-D9YsRteD.js",revision:null},{url:"assets/password-CAMOij5G.js",revision:null},{url:"assets/page-header-B7O10aw9.js",revision:null},{url:"assets/orders-BVHCgRn-.js",revision:null},{url:"assets/okpay-D8DSnOJb.js",revision:null},{url:"assets/nunito-vietnamese-wght-normal-U01xdrZh.woff2",revision:null},{url:"assets/nunito-latin-wght-normal-BzFMHfZw.woff2",revision:null},{url:"assets/nunito-latin-ext-wght-normal-CXYtwYOx.woff2",revision:null},{url:"assets/nunito-cyrillic-wght-normal-CY6AOgYE.woff2",revision:null},{url:"assets/nunito-cyrillic-ext-wght-normal-D4X5GqEv.woff2",revision:null},{url:"assets/noto-sans-vietnamese-wght-normal-DLTJy58D.woff2",revision:null},{url:"assets/noto-sans-latin-wght-normal-BYSzYMf3.woff2",revision:null},{url:"assets/noto-sans-latin-ext-wght-normal-W1qJv59z.woff2",revision:null},{url:"assets/noto-sans-greek-wght-normal-Ymb6dZNd.woff2",revision:null},{url:"assets/noto-sans-greek-ext-wght-normal-12T8GTDR.woff2",revision:null},{url:"assets/noto-sans-devanagari-wght-normal-Cv-Vwajv.woff2",revision:null},{url:"assets/noto-sans-cyrillic-wght-normal-B2hlT84T.woff2",revision:null},{url:"assets/noto-sans-cyrillic-ext-wght-normal-DSNfmdVt.woff2",revision:null},{url:"assets/notifications-ugCUkcwq.js",revision:null},{url:"assets/not-found-error-D4F_Uu-C.js",revision:null},{url:"assets/monaco.contribution-BNCqMH44.js",revision:null},{url:"assets/messages-CL4J6BaJ.js",revision:null},{url:"assets/matchContext-BFCdcHzo.js",revision:null},{url:"assets/markdown.contribution-FtzundBn.js",revision:null},{url:"assets/markdown-rghzeErz.js",revision:null},{url:"assets/manrope-vietnamese-wght-normal-usUDDRr7.woff2",revision:null},{url:"assets/manrope-latin-wght-normal-DHIcAJRg.woff2",revision:null},{url:"assets/manrope-latin-ext-wght-normal-Ch3YOpNY.woff2",revision:null},{url:"assets/manrope-greek-wght-normal-DL7QRZyv.woff2",revision:null},{url:"assets/manrope-cyrillic-wght-normal-Dvxsihut.woff2",revision:null},{url:"assets/maintenance-error-lgcDljP-.js",revision:null},{url:"assets/main-CTY49s_f.js",revision:null},{url:"assets/long-text-COpCfVI1.js",revision:null},{url:"assets/logo-CBibDHP9.js",revision:null},{url:"assets/loader-circle-DpEz1fQv.js",revision:null},{url:"assets/link-6i3yGmK_.js",revision:null},{url:"assets/lib-Ku8Lh36m.js",revision:null},{url:"assets/lazyRouteComponent-CleTUoKA.js",revision:null},{url:"assets/labels-CQIGkPR0.js",revision:null},{url:"assets/label-DohxFN8a.js",revision:null},{url:"assets/keys-CMptb3PN.js",revision:null},{url:"assets/jsonMode-DjuQ1ZC5.js",revision:null},{url:"assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2",revision:null},{url:"assets/inter-latin-wght-normal-Dx4kXJAl.woff2",revision:null},{url:"assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2",revision:null},{url:"assets/inter-greek-wght-normal-CkhJZR-_.woff2",revision:null},{url:"assets/inter-greek-ext-wght-normal-DlzME5K_.woff2",revision:null},{url:"assets/inter-cyrillic-wght-normal-DqGufNeO.woff2",revision:null},{url:"assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2",revision:null},{url:"assets/integrations-vDkEDNxG.js",revision:null},{url:"assets/install-Dx6W4swz.js",revision:null},{url:"assets/input-DAqep8ZY.js",revision:null},{url:"assets/index-CbzpCBgq.js",revision:null},{url:"assets/index-CSgdIpTt.css",revision:null},{url:"assets/html.contribution-Baf-XjFx.js",revision:null},{url:"assets/html-Dtt1eLDu.js",revision:null},{url:"assets/help-CuVF-_N9.js",revision:null},{url:"assets/header-vUJd_CA5.js",revision:null},{url:"assets/handlebars-d5Fb_oR7.js",revision:null},{url:"assets/go.contribution-BmlX-a-9.js",revision:null},{url:"assets/go-leGpQeN8.js",revision:null},{url:"assets/general-error-Drsf0vjz.js",revision:null},{url:"assets/form-C_YekIvK.js",revision:null},{url:"assets/forbidden-BCyOYrFV.js",revision:null},{url:"assets/font-provider-C4_iupSb.js",revision:null},{url:"assets/eye-off-B8hO0oST.js",revision:null},{url:"assets/eye-DAKGLydt.js",revision:null},{url:"assets/es2015-3J9GnV9P.js",revision:null},{url:"assets/es-fZtL7B9U.js",revision:null},{url:"assets/es-Ddhai3Z6.css",revision:null},{url:"assets/epusdt-DDJlVqbb.js",revision:null},{url:"assets/epay-CMHO4eMB.js",revision:null},{url:"assets/empty-state-BtKoq2f4.js",revision:null},{url:"assets/ellipsis-74ly4-Wm.js",revision:null},{url:"assets/dropdown-menu-D72UcvWG.js",revision:null},{url:"assets/download-fYUtNZ3R.js",revision:null},{url:"assets/dist-esC74fSg.js",revision:null},{url:"assets/dist-UaPzzPYf.js",revision:null},{url:"assets/dist-SR6sl-WU.js",revision:null},{url:"assets/dist-DmeeHi7K.js",revision:null},{url:"assets/dist-DhcQhr4B.js",revision:null},{url:"assets/dist-Dd-sCJIt.js",revision:null},{url:"assets/dist-DPYswSIO.js",revision:null},{url:"assets/dist-DB-jLX48.js",revision:null},{url:"assets/dist-DA1qWiix.js",revision:null},{url:"assets/dist-D3WFT-Yo.js",revision:null},{url:"assets/dist-CjidLXaw.js",revision:null},{url:"assets/dist-CRowTfGU.js",revision:null},{url:"assets/dist-CGRahgI2.js",revision:null},{url:"assets/dist-BixeH3nX.js",revision:null},{url:"assets/dist-BZMqLvO-.js",revision:null},{url:"assets/dist-B0pRVbY9.js",revision:null},{url:"assets/display-Zi7WWfTl.js",revision:null},{url:"assets/dialog-CtyiwzAl.js",revision:null},{url:"assets/data-table-DC6T69tr.js",revision:null},{url:"assets/dashboard-CicUP9sI.js",revision:null},{url:"assets/crypto-icon-BPgcAvNF.js",revision:null},{url:"assets/createLucideIcon-Br0Bd5k2.js",revision:null},{url:"assets/copy-to-clipboard-C1tj4a8X.js",revision:null},{url:"assets/cookies-BzZOQYPw.js",revision:null},{url:"assets/confirm-dialog-Crc1Jrzv.js",revision:null},{url:"assets/command-vy8966UO.js",revision:null},{url:"assets/coming-soon-dialog-CN8U5tTP.js",revision:null},{url:"assets/clsx-D9aGYY3V.js",revision:null},{url:"assets/chunk-DECur_0Z.js",revision:null},{url:"assets/chevrons-up-down-BPquKoYJ.js",revision:null},{url:"assets/chevron-down-BB5h1CsX.js",revision:null},{url:"assets/checkout-model-CQ3aqlob.js",revision:null},{url:"assets/checkbox-DcRUgRHr.js",revision:null},{url:"assets/check-CHp0nSkR.js",revision:null},{url:"assets/chains-store-CMJvgCLb.js",revision:null},{url:"assets/chains-CeMUj04i.js",revision:null},{url:"assets/card-wpWrYqj9.js",revision:null},{url:"assets/button-NLSeBFht.js",revision:null},{url:"assets/badge-BRKB3301.js",revision:null},{url:"assets/auth-store-8ocF_FHU.js",revision:null},{url:"assets/auth-animation-context-Cac9Wtyr.js",revision:null},{url:"assets/atom-DQpaPCwp.js",revision:null},{url:"assets/arrow-left-right-CcCrkQiR.js",revision:null},{url:"assets/arrow-left-BpZwGREZ.js",revision:null},{url:"assets/appearance-vgBRUuwE.js",revision:null},{url:"assets/addresses-CHUp3WnH.js",revision:null},{url:"assets/_trade_id-CdBtzygm.js",revision:null},{url:"assets/_trade_id-BUpVePSs.js",revision:null},{url:"assets/_error-DypydLD1.js",revision:null},{url:"assets/_error-D2USOC7M.js",revision:null},{url:"assets/_.contribution-CaUqztrQ.js",revision:null},{url:"assets/Matches-CiQgu9ui.js",revision:null},{url:"assets/Match-onTP_fNL.js",revision:null},{url:"assets/ClientOnly-DHd0jlDY.js",revision:null},{url:"assets/503-BF-pGOH4.js",revision:null},{url:"assets/500-CK1ovRtb.js",revision:null},{url:"assets/404-Dw3fTvCr.js",revision:null},{url:"assets/403-CHgXHRv0.js",revision:null},{url:"assets/401-QZok9O_U.js",revision:null},{url:"apple-touch-icon.png",revision:"f9c8240d0509320d85a82bd60a6b426f"},{url:"favicon.ico",revision:"abba9e0d76413fa735e878d17223cfcb"},{url:"pwa-192x192.png",revision:"8bc372216f92e2f0e011daff55721ccb"},{url:"pwa-512x512.png",revision:"2fcf48a2ae4e95f6d7f4a6bc2cc42a63"},{url:"pwa-maskable-192x192.png",revision:"8befa0caebf24d2e0b01c36e01ab4bd7"},{url:"pwa-maskable-512x512.png",revision:"106b94c2eb0675579ae40309698f364c"},{url:"robots.txt",revision:"fa1ded1ed7c11438a9b0385b1e112850"},{url:"images/logo.png",revision:"fa701b6a1d714ecf4856df660055eb89"},{url:"manifest.webmanifest",revision:"8d2924aafc68495c2adffcd2b8cff2c1"}],{}),s.cleanupOutdatedCaches()});