@hasna/connectors 1.4.0 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/index.js +1561 -1277
- package/bin/mcp.js +534 -213
- package/bin/serve.js +1218 -258
- package/connectors/adobe/package.json +1 -1
- package/connectors/aitableai/package.json +1 -1
- package/connectors/alchemy/package.json +1 -1
- package/connectors/alerty/package.json +1 -1
- package/connectors/alienvault/package.json +1 -1
- package/connectors/alphamoon/package.json +1 -1
- package/connectors/alttextai/package.json +1 -1
- package/connectors/amadeus/package.json +1 -1
- package/connectors/amadeus/src/api/client.ts +6 -6
- package/connectors/amadeus/src/cli/index.ts +6 -6
- package/connectors/amadeus/src/utils/output.ts +5 -5
- package/connectors/amazon/package.json +1 -1
- package/connectors/amilia/package.json +1 -1
- package/connectors/amqpsender/package.json +1 -1
- package/connectors/announcekit/package.json +1 -1
- package/connectors/anthropic/.env.example +1 -1
- package/connectors/anyscale/package.json +1 -1
- package/connectors/apiary/package.json +1 -1
- package/connectors/apiflash/package.json +1 -1
- package/connectors/apitemplateio/package.json +1 -1
- package/connectors/apptivegrid/package.json +1 -1
- package/connectors/assemblyai/package.json +1 -1
- package/connectors/autom/package.json +1 -1
- package/connectors/automizy/package.json +1 -1
- package/connectors/autopilot/package.json +1 -1
- package/connectors/awscognito/package.json +1 -1
- package/connectors/bamboohr/package.json +1 -1
- package/connectors/bannerbear/package.json +1 -1
- package/connectors/baseten/package.json +1 -1
- package/connectors/box/package.json +1 -1
- package/connectors/brevo/package.json +1 -1
- package/connectors/calendly/package.json +1 -1
- package/connectors/cerebras/package.json +1 -1
- package/connectors/chargebee/package.json +1 -1
- package/connectors/clearbit/package.json +1 -1
- package/connectors/cloudflare-workers/package.json +1 -1
- package/connectors/coda/package.json +1 -1
- package/connectors/coingecko/package.json +1 -1
- package/connectors/convertkit/package.json +1 -1
- package/connectors/customerio/package.json +1 -1
- package/connectors/databricks/package.json +1 -1
- package/connectors/datadog/package.json +1 -1
- package/connectors/datasoap/README.md +2 -2
- package/connectors/datasoap/package.json +1 -1
- package/connectors/datumbox/README.md +2 -2
- package/connectors/datumbox/package.json +1 -1
- package/connectors/dayschedule/README.md +2 -2
- package/connectors/dayschedule/package.json +1 -1
- package/connectors/deepgram/package.json +1 -1
- package/connectors/deepinfra/README.md +2 -2
- package/connectors/deepinfra/package.json +1 -1
- package/connectors/deepl/README.md +2 -2
- package/connectors/deepl/package.json +1 -1
- package/connectors/deepseek/package.json +1 -1
- package/connectors/demio/README.md +2 -2
- package/connectors/demio/package.json +1 -1
- package/connectors/descript/README.md +2 -2
- package/connectors/descript/package.json +1 -1
- package/connectors/detrack/README.md +2 -2
- package/connectors/detrack/package.json +1 -1
- package/connectors/devcycle/README.md +2 -2
- package/connectors/devcycle/package.json +1 -1
- package/connectors/dhl/README.md +2 -2
- package/connectors/dhl/package.json +1 -1
- package/connectors/docusign/package.json +1 -1
- package/connectors/dropbox/package.json +1 -1
- package/connectors/fal/package.json +1 -1
- package/connectors/fathom/package.json +1 -1
- package/connectors/fireworks/package.json +1 -1
- package/connectors/gitlab/package.json +1 -1
- package/connectors/googlechat/README.md +1 -2
- package/connectors/googledrive/src/api/client.ts +5 -5
- package/connectors/googledrive/src/api/files.ts +11 -11
- package/connectors/googledrive/src/api/folders.ts +2 -2
- package/connectors/googledrive/src/cli/index.ts +4 -4
- package/connectors/googledrive/src/utils/output.ts +3 -3
- package/connectors/googleforms/README.md +1 -2
- package/connectors/googleperspective/README.md +1 -2
- package/connectors/googlephotos/src/cli/index.ts +1 -1
- package/connectors/grafana/package.json +1 -1
- package/connectors/growbots/README.md +2 -2
- package/connectors/growbots/package.json +1 -1
- package/connectors/gumroad/package.json +1 -1
- package/connectors/gupshup/README.md +2 -2
- package/connectors/gupshup/package.json +1 -1
- package/connectors/guru/README.md +2 -2
- package/connectors/guru/package.json +1 -1
- package/connectors/hackernews/README.md +2 -2
- package/connectors/hackernews/package.json +1 -1
- package/connectors/halopsa/README.md +2 -2
- package/connectors/halopsa/package.json +1 -1
- package/connectors/handwrytten/README.md +2 -2
- package/connectors/handwrytten/package.json +1 -1
- package/connectors/hansei/README.md +2 -2
- package/connectors/hansei/package.json +1 -1
- package/connectors/harrypotterapi/README.md +2 -2
- package/connectors/harrypotterapi/package.json +1 -1
- package/connectors/harvest/README.md +2 -2
- package/connectors/harvest/package.json +1 -1
- package/connectors/headlesstesting/README.md +2 -2
- package/connectors/headlesstesting/package.json +1 -1
- package/connectors/homeassistant/package.json +1 -1
- package/connectors/klaviyo/package.json +1 -1
- package/connectors/lemonsqueezy/package.json +1 -1
- package/connectors/lighthouse/src/api/index.ts +1 -1
- package/connectors/linkedin/package.json +1 -1
- package/connectors/linkish/README.md +2 -2
- package/connectors/linkish/package.json +1 -1
- package/connectors/liveagent/README.md +2 -2
- package/connectors/liveagent/package.json +1 -1
- package/connectors/localazy/README.md +2 -2
- package/connectors/localazy/package.json +1 -1
- package/connectors/loginradius/README.md +2 -2
- package/connectors/loginradius/package.json +1 -1
- package/connectors/lokalise/README.md +2 -2
- package/connectors/lokalise/package.json +1 -1
- package/connectors/lonescale/README.md +2 -2
- package/connectors/lonescale/package.json +1 -1
- package/connectors/lucidchart/README.md +2 -2
- package/connectors/lucidchart/package.json +1 -1
- package/connectors/luma/package.json +1 -1
- package/connectors/magento2/README.md +2 -2
- package/connectors/magento2/package.json +1 -1
- package/connectors/mailcheck/README.md +2 -2
- package/connectors/mailcheck/package.json +1 -1
- package/connectors/mailchimp/package.json +1 -1
- package/connectors/mailerlite/README.md +2 -2
- package/connectors/mailerlite/package.json +1 -1
- package/connectors/mailersend/README.md +2 -2
- package/connectors/mailersend/package.json +1 -1
- package/connectors/mailify/README.md +2 -2
- package/connectors/mailify/package.json +1 -1
- package/connectors/mailjet/README.md +2 -2
- package/connectors/mailjet/package.json +1 -1
- package/connectors/mailmodo/README.md +2 -2
- package/connectors/mailmodo/package.json +1 -1
- package/connectors/malcore/README.md +2 -2
- package/connectors/malcore/package.json +1 -1
- package/connectors/mandrill/README.md +2 -2
- package/connectors/mandrill/package.json +1 -1
- package/connectors/marcomrobot/README.md +2 -2
- package/connectors/marcomrobot/package.json +1 -1
- package/connectors/marketingmasterio/README.md +2 -2
- package/connectors/marketingmasterio/package.json +1 -1
- package/connectors/marketplacer/README.md +2 -2
- package/connectors/marketplacer/package.json +1 -1
- package/connectors/marketstack/README.md +2 -2
- package/connectors/marketstack/package.json +1 -1
- package/connectors/matrix/README.md +1 -1
- package/connectors/matrix/package.json +1 -1
- package/connectors/mattermost/README.md +1 -1
- package/connectors/mattermost/package.json +1 -1
- package/connectors/mautic/README.md +1 -1
- package/connectors/mautic/package.json +1 -1
- package/connectors/mav/README.md +1 -1
- package/connectors/mav/package.json +1 -1
- package/connectors/maverick/README.md +1 -1
- package/connectors/maverick/package.json +1 -1
- package/connectors/mem/README.md +1 -1
- package/connectors/mem/package.json +1 -1
- package/connectors/messagebird/package.json +1 -1
- package/connectors/metabase/README.md +1 -1
- package/connectors/metabase/package.json +1 -1
- package/connectors/miro/package.json +1 -1
- package/connectors/mocean/package.json +1 -1
- package/connectors/modal/package.json +1 -1
- package/connectors/monday/package.json +1 -1
- package/connectors/monicacrm/package.json +1 -1
- package/connectors/moonclerk/package.json +1 -1
- package/connectors/moonmail/package.json +1 -1
- package/connectors/morph/package.json +1 -1
- package/connectors/mqtt/package.json +1 -1
- package/connectors/msg91/package.json +1 -1
- package/connectors/mubert/package.json +1 -1
- package/connectors/murf/package.json +1 -1
- package/connectors/mux/package.json +1 -1
- package/connectors/netlify/package.json +1 -1
- package/connectors/okta/package.json +1 -1
- package/connectors/paddle/package.json +1 -1
- package/connectors/perplexity/package.json +1 -1
- package/connectors/pinterest/package.json +1 -1
- package/connectors/pipedrive/package.json +1 -1
- package/connectors/plaid/package.json +1 -1
- package/connectors/quickchart/README.md +2 -2
- package/connectors/quintadb/README.md +2 -2
- package/connectors/rabbitmq/README.md +2 -2
- package/connectors/radar/README.md +2 -2
- package/connectors/raindrop/README.md +2 -2
- package/connectors/rapid7insightvm/README.md +2 -2
- package/connectors/raventools/README.md +2 -2
- package/connectors/rawgvideogamesdatabase/README.md +2 -2
- package/connectors/rdstationcrm/README.md +2 -2
- package/connectors/readai/README.md +2 -2
- package/connectors/roboflow/package.json +1 -1
- package/connectors/runway/package.json +1 -1
- package/connectors/sendgrid/package.json +1 -1
- package/connectors/shuffler/package.json +1 -1
- package/connectors/sierrainteractive/package.json +1 -1
- package/connectors/sifter/package.json +1 -1
- package/connectors/signaturit/package.json +1 -1
- package/connectors/signl4/package.json +1 -1
- package/connectors/simpleem/package.json +1 -1
- package/connectors/simplehash/package.json +1 -1
- package/connectors/simplekpi/package.json +1 -1
- package/connectors/simplelocalize/package.json +1 -1
- package/connectors/simplero/package.json +1 -1
- package/connectors/smartrecruiters/package.json +1 -1
- package/connectors/smtp2go/package.json +1 -1
- package/connectors/snowflake/package.json +1 -1
- package/connectors/sparkpost/package.json +1 -1
- package/connectors/split-io/package.json +1 -1
- package/connectors/split-io/src/api/client.test.ts +20 -0
- package/connectors/split-io/src/cli/index.ts +9 -9
- package/connectors/sprinklr/package.json +1 -1
- package/connectors/sprout-social/package.json +1 -1
- package/connectors/square/package.json +1 -1
- package/connectors/sse-trigger/package.json +1 -1
- package/connectors/stability-api-platform/AGENTS.md +1 -1
- package/connectors/standout/package.json +1 -1
- package/connectors/statuspage/package.json +1 -1
- package/connectors/stoplight/package.json +1 -1
- package/connectors/stoplight-api-platform/package.json +1 -1
- package/connectors/strand-ai/CLAUDE.md +1 -1
- package/connectors/stripe-financial-connections/package.json +1 -1
- package/connectors/stripe-terminal/package.json +1 -1
- package/connectors/stytch/package.json +1 -1
- package/connectors/sumo-logic/package.json +1 -1
- package/connectors/supabase/package.json +1 -1
- package/connectors/supabase-api-platform/package.json +1 -1
- package/connectors/sysdig/package.json +1 -1
- package/connectors/tableau/package.json +1 -1
- package/connectors/takecareos/README.md +2 -2
- package/connectors/takecareos/package.json +1 -1
- package/connectors/telegram/src/api/bot.ts +20 -0
- package/connectors/telegram/src/api/client.ts +32 -0
- package/connectors/telegram/src/api/files.test.ts +103 -0
- package/connectors/telegram/src/api/index.ts +1 -0
- package/connectors/telegram/src/api/messages.test.ts +8 -2
- package/connectors/telegram/src/cli/files.test.ts +40 -0
- package/connectors/telegram/src/cli/files.ts +38 -0
- package/connectors/telegram/src/cli/index.ts +27 -30
- package/connectors/telegram/src/cli/updates.test.ts +176 -0
- package/connectors/telegram/src/cli/updates.ts +95 -0
- package/connectors/telegram/src/index.ts +1 -0
- package/connectors/telegram/src/types/index.ts +13 -0
- package/connectors/terraform-cloud/package.json +1 -1
- package/connectors/textit/package.json +1 -1
- package/connectors/thousandeyes/package.json +1 -1
- package/connectors/ticket-tailor/package.json +1 -1
- package/connectors/ticketsource/package.json +1 -1
- package/connectors/tiktokads/README.md +1 -1
- package/connectors/time-saved/package.json +1 -1
- package/connectors/tipalti/package.json +1 -1
- package/connectors/tomtom/AGENTS.md +1 -1
- package/connectors/totp/package.json +1 -1
- package/connectors/traverse/package.json +1 -1
- package/connectors/travo-ai/package.json +1 -1
- package/connectors/trigger-dev/package.json +1 -1
- package/connectors/trigger-dev-api-platform/package.json +1 -1
- package/connectors/turbot-pipes/package.json +1 -1
- package/connectors/turso/package.json +1 -1
- package/connectors/turso-api-platform/package.json +1 -1
- package/connectors/tyk-api-platform/package.json +1 -1
- package/connectors/umami/package.json +1 -1
- package/connectors/unifold/package.json +1 -1
- package/connectors/unione/package.json +1 -1
- package/connectors/uniprot/README.md +1 -1
- package/connectors/uniswap-api/package.json +1 -1
- package/connectors/ups/package.json +1 -1
- package/connectors/usereframe/package.json +1 -1
- package/connectors/vanta/package.json +1 -1
- package/connectors/vela/package.json +1 -1
- package/connectors/velum-labs/package.json +1 -1
- package/connectors/vercel/package.json +1 -1
- package/connectors/vercel-blob/package.json +1 -1
- package/connectors/vercel-blob-platform/package.json +1 -1
- package/connectors/vercel-edge-config/package.json +1 -1
- package/connectors/vercel-edge-config-platform/package.json +1 -1
- package/connectors/vertex-ai/package.json +1 -1
- package/connectors/vidyard/package.json +1 -1
- package/connectors/vonage/package.json +1 -1
- package/connectors/voygr/package.json +1 -1
- package/connectors/wait/package.json +1 -1
- package/connectors/walmart-marketplace/package.json +1 -1
- package/connectors/wato/package.json +1 -1
- package/connectors/wave-accounting/package.json +1 -1
- package/connectors/wayco/package.json +1 -1
- package/connectors/webpagetest/package.json +1 -1
- package/connectors/weezevent/package.json +1 -1
- package/connectors/wikipedia/src/api/client.ts +1 -1
- package/connectors/wildcard/package.json +1 -1
- package/connectors/windmill/package.json +1 -1
- package/connectors/wise/package.json +1 -1
- package/connectors/withai/package.json +1 -1
- package/connectors/wiz/CLAUDE.md +1 -1
- package/connectors/wiz/package.json +1 -1
- package/connectors/wordfence/package.json +1 -1
- package/connectors/wordfence-api-platform/package.json +1 -1
- package/connectors/workos/package.json +1 -1
- package/connectors/write-binary-file/package.json +1 -1
- package/connectors/xai/.env.example +1 -1
- package/connectors/xai-api-platform/src/api/client.test.ts +1 -1
- package/connectors/xai-api-platform/src/cli/index.ts +1 -1
- package/connectors/xai-api-platform/src/utils/config.ts +1 -1
- package/connectors/xai-grok/.env.example +1 -1
- package/connectors/xai-grok/src/api/client.test.ts +3 -3
- package/connectors/xai-grok/src/cli/index.ts +1 -1
- package/connectors/xai-grok/src/utils/config.ts +1 -1
- package/connectors/ynab/package.json +1 -1
- package/connectors/you-com/README.md +2 -2
- package/connectors/you-com/package.json +1 -1
- package/connectors/yousearch/README.md +1 -1
- package/connectors/yousign/package.json +1 -1
- package/connectors/zendesk/.env.example +4 -4
- package/connectors/zendesk/CLAUDE.md +2 -4
- package/connectors/zendesk/Makefile +21 -6
- package/connectors/zendesk/README.md +6 -10
- package/connectors/zendesk/SCAFFOLD.md +8 -7
- package/connectors/zendesk/nginx-connector.conf +8 -8
- package/connectors/zendesk/nginx.conf +8 -8
- package/connectors/zendesk/src/cli/index.ts +19 -8
- package/connectors/zendesk/src/server/index.ts +1 -1
- package/connectors/zendesk/src/utils/config.test.ts +70 -0
- package/connectors/zendesk/src/utils/config.ts +12 -2
- package/connectors/zendesk/src/utils/remote-url.test.ts +72 -0
- package/connectors/zerosettle/package.json +1 -1
- package/connectors/zoho-bigin/CLAUDE.md +1 -1
- package/connectors/zoho-campaigns/package.json +1 -1
- package/connectors/zoho-sign/package.json +1 -1
- package/connectors/zoho-subscriptions/CLAUDE.md +1 -1
- package/connectors/zohoprojects/CLAUDE.md +1 -1
- package/connectors/zolvo/package.json +1 -1
- package/connectors/zoom-api/package.json +1 -1
- package/connectors/zymbly/README.md +2 -2
- package/connectors/zymbly/package.json +1 -1
- package/dashboard/dist/assets/index-8uoGZF7B.js +280 -0
- package/dashboard/dist/index.html +1 -1
- package/dist/db/locks.d.ts +1 -1
- package/dist/index.js +27 -17
- package/dist/lib/connector-resolver.d.ts +1 -1
- package/dist/lib/llm.d.ts +1 -1
- package/dist/lib/open-browser.d.ts +18 -0
- package/dist/lib/open-browser.test.d.ts +1 -0
- package/package.json +16 -6
- package/connectors/tiktok-events-api/.test-home/.bun/install/cache/@t@/b0fec00ef4c1a326.pile +0 -0
- package/dashboard/dist/assets/index-XPlN-9Xy.js +0 -280
- package/dist/cli/commands/sync.d.ts +0 -2
- package/dist/db/pg-migrations.d.ts +0 -6
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
var mp=n=>{throw TypeError(n)};var hp=(n,i,o)=>i.has(n)||mp("Cannot "+o);var mt=(n,i,o)=>(hp(n,i,"read from private field"),o?o.call(n):i.get(n)),pp=(n,i,o)=>i.has(n)?mp("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(n):i.set(n,o),Tc=(n,i,o,r)=>(hp(n,i,"write to private field"),r?r.call(n,o):i.set(n,o),o);function n1(n,i){for(var o=0;o<i.length;o++){const r=i[o];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in n)){const f=Object.getOwnPropertyDescriptor(r,s);f&&Object.defineProperty(n,s,f.get?f:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const f of s)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function o(s){const f={};return s.integrity&&(f.integrity=s.integrity),s.referrerPolicy&&(f.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?f.credentials="include":s.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(s){if(s.ep)return;s.ep=!0;const f=o(s);fetch(s.href,f)}})();function l1(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Dc={exports:{}},Ki={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var vp;function a1(){if(vp)return Ki;vp=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function o(r,s,f){var d=null;if(f!==void 0&&(d=""+f),s.key!==void 0&&(d=""+s.key),"key"in s){f={};for(var m in s)m!=="key"&&(f[m]=s[m])}else f=s;return s=f.ref,{$$typeof:n,type:r,key:d,ref:s!==void 0?s:null,props:f}}return Ki.Fragment=i,Ki.jsx=o,Ki.jsxs=o,Ki}var yp;function i1(){return yp||(yp=1,Dc.exports=a1()),Dc.exports}var v=i1(),zc={exports:{}},xe={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var xp;function o1(){if(xp)return xe;xp=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),b=Symbol.iterator;function x(O){return O===null||typeof O!="object"?null:(O=b&&O[b]||O["@@iterator"],typeof O=="function"?O:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,M={};function z(O,k,K){this.props=O,this.context=k,this.refs=M,this.updater=K||R}z.prototype.isReactComponent={},z.prototype.setState=function(O,k){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,k,"setState")},z.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function N(){}N.prototype=z.prototype;function L(O,k,K){this.props=O,this.context=k,this.refs=M,this.updater=K||R}var F=L.prototype=new N;F.constructor=L,E(F,z.prototype),F.isPureReactComponent=!0;var G=Array.isArray;function P(){}var Q={H:null,A:null,T:null,S:null},Y=Object.prototype.hasOwnProperty;function W(O,k,K){var J=K.ref;return{$$typeof:n,type:O,key:k,ref:J!==void 0?J:null,props:K}}function se(O,k){return W(O.type,k,O.props)}function ce(O){return typeof O=="object"&&O!==null&&O.$$typeof===n}function ne(O){var k={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(K){return k[K]})}var ie=/\/+/g;function de(O,k){return typeof O=="object"&&O!==null&&O.key!=null?ne(""+O.key):k.toString(36)}function ve(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(P,P):(O.status="pending",O.then(function(k){O.status==="pending"&&(O.status="fulfilled",O.value=k)},function(k){O.status==="pending"&&(O.status="rejected",O.reason=k)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function _(O,k,K,J,te){var re=typeof O;(re==="undefined"||re==="boolean")&&(O=null);var me=!1;if(O===null)me=!0;else switch(re){case"bigint":case"string":case"number":me=!0;break;case"object":switch(O.$$typeof){case n:case i:me=!0;break;case C:return me=O._init,_(me(O._payload),k,K,J,te)}}if(me)return te=te(O),me=J===""?"."+de(O,0):J,G(te)?(K="",me!=null&&(K=me.replace(ie,"$&/")+"/"),_(te,k,K,"",function(Ie){return Ie})):te!=null&&(ce(te)&&(te=se(te,K+(te.key==null||O&&O.key===te.key?"":(""+te.key).replace(ie,"$&/")+"/")+me)),k.push(te)),1;me=0;var Ae=J===""?".":J+":";if(G(O))for(var ye=0;ye<O.length;ye++)J=O[ye],re=Ae+de(J,ye),me+=_(J,k,K,re,te);else if(ye=x(O),typeof ye=="function")for(O=ye.call(O),ye=0;!(J=O.next()).done;)J=J.value,re=Ae+de(J,ye++),me+=_(J,k,K,re,te);else if(re==="object"){if(typeof O.then=="function")return _(ve(O),k,K,J,te);throw k=String(O),Error("Objects are not valid as a React child (found: "+(k==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.")}return me}function T(O,k,K){if(O==null)return O;var J=[],te=0;return _(O,J,"","",function(re){return k.call(K,re,te++)}),J}function I(O){if(O._status===-1){var k=O._result;k=k(),k.then(function(K){(O._status===0||O._status===-1)&&(O._status=1,O._result=K)},function(K){(O._status===0||O._status===-1)&&(O._status=2,O._result=K)}),O._status===-1&&(O._status=0,O._result=k)}if(O._status===1)return O._result.default;throw O._result}var ee=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var k=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(k))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},B={map:T,forEach:function(O,k,K){T(O,function(){k.apply(this,arguments)},K)},count:function(O){var k=0;return T(O,function(){k++}),k},toArray:function(O){return T(O,function(k){return k})||[]},only:function(O){if(!ce(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return xe.Activity=y,xe.Children=B,xe.Component=z,xe.Fragment=o,xe.Profiler=s,xe.PureComponent=L,xe.StrictMode=r,xe.Suspense=p,xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Q,xe.__COMPILER_RUNTIME={__proto__:null,c:function(O){return Q.H.useMemoCache(O)}},xe.cache=function(O){return function(){return O.apply(null,arguments)}},xe.cacheSignal=function(){return null},xe.cloneElement=function(O,k,K){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var J=E({},O.props),te=O.key;if(k!=null)for(re in k.key!==void 0&&(te=""+k.key),k)!Y.call(k,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&k.ref===void 0||(J[re]=k[re]);var re=arguments.length-2;if(re===1)J.children=K;else if(1<re){for(var me=Array(re),Ae=0;Ae<re;Ae++)me[Ae]=arguments[Ae+2];J.children=me}return W(O.type,te,J)},xe.createContext=function(O){return O={$$typeof:d,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:f,_context:O},O},xe.createElement=function(O,k,K){var J,te={},re=null;if(k!=null)for(J in k.key!==void 0&&(re=""+k.key),k)Y.call(k,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(te[J]=k[J]);var me=arguments.length-2;if(me===1)te.children=K;else if(1<me){for(var Ae=Array(me),ye=0;ye<me;ye++)Ae[ye]=arguments[ye+2];te.children=Ae}if(O&&O.defaultProps)for(J in me=O.defaultProps,me)te[J]===void 0&&(te[J]=me[J]);return W(O,re,te)},xe.createRef=function(){return{current:null}},xe.forwardRef=function(O){return{$$typeof:m,render:O}},xe.isValidElement=ce,xe.lazy=function(O){return{$$typeof:C,_payload:{_status:-1,_result:O},_init:I}},xe.memo=function(O,k){return{$$typeof:h,type:O,compare:k===void 0?null:k}},xe.startTransition=function(O){var k=Q.T,K={};Q.T=K;try{var J=O(),te=Q.S;te!==null&&te(K,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(P,ee)}catch(re){ee(re)}finally{k!==null&&K.types!==null&&(k.types=K.types),Q.T=k}},xe.unstable_useCacheRefresh=function(){return Q.H.useCacheRefresh()},xe.use=function(O){return Q.H.use(O)},xe.useActionState=function(O,k,K){return Q.H.useActionState(O,k,K)},xe.useCallback=function(O,k){return Q.H.useCallback(O,k)},xe.useContext=function(O){return Q.H.useContext(O)},xe.useDebugValue=function(){},xe.useDeferredValue=function(O,k){return Q.H.useDeferredValue(O,k)},xe.useEffect=function(O,k){return Q.H.useEffect(O,k)},xe.useEffectEvent=function(O){return Q.H.useEffectEvent(O)},xe.useId=function(){return Q.H.useId()},xe.useImperativeHandle=function(O,k,K){return Q.H.useImperativeHandle(O,k,K)},xe.useInsertionEffect=function(O,k){return Q.H.useInsertionEffect(O,k)},xe.useLayoutEffect=function(O,k){return Q.H.useLayoutEffect(O,k)},xe.useMemo=function(O,k){return Q.H.useMemo(O,k)},xe.useOptimistic=function(O,k){return Q.H.useOptimistic(O,k)},xe.useReducer=function(O,k,K){return Q.H.useReducer(O,k,K)},xe.useRef=function(O){return Q.H.useRef(O)},xe.useState=function(O){return Q.H.useState(O)},xe.useSyncExternalStore=function(O,k,K){return Q.H.useSyncExternalStore(O,k,K)},xe.useTransition=function(){return Q.H.useTransition()},xe.version="19.2.8",xe}var Sp;function Hf(){return Sp||(Sp=1,zc.exports=o1()),zc.exports}var w=Hf();const r1=l1(w),Ka=n1({__proto__:null,default:r1},[w]);var jc={exports:{}},Ji={},Nc={exports:{}},kc={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var bp;function u1(){return bp||(bp=1,(function(n){function i(_,T){var I=_.length;_.push(T);e:for(;0<I;){var ee=I-1>>>1,B=_[ee];if(0<s(B,T))_[ee]=T,_[I]=B,I=ee;else break e}}function o(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var T=_[0],I=_.pop();if(I!==T){_[0]=I;e:for(var ee=0,B=_.length,O=B>>>1;ee<O;){var k=2*(ee+1)-1,K=_[k],J=k+1,te=_[J];if(0>s(K,I))J<B&&0>s(te,K)?(_[ee]=te,_[J]=I,ee=J):(_[ee]=K,_[k]=I,ee=k);else if(J<B&&0>s(te,I))_[ee]=te,_[J]=I,ee=J;else break e}}return T}function s(_,T){var I=_.sortIndex-T.sortIndex;return I!==0?I:_.id-T.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,m=d.now();n.unstable_now=function(){return d.now()-m}}var p=[],h=[],C=1,y=null,b=3,x=!1,R=!1,E=!1,M=!1,z=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function F(_){for(var T=o(h);T!==null;){if(T.callback===null)r(h);else if(T.startTime<=_)r(h),T.sortIndex=T.expirationTime,i(p,T);else break;T=o(h)}}function G(_){if(E=!1,F(_),!R)if(o(p)!==null)R=!0,P||(P=!0,ne());else{var T=o(h);T!==null&&ve(G,T.startTime-_)}}var P=!1,Q=-1,Y=5,W=-1;function se(){return M?!0:!(n.unstable_now()-W<Y)}function ce(){if(M=!1,P){var _=n.unstable_now();W=_;var T=!0;try{e:{R=!1,E&&(E=!1,N(Q),Q=-1),x=!0;var I=b;try{t:{for(F(_),y=o(p);y!==null&&!(y.expirationTime>_&&se());){var ee=y.callback;if(typeof ee=="function"){y.callback=null,b=y.priorityLevel;var B=ee(y.expirationTime<=_);if(_=n.unstable_now(),typeof B=="function"){y.callback=B,F(_),T=!0;break t}y===o(p)&&r(p),F(_)}else r(p);y=o(p)}if(y!==null)T=!0;else{var O=o(h);O!==null&&ve(G,O.startTime-_),T=!1}}break e}finally{y=null,b=I,x=!1}T=void 0}}finally{T?ne():P=!1}}}var ne;if(typeof L=="function")ne=function(){L(ce)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,de=ie.port2;ie.port1.onmessage=ce,ne=function(){de.postMessage(null)}}else ne=function(){z(ce,0)};function ve(_,T){Q=z(function(){_(n.unstable_now())},T)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(_){_.callback=null},n.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<_?Math.floor(1e3/_):5},n.unstable_getCurrentPriorityLevel=function(){return b},n.unstable_next=function(_){switch(b){case 1:case 2:case 3:var T=3;break;default:T=b}var I=b;b=T;try{return _()}finally{b=I}},n.unstable_requestPaint=function(){M=!0},n.unstable_runWithPriority=function(_,T){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var I=b;b=_;try{return T()}finally{b=I}},n.unstable_scheduleCallback=function(_,T,I){var ee=n.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?ee+I:ee):I=ee,_){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=I+B,_={id:C++,callback:T,priorityLevel:_,startTime:I,expirationTime:B,sortIndex:-1},I>ee?(_.sortIndex=I,i(h,_),o(p)===null&&_===o(h)&&(E?(N(Q),Q=-1):E=!0,ve(G,I-ee))):(_.sortIndex=B,i(p,_),R||x||(R=!0,P||(P=!0,ne()))),_},n.unstable_shouldYield=se,n.unstable_wrapCallback=function(_){var T=b;return function(){var I=b;b=T;try{return _.apply(this,arguments)}finally{b=I}}}})(kc)),kc}var Cp;function s1(){return Cp||(Cp=1,Nc.exports=u1()),Nc.exports}var Lc={exports:{}},ht={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var wp;function c1(){if(wp)return ht;wp=1;var n=Hf();function i(p){var h="https://react.dev/errors/"+p;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var C=2;C<arguments.length;C++)h+="&args[]="+encodeURIComponent(arguments[C])}return"Minified React error #"+p+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var r={d:{f:o,r:function(){throw Error(i(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},s=Symbol.for("react.portal");function f(p,h,C){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:y==null?null:""+y,children:p,containerInfo:h,implementation:C}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(p,h){if(p==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return ht.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ht.createPortal=function(p,h){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(i(299));return f(p,h,null,C)},ht.flushSync=function(p){var h=d.T,C=r.p;try{if(d.T=null,r.p=2,p)return p()}finally{d.T=h,r.p=C,r.d.f()}},ht.preconnect=function(p,h){typeof p=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(p,h))},ht.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},ht.preinit=function(p,h){if(typeof p=="string"&&h&&typeof h.as=="string"){var C=h.as,y=m(C,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,x=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;C==="style"?r.d.S(p,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:x}):C==="script"&&r.d.X(p,{crossOrigin:y,integrity:b,fetchPriority:x,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},ht.preinitModule=function(p,h){if(typeof p=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var C=m(h.as,h.crossOrigin);r.d.M(p,{crossOrigin:C,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(p)},ht.preload=function(p,h){if(typeof p=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var C=h.as,y=m(C,h.crossOrigin);r.d.L(p,C,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},ht.preloadModule=function(p,h){if(typeof p=="string")if(h){var C=m(h.as,h.crossOrigin);r.d.m(p,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:C,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(p)},ht.requestFormReset=function(p){r.d.r(p)},ht.unstable_batchedUpdates=function(p,h){return p(h)},ht.useFormState=function(p,h,C){return d.H.useFormState(p,h,C)},ht.useFormStatus=function(){return d.H.useHostTransitionStatus()},ht.version="19.2.8",ht}var Rp;function gv(){if(Rp)return Lc.exports;Rp=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(i){console.error(i)}}return n(),Lc.exports=c1(),Lc.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var Ep;function f1(){if(Ep)return Ji;Ep=1;var n=s1(),i=Hf(),o=gv();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(f(e)!==e)throw Error(r(188))}function h(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,a=t;;){var u=l.return;if(u===null)break;var c=u.alternate;if(c===null){if(a=u.return,a!==null){l=a;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===l)return p(u),e;if(c===a)return p(u),t;c=c.sibling}throw Error(r(188))}if(l.return!==a.return)l=u,a=c;else{for(var g=!1,S=u.child;S;){if(S===l){g=!0,l=u,a=c;break}if(S===a){g=!0,a=u,l=c;break}S=S.sibling}if(!g){for(S=c.child;S;){if(S===l){g=!0,l=c,a=u;break}if(S===a){g=!0,a=c,l=u;break}S=S.sibling}if(!g)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function C(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=C(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,b=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),L=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),se=Symbol.for("react.memo_cache_sentinel"),ce=Symbol.iterator;function ne(e){return e===null||typeof e!="object"?null:(e=ce&&e[ce]||e["@@iterator"],typeof e=="function"?e:null)}var ie=Symbol.for("react.client.reference");function de(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ie?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case z:return"Profiler";case M:return"StrictMode";case G:return"Suspense";case P:return"SuspenseList";case W:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case R:return"Portal";case L:return e.displayName||"Context";case N:return(e._context.displayName||"Context")+".Consumer";case F:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Q:return t=e.displayName||null,t!==null?t:de(e.type)||"Memo";case Y:t=e._payload,e=e._init;try{return de(e(t))}catch{}}return null}var ve=Array.isArray,_=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,T=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},ee=[],B=-1;function O(e){return{current:e}}function k(e){0>B||(e.current=ee[B],ee[B]=null,B--)}function K(e,t){B++,ee[B]=e.current,e.current=t}var J=O(null),te=O(null),re=O(null),me=O(null);function Ae(e,t){switch(K(re,t),K(te,e),K(J,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vh(t),e=Hh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}k(J),K(J,e)}function ye(){k(J),k(te),k(re)}function Ie(e){e.memoizedState!==null&&K(me,e);var t=J.current,l=Hh(t,e.type);t!==l&&(K(te,e),K(J,l))}function vt(e){te.current===e&&(k(J),k(te)),me.current===e&&(k(me),Qi._currentValue=I)}var nn,Sn;function yt(e){if(nn===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);nn=t&&t[1]||"",Sn=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+nn+e+Sn}var ia=!1;function Tl(e,t){if(!e||ia)return"";ia=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(q){var U=q}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(q){U=q}e.call(Z.prototype)}}else{try{throw Error()}catch(q){U=q}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(q){if(q&&U&&typeof q.stack=="string")return[q.stack,U.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),g=c[0],S=c[1];if(g&&S){var A=g.split(`
|
|
44
|
+
`),H=S.split(`
|
|
45
|
+
`);for(u=a=0;a<A.length&&!A[a].includes("DetermineComponentFrameRoot");)a++;for(;u<H.length&&!H[u].includes("DetermineComponentFrameRoot");)u++;if(a===A.length||u===H.length)for(a=A.length-1,u=H.length-1;1<=a&&0<=u&&A[a]!==H[u];)u--;for(;1<=a&&0<=u;a--,u--)if(A[a]!==H[u]){if(a!==1||u!==1)do if(a--,u--,0>u||A[a]!==H[u]){var $=`
|
|
46
|
+
`+A[a].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),$}while(1<=a&&0<=u);break}}}finally{ia=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?yt(l):""}function fo(e,t){switch(e.tag){case 26:case 27:case 5:return yt(e.type);case 16:return yt("Lazy");case 13:return e.child!==t&&t!==null?yt("Suspense Fallback"):yt("Suspense");case 19:return yt("SuspenseList");case 0:case 15:return Tl(e.type,!1);case 11:return Tl(e.type.render,!1);case 1:return Tl(e.type,!0);case 31:return yt("Activity");default:return""}}function go(e){try{var t="",l=null;do t+=fo(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}var ni=Object.prototype.hasOwnProperty,li=n.unstable_scheduleCallback,ai=n.unstable_cancelCallback,oa=n.unstable_shouldYield,k0=n.unstable_requestPaint,Dt=n.unstable_now,L0=n.unstable_getCurrentPriorityLevel,hd=n.unstable_ImmediatePriority,pd=n.unstable_UserBlockingPriority,mo=n.unstable_NormalPriority,V0=n.unstable_LowPriority,vd=n.unstable_IdlePriority,H0=n.log,U0=n.unstable_setDisableYieldValue,ii=null,zt=null;function In(e){if(typeof H0=="function"&&U0(e),zt&&typeof zt.setStrictMode=="function")try{zt.setStrictMode(ii,e)}catch{}}var jt=Math.clz32?Math.clz32:F0,B0=Math.log,G0=Math.LN2;function F0(e){return e>>>=0,e===0?32:31-(B0(e)/G0|0)|0}var ho=256,po=262144,vo=4194304;function Dl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function yo(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var u=0,c=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var S=a&134217727;return S!==0?(a=S&~c,a!==0?u=Dl(a):(g&=S,g!==0?u=Dl(g):l||(l=S&~e,l!==0&&(u=Dl(l))))):(S=a&~c,S!==0?u=Dl(S):g!==0?u=Dl(g):l||(l=a&~e,l!==0&&(u=Dl(l)))),u===0?0:t!==0&&t!==u&&(t&c)===0&&(c=u&-u,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:u}function oi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function q0(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function yd(){var e=vo;return vo<<=1,(vo&62914560)===0&&(vo=4194304),e}function yu(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function ri(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function $0(e,t,l,a,u,c){var g=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var S=e.entanglements,A=e.expirationTimes,H=e.hiddenUpdates;for(l=g&~l;0<l;){var $=31-jt(l),Z=1<<$;S[$]=0,A[$]=-1;var U=H[$];if(U!==null)for(H[$]=null,$=0;$<U.length;$++){var q=U[$];q!==null&&(q.lane&=-536870913)}l&=~Z}a!==0&&xd(e,a,0),c!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=c&~(g&~t))}function xd(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-jt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Sd(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-jt(l),u=1<<a;u&t|e[a]&t&&(e[a]|=t),l&=~u}}function bd(e,t){var l=t&-t;return l=(l&42)!==0?1:xu(l),(l&(e.suspendedLanes|t))!==0?0:l}function xu(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Su(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Cd(){var e=T.p;return e!==0?e:(e=window.event,e===void 0?32:rp(e.type))}function wd(e,t){var l=T.p;try{return T.p=e,t()}finally{T.p=l}}var Pn=Math.random().toString(36).slice(2),st="__reactFiber$"+Pn,bt="__reactProps$"+Pn,ra="__reactContainer$"+Pn,bu="__reactEvents$"+Pn,Y0="__reactListeners$"+Pn,X0="__reactHandles$"+Pn,Rd="__reactResources$"+Pn,ui="__reactMarker$"+Pn;function Cu(e){delete e[st],delete e[bt],delete e[bu],delete e[Y0],delete e[X0]}function ua(e){var t=e[st];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ra]||l[st]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Yh(e);e!==null;){if(l=e[st])return l;e=Yh(e)}return t}e=l,l=e.parentNode}return null}function sa(e){if(e=e[st]||e[ra]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function si(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function ca(e){var t=e[Rd];return t||(t=e[Rd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function it(e){e[ui]=!0}var Ed=new Set,_d={};function zl(e,t){fa(e,t),fa(e+"Capture",t)}function fa(e,t){for(_d[e]=t,e=0;e<t.length;e++)Ed.add(t[e])}var Q0=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Md={},Ad={};function I0(e){return ni.call(Ad,e)?!0:ni.call(Md,e)?!1:Q0.test(e)?Ad[e]=!0:(Md[e]=!0,!1)}function xo(e,t,l){if(I0(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function So(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function bn(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function $t(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Od(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function P0(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var u=a.get,c=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(g){l=""+g,c.call(this,g)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(g){l=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wu(e){if(!e._valueTracker){var t=Od(e)?"checked":"value";e._valueTracker=P0(e,t,""+e[t])}}function Td(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Od(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function bo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Z0=/[\n"\\]/g;function Yt(e){return e.replace(Z0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ru(e,t,l,a,u,c,g,S){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+$t(t)):e.value!==""+$t(t)&&(e.value=""+$t(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?Eu(e,g,$t(t)):l!=null?Eu(e,g,$t(l)):a!=null&&e.removeAttribute("value"),u==null&&c!=null&&(e.defaultChecked=!!c),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+$t(S):e.removeAttribute("name")}function Dd(e,t,l,a,u,c,g,S){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){wu(e);return}l=l!=null?""+$t(l):"",t=t!=null?""+$t(t):l,S||t===e.value||(e.value=t),e.defaultValue=t}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=S?e.checked:!!a,e.defaultChecked=!!a,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),wu(e)}function Eu(e,t,l){t==="number"&&bo(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function da(e,t,l,a){if(e=e.options,t){t={};for(var u=0;u<l.length;u++)t["$"+l[u]]=!0;for(l=0;l<e.length;l++)u=t.hasOwnProperty("$"+e[l].value),e[l].selected!==u&&(e[l].selected=u),u&&a&&(e[l].defaultSelected=!0)}else{for(l=""+$t(l),t=null,u=0;u<e.length;u++){if(e[u].value===l){e[u].selected=!0,a&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function zd(e,t,l){if(t!=null&&(t=""+$t(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+$t(l):""}function jd(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(r(92));if(ve(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=$t(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),wu(e)}function ga(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var K0=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Nd(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||K0.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function kd(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var u in t)a=t[u],t.hasOwnProperty(u)&&l[u]!==a&&Nd(e,u,a)}else for(var c in t)t.hasOwnProperty(c)&&Nd(e,c,t[c])}function _u(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var J0=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),W0=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Co(e){return W0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Cn(){}var Mu=null;function Au(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ma=null,ha=null;function Ld(e){var t=sa(e);if(t&&(e=t.stateNode)){var l=e[bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ru(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Yt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var u=a[bt]||null;if(!u)throw Error(r(90));Ru(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Td(a)}break e;case"textarea":zd(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&da(e,!!l.multiple,t,!1)}}}var Ou=!1;function Vd(e,t,l){if(Ou)return e(t,l);Ou=!0;try{var a=e(t);return a}finally{if(Ou=!1,(ma!==null||ha!==null)&&(sr(),ma&&(t=ma,e=ha,ha=ma=null,Ld(t),e)))for(t=0;t<e.length;t++)Ld(e[t])}}function ci(e,t){var l=e.stateNode;if(l===null)return null;var a=l[bt]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,t,typeof l));return l}var wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tu=!1;if(wn)try{var fi={};Object.defineProperty(fi,"passive",{get:function(){Tu=!0}}),window.addEventListener("test",fi,fi),window.removeEventListener("test",fi,fi)}catch{Tu=!1}var Zn=null,Du=null,wo=null;function Hd(){if(wo)return wo;var e,t=Du,l=t.length,a,u="value"in Zn?Zn.value:Zn.textContent,c=u.length;for(e=0;e<l&&t[e]===u[e];e++);var g=l-e;for(a=1;a<=g&&t[l-a]===u[c-a];a++);return wo=u.slice(e,1<a?1-a:void 0)}function Ro(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Eo(){return!0}function Ud(){return!1}function Ct(e){function t(l,a,u,c,g){this._reactName=l,this._targetInst=u,this.type=a,this.nativeEvent=c,this.target=g,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(l=e[S],this[S]=l?l(c):c[S]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Eo:Ud,this.isPropagationStopped=Ud,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Eo)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Eo)},persist:function(){},isPersistent:Eo}),t}var jl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_o=Ct(jl),di=y({},jl,{view:0,detail:0}),ex=Ct(di),zu,ju,gi,Mo=y({},di,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ku,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==gi&&(gi&&e.type==="mousemove"?(zu=e.screenX-gi.screenX,ju=e.screenY-gi.screenY):ju=zu=0,gi=e),zu)},movementY:function(e){return"movementY"in e?e.movementY:ju}}),Bd=Ct(Mo),tx=y({},Mo,{dataTransfer:0}),nx=Ct(tx),lx=y({},di,{relatedTarget:0}),Nu=Ct(lx),ax=y({},jl,{animationName:0,elapsedTime:0,pseudoElement:0}),ix=Ct(ax),ox=y({},jl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),rx=Ct(ox),ux=y({},jl,{data:0}),Gd=Ct(ux),sx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cx={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},fx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=fx[e])?!!t[e]:!1}function ku(){return dx}var gx=y({},di,{key:function(e){if(e.key){var t=sx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ro(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?cx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ku,charCode:function(e){return e.type==="keypress"?Ro(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ro(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),mx=Ct(gx),hx=y({},Mo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fd=Ct(hx),px=y({},di,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ku}),vx=Ct(px),yx=y({},jl,{propertyName:0,elapsedTime:0,pseudoElement:0}),xx=Ct(yx),Sx=y({},Mo,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),bx=Ct(Sx),Cx=y({},jl,{newState:0,oldState:0}),wx=Ct(Cx),Rx=[9,13,27,32],Lu=wn&&"CompositionEvent"in window,mi=null;wn&&"documentMode"in document&&(mi=document.documentMode);var Ex=wn&&"TextEvent"in window&&!mi,qd=wn&&(!Lu||mi&&8<mi&&11>=mi),$d=" ",Yd=!1;function Xd(e,t){switch(e){case"keyup":return Rx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pa=!1;function _x(e,t){switch(e){case"compositionend":return Qd(t);case"keypress":return t.which!==32?null:(Yd=!0,$d);case"textInput":return e=t.data,e===$d&&Yd?null:e;default:return null}}function Mx(e,t){if(pa)return e==="compositionend"||!Lu&&Xd(e,t)?(e=Hd(),wo=Du=Zn=null,pa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return qd&&t.locale!=="ko"?null:t.data;default:return null}}var Ax={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Id(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ax[e.type]:t==="textarea"}function Pd(e,t,l,a){ma?ha?ha.push(a):ha=[a]:ma=a,t=pr(t,"onChange"),0<t.length&&(l=new _o("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var hi=null,pi=null;function Ox(e){Dh(e,0)}function Ao(e){var t=si(e);if(Td(t))return e}function Zd(e,t){if(e==="change")return t}var Kd=!1;if(wn){var Vu;if(wn){var Hu="oninput"in document;if(!Hu){var Jd=document.createElement("div");Jd.setAttribute("oninput","return;"),Hu=typeof Jd.oninput=="function"}Vu=Hu}else Vu=!1;Kd=Vu&&(!document.documentMode||9<document.documentMode)}function Wd(){hi&&(hi.detachEvent("onpropertychange",eg),pi=hi=null)}function eg(e){if(e.propertyName==="value"&&Ao(pi)){var t=[];Pd(t,pi,e,Au(e)),Vd(Ox,t)}}function Tx(e,t,l){e==="focusin"?(Wd(),hi=t,pi=l,hi.attachEvent("onpropertychange",eg)):e==="focusout"&&Wd()}function Dx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ao(pi)}function zx(e,t){if(e==="click")return Ao(t)}function jx(e,t){if(e==="input"||e==="change")return Ao(t)}function Nx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Nt=typeof Object.is=="function"?Object.is:Nx;function vi(e,t){if(Nt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var u=l[a];if(!ni.call(t,u)||!Nt(e[u],t[u]))return!1}return!0}function tg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ng(e,t){var l=tg(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=tg(l)}}function lg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?lg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ag(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=bo(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=bo(e.document)}return t}function Uu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var kx=wn&&"documentMode"in document&&11>=document.documentMode,va=null,Bu=null,yi=null,Gu=!1;function ig(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Gu||va==null||va!==bo(a)||(a=va,"selectionStart"in a&&Uu(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),yi&&vi(yi,a)||(yi=a,a=pr(Bu,"onSelect"),0<a.length&&(t=new _o("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=va)))}function Nl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ya={animationend:Nl("Animation","AnimationEnd"),animationiteration:Nl("Animation","AnimationIteration"),animationstart:Nl("Animation","AnimationStart"),transitionrun:Nl("Transition","TransitionRun"),transitionstart:Nl("Transition","TransitionStart"),transitioncancel:Nl("Transition","TransitionCancel"),transitionend:Nl("Transition","TransitionEnd")},Fu={},og={};wn&&(og=document.createElement("div").style,"AnimationEvent"in window||(delete ya.animationend.animation,delete ya.animationiteration.animation,delete ya.animationstart.animation),"TransitionEvent"in window||delete ya.transitionend.transition);function kl(e){if(Fu[e])return Fu[e];if(!ya[e])return e;var t=ya[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in og)return Fu[e]=t[l];return e}var rg=kl("animationend"),ug=kl("animationiteration"),sg=kl("animationstart"),Lx=kl("transitionrun"),Vx=kl("transitionstart"),Hx=kl("transitioncancel"),cg=kl("transitionend"),fg=new Map,qu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");qu.push("scrollEnd");function ln(e,t){fg.set(e,t),zl(t,[e])}var Oo=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Xt=[],xa=0,$u=0;function To(){for(var e=xa,t=$u=xa=0;t<e;){var l=Xt[t];Xt[t++]=null;var a=Xt[t];Xt[t++]=null;var u=Xt[t];Xt[t++]=null;var c=Xt[t];if(Xt[t++]=null,a!==null&&u!==null){var g=a.pending;g===null?u.next=u:(u.next=g.next,g.next=u),a.pending=u}c!==0&&dg(l,u,c)}}function Do(e,t,l,a){Xt[xa++]=e,Xt[xa++]=t,Xt[xa++]=l,Xt[xa++]=a,$u|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Yu(e,t,l,a){return Do(e,t,l,a),zo(e)}function Ll(e,t){return Do(e,null,null,t),zo(e)}function dg(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var u=!1,c=e.return;c!==null;)c.childLanes|=l,a=c.alternate,a!==null&&(a.childLanes|=l),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(u=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,u&&t!==null&&(u=31-jt(l),e=c.hiddenUpdates,a=e[u],a===null?e[u]=[t]:a.push(t),t.lane=l|536870912),c):null}function zo(e){if(50<Bi)throw Bi=0,ec=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Sa={};function Ux(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kt(e,t,l,a){return new Ux(e,t,l,a)}function Xu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Rn(e,t){var l=e.alternate;return l===null?(l=kt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function gg(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function jo(e,t,l,a,u,c){var g=0;if(a=e,typeof e=="function")Xu(e)&&(g=1);else if(typeof e=="string")g=$S(e,l,J.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case W:return e=kt(31,l,t,u),e.elementType=W,e.lanes=c,e;case E:return Vl(l.children,u,c,t);case M:g=8,u|=24;break;case z:return e=kt(12,l,t,u|2),e.elementType=z,e.lanes=c,e;case G:return e=kt(13,l,t,u),e.elementType=G,e.lanes=c,e;case P:return e=kt(19,l,t,u),e.elementType=P,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case L:g=10;break e;case N:g=9;break e;case F:g=11;break e;case Q:g=14;break e;case Y:g=16,a=null;break e}g=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=kt(g,l,t,u),t.elementType=e,t.type=a,t.lanes=c,t}function Vl(e,t,l,a){return e=kt(7,e,a,t),e.lanes=l,e}function Qu(e,t,l){return e=kt(6,e,null,t),e.lanes=l,e}function mg(e){var t=kt(18,null,null,0);return t.stateNode=e,t}function Iu(e,t,l){return t=kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var hg=new WeakMap;function Qt(e,t){if(typeof e=="object"&&e!==null){var l=hg.get(e);return l!==void 0?l:(t={value:e,source:t,stack:go(t)},hg.set(e,t),t)}return{value:e,source:t,stack:go(t)}}var ba=[],Ca=0,No=null,xi=0,It=[],Pt=0,Kn=null,sn=1,cn="";function En(e,t){ba[Ca++]=xi,ba[Ca++]=No,No=e,xi=t}function pg(e,t,l){It[Pt++]=sn,It[Pt++]=cn,It[Pt++]=Kn,Kn=e;var a=sn;e=cn;var u=32-jt(a)-1;a&=~(1<<u),l+=1;var c=32-jt(t)+u;if(30<c){var g=u-u%5;c=(a&(1<<g)-1).toString(32),a>>=g,u-=g,sn=1<<32-jt(t)+u|l<<u|a,cn=c+e}else sn=1<<c|l<<u|a,cn=e}function Pu(e){e.return!==null&&(En(e,1),pg(e,1,0))}function Zu(e){for(;e===No;)No=ba[--Ca],ba[Ca]=null,xi=ba[--Ca],ba[Ca]=null;for(;e===Kn;)Kn=It[--Pt],It[Pt]=null,cn=It[--Pt],It[Pt]=null,sn=It[--Pt],It[Pt]=null}function vg(e,t){It[Pt++]=sn,It[Pt++]=cn,It[Pt++]=Kn,sn=t.id,cn=t.overflow,Kn=e}var ct=null,Fe=null,Me=!1,Jn=null,Zt=!1,Ku=Error(r(519));function Wn(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Si(Qt(t,e)),Ku}function yg(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[st]=e,t[bt]=a,l){case"dialog":Re("cancel",t),Re("close",t);break;case"iframe":case"object":case"embed":Re("load",t);break;case"video":case"audio":for(l=0;l<Fi.length;l++)Re(Fi[l],t);break;case"source":Re("error",t);break;case"img":case"image":case"link":Re("error",t),Re("load",t);break;case"details":Re("toggle",t);break;case"input":Re("invalid",t),Dd(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Re("invalid",t);break;case"textarea":Re("invalid",t),jd(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||kh(t.textContent,l)?(a.popover!=null&&(Re("beforetoggle",t),Re("toggle",t)),a.onScroll!=null&&Re("scroll",t),a.onScrollEnd!=null&&Re("scrollend",t),a.onClick!=null&&(t.onclick=Cn),t=!0):t=!1,t||Wn(e,!0)}function xg(e){for(ct=e.return;ct;)switch(ct.tag){case 5:case 31:case 13:Zt=!1;return;case 27:case 3:Zt=!0;return;default:ct=ct.return}}function wa(e){if(e!==ct)return!1;if(!Me)return xg(e),Me=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||hc(e.type,e.memoizedProps)),l=!l),l&&Fe&&Wn(e),xg(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Fe=$h(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Fe=$h(e)}else t===27?(t=Fe,gl(e.type)?(e=Sc,Sc=null,Fe=e):Fe=t):Fe=ct?Jt(e.stateNode.nextSibling):null;return!0}function Hl(){Fe=ct=null,Me=!1}function Ju(){var e=Jn;return e!==null&&(_t===null?_t=e:_t.push.apply(_t,e),Jn=null),e}function Si(e){Jn===null?Jn=[e]:Jn.push(e)}var Wu=O(null),Ul=null,_n=null;function el(e,t,l){K(Wu,t._currentValue),t._currentValue=l}function Mn(e){e._currentValue=Wu.current,k(Wu)}function es(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function ts(e,t,l,a){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var c=u.dependencies;if(c!==null){var g=u.child;c=c.firstContext;e:for(;c!==null;){var S=c;c=u;for(var A=0;A<t.length;A++)if(S.context===t[A]){c.lanes|=l,S=c.alternate,S!==null&&(S.lanes|=l),es(c.return,l,e),a||(g=null);break e}c=S.next}}else if(u.tag===18){if(g=u.return,g===null)throw Error(r(341));g.lanes|=l,c=g.alternate,c!==null&&(c.lanes|=l),es(g,l,e),g=null}else g=u.child;if(g!==null)g.return=u;else for(g=u;g!==null;){if(g===e){g=null;break}if(u=g.sibling,u!==null){u.return=g.return,g=u;break}g=g.return}u=g}}function Ra(e,t,l,a){e=null;for(var u=t,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var g=u.alternate;if(g===null)throw Error(r(387));if(g=g.memoizedProps,g!==null){var S=u.type;Nt(u.pendingProps.value,g.value)||(e!==null?e.push(S):e=[S])}}else if(u===me.current){if(g=u.alternate,g===null)throw Error(r(387));g.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Qi):e=[Qi])}u=u.return}e!==null&&ts(t,e,l,a),t.flags|=262144}function ko(e){for(e=e.firstContext;e!==null;){if(!Nt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Bl(e){Ul=e,_n=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ft(e){return Sg(Ul,e)}function Lo(e,t){return Ul===null&&Bl(e),Sg(e,t)}function Sg(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},_n===null){if(e===null)throw Error(r(308));_n=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else _n=_n.next=t;return l}var Bx=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Gx=n.unstable_scheduleCallback,Fx=n.unstable_NormalPriority,Ke={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ns(){return{controller:new Bx,data:new Map,refCount:0}}function bi(e){e.refCount--,e.refCount===0&&Gx(Fx,function(){e.controller.abort()})}var Ci=null,ls=0,Ea=0,_a=null;function qx(e,t){if(Ci===null){var l=Ci=[];ls=0,Ea=oc(),_a={status:"pending",value:void 0,then:function(a){l.push(a)}}}return ls++,t.then(bg,bg),t}function bg(){if(--ls===0&&Ci!==null){_a!==null&&(_a.status="fulfilled");var e=Ci;Ci=null,Ea=0,_a=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function $x(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(u){l.push(u)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var u=0;u<l.length;u++)(0,l[u])(t)},function(u){for(a.status="rejected",a.reason=u,u=0;u<l.length;u++)(0,l[u])(void 0)}),a}var Cg=_.S;_.S=function(e,t){ih=Dt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&qx(e,t),Cg!==null&&Cg(e,t)};var Gl=O(null);function as(){var e=Gl.current;return e!==null?e:Be.pooledCache}function Vo(e,t){t===null?K(Gl,Gl.current):K(Gl,t.pool)}function wg(){var e=as();return e===null?null:{parent:Ke._currentValue,pool:e}}var Ma=Error(r(460)),is=Error(r(474)),Ho=Error(r(542)),Uo={then:function(){}};function Rg(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Eg(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Cn,Cn),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Mg(e),e;default:if(typeof t.status=="string")t.then(Cn,Cn);else{if(e=Be,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=a}},function(a){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Mg(e),e}throw ql=t,Ma}}function Fl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ql=l,Ma):l}}var ql=null;function _g(){if(ql===null)throw Error(r(459));var e=ql;return ql=null,e}function Mg(e){if(e===Ma||e===Ho)throw Error(r(483))}var Aa=null,wi=0;function Bo(e){var t=wi;return wi+=1,Aa===null&&(Aa=[]),Eg(Aa,e,t)}function Ri(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Go(e,t){throw t.$$typeof===b?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Ag(e){function t(j,D){if(e){var V=j.deletions;V===null?(j.deletions=[D],j.flags|=16):V.push(D)}}function l(j,D){if(!e)return null;for(;D!==null;)t(j,D),D=D.sibling;return null}function a(j){for(var D=new Map;j!==null;)j.key!==null?D.set(j.key,j):D.set(j.index,j),j=j.sibling;return D}function u(j,D){return j=Rn(j,D),j.index=0,j.sibling=null,j}function c(j,D,V){return j.index=V,e?(V=j.alternate,V!==null?(V=V.index,V<D?(j.flags|=67108866,D):V):(j.flags|=67108866,D)):(j.flags|=1048576,D)}function g(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function S(j,D,V,X){return D===null||D.tag!==6?(D=Qu(V,j.mode,X),D.return=j,D):(D=u(D,V),D.return=j,D)}function A(j,D,V,X){var fe=V.type;return fe===E?$(j,D,V.props.children,X,V.key):D!==null&&(D.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===Y&&Fl(fe)===D.type)?(D=u(D,V.props),Ri(D,V),D.return=j,D):(D=jo(V.type,V.key,V.props,null,j.mode,X),Ri(D,V),D.return=j,D)}function H(j,D,V,X){return D===null||D.tag!==4||D.stateNode.containerInfo!==V.containerInfo||D.stateNode.implementation!==V.implementation?(D=Iu(V,j.mode,X),D.return=j,D):(D=u(D,V.children||[]),D.return=j,D)}function $(j,D,V,X,fe){return D===null||D.tag!==7?(D=Vl(V,j.mode,X,fe),D.return=j,D):(D=u(D,V),D.return=j,D)}function Z(j,D,V){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=Qu(""+D,j.mode,V),D.return=j,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case x:return V=jo(D.type,D.key,D.props,null,j.mode,V),Ri(V,D),V.return=j,V;case R:return D=Iu(D,j.mode,V),D.return=j,D;case Y:return D=Fl(D),Z(j,D,V)}if(ve(D)||ne(D))return D=Vl(D,j.mode,V,null),D.return=j,D;if(typeof D.then=="function")return Z(j,Bo(D),V);if(D.$$typeof===L)return Z(j,Lo(j,D),V);Go(j,D)}return null}function U(j,D,V,X){var fe=D!==null?D.key:null;if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return fe!==null?null:S(j,D,""+V,X);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case x:return V.key===fe?A(j,D,V,X):null;case R:return V.key===fe?H(j,D,V,X):null;case Y:return V=Fl(V),U(j,D,V,X)}if(ve(V)||ne(V))return fe!==null?null:$(j,D,V,X,null);if(typeof V.then=="function")return U(j,D,Bo(V),X);if(V.$$typeof===L)return U(j,D,Lo(j,V),X);Go(j,V)}return null}function q(j,D,V,X,fe){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return j=j.get(V)||null,S(D,j,""+X,fe);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case x:return j=j.get(X.key===null?V:X.key)||null,A(D,j,X,fe);case R:return j=j.get(X.key===null?V:X.key)||null,H(D,j,X,fe);case Y:return X=Fl(X),q(j,D,V,X,fe)}if(ve(X)||ne(X))return j=j.get(V)||null,$(D,j,X,fe,null);if(typeof X.then=="function")return q(j,D,V,Bo(X),fe);if(X.$$typeof===L)return q(j,D,V,Lo(D,X),fe);Go(D,X)}return null}function oe(j,D,V,X){for(var fe=null,Oe=null,ue=D,be=D=0,_e=null;ue!==null&&be<V.length;be++){ue.index>be?(_e=ue,ue=null):_e=ue.sibling;var Te=U(j,ue,V[be],X);if(Te===null){ue===null&&(ue=_e);break}e&&ue&&Te.alternate===null&&t(j,ue),D=c(Te,D,be),Oe===null?fe=Te:Oe.sibling=Te,Oe=Te,ue=_e}if(be===V.length)return l(j,ue),Me&&En(j,be),fe;if(ue===null){for(;be<V.length;be++)ue=Z(j,V[be],X),ue!==null&&(D=c(ue,D,be),Oe===null?fe=ue:Oe.sibling=ue,Oe=ue);return Me&&En(j,be),fe}for(ue=a(ue);be<V.length;be++)_e=q(ue,j,be,V[be],X),_e!==null&&(e&&_e.alternate!==null&&ue.delete(_e.key===null?be:_e.key),D=c(_e,D,be),Oe===null?fe=_e:Oe.sibling=_e,Oe=_e);return e&&ue.forEach(function(yl){return t(j,yl)}),Me&&En(j,be),fe}function ge(j,D,V,X){if(V==null)throw Error(r(151));for(var fe=null,Oe=null,ue=D,be=D=0,_e=null,Te=V.next();ue!==null&&!Te.done;be++,Te=V.next()){ue.index>be?(_e=ue,ue=null):_e=ue.sibling;var yl=U(j,ue,Te.value,X);if(yl===null){ue===null&&(ue=_e);break}e&&ue&&yl.alternate===null&&t(j,ue),D=c(yl,D,be),Oe===null?fe=yl:Oe.sibling=yl,Oe=yl,ue=_e}if(Te.done)return l(j,ue),Me&&En(j,be),fe;if(ue===null){for(;!Te.done;be++,Te=V.next())Te=Z(j,Te.value,X),Te!==null&&(D=c(Te,D,be),Oe===null?fe=Te:Oe.sibling=Te,Oe=Te);return Me&&En(j,be),fe}for(ue=a(ue);!Te.done;be++,Te=V.next())Te=q(ue,j,be,Te.value,X),Te!==null&&(e&&Te.alternate!==null&&ue.delete(Te.key===null?be:Te.key),D=c(Te,D,be),Oe===null?fe=Te:Oe.sibling=Te,Oe=Te);return e&&ue.forEach(function(t1){return t(j,t1)}),Me&&En(j,be),fe}function He(j,D,V,X){if(typeof V=="object"&&V!==null&&V.type===E&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case x:e:{for(var fe=V.key;D!==null;){if(D.key===fe){if(fe=V.type,fe===E){if(D.tag===7){l(j,D.sibling),X=u(D,V.props.children),X.return=j,j=X;break e}}else if(D.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===Y&&Fl(fe)===D.type){l(j,D.sibling),X=u(D,V.props),Ri(X,V),X.return=j,j=X;break e}l(j,D);break}else t(j,D);D=D.sibling}V.type===E?(X=Vl(V.props.children,j.mode,X,V.key),X.return=j,j=X):(X=jo(V.type,V.key,V.props,null,j.mode,X),Ri(X,V),X.return=j,j=X)}return g(j);case R:e:{for(fe=V.key;D!==null;){if(D.key===fe)if(D.tag===4&&D.stateNode.containerInfo===V.containerInfo&&D.stateNode.implementation===V.implementation){l(j,D.sibling),X=u(D,V.children||[]),X.return=j,j=X;break e}else{l(j,D);break}else t(j,D);D=D.sibling}X=Iu(V,j.mode,X),X.return=j,j=X}return g(j);case Y:return V=Fl(V),He(j,D,V,X)}if(ve(V))return oe(j,D,V,X);if(ne(V)){if(fe=ne(V),typeof fe!="function")throw Error(r(150));return V=fe.call(V),ge(j,D,V,X)}if(typeof V.then=="function")return He(j,D,Bo(V),X);if(V.$$typeof===L)return He(j,D,Lo(j,V),X);Go(j,V)}return typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint"?(V=""+V,D!==null&&D.tag===6?(l(j,D.sibling),X=u(D,V),X.return=j,j=X):(l(j,D),X=Qu(V,j.mode,X),X.return=j,j=X),g(j)):l(j,D)}return function(j,D,V,X){try{wi=0;var fe=He(j,D,V,X);return Aa=null,fe}catch(ue){if(ue===Ma||ue===Ho)throw ue;var Oe=kt(29,ue,null,j.mode);return Oe.lanes=X,Oe.return=j,Oe}finally{}}}var $l=Ag(!0),Og=Ag(!1),tl=!1;function os(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function rs(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function nl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ll(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ze&2)!==0){var u=a.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),a.pending=t,t=zo(e),dg(e,null,l),t}return Do(e,a,t,l),zo(e)}function Ei(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Sd(e,l)}}function us(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var u=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var g={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?u=c=g:c=c.next=g,l=l.next}while(l!==null);c===null?u=c=t:c=c.next=t}else u=c=t;l={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var ss=!1;function _i(){if(ss){var e=_a;if(e!==null)throw e}}function Mi(e,t,l,a){ss=!1;var u=e.updateQueue;tl=!1;var c=u.firstBaseUpdate,g=u.lastBaseUpdate,S=u.shared.pending;if(S!==null){u.shared.pending=null;var A=S,H=A.next;A.next=null,g===null?c=H:g.next=H,g=A;var $=e.alternate;$!==null&&($=$.updateQueue,S=$.lastBaseUpdate,S!==g&&(S===null?$.firstBaseUpdate=H:S.next=H,$.lastBaseUpdate=A))}if(c!==null){var Z=u.baseState;g=0,$=H=A=null,S=c;do{var U=S.lane&-536870913,q=U!==S.lane;if(q?(Ee&U)===U:(a&U)===U){U!==0&&U===Ea&&(ss=!0),$!==null&&($=$.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var oe=e,ge=S;U=t;var He=l;switch(ge.tag){case 1:if(oe=ge.payload,typeof oe=="function"){Z=oe.call(He,Z,U);break e}Z=oe;break e;case 3:oe.flags=oe.flags&-65537|128;case 0:if(oe=ge.payload,U=typeof oe=="function"?oe.call(He,Z,U):oe,U==null)break e;Z=y({},Z,U);break e;case 2:tl=!0}}U=S.callback,U!==null&&(e.flags|=64,q&&(e.flags|=8192),q=u.callbacks,q===null?u.callbacks=[U]:q.push(U))}else q={lane:U,tag:S.tag,payload:S.payload,callback:S.callback,next:null},$===null?(H=$=q,A=Z):$=$.next=q,g|=U;if(S=S.next,S===null){if(S=u.shared.pending,S===null)break;q=S,S=q.next,q.next=null,u.lastBaseUpdate=q,u.shared.pending=null}}while(!0);$===null&&(A=Z),u.baseState=A,u.firstBaseUpdate=H,u.lastBaseUpdate=$,c===null&&(u.shared.lanes=0),ul|=g,e.lanes=g,e.memoizedState=Z}}function Tg(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Dg(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Tg(l[e],t)}var Oa=O(null),Fo=O(0);function zg(e,t){e=Ln,K(Fo,e),K(Oa,t),Ln=e|t.baseLanes}function cs(){K(Fo,Ln),K(Oa,Oa.current)}function fs(){Ln=Fo.current,k(Oa),k(Fo)}var Lt=O(null),Kt=null;function al(e){var t=e.alternate;K(Pe,Pe.current&1),K(Lt,e),Kt===null&&(t===null||Oa.current!==null||t.memoizedState!==null)&&(Kt=e)}function ds(e){K(Pe,Pe.current),K(Lt,e),Kt===null&&(Kt=e)}function jg(e){e.tag===22?(K(Pe,Pe.current),K(Lt,e),Kt===null&&(Kt=e)):il()}function il(){K(Pe,Pe.current),K(Lt,Lt.current)}function Vt(e){k(Lt),Kt===e&&(Kt=null),k(Pe)}var Pe=O(0);function qo(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||yc(l)||xc(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var An=0,Se=null,Le=null,Je=null,$o=!1,Ta=!1,Yl=!1,Yo=0,Ai=0,Da=null,Yx=0;function Ye(){throw Error(r(321))}function gs(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Nt(e[l],t[l]))return!1;return!0}function ms(e,t,l,a,u,c){return An=c,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?pm:Os,Yl=!1,c=l(a,u),Yl=!1,Ta&&(c=kg(t,l,a,u)),Ng(e),c}function Ng(e){_.H=Di;var t=Le!==null&&Le.next!==null;if(An=0,Je=Le=Se=null,$o=!1,Ai=0,Da=null,t)throw Error(r(300));e===null||We||(e=e.dependencies,e!==null&&ko(e)&&(We=!0))}function kg(e,t,l,a){Se=e;var u=0;do{if(Ta&&(Da=null),Ai=0,Ta=!1,25<=u)throw Error(r(301));if(u+=1,Je=Le=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}_.H=vm,c=t(l,a)}while(Ta);return c}function Xx(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?Oi(t):t,e=e.useState()[0],(Le!==null?Le.memoizedState:null)!==e&&(Se.flags|=1024),t}function hs(){var e=Yo!==0;return Yo=0,e}function ps(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function vs(e){if($o){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}$o=!1}An=0,Je=Le=Se=null,Ta=!1,Ai=Yo=0,Da=null}function xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?Se.memoizedState=Je=e:Je=Je.next=e,Je}function Ze(){if(Le===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=Le.next;var t=Je===null?Se.memoizedState:Je.next;if(t!==null)Je=t,Le=e;else{if(e===null)throw Se.alternate===null?Error(r(467)):Error(r(310));Le=e,e={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},Je===null?Se.memoizedState=Je=e:Je=Je.next=e}return Je}function Xo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Oi(e){var t=Ai;return Ai+=1,Da===null&&(Da=[]),e=Eg(Da,e,t),t=Se,(Je===null?t.memoizedState:Je.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?pm:Os),e}function Qo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Oi(e);if(e.$$typeof===L)return ft(e)}throw Error(r(438,String(e)))}function ys(e){var t=null,l=Se.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=Se.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Xo(),Se.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=se;return t.index++,l}function On(e,t){return typeof t=="function"?t(e):t}function Io(e){var t=Ze();return xs(t,Le,e)}function xs(e,t,l){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var u=e.baseQueue,c=a.pending;if(c!==null){if(u!==null){var g=u.next;u.next=c.next,c.next=g}t.baseQueue=u=c,a.pending=null}if(c=e.baseState,u===null)e.memoizedState=c;else{t=u.next;var S=g=null,A=null,H=t,$=!1;do{var Z=H.lane&-536870913;if(Z!==H.lane?(Ee&Z)===Z:(An&Z)===Z){var U=H.revertLane;if(U===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),Z===Ea&&($=!0);else if((An&U)===U){H=H.next,U===Ea&&($=!0);continue}else Z={lane:0,revertLane:H.revertLane,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},A===null?(S=A=Z,g=c):A=A.next=Z,Se.lanes|=U,ul|=U;Z=H.action,Yl&&l(c,Z),c=H.hasEagerState?H.eagerState:l(c,Z)}else U={lane:Z,revertLane:H.revertLane,gesture:H.gesture,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},A===null?(S=A=U,g=c):A=A.next=U,Se.lanes|=Z,ul|=Z;H=H.next}while(H!==null&&H!==t);if(A===null?g=c:A.next=S,!Nt(c,e.memoizedState)&&(We=!0,$&&(l=_a,l!==null)))throw l;e.memoizedState=c,e.baseState=g,e.baseQueue=A,a.lastRenderedState=c}return u===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Ss(e){var t=Ze(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=l.dispatch,u=l.pending,c=t.memoizedState;if(u!==null){l.pending=null;var g=u=u.next;do c=e(c,g.action),g=g.next;while(g!==u);Nt(c,t.memoizedState)||(We=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),l.lastRenderedState=c}return[c,a]}function Lg(e,t,l){var a=Se,u=Ze(),c=Me;if(c){if(l===void 0)throw Error(r(407));l=l()}else l=t();var g=!Nt((Le||u).memoizedState,l);if(g&&(u.memoizedState=l,We=!0),u=u.queue,ws(Ug.bind(null,a,u,e),[e]),u.getSnapshot!==t||g||Je!==null&&Je.memoizedState.tag&1){if(a.flags|=2048,za(9,{destroy:void 0},Hg.bind(null,a,u,l,t),null),Be===null)throw Error(r(349));c||(An&127)!==0||Vg(a,t,l)}return l}function Vg(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=Se.updateQueue,t===null?(t=Xo(),Se.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Hg(e,t,l,a){t.value=l,t.getSnapshot=a,Bg(t)&&Gg(e)}function Ug(e,t,l){return l(function(){Bg(t)&&Gg(e)})}function Bg(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Nt(e,l)}catch{return!0}}function Gg(e){var t=Ll(e,2);t!==null&&Mt(t,e,2)}function bs(e){var t=xt();if(typeof e=="function"){var l=e;if(e=l(),Yl){In(!0);try{l()}finally{In(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:e},t}function Fg(e,t,l,a){return e.baseState=l,xs(e,Le,typeof a=="function"?a:On)}function Qx(e,t,l,a,u){if(Ko(e))throw Error(r(485));if(e=t.action,e!==null){var c={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){c.listeners.push(g)}};_.T!==null?l(!0):c.isTransition=!1,a(c),l=t.pending,l===null?(c.next=t.pending=c,qg(t,c)):(c.next=l.next,t.pending=l.next=c)}}function qg(e,t){var l=t.action,a=t.payload,u=e.state;if(t.isTransition){var c=_.T,g={};_.T=g;try{var S=l(u,a),A=_.S;A!==null&&A(g,S),$g(e,t,S)}catch(H){Cs(e,t,H)}finally{c!==null&&g.types!==null&&(c.types=g.types),_.T=c}}else try{c=l(u,a),$g(e,t,c)}catch(H){Cs(e,t,H)}}function $g(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Yg(e,t,a)},function(a){return Cs(e,t,a)}):Yg(e,t,l)}function Yg(e,t,l){t.status="fulfilled",t.value=l,Xg(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,qg(e,l)))}function Cs(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Xg(t),t=t.next;while(t!==a)}e.action=null}function Xg(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Qg(e,t){return t}function Ig(e,t){if(Me){var l=Be.formState;if(l!==null){e:{var a=Se;if(Me){if(Fe){t:{for(var u=Fe,c=Zt;u.nodeType!==8;){if(!c){u=null;break t}if(u=Jt(u.nextSibling),u===null){u=null;break t}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){Fe=Jt(u.nextSibling),a=u.data==="F!";break e}}Wn(a)}a=!1}a&&(t=l[0])}}return l=xt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qg,lastRenderedState:t},l.queue=a,l=gm.bind(null,Se,a),a.dispatch=l,a=bs(!1),c=As.bind(null,Se,!1,a.queue),a=xt(),u={state:t,dispatch:null,action:e,pending:null},a.queue=u,l=Qx.bind(null,Se,u,c,l),u.dispatch=l,a.memoizedState=e,[t,l,!1]}function Pg(e){var t=Ze();return Zg(t,Le,e)}function Zg(e,t,l){if(t=xs(e,t,Qg)[0],e=Io(On)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Oi(t)}catch(g){throw g===Ma?Ho:g}else a=t;t=Ze();var u=t.queue,c=u.dispatch;return l!==t.memoizedState&&(Se.flags|=2048,za(9,{destroy:void 0},Ix.bind(null,u,l),null)),[a,c,e]}function Ix(e,t){e.action=t}function Kg(e){var t=Ze(),l=Le;if(l!==null)return Zg(t,l,e);Ze(),t=t.memoizedState,l=Ze();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function za(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=Se.updateQueue,t===null&&(t=Xo(),Se.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Jg(){return Ze().memoizedState}function Po(e,t,l,a){var u=xt();Se.flags|=e,u.memoizedState=za(1|t,{destroy:void 0},l,a===void 0?null:a)}function Zo(e,t,l,a){var u=Ze();a=a===void 0?null:a;var c=u.memoizedState.inst;Le!==null&&a!==null&&gs(a,Le.memoizedState.deps)?u.memoizedState=za(t,c,l,a):(Se.flags|=e,u.memoizedState=za(1|t,c,l,a))}function Wg(e,t){Po(8390656,8,e,t)}function ws(e,t){Zo(2048,8,e,t)}function Px(e){Se.flags|=4;var t=Se.updateQueue;if(t===null)t=Xo(),Se.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function em(e){var t=Ze().memoizedState;return Px({ref:t,nextImpl:e}),function(){if((ze&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function tm(e,t){return Zo(4,2,e,t)}function nm(e,t){return Zo(4,4,e,t)}function lm(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function am(e,t,l){l=l!=null?l.concat([e]):null,Zo(4,4,lm.bind(null,t,e),l)}function Rs(){}function im(e,t){var l=Ze();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&gs(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function om(e,t){var l=Ze();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&gs(t,a[1]))return a[0];if(a=e(),Yl){In(!0);try{e()}finally{In(!1)}}return l.memoizedState=[a,t],a}function Es(e,t,l){return l===void 0||(An&1073741824)!==0&&(Ee&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=rh(),Se.lanes|=e,ul|=e,l)}function rm(e,t,l,a){return Nt(l,t)?l:Oa.current!==null?(e=Es(e,l,a),Nt(e,t)||(We=!0),e):(An&42)===0||(An&1073741824)!==0&&(Ee&261930)===0?(We=!0,e.memoizedState=l):(e=rh(),Se.lanes|=e,ul|=e,t)}function um(e,t,l,a,u){var c=T.p;T.p=c!==0&&8>c?c:8;var g=_.T,S={};_.T=S,As(e,!1,t,l);try{var A=u(),H=_.S;if(H!==null&&H(S,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var $=$x(A,a);Ti(e,t,$,Bt(e))}else Ti(e,t,a,Bt(e))}catch(Z){Ti(e,t,{then:function(){},status:"rejected",reason:Z},Bt())}finally{T.p=c,g!==null&&S.types!==null&&(g.types=S.types),_.T=g}}function Zx(){}function _s(e,t,l,a){if(e.tag!==5)throw Error(r(476));var u=sm(e).queue;um(e,u,t,I,l===null?Zx:function(){return cm(e),l(a)})}function sm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:I},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function cm(e){var t=sm(e);t.next===null&&(t=e.alternate.memoizedState),Ti(e,t.next.queue,{},Bt())}function Ms(){return ft(Qi)}function fm(){return Ze().memoizedState}function dm(){return Ze().memoizedState}function Kx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Bt();e=nl(l);var a=ll(t,e,l);a!==null&&(Mt(a,t,l),Ei(a,t,l)),t={cache:ns()},e.payload=t;return}t=t.return}}function Jx(e,t,l){var a=Bt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ko(e)?mm(t,l):(l=Yu(e,t,l,a),l!==null&&(Mt(l,e,a),hm(l,t,a)))}function gm(e,t,l){var a=Bt();Ti(e,t,l,a)}function Ti(e,t,l,a){var u={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ko(e))mm(t,u);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var g=t.lastRenderedState,S=c(g,l);if(u.hasEagerState=!0,u.eagerState=S,Nt(S,g))return Do(e,t,u,0),Be===null&&To(),!1}catch{}finally{}if(l=Yu(e,t,u,a),l!==null)return Mt(l,e,a),hm(l,t,a),!0}return!1}function As(e,t,l,a){if(a={lane:2,revertLane:oc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ko(e)){if(t)throw Error(r(479))}else t=Yu(e,l,a,2),t!==null&&Mt(t,e,2)}function Ko(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function mm(e,t){Ta=$o=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function hm(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Sd(e,l)}}var Di={readContext:ft,use:Qo,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye};Di.useEffectEvent=Ye;var pm={readContext:ft,use:Qo,useCallback:function(e,t){return xt().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:Wg,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Po(4194308,4,lm.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Po(4194308,4,e,t)},useInsertionEffect:function(e,t){Po(4,2,e,t)},useMemo:function(e,t){var l=xt();t=t===void 0?null:t;var a=e();if(Yl){In(!0);try{e()}finally{In(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=xt();if(l!==void 0){var u=l(t);if(Yl){In(!0);try{l(t)}finally{In(!1)}}}else u=t;return a.memoizedState=a.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},a.queue=e,e=e.dispatch=Jx.bind(null,Se,e),[a.memoizedState,e]},useRef:function(e){var t=xt();return e={current:e},t.memoizedState=e},useState:function(e){e=bs(e);var t=e.queue,l=gm.bind(null,Se,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Rs,useDeferredValue:function(e,t){var l=xt();return Es(l,e,t)},useTransition:function(){var e=bs(!1);return e=um.bind(null,Se,e.queue,!0,!1),xt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=Se,u=xt();if(Me){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Be===null)throw Error(r(349));(Ee&127)!==0||Vg(a,t,l)}u.memoizedState=l;var c={value:l,getSnapshot:t};return u.queue=c,Wg(Ug.bind(null,a,c,e),[e]),a.flags|=2048,za(9,{destroy:void 0},Hg.bind(null,a,c,l,t),null),l},useId:function(){var e=xt(),t=Be.identifierPrefix;if(Me){var l=cn,a=sn;l=(a&~(1<<32-jt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Yo++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Yx++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ms,useFormState:Ig,useActionState:Ig,useOptimistic:function(e){var t=xt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=As.bind(null,Se,!0,l),l.dispatch=t,[e,t]},useMemoCache:ys,useCacheRefresh:function(){return xt().memoizedState=Kx.bind(null,Se)},useEffectEvent:function(e){var t=xt(),l={impl:e};return t.memoizedState=l,function(){if((ze&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Os={readContext:ft,use:Qo,useCallback:im,useContext:ft,useEffect:ws,useImperativeHandle:am,useInsertionEffect:tm,useLayoutEffect:nm,useMemo:om,useReducer:Io,useRef:Jg,useState:function(){return Io(On)},useDebugValue:Rs,useDeferredValue:function(e,t){var l=Ze();return rm(l,Le.memoizedState,e,t)},useTransition:function(){var e=Io(On)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:Oi(e),t]},useSyncExternalStore:Lg,useId:fm,useHostTransitionStatus:Ms,useFormState:Pg,useActionState:Pg,useOptimistic:function(e,t){var l=Ze();return Fg(l,Le,e,t)},useMemoCache:ys,useCacheRefresh:dm};Os.useEffectEvent=em;var vm={readContext:ft,use:Qo,useCallback:im,useContext:ft,useEffect:ws,useImperativeHandle:am,useInsertionEffect:tm,useLayoutEffect:nm,useMemo:om,useReducer:Ss,useRef:Jg,useState:function(){return Ss(On)},useDebugValue:Rs,useDeferredValue:function(e,t){var l=Ze();return Le===null?Es(l,e,t):rm(l,Le.memoizedState,e,t)},useTransition:function(){var e=Ss(On)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:Oi(e),t]},useSyncExternalStore:Lg,useId:fm,useHostTransitionStatus:Ms,useFormState:Kg,useActionState:Kg,useOptimistic:function(e,t){var l=Ze();return Le!==null?Fg(l,Le,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:ys,useCacheRefresh:dm};vm.useEffectEvent=em;function Ts(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:y({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Ds={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Bt(),u=nl(a);u.payload=t,l!=null&&(u.callback=l),t=ll(e,u,a),t!==null&&(Mt(t,e,a),Ei(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Bt(),u=nl(a);u.tag=1,u.payload=t,l!=null&&(u.callback=l),t=ll(e,u,a),t!==null&&(Mt(t,e,a),Ei(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Bt(),a=nl(l);a.tag=2,t!=null&&(a.callback=t),t=ll(e,a,l),t!==null&&(Mt(t,e,l),Ei(t,e,l))}};function ym(e,t,l,a,u,c,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,g):t.prototype&&t.prototype.isPureReactComponent?!vi(l,a)||!vi(u,c):!0}function xm(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Ds.enqueueReplaceState(t,t.state,null)}function Xl(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=y({},l));for(var u in e)l[u]===void 0&&(l[u]=e[u])}return l}function Sm(e){Oo(e)}function bm(e){console.error(e)}function Cm(e){Oo(e)}function Jo(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function wm(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function zs(e,t,l){return l=nl(l),l.tag=3,l.payload={element:null},l.callback=function(){Jo(e,t)},l}function Rm(e){return e=nl(e),e.tag=3,e}function Em(e,t,l,a){var u=l.type.getDerivedStateFromError;if(typeof u=="function"){var c=a.value;e.payload=function(){return u(c)},e.callback=function(){wm(t,l,a)}}var g=l.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){wm(t,l,a),typeof u!="function"&&(sl===null?sl=new Set([this]):sl.add(this));var S=a.stack;this.componentDidCatch(a.value,{componentStack:S!==null?S:""})})}function Wx(e,t,l,a,u){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Ra(t,l,u,!0),l=Lt.current,l!==null){switch(l.tag){case 31:case 13:return Kt===null?cr():l.alternate===null&&Xe===0&&(Xe=3),l.flags&=-257,l.flags|=65536,l.lanes=u,a===Uo?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),lc(e,a,u)),!1;case 22:return l.flags|=65536,a===Uo?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),lc(e,a,u)),!1}throw Error(r(435,l.tag))}return lc(e,a,u),cr(),!1}if(Me)return t=Lt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,a!==Ku&&(e=Error(r(422),{cause:a}),Si(Qt(e,l)))):(a!==Ku&&(t=Error(r(423),{cause:a}),Si(Qt(t,l))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,a=Qt(a,l),u=zs(e.stateNode,a,u),us(e,u),Xe!==4&&(Xe=2)),!1;var c=Error(r(520),{cause:a});if(c=Qt(c,l),Ui===null?Ui=[c]:Ui.push(c),Xe!==4&&(Xe=2),t===null)return!0;a=Qt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=u&-u,l.lanes|=e,e=zs(l.stateNode,a,e),us(l,e),!1;case 1:if(t=l.type,c=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(sl===null||!sl.has(c))))return l.flags|=65536,u&=-u,l.lanes|=u,u=Rm(u),Em(u,e,l,a),us(l,u),!1}l=l.return}while(l!==null);return!1}var js=Error(r(461)),We=!1;function dt(e,t,l,a){t.child=e===null?Og(t,null,l,a):$l(t,e.child,l,a)}function _m(e,t,l,a,u){l=l.render;var c=t.ref;if("ref"in a){var g={};for(var S in a)S!=="ref"&&(g[S]=a[S])}else g=a;return Bl(t),a=ms(e,t,l,g,c,u),S=hs(),e!==null&&!We?(ps(e,t,u),Tn(e,t,u)):(Me&&S&&Pu(t),t.flags|=1,dt(e,t,a,u),t.child)}function Mm(e,t,l,a,u){if(e===null){var c=l.type;return typeof c=="function"&&!Xu(c)&&c.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=c,Am(e,t,c,a,u)):(e=jo(l.type,null,a,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Gs(e,u)){var g=c.memoizedProps;if(l=l.compare,l=l!==null?l:vi,l(g,a)&&e.ref===t.ref)return Tn(e,t,u)}return t.flags|=1,e=Rn(c,a),e.ref=t.ref,e.return=t,t.child=e}function Am(e,t,l,a,u){if(e!==null){var c=e.memoizedProps;if(vi(c,a)&&e.ref===t.ref)if(We=!1,t.pendingProps=a=c,Gs(e,u))(e.flags&131072)!==0&&(We=!0);else return t.lanes=e.lanes,Tn(e,t,u)}return Ns(e,t,l,a,u)}function Om(e,t,l,a){var u=a.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|l:l,e!==null){for(a=t.child=e.child,u=0;a!==null;)u=u|a.lanes|a.childLanes,a=a.sibling;a=u&~c}else a=0,t.child=null;return Tm(e,t,c,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Vo(t,c!==null?c.cachePool:null),c!==null?zg(t,c):cs(),jg(t);else return a=t.lanes=536870912,Tm(e,t,c!==null?c.baseLanes|l:l,l,a)}else c!==null?(Vo(t,c.cachePool),zg(t,c),il(),t.memoizedState=null):(e!==null&&Vo(t,null),cs(),il());return dt(e,t,u,l),t.child}function zi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Tm(e,t,l,a,u){var c=as();return c=c===null?null:{parent:Ke._currentValue,pool:c},t.memoizedState={baseLanes:l,cachePool:c},e!==null&&Vo(t,null),cs(),jg(t),e!==null&&Ra(e,t,a,!0),t.childLanes=u,null}function Wo(e,t){return t=tr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Dm(e,t,l){return $l(t,e.child,null,l),e=Wo(t,t.pendingProps),e.flags|=2,Vt(t),t.memoizedState=null,e}function eS(e,t,l){var a=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Me){if(a.mode==="hidden")return e=Wo(t,a),t.lanes=536870912,zi(null,e);if(ds(t),(e=Fe)?(e=qh(e,Zt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Kn!==null?{id:sn,overflow:cn}:null,retryLane:536870912,hydrationErrors:null},l=mg(e),l.return=t,t.child=l,ct=t,Fe=null)):e=null,e===null)throw Wn(t);return t.lanes=536870912,null}return Wo(t,a)}var c=e.memoizedState;if(c!==null){var g=c.dehydrated;if(ds(t),u)if(t.flags&256)t.flags&=-257,t=Dm(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(We||Ra(e,t,l,!1),u=(l&e.childLanes)!==0,We||u){if(a=Be,a!==null&&(g=bd(a,l),g!==0&&g!==c.retryLane))throw c.retryLane=g,Ll(e,g),Mt(a,e,g),js;cr(),t=Dm(e,t,l)}else e=c.treeContext,Fe=Jt(g.nextSibling),ct=t,Me=!0,Jn=null,Zt=!1,e!==null&&vg(t,e),t=Wo(t,a),t.flags|=4096;return t}return e=Rn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function er(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Ns(e,t,l,a,u){return Bl(t),l=ms(e,t,l,a,void 0,u),a=hs(),e!==null&&!We?(ps(e,t,u),Tn(e,t,u)):(Me&&a&&Pu(t),t.flags|=1,dt(e,t,l,u),t.child)}function zm(e,t,l,a,u,c){return Bl(t),t.updateQueue=null,l=kg(t,a,l,u),Ng(e),a=hs(),e!==null&&!We?(ps(e,t,c),Tn(e,t,c)):(Me&&a&&Pu(t),t.flags|=1,dt(e,t,l,c),t.child)}function jm(e,t,l,a,u){if(Bl(t),t.stateNode===null){var c=Sa,g=l.contextType;typeof g=="object"&&g!==null&&(c=ft(g)),c=new l(a,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Ds,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=a,c.state=t.memoizedState,c.refs={},os(t),g=l.contextType,c.context=typeof g=="object"&&g!==null?ft(g):Sa,c.state=t.memoizedState,g=l.getDerivedStateFromProps,typeof g=="function"&&(Ts(t,l,g,a),c.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(g=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),g!==c.state&&Ds.enqueueReplaceState(c,c.state,null),Mi(t,a,c,u),_i(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){c=t.stateNode;var S=t.memoizedProps,A=Xl(l,S);c.props=A;var H=c.context,$=l.contextType;g=Sa,typeof $=="object"&&$!==null&&(g=ft($));var Z=l.getDerivedStateFromProps;$=typeof Z=="function"||typeof c.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,$||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(S||H!==g)&&xm(t,c,a,g),tl=!1;var U=t.memoizedState;c.state=U,Mi(t,a,c,u),_i(),H=t.memoizedState,S||U!==H||tl?(typeof Z=="function"&&(Ts(t,l,Z,a),H=t.memoizedState),(A=tl||ym(t,l,A,a,U,H,g))?($||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=H),c.props=a,c.state=H,c.context=g,a=A):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{c=t.stateNode,rs(e,t),g=t.memoizedProps,$=Xl(l,g),c.props=$,Z=t.pendingProps,U=c.context,H=l.contextType,A=Sa,typeof H=="object"&&H!==null&&(A=ft(H)),S=l.getDerivedStateFromProps,(H=typeof S=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g!==Z||U!==A)&&xm(t,c,a,A),tl=!1,U=t.memoizedState,c.state=U,Mi(t,a,c,u),_i();var q=t.memoizedState;g!==Z||U!==q||tl||e!==null&&e.dependencies!==null&&ko(e.dependencies)?(typeof S=="function"&&(Ts(t,l,S,a),q=t.memoizedState),($=tl||ym(t,l,$,a,U,q,A)||e!==null&&e.dependencies!==null&&ko(e.dependencies))?(H||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,q,A),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,q,A)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=q),c.props=a,c.state=q,c.context=A,a=$):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),a=!1)}return c=a,er(e,t),a=(t.flags&128)!==0,c||a?(c=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&a?(t.child=$l(t,e.child,null,u),t.child=$l(t,null,l,u)):dt(e,t,l,u),t.memoizedState=c.state,e=t.child):e=Tn(e,t,u),e}function Nm(e,t,l,a){return Hl(),t.flags|=256,dt(e,t,l,a),t.child}var ks={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ls(e){return{baseLanes:e,cachePool:wg()}}function Vs(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Ut),e}function km(e,t,l){var a=t.pendingProps,u=!1,c=(t.flags&128)!==0,g;if((g=c)||(g=e!==null&&e.memoizedState===null?!1:(Pe.current&2)!==0),g&&(u=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(Me){if(u?al(t):il(),(e=Fe)?(e=qh(e,Zt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Kn!==null?{id:sn,overflow:cn}:null,retryLane:536870912,hydrationErrors:null},l=mg(e),l.return=t,t.child=l,ct=t,Fe=null)):e=null,e===null)throw Wn(t);return xc(e)?t.lanes=32:t.lanes=536870912,null}var S=a.children;return a=a.fallback,u?(il(),u=t.mode,S=tr({mode:"hidden",children:S},u),a=Vl(a,u,l,null),S.return=t,a.return=t,S.sibling=a,t.child=S,a=t.child,a.memoizedState=Ls(l),a.childLanes=Vs(e,g,l),t.memoizedState=ks,zi(null,a)):(al(t),Hs(t,S))}var A=e.memoizedState;if(A!==null&&(S=A.dehydrated,S!==null)){if(c)t.flags&256?(al(t),t.flags&=-257,t=Us(e,t,l)):t.memoizedState!==null?(il(),t.child=e.child,t.flags|=128,t=null):(il(),S=a.fallback,u=t.mode,a=tr({mode:"visible",children:a.children},u),S=Vl(S,u,l,null),S.flags|=2,a.return=t,S.return=t,a.sibling=S,t.child=a,$l(t,e.child,null,l),a=t.child,a.memoizedState=Ls(l),a.childLanes=Vs(e,g,l),t.memoizedState=ks,t=zi(null,a));else if(al(t),xc(S)){if(g=S.nextSibling&&S.nextSibling.dataset,g)var H=g.dgst;g=H,a=Error(r(419)),a.stack="",a.digest=g,Si({value:a,source:null,stack:null}),t=Us(e,t,l)}else if(We||Ra(e,t,l,!1),g=(l&e.childLanes)!==0,We||g){if(g=Be,g!==null&&(a=bd(g,l),a!==0&&a!==A.retryLane))throw A.retryLane=a,Ll(e,a),Mt(g,e,a),js;yc(S)||cr(),t=Us(e,t,l)}else yc(S)?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,Fe=Jt(S.nextSibling),ct=t,Me=!0,Jn=null,Zt=!1,e!==null&&vg(t,e),t=Hs(t,a.children),t.flags|=4096);return t}return u?(il(),S=a.fallback,u=t.mode,A=e.child,H=A.sibling,a=Rn(A,{mode:"hidden",children:a.children}),a.subtreeFlags=A.subtreeFlags&65011712,H!==null?S=Rn(H,S):(S=Vl(S,u,l,null),S.flags|=2),S.return=t,a.return=t,a.sibling=S,t.child=a,zi(null,a),a=t.child,S=e.child.memoizedState,S===null?S=Ls(l):(u=S.cachePool,u!==null?(A=Ke._currentValue,u=u.parent!==A?{parent:A,pool:A}:u):u=wg(),S={baseLanes:S.baseLanes|l,cachePool:u}),a.memoizedState=S,a.childLanes=Vs(e,g,l),t.memoizedState=ks,zi(e.child,a)):(al(t),l=e.child,e=l.sibling,l=Rn(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=l,t.memoizedState=null,l)}function Hs(e,t){return t=tr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function tr(e,t){return e=kt(22,e,null,t),e.lanes=0,e}function Us(e,t,l){return $l(t,e.child,null,l),e=Hs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Lm(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),es(e.return,t,l)}function Bs(e,t,l,a,u,c){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:u,treeForkCount:c}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=a,g.tail=l,g.tailMode=u,g.treeForkCount=c)}function Vm(e,t,l){var a=t.pendingProps,u=a.revealOrder,c=a.tail;a=a.children;var g=Pe.current,S=(g&2)!==0;if(S?(g=g&1|2,t.flags|=128):g&=1,K(Pe,g),dt(e,t,a,l),a=Me?xi:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Lm(e,l,t);else if(e.tag===19)Lm(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(l=t.child,u=null;l!==null;)e=l.alternate,e!==null&&qo(e)===null&&(u=l),l=l.sibling;l=u,l===null?(u=t.child,t.child=null):(u=l.sibling,l.sibling=null),Bs(t,!1,u,l,c,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&qo(e)===null){t.child=u;break}e=u.sibling,u.sibling=l,l=u,u=e}Bs(t,!0,l,null,c,a);break;case"together":Bs(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Tn(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),ul|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Ra(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=Rn(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Rn(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Gs(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ko(e)))}function tS(e,t,l){switch(t.tag){case 3:Ae(t,t.stateNode.containerInfo),el(t,Ke,e.memoizedState.cache),Hl();break;case 27:case 5:Ie(t);break;case 4:Ae(t,t.stateNode.containerInfo);break;case 10:el(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ds(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(al(t),t.flags|=128,null):(l&t.child.childLanes)!==0?km(e,t,l):(al(t),e=Tn(e,t,l),e!==null?e.sibling:null);al(t);break;case 19:var u=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Ra(e,t,l,!1),a=(l&t.childLanes)!==0),u){if(a)return Vm(e,t,l);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),K(Pe,Pe.current),a)break;return null;case 22:return t.lanes=0,Om(e,t,l,t.pendingProps);case 24:el(t,Ke,e.memoizedState.cache)}return Tn(e,t,l)}function Hm(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)We=!0;else{if(!Gs(e,l)&&(t.flags&128)===0)return We=!1,tS(e,t,l);We=(e.flags&131072)!==0}else We=!1,Me&&(t.flags&1048576)!==0&&pg(t,xi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Fl(t.elementType),t.type=e,typeof e=="function")Xu(e)?(a=Xl(e,a),t.tag=1,t=jm(null,t,e,a,l)):(t.tag=0,t=Ns(null,t,e,a,l));else{if(e!=null){var u=e.$$typeof;if(u===F){t.tag=11,t=_m(null,t,e,a,l);break e}else if(u===Q){t.tag=14,t=Mm(null,t,e,a,l);break e}}throw t=de(e)||e,Error(r(306,t,""))}}return t;case 0:return Ns(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,u=Xl(a,t.pendingProps),jm(e,t,a,u,l);case 3:e:{if(Ae(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var c=t.memoizedState;u=c.element,rs(e,t),Mi(t,a,null,l);var g=t.memoizedState;if(a=g.cache,el(t,Ke,a),a!==c.cache&&ts(t,[Ke],l,!0),_i(),a=g.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Nm(e,t,a,l);break e}else if(a!==u){u=Qt(Error(r(424)),t),Si(u),t=Nm(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Fe=Jt(e.firstChild),ct=t,Me=!0,Jn=null,Zt=!0,l=Og(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Hl(),a===u){t=Tn(e,t,l);break e}dt(e,t,a,l)}t=t.child}return t;case 26:return er(e,t),e===null?(l=Ph(t.type,null,t.pendingProps,null))?t.memoizedState=l:Me||(l=t.type,e=t.pendingProps,a=vr(re.current).createElement(l),a[st]=t,a[bt]=e,gt(a,l,e),it(a),t.stateNode=a):t.memoizedState=Ph(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ie(t),e===null&&Me&&(a=t.stateNode=Xh(t.type,t.pendingProps,re.current),ct=t,Zt=!0,u=Fe,gl(t.type)?(Sc=u,Fe=Jt(a.firstChild)):Fe=u),dt(e,t,t.pendingProps.children,l),er(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Me&&((u=a=Fe)&&(a=DS(a,t.type,t.pendingProps,Zt),a!==null?(t.stateNode=a,ct=t,Fe=Jt(a.firstChild),Zt=!1,u=!0):u=!1),u||Wn(t)),Ie(t),u=t.type,c=t.pendingProps,g=e!==null?e.memoizedProps:null,a=c.children,hc(u,c)?a=null:g!==null&&hc(u,g)&&(t.flags|=32),t.memoizedState!==null&&(u=ms(e,t,Xx,null,null,l),Qi._currentValue=u),er(e,t),dt(e,t,a,l),t.child;case 6:return e===null&&Me&&((e=l=Fe)&&(l=zS(l,t.pendingProps,Zt),l!==null?(t.stateNode=l,ct=t,Fe=null,e=!0):e=!1),e||Wn(t)),null;case 13:return km(e,t,l);case 4:return Ae(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=$l(t,null,a,l):dt(e,t,a,l),t.child;case 11:return _m(e,t,t.type,t.pendingProps,l);case 7:return dt(e,t,t.pendingProps,l),t.child;case 8:return dt(e,t,t.pendingProps.children,l),t.child;case 12:return dt(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,el(t,t.type,a.value),dt(e,t,a.children,l),t.child;case 9:return u=t.type._context,a=t.pendingProps.children,Bl(t),u=ft(u),a=a(u),t.flags|=1,dt(e,t,a,l),t.child;case 14:return Mm(e,t,t.type,t.pendingProps,l);case 15:return Am(e,t,t.type,t.pendingProps,l);case 19:return Vm(e,t,l);case 31:return eS(e,t,l);case 22:return Om(e,t,l,t.pendingProps);case 24:return Bl(t),a=ft(Ke),e===null?(u=as(),u===null&&(u=Be,c=ns(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=l),u=c),t.memoizedState={parent:a,cache:u},os(t),el(t,Ke,u)):((e.lanes&l)!==0&&(rs(e,t),Mi(t,null,null,l),_i()),u=e.memoizedState,c=t.memoizedState,u.parent!==a?(u={parent:a,cache:a},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),el(t,Ke,a)):(a=c.cache,el(t,Ke,a),a!==u.cache&&ts(t,[Ke],l,!0))),dt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Dn(e){e.flags|=4}function Fs(e,t,l,a,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(fh())e.flags|=8192;else throw ql=Uo,is}else e.flags&=-16777217}function Um(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!ep(t))if(fh())e.flags|=8192;else throw ql=Uo,is}function nr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?yd():536870912,e.lanes|=t,La|=t)}function ji(e,t){if(!Me)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var u=e.child;u!==null;)l|=u.lanes|u.childLanes,a|=u.subtreeFlags&65011712,a|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)l|=u.lanes|u.childLanes,a|=u.subtreeFlags,a|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function nS(e,t,l){var a=t.pendingProps;switch(Zu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return qe(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Mn(Ke),ye(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(wa(t)?Dn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ju())),qe(t),null;case 26:var u=t.type,c=t.memoizedState;return e===null?(Dn(t),c!==null?(qe(t),Um(t,c)):(qe(t),Fs(t,u,null,a,l))):c?c!==e.memoizedState?(Dn(t),qe(t),Um(t,c)):(qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Dn(t),qe(t),Fs(t,u,e,a,l)),null;case 27:if(vt(t),l=re.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Dn(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return qe(t),null}e=J.current,wa(t)?yg(t):(e=Xh(u,a,l),t.stateNode=e,Dn(t))}return qe(t),null;case 5:if(vt(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Dn(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return qe(t),null}if(c=J.current,wa(t))yg(t);else{var g=vr(re.current);switch(c){case 1:c=g.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:c=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":c=g.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":c=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":c=g.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?g.createElement("select",{is:a.is}):g.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?g.createElement(u,{is:a.is}):g.createElement(u)}}c[st]=t,c[bt]=a;e:for(g=t.child;g!==null;){if(g.tag===5||g.tag===6)c.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}t.stateNode=c;e:switch(gt(c,u,a),u){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Dn(t)}}return qe(t),Fs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Dn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=re.current,wa(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,u=ct,u!==null)switch(u.tag){case 27:case 5:a=u.memoizedProps}e[st]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||kh(e.nodeValue,l)),e||Wn(t,!0)}else e=vr(e).createTextNode(a),e[st]=t,t.stateNode=e}return qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=wa(t),l!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[st]=t}else Hl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else l=Ju(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Vt(t),t):(Vt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=wa(t),a!==null&&a.dehydrated!==null){if(e===null){if(!u)throw Error(r(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));u[st]=t}else Hl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),u=!1}else u=Ju(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(Vt(t),t):(Vt(t),null)}return Vt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,u=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(u=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==u&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),nr(t,t.updateQueue),qe(t),null);case 4:return ye(),e===null&&cc(t.stateNode.containerInfo),qe(t),null;case 10:return Mn(t.type),qe(t),null;case 19:if(k(Pe),a=t.memoizedState,a===null)return qe(t),null;if(u=(t.flags&128)!==0,c=a.rendering,c===null)if(u)ji(a,!1);else{if(Xe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=qo(e),c!==null){for(t.flags|=128,ji(a,!1),e=c.updateQueue,t.updateQueue=e,nr(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)gg(l,e),l=l.sibling;return K(Pe,Pe.current&1|2),Me&&En(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Dt()>rr&&(t.flags|=128,u=!0,ji(a,!1),t.lanes=4194304)}else{if(!u)if(e=qo(c),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,nr(t,e),ji(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!Me)return qe(t),null}else 2*Dt()-a.renderingStartTime>rr&&l!==536870912&&(t.flags|=128,u=!0,ji(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Dt(),e.sibling=null,l=Pe.current,K(Pe,u?l&1|2:l&1),Me&&En(t,a.treeForkCount),e):(qe(t),null);case 22:case 23:return Vt(t),fs(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&nr(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&k(Gl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Mn(Ke),qe(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function lS(e,t){switch(Zu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mn(Ke),ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return vt(t),null;case 31:if(t.memoizedState!==null){if(Vt(t),t.alternate===null)throw Error(r(340));Hl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Vt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Hl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return k(Pe),null;case 4:return ye(),null;case 10:return Mn(t.type),null;case 22:case 23:return Vt(t),fs(),e!==null&&k(Gl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Mn(Ke),null;case 25:return null;default:return null}}function Bm(e,t){switch(Zu(t),t.tag){case 3:Mn(Ke),ye();break;case 26:case 27:case 5:vt(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&Vt(t);break;case 13:Vt(t);break;case 19:k(Pe);break;case 10:Mn(t.type);break;case 22:case 23:Vt(t),fs(),e!==null&&k(Gl);break;case 24:Mn(Ke)}}function Ni(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var u=a.next;l=u;do{if((l.tag&e)===e){a=void 0;var c=l.create,g=l.inst;a=c(),g.destroy=a}l=l.next}while(l!==u)}}catch(S){ke(t,t.return,S)}}function ol(e,t,l){try{var a=t.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var c=u.next;a=c;do{if((a.tag&e)===e){var g=a.inst,S=g.destroy;if(S!==void 0){g.destroy=void 0,u=t;var A=l,H=S;try{H()}catch($){ke(u,A,$)}}}a=a.next}while(a!==c)}}catch($){ke(t,t.return,$)}}function Gm(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Dg(t,l)}catch(a){ke(e,e.return,a)}}}function Fm(e,t,l){l.props=Xl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){ke(e,t,a)}}function ki(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(u){ke(e,t,u)}}function fn(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(u){ke(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(u){ke(e,t,u)}else l.current=null}function qm(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(u){ke(e,e.return,u)}}function qs(e,t,l){try{var a=e.stateNode;ES(a,e.type,l,t),a[bt]=t}catch(u){ke(e,e.return,u)}}function $m(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&gl(e.type)||e.tag===4}function $s(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$m(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&gl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ys(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Cn));else if(a!==4&&(a===27&&gl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Ys(e,t,l),e=e.sibling;e!==null;)Ys(e,t,l),e=e.sibling}function lr(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&gl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(lr(e,t,l),e=e.sibling;e!==null;)lr(e,t,l),e=e.sibling}function Ym(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);gt(t,a,l),t[st]=e,t[bt]=l}catch(c){ke(e,e.return,c)}}var zn=!1,et=!1,Xs=!1,Xm=typeof WeakSet=="function"?WeakSet:Set,ot=null;function aS(e,t){if(e=e.containerInfo,gc=Rr,e=ag(e),Uu(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var u=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var g=0,S=-1,A=-1,H=0,$=0,Z=e,U=null;t:for(;;){for(var q;Z!==l||u!==0&&Z.nodeType!==3||(S=g+u),Z!==c||a!==0&&Z.nodeType!==3||(A=g+a),Z.nodeType===3&&(g+=Z.nodeValue.length),(q=Z.firstChild)!==null;)U=Z,Z=q;for(;;){if(Z===e)break t;if(U===l&&++H===u&&(S=g),U===c&&++$===a&&(A=g),(q=Z.nextSibling)!==null)break;Z=U,U=Z.parentNode}Z=q}l=S===-1||A===-1?null:{start:S,end:A}}else l=null}l=l||{start:0,end:0}}else l=null;for(mc={focusedElem:e,selectionRange:l},Rr=!1,ot=t;ot!==null;)if(t=ot,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ot=e;else for(;ot!==null;){switch(t=ot,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)u=e[l],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,l=t,u=c.memoizedProps,c=c.memoizedState,a=l.stateNode;try{var oe=Xl(l.type,u);e=a.getSnapshotBeforeUpdate(oe,c),a.__reactInternalSnapshotBeforeUpdate=e}catch(ge){ke(l,l.return,ge)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)vc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":vc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,ot=e;break}ot=t.return}}function Qm(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Nn(e,l),a&4&&Ni(5,l);break;case 1:if(Nn(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(g){ke(l,l.return,g)}else{var u=Xl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){ke(l,l.return,g)}}a&64&&Gm(l),a&512&&ki(l,l.return);break;case 3:if(Nn(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Dg(e,t)}catch(g){ke(l,l.return,g)}}break;case 27:t===null&&a&4&&Ym(l);case 26:case 5:Nn(e,l),t===null&&a&4&&qm(l),a&512&&ki(l,l.return);break;case 12:Nn(e,l);break;case 31:Nn(e,l),a&4&&Zm(e,l);break;case 13:Nn(e,l),a&4&&Km(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=gS.bind(null,l),jS(e,l))));break;case 22:if(a=l.memoizedState!==null||zn,!a){t=t!==null&&t.memoizedState!==null||et,u=zn;var c=et;zn=a,(et=t)&&!c?kn(e,l,(l.subtreeFlags&8772)!==0):Nn(e,l),zn=u,et=c}break;case 30:break;default:Nn(e,l)}}function Im(e){var t=e.alternate;t!==null&&(e.alternate=null,Im(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Cu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var $e=null,wt=!1;function jn(e,t,l){for(l=l.child;l!==null;)Pm(e,t,l),l=l.sibling}function Pm(e,t,l){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount(ii,l)}catch{}switch(l.tag){case 26:et||fn(l,t),jn(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:et||fn(l,t);var a=$e,u=wt;gl(l.type)&&($e=l.stateNode,wt=!1),jn(e,t,l),$i(l.stateNode),$e=a,wt=u;break;case 5:et||fn(l,t);case 6:if(a=$e,u=wt,$e=null,jn(e,t,l),$e=a,wt=u,$e!==null)if(wt)try{($e.nodeType===9?$e.body:$e.nodeName==="HTML"?$e.ownerDocument.body:$e).removeChild(l.stateNode)}catch(c){ke(l,t,c)}else try{$e.removeChild(l.stateNode)}catch(c){ke(l,t,c)}break;case 18:$e!==null&&(wt?(e=$e,Gh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),$a(e)):Gh($e,l.stateNode));break;case 4:a=$e,u=wt,$e=l.stateNode.containerInfo,wt=!0,jn(e,t,l),$e=a,wt=u;break;case 0:case 11:case 14:case 15:ol(2,l,t),et||ol(4,l,t),jn(e,t,l);break;case 1:et||(fn(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Fm(l,t,a)),jn(e,t,l);break;case 21:jn(e,t,l);break;case 22:et=(a=et)||l.memoizedState!==null,jn(e,t,l),et=a;break;default:jn(e,t,l)}}function Zm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{$a(e)}catch(l){ke(t,t.return,l)}}}function Km(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{$a(e)}catch(l){ke(t,t.return,l)}}function iS(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Xm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Xm),t;default:throw Error(r(435,e.tag))}}function ar(e,t){var l=iS(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var u=mS.bind(null,e,a);a.then(u,u)}})}function Rt(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var u=l[a],c=e,g=t,S=g;e:for(;S!==null;){switch(S.tag){case 27:if(gl(S.type)){$e=S.stateNode,wt=!1;break e}break;case 5:$e=S.stateNode,wt=!1;break e;case 3:case 4:$e=S.stateNode.containerInfo,wt=!0;break e}S=S.return}if($e===null)throw Error(r(160));Pm(c,g,u),$e=null,wt=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Jm(t,e),t=t.sibling}var an=null;function Jm(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Rt(t,e),Et(e),a&4&&(ol(3,e,e.return),Ni(3,e),ol(5,e,e.return));break;case 1:Rt(t,e),Et(e),a&512&&(et||l===null||fn(l,l.return)),a&64&&zn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var u=an;if(Rt(t,e),Et(e),a&512&&(et||l===null||fn(l,l.return)),a&4){var c=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,u=u.ownerDocument||u;t:switch(a){case"title":c=u.getElementsByTagName("title")[0],(!c||c[ui]||c[st]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(a),u.head.insertBefore(c,u.querySelector("head > title"))),gt(c,a,l),c[st]=e,it(c),a=c;break e;case"link":var g=Jh("link","href",u).get(a+(l.href||""));if(g){for(var S=0;S<g.length;S++)if(c=g[S],c.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&c.getAttribute("rel")===(l.rel==null?null:l.rel)&&c.getAttribute("title")===(l.title==null?null:l.title)&&c.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){g.splice(S,1);break t}}c=u.createElement(a),gt(c,a,l),u.head.appendChild(c);break;case"meta":if(g=Jh("meta","content",u).get(a+(l.content||""))){for(S=0;S<g.length;S++)if(c=g[S],c.getAttribute("content")===(l.content==null?null:""+l.content)&&c.getAttribute("name")===(l.name==null?null:l.name)&&c.getAttribute("property")===(l.property==null?null:l.property)&&c.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&c.getAttribute("charset")===(l.charSet==null?null:l.charSet)){g.splice(S,1);break t}}c=u.createElement(a),gt(c,a,l),u.head.appendChild(c);break;default:throw Error(r(468,a))}c[st]=e,it(c),a=c}e.stateNode=a}else Wh(u,e.type,e.stateNode);else e.stateNode=Kh(u,a,e.memoizedProps);else c!==a?(c===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):c.count--,a===null?Wh(u,e.type,e.stateNode):Kh(u,a,e.memoizedProps)):a===null&&e.stateNode!==null&&qs(e,e.memoizedProps,l.memoizedProps)}break;case 27:Rt(t,e),Et(e),a&512&&(et||l===null||fn(l,l.return)),l!==null&&a&4&&qs(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Rt(t,e),Et(e),a&512&&(et||l===null||fn(l,l.return)),e.flags&32){u=e.stateNode;try{ga(u,"")}catch(oe){ke(e,e.return,oe)}}a&4&&e.stateNode!=null&&(u=e.memoizedProps,qs(e,u,l!==null?l.memoizedProps:u)),a&1024&&(Xs=!0);break;case 6:if(Rt(t,e),Et(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(oe){ke(e,e.return,oe)}}break;case 3:if(Sr=null,u=an,an=yr(t.containerInfo),Rt(t,e),an=u,Et(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{$a(t.containerInfo)}catch(oe){ke(e,e.return,oe)}Xs&&(Xs=!1,Wm(e));break;case 4:a=an,an=yr(e.stateNode.containerInfo),Rt(t,e),Et(e),an=a;break;case 12:Rt(t,e),Et(e);break;case 31:Rt(t,e),Et(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ar(e,a)));break;case 13:Rt(t,e),Et(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(or=Dt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ar(e,a)));break;case 22:u=e.memoizedState!==null;var A=l!==null&&l.memoizedState!==null,H=zn,$=et;if(zn=H||u,et=$||A,Rt(t,e),et=$,zn=H,Et(e),a&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(l===null||A||zn||et||Ql(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){A=l=t;try{if(c=A.stateNode,u)g=c.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{S=A.stateNode;var Z=A.memoizedProps.style,U=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;S.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(oe){ke(A,A.return,oe)}}}else if(t.tag===6){if(l===null){A=t;try{A.stateNode.nodeValue=u?"":A.memoizedProps}catch(oe){ke(A,A.return,oe)}}}else if(t.tag===18){if(l===null){A=t;try{var q=A.stateNode;u?Fh(q,!0):Fh(A.stateNode,!1)}catch(oe){ke(A,A.return,oe)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,ar(e,l))));break;case 19:Rt(t,e),Et(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ar(e,a)));break;case 30:break;case 21:break;default:Rt(t,e),Et(e)}}function Et(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if($m(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var u=l.stateNode,c=$s(e);lr(e,c,u);break;case 5:var g=l.stateNode;l.flags&32&&(ga(g,""),l.flags&=-33);var S=$s(e);lr(e,S,g);break;case 3:case 4:var A=l.stateNode.containerInfo,H=$s(e);Ys(e,H,A);break;default:throw Error(r(161))}}catch($){ke(e,e.return,$)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Wm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Wm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Nn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Qm(e,t.alternate,t),t=t.sibling}function Ql(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ol(4,t,t.return),Ql(t);break;case 1:fn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Fm(t,t.return,l),Ql(t);break;case 27:$i(t.stateNode);case 26:case 5:fn(t,t.return),Ql(t);break;case 22:t.memoizedState===null&&Ql(t);break;case 30:Ql(t);break;default:Ql(t)}e=e.sibling}}function kn(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,u=e,c=t,g=c.flags;switch(c.tag){case 0:case 11:case 15:kn(u,c,l),Ni(4,c);break;case 1:if(kn(u,c,l),a=c,u=a.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(H){ke(a,a.return,H)}if(a=c,u=a.updateQueue,u!==null){var S=a.stateNode;try{var A=u.shared.hiddenCallbacks;if(A!==null)for(u.shared.hiddenCallbacks=null,u=0;u<A.length;u++)Tg(A[u],S)}catch(H){ke(a,a.return,H)}}l&&g&64&&Gm(c),ki(c,c.return);break;case 27:Ym(c);case 26:case 5:kn(u,c,l),l&&a===null&&g&4&&qm(c),ki(c,c.return);break;case 12:kn(u,c,l);break;case 31:kn(u,c,l),l&&g&4&&Zm(u,c);break;case 13:kn(u,c,l),l&&g&4&&Km(u,c);break;case 22:c.memoizedState===null&&kn(u,c,l),ki(c,c.return);break;case 30:break;default:kn(u,c,l)}t=t.sibling}}function Qs(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&bi(l))}function Is(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&bi(e))}function on(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)eh(e,t,l,a),t=t.sibling}function eh(e,t,l,a){var u=t.flags;switch(t.tag){case 0:case 11:case 15:on(e,t,l,a),u&2048&&Ni(9,t);break;case 1:on(e,t,l,a);break;case 3:on(e,t,l,a),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&bi(e)));break;case 12:if(u&2048){on(e,t,l,a),e=t.stateNode;try{var c=t.memoizedProps,g=c.id,S=c.onPostCommit;typeof S=="function"&&S(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){ke(t,t.return,A)}}else on(e,t,l,a);break;case 31:on(e,t,l,a);break;case 13:on(e,t,l,a);break;case 23:break;case 22:c=t.stateNode,g=t.alternate,t.memoizedState!==null?c._visibility&2?on(e,t,l,a):Li(e,t):c._visibility&2?on(e,t,l,a):(c._visibility|=2,ja(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),u&2048&&Qs(g,t);break;case 24:on(e,t,l,a),u&2048&&Is(t.alternate,t);break;default:on(e,t,l,a)}}function ja(e,t,l,a,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,g=t,S=l,A=a,H=g.flags;switch(g.tag){case 0:case 11:case 15:ja(c,g,S,A,u),Ni(8,g);break;case 23:break;case 22:var $=g.stateNode;g.memoizedState!==null?$._visibility&2?ja(c,g,S,A,u):Li(c,g):($._visibility|=2,ja(c,g,S,A,u)),u&&H&2048&&Qs(g.alternate,g);break;case 24:ja(c,g,S,A,u),u&&H&2048&&Is(g.alternate,g);break;default:ja(c,g,S,A,u)}t=t.sibling}}function Li(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,u=a.flags;switch(a.tag){case 22:Li(l,a),u&2048&&Qs(a.alternate,a);break;case 24:Li(l,a),u&2048&&Is(a.alternate,a);break;default:Li(l,a)}t=t.sibling}}var Vi=8192;function Na(e,t,l){if(e.subtreeFlags&Vi)for(e=e.child;e!==null;)th(e,t,l),e=e.sibling}function th(e,t,l){switch(e.tag){case 26:Na(e,t,l),e.flags&Vi&&e.memoizedState!==null&&YS(l,an,e.memoizedState,e.memoizedProps);break;case 5:Na(e,t,l);break;case 3:case 4:var a=an;an=yr(e.stateNode.containerInfo),Na(e,t,l),an=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Vi,Vi=16777216,Na(e,t,l),Vi=a):Na(e,t,l));break;default:Na(e,t,l)}}function nh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Hi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];ot=a,ah(a,e)}nh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)lh(e),e=e.sibling}function lh(e){switch(e.tag){case 0:case 11:case 15:Hi(e),e.flags&2048&&ol(9,e,e.return);break;case 3:Hi(e);break;case 12:Hi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ir(e)):Hi(e);break;default:Hi(e)}}function ir(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];ot=a,ah(a,e)}nh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ol(8,t,t.return),ir(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,ir(t));break;default:ir(t)}e=e.sibling}}function ah(e,t){for(;ot!==null;){var l=ot;switch(l.tag){case 0:case 11:case 15:ol(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:bi(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,ot=a;else e:for(l=e;ot!==null;){a=ot;var u=a.sibling,c=a.return;if(Im(a),a===l){ot=null;break e}if(u!==null){u.return=c,ot=u;break e}ot=c}}}var oS={getCacheForType:function(e){var t=ft(Ke),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return ft(Ke).controller.signal}},rS=typeof WeakMap=="function"?WeakMap:Map,ze=0,Be=null,we=null,Ee=0,Ne=0,Ht=null,rl=!1,ka=!1,Ps=!1,Ln=0,Xe=0,ul=0,Il=0,Zs=0,Ut=0,La=0,Ui=null,_t=null,Ks=!1,or=0,ih=0,rr=1/0,ur=null,sl=null,nt=0,cl=null,Va=null,Vn=0,Js=0,Ws=null,oh=null,Bi=0,ec=null;function Bt(){return(ze&2)!==0&&Ee!==0?Ee&-Ee:_.T!==null?oc():Cd()}function rh(){if(Ut===0)if((Ee&536870912)===0||Me){var e=po;po<<=1,(po&3932160)===0&&(po=262144),Ut=e}else Ut=536870912;return e=Lt.current,e!==null&&(e.flags|=32),Ut}function Mt(e,t,l){(e===Be&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)&&(Ha(e,0),fl(e,Ee,Ut,!1)),ri(e,l),((ze&2)===0||e!==Be)&&(e===Be&&((ze&2)===0&&(Il|=l),Xe===4&&fl(e,Ee,Ut,!1)),dn(e))}function uh(e,t,l){if((ze&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||oi(e,t),u=a?cS(e,t):nc(e,t,!0),c=a;do{if(u===0){ka&&!a&&fl(e,t,0,!1);break}else{if(l=e.current.alternate,c&&!uS(l)){u=nc(e,t,!1),c=!1;continue}if(u===2){if(c=t,e.errorRecoveryDisabledLanes&c)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var S=e;u=Ui;var A=S.current.memoizedState.isDehydrated;if(A&&(Ha(S,g).flags|=256),g=nc(S,g,!1),g!==2){if(Ps&&!A){S.errorRecoveryDisabledLanes|=c,Il|=c,u=4;break e}c=_t,_t=u,c!==null&&(_t===null?_t=c:_t.push.apply(_t,c))}u=g}if(c=!1,u!==2)continue}}if(u===1){Ha(e,0),fl(e,t,0,!0);break}e:{switch(a=e,c=u,c){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:fl(a,t,Ut,!rl);break e;case 2:_t=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(u=or+300-Dt(),10<u)){if(fl(a,t,Ut,!rl),yo(a,0,!0)!==0)break e;Vn=t,a.timeoutHandle=Uh(sh.bind(null,a,l,_t,ur,Ks,t,Ut,Il,La,rl,c,"Throttled",-0,0),u);break e}sh(a,l,_t,ur,Ks,t,Ut,Il,La,rl,c,null,-0,0)}}break}while(!0);dn(e)}function sh(e,t,l,a,u,c,g,S,A,H,$,Z,U,q){if(e.timeoutHandle=-1,Z=t.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Cn},th(t,c,Z);var oe=(c&62914560)===c?or-Dt():(c&4194048)===c?ih-Dt():0;if(oe=XS(Z,oe),oe!==null){Vn=c,e.cancelPendingCommit=oe(vh.bind(null,e,t,c,l,a,u,g,S,A,$,Z,null,U,q)),fl(e,c,g,!H);return}}vh(e,t,c,l,a,u,g,S,A)}function uS(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var u=l[a],c=u.getSnapshot;u=u.value;try{if(!Nt(c(),u))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function fl(e,t,l,a){t&=~Zs,t&=~Il,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var u=t;0<u;){var c=31-jt(u),g=1<<c;a[c]=-1,u&=~g}l!==0&&xd(e,l,t)}function sr(){return(ze&6)===0?(Gi(0),!1):!0}function tc(){if(we!==null){if(Ne===0)var e=we.return;else e=we,_n=Ul=null,vs(e),Aa=null,wi=0,e=we;for(;e!==null;)Bm(e.alternate,e),e=e.return;we=null}}function Ha(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,AS(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Vn=0,tc(),Be=e,we=l=Rn(e.current,null),Ee=t,Ne=0,Ht=null,rl=!1,ka=oi(e,t),Ps=!1,La=Ut=Zs=Il=ul=Xe=0,_t=Ui=null,Ks=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var u=31-jt(a),c=1<<u;t|=e[u],a&=~c}return Ln=t,To(),l}function ch(e,t){Se=null,_.H=Di,t===Ma||t===Ho?(t=_g(),Ne=3):t===is?(t=_g(),Ne=4):Ne=t===js?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ht=t,we===null&&(Xe=1,Jo(e,Qt(t,e.current)))}function fh(){var e=Lt.current;return e===null?!0:(Ee&4194048)===Ee?Kt===null:(Ee&62914560)===Ee||(Ee&536870912)!==0?e===Kt:!1}function dh(){var e=_.H;return _.H=Di,e===null?Di:e}function gh(){var e=_.A;return _.A=oS,e}function cr(){Xe=4,rl||(Ee&4194048)!==Ee&&Lt.current!==null||(ka=!0),(ul&134217727)===0&&(Il&134217727)===0||Be===null||fl(Be,Ee,Ut,!1)}function nc(e,t,l){var a=ze;ze|=2;var u=dh(),c=gh();(Be!==e||Ee!==t)&&(ur=null,Ha(e,t)),t=!1;var g=Xe;e:do try{if(Ne!==0&&we!==null){var S=we,A=Ht;switch(Ne){case 8:tc(),g=6;break e;case 3:case 2:case 9:case 6:Lt.current===null&&(t=!0);var H=Ne;if(Ne=0,Ht=null,Ua(e,S,A,H),l&&ka){g=0;break e}break;default:H=Ne,Ne=0,Ht=null,Ua(e,S,A,H)}}sS(),g=Xe;break}catch($){ch(e,$)}while(!0);return t&&e.shellSuspendCounter++,_n=Ul=null,ze=a,_.H=u,_.A=c,we===null&&(Be=null,Ee=0,To()),g}function sS(){for(;we!==null;)mh(we)}function cS(e,t){var l=ze;ze|=2;var a=dh(),u=gh();Be!==e||Ee!==t?(ur=null,rr=Dt()+500,Ha(e,t)):ka=oi(e,t);e:do try{if(Ne!==0&&we!==null){t=we;var c=Ht;t:switch(Ne){case 1:Ne=0,Ht=null,Ua(e,t,c,1);break;case 2:case 9:if(Rg(c)){Ne=0,Ht=null,hh(t);break}t=function(){Ne!==2&&Ne!==9||Be!==e||(Ne=7),dn(e)},c.then(t,t);break e;case 3:Ne=7;break e;case 4:Ne=5;break e;case 7:Rg(c)?(Ne=0,Ht=null,hh(t)):(Ne=0,Ht=null,Ua(e,t,c,7));break;case 5:var g=null;switch(we.tag){case 26:g=we.memoizedState;case 5:case 27:var S=we;if(g?ep(g):S.stateNode.complete){Ne=0,Ht=null;var A=S.sibling;if(A!==null)we=A;else{var H=S.return;H!==null?(we=H,fr(H)):we=null}break t}}Ne=0,Ht=null,Ua(e,t,c,5);break;case 6:Ne=0,Ht=null,Ua(e,t,c,6);break;case 8:tc(),Xe=6;break e;default:throw Error(r(462))}}fS();break}catch($){ch(e,$)}while(!0);return _n=Ul=null,_.H=a,_.A=u,ze=l,we!==null?0:(Be=null,Ee=0,To(),Xe)}function fS(){for(;we!==null&&!oa();)mh(we)}function mh(e){var t=Hm(e.alternate,e,Ln);e.memoizedProps=e.pendingProps,t===null?fr(e):we=t}function hh(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=zm(l,t,t.pendingProps,t.type,void 0,Ee);break;case 11:t=zm(l,t,t.pendingProps,t.type.render,t.ref,Ee);break;case 5:vs(t);default:Bm(l,t),t=we=gg(t,Ln),t=Hm(l,t,Ln)}e.memoizedProps=e.pendingProps,t===null?fr(e):we=t}function Ua(e,t,l,a){_n=Ul=null,vs(t),Aa=null,wi=0;var u=t.return;try{if(Wx(e,u,t,l,Ee)){Xe=1,Jo(e,Qt(l,e.current)),we=null;return}}catch(c){if(u!==null)throw we=u,c;Xe=1,Jo(e,Qt(l,e.current)),we=null;return}t.flags&32768?(Me||a===1?e=!0:ka||(Ee&536870912)!==0?e=!1:(rl=e=!0,(a===2||a===9||a===3||a===6)&&(a=Lt.current,a!==null&&a.tag===13&&(a.flags|=16384))),ph(t,e)):fr(t)}function fr(e){var t=e;do{if((t.flags&32768)!==0){ph(t,rl);return}e=t.return;var l=nS(t.alternate,t,Ln);if(l!==null){we=l;return}if(t=t.sibling,t!==null){we=t;return}we=t=e}while(t!==null);Xe===0&&(Xe=5)}function ph(e,t){do{var l=lS(e.alternate,e);if(l!==null){l.flags&=32767,we=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){we=e;return}we=e=l}while(e!==null);Xe=6,we=null}function vh(e,t,l,a,u,c,g,S,A){e.cancelPendingCommit=null;do dr();while(nt!==0);if((ze&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(c=t.lanes|t.childLanes,c|=$u,$0(e,l,c,g,S,A),e===Be&&(we=Be=null,Ee=0),Va=t,cl=e,Vn=l,Js=c,Ws=u,oh=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,hS(mo,function(){return Ch(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=_.T,_.T=null,u=T.p,T.p=2,g=ze,ze|=4;try{aS(e,t,l)}finally{ze=g,T.p=u,_.T=a}}nt=1,yh(),xh(),Sh()}}function yh(){if(nt===1){nt=0;var e=cl,t=Va,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=_.T,_.T=null;var a=T.p;T.p=2;var u=ze;ze|=4;try{Jm(t,e);var c=mc,g=ag(e.containerInfo),S=c.focusedElem,A=c.selectionRange;if(g!==S&&S&&S.ownerDocument&&lg(S.ownerDocument.documentElement,S)){if(A!==null&&Uu(S)){var H=A.start,$=A.end;if($===void 0&&($=H),"selectionStart"in S)S.selectionStart=H,S.selectionEnd=Math.min($,S.value.length);else{var Z=S.ownerDocument||document,U=Z&&Z.defaultView||window;if(U.getSelection){var q=U.getSelection(),oe=S.textContent.length,ge=Math.min(A.start,oe),He=A.end===void 0?ge:Math.min(A.end,oe);!q.extend&&ge>He&&(g=He,He=ge,ge=g);var j=ng(S,ge),D=ng(S,He);if(j&&D&&(q.rangeCount!==1||q.anchorNode!==j.node||q.anchorOffset!==j.offset||q.focusNode!==D.node||q.focusOffset!==D.offset)){var V=Z.createRange();V.setStart(j.node,j.offset),q.removeAllRanges(),ge>He?(q.addRange(V),q.extend(D.node,D.offset)):(V.setEnd(D.node,D.offset),q.addRange(V))}}}}for(Z=[],q=S;q=q.parentNode;)q.nodeType===1&&Z.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<Z.length;S++){var X=Z[S];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}Rr=!!gc,mc=gc=null}finally{ze=u,T.p=a,_.T=l}}e.current=t,nt=2}}function xh(){if(nt===2){nt=0;var e=cl,t=Va,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=_.T,_.T=null;var a=T.p;T.p=2;var u=ze;ze|=4;try{Qm(e,t.alternate,t)}finally{ze=u,T.p=a,_.T=l}}nt=3}}function Sh(){if(nt===4||nt===3){nt=0,k0();var e=cl,t=Va,l=Vn,a=oh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?nt=5:(nt=0,Va=cl=null,bh(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(sl=null),Su(l),t=t.stateNode,zt&&typeof zt.onCommitFiberRoot=="function")try{zt.onCommitFiberRoot(ii,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=_.T,u=T.p,T.p=2,_.T=null;try{for(var c=e.onRecoverableError,g=0;g<a.length;g++){var S=a[g];c(S.value,{componentStack:S.stack})}}finally{_.T=t,T.p=u}}(Vn&3)!==0&&dr(),dn(e),u=e.pendingLanes,(l&261930)!==0&&(u&42)!==0?e===ec?Bi++:(Bi=0,ec=e):Bi=0,Gi(0)}}function bh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,bi(t)))}function dr(){return yh(),xh(),Sh(),Ch()}function Ch(){if(nt!==5)return!1;var e=cl,t=Js;Js=0;var l=Su(Vn),a=_.T,u=T.p;try{T.p=32>l?32:l,_.T=null,l=Ws,Ws=null;var c=cl,g=Vn;if(nt=0,Va=cl=null,Vn=0,(ze&6)!==0)throw Error(r(331));var S=ze;if(ze|=4,lh(c.current),eh(c,c.current,g,l),ze=S,Gi(0,!1),zt&&typeof zt.onPostCommitFiberRoot=="function")try{zt.onPostCommitFiberRoot(ii,c)}catch{}return!0}finally{T.p=u,_.T=a,bh(e,t)}}function wh(e,t,l){t=Qt(l,t),t=zs(e.stateNode,t,2),e=ll(e,t,2),e!==null&&(ri(e,2),dn(e))}function ke(e,t,l){if(e.tag===3)wh(e,e,l);else for(;t!==null;){if(t.tag===3){wh(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(sl===null||!sl.has(a))){e=Qt(l,e),l=Rm(2),a=ll(t,l,2),a!==null&&(Em(l,a,t,e),ri(a,2),dn(a));break}}t=t.return}}function lc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new rS;var u=new Set;a.set(t,u)}else u=a.get(t),u===void 0&&(u=new Set,a.set(t,u));u.has(l)||(Ps=!0,u.add(l),e=dS.bind(null,e,t,l),t.then(e,e))}function dS(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Be===e&&(Ee&l)===l&&(Xe===4||Xe===3&&(Ee&62914560)===Ee&&300>Dt()-or?(ze&2)===0&&Ha(e,0):Zs|=l,La===Ee&&(La=0)),dn(e)}function Rh(e,t){t===0&&(t=yd()),e=Ll(e,t),e!==null&&(ri(e,t),dn(e))}function gS(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Rh(e,l)}function mS(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,u=e.memoizedState;u!==null&&(l=u.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),Rh(e,l)}function hS(e,t){return li(e,t)}var gr=null,Ba=null,ac=!1,mr=!1,ic=!1,dl=0;function dn(e){e!==Ba&&e.next===null&&(Ba===null?gr=Ba=e:Ba=Ba.next=e),mr=!0,ac||(ac=!0,vS())}function Gi(e,t){if(!ic&&mr){ic=!0;do for(var l=!1,a=gr;a!==null;){if(e!==0){var u=a.pendingLanes;if(u===0)var c=0;else{var g=a.suspendedLanes,S=a.pingedLanes;c=(1<<31-jt(42|e)+1)-1,c&=u&~(g&~S),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Ah(a,c))}else c=Ee,c=yo(a,a===Be?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||oi(a,c)||(l=!0,Ah(a,c));a=a.next}while(l);ic=!1}}function pS(){Eh()}function Eh(){mr=ac=!1;var e=0;dl!==0&&MS()&&(e=dl);for(var t=Dt(),l=null,a=gr;a!==null;){var u=a.next,c=_h(a,t);c===0?(a.next=null,l===null?gr=u:l.next=u,u===null&&(Ba=l)):(l=a,(e!==0||(c&3)!==0)&&(mr=!0)),a=u}nt!==0&&nt!==5||Gi(e),dl!==0&&(dl=0)}function _h(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,u=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var g=31-jt(c),S=1<<g,A=u[g];A===-1?((S&l)===0||(S&a)!==0)&&(u[g]=q0(S,t)):A<=t&&(e.expiredLanes|=S),c&=~S}if(t=Be,l=Ee,l=yo(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&ai(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||oi(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&ai(a),Su(l)){case 2:case 8:l=pd;break;case 32:l=mo;break;case 268435456:l=vd;break;default:l=mo}return a=Mh.bind(null,e),l=li(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&ai(a),e.callbackPriority=2,e.callbackNode=null,2}function Mh(e,t){if(nt!==0&&nt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(dr()&&e.callbackNode!==l)return null;var a=Ee;return a=yo(e,e===Be?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(uh(e,a,t),_h(e,Dt()),e.callbackNode!=null&&e.callbackNode===l?Mh.bind(null,e):null)}function Ah(e,t){if(dr())return null;uh(e,t,!0)}function vS(){OS(function(){(ze&6)!==0?li(hd,pS):Eh()})}function oc(){if(dl===0){var e=Ea;e===0&&(e=ho,ho<<=1,(ho&261888)===0&&(ho=256)),dl=e}return dl}function Oh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Co(""+e)}function Th(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function yS(e,t,l,a,u){if(t==="submit"&&l&&l.stateNode===u){var c=Oh((u[bt]||null).action),g=a.submitter;g&&(t=(t=g[bt]||null)?Oh(t.formAction):g.getAttribute("formAction"),t!==null&&(c=t,g=null));var S=new _o("action","action",null,a,u);e.push({event:S,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(dl!==0){var A=g?Th(u,g):new FormData(u);_s(l,{pending:!0,data:A,method:u.method,action:c},null,A)}}else typeof c=="function"&&(S.preventDefault(),A=g?Th(u,g):new FormData(u),_s(l,{pending:!0,data:A,method:u.method,action:c},c,A))},currentTarget:u}]})}}for(var rc=0;rc<qu.length;rc++){var uc=qu[rc],xS=uc.toLowerCase(),SS=uc[0].toUpperCase()+uc.slice(1);ln(xS,"on"+SS)}ln(rg,"onAnimationEnd"),ln(ug,"onAnimationIteration"),ln(sg,"onAnimationStart"),ln("dblclick","onDoubleClick"),ln("focusin","onFocus"),ln("focusout","onBlur"),ln(Lx,"onTransitionRun"),ln(Vx,"onTransitionStart"),ln(Hx,"onTransitionCancel"),ln(cg,"onTransitionEnd"),fa("onMouseEnter",["mouseout","mouseover"]),fa("onMouseLeave",["mouseout","mouseover"]),fa("onPointerEnter",["pointerout","pointerover"]),fa("onPointerLeave",["pointerout","pointerover"]),zl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),zl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),zl("onBeforeInput",["compositionend","keypress","textInput","paste"]),zl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),zl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),zl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),bS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fi));function Dh(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],u=a.event;a=a.listeners;e:{var c=void 0;if(t)for(var g=a.length-1;0<=g;g--){var S=a[g],A=S.instance,H=S.currentTarget;if(S=S.listener,A!==c&&u.isPropagationStopped())break e;c=S,u.currentTarget=H;try{c(u)}catch($){Oo($)}u.currentTarget=null,c=A}else for(g=0;g<a.length;g++){if(S=a[g],A=S.instance,H=S.currentTarget,S=S.listener,A!==c&&u.isPropagationStopped())break e;c=S,u.currentTarget=H;try{c(u)}catch($){Oo($)}u.currentTarget=null,c=A}}}}function Re(e,t){var l=t[bu];l===void 0&&(l=t[bu]=new Set);var a=e+"__bubble";l.has(a)||(zh(t,e,2,!1),l.add(a))}function sc(e,t,l){var a=0;t&&(a|=4),zh(l,e,a,t)}var hr="_reactListening"+Math.random().toString(36).slice(2);function cc(e){if(!e[hr]){e[hr]=!0,Ed.forEach(function(l){l!=="selectionchange"&&(bS.has(l)||sc(l,!1,e),sc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hr]||(t[hr]=!0,sc("selectionchange",!1,t))}}function zh(e,t,l,a){switch(rp(t)){case 2:var u=PS;break;case 8:u=ZS;break;default:u=Ec}l=u.bind(null,t,l,e),u=void 0,!Tu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),a?u!==void 0?e.addEventListener(t,l,{capture:!0,passive:u}):e.addEventListener(t,l,!0):u!==void 0?e.addEventListener(t,l,{passive:u}):e.addEventListener(t,l,!1)}function fc(e,t,l,a,u){var c=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var g=a.tag;if(g===3||g===4){var S=a.stateNode.containerInfo;if(S===u)break;if(g===4)for(g=a.return;g!==null;){var A=g.tag;if((A===3||A===4)&&g.stateNode.containerInfo===u)return;g=g.return}for(;S!==null;){if(g=ua(S),g===null)return;if(A=g.tag,A===5||A===6||A===26||A===27){a=c=g;continue e}S=S.parentNode}}a=a.return}Vd(function(){var H=c,$=Au(l),Z=[];e:{var U=fg.get(e);if(U!==void 0){var q=_o,oe=e;switch(e){case"keypress":if(Ro(l)===0)break e;case"keydown":case"keyup":q=mx;break;case"focusin":oe="focus",q=Nu;break;case"focusout":oe="blur",q=Nu;break;case"beforeblur":case"afterblur":q=Nu;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=Bd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=nx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=vx;break;case rg:case ug:case sg:q=ix;break;case cg:q=xx;break;case"scroll":case"scrollend":q=ex;break;case"wheel":q=bx;break;case"copy":case"cut":case"paste":q=rx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=Fd;break;case"toggle":case"beforetoggle":q=wx}var ge=(t&4)!==0,He=!ge&&(e==="scroll"||e==="scrollend"),j=ge?U!==null?U+"Capture":null:U;ge=[];for(var D=H,V;D!==null;){var X=D;if(V=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||V===null||j===null||(X=ci(D,j),X!=null&&ge.push(qi(D,X,V))),He)break;D=D.return}0<ge.length&&(U=new q(U,oe,null,l,$),Z.push({event:U,listeners:ge}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",U&&l!==Mu&&(oe=l.relatedTarget||l.fromElement)&&(ua(oe)||oe[ra]))break e;if((q||U)&&(U=$.window===$?$:(U=$.ownerDocument)?U.defaultView||U.parentWindow:window,q?(oe=l.relatedTarget||l.toElement,q=H,oe=oe?ua(oe):null,oe!==null&&(He=f(oe),ge=oe.tag,oe!==He||ge!==5&&ge!==27&&ge!==6)&&(oe=null)):(q=null,oe=H),q!==oe)){if(ge=Bd,X="onMouseLeave",j="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(ge=Fd,X="onPointerLeave",j="onPointerEnter",D="pointer"),He=q==null?U:si(q),V=oe==null?U:si(oe),U=new ge(X,D+"leave",q,l,$),U.target=He,U.relatedTarget=V,X=null,ua($)===H&&(ge=new ge(j,D+"enter",oe,l,$),ge.target=V,ge.relatedTarget=He,X=ge),He=X,q&&oe)t:{for(ge=CS,j=q,D=oe,V=0,X=j;X;X=ge(X))V++;X=0;for(var fe=D;fe;fe=ge(fe))X++;for(;0<V-X;)j=ge(j),V--;for(;0<X-V;)D=ge(D),X--;for(;V--;){if(j===D||D!==null&&j===D.alternate){ge=j;break t}j=ge(j),D=ge(D)}ge=null}else ge=null;q!==null&&jh(Z,U,q,ge,!1),oe!==null&&He!==null&&jh(Z,He,oe,ge,!0)}}e:{if(U=H?si(H):window,q=U.nodeName&&U.nodeName.toLowerCase(),q==="select"||q==="input"&&U.type==="file")var Oe=Zd;else if(Id(U))if(Kd)Oe=jx;else{Oe=Dx;var ue=Tx}else q=U.nodeName,!q||q.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?H&&_u(H.elementType)&&(Oe=Zd):Oe=zx;if(Oe&&(Oe=Oe(e,H))){Pd(Z,Oe,l,$);break e}ue&&ue(e,U,H),e==="focusout"&&H&&U.type==="number"&&H.memoizedProps.value!=null&&Eu(U,"number",U.value)}switch(ue=H?si(H):window,e){case"focusin":(Id(ue)||ue.contentEditable==="true")&&(va=ue,Bu=H,yi=null);break;case"focusout":yi=Bu=va=null;break;case"mousedown":Gu=!0;break;case"contextmenu":case"mouseup":case"dragend":Gu=!1,ig(Z,l,$);break;case"selectionchange":if(kx)break;case"keydown":case"keyup":ig(Z,l,$)}var be;if(Lu)e:{switch(e){case"compositionstart":var _e="onCompositionStart";break e;case"compositionend":_e="onCompositionEnd";break e;case"compositionupdate":_e="onCompositionUpdate";break e}_e=void 0}else pa?Xd(e,l)&&(_e="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(_e="onCompositionStart");_e&&(qd&&l.locale!=="ko"&&(pa||_e!=="onCompositionStart"?_e==="onCompositionEnd"&&pa&&(be=Hd()):(Zn=$,Du="value"in Zn?Zn.value:Zn.textContent,pa=!0)),ue=pr(H,_e),0<ue.length&&(_e=new Gd(_e,e,null,l,$),Z.push({event:_e,listeners:ue}),be?_e.data=be:(be=Qd(l),be!==null&&(_e.data=be)))),(be=Ex?_x(e,l):Mx(e,l))&&(_e=pr(H,"onBeforeInput"),0<_e.length&&(ue=new Gd("onBeforeInput","beforeinput",null,l,$),Z.push({event:ue,listeners:_e}),ue.data=be)),yS(Z,e,H,l,$)}Dh(Z,t)})}function qi(e,t,l){return{instance:e,listener:t,currentTarget:l}}function pr(e,t){for(var l=t+"Capture",a=[];e!==null;){var u=e,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=ci(e,l),u!=null&&a.unshift(qi(e,u,c)),u=ci(e,t),u!=null&&a.push(qi(e,u,c))),e.tag===3)return a;e=e.return}return[]}function CS(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function jh(e,t,l,a,u){for(var c=t._reactName,g=[];l!==null&&l!==a;){var S=l,A=S.alternate,H=S.stateNode;if(S=S.tag,A!==null&&A===a)break;S!==5&&S!==26&&S!==27||H===null||(A=H,u?(H=ci(l,c),H!=null&&g.unshift(qi(l,H,A))):u||(H=ci(l,c),H!=null&&g.push(qi(l,H,A)))),l=l.return}g.length!==0&&e.push({event:t,listeners:g})}var wS=/\r\n?/g,RS=/\u0000|\uFFFD/g;function Nh(e){return(typeof e=="string"?e:""+e).replace(wS,`
|
|
49
|
+
`).replace(RS,"")}function kh(e,t){return t=Nh(t),Nh(e)===t}function Ve(e,t,l,a,u,c){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ga(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ga(e,""+a);break;case"className":So(e,"class",a);break;case"tabIndex":So(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":So(e,l,a);break;case"style":kd(e,a,c);break;case"data":if(t!=="object"){So(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Co(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(l==="formAction"?(t!=="input"&&Ve(e,t,"name",u.name,u,null),Ve(e,t,"formEncType",u.formEncType,u,null),Ve(e,t,"formMethod",u.formMethod,u,null),Ve(e,t,"formTarget",u.formTarget,u,null)):(Ve(e,t,"encType",u.encType,u,null),Ve(e,t,"method",u.method,u,null),Ve(e,t,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Co(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Cn);break;case"onScroll":a!=null&&Re("scroll",e);break;case"onScrollEnd":a!=null&&Re("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=Co(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":Re("beforetoggle",e),Re("toggle",e),xo(e,"popover",a);break;case"xlinkActuate":bn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":bn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":bn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":bn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":bn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":bn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":bn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":bn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":bn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":xo(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=J0.get(l)||l,xo(e,l,a))}}function dc(e,t,l,a,u,c){switch(l){case"style":kd(e,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof a=="string"?ga(e,a):(typeof a=="number"||typeof a=="bigint")&&ga(e,""+a);break;case"onScroll":a!=null&&Re("scroll",e);break;case"onScrollEnd":a!=null&&Re("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Cn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!_d.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(u=l.endsWith("Capture"),t=l.slice(2,u?l.length-7:void 0),c=e[bt]||null,c=c!=null?c[l]:null,typeof c=="function"&&e.removeEventListener(t,c,u),typeof a=="function")){typeof c!="function"&&c!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,u);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):xo(e,l,a)}}}function gt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Re("error",e),Re("load",e);var a=!1,u=!1,c;for(c in l)if(l.hasOwnProperty(c)){var g=l[c];if(g!=null)switch(c){case"src":a=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ve(e,t,c,g,l,null)}}u&&Ve(e,t,"srcSet",l.srcSet,l,null),a&&Ve(e,t,"src",l.src,l,null);return;case"input":Re("invalid",e);var S=c=g=u=null,A=null,H=null;for(a in l)if(l.hasOwnProperty(a)){var $=l[a];if($!=null)switch(a){case"name":u=$;break;case"type":g=$;break;case"checked":A=$;break;case"defaultChecked":H=$;break;case"value":c=$;break;case"defaultValue":S=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(r(137,t));break;default:Ve(e,t,a,$,l,null)}}Dd(e,c,S,A,H,g,u,!1);return;case"select":Re("invalid",e),a=g=c=null;for(u in l)if(l.hasOwnProperty(u)&&(S=l[u],S!=null))switch(u){case"value":c=S;break;case"defaultValue":g=S;break;case"multiple":a=S;default:Ve(e,t,u,S,l,null)}t=c,l=g,e.multiple=!!a,t!=null?da(e,!!a,t,!1):l!=null&&da(e,!!a,l,!0);return;case"textarea":Re("invalid",e),c=u=a=null;for(g in l)if(l.hasOwnProperty(g)&&(S=l[g],S!=null))switch(g){case"value":a=S;break;case"defaultValue":u=S;break;case"children":c=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(r(91));break;default:Ve(e,t,g,S,l,null)}jd(e,a,u,c);return;case"option":for(A in l)if(l.hasOwnProperty(A)&&(a=l[A],a!=null))switch(A){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ve(e,t,A,a,l,null)}return;case"dialog":Re("beforetoggle",e),Re("toggle",e),Re("cancel",e),Re("close",e);break;case"iframe":case"object":Re("load",e);break;case"video":case"audio":for(a=0;a<Fi.length;a++)Re(Fi[a],e);break;case"image":Re("error",e),Re("load",e);break;case"details":Re("toggle",e);break;case"embed":case"source":case"link":Re("error",e),Re("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(H in l)if(l.hasOwnProperty(H)&&(a=l[H],a!=null))switch(H){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ve(e,t,H,a,l,null)}return;default:if(_u(t)){for($ in l)l.hasOwnProperty($)&&(a=l[$],a!==void 0&&dc(e,t,$,a,l,void 0));return}}for(S in l)l.hasOwnProperty(S)&&(a=l[S],a!=null&&Ve(e,t,S,a,l,null))}function ES(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,c=null,g=null,S=null,A=null,H=null,$=null;for(q in l){var Z=l[q];if(l.hasOwnProperty(q)&&Z!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":A=Z;default:a.hasOwnProperty(q)||Ve(e,t,q,null,a,Z)}}for(var U in a){var q=a[U];if(Z=l[U],a.hasOwnProperty(U)&&(q!=null||Z!=null))switch(U){case"type":c=q;break;case"name":u=q;break;case"checked":H=q;break;case"defaultChecked":$=q;break;case"value":g=q;break;case"defaultValue":S=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,t));break;default:q!==Z&&Ve(e,t,U,q,a,Z)}}Ru(e,g,S,A,H,$,c,u);return;case"select":q=g=S=U=null;for(c in l)if(A=l[c],l.hasOwnProperty(c)&&A!=null)switch(c){case"value":break;case"multiple":q=A;default:a.hasOwnProperty(c)||Ve(e,t,c,null,a,A)}for(u in a)if(c=a[u],A=l[u],a.hasOwnProperty(u)&&(c!=null||A!=null))switch(u){case"value":U=c;break;case"defaultValue":S=c;break;case"multiple":g=c;default:c!==A&&Ve(e,t,u,c,a,A)}t=S,l=g,a=q,U!=null?da(e,!!l,U,!1):!!a!=!!l&&(t!=null?da(e,!!l,t,!0):da(e,!!l,l?[]:"",!1));return;case"textarea":q=U=null;for(S in l)if(u=l[S],l.hasOwnProperty(S)&&u!=null&&!a.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Ve(e,t,S,null,a,u)}for(g in a)if(u=a[g],c=l[g],a.hasOwnProperty(g)&&(u!=null||c!=null))switch(g){case"value":U=u;break;case"defaultValue":q=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(r(91));break;default:u!==c&&Ve(e,t,g,u,a,c)}zd(e,U,q);return;case"option":for(var oe in l)if(U=l[oe],l.hasOwnProperty(oe)&&U!=null&&!a.hasOwnProperty(oe))switch(oe){case"selected":e.selected=!1;break;default:Ve(e,t,oe,null,a,U)}for(A in a)if(U=a[A],q=l[A],a.hasOwnProperty(A)&&U!==q&&(U!=null||q!=null))switch(A){case"selected":e.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:Ve(e,t,A,U,a,q)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ge in l)U=l[ge],l.hasOwnProperty(ge)&&U!=null&&!a.hasOwnProperty(ge)&&Ve(e,t,ge,null,a,U);for(H in a)if(U=a[H],q=l[H],a.hasOwnProperty(H)&&U!==q&&(U!=null||q!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,t));break;default:Ve(e,t,H,U,a,q)}return;default:if(_u(t)){for(var He in l)U=l[He],l.hasOwnProperty(He)&&U!==void 0&&!a.hasOwnProperty(He)&&dc(e,t,He,void 0,a,U);for($ in a)U=a[$],q=l[$],!a.hasOwnProperty($)||U===q||U===void 0&&q===void 0||dc(e,t,$,U,a,q);return}}for(var j in l)U=l[j],l.hasOwnProperty(j)&&U!=null&&!a.hasOwnProperty(j)&&Ve(e,t,j,null,a,U);for(Z in a)U=a[Z],q=l[Z],!a.hasOwnProperty(Z)||U===q||U==null&&q==null||Ve(e,t,Z,U,a,q)}function Lh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function _S(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var u=l[a],c=u.transferSize,g=u.initiatorType,S=u.duration;if(c&&S&&Lh(g)){for(g=0,S=u.responseEnd,a+=1;a<l.length;a++){var A=l[a],H=A.startTime;if(H>S)break;var $=A.transferSize,Z=A.initiatorType;$&&Lh(Z)&&(A=A.responseEnd,g+=$*(A<S?1:(S-H)/(A-H)))}if(--a,t+=8*(c+g)/(u.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var gc=null,mc=null;function vr(e){return e.nodeType===9?e:e.ownerDocument}function Vh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Hh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function hc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var pc=null;function MS(){var e=window.event;return e&&e.type==="popstate"?e===pc?!1:(pc=e,!0):(pc=null,!1)}var Uh=typeof setTimeout=="function"?setTimeout:void 0,AS=typeof clearTimeout=="function"?clearTimeout:void 0,Bh=typeof Promise=="function"?Promise:void 0,OS=typeof queueMicrotask=="function"?queueMicrotask:typeof Bh<"u"?function(e){return Bh.resolve(null).then(e).catch(TS)}:Uh;function TS(e){setTimeout(function(){throw e})}function gl(e){return e==="head"}function Gh(e,t){var l=t,a=0;do{var u=l.nextSibling;if(e.removeChild(l),u&&u.nodeType===8)if(l=u.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(u),$a(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")$i(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,$i(l);for(var c=l.firstChild;c;){var g=c.nextSibling,S=c.nodeName;c[ui]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&c.rel.toLowerCase()==="stylesheet"||l.removeChild(c),c=g}}else l==="body"&&$i(e.ownerDocument.body);l=u}while(l);$a(t)}function Fh(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function vc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":vc(l),Cu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function DS(e,t,l,a){for(;e.nodeType===1;){var u=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[ui])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Jt(e.nextSibling),e===null)break}return null}function zS(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Jt(e.nextSibling),e===null))return null;return e}function qh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Jt(e.nextSibling),e===null))return null;return e}function yc(e){return e.data==="$?"||e.data==="$~"}function xc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function jS(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Jt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Sc=null;function $h(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Jt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Yh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Xh(e,t,l){switch(t=vr(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function $i(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Cu(e)}var Wt=new Map,Qh=new Set;function yr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Hn=T.d;T.d={f:NS,r:kS,D:LS,C:VS,L:HS,m:US,X:GS,S:BS,M:FS};function NS(){var e=Hn.f(),t=sr();return e||t}function kS(e){var t=sa(e);t!==null&&t.tag===5&&t.type==="form"?cm(t):Hn.r(e)}var Ga=typeof document>"u"?null:document;function Ih(e,t,l){var a=Ga;if(a&&typeof t=="string"&&t){var u=Yt(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof l=="string"&&(u+='[crossorigin="'+l+'"]'),Qh.has(u)||(Qh.add(u),e={rel:e,crossOrigin:l,href:t},a.querySelector(u)===null&&(t=a.createElement("link"),gt(t,"link",e),it(t),a.head.appendChild(t)))}}function LS(e){Hn.D(e),Ih("dns-prefetch",e,null)}function VS(e,t){Hn.C(e,t),Ih("preconnect",e,t)}function HS(e,t,l){Hn.L(e,t,l);var a=Ga;if(a&&e&&t){var u='link[rel="preload"][as="'+Yt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(u+='[imagesrcset="'+Yt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(u+='[imagesizes="'+Yt(l.imageSizes)+'"]')):u+='[href="'+Yt(e)+'"]';var c=u;switch(t){case"style":c=Fa(e);break;case"script":c=qa(e)}Wt.has(c)||(e=y({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Wt.set(c,e),a.querySelector(u)!==null||t==="style"&&a.querySelector(Yi(c))||t==="script"&&a.querySelector(Xi(c))||(t=a.createElement("link"),gt(t,"link",e),it(t),a.head.appendChild(t)))}}function US(e,t){Hn.m(e,t);var l=Ga;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+Yt(a)+'"][href="'+Yt(e)+'"]',c=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=qa(e)}if(!Wt.has(c)&&(e=y({rel:"modulepreload",href:e},t),Wt.set(c,e),l.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Xi(c)))return}a=l.createElement("link"),gt(a,"link",e),it(a),l.head.appendChild(a)}}}function BS(e,t,l){Hn.S(e,t,l);var a=Ga;if(a&&e){var u=ca(a).hoistableStyles,c=Fa(e);t=t||"default";var g=u.get(c);if(!g){var S={loading:0,preload:null};if(g=a.querySelector(Yi(c)))S.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Wt.get(c))&&bc(e,l);var A=g=a.createElement("link");it(A),gt(A,"link",e),A._p=new Promise(function(H,$){A.onload=H,A.onerror=$}),A.addEventListener("load",function(){S.loading|=1}),A.addEventListener("error",function(){S.loading|=2}),S.loading|=4,xr(g,t,a)}g={type:"stylesheet",instance:g,count:1,state:S},u.set(c,g)}}}function GS(e,t){Hn.X(e,t);var l=Ga;if(l&&e){var a=ca(l).hoistableScripts,u=qa(e),c=a.get(u);c||(c=l.querySelector(Xi(u)),c||(e=y({src:e,async:!0},t),(t=Wt.get(u))&&Cc(e,t),c=l.createElement("script"),it(c),gt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(u,c))}}function FS(e,t){Hn.M(e,t);var l=Ga;if(l&&e){var a=ca(l).hoistableScripts,u=qa(e),c=a.get(u);c||(c=l.querySelector(Xi(u)),c||(e=y({src:e,async:!0,type:"module"},t),(t=Wt.get(u))&&Cc(e,t),c=l.createElement("script"),it(c),gt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(u,c))}}function Ph(e,t,l,a){var u=(u=re.current)?yr(u):null;if(!u)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Fa(l.href),l=ca(u).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Fa(l.href);var c=ca(u).hoistableStyles,g=c.get(e);if(g||(u=u.ownerDocument||u,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,g),(c=u.querySelector(Yi(e)))&&!c._p&&(g.instance=c,g.state.loading=5),Wt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Wt.set(e,l),c||qS(u,e,l,g.state))),t&&a===null)throw Error(r(528,""));return g}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=qa(l),l=ca(u).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Fa(e){return'href="'+Yt(e)+'"'}function Yi(e){return'link[rel="stylesheet"]['+e+"]"}function Zh(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function qS(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),gt(t,"link",l),it(t),e.head.appendChild(t))}function qa(e){return'[src="'+Yt(e)+'"]'}function Xi(e){return"script[async]"+e}function Kh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Yt(l.href)+'"]');if(a)return t.instance=a,it(a),a;var u=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),it(a),gt(a,"style",u),xr(a,l.precedence,e),t.instance=a;case"stylesheet":u=Fa(l.href);var c=e.querySelector(Yi(u));if(c)return t.state.loading|=4,t.instance=c,it(c),c;a=Zh(l),(u=Wt.get(u))&&bc(a,u),c=(e.ownerDocument||e).createElement("link"),it(c);var g=c;return g._p=new Promise(function(S,A){g.onload=S,g.onerror=A}),gt(c,"link",a),t.state.loading|=4,xr(c,l.precedence,e),t.instance=c;case"script":return c=qa(l.src),(u=e.querySelector(Xi(c)))?(t.instance=u,it(u),u):(a=l,(u=Wt.get(c))&&(a=y({},l),Cc(a,u)),e=e.ownerDocument||e,u=e.createElement("script"),it(u),gt(u,"link",a),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,xr(a,l.precedence,e));return t.instance}function xr(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=a.length?a[a.length-1]:null,c=u,g=0;g<a.length;g++){var S=a[g];if(S.dataset.precedence===t)c=S;else if(c!==u)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function bc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Cc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Sr=null;function Jh(e,t,l){if(Sr===null){var a=new Map,u=Sr=new Map;u.set(l,a)}else u=Sr,a=u.get(l),a||(a=new Map,u.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),u=0;u<l.length;u++){var c=l[u];if(!(c[ui]||c[st]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var g=c.getAttribute(t)||"";g=e+g;var S=a.get(g);S?S.push(c):a.set(g,[c])}}return a}function Wh(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function $S(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function ep(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function YS(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var u=Fa(a.href),c=t.querySelector(Yi(u));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=br.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,it(c);return}c=t.ownerDocument||t,a=Zh(a),(u=Wt.get(u))&&bc(a,u),c=c.createElement("link"),it(c);var g=c;g._p=new Promise(function(S,A){g.onload=S,g.onerror=A}),gt(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=br.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var wc=0;function XS(e,t){return e.stylesheets&&e.count===0&&wr(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&wr(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&wc===0&&(wc=62500*_S());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&wr(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>wc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(u)}}:null}function br(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)wr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Cr=null;function wr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Cr=new Map,t.forEach(QS,e),Cr=null,br.call(e))}function QS(e,t){if(!(t.state.loading&4)){var l=Cr.get(e);if(l)var a=l.get(null);else{l=new Map,Cr.set(e,l);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var g=u[c];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(l.set(g.dataset.precedence,g),a=g)}a&&l.set(null,a)}u=t.instance,g=u.getAttribute("data-precedence"),c=l.get(g)||a,c===a&&l.set(null,u),l.set(g,u),this.count++,a=br.bind(this),u.addEventListener("load",a),u.addEventListener("error",a),c?c.parentNode.insertBefore(u,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var Qi={$$typeof:L,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function IS(e,t,l,a,u,c,g,S,A){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=yu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yu(0),this.hiddenUpdates=yu(null),this.identifierPrefix=a,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function tp(e,t,l,a,u,c,g,S,A,H,$,Z){return e=new IS(e,t,l,g,A,H,$,Z,S),t=1,c===!0&&(t|=24),c=kt(3,null,null,t),e.current=c,c.stateNode=e,t=ns(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:a,isDehydrated:l,cache:t},os(c),e}function np(e){return e?(e=Sa,e):Sa}function lp(e,t,l,a,u,c){u=np(u),a.context===null?a.context=u:a.pendingContext=u,a=nl(t),a.payload={element:l},c=c===void 0?null:c,c!==null&&(a.callback=c),l=ll(e,a,t),l!==null&&(Mt(l,e,t),Ei(l,e,t))}function ap(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Rc(e,t){ap(e,t),(e=e.alternate)&&ap(e,t)}function ip(e){if(e.tag===13||e.tag===31){var t=Ll(e,67108864);t!==null&&Mt(t,e,67108864),Rc(e,67108864)}}function op(e){if(e.tag===13||e.tag===31){var t=Bt();t=xu(t);var l=Ll(e,t);l!==null&&Mt(l,e,t),Rc(e,t)}}var Rr=!0;function PS(e,t,l,a){var u=_.T;_.T=null;var c=T.p;try{T.p=2,Ec(e,t,l,a)}finally{T.p=c,_.T=u}}function ZS(e,t,l,a){var u=_.T;_.T=null;var c=T.p;try{T.p=8,Ec(e,t,l,a)}finally{T.p=c,_.T=u}}function Ec(e,t,l,a){if(Rr){var u=_c(a);if(u===null)fc(e,t,a,Er,l),up(e,a);else if(JS(u,e,t,l,a))a.stopPropagation();else if(up(e,a),t&4&&-1<KS.indexOf(e)){for(;u!==null;){var c=sa(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var g=Dl(c.pendingLanes);if(g!==0){var S=c;for(S.pendingLanes|=2,S.entangledLanes|=2;g;){var A=1<<31-jt(g);S.entanglements[1]|=A,g&=~A}dn(c),(ze&6)===0&&(rr=Dt()+500,Gi(0))}}break;case 31:case 13:S=Ll(c,2),S!==null&&Mt(S,c,2),sr(),Rc(c,2)}if(c=_c(a),c===null&&fc(e,t,a,Er,l),c===u)break;u=c}u!==null&&a.stopPropagation()}else fc(e,t,a,null,l)}}function _c(e){return e=Au(e),Mc(e)}var Er=null;function Mc(e){if(Er=null,e=ua(e),e!==null){var t=f(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=d(t),e!==null)return e;e=null}else if(l===31){if(e=m(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Er=e,null}function rp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(L0()){case hd:return 2;case pd:return 8;case mo:case V0:return 32;case vd:return 268435456;default:return 32}default:return 32}}var Ac=!1,ml=null,hl=null,pl=null,Ii=new Map,Pi=new Map,vl=[],KS="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function up(e,t){switch(e){case"focusin":case"focusout":ml=null;break;case"dragenter":case"dragleave":hl=null;break;case"mouseover":case"mouseout":pl=null;break;case"pointerover":case"pointerout":Ii.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pi.delete(t.pointerId)}}function Zi(e,t,l,a,u,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:c,targetContainers:[u]},t!==null&&(t=sa(t),t!==null&&ip(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function JS(e,t,l,a,u){switch(t){case"focusin":return ml=Zi(ml,e,t,l,a,u),!0;case"dragenter":return hl=Zi(hl,e,t,l,a,u),!0;case"mouseover":return pl=Zi(pl,e,t,l,a,u),!0;case"pointerover":var c=u.pointerId;return Ii.set(c,Zi(Ii.get(c)||null,e,t,l,a,u)),!0;case"gotpointercapture":return c=u.pointerId,Pi.set(c,Zi(Pi.get(c)||null,e,t,l,a,u)),!0}return!1}function sp(e){var t=ua(e.target);if(t!==null){var l=f(t);if(l!==null){if(t=l.tag,t===13){if(t=d(l),t!==null){e.blockedOn=t,wd(e.priority,function(){op(l)});return}}else if(t===31){if(t=m(l),t!==null){e.blockedOn=t,wd(e.priority,function(){op(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function _r(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=_c(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Mu=a,l.target.dispatchEvent(a),Mu=null}else return t=sa(l),t!==null&&ip(t),e.blockedOn=l,!1;t.shift()}return!0}function cp(e,t,l){_r(e)&&l.delete(t)}function WS(){Ac=!1,ml!==null&&_r(ml)&&(ml=null),hl!==null&&_r(hl)&&(hl=null),pl!==null&&_r(pl)&&(pl=null),Ii.forEach(cp),Pi.forEach(cp)}function Mr(e,t){e.blockedOn===t&&(e.blockedOn=null,Ac||(Ac=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,WS)))}var Ar=null;function fp(e){Ar!==e&&(Ar=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Ar===e&&(Ar=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],u=e[t+2];if(typeof a!="function"){if(Mc(a||l)===null)continue;break}var c=sa(l);c!==null&&(e.splice(t,3),t-=3,_s(c,{pending:!0,data:u,method:l.method,action:a},a,u))}}))}function $a(e){function t(A){return Mr(A,e)}ml!==null&&Mr(ml,e),hl!==null&&Mr(hl,e),pl!==null&&Mr(pl,e),Ii.forEach(t),Pi.forEach(t);for(var l=0;l<vl.length;l++){var a=vl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<vl.length&&(l=vl[0],l.blockedOn===null);)sp(l),l.blockedOn===null&&vl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var u=l[a],c=l[a+1],g=u[bt]||null;if(typeof c=="function")g||fp(l);else if(g){var S=null;if(c&&c.hasAttribute("formAction")){if(u=c,g=c[bt]||null)S=g.formAction;else if(Mc(u)!==null)continue}else S=g.action;typeof S=="function"?l[a+1]=S:(l.splice(a,3),a-=3),fp(l)}}}function dp(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(g){return u=g})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function Oc(e){this._internalRoot=e}Or.prototype.render=Oc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=Bt();lp(l,a,e,t,null,null)},Or.prototype.unmount=Oc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;lp(e.current,2,null,e,null,null),sr(),t[ra]=null}};function Or(e){this._internalRoot=e}Or.prototype.unstable_scheduleHydration=function(e){if(e){var t=Cd();e={blockedOn:null,target:e,priority:t};for(var l=0;l<vl.length&&t!==0&&t<vl[l].priority;l++);vl.splice(l,0,e),l===0&&sp(e)}};var gp=i.version;if(gp!=="19.2.8")throw Error(r(527,gp,"19.2.8"));T.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=h(t),e=e!==null?C(e):null,e=e===null?null:e.stateNode,e};var e1={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Tr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tr.isDisabled&&Tr.supportsFiber)try{ii=Tr.inject(e1),zt=Tr}catch{}}return Ji.createRoot=function(e,t){if(!s(e))throw Error(r(299));var l=!1,a="",u=Sm,c=bm,g=Cm;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError)),t=tp(e,1,!1,null,null,l,a,null,u,c,g,dp),e[ra]=t.current,cc(e),new Oc(t)},Ji.hydrateRoot=function(e,t,l){if(!s(e))throw Error(r(299));var a=!1,u="",c=Sm,g=bm,S=Cm,A=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(u=l.identifierPrefix),l.onUncaughtError!==void 0&&(c=l.onUncaughtError),l.onCaughtError!==void 0&&(g=l.onCaughtError),l.onRecoverableError!==void 0&&(S=l.onRecoverableError),l.formState!==void 0&&(A=l.formState)),t=tp(e,1,!0,t,l??null,a,u,A,c,g,S,dp),t.context=np(null),l=t.current,a=Bt(),a=xu(a),u=nl(a),u.callback=null,ll(l,u,a),l=a,t.current.lanes=l,ri(t,l),dn(t),e[ra]=t.current,cc(e),new Or(t)},Ji.version="19.2.8",Ji}var _p;function d1(){if(_p)return jc.exports;_p=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(i){console.error(i)}}return n(),jc.exports=f1(),jc.exports}var g1=d1();const mv=w.createContext({theme:"system",setTheme:()=>null}),Mp="connectors-dashboard-theme";function m1({children:n,defaultTheme:i="system"}){const[o,r]=w.useState(()=>localStorage.getItem(Mp)||i);w.useEffect(()=>{const f=window.document.documentElement;if(f.classList.remove("light","dark"),o==="system"){const d=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";f.classList.add(d)}else f.classList.add(o)},[o]);const s=w.useMemo(()=>({theme:o,setTheme:f=>{localStorage.setItem(Mp,f),r(f)}}),[o]);return v.jsx(mv.Provider,{value:s,children:n})}function h1(){const n=w.useContext(mv);if(!n)throw new Error("useTheme must be used within a ThemeProvider");return n}/**
|
|
50
|
+
* @license lucide-react v0.468.0 - ISC
|
|
51
|
+
*
|
|
52
|
+
* This source code is licensed under the ISC license.
|
|
53
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
+
*/const p1=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),hv=(...n)=>n.filter((i,o,r)=>!!i&&i.trim()!==""&&r.indexOf(i)===o).join(" ").trim();/**
|
|
55
|
+
* @license lucide-react v0.468.0 - ISC
|
|
56
|
+
*
|
|
57
|
+
* This source code is licensed under the ISC license.
|
|
58
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
+
*/var v1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
60
|
+
* @license lucide-react v0.468.0 - ISC
|
|
61
|
+
*
|
|
62
|
+
* This source code is licensed under the ISC license.
|
|
63
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
+
*/const y1=w.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:r,className:s="",children:f,iconNode:d,...m},p)=>w.createElement("svg",{ref:p,...v1,width:i,height:i,stroke:n,strokeWidth:r?Number(o)*24/Number(i):o,className:hv("lucide",s),...m},[...d.map(([h,C])=>w.createElement(h,C)),...Array.isArray(f)?f:[f]]));/**
|
|
65
|
+
* @license lucide-react v0.468.0 - ISC
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the ISC license.
|
|
68
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/const je=(n,i)=>{const o=w.forwardRef(({className:r,...s},f)=>w.createElement(y1,{ref:f,iconNode:i,className:hv(`lucide-${p1(n)}`,r),...s}));return o.displayName=`${n}`,o};/**
|
|
70
|
+
* @license lucide-react v0.468.0 - ISC
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the ISC license.
|
|
73
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/const Vc=je("ArrowUpDown",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]);/**
|
|
75
|
+
* @license lucide-react v0.468.0 - ISC
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the ISC license.
|
|
78
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/const x1=je("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
|
|
80
|
+
* @license lucide-react v0.468.0 - ISC
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the ISC license.
|
|
83
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/const uo=je("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
85
|
+
* @license lucide-react v0.468.0 - ISC
|
|
86
|
+
*
|
|
87
|
+
* This source code is licensed under the ISC license.
|
|
88
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
+
*/const S1=je("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
90
|
+
* @license lucide-react v0.468.0 - ISC
|
|
91
|
+
*
|
|
92
|
+
* This source code is licensed under the ISC license.
|
|
93
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
+
*/const b1=je("CircleArrowUp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]]);/**
|
|
95
|
+
* @license lucide-react v0.468.0 - ISC
|
|
96
|
+
*
|
|
97
|
+
* This source code is licensed under the ISC license.
|
|
98
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
+
*/const sf=je("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
100
|
+
* @license lucide-react v0.468.0 - ISC
|
|
101
|
+
*
|
|
102
|
+
* This source code is licensed under the ISC license.
|
|
103
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
+
*/const pv=je("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
105
|
+
* @license lucide-react v0.468.0 - ISC
|
|
106
|
+
*
|
|
107
|
+
* This source code is licensed under the ISC license.
|
|
108
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
+
*/const vv=je("CircleDashed",[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]);/**
|
|
110
|
+
* @license lucide-react v0.468.0 - ISC
|
|
111
|
+
*
|
|
112
|
+
* This source code is licensed under the ISC license.
|
|
113
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
+
*/const cf=je("CircleX",[["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"}]]);/**
|
|
115
|
+
* @license lucide-react v0.468.0 - ISC
|
|
116
|
+
*
|
|
117
|
+
* This source code is licensed under the ISC license.
|
|
118
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
+
*/const C1=je("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/**
|
|
120
|
+
* @license lucide-react v0.468.0 - ISC
|
|
121
|
+
*
|
|
122
|
+
* This source code is licensed under the ISC license.
|
|
123
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
+
*/const iu=je("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
125
|
+
* @license lucide-react v0.468.0 - ISC
|
|
126
|
+
*
|
|
127
|
+
* This source code is licensed under the ISC license.
|
|
128
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
129
|
+
*/const Jr=je("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
|
130
|
+
* @license lucide-react v0.468.0 - ISC
|
|
131
|
+
*
|
|
132
|
+
* This source code is licensed under the ISC license.
|
|
133
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
134
|
+
*/const Ap=je("ExternalLink",[["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"}]]);/**
|
|
135
|
+
* @license lucide-react v0.468.0 - ISC
|
|
136
|
+
*
|
|
137
|
+
* This source code is licensed under the ISC license.
|
|
138
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
139
|
+
*/const w1=je("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
|
|
140
|
+
* @license lucide-react v0.468.0 - ISC
|
|
141
|
+
*
|
|
142
|
+
* This source code is licensed under the ISC license.
|
|
143
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
144
|
+
*/const yv=je("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/**
|
|
145
|
+
* @license lucide-react v0.468.0 - ISC
|
|
146
|
+
*
|
|
147
|
+
* This source code is licensed under the ISC license.
|
|
148
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
149
|
+
*/const Hc=je("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
150
|
+
* @license lucide-react v0.468.0 - ISC
|
|
151
|
+
*
|
|
152
|
+
* This source code is licensed under the ISC license.
|
|
153
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
154
|
+
*/const Op=je("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);/**
|
|
155
|
+
* @license lucide-react v0.468.0 - ISC
|
|
156
|
+
*
|
|
157
|
+
* This source code is licensed under the ISC license.
|
|
158
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
159
|
+
*/const R1=je("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"}]]);/**
|
|
160
|
+
* @license lucide-react v0.468.0 - ISC
|
|
161
|
+
*
|
|
162
|
+
* This source code is licensed under the ISC license.
|
|
163
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
164
|
+
*/const Tp=je("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
165
|
+
* @license lucide-react v0.468.0 - ISC
|
|
166
|
+
*
|
|
167
|
+
* This source code is licensed under the ISC license.
|
|
168
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
169
|
+
*/const E1=je("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/**
|
|
170
|
+
* @license lucide-react v0.468.0 - ISC
|
|
171
|
+
*
|
|
172
|
+
* This source code is licensed under the ISC license.
|
|
173
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
174
|
+
*/const xv=je("RefreshCw",[["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"}]]);/**
|
|
175
|
+
* @license lucide-react v0.468.0 - ISC
|
|
176
|
+
*
|
|
177
|
+
* This source code is licensed under the ISC license.
|
|
178
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
179
|
+
*/const _1=je("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
180
|
+
* @license lucide-react v0.468.0 - ISC
|
|
181
|
+
*
|
|
182
|
+
* This source code is licensed under the ISC license.
|
|
183
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
184
|
+
*/const M1=je("ShieldAlert",[["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"}]]);/**
|
|
185
|
+
* @license lucide-react v0.468.0 - ISC
|
|
186
|
+
*
|
|
187
|
+
* This source code is licensed under the ISC license.
|
|
188
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
189
|
+
*/const A1=je("ShieldCheck",[["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:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
190
|
+
* @license lucide-react v0.468.0 - ISC
|
|
191
|
+
*
|
|
192
|
+
* This source code is licensed under the ISC license.
|
|
193
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
194
|
+
*/const Dp=je("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
195
|
+
* @license lucide-react v0.468.0 - ISC
|
|
196
|
+
*
|
|
197
|
+
* This source code is licensed under the ISC license.
|
|
198
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
199
|
+
*/const O1=je("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
200
|
+
* @license lucide-react v0.468.0 - ISC
|
|
201
|
+
*
|
|
202
|
+
* This source code is licensed under the ISC license.
|
|
203
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
204
|
+
*/const T1=je("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
205
|
+
* @license lucide-react v0.468.0 - ISC
|
|
206
|
+
*
|
|
207
|
+
* This source code is licensed under the ISC license.
|
|
208
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
209
|
+
*/const D1=je("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
|
|
210
|
+
* @license lucide-react v0.468.0 - ISC
|
|
211
|
+
*
|
|
212
|
+
* This source code is licensed under the ISC license.
|
|
213
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
214
|
+
*/const Uc=je("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
|
|
215
|
+
* @license lucide-react v0.468.0 - ISC
|
|
216
|
+
*
|
|
217
|
+
* This source code is licensed under the ISC license.
|
|
218
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
219
|
+
*/const z1=je("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Sv(n){var i,o,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n)){var s=n.length;for(i=0;i<s;i++)n[i]&&(o=Sv(n[i]))&&(r&&(r+=" "),r+=o)}else for(o in n)n[o]&&(r&&(r+=" "),r+=o);return r}function bv(){for(var n,i,o=0,r="",s=arguments.length;o<s;o++)(n=arguments[o])&&(i=Sv(n))&&(r&&(r+=" "),r+=i);return r}const zp=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,jp=bv,Cv=(n,i)=>o=>{var r;if((i==null?void 0:i.variants)==null)return jp(n,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:s,defaultVariants:f}=i,d=Object.keys(s).map(h=>{const C=o==null?void 0:o[h],y=f==null?void 0:f[h];if(C===null)return null;const b=zp(C)||zp(y);return s[h][b]}),m=o&&Object.entries(o).reduce((h,C)=>{let[y,b]=C;return b===void 0||(h[y]=b),h},{}),p=i==null||(r=i.compoundVariants)===null||r===void 0?void 0:r.reduce((h,C)=>{let{class:y,className:b,...x}=C;return Object.entries(x).every(R=>{let[E,M]=R;return Array.isArray(M)?M.includes({...f,...m}[E]):{...f,...m}[E]===M})?[...h,y,b]:h},[]);return jp(n,d,p,o==null?void 0:o.class,o==null?void 0:o.className)},j1=(n,i)=>{const o=new Array(n.length+i.length);for(let r=0;r<n.length;r++)o[r]=n[r];for(let r=0;r<i.length;r++)o[n.length+r]=i[r];return o},N1=(n,i)=>({classGroupId:n,validator:i}),wv=(n=new Map,i=null,o)=>({nextPart:n,validators:i,classGroupId:o}),Wr="-",Np=[],k1="arbitrary..",L1=n=>{const i=H1(n),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=n;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return V1(d);const m=d.split(Wr),p=m[0]===""&&m.length>1?1:0;return Rv(m,p,i)},getConflictingClassGroupIds:(d,m)=>{if(m){const p=r[d],h=o[d];return p?h?j1(h,p):p:h||Np}return o[d]||Np}}},Rv=(n,i,o)=>{if(n.length-i===0)return o.classGroupId;const s=n[i],f=o.nextPart.get(s);if(f){const h=Rv(n,i+1,f);if(h)return h}const d=o.validators;if(d===null)return;const m=i===0?n.join(Wr):n.slice(i).join(Wr),p=d.length;for(let h=0;h<p;h++){const C=d[h];if(C.validator(m))return C.classGroupId}},V1=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=n.slice(1,-1),o=i.indexOf(":"),r=i.slice(0,o);return r?k1+r:void 0})(),H1=n=>{const{theme:i,classGroups:o}=n;return U1(o,i)},U1=(n,i)=>{const o=wv();for(const r in n){const s=n[r];Uf(s,o,r,i)}return o},Uf=(n,i,o,r)=>{const s=n.length;for(let f=0;f<s;f++){const d=n[f];B1(d,i,o,r)}},B1=(n,i,o,r)=>{if(typeof n=="string"){G1(n,i,o);return}if(typeof n=="function"){F1(n,i,o,r);return}q1(n,i,o,r)},G1=(n,i,o)=>{const r=n===""?i:Ev(i,n);r.classGroupId=o},F1=(n,i,o,r)=>{if($1(n)){Uf(n(r),i,o,r);return}i.validators===null&&(i.validators=[]),i.validators.push(N1(o,n))},q1=(n,i,o,r)=>{const s=Object.entries(n),f=s.length;for(let d=0;d<f;d++){const[m,p]=s[d];Uf(p,Ev(i,m),o,r)}},Ev=(n,i)=>{let o=n;const r=i.split(Wr),s=r.length;for(let f=0;f<s;f++){const d=r[f];let m=o.nextPart.get(d);m||(m=wv(),o.nextPart.set(d,m)),o=m}return o},$1=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,Y1=n=>{if(n<1)return{get:()=>{},set:()=>{}};let i=0,o=Object.create(null),r=Object.create(null);const s=(f,d)=>{o[f]=d,i++,i>n&&(i=0,r=o,o=Object.create(null))};return{get(f){let d=o[f];if(d!==void 0)return d;if((d=r[f])!==void 0)return s(f,d),d},set(f,d){f in o?o[f]=d:s(f,d)}}},ff="!",kp=":",X1=[],Lp=(n,i,o,r,s)=>({modifiers:n,hasImportantModifier:i,baseClassName:o,maybePostfixModifierPosition:r,isExternal:s}),Q1=n=>{const{prefix:i,experimentalParseClassName:o}=n;let r=s=>{const f=[];let d=0,m=0,p=0,h;const C=s.length;for(let E=0;E<C;E++){const M=s[E];if(d===0&&m===0){if(M===kp){f.push(s.slice(p,E)),p=E+1;continue}if(M==="/"){h=E;continue}}M==="["?d++:M==="]"?d--:M==="("?m++:M===")"&&m--}const y=f.length===0?s:s.slice(p);let b=y,x=!1;y.endsWith(ff)?(b=y.slice(0,-1),x=!0):y.startsWith(ff)&&(b=y.slice(1),x=!0);const R=h&&h>p?h-p:void 0;return Lp(f,x,b,R)};if(i){const s=i+kp,f=r;r=d=>d.startsWith(s)?f(d.slice(s.length)):Lp(X1,!1,d,void 0,!0)}if(o){const s=r;r=f=>o({className:f,parseClassName:s})}return r},I1=n=>{const i=new Map;return n.orderSensitiveModifiers.forEach((o,r)=>{i.set(o,1e6+r)}),o=>{const r=[];let s=[];for(let f=0;f<o.length;f++){const d=o[f],m=d[0]==="[",p=i.has(d);m||p?(s.length>0&&(s.sort(),r.push(...s),s=[]),r.push(d)):s.push(d)}return s.length>0&&(s.sort(),r.push(...s)),r}},P1=n=>({cache:Y1(n.cacheSize),parseClassName:Q1(n),sortModifiers:I1(n),postfixLookupClassGroupIds:Z1(n),...L1(n)}),Z1=n=>{const i=Object.create(null),o=n.postfixLookupClassGroups;if(o)for(let r=0;r<o.length;r++)i[o[r]]=!0;return i},K1=/\s+/,J1=(n,i)=>{const{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:s,sortModifiers:f,postfixLookupClassGroupIds:d}=i,m=[],p=n.trim().split(K1);let h="";for(let C=p.length-1;C>=0;C-=1){const y=p[C],{isExternal:b,modifiers:x,hasImportantModifier:R,baseClassName:E,maybePostfixModifierPosition:M}=o(y);if(b){h=y+(h.length>0?" "+h:h);continue}let z=!!M,N;if(z){const Q=E.substring(0,M);N=r(Q);const Y=N&&d[N]?r(E):void 0;Y&&Y!==N&&(N=Y,z=!1)}else N=r(E);if(!N){if(!z){h=y+(h.length>0?" "+h:h);continue}if(N=r(E),!N){h=y+(h.length>0?" "+h:h);continue}z=!1}const L=x.length===0?"":x.length===1?x[0]:f(x).join(":"),F=R?L+ff:L,G=F+N;if(m.indexOf(G)>-1)continue;m.push(G);const P=s(N,z);for(let Q=0;Q<P.length;++Q){const Y=P[Q];m.push(F+Y)}h=y+(h.length>0?" "+h:h)}return h},W1=(...n)=>{let i=0,o,r,s="";for(;i<n.length;)(o=n[i++])&&(r=_v(o))&&(s&&(s+=" "),s+=r);return s},_v=n=>{if(typeof n=="string")return n;let i,o="";for(let r=0;r<n.length;r++)n[r]&&(i=_v(n[r]))&&(o&&(o+=" "),o+=i);return o},eb=(n,...i)=>{let o,r,s,f;const d=p=>{const h=i.reduce((C,y)=>y(C),n());return o=P1(h),r=o.cache.get,s=o.cache.set,f=m,m(p)},m=p=>{const h=r(p);if(h)return h;const C=J1(p,o);return s(p,C),C};return f=d,(...p)=>f(W1(...p))},tb=[],lt=n=>{const i=o=>o[n]||tb;return i.isThemeGetter=!0,i},Mv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Av=/^\((?:(\w[\w-]*):)?(.+)\)$/i,nb=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,lb=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ab=/\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$/,ib=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ob=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,rb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xl=n=>nb.test(n),Ce=n=>!!n&&!Number.isNaN(Number(n)),gn=n=>!!n&&Number.isInteger(Number(n)),Bc=n=>n.endsWith("%")&&Ce(n.slice(0,-1)),Un=n=>lb.test(n),Ov=()=>!0,ub=n=>ab.test(n)&&!ib.test(n),Bf=()=>!1,sb=n=>ob.test(n),cb=n=>rb.test(n),fb=n=>!le(n)&&!ae(n),db=n=>n.startsWith("@container")&&(n[10]==="/"&&n[11]!==void 0||n[11]==="s"&&n[16]!==void 0&&n.startsWith("-size/",10)||n[11]==="n"&&n[18]!==void 0&&n.startsWith("-normal/",10)),gb=n=>Ml(n,zv,Bf),le=n=>Mv.test(n),Pl=n=>Ml(n,jv,ub),Vp=n=>Ml(n,bb,Ce),mb=n=>Ml(n,kv,Ov),hb=n=>Ml(n,Nv,Bf),Hp=n=>Ml(n,Tv,Bf),pb=n=>Ml(n,Dv,cb),Dr=n=>Ml(n,Lv,sb),ae=n=>Av.test(n),Wi=n=>ea(n,jv),vb=n=>ea(n,Nv),Up=n=>ea(n,Tv),yb=n=>ea(n,zv),xb=n=>ea(n,Dv),zr=n=>ea(n,Lv,!0),Sb=n=>ea(n,kv,!0),Ml=(n,i,o)=>{const r=Mv.exec(n);return r?r[1]?i(r[1]):o(r[2]):!1},ea=(n,i,o=!1)=>{const r=Av.exec(n);return r?r[1]?i(r[1]):o:!1},Tv=n=>n==="position"||n==="percentage",Dv=n=>n==="image"||n==="url",zv=n=>n==="length"||n==="size"||n==="bg-size",jv=n=>n==="length",bb=n=>n==="number",Nv=n=>n==="family-name",kv=n=>n==="number"||n==="weight",Lv=n=>n==="shadow",Cb=()=>{const n=lt("color"),i=lt("font"),o=lt("text"),r=lt("font-weight"),s=lt("tracking"),f=lt("leading"),d=lt("breakpoint"),m=lt("container"),p=lt("spacing"),h=lt("radius"),C=lt("shadow"),y=lt("inset-shadow"),b=lt("text-shadow"),x=lt("drop-shadow"),R=lt("blur"),E=lt("perspective"),M=lt("aspect"),z=lt("ease"),N=lt("animate"),L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],G=()=>[...F(),ae,le],P=()=>["auto","hidden","clip","visible","scroll"],Q=()=>["auto","contain","none"],Y=()=>[ae,le,p],W=()=>[xl,"full","auto",...Y()],se=()=>[gn,"none","subgrid",ae,le],ce=()=>["auto",{span:["full",gn,ae,le]},gn,ae,le],ne=()=>[gn,"auto",ae,le],ie=()=>["auto","min","max","fr",ae,le],de=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ve=()=>["start","end","center","stretch","center-safe","end-safe"],_=()=>["auto",...Y()],T=()=>[xl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...Y()],I=()=>[xl,"screen","full","dvw","lvw","svw","min","max","fit",...Y()],ee=()=>[xl,"screen","full","lh","dvh","lvh","svh","min","max","fit",...Y()],B=()=>[n,ae,le],O=()=>[...F(),Up,Hp,{position:[ae,le]}],k=()=>["no-repeat",{repeat:["","x","y","space","round"]}],K=()=>["auto","cover","contain",yb,gb,{size:[ae,le]}],J=()=>[Bc,Wi,Pl],te=()=>["","none","full",h,ae,le],re=()=>["",Ce,Wi,Pl],me=()=>["solid","dashed","dotted","double"],Ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ye=()=>[Ce,Bc,Up,Hp],Ie=()=>["","none",R,ae,le],vt=()=>["none",Ce,ae,le],nn=()=>["none",Ce,ae,le],Sn=()=>[Ce,ae,le],yt=()=>[xl,"full",...Y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Un],breakpoint:[Un],color:[Ov],container:[Un],"drop-shadow":[Un],ease:["in","out","in-out"],font:[fb],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Un],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Un],shadow:[Un],spacing:["px",Ce],text:[Un],"text-shadow":[Un],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",xl,le,ae,M]}],container:["container"],"container-type":[{"@container":["","normal","size",ae,le]}],"container-named":[db],columns:[{columns:[Ce,le,ae,m]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"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:G()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:Q()}],"overscroll-x":[{"overscroll-x":Q()}],"overscroll-y":[{"overscroll-y":Q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:W()}],"inset-x":[{"inset-x":W()}],"inset-y":[{"inset-y":W()}],start:[{"inset-s":W(),start:W()}],end:[{"inset-e":W(),end:W()}],"inset-bs":[{"inset-bs":W()}],"inset-be":[{"inset-be":W()}],top:[{top:W()}],right:[{right:W()}],bottom:[{bottom:W()}],left:[{left:W()}],visibility:["visible","invisible","collapse"],z:[{z:[gn,"auto",ae,le]}],basis:[{basis:[xl,"full","auto",m,...Y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ce,xl,"auto","initial","none",le]}],grow:[{grow:["",Ce,ae,le]}],shrink:[{shrink:["",Ce,ae,le]}],order:[{order:[gn,"first","last","none",ae,le]}],"grid-cols":[{"grid-cols":se()}],"col-start-end":[{col:ce()}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":se()}],"row-start-end":[{row:ce()}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:Y()}],"gap-x":[{"gap-x":Y()}],"gap-y":[{"gap-y":Y()}],"justify-content":[{justify:[...de(),"normal"]}],"justify-items":[{"justify-items":[...ve(),"normal"]}],"justify-self":[{"justify-self":["auto",...ve()]}],"align-content":[{content:["normal",...de()]}],"align-items":[{items:[...ve(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ve(),{baseline:["","last"]}]}],"place-content":[{"place-content":de()}],"place-items":[{"place-items":[...ve(),"baseline"]}],"place-self":[{"place-self":["auto",...ve()]}],p:[{p:Y()}],px:[{px:Y()}],py:[{py:Y()}],ps:[{ps:Y()}],pe:[{pe:Y()}],pbs:[{pbs:Y()}],pbe:[{pbe:Y()}],pt:[{pt:Y()}],pr:[{pr:Y()}],pb:[{pb:Y()}],pl:[{pl:Y()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mbs:[{mbs:_()}],mbe:[{mbe:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":Y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":Y()}],"space-y-reverse":["space-y-reverse"],size:[{size:T()}],"inline-size":[{inline:["auto",...I()]}],"min-inline-size":[{"min-inline":["auto",...I()]}],"max-inline-size":[{"max-inline":["none",...I()]}],"block-size":[{block:["auto",...ee()]}],"min-block-size":[{"min-block":["auto",...ee()]}],"max-block-size":[{"max-block":["none",...ee()]}],w:[{w:[m,"screen",...T()]}],"min-w":[{"min-w":[m,"screen","none",...T()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[d]},...T()]}],h:[{h:["screen","lh",...T()]}],"min-h":[{"min-h":["screen","lh","none",...T()]}],"max-h":[{"max-h":["screen","lh",...T()]}],"font-size":[{text:["base",o,Wi,Pl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Sb,mb]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Bc,le]}],"font-family":[{font:[vb,hb,i]}],"font-features":[{"font-features":[le]}],"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:[s,ae,le]}],"line-clamp":[{"line-clamp":[Ce,"none",ae,Vp]}],leading:[{leading:[f,...Y()]}],"list-image":[{"list-image":["none",ae,le]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ae,le]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...me(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ce,"from-font","auto",ae,Pl]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[Ce,"auto",ae,le]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Y()}],"tab-size":[{tab:[gn,ae,le]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ae,le]}],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",ae,le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:O()}],"bg-repeat":[{bg:k()}],"bg-size":[{bg:K()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},gn,ae,le],radial:["",ae,le],conic:[gn,ae,le]},xb,pb]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:J()}],"gradient-via-pos":[{via:J()}],"gradient-to-pos":[{to:J()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:te()}],"rounded-s":[{"rounded-s":te()}],"rounded-e":[{"rounded-e":te()}],"rounded-t":[{"rounded-t":te()}],"rounded-r":[{"rounded-r":te()}],"rounded-b":[{"rounded-b":te()}],"rounded-l":[{"rounded-l":te()}],"rounded-ss":[{"rounded-ss":te()}],"rounded-se":[{"rounded-se":te()}],"rounded-ee":[{"rounded-ee":te()}],"rounded-es":[{"rounded-es":te()}],"rounded-tl":[{"rounded-tl":te()}],"rounded-tr":[{"rounded-tr":te()}],"rounded-br":[{"rounded-br":te()}],"rounded-bl":[{"rounded-bl":te()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-bs":[{"border-bs":re()}],"border-w-be":[{"border-be":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...me(),"hidden","none"]}],"divide-style":[{divide:[...me(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-bs":[{"border-bs":B()}],"border-color-be":[{"border-be":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}],"divide-color":[{divide:B()}],"outline-style":[{outline:[...me(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ce,ae,le]}],"outline-w":[{outline:["",Ce,Wi,Pl]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",C,zr,Dr]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",y,zr,Dr]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[Ce,Pl]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",b,zr,Dr]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[Ce,ae,le]}],"mix-blend":[{"mix-blend":[...Ae(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ae()}],"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":[Ce]}],"mask-image-linear-from-pos":[{"mask-linear-from":ye()}],"mask-image-linear-to-pos":[{"mask-linear-to":ye()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":ye()}],"mask-image-t-to-pos":[{"mask-t-to":ye()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":ye()}],"mask-image-r-to-pos":[{"mask-r-to":ye()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":ye()}],"mask-image-b-to-pos":[{"mask-b-to":ye()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":ye()}],"mask-image-l-to-pos":[{"mask-l-to":ye()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":ye()}],"mask-image-x-to-pos":[{"mask-x-to":ye()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":ye()}],"mask-image-y-to-pos":[{"mask-y-to":ye()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[ae,le]}],"mask-image-radial-from-pos":[{"mask-radial-from":ye()}],"mask-image-radial-to-pos":[{"mask-radial-to":ye()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"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":F()}],"mask-image-conic-pos":[{"mask-conic":[Ce]}],"mask-image-conic-from-pos":[{"mask-conic-from":ye()}],"mask-image-conic-to-pos":[{"mask-conic-to":ye()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:O()}],"mask-repeat":[{mask:k()}],"mask-size":[{mask:K()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ae,le]}],filter:[{filter:["","none",ae,le]}],blur:[{blur:Ie()}],brightness:[{brightness:[Ce,ae,le]}],contrast:[{contrast:[Ce,ae,le]}],"drop-shadow":[{"drop-shadow":["","none",x,zr,Dr]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",Ce,ae,le]}],"hue-rotate":[{"hue-rotate":[Ce,ae,le]}],invert:[{invert:["",Ce,ae,le]}],saturate:[{saturate:[Ce,ae,le]}],sepia:[{sepia:["",Ce,ae,le]}],"backdrop-filter":[{"backdrop-filter":["","none",ae,le]}],"backdrop-blur":[{"backdrop-blur":Ie()}],"backdrop-brightness":[{"backdrop-brightness":[Ce,ae,le]}],"backdrop-contrast":[{"backdrop-contrast":[Ce,ae,le]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ce,ae,le]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ce,ae,le]}],"backdrop-invert":[{"backdrop-invert":["",Ce,ae,le]}],"backdrop-opacity":[{"backdrop-opacity":[Ce,ae,le]}],"backdrop-saturate":[{"backdrop-saturate":[Ce,ae,le]}],"backdrop-sepia":[{"backdrop-sepia":["",Ce,ae,le]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":Y()}],"border-spacing-x":[{"border-spacing-x":Y()}],"border-spacing-y":[{"border-spacing-y":Y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ae,le]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ce,"initial",ae,le]}],ease:[{ease:["linear","initial",z,ae,le]}],delay:[{delay:[Ce,ae,le]}],animate:[{animate:["none",N,ae,le]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,ae,le]}],"perspective-origin":[{"perspective-origin":G()}],rotate:[{rotate:vt()}],"rotate-x":[{"rotate-x":vt()}],"rotate-y":[{"rotate-y":vt()}],"rotate-z":[{"rotate-z":vt()}],scale:[{scale:nn()}],"scale-x":[{"scale-x":nn()}],"scale-y":[{"scale-y":nn()}],"scale-z":[{"scale-z":nn()}],"scale-3d":["scale-3d"],skew:[{skew:Sn()}],"skew-x":[{"skew-x":Sn()}],"skew-y":[{"skew-y":Sn()}],transform:[{transform:[ae,le,"","none","gpu","cpu"]}],"transform-origin":[{origin:G()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:yt()}],"translate-x":[{"translate-x":yt()}],"translate-y":[{"translate-y":yt()}],"translate-z":[{"translate-z":yt()}],"translate-none":["translate-none"],zoom:[{zoom:[gn,ae,le]}],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}],"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",ae,le]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":B()}],"scrollbar-track-color":[{"scrollbar-track":B()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":Y()}],"scroll-mx":[{"scroll-mx":Y()}],"scroll-my":[{"scroll-my":Y()}],"scroll-ms":[{"scroll-ms":Y()}],"scroll-me":[{"scroll-me":Y()}],"scroll-mbs":[{"scroll-mbs":Y()}],"scroll-mbe":[{"scroll-mbe":Y()}],"scroll-mt":[{"scroll-mt":Y()}],"scroll-mr":[{"scroll-mr":Y()}],"scroll-mb":[{"scroll-mb":Y()}],"scroll-ml":[{"scroll-ml":Y()}],"scroll-p":[{"scroll-p":Y()}],"scroll-px":[{"scroll-px":Y()}],"scroll-py":[{"scroll-py":Y()}],"scroll-ps":[{"scroll-ps":Y()}],"scroll-pe":[{"scroll-pe":Y()}],"scroll-pbs":[{"scroll-pbs":Y()}],"scroll-pbe":[{"scroll-pbe":Y()}],"scroll-pt":[{"scroll-pt":Y()}],"scroll-pr":[{"scroll-pr":Y()}],"scroll-pb":[{"scroll-pb":Y()}],"scroll-pl":[{"scroll-pl":Y()}],"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",ae,le]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[Ce,Wi,Pl,Vp]}],stroke:[{stroke:["none",...B()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},wb=eb(Cb);function Qe(...n){return wb(bv(n))}const Rb=Cv("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",{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:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input 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",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Ue({className:n,variant:i,size:o,...r}){return v.jsx("button",{className:Qe(Rb({variant:i,size:o,className:n})),...r})}var Gf=gv(),Eb=Object.defineProperty,Ff=(n,i)=>Eb(n,"name",{value:i,configurable:!0});function df(n,i){if(typeof n=="function")return n(i);n!=null&&(n.current=i)}Ff(df,"setRef");function Vv(...n){return i=>{let o=!1;const r=n.map(s=>{const f=df(s,i);return!o&&typeof f=="function"&&(o=!0),f});if(o)return()=>{for(let s=0;s<r.length;s++){const f=r[s];typeof f=="function"?f():df(n[s],null)}}}}Ff(Vv,"composeRefs");function at(...n){return w.useCallback(Vv(...n),n)}Ff(at,"useComposedRefs");var _b=Object.defineProperty,un=(n,i)=>_b(n,"name",{value:i,configurable:!0});function wl(n){const i=w.forwardRef((o,r)=>{let{children:s,...f}=o,d=null,m=!1;const p=[];gf(s)&&typeof jr=="function"&&(s=jr(s._payload)),w.Children.forEach(s,b=>{var x;if(Gv(b)){m=!0;const R=b;let E="child"in R.props?R.props.child:R.props.children;gf(E)&&typeof jr=="function"&&(E=jr(E._payload)),d=Ab(R,E),p.push((x=d==null?void 0:d.props)==null?void 0:x.children)}else p.push(b)}),d?d=w.cloneElement(d,void 0,p):!m&&w.Children.count(s)===1&&w.isValidElement(s)&&(d=s);const h=d?Bv(d):void 0,C=at(r,h);if(!d){if(s||s===0)throw new Error(m?Db(n):Tb(n));return s}const y=Uv(f,d.props??{});return d.type!==w.Fragment&&(y.ref=r?C:h),w.cloneElement(d,y)});return i.displayName=`${n}.Slot`,i}un(wl,"createSlot");var Hv=Symbol.for("radix.slottable");function Mb(n){const i=un(o=>"child"in o?o.children(o.child):o.children,"Slottable");return i.displayName=`${n}.Slottable`,i.__radixId=Hv,i}un(Mb,"createSlottable");var Ab=un((n,i)=>{if("child"in n.props){const o=n.props.child;return w.isValidElement(o)?w.cloneElement(o,void 0,n.props.children(o.props.children)):null}return w.isValidElement(i)?i:null},"getSlottableElementFromSlottable");function Uv(n,i){const o={...i};for(const r in i){const s=n[r],f=i[r];/^on[A-Z]/.test(r)?s&&f?o[r]=(...m)=>{const p=f(...m);return s(...m),p}:s&&(o[r]=s):r==="style"?o[r]={...s,...f}:r==="className"&&(o[r]=[s,f].filter(Boolean).join(" "))}return{...n,...o}}un(Uv,"mergeProps");function Bv(n){var r,s;let i=(r=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:r.get,o=i&&"isReactWarning"in i&&i.isReactWarning;return o?n.ref:(i=(s=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:s.get,o=i&&"isReactWarning"in i&&i.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}un(Bv,"getElementRef");function Gv(n){return w.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Hv}un(Gv,"isSlottable");var Ob=Symbol.for("react.lazy");function gf(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===Ob&&"_payload"in n&&Fv(n._payload)}un(gf,"isLazyComponent");function Fv(n){return typeof n=="object"&&n!==null&&"then"in n}un(Fv,"isPromiseLike");var Tb=un(n=>`${n} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),Db=un(n=>`${n} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),jr=Ka[" use ".trim().toString()],zb=Object.defineProperty,jb=(n,i)=>zb(n,"name",{value:i,configurable:!0}),Nb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Tt=Nb.reduce((n,i)=>{const o=wl(`Primitive.${i}`),r=w.forwardRef((s,f)=>{const{asChild:d,...m}=s,p=d?o:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(p,{...m,ref:f})});return r.displayName=`Primitive.${i}`,{...n,[i]:r}},{});function qf(n,i){n&&Gf.flushSync(()=>n.dispatchEvent(i))}jb(qf,"dispatchDiscreteCustomEvent");var kb=Object.defineProperty,en=(n,i)=>kb(n,"name",{value:i,configurable:!0});function Lb(n,i){const o=w.createContext(i);o.displayName=n+"Context";const r=en(f=>{const{children:d,...m}=f,p=w.useMemo(()=>m,Object.values(m));return v.jsx(o.Provider,{value:p,children:d})},"Provider");r.displayName=n+"Provider";function s(f,d={}){const{optional:m=!1}=d,p=w.useContext(o);if(p)return p;if(i!==void 0)return i;if(!m)throw new Error(`\`${f}\` must be used within \`${n}\``)}return en(s,"useContext"),[r,s]}en(Lb,"createContext");function Al(n,i=[]){let o=[];function r(f,d){const m=w.createContext(d);m.displayName=f+"Context";const p=o.length;o=[...o,d];const h=en(y=>{var z;const{scope:b,children:x,...R}=y,E=((z=b==null?void 0:b[n])==null?void 0:z[p])||m,M=w.useMemo(()=>R,Object.values(R));return v.jsx(E.Provider,{value:M,children:x})},"Provider");h.displayName=f+"Provider";function C(y,b,x={}){var z;const{optional:R=!1}=x,E=((z=b==null?void 0:b[n])==null?void 0:z[p])||m,M=w.useContext(E);if(M)return M;if(d!==void 0)return d;if(!R)throw new Error(`\`${y}\` must be used within \`${f}\``)}return en(C,"useContext"),[h,C]}en(r,"createContext");const s=en(()=>{const f=o.map(d=>w.createContext(d));return en(function(m){const p=(m==null?void 0:m[n])||f;return w.useMemo(()=>({[`__scope${n}`]:{...m,[n]:p}}),[m,p])},"useScope")},"createScope");return s.scopeName=n,[r,qv(s,...i)]}en(Al,"createContextScope");function qv(...n){const i=n[0];if(n.length===1)return i;const o=en(()=>{const r=n.map(s=>({useScope:s(),scopeName:s.scopeName}));return en(function(f){const d=r.reduce((m,{useScope:p,scopeName:h})=>{const y=p(f)[`__scope${h}`];return{...m,...y}},{});return w.useMemo(()=>({[`__scope${i.scopeName}`]:d}),[d])},"useComposedScopes")},"createScope");return o.scopeName=i.scopeName,o}en(qv,"composeContextScopes");var Vb=Object.defineProperty,ut=(n,i)=>Vb(n,"name",{value:i,configurable:!0});function $f(n){const i=n+"CollectionProvider",[o,r]=Al(i),[s,f]=o(i,{collectionRef:{current:null},itemMap:new Map}),d=ut(E=>{const{scope:M,children:z}=E,N=w.useRef(null),L=w.useRef(new Map).current;return v.jsx(s,{scope:M,itemMap:L,collectionRef:N,children:z})},"CollectionProvider");d.displayName=i;const m=n+"CollectionSlot",p=wl(m),h=w.forwardRef((E,M)=>{const{scope:z,children:N}=E,L=f(m,z),F=at(M,L.collectionRef);return v.jsx(p,{ref:F,children:N})});h.displayName=m;const C=n+"CollectionItemSlot",y="data-radix-collection-item",b=wl(C),x=w.forwardRef((E,M)=>{const{scope:z,children:N,...L}=E,F=w.useRef(null),G=at(M,F),P=f(C,z);return w.useEffect(()=>(P.itemMap.set(F,{ref:F,...L}),()=>void P.itemMap.delete(F))),v.jsx(b,{[y]:"",ref:G,children:N})});x.displayName=C;function R(E){const M=f(n+"CollectionConsumer",E);return w.useCallback(()=>{const N=M.collectionRef.current;if(!N)return[];const L=Array.from(N.querySelectorAll(`[${y}]`));return Array.from(M.itemMap.values()).sort((P,Q)=>L.indexOf(P.ref.current)-L.indexOf(Q.ref.current))},[M.collectionRef,M.itemMap])}return ut(R,"useCollection"),[{Provider:d,Slot:h,ItemSlot:x},R,r]}ut($f,"createCollection");var Bp=new WeakMap,tt,Gt,Gc=(Gt=class extends Map{constructor(o){super(o);pp(this,tt);Tc(this,tt,[...super.keys()]),Bp.set(this,!0)}set(o,r){return Bp.get(this)&&(this.has(o)?mt(this,tt)[mt(this,tt).indexOf(o)]=o:mt(this,tt).push(o)),super.set(o,r),this}insert(o,r,s){const f=this.has(r),d=mt(this,tt).length,m=Yf(o);let p=m>=0?m:d+m;const h=p<0||p>=d?-1:p;if(h===this.size||f&&h===this.size-1||h===-1)return this.set(r,s),this;const C=this.size+(f?0:1);m<0&&p++;const y=[...mt(this,tt)];let b,x=!1;for(let R=p;R<C;R++)if(p===R){let E=y[R];y[R]===r&&(E=y[R+1]),f&&this.delete(r),b=this.get(E),this.set(r,s)}else{!x&&y[R-1]===r&&(x=!0);const E=y[x?R:R-1],M=b;b=this.get(E),this.delete(E),this.set(E,M)}return this}with(o,r,s){const f=new Gt(this);return f.insert(o,r,s),f}before(o){const r=mt(this,tt).indexOf(o)-1;if(!(r<0))return this.entryAt(r)}setBefore(o,r,s){const f=mt(this,tt).indexOf(o);return f===-1?this:this.insert(f,r,s)}after(o){let r=mt(this,tt).indexOf(o);if(r=r===-1||r===this.size-1?-1:r+1,r!==-1)return this.entryAt(r)}setAfter(o,r,s){const f=mt(this,tt).indexOf(o);return f===-1?this:this.insert(f+1,r,s)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return Tc(this,tt,[]),super.clear()}delete(o){const r=super.delete(o);return r&&mt(this,tt).splice(mt(this,tt).indexOf(o),1),r}deleteAt(o){const r=this.keyAt(o);return r!==void 0?this.delete(r):!1}at(o){const r=Qr(mt(this,tt),o);if(r!==void 0)return this.get(r)}entryAt(o){const r=Qr(mt(this,tt),o);if(r!==void 0)return[r,this.get(r)]}indexOf(o){return mt(this,tt).indexOf(o)}keyAt(o){return Qr(mt(this,tt),o)}from(o,r){const s=this.indexOf(o);if(s===-1)return;let f=s+r;return f<0&&(f=0),f>=this.size&&(f=this.size-1),this.at(f)}keyFrom(o,r){const s=this.indexOf(o);if(s===-1)return;let f=s+r;return f<0&&(f=0),f>=this.size&&(f=this.size-1),this.keyAt(f)}find(o,r){let s=0;for(const f of this){if(Reflect.apply(o,r,[f,s,this]))return f;s++}}findIndex(o,r){let s=0;for(const f of this){if(Reflect.apply(o,r,[f,s,this]))return s;s++}return-1}filter(o,r){const s=[];let f=0;for(const d of this)Reflect.apply(o,r,[d,f,this])&&s.push(d),f++;return new Gt(s)}map(o,r){const s=[];let f=0;for(const d of this)s.push([d[0],Reflect.apply(o,r,[d,f,this])]),f++;return new Gt(s)}reduce(...o){const[r,s]=o;let f=0,d=s??this.at(0);for(const m of this)f===0&&o.length===1?d=m:d=Reflect.apply(r,this,[d,m,f,this]),f++;return d}reduceRight(...o){const[r,s]=o;let f=s??this.at(-1);for(let d=this.size-1;d>=0;d--){const m=this.at(d);d===this.size-1&&o.length===1?f=m:f=Reflect.apply(r,this,[f,m,d,this])}return f}toSorted(o){const r=[...this.entries()].sort(o);return new Gt(r)}toReversed(){const o=new Gt;for(let r=this.size-1;r>=0;r--){const s=this.keyAt(r),f=this.get(s);o.set(s,f)}return o}toSpliced(...o){const r=[...this.entries()];return r.splice(...o),new Gt(r)}slice(o,r){const s=new Gt;let f=this.size-1;if(o===void 0)return s;o<0&&(o=o+this.size),r!==void 0&&r>0&&(f=r-1);for(let d=o;d<=f;d++){const m=this.keyAt(d),p=this.get(m);s.set(m,p)}return s}every(o,r){let s=0;for(const f of this){if(!Reflect.apply(o,r,[f,s,this]))return!1;s++}return!0}some(o,r){let s=0;for(const f of this){if(Reflect.apply(o,r,[f,s,this]))return!0;s++}return!1}},tt=new WeakMap,ut(Gt,"OrderedDict"),Gt);function Qr(n,i){if("at"in Array.prototype)return Array.prototype.at.call(n,i);const o=$v(n,i);return o===-1?void 0:n[o]}ut(Qr,"at");function $v(n,i){const o=n.length,r=Yf(i),s=r>=0?r:o+r;return s<0||s>=o?-1:s}ut($v,"toSafeIndex");function Yf(n){return n!==n||n===0?0:Math.trunc(n)}ut(Yf,"toSafeInteger");function Hb(n){const i=n+"CollectionProvider",[o,r]=Al(i),[s,f]=o(i,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Gc,setItemMap:ut(()=>{},"setItemMap")}),d=ut(({state:L,...F})=>L?v.jsx(p,{...F,state:L}):v.jsx(m,{...F}),"CollectionProvider");d.displayName=i;const m=ut(L=>{const F=M();return v.jsx(p,{...L,state:F})},"CollectionInit");m.displayName=i+"Init";const p=ut(L=>{const{scope:F,children:G,state:P}=L,Q=w.useRef(null),[Y,W]=w.useState(null),se=at(Q,W),[ce,ne]=P;return w.useEffect(()=>{if(!Y)return;const ie=Qv(()=>{});return ie.observe(Y,{childList:!0,subtree:!0}),()=>{ie.disconnect()}},[Y]),v.jsx(s,{scope:F,itemMap:ce,setItemMap:ne,collectionRef:se,collectionRefObject:Q,collectionElement:Y,children:G})},"CollectionProviderImpl");p.displayName=i+"Impl";const h=n+"CollectionSlot",C=wl(h),y=w.forwardRef((L,F)=>{const{scope:G,children:P}=L,Q=f(h,G),Y=at(F,Q.collectionRef);return v.jsx(C,{ref:Y,children:P})});y.displayName=h;const b=n+"CollectionItemSlot",x="data-radix-collection-item",R=wl(b),E=w.forwardRef((L,F)=>{const{scope:G,children:P,...Q}=L,Y=w.useRef(null),[W,se]=w.useState(null),ce=at(F,Y,se),ne=f(b,G),{setItemMap:ie}=ne,de=w.useRef(Q);Yv(de.current,Q)||(de.current=Q);const ve=de.current;return w.useEffect(()=>{const _=ve;return ie(T=>W?T.has(W)?T.set(W,{..._,element:W}).toSorted(mf):(T.set(W,{..._,element:W}),T.toSorted(mf)):T),()=>{ie(T=>!W||!T.has(W)?T:(T.delete(W),new Gc(T)))}},[W,ve,ie]),v.jsx(R,{[x]:"",ref:ce,children:P})});E.displayName=b;function M(){return w.useState(new Gc)}ut(M,"useInitCollection");function z(L){const{itemMap:F}=f(n+"CollectionConsumer",L);return F}return ut(z,"useCollection"),[{Provider:d,Slot:y,ItemSlot:E},{createCollectionScope:r,useCollection:z,useInitCollection:M}]}ut(Hb,"createCollection");function Yv(n,i){if(n===i)return!0;if(typeof n!="object"||typeof i!="object"||n==null||i==null)return!1;const o=Object.keys(n),r=Object.keys(i);if(o.length!==r.length)return!1;for(const s of o)if(!Object.prototype.hasOwnProperty.call(i,s)||n[s]!==i[s])return!1;return!0}ut(Yv,"shallowEqual");function Xv(n,i){return!!(i.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING)}ut(Xv,"isElementPreceding");function mf(n,i){return!n[1].element||!i[1].element?0:Xv(n[1].element,i[1].element)?-1:1}ut(mf,"sortByDocumentPosition");function Qv(n){return new MutationObserver(o=>{for(const r of o)if(r.type==="childList"){n();return}})}ut(Qv,"getChildListObserver");var Ub=Object.defineProperty,Ja=(n,i)=>Ub(n,"name",{value:i,configurable:!0}),Iv=!!(typeof window<"u"&&window.document&&window.document.createElement);function De(n,i,{checkForDefaultPrevented:o=!0}={}){return Ja(function(s){if(n==null||n(s),o===!1||!s||!s.defaultPrevented)return i==null?void 0:i(s)},"handleEvent")}Ja(De,"composeEventHandlers");function Bb(n){var i;if(!Iv)throw new Error("Cannot access window outside of the DOM");return((i=n==null?void 0:n.ownerDocument)==null?void 0:i.defaultView)??window}Ja(Bb,"getOwnerWindow");function hf(n){if(!Iv)throw new Error("Cannot access document outside of the DOM");return(n==null?void 0:n.ownerDocument)??document}Ja(hf,"getOwnerDocument");function Pv(n,i=!1){const{activeElement:o}=hf(n);if(!(o!=null&&o.nodeName))return null;if(Zv(o)&&o.contentDocument)return Pv(o.contentDocument.body,i);if(i){const r=o.getAttribute("aria-activedescendant");if(r){const s=hf(o).getElementById(r);if(s)return s}}return o}Ja(Pv,"getActiveElement");function Zv(n){return n.tagName==="IFRAME"}Ja(Zv,"isFrame");var Ft=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},Gb=Object.defineProperty,Fb=(n,i)=>Gb(n,"name",{value:i,configurable:!0}),Gp=Ka[" useEffectEvent ".trim().toString()],Fp=Ka[" useInsertionEffect ".trim().toString()];function Kv(n){if(typeof Gp=="function")return Gp(n);const i=w.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof Fp=="function"?Fp(()=>{i.current=n}):Ft(()=>{i.current=n}),w.useMemo(()=>((...o)=>{var r;return(r=i.current)==null?void 0:r.call(i,...o)}),[])}Fb(Kv,"useEffectEvent");var qb=Object.defineProperty,so=(n,i)=>qb(n,"name",{value:i,configurable:!0}),$b=Ka[" useInsertionEffect ".trim().toString()]||Ft;function ou({prop:n,defaultProp:i,onChange:o=so(()=>{},"onChange"),caller:r}){const[s,f,d]=Jv({defaultProp:i,onChange:o}),m=n!==void 0,p=m?n:s,h=w.useCallback(C=>{var y;if(m){const b=Wv(C)?C(n):C;b!==n&&((y=d.current)==null||y.call(d,b))}else f(C)},[m,n,f,d]);return[p,h]}so(ou,"useControllableState");function Jv({defaultProp:n,onChange:i}){const[o,r]=w.useState(n),s=w.useRef(o),f=w.useRef(i);return $b(()=>{f.current=i},[i]),w.useEffect(()=>{var d;s.current!==o&&((d=f.current)==null||d.call(f,o),s.current=o)},[o,s]),[o,r,f]}so(Jv,"useUncontrolledState");function Wv(n){return typeof n=="function"}so(Wv,"isFunction");var qp=Symbol("RADIX:SYNC_STATE");function Yb(n,i,o,r){const{prop:s,defaultProp:f,onChange:d,caller:m}=i,p=s!==void 0,h=Kv(d),C=[{...o,state:f}];r&&C.push(r);const[y,b]=w.useReducer((M,z)=>{if(z.type===qp)return{...M,state:z.state};const N=n(M,z);return p&&!Object.is(N.state,M.state)&&h(N.state),N},...C),x=y.state,R=w.useRef(x);w.useEffect(()=>{R.current!==x&&(R.current=x,p||h(x))},[x,R,p]);const E=w.useMemo(()=>s!==void 0?{...y,state:s}:y,[y,s]);return w.useEffect(()=>{p&&!Object.is(s,y.state)&&b({type:qp,state:s})},[s,y.state,p]),[E,b]}so(Yb,"useControllableStateReducer");var Xb=Object.defineProperty,$n=(n,i)=>Xb(n,"name",{value:i,configurable:!0});function ey(n,i){return w.useReducer((o,r)=>i[o][r]??o,n)}$n(ey,"useStateMachine");var Wa=$n(n=>{const{present:i,children:o}=n,r=ty(i),s=typeof o=="function"?o({present:r.isPresent}):w.Children.only(o),f=ny(r.ref,ly(s));return typeof o=="function"||r.isPresent?w.cloneElement(s,{ref:f}):null},"Presence");function ty(n){const[i,o]=w.useState(),r=w.useRef(null),s=w.useRef(n),f=w.useRef("none"),d=w.useRef(void 0),m=n?"mounted":"unmounted",[p,h]=ey(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{p==="mounted"?(f.current=d.current??Ia(r.current),d.current=void 0):f.current="none"},[p]),Ft(()=>{const C=r.current,y=s.current;if(y!==n){const x=f.current,R=Ia(C);n?(d.current=R,h("MOUNT")):R==="none"||(C==null?void 0:C.display)==="none"?h("UNMOUNT"):h(y&&x!==R?"ANIMATION_OUT":"UNMOUNT"),s.current=n}},[n,h]),Ft(()=>{if(i){let C;const y=i.ownerDocument.defaultView??window,b=$n(R=>{const M=Ia(r.current).includes(CSS.escape(R.animationName));if(R.target===i&&M&&(h("ANIMATION_END"),!s.current)){const z=i.style.animationFillMode;i.style.animationFillMode="forwards",C=y.setTimeout(()=>{i.style.animationFillMode==="forwards"&&(i.style.animationFillMode=z)})}},"handleAnimationEnd"),x=$n(R=>{R.target===i&&(f.current=Ia(r.current))},"handleAnimationStart");return i.addEventListener("animationstart",x),i.addEventListener("animationcancel",b),i.addEventListener("animationend",b),()=>{y.clearTimeout(C),i.removeEventListener("animationstart",x),i.removeEventListener("animationcancel",b),i.removeEventListener("animationend",b)}}else h("ANIMATION_END")},[i,h]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:w.useCallback(C=>{if(C){const y=getComputedStyle(C);r.current=y,d.current=Ia(y)}else r.current=null;o(C)},[])}}$n(ty,"usePresence");function pf(n,i){if(typeof n=="function")return n(i);n!=null&&(n.current=i)}$n(pf,"setRef");function ny(...n){const i=w.useRef(n);return i.current=n,w.useCallback(o=>{const r=i.current;let s=!1;const f=r.map(d=>{const m=pf(d,o);return!s&&typeof m=="function"&&(s=!0),m});if(s)return()=>{for(let d=0;d<f.length;d++){const m=f[d];typeof m=="function"?m():pf(r[d],null)}}},[])}$n(ny,"useStableComposedRefs");function Ia(n){return(n==null?void 0:n.animationName)||"none"}$n(Ia,"getAnimationName");function ly(n){var r,s;let i=(r=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:r.get,o=i&&"isReactWarning"in i&&i.isReactWarning;return o?n.ref:(i=(s=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:s.get,o=i&&"isReactWarning"in i&&i.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}$n(ly,"getElementRef");var Qb=Object.defineProperty,Ib=(n,i)=>Qb(n,"name",{value:i,configurable:!0}),Pb=Ka[" useId ".trim().toString()]||(()=>{}),Zb=0;function Kl(n){const[i,o]=w.useState(Pb());return Ft(()=>{n||o(r=>r??String(Zb++))},[n]),n||(i?`radix-${i}`:"")}Ib(Kl,"useId");var Kb=Object.defineProperty,Jb=(n,i)=>Kb(n,"name",{value:i,configurable:!0}),Wb=w.createContext(void 0);function Xf(n){const i=w.useContext(Wb);return n||i||"ltr"}Jb(Xf,"useDirection");var eC=Object.defineProperty,tC=(n,i)=>eC(n,"name",{value:i,configurable:!0});function Yn(n){const i=w.useRef(n);return w.useEffect(()=>{i.current=n}),w.useMemo(()=>((...o)=>{var r;return(r=i.current)==null?void 0:r.call(i,...o)}),[])}tC(Yn,"useCallbackRef");var nC=Object.defineProperty,rt=(n,i)=>nC(n,"name",{value:i,configurable:!0}),vf="dismissableLayer.update",lC="dismissableLayer.pointerDownOutside",aC="dismissableLayer.focusOutside",$p,ay=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),iy=w.forwardRef(rt(function(i,o){const{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:s=!1,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:m,onInteractOutside:p,onDismiss:h,...C}=i,y=w.useContext(ay),[b,x]=w.useState(null),R=(b==null?void 0:b.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,E]=w.useState({}),M=at(o,x),z=Array.from(y.layers),[N]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),L=N?z.indexOf(N):-1,F=b?z.indexOf(b):-1,G=y.layersWithOutsidePointerEventsDisabled.size>0,P=F>=L,Q=w.useRef(!1),Y=ry(ne=>{d==null||d(ne),p==null||p(ne),ne.defaultPrevented||h==null||h()},{ownerDocument:R,deferPointerDownOutside:s,isDeferredPointerDownOutsideRef:Q,dismissableSurfaces:y.dismissableSurfaces,shouldHandlePointerDownOutside:w.useCallback(ne=>{if(!(ne instanceof Node))return!1;const ie=[...y.branches].some(de=>de.contains(ne));return P&&!ie},[y.branches,P])}),W=uy(ne=>{if(s&&Q.current)return;const ie=ne.target;[...y.branches].some(ve=>ve.contains(ie))||(m==null||m(ne),p==null||p(ne),ne.defaultPrevented||h==null||h())},R),se=b?F===z.length-1:!1,ce=Yn(ne=>{ne.key==="Escape"&&(f==null||f(ne),!ne.defaultPrevented&&h&&(ne.preventDefault(),h()))});return w.useEffect(()=>{if(se)return R.addEventListener("keydown",ce,{capture:!0}),()=>R.removeEventListener("keydown",ce,{capture:!0})},[R,se,ce]),w.useEffect(()=>{if(b)return r&&(y.layersWithOutsidePointerEventsDisabled.size===0&&($p=R.body.style.pointerEvents,R.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(b)),y.layers.add(b),yf(),()=>{r&&(y.layersWithOutsidePointerEventsDisabled.delete(b),y.layersWithOutsidePointerEventsDisabled.size===0&&(R.body.style.pointerEvents=$p))}},[b,R,r,y]),w.useEffect(()=>()=>{b&&(y.layers.delete(b),y.layersWithOutsidePointerEventsDisabled.delete(b),yf())},[b,y]),w.useEffect(()=>{const ne=rt(()=>E({}),"handleUpdate");return document.addEventListener(vf,ne),()=>document.removeEventListener(vf,ne)},[]),v.jsx(Tt.div,{...C,ref:M,style:{pointerEvents:G?P?"auto":"none":void 0,...i.style},onFocusCapture:De(i.onFocusCapture,W.onFocusCapture),onBlurCapture:De(i.onBlurCapture,W.onBlurCapture),onPointerDownCapture:De(i.onPointerDownCapture,Y.onPointerDownCapture)})},"DismissableLayer"));function oy(){const n=w.useContext(ay),[i,o]=w.useState(null);return w.useEffect(()=>{if(i)return n.dismissableSurfaces.add(i),()=>{n.dismissableSurfaces.delete(i)}},[i,n.dismissableSurfaces]),o}rt(oy,"useDismissableLayerSurface");var iC=rt(()=>!0,"IS_TRUE");function ry(n,i){const{ownerDocument:o=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:s,dismissableSurfaces:f,shouldHandlePointerDownOutside:d=iC}=i,m=Yn(n),p=w.useRef(!1),h=w.useRef(!1),C=w.useRef(new Map),y=w.useRef(()=>{});return w.useEffect(()=>{function b(){h.current=!1,s.current=!1,C.current.clear()}rt(b,"resetOutsideInteraction");function x(){return Array.from(C.current.values()).some(Boolean)}rt(x,"isOutsideInteractionIntercepted");function R(L){if(!h.current)return;const F=L.target;F instanceof Node&&[...f].some(P=>P.contains(F))||C.current.set(L.type,!0),L.type==="click"&&window.setTimeout(()=>{h.current&&y.current()},0)}rt(R,"handleInteractionCapture");function E(L){h.current&&C.current.set(L.type,!1)}rt(E,"handleInteractionBubble");const M=rt(L=>{if(L.target&&!p.current){let F=function(){o.removeEventListener("click",y.current);const P=x();b(),P||Qf(lC,m,G,{discrete:!0})};if(rt(F,"handleAndDispatchPointerDownOutsideEvent"),!d(L.target)){o.removeEventListener("click",y.current),b(),p.current=!1;return}const G={originalEvent:L};h.current=!0,s.current=r&&L.button===0,C.current.clear(),!r||L.button!==0?F():(o.removeEventListener("click",y.current),y.current=F,o.addEventListener("click",y.current,{once:!0}))}else o.removeEventListener("click",y.current),b();p.current=!1},"handlePointerDown"),z=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const L of z)o.addEventListener(L,R,!0),o.addEventListener(L,E);const N=window.setTimeout(()=>{o.addEventListener("pointerdown",M)},0);return()=>{window.clearTimeout(N),o.removeEventListener("pointerdown",M),o.removeEventListener("click",y.current);for(const L of z)o.removeEventListener(L,R,!0),o.removeEventListener(L,E)}},[o,m,r,s,f,d]),{onPointerDownCapture:rt(()=>p.current=!0,"onPointerDownCapture")}}rt(ry,"usePointerDownOutside");function uy(n,i=globalThis==null?void 0:globalThis.document){const o=Yn(n),r=w.useRef(!1);return w.useEffect(()=>{const s=rt(f=>{f.target&&!r.current&&Qf(aC,o,{originalEvent:f},{discrete:!1})},"handleFocus");return i.addEventListener("focusin",s),()=>i.removeEventListener("focusin",s)},[i,o]),{onFocusCapture:rt(()=>r.current=!0,"onFocusCapture"),onBlurCapture:rt(()=>r.current=!1,"onBlurCapture")}}rt(uy,"useFocusOutside");function yf(){const n=new CustomEvent(vf);document.dispatchEvent(n)}rt(yf,"dispatchUpdate");function Qf(n,i,o,{discrete:r}){const s=o.originalEvent.target,f=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:o});i&&s.addEventListener(n,i,{once:!0}),r?qf(s,f):s.dispatchEvent(f)}rt(Qf,"handleAndDispatchCustomEvent");var oC=Object.defineProperty,St=(n,i)=>oC(n,"name",{value:i,configurable:!0}),Fc="focusScope.autoFocusOnMount",qc="focusScope.autoFocusOnUnmount",Yp={bubbles:!1,cancelable:!0},sy=w.forwardRef(St(function(i,o){const{loop:r=!1,trapped:s=!1,onMountAutoFocus:f,onUnmountAutoFocus:d,...m}=i,[p,h]=w.useState(null),C=Yn(f),y=Yn(d),b=w.useRef(null),x=at(o,h),R=w.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;w.useEffect(()=>{if(s){let M=function(F){if(R.paused||!p)return;const G=F.target;p.contains(G)?b.current=G:Bn(b.current,{select:!0})},z=function(F){if(R.paused||!p)return;const G=F.relatedTarget;G!==null&&(p.contains(G)||Bn(b.current,{select:!0}))},N=function(F){if(document.activeElement===document.body)for(const P of F)P.removedNodes.length>0&&Bn(p)};St(M,"handleFocusIn"),St(z,"handleFocusOut"),St(N,"handleMutations"),document.addEventListener("focusin",M),document.addEventListener("focusout",z);const L=new MutationObserver(N);return p&&L.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",M),document.removeEventListener("focusout",z),L.disconnect()}}},[s,p,R.paused]),w.useEffect(()=>{if(p){Xp.add(R);const M=document.activeElement;if(!p.contains(M)){const N=new CustomEvent(Fc,Yp);p.addEventListener(Fc,C),p.dispatchEvent(N),N.defaultPrevented||(cy(hy(If(p)),{select:!0}),document.activeElement===M&&Bn(p))}return()=>{p.removeEventListener(Fc,C),setTimeout(()=>{const N=new CustomEvent(qc,Yp);p.addEventListener(qc,y),p.dispatchEvent(N),N.defaultPrevented||Bn(M??document.body,{select:!0}),p.removeEventListener(qc,y),Xp.remove(R)},0)}}},[p,C,y,R]);const E=w.useCallback(M=>{if(!r&&!s||R.paused)return;const z=M.key==="Tab"&&!M.altKey&&!M.ctrlKey&&!M.metaKey,N=document.activeElement;if(z&&N){const L=M.currentTarget,[F,G]=fy(L);F&&G?!M.shiftKey&&N===G?(M.preventDefault(),r&&Bn(F,{select:!0})):M.shiftKey&&N===F&&(M.preventDefault(),r&&Bn(G,{select:!0})):N===L&&M.preventDefault()}},[r,s,R.paused]);return v.jsx(Tt.div,{tabIndex:-1,...m,ref:x,onKeyDown:E})},"FocusScope"));function cy(n,{select:i=!1}={}){const o=document.activeElement;for(const r of n)if(Bn(r,{select:i}),document.activeElement!==o)return}St(cy,"focusFirst");function fy(n){const i=If(n),o=xf(i,n),r=xf(i.reverse(),n);return[o,r]}St(fy,"getTabbableEdges");function If(n){const i=[],o=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:St(r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;o.nextNode();)i.push(o.currentNode);return i}St(If,"getTabbableCandidates");function xf(n,i){const o=typeof i.checkVisibility=="function"&&i.checkVisibility({checkVisibilityCSS:!0});for(const r of n)if(!(o?!r.checkVisibility({checkVisibilityCSS:!0}):dy(r,{upTo:i})))return r}St(xf,"findVisible");function dy(n,{upTo:i}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(i!==void 0&&n===i)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}St(dy,"isHidden");function gy(n){return n instanceof HTMLInputElement&&"select"in n}St(gy,"isSelectableInput");function Bn(n,{select:i=!1}={}){if(n&&n.focus){const o=document.activeElement;n.focus({preventScroll:!0}),n!==o&&gy(n)&&i&&n.select()}}St(Bn,"focus");var Xp=my();function my(){let n=[];return{add(i){const o=n[0];i!==o&&(o==null||o.pause()),n=Sf(n,i),n.unshift(i)},remove(i){var o;n=Sf(n,i),(o=n[0])==null||o.resume()}}}St(my,"createFocusScopesStack");function Sf(n,i){const o=[...n],r=o.indexOf(i);return r!==-1&&o.splice(r,1),o}St(Sf,"arrayRemove");function hy(n){return n.filter(i=>i.tagName!=="A")}St(hy,"removeLinks");var rC=Object.defineProperty,uC=(n,i)=>rC(n,"name",{value:i,configurable:!0}),py=w.forwardRef(uC(function(i,o){var p;const{container:r,...s}=i,[f,d]=w.useState(!1);Ft(()=>d(!0),[]);const m=r||f&&((p=globalThis==null?void 0:globalThis.document)==null?void 0:p.body);return m?Gf.createPortal(v.jsx(Tt.div,{...s,ref:o}),m):null},"Portal")),sC=Object.defineProperty,Pf=(n,i)=>sC(n,"name",{value:i,configurable:!0}),Nr=0,mn=null;function cC(n){return ru(),n.children}Pf(cC,"FocusGuards");function ru(){w.useEffect(()=>{mn||(mn={start:bf(),end:bf()});const{start:n,end:i}=mn;return document.body.firstElementChild!==n&&document.body.insertAdjacentElement("afterbegin",n),document.body.lastElementChild!==i&&document.body.insertAdjacentElement("beforeend",i),Nr++,()=>{Nr===1&&(mn==null||mn.start.remove(),mn==null||mn.end.remove(),mn=null),Nr=Math.max(0,Nr-1)}},[])}Pf(ru,"useFocusGuards");function bf(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}Pf(bf,"createFocusGuard");var hn=function(){return hn=Object.assign||function(i){for(var o,r=1,s=arguments.length;r<s;r++){o=arguments[r];for(var f in o)Object.prototype.hasOwnProperty.call(o,f)&&(i[f]=o[f])}return i},hn.apply(this,arguments)};function vy(n,i){var o={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&i.indexOf(r)<0&&(o[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(n);s<r.length;s++)i.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(n,r[s])&&(o[r[s]]=n[r[s]]);return o}function fC(n,i,o){if(o||arguments.length===2)for(var r=0,s=i.length,f;r<s;r++)(f||!(r in i))&&(f||(f=Array.prototype.slice.call(i,0,r)),f[r]=i[r]);return n.concat(f||Array.prototype.slice.call(i))}var Ir="right-scroll-bar-position",Pr="width-before-scroll-bar",dC="with-scroll-bars-hidden",gC="--removed-body-scroll-bar-size";function $c(n,i){return typeof n=="function"?n(i):n&&(n.current=i),n}function mC(n,i){var o=w.useState(function(){return{value:n,callback:i,facade:{get current(){return o.value},set current(r){var s=o.value;s!==r&&(o.value=r,o.callback(r,s))}}}})[0];return o.callback=i,o.facade}var hC=typeof window<"u"?w.useLayoutEffect:w.useEffect,Qp=new WeakMap;function pC(n,i){var o=mC(null,function(r){return n.forEach(function(s){return $c(s,r)})});return hC(function(){var r=Qp.get(o);if(r){var s=new Set(r),f=new Set(n),d=o.current;s.forEach(function(m){f.has(m)||$c(m,null)}),f.forEach(function(m){s.has(m)||$c(m,d)})}Qp.set(o,n)},[n]),o}function vC(n){return n}function yC(n,i){i===void 0&&(i=vC);var o=[],r=!1,s={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:n},useMedium:function(f){var d=i(f,r);return o.push(d),function(){o=o.filter(function(m){return m!==d})}},assignSyncMedium:function(f){for(r=!0;o.length;){var d=o;o=[],d.forEach(f)}o={push:function(m){return f(m)},filter:function(){return o}}},assignMedium:function(f){r=!0;var d=[];if(o.length){var m=o;o=[],m.forEach(f),d=o}var p=function(){var C=d;d=[],C.forEach(f)},h=function(){return Promise.resolve().then(p)};h(),o={push:function(C){d.push(C),h()},filter:function(C){return d=d.filter(C),o}}}};return s}function xC(n){n===void 0&&(n={});var i=yC(null);return i.options=hn({async:!0,ssr:!1},n),i}var yy=function(n){var i=n.sideCar,o=vy(n,["sideCar"]);if(!i)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=i.read();if(!r)throw new Error("Sidecar medium not found");return w.createElement(r,hn({},o))};yy.isSideCarExport=!0;function SC(n,i){return n.useMedium(i),yy}var xy=xC(),Yc=function(){},uu=w.forwardRef(function(n,i){var o=w.useRef(null),r=w.useState({onScrollCapture:Yc,onWheelCapture:Yc,onTouchMoveCapture:Yc}),s=r[0],f=r[1],d=n.forwardProps,m=n.children,p=n.className,h=n.removeScrollBar,C=n.enabled,y=n.shards,b=n.sideCar,x=n.noRelative,R=n.noIsolation,E=n.inert,M=n.allowPinchZoom,z=n.as,N=z===void 0?"div":z,L=n.gapMode,F=vy(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),G=b,P=pC([o,i]),Q=hn(hn({},F),s);return w.createElement(w.Fragment,null,C&&w.createElement(G,{sideCar:xy,removeScrollBar:h,shards:y,noRelative:x,noIsolation:R,inert:E,setCallbacks:f,allowPinchZoom:!!M,lockRef:o,gapMode:L}),d?w.cloneElement(w.Children.only(m),hn(hn({},Q),{ref:P})):w.createElement(N,hn({},Q,{className:p,ref:P}),m))});uu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};uu.classNames={fullWidth:Pr,zeroRight:Ir};var bC=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function CC(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var i=bC();return i&&n.setAttribute("nonce",i),n}function wC(n,i){n.styleSheet?n.styleSheet.cssText=i:n.appendChild(document.createTextNode(i))}function RC(n){var i=document.head||document.getElementsByTagName("head")[0];i.appendChild(n)}var EC=function(){var n=0,i=null;return{add:function(o){n==0&&(i=CC())&&(wC(i,o),RC(i)),n++},remove:function(){n--,!n&&i&&(i.parentNode&&i.parentNode.removeChild(i),i=null)}}},_C=function(){var n=EC();return function(i,o){w.useEffect(function(){return n.add(i),function(){n.remove()}},[i&&o])}},Sy=function(){var n=_C(),i=function(o){var r=o.styles,s=o.dynamic;return n(r,s),null};return i},MC={left:0,top:0,right:0,gap:0},Xc=function(n){return parseInt(n||"",10)||0},AC=function(n){var i=window.getComputedStyle(document.body),o=i[n==="padding"?"paddingLeft":"marginLeft"],r=i[n==="padding"?"paddingTop":"marginTop"],s=i[n==="padding"?"paddingRight":"marginRight"];return[Xc(o),Xc(r),Xc(s)]},OC=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return MC;var i=AC(n),o=document.documentElement.clientWidth,r=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,r-o+i[2]-i[0])}},TC=Sy(),Pa="data-scroll-locked",DC=function(n,i,o,r){var s=n.left,f=n.top,d=n.right,m=n.gap;return o===void 0&&(o="margin"),`
|
|
220
|
+
.`.concat(dC,` {
|
|
221
|
+
overflow: hidden `).concat(r,`;
|
|
222
|
+
padding-right: `).concat(m,"px ").concat(r,`;
|
|
223
|
+
}
|
|
224
|
+
body[`).concat(Pa,`] {
|
|
225
|
+
overflow: hidden `).concat(r,`;
|
|
226
|
+
overscroll-behavior: contain;
|
|
227
|
+
`).concat([i&&"position: relative ".concat(r,";"),o==="margin"&&`
|
|
228
|
+
padding-left: `.concat(s,`px;
|
|
229
|
+
padding-top: `).concat(f,`px;
|
|
230
|
+
padding-right: `).concat(d,`px;
|
|
231
|
+
margin-left:0;
|
|
232
|
+
margin-top:0;
|
|
233
|
+
margin-right: `).concat(m,"px ").concat(r,`;
|
|
234
|
+
`),o==="padding"&&"padding-right: ".concat(m,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.`).concat(Ir,` {
|
|
238
|
+
right: `).concat(m,"px ").concat(r,`;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.`).concat(Pr,` {
|
|
242
|
+
margin-right: `).concat(m,"px ").concat(r,`;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.`).concat(Ir," .").concat(Ir,` {
|
|
246
|
+
right: 0 `).concat(r,`;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.`).concat(Pr," .").concat(Pr,` {
|
|
250
|
+
margin-right: 0 `).concat(r,`;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
body[`).concat(Pa,`] {
|
|
254
|
+
`).concat(gC,": ").concat(m,`px;
|
|
255
|
+
}
|
|
256
|
+
`)},Ip=function(){var n=parseInt(document.body.getAttribute(Pa)||"0",10);return isFinite(n)?n:0},zC=function(){w.useEffect(function(){return document.body.setAttribute(Pa,(Ip()+1).toString()),function(){var n=Ip()-1;n<=0?document.body.removeAttribute(Pa):document.body.setAttribute(Pa,n.toString())}},[])},jC=function(n){var i=n.noRelative,o=n.noImportant,r=n.gapMode,s=r===void 0?"margin":r;zC();var f=w.useMemo(function(){return OC(s)},[s]);return w.createElement(TC,{styles:DC(f,!i,s,o?"":"!important")})},Cf=!1;if(typeof window<"u")try{var kr=Object.defineProperty({},"passive",{get:function(){return Cf=!0,!0}});window.addEventListener("test",kr,kr),window.removeEventListener("test",kr,kr)}catch{Cf=!1}var Ya=Cf?{passive:!1}:!1,NC=function(n){return n.tagName==="TEXTAREA"},by=function(n,i){if(!(n instanceof Element))return!1;var o=window.getComputedStyle(n);return o[i]!=="hidden"&&!(o.overflowY===o.overflowX&&!NC(n)&&o[i]==="visible")},kC=function(n){return by(n,"overflowY")},LC=function(n){return by(n,"overflowX")},Pp=function(n,i){var o=i.ownerDocument,r=i;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=Cy(n,r);if(s){var f=wy(n,r),d=f[1],m=f[2];if(d>m)return!0}r=r.parentNode}while(r&&r!==o.body);return!1},VC=function(n){var i=n.scrollTop,o=n.scrollHeight,r=n.clientHeight;return[i,o,r]},HC=function(n){var i=n.scrollLeft,o=n.scrollWidth,r=n.clientWidth;return[i,o,r]},Cy=function(n,i){return n==="v"?kC(i):LC(i)},wy=function(n,i){return n==="v"?VC(i):HC(i)},UC=function(n,i){return n==="h"&&i==="rtl"?-1:1},BC=function(n,i,o,r,s){var f=UC(n,window.getComputedStyle(i).direction),d=f*r,m=o.target,p=i.contains(m),h=!1,C=d>0,y=0,b=0;do{if(!m)break;var x=wy(n,m),R=x[0],E=x[1],M=x[2],z=E-M-f*R;(R||z)&&Cy(n,m)&&(y+=z,b+=R);var N=m.parentNode;m=N&&N.nodeType===Node.DOCUMENT_FRAGMENT_NODE?N.host:N}while(!p&&m!==document.body||p&&(i.contains(m)||i===m));return(C&&Math.abs(y)<1||!C&&Math.abs(b)<1)&&(h=!0),h},Lr=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Zp=function(n){return[n.deltaX,n.deltaY]},Kp=function(n){return n&&"current"in n?n.current:n},GC=function(n,i){return n[0]===i[0]&&n[1]===i[1]},FC=function(n){return`
|
|
257
|
+
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
258
|
+
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
259
|
+
`)},qC=0,Xa=[];function $C(n){var i=w.useRef([]),o=w.useRef([0,0]),r=w.useRef(),s=w.useState(qC++)[0],f=w.useState(Sy)[0],d=w.useRef(n);w.useEffect(function(){d.current=n},[n]),w.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(s));var E=fC([n.lockRef.current],(n.shards||[]).map(Kp),!0).filter(Boolean);return E.forEach(function(M){return M.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),E.forEach(function(M){return M.classList.remove("allow-interactivity-".concat(s))})}}},[n.inert,n.lockRef.current,n.shards]);var m=w.useCallback(function(E,M){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!d.current.allowPinchZoom;var z=Lr(E),N=o.current,L="deltaX"in E?E.deltaX:N[0]-z[0],F="deltaY"in E?E.deltaY:N[1]-z[1],G,P=E.target,Q=Math.abs(L)>Math.abs(F)?"h":"v";if("touches"in E&&Q==="h"&&P.type==="range")return!1;var Y=window.getSelection(),W=Y&&Y.anchorNode,se=W?W===P||W.contains(P):!1;if(se)return!1;var ce=Pp(Q,P);if(!ce)return!0;if(ce?G=Q:(G=Q==="v"?"h":"v",ce=Pp(Q,P)),!ce)return!1;if(!r.current&&"changedTouches"in E&&(L||F)&&(r.current=G),!G)return!0;var ne=r.current||G;return BC(ne,M,E,ne==="h"?L:F)},[]),p=w.useCallback(function(E){var M=E;if(!(!Xa.length||Xa[Xa.length-1]!==f)){var z="deltaY"in M?Zp(M):Lr(M),N=i.current.filter(function(G){return G.name===M.type&&(G.target===M.target||M.target===G.shadowParent)&&GC(G.delta,z)})[0];if(N&&N.should){M.cancelable&&M.preventDefault();return}if(!N){var L=(d.current.shards||[]).map(Kp).filter(Boolean).filter(function(G){return G.contains(M.target)}),F=L.length>0?m(M,L[0]):!d.current.noIsolation;F&&M.cancelable&&M.preventDefault()}}},[]),h=w.useCallback(function(E,M,z,N){var L={name:E,delta:M,target:z,should:N,shadowParent:YC(z)};i.current.push(L),setTimeout(function(){i.current=i.current.filter(function(F){return F!==L})},1)},[]),C=w.useCallback(function(E){o.current=Lr(E),r.current=void 0},[]),y=w.useCallback(function(E){h(E.type,Zp(E),E.target,m(E,n.lockRef.current))},[]),b=w.useCallback(function(E){h(E.type,Lr(E),E.target,m(E,n.lockRef.current))},[]);w.useEffect(function(){return Xa.push(f),n.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:b}),document.addEventListener("wheel",p,Ya),document.addEventListener("touchmove",p,Ya),document.addEventListener("touchstart",C,Ya),function(){Xa=Xa.filter(function(E){return E!==f}),document.removeEventListener("wheel",p,Ya),document.removeEventListener("touchmove",p,Ya),document.removeEventListener("touchstart",C,Ya)}},[]);var x=n.removeScrollBar,R=n.inert;return w.createElement(w.Fragment,null,R?w.createElement(f,{styles:FC(s)}):null,x?w.createElement(jC,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function YC(n){for(var i=null;n!==null;)n instanceof ShadowRoot&&(i=n.host,n=n.host),n=n.parentNode;return i}const XC=SC(xy,$C);var Zf=w.forwardRef(function(n,i){return w.createElement(uu,hn({},n,{ref:i,sideCar:XC}))});Zf.classNames=uu.classNames;var QC=function(n){if(typeof document>"u")return null;var i=Array.isArray(n)?n[0]:n;return i.ownerDocument.body},Qa=new WeakMap,Vr=new WeakMap,Hr={},Qc=0,Ry=function(n){return n&&(n.host||Ry(n.parentNode))},IC=function(n,i){return i.map(function(o){if(n.contains(o))return o;var r=Ry(o);return r&&n.contains(r)?r:(console.error("aria-hidden",o,"in not contained inside",n,". Doing nothing"),null)}).filter(function(o){return!!o})},PC=function(n,i,o,r){var s=IC(i,Array.isArray(n)?n:[n]);Hr[o]||(Hr[o]=new WeakMap);var f=Hr[o],d=[],m=new Set,p=new Set(s),h=function(y){!y||m.has(y)||(m.add(y),h(y.parentNode))};s.forEach(h);var C=function(y){!y||p.has(y)||Array.prototype.forEach.call(y.children,function(b){if(m.has(b))C(b);else try{var x=b.getAttribute(r),R=x!==null&&x!=="false",E=(Qa.get(b)||0)+1,M=(f.get(b)||0)+1;Qa.set(b,E),f.set(b,M),d.push(b),E===1&&R&&Vr.set(b,!0),M===1&&b.setAttribute(o,"true"),R||b.setAttribute(r,"true")}catch(z){console.error("aria-hidden: cannot operate on ",b,z)}})};return C(i),m.clear(),Qc++,function(){d.forEach(function(y){var b=Qa.get(y)-1,x=f.get(y)-1;Qa.set(y,b),f.set(y,x),b||(Vr.has(y)||y.removeAttribute(r),Vr.delete(y)),x||y.removeAttribute(o)}),Qc--,Qc||(Qa=new WeakMap,Qa=new WeakMap,Vr=new WeakMap,Hr={})}},Ey=function(n,i,o){o===void 0&&(o="data-aria-hidden");var r=Array.from(Array.isArray(n)?n:[n]),s=QC(n);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live], script"))),PC(r,s,o,"aria-hidden")):function(){return null}},ZC=Object.defineProperty,tn=(n,i)=>ZC(n,"name",{value:i,configurable:!0}),Kf="Dialog",[_y,i_]=Al(Kf),[KC,xn]=_y(Kf),JC=tn(n=>{const{__scopeDialog:i,children:o,open:r,defaultOpen:s,onOpenChange:f,modal:d=!0}=n,m=w.useRef(null),p=w.useRef(null),[h,C]=ou({prop:r,defaultProp:s??!1,onChange:f,caller:Kf}),[y,b]=w.useState(0),[x,R]=w.useState(0);return v.jsx(KC,{scope:i,triggerRef:m,contentRef:p,contentId:Kl(),titleId:Kl(),descriptionId:Kl(),titlePresent:y>0,descriptionPresent:x>0,setTitleCount:b,setDescriptionCount:R,open:h,onOpenChange:C,onOpenToggle:w.useCallback(()=>C(E=>!E),[C]),modal:d,children:o})},"Dialog"),My="DialogPortal",[WC,Ay]=_y(My,{forceMount:void 0}),ew=tn(n=>{const{__scopeDialog:i,forceMount:o,children:r,container:s}=n,f=xn(My,i);return v.jsx(WC,{scope:i,forceMount:o,children:w.Children.map(r,d=>v.jsx(Wa,{present:o||f.open,children:v.jsx(py,{asChild:!0,container:s,children:d})}))})},"DialogPortal"),wf="DialogOverlay",tw=w.forwardRef(tn(function(i,o){const r=Ay(wf,i.__scopeDialog),{forceMount:s=r.forceMount,...f}=i,d=xn(wf,i.__scopeDialog);return d.modal?v.jsx(Wa,{present:s||d.open,children:v.jsx(lw,{...f,ref:o})}):null},"DialogOverlay")),nw=wl("DialogOverlay.RemoveScroll"),lw=w.forwardRef(tn(function(i,o){const{__scopeDialog:r,...s}=i,f=xn(wf,r),d=oy(),m=at(o,d);return v.jsx(Zf,{as:nw,allowPinchZoom:!0,shards:[f.contentRef],children:v.jsx(Tt.div,{"data-state":Jf(f.open),...s,ref:m,style:{pointerEvents:"auto",...s.style}})})},"DialogOverlayImpl")),ao="DialogContent",aw=w.forwardRef(tn(function(i,o){const r=Ay(ao,i.__scopeDialog),{forceMount:s=r.forceMount,...f}=i,d=xn(ao,i.__scopeDialog);return v.jsx(Wa,{present:s||d.open,children:d.modal?v.jsx(iw,{...f,ref:o}):v.jsx(ow,{...f,ref:o})})},"DialogContent")),iw=w.forwardRef(tn(function(i,o){const r=xn(ao,i.__scopeDialog),s=w.useRef(null),f=at(o,r.contentRef,s);return w.useEffect(()=>{const d=s.current;if(d)return Ey(d)},[]),v.jsx(Oy,{...i,ref:f,trapFocus:r.open,disableOutsidePointerEvents:r.open,onCloseAutoFocus:De(i.onCloseAutoFocus,d=>{var m;d.preventDefault(),(m=r.triggerRef.current)==null||m.focus()}),onPointerDownOutside:De(i.onPointerDownOutside,d=>{const m=d.detail.originalEvent,p=m.button===0&&m.ctrlKey===!0;(m.button===2||p)&&d.preventDefault()}),onFocusOutside:De(i.onFocusOutside,d=>d.preventDefault())})},"DialogContentModal")),ow=w.forwardRef(tn(function(i,o){const r=xn(ao,i.__scopeDialog),s=w.useRef(!1),f=w.useRef(!1);return v.jsx(Oy,{...i,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{var m,p;(m=i.onCloseAutoFocus)==null||m.call(i,d),d.defaultPrevented||(s.current||(p=r.triggerRef.current)==null||p.focus(),d.preventDefault()),s.current=!1,f.current=!1},onInteractOutside:d=>{var h,C;(h=i.onInteractOutside)==null||h.call(i,d),d.defaultPrevented||(s.current=!0,d.detail.originalEvent.type==="pointerdown"&&(f.current=!0));const m=d.target;((C=r.triggerRef.current)==null?void 0:C.contains(m))&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&f.current&&d.preventDefault()}})},"DialogContentNonModal")),Oy=w.forwardRef(tn(function(i,o){const{__scopeDialog:r,trapFocus:s,onOpenAutoFocus:f,onCloseAutoFocus:d,...m}=i,p=xn(ao,r);return ru(),v.jsx(v.Fragment,{children:v.jsx(sy,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:f,onUnmountAutoFocus:d,children:v.jsx(iy,{role:"dialog",id:p.contentId,"aria-describedby":p.descriptionPresent?p.descriptionId:void 0,"aria-labelledby":p.titlePresent?p.titleId:void 0,"data-state":Jf(p.open),...m,ref:o,deferPointerDownOutside:!0,onDismiss:()=>p.onOpenChange(!1)})})})},"DialogContentImpl")),rw="DialogTitle",uw=w.forwardRef(tn(function(i,o){const{__scopeDialog:r,...s}=i,f=xn(rw,r),{setTitleCount:d}=f;return Ft(()=>(d(m=>m+1),()=>d(m=>m-1)),[d]),v.jsx(Tt.h2,{id:f.titleId,...s,ref:o})},"DialogTitle")),sw="DialogDescription",cw=w.forwardRef(tn(function(i,o){const{__scopeDialog:r,...s}=i,f=xn(sw,r),{setDescriptionCount:d}=f;return Ft(()=>(d(m=>m+1),()=>d(m=>m-1)),[d]),v.jsx(Tt.p,{id:f.descriptionId,...s,ref:o})},"DialogDescription")),fw="DialogClose",dw=w.forwardRef(tn(function(i,o){const{__scopeDialog:r,...s}=i,f=xn(fw,r);return v.jsx(Tt.button,{type:"button",...s,ref:o,onClick:De(i.onClick,()=>f.onOpenChange(!1))})},"DialogClose"));function Jf(n){return n?"open":"closed"}tn(Jf,"getState");var gw=Object.defineProperty,mw=(n,i)=>gw(n,"name",{value:i,configurable:!0});function Ty(n){const[i,o]=w.useState(void 0);return Ft(()=>{if(n){o({width:n.offsetWidth,height:n.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const f=s[0];let d,m;if("borderBoxSize"in f){const p=f.borderBoxSize,h=Array.isArray(p)?p[0]:p;d=h.inlineSize,m=h.blockSize}else d=n.offsetWidth,m=n.offsetHeight;o({width:d,height:m})});return r.observe(n,{box:"border-box"}),()=>r.unobserve(n)}else o(void 0)},[n]),i}mw(Ty,"useSize");const hw=["top","right","bottom","left"],Rl=Math.min,Fn=Math.max,eu=Math.round,Ur=Math.floor,qn=n=>({x:n,y:n}),pw={left:"right",right:"left",bottom:"top",top:"bottom"};function Dy(n,i,o){return Fn(n,Rl(i,o))}function Xn(n,i){return typeof n=="function"?n(i):n}function El(n){return n.split("-")[0]}function ei(n){return n.split("-")[1]}function Wf(n){return n==="x"?"y":"x"}function ed(n){return n==="y"?"height":"width"}function pn(n){const i=n[0];return i==="t"||i==="b"?"y":"x"}function td(n){return Wf(pn(n))}function vw(n,i,o){o===void 0&&(o=!1);const r=ei(n),s=td(n),f=ed(s);let d=s==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return i.reference[f]>i.floating[f]&&(d=tu(d)),[d,tu(d)]}function yw(n){const i=tu(n);return[Rf(n),i,Rf(i)]}function Rf(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Jp=["left","right"],Wp=["right","left"],xw=["top","bottom"],Sw=["bottom","top"];function bw(n,i,o){switch(n){case"top":case"bottom":return o?i?Wp:Jp:i?Jp:Wp;case"left":case"right":return i?xw:Sw;default:return[]}}function Cw(n,i,o,r){const s=ei(n);let f=bw(El(n),o==="start",r);return s&&(f=f.map(d=>d+"-"+s),i&&(f=f.concat(f.map(Rf)))),f}function tu(n){const i=El(n);return pw[i]+n.slice(i.length)}function ww(n){var i,o,r,s;return{top:(i=n.top)!=null?i:0,right:(o=n.right)!=null?o:0,bottom:(r=n.bottom)!=null?r:0,left:(s=n.left)!=null?s:0}}function zy(n){return typeof n!="number"?ww(n):{top:n,right:n,bottom:n,left:n}}function nu(n){const{x:i,y:o,width:r,height:s}=n;return{width:r,height:s,top:o,left:i,right:i+r,bottom:o+s,x:i,y:o}}function ev(n,i,o){let{reference:r,floating:s}=n;const f=pn(i),d=td(i),m=ed(d),p=El(i),h=f==="y",C=r.x+r.width/2-s.width/2,y=r.y+r.height/2-s.height/2,b=r[m]/2-s[m]/2;let x;switch(p){case"top":x={x:C,y:r.y-s.height};break;case"bottom":x={x:C,y:r.y+r.height};break;case"right":x={x:r.x+r.width,y};break;case"left":x={x:r.x-s.width,y};break;default:x={x:r.x,y:r.y}}const R=ei(i);return R&&(x[d]+=b*(R==="end"?1:-1)*(o&&h?-1:1)),x}async function Rw(n,i){var o;i===void 0&&(i={});const{x:r,y:s,platform:f,rects:d,elements:m,strategy:p}=n,{boundary:h="clippingAncestors",rootBoundary:C="viewport",elementContext:y="floating",altBoundary:b=!1,padding:x=0}=Xn(i,n),R=zy(x),M=m[b?y==="floating"?"reference":"floating":y],z=nu(await f.getClippingRect({element:(o=await(f.isElement==null?void 0:f.isElement(M)))==null||o?M:M.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(m.floating)),boundary:h,rootBoundary:C,strategy:p})),N=y==="floating"?{x:r,y:s,width:d.floating.width,height:d.floating.height}:d.reference,L=await(f.getOffsetParent==null?void 0:f.getOffsetParent(m.floating)),F=await(f.isElement==null?void 0:f.isElement(L))&&await(f.getScale==null?void 0:f.getScale(L))||{x:1,y:1},G=nu(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:N,offsetParent:L,strategy:p}):N);return{top:(z.top-G.top+R.top)/F.y,bottom:(G.bottom-z.bottom+R.bottom)/F.y,left:(z.left-G.left+R.left)/F.x,right:(G.right-z.right+R.right)/F.x}}const Ew=50,_w=async(n,i,o)=>{const{placement:r="bottom",strategy:s="absolute",middleware:f=[],platform:d}=o,m=d.detectOverflow?d:{...d,detectOverflow:Rw},p=await(d.isRTL==null?void 0:d.isRTL(i));let h=await d.getElementRects({reference:n,floating:i,strategy:s}),{x:C,y}=ev(h,r,p),b=r,x=0;const R={};for(let E=0;E<f.length;E++){const M=f[E];if(!M)continue;const{name:z,fn:N}=M,{x:L,y:F,data:G,reset:P}=await N({x:C,y,initialPlacement:r,placement:b,strategy:s,middlewareData:R,rects:h,platform:m,elements:{reference:n,floating:i}});C=L??C,y=F??y,R[z]={...R[z],...G},P&&x<Ew&&(x++,typeof P=="object"&&(P.placement&&(b=P.placement),P.rects&&(h=P.rects===!0?await d.getElementRects({reference:n,floating:i,strategy:s}):P.rects),{x:C,y}=ev(h,b,p)),E=-1)}return{x:C,y,placement:b,strategy:s,middlewareData:R}},Mw=n=>({name:"arrow",options:n,async fn(i){const{x:o,y:r,placement:s,rects:f,platform:d,elements:m,middlewareData:p}=i,{element:h,padding:C=0}=Xn(n,i)||{};if(h==null)return{};const y=zy(C),b={x:o,y:r},x=td(s),R=ed(x),E=await d.getDimensions(h),M=x==="y",z=M?"top":"left",N=M?"bottom":"right",L=M?"clientHeight":"clientWidth",F=f.reference[R]+f.reference[x]-b[x]-f.floating[R],G=b[x]-f.reference[x],P=await(d.getOffsetParent==null?void 0:d.getOffsetParent(h));let Q=P?P[L]:0;(!Q||!await(d.isElement==null?void 0:d.isElement(P)))&&(Q=m.floating[L]||f.floating[R]);const Y=F/2-G/2,W=Q/2-E[R]/2-1,se=Rl(y[z],W),ce=Rl(y[N],W),ne=Q-E[R]-ce,ie=Q/2-E[R]/2+Y,de=Dy(se,ie,ne),ve=!p.arrow&&ei(s)!=null&&ie!==de&&f.reference[R]/2-(ie<se?se:ce)-E[R]/2<0,_=ve?ie<se?ie-se:ie-ne:0;return{[x]:b[x]+_,data:{[x]:de,centerOffset:ie-de-_,...ve&&{alignmentOffset:_}},reset:ve}}}),Aw=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(i){var o,r;const{placement:s,middlewareData:f,rects:d,initialPlacement:m,platform:p,elements:h}=i,{mainAxis:C=!0,crossAxis:y=!0,fallbackPlacements:b,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:R="none",flipAlignment:E=!0,...M}=Xn(n,i);if((o=f.arrow)!=null&&o.alignmentOffset)return{};const z=El(s),N=pn(m),L=El(m)===m,F=await(p.isRTL==null?void 0:p.isRTL(h.floating)),G=b||(L||!E?[tu(m)]:yw(m)),P=R!=="none";!b&&P&&G.push(...Cw(m,E,R,F));const Q=[m,...G],Y=await p.detectOverflow(i,M),W=[];let se=((r=f.flip)==null?void 0:r.overflows)||[];if(C&&W.push(Y[z]),y){const de=vw(s,d,F);W.push(Y[de[0]],Y[de[1]])}if(se=[...se,{placement:s,overflows:W}],!W.every(de=>de<=0)){var ce,ne;const de=(((ce=f.flip)==null?void 0:ce.index)||0)+1,ve=Q[de];if(ve&&(!(y==="alignment"?N!==pn(ve):!1)||se.every(I=>pn(I.placement)===N?I.overflows[0]>0:!0)))return{data:{index:de,overflows:se},reset:{placement:ve}};let _=(ne=se.filter(T=>T.overflows[0]<=0).sort((T,I)=>T.overflows[1]-I.overflows[1])[0])==null?void 0:ne.placement;if(!_)switch(x){case"bestFit":{var ie;const T=(ie=se.filter(I=>{if(P){const ee=pn(I.placement);return ee===N||ee==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(ee=>ee>0).reduce((ee,B)=>ee+B,0)]).sort((I,ee)=>I[1]-ee[1])[0])==null?void 0:ie[0];T&&(_=T);break}case"initialPlacement":_=m;break}if(s!==_)return{reset:{placement:_}}}return{}}}};function tv(n,i){return{top:n.top-i.height,right:n.right-i.width,bottom:n.bottom-i.height,left:n.left-i.width}}function nv(n){return hw.some(i=>n[i]>=0)}const Ow=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(i){const{rects:o,platform:r}=i,{strategy:s="referenceHidden",...f}=Xn(n,i);switch(s){case"referenceHidden":{const d=await r.detectOverflow(i,{...f,elementContext:"reference"}),m=tv(d,o.reference);return{data:{referenceHiddenOffsets:m,referenceHidden:nv(m)}}}case"escaped":{const d=await r.detectOverflow(i,{...f,altBoundary:!0}),m=tv(d,o.floating);return{data:{escapedOffsets:m,escaped:nv(m)}}}default:return{}}}}},jy=new Set(["left","top"]);async function Tw(n,i){const{placement:o,platform:r,elements:s}=n,f=await(r.isRTL==null?void 0:r.isRTL(s.floating)),d=El(o),m=ei(o),p=pn(o)==="y",h=jy.has(d)?-1:1,C=f&&p?-1:1,y=Xn(i,n);let{mainAxis:b,crossAxis:x,alignmentAxis:R}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return m&&typeof R=="number"&&(x=m==="end"?R*-1:R),p?{x:x*C,y:b*h}:{x:b*h,y:x*C}}const Dw=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(i){var o,r;const{x:s,y:f,placement:d,middlewareData:m}=i,p=await Tw(i,n);return d===((o=m.offset)==null?void 0:o.placement)&&(r=m.arrow)!=null&&r.alignmentOffset?{}:{x:s+p.x,y:f+p.y,data:{...p,placement:d}}}}},zw=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(i){const{x:o,y:r,placement:s,platform:f}=i,{mainAxis:d=!0,crossAxis:m=!1,limiter:p={fn:N=>{let{x:L,y:F}=N;return{x:L,y:F}}},...h}=Xn(n,i),C={x:o,y:r},y=await f.detectOverflow(i,h),b=pn(s),x=Wf(b);let R=C[x],E=C[b];const M=(N,L)=>Dy(L+y[N==="y"?"top":"left"],L,L-y[N==="y"?"bottom":"right"]);d&&(R=M(x,R)),m&&(E=M(b,E));const z=p.fn({...i,[x]:R,[b]:E});return{...z,data:{x:z.x-o,y:z.y-r,enabled:{[x]:d,[b]:m}}}}}},jw=function(n){return n===void 0&&(n={}),{options:n,fn(i){var o,r;const{x:s,y:f,placement:d,rects:m,middlewareData:p}=i,{offset:h=0,mainAxis:C=!0,crossAxis:y=!0}=Xn(n,i),b={x:s,y:f},x=pn(d),R=Wf(x);let E=b[R],M=b[x];const z=Xn(h,i),N=typeof z=="number"?{mainAxis:z,crossAxis:0}:{mainAxis:(o=z.mainAxis)!=null?o:0,crossAxis:(r=z.crossAxis)!=null?r:0};if(C){const G=R==="y"?"height":"width",P=m.reference[R]-m.floating[G]+N.mainAxis,Q=m.reference[R]+m.reference[G]-N.mainAxis;E<P?E=P:E>Q&&(E=Q)}if(y){var L,F;const G=R==="y"?"width":"height",P=jy.has(El(d)),Q=m.reference[x]-m.floating[G]+(P&&((L=p.offset)==null?void 0:L[x])||0)+(P?0:N.crossAxis),Y=m.reference[x]+m.reference[G]+(P?0:((F=p.offset)==null?void 0:F[x])||0)-(P?N.crossAxis:0);M<Q?M=Q:M>Y&&(M=Y)}return{[R]:E,[x]:M}}}},Nw=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(i){const{placement:o,rects:r,platform:s,elements:f}=i,{apply:d=()=>{},...m}=Xn(n,i),p=await s.detectOverflow(i,m),h=El(o),C=ei(o),y=pn(o)==="y",{width:b,height:x}=r.floating;let R,E;h==="top"||h==="bottom"?(R=h,E=C===(await(s.isRTL==null?void 0:s.isRTL(f.floating))?"start":"end")?"left":"right"):(E=h,R=C==="end"?"top":"bottom");const M=x-p.top-p.bottom,z=b-p.left-p.right,N=Rl(x-p[R],M),L=Rl(b-p[E],z),F=i.middlewareData.shift,G=!F;let P=N,Q=L;F!=null&&F.enabled.x&&(Q=z),F!=null&&F.enabled.y&&(P=M),G&&!C&&(y?Q=b-2*Fn(p.left,p.right):P=x-2*Fn(p.top,p.bottom)),await d({...i,availableWidth:Q,availableHeight:P});const Y=await s.getDimensions(f.floating);return b!==Y.width||x!==Y.height?{reset:{rects:!0}}:{}}}};function su(){return typeof window<"u"}function ti(n){return Ny(n)?(n.nodeName||"").toLowerCase():"#document"}function Ot(n){var i;return(n==null||(i=n.ownerDocument)==null?void 0:i.defaultView)||window}function Qn(n){var i;return(i=(Ny(n)?n.ownerDocument:n.document)||window.document)==null?void 0:i.documentElement}function Ny(n){return su()?n instanceof Node||n instanceof Ot(n).Node:!1}function vn(n){return su()?n instanceof Element||n instanceof Ot(n).Element:!1}function Ol(n){return su()?n instanceof HTMLElement||n instanceof Ot(n).HTMLElement:!1}function lv(n){return!su()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Ot(n).ShadowRoot}function cu(n){const{overflow:i,overflowX:o,overflowY:r,display:s}=yn(n);return/auto|scroll|overlay|hidden|clip/.test(i+r+o)&&s!=="inline"&&s!=="contents"}function kw(n){return/^(table|td|th)$/.test(ti(n))}function fu(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const Lw=/transform|translate|scale|rotate|perspective|filter/,Vw=/paint|layout|strict|content/,Zl=n=>!!n&&n!=="none";let Ic;function nd(n){const i=vn(n)?yn(n):n;return Zl(i.transform)||Zl(i.translate)||Zl(i.scale)||Zl(i.rotate)||Zl(i.perspective)||!ld()&&(Zl(i.backdropFilter)||Zl(i.filter))||Lw.test(i.willChange||"")||Vw.test(i.contain||"")}function Hw(n){let i=Jl(n);for(;Ol(i)&&!io(i);){if(nd(i))return i;if(fu(i))return null;i=Jl(i)}return null}function ld(){return Ic==null&&(Ic=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ic}function io(n){return/^(html|body|#document)$/.test(ti(n))}function yn(n){return Ot(n).getComputedStyle(n)}function du(n){return vn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Jl(n){if(ti(n)==="html")return n;const i=n.assignedSlot||n.parentNode||lv(n)&&n.host||Qn(n);return lv(i)?i.host:i}function ky(n){const i=Jl(n);return io(i)?(n.ownerDocument||n).body:Ol(i)&&cu(i)?i:ky(i)}function oo(n,i,o){var r;i===void 0&&(i=[]),o===void 0&&(o=!0);const s=ky(n),f=s===((r=n.ownerDocument)==null?void 0:r.body),d=Ot(s);if(f){const m=Ef(d);return i.concat(d,d.visualViewport||[],cu(s)?s:[],m&&o?oo(m):[])}else return i.concat(s,oo(s,[],o))}function Ef(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Ly(n){const i=yn(n);let o=parseFloat(i.width)||0,r=parseFloat(i.height)||0;const s=Ol(n),f=s?n.offsetWidth:o,d=s?n.offsetHeight:r,m=eu(o)!==f||eu(r)!==d;return m&&(o=f,r=d),{width:o,height:r,$:m}}function ad(n){return vn(n)?n:n.contextElement}function Za(n){const i=ad(n);if(!Ol(i))return qn(1);const o=i.getBoundingClientRect(),{width:r,height:s,$:f}=Ly(i);let d=(f?eu(o.width):o.width)/r,m=(f?eu(o.height):o.height)/s;return(!d||!Number.isFinite(d))&&(d=1),(!m||!Number.isFinite(m))&&(m=1),{x:d,y:m}}const Uw=qn(0);function Vy(n){const i=Ot(n);return!ld()||!i.visualViewport?Uw:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function Bw(n,i,o){return i===void 0&&(i=!1),!!o&&i&&o===Ot(n)}function Wl(n,i,o,r){i===void 0&&(i=!1),o===void 0&&(o=!1);const s=n.getBoundingClientRect(),f=ad(n);let d=qn(1);i&&(r?vn(r)&&(d=Za(r)):d=Za(n));const m=Bw(f,o,r)?Vy(f):qn(0);let p=(s.left+m.x)/d.x,h=(s.top+m.y)/d.y,C=s.width/d.x,y=s.height/d.y;if(f&&r){const b=Ot(f),x=vn(r)?Ot(r):r;let R=b,E=Ef(R);for(;E&&x!==R;){const M=Za(E),z=E.getBoundingClientRect(),N=yn(E),L=z.left+(E.clientLeft+parseFloat(N.paddingLeft))*M.x,F=z.top+(E.clientTop+parseFloat(N.paddingTop))*M.y;p*=M.x,h*=M.y,C*=M.x,y*=M.y,p+=L,h+=F,R=Ot(E),E=Ef(R)}}return nu({width:C,height:y,x:p,y:h})}function gu(n,i){const o=du(n).scrollLeft;return i?i.left+o:Wl(Qn(n)).left+o}function Hy(n,i){const o=n.getBoundingClientRect(),r=o.left+i.scrollLeft-gu(n,o),s=o.top+i.scrollTop;return{x:r,y:s}}function Gw(n){let{elements:i,rect:o,offsetParent:r,strategy:s}=n;const f=s==="fixed",d=Qn(r),m=i?fu(i.floating):!1;if(r===d||m&&f)return o;let p={scrollLeft:0,scrollTop:0},h=qn(1);const C=qn(0),y=Ol(r);if((y||!f)&&((ti(r)!=="body"||cu(d))&&(p=du(r)),y)){const x=Wl(r);h=Za(r),C.x=x.x+r.clientLeft,C.y=x.y+r.clientTop}const b=d&&!y&&!f?Hy(d,p):qn(0);return{width:o.width*h.x,height:o.height*h.y,x:o.x*h.x-p.scrollLeft*h.x+C.x+b.x,y:o.y*h.y-p.scrollTop*h.y+C.y+b.y}}function Fw(n){return n.getClientRects?Array.from(n.getClientRects()):[]}function qw(n){const i=du(n),o=n.ownerDocument.body,r=Fn(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),s=Fn(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let f=-i.scrollLeft+gu(n);const d=-i.scrollTop;return yn(o).direction==="rtl"&&(f+=Fn(n.clientWidth,o.clientWidth)-r),{width:r,height:s,x:f,y:d}}const $w=25;function Yw(n,i,o){o===void 0&&(o="viewport");const r=o==="layoutViewport",s=Ot(n),f=Qn(n),d=s.visualViewport;let m=f.clientWidth,p=f.clientHeight,h=0,C=0;if(d){const b=!ld()||i==="fixed";r?b||(h=-d.offsetLeft,C=-d.offsetTop):(m=d.width,p=d.height,b&&(h=d.offsetLeft,C=d.offsetTop))}if(gu(f)<=0){const b=f.ownerDocument,x=b.body,R=getComputedStyle(x),E=b.compatMode==="CSS1Compat"&&parseFloat(R.marginLeft)+parseFloat(R.marginRight)||0,M=Math.abs(f.clientWidth-x.clientWidth-E),z=getComputedStyle(f).scrollbarGutter==="stable both-edges"?M/2:M;z<=$w&&(m-=z)}return{width:m,height:p,x:h,y:C}}function Xw(n,i){const o=Wl(n,!0,i==="fixed"),r=o.top+n.clientTop,s=o.left+n.clientLeft,f=Za(n),d=n.clientWidth*f.x,m=n.clientHeight*f.y,p=s*f.x,h=r*f.y;return{width:d,height:m,x:p,y:h}}function av(n,i,o){let r;if(i==="viewport"||i==="layoutViewport")r=Yw(n,o,i);else if(i==="document")r=qw(Qn(n));else if(vn(i))r=Xw(i,o);else{const s=Vy(n);r={x:i.x-s.x,y:i.y-s.y,width:i.width,height:i.height}}return nu(r)}function Qw(n,i){const o=i.get(n);if(o)return o;let r=oo(n,[],!1).filter(m=>vn(m)&&ti(m)!=="body"),s=null;const f=yn(n).position==="fixed";let d=f?Jl(n):n;for(;vn(d)&&!io(d);){const m=yn(d),p=nd(d),h=s?s.position:f?"fixed":"";!p&&(h==="fixed"||h==="absolute"&&m.position==="static")?r=r.filter(y=>y!==d):s=m,d=Jl(d)}return i.set(n,r),r}function Iw(n){let{element:i,boundary:o,rootBoundary:r,strategy:s}=n;const d=[...o==="clippingAncestors"?fu(i)?[]:Qw(i,this._c):[].concat(o),r],m=av(i,d[0],s);let p=m.top,h=m.right,C=m.bottom,y=m.left;for(let b=1;b<d.length;b++){const x=av(i,d[b],s);p=Fn(x.top,p),h=Rl(x.right,h),C=Rl(x.bottom,C),y=Fn(x.left,y)}return{width:h-y,height:C-p,x:y,y:p}}function Pw(n){const{width:i,height:o}=Ly(n);return{width:i,height:o}}function Zw(n,i,o){const r=Ol(i),s=Qn(i),f=o==="fixed",d=Wl(n,!0,f,i);let m={scrollLeft:0,scrollTop:0};const p=qn(0);if((r||!f)&&((ti(i)!=="body"||cu(s))&&(m=du(i)),r)){const b=Wl(i,!0,f,i);p.x=b.x+i.clientLeft,p.y=b.y+i.clientTop}!r&&s&&(p.x=gu(s));const h=s&&!r&&!f?Hy(s,m):qn(0),C=d.left+m.scrollLeft-p.x-h.x,y=d.top+m.scrollTop-p.y-h.y;return{x:C,y,width:d.width,height:d.height}}function Pc(n){return yn(n).position==="static"}function iv(n,i){if(!Ol(n)||yn(n).position==="fixed")return null;if(i)return i(n);let o=n.offsetParent;return Qn(n)===o&&(o=o.ownerDocument.body),o}function Uy(n,i){const o=Ot(n);if(fu(n))return o;if(!Ol(n)){let s=Jl(n);for(;s&&!io(s);){if(vn(s)&&!Pc(s))return s;s=Jl(s)}return o}let r=iv(n,i);for(;r&&kw(r)&&Pc(r);)r=iv(r,i);return r&&io(r)&&Pc(r)&&!nd(r)?o:r||Hw(n)||o}const Kw=async function(n){const i=this.getOffsetParent||Uy,o=this.getDimensions,r=await o(n.floating);return{reference:Zw(n.reference,await i(n.floating),n.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Jw(n){return yn(n).direction==="rtl"}const Ww={convertOffsetParentRelativeRectToViewportRelativeRect:Gw,getDocumentElement:Qn,getClippingRect:Iw,getOffsetParent:Uy,getElementRects:Kw,getClientRects:Fw,getDimensions:Pw,getScale:Za,isElement:vn,isRTL:Jw};function By(n,i){return n.x===i.x&&n.y===i.y&&n.width===i.width&&n.height===i.height}function e2(n,i,o){let r=null,s;const f=Qn(n);function d(){var C;clearTimeout(s),(C=r)==null||C.disconnect(),r=null}function m(C,y){C===void 0&&(C=!1),y===void 0&&(y=1),d();const b=n.getBoundingClientRect(),{left:x,top:R,width:E,height:M}=b;if(C||i(),!E||!M)return;const z=Ur(R),N=Ur(f.clientWidth-(x+E)),L=Ur(f.clientHeight-(R+M)),F=Ur(x),P={rootMargin:-z+"px "+-N+"px "+-L+"px "+-F+"px",threshold:Fn(0,Rl(1,y))||1};let Q=!0;function Y(W){const se=W[0].intersectionRatio;if(!By(b,n.getBoundingClientRect()))return m();if(se!==y){if(!Q)return m();se?m(!1,se):s=setTimeout(()=>{m(!1,1e-7)},1e3)}Q=!1}try{r=new IntersectionObserver(Y,{...P,root:f.ownerDocument})}catch{r=new IntersectionObserver(Y,P)}r.observe(n)}const p=Ot(n),h=()=>m(o);return p.addEventListener("resize",h),m(!0),()=>{p.removeEventListener("resize",h),d()}}function t2(n,i,o,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:f=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:p=!1}=r,h=ad(n),C=s||f?[...h?oo(h):[],...i?oo(i):[]]:[];C.forEach(z=>{s&&z.addEventListener("scroll",o),f&&z.addEventListener("resize",o)});const y=h&&m?e2(h,o,f):null;let b=-1,x=null;d&&(x=new ResizeObserver(z=>{let[N]=z;N&&N.target===h&&x&&i&&(x.unobserve(i),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var L;(L=x)==null||L.observe(i)})),o()}),h&&!p&&x.observe(h),i&&x.observe(i));let R,E=p?Wl(n):null;p&&M();function M(){const z=Wl(n);E&&!By(E,z)&&o(),E=z,R=requestAnimationFrame(M)}return o(),()=>{var z;C.forEach(N=>{s&&N.removeEventListener("scroll",o),f&&N.removeEventListener("resize",o)}),y==null||y(),(z=x)==null||z.disconnect(),x=null,p&&cancelAnimationFrame(R)}}const n2=Dw,l2=zw,a2=Aw,i2=Nw,o2=Ow,ov=Mw,r2=jw,u2=(n,i,o)=>{const r=new Map,s=o??{},f={...Ww,...s.platform,_c:r};return _w(n,i,{...s,platform:f})};var s2=typeof document<"u",c2=function(){},Zr=s2?w.useLayoutEffect:c2;function lu(n,i){if(n===i)return!0;if(typeof n!=typeof i)return!1;if(typeof n=="function"&&n.toString()===i.toString())return!0;let o,r,s;if(n&&i&&typeof n=="object"){if(Array.isArray(n)){if(o=n.length,o!==i.length)return!1;for(r=o;r--!==0;)if(!lu(n[r],i[r]))return!1;return!0}if(s=Object.keys(n),o=s.length,o!==Object.keys(i).length)return!1;for(r=o;r--!==0;)if(!{}.hasOwnProperty.call(i,s[r]))return!1;for(r=o;r--!==0;){const f=s[r];if(!(f==="_owner"&&n.$$typeof)&&!lu(n[f],i[f]))return!1}return!0}return n!==n&&i!==i}function Gy(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function rv(n,i){const o=Gy(n);return Math.round(i*o)/o}function Zc(n){const i=w.useRef(n);return Zr(()=>{i.current=n}),i}function f2(n){n===void 0&&(n={});const{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:s,elements:{reference:f,floating:d}={},transform:m=!0,whileElementsMounted:p,open:h}=n,[C,y]=w.useState({x:0,y:0,strategy:o,placement:i,middlewareData:{},isPositioned:!1}),[b,x]=w.useState(r);lu(b,r)||x(r);const[R,E]=w.useState(null),[M,z]=w.useState(null),N=w.useCallback(I=>{I!==P.current&&(P.current=I,E(I))},[]),L=w.useCallback(I=>{I!==Q.current&&(Q.current=I,z(I))},[]),F=f||R,G=d||M,P=w.useRef(null),Q=w.useRef(null),Y=w.useRef(C),W=p!=null,se=Zc(p),ce=Zc(s),ne=Zc(h),ie=w.useCallback(()=>{if(!P.current||!Q.current)return;const I={placement:i,strategy:o,middleware:b};ce.current&&(I.platform=ce.current),u2(P.current,Q.current,I).then(ee=>{const B={...ee,isPositioned:ne.current!==!1};de.current&&!lu(Y.current,B)&&(Y.current=B,Gf.flushSync(()=>{y(B)}))})},[b,i,o,ce,ne]);Zr(()=>{h===!1&&Y.current.isPositioned&&(Y.current.isPositioned=!1,y(I=>({...I,isPositioned:!1})))},[h]);const de=w.useRef(!1);Zr(()=>(de.current=!0,()=>{de.current=!1}),[]),Zr(()=>{if(F&&(P.current=F),G&&(Q.current=G),F&&G){if(se.current)return se.current(F,G,ie);ie()}},[F,G,ie,se,W]);const ve=w.useMemo(()=>({reference:P,floating:Q,setReference:N,setFloating:L}),[N,L]),_=w.useMemo(()=>({reference:F,floating:G}),[F,G]),T=w.useMemo(()=>{const I={position:o,left:0,top:0};if(!_.floating)return I;const ee=rv(_.floating,C.x),B=rv(_.floating,C.y);return m?{...I,transform:"translate("+ee+"px, "+B+"px)",...Gy(_.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:ee,top:B}},[o,m,_.floating,C.x,C.y]);return w.useMemo(()=>({...C,update:ie,refs:ve,elements:_,floatingStyles:T}),[C,ie,ve,_,T])}const d2=n=>{function i(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:n,fn(o){const{element:r,padding:s}=typeof n=="function"?n(o):n;return r&&i(r)?r.current!=null?ov({element:r.current,padding:s}).fn(o):{}:r?ov({element:r,padding:s}).fn(o):{}}}},g2=(n,i)=>{const o=n2(n);return{name:o.name,fn:o.fn,options:[n,i]}},m2=(n,i)=>{const o=l2(n);return{name:o.name,fn:o.fn,options:[n,i]}},h2=(n,i)=>({fn:r2(n).fn,options:[n,i]}),p2=(n,i)=>{const o=a2(n);return{name:o.name,fn:o.fn,options:[n,i]}},v2=(n,i)=>{const o=i2(n);return{name:o.name,fn:o.fn,options:[n,i]}},y2=(n,i)=>{const o=o2(n);return{name:o.name,fn:o.fn,options:[n,i]}},x2=(n,i)=>{const o=d2(n);return{name:o.name,fn:o.fn,options:[n,i]}};var S2=Object.defineProperty,bl=(n,i)=>S2(n,"name",{value:i,configurable:!0}),Fy="Popper",[qy,$y]=Al(Fy),[b2,Yy]=qy(Fy),C2=bl(n=>{const{__scopePopper:i,children:o}=n,[r,s]=w.useState(null),[f,d]=w.useState(void 0);return v.jsx(b2,{scope:i,anchor:r,onAnchorChange:s,placementState:f,setPlacementState:d,children:o})},"Popper"),w2="PopperAnchor",R2=w.forwardRef(bl(function(i,o){const{__scopePopper:r,virtualRef:s,...f}=i,d=Yy(w2,r),m=w.useRef(null),p=d.onAnchorChange,h=w.useCallback(E=>{m.current=E,E&&p(E)},[p]),C=at(o,h),y=w.useRef(null);w.useEffect(()=>{if(!s)return;const E=y.current;y.current=s.current,E!==y.current&&p(y.current)});const b=d.placementState&&mu(d.placementState),x=b==null?void 0:b[0],R=b==null?void 0:b[1];return s?null:v.jsx(Tt.div,{"data-radix-popper-side":x,"data-radix-popper-align":R,...f,ref:C})},"PopperAnchor")),Xy="PopperContent",[E2,o_]=qy(Xy),_2=w.forwardRef(bl(function(i,o){var ye,Ie,vt,nn,Sn,yt,ia;const{__scopePopper:r,side:s="bottom",sideOffset:f=0,align:d="center",alignOffset:m=0,arrowPadding:p=0,avoidCollisions:h=!0,collisionBoundary:C=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:x=!1,updatePositionStrategy:R="optimized",onPlaced:E,...M}=i,z=Yy(Xy,r),[N,L]=w.useState(null),F=at(o,L),[G,P]=w.useState(null),Q=Ty(G),Y=(Q==null?void 0:Q.width)??0,W=(Q==null?void 0:Q.height)??0,se=s+(d!=="center"?"-"+d:""),ce=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},ne=Array.isArray(C)?C:[C],ie=ne.length>0,de={padding:ce,boundary:ne.filter(Qy),altBoundary:ie},{refs:ve,floatingStyles:_,placement:T,isPositioned:I,middlewareData:ee}=f2({strategy:"fixed",placement:se,whileElementsMounted:bl((...Tl)=>t2(...Tl,{animationFrame:R==="always"}),"whileElementsMounted"),elements:{reference:z.anchor},middleware:[g2({mainAxis:f+W,alignmentAxis:m}),h&&m2({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?h2():void 0,...de}),h&&p2({...de}),v2({...de,apply:bl(({elements:Tl,rects:fo,availableWidth:go,availableHeight:ni})=>{const{width:li,height:ai}=fo.reference,oa=Tl.floating.style;oa.setProperty("--radix-popper-available-width",`${go}px`),oa.setProperty("--radix-popper-available-height",`${ni}px`),oa.setProperty("--radix-popper-anchor-width",`${li}px`),oa.setProperty("--radix-popper-anchor-height",`${ai}px`)},"apply")}),G&&x2({element:G,padding:p}),M2({arrowWidth:Y,arrowHeight:W}),x&&y2({strategy:"referenceHidden",...de,boundary:ie?de.boundary:void 0})]}),B=z.setPlacementState;Ft(()=>(B(T),()=>{B(void 0)}),[T,B]);const[O,k]=mu(T),K=Yn(E);Ft(()=>{I&&(K==null||K())},[I,K]);const J=(ye=ee.arrow)==null?void 0:ye.x,te=(Ie=ee.arrow)==null?void 0:Ie.y,re=((vt=ee.arrow)==null?void 0:vt.centerOffset)!==0,[me,Ae]=w.useState();return Ft(()=>{N&&Ae(window.getComputedStyle(N).zIndex)},[N]),v.jsx("div",{ref:ve.setFloating,"data-radix-popper-content-wrapper":"",style:{..._,transform:I?_.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:me,"--radix-popper-transform-origin":[(nn=ee.transformOrigin)==null?void 0:nn.x,(Sn=ee.transformOrigin)==null?void 0:Sn.y].join(" "),...((yt=ee.hide)==null?void 0:yt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:i.dir,children:v.jsx(E2,{scope:r,placedSide:O,placedAlign:k,onArrowChange:P,arrowX:J,arrowY:te,shouldHideArrow:re,children:v.jsx(Tt.div,{"data-side":O,"data-align":k,...M,ref:F,style:{...M.style,animation:I?(ia=M.style)==null?void 0:ia.animation:"none"}})})})},"PopperContent"));function Qy(n){return n!==null}bl(Qy,"isNotNull");var M2=bl(n=>({name:"transformOrigin",options:n,fn(i){var M,z,N;const{placement:o,rects:r,middlewareData:s}=i,d=((M=s.arrow)==null?void 0:M.centerOffset)!==0,m=d?0:n.arrowWidth,p=d?0:n.arrowHeight,[h,C]=mu(o),y={start:"0%",center:"50%",end:"100%"}[C],b=(((z=s.arrow)==null?void 0:z.x)??0)+m/2,x=(((N=s.arrow)==null?void 0:N.y)??0)+p/2;let R="",E="";return h==="bottom"?(R=d?y:`${b}px`,E=`${-p}px`):h==="top"?(R=d?y:`${b}px`,E=`${r.floating.height+p}px`):h==="right"?(R=`${-p}px`,E=d?y:`${x}px`):h==="left"&&(R=`${r.floating.width+p}px`,E=d?y:`${x}px`),{data:{x:R,y:E}}}}),"transformOrigin");function mu(n){const[i,o="center"]=n.split("-");return[i,o]}bl(mu,"getSideAndAlignFromPlacement");var A2=C2,O2=R2,T2=_2,D2=Object.defineProperty,id=(n,i)=>D2(n,"name",{value:i,configurable:!0}),Kc=!1;function Iy(){const[n,i]=w.useState(Kc);return w.useEffect(()=>{Kc||(Kc=!0,i(!0))},[]),n}id(Iy,"useIsHydrated");var Py=Ka[" useSyncExternalStore ".trim().toString()];function Zy(){return()=>{}}id(Zy,"subscribe");function Ky(){return Py(Zy,()=>!0,()=>!1)}id(Ky,"useIsHydratedModern");var z2=typeof Py=="function"?Ky:Iy,j2=Object.defineProperty,ta=(n,i)=>j2(n,"name",{value:i,configurable:!0}),Jc="rovingFocusGroup.onEntryFocus",N2={bubbles:!1,cancelable:!0},hu="RovingFocusGroup",[_f,Jy,k2]=$f(hu),[L2,Wy]=Al(hu,[k2]),[V2,H2]=L2(hu),U2=w.forwardRef(ta(function(i,o){return v.jsx(_f.Provider,{scope:i.__scopeRovingFocusGroup,children:v.jsx(_f.Slot,{scope:i.__scopeRovingFocusGroup,children:v.jsx(B2,{...i,ref:o})})})},"RovingFocusGroup")),B2=w.forwardRef(ta(function(i,o){const{__scopeRovingFocusGroup:r,orientation:s,loop:f=!1,dir:d,currentTabStopId:m,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:h,onEntryFocus:C,preventScrollOnEntryFocus:y=!1,...b}=i,x=w.useRef(null),R=at(o,x),E=Xf(d),[M,z]=ou({prop:m,defaultProp:p??null,onChange:h,caller:hu}),[N,L]=w.useState(!1),F=Yn(C),G=Jy(r),P=w.useRef(!1),[Q,Y]=w.useState(0);return w.useEffect(()=>{const W=x.current;if(W)return W.addEventListener(Jc,F),()=>W.removeEventListener(Jc,F)},[F]),v.jsx(V2,{scope:r,orientation:s,dir:E,loop:f,currentTabStopId:M,onItemFocus:w.useCallback(W=>z(W),[z]),onItemShiftTab:w.useCallback(()=>L(!0),[]),onFocusableItemAdd:w.useCallback(()=>Y(W=>W+1),[]),onFocusableItemRemove:w.useCallback(()=>Y(W=>W-1),[]),children:v.jsx(Tt.div,{tabIndex:N||Q===0?-1:0,"data-orientation":s,...b,ref:R,style:{outline:"none",...i.style},onMouseDown:De(i.onMouseDown,()=>{P.current=!0}),onFocus:De(i.onFocus,W=>{const se=!P.current;if(W.target===W.currentTarget&&se&&!N){const ce=new CustomEvent(Jc,N2);if(W.currentTarget.dispatchEvent(ce),!ce.defaultPrevented){const ne=G().filter(T=>T.focusable),ie=ne.find(T=>T.active),de=ne.find(T=>T.id===M),_=[ie,de,...ne].filter(Boolean).map(T=>T.ref.current);od(_,y)}}P.current=!1}),onBlur:De(i.onBlur,()=>L(!1))})})},"RovingFocusGroupImpl")),G2="RovingFocusGroupItem",F2=w.forwardRef(ta(function(i,o){const{__scopeRovingFocusGroup:r,focusable:s=!0,active:f=!1,tabStopId:d,children:m,...p}=i,h=Kl(),C=d||h,y=H2(G2,r),b=y.currentTabStopId===C,x=Jy(r),{onFocusableItemAdd:R,onFocusableItemRemove:E,currentTabStopId:M}=y,z=z2();return Ft(()=>{if(!(!z||!s))return R(),()=>E()},[z,s,R,E]),w.useEffect(()=>{if(!(z||!s))return R(),()=>E()},[z,s,R,E]),v.jsx(_f.ItemSlot,{scope:r,id:C,focusable:s,active:f,children:v.jsx(Tt.span,{tabIndex:b?0:-1,"data-orientation":y.orientation,...p,ref:o,onMouseDown:De(i.onMouseDown,N=>{s?y.onItemFocus(C):N.preventDefault()}),onFocus:De(i.onFocus,()=>y.onItemFocus(C)),onKeyDown:De(i.onKeyDown,N=>{if(N.key==="Tab"&&N.shiftKey){y.onItemShiftTab();return}if(N.target!==N.currentTarget)return;const L=t0(N,y.orientation,y.dir);if(L!==void 0){if(N.metaKey||N.ctrlKey||N.altKey||N.shiftKey)return;N.preventDefault();let G=x().filter(P=>P.focusable).map(P=>P.ref.current);if(L==="last")G.reverse();else if(L==="prev"||L==="next"){L==="prev"&&G.reverse();const P=G.indexOf(N.currentTarget);G=y.loop?n0(G,P+1):G.slice(P+1)}setTimeout(()=>od(G))}}),children:typeof m=="function"?m({isCurrentTabStop:b,hasTabStop:M!=null}):m})})},"RovingFocusGroupItem")),q2={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function e0(n,i){return i!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}ta(e0,"getDirectionAwareKey");function t0(n,i,o){const r=e0(n.key,o);if(!(i==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(i==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return q2[r]}ta(t0,"getFocusIntent");function od(n,i=!1){const o=document.activeElement;for(const r of n)if(r===o||(r.focus({preventScroll:i}),document.activeElement!==o))return}ta(od,"focusFirst");function n0(n,i){return n.map((o,r)=>n[(i+r)%n.length])}ta(n0,"wrapArray");var $2=U2,Y2=F2,X2=Object.defineProperty,Ge=(n,i)=>X2(n,"name",{value:i,configurable:!0}),Q2=["Enter"," "],I2=["ArrowDown","PageUp","Home"],l0=["ArrowUp","PageDown","End"],P2=[...I2,...l0],pu="Menu",[Mf,Z2,K2]=$f(pu),[na,a0]=Al(pu,[K2,$y,Wy]),rd=$y(),i0=Wy(),[J2,co]=na(pu),[W2,ud]=na(pu),eR=Ge(n=>{const{__scopeMenu:i,open:o=!1,children:r,dir:s,onOpenChange:f,modal:d=!0}=n,m=rd(i),[p,h]=w.useState(null),C=w.useRef(!1),y=Yn(f),b=Xf(s);return w.useEffect(()=>{const x=Ge(()=>{C.current=!0,document.addEventListener("pointerdown",R,{capture:!0,once:!0}),document.addEventListener("pointermove",R,{capture:!0,once:!0})},"handleKeyDown"),R=Ge(()=>C.current=!1,"handlePointer");return document.addEventListener("keydown",x,{capture:!0}),()=>{document.removeEventListener("keydown",x,{capture:!0}),document.removeEventListener("pointerdown",R,{capture:!0}),document.removeEventListener("pointermove",R,{capture:!0})}},[]),w.useEffect(()=>{if(!o)return;const x=Ge(()=>y(!1),"handleBlur");return window.addEventListener("blur",x),()=>window.removeEventListener("blur",x)},[o,y]),v.jsx(A2,{...m,children:v.jsx(J2,{scope:i,open:o,onOpenChange:y,content:p,onContentChange:h,children:v.jsx(W2,{scope:i,onClose:w.useCallback(()=>y(!1),[y]),isUsingKeyboardRef:C,dir:b,modal:d,children:r})})})},"Menu"),tR=w.forwardRef(Ge(function(i,o){const{__scopeMenu:r,...s}=i,f=rd(r);return v.jsx(O2,{...f,...s,ref:o})},"MenuAnchor")),o0="MenuPortal",[nR,lR]=na(o0,{forceMount:void 0}),aR=Ge(n=>{const{__scopeMenu:i,forceMount:o,children:r,container:s}=n,f=co(o0,i);return v.jsx(nR,{scope:i,forceMount:o,children:v.jsx(Wa,{present:o||f.open,children:v.jsx(py,{asChild:!0,container:s,children:r})})})},"MenuPortal"),Cl="MenuContent",[iR,r0]=na(Cl),oR=w.forwardRef(Ge(function(i,o){const r=lR(Cl,i.__scopeMenu),{forceMount:s=r.forceMount,...f}=i,d=co(Cl,i.__scopeMenu),m=ud(Cl,i.__scopeMenu);return v.jsx(Mf.Provider,{scope:i.__scopeMenu,children:v.jsx(Wa,{present:s||d.open,children:v.jsx(Mf.Slot,{scope:i.__scopeMenu,children:m.modal?v.jsx(rR,{...f,ref:o}):v.jsx(uR,{...f,ref:o})})})})},"MenuContent")),rR=w.forwardRef(Ge(function(i,o){const r=co(Cl,i.__scopeMenu),s=w.useRef(null),f=at(o,s);return w.useEffect(()=>{const d=s.current;if(d)return Ey(d)},[]),v.jsx(u0,{...i,ref:f,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:De(i.onFocusOutside,d=>d.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})},"MenuRootContentModal")),uR=w.forwardRef(Ge(function(i,o){const r=co(Cl,i.__scopeMenu);return v.jsx(u0,{...i,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})},"MenuRootContentNonModal")),sR=wl("MenuContent.ScrollLock"),u0=w.forwardRef(Ge(function(i,o){const{__scopeMenu:r,loop:s=!1,trapFocus:f,onOpenAutoFocus:d,onCloseAutoFocus:m,disableOutsidePointerEvents:p,onEntryFocus:h,onEscapeKeyDown:C,onPointerDownOutside:y,onFocusOutside:b,onInteractOutside:x,onDismiss:R,disableOutsideScroll:E,...M}=i,z=co(Cl,r),N=ud(Cl,r),L=rd(r),F=i0(r),G=Z2(r),[P,Q]=w.useState(null),Y=w.useRef(null),W=at(o,Y,z.onContentChange),se=w.useRef(0),ce=w.useRef(""),ne=w.useRef(0),ie=w.useRef(null),de=w.useRef("right"),ve=w.useRef(0),_=E?Zf:w.Fragment,T=E?{as:sR,allowPinchZoom:!0}:void 0,I=Ge(B=>{var Ae,ye;const O=ce.current+B,k=G().filter(Ie=>!Ie.disabled),K=document.activeElement,J=(Ae=k.find(Ie=>Ie.ref.current===K))==null?void 0:Ae.textValue,te=k.map(Ie=>Ie.textValue),re=m0(te,O,J),me=(ye=k.find(Ie=>Ie.textValue===re))==null?void 0:ye.ref.current;Ge((function Ie(vt){ce.current=vt,window.clearTimeout(se.current),vt!==""&&(se.current=window.setTimeout(()=>Ie(""),1e3))}),"updateSearch")(O),me&&setTimeout(()=>me.focus())},"handleTypeaheadSearch");w.useEffect(()=>()=>window.clearTimeout(se.current),[]),ru();const ee=w.useCallback(B=>{var k,K;return de.current===((k=ie.current)==null?void 0:k.side)&&p0(B,(K=ie.current)==null?void 0:K.area)},[]);return v.jsx(iR,{scope:r,searchRef:ce,onItemEnter:w.useCallback(B=>{ee(B)&&B.preventDefault()},[ee]),onItemLeave:w.useCallback(B=>{var O;ee(B)||((O=Y.current)==null||O.focus(),Q(null))},[ee]),onTriggerLeave:w.useCallback(B=>{ee(B)&&B.preventDefault()},[ee]),pointerGraceTimerRef:ne,onPointerGraceIntentChange:w.useCallback(B=>{ie.current=B},[]),children:v.jsx(_,{...T,children:v.jsx(sy,{asChild:!0,trapped:f,onMountAutoFocus:De(d,B=>{var O;B.preventDefault(),(O=Y.current)==null||O.focus({preventScroll:!0})}),onUnmountAutoFocus:m,children:v.jsx(iy,{asChild:!0,disableOutsidePointerEvents:p,onEscapeKeyDown:C,onPointerDownOutside:y,onFocusOutside:b,onInteractOutside:x,onDismiss:R,children:v.jsx($2,{asChild:!0,...F,dir:N.dir,orientation:"vertical",loop:s,currentTabStopId:P,onCurrentTabStopIdChange:Q,onEntryFocus:De(h,B=>{N.isUsingKeyboardRef.current||B.preventDefault()}),preventScrollOnEntryFocus:!0,children:v.jsx(T2,{role:"menu","aria-orientation":"vertical","data-state":f0(z.open),"data-radix-menu-content":"",dir:N.dir,...L,...M,ref:W,style:{outline:"none",...M.style},onKeyDown:De(M.onKeyDown,B=>{const k=B.target.closest("[data-radix-menu-content]")===B.currentTarget,K=B.ctrlKey||B.altKey||B.metaKey,J=B.key.length===1;k&&(B.key==="Tab"&&B.preventDefault(),!K&&J&&I(B.key));const te=Y.current;if(B.target!==te||!P2.includes(B.key))return;B.preventDefault();const me=G().filter(Ae=>!Ae.disabled).map(Ae=>Ae.ref.current);l0.includes(B.key)&&me.reverse(),d0(me)}),onBlur:De(i.onBlur,B=>{B.currentTarget.contains(B.target)||(window.clearTimeout(se.current),ce.current="")}),onPointerMove:De(i.onPointerMove,au(B=>{const O=B.target,k=ve.current!==B.clientX;if(B.currentTarget.contains(O)&&k){const K=B.clientX>ve.current?"right":"left";de.current=K,ve.current=B.clientX}}))})})})})})})},"MenuContentImpl")),Af="MenuItem",uv="menu.itemSelect",s0=w.forwardRef(Ge(function(i,o){const{disabled:r=!1,onSelect:s,...f}=i,d=w.useRef(null),m=ud(Af,i.__scopeMenu),p=r0(Af,i.__scopeMenu),h=at(o,d),C=w.useRef(!1),y=Ge(()=>{const b=d.current;if(!r&&b){const x=new CustomEvent(uv,{bubbles:!0,cancelable:!0});b.addEventListener(uv,R=>s==null?void 0:s(R),{once:!0}),qf(b,x),x.defaultPrevented?C.current=!1:m.onClose()}},"handleSelect");return v.jsx(cR,{...f,ref:h,disabled:r,onClick:De(i.onClick,y),onPointerDown:b=>{var x;(x=i.onPointerDown)==null||x.call(i,b),C.current=!0},onPointerUp:De(i.onPointerUp,b=>{var x;C.current||(x=b.currentTarget)==null||x.click()}),onKeyDown:De(i.onKeyDown,b=>{r||b.target!==b.currentTarget||p.searchRef.current!==""&&b.key===" "||Q2.includes(b.key)&&(b.currentTarget.click(),b.preventDefault())})})},"MenuItem")),cR=w.forwardRef(Ge(function(i,o){const{__scopeMenu:r,disabled:s=!1,textValue:f,...d}=i,m=r0(Af,r),p=i0(r),h=w.useRef(null),C=at(o,h),[y,b]=w.useState(!1),[x,R]=w.useState("");return w.useEffect(()=>{const E=h.current;E&&R((E.textContent??"").trim())},[d.children]),v.jsx(Mf.ItemSlot,{scope:r,disabled:s,textValue:f??x,children:v.jsx(Y2,{asChild:!0,...p,focusable:!s,children:v.jsx(Tt.div,{role:"menuitem","data-highlighted":y?"":void 0,"aria-disabled":s||void 0,"data-disabled":s?"":void 0,...d,ref:C,onPointerMove:De(i.onPointerMove,au(E=>{s?m.onItemLeave(E):(m.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:De(i.onPointerLeave,au(E=>m.onItemLeave(E))),onFocus:De(i.onFocus,()=>b(!0)),onBlur:De(i.onBlur,()=>b(!1))})})})},"MenuItemImpl")),fR=w.forwardRef(Ge(function(i,o){const{checked:r=!1,onCheckedChange:s,...f}=i;return v.jsx(gR,{scope:i.__scopeMenu,checked:r,children:v.jsx(s0,{role:"menuitemcheckbox","aria-checked":ro(r)?"mixed":r,...f,ref:o,"data-state":sd(r),onSelect:De(f.onSelect,()=>s==null?void 0:s(ro(r)?!0:!r),{checkForDefaultPrevented:!1})})})},"MenuCheckboxItem")),dR="MenuRadioGroup",[r_,u_]=na(dR,{value:void 0,onValueChange:Ge(()=>{},"onValueChange")}),c0="MenuItemIndicator",[gR,mR]=na(c0,{checked:!1}),hR=w.forwardRef(Ge(function(i,o){const{__scopeMenu:r,forceMount:s,...f}=i,d=mR(c0,r);return v.jsx(Wa,{present:s||ro(d.checked)||d.checked===!0,children:v.jsx(Tt.span,{...f,ref:o,"data-state":sd(d.checked)})})},"MenuItemIndicator")),pR="MenuSub",[s_,c_]=na(pR);function f0(n){return n?"open":"closed"}Ge(f0,"getOpenState");function ro(n){return n==="indeterminate"}Ge(ro,"isIndeterminate");function sd(n){return ro(n)?"indeterminate":n?"checked":"unchecked"}Ge(sd,"getCheckedState");function d0(n){const i=document.activeElement;for(const o of n)if(o===i||(o.focus(),document.activeElement!==i))return}Ge(d0,"focusFirst");function g0(n,i){return n.map((o,r)=>n[(i+r)%n.length])}Ge(g0,"wrapArray");function m0(n,i,o){const s=i.length>1&&Array.from(i).every(h=>h===i[0])?i[0]:i,f=o?n.indexOf(o):-1;let d=g0(n,Math.max(f,0));s.length===1&&(d=d.filter(h=>h!==o));const p=d.find(h=>h.toLowerCase().startsWith(s.toLowerCase()));return p!==o?p:void 0}Ge(m0,"getNextMatch");function h0(n,i){const{x:o,y:r}=n;let s=!1;for(let f=0,d=i.length-1;f<i.length;d=f++){const m=i[f],p=i[d],h=m.x,C=m.y,y=p.x,b=p.y;C>r!=b>r&&o<(y-h)*(r-C)/(b-C)+h&&(s=!s)}return s}Ge(h0,"isPointInPolygon");function p0(n,i){if(!i)return!1;const o={x:n.clientX,y:n.clientY};return h0(o,i)}Ge(p0,"isPointerInGraceArea");function au(n){return i=>i.pointerType==="mouse"?n(i):void 0}Ge(au,"whenMouse");var vR=eR,yR=tR,xR=aR,SR=oR,bR=s0,CR=fR,wR=hR,RR=Object.defineProperty,la=(n,i)=>RR(n,"name",{value:i,configurable:!0}),cd="DropdownMenu",[ER,f_]=Al(cd,[a0]),aa=a0(),[_R,v0]=ER(cd),MR=la(n=>{const{__scopeDropdownMenu:i,children:o,dir:r,open:s,defaultOpen:f,onOpenChange:d,modal:m=!0}=n,p=aa(i),h=w.useRef(null),[C,y]=ou({prop:s,defaultProp:f??!1,onChange:d,caller:cd});return v.jsx(_R,{scope:i,triggerId:Kl(),triggerRef:h,contentId:Kl(),open:C,onOpenChange:y,onOpenToggle:w.useCallback(()=>y(b=>!b),[y]),modal:m,children:v.jsx(vR,{...p,open:C,onOpenChange:y,dir:r,modal:m,children:o})})},"DropdownMenu"),AR="DropdownMenuTrigger",OR=w.forwardRef(la(function(i,o){const{__scopeDropdownMenu:r,disabled:s=!1,...f}=i,d=v0(AR,r),m=aa(r),p=at(o,d.triggerRef);return v.jsx(yR,{asChild:!0,...m,children:v.jsx(Tt.button,{type:"button",id:d.triggerId,"aria-haspopup":"menu","aria-expanded":d.open,"aria-controls":d.open?d.contentId:void 0,"data-state":d.open?"open":"closed","data-disabled":s?"":void 0,disabled:s,...f,ref:p,onPointerDown:De(i.onPointerDown,h=>{!s&&h.button===0&&h.ctrlKey===!1&&(d.onOpenToggle(),d.open||h.preventDefault())}),onKeyDown:De(i.onKeyDown,h=>{s||(["Enter"," "].includes(h.key)&&d.onOpenToggle(),h.key==="ArrowDown"&&d.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(h.key)&&h.preventDefault())})})})},"DropdownMenuTrigger")),TR=la(n=>{const{__scopeDropdownMenu:i,...o}=n,r=aa(i);return v.jsx(xR,{...r,...o})},"DropdownMenuPortal"),DR="DropdownMenuContent",zR=w.forwardRef(la(function(i,o){const{__scopeDropdownMenu:r,...s}=i,f=v0(DR,r),d=aa(r),m=w.useRef(!1);return v.jsx(SR,{id:f.contentId,"aria-labelledby":f.triggerId,...d,...s,ref:o,onCloseAutoFocus:De(i.onCloseAutoFocus,p=>{var h;m.current||(h=f.triggerRef.current)==null||h.focus(),m.current=!1,p.preventDefault()}),onInteractOutside:De(i.onInteractOutside,p=>{const h=p.detail.originalEvent,C=h.button===0&&h.ctrlKey===!0,y=h.button===2||C;(!f.modal||y)&&(m.current=!0)}),style:{...i.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)"}})},"DropdownMenuContent")),jR=w.forwardRef(la(function(i,o){const{__scopeDropdownMenu:r,...s}=i,f=aa(r);return v.jsx(bR,{...f,...s,ref:o})},"DropdownMenuItem")),NR=w.forwardRef(la(function(i,o){const{__scopeDropdownMenu:r,...s}=i,f=aa(r);return v.jsx(CR,{...f,...s,ref:o})},"DropdownMenuCheckboxItem")),kR=w.forwardRef(la(function(i,o){const{__scopeDropdownMenu:r,...s}=i,f=aa(r);return v.jsx(wR,{...f,...s,ref:o})},"DropdownMenuItemIndicator")),LR=MR,VR=OR,HR=TR,UR=zR,BR=jR,GR=NR,FR=kR;function y0({...n}){return v.jsx(LR,{...n})}function x0({...n}){return v.jsx(VR,{...n})}function S0({className:n,sideOffset:i=4,...o}){return v.jsx(HR,{children:v.jsx(UR,{sideOffset:i,className:Qe("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]: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 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md",n),...o})})}function Wc({className:n,inset:i,...o}){return v.jsx(BR,{"data-inset":i,className:Qe("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),...o})}function qR({className:n,children:i,checked:o,...r}){return v.jsxs(GR,{className:Qe("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),checked:o,...r,children:[v.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:v.jsx(FR,{children:v.jsx(uo,{className:"size-4"})})}),i]})}function $R(){const{setTheme:n}=h1();return v.jsxs(y0,{children:[v.jsx(x0,{asChild:!0,children:v.jsxs(Ue,{variant:"outline",size:"icon",children:[v.jsx(Dp,{className:"size-4 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),v.jsx(Tp,{className:"absolute size-4 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),v.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}),v.jsxs(S0,{align:"end",children:[v.jsxs(Wc,{onClick:()=>n("light"),children:[v.jsx(Dp,{}),"Light"]}),v.jsxs(Wc,{onClick:()=>n("dark"),children:[v.jsx(Tp,{}),"Dark"]}),v.jsxs(Wc,{onClick:()=>n("system"),children:[v.jsx(R1,{}),"System"]})]})]})}function Br({className:n,...i}){return v.jsx("div",{className:Qe("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",n),...i})}function Gr({className:n,...i}){return v.jsx("div",{className:Qe("grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6",n),...i})}function Fr({className:n,...i}){return v.jsx("div",{className:Qe("leading-none font-semibold",n),...i})}function qr({className:n,...i}){return v.jsx("div",{className:Qe("px-6",n),...i})}function YR({connectors:n}){const i=n.length,o=n.filter(f=>f.installed).length,r=n.filter(f=>{var d;return(d=f.auth)==null?void 0:d.configured}).length,s=o-r;return v.jsxs("div",{className:"grid gap-4 md:grid-cols-4",children:[v.jsxs(Br,{children:[v.jsx(Gr,{children:v.jsxs(Fr,{className:"flex items-center gap-2 text-sm font-medium text-muted-foreground",children:[v.jsx(E1,{className:"size-4"}),"Available"]})}),v.jsx(qr,{children:v.jsx("div",{className:"text-3xl font-bold",children:i})})]}),v.jsxs(Br,{children:[v.jsx(Gr,{children:v.jsxs(Fr,{className:"flex items-center gap-2 text-sm font-medium text-muted-foreground",children:[v.jsx(Jr,{className:"size-4"}),"Installed"]})}),v.jsx(qr,{children:v.jsx("div",{className:"text-3xl font-bold",children:o})})]}),v.jsxs(Br,{children:[v.jsx(Gr,{children:v.jsxs(Fr,{className:"flex items-center gap-2 text-sm font-medium text-muted-foreground",children:[v.jsx(A1,{className:"size-4"}),"Configured"]})}),v.jsx(qr,{children:v.jsx("div",{className:"text-3xl font-bold text-green-600 dark:text-green-400",children:r})})]}),v.jsxs(Br,{children:[v.jsx(Gr,{children:v.jsxs(Fr,{className:"flex items-center gap-2 text-sm font-medium text-muted-foreground",children:[v.jsx(M1,{className:"size-4"}),"Needs Auth"]})}),v.jsx(qr,{children:v.jsx("div",{className:"text-3xl font-bold text-orange-600 dark:text-orange-400",children:s>0?s:0})})]})]})}/**
|
|
260
|
+
* table-core
|
|
261
|
+
*
|
|
262
|
+
* Copyright (c) TanStack
|
|
263
|
+
*
|
|
264
|
+
* This source code is licensed under the MIT license found in the
|
|
265
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
266
|
+
*
|
|
267
|
+
* @license MIT
|
|
268
|
+
*/function Sl(n,i){return typeof n=="function"?n(i):n}function qt(n,i){return o=>{i.setState(r=>({...r,[n]:Sl(o,r[n])}))}}function vu(n){return n instanceof Function}function XR(n){return Array.isArray(n)&&n.every(i=>typeof i=="number")}function QR(n,i){const o=[],r=s=>{s.forEach(f=>{o.push(f);const d=i(f);d!=null&&d.length&&r(d)})};return r(n),o}function he(n,i,o){let r=[],s;return f=>{let d;o.key&&o.debug&&(d=Date.now());const m=n(f);if(!(m.length!==r.length||m.some((C,y)=>r[y]!==C)))return s;r=m;let h;if(o.key&&o.debug&&(h=Date.now()),s=i(...m),o==null||o.onChange==null||o.onChange(s),o.key&&o.debug&&o!=null&&o.debug()){const C=Math.round((Date.now()-d)*100)/100,y=Math.round((Date.now()-h)*100)/100,b=y/16,x=(R,E)=>{for(R=String(R);R.length<E;)R=" "+R;return R};console.info(`%c⏱ ${x(y,5)} /${x(C,5)} ms`,`
|
|
269
|
+
font-size: .6rem;
|
|
270
|
+
font-weight: bold;
|
|
271
|
+
color: hsl(${Math.max(0,Math.min(120-120*b,120))}deg 100% 31%);`,o==null?void 0:o.key)}return s}}function pe(n,i,o,r){return{debug:()=>{var s;return(s=n==null?void 0:n.debugAll)!=null?s:n[i]},key:!1,onChange:r}}function IR(n,i,o,r){const s=()=>{var d;return(d=f.getValue())!=null?d:n.options.renderFallbackValue},f={id:`${i.id}_${o.id}`,row:i,column:o,getValue:()=>i.getValue(r),renderValue:s,getContext:he(()=>[n,o,i,f],(d,m,p,h)=>({table:d,column:m,row:p,cell:h,getValue:h.getValue,renderValue:h.renderValue}),pe(n.options,"debugCells"))};return n._features.forEach(d=>{d.createCell==null||d.createCell(f,o,i,n)},{}),f}function PR(n,i,o,r){var s,f;const m={...n._getDefaultColumnDef(),...i},p=m.accessorKey;let h=(s=(f=m.id)!=null?f:p?typeof String.prototype.replaceAll=="function"?p.replaceAll(".","_"):p.replace(/\./g,"_"):void 0)!=null?s:typeof m.header=="string"?m.header:void 0,C;if(m.accessorFn?C=m.accessorFn:p&&(p.includes(".")?C=b=>{let x=b;for(const E of p.split(".")){var R;x=(R=x)==null?void 0:R[E]}return x}:C=b=>b[m.accessorKey]),!h)throw new Error;let y={id:`${String(h)}`,accessorFn:C,parent:r,depth:o,columnDef:m,columns:[],getFlatColumns:he(()=>[!0],()=>{var b;return[y,...(b=y.columns)==null?void 0:b.flatMap(x=>x.getFlatColumns())]},pe(n.options,"debugColumns")),getLeafColumns:he(()=>[n._getOrderColumnsFn()],b=>{var x;if((x=y.columns)!=null&&x.length){let R=y.columns.flatMap(E=>E.getLeafColumns());return b(R)}return[y]},pe(n.options,"debugColumns"))};for(const b of n._features)b.createColumn==null||b.createColumn(y,n);return y}const pt="debugHeaders";function sv(n,i,o){var r;let f={id:(r=o.id)!=null?r:i.id,column:i,index:o.index,isPlaceholder:!!o.isPlaceholder,placeholderId:o.placeholderId,depth:o.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const d=[],m=p=>{p.subHeaders&&p.subHeaders.length&&p.subHeaders.map(m),d.push(p)};return m(f),d},getContext:()=>({table:n,header:f,column:i})};return n._features.forEach(d=>{d.createHeader==null||d.createHeader(f,n)}),f}const ZR={createTable:n=>{n.getHeaderGroups=he(()=>[n.getAllColumns(),n.getVisibleLeafColumns(),n.getState().columnPinning.left,n.getState().columnPinning.right],(i,o,r,s)=>{var f,d;const m=(f=r==null?void 0:r.map(y=>o.find(b=>b.id===y)).filter(Boolean))!=null?f:[],p=(d=s==null?void 0:s.map(y=>o.find(b=>b.id===y)).filter(Boolean))!=null?d:[],h=o.filter(y=>!(r!=null&&r.includes(y.id))&&!(s!=null&&s.includes(y.id)));return $r(i,[...m,...h,...p],n)},pe(n.options,pt)),n.getCenterHeaderGroups=he(()=>[n.getAllColumns(),n.getVisibleLeafColumns(),n.getState().columnPinning.left,n.getState().columnPinning.right],(i,o,r,s)=>(o=o.filter(f=>!(r!=null&&r.includes(f.id))&&!(s!=null&&s.includes(f.id))),$r(i,o,n,"center")),pe(n.options,pt)),n.getLeftHeaderGroups=he(()=>[n.getAllColumns(),n.getVisibleLeafColumns(),n.getState().columnPinning.left],(i,o,r)=>{var s;const f=(s=r==null?void 0:r.map(d=>o.find(m=>m.id===d)).filter(Boolean))!=null?s:[];return $r(i,f,n,"left")},pe(n.options,pt)),n.getRightHeaderGroups=he(()=>[n.getAllColumns(),n.getVisibleLeafColumns(),n.getState().columnPinning.right],(i,o,r)=>{var s;const f=(s=r==null?void 0:r.map(d=>o.find(m=>m.id===d)).filter(Boolean))!=null?s:[];return $r(i,f,n,"right")},pe(n.options,pt)),n.getFooterGroups=he(()=>[n.getHeaderGroups()],i=>[...i].reverse(),pe(n.options,pt)),n.getLeftFooterGroups=he(()=>[n.getLeftHeaderGroups()],i=>[...i].reverse(),pe(n.options,pt)),n.getCenterFooterGroups=he(()=>[n.getCenterHeaderGroups()],i=>[...i].reverse(),pe(n.options,pt)),n.getRightFooterGroups=he(()=>[n.getRightHeaderGroups()],i=>[...i].reverse(),pe(n.options,pt)),n.getFlatHeaders=he(()=>[n.getHeaderGroups()],i=>i.map(o=>o.headers).flat(),pe(n.options,pt)),n.getLeftFlatHeaders=he(()=>[n.getLeftHeaderGroups()],i=>i.map(o=>o.headers).flat(),pe(n.options,pt)),n.getCenterFlatHeaders=he(()=>[n.getCenterHeaderGroups()],i=>i.map(o=>o.headers).flat(),pe(n.options,pt)),n.getRightFlatHeaders=he(()=>[n.getRightHeaderGroups()],i=>i.map(o=>o.headers).flat(),pe(n.options,pt)),n.getCenterLeafHeaders=he(()=>[n.getCenterFlatHeaders()],i=>i.filter(o=>{var r;return!((r=o.subHeaders)!=null&&r.length)}),pe(n.options,pt)),n.getLeftLeafHeaders=he(()=>[n.getLeftFlatHeaders()],i=>i.filter(o=>{var r;return!((r=o.subHeaders)!=null&&r.length)}),pe(n.options,pt)),n.getRightLeafHeaders=he(()=>[n.getRightFlatHeaders()],i=>i.filter(o=>{var r;return!((r=o.subHeaders)!=null&&r.length)}),pe(n.options,pt)),n.getLeafHeaders=he(()=>[n.getLeftHeaderGroups(),n.getCenterHeaderGroups(),n.getRightHeaderGroups()],(i,o,r)=>{var s,f,d,m,p,h;return[...(s=(f=i[0])==null?void 0:f.headers)!=null?s:[],...(d=(m=o[0])==null?void 0:m.headers)!=null?d:[],...(p=(h=r[0])==null?void 0:h.headers)!=null?p:[]].map(C=>C.getLeafHeaders()).flat()},pe(n.options,pt))}};function $r(n,i,o,r){var s,f;let d=0;const m=function(b,x){x===void 0&&(x=1),d=Math.max(d,x),b.filter(R=>R.getIsVisible()).forEach(R=>{var E;(E=R.columns)!=null&&E.length&&m(R.columns,x+1)},0)};m(n);let p=[];const h=(b,x)=>{const R={depth:x,id:[r,`${x}`].filter(Boolean).join("_"),headers:[]},E=[];b.forEach(M=>{const z=[...E].reverse()[0],N=M.column.depth===R.depth;let L,F=!1;if(N&&M.column.parent?L=M.column.parent:(L=M.column,F=!0),z&&(z==null?void 0:z.column)===L)z.subHeaders.push(M);else{const G=sv(o,L,{id:[r,x,L.id,M==null?void 0:M.id].filter(Boolean).join("_"),isPlaceholder:F,placeholderId:F?`${E.filter(P=>P.column===L).length}`:void 0,depth:x,index:E.length});G.subHeaders.push(M),E.push(G)}R.headers.push(M),M.headerGroup=R}),p.push(R),x>0&&h(E,x-1)},C=i.map((b,x)=>sv(o,b,{depth:d,index:x}));h(C,d-1),p.reverse();const y=b=>b.filter(R=>R.column.getIsVisible()).map(R=>{let E=0,M=0,z=[0];R.subHeaders&&R.subHeaders.length?(z=[],y(R.subHeaders).forEach(L=>{let{colSpan:F,rowSpan:G}=L;E+=F,z.push(G)})):E=1;const N=Math.min(...z);return M=M+N,R.colSpan=E,R.rowSpan=M,{colSpan:E,rowSpan:M}});return y((s=(f=p[0])==null?void 0:f.headers)!=null?s:[]),p}const fd=(n,i,o,r,s,f,d)=>{let m={id:i,index:r,original:o,depth:s,parentId:d,_valuesCache:{},_uniqueValuesCache:{},getValue:p=>{if(m._valuesCache.hasOwnProperty(p))return m._valuesCache[p];const h=n.getColumn(p);if(h!=null&&h.accessorFn)return m._valuesCache[p]=h.accessorFn(m.original,r),m._valuesCache[p]},getUniqueValues:p=>{if(m._uniqueValuesCache.hasOwnProperty(p))return m._uniqueValuesCache[p];const h=n.getColumn(p);if(h!=null&&h.accessorFn)return h.columnDef.getUniqueValues?(m._uniqueValuesCache[p]=h.columnDef.getUniqueValues(m.original,r),m._uniqueValuesCache[p]):(m._uniqueValuesCache[p]=[m.getValue(p)],m._uniqueValuesCache[p])},renderValue:p=>{var h;return(h=m.getValue(p))!=null?h:n.options.renderFallbackValue},subRows:[],getLeafRows:()=>QR(m.subRows,p=>p.subRows),getParentRow:()=>m.parentId?n.getRow(m.parentId,!0):void 0,getParentRows:()=>{let p=[],h=m;for(;;){const C=h.getParentRow();if(!C)break;p.push(C),h=C}return p.reverse()},getAllCells:he(()=>[n.getAllLeafColumns()],p=>p.map(h=>IR(n,m,h,h.id)),pe(n.options,"debugRows")),_getAllCellsByColumnId:he(()=>[m.getAllCells()],p=>p.reduce((h,C)=>(h[C.column.id]=C,h),{}),pe(n.options,"debugRows"))};for(let p=0;p<n._features.length;p++){const h=n._features[p];h==null||h.createRow==null||h.createRow(m,n)}return m},KR={createColumn:(n,i)=>{n._getFacetedRowModel=i.options.getFacetedRowModel&&i.options.getFacetedRowModel(i,n.id),n.getFacetedRowModel=()=>n._getFacetedRowModel?n._getFacetedRowModel():i.getPreFilteredRowModel(),n._getFacetedUniqueValues=i.options.getFacetedUniqueValues&&i.options.getFacetedUniqueValues(i,n.id),n.getFacetedUniqueValues=()=>n._getFacetedUniqueValues?n._getFacetedUniqueValues():new Map,n._getFacetedMinMaxValues=i.options.getFacetedMinMaxValues&&i.options.getFacetedMinMaxValues(i,n.id),n.getFacetedMinMaxValues=()=>{if(n._getFacetedMinMaxValues)return n._getFacetedMinMaxValues()}}},b0=(n,i,o)=>{var r,s;const f=o==null||(r=o.toString())==null?void 0:r.toLowerCase();return!!(!((s=n.getValue(i))==null||(s=s.toString())==null||(s=s.toLowerCase())==null)&&s.includes(f))};b0.autoRemove=n=>rn(n);const C0=(n,i,o)=>{var r;return!!(!((r=n.getValue(i))==null||(r=r.toString())==null)&&r.includes(o))};C0.autoRemove=n=>rn(n);const w0=(n,i,o)=>{var r;return((r=n.getValue(i))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(o==null?void 0:o.toLowerCase())};w0.autoRemove=n=>rn(n);const R0=(n,i,o)=>{var r;return(r=n.getValue(i))==null?void 0:r.includes(o)};R0.autoRemove=n=>rn(n);const E0=(n,i,o)=>!o.some(r=>{var s;return!((s=n.getValue(i))!=null&&s.includes(r))});E0.autoRemove=n=>rn(n)||!(n!=null&&n.length);const _0=(n,i,o)=>o.some(r=>{var s;return(s=n.getValue(i))==null?void 0:s.includes(r)});_0.autoRemove=n=>rn(n)||!(n!=null&&n.length);const M0=(n,i,o)=>n.getValue(i)===o;M0.autoRemove=n=>rn(n);const A0=(n,i,o)=>n.getValue(i)==o;A0.autoRemove=n=>rn(n);const dd=(n,i,o)=>{let[r,s]=o;const f=n.getValue(i);return f>=r&&f<=s};dd.resolveFilterValue=n=>{let[i,o]=n,r=typeof i!="number"?parseFloat(i):i,s=typeof o!="number"?parseFloat(o):o,f=i===null||Number.isNaN(r)?-1/0:r,d=o===null||Number.isNaN(s)?1/0:s;if(f>d){const m=f;f=d,d=m}return[f,d]};dd.autoRemove=n=>rn(n)||rn(n[0])&&rn(n[1]);const Gn={includesString:b0,includesStringSensitive:C0,equalsString:w0,arrIncludes:R0,arrIncludesAll:E0,arrIncludesSome:_0,equals:M0,weakEquals:A0,inNumberRange:dd};function rn(n){return n==null||n===""}const JR={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:n=>({columnFilters:[],...n}),getDefaultOptions:n=>({onColumnFiltersChange:qt("columnFilters",n),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(n,i)=>{n.getAutoFilterFn=()=>{const o=i.getCoreRowModel().flatRows[0],r=o==null?void 0:o.getValue(n.id);return typeof r=="string"?Gn.includesString:typeof r=="number"?Gn.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Gn.equals:Array.isArray(r)?Gn.arrIncludes:Gn.weakEquals},n.getFilterFn=()=>{var o,r;return vu(n.columnDef.filterFn)?n.columnDef.filterFn:n.columnDef.filterFn==="auto"?n.getAutoFilterFn():(o=(r=i.options.filterFns)==null?void 0:r[n.columnDef.filterFn])!=null?o:Gn[n.columnDef.filterFn]},n.getCanFilter=()=>{var o,r,s;return((o=n.columnDef.enableColumnFilter)!=null?o:!0)&&((r=i.options.enableColumnFilters)!=null?r:!0)&&((s=i.options.enableFilters)!=null?s:!0)&&!!n.accessorFn},n.getIsFiltered=()=>n.getFilterIndex()>-1,n.getFilterValue=()=>{var o;return(o=i.getState().columnFilters)==null||(o=o.find(r=>r.id===n.id))==null?void 0:o.value},n.getFilterIndex=()=>{var o,r;return(o=(r=i.getState().columnFilters)==null?void 0:r.findIndex(s=>s.id===n.id))!=null?o:-1},n.setFilterValue=o=>{i.setColumnFilters(r=>{const s=n.getFilterFn(),f=r==null?void 0:r.find(C=>C.id===n.id),d=Sl(o,f?f.value:void 0);if(cv(s,d,n)){var m;return(m=r==null?void 0:r.filter(C=>C.id!==n.id))!=null?m:[]}const p={id:n.id,value:d};if(f){var h;return(h=r==null?void 0:r.map(C=>C.id===n.id?p:C))!=null?h:[]}return r!=null&&r.length?[...r,p]:[p]})}},createRow:(n,i)=>{n.columnFilters={},n.columnFiltersMeta={}},createTable:n=>{n.setColumnFilters=i=>{const o=n.getAllLeafColumns(),r=s=>{var f;return(f=Sl(i,s))==null?void 0:f.filter(d=>{const m=o.find(p=>p.id===d.id);if(m){const p=m.getFilterFn();if(cv(p,d.value,m))return!1}return!0})};n.options.onColumnFiltersChange==null||n.options.onColumnFiltersChange(r)},n.resetColumnFilters=i=>{var o,r;n.setColumnFilters(i?[]:(o=(r=n.initialState)==null?void 0:r.columnFilters)!=null?o:[])},n.getPreFilteredRowModel=()=>n.getCoreRowModel(),n.getFilteredRowModel=()=>(!n._getFilteredRowModel&&n.options.getFilteredRowModel&&(n._getFilteredRowModel=n.options.getFilteredRowModel(n)),n.options.manualFiltering||!n._getFilteredRowModel?n.getPreFilteredRowModel():n._getFilteredRowModel())}};function cv(n,i,o){return(n&&n.autoRemove?n.autoRemove(i,o):!1)||typeof i>"u"||typeof i=="string"&&!i}const WR=(n,i,o)=>o.reduce((r,s)=>{const f=s.getValue(n);return r+(typeof f=="number"?f:0)},0),eE=(n,i,o)=>{let r;return o.forEach(s=>{const f=s.getValue(n);f!=null&&(r>f||r===void 0&&f>=f)&&(r=f)}),r},tE=(n,i,o)=>{let r;return o.forEach(s=>{const f=s.getValue(n);f!=null&&(r<f||r===void 0&&f>=f)&&(r=f)}),r},nE=(n,i,o)=>{let r,s;return o.forEach(f=>{const d=f.getValue(n);d!=null&&(r===void 0?d>=d&&(r=s=d):(r>d&&(r=d),s<d&&(s=d)))}),[r,s]},lE=(n,i)=>{let o=0,r=0;if(i.forEach(s=>{let f=s.getValue(n);f!=null&&(f=+f)>=f&&(++o,r+=f)}),o)return r/o},aE=(n,i)=>{if(!i.length)return;const o=i.map(f=>f.getValue(n));if(!XR(o))return;if(o.length===1)return o[0];const r=Math.floor(o.length/2),s=o.sort((f,d)=>f-d);return o.length%2!==0?s[r]:(s[r-1]+s[r])/2},iE=(n,i)=>Array.from(new Set(i.map(o=>o.getValue(n))).values()),oE=(n,i)=>new Set(i.map(o=>o.getValue(n))).size,rE=(n,i)=>i.length,ef={sum:WR,min:eE,max:tE,extent:nE,mean:lE,median:aE,unique:iE,uniqueCount:oE,count:rE},uE={getDefaultColumnDef:()=>({aggregatedCell:n=>{var i,o;return(i=(o=n.getValue())==null||o.toString==null?void 0:o.toString())!=null?i:null},aggregationFn:"auto"}),getInitialState:n=>({grouping:[],...n}),getDefaultOptions:n=>({onGroupingChange:qt("grouping",n),groupedColumnMode:"reorder"}),createColumn:(n,i)=>{n.toggleGrouping=()=>{i.setGrouping(o=>o!=null&&o.includes(n.id)?o.filter(r=>r!==n.id):[...o??[],n.id])},n.getCanGroup=()=>{var o,r;return((o=n.columnDef.enableGrouping)!=null?o:!0)&&((r=i.options.enableGrouping)!=null?r:!0)&&(!!n.accessorFn||!!n.columnDef.getGroupingValue)},n.getIsGrouped=()=>{var o;return(o=i.getState().grouping)==null?void 0:o.includes(n.id)},n.getGroupedIndex=()=>{var o;return(o=i.getState().grouping)==null?void 0:o.indexOf(n.id)},n.getToggleGroupingHandler=()=>{const o=n.getCanGroup();return()=>{o&&n.toggleGrouping()}},n.getAutoAggregationFn=()=>{const o=i.getCoreRowModel().flatRows[0],r=o==null?void 0:o.getValue(n.id);if(typeof r=="number")return ef.sum;if(Object.prototype.toString.call(r)==="[object Date]")return ef.extent},n.getAggregationFn=()=>{var o,r;if(!n)throw new Error;return vu(n.columnDef.aggregationFn)?n.columnDef.aggregationFn:n.columnDef.aggregationFn==="auto"?n.getAutoAggregationFn():(o=(r=i.options.aggregationFns)==null?void 0:r[n.columnDef.aggregationFn])!=null?o:ef[n.columnDef.aggregationFn]}},createTable:n=>{n.setGrouping=i=>n.options.onGroupingChange==null?void 0:n.options.onGroupingChange(i),n.resetGrouping=i=>{var o,r;n.setGrouping(i?[]:(o=(r=n.initialState)==null?void 0:r.grouping)!=null?o:[])},n.getPreGroupedRowModel=()=>n.getFilteredRowModel(),n.getGroupedRowModel=()=>(!n._getGroupedRowModel&&n.options.getGroupedRowModel&&(n._getGroupedRowModel=n.options.getGroupedRowModel(n)),n.options.manualGrouping||!n._getGroupedRowModel?n.getPreGroupedRowModel():n._getGroupedRowModel())},createRow:(n,i)=>{n.getIsGrouped=()=>!!n.groupingColumnId,n.getGroupingValue=o=>{if(n._groupingValuesCache.hasOwnProperty(o))return n._groupingValuesCache[o];const r=i.getColumn(o);return r!=null&&r.columnDef.getGroupingValue?(n._groupingValuesCache[o]=r.columnDef.getGroupingValue(n.original),n._groupingValuesCache[o]):n.getValue(o)},n._groupingValuesCache={}},createCell:(n,i,o,r)=>{n.getIsGrouped=()=>i.getIsGrouped()&&i.id===o.groupingColumnId,n.getIsPlaceholder=()=>!n.getIsGrouped()&&i.getIsGrouped(),n.getIsAggregated=()=>{var s;return!n.getIsGrouped()&&!n.getIsPlaceholder()&&!!((s=o.subRows)!=null&&s.length)}}};function sE(n,i,o){if(!(i!=null&&i.length)||!o)return n;const r=n.filter(f=>!i.includes(f.id));return o==="remove"?r:[...i.map(f=>n.find(d=>d.id===f)).filter(Boolean),...r]}const cE={getInitialState:n=>({columnOrder:[],...n}),getDefaultOptions:n=>({onColumnOrderChange:qt("columnOrder",n)}),createColumn:(n,i)=>{n.getIndex=he(o=>[to(i,o)],o=>o.findIndex(r=>r.id===n.id),pe(i.options,"debugColumns")),n.getIsFirstColumn=o=>{var r;return((r=to(i,o)[0])==null?void 0:r.id)===n.id},n.getIsLastColumn=o=>{var r;const s=to(i,o);return((r=s[s.length-1])==null?void 0:r.id)===n.id}},createTable:n=>{n.setColumnOrder=i=>n.options.onColumnOrderChange==null?void 0:n.options.onColumnOrderChange(i),n.resetColumnOrder=i=>{var o;n.setColumnOrder(i?[]:(o=n.initialState.columnOrder)!=null?o:[])},n._getOrderColumnsFn=he(()=>[n.getState().columnOrder,n.getState().grouping,n.options.groupedColumnMode],(i,o,r)=>s=>{let f=[];if(!(i!=null&&i.length))f=s;else{const d=[...i],m=[...s];for(;m.length&&d.length;){const p=d.shift(),h=m.findIndex(C=>C.id===p);h>-1&&f.push(m.splice(h,1)[0])}f=[...f,...m]}return sE(f,o,r)},pe(n.options,"debugTable"))}},tf=()=>({left:[],right:[]}),fE={getInitialState:n=>({columnPinning:tf(),...n}),getDefaultOptions:n=>({onColumnPinningChange:qt("columnPinning",n)}),createColumn:(n,i)=>{n.pin=o=>{const r=n.getLeafColumns().map(s=>s.id).filter(Boolean);i.setColumnPinning(s=>{var f,d;if(o==="right"){var m,p;return{left:((m=s==null?void 0:s.left)!=null?m:[]).filter(y=>!(r!=null&&r.includes(y))),right:[...((p=s==null?void 0:s.right)!=null?p:[]).filter(y=>!(r!=null&&r.includes(y))),...r]}}if(o==="left"){var h,C;return{left:[...((h=s==null?void 0:s.left)!=null?h:[]).filter(y=>!(r!=null&&r.includes(y))),...r],right:((C=s==null?void 0:s.right)!=null?C:[]).filter(y=>!(r!=null&&r.includes(y)))}}return{left:((f=s==null?void 0:s.left)!=null?f:[]).filter(y=>!(r!=null&&r.includes(y))),right:((d=s==null?void 0:s.right)!=null?d:[]).filter(y=>!(r!=null&&r.includes(y)))}})},n.getCanPin=()=>n.getLeafColumns().some(r=>{var s,f,d;return((s=r.columnDef.enablePinning)!=null?s:!0)&&((f=(d=i.options.enableColumnPinning)!=null?d:i.options.enablePinning)!=null?f:!0)}),n.getIsPinned=()=>{const o=n.getLeafColumns().map(m=>m.id),{left:r,right:s}=i.getState().columnPinning,f=o.some(m=>r==null?void 0:r.includes(m)),d=o.some(m=>s==null?void 0:s.includes(m));return f?"left":d?"right":!1},n.getPinnedIndex=()=>{var o,r;const s=n.getIsPinned();return s?(o=(r=i.getState().columnPinning)==null||(r=r[s])==null?void 0:r.indexOf(n.id))!=null?o:-1:0}},createRow:(n,i)=>{n.getCenterVisibleCells=he(()=>[n._getAllVisibleCells(),i.getState().columnPinning.left,i.getState().columnPinning.right],(o,r,s)=>{const f=[...r??[],...s??[]];return o.filter(d=>!f.includes(d.column.id))},pe(i.options,"debugRows")),n.getLeftVisibleCells=he(()=>[n._getAllVisibleCells(),i.getState().columnPinning.left],(o,r)=>(r??[]).map(f=>o.find(d=>d.column.id===f)).filter(Boolean).map(f=>({...f,position:"left"})),pe(i.options,"debugRows")),n.getRightVisibleCells=he(()=>[n._getAllVisibleCells(),i.getState().columnPinning.right],(o,r)=>(r??[]).map(f=>o.find(d=>d.column.id===f)).filter(Boolean).map(f=>({...f,position:"right"})),pe(i.options,"debugRows"))},createTable:n=>{n.setColumnPinning=i=>n.options.onColumnPinningChange==null?void 0:n.options.onColumnPinningChange(i),n.resetColumnPinning=i=>{var o,r;return n.setColumnPinning(i?tf():(o=(r=n.initialState)==null?void 0:r.columnPinning)!=null?o:tf())},n.getIsSomeColumnsPinned=i=>{var o;const r=n.getState().columnPinning;if(!i){var s,f;return!!((s=r.left)!=null&&s.length||(f=r.right)!=null&&f.length)}return!!((o=r[i])!=null&&o.length)},n.getLeftLeafColumns=he(()=>[n.getAllLeafColumns(),n.getState().columnPinning.left],(i,o)=>(o??[]).map(r=>i.find(s=>s.id===r)).filter(Boolean),pe(n.options,"debugColumns")),n.getRightLeafColumns=he(()=>[n.getAllLeafColumns(),n.getState().columnPinning.right],(i,o)=>(o??[]).map(r=>i.find(s=>s.id===r)).filter(Boolean),pe(n.options,"debugColumns")),n.getCenterLeafColumns=he(()=>[n.getAllLeafColumns(),n.getState().columnPinning.left,n.getState().columnPinning.right],(i,o,r)=>{const s=[...o??[],...r??[]];return i.filter(f=>!s.includes(f.id))},pe(n.options,"debugColumns"))}};function dE(n){return n||(typeof document<"u"?document:null)}const Yr={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},nf=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),gE={getDefaultColumnDef:()=>Yr,getInitialState:n=>({columnSizing:{},columnSizingInfo:nf(),...n}),getDefaultOptions:n=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:qt("columnSizing",n),onColumnSizingInfoChange:qt("columnSizingInfo",n)}),createColumn:(n,i)=>{n.getSize=()=>{var o,r,s;const f=i.getState().columnSizing[n.id];return Math.min(Math.max((o=n.columnDef.minSize)!=null?o:Yr.minSize,(r=f??n.columnDef.size)!=null?r:Yr.size),(s=n.columnDef.maxSize)!=null?s:Yr.maxSize)},n.getStart=he(o=>[o,to(i,o),i.getState().columnSizing],(o,r)=>r.slice(0,n.getIndex(o)).reduce((s,f)=>s+f.getSize(),0),pe(i.options,"debugColumns")),n.getAfter=he(o=>[o,to(i,o),i.getState().columnSizing],(o,r)=>r.slice(n.getIndex(o)+1).reduce((s,f)=>s+f.getSize(),0),pe(i.options,"debugColumns")),n.resetSize=()=>{i.setColumnSizing(o=>{let{[n.id]:r,...s}=o;return s})},n.getCanResize=()=>{var o,r;return((o=n.columnDef.enableResizing)!=null?o:!0)&&((r=i.options.enableColumnResizing)!=null?r:!0)},n.getIsResizing=()=>i.getState().columnSizingInfo.isResizingColumn===n.id},createHeader:(n,i)=>{n.getSize=()=>{let o=0;const r=s=>{if(s.subHeaders.length)s.subHeaders.forEach(r);else{var f;o+=(f=s.column.getSize())!=null?f:0}};return r(n),o},n.getStart=()=>{if(n.index>0){const o=n.headerGroup.headers[n.index-1];return o.getStart()+o.getSize()}return 0},n.getResizeHandler=o=>{const r=i.getColumn(n.column.id),s=r==null?void 0:r.getCanResize();return f=>{if(!r||!s||(f.persist==null||f.persist(),lf(f)&&f.touches&&f.touches.length>1))return;const d=n.getSize(),m=n?n.getLeafHeaders().map(z=>[z.column.id,z.column.getSize()]):[[r.id,r.getSize()]],p=lf(f)?Math.round(f.touches[0].clientX):f.clientX,h={},C=(z,N)=>{typeof N=="number"&&(i.setColumnSizingInfo(L=>{var F,G;const P=i.options.columnResizeDirection==="rtl"?-1:1,Q=(N-((F=L==null?void 0:L.startOffset)!=null?F:0))*P,Y=Math.max(Q/((G=L==null?void 0:L.startSize)!=null?G:0),-.999999);return L.columnSizingStart.forEach(W=>{let[se,ce]=W;h[se]=Math.round(Math.max(ce+ce*Y,0)*100)/100}),{...L,deltaOffset:Q,deltaPercentage:Y}}),(i.options.columnResizeMode==="onChange"||z==="end")&&i.setColumnSizing(L=>({...L,...h})))},y=z=>C("move",z),b=z=>{C("end",z),i.setColumnSizingInfo(N=>({...N,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},x=dE(o),R={moveHandler:z=>y(z.clientX),upHandler:z=>{x==null||x.removeEventListener("mousemove",R.moveHandler),x==null||x.removeEventListener("mouseup",R.upHandler),b(z.clientX)}},E={moveHandler:z=>(z.cancelable&&(z.preventDefault(),z.stopPropagation()),y(z.touches[0].clientX),!1),upHandler:z=>{var N;x==null||x.removeEventListener("touchmove",E.moveHandler),x==null||x.removeEventListener("touchend",E.upHandler),z.cancelable&&(z.preventDefault(),z.stopPropagation()),b((N=z.touches[0])==null?void 0:N.clientX)}},M=mE()?{passive:!1}:!1;lf(f)?(x==null||x.addEventListener("touchmove",E.moveHandler,M),x==null||x.addEventListener("touchend",E.upHandler,M)):(x==null||x.addEventListener("mousemove",R.moveHandler,M),x==null||x.addEventListener("mouseup",R.upHandler,M)),i.setColumnSizingInfo(z=>({...z,startOffset:p,startSize:d,deltaOffset:0,deltaPercentage:0,columnSizingStart:m,isResizingColumn:r.id}))}}},createTable:n=>{n.setColumnSizing=i=>n.options.onColumnSizingChange==null?void 0:n.options.onColumnSizingChange(i),n.setColumnSizingInfo=i=>n.options.onColumnSizingInfoChange==null?void 0:n.options.onColumnSizingInfoChange(i),n.resetColumnSizing=i=>{var o;n.setColumnSizing(i?{}:(o=n.initialState.columnSizing)!=null?o:{})},n.resetHeaderSizeInfo=i=>{var o;n.setColumnSizingInfo(i?nf():(o=n.initialState.columnSizingInfo)!=null?o:nf())},n.getTotalSize=()=>{var i,o;return(i=(o=n.getHeaderGroups()[0])==null?void 0:o.headers.reduce((r,s)=>r+s.getSize(),0))!=null?i:0},n.getLeftTotalSize=()=>{var i,o;return(i=(o=n.getLeftHeaderGroups()[0])==null?void 0:o.headers.reduce((r,s)=>r+s.getSize(),0))!=null?i:0},n.getCenterTotalSize=()=>{var i,o;return(i=(o=n.getCenterHeaderGroups()[0])==null?void 0:o.headers.reduce((r,s)=>r+s.getSize(),0))!=null?i:0},n.getRightTotalSize=()=>{var i,o;return(i=(o=n.getRightHeaderGroups()[0])==null?void 0:o.headers.reduce((r,s)=>r+s.getSize(),0))!=null?i:0}}};let Xr=null;function mE(){if(typeof Xr=="boolean")return Xr;let n=!1;try{const i={get passive(){return n=!0,!1}},o=()=>{};window.addEventListener("test",o,i),window.removeEventListener("test",o)}catch{n=!1}return Xr=n,Xr}function lf(n){return n.type==="touchstart"}const hE={getInitialState:n=>({columnVisibility:{},...n}),getDefaultOptions:n=>({onColumnVisibilityChange:qt("columnVisibility",n)}),createColumn:(n,i)=>{n.toggleVisibility=o=>{n.getCanHide()&&i.setColumnVisibility(r=>({...r,[n.id]:o??!n.getIsVisible()}))},n.getIsVisible=()=>{var o,r;const s=n.columns;return(o=s.length?s.some(f=>f.getIsVisible()):(r=i.getState().columnVisibility)==null?void 0:r[n.id])!=null?o:!0},n.getCanHide=()=>{var o,r;return((o=n.columnDef.enableHiding)!=null?o:!0)&&((r=i.options.enableHiding)!=null?r:!0)},n.getToggleVisibilityHandler=()=>o=>{n.toggleVisibility==null||n.toggleVisibility(o.target.checked)}},createRow:(n,i)=>{n._getAllVisibleCells=he(()=>[n.getAllCells(),i.getState().columnVisibility],o=>o.filter(r=>r.column.getIsVisible()),pe(i.options,"debugRows")),n.getVisibleCells=he(()=>[n.getLeftVisibleCells(),n.getCenterVisibleCells(),n.getRightVisibleCells()],(o,r,s)=>[...o,...r,...s],pe(i.options,"debugRows"))},createTable:n=>{const i=(o,r)=>he(()=>[r(),r().filter(s=>s.getIsVisible()).map(s=>s.id).join("_")],s=>s.filter(f=>f.getIsVisible==null?void 0:f.getIsVisible()),pe(n.options,"debugColumns"));n.getVisibleFlatColumns=i("getVisibleFlatColumns",()=>n.getAllFlatColumns()),n.getVisibleLeafColumns=i("getVisibleLeafColumns",()=>n.getAllLeafColumns()),n.getLeftVisibleLeafColumns=i("getLeftVisibleLeafColumns",()=>n.getLeftLeafColumns()),n.getRightVisibleLeafColumns=i("getRightVisibleLeafColumns",()=>n.getRightLeafColumns()),n.getCenterVisibleLeafColumns=i("getCenterVisibleLeafColumns",()=>n.getCenterLeafColumns()),n.setColumnVisibility=o=>n.options.onColumnVisibilityChange==null?void 0:n.options.onColumnVisibilityChange(o),n.resetColumnVisibility=o=>{var r;n.setColumnVisibility(o?{}:(r=n.initialState.columnVisibility)!=null?r:{})},n.toggleAllColumnsVisible=o=>{var r;o=(r=o)!=null?r:!n.getIsAllColumnsVisible(),n.setColumnVisibility(n.getAllLeafColumns().reduce((s,f)=>({...s,[f.id]:o||!(f.getCanHide!=null&&f.getCanHide())}),{}))},n.getIsAllColumnsVisible=()=>!n.getAllLeafColumns().some(o=>!(o.getIsVisible!=null&&o.getIsVisible())),n.getIsSomeColumnsVisible=()=>n.getAllLeafColumns().some(o=>o.getIsVisible==null?void 0:o.getIsVisible()),n.getToggleAllColumnsVisibilityHandler=()=>o=>{var r;n.toggleAllColumnsVisible((r=o.target)==null?void 0:r.checked)}}};function to(n,i){return i?i==="center"?n.getCenterVisibleLeafColumns():i==="left"?n.getLeftVisibleLeafColumns():n.getRightVisibleLeafColumns():n.getVisibleLeafColumns()}const pE={createTable:n=>{n._getGlobalFacetedRowModel=n.options.getFacetedRowModel&&n.options.getFacetedRowModel(n,"__global__"),n.getGlobalFacetedRowModel=()=>n.options.manualFiltering||!n._getGlobalFacetedRowModel?n.getPreFilteredRowModel():n._getGlobalFacetedRowModel(),n._getGlobalFacetedUniqueValues=n.options.getFacetedUniqueValues&&n.options.getFacetedUniqueValues(n,"__global__"),n.getGlobalFacetedUniqueValues=()=>n._getGlobalFacetedUniqueValues?n._getGlobalFacetedUniqueValues():new Map,n._getGlobalFacetedMinMaxValues=n.options.getFacetedMinMaxValues&&n.options.getFacetedMinMaxValues(n,"__global__"),n.getGlobalFacetedMinMaxValues=()=>{if(n._getGlobalFacetedMinMaxValues)return n._getGlobalFacetedMinMaxValues()}}},vE={getInitialState:n=>({globalFilter:void 0,...n}),getDefaultOptions:n=>({onGlobalFilterChange:qt("globalFilter",n),globalFilterFn:"auto",getColumnCanGlobalFilter:i=>{var o;const r=(o=n.getCoreRowModel().flatRows[0])==null||(o=o._getAllCellsByColumnId()[i.id])==null?void 0:o.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(n,i)=>{n.getCanGlobalFilter=()=>{var o,r,s,f;return((o=n.columnDef.enableGlobalFilter)!=null?o:!0)&&((r=i.options.enableGlobalFilter)!=null?r:!0)&&((s=i.options.enableFilters)!=null?s:!0)&&((f=i.options.getColumnCanGlobalFilter==null?void 0:i.options.getColumnCanGlobalFilter(n))!=null?f:!0)&&!!n.accessorFn}},createTable:n=>{n.getGlobalAutoFilterFn=()=>Gn.includesString,n.getGlobalFilterFn=()=>{var i,o;const{globalFilterFn:r}=n.options;return vu(r)?r:r==="auto"?n.getGlobalAutoFilterFn():(i=(o=n.options.filterFns)==null?void 0:o[r])!=null?i:Gn[r]},n.setGlobalFilter=i=>{n.options.onGlobalFilterChange==null||n.options.onGlobalFilterChange(i)},n.resetGlobalFilter=i=>{n.setGlobalFilter(i?void 0:n.initialState.globalFilter)}}},yE={getInitialState:n=>({expanded:{},...n}),getDefaultOptions:n=>({onExpandedChange:qt("expanded",n),paginateExpandedRows:!0}),createTable:n=>{let i=!1,o=!1;n._autoResetExpanded=()=>{var r,s;if(!i){n._queue(()=>{i=!0});return}if((r=(s=n.options.autoResetAll)!=null?s:n.options.autoResetExpanded)!=null?r:!n.options.manualExpanding){if(o)return;o=!0,n._queue(()=>{n.resetExpanded(),o=!1})}},n.setExpanded=r=>n.options.onExpandedChange==null?void 0:n.options.onExpandedChange(r),n.toggleAllRowsExpanded=r=>{r??!n.getIsAllRowsExpanded()?n.setExpanded(!0):n.setExpanded({})},n.resetExpanded=r=>{var s,f;n.setExpanded(r?{}:(s=(f=n.initialState)==null?void 0:f.expanded)!=null?s:{})},n.getCanSomeRowsExpand=()=>n.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),n.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),n.toggleAllRowsExpanded()},n.getIsSomeRowsExpanded=()=>{const r=n.getState().expanded;return r===!0||Object.values(r).some(Boolean)},n.getIsAllRowsExpanded=()=>{const r=n.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||n.getRowModel().flatRows.some(s=>!s.getIsExpanded()))},n.getExpandedDepth=()=>{let r=0;return(n.getState().expanded===!0?Object.keys(n.getRowModel().rowsById):Object.keys(n.getState().expanded)).forEach(f=>{const d=f.split(".");r=Math.max(r,d.length)}),r},n.getPreExpandedRowModel=()=>n.getSortedRowModel(),n.getExpandedRowModel=()=>(!n._getExpandedRowModel&&n.options.getExpandedRowModel&&(n._getExpandedRowModel=n.options.getExpandedRowModel(n)),n.options.manualExpanding||!n._getExpandedRowModel?n.getPreExpandedRowModel():n._getExpandedRowModel())},createRow:(n,i)=>{n.toggleExpanded=o=>{i.setExpanded(r=>{var s;const f=r===!0?!0:!!(r!=null&&r[n.id]);let d={};if(r===!0?Object.keys(i.getRowModel().rowsById).forEach(m=>{d[m]=!0}):d=r,o=(s=o)!=null?s:!f,!f&&o)return{...d,[n.id]:!0};if(f&&!o){const{[n.id]:m,...p}=d;return p}return r})},n.getIsExpanded=()=>{var o;const r=i.getState().expanded;return!!((o=i.options.getIsRowExpanded==null?void 0:i.options.getIsRowExpanded(n))!=null?o:r===!0||r!=null&&r[n.id])},n.getCanExpand=()=>{var o,r,s;return(o=i.options.getRowCanExpand==null?void 0:i.options.getRowCanExpand(n))!=null?o:((r=i.options.enableExpanding)!=null?r:!0)&&!!((s=n.subRows)!=null&&s.length)},n.getIsAllParentsExpanded=()=>{let o=!0,r=n;for(;o&&r.parentId;)r=i.getRow(r.parentId,!0),o=r.getIsExpanded();return o},n.getToggleExpandedHandler=()=>{const o=n.getCanExpand();return()=>{o&&n.toggleExpanded()}}}},Of=0,Tf=10,af=()=>({pageIndex:Of,pageSize:Tf}),xE={getInitialState:n=>({...n,pagination:{...af(),...n==null?void 0:n.pagination}}),getDefaultOptions:n=>({onPaginationChange:qt("pagination",n)}),createTable:n=>{let i=!1,o=!1;n._autoResetPageIndex=()=>{var r,s;if(!i){n._queue(()=>{i=!0});return}if((r=(s=n.options.autoResetAll)!=null?s:n.options.autoResetPageIndex)!=null?r:!n.options.manualPagination){if(o)return;o=!0,n._queue(()=>{n.resetPageIndex(),o=!1})}},n.setPagination=r=>{const s=f=>Sl(r,f);return n.options.onPaginationChange==null?void 0:n.options.onPaginationChange(s)},n.resetPagination=r=>{var s;n.setPagination(r?af():(s=n.initialState.pagination)!=null?s:af())},n.setPageIndex=r=>{n.setPagination(s=>{let f=Sl(r,s.pageIndex);const d=typeof n.options.pageCount>"u"||n.options.pageCount===-1?Number.MAX_SAFE_INTEGER:n.options.pageCount-1;return f=Math.max(0,Math.min(f,d)),{...s,pageIndex:f}})},n.resetPageIndex=r=>{var s,f;n.setPageIndex(r?Of:(s=(f=n.initialState)==null||(f=f.pagination)==null?void 0:f.pageIndex)!=null?s:Of)},n.resetPageSize=r=>{var s,f;n.setPageSize(r?Tf:(s=(f=n.initialState)==null||(f=f.pagination)==null?void 0:f.pageSize)!=null?s:Tf)},n.setPageSize=r=>{n.setPagination(s=>{const f=Math.max(1,Sl(r,s.pageSize)),d=s.pageSize*s.pageIndex,m=Math.floor(d/f);return{...s,pageIndex:m,pageSize:f}})},n.setPageCount=r=>n.setPagination(s=>{var f;let d=Sl(r,(f=n.options.pageCount)!=null?f:-1);return typeof d=="number"&&(d=Math.max(-1,d)),{...s,pageCount:d}}),n.getPageOptions=he(()=>[n.getPageCount()],r=>{let s=[];return r&&r>0&&(s=[...new Array(r)].fill(null).map((f,d)=>d)),s},pe(n.options,"debugTable")),n.getCanPreviousPage=()=>n.getState().pagination.pageIndex>0,n.getCanNextPage=()=>{const{pageIndex:r}=n.getState().pagination,s=n.getPageCount();return s===-1?!0:s===0?!1:r<s-1},n.previousPage=()=>n.setPageIndex(r=>r-1),n.nextPage=()=>n.setPageIndex(r=>r+1),n.firstPage=()=>n.setPageIndex(0),n.lastPage=()=>n.setPageIndex(n.getPageCount()-1),n.getPrePaginationRowModel=()=>n.getExpandedRowModel(),n.getPaginationRowModel=()=>(!n._getPaginationRowModel&&n.options.getPaginationRowModel&&(n._getPaginationRowModel=n.options.getPaginationRowModel(n)),n.options.manualPagination||!n._getPaginationRowModel?n.getPrePaginationRowModel():n._getPaginationRowModel()),n.getPageCount=()=>{var r;return(r=n.options.pageCount)!=null?r:Math.ceil(n.getRowCount()/n.getState().pagination.pageSize)},n.getRowCount=()=>{var r;return(r=n.options.rowCount)!=null?r:n.getPrePaginationRowModel().rows.length}}},of=()=>({top:[],bottom:[]}),SE={getInitialState:n=>({rowPinning:of(),...n}),getDefaultOptions:n=>({onRowPinningChange:qt("rowPinning",n)}),createRow:(n,i)=>{n.pin=(o,r,s)=>{const f=r?n.getLeafRows().map(p=>{let{id:h}=p;return h}):[],d=s?n.getParentRows().map(p=>{let{id:h}=p;return h}):[],m=new Set([...d,n.id,...f]);i.setRowPinning(p=>{var h,C;if(o==="bottom"){var y,b;return{top:((y=p==null?void 0:p.top)!=null?y:[]).filter(E=>!(m!=null&&m.has(E))),bottom:[...((b=p==null?void 0:p.bottom)!=null?b:[]).filter(E=>!(m!=null&&m.has(E))),...Array.from(m)]}}if(o==="top"){var x,R;return{top:[...((x=p==null?void 0:p.top)!=null?x:[]).filter(E=>!(m!=null&&m.has(E))),...Array.from(m)],bottom:((R=p==null?void 0:p.bottom)!=null?R:[]).filter(E=>!(m!=null&&m.has(E)))}}return{top:((h=p==null?void 0:p.top)!=null?h:[]).filter(E=>!(m!=null&&m.has(E))),bottom:((C=p==null?void 0:p.bottom)!=null?C:[]).filter(E=>!(m!=null&&m.has(E)))}})},n.getCanPin=()=>{var o;const{enableRowPinning:r,enablePinning:s}=i.options;return typeof r=="function"?r(n):(o=r??s)!=null?o:!0},n.getIsPinned=()=>{const o=[n.id],{top:r,bottom:s}=i.getState().rowPinning,f=o.some(m=>r==null?void 0:r.includes(m)),d=o.some(m=>s==null?void 0:s.includes(m));return f?"top":d?"bottom":!1},n.getPinnedIndex=()=>{var o,r;const s=n.getIsPinned();if(!s)return-1;const f=(o=s==="top"?i.getTopRows():i.getBottomRows())==null?void 0:o.map(d=>{let{id:m}=d;return m});return(r=f==null?void 0:f.indexOf(n.id))!=null?r:-1}},createTable:n=>{n.setRowPinning=i=>n.options.onRowPinningChange==null?void 0:n.options.onRowPinningChange(i),n.resetRowPinning=i=>{var o,r;return n.setRowPinning(i?of():(o=(r=n.initialState)==null?void 0:r.rowPinning)!=null?o:of())},n.getIsSomeRowsPinned=i=>{var o;const r=n.getState().rowPinning;if(!i){var s,f;return!!((s=r.top)!=null&&s.length||(f=r.bottom)!=null&&f.length)}return!!((o=r[i])!=null&&o.length)},n._getPinnedRows=(i,o,r)=>{var s;return((s=n.options.keepPinnedRows)==null||s?(o??[]).map(d=>{const m=n.getRow(d,!0);return m.getIsAllParentsExpanded()?m:null}):(o??[]).map(d=>i.find(m=>m.id===d))).filter(Boolean).map(d=>({...d,position:r}))},n.getTopRows=he(()=>[n.getRowModel().rows,n.getState().rowPinning.top],(i,o)=>n._getPinnedRows(i,o,"top"),pe(n.options,"debugRows")),n.getBottomRows=he(()=>[n.getRowModel().rows,n.getState().rowPinning.bottom],(i,o)=>n._getPinnedRows(i,o,"bottom"),pe(n.options,"debugRows")),n.getCenterRows=he(()=>[n.getRowModel().rows,n.getState().rowPinning.top,n.getState().rowPinning.bottom],(i,o,r)=>{const s=new Set([...o??[],...r??[]]);return i.filter(f=>!s.has(f.id))},pe(n.options,"debugRows"))}},bE={getInitialState:n=>({rowSelection:{},...n}),getDefaultOptions:n=>({onRowSelectionChange:qt("rowSelection",n),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:n=>{n.setRowSelection=i=>n.options.onRowSelectionChange==null?void 0:n.options.onRowSelectionChange(i),n.resetRowSelection=i=>{var o;return n.setRowSelection(i?{}:(o=n.initialState.rowSelection)!=null?o:{})},n.toggleAllRowsSelected=i=>{n.setRowSelection(o=>{i=typeof i<"u"?i:!n.getIsAllRowsSelected();const r={...o},s=n.getPreGroupedRowModel().flatRows;return i?s.forEach(f=>{f.getCanSelect()&&(r[f.id]=!0)}):s.forEach(f=>{delete r[f.id]}),r})},n.toggleAllPageRowsSelected=i=>n.setRowSelection(o=>{const r=typeof i<"u"?i:!n.getIsAllPageRowsSelected(),s={...o};return n.getRowModel().rows.forEach(f=>{Df(s,f.id,r,!0,n)}),s}),n.getPreSelectedRowModel=()=>n.getCoreRowModel(),n.getSelectedRowModel=he(()=>[n.getState().rowSelection,n.getCoreRowModel()],(i,o)=>Object.keys(i).length?rf(n,o):{rows:[],flatRows:[],rowsById:{}},pe(n.options,"debugTable")),n.getFilteredSelectedRowModel=he(()=>[n.getState().rowSelection,n.getFilteredRowModel()],(i,o)=>Object.keys(i).length?rf(n,o):{rows:[],flatRows:[],rowsById:{}},pe(n.options,"debugTable")),n.getGroupedSelectedRowModel=he(()=>[n.getState().rowSelection,n.getSortedRowModel()],(i,o)=>Object.keys(i).length?rf(n,o):{rows:[],flatRows:[],rowsById:{}},pe(n.options,"debugTable")),n.getIsAllRowsSelected=()=>{const i=n.getFilteredRowModel().flatRows,{rowSelection:o}=n.getState();let r=!!(i.length&&Object.keys(o).length);return r&&i.some(s=>s.getCanSelect()&&!o[s.id])&&(r=!1),r},n.getIsAllPageRowsSelected=()=>{const i=n.getPaginationRowModel().flatRows.filter(s=>s.getCanSelect()),{rowSelection:o}=n.getState();let r=!!i.length;return r&&i.some(s=>!o[s.id])&&(r=!1),r},n.getIsSomeRowsSelected=()=>{var i;const o=Object.keys((i=n.getState().rowSelection)!=null?i:{}).length;return o>0&&o<n.getFilteredRowModel().flatRows.length},n.getIsSomePageRowsSelected=()=>{const i=n.getPaginationRowModel().flatRows;return n.getIsAllPageRowsSelected()?!1:i.filter(o=>o.getCanSelect()).some(o=>o.getIsSelected()||o.getIsSomeSelected())},n.getToggleAllRowsSelectedHandler=()=>i=>{n.toggleAllRowsSelected(i.target.checked)},n.getToggleAllPageRowsSelectedHandler=()=>i=>{n.toggleAllPageRowsSelected(i.target.checked)}},createRow:(n,i)=>{n.toggleSelected=(o,r)=>{const s=n.getIsSelected();i.setRowSelection(f=>{var d;if(o=typeof o<"u"?o:!s,n.getCanSelect()&&s===o)return f;const m={...f};return Df(m,n.id,o,(d=r==null?void 0:r.selectChildren)!=null?d:!0,i),m})},n.getIsSelected=()=>{const{rowSelection:o}=i.getState();return gd(n,o)},n.getIsSomeSelected=()=>{const{rowSelection:o}=i.getState();return zf(n,o)==="some"},n.getIsAllSubRowsSelected=()=>{const{rowSelection:o}=i.getState();return zf(n,o)==="all"},n.getCanSelect=()=>{var o;return typeof i.options.enableRowSelection=="function"?i.options.enableRowSelection(n):(o=i.options.enableRowSelection)!=null?o:!0},n.getCanSelectSubRows=()=>{var o;return typeof i.options.enableSubRowSelection=="function"?i.options.enableSubRowSelection(n):(o=i.options.enableSubRowSelection)!=null?o:!0},n.getCanMultiSelect=()=>{var o;return typeof i.options.enableMultiRowSelection=="function"?i.options.enableMultiRowSelection(n):(o=i.options.enableMultiRowSelection)!=null?o:!0},n.getToggleSelectedHandler=()=>{const o=n.getCanSelect();return r=>{var s;o&&n.toggleSelected((s=r.target)==null?void 0:s.checked)}}}},Df=(n,i,o,r,s)=>{var f;const d=s.getRow(i,!0);o?(d.getCanMultiSelect()||Object.keys(n).forEach(m=>delete n[m]),d.getCanSelect()&&(n[i]=!0)):delete n[i],r&&(f=d.subRows)!=null&&f.length&&d.getCanSelectSubRows()&&d.subRows.forEach(m=>Df(n,m.id,o,r,s))};function rf(n,i){const o=n.getState().rowSelection,r=[],s={},f=function(d,m){return d.map(p=>{var h;const C=gd(p,o);if(C&&(r.push(p),s[p.id]=p),(h=p.subRows)!=null&&h.length&&(p={...p,subRows:f(p.subRows)}),C)return p}).filter(Boolean)};return{rows:f(i.rows),flatRows:r,rowsById:s}}function gd(n,i){var o;return(o=i[n.id])!=null?o:!1}function zf(n,i,o){var r;if(!((r=n.subRows)!=null&&r.length))return!1;let s=!0,f=!1;return n.subRows.forEach(d=>{if(!(f&&!s)&&(d.getCanSelect()&&(gd(d,i)?f=!0:s=!1),d.subRows&&d.subRows.length)){const m=zf(d,i);m==="all"?f=!0:(m==="some"&&(f=!0),s=!1)}}),s?"all":f?"some":!1}const jf=/([0-9]+)/gm,CE=(n,i,o)=>O0(_l(n.getValue(o)).toLowerCase(),_l(i.getValue(o)).toLowerCase()),wE=(n,i,o)=>O0(_l(n.getValue(o)),_l(i.getValue(o))),RE=(n,i,o)=>md(_l(n.getValue(o)).toLowerCase(),_l(i.getValue(o)).toLowerCase()),EE=(n,i,o)=>md(_l(n.getValue(o)),_l(i.getValue(o))),_E=(n,i,o)=>{const r=n.getValue(o),s=i.getValue(o);return r>s?1:r<s?-1:0},ME=(n,i,o)=>md(n.getValue(o),i.getValue(o));function md(n,i){return n===i?0:n>i?1:-1}function _l(n){return typeof n=="number"?isNaN(n)||n===1/0||n===-1/0?"":String(n):typeof n=="string"?n:""}function O0(n,i){const o=n.split(jf).filter(Boolean),r=i.split(jf).filter(Boolean);for(;o.length&&r.length;){const s=o.shift(),f=r.shift(),d=parseInt(s,10),m=parseInt(f,10),p=[d,m].sort();if(isNaN(p[0])){if(s>f)return 1;if(f>s)return-1;continue}if(isNaN(p[1]))return isNaN(d)?-1:1;if(d>m)return 1;if(m>d)return-1}return o.length-r.length}const eo={alphanumeric:CE,alphanumericCaseSensitive:wE,text:RE,textCaseSensitive:EE,datetime:_E,basic:ME},AE={getInitialState:n=>({sorting:[],...n}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:n=>({onSortingChange:qt("sorting",n),isMultiSortEvent:i=>i.shiftKey}),createColumn:(n,i)=>{n.getAutoSortingFn=()=>{const o=i.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const s of o){const f=s==null?void 0:s.getValue(n.id);if(Object.prototype.toString.call(f)==="[object Date]")return eo.datetime;if(typeof f=="string"&&(r=!0,f.split(jf).length>1))return eo.alphanumeric}return r?eo.text:eo.basic},n.getAutoSortDir=()=>{const o=i.getFilteredRowModel().flatRows[0];return typeof(o==null?void 0:o.getValue(n.id))=="string"?"asc":"desc"},n.getSortingFn=()=>{var o,r;if(!n)throw new Error;return vu(n.columnDef.sortingFn)?n.columnDef.sortingFn:n.columnDef.sortingFn==="auto"?n.getAutoSortingFn():(o=(r=i.options.sortingFns)==null?void 0:r[n.columnDef.sortingFn])!=null?o:eo[n.columnDef.sortingFn]},n.toggleSorting=(o,r)=>{const s=n.getNextSortingOrder(),f=typeof o<"u"&&o!==null;i.setSorting(d=>{const m=d==null?void 0:d.find(x=>x.id===n.id),p=d==null?void 0:d.findIndex(x=>x.id===n.id);let h=[],C,y=f?o:s==="desc";if(d!=null&&d.length&&n.getCanMultiSort()&&r?m?C="toggle":C="add":d!=null&&d.length&&p!==d.length-1?C="replace":m?C="toggle":C="replace",C==="toggle"&&(f||s||(C="remove")),C==="add"){var b;h=[...d,{id:n.id,desc:y}],h.splice(0,h.length-((b=i.options.maxMultiSortColCount)!=null?b:Number.MAX_SAFE_INTEGER))}else C==="toggle"?h=d.map(x=>x.id===n.id?{...x,desc:y}:x):C==="remove"?h=d.filter(x=>x.id!==n.id):h=[{id:n.id,desc:y}];return h})},n.getFirstSortDir=()=>{var o,r;return((o=(r=n.columnDef.sortDescFirst)!=null?r:i.options.sortDescFirst)!=null?o:n.getAutoSortDir()==="desc")?"desc":"asc"},n.getNextSortingOrder=o=>{var r,s;const f=n.getFirstSortDir(),d=n.getIsSorted();return d?d!==f&&((r=i.options.enableSortingRemoval)==null||r)&&(!(o&&(s=i.options.enableMultiRemove)!=null)||s)?!1:d==="desc"?"asc":"desc":f},n.getCanSort=()=>{var o,r;return((o=n.columnDef.enableSorting)!=null?o:!0)&&((r=i.options.enableSorting)!=null?r:!0)&&!!n.accessorFn},n.getCanMultiSort=()=>{var o,r;return(o=(r=n.columnDef.enableMultiSort)!=null?r:i.options.enableMultiSort)!=null?o:!!n.accessorFn},n.getIsSorted=()=>{var o;const r=(o=i.getState().sorting)==null?void 0:o.find(s=>s.id===n.id);return r?r.desc?"desc":"asc":!1},n.getSortIndex=()=>{var o,r;return(o=(r=i.getState().sorting)==null?void 0:r.findIndex(s=>s.id===n.id))!=null?o:-1},n.clearSorting=()=>{i.setSorting(o=>o!=null&&o.length?o.filter(r=>r.id!==n.id):[])},n.getToggleSortingHandler=()=>{const o=n.getCanSort();return r=>{o&&(r.persist==null||r.persist(),n.toggleSorting==null||n.toggleSorting(void 0,n.getCanMultiSort()?i.options.isMultiSortEvent==null?void 0:i.options.isMultiSortEvent(r):!1))}}},createTable:n=>{n.setSorting=i=>n.options.onSortingChange==null?void 0:n.options.onSortingChange(i),n.resetSorting=i=>{var o,r;n.setSorting(i?[]:(o=(r=n.initialState)==null?void 0:r.sorting)!=null?o:[])},n.getPreSortedRowModel=()=>n.getGroupedRowModel(),n.getSortedRowModel=()=>(!n._getSortedRowModel&&n.options.getSortedRowModel&&(n._getSortedRowModel=n.options.getSortedRowModel(n)),n.options.manualSorting||!n._getSortedRowModel?n.getPreSortedRowModel():n._getSortedRowModel())}},OE=[ZR,hE,cE,fE,KR,JR,pE,vE,AE,uE,yE,xE,SE,bE,gE];function TE(n){var i,o;const r=[...OE,...(i=n._features)!=null?i:[]];let s={_features:r};const f=s._features.reduce((b,x)=>Object.assign(b,x.getDefaultOptions==null?void 0:x.getDefaultOptions(s)),{}),d=b=>s.options.mergeOptions?s.options.mergeOptions(f,b):{...f,...b};let p={...{},...(o=n.initialState)!=null?o:{}};s._features.forEach(b=>{var x;p=(x=b.getInitialState==null?void 0:b.getInitialState(p))!=null?x:p});const h=[];let C=!1;const y={_features:r,options:{...f,...n},initialState:p,_queue:b=>{h.push(b),C||(C=!0,Promise.resolve().then(()=>{for(;h.length;)h.shift()();C=!1}).catch(x=>setTimeout(()=>{throw x})))},reset:()=>{s.setState(s.initialState)},setOptions:b=>{const x=Sl(b,s.options);s.options=d(x)},getState:()=>s.options.state,setState:b=>{s.options.onStateChange==null||s.options.onStateChange(b)},_getRowId:(b,x,R)=>{var E;return(E=s.options.getRowId==null?void 0:s.options.getRowId(b,x,R))!=null?E:`${R?[R.id,x].join("."):x}`},getCoreRowModel:()=>(s._getCoreRowModel||(s._getCoreRowModel=s.options.getCoreRowModel(s)),s._getCoreRowModel()),getRowModel:()=>s.getPaginationRowModel(),getRow:(b,x)=>{let R=(x?s.getPrePaginationRowModel():s.getRowModel()).rowsById[b];if(!R&&(R=s.getCoreRowModel().rowsById[b],!R))throw new Error;return R},_getDefaultColumnDef:he(()=>[s.options.defaultColumn],b=>{var x;return b=(x=b)!=null?x:{},{header:R=>{const E=R.header.column.columnDef;return E.accessorKey?E.accessorKey:E.accessorFn?E.id:null},cell:R=>{var E,M;return(E=(M=R.renderValue())==null||M.toString==null?void 0:M.toString())!=null?E:null},...s._features.reduce((R,E)=>Object.assign(R,E.getDefaultColumnDef==null?void 0:E.getDefaultColumnDef()),{}),...b}},pe(n,"debugColumns")),_getColumnDefs:()=>s.options.columns,getAllColumns:he(()=>[s._getColumnDefs()],b=>{const x=function(R,E,M){return M===void 0&&(M=0),R.map(z=>{const N=PR(s,z,M,E),L=z;return N.columns=L.columns?x(L.columns,N,M+1):[],N})};return x(b)},pe(n,"debugColumns")),getAllFlatColumns:he(()=>[s.getAllColumns()],b=>b.flatMap(x=>x.getFlatColumns()),pe(n,"debugColumns")),_getAllFlatColumnsById:he(()=>[s.getAllFlatColumns()],b=>b.reduce((x,R)=>(x[R.id]=R,x),{}),pe(n,"debugColumns")),getAllLeafColumns:he(()=>[s.getAllColumns(),s._getOrderColumnsFn()],(b,x)=>{let R=b.flatMap(E=>E.getLeafColumns());return x(R)},pe(n,"debugColumns")),getColumn:b=>s._getAllFlatColumnsById()[b]};Object.assign(s,y);for(let b=0;b<s._features.length;b++){const x=s._features[b];x==null||x.createTable==null||x.createTable(s)}return s}function DE(){return n=>he(()=>[n.options.data],i=>{const o={rows:[],flatRows:[],rowsById:{}},r=function(s,f,d){f===void 0&&(f=0);const m=[];for(let h=0;h<s.length;h++){const C=fd(n,n._getRowId(s[h],h,d),s[h],h,f,void 0,d==null?void 0:d.id);if(o.flatRows.push(C),o.rowsById[C.id]=C,m.push(C),n.options.getSubRows){var p;C.originalSubRows=n.options.getSubRows(s[h],h),(p=C.originalSubRows)!=null&&p.length&&(C.subRows=r(C.originalSubRows,f+1,C))}}return m};return o.rows=r(i),o},pe(n.options,"debugTable","getRowModel",()=>n._autoResetPageIndex()))}function zE(n){const i=[],o=r=>{var s;i.push(r),(s=r.subRows)!=null&&s.length&&r.getIsExpanded()&&r.subRows.forEach(o)};return n.rows.forEach(o),{rows:i,flatRows:n.flatRows,rowsById:n.rowsById}}function jE(n,i,o){return o.options.filterFromLeafRows?NE(n,i,o):kE(n,i,o)}function NE(n,i,o){var r;const s=[],f={},d=(r=o.options.maxLeafRowFilterDepth)!=null?r:100,m=function(p,h){h===void 0&&(h=0);const C=[];for(let b=0;b<p.length;b++){var y;let x=p[b];const R=fd(o,x.id,x.original,x.index,x.depth,void 0,x.parentId);if(R.columnFilters=x.columnFilters,(y=x.subRows)!=null&&y.length&&h<d){if(R.subRows=m(x.subRows,h+1),x=R,i(x)&&!R.subRows.length){C.push(x),f[x.id]=x,s.push(x);continue}if(i(x)||R.subRows.length){C.push(x),f[x.id]=x,s.push(x);continue}}else x=R,i(x)&&(C.push(x),f[x.id]=x,s.push(x))}return C};return{rows:m(n),flatRows:s,rowsById:f}}function kE(n,i,o){var r;const s=[],f={},d=(r=o.options.maxLeafRowFilterDepth)!=null?r:100,m=function(p,h){h===void 0&&(h=0);const C=[];for(let b=0;b<p.length;b++){let x=p[b];if(i(x)){var y;if((y=x.subRows)!=null&&y.length&&h<d){const E=fd(o,x.id,x.original,x.index,x.depth,void 0,x.parentId);E.subRows=m(x.subRows,h+1),x=E}C.push(x),s.push(x),f[x.id]=x}}return C};return{rows:m(n),flatRows:s,rowsById:f}}function LE(){return n=>he(()=>[n.getPreFilteredRowModel(),n.getState().columnFilters,n.getState().globalFilter],(i,o,r)=>{if(!i.rows.length||!(o!=null&&o.length)&&!r){for(let b=0;b<i.flatRows.length;b++)i.flatRows[b].columnFilters={},i.flatRows[b].columnFiltersMeta={};return i}const s=[],f=[];(o??[]).forEach(b=>{var x;const R=n.getColumn(b.id);if(!R)return;const E=R.getFilterFn();E&&s.push({id:b.id,filterFn:E,resolvedValue:(x=E.resolveFilterValue==null?void 0:E.resolveFilterValue(b.value))!=null?x:b.value})});const d=(o??[]).map(b=>b.id),m=n.getGlobalFilterFn(),p=n.getAllLeafColumns().filter(b=>b.getCanGlobalFilter());r&&m&&p.length&&(d.push("__global__"),p.forEach(b=>{var x;f.push({id:b.id,filterFn:m,resolvedValue:(x=m.resolveFilterValue==null?void 0:m.resolveFilterValue(r))!=null?x:r})}));let h,C;for(let b=0;b<i.flatRows.length;b++){const x=i.flatRows[b];if(x.columnFilters={},s.length)for(let R=0;R<s.length;R++){h=s[R];const E=h.id;x.columnFilters[E]=h.filterFn(x,E,h.resolvedValue,M=>{x.columnFiltersMeta[E]=M})}if(f.length){for(let R=0;R<f.length;R++){C=f[R];const E=C.id;if(C.filterFn(x,E,C.resolvedValue,M=>{x.columnFiltersMeta[E]=M})){x.columnFilters.__global__=!0;break}}x.columnFilters.__global__!==!0&&(x.columnFilters.__global__=!1)}}const y=b=>{for(let x=0;x<d.length;x++)if(b.columnFilters[d[x]]===!1)return!1;return!0};return jE(i.rows,y,n)},pe(n.options,"debugTable","getFilteredRowModel",()=>n._autoResetPageIndex()))}function VE(n){return i=>he(()=>[i.getState().pagination,i.getPrePaginationRowModel(),i.options.paginateExpandedRows?void 0:i.getState().expanded],(o,r)=>{if(!r.rows.length)return r;const{pageSize:s,pageIndex:f}=o;let{rows:d,flatRows:m,rowsById:p}=r;const h=s*f,C=h+s;d=d.slice(h,C);let y;i.options.paginateExpandedRows?y={rows:d,flatRows:m,rowsById:p}:y=zE({rows:d,flatRows:m,rowsById:p}),y.flatRows=[];const b=x=>{y.flatRows.push(x),x.subRows.length&&x.subRows.forEach(b)};return y.rows.forEach(b),y},pe(i.options,"debugTable"))}function HE(){return n=>he(()=>[n.getState().sorting,n.getPreSortedRowModel()],(i,o)=>{if(!o.rows.length||!(i!=null&&i.length))return o;const r=n.getState().sorting,s=[],f=r.filter(p=>{var h;return(h=n.getColumn(p.id))==null?void 0:h.getCanSort()}),d={};f.forEach(p=>{const h=n.getColumn(p.id);h&&(d[p.id]={sortUndefined:h.columnDef.sortUndefined,invertSorting:h.columnDef.invertSorting,sortingFn:h.getSortingFn()})});const m=p=>{const h=p.map(C=>({...C}));return h.sort((C,y)=>{for(let x=0;x<f.length;x+=1){var b;const R=f[x],E=d[R.id],M=E.sortUndefined,z=(b=R==null?void 0:R.desc)!=null?b:!1;let N=0;if(M){const L=C.getValue(R.id),F=y.getValue(R.id),G=L===void 0,P=F===void 0;if(G||P){if(M==="first")return G?-1:1;if(M==="last")return G?1:-1;N=G&&P?0:G?M:-M}}if(N===0&&(N=E.sortingFn(C,y,R.id)),N!==0)return z&&(N*=-1),E.invertSorting&&(N*=-1),N}return C.index-y.index}),h.forEach(C=>{var y;s.push(C),(y=C.subRows)!=null&&y.length&&(C.subRows=m(C.subRows))}),h};return{rows:m(o.rows),flatRows:s,rowsById:o.rowsById}},pe(n.options,"debugTable","getSortedRowModel",()=>n._autoResetPageIndex()))}/**
|
|
272
|
+
* react-table
|
|
273
|
+
*
|
|
274
|
+
* Copyright (c) TanStack
|
|
275
|
+
*
|
|
276
|
+
* This source code is licensed under the MIT license found in the
|
|
277
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
278
|
+
*
|
|
279
|
+
* @license MIT
|
|
280
|
+
*/function fv(n,i){return n?UE(n)?w.createElement(n,i):n:null}function UE(n){return BE(n)||typeof n=="function"||GE(n)}function BE(n){return typeof n=="function"&&(()=>{const i=Object.getPrototypeOf(n);return i.prototype&&i.prototype.isReactComponent})()}function GE(n){return typeof n=="object"&&typeof n.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(n.$$typeof.description)}function FE(n){const i={state:{},onStateChange:()=>{},renderFallbackValue:null,...n},[o]=w.useState(()=>({current:TE(i)})),[r,s]=w.useState(()=>o.current.initialState);return o.current.setOptions(f=>({...f,...n,state:{...r,...n.state},onStateChange:d=>{s(d),n.onStateChange==null||n.onStateChange(d)}})),o.current}const qE=Cv("inline-flex items-center justify-center rounded-full border border-transparent px-2.5 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 gap-1 transition-colors overflow-hidden",{variants:{variant:{default:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",destructive:"bg-destructive text-white",outline:"border-border text-foreground"}},defaultVariants:{variant:"default"}});function At({className:n,variant:i,...o}){return v.jsx("span",{className:Qe(qE({variant:i}),n),...o})}function Nf({className:n,type:i,...o}){return v.jsx("input",{type:i,className:Qe("placeholder:text-muted-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",n),...o})}function T0({className:n,...i}){return v.jsx("div",{className:"relative w-full overflow-x-auto",children:v.jsx("table",{className:Qe("w-full caption-bottom text-sm",n),...i})})}function D0({className:n,...i}){return v.jsx("thead",{className:Qe("[&_tr]:border-b",n),...i})}function z0({className:n,...i}){return v.jsx("tbody",{className:Qe("[&_tr:last-child]:border-0",n),...i})}function no({className:n,...i}){return v.jsx("tr",{className:Qe("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",n),...i})}function Kr({className:n,...i}){return v.jsx("th",{className:Qe("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n),...i})}function lo({className:n,...i}){return v.jsx("td",{className:Qe("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n),...i})}function $E(n){const i=n-Date.now(),o=Math.abs(i),r=i<0?" ago":"";return o<6e4?Math.round(o/1e3)+"s"+r:o<36e5?Math.round(o/6e4)+"m"+r:o<864e5?Math.round(o/36e5)+"h"+r:Math.round(o/864e5)+"d"+r}function YE({type:n}){switch(n){case"oauth":return v.jsx(At,{className:"bg-indigo-100 text-indigo-700 dark:bg-indigo-950 dark:text-indigo-300 border-0",children:"OAuth"});case"bearer":return v.jsx(At,{className:"bg-amber-100 text-amber-700 dark:bg-amber-950 dark:text-amber-300 border-0",children:"Bearer"});default:return v.jsx(At,{className:"bg-emerald-100 text-emerald-700 dark:bg-emerald-950 dark:text-emerald-300 border-0",children:"API Key"})}}function XE({command:n}){const[i,o]=w.useState(!1);function r(){navigator.clipboard.writeText(n).then(()=>{o(!0),setTimeout(()=>o(!1),2e3)})}return v.jsxs("div",{className:"flex items-center gap-1",children:[v.jsx("code",{className:"rounded border bg-muted px-1.5 py-0.5 text-[11px] font-mono text-muted-foreground",children:n}),v.jsx(Ue,{variant:"ghost",size:"icon",className:"size-6 shrink-0",onClick:r,children:i?v.jsx(uo,{className:"size-3 text-green-500"}):v.jsx(iu,{className:"size-3"})})]})}function uf({name:n}){const[i,o]=w.useState(!1),r=`connectors run ${n} --help`;function s(f){f.stopPropagation(),navigator.clipboard.writeText(r).then(()=>{o(!0),setTimeout(()=>o(!1),2e3)})}return v.jsxs(Ue,{variant:"ghost",size:"sm",className:"text-muted-foreground",onClick:s,title:r,children:[i?v.jsx(uo,{className:"size-3.5 text-green-500"}):v.jsx(iu,{className:"size-3.5"}),i?"Copied!":"Command"]})}function QE({data:n,onConfigure:i,onRefresh:o,onOAuthStart:r,onInstall:s,onUninstall:f,onRowClick:d}){var de,ve;const[m,p]=w.useState([]),[h,C]=w.useState([]),[y,b]=w.useState({}),[x,R]=w.useState("all"),[E,M]=w.useState({}),[z,N]=w.useState(new Set),[L,F]=w.useState(!1),G=w.useRef(null);w.useEffect(()=>{function _(T){var I,ee,B;T.key==="/"&&!T.metaKey&&!T.ctrlKey&&!(T.target instanceof HTMLInputElement||T.target instanceof HTMLTextAreaElement)&&(T.preventDefault(),(I=G.current)==null||I.focus()),T.key==="Escape"&&document.activeElement===G.current&&((ee=ie.getColumn("displayName"))==null||ee.setFilterValue(""),(B=G.current)==null||B.blur())}return document.addEventListener("keydown",_),()=>document.removeEventListener("keydown",_)});const P=w.useMemo(()=>{const _=new Map;return n.forEach(T=>_.set(T.category,(_.get(T.category)||0)+1)),Array.from(_.entries()).sort((T,I)=>T[0].localeCompare(I[0]))},[n]),Q=w.useMemo(()=>x==="all"?n:n.filter(_=>_.category===x),[n,x]);async function Y(_){if(s){N(T=>new Set(T).add(_));try{await s(_)}finally{N(T=>{const I=new Set(T);return I.delete(_),I})}}}const W=w.useMemo(()=>[{id:"select",header:({table:_})=>v.jsx("input",{type:"checkbox",className:"size-4 rounded border-gray-300 accent-primary cursor-pointer",checked:_.getIsAllPageRowsSelected(),ref:T=>{T&&(T.indeterminate=_.getIsSomePageRowsSelected())},onChange:_.getToggleAllPageRowsSelectedHandler()}),cell:({row:_})=>v.jsx("input",{type:"checkbox",className:"size-4 rounded border-gray-300 accent-primary cursor-pointer",checked:_.getIsSelected(),onChange:_.getToggleSelectedHandler(),onClick:T=>T.stopPropagation()}),enableSorting:!1,enableHiding:!1},{accessorKey:"displayName",header:({column:_})=>v.jsxs(Ue,{variant:"ghost",onClick:()=>_.toggleSorting(_.getIsSorted()==="asc"),className:"-ml-3",children:["Connector",v.jsx(Vc,{})]}),cell:({row:_})=>v.jsxs("div",{children:[v.jsx("div",{className:"font-medium",children:_.original.displayName}),v.jsx("div",{className:"text-xs text-muted-foreground",children:_.original.name}),_.original.description&&v.jsx("div",{className:"text-[11px] text-muted-foreground/60 line-clamp-1",children:_.original.description})]}),filterFn:(_,T,I)=>{const ee=I.toLowerCase();return _.original.displayName.toLowerCase().includes(ee)||_.original.name.toLowerCase().includes(ee)}},{accessorKey:"version",header:"Version",cell:({row:_})=>v.jsx("span",{className:"text-muted-foreground text-sm",children:_.original.version?`v${_.original.version}`:"—"})},{accessorKey:"category",header:({column:_})=>v.jsxs(Ue,{variant:"ghost",onClick:()=>_.toggleSorting(_.getIsSorted()==="asc"),className:"-ml-3",children:["Category",v.jsx(Vc,{})]}),cell:({row:_})=>v.jsx("span",{className:"text-muted-foreground",children:_.getValue("category")})},{id:"installed",accessorFn:_=>_.installed?"installed":"not installed",header:"Installed",cell:({row:_})=>_.original.installed?v.jsxs("span",{className:"flex items-center gap-1.5 text-green-600 dark:text-green-400 text-sm",children:[v.jsx(pv,{className:"size-3.5"}),"Yes"]}):v.jsxs("span",{className:"flex items-center gap-1.5 text-muted-foreground text-sm",children:[v.jsx(vv,{className:"size-3.5"}),"No"]})},{id:"authType",accessorFn:_=>{var T;return((T=_.auth)==null?void 0:T.type)||"—"},header:"Auth Type",cell:({row:_})=>!_.original.installed||!_.original.auth?v.jsx("span",{className:"text-muted-foreground",children:"—"}):v.jsx(YE,{type:_.original.auth.type})},{id:"status",accessorFn:_=>{var T,I,ee;if(!_.installed)return"not installed";if(!((T=_.auth)!=null&&T.configured)){const B=_.auth;return B&&B.type!=="oauth"&&B.envVarTotalCount>1&&B.envVarSetCount>0?"partial":"needs auth"}return((I=_.auth)==null?void 0:I.type)==="oauth"&&((ee=_.auth)!=null&&ee.tokenExpiry)&&_.auth.tokenExpiry<Date.now()?"expired":"configured"},header:({column:_})=>v.jsxs(Ue,{variant:"ghost",onClick:()=>_.toggleSorting(_.getIsSorted()==="asc"),className:"-ml-3",children:["Status",v.jsx(Vc,{})]}),sortingFn:(_,T)=>{const I={"needs auth":0,partial:1,expired:2,"not installed":3,configured:4},ee=I[_.getValue("status")]??3,B=I[T.getValue("status")]??3;return ee-B},cell:({row:_})=>{const T=_.original.auth;return _.original.installed?T!=null&&T.configured?v.jsx(At,{variant:"outline",className:"border-green-300 text-green-700 dark:border-green-800 dark:text-green-400",children:"Configured"}):T&&T.type!=="oauth"&&T.envVarTotalCount>1&&T.envVarSetCount>0?v.jsxs(At,{variant:"outline",className:"border-amber-300 text-amber-700 dark:border-amber-800 dark:text-amber-400",children:[T.envVarSetCount,"/",T.envVarTotalCount," fields set"]}):v.jsx(At,{variant:"outline",className:"border-orange-300 text-orange-700 dark:border-orange-800 dark:text-orange-400",children:"Needs auth"}):v.jsx(At,{variant:"outline",className:"border-muted-foreground/20 text-muted-foreground",children:"Not installed"})}},{id:"token",header:"Token",cell:({row:_})=>{const T=_.original.auth;if(!_.original.installed||(T==null?void 0:T.type)!=="oauth"||!(T!=null&&T.configured)||!(T!=null&&T.tokenExpiry))return v.jsx("span",{className:"text-muted-foreground",children:"—"});const I=T.tokenExpiry<Date.now();return v.jsxs("span",{className:I?"text-red-600 dark:text-red-400 text-sm":"text-green-600 dark:text-green-400 text-sm",children:[I?"Expired ":"Expires ",$E(T.tokenExpiry)]})}},{id:"actions",header:()=>v.jsx("span",{className:"sr-only",children:"Actions"}),cell:({row:_})=>{const T=_.original,I=B=>B.stopPropagation();if(!T.installed){const B=z.has(T.name);return v.jsx("div",{className:"flex justify-end gap-1",onClick:I,children:s?v.jsxs(Ue,{size:"sm",onClick:()=>Y(T.name),disabled:B,children:[B?v.jsx(Op,{className:"size-3.5 animate-spin"}):v.jsx(Jr,{className:"size-3.5"}),B?"Installing...":"Install"]}):v.jsx(XE,{command:`connectors install ${T.name}`})})}const ee=T.auth;return(ee==null?void 0:ee.type)==="oauth"?ee.configured?v.jsxs("div",{className:"flex justify-end gap-1",onClick:I,children:[v.jsx(uf,{name:T.name}),v.jsxs(Ue,{variant:"ghost",size:"sm",onClick:()=>o(T.name),children:[v.jsx(xv,{className:"size-3.5"}),"Refresh"]}),v.jsxs(Ue,{variant:"ghost",size:"sm",onClick:()=>r(T.name),children:[v.jsx(Ap,{className:"size-3.5"}),"Reconnect"]})]}):v.jsxs("div",{className:"flex justify-end gap-1",onClick:I,children:[v.jsx(uf,{name:T.name}),v.jsxs(Ue,{size:"sm",onClick:()=>r(T.name),children:[v.jsx(Ap,{className:"size-3.5"}),"Connect"]})]}):v.jsxs("div",{className:"flex justify-end gap-1",onClick:I,children:[v.jsx(uf,{name:T.name}),v.jsx(Ue,{variant:ee!=null&&ee.configured?"ghost":"default",size:"sm",onClick:()=>i(T),children:ee!=null&&ee.configured?v.jsxs(v.Fragment,{children:[v.jsx(_1,{className:"size-3.5"}),"Update"]}):v.jsxs(v.Fragment,{children:[v.jsx(yv,{className:"size-3.5"}),"Configure"]})})]})}}],[i,o,r,s,z]),se=w.useMemo(()=>Object.keys(E).filter(_=>E[_]).map(_=>Q[parseInt(_)]).filter(Boolean),[E,Q]),ce=w.useMemo(()=>se.filter(_=>!_.installed),[se]);async function ne(){if(!(!s||ce.length===0)){F(!0);try{for(const _ of ce)await s(_.name)}finally{F(!1),M({})}}}const ie=FE({data:Q,columns:W,enableRowSelection:!0,onRowSelectionChange:M,onSortingChange:p,onColumnFiltersChange:C,getCoreRowModel:DE(),getSortedRowModel:HE(),getFilteredRowModel:LE(),getPaginationRowModel:VE(),onColumnVisibilityChange:b,initialState:{pagination:{pageSize:10}},state:{sorting:m,columnFilters:h,columnVisibility:y,rowSelection:E}});return v.jsxs("div",{className:"space-y-4",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Nf,{ref:G,placeholder:"Filter connectors... (press / to focus)",value:((de=ie.getColumn("displayName"))==null?void 0:de.getFilterValue())??"",onChange:_=>{var T;return(T=ie.getColumn("displayName"))==null?void 0:T.setFilterValue(_.target.value)},className:"max-w-sm"}),v.jsxs("select",{value:x,onChange:_=>R(_.target.value),className:"h-9 rounded-md border border-input bg-background px-3 text-sm ring-offset-background focus:outline-none focus:ring-2 focus:ring-ring",children:[v.jsxs("option",{value:"all",children:["All Categories (",n.length,")"]}),P.map(([_,T])=>v.jsxs("option",{value:_,children:[_," (",T,")"]},_))]}),v.jsxs(y0,{children:[v.jsx(x0,{asChild:!0,children:v.jsxs(Ue,{variant:"outline",className:"ml-auto",children:["Columns ",v.jsx(S1,{})]})}),v.jsx(S0,{align:"end",children:ie.getAllColumns().filter(_=>_.getCanHide()).map(_=>v.jsx(qR,{className:"capitalize",checked:_.getIsVisible(),onCheckedChange:T=>_.toggleVisibility(!!T),children:_.id},_.id))})]})]}),v.jsx("div",{className:"overflow-hidden rounded-md border",children:v.jsxs(T0,{children:[v.jsx(D0,{children:ie.getHeaderGroups().map(_=>v.jsx(no,{children:_.headers.map(T=>v.jsx(Kr,{children:T.isPlaceholder?null:fv(T.column.columnDef.header,T.getContext())},T.id))},_.id))}),v.jsx(z0,{children:(ve=ie.getRowModel().rows)!=null&&ve.length?ie.getRowModel().rows.map(_=>v.jsx(no,{className:`cursor-pointer hover:bg-muted/50 ${_.original.installed?"":"opacity-60"}`,onClick:()=>d==null?void 0:d(_.original),children:_.getVisibleCells().map(T=>v.jsx(lo,{children:fv(T.column.columnDef.cell,T.getContext())},T.id))},_.id)):v.jsx(no,{children:v.jsx(lo,{colSpan:W.length,className:"h-24 text-center",children:"No connectors found."})})})]})}),se.length>0&&v.jsxs("div",{className:"flex items-center gap-3 rounded-lg border bg-muted/50 px-4 py-2.5",children:[v.jsxs("span",{className:"text-sm font-medium",children:[se.length," selected"]}),ce.length>0&&v.jsxs(Ue,{size:"sm",onClick:ne,disabled:L,children:[L?v.jsx(Op,{className:"size-3.5 animate-spin"}):v.jsx(Jr,{className:"size-3.5"}),L?"Installing...":`Install ${ce.length} Selected`]}),v.jsx(Ue,{variant:"ghost",size:"sm",onClick:()=>M({}),children:"Clear Selection"})]}),v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"text-muted-foreground text-sm",children:["Page ",ie.getState().pagination.pageIndex+1," of"," ",ie.getPageCount()," (",ie.getFilteredRowModel().rows.length," ","connector",ie.getFilteredRowModel().rows.length!==1?"s":"",")"]}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Ue,{variant:"outline",size:"sm",onClick:()=>ie.previousPage(),disabled:!ie.getCanPreviousPage(),children:"Previous"}),v.jsx(Ue,{variant:"outline",size:"sm",onClick:()=>ie.nextPage(),disabled:!ie.getCanNextPage(),children:"Next"})]})]})]})}function j0({...n}){return v.jsx(JC,{...n})}function IE({className:n,...i}){return v.jsx(tw,{className:Qe("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",n),...i})}function N0({className:n,children:i,...o}){return v.jsxs(ew,{children:[v.jsx(IE,{}),v.jsxs(aw,{className:Qe("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 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 p-6 shadow-lg duration-200 outline-none sm:max-w-lg",n),...o,children:[i,v.jsxs(dw,{className:"ring-offset-background focus:ring-ring absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[v.jsx(z1,{}),v.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function kf({className:n,...i}){return v.jsx("div",{className:Qe("flex flex-col gap-2 text-center sm:text-left",n),...i})}function PE({className:n,...i}){return v.jsx("div",{className:Qe("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",n),...i})}function Lf({className:n,...i}){return v.jsx(uw,{className:Qe("text-lg leading-none font-semibold",n),...i})}function Vf({className:n,...i}){return v.jsx(cw,{className:Qe("text-muted-foreground text-sm",n),...i})}function ZE(n){const i=n.toLowerCase().split("_"),o=i.slice(1);return o.length===0?i[0]:o.map((r,s)=>s===0?r:r.charAt(0).toUpperCase()+r.slice(1)).join("")}function KE({connector:n,open:i,onOpenChange:o,onSaved:r}){var E;const[s,f]=w.useState({}),[d,m]=w.useState(!1),[p,h]=w.useState(null),C=((E=n==null?void 0:n.auth)==null?void 0:E.envVars)||[];if(w.useEffect(()=>{i&&(f({}),h(null))},[i]),!n)return null;const y=Object.values(s).some(M=>M.trim());async function b(){if(!(!y||!n)){m(!0),h(null);try{const M=Object.entries(s).filter(([,z])=>z.trim());for(const[z,N]of M){const L=ZE(z),G=await(await fetch(`/api/connectors/${n.name}/key`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:N.trim(),field:L})})).json();if(!G.success){h(G.error||`Failed to save ${z}`),m(!1);return}}o(!1),r()}catch{h("Failed to save keys")}finally{m(!1)}}}const x=C.length>1;return v.jsx(j0,{open:i,onOpenChange:o,children:v.jsxs(N0,{children:[v.jsxs(kf,{children:[v.jsxs(Lf,{className:"flex items-center gap-2",children:[v.jsx(yv,{className:"size-5"}),"Configure ",n.displayName]}),v.jsxs(Vf,{children:["Stored locally at"," ",v.jsxs("code",{className:"text-xs bg-muted px-1.5 py-0.5 rounded",children:["~/.hasna/connectors/connect-",n.name,"/"]})]})]}),x?v.jsxs("div",{className:"space-y-3",children:[C.map((M,z)=>v.jsxs("div",{className:"space-y-1.5",children:[v.jsxs("label",{className:"flex items-center gap-2 text-sm",htmlFor:`env-${M.variable}`,children:[M.set?v.jsx(sf,{className:"size-3.5 text-green-500 shrink-0"}):v.jsx(cf,{className:"size-3.5 text-muted-foreground shrink-0"}),v.jsx("code",{className:"text-xs bg-muted px-1.5 py-0.5 rounded font-mono",children:M.variable}),v.jsx("span",{className:"text-muted-foreground text-xs truncate",children:M.description})]}),v.jsx(Nf,{id:`env-${M.variable}`,type:"password",placeholder:M.set?"Already set (leave empty to keep)":`Enter ${M.description.toLowerCase()}...`,value:s[M.variable]||"",onChange:N=>f(L=>({...L,[M.variable]:N.target.value})),onKeyDown:N=>N.key==="Enter"&&b(),autoFocus:z===0})]},M.variable)),p&&v.jsx("p",{className:"text-sm text-destructive",children:p})]}):v.jsxs(v.Fragment,{children:[C.length===1&&v.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[C[0].set?v.jsx(sf,{className:"size-3.5 text-green-500 shrink-0"}):v.jsx(cf,{className:"size-3.5 text-muted-foreground shrink-0"}),v.jsx("code",{className:"text-xs bg-muted px-1.5 py-0.5 rounded font-mono",children:C[0].variable}),v.jsx("span",{className:"text-muted-foreground text-xs",children:C[0].description})]}),v.jsxs("div",{className:"space-y-2",children:[v.jsx("label",{className:"text-sm font-medium",htmlFor:"api-key-input",children:"API Key / Token"}),v.jsx(Nf,{id:"api-key-input",type:"password",placeholder:"Enter key or token...",value:s.__single__||"",onChange:M=>f({__single__:M.target.value}),onKeyDown:M=>M.key==="Enter"&&R(),autoFocus:!0}),p&&v.jsx("p",{className:"text-sm text-destructive",children:p})]})]}),v.jsxs(PE,{children:[v.jsx(Ue,{variant:"outline",onClick:()=>o(!1),children:"Cancel"}),v.jsx(Ue,{onClick:x?b:R,disabled:!y||d,children:d?"Saving...":"Save"})]})]})});async function R(){var z;const M=(z=s.__single__)==null?void 0:z.trim();if(!(!M||!n)){m(!0),h(null);try{const L=await(await fetch(`/api/connectors/${n.name}/key`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:M})})).json();L.success?(o(!1),r()):h(L.error||"Failed to save")}catch{h("Failed to save key")}finally{m(!1)}}}}function dv({text:n}){const[i,o]=w.useState(!1);function r(){navigator.clipboard.writeText(n).then(()=>{o(!0),setTimeout(()=>o(!1),2e3)})}return v.jsx(Ue,{variant:"ghost",size:"icon",className:"size-6 shrink-0",onClick:r,children:i?v.jsx(uo,{className:"size-3 text-green-500"}):v.jsx(iu,{className:"size-3"})})}function JE({type:n}){switch(n){case"oauth":return v.jsx(At,{className:"bg-indigo-100 text-indigo-700 dark:bg-indigo-950 dark:text-indigo-300 border-0",children:"OAuth"});case"bearer":return v.jsx(At,{className:"bg-amber-100 text-amber-700 dark:bg-amber-950 dark:text-amber-300 border-0",children:"Bearer"});default:return v.jsx(At,{className:"bg-emerald-100 text-emerald-700 dark:bg-emerald-950 dark:text-emerald-300 border-0",children:"API Key"})}}function WE({connectorName:n}){const[i,o]=w.useState(null),[r,s]=w.useState(!0),[f,d]=w.useState(null),[m,p]=w.useState(null),[h,C]=w.useState(null),y=w.useCallback(()=>{s(!0),C(null),fetch(`/api/connectors/${n}/profiles`).then(R=>{if(!R.ok)throw new Error("Failed to fetch profiles");return R.json()}).then(R=>{o(R),s(!1)}).catch(R=>{C(R.message),s(!1)})},[n]);w.useEffect(()=>{y()},[y]);function b(R){d(R),C(null),fetch(`/api/connectors/${n}/profiles/switch`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({profile:R})}).then(E=>{if(!E.ok)throw new Error("Failed to switch profile");return E.json()}).then(()=>{o(E=>E&&{...E,current:R}),d(null)}).catch(E=>{C(E.message),d(null)})}function x(R){p(R),C(null),fetch(`/api/connectors/${n}/profiles/${R}`,{method:"DELETE"}).then(E=>{if(!E.ok)throw new Error("Failed to delete profile");return E.json()}).then(()=>{p(null),y()}).catch(E=>{C(E.message),p(null)})}return r?v.jsxs("div",{className:"space-y-1.5",children:[v.jsxs("h4",{className:"text-sm font-medium flex items-center gap-1.5",children:[v.jsx(Uc,{className:"size-3.5"}),"Profiles"]}),v.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground py-2",children:[v.jsx(Hc,{className:"size-3 animate-spin"}),"Loading profiles..."]})]}):h&&!i?v.jsxs("div",{className:"space-y-1.5",children:[v.jsxs("h4",{className:"text-sm font-medium flex items-center gap-1.5",children:[v.jsx(Uc,{className:"size-3.5"}),"Profiles"]}),v.jsx("p",{className:"text-xs text-destructive",children:h})]}):i?v.jsxs("div",{className:"space-y-1.5",children:[v.jsxs("h4",{className:"text-sm font-medium flex items-center gap-1.5",children:[v.jsx(Uc,{className:"size-3.5"}),"Profiles",v.jsxs("span",{className:"text-xs font-normal text-muted-foreground",children:["(active: ",i.current,")"]})]}),h&&v.jsx("p",{className:"text-xs text-destructive",children:h}),v.jsx("div",{className:"rounded-md border divide-y",children:i.profiles.map(R=>{const E=R===i.current,M=f===R,z=m===R;return v.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("div",{className:`size-2 rounded-full ${E?"bg-green-500":"bg-muted-foreground/30"}`}),v.jsx("span",{className:"text-sm",children:R}),E&&v.jsx(At,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4 border-green-300 text-green-700 dark:border-green-800 dark:text-green-400",children:"active"})]}),v.jsxs("div",{className:"flex items-center gap-1",children:[!E&&v.jsxs(Ue,{variant:"ghost",size:"sm",className:"h-6 px-2 text-xs",disabled:M||z,onClick:()=>b(R),children:[M?v.jsx(Hc,{className:"size-3 animate-spin mr-1"}):null,"Switch"]}),R!=="default"&&v.jsx(Ue,{variant:"ghost",size:"icon",className:"size-6 text-muted-foreground hover:text-destructive",disabled:z||M,onClick:()=>x(R),children:z?v.jsx(Hc,{className:"size-3 animate-spin"}):v.jsx(T1,{className:"size-3"})})]})]},R)})})]}):null}function e_({connector:n,open:i,onOpenChange:o,loading:r}){var d,m;if(!n&&!r)return null;const s=n?`connectors run ${n.name} --help`:"",f=n?`~/.hasna/connectors/connect-${n.name}/`:"";return v.jsx(j0,{open:i,onOpenChange:o,children:v.jsx(N0,{className:"max-w-lg max-h-[85vh] overflow-y-auto",children:r||!n?v.jsxs(v.Fragment,{children:[v.jsxs(kf,{children:[v.jsx(Lf,{children:"Loading..."}),v.jsx(Vf,{children:"Fetching connector details"})]}),v.jsx("div",{className:"flex items-center justify-center py-12 text-muted-foreground text-sm",children:"Loading connector details..."})]}):v.jsxs(v.Fragment,{children:[v.jsxs(kf,{children:[v.jsxs(Lf,{className:"flex items-center gap-2",children:[n.displayName,n.version&&v.jsxs("span",{className:"text-sm font-normal text-muted-foreground",children:["v",n.version]})]}),v.jsx(Vf,{children:n.description})]}),v.jsxs("div",{className:"space-y-4",children:[v.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[v.jsx(At,{variant:"outline",children:n.category}),n.auth&&v.jsx(JE,{type:n.auth.type}),(d=n.auth)!=null&&d.configured?v.jsxs(At,{variant:"outline",className:"border-green-300 text-green-700 dark:border-green-800 dark:text-green-400",children:[v.jsx(pv,{className:"size-3 mr-1"}),"Configured"]}):n.auth?v.jsxs(At,{variant:"outline",className:"border-orange-300 text-orange-700 dark:border-orange-800 dark:text-orange-400",children:[v.jsx(vv,{className:"size-3 mr-1"}),"Needs auth"]}):null]}),n.overview&&v.jsxs("div",{className:"space-y-1.5",children:[v.jsx("h4",{className:"text-sm font-medium",children:"Overview"}),v.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:n.overview})]}),((m=n.auth)==null?void 0:m.envVars)&&n.auth.envVars.length>0&&v.jsxs("div",{className:"space-y-1.5",children:[v.jsx("h4",{className:"text-sm font-medium",children:"Environment Variables"}),v.jsx("div",{className:"rounded-md border",children:v.jsxs(T0,{children:[v.jsx(D0,{children:v.jsxs(no,{children:[v.jsx(Kr,{className:"h-8 text-xs",children:"Variable"}),v.jsx(Kr,{className:"h-8 text-xs",children:"Description"}),v.jsx(Kr,{className:"h-8 text-xs w-16",children:"Set"})]})}),v.jsx(z0,{children:n.auth.envVars.map(p=>v.jsxs(no,{children:[v.jsx(lo,{className:"py-1.5",children:v.jsx("code",{className:"text-xs font-mono bg-muted px-1.5 py-0.5 rounded",children:p.variable})}),v.jsx(lo,{className:"py-1.5 text-xs text-muted-foreground",children:p.description}),v.jsx(lo,{className:"py-1.5",children:p.set?v.jsx(sf,{className:"size-3.5 text-green-500"}):v.jsx(cf,{className:"size-3.5 text-muted-foreground"})})]},p.variable))})]})})]}),v.jsx(WE,{connectorName:n.name}),v.jsxs("div",{className:"space-y-1.5",children:[v.jsxs("h4",{className:"text-sm font-medium flex items-center gap-1.5",children:[v.jsx(C1,{className:"size-3.5"}),"Usage"]}),v.jsxs("div",{className:"flex items-center gap-1",children:[v.jsx("code",{className:"flex-1 rounded border bg-muted px-2 py-1.5 text-xs font-mono text-muted-foreground",children:s}),v.jsx(dv,{text:s})]})]}),v.jsxs("div",{className:"space-y-1.5",children:[v.jsxs("h4",{className:"text-sm font-medium flex items-center gap-1.5",children:[v.jsx(w1,{className:"size-3.5"}),"Storage Path"]}),v.jsxs("div",{className:"flex items-center gap-1",children:[v.jsx("code",{className:"flex-1 rounded border bg-muted px-2 py-1.5 text-xs font-mono text-muted-foreground",children:f}),v.jsx(dv,{text:f})]})]})]})]})})})}function t_({activities:n}){const i={key_saved:{label:"API key saved",color:"text-blue-500"},token_refreshed:{label:"Token refreshed",color:"text-green-500"},installed:{label:"Installed",color:"text-emerald-500"},uninstalled:{label:"Uninstalled",color:"text-red-500"},oauth_connected:{label:"OAuth connected",color:"text-purple-500"}};function o(r){const s=Date.now()-r,f=Math.floor(s/1e3);if(f<5)return"just now";if(f<60)return`${f}s ago`;const d=Math.floor(f/60);if(d<60)return`${d}m ago`;const m=Math.floor(d/60);return m<24?`${m}h ago`:`${Math.floor(m/24)}d ago`}return n.length===0?v.jsxs("div",{className:"text-center py-16 text-muted-foreground",children:[v.jsx("p",{className:"text-lg font-medium",children:"No activity yet"}),v.jsx("p",{className:"text-sm mt-1",children:"Install connectors, save API keys, or refresh tokens to see activity here."})]}):v.jsx("div",{className:"rounded-lg border divide-y",children:n.map((r,s)=>{const f=i[r.action]||{label:r.action,color:"text-muted-foreground"};return v.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 text-sm",children:[v.jsx("span",{className:`font-medium ${f.color}`,children:f.label}),v.jsx("code",{className:"rounded bg-muted px-1.5 py-0.5 text-xs font-mono text-muted-foreground",children:r.connector}),r.detail&&v.jsx("span",{className:"text-xs text-muted-foreground hidden sm:inline",children:r.detail}),v.jsx("span",{className:"ml-auto text-xs text-muted-foreground whitespace-nowrap",children:o(r.timestamp)})]},`${r.timestamp}-${s}`)})})}function n_(){const[n,i]=w.useState("dashboard"),[o,r]=w.useState([]),[s,f]=w.useState(!0),[d,m]=w.useState(null),[p,h]=w.useState(!1),[C,y]=w.useState(!1),[b,x]=w.useState(null),[R,E]=w.useState(!1),[M,z]=w.useState([]),[N,L]=w.useState(null),F=w.useCallback(async()=>{try{const[k,K]=await Promise.all([fetch("/api/connectors"),fetch("/api/activity")]),J=await k.json();if(r(J),K.ok){const te=await K.json();z(te)}}catch{G("Failed to load connectors","error")}finally{f(!1)}},[]);w.useEffect(()=>{F()},[F]),w.useEffect(()=>{function k(K){var J;((J=K.data)==null?void 0:J.type)==="oauth-complete"&&(G(`Connected ${K.data.connector}`,"success"),F())}return window.addEventListener("message",k),()=>window.removeEventListener("message",k)},[F]);function G(k,K){L({message:k,type:K}),setTimeout(()=>L(null),3e3)}function P(k){m(k),h(!0)}async function Q(k){try{const J=await(await fetch(`/api/connectors/${k}/refresh`,{method:"POST"})).json();J.success?(G(`Token refreshed for ${k}`,"success"),F()):G(J.error||"Failed to refresh","error")}catch{G("Failed to refresh token","error")}}const[Y,W]=w.useState(!1),[se,ce]=w.useState(null);async function ne(k){y(!0),E(!0),x(null);try{const J=await(await fetch(`/api/connectors/${k.name}`)).json();x(J)}catch{G("Failed to load connector details","error"),y(!1)}finally{E(!1)}}function ie(k){window.open(`/oauth/${k}/start`,"_blank","width=600,height=700")}async function de(k){try{const J=await(await fetch(`/api/connectors/${k}/install`,{method:"POST"})).json();J.success?(G(`Installed ${k}`,"success"),await F()):G(J.error||`Failed to install ${k}`,"error")}catch{G(`Failed to install ${k}`,"error")}}async function ve(k){try{const J=await(await fetch(`/api/connectors/${k}/uninstall`,{method:"POST"})).json();J.success?(G(`Uninstalled ${k}`,"success"),await F()):G(J.error||`Failed to uninstall ${k}`,"error")}catch{G(`Failed to uninstall ${k}`,"error")}}async function _(){W(!0);try{const K=await(await fetch("/api/update",{method:"POST"})).json();K.count!==void 0?(G(K.count>0?`Updated ${K.count}/${K.total} connectors`:"No connectors to update",K.count>0?"success":"error"),F()):G(K.error||"Update failed","error")}catch{G("Failed to update connectors","error")}finally{W(!1)}}function T(k){navigator.clipboard.writeText(k).then(()=>{ce(k),setTimeout(()=>ce(null),2e3)})}const I=w.useRef(null);async function ee(){try{const k=await fetch("/api/export");if(!k.ok){const Ae=await k.json();G(Ae.error||"Export failed","error");return}const K=await k.blob(),J=URL.createObjectURL(K),te=document.createElement("a");te.href=J;const re=k.headers.get("Content-Disposition"),me=re==null?void 0:re.match(/filename="(.+)"/);te.download=(me==null?void 0:me[1])||"connectors-backup.json",document.body.appendChild(te),te.click(),document.body.removeChild(te),URL.revokeObjectURL(J),G("Credentials exported","success")}catch{G("Failed to export credentials","error")}}async function B(k){var J;const K=(J=k.target.files)==null?void 0:J[0];if(K)try{const te=await K.text(),re=JSON.parse(te),me=await fetch("/api/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(re)}),Ae=await me.json();me.ok&&Ae.success?(G(`Imported ${Ae.imported} credential profiles`,"success"),F()):G(Ae.error||"Import failed","error")}catch{G("Failed to import credentials — invalid file","error")}finally{I.current&&(I.current.value="")}}const O=[{key:"dashboard",label:"Dashboard"},{key:"activity",label:`Activity${M.length?` (${M.length})`:""}`}];return v.jsxs("div",{className:"min-h-screen",children:[v.jsx("header",{className:"border-b",children:v.jsxs("div",{className:"mx-auto flex h-14 max-w-6xl items-center justify-between px-6",children:[v.jsxs("div",{className:"flex items-center gap-6",children:[v.jsxs("button",{className:"flex items-center gap-3 hover:opacity-80 transition-opacity",onClick:()=>i("dashboard"),children:[v.jsx("img",{src:"/logo.jpg",alt:"Hasna",className:"h-7 w-auto rounded"}),v.jsxs("h1",{className:"text-base font-semibold",children:["Hasna ",v.jsx("span",{className:"font-normal text-muted-foreground",children:"Connectors"})]})]}),v.jsx("nav",{className:"flex items-center gap-1",children:O.map(k=>v.jsx(Ue,{variant:n===k.key?"secondary":"ghost",size:"sm",onClick:()=>i(k.key),children:k.label},k.key))})]}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Ue,{variant:"outline",size:"icon",className:"size-8",onClick:F,disabled:s,title:"Reload",children:v.jsx(xv,{className:`size-4 ${s?"animate-spin":""}`})}),v.jsx($R,{})]})]})}),v.jsxs("main",{className:"mx-auto max-w-6xl space-y-6 px-6 py-6",children:[n==="dashboard"&&v.jsxs(v.Fragment,{children:[v.jsx(YR,{connectors:o}),v.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[v.jsxs(Ue,{variant:"outline",size:"sm",onClick:_,disabled:Y,children:[v.jsx(b1,{className:`size-3.5 ${Y?"animate-spin":""}`}),Y?"Updating...":"Update All"]}),v.jsx(l_,{label:"npm",command:"npx @hasna/connectors",icon:v.jsx(O1,{className:"size-3.5"}),copied:se,onCopy:T}),v.jsxs(Ue,{variant:"outline",size:"sm",onClick:ee,children:[v.jsx(Jr,{className:"size-3.5"}),"Export"]}),v.jsxs(Ue,{variant:"outline",size:"sm",onClick:()=>{var k;return(k=I.current)==null?void 0:k.click()},children:[v.jsx(D1,{className:"size-3.5"}),"Import"]}),v.jsx("input",{ref:I,type:"file",accept:".json",className:"hidden",onChange:B}),v.jsxs(Ue,{variant:"outline",size:"sm",onClick:()=>window.open("https://github.com/hasna/connectors","_blank"),children:[v.jsx(x1,{className:"size-3.5"}),"Docs"]})]}),v.jsx(QE,{data:o,onConfigure:P,onRefresh:Q,onOAuthStart:ie,onInstall:de,onUninstall:ve,onRowClick:ne})]}),n==="activity"&&v.jsx(t_,{activities:M})]}),v.jsx(KE,{connector:d,open:p,onOpenChange:h,onSaved:()=>{G(`Key saved for ${d==null?void 0:d.name}`,"success"),F()}}),v.jsx(e_,{connector:b,open:C,onOpenChange:y,loading:R}),N&&v.jsx("div",{className:`fixed bottom-6 right-6 z-50 rounded-lg border px-4 py-3 text-sm shadow-lg transition-all ${N.type==="success"?"border-green-200 bg-green-50 text-green-800 dark:border-green-900 dark:bg-green-950 dark:text-green-200":"border-red-200 bg-red-50 text-red-800 dark:border-red-900 dark:bg-red-950 dark:text-red-200"}`,children:N.message})]})}function l_({label:n,command:i,icon:o,copied:r,onCopy:s}){const f=r===i;return v.jsxs(Ue,{variant:"outline",size:"sm",className:"gap-1.5",onClick:()=>s(i),children:[o,n,v.jsx("code",{className:"ml-1 rounded bg-muted px-1.5 py-0.5 text-[11px] font-mono text-muted-foreground",children:i}),f?v.jsx(uo,{className:"size-3 text-green-500"}):v.jsx(iu,{className:"size-3 opacity-50"})]})}g1.createRoot(document.getElementById("root")).render(v.jsx(w.StrictMode,{children:v.jsx(m1,{defaultTheme:"light",children:v.jsx(n_,{})})}));
|