diff --git a/go.mod b/go.mod index 4856f692..392664b5 100644 --- a/go.mod +++ b/go.mod @@ -91,6 +91,7 @@ require ( github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect github.com/ncruces/go-strftime v0.1.9 // indirect + github.com/nrdcg/namesilo v0.2.1 // indirect github.com/opentracing/opentracing-go v1.2.1-0.20220228012449-10b1cf09e00b // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/go.sum b/go.sum index 96e768f6..5ed88c9d 100644 --- a/go.sum +++ b/go.sum @@ -205,6 +205,7 @@ github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= @@ -290,6 +291,8 @@ github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjY github.com/ncruces/go-strftime v0.1.9 h1:bY0MQC28UADQmHmaF5dgpLmImcShSi2kHU9XLdhx/f4= github.com/ncruces/go-strftime v0.1.9/go.mod h1:Fwc5htZGVVkseilnfgOVb9mKy6w1naJmn9CehxcKcls= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= +github.com/nrdcg/namesilo v0.2.1 h1:kLjCjsufdW/IlC+iSfAqj0iQGgKjlbUUeDJio5Y6eMg= +github.com/nrdcg/namesilo v0.2.1/go.mod h1:lwMvfQTyYq+BbjJd30ylEG4GPSS6PII0Tia4rRpRiyw= github.com/opentracing/opentracing-go v1.2.1-0.20220228012449-10b1cf09e00b h1:FfH+VrHHk6Lxt9HdVS0PXzSXFyS2NbZKXv33FYPol0A= github.com/opentracing/opentracing-go v1.2.1-0.20220228012449-10b1cf09e00b/go.mod h1:AC62GU6hc0BrNm+9RK9VSiwa/EUe1bkIeFORAMcHvJU= github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= diff --git a/internal/applicant/applicant.go b/internal/applicant/applicant.go index 60e3845f..786a4160 100644 --- a/internal/applicant/applicant.go +++ b/internal/applicant/applicant.go @@ -19,6 +19,7 @@ const ( configTypeTencent = "tencent" configTypeAliyun = "aliyun" configTypeCloudflare = "cloudflare" + configTypeNamesilo = "namesilo" ) type Certificate struct { @@ -70,6 +71,8 @@ func Get(record *models.Record) (Applicant, error) { return NewAliyun(option), nil case configTypeCloudflare: return NewCloudflare(option), nil + case configTypeNamesilo: + return NewNamesilo(option), nil default: return nil, errors.New("unknown config type") } diff --git a/internal/applicant/namesilo.go b/internal/applicant/namesilo.go new file mode 100644 index 00000000..f5c0eac0 --- /dev/null +++ b/internal/applicant/namesilo.go @@ -0,0 +1,34 @@ +package applicant + +import ( + "certimate/internal/domain" + "encoding/json" + "os" + + namesiloProvider "github.com/go-acme/lego/v4/providers/dns/namesilo" +) + +type namesilo struct { + option *ApplyOption +} + +func NewNamesilo(option *ApplyOption) Applicant { + return &namesilo{ + option: option, + } +} + +func (a *namesilo) Apply() (*Certificate, error) { + + access := &domain.NameSiloAccess{} + json.Unmarshal([]byte(a.option.Access), access) + + os.Setenv("NAMESILO_API_KEY", access.ApiKey) + + dnsProvider, err := namesiloProvider.NewDNSProvider() + if err != nil { + return nil, err + } + + return apply(a.option, dnsProvider) +} diff --git a/internal/domain/access.go b/internal/domain/access.go index c778256d..3b81ee63 100644 --- a/internal/domain/access.go +++ b/internal/domain/access.go @@ -18,3 +18,7 @@ type QiniuAccess struct { AccessKey string `json:"accessKey"` SecretKey string `json:"secretKey"` } + +type NameSiloAccess struct { + ApiKey string `json:"apiKey"` +} diff --git a/migrations/1725973273_collections_snapshot.go b/migrations/1725973273_collections_snapshot.go new file mode 100644 index 00000000..42b49ddb --- /dev/null +++ b/migrations/1725973273_collections_snapshot.go @@ -0,0 +1,508 @@ +package migrations + +import ( + "encoding/json" + + "github.com/pocketbase/dbx" + "github.com/pocketbase/pocketbase/daos" + m "github.com/pocketbase/pocketbase/migrations" + "github.com/pocketbase/pocketbase/models" +) + +func init() { + m.Register(func(db dbx.Builder) error { + jsonData := `[ + { + "id": "_pb_users_auth_", + "created": "2024-07-29 09:44:56.398Z", + "updated": "2024-09-07 07:42:28.389Z", + "name": "users", + "type": "auth", + "system": false, + "schema": [ + { + "system": false, + "id": "users_name", + "name": "name", + "type": "text", + "required": false, + "presentable": false, + "unique": false, + "options": { + "min": null, + "max": null, + "pattern": "" + } + }, + { + "system": false, + "id": "users_avatar", + "name": "avatar", + "type": "file", + "required": false, + "presentable": false, + "unique": false, + "options": { + "mimeTypes": [ + "image/jpeg", + "image/png", + "image/svg+xml", + "image/gif", + "image/webp" + ], + "thumbs": null, + "maxSelect": 1, + "maxSize": 5242880, + "protected": false + } + } + ], + "indexes": [], + "listRule": "id = @request.auth.id", + "viewRule": "id = @request.auth.id", + "createRule": "", + "updateRule": "id = @request.auth.id", + "deleteRule": "id = @request.auth.id", + "options": { + "allowEmailAuth": true, + "allowOAuth2Auth": true, + "allowUsernameAuth": true, + "exceptEmailDomains": null, + "manageRule": null, + "minPasswordLength": 8, + "onlyEmailDomains": null, + "onlyVerified": false, + "requireEmail": false + } + }, + { + "id": "z3p974ainxjqlvs", + "created": "2024-07-29 10:02:48.334Z", + "updated": "2024-09-07 07:42:28.389Z", + "name": "domains", + "type": "base", + "system": false, + "schema": [ + { + "system": false, + "id": "iuaerpl2", + "name": "domain", + "type": "text", + "required": false, + "presentable": false, + "unique": false, + "options": { + "min": null, + "max": null, + "pattern": "" + } + }, + { + "system": false, + "id": "v98eebqq", + "name": "crontab", + "type": "text", + "required": false, + "presentable": false, + "unique": false, + "options": { + "min": null, + "max": null, + "pattern": "" + } + }, + { + "system": false, + "id": "alc8e9ow", + "name": "access", + "type": "relation", + "required": false, + "presentable": false, + "unique": false, + "options": { + "collectionId": "4yzbv8urny5ja1e", + "cascadeDelete": false, + "minSelect": null, + "maxSelect": 1, + "displayFields": null + } + }, + { + "system": false, + "id": "topsc9bj", + "name": "certUrl", + "type": "text", + "required": false, + "presentable": false, + "unique": false, + "options": { + "min": null, + "max": null, + "pattern": "" + } + }, + { + "system": false, + "id": "vixgq072", + "name": "certStableUrl", + "type": "text", + "required": false, + "presentable": false, + "unique": false, + "options": { + "min": null, + "max": null, + "pattern": "" + } + }, + { + "system": false, + "id": "g3a3sza5", + "name": "privateKey", + "type": "text", + "required": false, + "presentable": false, + "unique": false, + "options": { + "min": null, + "max": null, + "pattern": "" + } + }, + { + "system": false, + "id": "gr6iouny", + "name": "certificate", + "type": "text", + "required": false, + "presentable": false, + "unique": false, + "options": { + "min": null, + "max": null, + "pattern": "" + } + }, + { + "system": false, + "id": "tk6vnrmn", + "name": "issuerCertificate", + "type": "text", + "required": false, + "presentable": false, + "unique": false, + "options": { + "min": null, + "max": null, + "pattern": "" + } + }, + { + "system": false, + "id": "sjo6ibse", + "name": "csr", + "type": "text", + "required": false, + "presentable": false, + "unique": false, + "options": { + "min": null, + "max": null, + "pattern": "" + } + }, + { + "system": false, + "id": "x03n1bkj", + "name": "expiredAt", + "type": "date", + "required": false, + "presentable": false, + "unique": false, + "options": { + "min": "", + "max": "" + } + }, + { + "system": false, + "id": "srybpixz", + "name": "targetType", + "type": "select", + "required": false, + "presentable": false, + "unique": false, + "options": { + "maxSelect": 1, + "values": [ + "aliyun-oss", + "aliyun-cdn", + "ssh", + "webhook", + "tencent-cdn", + "qiniu-cdn" + ] + } + }, + { + "system": false, + "id": "xy7yk0mb", + "name": "targetAccess", + "type": "relation", + "required": false, + "presentable": false, + "unique": false, + "options": { + "collectionId": "4yzbv8urny5ja1e", + "cascadeDelete": false, + "minSelect": null, + "maxSelect": 1, + "displayFields": null + } + }, + { + "system": false, + "id": "6jqeyggw", + "name": "enabled", + "type": "bool", + "required": false, + "presentable": false, + "unique": false, + "options": {} + }, + { + "system": false, + "id": "hdsjcchf", + "name": "deployed", + "type": "bool", + "required": false, + "presentable": false, + "unique": false, + "options": {} + }, + { + "system": false, + "id": "aiya3rev", + "name": "rightnow", + "type": "bool", + "required": false, + "presentable": false, + "unique": false, + "options": {} + }, + { + "system": false, + "id": "ixznmhzc", + "name": "lastDeployedAt", + "type": "date", + "required": false, + "presentable": false, + "unique": false, + "options": { + "min": "", + "max": "" + } + }, + { + "system": false, + "id": "ghtlkn5j", + "name": "lastDeployment", + "type": "relation", + "required": false, + "presentable": false, + "unique": false, + "options": { + "collectionId": "0a1o4e6sstp694f", + "cascadeDelete": false, + "minSelect": null, + "maxSelect": 1, + "displayFields": null + } + } + ], + "indexes": [ + "CREATE UNIQUE INDEX ` + "`" + `idx_4ABO6EQ` + "`" + ` ON ` + "`" + `domains` + "`" + ` (` + "`" + `domain` + "`" + `)" + ], + "listRule": null, + "viewRule": null, + "createRule": null, + "updateRule": null, + "deleteRule": null, + "options": {} + }, + { + "id": "4yzbv8urny5ja1e", + "created": "2024-07-29 10:04:39.685Z", + "updated": "2024-09-10 12:51:41.405Z", + "name": "access", + "type": "base", + "system": false, + "schema": [ + { + "system": false, + "id": "geeur58v", + "name": "name", + "type": "text", + "required": false, + "presentable": false, + "unique": false, + "options": { + "min": null, + "max": null, + "pattern": "" + } + }, + { + "system": false, + "id": "iql7jpwx", + "name": "config", + "type": "json", + "required": false, + "presentable": false, + "unique": false, + "options": { + "maxSize": 2000000 + } + }, + { + "system": false, + "id": "hwy7m03o", + "name": "configType", + "type": "select", + "required": false, + "presentable": false, + "unique": false, + "options": { + "maxSelect": 1, + "values": [ + "aliyun", + "tencent", + "ssh", + "webhook", + "cloudflare", + "qiniu", + "namesilo" + ] + } + }, + { + "system": false, + "id": "lr33hiwg", + "name": "deleted", + "type": "date", + "required": false, + "presentable": false, + "unique": false, + "options": { + "min": "", + "max": "" + } + } + ], + "indexes": [ + "CREATE UNIQUE INDEX ` + "`" + `idx_wkoST0j` + "`" + ` ON ` + "`" + `access` + "`" + ` (` + "`" + `name` + "`" + `)" + ], + "listRule": null, + "viewRule": null, + "createRule": null, + "updateRule": null, + "deleteRule": null, + "options": {} + }, + { + "id": "0a1o4e6sstp694f", + "created": "2024-07-30 06:30:27.801Z", + "updated": "2024-09-07 07:42:28.390Z", + "name": "deployments", + "type": "base", + "system": false, + "schema": [ + { + "system": false, + "id": "farvlzk7", + "name": "domain", + "type": "relation", + "required": false, + "presentable": false, + "unique": false, + "options": { + "collectionId": "z3p974ainxjqlvs", + "cascadeDelete": false, + "minSelect": null, + "maxSelect": 1, + "displayFields": null + } + }, + { + "system": false, + "id": "jx5f69i3", + "name": "log", + "type": "json", + "required": false, + "presentable": false, + "unique": false, + "options": { + "maxSize": 2000000 + } + }, + { + "system": false, + "id": "qbxdtg9q", + "name": "phase", + "type": "select", + "required": false, + "presentable": false, + "unique": false, + "options": { + "maxSelect": 1, + "values": [ + "check", + "apply", + "deploy" + ] + } + }, + { + "system": false, + "id": "rglrp1hz", + "name": "phaseSuccess", + "type": "bool", + "required": false, + "presentable": false, + "unique": false, + "options": {} + }, + { + "system": false, + "id": "lt1g1blu", + "name": "deployedAt", + "type": "date", + "required": false, + "presentable": false, + "unique": false, + "options": { + "min": "", + "max": "" + } + } + ], + "indexes": [], + "listRule": null, + "viewRule": null, + "createRule": null, + "updateRule": null, + "deleteRule": null, + "options": {} + } + ]` + + collections := []*models.Collection{} + if err := json.Unmarshal([]byte(jsonData), &collections); err != nil { + return err + } + + return daos.New(db).ImportCollections(collections, true, nil) + }, func(db dbx.Builder) error { + return nil + }) +} diff --git a/ui/dist/assets/index-BGMLTQZA.js b/ui/dist/assets/index-BKUIxIk5.js similarity index 70% rename from ui/dist/assets/index-BGMLTQZA.js rename to ui/dist/assets/index-BKUIxIk5.js index ef665b74..c4f0dff6 100644 --- a/ui/dist/assets/index-BGMLTQZA.js +++ b/ui/dist/assets/index-BKUIxIk5.js @@ -1,4 +1,4 @@ -var wT=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var u8=wT((_8,Ou)=>{function N0(e,t){for(var r=0;rn[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(s){if(s.ep)return;s.ep=!0;const o=r(s);fetch(s.href,o)}})();var Rc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var j0={exports:{}},Od={},R0={exports:{}},Je={};/** +var wT=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var d8=wT((b8,Au)=>{function j0(e,t){for(var r=0;rn[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(s){if(s.ep)return;s.ep=!0;const o=r(s);fetch(s.href,o)}})();var Rc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var N0={exports:{}},Ad={},R0={exports:{}},Je={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var wT=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var u8=wT((_8,Ou) * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var tc=Symbol.for("react.element"),_T=Symbol.for("react.portal"),bT=Symbol.for("react.fragment"),ST=Symbol.for("react.strict_mode"),kT=Symbol.for("react.profiler"),CT=Symbol.for("react.provider"),ET=Symbol.for("react.context"),TT=Symbol.for("react.forward_ref"),NT=Symbol.for("react.suspense"),jT=Symbol.for("react.memo"),RT=Symbol.for("react.lazy"),qv=Symbol.iterator;function PT(e){return e===null||typeof e!="object"?null:(e=qv&&e[qv]||e["@@iterator"],typeof e=="function"?e:null)}var P0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D0=Object.assign,O0={};function aa(e,t,r){this.props=e,this.context=t,this.refs=O0,this.updater=r||P0}aa.prototype.isReactComponent={};aa.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};aa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function A0(){}A0.prototype=aa.prototype;function gm(e,t,r){this.props=e,this.context=t,this.refs=O0,this.updater=r||P0}var vm=gm.prototype=new A0;vm.constructor=gm;D0(vm,aa.prototype);vm.isPureReactComponent=!0;var Xv=Array.isArray,M0=Object.prototype.hasOwnProperty,ym={current:null},I0={key:!0,ref:!0,__self:!0,__source:!0};function L0(e,t,r){var n,s={},o=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)M0.call(t,n)&&!I0.hasOwnProperty(n)&&(s[n]=t[n]);var a=arguments.length-2;if(a===1)s.children=r;else if(1()=>(t||e((t={exports:{}}).exports,t),t.exports);var u8=wT((_8,Ou) * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var IT=y,LT=Symbol.for("react.element"),FT=Symbol.for("react.fragment"),zT=Object.prototype.hasOwnProperty,UT=IT.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,VT={key:!0,ref:!0,__self:!0,__source:!0};function U0(e,t,r){var n,s={},o=null,i=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(n in t)zT.call(t,n)&&!VT.hasOwnProperty(n)&&(s[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)s[n]===void 0&&(s[n]=t[n]);return{$$typeof:LT,type:e,key:o,ref:i,props:s,_owner:UT.current}}Od.Fragment=FT;Od.jsx=U0;Od.jsxs=U0;j0.exports=Od;var c=j0.exports,Fh={},V0={exports:{}},zr={},W0={exports:{}},$0={};/** + */var IT=y,LT=Symbol.for("react.element"),FT=Symbol.for("react.fragment"),zT=Object.prototype.hasOwnProperty,UT=IT.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,VT={key:!0,ref:!0,__self:!0,__source:!0};function U0(e,t,r){var n,s={},o=null,i=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(n in t)zT.call(t,n)&&!VT.hasOwnProperty(n)&&(s[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)s[n]===void 0&&(s[n]=t[n]);return{$$typeof:LT,type:e,key:o,ref:i,props:s,_owner:UT.current}}Ad.Fragment=FT;Ad.jsx=U0;Ad.jsxs=U0;N0.exports=Ad;var c=N0.exports,Fh={},V0={exports:{}},zr={},W0={exports:{}},$0={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var wT=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var u8=wT((_8,Ou) * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(Z,I){var Q=Z.length;Z.push(I);e:for(;0>>1,V=Z[z];if(0>>1;zs(se,Q))Ees(fe,se)?(Z[z]=fe,Z[Ee]=Q,z=Ee):(Z[z]=se,Z[ne]=Q,z=ne);else if(Ees(fe,Q))Z[z]=fe,Z[Ee]=Q,z=Ee;else break e}}return I}function s(Z,I){var Q=Z.sortIndex-I.sortIndex;return Q!==0?Q:Z.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],u=[],d=1,f=null,p=3,m=!1,x=!1,g=!1,w=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(Z){for(var I=r(u);I!==null;){if(I.callback===null)n(u);else if(I.startTime<=Z)n(u),I.sortIndex=I.expirationTime,t(l,I);else break;I=r(u)}}function C(Z){if(g=!1,_(Z),!x)if(r(l)!==null)x=!0,te(E);else{var I=r(u);I!==null&&$(C,I.startTime-Z)}}function E(Z,I){x=!1,g&&(g=!1,v(D),D=-1),m=!0;var Q=p;try{for(_(I),f=r(l);f!==null&&(!(f.expirationTime>I)||Z&&!q());){var z=f.callback;if(typeof z=="function"){f.callback=null,p=f.priorityLevel;var V=z(f.expirationTime<=I);I=e.unstable_now(),typeof V=="function"?f.callback=V:f===r(l)&&n(l),_(I)}else n(l);f=r(l)}if(f!==null)var de=!0;else{var ne=r(u);ne!==null&&$(C,ne.startTime-I),de=!1}return de}finally{f=null,p=Q,m=!1}}var T=!1,R=null,D=-1,P=5,L=-1;function q(){return!(e.unstable_now()-LZ||125z?(Z.sortIndex=Q,t(u,Z),r(l)===null&&Z===r(u)&&(g?(v(D),D=-1):g=!0,$(C,Q-z))):(Z.sortIndex=V,t(l,Z),x||m||(x=!0,te(E))),Z},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(Z){var I=p;return function(){var Q=p;p=I;try{return Z.apply(this,arguments)}finally{p=Q}}}})($0);W0.exports=$0;var WT=W0.exports;/** + */(function(e){function t(Z,I){var Q=Z.length;Z.push(I);e:for(;0>>1,V=Z[z];if(0>>1;zs(se,Q))Tes(fe,se)?(Z[z]=fe,Z[Te]=Q,z=Te):(Z[z]=se,Z[ne]=Q,z=ne);else if(Tes(fe,Q))Z[z]=fe,Z[Te]=Q,z=Te;else break e}}return I}function s(Z,I){var Q=Z.sortIndex-I.sortIndex;return Q!==0?Q:Z.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],u=[],d=1,f=null,p=3,m=!1,x=!1,g=!1,w=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(Z){for(var I=r(u);I!==null;){if(I.callback===null)n(u);else if(I.startTime<=Z)n(u),I.sortIndex=I.expirationTime,t(l,I);else break;I=r(u)}}function C(Z){if(g=!1,_(Z),!x)if(r(l)!==null)x=!0,te(E);else{var I=r(u);I!==null&&$(C,I.startTime-Z)}}function E(Z,I){x=!1,g&&(g=!1,v(D),D=-1),m=!0;var Q=p;try{for(_(I),f=r(l);f!==null&&(!(f.expirationTime>I)||Z&&!q());){var z=f.callback;if(typeof z=="function"){f.callback=null,p=f.priorityLevel;var V=z(f.expirationTime<=I);I=e.unstable_now(),typeof V=="function"?f.callback=V:f===r(l)&&n(l),_(I)}else n(l);f=r(l)}if(f!==null)var de=!0;else{var ne=r(u);ne!==null&&$(C,ne.startTime-I),de=!1}return de}finally{f=null,p=Q,m=!1}}var T=!1,R=null,D=-1,P=5,L=-1;function q(){return!(e.unstable_now()-LZ||125z?(Z.sortIndex=Q,t(u,Z),r(l)===null&&Z===r(u)&&(g?(v(D),D=-1):g=!0,$(C,Q-z))):(Z.sortIndex=V,t(l,Z),x||m||(x=!0,te(E))),Z},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(Z){var I=p;return function(){var Q=p;p=I;try{return Z.apply(this,arguments)}finally{p=Q}}}})($0);W0.exports=$0;var WT=W0.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ var wT=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var u8=wT((_8,Ou) * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var $T=y,Fr=WT;function oe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zh=Object.prototype.hasOwnProperty,BT=/^[: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]*$/,Jv={},ey={};function HT(e){return zh.call(ey,e)?!0:zh.call(Jv,e)?!1:BT.test(e)?ey[e]=!0:(Jv[e]=!0,!1)}function YT(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ZT(e,t,r,n){if(t===null||typeof t>"u"||YT(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function vr(e,t,r,n,s,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=s,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var rr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){rr[e]=new vr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];rr[t]=new vr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){rr[e]=new vr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){rr[e]=new vr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){rr[e]=new vr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){rr[e]=new vr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){rr[e]=new vr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){rr[e]=new vr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){rr[e]=new vr(e,5,!1,e.toLowerCase(),null,!1,!1)});var wm=/[\-:]([a-z])/g;function _m(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(wm,_m);rr[t]=new vr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(wm,_m);rr[t]=new vr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(wm,_m);rr[t]=new vr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){rr[e]=new vr(e,1,!1,e.toLowerCase(),null,!1,!1)});rr.xlinkHref=new vr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){rr[e]=new vr(e,1,!1,e.toLowerCase(),null,!0,!0)});function bm(e,t,r,n){var s=rr.hasOwnProperty(t)?rr[t]:null;(s!==null?s.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zh=Object.prototype.hasOwnProperty,BT=/^[: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]*$/,Jv={},ey={};function HT(e){return zh.call(ey,e)?!0:zh.call(Jv,e)?!1:BT.test(e)?ey[e]=!0:(Jv[e]=!0,!1)}function YT(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ZT(e,t,r,n){if(t===null||typeof t>"u"||YT(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function vr(e,t,r,n,s,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=s,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var rr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){rr[e]=new vr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];rr[t]=new vr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){rr[e]=new vr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){rr[e]=new vr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){rr[e]=new vr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){rr[e]=new vr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){rr[e]=new vr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){rr[e]=new vr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){rr[e]=new vr(e,5,!1,e.toLowerCase(),null,!1,!1)});var wm=/[\-:]([a-z])/g;function _m(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(wm,_m);rr[t]=new vr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(wm,_m);rr[t]=new vr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(wm,_m);rr[t]=new vr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){rr[e]=new vr(e,1,!1,e.toLowerCase(),null,!1,!1)});rr.xlinkHref=new vr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){rr[e]=new vr(e,1,!1,e.toLowerCase(),null,!0,!0)});function bm(e,t,r,n){var s=rr.hasOwnProperty(t)?rr[t]:null;(s!==null?s.type!==0:n||!(2a||s[i]!==o[a]){var l=` -`+s[i].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{Bf=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ua(e):""}function KT(e){switch(e.tag){case 5:return Ua(e.type);case 16:return Ua("Lazy");case 13:return Ua("Suspense");case 19:return Ua("SuspenseList");case 0:case 2:case 15:return e=Hf(e.type,!1),e;case 11:return e=Hf(e.type.render,!1),e;case 1:return e=Hf(e.type,!0),e;default:return""}}function $h(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case vi:return"Fragment";case gi:return"Portal";case Uh:return"Profiler";case Sm:return"StrictMode";case Vh:return"Suspense";case Wh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Y0:return(e.displayName||"Context")+".Consumer";case H0:return(e._context.displayName||"Context")+".Provider";case km:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Cm:return t=e.displayName||null,t!==null?t:$h(e.type)||"Memo";case Fs:t=e._payload,e=e._init;try{return $h(e(t))}catch{}}return null}function GT(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $h(t);case 8:return t===Sm?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function no(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function K0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qT(e){var t=K0(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var s=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(i){n=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Oc(e){e._valueTracker||(e._valueTracker=qT(e))}function G0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=K0(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Au(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}}function Bh(e,t){var r=t.checked;return Mt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function ry(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=no(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function q0(e,t){t=t.checked,t!=null&&bm(e,"checked",t,!1)}function Hh(e,t){q0(e,t);var r=no(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Yh(e,t.type,r):t.hasOwnProperty("defaultValue")&&Yh(e,t.type,no(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ny(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Yh(e,t,r){(t!=="number"||Au(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Va=Array.isArray;function Di(e,t,r,n){if(e=e.options,t){t={};for(var s=0;s"+t.valueOf().toString()+"",t=Ac.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function pl(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Ga={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},XT=["Webkit","ms","Moz","O"];Object.keys(Ga).forEach(function(e){XT.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ga[t]=Ga[e]})});function ew(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Ga.hasOwnProperty(e)&&Ga[e]?(""+t).trim():t+"px"}function tw(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,s=ew(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,s):e[r]=s}}var QT=Mt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Gh(e,t){if(t){if(QT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(oe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(oe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(oe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(oe(62))}}function qh(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Xh=null;function Em(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qh=null,Oi=null,Ai=null;function iy(e){if(e=sc(e)){if(typeof Qh!="function")throw Error(oe(280));var t=e.stateNode;t&&(t=Fd(t),Qh(e.stateNode,e.type,t))}}function rw(e){Oi?Ai?Ai.push(e):Ai=[e]:Oi=e}function nw(){if(Oi){var e=Oi,t=Ai;if(Ai=Oi=null,iy(e),t)for(e=0;e>>=0,e===0?32:31-(cN(e)/uN|0)|0}var Mc=64,Ic=4194304;function Wa(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Fu(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,s=e.suspendedLanes,o=e.pingedLanes,i=r&268435455;if(i!==0){var a=i&~s;a!==0?n=Wa(a):(o&=i,o!==0&&(n=Wa(o)))}else i=r&~s,i!==0?n=Wa(i):o!==0&&(n=Wa(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&s)&&(s=n&-n,o=t&-t,s>=o||s===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function rc(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-dn(t),e[t]=r}function pN(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Xa),my=" ",gy=!1;function Sw(e,t){switch(e){case"keyup":return WN.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var yi=!1;function BN(e,t){switch(e){case"compositionend":return kw(t);case"keypress":return t.which!==32?null:(gy=!0,my);case"textInput":return e=t.data,e===my&&gy?null:e;default:return null}}function HN(e,t){if(yi)return e==="compositionend"||!Am&&Sw(e,t)?(e=_w(),du=Pm=$s=null,yi=!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)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=wy(r)}}function Nw(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nw(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jw(){for(var e=window,t=Au();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Au(e.document)}return t}function Mm(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")}function e2(e){var t=jw(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Nw(r.ownerDocument.documentElement,r)){if(n!==null&&Mm(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=r.textContent.length,o=Math.min(n.start,s);n=n.end===void 0?o:Math.min(n.end,s),!e.extend&&o>n&&(s=n,n=o,o=s),s=_y(r,o);var i=_y(r,n);s&&i&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,xi=null,sp=null,Ja=null,op=!1;function by(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;op||xi==null||xi!==Au(n)||(n=xi,"selectionStart"in n&&Mm(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ja&&wl(Ja,n)||(Ja=n,n=Vu(sp,"onSelect"),0bi||(e.current=dp[bi],dp[bi]=null,bi--)}function yt(e,t){bi++,dp[bi]=e.current,e.current=t}var so={},lr=mo(so),Sr=mo(!1),Fo=so;function Ki(e,t){var r=e.type.contextTypes;if(!r)return so;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var s={},o;for(o in r)s[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function kr(e){return e=e.childContextTypes,e!=null}function $u(){_t(Sr),_t(lr)}function jy(e,t,r){if(lr.current!==so)throw Error(oe(168));yt(lr,t),yt(Sr,r)}function Fw(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var s in n)if(!(s in t))throw Error(oe(108,GT(e)||"Unknown",s));return Mt({},r,n)}function Bu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||so,Fo=lr.current,yt(lr,e),yt(Sr,Sr.current),!0}function Ry(e,t,r){var n=e.stateNode;if(!n)throw Error(oe(169));r?(e=Fw(e,t,Fo),n.__reactInternalMemoizedMergedChildContext=e,_t(Sr),_t(lr),yt(lr,e)):_t(Sr),yt(Sr,r)}var rs=null,zd=!1,oh=!1;function zw(e){rs===null?rs=[e]:rs.push(e)}function f2(e){zd=!0,zw(e)}function go(){if(!oh&&rs!==null){oh=!0;var e=0,t=ft;try{var r=rs;for(ft=1;e>=i,s-=i,ns=1<<32-dn(t)+s|r<D?(P=R,R=null):P=R.sibling;var L=p(v,R,_[D],C);if(L===null){R===null&&(R=P);break}e&&R&&L.alternate===null&&t(v,R),h=o(L,h,D),T===null?E=L:T.sibling=L,T=L,R=P}if(D===_.length)return r(v,R),Nt&&bo(v,D),E;if(R===null){for(;D<_.length;D++)R=f(v,_[D],C),R!==null&&(h=o(R,h,D),T===null?E=R:T.sibling=R,T=R);return Nt&&bo(v,D),E}for(R=n(v,R);D<_.length;D++)P=m(R,v,D,_[D],C),P!==null&&(e&&P.alternate!==null&&R.delete(P.key===null?D:P.key),h=o(P,h,D),T===null?E=P:T.sibling=P,T=P);return e&&R.forEach(function(q){return t(v,q)}),Nt&&bo(v,D),E}function g(v,h,_,C){var E=ka(_);if(typeof E!="function")throw Error(oe(150));if(_=E.call(_),_==null)throw Error(oe(151));for(var T=E=null,R=h,D=h=0,P=null,L=_.next();R!==null&&!L.done;D++,L=_.next()){R.index>D?(P=R,R=null):P=R.sibling;var q=p(v,R,L.value,C);if(q===null){R===null&&(R=P);break}e&&R&&q.alternate===null&&t(v,R),h=o(q,h,D),T===null?E=q:T.sibling=q,T=q,R=P}if(L.done)return r(v,R),Nt&&bo(v,D),E;if(R===null){for(;!L.done;D++,L=_.next())L=f(v,L.value,C),L!==null&&(h=o(L,h,D),T===null?E=L:T.sibling=L,T=L);return Nt&&bo(v,D),E}for(R=n(v,R);!L.done;D++,L=_.next())L=m(R,v,D,L.value,C),L!==null&&(e&&L.alternate!==null&&R.delete(L.key===null?D:L.key),h=o(L,h,D),T===null?E=L:T.sibling=L,T=L);return e&&R.forEach(function(N){return t(v,N)}),Nt&&bo(v,D),E}function w(v,h,_,C){if(typeof _=="object"&&_!==null&&_.type===vi&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Dc:e:{for(var E=_.key,T=h;T!==null;){if(T.key===E){if(E=_.type,E===vi){if(T.tag===7){r(v,T.sibling),h=s(T,_.props.children),h.return=v,v=h;break e}}else if(T.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Fs&&Oy(E)===T.type){r(v,T.sibling),h=s(T,_.props),h.ref=ja(v,T,_),h.return=v,v=h;break e}r(v,T);break}else t(v,T);T=T.sibling}_.type===vi?(h=Ao(_.props.children,v.mode,C,_.key),h.return=v,v=h):(C=xu(_.type,_.key,_.props,null,v.mode,C),C.ref=ja(v,h,_),C.return=v,v=C)}return i(v);case gi:e:{for(T=_.key;h!==null;){if(h.key===T)if(h.tag===4&&h.stateNode.containerInfo===_.containerInfo&&h.stateNode.implementation===_.implementation){r(v,h.sibling),h=s(h,_.children||[]),h.return=v,v=h;break e}else{r(v,h);break}else t(v,h);h=h.sibling}h=hh(_,v.mode,C),h.return=v,v=h}return i(v);case Fs:return T=_._init,w(v,h,T(_._payload),C)}if(Va(_))return x(v,h,_,C);if(ka(_))return g(v,h,_,C);$c(v,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,h!==null&&h.tag===6?(r(v,h.sibling),h=s(h,_),h.return=v,v=h):(r(v,h),h=fh(_,v.mode,C),h.return=v,v=h),i(v)):r(v,h)}return w}var qi=$w(!0),Bw=$w(!1),Zu=mo(null),Ku=null,Ci=null,zm=null;function Um(){zm=Ci=Ku=null}function Vm(e){var t=Zu.current;_t(Zu),e._currentValue=t}function pp(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Ii(e,t){Ku=e,zm=Ci=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(br=!0),e.firstContext=null)}function qr(e){var t=e._currentValue;if(zm!==e)if(e={context:e,memoizedValue:t,next:null},Ci===null){if(Ku===null)throw Error(oe(308));Ci=e,Ku.dependencies={lanes:0,firstContext:e}}else Ci=Ci.next=e;return t}var Eo=null;function Wm(e){Eo===null?Eo=[e]:Eo.push(e)}function Hw(e,t,r,n){var s=t.interleaved;return s===null?(r.next=r,Wm(t)):(r.next=s.next,s.next=r),t.interleaved=r,hs(e,n)}function hs(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var zs=!1;function $m(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Yw(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function as(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Qs(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,it&2){var s=n.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),n.pending=t,hs(e,r)}return s=n.interleaved,s===null?(t.next=t,Wm(n)):(t.next=s.next,s.next=t),n.interleaved=t,hs(e,r)}function hu(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Nm(e,r)}}function Ay(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var s=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?s=o=i:o=o.next=i,r=r.next}while(r!==null);o===null?s=o=t:o=o.next=t}else s=o=t;r={baseState:n.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Gu(e,t,r,n){var s=e.updateQueue;zs=!1;var o=s.firstBaseUpdate,i=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,u=l.next;l.next=null,i===null?o=u:i.next=u,i=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==i&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(o!==null){var f=s.baseState;i=0,d=u=l=null,a=o;do{var p=a.lane,m=a.eventTime;if((n&p)===p){d!==null&&(d=d.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,g=a;switch(p=t,m=r,g.tag){case 1:if(x=g.payload,typeof x=="function"){f=x.call(m,f,p);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=g.payload,p=typeof x=="function"?x.call(m,f,p):x,p==null)break e;f=Mt({},f,p);break e;case 2:zs=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=s.effects,p===null?s.effects=[a]:p.push(a))}else m={eventTime:m,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=m,l=f):d=d.next=m,i|=p;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;p=a,a=p.next,p.next=null,s.lastBaseUpdate=p,s.shared.pending=null}}while(!0);if(d===null&&(l=f),s.baseState=l,s.firstBaseUpdate=u,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do i|=s.lane,s=s.next;while(s!==t)}else o===null&&(s.shared.lanes=0);Vo|=i,e.lanes=i,e.memoizedState=f}}function My(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=ah.transition;ah.transition={};try{e(!1),t()}finally{ft=r,ah.transition=n}}function c_(){return Xr().memoizedState}function g2(e,t,r){var n=eo(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},u_(e))d_(t,r);else if(r=Hw(e,t,r,n),r!==null){var s=pr();fn(r,e,n,s),f_(r,t,n)}}function v2(e,t,r){var n=eo(e),s={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(u_(e))d_(t,s);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,a=o(i,r);if(s.hasEagerState=!0,s.eagerState=a,pn(a,i)){var l=t.interleaved;l===null?(s.next=s,Wm(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}r=Hw(e,t,s,n),r!==null&&(s=pr(),fn(r,e,n,s),f_(r,t,n))}}function u_(e){var t=e.alternate;return e===At||t!==null&&t===At}function d_(e,t){el=Xu=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function f_(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Nm(e,r)}}var Qu={readContext:qr,useCallback:sr,useContext:sr,useEffect:sr,useImperativeHandle:sr,useInsertionEffect:sr,useLayoutEffect:sr,useMemo:sr,useReducer:sr,useRef:sr,useState:sr,useDebugValue:sr,useDeferredValue:sr,useTransition:sr,useMutableSource:sr,useSyncExternalStore:sr,useId:sr,unstable_isNewReconciler:!1},y2={readContext:qr,useCallback:function(e,t){return En().memoizedState=[e,t===void 0?null:t],e},useContext:qr,useEffect:Ly,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,mu(4194308,4,s_.bind(null,t,e),r)},useLayoutEffect:function(e,t){return mu(4194308,4,e,t)},useInsertionEffect:function(e,t){return mu(4,2,e,t)},useMemo:function(e,t){var r=En();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=En();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=g2.bind(null,At,e),[n.memoizedState,e]},useRef:function(e){var t=En();return e={current:e},t.memoizedState=e},useState:Iy,useDebugValue:Xm,useDeferredValue:function(e){return En().memoizedState=e},useTransition:function(){var e=Iy(!1),t=e[0];return e=m2.bind(null,e[1]),En().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=At,s=En();if(Nt){if(r===void 0)throw Error(oe(407));r=r()}else{if(r=t(),Qt===null)throw Error(oe(349));Uo&30||qw(n,t,r)}s.memoizedState=r;var o={value:r,getSnapshot:t};return s.queue=o,Ly(Qw.bind(null,n,o,e),[e]),n.flags|=2048,Nl(9,Xw.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=En(),t=Qt.identifierPrefix;if(Nt){var r=ss,n=ns;r=(n&~(1<<32-dn(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=El++,0")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{Bf=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ua(e):""}function KT(e){switch(e.tag){case 5:return Ua(e.type);case 16:return Ua("Lazy");case 13:return Ua("Suspense");case 19:return Ua("SuspenseList");case 0:case 2:case 15:return e=Hf(e.type,!1),e;case 11:return e=Hf(e.type.render,!1),e;case 1:return e=Hf(e.type,!0),e;default:return""}}function $h(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case xi:return"Fragment";case yi:return"Portal";case Uh:return"Profiler";case Sm:return"StrictMode";case Vh:return"Suspense";case Wh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Y0:return(e.displayName||"Context")+".Consumer";case H0:return(e._context.displayName||"Context")+".Provider";case km:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Cm:return t=e.displayName||null,t!==null?t:$h(e.type)||"Memo";case zs:t=e._payload,e=e._init;try{return $h(e(t))}catch{}}return null}function GT(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $h(t);case 8:return t===Sm?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function so(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function K0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qT(e){var t=K0(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var s=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(i){n=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ac(e){e._valueTracker||(e._valueTracker=qT(e))}function G0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=K0(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Ou(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}}function Bh(e,t){var r=t.checked;return Mt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function ry(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=so(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function q0(e,t){t=t.checked,t!=null&&bm(e,"checked",t,!1)}function Hh(e,t){q0(e,t);var r=so(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Yh(e,t.type,r):t.hasOwnProperty("defaultValue")&&Yh(e,t.type,so(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ny(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Yh(e,t,r){(t!=="number"||Ou(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Va=Array.isArray;function Oi(e,t,r,n){if(e=e.options,t){t={};for(var s=0;s"+t.valueOf().toString()+"",t=Oc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function pl(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Ga={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},XT=["Webkit","ms","Moz","O"];Object.keys(Ga).forEach(function(e){XT.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ga[t]=Ga[e]})});function ew(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Ga.hasOwnProperty(e)&&Ga[e]?(""+t).trim():t+"px"}function tw(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,s=ew(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,s):e[r]=s}}var QT=Mt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Gh(e,t){if(t){if(QT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(oe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(oe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(oe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(oe(62))}}function qh(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Xh=null;function Em(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qh=null,Mi=null,Ii=null;function iy(e){if(e=sc(e)){if(typeof Qh!="function")throw Error(oe(280));var t=e.stateNode;t&&(t=Fd(t),Qh(e.stateNode,e.type,t))}}function rw(e){Mi?Ii?Ii.push(e):Ii=[e]:Mi=e}function nw(){if(Mi){var e=Mi,t=Ii;if(Ii=Mi=null,iy(e),t)for(e=0;e>>=0,e===0?32:31-(cj(e)/uj|0)|0}var Mc=64,Ic=4194304;function Wa(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Fu(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,s=e.suspendedLanes,o=e.pingedLanes,i=r&268435455;if(i!==0){var a=i&~s;a!==0?n=Wa(a):(o&=i,o!==0&&(n=Wa(o)))}else i=r&~s,i!==0?n=Wa(i):o!==0&&(n=Wa(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&s)&&(s=n&-n,o=t&-t,s>=o||s===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function rc(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-dn(t),e[t]=r}function pj(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Xa),my=" ",gy=!1;function Sw(e,t){switch(e){case"keyup":return Wj.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wi=!1;function Bj(e,t){switch(e){case"compositionend":return kw(t);case"keypress":return t.which!==32?null:(gy=!0,my);case"textInput":return e=t.data,e===my&&gy?null:e;default:return null}}function Hj(e,t){if(wi)return e==="compositionend"||!Om&&Sw(e,t)?(e=_w(),du=Pm=Bs=null,wi=!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)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=wy(r)}}function jw(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jw(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nw(){for(var e=window,t=Ou();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Ou(e.document)}return t}function Mm(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")}function eN(e){var t=Nw(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&jw(r.ownerDocument.documentElement,r)){if(n!==null&&Mm(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=r.textContent.length,o=Math.min(n.start,s);n=n.end===void 0?o:Math.min(n.end,s),!e.extend&&o>n&&(s=n,n=o,o=s),s=_y(r,o);var i=_y(r,n);s&&i&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,_i=null,sp=null,Ja=null,op=!1;function by(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;op||_i==null||_i!==Ou(n)||(n=_i,"selectionStart"in n&&Mm(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ja&&wl(Ja,n)||(Ja=n,n=Vu(sp,"onSelect"),0ki||(e.current=dp[ki],dp[ki]=null,ki--)}function yt(e,t){ki++,dp[ki]=e.current,e.current=t}var oo={},lr=go(oo),Sr=go(!1),Fo=oo;function qi(e,t){var r=e.type.contextTypes;if(!r)return oo;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var s={},o;for(o in r)s[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function kr(e){return e=e.childContextTypes,e!=null}function $u(){_t(Sr),_t(lr)}function Ny(e,t,r){if(lr.current!==oo)throw Error(oe(168));yt(lr,t),yt(Sr,r)}function Fw(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var s in n)if(!(s in t))throw Error(oe(108,GT(e)||"Unknown",s));return Mt({},r,n)}function Bu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||oo,Fo=lr.current,yt(lr,e),yt(Sr,Sr.current),!0}function Ry(e,t,r){var n=e.stateNode;if(!n)throw Error(oe(169));r?(e=Fw(e,t,Fo),n.__reactInternalMemoizedMergedChildContext=e,_t(Sr),_t(lr),yt(lr,e)):_t(Sr),yt(Sr,r)}var os=null,zd=!1,oh=!1;function zw(e){os===null?os=[e]:os.push(e)}function fN(e){zd=!0,zw(e)}function vo(){if(!oh&&os!==null){oh=!0;var e=0,t=ht;try{var r=os;for(ht=1;e>=i,s-=i,is=1<<32-dn(t)+s|r<D?(P=R,R=null):P=R.sibling;var L=p(v,R,_[D],C);if(L===null){R===null&&(R=P);break}e&&R&&L.alternate===null&&t(v,R),h=o(L,h,D),T===null?E=L:T.sibling=L,T=L,R=P}if(D===_.length)return r(v,R),jt&&bo(v,D),E;if(R===null){for(;D<_.length;D++)R=f(v,_[D],C),R!==null&&(h=o(R,h,D),T===null?E=R:T.sibling=R,T=R);return jt&&bo(v,D),E}for(R=n(v,R);D<_.length;D++)P=m(R,v,D,_[D],C),P!==null&&(e&&P.alternate!==null&&R.delete(P.key===null?D:P.key),h=o(P,h,D),T===null?E=P:T.sibling=P,T=P);return e&&R.forEach(function(q){return t(v,q)}),jt&&bo(v,D),E}function g(v,h,_,C){var E=ka(_);if(typeof E!="function")throw Error(oe(150));if(_=E.call(_),_==null)throw Error(oe(151));for(var T=E=null,R=h,D=h=0,P=null,L=_.next();R!==null&&!L.done;D++,L=_.next()){R.index>D?(P=R,R=null):P=R.sibling;var q=p(v,R,L.value,C);if(q===null){R===null&&(R=P);break}e&&R&&q.alternate===null&&t(v,R),h=o(q,h,D),T===null?E=q:T.sibling=q,T=q,R=P}if(L.done)return r(v,R),jt&&bo(v,D),E;if(R===null){for(;!L.done;D++,L=_.next())L=f(v,L.value,C),L!==null&&(h=o(L,h,D),T===null?E=L:T.sibling=L,T=L);return jt&&bo(v,D),E}for(R=n(v,R);!L.done;D++,L=_.next())L=m(R,v,D,L.value,C),L!==null&&(e&&L.alternate!==null&&R.delete(L.key===null?D:L.key),h=o(L,h,D),T===null?E=L:T.sibling=L,T=L);return e&&R.forEach(function(j){return t(v,j)}),jt&&bo(v,D),E}function w(v,h,_,C){if(typeof _=="object"&&_!==null&&_.type===xi&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Dc:e:{for(var E=_.key,T=h;T!==null;){if(T.key===E){if(E=_.type,E===xi){if(T.tag===7){r(v,T.sibling),h=s(T,_.props.children),h.return=v,v=h;break e}}else if(T.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===zs&&Ay(E)===T.type){r(v,T.sibling),h=s(T,_.props),h.ref=Na(v,T,_),h.return=v,v=h;break e}r(v,T);break}else t(v,T);T=T.sibling}_.type===xi?(h=Oo(_.props.children,v.mode,C,_.key),h.return=v,v=h):(C=xu(_.type,_.key,_.props,null,v.mode,C),C.ref=Na(v,h,_),C.return=v,v=C)}return i(v);case yi:e:{for(T=_.key;h!==null;){if(h.key===T)if(h.tag===4&&h.stateNode.containerInfo===_.containerInfo&&h.stateNode.implementation===_.implementation){r(v,h.sibling),h=s(h,_.children||[]),h.return=v,v=h;break e}else{r(v,h);break}else t(v,h);h=h.sibling}h=hh(_,v.mode,C),h.return=v,v=h}return i(v);case zs:return T=_._init,w(v,h,T(_._payload),C)}if(Va(_))return x(v,h,_,C);if(ka(_))return g(v,h,_,C);$c(v,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,h!==null&&h.tag===6?(r(v,h.sibling),h=s(h,_),h.return=v,v=h):(r(v,h),h=fh(_,v.mode,C),h.return=v,v=h),i(v)):r(v,h)}return w}var Qi=$w(!0),Bw=$w(!1),Zu=go(null),Ku=null,Ti=null,zm=null;function Um(){zm=Ti=Ku=null}function Vm(e){var t=Zu.current;_t(Zu),e._currentValue=t}function pp(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Fi(e,t){Ku=e,zm=Ti=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(br=!0),e.firstContext=null)}function qr(e){var t=e._currentValue;if(zm!==e)if(e={context:e,memoizedValue:t,next:null},Ti===null){if(Ku===null)throw Error(oe(308));Ti=e,Ku.dependencies={lanes:0,firstContext:e}}else Ti=Ti.next=e;return t}var Eo=null;function Wm(e){Eo===null?Eo=[e]:Eo.push(e)}function Hw(e,t,r,n){var s=t.interleaved;return s===null?(r.next=r,Wm(t)):(r.next=s.next,s.next=r),t.interleaved=r,gs(e,n)}function gs(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Us=!1;function $m(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Yw(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function us(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Js(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,it&2){var s=n.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),n.pending=t,gs(e,r)}return s=n.interleaved,s===null?(t.next=t,Wm(n)):(t.next=s.next,s.next=t),n.interleaved=t,gs(e,r)}function hu(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,jm(e,r)}}function Oy(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var s=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?s=o=i:o=o.next=i,r=r.next}while(r!==null);o===null?s=o=t:o=o.next=t}else s=o=t;r={baseState:n.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Gu(e,t,r,n){var s=e.updateQueue;Us=!1;var o=s.firstBaseUpdate,i=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,u=l.next;l.next=null,i===null?o=u:i.next=u,i=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==i&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(o!==null){var f=s.baseState;i=0,d=u=l=null,a=o;do{var p=a.lane,m=a.eventTime;if((n&p)===p){d!==null&&(d=d.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,g=a;switch(p=t,m=r,g.tag){case 1:if(x=g.payload,typeof x=="function"){f=x.call(m,f,p);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=g.payload,p=typeof x=="function"?x.call(m,f,p):x,p==null)break e;f=Mt({},f,p);break e;case 2:Us=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=s.effects,p===null?s.effects=[a]:p.push(a))}else m={eventTime:m,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=m,l=f):d=d.next=m,i|=p;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;p=a,a=p.next,p.next=null,s.lastBaseUpdate=p,s.shared.pending=null}}while(!0);if(d===null&&(l=f),s.baseState=l,s.firstBaseUpdate=u,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do i|=s.lane,s=s.next;while(s!==t)}else o===null&&(s.shared.lanes=0);Vo|=i,e.lanes=i,e.memoizedState=f}}function My(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=ah.transition;ah.transition={};try{e(!1),t()}finally{ht=r,ah.transition=n}}function c_(){return Xr().memoizedState}function gN(e,t,r){var n=to(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},u_(e))d_(t,r);else if(r=Hw(e,t,r,n),r!==null){var s=pr();fn(r,e,n,s),f_(r,t,n)}}function vN(e,t,r){var n=to(e),s={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(u_(e))d_(t,s);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,a=o(i,r);if(s.hasEagerState=!0,s.eagerState=a,pn(a,i)){var l=t.interleaved;l===null?(s.next=s,Wm(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}r=Hw(e,t,s,n),r!==null&&(s=pr(),fn(r,e,n,s),f_(r,t,n))}}function u_(e){var t=e.alternate;return e===Ot||t!==null&&t===Ot}function d_(e,t){el=Xu=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function f_(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,jm(e,r)}}var Qu={readContext:qr,useCallback:sr,useContext:sr,useEffect:sr,useImperativeHandle:sr,useInsertionEffect:sr,useLayoutEffect:sr,useMemo:sr,useReducer:sr,useRef:sr,useState:sr,useDebugValue:sr,useDeferredValue:sr,useTransition:sr,useMutableSource:sr,useSyncExternalStore:sr,useId:sr,unstable_isNewReconciler:!1},yN={readContext:qr,useCallback:function(e,t){return En().memoizedState=[e,t===void 0?null:t],e},useContext:qr,useEffect:Ly,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,mu(4194308,4,s_.bind(null,t,e),r)},useLayoutEffect:function(e,t){return mu(4194308,4,e,t)},useInsertionEffect:function(e,t){return mu(4,2,e,t)},useMemo:function(e,t){var r=En();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=En();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=gN.bind(null,Ot,e),[n.memoizedState,e]},useRef:function(e){var t=En();return e={current:e},t.memoizedState=e},useState:Iy,useDebugValue:Xm,useDeferredValue:function(e){return En().memoizedState=e},useTransition:function(){var e=Iy(!1),t=e[0];return e=mN.bind(null,e[1]),En().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Ot,s=En();if(jt){if(r===void 0)throw Error(oe(407));r=r()}else{if(r=t(),Qt===null)throw Error(oe(349));Uo&30||qw(n,t,r)}s.memoizedState=r;var o={value:r,getSnapshot:t};return s.queue=o,Ly(Qw.bind(null,n,o,e),[e]),n.flags|=2048,jl(9,Xw.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=En(),t=Qt.identifierPrefix;if(jt){var r=as,n=is;r=(n&~(1<<32-dn(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=El++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[Tn]=t,e[Sl]=n,b_(e,t,!1,!1),t.stateNode=e;e:{switch(i=qh(r,n),r){case"dialog":wt("cancel",e),wt("close",e),s=n;break;case"iframe":case"object":case"embed":wt("load",e),s=n;break;case"video":case"audio":for(s=0;s<$a.length;s++)wt($a[s],e);s=n;break;case"source":wt("error",e),s=n;break;case"img":case"image":case"link":wt("error",e),wt("load",e),s=n;break;case"details":wt("toggle",e),s=n;break;case"input":ry(e,n),s=Bh(e,n),wt("invalid",e);break;case"option":s=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},s=Mt({},n,{value:void 0}),wt("invalid",e);break;case"textarea":sy(e,n),s=Zh(e,n),wt("invalid",e);break;default:s=n}Gh(r,s),a=s;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?tw(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&J0(e,l)):o==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&pl(e,l):typeof l=="number"&&pl(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(hl.hasOwnProperty(o)?l!=null&&o==="onScroll"&&wt("scroll",e):l!=null&&bm(e,o,l,i))}switch(r){case"input":Oc(e),ny(e,n,!1);break;case"textarea":Oc(e),oy(e);break;case"option":n.value!=null&&e.setAttribute("value",""+no(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?Di(e,!!n.multiple,o,!1):n.defaultValue!=null&&Di(e,!!n.multiple,n.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Wu)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return or(t),null;case 6:if(e&&t.stateNode!=null)k_(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(oe(166));if(r=To(Cl.current),To(An.current),Wc(t)){if(n=t.stateNode,r=t.memoizedProps,n[Tn]=t,(o=n.nodeValue!==r)&&(e=Ar,e!==null))switch(e.tag){case 3:Vc(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Vc(n.nodeValue,r,(e.mode&1)!==0)}o&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Tn]=t,t.stateNode=n}return or(t),null;case 13:if(_t(Dt),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Nt&&Or!==null&&t.mode&1&&!(t.flags&128))Ww(),Gi(),t.flags|=98560,o=!1;else if(o=Wc(t),n!==null&&n.dehydrated!==null){if(e===null){if(!o)throw Error(oe(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(oe(317));o[Tn]=t}else Gi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;or(t),o=!1}else an!==null&&(Rp(an),an=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Dt.current&1?Kt===0&&(Kt=3):sg())),t.updateQueue!==null&&(t.flags|=4),or(t),null);case 4:return Xi(),bp(e,t),e===null&&_l(t.stateNode.containerInfo),or(t),null;case 10:return Vm(t.type._context),or(t),null;case 17:return kr(t.type)&&$u(),or(t),null;case 19:if(_t(Dt),o=t.memoizedState,o===null)return or(t),null;if(n=(t.flags&128)!==0,i=o.rendering,i===null)if(n)Ra(o,!1);else{if(Kt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=qu(e),i!==null){for(t.flags|=128,Ra(o,!1),n=i.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)o=r,e=n,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return yt(Dt,Dt.current&1|2),t.child}e=e.sibling}o.tail!==null&&Ut()>Ji&&(t.flags|=128,n=!0,Ra(o,!1),t.lanes=4194304)}else{if(!n)if(e=qu(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ra(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Nt)return or(t),null}else 2*Ut()-o.renderingStartTime>Ji&&r!==1073741824&&(t.flags|=128,n=!0,Ra(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(r=o.last,r!==null?r.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ut(),t.sibling=null,r=Dt.current,yt(Dt,n?r&1|2:r&1),t):(or(t),null);case 22:case 23:return ng(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Rr&1073741824&&(or(t),t.subtreeFlags&6&&(t.flags|=8192)):or(t),null;case 24:return null;case 25:return null}throw Error(oe(156,t.tag))}function E2(e,t){switch(Lm(t),t.tag){case 1:return kr(t.type)&&$u(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xi(),_t(Sr),_t(lr),Ym(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Hm(t),null;case 13:if(_t(Dt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(oe(340));Gi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return _t(Dt),null;case 4:return Xi(),null;case 10:return Vm(t.type._context),null;case 22:case 23:return ng(),null;case 24:return null;default:return null}}var Hc=!1,ir=!1,T2=typeof WeakSet=="function"?WeakSet:Set,_e=null;function Ei(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Lt(e,t,n)}else r.current=null}function Sp(e,t,r){try{r()}catch(n){Lt(e,t,n)}}var Ky=!1;function N2(e,t){if(ip=zu,e=jw(),Mm(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var s=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var i=0,a=-1,l=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var m;f!==r||s!==0&&f.nodeType!==3||(a=i+s),f!==o||n!==0&&f.nodeType!==3||(l=i+n),f.nodeType===3&&(i+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break t;if(p===r&&++u===s&&(a=i),p===o&&++d===n&&(l=i),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(ap={focusedElem:e,selectionRange:r},zu=!1,_e=t;_e!==null;)if(t=_e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_e=e;else for(;_e!==null;){t=_e;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var g=x.memoizedProps,w=x.memoizedState,v=t.stateNode,h=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:nn(t.type,g),w);v.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(oe(163))}}catch(C){Lt(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,_e=e;break}_e=t.return}return x=Ky,Ky=!1,x}function tl(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var s=n=n.next;do{if((s.tag&e)===e){var o=s.destroy;s.destroy=void 0,o!==void 0&&Sp(t,r,o)}s=s.next}while(s!==n)}}function Wd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function kp(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function C_(e){var t=e.alternate;t!==null&&(e.alternate=null,C_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Tn],delete t[Sl],delete t[up],delete t[u2],delete t[d2])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function E_(e){return e.tag===5||e.tag===3||e.tag===4}function Gy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||E_(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.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 Cp(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Wu));else if(n!==4&&(e=e.child,e!==null))for(Cp(e,t,r),e=e.sibling;e!==null;)Cp(e,t,r),e=e.sibling}function Ep(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Ep(e,t,r),e=e.sibling;e!==null;)Ep(e,t,r),e=e.sibling}var er=null,sn=!1;function Os(e,t,r){for(r=r.child;r!==null;)T_(e,t,r),r=r.sibling}function T_(e,t,r){if(On&&typeof On.onCommitFiberUnmount=="function")try{On.onCommitFiberUnmount(Ad,r)}catch{}switch(r.tag){case 5:ir||Ei(r,t);case 6:var n=er,s=sn;er=null,Os(e,t,r),er=n,sn=s,er!==null&&(sn?(e=er,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):er.removeChild(r.stateNode));break;case 18:er!==null&&(sn?(e=er,r=r.stateNode,e.nodeType===8?sh(e.parentNode,r):e.nodeType===1&&sh(e,r),yl(e)):sh(er,r.stateNode));break;case 4:n=er,s=sn,er=r.stateNode.containerInfo,sn=!0,Os(e,t,r),er=n,sn=s;break;case 0:case 11:case 14:case 15:if(!ir&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){s=n=n.next;do{var o=s,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Sp(r,t,i),s=s.next}while(s!==n)}Os(e,t,r);break;case 1:if(!ir&&(Ei(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){Lt(r,t,a)}Os(e,t,r);break;case 21:Os(e,t,r);break;case 22:r.mode&1?(ir=(n=ir)||r.memoizedState!==null,Os(e,t,r),ir=n):Os(e,t,r);break;default:Os(e,t,r)}}function qy(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new T2),t.forEach(function(n){var s=L2.bind(null,e,n);r.has(n)||(r.add(n),n.then(s,s))})}}function rn(e,t){var r=t.deletions;if(r!==null)for(var n=0;ns&&(s=i),n&=~o}if(n=s,n=Ut()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*R2(n/1960))-n,10e?16:e,Bs===null)var n=!1;else{if(e=Bs,Bs=null,td=0,it&6)throw Error(oe(331));var s=it;for(it|=4,_e=e.current;_e!==null;){var o=_e,i=o.child;if(_e.flags&16){var a=o.deletions;if(a!==null){for(var l=0;lUt()-tg?Oo(e,0):eg|=r),Cr(e,t)}function M_(e,t){t===0&&(e.mode&1?(t=Ic,Ic<<=1,!(Ic&130023424)&&(Ic=4194304)):t=1);var r=pr();e=hs(e,t),e!==null&&(rc(e,t,r),Cr(e,r))}function I2(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),M_(e,r)}function L2(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,s=e.memoizedState;s!==null&&(r=s.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(oe(314))}n!==null&&n.delete(t),M_(e,r)}var I_;I_=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Sr.current)br=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return br=!1,k2(e,t,r);br=!!(e.flags&131072)}else br=!1,Nt&&t.flags&1048576&&Uw(t,Yu,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;gu(e,t),e=t.pendingProps;var s=Ki(t,lr.current);Ii(t,r),s=Km(null,t,n,e,s,r);var o=Gm();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,kr(n)?(o=!0,Bu(t)):o=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,$m(t),s.updater=Vd,t.stateNode=s,s._reactInternals=t,gp(t,n,e,r),t=xp(null,t,n,!0,o,r)):(t.tag=0,Nt&&o&&Im(t),fr(null,t,s,r),t=t.child),t;case 16:n=t.elementType;e:{switch(gu(e,t),e=t.pendingProps,s=n._init,n=s(n._payload),t.type=n,s=t.tag=z2(n),e=nn(n,e),s){case 0:t=yp(null,t,n,e,r);break e;case 1:t=Hy(null,t,n,e,r);break e;case 11:t=$y(null,t,n,e,r);break e;case 14:t=By(null,t,n,nn(n.type,e),r);break e}throw Error(oe(306,n,""))}return t;case 0:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:nn(n,s),yp(e,t,n,s,r);case 1:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:nn(n,s),Hy(e,t,n,s,r);case 3:e:{if(x_(t),e===null)throw Error(oe(387));n=t.pendingProps,o=t.memoizedState,s=o.element,Yw(e,t),Gu(t,n,null,r);var i=t.memoizedState;if(n=i.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){s=Qi(Error(oe(423)),t),t=Yy(e,t,n,r,s);break e}else if(n!==s){s=Qi(Error(oe(424)),t),t=Yy(e,t,n,r,s);break e}else for(Or=Xs(t.stateNode.containerInfo.firstChild),Ar=t,Nt=!0,an=null,r=Bw(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Gi(),n===s){t=ps(e,t,r);break e}fr(e,t,n,r)}t=t.child}return t;case 5:return Zw(t),e===null&&hp(t),n=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,i=s.children,lp(n,s)?i=null:o!==null&&lp(n,o)&&(t.flags|=32),y_(e,t),fr(e,t,i,r),t.child;case 6:return e===null&&hp(t),null;case 13:return w_(e,t,r);case 4:return Bm(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=qi(t,null,n,r):fr(e,t,n,r),t.child;case 11:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:nn(n,s),$y(e,t,n,s,r);case 7:return fr(e,t,t.pendingProps,r),t.child;case 8:return fr(e,t,t.pendingProps.children,r),t.child;case 12:return fr(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,s=t.pendingProps,o=t.memoizedProps,i=s.value,yt(Zu,n._currentValue),n._currentValue=i,o!==null)if(pn(o.value,i)){if(o.children===s.children&&!Sr.current){t=ps(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){i=o.child;for(var l=a.firstContext;l!==null;){if(l.context===n){if(o.tag===1){l=as(-1,r&-r),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),pp(o.return,r,t),a.lanes|=r;break}l=l.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(oe(341));i.lanes|=r,a=i.alternate,a!==null&&(a.lanes|=r),pp(i,r,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}fr(e,t,s.children,r),t=t.child}return t;case 9:return s=t.type,n=t.pendingProps.children,Ii(t,r),s=qr(s),n=n(s),t.flags|=1,fr(e,t,n,r),t.child;case 14:return n=t.type,s=nn(n,t.pendingProps),s=nn(n.type,s),By(e,t,n,s,r);case 15:return g_(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,s=t.pendingProps,s=t.elementType===n?s:nn(n,s),gu(e,t),t.tag=1,kr(n)?(e=!0,Bu(t)):e=!1,Ii(t,r),h_(t,n,s),gp(t,n,s,r),xp(null,t,n,!0,e,r);case 19:return __(e,t,r);case 22:return v_(e,t,r)}throw Error(oe(156,t.tag))};function L_(e,t){return uw(e,t)}function F2(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Zr(e,t,r,n){return new F2(e,t,r,n)}function og(e){return e=e.prototype,!(!e||!e.isReactComponent)}function z2(e){if(typeof e=="function")return og(e)?1:0;if(e!=null){if(e=e.$$typeof,e===km)return 11;if(e===Cm)return 14}return 2}function to(e,t){var r=e.alternate;return r===null?(r=Zr(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function xu(e,t,r,n,s,o){var i=2;if(n=e,typeof e=="function")og(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case vi:return Ao(r.children,s,o,t);case Sm:i=8,s|=8;break;case Uh:return e=Zr(12,r,t,s|2),e.elementType=Uh,e.lanes=o,e;case Vh:return e=Zr(13,r,t,s),e.elementType=Vh,e.lanes=o,e;case Wh:return e=Zr(19,r,t,s),e.elementType=Wh,e.lanes=o,e;case Z0:return Bd(r,s,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case H0:i=10;break e;case Y0:i=9;break e;case km:i=11;break e;case Cm:i=14;break e;case Fs:i=16,n=null;break e}throw Error(oe(130,e==null?e:typeof e,""))}return t=Zr(i,r,t,s),t.elementType=e,t.type=n,t.lanes=o,t}function Ao(e,t,r,n){return e=Zr(7,e,n,t),e.lanes=r,e}function Bd(e,t,r,n){return e=Zr(22,e,n,t),e.elementType=Z0,e.lanes=r,e.stateNode={isHidden:!1},e}function fh(e,t,r){return e=Zr(6,e,null,t),e.lanes=r,e}function hh(e,t,r){return t=Zr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function U2(e,t,r,n,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Zf(0),this.expirationTimes=Zf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zf(0),this.identifierPrefix=n,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function ig(e,t,r,n,s,o,i,a,l){return e=new U2(e,t,r,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Zr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},$m(o),e}function V2(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(V_)}catch(e){console.error(e)}}V_(),V0.exports=zr;var _s=V0.exports;const W_=mm(_s),Y2=N0({__proto__:null,default:W_},[_s]);var sx=_s;Fh.createRoot=sx.createRoot,Fh.hydrateRoot=sx.hydrateRoot;/** +`+o.stack}return{value:e,source:t,stack:s,digest:null}}function uh(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function vp(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var _N=typeof WeakMap=="function"?WeakMap:Map;function p_(e,t,r){r=us(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){ed||(ed=!0,Tp=n),vp(e,t)},r}function m_(e,t,r){r=us(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var s=t.value;r.payload=function(){return n(s)},r.callback=function(){vp(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){vp(e,t),typeof n!="function"&&(eo===null?eo=new Set([this]):eo.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),r}function Uy(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new _N;var s=new Set;n.set(t,s)}else s=n.get(t),s===void 0&&(s=new Set,n.set(t,s));s.has(r)||(s.add(r),e=MN.bind(null,e,t,r),t.then(e,e))}function Vy(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Wy(e,t,r,n,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=us(-1,1),t.tag=2,Js(r,t,1))),r.lanes|=1),e)}var bN=Ss.ReactCurrentOwner,br=!1;function fr(e,t,r,n){t.child=e===null?Bw(t,null,r,n):Qi(t,e.child,r,n)}function $y(e,t,r,n,s){r=r.render;var o=t.ref;return Fi(t,s),n=Km(e,t,r,n,o,s),r=Gm(),e!==null&&!br?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,vs(e,t,s)):(jt&&r&&Im(t),t.flags|=1,fr(e,t,n,s),t.child)}function By(e,t,r,n,s){if(e===null){var o=r.type;return typeof o=="function"&&!og(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,g_(e,t,o,n,s)):(e=xu(r.type,null,n,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&s)){var i=o.memoizedProps;if(r=r.compare,r=r!==null?r:wl,r(i,n)&&e.ref===t.ref)return vs(e,t,s)}return t.flags|=1,e=ro(o,n),e.ref=t.ref,e.return=t,t.child=e}function g_(e,t,r,n,s){if(e!==null){var o=e.memoizedProps;if(wl(o,n)&&e.ref===t.ref)if(br=!1,t.pendingProps=n=o,(e.lanes&s)!==0)e.flags&131072&&(br=!0);else return t.lanes=e.lanes,vs(e,t,s)}return yp(e,t,r,n,s)}function v_(e,t,r){var n=t.pendingProps,s=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},yt(Ni,Rr),Rr|=r;else{if(!(r&1073741824))return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,yt(Ni,Rr),Rr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,yt(Ni,Rr),Rr|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,yt(Ni,Rr),Rr|=n;return fr(e,t,s,r),t.child}function y_(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function yp(e,t,r,n,s){var o=kr(r)?Fo:lr.current;return o=qi(t,o),Fi(t,s),r=Km(e,t,r,n,o,s),n=Gm(),e!==null&&!br?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,vs(e,t,s)):(jt&&n&&Im(t),t.flags|=1,fr(e,t,r,s),t.child)}function Hy(e,t,r,n,s){if(kr(r)){var o=!0;Bu(t)}else o=!1;if(Fi(t,s),t.stateNode===null)gu(e,t),h_(t,r,n),gp(t,r,n,s),n=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var l=i.context,u=r.contextType;typeof u=="object"&&u!==null?u=qr(u):(u=kr(r)?Fo:lr.current,u=qi(t,u));var d=r.getDerivedStateFromProps,f=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==n||l!==u)&&zy(t,i,n,u),Us=!1;var p=t.memoizedState;i.state=p,Gu(t,n,i,s),l=t.memoizedState,a!==n||p!==l||Sr.current||Us?(typeof d=="function"&&(mp(t,r,d,n),l=t.memoizedState),(a=Us||Fy(t,r,a,n,p,l,u))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),i.props=n,i.state=l,i.context=u,n=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,Yw(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:nn(t.type,a),i.props=u,f=t.pendingProps,p=i.context,l=r.contextType,typeof l=="object"&&l!==null?l=qr(l):(l=kr(r)?Fo:lr.current,l=qi(t,l));var m=r.getDerivedStateFromProps;(d=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==f||p!==l)&&zy(t,i,n,l),Us=!1,p=t.memoizedState,i.state=p,Gu(t,n,i,s);var x=t.memoizedState;a!==f||p!==x||Sr.current||Us?(typeof m=="function"&&(mp(t,r,m,n),x=t.memoizedState),(u=Us||Fy(t,r,u,n,p,x,l)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,x,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,x,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=x),i.props=n,i.state=x,i.context=l,n=u):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),n=!1)}return xp(e,t,r,n,o,s)}function xp(e,t,r,n,s,o){y_(e,t);var i=(t.flags&128)!==0;if(!n&&!i)return s&&Ry(t,r,!1),vs(e,t,o);n=t.stateNode,bN.current=t;var a=i&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&i?(t.child=Qi(t,e.child,null,o),t.child=Qi(t,null,a,o)):fr(e,t,a,o),t.memoizedState=n.state,s&&Ry(t,r,!0),t.child}function x_(e){var t=e.stateNode;t.pendingContext?Ny(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ny(e,t.context,!1),Bm(e,t.containerInfo)}function Yy(e,t,r,n,s){return Xi(),Fm(s),t.flags|=256,fr(e,t,r,n),t.child}var wp={dehydrated:null,treeContext:null,retryLane:0};function _p(e){return{baseLanes:e,cachePool:null,transitions:null}}function w_(e,t,r){var n=t.pendingProps,s=Dt.current,o=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),yt(Dt,s&1),e===null)return hp(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=n.children,e=n.fallback,o?(n=t.mode,o=t.child,i={mode:"hidden",children:i},!(n&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=Bd(i,n,0,null),e=Oo(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=_p(r),t.memoizedState=wp,e):Qm(t,i));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return SN(e,t,i,n,a,s,r);if(o){o=n.fallback,i=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:n.children};return!(i&1)&&t.child!==s?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=ro(s,l),n.subtreeFlags=s.subtreeFlags&14680064),a!==null?o=ro(a,o):(o=Oo(o,i,r,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,n=o,o=t.child,i=e.child.memoizedState,i=i===null?_p(r):{baseLanes:i.baseLanes|r,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~r,t.memoizedState=wp,n}return o=e.child,e=o.sibling,n=ro(o,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function Qm(e,t){return t=Bd({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Bc(e,t,r,n){return n!==null&&Fm(n),Qi(t,e.child,null,r),e=Qm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function SN(e,t,r,n,s,o,i){if(r)return t.flags&256?(t.flags&=-257,n=uh(Error(oe(422))),Bc(e,t,i,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,s=t.mode,n=Bd({mode:"visible",children:n.children},s,0,null),o=Oo(o,s,i,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,t.mode&1&&Qi(t,e.child,null,i),t.child.memoizedState=_p(i),t.memoizedState=wp,o);if(!(t.mode&1))return Bc(e,t,i,null);if(s.data==="$!"){if(n=s.nextSibling&&s.nextSibling.dataset,n)var a=n.dgst;return n=a,o=Error(oe(419)),n=uh(o,n,void 0),Bc(e,t,i,n)}if(a=(i&e.childLanes)!==0,br||a){if(n=Qt,n!==null){switch(i&-i){case 4:s=2;break;case 16:s=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(n.suspendedLanes|i)?0:s,s!==0&&s!==o.retryLane&&(o.retryLane=s,gs(e,s),fn(n,e,s,-1))}return sg(),n=uh(Error(oe(421))),Bc(e,t,i,n)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=IN.bind(null,e),s._reactRetry=t,null):(e=o.treeContext,Ar=Qs(s.nextSibling),Or=t,jt=!0,an=null,e!==null&&(Br[Hr++]=is,Br[Hr++]=as,Br[Hr++]=zo,is=e.id,as=e.overflow,zo=t),t=Qm(t,n.children),t.flags|=4096,t)}function Zy(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),pp(e.return,t,r)}function dh(e,t,r,n,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=s)}function __(e,t,r){var n=t.pendingProps,s=n.revealOrder,o=n.tail;if(fr(e,t,n.children,r),n=Dt.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Zy(e,r,t);else if(e.tag===19)Zy(e,r,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}n&=1}if(yt(Dt,n),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(r=t.child,s=null;r!==null;)e=r.alternate,e!==null&&qu(e)===null&&(s=r),r=r.sibling;r=s,r===null?(s=t.child,t.child=null):(s=r.sibling,r.sibling=null),dh(t,!1,s,r,o);break;case"backwards":for(r=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&qu(e)===null){t.child=s;break}e=s.sibling,s.sibling=r,r=s,s=e}dh(t,!0,r,null,o);break;case"together":dh(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function gu(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function vs(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Vo|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(oe(153));if(t.child!==null){for(e=t.child,r=ro(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=ro(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function kN(e,t,r){switch(t.tag){case 3:x_(t),Xi();break;case 5:Zw(t);break;case 1:kr(t.type)&&Bu(t);break;case 4:Bm(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,s=t.memoizedProps.value;yt(Zu,n._currentValue),n._currentValue=s;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(yt(Dt,Dt.current&1),t.flags|=128,null):r&t.child.childLanes?w_(e,t,r):(yt(Dt,Dt.current&1),e=vs(e,t,r),e!==null?e.sibling:null);yt(Dt,Dt.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return __(e,t,r);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),yt(Dt,Dt.current),n)break;return null;case 22:case 23:return t.lanes=0,v_(e,t,r)}return vs(e,t,r)}var b_,bp,S_,k_;b_=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};bp=function(){};S_=function(e,t,r,n){var s=e.memoizedProps;if(s!==n){e=t.stateNode,To(On.current);var o=null;switch(r){case"input":s=Bh(e,s),n=Bh(e,n),o=[];break;case"select":s=Mt({},s,{value:void 0}),n=Mt({},n,{value:void 0}),o=[];break;case"textarea":s=Zh(e,s),n=Zh(e,n),o=[];break;default:typeof s.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Wu)}Gh(r,n);var i;r=null;for(u in s)if(!n.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(i in a)a.hasOwnProperty(i)&&(r||(r={}),r[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(hl.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in n){var l=n[u];if(a=s!=null?s[u]:void 0,n.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(i in a)!a.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(r||(r={}),r[i]="");for(i in l)l.hasOwnProperty(i)&&a[i]!==l[i]&&(r||(r={}),r[i]=l[i])}else r||(o||(o=[]),o.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(hl.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&wt("scroll",e),o||a===l||(o=[])):(o=o||[]).push(u,l))}r&&(o=o||[]).push("style",r);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};k_=function(e,t,r,n){r!==n&&(t.flags|=4)};function Ra(e,t){if(!jt)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function or(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var s=e.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags&14680064,n|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags,n|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function CN(e,t,r){var n=t.pendingProps;switch(Lm(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return or(t),null;case 1:return kr(t.type)&&$u(),or(t),null;case 3:return n=t.stateNode,Ji(),_t(Sr),_t(lr),Ym(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Wc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,an!==null&&(Rp(an),an=null))),bp(e,t),or(t),null;case 5:Hm(t);var s=To(Cl.current);if(r=t.type,e!==null&&t.stateNode!=null)S_(e,t,r,n,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(oe(166));return or(t),null}if(e=To(On.current),Wc(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[Tn]=t,n[Sl]=o,e=(t.mode&1)!==0,r){case"dialog":wt("cancel",n),wt("close",n);break;case"iframe":case"object":case"embed":wt("load",n);break;case"video":case"audio":for(s=0;s<$a.length;s++)wt($a[s],n);break;case"source":wt("error",n);break;case"img":case"image":case"link":wt("error",n),wt("load",n);break;case"details":wt("toggle",n);break;case"input":ry(n,o),wt("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},wt("invalid",n);break;case"textarea":sy(n,o),wt("invalid",n)}Gh(r,o),s=null;for(var i in o)if(o.hasOwnProperty(i)){var a=o[i];i==="children"?typeof a=="string"?n.textContent!==a&&(o.suppressHydrationWarning!==!0&&Vc(n.textContent,a,e),s=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&Vc(n.textContent,a,e),s=["children",""+a]):hl.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&wt("scroll",n)}switch(r){case"input":Ac(n),ny(n,o,!0);break;case"textarea":Ac(n),oy(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=Wu)}n=s,t.updateQueue=n,n!==null&&(t.flags|=4)}else{i=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Q0(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=i.createElement("div"),e.innerHTML=" + diff --git a/ui/public/imgs/providers/namesilo.svg b/ui/public/imgs/providers/namesilo.svg new file mode 100644 index 00000000..457698fa --- /dev/null +++ b/ui/public/imgs/providers/namesilo.svg @@ -0,0 +1,8 @@ + + + + + + \ No newline at end of file diff --git a/ui/src/components/certimate/AccessEdit.tsx b/ui/src/components/certimate/AccessEdit.tsx index c7824fb6..736e720b 100644 --- a/ui/src/components/certimate/AccessEdit.tsx +++ b/ui/src/components/certimate/AccessEdit.tsx @@ -29,6 +29,7 @@ import { } from "../ui/select"; import AccessCloudflareForm from "./AccessCloudflareForm"; import AccessQiniuForm from "./AccessQiniuForm"; +import AccessNamesiloForm from "./AccessNamesiloForm"; type TargetConfigEditProps = { op: "add" | "edit"; @@ -110,6 +111,16 @@ export function AccessEdit({ /> ); break; + case "namesilo": + form = ( + { + setOpen(false); + }} + /> + ); + break; } const getOptionCls = (val: string) => { diff --git a/ui/src/components/certimate/AccessNamesiloForm.tsx b/ui/src/components/certimate/AccessNamesiloForm.tsx new file mode 100644 index 00000000..1d97c3b2 --- /dev/null +++ b/ui/src/components/certimate/AccessNamesiloForm.tsx @@ -0,0 +1,173 @@ +import { Input } from "@/components/ui/input"; +import { useForm } from "react-hook-form"; + +import { zodResolver } from "@hookform/resolvers/zod"; + +import z from "zod"; +import { + Form, + FormControl, + FormField, + FormItem, + FormLabel, + FormMessage, +} from "@/components/ui/form"; +import { Button } from "@/components/ui/button"; + +import { Access, accessFormType, NamesiloConfig } from "@/domain/access"; +import { save } from "@/repository/access"; +import { useConfig } from "@/providers/config"; +import { ClientResponseError } from "pocketbase"; +import { PbErrorData } from "@/domain/base"; + +const AccessNamesiloForm = ({ + data, + onAfterReq, +}: { + data?: Access; + onAfterReq: () => void; +}) => { + const { addAccess, updateAccess } = useConfig(); + const formSchema = z.object({ + id: z.string().optional(), + name: z.string().min(1).max(64), + configType: accessFormType, + apiKey: z.string().min(1).max(64), + }); + + let config: NamesiloConfig = { + apiKey: "", + }; + if (data) config = data.config as NamesiloConfig; + + const form = useForm>({ + resolver: zodResolver(formSchema), + defaultValues: { + id: data?.id, + name: data?.name, + configType: "namesilo", + apiKey: config.apiKey, + }, + }); + + const onSubmit = async (data: z.infer) => { + console.log(data); + const req: Access = { + id: data.id as string, + name: data.name, + configType: data.configType, + config: { + apiKey: data.apiKey, + }, + }; + + try { + const rs = await save(req); + + onAfterReq(); + + req.id = rs.id; + req.created = rs.created; + req.updated = rs.updated; + if (data.id) { + updateAccess(req); + return; + } + addAccess(req); + } catch (e) { + const err = e as ClientResponseError; + + Object.entries(err.response.data as PbErrorData).forEach( + ([key, value]) => { + form.setError(key as keyof z.infer, { + type: "manual", + message: value.message, + }); + } + ); + } + }; + + return ( + <> +
+
+ { + console.log(e); + e.stopPropagation(); + form.handleSubmit(onSubmit)(e); + }} + className="space-y-8" + > + ( + + 名称 + + + + + + + )} + /> + + ( + + 配置类型 + + + + + + + )} + /> + + ( + + 配置类型 + + + + + + + )} + /> + + ( + + NAMESILO_API_KEY + + + + + + + )} + /> + +
+ +
+ + +
+ + ); +}; + +export default AccessNamesiloForm; diff --git a/ui/src/domain/access.ts b/ui/src/domain/access.ts index d01fa53b..d08ddecd 100644 --- a/ui/src/domain/access.ts +++ b/ui/src/domain/access.ts @@ -4,6 +4,7 @@ export const accessTypeMap: Map = new Map([ ["tencent", ["腾讯云", "/imgs/providers/tencent.svg"]], ["aliyun", ["阿里云", "/imgs/providers/aliyun.svg"]], ["cloudflare", ["Cloudflare", "/imgs/providers/cloudflare.svg"]], + ["namesilo", ["Namesilo", "/imgs/providers/namesilo.svg"]], ["qiniu", ["七牛云", "/imgs/providers/qiniu.svg"]], ["ssh", ["SSH部署", "/imgs/providers/ssh.svg"]], ["webhook", ["Webhook", "/imgs/providers/webhook.svg"]], @@ -17,6 +18,7 @@ export const accessFormType = z.union( z.literal("webhook"), z.literal("cloudflare"), z.literal("qiniu"), + z.literal("namesilo"), ], { message: "请选择云服务商" } ); @@ -31,7 +33,9 @@ export type Access = { | SSHConfig | WebhookConfig | CloudflareConfig - | QiniuConfig; + | QiniuConfig + | NamesiloConfig; + deleted?: string; created?: string; updated?: string; @@ -60,6 +64,10 @@ export type AliyunConfig = { accessKeySecret: string; }; +export type NamesiloConfig = { + apiKey: string; +}; + export type SSHConfig = { host: string; port: string; diff --git a/ui/src/pages/DashboardLayout.tsx b/ui/src/pages/DashboardLayout.tsx index 523385f7..be1c2042 100644 --- a/ui/src/pages/DashboardLayout.tsx +++ b/ui/src/pages/DashboardLayout.tsx @@ -227,7 +227,7 @@ export default function Dashboard() { href="https://github.com/usual2970/certimate/releases" target="_blank" > - Certimate v0.1.0 + Certimate v0.1.2 diff --git a/ui/src/pages/domains/Edit.tsx b/ui/src/pages/domains/Edit.tsx index e01227b9..ef8cbf71 100644 --- a/ui/src/pages/domains/Edit.tsx +++ b/ui/src/pages/domains/Edit.tsx @@ -131,7 +131,7 @@ const Edit = () => { title: "成功", description, }); - navigate("/"); + navigate("/domains"); } catch (e) { const err = e as ClientResponseError;